// File: /workspace/github_cpp_makefile_star2_O3/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 0x3273e(%rip), %rsi     # 0x40e37
movq %r14, %rdi
callq 0x7450
testl %eax, %eax
je 0xe724
leaq 0x32731(%rip), %rsi     # 0x40e3d
movq %r14, %rdi
callq 0x7450
testl %eax, %eax
jne 0xefca
movl $0x2, (%rbx)
jmp 0xe731
movl $0x0, (%rbx)
movb $0x1, 0xb0(%rbx)
movq 0x458b0(%rip), %r13     # 0x53fe8
leaq 0x32726(%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 0x43cfe(%rip), %rsi     # 0x52480
leaq 0xc0(%rsp), %r14
movq %r14, %rdi
movl %ebp, %edx
movq %r12, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xf308
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 0xe7f2
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 0xe7d0
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 0xe84b
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 0xe829
subq $0x8, %rsp
xorl %eax, %eax
leaq 0x43c28(%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 0xf374
addq $0x20, %rsp
cmpb $0x1, 0x10(%r15)
je 0xf04b
cmpq $0x0, 0x970(%r14)
jne 0xf05e
cmpq $0x0, 0x910(%r14)
je 0xe8b4
movq 0x920(%r14), %rdi
callq 0x7520
movl %eax, 0x178(%rbx)
cmpq $0x0, 0x940(%r14)
je 0xe8d8
movq 0x950(%r14), %rdi
leaq 0x38b59(%rip), %rsi     # 0x47425
callq 0x7360
movq %rax, 0x180(%rbx)
cmpq $0x0, 0x10(%r14)
jne 0xf086
cmpl $0x0, 0x34(%rsp)
jg 0xf086
cmpl $0x0, 0x30(%rsp)
jle 0xe9b7
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 0x31f8f(%rip), %r13     # 0x408b0
movq -0x10(%r14), %rax
testq %rax, %rax
je 0xe9a2
movl (%rax), %eax
decl %eax
cmpl $0x5, %eax
ja 0xe9a2
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 0xe973
movb $0x1, 0xb2(%rbx)
jmp 0xe9a2
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 0xe9a2
movb $0x0, 0xb1(%rbx)
jmp 0xe9a2
movq (%r14), %rdi
callq 0x7520
movl %eax, 0x4(%rbx)
jmp 0xe9a2
movb $0x0, 0xb3(%rbx)
incq %r12
movslq 0x30(%rsp), %rax
addq $0x30, %r14
cmpq %rax, %r12
jl 0xe921
movl (%rbx), %eax
testl %eax, %eax
movq 0x18(%rsp), %r14
jne 0xea0e
cmpq $0x0, 0x40(%r14)
je 0xf25d
cmpq $0x0, 0x98(%rbx)
jne 0xe9e7
leaq 0x90(%rbx), %rdi
leaq 0x70(%rbx), %rsi
callq 0x7170
movb 0xb1(%rbx), %al
cmpb $0x1, %al
jne 0xe9fe
cmpb $0x1, 0xb2(%rbx)
je 0xf020
testb $0x1, %al
jne 0xea0c
cmpl $0x3, 0x4(%rbx)
jge 0xefeb
movl (%rbx), %eax
cmpl $0x2, %eax
jne 0xef95
cmpq $0x0, 0x40(%r14)
jne 0xea2c
cmpq $0x0, 0x160(%r14)
je 0xf26d
cmpl $0x0, 0x30(%rsp)
jle 0xee34
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 0x31e4b(%rip), %rbp     # 0x408c8
movq -0x10(%r12), %rax
testq %rax, %rax
je 0xee03
movl (%rax), %eax
addl $-0x7, %eax
cmpl $0x28, %eax
ja 0xee03
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 0xecf8
movb $0x0, 0x1a3(%rbx)
jmp 0xee03
movb $0x0, 0x1a1(%rbx)
jmp 0xee03
movb $0x1, 0x1a2(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x100(%rbx)
jmp 0xedfc
movb $0x0, 0x1a0(%rbx)
jmp 0xee03
movb $0x1, 0x173(%rbx)
jmp 0xee03
movb $0x0, 0x171(%rbx)
jmp 0xee03
movq (%r12), %rsi
leaq 0x80(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0xf418
leaq 0x80(%rsp), %rdi
callq 0xe63c
movl %eax, 0x1b0(%rbx)
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xee03
movq 0x90(%rsp), %rsi
jmp 0xebb7
movq (%r12), %rsi
leaq 0xa0(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0xf418
leaq 0xa0(%rsp), %rdi
callq 0xe550
movl %eax, 0x188(%rbx)
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xee03
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x72f0
jmp 0xee03
movq (%r12), %r15
movq 0x58(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
callq 0x7140
movq 0x20(%rsp), %rdi
jmp 0xecf8
movb $0x1, 0x1ac(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x138(%rbx)
movb $0x1, 0x13c(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x73d0
addsd 0x31c85(%rip), %xmm0    # 0x408a0
movsd %xmm0, 0x130(%rbx)
jmp 0xee03
movb $0x0, 0x170(%rbx)
jmp 0xee03
movb $0x0, 0x12a(%rbx)
jmp 0xee03
movq (%r12), %r15
movq 0x18(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
callq 0x7140
movq 0x70(%rsp), %rdi
jmp 0xecf8
movb $0x1, 0x172(%rbx)
jmp 0xee03
movq (%r12), %r15
movq 0x38(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
callq 0x7140
movq 0x78(%rsp), %rdi
jmp 0xecf8
movb $0x1, 0x174(%rbx)
jmp 0xee03
movb $0x1, 0xb0(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x198(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x144(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x154(%rbx)
jmp 0xee03
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 0xee03
movb $0x0, 0x15c(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x140(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x150(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x148(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x8(%rbx)
jmp 0xee03
movb $0x1, 0x175(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x10c(%rbx)
jmp 0xedfc
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x19c(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x158(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x1a8(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x14c(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x73d0
movsd %xmm0, 0x168(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x104(%rbx)
jmp 0xedfc
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 0xea7d
jmp 0xee34
movb $0x0, 0x1a4(%rbx)
jmp 0xee03
movq (%r12), %rdi
callq 0x7520
movl %eax, 0x190(%rbx)
jmp 0xee03
movq 0x98(%rbx), %rax
orq 0xc0(%rbx), %rax
jne 0xee54
leaq 0x90(%rbx), %rdi
leaq 0x70(%rbx), %rsi
callq 0x7170
movb 0xb1(%rbx), %al
cmpb $0x1, %al
jne 0xee6b
cmpb $0x1, 0xb2(%rbx)
je 0xeff5
testb $0x1, %al
jne 0xee79
cmpl $0x3, 0x4(%rbx)
jge 0xefd7
cmpb $0x0, 0xb0(%rbx)
jne 0xee90
cmpq $0x0, 0xc0(%rbx)
je 0xefe1
cmpq $0x0, 0x18(%rbx)
jne 0xeead
cmpq $0x0, 0x38(%rbx)
je 0xf292
cmpq $0x0, 0x58(%rbx)
je 0xf292
cmpq $0x0, 0xe0(%rbx)
jne 0xef0a
leaq 0x70(%rbx), %rsi
leaq 0x48(%rsp), %r15
movq %r15, %rdi
xorl %edx, %edx
movq $-0x1, %rcx
callq 0x7310
leaq 0x32187(%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 0xef0a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72f0
movsd 0x130(%rbx), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0xf249
ucomisd 0x31980(%rip), %xmm0    # 0x408a8
ja 0xf249
movsd 0x168(%rbx), %xmm0
ucomisd %xmm0, %xmm1
ja 0xf24e
ucomisd 0x31960(%rip), %xmm0    # 0x408a8
ja 0xf24e
movl 0x198(%rbx), %eax
cmpl 0x19c(%rbx), %eax
jg 0xf253
movl 0x1a8(%rbx), %eax
addl $-0x7, %eax
cmpl $-0x7, %eax
jbe 0xf258
leaq 0x100(%rbx), %rdi
movl 0x150(%rbx), %eax
movl 0x158(%rbx), %ecx
cmpl %ecx, %eax
cmovgl %eax, %ecx
movl %ecx, 0x160(%rbx)
callq 0xd33c
cmpl $0x0, 0x178(%rbx)
jle 0xefa6
movq %rbx, %rdi
callq 0xd566
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 0xe731
callq 0x7789
jmp 0xee79
callq 0x77ab
jmp 0xee90
callq 0x7767
jmp 0xea0c
movq 0x44fcc(%rip), %rax     # 0x53fc8
movq (%rax), %rcx
leaq 0x31f0c(%rip), %rdi     # 0x40f12
movl $0x69, %esi
movl $0x1, %edx
callq 0x7690
movb 0xb1(%rbx), %al
jmp 0xee6b
movq 0x44fa1(%rip), %rax     # 0x53fc8
movq (%rax), %rcx
leaq 0x31ee1(%rip), %rdi     # 0x40f12
movl $0x69, %esi
movl $0x1, %edx
callq 0x7690
movb 0xb1(%rbx), %al
jmp 0xe9fe
movq 0x44f96(%rip), %rdi     # 0x53fe8
leaq 0x31e21(%rip), %rsi     # 0x40e7a
jmp 0xf27b
cmpl $0x0, (%rbx)
jne 0xf1f0
leaq 0x432f2(%rip), %rax     # 0x52360
leaq 0x48(%rsp), %rdi
movq %rax, (%rdi)
movq %r13, 0x8(%rdi)
leaq 0x43c4f(%rip), %rsi     # 0x52cd0
jmp 0xf20a
movq 0x44f5b(%rip), %rbx     # 0x53fe8
leaq 0x31e13(%rip), %rsi     # 0x40ea7
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x7340
movq %rbx, %rdi
callq 0x7150
movq 0x18(%rsp), %r14
cmpq $0x0, 0x10(%r14)
je 0xf129
leaq 0x31e08(%rip), %r15     # 0x40ec4
leaq 0x31f46(%rip), %r12     # 0x41009
movl $0x10, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7340
movq 0x18(%r14), %r13
testq %r13, %r13
je 0xf0f4
movq %r13, %rdi
callq 0x7140
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x7340
jmp 0xf10b
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 (%r14), %r14
testb $0x1, %r14b
jne 0xf129
testq %r14, %r14
jne 0xf0c3
cmpl $0x0, 0x34(%rsp)
jle 0xf1dd
xorl %ebx, %ebx
movq 0x44eab(%rip), %r14     # 0x53fe8
leaq 0x35ec0(%rip), %r12     # 0x45004
leaq 0x31ebe(%rip), %r13     # 0x41009
movl $0xc, %edx
movq %r14, %rdi
leaq 0x31d7b(%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 0xf1a2
movq %r15, %rdi
callq 0x7140
movq %rbp, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x7340
jmp 0xf1bc
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 0xf14b
movq 0x44e04(%rip), %rdi     # 0x53fe8
leaq 0x31cf7(%rip), %rsi     # 0x40ee2
jmp 0xf27b
leaq 0x43169(%rip), %rax     # 0x52360
leaq 0x48(%rsp), %rdi
movq %rax, (%rdi)
movq %r13, 0x8(%rdi)
leaq 0x43c06(%rip), %rsi     # 0x52e10
movl $0x50, %edx
movl $0x32, %ecx
movl $0x4b, %r8d
callq 0xc828
movq 0x44dc2(%rip), %rdi     # 0x53fe8
leaq 0x443b3(%rip), %rsi     # 0x535e0
movl $0x50, %edx
movl $0x32, %ecx
movl $0x4b, %r8d
callq 0xb9e7
xorl %edi, %edi
callq 0x73b0
callq 0x783c
callq 0x7817
callq 0x77f2
callq 0x77cd
movq 0x44d84(%rip), %rdi     # 0x53fe8
leaq 0x31c87(%rip), %rsi     # 0x40ef2
jmp 0xf27b
movq 0x44d74(%rip), %rdi     # 0x53fe8
leaq 0x31d3b(%rip), %rsi     # 0x40fb6
callq 0x72c0
movq %rax, %rdi
callq 0x7150
movl $0x1, %edi
callq 0x73b0
callq 0x7861
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xf300
movq 0xb0(%rsp), %rsi
jmp 0xf2f8
jmp 0xf2dd
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xf300
movq 0x90(%rsp), %rsi
jmp 0xf2f8
movq %rax, %rbx
jmp 0xf300
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf300
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72f0
movq %rbx, %rdi
callq 0x7600