	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SpinControl_Key
_SpinControl_Key:                       ## @SpinControl_Key
	.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
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_9
## %bb.1:
	movl	$11, %eax
	btl	%esi, %eax
	jae	LBB0_3
## %bb.2:
	movl	12(%rdi), %eax
	incl	%eax
	xorl	%ecx, %ecx
	cmpl	8(%rdi), %eax
	cmovll	%eax, %ecx
	movl	%ecx, 12(%rdi)
	jmp	LBB0_5
LBB0_3:
	movl	12(%rdi), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, 12(%rdi)
	testl	%eax, %eax
	jg	LBB0_5
## %bb.4:
	movl	8(%rdi), %eax
	decl	%eax
	movl	%eax, 12(%rdi)
LBB0_5:
	movq	_menu_move_sound@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.6:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*%rax
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_move_sound,8,3            ## @menu_move_sound
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.no_dead_strip	_SpinControl_Key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SpinControl_Key
_SpinControl_Key:                       ; @SpinControl_Key
	.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
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #11
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	ldp	w9, w8, [x0, #8]
	add	w10, w8, #1
	cmp	w10, w9
	csinc	w8, wzr, w8, ge
	b	LBB0_5
LBB0_3:
	ldr	w8, [x0, #12]
	sub	w9, w8, #1
	str	w9, [x0, #12]
	cmp	w8, #0
	b.gt	LBB0_6
; %bb.4:
	ldr	w8, [x0, #8]
	sub	w8, w8, #1
LBB0_5:
	str	w8, [x0, #12]
LBB0_6:
Lloh0:
	adrp	x8, _menu_move_sound@GOTPAGE
Lloh1:
	ldr	x8, [x8, _menu_move_sound@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cbz	x19, LBB0_10
; %bb.7:
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.8:
Lloh3:
	adrp	x9, _QM_ACTIVATED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QM_ACTIVATED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	blr	x8
	b	LBB0_10
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_move_sound,8,3            ; @menu_move_sound
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.no_dead_strip	_SpinControl_Key
.subsections_via_symbols
