	.file	"extr_sqlite3.c_openSubJournal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	openSubJournal, @function
openSubJournal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 8[rdi]
	mov	r12d, DWORD PTR SQLITE_OK[rip]
	call	isOpen@PLT
	test	eax, eax
	jne	.L1
	mov	ecx, DWORD PTR SQLITE_OPEN_SUBJOURNAL[rip]
	mov	rax, QWORD PTR PAGER_JOURNALMODE_MEMORY[rip]
	mov	r8d, -1
	or	ecx, DWORD PTR SQLITE_OPEN_READWRITE[rip]
	or	ecx, DWORD PTR SQLITE_OPEN_CREATE[rip]
	or	ecx, DWORD PTR SQLITE_OPEN_EXCLUSIVE[rip]
	or	ecx, DWORD PTR SQLITE_OPEN_DELETEONCLOSE[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L3
	cmp	QWORD PTR 16[rbx], 0
	cmove	r8d, DWORD PTR sqlite3Config[rip]
.L3:
	mov	edx, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	sqlite3JournalOpen@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	openSubJournal, .-openSubJournal
	.comm	sqlite3Config,4,4
	.comm	SQLITE_OPEN_SUBJOURNAL,4,4
	.comm	SQLITE_OPEN_READWRITE,4,4
	.comm	SQLITE_OPEN_EXCLUSIVE,4,4
	.comm	SQLITE_OPEN_DELETEONCLOSE,4,4
	.comm	SQLITE_OPEN_CREATE,4,4
	.comm	SQLITE_OK,4,4
	.comm	PAGER_JOURNALMODE_MEMORY,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_openSubJournal.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	openSubJournal, %function
openSubJournal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L8
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r0, [r0, #4]
	ldr	r5, [r3]
	bl	isOpen
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L8+4
	ldr	r2, .L8+8
	ldr	r0, .L8+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	ip, .L8+16
	ldr	r1, .L8+20
	orr	r3, r3, r2
	ldr	r2, .L8+24
	orr	r3, r3, r0
	ldr	ip, [ip]
	ldr	r1, [r1]
	ldr	r0, [r4]
	ldr	r2, [r2]
	orr	r3, r3, ip
	cmp	r0, r1
	orr	r3, r3, r2
	mvneq	r2, #0
	beq	.L3
	ldr	r1, [r4, #12]
	ldr	r2, .L8+28
	cmp	r1, #0
	ldr	r2, [r2]
	mvnne	r2, #0
.L3:
	str	r2, [sp]
	mov	r1, #0
	ldr	r2, [r4, #4]
	ldr	r0, [r4, #8]
	bl	sqlite3JournalOpen
	mov	r5, r0
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	.align	2
.L8:
	.word	SQLITE_OK
	.word	SQLITE_OPEN_SUBJOURNAL
	.word	SQLITE_OPEN_READWRITE
	.word	SQLITE_OPEN_CREATE
	.word	SQLITE_OPEN_EXCLUSIVE
	.word	PAGER_JOURNALMODE_MEMORY
	.word	SQLITE_OPEN_DELETEONCLOSE
	.word	sqlite3Config
	.size	openSubJournal, .-openSubJournal
	.comm	sqlite3Config,4,4
	.comm	SQLITE_OPEN_SUBJOURNAL,4,4
	.comm	SQLITE_OPEN_READWRITE,4,4
	.comm	SQLITE_OPEN_EXCLUSIVE,4,4
	.comm	SQLITE_OPEN_DELETEONCLOSE,4,4
	.comm	SQLITE_OPEN_CREATE,4,4
	.comm	SQLITE_OK,4,4
	.comm	PAGER_JOURNALMODE_MEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
