	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btreeGetPage
_btreeGetPage:                          ## @btreeGetPage
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	testl	%ecx, %ecx
	sete	%al
	movq	_PAGER_GET_NOCONTENT@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	sete	%cl
	orb	%al, %cl
	movq	_PAGER_GET_READONLY@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	4(%r12), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movl	(%r12), %edi
	leaq	-40(%rbp), %rdx
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	_sqlite3PagerGet
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_btreePageFromDbPage
	movq	%rax, (%r14)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGER_GET_NOCONTENT,4,2        ## @PAGER_GET_NOCONTENT
	.comm	_PAGER_GET_READONLY,4,2         ## @PAGER_GET_READONLY
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_btreeGetPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btreeGetPage
_btreeGetPage:                          ; @btreeGetPage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmp	w3, #0
Lloh0:
	adrp	x8, _PAGER_GET_NOCONTENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGER_GET_NOCONTENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w3, #4, ne
Lloh3:
	adrp	x8, _PAGER_GET_READONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGER_GET_READONLY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w8, w3, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w0, [x20, #4]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	x1, x21
	mov	x3, x22
	bl	_sqlite3PagerGet
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_btreePageFromDbPage
	str	x0, [x19]
Lloh6:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGER_GET_NOCONTENT,4,2        ; @PAGER_GET_NOCONTENT
	.comm	_PAGER_GET_READONLY,4,2         ; @PAGER_GET_READONLY
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_btreeGetPage
.subsections_via_symbols
