	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_set_fec_link_mode
_nfp_net_set_fec_link_mode:             ## @nfp_net_set_fec_link_mode
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_supported@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_FEC_NONE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movq	%r14, %rdi
	callq	_nfp_eth_can_support_fec
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_nfp_eth_supported_fec_modes
	movl	%eax, %r14d
	movq	_NFP_FEC_BASER@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%r12), %esi
	movq	_FEC_BASER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movq	_advertising@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
LBB0_3:
	movq	_NFP_FEC_REED_SOLOMON@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.4:
	movl	(%r12), %esi
	movq	_FEC_RS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
LBB0_5:
	movq	_advertising@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ethtool_link_ksettings_add_link_mode ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_supported,4,2                  ## @supported
	.comm	_FEC_NONE,4,2                   ## @FEC_NONE
	.comm	_advertising,4,2                ## @advertising
	.comm	_NFP_FEC_BASER,4,2              ## @NFP_FEC_BASER
	.comm	_FEC_BASER,4,2                  ## @FEC_BASER
	.comm	_NFP_FEC_REED_SOLOMON,4,2       ## @NFP_FEC_REED_SOLOMON
	.comm	_FEC_RS,4,2                     ## @FEC_RS
	.no_dead_strip	_nfp_net_set_fec_link_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_set_fec_link_mode
_nfp_net_set_fec_link_mode:             ; @nfp_net_set_fec_link_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _supported@GOTPAGE
Lloh1:
	ldr	x22, [x22, _supported@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _FEC_NONE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FEC_NONE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	mov	x0, x20
	bl	_nfp_eth_can_support_fec
Lloh4:
	adrp	x21, _advertising@GOTPAGE
Lloh5:
	ldr	x21, [x21, _advertising@GOTPAGEOFF]
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_nfp_eth_supported_fec_modes
	mov	x20, x0
Lloh6:
	adrp	x8, _NFP_FEC_BASER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_FEC_BASER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x22]
Lloh9:
	adrp	x23, _FEC_BASER@GOTPAGE
Lloh10:
	ldr	x23, [x23, _FEC_BASER@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
LBB0_3:
Lloh11:
	adrp	x8, _NFP_FEC_REED_SOLOMON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFP_FEC_REED_SOLOMON@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.4:
	ldr	w1, [x22]
Lloh14:
	adrp	x23, _FEC_RS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _FEC_RS@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
LBB0_5:
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ethtool_link_ksettings_add_link_mode
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_supported,4,2                  ; @supported
	.comm	_FEC_NONE,4,2                   ; @FEC_NONE
	.comm	_advertising,4,2                ; @advertising
	.comm	_NFP_FEC_BASER,4,2              ; @NFP_FEC_BASER
	.comm	_FEC_BASER,4,2                  ; @FEC_BASER
	.comm	_NFP_FEC_REED_SOLOMON,4,2       ; @NFP_FEC_REED_SOLOMON
	.comm	_FEC_RS,4,2                     ; @FEC_RS
	.no_dead_strip	_nfp_net_set_fec_link_mode
.subsections_via_symbols
