	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_copper_link_setup_igp      ## -- Begin function igb_copper_link_setup_igp
	.p2align	4, 0x90
_igb_copper_link_setup_igp:             ## @igb_copper_link_setup_igp
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 80(%rdi)
	je	LBB0_2
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_2:
	movq	%rdi, %r14
	callq	*72(%rdi)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_17
LBB0_4:
	movl	$100, %edi
	callq	_msleep
	movq	8(%r14), %rax
	movq	_e1000_phy_igp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movq	64(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_17
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*56(%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_17
LBB0_10:
	movq	_IGP01E1000_PHY_PORT_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	*48(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:
	movq	_IGP01E1000_PSCR_AUTO_MDIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	notl	%edx
	movl	-28(%rbp), %ecx
	andl	%ecx, %edx
	movl	16(%r14), %esi
	cmpl	$2, %esi
	je	LBB0_14
## %bb.12:
	cmpl	$1, %esi
	jne	LBB0_15
## %bb.13:
	movq	_IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	movl	%edx, -28(%rbp)
	jmp	LBB0_16
LBB0_14:
	movq	_IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -28(%rbp)
	jmp	LBB0_16
LBB0_15:
	orl	%eax, %ecx
	movl	%ecx, -28(%rbp)
	movl	%ecx, %edx
LBB0_16:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	*40(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.19:
	movq	24(%r14), %rax
	movq	_ADVERTISE_1000_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.20:
	movq	_IGP01E1000_PHY_PORT_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	*48(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.21:
	movq	_IGP01E1000_PSCFR_SMART_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	*40(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.22:
	movq	_PHY_1000T_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	*48(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.23:
	movq	_CR_1000T_MS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	*40(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
LBB0_24:
	movq	_PHY_1000T_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	*48(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.25:
	movl	-28(%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, 32(%r14)
	movl	36(%r14), %esi
	cmpl	$128, %esi
	je	LBB0_30
## %bb.26:
	cmpl	$130, %esi
	je	LBB0_31
## %bb.27:
	cmpl	$129, %esi
	jne	LBB0_32
## %bb.28:
	orl	%edx, %eax
	orl	%ecx, %eax
	movl	%eax, -28(%rbp)
	movl	%eax, %edx
	jmp	LBB0_32
LBB0_30:
	orl	%edx, %eax
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -28(%rbp)
	movl	%ecx, %edx
	jmp	LBB0_32
LBB0_31:
	notl	%eax
	andl	%eax, %edx
	movl	%edx, -28(%rbp)
LBB0_32:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	*40(%r14)
	movq	%rax, %rbx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error resetting the PHY.\n"

	.comm	_e1000_phy_igp,8,3              ## @e1000_phy_igp
L_.str.1:                               ## @.str.1
	.asciz	"Error Disabling LPLU D3\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error Disabling LPLU D0\n"

	.comm	_IGP01E1000_PHY_PORT_CTRL,4,2   ## @IGP01E1000_PHY_PORT_CTRL
	.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	_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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_copper_link_setup_igp      ; -- Begin function igb_copper_link_setup_igp
	.p2align	2
_igb_copper_link_setup_igp:             ; @igb_copper_link_setup_igp
	.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, #80]
	cbz	x8, LBB0_2
LBB0_1:
	mov	x20, #0
	b	LBB0_17
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #72]
	blr	x8
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	b	LBB0_17
LBB0_4:
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _e1000_phy_igp@GOTPAGE
Lloh3:
	ldr	x9, [x9, _e1000_phy_igp@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	blr	x8
	cbz	x0, LBB0_8
; %bb.7:
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
	b	LBB0_17
LBB0_8:
	ldr	x8, [x19, #56]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	cbz	x0, LBB0_10
; %bb.9:
	mov	x20, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hw_dbg
	b	LBB0_17
LBB0_10:
	ldr	x8, [x19, #48]
Lloh9:
	adrp	x21, _IGP01E1000_PHY_PORT_CTRL@GOTPAGE
Lloh10:
	ldr	x21, [x21, _IGP01E1000_PHY_PORT_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_17
; %bb.11:
Lloh11:
	adrp	x8, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x8]
	ldr	w10, [sp, #12]
	bic	w8, w10, w9
	ldr	w11, [x19, #16]
	cmp	w11, #2
	b.eq	LBB0_14
; %bb.12:
	cmp	w11, #1
	b.ne	LBB0_15
; %bb.13:
Lloh14:
	adrp	x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w2, w8, w9
	b	LBB0_16
LBB0_14:
Lloh17:
	adrp	x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_16
LBB0_15:
	orr	w2, w10, w9
LBB0_16:
	str	w2, [sp, #12]
	ldr	x8, [x19, #40]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
	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]
	cbz	x8, LBB0_1
; %bb.19:
	ldr	x8, [x19, #24]
Lloh20:
	adrp	x9, _ADVERTISE_1000_FULL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ADVERTISE_1000_FULL@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.20:
	ldr	x8, [x19, #48]
Lloh23:
	adrp	x21, _IGP01E1000_PHY_PORT_CONFIG@GOTPAGE
Lloh24:
	ldr	x21, [x21, _IGP01E1000_PHY_PORT_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_17
; %bb.21:
Lloh25:
	adrp	x8, _IGP01E1000_PSCFR_SMART_SPEED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IGP01E1000_PSCFR_SMART_SPEED@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #40]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_17
; %bb.22:
	ldr	x8, [x19, #48]
Lloh28:
	adrp	x21, _PHY_1000T_CTRL@GOTPAGE
Lloh29:
	ldr	x21, [x21, _PHY_1000T_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_17
; %bb.23:
Lloh30:
	adrp	x8, _CR_1000T_MS_ENABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CR_1000T_MS_ENABLE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #40]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_17
LBB0_24:
	ldr	x8, [x19, #48]
Lloh33:
	adrp	x21, _PHY_1000T_CTRL@GOTPAGE
Lloh34:
	ldr	x21, [x21, _PHY_1000T_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_17
; %bb.25:
	ldr	w2, [sp, #12]
Lloh35:
	adrp	x8, _CR_1000T_MS_ENABLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CR_1000T_MS_ENABLE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _CR_1000T_MS_VALUE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _CR_1000T_MS_VALUE@GOTPAGEOFF]
Lloh40:
	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, #32]
	ldr	w10, [x19, #36]
	cmp	w10, #128
	b.eq	LBB0_29
; %bb.26:
	cmp	w10, #130
	b.eq	LBB0_30
; %bb.27:
	cmp	w10, #129
	b.ne	LBB0_32
; %bb.28:
	orr	w8, w8, w2
	orr	w2, w8, w9
	b	LBB0_31
LBB0_29:
	orr	w8, w8, w2
	bic	w2, w8, w9
	b	LBB0_31
LBB0_30:
	bic	w2, w2, w8
LBB0_31:
	str	w2, [sp, #12]
LBB0_32:
	ldr	x8, [x19, #40]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error resetting the PHY.\n"

	.comm	_e1000_phy_igp,8,3              ; @e1000_phy_igp
l_.str.1:                               ; @.str.1
	.asciz	"Error Disabling LPLU D3\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error Disabling LPLU D0\n"

	.comm	_IGP01E1000_PHY_PORT_CTRL,4,2   ; @IGP01E1000_PHY_PORT_CTRL
	.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	_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
.subsections_via_symbols
