	.file	"extr_sqlite3.c_sqlite3_db_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sqlite3_db_status
	.type	sqlite3_db_status, @function
sqlite3_db_status:
.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
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR 16[rdi]
	mov	r15d, DWORD PTR SQLITE_OK[rip]
	mov	QWORD PTR [rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	sqlite3_mutex_enter@PLT
	lea	eax, -128[rbp]
	cmp	eax, 12
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L8-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L3-.L4
	.long	.L6-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	ebp, 136
.L3:
	xor	edi, edi
	mov	DWORD PTR 20[rsp], 0
	xor	r13d, r13d
	call	assert@PLT
	xor	edi, edi
	call	assert@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rax, 20[rsp]
	mov	QWORD PTR 8[rsp], rax
	test	esi, esi
	jle	.L29
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rax, r13
	sal	rax, 4
	add	rax, QWORD PTR 32[rbx]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L28
	call	sqlite3BtreePager@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, rax
	call	sqlite3PagerCacheStat@PLT
.L28:
	add	r13, 1
	cmp	DWORD PTR [rbx], r13d
	jg	.L27
.L29:
	mov	eax, DWORD PTR 20[rsp]
	mov	rcx, QWORD PTR [rsp]
	mov	DWORD PTR [r14], 0
	mov	DWORD PTR [rcx], eax
.L12:
	mov	edi, DWORD PTR 16[rbx]
	call	sqlite3_mutex_leave@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L65
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L8:
	.cfi_restore_state
	xor	edi, edi
	cmp	ebp, 133
	sete	dil
	call	testcase@PLT
	xor	edi, edi
	cmp	ebp, 131
	sete	dil
	call	testcase@PLT
	xor	edi, edi
	cmp	ebp, 132
	sete	dil
	call	testcase@PLT
	xor	edi, edi
	cmp	ebp, 132
	setg	dil
	call	assert@PLT
	mov	edi, 1
	call	assert@PLT
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR 48[rbx]
	lea	rax, -532[rax+rbp*4]
	mov	edx, DWORD PTR [rax]
	mov	DWORD PTR [r14], edx
	test	r12d, r12d
	je	.L12
	mov	DWORD PTR [rax], 0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbx
	call	sqlite3BtreeEnterAll@PLT
	mov	r8d, DWORD PTR [rbx]
	test	r8d, r8d
	jle	.L32
	xor	r13d, r13d
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, r13
	sal	rax, 4
	add	rax, QWORD PTR 32[rbx]
	mov	r8, QWORD PTR [rax]
	test	r8, r8
	je	.L15
	mov	rdi, r8
	mov	QWORD PTR 8[rsp], r8
	call	sqlite3BtreePager@PLT
	mov	rdi, rax
	call	sqlite3PagerMemUsed@PLT
	cmp	ebp, 136
	mov	r8, QWORD PTR 8[rsp]
	mov	esi, eax
	je	.L66
.L16:
	add	r12d, esi
.L15:
	add	r13, 1
	cmp	DWORD PTR [rbx], r13d
	jg	.L17
.L14:
	mov	rdi, rbx
	call	sqlite3BtreeLeaveAll@PLT
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], r12d
	mov	DWORD PTR [r14], 0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rbp, QWORD PTR 40[rbx]
	lea	rax, 20[rsp]
	mov	DWORD PTR 20[rsp], 0
	mov	QWORD PTR 8[rbx], rax
	test	rbp, rbp
	je	.L34
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rsi, rbp
	mov	rdi, rbx
	call	sqlite3VdbeClearObject@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	sqlite3DbFree@PLT
	mov	rbp, QWORD PTR 0[rbp]
	test	rbp, rbp
	jne	.L26
	mov	eax, DWORD PTR 20[rsp]
.L25:
	mov	rcx, QWORD PTR [rsp]
	mov	QWORD PTR 8[rbx], 0
	mov	DWORD PTR [r14], 0
	mov	DWORD PTR [rcx], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR [r14], 0
	mov	ecx, DWORD PTR 24[rbx]
	mov	eax, 1
	test	ecx, ecx
	jg	.L30
	mov	edx, DWORD PTR 20[rbx]
	xor	eax, eax
	test	edx, edx
	setg	al
.L30:
	mov	rcx, QWORD PTR [rsp]
	mov	DWORD PTR [rcx], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbx
	mov	DWORD PTR 20[rsp], 0
	xor	r12d, r12d
	call	sqlite3BtreeEnterAll@PLT
	mov	edi, DWORD PTR [rbx]
	lea	rax, 20[rsp]
	mov	QWORD PTR 8[rbx], rax
	test	edi, edi
	jg	.L18
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L23:
	add	r12, 1
	cmp	DWORD PTR [rbx], r12d
	jle	.L20
.L18:
	mov	rax, r12
	xor	edi, edi
	sal	rax, 4
	add	rax, QWORD PTR 32[rbx]
	mov	rbp, QWORD PTR 8[rax]
	test	rbp, rbp
	setne	dil
	call	ALWAYS@PLT
	test	eax, eax
	je	.L23
	mov	edi, 4
	call	[QWORD PTR sqlite3GlobalConfig[rip]]
	mov	edx, DWORD PTR 8[rbp]
	add	edx, DWORD PTR 0[rbp]
	mov	r8d, eax
	mov	eax, DWORD PTR 16[rbp]
	add	edx, DWORD PTR 24[rbp]
	add	eax, edx
	imul	eax, r8d
	add	DWORD PTR 20[rsp], eax
	mov	edi, DWORD PTR 4[rbp]
	call	sqlite3_msize@PLT
	add	DWORD PTR 20[rsp], eax
	mov	edi, DWORD PTR 12[rbp]
	call	sqlite3_msize@PLT
	add	DWORD PTR 20[rsp], eax
	mov	edi, DWORD PTR 28[rbp]
	call	sqlite3_msize@PLT
	add	DWORD PTR 20[rsp], eax
	mov	edi, DWORD PTR 20[rbp]
	call	sqlite3_msize@PLT
	lea	rdi, 8[rbp]
	add	DWORD PTR 20[rsp], eax
	call	sqliteHashFirst@PLT
	mov	r13, rax
	test	rax, rax
	je	.L24
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r13
	call	sqliteHashData@PLT
	mov	rdi, rbx
	mov	rsi, rax
	call	sqlite3DeleteTrigger@PLT
	mov	rdi, r13
	call	sqliteHashNext@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L21
.L24:
	mov	rdi, rbp
	call	sqliteHashFirst@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	sqliteHashData@PLT
	mov	rdi, rbx
	mov	rsi, rax
	call	sqlite3DeleteTable@PLT
	mov	rdi, rbp
	call	sqliteHashNext@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L22
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, r14
	mov	rdi, rbx
	call	sqlite3LookasideUsed@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	DWORD PTR [rcx], eax
	test	r12d, r12d
	je	.L12
	mov	rcx, QWORD PTR 56[rbx]
	test	rcx, rcx
	je	.L12
	mov	rax, rcx
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, rax
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR 64[rbx]
	mov	QWORD PTR [rdx], rax
	mov	QWORD PTR 64[rbx], rcx
	mov	QWORD PTR 56[rbx], 0
	jmp	.L12
.L2:
	mov	r15d, DWORD PTR SQLITE_ERROR[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L20:
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbx
	call	sqlite3BtreeLeaveAll@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	rcx, QWORD PTR [rsp]
	mov	DWORD PTR [r14], 0
	mov	DWORD PTR [rcx], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L66:
	mov	rdi, r8
	mov	DWORD PTR 8[rsp], eax
	call	sqlite3BtreeConnectionCount@PLT
	mov	esi, DWORD PTR 8[rsp]
	mov	r8d, eax
	mov	eax, esi
	cdq
	idiv	r8d
	mov	esi, eax
	jmp	.L16
.L34:
	xor	eax, eax
	jmp	.L25
.L32:
	xor	r12d, r12d
	jmp	.L14
.L65:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sqlite3_db_status, .-sqlite3_db_status
	.comm	sqlite3GlobalConfig,8,8
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_MISUSE_BKPT,4,4
	.comm	SQLITE_ERROR,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_sqlite3_db_status.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sqlite3_db_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3_db_status, %function
sqlite3_db_status:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	mov	r8, r3
	ldr	r1, .L65
	ldr	r3, .L65+4
	sub	sp, sp, #20
	mov	r4, r0
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r7, r2
	ldr	r9, [r1]
	bl	sqlite3_mutex_enter
	sub	r3, r6, #128
	cmp	r3, #12
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L8
	.word	.L8
	.word	.L7
	.word	.L3
	.word	.L6
	.word	.L6
	.word	.L5
	.word	.L3
	.word	.L3
.L5:
	mov	r6, #136
.L3:
	mov	r5, #0
	mov	r0, r5
	str	r5, [sp, #8]
	bl	assert
	mov	r0, r5
	bl	assert
	ldr	r3, [r4]
	cmp	r3, r5
	ble	.L29
.L27:
	ldr	r2, [r4, #20]
	ldr	r0, [r2, r5, lsl #3]
	cmp	r0, #0
	beq	.L28
	bl	sqlite3BtreePager
	add	r3, sp, #8
	mov	r1, r6
	ldr	r2, [sp, #56]
	bl	sqlite3PagerCacheStat
	ldr	r3, [r4]
.L28:
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L27
.L29:
	mov	r2, #0
	ldr	r3, [sp, #8]
	str	r2, [r8]
	str	r3, [r7]
.L12:
	ldr	r0, [r4, #8]
	bl	sqlite3_mutex_leave
	ldr	r3, .L65+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L63
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	sub	r0, r6, #133
	clz	r0, r0
	lsr	r0, r0, #5
	bl	testcase
	sub	r0, r6, #131
	clz	r0, r0
	lsr	r0, r0, #5
	bl	testcase
	sub	r0, r6, #132
	clz	r0, r0
	lsr	r0, r0, #5
	bl	testcase
	cmp	r6, #132
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	mov	r0, #1
	bl	assert
	mov	r2, #0
	ldr	r3, [r4, #28]
	add	r6, r6, #1073741824
	str	r2, [r7]
	sub	r6, r6, #133
	ldr	r0, [sp, #56]
	ldr	r1, [r3, r6, lsl #2]
	cmp	r0, r2
	str	r1, [r8]
	strne	r2, [r3, r6, lsl #2]
	b	.L12
.L6:
	mov	r0, r4
	bl	sqlite3BtreeEnterAll
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L32
	mov	r5, #0
	mov	r10, r5
.L17:
	ldr	r2, [r4, #20]
	ldr	fp, [r2, r5, lsl #3]
	cmp	fp, #0
	beq	.L15
	mov	r0, fp
	bl	sqlite3BtreePager
	bl	sqlite3PagerMemUsed
	cmp	r6, #136
	mov	r2, r0
	beq	.L64
.L16:
	ldr	r3, [r4]
	add	r10, r10, r2
.L15:
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L17
.L14:
	mov	r0, r4
	bl	sqlite3BtreeLeaveAll
	mov	r3, #0
	str	r10, [r7]
	str	r3, [r8]
	b	.L12
.L11:
	mov	r3, #0
	ldr	r5, [r4, #24]
	str	r3, [sp, #8]
	cmp	r5, r3
	add	r3, sp, #8
	str	r3, [r4, #4]
	beq	.L25
.L26:
	mov	r1, r5
	mov	r0, r4
	bl	sqlite3VdbeClearObject
	mov	r1, r5
	mov	r0, r4
	bl	sqlite3DbFree
	ldr	r5, [r5]
	cmp	r5, #0
	bne	.L26
	ldr	r5, [sp, #8]
.L25:
	mov	r3, #0
	str	r3, [r4, #4]
	str	r3, [r8]
	str	r5, [r7]
	b	.L12
.L7:
	mov	r3, #0
	str	r3, [r8]
	ldr	r3, [r4, #16]
	cmp	r3, #0
	movgt	r3, #1
	bgt	.L30
	ldr	r3, [r4, #12]
	cmp	r3, #0
	movle	r3, #0
	movgt	r3, #1
.L30:
	str	r3, [r7]
	b	.L12
.L10:
	mov	r6, #0
	mov	r0, r4
	str	r6, [sp, #8]
	bl	sqlite3BtreeEnterAll
	ldr	r3, [r4]
	cmp	r3, r6
	add	r3, sp, #8
	ldrgt	r10, .L65+8
	str	r3, [r4, #4]
	bgt	.L18
	b	.L20
.L23:
	ldr	r3, [r4]
	add	r6, r6, #1
	cmp	r3, r6
	ble	.L20
.L18:
	ldr	r3, [r4, #20]
	add	r3, r3, r6, lsl #3
	ldr	fp, [r3, #4]
	subs	r0, fp, #0
	movne	r0, #1
	bl	ALWAYS
	cmp	r0, #0
	beq	.L23
	ldr	r3, [r10]
	mov	r0, #4
	blx	r3
	ldr	r1, [fp, #8]
	ldr	r3, [fp]
	ldr	r2, [fp, #24]
	add	r3, r3, r1
	ldr	r1, [fp, #16]
	add	r3, r3, r2
	ldr	r2, [sp, #8]
	add	r3, r3, r1
	mla	r3, r0, r3, r2
	str	r3, [sp, #8]
	ldr	r0, [fp, #4]
	bl	sqlite3_msize
	ldr	r3, [sp, #8]
	add	r3, r3, r0
	str	r3, [sp, #8]
	ldr	r0, [fp, #12]
	bl	sqlite3_msize
	ldr	r3, [sp, #8]
	add	r3, r3, r0
	str	r3, [sp, #8]
	ldr	r0, [fp, #28]
	bl	sqlite3_msize
	ldr	r3, [sp, #8]
	add	r3, r3, r0
	str	r3, [sp, #8]
	ldr	r0, [fp, #20]
	bl	sqlite3_msize
	mov	r2, r0
	ldr	r3, [sp, #8]
	add	r0, fp, #8
	add	r3, r3, r2
	str	r3, [sp, #8]
	bl	sqliteHashFirst
	subs	r5, r0, #0
	beq	.L24
.L21:
	mov	r0, r5
	bl	sqliteHashData
	mov	r1, r0
	mov	r0, r4
	bl	sqlite3DeleteTrigger
	mov	r0, r5
	bl	sqliteHashNext
	subs	r5, r0, #0
	bne	.L21
.L24:
	mov	r0, fp
	bl	sqliteHashFirst
	subs	r5, r0, #0
	beq	.L23
.L22:
	mov	r0, r5
	bl	sqliteHashData
	mov	r1, r0
	mov	r0, r4
	bl	sqlite3DeleteTable
	mov	r0, r5
	bl	sqliteHashNext
	subs	r5, r0, #0
	bne	.L22
	b	.L23
.L9:
	mov	r1, r8
	mov	r0, r4
	bl	sqlite3LookasideUsed
	ldr	r3, [sp, #56]
	str	r0, [r7]
	cmp	r3, #0
	beq	.L12
	ldr	r1, [r4, #32]
	cmp	r1, #0
	beq	.L12
	mov	r3, r1
.L13:
	mov	r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	ldr	r0, [r4, #36]
	str	r0, [r2]
	str	r1, [r4, #36]
	str	r3, [r4, #32]
	b	.L12
.L20:
	mov	r5, #0
	mov	r0, r4
	str	r5, [r4, #4]
	bl	sqlite3BtreeLeaveAll
	ldr	r3, [sp, #8]
	str	r5, [r8]
	str	r3, [r7]
	b	.L12
.L64:
	str	r0, [sp, #4]
	mov	r0, fp
	bl	sqlite3BtreeConnectionCount
	ldr	r2, [sp, #4]
	mov	r1, r0
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r2, r0
	b	.L16
.L32:
	mov	r10, #0
	b	.L14
.L63:
	bl	__stack_chk_fail
.L2:
	ldr	r3, .L65+12
	ldr	r9, [r3]
	b	.L12
.L66:
	.align	2
.L65:
	.word	SQLITE_OK
	.word	.LC0
	.word	sqlite3GlobalConfig
	.word	SQLITE_ERROR
	.size	sqlite3_db_status, .-sqlite3_db_status
	.comm	sqlite3GlobalConfig,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_MISUSE_BKPT,4,4
	.comm	SQLITE_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
