	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcache1Destroy
_pcache1Destroy:                        ## @pcache1Destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	movl	$1, %edi
	cmpq	$0, 40(%rbx)
	jne	LBB0_3
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
LBB0_3:
	callq	_assert
	movq	%r14, %rdi
	callq	_pcache1EnterMutex
	cmpq	$0, 32(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pcache1TruncateUnsafe
LBB0_5:
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setge	%dil
	callq	_assert
	movq	(%rbx), %rax
	subq	%rax, (%r14)
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	setge	%dil
	callq	_assert
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	subq	8(%rbx), %rcx
	movq	%rcx, 8(%r14)
	subq	%rcx, %rax
	addq	$10, %rax
	movq	%rax, 16(%r14)
	movq	%rbx, %rdi
	callq	_pcache1EnforceMaxPage
	movq	%r14, %rdi
	callq	_pcache1LeaveMutex
	movq	24(%rbx), %rdi
	callq	_sqlite3_free
	movq	16(%rbx), %rdi
	callq	_sqlite3_free
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sqlite3_free                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pcache1Destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcache1Destroy
_pcache1Destroy:                        ; @pcache1Destroy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x8, x20, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
LBB0_5:
	bl	_assert
	mov	x0, x20
	bl	_pcache1EnterMutex
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_pcache1TruncateUnsafe
LBB0_7:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, ge
	bl	_assert
	ldp	x8, x9, [x20]
	ldp	x10, x11, [x19]
	sub	x8, x8, x10
	str	x8, [x20]
	cmp	x9, x11
	cset	w0, ge
	bl	_assert
	ldr	x8, [x19, #8]
	ldp	x10, x9, [x20]
	sub	x8, x9, x8
	sub	x9, x10, x8
	add	x9, x9, #10
	stp	x8, x9, [x20, #8]
	mov	x0, x19
	bl	_pcache1EnforceMaxPage
	mov	x0, x20
	bl	_pcache1LeaveMutex
	ldr	x0, [x19, #24]
	bl	_sqlite3_free
	ldr	x0, [x19, #16]
	bl	_sqlite3_free
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sqlite3_free
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pcache1Destroy
.subsections_via_symbols
