// File: /workspace/github_c_makefile_star2_O1/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 0x53e68(%rip), %rdi     # 0x6f0e8
movl $0x28, %esi
callq 0x25612
xorps %xmm0, %xmm0
movups %xmm0, 0x53dfc(%rip)    # 0x6f090
movl $0xa, 0x53e0a(%rip)     # 0x6f0a8
movb $0x0, 0x53e6b(%rip)     # 0x6f110
movl $0x40, 0x53e31(%rip)    # 0x6f0e0
movabsq $0x1ff0000148e, %rax    # imm = 0x1FF0000148E
movq %rax, 0x53e7c(%rip)     # 0x6f13c
xorl %r14d, %r14d
movl %r14d, 0x53efe(%rip)    # 0x6f1c8
movq %r14, 0x53eff(%rip)     # 0x6f1d0
movl %r14d, 0x53f00(%rip)    # 0x6f1d8
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x53f33(%rip)     # 0x6f21c
movaps 0x37140(%rip), %xmm0    # 0x52430
movups %xmm0, 0x54329(%rip)    # 0x6f620
movl $0x40000000, %ebx       # imm = 0x40000000
movq %rbx, 0x5432d(%rip)     # 0x6f630
movq %r14, 0x54436(%rip)     # 0x6f740
movl %r14d, 0x54097(%rip)    # 0x6f3a8
leaq 0x39eed(%rip), %rdi     # 0x55205
callq 0x20041
movq %rax, 0x54354(%rip)     # 0x6f678
movl %r14d, 0x54355(%rip)    # 0x6f680
leaq 0x37803(%rip), %rdi     # 0x52b35
callq 0x20041
movq %rax, 0x5434a(%rip)     # 0x6f688
movl $0x80, 0x54348(%rip)    # 0x6f690
movl %r14d, 0x542f1(%rip)    # 0x6f640
movq %r14, 0x542e2(%rip)     # 0x6f638
leaq 0x377df(%rip), %rdi     # 0x52b3c
callq 0x20041
movq %rax, 0x53d6f(%rip)     # 0x6f0d8
leaq 0x377e0(%rip), %rdi     # 0x52b50
callq 0x20041
movq %rax, 0x543d4(%rip)     # 0x6f750
movq %r14, 0x53d4d(%rip)     # 0x6f0d0
movl $0x1, %eax
movl %eax, 0x543ce(%rip)     # 0x6f75c
movl %eax, 0x543f4(%rip)     # 0x6f788
movl $0x2710, 0x542f6(%rip)  # imm = 0x2710
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x542f9(%rip)     # 0x6f6a8
movq $0xa, 0x542f6(%rip) # 0x6f6b0
movl %r14d, 0x542f7(%rip)    # 0x6f6b8
movq %rbx, 0x542d0(%rip)     # 0x6f698
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x53cef(%rip)     # 0x6f0c8
movq $0x3a98, 0x542fc(%rip) # imm = 0x3A98
leaq 0x3776e(%rip), %rdi     # 0x52b59
callq 0x20041
movq %rax, 0x542f1(%rip)     # 0x6f6e8
movq $0x1, 0x53f9e(%rip) # 0x6f3a0
movq $0x200000, 0x53fbb(%rip) # imm = 0x200000
callq 0x26949
movl $0xe10, %edi            # imm = 0xE10
movl $0x1, %esi
callq 0x268f3
movl $0x12c, %edi            # imm = 0x12C
movl $0x64, %esi
callq 0x268f3
movl $0x3c, %edi
movl $0x2710, %esi           # imm = 0x2710
callq 0x268f3
leaq 0x6812a(%rip), %rax     # 0x83570
movaps (%rax), %xmm0
movaps 0x10(%rax), %xmm1
movaps 0x20(%rax), %xmm2
movups %xmm2, 0x54210(%rip)    # 0x6f668
movups %xmm1, 0x541f9(%rip)    # 0x6f658
movups %xmm0, 0x541e2(%rip)    # 0x6f648
movq %r14, 0x67ef3(%rip)     # 0x83360
movabsq $0x7ff0000000000000, %rax # imm = 0x7FF0000000000000
movq %rax, 0x67eea(%rip)     # 0x83368
movabsq $-0x10000000000000, %rax # imm = 0xFFF0000000000000
movq %rax, 0x67ee1(%rip)     # 0x83370
movabsq $0x7ff8000000000000, %rax # imm = 0x7FF8000000000000
movq %rax, 0x67ed8(%rip)     # 0x83378
leaq 0x53869(%rip), %rbx     # 0x6ed10
movq %rbx, %rdi
xorl %esi, %esi
callq 0x18875
movq %rax, 0x53bf8(%rip)     # 0x6f0b0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x18875
movq %rax, 0x53bef(%rip)     # 0x6f0b8
callq 0x1b566
leaq 0x3768f(%rip), %rdi     # 0x52b64
callq 0x1b699
movq %rax, 0x53eef(%rip)     # 0x6f3d0
leaq 0x37680(%rip), %rdi     # 0x52b68
callq 0x1b699
movq %rax, 0x53ee4(%rip)     # 0x6f3d8
leaq 0x37673(%rip), %rdi     # 0x52b6e
callq 0x1b699
movq %rax, 0x53ed9(%rip)     # 0x6f3e0
leaq 0x37666(%rip), %rdi     # 0x52b74
callq 0x1b699
movq %rax, 0x53ece(%rip)     # 0x6f3e8
leaq 0x37658(%rip), %rdi     # 0x52b79
callq 0x1b699
movq %rax, 0x53ec3(%rip)     # 0x6f3f0
movq %r14, 0x541c4(%rip)     # 0x6f6f8
leaq 0x37643(%rip), %rax     # 0x52b7e
movq %rax, 0x541c6(%rip)     # 0x6f708
leaq 0x3764b(%rip), %rax     # 0x52b94
movq %rax, 0x541c0(%rip)     # 0x6f710
movq %r14, 0x541c1(%rip)     # 0x6f718
movl %r14d, 0x541c2(%rip)    # 0x6f720
addq $0x8, %rsp
popq %rbx
popq %r14
retq