	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgblight_setrgb_range          ## -- Begin function rgblight_setrgb_range
	.p2align	4, 0x90
_rgblight_setrgb_range:                 ## @rgblight_setrgb_range
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	%rcx, %r8
	jle	LBB0_11
## %bb.1:
	testq	%rcx, %rcx
	js	LBB0_11
## %bb.2:
	movq	_rgblight_config@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.3:
	movq	_RGBLED_NUM@GOTPCREL(%rip), %rax
	cmpq	%r8, (%rax)
	jl	LBB0_11
## %bb.4:
	cmpq	%rcx, %r8
	jle	LBB0_10
## %bb.5:
	movq	_led@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	%r8d, %eax
	subl	%ecx, %eax
	movq	%rcx, %r10
	notq	%r10
	testb	$1, %al
	je	LBB0_7
## %bb.6:
	movq	%rcx, %rax
	shlq	$5, %rax
	movq	%rdi, 24(%r9,%rax)
	movq	%rsi, 16(%r9,%rax)
	movq	%rdx, 8(%r9,%rax)
	incq	%rcx
LBB0_7:
	addq	%r8, %r10
	je	LBB0_10
## %bb.8:
	subq	%rcx, %r8
	shlq	$5, %rcx
	leaq	(%rcx,%r9), %rax
	addq	$56, %rax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, -32(%rax)
	movq	%rsi, -40(%rax)
	movq	%rdx, -48(%rax)
	movq	%rdi, (%rax)
	movq	%rsi, -8(%rax)
	movq	%rdx, -16(%rax)
	addq	$64, %rax
	addq	$-2, %r8
	jne	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	callq	_rgblight_set
	movl	$1, %edi
	popq	%rbp
	jmp	_wait_ms                        ## TAILCALL
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rgblight_config,4,2            ## @rgblight_config
	.comm	_RGBLED_NUM,8,3                 ## @RGBLED_NUM
	.comm	_led,8,3                        ## @led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rgblight_setrgb_range          ; -- Begin function rgblight_setrgb_range
	.p2align	2
_rgblight_setrgb_range:                 ; @rgblight_setrgb_range
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	x4, x3
	b.le	LBB0_6
; %bb.1:
	tbnz	x3, #63, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _rgblight_config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rgblight_config@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RGBLED_NUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RGBLED_NUM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, x4, #8, ne
	b.lt	LBB0_6
; %bb.3:
	subs	x9, x4, x3
	b.le	LBB0_12
; %bb.4:
Lloh6:
	adrp	x8, _led@GOTPAGE
Lloh7:
	ldr	x8, [x8, _led@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, #4
	b.hs	LBB0_7
; %bb.5:
	mov	x10, x3
	b	LBB0_10
LBB0_6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	and	x11, x9, #0xfffffffffffffffc
	add	x10, x11, x3
	add	x12, x8, x3, lsl #5
	add	x12, x12, #72
	mov	x13, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	stp	x1, x0, [x12, #-56]
	stp	x1, x0, [x12, #-24]
	stp	x1, x0, [x12, #8]
	stp	x1, x0, [x12, #40]
	stur	x2, [x12, #-64]
	stur	x2, [x12, #-32]
	str	x2, [x12]
	str	x2, [x12, #32]
	add	x12, x12, #128
	subs	x13, x13, #4
	b.ne	LBB0_8
; %bb.9:
	cmp	x9, x11
	b.eq	LBB0_12
LBB0_10:
	sub	x9, x4, x10
	add	x8, x8, x10, lsl #5
	add	x8, x8, #24
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	stp	x1, x0, [x8, #-8]
	stur	x2, [x8, #-16]
	add	x8, x8, #32
	subs	x9, x9, #1
	b.ne	LBB0_11
LBB0_12:
	bl	_rgblight_set
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_wait_ms
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_rgblight_config,4,2            ; @rgblight_config
	.comm	_RGBLED_NUM,8,3                 ; @RGBLED_NUM
	.comm	_led,8,3                        ; @led
.subsections_via_symbols
