	.file	"extr_bdc_udc.c_handle_link_state_change.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Link state change"
.LC1:
	.string	"Entered Suspend mode\n"
.LC2:
	.string	"sched func_wake_notify\n"
.LC3:
	.string	"Resumed from Suspend\n"
.LC4:
	.string	"link state:%d\n"
	.text
	.p2align 4
	.type	handle_link_state_change, @function
handle_link_state_change:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	mov	ebp, esi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 4[rdi]
	call	dev_dbg@PLT
	mov	edi, ebp
	call	BDC_PST@PLT
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L16
	mov	edi, DWORD PTR 4[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, eax
	lea	rsi, .LC4[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	dev_dbg@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR [rbx]
	mov	eax, DWORD PTR REMOTE_WAKEUP_ISSUED[rip]
	test	edx, eax
	je	.L1
	not	eax
	and	eax, edx
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR USB_SPEED_SUPER[rip]
	cmp	DWORD PTR 8[rbx], eax
	je	.L17
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	eax, DWORD PTR USB_SPEED_UNKNOWN[rip]
	cmp	DWORD PTR 8[rbx], eax
	je	.L1
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR 8[rax], 0
	je	.L1
	mov	edi, DWORD PTR 4[rbx]
	lea	rbp, 28[rbx]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_dbg@PLT
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	eax, DWORD PTR DEVICE_SUSPENDED[rip]
	or	DWORD PTR [rbx], eax
	lea	rdi, 8[rbx]
	mov	rax, QWORD PTR 16[rbx]
	call	[QWORD PTR 8[rax]]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	spin_lock@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_dbg@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR DEVICE_SUSPENDED[rip], eax
	je	.L1
	mov	rax, QWORD PTR 16[rbx]
	lea	rdi, 8[rbx]
	call	[QWORD PTR [rax]]
	mov	eax, DWORD PTR DEVICE_SUSPENDED[rip]
	not	eax
	and	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbx
	call	bdc_function_wake_fh@PLT
	mov	eax, DWORD PTR FUNC_WAKE_ISSUED[rip]
	or	DWORD PTR [rbx], eax
	mov	edi, DWORD PTR BDC_TNOTIFY[rip]
	call	msecs_to_jiffies@PLT
	lea	rdi, 24[rbx]
	mov	esi, eax
	call	schedule_delayed_work@PLT
	mov	edi, DWORD PTR 4[rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	lea	rsi, .LC2[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	dev_dbg@PLT
	.cfi_endproc
.LFE0:
	.size	handle_link_state_change, .-handle_link_state_change
	.comm	USB_SPEED_UNKNOWN,4,4
	.comm	USB_SPEED_SUPER,4,4
	.comm	REMOTE_WAKEUP_ISSUED,4,4
	.comm	FUNC_WAKE_ISSUED,4,4
	.comm	DEVICE_SUSPENDED,4,4
	.comm	BDC_TNOTIFY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bdc_udc.c_handle_link_state_change.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Link state change\000"
	.align	2
.LC1:
	.ascii	"Entered Suspend mode\012\000"
	.align	2
.LC2:
	.ascii	"sched func_wake_notify\012\000"
	.align	2
.LC3:
	.ascii	"Resumed from Suspend\012\000"
	.align	2
.LC4:
	.ascii	"link state:%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_link_state_change, %function
handle_link_state_change:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	r1, .L20
	ldr	r0, [r0, #4]
	bl	dev_dbg
	mov	r0, r5
	bl	BDC_PST
	cmp	r0, #129
	beq	.L2
	cmp	r0, #130
	beq	.L3
	cmp	r0, #128
	beq	.L19
	mov	r2, r0
	ldr	r1, .L20+4
	ldr	r0, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	dev_dbg
.L2:
	ldr	r2, .L20+8
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	popeq	{r4, r5, r6, pc}
	ldr	r1, .L20+12
	ldr	r0, [r4, #8]
	ldr	r1, [r1]
	bic	r3, r3, r2
	cmp	r0, r1
	str	r3, [r4]
	popne	{r4, r5, r6, pc}
	mov	r5, r4
	mov	r1, #0
	mov	r0, r4
	bl	bdc_function_wake_fh
	ldr	r2, .L20+16
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r2, .L20+20
	orr	r3, r3, r1
	str	r3, [r5], #16
	ldr	r0, [r2]
	bl	msecs_to_jiffies
	mov	r1, r0
	mov	r0, r5
	bl	schedule_delayed_work
	ldr	r0, [r4, #4]
	ldr	r1, .L20+24
	pop	{r4, r5, r6, lr}
	b	dev_dbg
.L19:
	ldr	r3, .L20+28
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r4, #12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	ldr	r1, .L20+32
	add	r5, r4, #20
	ldr	r0, [r4, #4]
	bl	dev_dbg
	mov	r0, r5
	bl	spin_unlock
	mov	r0, r4
	ldr	r2, .L20+36
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r2, [r4, #12]
	orr	r3, r3, r1
	str	r3, [r0], #8
	ldr	r3, [r2, #4]
	blx	r3
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	spin_lock
.L3:
	ldr	r5, .L20+36
	ldr	r1, .L20+40
	ldr	r0, [r4, #4]
	bl	dev_dbg
	ldr	r3, [r5]
	ldr	r2, [r4]
	tst	r2, r3
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r4, #12]
	add	r0, r4, #8
	ldr	r3, [r3]
	blx	r3
	ldr	r2, [r5]
	ldr	r3, [r4]
	bic	r3, r3, r2
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	.LC4
	.word	REMOTE_WAKEUP_ISSUED
	.word	USB_SPEED_SUPER
	.word	FUNC_WAKE_ISSUED
	.word	BDC_TNOTIFY
	.word	.LC2
	.word	USB_SPEED_UNKNOWN
	.word	.LC1
	.word	DEVICE_SUSPENDED
	.word	.LC3
	.size	handle_link_state_change, .-handle_link_state_change
	.comm	USB_SPEED_UNKNOWN,4,4
	.comm	USB_SPEED_SUPER,4,4
	.comm	REMOTE_WAKEUP_ISSUED,4,4
	.comm	FUNC_WAKE_ISSUED,4,4
	.comm	DEVICE_SUSPENDED,4,4
	.comm	BDC_TNOTIFY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
