	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_init                        ## -- Begin function db_init
	.p2align	4, 0x90
_db_init:                               ## @db_init
	.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
	movq	_db_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_14
## %bb.1:
	movq	_db@GOTPCREL(%rip), %rbx
	movq	%rbx, %rsi
	callq	_sqlite3_open
	testl	%eax, %eax
	jne	LBB0_15
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sqlite3_exec
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	_insert_block_stmt@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	_insert_light_stmt@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	_insert_sign_stmt@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	_delete_sign_stmt@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	_delete_signs_stmt@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	_load_blocks_stmt@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	_load_lights_stmt@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movl	(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	_load_signs_stmt@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movl	(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
	movq	_get_key_stmt@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movl	(%rbx), %edi
	leaq	L_.str.10(%rip), %rsi
	movq	_set_key_stmt@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movl	(%rbx), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sqlite3_exec
	xorl	%eax, %eax
	callq	_db_worker_start
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_db_enabled,4,2                 ## @db_enabled
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attach database 'auth.db' as auth;create table if not exists auth.identity_token (   username text not null,   token text not null,   selected int not null);create unique index if not exists auth.identity_token_username_idx   on identity_token (username);create table if not exists state (   x float not null,   y float not null,   z float not null,   rx float not null,   ry float not null);create table if not exists block (    p int not null,    q int not null,    x int not null,    y int not null,    z int not null,    w int not null);create table if not exists light (    p int not null,    q int not null,    x int not null,    y int not null,    z int not null,    w int not null);create table if not exists key (    p int not null,    q int not null,    key int not null);create table if not exists sign (    p int not null,    q int not null,    x int not null,    y int not null,    z int not null,    face int not null,    text text not null);create unique index if not exists block_pqxyz_idx on block (p, q, x, y, z);create unique index if not exists light_pqxyz_idx on light (p, q, x, y, z);create unique index if not exists key_pq_idx on key (p, q);create unique index if not exists sign_xyzface_idx on sign (x, y, z, face);create index if not exists sign_pq_idx on sign (p, q);"

L_.str.1:                               ## @.str.1
	.asciz	"insert or replace into block (p, q, x, y, z, w) values (?, ?, ?, ?, ?, ?);"

L_.str.2:                               ## @.str.2
	.asciz	"insert or replace into light (p, q, x, y, z, w) values (?, ?, ?, ?, ?, ?);"

L_.str.3:                               ## @.str.3
	.asciz	"insert or replace into sign (p, q, x, y, z, face, text) values (?, ?, ?, ?, ?, ?, ?);"

L_.str.4:                               ## @.str.4
	.asciz	"delete from sign where x = ? and y = ? and z = ? and face = ?;"

L_.str.5:                               ## @.str.5
	.asciz	"delete from sign where x = ? and y = ? and z = ?;"

L_.str.6:                               ## @.str.6
	.asciz	"select x, y, z, w from block where p = ? and q = ?;"

L_.str.7:                               ## @.str.7
	.asciz	"select x, y, z, w from light where p = ? and q = ?;"

L_.str.8:                               ## @.str.8
	.asciz	"select x, y, z, face, text from sign where p = ? and q = ?;"

L_.str.9:                               ## @.str.9
	.asciz	"select key from key where p = ? and q = ?;"

L_.str.10:                              ## @.str.10
	.asciz	"insert or replace into key (p, q, key) values (?, ?, ?);"

	.comm	_db,4,2                         ## @db
	.comm	_insert_block_stmt,4,2          ## @insert_block_stmt
	.comm	_insert_light_stmt,4,2          ## @insert_light_stmt
	.comm	_insert_sign_stmt,4,2           ## @insert_sign_stmt
	.comm	_delete_sign_stmt,4,2           ## @delete_sign_stmt
	.comm	_delete_signs_stmt,4,2          ## @delete_signs_stmt
	.comm	_load_blocks_stmt,4,2           ## @load_blocks_stmt
	.comm	_load_lights_stmt,4,2           ## @load_lights_stmt
	.comm	_load_signs_stmt,4,2            ## @load_signs_stmt
	.comm	_get_key_stmt,4,2               ## @get_key_stmt
	.comm	_set_key_stmt,4,2               ## @set_key_stmt
L_.str.11:                              ## @.str.11
	.asciz	"begin;"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_init                        ; -- Begin function db_init
	.p2align	2
_db_init:                               ; @db_init
	.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
Lloh0:
	adrp	x8, _db_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _db_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.1:
Lloh3:
	adrp	x19, _db@GOTPAGE
Lloh4:
	ldr	x19, [x19, _db@GOTPAGEOFF]
	mov	x1, x19
	bl	_sqlite3_open
	cbnz	w0, LBB0_15
; %bb.2:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_sqlite3_exec
	cbnz	w0, LBB0_15
; %bb.3:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh9:
	adrp	x3, _insert_block_stmt@GOTPAGE
Lloh10:
	ldr	x3, [x3, _insert_block_stmt@GOTPAGEOFF]
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_15
; %bb.4:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh13:
	adrp	x3, _insert_light_stmt@GOTPAGE
Lloh14:
	ldr	x3, [x3, _insert_light_stmt@GOTPAGEOFF]
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_15
; %bb.5:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh17:
	adrp	x3, _insert_sign_stmt@GOTPAGE
Lloh18:
	ldr	x3, [x3, _insert_sign_stmt@GOTPAGEOFF]
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_15
; %bb.6:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh21:
	adrp	x3, _delete_sign_stmt@GOTPAGE
Lloh22:
	ldr	x3, [x3, _delete_sign_stmt@GOTPAGEOFF]
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_15
; %bb.7:
	ldr	w0, [x19]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh25:
	adrp	x3, _delete_signs_stmt@GOTPAGE
Lloh26:
	ldr	x3, [x3, _delete_signs_stmt@GOTPAGEOFF]
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_15
; %bb.8:
	ldr	w0, [x19]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh29:
	adrp	x3, _load_blocks_stmt@GOTPAGE
Lloh30:
	ldr	x3, [x3, _load_blocks_stmt@GOTPAGEOFF]
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_15
; %bb.9:
	ldr	w0, [x19]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh33:
	adrp	x3, _load_lights_stmt@GOTPAGE
Lloh34:
	ldr	x3, [x3, _load_lights_stmt@GOTPAGEOFF]
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_15
; %bb.10:
	ldr	w0, [x19]
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
Lloh37:
	adrp	x3, _load_signs_stmt@GOTPAGE
Lloh38:
	ldr	x3, [x3, _load_signs_stmt@GOTPAGEOFF]
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_15
; %bb.11:
	ldr	w0, [x19]
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
Lloh41:
	adrp	x3, _get_key_stmt@GOTPAGE
Lloh42:
	ldr	x3, [x3, _get_key_stmt@GOTPAGEOFF]
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_15
; %bb.12:
	ldr	w0, [x19]
Lloh43:
	adrp	x1, l_.str.10@PAGE
Lloh44:
	add	x1, x1, l_.str.10@PAGEOFF
Lloh45:
	adrp	x3, _set_key_stmt@GOTPAGE
Lloh46:
	ldr	x3, [x3, _set_key_stmt@GOTPAGEOFF]
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	cbnz	w0, LBB0_15
; %bb.13:
	ldr	w0, [x19]
Lloh47:
	adrp	x1, l_.str.11@PAGE
Lloh48:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_sqlite3_exec
	bl	_db_worker_start
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_db_enabled,4,2                 ; @db_enabled
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attach database 'auth.db' as auth;create table if not exists auth.identity_token (   username text not null,   token text not null,   selected int not null);create unique index if not exists auth.identity_token_username_idx   on identity_token (username);create table if not exists state (   x float not null,   y float not null,   z float not null,   rx float not null,   ry float not null);create table if not exists block (    p int not null,    q int not null,    x int not null,    y int not null,    z int not null,    w int not null);create table if not exists light (    p int not null,    q int not null,    x int not null,    y int not null,    z int not null,    w int not null);create table if not exists key (    p int not null,    q int not null,    key int not null);create table if not exists sign (    p int not null,    q int not null,    x int not null,    y int not null,    z int not null,    face int not null,    text text not null);create unique index if not exists block_pqxyz_idx on block (p, q, x, y, z);create unique index if not exists light_pqxyz_idx on light (p, q, x, y, z);create unique index if not exists key_pq_idx on key (p, q);create unique index if not exists sign_xyzface_idx on sign (x, y, z, face);create index if not exists sign_pq_idx on sign (p, q);"

l_.str.1:                               ; @.str.1
	.asciz	"insert or replace into block (p, q, x, y, z, w) values (?, ?, ?, ?, ?, ?);"

l_.str.2:                               ; @.str.2
	.asciz	"insert or replace into light (p, q, x, y, z, w) values (?, ?, ?, ?, ?, ?);"

l_.str.3:                               ; @.str.3
	.asciz	"insert or replace into sign (p, q, x, y, z, face, text) values (?, ?, ?, ?, ?, ?, ?);"

l_.str.4:                               ; @.str.4
	.asciz	"delete from sign where x = ? and y = ? and z = ? and face = ?;"

l_.str.5:                               ; @.str.5
	.asciz	"delete from sign where x = ? and y = ? and z = ?;"

l_.str.6:                               ; @.str.6
	.asciz	"select x, y, z, w from block where p = ? and q = ?;"

l_.str.7:                               ; @.str.7
	.asciz	"select x, y, z, w from light where p = ? and q = ?;"

l_.str.8:                               ; @.str.8
	.asciz	"select x, y, z, face, text from sign where p = ? and q = ?;"

l_.str.9:                               ; @.str.9
	.asciz	"select key from key where p = ? and q = ?;"

l_.str.10:                              ; @.str.10
	.asciz	"insert or replace into key (p, q, key) values (?, ?, ?);"

	.comm	_db,4,2                         ; @db
	.comm	_insert_block_stmt,4,2          ; @insert_block_stmt
	.comm	_insert_light_stmt,4,2          ; @insert_light_stmt
	.comm	_insert_sign_stmt,4,2           ; @insert_sign_stmt
	.comm	_delete_sign_stmt,4,2           ; @delete_sign_stmt
	.comm	_delete_signs_stmt,4,2          ; @delete_signs_stmt
	.comm	_load_blocks_stmt,4,2           ; @load_blocks_stmt
	.comm	_load_lights_stmt,4,2           ; @load_lights_stmt
	.comm	_load_signs_stmt,4,2            ; @load_signs_stmt
	.comm	_get_key_stmt,4,2               ; @get_key_stmt
	.comm	_set_key_stmt,4,2               ; @set_key_stmt
l_.str.11:                              ; @.str.11
	.asciz	"begin;"

.subsections_via_symbols
