	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btreeParseCellPtr
_btreeParseCellPtr:                     ## @btreeParseCellPtr
	.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
	movl	4(%r12), %edi
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 8(%r12)
	sete	%dil
	callq	_assert
	movl	(%r14), %r13d
	cmpl	$128, %r13d
	jl	LBB0_1
## %bb.2:
	andl	$127, %r13d
	movl	%r13d, %eax
	shll	$7, %eax
	movl	4(%r14), %ecx
	movl	%ecx, %r13d
	andl	$127, %r13d
	orl	%eax, %r13d
	cmpl	$128, %ecx
	jl	LBB0_3
## %bb.4:
	movl	%r13d, %eax
	shll	$7, %eax
	movl	8(%r14), %ecx
	movl	%ecx, %r13d
	andl	$127, %r13d
	orl	%eax, %r13d
	cmpl	$128, %ecx
	jl	LBB0_5
## %bb.6:
	movl	%r13d, %eax
	shll	$7, %eax
	movl	12(%r14), %ecx
	movl	%ecx, %r13d
	andl	$127, %r13d
	orl	%eax, %r13d
	cmpl	$128, %ecx
	jl	LBB0_7
## %bb.8:
	movl	%r13d, %eax
	shll	$7, %eax
	movl	16(%r14), %ecx
	movl	%ecx, %r13d
	andl	$127, %r13d
	orl	%eax, %r13d
	cmpl	$128, %ecx
	jl	LBB0_9
## %bb.10:
	movl	%r13d, %eax
	shll	$7, %eax
	movl	20(%r14), %ecx
	movl	%ecx, %r13d
	andl	$127, %r13d
	orl	%eax, %r13d
	cmpl	$128, %ecx
	jl	LBB0_11
## %bb.12:
	movl	%r13d, %eax
	shll	$7, %eax
	movl	24(%r14), %ecx
	movl	%ecx, %r13d
	andl	$127, %r13d
	orl	%eax, %r13d
	cmpl	$128, %ecx
	jl	LBB0_13
## %bb.14:
	movl	%r13d, %eax
	shll	$7, %eax
	movl	28(%r14), %ecx
	movl	%ecx, %r13d
	andl	$127, %r13d
	orl	%eax, %r13d
	cmpl	$128, %ecx
	jl	LBB0_15
## %bb.16:
	shll	$7, %r13d
	leaq	32(%r14), %rbx
	movl	32(%r14), %eax
	andl	$127, %eax
	orl	%eax, %r13d
	jmp	LBB0_17
LBB0_1:
	movq	%r14, %rbx
	jmp	LBB0_17
LBB0_3:
	leaq	4(%r14), %rbx
	jmp	LBB0_17
LBB0_5:
	leaq	8(%r14), %rbx
	jmp	LBB0_17
LBB0_7:
	leaq	12(%r14), %rbx
	jmp	LBB0_17
LBB0_9:
	leaq	16(%r14), %rbx
	jmp	LBB0_17
LBB0_11:
	leaq	20(%r14), %rbx
	jmp	LBB0_17
LBB0_13:
	leaq	24(%r14), %rbx
	jmp	LBB0_17
LBB0_15:
	leaq	28(%r14), %rbx
LBB0_17:
	movl	4(%rbx), %eax
	cmpl	$128, %eax
	jl	LBB0_18
## %bb.19:
	andl	$127, %eax
	movl	%eax, %ecx
	shll	$7, %ecx
	movl	8(%rbx), %edx
	movl	%edx, %eax
	andl	$127, %eax
	orl	%ecx, %eax
	movl	$2, %ecx
	cmpl	$128, %edx
	jl	LBB0_27
## %bb.20:
	movl	%eax, %ecx
	shll	$7, %ecx
	movl	12(%rbx), %edx
	movl	%edx, %eax
	andl	$127, %eax
	orl	%ecx, %eax
	movl	$3, %ecx
	cmpl	$128, %edx
	jl	LBB0_27
## %bb.21:
	movl	%eax, %ecx
	shll	$7, %ecx
	movl	16(%rbx), %edx
	movl	%edx, %eax
	andl	$127, %eax
	orl	%ecx, %eax
	movl	$4, %ecx
	cmpl	$128, %edx
	jl	LBB0_27
## %bb.22:
	movl	%eax, %ecx
	shll	$7, %ecx
	movl	20(%rbx), %edx
	movl	%edx, %eax
	andl	$127, %eax
	orl	%ecx, %eax
	movl	$5, %ecx
	cmpl	$128, %edx
	jl	LBB0_27
## %bb.23:
	movl	%eax, %ecx
	shll	$7, %ecx
	movl	24(%rbx), %edx
	movl	%edx, %eax
	andl	$127, %eax
	orl	%ecx, %eax
	movl	$6, %ecx
	cmpl	$128, %edx
	jl	LBB0_27
## %bb.24:
	movl	%eax, %ecx
	shll	$7, %ecx
	movl	28(%rbx), %edx
	movl	%edx, %eax
	andl	$127, %eax
	orl	%ecx, %eax
	movl	$7, %ecx
	cmpl	$128, %edx
	jl	LBB0_27
## %bb.25:
	movl	%eax, %ecx
	shll	$7, %ecx
	movl	32(%rbx), %edx
	movl	%edx, %eax
	andl	$127, %eax
	orl	%ecx, %eax
	movl	$8, %ecx
	cmpl	$128, %edx
	jge	LBB0_26
LBB0_27:
	leaq	(%rbx,%rcx,4), %rbx
	jmp	LBB0_28
LBB0_18:
	addq	$4, %rbx
LBB0_28:
	addq	$4, %rbx
	movl	%eax, 32(%r15)
	movl	%r13d, (%r15)
	movq	%rbx, 8(%r15)
	xorl	%edi, %edi
	cmpl	16(%r12), %r13d
	sete	%dil
	callq	_testcase
	movl	16(%r12), %eax
	incl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %r13d
	sete	%dil
	callq	_testcase
	cmpl	16(%r12), %r13d
	jle	LBB0_29
## %bb.30:
	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_29:
	subq	%r14, %rbx
	shrq	$2, %rbx
	movslq	%r13d, %rax
	addl	%r13d, %ebx
	cmpl	$5, %ebx
	movl	$4, %ecx
	cmovgel	%ebx, %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
LBB0_26:
	shll	$8, %eax
	orl	36(%rbx), %eax
	addq	$36, %rbx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_btreeParseCellPtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btreeParseCellPtr
_btreeParseCellPtr:                     ; @btreeParseCellPtr
	.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	w0, [x21, #4]
	bl	_assert
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	w22, [x20]
	mov	x8, x20
	cmp	w22, #128
	b.lt	LBB0_10
; %bb.1:
	mov	x8, x20
	ldr	w10, [x8, #4]!
	and	w9, w10, #0x7f
	bfi	w9, w22, #7, #7
	cmp	w10, #128
	b.lt	LBB0_9
; %bb.2:
	mov	x8, x20
	ldr	w10, [x8, #8]!
	and	w22, w10, #0x7f
	bfi	w22, w9, #7, #14
	cmp	w10, #128
	b.lt	LBB0_10
; %bb.3:
	mov	x8, x20
	ldr	w10, [x8, #12]!
	and	w9, w10, #0x7f
	bfi	w9, w22, #7, #21
	cmp	w10, #128
	b.lt	LBB0_9
; %bb.4:
	mov	x8, x20
	ldr	w22, [x8, #16]!
	cmp	w22, #128
	bfi	w22, w9, #7, #25
	b.lt	LBB0_10
; %bb.5:
	mov	x8, x20
	ldr	w9, [x8, #20]!
	cmp	w9, #128
	bfi	w9, w22, #7, #25
	b.lt	LBB0_9
; %bb.6:
	mov	x8, x20
	ldr	w22, [x8, #24]!
	cmp	w22, #128
	bfi	w22, w9, #7, #25
	b.lt	LBB0_10
; %bb.7:
	mov	x8, x20
	ldr	w9, [x8, #28]!
	cmp	w9, #128
	bfi	w9, w22, #7, #25
	b.lt	LBB0_9
; %bb.8:
	mov	x8, x20
	ldr	w22, [x8, #32]!
	bfi	w22, w9, #7, #25
	b	LBB0_10
LBB0_9:
	mov	x22, x9
LBB0_10:
	mov	x10, x8
	ldr	w9, [x10, #4]!
	cmp	w9, #128
	b.lt	LBB0_27
; %bb.11:
	ldr	w10, [x8, #8]
	and	w11, w10, #0x7f
	bfi	w11, w9, #7, #7
	cmp	w10, #128
	b.ge	LBB0_13
; %bb.12:
	mov	w10, #2
	b	LBB0_25
LBB0_13:
	ldr	w10, [x8, #12]
	and	w9, w10, #0x7f
	bfi	w9, w11, #7, #14
	cmp	w10, #128
	b.ge	LBB0_15
; %bb.14:
	mov	w10, #3
	b	LBB0_26
LBB0_15:
	ldr	w10, [x8, #16]
	and	w11, w10, #0x7f
	bfi	w11, w9, #7, #21
	cmp	w10, #128
	b.ge	LBB0_17
; %bb.16:
	mov	w10, #4
	b	LBB0_25
LBB0_17:
	ldr	w9, [x8, #20]
	cmp	w9, #128
	bfi	w9, w11, #7, #25
	b.ge	LBB0_19
; %bb.18:
	mov	w10, #5
	b	LBB0_26
LBB0_19:
	ldr	w11, [x8, #24]
	cmp	w11, #128
	bfi	w11, w9, #7, #25
	b.ge	LBB0_21
; %bb.20:
	mov	w10, #6
	b	LBB0_25
LBB0_21:
	ldr	w9, [x8, #28]
	cmp	w9, #128
	bfi	w9, w11, #7, #25
	b.ge	LBB0_23
; %bb.22:
	mov	w10, #7
	b	LBB0_26
LBB0_23:
	ldr	w11, [x8, #32]
	cmp	w11, #128
	bfi	w11, w9, #7, #25
	b.ge	LBB0_30
; %bb.24:
	mov	w10, #8
LBB0_25:
	mov	x9, x11
LBB0_26:
	add	x10, x8, x10, lsl #2
LBB0_27:
	add	x23, x10, #4
	str	w9, [x19, #32]
	str	w22, [x19]
	str	x23, [x19, #8]
	ldr	w8, [x21, #16]
	cmp	w22, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	cmp	w22, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x21, #16]
	cmp	w22, w8
	b.le	LBB0_29
; %bb.28:
	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_29:
	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
LBB0_30:
	ldr	w9, [x8, #36]!
	orr	w9, w9, w11, lsl #8
	mov	x10, x8
	b	LBB0_27
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_btreeParseCellPtr
.subsections_via_symbols
