	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_SoundOptionsMenu_Event
_UI_SoundOptionsMenu_Event:             ## @UI_SoundOptionsMenu_Event
	.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
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_11
## %bb.1:
	movl	$-129, %eax
	addl	(%rdi), %eax
	cmpl	$6, %eax
	ja	LBB0_11
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_soundOptionsInfo@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	sete	%bl
	movl	$11, %eax
	movl	$22, %esi
	cmovel	%eax, %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_trap_Cvar_SetValue
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_trap_Cvar_SetValue
	xorl	%eax, %eax
	callq	_UI_ForceMenuOff
	movq	_EXEC_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_trap_Cmd_ExecuteText           ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	callq	_UI_PopMenu
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_UI_NetworkOptionsMenu          ## TAILCALL
LBB0_8:
	movq	_soundOptionsInfo@GOTPCREL(%rip), %rax
	movslq	4(%rax), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_3:
	xorl	%eax, %eax
	callq	_UI_PopMenu
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_UI_GraphicsOptionsMenu         ## TAILCALL
LBB0_6:
	movq	_soundOptionsInfo@GOTPCREL(%rip), %rax
	movslq	8(%rax), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	leaq	L_.str(%rip), %rdi
LBB0_7:
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_trap_Cvar_SetValue             ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	callq	_UI_PopMenu
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_UI_DisplayOptionsMenu          ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_UI_PopMenu                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s_volume"

	.comm	_soundOptionsInfo,12,2          ## @soundOptionsInfo
L_.str.1:                               ## @.str.1
	.asciz	"s_musicvolume"

L_.str.2:                               ## @.str.2
	.asciz	"s_khz"

L_.str.3:                               ## @.str.3
	.asciz	"s_compression"

	.comm	_EXEC_APPEND,4,2                ## @EXEC_APPEND
L_.str.4:                               ## @.str.4
	.asciz	"snd_restart\n"

	.no_dead_strip	_UI_SoundOptionsMenu_Event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_SoundOptionsMenu_Event
_UI_SoundOptionsMenu_Event:             ; @UI_SoundOptionsMenu_Event
	.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	x8, _QM_ACTIVATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x0]
	sub	w8, w8, #129
	cmp	w8, #6
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh5:
	adrp	x8, _soundOptionsInfo@GOTPAGE
Lloh6:
	ldr	x8, [x8, _soundOptionsInfo@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	w9, #22
	mov	w10, #11
	cmp	w8, #0
	csel	w1, w10, w9, eq
	cset	w19, eq
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_trap_Cvar_SetValue
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_trap_Cvar_SetValue
	bl	_UI_ForceMenuOff
Lloh12:
	adrp	x8, _EXEC_APPEND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXEC_APPEND@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_Cmd_ExecuteText
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_UI_PopMenu
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UI_NetworkOptionsMenu
LBB0_6:
Lloh17:
	adrp	x8, _soundOptionsInfo@GOTPAGE
Lloh18:
	ldr	x8, [x8, _soundOptionsInfo@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8, #4]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	bl	_UI_PopMenu
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UI_GraphicsOptionsMenu
LBB0_8:
Lloh22:
	adrp	x8, _soundOptionsInfo@GOTPAGE
Lloh23:
	ldr	x8, [x8, _soundOptionsInfo@GOTPAGEOFF]
Lloh24:
	ldrsw	x8, [x8, #8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_Cvar_SetValue
LBB0_10:
	bl	_UI_PopMenu
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UI_DisplayOptionsMenu
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UI_PopMenu
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s_volume"

	.comm	_soundOptionsInfo,12,2          ; @soundOptionsInfo
l_.str.1:                               ; @.str.1
	.asciz	"s_musicvolume"

l_.str.2:                               ; @.str.2
	.asciz	"s_khz"

l_.str.3:                               ; @.str.3
	.asciz	"s_compression"

	.comm	_EXEC_APPEND,4,2                ; @EXEC_APPEND
l_.str.4:                               ; @.str.4
	.asciz	"snd_restart\n"

	.no_dead_strip	_UI_SoundOptionsMenu_Event
.subsections_via_symbols
