	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pagerBeginReadTransaction
_pagerBeginReadTransaction:             ## @pagerBeginReadTransaction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	callq	_pagerUseWal
	movl	%eax, %edi
	callq	_assert
	movq	(%rbx), %rax
	movq	_PAGER_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_PAGER_READER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	12(%rbx), %edi
	callq	_sqlite3WalEndReadTransaction
	movl	12(%rbx), %edi
	leaq	-20(%rbp), %rsi
	callq	_sqlite3WalBeginReadTransaction
	movl	%eax, %r14d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_2
## %bb.1:
	cmpl	$0, -20(%rbp)
	je	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_pager_reset
	movq	%rbx, %rdi
	callq	_USEFETCH
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sqlite3OsUnfetch
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGER_OPEN,8,3                 ## @PAGER_OPEN
	.comm	_PAGER_READER,8,3               ## @PAGER_READER
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_pagerBeginReadTransaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pagerBeginReadTransaction
_pagerBeginReadTransaction:             ; @pagerBeginReadTransaction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_pagerUseWal
	bl	_assert
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PAGER_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGER_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _PAGER_READER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGER_READER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19, #12]
	bl	_sqlite3WalEndReadTransaction
	ldr	w0, [x19, #12]
	add	x1, sp, #12
	bl	_sqlite3WalBeginReadTransaction
	mov	x20, x0
Lloh6:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	cmp	w0, w8
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_pager_reset
	mov	x0, x19
	bl	_USEFETCH
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #0
	bl	_sqlite3OsUnfetch
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGER_OPEN,8,3                 ; @PAGER_OPEN
	.comm	_PAGER_READER,8,3               ; @PAGER_READER
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_pagerBeginReadTransaction
.subsections_via_symbols
