// File: /workspace/github_cpp_makefile_star2_O3/FreeSlave[P]vhlt/common/log.cpp
// Function: ResetTmpFiles()
void            ResetTmpFiles()
{
    if (g_log)
    {
        char            filename[_MAX_PATH];

        safe_snprintf(filename, _MAX_PATH, "%s.bsp", g_Mapname);
        _unlink(filename);

        safe_snprintf(filename, _MAX_PATH, "%s.inc", g_Mapname);
        _unlink(filename);

        safe_snprintf(filename, _MAX_PATH, "%s.p0", g_Mapname);
        _unlink(filename);

        safe_snprintf(filename, _MAX_PATH, "%s.p1", g_Mapname);
        _unlink(filename);

        safe_snprintf(filename, _MAX_PATH, "%s.p2", g_Mapname);
        _unlink(filename);

        safe_snprintf(filename, _MAX_PATH, "%s.p3", g_Mapname);
        _unlink(filename);

        safe_snprintf(filename, _MAX_PATH, "%s.prt", g_Mapname);
        _unlink(filename);

        safe_snprintf(filename, _MAX_PATH, "%s.pts", g_Mapname);
        _unlink(filename);

        safe_snprintf(filename, _MAX_PATH, "%s.lin", g_Mapname);
        _unlink(filename);

#ifndef HLCSG_ONLYENTS_NOWADCHANGE
        safe_snprintf(filename, _MAX_PATH, "%s.wic", g_Mapname);
        _unlink(filename);
#endif
#ifdef HLCSG_HLBSP_ALLOWEMPTYENTITY

        safe_snprintf(filename, _MAX_PATH, "%s.hsz", g_Mapname);
        _unlink(filename);
#endif
#ifdef HLCSG_HLBSP_DOUBLEPLANE

        safe_snprintf(filename, _MAX_PATH, "%s.pln", g_Mapname);
        _unlink(filename);
#endif
#ifdef ZHLT_DETAILBRUSH

		safe_snprintf(filename, _MAX_PATH, "%s.b0", g_Mapname);
		_unlink(filename);

		safe_snprintf(filename, _MAX_PATH, "%s.b1", g_Mapname);
		_unlink(filename);

		safe_snprintf(filename, _MAX_PATH, "%s.b2", g_Mapname);
		_unlink(filename);

		safe_snprintf(filename, _MAX_PATH, "%s.b3", g_Mapname);
		_unlink(filename);
#endif
#ifdef ZHLT_NOWADDIR

		safe_snprintf(filename, _MAX_PATH, "%s.wa_", g_Mapname);
		_unlink(filename);
#endif
#ifdef ZHLT_64BIT_FIX

		safe_snprintf(filename, _MAX_PATH, "%s.ext", g_Mapname);
		_unlink(filename);
#endif
#ifdef ZHLT_XASH

		safe_snprintf(filename, _MAX_PATH, "%s.dlit", g_Mapname);
		_unlink(filename);
#endif
    }
}

// Assembly:
cmpb $0x1, 0x1f819(%rip)     # 0x29350
jne 0x9d8c
pushq %r14
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
leaq 0x13ed9(%rip), %rdx     # 0x1da27
leaq 0x1e7fb(%rip), %r14     # 0x28350
movq %rsp, %rbx
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13eb5(%rip), %rdx     # 0x1da2e
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13e9b(%rip), %rdx     # 0x1da35
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13e80(%rip), %rdx     # 0x1da3b
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13e65(%rip), %rdx     # 0x1da41
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13e4a(%rip), %rdx     # 0x1da47
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13e2f(%rip), %rdx     # 0x1da4d
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13e15(%rip), %rdx     # 0x1da54
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13dfb(%rip), %rdx     # 0x1da5b
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13de1(%rip), %rdx     # 0x1da62
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13dc7(%rip), %rdx     # 0x1da69
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13dad(%rip), %rdx     # 0x1da70
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13d92(%rip), %rdx     # 0x1da76
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13d77(%rip), %rdx     # 0x1da7c
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13d5c(%rip), %rdx     # 0x1da82
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13d41(%rip), %rdx     # 0x1da88
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
leaq 0x13d27(%rip), %rdx     # 0x1da8f
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8a47
movq %rbx, %rdi
callq 0x4190
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r14
retq