	.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	%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
	movq	_layer_state@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	setge	%al
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpl	$4, %ecx
	movl	$2, %ecx
	cmovll	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_calculate_keystroke_distance
	movq	_KEY_LED_COUNT@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.1:
	xorl	%ebx, %ebx
	movq	_USER_LED@GOTPCREL(%rip), %r13
	movq	_USER_CONFIG@GOTPCREL(%rip), %r15
	leaq	LJTI0_0(%rip), %r14
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %edi
	callq	_unset_user_led_rgb
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	cmpl	$1, (%rax,%rbx,4)
	jg	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ecx
	decl	%ecx
	cmpl	$5, %ecx
	ja	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DISTANCE_FROM_LAST_KEYSTROKE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%rbx,4), %eax
	movslq	(%r14,%rcx,4), %rcx
	addq	%r14, %rcx
	jmpq	*%rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_7
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_COLOR_PATTERN_RGB_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%ecx, %eax
	cltd
	idivl	4(%r15)
	cltd
	idivl	%ecx
	movq	_COLOR_PATTERNS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	leal	1(%rbx), %edi
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_set_user_led_rgb
	jmp	LBB0_13
LBB0_14:
	movl	_matrix_scan_user.last_layer(%rip), %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmpl	%ebx, %r14d
	je	LBB0_26
## %bb.15:
	cmpl	$1, %ebx
	je	LBB0_18
## %bb.16:
	cmpl	$2, %ebx
	jne	LBB0_20
## %bb.17:
	movl	$133, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$130, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$141, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$143, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$132, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$142, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$129, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$131, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$139, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$135, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$140, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$138, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$137, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movl	$136, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movq	_KC_TAB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	callq	_unset_indicator_led_rgb
	movq	_KC_CAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_19
LBB0_18:
	movl	$133, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	callq	_unset_indicator_led_rgb
	movl	$130, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	callq	_unset_indicator_led_rgb
	movl	$141, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	callq	_unset_indicator_led_rgb
	movl	$143, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	callq	_unset_indicator_led_rgb
	movl	$132, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	callq	_unset_indicator_led_rgb
	movl	$142, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	callq	_unset_indicator_led_rgb
	movl	$134, %edi
LBB0_19:
	callq	_ktli
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_unset_indicator_led_rgb
LBB0_20:
	cmpl	$1, %r14d
	je	LBB0_23
## %bb.21:
	cmpl	$2, %r14d
	jne	LBB0_25
## %bb.22:
	movl	$133, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$130, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$141, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$143, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$132, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$142, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$129, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$131, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$139, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$135, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$140, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$138, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$137, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$136, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movq	_KC_TAB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movq	_KC_CAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	jmp	LBB0_24
LBB0_23:
	movl	$133, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$130, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$141, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$143, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$132, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$142, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
	movl	$134, %edi
	callq	_ktli
	movl	%eax, %edi
	movl	$1, %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
LBB0_24:
	xorl	%r8d, %r8d
	callq	_set_indicator_led_rgb
LBB0_25:
	xorl	%eax, %eax
	callq	_refresh_pattern_indicators
	xorl	%eax, %eax
	callq	_refresh_color_pattern_indicators
	movl	%r14d, _matrix_scan_user.last_layer(%rip)
LBB0_26:
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_29
## %bb.27:
	movl	_matrix_scan_user.scan_timer(%rip), %edi
	callq	_timer_elapsed32
	cmpl	$2001, %eax                     ## imm = 0x7D1
	jl	LBB0_30
## %bb.28:
	xorl	%eax, %eax
	callq	_timer_read32
	movl	%eax, _matrix_scan_user.scan_timer(%rip)
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movl	_matrix_scan_user.scan_timer(%rip), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_timer_elapsed32                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_matrix_scan_user.scan_timer,4,2 ## @matrix_scan_user.scan_timer
.zerofill __DATA,__bss,_matrix_scan_user.last_layer,4,2 ## @matrix_scan_user.last_layer
	.comm	_layer_state,4,2                ## @layer_state
	.comm	_KEY_LED_COUNT,4,2              ## @KEY_LED_COUNT
	.comm	_USER_LED,8,3                   ## @USER_LED
	.comm	_DISTANCE_FROM_LAST_KEYSTROKE,8,3 ## @DISTANCE_FROM_LAST_KEYSTROKE
	.comm	_USER_CONFIG,16,3               ## @USER_CONFIG
	.comm	_COLOR_PATTERN_RGB_COUNT,4,2    ## @COLOR_PATTERN_RGB_COUNT
	.comm	_COLOR_PATTERNS,8,3             ## @COLOR_PATTERNS
	.comm	_KC_TAB,4,2                     ## @KC_TAB
	.comm	_KC_CAPS,4,2                    ## @KC_CAPS
.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _layer_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _layer_state@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cmp	w20, #1
	cset	w8, gt
	mov	w9, #2
	cmp	w20, #3
	csel	w21, w9, w8, gt
	bl	_calculate_keystroke_distance
Lloh3:
	adrp	x19, _KEY_LED_COUNT@GOTPAGE
Lloh4:
	ldr	x19, [x19, _KEY_LED_COUNT@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x22, #0
Lloh5:
	adrp	x23, _USER_LED@GOTPAGE
Lloh6:
	ldr	x23, [x23, _USER_LED@GOTPAGEOFF]
Lloh7:
	adrp	x24, _DISTANCE_FROM_LAST_KEYSTROKE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _DISTANCE_FROM_LAST_KEYSTROKE@GOTPAGEOFF]
Lloh9:
	adrp	x25, _USER_CONFIG@GOTPAGE
Lloh10:
	ldr	x25, [x25, _USER_CONFIG@GOTPAGEOFF]
Lloh11:
	adrp	x26, lJTI0_0@PAGE
Lloh12:
	add	x26, x26, lJTI0_0@PAGEOFF
Lloh13:
	adrp	x27, _COLOR_PATTERN_RGB_COUNT@GOTPAGE
Lloh14:
	ldr	x27, [x27, _COLOR_PATTERN_RGB_COUNT@GOTPAGEOFF]
Lloh15:
	adrp	x28, _COLOR_PATTERNS@GOTPAGE
Lloh16:
	ldr	x28, [x28, _COLOR_PATTERNS@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_12
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w0, w22, #1
	bl	_unset_user_led_rgb
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x19]
	add	x22, x22, #1
	cmp	x22, x8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w8, [x8, x22, lsl #2]
	cmp	w8, #1
	b.gt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	sub	w9, w8, #1
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	add	x8, x8, x22, lsl #2
	ldr	w8, [x8, #4]
	adr	x10, LBB0_2
	ldrb	w11, [x26, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_11
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_12
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x27]
	mul	w8, w9, w8
	ldr	w10, [x25, #4]
	sdiv	w8, w8, w10
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	ldr	x9, [x28]
	ldr	x10, [x25, #8]
	ldr	x9, [x9, x10, lsl #3]
	ldr	x8, [x9, w8, sxtw #3]
	ldp	w1, w2, [x8]
	ldr	w3, [x8, #8]
	add	w0, w22, #1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w0, w22, #1
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_set_user_led_rgb
	b	LBB0_4
LBB0_14:
	adrp	x22, _matrix_scan_user.last_layer@PAGE
	ldr	w19, [x22, _matrix_scan_user.last_layer@PAGEOFF]
	cmp	w21, w19
	b.eq	LBB0_26
; %bb.15:
	cmp	w19, #1
	b.eq	LBB0_18
; %bb.16:
	cmp	w19, #2
	b.ne	LBB0_20
; %bb.17:
	mov	w0, #133
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #130
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #141
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #143
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #132
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #142
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #129
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #131
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #139
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #135
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #140
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #138
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #137
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
	mov	w0, #136
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
Lloh17:
	adrp	x8, _KC_TAB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KC_TAB@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_ktli
	mov	w1, #2
	bl	_unset_indicator_led_rgb
Lloh20:
	adrp	x8, _KC_CAPS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KC_CAPS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_18:
	mov	w0, #133
	bl	_ktli
	mov	w1, #1
	bl	_unset_indicator_led_rgb
	mov	w0, #130
	bl	_ktli
	mov	w1, #1
	bl	_unset_indicator_led_rgb
	mov	w0, #141
	bl	_ktli
	mov	w1, #1
	bl	_unset_indicator_led_rgb
	mov	w0, #143
	bl	_ktli
	mov	w1, #1
	bl	_unset_indicator_led_rgb
	mov	w0, #132
	bl	_ktli
	mov	w1, #1
	bl	_unset_indicator_led_rgb
	mov	w0, #142
	bl	_ktli
	mov	w1, #1
	bl	_unset_indicator_led_rgb
	mov	w0, #134
LBB0_19:
	bl	_ktli
	mov	x1, x19
	bl	_unset_indicator_led_rgb
LBB0_20:
	cmp	w21, #1
	b.eq	LBB0_23
; %bb.21:
	cmp	w21, #2
	b.ne	LBB0_25
; %bb.22:
	mov	w0, #133
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #130
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #141
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #143
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #132
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #142
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #129
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #131
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #139
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #135
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #140
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #138
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #137
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #136
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
Lloh23:
	adrp	x8, _KC_TAB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KC_TAB@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	bl	_set_indicator_led_rgb
Lloh26:
	adrp	x8, _KC_CAPS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _KC_CAPS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_ktli
	mov	w1, #2
	mov	w2, #0
	mov	w3, #255
	b	LBB0_24
LBB0_23:
	mov	w0, #133
	bl	_ktli
	mov	w1, #1
	mov	w2, #255
	mov	w3, #0
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #130
	bl	_ktli
	mov	w1, #1
	mov	w2, #255
	mov	w3, #0
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #141
	bl	_ktli
	mov	w1, #1
	mov	w2, #255
	mov	w3, #0
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #143
	bl	_ktli
	mov	w1, #1
	mov	w2, #255
	mov	w3, #0
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #132
	bl	_ktli
	mov	w1, #1
	mov	w2, #255
	mov	w3, #0
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #142
	bl	_ktli
	mov	w1, #1
	mov	w2, #255
	mov	w3, #0
	mov	w4, #0
	bl	_set_indicator_led_rgb
	mov	w0, #134
	bl	_ktli
	mov	w1, #1
	mov	w2, #255
	mov	w3, #0
LBB0_24:
	mov	w4, #0
	bl	_set_indicator_led_rgb
LBB0_25:
	bl	_refresh_pattern_indicators
	bl	_refresh_color_pattern_indicators
	str	w21, [x22, _matrix_scan_user.last_layer@PAGEOFF]
LBB0_26:
	cmp	w20, #1
	b.gt	LBB0_29
; %bb.27:
	adrp	x19, _matrix_scan_user.scan_timer@PAGE
	ldr	w0, [x19, _matrix_scan_user.scan_timer@PAGEOFF]
	bl	_timer_elapsed32
	cmp	w0, #2001
	b.lt	LBB0_30
; %bb.28:
	bl	_timer_read32
	str	w0, [x19, _matrix_scan_user.scan_timer@PAGEOFF]
LBB0_29:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_30:
	ldr	w0, [x19, _matrix_scan_user.scan_timer@PAGEOFF]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_timer_elapsed32
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_matrix_scan_user.scan_timer,4,2 ; @matrix_scan_user.scan_timer
.zerofill __DATA,__bss,_matrix_scan_user.last_layer,4,2 ; @matrix_scan_user.last_layer
	.comm	_layer_state,4,2                ; @layer_state
	.comm	_KEY_LED_COUNT,4,2              ; @KEY_LED_COUNT
	.comm	_USER_LED,8,3                   ; @USER_LED
	.comm	_DISTANCE_FROM_LAST_KEYSTROKE,8,3 ; @DISTANCE_FROM_LAST_KEYSTROKE
	.comm	_USER_CONFIG,16,3               ; @USER_CONFIG
	.comm	_COLOR_PATTERN_RGB_COUNT,4,2    ; @COLOR_PATTERN_RGB_COUNT
	.comm	_COLOR_PATTERNS,8,3             ; @COLOR_PATTERNS
	.comm	_KC_TAB,4,2                     ; @KC_TAB
	.comm	_KC_CAPS,4,2                    ; @KC_CAPS
.subsections_via_symbols
