	.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, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	4(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movq	%r15, 32(%r14)
	xorl	%edi, %edi
	cmpl	$2, (%rbx)
	setb	%dil
	callq	_assert
	movl	(%rbx), %eax
	movl	4(%rbx), %r13d
	movslq	%r13d, %r12
	shll	$2, %eax
	movl	$4, %ecx
	subl	%eax, %ecx
	xorl	%edi, %edi
	cmpl	%ecx, %r12d
	sete	%dil
	callq	_assert
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.1:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	(%r15,%r12,4), %rdi
	xorl	%esi, %esi
	callq	_getVarint32
	addl	%eax, %r12d
	movl	%r12d, %r13d
LBB0_3:
	movslq	%r13d, %r12
	leaq	(%r15,%r12,4), %rdi
	movq	%r14, %rsi
	callq	_getVarint
	addl	%eax, %r12d
	movl	$0, 4(%r14)
	jmp	LBB0_5
LBB0_4:
	movl	$0, 4(%r14)
	leaq	(%r15,%r12,4), %rdi
	xorl	%esi, %esi
	callq	_getVarint32
	addl	%eax, %r12d
	movl	$0, (%r14)
LBB0_5:
	movl	$0, 8(%r14)
	movl	%r12d, 12(%r14)
	xorl	%edi, %edi
	cmpl	$0, 8(%rbx)
	sete	%dil
	callq	_testcase
	xorl	%edi, %edi
	cmpl	$-1, 8(%rbx)
	sete	%dil
	callq	_testcase
	movl	8(%rbx), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpl	$5, %r12d
	movl	$4, %eax
	cmovgel	%r12d, %eax
	movl	%eax, 16(%r14)
	movq	$0, 20(%r14)
	jmp	LBB0_8
LBB0_7:
	movl	8(%rbx), %r13d
	movl	12(%rbx), %r15d
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	addl	$-4, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%r15d, %ebx
	subl	%edx, %ebx
	xorl	%edi, %edi
	cmpl	%r13d, %ebx
	sete	%dil
	cmovlel	%ebx, %r15d
	callq	_testcase
	incl	%r13d
	xorl	%edi, %edi
	cmpl	%r13d, %ebx
	sete	%dil
	callq	_testcase
	movl	%r15d, 20(%r14)
	leal	(%r15,%r12), %eax
	movl	%eax, 24(%r14)
	leal	(%r15,%r12), %eax
	addl	$4, %eax
	movl	%eax, 16(%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8, #4]
	bl	_sqlite3_mutex_held
	bl	_assert
	str	x21, [x19, #32]
	ldr	w8, [x20]
	cmp	w8, #2
	cset	w0, lo
	bl	_assert
	ldp	w8, w22, [x20]
	sxtw	x23, w22
	mov	w9, #4
	sub	w8, w9, w8, lsl #2
	cmp	w22, w8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.2:
	add	x0, x21, x23, lsl #2
	mov	w1, #0
	bl	_getVarint32
	add	w22, w22, w0
LBB0_3:
	add	x0, x21, w22, sxtw #2
	mov	x1, x19
	bl	_getVarint
	add	w21, w22, w0
	str	wzr, [x19, #4]
	b	LBB0_5
LBB0_4:
	str	wzr, [x19, #4]
	add	x0, x21, x23, lsl #2
	mov	w1, #0
	bl	_getVarint32
	add	w21, w22, w0
	str	wzr, [x19]
LBB0_5:
	stp	wzr, w21, [x19, #8]
	ldr	w8, [x20, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x20, #8]
	cmn	w8, #1
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x20, #8]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_likely
	cbz	x0, LBB0_7
; %bb.6:
	mov	w8, #4
	stp	wzr, wzr, [x19, #20]
	cmp	w21, #4
	csel	w8, w21, w8, gt
	b	LBB0_8
LBB0_7:
	ldp	w9, w8, [x20, #8]
	ldr	x10, [x20, #16]
	ldr	w10, [x10]
	sub	w10, w10, #4
	sdiv	w11, w8, w10
	mul	w20, w11, w10
	cmp	w20, w9
	cset	w0, eq
	add	w22, w9, #1
	csel	w23, w8, w20, gt
	bl	_testcase
	cmp	w20, w22
	cset	w0, eq
	bl	_testcase
	add	w8, w23, w21
	stp	w23, w8, [x19, #20]
	add	w8, w8, #4
LBB0_8:
	str	w8, [x19, #16]
	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	_btreeParseCellPtr
.subsections_via_symbols
