	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FCEUD_SetEmulationSpeed        ## -- Begin function FCEUD_SetEmulationSpeed
	.p2align	4, 0x90
_FCEUD_SetEmulationSpeed:               ## @FCEUD_SetEmulationSpeed
	.cfi_startproc
## %bb.0:
                                        ## kill: def $edi killed $edi def $rdi
	addl	$-128, %edi
	cmpl	$4, %edi
	ja	LBB0_9
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_fps_scale_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_9:
	retq
LBB0_3:
	xorl	%eax, %eax
	callq	_DecreaseEmulationSpeed
	jmp	LBB0_8
LBB0_4:
	movq	_fps_scale@GOTPCREL(%rip), %rax
	movl	$256, (%rax)                    ## imm = 0x100
	jmp	LBB0_8
LBB0_6:
	movq	_fps_scale_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_fps_table_size@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	-4(%rax,%rcx,4), %eax
LBB0_7:
	movq	_fps_scale@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
	callq	_IncreaseEmulationSpeed
LBB0_8:
	xorl	%eax, %eax
	callq	_RefreshThrottleFPS
	movq	_fps_scale@GOTPCREL(%rip), %rax
	imull	$100, (%rax), %esi
	sarl	$8, %esi
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_FCEU_DispMessage               ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_fps_scale_table,8,3            ## @fps_scale_table
	.comm	_fps_scale,4,2                  ## @fps_scale
	.comm	_fps_table_size,4,2             ## @fps_table_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"emulation speed %d%%"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FCEUD_SetEmulationSpeed        ; -- Begin function FCEUD_SetEmulationSpeed
	.p2align	2
_FCEUD_SetEmulationSpeed:               ; @FCEUD_SetEmulationSpeed
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	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
	.cfi_remember_state
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
Lloh2:
	adrp	x19, _fps_scale@GOTPAGE
Lloh3:
	ldr	x19, [x19, _fps_scale@GOTPAGEOFF]
	br	x10
LBB0_2:
Lloh4:
	adrp	x8, _fps_scale_table@GOTPAGE
Lloh5:
	ldr	x8, [x8, _fps_scale_table@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w8, [x8]
	b	LBB0_7
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
LBB0_4:
	.cfi_restore_state
	bl	_DecreaseEmulationSpeed
	b	LBB0_9
LBB0_5:
	mov	w8, #256
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _fps_scale_table@GOTPAGE
Lloh8:
	ldr	x8, [x8, _fps_scale_table@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _fps_table_size@GOTPAGE
Lloh11:
	ldr	x9, [x9, _fps_table_size@GOTPAGEOFF]
Lloh12:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	ldur	w8, [x8, #-4]
LBB0_7:
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	bl	_IncreaseEmulationSpeed
LBB0_9:
	bl	_RefreshThrottleFPS
	ldr	w8, [x19]
	mov	w9, #100
	mul	w8, w8, w9
	asr	w1, w8, #8
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FCEU_DispMessage
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_fps_scale_table,8,3            ; @fps_scale_table
	.comm	_fps_scale,4,2                  ; @fps_scale
	.comm	_fps_table_size,4,2             ; @fps_table_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"emulation speed %d%%"

.subsections_via_symbols
