	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcache1Free
_pcache1Free:                           ## @pcache1Free
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	_pcache1@GOTPCREL(%rip), %r15
	movl	48(%r15), %edx
	movl	52(%r15), %esi
	callq	_SQLITE_WITHIN
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	32(%r15), %edi
	callq	_sqlite3_mutex_enter
	movq	_SQLITE_STATUS_PAGECACHE_USED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_sqlite3StatusDown
	movq	40(%r15), %rax
	movq	%rax, (%rbx)
	movq	%rbx, 40(%r15)
	movq	(%r15), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r15)
	xorl	%edx, %edx
	cmpq	16(%r15), %rcx
	setl	%dl
	movl	%edx, 8(%r15)
	xorl	%edi, %edi
	cmpq	24(%r15), %rax
	setl	%dil
	callq	_assert
	movl	32(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_mutex_leave            ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MEMTYPE_PCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sqlite3MemdebugHasType
	movl	%eax, %edi
	callq	_assert
	movq	_MEMTYPE_HEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sqlite3MemdebugSetType
	movq	%rbx, %rdi
	callq	_sqlite3MallocSize
	movl	%eax, %r14d
	movl	32(%r15), %edi
	callq	_sqlite3_mutex_enter
	movq	_SQLITE_STATUS_PAGECACHE_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_sqlite3StatusDown
	movl	32(%r15), %edi
	callq	_sqlite3_mutex_leave
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_free                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pcache1,56,3                   ## @pcache1
	.comm	_SQLITE_STATUS_PAGECACHE_USED,4,2 ## @SQLITE_STATUS_PAGECACHE_USED
	.comm	_MEMTYPE_PCACHE,4,2             ## @MEMTYPE_PCACHE
	.comm	_MEMTYPE_HEAP,4,2               ## @MEMTYPE_HEAP
	.comm	_SQLITE_STATUS_PAGECACHE_OVERFLOW,4,2 ## @SQLITE_STATUS_PAGECACHE_OVERFLOW
	.no_dead_strip	_pcache1Free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcache1Free
_pcache1Free:                           ; @pcache1Free
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _pcache1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pcache1@GOTPAGEOFF]
	ldp	w2, w1, [x21, #48]
	bl	_SQLITE_WITHIN
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x21, #32]
	bl	_sqlite3_mutex_enter
Lloh2:
	adrp	x8, _SQLITE_STATUS_PAGECACHE_USED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_STATUS_PAGECACHE_USED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_sqlite3StatusDown
	ldr	x8, [x21, #40]
	str	x8, [x19]
	str	x19, [x21, #40]
	ldr	x8, [x21]
	add	x9, x8, #1
	str	x9, [x21]
	ldp	x10, x11, [x21, #16]
	cmp	x9, x10
	cset	w9, lt
	str	w9, [x21, #8]
	cmp	x8, x11
	cset	w0, lt
	bl	_assert
	ldr	w0, [x21, #32]
	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
	b	_sqlite3_mutex_leave
LBB0_3:
	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
LBB0_4:
Lloh5:
	adrp	x8, _MEMTYPE_PCACHE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MEMTYPE_PCACHE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3MemdebugHasType
	bl	_assert
Lloh8:
	adrp	x8, _MEMTYPE_HEAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEMTYPE_HEAP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3MemdebugSetType
	mov	x0, x19
	bl	_sqlite3MallocSize
	mov	x20, x0
	ldr	w0, [x21, #32]
	bl	_sqlite3_mutex_enter
Lloh11:
	adrp	x8, _SQLITE_STATUS_PAGECACHE_OVERFLOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SQLITE_STATUS_PAGECACHE_OVERFLOW@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_sqlite3StatusDown
	ldr	w0, [x21, #32]
	bl	_sqlite3_mutex_leave
	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
	b	_sqlite3_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_pcache1,56,3                   ; @pcache1
	.comm	_SQLITE_STATUS_PAGECACHE_USED,4,2 ; @SQLITE_STATUS_PAGECACHE_USED
	.comm	_MEMTYPE_PCACHE,4,2             ; @MEMTYPE_PCACHE
	.comm	_MEMTYPE_HEAP,4,2               ; @MEMTYPE_HEAP
	.comm	_SQLITE_STATUS_PAGECACHE_OVERFLOW,4,2 ; @SQLITE_STATUS_PAGECACHE_OVERFLOW
	.no_dead_strip	_pcache1Free
.subsections_via_symbols
