	.file	"extr_xhci-ring.c_process_isoc_td.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_isoc_td, @function
process_isoc_td:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	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
	mov	rbx, r8
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	edi, DWORD PTR 4[rcx]
	mov	QWORD PTR 16[rsp], r8
	mov	QWORD PTR 24[rsp], r9
	mov	QWORD PTR 8[rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	le64_to_cpu@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	xhci_dma_to_transfer_ring@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	rbx, rax
	call	le32_to_cpu@PLT
	mov	edi, eax
	call	GET_COMP_CODE@PLT
	mov	rdx, QWORD PTR [r14]
	mov	esi, eax
	mov	DWORD PTR 36[rsp], eax
	mov	rax, QWORD PTR 16[rdx]
	movsx	rax, DWORD PTR [rax]
	lea	rcx, [rax+rax*2]
	mov	rax, QWORD PTR 8[rdx]
	lea	rax, [rax+rcx*4]
	mov	QWORD PTR [rsp], rax
	lea	eax, -128[rsi]
	cmp	eax, 9
	ja	.L2
	lea	rcx, .L4[rip]
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L6-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L8-.L4
	.long	.L6-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR [rdx]
	test	DWORD PTR URB_SHORT_NOT_OK[rip], eax
	jne	.L14
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], 0
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	QWORD PTR 56[rsp], rax
	mov	QWORD PTR 64[rsp], rdx
	cmp	rax, r12
	je	.L23
	mov	QWORD PTR 40[rsp], r13
	lea	r15, 56[rsp]
	lea	r14, 64[rsp]
	mov	DWORD PTR 32[rsp], 0
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rcx, r15
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	call	next_trb@PLT
	mov	rax, QWORD PTR 56[rsp]
	cmp	rax, r12
	je	.L34
.L18:
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR 12[rax]
	call	TRB_TYPE_NOOP_LE32@PLT
	mov	r13d, DWORD PTR 32[rsp]
	test	eax, eax
	jne	.L17
	mov	rax, QWORD PTR 56[rsp]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR 12[rax]
	call	TRB_TYPE_LINK_LE32@PLT
	test	eax, eax
	jne	.L17
	mov	rax, QWORD PTR 56[rsp]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR 8[rax]
	call	le32_to_cpu@PLT
	mov	edi, eax
	call	TRB_LEN@PLT
	mov	r13d, DWORD PTR 32[rsp]
	add	r13d, eax
	mov	DWORD PTR 32[rsp], r13d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r15d, r13d
	mov	r13, QWORD PTR 40[rsp]
.L16:
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR 8[rax]
	call	le32_to_cpu@PLT
	mov	edi, eax
	call	TRB_LEN@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	rbx, rax
	call	le32_to_cpu@PLT
	mov	edi, eax
	call	EVENT_TRB_LEN@PLT
	cmp	DWORD PTR 36[rsp], 130
	je	.L15
	sub	rbx, rax
	mov	rax, QWORD PTR [rsp]
	add	ebx, r15d
	mov	DWORD PTR 4[rax], ebx
	mov	rax, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR [rax]
	add	DWORD PTR 4[rax], ebx
.L15:
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	rcx, r13
	mov	rdx, r12
	mov	rdi, rbp
	push	0
	.cfi_def_cfa_offset 160
	mov	r9, QWORD PTR 40[rsp]
	mov	r8, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	call	finish_td@PLT
	pop	rdx
	.cfi_def_cfa_offset 152
	pop	rcx
	.cfi_def_cfa_offset 144
	mov	rdx, QWORD PTR 72[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L35
	add	rsp, 88
	.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
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR EPROTO[rip]
	mov	rcx, QWORD PTR [rsp]
	neg	eax
	mov	DWORD PTR [rcx], eax
.L11:
	mov	rbx, QWORD PTR [rsp]
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], eax
	add	DWORD PTR 4[rdx], eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR EOVERFLOW[rip]
	mov	rcx, QWORD PTR [rsp]
	neg	eax
	mov	DWORD PTR [rcx], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR ECOMM[rip]
	mov	rcx, QWORD PTR [rsp]
	neg	eax
	mov	DWORD PTR [rcx], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 0[r13]
	call	le32_to_cpu@PLT
	mov	edi, eax
	call	EVENT_TRB_LEN@PLT
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR [rax]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	xor	r15d, r15d
	jmp	.L16
.L2:
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], -1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR EREMOTEIO[rip]
	mov	rdx, QWORD PTR [rsp]
	mov	DWORD PTR 36[rsp], 133
	neg	eax
	mov	DWORD PTR [rdx], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR URB_SHORT_NOT_OK[rip]
	and	eax, DWORD PTR [rdx]
	test	DWORD PTR XHCI_TRUST_TX_LENGTH[rip], ecx
	je	.L36
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR 36[rsp], 133
	mov	DWORD PTR [rax], 0
	jmp	.L8
.L36:
	test	eax, eax
	je	.L37
	mov	eax, DWORD PTR EREMOTEIO[rip]
	mov	rcx, QWORD PTR [rsp]
	neg	eax
	mov	DWORD PTR [rcx], eax
	jmp	.L11
.L35:
	call	__stack_chk_fail@PLT
.L37:
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], 0
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	process_isoc_td, .-process_isoc_td
	.comm	XHCI_TRUST_TX_LENGTH,4,4
	.comm	URB_SHORT_NOT_OK,4,4
	.comm	EREMOTEIO,4,4
	.comm	EPROTO,4,4
	.comm	EOVERFLOW,4,4
	.comm	ECOMM,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_process_isoc_td.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_isoc_td, %function
process_isoc_td:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	mov	r6, r0
	ldr	r0, [r3, #4]
	ldr	r3, .L38
	sub	sp, sp, #52
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r3, [sp, #92]
	mov	r4, r2
	str	r3, [sp, #20]
	mov	r9, r1
	ldr	fp, [sp, #88]
	bl	le64_to_cpu
	mov	r1, r0
	mov	r0, fp
	bl	xhci_dma_to_transfer_ring
	mov	r7, r0
	ldr	r0, [r8]
	bl	le32_to_cpu
	bl	GET_COMP_CODE
	ldr	r1, [r9]
	mov	r10, r0
	ldr	r2, [r1, #12]
	ldr	r3, [r1, #8]
	ldr	r5, [r2]
	sub	r0, r0, #128
	add	r5, r5, r5, lsl #1
	lsl	r2, r5, #2
	add	r5, r3, r5, lsl #2
	cmp	r0, #9
	ldrls	pc, [pc, r0, asl #2]
	b	.L2
.L4:
	.word	.L6
	.word	.L9
	.word	.L8
	.word	.L8
	.word	.L6
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
	.word	.L3
.L10:
	ldr	r0, .L38+4
	ldr	r1, [r9]
	ldr	r0, [r0]
	ldr	ip, .L38+8
	ldr	lr, [r6]
	ldr	ip, [ip]
	tst	lr, r0
	ldr	r0, [r1]
	and	r0, r0, ip
	beq	.L35
	cmp	r0, #0
	bne	.L14
	mov	r10, #133
	str	r0, [r3, r2]
.L8:
	ldm	r7, {r2, r3}
	cmp	r3, r4
	str	r3, [sp, #36]
	str	r2, [sp, #40]
	beq	.L23
	mov	r2, #0
	str	r2, [sp, #24]
	b	.L18
.L17:
	add	r3, sp, #36
	mov	r1, r7
	mov	r0, r6
	add	r2, sp, #40
	bl	next_trb
	ldr	r3, [sp, #36]
	cmp	r3, r4
	beq	.L16
.L18:
	ldr	r3, [r3]
	ldr	r0, [r3, #12]
	bl	TRB_TYPE_NOOP_LE32
	cmp	r0, #0
	bne	.L17
	ldr	r3, [sp, #36]
	ldr	r3, [r3]
	ldr	r0, [r3, #12]
	bl	TRB_TYPE_LINK_LE32
	cmp	r0, #0
	bne	.L17
	ldr	r3, [sp, #36]
	ldr	r3, [r3]
	ldr	r0, [r3, #8]
	bl	le32_to_cpu
	bl	TRB_LEN
	ldr	r3, [sp, #24]
	add	r3, r3, r0
	str	r3, [sp, #24]
	b	.L17
.L23:
	mov	r3, #0
	str	r3, [sp, #24]
.L16:
	ldr	r3, [r4]
	ldr	r0, [r3, #8]
	bl	le32_to_cpu
	bl	TRB_LEN
	mov	r7, r0
	ldr	r0, [r8]
	bl	le32_to_cpu
	bl	EVENT_TRB_LEN
	cmp	r10, #130
	beq	.L15
	ldr	r2, [r9]
	ldr	r1, [sp, #24]
	ldr	r3, [r2, #4]
	sub	r7, r7, r0
	add	r7, r7, r1
	add	r3, r3, r7
	str	r7, [r5, #4]
	str	r3, [r2, #4]
.L15:
	mov	ip, #0
	ldr	r3, [sp, #20]
	mov	r2, r4
	str	r3, [sp, #4]
	mov	r1, r9
	mov	r3, r8
	mov	r0, r6
	str	fp, [sp]
	str	ip, [sp, #8]
	bl	finish_td
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r0, .L38+12
	ldr	r0, [r0]
	rsb	r0, r0, #0
	str	r0, [r3, r2]
.L11:
	ldr	r2, [r5, #8]
	ldr	r3, [r1, #4]
	str	r2, [r5, #4]
	add	r3, r3, r2
	str	r3, [r1, #4]
	b	.L15
.L3:
	ldr	r0, .L38+16
	ldr	r0, [r0]
	rsb	r0, r0, #0
	str	r0, [r3, r2]
	b	.L11
.L9:
	ldr	r0, [r8]
	str	r3, [sp, #28]
	str	r2, [sp, #24]
	bl	le32_to_cpu
	bl	EVENT_TRB_LEN
	cmp	r0, #0
	ldr	r2, [sp, #24]
	ldr	r3, [sp, #28]
	bne	.L10
	ldr	r1, [r9]
	str	r0, [r3, r2]
	b	.L11
.L7:
	ldr	r0, .L38+8
	ldr	r1, [r1]
	ldr	r0, [r0]
	ands	r1, r1, r0
	bne	.L14
.L33:
	str	r1, [r3, r2]
	b	.L8
.L5:
	ldr	r0, .L38+20
	ldr	r0, [r0]
	rsb	r0, r0, #0
	str	r0, [r3, r2]
	b	.L11
.L14:
	ldr	r1, .L38+24
	mov	r10, #133
	ldr	r1, [r1]
	rsb	r1, r1, #0
	b	.L33
.L35:
	cmp	r0, #0
	beq	.L37
	ldr	r0, .L38+24
	ldr	r0, [r0]
	rsb	r0, r0, #0
	str	r0, [r3, r2]
	b	.L11
.L36:
	bl	__stack_chk_fail
.L37:
	str	r0, [r3, r2]
	b	.L11
.L2:
	mvn	r1, #0
	str	r1, [r3, r2]
	b	.L8
.L39:
	.align	2
.L38:
	.word	.LC0
	.word	XHCI_TRUST_TX_LENGTH
	.word	URB_SHORT_NOT_OK
	.word	EPROTO
	.word	EOVERFLOW
	.word	ECOMM
	.word	EREMOTEIO
	.size	process_isoc_td, .-process_isoc_td
	.comm	XHCI_TRUST_TX_LENGTH,4,4
	.comm	URB_SHORT_NOT_OK,4,4
	.comm	EREMOTEIO,4,4
	.comm	EPROTO,4,4
	.comm	EOVERFLOW,4,4
	.comm	ECOMM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
