	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_copper_link_igp_setup
_e1000_copper_link_igp_setup:           ## @e1000_copper_link_igp_setup
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 64(%rdi)
	je	LBB0_1
LBB0_34:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_35
LBB0_1:
	movq	%rdi, %r14
	callq	_e1000_phy_reset
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_35
LBB0_3:
	movl	$15, %edi
	callq	_msleep
	movq	_LEDCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_IGP_ACTIVITY_LED_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_IGP_ACTIVITY_LED_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IGP_LED3_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	(%r14), %rax
	movq	_e1000_phy_igp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_e1000_set_d3_lplu_state
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_35
LBB0_6:
	movq	_IGP01E1000_PHY_PORT_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_35
## %bb.7:
	movq	8(%r14), %rax
	movq	_e1000_82541@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_e1000_82547@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.10:
	movq	_e1000_dsp_config_enabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	_IGP01E1000_PSCR_AUTO_MDIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	notl	%edx
	movl	-36(%rbp), %ecx
	andl	%ecx, %edx
	movl	24(%r14), %esi
	cmpl	$2, %esi
	je	LBB0_13
## %bb.11:
	cmpl	$1, %esi
	jne	LBB0_14
## %bb.12:
	movq	_IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	movl	%edx, -36(%rbp)
	jmp	LBB0_15
LBB0_9:
	movq	_e1000_dsp_config_disabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	_IGP01E1000_PSCR_AUTO_MDIX@GOTPCREL(%rip), %rax
	movq	_IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	$1, 24(%r14)
	jmp	LBB0_15
LBB0_13:
	movq	_IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	jmp	LBB0_15
LBB0_14:
	orl	%eax, %ecx
	movl	%ecx, -36(%rbp)
	movl	%ecx, %edx
LBB0_15:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_35:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	cmpq	$0, 56(%r14)
	je	LBB0_34
## %bb.17:
	movq	32(%r14), %rax
	movq	_e1000_ffe_config_active@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.18:
	movq	_e1000_ffe_config_enabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
LBB0_19:
	movq	16(%r14), %rax
	movq	_e1000_dsp_config_activated@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	_e1000_dsp_config_enabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
LBB0_21:
	movl	28(%r14), %r15d
	movq	40(%r14), %rax
	movq	_ADVERTISE_1000_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.22:
	movq	_IGP01E1000_PHY_PORT_CONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_35
## %bb.23:
	movq	_IGP01E1000_PSCFR_SMART_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_35
## %bb.24:
	movq	_PHY_1000T_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_35
## %bb.25:
	movq	_CR_1000T_MS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_35
LBB0_26:
	movq	_PHY_1000T_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1000_read_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_35
## %bb.27:
	movl	-36(%rbp), %edx
	movq	_CR_1000T_MS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CR_1000T_MS_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	andl	%edx, %esi
	cmpl	$1, %esi
	movl	$129, %esi
	sbbl	$0, %esi
	testl	%edx, %eax
	movl	$130, %edi
	cmovnel	%esi, %edi
	movl	%edi, 48(%r14)
	cmpl	$128, %r15d
	je	LBB0_31
## %bb.28:
	cmpl	$130, %r15d
	je	LBB0_32
## %bb.29:
	cmpl	$129, %r15d
	jne	LBB0_33
## %bb.30:
	orl	%edx, %eax
	orl	%ecx, %eax
	movl	%eax, -36(%rbp)
	movl	%eax, %edx
	jmp	LBB0_33
LBB0_31:
	orl	%edx, %eax
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -36(%rbp)
	movl	%ecx, %edx
	jmp	LBB0_33
LBB0_32:
	notl	%eax
	andl	%eax, %edx
	movl	%edx, -36(%rbp)
LBB0_33:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_e1000_write_phy_reg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_35
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error Resetting the PHY\n"

	.comm	_LEDCTL,4,2                     ## @LEDCTL
	.comm	_IGP_ACTIVITY_LED_MASK,4,2      ## @IGP_ACTIVITY_LED_MASK
	.comm	_IGP_ACTIVITY_LED_ENABLE,4,2    ## @IGP_ACTIVITY_LED_ENABLE
	.comm	_IGP_LED3_MODE,4,2              ## @IGP_LED3_MODE
	.comm	_e1000_phy_igp,8,3              ## @e1000_phy_igp
L_.str.1:                               ## @.str.1
	.asciz	"Error Disabling LPLU D3\n"

	.comm	_IGP01E1000_PHY_PORT_CTRL,4,2   ## @IGP01E1000_PHY_PORT_CTRL
	.comm	_e1000_82541,8,3                ## @e1000_82541
	.comm	_e1000_82547,8,3                ## @e1000_82547
	.comm	_e1000_dsp_config_disabled,8,3  ## @e1000_dsp_config_disabled
	.comm	_IGP01E1000_PSCR_AUTO_MDIX,4,2  ## @IGP01E1000_PSCR_AUTO_MDIX
	.comm	_IGP01E1000_PSCR_FORCE_MDI_MDIX,4,2 ## @IGP01E1000_PSCR_FORCE_MDI_MDIX
	.comm	_e1000_dsp_config_enabled,8,3   ## @e1000_dsp_config_enabled
	.comm	_e1000_ffe_config_active,8,3    ## @e1000_ffe_config_active
	.comm	_e1000_ffe_config_enabled,8,3   ## @e1000_ffe_config_enabled
	.comm	_e1000_dsp_config_activated,8,3 ## @e1000_dsp_config_activated
	.comm	_ADVERTISE_1000_FULL,8,3        ## @ADVERTISE_1000_FULL
	.comm	_IGP01E1000_PHY_PORT_CONFIG,4,2 ## @IGP01E1000_PHY_PORT_CONFIG
	.comm	_IGP01E1000_PSCFR_SMART_SPEED,4,2 ## @IGP01E1000_PSCFR_SMART_SPEED
	.comm	_PHY_1000T_CTRL,4,2             ## @PHY_1000T_CTRL
	.comm	_CR_1000T_MS_ENABLE,4,2         ## @CR_1000T_MS_ENABLE
	.comm	_CR_1000T_MS_VALUE,4,2          ## @CR_1000T_MS_VALUE
	.no_dead_strip	_e1000_copper_link_igp_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_copper_link_igp_setup
_e1000_copper_link_igp_setup:           ; @e1000_copper_link_igp_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #64]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	b	LBB0_17
LBB0_2:
	mov	x19, x0
	bl	_e1000_phy_reset
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	b	LBB0_17
LBB0_4:
	mov	w0, #15
	bl	_msleep
Lloh5:
	adrp	x20, _LEDCTL@GOTPAGE
Lloh6:
	ldr	x20, [x20, _LEDCTL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh7:
	adrp	x8, _IGP_ACTIVITY_LED_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IGP_ACTIVITY_LED_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh10:
	adrp	x9, _IGP_ACTIVITY_LED_ENABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IGP_ACTIVITY_LED_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _IGP_LED3_MODE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IGP_LED3_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w1, w8, w10
	ldr	w0, [x20]
	bl	_ew32
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _e1000_phy_igp@GOTPAGE
Lloh17:
	ldr	x9, [x9, _e1000_phy_igp@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_e1000_set_d3_lplu_state
	cbz	x0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	b	LBB0_17
LBB0_7:
Lloh21:
	adrp	x21, _IGP01E1000_PHY_PORT_CTRL@GOTPAGE
Lloh22:
	ldr	x21, [x21, _IGP01E1000_PHY_PORT_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_17
; %bb.8:
	ldr	x8, [x19, #8]
Lloh23:
	adrp	x9, _e1000_82541@GOTPAGE
Lloh24:
	ldr	x9, [x9, _e1000_82541@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
Lloh26:
	adrp	x10, _e1000_82547@GOTPAGE
Lloh27:
	ldr	x10, [x10, _e1000_82547@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.9:
Lloh29:
	adrp	x8, _e1000_dsp_config_disabled@GOTPAGE
Lloh30:
	ldr	x8, [x8, _e1000_dsp_config_disabled@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh32:
	adrp	x8, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	mov	w8, #1
	str	w8, [x19, #24]
	b	LBB0_16
LBB0_10:
Lloh38:
	adrp	x8, _e1000_dsp_config_enabled@GOTPAGE
Lloh39:
	ldr	x8, [x8, _e1000_dsp_config_enabled@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
Lloh41:
	adrp	x9, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGE
Lloh42:
	ldr	x9, [x9, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh43:
	ldr	w9, [x9]
	ldr	w10, [sp, #12]
	bic	w8, w10, w9
	ldr	w11, [x19, #24]
	cmp	w11, #2
	b.eq	LBB0_13
; %bb.11:
	cmp	w11, #1
	b.ne	LBB0_14
; %bb.12:
Lloh44:
	adrp	x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGE
Lloh45:
	ldr	x9, [x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	bic	w2, w8, w9
	b	LBB0_15
LBB0_13:
Lloh47:
	adrp	x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGE
Lloh48:
	ldr	x9, [x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_15
LBB0_14:
	orr	w2, w10, w9
LBB0_15:
	str	w2, [sp, #12]
LBB0_16:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbz	x0, LBB0_18
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_18:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_1
; %bb.19:
	ldr	x8, [x19, #32]
Lloh50:
	adrp	x9, _e1000_ffe_config_active@GOTPAGE
Lloh51:
	ldr	x9, [x9, _e1000_ffe_config_active@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
Lloh53:
	adrp	x8, _e1000_ffe_config_enabled@GOTPAGE
Lloh54:
	ldr	x8, [x8, _e1000_ffe_config_enabled@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	str	x8, [x19, #32]
LBB0_21:
	ldr	x8, [x19, #16]
Lloh56:
	adrp	x9, _e1000_dsp_config_activated@GOTPAGE
Lloh57:
	ldr	x9, [x9, _e1000_dsp_config_activated@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:
Lloh59:
	adrp	x8, _e1000_dsp_config_enabled@GOTPAGE
Lloh60:
	ldr	x8, [x8, _e1000_dsp_config_enabled@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_23:
	ldr	w21, [x19, #28]
	ldr	x8, [x19, #40]
Lloh62:
	adrp	x9, _ADVERTISE_1000_FULL@GOTPAGE
Lloh63:
	ldr	x9, [x9, _ADVERTISE_1000_FULL@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.24:
Lloh65:
	adrp	x22, _IGP01E1000_PHY_PORT_CONFIG@GOTPAGE
Lloh66:
	ldr	x22, [x22, _IGP01E1000_PHY_PORT_CONFIG@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_17
; %bb.25:
Lloh67:
	adrp	x8, _IGP01E1000_PSCFR_SMART_SPEED@GOTPAGE
Lloh68:
	ldr	x8, [x8, _IGP01E1000_PSCFR_SMART_SPEED@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_17
; %bb.26:
Lloh70:
	adrp	x22, _PHY_1000T_CTRL@GOTPAGE
Lloh71:
	ldr	x22, [x22, _PHY_1000T_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_17
; %bb.27:
Lloh72:
	adrp	x8, _CR_1000T_MS_ENABLE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _CR_1000T_MS_ENABLE@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_17
LBB0_28:
Lloh75:
	adrp	x22, _PHY_1000T_CTRL@GOTPAGE
Lloh76:
	ldr	x22, [x22, _PHY_1000T_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_17
; %bb.29:
	ldr	w2, [sp, #12]
Lloh77:
	adrp	x8, _CR_1000T_MS_ENABLE@GOTPAGE
Lloh78:
	ldr	x8, [x8, _CR_1000T_MS_ENABLE@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
Lloh80:
	adrp	x9, _CR_1000T_MS_VALUE@GOTPAGE
Lloh81:
	ldr	x9, [x9, _CR_1000T_MS_VALUE@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	tst	w9, w2
	mov	w10, #128
	cinc	w10, w10, ne
	tst	w8, w2
	mov	w11, #130
	csel	w10, w11, w10, eq
	str	w10, [x19, #48]
	cmp	w21, #128
	b.eq	LBB0_33
; %bb.30:
	cmp	w21, #130
	b.eq	LBB0_34
; %bb.31:
	cmp	w21, #129
	b.ne	LBB0_36
; %bb.32:
	orr	w8, w8, w2
	orr	w2, w8, w9
	b	LBB0_35
LBB0_33:
	orr	w8, w8, w2
	bic	w2, w8, w9
	b	LBB0_35
LBB0_34:
	bic	w2, w2, w8
LBB0_35:
	str	w2, [sp, #12]
LBB0_36:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_e1000_write_phy_reg
	mov	x20, x0
	cbnz	x0, LBB0_17
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error Resetting the PHY\n"

	.comm	_LEDCTL,4,2                     ; @LEDCTL
	.comm	_IGP_ACTIVITY_LED_MASK,4,2      ; @IGP_ACTIVITY_LED_MASK
	.comm	_IGP_ACTIVITY_LED_ENABLE,4,2    ; @IGP_ACTIVITY_LED_ENABLE
	.comm	_IGP_LED3_MODE,4,2              ; @IGP_LED3_MODE
	.comm	_e1000_phy_igp,8,3              ; @e1000_phy_igp
l_.str.1:                               ; @.str.1
	.asciz	"Error Disabling LPLU D3\n"

	.comm	_IGP01E1000_PHY_PORT_CTRL,4,2   ; @IGP01E1000_PHY_PORT_CTRL
	.comm	_e1000_82541,8,3                ; @e1000_82541
	.comm	_e1000_82547,8,3                ; @e1000_82547
	.comm	_e1000_dsp_config_disabled,8,3  ; @e1000_dsp_config_disabled
	.comm	_IGP01E1000_PSCR_AUTO_MDIX,4,2  ; @IGP01E1000_PSCR_AUTO_MDIX
	.comm	_IGP01E1000_PSCR_FORCE_MDI_MDIX,4,2 ; @IGP01E1000_PSCR_FORCE_MDI_MDIX
	.comm	_e1000_dsp_config_enabled,8,3   ; @e1000_dsp_config_enabled
	.comm	_e1000_ffe_config_active,8,3    ; @e1000_ffe_config_active
	.comm	_e1000_ffe_config_enabled,8,3   ; @e1000_ffe_config_enabled
	.comm	_e1000_dsp_config_activated,8,3 ; @e1000_dsp_config_activated
	.comm	_ADVERTISE_1000_FULL,8,3        ; @ADVERTISE_1000_FULL
	.comm	_IGP01E1000_PHY_PORT_CONFIG,4,2 ; @IGP01E1000_PHY_PORT_CONFIG
	.comm	_IGP01E1000_PSCFR_SMART_SPEED,4,2 ; @IGP01E1000_PSCFR_SMART_SPEED
	.comm	_PHY_1000T_CTRL,4,2             ; @PHY_1000T_CTRL
	.comm	_CR_1000T_MS_ENABLE,4,2         ; @CR_1000T_MS_ENABLE
	.comm	_CR_1000T_MS_VALUE,4,2          ; @CR_1000T_MS_VALUE
	.no_dead_strip	_e1000_copper_link_igp_setup
.subsections_via_symbols
