	.file	"extr_xhci-ring.c_xhci_triad_to_transfer_ring.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"WARN: Slot ID %u, ep index %u has streams, but URB has no stream ID.\n"
	.align 8
.LC1:
	.string	"WARN: Slot ID %u, ep index %u has stream IDs 1 to %u allocated, but stream ID %u is requested.\n"
	.text
	.p2align 4
	.globl	xhci_triad_to_transfer_ring
	.type	xhci_triad_to_transfer_ring, @function
xhci_triad_to_transfer_ring:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	r9d, ecx
	mov	ecx, esi
	mov	r8, QWORD PTR [rax+rcx*8]
	mov	eax, edx
	lea	rcx, [rax+rax*2]
	mov	rax, QWORD PTR [r8]
	lea	rax, [rax+rcx*8]
	mov	ecx, DWORD PTR [rax]
	test	DWORD PTR EP_HAS_STREAMS[rip], ecx
	je	.L10
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	test	r9d, r9d
	je	.L11
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR [rax]
	cmp	ecx, r9d
	jbe	.L5
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax+r9*8]
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 16[rax]
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_def_cfa_offset 16
	lea	r8d, -1[rcx]
	xor	eax, eax
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC1[rip]
	call	xhci_warn@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	ecx, edx
	xor	eax, eax
	mov	edx, esi
	lea	rsi, .LC0[rip]
	call	xhci_warn@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	xhci_triad_to_transfer_ring, .-xhci_triad_to_transfer_ring
	.comm	EP_HAS_STREAMS,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_triad_to_transfer_ring.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WARN: Slot ID %u, ep index %u has streams, but URB "
	.ascii	"has no stream ID.\012\000"
	.align	2
.LC1:
	.ascii	"WARN: Slot ID %u, ep index %u has stream IDs 1 to %"
	.ascii	"u allocated, but stream ID %u is requested.\012\000"
	.text
	.align	2
	.global	xhci_triad_to_transfer_ring
	.syntax unified
	.arm
	.fpu softvfp
	.type	xhci_triad_to_transfer_ring, %function
xhci_triad_to_transfer_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	push	{r4, r5, r6, lr}
	ldr	ip, [ip, r1, lsl #2]
	ldr	r4, .L9
	ldr	ip, [ip]
	add	lr, r2, r2, lsl #1
	ldr	r6, [ip, lr, lsl #2]
	ldr	r5, [r4]
	add	ip, ip, lr, lsl #2
	tst	r6, r5
	ldreq	r0, [ip, #8]
	sub	sp, sp, #8
	beq	.L1
	cmp	r3, #0
	mov	r4, r3
	beq	.L8
	ldr	ip, [ip, #4]
	ldr	r3, [ip]
	cmp	r3, r4
	bls	.L5
	ldr	r3, [ip, #4]
	ldr	r0, [r3, r4, lsl #2]
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	sub	r3, r3, #1
	stm	sp, {r3, r4}
	mov	r3, r2
	mov	r2, r1
	ldr	r1, .L9+4
	bl	xhci_warn
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	mov	r3, r2
	mov	r2, r1
	ldr	r1, .L9+8
	bl	xhci_warn
	mov	r0, r4
	b	.L1
.L10:
	.align	2
.L9:
	.word	EP_HAS_STREAMS
	.word	.LC1
	.word	.LC0
	.size	xhci_triad_to_transfer_ring, .-xhci_triad_to_transfer_ring
	.comm	EP_HAS_STREAMS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
