	.file	"extr_atmel_usba_udc.c_usba_ep_dequeue.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ep_dequeue: %s, req %p\n"
	.text
	.p2align 4
	.type	usba_ep_dequeue, @function
usba_ep_dequeue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	to_usba_ep@PLT
	mov	rdi, r12
	mov	rbp, rax
	mov	r13, QWORD PTR 24[rax]
	call	to_usba_req@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR DBG_GADGET[rip]
	lea	rsi, .LC0[rip]
	or	edi, DWORD PTR DBG_QUEUE[rip]
	mov	rcx, rax
	mov	r12, rax
	call	DBG@PLT
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	cmp	QWORD PTR 8[r12], 0
	je	.L3
	cmp	QWORD PTR 8[rbp], r12
	je	.L11
.L3:
	mov	rdi, r12
	call	list_del_init@PLT
	mov	edx, DWORD PTR ECONNRESET[rip]
	mov	rsi, r12
	mov	rdi, rbp
	neg	edx
	call	request_complete@PLT
	mov	rdi, rbp
	call	submit_next_request@PLT
	xor	esi, esi
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR STATUS[rip]
	mov	rdi, rbp
	call	usba_dma_readl@PLT
	mov	DWORD PTR 4[rsp], eax
	test	DWORD PTR USBA_DMA_CH_EN[rip], eax
	jne	.L13
.L4:
	mov	ecx, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR EPT_RST[rip]
	mov	edx, 1
	mov	rdi, r13
	sal	edx, cl
	call	usba_writel@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	call	usba_update_req@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	stop_dma@PLT
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	usba_ep_dequeue, .-usba_ep_dequeue
	.comm	USBA_DMA_CH_EN,4,4
	.comm	STATUS,4,4
	.comm	EPT_RST,4,4
	.comm	ECONNRESET,4,4
	.comm	DBG_QUEUE,4,4
	.comm	DBG_GADGET,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_atmel_usba_udc.c_usba_ep_dequeue.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ep_dequeue: %s, req %p\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usba_ep_dequeue, %function
usba_ep_dequeue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L14
	sub	sp, sp, #8
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_usba_ep
	mov	r4, r0
	mov	r0, r5
	ldr	r6, [r4, #16]
	bl	to_usba_req
	mov	r5, r0
	ldr	r2, .L14+4
	ldr	r3, .L14+8
	ldr	r0, [r2]
	ldr	r1, [r3]
	ldr	r2, [r4, #12]
	mov	r3, r5
	orr	r0, r0, r1
	ldr	r1, .L14+12
	bl	DBG
	mov	r0, r6
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r4, #8]
	cmp	r3, r5
	beq	.L11
.L3:
	mov	r0, r5
	bl	list_del_init
	ldr	r3, .L14+16
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	rsb	r2, r2, #0
	bl	request_complete
	mov	r0, r4
	bl	submit_next_request
	mov	r0, r6
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L14+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	usba_dma_readl
	ldr	r3, .L14+24
	str	r0, [sp]
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L13
.L4:
	mov	r1, #1
	ldr	r2, [r4, #4]
	ldr	r3, .L14+28
	lsl	r2, r1, r2
	mov	r0, r6
	ldr	r1, [r3]
	bl	usba_writel
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [sp]
	bl	usba_update_req
	b	.L3
.L13:
	mov	r1, sp
	mov	r0, r4
	bl	stop_dma
	b	.L4
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	DBG_GADGET
	.word	DBG_QUEUE
	.word	.LC0
	.word	ECONNRESET
	.word	STATUS
	.word	USBA_DMA_CH_EN
	.word	EPT_RST
	.size	usba_ep_dequeue, .-usba_ep_dequeue
	.comm	USBA_DMA_CH_EN,4,4
	.comm	STATUS,4,4
	.comm	EPT_RST,4,4
	.comm	ECONNRESET,4,4
	.comm	DBG_QUEUE,4,4
	.comm	DBG_GADGET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
