	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setChildPtrmaps
_setChildPtrmaps:                       ## @setChildPtrmaps
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	32(%rdi), %rcx
	movl	40(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	cmpq	$0, 24(%r12)
	je	LBB0_2
## %bb.1:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_btreeInitPage
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	movl	%eax, -44(%rbp)
	cmpl	(%rcx), %eax
	jne	LBB0_11
LBB0_3:
	movl	(%r12), %r15d
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%ebx, %r15d
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_findCell
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%r13, %rcx
	callq	_ptrmapPutOvflPtr
	cmpl	$0, 16(%r12)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_get4byte
	movq	_PTRMAP_BTREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r13, %r8
	callq	_ptrmapPut
	jmp	LBB0_7
LBB0_8:
	cmpl	$0, 16(%r12)
	jne	LBB0_10
## %bb.9:
	movq	8(%r12), %rax
	movslq	4(%r12), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$32, %rdi
	callq	_get4byte
	movq	_PTRMAP_BTREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-44(%rbp), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_ptrmapPut
LBB0_10:
	movl	-44(%rbp), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_PTRMAP_BTREE,4,2               ## @PTRMAP_BTREE
	.no_dead_strip	_setChildPtrmaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setChildPtrmaps
_setChildPtrmaps:                       ; @setChildPtrmaps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x0
	ldr	x20, [x0, #32]
	ldr	w19, [x0, #40]
	ldr	w0, [x20]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_btreeInitPage
Lloh3:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w0, [sp, #12]
	cmp	w0, w8
	b.ne	LBB0_11
LBB0_3:
	ldr	w25, [x21]
Lloh6:
	adrp	x24, _PTRMAP_BTREE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PTRMAP_BTREE@GOTPAGEOFF]
	cmp	w25, #1
	b.lt	LBB0_8
; %bb.4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	cmp	w25, w22
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_findCell
	mov	x23, x0
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x21
	mov	x2, x23
	bl	_ptrmapPutOvflPtr
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_get4byte
	mov	x1, x0
	ldr	w2, [x24]
	add	x4, sp, #12
	mov	x0, x20
	mov	x3, x19
	bl	_ptrmapPut
	b	LBB0_5
LBB0_8:
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_10
; %bb.9:
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21, #4]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #32
	bl	_get4byte
	mov	x1, x0
	ldr	w2, [x24]
	add	x4, sp, #12
	mov	x0, x20
	mov	x3, x19
	bl	_ptrmapPut
LBB0_10:
	ldr	w0, [sp, #12]
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PTRMAP_BTREE,4,2               ; @PTRMAP_BTREE
	.no_dead_strip	_setChildPtrmaps
.subsections_via_symbols
