	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_setup_copper_link_82575
_igb_setup_copper_link_82575:           ## @igb_setup_copper_link_82575
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_E1000_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movq	_E1000_CTRL_SLU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_E1000_CTRL_FRCSPD@GOTPCREL(%rip), %rcx
	movq	_E1000_CTRL_FRCDPX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_wr32
	movl	$-133, %eax
	addl	24(%r14), %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	movq	_E1000_82580_PHY_POWER_MGMT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movq	_E1000_82580_PM_GO_LINKD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_wr32
LBB0_2:
	movq	%r14, %rdi
	callq	_igb_setup_serdes_link_82575
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
LBB0_15:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_igb_sgmii_active_82575
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpl	$0, 16(%r14)
	je	LBB0_9
LBB0_5:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_11
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movl	$-137, %eax
	addl	4(%r14), %eax
	movq	%r14, %rdi
	cmpl	$4, %eax
	ja	LBB0_16
## %bb.8:
	callq	_igb_copper_link_setup_m88_gen2
	jmp	LBB0_14
LBB0_9:
	movl	$300, %edi                      ## imm = 0x12C
	callq	_msleep
	movq	%r14, %rdi
	callq	*8(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.10:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_15
LBB0_11:
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_15
	jmp	LBB0_17
LBB0_12:
	movq	%r14, %rdi
	callq	_igb_copper_link_setup_igp
	jmp	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	callq	_igb_copper_link_setup_82580
	jmp	LBB0_14
LBB0_16:
	callq	_igb_copper_link_setup_m88
LBB0_14:
	movq	%rax, %rbx
	testq	%rbx, %rbx
	jne	LBB0_15
LBB0_17:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_igb_setup_copper_link          ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_17
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_E1000_CTRL,4,2                 ## @E1000_CTRL
	.comm	_E1000_CTRL_SLU,4,2             ## @E1000_CTRL_SLU
	.comm	_E1000_CTRL_FRCSPD,4,2          ## @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ## @E1000_CTRL_FRCDPX
	.comm	_E1000_82580_PHY_POWER_MGMT,4,2 ## @E1000_82580_PHY_POWER_MGMT
	.comm	_E1000_82580_PM_GO_LINKD,4,2    ## @E1000_82580_PM_GO_LINKD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error resetting the PHY.\n"

	.comm	_E1000_ERR_PHY,8,3              ## @E1000_ERR_PHY
	.no_dead_strip	_igb_setup_copper_link_82575
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_setup_copper_link_82575
_igb_setup_copper_link_82575:           ; @igb_setup_copper_link_82575
	.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
Lloh0:
	adrp	x20, _E1000_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _E1000_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_rd32
Lloh2:
	adrp	x8, _E1000_CTRL_SLU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_CTRL_SLU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh5:
	adrp	x9, _E1000_CTRL_FRCSPD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _E1000_CTRL_FRCSPD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _E1000_CTRL_FRCDPX@GOTPAGE
Lloh9:
	ldr	x10, [x10, _E1000_CTRL_FRCDPX@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w1, w8, w9
	ldr	w0, [x20]
	bl	_wr32
	ldr	w8, [x19, #24]
	sub	w8, w8, #133
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh11:
	adrp	x20, _E1000_82580_PHY_POWER_MGMT@GOTPAGE
Lloh12:
	ldr	x20, [x20, _E1000_82580_PHY_POWER_MGMT@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_rd32
Lloh13:
	adrp	x8, _E1000_82580_PM_GO_LINKD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E1000_82580_PM_GO_LINKD@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x20]
	bl	_wr32
LBB0_2:
	mov	x0, x19
	bl	_igb_setup_serdes_link_82575
	mov	x20, x0
	cbnz	x0, LBB0_14
; %bb.3:
	mov	x0, x19
	bl	_igb_sgmii_active_82575
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
LBB0_5:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_11
; %bb.6:
Lloh16:
	adrp	x9, lJTI0_0@PAGE
Lloh17:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	w8, [x19, #4]
	sub	w8, w8, #137
	mov	x0, x19
	cmp	w8, #4
	b.hi	LBB0_15
; %bb.8:
	bl	_igb_copper_link_setup_m88_gen2
	mov	x20, x0
	cbnz	x20, LBB0_14
	b	LBB0_16
LBB0_9:
	mov	w0, #300
	bl	_msleep
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_5
; %bb.10:
	mov	x20, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	b	LBB0_14
LBB0_11:
Lloh20:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	neg	x20, x8
	cbnz	x20, LBB0_14
	b	LBB0_16
LBB0_12:
	mov	x0, x19
	bl	_igb_copper_link_setup_igp
	mov	x20, x0
	cbnz	x20, LBB0_14
	b	LBB0_16
LBB0_13:
	mov	x0, x19
	bl	_igb_copper_link_setup_82580
	mov	x20, x0
	cbz	x20, LBB0_16
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	_igb_copper_link_setup_m88
	mov	x20, x0
	cbnz	x20, LBB0_14
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_igb_setup_copper_link
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
                                        ; -- End function
	.comm	_E1000_CTRL,4,2                 ; @E1000_CTRL
	.comm	_E1000_CTRL_SLU,4,2             ; @E1000_CTRL_SLU
	.comm	_E1000_CTRL_FRCSPD,4,2          ; @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ; @E1000_CTRL_FRCDPX
	.comm	_E1000_82580_PHY_POWER_MGMT,4,2 ; @E1000_82580_PHY_POWER_MGMT
	.comm	_E1000_82580_PM_GO_LINKD,4,2    ; @E1000_82580_PM_GO_LINKD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error resetting the PHY.\n"

	.comm	_E1000_ERR_PHY,8,3              ; @E1000_ERR_PHY
	.no_dead_strip	_igb_setup_copper_link_82575
.subsections_via_symbols
