	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pagerUnlockAndRollback
_pagerUnlockAndRollback:                ## @pagerUnlockAndRollback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PAGER_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	_PAGER_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_assert_pager_state
	movl	%eax, %edi
	callq	_assert
	movq	(%rbx), %rax
	movq	_PAGER_WRITER_LOCKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.4:
	cmpl	$0, 8(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_PAGER_READER@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pager_end_transaction
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	callq	_sqlite3BeginBenignMalloc
	movq	%rbx, %rdi
	callq	_sqlite3PagerRollback
	xorl	%eax, %eax
	callq	_sqlite3EndBenignMalloc
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pager_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGER_ERROR,8,3                ## @PAGER_ERROR
	.comm	_PAGER_OPEN,8,3                 ## @PAGER_OPEN
	.comm	_PAGER_WRITER_LOCKED,8,3        ## @PAGER_WRITER_LOCKED
	.comm	_PAGER_READER,8,3               ## @PAGER_READER
	.no_dead_strip	_pagerUnlockAndRollback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pagerUnlockAndRollback
_pagerUnlockAndRollback:                ; @pagerUnlockAndRollback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PAGER_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGER_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PAGER_OPEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PAGER_OPEN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_assert_pager_state
	bl	_assert
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _PAGER_WRITER_LOCKED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGER_WRITER_LOCKED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
	ldr	w9, [x19, #8]
	cbnz	w9, LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, _PAGER_READER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PAGER_READER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_pager_end_transaction
	b	LBB0_5
LBB0_4:
	bl	_sqlite3BeginBenignMalloc
	mov	x0, x19
	bl	_sqlite3PagerRollback
	bl	_sqlite3EndBenignMalloc
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pager_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGER_ERROR,8,3                ; @PAGER_ERROR
	.comm	_PAGER_OPEN,8,3                 ; @PAGER_OPEN
	.comm	_PAGER_WRITER_LOCKED,8,3        ; @PAGER_WRITER_LOCKED
	.comm	_PAGER_READER,8,3               ; @PAGER_READER
	.no_dead_strip	_pagerUnlockAndRollback
.subsections_via_symbols
