	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_igp3_phy_powerdown_workaround_ich8lan ## -- Begin function e1000e_igp3_phy_powerdown_workaround_ich8lan
	.p2align	4, 0x90
_e1000e_igp3_phy_powerdown_workaround_ich8lan: ## @e1000e_igp3_phy_powerdown_workaround_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	%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	8(%rdi), %rax
	movq	_e1000_phy_igp_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PHY_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_PHY_CTRL_GBE_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_E1000_PHY_CTRL_NOND0A_GBE_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	(%r13), %rax
	movq	_e1000_ich8lan@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_e1000e_gig_downshift_workaround_ich8lan
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_IGP3_VR_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	leaq	-44(%rbp), %r14
	movq	%r14, %rdx
	callq	_e1e_rphy
	movq	_IGP3_VR_CTRL_DEV_POWERDOWN_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	_IGP3_VR_CTRL_MODE_SHUTDOWN@GOTPCREL(%rip), %rbx
	orl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_e1e_wphy
	movl	(%r15), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_e1e_rphy
	movl	-44(%rbp), %eax
	movq	_IGP3_VR_CTRL_DEV_POWERDOWN_MODE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	sete	%al
	orb	%al, %r12b
	testb	$1, %r12b
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movl	(%rbx), %edi
	movq	_E1000_CTRL_PHY_RST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_ew32
	movb	$1, %r12b
	jmp	LBB0_2
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_igp_3,8,3            ## @e1000_phy_igp_3
	.comm	_PHY_CTRL,4,2                   ## @PHY_CTRL
	.comm	_E1000_PHY_CTRL_GBE_DISABLE,4,2 ## @E1000_PHY_CTRL_GBE_DISABLE
	.comm	_E1000_PHY_CTRL_NOND0A_GBE_DISABLE,4,2 ## @E1000_PHY_CTRL_NOND0A_GBE_DISABLE
	.comm	_e1000_ich8lan,8,3              ## @e1000_ich8lan
	.comm	_IGP3_VR_CTRL,4,2               ## @IGP3_VR_CTRL
	.comm	_IGP3_VR_CTRL_DEV_POWERDOWN_MODE_MASK,4,2 ## @IGP3_VR_CTRL_DEV_POWERDOWN_MODE_MASK
	.comm	_IGP3_VR_CTRL_MODE_SHUTDOWN,4,2 ## @IGP3_VR_CTRL_MODE_SHUTDOWN
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_PHY_RST,4,2         ## @E1000_CTRL_PHY_RST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_igp3_phy_powerdown_workaround_ich8lan ; -- Begin function e1000e_igp3_phy_powerdown_workaround_ich8lan
	.p2align	2
_e1000e_igp3_phy_powerdown_workaround_ich8lan: ; @e1000e_igp3_phy_powerdown_workaround_ich8lan
	.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, #8]
Lloh0:
	adrp	x9, _e1000_phy_igp_3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_phy_igp_3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x22, _PHY_CTRL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PHY_CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_er32
Lloh5:
	adrp	x23, _E1000_PHY_CTRL_GBE_DISABLE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _E1000_PHY_CTRL_GBE_DISABLE@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh7:
	adrp	x24, _E1000_PHY_CTRL_NOND0A_GBE_DISABLE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _E1000_PHY_CTRL_NOND0A_GBE_DISABLE@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w0
	orr	w1, w8, w9
	ldr	w0, [x22]
	bl	_ew32
	ldr	x8, [x19]
Lloh9:
	adrp	x25, _e1000_ich8lan@GOTPAGE
Lloh10:
	ldr	x25, [x25, _e1000_ich8lan@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_e1000e_gig_downshift_workaround_ich8lan
LBB0_3:
Lloh11:
	adrp	x20, _IGP3_VR_CTRL@GOTPAGE
Lloh12:
	ldr	x20, [x20, _IGP3_VR_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
Lloh13:
	adrp	x21, _IGP3_VR_CTRL_DEV_POWERDOWN_MODE_MASK@GOTPAGE
Lloh14:
	ldr	x21, [x21, _IGP3_VR_CTRL_DEV_POWERDOWN_MODE_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w1, [x20]
Lloh15:
	adrp	x26, _IGP3_VR_CTRL_MODE_SHUTDOWN@GOTPAGE
Lloh16:
	ldr	x26, [x26, _IGP3_VR_CTRL_MODE_SHUTDOWN@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_e1e_wphy
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	and	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w9, [x26]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.4:
Lloh17:
	adrp	x27, _CTRL@GOTPAGE
Lloh18:
	ldr	x27, [x27, _CTRL@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_er32
	ldr	w8, [x27]
Lloh19:
	adrp	x9, _E1000_CTRL_PHY_RST@GOTPAGE
Lloh20:
	ldr	x9, [x9, _E1000_CTRL_PHY_RST@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_ew32
	ldr	w0, [x22]
	bl	_er32
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w8, w0
	orr	w1, w8, w9
	ldr	w0, [x22]
	bl	_ew32
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_e1000e_gig_downshift_workaround_ich8lan
LBB0_6:
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w1, [x20]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_e1e_wphy
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	and	w8, w9, w8
	str	w8, [sp, #12]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_igp_3,8,3            ; @e1000_phy_igp_3
	.comm	_PHY_CTRL,4,2                   ; @PHY_CTRL
	.comm	_E1000_PHY_CTRL_GBE_DISABLE,4,2 ; @E1000_PHY_CTRL_GBE_DISABLE
	.comm	_E1000_PHY_CTRL_NOND0A_GBE_DISABLE,4,2 ; @E1000_PHY_CTRL_NOND0A_GBE_DISABLE
	.comm	_e1000_ich8lan,8,3              ; @e1000_ich8lan
	.comm	_IGP3_VR_CTRL,4,2               ; @IGP3_VR_CTRL
	.comm	_IGP3_VR_CTRL_DEV_POWERDOWN_MODE_MASK,4,2 ; @IGP3_VR_CTRL_DEV_POWERDOWN_MODE_MASK
	.comm	_IGP3_VR_CTRL_MODE_SHUTDOWN,4,2 ; @IGP3_VR_CTRL_MODE_SHUTDOWN
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_PHY_RST,4,2         ; @E1000_CTRL_PHY_RST
.subsections_via_symbols
