// File: FreeSlave[P]vhlt/hlbsp/qbsp.cpp
// Function: Usage()
static void     Usage()
{
    Banner();

    Log("\n-= %s Options =-\n\n", g_Program);
#ifdef ZHLT_CONSOLE
	Log("    -console #     : Set to 0 to turn off the pop-up console (default is 1)\n");
#endif
#ifdef ZHLT_LANGFILE
	Log("    -lang file     : localization file\n");
#endif
    Log("    -leakonly      : Run BSP only enough to check for LEAKs\n");
    Log("    -subdivide #   : Sets the face subdivide size\n");
    Log("    -maxnodesize # : Sets the maximum portal node size\n\n");
    Log("    -notjunc       : Don't break edges on t-junctions     (not for final runs)\n");
#ifdef HLBSP_BRINKHACK
	Log("    -nobrink       : Don't smooth brinks                  (not for final runs)\n");
#endif
    Log("    -noclip        : Don't process the clipping hull      (not for final runs)\n");
    Log("    -nofill        : Don't fill outside (will mask LEAKs) (not for final runs)\n");
#ifdef HLBSP_FILL
	Log("    -noinsidefill  : Don't fill empty spaces\n");
#endif
	Log("    -noopt         : Don't optimize planes on BSP write   (not for final runs)\n");
#ifdef HLBSP_MERGECLIPNODE
	Log("    -noclipnodemerge: Don't optimize clipnodes\n");
#endif
    Log("    -texdata #     : Alter maximum texture memory limit (in kb)\n");
    Log("    -lightdata #   : Alter maximum lighting memory limit (in kb)\n");
    Log("    -chart         : display bsp statitics\n");
    Log("    -low | -high   : run program an altered priority level\n");
    Log("    -nolog         : don't generate the compile logfiles\n");
    Log("    -threads #     : manually specify the number of threads to run\n");
#ifdef SYSTEM_WIN32
    Log("    -estimate      : display estimated time during compile\n");
#endif
#ifdef ZHLT_PROGRESSFILE // AJM
    Log("    -progressfile path  : specify the path to a file for progress estimate output\n");
#endif
#ifdef SYSTEM_POSIX
    Log("    -noestimate    : do not display continuous compile time estimates\n");
#endif

#ifdef ZHLT_NULLTEX         // AJM
    Log("    -nonulltex     : Don't strip NULL faces\n");
#endif

#ifdef ZHLT_DETAIL // AJM
    Log("    -nodetail      : don't handle detail brushes\n");
#endif

#ifdef HLBSP_REMOVEHULL2
	Log("    -nohull2       : Don't generate hull 2 (the clipping hull for large monsters and pushables)\n");
#endif

#ifdef HLBSP_VIEWPORTAL
	Log("    -viewportal    : Show portal boundaries in 'mapname_portal.pts' file\n");
#endif

    Log("    -verbose       : compile with verbose messages\n");
    Log("    -noinfo        : Do not show tool configuration information\n");
    Log("    -dev #         : compile with developer message\n\n");
    Log("    mapfile        : The mapfile to compile\n\n");

    exit(1);
}

// Assembly:
pushq %rax
callq 0xbc70
leaq 0x1f843(%rip), %rax     # 0x46300
movq (%rax), %rsi
leaq 0x13fad(%rip), %rdi     # 0x3aa74
movb $0x0, %al
callq 0xb060
leaq 0x13fb3(%rip), %rdi     # 0x3aa88
movb $0x0, %al
callq 0xb060
leaq 0x13ff2(%rip), %rdi     # 0x3aad5
movb $0x0, %al
callq 0xb060
leaq 0x1400c(%rip), %rdi     # 0x3aafd
movb $0x0, %al
callq 0xb060
leaq 0x1403b(%rip), %rdi     # 0x3ab3a
movb $0x0, %al
callq 0xb060
leaq 0x14060(%rip), %rdi     # 0x3ab6d
movb $0x0, %al
callq 0xb060
leaq 0x1408b(%rip), %rdi     # 0x3aba6
movb $0x0, %al
callq 0xb060
leaq 0x140cd(%rip), %rdi     # 0x3abf6
movb $0x0, %al
callq 0xb060
leaq 0x1410f(%rip), %rdi     # 0x3ac46
movb $0x0, %al
callq 0xb060
leaq 0x14151(%rip), %rdi     # 0x3ac96
movb $0x0, %al
callq 0xb060
leaq 0x14193(%rip), %rdi     # 0x3ace6
movb $0x0, %al
callq 0xb060
leaq 0x141b3(%rip), %rdi     # 0x3ad14
movb $0x0, %al
callq 0xb060
leaq 0x141f5(%rip), %rdi     # 0x3ad64
movb $0x0, %al
callq 0xb060
leaq 0x14217(%rip), %rdi     # 0x3ad94
movb $0x0, %al
callq 0xb060
leaq 0x1424a(%rip), %rdi     # 0x3add5
movb $0x0, %al
callq 0xb060
leaq 0x1427e(%rip), %rdi     # 0x3ae17
movb $0x0, %al
callq 0xb060
leaq 0x1429c(%rip), %rdi     # 0x3ae43
movb $0x0, %al
callq 0xb060
leaq 0x142ca(%rip), %rdi     # 0x3ae7f
movb $0x0, %al
callq 0xb060
leaq 0x142f6(%rip), %rdi     # 0x3aeb9
movb $0x0, %al
callq 0xb060
leaq 0x1432c(%rip), %rdi     # 0x3aefd
movb $0x0, %al
callq 0xb060
leaq 0x14365(%rip), %rdi     # 0x3af44
movb $0x0, %al
callq 0xb060
leaq 0x14384(%rip), %rdi     # 0x3af71
movb $0x0, %al
callq 0xb060
leaq 0x143d7(%rip), %rdi     # 0x3afd2
movb $0x0, %al
callq 0xb060
leaq 0x14413(%rip), %rdi     # 0x3b01c
movb $0x0, %al
callq 0xb060
leaq 0x14439(%rip), %rdi     # 0x3b050
movb $0x0, %al
callq 0xb060
leaq 0x1446c(%rip), %rdi     # 0x3b091
movb $0x0, %al
callq 0xb060
leaq 0x14494(%rip), %rdi     # 0x3b0c7
movb $0x0, %al
callq 0xb060
movl $0x1, %edi
callq 0x4380
nopw %cs:(%rax,%rax)