// File: /workspace/github_c_makefile_star2_O3/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 %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, (%rdi)
jle 0x5e7b1
movq 0x10(%rbx), %rax
movq (%rax), %rdi
callq 0x6310
movl %eax, %ebp
movq 0x8(%rbx), %rbx
leaq 0x1c431(%rip), %rsi     # 0x7aa89
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e911
leaq 0x1c45d(%rip), %rsi     # 0x7aacc
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e923
leaq 0x1c498(%rip), %rsi     # 0x7ab1e
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e947
leaq 0x1c4c8(%rip), %rsi     # 0x7ab65
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e96b
leaq 0x1c524(%rip), %rsi     # 0x7abd8
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e990
leaq 0x1c5fe(%rip), %rsi     # 0x7acc9
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e9b4
leaq 0x1c638(%rip), %rsi     # 0x7ad1a
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e9d1
leaq 0x1c673(%rip), %rsi     # 0x7ad6c
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e9ee
leaq 0x1c6a7(%rip), %rsi     # 0x7adb7
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5ea12
leaq 0x16bc3(%rip), %rsi     # 0x752ea
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5ea2f
leaq 0x1c71f(%rip), %rsi     # 0x7ae5d
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5ea50
leaq 0x1c769(%rip), %rsi     # 0x7aebe
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5ea79
leaq 0x1c7aa(%rip), %rsi     # 0x7af16
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5eaad
leaq 0x1c7df(%rip), %rsi     # 0x7af62
movq %rbx, %rdi
callq 0x6880
movl $0x1, %ebx
testl %eax, %eax
jne 0x5eae3
cmpl $0x3, %ebp
movl $0x1, %eax
cmovbl %ebp, %eax
leaq 0x46de2(%rip), %rcx     # 0xa558c
movl %eax, (%rcx)
jmp 0x5eaba
movq 0x8(%rbx), %rbx
leaq 0x1c2cd(%rip), %rsi     # 0x7aa89
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e935
leaq 0x1c2f9(%rip), %rsi     # 0x7aacc
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e959
leaq 0x1c334(%rip), %rsi     # 0x7ab1e
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e97e
leaq 0x1c364(%rip), %rsi     # 0x7ab65
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e9a2
leaq 0x1c3c0(%rip), %rsi     # 0x7abd8
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e9bf
leaq 0x1c49a(%rip), %rsi     # 0x7acc9
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5e9dc
leaq 0x1c4d4(%rip), %rsi     # 0x7ad1a
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5ea00
leaq 0x1c50f(%rip), %rsi     # 0x7ad6c
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5ea1d
leaq 0x1c543(%rip), %rsi     # 0x7adb7
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5ea3e
leaq 0x16a5f(%rip), %rsi     # 0x752ea
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5ea6a
leaq 0x1c5bb(%rip), %rsi     # 0x7ae5d
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5ea88
leaq 0x1c605(%rip), %rsi     # 0x7aebe
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5eabe
leaq 0x1c646(%rip), %rsi     # 0x7af16
movq %rbx, %rdi
callq 0x6880
testl %eax, %eax
je 0x5eacd
leaq 0x1c67b(%rip), %rsi     # 0x7af62
movq %rbx, %rdi
callq 0x6880
movl $0x1, %ebx
testl %eax, %eax
jne 0x5eae3
leaq 0x46c89(%rip), %rax     # 0xa558c
movl (%rax), %esi
leaq 0x1ca13(%rip), %rdi     # 0x7b31f
jmp 0x5eada
xorl %eax, %eax
testl %ebp, %ebp
setne %al
movl %eax, 0x46bf2(%rip)     # 0xa5510
jmp 0x5eaba
xorl %eax, %eax
testl %ebp, %ebp
setne %al
movl %eax, 0x46be4(%rip)     # 0xa5514
jmp 0x5eaba
movl 0x46bd5(%rip), %esi     # 0xa5510
leaq 0x1c89f(%rip), %rdi     # 0x7b1e1
jmp 0x5eada
xorl %eax, %eax
testl %ebp, %ebp
setne %al
movl %eax, 0x46c2c(%rip)     # 0xa5580
jmp 0x5eaba
movl 0x46bb5(%rip), %esi     # 0xa5514
leaq 0x1c88c(%rip), %rdi     # 0x7b1f2
jmp 0x5eada
xorl %ebx, %ebx
cmpl $0x3, %ebp
cmovael %ebx, %ebp
movl %ebp, 0x59c00f(%rip)    # 0x5fa988
jmp 0x5eae3
movl 0x46bfc(%rip), %esi     # 0xa5580
leaq 0x1c87a(%rip), %rdi     # 0x7b205
jmp 0x5eada
xorl %eax, %eax
testl %ebp, %ebp
setne %al
movl %eax, 0x59bfe3(%rip)    # 0x5fa980
jmp 0x5eaba
movl 0x59bfe0(%rip), %esi    # 0x5fa988
leaq 0x1c86b(%rip), %rdi     # 0x7b21a
jmp 0x5eada
movl %ebp, 0x59bfde(%rip)    # 0x5fa998
jmp 0x5eaba
movl 0x59bfbb(%rip), %esi    # 0x5fa980
leaq 0x1c867(%rip), %rdi     # 0x7b233
jmp 0x5eada
movl %ebp, 0x59bfc5(%rip)    # 0x5fa99c
jmp 0x5eaba
movl 0x59bfb6(%rip), %esi    # 0x5fa998
leaq 0x1c85f(%rip), %rdi     # 0x7b248
jmp 0x5eada
xorl %eax, %eax
testl %ebp, %ebp
setne %al
movl %eax, 0x59bf59(%rip)    # 0x5fa954
jmp 0x5eaba
movl 0x59bf96(%rip), %esi    # 0x5fa99c
leaq 0x1c853(%rip), %rdi     # 0x7b260
jmp 0x5eada
movl %ebp, 0x59bf88(%rip)    # 0x5fa9a0
jmp 0x5eaba
movl 0x59bf31(%rip), %esi    # 0x5fa954
leaq 0x1c84f(%rip), %rdi     # 0x7b279
jmp 0x5eada
xorl %eax, %eax
testl %ebp, %ebp
setne %al
movl %eax, 0x46b4c(%rip)     # 0xa5588
jmp 0x5eaba
movl 0x59bf5c(%rip), %esi    # 0x5fa9a0
leaq 0x1c842(%rip), %rdi     # 0x7b28d
jmp 0x5eada
xorl %ebx, %ebx
testl %ebp, %ebp
cmovlel %ebx, %ebp
cmpl $0x2, %ebp
movl $0x2, %eax
cmovll %ebp, %eax
movl %eax, 0x59bf24(%rip)    # 0x5fa98c
jmp 0x5eae3
movl 0x46b18(%rip), %esi     # 0xa5588
leaq 0x1c82b(%rip), %rdi     # 0x7b2a2
jmp 0x5eada
xorl %eax, %eax
testl %ebp, %ebp
setne %al
movl %eax, 0x59bf0a(%rip)    # 0x5fa990
jmp 0x5eaba
movl 0x59befe(%rip), %ecx    # 0x5fa98c
testl %ecx, %ecx
je 0x5eaec
movl $0x1, %edx
shll %cl, %edx
leaq 0x1c832(%rip), %rdi     # 0x7b2d2
xorl %ebx, %ebx
movl %ecx, %esi
xorl %eax, %eax
callq 0x25221
jmp 0x5eae3
xorl %eax, %eax
testl %ebp, %ebp
setne %al
movl %eax, 0x59beda(%rip)    # 0x5fa994
xorl %ebx, %ebx
jmp 0x5eae3
movl 0x59becc(%rip), %esi    # 0x5fa990
leaq 0x1c822(%rip), %rdi     # 0x7b2ed
jmp 0x5eada
movl 0x59bec1(%rip), %esi    # 0x5fa994
leaq 0x1c82e(%rip), %rdi     # 0x7b308
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x25221
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x1c7c4(%rip), %rdi     # 0x7b2b7
xorl %ebx, %ebx
xorl %esi, %esi
jmp 0x5eadc