	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcache1InitBulk
_pcache1InitBulk:                       ## @pcache1InitBulk
	.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
	movq	_pcache1@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	je	LBB0_16
## %bb.1:
	movq	%rdi, %r14
	cmpl	$3, (%rdi)
	jl	LBB0_16
## %bb.2:
	xorl	%eax, %eax
	callq	_sqlite3BeginBenignMalloc
	movq	(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	movl	4(%r14), %edi
	imull	%edi, %eax
	jmp	LBB0_5
LBB0_4:
	shll	$10, %eax
	negl	%eax
	movl	4(%r14), %edi
LBB0_5:
	imull	(%r14), %edi
	cmpl	%edi, %eax
	cmovll	%eax, %edi
	callq	_sqlite3Malloc
	movq	%rax, %r15
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
	callq	_sqlite3EndBenignMalloc
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_sqlite3MallocSize
	movslq	4(%r14), %r11
	cltd
	idivl	%r11d
                                        ## kill: def $eax killed $eax def $rax
	movq	16(%r14), %r8
	movq	24(%r14), %r12
	testb	$1, %al
	jne	LBB0_9
## %bb.8:
                                        ## implicit-def: $rdx
	movl	%eax, %esi
	cmpl	$1, %eax
	jne	LBB0_11
	jmp	LBB0_14
LBB0_6:
	movq	24(%r14), %rdx
	jmp	LBB0_15
LBB0_9:
	leaq	(%r15,%r8), %rdx
	movq	%r15, 32(%r15,%r8)
	leaq	(%r15,%r8), %rcx
	addq	$48, %rcx
	movq	%rcx, 40(%r15,%r8)
	movl	$1, (%r15,%r8)
	movq	$0, 24(%r15,%r8)
	movq	%r12, 16(%r15,%r8)
	movq	$0, 8(%r15,%r8)
	addq	%r11, %r15
	leal	-1(%rax), %esi
	movq	%rdx, %r12
	cmpl	$1, %eax
	je	LBB0_14
LBB0_11:
	leaq	(%r15,%r11), %r9
	leaq	(%r11,%r11), %r10
	leaq	(%r8,%r11), %rbx
	addq	%r15, %rbx
	leaq	(%r15,%r8), %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%rax), %rdi
	leaq	(%rdx,%rax), %r13
	movq	%rdi, 32(%rdx,%rax)
	leaq	(%rdx,%rax), %rdi
	addq	$48, %rdi
	movq	%rdi, 40(%rdx,%rax)
	movl	$1, (%rdx,%rax)
	movq	$0, 24(%rdx,%rax)
	movq	%r12, 16(%rdx,%rax)
	movq	$0, 8(%rdx,%rax)
	addq	%r11, %rcx
	leaq	(%r9,%rax), %rdi
	leaq	(%rcx,%r8), %r12
	movq	%rdi, 32(%rbx,%rax)
	leaq	(%rbx,%rax), %rdi
	addq	$48, %rdi
	movq	%rdi, 40(%rbx,%rax)
	movl	$1, (%rbx,%rax)
	movq	$0, 24(%rbx,%rax)
	movq	%r13, 16(%rbx,%rax)
	movq	$0, 8(%rbx,%rax)
	addq	%r11, %rcx
	addq	%r10, %rax
	addl	$-2, %esi
	jne	LBB0_12
## %bb.13:
	subq	%r11, %rdx
	addq	%rax, %rdx
LBB0_14:
	movq	%rdx, 24(%r14)
LBB0_15:
	xorl	%eax, %eax
	testq	%rdx, %rdx
	setne	%al
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pcache1,8,3                    ## @pcache1
	.no_dead_strip	_pcache1InitBulk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcache1InitBulk
_pcache1InitBulk:                       ; @pcache1InitBulk
	.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
Lloh0:
	adrp	x20, _pcache1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pcache1@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #3
	b.ge	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_12
LBB0_3:
	bl	_sqlite3BeginBenignMalloc
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	w9, [x19, #4]
	mul	w8, w9, w8
	b	LBB0_6
LBB0_5:
	neg	w8, w8, lsl #10
	ldr	w9, [x19, #4]
LBB0_6:
	ldr	w10, [x19]
	mul	w9, w10, w9
	cmp	w8, w9
	csel	w0, w8, w9, lt
	bl	_sqlite3Malloc
	mov	x20, x0
	str	x0, [x19, #8]
	bl	_sqlite3EndBenignMalloc
	cbz	x20, LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_sqlite3MallocSize
	mov	x8, #0
	ldrsw	x9, [x19, #4]
	ldp	x10, x15, [x19, #16]
	add	x11, x20, x10
	mov	w12, #1
	mov	x13, x20
	sdiv	w14, w0, w9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x16, x11, x8
	add	x17, x16, #48
	str	x17, [x16, #40]
	add	x17, x20, x8
	str	w12, [x16]
	add	x0, x13, x10
	stp	xzr, x17, [x16, #24]
	stp	xzr, x15, [x16, #8]
	add	x13, x13, x9
	add	x8, x8, x9
	mov	x15, x0
	subs	w14, w14, #1
	b.ne	LBB0_8
; %bb.9:
	add	x10, x10, x20
	sub	x9, x10, x9
	add	x8, x9, x8
	str	x8, [x19, #24]
	b	LBB0_11
LBB0_10:
	ldr	x8, [x19, #24]
LBB0_11:
	cmp	x8, #0
	cset	w0, ne
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pcache1,8,3                    ; @pcache1
	.no_dead_strip	_pcache1InitBulk
.subsections_via_symbols
