	.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
	callq	_process_record_dynamic_macro
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	movl	$1, %r14d
	addl	$-128, %ebx
	cmpl	$7, %ebx
	ja	LBB0_24
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_15:
	cmpl	$0, (%r15)
	je	LBB0_17
## %bb.16:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_timer_read
	movq	_key_timer@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	__RAISE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_layer_on
	movq	__LOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	jmp	LBB0_10
LBB0_6:
	cmpl	$0, (%r15)
	je	LBB0_23
## %bb.7:
	movq	__QWERTY_WIN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	cmpl	$0, (%r15)
	je	LBB0_23
## %bb.4:
	movq	__QWERTY_MAC@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	callq	_set_single_persistent_default_layer
	jmp	LBB0_23
LBB0_8:
	cmpl	$0, (%r15)
	je	LBB0_11
## %bb.9:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_timer_read
	movq	_key_timer@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	__LOWER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_layer_on
	movl	(%rbx), %edi
	movq	__RAISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_10:
	movq	__ADJUST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_update_tri_layer
	jmp	LBB0_24
LBB0_20:
	cmpl	$0, (%r15)
	movq	_KC_RSFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_22
## %bb.21:
	callq	_register_code
	jmp	LBB0_23
LBB0_17:
	movq	_key_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_timer_elapsed
	movq	_timer_thresh@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_19
## %bb.18:
	movq	_KC_BSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tap_code
LBB0_19:
	movq	__RAISE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_layer_off
	movq	__LOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	jmp	LBB0_14
LBB0_11:
	movq	_key_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_timer_elapsed
	movq	_timer_thresh@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_13
## %bb.12:
	movq	_KC_BSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tap_code
LBB0_13:
	movq	__LOWER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_layer_off
	movl	(%rbx), %edi
	movq	__RAISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_14:
	movq	__ADJUST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_update_tri_layer
	jmp	LBB0_23
LBB0_22:
	callq	_unregister_code
LBB0_23:
	xorl	%r14d, %r14d
LBB0_24:
	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_15, LBB0_15-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	__QWERTY_MAC,4,2                ## @_QWERTY_MAC
	.comm	__QWERTY_WIN,4,2                ## @_QWERTY_WIN
	.comm	_key_timer,4,2                  ## @key_timer
	.comm	__LOWER,4,2                     ## @_LOWER
	.comm	__RAISE,4,2                     ## @_RAISE
	.comm	__ADJUST,4,2                    ## @_ADJUST
	.comm	_timer_thresh,4,2               ## @timer_thresh
	.comm	_KC_BSPC,4,2                    ## @KC_BSPC
	.comm	_KC_RSFT,4,2                    ## @KC_RSFT
	.comm	_PORTE,4,2                      ## @PORTE
	.comm	_tone_macro1_record,4,2         ## @tone_macro1_record
	.comm	_tone_macro2_record,4,2         ## @tone_macro2_record
	.comm	_tone_macro_record_stop,4,2     ## @tone_macro_record_stop
.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
	bl	_process_record_dynamic_macro
	cbz	w0, LBB0_24
; %bb.1:
	mov	w0, #1
	sub	w8, w20, #128
	cmp	w8, #7
	b.hi	LBB0_24
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x19]
	cbz	w8, LBB0_14
; %bb.4:
	bl	_timer_read
Lloh2:
	adrp	x8, _key_timer@GOTPAGE
Lloh3:
	ldr	x8, [x8, _key_timer@GOTPAGEOFF]
Lloh4:
	str	w0, [x8]
Lloh5:
	adrp	x19, __RAISE@GOTPAGE
Lloh6:
	ldr	x19, [x19, __RAISE@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_layer_on
	b	LBB0_17
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_23
; %bb.6:
Lloh7:
	adrp	x8, __QWERTY_WIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, __QWERTY_WIN@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19]
	cbz	w8, LBB0_23
; %bb.8:
Lloh9:
	adrp	x8, __QWERTY_MAC@GOTPAGE
Lloh10:
	ldr	x8, [x8, __QWERTY_MAC@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	bl	_set_single_persistent_default_layer
	b	LBB0_23
LBB0_10:
	ldr	w8, [x19]
	cbz	w8, LBB0_18
; %bb.11:
	bl	_timer_read
Lloh11:
	adrp	x8, _key_timer@GOTPAGE
Lloh12:
	ldr	x8, [x8, _key_timer@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
Lloh14:
	adrp	x19, __LOWER@GOTPAGE
Lloh15:
	ldr	x19, [x19, __LOWER@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_layer_on
	b	LBB0_21
LBB0_12:
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _KC_RSFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _KC_RSFT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x9]
	cbz	w8, LBB0_25
; %bb.13:
	bl	_register_code
	b	LBB0_23
LBB0_14:
Lloh19:
	adrp	x8, _key_timer@GOTPAGE
Lloh20:
	ldr	x8, [x8, _key_timer@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_timer_elapsed
Lloh22:
	adrp	x8, _timer_thresh@GOTPAGE
Lloh23:
	ldr	x8, [x8, _timer_thresh@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_16
; %bb.15:
Lloh25:
	adrp	x8, _KC_BSPC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KC_BSPC@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_tap_code
LBB0_16:
Lloh28:
	adrp	x19, __RAISE@GOTPAGE
Lloh29:
	ldr	x19, [x19, __RAISE@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_layer_off
LBB0_17:
Lloh30:
	adrp	x8, __LOWER@GOTPAGE
Lloh31:
	ldr	x8, [x8, __LOWER@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x19]
	b	LBB0_22
LBB0_18:
Lloh33:
	adrp	x8, _key_timer@GOTPAGE
Lloh34:
	ldr	x8, [x8, _key_timer@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_timer_elapsed
Lloh36:
	adrp	x8, _timer_thresh@GOTPAGE
Lloh37:
	ldr	x8, [x8, _timer_thresh@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_20
; %bb.19:
Lloh39:
	adrp	x8, _KC_BSPC@GOTPAGE
Lloh40:
	ldr	x8, [x8, _KC_BSPC@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_tap_code
LBB0_20:
Lloh42:
	adrp	x19, __LOWER@GOTPAGE
Lloh43:
	ldr	x19, [x19, __LOWER@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_layer_off
LBB0_21:
	ldr	w0, [x19]
Lloh44:
	adrp	x8, __RAISE@GOTPAGE
Lloh45:
	ldr	x8, [x8, __RAISE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
LBB0_22:
Lloh47:
	adrp	x8, __ADJUST@GOTPAGE
Lloh48:
	ldr	x8, [x8, __ADJUST@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	bl	_update_tri_layer
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_25:
	bl	_unregister_code
	b	LBB0_23
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_24-LBB0_3)>>2
	.byte	(LBB0_24-LBB0_3)>>2
	.byte	(LBB0_24-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	__QWERTY_MAC,4,2                ; @_QWERTY_MAC
	.comm	__QWERTY_WIN,4,2                ; @_QWERTY_WIN
	.comm	_key_timer,4,2                  ; @key_timer
	.comm	__LOWER,4,2                     ; @_LOWER
	.comm	__RAISE,4,2                     ; @_RAISE
	.comm	__ADJUST,4,2                    ; @_ADJUST
	.comm	_timer_thresh,4,2               ; @timer_thresh
	.comm	_KC_BSPC,4,2                    ; @KC_BSPC
	.comm	_KC_RSFT,4,2                    ; @KC_RSFT
	.comm	_PORTE,4,2                      ; @PORTE
	.comm	_tone_macro1_record,4,2         ; @tone_macro1_record
	.comm	_tone_macro2_record,4,2         ; @tone_macro2_record
	.comm	_tone_macro_record_stop,4,2     ; @tone_macro_record_stop
.subsections_via_symbols
