	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcache1EnforceMaxPage
_pcache1EnforceMaxPage:                 ## @pcache1EnforceMaxPage
	.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, %r14
	movq	24(%rdi), %r15
	movl	24(%r15), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r15), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	%r15, (%rax)
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_PAGE_IS_UNPINNED
	movl	%eax, %edi
	callq	_assert
	movq	%rbx, %rdi
	callq	_pcache1PinPage
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pcache1RemoveFromHash
	jmp	LBB0_1
LBB0_4:
	cmpq	$0, (%r14)
	jne	LBB0_7
## %bb.5:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_sqlite3_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pcache1EnforceMaxPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcache1EnforceMaxPage
_pcache1EnforceMaxPage:                 ; @pcache1EnforceMaxPage
	.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	x21, [x0, #24]
	ldr	w0, [x21, #24]
	bl	_sqlite3_mutex_held
	bl	_assert
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x20, [x21, #16]
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x8, x21
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	bl	_PAGE_IS_UNPINNED
	bl	_assert
	mov	x0, x20
	bl	_pcache1PinPage
	mov	x0, x20
	mov	w1, #1
	bl	_pcache1RemoveFromHash
	b	LBB0_1
LBB0_4:
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
; %bb.5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_sqlite3_free
	stp	xzr, xzr, [x19, #8]
LBB0_7:
	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	_pcache1EnforceMaxPage
.subsections_via_symbols
