	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fv_setfilt
_fv_setfilt:                            ## @fv_setfilt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	incl	%eax
	sarl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	40(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	(%r12), %r13
	movq	_FV_TX_RING_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_FV_INC
	incl	32(%r12)
	movq	24(%r12), %r15
	movq	56(%r12), %r14
	movq	_FV_SFRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$255, %esi
	callq	_memset
	movl	48(%r12), %eax
	leaq	(%r13,%r13,2), %r13
	movl	%eax, 8(%r14,%r13,4)
	movq	_ADCTL_Tx_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FV_SFRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FV_DMASIZE
	orl	%ebx, %eax
	movl	%eax, (%r14,%r13,4)
	movq	_fv_set_maddr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_if_foreach_llmaddr
	movq	40(%r12), %rdi
	callq	_IF_LLADDR
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_bcopy
	movq	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, 360(%r15)
	movl	8(%rbx), %eax
	movl	%eax, 380(%r15)
	movl	%eax, 376(%r15)
	movq	_ADSTAT_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14,%r13,4)
	movl	12(%r12), %esi
	movl	16(%r12), %edi
	movq	_BUS_DMASYNC_PREWRITE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_bus_dmamap_sync
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	movl	(%r14), %edx
	callq	_bus_dmamap_sync
	movq	_CSR_TXPOLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_CSR_WRITE_4
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_DELAY
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHER_ADDR_LEN,4,2             ## @ETHER_ADDR_LEN
	.comm	_FV_TX_RING_CNT,4,2             ## @FV_TX_RING_CNT
	.comm	_FV_SFRAME_LEN,4,2              ## @FV_SFRAME_LEN
	.comm	_ADCTL_Tx_SETUP,4,2             ## @ADCTL_Tx_SETUP
	.comm	_fv_set_maddr,4,2               ## @fv_set_maddr
	.comm	_ADSTAT_OWN,4,2                 ## @ADSTAT_OWN
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ## @BUS_DMASYNC_PREWRITE
	.comm	_CSR_TXPOLL,4,2                 ## @CSR_TXPOLL
	.no_dead_strip	_fv_setfilt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fv_setfilt
_fv_setfilt:                            ; @fv_setfilt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _ETHER_ADDR_LEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ETHER_ADDR_LEN@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w8, w8, #1
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x21, [x0, #40]
	ldrsw	x22, [x0]
Lloh7:
	adrp	x8, _FV_TX_RING_CNT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FV_TX_RING_CNT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_FV_INC
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	ldr	x25, [x19, #56]
	ldr	x23, [x19, #24]
Lloh10:
	adrp	x26, _FV_SFRAME_LEN@GOTPAGE
Lloh11:
	ldr	x26, [x26, _FV_SFRAME_LEN@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x23
	mov	w1, #255
	bl	_memset
	ldr	w8, [x19, #48]
	mov	w9, #12
	madd	x22, x22, x9, x25
	str	w8, [x22, #8]
Lloh12:
	adrp	x8, _ADCTL_Tx_SETUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADCTL_Tx_SETUP@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
	ldr	w0, [x26]
	bl	_FV_DMASIZE
	orr	w8, w0, w25
	str	w8, [x22]
Lloh15:
	adrp	x8, _fv_set_maddr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fv_set_maddr@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_if_foreach_llmaddr
	ldr	x0, [x19, #40]
	bl	_IF_LLADDR
	ldr	w2, [x24]
	mov	x1, x20
	bl	_bcopy
	add	x8, x23, #360
	ldr	d0, [x20]
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x8]
	ldr	w8, [x20, #8]
	str	w8, [x23, #380]
	str	w8, [x23, #376]
Lloh18:
	adrp	x8, _ADSTAT_OWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADSTAT_OWN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x22, #4]
	ldp	w1, w0, [x19, #12]
Lloh21:
	adrp	x20, _BUS_DMASYNC_PREWRITE@GOTPAGE
Lloh22:
	ldr	x20, [x20, _BUS_DMASYNC_PREWRITE@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_bus_dmamap_sync
	ldp	w1, w0, [x19, #4]
	ldr	w2, [x20]
	bl	_bus_dmamap_sync
Lloh23:
	adrp	x8, _CSR_TXPOLL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CSR_TXPOLL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_CSR_WRITE_4
	mov	w0, #10000
	bl	_DELAY
	ldur	x8, [x29, #-72]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHER_ADDR_LEN,4,2             ; @ETHER_ADDR_LEN
	.comm	_FV_TX_RING_CNT,4,2             ; @FV_TX_RING_CNT
	.comm	_FV_SFRAME_LEN,4,2              ; @FV_SFRAME_LEN
	.comm	_ADCTL_Tx_SETUP,4,2             ; @ADCTL_Tx_SETUP
	.comm	_fv_set_maddr,4,2               ; @fv_set_maddr
	.comm	_ADSTAT_OWN,4,2                 ; @ADSTAT_OWN
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ; @BUS_DMASYNC_PREWRITE
	.comm	_CSR_TXPOLL,4,2                 ; @CSR_TXPOLL
	.no_dead_strip	_fv_setfilt
.subsections_via_symbols
