// File: /workspace/github_cpp_makefile_star2_O1/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, 0x1f6ed(%rip)     # 0x29360
jne 0x9ec8
pushq %r14
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
leaq 0x13dad(%rip), %rdx     # 0x1da37
leaq 0x1e6cf(%rip), %r14     # 0x28360
movq %rsp, %rbx
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13d89(%rip), %rdx     # 0x1da3e
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13d6f(%rip), %rdx     # 0x1da45
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13d54(%rip), %rdx     # 0x1da4b
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13d39(%rip), %rdx     # 0x1da51
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13d1e(%rip), %rdx     # 0x1da57
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13d03(%rip), %rdx     # 0x1da5d
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13ce9(%rip), %rdx     # 0x1da64
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13ccf(%rip), %rdx     # 0x1da6b
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13cb5(%rip), %rdx     # 0x1da72
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13c9b(%rip), %rdx     # 0x1da79
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13c81(%rip), %rdx     # 0x1da80
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13c66(%rip), %rdx     # 0x1da86
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13c4b(%rip), %rdx     # 0x1da8c
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13c30(%rip), %rdx     # 0x1da92
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13c15(%rip), %rdx     # 0x1da98
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
leaq 0x13bfb(%rip), %rdx     # 0x1da9f
movl $0x1000, %esi           # imm = 0x1000
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8b7f
movq %rbx, %rdi
callq 0x4190
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r14
retq