	.file	"extr_sqlite3.c_schemaIsValid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	schemaIsValid, @function
schemaIsValid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR 8[rdi]
	mov	QWORD PTR [rsp], rdi
	mov	edi, DWORD PTR 4[rdi]
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rcx
	xor	ecx, ecx
	call	assert@PLT
	mov	edi, DWORD PTR 16[rbp]
	call	sqlite3_mutex_held@PLT
	mov	edi, eax
	call	assert@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	lea	r14, 20[rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	xor	esi, esi
	mov	rdi, r15
	call	sqlite3BtreeBeginTrans@PLT
	cmp	DWORD PTR SQLITE_NOMEM[rip], eax
	mov	edx, eax
	je	.L6
	cmp	DWORD PTR SQLITE_IOERR_NOMEM[rip], eax
	je	.L6
.L7:
	cmp	DWORD PTR SQLITE_OK[rip], edx
	jne	.L1
	mov	esi, DWORD PTR BTREE_SCHEMA_VERSION[rip]
	mov	rdx, r14
	mov	rdi, r15
	call	sqlite3BtreeGetMeta@PLT
	xor	edx, edx
	mov	esi, r13d
	mov	rdi, rbp
	call	sqlite3SchemaMutexHeld@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR 20[rsp]
	mov	rax, QWORD PTR [rax+r12]
	cmp	DWORD PTR [rax], ecx
	je	.L9
	mov	esi, r13d
	mov	rdi, rbp
	call	sqlite3ResetOneSchema@PLT
	mov	eax, DWORD PTR SQLITE_SCHEMA[rip]
	mov	rcx, QWORD PTR [rsp]
	mov	DWORD PTR [rcx], eax
.L9:
	mov	rdi, r15
	call	sqlite3BtreeCommit@PLT
.L4:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L1
.L10:
	mov	rax, QWORD PTR 8[rbp]
	mov	r12, rbx
	mov	r13d, ebx
	sal	r12, 4
	mov	r15, QWORD PTR 8[rax+r12]
	test	r15, r15
	je	.L4
	mov	rdi, r15
	call	sqlite3BtreeIsInReadTrans@PLT
	test	eax, eax
	je	.L19
	mov	esi, DWORD PTR BTREE_SCHEMA_VERSION[rip]
	mov	rdx, r14
	mov	rdi, r15
	call	sqlite3BtreeGetMeta@PLT
	xor	edx, edx
	mov	esi, ebx
	mov	rdi, rbp
	call	sqlite3SchemaMutexHeld@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR 20[rsp]
	mov	rax, QWORD PTR [rax+r12]
	cmp	DWORD PTR [rax], ecx
	je	.L4
	mov	esi, ebx
	mov	rdi, rbp
	add	rbx, 1
	call	sqlite3ResetOneSchema@PLT
	mov	eax, DWORD PTR SQLITE_SCHEMA[rip]
	mov	rcx, QWORD PTR [rsp]
	mov	DWORD PTR [rcx], eax
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L10
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], edx
	call	sqlite3OomFault@PLT
	mov	edx, DWORD PTR 12[rsp]
	jmp	.L7
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	schemaIsValid, .-schemaIsValid
	.comm	SQLITE_SCHEMA,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM,4,4
	.comm	SQLITE_IOERR_NOMEM,4,4
	.comm	BTREE_SCHEMA_VERSION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sqlite3.c_schemaIsValid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	schemaIsValid, %function
schemaIsValid:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L22
	sub	sp, sp, #20
	str	r0, [sp]
	ldmib	r0, {r0, r5}
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	assert
	ldr	r0, [r5, #8]
	bl	sqlite3_mutex_held
	bl	assert
	ldr	r2, [r5]
	cmp	r2, #0
	ble	.L1
	mov	r4, #0
	ldr	r7, .L22+4
	ldr	r10, .L22+8
	ldr	r9, .L22+12
	ldr	r8, .L22+16
	b	.L10
.L20:
	bl	sqlite3BtreeBeginTrans
	ldr	r1, [r9]
	mov	r2, r0
	cmp	r1, r0
	beq	.L6
	ldr	r3, .L22+20
	ldr	r1, [r3]
	cmp	r1, r0
	beq	.L6
.L7:
	ldr	r1, [r8]
	cmp	r1, r2
	bne	.L1
	ldr	r1, [r7]
	add	r2, sp, #8
	mov	r0, fp
	bl	sqlite3BtreeGetMeta
	mov	r2, #0
	mov	r1, r4
	mov	r0, r5
	bl	sqlite3SchemaMutexHeld
	bl	assert
	ldr	r1, [r5, #4]
	ldr	r2, [sp, #8]
	ldr	r1, [r1, r6]
	ldr	r1, [r1]
	cmp	r1, r2
	beq	.L9
	mov	r1, r4
	mov	r0, r5
	bl	sqlite3ResetOneSchema
	ldr	r2, [r10]
	ldr	r3, [sp]
	str	r2, [r3]
.L9:
	mov	r0, fp
	bl	sqlite3BtreeCommit
.L18:
	ldr	r2, [r5]
.L4:
	add	r4, r4, #1
	cmp	r2, r4
	ble	.L1
.L10:
	ldr	r3, [r5, #4]
	lsl	r6, r4, #3
	add	r3, r3, r4, lsl #3
	ldr	fp, [r3, #4]
	cmp	fp, #0
	beq	.L4
	mov	r0, fp
	bl	sqlite3BtreeIsInReadTrans
	subs	r1, r0, #0
	mov	r0, fp
	beq	.L20
	ldr	r1, [r7]
	add	r2, sp, #8
	bl	sqlite3BtreeGetMeta
	mov	r2, #0
	mov	r1, r4
	mov	r0, r5
	bl	sqlite3SchemaMutexHeld
	bl	assert
	ldr	r2, [r5, #4]
	ldr	r3, [sp, #8]
	ldr	r2, [r2, r6]
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L18
	mov	r1, r4
	mov	r0, r5
	bl	sqlite3ResetOneSchema
	ldr	r2, [r5]
	ldr	r3, [r10]
	ldr	r1, [sp]
	add	r4, r4, #1
	cmp	r2, r4
	str	r3, [r1]
	bgt	.L10
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, r5
	str	r2, [sp, #4]
	bl	sqlite3OomFault
	ldr	r2, [sp, #4]
	b	.L7
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	BTREE_SCHEMA_VERSION
	.word	SQLITE_SCHEMA
	.word	SQLITE_NOMEM
	.word	SQLITE_OK
	.word	SQLITE_IOERR_NOMEM
	.size	schemaIsValid, .-schemaIsValid
	.comm	SQLITE_SCHEMA,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM,4,4
	.comm	SQLITE_IOERR_NOMEM,4,4
	.comm	BTREE_SCHEMA_VERSION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
