// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
movq %rdi, %r14
movl (%rdi), %ebp
testl %ebp, %ebp
jle 0x54248
movq 0x10(%r14), %rax
movq (%rax), %rdi
callq 0x6310
movl %eax, %ebx
jmp 0x5424a
xorl %ebx, %ebx
movq 0x8(%r14), %r14
leaq 0x1b574(%rip), %rsi     # 0x6f7c9
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x54398
leaq 0x1b5a0(%rip), %rsi     # 0x6f80c
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x543ae
leaq 0x1b5db(%rip), %rsi     # 0x6f85e
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x543c4
leaq 0x1b60b(%rip), %rsi     # 0x6f8a5
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x543ec
leaq 0x1b667(%rip), %rsi     # 0x6f918
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x54415
leaq 0x1b741(%rip), %rsi     # 0x6fa09
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5443d
leaq 0x1b77b(%rip), %rsi     # 0x6fa5a
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5445e
leaq 0x1b7b6(%rip), %rsi     # 0x6faac
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5447f
leaq 0x1b7ea(%rip), %rsi     # 0x6faf7
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x544a7
leaq 0x15f06(%rip), %rsi     # 0x6a22a
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x544c8
leaq 0x1b862(%rip), %rsi     # 0x6fb9d
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x544f0
leaq 0x1b8ac(%rip), %rsi     # 0x6fbfe
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x54521
leaq 0x1b8ed(%rip), %rsi     # 0x6fc56
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x54546
leaq 0x1b922(%rip), %rsi     # 0x6fca2
movq %r14, %rdi
callq 0x6880
testl %eax, %eax
je 0x5457c
pushq $0x1
popq %rbp
jmp 0x545da
testl %ebp, %ebp
jle 0x543da
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x4a167(%rip)     # 0x9e510
jmp 0x54592
testl %ebp, %ebp
jle 0x54403
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x4a155(%rip)     # 0x9e514
jmp 0x54592
testl %ebp, %ebp
jle 0x5442b
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x4a1ab(%rip)     # 0x9e580
jmp 0x54592
movl 0x4a130(%rip), %esi     # 0x9e510
leaq 0x1bb3a(%rip), %rdi     # 0x6ff21
jmp 0x545d1
testl %ebp, %ebp
jle 0x5444c
xorl %ebp, %ebp
cmpl $0x3, %ebx
cmovael %ebp, %ebx
movl %ebx, 0x59f58a(%rip)    # 0x5f3988
jmp 0x545da
movl 0x4a10b(%rip), %esi     # 0x9e514
leaq 0x1bb22(%rip), %rdi     # 0x6ff32
jmp 0x545d1
testl %ebp, %ebp
jle 0x5446d
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x59f55a(%rip)    # 0x5f3980
jmp 0x54592
movl 0x4a14f(%rip), %esi     # 0x9e580
leaq 0x1bb0d(%rip), %rdi     # 0x6ff45
jmp 0x545d1
testl %ebp, %ebp
jle 0x54495
movl %ebx, 0x59f551(%rip)    # 0x5f3998
jmp 0x54592
movl 0x59f536(%rip), %esi    # 0x5f3988
leaq 0x1bb01(%rip), %rdi     # 0x6ff5a
jmp 0x545d1
testl %ebp, %ebp
jle 0x544b6
movl %ebx, 0x59f534(%rip)    # 0x5f399c
jmp 0x54592
movl 0x59f50d(%rip), %esi    # 0x5f3980
leaq 0x1baf9(%rip), %rdi     # 0x6ff73
jmp 0x545d1
testl %ebp, %ebp
jle 0x544de
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x59f4c4(%rip)    # 0x5f3954
jmp 0x54592
movl 0x59f4fd(%rip), %esi    # 0x5f3998
leaq 0x1bae6(%rip), %rdi     # 0x6ff88
jmp 0x545d1
testl %ebp, %ebp
jle 0x5450f
movl %ebx, 0x59f4ef(%rip)    # 0x5f39a0
jmp 0x54592
movl 0x59f4e0(%rip), %esi    # 0x5f399c
leaq 0x1badd(%rip), %rdi     # 0x6ffa0
jmp 0x545d1
testl %ebp, %ebp
jle 0x54534
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x4a0af(%rip)     # 0x9e588
jmp 0x54592
movl 0x59f470(%rip), %esi    # 0x5f3954
leaq 0x1bace(%rip), %rdi     # 0x6ffb9
jmp 0x545d1
testl %ebp, %ebp
jle 0x54559
xorl %ebp, %ebp
testl %ebx, %ebx
cmovlel %ebp, %ebx
cmpl $0x2, %ebx
pushq $0x2
popq %rax
cmovll %ebx, %eax
movl %eax, 0x59f482(%rip)    # 0x5f398c
jmp 0x545da
movl 0x59f48b(%rip), %esi    # 0x5f39a0
leaq 0x1bab1(%rip), %rdi     # 0x6ffcd
jmp 0x545d1
testl %ebp, %ebp
jle 0x54596
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x59f45e(%rip)    # 0x5f3990
jmp 0x54592
movl 0x4a04e(%rip), %esi     # 0x9e588
leaq 0x1baa1(%rip), %rdi     # 0x6ffe2
jmp 0x545d1
testl %ebp, %ebp
jle 0x545a5
xorl %eax, %eax
testl %ebx, %ebx
setne %al
movl %eax, 0x59f43d(%rip)    # 0x5f3994
jmp 0x54592
movl 0x59f42d(%rip), %ecx    # 0x5f398c
testl %ecx, %ecx
je 0x545b4
pushq $0x1
popq %rdx
shll %cl, %edx
leaq 0x1baa3(%rip), %rdi     # 0x70012
xorl %ebp, %ebp
movl %ecx, %esi
xorl %eax, %eax
callq 0x22427
jmp 0x545da
testl %ebp, %ebp
jle 0x545c1
cmpl $0x3, %ebx
pushq $0x1
popq %rax
cmovbl %ebx, %eax
leaq 0x49ffc(%rip), %rcx     # 0x9e58c
movl %eax, (%rcx)
xorl %ebp, %ebp
jmp 0x545da
movl 0x59f3f4(%rip), %esi    # 0x5f3990
leaq 0x1ba8a(%rip), %rdi     # 0x7002d
jmp 0x545d1
movl 0x59f3e9(%rip), %esi    # 0x5f3994
leaq 0x1ba96(%rip), %rdi     # 0x70048
jmp 0x545d1
leaq 0x1ba3c(%rip), %rdi     # 0x6fff7
xorl %ebp, %ebp
xorl %esi, %esi
jmp 0x545d3
leaq 0x49fc4(%rip), %rax     # 0x9e58c
movl (%rax), %esi
leaq 0x1ba8e(%rip), %rdi     # 0x7005f
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x22427
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq