	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pagerRollbackWal
_pagerRollbackWal:                      ## @pagerRollbackWal
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movl	8(%r14), %eax
	movl	%eax, 12(%r14)
	movq	_pagerUndoCallback@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_sqlite3WalUndo
	movl	%eax, %r15d
	movl	(%r14), %edi
	callq	_sqlite3PcacheDirtyList
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r15d
	jne	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movq	8(%rbx), %rbx
	movq	%r14, %rdi
	callq	_pagerUndoCallback
	movl	%eax, %r15d
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%r12), %r15d
	je	LBB0_3
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_pagerRollbackWal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pagerRollbackWal
_pagerRollbackWal:                      ; @pagerRollbackWal
	.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	x19, x0
	ldp	w0, w8, [x0, #4]
	str	w8, [x19, #12]
Lloh0:
	adrp	x1, _pagerUndoCallback@GOTPAGE
Lloh1:
	ldr	x1, [x1, _pagerUndoCallback@GOTPAGEOFF]
	mov	x2, x19
	bl	_sqlite3WalUndo
	mov	x20, x0
	ldr	w0, [x19]
	bl	_sqlite3PcacheDirtyList
Lloh2:
	adrp	x21, _SQLITE_OK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	x0, #0
	ccmp	w20, w8, #0, ne
	b.ne	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x0, #8]
	ldr	w1, [x0]
	mov	x0, x19
	bl	_pagerUndoCallback
	mov	x20, x0
	ldr	w8, [x21]
	cmp	x22, #0
	ccmp	w0, w8, #0, ne
	mov	x0, x22
	b.eq	LBB0_1
LBB0_2:
	mov	x0, x20
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_pagerRollbackWal
.subsections_via_symbols
