	.file	"extr_ehci-hcd.c_ehci_endpoint_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"clear_halt for a busy endpoint\n"
	.text
	.p2align 4
	.type	ehci_endpoint_reset, @function
ehci_endpoint_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	lea	r13, 8[rbp]
	call	hcd_to_ehci@PLT
	mov	rdi, r13
	mov	r12, rax
	call	usb_endpoint_type@PLT
	mov	rdi, r13
	mov	ebx, eax
	call	usb_endpoint_num@PLT
	mov	rdi, r13
	mov	r14d, eax
	call	usb_endpoint_dir_out@PLT
	cmp	DWORD PTR USB_ENDPOINT_XFER_BULK[rip], ebx
	mov	r13d, eax
	je	.L2
	cmp	DWORD PTR USB_ENDPOINT_XFER_INT[rip], ebx
	je	.L2
	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
.L2:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	rbp, QWORD PTR 0[rbp]
	test	rbp, rbp
	je	.L4
	lea	rdi, 8[rbp]
	call	list_empty@PLT
	test	eax, eax
	je	.L12
	mov	edi, DWORD PTR 4[rbp]
	xor	ecx, ecx
	mov	esi, r14d
	mov	edx, r13d
	call	usb_settoggle@PLT
	mov	eax, DWORD PTR QH_UNLINK_REQUESTED[rip]
	or	DWORD PTR 0[rbp], eax
	mov	rsi, rbp
	cmp	DWORD PTR USB_ENDPOINT_XFER_BULK[rip], ebx
	mov	rdi, r12
	je	.L13
	call	start_unlink_intr@PLT
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	esi, esi
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	WARN_ONCE@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	call	start_unlink_async@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ehci_endpoint_reset, .-ehci_endpoint_reset
	.comm	USB_ENDPOINT_XFER_INT,4,4
	.comm	USB_ENDPOINT_XFER_BULK,4,4
	.comm	QH_UNLINK_REQUESTED,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_ehci-hcd.c_ehci_endpoint_reset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"clear_halt for a busy endpoint\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ehci_endpoint_reset, %function
ehci_endpoint_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	bl	hcd_to_ehci
	add	r7, r5, #4
	mov	r6, r0
	mov	r0, r7
	bl	usb_endpoint_type
	mov	r4, r0
	mov	r0, r7
	bl	usb_endpoint_num
	mov	r3, r0
	mov	r0, r7
	mov	r7, r3
	bl	usb_endpoint_dir_out
	ldr	r8, .L14
	mov	r9, r0
	ldr	r3, [r8]
	cmp	r3, r4
	beq	.L2
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, r4
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r1, #0
	mov	r0, r6
	bl	spin_lock_irqsave
	ldr	r5, [r5]
	cmp	r5, #0
	beq	.L4
	add	r0, r5, #8
	bl	list_empty
	cmp	r0, #0
	beq	.L12
	mov	r2, r9
	mov	r1, r7
	mov	r3, #0
	ldr	r0, [r5, #4]
	bl	usb_settoggle
	ldr	r3, .L14+8
	ldr	r1, [r8]
	ldr	r2, [r3]
	ldr	r3, [r5]
	cmp	r1, r4
	orr	r3, r3, r2
	mov	r1, r5
	mov	r0, r6
	str	r3, [r5]
	beq	.L13
	bl	start_unlink_intr
.L4:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L12:
	ldr	r1, .L14+12
	mov	r0, #1
	bl	WARN_ONCE
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L13:
	bl	start_unlink_async
	b	.L4
.L15:
	.align	2
.L14:
	.word	USB_ENDPOINT_XFER_BULK
	.word	USB_ENDPOINT_XFER_INT
	.word	QH_UNLINK_REQUESTED
	.word	.LC0
	.size	ehci_endpoint_reset, .-ehci_endpoint_reset
	.comm	USB_ENDPOINT_XFER_INT,4,4
	.comm	USB_ENDPOINT_XFER_BULK,4,4
	.comm	QH_UNLINK_REQUESTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
