	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_save_state                  ## -- Begin function db_save_state
	.p2align	4, 0x90
_db_save_state:                         ## @db_save_state
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	_db_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_db@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movss	%xmm4, -36(%rbp)                ## 4-byte Spill
	movss	%xmm3, -32(%rbp)                ## 4-byte Spill
	movss	%xmm2, -28(%rbp)                ## 4-byte Spill
	movss	%xmm1, -24(%rbp)                ## 4-byte Spill
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	callq	_sqlite3_exec
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-16(%rbp), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	movq	-16(%rbp), %rdi
	movl	$1, %esi
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_sqlite3_bind_double
	movq	-16(%rbp), %rdi
	movl	$2, %esi
	movss	-24(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_sqlite3_bind_double
	movq	-16(%rbp), %rdi
	movl	$3, %esi
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_sqlite3_bind_double
	movq	-16(%rbp), %rdi
	movl	$4, %esi
	movss	-32(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_sqlite3_bind_double
	movq	-16(%rbp), %rdi
	movl	$5, %esi
	movss	-36(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_sqlite3_bind_double
	movq	-16(%rbp), %rdi
	callq	_sqlite3_step
	movq	-16(%rbp), %rdi
	callq	_sqlite3_finalize
LBB0_2:
	addq	$40, %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	"insert into state (x, y, z, rx, ry) values (?, ?, ?, ?, ?);"

	.comm	_db,4,2                         ## @db
L_.str.1:                               ## @.str.1
	.asciz	"delete from state;"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_save_state                  ; -- Begin function db_save_state
	.p2align	2
_db_save_state:                         ; @db_save_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	.cfi_offset b12, -72
	.cfi_offset b13, -80
Lloh0:
	adrp	x8, _db_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _db_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	fmov	s8, s4
	fmov	s9, s3
	fmov	s10, s2
	fmov	s11, s1
	fmov	s12, s0
Lloh3:
	adrp	x19, _db@GOTPAGE
Lloh4:
	ldr	x19, [x19, _db@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_sqlite3_exec
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	ldr	x0, [sp, #8]
	mov	w1, #1
	fmov	s0, s12
	bl	_sqlite3_bind_double
	ldr	x0, [sp, #8]
	mov	w1, #2
	fmov	s0, s11
	bl	_sqlite3_bind_double
	ldr	x0, [sp, #8]
	mov	w1, #3
	fmov	s0, s10
	bl	_sqlite3_bind_double
	ldr	x0, [sp, #8]
	mov	w1, #4
	fmov	s0, s9
	bl	_sqlite3_bind_double
	ldr	x0, [sp, #8]
	mov	w1, #5
	fmov	s0, s8
	bl	_sqlite3_bind_double
	ldr	x0, [sp, #8]
	bl	_sqlite3_step
	ldr	x0, [sp, #8]
	bl	_sqlite3_finalize
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_db_enabled,4,2                 ; @db_enabled
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"insert into state (x, y, z, rx, ry) values (?, ?, ?, ?, ?);"

	.comm	_db,4,2                         ; @db
l_.str.1:                               ; @.str.1
	.asciz	"delete from state;"

.subsections_via_symbols
