	.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
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_15
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	8(%rdi), %eax
	movl	12(%rdi), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_11
## %bb.3:
	incl	%eax
	jmp	LBB0_6
LBB0_4:
	movl	8(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	decl	%eax
LBB0_6:
	movl	%eax, 8(%rdi)
	jmp	LBB0_9
LBB0_11:
	movq	_menu_buzz_sound@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movl	8(%rdi), %eax
	incl	%eax
	xorl	%ecx, %ecx
	cmpl	12(%rdi), %eax
	cmovll	%eax, %ecx
	movl	%ecx, 8(%rdi)
LBB0_9:
	movq	_menu_move_sound@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.13:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*%rax
	jmp	LBB0_16
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_menu_move_sound,8,3            ## @menu_move_sound
	.comm	_menu_buzz_sound,8,3            ## @menu_buzz_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_6
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldp	w8, w9, [x0, #8]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.3:
	add	w8, w8, #1
	b	LBB0_8
LBB0_4:
	ldr	w8, [x0, #8]
	subs	w8, w8, #1
	b.ge	LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _menu_buzz_sound@GOTPAGE
Lloh3:
	ldr	x8, [x8, _menu_buzz_sound@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
	cbnz	x19, LBB0_9
	b	LBB0_11
LBB0_6:
	mov	x19, #0
	b	LBB0_11
LBB0_7:
	ldp	w8, w9, [x0, #8]
	add	w10, w8, #1
	cmp	w10, w9
	csinc	w8, wzr, w8, ge
LBB0_8:
	str	w8, [x0, #8]
Lloh5:
	adrp	x8, _menu_move_sound@GOTPAGE
Lloh6:
	ldr	x8, [x8, _menu_move_sound@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
	cbz	x19, LBB0_11
LBB0_9:
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.10:
Lloh8:
	adrp	x9, _QM_ACTIVATED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QM_ACTIVATED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	blr	x8
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.comm	_menu_move_sound,8,3            ; @menu_move_sound
	.comm	_menu_buzz_sound,8,3            ; @menu_buzz_sound
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.no_dead_strip	_SpinControl_Key
.subsections_via_symbols
