	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_eraseblock
_verify_eraseblock:                     ## @verify_eraseblock
	.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
	movq	_mtd@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	(%rax), %rax
	movslq	%edi, %r14
	imulq	%rax, %r14
	movq	_writebuf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_subpgsize@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	_rnd_state@GOTPCREL(%rip), %rdi
	callq	_prandom_bytes_state
	movq	_readbuf@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	(%r12), %rsi
	callq	_clear_data
	movq	(%r15), %rdi
	movq	(%r12), %rdx
	movl	(%r13), %r8d
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	callq	_mtd_read
	movl	%eax, %ebx
	testl	%eax, %eax
	setne	%al
	movq	-48(%rbp), %rcx
	cmpq	(%r12), %rcx
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	%ebx, %edi
	callq	_mtd_is_bitflip
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	-48(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_4:
	movl	(%r13), %edi
	movq	_writebuf@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	(%r12), %rdx
	callq	_memcmp
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movslq	%r14d, %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movl	(%rbx), %edi
	callq	_print_subpage
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movl	(%r13), %edi
	callq	_print_subpage
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_errcnt@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_6:
	movq	(%r12), %rdx
	addl	%edx, %r14d
	movl	(%rbx), %esi
	movq	_rnd_state@GOTPCREL(%rip), %rdi
	callq	_prandom_bytes_state
	movl	(%r13), %edi
	movq	(%r12), %rsi
	callq	_clear_data
	movq	(%r15), %rdi
	movq	(%r12), %rdx
	movl	(%r13), %r8d
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	callq	_mtd_read
	movl	%eax, %r15d
	testl	%eax, %eax
	setne	%al
	movq	-48(%rbp), %rcx
	cmpq	(%r12), %rcx
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	%r15d, %edi
	callq	_mtd_is_bitflip
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	-48(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.9:
	movslq	%r14d, %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_info
LBB0_10:
	movl	(%r13), %edi
	movl	(%rbx), %esi
	movq	(%r12), %rdx
	callq	_memcmp
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movslq	%r14d, %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movl	(%rbx), %edi
	callq	_print_subpage
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movl	(%r13), %edi
	callq	_print_subpage
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_errcnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_12
LBB0_13:
	movslq	%r14d, %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	xorl	%r15d, %r15d
	cmpl	$1, %ebx
	sbbl	%r15d, %r15d
	orl	%ebx, %r15d
	jmp	LBB0_12
LBB0_14:
	movslq	%r14d, %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	xorl	%eax, %eax
	cmpl	$1, %r15d
	sbbl	%eax, %eax
	orl	%eax, %r15d
LBB0_12:
	movl	%r15d, %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	_rnd_state,4,2                  ## @rnd_state
	.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 failed at %#llx\n"

L_.str.3:                               ## @.str.3
	.asciz	"------------- written----------------\n"

L_.str.4:                               ## @.str.4
	.asciz	"------------- read ------------------\n"

L_.str.5:                               ## @.str.5
	.asciz	"-------------------------------------\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_eraseblock
_verify_eraseblock:                     ; @verify_eraseblock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x24, _mtd@GOTPAGE
Lloh1:
	ldr	x24, [x24, _mtd@GOTPAGEOFF]
	ldr	x8, [x24]
	ldrsw	x8, [x8]
	sxtw	x9, w0
	mul	x19, x8, x9
Lloh2:
	adrp	x21, _writebuf@GOTPAGE
Lloh3:
	ldr	x21, [x21, _writebuf@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x23, _subpgsize@GOTPAGE
Lloh5:
	ldr	x23, [x23, _subpgsize@GOTPAGEOFF]
	ldr	x2, [x23]
Lloh6:
	adrp	x0, _rnd_state@GOTPAGE
Lloh7:
	ldr	x0, [x0, _rnd_state@GOTPAGEOFF]
	bl	_prandom_bytes_state
Lloh8:
	adrp	x22, _readbuf@GOTPAGE
Lloh9:
	ldr	x22, [x22, _readbuf@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x1, [x23]
	bl	_clear_data
	ldr	x0, [x24]
	ldr	x2, [x23]
	ldr	w4, [x22]
	add	x3, sp, #8
	mov	x1, x19
	bl	_mtd_read
	mov	x20, x0
	cmp	w0, #0
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	ccmp	x8, x9, #0, eq
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_mtd_is_bitflip
	cbz	x0, LBB0_12
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.3:
	str	x19, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_4:
	ldr	w0, [x22]
	ldr	w1, [x21]
	ldr	x2, [x23]
	bl	_memcmp
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	mov	x8, x19
	sxtw	x1, w8
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	ldr	w0, [x21]
	bl	_print_subpage
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	ldr	w0, [x22]
	bl	_print_subpage
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_info
Lloh20:
	adrp	x8, _errcnt@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_6:
	ldr	x2, [x23]
	add	w20, w19, w2
	ldr	w1, [x21]
Lloh22:
	adrp	x0, _rnd_state@GOTPAGE
Lloh23:
	ldr	x0, [x0, _rnd_state@GOTPAGEOFF]
	bl	_prandom_bytes_state
	ldr	w0, [x22]
	ldr	x1, [x23]
	bl	_clear_data
	ldr	x0, [x24]
	ldr	x2, [x23]
	ldr	w4, [x22]
	add	x3, sp, #8
	mov	x1, x20
	bl	_mtd_read
	mov	x19, x0
	cmp	w0, #0
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	ccmp	x8, x9, #0, eq
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_mtd_is_bitflip
	cbz	x0, LBB0_13
; %bb.8:
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.9:
	mov	x8, x20
	sxtw	x8, w8
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	w19, #0
LBB0_10:
	ldr	w0, [x22]
	ldr	w1, [x21]
	ldr	x2, [x23]
	bl	_memcmp
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.11:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x8, w20
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	ldr	w0, [x21]
	bl	_print_subpage
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	ldr	w0, [x22]
	bl	_print_subpage
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_info
Lloh34:
	adrp	x8, _errcnt@GOTPAGE
Lloh35:
	ldr	x8, [x8, _errcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_14
LBB0_12:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	sxtw	x1, w19
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	cmp	w20, #0
	csinv	w19, w20, wzr, ne
	b	LBB0_14
LBB0_13:
	sxtw	x1, w20
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	cmp	w19, #0
	csinv	w19, w19, wzr, ne
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_mtd,8,3                        ; @mtd
	.comm	_rnd_state,4,2                  ; @rnd_state
	.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 failed at %#llx\n"

l_.str.3:                               ; @.str.3
	.asciz	"------------- written----------------\n"

l_.str.4:                               ; @.str.4
	.asciz	"------------- read ------------------\n"

l_.str.5:                               ; @.str.5
	.asciz	"-------------------------------------\n"

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