	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spinand_ecc_enable
_spinand_ecc_enable:                    ## @spinand_ecc_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edx
	movq	_CFG_ECC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%edx, %edx
	cmovnel	%esi, %edx
	popq	%rbp
	jmp	_spinand_upd_cfg                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_ECC_ENABLE,4,2             ## @CFG_ECC_ENABLE
	.no_dead_strip	_spinand_ecc_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spinand_ecc_enable
_spinand_ecc_enable:                    ; @spinand_ecc_enable
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CFG_ECC_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CFG_ECC_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, #0
	csel	w2, wzr, w8, eq
	mov	x1, x8
	b	_spinand_upd_cfg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_ECC_ENABLE,4,2             ; @CFG_ECC_ENABLE
	.no_dead_strip	_spinand_ecc_enable
.subsections_via_symbols
