	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function encoder_update
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
LCPI0_1:
	.long	0xbf000000                      ## float -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_encoder_update
	.p2align	4, 0x90
_encoder_update:                        ## @encoder_update
	.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
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_is_clicky_on
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	__RAISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_LAYER_ON
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_clicky_rand@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.3:
	addss	LCPI0_0(%rip), %xmm0
	jmp	LBB0_10
LBB0_4:
	movq	_muse_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	__RAISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_LAYER_ON
	testq	%r14, %r14
	je	LBB0_11
## %bb.5:
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	_muse_offset@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clicky_freq_up                 ## TAILCALL
LBB0_9:
	addss	LCPI0_1(%rip), %xmm0
LBB0_10:
	movss	%xmm0, (%rax)
	jmp	LBB0_19
LBB0_11:
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:
	testl	%ebx, %ebx
	je	LBB0_23
## %bb.13:
	movq	_KC_RGHT@GOTPCREL(%rip), %rbx
	jmp	LBB0_25
LBB0_14:
	movq	_muse_tempo@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ecx
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.16:
	incl	%ecx
	jmp	LBB0_18
LBB0_17:
	decl	%ecx
LBB0_18:
	movl	%ecx, (%rax)
LBB0_19:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clicky_freq_down               ## TAILCALL
LBB0_21:
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.22:
	movq	_KC_DOWN@GOTPCREL(%rip), %rbx
	jmp	LBB0_25
LBB0_23:
	movq	_KC_LEFT@GOTPCREL(%rip), %rbx
	jmp	LBB0_25
LBB0_24:
	movq	_KC_UP@GOTPCREL(%rip), %rbx
LBB0_25:
	movl	(%rbx), %edi
	callq	_register_code
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_unregister_code                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__RAISE,4,2                     ## @_RAISE
	.comm	_clicky_rand,4,2                ## @clicky_rand
	.comm	_muse_mode,8,3                  ## @muse_mode
	.comm	_muse_offset,4,2                ## @muse_offset
	.comm	_muse_tempo,4,2                 ## @muse_tempo
	.comm	_KC_RGHT,4,2                    ## @KC_RGHT
	.comm	_KC_LEFT,4,2                    ## @KC_LEFT
	.comm	_KC_DOWN,4,2                    ## @KC_DOWN
	.comm	_KC_UP,4,2                      ## @KC_UP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encoder_update                 ; -- Begin function encoder_update
	.p2align	2
_encoder_update:                        ; @encoder_update
	.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, x0
	bl	_is_clicky_on
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, __RAISE@GOTPAGE
Lloh1:
	ldr	x8, [x8, __RAISE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_LAYER_ON
	cbz	x0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _clicky_rand@GOTPAGE
Lloh4:
	ldr	x8, [x8, _clicky_rand@GOTPAGEOFF]
	ldr	s0, [x8]
	cbz	w19, LBB0_10
; %bb.3:
	fmov	s1, #0.50000000
	b	LBB0_11
LBB0_4:
Lloh5:
	adrp	x8, _muse_mode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _muse_mode@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
Lloh8:
	adrp	x8, __RAISE@GOTPAGE
Lloh9:
	ldr	x8, [x8, __RAISE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_IS_LAYER_ON
	cbz	x20, LBB0_12
; %bb.5:
	cbz	x0, LBB0_15
; %bb.6:
Lloh11:
	adrp	x8, _muse_offset@GOTPAGE
Lloh12:
	ldr	x8, [x8, _muse_offset@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w19, LBB0_16
LBB0_7:
	add	w9, w9, #1
	b	LBB0_17
LBB0_8:
	cbz	w19, LBB0_19
; %bb.9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clicky_freq_up
LBB0_10:
	fmov	s1, #-0.50000000
LBB0_11:
	fadd	s0, s0, s1
	str	s0, [x8]
	b	LBB0_18
LBB0_12:
	cbz	x0, LBB0_20
; %bb.13:
	cbz	w19, LBB0_22
; %bb.14:
Lloh13:
	adrp	x19, _KC_RGHT@GOTPAGE
Lloh14:
	ldr	x19, [x19, _KC_RGHT@GOTPAGEOFF]
	b	LBB0_24
LBB0_15:
Lloh15:
	adrp	x8, _muse_tempo@GOTPAGE
Lloh16:
	ldr	x8, [x8, _muse_tempo@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w19, LBB0_7
LBB0_16:
	sub	w9, w9, #1
LBB0_17:
	str	w9, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clicky_freq_down
LBB0_20:
	cbz	w19, LBB0_23
; %bb.21:
Lloh17:
	adrp	x19, _KC_DOWN@GOTPAGE
Lloh18:
	ldr	x19, [x19, _KC_DOWN@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
Lloh19:
	adrp	x19, _KC_LEFT@GOTPAGE
Lloh20:
	ldr	x19, [x19, _KC_LEFT@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh21:
	adrp	x19, _KC_UP@GOTPAGE
Lloh22:
	ldr	x19, [x19, _KC_UP@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x19]
	bl	_register_code
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_unregister_code
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	__RAISE,4,2                     ; @_RAISE
	.comm	_clicky_rand,4,2                ; @clicky_rand
	.comm	_muse_mode,8,3                  ; @muse_mode
	.comm	_muse_offset,4,2                ; @muse_offset
	.comm	_muse_tempo,4,2                 ; @muse_tempo
	.comm	_KC_RGHT,4,2                    ; @KC_RGHT
	.comm	_KC_LEFT,4,2                    ; @KC_LEFT
	.comm	_KC_DOWN,4,2                    ; @KC_DOWN
	.comm	_KC_UP,4,2                      ; @KC_UP
.subsections_via_symbols
