// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/src/config.c
// Function: loadServerConfigFromString
void loadServerConfigFromString(char *config) {
    char *err = NULL;
    int linenum = 0, totlines, i;
    sds *lines;

    lines = sdssplitlen(config,strlen(config),"\n",1,&totlines);

    for (i = 0; i < totlines; i++) {
        sds *argv;
        int argc;

        linenum = i+1;
        lines[i] = sdstrim(lines[i]," \t\r\n");

        /* Skip comments and blank lines */
        if (lines[i][0] == '#' || lines[i][0] == '\0') continue;

        /* Split into arguments */
        argv = sdssplitargs(lines[i],&argc);
        if (argv == NULL) {
            err = "Unbalanced quotes in configuration line";
            goto loaderr;
        }

        /* Skip this line if the resulting command vector is empty. */
        if (argc == 0) {
            sdsfreesplitres(argv,argc);
            continue;
        }
        sdstolower(argv[0]);

        /* Execute config directives */
        if (!strcasecmp(argv[0],"timeout") && argc == 2) {
            server.maxidletime = atoi(argv[1]);
            if (server.maxidletime < 0) {
                err = "Invalid timeout value"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"tcp-keepalive") && argc == 2) {
            server.tcpkeepalive = atoi(argv[1]);
            if (server.tcpkeepalive < 0) {
                err = "Invalid tcp-keepalive value"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"port") && argc == 2) {
            server.port = atoi(argv[1]);
            if (server.port < 0 || server.port > 65535) {
                err = "Invalid port"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"tcp-backlog") && argc == 2) {
            server.tcp_backlog = atoi(argv[1]);
            if (server.tcp_backlog < 0) {
                err = "Invalid backlog value"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"bind") && argc >= 2) {
            int j, addresses = argc-1;

            if (addresses > CONFIG_BINDADDR_MAX) {
                err = "Too many bind addresses specified"; goto loaderr;
            }
            for (j = 0; j < addresses; j++)
                server.bindaddr[j] = zstrdup(argv[j+1]);
            server.bindaddr_count = addresses;
        } else if (!strcasecmp(argv[0],"unixsocket") && argc == 2) {
            server.unixsocket = zstrdup(argv[1]);
        } else if (!strcasecmp(argv[0],"unixsocketperm") && argc == 2) {
            errno = 0;
            server.unixsocketperm = (mode_t)strtol(argv[1], NULL, 8);
            if (errno || server.unixsocketperm > 0777) {
                err = "Invalid socket file permissions"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"save")) {
            if (argc == 3) {
                int seconds = atoi(argv[1]);
                int changes = atoi(argv[2]);
                if (seconds < 1 || changes < 0) {
                    err = "Invalid save parameters"; goto loaderr;
                }
                appendServerSaveParams(seconds,changes);
            } else if (argc == 2 && !strcasecmp(argv[1],"")) {
                resetServerSaveParams();
            }
        } else if (!strcasecmp(argv[0],"dir") && argc == 2) {
            if (chdir(argv[1]) == -1) {
                serverLog(LL_WARNING,"Can't chdir to '%s': %s",
                    argv[1], strerror(errno));
                exit(1);
            }
        } else if (!strcasecmp(argv[0],"loglevel") && argc == 2) {
            server.verbosity = configEnumGetValue(loglevel_enum,argv[1]);
            if (server.verbosity == INT_MIN) {
                err = "Invalid log level. "
                      "Must be one of debug, verbose, notice, warning";
                goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"logfile") && argc == 2) {
            FILE *logfp;

            zfree(server.logfile);
            server.logfile = zstrdup(argv[1]);
            if (server.logfile[0] != '\0') {
                /* Test if we are able to open the file. The server will not
                 * be able to abort just for this problem later... */
                logfp = fopen(server.logfile,"a");
                if (logfp == NULL) {
                    err = sdscatprintf(sdsempty(),
                        "Can't open the log file: %s", strerror(errno));
                    goto loaderr;
                }
                fclose(logfp);
            }
        } else if (!strcasecmp(argv[0],"syslog-enabled") && argc == 2) {
            if ((server.syslog_enabled = yesnotoi(argv[1])) == -1) {
                err = "argument must be 'yes' or 'no'"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"syslog-ident") && argc == 2) {
            if (server.syslog_ident) zfree(server.syslog_ident);
            server.syslog_ident = zstrdup(argv[1]);
        } else if (!strcasecmp(argv[0],"syslog-facility") && argc == 2) {
            server.syslog_facility =
                configEnumGetValue(syslog_facility_enum,argv[1]);
            if (server.syslog_facility == INT_MIN) {
                err = "Invalid log facility. Must be one of USER or between LOCAL0-LOCAL7";
                goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"include") && argc == 2) {
            loadServerConfig(argv[1],NULL);
        } else if (!strcasecmp(argv[0],"maxclients") && argc == 2) {
            server.maxclients = atoi(argv[1]);
            if (server.maxclients < 1) {
                err = "Invalid max clients limit"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"maxmemory") && argc == 2) {
            server.maxmemory = memtoll(argv[1],NULL);
        } else if (!strcasecmp(argv[0],"default-precision") && argc == 2) {
            server.default_precision = strtod(argv[1], NULL);
            if (server.default_precision < 0) {
                err = "Invalid default precision"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"history-size") && argc == 2) {
            server.history_size = atoi(argv[1]);
            if (server.history_size < 1) {
                err = "Invalid history"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"ddbchecksum") && argc == 2) {
            if ((server.ddb_checksum = yesnotoi(argv[1])) == -1) {
                err = "argument must be 'yes' or 'no'"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"activerehashing") && argc == 2) {
            if ((server.activerehashing = yesnotoi(argv[1])) == -1) {
                err = "argument must be 'yes' or 'no'"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"daemonize") && argc == 2) {
            if ((server.daemonize = yesnotoi(argv[1])) == -1) {
                err = "argument must be 'yes' or 'no'"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"hz") && argc == 2) {
            server.hz = atoi(argv[1]);
            if (server.hz < CONFIG_MIN_HZ) server.hz = CONFIG_MIN_HZ;
            if (server.hz > CONFIG_MAX_HZ) server.hz = CONFIG_MAX_HZ;
        } else if (!strcasecmp(argv[0],"requirepass") && argc == 2) {
            if (strlen(argv[1]) > CONFIG_AUTHPASS_MAX_LEN) {
                err = "Password is longer than CONFIG_AUTHPASS_MAX_LEN";
                goto loaderr;
            }
            server.requirepass = zstrdup(argv[1]);
        } else if (!strcasecmp(argv[0],"pidfile") && argc == 2) {
            zfree(server.pidfile);
            server.pidfile = zstrdup(argv[1]);
        } else if (!strcasecmp(argv[0],"dbfilename") && argc == 2) {
            if (!pathIsBaseName(argv[1])) {
                err = "dbfilename can't be a path, just a filename";
                goto loaderr;
            }
            zfree(server.ddb_filename);
            server.ddb_filename = zstrdup(argv[1]);
        } else if (!strcasecmp(argv[0],"rename-command") && argc == 3) {
            struct serverCommand *cmd = lookupCommand(argv[1]);
            int retval;

            if (!cmd) {
                err = "No such command in rename-command";
                goto loaderr;
            }

            /* If the target command name is the empty string we just
             * remove it from the command table. */
            retval = dictDelete(server.commands, argv[1]);
            serverAssert(retval == DICT_OK);

            /* Otherwise we re-add the command under a different name. */
            if (sdslen(argv[2]) != 0) {
                sds copy = sdsdup(argv[2]);

                retval = dictAdd(server.commands, copy, cmd);
                if (retval != DICT_OK) {
                    sdsfree(copy);
                    err = "Target command name already exists"; goto loaderr;
                }
            }
        } else if (!strcasecmp(argv[0],"cluster-config-file") && argc == 2) {
            zfree(server.cluster_configfile);
            server.cluster_configfile = zstrdup(argv[1]);
        } else if (!strcasecmp(argv[0],"cluster-node-timeout") && argc == 2) {
            server.cluster_node_timeout = strtoll(argv[1],NULL,10);
            if (server.cluster_node_timeout <= 0) {
                err = "cluster node timeout must be 1 or greater"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"latency-monitor-threshold") &&
                   argc == 2)
        {
            server.latency_monitor_threshold = strtoll(argv[1],NULL,10);
            if (server.latency_monitor_threshold < 0) {
                err = "The latency threshold can't be negative";
                goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"client-output-buffer-limit") &&
                   argc == 5)
        {
            int class = getClientTypeByName(argv[1]);
            unsigned long long hard, soft;
            int soft_seconds;

            if (class == -1) {
                err = "Unrecognized client limit class";
                goto loaderr;
            }
            hard = memtoll(argv[2],NULL);
            soft = memtoll(argv[3],NULL);
            soft_seconds = atoi(argv[4]);
            if (soft_seconds < 0) {
                err = "Negative number of seconds in soft limit is invalid";
                goto loaderr;
            }
            server.client_obuf_limits[class].hard_limit_bytes = hard;
            server.client_obuf_limits[class].soft_limit_bytes = soft;
            server.client_obuf_limits[class].soft_limit_seconds = soft_seconds;
        } else if (!strcasecmp(argv[0],"stop-writes-on-bgsave-error") &&
                   argc == 2) {
            if ((server.stop_writes_on_bgsave_err = yesnotoi(argv[1])) == -1) {
                err = "argument must be 'yes' or 'no'"; goto loaderr;
            }
        } else if (!strcasecmp(argv[0],"supervised") && argc == 2) {
            server.supervised_mode =
                configEnumGetValue(supervised_mode_enum,argv[1]);

            if (server.supervised_mode == INT_MIN) {
                err = "Invalid option for 'supervised'. "
                    "Allowed values: 'upstart', 'systemd', 'auto', or 'no'";
                goto loaderr;
            }
        } else {
            err = "Bad directive or wrong number of arguments"; goto loaderr;
        }
        sdsfreesplitres(argv,argc);
    }

    sdsfreesplitres(lines,totlines);
    return;

loaderr:
    fprintf(stderr, "\n*** FATAL CONFIG FILE ERROR ***\n");
    fprintf(stderr, "Reading the configuration file, at line %d\n", linenum);
    fprintf(stderr, ">>> '%s'\n", lines[i]);
    fprintf(stderr, "%s\n", err);
    exit(1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
callq 0x12250
leaq 0x2d3f7(%rip), %rdx     # 0x53d88
leaq 0x2c(%rsp), %r14
movq %rbx, %rdi
movl %eax, %esi
movl $0x1, %ecx
movq %r14, %r8
callq 0x1f5eb
movq %rax, %rbx
movl (%r14), %esi
testl %esi, %esi
jle 0x275c6
xorl %r14d, %r14d
leaq 0x2ebe9(%rip), %rbp     # 0x555a9
xorl %r13d, %r13d
movq (%rbx,%r14,8), %rdi
movq %rbp, %rsi
callq 0x1f248
movq %rax, (%rbx,%r14,8)
movzbl (%rax), %ecx
movl $0x4, %r15d
testl %ecx, %ecx
je 0x26acd
cmpl $0x23, %ecx
je 0x26acd
movq %rax, %rdi
leaq 0x1c(%rsp), %rsi
callq 0x1f99c
movl $0x5, %r15d
testq %rax, %rax
je 0x26a5e
movq %rax, %r12
cmpl $0x0, 0x1c(%rsp)
je 0x26a67
movq (%r12), %rdi
callq 0x1f453
movq (%r12), %rdi
movq %rdi, 0x8(%rsp)
leaq 0x2ef49(%rip), %rsi     # 0x55971
callq 0x12090
movl 0x1c(%rsp), %ecx
movl %ecx, %ebp
xorl $0x2, %ebp
orl %ebp, %eax
movq %r12, (%rsp)
jne 0x26a71
movq 0x8(%r12), %rdi
callq 0x12830
leaq 0x48639(%rip), %rcx     # 0x6f088
movl %eax, 0x59c(%rcx)
leaq 0x2eb7a(%rip), %rcx     # 0x555d6
jmp 0x26aaf
leaq 0x2eb49(%rip), %rcx     # 0x555ae
jmp 0x26ad0
movl $0x4, %r15d
xorl %esi, %esi
jmp 0x26ac5
movq %rcx, 0x10(%rsp)
movq 0x8(%rsp), %r12
movq %r12, %rdi
leaq 0x2eb67(%rip), %rsi     # 0x555ec
callq 0x12090
orl %ebp, %eax
jne 0x26afc
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x12830
leaq 0x485e6(%rip), %rcx     # 0x6f088
movl %eax, 0x5a0(%rcx)
leaq 0x2eb4b(%rip), %rcx     # 0x555fa
testl %eax, %eax
leaq 0x2eaf1(%rip), %rbp     # 0x555a9
js 0x26ad0
xorl %r15d, %r15d
movl 0x1c(%rsp), %esi
movq (%rsp), %r12
movq %r12, %rdi
callq 0x1f796
movq %r13, %rcx
leaq 0x1(%r14), %rdi
testl %r15d, %r15d
je 0x26ae3
cmpl $0x4, %r15d
jne 0x275d0
movslq 0x2c(%rsp), %rsi
movq %rdi, %r14
movq %rcx, %r13
cmpq %rsi, %rdi
jl 0x269c3
jmp 0x275c6
movq %r12, %rdi
leaq 0x2eb18(%rip), %rsi     # 0x5561e
callq 0x12090
orl %ebp, %eax
jne 0x26b44
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x12830
leaq 0x48565(%rip), %rcx     # 0x6f088
movl %eax, 0xb4(%rcx)
leaq 0x2eae6(%rip), %rcx     # 0x55616
cmpl $0xffff, %eax           # imm = 0xFFFF
leaq 0x2ea6d(%rip), %rbp     # 0x555a9
jbe 0x26aba
jmp 0x26ad0
movq %r12, %rdi
leaq 0x2ead5(%rip), %rsi     # 0x55623
callq 0x12090
orl %ebp, %eax
jne 0x26b7d
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x12830
leaq 0x4851d(%rip), %rcx     # 0x6f088
movl %eax, 0xb8(%rcx)
leaq 0x2eab7(%rip), %rcx     # 0x5562f
jmp 0x26aaf
movq %r12, %rdi
leaq 0x2eabe(%rip), %rsi     # 0x55645
callq 0x12090
testl %eax, %eax
sete %al
movq 0x10(%rsp), %rdx
cmpl $0x2, %edx
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x26c35
movl $0x5, %r15d
leaq 0x2ea96(%rip), %rcx     # 0x5564a
cmpl $0x11, %edx
jg 0x26c1d
movq %rbx, 0x30(%rsp)
leal -0x1(%rdx), %eax
movl %eax, 0x20(%rsp)
cmpl $0x2, %edx
leaq 0x484b9(%rip), %r15     # 0x6f088
movq (%rsp), %rbx
jl 0x26c02
movl 0x20(%rsp), %edx
movq %rdx, 0x8(%rsp)
xorl %r12d, %r12d
leaq 0x1(%r12), %rbp
movq 0x8(%rbx,%r12,8), %rdi
callq 0x20041
movq %rax, 0xc0(%r15,%r12,8)
movq %rbp, %r12
cmpq %rbp, 0x8(%rsp)
jne 0x26be1
movl 0x20(%rsp), %eax
movl %eax, 0x140(%r15)
xorl %r15d, %r15d
movq %r13, %rcx
movq 0x10(%rsp), %rdx
movq 0x30(%rsp), %rbx
movq %rcx, %r13
cmpl $0x12, %edx
leaq 0x2e97f(%rip), %rbp     # 0x555a9
jl 0x26aba
jmp 0x26ad0
movq %r12, %rdi
leaq 0x2b4b0(%rip), %rsi     # 0x520ef
callq 0x12090
orl %ebp, %eax
jne 0x26c6f
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x20041
leaq 0x4842c(%rip), %rcx     # 0x6f088
movq %rax, 0x148(%rcx)
leaq 0x2e93f(%rip), %rbp     # 0x555a9
jmp 0x26aba
movq %r12, %rdi
leaq 0x2e9f3(%rip), %rsi     # 0x5566c
callq 0x12090
orl %ebp, %eax
jne 0x26cda
callq 0x120d0
movq %rax, %r12
movl $0x0, (%rax)
movq (%rsp), %rax
movq 0x8(%rax), %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x12510
leaq 0x483dd(%rip), %rcx     # 0x6f088
movl %eax, 0x150(%rcx)
cmpl $0x0, (%r12)
leaq 0x2e8ec(%rip), %rbp     # 0x555a9
leaq 0x2e9b7(%rip), %rcx     # 0x5567b
jne 0x26ad0
cmpl $0x1ff, %eax            # imm = 0x1FF
jbe 0x26aba
jmp 0x26ad0
movq %r12, %rdi
leaq 0x31eb9(%rip), %rsi     # 0x58b9d
callq 0x12090
testl %eax, %eax
je 0x26d26
movq %r12, %rdi
leaq 0x2e9bc(%rip), %rsi     # 0x556b3
callq 0x12090
orl %ebp, %eax
jne 0x26d8a
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x12270
cmpl $-0x1, %eax
leaq 0x2e88e(%rip), %rbp     # 0x555a9
jne 0x26aba
jmp 0x275f0
movq 0x10(%rsp), %rax
cmpl $0x3, %eax
jne 0x26ddd
movq (%rsp), %r15
movq 0x8(%r15), %rdi
callq 0x12830
movl %eax, %r12d
movq 0x10(%r15), %rdi
callq 0x12830
testl %r12d, %r12d
setg %cl
testl %eax, %eax
setns %bpl
andb %cl, %bpl
movl $0x5, %r15d
leaq 0x2e932(%rip), %rcx     # 0x5569b
cmpb $0x1, %bpl
jne 0x26d7f
movl %r12d, %edi
movl %eax, %esi
callq 0x268f3
xorl %r15d, %r15d
movq %r13, %rcx
movq %rcx, %r13
testb %bpl, %bpl
jmp 0x26fa7
movq %r12, %rdi
leaq 0x2e93b(%rip), %rsi     # 0x556cf
callq 0x12090
orl %ebp, %eax
jne 0x26e37
movq (%rsp), %rax
movq 0x8(%rax), %rsi
leaq 0x48100(%rip), %rdi     # 0x6eeb0
callq 0x2681c
leaq 0x482cc(%rip), %rcx     # 0x6f088
movl %eax, 0x598(%rcx)
negl %eax
leaq 0x2e90d(%rip), %rcx     # 0x556d8
leaq 0x2e7d7(%rip), %rbp     # 0x555a9
jno 0x26aba
jmp 0x26ad0
cmpl $0x2, %eax
jne 0x26c63
movq (%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x2e410(%rip), %rsi     # 0x55205
callq 0x12090
testl %eax, %eax
leaq 0x2e7a6(%rip), %rbp     # 0x555a9
jne 0x26aba
leaq 0x48278(%rip), %r15     # 0x6f088
movq 0x6b8(%r15), %rdi
callq 0x1ffff
movq $0x0, 0x6b8(%r15)
movl $0x0, 0x6c0(%r15)
jmp 0x26aba
movq %r12, %rdi
leaq 0x2e8d9(%rip), %rsi     # 0x5571a
callq 0x12090
orl %ebp, %eax
jne 0x26ea5
leaq 0x48237(%rip), %r15     # 0x6f088
movq 0x5f0(%r15), %rdi
callq 0x1ffff
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x20041
movq %rax, 0x5f0(%r15)
xorl %r15d, %r15d
movb $0x1, %bpl
cmpb $0x0, (%rax)
je 0x26fa1
movq %rax, %rdi
leaq 0x2d971(%rip), %rsi     # 0x547fb
callq 0x12500
testq %rax, %rax
je 0x26f6e
movq %rax, %rdi
callq 0x12220
jmp 0x26fa1
movq %r12, %rdi
leaq 0x2e88f(%rip), %rsi     # 0x5573e
callq 0x12090
orl %ebp, %eax
jne 0x26ee1
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x268bf
leaq 0x481bc(%rip), %rcx     # 0x6f088
movl %eax, 0x5f8(%rcx)
leaq 0x2e874(%rip), %rcx     # 0x5574d
cmpl $-0x1, %eax
jmp 0x26fa7
movq %r12, %rdi
leaq 0x2e881(%rip), %rsi     # 0x5576c
callq 0x12090
orl %ebp, %eax
jne 0x26f2c
leaq 0x4818d(%rip), %r15     # 0x6f088
movq 0x600(%r15), %rdi
testq %rdi, %rdi
leaq 0x2e69d(%rip), %rbp     # 0x555a9
je 0x26f13
callq 0x1ffff
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x20041
movq %rax, 0x600(%r15)
jmp 0x26aba
movq %r12, %rdi
leaq 0x2e843(%rip), %rsi     # 0x55779
callq 0x12090
orl %ebp, %eax
jne 0x26fb9
movq (%rsp), %rax
movq 0x8(%rax), %rsi
leaq 0x47ec2(%rip), %rdi     # 0x6ee10
callq 0x2681c
leaq 0x4812e(%rip), %rcx     # 0x6f088
movl %eax, 0x608(%rcx)
negl %eax
leaq 0x2e820(%rip), %rcx     # 0x55789
jmp 0x26dcb
callq 0x1de3f
movq %rax, %r12
callq 0x120d0
movl (%rax), %edi
callq 0x128f0
xorl %ebp, %ebp
movq %r12, %rdi
leaq 0x2e794(%rip), %rsi     # 0x55722
movq %rax, %rdx
xorl %eax, %eax
callq 0x1eace
movq %rax, %r13
movl $0x5, %r15d
movq %r13, %rcx
testb %bpl, %bpl
leaq 0x2e5fb(%rip), %rbp     # 0x555a9
jne 0x26aba
jmp 0x26ad0
movq %r12, %rdi
leaq 0x2e809(%rip), %rsi     # 0x557cc
callq 0x12090
orl %ebp, %eax
jne 0x26fe0
movq (%rsp), %rax
movq 0x8(%rax), %rdi
xorl %esi, %esi
callq 0x27649
jmp 0x26c63
movq %r12, %rdi
leaq 0x2e7ea(%rip), %rsi     # 0x557d4
callq 0x12090
orl %ebp, %eax
jne 0x27018
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x12830
leaq 0x48081(%rip), %rcx     # 0x6f088
movl %eax, 0x60c(%rcx)
leaq 0x2e7cb(%rip), %rcx     # 0x557df
testl %eax, %eax
jmp 0x26fa7
movq 0x8(%rsp), %rdi
leaq 0x2e7d5(%rip), %rsi     # 0x557f9
callq 0x12090
orl %ebp, %eax
jne 0x2704f
movq (%rsp), %rax
movq 0x8(%rax), %rdi
xorl %esi, %esi
callq 0x250be
leaq 0x48045(%rip), %rcx     # 0x6f088
movq %rax, 0x610(%rcx)
jmp 0x26c63
movq 0x8(%rsp), %rdi
leaq 0x2e7a8(%rip), %rsi     # 0x55803
callq 0x12090
orl %ebp, %eax
jne 0x27096
movq (%rsp), %rax
movq 0x8(%rax), %rdi
xorl %esi, %esi
callq 0x12190
leaq 0x4800e(%rip), %rax     # 0x6f088
movsd %xmm0, 0x620(%rax)
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
leaq 0x2e784(%rip), %rcx     # 0x55815
jmp 0x26b35
movq 0x8(%rsp), %rdi
leaq 0x2e78d(%rip), %rsi     # 0x5582f
callq 0x12090
orl %ebp, %eax
jne 0x270d1
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x12830
leaq 0x47fc9(%rip), %rcx     # 0x6f088
movl %eax, 0x628(%rcx)
leaq 0x2e770(%rip), %rcx     # 0x5583c
jmp 0x27014
movq 0x8(%rsp), %rdi
leaq 0x2e76f(%rip), %rsi     # 0x5584c
callq 0x12090
orl %ebp, %eax
jne 0x27105
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x268bf
leaq 0x47f8e(%rip), %rcx     # 0x6f088
movl %eax, 0x6d4(%rcx)
jmp 0x26ed2
movq 0x8(%rsp), %rdi
leaq 0x2e747(%rip), %rsi     # 0x55858
callq 0x12090
orl %ebp, %eax
jne 0x27136
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x268bf
leaq 0x47f5a(%rip), %rcx     # 0x6f088
movl %eax, 0x44(%rcx)
jmp 0x26ed2
movq 0x8(%rsp), %rdi
leaq 0x2e726(%rip), %rsi     # 0x55868
callq 0x12090
orl %ebp, %eax
jne 0x2716a
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x268bf
leaq 0x47f29(%rip), %rcx     # 0x6f088
movl %eax, 0x5b8(%rcx)
jmp 0x26ed2
movq 0x8(%rsp), %rdi
leaq 0x2e6fc(%rip), %rsi     # 0x55872
callq 0x12090
orl %ebp, %eax
jne 0x271b0
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x12830
cmpl $0x2, %eax
movl $0x1, %ecx
cmovll %ecx, %eax
movl $0x1f4, %ecx            # imm = 0x1F4
cmpl %ecx, %eax
cmovgel %ecx, %eax
leaq 0x47ee0(%rip), %rcx     # 0x6f088
movl %eax, 0x20(%rcx)
jmp 0x26c63
movq 0x8(%rsp), %rdi
leaq 0x2e6b9(%rip), %rsi     # 0x55875
callq 0x12090
orl %ebp, %eax
jne 0x27207
movq (%rsp), %rax
movq 0x8(%rax), %r12
movq %r12, %rdi
callq 0x12250
leaq 0x2e6a5(%rip), %rcx     # 0x55881
cmpq $0x200, %rax            # imm = 0x200
leaq 0x2e3c0(%rip), %rbp     # 0x555a9
ja 0x26ad0
movq %r12, %rdi
callq 0x20041
leaq 0x47e8a(%rip), %rcx     # 0x6f088
movq %rax, 0x48(%rcx)
jmp 0x26aba
movq 0x8(%rsp), %rdi
leaq 0x2e69e(%rip), %rsi     # 0x558b1
callq 0x12090
orl %ebp, %eax
jne 0x27242
leaq 0x47e65(%rip), %r15     # 0x6f088
movq 0x50(%r15), %rdi
callq 0x1ffff
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x20041
movq %rax, 0x50(%r15)
jmp 0x26c63
movq 0x8(%rsp), %rdi
leaq 0x2e66b(%rip), %rsi     # 0x558b9
callq 0x12090
orl %ebp, %eax
jne 0x272a6
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x259fa
leaq 0x2e659(%rip), %rcx     # 0x558c4
testl %eax, %eax
leaq 0x2e335(%rip), %rbp     # 0x555a9
je 0x26ad0
leaq 0x47e07(%rip), %r15     # 0x6f088
movq 0x6c8(%r15), %rdi
callq 0x1ffff
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x20041
movq %rax, 0x6c8(%r15)
jmp 0x26aba
movq 0x8(%rsp), %rdi
leaq 0x2e651(%rip), %rsi     # 0x55903
callq 0x12090
movq 0x10(%rsp), %rcx
xorl $0x3, %ecx
orl %eax, %ecx
jne 0x27368
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x1bf9b
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x273fc
leaq 0x47d9f(%rip), %rax     # 0x6f088
movq 0x28(%rax), %rdi
movq (%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x18e09
testl %eax, %eax
jne 0x27627
movq (%rsp), %rax
movq 0x10(%rax), %r12
movq %r12, %rdi
callq 0x27757
xorl %r15d, %r15d
movb $0x1, %bpl
testq %rax, %rax
je 0x26fa1
movq %r12, %rdi
callq 0x1de83
movq %rax, %r12
leaq 0x47d55(%rip), %rax     # 0x6f088
movq 0x28(%rax), %rdi
movq %r12, %rsi
movq 0x8(%rsp), %rdx
callq 0x18b97
testl %eax, %eax
je 0x26fa1
movq %r12, %rdi
callq 0x1ded3
xorl %ebp, %ebp
movl $0x5, %r15d
leaq 0x2e5ca(%rip), %r13     # 0x5592d
jmp 0x26fa1
movq 0x8(%rsp), %rdi
leaq 0x2e5dc(%rip), %rsi     # 0x55950
callq 0x12090
orl %ebp, %eax
jne 0x273a9
leaq 0x47d04(%rip), %r15     # 0x6f088
movq 0x660(%r15), %rdi
callq 0x1ffff
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x20041
movq %rax, 0x660(%r15)
jmp 0x26c63
movq 0x8(%rsp), %rdi
leaq 0x2e5af(%rip), %rsi     # 0x55964
callq 0x12090
orl %ebp, %eax
jne 0x27410
movq (%rsp), %rax
movq 0x8(%rax), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x124c0
leaq 0x47caf(%rip), %rcx     # 0x6f088
movq %rax, 0x658(%rcx)
leaq 0x2e592(%rip), %rcx     # 0x55979
testq %rax, %rax
leaq 0x2e1b8(%rip), %rbp     # 0x555a9
jg 0x26aba
jmp 0x26ad0
xorl %ebp, %ebp
movl $0x5, %r15d
leaq 0x2e4e5(%rip), %r13     # 0x558f0
jmp 0x26fa1
movq 0x8(%rsp), %rdi
leaq 0x2e587(%rip), %rsi     # 0x559a3
callq 0x12090
orl %ebp, %eax
jne 0x27456
movq (%rsp), %rax
movq 0x8(%rax), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x124c0
leaq 0x47c48(%rip), %rcx     # 0x6f088
movq %rax, 0x670(%rcx)
leaq 0x2e56f(%rip), %rcx     # 0x559bd
testq %rax, %rax
jmp 0x26ab1
movq 0x8(%rsp), %rdi
leaq 0x2e583(%rip), %rsi     # 0x559e5
callq 0x12090
movq 0x10(%rsp), %rcx
xorl $0x5, %ecx
orl %eax, %ecx
jne 0x27515
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x24a36
movl $0x5, %r15d
cmpl $-0x1, %eax
je 0x2758d
movl %eax, %r12d
movq (%rsp), %rbp
movq 0x10(%rbp), %rdi
movq $0x0, 0x8(%rsp)
xorl %esi, %esi
callq 0x250be
movq %rax, 0x10(%rsp)
movq 0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x250be
movq %rax, 0x20(%rsp)
movq 0x20(%rbp), %rdi
callq 0x12830
testl %eax, %eax
js 0x275b2
movslq %r12d, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x47ba6(%rip), %rdx     # 0x6f088
movq 0x10(%rsp), %rsi
movq %rsi, 0x5c0(%rdx,%rcx,8)
movq 0x20(%rsp), %rsi
movq %rsi, 0x5c8(%rdx,%rcx,8)
movl %eax, %eax
movq %rax, 0x5d0(%rdx,%rcx,8)
movb $0x1, %al
movq %rax, 0x8(%rsp)
xorl %r15d, %r15d
jmp 0x275b9
movq 0x8(%rsp), %rdi
leaq 0x2e533(%rip), %rsi     # 0x55a54
callq 0x12090
orl %ebp, %eax
jne 0x27549
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x268bf
leaq 0x47b4a(%rip), %rcx     # 0x6f088
movl %eax, 0x700(%rcx)
jmp 0x26ed2
movq 0x8(%rsp), %rdi
leaq 0x2e51b(%rip), %rsi     # 0x55a70
callq 0x12090
orl %ebp, %eax
jne 0x2759f
movq (%rsp), %rax
movq 0x8(%rax), %rsi
leaq 0x47993(%rip), %rdi     # 0x6ef00
callq 0x2681c
leaq 0x47b0f(%rip), %rcx     # 0x6f088
movl %eax, 0x5b4(%rcx)
negl %eax
leaq 0x2e4f3(%rip), %rcx     # 0x55a7b
jmp 0x26dcb
movq $0x0, 0x8(%rsp)
leaq 0x2e463(%rip), %r13     # 0x55a00
jmp 0x275b9
leaq 0x2e52c(%rip), %rcx     # 0x55ad2
leaq 0x2dffc(%rip), %rbp     # 0x555a9
jmp 0x26ad0
leaq 0x2e467(%rip), %r13     # 0x55a20
movq %r13, %rcx
cmpb $0x0, 0x8(%rsp)
jmp 0x26fa7
movq %rbx, %rdi
callq 0x1f796
jmp 0x275d6
cmpl $0x5, %r15d
je 0x275e5
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rsi
movq %r14, %rdx
callq 0x12a50
movq (%rsp), %rax
movq 0x8(%rax), %rbx
callq 0x120d0
movl (%rax), %edi
callq 0x128f0
leaq 0x2e0ac(%rip), %rsi     # 0x556b7
movl $0x3, %edi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x19fb1
movl $0x1, %edi
callq 0x12870
leaq 0x2e2e4(%rip), %rdi     # 0x55912
leaq 0x2e2ef(%rip), %rsi     # 0x55924
movl $0x140, %edx            # imm = 0x140
callq 0x2a9ff
movl $0x1, %edi
callq 0x12120