	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getAndInitPage
_getAndInitPage:                        ## @getAndInitPage
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movq	%rbx, %rdi
	callq	_btreePagecount
	cmpq	%r15, %rax
	jge	LBB0_2
## %bb.1:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_btreeGetPage
	movl	%eax, %r13d
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_5
## %bb.3:
	movq	(%r14), %rdi
	callq	_btreeInitPage
	movl	%eax, %r13d
	cmpl	(%r12), %eax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	callq	_releasePage
LBB0_5:
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	setne	%bl
	callq	_testcase
	movq	_SQLITE_CORRUPT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	sete	%al
	orb	%bl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	%r13d, %eax
	addq	$8, %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
	.comm	_SQLITE_CORRUPT,4,2             ## @SQLITE_CORRUPT
	.no_dead_strip	_getAndInitPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getAndInitPage
_getAndInitPage:                        ; @getAndInitPage
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_sqlite3_mutex_held
	bl	_assert
	mov	x0, x22
	bl	_btreePagecount
	cmp	x0, x19
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_5
LBB0_2:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	mov	x4, x21
	bl	_btreeGetPage
	mov	x21, x0
Lloh3:
	adrp	x22, _SQLITE_OK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	x0, [x20]
	bl	_btreeInitPage
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x20]
	bl	_releasePage
LBB0_5:
	cmp	x19, #0
	cset	w0, eq
	cset	w19, ne
	bl	_testcase
Lloh5:
	adrp	x8, _SQLITE_CORRUPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_CORRUPT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w8, eq
	orr	w0, w19, w8
	bl	_assert
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_CORRUPT,4,2             ; @SQLITE_CORRUPT
	.no_dead_strip	_getAndInitPage
.subsections_via_symbols
