	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcache1RemoveFromHash
_pcache1RemoveFromHash:                 ## @pcache1RemoveFromHash
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movl	(%rbx), %eax
	xorl	%edx, %edx
	divl	(%r15)
                                        ## kill: def $edx killed $edx def $rdx
	shlq	$3, %rdx
	addq	8(%r15), %rdx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	movq	(%rdx), %rcx
	leaq	8(%rcx), %rdx
	cmpq	%rbx, %rcx
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	decl	4(%r15)
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcache1FreePage                ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pcache1RemoveFromHash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcache1RemoveFromHash
_pcache1RemoveFromHash:                 ; @pcache1RemoveFromHash
	.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, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	w8, [x19]
	ldr	w9, [x21]
	udiv	w10, w8, w9
	msub	w8, w10, w9, w8
	ldr	x9, [x21, #8]
	add	x9, x9, w8, uxtw #3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldr	x10, [x9]
	add	x9, x10, #8
	cmp	x10, x19
	b.ne	LBB0_1
; %bb.2:
	ldr	x9, [x19, #8]
	str	x9, [x8]
	ldr	w8, [x21, #4]
	sub	w8, w8, #1
	str	w8, [x21, #4]
	cbz	w20, LBB0_4
; %bb.3:
	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	_pcache1FreePage
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	_pcache1RemoveFromHash
.subsections_via_symbols
