	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function databaseIsUnmoved
_databaseIsUnmoved:                     ## @databaseIsUnmoved
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$0, -12(%rbp)
	cmpq	$0, 24(%rdi)
	je	LBB0_2
LBB0_1:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpq	$0, (%rax)
	setne	%dil
LBB0_5:
	callq	_assert
	movl	8(%rbx), %edi
	movq	_SQLITE_FCNTL_HAS_MOVED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_sqlite3OsFileControl
	movl	%eax, %ecx
	movq	_SQLITE_NOTFOUND@GOTPCREL(%rip), %rdx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rdx), %ecx
	je	LBB0_9
## %bb.6:
	cmpl	$0, -12(%rbp)
	movl	%ecx, %edx
	je	LBB0_8
## %bb.7:
	movq	_SQLITE_READONLY_DBMOVED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_8:
	cmpl	%eax, %ecx
	cmovnel	%ecx, %edx
	movl	%edx, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_FCNTL_HAS_MOVED,4,2     ## @SQLITE_FCNTL_HAS_MOVED
	.comm	_SQLITE_NOTFOUND,4,2            ## @SQLITE_NOTFOUND
	.comm	_SQLITE_READONLY_DBMOVED,4,2    ## @SQLITE_READONLY_DBMOVED
	.no_dead_strip	_databaseIsUnmoved
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function databaseIsUnmoved
_databaseIsUnmoved:                     ; @databaseIsUnmoved
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	wzr, [sp, #12]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	bl	_assert
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _SQLITE_FCNTL_HAS_MOVED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_FCNTL_HAS_MOVED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_sqlite3OsFileControl
	mov	x8, x0
Lloh6:
	adrp	x9, _SQLITE_NOTFOUND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SQLITE_NOTFOUND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _SQLITE_OK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SQLITE_OK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x10]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.8:
	ldr	w9, [sp, #12]
	cmp	w9, #0
	ccmp	w8, w0, #0, ne
Lloh12:
	adrp	x9, _SQLITE_READONLY_DBMOVED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SQLITE_READONLY_DBMOVED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	csel	w0, w9, w8, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_FCNTL_HAS_MOVED,4,2     ; @SQLITE_FCNTL_HAS_MOVED
	.comm	_SQLITE_NOTFOUND,4,2            ; @SQLITE_NOTFOUND
	.comm	_SQLITE_READONLY_DBMOVED,4,2    ; @SQLITE_READONLY_DBMOVED
	.no_dead_strip	_databaseIsUnmoved
.subsections_via_symbols
