	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openSubJournal
_openSubJournal:                        ## @openSubJournal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	8(%rdi), %edi
	callq	_isOpen
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movq	_PAGER_JOURNALMODE_MEMORY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
LBB0_3:
	movl	8(%rbx), %edi
	callq	_sqlite3MemJournalOpen
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	8(%rbx), %esi
	movq	_SQLITE_OPEN_SUBJOURNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pagerOpentemp                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_PAGER_JOURNALMODE_MEMORY,8,3   ## @PAGER_JOURNALMODE_MEMORY
	.comm	_SQLITE_OPEN_SUBJOURNAL,4,2     ## @SQLITE_OPEN_SUBJOURNAL
	.no_dead_strip	_openSubJournal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openSubJournal
_openSubJournal:                        ; @openSubJournal
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w0, [x0, #8]
	bl	_isOpen
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _PAGER_JOURNALMODE_MEMORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGER_JOURNALMODE_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
LBB0_3:
	ldr	w0, [x20, #8]
	bl	_sqlite3MemJournalOpen
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w1, [x20, #8]
Lloh6:
	adrp	x8, _SQLITE_OPEN_SUBJOURNAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_OPEN_SUBJOURNAL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pagerOpentemp
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PAGER_JOURNALMODE_MEMORY,8,3   ; @PAGER_JOURNALMODE_MEMORY
	.comm	_SQLITE_OPEN_SUBJOURNAL,4,2     ; @SQLITE_OPEN_SUBJOURNAL
	.no_dead_strip	_openSubJournal
.subsections_via_symbols
