	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_setup_copper_link          ## -- Begin function igb_setup_copper_link
	.p2align	4, 0x90
_igb_setup_copper_link:                 ## @igb_setup_copper_link
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_igb_copper_link_autoneg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	movq	%r14, %rdi
	callq	*(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_8
LBB0_2:
	movq	_COPPER_LINK_UP_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rcx
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_igb_phy_has_link
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	cmpl	$0, -20(%rbp)
	je	LBB0_7
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_hw_dbg
	movq	%r14, %rdi
	callq	_igb_config_collision_dist
	movq	%r14, %rdi
	callq	_igb_config_fc_after_link_up
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	callq	_hw_dbg
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Forcing Speed and Duplex\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error Forcing Speed and Duplex\n"

	.comm	_COPPER_LINK_UP_LIMIT,4,2       ## @COPPER_LINK_UP_LIMIT
L_.str.2:                               ## @.str.2
	.asciz	"Valid link established!!!\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to establish link!!!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_setup_copper_link          ; -- Begin function igb_setup_copper_link
	.p2align	2
_igb_setup_copper_link:                 ; @igb_setup_copper_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_igb_copper_link_autoneg
	mov	x20, x0
	cbnz	x0, LBB0_8
	b	LBB0_4
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _COPPER_LINK_UP_LIMIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COPPER_LINK_UP_LIMIT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #10
	bl	_igb_phy_has_link
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.5:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.6:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hw_dbg
	mov	x0, x19
	bl	_igb_config_collision_dist
	mov	x0, x19
	bl	_igb_config_fc_after_link_up
	mov	x20, x0
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hw_dbg
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Forcing Speed and Duplex\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error Forcing Speed and Duplex\n"

	.comm	_COPPER_LINK_UP_LIMIT,4,2       ; @COPPER_LINK_UP_LIMIT
l_.str.2:                               ; @.str.2
	.asciz	"Valid link established!!!\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to establish link!!!\n"

.subsections_via_symbols
