	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function awg_setup_rxfilter
_awg_setup_rxfilter:                    ## @awg_setup_rxfilter
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_AWG_ASSERT_LOCKED
	movl	(%r12), %r15d
	movq	$0, -48(%rbp)
	movl	%r15d, %edi
	callq	_if_getflags
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_DIS_ADDR_FILTER@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_2:
	movl	%r15d, %edi
	callq	_if_getflags
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_RX_ALL_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	$-1, -48(%rbp)
	jmp	LBB0_7
LBB0_4:
	movq	_awg_hash_maddr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	%r15d, %edi
	callq	_if_foreach_llmaddr
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jle	LBB0_7
## %bb.5:
	movq	_HASH_MULTICAST@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movl	%r15d, %edi
	callq	_IF_LLADDR
	movl	20(%rax), %r15d
	shll	$8, %r15d
	orl	16(%rax), %r15d
	movl	12(%rax), %ecx
	shll	$24, %ecx
	movl	4(%rax), %ebx
	movl	8(%rax), %edx
	shll	$16, %edx
	orl	%ecx, %edx
	shll	$8, %ebx
	orl	%edx, %ebx
	orl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_EMAC_ADDR_HIGH
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_WR4
	xorl	%edi, %edi
	callq	_EMAC_ADDR_LOW
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_WR4
	movq	_EMAC_RX_HASH_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_WR4
	movq	_EMAC_RX_HASH_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	callq	_WR4
	movq	_EMAC_RX_FRM_FLT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_WR4
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_DIS_ADDR_FILTER,4,2            ## @DIS_ADDR_FILTER
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_RX_ALL_MULTICAST,4,2           ## @RX_ALL_MULTICAST
	.comm	_awg_hash_maddr,4,2             ## @awg_hash_maddr
	.comm	_HASH_MULTICAST,4,2             ## @HASH_MULTICAST
	.comm	_EMAC_RX_HASH_0,4,2             ## @EMAC_RX_HASH_0
	.comm	_EMAC_RX_HASH_1,4,2             ## @EMAC_RX_HASH_1
	.comm	_EMAC_RX_FRM_FLT,4,2            ## @EMAC_RX_FRM_FLT
	.no_dead_strip	_awg_setup_rxfilter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function awg_setup_rxfilter
_awg_setup_rxfilter:                    ; @awg_setup_rxfilter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_AWG_ASSERT_LOCKED
	ldr	w21, [x19]
	str	xzr, [sp, #8]
	mov	x0, x21
	bl	_if_getflags
Lloh0:
	adrp	x8, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DIS_ADDR_FILTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIS_ADDR_FILTER@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_if_getflags
Lloh6:
	adrp	x8, _IFF_ALLMULTI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _RX_ALL_MULTICAST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RX_ALL_MULTICAST@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [sp, #8]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _awg_hash_maddr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _awg_hash_maddr@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_if_foreach_llmaddr
Lloh15:
	adrp	x8, _HASH_MULTICAST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HASH_MULTICAST@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w8, wzr, gt
LBB0_5:
	mov	x0, x21
	bl	_IF_LLADDR
	ldp	w9, w8, [x0, #16]
	orr	w21, w9, w8, lsl #8
	ldp	w9, w8, [x0, #8]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w10, w9, [x0]
	orr	w8, w8, w9, lsl #8
	orr	w22, w8, w10
	mov	w0, #0
	bl	_EMAC_ADDR_HIGH
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_WR4
	mov	w0, #0
	bl	_EMAC_ADDR_LOW
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_WR4
Lloh18:
	adrp	x8, _EMAC_RX_HASH_0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EMAC_RX_HASH_0@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_WR4
Lloh21:
	adrp	x8, _EMAC_RX_HASH_1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EMAC_RX_HASH_1@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_WR4
Lloh24:
	adrp	x8, _EMAC_RX_FRM_FLT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EMAC_RX_FRM_FLT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_WR4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_DIS_ADDR_FILTER,4,2            ; @DIS_ADDR_FILTER
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_RX_ALL_MULTICAST,4,2           ; @RX_ALL_MULTICAST
	.comm	_awg_hash_maddr,4,2             ; @awg_hash_maddr
	.comm	_HASH_MULTICAST,4,2             ; @HASH_MULTICAST
	.comm	_EMAC_RX_HASH_0,4,2             ; @EMAC_RX_HASH_0
	.comm	_EMAC_RX_HASH_1,4,2             ; @EMAC_RX_HASH_1
	.comm	_EMAC_RX_FRM_FLT,4,2            ; @EMAC_RX_FRM_FLT
	.no_dead_strip	_awg_setup_rxfilter
.subsections_via_symbols
