// File: FreeSlave[P]vhlt/ripent/ripent.cpp
// Function: Settings()
static void     Settings()
{
    char*           tmp;

    if (!g_info)
    {
        return; 
    }

    Log("\n-= Current %s Settings =-\n", g_Program);
    Log("Name               |  Setting  |  Default\n" "-------------------|-----------|-------------------------\n");

    // ZHLT Common Settings
    Log("chart               [ %7s ] [ %7s ]\n", g_chart ? "on" : "off", DEFAULT_CHART ? "on" : "off");
    Log("max texture memory  [ %7d ] [ %7d ]\n", g_max_map_miptex, DEFAULT_MAX_MAP_MIPTEX);
	Log("max lighting memory [ %7d ] [ %7d ]\n", g_max_map_lightdata, DEFAULT_MAX_MAP_LIGHTDATA);

#ifdef RIPENT_TEXTURE
	switch (g_mode)
	{
	case hl_import:
		tmp = "Import";
		break;
	case hl_export:
		tmp = "Export";
		break;
	case hl_undefined:
	default:
		tmp = "N/A";
		break;
	}
#else
    switch (g_mode)
    {
    case hl_import:
    default:
        tmp = "Import";
        break;
    case hl_export:
        tmp = "Export";
        break;
    }
#endif

	Log("\n");

    // RipEnt Specific Settings
	Log("mode                [ %7s ] [ %7s ]\n", tmp, "N/A");
    Log("parse               [ %7s ] [ %7s ]\n", g_parse ? "on" : "off", DEFAULT_PARSE ? "on" : "off");
#ifdef RIPENT_TEXTURE
	switch (g_texturemode)
	{
	case hl_import:
		tmp = "Import";
		break;
	case hl_export:
		tmp = "Export";
		break;
	case hl_undefined:
	default:
		tmp = "N/A";
		break;
	}
	Log("texture mode        [ %7s ] [ %7s ]\n", tmp, "N/A");
	Log("texture parse       [ %7s ] [ %7s ]\n", g_textureparse ? "on" : "off", DEFAULT_TEXTUREPARSE ? "on" : "off");
#endif
#ifdef ZHLT_64BIT_FIX
	Log("write extent file   [ %7s ] [ %7s ]\n", g_writeextentfile ? "on" : "off", DEFAULT_WRITEEXTENTFILE ? "on" : "off");
#endif
#ifdef ZHLT_EMBEDLIGHTMAP
#ifdef RIPENT_TEXTURE
	Log("delete rad textures [ %7s ] [ %7s ]\n", g_deleteembeddedlightmaps ? "on" : "off", DEFAULT_DELETEEMBEDDEDLIGHTMAPS ? "on" : "off");
#endif
#endif

    Log("\n\n");
}

// Assembly:
subq $0x18, %rsp
testb $0x1, 0xbf05(%rip)      # 0x1e2d0
jne 0x123d2
jmp 0x12620
leaq 0xaed7(%rip), %rax      # 0x1d2b0
movq (%rax), %rsi
leaq 0x67e1(%rip), %rdi      # 0x18bc4
xorl %eax, %eax
movb %al, 0xb(%rsp)
callq 0x9f40
movb 0xb(%rsp), %al
leaq 0x67e7(%rip), %rdi      # 0x18be0
callq 0x9f40
movb 0xb(%rsp), %al
movb 0x208f39a(%rip), %sil   # 0x20a17a3
leaq 0x685a(%rip), %rcx      # 0x18c6a
leaq 0x6856(%rip), %rdx      # 0x18c6d
testb $0x1, %sil
movq %rdx, %rsi
cmovneq %rcx, %rsi
leaq 0x681c(%rip), %rdi      # 0x18c45
callq 0x9f40
movb 0xb(%rsp), %al
leaq 0xae67(%rip), %rcx      # 0x1d2a0
movl (%rcx), %esi
leaq 0x682f(%rip), %rdi      # 0x18c71
movl $0x2000000, %edx        # imm = 0x2000000
callq 0x9f40
movb 0xb(%rsp), %al
leaq 0xae4d(%rip), %rcx      # 0x1d2a4
movl (%rcx), %esi
leaq 0x6836(%rip), %rdi      # 0x18c96
movl $0x3000000, %edx        # imm = 0x3000000
callq 0x9f40
movl 0xbe64(%rip), %eax      # 0x1e2d4
movl %eax, 0xc(%rsp)
subl $-0x1, %eax
je 0x124ac
jmp 0x1247b
movl 0xc(%rsp), %eax
testl %eax, %eax
je 0x1249e
jmp 0x12485
movl 0xc(%rsp), %eax
subl $0x1, %eax
jne 0x124ae
jmp 0x12490
leaq 0x6824(%rip), %rax      # 0x18cbb
movq %rax, 0x10(%rsp)
jmp 0x124ba
leaq 0x681d(%rip), %rax      # 0x18cc2
movq %rax, 0x10(%rsp)
jmp 0x124ba
jmp 0x124ae
leaq 0x6814(%rip), %rax      # 0x18cc9
movq %rax, 0x10(%rsp)
leaq 0x4867(%rip), %rdi      # 0x16d28
xorl %eax, %eax
movb %al, 0x3(%rsp)
callq 0x9f40
movb 0x3(%rsp), %al
movq 0x10(%rsp), %rsi
leaq 0x67f1(%rip), %rdi      # 0x18ccd
leaq 0x67e6(%rip), %rdx      # 0x18cc9
callq 0x9f40
movb 0x3(%rsp), %al
movb 0x208f2ae(%rip), %sil   # 0x20a17a1
leaq 0x6770(%rip), %rcx      # 0x18c6a
leaq 0x676c(%rip), %rdx      # 0x18c6d
testb $0x1, %sil
movq %rdx, %rsi
cmovneq %rcx, %rsi
leaq 0x67df(%rip), %rdi      # 0x18cf2
callq 0x9f40
movl 0xbdba(%rip), %eax      # 0x1e2d8
movl %eax, 0x4(%rsp)
subl $-0x1, %eax
je 0x1255a
jmp 0x12529
movl 0x4(%rsp), %eax
testl %eax, %eax
je 0x1254c
jmp 0x12533
movl 0x4(%rsp), %eax
subl $0x1, %eax
jne 0x1255c
jmp 0x1253e
leaq 0x6776(%rip), %rax      # 0x18cbb
movq %rax, 0x10(%rsp)
jmp 0x12568
leaq 0x676f(%rip), %rax      # 0x18cc2
movq %rax, 0x10(%rsp)
jmp 0x12568
jmp 0x1255c
leaq 0x6766(%rip), %rax      # 0x18cc9
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rsi
leaq 0x67a3(%rip), %rdi      # 0x18d17
leaq 0x674e(%rip), %rdx      # 0x18cc9
movb $0x0, %al
callq 0x9f40
movb 0x208f21a(%rip), %cl    # 0x20a17a2
leaq 0x66de(%rip), %rsi      # 0x18c6d
leaq 0x66d4(%rip), %rax      # 0x18c6a
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x6798(%rip), %rdi      # 0x18d3c
leaq 0x66c2(%rip), %rdx      # 0x18c6d
movb $0x0, %al
callq 0x9f40
movb 0x208f1ec(%rip), %cl    # 0x20a17a4
leaq 0x66ae(%rip), %rsi      # 0x18c6d
leaq 0x66a4(%rip), %rax      # 0x18c6a
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x678d(%rip), %rdi      # 0x18d61
leaq 0x6692(%rip), %rdx      # 0x18c6d
movb $0x0, %al
callq 0x9f40
movb 0x208f1bd(%rip), %cl    # 0x20a17a5
leaq 0x667e(%rip), %rsi      # 0x18c6d
leaq 0x6674(%rip), %rax      # 0x18c6a
testb $0x1, %cl
cmovneq %rax, %rsi
leaq 0x6782(%rip), %rdi      # 0x18d86
leaq 0x6662(%rip), %rdx      # 0x18c6d
movb $0x0, %al
callq 0x9f40
leaq 0x470e(%rip), %rdi      # 0x16d27
movb $0x0, %al
callq 0x9f40
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)