	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_modal_leds                     ## -- Begin function modal_leds
	.p2align	4, 0x90
_modal_leds:                            ## @modal_leds
	.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
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_get_mods
	movl	%eax, %r14d
	movq	__COLEMAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_state_is
	testq	%rax, %rax
	movl	$355, %eax                      ## imm = 0x163
	movl	$305, %r12d                     ## imm = 0x131
	cmovel	%eax, %r12d
	movl	$255, %eax
	movl	$235, %r13d
	cmovel	%eax, %r13d
	movl	$20, %ebx
	cmovel	%r15d, %ebx
	movq	__NUMERIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_state_is
	leal	30(%rbx), %ecx
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	movq	_MOD_MASK_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	leal	-20(%r13), %edx
	leal	30(%rcx), %esi
	testl	%eax, %eax
	cmovel	%r13d, %edx
	cmovel	%ecx, %esi
	movq	_MOD_MASK_ALT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	leal	-100(%r12), %ecx
	leal	-20(%rdx), %ebx
	testl	%eax, %eax
	cmovel	%r12d, %ecx
	cmovel	%edx, %ebx
	leal	30(%rsi), %eax
	cmovel	%esi, %eax
	movq	_MOD_MASK_CTRL@GOTPCREL(%rip), %rdx
	andl	(%rdx), %r14d
	leal	-200(%rcx), %edi
	leal	-20(%rbx), %esi
	leal	30(%rax), %edx
	testl	%r14d, %r14d
	cmovel	%ecx, %edi
	cmovel	%ebx, %esi
	cmovel	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rgblight_sethsv_eeprom_helper
	movq	__leds_dirty@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__COLEMAK,4,2                   ## @_COLEMAK
	.comm	__NUMERIC,4,2                   ## @_NUMERIC
	.comm	_MOD_MASK_SHIFT,4,2             ## @MOD_MASK_SHIFT
	.comm	_MOD_MASK_ALT,4,2               ## @MOD_MASK_ALT
	.comm	_MOD_MASK_CTRL,4,2              ## @MOD_MASK_CTRL
	.comm	__leds_dirty,4,2                ## @_leds_dirty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_modal_leds                     ; -- Begin function modal_leds
	.p2align	2
_modal_leds:                            ; @modal_leds
	.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
	bl	_get_mods
	mov	x19, x0
Lloh0:
	adrp	x8, __COLEMAK@GOTPAGE
Lloh1:
	ldr	x8, [x8, __COLEMAK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_layer_state_is
	cmp	x0, #0
	mov	w8, #305
	mov	w9, #355
	csel	w20, w9, w8, eq
	mov	w8, #235
	mov	w9, #255
	csel	w21, w9, w8, eq
	mov	w8, #20
	csel	w22, wzr, w8, eq
Lloh3:
	adrp	x8, __NUMERIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, __NUMERIC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_layer_state_is
	add	w8, w22, #30
	cmp	x0, #0
	csel	w8, w22, w8, eq
Lloh6:
	adrp	x9, _MOD_MASK_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MOD_MASK_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w10, w21, #20
	add	w11, w8, #30
	tst	w9, w19
	csel	w9, w21, w10, eq
	csel	w8, w8, w11, eq
Lloh9:
	adrp	x10, _MOD_MASK_ALT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MOD_MASK_ALT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	sub	w11, w20, #100
	sub	w12, w9, #20
	add	w13, w8, #30
	tst	w10, w19
	csel	w10, w20, w11, eq
	csel	w9, w9, w12, eq
	csel	w8, w8, w13, eq
Lloh12:
	adrp	x11, _MOD_MASK_CTRL@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MOD_MASK_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	sub	w12, w10, #200
	sub	w13, w9, #20
	add	w14, w8, #30
	tst	w11, w19
	csel	w0, w10, w12, eq
	csel	w1, w9, w13, eq
	csel	w2, w8, w14, eq
	mov	w3, #0
	bl	_rgblight_sethsv_eeprom_helper
Lloh15:
	adrp	x8, __leds_dirty@GOTPAGE
Lloh16:
	ldr	x8, [x8, __leds_dirty@GOTPAGEOFF]
Lloh17:
	str	wzr, [x8]
	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 AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__COLEMAK,4,2                   ; @_COLEMAK
	.comm	__NUMERIC,4,2                   ; @_NUMERIC
	.comm	_MOD_MASK_SHIFT,4,2             ; @MOD_MASK_SHIFT
	.comm	_MOD_MASK_ALT,4,2               ; @MOD_MASK_ALT
	.comm	_MOD_MASK_CTRL,4,2              ; @MOD_MASK_CTRL
	.comm	__leds_dirty,4,2                ; @_leds_dirty
.subsections_via_symbols
