	.file	"extr_sqlite3.c_pager_incr_changecounter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pager_incr_changecounter, @function
pager_incr_changecounter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR SQLITE_OK[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR PAGER_WRITER_CACHEMOD[rip]
	mov	edi, 1
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR PAGER_WRITER_DBMOD[rip], rax
	sete	dil
.L2:
	call	assert@PLT
	mov	rdi, rbx
	call	assert_pager_state@PLT
	mov	edi, eax
	call	assert@PLT
	xor	edi, edi
	test	ebp, ebp
	sete	dil
	call	assert@PLT
	mov	edi, ebp
	call	UNUSED_PARAMETER@PLT
	mov	ebp, DWORD PTR 8[rbx]
	test	ebp, ebp
	je	.L20
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xor	edi, edi
	cmp	QWORD PTR 16[rbx], 0
	setg	dil
	call	ALWAYS@PLT
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR 56[rbx]
	test	eax, eax
	je	.L22
.L4:
	mov	edi, ebp
	call	assert@PLT
	mov	rdi, rbx
	mov	rdx, rsp
	mov	esi, 1
	call	sqlite3PagerGet@PLT
	cmp	QWORD PTR [rsp], 0
	mov	edi, 1
	mov	r12d, eax
	je	.L5
	xor	edi, edi
	cmp	DWORD PTR SQLITE_OK[rip], eax
	sete	dil
.L5:
	call	assert@PLT
	xor	edi, edi
	cmp	DWORD PTR SQLITE_OK[rip], r12d
	sete	dil
	call	ALWAYS@PLT
	test	rax, rax
	jne	.L23
.L6:
	cmp	DWORD PTR SQLITE_OK[rip], r12d
	mov	rdi, QWORD PTR [rsp]
	je	.L24
.L7:
	call	sqlite3PagerUnref@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR 52[rbx]
	xor	ebp, ebp
	call	isOpen@PLT
	test	rax, rax
	setne	bpl
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR [rsp]
	call	sqlite3PagerWrite@PLT
	mov	r12d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	call	pager_write_changecounter@PLT
	mov	DWORD PTR 8[rbx], 1
	mov	rdi, QWORD PTR [rsp]
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pager_incr_changecounter, .-pager_incr_changecounter
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM,4,4
	.comm	PAGER_WRITER_DBMOD,8,8
	.comm	PAGER_WRITER_CACHEMOD,8,8
	.comm	PAGER_STAT_WRITE,8,8
	.comm	DIRECT_MODE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sqlite3.c_pager_incr_changecounter.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pager_incr_changecounter, %function
pager_incr_changecounter:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L24
	ldr	r3, [r0]
	ldr	r2, [r2]
	sub	sp, sp, #12
	cmp	r3, r2
	ldr	r2, .L24+4
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldrne	r2, .L24+8
	mov	r5, r1
	ldrne	r0, [r2]
	ldr	r7, .L24+12
	subne	r0, r0, r3
	clzne	r0, r0
	moveq	r0, #1
	lsrne	r0, r0, #5
	ldr	r6, [r7]
	bl	assert
	mov	r0, r4
	bl	assert_pager_state
	bl	assert
	clz	r0, r5
	lsr	r0, r0, #5
	bl	assert
	mov	r0, r5
	bl	UNUSED_PARAMETER
	ldr	r5, [r4, #4]
	cmp	r5, #0
	beq	.L19
.L1:
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L19:
	ldr	r0, [r4, #8]
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	ALWAYS
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r4, #32]
	cmp	r3, #0
	beq	.L21
.L4:
	mov	r0, r5
	bl	assert
	mov	r2, sp
	mov	r1, #1
	mov	r0, r4
	bl	sqlite3PagerGet
	mov	r6, r0
	ldr	r3, [sp]
	cmp	r3, #0
	ldrne	r0, [r7]
	moveq	r0, #1
	subne	r0, r0, r6
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	assert
	ldr	r0, [r7]
	sub	r0, r0, r6
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ALWAYS
	cmp	r0, #0
	bne	.L22
.L6:
	ldr	r3, [r7]
	ldr	r0, [sp]
	cmp	r3, r6
	beq	.L23
.L7:
	bl	sqlite3PagerUnref
	b	.L1
.L21:
	ldr	r0, [r4, #28]
	bl	isOpen
	subs	r5, r0, #0
	movne	r5, #1
	b	.L4
.L22:
	ldr	r0, [sp]
	bl	sqlite3PagerWrite
	mov	r6, r0
	b	.L6
.L23:
	bl	pager_write_changecounter
	mov	r3, #1
	ldr	r0, [sp]
	str	r3, [r4, #4]
	b	.L7
.L20:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	PAGER_WRITER_CACHEMOD
	.word	.LC0
	.word	PAGER_WRITER_DBMOD
	.word	SQLITE_OK
	.size	pager_incr_changecounter, .-pager_incr_changecounter
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM,4,4
	.comm	PAGER_WRITER_DBMOD,4,4
	.comm	PAGER_WRITER_CACHEMOD,4,4
	.comm	PAGER_STAT_WRITE,4,4
	.comm	DIRECT_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
