	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_eraseblock_ff
_verify_eraseblock_ff:                  ## @verify_eraseblock_ff
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	_mtd@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %r14d
	movq	_writebuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_subpgsize@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movl	$255, %esi
	callq	_memset
	movq	(%r15), %rax
	movslq	(%rax), %rax
	movq	(%rbx), %rsi
	xorl	%r13d, %r13d
	cmpq	%rax, %rsi
	ja	LBB0_12
## %bb.1:
	imull	%r12d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rsi
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%esi, %r14d
	cmpq	%rax, %r15
	jae	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_readbuf@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_clear_data
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rbx), %rdx
	movl	(%r12), %r8d
	movl	%r14d, %esi
	leaq	-48(%rbp), %rcx
	callq	_mtd_read
	movl	%eax, %r13d
	testl	%eax, %eax
	setne	%al
	movq	-48(%rbp), %rcx
	cmpq	(%rbx), %rcx
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	movslq	%r14d, %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_mtd_is_bitflip
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_pr_info
	xorl	%r13d, %r13d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_readbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_writebuf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	callq	_memcmp
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_pr_err
	movq	_errcnt@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rsi
	incq	%r15
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_11
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_pr_err
	xorl	%eax, %eax
	cmpl	$1, %r13d
	sbbl	%eax, %eax
	orl	%eax, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mtd,8,3                        ## @mtd
	.comm	_writebuf,4,2                   ## @writebuf
	.comm	_subpgsize,8,3                  ## @subpgsize
	.comm	_readbuf,4,2                    ## @readbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ECC correction at %#llx\n"

L_.str.1:                               ## @.str.1
	.asciz	"error: read failed at %#llx\n"

L_.str.2:                               ## @.str.2
	.asciz	"error: verify 0xff failed at %#llx\n"

	.comm	_errcnt,4,2                     ## @errcnt
	.no_dead_strip	_verify_eraseblock_ff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_eraseblock_ff
_verify_eraseblock_ff:                  ; @verify_eraseblock_ff
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x23, _mtd@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mtd@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w20, [x8]
Lloh2:
	adrp	x24, _writebuf@GOTPAGE
Lloh3:
	ldr	x24, [x24, _writebuf@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh4:
	adrp	x25, _subpgsize@GOTPAGE
Lloh5:
	ldr	x25, [x25, _subpgsize@GOTPAGEOFF]
	ldr	x2, [x25]
	mov	w1, #255
	bl	_memset
	ldr	x8, [x23]
	ldrsw	x8, [x8]
	ldr	x1, [x25]
	cmp	x1, x8
	b.ls	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_11
LBB0_2:
	mov	x26, #0
	mul	w19, w20, w19
Lloh6:
	adrp	x27, _readbuf@GOTPAGE
Lloh7:
	ldr	x27, [x27, _readbuf@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str.2@PAGE
Lloh9:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh10:
	adrp	x28, _errcnt@GOTPAGE
Lloh11:
	ldr	x28, [x28, _errcnt@GOTPAGEOFF]
Lloh12:
	adrp	x21, l_.str@PAGE
Lloh13:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25]
	add	w19, w19, w1
	add	x26, x26, #1
	ldr	x8, [x23]
	ldrsw	x8, [x8]
	udiv	x8, x8, x1
	cmp	x26, x8
	b.hs	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	bl	_clear_data
	ldr	x0, [x23]
	ldr	x2, [x25]
	ldr	w4, [x27]
	add	x3, sp, #8
	mov	x1, x19
	bl	_mtd_read
	mov	x22, x0
	cmp	w0, #0
	ldr	x8, [sp, #8]
	ldr	x9, [x25]
	ccmp	x8, x9, #0, eq
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_mtd_is_bitflip
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x1, w19
	mov	x0, x21
	bl	_pr_info
	mov	w22, #0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27]
	ldr	w1, [x24]
	ldr	x2, [x25]
	bl	_memcmp
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x19
	sxtw	x1, w8
	mov	x0, x20
	bl	_pr_err
	ldr	w8, [x28]
	add	w8, w8, #1
	str	w8, [x28]
	b	LBB0_3
LBB0_10:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	sxtw	x1, w19
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	cmp	w22, #0
	csinv	w22, w22, wzr, ne
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_mtd,8,3                        ; @mtd
	.comm	_writebuf,4,2                   ; @writebuf
	.comm	_subpgsize,8,3                  ; @subpgsize
	.comm	_readbuf,4,2                    ; @readbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ECC correction at %#llx\n"

l_.str.1:                               ; @.str.1
	.asciz	"error: read failed at %#llx\n"

l_.str.2:                               ; @.str.2
	.asciz	"error: verify 0xff failed at %#llx\n"

	.comm	_errcnt,4,2                     ; @errcnt
	.no_dead_strip	_verify_eraseblock_ff
.subsections_via_symbols
