// File: 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:
subq $0x1008, %rsp           # imm = 0x1008
testb $0x1, 0x2c192(%rip)     # 0x373e0
je 0xb4c9
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x20854(%rip), %rdx     # 0x2bab7
leaq 0x2b176(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x20836(%rip), %rdx     # 0x2babe
leaq 0x2b151(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x20818(%rip), %rdx     # 0x2bac5
leaq 0x2b12c(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x207f9(%rip), %rdx     # 0x2bacb
leaq 0x2b107(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x207da(%rip), %rdx     # 0x2bad1
leaq 0x2b0e2(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x207bb(%rip), %rdx     # 0x2bad7
leaq 0x2b0bd(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x2079c(%rip), %rdx     # 0x2badd
leaq 0x2b098(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x2077e(%rip), %rdx     # 0x2bae4
leaq 0x2b073(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x20760(%rip), %rdx     # 0x2baeb
leaq 0x2b04e(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x20742(%rip), %rdx     # 0x2baf2
leaq 0x2b029(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x20724(%rip), %rdx     # 0x2baf9
leaq 0x2b004(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x20706(%rip), %rdx     # 0x2bb00
leaq 0x2afdf(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x206e7(%rip), %rdx     # 0x2bb06
leaq 0x2afba(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x206c8(%rip), %rdx     # 0x2bb0c
leaq 0x2af95(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x206a9(%rip), %rdx     # 0x2bb12
leaq 0x2af70(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x2068a(%rip), %rdx     # 0x2bb18
leaq 0x2af4b(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
movq %rsp, %rdi
movl $0x1000, %esi           # imm = 0x1000
leaq 0x2066c(%rip), %rdx     # 0x2bb1f
leaq 0x2af26(%rip), %rcx     # 0x363e0
movb $0x0, %al
callq 0x99e0
movq %rsp, %rdi
callq 0x41e0
addq $0x1008, %rsp           # imm = 0x1008
retq
nopw %cs:(%rax,%rax)