	.file	"extr_oxu210hp-hcd.c_scan_async.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scan_async, @function
scan_async:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, 1
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR TIMER_ASYNC_SHRINK[rip]
	mov	r14d, DWORD PTR TIMER_IO_WATCHDOG[rip]
	add	rax, 1
	cmove	rax, rdx
	mov	QWORD PTR [rdi], rax
	call	timer_action_done@PLT
.L4:
	mov	rax, QWORD PTR 16[r13]
	xor	edi, edi
	mov	rbp, QWORD PTR [rax]
	test	rbp, rbp
	setne	dil
	call	likely@PLT
	test	rax, rax
	jne	.L9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 8[r13]
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR QH_STATE_LINKED[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L21
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rbp, QWORD PTR 16[rbp]
	test	rbp, rbp
	je	.L5
.L9:
	lea	r12, 24[rbp]
	mov	rdi, r12
	call	list_empty@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR 0[r13]
	cmp	QWORD PTR 0[rbp], rax
	je	.L6
	mov	rdi, rbp
	call	qh_get@PLT
	mov	rdi, r13
	mov	rbp, rax
	mov	rax, QWORD PTR 0[r13]
	mov	rsi, rbp
	mov	QWORD PTR 0[rbp], rax
	call	qh_completions@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	qh_put@PLT
	test	r12d, r12d
	jne	.L4
	lea	r12, 24[rbp]
.L6:
	mov	rdi, r12
	call	list_empty@PLT
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR 0[r13]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L8
	mov	rbp, QWORD PTR 16[rbp]
	mov	r14d, DWORD PTR TIMER_ASYNC_SHRINK[rip]
	test	rbp, rbp
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	DWORD PTR TIMER_ASYNC_SHRINK[rip], r14d
	je	.L22
	add	rsp, 8
	.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
.L21:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r13
	call	start_unlink_async@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	esi, r14d
	mov	rdi, r13
	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
	jmp	timer_action@PLT
	.cfi_endproc
.LFE0:
	.size	scan_async, .-scan_async
	.comm	TIMER_IO_WATCHDOG,4,4
	.comm	TIMER_ASYNC_SHRINK,4,4
	.comm	QH_STATE_LINKED,8,8
	.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_scan_async.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan_async, %function
scan_async:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	adds	r3, r3, #1
	moveq	r3, #1
	ldr	r2, .L23
	ldr	r7, .L23+4
	ldr	r8, [r2]
	ldr	r1, [r7]
	str	r3, [r0]
	mov	r6, r0
	bl	timer_action_done
	ldr	r9, .L23+8
.L4:
	ldr	r3, [r6, #8]
	ldr	r4, [r3]
	subs	r0, r4, #0
	movne	r0, #1
	bl	likely
	cmp	r0, #0
	beq	.L5
.L9:
	add	r5, r4, #12
	mov	r0, r5
	bl	list_empty
	cmp	r0, #0
	bne	.L6
	ldr	r2, [r4]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L6
	mov	r0, r4
	bl	qh_get
	ldr	r3, [r6]
	mov	r1, r0
	str	r3, [r0]
	mov	r4, r0
	mov	r0, r6
	bl	qh_completions
	mov	r5, r0
	mov	r0, r4
	bl	qh_put
	cmp	r5, #0
	bne	.L4
	add	r5, r4, #12
.L6:
	mov	r0, r5
	bl	list_empty
	cmp	r0, #0
	beq	.L7
	ldr	r2, [r4]
	ldr	r3, [r6]
	cmp	r2, r3
	ldreq	r8, [r7]
	beq	.L7
	ldr	r3, [r6, #4]
	cmp	r3, #0
	bne	.L7
	ldr	r2, [r4, #4]
	ldr	r3, [r9]
	cmp	r2, r3
	beq	.L22
.L7:
	ldr	r4, [r4, #8]
	cmp	r4, #0
	bne	.L9
.L5:
	ldr	r3, [r7]
	cmp	r3, r8
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, r8
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	timer_action
.L22:
	mov	r1, r4
	mov	r0, r6
	bl	start_unlink_async
	b	.L7
.L24:
	.align	2
.L23:
	.word	TIMER_IO_WATCHDOG
	.word	TIMER_ASYNC_SHRINK
	.word	QH_STATE_LINKED
	.size	scan_async, .-scan_async
	.comm	TIMER_IO_WATCHDOG,4,4
	.comm	TIMER_ASYNC_SHRINK,4,4
	.comm	QH_STATE_LINKED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
