	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_record_user            ## -- Begin function process_record_user
	.p2align	4, 0x90
_process_record_user:                   ## @process_record_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	%rsi, %rdi
	callq	_rgb_matrix_record_key_press
	addl	$-128, %ebx
	cmpl	$18, %ebx
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.3:
	movq	_MODS_SHIFT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_59
## %bb.4:
	movq	_MODS_CTRL@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_59
## %bb.5:
	movq	_usb_extra_manual@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_59
LBB0_6:
	movl	$1, %r14d
	jmp	LBB0_59
LBB0_7:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.8:
	movq	_MODS_SHIFT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_59
## %bb.9:
	movq	_MODS_CTRL@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_59
## %bb.10:
	movq	_usb_gcr_auto@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_59
LBB0_11:
	cmpl	$0, (%r15)
	je	LBB0_54
## %bb.12:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_timer_read32
	movl	%eax, _process_record_user.key_timer(%rip)
	jmp	LBB0_59
LBB0_13:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.14:
	movq	_led_animation_direction@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	sete	%cl
	jmp	LBB0_58
LBB0_15:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.16:
	movq	_led_enabled@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	movl	%edi, (%rax)
	callq	_I2C3733_Control_Set
	jmp	LBB0_59
LBB0_17:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.18:
	movq	_led_lighting_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	_LED_MODE_MAX_INDEX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jl	LBB0_59
## %bb.19:
	movq	_LED_MODE_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_58
LBB0_20:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.21:
	movq	_led_animation_breathing@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	sete	%cl
	movl	%ecx, (%rax)
	jne	LBB0_59
## %bb.22:
	movq	_gcr_desired@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_gcr_breathe@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_BREATHE_MIN_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_led_animation_breathe_cur@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_breathe_dir@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_59
LBB0_23:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.24:
	movq	_led_animation_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jne	LBB0_26
## %bb.25:
	movq	_led_setups_count@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_26:
	decl	%ecx
	jmp	LBB0_58
LBB0_27:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.28:
	movq	_led_animation_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_led_setups_count@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	decl	%edx
	cmpl	%edx, %ecx
	jne	LBB0_57
## %bb.29:
	movl	$0, (%rax)
	jmp	LBB0_59
LBB0_30:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.31:
	movq	_ANIMATION_SPEED_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_led_animation_speed@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	jmp	LBB0_59
LBB0_32:
	cmpl	$0, (%r15)
	je	LBB0_53
## %bb.33:
	movq	_ANIMATION_SPEED_STEP@GOTPCREL(%rip), %rax
	movq	_led_animation_speed@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subl	(%rax), %edx
	xorl	%r14d, %r14d
	testl	%edx, %edx
	cmovlel	%r14d, %edx
	movl	%edx, (%rcx)
	jmp	LBB0_59
LBB0_34:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.35:
	movq	_led_enabled@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, %edi
	callq	_I2C3733_Control_Set
	jmp	LBB0_59
LBB0_36:
	cmpl	$0, (%r15)
	je	LBB0_53
## %bb.37:
	movq	_led_enabled@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_I2C3733_Control_Set
	jmp	LBB0_59
LBB0_38:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.39:
	movq	_LED_GCR_STEP@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_LED_GCR_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_gcr_desired@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	movq	%rdx, %rdi
	subq	%rax, %rdi
	addq	%rcx, %rax
	cmpq	%rdi, %rcx
	cmovgq	%rdx, %rax
	movq	%rax, (%rsi)
	jmp	LBB0_42
LBB0_40:
	cmpl	$0, (%r15)
	je	LBB0_53
## %bb.41:
	movq	_LED_GCR_STEP@GOTPCREL(%rip), %rax
	movq	_gcr_desired@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%r14d, %r14d
	subq	(%rax), %rdx
	movl	$0, %eax
	cmovgeq	%rdx, %rax
	movq	%rax, (%rcx)
LBB0_42:
	movq	_led_animation_breathing@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_59
## %bb.43:
	movq	_gcr_breathe@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_59
LBB0_53:
	xorl	%r14d, %r14d
	jmp	LBB0_59
LBB0_44:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.45:
	movq	_debug_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_59
LBB0_46:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.47:
	movq	_debug_matrix@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_59
LBB0_48:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.49:
	movq	_debug_mouse@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_59
LBB0_50:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_59
## %bb.51:
	movq	_debug_keyboard@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_59
LBB0_54:
	movl	_process_record_user.key_timer(%rip), %edi
	callq	_timer_elapsed32
	xorl	%r14d, %r14d
	cmpl	$500, %eax                      ## imm = 0x1F4
	jl	LBB0_59
## %bb.55:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_reset_keyboard
	jmp	LBB0_59
LBB0_57:
	incl	%ecx
LBB0_58:
	movl	%ecx, (%rax)
LBB0_59:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_44, LBB0_44-LJTI0_0
.set L0_0_set_46, LBB0_46-LJTI0_0
.set L0_0_set_48, LBB0_48-LJTI0_0
.set L0_0_set_50, LBB0_50-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_20
	.long	L0_0_set_23
	.long	L0_0_set_27
	.long	L0_0_set_30
	.long	L0_0_set_32
	.long	L0_0_set_34
	.long	L0_0_set_36
	.long	L0_0_set_38
	.long	L0_0_set_40
	.long	L0_0_set_44
	.long	L0_0_set_46
	.long	L0_0_set_48
	.long	L0_0_set_50
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_process_record_user.key_timer,4,2 ## @process_record_user.key_timer
	.comm	_LED_GCR_STEP,8,3               ## @LED_GCR_STEP
	.comm	_LED_GCR_MAX,8,3                ## @LED_GCR_MAX
	.comm	_gcr_desired,8,3                ## @gcr_desired
	.comm	_led_animation_breathing,4,2    ## @led_animation_breathing
	.comm	_gcr_breathe,8,3                ## @gcr_breathe
	.comm	_led_animation_id,4,2           ## @led_animation_id
	.comm	_led_setups_count,4,2           ## @led_setups_count
	.comm	_ANIMATION_SPEED_STEP,4,2       ## @ANIMATION_SPEED_STEP
	.comm	_led_animation_speed,4,2        ## @led_animation_speed
	.comm	_led_lighting_mode,4,2          ## @led_lighting_mode
	.comm	_LED_MODE_MAX_INDEX,4,2         ## @LED_MODE_MAX_INDEX
	.comm	_LED_MODE_NORMAL,4,2            ## @LED_MODE_NORMAL
	.comm	_led_enabled,4,2                ## @led_enabled
	.comm	_BREATHE_MIN_STEP,4,2           ## @BREATHE_MIN_STEP
	.comm	_led_animation_breathe_cur,4,2  ## @led_animation_breathe_cur
	.comm	_breathe_dir,4,2                ## @breathe_dir
	.comm	_led_animation_direction,4,2    ## @led_animation_direction
	.comm	_MODS_SHIFT,4,2                 ## @MODS_SHIFT
	.comm	_MODS_CTRL,4,2                  ## @MODS_CTRL
	.comm	_usb_extra_manual,4,2           ## @usb_extra_manual
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB extra port manual mode"

	.comm	_usb_gcr_auto,4,2               ## @usb_gcr_auto
L_.str.1:                               ## @.str.1
	.asciz	"USB GCR auto mode"

	.comm	_debug_enable,4,2               ## @debug_enable
L_.str.2:                               ## @.str.2
	.asciz	"Debug mode"

	.comm	_debug_matrix,4,2               ## @debug_matrix
L_.str.3:                               ## @.str.3
	.asciz	"Debug matrix"

	.comm	_debug_keyboard,4,2             ## @debug_keyboard
L_.str.4:                               ## @.str.4
	.asciz	"Debug keyboard"

	.comm	_debug_mouse,4,2                ## @debug_mouse
L_.str.5:                               ## @.str.5
	.asciz	"Debug mouse"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_record_user            ; -- Begin function process_record_user
	.p2align	2
_process_record_user:                   ; @process_record_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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_rgb_matrix_record_key_press
	sub	w8, w20, #128
	cmp	w8, #18
	b.hi	LBB0_4
; %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:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _MODS_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MODS_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _MODS_CTRL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MODS_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	ccmp	w10, #0, #4, ne
	b.eq	LBB0_49
; %bb.3:
Lloh8:
	adrp	x8, _usb_extra_manual@GOTPAGE
Lloh9:
	ldr	x8, [x8, _usb_extra_manual@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_TOGGLE_FLAG_AND_PRINT
	b	LBB0_49
LBB0_4:
	mov	w0, #1
	b	LBB0_50
LBB0_5:
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _MODS_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MODS_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _MODS_CTRL@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MODS_CTRL@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	ccmp	w10, #0, #4, ne
	b.eq	LBB0_49
; %bb.6:
Lloh19:
	adrp	x8, _usb_gcr_auto@GOTPAGE
Lloh20:
	ldr	x8, [x8, _usb_gcr_auto@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_TOGGLE_FLAG_AND_PRINT
	b	LBB0_49
LBB0_7:
	ldr	w8, [x19]
	cbz	w8, LBB0_47
; %bb.8:
	bl	_timer_read32
	mov	x8, x0
	mov	w0, #0
	adrp	x9, _process_record_user.key_timer@PAGE
	str	w8, [x9, _process_record_user.key_timer@PAGEOFF]
	b	LBB0_50
LBB0_9:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.10:
	mov	w0, #0
Lloh24:
	adrp	x8, _led_animation_direction@GOTPAGE
Lloh25:
	ldr	x8, [x8, _led_animation_direction@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x8]
	b	LBB0_50
LBB0_11:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.12:
Lloh26:
	adrp	x8, _led_enabled@GOTPAGE
Lloh27:
	ldr	x8, [x8, _led_enabled@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #0
	cset	w0, eq
	str	w0, [x8]
	bl	_I2C3733_Control_Set
	b	LBB0_49
LBB0_13:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.14:
Lloh28:
	adrp	x8, _led_lighting_mode@GOTPAGE
Lloh29:
	ldr	x8, [x8, _led_lighting_mode@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
Lloh30:
	adrp	x10, _LED_MODE_MAX_INDEX@GOTPAGE
Lloh31:
	ldr	x10, [x10, _LED_MODE_MAX_INDEX@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	cmp	w9, w10
	b.lt	LBB0_49
; %bb.15:
	mov	w0, #0
Lloh33:
	adrp	x9, _LED_MODE_NORMAL@GOTPAGE
Lloh34:
	ldr	x9, [x9, _LED_MODE_NORMAL@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	str	w9, [x8]
	b	LBB0_50
LBB0_16:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.17:
Lloh36:
	adrp	x8, _led_animation_breathing@GOTPAGE
Lloh37:
	ldr	x8, [x8, _led_animation_breathing@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #0
	cset	w10, eq
	str	w10, [x8]
	cbnz	w9, LBB0_49
; %bb.18:
	mov	w0, #0
Lloh38:
	adrp	x8, _gcr_desired@GOTPAGE
Lloh39:
	ldr	x8, [x8, _gcr_desired@GOTPAGEOFF]
Lloh40:
	adrp	x9, _gcr_breathe@GOTPAGE
Lloh41:
	ldr	x9, [x9, _gcr_breathe@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
Lloh43:
	str	x8, [x9]
Lloh44:
	adrp	x8, _BREATHE_MIN_STEP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BREATHE_MIN_STEP@GOTPAGEOFF]
Lloh46:
	adrp	x9, _led_animation_breathe_cur@GOTPAGE
Lloh47:
	ldr	x9, [x9, _led_animation_breathe_cur@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	str	w8, [x9]
Lloh50:
	adrp	x8, _breathe_dir@GOTPAGE
Lloh51:
	ldr	x8, [x8, _breathe_dir@GOTPAGEOFF]
	mov	w9, #1
Lloh52:
	str	w9, [x8]
	b	LBB0_50
LBB0_19:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.20:
Lloh53:
	adrp	x8, _led_animation_id@GOTPAGE
Lloh54:
	ldr	x8, [x8, _led_animation_id@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_52
; %bb.21:
	mov	w0, #0
	b	LBB0_53
LBB0_22:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.23:
Lloh55:
	adrp	x8, _led_animation_id@GOTPAGE
Lloh56:
	ldr	x8, [x8, _led_animation_id@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh57:
	adrp	x10, _led_setups_count@GOTPAGE
Lloh58:
	ldr	x10, [x10, _led_setups_count@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x10]
	sub	w10, w10, #1
	cmp	w9, w10
	b.ne	LBB0_51
; %bb.24:
	mov	w0, #0
	str	wzr, [x8]
	b	LBB0_50
LBB0_25:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.26:
	mov	w0, #0
Lloh60:
	adrp	x8, _ANIMATION_SPEED_STEP@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ANIMATION_SPEED_STEP@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _led_animation_speed@GOTPAGE
Lloh64:
	ldr	x9, [x9, _led_animation_speed@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	b	LBB0_50
LBB0_27:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.28:
	mov	w0, #0
Lloh65:
	adrp	x8, _ANIMATION_SPEED_STEP@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ANIMATION_SPEED_STEP@GOTPAGEOFF]
Lloh67:
	adrp	x9, _led_animation_speed@GOTPAGE
Lloh68:
	ldr	x9, [x9, _led_animation_speed@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	ldr	w10, [x9]
	sub	w8, w10, w8
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	str	w8, [x9]
	b	LBB0_50
LBB0_29:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.30:
Lloh70:
	adrp	x8, _led_enabled@GOTPAGE
Lloh71:
	ldr	x8, [x8, _led_enabled@GOTPAGEOFF]
	mov	w9, #1
Lloh72:
	str	w9, [x8]
	mov	w0, #1
	bl	_I2C3733_Control_Set
	b	LBB0_49
LBB0_31:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.32:
Lloh73:
	adrp	x8, _led_enabled@GOTPAGE
Lloh74:
	ldr	x8, [x8, _led_enabled@GOTPAGEOFF]
Lloh75:
	str	wzr, [x8]
	mov	w0, #0
	bl	_I2C3733_Control_Set
	b	LBB0_49
LBB0_33:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.34:
Lloh76:
	adrp	x8, _LED_GCR_STEP@GOTPAGE
Lloh77:
	ldr	x8, [x8, _LED_GCR_STEP@GOTPAGEOFF]
Lloh78:
	ldr	x8, [x8]
Lloh79:
	adrp	x9, _LED_GCR_MAX@GOTPAGE
Lloh80:
	ldr	x9, [x9, _LED_GCR_MAX@GOTPAGEOFF]
Lloh81:
	ldr	x9, [x9]
Lloh82:
	adrp	x10, _gcr_desired@GOTPAGE
Lloh83:
	ldr	x10, [x10, _gcr_desired@GOTPAGEOFF]
	ldr	x11, [x10]
	add	x12, x11, x8
	sub	x11, x9, x11
	cmp	x8, x11
	csel	x8, x9, x12, gt
	str	x8, [x10]
	b	LBB0_37
LBB0_35:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.36:
Lloh84:
	adrp	x8, _LED_GCR_STEP@GOTPAGE
Lloh85:
	ldr	x8, [x8, _LED_GCR_STEP@GOTPAGEOFF]
Lloh86:
	ldr	x8, [x8]
Lloh87:
	adrp	x9, _gcr_desired@GOTPAGE
Lloh88:
	ldr	x9, [x9, _gcr_desired@GOTPAGEOFF]
	ldr	x10, [x9]
	subs	x8, x10, x8
	csel	x8, xzr, x8, lt
	str	x8, [x9]
LBB0_37:
Lloh89:
	adrp	x9, _led_animation_breathing@GOTPAGE
Lloh90:
	ldr	x9, [x9, _led_animation_breathing@GOTPAGEOFF]
Lloh91:
	ldr	w9, [x9]
	cbz	w9, LBB0_49
; %bb.38:
	mov	w0, #0
Lloh92:
	adrp	x9, _gcr_breathe@GOTPAGE
Lloh93:
	ldr	x9, [x9, _gcr_breathe@GOTPAGEOFF]
Lloh94:
	str	x8, [x9]
	b	LBB0_50
LBB0_39:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.40:
Lloh95:
	adrp	x8, _debug_enable@GOTPAGE
Lloh96:
	ldr	x8, [x8, _debug_enable@GOTPAGEOFF]
Lloh97:
	ldr	w0, [x8]
Lloh98:
	adrp	x1, l_.str.2@PAGE
Lloh99:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_TOGGLE_FLAG_AND_PRINT
	b	LBB0_49
LBB0_41:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.42:
Lloh100:
	adrp	x8, _debug_matrix@GOTPAGE
Lloh101:
	ldr	x8, [x8, _debug_matrix@GOTPAGEOFF]
Lloh102:
	ldr	w0, [x8]
Lloh103:
	adrp	x1, l_.str.3@PAGE
Lloh104:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_TOGGLE_FLAG_AND_PRINT
	b	LBB0_49
LBB0_43:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.44:
Lloh105:
	adrp	x8, _debug_mouse@GOTPAGE
Lloh106:
	ldr	x8, [x8, _debug_mouse@GOTPAGEOFF]
Lloh107:
	ldr	w0, [x8]
Lloh108:
	adrp	x1, l_.str.5@PAGE
Lloh109:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_TOGGLE_FLAG_AND_PRINT
	b	LBB0_49
LBB0_45:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.46:
Lloh110:
	adrp	x8, _debug_keyboard@GOTPAGE
Lloh111:
	ldr	x8, [x8, _debug_keyboard@GOTPAGEOFF]
Lloh112:
	ldr	w0, [x8]
Lloh113:
	adrp	x1, l_.str.4@PAGE
Lloh114:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_TOGGLE_FLAG_AND_PRINT
	b	LBB0_49
LBB0_47:
Lloh115:
	adrp	x8, _process_record_user.key_timer@PAGE
Lloh116:
	ldr	w0, [x8, _process_record_user.key_timer@PAGEOFF]
	bl	_timer_elapsed32
	cmp	w0, #500
	b.lt	LBB0_49
; %bb.48:
	bl	_reset_keyboard
LBB0_49:
	mov	w0, #0
LBB0_50:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_51:
	mov	w0, #0
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_50
LBB0_52:
	mov	w0, #0
Lloh117:
	adrp	x9, _led_setups_count@GOTPAGE
Lloh118:
	ldr	x9, [x9, _led_setups_count@GOTPAGEOFF]
Lloh119:
	ldr	w9, [x9]
LBB0_53:
	sub	w9, w9, #1
	str	w9, [x8]
	b	LBB0_50
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh69
	.loh AdrpLdrGotStr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotStr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotStr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdr	Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_27-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_31-LBB0_2)>>2
	.byte	(LBB0_33-LBB0_2)>>2
	.byte	(LBB0_35-LBB0_2)>>2
	.byte	(LBB0_39-LBB0_2)>>2
	.byte	(LBB0_41-LBB0_2)>>2
	.byte	(LBB0_43-LBB0_2)>>2
	.byte	(LBB0_45-LBB0_2)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_process_record_user.key_timer,4,2 ; @process_record_user.key_timer
	.comm	_LED_GCR_STEP,8,3               ; @LED_GCR_STEP
	.comm	_LED_GCR_MAX,8,3                ; @LED_GCR_MAX
	.comm	_gcr_desired,8,3                ; @gcr_desired
	.comm	_led_animation_breathing,4,2    ; @led_animation_breathing
	.comm	_gcr_breathe,8,3                ; @gcr_breathe
	.comm	_led_animation_id,4,2           ; @led_animation_id
	.comm	_led_setups_count,4,2           ; @led_setups_count
	.comm	_ANIMATION_SPEED_STEP,4,2       ; @ANIMATION_SPEED_STEP
	.comm	_led_animation_speed,4,2        ; @led_animation_speed
	.comm	_led_lighting_mode,4,2          ; @led_lighting_mode
	.comm	_LED_MODE_MAX_INDEX,4,2         ; @LED_MODE_MAX_INDEX
	.comm	_LED_MODE_NORMAL,4,2            ; @LED_MODE_NORMAL
	.comm	_led_enabled,4,2                ; @led_enabled
	.comm	_BREATHE_MIN_STEP,4,2           ; @BREATHE_MIN_STEP
	.comm	_led_animation_breathe_cur,4,2  ; @led_animation_breathe_cur
	.comm	_breathe_dir,4,2                ; @breathe_dir
	.comm	_led_animation_direction,4,2    ; @led_animation_direction
	.comm	_MODS_SHIFT,4,2                 ; @MODS_SHIFT
	.comm	_MODS_CTRL,4,2                  ; @MODS_CTRL
	.comm	_usb_extra_manual,4,2           ; @usb_extra_manual
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB extra port manual mode"

	.comm	_usb_gcr_auto,4,2               ; @usb_gcr_auto
l_.str.1:                               ; @.str.1
	.asciz	"USB GCR auto mode"

	.comm	_debug_enable,4,2               ; @debug_enable
l_.str.2:                               ; @.str.2
	.asciz	"Debug mode"

	.comm	_debug_matrix,4,2               ; @debug_matrix
l_.str.3:                               ; @.str.3
	.asciz	"Debug matrix"

	.comm	_debug_keyboard,4,2             ; @debug_keyboard
l_.str.4:                               ; @.str.4
	.asciz	"Debug keyboard"

	.comm	_debug_mouse,4,2                ; @debug_mouse
l_.str.5:                               ; @.str.5
	.asciz	"Debug mouse"

.subsections_via_symbols
