	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btreeParseCellPtrIndex
_btreeParseCellPtrIndex:                ## @btreeParseCellPtrIndex
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	$2, (%r12)
	setb	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 8(%r12)
	sete	%dil
	callq	_assert
	movslq	16(%r12), %rax
	leaq	(%r14,%rax,4), %r13
	movl	(%r14,%rax,4), %ebx
	cmpl	$128, %ebx
	jl	LBB0_16
## %bb.1:
	andl	$127, %ebx
	movl	%ebx, %eax
	shll	$7, %eax
	movl	4(%r13), %ecx
	movl	%ecx, %ebx
	andl	$127, %ebx
	orl	%eax, %ebx
	cmpl	$128, %ecx
	jl	LBB0_2
## %bb.3:
	movl	%ebx, %eax
	shll	$7, %eax
	movl	8(%r13), %ecx
	movl	%ecx, %ebx
	andl	$127, %ebx
	orl	%eax, %ebx
	cmpl	$128, %ecx
	jl	LBB0_4
## %bb.5:
	movl	%ebx, %eax
	shll	$7, %eax
	movl	12(%r13), %ecx
	movl	%ecx, %ebx
	andl	$127, %ebx
	orl	%eax, %ebx
	cmpl	$128, %ecx
	jl	LBB0_6
## %bb.7:
	movl	%ebx, %eax
	shll	$7, %eax
	movl	16(%r13), %ecx
	movl	%ecx, %ebx
	andl	$127, %ebx
	orl	%eax, %ebx
	cmpl	$128, %ecx
	jl	LBB0_8
## %bb.9:
	movl	%ebx, %eax
	shll	$7, %eax
	movl	20(%r13), %ecx
	movl	%ecx, %ebx
	andl	$127, %ebx
	orl	%eax, %ebx
	cmpl	$128, %ecx
	jl	LBB0_10
## %bb.11:
	movl	%ebx, %eax
	shll	$7, %eax
	movl	24(%r13), %ecx
	movl	%ecx, %ebx
	andl	$127, %ebx
	orl	%eax, %ebx
	cmpl	$128, %ecx
	jl	LBB0_12
## %bb.13:
	movl	%ebx, %eax
	shll	$7, %eax
	movl	28(%r13), %ecx
	movl	%ecx, %ebx
	andl	$127, %ebx
	orl	%eax, %ebx
	cmpl	$128, %ecx
	jl	LBB0_14
## %bb.15:
	shll	$7, %ebx
	movl	32(%r13), %eax
	addq	$32, %r13
	andl	$127, %eax
	orl	%eax, %ebx
	jmp	LBB0_16
LBB0_2:
	addq	$4, %r13
	jmp	LBB0_16
LBB0_4:
	addq	$8, %r13
	jmp	LBB0_16
LBB0_6:
	addq	$12, %r13
	jmp	LBB0_16
LBB0_8:
	addq	$16, %r13
	jmp	LBB0_16
LBB0_10:
	addq	$20, %r13
	jmp	LBB0_16
LBB0_12:
	addq	$24, %r13
	jmp	LBB0_16
LBB0_14:
	addq	$28, %r13
LBB0_16:
	addq	$4, %r13
	movl	%ebx, (%r15)
	movl	%ebx, 4(%r15)
	movq	%r13, 8(%r15)
	xorl	%edi, %edi
	cmpl	20(%r12), %ebx
	sete	%dil
	callq	_testcase
	movl	20(%r12), %eax
	incl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_testcase
	cmpl	20(%r12), %ebx
	jle	LBB0_17
## %bb.18:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_btreeParseCellAdjustSizeForOverflow ## TAILCALL
LBB0_17:
	subq	%r14, %r13
	shrq	$2, %r13
	movslq	%ebx, %rax
	addl	%ebx, %r13d
	cmpl	$5, %r13d
	movl	$4, %ecx
	cmovgel	%r13d, %ecx
	movl	%ecx, 16(%r15)
	movq	%rax, 24(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_btreeParseCellPtrIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btreeParseCellPtrIndex
_btreeParseCellPtrIndex:                ; @btreeParseCellPtrIndex
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	w8, [x21]
	cmp	w8, #2
	cset	w0, lo
	bl	_assert
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldrsw	x8, [x21, #16]
	add	x8, x20, x8, lsl #2
	ldr	w22, [x8]
	cmp	w22, #128
	b.lt	LBB0_11
; %bb.1:
	mov	x10, x8
	ldr	w11, [x10, #4]!
	and	w9, w11, #0x7f
	bfi	w9, w22, #7, #7
	cmp	w11, #128
	b.lt	LBB0_9
; %bb.2:
	mov	x10, x8
	ldr	w11, [x10, #8]!
	and	w22, w11, #0x7f
	bfi	w22, w9, #7, #14
	cmp	w11, #128
	b.lt	LBB0_10
; %bb.3:
	mov	x10, x8
	ldr	w11, [x10, #12]!
	and	w9, w11, #0x7f
	bfi	w9, w22, #7, #21
	cmp	w11, #128
	b.lt	LBB0_9
; %bb.4:
	mov	x10, x8
	ldr	w22, [x10, #16]!
	cmp	w22, #128
	bfi	w22, w9, #7, #25
	b.lt	LBB0_10
; %bb.5:
	mov	x10, x8
	ldr	w9, [x10, #20]!
	cmp	w9, #128
	bfi	w9, w22, #7, #25
	b.lt	LBB0_9
; %bb.6:
	mov	x10, x8
	ldr	w22, [x10, #24]!
	cmp	w22, #128
	bfi	w22, w9, #7, #25
	b.lt	LBB0_10
; %bb.7:
	mov	x10, x8
	ldr	w9, [x10, #28]!
	cmp	w9, #128
	bfi	w9, w22, #7, #25
	b.lt	LBB0_9
; %bb.8:
	ldr	w22, [x8, #32]!
	bfi	w22, w9, #7, #25
	b	LBB0_11
LBB0_9:
	mov	x22, x9
LBB0_10:
	mov	x8, x10
LBB0_11:
	add	x23, x8, #4
	stp	w22, w22, [x19]
	str	x23, [x19, #8]
	ldr	w8, [x21, #20]
	cmp	w22, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x21, #20]
	add	w8, w8, #1
	cmp	w22, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x21, #20]
	cmp	w22, w8
	b.le	LBB0_13
; %bb.12:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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
	b	_btreeParseCellAdjustSizeForOverflow
LBB0_13:
	sub	x8, x23, x20
	lsr	x8, x8, #2
	sxtw	x9, w22
	add	w8, w8, w22
	mov	w10, #4
	cmp	w8, #4
	csel	w8, w8, w10, gt
	str	w8, [x19, #16]
	str	x9, [x19, #24]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_btreeParseCellPtrIndex
.subsections_via_symbols
