	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_LESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TD
	cmpl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movq	_sstate@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_2:
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_32
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_speed@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$26, %ecx
	jl	LBB0_32
## %bb.5:
	addl	$-25, %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_32
LBB0_6:
	movq	_speed@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$999, %ecx                      ## imm = 0x3E7
	jg	LBB0_32
## %bb.7:
	addl	$25, %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_32
LBB0_8:
	cmpl	$0, (%r14)
	je	LBB0_32
## %bb.9:
	movq	_rgb@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	sete	%cl
	movl	%ecx, (%rax)
	jmp	LBB0_31
LBB0_11:
	cmpl	$0, (%r14)
	je	LBB0_32
## %bb.12:
	movq	_rgb@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	sete	%cl
	addl	%ecx, %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_31
LBB0_22:
	cmpl	$0, (%r14)
	je	LBB0_32
## %bb.23:
	movq	_l_state@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_S_ENGLISH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_S_QRUSSIAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%ecx, %eax
	jne	LBB0_25
## %bb.24:
	movl	%edx, %ecx
	jmp	LBB0_30
LBB0_13:
	cmpl	$0, (%r14)
	je	LBB0_31
## %bb.14:
	movq	_l_state@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	_S_COLEMAK@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %ecx
	jne	LBB0_16
## %bb.15:
	movq	__CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_off
	movq	_S_ENGLISH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_31
LBB0_25:
	cmpl	%edx, %eax
	je	LBB0_30
## %bb.26:
	movq	_S_COLEMAK@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_28
## %bb.27:
	movq	__CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_off
	movq	_S_CRUSSIAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_30
LBB0_16:
	movq	_S_ENGLISH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_18
## %bb.17:
	movq	__CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_on
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_31
LBB0_18:
	movq	_S_CRUSSIAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_S_QRUSSIAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%eax, %ecx
	jne	LBB0_20
## %bb.19:
	movl	%edx, %eax
	movl	%edx, (%r14)
	jmp	LBB0_31
LBB0_28:
	movq	_S_CRUSSIAN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_31
## %bb.29:
	movq	__CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_on
	movl	(%r14), %ecx
LBB0_30:
	movl	%ecx, (%rbx)
LBB0_31:
	xorl	%eax, %eax
	callq	_update_led_state_c
LBB0_32:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_20:
	cmpl	%edx, %ecx
	jne	LBB0_31
## %bb.21:
	movl	%eax, (%r14)
	jmp	LBB0_31
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_22
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_LESC,4,2                       ## @LESC
	.comm	_sstate,4,2                     ## @sstate
	.comm	_speed,4,2                      ## @speed
	.comm	_rgb,4,2                        ## @rgb
	.comm	_l_state,4,2                    ## @l_state
	.comm	_S_COLEMAK,4,2                  ## @S_COLEMAK
	.comm	__CM,4,2                        ## @_CM
	.comm	_S_ENGLISH,4,2                  ## @S_ENGLISH
	.comm	_S_CRUSSIAN,4,2                 ## @S_CRUSSIAN
	.comm	_S_QRUSSIAN,4,2                 ## @S_QRUSSIAN
.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
Lloh0:
	adrp	x8, _LESC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LESC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_TD
	cmp	w0, w20
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _sstate@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sstate@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	str	w9, [x8]
LBB0_2:
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_27
; %bb.3:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh8:
	adrp	x8, _speed@GOTPAGE
Lloh9:
	ldr	x8, [x8, _speed@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #26
	b.lt	LBB0_27
; %bb.5:
	sub	w9, w9, #25
	str	w9, [x8]
	b	LBB0_27
LBB0_6:
Lloh10:
	adrp	x8, _speed@GOTPAGE
Lloh11:
	ldr	x8, [x8, _speed@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #999
	b.gt	LBB0_27
; %bb.7:
	add	w9, w9, #25
	str	w9, [x8]
	b	LBB0_27
LBB0_8:
	ldr	w8, [x19]
	cbz	w8, LBB0_27
; %bb.9:
Lloh12:
	adrp	x8, _rgb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rgb@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x8]
	b	LBB0_26
LBB0_10:
	ldr	w8, [x19]
	cbz	w8, LBB0_27
; %bb.11:
Lloh14:
	adrp	x8, _rgb@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rgb@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #0
	cset	w9, eq
	lsl	w9, w9, #1
	str	w9, [x8]
	b	LBB0_26
LBB0_12:
	ldr	w8, [x19]
	cbz	w8, LBB0_27
; %bb.13:
Lloh16:
	adrp	x19, _l_state@GOTPAGE
Lloh17:
	ldr	x19, [x19, _l_state@GOTPAGEOFF]
Lloh18:
	adrp	x9, _S_ENGLISH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _S_ENGLISH@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh20:
	ldr	w10, [x9]
Lloh21:
	adrp	x9, _S_QRUSSIAN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _S_QRUSSIAN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w10
	b.eq	LBB0_25
; %bb.14:
	cmp	w8, w9
	mov	x9, x10
	b.eq	LBB0_25
; %bb.15:
Lloh24:
	adrp	x20, _S_COLEMAK@GOTPAGE
Lloh25:
	ldr	x20, [x20, _S_COLEMAK@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.16:
Lloh26:
	adrp	x8, __CM@GOTPAGE
Lloh27:
	ldr	x8, [x8, __CM@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_layer_off
Lloh29:
	adrp	x8, _S_CRUSSIAN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _S_CRUSSIAN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x8]
	b	LBB0_25
LBB0_17:
	ldr	w8, [x19]
	cbz	w8, LBB0_26
; %bb.18:
Lloh32:
	adrp	x19, _l_state@GOTPAGE
Lloh33:
	ldr	x19, [x19, _l_state@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh34:
	adrp	x20, _S_COLEMAK@GOTPAGE
Lloh35:
	ldr	x20, [x20, _S_COLEMAK@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.19:
Lloh36:
	adrp	x8, __CM@GOTPAGE
Lloh37:
	ldr	x8, [x8, __CM@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_layer_off
Lloh39:
	adrp	x8, _S_ENGLISH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _S_ENGLISH@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x8]
	b	LBB0_25
LBB0_20:
Lloh42:
	adrp	x9, _S_ENGLISH@GOTPAGE
Lloh43:
	ldr	x9, [x9, _S_ENGLISH@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_24
; %bb.21:
Lloh45:
	adrp	x9, _S_CRUSSIAN@GOTPAGE
Lloh46:
	ldr	x9, [x9, _S_CRUSSIAN@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x9]
Lloh48:
	adrp	x9, _S_QRUSSIAN@GOTPAGE
Lloh49:
	ldr	x9, [x9, _S_QRUSSIAN@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	cmp	w8, w10
	b.eq	LBB0_25
; %bb.22:
	cmp	w8, w9
	mov	x9, x10
	b.eq	LBB0_25
	b	LBB0_26
LBB0_23:
Lloh51:
	adrp	x9, _S_CRUSSIAN@GOTPAGE
Lloh52:
	ldr	x9, [x9, _S_CRUSSIAN@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_26
LBB0_24:
Lloh54:
	adrp	x8, __CM@GOTPAGE
Lloh55:
	ldr	x8, [x8, __CM@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_layer_on
	ldr	w9, [x20]
LBB0_25:
	str	w9, [x19]
LBB0_26:
	bl	_update_led_state_c
LBB0_27:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
                                        ; -- End function
	.comm	_LESC,4,2                       ; @LESC
	.comm	_sstate,4,2                     ; @sstate
	.comm	_speed,4,2                      ; @speed
	.comm	_rgb,4,2                        ; @rgb
	.comm	_l_state,4,2                    ; @l_state
	.comm	_S_COLEMAK,4,2                  ; @S_COLEMAK
	.comm	__CM,4,2                        ; @_CM
	.comm	_S_ENGLISH,4,2                  ; @S_ENGLISH
	.comm	_S_CRUSSIAN,4,2                 ; @S_CRUSSIAN
	.comm	_S_QRUSSIAN,4,2                 ; @S_QRUSSIAN
.subsections_via_symbols
