	.file	"extr_uhci-q.c_uhci_urb_enqueue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uhci_urb_enqueue, @function
uhci_urb_enqueue:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	hcd_to_uhci@PLT
	xor	esi, esi
	mov	rdi, rax
	mov	r14, rax
	call	spin_lock_irqsave@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	usb_hcd_link_urb_to_ep@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L25
.L2:
	mov	rdi, r14
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L25:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rsi, rbp
	mov	rdi, r14
	call	uhci_alloc_urb_priv@PLT
	neg	r12d
	mov	r15, rax
	test	rax, rax
	je	.L3
	mov	rdx, QWORD PTR 8[rbp]
	mov	rbx, QWORD PTR [rdx]
	test	rbx, rbx
	je	.L26
.L4:
	mov	eax, DWORD PTR [rbx]
	mov	QWORD PTR 8[r15], rbx
	cmp	eax, 130
	je	.L6
	jg	.L7
	cmp	eax, 128
	je	.L8
	cmp	eax, 129
	jne	.L10
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r14
	call	uhci_submit_interrupt@PLT
	mov	r12d, eax
	.p2align 4,,10
	.p2align 3
.L10:
	test	r12d, r12d
	je	.L12
	mov	rax, QWORD PTR QH_STATE_IDLE[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L27
.L5:
	mov	rsi, r15
	mov	rdi, r14
	call	uhci_free_urb_priv@PLT
.L3:
	test	r12d, r12d
	je	.L2
	mov	rsi, rbp
	mov	rdi, r13
	call	usb_hcd_unlink_urb_from_ep@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	eax, 131
	jne	.L10
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r14
	call	uhci_submit_bulk@PLT
	mov	r12d, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, 24[rbx]
	mov	rdi, r15
	call	list_add_tail@PLT
	cmp	r15, QWORD PTR 24[rbx]
	jne	.L2
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	jne	.L2
	mov	rsi, rbx
	mov	rdi, r14
	call	uhci_activate_qh@PLT
	mov	rsi, r15
	mov	rdi, r14
	call	uhci_urbp_wants_fsbr@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	mov	DWORD PTR 0[rbp], 0
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r14
	call	uhci_submit_isochronous@PLT
	mov	r12d, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r14
	call	uhci_submit_control@PLT
	mov	r12d, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, r14
	call	uhci_alloc_qh@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rsi, rbx
	mov	rdi, r14
	call	uhci_make_qh_idle@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	uhci_urb_enqueue, .-uhci_urb_enqueue
	.comm	QH_STATE_IDLE,8,8
	.comm	ENOMEM,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_uhci-q.c_uhci_urb_enqueue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uhci_urb_enqueue, %function
uhci_urb_enqueue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r8, r0
	bl	hcd_to_uhci
	mov	r1, #0
	mov	r6, r0
	bl	spin_lock_irqsave
	mov	r1, r5
	mov	r0, r8
	bl	usb_hcd_link_urb_to_ep
	subs	r4, r0, #0
	beq	.L25
.L2:
	mov	r0, r6
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	ldr	r3, .L28
	mov	r1, r5
	mov	r0, r6
	ldr	r4, [r3]
	bl	uhci_alloc_urb_priv
	subs	r9, r0, #0
	rsb	r4, r4, #0
	beq	.L3
	ldr	r2, [r5, #4]
	ldr	r7, [r2]
	cmp	r7, #0
	beq	.L26
.L4:
	ldr	r3, [r7]
	str	r7, [r9, #4]
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L7
.L11:
	mov	r3, #0
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	str	r3, [r5]
	bl	uhci_submit_isochronous
	mov	r4, r0
.L6:
	cmp	r4, #0
	beq	.L12
	ldr	r3, .L28+4
	ldr	r2, [r7, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L27
.L5:
	mov	r1, r9
	mov	r0, r6
	bl	uhci_free_urb_priv
.L3:
	cmp	r4, #0
	beq	.L2
	mov	r1, r5
	mov	r0, r8
	bl	usb_hcd_unlink_urb_from_ep
	b	.L2
.L7:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	uhci_submit_bulk
	mov	r4, r0
	b	.L6
.L9:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	uhci_submit_control
	mov	r4, r0
	b	.L6
.L10:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	uhci_submit_interrupt
	mov	r4, r0
	b	.L6
.L12:
	mov	r0, r9
	add	r1, r7, #12
	bl	list_add_tail
	ldr	r3, [r7, #12]
	cmp	r9, r3
	bne	.L2
	ldr	r3, [r7, #8]
	cmp	r3, #0
	bne	.L2
	mov	r1, r7
	mov	r0, r6
	bl	uhci_activate_qh
	mov	r1, r9
	mov	r0, r6
	bl	uhci_urbp_wants_fsbr
	b	.L2
.L26:
	mov	r0, r6
	ldr	r1, [r5, #8]
	bl	uhci_alloc_qh
	subs	r7, r0, #0
	bne	.L4
	b	.L5
.L27:
	mov	r1, r7
	mov	r0, r6
	bl	uhci_make_qh_idle
	b	.L5
.L29:
	.align	2
.L28:
	.word	ENOMEM
	.word	QH_STATE_IDLE
	.size	uhci_urb_enqueue, .-uhci_urb_enqueue
	.comm	QH_STATE_IDLE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
