	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgblight_set                   ## -- Begin function rgblight_set
	.p2align	4, 0x90
_rgblight_set:                          ## @rgblight_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_rgblight_config@GOTPCREL(%rip), %r14
	cmpl	$0, 4(%r14)
	movq	_RGBLED_NUM@GOTPCREL(%rip), %rbx
	jne	LBB0_7
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_led@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	movq	_RGBLIGHT_FLED1@GOTPCREL(%rip), %rsi
	movq	_RGBLIGHT_FLED2@GOTPCREL(%rip), %rdi
	xorps	%xmm0, %xmm0
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movups	%xmm0, (%rcx)
	movq	$0, 16(%rcx)
	movq	(%rbx), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	addq	$24, %rcx
	cmpq	%rax, %rdx
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rsi), %rdx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%rdi), %rdx
	je	LBB0_6
	jmp	LBB0_5
LBB0_7:
	movq	_fled_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.8:
	cmpl	$130, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$129, %eax
	jne	LBB0_21
## %bb.10:
	movq	_led@GOTPCREL(%rip), %r14
	movq	_RGBLIGHT_FLED1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rcx
	shlq	$3, %rcx
	addq	(%r14), %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_setrgb
	movq	_RGBLIGHT_FLED2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rcx
	shlq	$3, %rcx
	addq	(%r14), %rcx
LBB0_19:
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_setrgb
	jmp	LBB0_21
LBB0_12:
	movq	_fled_hs@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	4(%rax), %edi
	testl	%edi, %edi
	jne	LBB0_15
## %bb.13:
	movl	(%r14), %ecx
	addl	$-15, %ecx
	cmpl	$8, %ecx
	ja	LBB0_15
## %bb.14:
	movq	_led@GOTPCREL(%rip), %rax
	movq	_RGBLIGHT_FLED1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$3, %rcx
	addq	(%rax), %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_setrgb
	jmp	LBB0_16
LBB0_11:
	movq	_fleds@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_led@GOTPCREL(%rip), %r15
	movq	_RGBLIGHT_FLED1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$3, %rsi
	addq	(%r15), %rsi
	callq	_copyrgb
	movq	(%r14), %rdi
	addq	$4, %rdi
	movq	_RGBLIGHT_FLED2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$3, %rsi
	addq	(%r15), %rsi
	callq	_copyrgb
	jmp	LBB0_21
LBB0_15:
	movl	(%rax), %esi
	movq	_fled_val@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_led@GOTPCREL(%rip), %rax
	movq	_RGBLIGHT_FLED1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$3, %rcx
	addq	(%rax), %rcx
	callq	_sethsv
LBB0_16:
	movq	(%r15), %rax
	movl	12(%rax), %edi
	testl	%edi, %edi
	jne	LBB0_20
## %bb.17:
	movl	(%r14), %ecx
	addl	$-15, %ecx
	cmpl	$8, %ecx
	ja	LBB0_20
## %bb.18:
	movq	_led@GOTPCREL(%rip), %rax
	movq	_RGBLIGHT_FLED2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$3, %rcx
	addq	(%rax), %rcx
	jmp	LBB0_19
LBB0_20:
	movl	8(%rax), %esi
	movq	_fled_val@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_led@GOTPCREL(%rip), %rax
	movq	_RGBLIGHT_FLED2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$3, %rcx
	addq	(%rax), %rcx
	callq	_sethsv
LBB0_21:
	movq	_led@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ws2812_setleds                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rgblight_config,8,2            ## @rgblight_config
	.comm	_RGBLED_NUM,8,3                 ## @RGBLED_NUM
	.comm	_RGBLIGHT_FLED1,8,3             ## @RGBLIGHT_FLED1
	.comm	_RGBLIGHT_FLED2,8,3             ## @RGBLIGHT_FLED2
	.comm	_led,8,3                        ## @led
	.comm	_fled_mode,4,2                  ## @fled_mode
	.comm	_fleds,8,3                      ## @fleds
	.comm	_fled_hs,8,3                    ## @fled_hs
	.comm	_fled_val,4,2                   ## @fled_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgblight_set                   ; -- Begin function rgblight_set
	.p2align	2
_rgblight_set:                          ; @rgblight_set
	.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	x21, _rgblight_config@GOTPAGE
Lloh1:
	ldr	x21, [x21, _rgblight_config@GOTPAGEOFF]
Lloh2:
	adrp	x19, _RGBLED_NUM@GOTPAGE
Lloh3:
	ldr	x19, [x19, _RGBLED_NUM@GOTPAGEOFF]
	ldr	w9, [x21, #4]
	ldr	x8, [x19]
	cmp	w9, #0
	ccmp	x8, #0, #4, eq
Lloh4:
	adrp	x20, _led@GOTPAGE
Lloh5:
	ldr	x20, [x20, _led@GOTPAGEOFF]
	b.ne	LBB0_6
LBB0_1:
Lloh6:
	adrp	x8, _fled_mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fled_mode@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_13
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_19
; %bb.4:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _RGBLIGHT_FLED1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RGBLIGHT_FLED1@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	mov	w21, #24
	madd	x3, x9, x21, x8
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_setrgb
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _RGBLIGHT_FLED2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RGBLIGHT_FLED2@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	madd	x3, x9, x21, x8
LBB0_5:
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_setrgb
	b	LBB0_19
LBB0_6:
	mov	x9, #0
	ldr	x10, [x20]
Lloh15:
	adrp	x11, _RGBLIGHT_FLED1@GOTPAGE
Lloh16:
	ldr	x11, [x11, _RGBLIGHT_FLED1@GOTPAGEOFF]
Lloh17:
	adrp	x12, _RGBLIGHT_FLED2@GOTPAGE
Lloh18:
	ldr	x12, [x12, _RGBLIGHT_FLED2@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	add	x10, x10, #24
	cmp	x9, x8
	b.hs	LBB0_1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	ldr	x14, [x12]
	cmp	x9, x13
	ccmp	x9, x14, #0, eq
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	stp	xzr, xzr, [x10]
	str	xzr, [x10, #16]
	ldr	x8, [x19]
	b	LBB0_7
LBB0_10:
Lloh19:
	adrp	x23, _fled_hs@GOTPAGE
Lloh20:
	ldr	x23, [x23, _fled_hs@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
Lloh21:
	adrp	x22, _fled_val@GOTPAGE
Lloh22:
	ldr	x22, [x22, _fled_val@GOTPAGEOFF]
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	w9, [x21]
	sub	w9, w9, #15
	cmp	w9, #8
	b.hi	LBB0_14
; %bb.12:
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _RGBLIGHT_FLED1@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RGBLIGHT_FLED1@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x3, x9, x10, x8
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_setrgb
	b	LBB0_15
LBB0_13:
Lloh26:
	adrp	x21, _fleds@GOTPAGE
Lloh27:
	ldr	x21, [x21, _fleds@GOTPAGEOFF]
	ldr	x0, [x21]
	ldr	x8, [x20]
Lloh28:
	adrp	x9, _RGBLIGHT_FLED1@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RGBLIGHT_FLED1@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	mov	w22, #24
	madd	x1, x9, x22, x8
	bl	_copyrgb
	ldr	x8, [x21]
	add	x0, x8, #4
	ldr	x8, [x20]
Lloh31:
	adrp	x9, _RGBLIGHT_FLED2@GOTPAGE
Lloh32:
	ldr	x9, [x9, _RGBLIGHT_FLED2@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	madd	x1, x9, x22, x8
	bl	_copyrgb
	b	LBB0_19
LBB0_14:
	ldr	w1, [x8]
	ldr	w2, [x22]
	ldr	x8, [x20]
Lloh34:
	adrp	x9, _RGBLIGHT_FLED1@GOTPAGE
Lloh35:
	ldr	x9, [x9, _RGBLIGHT_FLED1@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x3, x9, x10, x8
	bl	_sethsv
LBB0_15:
	ldr	x8, [x23]
	ldr	w0, [x8, #12]
	cbnz	w0, LBB0_18
; %bb.16:
	ldr	w9, [x21]
	sub	w9, w9, #15
	cmp	w9, #8
	b.hi	LBB0_18
; %bb.17:
	ldr	x8, [x20]
Lloh37:
	adrp	x9, _RGBLIGHT_FLED2@GOTPAGE
Lloh38:
	ldr	x9, [x9, _RGBLIGHT_FLED2@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x3, x9, x10, x8
	b	LBB0_5
LBB0_18:
	ldr	w1, [x8, #8]
	ldr	w2, [x22]
	ldr	x8, [x20]
Lloh40:
	adrp	x9, _RGBLIGHT_FLED2@GOTPAGE
Lloh41:
	ldr	x9, [x9, _RGBLIGHT_FLED2@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x3, x9, x10, x8
	bl	_sethsv
LBB0_19:
	ldr	x0, [x20]
	ldr	x1, [x19]
	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	_ws2812_setleds
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_rgblight_config,8,2            ; @rgblight_config
	.comm	_RGBLED_NUM,8,3                 ; @RGBLED_NUM
	.comm	_RGBLIGHT_FLED1,8,3             ; @RGBLIGHT_FLED1
	.comm	_RGBLIGHT_FLED2,8,3             ; @RGBLIGHT_FLED2
	.comm	_led,8,3                        ; @led
	.comm	_fled_mode,4,2                  ; @fled_mode
	.comm	_fleds,8,3                      ; @fleds
	.comm	_fled_hs,8,3                    ; @fled_hs
	.comm	_fled_val,4,2                   ; @fled_val
.subsections_via_symbols
