	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_set_fec_cfg
_i40e_set_fec_cfg:                      ## @i40e_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r13
	leaq	4(%r13), %r12
	movl	(%r13), %edi
	callq	_READ_ONCE
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_i40e_set_fec_in_flags
	leaq	-144(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$44, %edx
	callq	_memset
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_i40e_aq_get_phy_capabilities
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	%r14, %r12
	jmp	LBB0_8
LBB0_2:
	movq	%r13, %r14
	movq	%r12, %r13
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, -144(%rbp)
	movl	$0, %r12d
	je	LBB0_8
## %bb.3:
	leaq	-96(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$44, %edx
	callq	_memset
	movl	-104(%rbp), %eax
	movl	%eax, -56(%rbp)
	movups	-120(%rbp), %xmm0
	movups	%xmm0, -72(%rbp)
	movl	-136(%rbp), %eax
	movl	-128(%rbp), %ecx
	movl	%ecx, -76(%rbp)
	movl	%eax, -84(%rbp)
	movq	_I40E_AQ_PHY_FEC_CONFIG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, -92(%rbp)
	movq	%r13, %rbx
	movq	%r13, %rdi
	leaq	-96(%rbp), %rsi
	xorl	%edx, %edx
	callq	_i40e_aq_set_phy_config
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_i40e_stat_str
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_i40e_aq_str
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_netdev_info
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_5:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_i40e_update_link_info
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_i40e_stat_str
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_i40e_aq_str
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_netdev_dbg
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I40E_AQ_PHY_FEC_CONFIG_MASK,4,2 ## @I40E_AQ_PHY_FEC_CONFIG_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set phy config failed, err %s aq_err %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Updating link info failed with err %s aq_err %s\n"

	.no_dead_strip	_i40e_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 i40e_set_fec_cfg
_i40e_set_fec_cfg:                      ; @i40e_set_fec_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x22, [x8]
	mov	x20, x22
	ldr	w0, [x20], #4
	bl	_READ_ONCE
	str	w0, [sp, #44]
	add	x1, sp, #44
	mov	x0, x21
	bl	_i40e_set_fec_in_flags
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #44
	bl	_memset
	add	x3, sp, #48
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_i40e_aq_get_phy_capabilities
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	ldr	w8, [sp, #48]
	cmp	w8, w21
	b.eq	LBB0_7
; %bb.3:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #44
	bl	_memset
	ldr	w8, [sp, #88]
	str	w8, [sp, #40]
	ldur	q0, [sp, #72]
	stur	q0, [sp, #24]
	ldr	w8, [sp, #64]
	ldr	w9, [sp, #56]
	str	w8, [sp, #20]
Lloh3:
	adrp	x8, _I40E_AQ_PHY_FEC_CONFIG_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_AQ_PHY_FEC_CONFIG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w21
	str	w9, [sp, #12]
	str	w8, [sp, #4]
	mov	x1, sp
	mov	x0, x20
	mov	x2, #0
	bl	_i40e_aq_set_phy_config
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
	mov	x0, x20
	bl	_i40e_stat_str
	mov	x21, x0
	ldr	w1, [x20]
	mov	x0, x20
	bl	_i40e_aq_str
	mov	x3, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_info
	b	LBB0_1
LBB0_5:
	ldr	w8, [sp, #44]
	str	w8, [x22]
	mov	x0, x20
	bl	_i40e_update_link_info
	cbz	x0, LBB0_8
; %bb.6:
	mov	x1, x0
	mov	x0, x20
	bl	_i40e_stat_str
	mov	x21, x0
	ldr	w1, [x20]
	mov	x0, x20
	bl	_i40e_aq_str
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_dbg
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I40E_AQ_PHY_FEC_CONFIG_MASK,4,2 ; @I40E_AQ_PHY_FEC_CONFIG_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set phy config failed, err %s aq_err %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Updating link info failed with err %s aq_err %s\n"

	.no_dead_strip	_i40e_set_fec_cfg
.subsections_via_symbols
