	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loc_to_eth_fec
_loc_to_eth_fec:                        ## @loc_to_eth_fec
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_HNAE3_FEC_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	andl	%r14d, %r15d
	je	LBB0_2
## %bb.1:
	movq	_ETHTOOL_FEC_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movq	_HNAE3_FEC_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	andl	%r14d, %ebx
	je	LBB0_4
## %bb.3:
	movq	_ETHTOOL_FEC_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	orl	%r15d, %ebx
	movq	_HNAE3_FEC_BASER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	andl	%r14d, %eax
	je	LBB0_6
## %bb.5:
	movq	_ETHTOOL_FEC_BASER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %ebx
	jne	LBB0_8
## %bb.7:
	movq	_ETHTOOL_FEC_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_FEC_AUTO,4,2             ## @HNAE3_FEC_AUTO
	.comm	_ETHTOOL_FEC_AUTO,4,2           ## @ETHTOOL_FEC_AUTO
	.comm	_HNAE3_FEC_RS,4,2               ## @HNAE3_FEC_RS
	.comm	_ETHTOOL_FEC_RS,4,2             ## @ETHTOOL_FEC_RS
	.comm	_HNAE3_FEC_BASER,4,2            ## @HNAE3_FEC_BASER
	.comm	_ETHTOOL_FEC_BASER,4,2          ## @ETHTOOL_FEC_BASER
	.comm	_ETHTOOL_FEC_OFF,4,2            ## @ETHTOOL_FEC_OFF
	.no_dead_strip	_loc_to_eth_fec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loc_to_eth_fec
_loc_to_eth_fec:                        ; @loc_to_eth_fec
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _HNAE3_FEC_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNAE3_FEC_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
Lloh3:
	adrp	x8, _ETHTOOL_FEC_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETHTOOL_FEC_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w0, w19
	csel	w20, wzr, w8, eq
Lloh6:
	adrp	x8, _HNAE3_FEC_RS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNAE3_FEC_RS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
Lloh9:
	adrp	x8, _ETHTOOL_FEC_RS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETHTOOL_FEC_RS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w0, w19
	csel	w8, wzr, w8, eq
	orr	w20, w8, w20
Lloh12:
	adrp	x8, _HNAE3_FEC_BASER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HNAE3_FEC_BASER@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
Lloh15:
	adrp	x8, _ETHTOOL_FEC_BASER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETHTOOL_FEC_BASER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w0, w19
	csel	w8, wzr, w8, eq
	orr	w8, w20, w8
Lloh18:
	adrp	x9, _ETHTOOL_FEC_OFF@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ETHTOOL_FEC_OFF@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w0, w9, w8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_FEC_AUTO,4,2             ; @HNAE3_FEC_AUTO
	.comm	_ETHTOOL_FEC_AUTO,4,2           ; @ETHTOOL_FEC_AUTO
	.comm	_HNAE3_FEC_RS,4,2               ; @HNAE3_FEC_RS
	.comm	_ETHTOOL_FEC_RS,4,2             ; @ETHTOOL_FEC_RS
	.comm	_HNAE3_FEC_BASER,4,2            ; @HNAE3_FEC_BASER
	.comm	_ETHTOOL_FEC_BASER,4,2          ; @ETHTOOL_FEC_BASER
	.comm	_ETHTOOL_FEC_OFF,4,2            ; @ETHTOOL_FEC_OFF
	.no_dead_strip	_loc_to_eth_fec
.subsections_via_symbols
