	.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
	cmpl	$128, %edi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %edi
	je	LBB0_8
## %bb.2:
	movl	$1, %ebx
	cmpl	$130, %edi
	jne	LBB0_12
## %bb.3:
	cmpl	$0, (%rsi)
	je	LBB0_13
## %bb.4:
	xorl	%eax, %eax
	callq	_get_mods
	movl	%eax, %r14d
	movq	_KC_LSFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MOD_BIT
	movl	%eax, %r15d
	movq	_KC_RSFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MOD_BIT
	orl	%r15d, %eax
	testl	%r14d, %eax
	je	LBB0_12
## %bb.5:
	movq	_DE_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_register_code
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	cmpl	$0, (%rsi)
	movq	__NR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_10
LBB0_7:
	callq	_layer_on
	jmp	LBB0_11
LBB0_8:
	cmpl	$0, (%rsi)
	movq	__NR_L3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jne	LBB0_7
LBB0_10:
	callq	_layer_off
LBB0_11:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_update_tri_layer_user
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_DE_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_unregister_code
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_KC_LSFT,4,2                    ## @KC_LSFT
	.comm	_KC_RSFT,4,2                    ## @KC_RSFT
	.comm	_DE_SS,4,2                      ## @DE_SS
	.comm	__NR,4,2                        ## @_NR
	.comm	__NR_L3,4,2                     ## @_NR_L3
.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
	cmp	w0, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_13
; %bb.3:
	ldr	w8, [x1]
	cbz	w8, LBB0_12
; %bb.4:
	bl	_get_mods
	mov	x19, x0
Lloh0:
	adrp	x8, _KC_LSFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KC_LSFT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MOD_BIT
	mov	x20, x0
Lloh3:
	adrp	x8, _KC_RSFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KC_RSFT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_MOD_BIT
	orr	w8, w0, w20
	tst	w8, w19
	b.eq	LBB0_13
; %bb.5:
Lloh6:
	adrp	x8, _DE_SS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DE_SS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_register_code
	b	LBB0_11
LBB0_6:
	ldr	w8, [x1]
Lloh9:
	adrp	x9, __NR@GOTPAGE
Lloh10:
	ldr	x9, [x9, __NR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	cbz	w8, LBB0_9
LBB0_7:
	bl	_layer_on
	b	LBB0_10
LBB0_8:
	ldr	w8, [x1]
Lloh12:
	adrp	x9, __NR_L3@GOTPAGE
Lloh13:
	ldr	x9, [x9, __NR_L3@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	cbnz	w8, LBB0_7
LBB0_9:
	bl	_layer_off
LBB0_10:
	bl	_update_tri_layer_user
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh15:
	adrp	x8, _DE_SS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DE_SS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_unregister_code
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_KC_LSFT,4,2                    ; @KC_LSFT
	.comm	_KC_RSFT,4,2                    ; @KC_RSFT
	.comm	_DE_SS,4,2                      ; @DE_SS
	.comm	__NR,4,2                        ; @_NR
	.comm	__NR_L3,4,2                     ; @_NR_L3
.subsections_via_symbols
