	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_get_fec_param
_i40e_get_fec_param:                    ## @i40e_get_fec_param
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r15
	leaq	-40(%rbp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r12, %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), %ebx
	jmp	LBB0_18
LBB0_2:
	movl	$0, 4(%r14)
	movl	-40(%rbp), %eax
	movq	_I40E_AQ_SET_FEC_AUTO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_ETHTOOL_FEC_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, 4(%r14)
LBB0_4:
	movq	_I40E_AQ_SET_FEC_REQUEST_RS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	_I40E_AQ_SET_FEC_ABILITY_RS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
LBB0_6:
	movq	_ETHTOOL_FEC_RS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	%ebx, 4(%r14)
LBB0_7:
	movq	_I40E_AQ_SET_FEC_REQUEST_KR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_9
## %bb.8:
	movq	_I40E_AQ_SET_FEC_ABILITY_KR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
LBB0_9:
	movq	_ETHTOOL_FEC_BASER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	%ebx, 4(%r14)
LBB0_10:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_ETHTOOL_FEC_OFF@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, 4(%r14)
LBB0_12:
	movl	(%r15), %eax
	movq	_I40E_AQ_CONFIG_FEC_KR_ENA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	movq	_ETHTOOL_FEC_BASER@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_I40E_AQ_CONFIG_FEC_RS_ENA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	_ETHTOOL_FEC_RS@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_ETHTOOL_FEC_OFF@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I40E_AQ_SET_FEC_AUTO,4,2       ## @I40E_AQ_SET_FEC_AUTO
	.comm	_ETHTOOL_FEC_AUTO,4,2           ## @ETHTOOL_FEC_AUTO
	.comm	_I40E_AQ_SET_FEC_REQUEST_RS,4,2 ## @I40E_AQ_SET_FEC_REQUEST_RS
	.comm	_I40E_AQ_SET_FEC_ABILITY_RS,4,2 ## @I40E_AQ_SET_FEC_ABILITY_RS
	.comm	_ETHTOOL_FEC_RS,4,2             ## @ETHTOOL_FEC_RS
	.comm	_I40E_AQ_SET_FEC_REQUEST_KR,4,2 ## @I40E_AQ_SET_FEC_REQUEST_KR
	.comm	_I40E_AQ_SET_FEC_ABILITY_KR,4,2 ## @I40E_AQ_SET_FEC_ABILITY_KR
	.comm	_ETHTOOL_FEC_BASER,4,2          ## @ETHTOOL_FEC_BASER
	.comm	_ETHTOOL_FEC_OFF,4,2            ## @ETHTOOL_FEC_OFF
	.comm	_I40E_AQ_CONFIG_FEC_KR_ENA,4,2  ## @I40E_AQ_CONFIG_FEC_KR_ENA
	.comm	_I40E_AQ_CONFIG_FEC_RS_ENA,4,2  ## @I40E_AQ_CONFIG_FEC_RS_ENA
	.no_dead_strip	_i40e_get_fec_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_get_fec_param
_i40e_get_fec_param:                    ; @i40e_get_fec_param
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x20, [x8]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x3, sp, #8
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_i40e_aq_get_phy_capabilities
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_2:
	str	wzr, [x19, #4]
	ldr	w9, [sp, #8]
Lloh3:
	adrp	x8, _I40E_AQ_SET_FEC_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_AQ_SET_FEC_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ETHTOOL_FEC_AUTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETHTOOL_FEC_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x8]
	str	w10, [x19, #4]
	b	LBB0_5
LBB0_4:
	mov	w10, #0
LBB0_5:
Lloh9:
	adrp	x8, _I40E_AQ_SET_FEC_REQUEST_RS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_AQ_SET_FEC_REQUEST_RS@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x8]
Lloh12:
	adrp	x8, _ETHTOOL_FEC_RS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETHTOOL_FEC_RS@GOTPAGEOFF]
	tst	w11, w9
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x11, _I40E_AQ_SET_FEC_ABILITY_RS@GOTPAGE
Lloh15:
	ldr	x11, [x11, _I40E_AQ_SET_FEC_ABILITY_RS@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_8
LBB0_7:
	ldr	w11, [x8]
	orr	w10, w10, w11
	str	w10, [x19, #4]
LBB0_8:
Lloh17:
	adrp	x11, _I40E_AQ_SET_FEC_REQUEST_KR@GOTPAGE
Lloh18:
	ldr	x11, [x11, _I40E_AQ_SET_FEC_REQUEST_KR@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x11]
Lloh20:
	adrp	x11, _ETHTOOL_FEC_BASER@GOTPAGE
Lloh21:
	ldr	x11, [x11, _ETHTOOL_FEC_BASER@GOTPAGEOFF]
	tst	w12, w9
	b.ne	LBB0_10
; %bb.9:
Lloh22:
	adrp	x12, _I40E_AQ_SET_FEC_ABILITY_KR@GOTPAGE
Lloh23:
	ldr	x12, [x12, _I40E_AQ_SET_FEC_ABILITY_KR@GOTPAGEOFF]
Lloh24:
	ldr	w12, [x12]
	tst	w12, w9
	b.eq	LBB0_11
LBB0_10:
	ldr	w12, [x11]
	orr	w10, w10, w12
	str	w10, [x19, #4]
LBB0_11:
	cbnz	w9, LBB0_13
; %bb.12:
Lloh25:
	adrp	x9, _ETHTOOL_FEC_OFF@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ETHTOOL_FEC_OFF@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_13:
	ldr	w9, [x20]
Lloh28:
	adrp	x10, _I40E_AQ_CONFIG_FEC_KR_ENA@GOTPAGE
Lloh29:
	ldr	x10, [x10, _I40E_AQ_CONFIG_FEC_KR_ENA@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
	mov	w0, #0
	ldr	w8, [x11]
	b	LBB0_19
LBB0_15:
Lloh31:
	adrp	x10, _I40E_AQ_CONFIG_FEC_RS_ENA@GOTPAGE
Lloh32:
	ldr	x10, [x10, _I40E_AQ_CONFIG_FEC_RS_ENA@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_17
; %bb.16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
	mov	w0, #0
Lloh34:
	adrp	x8, _ETHTOOL_FEC_OFF@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ETHTOOL_FEC_OFF@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
LBB0_19:
	str	w8, [x19]
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I40E_AQ_SET_FEC_AUTO,4,2       ; @I40E_AQ_SET_FEC_AUTO
	.comm	_ETHTOOL_FEC_AUTO,4,2           ; @ETHTOOL_FEC_AUTO
	.comm	_I40E_AQ_SET_FEC_REQUEST_RS,4,2 ; @I40E_AQ_SET_FEC_REQUEST_RS
	.comm	_I40E_AQ_SET_FEC_ABILITY_RS,4,2 ; @I40E_AQ_SET_FEC_ABILITY_RS
	.comm	_ETHTOOL_FEC_RS,4,2             ; @ETHTOOL_FEC_RS
	.comm	_I40E_AQ_SET_FEC_REQUEST_KR,4,2 ; @I40E_AQ_SET_FEC_REQUEST_KR
	.comm	_I40E_AQ_SET_FEC_ABILITY_KR,4,2 ; @I40E_AQ_SET_FEC_ABILITY_KR
	.comm	_ETHTOOL_FEC_BASER,4,2          ; @ETHTOOL_FEC_BASER
	.comm	_ETHTOOL_FEC_OFF,4,2            ; @ETHTOOL_FEC_OFF
	.comm	_I40E_AQ_CONFIG_FEC_KR_ENA,4,2  ; @I40E_AQ_CONFIG_FEC_KR_ENA
	.comm	_I40E_AQ_CONFIG_FEC_RS_ENA,4,2  ; @I40E_AQ_CONFIG_FEC_RS_ENA
	.no_dead_strip	_i40e_get_fec_param
.subsections_via_symbols
