// File: /workspace/github_c_makefile_star2_O3/erikdubbelboer[P]discnt/src/server.c
// Function: initServerConfig
void initServerConfig(void) {
    int j;

    getRandomHexChars(server.runid,CONFIG_RUN_ID_SIZE);
    server.configfile = NULL;
    server.executable = NULL;
    server.hz = CONFIG_DEFAULT_HZ;
    server.runid[CONFIG_RUN_ID_SIZE] = '\0';
    server.arch_bits = (sizeof(long) == 8) ? 64 : 32;
    server.port = CONFIG_DEFAULT_SERVER_PORT;
    server.tcp_backlog = CONFIG_DEFAULT_TCP_BACKLOG;
    server.bindaddr_count = 0;
    server.unixsocket = NULL;
    server.unixsocketperm = CONFIG_DEFAULT_UNIX_SOCKET_PERM;
    server.ipfd_count = 0;
    server.sofd = -1;
    server.verbosity = CONFIG_DEFAULT_VERBOSITY;
    server.maxidletime = CONFIG_DEFAULT_CLIENT_TIMEOUT;
    server.tcpkeepalive = CONFIG_DEFAULT_TCP_KEEPALIVE;
    server.active_expire_enabled = 1;
    server.client_max_querybuf_len = PROTO_MAX_QUERYBUF_LEN;
    server.saveparams = NULL;
    server.loading = 0;
    server.logfile = zstrdup(CONFIG_DEFAULT_LOGFILE);
    server.syslog_enabled = CONFIG_DEFAULT_SYSLOG_ENABLED;
    server.syslog_ident = zstrdup(CONFIG_DEFAULT_SYSLOG_IDENT);
    server.syslog_facility = LOG_LOCAL0;
    server.daemonize = CONFIG_DEFAULT_DAEMONIZE;
    server.supervised = 0;
    server.supervised_mode = SUPERVISED_NONE;
    server.pidfile = zstrdup(CONFIG_DEFAULT_PID_FILE);
    server.ddb_filename = zstrdup(CONFIG_DEFAULT_DDB_FILENAME);
    server.requirepass = NULL;
    server.ddb_checksum = CONFIG_DEFAULT_DDB_CHECKSUM;
    server.stop_writes_on_bgsave_err = CONFIG_DEFAULT_STOP_WRITES_ON_BGSAVE_ERROR;
    server.activerehashing = CONFIG_DEFAULT_ACTIVE_REHASHING;
    server.maxclients = CONFIG_DEFAULT_MAX_CLIENTS;
    server.default_precision = CONFIG_DEFAULT_PRECISION;
    server.history_size = CONFIG_HISTORY;
    server.history_index = 0;
    server.bpop_blocked_clients = 0;
    server.maxmemory = CONFIG_DEFAULT_MAXMEMORY;
    server.shutdown_asap = 0;
    server.cluster_node_timeout = CLUSTER_DEFAULT_NODE_TIMEOUT;
    server.cluster_configfile = zstrdup(CONFIG_DEFAULT_CLUSTER_CONFIG_FILE);
    server.next_client_id = 1; /* Client IDs, start from 1 .*/
    server.loading_process_events_interval_bytes = (1024*1024*2);

    resetServerSaveParams();
    appendServerSaveParams(60*60,1); /* save after 1 hour and 1 change */
    appendServerSaveParams(300,100); /* save after 5 minutes and 100 changes */
    appendServerSaveParams(60,10000); /* save after 1 minute and 10000 changes */

    /* Client output buffer limits */
    for (j = 0; j < CLIENT_TYPE_COUNT; j++)
        server.client_obuf_limits[j] = clientBufferLimitsDefaults[j];

    /* Double constants initialization */
    R_Zero = 0.0;
    R_PosInf = 1.0/R_Zero;
    R_NegInf = -1.0/R_Zero;
    R_Nan = R_Zero/R_Zero;

    /* Command table -- we initiialize it here as it is part of the
     * initial configuration, since command names may be changed via
     * discnt.conf using the rename-command directive. */
    server.commands = dictCreate(&commandTableDictType,NULL);
    server.orig_commands = dictCreate(&commandTableDictType,NULL);
    populateCommandTable();
    server.delCommand = lookupCommandByCString("del");
    server.multiCommand = lookupCommandByCString("multi");
    server.lpushCommand = lookupCommandByCString("lpush");
    server.lpopCommand = lookupCommandByCString("lpop");
    server.rpopCommand = lookupCommandByCString("rpop");

    /* Latency monitor */
    server.latency_monitor_threshold = CONFIG_DEFAULT_LATENCY_MONITOR_THRESHOLD;

    /* Debugging */
    server.assert_failed = "<no assertion failed>";
    server.assert_file = "<no file>";
    server.assert_line = 0;
    server.bug_report_start = 0;
    server.watchdog_period = 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x541f1(%rip), %rdi     # 0x6f0e8
movl $0x28, %esi
callq 0x25251
xorps %xmm0, %xmm0
movups %xmm0, 0x54185(%rip)    # 0x6f090
movl $0xa, 0x54193(%rip)     # 0x6f0a8
movb $0x0, 0x541f4(%rip)     # 0x6f110
movl $0x40, 0x541ba(%rip)    # 0x6f0e0
movabsq $0x1ff0000148e, %rax    # imm = 0x1FF0000148E
movq %rax, 0x54205(%rip)     # 0x6f13c
xorl %r14d, %r14d
movl %r14d, 0x54287(%rip)    # 0x6f1c8
movq %r14, 0x54288(%rip)     # 0x6f1d0
movl %r14d, 0x54289(%rip)    # 0x6f1d8
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x542bc(%rip)     # 0x6f21c
movaps 0x37519(%rip), %xmm0    # 0x52480
movups %xmm0, 0x546b2(%rip)    # 0x6f620
movl $0x40000000, %ebx       # imm = 0x40000000
movq %rbx, 0x546b6(%rip)     # 0x6f630
movq %r14, 0x547bf(%rip)     # 0x6f740
movl %r14d, 0x54420(%rip)    # 0x6f3a8
leaq 0x3a28e(%rip), %rdi     # 0x5521d
callq 0x1fd59
movq %rax, 0x546dd(%rip)     # 0x6f678
movl %r14d, 0x546de(%rip)    # 0x6f680
leaq 0x37bdc(%rip), %rdi     # 0x52b85
callq 0x1fd59
movq %rax, 0x546d3(%rip)     # 0x6f688
movl $0x80, 0x546d1(%rip)    # 0x6f690
movl %r14d, 0x5467a(%rip)    # 0x6f640
movq %r14, 0x5466b(%rip)     # 0x6f638
leaq 0x37bb8(%rip), %rdi     # 0x52b8c
callq 0x1fd59
movq %rax, 0x540f8(%rip)     # 0x6f0d8
leaq 0x37bb9(%rip), %rdi     # 0x52ba0
callq 0x1fd59
movq %rax, 0x5475d(%rip)     # 0x6f750
movq %r14, 0x540d6(%rip)     # 0x6f0d0
movl $0x1, %eax
movl %eax, 0x54757(%rip)     # 0x6f75c
movl %eax, 0x5477d(%rip)     # 0x6f788
movl $0x2710, 0x5467f(%rip)  # imm = 0x2710
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x54682(%rip)     # 0x6f6a8
movq $0xa, 0x5467f(%rip) # 0x6f6b0
movl %r14d, 0x54680(%rip)    # 0x6f6b8
movq %rbx, 0x54659(%rip)     # 0x6f698
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x54078(%rip)     # 0x6f0c8
movq $0x3a98, 0x54685(%rip) # imm = 0x3A98
leaq 0x37b47(%rip), %rdi     # 0x52ba9
callq 0x1fd59
movq %rax, 0x5467a(%rip)     # 0x6f6e8
movq $0x1, 0x54327(%rip) # 0x6f3a0
movq $0x200000, 0x54344(%rip) # imm = 0x200000
callq 0x26545
movl $0xe10, %edi            # imm = 0xE10
movl $0x1, %esi
callq 0x264ef
movl $0x12c, %edi            # imm = 0x12C
movl $0x64, %esi
callq 0x264ef
movl $0x3c, %edi
movl $0x2710, %esi           # imm = 0x2710
callq 0x264ef
leaq 0x684b3(%rip), %rax     # 0x83570
movaps (%rax), %xmm0
movaps 0x10(%rax), %xmm1
movaps 0x20(%rax), %xmm2
movups %xmm2, 0x54599(%rip)    # 0x6f668
movups %xmm1, 0x54582(%rip)    # 0x6f658
movups %xmm0, 0x5456b(%rip)    # 0x6f648
movq %r14, 0x6827c(%rip)     # 0x83360
movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000
movq %rax, 0x68273(%rip)     # 0x83368
movabsq $-0x10000000000000, %rax # imm = 0xFFF0000000000000
movq %rax, 0x6826a(%rip)     # 0x83370
movabsq $0x7ff8000000000000, %rax # imm = 0x7FF8000000000000
movq %rax, 0x68261(%rip)     # 0x83378
leaq 0x53bf2(%rip), %rbx     # 0x6ed10
movq %rbx, %rdi
xorl %esi, %esi
callq 0x184d5
movq %rax, 0x53f81(%rip)     # 0x6f0b0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x184d5
movq %rax, 0x53f78(%rip)     # 0x6f0b8
callq 0x1b1dd
leaq 0x37a68(%rip), %rdi     # 0x52bb4
callq 0x1b310
movq %rax, 0x54278(%rip)     # 0x6f3d0
leaq 0x37a59(%rip), %rdi     # 0x52bb8
callq 0x1b310
movq %rax, 0x5426d(%rip)     # 0x6f3d8
leaq 0x37a4c(%rip), %rdi     # 0x52bbe
callq 0x1b310
movq %rax, 0x54262(%rip)     # 0x6f3e0
leaq 0x37a3f(%rip), %rdi     # 0x52bc4
callq 0x1b310
movq %rax, 0x54257(%rip)     # 0x6f3e8
leaq 0x37a31(%rip), %rdi     # 0x52bc9
callq 0x1b310
movq %rax, 0x5424c(%rip)     # 0x6f3f0
movq %r14, 0x5454d(%rip)     # 0x6f6f8
leaq 0x37a1c(%rip), %rax     # 0x52bce
movq %rax, 0x5454f(%rip)     # 0x6f708
leaq 0x37a24(%rip), %rax     # 0x52be4
movq %rax, 0x54549(%rip)     # 0x6f710
movq %r14, 0x5454a(%rip)     # 0x6f718
movl %r14d, 0x5454b(%rip)    # 0x6f720
addq $0x8, %rsp
popq %rbx
popq %r14
retq