	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_k1_workaround_lv
_e1000_k1_workaround_lv:                ## @e1000_k1_workaround_lv
	.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
	movl	$0, -48(%rbp)
	movq	(%rdi), %rax
	movq	_e1000_pch2lan@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	_HV_M_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movl	-48(%rbp), %eax
	movq	_HV_M_STATUS_LINK_UP@GOTPCREL(%rip), %rcx
	movq	_HV_M_STATUS_AUTONEG_COMPLETE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%eax
	testl	%eax, %edx
	jne	LBB0_7
## %bb.3:
	movq	_FEXTNVM4@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	movl	%eax, %r14d
	movq	_E1000_FEXTNVM4_BEACON_DURATION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_I82579_LPI_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	_HV_M_STATUS_SPEED_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_10
## %bb.5:
	movq	_I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -44(%rbp)
	movq	_E1000_FEXTNVM4_BEACON_DURATION_8USEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_HV_PM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_HV_PM_CTRL_PLL_STOP_IN_K1_GIGA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-52(%rbp), %edx
	movl	%edx, -52(%rbp)
	movq	_HV_PM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_8
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_E1000_FEXTNVM4_BEACON_DURATION_16USEC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
LBB0_11:
	notl	%r13d
	andl	%r13d, %r14d
	orl	%ecx, %r14d
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_ew32
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_e1e_wphy
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_pch2lan,8,3              ## @e1000_pch2lan
	.comm	_HV_M_STATUS,4,2                ## @HV_M_STATUS
	.comm	_HV_M_STATUS_LINK_UP,4,2        ## @HV_M_STATUS_LINK_UP
	.comm	_HV_M_STATUS_AUTONEG_COMPLETE,4,2 ## @HV_M_STATUS_AUTONEG_COMPLETE
	.comm	_FEXTNVM4,4,2                   ## @FEXTNVM4
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_MASK,4,2 ## @E1000_FEXTNVM4_BEACON_DURATION_MASK
	.comm	_I82579_LPI_CTRL,4,2            ## @I82579_LPI_CTRL
	.comm	_HV_M_STATUS_SPEED_1000,4,2     ## @HV_M_STATUS_SPEED_1000
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_8USEC,4,2 ## @E1000_FEXTNVM4_BEACON_DURATION_8USEC
	.comm	_I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT,4,2 ## @I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT
	.comm	_HV_PM_CTRL,4,2                 ## @HV_PM_CTRL
	.comm	_HV_PM_CTRL_PLL_STOP_IN_K1_GIGA,4,2 ## @HV_PM_CTRL_PLL_STOP_IN_K1_GIGA
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_16USEC,4,2 ## @E1000_FEXTNVM4_BEACON_DURATION_16USEC
	.no_dead_strip	_e1000_k1_workaround_lv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_k1_workaround_lv
_e1000_k1_workaround_lv:                ; @e1000_k1_workaround_lv
	.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
	str	wzr, [sp, #12]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_pch2lan@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_pch2lan@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _HV_M_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HV_M_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_e1e_rphy
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _HV_M_STATUS_LINK_UP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HV_M_STATUS_LINK_UP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _HV_M_STATUS_AUTONEG_COMPLETE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HV_M_STATUS_AUTONEG_COMPLETE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_7
; %bb.3:
Lloh12:
	adrp	x21, _FEXTNVM4@GOTPAGE
Lloh13:
	ldr	x21, [x21, _FEXTNVM4@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
	mov	x20, x0
Lloh14:
	adrp	x8, _E1000_FEXTNVM4_BEACON_DURATION_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_FEXTNVM4_BEACON_DURATION_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
Lloh17:
	adrp	x22, _I82579_LPI_CTRL@GOTPAGE
Lloh18:
	ldr	x22, [x22, _I82579_LPI_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	w8, [sp, #12]
Lloh19:
	adrp	x9, _HV_M_STATUS_SPEED_1000@GOTPAGE
Lloh20:
	ldr	x9, [x9, _HV_M_STATUS_SPEED_1000@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:
Lloh22:
	adrp	x8, _E1000_FEXTNVM4_BEACON_DURATION_8USEC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _E1000_FEXTNVM4_BEACON_DURATION_8USEC@GOTPAGEOFF]
Lloh24:
	ldr	w24, [x8]
Lloh25:
	adrp	x8, _I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	str	w8, [sp, #8]
Lloh28:
	adrp	x25, _HV_PM_CTRL@GOTPAGE
Lloh29:
	ldr	x25, [x25, _HV_PM_CTRL@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #4
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_8
; %bb.6:
Lloh30:
	adrp	x8, _HV_PM_CTRL_PLL_STOP_IN_K1_GIGA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HV_PM_CTRL_PLL_STOP_IN_K1_GIGA@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]
	bic	w2, w9, w8
	str	w2, [sp, #4]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_e1e_wphy
	cbnz	x0, LBB0_8
	b	LBB0_10
LBB0_7:
	mov	x0, #0
LBB0_8:
	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:
Lloh33:
	adrp	x8, _E1000_FEXTNVM4_BEACON_DURATION_16USEC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _E1000_FEXTNVM4_BEACON_DURATION_16USEC@GOTPAGEOFF]
Lloh35:
	ldr	w24, [x8]
Lloh36:
	adrp	x8, _I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
LBB0_10:
	bic	w8, w20, w23
	orr	w1, w24, w8
	ldr	w0, [x21]
	bl	_ew32
	ldr	w1, [x22]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_e1e_wphy
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_pch2lan,8,3              ; @e1000_pch2lan
	.comm	_HV_M_STATUS,4,2                ; @HV_M_STATUS
	.comm	_HV_M_STATUS_LINK_UP,4,2        ; @HV_M_STATUS_LINK_UP
	.comm	_HV_M_STATUS_AUTONEG_COMPLETE,4,2 ; @HV_M_STATUS_AUTONEG_COMPLETE
	.comm	_FEXTNVM4,4,2                   ; @FEXTNVM4
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_MASK,4,2 ; @E1000_FEXTNVM4_BEACON_DURATION_MASK
	.comm	_I82579_LPI_CTRL,4,2            ; @I82579_LPI_CTRL
	.comm	_HV_M_STATUS_SPEED_1000,4,2     ; @HV_M_STATUS_SPEED_1000
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_8USEC,4,2 ; @E1000_FEXTNVM4_BEACON_DURATION_8USEC
	.comm	_I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT,4,2 ; @I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT
	.comm	_HV_PM_CTRL,4,2                 ; @HV_PM_CTRL
	.comm	_HV_PM_CTRL_PLL_STOP_IN_K1_GIGA,4,2 ; @HV_PM_CTRL_PLL_STOP_IN_K1_GIGA
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_16USEC,4,2 ; @E1000_FEXTNVM4_BEACON_DURATION_16USEC
	.no_dead_strip	_e1000_k1_workaround_lv
.subsections_via_symbols
