	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcache1Create
_pcache1Create:                         ## @pcache1Create
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %r13d
	leal	-1(%r13), %eax
	testl	%eax, %edi
	sete	%al
	leal	-512(%r13), %ecx
	cmpl	$65025, %ecx                    ## imm = 0xFE01
	setb	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	$300, %r12d                     ## imm = 0x12C
	setl	%dil
	callq	_assert
	movq	_pcache1@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	leal	(%rax,%rax,4), %eax
	leal	56(,%rax,8), %edi
	callq	_sqlite3MallocZero
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.3:
	leaq	56(%rbx), %r15
	movl	$10, 56(%rbx)
	jmp	LBB0_4
LBB0_2:
	addq	$8, %r15
LBB0_4:
	movq	%r15, %rdi
	callq	_pcache1EnterMutex
	cmpl	$0, 16(%r15)
	jne	LBB0_6
## %bb.5:
	leaq	16(%r15), %rax
	movl	$1, 16(%r15)
	movq	%rax, 24(%r15)
	movq	%rax, 32(%r15)
LBB0_6:
	movq	%r15, 48(%rbx)
	movl	%r13d, (%rbx)
	movl	%r12d, 4(%rbx)
	addl	%r13d, %r12d
	movslq	%r12d, %r12
	movl	$4, %edi
	callq	_ROUND8
	addq	%r12, %rax
	movq	%rax, 40(%rbx)
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_pcache1ResizeHash
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movl	$10, 12(%rbx)
	movl	4(%r15), %eax
	movl	8(%r15), %ecx
	leal	10(%rax), %edx
	movl	%edx, 4(%r15)
	subl	%eax, %ecx
	movl	%ecx, (%r15)
	leaq	12(%r15), %rax
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %rax
LBB0_9:
	movq	%rax, 32(%rbx)
	movq	%r15, %rdi
	callq	_pcache1LeaveMutex
	cmpq	$0, 16(%rbx)
	jne	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_pcache1Destroy
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pcache1,48,3                   ## @pcache1
	.no_dead_strip	_pcache1Create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcache1Create
_pcache1Create:                         ; @pcache1Create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	sub	w8, w0, #1
	sub	w9, w0, #512
	tst	w0, w8
	mov	w8, #65025
	ccmp	w9, w8, #2, eq
	cset	w0, lo
	bl	_assert
	cmp	w22, #300
	cset	w0, lt
	bl	_assert
Lloh0:
	adrp	x20, _pcache1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pcache1@GOTPAGEOFF]
	ldr	w8, [x20]
	mov	w9, #40
	orr	w10, wzr, #0x38
	madd	w0, w8, w9, w10
	bl	_sqlite3MallocZero
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w8, [x20], #8
	cbz	w8, LBB0_3
; %bb.2:
	mov	w8, #10
	mov	x20, x19
	str	w8, [x20, #56]!
LBB0_3:
	mov	x0, x20
	bl	_pcache1EnterMutex
	mov	x8, x20
	ldr	w9, [x8, #16]!
	cbnz	w9, LBB0_5
; %bb.4:
	mov	w9, #1
	str	w9, [x20, #16]
	stp	x8, x8, [x20, #24]
LBB0_5:
	str	x20, [x19, #48]
	add	w24, w22, w23
	stp	w23, w22, [x19]
	mov	w0, #4
	bl	_ROUND8
	add	x8, x0, w24, sxtw
	str	x8, [x19, #40]
	cmp	w21, #0
	cset	w8, ne
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_pcache1ResizeHash
	cbz	w21, LBB0_7
; %bb.6:
	mov	w8, #10
	str	w8, [x19, #12]
	ldp	w8, w9, [x20, #4]
	add	w10, w8, #10
	sub	w8, w9, w8
	stp	w8, w10, [x20]
	add	x8, x20, #12
	b	LBB0_8
LBB0_7:
	add	x8, x19, #24
LBB0_8:
	str	x8, [x19, #32]
	mov	x0, x20
	bl	_pcache1LeaveMutex
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_pcache1Destroy
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pcache1,48,3                   ; @pcache1
	.no_dead_strip	_pcache1Create
.subsections_via_symbols
