// File: /workspace/github_cpp_makefile_star2_O1/readmapping[P]alfalfa/src/options.cpp
// Function: processParameters(int, char**, mapOptions_t&)
void processParameters(int argc, char* argv[], mapOptions_t& opt) {
    //parse command
    if (strcmp(argv[1], "index") == 0) {
        opt.command = INDEX;
        opt.saveIndex = true;
    } else if (strcmp(argv[1], "align") == 0) {
        opt.command = ALN;
    } else {
        fprintf(stderr, "[main] unrecognized command '%s'\n", argv[0]);
        option::printUsage(std::cerr, basicUsage);
    }

    cerr << "parsing options: ..." << endl;
    argc -= 2;
    argv++;
    argv++;
    option::Stats stats(fullUsage, argc, argv);
    //misc option parsing
    option::Option* options = new option::Option[stats.options_max];
    option::Option* buffer = new option::Option[stats.buffer_max];
    option::Parser parser(fullUsage, argc, argv, options, buffer);
    if (parser.error()) {
        cerr << "error during parsing of command line options" << endl;
        exit(1);
    }
    if (options[ARG_HELP]) {
        if (opt.command == INDEX) {
            option::printUsage(std::cerr, indexUsage);
        } else {
            option::printUsage(std::cerr, alignUsage);
        }
        option::printUsage(std::cerr, miscUsage);
        exit(0);
    }
    if (options[ARG_VERBOSE])
        opt.alnOptions.print = atoi(options[ARG_VERBOSE].arg);
    if (options[ARG_DEBUG])
        opt.alnOptions.debugFile = fopen(options[ARG_DEBUG].arg, "w");
    //index parsing options
    if(options[ARG_UNKNOWN] || parser.nonOptionsCount() > 0){
        cerr << "encountered illegal options:" << endl;
        for (option::Option* opt = options[ARG_UNKNOWN]; opt; opt = opt->next())
            std::cerr << "Unknown option: " << opt->name << "\n";
        for (int i = 0; i < parser.nonOptionsCount(); ++i)
            std::cerr << "Non-option #" << i << ": " << parser.nonOption(i) << "\n";
        cerr << "terminating ..." << endl;
        exit(1);
    }
    //index parsing options
    for (int i = 0; i < parser.optionsCount(); ++i) {
        option::Option& option = buffer[i];
        switch (option.index()) {
            case ARG_REFERENCE: opt.ref_fasta = option.arg;
                break;
            case ARG_SPARSENESS: opt.K = atoi(option.arg);
                break;
            case ARG_PREFIX: opt.index_prefix = option.arg;
                break;
            case ARG_NO_CHILD: opt.hasChild = false;
                break;
            case ARG_SUFLINK: opt.hasSuflink = true;
                break;
            case ARG_NO_KMER: opt.hasKmer = false;
                break;
            default: break;
                throw 1;
        }
    }
    //check needed options and correctness
    if (opt.command == INDEX && !options[ARG_REFERENCE]) {
        cerr << "ERROR: no reference file given." << endl;
        exit(1);
    }
    if (opt.command == INDEX) {
        if (opt.index_prefix.empty()) {
            opt.index_prefix = opt.ref_fasta;
        }
        if (opt.hasChild && opt.hasSuflink)
            fprintf(stderr, "WARNING: having both child array and suffix link support is marginally useful and requires more memory! \n");
        if (!opt.hasChild && opt.K >= 3)
            fprintf(stderr, "WARNING: no child array means much slower search times! \n");
    }
    if (opt.command == ALN && !(options[ARG_REFERENCE] || options[ARG_INDEX])) {
        cerr << "ERROR: no reference or index name given." << endl;
        exit(1);
    }
    //mapping options parsing
    if (opt.command == ALN) {
        for (int i = 0; i < parser.optionsCount(); ++i) {
            option::Option& option = buffer[i];
            switch (option.index()) {
                case ARG_INDEX: opt.indexLocation = option.arg;
                    break;
                case ARG_SAVE: opt.saveIndex = true;
                    break;
                case ARG_SINGLE: opt.unpairedQ = option.arg;
                    break;
                case ARG_MATES1: opt.pair1 = option.arg;
                    break;
                case ARG_MATES2: opt.pair2 = option.arg;
                    break;
                case ARG_OUTPUT: opt.outputName = option.arg;
                    break;
                case ARG_ALIGNMENTS: opt.alnOptions.alignmentCount = atoi(option.arg);
                    break;
                case ARG_NO_FORWARD: opt.alnOptions.noFW = 1;
                    break;
                case ARG_NO_REVERSE: opt.alnOptions.noRC = 1;
                    break;
                case ARG_EDIT_DISTANCE: opt.alnOptions.errorPercent = atof(option.arg) + 0.01;
                    break;
                case ARG_THREADS: opt.query_threads = atoi(option.arg);
                    break;
                case ARG_SEED: opt.alnOptions.memType = parseSeedType(option.arg);
                    break;
                case ARG_MIN_LENGTH: opt.alnOptions.minMemLength = atoi(option.arg);
                    opt.alnOptions.fixedMinLength = true;
                    break;
                case ARG_MAX_SEEDS: opt.alnOptions.maxSeedCandidates = atoi(option.arg);
                    break;
                case ARG_MAX_SMEM: opt.alnOptions.maxSmemMemStart = atoi(option.arg);
                    break;
                case ARG_MAX_MEM: opt.alnOptions.maxRegionMems = atoi(option.arg);
                    break;
                case ARG_MIN_MEML: opt.alnOptions.minMemRegLength = atoi(option.arg);
                    break;
                case ARG_NO_RESCUE: opt.alnOptions.rescue = false;
                    break;
                case ARG_NO_SPARSEQ: opt.alnOptions.noSparseQ = true;
                    break;
                case ARG_FULLDP: opt.alnOptions.fullDP = true;
                    break;
                case ARG_MAX_FAILURES: opt.alnOptions.maxTrial = atoi(option.arg);
                    break;
                case ARG_MAX_F_BEST: opt.alnOptions.maxTrialBest = false;
                    break;
                case ARG_MIN_ALIGN: opt.alnOptions.minTrial = atoi(option.arg);
                    break;
                case ARG_MIN_COVERAGE: opt.alnOptions.minCoverage = atof(option.arg);
                    break;
                case ARG_ALWAYS_UNIQUE: opt.alnOptions.alwaysUnique = false;
                    break;
                case ARG_LOCAL: opt.alnOptions.global = false;
                    break;
                case ARG_BANDWIDTH: opt.alnOptions.fixedBandSize = atoi(option.arg);
                    break;
                case ARG_MATCH: opt.alnOptions.match = atoi(option.arg);
                    opt.alnOptions.scoresSetByUser = true;
                    break;
                case ARG_MISMATCH: opt.alnOptions.mismatch = atoi(option.arg);
                    opt.alnOptions.scoresSetByUser = true;
                    break;
                case ARG_GAP_OPEN: opt.alnOptions.openGap = atoi(option.arg);
                    opt.alnOptions.scoresSetByUser = true;
                    break;
                case ARG_GAP_EXTEND: opt.alnOptions.extendGap = atoi(option.arg);
                    opt.alnOptions.scoresSetByUser = true;
                    break;
                case ARG_MIN_INSERT: opt.pairedOpt.minInsert = atoi(option.arg);
                    break;
                case ARG_MAX_INSERT: opt.pairedOpt.maxInsert = atoi(option.arg);
                    break;
                case ARG_ORIENTATION: opt.pairedOpt.orientation = parseOrientation(option.arg);
                    break;
                case ARG_NO_MIXED: opt.pairedOpt.mixed = false;
                    break;
                case ARG_NO_DISCORDANT: opt.pairedOpt.discordant = false;
                    break;
                case ARG_DOVETAIL: opt.pairedOpt.dovetail = true;
                    break;
                case ARG_NO_CONTAIN: opt.pairedOpt.contain = false;
                    break;
                case ARG_NO_OVERLAP: opt.pairedOpt.overlap = false;
                    break;
                case ARG_PAIRED_MODE: opt.pairedOpt.mode = atoi(option.arg);
                    break;
                case ARG_PAIRED_RESCUE: opt.pairedOpt.pairedRescue = true;
                    break;
                default: break;
                    throw 1;
            }
        }
        if (opt.indexLocation.empty() && opt.index_prefix.empty()) {
            opt.index_prefix = opt.ref_fasta;
        }
        if (opt.hasChild && opt.hasSuflink)
            fprintf(stderr, "WARNING: having both child array and suffix link support is marginally useful and requires more memory! \n");
        if (!opt.hasChild && opt.K >= 3)
            fprintf(stderr, "WARNING: no child array means much slower search times! \n");
        if (!opt.saveIndex && opt.indexLocation.empty())
            fprintf(stderr, "WARNING: index will not be saved to disk! \n");
        if (opt.unpairedQ.empty() && (opt.pair1.empty() || opt.pair2.empty())) {
            fprintf(stderr, "ERROR: ALFALFA requires query files. Specify query files with -0 or -1,-2 options.\n");
            exit(1);
        }
        if (opt.outputName.empty())
            opt.outputName = opt.ref_fasta.substr().append(".sam");
        if (opt.alnOptions.errorPercent < 0.0 || opt.alnOptions.errorPercent > 1.0) {
            fprintf(stderr, "ERROR: uncorrect value for edit distance. Value should lie in the interval [0,1[\n");
            exit(1);
        }
        if (opt.alnOptions.minCoverage < 0.0 || opt.alnOptions.minCoverage > 1.0) {
            fprintf(stderr, "ERROR: uncorrect value for minimum coverage. Value should lie in the interval [0,1[\n");
            exit(1);
        }
        if (opt.pairedOpt.minInsert > opt.pairedOpt.maxInsert) {
            fprintf(stderr, "ERROR: minimum insert size is larger than maximum insert size\n");
            exit(1);
        }
        if (opt.pairedOpt.mode < 1 || opt.pairedOpt.mode > 6) {
            fprintf(stderr, "ERROR: chosen paired-end mode not supported.\n");
            exit(1);
        }
        opt.alnOptions.maxAlnCount = max(opt.alnOptions.alignmentCount, opt.alnOptions.minTrial);
        opt.alnOptions.fill_m();
    }
    if (opt.alnOptions.print >= 1)
        opt.printOptions();
    delete[] options;
    delete[] buffer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movl %edi, %ebp
movq 0x8(%rsi), %r14
leaq 0x32658(%rip), %rsi     # 0x40e37
movq %r14, %rdi
callq 0x7450
testl %eax, %eax
je 0xe80a
leaq 0x3264b(%rip), %rsi     # 0x40e3d
movq %r14, %rdi
callq 0x7450
testl %eax, %eax
jne 0xf0cf
movl $0x2, (%rbx)
jmp 0xe817
movl $0x0, (%rbx)
movb $0x1, 0xb0(%rbx)
movq 0x457ca(%rip), %r13     # 0x53fe8
leaq 0x32640(%rip), %rsi     # 0x40e65
movl $0x14, %edx
movq %r13, %rdi
callq 0x7340
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %r13, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
addl $-0x2, %ebp
addq $0x10, %r12
leaq 0x43c18(%rip), %rsi     # 0x52480
leaq 0xc0(%rsp), %r14
movq %r14, %rdi
movl %ebp, %edx
movq %r12, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xf3d4
movl 0x4(%r14), %r14d
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %r15
movq %r15, %rdi
callq 0x7030
movq %rax, 0x18(%rsp)
testq %r14, %r14
je 0xe8d8
movq 0x18(%rsp), %rcx
leaq 0x10(%rcx), %rax
incq %rcx
xorl %edx, %edx
xorpd %xmm0, %xmm0
leaq (%rcx,%rdx), %rsi
movupd %xmm0, 0xc(%rax,%rdx)
movupd %xmm0, (%rax,%rdx)
movq %rsi, -0x8(%rax,%rdx)
movq %rsi, -0x10(%rax,%rdx)
addq $0x30, %rdx
cmpq %rdx, %r15
jne 0xe8b6
movl 0xc0(%rsp), %r14d
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %r15
movq %r15, %rdi
callq 0x7030
movq %rax, 0x10(%rsp)
testq %r14, %r14
je 0xe931
movq 0x10(%rsp), %rcx
leaq 0x10(%rcx), %rax
incq %rcx
xorl %edx, %edx
xorpd %xmm0, %xmm0
leaq (%rcx,%rdx), %rsi
movupd %xmm0, 0xc(%rax,%rdx)
movupd %xmm0, (%rax,%rdx)
movq %rsi, -0x8(%rax,%rdx)
movq %rsi, -0x10(%rax,%rdx)
addq $0x30, %rdx
cmpq %rdx, %r15
jne 0xe90f
subq $0x8, %rsp
xorl %eax, %eax
leaq 0x43b42(%rip), %rsi     # 0x52480
leaq 0x38(%rsp), %r15
movq %r15, %rdi
movl %ebp, %edx
movq %r12, %rcx
movq 0x20(%rsp), %r14
movq %r14, %r8
movq 0x18(%rsp), %r9
pushq $-0x1
pushq %rax
pushq %rax
callq 0xf440
addq $0x20, %rsp
cmpb $0x1, 0x10(%r15)
je 0xf10e
cmpq $0x0, 0x970(%r14)
jne 0xf121
cmpq $0x0, 0x910(%r14)
je 0xe99a
movq 0x920(%r14), %rdi
callq 0x7520
movl %eax, 0x178(%rbx)
cmpq $0x0, 0x940(%r14)
je 0xe9be
movq 0x950(%r14), %rdi
leaq 0x38a73(%rip), %rsi     # 0x47425
callq 0x7360
movq %rax, 0x180(%rbx)
cmpq $0x0, 0x10(%r14)
jne 0xf149
cmpl $0x0, 0x34(%rsp)
jg 0xf149
cmpl $0x0, 0x30(%rsp)
jle 0xeaa4
leaq 0x90(%rbx), %rax
movq %rax, 0x28(%rsp)
leaq 0x70(%rbx), %rax
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rax
leaq 0x20(%rax), %r14
xorl %r12d, %r12d
leaq 0x31ea9(%rip), %r13     # 0x408b0
movq -0x10(%r14), %rax
testq %rax, %rax
je 0xea14
movl (%rax), %eax
jmp 0xea19
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
decl %eax
cmpl $0x5, %eax
ja 0xea8f
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movq (%r14), %r15
movq 0x78(%rbx), %rbp
movq %r15, %rdi
callq 0x7140
movq 0x20(%rsp), %rdi
jmp 0xea60
movb $0x1, 0xb2(%rbx)
jmp 0xea8f
movq (%r14), %r15
movq 0x98(%rbx), %rbp
movq %r15, %rdi
callq 0x7140
movq 0x28(%rsp), %rdi
xorl %esi, %esi
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x7510
jmp 0xea8f
movb $0x0, 0xb1(%rbx)
jmp 0xea8f
movq (%r14), %rdi
callq 0x7520
movl %eax, 0x4(%rbx)
jmp 0xea8f
movb $0x0, 0xb3(%rbx)
incq %r12
movslq 0x30(%rsp), %rax
addq $0x30, %r14
cmpq %rax, %r12
jl 0xea07
movl (%rbx), %eax
testl %eax, %eax
movq 0x18(%rsp), %r14
jne 0xeb01
cmpq $0x0, 0x40(%r14)
je 0xf315
testl %eax, %eax
jne 0xeb01
cmpq $0x0, 0x98(%rbx)
jne 0xead8
leaq 0x90(%rbx), %rdi
leaq 0x70(%rbx), %rsi
callq 0x7170
cmpb $0x1, 0xb1(%rbx)
jne 0xeaee
cmpb $0x1, 0xb2(%rbx)
je 0xf104
cmpb $0x0, 0xb1(%rbx)
jne 0xeb01
cmpl $0x3, 0x4(%rbx)
jge 0xf0f0
movl (%rbx), %eax
cmpl $0x2, %eax
jne 0xf09a
cmpq $0x0, 0x40(%r14)
jne 0xeb21
cmpq $0x0, 0x160(%r14)
je 0xf339
cmpl $0x2, %eax
jne 0xf09a
cmpl $0x0, 0x30(%rsp)
jle 0xef35
leaq 0xd8(%rbx), %rax
movq %rax, 0x28(%rsp)
leaq 0x50(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0x30(%rbx), %rax
movq %rax, 0x78(%rsp)
leaq 0x10(%rbx), %rax
movq %rax, 0x70(%rsp)
leaq 0xb8(%rbx), %rax
movq %rax, 0x68(%rsp)
movq 0x10(%rsp), %r12
addq $0x20, %r12
xorl %r13d, %r13d
leaq 0x31d4d(%rip), %rbp     # 0x408c8
movq -0x10(%r12), %rax
testq %rax, %rax
je 0xeb89
movl (%rax), %eax
jmp 0xeb8e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addl $-0x7, %eax
cmpl $0x28, %eax
ja 0xef04
movslq (%rbp,%rax,4), %rax
addq %rbp, %rax
jmpq *%rax
movq (%r12), %r15
movq 0xc0(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
callq 0x7140
movq 0x68(%rsp), %rdi
jmp 0xedf9
movb $0x0, 0x1a3(%rbx)
jmp 0xef04
movb $0x0, 0x1a1(%rbx)
jmp 0xef04
movb $0x1, 0x1a2(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x100(%rbx)
jmp 0xeefd
movb $0x0, 0x1a0(%rbx)
jmp 0xef04
movb $0x1, 0x173(%rbx)
jmp 0xef04
movb $0x0, 0x171(%rbx)
jmp 0xef04
movq (%r12), %rsi
leaq 0x80(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0xf4e4
leaq 0x80(%rsp), %rdi
callq 0xe722
movl %eax, 0x1b0(%rbx)
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xef04
movq 0x90(%rsp), %rsi
jmp 0xecb8
movq (%r12), %rsi
leaq 0xa0(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0xf4e4
leaq 0xa0(%rsp), %rdi
callq 0xe636
movl %eax, 0x188(%rbx)
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xef04
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x72f0
jmp 0xef04
movq (%r12), %r15
movq 0x58(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
callq 0x7140
movq 0x20(%rsp), %rdi
jmp 0xedf9
movb $0x1, 0x1ac(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x138(%rbx)
movb $0x1, 0x13c(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x73d0
addsd 0x31b84(%rip), %xmm0    # 0x408a0
movsd %xmm0, 0x130(%rbx)
jmp 0xef04
movb $0x0, 0x170(%rbx)
jmp 0xef04
movb $0x0, 0x12a(%rbx)
jmp 0xef04
movq (%r12), %r15
movq 0x18(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
callq 0x7140
movq 0x70(%rsp), %rdi
jmp 0xedf9
movb $0x1, 0x172(%rbx)
jmp 0xef04
movq (%r12), %r15
movq 0x38(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
callq 0x7140
movq 0x78(%rsp), %rdi
jmp 0xedf9
movb $0x1, 0x174(%rbx)
jmp 0xef04
movb $0x1, 0xb0(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x198(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x144(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x154(%rbx)
jmp 0xef04
movq (%r12), %r15
movq 0xe0(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
callq 0x7140
movq 0x28(%rsp), %rdi
xorl %esi, %esi
movq 0x8(%rsp), %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x7510
jmp 0xef04
movb $0x0, 0x15c(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x140(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x150(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x148(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x8(%rbx)
jmp 0xef04
movb $0x1, 0x175(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x10c(%rbx)
jmp 0xeefd
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x19c(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x158(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x1a8(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x14c(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x73d0
movsd %xmm0, 0x168(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x104(%rbx)
jmp 0xeefd
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x108(%rbx)
movb $0x1, 0x129(%rbx)
incq %r13
movslq 0x30(%rsp), %rax
addq $0x30, %r12
cmpq %rax, %r13
jl 0xeb7b
jmp 0xef35
movb $0x0, 0x1a4(%rbx)
jmp 0xef04
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x190(%rbx)
jmp 0xef04
movq 0x98(%rbx), %rax
orq 0xc0(%rbx), %rax
jne 0xef55
leaq 0x90(%rbx), %rdi
leaq 0x70(%rbx), %rsi
callq 0x7170
cmpb $0x1, 0xb1(%rbx)
jne 0xef6b
cmpb $0x1, 0xb2(%rbx)
je 0xf0fa
cmpb $0x0, 0xb1(%rbx)
jne 0xef7e
cmpl $0x3, 0x4(%rbx)
jge 0xf0dc
cmpb $0x0, 0xb0(%rbx)
jne 0xef95
cmpq $0x0, 0xc0(%rbx)
je 0xf0e6
cmpq $0x0, 0x18(%rbx)
jne 0xefb2
cmpq $0x0, 0x38(%rbx)
je 0xf35e
cmpq $0x0, 0x58(%rbx)
je 0xf35e
cmpq $0x0, 0xe0(%rbx)
jne 0xf00f
leaq 0x70(%rbx), %rsi
leaq 0x48(%rsp), %r15
movq %r15, %rdi
xorl %edx, %edx
movq $-0x1, %rcx
callq 0x7310
leaq 0x32082(%rip), %rsi     # 0x4105f
movq %r15, %rdi
callq 0x7680
leaq 0xd8(%rbx), %rdi
movq %rax, %rsi
callq 0x7170
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf00f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72f0
movsd 0x130(%rbx), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0xf325
ucomisd 0x3187b(%rip), %xmm0    # 0x408a8
ja 0xf325
movsd 0x168(%rbx), %xmm0
ucomisd %xmm0, %xmm1
ja 0xf32a
ucomisd 0x3185b(%rip), %xmm0    # 0x408a8
ja 0xf32a
movl 0x198(%rbx), %eax
cmpl 0x19c(%rbx), %eax
jg 0xf32f
movl 0x1a8(%rbx), %eax
addl $-0x7, %eax
cmpl $-0x7, %eax
jbe 0xf334
leaq 0x100(%rbx), %rdi
movl 0x150(%rbx), %eax
movl 0x158(%rbx), %ecx
cmpl %ecx, %eax
cmovgl %eax, %ecx
movl %ecx, 0x160(%rbx)
callq 0xd420
cmpl $0x0, 0x178(%rbx)
jle 0xf0ab
movq %rbx, %rdi
callq 0xd64c
movq %r14, %rdi
callq 0x7400
movq 0x10(%rsp), %rdi
callq 0x7400
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x7710
jmp 0xe817
callq 0x77cd
jmp 0xef7e
callq 0x77ef
jmp 0xef95
callq 0x7789
jmp 0xeb01
callq 0x77ab
jmp 0xef6b
callq 0x7767
jmp 0xeaee
movq 0x44ed3(%rip), %rdi     # 0x53fe8
leaq 0x31d5e(%rip), %rsi     # 0x40e7a
jmp 0xf347
cmpl $0x0, (%rbx)
jne 0xf2bc
leaq 0x4322f(%rip), %rax     # 0x52360
leaq 0x48(%rsp), %rdi
movq %rax, (%rdi)
movq %r13, 0x8(%rdi)
leaq 0x43b8c(%rip), %rsi     # 0x52cd0
jmp 0xf2d6
movq 0x44e98(%rip), %rbx     # 0x53fe8
leaq 0x31d50(%rip), %rsi     # 0x40ea7
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x7340
movq %rbx, %rdi
callq 0x7150
movq 0x18(%rsp), %r13
cmpq $0x0, 0x10(%r13)
je 0xf1f5
leaq 0x31d45(%rip), %r15     # 0x40ec4
leaq 0x31e83(%rip), %r12     # 0x41009
xorl %r14d, %r14d
movl $0x10, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7340
movq %r13, %rbp
movq 0x18(%r13), %r13
testq %r13, %r13
je 0xf1bd
movq %r13, %rdi
callq 0x7140
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x7340
jmp 0xf1d4
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x75c0
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7340
movq (%rbp), %r13
testb $0x1, %r13b
cmovneq %r14, %r13
testq %r13, %r13
jne 0xf189
cmpl $0x0, 0x34(%rsp)
jle 0xf2a9
xorl %ebx, %ebx
movq 0x44ddf(%rip), %r14     # 0x53fe8
leaq 0x35df4(%rip), %r12     # 0x45004
leaq 0x31df2(%rip), %r13     # 0x41009
movl $0xc, %edx
movq %r14, %rdi
leaq 0x31caf(%rip), %rsi     # 0x40ed5
callq 0x7340
movq %r14, %rdi
movl %ebx, %esi
callq 0x75d0
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x7340
movq 0x38(%rsp), %rax
movq (%rax,%rbx,8), %r15
testq %r15, %r15
je 0xf26e
movq %r15, %rdi
callq 0x7140
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7340
jmp 0xf288
movq (%rbp), %rax
movq -0x18(%rax), %rax
movq %rbp, %rdi
addq %rax, %rdi
movl 0x20(%rbp,%rax), %esi
orl $0x1, %esi
callq 0x75c0
movl $0x1, %edx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x7340
incq %rbx
movslq 0x34(%rsp), %rax
cmpq %rax, %rbx
jl 0xf217
movq 0x44d38(%rip), %rdi     # 0x53fe8
leaq 0x31c2b(%rip), %rsi     # 0x40ee2
jmp 0xf347
leaq 0x4309d(%rip), %rax     # 0x52360
leaq 0x48(%rsp), %rdi
movq %rax, (%rdi)
movq %r13, 0x8(%rdi)
leaq 0x43b3a(%rip), %rsi     # 0x52e10
movl $0x50, %edx
movl $0x32, %ecx
movl $0x4b, %r8d
callq 0xc824
movq 0x44cf6(%rip), %rdi     # 0x53fe8
leaq 0x442e7(%rip), %rsi     # 0x535e0
movl $0x50, %edx
movl $0x32, %ecx
movl $0x4b, %r8d
callq 0xba01
xorl %edi, %edi
callq 0x73b0
movq 0x44ccc(%rip), %rdi     # 0x53fe8
leaq 0x31bcf(%rip), %rsi     # 0x40ef2
jmp 0xf347
callq 0x7880
callq 0x785b
callq 0x7836
callq 0x7811
movq 0x44ca8(%rip), %rdi     # 0x53fe8
leaq 0x31c6f(%rip), %rsi     # 0x40fb6
callq 0x72c0
movq %rax, %rdi
callq 0x7150
movl $0x1, %edi
callq 0x73b0
callq 0x78a5
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xf3cc
movq 0xb0(%rsp), %rsi
jmp 0xf3c4
jmp 0xf3a9
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xf3cc
movq 0x90(%rsp), %rsi
jmp 0xf3c4
movq %rax, %rbx
jmp 0xf3cc
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf3cc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72f0
movq %rbx, %rdi
callq 0x7600