	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_layer_state_set_kb             ## -- Begin function layer_state_set_kb
	.p2align	4, 0x90
_layer_state_set_kb:                    ## @layer_state_set_kb
	.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
	movl	%edi, %ebx
	callq	_biton32
	movq	_lc_size@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_3
## %bb.1:
	movq	_layer_colors@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	movq	(%rcx,%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movl	8(%rcx,%rax), %esi
	movq	_fled_val@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fleds@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	$4, %rcx
	callq	_sethsv
	jmp	LBB0_4
LBB0_3:
	movq	_fleds@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	$4, %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_setrgb
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lc_size,8,3                    ## @lc_size
	.comm	_layer_colors,8,3               ## @layer_colors
	.comm	_fled_val,4,2                   ## @fled_val
	.comm	_fleds,8,3                      ## @fleds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_layer_state_set_kb             ; -- Begin function layer_state_set_kb
	.p2align	2
_layer_state_set_kb:                    ; @layer_state_set_kb
	.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
	mov	x19, x0
	bl	_biton32
Lloh0:
	adrp	x8, _lc_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lc_size@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _layer_colors@GOTPAGE
Lloh4:
	ldr	x8, [x8, _layer_colors@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	lsl	x8, x0, #4
	ldr	x8, [x9, x8]
	cbz	x8, LBB0_3
; %bb.2:
	add	x9, x9, x0, lsl #4
Lloh6:
	adrp	x10, _fled_val@GOTPAGE
Lloh7:
	ldr	x10, [x10, _fled_val@GOTPAGEOFF]
	ldr	w1, [x9, #8]
Lloh8:
	ldr	w2, [x10]
Lloh9:
	adrp	x9, _fleds@GOTPAGE
Lloh10:
	ldr	x9, [x9, _fleds@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x3, x9, #4
	mov	x0, x8
	bl	_sethsv
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _fleds@GOTPAGE
Lloh13:
	ldr	x8, [x8, _fleds@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x3, x8, #4
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_setrgb
LBB0_4:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_lc_size,8,3                    ; @lc_size
	.comm	_layer_colors,8,3               ; @layer_colors
	.comm	_fled_val,4,2                   ; @fled_val
	.comm	_fleds,8,3                      ; @fleds
.subsections_via_symbols
