	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modifyPagePointer
_modifyPagePointer:                     ## @modifyPagePointer
	.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
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movl	4(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movl	40(%r13), %edi
	callq	_sqlite3PagerIswriteable
	movl	%eax, %edi
	callq	_assert
	movq	_PTRMAP_OVERFLOW2@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	(%r13), %rdi
	callq	_get4byte
	cmpq	%rbx, %rax
	jne	LBB0_26
## %bb.2:
	movq	(%r13), %rdi
	movq	%r14, %rsi
LBB0_23:
	callq	_put4byte
LBB0_24:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_3:
	cmpq	$0, 32(%r13)
	je	LBB0_5
## %bb.4:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_25
	jmp	LBB0_7
LBB0_26:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SQLITE_CORRUPT_PAGE            ## TAILCALL
LBB0_5:
	movq	%r13, %rdi
	callq	_btreeInitPage
	testl	%eax, %eax
	jne	LBB0_25
LBB0_7:
	movl	8(%r13), %r15d
	testl	%r15d, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_8
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	callq	_get4byte
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_17
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	cmpl	%ebx, %r15d
	je	LBB0_20
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_findCell
	movq	%rax, %r14
	movq	_PTRMAP_OVERFLOW1@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	leaq	-80(%rbp), %rdx
	callq	*24(%r13)
	movq	-80(%rbp), %rax
	cmpq	-72(%rbp), %rax
	jge	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	-64(%rbp), %rax
	leaq	(%r14,%rax,8), %rdi
	movq	16(%r13), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	addq	(%r13), %rax
	cmpq	%rax, %rdi
	ja	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	$-32, %rdi
	callq	_get4byte
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_27
## %bb.15:
	movslq	-64(%rbp), %rax
	leaq	(%r14,%rax,8), %rdi
	addq	$-32, %rdi
	jmp	LBB0_18
LBB0_8:
	xorl	%ebx, %ebx
	cmpl	%r15d, %ebx
	jne	LBB0_24
	jmp	LBB0_20
LBB0_17:
	movq	%r14, %rdi
LBB0_18:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_put4byte
	cmpl	%r15d, %ebx
	jne	LBB0_24
LBB0_20:
	movq	_PTRMAP_BTREE@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_13
## %bb.21:
	movq	(%r13), %rax
	movslq	12(%r13), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$64, %rdi
	callq	_get4byte
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_13
## %bb.22:
	movq	(%r13), %rax
	movslq	12(%r13), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$64, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_13:
	movq	%r13, %rdi
	callq	_SQLITE_CORRUPT_PAGE
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTRMAP_OVERFLOW2,8,3           ## @PTRMAP_OVERFLOW2
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_PTRMAP_OVERFLOW1,8,3           ## @PTRMAP_OVERFLOW1
	.comm	_PTRMAP_BTREE,8,3               ## @PTRMAP_BTREE
	.no_dead_strip	_modifyPagePointer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modifyPagePointer
_modifyPagePointer:                     ; @modifyPagePointer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8, #4]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	w0, [x20, #40]
	bl	_sqlite3PagerIswriteable
	bl	_assert
Lloh0:
	adrp	x8, _PTRMAP_OVERFLOW2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTRMAP_OVERFLOW2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_5
; %bb.1:
	ldr	x0, [x20]
	bl	_get4byte
	cmp	x0, x21
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [x20]
LBB0_3:
	mov	x1, x19
	bl	_put4byte
LBB0_4:
Lloh3:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_25
LBB0_5:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_8
; %bb.6:
Lloh6:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	cbnz	w0, LBB0_25
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_SQLITE_CORRUPT_PAGE
LBB0_8:
	mov	x0, x20
	bl	_btreeInitPage
	cbnz	w0, LBB0_25
LBB0_9:
	ldr	w25, [x20, #8]
	cmp	w25, #1
	b.lt	LBB0_18
; %bb.10:
	mov	w23, #0
Lloh9:
	adrp	x26, _PTRMAP_OVERFLOW1@GOTPAGE
Lloh10:
	ldr	x26, [x26, _PTRMAP_OVERFLOW1@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	bl	_get4byte
	cmp	x0, x21
	b.eq	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w23, w23, #1
	cmp	w25, w23
	b.eq	LBB0_21
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_findCell
	mov	x24, x0
	ldr	x8, [x26]
	cmp	x8, x22
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x20, #24]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x24
	blr	x8
	ldp	x8, x9, [sp, #8]
	cmp	x8, x9
	b.ge	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrsw	x8, [sp, #24]
	add	x8, x24, x8, lsl #3
	ldr	x9, [x20]
	ldr	x10, [x20, #16]
	ldrsw	x10, [x10]
	add	x9, x9, x10, lsl #3
	cmp	x8, x9
	b.hi	LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	x0, x8, #32
	bl	_get4byte
	cmp	x0, x21
	b.ne	LBB0_12
; %bb.17:
	ldrsw	x8, [sp, #24]
	add	x8, x24, x8, lsl #3
	sub	x0, x8, #32
	b	LBB0_20
LBB0_18:
	mov	w23, #0
	cmp	w23, w25
	b.ne	LBB0_4
	b	LBB0_21
LBB0_19:
	mov	x0, x24
LBB0_20:
	mov	x1, x19
	bl	_put4byte
	cmp	w23, w25
	b.ne	LBB0_4
LBB0_21:
Lloh11:
	adrp	x8, _PTRMAP_BTREE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PTRMAP_BTREE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_24
; %bb.22:
	ldr	x8, [x20]
	ldrsw	x9, [x20, #12]
	add	x8, x8, x9, lsl #3
	add	x0, x8, #64
	bl	_get4byte
	cmp	x0, x21
	b.ne	LBB0_24
; %bb.23:
	ldr	x8, [x20]
	ldrsw	x9, [x20, #12]
	add	x8, x8, x9, lsl #3
	add	x0, x8, #64
	b	LBB0_3
LBB0_24:
	mov	x0, x20
	bl	_SQLITE_CORRUPT_PAGE
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PTRMAP_OVERFLOW2,8,3           ; @PTRMAP_OVERFLOW2
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PTRMAP_OVERFLOW1,8,3           ; @PTRMAP_OVERFLOW1
	.comm	_PTRMAP_BTREE,8,3               ; @PTRMAP_BTREE
	.no_dead_strip	_modifyPagePointer
.subsections_via_symbols
