	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_k1_workaround_lpt_lp
_e1000_k1_workaround_lpt_lp:            ## @e1000_k1_workaround_lpt_lp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_FEXTNVM6@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_er32
	movl	%eax, %r15d
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.1:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_SPEED_1000@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	*8(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_8:
	movl	(%r12), %edi
	movq	_E1000_FEXTNVM6_REQ_PLL_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movl	%r15d, %esi
	callq	_ew32
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_E1000_KMRNCTRLSTA_K1_CONFIG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000e_read_kmrn_reg_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movl	(%r13), %esi
	movq	_E1000_KMRNCTRLSTA_K1_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	_e1000e_write_kmrn_reg_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r12), %edi
	movq	_E1000_FEXTNVM6_REQ_PLL_CLK@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, %esi
	callq	_ew32
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	_e1000e_write_kmrn_reg_locked
	movq	%rax, %rbx
LBB0_6:
	movq	%r14, %rdi
	callq	*(%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_FEXTNVM6,4,2                   ## @FEXTNVM6
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_SPEED_1000,4,2    ## @E1000_STATUS_SPEED_1000
	.comm	_E1000_KMRNCTRLSTA_K1_CONFIG,4,2 ## @E1000_KMRNCTRLSTA_K1_CONFIG
	.comm	_E1000_KMRNCTRLSTA_K1_ENABLE,4,2 ## @E1000_KMRNCTRLSTA_K1_ENABLE
	.comm	_E1000_FEXTNVM6_REQ_PLL_CLK,4,2 ## @E1000_FEXTNVM6_REQ_PLL_CLK
	.no_dead_strip	_e1000_k1_workaround_lpt_lp
.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_lpt_lp
_e1000_k1_workaround_lpt_lp:            ; @e1000_k1_workaround_lpt_lp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _FEXTNVM6@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FEXTNVM6@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_er32
	mov	x20, x0
	cbz	w21, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_er32
Lloh5:
	adrp	x8, _E1000_STATUS_SPEED_1000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E1000_STATUS_SPEED_1000@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x22]
Lloh8:
	adrp	x8, _E1000_FEXTNVM6_REQ_PLL_CLK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_FEXTNVM6_REQ_PLL_CLK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w1, w20, w8
	bl	_ew32
	mov	x21, #0
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh11:
	adrp	x23, _E1000_KMRNCTRLSTA_K1_CONFIG@GOTPAGE
Lloh12:
	ldr	x23, [x23, _E1000_KMRNCTRLSTA_K1_CONFIG@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000e_read_kmrn_reg_locked
	mov	x21, x0
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	w1, [x23]
	ldr	w8, [sp, #12]
Lloh13:
	adrp	x9, _E1000_KMRNCTRLSTA_K1_ENABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _E1000_KMRNCTRLSTA_K1_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	bic	w2, w8, w9
	mov	x0, x19
	bl	_e1000e_write_kmrn_reg_locked
	mov	x21, x0
	cbnz	x0, LBB0_9
; %bb.8:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x22]
Lloh16:
	adrp	x8, _E1000_FEXTNVM6_REQ_PLL_CLK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E1000_FEXTNVM6_REQ_PLL_CLK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w1, w8, w20
	bl	_ew32
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_e1000e_write_kmrn_reg_locked
	mov	x21, x0
LBB0_9:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FEXTNVM6,4,2                   ; @FEXTNVM6
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_SPEED_1000,4,2    ; @E1000_STATUS_SPEED_1000
	.comm	_E1000_KMRNCTRLSTA_K1_CONFIG,4,2 ; @E1000_KMRNCTRLSTA_K1_CONFIG
	.comm	_E1000_KMRNCTRLSTA_K1_ENABLE,4,2 ; @E1000_KMRNCTRLSTA_K1_ENABLE
	.comm	_E1000_FEXTNVM6_REQ_PLL_CLK,4,2 ; @E1000_FEXTNVM6_REQ_PLL_CLK
	.no_dead_strip	_e1000_k1_workaround_lpt_lp
.subsections_via_symbols
