	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_led_on_82574
_e1000_led_on_82574:                    ## @e1000_led_on_82574
	.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	%rdi, %rbx
	movl	(%rdi), %r14d
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	testl	%r15d, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %ebx
	movq	_E1000_LEDCTL_MODE_LED_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_E1000_LEDCTL_LED0_IVRT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %edi
	xorl	%r8d, %r8d
	cmpl	%r9d, %edi
	movl	$0, %edi
	cmovel	%esi, %edi
	orl	%r14d, %edi
	movzbl	%bh, %ecx
	movl	%esi, %edx
	shll	$8, %edx
	cmpl	%r9d, %ecx
	cmovnel	%r8d, %edx
	movl	%ebx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%esi, %eax
	shll	$16, %eax
	cmpl	%r9d, %ecx
	cmovnel	%r8d, %eax
	orl	%edx, %eax
	orl	%edi, %eax
	shrl	$24, %ebx
	shll	$24, %esi
	cmpl	%r9d, %ebx
	cmovnel	%r8d, %esi
	orl	%eax, %esi
	movl	%esi, %r14d
LBB0_2:
	movq	_LEDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_ew32
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_STATUS_LU,4,2            ## @E1000_STATUS_LU
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_LEDCTL_MODE_LED_ON,4,2   ## @E1000_LEDCTL_MODE_LED_ON
	.comm	_E1000_LEDCTL_LED0_IVRT,4,2     ## @E1000_LEDCTL_LED0_IVRT
	.comm	_LEDCTL,4,2                     ## @LEDCTL
	.no_dead_strip	_e1000_led_on_82574
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_led_on_82574
_e1000_led_on_82574:                    ; @e1000_led_on_82574
	.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	x20, x0
	ldr	w19, [x0]
Lloh0:
	adrp	x8, _E1000_STATUS_LU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_STATUS_LU@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_er32
	tst	w0, w21
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _E1000_LEDCTL_MODE_LED_ON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _E1000_LEDCTL_MODE_LED_ON@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _E1000_LEDCTL_LED0_IVRT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _E1000_LEDCTL_LED0_IVRT@GOTPAGEOFF]
	lsr	w11, w8, #8
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w8, uxtb
	csel	w12, w10, wzr, eq
	orr	w12, w12, w19
	lsl	w13, w10, #8
	cmp	w9, w11, uxtb
	csel	w11, w13, wzr, eq
	orr	w11, w11, w12
	lsr	w12, w8, #16
	lsl	w13, w10, #16
	cmp	w9, w12, uxtb
	csel	w12, w13, wzr, eq
	orr	w11, w12, w11
	lsl	w10, w10, #24
	cmp	w9, w8, lsr #24
	csel	w8, w10, wzr, eq
	orr	w19, w8, w11
LBB0_2:
Lloh12:
	adrp	x8, _LEDCTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LEDCTL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ew32
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_STATUS_LU,4,2            ; @E1000_STATUS_LU
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_LEDCTL_MODE_LED_ON,4,2   ; @E1000_LEDCTL_MODE_LED_ON
	.comm	_E1000_LEDCTL_LED0_IVRT,4,2     ; @E1000_LEDCTL_LED0_IVRT
	.comm	_LEDCTL,4,2                     ; @LEDCTL
	.no_dead_strip	_e1000_led_on_82574
.subsections_via_symbols
