	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function incremental_errors_test
_incremental_errors_test:               ## @incremental_errors_test
	.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
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_mtd@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_seed@GOTPCREL(%rip), %r15
	movq	_wbuffer@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_hash
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	(%r14), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movl	$1, %edi
	callq	_write_page
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.4:
	movl	$1, %edi
	callq	_rewrite_page
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.5:
	movq	_subcount@GOTPCREL(%rip), %r13
	movq	_subsize@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
	movl	$1, %edi
	callq	_rewrite_page
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	$1, %edi
	callq	_read_page
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	js	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_verify_page
	testl	%eax, %eax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pr_info
	cmpl	$0, (%r13)
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	imull	%r15d, %edi
	callq	_insert_biterror
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=2
	incl	%r15d
	cmpl	(%r13), %r15d
	jb	LBB0_15
	jmp	LBB0_17
LBB0_16:
	movl	%eax, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_18
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incremental biterrors test\n"

	.comm	_mtd,8,3                        ## @mtd
	.comm	_seed,8,3                       ## @seed
	.comm	_wbuffer,8,3                    ## @wbuffer
L_.str.1:                               ## @.str.1
	.asciz	"Read reported %d corrected bit errors\n"

L_.str.2:                               ## @.str.2
	.asciz	"After %d biterrors per subpage, read reported error %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"ECC failure, read data is incorrect despite read success\n"

L_.str.4:                               ## @.str.4
	.asciz	"Successfully corrected %d bit errors per subpage\n"

	.comm	_subcount,4,2                   ## @subcount
	.comm	_subsize,4,2                    ## @subsize
	.no_dead_strip	_incremental_errors_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function incremental_errors_test
_incremental_errors_test:               ; @incremental_errors_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x19, _mtd@GOTPAGE
Lloh3:
	ldr	x19, [x19, _mtd@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, #0
Lloh4:
	adrp	x21, _seed@GOTPAGE
Lloh5:
	ldr	x21, [x21, _seed@GOTPAGEOFF]
Lloh6:
	adrp	x22, _wbuffer@GOTPAGE
Lloh7:
	ldr	x22, [x22, _wbuffer@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x20, x8
	bl	_hash
	ldr	x8, [x22]
	str	w0, [x8, x20, lsl #2]
	add	x20, x20, #1
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	mov	w0, #1
	bl	_write_page
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.4:
	mov	w0, #1
	bl	_rewrite_page
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.5:
	mov	w22, #0
Lloh8:
	adrp	x19, l_.str.1@PAGE
Lloh9:
	add	x19, x19, l_.str.1@PAGEOFF
Lloh10:
	adrp	x23, _subcount@GOTPAGE
Lloh11:
	ldr	x23, [x23, _subcount@GOTPAGEOFF]
Lloh12:
	adrp	x24, _subsize@GOTPAGE
Lloh13:
	ldr	x24, [x24, _subsize@GOTPAGEOFF]
Lloh14:
	adrp	x20, l_.str.4@PAGE
Lloh15:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
	mov	w0, #1
	bl	_rewrite_page
	mov	x21, x0
	cbnz	w0, LBB0_16
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	w0, #1
	bl	_read_page
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x0, [sp]
	mov	x0, x19
	bl	_pr_info
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w0, #31, LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	bl	_verify_page
	cbnz	w0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x22, [sp]
	mov	x0, x20
	bl	_pr_info
	ldr	w8, [x23]
	cbz	w8, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #0
LBB0_13:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x24]
	mul	w0, w8, w25
	bl	_insert_biterror
	tbnz	w0, #31, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	w25, w25, #1
	ldr	w8, [x23]
	cmp	w25, w8
	b.lo	LBB0_13
	b	LBB0_6
LBB0_15:
	mov	x21, x0
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	mov	x21, x0
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_16
LBB0_18:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x0, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	mov	w21, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incremental biterrors test\n"

	.comm	_mtd,8,3                        ; @mtd
	.comm	_seed,8,3                       ; @seed
	.comm	_wbuffer,8,3                    ; @wbuffer
l_.str.1:                               ; @.str.1
	.asciz	"Read reported %d corrected bit errors\n"

l_.str.2:                               ; @.str.2
	.asciz	"After %d biterrors per subpage, read reported error %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"ECC failure, read data is incorrect despite read success\n"

l_.str.4:                               ; @.str.4
	.asciz	"Successfully corrected %d bit errors per subpage\n"

	.comm	_subcount,4,2                   ; @subcount
	.comm	_subsize,4,2                    ; @subsize
	.no_dead_strip	_incremental_errors_test
.subsections_via_symbols
