	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_setup_mac_link_82599
_ixgbe_setup_mac_link_82599:            ## @ixgbe_setup_mac_link_82599
	.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, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	_IXGBE_AUTOC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IXGBE_READ_REG
	movl	%eax, %r15d
	movq	_IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_IXGBE_LINK_SPEED_UNKNOWN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	callq	*8(%r12)
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_49
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	andl	-56(%rbp), %r13d
	cmpl	(%rbx), %r13d
	jne	LBB0_3
## %bb.2:
	movq	_IXGBE_ERR_LINK_SETUP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_49
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, 32(%rdi)
	je	LBB0_5
## %bb.4:
	movl	(%rdi), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_IXGBE_AUTOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IXGBE_READ_REG
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
LBB0_6:
	movl	4(%rdi), %r8d
	movq	_IXGBE_AUTOC_LMS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %eax
	andl	%ebx, %eax
	movq	_IXGBE_AUTOC_LMS_KX4_KX_KR@GOTPCREL(%rip), %rsi
	movq	_IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN@GOTPCREL(%rip), %rdx
	movq	_IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII@GOTPCREL(%rip), %r14
	cmpl	(%rsi), %eax
	je	LBB0_18
## %bb.7:
	cmpl	(%rdx), %eax
	je	LBB0_18
## %bb.8:
	cmpl	(%r14), %eax
	je	LBB0_18
## %bb.9:
	movq	_IXGBE_AUTOC_1G_PMA_PMD_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	movq	_IXGBE_AUTOC_1G_SFI@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	cmpl	%r9d, %edx
	jne	LBB0_12
## %bb.10:
	movq	_IXGBE_AUTOC_LMS_1G_LINK_NO_AN@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	je	LBB0_24
## %bb.11:
	movq	_IXGBE_AUTOC_LMS_1G_AN@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	je	LBB0_24
LBB0_12:
	movq	_IXGBE_AUTOC2_10G_SFI@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r15d
	jne	LBB0_29
## %bb.13:
	movq	_IXGBE_AUTOC_LMS_10G_SERIAL@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_29
## %bb.14:
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r13d
	jne	LBB0_29
## %bb.15:
	cmpl	%r9d, %edx
	jne	LBB0_29
## %bb.16:
	notl	%ecx
	andl	%ecx, %ebx
	cmpl	$0, -52(%rbp)
	je	LBB0_27
## %bb.17:
	movq	_IXGBE_AUTOC_LMS_1G_AN@GOTPCREL(%rip), %rcx
	jmp	LBB0_28
LBB0_18:
	movq	_IXGBE_AUTOC_KX4_KX_SUPP_MASK@GOTPCREL(%rip), %rcx
	movq	_IXGBE_AUTOC_KR_SUPP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	(%rcx), %ecx
	orl	%r9d, %ecx
	notl	%ecx
	andl	%ebx, %ecx
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rsi
	testl	%r13d, (%rsi)
	je	LBB0_21
## %bb.19:
	movq	_IXGBE_AUTOC_KX4_SUPP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edx
	movl	%edx, %esi
	andl	%ebx, %esi
	cmovnel	%edx, %esi
	orl	%esi, %ecx
	testl	%ebx, %r9d
	je	LBB0_21
## %bb.20:
	xorl	%esi, %esi
	cmpl	$0, 40(%rdi)
	cmovel	%r9d, %esi
	orl	%esi, %ecx
LBB0_21:
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rdx
	testl	%r13d, (%rdx)
	je	LBB0_23
## %bb.22:
	movq	_IXGBE_AUTOC_KX_SUPP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_23:
	movl	%ecx, %ebx
	jmp	LBB0_29
LBB0_24:
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r13d
	jne	LBB0_29
## %bb.25:
	movq	_IXGBE_AUTOC2_10G_SFI@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r15d
	jne	LBB0_29
## %bb.26:
	notl	%ecx
	andl	%ecx, %ebx
	movq	_IXGBE_AUTOC_LMS_10G_SERIAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_28
LBB0_27:
	movq	_IXGBE_AUTOC_LMS_1G_LINK_NO_AN@GOTPCREL(%rip), %rcx
LBB0_28:
	orl	(%rcx), %ebx
LBB0_29:
	cmpl	%r8d, %ebx
	jne	LBB0_31
## %bb.30:
	xorl	%r14d, %r14d
	jmp	LBB0_49
LBB0_31:
	movl	%eax, %r15d
	movq	%rdi, %r13
	callq	_ixgbe_verify_lesm_fw_enabled_82599
	testq	%rax, %rax
	je	LBB0_34
## %bb.32:
	movq	_IXGBE_GSSR_MAC_CSR_SM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	*16(%r13)
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_49
## %bb.33:
	movq	_IXGBE_AUTOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_IXGBE_WRITE_REG
	movl	%ebx, 4(%r13)
	movq	%r13, %rdi
	callq	_ixgbe_reset_pipeline_82599
	movq	_IXGBE_GSSR_MAC_CSR_SM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	*24(%r13)
	movq	_IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII@GOTPCREL(%rip), %r14
	jmp	LBB0_35
LBB0_34:
	movq	_IXGBE_AUTOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_IXGBE_WRITE_REG
	movl	%ebx, 4(%r13)
	movq	%r13, %rdi
	callq	_ixgbe_reset_pipeline_82599
LBB0_35:
	testl	%r12d, %r12d
	movq	_IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN@GOTPCREL(%rip), %rcx
	movq	_IXGBE_AUTOC_LMS_KX4_KX_KR@GOTPCREL(%rip), %rdx
	je	LBB0_43
## %bb.36:
	movq	%r14, %rax
	xorl	%r14d, %r14d
	cmpl	(%rdx), %r15d
	je	LBB0_39
## %bb.37:
	cmpl	(%rcx), %r15d
	je	LBB0_39
## %bb.38:
	cmpl	(%rax), %r15d
	jne	LBB0_48
LBB0_39:
	movq	_IXGBE_AUTO_NEG_TIME@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_45
## %bb.40:
	xorl	%ebx, %ebx
	movq	_IXGBE_LINKS@GOTPCREL(%rip), %r12
	movq	_IXGBE_LINKS_KX_AN_COMP@GOTPCREL(%rip), %r15
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	callq	_IXGBE_READ_REG
	movl	%eax, %r14d
	testl	%eax, (%r15)
	jne	LBB0_44
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	movl	$100, %edi
	callq	_msleep
	incl	%ebx
	cmpl	(%r13), %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jl	LBB0_41
	jmp	LBB0_45
LBB0_44:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_45:
	movq	_IXGBE_LINKS_KX_AN_COMP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_47
LBB0_43:
	xorl	%r14d, %r14d
LBB0_48:
	movl	$50, %edi
	callq	_msleep
LBB0_49:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	movq	_IXGBE_ERR_AUTONEG_NOT_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rsi
	callq	_hw_dbg
	jmp	LBB0_48
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_AUTOC2,4,2               ## @IXGBE_AUTOC2
	.comm	_IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK,4,2 ## @IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK
	.comm	_IXGBE_LINK_SPEED_UNKNOWN,4,2   ## @IXGBE_LINK_SPEED_UNKNOWN
	.comm	_IXGBE_ERR_LINK_SETUP,8,3       ## @IXGBE_ERR_LINK_SETUP
	.comm	_IXGBE_AUTOC,4,2                ## @IXGBE_AUTOC
	.comm	_IXGBE_AUTOC_LMS_MASK,4,2       ## @IXGBE_AUTOC_LMS_MASK
	.comm	_IXGBE_AUTOC_1G_PMA_PMD_MASK,4,2 ## @IXGBE_AUTOC_1G_PMA_PMD_MASK
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR,4,2  ## @IXGBE_AUTOC_LMS_KX4_KX_KR
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN,4,2 ## @IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII,4,2 ## @IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII
	.comm	_IXGBE_AUTOC_KX4_KX_SUPP_MASK,4,2 ## @IXGBE_AUTOC_KX4_KX_SUPP_MASK
	.comm	_IXGBE_AUTOC_KR_SUPP,4,2        ## @IXGBE_AUTOC_KR_SUPP
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ## @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_AUTOC_KX4_SUPP,4,2       ## @IXGBE_AUTOC_KX4_SUPP
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ## @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_AUTOC_KX_SUPP,4,2        ## @IXGBE_AUTOC_KX_SUPP
	.comm	_IXGBE_AUTOC_1G_SFI,4,2         ## @IXGBE_AUTOC_1G_SFI
	.comm	_IXGBE_AUTOC_LMS_1G_LINK_NO_AN,4,2 ## @IXGBE_AUTOC_LMS_1G_LINK_NO_AN
	.comm	_IXGBE_AUTOC_LMS_1G_AN,4,2      ## @IXGBE_AUTOC_LMS_1G_AN
	.comm	_IXGBE_AUTOC2_10G_SFI,4,2       ## @IXGBE_AUTOC2_10G_SFI
	.comm	_IXGBE_AUTOC_LMS_10G_SERIAL,4,2 ## @IXGBE_AUTOC_LMS_10G_SERIAL
	.comm	_IXGBE_GSSR_MAC_CSR_SM,4,2      ## @IXGBE_GSSR_MAC_CSR_SM
	.comm	_IXGBE_AUTO_NEG_TIME,4,2        ## @IXGBE_AUTO_NEG_TIME
	.comm	_IXGBE_LINKS,4,2                ## @IXGBE_LINKS
	.comm	_IXGBE_LINKS_KX_AN_COMP,4,2     ## @IXGBE_LINKS_KX_AN_COMP
	.comm	_IXGBE_ERR_AUTONEG_NOT_COMPLETE,8,3 ## @IXGBE_ERR_AUTONEG_NOT_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Autoneg did not complete.\n"

	.no_dead_strip	_ixgbe_setup_mac_link_82599
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_setup_mac_link_82599
_ixgbe_setup_mac_link_82599:            ; @ixgbe_setup_mac_link_82599
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IXGBE_AUTOC2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_AUTOC2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_IXGBE_READ_REG
	mov	x22, x0
Lloh3:
	adrp	x8, _IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w28, [x8]
Lloh6:
	adrp	x24, _IXGBE_LINK_SPEED_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IXGBE_LINK_SPEED_UNKNOWN@GOTPAGEOFF]
	ldr	w8, [x24]
	stp	wzr, w8, [sp, #8]
	ldr	x8, [x19, #8]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	mov	x23, x0
	cbnz	x0, LBB0_47
; %bb.1:
	ldr	w8, [sp, #12]
	and	w23, w8, w21
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _IXGBE_ERR_LINK_SETUP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXGBE_ERR_LINK_SETUP@GOTPAGEOFF]
Lloh10:
	ldr	x23, [x8]
	b	LBB0_47
LBB0_3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w21, [x19]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _IXGBE_AUTOC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IXGBE_AUTOC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	mov	x21, x0
LBB0_6:
	ldr	w8, [x19, #4]
Lloh14:
	adrp	x9, _IXGBE_AUTOC_LMS_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IXGBE_AUTOC_LMS_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w24, w9, w21
Lloh17:
	adrp	x27, _IXGBE_AUTOC_LMS_KX4_KX_KR@GOTPAGE
Lloh18:
	ldr	x27, [x27, _IXGBE_AUTOC_LMS_KX4_KX_KR@GOTPAGEOFF]
	ldr	w10, [x27]
Lloh19:
	adrp	x26, _IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN@GOTPAGE
Lloh20:
	ldr	x26, [x26, _IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN@GOTPAGEOFF]
Lloh21:
	adrp	x25, _IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII@GOTPAGE
Lloh22:
	ldr	x25, [x25, _IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII@GOTPAGEOFF]
	cmp	w24, w10
	b.eq	LBB0_18
; %bb.7:
	ldr	w10, [x26]
	cmp	w24, w10
	b.eq	LBB0_18
; %bb.8:
	ldr	w10, [x25]
	cmp	w24, w10
	b.eq	LBB0_18
; %bb.9:
	and	w11, w28, w22
Lloh23:
	adrp	x10, _IXGBE_AUTOC_1G_PMA_PMD_MASK@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IXGBE_AUTOC_1G_PMA_PMD_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	and	w10, w10, w21
Lloh26:
	adrp	x12, _IXGBE_AUTOC_1G_SFI@GOTPAGE
Lloh27:
	ldr	x12, [x12, _IXGBE_AUTOC_1G_SFI@GOTPAGEOFF]
Lloh28:
	ldr	w12, [x12]
	cmp	w10, w12
	b.ne	LBB0_12
; %bb.10:
Lloh29:
	adrp	x13, _IXGBE_AUTOC_LMS_1G_LINK_NO_AN@GOTPAGE
Lloh30:
	ldr	x13, [x13, _IXGBE_AUTOC_LMS_1G_LINK_NO_AN@GOTPAGEOFF]
Lloh31:
	ldr	w13, [x13]
	cmp	w24, w13
	b.eq	LBB0_26
; %bb.11:
Lloh32:
	adrp	x13, _IXGBE_AUTOC_LMS_1G_AN@GOTPAGE
Lloh33:
	ldr	x13, [x13, _IXGBE_AUTOC_LMS_1G_AN@GOTPAGEOFF]
Lloh34:
	ldr	w13, [x13]
	cmp	w24, w13
	b.eq	LBB0_26
LBB0_12:
Lloh35:
	adrp	x13, _IXGBE_AUTOC2_10G_SFI@GOTPAGE
Lloh36:
	ldr	x13, [x13, _IXGBE_AUTOC2_10G_SFI@GOTPAGEOFF]
Lloh37:
	ldr	w13, [x13]
	cmp	w11, w13
	b.ne	LBB0_24
; %bb.13:
Lloh38:
	adrp	x11, _IXGBE_AUTOC_LMS_10G_SERIAL@GOTPAGE
Lloh39:
	ldr	x11, [x11, _IXGBE_AUTOC_LMS_10G_SERIAL@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	cmp	w24, w11
	b.ne	LBB0_24
; %bb.14:
Lloh41:
	adrp	x11, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh42:
	ldr	x11, [x11, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
Lloh43:
	ldr	w11, [x11]
	cmp	w23, w11
	b.ne	LBB0_24
; %bb.15:
	cmp	w10, w12
	b.ne	LBB0_24
; %bb.16:
	bic	w9, w21, w9
	ldr	w10, [sp, #8]
	cbz	w10, LBB0_29
; %bb.17:
Lloh44:
	adrp	x10, _IXGBE_AUTOC_LMS_1G_AN@GOTPAGE
Lloh45:
	ldr	x10, [x10, _IXGBE_AUTOC_LMS_1G_AN@GOTPAGEOFF]
	b	LBB0_30
LBB0_18:
Lloh46:
	adrp	x9, _IXGBE_AUTOC_KX4_KX_SUPP_MASK@GOTPAGE
Lloh47:
	ldr	x9, [x9, _IXGBE_AUTOC_KX4_KX_SUPP_MASK@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x9]
Lloh49:
	adrp	x9, _IXGBE_AUTOC_KR_SUPP@GOTPAGE
Lloh50:
	ldr	x9, [x9, _IXGBE_AUTOC_KR_SUPP@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w10, w9, w10
	bic	w10, w21, w10
Lloh52:
	adrp	x11, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh53:
	ldr	x11, [x11, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
Lloh54:
	ldr	w11, [x11]
	tst	w11, w23
	b.eq	LBB0_21
; %bb.19:
Lloh55:
	adrp	x11, _IXGBE_AUTOC_KX4_SUPP@GOTPAGE
Lloh56:
	ldr	x11, [x11, _IXGBE_AUTOC_KX4_SUPP@GOTPAGEOFF]
Lloh57:
	ldr	w11, [x11]
	tst	w11, w21
	csel	w11, wzr, w11, eq
	orr	w10, w11, w10
	tst	w9, w21
	b.eq	LBB0_21
; %bb.20:
	ldr	w11, [x19, #40]
	cmp	w11, #0
	csel	w9, w9, wzr, eq
	orr	w21, w9, w10
	b	LBB0_22
LBB0_21:
	mov	x21, x10
LBB0_22:
Lloh58:
	adrp	x9, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh59:
	ldr	x9, [x9, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_24
; %bb.23:
Lloh61:
	adrp	x9, _IXGBE_AUTOC_KX_SUPP@GOTPAGE
Lloh62:
	ldr	x9, [x9, _IXGBE_AUTOC_KX_SUPP@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w21, w9, w21
LBB0_24:
	cmp	w21, w8
	b.ne	LBB0_31
LBB0_25:
	mov	x23, #0
	b	LBB0_47
LBB0_26:
Lloh64:
	adrp	x10, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh65:
	ldr	x10, [x10, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
Lloh66:
	ldr	w10, [x10]
	cmp	w23, w10
	b.ne	LBB0_24
; %bb.27:
Lloh67:
	adrp	x10, _IXGBE_AUTOC2_10G_SFI@GOTPAGE
Lloh68:
	ldr	x10, [x10, _IXGBE_AUTOC2_10G_SFI@GOTPAGEOFF]
Lloh69:
	ldr	w10, [x10]
	cmp	w11, w10
	b.ne	LBB0_24
; %bb.28:
	bic	w9, w21, w9
Lloh70:
	adrp	x10, _IXGBE_AUTOC_LMS_10G_SERIAL@GOTPAGE
Lloh71:
	ldr	x10, [x10, _IXGBE_AUTOC_LMS_10G_SERIAL@GOTPAGEOFF]
	b	LBB0_30
LBB0_29:
Lloh72:
	adrp	x10, _IXGBE_AUTOC_LMS_1G_LINK_NO_AN@GOTPAGE
Lloh73:
	ldr	x10, [x10, _IXGBE_AUTOC_LMS_1G_LINK_NO_AN@GOTPAGEOFF]
LBB0_30:
	ldr	w10, [x10]
	orr	w21, w10, w9
	cmp	w21, w8
	b.eq	LBB0_25
LBB0_31:
	mov	x0, x19
	bl	_ixgbe_verify_lesm_fw_enabled_82599
	cbz	x0, LBB0_34
; %bb.32:
	ldr	x8, [x19, #16]
Lloh74:
	adrp	x22, _IXGBE_GSSR_MAC_CSR_SM@GOTPAGE
Lloh75:
	ldr	x22, [x22, _IXGBE_GSSR_MAC_CSR_SM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	mov	x23, x0
	cbnz	x0, LBB0_47
; %bb.33:
Lloh76:
	adrp	x8, _IXGBE_AUTOC@GOTPAGE
Lloh77:
	ldr	x8, [x8, _IXGBE_AUTOC@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_IXGBE_WRITE_REG
	str	w21, [x19, #4]
	mov	x0, x19
	bl	_ixgbe_reset_pipeline_82599
	ldr	x8, [x19, #24]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	b	LBB0_35
LBB0_34:
Lloh79:
	adrp	x8, _IXGBE_AUTOC@GOTPAGE
Lloh80:
	ldr	x8, [x8, _IXGBE_AUTOC@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_IXGBE_WRITE_REG
	str	w21, [x19, #4]
	mov	x0, x19
	bl	_ixgbe_reset_pipeline_82599
LBB0_35:
	cbz	w20, LBB0_45
; %bb.36:
	ldr	w8, [x27]
	cmp	w24, w8
	b.eq	LBB0_39
; %bb.37:
	ldr	w8, [x26]
	cmp	w24, w8
	b.eq	LBB0_39
; %bb.38:
	ldr	w8, [x25]
	cmp	w24, w8
	b.ne	LBB0_45
LBB0_39:
Lloh82:
	adrp	x22, _IXGBE_AUTO_NEG_TIME@GOTPAGE
Lloh83:
	ldr	x22, [x22, _IXGBE_AUTO_NEG_TIME@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh84:
	adrp	x21, _IXGBE_LINKS_KX_AN_COMP@GOTPAGE
Lloh85:
	ldr	x21, [x21, _IXGBE_LINKS_KX_AN_COMP@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_43
; %bb.40:
	mov	w23, #0
Lloh86:
	adrp	x24, _IXGBE_LINKS@GOTPAGE
Lloh87:
	ldr	x24, [x24, _IXGBE_LINKS@GOTPAGEOFF]
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	mov	x20, x0
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_44
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	mov	w0, #100
	bl	_msleep
	add	w23, w23, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.lt	LBB0_41
	b	LBB0_44
LBB0_43:
	mov	w20, #0
LBB0_44:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_48
LBB0_45:
	mov	x23, #0
LBB0_46:
	mov	w0, #50
	bl	_msleep
LBB0_47:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_48:
Lloh88:
	adrp	x8, _IXGBE_ERR_AUTONEG_NOT_COMPLETE@GOTPAGE
Lloh89:
	ldr	x8, [x8, _IXGBE_ERR_AUTONEG_NOT_COMPLETE@GOTPAGEOFF]
Lloh90:
	ldr	x23, [x8]
Lloh91:
	adrp	x1, l_.str@PAGE
Lloh92:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	b	LBB0_46
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_AUTOC2,4,2               ; @IXGBE_AUTOC2
	.comm	_IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK,4,2 ; @IXGBE_AUTOC2_10G_SERIAL_PMA_PMD_MASK
	.comm	_IXGBE_LINK_SPEED_UNKNOWN,4,2   ; @IXGBE_LINK_SPEED_UNKNOWN
	.comm	_IXGBE_ERR_LINK_SETUP,8,3       ; @IXGBE_ERR_LINK_SETUP
	.comm	_IXGBE_AUTOC,4,2                ; @IXGBE_AUTOC
	.comm	_IXGBE_AUTOC_LMS_MASK,4,2       ; @IXGBE_AUTOC_LMS_MASK
	.comm	_IXGBE_AUTOC_1G_PMA_PMD_MASK,4,2 ; @IXGBE_AUTOC_1G_PMA_PMD_MASK
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR,4,2  ; @IXGBE_AUTOC_LMS_KX4_KX_KR
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN,4,2 ; @IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII,4,2 ; @IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII
	.comm	_IXGBE_AUTOC_KX4_KX_SUPP_MASK,4,2 ; @IXGBE_AUTOC_KX4_KX_SUPP_MASK
	.comm	_IXGBE_AUTOC_KR_SUPP,4,2        ; @IXGBE_AUTOC_KR_SUPP
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ; @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_AUTOC_KX4_SUPP,4,2       ; @IXGBE_AUTOC_KX4_SUPP
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ; @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_AUTOC_KX_SUPP,4,2        ; @IXGBE_AUTOC_KX_SUPP
	.comm	_IXGBE_AUTOC_1G_SFI,4,2         ; @IXGBE_AUTOC_1G_SFI
	.comm	_IXGBE_AUTOC_LMS_1G_LINK_NO_AN,4,2 ; @IXGBE_AUTOC_LMS_1G_LINK_NO_AN
	.comm	_IXGBE_AUTOC_LMS_1G_AN,4,2      ; @IXGBE_AUTOC_LMS_1G_AN
	.comm	_IXGBE_AUTOC2_10G_SFI,4,2       ; @IXGBE_AUTOC2_10G_SFI
	.comm	_IXGBE_AUTOC_LMS_10G_SERIAL,4,2 ; @IXGBE_AUTOC_LMS_10G_SERIAL
	.comm	_IXGBE_GSSR_MAC_CSR_SM,4,2      ; @IXGBE_GSSR_MAC_CSR_SM
	.comm	_IXGBE_AUTO_NEG_TIME,4,2        ; @IXGBE_AUTO_NEG_TIME
	.comm	_IXGBE_LINKS,4,2                ; @IXGBE_LINKS
	.comm	_IXGBE_LINKS_KX_AN_COMP,4,2     ; @IXGBE_LINKS_KX_AN_COMP
	.comm	_IXGBE_ERR_AUTONEG_NOT_COMPLETE,8,3 ; @IXGBE_ERR_AUTONEG_NOT_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Autoneg did not complete.\n"

	.no_dead_strip	_ixgbe_setup_mac_link_82599
.subsections_via_symbols
