	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkList
_checkList:                             ## @checkList
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.1:
	movq	%r8, %r12
	movq	%rdi, %r14
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	L_.str.2(%rip), %rdx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_checkAppendMsg
	addl	$-2, %r13d
	movl	%r13d, %ebx
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	callq	_get4byte
	movl	%eax, %r15d
	movq	-80(%rbp), %rdi
	callq	_sqlite3PagerUnref
	movl	%ebx, %r13d
	testl	%ebx, %ebx
	jle	LBB0_26
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	cmpq	$0, 16(%r14)
	je	LBB0_26
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_checkRef
	testq	%rax, %rax
	jne	LBB0_26
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r14), %edi
	movl	%r15d, %esi
	leaq	-80(%rbp), %rdx
	callq	_sqlite3PagerGet
	testq	%rax, %rax
	jne	LBB0_25
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	-1(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rdi
	callq	_sqlite3PagerGetData
	movq	%rax, %rdi
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	addq	$4, %rdi
	callq	_get4byte
	movl	%eax, %ebx
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_PTRMAP_FREEPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_checkPtrmap
	movq	(%r14), %rax
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	addl	$-2, %ecx
	cmpl	%ecx, %ebx
	jg	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addq	$8, %rbx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_checkRef
	addq	$4, %rbx
	decq	%r13
	je	LBB0_21
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_get4byte
	movl	%eax, %r15d
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	_PTRMAP_FREEPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_checkPtrmap
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$2, %r13d
	jb	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, %rbx
	callq	_get4byte
	movq	_PTRMAP_OVERFLOW2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %ecx
	movq	%r12, %r8
	callq	_checkPtrmap
	movq	%rbx, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	jmp	LBB0_3
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_4
LBB0_24:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_checkAppendMsg
	jmp	LBB0_26
LBB0_25:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_checkAppendMsg
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d of %d pages missing from overflow list starting at %d"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get page %d"

	.comm	_PTRMAP_FREEPAGE,4,2            ## @PTRMAP_FREEPAGE
L_.str.2:                               ## @.str.2
	.asciz	"freelist leaf count too big on page %d"

	.comm	_PTRMAP_OVERFLOW2,4,2           ## @PTRMAP_OVERFLOW2
	.no_dead_strip	_checkList
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkList
_checkList:                             ; @checkList
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	stp	x2, x3, [sp, #24]               ; 16-byte Folded Spill
	cmp	w3, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x19, x4
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _PTRMAP_FREEPAGE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PTRMAP_FREEPAGE@GOTPAGEOFF]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	mov	x26, x8
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	mov	x27, x8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
Lloh2:
	adrp	x2, l_.str.2@PAGE
Lloh3:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x26
	bl	_checkAppendMsg
	sub	w22, w27, #2
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_get4byte
	mov	x26, x0
	ldr	x0, [sp, #40]
	bl	_sqlite3PagerUnref
	mov	x27, x22
	cmp	w22, #0
	b.le	LBB0_24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_24
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #0
	b.le	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x26
	mov	x2, x19
	bl	_checkRef
	cbnz	x0, LBB0_24
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #8]
	add	x2, sp, #40
	mov	x1, x26
	bl	_sqlite3PagerGet
	cbnz	x0, LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w22, w27, #1
	ldr	x0, [sp, #40]
	bl	_sqlite3PagerGetData
	mov	x25, x0
	cbz	w23, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x25, #4
	bl	_get4byte
	mov	x28, x0
	ldr	x8, [x20]
	ldr	x9, [x8]
	cbz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x26
	mov	w3, #0
	mov	x4, x19
	bl	_checkPtrmap
	ldr	x8, [x20]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8, #8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	sub	w8, w8, #2
	cmp	w28, w8
	b.gt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, #1
	b.lt	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, w28
	add	x26, x25, #8
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x20
	mov	x1, x27
	mov	x2, x19
	bl	_checkRef
	add	x26, x26, #4
	subs	x21, x21, #1
	b.eq	LBB0_20
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	bl	_get4byte
	mov	x27, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x27
	mov	w3, #0
	mov	x4, x19
	bl	_checkPtrmap
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #2
	b.lo	LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_get4byte
	mov	x1, x0
Lloh4:
	adrp	x8, _PTRMAP_OVERFLOW2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PTRMAP_OVERFLOW2@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x26
	mov	x4, x19
	bl	_checkPtrmap
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w22, w22, w28
	b	LBB0_3
LBB0_21:
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x27
	b	LBB0_23
LBB0_22:
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x26
LBB0_23:
	bl	_checkAppendMsg
LBB0_24:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d of %d pages missing from overflow list starting at %d"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get page %d"

	.comm	_PTRMAP_FREEPAGE,4,2            ; @PTRMAP_FREEPAGE
l_.str.2:                               ; @.str.2
	.asciz	"freelist leaf count too big on page %d"

	.comm	_PTRMAP_OVERFLOW2,4,2           ; @PTRMAP_OVERFLOW2
	.no_dead_strip	_checkList
.subsections_via_symbols
