	.file	"extr_sqlite3_omit.c_moveToRoot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	moveToRoot, @function
moveToRoot:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, DWORD PTR SQLITE_OK[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	cursorOwnsBtShared@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR CURSOR_REQUIRESEEK[rip]
	xor	edi, edi
	cmp	QWORD PTR CURSOR_INVALID[rip], rax
	setl	dil
	call	assert@PLT
	mov	rax, QWORD PTR CURSOR_REQUIRESEEK[rip]
	xor	edi, edi
	cmp	QWORD PTR CURSOR_VALID[rip], rax
	setl	dil
	call	assert@PLT
	mov	rax, QWORD PTR CURSOR_REQUIRESEEK[rip]
	xor	edi, edi
	cmp	QWORD PTR CURSOR_FAULT[rip], rax
	setg	dil
	call	assert@PLT
	mov	rax, QWORD PTR CURSOR_REQUIRESEEK[rip]
	mov	edi, 1
	cmp	QWORD PTR 0[rbp], rax
	jl	.L2
	mov	edi, DWORD PTR 8[rbp]
	shr	edi, 31
.L2:
	call	assert@PLT
	cmp	QWORD PTR 16[rbp], 0
	mov	edi, 1
	jg	.L3
	mov	edi, DWORD PTR 8[rbp]
	shr	edi, 31
.L3:
	call	assert@PLT
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	js	.L4
	mov	r13, QWORD PTR 48[rbp]
	jne	.L31
.L5:
	movsx	rax, DWORD PTR 4[r13]
	xor	edi, edi
	cmp	rax, QWORD PTR 16[rbp]
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	DWORD PTR 0[r13], 1
	setbe	dil
	call	assert@PLT
	cmp	QWORD PTR 8[r13], 0
	mov	rdi, QWORD PTR 48[rbp]
	je	.L15
	xor	eax, eax
	cmp	QWORD PTR 32[rbp], 0
	sete	al
	cmp	eax, DWORD PTR 0[r13]
	je	.L7
.L15:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	SQLITE_CORRUPT_PAGE@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	QWORD PTR 16[rbp], 0
	je	.L17
	xor	edi, edi
	cmp	eax, -1
	sete	dil
	call	assert@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR CURSOR_REQUIRESEEK[rip]
	jl	.L11
	cmp	rax, QWORD PTR CURSOR_FAULT[rip]
	je	.L32
	mov	rdi, rbp
	call	sqlite3BtreeClearCursor@PLT
.L11:
	mov	rax, QWORD PTR 80[rbp]
	mov	rsi, QWORD PTR 16[rbp]
	xor	ecx, ecx
	lea	rdx, 48[rbp]
	mov	r8d, DWORD PTR 72[rbp]
	mov	edi, DWORD PTR [rax]
	call	getAndInitPage@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r12d, eax
	je	.L13
	mov	rax, QWORD PTR CURSOR_INVALID[rip]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, r13
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR 88[rbp]
	cdqe
	mov	rdi, QWORD PTR [rdx+rax*8]
.L29:
	call	releasePageNotNull@PLT
	mov	eax, DWORD PTR 8[rbp]
	sub	eax, 1
	mov	DWORD PTR 8[rbp], eax
	jne	.L6
	mov	rax, QWORD PTR 88[rbp]
	mov	rdi, QWORD PTR [rax]
	mov	QWORD PTR 48[rbp], rdi
.L7:
	mov	eax, DWORD PTR BTCF_AtLast[rip]
	or	eax, DWORD PTR BTCF_ValidNKey[rip]
	mov	QWORD PTR 64[rbp], 0
	or	eax, DWORD PTR BTCF_ValidOvfl[rip]
	mov	QWORD PTR 56[rbp], 0
	not	eax
	and	DWORD PTR 40[rbp], eax
	cmp	QWORD PTR 16[rdi], 0
	jle	.L16
	mov	rax, QWORD PTR CURSOR_VALID[rip]
	mov	QWORD PTR 0[rbp], rax
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR CURSOR_INVALID[rip]
	mov	r12d, DWORD PTR SQLITE_EMPTY[rip]
	mov	QWORD PTR 0[rbp], rax
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	eax, DWORD PTR 40[rdi]
	test	eax, eax
	jne	.L17
	cmp	DWORD PTR 4[rdi], 1
	mov	r12d, DWORD PTR SQLITE_CORRUPT_BKPT[rip]
	jne	.L1
	movsx	rdx, DWORD PTR 24[rdi]
	mov	rax, QWORD PTR 32[rdi]
	lea	rdi, 32[rax+rdx*4]
	call	get4byte@PLT
	mov	rdi, rbp
	mov	esi, eax
	mov	rax, QWORD PTR CURSOR_VALID[rip]
	mov	QWORD PTR 0[rbp], rax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	moveToChild@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r13, QWORD PTR 48[rbp]
	mov	DWORD PTR 8[rbp], 0
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR 28[rbp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L32:
	mov	eax, DWORD PTR SQLITE_OK[rip]
	xor	edi, edi
	cmp	DWORD PTR 24[rbp], eax
	setne	dil
	call	assert@PLT
	mov	r12d, DWORD PTR 24[rbp]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	moveToRoot, .-moveToRoot
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_EMPTY,4,4
	.comm	SQLITE_CORRUPT_BKPT,4,4
	.comm	CURSOR_VALID,8,8
	.comm	CURSOR_REQUIRESEEK,8,8
	.comm	CURSOR_INVALID,8,8
	.comm	CURSOR_FAULT,8,8
	.comm	BTCF_ValidOvfl,4,4
	.comm	BTCF_ValidNKey,4,4
	.comm	BTCF_AtLast,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sqlite3_omit.c_moveToRoot.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	moveToRoot, %function
moveToRoot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, .L29
	sub	sp, sp, #8
	ldr	r5, .L29+4
	ldr	r7, .L29+8
	mov	r4, r0
	ldr	r6, [r9]
	bl	cursorOwnsBtShared
	bl	assert
	ldr	r0, [r7]
	ldr	r3, [r5]
	ldr	r8, .L29+12
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	bl	assert
	ldr	r0, [r8]
	ldr	r3, [r5]
	ldr	r10, .L29+16
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	bl	assert
	ldr	r0, [r10]
	ldr	r3, [r5]
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	ldr	r2, [r4]
	ldr	r3, [r5]
	cmp	r2, r3
	ldrge	r0, [r4, #4]
	movlt	r0, #1
	lsrge	r0, r0, #31
	bl	assert
	ldr	r3, [r4, #8]
	cmp	r3, #0
	ldrle	r0, [r4, #4]
	movgt	r0, #1
	lsrle	r0, r0, #31
	bl	assert
	ldr	r0, [r4, #4]
	cmp	r0, #0
	blt	.L4
	ldr	r5, [r4, #28]
	bne	.L27
.L5:
	ldr	r3, [r4, #8]
	ldr	r0, [r5, #4]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r5]
	cmp	r0, #1
	movhi	r0, #0
	movls	r0, #1
	bl	assert
	ldr	r3, [r5, #8]
	cmp	r3, #0
	ldreq	r0, [r4, #28]
	beq	.L15
	ldr	r3, [r4, #20]
	ldr	r2, [r5]
	clz	r3, r3
	lsr	r3, r3, #5
	cmp	r3, r2
	ldr	r0, [r4, #28]
	beq	.L7
.L15:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	SQLITE_CORRUPT_PAGE
.L4:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L29+20
	ldr	r2, [r7]
	ldr	r6, [r3]
	str	r2, [r4]
.L1:
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L27:
	mov	r0, r5
	b	.L25
.L6:
	ldr	r2, [r4, #48]
	ldr	r0, [r2, r3, lsl #2]
.L25:
	bl	releasePageNotNull
	ldr	r3, [r4, #4]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4, #4]
	bne	.L6
	ldr	r3, [r4, #48]
	ldr	r0, [r3]
	str	r0, [r4, #28]
.L7:
	mov	r1, #0
	ldr	r2, .L29+24
	ldr	r3, .L29+28
	ldr	ip, [r2]
	ldr	r2, .L29+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, ip
	orr	r3, r3, r2
	ldr	ip, [r0, #12]
	ldr	r2, [r4, #24]
	cmp	ip, r1
	bic	r3, r2, r3
	str	r1, [r4, #36]
	str	r3, [r4, #24]
	str	r1, [r4, #32]
	ble	.L16
	mov	r0, r6
	ldr	r3, [r8]
	str	r3, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	cmn	r0, #1
	movne	r0, #0
	moveq	r0, #1
	bl	assert
	ldr	r2, [r5]
	ldr	r3, [r4]
	cmp	r3, r2
	blt	.L11
	ldr	r2, [r10]
	cmp	r3, r2
	beq	.L28
	mov	r0, r4
	bl	sqlite3BtreeClearCursor
.L11:
	ldr	r3, [r4, #44]
	ldr	r2, [r4, #40]
	ldr	r0, [r3]
	str	r2, [sp]
	mov	r3, #0
	ldr	r1, [r4, #8]
	add	r2, r4, #28
	bl	getAndInitPage
	ldr	r3, [r9]
	mov	r6, r0
	cmp	r3, r0
	beq	.L13
	ldr	r3, [r7]
	str	r3, [r4]
	b	.L1
.L16:
	ldr	r3, [r0, #24]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [r0, #4]
	cmp	r3, #1
	beq	.L18
	ldr	r3, .L29+36
	ldr	r6, [r3]
	b	.L1
.L13:
	mov	r3, #0
	ldr	r5, [r4, #28]
	str	r3, [r4, #4]
	ldr	r3, [r5]
	str	r3, [r4, #16]
	b	.L5
.L17:
	ldr	r2, .L29+20
	ldr	r3, [r7]
	ldr	r6, [r2]
	str	r3, [r4]
	b	.L1
.L18:
	ldr	r3, [r0, #16]
	ldr	r0, [r0, #20]
	add	r3, r3, #8
	add	r0, r0, r3, lsl #2
	bl	get4byte
	mov	r1, r0
	mov	r0, r4
	ldr	r3, [r8]
	str	r3, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	moveToChild
.L28:
	ldr	r3, [r9]
	ldr	r0, [r4, #12]
	subs	r0, r0, r3
	movne	r0, #1
	bl	assert
	ldr	r6, [r4, #12]
	b	.L1
.L30:
	.align	2
.L29:
	.word	SQLITE_OK
	.word	CURSOR_REQUIRESEEK
	.word	CURSOR_INVALID
	.word	CURSOR_VALID
	.word	CURSOR_FAULT
	.word	SQLITE_EMPTY
	.word	BTCF_ValidNKey
	.word	BTCF_AtLast
	.word	BTCF_ValidOvfl
	.word	SQLITE_CORRUPT_BKPT
	.size	moveToRoot, .-moveToRoot
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_EMPTY,4,4
	.comm	SQLITE_CORRUPT_BKPT,4,4
	.comm	CURSOR_VALID,4,4
	.comm	CURSOR_REQUIRESEEK,4,4
	.comm	CURSOR_INVALID,4,4
	.comm	CURSOR_FAULT,4,4
	.comm	BTCF_ValidOvfl,4,4
	.comm	BTCF_ValidNKey,4,4
	.comm	BTCF_AtLast,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
