	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkPtrmap
_checkPtrmap:                           ## @checkPtrmap
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	callq	_ptrmapGet
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.5:
	movq	-48(%rbp), %r9
	movq	-40(%rbp), %rax
	cmpq	%r12, %r9
	jne	LBB0_7
## %bb.6:
	cmpq	%r15, %rax
	je	LBB0_8
LBB0_7:
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_checkAppendMsg
	jmp	LBB0_8
LBB0_1:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movq	_SQLITE_IOERR_NOMEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
LBB0_3:
	movl	$1, (%rbx)
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_checkAppendMsg
LBB0_8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.comm	_SQLITE_IOERR_NOMEM,4,2         ## @SQLITE_IOERR_NOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read ptrmap key=%d"

L_.str.1:                               ## @.str.1
	.asciz	"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)"

	.no_dead_strip	_checkPtrmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkPtrmap
_checkPtrmap:                           ; @checkPtrmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	add	x2, sp, #40
	add	x3, sp, #32
	bl	_ptrmapGet
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldp	x9, x8, [sp, #32]
	cmp	x8, x21
	ccmp	x9, x22, #0, eq
	b.eq	LBB0_7
; %bb.2:
	stp	x8, x9, [sp, #16]
	stp	x21, x22, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SQLITE_IOERR_NOMEM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SQLITE_IOERR_NOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
LBB0_5:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x20
	mov	x2, x19
	bl	_checkAppendMsg
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.comm	_SQLITE_IOERR_NOMEM,4,2         ; @SQLITE_IOERR_NOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read ptrmap key=%d"

l_.str.1:                               ; @.str.1
	.asciz	"Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)"

	.no_dead_strip	_checkPtrmap
.subsections_via_symbols
