	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function schemaIsValid
_schemaIsValid:                         ## @schemaIsValid
	.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	8(%rdi), %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %edi
	callq	_assert
	movl	16(%r12), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	cmpl	$0, (%r12)
	jle	LBB0_13
## %bb.1:
	xorl	%r15d, %r15d
	movq	_BTREE_SCHEMA_VERSION@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	addq	$16, %r15
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	8(%rax,%r15), %r13
	testq	%r13, %r13
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_sqlite3BtreeIsInReadTrans
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sqlite3BtreeBeginTrans
	movl	%eax, %r14d
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SQLITE_IOERR_NOMEM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_sqlite3OomFault
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movq	_BTREE_SCHEMA_VERSION@GOTPCREL(%rip), %r14
	jne	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	leaq	-48(%rbp), %rdx
	callq	_sqlite3BtreeGetMeta
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_sqlite3SchemaMutexHeld
	movl	%eax, %edi
	callq	_assert
	movl	-48(%rbp), %eax
	movq	8(%r12), %rcx
	movq	(%rcx,%r15), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_sqlite3ResetOneSchema
	movq	_SQLITE_SCHEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_sqlite3BtreeCommit
	jmp	LBB0_12
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.comm	_SQLITE_IOERR_NOMEM,4,2         ## @SQLITE_IOERR_NOMEM
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_BTREE_SCHEMA_VERSION,4,2       ## @BTREE_SCHEMA_VERSION
	.comm	_SQLITE_SCHEMA,4,2              ## @SQLITE_SCHEMA
	.no_dead_strip	_schemaIsValid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function schemaIsValid
_schemaIsValid:                         ; @schemaIsValid
	.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
	ldr	x20, [x0, #8]
	ldr	w0, [x0, #4]
	bl	_assert
	ldr	w0, [x20, #16]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x25, #0
	mov	x21, #0
Lloh0:
	adrp	x28, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x28, [x28, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _BTREE_SCHEMA_VERSION@GOTPAGE
Lloh3:
	ldr	x26, [x26, _BTREE_SCHEMA_VERSION@GOTPAGEOFF]
Lloh4:
	adrp	x27, _SQLITE_SCHEMA@GOTPAGE
Lloh5:
	ldr	x27, [x27, _SQLITE_SCHEMA@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w23, LBB0_11
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x25, x25, #16
	cmp	x21, x8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	ldr	x22, [x8, #8]
	cbz	x22, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_sqlite3BtreeIsInReadTrans
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_sqlite3BtreeBeginTrans
	mov	x24, x0
Lloh6:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SQLITE_IOERR_NOMEM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SQLITE_IOERR_NOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_sqlite3OomFault
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	cmp	w24, w8
	b.ne	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	add	x2, sp, #12
	mov	x0, x22
	bl	_sqlite3BtreeGetMeta
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_sqlite3SchemaMutexHeld
	bl	_assert
	ldr	w8, [sp, #12]
	ldr	x9, [x20, #8]
	ldr	x9, [x9, x25]
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_sqlite3ResetOneSchema
	ldr	w8, [x27]
	str	w8, [x19]
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_sqlite3BtreeCommit
	b	LBB0_3
LBB0_12:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.comm	_SQLITE_IOERR_NOMEM,4,2         ; @SQLITE_IOERR_NOMEM
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_BTREE_SCHEMA_VERSION,4,2       ; @BTREE_SCHEMA_VERSION
	.comm	_SQLITE_SCHEMA,4,2              ; @SQLITE_SCHEMA
	.no_dead_strip	_schemaIsValid
.subsections_via_symbols
