	.file	"extr_pcache1.c_pcache1AllocPage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcache1AllocPage, @function
pcache1AllocPage:
.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	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 32[rdi]
	mov	rbx, rdi
	mov	edi, DWORD PTR [rax]
	call	sqlite3_mutex_held@PLT
	mov	edi, eax
	call	assert@PLT
	mov	r12, QWORD PTR 48[rbx]
	test	r12, r12
	je	.L14
.L2:
	mov	rax, QWORD PTR 32[r12]
	mov	QWORD PTR 48[rbx], rax
	mov	QWORD PTR 32[r12], 0
.L4:
	mov	rax, QWORD PTR 24[rbx]
	add	DWORD PTR [rax], 1
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	QWORD PTR [rbx], 0
	je	.L15
.L3:
	test	ebp, ebp
	jne	.L16
	mov	rdi, QWORD PTR 16[rbx]
	call	pcache1Alloc@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rbx]
	lea	r12, 0[rbp+rax*4]
.L7:
	test	rbp, rbp
	je	.L8
	lea	rax, 40[r12]
	mov	QWORD PTR 24[r12], rbp
	mov	QWORD PTR 16[r12], rax
	mov	QWORD PTR 8[r12], 0
	mov	QWORD PTR [r12], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	xor	eax, eax
	call	sqlite3BeginBenignMalloc@PLT
	mov	rdi, QWORD PTR 16[rbx]
	call	pcache1Alloc@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rbx]
	lea	r12, 0[rbp+rax*4]
	xor	eax, eax
	call	sqlite3EndBenignMalloc@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbx
	call	pcache1InitBulk@PLT
	test	rax, rax
	je	.L3
	mov	r12, QWORD PTR 48[rbx]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	pcache1AllocPage, .-pcache1AllocPage
	.comm	pcache1,16,16
	.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_pcache1AllocPage.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcache1AllocPage, %function
pcache1AllocPage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, [r0, #16]
	mov	r6, r1
	ldr	r0, [r3]
	bl	sqlite3_mutex_held
	bl	assert
	ldr	r5, [r4, #24]
	cmp	r5, #0
	beq	.L14
.L2:
	mov	r3, #0
	ldr	r2, [r5, #16]
	str	r2, [r4, #24]
	str	r3, [r5, #16]
.L4:
	ldr	r2, [r4, #12]
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L15
.L3:
	cmp	r6, #0
	bne	.L16
	ldr	r0, [r4, #8]
	bl	pcache1Alloc
	mov	r6, r0
	ldr	r5, [r4, #4]
	add	r5, r0, r5, lsl #2
.L7:
	cmp	r6, #0
	beq	.L8
	mov	r3, #0
	add	r2, r5, #20
	str	r6, [r5, #12]
	str	r3, [r5, #4]
	str	r3, [r5]
	str	r2, [r5, #8]
	b	.L4
.L16:
	bl	sqlite3BeginBenignMalloc
	ldr	r0, [r4, #8]
	bl	pcache1Alloc
	ldr	r5, [r4, #4]
	mov	r6, r0
	add	r5, r0, r5, lsl #2
	bl	sqlite3EndBenignMalloc
	b	.L7
.L15:
	mov	r0, r4
	bl	pcache1InitBulk
	cmp	r0, #0
	beq	.L3
	ldr	r5, [r4, #24]
	b	.L2
.L8:
	mov	r5, r6
	b	.L1
	.size	pcache1AllocPage, .-pcache1AllocPage
	.comm	pcache1,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
