	.file	"extr_bcm63xx_udc.c_bcm63xx_ep0_one_round.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bcm63xx_ep0_one_round, @function
bcm63xx_ep0_one_round:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	cmp	QWORD PTR 48[rdi], 0
	mov	rbp, rdi
	mov	ecx, 1
	mov	eax, DWORD PTR [rdi]
	jne	.L2
	xor	ecx, ecx
	cmp	QWORD PTR 40[rdi], 0
	setne	cl
.L2:
	sub	eax, 129
	cmp	eax, 7
	ja	.L9
	lea	rdx, .L22[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L22:
	.long	.L3-.L22
	.long	.L17-.L22
	.long	.L13-.L22
	.long	.L15-.L22
	.long	.L19-.L22
	.long	.L6-.L22
	.long	.L11-.L22
	.long	.L5-.L22
	.text
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR 32[rbp]
	test	eax, eax
	jne	.L40
	test	ecx, ecx
	jne	.L41
.L9:
	mov	eax, DWORD PTR EAGAIN[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR 32[rbp]
	test	esi, esi
	jne	.L42
	test	ecx, ecx
	je	.L9
	mov	rdx, QWORD PTR IUDMA_EP0_TXCHAN[rip]
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	lea	rsi, [rax+rdx*4]
	call	iudma_reset_channel@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	bcm63xx_ep0_nuke_reply@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, 129
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	bcm63xx_ep0_do_idle@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR BCM63XX_MAX_CTRL_PKT[rip]
	mov	rsi, QWORD PTR IUDMA_EP0_RXCHAN[rip]
	mov	rdi, rbp
	call	bcm63xx_ep0_internal_request@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, 136
.L4:
	cmp	edx, eax
	je	.L9
.L21:
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbp]
	test	rdx, rdx
	je	.L7
	mov	rsi, QWORD PTR IUDMA_EP0_RXCHAN[rip]
	mov	rdi, rbp
	call	bcm63xx_ep0_map_write@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, 132
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, DWORD PTR 32[rbp]
	test	edx, edx
	jne	.L43
	test	ecx, ecx
	je	.L9
	mov	rdx, QWORD PTR IUDMA_EP0_RXCHAN[rip]
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	lea	rsi, [rax+rdx*4]
	call	iudma_reset_channel@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	bcm63xx_ep0_nuke_reply@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, 129
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, QWORD PTR 8[rbp]
	test	rsi, rsi
	je	.L44
	xor	edx, edx
	mov	rdi, rbp
	call	bcm63xx_ep0_complete@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, 136
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR 8[rbp]
	test	rdx, rdx
	je	.L7
	mov	rsi, QWORD PTR IUDMA_EP0_TXCHAN[rip]
	mov	rdi, rbp
	call	bcm63xx_ep0_map_write@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, 135
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	test	ecx, ecx
	je	.L9
	mov	eax, 129
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L44:
	test	ecx, ecx
	je	.L9
	mov	eax, 136
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rdx, QWORD PTR IUDMA_EP0_TXCHAN[rip]
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	lea	rsi, [rax+rdx*4]
	call	iudma_reset_channel@PLT
	mov	QWORD PTR 16[rbp], 0
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, 129
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L42:
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, rbp
	call	bcm63xx_ep0_read_complete@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, 129
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L43:
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, rbp
	call	bcm63xx_ep0_read_complete@PLT
	mov	rsi, QWORD PTR IUDMA_EP0_TXCHAN[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	bcm63xx_ep0_internal_request@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, 130
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, rbp
	call	bcm63xx_ep0_read_complete@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, 129
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	bcm63xx_ep0_one_round, .-bcm63xx_ep0_one_round
	.comm	IUDMA_EP0_TXCHAN,8,8
	.comm	IUDMA_EP0_RXCHAN,8,8
	.comm	EAGAIN,4,4
	.comm	BCM63XX_MAX_CTRL_PKT,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_bcm63xx_udc.c_bcm63xx_ep0_one_round.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcm63xx_ep0_one_round, %function
bcm63xx_ep0_one_round:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #24]
	push	{r4, r5, r6, lr}
	cmp	r2, #0
	mov	r4, r0
	ldr	r3, [r0]
	movne	r0, #1
	bne	.L2
	ldr	r0, [r4, #20]
	subs	r0, r0, #0
	movne	r0, #1
.L2:
	sub	r3, r3, #129
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L9
.L22:
	.word	.L3
	.word	.L17
	.word	.L13
	.word	.L15
	.word	.L19
	.word	.L6
	.word	.L11
	.word	.L5
.L17:
	ldr	r5, [r4, #16]
	cmp	r5, #0
	bne	.L39
	cmp	r0, #0
	bne	.L40
.L9:
	ldr	r3, .L44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	bcm63xx_ep0_do_idle
.L3:
	ldr	r3, .L44+4
	ldr	r2, .L44+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	bcm63xx_ep0_internal_request
	mov	r3, #136
	ldr	r2, [r4]
.L4:
	cmp	r2, r3
	beq	.L9
.L21:
	mov	r0, #0
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L7
	ldr	r3, .L44+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	bcm63xx_ep0_map_write
	mov	r3, #132
	ldr	r2, [r4]
	b	.L4
.L15:
	ldr	r5, [r4, #16]
	cmp	r5, #0
	bne	.L41
	cmp	r0, #0
	beq	.L9
	ldr	r2, .L44+4
	ldr	r3, [r4, #12]
	ldr	r1, [r2]
	mov	r0, r4
	add	r1, r3, r1, lsl #2
	bl	iudma_reset_channel
	mov	r1, r5
	mov	r0, r4
	bl	bcm63xx_ep0_nuke_reply
	mov	r3, #129
	ldr	r2, [r4]
	b	.L4
.L6:
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L7
	ldr	r3, .L44+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	bcm63xx_ep0_map_write
	mov	r3, #135
	ldr	r2, [r4]
	b	.L4
.L11:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L42
	cmp	r0, #0
	beq	.L9
	ldr	r2, .L44+12
	ldr	r3, [r4, #12]
	ldr	r1, [r2]
	mov	r0, r4
	add	r1, r3, r1, lsl #2
	bl	iudma_reset_channel
	mov	r1, #1
	mov	r0, r4
	bl	bcm63xx_ep0_nuke_reply
	mov	r3, #129
	ldr	r2, [r4]
	b	.L4
.L19:
	ldr	r1, [r4, #4]
	cmp	r1, #0
	beq	.L43
	mov	r2, #0
	mov	r0, r4
	bl	bcm63xx_ep0_complete
	mov	r1, #0
	mov	r3, #136
	ldr	r2, [r4]
	str	r1, [r4, #4]
	b	.L4
.L7:
	cmp	r0, #0
	beq	.L9
	mov	r3, #129
	b	.L21
.L43:
	cmp	r0, #0
	beq	.L9
	mov	r3, #136
	b	.L21
.L40:
	ldr	r2, .L44+12
	ldr	r3, [r4, #12]
	ldr	r1, [r2]
	mov	r0, r4
	add	r1, r3, r1, lsl #2
	bl	iudma_reset_channel
	mov	r3, #129
	ldr	r2, [r4]
	str	r5, [r4, #8]
	b	.L4
.L39:
	mov	r0, r4
	bl	bcm63xx_ep0_read_complete
	mov	r3, #129
	ldr	r2, [r4]
	b	.L4
.L42:
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4, #4]
	bl	bcm63xx_ep0_read_complete
	mov	r3, #129
	ldr	r2, [r4]
	b	.L4
.L41:
	mov	r5, #0
	mov	r0, r4
	str	r5, [r4, #4]
	bl	bcm63xx_ep0_read_complete
	ldr	r3, .L44+12
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r4
	bl	bcm63xx_ep0_internal_request
	mov	r3, #130
	ldr	r2, [r4]
	b	.L4
.L45:
	.align	2
.L44:
	.word	EAGAIN
	.word	IUDMA_EP0_RXCHAN
	.word	BCM63XX_MAX_CTRL_PKT
	.word	IUDMA_EP0_TXCHAN
	.size	bcm63xx_ep0_one_round, .-bcm63xx_ep0_one_round
	.comm	IUDMA_EP0_TXCHAN,4,4
	.comm	IUDMA_EP0_RXCHAN,4,4
	.comm	EAGAIN,4,4
	.comm	BCM63XX_MAX_CTRL_PKT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
