	.file	"extr_sqlite3.c_pcache1Free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcache1Free, @function
pcache1Free:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L1
	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
	mov	edx, DWORD PTR pcache1[rip+48]
	mov	esi, DWORD PTR pcache1[rip+52]
	call	SQLITE_WITHIN@PLT
	test	rax, rax
	je	.L3
	mov	edi, DWORD PTR pcache1[rip+32]
	call	sqlite3_mutex_enter@PLT
	mov	edi, DWORD PTR SQLITE_STATUS_PAGECACHE_USED[rip]
	mov	esi, 1
	call	sqlite3StatusDown@PLT
	mov	rax, QWORD PTR pcache1[rip+40]
	xor	edx, edx
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR pcache1[rip]
	mov	QWORD PTR pcache1[rip+40], rbp
	add	rax, 1
	cmp	rax, QWORD PTR pcache1[rip+16]
	setl	dl
	xor	edi, edi
	cmp	rax, QWORD PTR pcache1[rip+24]
	mov	QWORD PTR pcache1[rip], rax
	setle	dil
	mov	DWORD PTR pcache1[rip+8], edx
	call	assert@PLT
	mov	edi, DWORD PTR pcache1[rip+32]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	sqlite3_mutex_leave@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR MEMTYPE_PCACHE[rip]
	mov	rdi, rbp
	call	sqlite3MemdebugHasType@PLT
	mov	edi, eax
	call	assert@PLT
	mov	esi, DWORD PTR MEMTYPE_HEAP[rip]
	mov	rdi, rbp
	call	sqlite3MemdebugSetType@PLT
	mov	rdi, rbp
	call	sqlite3MallocSize@PLT
	mov	edi, DWORD PTR pcache1[rip+32]
	mov	r12d, eax
	call	sqlite3_mutex_enter@PLT
	mov	edi, DWORD PTR SQLITE_STATUS_PAGECACHE_OVERFLOW[rip]
	mov	esi, r12d
	call	sqlite3StatusDown@PLT
	mov	edi, DWORD PTR pcache1[rip+32]
	call	sqlite3_mutex_leave@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	sqlite3_free@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	pcache1Free, .-pcache1Free
	.comm	pcache1,56,32
	.comm	SQLITE_STATUS_PAGECACHE_USED,4,4
	.comm	SQLITE_STATUS_PAGECACHE_OVERFLOW,4,4
	.comm	MEMTYPE_PCACHE,4,4
	.comm	MEMTYPE_HEAP,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_pcache1Free.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcache1Free, %function
pcache1Free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r5, .L6
	ldr	r2, [r5, #24]
	ldr	r1, [r5, #28]
	bl	SQLITE_WITHIN
	cmp	r0, #0
	beq	.L3
	ldr	r0, [r5, #16]
	bl	sqlite3_mutex_enter
	ldr	r3, .L6+4
	mov	r1, #1
	ldr	r0, [r3]
	bl	sqlite3StatusDown
	ldr	r3, [r5]
	ldr	r2, [r5, #8]
	add	r3, r3, #1
	cmp	r3, r2
	movge	r2, #0
	movlt	r2, #1
	ldr	r0, [r5, #12]
	ldr	r1, [r5, #20]
	cmp	r3, r0
	str	r1, [r4]
	movgt	r0, #0
	movle	r0, #1
	str	r2, [r5, #4]
	str	r3, [r5]
	str	r4, [r5, #20]
	bl	assert
	ldr	r0, [r5, #16]
	pop	{r4, r5, r6, lr}
	b	sqlite3_mutex_leave
.L3:
	ldr	r3, .L6+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	sqlite3MemdebugHasType
	bl	assert
	ldr	r3, .L6+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	sqlite3MemdebugSetType
	mov	r0, r4
	bl	sqlite3MallocSize
	mov	r6, r0
	ldr	r0, [r5, #16]
	bl	sqlite3_mutex_enter
	ldr	r3, .L6+16
	mov	r1, r6
	ldr	r0, [r3]
	bl	sqlite3StatusDown
	ldr	r0, [r5, #16]
	bl	sqlite3_mutex_leave
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	sqlite3_free
.L7:
	.align	2
.L6:
	.word	pcache1
	.word	SQLITE_STATUS_PAGECACHE_USED
	.word	MEMTYPE_PCACHE
	.word	MEMTYPE_HEAP
	.word	SQLITE_STATUS_PAGECACHE_OVERFLOW
	.size	pcache1Free, .-pcache1Free
	.comm	pcache1,32,4
	.comm	SQLITE_STATUS_PAGECACHE_USED,4,4
	.comm	SQLITE_STATUS_PAGECACHE_OVERFLOW,4,4
	.comm	MEMTYPE_PCACHE,4,4
	.comm	MEMTYPE_HEAP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
