	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_set_eee_pchlan           ## -- Begin function e1000_set_eee_pchlan
	.p2align	4, 0x90
_e1000_set_eee_pchlan:                  ## @e1000_set_eee_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.4:
	movq	_I217_EEE_ADVERTISEMENT@GOTPCREL(%rip), %rax
	movq	_I217_EEE_PCS_STATUS@GOTPCREL(%rip), %rcx
	movq	_I217_EEE_LP_ABILITY@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_1:
	movq	_I82579_EEE_ADVERTISEMENT@GOTPCREL(%rip), %rax
	movq	_I82579_EEE_PCS_STATUS@GOTPCREL(%rip), %rcx
	movq	_I82579_EEE_LP_ABILITY@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rax), %r12d
	movl	(%rcx), %r14d
	movl	(%rdx), %r15d
	movq	%r13, %rdi
	callq	*16(%r13)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_22
## %bb.6:
	movq	_I82579_LPI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_e1e_rphy_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_21:
	movq	%r13, %rdi
	callq	*8(%r13)
	jmp	LBB0_22
LBB0_3:
	xorl	%ebx, %ebx
LBB0_22:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_I82579_LPI_CTRL_ENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -48(%rbp)
	cmpl	$0, 28(%r13)
	je	LBB0_8
LBB0_16:
	cmpl	$129, (%r13)
	jne	LBB0_19
## %bb.17:
	movq	_I82579_LPI_PLL_SHUT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_e1000_read_emi_reg_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_21
## %bb.18:
	movq	_I82579_LPI_100_PLL_SHUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_e1000_write_emi_reg_locked
LBB0_19:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_e1000_read_emi_reg_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	_I82579_LPI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	callq	_e1e_wphy_locked
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_8:
	leaq	24(%r13), %rax
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%rax, %r15
	movq	%rax, %rdx
	callq	_e1000_read_emi_reg_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_21
## %bb.9:
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_e1000_read_emi_reg_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_21
## %bb.10:
	movl	(%r15), %eax
	andl	-52(%rbp), %eax
	movq	_I82579_EEE_1000_SUPPORTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_I82579_LPI_CTRL_1000_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, -48(%rbp)
LBB0_12:
	movq	_I82579_EEE_100_SUPPORTED@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_16
## %bb.13:
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_e1e_rphy_locked
	movq	_LPA_100FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_15
## %bb.14:
	movq	_I82579_LPI_CTRL_100_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
	jmp	LBB0_16
LBB0_15:
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r15)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_I82579_EEE_LP_ABILITY,4,2      ## @I82579_EEE_LP_ABILITY
	.comm	_I82579_EEE_PCS_STATUS,4,2      ## @I82579_EEE_PCS_STATUS
	.comm	_I82579_EEE_ADVERTISEMENT,4,2   ## @I82579_EEE_ADVERTISEMENT
	.comm	_I217_EEE_LP_ABILITY,4,2        ## @I217_EEE_LP_ABILITY
	.comm	_I217_EEE_PCS_STATUS,4,2        ## @I217_EEE_PCS_STATUS
	.comm	_I217_EEE_ADVERTISEMENT,4,2     ## @I217_EEE_ADVERTISEMENT
	.comm	_I82579_LPI_CTRL,4,2            ## @I82579_LPI_CTRL
	.comm	_I82579_LPI_CTRL_ENABLE_MASK,4,2 ## @I82579_LPI_CTRL_ENABLE_MASK
	.comm	_I82579_EEE_1000_SUPPORTED,4,2  ## @I82579_EEE_1000_SUPPORTED
	.comm	_I82579_LPI_CTRL_1000_ENABLE,4,2 ## @I82579_LPI_CTRL_1000_ENABLE
	.comm	_I82579_EEE_100_SUPPORTED,4,2   ## @I82579_EEE_100_SUPPORTED
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_LPA_100FULL,4,2                ## @LPA_100FULL
	.comm	_I82579_LPI_CTRL_100_ENABLE,4,2 ## @I82579_LPI_CTRL_100_ENABLE
	.comm	_I82579_LPI_PLL_SHUT,4,2        ## @I82579_LPI_PLL_SHUT
	.comm	_I82579_LPI_100_PLL_SHUT,4,2    ## @I82579_LPI_100_PLL_SHUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_set_eee_pchlan           ; -- Begin function e1000_set_eee_pchlan
	.p2align	2
_e1000_set_eee_pchlan:                  ; @e1000_set_eee_pchlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _I217_EEE_ADVERTISEMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I217_EEE_ADVERTISEMENT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _I217_EEE_PCS_STATUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I217_EEE_PCS_STATUS@GOTPAGEOFF]
Lloh4:
	adrp	x10, _I217_EEE_LP_ABILITY@GOTPAGE
Lloh5:
	ldr	x10, [x10, _I217_EEE_LP_ABILITY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _I82579_EEE_ADVERTISEMENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I82579_EEE_ADVERTISEMENT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _I82579_EEE_PCS_STATUS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I82579_EEE_PCS_STATUS@GOTPAGEOFF]
Lloh10:
	adrp	x10, _I82579_EEE_LP_ABILITY@GOTPAGE
Lloh11:
	ldr	x10, [x10, _I82579_EEE_LP_ABILITY@GOTPAGEOFF]
LBB0_4:
	ldr	w22, [x8]
	ldr	w20, [x9]
	ldr	w24, [x10]
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	mov	x23, x0
	cbnz	x0, LBB0_8
; %bb.5:
Lloh12:
	adrp	x25, _I82579_LPI_CTRL@GOTPAGE
Lloh13:
	ldr	x25, [x25, _I82579_LPI_CTRL@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1e_rphy_locked
	mov	x23, x0
	cbz	x0, LBB0_9
LBB0_6:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	b	LBB0_8
LBB0_7:
	mov	x23, #0
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
Lloh14:
	adrp	x8, _I82579_LPI_CTRL_ENABLE_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I82579_LPI_CTRL_ENABLE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_15
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.11:
Lloh17:
	adrp	x21, _I82579_LPI_PLL_SHUT@GOTPAGE
Lloh18:
	ldr	x21, [x21, _I82579_LPI_PLL_SHUT@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #4
	mov	x0, x19
	bl	_e1000_read_emi_reg_locked
	mov	x23, x0
	cbnz	x0, LBB0_6
; %bb.12:
Lloh19:
	adrp	x8, _I82579_LPI_100_PLL_SHUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I82579_LPI_100_PLL_SHUT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]
	bic	w2, w9, w8
	str	w2, [sp, #4]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_e1000_write_emi_reg_locked
LBB0_13:
	add	x2, sp, #4
	mov	x0, x19
	mov	x1, x20
	bl	_e1000_read_emi_reg_locked
	mov	x23, x0
	cbnz	x0, LBB0_6
; %bb.14:
	ldr	w1, [x25]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_e1e_wphy_locked
	mov	x23, x0
	b	LBB0_6
LBB0_15:
	add	x21, x19, #24
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	bl	_e1000_read_emi_reg_locked
	mov	x23, x0
	cbnz	x0, LBB0_6
; %bb.16:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x22
	bl	_e1000_read_emi_reg_locked
	mov	x23, x0
	cbnz	x0, LBB0_6
; %bb.17:
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	and	w8, w9, w8
Lloh22:
	adrp	x9, _I82579_EEE_1000_SUPPORTED@GOTPAGE
Lloh23:
	ldr	x9, [x9, _I82579_EEE_1000_SUPPORTED@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_19
; %bb.18:
Lloh25:
	adrp	x9, _I82579_LPI_CTRL_1000_ENABLE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _I82579_LPI_CTRL_1000_ENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	ldr	w10, [sp, #8]
	orr	w9, w10, w9
	str	w9, [sp, #8]
LBB0_19:
Lloh28:
	adrp	x22, _I82579_EEE_100_SUPPORTED@GOTPAGE
Lloh29:
	ldr	x22, [x22, _I82579_EEE_100_SUPPORTED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.20:
Lloh30:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x19
	bl	_e1e_rphy_locked
	ldr	w8, [sp, #4]
Lloh33:
	adrp	x9, _LPA_100FULL@GOTPAGE
Lloh34:
	ldr	x9, [x9, _LPA_100FULL@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
Lloh36:
	adrp	x8, _I82579_LPI_CTRL_100_ENABLE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I82579_LPI_CTRL_100_ENABLE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	b	LBB0_10
LBB0_22:
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_I82579_EEE_LP_ABILITY,4,2      ; @I82579_EEE_LP_ABILITY
	.comm	_I82579_EEE_PCS_STATUS,4,2      ; @I82579_EEE_PCS_STATUS
	.comm	_I82579_EEE_ADVERTISEMENT,4,2   ; @I82579_EEE_ADVERTISEMENT
	.comm	_I217_EEE_LP_ABILITY,4,2        ; @I217_EEE_LP_ABILITY
	.comm	_I217_EEE_PCS_STATUS,4,2        ; @I217_EEE_PCS_STATUS
	.comm	_I217_EEE_ADVERTISEMENT,4,2     ; @I217_EEE_ADVERTISEMENT
	.comm	_I82579_LPI_CTRL,4,2            ; @I82579_LPI_CTRL
	.comm	_I82579_LPI_CTRL_ENABLE_MASK,4,2 ; @I82579_LPI_CTRL_ENABLE_MASK
	.comm	_I82579_EEE_1000_SUPPORTED,4,2  ; @I82579_EEE_1000_SUPPORTED
	.comm	_I82579_LPI_CTRL_1000_ENABLE,4,2 ; @I82579_LPI_CTRL_1000_ENABLE
	.comm	_I82579_EEE_100_SUPPORTED,4,2   ; @I82579_EEE_100_SUPPORTED
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_LPA_100FULL,4,2                ; @LPA_100FULL
	.comm	_I82579_LPI_CTRL_100_ENABLE,4,2 ; @I82579_LPI_CTRL_100_ENABLE
	.comm	_I82579_LPI_PLL_SHUT,4,2        ; @I82579_LPI_PLL_SHUT
	.comm	_I82579_LPI_100_PLL_SHUT,4,2    ; @I82579_LPI_100_PLL_SHUT
.subsections_via_symbols
