	.file	"extr_gadget.c_cdns3_ep_run_transfer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cdns3_ep_run_transfer
	.type	cdns3_ep_run_transfer, @function
cdns3_ep_run_transfer:
.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, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR USB_ENDPOINT_XFER_ISOC[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L59
	mov	ecx, DWORD PTR [rsi]
	mov	eax, 1
	test	ecx, ecx
	cmovne	eax, ecx
	mov	DWORD PTR 8[rsp], eax
.L3:
	mov	eax, DWORD PTR 8[rsp]
	cmp	DWORD PTR 12[r14], eax
	jge	.L4
	mov	eax, DWORD PTR EP_RING_FULL[rip]
	or	DWORD PTR 16[r14], eax
	mov	eax, DWORD PTR ENOBUFS[rip]
	neg	eax
.L1:
	add	rsp, 56
	.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
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR 88[r14]
	mov	rdi, r13
	mov	QWORD PTR [rsp], rax
	call	to_cdns3_request@PLT
	mov	rdx, rax
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR 80[r14]
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR EP_PENDING_REQUEST[rip]
	or	DWORD PTR 16[r14], eax
	mov	eax, DWORD PTR [rdx]
	test	DWORD PTR REQUEST_UNALIGNED[rip], eax
	je	.L6
	mov	rax, QWORD PTR 24[rdx]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 40[rsp], eax
.L7:
	movsx	rcx, DWORD PTR 20[r14]
	mov	rbx, QWORD PTR 32[rsp]
	mov	rax, rcx
	lea	rdi, [rcx+rcx*2]
	mov	rcx, QWORD PTR 56[r14]
	mov	DWORD PTR 4[rbx], eax
	lea	r12, [rcx+rdi*4]
	mov	rdi, QWORD PTR 88[r14]
	mov	QWORD PTR 16[rbx], r12
	call	cdns3_select_ep@PLT
	mov	eax, DWORD PTR 24[r14]
	mov	ecx, DWORD PTR 8[rsp]
	add	ecx, DWORD PTR 20[r14]
	sub	eax, 1
	cmp	ecx, eax
	jge	.L60
.L8:
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR 44[rsp], 1
	mov	rcx, QWORD PTR DEV_VER_V2[rip]
	cmp	QWORD PTR [rax], rcx
	jle	.L61
.L14:
	mov	r11d, DWORD PTR 28[r14]
	xor	ebx, ebx
	test	r11d, r11d
	jne	.L15
	mov	ebx, DWORD PTR TRB_CYCLE[rip]
.L15:
	xor	ebp, ebp
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L66:
	mov	r15d, DWORD PTR 4[r13]
.L18:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR DEV_VER_V2[rip]
	xor	edi, edi
	cmp	QWORD PTR [rax], rdx
	setge	dil
	call	likely@PLT
	xor	r8d, r8d
	test	rax, rax
	jne	.L62
.L19:
	mov	edi, DWORD PTR 64[r14]
	mov	DWORD PTR 28[rsp], r8d
	call	TRB_BURST_LEN@PLT
	mov	edi, r15d
	mov	DWORD PTR 16[rsp], eax
	call	TRB_LEN@PLT
	or	eax, DWORD PTR 16[rsp]
	mov	r8d, DWORD PTR 28[rsp]
	mov	DWORD PTR 4[r12], eax
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR USB_SPEED_SUPER[rip]
	mov	edi, r8d
	cmp	QWORD PTR 16[rax], rdx
	je	.L63
	call	TRB_TDL_HS_SIZE@PLT
	or	ebx, eax
.L21:
	mov	eax, DWORD PTR 28[r14]
	mov	rcx, QWORD PTR USB_ENDPOINT_XFER_ISOC[rip]
	mov	rsi, QWORD PTR [r14]
	test	eax, eax
	cmovne	eax, DWORD PTR TRB_CYCLE[rip]
	test	rbp, rbp
	je	.L23
	or	ebx, eax
	cmp	rsi, rcx
	je	.L64
	mov	eax, DWORD PTR 8[rsp]
	sub	eax, 1
	cmp	ebp, eax
	je	.L37
.L26:
	mov	DWORD PTR [r12], ebx
.L28:
	mov	eax, DWORD PTR 20[r14]
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, r14
	add	rbp, 1
	xor	ebx, ebx
	mov	DWORD PTR 8[rsi], eax
	call	cdns3_ep_inc_enq@PLT
	movsx	rax, DWORD PTR 20[r14]
	lea	rcx, [rax+rax*2]
	mov	rax, QWORD PTR 56[r14]
	lea	r12, [rax+rcx*4]
	cmp	DWORD PTR 8[rsp], ebp
	jle	.L65
.L29:
	mov	edi, DWORD PTR TRB_NORMAL[rip]
	call	TRB_TYPE@PLT
	mov	r10d, DWORD PTR 0[r13]
	mov	edi, DWORD PTR 40[rsp]
	or	ebx, eax
	test	r10d, r10d
	je	.L16
	mov	rax, QWORD PTR 8[r13]
	mov	edi, DWORD PTR 4[rax+rbp*8]
.L16:
	call	TRB_BUFFER@PLT
	mov	r9d, DWORD PTR 0[r13]
	xor	edi, edi
	mov	DWORD PTR 8[r12], eax
	test	r9d, r9d
	sete	dil
	call	likely@PLT
	test	rax, rax
	jne	.L66
	mov	rax, QWORD PTR 8[r13]
	mov	r15d, DWORD PTR [rax+rbp*8]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	rsi, rcx
	je	.L67
.L27:
	mov	rax, QWORD PTR 32[rsp]
	mov	rax, QWORD PTR 16[rax]
	mov	DWORD PTR [rax], ebx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L63:
	call	TRB_TDL_SS_SIZE@PLT
	or	DWORD PTR 4[r12], eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L62:
	mov	esi, DWORD PTR 72[r14]
	mov	edi, r15d
	call	DIV_ROUND_UP@PLT
	mov	r8d, eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L64:
	mov	r8d, DWORD PTR 48[r14]
	test	r8d, r8d
	je	.L38
	mov	eax, DWORD PTR 8[rsp]
	sub	eax, 1
	cmp	eax, ebp
	jne	.L26
.L37:
	mov	eax, DWORD PTR TRB_IOC[rip]
	or	eax, DWORD PTR TRB_ISP[rip]
	or	ebx, eax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L67:
	mov	eax, DWORD PTR 48[r14]
	test	eax, eax
	jne	.L27
.L38:
	mov	eax, DWORD PTR TRB_IOC[rip]
	or	eax, DWORD PTR TRB_ISP[rip]
	or	ebx, eax
	test	rbp, rbp
	jne	.L26
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L65:
	mov	rsi, QWORD PTR 32[rsp]
	mov	eax, DWORD PTR REQUEST_PENDING[rip]
	or	DWORD PTR [rsi], eax
	cmp	DWORD PTR 8[rsp], 1
	mov	rbx, QWORD PTR 16[rsi]
	jg	.L30
	mov	eax, DWORD PTR TRB_IOC[rip]
	or	eax, DWORD PTR TRB_ISP[rip]
	or	DWORD PTR [rbx], eax
.L30:
	xor	eax, eax
	call	wmb@PLT
	mov	esi, DWORD PTR 44[rsp]
	test	esi, esi
	je	.L31
	xor	DWORD PTR [rbx], 1
.L31:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR DEV_VER_V2[rip]
	cmp	QWORD PTR [rax], rdx
	jle	.L68
.L32:
	mov	rax, QWORD PTR 32[rsp]
	mov	rdi, r14
	mov	rsi, QWORD PTR 16[rax]
	call	trace_cdns3_prepare_trb@PLT
	xor	eax, eax
	call	wmb@PLT
	mov	eax, DWORD PTR 16[r14]
	test	DWORD PTR EP_UPDATE_EP_TRBADDR[rip], eax
	je	.L33
	mov	rcx, QWORD PTR [rsp]
	mov	rbx, QWORD PTR USB_ENDPOINT_XFER_ISOC[rip]
	mov	rbp, QWORD PTR 8[rcx]
	cmp	QWORD PTR [r14], rbx
	je	.L69
.L34:
	mov	rax, QWORD PTR 32[rsp]
	mov	edi, DWORD PTR 4[rax]
	imul	edi, DWORD PTR TRB_SIZE[rip]
	movsx	rdi, edi
	add	rdi, QWORD PTR 40[r14]
	call	EP_TRADDR_TRADDR@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	writel@PLT
	mov	eax, DWORD PTR EP_UPDATE_EP_TRBADDR[rip]
	not	eax
	and	DWORD PTR 16[r14], eax
.L33:
	mov	edx, DWORD PTR 36[r14]
	test	edx, edx
	jne	.L35
	mov	eax, DWORD PTR 16[r14]
	test	DWORD PTR EP_STALLED[rip], eax
	je	.L70
.L35:
	mov	rdi, QWORD PTR [rsp]
	call	__cdns3_gadget_wakeup@PLT
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L59:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rdi]
	mov	DWORD PTR 8[rsp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 16[r13]
	mov	DWORD PTR 40[rsp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L69:
	mov	ecx, DWORD PTR 48[r14]
	test	ecx, ecx
	jne	.L34
	mov	ecx, DWORD PTR EP_QUIRK_ISO_OUT_EN[rip]
	test	eax, ecx
	jne	.L34
	or	eax, ecx
	mov	esi, DWORD PTR EP_CFG_ENABLE[rip]
	lea	rdi, 12[rbp]
	mov	DWORD PTR 16[r14], eax
	call	cdns3_set_register_bit@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rbp, QWORD PTR 8[rax]
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L70:
	mov	rdi, r14
	call	trace_cdns3_ring@PLT
	mov	rbx, QWORD PTR [rsp]
	mov	edi, DWORD PTR EP_STS_TRBERR[rip]
	or	edi, DWORD PTR EP_STS_DESCMIS[rip]
	mov	rax, QWORD PTR 8[rbx]
	lea	rsi, 8[rax]
	mov	QWORD PTR 8[rsp], rax
	call	writel@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR EP_CMD_DRDY[rip]
	lea	rsi, 4[rax]
	mov	QWORD PTR 8[rsp], rax
	call	writel@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	readl@PLT
	mov	edi, DWORD PTR 32[r14]
	mov	esi, eax
	call	trace_cdns3_doorbell_epx@PLT
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L60:
	mov	r15, QWORD PTR [rsp]
	mov	rax, QWORD PTR 8[r15]
	lea	rdi, 4[rax]
	mov	QWORD PTR 16[rsp], rax
	call	readl@PLT
	mov	rsi, r14
	mov	rdi, r15
	and	eax, DWORD PTR EP_CMD_DRDY[rip]
	mov	ebx, eax
	call	cdns3_get_dma_pos@PLT
	mov	ecx, eax
	movsx	rax, DWORD PTR 24[r14]
	test	ebx, ebx
	je	.L10
	lea	esi, -1[rax]
	cmp	esi, ecx
	je	.L71
.L10:
	lea	rcx, [rax+rax*2]
	mov	rax, QWORD PTR 56[r14]
	lea	r15, -12[rax+rcx*4]
	mov	rax, QWORD PTR USB_ENDPOINT_XFER_ISOC[rip]
	cmp	QWORD PTR [r14], rax
	je	.L11
	xor	ebx, ebx
	cmp	DWORD PTR TRBS_PER_SEGMENT[rip], 2
	jle	.L12
.L11:
	mov	ebx, DWORD PTR TRB_CHAIN[rip]
.L12:
	mov	ebp, DWORD PTR 28[r14]
	mov	edi, DWORD PTR TRB_LINK[rip]
	test	ebp, ebp
	cmovne	ebp, DWORD PTR TRB_CYCLE[rip]
	call	TRB_TYPE@PLT
	or	ebx, DWORD PTR TRB_TOGGLE[rip]
	or	ebx, ebp
	or	ebx, eax
	mov	DWORD PTR [r15], ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L68:
	mov	rsi, r14
	mov	rdi, rax
	call	cdns3_wa1_tray_restore_cycle_bit@PLT
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L61:
	mov	rsi, r12
	mov	rdi, r14
	call	cdns3_wa1_update_guard@PLT
	mov	DWORD PTR 44[rsp], eax
	jmp	.L14
.L71:
	mov	eax, DWORD PTR EP_DEFERRED_DRDY[rip]
	or	DWORD PTR 16[r14], eax
	mov	eax, DWORD PTR ENOBUFS[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cdns3_ep_run_transfer, .-cdns3_ep_run_transfer
	.comm	USB_SPEED_SUPER,8,8
	.comm	USB_ENDPOINT_XFER_ISOC,8,8
	.comm	TRB_TOGGLE,4,4
	.comm	TRB_SIZE,4,4
	.comm	TRB_NORMAL,4,4
	.comm	TRB_LINK,4,4
	.comm	TRB_ISP,4,4
	.comm	TRB_IOC,4,4
	.comm	TRB_CYCLE,4,4
	.comm	TRB_CHAIN,4,4
	.comm	TRBS_PER_SEGMENT,4,4
	.comm	REQUEST_UNALIGNED,4,4
	.comm	REQUEST_PENDING,4,4
	.comm	EP_UPDATE_EP_TRBADDR,4,4
	.comm	EP_STS_TRBERR,4,4
	.comm	EP_STS_DESCMIS,4,4
	.comm	EP_STALLED,4,4
	.comm	EP_RING_FULL,4,4
	.comm	EP_QUIRK_ISO_OUT_EN,4,4
	.comm	EP_PENDING_REQUEST,4,4
	.comm	EP_DEFERRED_DRDY,4,4
	.comm	EP_CMD_DRDY,4,4
	.comm	EP_CFG_ENABLE,4,4
	.comm	ENOBUFS,4,4
	.comm	DEV_VER_V2,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_gadget.c_cdns3_ep_run_transfer.c"
	.text
	.align	2
	.global	cdns3_ep_run_transfer
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdns3_ep_run_transfer, %function
cdns3_ep_run_transfer:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L82
	mov	r8, r0
	ldr	r2, [r3]
	ldr	r0, [r0]
	mov	r7, r1
	cmp	r0, r2
	sub	sp, sp, #20
	beq	.L69
	ldr	r3, [r1]
	cmp	r3, #0
	moveq	r3, #1
	str	r3, [sp]
.L3:
	ldr	r2, [r8, #8]
	ldr	r3, [sp]
	cmp	r2, r3
	bge	.L4
	ldr	r2, .L82+4
.L67:
	ldr	r0, .L82+8
	ldr	r1, [r2]
	ldr	r0, [r0]
	ldr	r2, [r8, #12]
	rsb	r0, r0, #0
	orr	r2, r2, r1
	str	r2, [r8, #12]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r0, r7
	ldr	r9, [r8, #60]
	bl	to_cdns3_request
	mov	r10, r0
	ldr	r2, .L82+12
	ldr	r1, [r10]
	ldr	r2, [r2]
	ldr	r0, .L82+16
	tst	r1, r2
	ldr	r0, [r0]
	ldr	r2, [r8, #12]
	ldr	r1, [r8, #56]
	orr	r2, r2, r0
	ldr	r1, [r1]
	str	r2, [r8, #12]
	ldrne	r2, [r10, #16]
	ldr	r5, [r8, #44]
	ldrne	r3, [r2]
	ldr	r2, [r8, #16]
	ldreq	r3, [r7, #12]
	add	r0, r2, r2, lsl #1
	add	r5, r5, r0, lsl #2
	str	r2, [r10, #4]
	ldr	r0, [r8, #60]
	str	r5, [r10, #12]
	str	r3, [sp, #8]
	bl	cdns3_select_ep
	ldr	r1, [r8, #16]
	ldr	r2, [r8, #20]
	ldr	r3, [sp]
	sub	r2, r2, #1
	add	r1, r3, r1
	cmp	r1, r2
	bge	.L70
.L8:
	ldr	r3, .L82+20
	ldr	r1, [r9]
	ldr	r2, [r3]
	cmp	r1, r2
	movgt	r3, #1
	strgt	r3, [sp, #12]
	ble	.L71
.L14:
	ldr	r2, [r8, #24]
	mov	r6, #0
	cmp	r2, #0
	ldreq	r2, .L82+24
	movne	r4, #0
	ldreq	r4, [r2]
	str	r10, [sp, #4]
	b	.L30
.L76:
	cmp	r1, r2
	orr	r4, r4, r3
	beq	.L72
.L25:
	ldr	r3, [sp]
	sub	r3, r3, #1
	cmp	r3, r6
	bne	.L28
	ldr	r3, .L82+28
	ldr	r2, .L82+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r4, r4, r3
.L28:
	str	r4, [r5]
.L29:
	ldr	r3, [r8, #16]
	ldr	r2, [sp, #4]
	mov	r0, r8
	str	r3, [r2, #8]
	bl	cdns3_ep_inc_enq
	ldr	r3, [r8, #16]
	ldr	r2, [sp]
	ldr	r5, [r8, #44]
	add	r6, r6, #1
	add	r3, r3, r3, lsl #1
	cmp	r2, r6
	mov	r4, #0
	add	r5, r5, r3, lsl #2
	ble	.L73
.L30:
	ldr	r3, .L82+36
	ldr	r0, [r3]
	bl	TRB_TYPE
	ldr	r3, [r7]
	orr	r4, r4, r0
	cmp	r3, #0
	ldrne	r3, [r7, #8]
	ldreq	r0, [sp, #8]
	addne	r3, r3, r6, lsl #3
	ldrne	r0, [r3, #4]
	bl	TRB_BUFFER
	ldr	r3, [r7]
	str	r0, [r5, #8]
	clz	r0, r3
	lsr	r0, r0, #5
	bl	likely
	cmp	r0, #0
	ldreq	r3, [r7, #8]
	ldr	r0, [r9]
	ldreq	fp, [r3, r6, lsl #3]
	ldr	r3, .L82+20
	ldrne	fp, [r7, #4]
	ldr	r3, [r3]
	cmp	r0, r3
	movlt	r0, #0
	movge	r0, #1
	bl	likely
	subs	r10, r0, #0
	bne	.L74
.L19:
	ldr	r0, [r8, #48]
	bl	TRB_BURST_LEN
	mov	r2, r0
	mov	r0, fp
	mov	fp, r2
	bl	TRB_LEN
	ldr	r3, .L82+40
	ldr	r1, [r9, #8]
	ldr	r2, [r3]
	orr	fp, fp, r0
	cmp	r1, r2
	mov	r0, r10
	str	fp, [r5, #4]
	beq	.L75
	bl	TRB_TDL_HS_SIZE
	orr	r4, r4, r0
.L21:
	ldr	r3, [r8, #24]
	ldr	r2, .L82
	cmp	r3, #0
	ldrne	r3, .L82+24
	ldr	r2, [r2]
	ldrne	r3, [r3]
	cmp	r6, #0
	ldr	r1, [r8]
	bne	.L76
	cmp	r1, r2
	beq	.L77
.L38:
	ldr	r3, [sp, #4]
	ldr	r3, [r3, #12]
	str	r4, [r3]
	b	.L29
.L75:
	bl	TRB_TDL_SS_SIZE
	ldr	r3, [r5, #4]
	orr	r3, r3, r0
	str	r3, [r5, #4]
	b	.L21
.L74:
	mov	r0, fp
	ldr	r1, [r8, #52]
	bl	DIV_ROUND_UP
	mov	r10, r0
	b	.L19
.L72:
	ldr	r3, [r8, #40]
	cmp	r3, #0
	bne	.L25
.L40:
	ldr	r3, .L82+28
	ldr	r2, .L82+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r6, #0
	orr	r3, r3, r2
	orr	r4, r4, r3
	bne	.L28
	b	.L38
.L77:
	ldr	r3, [r8, #40]
	cmp	r3, #0
	beq	.L40
	b	.L38
.L73:
	ldr	r10, [sp, #4]
	ldr	r1, .L82+44
	ldr	r2, [r10]
	ldr	r1, [r1]
	ldr	r3, [sp]
	orr	r2, r2, r1
	cmp	r3, #1
	ldr	r4, [r10, #12]
	str	r2, [r10]
	bgt	.L31
	ldr	r2, .L82+32
	ldr	r1, .L82+28
	ldr	r0, [r2]
	ldr	r1, [r1]
	ldr	r2, [r4]
	orr	r1, r1, r0
	orr	r2, r2, r1
	str	r2, [r4]
.L31:
	bl	wmb
	ldr	r3, [sp, #12]
	ldr	r1, [r9]
	cmp	r3, #0
	ldrne	r2, [r4]
	ldr	r3, .L82+20
	eorne	r2, r2, #1
	strne	r2, [r4]
	ldr	r2, [r3]
	cmp	r1, r2
	ble	.L78
.L33:
	ldr	r4, .L82+48
	ldr	r1, [r10, #12]
	mov	r0, r8
	bl	trace_cdns3_prepare_trb
	bl	wmb
	ldr	r1, [r4]
	ldr	r2, [r8, #12]
	tst	r2, r1
	beq	.L34
	ldr	r3, .L82
	ldr	r0, [r8]
	ldr	r1, [r3]
	cmp	r0, r1
	beq	.L79
.L35:
	ldr	r2, .L82+52
	ldr	r1, [r10, #4]
	ldr	r0, [r2]
	ldr	r2, [r8, #36]
	mla	r0, r1, r0, r2
	bl	EP_TRADDR_TRADDR
	ldr	r1, [r9, #4]
	bl	writel
	ldr	r2, [r8, #12]
	ldr	r1, [r4]
	bic	r2, r2, r1
	str	r2, [r8, #12]
.L34:
	ldr	r1, [r8, #32]
	cmp	r1, #0
	bne	.L36
	ldr	r1, .L82+56
	ldr	r1, [r1]
	tst	r2, r1
	beq	.L80
.L36:
	mov	r0, r9
	bl	__cdns3_gadget_wakeup
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L69:
	ldr	r3, [r8, #4]
	str	r3, [sp]
	b	.L3
.L79:
	ldr	r1, [r8, #40]
	cmp	r1, #0
	bne	.L35
	ldr	r1, .L82+60
	ldr	r1, [r1]
	tst	r2, r1
	bne	.L35
	ldr	r0, [r9, #4]
	ldr	ip, .L82+64
	orr	r2, r2, r1
	str	r2, [r8, #12]
	ldr	r1, [ip]
	add	r0, r0, #12
	bl	cdns3_set_register_bit
	b	.L35
.L80:
	mov	r0, r8
	bl	trace_cdns3_ring
	ldr	r1, .L82+68
	ldr	r2, .L82+72
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, [r9, #4]
	orr	r0, r0, r2
	add	r1, r1, #8
	bl	writel
	ldr	r2, .L82+76
	ldr	r1, [r9, #4]
	ldr	r0, [r2]
	add	r1, r1, #4
	bl	writel
	ldr	r0, [r9, #4]
	ldr	r4, [r8, #28]
	bl	readl
	mov	r1, r0
	mov	r0, r4
	bl	trace_cdns3_doorbell_epx
	b	.L36
.L70:
	ldr	r0, [r9, #4]
	add	r0, r0, #4
	bl	readl
	mov	r4, r0
	ldr	r2, .L82+76
	mov	r1, r8
	ldr	r2, [r2]
	mov	r0, r9
	and	r4, r4, r2
	bl	cdns3_get_dma_pos
	cmp	r4, #0
	ldr	r4, [r8, #20]
	beq	.L10
	sub	r2, r4, #1
	cmp	r2, r0
	beq	.L81
.L10:
	ldr	r3, .L82
	ldr	r1, [r8]
	ldr	r2, [r3]
	add	r4, r4, r4, lsl #1
	lsl	r4, r4, #2
	cmp	r1, r2
	sub	r4, r4, #12
	ldr	r2, [r8, #44]
	beq	.L11
	ldr	r1, .L82+80
	ldr	r1, [r1]
	cmp	r1, #2
	movle	r6, #0
	ble	.L12
.L11:
	ldr	r1, .L82+84
	ldr	r6, [r1]
.L12:
	ldr	fp, [r8, #24]
	str	r2, [sp, #4]
	cmp	fp, #0
	ldrne	r1, .L82+24
	ldrne	fp, [r1]
	ldr	r1, .L82+88
	ldr	r0, [r1]
	bl	TRB_TYPE
	ldr	r1, .L82+92
	ldr	r2, [sp, #4]
	ldr	r1, [r1]
	orr	r6, r6, r1
	orr	fp, r6, fp
	orr	fp, fp, r0
	str	fp, [r2, r4]
	b	.L8
.L78:
	mov	r1, r8
	mov	r0, r9
	bl	cdns3_wa1_tray_restore_cycle_bit
	b	.L33
.L71:
	mov	r1, r5
	mov	r0, r8
	bl	cdns3_wa1_update_guard
	str	r0, [sp, #12]
	b	.L14
.L81:
	ldr	r2, .L82+96
	b	.L67
.L83:
	.align	2
.L82:
	.word	USB_ENDPOINT_XFER_ISOC
	.word	EP_RING_FULL
	.word	ENOBUFS
	.word	REQUEST_UNALIGNED
	.word	EP_PENDING_REQUEST
	.word	DEV_VER_V2
	.word	TRB_CYCLE
	.word	TRB_IOC
	.word	TRB_ISP
	.word	TRB_NORMAL
	.word	USB_SPEED_SUPER
	.word	REQUEST_PENDING
	.word	EP_UPDATE_EP_TRBADDR
	.word	TRB_SIZE
	.word	EP_STALLED
	.word	EP_QUIRK_ISO_OUT_EN
	.word	EP_CFG_ENABLE
	.word	EP_STS_TRBERR
	.word	EP_STS_DESCMIS
	.word	EP_CMD_DRDY
	.word	TRBS_PER_SEGMENT
	.word	TRB_CHAIN
	.word	TRB_LINK
	.word	TRB_TOGGLE
	.word	EP_DEFERRED_DRDY
	.size	cdns3_ep_run_transfer, .-cdns3_ep_run_transfer
	.comm	USB_SPEED_SUPER,4,4
	.comm	USB_ENDPOINT_XFER_ISOC,4,4
	.comm	TRB_TOGGLE,4,4
	.comm	TRB_SIZE,4,4
	.comm	TRB_NORMAL,4,4
	.comm	TRB_LINK,4,4
	.comm	TRB_ISP,4,4
	.comm	TRB_IOC,4,4
	.comm	TRB_CYCLE,4,4
	.comm	TRB_CHAIN,4,4
	.comm	TRBS_PER_SEGMENT,4,4
	.comm	REQUEST_UNALIGNED,4,4
	.comm	REQUEST_PENDING,4,4
	.comm	EP_UPDATE_EP_TRBADDR,4,4
	.comm	EP_STS_TRBERR,4,4
	.comm	EP_STS_DESCMIS,4,4
	.comm	EP_STALLED,4,4
	.comm	EP_RING_FULL,4,4
	.comm	EP_QUIRK_ISO_OUT_EN,4,4
	.comm	EP_PENDING_REQUEST,4,4
	.comm	EP_DEFERRED_DRDY,4,4
	.comm	EP_CMD_DRDY,4,4
	.comm	EP_CFG_ENABLE,4,4
	.comm	ENOBUFS,4,4
	.comm	DEV_VER_V2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
