	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan_user               ## -- Begin function matrix_scan_user
	.p2align	4, 0x90
_matrix_scan_user:                      ## @matrix_scan_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
	movq	_layer_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_biton32
	movq	_c_lyr@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movl	_matrix_scan_user.is_leds_changes(%rip), %ebx
	movl	%eax, %edi
	callq	_set_layer_led
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	%ebx, _matrix_scan_user.is_leds_changes(%rip)
	xorl	%eax, %eax
	callq	_shifted_layer
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	%ebx, _matrix_scan_user.is_leds_changes(%rip)
	movl	(%r14), %edi
	callq	_rainbow_loop
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	%ebx, _matrix_scan_user.is_leds_changes(%rip)
	cmpl	$2, %ebx
	jl	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_rgblight_set
	movl	$1, _matrix_scan_user.is_leds_changes(%rip)
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_matrix_scan_keymap             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @matrix_scan_user.is_leds_changes
_matrix_scan_user.is_leds_changes:
	.long	1                               ## 0x1

	.comm	_layer_state,4,2                ## @layer_state
	.comm	_c_lyr,4,2                      ## @c_lyr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan_user               ; -- Begin function matrix_scan_user
	.p2align	2
_matrix_scan_user:                      ; @matrix_scan_user
	.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	x8, _layer_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _layer_state@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_biton32
Lloh3:
	adrp	x20, _c_lyr@GOTPAGE
Lloh4:
	ldr	x20, [x20, _c_lyr@GOTPAGEOFF]
	str	w0, [x20]
	adrp	x19, _matrix_scan_user.is_leds_changes@PAGE
	ldr	w21, [x19, _matrix_scan_user.is_leds_changes@PAGEOFF]
	bl	_set_layer_led
	lsl	w21, w21, w0
	str	w21, [x19, _matrix_scan_user.is_leds_changes@PAGEOFF]
	bl	_shifted_layer
	lsl	w21, w21, w0
	str	w21, [x19, _matrix_scan_user.is_leds_changes@PAGEOFF]
	ldr	w0, [x20]
	bl	_rainbow_loop
	lsl	w8, w21, w0
	str	w8, [x19, _matrix_scan_user.is_leds_changes@PAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	bl	_rgblight_set
	mov	w8, #1
	str	w8, [x19, _matrix_scan_user.is_leds_changes@PAGEOFF]
LBB0_2:
	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	_matrix_scan_keymap
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @matrix_scan_user.is_leds_changes
_matrix_scan_user.is_leds_changes:
	.long	1                               ; 0x1

	.comm	_layer_state,4,2                ; @layer_state
	.comm	_c_lyr,4,2                      ; @c_lyr
.subsections_via_symbols
