	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GraphicsOptions_ApplyChanges
_GraphicsOptions_ApplyChanges:          ## @GraphicsOptions_ApplyChanges
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_18
## %bb.1:
	movq	_s_graphicsoptions@GOTPCREL(%rip), %r14
	movl	48(%r14), %esi
	cmpl	$2, %esi
	ja	LBB0_3
## %bb.2:
	shll	$4, %esi
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_SetValue
LBB0_3:
	movl	$3, %esi
	subl	44(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_trap_Cvar_SetValue
	movl	40(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_trap_Cvar_SetValue
	movl	36(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_trap_Cvar_SetValue
	movl	32(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_trap_Cvar_SetValue
	movq	_s_drivers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r14), %rcx
	movq	(%rax,%rcx,8), %rsi
	leaq	L_.str.5(%rip), %rdi
	callq	_trap_Cvar_Set
	movl	16(%r14), %eax
	cmpl	$2, %eax
	je	LBB0_9
## %bb.4:
	cmpl	$1, %eax
	je	LBB0_8
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	leaq	L_.str.6(%rip), %rdi
	xorl	%esi, %esi
	callq	_trap_Cvar_SetValue
	leaq	L_.str.7(%rip), %rdi
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.6(%rip), %rdi
	movl	$32, %esi
	callq	_trap_Cvar_SetValue
	leaq	L_.str.7(%rip), %rdi
	movl	$24, %esi
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.6(%rip), %rdi
	movl	$16, %esi
	callq	_trap_Cvar_SetValue
	leaq	L_.str.7(%rip), %rdi
	movl	$16, %esi
LBB0_7:
	callq	_trap_Cvar_SetValue
	leaq	L_.str.8(%rip), %rdi
	xorl	%esi, %esi
LBB0_10:
	callq	_trap_Cvar_SetValue
LBB0_11:
	movl	12(%r14), %esi
	leaq	L_.str.9(%rip), %rdi
	callq	_trap_Cvar_SetValue
	movl	8(%r14), %eax
	cmpl	$2, %eax
	je	LBB0_12
## %bb.13:
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.14:
	movl	$12, %ebx
	jmp	LBB0_16
LBB0_12:
	movl	$4, %ebx
	xorl	%esi, %esi
	jmp	LBB0_17
LBB0_15:
	movl	$20, %ebx
LBB0_16:
	movl	$1, %esi
LBB0_17:
	leaq	L_.str.10(%rip), %rdi
	callq	_trap_Cvar_SetValue
	leaq	L_.str.11(%rip), %rdi
	movl	%ebx, %esi
	callq	_trap_Cvar_SetValue
	cmpq	$0, (%r14)
	leaq	L_.str.14(%rip), %rax
	leaq	L_.str.13(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.12(%rip), %rdi
	callq	_trap_Cvar_Set
	movq	_EXEC_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_trap_Cmd_ExecuteText           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_s_graphicsoptions,56,3         ## @s_graphicsoptions
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r_texturebits"

L_.str.1:                               ## @.str.1
	.asciz	"r_picmip"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"r_fullscreen"

L_.str.5:                               ## @.str.5
	.asciz	"r_glDriver"

	.comm	_s_drivers,8,3                  ## @s_drivers
L_.str.6:                               ## @.str.6
	.asciz	"r_colorbits"

L_.str.7:                               ## @.str.7
	.asciz	"r_depthbits"

L_.str.8:                               ## @.str.8
	.asciz	"r_stencilbits"

L_.str.9:                               ## @.str.9
	.asciz	"r_vertexLight"

L_.str.10:                              ## @.str.10
	.asciz	"r_lodBias"

L_.str.11:                              ## @.str.11
	.asciz	"r_subdivisions"

L_.str.12:                              ## @.str.12
	.asciz	"r_textureMode"

L_.str.13:                              ## @.str.13
	.asciz	"GL_LINEAR_MIPMAP_LINEAR"

L_.str.14:                              ## @.str.14
	.asciz	"GL_LINEAR_MIPMAP_NEAREST"

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

	.no_dead_strip	_GraphicsOptions_ApplyChanges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GraphicsOptions_ApplyChanges
_GraphicsOptions_ApplyChanges:          ; @GraphicsOptions_ApplyChanges
	.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_7
; %bb.1:
Lloh3:
	adrp	x20, _s_graphicsoptions@GOTPAGE
Lloh4:
	ldr	x20, [x20, _s_graphicsoptions@GOTPAGEOFF]
	ldr	w8, [x20, #48]
	cmp	w8, #2
	b.hi	LBB0_3
; %bb.2:
	lsl	w1, w8, #4
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_SetValue
LBB0_3:
	ldr	w8, [x20, #44]
	mov	w9, #3
	sub	w1, w9, w8
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trap_Cvar_SetValue
	ldr	w1, [x20, #40]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_trap_Cvar_SetValue
	ldr	w1, [x20, #36]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_trap_Cvar_SetValue
	ldr	w1, [x20, #32]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_trap_Cvar_SetValue
Lloh15:
	adrp	x8, _s_drivers@GOTPAGE
Lloh16:
	ldr	x8, [x8, _s_drivers@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [x20, #24]
	ldr	x1, [x8, x9, lsl #3]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_trap_Cvar_Set
	ldr	w8, [x20, #16]
	cmp	w8, #2
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #1
	b.eq	LBB0_9
; %bb.5:
	cbnz	w8, LBB0_12
; %bb.6:
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	w1, #0
	bl	_trap_Cvar_SetValue
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	w1, #0
	b	LBB0_10
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	w1, #32
	bl	_trap_Cvar_SetValue
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	w1, #24
	b	LBB0_11
LBB0_9:
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	w1, #16
	bl	_trap_Cvar_SetValue
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	w1, #16
LBB0_10:
	bl	_trap_Cvar_SetValue
Lloh32:
	adrp	x0, l_.str.8@PAGE
Lloh33:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	w1, #0
LBB0_11:
	bl	_trap_Cvar_SetValue
LBB0_12:
	ldr	w1, [x20, #12]
Lloh34:
	adrp	x0, l_.str.9@PAGE
Lloh35:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_trap_Cvar_SetValue
	ldr	w8, [x20, #8]
	cmp	w8, #2
	b.eq	LBB0_15
; %bb.13:
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.14:
	mov	w19, #12
	b	LBB0_17
LBB0_15:
	mov	w1, #0
	mov	w19, #4
	b	LBB0_18
LBB0_16:
	mov	w19, #20
LBB0_17:
	mov	w1, #1
LBB0_18:
Lloh36:
	adrp	x0, l_.str.10@PAGE
Lloh37:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_trap_Cvar_SetValue
Lloh38:
	adrp	x0, l_.str.11@PAGE
Lloh39:
	add	x0, x0, l_.str.11@PAGEOFF
	mov	x1, x19
	bl	_trap_Cvar_SetValue
	ldr	x8, [x20]
Lloh40:
	adrp	x9, l_.str.13@PAGE
Lloh41:
	add	x9, x9, l_.str.13@PAGEOFF
Lloh42:
	adrp	x10, l_.str.14@PAGE
Lloh43:
	add	x10, x10, l_.str.14@PAGEOFF
	cmp	x8, #0
	csel	x1, x10, x9, eq
Lloh44:
	adrp	x0, l_.str.12@PAGE
Lloh45:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_trap_Cvar_Set
Lloh46:
	adrp	x8, _EXEC_APPEND@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EXEC_APPEND@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x1, l_.str.15@PAGE
Lloh50:
	add	x1, x1, l_.str.15@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_Cmd_ExecuteText
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_s_graphicsoptions,56,3         ; @s_graphicsoptions
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r_texturebits"

l_.str.1:                               ; @.str.1
	.asciz	"r_picmip"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"r_fullscreen"

l_.str.5:                               ; @.str.5
	.asciz	"r_glDriver"

	.comm	_s_drivers,8,3                  ; @s_drivers
l_.str.6:                               ; @.str.6
	.asciz	"r_colorbits"

l_.str.7:                               ; @.str.7
	.asciz	"r_depthbits"

l_.str.8:                               ; @.str.8
	.asciz	"r_stencilbits"

l_.str.9:                               ; @.str.9
	.asciz	"r_vertexLight"

l_.str.10:                              ; @.str.10
	.asciz	"r_lodBias"

l_.str.11:                              ; @.str.11
	.asciz	"r_subdivisions"

l_.str.12:                              ; @.str.12
	.asciz	"r_textureMode"

l_.str.13:                              ; @.str.13
	.asciz	"GL_LINEAR_MIPMAP_LINEAR"

l_.str.14:                              ; @.str.14
	.asciz	"GL_LINEAR_MIPMAP_NEAREST"

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

	.no_dead_strip	_GraphicsOptions_ApplyChanges
.subsections_via_symbols
