	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moveToChild
_moveToChild:                           ## @moveToChild
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movslq	(%rdi), %r12
	movq	56(%rdi), %r15
	callq	_cursorHoldsMutex
	movl	%eax, %edi
	callq	_assert
	movq	8(%rbx), %rax
	movq	_CURSOR_VALID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movl	(%rbx), %eax
	movq	_BTCURSOR_MAX_DEPTH@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	setl	%dil
	callq	_assert
	movl	(%rbx), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movl	(%r13), %eax
	decl	%eax
	cmpl	%eax, (%rbx)
	jge	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	cmpq	$0, 16(%rbx)
	sete	%cl
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_getAndInitPage
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	-48(%rbp), %rax
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx,%r12,8)
	movq	48(%rbx), %rax
	movq	$0, 8(%rax,%r12,8)
	incl	(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	-48(%rbp), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.4:
	movq	8(%rax), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx,%r12,8), %rcx
	cmpq	8(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CURSOR_VALID,8,3               ## @CURSOR_VALID
	.comm	_BTCURSOR_MAX_DEPTH,4,2         ## @BTCURSOR_MAX_DEPTH
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ## @SQLITE_CORRUPT_BKPT
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_moveToChild
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moveToChild
_moveToChild:                           ; @moveToChild
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldrsw	x22, [x0]
	ldr	x21, [x0, #56]
	bl	_cursorHoldsMutex
	bl	_assert
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _CURSOR_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CURSOR_VALID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19]
Lloh3:
	adrp	x23, _BTCURSOR_MAX_DEPTH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _BTCURSOR_MAX_DEPTH@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	cset	w0, lt
	bl	_assert
	ldr	w8, [x19]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_assert
	ldr	w8, [x19]
	ldr	w9, [x23]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w3, eq
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_getAndInitPage
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #24]
	lsl	x10, x22, #3
	add	x10, x10, #8
	str	x8, [x9, x10]
	ldr	x8, [x19, #48]
	str	xzr, [x8, x10]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	stp	xzr, xzr, [x19, #32]
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x8, #8]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CURSOR_VALID,8,3               ; @CURSOR_VALID
	.comm	_BTCURSOR_MAX_DEPTH,4,2         ; @BTCURSOR_MAX_DEPTH
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_moveToChild
.subsections_via_symbols
