	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function relocatePage
_relocatePage:                          ## @relocatePage
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	_PTRMAP_OVERFLOW2@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	sete	%al
	movq	_PTRMAP_OVERFLOW1@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	sete	%cl
	orb	%al, %cl
	movq	_PTRMAP_BTREE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	sete	%al
	movq	_PTRMAP_ROOTPAGE@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	sete	%dl
	orb	%al, %dl
	orb	%cl, %dl
	movzbl	%dl, %edi
	callq	_assert
	movl	(%r15), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpq	%r15, 16(%r14)
	sete	%dil
	callq	_assert
	movslq	%ebx, %rdi
	callq	_TRACE
	movl	8(%r14), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	_sqlite3PagerMovepage
	movl	%eax, %r13d
	movl	%eax, -44(%rbp)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_13
## %bb.1:
	movq	%r12, (%r14)
	movq	_PTRMAP_BTREE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.2:
	movq	_PTRMAP_ROOTPAGE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_3
## %bb.4:
	movl	12(%r14), %edi
	callq	_get4byte
	testq	%rax, %rax
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	je	LBB0_6
## %bb.5:
	movq	_PTRMAP_OVERFLOW2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_ptrmapPut
	movl	-44(%rbp), %r13d
	cmpl	(%r12), %r13d
	je	LBB0_6
	jmp	LBB0_13
LBB0_3:
	movq	%r14, %rdi
	callq	_setChildPtrmaps
	movl	%eax, %r13d
	movl	%eax, -44(%rbp)
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_13
LBB0_6:
	movq	_PTRMAP_ROOTPAGE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_13
## %bb.7:
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_btreeGetPage
	movl	%eax, %r13d
	movl	%eax, -44(%rbp)
	cmpl	(%r12), %eax
	jne	LBB0_13
## %bb.8:
	movq	-64(%rbp), %rax
	movl	8(%rax), %edi
	callq	_sqlite3PagerWrite
	movl	%eax, -44(%rbp)
	movq	-64(%rbp), %rdi
	cmpl	(%r12), %eax
	jne	LBB0_9
## %bb.10:
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_modifyPagePointer
	movl	%eax, -44(%rbp)
	movq	-64(%rbp), %rdi
	callq	_releasePage
	movl	-44(%rbp), %r13d
	cmpl	(%r12), %r13d
	jne	LBB0_13
## %bb.11:
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_ptrmapPut
	jmp	LBB0_12
LBB0_9:
	callq	_releasePage
LBB0_12:
	movl	-44(%rbp), %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTRMAP_OVERFLOW2,4,2           ## @PTRMAP_OVERFLOW2
	.comm	_PTRMAP_OVERFLOW1,4,2           ## @PTRMAP_OVERFLOW1
	.comm	_PTRMAP_BTREE,4,2               ## @PTRMAP_BTREE
	.comm	_PTRMAP_ROOTPAGE,4,2            ## @PTRMAP_ROOTPAGE
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_relocatePage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function relocatePage
_relocatePage:                          ; @relocatePage
	.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	x24, x5
	mov	x23, x4
	mov	x28, x3
	mov	x21, x2
	mov	x25, x1
	mov	x22, x0
	ldr	x27, [x1]
	ldr	x26, [x0, #8]
Lloh0:
	adrp	x8, _PTRMAP_OVERFLOW2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTRMAP_OVERFLOW2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PTRMAP_OVERFLOW1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PTRMAP_OVERFLOW1@GOTPAGEOFF]
	cmp	w8, w2
Lloh5:
	ldr	w8, [x9]
	ccmp	w8, w2, #4, ne
Lloh6:
	adrp	x20, _PTRMAP_BTREE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PTRMAP_BTREE@GOTPAGEOFF]
	ldr	w8, [x20]
	ccmp	w8, w2, #4, ne
Lloh8:
	adrp	x19, _PTRMAP_ROOTPAGE@GOTPAGE
Lloh9:
	ldr	x19, [x19, _PTRMAP_ROOTPAGE@GOTPAGEOFF]
	ldr	w8, [x19]
	ccmp	w8, w2, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w0, [x22]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	x8, [x25, #16]
	cmp	x8, x22
	cset	w0, eq
	bl	_assert
	sxtw	x0, w21
	bl	_TRACE
	ldr	w1, [x25, #8]
	mov	x0, x26
	mov	x2, x23
	mov	x3, x24
	bl	_sqlite3PagerMovepage
	mov	x24, x0
	str	w0, [sp, #20]
Lloh10:
	adrp	x26, _SQLITE_OK@GOTPAGE
Lloh11:
	ldr	x26, [x26, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.1:
	stp	x27, x28, [sp]                  ; 16-byte Folded Spill
	str	x23, [x25]
	ldr	w8, [x20]
	cmp	w8, w21
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, w21
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x25, #12]
	bl	_get4byte
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x0
Lloh12:
	adrp	x8, _PTRMAP_OVERFLOW2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PTRMAP_OVERFLOW2@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x4, sp, #20
	mov	x0, x22
	mov	x3, x23
	bl	_ptrmapPut
	ldr	w24, [sp, #20]
	ldr	w8, [x26]
	cmp	w24, w8
	b.eq	LBB0_6
	b	LBB0_13
LBB0_5:
	mov	x0, x25
	bl	_setChildPtrmaps
	mov	x24, x0
	str	w0, [sp, #20]
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_13
LBB0_6:
	ldr	w8, [x19]
	cmp	w8, w21
	b.eq	LBB0_13
; %bb.7:
	add	x2, sp, #24
	mov	x0, x22
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	w3, #0
	mov	w4, #0
	bl	_btreeGetPage
	mov	x24, x0
	str	w0, [sp, #20]
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.8:
	ldr	x8, [sp, #24]
	ldr	w0, [x8, #8]
	bl	_sqlite3PagerWrite
	mov	x8, x0
	str	w0, [sp, #20]
	ldr	w9, [x26]
	ldr	x0, [sp, #24]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	mov	x2, x23
	mov	x3, x21
	bl	_modifyPagePointer
	str	w0, [sp, #20]
	ldr	x0, [sp, #24]
	bl	_releasePage
	ldr	w24, [sp, #20]
	ldr	w8, [x26]
	cmp	w24, w8
	b.ne	LBB0_13
; %bb.10:
	add	x4, sp, #20
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	bl	_ptrmapPut
	b	LBB0_12
LBB0_11:
	bl	_releasePage
LBB0_12:
	ldr	w24, [sp, #20]
LBB0_13:
	mov	x0, x24
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PTRMAP_OVERFLOW2,4,2           ; @PTRMAP_OVERFLOW2
	.comm	_PTRMAP_OVERFLOW1,4,2           ; @PTRMAP_OVERFLOW1
	.comm	_PTRMAP_BTREE,4,2               ; @PTRMAP_BTREE
	.comm	_PTRMAP_ROOTPAGE,4,2            ; @PTRMAP_ROOTPAGE
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_relocatePage
.subsections_via_symbols
