	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_close                       ## -- Begin function db_close
	.p2align	4, 0x90
_db_close:                              ## @db_close
	.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_1
## %bb.2:
	xorl	%eax, %eax
	callq	_db_worker_stop
	movq	_db@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sqlite3_exec
	movq	_insert_block_stmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3_finalize
	movq	_insert_light_stmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3_finalize
	movq	_insert_sign_stmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3_finalize
	movq	_delete_sign_stmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3_finalize
	movq	_delete_signs_stmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3_finalize
	movq	_load_blocks_stmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3_finalize
	movq	_load_lights_stmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3_finalize
	movq	_load_signs_stmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3_finalize
	movq	_get_key_stmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3_finalize
	movq	_set_key_stmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sqlite3_finalize
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sqlite3_close                  ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_db_enabled,4,2                 ## @db_enabled
	.comm	_db,4,2                         ## @db
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"commit;"

	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_close                       ; -- Begin function db_close
	.p2align	2
_db_close:                              ; @db_close
	.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_2
; %bb.1:
	bl	_db_worker_stop
Lloh3:
	adrp	x19, _db@GOTPAGE
Lloh4:
	ldr	x19, [x19, _db@GOTPAGEOFF]
	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
Lloh7:
	adrp	x8, _insert_block_stmt@GOTPAGE
Lloh8:
	ldr	x8, [x8, _insert_block_stmt@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_sqlite3_finalize
Lloh10:
	adrp	x8, _insert_light_stmt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _insert_light_stmt@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_sqlite3_finalize
Lloh13:
	adrp	x8, _insert_sign_stmt@GOTPAGE
Lloh14:
	ldr	x8, [x8, _insert_sign_stmt@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_sqlite3_finalize
Lloh16:
	adrp	x8, _delete_sign_stmt@GOTPAGE
Lloh17:
	ldr	x8, [x8, _delete_sign_stmt@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_sqlite3_finalize
Lloh19:
	adrp	x8, _delete_signs_stmt@GOTPAGE
Lloh20:
	ldr	x8, [x8, _delete_signs_stmt@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_sqlite3_finalize
Lloh22:
	adrp	x8, _load_blocks_stmt@GOTPAGE
Lloh23:
	ldr	x8, [x8, _load_blocks_stmt@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_sqlite3_finalize
Lloh25:
	adrp	x8, _load_lights_stmt@GOTPAGE
Lloh26:
	ldr	x8, [x8, _load_lights_stmt@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_sqlite3_finalize
Lloh28:
	adrp	x8, _load_signs_stmt@GOTPAGE
Lloh29:
	ldr	x8, [x8, _load_signs_stmt@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_sqlite3_finalize
Lloh31:
	adrp	x8, _get_key_stmt@GOTPAGE
Lloh32:
	ldr	x8, [x8, _get_key_stmt@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_sqlite3_finalize
Lloh34:
	adrp	x8, _set_key_stmt@GOTPAGE
Lloh35:
	ldr	x8, [x8, _set_key_stmt@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_sqlite3_finalize
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sqlite3_close
LBB0_2:
	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 AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_db_enabled,4,2                 ; @db_enabled
	.comm	_db,4,2                         ; @db
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"commit;"

	.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
.subsections_via_symbols
