	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_copper_link_setup_igp   ## -- Begin function e1000e_copper_link_setup_igp
	.p2align	4, 0x90
_e1000e_copper_link_setup_igp:          ## @e1000e_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
	movq	%rdi, %r14
	callq	_e1000_phy_hw_reset
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_e_dbg
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$100, %edi
	callq	_msleep
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_7:
	movq	_IGP01E1000_PHY_PORT_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.8:
	movq	_IGP01E1000_PSCR_AUTO_MDIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	notl	%edx
	movl	-28(%rbp), %ecx
	andl	%ecx, %edx
	movl	8(%r14), %esi
	cmpl	$2, %esi
	je	LBB0_11
## %bb.9:
	cmpl	$1, %esi
	jne	LBB0_12
## %bb.10:
	movq	_IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	movl	%edx, -28(%rbp)
	jmp	LBB0_13
LBB0_11:
	movq	_IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -28(%rbp)
	jmp	LBB0_13
LBB0_12:
	orl	%eax, %ecx
	movl	%ecx, -28(%rbp)
	movl	%ecx, %edx
LBB0_13:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_e1e_wphy
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.14:
	cmpq	$0, (%r14)
	je	LBB0_21
## %bb.15:
	movq	16(%r14), %rax
	movq	_ADVERTISE_1000_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.16:
	movq	_IGP01E1000_PHY_PORT_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.17:
	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	_e1e_wphy
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.18:
	movq	_MII_CTRL1000@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.19:
	movq	_CTL1000_ENABLE_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_e1e_wphy
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_20:
	movq	%r14, %rdi
	callq	_e1000_set_master_slave_mode
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error resetting the PHY.\n"

L_.str.1:                               ## @.str.1
	.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	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_CTL1000_ENABLE_MASTER,4,2      ## @CTL1000_ENABLE_MASTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_copper_link_setup_igp   ; -- Begin function e1000e_copper_link_setup_igp
	.p2align	2
_e1000e_copper_link_setup_igp:          ; @e1000e_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
	mov	x19, x0
	bl	_e1000_phy_hw_reset
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_e_dbg
LBB0_3:
	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_4:
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	blr	x8
	cbz	x0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_7:
Lloh4:
	adrp	x21, _IGP01E1000_PHY_PORT_CTRL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _IGP01E1000_PHY_PORT_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.8:
Lloh6:
	adrp	x8, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	w10, [sp, #12]
	bic	w8, w10, w9
	ldr	w11, [x19, #8]
	cmp	w11, #2
	b.eq	LBB0_11
; %bb.9:
	cmp	w11, #1
	b.ne	LBB0_12
; %bb.10:
Lloh9:
	adrp	x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	bic	w2, w8, w9
	b	LBB0_13
LBB0_11:
Lloh12:
	adrp	x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_13
LBB0_12:
	orr	w2, w10, w9
LBB0_13:
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_e1e_wphy
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.14:
	ldr	x8, [x19]
	cbz	x8, LBB0_21
; %bb.15:
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x9, _ADVERTISE_1000_FULL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ADVERTISE_1000_FULL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.16:
Lloh18:
	adrp	x21, _IGP01E1000_PHY_PORT_CONFIG@GOTPAGE
Lloh19:
	ldr	x21, [x21, _IGP01E1000_PHY_PORT_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.17:
Lloh20:
	adrp	x8, _IGP01E1000_PSCFR_SMART_SPEED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IGP01E1000_PSCFR_SMART_SPEED@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_e1e_wphy
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.18:
Lloh23:
	adrp	x21, _MII_CTRL1000@GOTPAGE
Lloh24:
	ldr	x21, [x21, _MII_CTRL1000@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.19:
Lloh25:
	adrp	x8, _CTL1000_ENABLE_MASTER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CTL1000_ENABLE_MASTER@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_e1e_wphy
	mov	x20, x0
	cbnz	x0, LBB0_3
LBB0_20:
	mov	x0, x19
	bl	_e1000_set_master_slave_mode
	mov	x20, x0
	b	LBB0_3
LBB0_21:
	mov	x20, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error resetting the PHY.\n"

l_.str.1:                               ; @.str.1
	.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	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_CTL1000_ENABLE_MASTER,4,2      ; @CTL1000_ENABLE_MASTER
.subsections_via_symbols
