	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcache1AllocPage
_pcache1AllocPage:                      ## @pcache1AllocPage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	4(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movq	8(%rbx), %rdi
	callq	_pcache1LeaveMutex
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	leal	(%rax,%rcx), %edi
	addl	$16, %edi
	callq	_pcache1Alloc
	movq	%rax, %r14
	movslq	(%rbx), %r15
	movq	8(%rbx), %rdi
	callq	_pcache1EnterMutex
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	leaq	(%r14,%r15,4), %rax
	movq	%r14, 8(%rax)
	leaq	16(%rax), %rcx
	movq	%rcx, (%rax)
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rcx
	incl	(%rcx)
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pcache1AllocPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcache1AllocPage
_pcache1AllocPage:                      ; @pcache1AllocPage
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #4]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	x0, [x19, #8]
	bl	_pcache1LeaveMutex
	ldp	w8, w9, [x19]
	add	w8, w8, w9
	add	w0, w8, #16
	bl	_pcache1Alloc
	mov	x20, x0
	ldrsw	x21, [x19]
	ldr	x0, [x19, #8]
	bl	_pcache1EnterMutex
	cbz	x20, LBB0_3
; %bb.1:
	add	x0, x20, x21, lsl #2
	add	x8, x0, #16
	stp	x8, x20, [x0]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pcache1AllocPage
.subsections_via_symbols
