	.file	"extr_oxu210hp-hcd.c_qh_link_async.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qh_link_async, @function
qh_link_async:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR 24[rsi]
	mov	rbx, rsi
	call	QH_NEXT@PLT
	mov	rbp, QWORD PTR 8[r12]
	mov	esi, DWORD PTR TIMER_ASYNC_OFF[rip]
	mov	rdi, r12
	mov	r13d, eax
	call	timer_action_done@PLT
	cmp	QWORD PTR 16[rbp], 0
	je	.L8
.L3:
	mov	rax, QWORD PTR QH_STATE_IDLE[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L9
.L5:
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR 8[rbx], eax
	xor	eax, eax
	call	wmb@PLT
	mov	rax, QWORD PTR QH_STATE_LINKED[rip]
	mov	QWORD PTR 16[rbp], rbx
	mov	DWORD PTR 8[rbp], r13d
	mov	QWORD PTR [rbx], rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rsi, rbx
	mov	rdi, r12
	call	qh_refresh@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR [r12]
	call	readl@PLT
	mov	r14d, eax
	test	DWORD PTR CMD_ASE[rip], eax
	jne	.L3
	mov	rax, QWORD PTR [r12]
	mov	edx, DWORD PTR STS_ASS[rip]
	xor	ecx, ecx
	mov	rdi, r12
	mov	r8d, 150
	lea	rsi, 4[rax]
	call	handshake@PLT
	mov	edi, DWORD PTR CMD_ASE[rip]
	mov	rsi, QWORD PTR [r12]
	or	edi, DWORD PTR CMD_RUN[rip]
	or	edi, r14d
	call	writel@PLT
	mov	rdi, r12
	call	oxu_to_hcd@PLT
	mov	edx, DWORD PTR HC_STATE_RUNNING[rip]
	mov	DWORD PTR [rax], edx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	qh_link_async, .-qh_link_async
	.comm	TIMER_ASYNC_OFF,4,4
	.comm	STS_ASS,4,4
	.comm	QH_STATE_LINKED,8,8
	.comm	QH_STATE_IDLE,8,8
	.comm	HC_STATE_RUNNING,4,4
	.comm	CMD_RUN,4,4
	.comm	CMD_ASE,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_oxu210hp-hcd.c_qh_link_async.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qh_link_async, %function
qh_link_async:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r0
	sub	sp, sp, #12
	ldr	r0, [r1, #12]
	mov	r4, r1
	bl	QH_NEXT
	ldr	r3, .L10
	ldr	r5, [r6, #4]
	ldr	r1, [r3]
	mov	r7, r0
	mov	r0, r6
	bl	timer_action_done
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L8
.L3:
	ldr	r3, .L10+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L9
.L5:
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #8]
	str	r3, [r4, #4]
	str	r2, [r4, #8]
	bl	wmb
	ldr	r3, .L10+8
	str	r4, [r5, #8]
	ldr	r3, [r3]
	str	r7, [r5, #4]
	str	r3, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	mov	r0, r6
	mov	r1, r4
	bl	qh_refresh
	b	.L5
.L8:
	ldr	r0, [r6]
	bl	readl
	ldr	r9, .L10+12
	mov	r8, r0
	ldr	r3, [r9]
	ands	r3, r0, r3
	bne	.L3
	mov	r0, #150
	ldr	r1, [r6]
	ldr	r2, .L10+16
	str	r0, [sp]
	ldr	r2, [r2]
	add	r1, r1, #4
	mov	r0, r6
	bl	handshake
	ldr	r3, .L10+20
	ldr	r0, [r9]
	ldr	r3, [r3]
	ldr	r1, [r6]
	orr	r0, r0, r3
	orr	r0, r0, r8
	bl	writel
	mov	r0, r6
	bl	oxu_to_hcd
	ldr	r3, .L10+24
	ldr	r3, [r3]
	str	r3, [r0]
	b	.L3
.L11:
	.align	2
.L10:
	.word	TIMER_ASYNC_OFF
	.word	QH_STATE_IDLE
	.word	QH_STATE_LINKED
	.word	CMD_ASE
	.word	STS_ASS
	.word	CMD_RUN
	.word	HC_STATE_RUNNING
	.size	qh_link_async, .-qh_link_async
	.comm	TIMER_ASYNC_OFF,4,4
	.comm	STS_ASS,4,4
	.comm	QH_STATE_LINKED,4,4
	.comm	QH_STATE_IDLE,4,4
	.comm	HC_STATE_RUNNING,4,4
	.comm	CMD_RUN,4,4
	.comm	CMD_ASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
