	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_start_mac_link_82598
_ixgbe_start_mac_link_82598:            ## @ixgbe_start_mac_link_82598
	.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, %r12d
	movq	%rdi, %r15
	movq	_IXGBE_AUTOC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_IXGBE_READ_REG
	movq	%rax, %rbx
	movq	_IXGBE_AUTOC_AN_RESTART@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.1:
	movq	_IXGBE_AUTOC_LMS_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_IXGBE_AUTOC_LMS_KX4_AN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_3
## %bb.2:
	movq	_IXGBE_AUTOC_LMS_KX4_AN_1G_AN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_10
LBB0_3:
	movq	_IXGBE_AUTO_NEG_TIME@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	movq	_IXGBE_LINKS@GOTPCREL(%rip), %r14
	movq	_IXGBE_LINKS_KX_AN_COMP@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	movq	%rax, %r13
	testq	%rax, (%r12)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$100, %edi
	callq	_msleep
	incq	%rbx
	movq	_IXGBE_AUTO_NEG_TIME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_6
	jmp	LBB0_8
LBB0_4:
	xorl	%r13d, %r13d
LBB0_8:
	movq	_IXGBE_LINKS_KX_AN_COMP@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	movl	$0, %r14d
	jne	LBB0_10
## %bb.9:
	movq	_IXGBE_ERR_AUTONEG_NOT_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_dbg
LBB0_10:
	movl	$50, %edi
	callq	_msleep
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_AUTOC,4,2                ## @IXGBE_AUTOC
	.comm	_IXGBE_AUTOC_AN_RESTART,8,3     ## @IXGBE_AUTOC_AN_RESTART
	.comm	_IXGBE_AUTOC_LMS_MASK,8,3       ## @IXGBE_AUTOC_LMS_MASK
	.comm	_IXGBE_AUTOC_LMS_KX4_AN,8,3     ## @IXGBE_AUTOC_LMS_KX4_AN
	.comm	_IXGBE_AUTOC_LMS_KX4_AN_1G_AN,8,3 ## @IXGBE_AUTOC_LMS_KX4_AN_1G_AN
	.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,4,2 ## @IXGBE_ERR_AUTONEG_NOT_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Autonegotiation did not complete.\n"

	.no_dead_strip	_ixgbe_start_mac_link_82598
.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_82598
_ixgbe_start_mac_link_82598:            ; @ixgbe_start_mac_link_82598
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _IXGBE_AUTOC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IXGBE_AUTOC@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_IXGBE_READ_REG
Lloh2:
	adrp	x8, _IXGBE_AUTOC_AN_RESTART@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_AUTOC_AN_RESTART@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	orr	x20, x8, x0
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_IXGBE_WRITE_REG
	cbz	w21, LBB0_8
; %bb.1:
Lloh5:
	adrp	x8, _IXGBE_AUTOC_LMS_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXGBE_AUTOC_LMS_MASK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	and	x8, x8, x20
Lloh8:
	adrp	x9, _IXGBE_AUTOC_LMS_KX4_AN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IXGBE_AUTOC_LMS_KX4_AN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _IXGBE_AUTOC_LMS_KX4_AN_1G_AN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IXGBE_AUTOC_LMS_KX4_AN_1G_AN@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.2:
Lloh14:
	adrp	x22, _IXGBE_AUTO_NEG_TIME@GOTPAGE
Lloh15:
	ldr	x22, [x22, _IXGBE_AUTO_NEG_TIME@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh16:
	adrp	x21, _IXGBE_LINKS_KX_AN_COMP@GOTPAGE
Lloh17:
	ldr	x21, [x21, _IXGBE_LINKS_KX_AN_COMP@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x23, #0
Lloh18:
	adrp	x24, _IXGBE_LINKS@GOTPAGE
Lloh19:
	ldr	x24, [x24, _IXGBE_LINKS@GOTPAGEOFF]
LBB0_4:                                 ; =>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_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #100
	bl	_msleep
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	ldr	x8, [x21]
	tst	x8, x20
	b.eq	LBB0_10
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	w0, #50
	bl	_msleep
	mov	x0, x20
	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_10:
Lloh20:
	adrp	x8, _IXGBE_ERR_AUTONEG_NOT_COMPLETE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IXGBE_ERR_AUTONEG_NOT_COMPLETE@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_AUTOC,4,2                ; @IXGBE_AUTOC
	.comm	_IXGBE_AUTOC_AN_RESTART,8,3     ; @IXGBE_AUTOC_AN_RESTART
	.comm	_IXGBE_AUTOC_LMS_MASK,8,3       ; @IXGBE_AUTOC_LMS_MASK
	.comm	_IXGBE_AUTOC_LMS_KX4_AN,8,3     ; @IXGBE_AUTOC_LMS_KX4_AN
	.comm	_IXGBE_AUTOC_LMS_KX4_AN_1G_AN,8,3 ; @IXGBE_AUTOC_LMS_KX4_AN_1G_AN
	.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,4,2 ; @IXGBE_ERR_AUTONEG_NOT_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Autonegotiation did not complete.\n"

	.no_dead_strip	_ixgbe_start_mac_link_82598
.subsections_via_symbols
