	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_setup_autoneg
_ice_setup_autoneg:                     ## @ice_setup_autoneg
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r14
	movq	%rdx, %r12
	movq	$0, (%r8)
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	movq	_ICE_AQ_AN_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	cmpq	%rcx, (%rdx)
	jne	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	movq	_supported@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Autoneg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_ethtool_link_ksettings_test_link_mode
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	_ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	jmp	LBB0_10
LBB0_6:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movq	_supported@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Autoneg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_ethtool_link_ksettings_test_link_mode
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_9:
	movq	_ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
LBB0_10:
	movq	$1, (%r14)
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_netdev_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_ICE_AQ_AN_COMPLETED,4,2        ## @ICE_AQ_AN_COMPLETED
	.comm	_supported,4,2                  ## @supported
	.comm	_Autoneg,4,2                    ## @Autoneg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Autoneg not supported on this phy.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ICE_AQ_PHY_ENA_AUTO_LINK_UPDT,4,2 ## @ICE_AQ_PHY_ENA_AUTO_LINK_UPDT
L_.str.1:                               ## @.str.1
	.asciz	"Autoneg cannot be disabled on this phy\n"

	.no_dead_strip	_ice_setup_autoneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_setup_autoneg
_ice_setup_autoneg:                     ; @ice_setup_autoneg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x5
	mov	x19, x4
	mov	x20, x2
	str	xzr, [x4]
Lloh0:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	w8, [x0]
Lloh3:
	adrp	x10, _ICE_AQ_AN_COMPLETED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ICE_AQ_AN_COMPLETED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w8, w10, w8
	cmp	x9, x3
	b.ne	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _supported@GOTPAGE
Lloh7:
	ldr	x8, [x8, _supported@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _Autoneg@GOTPAGE
Lloh10:
	ldr	x9, [x9, _Autoneg@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x9]
	mov	x0, x1
	mov	x1, x8
	bl	_ethtool_link_ksettings_test_link_mode
	cbz	x0, LBB0_10
; %bb.3:
	mov	w0, #0
Lloh12:
	adrp	x8, _ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	b	LBB0_9
LBB0_4:
	cbz	w8, LBB0_7
; %bb.5:
Lloh15:
	adrp	x8, _supported@GOTPAGE
Lloh16:
	ldr	x8, [x8, _supported@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _Autoneg@GOTPAGE
Lloh19:
	ldr	x9, [x9, _Autoneg@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x9]
	mov	x0, x1
	mov	x1, x8
	bl	_ethtool_link_ksettings_test_link_mode
	cbz	x0, LBB0_8
; %bb.6:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
Lloh23:
	adrp	x8, _ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
LBB0_9:
	str	w8, [x20]
	mov	w8, #1
	str	x8, [x19]
	b	LBB0_12
LBB0_10:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	mov	x0, x21
	bl	_netdev_info
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_ICE_AQ_AN_COMPLETED,4,2        ; @ICE_AQ_AN_COMPLETED
	.comm	_supported,4,2                  ; @supported
	.comm	_Autoneg,4,2                    ; @Autoneg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Autoneg not supported on this phy.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ICE_AQ_PHY_ENA_AUTO_LINK_UPDT,4,2 ; @ICE_AQ_PHY_ENA_AUTO_LINK_UPDT
l_.str.1:                               ; @.str.1
	.asciz	"Autoneg cannot be disabled on this phy\n"

	.no_dead_strip	_ice_setup_autoneg
.subsections_via_symbols
