	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function report_corrupt
_report_corrupt:                        ## @report_corrupt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mtd@GOTPCREL(%rip), %rbx
	movq	_pgcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_pgsize@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	(%rax), %r14
	jmp	LBB0_3
LBB0_1:
	imull	%ecx, %eax
	movslq	%eax, %r14
LBB0_3:
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	testq	%r14, %r14
	je	LBB0_14
## %bb.4:
	movq	%rsi, %r12
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	%rdi, %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	leaq	-44(%rbp), %r8
	leaq	-48(%rbp), %r9
	callq	_countdiffs
	notl	%eax
	shrl	$31, %eax
	addl	%eax, %r15d
	movq	_pgsize@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	%ecx, %ebx
	movslq	%ebx, %rax
	cmpq	%rax, %r14
	ja	LBB0_5
## %bb.6:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_info
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	testq	%r14, %r14
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_pgsize@GOTPCREL(%rip), %rbx
	je	LBB0_15
## %bb.7:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_pr_info
	movl	%r15d, %edx
	andl	$-8, %edx
	movl	-44(%rbp), %ecx
	addl	%r15d, %ecx
	orl	$7, %ecx
	subl	%edx, %ecx
	incl	%ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_print_bufs
	movq	_pgsize@GOTPCREL(%rip), %rbx
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	(%rbx), %rax
	movslq	%r13d, %r12
	addq	%rax, %r12
	movl	%r12d, %r13d
	cmpq	%r12, %r14
	jbe	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cond_resched
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	(%rbx), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	leaq	-44(%rbp), %r8
	leaq	-48(%rbp), %r9
	callq	_countdiffs
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdi
	callq	_printk
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%r14, %r12
	addq	(%rax), %r12
	movslq	(%rbx), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_12
LBB0_14:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mtd,8,3                        ## @mtd
	.comm	_pgcnt,4,2                      ## @pgcnt
	.comm	_pgsize,4,2                     ## @pgsize
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"verify fails on %d pages, %d bytes/%d bits\n"

L_.str.1:                               ## @.str.1
	.asciz	"The following is a list of all differences between what was read from flash and what was expected\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"Page %zd has %d bytes/%d bits failing verify, starting at offset 0x%x\n"

	.no_dead_strip	_report_corrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function report_corrupt
_report_corrupt:                        ; @report_corrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x25, _mtd@GOTPAGE
Lloh1:
	ldr	x25, [x25, _mtd@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _pgcnt@GOTPAGE
Lloh3:
	ldr	x9, [x9, _pgcnt@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x26, _pgsize@GOTPAGE
Lloh6:
	ldr	x26, [x26, _pgsize@GOTPAGEOFF]
	ldr	w3, [x26]
	mul	w10, w3, w9
	sxtw	x10, w10
	cmp	w9, #0
	csel	x27, x8, x10, eq
	str	xzr, [sp, #40]
	cbz	x27, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x4, sp, #44
	add	x5, sp, #40
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_countdiffs
	mvn	w8, w0
	add	w22, w22, w8, lsr #31
	ldr	w3, [x26]
	add	w21, w3, w21
	cmp	x27, w21, sxtw
	b.hi	LBB0_2
; %bb.3:
	ldp	w9, w8, [sp, #40]
	stp	x8, x9, [sp, #8]
	str	x22, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	cbz	x27, LBB0_9
; %bb.4:
	mov	x28, #0
	mov	w21, #0
Lloh11:
	adrp	x22, l_.str.2@PAGE
Lloh12:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh13:
	adrp	x23, l_.str.3@PAGE
Lloh14:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x26]
	add	x28, x8, w21, sxtw
	mov	x21, x28
	cmp	x27, x28
	b.ls	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_cond_resched
	str	xzr, [sp, #40]
	ldr	w3, [x26]
	add	x4, sp, #44
	add	x5, sp, #40
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_countdiffs
	tbnz	w0, #31, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	mov	x0, x22
	bl	_printk
	ldr	x8, [x25]
	ldr	x8, [x8]
	sub	x9, x28, x27
	add	x8, x9, x8
	ldrsw	x9, [x26]
	ldp	w11, w10, [sp, #40]
	udiv	x8, x8, x9
	stp	x11, x24, [sp, #16]
	stp	x8, x10, [sp]
	mov	x0, x23
	bl	_pr_info
	and	w2, w24, #0xfffffff8
	ldr	w8, [sp, #44]
	add	w8, w8, w24
	orr	w8, w8, #0x7
	sub	w8, w8, w2
	add	w3, w8, #1
	mov	x0, x20
	mov	x1, x19
	bl	_print_bufs
	b	LBB0_5
LBB0_8:
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
LBB0_9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mtd,8,3                        ; @mtd
	.comm	_pgcnt,4,2                      ; @pgcnt
	.comm	_pgsize,4,2                     ; @pgsize
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"verify fails on %d pages, %d bytes/%d bits\n"

l_.str.1:                               ; @.str.1
	.asciz	"The following is a list of all differences between what was read from flash and what was expected\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"Page %zd has %d bytes/%d bits failing verify, starting at offset 0x%x\n"

	.no_dead_strip	_report_corrupt
.subsections_via_symbols
