	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moveToRoot
_moveToRoot:                            ## @moveToRoot
	.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	%rdi, %r14
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	88(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_cursorHoldsMutex
	movl	%eax, %edi
	callq	_assert
	movq	_CURSOR_INVALID@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_CURSOR_REQUIRESEEK@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setl	%dil
	callq	_assert
	movq	_CURSOR_VALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setl	%dil
	callq	_assert
	movq	_CURSOR_FAULT@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setg	%dil
	callq	_assert
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	jl	LBB0_4
## %bb.1:
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.2:
	movl	8(%r14), %eax
	xorl	%edi, %edi
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_assert
	movl	8(%r14), %ebx
	jmp	LBB0_24
LBB0_3:
	movq	%r14, %rdi
	callq	_sqlite3BtreeClearCursor
LBB0_4:
	cmpq	$0, 16(%r14)
	js	LBB0_11
## %bb.5:
	movl	%ebx, %r13d
	je	LBB0_8
## %bb.6:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	80(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_releasePage
	incq	%rbx
	cmpq	%rbx, 16(%r14)
	jge	LBB0_7
LBB0_8:
	movq	$0, 16(%r14)
	movq	80(%r14), %rax
	movq	(%rax), %r15
	movl	%r13d, %ebx
LBB0_9:
	movl	4(%r15), %eax
	xorl	%edi, %edi
	cmpl	24(%r14), %eax
	sete	%dil
	callq	_assert
	cmpq	$0, 40(%r15)
	je	LBB0_10
## %bb.16:
	xorl	%eax, %eax
	cmpq	$0, 40(%r14)
	sete	%al
	xorl	%edi, %edi
	cmpl	%eax, (%r15)
	sete	%dil
	jmp	LBB0_17
LBB0_11:
	movl	24(%r14), %esi
	testl	%esi, %esi
	je	LBB0_12
## %bb.13:
	movq	80(%r14), %rdx
	xorl	%ecx, %ecx
	cmpq	$0, 32(%r14)
	sete	%cl
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_getAndInitPage
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_23
## %bb.14:
	movq	$0, 16(%r14)
	movq	80(%r14), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpl	$2, (%rax)
	setb	%dil
	callq	_assert
	xorl	%eax, %eax
	cmpq	$0, 40(%r14)
	sete	%al
	movq	80(%r14), %rcx
	movq	(%rcx), %r15
	cmpl	%eax, (%r15)
	je	LBB0_9
	jmp	LBB0_15
LBB0_10:
	xorl	%edi, %edi
LBB0_17:
	callq	_assert
	movq	72(%r14), %rax
	movq	$0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r14)
	movq	$0, 64(%r14)
	movq	8(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_21
## %bb.18:
	cmpl	$0, 32(%r15)
	je	LBB0_19
LBB0_21:
	testq	%rax, %rax
	jle	LBB0_23
## %bb.22:
	movq	_CURSOR_VALID@GOTPCREL(%rip), %r12
LBB0_23:
	movq	(%r12), %rax
	movq	%rax, (%r14)
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	(%r12), %rax
	movq	%rax, (%r14)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_24
LBB0_19:
	cmpl	$1, 4(%r15)
	jne	LBB0_15
## %bb.20:
	movq	24(%r15), %rax
	movslq	16(%r15), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$32, %rdi
	callq	_get4byte
	movq	_CURSOR_VALID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r14)
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_moveToChild                    ## TAILCALL
LBB0_15:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_CURSOR_INVALID,8,3             ## @CURSOR_INVALID
	.comm	_CURSOR_REQUIRESEEK,8,3         ## @CURSOR_REQUIRESEEK
	.comm	_CURSOR_VALID,8,3               ## @CURSOR_VALID
	.comm	_CURSOR_FAULT,8,3               ## @CURSOR_FAULT
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ## @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_moveToRoot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moveToRoot
_moveToRoot:                            ; @moveToRoot
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x24, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SQLITE_OK@GOTPAGEOFF]
	ldr	w20, [x24]
	ldr	x8, [x0, #88]
	ldr	x21, [x8]
	bl	_cursorHoldsMutex
	bl	_assert
Lloh2:
	adrp	x23, _CURSOR_INVALID@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CURSOR_INVALID@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh4:
	adrp	x26, _CURSOR_REQUIRESEEK@GOTPAGE
Lloh5:
	ldr	x26, [x26, _CURSOR_REQUIRESEEK@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
Lloh6:
	adrp	x22, _CURSOR_VALID@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CURSOR_VALID@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x26]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
Lloh8:
	adrp	x25, _CURSOR_FAULT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _CURSOR_FAULT@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #8]
	ldr	w9, [x24]
	cmp	w8, w9
	cset	w0, ne
	bl	_assert
	ldr	w20, [x19, #8]
	b	LBB0_19
LBB0_3:
	mov	x0, x19
	bl	_sqlite3BtreeClearCursor
LBB0_4:
	ldr	x8, [x19, #16]
	tbnz	x8, #63, LBB0_11
; %bb.5:
	cbz	x8, LBB0_8
; %bb.6:
	mov	w21, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #80]
	ldr	x0, [x8, x21, lsl #3]
	bl	_releasePage
	add	x21, x21, #1
	ldr	x8, [x19, #16]
	cmp	x8, x21
	b.ge	LBB0_7
LBB0_8:
	str	xzr, [x19, #16]
	ldr	x8, [x19, #80]
	ldr	x21, [x8]
LBB0_9:
	ldr	w8, [x21, #4]
	ldr	w9, [x19, #24]
	cmp	w8, w9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_14
; %bb.10:
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w8, eq
	ldr	w9, [x21]
	cmp	w9, w8
	cset	w0, eq
	b	LBB0_15
LBB0_11:
	ldr	w1, [x19, #24]
	cbz	w1, LBB0_20
; %bb.12:
	ldr	x2, [x19, #80]
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w3, eq
	mov	x0, x21
	bl	_getAndInitPage
	mov	x20, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.13:
	str	xzr, [x19, #16]
	ldr	x8, [x19, #80]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #2
	cset	w0, lo
	bl	_assert
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w8, eq
	ldr	x9, [x19, #80]
	ldr	x21, [x9]
	ldr	w9, [x21]
	cmp	w9, w8
	b.eq	LBB0_9
	b	LBB0_24
LBB0_14:
	mov	w0, #0
LBB0_15:
	bl	_assert
	ldr	x8, [x19, #72]
	str	xzr, [x8]
	stp	xzr, xzr, [x19, #48]
	str	xzr, [x19, #64]
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_17
; %bb.16:
	ldr	w9, [x21, #32]
	cbz	w9, LBB0_22
LBB0_17:
	cmp	x8, #0
	csel	x8, x22, x23, gt
	ldr	x8, [x8]
LBB0_18:
	str	x8, [x19]
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	ldr	x8, [x23]
	str	x8, [x19]
	ldr	w20, [x24]
	b	LBB0_19
LBB0_21:
	ldr	x8, [x23]
	b	LBB0_18
LBB0_22:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.ne	LBB0_24
; %bb.23:
	ldr	x8, [x21, #24]
	ldrsw	x9, [x21, #16]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #32
	bl	_get4byte
	mov	x1, x0
	ldr	x8, [x22]
	str	x8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_moveToChild
LBB0_24:
Lloh10:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	b	LBB0_19
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_CURSOR_INVALID,8,3             ; @CURSOR_INVALID
	.comm	_CURSOR_REQUIRESEEK,8,3         ; @CURSOR_REQUIRESEEK
	.comm	_CURSOR_VALID,8,3               ; @CURSOR_VALID
	.comm	_CURSOR_FAULT,8,3               ; @CURSOR_FAULT
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_moveToRoot
.subsections_via_symbols
