	.file	"extr_transport.c_usb_stor_reset_common.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No reset during disconnect\n"
.LC1:
	.string	"Soft reset failed: %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Reset interrupted by disconnect\n"
	.align 8
.LC3:
	.string	"Soft reset: clearing bulk-in endpoint halt\n"
	.align 8
.LC4:
	.string	"Soft reset: clearing bulk-out endpoint halt\n"
	.section	.rodata.str1.1
.LC5:
	.string	"Soft reset failed\n"
.LC6:
	.string	"Soft reset done\n"
	.text
	.p2align 4
	.type	usb_stor_reset_common, @function
usb_stor_reset_common:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 8[rdi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	mov	rsi, r14
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR US_FLIDX_DISCONNECTING[rip]
	mov	QWORD PTR 8[rsp], r9
	call	test_bit@PLT
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR HZ[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR 16[rbp]
	mov	edx, r12d
	mov	r9d, r15d
	mov	r8d, ebx
	mov	ecx, r13d
	mov	rdi, rbp
	lea	eax, [rax+rax*4]
	push	rax
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR 96[rsp]
	push	rax
	.cfi_def_cfa_offset 104
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 112
	call	usb_stor_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r12d, eax
	test	eax, eax
	js	.L11
	mov	eax, DWORD PTR HZ[rip]
	mov	edi, DWORD PTR US_FLIDX_DISCONNECTING[rip]
	mov	rsi, r14
	lea	r12d, [rax+rax*2]
	call	test_bit@PLT
	add	r12d, r12d
	mov	edi, DWORD PTR 12[rbp]
	mov	rsi, rax
	mov	edx, r12d
	call	wait_event_interruptible_timeout@PLT
	mov	edi, DWORD PTR US_FLIDX_DISCONNECTING[rip]
	mov	rsi, r14
	call	test_bit@PLT
	test	rax, rax
	jne	.L12
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	US_DEBUGP@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, rbp
	call	usb_stor_clear_halt@PLT
	lea	rdi, .LC4[rip]
	mov	ebx, eax
	xor	eax, eax
	call	US_DEBUGP@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	call	usb_stor_clear_halt@PLT
	mov	r12d, eax
	test	ebx, ebx
	js	.L6
	test	eax, eax
	js	.L13
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	US_DEBUGP@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	US_DEBUGP@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, eax
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	US_DEBUGP@PLT
	jmp	.L1
.L13:
	mov	ebx, eax
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	mov	r12d, ebx
	call	US_DEBUGP@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	US_DEBUGP@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	usb_stor_reset_common, .-usb_stor_reset_common
	.comm	US_FLIDX_DISCONNECTING,4,4
	.comm	HZ,4,4
	.comm	EIO,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_transport.c_usb_stor_reset_common.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No reset during disconnect\012\000"
	.align	2
.LC1:
	.ascii	"Soft reset failed: %d\012\000"
	.align	2
.LC2:
	.ascii	"Reset interrupted by disconnect\012\000"
	.align	2
.LC3:
	.ascii	"Soft reset: clearing bulk-in endpoint halt\012\000"
	.align	2
.LC4:
	.ascii	"Soft reset: clearing bulk-out endpoint halt\012\000"
	.align	2
.LC5:
	.ascii	"Soft reset failed\012\000"
	.align	2
.LC6:
	.ascii	"Soft reset done\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_stor_reset_common, %function
usb_stor_reset_common:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L14
	add	r8, r0, #8
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [r7]
	mov	r1, r8
	sub	sp, sp, #24
	mov	r6, r2
	mov	r10, r3
	bl	test_bit
	cmp	r0, #0
	bne	.L10
	ldr	r3, [sp, #64]
	ldr	r9, .L14+4
	str	r3, [sp, #12]
	ldr	r3, [r9]
	ldr	r2, [sp, #60]
	add	r1, r3, r3, lsl #2
	ldr	r3, [sp, #56]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	str	r10, [sp]
	str	r1, [sp, #16]
	mov	r2, r5
	mov	r3, r6
	mov	r0, r4
	ldr	r1, [r4, #16]
	bl	usb_stor_control_msg
	subs	r5, r0, #0
	blt	.L11
	mov	r1, r8
	ldr	r0, [r7]
	ldr	r5, [r4, #12]
	bl	test_bit
	ldr	r2, [r9]
	mov	r1, r0
	add	r2, r2, r2, lsl #1
	lsl	r2, r2, #1
	mov	r0, r5
	bl	wait_event_interruptible_timeout
	mov	r1, r8
	ldr	r0, [r7]
	bl	test_bit
	cmp	r0, #0
	bne	.L12
	ldr	r0, .L14+8
	bl	US_DEBUGP
	ldr	r1, [r4, #4]
	mov	r0, r4
	bl	usb_stor_clear_halt
	mov	r6, r0
	ldr	r0, .L14+12
	bl	US_DEBUGP
	mov	r0, r4
	ldr	r1, [r4]
	bl	usb_stor_clear_halt
	cmp	r6, #0
	mov	r5, r0
	blt	.L6
	cmp	r0, #0
	blt	.L13
	ldr	r0, .L14+16
	bl	US_DEBUGP
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r0, .L14+20
	bl	US_DEBUGP
	ldr	r3, .L14+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r1, r5
	ldr	r0, .L14+28
	bl	US_DEBUGP
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r6, r0
.L6:
	mov	r5, r6
	ldr	r0, .L14+32
	bl	US_DEBUGP
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r0, .L14+36
	bl	US_DEBUGP
	ldr	r3, .L14+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	US_FLIDX_DISCONNECTING
	.word	HZ
	.word	.LC3
	.word	.LC4
	.word	.LC6
	.word	.LC0
	.word	EIO
	.word	.LC1
	.word	.LC5
	.word	.LC2
	.size	usb_stor_reset_common, .-usb_stor_reset_common
	.comm	US_FLIDX_DISCONNECTING,4,4
	.comm	HZ,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
