	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_setup_ixfi_x550em
_ixgbe_setup_ixfi_x550em:               ## @ixgbe_setup_ixfi_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
	movq	(%rdi), %rax
	movq	_ixgbe_mac_X550EM_x@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%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	-36(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ixgbe_read_iosf_sb_reg_x550
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	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	-36(%rbp), %eax
	movl	(%r14), %ecx
	cmpl	$129, %ecx
	je	LBB0_4
## %bb.5:
	cmpl	$128, %ecx
	jne	LBB0_1
## %bb.6:
	movq	_IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_IXGBE_ERR_LINK_SETUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_10G@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %eax
	movl	%eax, -36(%rbp)
	movl	8(%rbx), %edi
	callq	_IXGBE_KRM_LINK_CTRL_1
	movl	(%r12), %edx
	movl	-36(%rbp), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ixgbe_write_iosf_sb_reg_x550
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_ixgbe_setup_ixfi_x550em_x
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_ixgbe_restart_an_internal_phy_x550em
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ixgbe_mac_X550EM_x,8,3         ## @ixgbe_mac_X550EM_x
	.comm	_IXGBE_ERR_LINK_SETUP,8,3       ## @IXGBE_ERR_LINK_SETUP
	.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_FORCE_SPEED_10G,4,2 ## @IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_10G
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G,4,2 ## @IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G
	.no_dead_strip	_ixgbe_setup_ixfi_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_ixfi_x550em
_ixgbe_setup_ixfi_x550em:               ; @ixgbe_setup_ixfi_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
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _ixgbe_mac_X550EM_x@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ixgbe_mac_X550EM_x@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_IXGBE_KRM_LINK_CTRL_1
	mov	x1, x0
Lloh2:
	adrp	x22, _IXGBE_SB_IOSF_TARGET_KR_PHY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IXGBE_SB_IOSF_TARGET_KR_PHY@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x19
	bl	_ixgbe_read_iosf_sb_reg_x550
	cbnz	x0, LBB0_6
; %bb.2:
Lloh4:
	adrp	x8, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
Lloh7:
	adrp	x10, _IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_MASK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	ldr	w11, [x20]
	cmp	w11, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w11, #128
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x11, _IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G@GOTPAGE
Lloh11:
	ldr	x11, [x11, _IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x8, _IXGBE_ERR_LINK_SETUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IXGBE_ERR_LINK_SETUP@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
LBB0_6:
	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_7:
Lloh15:
	adrp	x11, _IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_10G@GOTPAGE
Lloh16:
	ldr	x11, [x11, _IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_10G@GOTPAGEOFF]
LBB0_8:
	orr	w8, w8, w10
	bic	w8, w9, w8
	ldr	w9, [x11]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w0, [x19, #8]
	bl	_IXGBE_KRM_LINK_CTRL_1
	mov	x1, x0
	ldr	w2, [x22]
	ldr	w3, [sp, #12]
	mov	x0, x19
	bl	_ixgbe_write_iosf_sb_reg_x550
	cbnz	x0, LBB0_6
; %bb.9:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_ixgbe_setup_ixfi_x550em_x
	cbnz	x0, LBB0_6
LBB0_11:
	mov	x0, x19
	bl	_ixgbe_restart_an_internal_phy_x550em
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ixgbe_mac_X550EM_x,8,3         ; @ixgbe_mac_X550EM_x
	.comm	_IXGBE_ERR_LINK_SETUP,8,3       ; @IXGBE_ERR_LINK_SETUP
	.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_FORCE_SPEED_10G,4,2 ; @IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_10G
	.comm	_IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G,4,2 ; @IXGBE_KRM_LINK_CTRL_1_TETH_FORCE_SPEED_1G
	.no_dead_strip	_ixgbe_setup_ixfi_x550em
.subsections_via_symbols
