	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fakefs_mount
_fakefs_mount:                          ## @fakefs_mount
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_strcpy
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	%eax, %ebx
	leaq	-64(%rbp), %r12
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_read
	movl	%ebx, %edi
	callq	_close
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	$15, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	leaq	132(%r14), %rbx
	movq	_SQLITE_OPEN_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_sqlite3_open_v2
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	movl	132(%r14), %edi
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.3:
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_sqlite3_busy_timeout
	movl	132(%r14), %edi
	movq	_SQLITE_UTF8@GOTPCREL(%rip), %rax
	movq	_SQLITE_DETERMINISTIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_sqlite_func_change_prefix@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$16, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	movl	$3, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_create_function
	addq	$16, %rsp
	movq	%r14, %rdi
	callq	_db_check_error
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_db_check_error
	movq	%rbx, %rdi
	callq	_sqlite3_step
	movq	%r14, %rdi
	callq	_db_check_error
	movq	%rbx, %rdi
	callq	_sqlite3_finalize
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_db_check_error
	movq	%rbx, %rdi
	callq	_sqlite3_step
	movq	%r14, %rdi
	callq	_db_check_error
	movq	%rbx, %rdi
	callq	_sqlite3_finalize
	movq	_realfs@GOTPCREL(%rip), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_17
## %bb.4:
	movq	%r14, %rdi
	callq	_fakefs_migrate
	testl	%eax, %eax
	js	LBB0_17
## %bb.5:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.7(%rip), %rdi
	callq	_ERRNO_DIE
LBB0_7:
	movq	-72(%rbp), %r15
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_sqlite3_step
	movq	_SQLITE_ROW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sqlite3_column_int64
	cmpq	%r15, %rax
	jne	LBB0_18
LBB0_9:
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.10:
	movq	%rbx, %rdi
	callq	_sqlite3_finalize
	jmp	LBB0_19
LBB0_11:
	xorl	%eax, %eax
	callq	_errno_map
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_12:
	callq	_sqlite3_errmsg
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_printk
	movl	(%rbx), %edi
	callq	_sqlite3_close
LBB0_13:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_21
## %bb.15:
	movl	%ebx, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_18:
	movq	%rbx, %rdi
	callq	_sqlite3_finalize
	movq	%r14, %rdi
	callq	_fakefs_rebuild
	testl	%eax, %eax
	js	LBB0_20
LBB0_19:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_sqlite3_bind_int64
	movq	%r14, %rdi
	callq	_db_check_error
	movq	%rbx, %rdi
	callq	_sqlite3_step
	movq	%r14, %rdi
	callq	_db_check_error
	movq	%rbx, %rdi
	callq	_sqlite3_finalize
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_db_check_error
	movq	%rbx, %rdi
	callq	_sqlite3_step
	movq	%r14, %rdi
	callq	_db_check_error
	movq	%rbx, %rdi
	callq	_sqlite3_finalize
	leaq	128(%r14), %rdi
	callq	_lock_init
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 120(%r14)
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 112(%r14)
	leaq	L_.str.13(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 104(%r14)
	leaq	L_.str.14(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 96(%r14)
	leaq	L_.str.15(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 88(%r14)
	leaq	L_.str.16(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 80(%r14)
	leaq	L_.str.17(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 72(%r14)
	leaq	L_.str.18(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 64(%r14)
	leaq	L_.str.19(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 56(%r14)
	leaq	L_.str.20(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 48(%r14)
	leaq	L_.str.21(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 40(%r14)
	leaq	L_.str.22(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 32(%r14)
	leaq	L_.str.23(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 24(%r14)
	leaq	L_.str.24(%rip), %rsi
	movq	%r14, %rdi
	callq	_db_prepare
	movq	%rax, 16(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_20:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	callq	_close
	jmp	LBB0_14
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data"

L_.str.1:                               ## @.str.1
	.asciz	"meta.db"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"SQLite format 3"

	.comm	__EINVAL,4,2                    ## @_EINVAL
	.comm	_SQLITE_OPEN_READWRITE,4,2      ## @SQLITE_OPEN_READWRITE
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
L_.str.3:                               ## @.str.3
	.asciz	"error opening database: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"change_prefix"

	.comm	_SQLITE_UTF8,4,2                ## @SQLITE_UTF8
	.comm	_SQLITE_DETERMINISTIC,4,2       ## @SQLITE_DETERMINISTIC
	.comm	_sqlite_func_change_prefix,4,2  ## @sqlite_func_change_prefix
L_.str.5:                               ## @.str.5
	.asciz	"pragma journal_mode=wal"

L_.str.6:                               ## @.str.6
	.asciz	"pragma foreign_keys=true"

	.comm	_realfs,8,3                     ## @realfs
L_.str.7:                               ## @.str.7
	.asciz	"stat database"

L_.str.8:                               ## @.str.8
	.asciz	"select db_inode from meta"

	.comm	_SQLITE_ROW,8,3                 ## @SQLITE_ROW
L_.str.9:                               ## @.str.9
	.asciz	"update meta set db_inode = ?"

L_.str.10:                              ## @.str.10
	.asciz	"delete from stats where not exists (select 1 from paths where inode = stats.inode)"

L_.str.11:                              ## @.str.11
	.asciz	"begin"

L_.str.12:                              ## @.str.12
	.asciz	"commit"

L_.str.13:                              ## @.str.13
	.asciz	"rollback"

L_.str.14:                              ## @.str.14
	.asciz	"select inode from paths where path = ?"

L_.str.15:                              ## @.str.15
	.asciz	"select inode, stat from stats natural join paths where path = ?"

L_.str.16:                              ## @.str.16
	.asciz	"insert into stats (stat) values (?)"

L_.str.17:                              ## @.str.17
	.asciz	"insert or replace into paths values (?, last_insert_rowid())"

L_.str.18:                              ## @.str.18
	.asciz	"select stat from stats where inode = ?"

L_.str.19:                              ## @.str.19
	.asciz	"update stats set stat = ? where inode = ?"

L_.str.20:                              ## @.str.20
	.asciz	"insert or replace into paths (path, inode) values (?, ?)"

L_.str.21:                              ## @.str.21
	.asciz	"delete from paths where path = ?"

L_.str.22:                              ## @.str.22
	.asciz	"update or replace paths set path = change_prefix(path, ?, ?) where (path >= ? and path < ?) or path = ?"

L_.str.23:                              ## @.str.23
	.asciz	"select path from paths where inode = ?"

L_.str.24:                              ## @.str.24
	.asciz	"delete from stats where inode = ? and not exists (select 1 from paths where inode = stats.inode)"

	.comm	_SQLITE_TRACE_STMT,4,2          ## @SQLITE_TRACE_STMT
	.comm	_trace_callback,4,2             ## @trace_callback
	.no_dead_strip	_fakefs_mount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fakefs_mount
_fakefs_mount:                          ; @fakefs_mount
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x1, [x0]
	mov	x0, x20
	bl	_strcpy
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	add	x21, x0, #1
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcpy
	stp	xzr, xzr, [x29, #-56]
Lloh12:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_open
	tbnz	w0, #31, LBB0_11
; %bb.1:
	mov	x21, x0
	sub	x1, x29, #56
	mov	w2, #16
	bl	_read
	mov	x0, x21
	bl	_close
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	x0, x29, #56
	mov	w2, #15
	bl	_strncmp
	cbnz	x0, LBB0_13
; %bb.2:
	add	x21, x19, #132
Lloh17:
	adrp	x8, _SQLITE_OPEN_READWRITE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SQLITE_OPEN_READWRITE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	bl	_sqlite3_open_v2
	mov	x8, x0
Lloh20:
	adrp	x9, _SQLITE_OK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SQLITE_OK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w0, [x19, #132]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.3:
	mov	w1, #1000
	bl	_sqlite3_busy_timeout
	ldr	w0, [x19, #132]
Lloh23:
	adrp	x8, _SQLITE_UTF8@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SQLITE_UTF8@GOTPAGEOFF]
Lloh25:
	adrp	x9, _SQLITE_DETERMINISTIC@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SQLITE_DETERMINISTIC@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh29:
	adrp	x8, _sqlite_func_change_prefix@GOTPAGE
Lloh30:
	ldr	x8, [x8, _sqlite_func_change_prefix@GOTPAGEOFF]
Lloh31:
	ldr	w5, [x8]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #3
	mov	x4, #0
	mov	x6, #0
	mov	x7, #0
	bl	_sqlite3_create_function
	mov	x0, x19
	bl	_db_check_error
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	mov	x21, x0
	mov	x0, x19
	bl	_db_check_error
	mov	x0, x21
	bl	_sqlite3_step
	mov	x0, x19
	bl	_db_check_error
	mov	x0, x21
	bl	_sqlite3_finalize
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	mov	x21, x0
	mov	x0, x19
	bl	_db_check_error
	mov	x0, x21
	bl	_sqlite3_step
	mov	x0, x19
	bl	_db_check_error
	mov	x0, x21
	bl	_sqlite3_finalize
Lloh38:
	adrp	x8, _realfs@GOTPAGE
Lloh39:
	ldr	x8, [x8, _realfs@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_16
; %bb.4:
	mov	x0, x19
	bl	_fakefs_migrate
	tbnz	w0, #31, LBB0_16
; %bb.5:
	sub	x1, x29, #64
	mov	x0, x20
	bl	_stat
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh41:
	adrp	x0, l_.str.7@PAGE
Lloh42:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_ERRNO_DIE
LBB0_7:
	ldur	x20, [x29, #-64]
Lloh43:
	adrp	x1, l_.str.8@PAGE
Lloh44:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	mov	x21, x0
	bl	_sqlite3_step
Lloh45:
	adrp	x8, _SQLITE_ROW@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SQLITE_ROW@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	mov	w1, #0
	bl	_sqlite3_column_int64
	cmp	x0, x20
	b.ne	LBB0_17
LBB0_9:
	cbz	x21, LBB0_18
; %bb.10:
	mov	x0, x21
	bl	_sqlite3_finalize
	b	LBB0_18
LBB0_11:
	bl	_errno_map
	mov	x21, x0
	b	LBB0_14
LBB0_12:
	bl	_sqlite3_errmsg
	mov	x1, x0
Lloh48:
	adrp	x0, l_.str.3@PAGE
Lloh49:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
	ldr	w0, [x21]
	bl	_sqlite3_close
LBB0_13:
Lloh50:
	adrp	x8, __EINVAL@GOTPAGE
Lloh51:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh52:
	ldr	w21, [x8]
LBB0_14:
	ldur	x8, [x29, #-40]
Lloh53:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh54:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.15:
	mov	x0, x21
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x21, x0
	b	LBB0_14
LBB0_17:
	mov	x0, x21
	bl	_sqlite3_finalize
	mov	x0, x19
	bl	_fakefs_rebuild
	tbnz	w0, #31, LBB0_19
LBB0_18:
Lloh56:
	adrp	x1, l_.str.9@PAGE
Lloh57:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	mov	x21, x0
	mov	w1, #1
	mov	x2, x20
	bl	_sqlite3_bind_int64
	mov	x0, x19
	bl	_db_check_error
	mov	x0, x21
	bl	_sqlite3_step
	mov	x0, x19
	bl	_db_check_error
	mov	x0, x21
	bl	_sqlite3_finalize
Lloh58:
	adrp	x1, l_.str.10@PAGE
Lloh59:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	mov	x20, x0
	mov	x0, x19
	bl	_db_check_error
	mov	x0, x20
	bl	_sqlite3_step
	mov	x0, x19
	bl	_db_check_error
	mov	x0, x20
	bl	_sqlite3_finalize
	add	x0, x19, #128
	bl	_lock_init
Lloh60:
	adrp	x1, l_.str.11@PAGE
Lloh61:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #120]
Lloh62:
	adrp	x1, l_.str.12@PAGE
Lloh63:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #112]
Lloh64:
	adrp	x1, l_.str.13@PAGE
Lloh65:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #104]
Lloh66:
	adrp	x1, l_.str.14@PAGE
Lloh67:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #96]
Lloh68:
	adrp	x1, l_.str.15@PAGE
Lloh69:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #88]
Lloh70:
	adrp	x1, l_.str.16@PAGE
Lloh71:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #80]
Lloh72:
	adrp	x1, l_.str.17@PAGE
Lloh73:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #72]
Lloh74:
	adrp	x1, l_.str.18@PAGE
Lloh75:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #64]
Lloh76:
	adrp	x1, l_.str.19@PAGE
Lloh77:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #56]
Lloh78:
	adrp	x1, l_.str.20@PAGE
Lloh79:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #48]
Lloh80:
	adrp	x1, l_.str.21@PAGE
Lloh81:
	add	x1, x1, l_.str.21@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #40]
Lloh82:
	adrp	x1, l_.str.22@PAGE
Lloh83:
	add	x1, x1, l_.str.22@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #32]
Lloh84:
	adrp	x1, l_.str.23@PAGE
Lloh85:
	add	x1, x1, l_.str.23@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	str	x0, [x19, #24]
Lloh86:
	adrp	x1, l_.str.24@PAGE
Lloh87:
	add	x1, x1, l_.str.24@PAGEOFF
	mov	x0, x19
	bl	_db_prepare
	mov	w21, #0
	str	x0, [x19, #16]
	b	LBB0_14
LBB0_19:
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_close
	b	LBB0_14
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data"

l_.str.1:                               ; @.str.1
	.asciz	"meta.db"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"SQLite format 3"

	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	_SQLITE_OPEN_READWRITE,4,2      ; @SQLITE_OPEN_READWRITE
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
l_.str.3:                               ; @.str.3
	.asciz	"error opening database: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"change_prefix"

	.comm	_SQLITE_UTF8,4,2                ; @SQLITE_UTF8
	.comm	_SQLITE_DETERMINISTIC,4,2       ; @SQLITE_DETERMINISTIC
	.comm	_sqlite_func_change_prefix,4,2  ; @sqlite_func_change_prefix
l_.str.5:                               ; @.str.5
	.asciz	"pragma journal_mode=wal"

l_.str.6:                               ; @.str.6
	.asciz	"pragma foreign_keys=true"

	.comm	_realfs,8,3                     ; @realfs
l_.str.7:                               ; @.str.7
	.asciz	"stat database"

l_.str.8:                               ; @.str.8
	.asciz	"select db_inode from meta"

	.comm	_SQLITE_ROW,8,3                 ; @SQLITE_ROW
l_.str.9:                               ; @.str.9
	.asciz	"update meta set db_inode = ?"

l_.str.10:                              ; @.str.10
	.asciz	"delete from stats where not exists (select 1 from paths where inode = stats.inode)"

l_.str.11:                              ; @.str.11
	.asciz	"begin"

l_.str.12:                              ; @.str.12
	.asciz	"commit"

l_.str.13:                              ; @.str.13
	.asciz	"rollback"

l_.str.14:                              ; @.str.14
	.asciz	"select inode from paths where path = ?"

l_.str.15:                              ; @.str.15
	.asciz	"select inode, stat from stats natural join paths where path = ?"

l_.str.16:                              ; @.str.16
	.asciz	"insert into stats (stat) values (?)"

l_.str.17:                              ; @.str.17
	.asciz	"insert or replace into paths values (?, last_insert_rowid())"

l_.str.18:                              ; @.str.18
	.asciz	"select stat from stats where inode = ?"

l_.str.19:                              ; @.str.19
	.asciz	"update stats set stat = ? where inode = ?"

l_.str.20:                              ; @.str.20
	.asciz	"insert or replace into paths (path, inode) values (?, ?)"

l_.str.21:                              ; @.str.21
	.asciz	"delete from paths where path = ?"

l_.str.22:                              ; @.str.22
	.asciz	"update or replace paths set path = change_prefix(path, ?, ?) where (path >= ? and path < ?) or path = ?"

l_.str.23:                              ; @.str.23
	.asciz	"select path from paths where inode = ?"

l_.str.24:                              ; @.str.24
	.asciz	"delete from stats where inode = ? and not exists (select 1 from paths where inode = stats.inode)"

	.comm	_SQLITE_TRACE_STMT,4,2          ; @SQLITE_TRACE_STMT
	.comm	_trace_callback,4,2             ; @trace_callback
	.no_dead_strip	_fakefs_mount
.subsections_via_symbols
