	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptrmapGet
_ptrmapGet:                             ## @ptrmapGet
	.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	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_PTRMAP_PAGENO
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	leaq	-48(%rbp), %rdx
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_sqlite3PagerGet
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	-48(%rbp), %rdi
	callq	_sqlite3PagerGetData
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_PTRMAP_PTROFFSET
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%eax, %r13d
	movl	(%rbx), %eax
	addl	$-5, %eax
	xorl	%edi, %edi
	cmpl	%eax, %r13d
	setle	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movl	%r13d, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rax,4), %ecx
	movl	%ecx, (%r15)
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	leaq	(%rdx,%rax,4), %rdi
	addq	$4, %rdi
	callq	_get4byte
	movl	%eax, (%r14)
LBB0_5:
	movq	-48(%rbp), %rdi
	callq	_sqlite3PagerUnref
	movl	(%r15), %eax
	addl	$-6, %eax
	cmpl	$-6, %eax
	ja	LBB0_7
## %bb.6:
	movl	%r12d, %edi
	callq	_SQLITE_CORRUPT_PGNO
	jmp	LBB0_9
LBB0_2:
	movq	-48(%rbp), %rdi
	callq	_sqlite3PagerUnref
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ## @SQLITE_CORRUPT_BKPT
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_ptrmapGet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptrmapGet
_ptrmapGet:                             ; @ptrmapGet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	ldr	w0, [x0, #12]
	bl	_sqlite3_mutex_held
	bl	_assert
	mov	x0, x22
	mov	x1, x23
	bl	_PTRMAP_PAGENO
	mov	x21, x0
	ldr	w0, [x22, #8]
	add	x2, sp, #8
	mov	x1, x21
	mov	w3, #0
	bl	_sqlite3PagerGet
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_sqlite3PagerGetData
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_PTRMAP_PTROFFSET
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x23, x0
	ldr	w8, [x22]
	sub	w8, w8, #5
	cmp	w0, w8
	cset	w0, le
	bl	_assert
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x24, w23, uxtw #2]
	str	w8, [x19]
	cbz	x20, LBB0_4
; %bb.3:
	add	w8, w23, #1
	add	x0, x24, w8, uxtw #2
	bl	_get4byte
	str	w0, [x20]
LBB0_4:
	ldr	x0, [sp, #8]
	bl	_sqlite3PagerUnref
	ldr	w8, [x19]
	sub	w8, w8, #6
	cmn	w8, #6
	b.hi	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_SQLITE_CORRUPT_PGNO
	b	LBB0_9
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_sqlite3PagerUnref
Lloh0:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_ptrmapGet
.subsections_via_symbols
