	.file	"extr_hcd.c_dwc2_hc_init_xfer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"  Control setup transaction\n"
.LC1:
	.string	"  Control data transaction\n"
.LC2:
	.string	"  Control status transaction\n"
	.text
	.p2align 4
	.type	dwc2_hc_init_xfer, @function
dwc2_hc_init_xfer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14, QWORD PTR 24[rdx]
	mov	rbx, rsi
	lea	r13, 24[r14]
	mov	rdi, r13
	call	dwc2_hcd_get_pipe_type@PLT
	cmp	eax, 130
	je	.L2
	jg	.L3
	cmp	eax, 128
	je	.L4
	cmp	eax, 129
	jne	.L1
	mov	DWORD PTR [rbx], 129
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	eax, 131
	jne	.L1
	mov	DWORD PTR [rbx], 131
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR [rbx], 130
	cmp	eax, 133
	je	.L9
	cmp	eax, 134
	je	.L10
	cmp	eax, 132
	jne	.L1
	mov	edi, DWORD PTR 16[r12]
	lea	rsi, .LC2[rip]
	call	dev_vdbg@PLT
	mov	r9d, DWORD PTR 28[r14]
	test	r9d, r9d
	jne	.L14
	mov	DWORD PTR 4[rbx], 1
.L15:
	mov	DWORD PTR 28[rbx], 0
.L16:
	mov	eax, DWORD PTR DWC2_HC_PID_DATA1[rip]
	mov	r8d, DWORD PTR 8[r12]
	mov	DWORD PTR 16[rbx], 0
	mov	DWORD PTR 24[rbx], eax
	test	r8d, r8d
	je	.L17
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 12[r12]
	mov	DWORD PTR [rbx], 128
	test	edi, edi
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 8[r12]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 16[r14]
	lea	rax, [rax+rdx*4]
	mov	edx, DWORD PTR [rax]
	mov	DWORD PTR 8[rax], 0
	add	edx, ecx
	test	esi, esi
	je	.L19
	add	edx, DWORD PTR 8[r14]
	mov	DWORD PTR 8[rbx], edx
.L20:
	mov	eax, DWORD PTR 4[rax]
	sub	eax, ecx
	mov	ecx, DWORD PTR DWC2_HCSPLT_XACTPOS_ALL[rip]
	mov	DWORD PTR 16[rbx], eax
	cmp	DWORD PTR 20[rbx], ecx
	jne	.L1
	cmp	eax, 188
	jle	.L1
	mov	eax, DWORD PTR DWC2_HCSPLT_XACTPOS_BEGIN[rip]
	mov	DWORD PTR 20[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 16[r12]
	lea	rsi, .LC1[rip]
	call	dev_vdbg@PLT
	mov	eax, DWORD PTR 12[rbp]
	mov	DWORD PTR 24[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 16[r12]
	lea	rsi, .LC0[rip]
	call	dev_vdbg@PLT
	mov	eax, DWORD PTR DWC2_HC_PID_SETUP[rip]
	mov	r10d, DWORD PTR 8[r12]
	mov	DWORD PTR 28[rbx], 0
	mov	DWORD PTR 4[rbx], 0
	mov	DWORD PTR 24[rbx], eax
	test	r10d, r10d
	jne	.L28
	mov	eax, DWORD PTR 4[r14]
	mov	DWORD PTR 12[rbx], eax
.L13:
	mov	DWORD PTR 16[rbx], 8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	add	edx, DWORD PTR 12[r14]
	mov	DWORD PTR 12[rbx], edx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L28:
	mov	eax, DWORD PTR [r14]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r13
	call	dwc2_hcd_is_pipe_out@PLT
	mov	DWORD PTR 4[rbx], eax
	test	eax, eax
	je	.L16
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 12[rbx], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dwc2_hc_init_xfer, .-dwc2_hc_init_xfer
	.comm	DWC2_HC_PID_SETUP,4,4
	.comm	DWC2_HC_PID_DATA1,4,4
	.comm	DWC2_HCSPLT_XACTPOS_BEGIN,4,4
	.comm	DWC2_HCSPLT_XACTPOS_ALL,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_hcd.c_dwc2_hc_init_xfer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"  Control setup transaction\012\000"
	.align	2
.LC1:
	.ascii	"  Control data transaction\012\000"
	.align	2
.LC2:
	.ascii	"  Control status transaction\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dwc2_hc_init_xfer, %function
dwc2_hc_init_xfer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [r2, #16]
	mov	r7, r0
	add	r5, r8, #20
	mov	r0, r5
	mov	r6, r2
	mov	r4, r1
	bl	dwc2_hcd_get_pipe_type
	sub	r3, r0, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L1
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	mov	r3, #128
	ldr	r1, [r7, #12]
	str	r3, [r4]
	cmp	r1, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r2, [r6]
	ldr	r3, [r8, #16]
	ldr	lr, [r7, #8]
	add	r2, r2, r2, lsl #1
	cmp	lr, #0
	ldr	ip, [r6, #4]
	ldr	r0, [r3, r2, lsl #2]
	add	r3, r3, r2, lsl #2
	str	r1, [r3, #8]
	ldrne	r1, [r8, #8]
	ldreq	r1, [r8, #12]
	add	r2, ip, r0
	addne	r2, r1, r2
	addeq	r2, r1, r2
	strne	r2, [r4, #8]
	streq	r2, [r4, #12]
	ldr	r2, .L28
	ldr	r3, [r3, #4]
	ldr	r2, [r2]
	ldr	r1, [r4, #20]
	sub	r3, r3, ip
	cmp	r1, r2
	str	r3, [r4, #16]
	popne	{r4, r5, r6, r7, r8, pc}
	cmp	r3, #188
	pople	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L28+4
	ldr	r3, [r3]
	str	r3, [r4, #20]
.L1:
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r3, #131
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r2, #130
	ldr	r3, [r6, #12]
	str	r2, [r4]
	cmp	r3, #133
	beq	.L9
	cmp	r3, #134
	beq	.L10
	cmp	r3, #132
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r1, .L28+8
	ldr	r0, [r7, #16]
	bl	dev_vdbg
	ldr	r3, [r8, #24]
	cmp	r3, #0
	bne	.L14
	mov	r3, #1
	str	r3, [r4, #4]
.L15:
	mov	r3, #0
	str	r3, [r4, #28]
.L16:
	mov	r3, #0
	ldr	r1, [r7, #8]
	ldr	r2, .L28+12
	cmp	r1, r3
	str	r3, [r4, #16]
	ldr	r2, [r2]
	ldrne	r3, [r7]
	ldreq	r3, [r7, #4]
	str	r2, [r4, #24]
	strne	r3, [r4, #8]
	streq	r3, [r4, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r3, #129
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r0, [r7, #16]
	ldr	r1, .L28+16
	bl	dev_vdbg
	ldr	r3, [r6, #8]
	str	r3, [r4, #24]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r1, .L28+20
	ldr	r0, [r7, #16]
	bl	dev_vdbg
	mov	r3, #0
	ldr	r1, [r7, #8]
	str	r3, [r4, #28]
	cmp	r1, r3
	str	r3, [r4, #4]
	ldrne	r3, [r8]
	ldreq	r3, [r8, #4]
	strne	r3, [r4, #8]
	streq	r3, [r4, #12]
	mov	r3, #8
	ldr	r2, .L28+24
	str	r3, [r4, #16]
	ldr	r2, [r2]
	str	r2, [r4, #24]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r5
	bl	dwc2_hcd_is_pipe_out
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L16
	b	.L15
.L29:
	.align	2
.L28:
	.word	DWC2_HCSPLT_XACTPOS_ALL
	.word	DWC2_HCSPLT_XACTPOS_BEGIN
	.word	.LC2
	.word	DWC2_HC_PID_DATA1
	.word	.LC1
	.word	.LC0
	.word	DWC2_HC_PID_SETUP
	.size	dwc2_hc_init_xfer, .-dwc2_hc_init_xfer
	.comm	DWC2_HC_PID_SETUP,4,4
	.comm	DWC2_HC_PID_DATA1,4,4
	.comm	DWC2_HCSPLT_XACTPOS_BEGIN,4,4
	.comm	DWC2_HCSPLT_XACTPOS_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
