	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pager_incr_changecounter
_pager_incr_changecounter:              ## @pager_incr_changecounter
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	movq	(%rdi), %rax
	movq	_PAGER_WRITER_CACHEMOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_PAGER_WRITER_DBMOD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	(%r12), %r14d
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	%r15, %rdi
	callq	_assert_pager_state
	movl	%eax, %edi
	callq	_assert
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_assert
	movl	%ebx, %edi
	callq	_UNUSED_PARAMETER
	cmpl	$0, 8(%r15)
	jne	LBB0_9
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 16(%r15)
	setg	%dil
	callq	_ALWAYS
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, 56(%r15)
	jne	LBB0_4
## %bb.3:
	movl	52(%r15), %edi
	callq	_isOpen
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_4:
	callq	_assert
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_sqlite3PagerGet
	cmpq	$0, -40(%rbp)
	movl	%eax, %r14d
	sete	%al
	cmpl	(%r12), %r14d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	(%r12), %r14d
	sete	%dil
	callq	_ALWAYS
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rdi
	callq	_sqlite3PagerWrite
	movl	%eax, %r14d
LBB0_6:
	cmpl	(%r12), %r14d
	jne	LBB0_8
## %bb.7:
	movq	-40(%rbp), %rdi
	callq	_pager_write_changecounter
	movl	$1, 8(%r15)
LBB0_8:
	movq	-40(%rbp), %rdi
	callq	_sqlite3PagerUnref
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_PAGER_WRITER_CACHEMOD,8,3      ## @PAGER_WRITER_CACHEMOD
	.comm	_PAGER_WRITER_DBMOD,8,3         ## @PAGER_WRITER_DBMOD
	.comm	_DIRECT_MODE,8,3                ## @DIRECT_MODE
	.comm	_PAGER_STAT_WRITE,8,3           ## @PAGER_STAT_WRITE
	.comm	_SQLITE_NOMEM_BKPT,4,2          ## @SQLITE_NOMEM_BKPT
	.no_dead_strip	_pager_incr_changecounter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pager_incr_changecounter
_pager_incr_changecounter:              ; @pager_incr_changecounter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SQLITE_OK@GOTPAGEOFF]
	ldr	w20, [x22]
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _PAGER_WRITER_CACHEMOD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PAGER_WRITER_CACHEMOD@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh5:
	adrp	x9, _PAGER_WRITER_DBMOD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PAGER_WRITER_DBMOD@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_assert_pager_state
	bl	_assert
	cmp	w21, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	bl	_UNUSED_PARAMETER
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_10
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, gt
	bl	_ALWAYS
	cbz	x0, LBB0_10
; %bb.2:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #52]
	bl	_isOpen
	cmp	x0, #0
	cset	w0, ne
LBB0_5:
	bl	_assert
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	mov	w3, #0
	bl	_sqlite3PagerGet
	mov	x20, x0
	ldr	x8, [sp, #8]
	cmp	x8, #0
	ldr	w8, [x22]
	ccmp	w0, w8, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w8, [x22]
	cmp	w20, w8
	cset	w0, eq
	bl	_ALWAYS
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [sp, #8]
	bl	_sqlite3PagerWrite
	mov	x20, x0
LBB0_7:
	ldr	w8, [x22]
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.8:
	ldr	x0, [sp, #8]
	bl	_pager_write_changecounter
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_sqlite3PagerUnref
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PAGER_WRITER_CACHEMOD,8,3      ; @PAGER_WRITER_CACHEMOD
	.comm	_PAGER_WRITER_DBMOD,8,3         ; @PAGER_WRITER_DBMOD
	.comm	_DIRECT_MODE,8,3                ; @DIRECT_MODE
	.comm	_PAGER_STAT_WRITE,8,3           ; @PAGER_STAT_WRITE
	.comm	_SQLITE_NOMEM_BKPT,4,2          ; @SQLITE_NOMEM_BKPT
	.no_dead_strip	_pager_incr_changecounter
.subsections_via_symbols
