	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetLightStyles                 ## -- Begin function SetLightStyles
	.p2align	4, 0x90
_SetLightStyles:                        ## @SetLightStyles
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SWITCHED_LIGHTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$6, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_num_entities@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_18
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	movq	_entities@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r14
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_2
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	shlq	$6, %r14
	addq	-80(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	incl	%ebx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	$32, %r15d
	leaq	-58(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edx
	callq	_sprintf
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdx
	callq	_SetKeyValue
	movq	_entities@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r14
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %r12
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	_num_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	leaq	(,%r13,4), %rbx
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ValueForKey
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	$5, %edx
	callq	_Q_strncasecmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_ValueForKey
	cmpb	$0, (%rax)
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %r14d
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%r15
	addq	$64, %rbx
	cmpq	%r15, %r14
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	cmpl	%ebx, %r15d
	jne	LBB0_15
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpl	%ebx, %r15d
	jne	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_SWITCHED_LIGHTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	_Error
	jmp	LBB0_14
LBB0_18:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SWITCHED_LIGHTS,4,2        ## @MAX_SWITCHED_LIGHTS
	.comm	_num_entities,4,2               ## @num_entities
	.comm	_entities,8,3                   ## @entities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"classname"

L_.str.1:                               ## @.str.1
	.asciz	"light"

L_.str.2:                               ## @.str.2
	.asciz	"targetname"

L_.str.3:                               ## @.str.3
	.asciz	"stylenum == MAX_SWITCHED_LIGHTS"

L_.str.4:                               ## @.str.4
	.asciz	"%i"

L_.str.5:                               ## @.str.5
	.asciz	"style"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetLightStyles                 ; -- Begin function SetLightStyles
	.p2align	2
_SetLightStyles:                        ; @SetLightStyles
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x8, sp
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_SWITCHED_LIGHTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SWITCHED_LIGHTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #6
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x27, x9, x8
	mov	sp, x27
Lloh8:
	adrp	x22, _num_entities@GOTPAGE
Lloh9:
	ldr	x22, [x22, _num_entities@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.1:
	mov	w23, #0
	mov	w24, #1
Lloh10:
	adrp	x19, _entities@GOTPAGE
Lloh11:
	ldr	x19, [x19, _entities@GOTPAGEOFF]
Lloh12:
	adrp	x20, l_.str@PAGE
Lloh13:
	add	x20, x20, l_.str@PAGEOFF
Lloh14:
	adrp	x21, l_.str.1@PAGE
Lloh15:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x27, x21, lsl #6
	mov	x1, x26
	bl	_strcpy
	add	w23, w23, #1
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w2, w28, #32
	sub	x0, x29, #98
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_sprintf
	sub	x2, x29, #98
	mov	x0, x25
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_SetKeyValue
Lloh20:
	adrp	x21, l_.str.1@PAGE
Lloh21:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x19]
	add	x25, x8, x24, lsl #2
	mov	x0, x25
	mov	x1, x20
	bl	_ValueForKey
	mov	x1, x21
	mov	w2, #5
	bl	_Q_strncasecmp
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ValueForKey
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	mov	w21, w23
	cmp	w23, #1
	b.lt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x20
	mov	x20, x19
	mov	x28, #0
	mov	x19, x27
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x27
	mov	x1, x26
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x28, x28, #1
	add	x27, x27, #64
	cmp	x21, x28
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x21
	mov	x27, x19
	mov	x19, x20
	mov	x20, x22
Lloh24:
	adrp	x22, _num_entities@GOTPAGE
Lloh25:
	ldr	x22, [x22, _num_entities@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w28, #0
	cmp	w28, w23
	b.ne	LBB0_3
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x19
	mov	x19, x20
	mov	x20, x22
Lloh26:
	adrp	x22, _num_entities@GOTPAGE
Lloh27:
	ldr	x22, [x22, _num_entities@GOTPAGEOFF]
	cmp	w28, w23
	b.ne	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh28:
	adrp	x8, _MAX_SWITCHED_LIGHTS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAX_SWITCHED_LIGHTS@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Error
	b	LBB0_2
LBB0_16:
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SWITCHED_LIGHTS,4,2        ; @MAX_SWITCHED_LIGHTS
	.comm	_num_entities,4,2               ; @num_entities
	.comm	_entities,8,3                   ; @entities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"classname"

l_.str.1:                               ; @.str.1
	.asciz	"light"

l_.str.2:                               ; @.str.2
	.asciz	"targetname"

l_.str.3:                               ; @.str.3
	.asciz	"stylenum == MAX_SWITCHED_LIGHTS"

l_.str.4:                               ; @.str.4
	.asciz	"%i"

l_.str.5:                               ; @.str.5
	.asciz	"style"

.subsections_via_symbols
