	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_disable_ulp_lpt_lp
_e1000_disable_ulp_lpt_lp:              ## @e1000_disable_ulp_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
	movq	32(%rdi), %rax
	movq	_e1000_pch_lpt@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jge	LBB0_1
LBB0_32:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r13
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_E1000_DEV_ID_PCH_LPT_I217_LM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.2:
	movq	_E1000_DEV_ID_PCH_LPT_I217_V@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.3:
	movq	_E1000_DEV_ID_PCH_I218_LM2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.4:
	movq	_E1000_DEV_ID_PCH_I218_V2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.5:
	movq	(%r13), %rax
	movq	_e1000_ulp_state_off@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.6:
	movl	%esi, %ebx
	movq	_FWSM@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_er32
	movq	_E1000_ICH_FWSM_FW_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.7:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	movq	_H2ME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_H2ME_ULP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_E1000_H2ME_ENFORCE_SETTINGS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%rbx), %edi
	callq	_ew32
LBB0_9:
	movl	(%r12), %edi
	callq	_er32
	movq	_E1000_FWSM_ULP_CFG_DONE@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	$10, %ebx
	cmpl	$310, %ebx                      ## imm = 0x136
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movl	(%r12), %edi
	callq	_er32
	testl	%eax, (%r15)
	jne	LBB0_12
	jmp	LBB0_15
LBB0_20:
	movq	%r13, %rdi
	callq	*8(%r13)
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.21:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	callq	_e1000_toggle_lanphypc_pch_lpt
LBB0_23:
	movq	_CV_SMB_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_e1000_read_phy_reg_hv_locked
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movq	_CTRL_EXT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_CTRL_EXT_FORCE_SMBUS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_ew32
	movl	$50, %edi
	callq	_msleep
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_e1000_read_phy_reg_hv_locked
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_28
LBB0_25:
	movq	_CV_SMB_CTRL_FORCE_SMBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_e1000_write_phy_reg_hv_locked
	movq	_CTRL_EXT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_CTRL_EXT_FORCE_SMBUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_ew32
	movq	_HV_PM_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_e1000_read_phy_reg_hv_locked
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_28
## %bb.26:
	movq	_HV_PM_CTRL_K1_ENABLE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_e1000_write_phy_reg_hv_locked
	movq	_I218_ULP_CONFIG1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_e1000_read_phy_reg_hv_locked
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_28
## %bb.27:
	movq	_I218_ULP_CONFIG1_IND@GOTPCREL(%rip), %rax
	movq	_I218_ULP_CONFIG1_STICKY_ULP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_I218_ULP_CONFIG1_RESET_TO_SMBUS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_I218_ULP_CONFIG1_WOL_HOST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_I218_ULP_CONFIG1_INBAND_EXIT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_I218_ULP_CONFIG1_EN_ULP_LANPHYPC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_I218_ULP_CONFIG1_DIS_CLR_STICKY_ON_PERST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_I218_ULP_CONFIG1_DISABLE_SMB_PERST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_e1000_write_phy_reg_hv_locked
	movq	_I218_ULP_CONFIG1_START@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_e1000_write_phy_reg_hv_locked
	movq	_FEXTNVM7@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_FEXTNVM7_DISABLE_SMB_PERST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_ew32
	xorl	%r12d, %r12d
LBB0_28:
	movq	%r13, %rdi
	callq	*16(%r13)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_30
## %bb.29:
	movq	%r13, %rdi
	callq	_e1000_phy_hw_reset
	movl	$50, %edi
	callq	_msleep
	jmp	LBB0_30
LBB0_10:
	xorl	%ebx, %ebx
LBB0_15:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_e_dbg
	movq	_H2ME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.17:
	movq	_E1000_H2ME_ULP@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_16:
	movq	_E1000_H2ME_ENFORCE_SETTINGS@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	_e1000_ulp_state_off@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_13:
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_30:
	movq	_e1000_ulp_state_off@GOTPCREL(%rip), %rax
	testl	%r12d, %r12d
	je	LBB0_19
LBB0_31:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_e_dbg
	movl	%r12d, %r14d
	jmp	LBB0_32
LBB0_19:
	movq	(%rax), %rax
	movq	%rax, (%r13)
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_pch_lpt,8,3              ## @e1000_pch_lpt
	.comm	_E1000_DEV_ID_PCH_LPT_I217_LM,8,3 ## @E1000_DEV_ID_PCH_LPT_I217_LM
	.comm	_E1000_DEV_ID_PCH_LPT_I217_V,8,3 ## @E1000_DEV_ID_PCH_LPT_I217_V
	.comm	_E1000_DEV_ID_PCH_I218_LM2,8,3  ## @E1000_DEV_ID_PCH_I218_LM2
	.comm	_E1000_DEV_ID_PCH_I218_V2,8,3   ## @E1000_DEV_ID_PCH_I218_V2
	.comm	_e1000_ulp_state_off,8,3        ## @e1000_ulp_state_off
	.comm	_FWSM,4,2                       ## @FWSM
	.comm	_E1000_ICH_FWSM_FW_VALID,4,2    ## @E1000_ICH_FWSM_FW_VALID
	.comm	_H2ME,4,2                       ## @H2ME
	.comm	_E1000_H2ME_ULP,4,2             ## @E1000_H2ME_ULP
	.comm	_E1000_H2ME_ENFORCE_SETTINGS,4,2 ## @E1000_H2ME_ENFORCE_SETTINGS
	.comm	_E1000_FWSM_ULP_CFG_DONE,4,2    ## @E1000_FWSM_ULP_CFG_DONE
	.comm	_E1000_ERR_PHY,4,2              ## @E1000_ERR_PHY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ULP_CONFIG_DONE cleared after %dmsec\n"

	.comm	_CV_SMB_CTRL,4,2                ## @CV_SMB_CTRL
	.comm	_CTRL_EXT,4,2                   ## @CTRL_EXT
	.comm	_E1000_CTRL_EXT_FORCE_SMBUS,4,2 ## @E1000_CTRL_EXT_FORCE_SMBUS
	.comm	_CV_SMB_CTRL_FORCE_SMBUS,4,2    ## @CV_SMB_CTRL_FORCE_SMBUS
	.comm	_HV_PM_CTRL,4,2                 ## @HV_PM_CTRL
	.comm	_HV_PM_CTRL_K1_ENABLE,4,2       ## @HV_PM_CTRL_K1_ENABLE
	.comm	_I218_ULP_CONFIG1,4,2           ## @I218_ULP_CONFIG1
	.comm	_I218_ULP_CONFIG1_IND,4,2       ## @I218_ULP_CONFIG1_IND
	.comm	_I218_ULP_CONFIG1_STICKY_ULP,4,2 ## @I218_ULP_CONFIG1_STICKY_ULP
	.comm	_I218_ULP_CONFIG1_RESET_TO_SMBUS,4,2 ## @I218_ULP_CONFIG1_RESET_TO_SMBUS
	.comm	_I218_ULP_CONFIG1_WOL_HOST,4,2  ## @I218_ULP_CONFIG1_WOL_HOST
	.comm	_I218_ULP_CONFIG1_INBAND_EXIT,4,2 ## @I218_ULP_CONFIG1_INBAND_EXIT
	.comm	_I218_ULP_CONFIG1_EN_ULP_LANPHYPC,4,2 ## @I218_ULP_CONFIG1_EN_ULP_LANPHYPC
	.comm	_I218_ULP_CONFIG1_DIS_CLR_STICKY_ON_PERST,4,2 ## @I218_ULP_CONFIG1_DIS_CLR_STICKY_ON_PERST
	.comm	_I218_ULP_CONFIG1_DISABLE_SMB_PERST,4,2 ## @I218_ULP_CONFIG1_DISABLE_SMB_PERST
	.comm	_I218_ULP_CONFIG1_START,4,2     ## @I218_ULP_CONFIG1_START
	.comm	_FEXTNVM7,4,2                   ## @FEXTNVM7
	.comm	_E1000_FEXTNVM7_DISABLE_SMB_PERST,4,2 ## @E1000_FEXTNVM7_DISABLE_SMB_PERST
L_.str.1:                               ## @.str.1
	.asciz	"Error in ULP disable flow: %d\n"

	.no_dead_strip	_e1000_disable_ulp_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_disable_ulp_lpt_lp
_e1000_disable_ulp_lpt_lp:              ; @e1000_disable_ulp_lpt_lp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x9, _e1000_pch_lpt@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_pch_lpt@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _E1000_DEV_ID_PCH_LPT_I217_LM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _E1000_DEV_ID_PCH_LPT_I217_LM@GOTPAGEOFF]
Lloh5:
	adrp	x10, _E1000_DEV_ID_PCH_LPT_I217_V@GOTPAGE
Lloh6:
	ldr	x10, [x10, _E1000_DEV_ID_PCH_LPT_I217_V@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _E1000_DEV_ID_PCH_I218_LM2@GOTPAGE
Lloh10:
	ldr	x11, [x11, _E1000_DEV_ID_PCH_I218_LM2@GOTPAGEOFF]
Lloh11:
	adrp	x12, _E1000_DEV_ID_PCH_I218_V2@GOTPAGE
Lloh12:
	ldr	x12, [x12, _E1000_DEV_ID_PCH_I218_V2@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
Lloh14:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh15:
	adrp	x22, _e1000_ulp_state_off@GOTPAGE
Lloh16:
	ldr	x22, [x22, _e1000_ulp_state_off@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	mov	x20, x1
Lloh17:
	adrp	x26, _FWSM@GOTPAGE
Lloh18:
	ldr	x26, [x26, _FWSM@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_er32
Lloh19:
	adrp	x8, _E1000_ICH_FWSM_FW_VALID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E1000_ICH_FWSM_FW_VALID@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.6:
Lloh22:
	adrp	x23, _H2ME@GOTPAGE
Lloh23:
	ldr	x23, [x23, _H2ME@GOTPAGEOFF]
Lloh24:
	adrp	x24, _E1000_H2ME_ULP@GOTPAGE
Lloh25:
	ldr	x24, [x24, _E1000_H2ME_ULP@GOTPAGEOFF]
Lloh26:
	adrp	x25, _E1000_H2ME_ENFORCE_SETTINGS@GOTPAGE
Lloh27:
	ldr	x25, [x25, _E1000_H2ME_ENFORCE_SETTINGS@GOTPAGEOFF]
	cbz	w20, LBB0_8
; %bb.7:
	ldr	w0, [x23]
	bl	_er32
	ldr	w8, [x24]
	bic	w8, w0, w8
	ldr	w9, [x25]
	orr	w1, w8, w9
	ldr	w0, [x23]
	bl	_ew32
LBB0_8:
	ldr	w0, [x26]
	bl	_er32
Lloh28:
	adrp	x27, _E1000_FWSM_ULP_CFG_DONE@GOTPAGE
Lloh29:
	ldr	x27, [x27, _E1000_FWSM_ULP_CFG_DONE@GOTPAGEOFF]
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_22
; %bb.9:
	mov	w21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #10
	cmp	w21, #310
	b.eq	LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w0, [x26]
	bl	_er32
	ldr	w8, [x27]
	tst	w8, w0
	b.ne	LBB0_10
	b	LBB0_23
LBB0_12:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_26
; %bb.13:
	cbz	w20, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_e1000_toggle_lanphypc_pch_lpt
LBB0_15:
Lloh30:
	adrp	x25, _CV_SMB_CTRL@GOTPAGE
Lloh31:
	ldr	x25, [x25, _CV_SMB_CTRL@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg_hv_locked
Lloh32:
	adrp	x23, _CTRL_EXT@GOTPAGE
Lloh33:
	ldr	x23, [x23, _CTRL_EXT@GOTPAGEOFF]
Lloh34:
	adrp	x24, _E1000_CTRL_EXT_FORCE_SMBUS@GOTPAGE
Lloh35:
	ldr	x24, [x24, _E1000_CTRL_EXT_FORCE_SMBUS@GOTPAGEOFF]
	cbz	w0, LBB0_17
; %bb.16:
	ldr	w0, [x23]
	bl	_er32
	ldr	w8, [x24]
	orr	w1, w8, w0
	ldr	w0, [x23]
	bl	_ew32
	mov	w0, #50
	bl	_msleep
	ldr	w1, [x25]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg_hv_locked
	mov	x21, x0
	cbnz	w0, LBB0_20
LBB0_17:
Lloh36:
	adrp	x8, _CV_SMB_CTRL_FORCE_SMBUS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CV_SMB_CTRL_FORCE_SMBUS@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_e1000_write_phy_reg_hv_locked
	ldr	w0, [x23]
	bl	_er32
	ldr	w8, [x24]
	bic	w1, w0, w8
	ldr	w0, [x23]
	bl	_ew32
Lloh39:
	adrp	x23, _HV_PM_CTRL@GOTPAGE
Lloh40:
	ldr	x23, [x23, _HV_PM_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg_hv_locked
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.18:
Lloh41:
	adrp	x8, _HV_PM_CTRL_K1_ENABLE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _HV_PM_CTRL_K1_ENABLE@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_e1000_write_phy_reg_hv_locked
Lloh44:
	adrp	x23, _I218_ULP_CONFIG1@GOTPAGE
Lloh45:
	ldr	x23, [x23, _I218_ULP_CONFIG1@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg_hv_locked
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.19:
Lloh46:
	adrp	x8, _I218_ULP_CONFIG1_IND@GOTPAGE
Lloh47:
	ldr	x8, [x8, _I218_ULP_CONFIG1_IND@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _I218_ULP_CONFIG1_STICKY_ULP@GOTPAGE
Lloh50:
	ldr	x9, [x9, _I218_ULP_CONFIG1_STICKY_ULP@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh52:
	adrp	x9, _I218_ULP_CONFIG1_RESET_TO_SMBUS@GOTPAGE
Lloh53:
	ldr	x9, [x9, _I218_ULP_CONFIG1_RESET_TO_SMBUS@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh55:
	adrp	x9, _I218_ULP_CONFIG1_WOL_HOST@GOTPAGE
Lloh56:
	ldr	x9, [x9, _I218_ULP_CONFIG1_WOL_HOST@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh58:
	adrp	x9, _I218_ULP_CONFIG1_INBAND_EXIT@GOTPAGE
Lloh59:
	ldr	x9, [x9, _I218_ULP_CONFIG1_INBAND_EXIT@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh61:
	adrp	x9, _I218_ULP_CONFIG1_EN_ULP_LANPHYPC@GOTPAGE
Lloh62:
	ldr	x9, [x9, _I218_ULP_CONFIG1_EN_ULP_LANPHYPC@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh64:
	adrp	x9, _I218_ULP_CONFIG1_DIS_CLR_STICKY_ON_PERST@GOTPAGE
Lloh65:
	ldr	x9, [x9, _I218_ULP_CONFIG1_DIS_CLR_STICKY_ON_PERST@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh67:
	adrp	x9, _I218_ULP_CONFIG1_DISABLE_SMB_PERST@GOTPAGE
Lloh68:
	ldr	x9, [x9, _I218_ULP_CONFIG1_DISABLE_SMB_PERST@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_e1000_write_phy_reg_hv_locked
Lloh70:
	adrp	x8, _I218_ULP_CONFIG1_START@GOTPAGE
Lloh71:
	ldr	x8, [x8, _I218_ULP_CONFIG1_START@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_e1000_write_phy_reg_hv_locked
Lloh73:
	adrp	x21, _FEXTNVM7@GOTPAGE
Lloh74:
	ldr	x21, [x21, _FEXTNVM7@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
Lloh75:
	adrp	x8, _E1000_FEXTNVM7_DISABLE_SMB_PERST@GOTPAGE
Lloh76:
	ldr	x8, [x8, _E1000_FEXTNVM7_DISABLE_SMB_PERST@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x21]
	bl	_ew32
	mov	w21, #0
LBB0_20:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	cbz	w20, LBB0_25
; %bb.21:
	mov	x0, x19
	bl	_e1000_phy_hw_reset
	mov	w0, #50
	bl	_msleep
	b	LBB0_25
LBB0_22:
	mov	w21, #0
LBB0_23:
Lloh78:
	adrp	x0, l_.str@PAGE
Lloh79:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_e_dbg
	ldr	w0, [x23]
	bl	_er32
	cmp	w20, #0
	csel	x8, x24, x25, eq
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x23]
	bl	_ew32
	b	LBB0_27
LBB0_24:
Lloh80:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh81:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_25:
	cbz	w21, LBB0_27
LBB0_26:
Lloh83:
	adrp	x0, l_.str.1@PAGE
Lloh84:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_e_dbg
	b	LBB0_4
LBB0_27:
	mov	w21, #0
	ldr	x8, [x22]
	str	x8, [x19]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_pch_lpt,8,3              ; @e1000_pch_lpt
	.comm	_E1000_DEV_ID_PCH_LPT_I217_LM,8,3 ; @E1000_DEV_ID_PCH_LPT_I217_LM
	.comm	_E1000_DEV_ID_PCH_LPT_I217_V,8,3 ; @E1000_DEV_ID_PCH_LPT_I217_V
	.comm	_E1000_DEV_ID_PCH_I218_LM2,8,3  ; @E1000_DEV_ID_PCH_I218_LM2
	.comm	_E1000_DEV_ID_PCH_I218_V2,8,3   ; @E1000_DEV_ID_PCH_I218_V2
	.comm	_e1000_ulp_state_off,8,3        ; @e1000_ulp_state_off
	.comm	_FWSM,4,2                       ; @FWSM
	.comm	_E1000_ICH_FWSM_FW_VALID,4,2    ; @E1000_ICH_FWSM_FW_VALID
	.comm	_H2ME,4,2                       ; @H2ME
	.comm	_E1000_H2ME_ULP,4,2             ; @E1000_H2ME_ULP
	.comm	_E1000_H2ME_ENFORCE_SETTINGS,4,2 ; @E1000_H2ME_ENFORCE_SETTINGS
	.comm	_E1000_FWSM_ULP_CFG_DONE,4,2    ; @E1000_FWSM_ULP_CFG_DONE
	.comm	_E1000_ERR_PHY,4,2              ; @E1000_ERR_PHY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ULP_CONFIG_DONE cleared after %dmsec\n"

	.comm	_CV_SMB_CTRL,4,2                ; @CV_SMB_CTRL
	.comm	_CTRL_EXT,4,2                   ; @CTRL_EXT
	.comm	_E1000_CTRL_EXT_FORCE_SMBUS,4,2 ; @E1000_CTRL_EXT_FORCE_SMBUS
	.comm	_CV_SMB_CTRL_FORCE_SMBUS,4,2    ; @CV_SMB_CTRL_FORCE_SMBUS
	.comm	_HV_PM_CTRL,4,2                 ; @HV_PM_CTRL
	.comm	_HV_PM_CTRL_K1_ENABLE,4,2       ; @HV_PM_CTRL_K1_ENABLE
	.comm	_I218_ULP_CONFIG1,4,2           ; @I218_ULP_CONFIG1
	.comm	_I218_ULP_CONFIG1_IND,4,2       ; @I218_ULP_CONFIG1_IND
	.comm	_I218_ULP_CONFIG1_STICKY_ULP,4,2 ; @I218_ULP_CONFIG1_STICKY_ULP
	.comm	_I218_ULP_CONFIG1_RESET_TO_SMBUS,4,2 ; @I218_ULP_CONFIG1_RESET_TO_SMBUS
	.comm	_I218_ULP_CONFIG1_WOL_HOST,4,2  ; @I218_ULP_CONFIG1_WOL_HOST
	.comm	_I218_ULP_CONFIG1_INBAND_EXIT,4,2 ; @I218_ULP_CONFIG1_INBAND_EXIT
	.comm	_I218_ULP_CONFIG1_EN_ULP_LANPHYPC,4,2 ; @I218_ULP_CONFIG1_EN_ULP_LANPHYPC
	.comm	_I218_ULP_CONFIG1_DIS_CLR_STICKY_ON_PERST,4,2 ; @I218_ULP_CONFIG1_DIS_CLR_STICKY_ON_PERST
	.comm	_I218_ULP_CONFIG1_DISABLE_SMB_PERST,4,2 ; @I218_ULP_CONFIG1_DISABLE_SMB_PERST
	.comm	_I218_ULP_CONFIG1_START,4,2     ; @I218_ULP_CONFIG1_START
	.comm	_FEXTNVM7,4,2                   ; @FEXTNVM7
	.comm	_E1000_FEXTNVM7_DISABLE_SMB_PERST,4,2 ; @E1000_FEXTNVM7_DISABLE_SMB_PERST
l_.str.1:                               ; @.str.1
	.asciz	"Error in ULP disable flow: %d\n"

	.no_dead_strip	_e1000_disable_ulp_lpt_lp
.subsections_via_symbols
