	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $edi killed $edi def $rdi
	movl	$1, %ebx
	addl	$-128, %edi
	cmpl	$10, %edi
	ja	LBB0_32
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	$0, (%rsi)
	je	LBB0_32
## %bb.3:
	movq	_MODS_SHIFT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_32
## %bb.4:
	movq	_MODS_CTRL@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_32
## %bb.5:
	movq	_usb_extra_manual@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_32
LBB0_6:
	xorl	%ebx, %ebx
	cmpl	$0, (%rsi)
	je	LBB0_32
## %bb.7:
	movq	_MODS_SHIFT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_32
## %bb.8:
	movq	_MODS_CTRL@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_32
## %bb.9:
	movq	_usb_gcr_auto@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_32
LBB0_22:
	cmpl	$0, (%rsi)
	je	LBB0_23
## %bb.24:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rgb_matrix_get_flags
	cmpl	$132, %eax
	je	LBB0_30
## %bb.25:
	cmpl	$133, %eax
	je	LBB0_29
## %bb.26:
	cmpl	$134, %eax
	jne	LBB0_31
## %bb.27:
	movl	$133, %edi
	jmp	LBB0_28
LBB0_18:
	cmpl	$0, (%rsi)
	je	LBB0_20
## %bb.19:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_timer_read32
	movl	%eax, _process_record_user.key_timer(%rip)
	jmp	LBB0_32
LBB0_10:
	xorl	%ebx, %ebx
	cmpl	$0, (%rsi)
	je	LBB0_32
## %bb.11:
	movq	_debug_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_32
LBB0_12:
	xorl	%ebx, %ebx
	cmpl	$0, (%rsi)
	je	LBB0_32
## %bb.13:
	movq	_debug_matrix@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_32
LBB0_16:
	xorl	%ebx, %ebx
	cmpl	$0, (%rsi)
	je	LBB0_32
## %bb.17:
	movq	_debug_mouse@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_32
LBB0_14:
	xorl	%ebx, %ebx
	cmpl	$0, (%rsi)
	je	LBB0_32
## %bb.15:
	movq	_debug_keyboard@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_TOGGLE_FLAG_AND_PRINT
	jmp	LBB0_32
LBB0_23:
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_20:
	movl	_process_record_user.key_timer(%rip), %edi
	callq	_timer_elapsed32
	xorl	%ebx, %ebx
	cmpl	$500, %eax                      ## imm = 0x1F4
	jl	LBB0_32
## %bb.21:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_reset_keyboard
	jmp	LBB0_32
LBB0_30:
	movq	_LED_FLAG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rgb_matrix_set_flags
	xorl	%eax, %eax
	callq	_rgb_matrix_disable_noeeprom
	jmp	LBB0_32
LBB0_29:
	movl	$132, %edi
LBB0_28:
	callq	_rgb_matrix_set_flags
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_rgb_matrix_set_color_all
	jmp	LBB0_32
LBB0_31:
	movl	$134, %edi
	callq	_rgb_matrix_set_flags
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rgb_matrix_enable_noeeprom
LBB0_32:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_22
	.long	L0_0_set_18
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_process_record_user.key_timer,4,2 ## @process_record_user.key_timer
	.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"

	.comm	_LED_FLAG_NONE,4,2              ## @LED_FLAG_NONE
.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	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	mov	w0, #1
	sub	w8, w8, #128
	cmp	w8, #10
	b.hi	LBB0_28
; %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, [x1]
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_27
; %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_27
LBB0_4:
	ldr	w8, [x1]
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_27
; %bb.5:
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_27
LBB0_6:
	ldr	w8, [x1]
	cbz	w8, LBB0_27
; %bb.7:
	bl	_rgb_matrix_get_flags
	cmp	w0, #132
	b.eq	LBB0_23
; %bb.8:
	cmp	w0, #133
	b.eq	LBB0_24
; %bb.9:
	cmp	w0, #134
	b.ne	LBB0_26
; %bb.10:
	mov	w0, #133
	b	LBB0_25
LBB0_11:
	ldr	w8, [x1]
	cbz	w8, LBB0_21
; %bb.12:
	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]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w8, [x1]
	cbz	w8, LBB0_27
; %bb.14:
Lloh24:
	adrp	x8, _debug_enable@GOTPAGE
Lloh25:
	ldr	x8, [x8, _debug_enable@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_TOGGLE_FLAG_AND_PRINT
	b	LBB0_27
LBB0_15:
	ldr	w8, [x1]
	cbz	w8, LBB0_27
; %bb.16:
Lloh29:
	adrp	x8, _debug_matrix@GOTPAGE
Lloh30:
	ldr	x8, [x8, _debug_matrix@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_TOGGLE_FLAG_AND_PRINT
	b	LBB0_27
LBB0_17:
	ldr	w8, [x1]
	cbz	w8, LBB0_27
; %bb.18:
Lloh34:
	adrp	x8, _debug_mouse@GOTPAGE
Lloh35:
	ldr	x8, [x8, _debug_mouse@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_TOGGLE_FLAG_AND_PRINT
	b	LBB0_27
LBB0_19:
	ldr	w8, [x1]
	cbz	w8, LBB0_27
; %bb.20:
Lloh39:
	adrp	x8, _debug_keyboard@GOTPAGE
Lloh40:
	ldr	x8, [x8, _debug_keyboard@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x1, l_.str.4@PAGE
Lloh43:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_TOGGLE_FLAG_AND_PRINT
	b	LBB0_27
LBB0_21:
Lloh44:
	adrp	x8, _process_record_user.key_timer@PAGE
Lloh45:
	ldr	w0, [x8, _process_record_user.key_timer@PAGEOFF]
	bl	_timer_elapsed32
	cmp	w0, #500
	b.lt	LBB0_27
; %bb.22:
	bl	_reset_keyboard
	b	LBB0_27
LBB0_23:
Lloh46:
	adrp	x8, _LED_FLAG_NONE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _LED_FLAG_NONE@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	bl	_rgb_matrix_set_flags
	bl	_rgb_matrix_disable_noeeprom
	b	LBB0_27
LBB0_24:
	mov	w0, #132
LBB0_25:
	bl	_rgb_matrix_set_flags
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_rgb_matrix_set_color_all
	b	LBB0_27
LBB0_26:
	mov	w0, #134
	bl	_rgb_matrix_set_flags
	bl	_rgb_matrix_enable_noeeprom
LBB0_27:
	mov	w0, #0
LBB0_28:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.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 AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdr	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_process_record_user.key_timer,4,2 ; @process_record_user.key_timer
	.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"

	.comm	_LED_FLAG_NONE,4,2              ; @LED_FLAG_NONE
.subsections_via_symbols
