	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, -24(%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	-24(%rbp), %rdx
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movl	-24(%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
	movl	%eax, %ecx
	notl	%ecx
	testl	%ecx, %edx
	jne	LBB0_7
## %bb.3:
	movq	_HV_M_STATUS_SPEED_1000@GOTPCREL(%rip), %rcx
	movq	_HV_M_STATUS_SPEED_100@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_6
## %bb.4:
	movq	_HV_PM_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_HV_PM_CTRL_K1_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-20(%rbp), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_6:
	movq	_FEXTNVM4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_FEXTNVM4_BEACON_DURATION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_E1000_FEXTNVM4_BEACON_DURATION_16USEC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%rbx), %edi
	callq	_ew32
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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	_HV_M_STATUS_SPEED_1000,4,2     ## @HV_M_STATUS_SPEED_1000
	.comm	_HV_M_STATUS_SPEED_100,4,2      ## @HV_M_STATUS_SPEED_100
	.comm	_HV_PM_CTRL,4,2                 ## @HV_PM_CTRL
	.comm	_HV_PM_CTRL_K1_ENABLE,4,2       ## @HV_PM_CTRL_K1_ENABLE
	.comm	_FEXTNVM4,4,2                   ## @FEXTNVM4
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_MASK,4,2 ## @E1000_FEXTNVM4_BEACON_DURATION_MASK
	.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, #48
	.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
	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	x9, _HV_M_STATUS_SPEED_1000@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HV_M_STATUS_SPEED_1000@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _HV_M_STATUS_SPEED_100@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HV_M_STATUS_SPEED_100@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh18:
	adrp	x20, _HV_PM_CTRL@GOTPAGE
Lloh19:
	ldr	x20, [x20, _HV_PM_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_8
; %bb.5:
Lloh20:
	adrp	x8, _HV_PM_CTRL_K1_ENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HV_PM_CTRL_K1_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	bic	w2, w9, w8
	str	w2, [sp, #8]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy
	cbnz	x0, LBB0_8
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x19, _FEXTNVM4@GOTPAGE
Lloh24:
	ldr	x19, [x19, _FEXTNVM4@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_er32
Lloh25:
	adrp	x8, _E1000_FEXTNVM4_BEACON_DURATION_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E1000_FEXTNVM4_BEACON_DURATION_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh28:
	adrp	x9, _E1000_FEXTNVM4_BEACON_DURATION_16USEC@GOTPAGE
Lloh29:
	ldr	x9, [x9, _E1000_FEXTNVM4_BEACON_DURATION_16USEC@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w0, [x19]
	bl	_ew32
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.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	_HV_M_STATUS_SPEED_1000,4,2     ; @HV_M_STATUS_SPEED_1000
	.comm	_HV_M_STATUS_SPEED_100,4,2      ; @HV_M_STATUS_SPEED_100
	.comm	_HV_PM_CTRL,4,2                 ; @HV_PM_CTRL
	.comm	_HV_PM_CTRL_K1_ENABLE,4,2       ; @HV_PM_CTRL_K1_ENABLE
	.comm	_FEXTNVM4,4,2                   ; @FEXTNVM4
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_MASK,4,2 ; @E1000_FEXTNVM4_BEACON_DURATION_MASK
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_16USEC,4,2 ; @E1000_FEXTNVM4_BEACON_DURATION_16USEC
	.no_dead_strip	_e1000_k1_workaround_lv
.subsections_via_symbols
