	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_enable_rx_xmac
_niu_enable_rx_xmac:                    ## @niu_enable_rx_xmac
	.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, %r14d
	movq	%rdi, %rbx
	movq	_XMAC_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_nr64_mac
	movq	_XMAC_CONFIG_HASH_FILTER_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_XMAC_CONFIG_PROMISCUOUS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%ecx, %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %eax
	movq	_NIU_FLAGS_MCAST@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%eax, %edi
	cmovnel	%ecx, %edi
	orl	%esi, %edi
	movq	_NIU_FLAGS_PROMISC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmovnel	%edx, %eax
	orl	%edi, %eax
	movq	_XMAC_CONFIG_RX_MAC_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	orl	%eax, %ecx
	notl	%esi
	andl	%eax, %esi
	testl	%r14d, %r14d
	cmovnel	%ecx, %esi
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nw64_mac                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XMAC_CONFIG,4,2                ## @XMAC_CONFIG
	.comm	_XMAC_CONFIG_HASH_FILTER_EN,4,2 ## @XMAC_CONFIG_HASH_FILTER_EN
	.comm	_XMAC_CONFIG_PROMISCUOUS,4,2    ## @XMAC_CONFIG_PROMISCUOUS
	.comm	_NIU_FLAGS_MCAST,4,2            ## @NIU_FLAGS_MCAST
	.comm	_NIU_FLAGS_PROMISC,4,2          ## @NIU_FLAGS_PROMISC
	.comm	_XMAC_CONFIG_RX_MAC_ENABLE,4,2  ## @XMAC_CONFIG_RX_MAC_ENABLE
	.no_dead_strip	_niu_enable_rx_xmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_enable_rx_xmac
_niu_enable_rx_xmac:                    ; @niu_enable_rx_xmac
	.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
Lloh0:
	adrp	x21, _XMAC_CONFIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XMAC_CONFIG@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_nr64_mac
Lloh2:
	adrp	x8, _XMAC_CONFIG_HASH_FILTER_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XMAC_CONFIG_HASH_FILTER_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _XMAC_CONFIG_PROMISCUOUS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XMAC_CONFIG_PROMISCUOUS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	ldr	w11, [x20]
Lloh8:
	adrp	x12, _NIU_FLAGS_MCAST@GOTPAGE
Lloh9:
	ldr	x12, [x12, _NIU_FLAGS_MCAST@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	tst	w12, w11
	csel	w8, wzr, w8, eq
	orr	w8, w8, w10
Lloh11:
	adrp	x10, _NIU_FLAGS_PROMISC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NIU_FLAGS_PROMISC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w11
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _XMAC_CONFIG_RX_MAC_ENABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _XMAC_CONFIG_RX_MAC_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w8, w8, w9
	cmp	w19, #0
	csel	w1, w8, w10, eq
	ldr	w0, [x21]
	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
	b	_nw64_mac
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XMAC_CONFIG,4,2                ; @XMAC_CONFIG
	.comm	_XMAC_CONFIG_HASH_FILTER_EN,4,2 ; @XMAC_CONFIG_HASH_FILTER_EN
	.comm	_XMAC_CONFIG_PROMISCUOUS,4,2    ; @XMAC_CONFIG_PROMISCUOUS
	.comm	_NIU_FLAGS_MCAST,4,2            ; @NIU_FLAGS_MCAST
	.comm	_NIU_FLAGS_PROMISC,4,2          ; @NIU_FLAGS_PROMISC
	.comm	_XMAC_CONFIG_RX_MAC_ENABLE,4,2  ; @XMAC_CONFIG_RX_MAC_ENABLE
	.no_dead_strip	_niu_enable_rx_xmac
.subsections_via_symbols
