	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_effect_jellybean_raindrops ## -- Begin function backlight_effect_jellybean_raindrops
	.p2align	4, 0x90
_backlight_effect_jellybean_raindrops:  ## @backlight_effect_jellybean_raindrops
	.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
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_rand
	movq	_BACKLIGHT_LED_COUNT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	cltd
	idivl	%ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	movl	%edx, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_rand
	movzbl	%al, %r12d
	xorl	%eax, %eax
	callq	_rand
	movzbl	%al, %eax
	movq	_g_config@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	shlq	$32, %rax
	orq	%rax, %r12
	movq	%r12, %rdi
	callq	_hsv_to_rgb
	movq	%rax, %rcx
	shrq	$32, %rcx
	movl	%ebx, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	movl	%eax, %ecx
	callq	_backlight_set_color
	movl	(%r13), %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%ecx, %ebx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, %r14d
	jne	LBB0_5
	jmp	LBB0_4
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_tick,4,2                     ## @g_tick
	.comm	_BACKLIGHT_LED_COUNT,4,2        ## @BACKLIGHT_LED_COUNT
	.comm	_g_config,4,2                   ## @g_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_effect_jellybean_raindrops ; -- Begin function backlight_effect_jellybean_raindrops
	.p2align	2
_backlight_effect_jellybean_raindrops:  ; @backlight_effect_jellybean_raindrops
	.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, x0
	bl	_rand
Lloh0:
	adrp	x23, _BACKLIGHT_LED_COUNT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BACKLIGHT_LED_COUNT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w20, #0
	sdiv	w9, w0, w8
	msub	w24, w9, w8, w0
Lloh2:
	adrp	x25, _g_config@GOTPAGE
Lloh3:
	ldr	x25, [x25, _g_config@GOTPAGEOFF]
                                        ; implicit-def: $x21
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_rand
	and	w22, w0, #0xff
	bl	_rand
	and	w8, w0, #0xff
	ldr	w9, [x25]
	bfi	x22, x8, #32, #8
	and	x8, x21, #0xffffffff00000000
	orr	x21, x8, x9
	mov	x0, x22
	mov	x1, x21
	bl	_hsv_to_rgb
	mov	x3, x0
	lsr	x2, x0, #32
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_backlight_set_color
	ldr	w8, [x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	cmp	w20, w8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w19, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w24, w20
	b.ne	LBB0_3
	b	LBB0_2
LBB0_6:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_g_tick,4,2                     ; @g_tick
	.comm	_BACKLIGHT_LED_COUNT,4,2        ; @BACKLIGHT_LED_COUNT
	.comm	_g_config,4,2                   ; @g_config
.subsections_via_symbols
