	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_load_lights                 ## -- Begin function db_load_lights
	.p2align	4, 0x90
_db_load_lights:                        ## @db_load_lights
	.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
	pushq	%rax
	.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_5
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_load_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_load_lights_stmt@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_sqlite3_reset
	movl	(%r13), %edi
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_sqlite3_bind_int
	movl	(%r13), %edi
	movl	$2, %esi
	movl	%r14d, %edx
	callq	_sqlite3_bind_int
	movl	(%r13), %edi
	callq	_sqlite3_step
	movq	_SQLITE_ROW@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_sqlite3_column_int
	movl	%eax, %r14d
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_sqlite3_column_int
	movl	%eax, %r15d
	movl	(%r13), %edi
	movl	$2, %esi
	callq	_sqlite3_column_int
	movl	%eax, %ebx
	movl	(%r13), %edi
	movl	$3, %esi
	callq	_sqlite3_column_int
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_map_set
	movl	(%r13), %edi
	callq	_sqlite3_step
	cmpq	(%r12), %rax
	je	LBB0_2
LBB0_4:
	movq	_load_mtx@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
LBB0_5:
	addq	$8, %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
	.comm	_load_mtx,4,2                   ## @load_mtx
	.comm	_load_lights_stmt,4,2           ## @load_lights_stmt
	.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_lights                 ; -- Begin function db_load_lights
	.p2align	2
_db_load_lights:                        ; @db_load_lights
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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_5
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh3:
	adrp	x0, _load_mtx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _load_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh5:
	adrp	x23, _load_lights_stmt@GOTPAGE
Lloh6:
	ldr	x23, [x23, _load_lights_stmt@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_sqlite3_reset
	ldr	w0, [x23]
	mov	w1, #1
	mov	x2, x21
	bl	_sqlite3_bind_int
	ldr	w0, [x23]
	mov	w1, #2
	mov	x2, x20
	bl	_sqlite3_bind_int
	ldr	w0, [x23]
	bl	_sqlite3_step
Lloh7:
	adrp	x24, _SQLITE_ROW@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SQLITE_ROW@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x23]
	mov	w1, #0
	bl	_sqlite3_column_int
	mov	x20, x0
	ldr	w0, [x23]
	mov	w1, #1
	bl	_sqlite3_column_int
	mov	x21, x0
	ldr	w0, [x23]
	mov	w1, #2
	bl	_sqlite3_column_int
	mov	x22, x0
	ldr	w0, [x23]
	mov	w1, #3
	bl	_sqlite3_column_int
	mov	x4, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_map_set
	ldr	w0, [x23]
	bl	_sqlite3_step
	b	LBB0_2
LBB0_4:
Lloh9:
	adrp	x0, _load_mtx@GOTPAGE
Lloh10:
	ldr	x0, [x0, _load_mtx@GOTPAGEOFF]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mtx_unlock
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_db_enabled,4,2                 ; @db_enabled
	.comm	_load_mtx,4,2                   ; @load_mtx
	.comm	_load_lights_stmt,4,2           ; @load_lights_stmt
	.comm	_SQLITE_ROW,8,3                 ; @SQLITE_ROW
.subsections_via_symbols
