	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hasHotJournal
_hasHotJournal:                         ## @hasHotJournal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	40(%rdi), %r13
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$1, -48(%rbp)
	movl	24(%rdi), %edi
	callq	_isOpen
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_assert
	movl	36(%rbx), %edi
	callq	_isOpen
	movl	%eax, %edi
	callq	_assert
	movq	8(%rbx), %rax
	movq	_PAGER_OPEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	testl	%r12d, %r12d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	callq	_sqlite3OsDeviceCharacteristics
	movq	_SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	setne	%dil
	callq	_assert
	movl	$0, (%r14)
	movb	$1, %al
	jmp	LBB0_3
LBB0_2:
	movl	$1, %edi
	callq	_assert
	movl	$0, (%r14)
	movl	28(%rbx), %esi
	movq	_SQLITE_ACCESS_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_sqlite3OsAccess
	movl	%eax, %r15d
	cmpl	$0, -48(%rbp)
	setne	%al
LBB0_3:
	movq	_SQLITE_OK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %r15d
	jne	LBB0_23
## %bb.4:
	testb	%al, %al
	je	LBB0_23
## %bb.5:
	movl	$0, -44(%rbp)
	movl	36(%rbx), %edi
	leaq	-44(%rbp), %rsi
	callq	_sqlite3OsCheckReservedLock
	movl	%eax, %r15d
	cmpl	(%r13), %eax
	jne	LBB0_23
## %bb.6:
	cmpl	$0, -44(%rbp)
	jne	LBB0_23
## %bb.7:
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	callq	_assert
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pagerPagecount
	movl	%eax, %r15d
	cmpl	(%r13), %eax
	jne	LBB0_23
## %bb.8:
	cmpq	$0, -80(%rbp)
	jne	LBB0_14
## %bb.9:
	testl	%r12d, %r12d
	jne	LBB0_14
## %bb.10:
	xorl	%eax, %eax
	callq	_sqlite3BeginBenignMalloc
	movq	_RESERVED_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pagerLockDb
	cmpl	(%r13), %eax
	jne	LBB0_13
## %bb.11:
	movl	28(%rbx), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_sqlite3OsDelete
	cmpl	$0, 32(%rbx)
	jne	LBB0_13
## %bb.12:
	movq	_SHARED_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pagerUnlockDb
LBB0_13:
	xorl	%eax, %eax
	callq	_sqlite3EndBenignMalloc
	jmp	LBB0_23
LBB0_14:
	testl	%r12d, %r12d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_16
## %bb.15:
	movq	_SQLITE_OPEN_READONLY@GOTPCREL(%rip), %rax
	movq	_SQLITE_OPEN_MAIN_JOURNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	leaq	-56(%rbp), %r8
	callq	_sqlite3OsOpen
	cmpl	(%r13), %eax
	jne	LBB0_21
LBB0_16:
	movq	$0, -56(%rbp)
	movl	24(%rbx), %edi
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3OsRead
	movl	%eax, %r15d
	movq	_SQLITE_IOERR_SHORT_READ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_18
## %bb.17:
	movl	(%r13), %r15d
LBB0_18:
	testl	%r12d, %r12d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_20
## %bb.19:
	movl	24(%rbx), %edi
	callq	_sqlite3OsClose
LBB0_20:
	xorl	%eax, %eax
	cmpq	$0, -56(%rbp)
	setne	%al
	movl	%eax, (%r14)
LBB0_23:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	%eax, %r15d
	movq	_SQLITE_CANTOPEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_23
## %bb.22:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r13), %r15d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_PAGER_OPEN,8,3                 ## @PAGER_OPEN
	.comm	_SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN,4,2 ## @SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN
	.comm	_SQLITE_ACCESS_EXISTS,4,2       ## @SQLITE_ACCESS_EXISTS
	.comm	_RESERVED_LOCK,4,2              ## @RESERVED_LOCK
	.comm	_SHARED_LOCK,4,2                ## @SHARED_LOCK
	.comm	_SQLITE_OPEN_READONLY,4,2       ## @SQLITE_OPEN_READONLY
	.comm	_SQLITE_OPEN_MAIN_JOURNAL,4,2   ## @SQLITE_OPEN_MAIN_JOURNAL
	.comm	_SQLITE_IOERR_SHORT_READ,4,2    ## @SQLITE_IOERR_SHORT_READ
	.comm	_SQLITE_CANTOPEN,4,2            ## @SQLITE_CANTOPEN
	.no_dead_strip	_hasHotJournal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hasHotJournal
_hasHotJournal:                         ; @hasHotJournal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #40]
Lloh0:
	adrp	x24, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SQLITE_OK@GOTPAGEOFF]
	ldr	w21, [x24]
	mov	w8, #1
	str	w8, [sp, #28]
	ldr	w0, [x0, #24]
	bl	_isOpen
	mov	x23, x0
	ldr	w0, [x19]
	bl	_assert
	ldr	w0, [x19, #36]
	bl	_isOpen
	bl	_assert
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _PAGER_OPEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PAGER_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	cbz	w23, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_sqlite3OsDeviceCharacteristics
Lloh5:
	adrp	x8, _SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	bl	_assert
	str	wzr, [x20]
	mov	w8, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_assert
	str	wzr, [x20]
	ldr	w1, [x19, #28]
Lloh8:
	adrp	x8, _SQLITE_ACCESS_EXISTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SQLITE_ACCESS_EXISTS@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	x0, x22
	bl	_sqlite3OsAccess
	mov	x21, x0
	ldr	w8, [sp, #28]
	cmp	w8, #0
	cset	w8, ne
LBB0_3:
	ldr	w9, [x24]
	cmp	w21, w9
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_5
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	str	wzr, [sp, #24]
	ldr	w0, [x19, #36]
	add	x1, sp, #24
	bl	_sqlite3OsCheckReservedLock
	mov	x21, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.6:
	ldr	w8, [sp, #24]
	cbnz	w8, LBB0_4
; %bb.7:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	add	x1, sp, #16
	mov	x0, x19
	bl	_pagerPagecount
	mov	x21, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.8:
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_14
; %bb.9:
	cbnz	w23, LBB0_14
; %bb.10:
	bl	_sqlite3BeginBenignMalloc
Lloh11:
	adrp	x8, _RESERVED_LOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RESERVED_LOCK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pagerLockDb
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.11:
	ldr	w1, [x19, #28]
	mov	x0, x22
	mov	w2, #0
	bl	_sqlite3OsDelete
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_13
; %bb.12:
Lloh14:
	adrp	x8, _SHARED_LOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SHARED_LOCK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pagerUnlockDb
LBB0_13:
	bl	_sqlite3EndBenignMalloc
	b	LBB0_4
LBB0_14:
	cbnz	w23, LBB0_16
; %bb.15:
Lloh17:
	adrp	x8, _SQLITE_OPEN_READONLY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SQLITE_OPEN_READONLY@GOTPAGEOFF]
Lloh19:
	adrp	x9, _SQLITE_OPEN_MAIN_JOURNAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SQLITE_OPEN_MAIN_JOURNAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	orr	w3, w9, w8
	str	w3, [sp, #8]
	ldp	w2, w1, [x19, #24]
	add	x4, sp, #8
	mov	x0, x22
	bl	_sqlite3OsOpen
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_19
LBB0_16:
	str	xzr, [sp, #8]
	ldr	w0, [x19, #24]
	add	x1, sp, #8
	mov	w2, #1
	mov	w3, #0
	bl	_sqlite3OsRead
Lloh23:
	adrp	x8, _SQLITE_IOERR_SHORT_READ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SQLITE_IOERR_SHORT_READ@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x24]
	cmp	w0, w8
	csel	w21, w9, w0, eq
	cbnz	w23, LBB0_18
; %bb.17:
	ldr	w0, [x19, #24]
	bl	_sqlite3OsClose
LBB0_18:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x20]
	b	LBB0_4
LBB0_19:
	mov	x21, x0
Lloh26:
	adrp	x8, _SQLITE_CANTOPEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SQLITE_CANTOPEN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.20:
	mov	w8, #1
	str	w8, [x20]
	ldr	w21, [x24]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PAGER_OPEN,8,3                 ; @PAGER_OPEN
	.comm	_SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN,4,2 ; @SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN
	.comm	_SQLITE_ACCESS_EXISTS,4,2       ; @SQLITE_ACCESS_EXISTS
	.comm	_RESERVED_LOCK,4,2              ; @RESERVED_LOCK
	.comm	_SHARED_LOCK,4,2                ; @SHARED_LOCK
	.comm	_SQLITE_OPEN_READONLY,4,2       ; @SQLITE_OPEN_READONLY
	.comm	_SQLITE_OPEN_MAIN_JOURNAL,4,2   ; @SQLITE_OPEN_MAIN_JOURNAL
	.comm	_SQLITE_IOERR_SHORT_READ,4,2    ; @SQLITE_IOERR_SHORT_READ
	.comm	_SQLITE_CANTOPEN,4,2            ; @SQLITE_CANTOPEN
	.no_dead_strip	_hasHotJournal
.subsections_via_symbols
