	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_load_state                  ## -- Begin function db_load_state
	.p2align	4, 0x90
_db_load_state:                         ## @db_load_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_db_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	_db@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rcx
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	movq	-48(%rbp), %rdi
	callq	_sqlite3_step
	movq	_SQLITE_ROW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_sqlite3_column_double
	movss	%xmm0, (%r14)
	movq	-48(%rbp), %rdi
	movl	$1, %ebx
	movl	$1, %esi
	callq	_sqlite3_column_double
	movss	%xmm0, (%r13)
	movq	-48(%rbp), %rdi
	movl	$2, %esi
	callq	_sqlite3_column_double
	movss	%xmm0, (%r12)
	movq	-48(%rbp), %rdi
	movl	$3, %esi
	callq	_sqlite3_column_double
	movss	%xmm0, (%r15)
	movq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_sqlite3_column_double
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movss	%xmm0, (%rax)
LBB0_4:
	movq	-48(%rbp), %rdi
	callq	_sqlite3_finalize
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_db_enabled,4,2                 ## @db_enabled
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"select x, y, z, rx, ry from state;"

	.comm	_db,4,2                         ## @db
	.comm	_SQLITE_ROW,8,3                 ## @SQLITE_ROW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_load_state                  ; -- Begin function db_load_state
	.p2align	2
_db_load_state:                         ; @db_load_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _db_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _db_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh3:
	adrp	x8, _db@GOTPAGE
Lloh4:
	ldr	x8, [x8, _db@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	ldr	x0, [sp, #8]
	bl	_sqlite3_step
Lloh8:
	adrp	x8, _SQLITE_ROW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SQLITE_ROW@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_sqlite3_column_double
	str	s0, [x22]
	ldr	x0, [sp, #8]
	mov	w22, #1
	mov	w1, #1
	bl	_sqlite3_column_double
	str	s0, [x23]
	ldr	x0, [sp, #8]
	mov	w1, #2
	bl	_sqlite3_column_double
	str	s0, [x21]
	ldr	x0, [sp, #8]
	mov	w1, #3
	bl	_sqlite3_column_double
	str	s0, [x20]
	ldr	x0, [sp, #8]
	mov	w1, #4
	bl	_sqlite3_column_double
	str	s0, [x19]
	b	LBB0_5
LBB0_3:
	mov	w22, #0
	b	LBB0_6
LBB0_4:
	mov	w22, #0
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_sqlite3_finalize
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_db_enabled,4,2                 ; @db_enabled
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"select x, y, z, rx, ry from state;"

	.comm	_db,4,2                         ; @db
	.comm	_SQLITE_ROW,8,3                 ; @SQLITE_ROW
.subsections_via_symbols
