	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_init_rx_bmac
_niu_init_rx_bmac:                      ## @niu_init_rx_bmac
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %r14d
	movq	_BMAC_ADD_FILT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_nw64_mac
	movq	_BMAC_ADD_FILT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_nw64_mac
	movq	_BMAC_ADD_FILT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_nw64_mac
	movq	_BMAC_ADD_FILT12_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_nw64_mac
	movq	_BMAC_ADD_FILT00_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_nw64_mac
	movq	_MAC_NUM_HASH@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_BMAC_HASH_TBL
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_nw64_mac
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_niu_set_primary_mac_rdc_table
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_niu_set_multicast_mac_rdc_table
	movq	_BRXMAC_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_nw64_mac
	movq	_BRXMAC_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_nr64_mac
	movq	_BRXMAC_CONFIG_ENABLE@GOTPCREL(%rip), %rcx
	movq	_BRXMAC_CONFIG_STRIP_PAD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_BRXMAC_CONFIG_STRIP_FCS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_BRXMAC_CONFIG_PROMISC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_BRXMAC_CONFIG_PROMISC_GRP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_BRXMAC_CONFIG_ADDR_FILT_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_BRXMAC_CONFIG_DISCARD_DIS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_BRXMAC_CONFIG_HASH_FILT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%rbx), %edi
	callq	_nw64_mac
	movq	_BMAC_ADDR_CMPEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_nr64_mac
	movq	_BMAC_ADDR_CMPEN_EN0@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nw64_mac                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BMAC_ADD_FILT0,4,2             ## @BMAC_ADD_FILT0
	.comm	_BMAC_ADD_FILT1,4,2             ## @BMAC_ADD_FILT1
	.comm	_BMAC_ADD_FILT2,4,2             ## @BMAC_ADD_FILT2
	.comm	_BMAC_ADD_FILT12_MASK,4,2       ## @BMAC_ADD_FILT12_MASK
	.comm	_BMAC_ADD_FILT00_MASK,4,2       ## @BMAC_ADD_FILT00_MASK
	.comm	_MAC_NUM_HASH,8,3               ## @MAC_NUM_HASH
	.comm	_BRXMAC_STATUS_MASK,4,2         ## @BRXMAC_STATUS_MASK
	.comm	_BRXMAC_CONFIG,4,2              ## @BRXMAC_CONFIG
	.comm	_BRXMAC_CONFIG_ENABLE,4,2       ## @BRXMAC_CONFIG_ENABLE
	.comm	_BRXMAC_CONFIG_STRIP_PAD,4,2    ## @BRXMAC_CONFIG_STRIP_PAD
	.comm	_BRXMAC_CONFIG_STRIP_FCS,4,2    ## @BRXMAC_CONFIG_STRIP_FCS
	.comm	_BRXMAC_CONFIG_PROMISC,4,2      ## @BRXMAC_CONFIG_PROMISC
	.comm	_BRXMAC_CONFIG_PROMISC_GRP,4,2  ## @BRXMAC_CONFIG_PROMISC_GRP
	.comm	_BRXMAC_CONFIG_ADDR_FILT_EN,4,2 ## @BRXMAC_CONFIG_ADDR_FILT_EN
	.comm	_BRXMAC_CONFIG_DISCARD_DIS,4,2  ## @BRXMAC_CONFIG_DISCARD_DIS
	.comm	_BRXMAC_CONFIG_HASH_FILT_EN,4,2 ## @BRXMAC_CONFIG_HASH_FILT_EN
	.comm	_BMAC_ADDR_CMPEN,4,2            ## @BMAC_ADDR_CMPEN
	.comm	_BMAC_ADDR_CMPEN_EN0,4,2        ## @BMAC_ADDR_CMPEN_EN0
	.no_dead_strip	_niu_init_rx_bmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_init_rx_bmac
_niu_init_rx_bmac:                      ; @niu_init_rx_bmac
	.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, x0
	ldp	x9, x8, [x0]
	ldr	x8, [x8]
	ldr	w20, [x8, x9, lsl #2]
Lloh0:
	adrp	x8, _BMAC_ADD_FILT0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMAC_ADD_FILT0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_nw64_mac
Lloh3:
	adrp	x8, _BMAC_ADD_FILT1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMAC_ADD_FILT1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_nw64_mac
Lloh6:
	adrp	x8, _BMAC_ADD_FILT2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMAC_ADD_FILT2@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_nw64_mac
Lloh9:
	adrp	x8, _BMAC_ADD_FILT12_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMAC_ADD_FILT12_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_nw64_mac
Lloh12:
	adrp	x8, _BMAC_ADD_FILT00_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BMAC_ADD_FILT00_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_nw64_mac
Lloh15:
	adrp	x22, _MAC_NUM_HASH@GOTPAGE
Lloh16:
	ldr	x22, [x22, _MAC_NUM_HASH@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BMAC_HASH_TBL
	mov	w1, #0
	bl	_nw64_mac
	add	x21, x21, #1
	ldr	x8, [x22]
	cmp	x21, x8
	b.lo	LBB0_2
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_niu_set_primary_mac_rdc_table
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_niu_set_multicast_mac_rdc_table
Lloh17:
	adrp	x8, _BRXMAC_STATUS_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BRXMAC_STATUS_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_nw64_mac
Lloh20:
	adrp	x19, _BRXMAC_CONFIG@GOTPAGE
Lloh21:
	ldr	x19, [x19, _BRXMAC_CONFIG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_nr64_mac
Lloh22:
	adrp	x8, _BRXMAC_CONFIG_ENABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BRXMAC_CONFIG_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _BRXMAC_CONFIG_STRIP_PAD@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BRXMAC_CONFIG_STRIP_PAD@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _BRXMAC_CONFIG_STRIP_FCS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BRXMAC_CONFIG_STRIP_FCS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _BRXMAC_CONFIG_PROMISC@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BRXMAC_CONFIG_PROMISC@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh34:
	adrp	x9, _BRXMAC_CONFIG_PROMISC_GRP@GOTPAGE
Lloh35:
	ldr	x9, [x9, _BRXMAC_CONFIG_PROMISC_GRP@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh37:
	adrp	x9, _BRXMAC_CONFIG_ADDR_FILT_EN@GOTPAGE
Lloh38:
	ldr	x9, [x9, _BRXMAC_CONFIG_ADDR_FILT_EN@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _BRXMAC_CONFIG_DISCARD_DIS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _BRXMAC_CONFIG_DISCARD_DIS@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w8, w0, w8
Lloh43:
	adrp	x9, _BRXMAC_CONFIG_HASH_FILT_EN@GOTPAGE
Lloh44:
	ldr	x9, [x9, _BRXMAC_CONFIG_HASH_FILT_EN@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w0, [x19]
	bl	_nw64_mac
Lloh46:
	adrp	x19, _BMAC_ADDR_CMPEN@GOTPAGE
Lloh47:
	ldr	x19, [x19, _BMAC_ADDR_CMPEN@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_nr64_mac
Lloh48:
	adrp	x8, _BMAC_ADDR_CMPEN_EN0@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BMAC_ADDR_CMPEN_EN0@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x19]
	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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BMAC_ADD_FILT0,4,2             ; @BMAC_ADD_FILT0
	.comm	_BMAC_ADD_FILT1,4,2             ; @BMAC_ADD_FILT1
	.comm	_BMAC_ADD_FILT2,4,2             ; @BMAC_ADD_FILT2
	.comm	_BMAC_ADD_FILT12_MASK,4,2       ; @BMAC_ADD_FILT12_MASK
	.comm	_BMAC_ADD_FILT00_MASK,4,2       ; @BMAC_ADD_FILT00_MASK
	.comm	_MAC_NUM_HASH,8,3               ; @MAC_NUM_HASH
	.comm	_BRXMAC_STATUS_MASK,4,2         ; @BRXMAC_STATUS_MASK
	.comm	_BRXMAC_CONFIG,4,2              ; @BRXMAC_CONFIG
	.comm	_BRXMAC_CONFIG_ENABLE,4,2       ; @BRXMAC_CONFIG_ENABLE
	.comm	_BRXMAC_CONFIG_STRIP_PAD,4,2    ; @BRXMAC_CONFIG_STRIP_PAD
	.comm	_BRXMAC_CONFIG_STRIP_FCS,4,2    ; @BRXMAC_CONFIG_STRIP_FCS
	.comm	_BRXMAC_CONFIG_PROMISC,4,2      ; @BRXMAC_CONFIG_PROMISC
	.comm	_BRXMAC_CONFIG_PROMISC_GRP,4,2  ; @BRXMAC_CONFIG_PROMISC_GRP
	.comm	_BRXMAC_CONFIG_ADDR_FILT_EN,4,2 ; @BRXMAC_CONFIG_ADDR_FILT_EN
	.comm	_BRXMAC_CONFIG_DISCARD_DIS,4,2  ; @BRXMAC_CONFIG_DISCARD_DIS
	.comm	_BRXMAC_CONFIG_HASH_FILT_EN,4,2 ; @BRXMAC_CONFIG_HASH_FILT_EN
	.comm	_BMAC_ADDR_CMPEN,4,2            ; @BMAC_ADDR_CMPEN
	.comm	_BMAC_ADDR_CMPEN_EN0,4,2        ; @BMAC_ADDR_CMPEN_EN0
	.no_dead_strip	_niu_init_rx_bmac
.subsections_via_symbols
