	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pageInsertArray
_pageInsertArray:                       ## @pageInsertArray
	.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
	movl	%r9d, %r12d
	movl	%r8d, %r13d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_CORRUPT_DB@GOTPCREL(%rip), %rax
	movl	$1, %edi
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
LBB0_2:
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_assert
	testl	%r12d, %r12d
	jle	LBB0_27
## %bb.3:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rdi
	addl	%r13d, %r12d
	movq	(%rdi), %rax
	xorl	%r14d, %r14d
	cmpl	%r13d, (%rax)
	jg	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	movq	_NB@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r15), %rax
	addq	%rax, %rax
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setl	%dil
	callq	_ALWAYS
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rbx), %r14
	movq	16(%rbp), %rdi
	movq	(%rdi), %rax
	cmpl	%r13d, 4(%rax,%rbx,4)
	movq	%r14, %rbx
	jle	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %r14
	movq	16(%rbp), %rdi
LBB0_8:
	movl	%r14d, %eax
	movq	16(%rdi), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %r15
	movslq	%r12d, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	incq	%r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$16, %rbx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	incq	%r15
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	incl	%r13d
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	callq	_cachedCellSize
	movl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %esi
	leaq	-116(%rbp), %rdx
	callq	_pageFindSlot
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r13
	movslq	%r12d, %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rax
	subq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	sarq	$3, %rax
	movslq	%r12d, %rbx
	cmpq	%rbx, %rax
	jl	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	(,%rbx,8), %rax
	subq	%rax, %r13
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(,%rbx,8), %rdx
	addq	%r13, %rdx
	movq	16(%rbp), %rax
	movq	8(%rax), %rax
	movq	-8(%rax,%r15,8), %rcx
	movb	$1, %al
	cmpq	%rcx, %rdx
	jbe	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rcx,%rbx,8), %rcx
	cmpq	%rcx, %r13
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_CORRUPT_DB@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	setne	%al
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movq	16(%rbp), %rax
	movq	8(%rax), %rax
	movq	-8(%rax,%r15,8), %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %rsi
	jge	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rsi,%rbx,8), %rax
	cmpq	%rcx, %rax
	jg	LBB0_20
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_memmove
	subq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	shrq	$3, %r13
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_put2byte
	cmpq	-112(%rbp), %r15                ## 8-byte Folded Reload
	jge	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%rbp), %rdi
	movq	(%rdi), %rcx
	movslq	%r14d, %rax
	movslq	(%rcx,%rax,4), %rcx
	cmpq	%rcx, %r15
	jl	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	1(%rax), %r14d
	movq	16(%rdi), %rcx
	movq	8(%rcx,%rax,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_25
LBB0_20:
	movq	_CORRUPT_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
LBB0_21:
	movl	$1, %eax
	jmp	LBB0_28
LBB0_26:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
LBB0_27:
	xorl	%eax, %eax
LBB0_28:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CORRUPT_DB,4,2                 ## @CORRUPT_DB
	.comm	_NB,4,2                         ## @NB
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ## @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_pageInsertArray
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pageInsertArray
_pageInsertArray:                       ; @pageInsertArray
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x6
	mov	x25, x5
	mov	x24, x4
	mov	x21, x3
	mov	x22, x2
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x26, x0
Lloh0:
	adrp	x8, _CORRUPT_DB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CORRUPT_DB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x26]
	cmp	x8, #0
	cset	w0, eq
LBB0_3:
	ldr	x20, [x26, #8]
	ldr	x28, [x22]
	bl	_assert
	cmp	w25, #1
	b.lt	LBB0_6
; %bb.4:
	add	w23, w25, w24
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, w24
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	b.le	LBB0_7
; %bb.5:
	mov	w8, #0
	b	LBB0_11
LBB0_6:
	mov	w0, #0
	b	LBB0_29
LBB0_7:
	mov	x22, #0
Lloh3:
	adrp	x25, _NB@GOTPAGE
Lloh4:
	ldr	x25, [x25, _NB@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x25]
	cmp	x22, x8, lsl #1
	cset	w0, lt
	bl	_ALWAYS
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x22, #1
	ldr	x9, [x19]
	add	x9, x9, x22, lsl #2
	ldr	w9, [x9, #4]
	mov	x22, x8
	cmp	w9, w24
	b.le	LBB0_8
	b	LBB0_11
LBB0_10:
	mov	x8, x22
LBB0_11:
	ldr	x9, [x19, #16]
	ldr	x22, [x9, w8, uxtw #3]
	sxtw	x24, w24
	sxtw	x9, w23
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	mov	x23, x8
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #16
	add	x24, x24, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_cachedCellSize
	mov	x25, x0
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x2, sp, #44
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x25
	bl	_pageFindSlot
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x26, x0
	mov	x8, x25
	sxtw	x27, w8
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	sub	x8, x28, x8
	sxtw	x27, w25
	cmp	x27, x8, asr #3
	b.gt	LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	x28, x28, x27, lsl #3
	mov	x26, x28
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	lsl	x8, x27, #3
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x24, lsl #3]
	add	x10, x9, x8
	add	x8, x26, x8
	cmp	x8, x9
	ccmp	x26, x10, #2, hi
	b.lo	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #1
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh5:
	adrp	x8, _CORRUPT_DB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CORRUPT_DB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, ne
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_assert
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x24, lsl #3]
	add	x8, x1, x27, lsl #3
	cmp	x1, x22
	ccmp	x8, x22, #4, lt
	b.gt	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x26
	mov	x2, x25
	bl	_memmove
	sub	x8, x26, x20
	lsr	x1, x8, #3
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_put2byte
	add	x8, x24, #1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.ge	LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x19]
	ldrsw	x9, [x9, w23, sxtw #2]
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.25:                               ;   in Loop: Header=BB0_13 Depth=1
	sxtw	x8, w23
	add	x23, x8, #1
	ldr	x8, [x19, #16]
	ldr	x22, [x8, x23, lsl #3]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_12
LBB0_26:
Lloh8:
	adrp	x8, _CORRUPT_DB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CORRUPT_DB@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_assert
LBB0_27:
	mov	w0, #1
	b	LBB0_29
LBB0_28:
	mov	w0, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x28, [x8]
LBB0_29:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CORRUPT_DB,4,2                 ; @CORRUPT_DB
	.comm	_NB,4,2                         ; @NB
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_pageInsertArray
.subsections_via_symbols
