	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FCEUD_SoundVolumeAdjust        ## -- Begin function FCEUD_SoundVolumeAdjust
	.p2align	4, 0x90
_FCEUD_SoundVolumeAdjust:               ## @FCEUD_SoundVolumeAdjust
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_soundvolume@GOTPCREL(%rip), %rax
	cmpl	$-1, %edi
	je	LBB0_4
## %bb.1:
	testl	%edi, %edi
	je	LBB0_5
## %bb.2:
	cmpl	$1, %edi
	jne	LBB0_3
## %bb.6:
	movl	(%rax), %ecx
	cmpl	$140, %ecx
	movl	$140, %edi
	cmovll	%ecx, %edi
	addl	$10, %edi
	jmp	LBB0_7
LBB0_4:
	movl	(%rax), %ecx
	cmpl	$11, %ecx
	movl	$10, %edi
	cmovgel	%ecx, %edi
	addl	$-10, %edi
LBB0_7:
	movl	%edi, (%rax)
	jmp	LBB0_8
LBB0_5:
	movl	$100, (%rax)
	movl	$100, %edi
	jmp	LBB0_8
LBB0_3:
	movl	(%rax), %edi
LBB0_8:
	movq	_mute@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	callq	_FCEUI_SetSoundVolume
	movq	_soundvolume@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_FCEU_DispMessage               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_soundvolume,4,2                ## @soundvolume
	.comm	_mute,8,3                       ## @mute
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sound volume %d."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FCEUD_SoundVolumeAdjust        ; -- Begin function FCEUD_SoundVolumeAdjust
	.p2align	2
_FCEUD_SoundVolumeAdjust:               ; @FCEUD_SoundVolumeAdjust
	.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
Lloh0:
	adrp	x19, _soundvolume@GOTPAGE
Lloh1:
	ldr	x19, [x19, _soundvolume@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	cbz	w0, LBB0_5
; %bb.2:
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x19]
	mov	w9, #140
	cmp	w8, #140
	csel	w8, w8, w9, lt
	add	w0, w8, #10
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19]
	mov	w9, #10
	cmp	w8, #10
	csel	w8, w8, w9, gt
	sub	w0, w8, #10
	b	LBB0_6
LBB0_5:
	mov	w0, #100
LBB0_6:
	str	w0, [x19]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19]
LBB0_8:
Lloh2:
	adrp	x8, _mute@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mute@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
	bl	_FCEUI_SetSoundVolume
	ldr	w1, [x19]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_soundvolume,4,2                ; @soundvolume
	.comm	_mute,8,3                       ; @mute
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sound volume %d."

.subsections_via_symbols
