	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_setup_kr_speed_x550em
_ixgbe_setup_kr_speed_x550em:           ## @ixgbe_setup_kr_speed_x550em
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	24(%rdi), %rbx
	movl	(%rdi), %edi
	callq	_IXGBE_KRM_LINK_CTRL_1
	movq	_IXGBE_SB_IOSF_TARGET_KR_PHY@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	*%rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %esi
	orl	(%rax), %esi
	movq	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	orl	%edx, %ecx
	notl	%ecx
	andl	%esi, %ecx
	movl	%ecx, -36(%rbp)
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rsi
	testl	%r14d, (%rsi)
	je	LBB0_3
## %bb.2:
	orl	%edx, %ecx
	movl	%ecx, -36(%rbp)
LBB0_3:
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rdx
	testl	%r14d, (%rdx)
	je	LBB0_5
## %bb.4:
	orl	%eax, %ecx
	movl	%ecx, -36(%rbp)
LBB0_5:
	movq	16(%r12), %rbx
	movl	(%r12), %edi
	callq	_IXGBE_KRM_LINK_CTRL_1
	movl	(%r15), %edx
	movl	-36(%rbp), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	*%rbx
	movq	8(%r12), %rax
	movq	_ixgbe_mac_x550em_a@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	24(%r12), %rbx
	movl	(%r12), %edi
	callq	_IXGBE_KRM_PMD_FLX_MASK_ST20
	movl	(%r15), %edx
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	*%rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	_IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-36(%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
	orl	(%rcx), %eax
	movq	_IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -36(%rbp)
	movq	16(%r12), %rbx
	movl	(%r12), %edi
	callq	_IXGBE_KRM_PMD_FLX_MASK_ST20
	movl	(%r15), %edx
	movl	-36(%rbp), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	*%rbx
LBB0_8:
	movq	%r12, %rdi
	callq	_ixgbe_restart_an_internal_phy_x550em
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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_AN_CAP_KR,4,2 ## @IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KR
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KX,4,2 ## @IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KX
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ## @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ## @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_ixgbe_mac_x550em_a,8,3         ## @ixgbe_mac_x550em_a
	.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_AN37_EN,4,2 ## @IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN,4,2 ## @IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN
	.no_dead_strip	_ixgbe_setup_kr_speed_x550em
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_setup_kr_speed_x550em
_ixgbe_setup_kr_speed_x550em:           ; @ixgbe_setup_kr_speed_x550em
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #24]
	ldr	w0, [x0]
	bl	_IXGBE_KRM_LINK_CTRL_1
	mov	x1, x0
Lloh0:
	adrp	x21, _IXGBE_SB_IOSF_TARGET_KR_PHY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IXGBE_SB_IOSF_TARGET_KR_PHY@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	blr	x22
	cbnz	x0, LBB0_9
; %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_AN_CAP_KR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KR@GOTPAGEOFF]
	orr	w9, w9, w8
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x8, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w11, w8, w10
	bic	w9, w9, w11
	str	w9, [sp, #12]
Lloh11:
	adrp	x11, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh12:
	ldr	x11, [x11, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	tst	w11, w20
	b.eq	LBB0_3
; %bb.2:
	orr	w9, w9, w10
	str	w9, [sp, #12]
LBB0_3:
Lloh14:
	adrp	x10, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w10, w20
	b.eq	LBB0_5
; %bb.4:
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_5:
	ldr	x20, [x19, #16]
	ldr	w0, [x19]
	bl	_IXGBE_KRM_LINK_CTRL_1
	mov	x1, x0
	ldr	w2, [x21]
	ldr	w3, [sp, #12]
	mov	x0, x19
	blr	x20
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _ixgbe_mac_x550em_a@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ixgbe_mac_x550em_a@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	x20, [x19, #24]
	ldr	w0, [x19]
	bl	_IXGBE_KRM_PMD_FLX_MASK_ST20
	mov	x1, x0
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	blr	x20
	cbnz	x0, LBB0_9
; %bb.7:
Lloh20:
	adrp	x8, _IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
Lloh23:
	adrp	x10, _IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IXGBE_KRM_PMD_FLX_MASK_ST20_SPEED_AN@GOTPAGEOFF]
	bic	w8, w9, w8
Lloh25:
	ldr	w9, [x10]
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _IXGBE_KRM_PMD_FLX_MASK_ST20_AN_EN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IXGBE_KRM_PMD_FLX_MASK_ST20_AN_EN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN@GOTPAGE
Lloh33:
	ldr	x10, [x10, _IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [sp, #12]
	ldr	x20, [x19, #16]
	ldr	w0, [x19]
	bl	_IXGBE_KRM_PMD_FLX_MASK_ST20
	mov	x1, x0
	ldr	w2, [x21]
	ldr	w3, [sp, #12]
	mov	x0, x19
	blr	x20
LBB0_8:
	mov	x0, x19
	bl	_ixgbe_restart_an_internal_phy_x550em
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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_AN_CAP_KR,4,2 ; @IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KR
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KX,4,2 ; @IXGBE_KRM_LINK_CTRL_1_TETH_AN_CAP_KX
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ; @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ; @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_ixgbe_mac_x550em_a,8,3         ; @ixgbe_mac_x550em_a
	.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_AN37_EN,4,2 ; @IXGBE_KRM_PMD_FLX_MASK_ST20_AN37_EN
	.comm	_IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN,4,2 ; @IXGBE_KRM_PMD_FLX_MASK_ST20_SGMII_EN
	.no_dead_strip	_ixgbe_setup_kr_speed_x550em
.subsections_via_symbols
