	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_copper_link_setup_m88      ## -- Begin function igb_copper_link_setup_m88
	.p2align	4, 0x90
_igb_copper_link_setup_m88:             ## @igb_copper_link_setup_m88
	.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, 40(%rdi)
	je	LBB0_2
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%rdi, %r14
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	*32(%rdi)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movq	_M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %ecx
	orl	(%rax), %ecx
	movq	_M88E1000_PSCR_AUTO_X_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	notl	%eax
	andl	%ecx, %eax
	movl	(%r14), %esi
	cmpl	$3, %esi
	je	LBB0_7
## %bb.4:
	cmpl	$2, %esi
	je	LBB0_8
## %bb.5:
	cmpl	$1, %esi
	jne	LBB0_9
## %bb.6:
	movq	_M88E1000_PSCR_MDI_MANUAL_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_10
LBB0_7:
	movq	_M88E1000_PSCR_AUTO_X_1000T@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_10
LBB0_8:
	movq	_M88E1000_PSCR_MDIX_MANUAL_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_10
LBB0_9:
	orl	%ecx, %edx
	movl	%edx, %eax
LBB0_10:
	movq	_M88E1000_PSCR_POLARITY_REVERSAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, -28(%rbp)
	cmpl	$1, 4(%r14)
	jne	LBB0_12
## %bb.11:
	orl	%ecx, %eax
	movl	%eax, -28(%rbp)
	movl	%eax, %edx
LBB0_12:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	*24(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	8(%r14), %rax
	movq	_E1000_REVISION_4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_21
## %bb.15:
	movq	_M88E1000_EXT_PHY_SPEC_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	*32(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.16:
	movq	_M88E1000_EPSCR_TX_CLK_25@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %edx
	orl	(%rax), %edx
	movq	8(%r14), %rax
	movq	_E1000_REVISION_2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.17:
	movq	16(%r14), %rax
	movq	_M88E1111_I_PHY_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.18:
	movq	_M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	movq	_M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_20
LBB0_19:
	movq	_M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK@GOTPCREL(%rip), %rax
	movq	_M88E1000_EPSCR_SLAVE_DOWNSHIFT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %edx
	movq	_M88E1000_EPSCR_MASTER_DOWNSHIFT_1X@GOTPCREL(%rip), %rax
	movq	_M88E1000_EPSCR_SLAVE_DOWNSHIFT_1X@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
LBB0_20:
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	*24(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
LBB0_21:
	movq	%r14, %rdi
	callq	_igb_phy_sw_reset
	testq	%rax, %rax
	je	LBB0_1
## %bb.22:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ## @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_ASSERT_CRS_ON_TX,4,2 ## @M88E1000_PSCR_ASSERT_CRS_ON_TX
	.comm	_M88E1000_PSCR_AUTO_X_MODE,4,2  ## @M88E1000_PSCR_AUTO_X_MODE
	.comm	_M88E1000_PSCR_MDI_MANUAL_MODE,4,2 ## @M88E1000_PSCR_MDI_MANUAL_MODE
	.comm	_M88E1000_PSCR_MDIX_MANUAL_MODE,4,2 ## @M88E1000_PSCR_MDIX_MANUAL_MODE
	.comm	_M88E1000_PSCR_AUTO_X_1000T,4,2 ## @M88E1000_PSCR_AUTO_X_1000T
	.comm	_M88E1000_PSCR_POLARITY_REVERSAL,4,2 ## @M88E1000_PSCR_POLARITY_REVERSAL
	.comm	_E1000_REVISION_4,8,3           ## @E1000_REVISION_4
	.comm	_M88E1000_EXT_PHY_SPEC_CTRL,4,2 ## @M88E1000_EXT_PHY_SPEC_CTRL
	.comm	_M88E1000_EPSCR_TX_CLK_25,4,2   ## @M88E1000_EPSCR_TX_CLK_25
	.comm	_E1000_REVISION_2,8,3           ## @E1000_REVISION_2
	.comm	_M88E1111_I_PHY_ID,8,3          ## @M88E1111_I_PHY_ID
	.comm	_M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK,4,2 ## @M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK
	.comm	_M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X,4,2 ## @M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X
	.comm	_M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK,4,2 ## @M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK
	.comm	_M88E1000_EPSCR_SLAVE_DOWNSHIFT_MASK,4,2 ## @M88E1000_EPSCR_SLAVE_DOWNSHIFT_MASK
	.comm	_M88E1000_EPSCR_MASTER_DOWNSHIFT_1X,4,2 ## @M88E1000_EPSCR_MASTER_DOWNSHIFT_1X
	.comm	_M88E1000_EPSCR_SLAVE_DOWNSHIFT_1X,4,2 ## @M88E1000_EPSCR_SLAVE_DOWNSHIFT_1X
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error committing the PHY changes\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_copper_link_setup_m88      ; -- Begin function igb_copper_link_setup_m88
	.p2align	2
_igb_copper_link_setup_m88:             ; @igb_copper_link_setup_m88
	.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, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_14
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x21, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_14
; %bb.3:
Lloh2:
	adrp	x8, _M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w9, w9, w8
Lloh5:
	adrp	x8, _M88E1000_PSCR_AUTO_X_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M88E1000_PSCR_AUTO_X_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
	bic	w8, w9, w10
	ldr	w11, [x19]
	cmp	w11, #3
	b.eq	LBB0_7
; %bb.4:
	cmp	w11, #2
	b.eq	LBB0_8
; %bb.5:
	cmp	w11, #1
	b.ne	LBB0_10
; %bb.6:
Lloh8:
	adrp	x9, _M88E1000_PSCR_MDI_MANUAL_MODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M88E1000_PSCR_MDI_MANUAL_MODE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x9, _M88E1000_PSCR_AUTO_X_1000T@GOTPAGE
Lloh11:
	ldr	x9, [x9, _M88E1000_PSCR_AUTO_X_1000T@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x9, _M88E1000_PSCR_MDIX_MANUAL_MODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _M88E1000_PSCR_MDIX_MANUAL_MODE@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_11
LBB0_10:
	orr	w8, w10, w9
LBB0_11:
Lloh14:
	adrp	x9, _M88E1000_PSCR_POLARITY_REVERSAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _M88E1000_PSCR_POLARITY_REVERSAL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w10, [x19, #4]
	cmp	w10, #1
	b.ne	LBB0_13
; %bb.12:
	orr	w2, w8, w9
	str	w2, [sp, #12]
LBB0_13:
	ldr	x8, [x19, #24]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbz	x0, LBB0_15
LBB0_14:
	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_15:
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _E1000_REVISION_4@GOTPAGE
Lloh18:
	ldr	x9, [x9, _E1000_REVISION_4@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_22
; %bb.16:
	ldr	x8, [x19, #32]
Lloh20:
	adrp	x21, _M88E1000_EXT_PHY_SPEC_CTRL@GOTPAGE
Lloh21:
	ldr	x21, [x21, _M88E1000_EXT_PHY_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_14
; %bb.17:
Lloh22:
	adrp	x8, _M88E1000_EPSCR_TX_CLK_25@GOTPAGE
Lloh23:
	ldr	x8, [x8, _M88E1000_EPSCR_TX_CLK_25@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	ldr	x9, [x19, #8]
Lloh25:
	adrp	x10, _E1000_REVISION_2@GOTPAGE
Lloh26:
	ldr	x10, [x10, _E1000_REVISION_2@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_20
; %bb.18:
	ldr	x9, [x19, #16]
Lloh28:
	adrp	x10, _M88E1111_I_PHY_ID@GOTPAGE
Lloh29:
	ldr	x10, [x10, _M88E1111_I_PHY_ID@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_20
; %bb.19:
Lloh31:
	adrp	x9, _M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh34:
	adrp	x9, _M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X@GOTPAGE
Lloh35:
	ldr	x9, [x9, _M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_21
LBB0_20:
Lloh37:
	adrp	x9, _M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK@GOTPAGE
Lloh38:
	ldr	x9, [x9, _M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK@GOTPAGEOFF]
Lloh39:
	adrp	x10, _M88E1000_EPSCR_SLAVE_DOWNSHIFT_MASK@GOTPAGE
Lloh40:
	ldr	x10, [x10, _M88E1000_EPSCR_SLAVE_DOWNSHIFT_MASK@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
Lloh43:
	adrp	x9, _M88E1000_EPSCR_MASTER_DOWNSHIFT_1X@GOTPAGE
Lloh44:
	ldr	x9, [x9, _M88E1000_EPSCR_MASTER_DOWNSHIFT_1X@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
Lloh46:
	adrp	x10, _M88E1000_EPSCR_SLAVE_DOWNSHIFT_1X@GOTPAGE
Lloh47:
	ldr	x10, [x10, _M88E1000_EPSCR_SLAVE_DOWNSHIFT_1X@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w2, w8, w10
LBB0_21:
	str	w2, [sp, #12]
	ldr	x8, [x19, #24]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_14
LBB0_22:
	mov	x0, x19
	bl	_igb_phy_sw_reset
	mov	x20, x0
	cbz	x0, LBB0_14
; %bb.23:
Lloh49:
	adrp	x0, l_.str@PAGE
Lloh50:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh41
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ; @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_ASSERT_CRS_ON_TX,4,2 ; @M88E1000_PSCR_ASSERT_CRS_ON_TX
	.comm	_M88E1000_PSCR_AUTO_X_MODE,4,2  ; @M88E1000_PSCR_AUTO_X_MODE
	.comm	_M88E1000_PSCR_MDI_MANUAL_MODE,4,2 ; @M88E1000_PSCR_MDI_MANUAL_MODE
	.comm	_M88E1000_PSCR_MDIX_MANUAL_MODE,4,2 ; @M88E1000_PSCR_MDIX_MANUAL_MODE
	.comm	_M88E1000_PSCR_AUTO_X_1000T,4,2 ; @M88E1000_PSCR_AUTO_X_1000T
	.comm	_M88E1000_PSCR_POLARITY_REVERSAL,4,2 ; @M88E1000_PSCR_POLARITY_REVERSAL
	.comm	_E1000_REVISION_4,8,3           ; @E1000_REVISION_4
	.comm	_M88E1000_EXT_PHY_SPEC_CTRL,4,2 ; @M88E1000_EXT_PHY_SPEC_CTRL
	.comm	_M88E1000_EPSCR_TX_CLK_25,4,2   ; @M88E1000_EPSCR_TX_CLK_25
	.comm	_E1000_REVISION_2,8,3           ; @E1000_REVISION_2
	.comm	_M88E1111_I_PHY_ID,8,3          ; @M88E1111_I_PHY_ID
	.comm	_M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK,4,2 ; @M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK
	.comm	_M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X,4,2 ; @M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X
	.comm	_M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK,4,2 ; @M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK
	.comm	_M88E1000_EPSCR_SLAVE_DOWNSHIFT_MASK,4,2 ; @M88E1000_EPSCR_SLAVE_DOWNSHIFT_MASK
	.comm	_M88E1000_EPSCR_MASTER_DOWNSHIFT_1X,4,2 ; @M88E1000_EPSCR_MASTER_DOWNSHIFT_1X
	.comm	_M88E1000_EPSCR_SLAVE_DOWNSHIFT_1X,4,2 ; @M88E1000_EPSCR_SLAVE_DOWNSHIFT_1X
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error committing the PHY changes\n"

.subsections_via_symbols
