	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_start_mac_link_82599
_ixgbe_start_mac_link_82599:            ## @ixgbe_start_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_ixgbe_verify_lesm_fw_enabled_82599
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_IXGBE_GSSR_MAC_CSR_SM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	*8(%r15)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_18
## %bb.2:
	movq	%r15, %rdi
	callq	_ixgbe_reset_pipeline_82599
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	*(%r15)
	testl	%r14d, %r14d
	jne	LBB0_5
	jmp	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	callq	_ixgbe_reset_pipeline_82599
	testl	%r14d, %r14d
	je	LBB0_3
LBB0_5:
	movq	_IXGBE_AUTOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_AUTOC_LMS_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_IXGBE_AUTOC_LMS_KX4_KX_KR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.6:
	movq	_IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	movq	_IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_9:
	movq	_IXGBE_AUTO_NEG_TIME@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_13
## %bb.10:
	xorl	%ebx, %ebx
	movq	_IXGBE_LINKS@GOTPCREL(%rip), %r13
	movq	_IXGBE_LINKS_KX_AN_COMP@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	movq	%rax, %r12
	testq	%rax, (%r14)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$100, %edi
	callq	_msleep
	incq	%rbx
	movq	_IXGBE_AUTO_NEG_TIME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_11
	jmp	LBB0_14
LBB0_13:
	xorl	%r12d, %r12d
LBB0_14:
	movq	_IXGBE_LINKS_KX_AN_COMP@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_16
LBB0_3:
	xorl	%ebx, %ebx
LBB0_17:
	movl	$50, %edi
	callq	_msleep
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_IXGBE_ERR_AUTONEG_NOT_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_dbg
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_GSSR_MAC_CSR_SM,4,2      ## @IXGBE_GSSR_MAC_CSR_SM
	.comm	_IXGBE_AUTOC,4,2                ## @IXGBE_AUTOC
	.comm	_IXGBE_AUTOC_LMS_MASK,8,3       ## @IXGBE_AUTOC_LMS_MASK
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR,8,3  ## @IXGBE_AUTOC_LMS_KX4_KX_KR
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN,8,3 ## @IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII,8,3 ## @IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII
	.comm	_IXGBE_AUTO_NEG_TIME,8,3        ## @IXGBE_AUTO_NEG_TIME
	.comm	_IXGBE_LINKS,4,2                ## @IXGBE_LINKS
	.comm	_IXGBE_LINKS_KX_AN_COMP,8,3     ## @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_start_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_start_mac_link_82599
_ixgbe_start_mac_link_82599:            ; @ixgbe_start_mac_link_82599
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_ixgbe_verify_lesm_fw_enabled_82599
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x22, _IXGBE_GSSR_MAC_CSR_SM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IXGBE_GSSR_MAC_CSR_SM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cbnz	x0, LBB0_13
; %bb.2:
	mov	x0, x19
	bl	_ixgbe_reset_pipeline_82599
	ldr	x8, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	cbnz	w20, LBB0_4
	b	LBB0_11
LBB0_3:
	mov	x0, x19
	bl	_ixgbe_reset_pipeline_82599
	cbz	w20, LBB0_11
LBB0_4:
Lloh2:
	adrp	x8, _IXGBE_AUTOC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_AUTOC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh5:
	adrp	x8, _IXGBE_AUTOC_LMS_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXGBE_AUTOC_LMS_MASK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh8:
	adrp	x9, _IXGBE_AUTOC_LMS_KX4_KX_KR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IXGBE_AUTOC_LMS_KX4_KX_KR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII@GOTPAGE
Lloh15:
	ldr	x11, [x11, _IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_11
; %bb.5:
Lloh17:
	adrp	x22, _IXGBE_AUTO_NEG_TIME@GOTPAGE
Lloh18:
	ldr	x22, [x22, _IXGBE_AUTO_NEG_TIME@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh19:
	adrp	x21, _IXGBE_LINKS_KX_AN_COMP@GOTPAGE
Lloh20:
	ldr	x21, [x21, _IXGBE_LINKS_KX_AN_COMP@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x23, #0
Lloh21:
	adrp	x24, _IXGBE_LINKS@GOTPAGE
Lloh22:
	ldr	x24, [x24, _IXGBE_LINKS@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	mov	x20, x0
	ldr	x8, [x21]
	tst	x8, x0
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #100
	bl	_msleep
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_7
	b	LBB0_10
LBB0_9:
	mov	x20, #0
LBB0_10:
	ldr	x8, [x21]
	tst	x8, x20
	b.eq	LBB0_14
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	w0, #50
	bl	_msleep
LBB0_13:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh23:
	adrp	x8, _IXGBE_ERR_AUTONEG_NOT_COMPLETE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IXGBE_ERR_AUTONEG_NOT_COMPLETE@GOTPAGEOFF]
Lloh25:
	ldr	x21, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	b	LBB0_12
	.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 AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_GSSR_MAC_CSR_SM,4,2      ; @IXGBE_GSSR_MAC_CSR_SM
	.comm	_IXGBE_AUTOC,4,2                ; @IXGBE_AUTOC
	.comm	_IXGBE_AUTOC_LMS_MASK,8,3       ; @IXGBE_AUTOC_LMS_MASK
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR,8,3  ; @IXGBE_AUTOC_LMS_KX4_KX_KR
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN,8,3 ; @IXGBE_AUTOC_LMS_KX4_KX_KR_1G_AN
	.comm	_IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII,8,3 ; @IXGBE_AUTOC_LMS_KX4_KX_KR_SGMII
	.comm	_IXGBE_AUTO_NEG_TIME,8,3        ; @IXGBE_AUTO_NEG_TIME
	.comm	_IXGBE_LINKS,4,2                ; @IXGBE_LINKS
	.comm	_IXGBE_LINKS_KX_AN_COMP,8,3     ; @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_start_mac_link_82599
.subsections_via_symbols
