	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_char                       ## -- Begin function add_char
	.p2align	4, 0x90
_add_char:                              ## @add_char
	.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	_cursor_pos@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_RGBLED_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %ecx
	jne	LBB0_1
## %bb.5:
	movl	$0, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reset_chars                    ## TAILCALL
LBB0_1:
	testl	%edi, %edi
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_rgblight_get_hue
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_rgblight_get_sat
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_rgblight_get_val
	movl	(%rbx), %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
LBB0_4:
	callq	_rgblight_sethsv_at
	incl	(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cursor_pos,4,2                 ## @cursor_pos
	.comm	_RGBLED_NUM,4,2                 ## @RGBLED_NUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_char                       ; -- Begin function add_char
	.p2align	2
_add_char:                              ; @add_char
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _cursor_pos@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cursor_pos@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh2:
	adrp	x8, _RGBLED_NUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RGBLED_NUM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w3, w8
	b.ne	LBB0_2
; %bb.1:
	str	wzr, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_reset_chars
LBB0_2:
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	b	LBB0_5
LBB0_4:
	bl	_rgblight_get_hue
	mov	x19, x0
	bl	_rgblight_get_sat
	mov	x20, x0
	bl	_rgblight_get_val
	mov	x2, x0
	ldr	w3, [x21]
	mov	x0, x19
	mov	x1, x20
LBB0_5:
	bl	_rgblight_sethsv_at
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cursor_pos,4,2                 ; @cursor_pos
	.comm	_RGBLED_NUM,4,2                 ; @RGBLED_NUM
.subsections_via_symbols
