	.file	"extr_pcache1.c_pcache1Destroy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcache1Destroy, @function
pcache1Destroy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR 40[rbp], 0
	mov	r12, QWORD PTR 48[rdi]
	mov	edi, 1
	jne	.L2
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	je	.L8
.L2:
	call	assert@PLT
	mov	rdi, r12
	call	pcache1EnterMutex@PLT
	cmp	QWORD PTR 32[rbp], 0
	jne	.L9
.L3:
	mov	rax, QWORD PTR 0[rbp]
	xor	edi, edi
	cmp	QWORD PTR [r12], rax
	setge	dil
	call	assert@PLT
	mov	rax, QWORD PTR 0[rbp]
	sub	QWORD PTR [r12], rax
	xor	edi, edi
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR 8[r12], rax
	setge	dil
	call	assert@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR 8[r12]
	mov	rdi, rbp
	sub	rdx, QWORD PTR 8[rbp]
	add	rax, 10
	mov	QWORD PTR 8[r12], rdx
	sub	rax, rdx
	mov	QWORD PTR 16[r12], rax
	call	pcache1EnforceMaxPage@PLT
	mov	rdi, r12
	call	pcache1LeaveMutex@PLT
	mov	rdi, QWORD PTR 24[rbp]
	call	sqlite3_free@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	sqlite3_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	sqlite3_free@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	edi, edi
	cmp	QWORD PTR 8[rbp], 0
	sete	dil
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	xor	esi, esi
	mov	rdi, rbp
	call	pcache1TruncateUnsafe@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pcache1Destroy, .-pcache1Destroy
	.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_pcache1.c_pcache1Destroy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcache1Destroy, %function
pcache1Destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #20]
	ldr	r5, [r4, #24]
	cmp	r0, #0
	movne	r0, #1
	bne	.L2
	ldr	r3, [r4]
	cmp	r3, #0
	ldreq	r0, [r4, #4]
	clzeq	r0, r0
	lsreq	r0, r0, #5
.L2:
	bl	assert
	mov	r0, r5
	bl	pcache1EnterMutex
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L10
.L3:
	ldr	r0, [r5]
	ldr	r3, [r4]
	cmp	r0, r3
	movlt	r0, #0
	movge	r0, #1
	bl	assert
	ldr	r1, [r4]
	ldr	r0, [r5, #4]
	ldr	r2, [r4, #4]
	ldr	r3, [r5]
	cmp	r0, r2
	sub	r3, r3, r1
	movlt	r0, #0
	movge	r0, #1
	str	r3, [r5]
	bl	assert
	ldr	r1, [r4, #4]
	ldr	r2, [r5, #4]
	ldr	r3, [r5]
	sub	r2, r2, r1
	add	r3, r3, #10
	sub	r3, r3, r2
	stmib	r5, {r2, r3}
	mov	r0, r4
	bl	pcache1EnforceMaxPage
	mov	r0, r5
	bl	pcache1LeaveMutex
	ldr	r0, [r4, #12]
	bl	sqlite3_free
	ldr	r0, [r4, #8]
	bl	sqlite3_free
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	sqlite3_free
.L10:
	mov	r1, #0
	mov	r0, r4
	bl	pcache1TruncateUnsafe
	b	.L3
	.size	pcache1Destroy, .-pcache1Destroy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
