	.file	"extr_xhci.c_xhci_clear_tt_buffer_complete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xhci_clear_tt_buffer_complete, @function
xhci_clear_tt_buffer_complete:
.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
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	hcd_to_xhci@PLT
	mov	rsi, r13
	mov	rdi, rax
	mov	rbp, rax
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, r12
	mov	r14d, DWORD PTR [rax]
	call	xhci_get_endpoint_index@PLT
	mov	rdi, rbp
	mov	esi, eax
	mov	rax, QWORD PTR 8[rbp]
	mov	ecx, r14d
	mov	rdx, rsi
	mov	rax, QWORD PTR [rax+rcx*8]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR EP_CLEARING_TT[rip]
	not	eax
	and	DWORD PTR [rcx+rsi*4], eax
	mov	esi, r14d
	call	xhci_ring_doorbell_for_active_rings@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rsi, r13
	mov	rdi, 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	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	xhci_clear_tt_buffer_complete, .-xhci_clear_tt_buffer_complete
	.comm	EP_CLEARING_TT,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_xhci.c_xhci_clear_tt_buffer_complete.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xhci_clear_tt_buffer_complete, %function
xhci_clear_tt_buffer_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, #0
	mov	r5, r1
	bl	hcd_to_xhci
	mov	r1, r6
	mov	r4, r0
	bl	spin_lock_irqsave
	ldr	r3, [r5, #4]
	mov	r0, r5
	ldr	r5, [r3]
	bl	xhci_get_endpoint_index
	mov	r2, r0
	ldr	r3, [r4, #4]
	ldr	r1, .L4
	ldr	r3, [r3, r5, lsl #2]
	ldr	ip, [r1]
	ldr	r0, [r3]
	mov	r1, r5
	ldr	r3, [r0, r2, lsl #2]
	bic	r3, r3, ip
	str	r3, [r0, r2, lsl #2]
	mov	r0, r4
	bl	xhci_ring_doorbell_for_active_rings
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	spin_unlock_irqrestore
.L5:
	.align	2
.L4:
	.word	EP_CLEARING_TT
	.size	xhci_clear_tt_buffer_complete, .-xhci_clear_tt_buffer_complete
	.comm	EP_CLEARING_TT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
