	.file	"extr_xhci-ring.c_xhci_handle_cmd_config_ep.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not get input context, bad type.\n"
	.align 8
.LC1:
	.string	"Completed config ep cmd - last ep index = %d, state = %d"
	.text
	.p2align 4
	.type	xhci_handle_cmd_config_ep, @function
xhci_handle_cmd_config_ep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rdx, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 8[rdi]
	mov	r14, QWORD PTR [rax+rdx*8]
	mov	edi, DWORD PTR 12[r14]
	call	xhci_get_input_control_ctx@PLT
	test	rax, rax
	je	.L15
	mov	edi, DWORD PTR 4[rax]
	mov	rbx, rax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r12, rax
	call	le32_to_cpu@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	xhci_last_valid_endpoint@PLT
	mov	esi, DWORD PTR 8[r14]
	mov	rdi, rbp
	lea	r15d, -1[rax]
	mov	edx, r15d
	call	xhci_get_ep_ctx@PLT
	mov	rdi, rax
	call	trace_xhci_handle_cmd_config_ep@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR XHCI_RESET_EP_QUIRK[rip], eax
	je	.L1
	cmp	r15d, -1
	jne	.L16
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L16:
	.cfi_restore_state
	sub	r12, QWORD PTR SLOT_FLAG[rip]
	cmp	r12, rbx
	jne	.L1
	mov	rdx, QWORD PTR [r14]
	mov	eax, r15d
	lea	rbx, 0[0+rax*4]
	mov	r8d, DWORD PTR [rdx+rax*4]
	test	DWORD PTR EP_HALTED[rip], r8d
	je	.L1
	mov	esi, DWORD PTR trace_xhci_dbg_quirks[rip]
	mov	rdi, rbp
	mov	ecx, r15d
	lea	rdx, .LC1[rip]
	call	xhci_dbg_trace@PLT
	add	rbx, QWORD PTR [r14]
	mov	edx, r15d
	mov	esi, r13d
	mov	eax, DWORD PTR EP_HALTED[rip]
	mov	rdi, rbp
	not	eax
	and	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	ring_doorbell_for_active_rings@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	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
	jmp	xhci_warn@PLT
	.cfi_endproc
.LFE0:
	.size	xhci_handle_cmd_config_ep, .-xhci_handle_cmd_config_ep
	.comm	trace_xhci_dbg_quirks,4,4
	.comm	XHCI_RESET_EP_QUIRK,4,4
	.comm	SLOT_FLAG,8,8
	.comm	EP_HALTED,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-ring.c_xhci_handle_cmd_config_ep.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not get input context, bad type.\012\000"
	.align	2
.LC1:
	.ascii	"Completed config ep cmd - last ep index = %d, state"
	.ascii	" = %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xhci_handle_cmd_config_ep, %function
xhci_handle_cmd_config_ep:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0, #4]
	mov	r4, r0
	ldr	r8, [r3, r1, lsl #2]
	sub	sp, sp, #12
	ldr	r0, [r8, #8]
	mov	r7, r1
	bl	xhci_get_input_control_ctx
	subs	r5, r0, #0
	beq	.L12
	ldr	r0, [r5, #4]
	bl	le32_to_cpu
	mov	r6, r0
	ldr	r0, [r5]
	bl	le32_to_cpu
	mov	r9, r0
	mov	r0, r6
	bl	xhci_last_valid_endpoint
	sub	r5, r0, #1
	mov	r2, r5
	ldr	r1, [r8, #4]
	mov	r0, r4
	bl	xhci_get_ep_ctx
	bl	trace_xhci_handle_cmd_config_ep
	ldr	r2, .L14
	ldr	r3, [r4]
	ldr	r2, [r2]
	and	r3, r3, r2
	cmn	r5, #1
	cmpne	r3, #0
	bne	.L13
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	sub	r6, r6, r3
	cmp	r6, r9
	bne	.L1
	ldr	r3, [r8]
	ldr	r6, .L14+8
	ldr	r3, [r3, r5, lsl #2]
	ldr	r2, [r6]
	tst	r3, r2
	beq	.L1
	ldr	r2, .L14+12
	str	r3, [sp]
	ldr	r1, [r2]
	mov	r3, r5
	mov	r0, r4
	ldr	r2, .L14+16
	bl	xhci_dbg_trace
	ldr	r2, [r8]
	ldr	r0, [r6]
	ldr	r3, [r2, r5, lsl #2]
	mov	r1, r7
	bic	r3, r3, r0
	str	r3, [r2, r5, lsl #2]
	mov	r0, r4
	mov	r2, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	ring_doorbell_for_active_rings
.L12:
	mov	r0, r4
	ldr	r1, .L14+20
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	xhci_warn
.L15:
	.align	2
.L14:
	.word	XHCI_RESET_EP_QUIRK
	.word	SLOT_FLAG
	.word	EP_HALTED
	.word	trace_xhci_dbg_quirks
	.word	.LC1
	.word	.LC0
	.size	xhci_handle_cmd_config_ep, .-xhci_handle_cmd_config_ep
	.comm	trace_xhci_dbg_quirks,4,4
	.comm	XHCI_RESET_EP_QUIRK,4,4
	.comm	SLOT_FLAG,4,4
	.comm	EP_HALTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
