	.file	"extr_if_vte.c_vte_txeof.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vte_txeof, @function
vte_txeof:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	VTE_LOCK_ASSERT@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR 32[rbx]
	mov	edi, DWORD PTR 36[rbx]
	mov	edx, DWORD PTR BUS_DMASYNC_POSTREAD[rip]
	or	edx, DWORD PTR BUS_DMASYNC_POSTWRITE[rip]
	mov	r15, QWORD PTR 40[rbx]
	call	bus_dmamap_sync@PLT
	cmp	QWORD PTR 8[rbx], 0
	mov	r14d, DWORD PTR 16[rbx]
	jle	.L1
	movsx	r13, r14d
	xor	r12d, r12d
	sal	r13, 5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	not	eax
	mov	esi, DWORD PTR VTE_TX_RING_CNT[rip]
	mov	edi, r14d
	add	r12d, 2
	and	eax, edx
	mov	QWORD PTR 8[rbp], 0
	mov	DWORD PTR 0[rbp], eax
	call	VTE_DESC_INC@PLT
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	jle	.L8
.L7:
	mov	rbp, QWORD PTR 24[rbx]
	add	rbp, r13
	mov	rax, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR [rax]
	call	le16toh@PLT
	test	DWORD PTR VTE_DTST_TX_OWN[rip], eax
	jne	.L5
	sub	QWORD PTR 8[rbx], 1
	mov	edx, DWORD PTR BUS_DMASYNC_POSTWRITE[rip]
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 20[rbx]
	call	bus_dmamap_sync@PLT
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 20[rbx]
	call	bus_dmamap_unload@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR VTE_TXMBUF[rip]
	test	edx, eax
	jne	.L6
	mov	rdi, QWORD PTR 8[rbp]
	call	m_freem@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR VTE_TXMBUF[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	test	r12d, r12d
	je	.L1
	mov	rax, QWORD PTR 8[rbx]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR IFF_DRV_OACTIVE[rip]
	not	edx
	and	DWORD PTR [r15], edx
	mov	DWORD PTR 16[rbx], r14d
	test	rax, rax
	jne	.L1
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vte_txeof, .-vte_txeof
	.comm	VTE_TX_RING_CNT,4,4
	.comm	VTE_TXMBUF,4,4
	.comm	VTE_DTST_TX_OWN,4,4
	.comm	IFF_DRV_OACTIVE,4,4
	.comm	BUS_DMASYNC_POSTWRITE,4,4
	.comm	BUS_DMASYNC_POSTREAD,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_vte.c_vte_txeof.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vte_txeof, %function
vte_txeof:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #12
	bl	VTE_LOCK_ASSERT
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L15
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L16
	ldr	r1, [r4, #20]
	ldr	r2, [r3]
	ldr	r3, .L16+4
	ldr	r0, [r4, #24]
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [r4, #28]
	str	r3, [sp, #4]
	bl	bus_dmamap_sync
	ldmib	r4, {r3, r10}
	cmp	r3, #0
	ble	.L1
	mov	r8, #0
	ldr	fp, .L16+8
	ldr	r9, .L16+12
	lsl	r7, r10, #4
	b	.L7
.L6:
	ldr	r1, .L16+16
	bic	r3, r3, r2
	ldr	r1, [r1]
	str	r3, [r6, r7]
	mov	r3, #0
	mov	r0, r10
	str	r3, [r5, #4]
	bl	VTE_DESC_INC
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L8
.L7:
	ldr	r6, [r4, #16]
	add	r5, r6, r7
	ldr	r3, [r5, #12]
	ldr	r0, [r3]
	bl	le16toh
	ldr	r3, [fp]
	tst	r0, r3
	bne	.L5
	ldr	r3, [r4, #4]
	ldr	r2, .L16+4
	sub	r3, r3, #1
	ldr	r2, [r2]
	str	r3, [r4, #4]
	ldr	r1, [r5, #8]
	ldr	r0, [r4, #12]
	bl	bus_dmamap_sync
	ldr	r1, [r5, #8]
	ldr	r0, [r4, #12]
	bl	bus_dmamap_unload
	ldr	r3, [r6, r7]
	ldr	r2, [r9]
	add	r8, r8, #2
	tst	r3, r2
	bne	.L6
	ldr	r0, [r5, #4]
	bl	m_freem
	ldr	r3, [r6, r7]
	ldr	r2, [r9]
	b	.L6
.L5:
	cmp	r8, #0
	beq	.L1
	ldr	r3, [r4, #4]
.L8:
	ldr	r0, [sp, #4]
	ldr	r1, .L16+20
	ldr	r2, [r0]
	ldr	r1, [r1]
	cmp	r3, #0
	bic	r2, r2, r1
	str	r2, [r0]
	str	r10, [r4, #8]
	streq	r3, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	BUS_DMASYNC_POSTREAD
	.word	BUS_DMASYNC_POSTWRITE
	.word	VTE_DTST_TX_OWN
	.word	VTE_TXMBUF
	.word	VTE_TX_RING_CNT
	.word	IFF_DRV_OACTIVE
	.size	vte_txeof, .-vte_txeof
	.comm	VTE_TX_RING_CNT,4,4
	.comm	VTE_TXMBUF,4,4
	.comm	VTE_DTST_TX_OWN,4,4
	.comm	IFF_DRV_OACTIVE,4,4
	.comm	BUS_DMASYNC_POSTWRITE,4,4
	.comm	BUS_DMASYNC_POSTREAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
