	.file	"extr_rtree.c_rtreeCheckTable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"BEGIN"
.LC1:
	.string	"SELECT * FROM %Q.'%q_rowid'"
.LC2:
	.string	"SELECT * FROM %Q.%Q"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Schema corrupt or not an rtree"
	.section	.rodata.str1.1
.LC4:
	.string	"_rowid"
.LC5:
	.string	"_parent"
.LC6:
	.string	"END"
	.text
	.p2align 4
	.type	rtreeCheckTable, @function
rtreeCheckTable:
.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
	mov	r13, rdx
	mov	edx, 72
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	lea	r14, 16[rsp]
	mov	rdi, r14
	call	memset@PLT
	mov	rdi, rbp
	mov	QWORD PTR 80[rsp], rbp
	mov	QWORD PTR 16[rsp], r12
	mov	QWORD PTR 24[rsp], r13
	call	sqlite3_get_autocommit@PLT
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR 32[rsp]
	xor	r15d, r15d
.L3:
	cmp	QWORD PTR SQLITE_OK[rip], rax
	mov	DWORD PTR 4[rsp], 0
	je	.L22
.L4:
	mov	rdx, r12
	mov	rcx, r13
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	call	rtreeCheckPrepare@PLT
	mov	r12, rax
	test	rax, rax
	je	.L7
	mov	rdi, rax
	call	sqlite3_column_count@PLT
	sub	eax, 1
	sub	eax, DWORD PTR 4[rsp]
	mov	edx, eax
	shr	edx, 31
	add	edx, eax
	sar	edx
	mov	DWORD PTR 40[rsp], edx
	cmp	eax, 1
	jle	.L23
	mov	rdi, r12
	call	sqlite3_step@PLT
	cmp	rax, QWORD PTR SQLITE_ROW[rip]
	je	.L24
.L9:
	mov	rdi, r12
	call	sqlite3_finalize@PLT
	cmp	DWORD PTR SQLITE_CORRUPT[rip], eax
	je	.L7
	cdqe
	mov	QWORD PTR 32[rsp], rax
.L7:
	mov	eax, DWORD PTR 40[rsp]
	test	eax, eax
	jle	.L11
	mov	rax, QWORD PTR SQLITE_OK[rip]
	cmp	QWORD PTR 32[rsp], rax
	je	.L25
.L12:
	mov	edx, DWORD PTR 76[rsp]
	lea	rsi, .LC4[rip]
	mov	rdi, r14
	call	rtreeCheckCount@PLT
	mov	edx, DWORD PTR 72[rsp]
	lea	rsi, .LC5[rip]
	mov	rdi, r14
	call	rtreeCheckCount@PLT
.L11:
	mov	rdi, QWORD PTR 64[rsp]
	call	sqlite3_finalize@PLT
	mov	rax, QWORD PTR 56[rsp]
	mov	rdi, QWORD PTR [rax]
	call	sqlite3_finalize@PLT
	mov	rax, QWORD PTR 56[rsp]
	mov	rdi, QWORD PTR 8[rax]
	call	sqlite3_finalize@PLT
	test	r15d, r15d
	jne	.L13
	mov	eax, DWORD PTR 32[rsp]
.L14:
	mov	rdx, QWORD PTR 48[rsp]
	mov	QWORD PTR [rbx], rdx
	mov	rbx, QWORD PTR 88[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L26
	add	rsp, 104
	.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
.L23:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, r14
	call	rtreeCheckAppendMsg@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbp
	lea	rsi, .LC6[rip]
	call	sqlite3_exec@PLT
	mov	r8, rax
	mov	rax, QWORD PTR 32[rsp]
	cmp	rax, QWORD PTR SQLITE_OK[rip]
	cmove	eax, r8d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	mov	r15d, 1
	call	sqlite3_exec@PLT
	mov	QWORD PTR 32[rsp], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r14
	mov	rcx, r13
	lea	rsi, .LC1[rip]
	mov	rdx, r12
	call	rtreeCheckPrepare@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L5
	mov	QWORD PTR 8[rsp], rax
	call	sqlite3_column_count@PLT
	mov	rdi, QWORD PTR 8[rsp]
	sub	eax, 2
	mov	DWORD PTR 4[rsp], eax
	call	sqlite3_finalize@PLT
.L5:
	mov	rax, QWORD PTR SQLITE_OK[rip]
	mov	QWORD PTR 32[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	ecx, 1
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r14
	call	rtreeCheckNode@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, 1
	mov	rdi, r12
	call	sqlite3_column_type@PLT
	cmp	QWORD PTR SQLITE_INTEGER[rip], rax
	sete	al
	movzx	eax, al
	mov	DWORD PTR 44[rsp], eax
	jmp	.L9
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rtreeCheckTable, .-rtreeCheckTable
	.comm	SQLITE_ROW,8,8
	.comm	SQLITE_OK,8,8
	.comm	SQLITE_INTEGER,8,8
	.comm	SQLITE_CORRUPT,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_rtree.c_rtreeCheckTable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BEGIN\000"
	.align	2
.LC1:
	.ascii	"SELECT * FROM %Q.'%q_rowid'\000"
	.align	2
.LC2:
	.ascii	"SELECT * FROM %Q.%Q\000"
	.align	2
.LC3:
	.ascii	"Schema corrupt or not an rtree\000"
	.align	2
.LC4:
	.ascii	"_rowid\000"
	.align	2
.LC5:
	.ascii	"_parent\000"
	.align	2
.LC6:
	.ascii	"END\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtreeCheckTable, %function
rtreeCheckTable:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r6, r1
	mov	r7, r2
	sub	sp, sp, #60
	mov	r8, r3
	ldr	r3, .L25
	mov	r2, #32
	mov	r1, #0
	add	r0, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	bl	memset
	mov	r0, r4
	str	r4, [sp, #48]
	str	r6, [sp, #8]
	str	r7, [sp, #12]
	bl	sqlite3_get_autocommit
	subs	r5, r0, #0
	bne	.L2
	ldr	r0, [sp, #16]
.L3:
	ldr	r10, .L25+4
	ldr	r3, [r10]
	cmp	r3, r0
	movne	fp, #0
	addne	r9, sp, #8
	beq	.L20
.L4:
	mov	r2, r6
	mov	r3, r7
	mov	r0, r9
	ldr	r1, .L25+8
	bl	rtreeCheckPrepare
	subs	r6, r0, #0
	beq	.L7
	bl	sqlite3_column_count
	sub	r2, r0, #1
	sub	r2, r2, fp
	add	r3, r2, r2, lsr #31
	asr	r3, r3, #1
	cmp	r2, #1
	str	r3, [sp, #20]
	ble	.L21
	mov	r0, r6
	bl	sqlite3_step
	ldr	r3, .L25+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L22
.L9:
	mov	r0, r6
	bl	sqlite3_finalize
	ldr	r3, .L25+16
	ldr	r3, [r3]
	cmp	r3, r0
	strne	r0, [sp, #16]
.L7:
	ldr	r3, [sp, #20]
	cmp	r3, #0
	ble	.L11
	ldr	r2, [sp, #16]
	ldr	r3, [r10]
	cmp	r2, r3
	beq	.L23
.L12:
	ldr	r2, [sp, #44]
	ldr	r1, .L25+20
	mov	r0, r9
	bl	rtreeCheckCount
	mov	r0, r9
	ldr	r2, [sp, #40]
	ldr	r1, .L25+24
	bl	rtreeCheckCount
.L11:
	ldr	r0, [sp, #36]
	bl	sqlite3_finalize
	ldr	r3, [sp, #32]
	ldr	r0, [r3]
	bl	sqlite3_finalize
	ldr	r3, [sp, #32]
	ldr	r0, [r3, #4]
	bl	sqlite3_finalize
	cmp	r5, #0
	bne	.L13
	ldr	r0, [sp, #16]
.L14:
	ldr	r3, [sp, #28]
	str	r3, [r8]
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r0, r9
	ldr	r1, .L25+28
	bl	rtreeCheckAppendMsg
	b	.L9
.L13:
	mov	r3, #0
	mov	r0, r4
	mov	r2, r3
	str	r3, [sp]
	ldr	r1, .L25+32
	bl	sqlite3_exec
	mov	r3, r0
	ldr	r2, [r10]
	ldr	r0, [sp, #16]
	cmp	r0, r2
	moveq	r0, r3
	b	.L14
.L2:
	mov	r3, #0
	mov	r0, r4
	mov	r2, r3
	ldr	r1, .L25+36
	str	r3, [sp]
	bl	sqlite3_exec
	mov	r5, #1
	str	r0, [sp, #16]
	b	.L3
.L20:
	add	r9, sp, #8
	mov	r0, r9
	mov	r3, r7
	mov	r2, r6
	ldr	r1, .L25+40
	bl	rtreeCheckPrepare
	subs	fp, r0, #0
	beq	.L5
	bl	sqlite3_column_count
	mov	r2, r0
	mov	r0, fp
	sub	fp, r2, #2
	bl	sqlite3_finalize
.L5:
	ldr	r3, [r10]
	str	r3, [sp, #16]
	b	.L4
.L23:
	mov	r2, #0
	mov	r3, #1
	mov	r1, r2
	mov	r0, r9
	bl	rtreeCheckNode
	b	.L12
.L22:
	mov	r1, #1
	mov	r0, r6
	bl	sqlite3_column_type
	ldr	r3, .L25+44
	ldr	r3, [r3]
	sub	r3, r3, r0
	clz	r3, r3
	lsr	r3, r3, #5
	str	r3, [sp, #24]
	b	.L9
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC7
	.word	SQLITE_OK
	.word	.LC2
	.word	SQLITE_ROW
	.word	SQLITE_CORRUPT
	.word	.LC4
	.word	.LC5
	.word	.LC3
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	SQLITE_INTEGER
	.size	rtreeCheckTable, .-rtreeCheckTable
	.comm	SQLITE_ROW,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_INTEGER,4,4
	.comm	SQLITE_CORRUPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
