	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sethsv                         ## -- Begin function sethsv
	.p2align	4, 0x90
_sethsv:                                ## @sethsv
	.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	%rcx, %r14
	movq	_led@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RGBLIGHT_FLED1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rcx
	cmpq	%r14, %rcx
	je	LBB0_1
## %bb.2:
	movq	_RGBLIGHT_FLED2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	cmpq	%r14, %rax
	jne	LBB0_5
## %bb.3:
	movq	_fled_hs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, 8(%rax)
	addq	$12, %rax
	jmp	LBB0_4
LBB0_1:
	movq	_fled_hs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, (%rax)
	addq	$4, %rax
LBB0_4:
	movl	%esi, (%rax)
LBB0_5:
	movq	_RGBLIGHT_LIMIT_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, %eax
	cmovll	%eax, %edx
	testl	%esi, %esi
	je	LBB0_6
## %bb.7:
	movslq	%edi, %rax
	imulq	$-2004318071, %rax, %rcx        ## imm = 0x88888889
	shrq	$32, %rcx
	addl	%edi, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	sarl	$5, %ecx
	addl	%eax, %ecx
	cmpl	$5, %ecx
	ja	LBB0_8
## %bb.9:
	movl	$255, %eax
	subl	%esi, %eax
	imull	%edx, %eax
	sarl	$8, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	imull	$60, %ecx, %ebx
	subl	%ebx, %edi
	imull	%esi, %edi
	movslq	%edi, %rbx
	imulq	$-2004318071, %rbx, %rsi        ## imm = 0x88888889
	shrq	$32, %rsi
	addl	%esi, %ebx
	movl	%ebx, %esi
	shrl	$31, %esi
	sarl	$5, %ebx
	addl	%esi, %ebx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_10:
	addl	%eax, %ebx
	movl	%eax, %r12d
	jmp	LBB0_18
LBB0_6:
	movl	%edx, %ebx
	movl	%edx, %r12d
	jmp	LBB0_18
LBB0_11:
	movl	%edx, %ecx
	subl	%ebx, %ecx
	movl	%edx, %ebx
	movl	%eax, %r12d
	movl	%ecx, %edx
	jmp	LBB0_18
LBB0_12:
	movl	%ebx, %r12d
	addl	%eax, %r12d
	jmp	LBB0_13
LBB0_14:
	movl	%edx, %r12d
	subl	%ebx, %edx
LBB0_13:
	movl	%edx, %ebx
	movl	%eax, %edx
	jmp	LBB0_18
LBB0_15:
	movl	%edx, %r12d
	movl	%ebx, %edx
	addl	%eax, %edx
	jmp	LBB0_17
LBB0_16:
	movl	%edx, %r12d
	subl	%ebx, %r12d
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_8:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%edx, %edx
LBB0_18:
	movq	_CIE1931_CURVE@GOTPCREL(%rip), %r13
	movslq	%edx, %rdi
	shlq	$2, %rdi
	addq	(%r13), %rdi
	callq	_pgm_read_byte
	movl	%eax, %r15d
	movslq	%ebx, %rdi
	shlq	$2, %rdi
	addq	(%r13), %rdi
	callq	_pgm_read_byte
	movl	%eax, %ebx
	movslq	%r12d, %rdi
	shlq	$2, %rdi
	addq	(%r13), %rdi
	callq	_pgm_read_byte
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setrgb                         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_led,8,3                        ## @led
	.comm	_RGBLIGHT_FLED1,8,3             ## @RGBLIGHT_FLED1
	.comm	_fled_hs,8,3                    ## @fled_hs
	.comm	_RGBLIGHT_FLED2,8,3             ## @RGBLIGHT_FLED2
	.comm	_RGBLIGHT_LIMIT_VAL,4,2         ## @RGBLIGHT_LIMIT_VAL
	.comm	_CIE1931_CURVE,8,3              ## @CIE1931_CURVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sethsv                         ; -- Begin function sethsv
	.p2align	2
_sethsv:                                ; @sethsv
	.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
	mov	x19, x3
Lloh0:
	adrp	x8, _led@GOTPAGE
Lloh1:
	ldr	x8, [x8, _led@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _RGBLIGHT_FLED1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RGBLIGHT_FLED1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x8, x9, lsl #2
	cmp	x9, x3
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, _RGBLIGHT_FLED2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RGBLIGHT_FLED2@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _fled_hs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _fled_hs@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	w0, [x8, #8]
	add	x8, x8, #12
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _fled_hs@GOTPAGE
Lloh13:
	ldr	x8, [x8, _fled_hs@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	w0, [x8], #4
LBB0_4:
	str	w1, [x8]
LBB0_5:
Lloh15:
	adrp	x8, _RGBLIGHT_LIMIT_VAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RGBLIGHT_LIMIT_VAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w2
	csel	w8, w8, w2, lt
	cbz	w1, LBB0_9
; %bb.6:
	mov	w11, #34953
	movk	w11, #34952, lsl #16
	smull	x9, w0, w11
	lsr	x9, x9, #32
	add	w9, w9, w0
	asr	w10, w9, #5
	add	w10, w10, w9, lsr #31
	cmp	w10, #5
	b.hi	LBB0_16
; %bb.7:
	mov	w9, #255
	sub	w9, w9, w1
	mul	w9, w8, w9
	asr	w9, w9, #8
	sub	w12, w8, w9
	mov	w13, #60
	msub	w13, w10, w13, w0
	mul	w12, w12, w13
	smull	x11, w12, w11
	lsr	x11, x11, #32
	add	w11, w11, w12
	asr	w12, w11, #5
	add	w11, w12, w11, lsr #31
Lloh18:
	adrp	x12, lJTI0_0@PAGE
Lloh19:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_8
	ldrb	w14, [x12, x10]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_8:
	add	w21, w11, w9
	mov	x22, x9
	b	LBB0_17
LBB0_9:
	mov	x21, x8
	mov	x22, x8
	b	LBB0_17
LBB0_10:
	mov	x21, x8
	sub	w8, w8, w11
	mov	x22, x9
	b	LBB0_17
LBB0_11:
	add	w22, w11, w9
	mov	x21, x8
	mov	x8, x9
	b	LBB0_17
LBB0_12:
	sub	w21, w8, w11
	mov	x22, x8
	mov	x8, x9
	b	LBB0_17
LBB0_13:
	mov	x22, x8
	add	w8, w11, w9
	b	LBB0_15
LBB0_14:
	sub	w22, w8, w11
LBB0_15:
	mov	x21, x9
	b	LBB0_17
LBB0_16:
	mov	w21, #0
	mov	w22, #0
	mov	w8, #0
LBB0_17:
Lloh20:
	adrp	x23, _CIE1931_CURVE@GOTPAGE
Lloh21:
	ldr	x23, [x23, _CIE1931_CURVE@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, w8, sxtw #2
	bl	_pgm_read_byte
	mov	x20, x0
	ldr	x8, [x23]
	add	x0, x8, w21, sxtw #2
	bl	_pgm_read_byte
	mov	x21, x0
	ldr	x8, [x23]
	add	x0, x8, w22, sxtw #2
	bl	_pgm_read_byte
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	x3, 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	_setrgb
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
                                        ; -- End function
	.comm	_led,8,3                        ; @led
	.comm	_RGBLIGHT_FLED1,8,3             ; @RGBLIGHT_FLED1
	.comm	_fled_hs,8,3                    ; @fled_hs
	.comm	_RGBLIGHT_FLED2,8,3             ; @RGBLIGHT_FLED2
	.comm	_RGBLIGHT_LIMIT_VAL,4,2         ; @RGBLIGHT_LIMIT_VAL
	.comm	_CIE1931_CURVE,8,3              ; @CIE1931_CURVE
.subsections_via_symbols
