	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	56(%rdi), %r15
	callq	_cursorOwnsBtShared
	movl	%eax, %edi
	callq	_assert
	movq	(%rbx), %rax
	movq	_CURSOR_VALID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movl	8(%rbx), %eax
	movq	_BTCURSOR_MAX_DEPTH@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpl	(%r12), %eax
	setl	%dil
	callq	_assert
	movl	8(%rbx), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movslq	8(%rbx), %rax
	movl	(%r12), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_1
## %bb.2:
	movq	$0, 48(%rbx)
	movq	_BTCF_ValidNKey@GOTPCREL(%rip), %rcx
	movq	_BTCF_ValidOvfl@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, 12(%rbx)
	movq	24(%rbx), %rcx
	movq	40(%rbx), %rdx
	movq	%rcx, (%rdx,%rax,8)
	leaq	20(%rbx), %rdx
	movl	20(%rbx), %ecx
	movq	32(%rbx), %rsi
	movl	%ecx, (%rsi,%rax,4)
	movq	$0, 24(%rbx)
	incl	8(%rbx)
	movl	16(%rbx), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_getAndInitPage                 ## TAILCALL
LBB0_1:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	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	_BTCF_ValidNKey,4,2             ## @BTCF_ValidNKey
	.comm	_BTCF_ValidOvfl,4,2             ## @BTCF_ValidOvfl
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #56]
	bl	_cursorOwnsBtShared
	bl	_assert
	ldr	x8, [x19]
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, #8]
Lloh3:
	adrp	x22, _BTCURSOR_MAX_DEPTH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BTCURSOR_MAX_DEPTH@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	cset	w0, lt
	bl	_assert
	ldr	w8, [x19, #8]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_assert
	ldrsw	x8, [x19, #8]
	ldr	w9, [x22]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	str	xzr, [x19, #48]
Lloh5:
	adrp	x9, _BTCF_ValidNKey@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BTCF_ValidNKey@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _BTCF_ValidOvfl@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BTCF_ValidOvfl@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x19, #12]
	bic	w9, w10, w9
	str	w9, [x19, #12]
	ldp	x11, x9, [x19, #32]
	ldr	x10, [x19, #24]
	str	x10, [x9, x8, lsl #3]
	mov	x2, x19
	ldr	w9, [x2, #20]!
	str	w9, [x11, x8, lsl #2]
	str	xzr, [x19, #24]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	w4, [x19, #16]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_getAndInitPage
LBB0_2:
Lloh11:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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	_BTCF_ValidNKey,4,2             ; @BTCF_ValidNKey
	.comm	_BTCF_ValidOvfl,4,2             ; @BTCF_ValidOvfl
	.no_dead_strip	_moveToChild
.subsections_via_symbols
