	.file	"extr_lpc32xx_udc.c_udc_handle_ep0_out.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	udc_handle_ep0_out, @function
udc_handle_ep0_out:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR EP_OUT[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 8[rdi]
	call	udc_clearep_getsts@PLT
	test	DWORD PTR EP_SEL_ST[rip], eax
	jne	.L19
	mov	ebx, eax
	test	DWORD PTR EP_SEL_EPN[rip], eax
	jne	.L1
	test	DWORD PTR EP_SEL_STP[rip], eax
	jne	.L20
	test	DWORD PTR EP_SEL_F[rip], eax
	je	.L1
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 128
	je	.L6
	cmp	eax, 129
	jne	.L16
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	udc_ep0_out_req@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, DWORD PTR EP_OUT[rip]
	mov	rdi, rbp
	call	udc_clrstall_hwep@PLT
.L16:
	mov	esi, DWORD PTR ECONNABORTED[rip]
	mov	rdi, r12
	neg	esi
	call	nuke@PLT
	mov	DWORD PTR 0[rbp], 128
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r12
	call	nuke@PLT
	mov	DWORD PTR 0[rbp], 128
	test	DWORD PTR EP_SEL_F[rip], ebx
	je	.L1
.L6:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	udc_handle_ep0_setup@PLT
	.cfi_endproc
.LFE0:
	.size	udc_handle_ep0_out, .-udc_handle_ep0_out
	.comm	EP_SEL_STP,4,4
	.comm	EP_SEL_ST,4,4
	.comm	EP_SEL_F,4,4
	.comm	EP_SEL_EPN,4,4
	.comm	EP_OUT,4,4
	.comm	ECONNABORTED,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_lpc32xx_udc.c_udc_handle_ep0_out.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	udc_handle_ep0_out, %function
udc_handle_ep0_out:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L22
	mov	r7, r0
	ldr	r1, [r5]
	ldr	r6, [r0, #4]
	bl	udc_clearep_getsts
	ldr	r3, .L22+4
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L20
	ldr	r3, .L22+8
	mov	r4, r0
	ldr	r1, [r3]
	ands	r1, r0, r1
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L22+12
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L21
	ldr	r3, .L22+16
	ldr	r3, [r3]
	tst	r0, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r7]
	cmp	r3, #128
	beq	.L6
	cmp	r3, #129
	bne	.L16
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	udc_ep0_out_req
.L20:
	mov	r0, r7
	ldr	r1, [r5]
	bl	udc_clrstall_hwep
.L16:
	ldr	r3, .L22+20
	mov	r0, r6
	ldr	r1, [r3]
	rsb	r1, r1, #0
	bl	nuke
	mov	r3, #128
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r0, r6
	bl	nuke
	mov	r2, #128
	ldr	r3, .L22+16
	str	r2, [r7]
	ldr	r3, [r3]
	tst	r4, r3
	popeq	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	udc_handle_ep0_setup
.L23:
	.align	2
.L22:
	.word	EP_OUT
	.word	EP_SEL_ST
	.word	EP_SEL_EPN
	.word	EP_SEL_STP
	.word	EP_SEL_F
	.word	ECONNABORTED
	.size	udc_handle_ep0_out, .-udc_handle_ep0_out
	.comm	EP_SEL_STP,4,4
	.comm	EP_SEL_ST,4,4
	.comm	EP_SEL_F,4,4
	.comm	EP_SEL_EPN,4,4
	.comm	EP_OUT,4,4
	.comm	ECONNABORTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
