	.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
	je	LBB0_1
## %bb.6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_SQLITE_OPEN_SUBJOURNAL@GOTPCREL(%rip), %rax
	movq	_SQLITE_OPEN_READWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SQLITE_OPEN_CREATE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SQLITE_OPEN_EXCLUSIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SQLITE_OPEN_DELETEONCLOSE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	(%rbx), %rax
	movq	_PAGER_JOURNALMODE_MEMORY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
LBB0_4:
	movl	$-1, %r8d
	jmp	LBB0_5
LBB0_3:
	movq	_sqlite3Config@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_5:
	movl	8(%rbx), %edx
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sqlite3JournalOpen             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_OPEN_SUBJOURNAL,4,2     ## @SQLITE_OPEN_SUBJOURNAL
	.comm	_SQLITE_OPEN_READWRITE,4,2      ## @SQLITE_OPEN_READWRITE
	.comm	_SQLITE_OPEN_CREATE,4,2         ## @SQLITE_OPEN_CREATE
	.comm	_SQLITE_OPEN_EXCLUSIVE,4,2      ## @SQLITE_OPEN_EXCLUSIVE
	.comm	_SQLITE_OPEN_DELETEONCLOSE,4,2  ## @SQLITE_OPEN_DELETEONCLOSE
	.comm	_sqlite3Config,4,2              ## @sqlite3Config
	.comm	_PAGER_JOURNALMODE_MEMORY,8,3   ## @PAGER_JOURNALMODE_MEMORY
	.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	x19, x0
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x0, #8]
	bl	_isOpen
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x8, _SQLITE_OPEN_SUBJOURNAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_OPEN_SUBJOURNAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SQLITE_OPEN_READWRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SQLITE_OPEN_READWRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _SQLITE_OPEN_CREATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SQLITE_OPEN_CREATE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _SQLITE_OPEN_EXCLUSIVE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SQLITE_OPEN_EXCLUSIVE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _SQLITE_OPEN_DELETEONCLOSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SQLITE_OPEN_DELETEONCLOSE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _PAGER_JOURNALMODE_MEMORY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PAGER_JOURNALMODE_MEMORY@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
LBB0_4:
	mov	w4, #-1
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x8, _sqlite3Config@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sqlite3Config@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
LBB0_6:
	ldp	w2, w0, [x19, #8]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sqlite3JournalOpen
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_OPEN_SUBJOURNAL,4,2     ; @SQLITE_OPEN_SUBJOURNAL
	.comm	_SQLITE_OPEN_READWRITE,4,2      ; @SQLITE_OPEN_READWRITE
	.comm	_SQLITE_OPEN_CREATE,4,2         ; @SQLITE_OPEN_CREATE
	.comm	_SQLITE_OPEN_EXCLUSIVE,4,2      ; @SQLITE_OPEN_EXCLUSIVE
	.comm	_SQLITE_OPEN_DELETEONCLOSE,4,2  ; @SQLITE_OPEN_DELETEONCLOSE
	.comm	_sqlite3Config,4,2              ; @sqlite3Config
	.comm	_PAGER_JOURNALMODE_MEMORY,8,3   ; @PAGER_JOURNALMODE_MEMORY
	.no_dead_strip	_openSubJournal
.subsections_via_symbols
