	.file	"225143077.c"
	.intel_syntax noprefix
	.text
	.globl	EHCI_LIST_END
	.bss
	.align 4
	.type	EHCI_LIST_END, @object
	.size	EHCI_LIST_END, 4
EHCI_LIST_END:
	.zero	4
	.globl	EHCI_TUNE_CERR
	.align 4
	.type	EHCI_TUNE_CERR, @object
	.size	EHCI_TUNE_CERR, 4
EHCI_TUNE_CERR:
	.zero	4
	.globl	QTD_IOC
	.align 4
	.type	QTD_IOC, @object
	.size	QTD_IOC, 4
QTD_IOC:
	.zero	4
	.globl	QTD_STS_ACTIVE
	.align 4
	.type	QTD_STS_ACTIVE, @object
	.size	QTD_STS_ACTIVE, 4
QTD_STS_ACTIVE:
	.zero	4
	.globl	QTD_TOGGLE
	.align 4
	.type	QTD_TOGGLE, @object
	.size	QTD_TOGGLE, 4
QTD_TOGGLE:
	.zero	4
	.globl	URB_SHORT_NOT_OK
	.align 4
	.type	URB_SHORT_NOT_OK, @object
	.size	URB_SHORT_NOT_OK, 4
URB_SHORT_NOT_OK:
	.zero	4
	.globl	URB_ZERO_PACKET
	.align 4
	.type	URB_ZERO_PACKET, @object
	.size	URB_ZERO_PACKET, 4
URB_ZERO_PACKET:
	.zero	4
	.text
	.type	qh_urb_transaction, @function
qh_urb_transaction:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	DWORD PTR -92[rbp], ecx
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	ehci_qtd_alloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	list_add_tail@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	eax, DWORD PTR QTD_STS_ACTIVE[rip]
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR EHCI_TUNE_CERR[rip]
	sal	eax, 10
	or	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	usb_pipein@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L4
	cmp	DWORD PTR -40[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 32[rax]
	mov	edi, eax
	call	phys_to_virt@PLT
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 16[rdx], rax
.L4:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	usb_pipecontrol@PLT
	test	rax, rax
	je	.L5
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	oxu_buf_alloc@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L28
	mov	eax, DWORD PTR -48[rbp]
	or	ah, 2
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 8
	mov	ecx, edx
	mov	edx, 4
	mov	rdi, rax
	call	qtd_fill@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 48[rax]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	memcpy@PLT
	mov	eax, DWORD PTR QTD_TOGGLE[rip]
	xor	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	ehci_qtd_alloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L29
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	call	QTD_NEXT@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	list_add_tail@PLT
	cmp	DWORD PTR -52[rbp], 0
	jne	.L5
	or	DWORD PTR -48[rbp], 256
.L5:
	mov	edx, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	oxu_buf_alloc@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L30
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -40[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 48[rax]
	mov	edx, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	memcpy@PLT
.L10:
	cmp	DWORD PTR -40[rbp], 0
	je	.L11
	or	DWORD PTR -48[rbp], 256
.L11:
	cmp	DWORD PTR -40[rbp], 0
	sete	al
	movzx	edx, al
	mov	rax, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	esi, ecx
	mov	edi, eax
	call	usb_maxpacket@PLT
	mov	edi, eax
	call	max_packet@PLT
	mov	DWORD PTR -32[rbp], eax
.L18:
	mov	edi, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	esi, DWORD PTR -56[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	qtd_fill@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	eax, DWORD PTR -28[rbp]
	sub	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -40[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 32[rax], edx
.L12:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	and	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR QTD_TOGGLE[rip]
	xor	DWORD PTR -48[rbp], eax
.L13:
	cmp	DWORD PTR -52[rbp], 0
	setle	al
	movzx	eax, al
	mov	edi, eax
	call	likely@PLT
	test	rax, rax
	jne	.L31
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	ehci_qtd_alloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L32
	cmp	DWORD PTR -52[rbp], 0
	setg	al
	movzx	eax, al
	mov	edi, eax
	call	likely@PLT
	test	rax, rax
	je	.L17
	mov	edx, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	oxu_buf_alloc@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L33
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	call	QTD_NEXT@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	list_add_tail@PLT
	jmp	.L18
.L31:
	nop
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR URB_SHORT_NOT_OK[rip]
	and	eax, edx
	test	eax, eax
	je	.L19
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	usb_pipecontrol@PLT
	test	rax, rax
	je	.L20
.L19:
	mov	eax, 1
	jmp	.L21
.L20:
	mov	eax, 0
.L21:
	mov	edi, eax
	call	likely@PLT
	test	rax, rax
	je	.L22
	mov	edx, DWORD PTR EHCI_LIST_END[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 32[rax], edx
.L22:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	setne	al
	movzx	eax, al
	mov	edi, eax
	call	likely@PLT
	test	rax, rax
	je	.L23
	mov	DWORD PTR -44[rbp], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	usb_pipecontrol@PLT
	test	rax, rax
	je	.L24
	mov	DWORD PTR -44[rbp], 1
	xor	DWORD PTR -48[rbp], 256
	mov	eax, DWORD PTR QTD_TOGGLE[rip]
	or	DWORD PTR -48[rbp], eax
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	usb_pipebulk@PLT
	test	rax, rax
	je	.L25
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR URB_ZERO_PACKET[rip]
	and	eax, edx
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	cdq
	idiv	DWORD PTR -32[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L25
	mov	DWORD PTR -44[rbp], 1
.L25:
	cmp	DWORD PTR -44[rbp], 0
	je	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	ehci_qtd_alloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L34
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	call	QTD_NEXT@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	list_add_tail@PLT
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 0
	mov	ecx, edx
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	qtd_fill@PLT
.L23:
	mov	eax, DWORD PTR QTD_IOC[rip]
	mov	edi, eax
	call	cpu_to_le32@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	jmp	.L3
.L28:
	nop
	jmp	.L7
.L29:
	nop
	jmp	.L7
.L30:
	nop
	jmp	.L7
.L32:
	nop
	jmp	.L7
.L33:
	nop
	jmp	.L7
.L34:
	nop
.L7:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	qtd_list_free@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	qh_urb_transaction, .-qh_urb_transaction
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"225143077.c"
	.text
	.comm	EHCI_LIST_END,4,4
	.comm	EHCI_TUNE_CERR,4,4
	.comm	QTD_IOC,4,4
	.comm	QTD_STS_ACTIVE,4,4
	.comm	QTD_TOGGLE,4,4
	.comm	URB_SHORT_NOT_OK,4,4
	.comm	URB_ZERO_PACKET,4,4
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qh_urb_transaction, %function
qh_urb_transaction:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-56]
	bl	ehci_qtd_alloc
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	unlikely
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-48]
	add	r3, r3, #8
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	list_add_tail
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-60]
	str	r2, [r3, #20]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, .L35+4
	ldr	r3, [r3]
	lsl	r3, r3, #10
	ldr	r2, [fp, #-36]
	orr	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	usb_pipein
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	phys_to_virt
	mov	r2, r0
	ldr	r3, [fp, #-60]
	str	r2, [r3, #16]
.L4:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	usb_pipecontrol
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	mov	r2, #4
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-56]
	bl	oxu_buf_alloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-48]
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	orr	r3, r3, #512
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #4
	ldr	r0, [fp, #-48]
	bl	qtd_fill
	ldr	r3, [fp, #-48]
	ldr	r0, [r3, #32]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #20]
	ldr	r3, [r3, #20]
	mov	r2, #4
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	eor	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-56]
	bl	ehci_qtd_alloc
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	unlikely
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-60]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	QTD_NEXT
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	list_add_tail
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-36]
	orr	r3, r3, #256
	str	r3, [fp, #-36]
.L5:
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-56]
	bl	oxu_buf_alloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-48]
	ldr	r0, [r3, #32]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #20]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-40]
	mov	r1, r3
	bl	memcpy
.L10:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-36]
	orr	r3, r3, #256
	str	r3, [fp, #-36]
.L11:
	ldr	r3, [fp, #-60]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-60]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	bl	usb_maxpacket
	mov	r3, r0
	mov	r0, r3
	bl	max_packet
	str	r0, [fp, #-12]
.L18:
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	qtd_fill
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #28]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	str	r2, [r3, #24]
.L12:
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	eor	r3, r3, r2
	str	r3, [fp, #-36]
.L13:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	likely
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-56]
	bl	ehci_qtd_alloc
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	unlikely
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	likely
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-56]
	bl	oxu_buf_alloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L33
.L17:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-60]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	QTD_NEXT
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	list_add_tail
	b	.L18
.L31:
	nop
	ldr	r3, [fp, #-60]
	ldr	r2, [r3, #4]
	ldr	r3, .L35+12
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	usb_pipecontrol
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
.L19:
	mov	r3, #1
	b	.L21
.L20:
	mov	r3, #0
.L21:
	mov	r0, r3
	bl	likely
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L35+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	str	r2, [r3, #24]
.L22:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	likely
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	usb_pipecontrol
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	eor	r3, r3, #256
	str	r3, [fp, #-36]
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	orr	r3, r2, r3
	str	r3, [fp, #-36]
	b	.L25
.L24:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	usb_pipebulk
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-60]
	ldr	r2, [r3, #4]
	ldr	r3, .L35+20
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L25
	mov	r3, #1
	str	r3, [fp, #-28]
.L25:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-56]
	bl	ehci_qtd_alloc
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	unlikely
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-60]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	QTD_NEXT
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	list_add_tail
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	qtd_fill
.L23:
	ldr	r3, .L35+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	cpu_to_le32
	mov	r2, r0
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	orr	r2, r2, r3
	ldr	r3, [fp, #-48]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-64]
	b	.L3
.L28:
	nop
	b	.L7
.L29:
	nop
	b	.L7
.L30:
	nop
	b	.L7
.L32:
	nop
	b	.L7
.L33:
	nop
	b	.L7
.L34:
	nop
.L7:
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	qtd_list_free
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	QTD_STS_ACTIVE
	.word	EHCI_TUNE_CERR
	.word	QTD_TOGGLE
	.word	URB_SHORT_NOT_OK
	.word	EHCI_LIST_END
	.word	URB_ZERO_PACKET
	.word	QTD_IOC
	.size	qh_urb_transaction, .-qh_urb_transaction
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
