	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GraphicsOptions_Event
_GraphicsOptions_Event:                 ## @GraphicsOptions_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_15
## %bb.1:
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_15
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	xorl	%eax, %eax
	callq	_UI_PopMenu
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_SoundOptionsMenu            ## TAILCALL
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_DriverInfo_Menu             ## TAILCALL
LBB0_3:
	movq	_ratioToRes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_s_graphicsoptions@GOTPCREL(%rip), %rcx
	movq	32(%rcx), %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, 28(%rcx)
LBB0_4:
	movq	_s_graphicsoptions@GOTPCREL(%rip), %rax
	movl	28(%rax), %ecx
	cmpl	$1, 48(%rax)
	jne	LBB0_8
## %bb.5:
	movl	$2, %edx
	cmpl	$2, %ecx
	jl	LBB0_7
## %bb.6:
	movl	$6, %edx
	cmpl	$7, %ecx
	jb	LBB0_8
LBB0_7:
	movl	%edx, 28(%rax)
	movl	%edx, %ecx
LBB0_8:
	movq	_resToRatio@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	%ecx, %rcx
	movq	(%rdx,%rcx,8), %rcx
	movq	%rcx, 32(%rax)
	jmp	LBB0_15
LBB0_13:
	xorl	%eax, %eax
	callq	_UI_PopMenu
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_NetworkOptionsMenu          ## TAILCALL
LBB0_14:
	movq	_s_ivo_templates@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_s_graphicsoptions@GOTPCREL(%rip), %r14
	movq	40(%r14), %rbx
	shlq	$5, %rbx
	movl	28(%r15,%rbx), %edi
	callq	_GraphicsOptions_FindDetectedResolution
	movl	%eax, 28(%r14)
	movq	_resToRatio@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 32(%r14)
	movl	24(%r15,%rbx), %eax
	movl	%eax, 24(%r14)
	movl	20(%r15,%rbx), %eax
	movl	%eax, 20(%r14)
	movl	16(%r15,%rbx), %eax
	movl	%eax, 16(%r14)
	movups	(%r15,%rbx), %xmm0
	movups	%xmm0, (%r14)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	callq	_UI_PopMenu
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_DisplayOptionsMenu          ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_PopMenu                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_3
	.long	L0_0_set_13
	.long	L0_0_set_4
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_ratioToRes,8,3                 ## @ratioToRes
	.comm	_s_graphicsoptions,56,3         ## @s_graphicsoptions
	.comm	_resToRatio,8,3                 ## @resToRatio
	.comm	_s_ivo_templates,8,3            ## @s_ivo_templates
	.no_dead_strip	_GraphicsOptions_Event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GraphicsOptions_Event
_GraphicsOptions_Event:                 ; @GraphicsOptions_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_17
; %bb.1:
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_17
; %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:
	bl	_UI_PopMenu
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UI_SoundOptionsMenu
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UI_DriverInfo_Menu
LBB0_5:
Lloh5:
	adrp	x8, _ratioToRes@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ratioToRes@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _s_graphicsoptions@GOTPAGE
Lloh9:
	ldr	x9, [x9, _s_graphicsoptions@GOTPAGEOFF]
	ldr	x10, [x9, #32]
	ldr	w8, [x8, x10, lsl #2]
	str	w8, [x9, #28]
LBB0_6:
Lloh10:
	adrp	x8, _s_graphicsoptions@GOTPAGE
Lloh11:
	ldr	x8, [x8, _s_graphicsoptions@GOTPAGEOFF]
	ldr	w10, [x8, #48]
	ldr	w9, [x8, #28]
	cmp	w10, #1
	b.ne	LBB0_16
; %bb.7:
	cmp	w9, #2
	b.ge	LBB0_13
; %bb.8:
	mov	w9, #2
	b	LBB0_15
LBB0_9:
	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_10:
Lloh12:
	adrp	x8, _s_ivo_templates@GOTPAGE
Lloh13:
	ldr	x8, [x8, _s_ivo_templates@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x19, _s_graphicsoptions@GOTPAGE
Lloh16:
	ldr	x19, [x19, _s_graphicsoptions@GOTPAGEOFF]
	ldr	x9, [x19, #40]
	add	x20, x8, x9, lsl #5
	ldr	w0, [x20, #28]
	bl	_GraphicsOptions_FindDetectedResolution
Lloh17:
	adrp	x8, _resToRatio@GOTPAGE
Lloh18:
	ldr	x8, [x8, _resToRatio@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	sbfiz	x9, x0, #3, #32
	ldr	x8, [x8, x9]
	str	x8, [x19, #32]
	ldr	w8, [x20, #24]
	stp	w8, w0, [x19, #24]
	ldr	d0, [x20, #16]
	str	d0, [x19, #16]
	ldr	q0, [x20]
	str	q0, [x19]
	b	LBB0_17
LBB0_11:
	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_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UI_PopMenu
LBB0_13:
	cmp	w9, #7
	b.lo	LBB0_16
; %bb.14:
	mov	w9, #6
LBB0_15:
	str	w9, [x8, #28]
LBB0_16:
Lloh20:
	adrp	x10, _resToRatio@GOTPAGE
Lloh21:
	ldr	x10, [x10, _resToRatio@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	ldr	x9, [x10, w9, sxtw #3]
	str	x9, [x8, #32]
LBB0_17:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_ratioToRes,8,3                 ; @ratioToRes
	.comm	_s_graphicsoptions,56,3         ; @s_graphicsoptions
	.comm	_resToRatio,8,3                 ; @resToRatio
	.comm	_s_ivo_templates,8,3            ; @s_ivo_templates
	.no_dead_strip	_GraphicsOptions_Event
.subsections_via_symbols
