	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clueboard_set_midi_led         ## -- Begin function clueboard_set_midi_led
	.p2align	4, 0x90
_clueboard_set_midi_led:                ## @clueboard_set_midi_led
	.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	%rsi, %r12
	movq	%rdi, %r15
	movq	_RGBLED_NUM@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_oct_hues@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edi
	movq	_led@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	%rbx, %rcx
	movl	$255, %esi
	movq	%r12, %rdx
	callq	_sethsv
	incq	%r13
	addq	$4, %rbx
	cmpq	(%r14), %r13
	jb	LBB0_2
LBB0_3:
	movq	_MAX_OCT@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jbe	LBB0_4
## %bb.5:
	movq	_oct_hues@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%r15,4), %r15d
	movl	$255, %r14d
	jmp	LBB0_6
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_6:
	movq	_led@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_sethsv
	movq	(%rbx), %rcx
	addq	$4, %rcx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_sethsv
	movq	(%rbx), %rcx
	addq	$8, %rcx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_sethsv
	movq	(%rbx), %rcx
	addq	$44, %rcx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_sethsv
	movq	(%rbx), %rcx
	addq	$48, %rcx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_sethsv
	movq	(%rbx), %rcx
	addq	$52, %rcx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_sethsv
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rgblight_set                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RGBLED_NUM,8,3                 ## @RGBLED_NUM
	.comm	_oct_hues,8,3                   ## @oct_hues
	.comm	_led,8,3                        ## @led
	.comm	_MAX_OCT,8,3                    ## @MAX_OCT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clueboard_set_midi_led         ; -- Begin function clueboard_set_midi_led
	.p2align	2
_clueboard_set_midi_led:                ; @clueboard_set_midi_led
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _RGBLED_NUM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RGBLED_NUM@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x22, _led@GOTPAGE
Lloh3:
	ldr	x22, [x22, _led@GOTPAGEOFF]
Lloh4:
	adrp	x21, _oct_hues@GOTPAGE
Lloh5:
	ldr	x21, [x21, _oct_hues@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x24, #0
	mov	x25, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x20, lsl #2]
	ldr	x8, [x22]
	add	x3, x8, x24
	mov	w1, #255
	mov	x2, x19
	bl	_sethsv
	add	x25, x25, #1
	ldr	x8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.lo	LBB0_2
LBB0_3:
Lloh6:
	adrp	x8, _MAX_OCT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_OCT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ls	LBB0_5
; %bb.4:
	ldr	x8, [x21]
	add	x8, x8, x20, lsl #2
	ldr	w21, [x8, #4]
	mov	w20, #255
	b	LBB0_6
LBB0_5:
	mov	x20, #0
	mov	x19, #0
	mov	w21, #0
LBB0_6:
	ldr	x3, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sethsv
	ldr	x8, [x22]
	add	x3, x8, #4
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sethsv
	ldr	x8, [x22]
	add	x3, x8, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sethsv
	ldr	x8, [x22]
	add	x3, x8, #44
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sethsv
	ldr	x8, [x22]
	add	x3, x8, #48
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sethsv
	ldr	x8, [x22]
	add	x3, x8, #52
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sethsv
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rgblight_set
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RGBLED_NUM,8,3                 ; @RGBLED_NUM
	.comm	_oct_hues,8,3                   ; @oct_hues
	.comm	_led,8,3                        ; @led
	.comm	_MAX_OCT,8,3                    ; @MAX_OCT
.subsections_via_symbols
