	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btreeMoveto
_btreeMoveto:                           ## @btreeMoveto
	.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
	subq	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -216(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movq	%r8, -224(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rax
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movq	(%r12), %rdi
	leaq	-208(%rbp), %rsi
	leaq	-216(%rbp), %rcx
	movl	$150, %edx
	callq	_sqlite3VdbeAllocUnpackedRecord
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	(%r12), %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movq	%rax, %rcx
	callq	_sqlite3VdbeRecordUnpack
	movq	-224(%rbp), %r8                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_sqlite3BtreeMovetoUnpacked
	movl	%eax, %ebx
	movq	-216(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_sqlite3DbFree
	jmp	LBB0_7
LBB0_3:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.no_dead_strip	_btreeMoveto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btreeMoveto
_btreeMoveto:                           ; @btreeMoveto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #8]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x23, x1
	cmp	x22, w22, sxtw
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19]
	add	x1, sp, #18
	add	x3, sp, #8
	mov	w2, #150
	bl	_sqlite3VdbeAllocUnpackedRecord
	cbz	x0, LBB0_6
; %bb.2:
	mov	x24, x0
	ldr	x0, [x19]
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_sqlite3VdbeRecordUnpack
	b	LBB0_4
LBB0_3:
	mov	x24, #0
LBB0_4:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_sqlite3BtreeMovetoUnpacked
	mov	x20, x0
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_sqlite3DbFree
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.no_dead_strip	_btreeMoveto
.subsections_via_symbols
