	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_setup_link_ich8lan
_e1000_setup_link_ich8lan:              ## @e1000_setup_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	*32(%rdi)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_2:
	movq	(%rbx), %rsi
	movq	_e1000_fc_default@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_7
## %bb.3:
	movq	40(%rbx), %rax
	movq	_e1000_pchlan@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_e1000_fc_rx_pause@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_e1000_fc_full@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rsi
	movq	%rsi, (%rbx)
LBB0_7:
	movq	%rsi, 8(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	%rbx, %rdi
	callq	*48(%rbx)
	testq	%rax, %rax
	je	LBB0_8
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	_FCTTV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_ew32
	movq	24(%rbx), %rax
	movq	_e1000_phy_82578@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.9:
	movq	_e1000_phy_82579@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	_e1000_phy_i217@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	_e1000_phy_82577@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_12:
	movq	_FCRTV_PCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %esi
	callq	_ew32
	movq	_BM_PORT_CTRL_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$27, %esi
	callq	_PHY_REG
	movl	16(%rbx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_e1e_wphy
	testq	%rax, %rax
	jne	LBB0_13
LBB0_14:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_e1000e_set_fc_watermarks       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_fc_default,8,3           ## @e1000_fc_default
	.comm	_e1000_pchlan,8,3               ## @e1000_pchlan
	.comm	_e1000_fc_rx_pause,8,3          ## @e1000_fc_rx_pause
	.comm	_e1000_fc_full,8,3              ## @e1000_fc_full
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"After fix-ups FlowControl is now = %x\n"

	.comm	_FCTTV,4,2                      ## @FCTTV
	.comm	_e1000_phy_82578,8,3            ## @e1000_phy_82578
	.comm	_e1000_phy_82579,8,3            ## @e1000_phy_82579
	.comm	_e1000_phy_i217,8,3             ## @e1000_phy_i217
	.comm	_e1000_phy_82577,8,3            ## @e1000_phy_82577
	.comm	_FCRTV_PCH,4,2                  ## @FCRTV_PCH
	.comm	_BM_PORT_CTRL_PAGE,4,2          ## @BM_PORT_CTRL_PAGE
	.no_dead_strip	_e1000_setup_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_setup_link_ich8lan
_e1000_setup_link_ich8lan:              ; @e1000_setup_link_ich8lan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #32]
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_5
LBB0_2:
	ldr	x1, [x19]
Lloh0:
	adrp	x8, _e1000_fc_default@GOTPAGE
Lloh1:
	ldr	x8, [x8, _e1000_fc_default@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #40]
Lloh3:
	adrp	x9, _e1000_pchlan@GOTPAGE
Lloh4:
	ldr	x9, [x9, _e1000_pchlan@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _e1000_fc_rx_pause@GOTPAGE
Lloh7:
	ldr	x10, [x10, _e1000_fc_rx_pause@GOTPAGEOFF]
Lloh8:
	adrp	x11, _e1000_fc_full@GOTPAGE
Lloh9:
	ldr	x11, [x11, _e1000_fc_full@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x1, [x8]
	str	x1, [x19]
LBB0_4:
	str	x1, [x19, #8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	ldr	x8, [x19, #48]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh12:
	adrp	x8, _FCTTV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FCTTV@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_ew32
	ldr	x8, [x19, #24]
Lloh15:
	adrp	x9, _e1000_phy_82578@GOTPAGE
Lloh16:
	ldr	x9, [x9, _e1000_phy_82578@GOTPAGEOFF]
Lloh17:
	adrp	x10, _e1000_phy_82579@GOTPAGE
Lloh18:
	ldr	x10, [x10, _e1000_phy_82579@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	ldr	x10, [x10]
Lloh21:
	adrp	x11, _e1000_phy_i217@GOTPAGE
Lloh22:
	ldr	x11, [x11, _e1000_phy_i217@GOTPAGEOFF]
Lloh23:
	adrp	x12, _e1000_phy_82577@GOTPAGE
Lloh24:
	ldr	x12, [x12, _e1000_phy_82577@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
Lloh26:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_8
; %bb.7:
Lloh27:
	adrp	x8, _FCRTV_PCH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FCRTV_PCH@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x19, #20]
	bl	_ew32
Lloh30:
	adrp	x8, _BM_PORT_CTRL_PAGE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BM_PORT_CTRL_PAGE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	w1, #27
	bl	_PHY_REG
	mov	x1, x0
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_e1e_wphy
	cbnz	x0, LBB0_5
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_e1000e_set_fc_watermarks
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_fc_default,8,3           ; @e1000_fc_default
	.comm	_e1000_pchlan,8,3               ; @e1000_pchlan
	.comm	_e1000_fc_rx_pause,8,3          ; @e1000_fc_rx_pause
	.comm	_e1000_fc_full,8,3              ; @e1000_fc_full
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"After fix-ups FlowControl is now = %x\n"

	.comm	_FCTTV,4,2                      ; @FCTTV
	.comm	_e1000_phy_82578,8,3            ; @e1000_phy_82578
	.comm	_e1000_phy_82579,8,3            ; @e1000_phy_82579
	.comm	_e1000_phy_i217,8,3             ; @e1000_phy_i217
	.comm	_e1000_phy_82577,8,3            ; @e1000_phy_82577
	.comm	_FCRTV_PCH,4,2                  ; @FCRTV_PCH
	.comm	_BM_PORT_CTRL_PAGE,4,2          ; @BM_PORT_CTRL_PAGE
	.no_dead_strip	_e1000_setup_link_ich8lan
.subsections_via_symbols
