// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x1, (%rax)
setl %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x8b9de
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
callq 0x62e0
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ad9c(%rip), %rsi     # 0xb6789
callq 0x67c0
cmpl $0x0, %eax
jne 0x8ba31
cmpl $0x0, -0x14(%rbp)
je 0x8ba13
movl 0x5614d(%rip), %esi     # 0xe1b50
leaq 0x2b4d7(%rip), %rdi     # 0xb6ee1
movb $0x0, %al
callq 0x37c90
jmp 0x8ba25
cmpl $0x0, -0x18(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x5612b(%rip)     # 0xe1b50
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ad8c(%rip), %rsi     # 0xb67cc
callq 0x67c0
cmpl $0x0, %eax
jne 0x8ba84
cmpl $0x0, -0x14(%rbp)
je 0x8ba66
movl 0x560fe(%rip), %esi     # 0xe1b54
leaq 0x2b495(%rip), %rdi     # 0xb6ef2
movb $0x0, %al
callq 0x37c90
jmp 0x8ba78
cmpl $0x0, -0x18(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x560dc(%rip)     # 0xe1b54
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ad8b(%rip), %rsi     # 0xb681e
callq 0x67c0
cmpl $0x0, %eax
jne 0x8bad7
cmpl $0x0, -0x14(%rbp)
je 0x8bab9
movl 0x56117(%rip), %esi     # 0xe1bc0
leaq 0x2b455(%rip), %rdi     # 0xb6f05
movb $0x0, %al
callq 0x37c90
jmp 0x8bacb
cmpl $0x0, -0x18(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x560f5(%rip)     # 0xe1bc0
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ad7f(%rip), %rsi     # 0xb6865
callq 0x67c0
cmpl $0x0, %eax
jne 0x8bb34
cmpl $0x0, -0x14(%rbp)
je 0x8bb0c
movl 0x561e5c(%rip), %esi    # 0x5ed958
leaq 0x2b417(%rip), %rdi     # 0xb6f1a
movb $0x0, %al
callq 0x37c90
jmp 0x8bb28
cmpl $0x0, -0x18(%rbp)
jl 0x8bb18
cmpl $0x2, -0x18(%rbp)
jle 0x8bb1f
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl %eax, 0x561e30(%rip)    # 0x5ed958
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ad95(%rip), %rsi     # 0xb68d8
callq 0x67c0
cmpl $0x0, %eax
jne 0x8bb87
cmpl $0x0, -0x14(%rbp)
je 0x8bb69
movl 0x561df7(%rip), %esi    # 0x5ed950
leaq 0x2b3d3(%rip), %rdi     # 0xb6f33
movb $0x0, %al
callq 0x37c90
jmp 0x8bb7b
cmpl $0x0, -0x18(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x561dd5(%rip)    # 0x5ed950
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ae33(%rip), %rsi     # 0xb69c9
callq 0x67c0
cmpl $0x0, %eax
jne 0x8bbd1
cmpl $0x0, -0x14(%rbp)
je 0x8bbbc
movl 0x561dbc(%rip), %esi    # 0x5ed968
leaq 0x2b395(%rip), %rdi     # 0xb6f48
movb $0x0, %al
callq 0x37c90
jmp 0x8bbc5
movl -0x18(%rbp), %eax
movl %eax, 0x561da3(%rip)    # 0x5ed968
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ae3a(%rip), %rsi     # 0xb6a1a
callq 0x67c0
cmpl $0x0, %eax
jne 0x8bc1b
cmpl $0x0, -0x14(%rbp)
je 0x8bc06
movl 0x561d76(%rip), %esi    # 0x5ed96c
leaq 0x2b363(%rip), %rdi     # 0xb6f60
movb $0x0, %al
callq 0x37c90
jmp 0x8bc0f
movl -0x18(%rbp), %eax
movl %eax, 0x561d5d(%rip)    # 0x5ed96c
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ae42(%rip), %rsi     # 0xb6a6c
callq 0x67c0
cmpl $0x0, %eax
jne 0x8bc6e
cmpl $0x0, -0x14(%rbp)
je 0x8bc50
movl 0x561ce4(%rip), %esi    # 0x5ed924
leaq 0x2b332(%rip), %rdi     # 0xb6f79
movb $0x0, %al
callq 0x37c90
jmp 0x8bc62
cmpl $0x0, -0x18(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x561cc2(%rip)    # 0x5ed924
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ae3a(%rip), %rsi     # 0xb6ab7
callq 0x67c0
cmpl $0x0, %eax
jne 0x8bcb8
cmpl $0x0, -0x14(%rbp)
je 0x8bca3
movl 0x561cdd(%rip), %esi    # 0x5ed970
leaq 0x2b2f3(%rip), %rdi     # 0xb6f8d
movb $0x0, %al
callq 0x37c90
jmp 0x8bcac
movl -0x18(%rbp), %eax
movl %eax, 0x561cc4(%rip)    # 0x5ed970
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x25433(%rip), %rsi     # 0xb10fa
callq 0x67c0
cmpl $0x0, %eax
jne 0x8bd0b
cmpl $0x0, -0x14(%rbp)
je 0x8bced
movl 0x55eeb(%rip), %esi     # 0xe1bc8
leaq 0x2b2be(%rip), %rdi     # 0xb6fa2
movb $0x0, %al
callq 0x37c90
jmp 0x8bcff
cmpl $0x0, -0x18(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x55ec9(%rip)     # 0xe1bc8
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ae43(%rip), %rsi     # 0xb6b5d
callq 0x67c0
cmpl $0x0, %eax
jne 0x8bdc9
cmpl $0x0, -0x14(%rbp)
je 0x8bd70
cmpl $0x0, 0x561c27(%rip)    # 0x5ed95c
jne 0x8bd4d
movl 0x561c1f(%rip), %esi    # 0x5ed95c
leaq 0x2b273(%rip), %rdi     # 0xb6fb7
movb $0x0, %al
callq 0x37c90
jmp 0x8bd6e
movl 0x561c09(%rip), %esi    # 0x5ed95c
movl 0x561c03(%rip), %ecx    # 0x5ed95c
movl $0x1, %edx
shll %cl, %edx
leaq 0x2b26b(%rip), %rdi     # 0xb6fd2
movb $0x0, %al
callq 0x37c90
jmp 0x8bdbd
xorl %eax, %eax
cmpl -0x18(%rbp), %eax
jle 0x8bd7e
xorl %eax, %eax
movl %eax, -0x1c(%rbp)
jmp 0x8bd84
movl -0x18(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %ecx
movl $0x2, %eax
cmpl %ecx, %eax
jge 0x8bd9a
movl $0x2, %eax
movl %eax, -0x20(%rbp)
jmp 0x8bdb4
xorl %eax, %eax
cmpl -0x18(%rbp), %eax
jle 0x8bda8
xorl %eax, %eax
movl %eax, -0x24(%rbp)
jmp 0x8bdae
movl -0x18(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, 0x561b9f(%rip)    # 0x5ed95c
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ade6(%rip), %rsi     # 0xb6bbe
callq 0x67c0
cmpl $0x0, %eax
jne 0x8be1c
cmpl $0x0, -0x14(%rbp)
je 0x8bdfe
movl 0x561b72(%rip), %esi    # 0x5ed960
leaq 0x2b1f8(%rip), %rdi     # 0xb6fed
movb $0x0, %al
callq 0x37c90
jmp 0x8be10
cmpl $0x0, -0x18(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x561b50(%rip)    # 0x5ed960
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2adeb(%rip), %rsi     # 0xb6c16
callq 0x67c0
cmpl $0x0, %eax
jne 0x8be6f
cmpl $0x0, -0x14(%rbp)
je 0x8be51
movl 0x561b23(%rip), %esi    # 0x5ed964
leaq 0x2b1c0(%rip), %rdi     # 0xb7008
movb $0x0, %al
callq 0x37c90
jmp 0x8be63
cmpl $0x0, -0x18(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x561b01(%rip)    # 0x5ed964
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x2ade4(%rip), %rsi     # 0xb6c62
callq 0x67c0
cmpl $0x0, %eax
jne 0x8becf
cmpl $0x0, -0x14(%rbp)
je 0x8bea7
leaq 0x55d3b(%rip), %rax     # 0xe1bd0
movl (%rax), %esi
leaq 0x2b181(%rip), %rdi     # 0xb701f
movb $0x0, %al
callq 0x37c90
jmp 0x8bec6
cmpl $0x0, -0x18(%rbp)
jl 0x8beb3
cmpl $0x2, -0x18(%rbp)
jle 0x8beba
movl $0x1, -0x18(%rbp)
movl -0x18(%rbp), %ecx
leaq 0x55d0c(%rip), %rax     # 0xe1bd0
movl %ecx, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0x8bef0
jmp 0x8bed1
jmp 0x8bed3
jmp 0x8bed5
jmp 0x8bed7
jmp 0x8bed9
jmp 0x8bedb
jmp 0x8bedd
jmp 0x8bedf
jmp 0x8bee1
jmp 0x8bee3
jmp 0x8bee5
jmp 0x8bee7
jmp 0x8bee9
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)