	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_set_primary_mac
_niu_set_primary_mac:                   ## @niu_set_primary_mac
	.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
	movzbl	5(%rsi), %eax
	movzbl	3(%rsi), %r15d
	movzbl	1(%rsi), %r14d
	movq	_NIU_FLAGS_XMAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rdi), %ecx
	movq	_XMAC_ADDR0@GOTPCREL(%rip), %rcx
	cmoveq	_BMAC_ADDR0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_XMAC_ADDR1@GOTPCREL(%rip), %rbx
	cmoveq	_BMAC_ADDR1@GOTPCREL(%rip), %rbx
	movq	_XMAC_ADDR2@GOTPCREL(%rip), %r12
	cmoveq	_BMAC_ADDR2@GOTPCREL(%rip), %r12
	movl	%eax, %esi
	callq	_nw64_mac
	movl	(%rbx), %edi
	movl	%r15d, %esi
	callq	_nw64_mac
	movl	(%r12), %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nw64_mac                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NIU_FLAGS_XMAC,4,2             ## @NIU_FLAGS_XMAC
	.comm	_XMAC_ADDR0,4,2                 ## @XMAC_ADDR0
	.comm	_XMAC_ADDR1,4,2                 ## @XMAC_ADDR1
	.comm	_XMAC_ADDR2,4,2                 ## @XMAC_ADDR2
	.comm	_BMAC_ADDR0,4,2                 ## @BMAC_ADDR0
	.comm	_BMAC_ADDR1,4,2                 ## @BMAC_ADDR1
	.comm	_BMAC_ADDR2,4,2                 ## @BMAC_ADDR2
	.no_dead_strip	_niu_set_primary_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_set_primary_mac
_niu_set_primary_mac:                   ; @niu_set_primary_mac
	.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
	ldrb	w8, [x1, #5]
	ldrb	w19, [x1, #3]
	ldrb	w20, [x1, #1]
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _NIU_FLAGS_XMAC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NIU_FLAGS_XMAC@GOTPAGEOFF]
Lloh2:
	adrp	x11, _BMAC_ADDR0@GOTPAGE
Lloh3:
	ldr	x11, [x11, _BMAC_ADDR0@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
Lloh5:
	adrp	x12, _XMAC_ADDR0@GOTPAGE
Lloh6:
	ldr	x12, [x12, _XMAC_ADDR0@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x11, x12, eq
	ldr	w0, [x9]
Lloh7:
	adrp	x9, _BMAC_ADDR1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BMAC_ADDR1@GOTPAGEOFF]
Lloh9:
	adrp	x10, _XMAC_ADDR1@GOTPAGE
Lloh10:
	ldr	x10, [x10, _XMAC_ADDR1@GOTPAGEOFF]
Lloh11:
	adrp	x11, _BMAC_ADDR2@GOTPAGE
Lloh12:
	ldr	x11, [x11, _BMAC_ADDR2@GOTPAGEOFF]
	csel	x21, x9, x10, eq
Lloh13:
	adrp	x9, _XMAC_ADDR2@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XMAC_ADDR2@GOTPAGEOFF]
	csel	x22, x11, x9, eq
	mov	x1, x8
	bl	_nw64_mac
	ldr	w0, [x21]
	mov	x1, x19
	bl	_nw64_mac
	ldr	w0, [x22]
	mov	x1, x20
	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	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NIU_FLAGS_XMAC,4,2             ; @NIU_FLAGS_XMAC
	.comm	_XMAC_ADDR0,4,2                 ; @XMAC_ADDR0
	.comm	_XMAC_ADDR1,4,2                 ; @XMAC_ADDR1
	.comm	_XMAC_ADDR2,4,2                 ; @XMAC_ADDR2
	.comm	_BMAC_ADDR0,4,2                 ; @BMAC_ADDR0
	.comm	_BMAC_ADDR1,4,2                 ; @BMAC_ADDR1
	.comm	_BMAC_ADDR2,4,2                 ; @BMAC_ADDR2
	.no_dead_strip	_niu_set_primary_mac
.subsections_via_symbols
