LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/cmdlinecfg.cpp
// Function: findparams(char*, char*)
char * findparams (char *cmdlineparams, char *params)
{
	char *c1, *c, *p;
	for (c1 = cmdlineparams; pvalid (c1); c1 = pnext (c1))
	{
		for (c = c1, p = params; pvalid (p); c = pnext (c), p = pnext (p))
			if (!pvalid (c) || !pmatch (c, p))
				break;
		if (!pvalid (p))
			return c1;
	}
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movabsq $0x100000000, %r13      # imm = 0x100000000
movq %rbx, %rax
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x8f57
cmpl $0xa, %ecx
je 0x8e78
incq %rax
jmp 0x8e63
movq %rbx, %r12
movq %r14, %r15
movq %r15, %rax
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x8f19
cmpl $0xa, %ecx
je 0x8e96
incq %rax
jmp 0x8e81
movq %r12, %rax
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x8f19
cmpl $0xa, %ecx
je 0x8eaa
incq %rax
jmp 0x8e99
movq %r12, %rdi
movq %r15, %rsi
callq 0x8cd1
testb %al, %al
je 0x8f19
movq %r12, %rcx
xorl %eax, %eax
movzbl (%rcx), %edx
testl %edx, %edx
je 0x8ed8
cmpl $0xa, %edx
je 0x8ed2
addq %r13, %rax
incq %rcx
jmp 0x8ebe
sarq $0x20, %rax
jmp 0x8edf
movq $-0x1, %rax
addq %rax, %r12
incq %r12
movq %r15, %rcx
xorl %eax, %eax
movzbl (%rcx), %edx
testl %edx, %edx
je 0x8f04
cmpl $0xa, %edx
je 0x8efe
addq %r13, %rax
incq %rcx
jmp 0x8eea
sarq $0x20, %rax
jmp 0x8f0b
movq $-0x1, %rax
addq %rax, %r15
incq %r15
jmp 0x8e7e
incq %r15
movzbl (%r15), %eax
testl %eax, %eax
je 0x8f59
cmpl $0xa, %eax
jne 0x8f16
movq %rbx, %rcx
xorl %eax, %eax
movzbl (%rcx), %edx
testl %edx, %edx
je 0x8f45
cmpl $0xa, %edx
je 0x8f3f
addq %r13, %rax
incq %rcx
jmp 0x8f2b
sarq $0x20, %rax
jmp 0x8f4c
movq $-0x1, %rax
addq %rax, %rbx
incq %rbx
jmp 0x8e60
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/cmdlinecfg.cpp
// Function: delparams(char*, char*)
void delparams (char *cmdline, char *params)
{
	char *c, *p;
	if (!pvalid (params)) //avoid infinite loop
		return;
	while (cmdline = findparams (cmdline, params), cmdline != NULL)
	{
		for (c = cmdline, p = params; pvalid (p); c = pnext (c), p = pnext (p))
			;
		memmove (cmdline, c, strlen (c) + 1);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rsi, %rax
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x909c
cmpl $0xa, %ecx
je 0x8fdc
incq %rax
jmp 0x8fc7
movq %rbx, %rsi
callq 0x8e47
testq %rax, %rax
je 0x909c
movq %rax, %r14
movabsq $0x100000000, %r12      # imm = 0x100000000
movq %r14, %r15
movq %rbx, %rax
movq %rax, %rcx
movzbl (%rcx), %edx
testl %edx, %edx
je 0x906e
cmpl $0xa, %edx
je 0x9014
incq %rcx
jmp 0x9003
movq %r15, %rdx
xorl %ecx, %ecx
movzbl (%rdx), %esi
testl %esi, %esi
je 0x9033
cmpl $0xa, %esi
je 0x902d
addq %r12, %rcx
incq %rdx
jmp 0x9019
sarq $0x20, %rcx
jmp 0x903a
movq $-0x1, %rcx
addq %rcx, %r15
incq %r15
movq %rax, %rdx
xorl %ecx, %ecx
movzbl (%rdx), %esi
testl %esi, %esi
je 0x905f
cmpl $0xa, %esi
je 0x9059
addq %r12, %rcx
incq %rdx
jmp 0x9045
sarq $0x20, %rcx
jmp 0x9066
movq $-0x1, %rcx
addq %rcx, %rax
incq %rax
jmp 0x9000
movq %r15, %rdi
callq 0x4180
leaq 0x1(%rax), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4530
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8e47
movq %rax, %r14
testq %rax, %rax
jne 0x8ffa
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/cmdlinecfg.cpp
// Function: nextword(char const*, char*, unsigned int)
const char * nextword (const char *s, char *token, unsigned int n)
{
	unsigned int i;
	const char *c;
	bool quote, comment, content;
	for (c=s, i=0, quote=false, comment=false, content=false; c[0] != '\0'; c++)
	{
		if (c[0]=='\"')
			quote = !quote;
		if (c[0]=='\n')
			quote = false;
		if (c[0]=='\n')
			comment = false;
		if (!quote && c[0]=='/' && c[1]=='/')
			comment = true;
		if (!comment && !(c[0]=='\n' || isspace (c[0])))
			content = true;
		if (!quote && !comment && content && (c[0]=='\n' || isspace (c[0])))
			break;
		if (content && c[0]!='\"')
			if (i<n-1)
				token[i++] = c[0];
			else
				error = true;
	}
	token[i] = '\0';
	return content? c: NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, 0x8(%rsp)
movq %rdi, %rbx
decl %edx
movl %edx, 0x4(%rsp)
xorl %edx, %edx
xorl %ebp, %ebp
xorl %r14d, %r14d
xorl %r13d, %r13d
movzbl (%rbx), %r12d
cmpl $0x22, %r12d
je 0x9396
testl %r12d, %r12d
jne 0x939a
jmp 0x9468
xorb $0x1, %bpl
cmpb $0xa, %r12b
movzbl %bpl, %ebp
movl $0x0, %eax
cmovel %eax, %ebp
movzbl %r14b, %r14d
cmovel %eax, %r14d
cmpb $0x2f, %r12b
setne %al
orb %bpl, %al
testb $0x1, %al
jne 0x93d1
cmpb $0x2f, 0x1(%rbx)
movzbl %r14b, %r14d
movl $0x1, %eax
cmovel %eax, %r14d
movsbl %r12b, %r15d
cmpb $0xa, %r12b
je 0x940e
testb $0x1, %r14b
jne 0x940e
movl %r15d, %edi
movq %rbx, 0x10(%rsp)
movl %r13d, %ebx
movl %edx, %r13d
callq 0x4080
movl %r13d, %edx
movl %ebx, %r13d
movq 0x10(%rsp), %rbx
testl %eax, %eax
movzbl %r13b, %r13d
movl $0x1, %eax
cmovel %eax, %r13d
testb $0x1, %bpl
jne 0x9438
testb $0x1, %r14b
jne 0x9438
testb $0x1, %r13b
je 0x9438
cmpb $0xa, %r12b
je 0x9468
movl %r15d, %edi
movl %edx, %r15d
callq 0x4080
movl %r15d, %edx
testl %eax, %eax
jne 0x9468
cmpb $0x22, %r12b
je 0x9460
testb $0x1, %r13b
je 0x9460
cmpl 0x4(%rsp), %edx
jae 0x9459
movl %edx, %eax
incl %edx
movq 0x8(%rsp), %rcx
movb %r12b, (%rcx,%rax)
jmp 0x9460
movb $0x1, 0x20b6008(%rip)   # 0x20bf468
incq %rbx
jmp 0x9382
movl %edx, %eax
movq 0x8(%rsp), %rcx
movb $0x0, (%rcx,%rax)
xorl %eax, %eax
testb $0x1, %r13b
cmovneq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/cmdlinecfg.cpp
// Function: parsearg(int, char**, char*, unsigned int)
void parsearg (int argc, char ** argv, char *cmdline, unsigned int n)
{
	int i;
	strcpy (cmdline, "");
	strcat (cmdline, "<");
	strcat (cmdline, g_Program);
	strcat (cmdline, ">");
	strcat (cmdline, SEPSTR);
	for (i=1; i<argc; ++i)
	{
		if (strlen (cmdline) + strlen (argv[i]) + strlen (SEPSTR) + 1 <= n)
		{
			strcat (cmdline, argv[i]);
			strcat (cmdline, SEPSTR);
		}
		else
			error = true;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, (%rsp)
movl %edi, %r15d
movb $0x0, (%rdx)
movq %rdx, %rdi
callq 0x4180
movw $0x3c, (%rbx,%rax)
leaq 0x1ee95(%rip), %rax     # 0x28350
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x4580
movq %rbx, %rdi
callq 0x4180
movw $0x3e, (%rbx,%rax)
movq %rbx, %rdi
callq 0x4180
movw $0xa, (%rbx,%rax)
cmpl $0x2, %r15d
jl 0x9545
movl %ebp, %r13d
movl %r15d, %ebp
movl $0x1, %r14d
movq %rbx, %rdi
callq 0x4180
movq %rax, %r12
movq (%rsp), %rax
movq (%rax,%r14,8), %r15
movq %r15, %rdi
callq 0x4180
addq %r12, %rax
addq $0x2, %rax
cmpq %r13, %rax
jbe 0x9524
movb $0x1, 0x20b5f46(%rip)   # 0x20bf468
jmp 0x953d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4580
movq %rbx, %rdi
callq 0x4180
movw $0xa, (%rbx,%rax)
incq %r14
cmpq %r14, %rbp
jne 0x94f4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/cmdlinecfg.cpp
// Function: unparsearg(int&, char**&, char*)
void unparsearg (int &argc, char **&argv, char *cmdline)
{
	char *c;
	int i, j;
	i = 0;
	for (c = cmdline; pvalid (c); c = pnext (c))
		i++;
	argc = i;
	argv = (char **)malloc (argc * sizeof (char *));
	if (!argv)
	{
		error = true;
		return;
	}
	for (c = cmdline, i = 0; pvalid (c); c = pnext (c), i++)
	{
		argv[i] = (char *)malloc (plen (c) + 1);
		if (!argv[i])
		{
			error = true;
			return;
		}
		for (j = 0; j < plen (c); j++)
			argv[i][j] = c[j];
		argv[i][j] = '\0';
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
xorl %eax, %eax
movabsq $0x100000000, %r15      # imm = 0x100000000
movq %rdx, %rcx
movq %rcx, %rdx
movzbl (%rdx), %esi
testl %esi, %esi
je 0x95b8
cmpl $0xa, %esi
je 0x9585
incq %rdx
jmp 0x9574
incl %eax
movq %rcx, %rsi
xorl %edx, %edx
movzbl (%rsi), %r8d
testl %r8d, %r8d
je 0x95a9
cmpl $0xa, %r8d
je 0x95a3
addq %r15, %rdx
incq %rsi
jmp 0x958c
sarq $0x20, %rdx
jmp 0x95b0
movq $-0x1, %rdx
addq %rdx, %rcx
incq %rcx
jmp 0x9571
movl %eax, (%rdi)
movl %eax, %edi
shlq $0x3, %rdi
callq 0x4430
movq %rax, (%r14)
testq %rax, %rax
je 0x96a8
xorl %r12d, %r12d
movq %rbx, %rax
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x96af
cmpl $0xa, %ecx
je 0x95ec
incq %rax
jmp 0x95d7
movq %rbx, %rax
movq %r15, %rdi
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x960c
cmpl $0xa, %ecx
je 0x9606
addq %r15, %rdi
incq %rax
jmp 0x95f2
sarq $0x20, %rdi
jmp 0x960e
xorl %edi, %edi
callq 0x4430
movq (%r14), %rcx
movq %rax, (%rcx,%r12,8)
movq (%r14), %rax
cmpq $0x0, (%rax,%r12,8)
je 0x96a8
xorl %eax, %eax
movq %rbx, %rdx
xorl %ecx, %ecx
movzbl (%rdx), %esi
testl %esi, %esi
je 0x9649
cmpl $0xa, %esi
je 0x9643
addq %r15, %rcx
incq %rdx
jmp 0x962f
sarq $0x20, %rcx
jmp 0x9650
movq $-0x1, %rcx
cmpq %rcx, %rax
jge 0x9667
movb (%rbx,%rax), %cl
movq (%r14), %rdx
movq (%rdx,%r12,8), %rdx
movb %cl, (%rdx,%rax)
incq %rax
jmp 0x962a
movq (%r14), %rcx
movq (%rcx,%r12,8), %rcx
movl %eax, %eax
movb $0x0, (%rcx,%rax)
movq %rbx, %rcx
xorl %eax, %eax
movzbl (%rcx), %edx
testl %edx, %edx
je 0x9693
cmpl $0xa, %edx
je 0x968d
addq %r15, %rax
incq %rcx
jmp 0x9679
sarq $0x20, %rax
jmp 0x969a
movq $-0x1, %rax
addq %rax, %rbx
incq %rbx
incq %r12
jmp 0x95d4
movb $0x1, 0x20b5db9(%rip)   # 0x20bf468
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/filelib.cpp
// Function: getfiletime(char const*)
time_t          getfiletime(const char* const filename)
{
    time_t          filetime = 0;
    struct stat     filestat;

    if (stat(filename, &filestat) == 0)
        filetime = qmax(filestat.st_mtime, filestat.st_ctime);

    return filetime;
}

// Assembly:
subq $0x98, %rsp
leaq 0x8(%rsp), %rsi
callq 0x42b0
testl %eax, %eax
je 0x9953
xorl %eax, %eax
addq $0x98, %rsp
retq
movq 0x60(%rsp), %rcx
movq 0x70(%rsp), %rax
cmpq %rax, %rcx
cmovgq %rcx, %rax
addq $0x98, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/filelib.cpp
// Function: getfiledata(char const*, char*, int)
long            getfiledata(const char* const filename, char* buffer, const int buffersize)
{
    long            size = 0;
    int             handle;
    time_t            start, end;

    time(&start);

    if ((handle = _open(filename, O_RDONLY)) != -1)
    {
        int             bytesread;

        Log("%-20s Restoring [%-13s - ", "BuildVisMatrix:", filename);
        while ((bytesread = _read(handle, buffer, qmin(32 * 1024, buffersize - size))) > 0)
        {
            size += bytesread;
            buffer += bytesread;
        }
        _close(handle);
        time(&end);
        Log("%10.3fMB] (%d)\n", size / (1024.0 * 1024.0), (int)(end - start));
    }

    if (buffersize != size)
    {
        Warning("Invalid file [%s] found.  File will be rebuilt!\n", filename);
        _unlink(filename);
    }

    return size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r12d
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x42c0
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x4230
movslq %r12d, %r12
cmpl $-0x1, %eax
je 0x9a6a
movl %eax, %ebp
leaq 0x13f81(%rip), %rdi     # 0x1d958
leaq 0x13f94(%rip), %rsi     # 0x1d972
xorl %r14d, %r14d
movq %rbx, %rdx
xorl %eax, %eax
callq 0x9fb2
movl $0x8000, %r13d          # imm = 0x8000
cmpq %r13, %r12
movl $0x8000, %edx           # imm = 0x8000
cmovlq %r12, %rdx
movl %ebp, %edi
movq %r15, %rsi
callq 0x4480
testl %eax, %eax
jle 0x9a34
xorl %r14d, %r14d
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addq %rax, %r14
addq %rax, %r15
movq %r12, %rdx
subq %r14, %rdx
cmpq %r13, %rdx
cmovgeq %r13, %rdx
movl %ebp, %edi
movq %r15, %rsi
callq 0x4480
testl %eax, %eax
jg 0x9a0e
movl %ebp, %edi
callq 0x4640
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x42c0
cvtsi2sd %r14, %xmm0
mulsd 0x13efb(%rip), %xmm0    # 0x1d950
movl (%r15), %esi
subl 0x8(%rsp), %esi
leaq 0x13f1f(%rip), %rdi     # 0x1d982
movb $0x1, %al
callq 0x9fb2
cmpq %r12, %r14
je 0x9a88
leaq 0x13f1c(%rip), %rdi     # 0x1d992
movq %rbx, %rsi
xorl %eax, %eax
callq 0xa612
movq %rbx, %rdi
callq 0x4190
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/filelib.cpp
// Function: q_filelength(_IO_FILE*)
int             q_filelength(FILE* f)
{
    int             pos;
    int             end;

    pos = ftell(f);
    fseek(f, 0, SEEK_END);
    end = ftell(f);
    fseek(f, pos, SEEK_SET);

    return end;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x4030
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x4360
movq %rbx, %rdi
callq 0x4030
movq %rax, %r15
movslq %r14d, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x4360
movl %r15d, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/filelib.cpp
// Function: SafeOpenWrite(char const*)
FILE*           SafeOpenWrite(const char* const filename)
{
    FILE*           f;

    f = fopen(filename, "wb");

    if (!f)
        Error("Error opening %s: %s", filename, strerror(errno));

    return f;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x13eb9(%rip), %rsi     # 0x1d9c6
callq 0x4390
movq %rax, %r14
testq %rax, %rax
jne 0x9b3a
callq 0x4060
movl (%rax), %edi
callq 0x4130
leaq 0x1267e(%rip), %rdi     # 0x1c1ab
movq %rbx, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xa2a0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/filelib.cpp
// Function: SafeOpenRead(char const*)
FILE*           SafeOpenRead(const char* const filename)
{
    FILE*           f;

    f = fopen(filename, "rb");

    if (!f)
        Error("Error opening %s: %s", filename, strerror(errno));

    return f;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x13e70(%rip), %rsi     # 0x1d9c3
callq 0x4390
movq %rax, %r14
testq %rax, %rax
jne 0x9b80
callq 0x4060
movl (%rax), %edi
callq 0x4130
leaq 0x12638(%rip), %rdi     # 0x1c1ab
movq %rbx, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xa2a0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/filelib.cpp
// Function: LoadFile(char const*, char**)
int             LoadFile(const char* const filename, char** bufferptr)
{
    FILE*           f;
    int             length;
    char*           buffer;

    f = SafeOpenRead(filename);
    length = q_filelength(f);
    buffer = (char*)Alloc(length + 1);
    SafeRead(f, buffer, length);
    fclose(f);

    *bufferptr = buffer;
    return length;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0x9b45
movq %rax, %r14
movq %rax, %rdi
callq 0x9a9a
movl %eax, %r15d
leal 0x1(%r15), %eax
movslq %eax, %rdi
callq 0x4994
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
movl %r15d, %edx
callq 0x9b8b
movq %r14, %rdi
callq 0x4300
movq %r12, (%rbx)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: CheckForErrorLog()
void            CheckForErrorLog()
{
    if (g_log)
    {
        char            logfilename[_MAX_PATH];

        safe_snprintf(logfilename, _MAX_PATH, "%s.err", g_Mapname);
        if (q_exists(logfilename))
        {
            Log(">> There was a problem compiling the map.\n"
                ">> Check the file %s.log for the cause.\n",
                 g_Mapname);
            exit(1);
        }
    }
}

// Assembly:
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
cmpb $0x1, 0x1f404(%rip)     # 0x29360
jne 0x9f8a
leaq 0x13b48(%rip), %rdx     # 0x1daad
leaq 0x1e3f4(%rip), %rcx     # 0x28360
movq %rsp, %rbx
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x9ada
testb %al, %al
jne 0x9f93
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
retq
leaq 0x13b1a(%rip), %rdi     # 0x1dab4
leaq 0x1e3bf(%rip), %rsi     # 0x28360
xorl %eax, %eax
callq 0x9fb2
movl $0x1, %edi
callq 0x43b0
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: Log(char const*, ...)
void CDECL FORMAT_PRINTF(1,2)      Log(const char* const warning, ...)
{
    char            message[MAX_MESSAGE];

    va_list         argptr;

    va_start(argptr, warning);
#ifdef ZHLT_LANGFILE
    vsnprintf(message, MAX_MESSAGE, Localize (warning), argptr);
#else
    vsnprintf(message, MAX_MESSAGE, warning, argptr);
#endif
    va_end(argptr);

    WriteLog(message);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x8d8, %rsp            # imm = 0x8D8
leaq 0x20(%rsp), %r10
movq %rsi, 0x8(%r10)
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0xa010
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rbx
movq %r10, 0x10(%rbx)
leaq 0x8f0(%rsp), %rax
movq %rax, 0x8(%rbx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rbx)
callq 0xa0fe
leaq 0xd0(%rsp), %r14
movl $0x800, %esi            # imm = 0x800
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x41e0
movq %r14, %rdi
callq 0xa217
addq $0x8d8, %rsp            # imm = 0x8D8
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: LogError(char const*)
void            LogError(const char* const message)
{
    if (g_log && CompileLog)
    {
        char            logfilename[_MAX_PATH];
        FILE*           ErrorLog = NULL;

        safe_snprintf(logfilename, _MAX_PATH, "%s.err", g_Mapname);
        ErrorLog = fopen(logfilename, "a");

        if (ErrorLog)
        {
            fprintf(ErrorLog, "%s: %s\n", g_Program, message);
            fflush(ErrorLog);
            fclose(ErrorLog);
            ErrorLog = NULL;
        }
        else
        {
#ifdef ZHLT_LANGFILE
            fprintf(stderr, Localize ("ERROR: Could not open error logfile %s"), logfilename);
#else
            fprintf(stderr, "ERROR: Could not open error logfile %s", logfilename);
#endif
            fflush(stderr);
#ifdef ZHLT_CONSOLE
			if (twice)
			{
#ifdef ZHLT_LANGFILE
				fprintf (conout, Localize ("ERROR: Could not open error logfile %s"), logfilename);
#else
				fprintf (conout, "ERROR: Could not open error logfile %s", logfilename);
#endif
				fflush (conout);
			}
#endif
        }
    }
}

// Assembly:
cmpb $0x1, 0x1f2f6(%rip)     # 0x29360
jne 0xa0f3
cmpq $0x0, 0x20b9428(%rip)   # 0x20c34a0
je 0xa0f3
pushq %r14
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rdi, %rbx
leaq 0x13a1f(%rip), %rdx     # 0x1daad
leaq 0x1e2cb(%rip), %rcx     # 0x28360
movq %rsp, %r14
movl $0x1000, %esi           # imm = 0x1000
movq %r14, %rdi
xorl %eax, %eax
callq 0x8b7f
leaq 0x152cf(%rip), %rsi     # 0x1f37d
movq %r14, %rdi
callq 0x4390
testq %rax, %rax
je 0xa0f4
movq %rax, %r14
movq 0x1e28b(%rip), %rdx     # 0x28350
leaq 0x13a3b(%rip), %rsi     # 0x1db07
movq %rax, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x4470
movq %r14, %rdi
callq 0x4380
movq %r14, %rdi
callq 0x4300
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r14
retq
movq %rsp, %rdi
callq 0x4660
jmp 0xa0e9
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: Localize(char const*)
const char * Localize (const char *s)
{
	int i;
	for (i=0; i<g_lang_count; i++)
	{
		if (!strcmp (g_lang[i][0], s))
		{
			return g_lang[i][1];
		}
	}
	return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x20b5388(%rip), %r14   # 0x20bf498
testq %r14, %r14
jle 0xa143
shlq $0x4, %r14
xorl %r15d, %r15d
leaq 0x20b537d(%rip), %r12   # 0x20bf4a0
movq (%r15,%r12), %rdi
movq %rbx, %rsi
callq 0x4450
testl %eax, %eax
je 0xa13e
addq $0x10, %r15
cmpq %r15, %r14
jne 0xa123
jmp 0xa143
movq 0x8(%r15,%r12), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: CloseLog()
void CDECL      CloseLog()
{
    if (g_log && CompileLog)
    {
        LogEnd();
        fflush(CompileLog);
        fclose(CompileLog);
        CompileLog = NULL;
    }
}

// Assembly:
cmpb $0x1, 0x1f1a8(%rip)     # 0x29360
jne 0xa201
cmpq $0x0, 0x20b92de(%rip)   # 0x20c34a0
je 0xa201
pushq %rax
movq 0x1e184(%rip), %rsi     # 0x28350
leaq 0x13acb(%rip), %rdi     # 0x1dc9e
xorl %eax, %eax
callq 0x9fb2
movq 0x20b92bf(%rip), %rdi   # 0x20c34a0
callq 0x4380
movq 0x20b92b3(%rip), %rdi   # 0x20c34a0
callq 0x4300
movq $0x0, 0x20b92a3(%rip) # 0x20c34a0
addq $0x8, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: WriteLog(char const*)
void            WriteLog(const char* const message)
{

#ifndef SYSTEM_WIN32
    if (CompileLog)
    {
        fprintf(CompileLog, "%s", message); //fprintf(CompileLog, message); //--vluzacn
        fflush(CompileLog);
    }
#else
    Safe_WriteLog(message);
#endif

    fprintf(stdout, "%s", message); //fprintf(stdout, message); //--vluzacn
    fflush(stdout);
#ifdef ZHLT_CONSOLE
	if (twice)
	{
		fprintf (conout, "%s", message);
		fflush (conout);
	}
#endif
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20b927b(%rip), %rsi   # 0x20c34a0
testq %rsi, %rsi
je 0xa23e
movq %rbx, %rdi
callq 0x4370
movq 0x20b9267(%rip), %rdi   # 0x20c34a0
callq 0x4380
movq 0x1dd4b(%rip), %r14     # 0x27f90
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x4370
movq (%r14), %rdi
callq 0x4380
cmpb $0x1, 0x20b5229(%rip)   # 0x20bf488
jne 0xa283
movq 0x20b5228(%rip), %rsi   # 0x20bf490
movq %rbx, %rdi
callq 0x4370
movq 0x20b5219(%rip), %rdi   # 0x20bf490
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4380
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: Error(char const*, ...)
void CDECL FORMAT_PRINTF(1,2)      Error(const char* const error, ...)
{
    char            message[MAX_ERROR];
    char            message2[MAX_ERROR];
    va_list         argptr;
    
 /*#if defined( SYSTEM_WIN32 ) && !defined( __MINGW32__ ) && !defined( __BORLANDC__ )
    {
        char* wantint3 = getenv("WANTINT3");
		if (wantint3)
		{
			if (atoi(wantint3))
			{
				__asm
				{
					int 3;
				}
			}
		}
    }
#endif*/

    va_start(argptr, error);
#ifdef ZHLT_LANGFILE
    vsnprintf(message, MAX_ERROR, Localize (error), argptr);
#else
    vsnprintf(message, MAX_ERROR, error, argptr);
#endif
    va_end(argptr);

#ifdef ZHLT_LANGFILE
    safe_snprintf(message2, MAX_MESSAGE, "%s%s\n", Localize ("Error: "), message);
#else
    safe_snprintf(message2, MAX_MESSAGE, "Error: %s\n", message);
#endif
    WriteLog(message2);
    LogError(message2);

    fatal = 1;
    CheckFatal();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x10d8, %rsp           # imm = 0x10D8
leaq 0x20(%rsp), %r10
movq %rsi, 0x8(%r10)
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0xa2fe
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rbx
movq %r10, 0x10(%rbx)
leaq 0x10f0(%rsp), %rax
movq %rax, 0x8(%rbx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rbx)
callq 0xa0fe
leaq 0x8d0(%rsp), %r14
movl $0x800, %esi            # imm = 0x800
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x41e0
leaq 0x13812(%rip), %rdi     # 0x1db57
callq 0xa0fe
leaq 0x13816(%rip), %rdx     # 0x1db67
leaq 0xd0(%rsp), %rbx
movl $0x800, %esi            # imm = 0x800
movq %rbx, %rdi
movq %rax, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0xa217
movq %rbx, %rdi
callq 0xa063
movb $0x1, 0x20b9123(%rip)   # 0x20c34a8
movl $0x1, %edi
callq 0x43b0
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: Fatal(assume_msgs, char const*, ...)
void CDECL FORMAT_PRINTF(2,3)      Fatal(assume_msgs msgid, const char* const warning, ...)
{
    char            message[MAX_WARNING];
    char            message2[MAX_WARNING];

    va_list         argptr;

    va_start(argptr, warning);
#ifdef ZHLT_LANGFILE
    vsnprintf(message, MAX_WARNING, Localize (warning), argptr);
#else
    vsnprintf(message, MAX_WARNING, warning, argptr);
#endif
    va_end(argptr);

#ifdef ZHLT_LANGFILE
    safe_snprintf(message2, MAX_MESSAGE, "%s%s\n", Localize ("Error: "), message);
#else
    safe_snprintf(message2, MAX_MESSAGE, "Error: %s\n", message);
#endif
    WriteLog(message2);
    LogError(message2);

    {
        char            message[MAX_MESSAGE];
        const MessageTable_t* msg = GetAssume(msgid);

#ifdef ZHLT_LANGFILE
        safe_snprintf(message, MAX_MESSAGE, "%s\n%s%s\n%s%s\n", Localize (msg->title), Localize ("Description: "), Localize (msg->text), Localize ("Howto Fix: "), Localize (msg->howto));
#else
        safe_snprintf(message, MAX_MESSAGE, "%s\nDescription: %s\nHowto Fix: %s\n", msg->title, msg->text, msg->howto);
#endif
        PrintOnce(message);
    }

    fatal = 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18d0, %rsp           # imm = 0x18D0
movl %edi, %ebx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0xa3f1
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %r14
movq %rdi, 0x10(%r14)
leaq 0x1900(%rsp), %rax
movq %rax, 0x8(%r14)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%r14)
movq %rsi, %rdi
callq 0xa0fe
leaq 0x10d0(%rsp), %r15
movl $0x800, %esi            # imm = 0x800
movq %r15, %rdi
movq %rax, %rdx
movq %r14, %rcx
callq 0x41e0
leaq 0x1371c(%rip), %rdi     # 0x1db57
callq 0xa0fe
leaq 0x13720(%rip), %rdx     # 0x1db67
leaq 0x8d0(%rsp), %r14
movl $0x800, %esi            # imm = 0x800
movq %r14, %rdi
movq %rax, %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x8b7f
movq %r14, %rdi
callq 0xa217
movq %r14, %rdi
callq 0xa063
movl %ebx, %edi
callq 0xaed8
movq %rax, %r14
movq (%rax), %rdi
callq 0xa0fe
movq %rax, %rbx
leaq 0x136dd(%rip), %rdi     # 0x1db6d
callq 0xa0fe
movq %rax, %r15
movq 0x8(%r14), %rdi
callq 0xa0fe
movq %rax, %r12
leaq 0x136d0(%rip), %rdi     # 0x1db7b
callq 0xa0fe
movq %rax, %r13
movq 0x10(%r14), %rdi
callq 0xa0fe
movq %rax, %r10
leaq 0x13699(%rip), %rdx     # 0x1db5f
leaq 0xd0(%rsp), %r14
movl $0x800, %esi            # imm = 0x800
movq %r14, %rdi
movq %rbx, %rcx
movq %r15, %r8
movq %r12, %r9
xorl %eax, %eax
pushq %r10
pushq %r13
callq 0x8b7f
addq $0x10, %rsp
movq %r14, %rdi
xorl %eax, %eax
callq 0xa510
movb $0x1, 0x20b8fa9(%rip)   # 0x20c34a8
addq $0x18d0, %rsp           # imm = 0x18D0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: PrintOnce(char const*, ...)
void CDECL FORMAT_PRINTF(1,2)      PrintOnce(const char* const warning, ...)
{
    char            message[MAX_WARNING];
    char            message2[MAX_WARNING];
    va_list         argptr;
    static int      count = 0;

    if (count > 0) // make sure it only gets called once
    {
        return;
    }
    count++;

    va_start(argptr, warning);
#ifdef ZHLT_LANGFILE
    vsnprintf(message, MAX_WARNING, Localize (warning), argptr);
#else
    vsnprintf(message, MAX_WARNING, warning, argptr);
#endif
    va_end(argptr);

#ifdef ZHLT_LANGFILE
    safe_snprintf(message2, MAX_MESSAGE, "%s%s\n", Localize ("Error: "), message);
#else
    safe_snprintf(message2, MAX_MESSAGE, "Error: %s\n", message);
#endif
    WriteLog(message2);
    LogError(message2);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x10d8, %rsp           # imm = 0x10D8
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0xa56e
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpb $0x0, 0x20b8f37(%rip)   # 0x20c34ac
jne 0xa607
movb $0x1, 0x20b8f2a(%rip)   # 0x20c34ac
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rsp, %rbx
movq %rax, (%rbx)
leaq 0x10f0(%rsp), %rax
movq %rax, 0x8(%rbx)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rbx)
callq 0xa0fe
leaq 0x8d0(%rsp), %r14
movl $0x800, %esi            # imm = 0x800
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x41e0
leaq 0x13589(%rip), %rdi     # 0x1db57
callq 0xa0fe
leaq 0x1358d(%rip), %rdx     # 0x1db67
leaq 0xd0(%rsp), %rbx
movl $0x800, %esi            # imm = 0x800
movq %rbx, %rdi
movq %rax, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0xa217
movq %rbx, %rdi
callq 0xa063
addq $0x10d8, %rsp           # imm = 0x10D8
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: Warning(char const*, ...)
void CDECL FORMAT_PRINTF(1,2)      Warning(const char* const warning, ...)
{
    char            message[MAX_WARNING];
    char            message2[MAX_WARNING];

    va_list         argptr;

    va_start(argptr, warning);
#ifdef ZHLT_LANGFILE
    vsnprintf(message, MAX_WARNING, Localize (warning), argptr);
#else
    vsnprintf(message, MAX_WARNING, warning, argptr);
#endif
    va_end(argptr);

#ifdef ZHLT_LANGFILE
    safe_snprintf(message2, MAX_MESSAGE, "%s%s\n", Localize ("Warning: "), message);
#else
    safe_snprintf(message2, MAX_MESSAGE, "Warning: %s\n", message);
#endif
    WriteLog(message2);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x10d8, %rsp           # imm = 0x10D8
leaq 0x20(%rsp), %r10
movq %rsi, 0x8(%r10)
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0xa670
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rbx
movq %r10, 0x10(%rbx)
leaq 0x10f0(%rsp), %rax
movq %rax, 0x8(%rbx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rbx)
callq 0xa0fe
leaq 0x8d0(%rsp), %r14
movl $0x800, %esi            # imm = 0x800
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x41e0
leaq 0x134d0(%rip), %rdi     # 0x1db87
callq 0xa0fe
leaq 0x134a4(%rip), %rdx     # 0x1db67
leaq 0xd0(%rsp), %rbx
movl $0x800, %esi            # imm = 0x800
movq %rbx, %rdi
movq %rax, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0xa217
addq $0x10d8, %rsp           # imm = 0x10D8
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: Verbose(char const*, ...)
void CDECL FORMAT_PRINTF(1,2)      Verbose(const char* const warning, ...)
{
    if (g_verbose)
    {
        char            message[MAX_MESSAGE];

        va_list         argptr;

        va_start(argptr, warning);
#ifdef ZHLT_LANGFILE
        vsnprintf(message, MAX_MESSAGE, Localize (warning), argptr);
#else
        vsnprintf(message, MAX_MESSAGE, warning, argptr);
#endif
        va_end(argptr);

        WriteLog(message);
    }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x8d8, %rsp            # imm = 0x8D8
testb %al, %al
je 0xa738
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
cmpb $0x1, 0x20b4d1c(%rip)   # 0x20bf474
jne 0xa7a7
leaq 0x20(%rsp), %rax
movq %rsp, %rbx
movq %rax, 0x10(%rbx)
leaq 0x8f0(%rsp), %rax
movq %rax, 0x8(%rbx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rbx)
callq 0xa0fe
leaq 0xd0(%rsp), %r14
movl $0x800, %esi            # imm = 0x800
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x41e0
movq %r14, %rdi
callq 0xa217
addq $0x8d8, %rsp            # imm = 0x8D8
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: Developer(developer_level_t, char const*, ...)
void CDECL FORMAT_PRINTF(2,3)      Developer(developer_level_t level, const char* const warning, ...)
{
    if (level <= g_developer)
    {
        char            message[MAX_MESSAGE];

        va_list         argptr;

        va_start(argptr, warning);
#ifdef ZHLT_LANGFILE
        vsnprintf(message, MAX_MESSAGE, Localize (warning), argptr);
#else
        vsnprintf(message, MAX_MESSAGE, warning, argptr);
#endif
        va_end(argptr);

        WriteLog(message);
    }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x8d8, %rsp            # imm = 0x8D8
testb %al, %al
je 0xa7f7
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
cmpl %edi, 0x20b4c5f(%rip)   # 0x20bf470
jl 0xa863
leaq 0x20(%rsp), %rax
movq %rsp, %rbx
movq %rax, 0x10(%rbx)
leaq 0x8f0(%rsp), %rax
movq %rax, 0x8(%rbx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rbx)
movq %rsi, %rdi
callq 0xa0fe
leaq 0xd0(%rsp), %r14
movl $0x800, %esi            # imm = 0x800
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x41e0
movq %r14, %rdi
callq 0xa217
addq $0x8d8, %rsp            # imm = 0x8D8
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: LogStart(int, char**)
void            LogStart(int argc, char** argv)
{
    Banner();
    Log("-----  BEGIN  %s -----\n", g_Program);
    LogArgs(argc, argv);
    DisplayDeveloperLevel();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x808, %rsp            # imm = 0x808
movq %rsi, %rbx
movl %edi, %ebp
movq 0x1da99(%rip), %rsi     # 0x28350
leaq 0x132d3(%rip), %rdi     # 0x1db91
leaq 0x132e5(%rip), %rdx     # 0x1dbaa
xorl %eax, %eax
callq 0x9fb2
leaq 0x132e3(%rip), %rdi     # 0x1dbb6
xorl %eax, %eax
callq 0x9fb2
movq 0x1da6f(%rip), %rsi     # 0x28350
leaq 0x1339e(%rip), %rdi     # 0x1dc86
xorl %eax, %eax
callq 0x9fb2
leaq 0x134be(%rip), %rdi     # 0x1ddb4
xorl %eax, %eax
callq 0x9fb2
testl %ebp, %ebp
jle 0xa941
movl %ebp, %r15d
leaq 0x134be(%rip), %r12     # 0x1ddc9
leaq 0x134b1(%rip), %r13     # 0x1ddc3
xorl %ebp, %ebp
movq (%rbx,%rbp,8), %r14
movq %r14, %rdi
movl $0x20, %esi
callq 0x4150
testq %rax, %rax
movq %r13, %rdi
cmoveq %r12, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x9fb2
incq %rbp
cmpq %rbp, %r15
jne 0xa914
leaq 0x13370(%rip), %rdi     # 0x1dcb8
xorl %eax, %eax
callq 0x9fb2
leaq 0x13477(%rip), %rsi     # 0x1ddcd
movq %rsp, %rdi
movl $0x800, %edx            # imm = 0x800
callq 0x8c21
cmpl $0x6, 0x20b4b06(%rip)   # 0x20bf470
jl 0xa980
leaq 0x13479(%rip), %rsi     # 0x1ddec
movq %rsp, %rdi
movl $0x800, %edx            # imm = 0x800
callq 0x8c38
cmpl $0x5, 0x20b4ae9(%rip)   # 0x20bf470
jl 0xa99d
leaq 0x13460(%rip), %rsi     # 0x1ddf0
movq %rsp, %rdi
movl $0x800, %edx            # imm = 0x800
callq 0x8c38
cmpl $0x4, 0x20b4acc(%rip)   # 0x20bf470
jl 0xa9ba
leaq 0x13449(%rip), %rsi     # 0x1ddf6
movq %rsp, %rdi
movl $0x800, %edx            # imm = 0x800
callq 0x8c38
cmpl $0x3, 0x20b4aaf(%rip)   # 0x20bf470
jl 0xa9d7
leaq 0x13433(%rip), %rsi     # 0x1ddfd
movq %rsp, %rdi
movl $0x800, %edx            # imm = 0x800
callq 0x8c38
cmpl $0x2, 0x20b4a92(%rip)   # 0x20bf470
jl 0xa9f4
leaq 0x1341f(%rip), %rsi     # 0x1de06
movq %rsp, %rdi
movl $0x800, %edx            # imm = 0x800
callq 0x8c38
cmpl $0x0, 0x20b4a75(%rip)   # 0x20bf470
jle 0xaa11
leaq 0x14380(%rip), %rsi     # 0x1ed84
movq %rsp, %rdi
movl $0x800, %edx            # imm = 0x800
callq 0x8c38
cmpl $0x0, 0x20b4a58(%rip)   # 0x20bf470
je 0xaa3b
leaq 0x16c63(%rip), %rsi     # 0x21684
movq %rsp, %rbx
movl $0x800, %edx            # imm = 0x800
movq %rbx, %rdi
callq 0x8c38
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9fb2
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: hlassume(bool, assume_msgs)
void            hlassume(bool exp, assume_msgs msgid)
{
    if (!exp)
    {
        char            message[MAX_MESSAGE];
        const MessageTable_t* msg = GetAssume(msgid);

#ifdef ZHLT_LANGFILE
        safe_snprintf(message, MAX_MESSAGE, "%s\n%s%s\n%s%s\n", Localize (msg->title), Localize ("Description: "), Localize (msg->text), Localize ("Howto Fix: "), Localize (msg->howto));
#else
        safe_snprintf(message, MAX_MESSAGE, "%s\nDescription: %s\nHowto Fix: %s\n", msg->title, msg->text, msg->howto);
#endif
        Error(message);
    }
}

// Assembly:
testl %edi, %edi
je 0xaa52
retq
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x800, %rsp            # imm = 0x800
movl %esi, %edi
callq 0xaed8
movq %rax, %r14
movq (%rax), %rdi
callq 0xa0fe
movq %rax, %rbx
leaq 0x130ef(%rip), %rdi     # 0x1db6d
callq 0xa0fe
movq %rax, %r15
movq 0x8(%r14), %rdi
callq 0xa0fe
movq %rax, %r12
leaq 0x130e2(%rip), %rdi     # 0x1db7b
callq 0xa0fe
movq %rax, %r13
movq 0x10(%r14), %rdi
callq 0xa0fe
movq %rax, %r10
leaq 0x130ab(%rip), %rdx     # 0x1db5f
movq %rsp, %r14
movl $0x800, %esi            # imm = 0x800
movq %r14, %rdi
movq %rbx, %rcx
movq %r15, %r8
movq %r12, %r9
xorl %eax, %eax
pushq %r10
pushq %r13
callq 0x8b7f
addq $0x10, %rsp
movq %r14, %rdi
xorl %eax, %eax
callq 0xa2a0
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: LogTimeElapsed(float)
void LogTimeElapsed(float elapsed_time)
{
    unsigned days = 0;
    unsigned hours = 0;
    unsigned minutes = 0;
    unsigned seconds = 0;

    seconds_to_hhmm(elapsed_time, days, hours, minutes, seconds);

    if (days)
    {
        Log("%.2f seconds elapsed [%ud %uh %um %us]\n", elapsed_time, days, hours, minutes, seconds);
    }
    else if (hours)
    {
        Log("%.2f seconds elapsed [%uh %um %us]\n", elapsed_time, hours, minutes, seconds);
    }
    else if (minutes)
    {
        Log("%.2f seconds elapsed [%um %us]\n", elapsed_time, minutes, seconds);
    }
    else
    {
        Log("%.2f seconds elapsed\n", elapsed_time);
    }
}

// Assembly:
cvttss2si %xmm0, %rsi
movl %esi, %eax
movl $0x88888889, %ecx       # imm = 0x88888889
imulq %rax, %rcx
shrq $0x25, %rcx
imull $0x3c, %ecx, %edx
movl %esi, %r8d
subl %edx, %r8d
imulq $0x8888889, %rcx, %rdx  # imm = 0x8888889
shrq $0x21, %rdx
imull $0x3c, %edx, %edx
subl %edx, %ecx
movl $0x91a2b3c5, %edx       # imm = 0x91A2B3C5
imulq %rax, %rdx
shrq $0x2b, %rdx
imulq $0xaaaaaab, %rdx, %rdi  # imm = 0xAAAAAAB
shrq $0x20, %rdi
shll $0x3, %edi
leal (%rdi,%rdi,2), %edi
subl %edi, %edx
cmpl $0x15180, %esi          # imm = 0x15180
jae 0xab53
cvtss2sd %xmm0, %xmm0
testl %edx, %edx
je 0xab72
leaq 0x1319d(%rip), %rdi     # 0x1dce2
movl %edx, %esi
movl %ecx, %edx
movl %r8d, %ecx
movb $0x1, %al
jmp 0x9fb2
movl $0xc22e4507, %esi       # imm = 0xC22E4507
imulq %rax, %rsi
shrq $0x30, %rsi
cvtss2sd %xmm0, %xmm0
leaq 0x1314f(%rip), %rdi     # 0x1dcba
movb $0x1, %al
jmp 0x9fb2
testl %ecx, %ecx
je 0xab89
leaq 0x13189(%rip), %rdi     # 0x1dd06
movl %ecx, %esi
movl %r8d, %edx
movb $0x1, %al
jmp 0x9fb2
leaq 0x13196(%rip), %rdi     # 0x1dd26
movb $0x1, %al
jmp 0x9fb2
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: PrintConsole(char const*, ...)
void CDECL FORMAT_PRINTF(1,2) PrintConsole(const char* const warning, ...)
{
    char            message[MAX_MESSAGE];

    va_list         argptr;

    va_start(argptr, warning);
//ZHLT_LANGFILE: don't call function Localize here because of performance issue
    vsnprintf(message, MAX_MESSAGE, warning, argptr);
    va_end(argptr);

    if (useconsole)
	{
		fprintf (conout, "%s", message);
		fflush (conout);
	}
	else
	{
		fprintf (stdout, "%s", message);
	}
}

// Assembly:
subq $0x8d8, %rsp            # imm = 0x8D8
movq %rdi, %r10
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0xac06
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rcx
movq %rdi, 0x10(%rcx)
leaq 0x8e0(%rsp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rcx)
leaq 0xd0(%rsp), %rdi
movl $0x800, %esi            # imm = 0x800
movq %r10, %rdx
callq 0x41e0
cmpb $0x1, 0x20b4847(%rip)   # 0x20bf489
jne 0xac66
movq 0x20b4845(%rip), %rsi   # 0x20bf490
leaq 0xd0(%rsp), %rdi
callq 0x4370
movq 0x20b4831(%rip), %rdi   # 0x20bf490
callq 0x4380
jmp 0xac7d
movq 0x1d323(%rip), %rax     # 0x27f90
movq (%rax), %rsi
leaq 0xd0(%rsp), %rdi
callq 0x4370
addq $0x8d8, %rsp            # imm = 0x8D8
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: loadlangfileline(char*, int, _IO_FILE*)
int loadlangfileline (char *line, int n, FILE *f)
{
	int i = 0, c = 0;
	bool special = false;
	while (1)
	{
		c = fgetc (f);
		if (c == '\r')
			continue;
		if (c == '\n' || c == EOF)
			break;
		if (c == '\\' && !special)
		{
			special = true;
		}
		else
		{
			if (special)
			{
				switch (c)
				{
				case 'n': c = '\n'; break;
				case 't': c = '\t'; break;
				case 'v': c = '\v'; break;
				case 'b': c = '\b'; break;
				case 'r': c = '\r'; break;
				case 'f': c = '\f'; break;
				case 'a': c = '\a'; break;
				case '\\': c = '\\'; break;
				case '?': c = '\?'; break;
				case '\'': c = '\''; break;
				case '"': c = '\"'; break;
				default: break;
				}
			}
			if (i < n - 1)
				line[i++] = c;
			else
			{
				Warning ("line too long in localization file");
				break;
			}
			special = false;
		}
	}
	line[i] = '\0';
	if (c == EOF)
		return 1;
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
decl %ebp
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %r14, %rdi
callq 0x4510
cmpl $0xd, %eax
je 0xaca0
movl %eax, %r15d
cmpl $-0x1, %eax
je 0xad65
cmpl $0xa, %r15d
je 0xad65
cmpl $0x5c, %r15d
jne 0xacd4
testb $0x1, %r13b
movb $0x1, %r13b
je 0xaca0
jmp 0xacda
testb $0x1, %r13b
je 0xad43
cmpl $0x6d, %r15d
jle 0xad03
movl %r15d, %eax
addl $-0x6e, %eax
cmpl $0x8, %eax
ja 0xad43
leaq 0x12cfe(%rip), %rcx     # 0x1d9f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0xa, %r15d
jmp 0xad43
cmpl $0x61, %r15d
je 0xad35
cmpl $0x62, %r15d
je 0xad3d
cmpl $0x66, %r15d
jne 0xad43
movl $0xc, %r15d
jmp 0xad43
movl $0x9, %r15d
jmp 0xad43
movl $0xb, %r15d
jmp 0xad43
movl $0xd, %r15d
jmp 0xad43
movl $0x7, %r15d
jmp 0xad43
movl $0x8, %r15d
cmpl %ebp, %r12d
jge 0xad57
movl %r12d, %eax
incl %r12d
movb %r15b, (%rbx,%rax)
jmp 0xac9d
leaq 0x12fde(%rip), %rdi     # 0x1dd3c
xorl %eax, %eax
callq 0xa612
movl %r12d, %eax
movb $0x0, (%rbx,%rax)
xorl %eax, %eax
cmpl $-0x1, %r15d
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/log.cpp
// Function: LoadLangFile(char const*, char const*)
void LoadLangFile (const char *name, const char *programpath)
{
	char filepath[_MAX_PATH];
	char line1[MAXTOKEN];
	char line2[MAXTOKEN];
	FILE *f = NULL;
	if (!f)
	{
		strcpy (filepath, name);
		f = fopen (filepath, "r");
	}
	if (!f)
	{
		ExtractFilePath (programpath, filepath);
		strcat (filepath, name);
		f = fopen (filepath, "r");
	}
	if (!f)
	{
		Warning ("can not open file: '%s'", name);
		return;
	}
	while (1)
	{
		if (loadlangfileline (line1, MAXTOKEN, f) == 1)
			break;
		loadlangfileline (line2, MAXTOKEN, f);
		if (g_lang_count < g_lang_max)
		{
			g_lang[g_lang_count][0] = strdup (line1);
			g_lang[g_lang_count][1] = strdup (line2);
			g_lang_count++;
		}
		else
		{
			Warning ("too many lines in localization file");
			break;
		}
	}
	fclose (f);
	Log ("Localization file: '%s'\n", filepath);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3008, %rsp           # imm = 0x3008
movq %rsi, %r15
movq %rdi, %r14
movq %rsp, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x42d0
leaq 0x142b8(%rip), %rsi     # 0x1f068
movq %rbx, %rdi
callq 0x4390
movq %rax, %rbx
testq %rax, %rax
jne 0xadeb
movq %rsp, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x8878
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4580
leaq 0x14288(%rip), %rsi     # 0x1f068
movq %rbx, %rdi
callq 0x4390
movq %rax, %rbx
testq %rbx, %rbx
je 0xae89
leaq 0x1000(%rsp), %rdi
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdx
callq 0xac85
testl %eax, %eax
jne 0xaeaa
leaq 0x2000(%rsp), %r14
leaq 0x1000(%rsp), %r15
leaq 0x20b4678(%rip), %r12   # 0x20bf4a0
movq %r14, %rdi
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdx
callq 0xac85
movslq 0x20b4659(%rip), %r13   # 0x20bf498
cmpq $0x3ff, %r13            # imm = 0x3FF
jg 0xae9c
movq %r15, %rdi
callq 0x45c0
movq %r13, %rbp
shlq $0x4, %rbp
movq %rax, (%rbp,%r12)
movq %r14, %rdi
callq 0x45c0
movq %rax, 0x8(%rbp,%r12)
leal 0x1(%r13), %eax
movl %eax, 0x20b4625(%rip)   # 0x20bf498
movq %r15, %rdi
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdx
callq 0xac85
testl %eax, %eax
je 0xae28
jmp 0xaeaa
leaq 0x12ecf(%rip), %rdi     # 0x1dd5f
movq %r14, %rsi
xorl %eax, %eax
callq 0xa612
jmp 0xaec3
leaq 0x12ed4(%rip), %rdi     # 0x1dd77
xorl %eax, %eax
callq 0xa612
movq %rbx, %rdi
callq 0x4300
leaq 0x12ee2(%rip), %rdi     # 0x1dd9b
movq %rsp, %rsi
xorl %eax, %eax
callq 0x9fb2
addq $0x3008, %rsp           # imm = 0x3008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/common/scriplib.cpp
// Function: LoadScriptFile(char const*)
void            LoadScriptFile(const char* const filename)
{
    s_script = s_scriptstack;
    AddScriptToStack(filename);

    s_endofscript = false;
    s_tokenready = false;
}

// Assembly:
pushq %rax
leaq 0x20b95d4(%rip), %rax   # 0x20c44d0
movq %rax, 0x20b95b5(%rip)   # 0x20c44b8
callq 0xaf18
xorl %eax, %eax
movb %al, 0x20b95b4(%rip)    # 0x20c44c4
movb %al, 0x20b95af(%rip)    # 0x20c44c5
popq %rax
retq