	.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, %ebx
	movl	%r8d, %r14d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_CORRUPT_DB@GOTPCREL(%rip), %rax
	movl	$1, %edi
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	sete	%dil
LBB0_2:
	movq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_assert
	testl	%ebx, %ebx
	jle	LBB0_28
## %bb.3:
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r15
	addl	%r14d, %ebx
	movq	(%r15), %rax
	xorl	%ecx, %ecx
	cmpl	%r14d, (%rax)
	jg	LBB0_9
## %bb.4:
	movl	%ebx, %r13d
	movq	%r15, %r12
	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), %rcx
	movq	(%r12), %rax
	cmpl	%r14d, 4(%rax,%rbx,4)
	movq	%rcx, %rbx
	jle	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rcx
LBB0_8:
	movq	%r12, %r15
	movl	%r13d, %ebx
LBB0_9:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	movq	24(%r15), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %r13
	movslq	%ebx, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	addq	$16, %rbx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	incq	%r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%r15), %rax
	xorl	%edi, %edi
	cmpl	$0, -4(%rax,%r13,4)
	setne	%dil
	callq	_assert
	movq	%r15, %r12
	movq	8(%r15), %rax
	movslq	-4(%rax,%r13,4), %r14
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	leaq	-116(%rbp), %rdx
	callq	_pageFindSlot
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rax
	subq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	sarq	$3, %rax
	cmpq	%r14, %rax
	jl	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	(,%r14,8), %rax
	subq	%rax, %r15
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	(%r15,%r14,8), %rdx
	movq	16(%r12), %rax
	movq	-8(%rax,%r13,8), %rcx
	movb	$1, %al
	cmpq	%rcx, %rdx
	jbe	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	(%rcx,%r14,8), %rcx
	cmpq	%rcx, %r15
	jae	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_CORRUPT_DB@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	setne	%al
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movq	16(%r12), %rax
	movq	-8(%rax,%r13,8), %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %rsi
	jge	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	(%rsi,%r14,8), %rax
	cmpq	%rcx, %rax
	jg	LBB0_21
LBB0_23:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_memmove
	subq	%rbx, %r15
	shrq	$3, %r15
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_put2byte
	cmpq	-112(%rbp), %r13                ## 8-byte Folded Reload
	jge	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %r15
	movq	(%r12), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movslq	%edx, %rax
	movslq	(%rcx,%rax,4), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%rax), %edx
	movq	24(%r15), %rcx
	movq	8(%rcx,%rax,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_26
LBB0_21:
	movq	_CORRUPT_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
LBB0_22:
	movl	$1, %eax
	jmp	LBB0_29
LBB0_27:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
LBB0_28:
	xorl	%eax, %eax
LBB0_29:
	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, #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	x19, x6
	mov	x25, x5
	mov	x24, x4
	mov	x21, x3
	mov	x20, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, 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, [x22]
	cmp	x8, #0
	cset	w0, eq
LBB0_3:
	ldr	x28, [x22, #8]
	ldr	x27, [x20]
	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	x20, [sp]                       ; 8-byte Folded Spill
	str	x22, [sp, #16]                  ; 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	x20, #0
Lloh3:
	adrp	x22, _NB@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NB@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x22]
	cmp	x20, x8, lsl #1
	cset	w0, lt
	bl	_ALWAYS
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x20, #1
	ldr	x9, [x19]
	add	x9, x9, x20, lsl #2
	ldr	w9, [x9, #4]
	mov	x20, x8
	cmp	w9, w24
	b.le	LBB0_8
	b	LBB0_11
LBB0_10:
	mov	x8, x20
LBB0_11:
	ldr	x9, [x19, #24]
	ldr	x22, [x9, w8, uxtw #3]
	sxtw	x20, w24
	sxtw	x26, w23
	mov	x23, x8
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #16
	add	x20, x20, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x24, x20, #2
	ldr	w8, [x8, x24]
	cmp	w8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19, #8]
	ldrsw	x24, [x8, x24]
	ldr	x8, [x28, #8]
	cbnz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x28, #16]
	cbz	x8, LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x2, sp, #28
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x24
	bl	_pageFindSlot
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x25, x0
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sub	x8, x27, x8
	cmp	x24, x8, asr #3
	b.gt	LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	x27, x27, x24, lsl #3
	mov	x25, x27
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	lsl	x8, x24, #3
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x20, lsl #3]
	add	x10, x9, x8
	add	x8, x25, x8
	cmp	x8, x9
	ccmp	x25, 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, #16]
	ldr	x1, [x8, x20, lsl #3]
	add	x8, x1, x24, 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, x25
	mov	x2, x24
	bl	_memmove
	sub	x8, x25, x28
	lsr	x1, x8, #3
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_put2byte
	add	x8, x20, #1
	cmp	x8, x26
	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, #24]
	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-byte Folded Reload
	str	x27, [x8]
LBB0_29:
	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
	.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
