	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_set_fec_cfg
_ice_set_fec_cfg:                       ## @ice_set_fec_cfg
	.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	$40, %rsp
	.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, %rbx
	callq	_netdev_priv
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	(%rax), %r13
	movq	16(%r13), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movq	(%r13), %rax
	movq	_ICE_VSI_PF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	_ICE_AQC_REPORT_SW_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_ice_aq_get_phy_caps
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ice_copy_phy_caps_to_cfg
	movq	(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_ICE_AQC_REPORT_TOPO_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_ice_aq_get_phy_caps
	testl	%eax, %eax
	je	LBB0_10
LBB0_8:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_16:
	subl	(%rax), %ebx
LBB0_17:
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_devm_kfree
	jmp	LBB0_18
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_info
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	_ICE_AQC_PHY_EN_AUTO_FEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	(%r14), %rax
	orq	%rax, -64(%rbp)
	movq	8(%r14), %rax
	movq	%rax, -56(%rbp)
	leaq	-64(%rbp), %rdi
	movl	%r12d, %esi
	callq	_ice_cfg_phy_fec
	movq	-64(%rbp), %rax
	movq	_ICE_AQ_PHY_ENA_AUTO_FEC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	%rax, %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	_ICE_AQC_PHY_EN_AUTO_FEC@GOTPCREL(%rip), %rsi
	andq	(%rsi), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_12
## %bb.11:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, -56(%rbp)
	je	LBB0_17
LBB0_12:
	movq	_ICE_AQC_PHY_AN_MODE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	testq	%rcx, (%r14)
	je	LBB0_14
## %bb.13:
	movq	_ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	%rax, -64(%rbp)
LBB0_14:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_ice_aq_set_phy_cfg
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ICE_VSI_PF,8,3                 ## @ICE_VSI_PF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changing FEC parameters only supported for PF VSI\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ICE_AQC_REPORT_SW_CFG,4,2      ## @ICE_AQC_REPORT_SW_CFG
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ICE_AQC_REPORT_TOPO_CAP,4,2    ## @ICE_AQC_REPORT_TOPO_CAP
	.comm	_ICE_AQC_PHY_EN_AUTO_FEC,8,3    ## @ICE_AQC_PHY_EN_AUTO_FEC
	.comm	_ICE_AQ_PHY_ENA_AUTO_FEC,8,3    ## @ICE_AQ_PHY_ENA_AUTO_FEC
	.comm	_ICE_AQC_PHY_AN_MODE,4,2        ## @ICE_AQC_PHY_AN_MODE
	.comm	_ICE_AQ_PHY_ENA_AUTO_LINK_UPDT,8,3 ## @ICE_AQ_PHY_ENA_AUTO_LINK_UPDT
	.no_dead_strip	_ice_set_fec_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_set_fec_cfg
_ice_set_fec_cfg:                       ; @ice_set_fec_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	x22, [x0]
	ldr	x20, [x22, #16]
	cbz	x20, LBB0_8
; %bb.1:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _ICE_VSI_PF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE_VSI_PF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x22, #8]
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x19, x0
Lloh6:
	adrp	x8, _ICE_AQC_REPORT_SW_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_AQC_REPORT_SW_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_ice_aq_get_phy_caps
	cbnz	w0, LBB0_5
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ice_copy_phy_caps_to_cfg
	ldp	x23, x24, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh9:
	adrp	x8, _ICE_AQC_REPORT_TOPO_CAP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_AQC_REPORT_TOPO_CAP@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_ice_aq_get_phy_caps
	cbz	w0, LBB0_12
LBB0_5:
Lloh12:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	ldr	x8, [x22, #8]
	ldr	x0, [x8]
	mov	x1, x19
	bl	_devm_kfree
	b	LBB0_10
LBB0_7:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_8:
Lloh17:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
LBB0_11:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
Lloh21:
	adrp	x25, _ICE_AQC_PHY_EN_AUTO_FEC@GOTPAGE
Lloh22:
	ldr	x25, [x25, _ICE_AQC_PHY_EN_AUTO_FEC@GOTPAGEOFF]
	ldr	x8, [x25]
	ldp	x9, x10, [x19]
	and	x8, x8, x9
	ldr	x9, [sp, #8]
	orr	x8, x9, x8
	stp	x8, x10, [sp, #8]
	add	x0, sp, #8
	mov	x1, x21
	bl	_ice_cfg_phy_fec
Lloh23:
	adrp	x8, _ICE_AQ_PHY_ENA_AUTO_FEC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ICE_AQ_PHY_ENA_AUTO_FEC@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x8]
	ldp	x8, x10, [sp, #8]
	and	x9, x9, x8
	ldr	x11, [x25]
	and	x11, x11, x23
	cmp	x9, x11
	ccmp	x10, x24, #0, eq
	b.eq	LBB0_16
; %bb.13:
	ldr	x9, [x19]
Lloh26:
	adrp	x10, _ICE_AQC_PHY_AN_MODE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _ICE_AQC_PHY_AN_MODE@GOTPAGEOFF]
Lloh28:
	ldrsw	x10, [x10]
	tst	x9, x10
	b.eq	LBB0_15
; %bb.14:
Lloh29:
	adrp	x9, _ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ICE_AQ_PHY_ENA_AUTO_LINK_UPDT@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	orr	x8, x9, x8
	str	x8, [sp, #8]
LBB0_15:
	ldp	w1, w0, [x20]
	add	x2, sp, #8
	mov	x3, #0
	bl	_ice_aq_set_phy_cfg
	cbnz	w0, LBB0_5
LBB0_16:
	mov	w20, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ICE_VSI_PF,8,3                 ; @ICE_VSI_PF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changing FEC parameters only supported for PF VSI\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ICE_AQC_REPORT_SW_CFG,4,2      ; @ICE_AQC_REPORT_SW_CFG
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ICE_AQC_REPORT_TOPO_CAP,4,2    ; @ICE_AQC_REPORT_TOPO_CAP
	.comm	_ICE_AQC_PHY_EN_AUTO_FEC,8,3    ; @ICE_AQC_PHY_EN_AUTO_FEC
	.comm	_ICE_AQ_PHY_ENA_AUTO_FEC,8,3    ; @ICE_AQ_PHY_ENA_AUTO_FEC
	.comm	_ICE_AQC_PHY_AN_MODE,4,2        ; @ICE_AQC_PHY_AN_MODE
	.comm	_ICE_AQ_PHY_ENA_AUTO_LINK_UPDT,8,3 ; @ICE_AQ_PHY_ENA_AUTO_LINK_UPDT
	.no_dead_strip	_ice_set_fec_cfg
.subsections_via_symbols
