	.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, %r15d
	movl	%edi, %r12d
	leal	-1(%r12), %eax
	testl	%eax, %edi
	sete	%al
	leal	-512(%r12), %ecx
	cmpl	$65025, %ecx                    ## imm = 0xFE01
	setb	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	$300, %r15d                     ## imm = 0x12C
	setl	%dil
	callq	_assert
	movl	$24, %edi
	callq	_sqlite3MallocZero
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_pcache1@GOTPCREL(%rip), %r13
	movq	%r13, 16(%rbx)
	movl	%r12d, (%rbx)
	movl	%r15d, 4(%rbx)
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	movl	%eax, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movl	$10, 12(%rbx)
	movq	%r13, %rdi
	callq	_pcache1EnterMutex
	movl	4(%r13), %eax
	movl	8(%r13), %ecx
	addl	12(%rbx), %eax
	movl	%eax, 4(%r13)
	subl	%eax, %ecx
	addl	$10, %ecx
	movl	%ecx, (%r13)
	movq	%r13, %rdi
	callq	_pcache1LeaveMutex
LBB0_3:
	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,12,2                   ## @pcache1
	.comm	_sqlite3GlobalConfig,8,3        ## @sqlite3GlobalConfig
	.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	x19, x2
	mov	x21, x1
	mov	x22, 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	w21, #300
	cset	w0, lt
	bl	_assert
	mov	w0, #24
	bl	_sqlite3MallocZero
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x23, _pcache1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _pcache1@GOTPAGEOFF]
	str	x23, [x20, #16]
	stp	w22, w21, [x20]
	cmp	w19, #0
	cset	w8, ne
	str	w8, [x20, #8]
	cbz	w19, LBB0_3
; %bb.2:
	mov	w8, #10
	str	w8, [x20, #12]
	mov	x0, x23
	bl	_pcache1EnterMutex
	ldr	w8, [x20, #12]
	ldp	w9, w10, [x23, #4]
	add	w8, w9, w8
	sub	w9, w10, w8
	add	w9, w9, #10
	stp	w9, w8, [x23]
	mov	x0, x23
	bl	_pcache1LeaveMutex
LBB0_3:
	mov	x0, x20
	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,12,2                   ; @pcache1
	.comm	_sqlite3GlobalConfig,8,3        ; @sqlite3GlobalConfig
	.no_dead_strip	_pcache1Create
.subsections_via_symbols
