	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 24(%rdi)
	je	LBB0_23
## %bb.1:
	movq	%rdi, %r14
	leaq	-20(%rbp), %rcx
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_e1000e_phy_has_link_generic
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.2:
	movl	28(%r14), %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movl	-20(%rbp), %esi
	movq	%r14, %rdi
	callq	_e1000_k1_gig_workaround_hv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.4:
	movl	28(%r14), %eax
LBB0_5:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.6:
	cmpl	$0, -20(%rbp)
	je	LBB0_8
## %bb.7:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_FD@GOTPCREL(%rip), %rcx
	movq	_E1000_STATUS_SPEED_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_25
LBB0_8:
	movq	56(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_E1000_DEV_ID_PCH_LPTLP_I218_LM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.9:
	movq	_E1000_DEV_ID_PCH_LPTLP_I218_V@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	_E1000_DEV_ID_PCH_I218_LM3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	_E1000_DEV_ID_PCH_I218_V3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_12:
	movl	-20(%rbp), %esi
	movq	%r14, %rdi
	callq	_e1000_k1_workaround_lpt_lp
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
LBB0_13:
	movl	28(%r14), %eax
	movq	_e1000_pch_lpt@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.14:
	movl	-20(%rbp), %esi
	movq	%r14, %rdi
	callq	_e1000_platform_pm_pch_lpt
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
LBB0_15:
	movq	$0, 48(%r14)
	cmpl	$0, -20(%rbp)
	je	LBB0_23
## %bb.16:
	movl	$0, 24(%r14)
	movl	28(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_19
## %bb.17:
	cmpl	$129, %eax
	jne	LBB0_30
## %bb.18:
	movq	%r14, %rdi
	callq	_e1000_k1_workaround_lv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
LBB0_19:
	movl	(%r14), %eax
	movq	_e1000_phy_82578@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	callq	_e1000_link_stall_workaround_hv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
LBB0_21:
	movq	_HV_KMRN_FIFO_CTRLSTA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy
	movq	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -24(%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_28
## %bb.22:
	movl	-24(%rbp), %edx
	jmp	LBB0_29
LBB0_25:
	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
	orl	$255, %esi
	movl	(%rbx), %edi
	callq	_ew32
	movq	%r14, %rdi
	callq	*16(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.26:
	movq	_I82579_RX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_e1000_write_emi_reg_locked
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	*8(%r14)
	testq	%rbx, %rbx
	jne	LBB0_24
	jmp	LBB0_8
LBB0_28:
	movq	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movl	-24(%rbp), %edx
	btsl	%eax, %edx
	movl	%edx, -24(%rbp)
LBB0_29:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_e1e_wphy
LBB0_30:
	movq	%r14, %rdi
	callq	_e1000e_check_downshift
	movq	%r14, %rdi
	callq	_e1000_set_eee_pchlan
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.31:
	cmpl	$0, 40(%r14)
	je	LBB0_34
## %bb.32:
	movq	%r14, %rdi
	callq	*32(%r14)
	movq	%r14, %rdi
	callq	_e1000e_config_fc_after_link_up
	testq	%rax, %rax
	je	LBB0_23
## %bb.33:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_24
LBB0_23:
	xorl	%ebx, %ebx
LBB0_24:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_34:
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_FD,4,2            ## @E1000_STATUS_FD
	.comm	_E1000_STATUS_SPEED_MASK,4,2    ## @E1000_STATUS_SPEED_MASK
	.comm	_TIPG,4,2                       ## @TIPG
	.comm	_E1000_TIPG_IPGT_MASK,4,2       ## @E1000_TIPG_IPGT_MASK
	.comm	_I82579_RX_CONFIG,4,2           ## @I82579_RX_CONFIG
	.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	_e1000_pch_lpt,4,2              ## @e1000_pch_lpt
	.comm	_e1000_phy_82578,4,2            ## @e1000_phy_82578
	.comm	_HV_KMRN_FIFO_CTRLSTA,4,2       ## @HV_KMRN_FIFO_CTRLSTA
	.comm	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK,4,2 ## @HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK
	.comm	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT,4,2 ## @HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT
	.comm	_E1000_ERR_CONFIG,8,3           ## @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, #48
	.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
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_20
; %bb.1:
	mov	x19, x0
	add	x3, sp, #12
	mov	w1, #1
	mov	w2, #0
	bl	_e1000e_phy_has_link_generic
	mov	x20, x0
	cbnz	x0, LBB0_21
; %bb.2:
	ldr	w8, [x19, #28]
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.3:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_e1000_k1_gig_workaround_hv
	mov	x20, x0
	cbnz	x0, LBB0_21
; %bb.4:
	ldr	w8, [x19, #28]
LBB0_5:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_er32
Lloh3:
	adrp	x8, _E1000_STATUS_FD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_STATUS_FD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _E1000_STATUS_SPEED_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _E1000_STATUS_SPEED_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_22
LBB0_8:
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _E1000_DEV_ID_PCH_LPTLP_I218_LM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _E1000_DEV_ID_PCH_LPTLP_I218_LM@GOTPAGEOFF]
Lloh11:
	adrp	x10, _E1000_DEV_ID_PCH_LPTLP_I218_V@GOTPAGE
Lloh12:
	ldr	x10, [x10, _E1000_DEV_ID_PCH_LPTLP_I218_V@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x11, _E1000_DEV_ID_PCH_I218_LM3@GOTPAGE
Lloh16:
	ldr	x11, [x11, _E1000_DEV_ID_PCH_I218_LM3@GOTPAGEOFF]
Lloh17:
	adrp	x12, _E1000_DEV_ID_PCH_I218_V3@GOTPAGE
Lloh18:
	ldr	x12, [x12, _E1000_DEV_ID_PCH_I218_V3@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
Lloh20:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_e1000_k1_workaround_lpt_lp
	mov	x20, x0
	cbnz	x0, LBB0_21
LBB0_10:
	ldr	w8, [x19, #28]
Lloh21:
	adrp	x9, _e1000_pch_lpt@GOTPAGE
Lloh22:
	ldr	x9, [x9, _e1000_pch_lpt@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_e1000_platform_pm_pch_lpt
	mov	x20, x0
	cbnz	x0, LBB0_21
LBB0_12:
	str	xzr, [x19, #48]
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_20
; %bb.13:
	str	wzr, [x19, #24]
	ldr	w8, [x19, #28]
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.14:
	cmp	w8, #129
	b.ne	LBB0_26
; %bb.15:
	mov	x0, x19
	bl	_e1000_k1_workaround_lv
	mov	x20, x0
	cbnz	x0, LBB0_21
LBB0_16:
	ldr	w8, [x19]
Lloh24:
	adrp	x9, _e1000_phy_82578@GOTPAGE
Lloh25:
	ldr	x9, [x9, _e1000_phy_82578@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_e1000_link_stall_workaround_hv
	mov	x20, x0
	cbnz	x0, LBB0_21
LBB0_18:
Lloh27:
	adrp	x20, _HV_KMRN_FIFO_CTRLSTA@GOTPAGE
Lloh28:
	ldr	x20, [x20, _HV_KMRN_FIFO_CTRLSTA@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_e1e_rphy
Lloh29:
	adrp	x8, _HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	str	w8, [sp, #8]
Lloh32:
	adrp	x8, _STATUS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_er32
Lloh35:
	adrp	x8, _E1000_STATUS_FD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _E1000_STATUS_FD@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	b.ne	LBB0_24
; %bb.19:
	ldr	w2, [sp, #8]
	b	LBB0_25
LBB0_20:
	mov	x20, #0
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_22:
Lloh38:
	adrp	x20, _TIPG@GOTPAGE
Lloh39:
	ldr	x20, [x20, _TIPG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh40:
	adrp	x8, _E1000_TIPG_IPGT_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _E1000_TIPG_IPGT_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w1, w8, #0xff
	ldr	w0, [x20]
	bl	_ew32
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_21
; %bb.23:
Lloh43:
	adrp	x8, _I82579_RX_CONFIG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _I82579_RX_CONFIG@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_e1000_write_emi_reg_locked
	mov	x20, x0
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	cbnz	x20, LBB0_21
	b	LBB0_8
LBB0_24:
Lloh46:
	adrp	x8, _HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [sp, #8]
	orr	w2, w9, w8
	str	w2, [sp, #8]
LBB0_25:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy
LBB0_26:
	mov	x0, x19
	bl	_e1000e_check_downshift
	mov	x0, x19
	bl	_e1000_set_eee_pchlan
	mov	x20, x0
	cbnz	x0, LBB0_21
; %bb.27:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_30
; %bb.28:
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_e1000e_config_fc_after_link_up
	mov	x20, x0
	cbz	x0, LBB0_21
; %bb.29:
Lloh49:
	adrp	x0, l_.str@PAGE
Lloh50:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	b	LBB0_21
LBB0_30:
Lloh51:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh52:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	neg	x20, x8
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_FD,4,2            ; @E1000_STATUS_FD
	.comm	_E1000_STATUS_SPEED_MASK,4,2    ; @E1000_STATUS_SPEED_MASK
	.comm	_TIPG,4,2                       ; @TIPG
	.comm	_E1000_TIPG_IPGT_MASK,4,2       ; @E1000_TIPG_IPGT_MASK
	.comm	_I82579_RX_CONFIG,4,2           ; @I82579_RX_CONFIG
	.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	_e1000_pch_lpt,4,2              ; @e1000_pch_lpt
	.comm	_e1000_phy_82578,4,2            ; @e1000_phy_82578
	.comm	_HV_KMRN_FIFO_CTRLSTA,4,2       ; @HV_KMRN_FIFO_CTRLSTA
	.comm	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK,4,2 ; @HV_KMRN_FIFO_CTRLSTA_PREAMBLE_MASK
	.comm	_HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT,4,2 ; @HV_KMRN_FIFO_CTRLSTA_PREAMBLE_SHIFT
	.comm	_E1000_ERR_CONFIG,8,3           ; @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
