	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encoder_update                 ## -- Begin function 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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_muse_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	__RAISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_LAYER_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_muse_offset@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	movq	_KC_PGDN@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_6:
	movq	_muse_tempo@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	incl	%ecx
	jmp	LBB0_5
LBB0_7:
	decl	%ecx
LBB0_5:
	movl	%ecx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	movq	_KC_PGUP@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %edi
	callq	_register_code
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_unregister_code                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_muse_mode,8,3                  ## @muse_mode
	.comm	__RAISE,4,2                     ## @_RAISE
	.comm	_muse_offset,4,2                ## @muse_offset
	.comm	_muse_tempo,4,2                 ## @muse_tempo
	.comm	_KC_PGDN,4,2                    ## @KC_PGDN
	.comm	_KC_PGUP,4,2                    ## @KC_PGUP
	.comm	_KC_MS_WH_DOWN,4,2              ## @KC_MS_WH_DOWN
	.comm	_KC_MS_WH_UP,4,2                ## @KC_MS_WH_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
Lloh0:
	adrp	x8, _muse_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _muse_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, __RAISE@GOTPAGE
Lloh4:
	ldr	x8, [x8, __RAISE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_IS_LAYER_ON
	cbz	x0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _muse_offset@GOTPAGE
Lloh7:
	ldr	x8, [x8, _muse_offset@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w19, LBB0_7
LBB0_3:
	add	w9, w9, #1
	b	LBB0_8
LBB0_4:
	cbz	w19, LBB0_9
; %bb.5:
Lloh8:
	adrp	x19, _KC_PGDN@GOTPAGE
Lloh9:
	ldr	x19, [x19, _KC_PGDN@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh10:
	adrp	x8, _muse_tempo@GOTPAGE
Lloh11:
	ldr	x8, [x8, _muse_tempo@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w19, LBB0_3
LBB0_7:
	sub	w9, w9, #1
LBB0_8:
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh12:
	adrp	x19, _KC_PGUP@GOTPAGE
Lloh13:
	ldr	x19, [x19, _KC_PGUP@GOTPAGEOFF]
LBB0_10:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_muse_mode,8,3                  ; @muse_mode
	.comm	__RAISE,4,2                     ; @_RAISE
	.comm	_muse_offset,4,2                ; @muse_offset
	.comm	_muse_tempo,4,2                 ; @muse_tempo
	.comm	_KC_PGDN,4,2                    ; @KC_PGDN
	.comm	_KC_PGUP,4,2                    ; @KC_PGUP
	.comm	_KC_MS_WH_DOWN,4,2              ; @KC_MS_WH_DOWN
	.comm	_KC_MS_WH_UP,4,2                ; @KC_MS_WH_UP
.subsections_via_symbols
