	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_setup_mac_link_82598
_ixgbe_setup_mac_link_82598:            ## @ixgbe_setup_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
	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, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	$0, -52(%rbp)
	movq	_IXGBE_LINK_SPEED_UNKNOWN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	movq	_IXGBE_AUTOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IXGBE_READ_REG
	movq	%rax, %r12
	movq	_IXGBE_AUTOC_LMS_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	-44(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ixgbe_get_link_capabilities_82598
	andl	-44(%rbp), %ebx
	cmpl	(%r14), %ebx
	jne	LBB0_2
## %bb.1:
	movq	_IXGBE_ERR_LINK_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_2:
	andq	%r12, %r13
	movq	_IXGBE_AUTOC_LMS_KX4_AN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	_IXGBE_AUTOC@GOTPCREL(%rip), %rdi
	je	LBB0_4
## %bb.3:
	movq	_IXGBE_AUTOC_LMS_KX4_AN_1G_AN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_10
LBB0_4:
	movq	_IXGBE_AUTOC_KX4_KX_SUPP_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	notq	%rcx
	andq	%r12, %rcx
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	movl	$0, %edx
	testl	%ebx, (%rsi)
	je	LBB0_6
## %bb.5:
	movq	_IXGBE_AUTOC_KX4_SUPP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_6:
	orq	%rcx, %rdx
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_IXGBE_AUTOC_KX_SUPP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	orq	%rax, %rdx
	cmpq	%r12, %rdx
	je	LBB0_10
## %bb.9:
	movl	(%rdi), %esi
	movq	%r15, %rdi
	callq	_IXGBE_WRITE_REG
LBB0_10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ixgbe_start_mac_link_82598
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_LINK_SPEED_UNKNOWN,4,2   ## @IXGBE_LINK_SPEED_UNKNOWN
	.comm	_IXGBE_AUTOC,4,2                ## @IXGBE_AUTOC
	.comm	_IXGBE_AUTOC_LMS_MASK,8,3       ## @IXGBE_AUTOC_LMS_MASK
	.comm	_IXGBE_ERR_LINK_SETUP,4,2       ## @IXGBE_ERR_LINK_SETUP
	.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_AUTOC_KX4_KX_SUPP_MASK,8,3 ## @IXGBE_AUTOC_KX4_KX_SUPP_MASK
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ## @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_AUTOC_KX4_SUPP,8,3       ## @IXGBE_AUTOC_KX4_SUPP
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ## @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_AUTOC_KX_SUPP,8,3        ## @IXGBE_AUTOC_KX_SUPP
	.no_dead_strip	_ixgbe_setup_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_setup_mac_link_82598
_ixgbe_setup_mac_link_82598:            ; @ixgbe_setup_mac_link_82598
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _IXGBE_LINK_SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IXGBE_LINK_SPEED_UNKNOWN@GOTPAGEOFF]
	ldr	w8, [x25]
	stp	w8, wzr, [sp, #8]
Lloh2:
	adrp	x23, _IXGBE_AUTOC@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IXGBE_AUTOC@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_IXGBE_READ_REG
	mov	x21, x0
Lloh4:
	adrp	x8, _IXGBE_AUTOC_LMS_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IXGBE_AUTOC_LMS_MASK@GOTPAGEOFF]
Lloh6:
	ldr	x24, [x8]
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x20
	bl	_ixgbe_get_link_capabilities_82598
	ldr	w8, [sp, #8]
	and	w8, w8, w22
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _IXGBE_ERR_LINK_SETUP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IXGBE_ERR_LINK_SETUP@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_2:
	and	x9, x24, x21
Lloh10:
	adrp	x10, _IXGBE_AUTOC_LMS_KX4_AN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IXGBE_AUTOC_LMS_KX4_AN@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
Lloh13:
	adrp	x11, _IXGBE_AUTOC_LMS_KX4_AN_1G_AN@GOTPAGE
Lloh14:
	ldr	x11, [x11, _IXGBE_AUTOC_LMS_KX4_AN_1G_AN@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
; %bb.3:
Lloh16:
	adrp	x9, _IXGBE_AUTOC_KX4_KX_SUPP_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IXGBE_AUTOC_KX4_KX_SUPP_MASK@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh20:
	ldr	x10, [x10, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
	bic	x9, x21, x9
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _IXGBE_AUTOC_KX4_SUPP@GOTPAGE
Lloh23:
	ldr	x11, [x11, _IXGBE_AUTOC_KX4_SUPP@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x11]
	tst	w10, w8
	csel	x10, xzr, x11, eq
	orr	x9, x10, x9
Lloh25:
	adrp	x10, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh26:
	ldr	x10, [x10, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
Lloh27:
	adrp	x11, _IXGBE_AUTOC_KX_SUPP@GOTPAGE
Lloh28:
	ldr	x11, [x11, _IXGBE_AUTOC_KX_SUPP@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
Lloh30:
	ldr	x11, [x11]
	tst	w10, w8
	csel	x8, xzr, x11, eq
	orr	x2, x9, x8
	cmp	x2, x21
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_IXGBE_WRITE_REG
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_ixgbe_start_mac_link_82598
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_LINK_SPEED_UNKNOWN,4,2   ; @IXGBE_LINK_SPEED_UNKNOWN
	.comm	_IXGBE_AUTOC,4,2                ; @IXGBE_AUTOC
	.comm	_IXGBE_AUTOC_LMS_MASK,8,3       ; @IXGBE_AUTOC_LMS_MASK
	.comm	_IXGBE_ERR_LINK_SETUP,4,2       ; @IXGBE_ERR_LINK_SETUP
	.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_AUTOC_KX4_KX_SUPP_MASK,8,3 ; @IXGBE_AUTOC_KX4_KX_SUPP_MASK
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ; @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_AUTOC_KX4_SUPP,8,3       ; @IXGBE_AUTOC_KX4_SUPP
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ; @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_AUTOC_KX_SUPP,8,3        ; @IXGBE_AUTOC_KX_SUPP
	.no_dead_strip	_ixgbe_setup_mac_link_82598
.subsections_via_symbols
