	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pager_playback
_pager_playback:                        ## @pager_playback
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	48(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -48(%rbp)
	movl	$1, -64(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -76(%rbp)
	movl	56(%rdi), %edi
	callq	_isOpen
	movl	%eax, %edi
	callq	_assert
	movl	56(%r12), %edi
	leaq	-72(%rbp), %rsi
	callq	_sqlite3OsFileSize
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	xorl	%r15d, %r15d
	cmpl	%eax, %ebx
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	jne	LBB0_39
## %bb.1:
	movq	8(%r12), %r15
	movq	48(%r12), %rax
	movl	56(%r12), %edi
	movq	(%rax), %rdx
	incq	%rdx
	movq	%r15, %rsi
	callq	_readMasterJournal
	movl	%eax, %ebx
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.2:
	cmpb	$0, (%r15)
	movl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movq	_SQLITE_ACCESS_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_sqlite3OsAccess
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	cmpl	%eax, %ebx
	jne	LBB0_5
## %bb.6:
	cmpl	$0, -64(%rbp)
	movl	$0, %r15d
	je	LBB0_39
## %bb.7:
	movq	$0, 16(%r12)
	movq	-72(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_readJournalHdr
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jne	LBB0_8
## %bb.10:
	leaq	16(%r12), %r13
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r15d, %r15d
	movl	-60(%rbp), %r14d                ## 4-byte Reload
LBB0_36:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_readJournalHdr
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jne	LBB0_37
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
	movl	-44(%rbp), %eax
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	orl	%r14d, %eax
	jne	LBB0_22
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r12), %rbx
	movq	%r12, %rdi
	callq	_JOURNAL_HDR_SZ
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_assert
	movq	-72(%rbp), %rbx
	movq	%r12, %rdi
	callq	_JOURNAL_HDR_SZ
	subq	%rax, %rbx
	movq	%r12, %rdi
	callq	_JOURNAL_PG_SZ
	movq	%rax, %rcx
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, -44(%rbp)
	orl	%r14d, %eax
	jne	LBB0_22
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	24(%r12), %rbx
	movq	%r12, %rdi
	callq	_JOURNAL_HDR_SZ
	addq	%rbx, %rax
	cmpq	16(%r12), %rax
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rbx
	subq	%rax, %rbx
	movq	%r12, %rdi
	callq	_JOURNAL_PG_SZ
	movq	%rax, %rcx
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, -44(%rbp)
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r12), %rbx
	movq	%r12, %rdi
	callq	_JOURNAL_HDR_SZ
	cmpq	%rax, %rbx
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-48(%rbp), %esi
	movq	%r12, %rdi
	callq	_pager_truncate
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-48(%rbp), %eax
	movl	%eax, 72(%r12)
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, -44(%rbp)
	jle	LBB0_36
## %bb.27:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r15d, %r15d
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	movq	%r12, %rdi
	callq	_pager_reset
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=2
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_pager_playback_one_page
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jne	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=2
	incl	%r14d
	xorl	%r15d, %r15d
	cmpl	-44(%rbp), %r14d
	jl	LBB0_28
## %bb.32:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	%r14d, -56(%rbp)                ## 4-byte Folded Spill
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_SQLITE_DONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_38
## %bb.34:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	%r14d, -56(%rbp)                ## 4-byte Folded Spill
	movq	-72(%rbp), %rax
	movq	%rax, (%r13)
	jmp	LBB0_35
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_39
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_37:
	movl	-56(%rbp), %r15d                ## 4-byte Reload
LBB0_9:
	movq	_SQLITE_DONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	cmovel	%eax, %ebx
LBB0_39:
	cmpl	%eax, %ebx
	jne	LBB0_41
## %bb.40:
	leaq	-76(%rbp), %rsi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_sqlite3PagerSetPagesize
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_41:
	movl	60(%r12), %ecx
	movl	%ecx, 64(%r12)
	cmpl	%eax, %ebx
	jne	LBB0_42
## %bb.43:
	movq	8(%r12), %r13
	movq	48(%r12), %rax
	movl	56(%r12), %edi
	movq	(%rax), %rdx
	incq	%rdx
	movq	%r13, %rsi
	callq	_readMasterJournal
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	_SQLITE_OK@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	setne	%dil
	callq	_testcase
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	je	LBB0_45
LBB0_48:
	cmpl	%eax, %ebx
	je	LBB0_49
	jmp	LBB0_50
LBB0_42:
	xorl	%r13d, %r13d
	cmpl	%eax, %ebx
	jne	LBB0_48
LBB0_45:
	movq	32(%r12), %rax
	movq	_PAGER_WRITER_DBMOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_47
## %bb.46:
	movq	_PAGER_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_49
LBB0_47:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_sqlite3PagerSync
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jne	LBB0_50
LBB0_49:
	xorl	%esi, %esi
	cmpb	$0, (%r13)
	setne	%sil
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_pager_end_transaction
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	_SQLITE_OK@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	setne	%dil
	callq	_testcase
	movl	(%r14), %eax
LBB0_50:
	cmpl	%eax, %ebx
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_55
## %bb.51:
	cmpb	$0, (%r13)
	je	LBB0_52
## %bb.53:
	cmpl	$0, -64(%rbp)
	movl	%eax, %ebx
	je	LBB0_55
## %bb.54:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_pager_delmaster
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	setne	%dil
	callq	_testcase
LBB0_55:
	testl	%r14d, %r14d
	je	LBB0_58
LBB0_56:
	testl	%r15d, %r15d
	je	LBB0_58
## %bb.57:
	movq	_SQLITE_NOTICE_RECOVER_ROLLBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_sqlite3_log
LBB0_58:
	movq	%r12, %rdi
	callq	_setSectorSize
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	movl	%eax, %ebx
	testl	%r14d, %r14d
	jne	LBB0_56
	jmp	LBB0_58
LBB0_24:
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_39
LBB0_38:
	movq	_SQLITE_IOERR_SHORT_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	cmovel	%eax, %ebx
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	addl	%r14d, %r15d
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_ACCESS_EXISTS,4,2       ## @SQLITE_ACCESS_EXISTS
	.comm	_SQLITE_DONE,4,2                ## @SQLITE_DONE
	.comm	_SQLITE_IOERR_SHORT_READ,4,2    ## @SQLITE_IOERR_SHORT_READ
	.comm	_PAGER_WRITER_DBMOD,8,3         ## @PAGER_WRITER_DBMOD
	.comm	_PAGER_OPEN,8,3                 ## @PAGER_OPEN
	.comm	_SQLITE_NOTICE_RECOVER_ROLLBACK,4,2 ## @SQLITE_NOTICE_RECOVER_ROLLBACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recovered %d pages from %s"

	.comm	_SQLITE_FCNTL_DB_UNCHANGED,4,2  ## @SQLITE_FCNTL_DB_UNCHANGED
	.no_dead_strip	_pager_playback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pager_playback
_pager_playback:                        ; @pager_playback
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #48]
	mov	w8, #1
	stp	w8, wzr, [sp, #12]
	ldr	w8, [x0]
	str	w8, [sp, #8]
	ldr	w0, [x0, #56]
	bl	_isOpen
	bl	_assert
	ldr	w0, [x19, #56]
	add	x1, sp, #24
	bl	_sqlite3OsFileSize
Lloh0:
	adrp	x24, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_25
; %bb.1:
	ldr	x22, [x19, #8]
	ldr	w0, [x19, #56]
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	add	x2, x8, #1
	mov	x1, x22
	bl	_readMasterJournal
	mov	x23, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	ldrb	w9, [x22]
	mov	x8, x23
	cbz	w9, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _SQLITE_ACCESS_EXISTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_ACCESS_EXISTS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_sqlite3OsAccess
	mov	x23, x0
	ldr	w8, [x24]
LBB0_4:
	ldr	w9, [sp, #12]
	cmp	w23, w8
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_26
; %bb.5:
	mov	x22, x19
	str	xzr, [x22, #16]!
	ldr	x2, [sp, #24]
	add	x3, sp, #20
	add	x4, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_readJournalHdr
	ldr	w8, [x24]
Lloh5:
	adrp	x25, _SQLITE_DONE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SQLITE_DONE@GOTPAGEOFF]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.6:
	mov	w21, #0
	mov	x26, x20
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x2, [sp, #24]
	add	x3, sp, #20
	add	x4, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_readJournalHdr
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_28
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldr	w8, [sp, #20]
	cmn	w8, #1
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	orr	w8, w8, w20
	cbnz	w8, LBB0_13
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x23, [x19, #16]
	mov	x0, x19
	bl	_JOURNAL_HDR_SZ
	cmp	x23, x0
	cset	w0, eq
	bl	_assert
	ldr	x23, [sp, #24]
	mov	x0, x19
	bl	_JOURNAL_HDR_SZ
	sub	x23, x23, x0
	mov	x0, x19
	bl	_JOURNAL_PG_SZ
	sdiv	x8, x23, x0
	str	w8, [sp, #20]
	orr	w8, w8, w20
	cbnz	w8, LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x23, [x19, #24]
	mov	x0, x19
	bl	_JOURNAL_HDR_SZ
	ldr	x9, [x19, #16]
	add	x8, x0, x23
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [sp, #24]
	sub	x23, x9, x8
	mov	x0, x19
	bl	_JOURNAL_PG_SZ
	sdiv	x8, x23, x0
	str	w8, [sp, #20]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x23, [x19, #16]
	mov	x0, x19
	bl	_JOURNAL_HDR_SZ
	cmp	x23, x0
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [sp, #16]
	mov	x0, x19
	bl	_pager_truncate
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_47
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #16]
	str	w8, [x19, #72]
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w23, #0
LBB0_18:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w26, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x19
	bl	_pager_reset
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	bl	_pager_playback_one_page
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	w26, #0
	add	w23, w23, #1
	ldr	w8, [sp, #20]
	cmp	w23, w8
	b.lt	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w26, #0
	add	w21, w21, w23
	b	LBB0_7
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x25]
	add	w21, w21, w23
	cmp	w0, w9
	b.ne	LBB0_48
; %bb.24:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w26, #0
	ldr	x8, [sp, #24]
	str	x8, [x22]
	b	LBB0_7
LBB0_25:
	mov	x23, x0
LBB0_26:
	mov	w21, #0
	cmp	w23, w8
	b.eq	LBB0_30
	b	LBB0_31
LBB0_27:
	mov	w21, #0
LBB0_28:
	ldr	w9, [x25]
LBB0_29:
	cmp	w0, w9
	csel	w23, w8, w0, eq
	cmp	w23, w8
	b.ne	LBB0_31
LBB0_30:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #-1
	bl	_sqlite3PagerSetPagesize
	mov	x23, x0
	ldr	w8, [x24]
LBB0_31:
	ldr	w9, [x19, #60]
	str	w9, [x19, #64]
	cmp	w23, w8
	b.ne	LBB0_35
; %bb.32:
	ldr	x22, [x19, #8]
	ldr	w0, [x19, #56]
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	add	x2, x8, #1
	mov	x1, x22
	bl	_readMasterJournal
	mov	x23, x0
	ldr	w8, [x24]
	cmp	w0, w8
	cset	w0, ne
	bl	_testcase
	ldr	w8, [x24]
	cmp	w23, w8
	b.eq	LBB0_36
LBB0_33:
	cmp	w23, w8
	b.eq	LBB0_38
LBB0_34:
	cmp	w23, w8
	b.eq	LBB0_39
	b	LBB0_42
LBB0_35:
	mov	x22, #0
	cmp	w23, w8
	b.ne	LBB0_33
LBB0_36:
	ldr	x8, [x19, #32]
Lloh7:
	adrp	x9, _PAGER_WRITER_DBMOD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PAGER_WRITER_DBMOD@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _PAGER_OPEN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PAGER_OPEN@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, lt
	b.ne	LBB0_38
; %bb.37:
	mov	x0, x19
	mov	w1, #0
	bl	_sqlite3PagerSync
	mov	x23, x0
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_34
LBB0_38:
	ldrb	w8, [x22]
	cmp	w8, #0
	cset	w1, ne
	mov	x0, x19
	mov	w2, #0
	bl	_pager_end_transaction
	mov	x23, x0
	ldr	w8, [x24]
	cmp	w0, w8
	cset	w0, ne
	bl	_testcase
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_42
LBB0_39:
	ldrb	w9, [x22]
	cbz	w9, LBB0_46
; %bb.40:
	ldr	w9, [sp, #12]
	mov	x23, x8
	cbz	w9, LBB0_42
; %bb.41:
	mov	x0, x19
	mov	x1, x22
	bl	_pager_delmaster
	mov	x23, x0
	ldr	w8, [x24]
	cmp	w0, w8
	cset	w0, ne
	bl	_testcase
LBB0_42:
	cbz	w20, LBB0_45
LBB0_43:
	cbz	w21, LBB0_45
; %bb.44:
Lloh13:
	adrp	x8, _SQLITE_NOTICE_RECOVER_ROLLBACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SQLITE_NOTICE_RECOVER_ROLLBACK@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w3, [x19, #40]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_sqlite3_log
LBB0_45:
	mov	x0, x19
	bl	_setSectorSize
	mov	x0, x23
	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
LBB0_46:
	mov	x23, x8
	cbnz	w20, LBB0_43
	b	LBB0_45
LBB0_47:
	mov	x23, x0
	cmp	w23, w8
	b.eq	LBB0_30
	b	LBB0_31
LBB0_48:
Lloh18:
	adrp	x9, _SQLITE_IOERR_SHORT_READ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SQLITE_IOERR_SHORT_READ@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	b	LBB0_29
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_ACCESS_EXISTS,4,2       ; @SQLITE_ACCESS_EXISTS
	.comm	_SQLITE_DONE,4,2                ; @SQLITE_DONE
	.comm	_SQLITE_IOERR_SHORT_READ,4,2    ; @SQLITE_IOERR_SHORT_READ
	.comm	_PAGER_WRITER_DBMOD,8,3         ; @PAGER_WRITER_DBMOD
	.comm	_PAGER_OPEN,8,3                 ; @PAGER_OPEN
	.comm	_SQLITE_NOTICE_RECOVER_ROLLBACK,4,2 ; @SQLITE_NOTICE_RECOVER_ROLLBACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recovered %d pages from %s"

	.comm	_SQLITE_FCNTL_DB_UNCHANGED,4,2  ; @SQLITE_FCNTL_DB_UNCHANGED
	.no_dead_strip	_pager_playback
.subsections_via_symbols
