	.file	"extr_sqlite3.c_incrVacuumStep.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	incrVacuumStep, @function
incrVacuumStep:
.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	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	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, rdx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	sqlite3_mutex_held@PLT
	mov	edi, eax
	call	assert@PLT
	xor	edi, edi
	cmp	rbx, r12
	setg	dil
	call	assert@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	PTRMAP_ISPAGE@PLT
	test	rax, rax
	je	.L27
.L15:
	test	r13d, r13d
	jne	.L18
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	sub	rbx, 1
	call	PENDING_BYTE_PAGE@PLT
	cmp	rax, rbx
	je	.L17
	mov	rsi, rbx
	mov	rdi, rbp
	call	PTRMAP_ISPAGE@PLT
	test	rax, rax
	jne	.L17
	mov	DWORD PTR 0[rbp], 1
	mov	QWORD PTR 8[rbp], rbx
.L18:
	mov	r8d, DWORD PTR SQLITE_OK[rip]
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L27:
	.cfi_restore_state
	mov	rdi, rbp
	mov	r15, rax
	call	PENDING_BYTE_PAGE@PLT
	cmp	rax, rbx
	je	.L15
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR [rax]
	add	rdi, 144
	call	get4byte@PLT
	mov	r8d, DWORD PTR SQLITE_DONE[rip]
	test	rax, rax
	je	.L1
	lea	rcx, 24[rsp]
	lea	rdx, 16[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	call	ptrmapGet@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r8d, eax
	jne	.L1
	mov	rax, QWORD PTR 16[rsp]
	cmp	rax, QWORD PTR PTRMAP_ROOTPAGE[rip]
	mov	r8d, DWORD PTR SQLITE_CORRUPT_BKPT[rip]
	je	.L1
	cmp	rax, QWORD PTR PTRMAP_FREEPAGE[rip]
	jne	.L6
	test	r13d, r13d
	jne	.L18
	lea	rdx, 40[rsp]
	lea	rsi, 48[rsp]
	mov	rcx, rbx
	mov	rdi, rbp
	mov	r8, QWORD PTR BTALLOC_EXACT[rip]
	call	allocateBtreePage@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r8d, eax
	jne	.L1
	xor	edi, edi
	cmp	QWORD PTR 40[rsp], rbx
	sete	dil
	call	assert@PLT
	mov	rdi, QWORD PTR 48[rsp]
	call	releasePage@PLT
	jmp	.L17
.L6:
	xor	ecx, ecx
	lea	rdx, 40[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	mov	r14, QWORD PTR BTALLOC_ANY[rip]
	call	btreeGetPage@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r8d, eax
	jne	.L1
	test	r13d, r13d
	jne	.L10
	mov	r14, QWORD PTR BTALLOC_LE[rip]
	mov	r15, r12
.L10:
	lea	rax, 48[rsp]
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 32[rsp]
	mov	QWORD PTR [rsp], rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR 48[rsp]
	call	releasePage@PLT
	mov	rax, QWORD PTR 32[rsp]
	test	r13d, r13d
	je	.L14
	cmp	rax, r12
	jle	.L14
.L13:
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	r8, r14
	mov	rcx, r15
	mov	rdi, rbp
	call	allocateBtreePage@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	je	.L11
	mov	rdi, QWORD PTR 40[rsp]
	mov	DWORD PTR [rsp], eax
	call	releasePage@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
.L14:
	xor	edi, edi
	cmp	rax, rbx
	setl	dil
	call	assert@PLT
	mov	r8, QWORD PTR 32[rsp]
	mov	r9d, r13d
	mov	rdi, rbp
	mov	rcx, QWORD PTR 24[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 40[rsp]
	call	relocatePage@PLT
	mov	rdi, QWORD PTR 40[rsp]
	mov	DWORD PTR [rsp], eax
	call	releasePage@PLT
	mov	r8d, DWORD PTR [rsp]
	cmp	DWORD PTR SQLITE_OK[rip], r8d
	jne	.L1
	jmp	.L15
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	incrVacuumStep, .-incrVacuumStep
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_DONE,4,4
	.comm	SQLITE_CORRUPT_BKPT,4,4
	.comm	PTRMAP_ROOTPAGE,8,8
	.comm	PTRMAP_FREEPAGE,8,8
	.comm	BTALLOC_LE,8,8
	.comm	BTALLOC_EXACT,8,8
	.comm	BTALLOC_ANY,8,8
	.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_incrVacuumStep.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	incrVacuumStep, %function
incrVacuumStep:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	mov	r7, r1
	mov	r5, r0
	mov	r10, r3
	ldr	r3, .L34
	sub	sp, sp, #36
	ldr	r0, [r0, #12]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	sqlite3_mutex_held
	bl	assert
	cmp	r4, r7
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	mov	r1, r4
	mov	r0, r5
	bl	PTRMAP_ISPAGE
	subs	r6, r0, #0
	beq	.L27
.L30:
	ldr	r9, .L34+4
.L15:
	cmp	r10, #0
	bne	.L18
.L17:
	mov	r0, r5
	bl	PENDING_BYTE_PAGE
	sub	r4, r4, #1
	cmp	r0, r4
	beq	.L17
	mov	r1, r4
	mov	r0, r5
	bl	PTRMAP_ISPAGE
	cmp	r0, #0
	bne	.L17
	mov	r3, #1
	stm	r5, {r3, r4}
.L18:
	ldr	r8, [r9]
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, r8
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	mov	r0, r5
	bl	PENDING_BYTE_PAGE
	cmp	r0, r4
	beq	.L30
	ldr	r3, [r5, #8]
	ldr	r0, [r3]
	add	r0, r0, #144
	bl	get4byte
	cmp	r0, #0
	ldreq	r3, .L34+8
	ldreq	r8, [r3]
	beq	.L1
.L3:
	add	r3, sp, #12
	mov	r1, r4
	mov	r0, r5
	add	r2, sp, #8
	bl	ptrmapGet
	ldr	r9, .L34+4
	mov	r8, r0
	ldr	r3, [r9]
	cmp	r3, r0
	bne	.L1
	ldr	r2, .L34+12
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L33
	ldr	r2, .L34+16
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L6
	cmp	r10, #0
	bne	.L18
	ldr	r2, .L34+20
	mov	r3, r4
	ldr	r1, [r2]
	mov	r0, r5
	str	r1, [sp]
	add	r2, sp, #20
	add	r1, sp, #24
	bl	allocateBtreePage
	ldr	r3, [r9]
	mov	r8, r0
	cmp	r3, r0
	bne	.L1
	ldr	r0, [sp, #20]
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [sp, #24]
	bl	releasePage
	b	.L17
.L6:
	ldr	ip, .L34+24
	mov	r3, r6
	mov	r1, r4
	mov	r0, r5
	add	r2, sp, #20
	ldr	fp, [ip]
	bl	btreeGetPage
	ldr	r3, [r9]
	mov	r8, r0
	cmp	r3, r0
	bne	.L1
	cmp	r10, #0
	ldreq	r3, .L34+28
	moveq	r6, r7
	ldreq	fp, [r3]
	b	.L13
.L11:
	ldr	r0, [sp, #24]
	bl	releasePage
	cmp	r10, #0
	ldr	r0, [sp, #16]
	beq	.L14
	cmp	r0, r7
	ble	.L14
.L13:
	mov	r3, r6
	mov	r0, r5
	str	fp, [sp]
	add	r2, sp, #16
	add	r1, sp, #24
	bl	allocateBtreePage
	ldr	r3, [r9]
	mov	r8, r0
	cmp	r3, r0
	beq	.L11
	ldr	r0, [sp, #20]
	bl	releasePage
	b	.L1
.L33:
	ldr	r3, .L34+32
	ldr	r8, [r3]
	b	.L1
.L14:
	cmp	r0, r4
	movge	r0, #0
	movlt	r0, #1
	bl	assert
	ldr	r3, [sp, #16]
	ldr	r2, [sp, #8]
	stm	sp, {r3, r10}
	ldr	r1, [sp, #20]
	ldr	r3, [sp, #12]
	mov	r0, r5
	bl	relocatePage
	mov	r8, r0
	ldr	r0, [sp, #20]
	bl	releasePage
	ldr	r3, [r9]
	cmp	r3, r8
	bne	.L1
	b	.L15
.L32:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC0
	.word	SQLITE_OK
	.word	SQLITE_DONE
	.word	PTRMAP_ROOTPAGE
	.word	PTRMAP_FREEPAGE
	.word	BTALLOC_EXACT
	.word	BTALLOC_ANY
	.word	BTALLOC_LE
	.word	SQLITE_CORRUPT_BKPT
	.size	incrVacuumStep, .-incrVacuumStep
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_DONE,4,4
	.comm	SQLITE_CORRUPT_BKPT,4,4
	.comm	PTRMAP_ROOTPAGE,4,4
	.comm	PTRMAP_FREEPAGE,4,4
	.comm	BTALLOC_LE,4,4
	.comm	BTALLOC_EXACT,4,4
	.comm	BTALLOC_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
