	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GraphicsOptions_SetMenuItems
_GraphicsOptions_SetMenuItems:          ## @GraphicsOptions_SetMenuItems
	.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
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	testl	%eax, %eax
	movl	$3, %ecx
	cmovsl	%ecx, %eax
	movq	_s_graphicsoptions@GOTPCREL(%rip), %rbx
	movl	%eax, 36(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	movl	%eax, 8(%rbx)
	leaq	L_.str.2(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	movl	%eax, 32(%rbx)
	leaq	L_.str.3(%rip), %rdi
	callq	_trap_Cvar_VariableValue
                                        ## kill: def $eax killed $eax def $rax
	leal	-3(%rax), %edx
	negl	%edx
	xorl	%ecx, %ecx
	movl	%edx, 28(%rbx)
	cmpl	$3, %eax
	jg	LBB0_2
## %bb.1:
	movl	$3, %ecx
	testl	%eax, %eax
	jns	LBB0_3
LBB0_2:
	movl	%ecx, 28(%rbx)
LBB0_3:
	leaq	L_.str.4(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 24(%rbx)
	leaq	L_.str.5(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	xorl	%ecx, %ecx
	cmpl	$16, %eax
	sete	%cl
	cmpl	$32, %eax
	movl	$2, %r14d
	cmovel	%r14d, %ecx
	movl	%ecx, 20(%rbx)
	leaq	L_.str.6(%rip), %rdi
	callq	_UI_Cvar_VariableString
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edi
	callq	_Q_stricmp
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 16(%rbx)
	leaq	L_.str.8(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	movl	$2, %ecx
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.9(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	xorl	%ecx, %ecx
	cmpl	$20, %eax
	setl	%cl
LBB0_5:
	movl	%ecx, 12(%rbx)
	leaq	L_.str.10(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	xorl	%ecx, %ecx
	cmpl	$16, %eax
	sete	%cl
	cmpl	$32, %eax
	cmovel	%r14d, %ecx
	movl	4(%rbx), %eax
	movl	8(%rbx), %edx
	testl	%edx, %edx
	cmovel	%edx, %ecx
	cmpl	$1, %eax
	cmovel	%eax, %ecx
	movl	%ecx, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r_mode"

	.comm	_s_graphicsoptions,40,2         ## @s_graphicsoptions
L_.str.1:                               ## @.str.1
	.asciz	"r_fullscreen"

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

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

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

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

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

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

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

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

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

	.no_dead_strip	_GraphicsOptions_SetMenuItems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GraphicsOptions_SetMenuItems
_GraphicsOptions_SetMenuItems:          ; @GraphicsOptions_SetMenuItems
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_VariableValue
	mov	w20, #3
	cmp	w0, #0
	csel	w8, w20, w0, lt
Lloh2:
	adrp	x19, _s_graphicsoptions@GOTPAGE
Lloh3:
	ldr	x19, [x19, _s_graphicsoptions@GOTPAGEOFF]
	str	w8, [x19, #36]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trap_Cvar_VariableValue
	str	w0, [x19, #8]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_trap_Cvar_VariableValue
	str	w0, [x19, #32]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_trap_Cvar_VariableValue
	sub	w8, w20, w0
	str	w8, [x19, #28]
	cmp	w0, #3
	b.le	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_4
LBB0_2:
	tbz	w0, #31, LBB0_5
; %bb.3:
	mov	w8, #3
LBB0_4:
	str	w8, [x19, #28]
LBB0_5:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_trap_Cvar_VariableValue
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x19, #24]
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_trap_Cvar_VariableValue
	cmp	w0, #16
	cset	w8, eq
	mov	w20, #2
	cmp	w0, #32
	csel	w8, w20, w8, eq
	str	w8, [x19, #20]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_UI_Cvar_VariableString
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_Q_stricmp
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x19, #16]
Lloh18:
	adrp	x0, l_.str.8@PAGE
Lloh19:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_trap_Cvar_VariableValue
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.6:
Lloh20:
	adrp	x0, l_.str.9@PAGE
Lloh21:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_trap_Cvar_VariableValue
	cmp	w0, #20
	cset	w8, lt
	b	LBB0_8
LBB0_7:
	mov	w8, #2
LBB0_8:
	str	w8, [x19, #12]
Lloh22:
	adrp	x0, l_.str.10@PAGE
Lloh23:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_trap_Cvar_VariableValue
	cmp	w0, #16
	cset	w8, eq
	cmp	w0, #32
	csel	w8, w20, w8, eq
	ldp	w10, w9, [x19, #4]
	cmp	w9, #0
	csel	w8, wzr, w8, eq
	cmp	w10, #1
	csinc	w8, w8, wzr, ne
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r_mode"

	.comm	_s_graphicsoptions,40,2         ; @s_graphicsoptions
l_.str.1:                               ; @.str.1
	.asciz	"r_fullscreen"

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

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

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

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

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

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

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

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

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

	.no_dead_strip	_GraphicsOptions_SetMenuItems
.subsections_via_symbols
