	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcdi_fec_caps_to_ethtool
_mcdi_fec_caps_to_ethtool:              ## @mcdi_fec_caps_to_ethtool
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MC_CMD_PHY_CAP_RS_FEC_LBN@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	$1, %r8d
	andl	%edi, %edx
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_MC_CMD_PHY_CAP_BASER_FEC_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MC_CMD_PHY_CAP_25G_BASER_FEC_LBN@GOTPCREL(%rip), %rax
LBB0_3:
	movb	(%rax), %cl
	shll	%cl, %r8d
	andl	%edi, %r8d
	movl	%r8d, %eax
	orl	%edx, %eax
	je	LBB0_4
## %bb.5:
	movq	_MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %r9d
	shll	%cl, %r9d
	movl	$1, %r10d
	andl	%edi, %r9d
	testl	%esi, %esi
	jne	LBB0_6
## %bb.7:
	movq	_MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_ETHTOOL_FEC_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN@GOTPCREL(%rip), %rax
LBB0_8:
	movb	(%rax), %cl
	shll	%cl, %r10d
	andl	%edi, %r10d
	movl	%r9d, %ecx
	testl	%r9d, %r9d
	je	LBB0_10
## %bb.9:
	movq	_ETHTOOL_FEC_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_10:
	movl	%r10d, %eax
	testl	%r10d, %r10d
	je	LBB0_12
## %bb.11:
	movq	_ETHTOOL_FEC_BASER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	orl	%ecx, %eax
	xorl	%r10d, %r8d
	xorl	%r9d, %edx
	xorl	%ecx, %ecx
	orl	%r8d, %edx
	je	LBB0_14
## %bb.13:
	movq	_ETHTOOL_FEC_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_14:
	orl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CMD_PHY_CAP_RS_FEC_LBN,4,2  ## @MC_CMD_PHY_CAP_RS_FEC_LBN
	.comm	_MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN,4,2 ## @MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN
	.comm	_MC_CMD_PHY_CAP_25G_BASER_FEC_LBN,4,2 ## @MC_CMD_PHY_CAP_25G_BASER_FEC_LBN
	.comm	_MC_CMD_PHY_CAP_BASER_FEC_LBN,4,2 ## @MC_CMD_PHY_CAP_BASER_FEC_LBN
	.comm	_MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN,4,2 ## @MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN
	.comm	_MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN,4,2 ## @MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN
	.comm	_ETHTOOL_FEC_OFF,4,2            ## @ETHTOOL_FEC_OFF
	.comm	_ETHTOOL_FEC_RS,4,2             ## @ETHTOOL_FEC_RS
	.comm	_ETHTOOL_FEC_BASER,4,2          ## @ETHTOOL_FEC_BASER
	.comm	_ETHTOOL_FEC_AUTO,4,2           ## @ETHTOOL_FEC_AUTO
	.no_dead_strip	_mcdi_fec_caps_to_ethtool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcdi_fec_caps_to_ethtool
_mcdi_fec_caps_to_ethtool:              ; @mcdi_fec_caps_to_ethtool
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MC_CMD_PHY_CAP_RS_FEC_LBN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC_CMD_PHY_CAP_RS_FEC_LBN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w10, #1
	lsl	w8, w10, w8
	and	w8, w8, w0
Lloh3:
	adrp	x9, _MC_CMD_PHY_CAP_BASER_FEC_LBN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MC_CMD_PHY_CAP_BASER_FEC_LBN@GOTPAGEOFF]
Lloh5:
	adrp	x11, _MC_CMD_PHY_CAP_25G_BASER_FEC_LBN@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MC_CMD_PHY_CAP_25G_BASER_FEC_LBN@GOTPAGEOFF]
	cmp	w1, #0
	csel	x9, x9, x11, eq
	ldr	w9, [x9]
	lsl	w9, w10, w9
	and	w9, w9, w0
	orr	w11, w9, w8
	cbz	w11, LBB0_2
; %bb.1:
Lloh7:
	adrp	x11, _MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN@GOTPAGE
Lloh8:
	ldr	x11, [x11, _MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	lsl	w11, w10, w11
Lloh10:
	adrp	x12, _MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN@GOTPAGE
Lloh11:
	ldr	x12, [x12, _MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN@GOTPAGEOFF]
Lloh12:
	adrp	x13, _MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN@GOTPAGE
Lloh13:
	ldr	x13, [x13, _MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN@GOTPAGEOFF]
	cmp	w1, #0
	csel	x12, x12, x13, eq
	ldr	w12, [x12]
	lsl	w10, w10, w12
Lloh14:
	adrp	x12, _ETHTOOL_FEC_RS@GOTPAGE
Lloh15:
	ldr	x12, [x12, _ETHTOOL_FEC_RS@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
	ands	w11, w11, w0
Lloh17:
	adrp	x13, _ETHTOOL_FEC_BASER@GOTPAGE
Lloh18:
	ldr	x13, [x13, _ETHTOOL_FEC_BASER@GOTPAGEOFF]
	csel	w12, wzr, w12, eq
Lloh19:
	ldr	w13, [x13]
	ands	w10, w10, w0
	csel	w13, wzr, w13, eq
	orr	w12, w13, w12
	cmp	w8, w11
	ccmp	w9, w10, #0, eq
Lloh20:
	adrp	x8, _ETHTOOL_FEC_AUTO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETHTOOL_FEC_AUTO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	csel	w8, wzr, w8, eq
	orr	w0, w12, w8
	ret
LBB0_2:
Lloh23:
	adrp	x8, _ETHTOOL_FEC_OFF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETHTOOL_FEC_OFF@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_PHY_CAP_RS_FEC_LBN,4,2  ; @MC_CMD_PHY_CAP_RS_FEC_LBN
	.comm	_MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN,4,2 ; @MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN
	.comm	_MC_CMD_PHY_CAP_25G_BASER_FEC_LBN,4,2 ; @MC_CMD_PHY_CAP_25G_BASER_FEC_LBN
	.comm	_MC_CMD_PHY_CAP_BASER_FEC_LBN,4,2 ; @MC_CMD_PHY_CAP_BASER_FEC_LBN
	.comm	_MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN,4,2 ; @MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN
	.comm	_MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN,4,2 ; @MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN
	.comm	_ETHTOOL_FEC_OFF,4,2            ; @ETHTOOL_FEC_OFF
	.comm	_ETHTOOL_FEC_RS,4,2             ; @ETHTOOL_FEC_RS
	.comm	_ETHTOOL_FEC_BASER,4,2          ; @ETHTOOL_FEC_BASER
	.comm	_ETHTOOL_FEC_AUTO,4,2           ; @ETHTOOL_FEC_AUTO
	.no_dead_strip	_mcdi_fec_caps_to_ethtool
.subsections_via_symbols
