// File: qian-jiahong[P]uvncrep017-ws/repeater.cpp
// Function: listInitializationValues()
static void listInitializationValues(void)
{
    int ii;
    
    debug(LEVEL_2, "listInitializationValues(): viewerPort : %d\n", viewerPort);
    debug(LEVEL_2, "listInitializationValues(): serverPort : %d\n", serverPort);
    debug(LEVEL_2, "listInitializationValues(): maxSessions: %d\n", maxSessions);
    debug(LEVEL_2, "listInitializationValues(): loggingLevel: %d\n", loggingLevel);
    debug(LEVEL_2, "listInitializationValues(): ownIpAddress (0.0.0.0 = listen all interfaces) : %s\n", ownIpAddress);
    debug(LEVEL_2, "listInitializationValues(): runAsUser (if started as root) : %s\n", runAsUser);
    
    debug(LEVEL_2, "listInitializationValues(): Mode 1 connections allowed : %s\n", 
        ((allowedModes & CONN_MODE1) > 0) ? "Yes" : "No");
    debug(LEVEL_2, "listInitializationValues(): Mode 2 connections allowed : %s\n", 
        ((allowedModes & CONN_MODE2) > 0) ? "Yes" : "No");

    debug(LEVEL_2, "listInitializationValues(): Mode 1 allowed server port (0=All) : %d\n", allowedMode1ServerPort);
    debug(LEVEL_2, "listInitializationValues(): Mode 1 requires listed addresses : %s\n", 
        (requireListedServer == 1) ? "Yes" : "No");
    if (requireListedServer == 1) {
        //Allow list
        if (LEVEL_2 <= loggingLevel) {
            debug(LEVEL_2, "listInitializationValues(): Mode 1 allowed servers/networks (255=Not allowed):");
            for(ii = 0; ii < SERVERS_LIST_SIZE; ii++) {
                fprintf(stderr, " %d.%d.%d.%d", srvListAllow[ii].a, srvListAllow[ii].b, 
                    srvListAllow[ii].c, srvListAllow[ii].d);
            }
            fprintf(stderr, "\n");
        }

        //Deny list
        if (LEVEL_2 <= loggingLevel) {
            debug(LEVEL_2, "listInitializationValues(): Mode 1 denied servers/networks (255=Not denied):");
            for(ii = 0; ii < SERVERS_LIST_SIZE; ii++) {
                fprintf(stderr, " %d.%d.%d.%d", srvListDeny[ii].a, srvListDeny[ii].b, srvListDeny[ii].c, srvListDeny[ii].d);
            }
            fprintf(stderr, "\n");
        }
    }

    debug(LEVEL_2, "listInitializationValues(): Mode 2 requires listed ID numbers : %s\n",
        (requireListedId == 1) ? "Yes" : "No");
    
    if (requireListedId == 1) {
        if (LEVEL_2 <= loggingLevel) {
            debug(LEVEL_2, "listInitializationValues(): Mode 2 allowed ID list (0=Not allowed):");
        
            for(ii = 0; ii < ID_LIST_SIZE; ii++) {
                fprintf(stderr, " %d", idList[ii]);
            }
            fprintf(stderr, "\n");
        }
    }

    debug(LEVEL_2, "listInitializationValues(): useEventInterface: %s\n", 
    	(useEventInterface) ? "true" : "false");
    
    debug(LEVEL_2, "listInitializationValues(): eventListenerHost : %s\n", eventListenerHost);
    
    debug(LEVEL_2, "listInitializationValues(): eventListenerPort : %d\n", eventListenerPort);
    
    debug(LEVEL_2, "listInitializationValues(): useHttpForEventListener : %s\n", 
    	(useHttpForEventListener) ? "true" : "false");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0xbb11(%rip), %rax      # 0xf1f0
movl (%rax), %edx
movl $0x2, %edi
leaq 0x7011(%rip), %rsi      # 0xa6fe
movb $0x0, %al
callq 0x2480
leaq 0xbaf9(%rip), %rax      # 0xf1f4
movl (%rax), %edx
movl $0x2, %edi
leaq 0x7022(%rip), %rsi      # 0xa72b
movb $0x0, %al
callq 0x2480
leaq 0xc329(%rip), %rax      # 0xfa40
movl (%rax), %edx
movl $0x2, %edi
leaq 0x7033(%rip), %rsi      # 0xa758
movb $0x0, %al
callq 0x2480
leaq 0xc311(%rip), %rax      # 0xfa44
movl (%rax), %edx
movl $0x2, %edi
leaq 0x7044(%rip), %rsi      # 0xa785
movb $0x0, %al
callq 0x2480
movl $0x2, %edi
leaq 0x705f(%rip), %rsi      # 0xa7b3
leaq 0xbba5(%rip), %rdx      # 0xf300
movb $0x0, %al
callq 0x2480
movl $0x2, %edi
leaq 0x7096(%rip), %rsi      # 0xa804
leaq 0xba8b(%rip), %rdx      # 0xf200
movb $0x0, %al
callq 0x2480
leaq 0xba75(%rip), %rax      # 0xf1f8
movl (%rax), %ecx
andl $0x1, %ecx
leaq 0x70f7(%rip), %rdx      # 0xa886
leaq 0x70ec(%rip), %rax      # 0xa882
cmpl $0x0, %ecx
cmovgq %rax, %rdx
movl $0x2, %edi
leaq 0x709c(%rip), %rsi      # 0xa845
movb $0x0, %al
callq 0x2480
leaq 0xba41(%rip), %rax      # 0xf1f8
movl (%rax), %ecx
andl $0x2, %ecx
leaq 0x70c3(%rip), %rdx      # 0xa886
leaq 0x70b8(%rip), %rax      # 0xa882
cmpl $0x0, %ecx
cmovgq %rax, %rdx
movl $0x2, %edi
leaq 0x70ac(%rip), %rsi      # 0xa889
movb $0x0, %al
callq 0x2480
leaq 0x14965(%rip), %rax     # 0x18150
movl (%rax), %edx
movl $0x2, %edi
leaq 0x70cd(%rip), %rsi      # 0xa8c6
movb $0x0, %al
callq 0x2480
leaq 0x14ae9(%rip), %rax     # 0x182f0
movl (%rax), %ecx
leaq 0x7076(%rip), %rdx      # 0xa886
leaq 0x706b(%rip), %rax      # 0xa882
cmpl $0x1, %ecx
cmoveq %rax, %rdx
movl $0x2, %edi
leaq 0x70e1(%rip), %rsi      # 0xa90b
movb $0x0, %al
callq 0x2480
leaq 0x14ab8(%rip), %rax     # 0x182f0
cmpl $0x1, (%rax)
jne 0x39cb
movl $0x2, %eax
leaq 0xc1f7(%rip), %rcx      # 0xfa44
cmpl (%rcx), %eax
jg 0x3905
movl $0x2, %edi
leaq 0x70ed(%rip), %rsi      # 0xa94e
movb $0x0, %al
callq 0x2480
movl $0x0, -0x4(%rbp)
cmpl $0x32, -0x4(%rbp)
jge 0x38ed
movq 0xb764(%rip), %rax      # 0xefe0
movq (%rax), %rdi
movslq -0x4(%rbp), %rcx
leaq 0xbb76(%rip), %rax      # 0xf400
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %edx
movslq -0x4(%rbp), %rcx
leaq 0xbb62(%rip), %rax      # 0xf400
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movslq -0x4(%rbp), %rsi
leaq 0xbb4d(%rip), %rax      # 0xf400
shlq $0x4, %rsi
addq %rsi, %rax
movl 0x8(%rax), %r8d
movslq -0x4(%rbp), %rsi
leaq 0xbb37(%rip), %rax      # 0xf400
shlq $0x4, %rsi
addq %rsi, %rax
movl 0xc(%rax), %r9d
leaq 0x70c2(%rip), %rsi      # 0xa99d
movb $0x0, %al
callq 0x22d0
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x386f
movq 0xb6ec(%rip), %rax      # 0xefe0
movq (%rax), %rdi
leaq 0x7cdb(%rip), %rsi      # 0xb5d9
movb $0x0, %al
callq 0x22d0
movl $0x2, %eax
leaq 0xc133(%rip), %rcx      # 0xfa44
cmpl (%rcx), %eax
jg 0x39c9
movl $0x2, %edi
leaq 0x7085(%rip), %rsi      # 0xa9aa
movb $0x0, %al
callq 0x2480
movl $0x0, -0x4(%rbp)
cmpl $0x32, -0x4(%rbp)
jge 0x39b1
movq 0xb6a0(%rip), %rax      # 0xefe0
movq (%rax), %rdi
movslq -0x4(%rbp), %rcx
leaq 0xbdd2(%rip), %rax      # 0xf720
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %edx
movslq -0x4(%rbp), %rcx
leaq 0xbdbe(%rip), %rax      # 0xf720
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movslq -0x4(%rbp), %rsi
leaq 0xbda9(%rip), %rax      # 0xf720
shlq $0x4, %rsi
addq %rsi, %rax
movl 0x8(%rax), %r8d
movslq -0x4(%rbp), %rsi
leaq 0xbd93(%rip), %rax      # 0xf720
shlq $0x4, %rsi
addq %rsi, %rax
movl 0xc(%rax), %r9d
leaq 0x6ffe(%rip), %rsi      # 0xa99d
movb $0x0, %al
callq 0x22d0
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x3933
movq 0xb628(%rip), %rax      # 0xefe0
movq (%rax), %rdi
leaq 0x7c17(%rip), %rsi      # 0xb5d9
movb $0x0, %al
callq 0x22d0
jmp 0x39cb
leaq 0x14782(%rip), %rax     # 0x18154
movl (%rax), %ecx
leaq 0x6eab(%rip), %rdx      # 0xa886
leaq 0x6ea0(%rip), %rax      # 0xa882
cmpl $0x1, %ecx
cmoveq %rax, %rdx
movl $0x2, %edi
leaq 0x7002(%rip), %rsi      # 0xa9f7
movb $0x0, %al
callq 0x2480
leaq 0x14751(%rip), %rax     # 0x18154
cmpl $0x1, (%rax)
jne 0x3a83
movl $0x2, %eax
leaq 0xc030(%rip), %rcx      # 0xfa44
cmpl (%rcx), %eax
jg 0x3a81
movl $0x2, %edi
leaq 0x7017(%rip), %rsi      # 0xaa3b
movb $0x0, %al
callq 0x2480
movl $0x0, -0x4(%rbp)
cmpl $0x64, -0x4(%rbp)
jge 0x3a69
movq 0xb5a1(%rip), %rax      # 0xefe0
movq (%rax), %rdi
movslq -0x4(%rbp), %rcx
leaq 0x14713(%rip), %rax     # 0x18160
movl (%rax,%rcx,4), %edx
leaq 0x7028(%rip), %rsi      # 0xaa7f
movb $0x0, %al
callq 0x22d0
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x3a32
movq 0xb570(%rip), %rax      # 0xefe0
movq (%rax), %rdi
leaq 0x7b5f(%rip), %rsi      # 0xb5d9
movb $0x0, %al
callq 0x22d0
jmp 0x3a83
leaq 0x1486a(%rip), %rax     # 0x182f4
movb (%rax), %cl
leaq 0x7028(%rip), %rdx      # 0xaabb
leaq 0x701c(%rip), %rax      # 0xaab6
testb $0x1, %cl
cmovneq %rax, %rdx
movl $0x2, %edi
leaq 0x6fd6(%rip), %rsi      # 0xaa83
movb $0x0, %al
callq 0x2480
movl $0x2, %edi
leaq 0x7001(%rip), %rsi      # 0xaac1
leaq 0xbf89(%rip), %rdx      # 0xfa50
movb $0x0, %al
callq 0x2480
leaq 0xc07b(%rip), %rax      # 0xfb50
movl (%rax), %edx
movl $0x2, %edi
leaq 0x7012(%rip), %rsi      # 0xaaf5
movb $0x0, %al
callq 0x2480
leaq 0x14804(%rip), %rax     # 0x182f5
movb (%rax), %cl
leaq 0x6fc1(%rip), %rdx      # 0xaabb
leaq 0x6fb5(%rip), %rax      # 0xaab6
testb $0x1, %cl
cmovneq %rax, %rdx
movl $0x2, %edi
leaq 0x7015(%rip), %rsi      # 0xab29
movb $0x0, %al
callq 0x2480
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)