	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_enable_ulp_lpt_lp        ## -- Begin function e1000_enable_ulp_lpt_lp
	.p2align	4, 0x90
_e1000_enable_ulp_lpt_lp:               ## @e1000_enable_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
	movl	$0, -48(%rbp)
	movq	48(%rdi), %rax
	movq	_e1000_pch_lpt@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jge	LBB0_1
LBB0_37:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_E1000_DEV_ID_PCH_LPT_I217_LM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_37
## %bb.2:
	movq	_E1000_DEV_ID_PCH_LPT_I217_V@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_37
## %bb.3:
	movq	_E1000_DEV_ID_PCH_I218_LM2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_37
## %bb.4:
	movq	_E1000_DEV_ID_PCH_I218_V2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_37
## %bb.5:
	movq	(%rbx), %rax
	movq	_e1000_ulp_state_on@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_37
## %bb.6:
	movl	%esi, %r15d
	movq	_FWSM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_ICH_FWSM_FW_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	_H2ME@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	movq	_E1000_H2ME_ULP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_E1000_H2ME_ENFORCE_SETTINGS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_ew32
LBB0_8:
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_37
LBB0_9:
	testl	%r15d, %r15d
	jne	LBB0_17
## %bb.10:
	movq	_FEXT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_er32
	movq	_E1000_FEXT_PHY_CABLE_DISCONNECTED@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	testl	%eax, (%rcx)
	je	LBB0_11
LBB0_16:
	movl	(%r13), %edi
	callq	_er32
	movq	_E1000_FEXT_PHY_CABLE_DISCONNECTED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	imull	$50, %r12d, %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
LBB0_17:
	movq	%rbx, %rdi
	callq	*32(%rbx)
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_36
## %bb.18:
	movq	_CV_SMB_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg_hv_locked
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.19:
	movq	_CV_SMB_CTRL_FORCE_SMBUS@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_e1000_write_phy_reg_hv_locked
	movq	_CTRL_EXT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_er32
	movq	_E1000_CTRL_EXT_FORCE_SMBUS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	8(%rbx), %rax
	movq	_e1000_phy_i217@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.20:
	cmpl	$6, 16(%rbx)
	jne	LBB0_23
## %bb.21:
	movq	_HV_OEM_BITS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg_hv_locked
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.22:
	movq	_HV_OEM_BITS_LPLU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HV_OEM_BITS_GBE_DIS@GOTPCREL(%rip), %rax
	orl	-48(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_e1000_write_phy_reg_hv_locked
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_39
LBB0_23:
	movq	_I218_ULP_CONFIG1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg_hv_locked
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_24
LBB0_39:
	movq	%rbx, %rdi
	callq	*24(%rbx)
LBB0_36:
	movslq	%r12d, %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	movl	%r12d, %r14d
	jmp	LBB0_37
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_38
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$100, %r12d
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%r12d
	movl	$50, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_er32
	movq	_E1000_FEXT_PHY_CABLE_DISCONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
	jmp	LBB0_16
LBB0_38:
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_37
LBB0_14:
	movl	$101, %r12d
	jmp	LBB0_16
LBB0_24:
	movq	%r13, %r12
	movq	_I218_ULP_CONFIG1_RESET_TO_SMBUS@GOTPCREL(%rip), %rcx
	movq	_I218_ULP_CONFIG1_DISABLE_SMB_PERST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	testl	%r15d, %r15d
	je	LBB0_29
## %bb.25:
	movq	_WUFC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_WUFC_LNKC@GOTPCREL(%rip), %rdx
	movq	_I218_ULP_CONFIG1_WOL_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	movq	_e1000_ulp_state_on@GOTPCREL(%rip), %r13
	je	LBB0_27
## %bb.26:
	orl	-44(%rbp), %ecx
	jmp	LBB0_28
LBB0_29:
	movq	_I218_ULP_CONFIG1_INBAND_EXIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_I218_ULP_CONFIG1_STICKY_ULP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_I218_ULP_CONFIG1_WOL_HOST@GOTPCREL(%rip), %rax
	movq	_e1000_ulp_state_on@GOTPCREL(%rip), %r13
	jmp	LBB0_30
LBB0_27:
	notl	%ecx
	andl	-44(%rbp), %ecx
LBB0_28:
	movq	_I218_ULP_CONFIG1_STICKY_ULP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_I218_ULP_CONFIG1_INBAND_EXIT@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_e1000_write_phy_reg_hv_locked
	movq	_FEXTNVM7@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_er32
	movq	_E1000_FEXTNVM7_DISABLE_SMB_PERST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	_I218_ULP_CONFIG1_START@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movq	_I218_ULP_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_e1000_write_phy_reg_hv_locked
	movq	8(%rbx), %rax
	movq	_e1000_phy_i217@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_34
## %bb.31:
	testl	%r15d, %r15d
	je	LBB0_34
## %bb.32:
	cmpl	$6, 16(%rbx)
	jne	LBB0_34
## %bb.33:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_34
## %bb.35:
	movq	_HV_OEM_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	callq	_e1000_write_phy_reg_hv_locked
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%r12d, %r12d
	jne	LBB0_36
	jmp	LBB0_8
LBB0_34:
	movq	%rbx, %rdi
	callq	*24(%rbx)
	jmp	LBB0_8
	.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_on,8,3         ## @e1000_ulp_state_on
	.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	_FEXT,4,2                       ## @FEXT
	.comm	_E1000_FEXT_PHY_CABLE_DISCONNECTED,4,2 ## @E1000_FEXT_PHY_CABLE_DISCONNECTED
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_LU,4,2            ## @E1000_STATUS_LU
	.comm	_E1000_ERR_PHY,4,2              ## @E1000_ERR_PHY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CABLE_DISCONNECTED %s set after %dmsec\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"not"

	.comm	_CV_SMB_CTRL,4,2                ## @CV_SMB_CTRL
	.comm	_CV_SMB_CTRL_FORCE_SMBUS,4,2    ## @CV_SMB_CTRL_FORCE_SMBUS
	.comm	_CTRL_EXT,4,2                   ## @CTRL_EXT
	.comm	_E1000_CTRL_EXT_FORCE_SMBUS,4,2 ## @E1000_CTRL_EXT_FORCE_SMBUS
	.comm	_e1000_phy_i217,8,3             ## @e1000_phy_i217
	.comm	_HV_OEM_BITS,4,2                ## @HV_OEM_BITS
	.comm	_HV_OEM_BITS_LPLU,4,2           ## @HV_OEM_BITS_LPLU
	.comm	_HV_OEM_BITS_GBE_DIS,4,2        ## @HV_OEM_BITS_GBE_DIS
	.comm	_I218_ULP_CONFIG1,4,2           ## @I218_ULP_CONFIG1
	.comm	_I218_ULP_CONFIG1_RESET_TO_SMBUS,4,2 ## @I218_ULP_CONFIG1_RESET_TO_SMBUS
	.comm	_I218_ULP_CONFIG1_DISABLE_SMB_PERST,4,2 ## @I218_ULP_CONFIG1_DISABLE_SMB_PERST
	.comm	_WUFC,4,2                       ## @WUFC
	.comm	_E1000_WUFC_LNKC,4,2            ## @E1000_WUFC_LNKC
	.comm	_I218_ULP_CONFIG1_WOL_HOST,4,2  ## @I218_ULP_CONFIG1_WOL_HOST
	.comm	_I218_ULP_CONFIG1_STICKY_ULP,4,2 ## @I218_ULP_CONFIG1_STICKY_ULP
	.comm	_I218_ULP_CONFIG1_INBAND_EXIT,4,2 ## @I218_ULP_CONFIG1_INBAND_EXIT
	.comm	_FEXTNVM7,4,2                   ## @FEXTNVM7
	.comm	_E1000_FEXTNVM7_DISABLE_SMB_PERST,4,2 ## @E1000_FEXTNVM7_DISABLE_SMB_PERST
	.comm	_I218_ULP_CONFIG1_START,4,2     ## @I218_ULP_CONFIG1_START
L_.str.3:                               ## @.str.3
	.asciz	"Error in ULP enable flow: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_enable_ulp_lpt_lp        ; -- Begin function e1000_enable_ulp_lpt_lp
	.p2align	2
_e1000_enable_ulp_lpt_lp:               ; @e1000_enable_ulp_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	w21, #0
	str	wzr, [sp, #8]
	ldr	x8, [x0, #48]
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_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #40]
	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_on@GOTPAGE
Lloh16:
	ldr	x22, [x22, _e1000_ulp_state_on@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, #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_5:
	mov	x20, x1
Lloh17:
	adrp	x8, _FWSM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FWSM@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_er32
Lloh20:
	adrp	x8, _E1000_ICH_FWSM_FW_VALID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _E1000_ICH_FWSM_FW_VALID@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.6:
Lloh23:
	adrp	x20, _H2ME@GOTPAGE
Lloh24:
	ldr	x20, [x20, _H2ME@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh25:
	adrp	x8, _E1000_H2ME_ULP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E1000_H2ME_ULP@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _E1000_H2ME_ENFORCE_SETTINGS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _E1000_H2ME_ENFORCE_SETTINGS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w1, w8, w9
	ldr	w0, [x20]
	bl	_ew32
LBB0_7:
	mov	w21, #0
	ldr	x8, [x22]
	str	x8, [x19]
	b	LBB0_4
LBB0_8:
	cbnz	w20, LBB0_12
; %bb.9:
Lloh31:
	adrp	x21, _FEXT@GOTPAGE
Lloh32:
	ldr	x21, [x21, _FEXT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
Lloh33:
	adrp	x23, _E1000_FEXT_PHY_CABLE_DISCONNECTED@GOTPAGE
Lloh34:
	ldr	x23, [x23, _E1000_FEXT_PHY_CABLE_DISCONNECTED@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_21
; %bb.10:
	mov	w24, #0
LBB0_11:
	ldr	w0, [x21]
	bl	_er32
	ldr	w8, [x23]
Lloh35:
	adrp	x9, l_.str.1@PAGE
Lloh36:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh37:
	adrp	x10, l_.str.2@PAGE
Lloh38:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, w0
	csel	x1, x10, x9, eq
	mov	w8, #50
	mul	w8, w24, w8
	str	x8, [sp]
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
LBB0_12:
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.13:
Lloh41:
	adrp	x23, _CV_SMB_CTRL@GOTPAGE
Lloh42:
	ldr	x23, [x23, _CV_SMB_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_19
; %bb.14:
Lloh43:
	adrp	x8, _CV_SMB_CTRL_FORCE_SMBUS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CV_SMB_CTRL_FORCE_SMBUS@GOTPAGEOFF]
Lloh45:
	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
Lloh46:
	adrp	x21, _CTRL_EXT@GOTPAGE
Lloh47:
	ldr	x21, [x21, _CTRL_EXT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
Lloh48:
	adrp	x8, _E1000_CTRL_EXT_FORCE_SMBUS@GOTPAGE
Lloh49:
	ldr	x8, [x8, _E1000_CTRL_EXT_FORCE_SMBUS@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x21]
	bl	_ew32
	ldr	x8, [x19, #8]
Lloh51:
	adrp	x23, _e1000_phy_i217@GOTPAGE
Lloh52:
	ldr	x23, [x23, _e1000_phy_i217@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.15:
	ldr	w8, [x19, #16]
	cmp	w8, #6
	b.ne	LBB0_18
; %bb.16:
Lloh53:
	adrp	x24, _HV_OEM_BITS@GOTPAGE
Lloh54:
	ldr	x24, [x24, _HV_OEM_BITS@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1000_read_phy_reg_hv_locked
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.17:
	ldr	w8, [sp, #8]
Lloh55:
	adrp	x9, _HV_OEM_BITS_LPLU@GOTPAGE
Lloh56:
	ldr	x9, [x9, _HV_OEM_BITS_LPLU@GOTPAGEOFF]
Lloh57:
	adrp	x10, _HV_OEM_BITS_GBE_DIS@GOTPAGE
Lloh58:
	ldr	x10, [x10, _HV_OEM_BITS_GBE_DIS@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
Lloh60:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w2, w8, w10
	str	w2, [sp, #12]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_e1000_write_phy_reg_hv_locked
	mov	x21, x0
	cbnz	w0, LBB0_19
LBB0_18:
Lloh61:
	adrp	x24, _I218_ULP_CONFIG1@GOTPAGE
Lloh62:
	ldr	x24, [x24, _I218_ULP_CONFIG1@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg_hv_locked
	mov	x21, x0
	cbz	w0, LBB0_27
LBB0_19:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
LBB0_20:
	sxtw	x1, w21
Lloh63:
	adrp	x0, l_.str.3@PAGE
Lloh64:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_e_dbg
	b	LBB0_4
LBB0_21:
	mov	w24, #0
Lloh65:
	adrp	x25, _STATUS@GOTPAGE
Lloh66:
	ldr	x25, [x25, _STATUS@GOTPAGEOFF]
Lloh67:
	adrp	x26, _E1000_STATUS_LU@GOTPAGE
Lloh68:
	ldr	x26, [x26, _E1000_STATUS_LU@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_er32
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	w24, #100
	b.eq	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	add	w24, w24, #1
	mov	w0, #50
	bl	_msleep
	ldr	w0, [x21]
	bl	_er32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_22
	b	LBB0_11
LBB0_25:
Lloh69:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh70:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
LBB0_26:
	mov	w24, #101
	b	LBB0_11
LBB0_27:
Lloh72:
	adrp	x8, _I218_ULP_CONFIG1_RESET_TO_SMBUS@GOTPAGE
Lloh73:
	ldr	x8, [x8, _I218_ULP_CONFIG1_RESET_TO_SMBUS@GOTPAGEOFF]
Lloh74:
	adrp	x9, _I218_ULP_CONFIG1_DISABLE_SMB_PERST@GOTPAGE
Lloh75:
	ldr	x9, [x9, _I218_ULP_CONFIG1_DISABLE_SMB_PERST@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
Lloh77:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	orr	w8, w8, w9
	str	w8, [sp, #12]
	cbz	w20, LBB0_30
; %bb.28:
Lloh78:
	adrp	x8, _WUFC@GOTPAGE
Lloh79:
	ldr	x8, [x8, _WUFC@GOTPAGEOFF]
Lloh80:
	ldr	w0, [x8]
	bl	_er32
Lloh81:
	adrp	x8, _E1000_WUFC_LNKC@GOTPAGE
Lloh82:
	ldr	x8, [x8, _E1000_WUFC_LNKC@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x8]
Lloh84:
	adrp	x8, _I218_ULP_CONFIG1_WOL_HOST@GOTPAGE
Lloh85:
	ldr	x8, [x8, _I218_ULP_CONFIG1_WOL_HOST@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	tst	w9, w0
	b.eq	LBB0_31
; %bb.29:
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	b	LBB0_32
LBB0_30:
Lloh87:
	adrp	x9, _I218_ULP_CONFIG1_INBAND_EXIT@GOTPAGE
Lloh88:
	ldr	x9, [x9, _I218_ULP_CONFIG1_INBAND_EXIT@GOTPAGEOFF]
Lloh89:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh90:
	adrp	x9, _I218_ULP_CONFIG1_STICKY_ULP@GOTPAGE
Lloh91:
	ldr	x9, [x9, _I218_ULP_CONFIG1_STICKY_ULP@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh93:
	adrp	x9, _I218_ULP_CONFIG1_WOL_HOST@GOTPAGE
Lloh94:
	ldr	x9, [x9, _I218_ULP_CONFIG1_WOL_HOST@GOTPAGEOFF]
	b	LBB0_33
LBB0_31:
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
LBB0_32:
Lloh95:
	adrp	x9, _I218_ULP_CONFIG1_STICKY_ULP@GOTPAGE
Lloh96:
	ldr	x9, [x9, _I218_ULP_CONFIG1_STICKY_ULP@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh98:
	adrp	x9, _I218_ULP_CONFIG1_INBAND_EXIT@GOTPAGE
Lloh99:
	ldr	x9, [x9, _I218_ULP_CONFIG1_INBAND_EXIT@GOTPAGEOFF]
LBB0_33:
	ldr	w9, [x9]
	bic	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_e1000_write_phy_reg_hv_locked
Lloh100:
	adrp	x21, _FEXTNVM7@GOTPAGE
Lloh101:
	ldr	x21, [x21, _FEXTNVM7@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
Lloh102:
	adrp	x8, _E1000_FEXTNVM7_DISABLE_SMB_PERST@GOTPAGE
Lloh103:
	ldr	x8, [x8, _E1000_FEXTNVM7_DISABLE_SMB_PERST@GOTPAGEOFF]
Lloh104:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x21]
	bl	_ew32
Lloh105:
	adrp	x8, _I218_ULP_CONFIG1_START@GOTPAGE
Lloh106:
	ldr	x8, [x8, _I218_ULP_CONFIG1_START@GOTPAGEOFF]
Lloh107:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_e1000_write_phy_reg_hv_locked
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.34:
	cbz	w20, LBB0_38
; %bb.35:
	ldr	w8, [x19, #16]
	cmp	w8, #6
	b.ne	LBB0_38
; %bb.36:
Lloh108:
	adrp	x8, _STATUS@GOTPAGE
Lloh109:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh110:
	ldr	w0, [x8]
	bl	_er32
Lloh111:
	adrp	x8, _E1000_STATUS_LU@GOTPAGE
Lloh112:
	ldr	x8, [x8, _E1000_STATUS_LU@GOTPAGEOFF]
Lloh113:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_38
; %bb.37:
Lloh114:
	adrp	x8, _HV_OEM_BITS@GOTPAGE
Lloh115:
	ldr	x8, [x8, _HV_OEM_BITS@GOTPAGEOFF]
Lloh116:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_e1000_write_phy_reg_hv_locked
	mov	x21, x0
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	cbnz	w21, LBB0_20
	b	LBB0_7
LBB0_38:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	b	LBB0_7
	.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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh59
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh76
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.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_on,8,3         ; @e1000_ulp_state_on
	.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	_FEXT,4,2                       ; @FEXT
	.comm	_E1000_FEXT_PHY_CABLE_DISCONNECTED,4,2 ; @E1000_FEXT_PHY_CABLE_DISCONNECTED
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_LU,4,2            ; @E1000_STATUS_LU
	.comm	_E1000_ERR_PHY,4,2              ; @E1000_ERR_PHY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CABLE_DISCONNECTED %s set after %dmsec\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"not"

	.comm	_CV_SMB_CTRL,4,2                ; @CV_SMB_CTRL
	.comm	_CV_SMB_CTRL_FORCE_SMBUS,4,2    ; @CV_SMB_CTRL_FORCE_SMBUS
	.comm	_CTRL_EXT,4,2                   ; @CTRL_EXT
	.comm	_E1000_CTRL_EXT_FORCE_SMBUS,4,2 ; @E1000_CTRL_EXT_FORCE_SMBUS
	.comm	_e1000_phy_i217,8,3             ; @e1000_phy_i217
	.comm	_HV_OEM_BITS,4,2                ; @HV_OEM_BITS
	.comm	_HV_OEM_BITS_LPLU,4,2           ; @HV_OEM_BITS_LPLU
	.comm	_HV_OEM_BITS_GBE_DIS,4,2        ; @HV_OEM_BITS_GBE_DIS
	.comm	_I218_ULP_CONFIG1,4,2           ; @I218_ULP_CONFIG1
	.comm	_I218_ULP_CONFIG1_RESET_TO_SMBUS,4,2 ; @I218_ULP_CONFIG1_RESET_TO_SMBUS
	.comm	_I218_ULP_CONFIG1_DISABLE_SMB_PERST,4,2 ; @I218_ULP_CONFIG1_DISABLE_SMB_PERST
	.comm	_WUFC,4,2                       ; @WUFC
	.comm	_E1000_WUFC_LNKC,4,2            ; @E1000_WUFC_LNKC
	.comm	_I218_ULP_CONFIG1_WOL_HOST,4,2  ; @I218_ULP_CONFIG1_WOL_HOST
	.comm	_I218_ULP_CONFIG1_STICKY_ULP,4,2 ; @I218_ULP_CONFIG1_STICKY_ULP
	.comm	_I218_ULP_CONFIG1_INBAND_EXIT,4,2 ; @I218_ULP_CONFIG1_INBAND_EXIT
	.comm	_FEXTNVM7,4,2                   ; @FEXTNVM7
	.comm	_E1000_FEXTNVM7_DISABLE_SMB_PERST,4,2 ; @E1000_FEXTNVM7_DISABLE_SMB_PERST
	.comm	_I218_ULP_CONFIG1_START,4,2     ; @I218_ULP_CONFIG1_START
l_.str.3:                               ; @.str.3
	.asciz	"Error in ULP enable flow: %d\n"

.subsections_via_symbols
