	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcache1Alloc
_pcache1Alloc:                          ## @pcache1Alloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_pcache1@GOTPCREL(%rip), %r12
	movl	48(%r12), %edi
	callq	_sqlite3_mutex_notheld
	movl	%eax, %edi
	callq	_assert
	cmpl	%r14d, (%r12)
	jl	LBB0_4
## %bb.1:
	movl	32(%r12), %edi
	callq	_sqlite3_mutex_enter
	movq	40(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	%rax, 40(%r12)
	movq	8(%r12), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 8(%r12)
	xorl	%ecx, %ecx
	cmpq	24(%r12), %rax
	setle	%cl
	movl	%ecx, 16(%r12)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	_SQLITE_STATUS_PAGECACHE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_sqlite3StatusHighwater
	movq	_SQLITE_STATUS_PAGECACHE_USED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_sqlite3StatusUp
	movl	32(%r12), %edi
	callq	_sqlite3_mutex_leave
	jmp	LBB0_7
LBB0_3:
	movl	32(%r12), %edi
	callq	_sqlite3_mutex_leave
LBB0_4:
	movl	%r14d, %edi
	callq	_sqlite3Malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_sqlite3MallocSize
	movl	%eax, %r15d
	movl	32(%r12), %edi
	callq	_sqlite3_mutex_enter
	movq	_SQLITE_STATUS_PAGECACHE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_sqlite3StatusHighwater
	movq	_SQLITE_STATUS_PAGECACHE_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_sqlite3StatusUp
	movl	32(%r12), %edi
	callq	_sqlite3_mutex_leave
LBB0_6:
	movq	_MEMTYPE_PCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sqlite3MemdebugSetType
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pcache1,56,3                   ## @pcache1
	.comm	_SQLITE_STATUS_PAGECACHE_SIZE,4,2 ## @SQLITE_STATUS_PAGECACHE_SIZE
	.comm	_SQLITE_STATUS_PAGECACHE_USED,4,2 ## @SQLITE_STATUS_PAGECACHE_USED
	.comm	_SQLITE_STATUS_PAGECACHE_OVERFLOW,4,2 ## @SQLITE_STATUS_PAGECACHE_OVERFLOW
	.comm	_MEMTYPE_PCACHE,4,2             ## @MEMTYPE_PCACHE
	.no_dead_strip	_pcache1Alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcache1Alloc
_pcache1Alloc:                          ; @pcache1Alloc
	.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	x20, x0
Lloh0:
	adrp	x22, _pcache1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _pcache1@GOTPAGEOFF]
	ldr	w0, [x22, #48]
	bl	_sqlite3_mutex_notheld
	bl	_assert
	ldr	w8, [x22]
	cmp	w8, w20
	b.lt	LBB0_4
; %bb.1:
	ldr	w0, [x22, #32]
	bl	_sqlite3_mutex_enter
	ldr	x19, [x22, #40]
	cbz	x19, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	str	x8, [x22, #40]
	ldr	x8, [x22, #8]
	sub	x9, x8, #1
	str	x9, [x22, #8]
	ldr	x9, [x22, #24]
	cmp	x8, x9
	cset	w9, le
	str	w9, [x22, #16]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
Lloh2:
	adrp	x8, _SQLITE_STATUS_PAGECACHE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_STATUS_PAGECACHE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_sqlite3StatusHighwater
Lloh5:
	adrp	x8, _SQLITE_STATUS_PAGECACHE_USED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_STATUS_PAGECACHE_USED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_sqlite3StatusUp
	ldr	w0, [x22, #32]
	bl	_sqlite3_mutex_leave
	b	LBB0_7
LBB0_3:
	ldr	w0, [x22, #32]
	bl	_sqlite3_mutex_leave
LBB0_4:
	mov	x0, x20
	bl	_sqlite3Malloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_sqlite3MallocSize
	mov	x21, x0
	ldr	w0, [x22, #32]
	bl	_sqlite3_mutex_enter
Lloh8:
	adrp	x8, _SQLITE_STATUS_PAGECACHE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SQLITE_STATUS_PAGECACHE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_sqlite3StatusHighwater
Lloh11:
	adrp	x8, _SQLITE_STATUS_PAGECACHE_OVERFLOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SQLITE_STATUS_PAGECACHE_OVERFLOW@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_sqlite3StatusUp
	ldr	w0, [x22, #32]
	bl	_sqlite3_mutex_leave
LBB0_6:
Lloh14:
	adrp	x8, _MEMTYPE_PCACHE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MEMTYPE_PCACHE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3MemdebugSetType
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_pcache1,56,3                   ; @pcache1
	.comm	_SQLITE_STATUS_PAGECACHE_SIZE,4,2 ; @SQLITE_STATUS_PAGECACHE_SIZE
	.comm	_SQLITE_STATUS_PAGECACHE_USED,4,2 ; @SQLITE_STATUS_PAGECACHE_USED
	.comm	_SQLITE_STATUS_PAGECACHE_OVERFLOW,4,2 ; @SQLITE_STATUS_PAGECACHE_OVERFLOW
	.comm	_MEMTYPE_PCACHE,4,2             ; @MEMTYPE_PCACHE
	.no_dead_strip	_pcache1Alloc
.subsections_via_symbols
