	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_fmc2_calc_ecc_bytes
_stm32_fmc2_calc_ecc_bytes:             ## @stm32_fmc2_calc_ecc_bytes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_FMC2_ECC_HAM@GOTPCREL(%rip), %rax
	movq	_FMC2_ECC_BCH8@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	movl	$14, %ecx
	movl	$8, %edx
	cmovel	%ecx, %edx
	cmpl	%esi, (%rax)
	movl	$4, %eax
	cmovnel	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMC2_ECC_HAM,4,2               ## @FMC2_ECC_HAM
	.comm	_FMC2_ECC_BCH8,4,2              ## @FMC2_ECC_BCH8
	.no_dead_strip	_stm32_fmc2_calc_ecc_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_fmc2_calc_ecc_bytes
_stm32_fmc2_calc_ecc_bytes:             ; @stm32_fmc2_calc_ecc_bytes
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _FMC2_ECC_HAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FMC2_ECC_HAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FMC2_ECC_BCH8@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FMC2_ECC_BCH8@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #8
	mov	w11, #14
	cmp	w9, w1
	csel	w9, w11, w10, eq
	mov	w10, #4
	cmp	w8, w1
	csel	w0, w10, w9, eq
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FMC2_ECC_HAM,4,2               ; @FMC2_ECC_HAM
	.comm	_FMC2_ECC_BCH8,4,2              ; @FMC2_ECC_BCH8
	.no_dead_strip	_stm32_fmc2_calc_ecc_bytes
.subsections_via_symbols
