	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fv_tx
_fv_tx:                                 ## @fv_tx
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_FV_LOCK_ASSERT
	movl	(%rbx), %r14d
	cmpl	4(%rbx), %r14d
	jne	LBB0_1
## %bb.10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movslq	%r14d, %r15
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_BUS_DMASYNC_POSTREAD@GOTPCREL(%rip), %rax
	movq	_BUS_DMASYNC_POSTWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_bus_dmamap_sync
	movq	40(%rbx), %r13
	movq	48(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	shlq	$4, %r15
	movl	(%r13,%r15), %r12d
	movl	4(%r13,%r15), %edi
	callq	_FV_DMASIZE
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	leaq	(%r15,%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r13), %rax
	addq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	$0, 8(%r13,%r15)
	movq	_FV_TX_RING_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_FV_INC
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	40(%rbx), %r13
	leaq	(%r15,%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r13,%r15), %r12d
	movl	4(%r13,%r15), %edi
	leaq	(%r15,%r13), %rax
	addq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_FV_DMASIZE
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	decl	32(%rbx)
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	andl	%eax, (%rcx)
	movq	24(%rbx), %r14
	movq	_IFCOUNTER_OPACKETS@GOTPCREL(%rip), %rax
	movq	_ADSTAT_Tx_ES@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_IFCOUNTER_OERRORS@GOTPCREL(%rip), %rax
	movq	_ADSTAT_Tx_UF@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_if_inc_counter
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %edi
	leaq	(%r14,%r15), %r12
	movl	8(%r14,%r15), %esi
	movq	_BUS_DMASYNC_POSTWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_dmamap_sync
	movl	16(%rbx), %edi
	movl	8(%r14,%r15), %esi
	callq	_bus_dmamap_unload
	movq	(%r14,%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_m_freem
	jmp	LBB0_8
LBB0_9:
	movl	%r14d, (%rbx)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_BUS_DMASYNC_PREWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bus_dmamap_sync                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ## @BUS_DMASYNC_POSTREAD
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ## @BUS_DMASYNC_POSTWRITE
	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.comm	_ADSTAT_Tx_ES,4,2               ## @ADSTAT_Tx_ES
	.comm	_IFCOUNTER_OPACKETS,4,2         ## @IFCOUNTER_OPACKETS
	.comm	_ADSTAT_Tx_UF,4,2               ## @ADSTAT_Tx_UF
	.comm	_IFCOUNTER_OERRORS,4,2          ## @IFCOUNTER_OERRORS
	.comm	_FV_TX_RING_CNT,4,2             ## @FV_TX_RING_CNT
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ## @BUS_DMASYNC_PREWRITE
	.no_dead_strip	_fv_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fv_tx
_fv_tx:                                 ; @fv_tx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_FV_LOCK_ASSERT
	ldp	w20, w8, [x19]
	cmp	w20, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	sxtw	x22, w20
Lloh0:
	adrp	x8, _BUS_DMASYNC_POSTREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUS_DMASYNC_POSTREAD@GOTPAGEOFF]
	ldp	w1, w0, [x19, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BUS_DMASYNC_POSTWRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BUS_DMASYNC_POSTWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_bus_dmamap_sync
	ldp	x24, x21, [x19, #40]
	add	x25, x24, x22, lsl #4
	ldr	w28, [x25]
	mov	x27, x25
	ldr	w0, [x27, #4]!
	bl	_FV_DMASIZE
	cbz	x0, LBB0_11
; %bb.3:
	lsl	x23, x22, #4
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x28]
	str	wzr, [x25]
	str	wzr, [x27]
	add	x8, x24, x23
	str	xzr, [x8, #8]
Lloh6:
	adrp	x8, _FV_TX_RING_CNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FV_TX_RING_CNT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_FV_INC
	ldr	x24, [x19, #40]
	add	x25, x24, x23
	ldr	w28, [x25]
	mov	x27, x25
	ldr	w0, [x27, #4]!
	bl	_FV_DMASIZE
	cbz	x0, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #32]
	sub	w8, w8, #1
	str	w8, [x19, #32]
Lloh9:
	adrp	x8, _IFF_DRV_OACTIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	ldr	x26, [x19, #24]
Lloh12:
	adrp	x8, _ADSTAT_Tx_ES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADSTAT_Tx_ES@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w28
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh15:
	adrp	x8, _ADSTAT_Tx_UF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADSTAT_Tx_UF@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x8]
Lloh18:
	adrp	x8, _IFCOUNTER_OERRORS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IFCOUNTER_OERRORS@GOTPAGEOFF]
	tst	w9, w28
	b.ne	LBB0_8
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x8, _IFCOUNTER_OPACKETS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IFCOUNTER_OPACKETS@GOTPAGEOFF]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_if_inc_counter
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	add	x28, x26, x22, lsl #4
	ldr	w1, [x28, #8]
Lloh22:
	adrp	x8, _BUS_DMASYNC_POSTWRITE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BUS_DMASYNC_POSTWRITE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_bus_dmamap_sync
	ldr	w0, [x19, #16]
	ldr	w1, [x28, #8]
	bl	_bus_dmamap_unload
	ldr	x0, [x28]
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_m_freem
	b	LBB0_4
LBB0_11:
	str	w20, [x19]
	ldp	w1, w0, [x19, #8]
Lloh25:
	adrp	x8, _BUS_DMASYNC_PREWRITE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BUS_DMASYNC_PREWRITE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_bus_dmamap_sync
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ; @BUS_DMASYNC_POSTREAD
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ; @BUS_DMASYNC_POSTWRITE
	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.comm	_ADSTAT_Tx_ES,4,2               ; @ADSTAT_Tx_ES
	.comm	_IFCOUNTER_OPACKETS,4,2         ; @IFCOUNTER_OPACKETS
	.comm	_ADSTAT_Tx_UF,4,2               ; @ADSTAT_Tx_UF
	.comm	_IFCOUNTER_OERRORS,4,2          ; @IFCOUNTER_OERRORS
	.comm	_FV_TX_RING_CNT,4,2             ; @FV_TX_RING_CNT
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ; @BUS_DMASYNC_PREWRITE
	.no_dead_strip	_fv_tx
.subsections_via_symbols
