	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fv_start_locked
_fv_start_locked:                       ## @fv_start_locked
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_FV_LOCK_ASSERT
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	%eax, %ecx
	andl	(%rbx), %ecx
	cmpl	%eax, %ecx
	jne	LBB0_13
## %bb.1:
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.2:
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_IFQ_DRV_IS_EMPTY
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FV_TX_RING_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-2, %eax
	cmpl	%eax, 8(%r14)
	jge	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_IFQ_DRV_DEQUEUE
	cmpq	$0, -48(%rbp)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	callq	_fv_encap
	testq	%rax, %rax
	jne	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ETHER_BPF_MTAP
	movq	%r15, %rdi
	callq	_IFQ_DRV_IS_EMPTY
	decl	%r12d
	testl	%eax, %eax
	je	LBB0_4
	jmp	LBB0_10
LBB0_7:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_IFQ_DRV_PREPEND
	movl	(%r13), %eax
	orl	%eax, (%rbx)
LBB0_9:
	testl	%r12d, %r12d
	je	LBB0_13
LBB0_10:
	movq	_CSR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_CSR_READ_4
	shrl	$20, %eax
	andl	$7, %eax
	cmpl	$6, %eax
	je	LBB0_12
## %bb.11:
	testl	%eax, %eax
	jne	LBB0_13
LBB0_12:
	movq	_CSR_TXPOLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TXPOLL_TPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_CSR_WRITE_4
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.comm	_FV_TX_RING_CNT,4,2             ## @FV_TX_RING_CNT
	.comm	_CSR_STATUS,4,2                 ## @CSR_STATUS
	.comm	_CSR_TXPOLL,4,2                 ## @CSR_TXPOLL
	.comm	_TXPOLL_TPD,4,2                 ## @TXPOLL_TPD
	.no_dead_strip	_fv_start_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fv_start_locked
_fv_start_locked:                       ; @fv_start_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_FV_LOCK_ASSERT
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IFF_DRV_RUNNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x22, _IFF_DRV_OACTIVE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IFF_DRV_OACTIVE@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w10, w10, w9
	and	w8, w10, w8
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.2:
	add	x21, x20, #4
	mov	x0, x21
	bl	_IFQ_DRV_IS_EMPTY
	cbnz	w0, LBB0_13
; %bb.3:
	mov	w23, #0
Lloh5:
	adrp	x24, _FV_TX_RING_CNT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _FV_TX_RING_CNT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x24]
	sub	w9, w9, #2
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_IFQ_DRV_DEQUEUE
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_fv_encap
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_ETHER_BPF_MTAP
	mov	x0, x21
	bl	_IFQ_DRV_IS_EMPTY
	sub	w23, w23, #1
	cbz	w0, LBB0_4
	b	LBB0_11
LBB0_8:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_IFQ_DRV_PREPEND
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_10:
	cbz	w23, LBB0_13
LBB0_11:
Lloh7:
	adrp	x8, _CSR_STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CSR_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CSR_READ_4
	ubfx	w8, w0, #20, #3
	cmp	w8, #6
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_13
; %bb.12:
Lloh10:
	adrp	x8, _CSR_TXPOLL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CSR_TXPOLL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _TXPOLL_TPD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TXPOLL_TPD@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CSR_WRITE_4
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.comm	_FV_TX_RING_CNT,4,2             ; @FV_TX_RING_CNT
	.comm	_CSR_STATUS,4,2                 ; @CSR_STATUS
	.comm	_CSR_TXPOLL,4,2                 ; @CSR_TXPOLL
	.comm	_TXPOLL_TPD,4,2                 ; @TXPOLL_TPD
	.no_dead_strip	_fv_start_locked
.subsections_via_symbols
