	.file	"extr_oxu210hp-hcd.c_end_unlink_async.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	end_unlink_async, @function
end_unlink_async:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, DWORD PTR TIMER_IAA_WATCHDOG[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	r12, QWORD PTR [rdi]
	call	timer_action_done@PLT
	mov	eax, DWORD PTR QH_STATE_IDLE[rip]
	mov	rdi, r12
	mov	QWORD PTR 16[r12], 0
	mov	DWORD PTR 24[r12], eax
	call	qh_put@PLT
	mov	r13, QWORD PTR 8[r12]
	mov	rdi, rbp
	mov	rsi, r12
	mov	QWORD PTR 16[rbp], 0
	mov	QWORD PTR 0[rbp], r13
	mov	QWORD PTR 8[r12], 0
	call	qh_completions@PLT
	mov	rdi, r12
	call	list_empty@PLT
	test	eax, eax
	jne	.L2
	mov	rdi, rbp
	call	oxu_to_hcd@PLT
	mov	edi, DWORD PTR [rax]
	call	HC_IS_RUNNING@PLT
	test	rax, rax
	jne	.L13
.L2:
	mov	rdi, r12
	call	qh_put@PLT
	mov	rdi, rbp
	call	oxu_to_hcd@PLT
	mov	edi, DWORD PTR [rax]
	call	HC_IS_RUNNING@PLT
	test	rax, rax
	jne	.L14
.L3:
	test	r13, r13
	je	.L1
	mov	QWORD PTR 0[rbp], 0
	mov	rsi, r13
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	start_unlink_async@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L3
	mov	esi, DWORD PTR TIMER_ASYNC_OFF[rip]
	mov	rdi, rbp
	call	timer_action@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbp
	call	qh_link_async@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	end_unlink_async, .-end_unlink_async
	.comm	TIMER_IAA_WATCHDOG,4,4
	.comm	TIMER_ASYNC_OFF,4,4
	.comm	QH_STATE_IDLE,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_end_unlink_async.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	end_unlink_async, %function
end_unlink_async:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, #0
	mov	r4, r0
	ldr	r3, .L16
	ldr	r5, [r0]
	ldr	r1, [r3]
	bl	timer_action_done
	ldr	r3, .L16+4
	mov	r0, r5
	ldr	r3, [r3]
	str	r6, [r5, #8]
	str	r3, [r5, #12]
	bl	qh_put
	ldr	r7, [r5, #4]
	mov	r1, r5
	str	r7, [r4]
	str	r6, [r4, #8]
	mov	r0, r4
	str	r6, [r5, #4]
	bl	qh_completions
	mov	r0, r5
	bl	list_empty
	cmp	r0, r6
	bne	.L2
	mov	r0, r4
	bl	oxu_to_hcd
	ldr	r0, [r0]
	bl	HC_IS_RUNNING
	cmp	r0, r6
	bne	.L13
.L2:
	mov	r0, r5
	bl	qh_put
	mov	r0, r4
	bl	oxu_to_hcd
	ldr	r0, [r0]
	bl	HC_IS_RUNNING
	cmp	r0, #0
	bne	.L14
.L3:
	cmp	r7, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r3, #0
	mov	r1, r7
	mov	r0, r4
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	start_unlink_async
.L14:
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L16+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	timer_action
	b	.L3
.L13:
	mov	r1, r5
	mov	r0, r4
	bl	qh_link_async
	cmp	r7, #0
	bne	.L15
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	TIMER_IAA_WATCHDOG
	.word	QH_STATE_IDLE
	.word	TIMER_ASYNC_OFF
	.size	end_unlink_async, .-end_unlink_async
	.comm	TIMER_IAA_WATCHDOG,4,4
	.comm	TIMER_ASYNC_OFF,4,4
	.comm	QH_STATE_IDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
