	.file	"extr_sqlite3.c_pcache1PinPage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcache1PinPage, @function
pcache1PinPage:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L20
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	mov	rbp, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 16[rbp]
	call	sqlite3_mutex_held@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	je	.L24
	mov	rdx, QWORD PTR 8[rbx]
	mov	rcx, QWORD PTR 0[rbp]
	test	rdx, rdx
	je	.L11
.L10:
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	je	.L7
.L11:
	mov	QWORD PTR 8[rax], rdx
.L7:
	cmp	QWORD PTR 8[rbp], rbx
	je	.L12
	cmp	rbx, rcx
	je	.L25
.L9:
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
	sub	DWORD PTR [rax], 1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	cmp	QWORD PTR 0[rbp], rbx
	jne	.L1
	mov	rdx, QWORD PTR 8[rbx]
	mov	rcx, rbx
	test	rdx, rdx
	jne	.L10
	cmp	rbx, QWORD PTR 8[rbp]
	jne	.L13
	mov	rcx, rbx
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR 8[rbp], rax
	cmp	rbx, rcx
	jne	.L9
.L25:
	mov	rdx, QWORD PTR 8[rbx]
.L13:
	mov	QWORD PTR 0[rbp], rdx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	pcache1PinPage, .-pcache1PinPage
	.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_pcache1PinPage.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcache1PinPage, %function
pcache1PinPage:
	@ 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	r3, [r4]
	ldr	r5, [r3, #4]
	ldr	r0, [r5, #8]
	bl	sqlite3_mutex_held
	bl	assert
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L21
	ldr	r2, [r4, #4]
	ldr	r1, [r5]
	cmp	r2, #0
	beq	.L11
.L10:
	str	r3, [r2, #8]
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L7
.L11:
	str	r2, [r3, #4]
.L7:
	ldr	r2, [r5, #4]
	cmp	r2, r4
	beq	.L12
	cmp	r4, r1
	beq	.L22
.L9:
	mov	r1, #0
	ldr	r2, [r4]
	str	r1, [r4, #8]
	ldr	r3, [r2]
	str	r1, [r4, #4]
	sub	r3, r3, #1
	str	r3, [r2]
	pop	{r4, r5, r6, pc}
.L21:
	ldr	r2, [r5]
	cmp	r2, r4
	popne	{r4, r5, r6, pc}
	ldr	r2, [r4, #4]
	cmp	r2, #0
	movne	r1, r4
	bne	.L10
	ldr	r1, [r5, #4]
	cmp	r4, r1
	bne	.L13
	mov	r1, r4
.L12:
	cmp	r4, r1
	str	r3, [r5, #4]
	bne	.L9
.L22:
	ldr	r2, [r4, #4]
.L13:
	str	r2, [r5]
	b	.L9
	.size	pcache1PinPage, .-pcache1PinPage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
