	.file	"extr_hub.c_hub_quiesce.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hub_quiesce, @function
hub_quiesce:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 56[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	mov	r12, QWORD PTR 64[rdi]
	mov	rsi, r14
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	DWORD PTR 0[rbp], 1
	mov	rsi, r14
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
	cmp	DWORD PTR HUB_SUSPEND[rip], ebx
	je	.L2
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	DWORD PTR [r12], ebx
	jle	.L2
.L4:
	mov	rax, QWORD PTR 48[rbp]
	mov	rdi, QWORD PTR [rax+rbx*8]
	cmp	QWORD PTR [rdi], 0
	je	.L3
	call	usb_disconnect@PLT
	add	rbx, 1
	cmp	DWORD PTR [r12], ebx
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rdi, 44[rbp]
	call	del_timer_sync@PLT
	mov	edi, DWORD PTR 40[rbp]
	call	usb_kill_urb@PLT
	cmp	QWORD PTR 32[rbp], 0
	jne	.L10
	cmp	QWORD PTR 16[rbp], 0
	jne	.L11
.L1:
	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
.L10:
	.cfi_restore_state
	lea	rdi, 24[rbp]
	call	cancel_delayed_work_sync@PLT
	cmp	QWORD PTR 16[rbp], 0
	je	.L1
.L11:
	pop	rbx
	.cfi_def_cfa_offset 40
	lea	rdi, 8[rbp]
	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	flush_work@PLT
	.cfi_endproc
.LFE0:
	.size	hub_quiesce, .-hub_quiesce
	.comm	HUB_SUSPEND,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_hub.c_hub_quiesce.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hub_quiesce, %function
hub_quiesce:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	mov	r5, r0
	add	r8, r0, #32
	mov	r4, r1
	mov	r0, r8
	mov	r1, r7
	ldr	r6, [r5, #36]
	bl	spin_lock_irqsave
	mov	r3, #1
	mov	r0, r8
	str	r3, [r5]
	mov	r1, r7
	bl	spin_unlock_irqrestore
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L2
	ldr	r2, [r6]
	cmp	r2, r7
	ble	.L2
	mov	r4, r7
	b	.L4
.L3:
	cmp	r2, r4
	ble	.L2
.L4:
	ldr	r3, [r5, #28]
	ldr	r0, [r3, r4, lsl #2]
	add	r4, r4, #1
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L3
	bl	usb_disconnect
	ldr	r2, [r6]
	cmp	r2, r4
	bgt	.L4
.L2:
	add	r0, r5, #24
	bl	del_timer_sync
	ldr	r0, [r5, #20]
	bl	usb_kill_urb
	ldr	r3, [r5, #16]
	cmp	r3, #0
	bne	.L16
.L5:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	add	r0, r5, #4
	pop	{r4, r5, r6, r7, r8, lr}
	b	flush_work
.L16:
	add	r0, r5, #12
	bl	cancel_delayed_work_sync
	b	.L5
.L18:
	.align	2
.L17:
	.word	HUB_SUSPEND
	.size	hub_quiesce, .-hub_quiesce
	.comm	HUB_SUSPEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
