	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_led_on_pchlan
_e1000_led_on_pchlan:                   ## @e1000_led_on_pchlan
	.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, %r14
	movl	(%rdi), %r15d
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.1:
	movq	_E1000_PHY_LED0_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_E1000_PHY_LED0_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_E1000_LEDCTL_MODE_LINK_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_E1000_PHY_LED0_IVRT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%esi, %eax
	andl	%r15d, %eax
	movl	%eax, %edi
	andl	%edx, %edi
	cmpl	%r8d, %edi
	jne	LBB0_5
## %bb.2:
	testl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movl	%ecx, %eax
	notl	%eax
	andl	%eax, %r15d
	jmp	LBB0_5
LBB0_4:
	orl	%ecx, %r15d
LBB0_5:
	movl	%r15d, %ebx
	sarl	$5, %ebx
	andl	%esi, %ebx
	movl	%ebx, %eax
	andl	%edx, %eax
	cmpl	%r8d, %eax
	jne	LBB0_9
## %bb.6:
	movl	%ecx, %edi
	shll	$5, %edi
	testl	%ebx, %ecx
	je	LBB0_8
## %bb.7:
	notl	%edi
	andl	%edi, %r15d
	jmp	LBB0_9
LBB0_8:
	orl	%edi, %r15d
LBB0_9:
	movl	%r15d, %eax
	sarl	$10, %eax
	andl	%eax, %esi
	andl	%esi, %edx
	cmpl	%r8d, %edx
	jne	LBB0_13
## %bb.10:
	movl	%ecx, %edx
	shll	$10, %edx
	testl	%esi, %ecx
	je	LBB0_12
## %bb.11:
	notl	%edx
	andl	%edx, %r15d
	jmp	LBB0_13
LBB0_12:
	orl	%edx, %r15d
LBB0_13:
	movq	_HV_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_e1e_wphy                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_LU,4,2            ## @E1000_STATUS_LU
	.comm	_E1000_PHY_LED0_MASK,4,2        ## @E1000_PHY_LED0_MASK
	.comm	_E1000_PHY_LED0_MODE_MASK,4,2   ## @E1000_PHY_LED0_MODE_MASK
	.comm	_E1000_LEDCTL_MODE_LINK_UP,4,2  ## @E1000_LEDCTL_MODE_LINK_UP
	.comm	_E1000_PHY_LED0_IVRT,4,2        ## @E1000_PHY_LED0_IVRT
	.comm	_HV_LED_CONFIG,4,2              ## @HV_LED_CONFIG
	.no_dead_strip	_e1000_led_on_pchlan
.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_pchlan
_e1000_led_on_pchlan:                   ; @e1000_led_on_pchlan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w20, [x0]
Lloh0:
	adrp	x8, _STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_er32
Lloh3:
	adrp	x8, _E1000_STATUS_LU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_STATUS_LU@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _E1000_PHY_LED0_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_PHY_LED0_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _E1000_PHY_LED0_MODE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _E1000_PHY_LED0_MODE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _E1000_LEDCTL_MODE_LINK_UP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _E1000_LEDCTL_MODE_LINK_UP@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _E1000_PHY_LED0_IVRT@GOTPAGE
Lloh16:
	ldr	x11, [x11, _E1000_PHY_LED0_IVRT@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	and	w12, w8, w20
	and	w13, w12, w9
	tst	w11, w12
	orr	w12, w11, w20
	bic	w14, w20, w11
	csel	w12, w12, w14, eq
	cmp	w13, w10
	csel	w12, w20, w12, ne
	and	w13, w8, w12, asr #5
	and	w14, w13, w9
	tst	w11, w13
	lsl	w13, w11, #5
	orr	w15, w13, w12
	bic	w13, w12, w13
	csel	w13, w15, w13, eq
	cmp	w14, w10
	csel	w12, w12, w13, ne
	and	w8, w8, w12, asr #10
	and	w9, w8, w9
	tst	w11, w8
	lsl	w8, w11, #10
	orr	w11, w8, w12
	bic	w8, w12, w8
	csel	w8, w11, w8, eq
	cmp	w9, w10
	csel	w20, w12, w8, ne
LBB0_2:
Lloh18:
	adrp	x8, _HV_LED_CONFIG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HV_LED_CONFIG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_e1e_wphy
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_LU,4,2            ; @E1000_STATUS_LU
	.comm	_E1000_PHY_LED0_MASK,4,2        ; @E1000_PHY_LED0_MASK
	.comm	_E1000_PHY_LED0_MODE_MASK,4,2   ; @E1000_PHY_LED0_MODE_MASK
	.comm	_E1000_LEDCTL_MODE_LINK_UP,4,2  ; @E1000_LEDCTL_MODE_LINK_UP
	.comm	_E1000_PHY_LED0_IVRT,4,2        ; @E1000_PHY_LED0_IVRT
	.comm	_HV_LED_CONFIG,4,2              ; @HV_LED_CONFIG
	.no_dead_strip	_e1000_led_on_pchlan
.subsections_via_symbols
