	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_handle_led
_niu_handle_led:                        ## @niu_handle_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_XMAC_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_nr64_mac
	movl	(%rbx), %ecx
	movq	_NIU_FLAGS_10G@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.1:
	movq	_NIU_FLAGS_FIBER@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_XMAC_CONFIG_LED_POLARITY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_XMAC_CONFIG_FORCE_LED_ON@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_XMAC_CONFIG_FORCE_LED_ON@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_XMAC_CONFIG_LED_POLARITY@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
LBB0_6:
	movl	(%r15), %edi
	movl	%eax, %esi
	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	_NIU_FLAGS_10G,4,2              ## @NIU_FLAGS_10G
	.comm	_NIU_FLAGS_FIBER,4,2            ## @NIU_FLAGS_FIBER
	.comm	_XMAC_CONFIG_LED_POLARITY,4,2   ## @XMAC_CONFIG_LED_POLARITY
	.comm	_XMAC_CONFIG_FORCE_LED_ON,4,2   ## @XMAC_CONFIG_FORCE_LED_ON
	.no_dead_strip	_niu_handle_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_handle_led
_niu_handle_led:                        ; @niu_handle_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
	mov	x20, x0
Lloh0:
	adrp	x21, _XMAC_CONFIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XMAC_CONFIG@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_nr64_mac
	mov	x1, x0
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _NIU_FLAGS_10G@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NIU_FLAGS_10G@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
Lloh5:
	adrp	x9, _NIU_FLAGS_FIBER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NIU_FLAGS_FIBER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	cbz	w19, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _XMAC_CONFIG_LED_POLARITY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XMAC_CONFIG_LED_POLARITY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w8, w8, w1
Lloh11:
	adrp	x9, _XMAC_CONFIG_FORCE_LED_ON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _XMAC_CONFIG_FORCE_LED_ON@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _XMAC_CONFIG_FORCE_LED_ON@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XMAC_CONFIG_FORCE_LED_ON@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w8, w8, w1
Lloh16:
	adrp	x9, _XMAC_CONFIG_LED_POLARITY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _XMAC_CONFIG_LED_POLARITY@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	bic	w1, w8, w9
LBB0_6:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_XMAC_CONFIG,4,2                ; @XMAC_CONFIG
	.comm	_NIU_FLAGS_10G,4,2              ; @NIU_FLAGS_10G
	.comm	_NIU_FLAGS_FIBER,4,2            ; @NIU_FLAGS_FIBER
	.comm	_XMAC_CONFIG_LED_POLARITY,4,2   ; @XMAC_CONFIG_LED_POLARITY
	.comm	_XMAC_CONFIG_FORCE_LED_ON,4,2   ; @XMAC_CONFIG_FORCE_LED_ON
	.no_dead_strip	_niu_handle_led
.subsections_via_symbols
