	.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, %rbx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_cursorOwnsBtShared
	movl	%eax, %edi
	callq	_assert
	movq	_CURSOR_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %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), %r12
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setg	%dil
	callq	_assert
	movq	(%rbx), %rax
	movl	$1, %r15d
	movl	$1, %edi
	cmpq	(%r13), %rax
	jl	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	shrl	$31, %edi
LBB0_2:
	callq	_assert
	cmpq	$0, 16(%rbx)
	jg	LBB0_4
## %bb.3:
	movl	8(%rbx), %r15d
	shrl	$31, %r15d
LBB0_4:
	movl	%r15d, %edi
	callq	_assert
	movl	8(%rbx), %eax
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	48(%rbx), %r15
	je	LBB0_19
## %bb.6:
	movq	%r15, %rdi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	callq	_releasePageNotNull
	movl	8(%rbx), %eax
	decl	%eax
	movl	%eax, 8(%rbx)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	88(%rbx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rdi
	jmp	LBB0_8
LBB0_9:
	movq	88(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	jmp	LBB0_22
LBB0_10:
	cmpq	$0, 16(%rbx)
	je	LBB0_27
## %bb.11:
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_assert
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jl	LBB0_15
## %bb.12:
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.13:
	movl	24(%rbx), %eax
	xorl	%edi, %edi
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_assert
	movl	24(%rbx), %r14d
	jmp	LBB0_29
LBB0_14:
	movq	%rbx, %rdi
	callq	_sqlite3BtreeClearCursor
LBB0_15:
	movq	80(%rbx), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	leaq	48(%rbx), %rdx
	movl	72(%rbx), %r8d
	xorl	%ecx, %ecx
	callq	_getAndInitPage
	movl	%eax, %r14d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_16
## %bb.18:
	movl	$0, 8(%rbx)
	movq	48(%rbx), %r15
	movl	(%r15), %eax
	movl	%eax, 28(%rbx)
LBB0_19:
	movslq	4(%r15), %rax
	xorl	%edi, %edi
	cmpq	%rax, 16(%rbx)
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$2, (%r15)
	setb	%dil
	callq	_assert
	cmpq	$0, 8(%r15)
	je	LBB0_30
## %bb.20:
	xorl	%eax, %eax
	cmpq	$0, 32(%rbx)
	sete	%al
	cmpl	%eax, (%r15)
	jne	LBB0_30
## %bb.21:
	movq	48(%rbx), %rax
LBB0_22:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movq	_BTCF_AtLast@GOTPCREL(%rip), %rcx
	movq	_BTCF_ValidNKey@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_BTCF_ValidOvfl@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, 40(%rbx)
	cmpq	$0, 16(%rax)
	jle	LBB0_24
## %bb.23:
	movq	_CURSOR_VALID@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_30:
	movq	48(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SQLITE_CORRUPT_PAGE            ## TAILCALL
LBB0_24:
	cmpl	$0, 40(%rax)
	je	LBB0_25
LBB0_27:
	movq	_CURSOR_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_SQLITE_EMPTY@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %r14d
	jmp	LBB0_29
LBB0_16:
	movq	_CURSOR_INVALID@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_29:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	cmpl	$1, 4(%rax)
	jne	LBB0_26
## %bb.31:
	movq	32(%rax), %rcx
	movslq	24(%rax), %rax
	leaq	(%rcx,%rax,4), %rdi
	addq	$32, %rdi
	callq	_get4byte
	movq	_CURSOR_VALID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_moveToChild                    ## TAILCALL
LBB0_26:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	jmp	LBB0_28
	.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_EMPTY,4,2               ## @SQLITE_EMPTY
	.comm	_BTCF_AtLast,4,2                ## @BTCF_AtLast
	.comm	_BTCF_ValidNKey,4,2             ## @BTCF_ValidNKey
	.comm	_BTCF_ValidOvfl,4,2             ## @BTCF_ValidOvfl
	.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	x21, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SQLITE_OK@GOTPAGEOFF]
	ldr	w20, [x21]
	bl	_cursorOwnsBtShared
	bl	_assert
Lloh2:
	adrp	x23, _CURSOR_INVALID@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CURSOR_INVALID@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh4:
	adrp	x24, _CURSOR_REQUIRESEEK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CURSOR_REQUIRESEEK@GOTPAGEOFF]
	ldr	x9, [x24]
	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, [x24]
	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, [x24]
	cmp	x8, x9
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #8]
	lsr	w0, w8, #31
LBB0_3:
	bl	_assert
	ldr	x8, [x19, #16]
	cmp	x8, #0
	b.le	LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #8]
	lsr	w0, w8, #31
LBB0_6:
	bl	_assert
	ldr	w8, [x19, #8]
	tbnz	w8, #31, LBB0_12
; %bb.7:
	ldr	x21, [x19, #48]
	cbz	w8, LBB0_19
; %bb.8:
	mov	x0, x21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	bl	_releasePageNotNull
	ldr	w8, [x19, #8]
	subs	w8, w8, #1
	str	w8, [x19, #8]
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x19, #88]
	ldr	x0, [x9, w8, sxtw #3]
	b	LBB0_9
LBB0_11:
	ldr	x8, [x19, #88]
	ldr	x8, [x8]
	str	x8, [x19, #48]
	b	LBB0_22
LBB0_12:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_26
; %bb.13:
	cmn	w8, #1
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.lt	LBB0_17
; %bb.14:
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldr	w8, [x19, #24]
	ldr	w9, [x21]
	cmp	w8, w9
	cset	w0, ne
	bl	_assert
	ldr	w20, [x19, #24]
	b	LBB0_30
LBB0_16:
	mov	x0, x19
	bl	_sqlite3BtreeClearCursor
LBB0_17:
	ldr	x8, [x19, #80]
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	add	x2, x19, #48
	ldr	w4, [x19, #72]
	mov	w3, #0
	bl	_getAndInitPage
	mov	x20, x0
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_28
; %bb.18:
	str	wzr, [x19, #8]
	ldr	x21, [x19, #48]
	ldr	w8, [x21]
	str	w8, [x19, #28]
LBB0_19:
	ldrsw	x8, [x21, #4]
	ldr	x9, [x19, #16]
	cmp	x9, x8
	cset	w0, eq
	bl	_assert
	ldr	w8, [x21]
	cmp	w8, #2
	cset	w0, lo
	bl	_assert
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_24
; %bb.20:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w8, eq
	ldr	w9, [x21]
	cmp	w9, w8
	b.ne	LBB0_24
; %bb.21:
	ldr	x8, [x19, #48]
LBB0_22:
	stp	xzr, xzr, [x19, #56]
Lloh10:
	adrp	x9, _BTCF_AtLast@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BTCF_AtLast@GOTPAGEOFF]
Lloh12:
	adrp	x10, _BTCF_ValidNKey@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BTCF_ValidNKey@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh16:
	adrp	x10, _BTCF_ValidOvfl@GOTPAGE
Lloh17:
	ldr	x10, [x10, _BTCF_ValidOvfl@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	w10, [x19, #40]
	bic	w9, w10, w9
	str	w9, [x19, #40]
	ldr	x9, [x8, #16]
	cmp	x9, #1
	b.lt	LBB0_25
; %bb.23:
	ldr	x8, [x22]
	b	LBB0_29
LBB0_24:
	ldr	x0, [x19, #48]
	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	_SQLITE_CORRUPT_PAGE
LBB0_25:
	ldr	w9, [x8, #40]
	cbz	w9, LBB0_31
LBB0_26:
	ldr	x8, [x23]
	str	x8, [x19]
Lloh19:
	adrp	x8, _SQLITE_EMPTY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SQLITE_EMPTY@GOTPAGEOFF]
LBB0_27:
	ldr	w20, [x8]
	b	LBB0_30
LBB0_28:
	ldr	x8, [x23]
LBB0_29:
	str	x8, [x19]
LBB0_30:
	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_31:
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.ne	LBB0_33
; %bb.32:
	ldr	x9, [x8, #32]
	ldrsw	x8, [x8, #24]
	add	x8, x9, x8, 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_33:
Lloh21:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
	b	LBB0_27
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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_EMPTY,4,2               ; @SQLITE_EMPTY
	.comm	_BTCF_AtLast,4,2                ; @BTCF_AtLast
	.comm	_BTCF_ValidNKey,4,2             ; @BTCF_ValidNKey
	.comm	_BTCF_ValidOvfl,4,2             ; @BTCF_ValidOvfl
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_moveToRoot
.subsections_via_symbols
