	.file	"extr_sqlite3.c_vdbeCommit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s-mjXXXXXX9XXz"
.LC1:
	.string	"MJ delete: %s"
.LC2:
	.string	"MJ collide: %s"
.LC3:
	.string	"-mj%06X9%02X"
	.text
	.p2align 4
	.type	vdbeCommit, @function
vdbeCommit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	sqlite3VtabSync@PLT
	cmp	eax, DWORD PTR SQLITE_OK[rip]
	mov	DWORD PTR 16[rsp], 0
	mov	r15d, eax
	je	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	add	r12, 1
	cmp	DWORD PTR SQLITE_OK[rip], r15d
	jne	.L1
.L2:
	mov	DWORD PTR 8[rsp], r12d
	cmp	DWORD PTR [r14], r12d
	jle	.L92
	mov	rax, QWORD PTR 16[r14]
	mov	rbx, r12
	sal	rbx, 4
	mov	rbp, QWORD PTR 8[rax+rbx]
	mov	rdi, rbp
	call	sqlite3BtreeIsInTrans@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	call	sqlite3BtreeEnter@PLT
	mov	rdi, rbp
	call	sqlite3BtreePager@PLT
	mov	rdx, QWORD PTR PAGER_SYNCHRONOUS_OFF[rip]
	mov	r13, rax
	mov	rax, QWORD PTR 16[r14]
	cmp	QWORD PTR [rax+rbx], rdx
	je	.L5
	mov	rdi, r13
	call	sqlite3PagerGetJournalMode@PLT
	lea	rcx, aMJNeeded.2048[rip]
	mov	esi, DWORD PTR [rcx+rax*4]
	test	esi, esi
	jne	.L93
.L5:
	mov	rdi, r13
	add	r12, 1
	mov	r13d, 1
	call	sqlite3PagerExclusiveLock@PLT
	mov	rdi, rbp
	mov	r15d, eax
	call	sqlite3BtreeLeave@PLT
	cmp	DWORD PTR SQLITE_OK[rip], r15d
	je	.L2
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L94
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L92:
	.cfi_restore_state
	test	r13d, r13d
	je	.L8
	mov	rax, QWORD PTR 8[r14]
	test	rax, rax
	je	.L8
	mov	edi, DWORD PTR 32[r14]
	call	rax
	mov	r15d, eax
	test	eax, eax
	jne	.L95
.L8:
	mov	rax, QWORD PTR 16[r14]
	mov	rdi, QWORD PTR 8[rax]
	call	sqlite3BtreeGetFilename@PLT
	mov	rdi, rax
	call	sqlite3Strlen30@PLT
	test	eax, eax
	je	.L50
	cmp	DWORD PTR 16[rsp], 1
	jg	.L9
.L50:
	xor	ebx, ebx
	cmp	r15d, DWORD PTR SQLITE_OK[rip]
	je	.L11
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR 16[r14]
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	je	.L13
	xor	esi, esi
	call	sqlite3BtreeCommitPhaseOne@PLT
	mov	r15d, eax
.L13:
	add	rbx, 1
	cmp	DWORD PTR SQLITE_OK[rip], r15d
	jne	.L1
.L11:
	mov	eax, DWORD PTR [r14]
	cmp	eax, ebx
	jg	.L14
	cmp	r15d, DWORD PTR SQLITE_OK[rip]
	jne	.L1
	xor	ebx, ebx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR 16[r14]
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	je	.L16
	xor	esi, esi
	call	sqlite3BtreeCommitPhaseTwo@PLT
	mov	r15d, eax
.L16:
	add	rbx, 1
	cmp	DWORD PTR SQLITE_OK[rip], r15d
	jne	.L1
	mov	eax, DWORD PTR [r14]
.L15:
	cmp	eax, ebx
	jg	.L17
	mov	rdi, r14
	call	sqlite3VtabCommit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L93:
	xor	edi, edi
	cmp	DWORD PTR 8[rsp], 1
	setne	dil
	call	assert@PLT
	add	DWORD PTR 16[rsp], 1
	jmp	.L5
.L9:
	mov	rax, QWORD PTR 16[r14]
	mov	r12, QWORD PTR 24[r14]
	mov	rdi, QWORD PTR 8[rax]
	call	sqlite3BtreeGetFilename@PLT
	mov	QWORD PTR 48[rsp], 0
	mov	rbx, rax
	mov	rdi, rax
	call	sqlite3Strlen30@PLT
	mov	rdx, rbx
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	mov	r13d, eax
	call	sqlite3MPrintf@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L19
	movsx	rax, r13d
	xor	r13d, r13d
	add	rax, rbp
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 44[rsp]
	mov	QWORD PTR 24[rsp], rax
	lea	rax, 40[rsp]
	mov	QWORD PTR 16[rsp], rax
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rsi, QWORD PTR 24[rsp]
	mov	edi, 4
	add	r13d, 1
	call	sqlite3_randomness@PLT
	mov	r8d, DWORD PTR 44[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	lea	rdx, .LC3[rip]
	mov	edi, 13
	mov	ecx, r8d
	movzx	r8d, r8b
	shr	ecx, 8
	call	sqlite3_snprintf@PLT
	mov	rdi, rbp
	call	sqlite3Strlen30@PLT
	xor	edi, edi
	cdqe
	cmp	BYTE PTR -3[rbp+rax], 57
	sete	dil
	call	assert@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	sqlite3FileSuffix3@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, rbp
	mov	rdi, r12
	mov	edx, DWORD PTR SQLITE_ACCESS_EXISTS[rip]
	call	sqlite3OsAccess@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r15d, eax
	jne	.L90
	mov	ecx, DWORD PTR 40[rsp]
	test	ecx, ecx
	je	.L28
	cmp	r13d, 101
	je	.L96
	cmp	r13d, 1
	jne	.L20
	mov	edi, DWORD PTR SQLITE_FULL[rip]
	mov	rdx, rbp
	lea	rsi, .LC2[rip]
	call	sqlite3_log@PLT
	jmp	.L20
.L95:
	mov	r15d, DWORD PTR SQLITE_CONSTRAINT_COMMITHOOK[rip]
	jmp	.L1
.L96:
	mov	edi, DWORD PTR SQLITE_FULL[rip]
	mov	rdx, rbp
	lea	rsi, .LC1[rip]
	call	sqlite3_log@PLT
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r12
	call	sqlite3OsDelete@PLT
	cmp	DWORD PTR SQLITE_OK[rip], r15d
	jne	.L90
.L28:
	mov	ecx, DWORD PTR SQLITE_OPEN_READWRITE[rip]
	xor	r8d, r8d
	mov	rsi, rbp
	mov	rdi, r12
	or	ecx, DWORD PTR SQLITE_OPEN_CREATE[rip]
	lea	rdx, 48[rsp]
	or	ecx, DWORD PTR SQLITE_OPEN_EXCLUSIVE[rip]
	or	ecx, DWORD PTR SQLITE_OPEN_MASTER_JOURNAL[rip]
	call	sqlite3OsOpenMalloc@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r15d, eax
	jne	.L90
	mov	edx, DWORD PTR [r14]
	mov	DWORD PTR 8[rsp], 0
	xor	ebx, ebx
	test	edx, edx
	jg	.L29
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L31:
	add	rbx, 1
	cmp	DWORD PTR [r14], ebx
	jle	.L30
.L29:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR 16[r14]
	mov	r13, QWORD PTR 8[rax]
	mov	rdi, r13
	call	sqlite3BtreeIsInTrans@PLT
	test	rax, rax
	je	.L31
	mov	rdi, r13
	call	sqlite3BtreeGetJournalname@PLT
	mov	r13, rax
	test	rax, rax
	je	.L31
	xor	edi, edi
	cmp	BYTE PTR [rax], 0
	setne	dil
	call	assert@PLT
	mov	rdi, r13
	call	sqlite3Strlen30@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 48[rsp]
	mov	rsi, r13
	lea	edx, 1[rax]
	call	sqlite3OsWrite@PLT
	mov	rdi, r13
	mov	r15d, eax
	call	sqlite3Strlen30@PLT
	mov	edx, DWORD PTR 8[rsp]
	cmp	DWORD PTR SQLITE_OK[rip], r15d
	lea	eax, 1[rdx+rax]
	mov	DWORD PTR 8[rsp], eax
	je	.L31
.L33:
	mov	rdi, QWORD PTR 48[rsp]
	call	sqlite3OsCloseFree@PLT
	mov	rsi, rbp
	mov	rdi, r12
	xor	edx, edx
	call	sqlite3OsDelete@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	sqlite3DbFree@PLT
	jmp	.L1
.L90:
	mov	rsi, rbp
	mov	rdi, r14
	call	sqlite3DbFree@PLT
	jmp	.L1
.L30:
	mov	rdi, QWORD PTR 48[rsp]
	call	sqlite3OsDeviceCharacteristics@PLT
	test	DWORD PTR SQLITE_IOCAP_SEQUENTIAL[rip], eax
	je	.L97
	cmp	DWORD PTR SQLITE_OK[rip], r15d
	jne	.L35
.L34:
	xor	ebx, ebx
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR 16[r14]
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	je	.L36
	mov	rsi, rbp
	call	sqlite3BtreeCommitPhaseOne@PLT
	mov	r15d, eax
.L36:
	add	rbx, 1
	cmp	DWORD PTR SQLITE_OK[rip], r15d
	jne	.L35
.L37:
	cmp	DWORD PTR [r14], ebx
	jg	.L38
.L35:
	mov	rdi, QWORD PTR 48[rsp]
	call	sqlite3OsCloseFree@PLT
	xor	edi, edi
	cmp	DWORD PTR SQLITE_BUSY[rip], r15d
	setne	dil
	call	assert@PLT
	cmp	DWORD PTR SQLITE_OK[rip], r15d
	jne	.L90
	mov	rsi, rbp
	mov	rdi, r12
	mov	edx, 1
	call	sqlite3OsDelete@PLT
	mov	rsi, rbp
	mov	rdi, r14
	mov	r15d, eax
	call	sqlite3DbFree@PLT
	test	r15d, r15d
	jne	.L1
	xor	eax, eax
	xor	ebx, ebx
	call	disable_simulated_io_errors@PLT
	xor	eax, eax
	call	sqlite3BeginBenignMalloc@PLT
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	jle	.L42
.L40:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR 16[r14]
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	je	.L41
	mov	esi, 1
	call	sqlite3BtreeCommitPhaseTwo@PLT
.L41:
	add	rbx, 1
	cmp	DWORD PTR [r14], ebx
	jg	.L40
.L42:
	xor	eax, eax
	call	sqlite3EndBenignMalloc@PLT
	xor	eax, eax
	call	enable_simulated_io_errors@PLT
	mov	rdi, r14
	call	sqlite3VtabCommit@PLT
	jmp	.L1
.L19:
	mov	r15d, DWORD PTR SQLITE_NOMEM_BKPT[rip]
	jmp	.L1
.L97:
	mov	esi, DWORD PTR SQLITE_SYNC_NORMAL[rip]
	mov	rdi, QWORD PTR 48[rsp]
	call	sqlite3OsSync@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r15d, eax
	je	.L34
	jmp	.L33
.L94:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vdbeCommit, .-vdbeCommit
	.section	.rodata
	.align 16
	.type	aMJNeeded.2048, @object
	.size	aMJNeeded.2048, 24
aMJNeeded.2048:
	.long	1
	.long	1
	.long	0
	.long	1
	.long	0
	.long	0
	.comm	SQLITE_SYNC_NORMAL,4,4
	.comm	SQLITE_OPEN_READWRITE,4,4
	.comm	SQLITE_OPEN_MASTER_JOURNAL,4,4
	.comm	SQLITE_OPEN_EXCLUSIVE,4,4
	.comm	SQLITE_OPEN_CREATE,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM_BKPT,4,4
	.comm	SQLITE_IOCAP_SEQUENTIAL,4,4
	.comm	SQLITE_FULL,4,4
	.comm	SQLITE_CONSTRAINT_COMMITHOOK,4,4
	.comm	SQLITE_BUSY,4,4
	.comm	SQLITE_ACCESS_EXISTS,4,4
	.comm	PAGER_SYNCHRONOUS_OFF,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_vdbeCommit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s-mjXXXXXX9XXz\000"
	.align	2
.LC1:
	.ascii	"MJ delete: %s\000"
	.align	2
.LC2:
	.ascii	"MJ collide: %s\000"
	.align	2
.LC3:
	.ascii	"-mj%06X9%02X\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdbeCommit, %function
vdbeCommit:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L96
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r4, r0
	bl	sqlite3VtabSync
	ldr	r5, .L96+4
	mov	r10, r0
	ldr	r2, [r5]
	cmp	r0, r2
	bne	.L1
	mov	r7, #0
	ldr	r9, .L96+8
	mov	r6, r7
	ldr	r8, .L96+12
	str	r7, [sp, #12]
	b	.L2
.L4:
	ldr	r3, [r5]
	add	r6, r6, #1
	cmp	r3, r10
	bne	.L1
.L2:
	ldr	r3, [r4]
	cmp	r3, r6
	ble	.L90
	ldr	r3, [r4, #8]
	add	r3, r3, r6, lsl #3
	ldr	fp, [r3, #4]
	mov	r0, fp
	bl	sqlite3BtreeIsInTrans
	cmp	r0, #0
	beq	.L4
	mov	r0, fp
	bl	sqlite3BtreeEnter
	mov	r0, fp
	bl	sqlite3BtreePager
	ldr	r2, [r4, #8]
	ldr	r3, [r9]
	ldr	r2, [r2, r6, lsl #3]
	mov	r7, r0
	cmp	r2, r3
	beq	.L5
	bl	sqlite3PagerGetJournalMode
	ldr	r3, [r8, r0, lsl #2]
	cmp	r3, #0
	bne	.L91
.L5:
	mov	r0, r7
	bl	sqlite3PagerExclusiveLock
	mov	r10, r0
	mov	r0, fp
	bl	sqlite3BtreeLeave
	ldr	r3, [r5]
	mov	r7, #1
	cmp	r3, r10
	add	r6, r6, #1
	beq	.L2
.L1:
	ldr	r3, .L96
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L92
	mov	r0, r10
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L90:
	cmp	r7, #0
	beq	.L8
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L8
	ldr	r0, [r4, #16]
	blx	r2
	subs	r10, r0, #0
	bne	.L93
.L8:
	ldr	r2, [r4, #8]
	ldr	r0, [r2, #4]
	bl	sqlite3BtreeGetFilename
	bl	sqlite3Strlen30
	ldr	r3, [sp, #12]
	cmp	r3, #1
	movgt	r6, #0
	movle	r6, #1
	cmp	r0, #0
	moveq	r6, #1
	cmp	r6, #0
	beq	.L9
	ldr	r2, [r5]
	cmp	r10, r2
	moveq	r6, #0
	beq	.L10
	b	.L1
.L13:
	ldr	r3, [r4, #8]
	add	r3, r3, r6, lsl #3
	ldr	r0, [r3, #4]
	cmp	r0, #0
	beq	.L12
	mov	r1, #0
	bl	sqlite3BtreeCommitPhaseOne
	mov	r10, r0
.L12:
	ldr	r3, [r5]
	add	r6, r6, #1
	cmp	r3, r10
	bne	.L1
.L10:
	ldr	r2, [r4]
	cmp	r2, r6
	bgt	.L13
	ldr	r1, [r5]
	cmp	r10, r1
	moveq	r6, #0
	beq	.L14
	b	.L1
.L16:
	ldr	r3, [r4, #8]
	add	r3, r3, r6, lsl #3
	ldr	r0, [r3, #4]
	cmp	r0, #0
	beq	.L15
	mov	r1, #0
	bl	sqlite3BtreeCommitPhaseTwo
	mov	r10, r0
.L15:
	ldr	r3, [r5]
	add	r6, r6, #1
	cmp	r3, r10
	bne	.L1
	ldr	r2, [r4]
.L14:
	cmp	r2, r6
	bgt	.L16
	mov	r0, r4
	bl	sqlite3VtabCommit
	b	.L1
.L91:
	subs	r0, r6, #1
	movne	r0, #1
	bl	assert
	ldr	r3, [sp, #12]
	add	r3, r3, #1
	str	r3, [sp, #12]
	b	.L5
.L93:
	ldr	r3, .L96+16
	ldr	r10, [r3]
	b	.L1
.L9:
	ldr	r3, [r4, #8]
	ldr	r10, [r4, #12]
	ldr	r0, [r3, #4]
	str	r10, [sp, #12]
	bl	sqlite3BtreeGetFilename
	str	r6, [sp, #16]
	mov	r9, r0
	bl	sqlite3Strlen30
	mov	r2, r9
	mov	r8, r0
	ldr	r1, .L96+20
	mov	r0, r4
	bl	sqlite3MPrintf
	subs	r7, r0, #0
	beq	.L18
	ldr	fp, .L96+24
	add	r8, r7, r8
.L19:
	add	r1, sp, #24
	mov	r0, #4
	bl	sqlite3_randomness
	ldr	r3, [sp, #24]
	mov	r2, fp
	and	r1, r3, #255
	str	r1, [sp]
	lsr	r3, r3, #8
	mov	r1, r8
	mov	r0, #13
	bl	sqlite3_snprintf
	mov	r0, r7
	bl	sqlite3Strlen30
	add	r0, r7, r0
	ldrb	r0, [r0, #-3]	@ zero_extendqisi2
	add	r6, r6, #1
	sub	r0, r0, #57
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r1, r7
	mov	r0, r9
	bl	sqlite3FileSuffix3
	ldr	r2, .L96+28
	add	r3, sp, #20
	mov	r1, r7
	mov	r0, r10
	ldr	r2, [r2]
	bl	sqlite3OsAccess
	ldr	r3, [r5]
	cmp	r3, r0
	bne	.L86
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L27
	cmp	r6, #101
	beq	.L94
	cmp	r6, #1
	bne	.L19
	ldr	r3, .L96+32
	mov	r2, r7
	ldr	r1, .L96+36
	ldr	r0, [r3]
	bl	sqlite3_log
	b	.L19
.L94:
	mov	r10, r0
	ldr	r1, .L96+32
	mov	r2, r7
	ldr	r0, [r1]
	ldr	r1, .L96+40
	bl	sqlite3_log
	mov	r2, #0
	mov	r1, r7
	ldr	r0, [sp, #12]
	bl	sqlite3OsDelete
	ldr	r2, [r5]
	cmp	r2, r10
	bne	.L88
.L27:
	mov	r8, #0
	ldr	r2, .L96+44
	ldr	r3, .L96+48
	ldr	r1, .L96+52
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r2, .L96+56
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r0
	orr	r3, r3, r1
	orr	r3, r3, r2
	mov	r1, r7
	add	r2, sp, #16
	ldr	r0, [sp, #12]
	str	r8, [sp]
	bl	sqlite3OsOpenMalloc
	ldr	r2, [r5]
	mov	r10, r0
	cmp	r2, r0
	bne	.L88
	ldr	r2, [r4]
	cmp	r2, #0
	movgt	r6, r8
	bgt	.L28
	b	.L29
.L30:
	ldr	r3, [r4]
	add	r6, r6, #1
	cmp	r3, r6
	ble	.L29
.L28:
	ldr	r3, [r4, #8]
	add	r3, r3, r6, lsl #3
	ldr	r9, [r3, #4]
	mov	r0, r9
	bl	sqlite3BtreeIsInTrans
	cmp	r0, #0
	beq	.L30
	mov	r0, r9
	bl	sqlite3BtreeGetJournalname
	subs	r9, r0, #0
	beq	.L30
	ldrb	r0, [r9]	@ zero_extendqisi2
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	mov	r0, r9
	ldr	r10, [sp, #16]
	bl	sqlite3Strlen30
	mov	r3, r8
	add	r2, r0, #1
	mov	r1, r9
	mov	r0, r10
	bl	sqlite3OsWrite
	mov	r10, r0
	mov	r0, r9
	bl	sqlite3Strlen30
	ldr	r3, [r5]
	add	r0, r0, #1
	cmp	r3, r10
	add	r8, r8, r0
	beq	.L30
	ldr	r0, [sp, #16]
	bl	sqlite3OsCloseFree
	mov	r1, r7
	mov	r2, #0
	ldr	r0, [sp, #12]
	bl	sqlite3OsDelete
	mov	r1, r7
	mov	r0, r4
	bl	sqlite3DbFree
	b	.L1
.L86:
	mov	r10, r0
.L88:
	mov	r1, r7
	mov	r0, r4
	bl	sqlite3DbFree
	b	.L1
.L29:
	ldr	r0, [sp, #16]
	bl	sqlite3OsDeviceCharacteristics
	ldr	r2, .L96+60
	ldr	r6, [r2]
	ands	r6, r0, r6
	beq	.L95
	ldr	r2, [r5]
	cmp	r2, r10
	bne	.L34
.L33:
	mov	r6, #0
	b	.L36
.L37:
	ldr	r3, [r4, #8]
	add	r3, r3, r6, lsl #3
	ldr	r0, [r3, #4]
	cmp	r0, #0
	beq	.L35
	mov	r1, r7
	bl	sqlite3BtreeCommitPhaseOne
	mov	r10, r0
.L35:
	ldr	r3, [r5]
	add	r6, r6, #1
	cmp	r3, r10
	bne	.L34
.L36:
	ldr	r3, [r4]
	cmp	r3, r6
	bgt	.L37
.L34:
	ldr	r0, [sp, #16]
	bl	sqlite3OsCloseFree
	ldr	r2, .L96+64
	ldr	r0, [r2]
	subs	r0, r0, r10
	movne	r0, #1
	bl	assert
	ldr	r2, [r5]
	cmp	r2, r10
	bne	.L88
	mov	r2, #1
	mov	r1, r7
	ldr	r0, [sp, #12]
	bl	sqlite3OsDelete
	mov	r10, r0
	mov	r1, r7
	mov	r0, r4
	bl	sqlite3DbFree
	cmp	r10, #0
	bne	.L1
	bl	disable_simulated_io_errors
	bl	sqlite3BeginBenignMalloc
	ldr	r1, [r4]
	cmp	r1, #0
	movgt	r5, r10
	ble	.L41
.L39:
	ldr	r3, [r4, #8]
	add	r3, r3, r5, lsl #3
	ldr	r0, [r3, #4]
	cmp	r0, #0
	beq	.L40
	mov	r1, #1
	bl	sqlite3BtreeCommitPhaseTwo
	ldr	r1, [r4]
.L40:
	add	r5, r5, #1
	cmp	r1, r5
	bgt	.L39
.L41:
	bl	sqlite3EndBenignMalloc
	bl	enable_simulated_io_errors
	mov	r0, r4
	bl	sqlite3VtabCommit
	b	.L1
.L18:
	ldr	r3, .L96+68
	ldr	r10, [r3]
	b	.L1
.L95:
	ldr	r3, .L96+72
	ldr	r0, [sp, #16]
	ldr	r1, [r3]
	bl	sqlite3OsSync
	ldr	r2, [r5]
	mov	r10, r0
	cmp	r2, r0
	beq	.L33
	ldr	r0, [sp, #16]
	bl	sqlite3OsCloseFree
	mov	r1, r7
	mov	r2, r6
	ldr	r0, [sp, #12]
	bl	sqlite3OsDelete
	mov	r1, r7
	mov	r0, r4
	bl	sqlite3DbFree
	b	.L1
.L92:
	bl	__stack_chk_fail
.L97:
	.align	2
.L96:
	.word	.LC4
	.word	SQLITE_OK
	.word	PAGER_SYNCHRONOUS_OFF
	.word	.LANCHOR0
	.word	SQLITE_CONSTRAINT_COMMITHOOK
	.word	.LC0
	.word	.LC3
	.word	SQLITE_ACCESS_EXISTS
	.word	SQLITE_FULL
	.word	.LC2
	.word	.LC1
	.word	SQLITE_OPEN_CREATE
	.word	SQLITE_OPEN_READWRITE
	.word	SQLITE_OPEN_EXCLUSIVE
	.word	SQLITE_OPEN_MASTER_JOURNAL
	.word	SQLITE_IOCAP_SEQUENTIAL
	.word	SQLITE_BUSY
	.word	SQLITE_NOMEM_BKPT
	.word	SQLITE_SYNC_NORMAL
	.size	vdbeCommit, .-vdbeCommit
	.comm	SQLITE_SYNC_NORMAL,4,4
	.comm	SQLITE_OPEN_READWRITE,4,4
	.comm	SQLITE_OPEN_MASTER_JOURNAL,4,4
	.comm	SQLITE_OPEN_EXCLUSIVE,4,4
	.comm	SQLITE_OPEN_CREATE,4,4
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM_BKPT,4,4
	.comm	SQLITE_IOCAP_SEQUENTIAL,4,4
	.comm	SQLITE_FULL,4,4
	.comm	SQLITE_CONSTRAINT_COMMITHOOK,4,4
	.comm	SQLITE_BUSY,4,4
	.comm	SQLITE_ACCESS_EXISTS,4,4
	.comm	PAGER_SYNCHRONOUS_OFF,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	aMJNeeded.4332, %object
	.size	aMJNeeded.4332, 24
aMJNeeded.4332:
	.word	1
	.word	1
	.word	0
	.word	1
	.word	0
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
