	.file	"extr_xhci.c_xhci_configure_endpoint_by_xfer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xhci_configure_endpoint_by_xfer, @function
xhci_configure_endpoint_by_xfer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR 24[rdi]
	mov	edi, DWORD PTR [rax]
	call	xhci_get_endpoint_ext@PLT
	mov	r13, rax
	mov	rax, QWORD PTR 0[rbp]
	mov	r12, QWORD PTR 8[rax]
	mov	rax, QWORD PTR XHCI_MAX_STREAMS[rip]
	test	rax, rax
	je	.L6
	mov	rdx, QWORD PTR 8[r13]
	mov	rsi, QWORD PTR XHCI_MAX_TRANSFERS[rip]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rcx, rbx
	imul	rax, rsi
	imul	rcx, rsi
	add	rax, rbx
	lea	rdi, [rcx+rcx*2]
	lea	rax, [rax+rax*2]
	mov	QWORD PTR [rdx+rdi*8], 0
	lea	r14, [rdx+rax*8]
	mov	rax, QWORD PTR XHCI_SCTX_0_SCT_SEC_TR_RING[rip]
	add	rax, QWORD PTR 16[r13]
	lea	rdi, [rax+rcx*4]
	call	htole64@PLT
	mov	rsi, QWORD PTR XHCI_MAX_TRANSFERS[rip]
	mov	rdx, QWORD PTR 8[r13]
	mov	DWORD PTR 16[r14], eax
	mov	rax, QWORD PTR XHCI_MAX_STREAMS[rip]
	mov	rcx, rsi
	imul	rcx, rax
	add	rcx, rbx
	add	rbx, 1
	lea	rcx, [rcx+rcx*2]
	lea	rcx, [rdx+rcx*8]
	mov	QWORD PTR 8[rcx], 0
	mov	QWORD PTR [rcx], 0
	cmp	rax, rbx
	jne	.L5
.L6:
	mov	edi, DWORD PTR 0[r13]
	call	usb_pc_cpu_flush@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	r14d, DWORD PTR 8[rbp]
	mov	ebx, DWORD PTR 12[rbp]
	mov	r15d, DWORD PTR [rax]
	call	usbd_xfer_get_fps_shift@PLT
	mov	r9d, 1
	mov	edx, eax
	test	r12, r12
	je	.L4
	mov	edi, DWORD PTR [r12]
	mov	DWORD PTR 12[rsp], eax
	call	UE_GET_SS_ISO_MULT@PLT
	mov	edx, DWORD PTR 12[rsp]
	lea	r9d, 1[rax]
.L4:
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR 20[rbp]
	mov	r8d, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR 24[rbp]
	push	r15
	.cfi_def_cfa_offset 88
	push	r14
	.cfi_def_cfa_offset 96
	push	rbx
	.cfi_def_cfa_offset 104
	push	rdx
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR [rax]
	mov	rdx, r13
	call	xhci_configure_endpoint@PLT
	add	rsp, 56
	.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
	.cfi_endproc
.LFE0:
	.size	xhci_configure_endpoint_by_xfer, .-xhci_configure_endpoint_by_xfer
	.comm	XHCI_SCTX_0_SCT_SEC_TR_RING,8,8
	.comm	XHCI_MAX_TRANSFERS,8,8
	.comm	XHCI_MAX_STREAMS,8,8
	.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_configure_endpoint_by_xfer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xhci_configure_endpoint_by_xfer, %function
xhci_configure_endpoint_by_xfer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r2, [r0]
	ldr	r3, [r0, #20]
	ldr	r1, [r2, #4]
	ldr	r0, [r3]
	sub	sp, sp, #36
	bl	xhci_get_endpoint_ext
	ldr	r7, .L10
	ldr	r1, [r6]
	ldr	r3, [r7]
	ldr	r2, [r1, #8]
	cmp	r3, #0
	mov	r10, r0
	str	r2, [sp, #28]
	beq	.L6
	mov	r5, #0
	mov	r9, r5
	ldr	r8, .L10+4
	ldr	r2, [r0, #4]
	ldr	r1, [r8]
	ldr	fp, .L10+8
	mul	r3, r1, r3
.L5:
	mul	r1, r5, r1
	ldr	ip, [r10, #8]
	ldr	r0, [fp]
	add	lr, r1, r1, lsl #1
	add	r0, ip, r0
	add	r3, r3, r5
	add	r3, r3, r3, lsl #1
	str	r9, [r2, lr, lsl #2]
	add	r0, r0, r1, lsl #2
	add	r4, r2, r3, lsl #2
	bl	htole64
	ldr	lr, [r7]
	ldr	r1, [r8]
	ldr	r2, [r10, #4]
	mul	r3, lr, r1
	add	ip, r3, r5
	add	ip, ip, ip, lsl #1
	add	r5, r5, #1
	str	r0, [r4, #8]
	cmp	lr, r5
	add	r0, r2, ip, lsl #2
	str	r9, [r0, #4]
	str	r9, [r2, ip, lsl #2]
	bne	.L5
.L6:
	ldr	r0, [r10]
	bl	usb_pc_cpu_flush
	ldr	r1, [sp, #28]
	ldr	r2, [r6, #20]
	ldr	r3, [r6]
	cmp	r1, #0
	moveq	r4, #1
	ldr	r7, [r2]
	ldr	r8, [r3, #4]
	ldr	r9, [r6, #16]
	ldr	r5, [r6, #12]
	beq	.L4
	ldr	r3, [sp, #28]
	ldr	r0, [r3]
	bl	UE_GET_SS_ISO_MULT
	add	r4, r0, #1
.L4:
	mov	r0, r6
	bl	usbd_xfer_get_fps_shift
	ldm	r6, {r3, ip}
	mov	fp, r0
	ldr	lr, [r3]
	ldr	r6, [r6, #8]
	mov	r3, r9
	mov	r2, r10
	mov	r1, r8
	mov	r0, r7
	str	fp, [sp, #8]
	str	lr, [sp, #20]
	str	r4, [sp, #4]
	str	r5, [sp]
	str	ip, [sp, #16]
	str	r6, [sp, #12]
	bl	xhci_configure_endpoint
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	XHCI_MAX_STREAMS
	.word	XHCI_MAX_TRANSFERS
	.word	XHCI_SCTX_0_SCT_SEC_TR_RING
	.size	xhci_configure_endpoint_by_xfer, .-xhci_configure_endpoint_by_xfer
	.comm	XHCI_SCTX_0_SCT_SEC_TR_RING,4,4
	.comm	XHCI_MAX_TRANSFERS,4,4
	.comm	XHCI_MAX_STREAMS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
