	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encoder_update_user            ## -- Begin function encoder_update_user
	.p2align	4, 0x90
_encoder_update_user:                   ## @encoder_update_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
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_get_mods
	cmpl	$1, %ebx
	je	LBB0_8
## %bb.1:
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.2:
	movl	%eax, %r14d
	movq	_MOD_MASK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MOD_MASK_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.3:
	testl	%r14d, %ecx
	je	LBB0_18
## %bb.4:
	movq	_MOD_MASK_ALT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%r14d, %eax
	je	LBB0_24
## %bb.5:
	testl	%r14d, %esi
	je	LBB0_22
## %bb.6:
	movq	_MOD_MASK_GUI@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_22
## %bb.7:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addq	$32, %rax
	jmp	LBB0_45
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.9:
	movq	_KC_0@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testl	%r14d, %ecx
	je	LBB0_28
## %bb.12:
	movq	_MOD_MASK_ALT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%r14d, %eax
	je	LBB0_34
## %bb.13:
	testl	%r14d, %esi
	je	LBB0_32
## %bb.14:
	movq	_MOD_MASK_GUI@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_32
## %bb.15:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	$32, %rax
	jmp	LBB0_45
LBB0_16:
	movq	_KC_1@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tap_code                       ## TAILCALL
LBB0_18:
	testl	%r14d, %eax
	je	LBB0_26
## %bb.19:
	movq	_MOD_MASK_ALT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_23
## %bb.20:
	movq	_MOD_MASK_GUI@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_27
## %bb.21:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addq	$12, %rax
	jmp	LBB0_45
LBB0_22:
	testl	%r14d, (%rdx)
	je	LBB0_38
LBB0_23:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addq	$28, %rax
	jmp	LBB0_45
LBB0_24:
	testl	%r14d, %esi
	je	LBB0_26
## %bb.25:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addq	$20, %rax
	jmp	LBB0_45
LBB0_26:
	movq	_MOD_MASK_GUI@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_39
LBB0_27:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addq	$16, %rax
	jmp	LBB0_45
LBB0_28:
	testl	%r14d, %eax
	je	LBB0_36
## %bb.29:
	movq	_MOD_MASK_ALT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_33
## %bb.30:
	movq	_MOD_MASK_GUI@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_37
## %bb.31:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	$12, %rax
	jmp	LBB0_45
LBB0_32:
	testl	%r14d, (%rdx)
	je	LBB0_41
LBB0_33:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	$28, %rax
	jmp	LBB0_45
LBB0_34:
	testl	%r14d, %esi
	je	LBB0_36
## %bb.35:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	$20, %rax
	jmp	LBB0_45
LBB0_36:
	movq	_MOD_MASK_GUI@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_42
LBB0_37:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	$16, %rax
	jmp	LBB0_45
LBB0_38:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addq	$24, %rax
	jmp	LBB0_45
LBB0_39:
	movq	_MOD_MASK_ALT@GOTPCREL(%rip), %rdx
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testl	%r14d, (%rdx)
	je	LBB0_44
LBB0_40:
	addq	$8, %rax
	jmp	LBB0_45
LBB0_41:
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	$24, %rax
	jmp	LBB0_45
LBB0_42:
	movq	_MOD_MASK_ALT@GOTPCREL(%rip), %rdx
	movq	_encoder_actions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testl	%r14d, (%rdx)
	jne	LBB0_40
LBB0_44:
	xorl	%edx, %edx
	testl	%r14d, %ecx
	setne	%dl
	leaq	(%rax,%rdx,4), %rax
LBB0_45:
	movl	(%rax), %eax
	movl	%eax, _encoder_update_user.kc(%rip)
	xorl	%eax, %eax
	callq	_clear_mods
	movl	_encoder_update_user.kc(%rip), %edi
	callq	_tap_code16
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_mods                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_encoder_update_user.kc,4,2 ## @encoder_update_user.kc
	.comm	_MOD_MASK_CTRL,4,2              ## @MOD_MASK_CTRL
	.comm	_MOD_MASK_SHIFT,4,2             ## @MOD_MASK_SHIFT
	.comm	_MOD_MASK_ALT,4,2               ## @MOD_MASK_ALT
	.comm	_MOD_MASK_GUI,4,2               ## @MOD_MASK_GUI
	.comm	_encoder_actions,8,3            ## @encoder_actions
	.comm	_KC_0,4,2                       ## @KC_0
	.comm	_KC_1,4,2                       ## @KC_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encoder_update_user            ; -- Begin function encoder_update_user
	.p2align	2
_encoder_update_user:                   ; @encoder_update_user
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	bl	_get_mods
	cmp	w21, #1
	b.eq	LBB0_8
; %bb.1:
	cbnz	w21, LBB0_10
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _MOD_MASK_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MOD_MASK_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _MOD_MASK_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MOD_MASK_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w0
	cbz	w20, LBB0_11
; %bb.3:
	cbz	w8, LBB0_18
; %bb.4:
Lloh6:
	adrp	x10, _MOD_MASK_ALT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MOD_MASK_ALT@GOTPAGEOFF]
	ldr	w11, [x10]
	and	w11, w11, w19
	cbz	w9, LBB0_24
; %bb.5:
	cbz	w11, LBB0_22
; %bb.6:
Lloh8:
	adrp	x8, _MOD_MASK_GUI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MOD_MASK_GUI@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_22
; %bb.7:
Lloh11:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh12:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x8, x8, #32
	b	LBB0_44
LBB0_8:
	cbz	w20, LBB0_16
; %bb.9:
Lloh14:
	adrp	x8, _KC_0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KC_0@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	cbz	w8, LBB0_28
; %bb.12:
Lloh16:
	adrp	x10, _MOD_MASK_ALT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MOD_MASK_ALT@GOTPAGEOFF]
	ldr	w11, [x10]
	and	w11, w11, w19
	cbz	w9, LBB0_34
; %bb.13:
	cbz	w11, LBB0_32
; %bb.14:
Lloh18:
	adrp	x8, _MOD_MASK_GUI@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MOD_MASK_GUI@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_32
; %bb.15:
Lloh21:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh22:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	add	x8, x8, #32
	b	LBB0_44
LBB0_16:
Lloh24:
	adrp	x8, _KC_1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KC_1@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tap_code
LBB0_18:
	cbz	w9, LBB0_26
; %bb.19:
Lloh26:
	adrp	x8, _MOD_MASK_ALT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MOD_MASK_ALT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_23
; %bb.20:
Lloh29:
	adrp	x8, _MOD_MASK_GUI@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MOD_MASK_GUI@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_27
; %bb.21:
Lloh32:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh33:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x8, x8, #12
	b	LBB0_44
LBB0_22:
	ldr	w8, [x10]
	tst	w8, w19
	b.eq	LBB0_38
LBB0_23:
Lloh35:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh36:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x8, x8, #28
	b	LBB0_44
LBB0_24:
	cbz	w11, LBB0_26
; %bb.25:
Lloh38:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh39:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x8, x8, #20
	b	LBB0_44
LBB0_26:
Lloh41:
	adrp	x9, _MOD_MASK_GUI@GOTPAGE
Lloh42:
	ldr	x9, [x9, _MOD_MASK_GUI@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_39
LBB0_27:
Lloh44:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh45:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x8, x8, #16
	b	LBB0_44
LBB0_28:
	cbz	w9, LBB0_36
; %bb.29:
Lloh47:
	adrp	x8, _MOD_MASK_ALT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MOD_MASK_ALT@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_33
; %bb.30:
Lloh50:
	adrp	x8, _MOD_MASK_GUI@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MOD_MASK_GUI@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_37
; %bb.31:
Lloh53:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh54:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	add	x8, x8, #12
	b	LBB0_44
LBB0_32:
	ldr	w8, [x10]
	tst	w8, w19
	b.eq	LBB0_41
LBB0_33:
Lloh56:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh57:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	add	x8, x8, #28
	b	LBB0_44
LBB0_34:
	cbz	w11, LBB0_36
; %bb.35:
Lloh59:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh60:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	add	x8, x8, #20
	b	LBB0_44
LBB0_36:
Lloh62:
	adrp	x9, _MOD_MASK_GUI@GOTPAGE
Lloh63:
	ldr	x9, [x9, _MOD_MASK_GUI@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_42
LBB0_37:
Lloh65:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh66:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	add	x8, x8, #16
	b	LBB0_44
LBB0_38:
Lloh68:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh69:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x8, x8, #24
	b	LBB0_44
LBB0_39:
Lloh71:
	adrp	x9, _MOD_MASK_ALT@GOTPAGE
Lloh72:
	ldr	x9, [x9, _MOD_MASK_ALT@GOTPAGEOFF]
Lloh73:
	ldr	w10, [x9]
Lloh74:
	adrp	x9, _encoder_actions@GOTPAGE
Lloh75:
	ldr	x9, [x9, _encoder_actions@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
	ldr	x9, [x9]
	tst	w10, w19
	b.eq	LBB0_43
LBB0_40:
	add	x8, x9, #8
	b	LBB0_44
LBB0_41:
Lloh77:
	adrp	x8, _encoder_actions@GOTPAGE
Lloh78:
	ldr	x8, [x8, _encoder_actions@GOTPAGEOFF]
Lloh79:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	add	x8, x8, #24
	b	LBB0_44
LBB0_42:
Lloh80:
	adrp	x9, _MOD_MASK_ALT@GOTPAGE
Lloh81:
	ldr	x9, [x9, _MOD_MASK_ALT@GOTPAGEOFF]
Lloh82:
	ldr	w10, [x9]
Lloh83:
	adrp	x9, _encoder_actions@GOTPAGE
Lloh84:
	ldr	x9, [x9, _encoder_actions@GOTPAGEOFF]
Lloh85:
	ldr	x9, [x9]
	ldr	x9, [x9, #8]
	tst	w10, w19
	b.ne	LBB0_40
LBB0_43:
	cmp	w8, #0
	cset	w8, ne
	add	x8, x9, w8, uxtw #2
LBB0_44:
	ldr	w8, [x8]
	adrp	x20, _encoder_update_user.kc@PAGE
	str	w8, [x20, _encoder_update_user.kc@PAGEOFF]
	bl	_clear_mods
	ldr	w0, [x20, _encoder_update_user.kc@PAGEOFF]
	bl	_tap_code16
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_mods
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_encoder_update_user.kc,4,2 ; @encoder_update_user.kc
	.comm	_MOD_MASK_CTRL,4,2              ; @MOD_MASK_CTRL
	.comm	_MOD_MASK_SHIFT,4,2             ; @MOD_MASK_SHIFT
	.comm	_MOD_MASK_ALT,4,2               ; @MOD_MASK_ALT
	.comm	_MOD_MASK_GUI,4,2               ; @MOD_MASK_GUI
	.comm	_encoder_actions,8,3            ; @encoder_actions
	.comm	_KC_0,4,2                       ; @KC_0
	.comm	_KC_1,4,2                       ; @KC_1
.subsections_via_symbols
