	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx35lf1ge4ab_ecc_get_status
_mx35lf1ge4ab_ecc_get_status:           ## @mx35lf1ge4ab_ecc_get_status
	.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	%esi, %ebx
	movq	%rdi, %r15
	callq	_spinand_to_nand
	movq	%rax, %r14
	movq	_STATUS_ECC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	cmpl	$130, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_7
## %bb.3:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_4:
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mx35lf1ge4ab_get_eccsr
	testl	%eax, %eax
	jne	LBB0_5
## %bb.10:
	movl	-28(%rbp), %eax
	cmpl	(%r14), %eax
	setg	%cl
	testl	%eax, %eax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	testl	%eax, %eax
	je	LBB0_12
LBB0_5:
	movl	(%r14), %eax
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	-28(%rbp), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_ECC_MASK,4,2            ## @STATUS_ECC_MASK
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mx35lf1ge4ab_ecc_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mx35lf1ge4ab_ecc_get_status
_mx35lf1ge4ab_ecc_get_status:           ; @mx35lf1ge4ab_ecc_get_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	bl	_spinand_to_nand
Lloh0:
	adrp	x8, _STATUS_ECC_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_ECC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	mov	x19, x0
	add	x1, sp, #12
	mov	x0, x20
	bl	_mx35lf1ge4ab_get_eccsr
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [sp, #12]
	ldr	w9, [x19]
	cmp	w8, #0
	ccmp	w8, w9, #0, ne
	cset	w0, gt
	bl	_WARN_ON
	cbz	w0, LBB0_11
LBB0_6:
	ldr	w0, [x19]
	b	LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w0, [sp, #12]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_ECC_MASK,4,2            ; @STATUS_ECC_MASK
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mx35lf1ge4ab_ecc_get_status
.subsections_via_symbols
