// File: FreeSlave[P]vhlt/hlbsp/qbsp.cpp
// Function: Settings()
static void     Settings()
{
    char*           tmp;

    if (!g_info)
        return;

    Log("\nCurrent %s Settings\n", g_Program);
    Log("Name               |  Setting  |  Default\n" "-------------------|-----------|-------------------------\n");

    // ZHLT Common Settings
    if (DEFAULT_NUMTHREADS == -1)
    {
        Log("threads             [ %7d ] [  Varies ]\n", g_numthreads);
    }
    else
    {
        Log("threads             [ %7d ] [ %7d ]\n", g_numthreads, DEFAULT_NUMTHREADS);
    }

    Log("verbose             [ %7s ] [ %7s ]\n", g_verbose ? "on" : "off", DEFAULT_VERBOSE ? "on" : "off");
    Log("log                 [ %7s ] [ %7s ]\n", g_log ? "on" : "off", DEFAULT_LOG ? "on" : "off");
    Log("developer           [ %7d ] [ %7d ]\n", g_developer, DEFAULT_DEVELOPER);
    Log("chart               [ %7s ] [ %7s ]\n", g_chart ? "on" : "off", DEFAULT_CHART ? "on" : "off");
    Log("estimate            [ %7s ] [ %7s ]\n", g_estimate ? "on" : "off", DEFAULT_ESTIMATE ? "on" : "off");
    Log("max texture memory  [ %7d ] [ %7d ]\n", g_max_map_miptex, DEFAULT_MAX_MAP_MIPTEX);

    switch (g_threadpriority)
    {
    case eThreadPriorityNormal:
    default:
        tmp = "Normal";
        break;
    case eThreadPriorityLow:
        tmp = "Low";
        break;
    case eThreadPriorityHigh:
        tmp = "High";
        break;
    }
    Log("priority            [ %7s ] [ %7s ]\n", tmp, "Normal");
    Log("\n");

    // HLBSP Specific Settings
    Log("noclip              [ %7s ] [ %7s ]\n", g_noclip ? "on" : "off", DEFAULT_NOCLIP ? "on" : "off");
    Log("nofill              [ %7s ] [ %7s ]\n", g_nofill ? "on" : "off", DEFAULT_NOFILL ? "on" : "off");
#ifdef HLBSP_FILL
	Log("noinsidefill        [ %7s ] [ %7s ]\n", g_noinsidefill ? "on" : "off", DEFAULT_NOINSIDEFILL ? "on" : "off");
#endif
	Log("noopt               [ %7s ] [ %7s ]\n", g_noopt ? "on" : "off", DEFAULT_NOOPT ? "on" : "off");
#ifdef HLBSP_MERGECLIPNODE
	Log("no clipnode merging [ %7s ] [ %7s ]\n", g_noclipnodemerge? "on": "off", DEFAULT_NOCLIPNODEMERGE? "on": "off");
#endif
#ifdef ZHLT_NULLTEX // AJM
    Log("null tex. stripping [ %7s ] [ %7s ]\n", g_bUseNullTex ? "on" : "off", DEFAULT_NULLTEX ? "on" : "off" );
#endif
#ifdef ZHLT_DETAIL // AJM
    Log("detail brushes      [ %7s ] [ %7s ]\n", g_bDetailBrushes ? "on" : "off", DEFAULT_DETAIL ? "on" : "off" );
#endif
    Log("notjunc             [ %7s ] [ %7s ]\n", g_notjunc ? "on" : "off", DEFAULT_NOTJUNC ? "on" : "off");
#ifdef HLBSP_BRINKHACK
	Log("nobrink             [ %7s ] [ %7s ]\n", g_nobrink? "on": "off", DEFAULT_NOBRINK? "on": "off");
#endif
    Log("subdivide size      [ %7d ] [ %7d ] (Min %d) (Max %d)\n",
        g_subdivide_size, DEFAULT_SUBDIVIDE_SIZE, MIN_SUBDIVIDE_SIZE, MAX_SUBDIVIDE_SIZE);
    Log("max node size       [ %7d ] [ %7d ] (Min %d) (Max %d)\n",
        g_maxnode_size, DEFAULT_MAXNODE_SIZE, MIN_MAXNODE_SIZE, MAX_MAXNODE_SIZE);
#ifdef HLBSP_REMOVEHULL2
	Log("remove hull 2       [ %7s ] [ %7s ]\n", g_nohull2? "on": "off", "off");
#endif
    Log("\n\n");
}

// Assembly:
subq $0x28, %rsp
testb $0x1, 0x20066(%rip)     # 0x473f1
jne 0x27392
jmp 0x27754
leaq 0x1ef67(%rip), %rax     # 0x46300
movq (%rax), %rsi
leaq 0x13dbc(%rip), %rdi     # 0x3b15f
xorl %eax, %eax
movl %eax, 0x4(%rsp)
movb %al, 0x1b(%rsp)
callq 0xb060
movb 0x1b(%rsp), %al
leaq 0x13db8(%rip), %rdi     # 0x3b175
callq 0xb060
movb 0x1b(%rsp), %al
leaq 0x1ff47(%rip), %rcx     # 0x47314
movl (%rcx), %esi
leaq 0x13e04(%rip), %rdi     # 0x3b1da
callq 0xb060
movb 0x1b(%rsp), %al
leaq 0x20b602e(%rip), %rcx   # 0x20dd414
movb (%rcx), %sil
leaq 0x13388(%rip), %rcx     # 0x3a778
movq %rcx, 0x10(%rsp)
leaq 0x132bb(%rip), %rdx     # 0x3a6b7
movq %rdx, 0x8(%rsp)
testb $0x1, %sil
movq %rdx, %rsi
cmovneq %rcx, %rsi
leaq 0x13df0(%rip), %rdi     # 0x3b203
callq 0xb060
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movb 0x1b(%rsp), %al
leaq 0x1fee3(%rip), %rcx     # 0x47310
movb (%rcx), %cl
testb $0x1, %cl
cmovneq %rdx, %rsi
leaq 0x13deb(%rip), %rdi     # 0x3b228
callq 0xb060
movl 0x4(%rsp), %edx
movb 0x1b(%rsp), %al
leaq 0x20b5fbf(%rip), %rcx   # 0x20dd410
movl (%rcx), %esi
leaq 0x13df3(%rip), %rdi     # 0x3b24d
callq 0xb060
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movb 0x1b(%rsp), %al
movb 0x20c85b3(%rip), %sil   # 0x20efa27
testb $0x1, %sil
movq %rdx, %rsi
cmovneq %rcx, %rsi
leaq 0x13dec(%rip), %rdi     # 0x3b272
callq 0xb060
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movb 0x1b(%rsp), %al
movb 0x1ff51(%rip), %cl      # 0x473f0
testb $0x1, %cl
cmovneq %rdx, %rsi
leaq 0x13dea(%rip), %rdi     # 0x3b297
callq 0xb060
movb 0x1b(%rsp), %al
leaq 0x1ee33(%rip), %rcx     # 0x462f0
movl (%rcx), %esi
leaq 0x13df6(%rip), %rdi     # 0x3b2bc
movl $0x2000000, %edx        # imm = 0x2000000
callq 0xb060
leaq 0x20c3099(%rip), %rax   # 0x20ea570
movl (%rax), %eax
movl %eax, 0x1c(%rsp)
subl $-0x1, %eax
je 0x27509
jmp 0x274e4
movl 0x1c(%rsp), %eax
testl %eax, %eax
je 0x274f9
jmp 0x274ee
movl 0x1c(%rsp), %eax
subl $0x1, %eax
je 0x27517
jmp 0x274fb
jmp 0x274fb
leaq 0x13ddf(%rip), %rax     # 0x3b2e1
movq %rax, 0x20(%rsp)
jmp 0x27523
leaq 0x13dd8(%rip), %rax     # 0x3b2e8
movq %rax, 0x20(%rsp)
jmp 0x27523
leaq 0x13dce(%rip), %rax     # 0x3b2ec
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rsi
leaq 0x13dc2(%rip), %rdi     # 0x3b2f1
leaq 0x13dab(%rip), %rdx     # 0x3b2e1
movb $0x0, %al
callq 0xb060
leaq 0x107b4(%rip), %rdi     # 0x37cf8
movb $0x0, %al
callq 0xb060
movb 0x20c84d5(%rip), %cl    # 0x20efa26
leaq 0x1315f(%rip), %rsi     # 0x3a6b7
leaq 0x13219(%rip), %rax     # 0x3a778
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x13da9(%rip), %rdi     # 0x3b316
leaq 0x13143(%rip), %rdx     # 0x3a6b7
movb $0x0, %al
callq 0xb060
movb 0x20c84a1(%rip), %cl    # 0x20efa22
leaq 0x1312f(%rip), %rsi     # 0x3a6b7
leaq 0x131e9(%rip), %rax     # 0x3a778
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x13d9e(%rip), %rdi     # 0x3b33b
leaq 0x13113(%rip), %rdx     # 0x3a6b7
movb $0x0, %al
callq 0xb060
movb 0x20c8472(%rip), %cl    # 0x20efa23
leaq 0x130ff(%rip), %rsi     # 0x3a6b7
leaq 0x131b9(%rip), %rax     # 0x3a778
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x13d93(%rip), %rdi     # 0x3b360
leaq 0x130e3(%rip), %rdx     # 0x3a6b7
movb $0x0, %al
callq 0xb060
movb 0x20c843f(%rip), %cl    # 0x20efa20
leaq 0x130cf(%rip), %rsi     # 0x3a6b7
leaq 0x13189(%rip), %rax     # 0x3a778
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x13d88(%rip), %rdi     # 0x3b385
leaq 0x130b3(%rip), %rdx     # 0x3a6b7
movb $0x0, %al
callq 0xb060
movb 0x20c8410(%rip), %cl    # 0x20efa21
leaq 0x1309f(%rip), %rsi     # 0x3a6b7
leaq 0x13159(%rip), %rax     # 0x3a778
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x13d7d(%rip), %rdi     # 0x3b3aa
leaq 0x13083(%rip), %rdx     # 0x3a6b7
movb $0x0, %al
callq 0xb060
movb 0x1fdb7(%rip), %cl      # 0x473f8
leaq 0x1306f(%rip), %rsi     # 0x3a6b7
leaq 0x13129(%rip), %rax     # 0x3a778
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x13d72(%rip), %rdi     # 0x3b3cf
leaq 0x13114(%rip), %rdx     # 0x3a778
movb $0x0, %al
callq 0xb060
movb 0x20c83b3(%rip), %cl    # 0x20efa24
leaq 0x1303f(%rip), %rsi     # 0x3a6b7
leaq 0x130f9(%rip), %rax     # 0x3a778
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x13d67(%rip), %rdi     # 0x3b3f4
leaq 0x13023(%rip), %rdx     # 0x3a6b7
movb $0x0, %al
callq 0xb060
movb 0x20c8384(%rip), %cl    # 0x20efa25
leaq 0x1300f(%rip), %rsi     # 0x3a6b7
leaq 0x130c9(%rip), %rax     # 0x3a778
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x13d5c(%rip), %rdi     # 0x3b419
leaq 0x12ff3(%rip), %rdx     # 0x3a6b7
movb $0x0, %al
callq 0xb060
movl 0x1fd23(%rip), %esi     # 0x473f4
leaq 0x13d66(%rip), %rdi     # 0x3b43e
movl $0xf0, %edx
movl $0x40, %ecx
movl $0x200, %r8d            # imm = 0x200
movb $0x0, %al
callq 0xb060
leaq 0x1fd06(%rip), %rax     # 0x473fc
movl (%rax), %esi
leaq 0x13d76(%rip), %rdi     # 0x3b475
movl $0x400, %edx            # imm = 0x400
movl $0x40, %ecx
movl $0x10000, %r8d          # imm = 0x10000
movb $0x0, %al
callq 0xb060
movb 0x20c830e(%rip), %cl    # 0x20efa2a
leaq 0x12f94(%rip), %rsi     # 0x3a6b7
leaq 0x1304e(%rip), %rax     # 0x3a778
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x13d74(%rip), %rdi     # 0x3b4ac
leaq 0x12f78(%rip), %rdx     # 0x3a6b7
movb $0x0, %al
callq 0xb060
leaq 0x105aa(%rip), %rdi     # 0x37cf7
movb $0x0, %al
callq 0xb060
addq $0x28, %rsp
retq
nopl (%rax)