	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_layer_state_set_user           ## -- Begin function layer_state_set_user
	.p2align	4, 0x90
_layer_state_set_user:                  ## @layer_state_set_user
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	callq	_biton32
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rgblight_sethsv_noeeprom_blue
	jmp	LBB0_10
LBB0_9:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rgblight_sethsv_noeeprom_magenta
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
	callq	_rgblight_sethsv_noeeprom_red
	movq	_RGBLIGHT_MODE_BREATHING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$3, %edi
	callq	_rgblight_mode_noeeprom
	movq	_PLOVER_MODE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.4:
	movl	$1, %r14d
	jmp	LBB0_12
LBB0_8:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rgblight_sethsv_noeeprom_yellow
	jmp	LBB0_10
LBB0_7:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rgblight_sethsv_noeeprom_cyan
	jmp	LBB0_10
LBB0_5:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rgblight_sethsv_noeeprom_red
LBB0_10:
	movq	_RGBLIGHT_MODE_KNIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$2, %edi
LBB0_11:
	callq	_rgblight_mode_noeeprom
	movq	_PLOVER_MODE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
LBB0_12:
	xorl	%eax, %eax
	callq	_plover_toggle
	movq	_PLOVER_MODE@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rgblight_sethsv_noeeprom_green
	movq	_RGBLIGHT_MODE_STATIC_LIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_RGBLIGHT_MODE_STATIC_LIGHT,4,2 ## @RGBLIGHT_MODE_STATIC_LIGHT
	.comm	_PLOVER_MODE,4,2                ## @PLOVER_MODE
	.comm	_RGBLIGHT_MODE_BREATHING,4,2    ## @RGBLIGHT_MODE_BREATHING
	.comm	_RGBLIGHT_MODE_KNIGHT,4,2       ## @RGBLIGHT_MODE_KNIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_layer_state_set_user           ; -- Begin function layer_state_set_user
	.p2align	2
_layer_state_set_user:                  ; @layer_state_set_user
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_biton32
	sub	w8, w0, #128
	cmp	w8, #9
	b.hi	LBB0_13
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	bl	_rgblight_sethsv_noeeprom_blue
	b	LBB0_9
LBB0_3:
	bl	_rgblight_sethsv_noeeprom_magenta
	b	LBB0_9
LBB0_4:
	bl	_rgblight_sethsv_noeeprom_red
Lloh2:
	adrp	x8, _RGBLIGHT_MODE_BREATHING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RGBLIGHT_MODE_BREATHING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w0, w8, #3
	bl	_rgblight_mode_noeeprom
Lloh5:
	adrp	x8, _PLOVER_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PLOVER_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbnz	w8, LBB0_13
; %bb.5:
	mov	w20, #1
	b	LBB0_12
LBB0_6:
	bl	_rgblight_sethsv_noeeprom_yellow
	b	LBB0_9
LBB0_7:
	bl	_rgblight_sethsv_noeeprom_cyan
	b	LBB0_9
LBB0_8:
	bl	_rgblight_sethsv_noeeprom_red
LBB0_9:
Lloh8:
	adrp	x8, _RGBLIGHT_MODE_KNIGHT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RGBLIGHT_MODE_KNIGHT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w0, w8, #2
LBB0_10:
	bl	_rgblight_mode_noeeprom
Lloh11:
	adrp	x8, _PLOVER_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PLOVER_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	w8, LBB0_13
; %bb.11:
	mov	w20, #0
LBB0_12:
	bl	_plover_toggle
Lloh14:
	adrp	x8, _PLOVER_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PLOVER_MODE@GOTPAGEOFF]
Lloh16:
	str	w20, [x8]
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	_rgblight_sethsv_noeeprom_green
Lloh17:
	adrp	x8, _RGBLIGHT_MODE_STATIC_LIGHT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RGBLIGHT_MODE_STATIC_LIGHT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_RGBLIGHT_MODE_STATIC_LIGHT,4,2 ; @RGBLIGHT_MODE_STATIC_LIGHT
	.comm	_PLOVER_MODE,4,2                ; @PLOVER_MODE
	.comm	_RGBLIGHT_MODE_BREATHING,4,2    ; @RGBLIGHT_MODE_BREATHING
	.comm	_RGBLIGHT_MODE_KNIGHT,4,2       ; @RGBLIGHT_MODE_KNIGHT
.subsections_via_symbols
