	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_toggle_lanphypc_pch_lpt
_e1000_toggle_lanphypc_pch_lpt:         ## @e1000_toggle_lanphypc_pch_lpt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_FEXTNVM3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_FEXTNVM3_PHY_CFG_COUNTER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_E1000_FEXTNVM3_PHY_CFG_COUNTER_50MSEC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%rbx), %edi
	callq	_ew32
	movq	_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	movq	_E1000_CTRL_LANPHYPC_OVERRIDE@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movq	_E1000_CTRL_LANPHYPC_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	notl	%esi
	andl	%ebx, %esi
	movl	(%r15), %edi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movq	(%r14), %rax
	movq	_e1000_pch_lpt@GOTPCREL(%rip), %rcx
	movl	$50, %edi
	cmpq	(%rcx), %rax
	jl	LBB0_4
## %bb.1:
	movl	$-20, %ebx
	movq	_CTRL_EXT@GOTPCREL(%rip), %r14
	movq	_E1000_CTRL_EXT_LPCD@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movl	(%r14), %edi
	callq	_er32
	movl	$30, %edi
	testl	%eax, (%r15)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jne	LBB0_2
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FEXTNVM3,4,2                   ## @FEXTNVM3
	.comm	_E1000_FEXTNVM3_PHY_CFG_COUNTER_MASK,4,2 ## @E1000_FEXTNVM3_PHY_CFG_COUNTER_MASK
	.comm	_E1000_FEXTNVM3_PHY_CFG_COUNTER_50MSEC,4,2 ## @E1000_FEXTNVM3_PHY_CFG_COUNTER_50MSEC
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_LANPHYPC_OVERRIDE,4,2 ## @E1000_CTRL_LANPHYPC_OVERRIDE
	.comm	_E1000_CTRL_LANPHYPC_VALUE,4,2  ## @E1000_CTRL_LANPHYPC_VALUE
	.comm	_e1000_pch_lpt,8,3              ## @e1000_pch_lpt
	.comm	_CTRL_EXT,4,2                   ## @CTRL_EXT
	.comm	_E1000_CTRL_EXT_LPCD,4,2        ## @E1000_CTRL_EXT_LPCD
	.no_dead_strip	_e1000_toggle_lanphypc_pch_lpt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_toggle_lanphypc_pch_lpt
_e1000_toggle_lanphypc_pch_lpt:         ; @e1000_toggle_lanphypc_pch_lpt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _FEXTNVM3@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FEXTNVM3@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh2:
	adrp	x8, _E1000_FEXTNVM3_PHY_CFG_COUNTER_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_FEXTNVM3_PHY_CFG_COUNTER_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _E1000_FEXTNVM3_PHY_CFG_COUNTER_50MSEC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _E1000_FEXTNVM3_PHY_CFG_COUNTER_50MSEC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w0, [x20]
	bl	_ew32
Lloh8:
	adrp	x21, _CTRL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CTRL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
Lloh10:
	adrp	x22, _E1000_CTRL_LANPHYPC_OVERRIDE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _E1000_CTRL_LANPHYPC_OVERRIDE@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w8, w8, w0
Lloh12:
	adrp	x9, _E1000_CTRL_LANPHYPC_VALUE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _E1000_CTRL_LANPHYPC_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	bic	w20, w8, w9
	ldr	w0, [x21]
	mov	x1, x20
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w8, [x22]
	bic	w1, w20, w8
	ldr	w0, [x21]
	bl	_ew32
	bl	_e1e_flush
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _e1000_pch_lpt@GOTPAGE
Lloh16:
	ldr	x9, [x9, _e1000_pch_lpt@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #50
	b	LBB0_5
LBB0_2:
	mov	w19, #-20
Lloh18:
	adrp	x20, _CTRL_EXT@GOTPAGE
Lloh19:
	ldr	x20, [x20, _CTRL_EXT@GOTPAGEOFF]
Lloh20:
	adrp	x21, _E1000_CTRL_EXT_LPCD@GOTPAGE
Lloh21:
	ldr	x21, [x21, _E1000_CTRL_EXT_LPCD@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	ldr	w0, [x20]
	bl	_er32
	ldr	w8, [x21]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w19, #0, #4, eq
	add	w19, w19, #1
	b.ne	LBB0_3
; %bb.4:
	mov	w0, #30
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_msleep
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FEXTNVM3,4,2                   ; @FEXTNVM3
	.comm	_E1000_FEXTNVM3_PHY_CFG_COUNTER_MASK,4,2 ; @E1000_FEXTNVM3_PHY_CFG_COUNTER_MASK
	.comm	_E1000_FEXTNVM3_PHY_CFG_COUNTER_50MSEC,4,2 ; @E1000_FEXTNVM3_PHY_CFG_COUNTER_50MSEC
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_LANPHYPC_OVERRIDE,4,2 ; @E1000_CTRL_LANPHYPC_OVERRIDE
	.comm	_E1000_CTRL_LANPHYPC_VALUE,4,2  ; @E1000_CTRL_LANPHYPC_VALUE
	.comm	_e1000_pch_lpt,8,3              ; @e1000_pch_lpt
	.comm	_CTRL_EXT,4,2                   ; @CTRL_EXT
	.comm	_E1000_CTRL_EXT_LPCD,4,2        ; @E1000_CTRL_EXT_LPCD
	.no_dead_strip	_e1000_toggle_lanphypc_pch_lpt
.subsections_via_symbols
