	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethtool_fec_caps_to_mcdi
_ethtool_fec_caps_to_mcdi:              ## @ethtool_fec_caps_to_mcdi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ETHTOOL_FEC_OFF@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%edi, (%rcx)
	je	LBB0_1
LBB0_8:
	popq	%rbp
	retq
LBB0_1:
	movq	_ETHTOOL_FEC_AUTO@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_MC_CMD_PHY_CAP_BASER_FEC_LBN@GOTPCREL(%rip), %rax
	movb	(%rax), %dl
	movq	_MC_CMD_PHY_CAP_25G_BASER_FEC_LBN@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	btsl	%edx, %eax
	movq	_MC_CMD_PHY_CAP_RS_FEC_LBN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movq	_ETHTOOL_FEC_RS@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_MC_CMD_PHY_CAP_RS_FEC_LBN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	btsl	%ecx, %eax
	btsl	%edx, %eax
LBB0_6:
	movq	_ETHTOOL_FEC_BASER@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_MC_CMD_PHY_CAP_BASER_FEC_LBN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_MC_CMD_PHY_CAP_25G_BASER_FEC_LBN@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movq	_MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN@GOTPCREL(%rip), %rsi
	movb	(%rsi), %sil
	movq	_MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN@GOTPCREL(%rip), %rdi
	movb	(%rdi), %dil
	btsl	%ecx, %eax
	btsl	%edx, %eax
	btsl	%esi, %eax
	btsl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_FEC_OFF,4,2            ## @ETHTOOL_FEC_OFF
	.comm	_ETHTOOL_FEC_AUTO,4,2           ## @ETHTOOL_FEC_AUTO
	.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_LBN,4,2 ## @MC_CMD_PHY_CAP_25G_BASER_FEC_LBN
	.comm	_MC_CMD_PHY_CAP_RS_FEC_LBN,4,2  ## @MC_CMD_PHY_CAP_RS_FEC_LBN
	.comm	_ETHTOOL_FEC_RS,4,2             ## @ETHTOOL_FEC_RS
	.comm	_MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN,4,2 ## @MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN
	.comm	_ETHTOOL_FEC_BASER,4,2          ## @ETHTOOL_FEC_BASER
	.comm	_MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN,4,2 ## @MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN
	.comm	_MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN,4,2 ## @MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN
	.no_dead_strip	_ethtool_fec_caps_to_mcdi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethtool_fec_caps_to_mcdi
_ethtool_fec_caps_to_mcdi:              ; @ethtool_fec_caps_to_mcdi
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ETHTOOL_FEC_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_FEC_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
Lloh3:
	adrp	x8, _ETHTOOL_FEC_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETHTOOL_FEC_AUTO@GOTPAGEOFF]
Lloh5:
	adrp	x11, _MC_CMD_PHY_CAP_RS_FEC_LBN@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MC_CMD_PHY_CAP_RS_FEC_LBN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x10, _MC_CMD_PHY_CAP_BASER_FEC_LBN@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MC_CMD_PHY_CAP_BASER_FEC_LBN@GOTPAGEOFF]
Lloh10:
	adrp	x9, _MC_CMD_PHY_CAP_25G_BASER_FEC_LBN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MC_CMD_PHY_CAP_25G_BASER_FEC_LBN@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x10]
	mov	w12, #1
	lsl	w8, w12, w8
	ldr	w13, [x9]
	lsl	w13, w12, w13
	orr	w8, w13, w8
	ldr	w13, [x11]
	lsl	w12, w12, w13
	orr	w8, w8, w12
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
Lloh12:
	adrp	x12, _ETHTOOL_FEC_RS@GOTPAGE
Lloh13:
	ldr	x12, [x12, _ETHTOOL_FEC_RS@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	tst	w12, w0
	b.eq	LBB0_7
; %bb.6:
	ldr	w11, [x11]
	mov	w12, #1
	lsl	w11, w12, w11
Lloh15:
	adrp	x13, _MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN@GOTPAGE
Lloh16:
	ldr	x13, [x13, _MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	lsl	w12, w12, w13
	orr	w8, w11, w8
	orr	w8, w8, w12
LBB0_7:
Lloh18:
	adrp	x11, _ETHTOOL_FEC_BASER@GOTPAGE
Lloh19:
	ldr	x11, [x11, _ETHTOOL_FEC_BASER@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	tst	w11, w0
	b.eq	LBB0_9
; %bb.8:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w10, w11, w10
	ldr	w9, [x9]
	lsl	w9, w11, w9
Lloh21:
	adrp	x12, _MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN@GOTPAGE
Lloh22:
	ldr	x12, [x12, _MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	lsl	w12, w11, w12
Lloh24:
	adrp	x13, _MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN@GOTPAGE
Lloh25:
	ldr	x13, [x13, _MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN@GOTPAGEOFF]
Lloh26:
	ldr	w13, [x13]
	lsl	w11, w11, w13
	orr	w8, w10, w8
	orr	w8, w8, w9
	orr	w8, w8, w12
	orr	w8, w8, w11
LBB0_9:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_FEC_OFF,4,2            ; @ETHTOOL_FEC_OFF
	.comm	_ETHTOOL_FEC_AUTO,4,2           ; @ETHTOOL_FEC_AUTO
	.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_LBN,4,2 ; @MC_CMD_PHY_CAP_25G_BASER_FEC_LBN
	.comm	_MC_CMD_PHY_CAP_RS_FEC_LBN,4,2  ; @MC_CMD_PHY_CAP_RS_FEC_LBN
	.comm	_ETHTOOL_FEC_RS,4,2             ; @ETHTOOL_FEC_RS
	.comm	_MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN,4,2 ; @MC_CMD_PHY_CAP_RS_FEC_REQUESTED_LBN
	.comm	_ETHTOOL_FEC_BASER,4,2          ; @ETHTOOL_FEC_BASER
	.comm	_MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN,4,2 ; @MC_CMD_PHY_CAP_BASER_FEC_REQUESTED_LBN
	.comm	_MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN,4,2 ; @MC_CMD_PHY_CAP_25G_BASER_FEC_REQUESTED_LBN
	.no_dead_strip	_ethtool_fec_caps_to_mcdi
.subsections_via_symbols
