	.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), %r13
	movl	(%r13), %edi
	callq	_er32
	movl	%eax, %r15d
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	movq	_E1000_STATUS_SPEED_1000@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	*16(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.4:
	movq	_E1000_KMRNCTRLSTA_K1_CONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000e_read_kmrn_reg_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movl	(%r12), %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_7
## %bb.6:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r13), %edi
	movq	_E1000_FEXTNVM6_REQ_PLL_CLK@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, %esi
	callq	_ew32
	movl	(%r12), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	_e1000e_write_kmrn_reg_locked
	movq	%rax, %rbx
LBB0_7:
	movq	%r14, %rdi
	callq	*8(%r14)
	jmp	LBB0_17
LBB0_1:
	movq	_E1000_FEXTNVM6_REQ_PLL_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	jmp	LBB0_16
LBB0_8:
	movq	_E1000_FEXTNVM6_REQ_PLL_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	cmpl	$5, (%r14)
	jg	LBB0_16
## %bb.9:
	movq	_E1000_STATUS_SPEED_100@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_E1000_STATUS_FD@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
LBB0_16:
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_ew32
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_I217_INBAND_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.12:
	movq	_I217_INBAND_CTRL@GOTPCREL(%rip), %rsi
	movq	_I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-44(%rbp), %eax
	movq	_I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_E1000_STATUS_SPEED_100@GOTPCREL(%rip), %rdx
	testl	%r12d, (%rdx)
	je	LBB0_14
## %bb.13:
	movl	$5, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, -44(%rbp)
	movq	_E1000_FEXTNVM6_ENABLE_K1_ENTRY_CONDITION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	jmp	LBB0_15
LBB0_14:
	movl	$50, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, -44(%rbp)
	movq	_E1000_FEXTNVM6_ENABLE_K1_ENTRY_CONDITION@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_15:
	movl	(%rsi), %esi
	movq	%r14, %rdi
	callq	_e1e_wphy
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_16
	.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
	.comm	_E1000_STATUS_SPEED_100,4,2     ## @E1000_STATUS_SPEED_100
	.comm	_E1000_STATUS_FD,4,2            ## @E1000_STATUS_FD
	.comm	_I217_INBAND_CTRL,4,2           ## @I217_INBAND_CTRL
	.comm	_I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_MASK,4,2 ## @I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_MASK
	.comm	_I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_SHIFT,4,2 ## @I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_SHIFT
	.comm	_E1000_FEXTNVM6_ENABLE_K1_ENTRY_CONDITION,4,2 ## @E1000_FEXTNVM6_ENABLE_K1_ENTRY_CONDITION
	.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, #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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _FEXTNVM6@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FEXTNVM6@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_er32
	mov	x20, x0
Lloh2:
	adrp	x8, _STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_er32
	cbz	w22, LBB0_7
; %bb.1:
	mov	x21, x0
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_8
; %bb.2:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	cbnz	x0, LBB0_12
; %bb.3:
Lloh8:
	adrp	x21, _E1000_KMRNCTRLSTA_K1_CONFIG@GOTPAGE
Lloh9:
	ldr	x21, [x21, _E1000_KMRNCTRLSTA_K1_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000e_read_kmrn_reg_locked
	mov	x22, x0
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	w1, [x21]
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _E1000_KMRNCTRLSTA_K1_ENABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _E1000_KMRNCTRLSTA_K1_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	bic	w2, w8, w9
	mov	x0, x19
	bl	_e1000e_write_kmrn_reg_locked
	mov	x22, x0
	cbnz	x0, LBB0_6
; %bb.5:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x23]
Lloh13:
	adrp	x8, _E1000_FEXTNVM6_REQ_PLL_CLK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E1000_FEXTNVM6_REQ_PLL_CLK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w1, w8, w20
	bl	_ew32
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_e1000e_write_kmrn_reg_locked
	mov	x22, x0
LBB0_6:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	b	LBB0_12
LBB0_7:
Lloh16:
	adrp	x8, _E1000_FEXTNVM6_REQ_PLL_CLK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E1000_FEXTNVM6_REQ_PLL_CLK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w20, w20, w8
	b	LBB0_11
LBB0_8:
Lloh19:
	adrp	x8, _E1000_FEXTNVM6_REQ_PLL_CLK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E1000_FEXTNVM6_REQ_PLL_CLK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	bic	w20, w20, w8
	ldr	w8, [x19]
	cmp	w8, #5
	b.gt	LBB0_11
; %bb.9:
Lloh22:
	adrp	x25, _E1000_STATUS_SPEED_100@GOTPAGE
Lloh23:
	ldr	x25, [x25, _E1000_STATUS_SPEED_100@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.10:
Lloh24:
	adrp	x8, _E1000_STATUS_FD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _E1000_STATUS_FD@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
LBB0_11:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_ew32
	mov	x22, #0
LBB0_12:
	mov	x0, x22
	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_13:
Lloh27:
	adrp	x24, _I217_INBAND_CTRL@GOTPAGE
Lloh28:
	ldr	x24, [x24, _I217_INBAND_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	mov	x22, x0
	cbnz	x0, LBB0_12
; %bb.14:
Lloh29:
	adrp	x8, _I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	ldr	w10, [x25]
Lloh32:
	adrp	x9, _I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_SHIFT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w10, w21
	b.eq	LBB0_16
; %bb.15:
	mov	w10, #5
	lsl	w9, w10, w9
	orr	w2, w9, w8
	str	w2, [sp, #12]
Lloh35:
	adrp	x8, _E1000_FEXTNVM6_ENABLE_K1_ENTRY_CONDITION@GOTPAGE
Lloh36:
	ldr	x8, [x8, _E1000_FEXTNVM6_ENABLE_K1_ENTRY_CONDITION@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	bic	w20, w20, w8
	b	LBB0_17
LBB0_16:
	mov	w10, #50
	lsl	w9, w10, w9
	orr	w2, w9, w8
	str	w2, [sp, #12]
Lloh38:
	adrp	x8, _E1000_FEXTNVM6_ENABLE_K1_ENTRY_CONDITION@GOTPAGE
Lloh39:
	ldr	x8, [x8, _E1000_FEXTNVM6_ENABLE_K1_ENTRY_CONDITION@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_17:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_e1e_wphy
	mov	x22, x0
	cbnz	x0, LBB0_12
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.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
	.comm	_E1000_STATUS_SPEED_100,4,2     ; @E1000_STATUS_SPEED_100
	.comm	_E1000_STATUS_FD,4,2            ; @E1000_STATUS_FD
	.comm	_I217_INBAND_CTRL,4,2           ; @I217_INBAND_CTRL
	.comm	_I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_MASK,4,2 ; @I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_MASK
	.comm	_I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_SHIFT,4,2 ; @I217_INBAND_CTRL_LINK_STAT_TX_TIMEOUT_SHIFT
	.comm	_E1000_FEXTNVM6_ENABLE_K1_ENTRY_CONDITION,4,2 ; @E1000_FEXTNVM6_ENABLE_K1_ENTRY_CONDITION
	.no_dead_strip	_e1000_k1_workaround_lpt_lp
.subsections_via_symbols
