	.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
                                        ## kill: def $edi killed $edi def $rdi
	movl	$1, %r14d
	addl	$-128, %edi
	cmpl	$3, %edi
	ja	LBB0_20
## %bb.1:
	movq	%rsi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_13:
	cmpl	$0, (%rbx)
	je	LBB0_20
## %bb.14:
	movq	_keyboard_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_TOGGLE_BIT
	jmp	LBB0_20
LBB0_15:
	movq	_keyboard_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_CHECK_BIT
	testl	%eax, %eax
	jne	LBB0_20
## %bb.16:
	cmpl	$0, (%rbx)
	movq	_X_LGUI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_18
## %bb.17:
	callq	_SS_DOWN
	jmp	LBB0_19
LBB0_8:
	cmpl	$0, (%rbx)
	je	LBB0_20
## %bb.9:
	movq	_keyboard_state@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1, %r14d
	movl	$1, %esi
	callq	_TOGGLE_BIT
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_CHECK_BIT
	testl	%eax, %eax
	je	LBB0_20
## %bb.10:
	movl	(%rbx), %edi
	movl	$1, %r14d
	movl	$1, %esi
	callq	_CHECK_BIT
	movq	__MOUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	callq	_layer_on
	jmp	LBB0_20
LBB0_2:
	cmpl	$0, (%rbx)
	movq	__FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_7
## %bb.3:
	callq	_layer_on
	movq	_keyboard_state@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_CHECK_BIT
	movq	__MOUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	callq	_layer_on
	jmp	LBB0_6
LBB0_7:
	callq	_layer_off
	movq	__MOUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_layer_off
	movq	_keyboard_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CLEAR_BIT
	jmp	LBB0_20
LBB0_5:
	callq	_layer_off
LBB0_6:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_SET_BIT
	movl	$1, %r14d
	jmp	LBB0_20
LBB0_18:
	callq	_SS_UP
LBB0_19:
	movl	%eax, %edi
	callq	_SEND_STRING
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_12:
	callq	_layer_off
LBB0_20:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_8
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	__FUNC,4,2                      ## @_FUNC
	.comm	_keyboard_state,4,2             ## @keyboard_state
	.comm	__MOUSE,4,2                     ## @_MOUSE
	.comm	_X_LGUI,4,2                     ## @X_LGUI
.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
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.1:
	mov	x19, x1
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]
	cbz	w8, LBB0_11
; %bb.3:
Lloh2:
	adrp	x8, _keyboard_state@GOTPAGE
Lloh3:
	ldr	x8, [x8, _keyboard_state@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #2
	bl	_TOGGLE_BIT
	b	LBB0_11
LBB0_4:
Lloh5:
	adrp	x8, _keyboard_state@GOTPAGE
Lloh6:
	ldr	x8, [x8, _keyboard_state@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #2
	bl	_CHECK_BIT
	cbnz	w0, LBB0_11
; %bb.5:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _X_LGUI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _X_LGUI@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	cbz	w8, LBB0_19
; %bb.6:
	bl	_SS_DOWN
	b	LBB0_20
LBB0_7:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.8:
Lloh11:
	adrp	x20, _keyboard_state@GOTPAGE
Lloh12:
	ldr	x20, [x20, _keyboard_state@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w19, #1
	mov	w1, #1
	bl	_TOGGLE_BIT
	ldr	w0, [x20]
	mov	w1, #0
	bl	_CHECK_BIT
	cbz	w0, LBB0_12
; %bb.9:
	ldr	w0, [x20]
	mov	w1, #1
	bl	_CHECK_BIT
	mov	x8, x0
Lloh13:
	adrp	x9, __MOUSE@GOTPAGE
Lloh14:
	ldr	x9, [x9, __MOUSE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	cbz	w8, LBB0_21
; %bb.10:
	bl	_layer_on
	mov	w19, #1
	b	LBB0_12
LBB0_11:
	mov	w19, #1
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w8, [x19]
Lloh16:
	adrp	x9, __FUNC@GOTPAGE
Lloh17:
	ldr	x9, [x9, __FUNC@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x9]
	cbz	w8, LBB0_16
; %bb.14:
	bl	_layer_on
Lloh19:
	adrp	x19, _keyboard_state@GOTPAGE
Lloh20:
	ldr	x19, [x19, _keyboard_state@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #1
	bl	_CHECK_BIT
	mov	x8, x0
Lloh21:
	adrp	x9, __MOUSE@GOTPAGE
Lloh22:
	ldr	x9, [x9, __MOUSE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x9]
	cbz	w8, LBB0_17
; %bb.15:
	bl	_layer_on
	b	LBB0_18
LBB0_16:
	bl	_layer_off
Lloh24:
	adrp	x8, __MOUSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, __MOUSE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_layer_off
Lloh27:
	adrp	x8, _keyboard_state@GOTPAGE
Lloh28:
	ldr	x8, [x8, _keyboard_state@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CLEAR_BIT
	mov	w19, #1
	b	LBB0_12
LBB0_17:
	bl	_layer_off
LBB0_18:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_SET_BIT
	mov	w19, #1
	b	LBB0_12
LBB0_19:
	bl	_SS_UP
LBB0_20:
	bl	_SEND_STRING
	mov	w19, #0
	b	LBB0_12
LBB0_21:
	bl	_layer_off
	mov	w19, #1
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	__FUNC,4,2                      ; @_FUNC
	.comm	_keyboard_state,4,2             ; @keyboard_state
	.comm	__MOUSE,4,2                     ; @_MOUSE
	.comm	_X_LGUI,4,2                     ; @X_LGUI
.subsections_via_symbols
