	.file	"extr_tx.c_efx_dequeue_buffers.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TX queue %d spurious TX completion id %x\n"
	.text
	.p2align 4
	.type	efx_dequeue_buffers, @function
efx_dequeue_buffers:
.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
	lea	r12d, 1[rsi]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, DWORD PTR [rdi]
	mov	r13, QWORD PTR 24[rdi]
	and	r12d, ebx
	and	ebx, DWORD PTR 4[rdi]
	cmp	r12d, ebx
	je	.L1
	mov	rbp, rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, r14
	mov	rdi, rbp
	call	efx_dequeue_buffer@PLT
	mov	eax, DWORD PTR 4[rbp]
	lea	ebx, 1[rax]
	mov	DWORD PTR 4[rbp], ebx
	and	ebx, DWORD PTR 0[rbp]
	cmp	r12d, ebx
	je	.L1
.L4:
	mov	rdx, QWORD PTR 16[rbp]
	mov	eax, ebx
	xor	edi, edi
	lea	r14, [rdx+rax*8]
	cmp	QWORD PTR [r14], 0
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L3
	mov	r8d, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 0[r13]
	mov	rdi, r13
	mov	r9d, ebx
	mov	esi, DWORD PTR tx_err[rip]
	lea	rcx, .LC0[rip]
	call	netif_err@PLT
	mov	esi, DWORD PTR RESET_TYPE_TX_SKIP[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	efx_schedule_reset@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.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
	.cfi_endproc
.LFE0:
	.size	efx_dequeue_buffers, .-efx_dequeue_buffers
	.comm	tx_err,4,4
	.comm	RESET_TYPE_TX_SKIP,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_tx.c_efx_dequeue_buffers.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TX queue %d spurious TX completion id %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_dequeue_buffers, %function
efx_dequeue_buffers:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0, #4]
	ldr	r4, [r0]
	add	r7, r1, #1
	and	r7, r7, r4
	and	r4, r4, r3
	cmp	r7, r4
	ldr	r8, [r0, #16]
	sub	sp, sp, #8
	beq	.L1
	mov	r5, r0
	b	.L4
.L3:
	mov	r1, r6
	mov	r0, r5
	bl	efx_dequeue_buffer
	ldr	r3, [r5, #4]
	ldr	r4, [r5]
	add	r3, r3, #1
	and	r4, r4, r3
	cmp	r7, r4
	str	r3, [r5, #4]
	beq	.L1
.L4:
	ldr	r1, [r5, #12]
	ldr	r0, [r1, r4, lsl #2]
	add	r6, r1, r4, lsl #2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	beq	.L3
	ldr	r1, [r5, #8]
	ldr	r2, [r8]
	stm	sp, {r1, r4}
	ldr	r3, .L8
	mov	r0, r8
	ldr	r1, [r3]
	ldr	r3, .L8+4
	bl	netif_err
	mov	r0, r8
	ldr	r3, .L8+8
	ldr	r1, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	efx_schedule_reset
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	tx_err
	.word	.LC0
	.word	RESET_TYPE_TX_SKIP
	.size	efx_dequeue_buffers, .-efx_dequeue_buffers
	.comm	tx_err,4,4
	.comm	RESET_TYPE_TX_SKIP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
