	.file	"extr_if_bfe.c_bfe_txeof.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bfe_txeof, @function
bfe_txeof:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	BFE_LOCK_ASSERT@PLT
	mov	esi, DWORD PTR BFE_DMATX_STAT[rip]
	mov	rdi, rbp
	call	CSR_READ_4@PLT
	and	eax, DWORD PTR BFE_STAT_CDMASK[rip]
	mov	r13d, DWORD PTR 0[rbp]
	cdqe
	shr	rax, 2
	cmp	r13d, eax
	je	.L6
	mov	esi, DWORD PTR 40[rbp]
	mov	edi, DWORD PTR 44[rbp]
	movsx	r12, r13d
	mov	edx, DWORD PTR BUS_DMASYNC_POSTREAD[rip]
	or	edx, DWORD PTR BUS_DMASYNC_POSTWRITE[rip]
	sal	r12, 4
	call	bus_dmamap_sync@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbx, QWORD PTR 32[rbp]
	sub	QWORD PTR 8[rbp], 1
	add	rbx, r12
	cmp	QWORD PTR [rbx], 0
	je	.L4
	mov	edx, DWORD PTR BUS_DMASYNC_POSTWRITE[rip]
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 24[rbp]
	call	bus_dmamap_sync@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 24[rbp]
	call	bus_dmamap_unload@PLT
	mov	rdi, QWORD PTR [rbx]
	call	m_freem@PLT
	mov	QWORD PTR [rbx], 0
.L4:
	mov	esi, DWORD PTR BFE_TX_LIST_CNT[rip]
	mov	edi, r13d
	call	BFE_INC@PLT
	jmp	.L3
.L6:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bfe_txeof, .-bfe_txeof
	.comm	IFF_DRV_OACTIVE,4,4
	.comm	BUS_DMASYNC_POSTWRITE,4,4
	.comm	BUS_DMASYNC_POSTREAD,4,4
	.comm	BFE_TX_LIST_CNT,4,4
	.comm	BFE_STAT_CDMASK,4,4
	.comm	BFE_DMATX_STAT,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_if_bfe.c_bfe_txeof.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfe_txeof, %function
bfe_txeof:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	bl	BFE_LOCK_ASSERT
	ldr	r3, .L13
	mov	r0, r4
	ldr	r1, [r3]
	bl	CSR_READ_4
	ldr	r3, .L13+4
	ldr	r7, [r4]
	ldr	r3, [r3]
	and	r3, r3, r0
	cmp	r7, r3, lsr #2
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, .L13+8
	ldr	r9, .L13+12
	ldr	r2, [r3]
	ldr	r3, [r9]
	ldr	r1, [r4, #20]
	ldr	r0, [r4, #24]
	orr	r2, r2, r3
	bl	bus_dmamap_sync
	mov	r10, #0
	ldr	r8, .L13+16
	lsl	r6, r7, #3
.L3:
	ldr	r5, [r4, #16]
	ldr	r3, [r4, #4]
	ldr	r2, [r5, r6]
	sub	r3, r3, #1
	cmp	r2, #0
	str	r3, [r4, #4]
	add	fp, r5, r6
	beq	.L4
	ldr	r2, [r9]
	ldr	r1, [fp, #4]
	ldr	r0, [r4, #12]
	bl	bus_dmamap_sync
	ldr	r1, [fp, #4]
	ldr	r0, [r4, #12]
	bl	bus_dmamap_unload
	ldr	r0, [r5, r6]
	bl	m_freem
	str	r10, [r5, r6]
.L4:
	mov	r0, r7
	ldr	r1, [r8]
	bl	BFE_INC
	b	.L3
.L14:
	.align	2
.L13:
	.word	BFE_DMATX_STAT
	.word	BFE_STAT_CDMASK
	.word	BUS_DMASYNC_POSTREAD
	.word	BUS_DMASYNC_POSTWRITE
	.word	BFE_TX_LIST_CNT
	.size	bfe_txeof, .-bfe_txeof
	.comm	IFF_DRV_OACTIVE,4,4
	.comm	BUS_DMASYNC_POSTWRITE,4,4
	.comm	BUS_DMASYNC_POSTREAD,4,4
	.comm	BFE_TX_LIST_CNT,4,4
	.comm	BFE_STAT_CDMASK,4,4
	.comm	BFE_DMATX_STAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
