	.file	"extr_uas.c_uas_wait_for_pending_cmnds.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uas_wait_for_pending_cmnds, @function
uas_wait_for_pending_cmnds:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, 8[rdi]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, 4[rdi]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR jiffies[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, 500
	mov	rdi, rbx
	call	usb_wait_anchor_empty_timeout@PLT
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR HZ[rip]
	mov	rdi, QWORD PTR jiffies[rip]
	lea	esi, [rax+rax*4]
	movsx	rsi, esi
	add	rsi, r13
	call	time_after@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, rbx
	call	uas_cmnd_list_empty@PLT
	test	eax, eax
	jne	.L12
.L6:
	mov	rdi, r12
	call	flush_work@PLT
	mov	esi, 5000
	mov	rdi, rbp
	call	usb_wait_anchor_empty_timeout@PLT
	test	eax, eax
	jne	.L2
.L10:
	mov	eax, DWORD PTR ETIME[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	uas_wait_for_pending_cmnds, .-uas_wait_for_pending_cmnds
	.comm	jiffies,8,8
	.comm	HZ,4,4
	.comm	ETIME,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_uas.c_uas_wait_for_pending_cmnds.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uas_wait_for_pending_cmnds, %function
uas_wait_for_pending_cmnds:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L12
	mov	r4, r0
	ldr	r8, .L12+4
	ldr	r10, [r5]
	ldr	r9, .L12+8
	add	r7, r0, #8
	add	r6, r0, #4
	b	.L6
.L2:
	mov	r1, #500
	mov	r0, r4
	bl	usb_wait_anchor_empty_timeout
	cmp	r0, #0
	beq	.L10
	ldr	r1, [r9]
	ldr	r0, [r5]
	add	r1, r1, r1, lsl #2
	add	r1, r1, r10
	bl	time_after
	subs	fp, r0, #0
	bne	.L10
	mov	r0, r4
	bl	uas_cmnd_list_empty
	cmp	r0, #0
	bne	.L1
.L6:
	mov	r0, r7
	bl	flush_work
	mov	r1, r8
	mov	r0, r6
	bl	usb_wait_anchor_empty_timeout
	cmp	r0, #0
	bne	.L2
.L10:
	ldr	r3, .L12+12
	ldr	r0, [r3]
	rsb	fp, r0, #0
.L1:
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	jiffies
	.word	5000
	.word	HZ
	.word	ETIME
	.size	uas_wait_for_pending_cmnds, .-uas_wait_for_pending_cmnds
	.comm	jiffies,4,4
	.comm	HZ,4,4
	.comm	ETIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
