	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_force_led
_niu_force_led:                         ## @niu_force_led
	.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
	movq	_NIU_FLAGS_XMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movq	_XMAC_CONFIG_FORCE_LED_ON@GOTPCREL(%rip), %rax
	cmoveq	_BMAC_XIF_CONFIG_LINK_LED@GOTPCREL(%rip), %rax
	movl	%esi, %r14d
	movl	(%rax), %ebx
	movq	_XMAC_CONFIG@GOTPCREL(%rip), %rax
	cmoveq	_BMAC_XIF_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_nr64_mac
	movl	%eax, %ecx
	orl	%ebx, %ecx
	notl	%ebx
	andl	%eax, %ebx
	testl	%r14d, %r14d
	cmovnel	%ecx, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	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_CONFIG,4,2                ## @XMAC_CONFIG
	.comm	_XMAC_CONFIG_FORCE_LED_ON,4,2   ## @XMAC_CONFIG_FORCE_LED_ON
	.comm	_BMAC_XIF_CONFIG,4,2            ## @BMAC_XIF_CONFIG
	.comm	_BMAC_XIF_CONFIG_LINK_LED,4,2   ## @BMAC_XIF_CONFIG_LINK_LED
	.no_dead_strip	_niu_force_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_force_led
_niu_force_led:                         ; @niu_force_led
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NIU_FLAGS_XMAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NIU_FLAGS_XMAC@GOTPAGEOFF]
Lloh2:
	adrp	x10, _BMAC_XIF_CONFIG_LINK_LED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BMAC_XIF_CONFIG_LINK_LED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _XMAC_CONFIG_FORCE_LED_ON@GOTPAGE
Lloh6:
	ldr	x11, [x11, _XMAC_CONFIG_FORCE_LED_ON@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w21, [x8]
Lloh7:
	adrp	x8, _BMAC_XIF_CONFIG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BMAC_XIF_CONFIG@GOTPAGEOFF]
Lloh9:
	adrp	x9, _XMAC_CONFIG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XMAC_CONFIG@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	mov	x0, x20
	bl	_nr64_mac
	orr	w8, w0, w21
	bic	w9, w0, w21
	cmp	w19, #0
	csel	w1, w9, w8, eq
	mov	x0, 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	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_CONFIG,4,2                ; @XMAC_CONFIG
	.comm	_XMAC_CONFIG_FORCE_LED_ON,4,2   ; @XMAC_CONFIG_FORCE_LED_ON
	.comm	_BMAC_XIF_CONFIG,4,2            ; @BMAC_XIF_CONFIG
	.comm	_BMAC_XIF_CONFIG_LINK_LED,4,2   ; @BMAC_XIF_CONFIG_LINK_LED
	.no_dead_strip	_niu_force_led
.subsections_via_symbols
