	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fillInCell
_fillInCell:                            ## @fillInCell
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	movl	24(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movl	$1, %edi
	cmpq	%r15, %rax
	jbe	LBB0_2
## %bb.1:
	movq	%r15, %r13
	jmp	LBB0_4
LBB0_2:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	40(%rcx), %rcx
	addq	(%rcx), %rax
	movq	%r15, %r13
	cmpq	%r15, %rax
	jbe	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	callq	_sqlite3PagerIswriteable
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_4:
	callq	_assert
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r12d
	movslq	%r12d, %r15
	cmpq	$0, 48(%rax)
	je	LBB0_6
## %bb.5:
	movl	(%r14), %eax
	movl	4(%r14), %ebx
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	addl	%eax, %ebx
	movq	24(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	callq	_assert
	leaq	(%r15,%r13), %rdi
	movl	%ebx, %esi
	callq	_putVarint32
	addl	%eax, %r15d
	movslq	%r15d, %rdi
	addq	%r13, %rdi
	movl	8(%r14), %esi
	callq	_putVarint
	movl	%ebx, %edx
	movq	%rax, %rbx
	movl	%r15d, %r12d
	jmp	LBB0_7
LBB0_6:
	xorl	%edi, %edi
	cmpq	$0, 16(%r14)
	setne	%dil
	callq	_assert
	movl	8(%r14), %ecx
	movq	16(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	addq	%r13, %r15
	movq	%r15, %rdi
	movl	%ecx, %r14d
	movl	%ecx, %esi
	callq	_putVarint32
	movq	%rax, %rbx
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
LBB0_7:
	addl	%r12d, %ebx
	movslq	%ebx, %r14
	addq	%r13, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_8
## %bb.9:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	20(%rbx), %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %eax
	subl	%r12d, %eax
	movq	40(%rbx), %rdx
	movl	8(%rdx), %esi
	addl	$-4, %esi
	cltd
	idivl	%esi
	movl	%edx, %r15d
	addl	%r12d, %r15d
	xorl	%edi, %edi
	cmpl	%ecx, %r15d
	sete	%dil
	callq	_testcase
	movl	16(%rbx), %eax
	incl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	sete	%dil
	callq	_testcase
	cmpl	16(%rbx), %r15d
	cmovgl	%r12d, %r15d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leal	(%r15,%rcx), %eax
	leal	4(%r15,%rcx), %ecx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	cltq
	addq	%rax, %r13
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	$0, -72(%rbp)
	movq	40(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-92(%rbp), %r13d                ## 4-byte Reload
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %ebx
	cmpl	%r15d, %ecx
	movl	%r15d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmovll	%ecx, %r12d
	movb	$1, %r13b
	movb	$1, %al
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	24(%rcx), %edi
	callq	_sqlite3PagerIswriteable
	testq	%rax, %rax
	setne	%al
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movzbl	%al, %edi
	callq	_assert
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	%rax, %r14
	jb	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rax
	cmpq	%rax, %r14
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	callq	_sqlite3PagerIswriteable
	testq	%rax, %rax
	setne	%r13b
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	movzbl	%r13b, %edi
	callq	_assert
	movl	%ebx, %r13d
	movq	%r14, %rdi
	cmpl	%r12d, %ebx
	jge	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=2
	testl	%r13d, %r13d
	jle	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, %r12d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=2
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	subl	%r12d, %ecx
	jle	LBB0_44
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=2
	movslq	%r12d, %rax
	addq	%rax, %r14
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	subl	%r12d, %r13d
	subl	%r12d, %r15d
	jne	LBB0_11
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	$0, -112(%rbp)
	movq	-72(%rbp), %r14
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, 16(%r15)
	movq	%r14, %rcx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rsi
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=2
	movq	-72(%rbp), %rsi
LBB0_25:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rsi
	movq	%rsi, -72(%rbp)
	movq	%r15, %rdi
	callq	_PTRMAP_ISPAGE
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	movq	-72(%rbp), %rbx
	movq	%r15, %rdi
	callq	_PENDING_BYTE_PAGE
	cmpq	%rax, %rbx
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rcx
LBB0_29:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	leaq	-112(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	xorl	%r8d, %r8d
	callq	_allocateBtreePage
	movl	%eax, -60(%rbp)
	cmpq	$0, 16(%r15)
	je	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-120(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_PTRMAP_OVERFLOW2@GOTPCREL(%rip), %rax
	testq	%r14, %r14
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_PTRMAP_OVERFLOW1@GOTPCREL(%rip), %rax
LBB0_34:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rax), %edx
	movq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rcx
	leaq	-60(%rbp), %r8
	callq	_ptrmapPut
	cmpl	$0, -60(%rbp)
	je	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-112(%rbp), %rdi
	callq	_releasePage
	movl	-60(%rbp), %eax
LBB0_36:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	%eax, %eax
	je	LBB0_38
	jmp	LBB0_37
LBB0_30:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-120(%rbp), %r15                ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_37
LBB0_38:                                ##   in Loop: Header=BB0_10 Depth=1
	movb	$1, %r14b
	movb	$1, %al
	testq	%r12, %r12
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	24(%r12), %edi
	callq	_sqlite3PagerIswriteable
	testq	%rax, %rax
	setne	%al
LBB0_40:                                ##   in Loop: Header=BB0_10 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	%rax, %r15
	jb	LBB0_43
## %bb.41:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rax
	cmpq	%rax, %r15
	jae	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	callq	_sqlite3PagerIswriteable
	testq	%rax, %rax
	setne	%r14b
LBB0_43:                                ##   in Loop: Header=BB0_10 Depth=1
	movzbl	%r14b, %edi
	callq	_assert
	movq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_put4byte
	movq	%r12, %rdi
	callq	_releasePage
	movq	-112(%rbp), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rdi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	callq	_put4byte
	movq	-112(%rbp), %rax
	movq	(%rax), %r14
	addq	$4, %r14
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r15d
	addl	$-4, %r15d
	jmp	LBB0_10
LBB0_8:
	addl	%edx, %ebx
	xorl	%edi, %edi
	cmpl	$3, %ebx
	sete	%dil
	movl	%edx, %r12d
	callq	_testcase
	xorl	%edi, %edi
	cmpl	$4, %ebx
	sete	%dil
	callq	_testcase
	cmpl	$5, %ebx
	movl	$4, %eax
	cmovgel	%ebx, %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	subl	%ebx, %r12d
	setge	%dil
	setg	%r15b
	callq	_assert
	movl	%r15d, %edi
	callq	_testcase
	movq	%r14, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rdi
	addq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	jmp	LBB0_45
LBB0_44:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_releasePage
LBB0_45:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_46:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	movq	%r12, %rdi
	callq	_releasePage
	movl	-60(%rbp), %eax
	jmp	LBB0_46
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_PTRMAP_OVERFLOW2,4,2           ## @PTRMAP_OVERFLOW2
	.comm	_PTRMAP_OVERFLOW1,4,2           ## @PTRMAP_OVERFLOW1
	.no_dead_strip	_fillInCell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fillInCell
_fillInCell:                            ; @fillInCell
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x23, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	w0, [x8, #24]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	x8, [x19]
	cmp	x8, x25
	b.hi	LBB0_3
; %bb.1:
	ldr	x9, [x19, #40]
	ldr	x9, [x9]
	add	x8, x8, x9
	cmp	x8, x25
	b.ls	LBB0_3
; %bb.2:
	ldr	w0, [x19, #24]
	bl	_sqlite3PagerIswriteable
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	bl	_assert
	ldr	w26, [x19, #8]
	sxtw	x27, w26
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_6
; %bb.5:
	ldp	w20, w8, [x23]
	add	w22, w8, w20
	ldr	x21, [x23, #24]
	ldr	w0, [x19, #12]
	bl	_assert
	add	x0, x25, x27
	mov	x1, x22
	bl	_putVarint32
	add	w26, w26, w0
	add	x0, x25, w26, sxtw
	ldr	w1, [x23, #8]
	bl	_putVarint
	b	LBB0_7
LBB0_6:
	ldr	x8, [x23, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	w20, [x23, #8]
	ldr	x21, [x23, #16]
	add	x0, x25, x27
	mov	x1, x20
	bl	_putVarint32
	mov	x22, x20
LBB0_7:
	add	w8, w26, w0
	sxtw	x27, w8
	add	x26, x25, x27
	ldr	w8, [x19, #16]
Lloh0:
	adrp	x23, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SQLITE_OK@GOTPAGEOFF]
	cmp	w22, w8
	b.le	LBB0_42
; %bb.8:
	ldr	w28, [x19, #20]
	sub	w9, w22, w28
	ldr	x10, [x19, #40]
	ldr	w10, [x10, #8]
	sub	w10, w10, #4
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	str	x24, [sp]                       ; 8-byte Folded Spill
	add	w24, w9, w28
	cmp	w24, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	cmp	w24, w8
	cset	w0, eq
	bl	_testcase
	mov	x23, #0
	ldr	w8, [x19, #16]
	cmp	w24, w8
	csel	w28, w28, w24, gt
	add	x8, x27, w28, sxtw
	add	w9, w8, #4
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	str	w9, [x10]
	add	x25, x25, x8
	str	xzr, [sp, #16]
	ldr	x24, [x19, #40]
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	cmp	w22, w28
	csel	w27, w22, w28, lt
	cbz	x23, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23, #24]
	bl	_sqlite3PagerIswriteable
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_assert
	ldr	x8, [x19]
	cmp	x26, x8
	b.lo	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x24]
	add	x8, x8, x9
	cmp	x26, x8
	b.hs	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19, #24]
	bl	_sqlite3PagerIswriteable
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_assert
	mov	x0, x26
	cmp	w20, w27
	b.ge	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w20, #1
	b.lt	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	mov	x27, x20
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x21
	mov	x2, x27
	bl	_memcpy
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w1, #0
	mov	x2, x27
	bl	_memset
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	w22, w22, w27
	cmp	w22, #1
	b.lt	LBB0_43
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, w27, sxtw
	sub	w20, w20, w27
	add	x21, x21, w27, sxtw #2
	subs	w28, w28, w27
	b.ne	LBB0_9
; %bb.23:                               ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [sp, #8]
	ldr	x26, [sp, #16]
	ldr	x8, [x24, #16]
	mov	x3, x26
	cbz	x8, LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x26
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	ldr	x8, [sp, #16]
LBB0_26:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, x8, #1
	str	x1, [sp, #16]
	mov	x0, x24
	bl	_PTRMAP_ISPAGE
	cbnz	x0, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	ldr	x27, [sp, #16]
	mov	x0, x24
	bl	_PENDING_BYTE_PAGE
	cmp	x27, x0
	b.eq	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x3, [sp, #16]
LBB0_29:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #8
	add	x2, sp, #16
	mov	x0, x24
	mov	w4, #0
	bl	_allocateBtreePage
	str	w0, [sp, #28]
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh2:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x26, #0
Lloh5:
	adrp	x8, _PTRMAP_OVERFLOW2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PTRMAP_OVERFLOW2@GOTPAGEOFF]
Lloh7:
	adrp	x9, _PTRMAP_OVERFLOW1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PTRMAP_OVERFLOW1@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	ldr	x1, [sp, #16]
	add	x4, sp, #28
	mov	x0, x24
	mov	x3, x26
	bl	_ptrmapPut
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #8]
	bl	_releasePage
	ldr	w0, [sp, #28]
LBB0_33:                                ;   in Loop: Header=BB0_9 Depth=1
	cbnz	w0, LBB0_45
LBB0_34:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	x23, LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23, #24]
	bl	_sqlite3PagerIswriteable
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
LBB0_37:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_assert
	ldr	x8, [x19]
	cmp	x25, x8
	b.lo	LBB0_40
; %bb.38:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x24]
	add	x8, x8, x9
	cmp	x25, x8
	b.hs	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19, #24]
	bl	_sqlite3PagerIswriteable
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
LBB0_41:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_assert
	ldr	x1, [sp, #16]
	mov	x0, x25
	bl	_put4byte
	mov	x0, x23
	bl	_releasePage
	ldr	x23, [sp, #8]
	ldr	x25, [x23]
	mov	x0, x25
	mov	x1, #0
	bl	_put4byte
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	add	x26, x8, #4
	ldr	w8, [x24, #8]
	sub	w28, w8, #4
	b	LBB0_9
LBB0_42:
	add	w19, w22, w27
	cmp	w19, #3
	cset	w0, eq
	bl	_testcase
	cmp	w19, #4
	cset	w0, eq
	mov	w8, #4
	csel	w19, w19, w8, gt
	bl	_testcase
	str	w19, [x24]
	subs	w19, w22, w20
	cset	w0, ge
	cset	w22, gt
	bl	_assert
	mov	x0, x22
	bl	_testcase
	mov	x0, x26
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	add	x0, x26, w20, sxtw
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	ldr	w0, [x23]
	b	LBB0_44
LBB0_43:
	mov	x0, x23
	bl	_releasePage
Lloh9:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_44:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_45:
	mov	x0, x23
	bl	_releasePage
	ldr	w0, [sp, #28]
	b	LBB0_44
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PTRMAP_OVERFLOW2,4,2           ; @PTRMAP_OVERFLOW2
	.comm	_PTRMAP_OVERFLOW1,4,2           ; @PTRMAP_OVERFLOW1
	.no_dead_strip	_fillInCell
.subsections_via_symbols
