// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/polymost.c
// Function: osdcmd_polymostvars
static int osdcmd_polymostvars(const osdfuncparm_t *parm)
{
	int showval = (parm->numparms < 1), val = 0;

	if (!showval) val = atoi(parm->parms[0]);
#if USE_OPENGL
	if (!Bstrcasecmp(parm->name, "usemodels")) {
		if (showval) { buildprintf("usemodels is %d\n", usemodels); }
		else usemodels = (val != 0);
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "usehightile")) {
		if (showval) { buildprintf("usehightile is %d\n", usehightile); }
		else usehightile = (val != 0);
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "glusetexcompr")) {
		if (showval) { buildprintf("glusetexcompr is %d\n", glusetexcompr); }
		else glusetexcompr = (val != 0);
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "gltexcomprquality")) {
		if (showval) { buildprintf("gltexcomprquality is %d\n", gltexcomprquality); }
		else {
			if (val < 0 || val > 2) val = 0;
			gltexcomprquality = val;
		}
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "glredbluemode")) {
		if (showval) { buildprintf("glredbluemode is %d\n", glredbluemode); }
		else glredbluemode = (val != 0);
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "gltexturemaxsize")) {
		if (showval) { buildprintf("gltexturemaxsize is %d\n", gltexmaxsize); }
		else gltexmaxsize = val;
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "gltexturemiplevel")) {
		if (showval) { buildprintf("gltexturemiplevel is %d\n", gltexmiplevel); }
		else gltexmiplevel = val;
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "usegoodalpha")) {
		if (showval) { buildprintf("usegoodalpha is %d\n", usegoodalpha); }
		else usegoodalpha = (val != 0);
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "glpolygonmode")) {
		if (showval) { buildprintf("glpolygonmode is %d\n", glpolygonmode); }
		else glpolygonmode = val;
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "glusetexcache")) {
		if (showval) { buildprintf("glusetexcache is %d\n", glusetexcache); }
		else glusetexcache = (val != 0);
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "glmultisample")) {
		if (showval) {
			if (!glmultisample) buildprintf("glmultisample is %d (off)\n", glmultisample);
			else buildprintf("glmultisample is %d (%dx)\n", glmultisample, 1<<glmultisample);
		}
		else glmultisample = min(2,max(0,val));
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "glnvmultisamplehint")) {
		if (showval) { buildprintf("glnvmultisamplehint is %d\n", glnvmultisamplehint); }
		else glnvmultisamplehint = (val != 0);
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "glsampleshading")) {
		if (showval) { buildprintf("glsampleshading is %d\n", glsampleshading); }
		else glsampleshading = (val != 0);
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "polymosttexverbosity")) {
		if (showval) { buildprintf("polymosttexverbosity is %d\n", polymosttexverbosity); }
		else {
			if (val < 0 || val > 2) val = 1;
			polymosttexverbosity = val;
		}
		return OSDCMD_OK;
	}
#endif //USE_OPENGL
#ifdef DEBUGGINGAIDS
	if (!Bstrcasecmp(parm->name, "debugshowcallcounts")) {
		if (showval) { buildprintf("debugshowcallcounts is %d\n", polymostshowcallcounts); }
		else polymostshowcallcounts = (val != 0);
		return OSDCMD_OK;
	}
#endif
	return OSDCMD_SHOWHELP;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl (%rdi), %r15d
testl %r15d, %r15d
jle 0x5c4f3
movq 0x10(%r14), %rax
movq (%rax), %rdi
callq 0x6310
movl %eax, %ebx
jmp 0x5c4f5
xorl %ebx, %ebx
movq 0x8(%r14), %r14
leaq 0x1d109(%rip), %rsi     # 0x79609
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c662
leaq 0x1d135(%rip), %rsi     # 0x7964c
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c679
leaq 0x1d170(%rip), %rsi     # 0x7969e
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c690
leaq 0x1d1a0(%rip), %rsi     # 0x796e5
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c6b9
leaq 0x1d1fc(%rip), %rsi     # 0x79758
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c6e3
leaq 0x1d2d6(%rip), %rsi     # 0x79849
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c70c
leaq 0x1d310(%rip), %rsi     # 0x7989a
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c72e
leaq 0x1d34b(%rip), %rsi     # 0x798ec
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c750
leaq 0x1d37f(%rip), %rsi     # 0x79937
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c779
leaq 0x17c33(%rip), %rsi     # 0x74202
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c79b
leaq 0x1d3f7(%rip), %rsi     # 0x799dd
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c7c1
leaq 0x1d441(%rip), %rsi     # 0x79a3e
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c7f5
leaq 0x1d482(%rip), %rsi     # 0x79a96
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5c818
leaq 0x1d4b7(%rip), %rsi     # 0x79ae2
movq %r14, %rdi
callq 0x6880
movl $0x1, %ebp
testl %eax, %eax
jne 0x5c897
testl %r15d, %r15d
jle 0x5c87e
cmpl $0x3, %ebx
movl $0x1, %eax
cmovbl %ebx, %eax
leaq 0x47f31(%rip), %rcx     # 0xa458c
movl %eax, (%rcx)
jmp 0x5c82a
testl %r15d, %r15d
jle 0x5c6a7
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x47e9c(%rip)     # 0xa4510
jmp 0x5c82a
testl %r15d, %r15d
jle 0x5c6d1
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x47e89(%rip)     # 0xa4514
jmp 0x5c82a
testl %r15d, %r15d
jle 0x5c6fa
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x47ede(%rip)     # 0xa4580
jmp 0x5c82a
movl 0x47e63(%rip), %esi     # 0xa4510
leaq 0x1d6ad(%rip), %rdi     # 0x79d61
jmp 0x5c88e
testl %r15d, %r15d
jle 0x5c71c
xorl %ebp, %ebp
cmpl $0x3, %ebx
cmovael %ebp, %ebx
movl %ebx, 0x59d2bc(%rip)    # 0x5f9988
jmp 0x5c897
movl 0x47e3d(%rip), %esi     # 0xa4514
leaq 0x1d694(%rip), %rdi     # 0x79d72
jmp 0x5c88e
testl %r15d, %r15d
jle 0x5c73e
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x59d28b(%rip)    # 0x5f9980
jmp 0x5c82a
movl 0x47e80(%rip), %esi     # 0xa4580
leaq 0x1d67e(%rip), %rdi     # 0x79d85
jmp 0x5c88e
testl %r15d, %r15d
jle 0x5c767
movl %ebx, 0x59d281(%rip)    # 0x5f9998
jmp 0x5c82a
movl 0x59d266(%rip), %esi    # 0x5f9988
leaq 0x1d671(%rip), %rdi     # 0x79d9a
jmp 0x5c88e
testl %r15d, %r15d
jle 0x5c789
movl %ebx, 0x59d263(%rip)    # 0x5f999c
jmp 0x5c82a
movl 0x59d23c(%rip), %esi    # 0x5f9980
leaq 0x1d668(%rip), %rdi     # 0x79db3
jmp 0x5c88e
testl %r15d, %r15d
jle 0x5c7af
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x59d1f2(%rip)    # 0x5f9954
jmp 0x5c82a
movl 0x59d22b(%rip), %esi    # 0x5f9998
leaq 0x1d654(%rip), %rdi     # 0x79dc8
jmp 0x5c88e
testl %r15d, %r15d
jle 0x5c7e3
movl %ebx, 0x59d21c(%rip)    # 0x5f99a0
jmp 0x5c82a
movl 0x59d20d(%rip), %esi    # 0x5f999c
leaq 0x1d64a(%rip), %rdi     # 0x79de0
jmp 0x5c88e
testl %r15d, %r15d
jle 0x5c809
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x47ddb(%rip)     # 0xa4588
jmp 0x5c82a
movl 0x59d19f(%rip), %esi    # 0x5f9954
leaq 0x1d63d(%rip), %rdi     # 0x79df9
jmp 0x5c88e
testl %r15d, %r15d
jle 0x5c82e
xorl %ebp, %ebp
testl %ebx, %ebx
cmovlel %ebp, %ebx
cmpl $0x2, %ebx
movl $0x2, %eax
cmovll %ebx, %eax
movl %eax, 0x59d1ae(%rip)    # 0x5f998c
jmp 0x5c897
movl 0x59d1b7(%rip), %esi    # 0x5f99a0
leaq 0x1d61d(%rip), %rdi     # 0x79e0d
jmp 0x5c88e
testl %r15d, %r15d
jle 0x5c853
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x59d189(%rip)    # 0x5f9990
jmp 0x5c82a
movl 0x47d79(%rip), %esi     # 0xa4588
leaq 0x1d60c(%rip), %rdi     # 0x79e22
jmp 0x5c88e
testl %r15d, %r15d
jle 0x5c862
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x59d16a(%rip)    # 0x5f9994
xorl %ebp, %ebp
jmp 0x5c897
movl 0x59d158(%rip), %ecx    # 0x5f998c
testl %ecx, %ecx
je 0x5c871
movl $0x1, %edx
shll %cl, %edx
leaq 0x1d60c(%rip), %rdi     # 0x79e52
xorl %ebp, %ebp
movl %ecx, %esi
xorl %eax, %eax
callq 0x24cb4
jmp 0x5c897
movl 0x59d137(%rip), %esi    # 0x5f9990
leaq 0x1d60d(%rip), %rdi     # 0x79e6d
jmp 0x5c88e
movl 0x59d12c(%rip), %esi    # 0x5f9994
leaq 0x1d619(%rip), %rdi     # 0x79e88
jmp 0x5c88e
leaq 0x1d5bf(%rip), %rdi     # 0x79e37
xorl %ebp, %ebp
xorl %esi, %esi
jmp 0x5c890
leaq 0x47d07(%rip), %rax     # 0xa458c
movl (%rax), %esi
leaq 0x1d611(%rip), %rdi     # 0x79e9f
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x24cb4
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq