// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/baselayer.c
// Function: osdcmd_vars
static int osdcmd_vars(const osdfuncparm_t *parm)
{
	int showval = (parm->numparms < 1);

	if (!Bstrcasecmp(parm->name, "screencaptureformat")) {
		const char *fmts[3] = { "TGA", "PCX", "PNG" };
		if (!showval) {
			int i;
			for (i=0; i<3; i++)
				if (!Bstrcasecmp(parm->parms[0], fmts[i]) || atoi(parm->parms[0]) == i) {
					captureformat = i;
					break;
				}
			if (i == 3) return OSDCMD_SHOWHELP;
		}
		buildprintf("screencaptureformat is %s\n", fmts[captureformat]);
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "novoxmips")) {
		if (showval) { buildprintf("novoxmips is %d\n", novoxmips); }
		else { novoxmips = (atoi(parm->parms[0]) != 0); }
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "usevoxels")) {
		if (showval) { buildprintf("usevoxels is %d\n", usevoxels); }
		else { usevoxels = (atoi(parm->parms[0]) != 0); }
		return OSDCMD_OK;
	}
	else if (!Bstrcasecmp(parm->name, "usegammabrightness")) {
		const char *types[3] = { "palette", "shader", "system" };
		if (!showval) {
			usegammabrightness = atoi(parm->parms[0]);
			usegammabrightness = min(max(0, usegammabrightness), 2);
#if USE_OPENGL
			if (usegammabrightness == 1 && glunavailable) usegammabrightness = 2;
#endif
		}
		buildprintf("usegammabrightness is %d (%s)\n", usegammabrightness, types[usegammabrightness]);
		return OSDCMD_OK;
	}
	return OSDCMD_SHOWHELP;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x1, (%rax)
setl %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x83aab(%rip), %rsi     # 0xb1b38
callq 0x67c0
cmpl $0x0, %eax
jne 0x2e15a
movq 0xa0a2e(%rip), %rax     # 0xcead0
movq %rax, -0x30(%rbp)
movq 0xa0a2b(%rip), %rax     # 0xcead8
movq %rax, -0x28(%rbp)
movq 0xa0a28(%rip), %rax     # 0xceae0
movq %rax, -0x20(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x2e131
movl $0x0, -0x34(%rbp)
cmpl $0x3, -0x34(%rbp)
jge 0x2e11d
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movslq -0x34(%rbp), %rax
movq -0x30(%rbp,%rax,8), %rsi
callq 0x67c0
cmpl $0x0, %eax
je 0x2e102
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
callq 0x62e0
cmpl -0x34(%rbp), %eax
jne 0x2e110
movl -0x34(%rbp), %ecx
leaq 0x3baf48(%rip), %rax    # 0x3e9054
movl %ecx, (%rax)
jmp 0x2e11d
jmp 0x2e112
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x2e0c9
cmpl $0x3, -0x34(%rbp)
jne 0x2e12f
movl $0x1, -0x4(%rbp)
jmp 0x2e353
jmp 0x2e131
leaq 0x3baf1c(%rip), %rax    # 0x3e9054
movslq (%rax), %rax
movq -0x30(%rbp,%rax,8), %rsi
leaq 0x83c76(%rip), %rdi     # 0xb1dbd
movb $0x0, %al
callq 0x37c90
movl $0x0, -0x4(%rbp)
jmp 0x2e353
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x83a2f(%rip), %rsi     # 0xb1b98
callq 0x67c0
cmpl $0x0, %eax
jne 0x2e1c2
cmpl $0x0, -0x14(%rbp)
je 0x2e192
leaq 0x1c73e0(%rip), %rax    # 0x1f5560
movl (%rax), %esi
leaq 0x83c4f(%rip), %rdi     # 0xb1dd8
movb $0x0, %al
callq 0x37c90
jmp 0x2e1b6
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
callq 0x62e0
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %ecx
leaq 0x1c73ac(%rip), %rax    # 0x1f5560
movl %ecx, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0x2e353
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x83a17(%rip), %rsi     # 0xb1be8
callq 0x67c0
cmpl $0x0, %eax
jne 0x2e22a
cmpl $0x0, -0x14(%rbp)
je 0x2e1fa
leaq 0xb2a88(%rip), %rax     # 0xe0c70
movl (%rax), %esi
leaq 0x83bf8(%rip), %rdi     # 0xb1de9
movb $0x0, %al
callq 0x37c90
jmp 0x2e21e
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
callq 0x62e0
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %ecx
leaq 0xb2a54(%rip), %rax     # 0xe0c70
movl %ecx, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0x2e353
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x82e57(%rip), %rsi     # 0xb1090
callq 0x67c0
cmpl $0x0, %eax
jne 0x2e346
movq 0xa08a2(%rip), %rax     # 0xceaf0
movq %rax, -0x50(%rbp)
movq 0xa089f(%rip), %rax     # 0xceaf8
movq %rax, -0x48(%rbp)
movq 0xa089c(%rip), %rax     # 0xceb00
movq %rax, -0x40(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x2e317
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
callq 0x62e0
movl %eax, %ecx
leaq 0xb29f1(%rip), %rax     # 0xe0c7c
movl %ecx, (%rax)
xorl %eax, %eax
leaq 0xb29e6(%rip), %rcx     # 0xe0c7c
cmpl (%rcx), %eax
jle 0x2e2a1
xorl %eax, %eax
movl %eax, -0x54(%rbp)
jmp 0x2e2ad
leaq 0xb29d4(%rip), %rax     # 0xe0c7c
movl (%rax), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl $0x2, %eax
jge 0x2e2dd
xorl %eax, %eax
leaq 0xb29be(%rip), %rcx     # 0xe0c7c
cmpl (%rcx), %eax
jle 0x2e2c9
xorl %eax, %eax
movl %eax, -0x58(%rbp)
jmp 0x2e2d5
leaq 0xb29ac(%rip), %rax     # 0xe0c7c
movl (%rax), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x5c(%rbp)
jmp 0x2e2e7
movl $0x2, %eax
movl %eax, -0x5c(%rbp)
jmp 0x2e2e7
movl -0x5c(%rbp), %ecx
leaq 0xb298b(%rip), %rax     # 0xe0c7c
movl %ecx, (%rax)
leaq 0xb2982(%rip), %rax     # 0xe0c7c
cmpl $0x1, (%rax)
jne 0x2e315
cmpl $0x0, 0x18c942(%rip)    # 0x1bac48
je 0x2e315
leaq 0xb296d(%rip), %rax     # 0xe0c7c
movl $0x2, (%rax)
jmp 0x2e317
leaq 0xb295e(%rip), %rax     # 0xe0c7c
movl (%rax), %esi
leaq 0xb2955(%rip), %rax     # 0xe0c7c
movslq (%rax), %rax
movq -0x50(%rbp,%rax,8), %rdx
leaq 0x83acb(%rip), %rdi     # 0xb1e01
movb $0x0, %al
callq 0x37c90
movl $0x0, -0x4(%rbp)
jmp 0x2e353
jmp 0x2e348
jmp 0x2e34a
jmp 0x2e34c
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)