	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_txeof
_emac_txeof:                            ## @emac_txeof
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_EMAC_ASSERT_LOCKED
	movq	16(%rbx), %r14
	movq	_EMAC_TX_FIFO0@GOTPCREL(%rip), %rax
	movq	_EMAC_TX_FIFO1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	andl	%r15d, %esi
	movl	%esi, %edx
	notl	%edx
	andl	%edx, (%rbx)
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edx, %edx
	cmpl	%ecx, %esi
	sete	%dl
	movq	_IFCOUNTER_OPACKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%edx
	movq	%r14, %rdi
	callq	_if_inc_counter
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	$0, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_TX_FIFO0,4,2              ## @EMAC_TX_FIFO0
	.comm	_EMAC_TX_FIFO1,4,2              ## @EMAC_TX_FIFO1
	.comm	_IFCOUNTER_OPACKETS,4,2         ## @IFCOUNTER_OPACKETS
	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.no_dead_strip	_emac_txeof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_txeof
_emac_txeof:                            ; @emac_txeof
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	bl	_EMAC_ASSERT_LOCKED
	ldr	x21, [x20, #16]
Lloh0:
	adrp	x8, _EMAC_TX_FIFO0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMAC_TX_FIFO0@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _EMAC_TX_FIFO1@GOTPAGE
Lloh3:
	ldr	x10, [x10, _EMAC_TX_FIFO1@GOTPAGEOFF]
	ldr	w11, [x10]
	orr	w9, w11, w9
	and	w9, w9, w19
	ldr	w11, [x20]
	bic	w11, w11, w9
	str	w11, [x20]
	ldr	w8, [x8]
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh4:
	adrp	x10, _IFCOUNTER_OPACKETS@GOTPAGE
Lloh5:
	ldr	x10, [x10, _IFCOUNTER_OPACKETS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x10]
	cmp	w9, w8
	mov	w8, #1
	cinc	w2, w8, eq
	mov	x0, x21
	bl	_if_inc_counter
Lloh7:
	adrp	x8, _IFF_DRV_OACTIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	str	xzr, [x20, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_TX_FIFO0,4,2              ; @EMAC_TX_FIFO0
	.comm	_EMAC_TX_FIFO1,4,2              ; @EMAC_TX_FIFO1
	.comm	_IFCOUNTER_OPACKETS,4,2         ; @IFCOUNTER_OPACKETS
	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.no_dead_strip	_emac_txeof
.subsections_via_symbols
