	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkTreePage
_checkTreePage:                         ## @checkTreePage
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -200(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -248(%rbp)
	movq	$0, -208(%rbp)
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	leaq	-160(%rbp), %rsi
	movl	$100, %edi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_sqlite3_snprintf
	testl	%r15d, %r15d
	je	LBB0_114
## %bb.1:
	movq	%r12, -240(%rbp)                ## 8-byte Spill
	movq	16(%rbx), %r12
	movslq	(%r12), %rax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_checkRef
	testq	%rax, %rax
	jne	LBB0_114
## %bb.2:
	movq	-216(%rbp), %r13                ## 8-byte Reload
	movq	%rbx, -168(%rbp)                ## 8-byte Spill
	leaq	-176(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_btreeGetPage
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	leaq	L_.str.1(%rip), %rdx
	leaq	-160(%rbp), %rsi
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_checkAppendMsg
	jmp	LBB0_114
LBB0_4:
	movq	%r12, -192(%rbp)                ## 8-byte Spill
	movq	-176(%rbp), %rdi
	movq	$0, 32(%rdi)
	callq	_btreeInitPage
	testl	%eax, %eax
	je	LBB0_5
## %bb.9:
	movl	%eax, %ebx
	movq	_SQLITE_CORRUPT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	sete	%dil
	callq	_assert
	leaq	L_.str.2(%rip), %rdx
	xorl	%r14d, %r14d
	leaq	-160(%rbp), %rsi
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_checkAppendMsg
	movq	-176(%rbp), %rdi
	callq	_releasePage
	jmp	LBB0_114
LBB0_5:
	movq	-176(%rbp), %rax
	movl	$0, -180(%rbp)                  ## 4-byte Folded Spill
	cmpl	$0, (%rax)
	movl	%r15d, -184(%rbp)               ## 4-byte Spill
	jle	LBB0_6
## %bb.7:
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	cmpq	$0, 8(%rcx)
	movq	-192(%rbp), %r12                ## 8-byte Reload
	je	LBB0_35
## %bb.8:
	leaq	-5(%r13), %rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	leaq	-4(%r13), %rax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	leaq	-160(%rbp), %rbx
	movl	$0, -180(%rbp)                  ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	movq	%rbx, %rsi
	leaq	L_.str.3(%rip), %rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_sqlite3_snprintf
	movq	-176(%rbp), %rdi
	movl	%r14d, %esi
	callq	_findCell
	movq	%rax, %r13
	movq	-176(%rbp), %rdi
	movq	%rax, %rsi
	leaq	-296(%rbp), %rdx
	callq	_btreeParseCellPtr
	movq	-296(%rbp), %r15
	movq	-176(%rbp), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-264(%rbp), %rcx
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-208(%rbp), %r8
	cmpq	%r8, %rcx
	jg	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	leaq	-160(%rbp), %rsi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_checkAppendMsg
	movq	-264(%rbp), %rcx
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rcx, -208(%rbp)
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movslq	-264(%rbp), %rax
	addq	%rax, %r15
	jmp	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rcx, -208(%rbp)
	movq	%rcx, -248(%rbp)
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%edi, %edi
	cmpq	-288(%rbp), %r15
	sete	%dil
	callq	_assert
	movq	-280(%rbp), %rax
	cmpq	%rax, %r15
	jle	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-272(%rbp), %rcx
	leaq	(,%rcx,4), %rdi
	addq	%r13, %rdi
	movq	-176(%rbp), %rcx
	movslq	(%r12), %rdx
	shlq	$2, %rdx
	addq	8(%rcx), %rdx
	cmpq	%rdx, %rdi
	ja	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	-232(%rbp), %r15                ## 8-byte Folded Reload
	subq	%rax, %r15
	movq	%r15, %rax
	movq	-256(%rbp), %rcx                ## 8-byte Reload
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	callq	_get4byte
	movl	%eax, %ebx
	movq	-192(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, 8(%rax)
	movq	-168(%rbp), %r12                ## 8-byte Reload
	leaq	-160(%rbp), %r15
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_PTRMAP_OVERFLOW1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	-184(%rbp), %ecx                ## 4-byte Reload
	movq	%r15, %r8
	callq	_checkPtrmap
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movq	-224(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r15, %r8
	callq	_checkList
	movq	-192(%rbp), %r12                ## 8-byte Reload
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-176(%rbp), %rax
	cmpl	$0, 16(%rax)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-184(%rbp), %r15d               ## 4-byte Reload
	leaq	-160(%rbp), %rbx
	jmp	LBB0_34
LBB0_28:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	callq	_get4byte
	movq	%r12, %rcx
	movl	%eax, %r13d
	cmpq	$0, 8(%r12)
	movl	-184(%rbp), %r15d               ## 4-byte Reload
	movq	-168(%rbp), %r12                ## 8-byte Reload
	leaq	-160(%rbp), %rbx
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_PTRMAP_BTREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %ecx
	movq	%rbx, %r8
	callq	_checkPtrmap
LBB0_30:                                ##   in Loop: Header=BB0_11 Depth=1
	testl	%r14d, %r14d
	leaq	-208(%rbp), %r8
	movl	$0, %eax
	cmoveq	%rax, %r8
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	leaq	-248(%rbp), %rcx
	callq	_checkTreePage
	movl	%eax, %r13d
	testl	%r14d, %r14d
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	-180(%rbp), %r13d               ## 4-byte Folded Reload
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_checkAppendMsg
LBB0_33:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r13d, -180(%rbp)               ## 4-byte Spill
	movq	-192(%rbp), %r12                ## 8-byte Reload
LBB0_34:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r14d
	movq	-176(%rbp), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_35
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	cmpq	$0, 8(%rcx)
	jne	LBB0_11
	jmp	LBB0_35
LBB0_6:
	movq	-192(%rbp), %r12                ## 8-byte Reload
LBB0_35:
	cmpl	$0, 16(%rax)
	jne	LBB0_39
## %bb.36:
	movq	8(%rax), %rcx
	movslq	20(%rax), %rax
	leaq	(%rcx,%rax,4), %rdi
	addq	$32, %rdi
	callq	_get4byte
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rdx
	leaq	-160(%rbp), %rsi
	movl	$100, %edi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_sqlite3_snprintf
	cmpq	$0, 8(%r12)
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_38
## %bb.37:
	movq	_PTRMAP_BTREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-160(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %ecx
	callq	_checkPtrmap
LBB0_38:
	movq	-176(%rbp), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	leaq	-208(%rbp), %r8
	cmoveq	%rcx, %r8
	leaq	-160(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_checkTreePage
	movq	-176(%rbp), %rax
	cmpl	$0, 16(%rax)
	je	LBB0_53
LBB0_39:
	cmpq	$0, 24(%rax)
	je	LBB0_53
## %bb.40:
	movq	-240(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_49
## %bb.41:
	movq	-200(%rbp), %r14                ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_42
## %bb.44:
	movq	-248(%rbp), %rcx
	movq	(%rbx), %r8
	cmpq	%r8, %rcx
	jg	LBB0_46
## %bb.45:
	leaq	L_.str.8(%rip), %rdx
	leaq	-160(%rbp), %rsi
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_checkAppendMsg
LBB0_46:
	movq	-208(%rbp), %rcx
	movq	(%r14), %r8
	cmpq	%r8, %rcx
	jle	LBB0_48
## %bb.47:
	leaq	L_.str.9(%rip), %rdx
	leaq	-160(%rbp), %rsi
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_checkAppendMsg
	movq	-208(%rbp), %rcx
LBB0_48:
	movq	%rcx, (%rbx)
	jmp	LBB0_53
LBB0_49:
	cmpq	$0, -200(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_53
## %bb.50:
	movq	-248(%rbp), %rcx
	movq	-200(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r8
	cmpq	%r8, %rcx
	jg	LBB0_53
## %bb.51:
	leaq	L_.str.10(%rip), %rdx
	jmp	LBB0_52
LBB0_42:
	movq	-208(%rbp), %rcx
	movq	(%rbx), %r8
	cmpq	%r8, %rcx
	jle	LBB0_53
## %bb.43:
	leaq	L_.str.7(%rip), %rdx
LBB0_52:
	leaq	-160(%rbp), %rsi
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_checkAppendMsg
LBB0_53:
	movq	-176(%rbp), %rax
	movq	8(%rax), %r14
	movslq	20(%rax), %rbx
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_sqlite3PageMalloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_54
## %bb.55:
	leaq	(%r14,%rbx,4), %rdi
	addq	$20, %rdi
	callq	_get2byteNotZero
	movq	%rbx, %r12
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	%r14, %r15
	movq	-216(%rbp), %r14                ## 8-byte Reload
	cmpl	%eax, %r14d
	setge	%dil
	callq	_assert
	movslq	%ebx, %rbx
	leaq	(%rbx,%r13), %rdi
	movl	%r14d, %edx
	subl	%ebx, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	%r15, -200(%rbp)                ## 8-byte Spill
	movq	%r12, -224(%rbp)                ## 8-byte Spill
	leaq	(%r15,%r12,4), %rdi
	addq	$12, %rdi
	callq	_get2byte
	testl	%eax, %eax
	movq	-168(%rbp), %r12                ## 8-byte Reload
	jle	LBB0_80
## %bb.56:
	movq	-176(%rbp), %rcx
	movl	16(%rcx), %ecx
	shll	$2, %ecx
	movq	-224(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	subl	%ecx, %edx
	addl	$12, %edx
	movq	-216(%rbp), %rcx                ## 8-byte Reload
	addl	$-4, %ecx
	movl	%ecx, -240(%rbp)                ## 4-byte Spill
	movslq	%edx, %rcx
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	movl	%eax, %r14d
	leaq	-15(%r13), %rax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	leaq	-7(%r13), %rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_57
	.p2align	4, 0x90
LBB0_116:                               ##   in Loop: Header=BB0_57 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	leaq	L_.str.11(%rip), %rdx
	movl	%r15d, %ecx
	movl	-184(%rbp), %r8d                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_checkAppendMsg
LBB0_79:                                ##   in Loop: Header=BB0_57 Depth=1
	incq	%r15
	cmpq	%r14, %r15
	je	LBB0_80
LBB0_57:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_70 Depth 2
                                        ##     Child Loop BB0_65 Depth 2
                                        ##     Child Loop BB0_78 Depth 2
	movq	-192(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r15,2), %rax
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	callq	_get2byte
	movl	%eax, %ebx
	movl	$65536, %eax                    ## imm = 0x10000
	cmpl	-240(%rbp), %ebx                ## 4-byte Folded Reload
	jg	LBB0_59
## %bb.58:                              ##   in Loop: Header=BB0_57 Depth=1
	movq	-176(%rbp), %rdi
	movslq	%ebx, %rax
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	callq	_cellSizePtr
LBB0_59:                                ##   in Loop: Header=BB0_57 Depth=1
	addl	%ebx, %eax
	decl	%eax
	cmpl	-216(%rbp), %eax                ## 4-byte Folded Reload
	jge	LBB0_116
## %bb.60:                              ##   in Loop: Header=BB0_57 Depth=1
	cmpl	%ebx, %eax
	pcmpeqd	%xmm4, %xmm4
	jl	LBB0_79
## %bb.61:                              ##   in Loop: Header=BB0_57 Depth=1
	cltq
	movslq	%ebx, %rcx
	movq	%rax, %r9
	subq	%rcx, %r9
	incq	%r9
	cmpq	$8, %r9
	jb	LBB0_77
## %bb.62:                              ##   in Loop: Header=BB0_57 Depth=1
	cmpq	$32, %r9
	jae	LBB0_67
## %bb.63:                              ##   in Loop: Header=BB0_57 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_64
LBB0_67:                                ##   in Loop: Header=BB0_57 Depth=1
	movq	%r9, %rsi
	andq	$-32, %rsi
	leaq	-32(%rsi), %rdx
	movq	%rdx, %r8
	shrq	$5, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_68
## %bb.69:                              ##   in Loop: Header=BB0_57 Depth=1
	movq	%r8, %rdi
	movabsq	$1152921504606846974, %rdx      ## imm = 0xFFFFFFFFFFFFFFE
	andq	%rdx, %rdi
	movq	-256(%rbp), %rdx                ## 8-byte Reload
	addq	%rax, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_70:                                ##   Parent Loop BB0_57 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-48(%rdx,%rbx), %xmm0
	movdqu	-32(%rdx,%rbx), %xmm1
	movdqu	-16(%rdx,%rbx), %xmm2
	movdqu	(%rdx,%rbx), %xmm3
	psubb	%xmm4, %xmm3
	psubb	%xmm4, %xmm2
	movdqu	%xmm3, (%rdx,%rbx)
	movdqu	%xmm2, -16(%rdx,%rbx)
	psubb	%xmm4, %xmm1
	psubb	%xmm4, %xmm0
	movdqu	%xmm1, -32(%rdx,%rbx)
	movdqu	%xmm0, -48(%rdx,%rbx)
	addq	$-64, %rbx
	addq	$-2, %rdi
	jne	LBB0_70
## %bb.71:                              ##   in Loop: Header=BB0_57 Depth=1
	negq	%rbx
	jmp	LBB0_72
LBB0_68:                                ##   in Loop: Header=BB0_57 Depth=1
	xorl	%ebx, %ebx
LBB0_72:                                ##   in Loop: Header=BB0_57 Depth=1
	testb	$1, %r8b
	je	LBB0_74
## %bb.73:                              ##   in Loop: Header=BB0_57 Depth=1
	movq	%rax, %rdx
	subq	%rbx, %rdx
	movdqu	-31(%r13,%rdx), %xmm0
	movdqu	-15(%r13,%rdx), %xmm1
	psubb	%xmm4, %xmm1
	psubb	%xmm4, %xmm0
	movdqu	%xmm1, -15(%r13,%rdx)
	movdqu	%xmm0, -31(%r13,%rdx)
LBB0_74:                                ##   in Loop: Header=BB0_57 Depth=1
	cmpq	%rsi, %r9
	je	LBB0_79
## %bb.75:                              ##   in Loop: Header=BB0_57 Depth=1
	testb	$24, %r9b
	je	LBB0_76
LBB0_64:                                ##   in Loop: Header=BB0_57 Depth=1
	movq	%r9, %rdx
	andq	$-8, %rdx
	movq	%rdx, %rdi
	negq	%rdi
	negq	%rsi
	movq	-232(%rbp), %rbx                ## 8-byte Reload
	addq	%rax, %rbx
	subq	%rdx, %rax
	.p2align	4, 0x90
LBB0_65:                                ##   Parent Loop BB0_57 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%rsi), %xmm0              ## xmm0 = mem[0],zero
	psubb	%xmm4, %xmm0
	movq	%xmm0, (%rbx,%rsi)
	addq	$-8, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_65
## %bb.66:                              ##   in Loop: Header=BB0_57 Depth=1
	cmpq	%rdx, %r9
	je	LBB0_79
	jmp	LBB0_77
LBB0_76:                                ##   in Loop: Header=BB0_57 Depth=1
	subq	%rsi, %rax
LBB0_77:                                ##   in Loop: Header=BB0_57 Depth=1
	incq	%rax
	.p2align	4, 0x90
LBB0_78:                                ##   Parent Loop BB0_57 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incb	-1(%r13,%rax)
	decq	%rax
	cmpq	%rcx, %rax
	jg	LBB0_78
	jmp	LBB0_79
LBB0_80:
	movq	-200(%rbp), %r14                ## 8-byte Reload
	movq	-224(%rbp), %rax                ## 8-byte Reload
	leaq	(%r14,%rax,4), %rdi
	addq	$4, %rdi
	callq	_get2byte
	testl	%eax, %eax
	jle	LBB0_84
## %bb.81:
	movl	%eax, %r15d
	movq	-216(%rbp), %rax                ## 8-byte Reload
	leal	-4(%rax), %ebx
	leaq	-16(%r13), %rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	addq	$-8, %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movl	%ebx, -240(%rbp)                ## 4-byte Spill
	jmp	LBB0_82
LBB0_83:                                ##   in Loop: Header=BB0_82 Depth=1
	movq	-200(%rbp), %r14                ## 8-byte Reload
LBB0_104:                               ##   in Loop: Header=BB0_82 Depth=1
	leaq	(%r14,%r12,4), %rdi
	callq	_get2byte
	movl	%eax, %r15d
	testl	%eax, %eax
	sete	%al
	cmpl	%ebx, %r15d
	setg	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%edi, %edi
	movl	-240(%rbp), %ebx                ## 4-byte Reload
	cmpl	%ebx, %r15d
	setle	%dil
	callq	_assert
	testl	%r15d, %r15d
	jle	LBB0_84
LBB0_82:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_96 Depth 2
                                        ##     Child Loop BB0_91 Depth 2
                                        ##     Child Loop BB0_103 Depth 2
	xorl	%edi, %edi
	cmpl	%ebx, %r15d
	setle	%dil
	callq	_assert
	movl	%r15d, %r12d
	leaq	(%r14,%r12,4), %rdi
	addq	$8, %rdi
	callq	_get2byte
	movl	%eax, %r14d
	movl	%r15d, %ebx
	addl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	-216(%rbp), %ebx                ## 4-byte Folded Reload
	setle	%dil
	callq	_assert
	testl	%r14d, %r14d
	jle	LBB0_83
## %bb.86:                              ##   in Loop: Header=BB0_82 Depth=1
	movslq	%ebx, %rax
	leaq	-1(%rax), %rcx
	cmpq	%r12, %rcx
	cmovgeq	%r12, %rcx
	movq	%rax, %r9
	subq	%rcx, %r9
	cmpq	$8, %r9
	jae	LBB0_88
## %bb.87:                              ##   in Loop: Header=BB0_82 Depth=1
	movq	-200(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_103
LBB0_88:                                ##   in Loop: Header=BB0_82 Depth=1
	cmpq	$32, %r9
	movq	-200(%rbp), %r14                ## 8-byte Reload
	pcmpeqd	%xmm4, %xmm4
	jae	LBB0_93
## %bb.89:                              ##   in Loop: Header=BB0_82 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_90
LBB0_93:                                ##   in Loop: Header=BB0_82 Depth=1
	movq	%r9, %rdx
	andq	$-32, %rdx
	leaq	-32(%rdx), %rcx
	movq	%rcx, %r8
	shrq	$5, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_94
## %bb.95:                              ##   in Loop: Header=BB0_82 Depth=1
	movl	%ebx, %r10d
	movq	%r8, %rdi
	movabsq	$1152921504606846974, %rcx      ## imm = 0xFFFFFFFFFFFFFFE
	andq	%rcx, %rdi
	movq	-232(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_96:                                ##   Parent Loop BB0_82 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-48(%rbx,%rsi), %xmm0
	movdqu	-32(%rbx,%rsi), %xmm1
	movdqu	-16(%rbx,%rsi), %xmm2
	movdqu	(%rbx,%rsi), %xmm3
	psubb	%xmm4, %xmm3
	psubb	%xmm4, %xmm2
	movdqu	%xmm3, (%rbx,%rsi)
	movdqu	%xmm2, -16(%rbx,%rsi)
	psubb	%xmm4, %xmm1
	psubb	%xmm4, %xmm0
	movdqu	%xmm1, -32(%rbx,%rsi)
	movdqu	%xmm0, -48(%rbx,%rsi)
	addq	$-64, %rsi
	addq	$-2, %rdi
	jne	LBB0_96
## %bb.97:                              ##   in Loop: Header=BB0_82 Depth=1
	negq	%rsi
	movl	%r10d, %ebx
	testb	$1, %r8b
	je	LBB0_100
LBB0_99:                                ##   in Loop: Header=BB0_82 Depth=1
	notq	%rsi
	addq	%rax, %rsi
	movdqu	-31(%r13,%rsi), %xmm0
	movdqu	-15(%r13,%rsi), %xmm1
	psubb	%xmm4, %xmm1
	psubb	%xmm4, %xmm0
	movdqu	%xmm1, -15(%r13,%rsi)
	movdqu	%xmm0, -31(%r13,%rsi)
LBB0_100:                               ##   in Loop: Header=BB0_82 Depth=1
	cmpq	%rdx, %r9
	je	LBB0_104
## %bb.101:                             ##   in Loop: Header=BB0_82 Depth=1
	testb	$24, %r9b
	je	LBB0_102
LBB0_90:                                ##   in Loop: Header=BB0_82 Depth=1
	movq	%r9, %rcx
	andq	$-8, %rcx
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rax), %rdi
	subq	%rcx, %rax
	negq	%rdx
	movq	%rcx, %rsi
	negq	%rsi
	.p2align	4, 0x90
LBB0_91:                                ##   Parent Loop BB0_82 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%rdx), %xmm0              ## xmm0 = mem[0],zero
	psubb	%xmm4, %xmm0
	movq	%xmm0, (%rdi,%rdx)
	addq	$-8, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_91
## %bb.92:                              ##   in Loop: Header=BB0_82 Depth=1
	cmpq	%rcx, %r9
	jne	LBB0_103
	jmp	LBB0_104
LBB0_94:                                ##   in Loop: Header=BB0_82 Depth=1
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_99
	jmp	LBB0_100
LBB0_102:                               ##   in Loop: Header=BB0_82 Depth=1
	subq	%rdx, %rax
	.p2align	4, 0x90
LBB0_103:                               ##   Parent Loop BB0_82 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incb	-1(%r13,%rax)
	decq	%rax
	cmpq	%r12, %rax
	jg	LBB0_103
	jmp	LBB0_104
LBB0_84:
	movq	-216(%rbp), %rax                ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_85
## %bb.105:
	movl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	movq	-168(%rbp), %r14                ## 8-byte Reload
	movl	-184(%rbp), %r15d               ## 4-byte Reload
	jmp	LBB0_106
LBB0_107:                               ##   in Loop: Header=BB0_106 Depth=1
	incl	%ebx
LBB0_108:                               ##   in Loop: Header=BB0_106 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_111
LBB0_106:                               ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rcx), %edx
	testb	%dl, %dl
	je	LBB0_107
## %bb.109:                             ##   in Loop: Header=BB0_106 Depth=1
	cmpb	$2, %dl
	jl	LBB0_108
## %bb.110:
	leaq	L_.str.12(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_checkAppendMsg
	jmp	LBB0_111
LBB0_54:
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_113
LBB0_85:
	xorl	%ebx, %ebx
	movq	-168(%rbp), %r14                ## 8-byte Reload
	movl	-184(%rbp), %r15d               ## 4-byte Reload
LBB0_111:
	movq	-200(%rbp), %rax                ## 8-byte Reload
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	movl	28(%rax,%rcx,4), %r8d
	cmpl	%r8d, %ebx
	je	LBB0_113
## %bb.112:
	leaq	L_.str.13(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_checkAppendMsg
LBB0_113:
	movq	%r13, %rdi
	callq	_sqlite3PageFree
	movq	-176(%rbp), %rdi
	callq	_releasePage
	movl	-180(%rbp), %r14d               ## 4-byte Reload
	incl	%r14d
LBB0_114:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_117
## %bb.115:
	movl	%r14d, %eax
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_117:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Page %d: "

L_.str.1:                               ## @.str.1
	.asciz	"unable to get the page. error code=%d"

	.comm	_SQLITE_CORRUPT,4,2             ## @SQLITE_CORRUPT
L_.str.2:                               ## @.str.2
	.asciz	"btreeInitPage() returns error code %d"

L_.str.3:                               ## @.str.3
	.asciz	"On tree page %d cell %d: "

L_.str.4:                               ## @.str.4
	.asciz	"Rowid %lld out of order (previous was %lld)"

	.comm	_PTRMAP_OVERFLOW1,4,2           ## @PTRMAP_OVERFLOW1
	.comm	_PTRMAP_BTREE,4,2               ## @PTRMAP_BTREE
L_.str.5:                               ## @.str.5
	.asciz	"Child page depth differs"

L_.str.6:                               ## @.str.6
	.asciz	"On page %d at right child: "

L_.str.7:                               ## @.str.7
	.asciz	"Rowid %lld out of order (max larger than parent min of %lld)"

L_.str.8:                               ## @.str.8
	.asciz	"Rowid %lld out of order (min less than parent min of %lld)"

L_.str.9:                               ## @.str.9
	.asciz	"Rowid %lld out of order (max larger than parent max of %lld)"

L_.str.10:                              ## @.str.10
	.asciz	"Rowid %lld out of order (min less than parent max of %lld)"

L_.str.11:                              ## @.str.11
	.asciz	"Corruption detected in cell %d on page %d"

L_.str.12:                              ## @.str.12
	.asciz	"Multiple uses for byte %d of page %d"

L_.str.13:                              ## @.str.13
	.asciz	"Fragmentation of %d bytes reported as %d on page %d"

	.no_dead_strip	_checkTreePage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkTreePage
_checkTreePage:                         ; @checkTreePage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	d9, d8, [sp, #240]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #256]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x23, x4
	mov	x22, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
	stp	xzr, xzr, [sp, #96]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #124
	mov	w0, #100
	mov	x3, x20
	bl	_sqlite3_snprintf
	cbz	w20, LBB0_2
; %bb.1:
	ldr	x21, [x19, #16]
	ldrsw	x27, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_checkRef
	cbz	x0, LBB0_5
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldur	x8, [x29, #-112]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_88
; %bb.4:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #272]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #256]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #240]              ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_5:
	add	x2, sp, #112
	mov	x0, x21
	mov	x1, x20
	mov	w3, #0
	mov	w4, #0
	bl	_btreeGetPage
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_7
; %bb.6:
	str	x0, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x1, sp, #124
	mov	x0, x19
	bl	_checkAppendMsg
	mov	w0, #0
	b	LBB0_3
LBB0_7:
	ldr	x0, [sp, #112]
	str	xzr, [x0, #32]
	bl	_btreeInitPage
	cbz	w0, LBB0_9
; %bb.8:
	mov	x24, x0
Lloh10:
	adrp	x8, _SQLITE_CORRUPT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_CORRUPT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	str	x24, [sp]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x1, sp, #124
	mov	x0, x19
	bl	_checkAppendMsg
	ldr	x0, [sp, #112]
	bl	_releasePage
	mov	w0, #0
	b	LBB0_3
LBB0_9:
	ldr	x8, [sp, #112]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_33
; %bb.10:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_33
; %bb.11:
	mov	w25, #0
	mov	w24, #0
	sub	x9, x27, #5
	sub	x8, x27, #4
	stp	x8, x9, [sp, #40]               ; 16-byte Folded Spill
	str	x27, [sp, #32]                  ; 8-byte Folded Spill
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	x24, [sp]
	add	x1, sp, #124
	mov	w0, #100
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, x20
	bl	_sqlite3_snprintf
	ldr	x0, [sp, #112]
	mov	x1, x24
	bl	_findCell
	mov	x28, x0
	ldr	x0, [sp, #112]
	add	x2, sp, #56
	mov	x1, x28
	bl	_btreeParseCellPtr
	ldr	x26, [sp, #56]
	ldr	x8, [sp, #112]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #88]
	cbz	w24, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [sp, #96]
	cmp	x8, x9
	b.gt	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	stp	x8, x9, [sp]
	add	x1, sp, #124
	mov	x0, x19
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_checkAppendMsg
	ldr	x8, [sp, #88]
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x8, [sp, #96]
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	ldrsw	x8, [sp, #88]
	add	x26, x8, x26
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	stp	x8, x8, [sp, #96]
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #64]
	cmp	x26, x8
	cset	w0, eq
	bl	_assert
	ldr	x8, [sp, #72]
	cmp	x26, x8
	b.le	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [sp, #80]
	add	x0, x28, x9, lsl #2
	ldr	x9, [sp, #112]
	ldr	x9, [x9, #8]
	ldrsw	x10, [x21]
	add	x9, x9, x10, lsl #2
	cmp	x0, x9
	b.hi	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x27, x25
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	add	x9, x9, x26
	sub	x25, x9, x8
	bl	_get4byte
	mov	x26, x0
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh19:
	adrp	x8, _PTRMAP_OVERFLOW1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PTRMAP_OVERFLOW1@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	add	x4, sp, #124
	mov	x0, x19
	mov	x1, x26
	mov	x3, x20
	bl	_checkPtrmap
LBB0_23:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	sdiv	x3, x25, x8
	add	x4, sp, #124
	mov	x0, x19
	mov	w1, #0
	mov	x2, x26
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_checkList
	mov	x25, x27
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #112]
	ldr	w8, [x8, #16]
	cbnz	w8, LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x28
	bl	_get4byte
	mov	x26, x0
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh22:
	adrp	x8, _PTRMAP_BTREE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PTRMAP_BTREE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	add	x4, sp, #124
	mov	x0, x19
	mov	x1, x26
	mov	x3, x20
	bl	_checkPtrmap
LBB0_27:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w24, #0
	add	x8, sp, #96
	csel	x4, xzr, x8, eq
	add	x2, sp, #124
	add	x3, sp, #104
	mov	x0, x19
	mov	x1, x26
	bl	_checkTreePage
	mov	x26, x0
	cbz	w24, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w26, w25
	b.eq	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x1, sp, #124
	mov	x0, x19
Lloh25:
	adrp	x2, l_.str.5@PAGE
Lloh26:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_checkAppendMsg
LBB0_30:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x25, x26
LBB0_31:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w24, w24, #1
	ldr	x8, [sp, #112]
	ldr	w9, [x8]
	cmp	w24, w9
	b.ge	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x19, #8]
	cbnz	x9, LBB0_12
	b	LBB0_34
LBB0_33:
	mov	w25, #0
LBB0_34:
	ldr	w9, [x8, #16]
	cbnz	w9, LBB0_38
; %bb.35:
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8, #20]
	add	x8, x9, x8, lsl #2
	add	x0, x8, #32
	bl	_get4byte
	mov	x24, x0
Lloh27:
	adrp	x2, l_.str.6@PAGE
Lloh28:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x1, sp, #124
	mov	w0, #100
	mov	x3, x20
	bl	_sqlite3_snprintf
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_37
; %bb.36:
Lloh29:
	adrp	x8, _PTRMAP_BTREE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PTRMAP_BTREE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	add	x4, sp, #124
	mov	x0, x19
	mov	x1, x24
	mov	x3, x20
	bl	_checkPtrmap
LBB0_37:
	ldr	x8, [sp, #112]
	ldr	w8, [x8]
	cmp	w8, #0
	add	x8, sp, #96
	csel	x4, xzr, x8, eq
	add	x2, sp, #124
	mov	x0, x19
	mov	x1, x24
	mov	x3, #0
	bl	_checkTreePage
	ldr	x8, [sp, #112]
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_52
LBB0_38:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_52
; %bb.39:
	cbz	x22, LBB0_46
; %bb.40:
	cbz	x23, LBB0_49
; %bb.41:
	ldr	x8, [sp, #104]
	ldr	x9, [x22]
	cmp	x8, x9
	b.gt	LBB0_43
; %bb.42:
	stp	x8, x9, [sp]
Lloh32:
	adrp	x2, l_.str.8@PAGE
Lloh33:
	add	x2, x2, l_.str.8@PAGEOFF
	add	x1, sp, #124
	mov	x0, x19
	bl	_checkAppendMsg
LBB0_43:
	ldr	x8, [sp, #96]
	ldr	x9, [x23]
	cmp	x8, x9
	b.le	LBB0_45
; %bb.44:
	stp	x8, x9, [sp]
Lloh34:
	adrp	x2, l_.str.9@PAGE
Lloh35:
	add	x2, x2, l_.str.9@PAGEOFF
	add	x1, sp, #124
	mov	x0, x19
	bl	_checkAppendMsg
	ldr	x8, [sp, #96]
LBB0_45:
	str	x8, [x22]
	b	LBB0_52
LBB0_46:
	cbz	x23, LBB0_52
; %bb.47:
	ldr	x8, [sp, #104]
	ldr	x9, [x23]
	cmp	x8, x9
	b.gt	LBB0_52
; %bb.48:
	stp	x8, x9, [sp]
Lloh36:
	adrp	x2, l_.str.10@PAGE
Lloh37:
	add	x2, x2, l_.str.10@PAGEOFF
	b	LBB0_51
LBB0_49:
	ldr	x8, [sp, #96]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_52
; %bb.50:
	stp	x8, x9, [sp]
Lloh38:
	adrp	x2, l_.str.7@PAGE
Lloh39:
	add	x2, x2, l_.str.7@PAGEOFF
LBB0_51:
	add	x1, sp, #124
	mov	x0, x19
	bl	_checkAppendMsg
LBB0_52:
	ldr	x8, [sp, #112]
	ldr	x24, [x8, #8]
	ldr	w23, [x8, #20]
	ldr	w0, [x21, #4]
	bl	_sqlite3PageMalloc
	mov	x21, x0
	cbz	x0, LBB0_83
; %bb.53:
	str	w25, [sp, #28]                  ; 4-byte Folded Spill
	add	w8, w23, #5
	add	x0, x24, w8, sxtw #2
	bl	_get2byteNotZero
	mov	x22, x0
	cmp	w27, w0
	cset	w0, ge
	bl	_assert
	add	x0, x21, w22, sxtw
	sub	w2, w27, w22
	mov	w1, #0
	bl	_memset
	mov	x0, x21
	mov	w1, #1
	mov	x2, x22
	bl	_memset
	str	w23, [sp, #40]                  ; 4-byte Folded Spill
	add	w8, w23, #3
	add	x0, x24, w8, sxtw #2
	bl	_get2byte
	cmp	w0, #1
	b.lt	LBB0_67
; %bb.54:
	mov	x26, #0
	ldr	x8, [sp, #112]
	ldr	w8, [x8, #16]
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	sub	w8, w9, w8, lsl #2
	add	w8, w8, #12
	sub	w28, w27, #4
	sxtw	x25, w8
	mov	w22, w0
	sub	x8, x21, #3
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	movi.2s	v8, #1
	b	LBB0_57
LBB0_55:                                ;   in Loop: Header=BB0_57 Depth=1
	stp	x26, x20, [sp]
	mov	x0, x19
	mov	x1, #0
Lloh40:
	adrp	x2, l_.str.11@PAGE
Lloh41:
	add	x2, x2, l_.str.11@PAGEOFF
	bl	_checkAppendMsg
LBB0_56:                                ;   in Loop: Header=BB0_57 Depth=1
	add	x26, x26, #1
	cmp	x26, x22
	b.eq	LBB0_67
LBB0_57:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_64 Depth 2
                                        ;     Child Loop BB0_66 Depth 2
	add	x8, x25, x26, lsl #1
	add	x0, x24, x8, lsl #2
	bl	_get2byte
	mov	x23, x0
	cmp	w0, w28
	b.le	LBB0_59
; %bb.58:                               ;   in Loop: Header=BB0_57 Depth=1
	mov	w0, #65536
	b	LBB0_60
LBB0_59:                                ;   in Loop: Header=BB0_57 Depth=1
	ldr	x0, [sp, #112]
	add	x1, x24, w23, sxtw #2
	bl	_cellSizePtr
LBB0_60:                                ;   in Loop: Header=BB0_57 Depth=1
	add	w8, w23, w0
	sub	w8, w8, #1
	cmp	w8, w27
	b.ge	LBB0_55
; %bb.61:                               ;   in Loop: Header=BB0_57 Depth=1
	cmp	w8, w23
	b.lt	LBB0_56
; %bb.62:                               ;   in Loop: Header=BB0_57 Depth=1
	sxtw	x12, w8
	sxtw	x8, w23
	sub	x9, x12, x8
	add	x10, x9, #1
	mov	x9, x12
	cmp	x10, #8
	b.lo	LBB0_66
; %bb.63:                               ;   in Loop: Header=BB0_57 Depth=1
	and	x11, x10, #0xfffffffffffffff8
	sub	x9, x12, x11
	ldr	x13, [sp, #48]                  ; 8-byte Folded Reload
	add	x12, x13, x12
	mov	x13, x11
LBB0_64:                                ;   Parent Loop BB0_57 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x14, x12, #2
	ld1.b	{ v0 }[0], [x14]
	add	x14, x12, #3
	ld1.b	{ v0 }[4], [x14]
	ld1.b	{ v1 }[0], [x12]
	add	x14, x12, #1
	ld1.b	{ v1 }[4], [x14]
	sub	x14, x12, #2
	ld1.b	{ v2 }[0], [x14]
	sub	x14, x12, #1
	ld1.b	{ v2 }[4], [x14]
	sub	x14, x12, #4
	ld1.b	{ v3 }[0], [x14]
	sub	x14, x12, #3
	ld1.b	{ v3 }[4], [x14]
	add.2s	v0, v0, v8
	add.2s	v1, v1, v8
	add.2s	v2, v2, v8
	add.2s	v3, v3, v8
	mov.s	w14, v0[1]
	fmov	w15, s0
	strb	w15, [x12, #2]
	strb	w14, [x12, #3]
	mov.s	w14, v1[1]
	fmov	w15, s1
	strb	w15, [x12]
	strb	w14, [x12, #1]
	mov.s	w14, v2[1]
	fmov	w15, s2
	sturb	w15, [x12, #-2]
	mov.s	w15, v3[1]
	sturb	w14, [x12, #-1]
	fmov	w14, s3
	sturb	w14, [x12, #-4]
	sturb	w15, [x12, #-3]
	sub	x12, x12, #8
	sub	x13, x13, #8
	cbnz	x13, LBB0_64
; %bb.65:                               ;   in Loop: Header=BB0_57 Depth=1
	cmp	x10, x11
	b.eq	LBB0_56
LBB0_66:                                ;   Parent Loop BB0_57 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x21, x9]
	add	w10, w10, #1
	strb	w10, [x21, x9]
	sub	x10, x9, #1
	cmp	x9, x8
	mov	x9, x10
	b.gt	LBB0_66
	b	LBB0_56
LBB0_67:
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	add	x0, x24, w8, sxtw #2
	bl	_get2byte
	cmp	w0, #1
	b.lt	LBB0_76
; %bb.68:
	mov	x22, x0
	sub	w25, w27, #4
	sub	x8, x21, #4
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	sub	x28, x21, #1
	movi.2s	v8, #1
	b	LBB0_70
LBB0_69:                                ;   in Loop: Header=BB0_70 Depth=1
	add	x0, x24, x8, lsl #2
	bl	_get2byte
	mov	x22, x0
	cmp	w0, #0
	cset	w8, eq
	cmp	w0, w26
	cset	w9, gt
	orr	w0, w8, w9
	bl	_assert
	cmp	w22, w25
	cset	w0, le
	bl	_assert
	cmp	w22, #0
	b.le	LBB0_76
LBB0_70:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_73 Depth 2
                                        ;     Child Loop BB0_75 Depth 2
	cmp	w22, w25
	cset	w0, le
	bl	_assert
	add	w8, w22, #2
	add	x0, x24, w8, uxtw #2
	bl	_get2byte
	mov	x23, x0
	add	w26, w0, w22
	cmp	w26, w27
	cset	w0, le
	bl	_assert
	mov	w8, w22
	cmp	w23, #0
	b.le	LBB0_69
; %bb.71:                               ;   in Loop: Header=BB0_70 Depth=1
	sxtw	x12, w26
	sub	x9, x12, #1
	cmp	x9, x8
	csel	x9, x9, x8, lt
	sub	x10, x12, x9
	mov	x9, x12
	cmp	x10, #8
	b.lo	LBB0_75
; %bb.72:                               ;   in Loop: Header=BB0_70 Depth=1
	and	x11, x10, #0xfffffffffffffff8
	sub	x9, x12, x11
	ldr	x13, [sp, #48]                  ; 8-byte Folded Reload
	add	x12, x13, x12
	mov	x13, x11
LBB0_73:                                ;   Parent Loop BB0_70 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x14, x12, #2
	ld1.b	{ v0 }[0], [x14]
	add	x14, x12, #3
	ld1.b	{ v0 }[4], [x14]
	ld1.b	{ v1 }[0], [x12]
	add	x14, x12, #1
	ld1.b	{ v1 }[4], [x14]
	sub	x14, x12, #2
	ld1.b	{ v2 }[0], [x14]
	sub	x14, x12, #1
	ld1.b	{ v2 }[4], [x14]
	sub	x14, x12, #4
	ld1.b	{ v3 }[0], [x14]
	sub	x14, x12, #3
	ld1.b	{ v3 }[4], [x14]
	add.2s	v0, v0, v8
	add.2s	v1, v1, v8
	add.2s	v2, v2, v8
	add.2s	v3, v3, v8
	mov.s	w14, v0[1]
	fmov	w15, s0
	strb	w15, [x12, #2]
	strb	w14, [x12, #3]
	mov.s	w14, v1[1]
	fmov	w15, s1
	strb	w15, [x12]
	strb	w14, [x12, #1]
	mov.s	w14, v2[1]
	fmov	w15, s2
	sturb	w15, [x12, #-2]
	mov.s	w15, v3[1]
	sturb	w14, [x12, #-1]
	fmov	w14, s3
	sturb	w14, [x12, #-4]
	sturb	w15, [x12, #-3]
	sub	x12, x12, #8
	sub	x13, x13, #8
	cbnz	x13, LBB0_73
; %bb.74:                               ;   in Loop: Header=BB0_70 Depth=1
	cmp	x10, x11
	b.eq	LBB0_69
LBB0_75:                                ;   Parent Loop BB0_70 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x28, x9]
	add	w10, w10, #1
	strb	w10, [x28, x9]
	sub	x10, x9, #1
	mov	x9, x10
	cmp	x10, x8
	b.gt	LBB0_75
	b	LBB0_69
LBB0_76:
	cmp	w27, #1
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
	b.lt	LBB0_84
; %bb.77:
	mov	x8, #0
	mov	w22, #0
	and	x9, x27, #0xffffffff
	ldr	w23, [sp, #40]                  ; 4-byte Folded Reload
	b	LBB0_80
LBB0_78:                                ;   in Loop: Header=BB0_80 Depth=1
	add	w22, w22, #1
LBB0_79:                                ;   in Loop: Header=BB0_80 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_85
LBB0_80:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w10, [x21, x8]
	cbz	w10, LBB0_78
; %bb.81:                               ;   in Loop: Header=BB0_80 Depth=1
	cmp	w10, #2
	b.lt	LBB0_79
; %bb.82:
	mov	x9, x20
	stp	x8, x9, [sp]
Lloh42:
	adrp	x2, l_.str.12@PAGE
Lloh43:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	bl	_checkAppendMsg
	b	LBB0_85
LBB0_83:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_87
LBB0_84:
	mov	w22, #0
	ldr	w23, [sp, #40]                  ; 4-byte Folded Reload
LBB0_85:
	add	w8, w23, #7
	ldr	w8, [x24, w8, sxtw #2]
	cmp	w22, w8
	b.eq	LBB0_87
; %bb.86:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x8, x20, [sp, #8]
	str	x22, [sp]
Lloh44:
	adrp	x2, l_.str.13@PAGE
Lloh45:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	bl	_checkAppendMsg
LBB0_87:
	mov	x0, x21
	bl	_sqlite3PageFree
	ldr	x0, [sp, #112]
	bl	_releasePage
	add	w0, w25, #1
	b	LBB0_3
LBB0_88:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Page %d: "

l_.str.1:                               ; @.str.1
	.asciz	"unable to get the page. error code=%d"

	.comm	_SQLITE_CORRUPT,4,2             ; @SQLITE_CORRUPT
l_.str.2:                               ; @.str.2
	.asciz	"btreeInitPage() returns error code %d"

l_.str.3:                               ; @.str.3
	.asciz	"On tree page %d cell %d: "

l_.str.4:                               ; @.str.4
	.asciz	"Rowid %lld out of order (previous was %lld)"

	.comm	_PTRMAP_OVERFLOW1,4,2           ; @PTRMAP_OVERFLOW1
	.comm	_PTRMAP_BTREE,4,2               ; @PTRMAP_BTREE
l_.str.5:                               ; @.str.5
	.asciz	"Child page depth differs"

l_.str.6:                               ; @.str.6
	.asciz	"On page %d at right child: "

l_.str.7:                               ; @.str.7
	.asciz	"Rowid %lld out of order (max larger than parent min of %lld)"

l_.str.8:                               ; @.str.8
	.asciz	"Rowid %lld out of order (min less than parent min of %lld)"

l_.str.9:                               ; @.str.9
	.asciz	"Rowid %lld out of order (max larger than parent max of %lld)"

l_.str.10:                              ; @.str.10
	.asciz	"Rowid %lld out of order (min less than parent max of %lld)"

l_.str.11:                              ; @.str.11
	.asciz	"Corruption detected in cell %d on page %d"

l_.str.12:                              ; @.str.12
	.asciz	"Multiple uses for byte %d of page %d"

l_.str.13:                              ; @.str.13
	.asciz	"Fragmentation of %d bytes reported as %d on page %d"

	.no_dead_strip	_checkTreePage
.subsections_via_symbols
