	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_setup_sgmii_fw
_ixgbe_setup_sgmii_fw:                  ## @ixgbe_setup_sgmii_fw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	24(%rdi), %rbx
	movl	8(%rdi), %edi
	callq	_IXGBE_KRM_LINK_CTRL_1
	movq	_IXGBE_SB_IOSF_TARGET_KR_PHY@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	*%rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	-44(%rbp), %eax
	movq	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_SGMII_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_CLAUSE_37_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -44(%rbp)
	movq	16(%r13), %rbx
	movl	8(%r13), %edi
	callq	_IXGBE_KRM_LINK_CTRL_1
	movl	(%r12), %edx
	movl	-44(%rbp), %ecx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	*%rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	24(%r13), %rbx
	movl	8(%r13), %edi
	callq	_IXGBE_KRM_SGMII_CTRL
	movl	(%r12), %edx
	leaq	-52(%rbp), %rcx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	*%rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	_IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_10_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_100_D@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, -52(%rbp)
	movq	16(%r13), %rbx
	movl	8(%r13), %edi
	callq	_IXGBE_KRM_SGMII_CTRL
	movl	(%r12), %edx
	movl	-52(%rbp), %ecx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	*%rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	16(%r13), %rbx
	movl	8(%r13), %edi
	callq	_IXGBE_KRM_LINK_CTRL_1
	movl	(%r12), %edx
	movl	-44(%rbp), %ecx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	*%rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	24(%r13), %rbx
	movl	8(%r13), %edi
	callq	_IXGBE_KRM_PMD_FLX_MASK_ST20
	movl	(%r12), %edx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	*%rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-48(%rbp), %eax
	movq	_IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IXGBE_KRM_PMD_FLX_MASK_ST20_AN_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movq	16(%r13), %rbx
	movl	8(%r13), %edi
	callq	_IXGBE_KRM_PMD_FLX_MASK_ST20
	movl	(%r12), %edx
	movl	-48(%rbp), %ecx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	*%rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_ixgbe_restart_an_internal_phy_x550em
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	*(%r13)
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_SB_IOSF_TARGET_KR_PHY,4,2 ## @IXGBE_SB_IOSF_TARGET_KR_PHY
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE,4,2 ## @IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_MASK,4,2 ## @IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_MASK
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_SGMII_EN,4,2 ## @IXGBE_KRM_LINK_CTRL_1_TETH_AN_SGMII_EN
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_CLAUSE_37_EN,4,2 ## @IXGBE_KRM_LINK_CTRL_1_TETH_AN_CLAUSE_37_EN
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G,4,2 ## @IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G
	.comm	_IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_10_D,4,2 ## @IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_10_D
	.comm	_IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_100_D,4,2 ## @IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_100_D
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_MASK,4,2 ## @IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_MASK
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN,4,2 ## @IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_AN_EN,4,2 ## @IXGBE_KRM_PMD_FLX_MASK_ST20_AN_EN
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN,4,2 ## @IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN,4,2 ## @IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN
	.no_dead_strip	_ixgbe_setup_sgmii_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_setup_sgmii_fw
_ixgbe_setup_sgmii_fw:                  ; @ixgbe_setup_sgmii_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0, #24]
	ldr	w0, [x0, #8]
	bl	_IXGBE_KRM_LINK_CTRL_1
	mov	x1, x0
Lloh0:
	adrp	x22, _IXGBE_SB_IOSF_TARGET_KR_PHY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IXGBE_SB_IOSF_TARGET_KR_PHY@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x21
	blr	x23
	cbnz	x0, LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
Lloh5:
	adrp	x10, _IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_MASK@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w8, w9, w8
Lloh8:
	adrp	x9, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_SGMII_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_SGMII_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_CLAUSE_37_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_CLAUSE_37_EN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh16:
	ldr	w9, [x10]
	bic	w8, w8, w9
	str	w8, [sp, #12]
	ldr	x23, [x21, #16]
	ldr	w0, [x21, #8]
	bl	_IXGBE_KRM_LINK_CTRL_1
	mov	x1, x0
	ldr	w2, [x22]
	ldr	w3, [sp, #12]
	mov	x0, x21
	blr	x23
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	x23, [x21, #24]
	ldr	w0, [x21, #8]
	bl	_IXGBE_KRM_SGMII_CTRL
	mov	x1, x0
	ldr	w2, [x22]
	add	x3, sp, #8
	mov	x0, x21
	blr	x23
	cbnz	x0, LBB0_8
; %bb.3:
Lloh17:
	adrp	x8, _IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_10_D@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_10_D@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
Lloh20:
	adrp	x10, _IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_100_D@GOTPAGE
Lloh21:
	ldr	x10, [x10, _IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_100_D@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w8, w9, w8
	str	w8, [sp, #8]
	ldr	x23, [x21, #16]
	ldr	w0, [x21, #8]
	bl	_IXGBE_KRM_SGMII_CTRL
	mov	x1, x0
	ldr	w2, [x22]
	ldr	w3, [sp, #8]
	mov	x0, x21
	blr	x23
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	x23, [x21, #16]
	ldr	w0, [x21, #8]
	bl	_IXGBE_KRM_LINK_CTRL_1
	mov	x1, x0
	ldr	w2, [x22]
	ldr	w3, [sp, #12]
	mov	x0, x21
	blr	x23
	cbnz	x0, LBB0_8
; %bb.5:
	ldr	x23, [x21, #24]
	ldr	w0, [x21, #8]
	bl	_IXGBE_KRM_PMD_FLX_MASK_ST20
	mov	x1, x0
	ldr	w2, [x22]
	add	x3, sp, #4
	mov	x0, x21
	blr	x23
	cbnz	x0, LBB0_8
; %bb.6:
Lloh23:
	adrp	x8, _IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]
Lloh26:
	adrp	x10, _IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN@GOTPAGE
Lloh27:
	ldr	x10, [x10, _IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN@GOTPAGEOFF]
	bic	w8, w9, w8
Lloh28:
	ldr	w9, [x10]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _IXGBE_KRM_PMD_FLX_MASK_ST20_AN_EN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IXGBE_KRM_PMD_FLX_MASK_ST20_AN_EN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh32:
	adrp	x9, _IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN@GOTPAGE
Lloh33:
	ldr	x9, [x9, _IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN@GOTPAGE
Lloh36:
	ldr	x10, [x10, _IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh37:
	ldr	w9, [x10]
	orr	w8, w9, w8
	str	w8, [sp, #4]
	ldr	x23, [x21, #16]
	ldr	w0, [x21, #8]
	bl	_IXGBE_KRM_PMD_FLX_MASK_ST20
	mov	x1, x0
	ldr	w2, [x22]
	ldr	w3, [sp, #4]
	mov	x0, x21
	blr	x23
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_ixgbe_restart_an_internal_phy_x550em
	ldr	x8, [x21]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_SB_IOSF_TARGET_KR_PHY,4,2 ; @IXGBE_SB_IOSF_TARGET_KR_PHY
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE,4,2 ; @IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_MASK,4,2 ; @IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_MASK
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_SGMII_EN,4,2 ; @IXGBE_KRM_LINK_CTRL_1_TETH_AN_SGMII_EN
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_CLAUSE_37_EN,4,2 ; @IXGBE_KRM_LINK_CTRL_1_TETH_AN_CLAUSE_37_EN
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G,4,2 ; @IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G
	.comm	_IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_10_D,4,2 ; @IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_10_D
	.comm	_IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_100_D,4,2 ; @IXGBE_KRM_SGMII_CTRL_MAC_TAR_FORCE_100_D
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_MASK,4,2 ; @IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_MASK
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN,4,2 ; @IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_AN_EN,4,2 ; @IXGBE_KRM_PMD_FLX_MASK_ST20_AN_EN
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN,4,2 ; @IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN,4,2 ; @IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN
	.no_dead_strip	_ixgbe_setup_sgmii_fw
.subsections_via_symbols
