	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_check_for_copper_link_ich8lan
_e1000_check_for_copper_link_ich8lan:   ## @e1000_check_for_copper_link_ich8lan
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 40(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	movl	$0, 40(%rdi)
	leaq	-36(%rbp), %rcx
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_e1000e_phy_has_link_generic
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	movl	$1, 40(%r14)
	jmp	LBB0_4
LBB0_5:
	movl	44(%r14), %eax
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.6:
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_e1000_k1_gig_workaround_hv
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.7:
	movl	44(%r14), %eax
LBB0_8:
	cmpl	$129, %eax
	jl	LBB0_27
## %bb.9:
	cmpl	$0, -36(%rbp)
	je	LBB0_27
## %bb.10:
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000e_get_speed_and_duplex_copper
	movq	_TIPG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_TIPG_IPGT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	-64(%rbp), %rax
	movq	_HALF_DUPLEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rcx
	movq	_SPEED_10@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.12:
	movl	$255, %eax
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_13:
	movl	44(%r14), %ecx
	movq	_e1000_pch_spt@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jl	LBB0_16
## %bb.14:
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_16:
	movl	$1, %r15d
	movl	$8, %eax
	jmp	LBB0_18
LBB0_17:
	movl	$1, %r15d
	movl	$12, %eax
LBB0_18:
	orl	%eax, %esi
	movl	(%rbx), %edi
	callq	_ew32
	movq	%r14, %rdi
	callq	*8(%r14)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.19:
	cmpl	$129, 44(%r14)
	jne	LBB0_21
## %bb.20:
	movq	_I82579_RX_CONFIG@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_I217_RX_CONFIG@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_e1000_write_emi_reg_locked
	movl	%eax, %ebx
	movl	44(%r14), %eax
	movq	_e1000_pch_lpt@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_25
## %bb.23:
	movq	_I217_PLL_CLOCK_GATE_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy_locked
	movq	_I217_PLL_CLOCK_GATE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	movq	_SPEED_100@GOTPCREL(%rip), %rsi
	movq	_SPEED_10@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$250, %edx
	cmoveq	%rdi, %rdx
	cmpq	(%rsi), %rcx
	cmoveq	%rdi, %rdx
	orq	%rax, %rdx
	movq	%rdx, -56(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_e1e_wphy_locked
	movq	-48(%rbp), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.24:
	movq	_HV_PM_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	*32(%r14)
	movq	_HV_PM_CTRL_K1_CLK_REQ@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rdx
	orq	(%rax), %rdx
	movq	%rdx, -56(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	*24(%r14)
LBB0_25:
	movq	%r14, %rdi
	callq	*16(%r14)
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.26:
	movl	44(%r14), %eax
	movq	_e1000_pch_spt@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_50
LBB0_27:
	movq	_e1000_pch_lpt@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jl	LBB0_29
## %bb.28:
	movq	_FEXTNVM4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_FEXTNVM4_BEACON_DURATION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_E1000_FEXTNVM4_BEACON_DURATION_8USEC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%rbx), %edi
	callq	_ew32
LBB0_29:
	movq	72(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_E1000_DEV_ID_PCH_LPTLP_I218_LM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.30:
	movq	_E1000_DEV_ID_PCH_LPTLP_I218_V@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.31:
	movq	_E1000_DEV_ID_PCH_I218_LM3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.32:
	movq	_E1000_DEV_ID_PCH_I218_V3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_34
LBB0_33:
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_e1000_k1_workaround_lpt_lp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
LBB0_34:
	movl	44(%r14), %eax
	movl	(%r15), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_37
## %bb.35:
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_e1000_platform_pm_pch_lpt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.36:
	movl	44(%r14), %eax
	movl	(%r15), %ecx
LBB0_37:
	movq	$0, 64(%r14)
	cmpl	%ecx, %eax
	jl	LBB0_41
## %bb.38:
	movq	_FEXTNVM6@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	movl	%eax, %ebx
	movl	44(%r14), %eax
	movq	_e1000_pch_spt@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_40
## %bb.39:
	movq	_PCIEANACFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_FEXTNVM6_K1_OFF_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%ebx, %edx
	movl	%ecx, %esi
	notl	%esi
	andl	%ebx, %esi
	testl	%eax, %ecx
	cmovnel	%edx, %esi
	movl	%esi, %ebx
LBB0_40:
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_ew32
LBB0_41:
	cmpl	$0, -36(%rbp)
	je	LBB0_49
## %bb.42:
	movl	44(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_45
## %bb.43:
	cmpl	$129, %eax
	jne	LBB0_56
## %bb.44:
	movq	%r14, %rdi
	callq	_e1000_k1_workaround_lv
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
LBB0_45:
	movq	(%r14), %rax
	movq	_e1000_phy_82578@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_47
## %bb.46:
	movq	%r14, %rdi
	callq	_e1000_link_stall_workaround_hv
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
LBB0_47:
	movq	_HV_KMRN_FIFO_CTRLSTA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy
	movq	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, -48(%rbp)
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_FD@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_54
## %bb.48:
	movq	-48(%rbp), %rdx
	jmp	LBB0_55
LBB0_49:
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_50:
	movq	-48(%rbp), %r15
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r14, %rdi
	callq	*8(%r14)
	movl	%eax, %ebx
	cmpq	%r12, %r15
	jne	LBB0_62
## %bb.51:
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.52:
	movl	$776, %edi                      ## imm = 0x308
	movl	$20, %esi
	callq	_PHY_REG
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_e1e_rphy_locked
	testl	%eax, %eax
	je	LBB0_66
## %bb.53:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	*16(%r14)
	movl	$1, 40(%r14)
	jmp	LBB0_4
LBB0_54:
	movq	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%rax, %rdx
	orq	-48(%rbp), %rdx
	movq	%rdx, -48(%rbp)
LBB0_55:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_e1e_wphy
LBB0_56:
	movq	%r14, %rdi
	callq	_e1000e_check_downshift
	movq	(%r14), %rax
	movq	_e1000_phy_82579@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_58
## %bb.57:
	movq	%r14, %rdi
	callq	_e1000_set_eee_pchlan
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
LBB0_58:
	cmpl	$0, 56(%r14)
	je	LBB0_61
## %bb.59:
	movq	%r14, %rdi
	callq	*48(%r14)
	movq	%r14, %rdi
	callq	_e1000e_config_fc_after_link_up
	testl	%eax, %eax
	je	LBB0_3
## %bb.60:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_61:
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_62:
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.63:
	movl	$776, %edi                      ## imm = 0x308
	movl	$20, %esi
	callq	_PHY_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$49187, %edx                    ## imm = 0xC023
LBB0_64:
	callq	_e1e_wphy_locked
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	*16(%r14)
	testl	%ebx, %ebx
	jne	LBB0_2
	jmp	LBB0_69
LBB0_66:
	movq	-56(%rbp), %rax
	movl	%eax, %ecx
	andl	$4064, %ecx                     ## imm = 0xFE0
	cmpl	$96, %ecx
	jae	LBB0_68
## %bb.67:
	andq	$-4093, %rax                    ## imm = 0xF003
	orq	$96, %rax
	movq	%rax, -56(%rbp)
	movl	$776, %edi                      ## imm = 0x308
	movl	$20, %esi
	callq	_PHY_REG
	movl	-56(%rbp), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	jmp	LBB0_64
LBB0_68:
	movq	%r14, %rdi
	callq	*16(%r14)
LBB0_69:
	movl	44(%r14), %eax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_TIPG,4,2                       ## @TIPG
	.comm	_E1000_TIPG_IPGT_MASK,4,2       ## @E1000_TIPG_IPGT_MASK
	.comm	_HALF_DUPLEX,8,3                ## @HALF_DUPLEX
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_e1000_pch_spt,4,2              ## @e1000_pch_spt
	.comm	_FULL_DUPLEX,8,3                ## @FULL_DUPLEX
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_I82579_RX_CONFIG,8,3           ## @I82579_RX_CONFIG
	.comm	_I217_RX_CONFIG,8,3             ## @I217_RX_CONFIG
	.comm	_e1000_pch_lpt,4,2              ## @e1000_pch_lpt
	.comm	_I217_PLL_CLOCK_GATE_REG,4,2    ## @I217_PLL_CLOCK_GATE_REG
	.comm	_I217_PLL_CLOCK_GATE_MASK,8,3   ## @I217_PLL_CLOCK_GATE_MASK
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_HV_PM_CTRL,4,2                 ## @HV_PM_CTRL
	.comm	_HV_PM_CTRL_K1_CLK_REQ,8,3      ## @HV_PM_CTRL_K1_CLK_REQ
	.comm	_FEXTNVM4,4,2                   ## @FEXTNVM4
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_MASK,4,2 ## @E1000_FEXTNVM4_BEACON_DURATION_MASK
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_8USEC,4,2 ## @E1000_FEXTNVM4_BEACON_DURATION_8USEC
	.comm	_E1000_DEV_ID_PCH_LPTLP_I218_LM,8,3 ## @E1000_DEV_ID_PCH_LPTLP_I218_LM
	.comm	_E1000_DEV_ID_PCH_LPTLP_I218_V,8,3 ## @E1000_DEV_ID_PCH_LPTLP_I218_V
	.comm	_E1000_DEV_ID_PCH_I218_LM3,8,3  ## @E1000_DEV_ID_PCH_I218_LM3
	.comm	_E1000_DEV_ID_PCH_I218_V3,8,3   ## @E1000_DEV_ID_PCH_I218_V3
	.comm	_FEXTNVM6,4,2                   ## @FEXTNVM6
	.comm	_PCIEANACFG,4,2                 ## @PCIEANACFG
	.comm	_E1000_FEXTNVM6_K1_OFF_ENABLE,4,2 ## @E1000_FEXTNVM6_K1_OFF_ENABLE
	.comm	_e1000_phy_82578,8,3            ## @e1000_phy_82578
	.comm	_HV_KMRN_FIFO_CTRLSTA,4,2       ## @HV_KMRN_FIFO_CTRLSTA
	.comm	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK,8,3 ## @HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_FD,4,2            ## @E1000_STATUS_FD
	.comm	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT,4,2 ## @HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT
	.comm	_e1000_phy_82579,8,3            ## @e1000_phy_82579
	.comm	_E1000_ERR_CONFIG,4,2           ## @E1000_ERR_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error configuring flow control\n"

	.no_dead_strip	_e1000_check_for_copper_link_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_check_for_copper_link_ich8lan
_e1000_check_for_copper_link_ich8lan:   ; @e1000_check_for_copper_link_ich8lan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	ldr	w8, [x0, #40]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	str	wzr, [x0, #40]
	mov	w22, #1
	add	x3, sp, #28
	mov	w1, #1
	mov	w2, #0
	bl	_e1000e_phy_has_link_generic
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_2:
	str	w22, [x19, #40]
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_5:
	ldr	w8, [x19, #44]
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.6:
	ldr	w1, [sp, #28]
	mov	x0, x19
	bl	_e1000_k1_gig_workaround_hv
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.7:
	ldr	w8, [x19, #44]
LBB0_8:
	cmp	w8, #129
	b.lt	LBB0_24
; %bb.9:
	ldr	w9, [sp, #28]
	cbz	w9, LBB0_24
; %bb.10:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1000e_get_speed_and_duplex_copper
Lloh0:
	adrp	x20, _TIPG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TIPG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh2:
	adrp	x8, _E1000_TIPG_IPGT_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_TIPG_IPGT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [sp, #8]
Lloh5:
	adrp	x10, _HALF_DUPLEX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HALF_DUPLEX@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.11:
	ldr	x10, [sp, #16]
Lloh8:
	adrp	x11, _SPEED_10@GOTPAGE
Lloh9:
	ldr	x11, [x11, _SPEED_10@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_13
; %bb.12:
	mov	x21, #0
	mov	w9, #255
	b	LBB0_18
LBB0_13:
	ldr	w10, [x19, #44]
Lloh11:
	adrp	x11, _e1000_pch_spt@GOTPAGE
Lloh12:
	ldr	x11, [x11, _e1000_pch_spt@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	adrp	x12, _FULL_DUPLEX@GOTPAGE
Lloh15:
	ldr	x12, [x12, _FULL_DUPLEX@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x12]
	cmp	w10, w11
	ccmp	x9, x12, #0, ge
	b.ne	LBB0_15
; %bb.14:
	ldr	x9, [sp, #16]
Lloh17:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_16
LBB0_15:
	mov	w9, #8
	b	LBB0_17
LBB0_16:
	mov	w9, #12
LBB0_17:
	mov	w21, #1
LBB0_18:
	orr	w1, w8, w9
	ldr	w0, [x20]
	bl	_ew32
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.19:
Lloh20:
	adrp	x8, _I82579_RX_CONFIG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I82579_RX_CONFIG@GOTPAGEOFF]
	ldr	w9, [x19, #44]
Lloh22:
	adrp	x10, _I217_RX_CONFIG@GOTPAGE
Lloh23:
	ldr	x10, [x10, _I217_RX_CONFIG@GOTPAGEOFF]
	cmp	w9, #129
	csel	x8, x8, x10, eq
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_e1000_write_emi_reg_locked
	mov	x20, x0
	ldr	w8, [x19, #44]
Lloh24:
	adrp	x9, _e1000_pch_lpt@GOTPAGE
Lloh25:
	ldr	x9, [x9, _e1000_pch_lpt@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_22
; %bb.20:
Lloh27:
	adrp	x21, _I217_PLL_CLOCK_GATE_REG@GOTPAGE
Lloh28:
	ldr	x21, [x21, _I217_PLL_CLOCK_GATE_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, x19
	bl	_e1e_rphy_locked
Lloh29:
	adrp	x8, _I217_PLL_CLOCK_GATE_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _I217_PLL_CLOCK_GATE_MASK@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	x9, [sp]
	bic	x8, x9, x8
	ldr	x9, [sp, #16]
Lloh32:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh33:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
Lloh35:
	adrp	x11, _SPEED_10@GOTPAGE
Lloh36:
	ldr	x11, [x11, _SPEED_10@GOTPAGEOFF]
Lloh37:
	ldr	x11, [x11]
	cmp	x9, x11
	ccmp	x9, x10, #4, ne
	mov	w9, #250
	mov	w10, #1000
	csel	x9, x10, x9, eq
	orr	x2, x9, x8
	str	x2, [sp]
	ldr	w1, [x21]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_e1e_wphy_locked
	ldr	x8, [sp, #16]
Lloh38:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:
	ldr	x8, [x19, #32]
Lloh41:
	adrp	x21, _HV_PM_CTRL@GOTPAGE
Lloh42:
	ldr	x21, [x21, _HV_PM_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, x19
	blr	x8
Lloh43:
	adrp	x8, _HV_PM_CTRL_K1_CLK_REQ@GOTPAGE
Lloh44:
	ldr	x8, [x8, _HV_PM_CTRL_K1_CLK_REQ@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	ldr	x9, [sp]
	orr	x2, x9, x8
	str	x2, [sp]
	ldr	x8, [x19, #24]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
LBB0_22:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	cbnz	w20, LBB0_2
; %bb.23:
	ldr	w8, [x19, #44]
Lloh46:
	adrp	x9, _e1000_pch_spt@GOTPAGE
Lloh47:
	ldr	x9, [x9, _e1000_pch_spt@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_44
LBB0_24:
Lloh49:
	adrp	x21, _e1000_pch_lpt@GOTPAGE
Lloh50:
	ldr	x21, [x21, _e1000_pch_lpt@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.lt	LBB0_26
; %bb.25:
Lloh51:
	adrp	x20, _FEXTNVM4@GOTPAGE
Lloh52:
	ldr	x20, [x20, _FEXTNVM4@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh53:
	adrp	x8, _E1000_FEXTNVM4_BEACON_DURATION_MASK@GOTPAGE
Lloh54:
	ldr	x8, [x8, _E1000_FEXTNVM4_BEACON_DURATION_MASK@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh56:
	adrp	x9, _E1000_FEXTNVM4_BEACON_DURATION_8USEC@GOTPAGE
Lloh57:
	ldr	x9, [x9, _E1000_FEXTNVM4_BEACON_DURATION_8USEC@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w0, [x20]
	bl	_ew32
LBB0_26:
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh59:
	adrp	x9, _E1000_DEV_ID_PCH_LPTLP_I218_LM@GOTPAGE
Lloh60:
	ldr	x9, [x9, _E1000_DEV_ID_PCH_LPTLP_I218_LM@GOTPAGEOFF]
Lloh61:
	adrp	x10, _E1000_DEV_ID_PCH_LPTLP_I218_V@GOTPAGE
Lloh62:
	ldr	x10, [x10, _E1000_DEV_ID_PCH_LPTLP_I218_V@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
Lloh64:
	ldr	x10, [x10]
Lloh65:
	adrp	x11, _E1000_DEV_ID_PCH_I218_LM3@GOTPAGE
Lloh66:
	ldr	x11, [x11, _E1000_DEV_ID_PCH_I218_LM3@GOTPAGEOFF]
Lloh67:
	adrp	x12, _E1000_DEV_ID_PCH_I218_V3@GOTPAGE
Lloh68:
	ldr	x12, [x12, _E1000_DEV_ID_PCH_I218_V3@GOTPAGEOFF]
Lloh69:
	ldr	x11, [x11]
Lloh70:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_28
; %bb.27:
	ldr	w1, [sp, #28]
	mov	x0, x19
	bl	_e1000_k1_workaround_lpt_lp
	mov	x20, x0
	cbnz	w0, LBB0_2
LBB0_28:
	ldr	w8, [x19, #44]
	ldr	w9, [x21]
	cmp	w8, w9
	b.lt	LBB0_31
; %bb.29:
	ldr	w1, [sp, #28]
	mov	x0, x19
	bl	_e1000_platform_pm_pch_lpt
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.30:
	ldr	w8, [x19, #44]
	ldr	w9, [x21]
LBB0_31:
	str	xzr, [x19, #64]
	cmp	w8, w9
	b.lt	LBB0_35
; %bb.32:
Lloh71:
	adrp	x21, _FEXTNVM6@GOTPAGE
Lloh72:
	ldr	x21, [x21, _FEXTNVM6@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
	mov	x20, x0
	ldr	w8, [x19, #44]
Lloh73:
	adrp	x9, _e1000_pch_spt@GOTPAGE
Lloh74:
	ldr	x9, [x9, _e1000_pch_spt@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_34
; %bb.33:
Lloh76:
	adrp	x8, _PCIEANACFG@GOTPAGE
Lloh77:
	ldr	x8, [x8, _PCIEANACFG@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
	bl	_er32
Lloh79:
	adrp	x8, _E1000_FEXTNVM6_K1_OFF_ENABLE@GOTPAGE
Lloh80:
	ldr	x8, [x8, _E1000_FEXTNVM6_K1_OFF_ENABLE@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	orr	w9, w8, w20
	bic	w10, w20, w8
	tst	w8, w0
	csel	w20, w10, w9, eq
LBB0_34:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_ew32
LBB0_35:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_43
; %bb.36:
	ldr	w8, [x19, #44]
	cmp	w8, #128
	b.eq	LBB0_39
; %bb.37:
	cmp	w8, #129
	b.ne	LBB0_50
; %bb.38:
	mov	x0, x19
	bl	_e1000_k1_workaround_lv
	mov	x20, x0
	cbnz	w0, LBB0_4
LBB0_39:
	ldr	x8, [x19]
Lloh82:
	adrp	x9, _e1000_phy_82578@GOTPAGE
Lloh83:
	ldr	x9, [x9, _e1000_phy_82578@GOTPAGEOFF]
Lloh84:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_41
; %bb.40:
	mov	x0, x19
	bl	_e1000_link_stall_workaround_hv
	mov	x20, x0
	cbnz	w0, LBB0_4
LBB0_41:
Lloh85:
	adrp	x20, _HV_KMRN_FIFO_CTRLSTA@GOTPAGE
Lloh86:
	ldr	x20, [x20, _HV_KMRN_FIFO_CTRLSTA@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #16
	mov	x0, x19
	bl	_e1e_rphy
Lloh87:
	adrp	x8, _HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK@GOTPAGE
Lloh88:
	ldr	x8, [x8, _HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK@GOTPAGEOFF]
Lloh89:
	ldr	x8, [x8]
	ldr	x9, [sp, #16]
	bic	x8, x9, x8
	str	x8, [sp, #16]
Lloh90:
	adrp	x8, _STATUS@GOTPAGE
Lloh91:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh92:
	ldr	w0, [x8]
	bl	_er32
Lloh93:
	adrp	x8, _E1000_STATUS_FD@GOTPAGE
Lloh94:
	ldr	x8, [x8, _E1000_STATUS_FD@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	b.ne	LBB0_48
; %bb.42:
	ldr	x2, [sp, #16]
	b	LBB0_49
LBB0_43:
	mov	w20, #0
	b	LBB0_2
LBB0_44:
	ldr	x21, [sp, #16]
Lloh96:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh97:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh98:
	ldr	x23, [x8]
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cmp	x21, x23
	b.ne	LBB0_56
; %bb.45:
	cbnz	w20, LBB0_2
; %bb.46:
	mov	w0, #776
	mov	w1, #20
	bl	_PHY_REG
	mov	x1, x0
	mov	x2, sp
	mov	x0, x19
	bl	_e1e_rphy_locked
	cbz	w0, LBB0_59
; %bb.47:
	mov	x20, x0
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	str	w22, [x19, #40]
	b	LBB0_4
LBB0_48:
Lloh99:
	adrp	x8, _HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT@GOTPAGE
Lloh100:
	ldr	x8, [x8, _HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT@GOTPAGEOFF]
Lloh101:
	ldr	w0, [x8]
	bl	_BIT
	ldr	x8, [sp, #16]
	orr	x2, x8, x0
	str	x2, [sp, #16]
LBB0_49:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy
LBB0_50:
	mov	x0, x19
	bl	_e1000e_check_downshift
	ldr	x8, [x19]
Lloh102:
	adrp	x9, _e1000_phy_82579@GOTPAGE
Lloh103:
	ldr	x9, [x9, _e1000_phy_82579@GOTPAGEOFF]
Lloh104:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_52
; %bb.51:
	mov	x0, x19
	bl	_e1000_set_eee_pchlan
	mov	x20, x0
	cbnz	w0, LBB0_4
LBB0_52:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_55
; %bb.53:
	ldr	x8, [x19, #48]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_e1000e_config_fc_after_link_up
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.54:
Lloh105:
	adrp	x0, l_.str@PAGE
Lloh106:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	b	LBB0_4
LBB0_55:
Lloh107:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh108:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh109:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_56:
	cbnz	w20, LBB0_2
; %bb.57:
	mov	w0, #776
	mov	w1, #20
	bl	_PHY_REG
	mov	x1, x0
	mov	x0, x19
	mov	w2, #49187
LBB0_58:
	bl	_e1e_wphy_locked
	mov	x20, x0
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	cbnz	w20, LBB0_2
	b	LBB0_62
LBB0_59:
	ldr	x8, [sp]
	and	x9, x8, #0xfe0
	cmp	x9, #96
	b.hs	LBB0_61
; %bb.60:
	and	x8, x8, #0xfffffffffffff003
	orr	x8, x8, #0x60
	str	x8, [sp]
	mov	w0, #776
	mov	w1, #20
	bl	_PHY_REG
	mov	x1, x0
	ldr	w2, [sp]
	mov	x0, x19
	b	LBB0_58
LBB0_61:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
LBB0_62:
	ldr	w8, [x19, #44]
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh69
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh63
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.cfi_endproc
                                        ; -- End function
	.comm	_TIPG,4,2                       ; @TIPG
	.comm	_E1000_TIPG_IPGT_MASK,4,2       ; @E1000_TIPG_IPGT_MASK
	.comm	_HALF_DUPLEX,8,3                ; @HALF_DUPLEX
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_e1000_pch_spt,4,2              ; @e1000_pch_spt
	.comm	_FULL_DUPLEX,8,3                ; @FULL_DUPLEX
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_I82579_RX_CONFIG,8,3           ; @I82579_RX_CONFIG
	.comm	_I217_RX_CONFIG,8,3             ; @I217_RX_CONFIG
	.comm	_e1000_pch_lpt,4,2              ; @e1000_pch_lpt
	.comm	_I217_PLL_CLOCK_GATE_REG,4,2    ; @I217_PLL_CLOCK_GATE_REG
	.comm	_I217_PLL_CLOCK_GATE_MASK,8,3   ; @I217_PLL_CLOCK_GATE_MASK
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_HV_PM_CTRL,4,2                 ; @HV_PM_CTRL
	.comm	_HV_PM_CTRL_K1_CLK_REQ,8,3      ; @HV_PM_CTRL_K1_CLK_REQ
	.comm	_FEXTNVM4,4,2                   ; @FEXTNVM4
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_MASK,4,2 ; @E1000_FEXTNVM4_BEACON_DURATION_MASK
	.comm	_E1000_FEXTNVM4_BEACON_DURATION_8USEC,4,2 ; @E1000_FEXTNVM4_BEACON_DURATION_8USEC
	.comm	_E1000_DEV_ID_PCH_LPTLP_I218_LM,8,3 ; @E1000_DEV_ID_PCH_LPTLP_I218_LM
	.comm	_E1000_DEV_ID_PCH_LPTLP_I218_V,8,3 ; @E1000_DEV_ID_PCH_LPTLP_I218_V
	.comm	_E1000_DEV_ID_PCH_I218_LM3,8,3  ; @E1000_DEV_ID_PCH_I218_LM3
	.comm	_E1000_DEV_ID_PCH_I218_V3,8,3   ; @E1000_DEV_ID_PCH_I218_V3
	.comm	_FEXTNVM6,4,2                   ; @FEXTNVM6
	.comm	_PCIEANACFG,4,2                 ; @PCIEANACFG
	.comm	_E1000_FEXTNVM6_K1_OFF_ENABLE,4,2 ; @E1000_FEXTNVM6_K1_OFF_ENABLE
	.comm	_e1000_phy_82578,8,3            ; @e1000_phy_82578
	.comm	_HV_KMRN_FIFO_CTRLSTA,4,2       ; @HV_KMRN_FIFO_CTRLSTA
	.comm	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK,8,3 ; @HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_FD,4,2            ; @E1000_STATUS_FD
	.comm	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT,4,2 ; @HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT
	.comm	_e1000_phy_82579,8,3            ; @e1000_phy_82579
	.comm	_E1000_ERR_CONFIG,4,2           ; @E1000_ERR_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error configuring flow control\n"

	.no_dead_strip	_e1000_check_for_copper_link_ich8lan
.subsections_via_symbols
