	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igc_init_phy_params_base
_igc_init_phy_params_base:              ## @igc_init_phy_params_base
	.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, %rbx
	movq	(%rdi), %rax
	movq	_igc_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_AUTONEG_ADVERTISE_SPEED_DEFAULT_2500@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$100, 8(%rbx)
	movq	_IGC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	_IGC_STATUS_FUNC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_IGC_STATUS_FUNC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 40(%rbx)
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_9
LBB0_1:
	movq	_igc_phy_none@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%r14d, %r14d
LBB0_9:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_igc_get_phy_id
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_igc_check_for_copper_link
	cmpl	$128, 12(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	_igc_phy_i225@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_IGC_ERR_PHY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_igc_media_type_copper,8,3      ## @igc_media_type_copper
	.comm	_igc_phy_none,4,2               ## @igc_phy_none
	.comm	_AUTONEG_ADVERTISE_SPEED_DEFAULT_2500,4,2 ## @AUTONEG_ADVERTISE_SPEED_DEFAULT_2500
	.comm	_IGC_STATUS,4,2                 ## @IGC_STATUS
	.comm	_IGC_STATUS_FUNC_MASK,4,2       ## @IGC_STATUS_FUNC_MASK
	.comm	_IGC_STATUS_FUNC_SHIFT,4,2      ## @IGC_STATUS_FUNC_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error resetting the PHY.\n"

	.comm	_igc_phy_i225,4,2               ## @igc_phy_i225
	.comm	_IGC_ERR_PHY,8,3                ## @IGC_ERR_PHY
	.no_dead_strip	_igc_init_phy_params_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igc_init_phy_params_base
_igc_init_phy_params_base:              ; @igc_init_phy_params_base
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _igc_media_type_copper@GOTPAGE
Lloh1:
	ldr	x9, [x9, _igc_media_type_copper@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _AUTONEG_ADVERTISE_SPEED_DEFAULT_2500@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUTONEG_ADVERTISE_SPEED_DEFAULT_2500@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	w8, #100
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, _IGC_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IGC_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_rd32
Lloh9:
	adrp	x8, _IGC_STATUS_FUNC_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IGC_STATUS_FUNC_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _IGC_STATUS_FUNC_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IGC_STATUS_FUNC_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19, #40]
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	b	LBB0_5
LBB0_3:
	mov	x20, #0
Lloh17:
	adrp	x8, _igc_phy_none@GOTPAGE
Lloh18:
	ldr	x8, [x8, _igc_phy_none@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_igc_get_phy_id
	mov	x20, x0
	cbnz	x0, LBB0_5
; %bb.7:
	mov	x0, x19
	bl	_igc_check_for_copper_link
	ldr	w8, [x19, #12]
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.8:
	mov	x20, #0
Lloh19:
	adrp	x8, _igc_phy_i225@GOTPAGE
Lloh20:
	ldr	x8, [x8, _igc_phy_i225@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
Lloh21:
	adrp	x8, _IGC_ERR_PHY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IGC_ERR_PHY@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	neg	x20, x8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_igc_media_type_copper,8,3      ; @igc_media_type_copper
	.comm	_igc_phy_none,4,2               ; @igc_phy_none
	.comm	_AUTONEG_ADVERTISE_SPEED_DEFAULT_2500,4,2 ; @AUTONEG_ADVERTISE_SPEED_DEFAULT_2500
	.comm	_IGC_STATUS,4,2                 ; @IGC_STATUS
	.comm	_IGC_STATUS_FUNC_MASK,4,2       ; @IGC_STATUS_FUNC_MASK
	.comm	_IGC_STATUS_FUNC_SHIFT,4,2      ; @IGC_STATUS_FUNC_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error resetting the PHY.\n"

	.comm	_igc_phy_i225,4,2               ; @igc_phy_i225
	.comm	_IGC_ERR_PHY,8,3                ; @IGC_ERR_PHY
	.no_dead_strip	_igc_init_phy_params_base
.subsections_via_symbols
