	.file	"extr_sqlite3.c_memjrnlCreateFile.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	memjrnlCreateFile, @function
memjrnlCreateFile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	esi, esi
	mov	edx, 40
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	movdqu	xmm0, XMMWORD PTR [rdi]
	movdqu	xmm1, XMMWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 32[rdi]
	movaps	XMMWORD PTR [rsp], xmm0
	movaps	XMMWORD PTR 16[rsp], xmm1
	mov	QWORD PTR 32[rsp], rax
	call	memset@PLT
	mov	ecx, DWORD PTR 24[rsp]
	mov	esi, DWORD PTR 28[rsp]
	xor	r8d, r8d
	mov	edi, DWORD PTR 32[rsp]
	mov	rdx, rbp
	call	sqlite3OsOpen@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	mov	r12d, eax
	je	.L16
.L8:
	mov	rdi, rbp
	call	sqlite3OsClose@PLT
	mov	rax, QWORD PTR 32[rsp]
	movdqa	xmm2, XMMWORD PTR [rsp]
	movdqa	xmm3, XMMWORD PTR 16[rsp]
	mov	QWORD PTR 32[rbp], rax
	movups	XMMWORD PTR 0[rbp], xmm2
	movups	XMMWORD PTR 16[rbp], xmm3
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	r14, QWORD PTR 16[rsp]
	mov	r13d, DWORD PTR [rsp]
	test	r14, r14
	je	.L3
	xor	ebx, ebx
	movsx	rax, r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r14, QWORD PTR 8[r14]
	movsx	rax, r13d
	add	rbx, rax
	test	r14, r14
	je	.L5
.L6:
	mov	rdx, QWORD PTR 8[rsp]
	add	rax, rbx
	mov	rsi, QWORD PTR [r14]
	mov	rdi, rbp
	mov	ecx, edx
	sub	ecx, ebx
	cmp	rax, rdx
	cmovg	r13d, ecx
	mov	rcx, rbx
	mov	edx, r13d
	call	sqlite3OsWrite@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L18
.L5:
	cmp	DWORD PTR SQLITE_OK[rip], r12d
	jne	.L8
.L3:
	mov	rdi, rsp
	call	memjrnlFreeChunks@PLT
	cmp	DWORD PTR SQLITE_OK[rip], r12d
	je	.L1
	jmp	.L8
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	memjrnlCreateFile, .-memjrnlCreateFile
	.comm	SQLITE_OK,4,4
	.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_memjrnlCreateFile.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	memjrnlCreateFile, %function
memjrnlCreateFile:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	lr, r0
	mov	r7, r0
	ldmia	lr!, {r0, r1, r2, r3}
	mov	r4, #0
	sub	sp, sp, #44
	add	ip, sp, #12
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, .L19
	mov	r2, #24
	mov	r1, r4
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	memset
	ldr	r3, [sp, #24]
	mov	r2, r7
	ldr	r1, [sp, #28]
	ldr	r0, [sp, #32]
	str	r4, [sp]
	bl	sqlite3OsOpen
	ldr	r9, .L19+4
	mov	r6, r0
	ldr	r3, [r9]
	cmp	r3, r0
	beq	.L16
.L8:
	mov	r0, r7
	bl	sqlite3OsClose
	mov	ip, r7
	add	lr, sp, #12
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r6
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	ldr	r8, [sp, #20]
	ldr	r5, [sp, #12]
	cmp	r8, r4
	bne	.L6
	b	.L3
.L18:
	ldr	r8, [r8, #4]
	add	r4, r4, r5
	cmp	r8, #0
	beq	.L5
.L6:
	ldr	r3, [sp, #16]
	add	r2, r5, r4
	cmp	r2, r3
	subgt	r5, r3, r4
	mov	r2, r5
	mov	r3, r4
	mov	r0, r7
	ldr	r1, [r8]
	bl	sqlite3OsWrite
	subs	r6, r0, #0
	beq	.L18
.L5:
	ldr	r3, [r9]
	cmp	r3, r6
	bne	.L8
.L3:
	add	r0, sp, #12
	bl	memjrnlFreeChunks
	ldr	r3, [r9]
	cmp	r3, r6
	beq	.L1
	b	.L8
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	SQLITE_OK
	.size	memjrnlCreateFile, .-memjrnlCreateFile
	.comm	SQLITE_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
