// File: /workspace/github_cpp_makefile_star2_O3/aalto-speech[P]ftk/src/1g-prune.cc
// Function: main
int main(int argc, char* argv[]) {

    conf::Config config;
    config("usage: 1g-prune [OPTION...] WORDLIST VOCAB_INIT VOCAB_FINAL\n")
      ('h', "help", "", "", "display help")
      ('c', "candidates=INT", "arg", "10000", "Number of subwords to consider for removal per iteration, DEFAULT: 10 000")
      ('r', "removals=INT", "arg", "500", "Number of subwords to remove per iteration, DEFAULT: 500")
      ('m', "min-length=INT", "arg", "2", "Minimum length of subwords to remove, DEFAULT: 2")
      ('v', "vocab-size=INT", "arg must", "", "Target vocabulary size")
      ('s', "stop-list=STRING", "arg", "", "Text file containing subwords that should not be removed")
      ('t', "temp-vocabs=INT", "arg", "0", "Write out intermediate vocabularies for #V mod INT == 0")
      ('f', "forward-backward", "", "", "Use Forward-backward segmentation instead of Viterbi")
      ('8', "utf-8", "", "", "Utf-8 character encoding in use");
    config.default_parse(argc, argv);
    if (config.arguments.size() != 3) config.print_help(stderr, 1);

    flt_type subword_min_lp = -25.0;
    string wordlist_fname = config.arguments[0];
    string vocab_fname = config.arguments[1];
    string out_vocab_fname = config.arguments[2];
    unsigned int n_candidates_per_iter = config["candidates"].get_int();
    unsigned int removals_per_iter = config["removals"].get_int();
    unsigned int min_removal_length = config["min-length"].get_int();
    unsigned int target_vocab_size = config["vocab-size"].get_int();
    unsigned int temp_vocab_interval = config["temp-vocabs"].get_int();
    bool enable_forward_backward = config["forward-backward"].specified;
    bool utf8_encoding = config["utf-8"].specified;

    set<string> stoplist;
    if (config["stop-list"].specified) {
        vector<string> stopstrings;
        Unigrams::read_sents(config["stop-list"].get_str(), stopstrings);
        stoplist.insert(stopstrings.begin(), stopstrings.end());
    }

    cerr << setprecision(15) << std::boolalpha;
    cerr << "parameters, wordlist: " << wordlist_fname << endl;
    cerr << "parameters, initial vocabulary: " << vocab_fname << endl;
    cerr << "parameters, final vocabulary: " << out_vocab_fname << endl;
    cerr << "parameters, candidates per iteration: " << n_candidates_per_iter << endl;
    cerr << "parameters, minimum length for subwords to remove: " << min_removal_length << endl;
    cerr << "parameters, removals per iteration: " << removals_per_iter << endl;
    if (stoplist.size() > 0)
        cerr << "parameters, stoplist with " << stoplist.size() << " subwords" << endl;
    cerr << "parameters, target vocab size: " << target_vocab_size << endl;
    if (temp_vocab_interval > 0)
        cerr << "parameters, write temporary vocabularies whenever #V modulo " << temp_vocab_interval << " == 0" << endl;
    else
        cerr << "parameters, write temp vocabularies: NO" << endl;
    cerr << "parameters, use forward-backward: " << enable_forward_backward << endl;
    cerr << "parameters, utf-8 encoding: " << utf8_encoding << endl;

    int maxlen, word_maxlen;
    set<string> short_subwords;
    map<string, flt_type> vocab;
    map<string, flt_type> freqs;
    map<string, flt_type> words;

    cerr << "Reading vocabulary " << vocab_fname << endl;
    int retval = Unigrams::read_vocab(vocab_fname, vocab, maxlen, utf8_encoding);
    if (retval < 0) {
        cerr << "something went wrong reading vocabulary" << endl;
        exit(EXIT_FAILURE);
    }
    cerr << "\t" << "size: " << vocab.size() << endl;
    cerr << "\t" << "maximum string length: " << maxlen << endl;
    find_short_factors(vocab, short_subwords, min_removal_length, utf8_encoding);

    set<string> stop_union;
    set_union(stoplist.begin(), stoplist.end(),
              short_subwords.begin(), short_subwords.end(),
              inserter(stop_union, stop_union.begin()));
    stoplist = stop_union;

    cerr << "Reading word list " << wordlist_fname << endl;
    retval = Unigrams::read_vocab(wordlist_fname, words, word_maxlen, utf8_encoding);
    if (retval < 0) {
        cerr << "something went wrong reading word list" << endl;
        exit(EXIT_FAILURE);
    }
    cerr << "\t" << "wordlist size: " << words.size() << endl;
    cerr << "\t" << "maximum word length: " << word_maxlen << endl;

    Unigrams ug;
    if (enable_forward_backward)
        ug.set_segmentation_method(forward_backward);
    else
        ug.set_segmentation_method(viterbi);
    ug.set_utf8(utf8_encoding);

    flt_type cost = ug.resegment_words(words, vocab, freqs);
    cerr << endl << "Initial likelihood: " << cost << endl;

    cerr << endl << "Removing subwords by likelihood based pruning" << endl;
    int itern = 1;
    while (true) {

        cerr << "iteration " << itern << endl;
        cerr << "collecting candidate subwords" << endl;
        set<string> candidates;
        ug.init_candidates_by_usage(words, vocab, candidates, n_candidates_per_iter/3, stoplist, min_removal_length);
        ug.init_candidates_by_random(vocab, candidates, (n_candidates_per_iter-candidates.size())/4, stoplist, min_removal_length);
        ug.init_candidates(vocab, candidates, n_candidates_per_iter, stoplist, min_removal_length);

        cerr << "ranking candidate subwords (" << candidates.size() << ")" << endl;
        vector<pair<string, flt_type> > removal_scores;
        cost = ug.rank_candidates(words, vocab, candidates, freqs, removal_scores);

        cerr << "initial likelihood before removing subwords: " << cost << endl;

        // Remove subwords one by one
        unsigned int n_removals = 0;
        for (unsigned int i=0; i<removal_scores.size(); i++) {

            if (removal_scores[i].first.length() == 1) continue;
            // Score most probably went to zero already
            if (vocab.find(removal_scores[i].first) == vocab.end()) continue;
            if (freqs.find(removal_scores[i].first) == freqs.end()) continue;

            vocab.erase(removal_scores[i].first);
            freqs.erase(removal_scores[i].first);
            n_removals++;

            if (temp_vocab_interval > 0 && freqs.size() % temp_vocab_interval == 0) {
                vocab = freqs;
                Unigrams::freqs_to_logprobs(vocab);
                ostringstream vocabfname;
                vocabfname << "iteration_" << itern << "_" << vocab.size() << ".vocab";
                Unigrams::write_vocab(vocabfname.str(), vocab);
            }

            if (n_removals >= removals_per_iter) break;
            if (vocab.size() <= target_vocab_size) break;
        }

        cost = ug.iterate(words, vocab, 1);
        assert_factors(vocab, stoplist, subword_min_lp);

        cerr << "subwords removed in this iteration: " << n_removals << endl;
        cerr << "current vocabulary size: " << vocab.size() << endl;
        cerr << "likelihood after the removals: " << cost << endl;

        itern++;

        if (vocab.size() <= target_vocab_size) {
            cerr << "stopping by min_vocab_size." << endl;
            break;
        }
    }

    Unigrams::write_vocab(out_vocab_fname, vocab);
    exit(EXIT_SUCCESS);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb08, %rsp            # imm = 0xB08
movq %rsi, %rbx
movl %edi, %r14d
leaq -0x938(%rbp), %rdi
callq 0x9836
leaq -0x840(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x22f0b(%rip), %rsi     # 0x28030
leaq 0x22f40(%rip), %rdx     # 0x2806c
leaq -0x850(%rbp), %rdi
callq 0x8708
leaq -0x938(%rbp), %rdi
leaq -0x850(%rbp), %rsi
callq 0x989c
movq %rax, %r15
leaq -0x820(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x22f15(%rip), %rsi     # 0x28075
leaq 0x22f12(%rip), %rdx     # 0x28079
leaq -0x830(%rbp), %rdi
callq 0x8708
leaq -0x5e0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x238a2(%rip), %rdx     # 0x28a27
leaq -0x5f0(%rbp), %rdi
movq %rdx, %rsi
callq 0x8708
leaq -0x5c0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x23881(%rip), %rdx     # 0x28a27
leaq -0x5d0(%rbp), %rdi
movq %rdx, %rsi
callq 0x8708
leaq -0x5a0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22ea6(%rip), %rsi     # 0x2806d
leaq 0x22eab(%rip), %rdx     # 0x28079
leaq -0x5b0(%rbp), %rdi
callq 0x8708
leaq -0x830(%rbp), %rdx
leaq -0x5f0(%rbp), %rcx
leaq -0x5d0(%rbp), %r8
leaq -0x5b0(%rbp), %r9
movq %r15, %rdi
movl $0x68, %esi
callq 0x98b4
movq %rax, %r15
leaq -0x580(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22e62(%rip), %rsi     # 0x2807a
leaq 0x22e69(%rip), %rdx     # 0x28088
leaq -0x590(%rbp), %rdi
callq 0x8708
leaq -0x560(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22e4c(%rip), %rsi     # 0x28089
leaq 0x22e48(%rip), %rdx     # 0x2808c
leaq -0x570(%rbp), %rdi
callq 0x8708
leaq -0x540(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22e2b(%rip), %rsi     # 0x2808d
leaq 0x22e29(%rip), %rdx     # 0x28092
leaq -0x550(%rbp), %rdi
callq 0x8708
leaq -0x520(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22e0c(%rip), %rsi     # 0x28093
leaq 0x22e4e(%rip), %rdx     # 0x280dc
leaq -0x530(%rbp), %rdi
callq 0x8708
leaq -0x590(%rbp), %rdx
leaq -0x570(%rbp), %rcx
leaq -0x550(%rbp), %r8
leaq -0x530(%rbp), %r9
movq %r15, %rdi
movl $0x63, %esi
callq 0x98b4
movq %rax, %r15
leaq -0x500(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22e05(%rip), %rsi     # 0x280dd
leaq 0x22e0a(%rip), %rdx     # 0x280e9
leaq -0x510(%rbp), %rdi
callq 0x8708
leaq -0x4e0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22d8c(%rip), %rsi     # 0x28089
leaq 0x22d88(%rip), %rdx     # 0x2808c
leaq -0x4f0(%rbp), %rdi
callq 0x8708
leaq -0x4c0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22dfd(%rip), %rsi     # 0x2811f
leaq 0x22df9(%rip), %rdx     # 0x28122
leaq -0x4d0(%rbp), %rdi
callq 0x8708
leaq -0x4a0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22da3(%rip), %rsi     # 0x280ea
leaq 0x22dd4(%rip), %rdx     # 0x28122
leaq -0x4b0(%rbp), %rdi
callq 0x8708
leaq -0x510(%rbp), %rdx
leaq -0x4f0(%rbp), %rcx
leaq -0x4d0(%rbp), %r8
leaq -0x4b0(%rbp), %r9
movq %r15, %rdi
movl $0x72, %esi
callq 0x98b4
movq %rax, %r15
leaq -0x480(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22d8b(%rip), %rsi     # 0x28123
leaq 0x22d92(%rip), %rdx     # 0x28131
leaq -0x490(%rbp), %rdi
callq 0x8708
leaq -0x460(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22ccc(%rip), %rsi     # 0x28089
leaq 0x22cc8(%rip), %rdx     # 0x2808c
leaq -0x470(%rbp), %rdi
callq 0x8708
leaq -0x440(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22d7f(%rip), %rsi     # 0x28161
leaq 0x22d79(%rip), %rdx     # 0x28162
leaq -0x450(%rbp), %rdi
callq 0x8708
leaq -0x420(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22d2b(%rip), %rsi     # 0x28132
leaq 0x22d54(%rip), %rdx     # 0x28162
leaq -0x430(%rbp), %rdi
callq 0x8708
leaq -0x490(%rbp), %rdx
leaq -0x470(%rbp), %rcx
leaq -0x450(%rbp), %r8
leaq -0x430(%rbp), %r9
movq %r15, %rdi
movl $0x6d, %esi
callq 0x98b4
movq %rax, %r15
leaq -0x400(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22d0b(%rip), %rsi     # 0x28163
leaq 0x22d12(%rip), %rdx     # 0x28171
leaq -0x410(%rbp), %rdi
callq 0x8708
leaq -0x3e0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22cf5(%rip), %rsi     # 0x28172
leaq 0x22cf6(%rip), %rdx     # 0x2817a
leaq -0x3f0(%rbp), %rdi
callq 0x8708
leaq -0x3c0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x23585(%rip), %rdx     # 0x28a27
leaq -0x3d0(%rbp), %rdi
movq %rdx, %rsi
callq 0x8708
leaq -0x3a0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22cb8(%rip), %rsi     # 0x2817b
leaq 0x22cc7(%rip), %rdx     # 0x28191
leaq -0x3b0(%rbp), %rdi
callq 0x8708
leaq -0x410(%rbp), %rdx
leaq -0x3f0(%rbp), %rcx
leaq -0x3d0(%rbp), %r8
leaq -0x3b0(%rbp), %r9
movq %r15, %rdi
movl $0x76, %esi
callq 0x98b4
movq %rax, %r15
leaq -0x380(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22c7e(%rip), %rsi     # 0x28192
leaq 0x22c87(%rip), %rdx     # 0x281a2
leaq -0x390(%rbp), %rdi
callq 0x8708
leaq -0x360(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22b50(%rip), %rsi     # 0x28089
leaq 0x22b4c(%rip), %rdx     # 0x2808c
leaq -0x370(%rbp), %rdi
callq 0x8708
leaq -0x340(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x234c9(%rip), %rdx     # 0x28a27
leaq -0x350(%rbp), %rdi
movq %rdx, %rsi
callq 0x8708
leaq -0x320(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22c24(%rip), %rsi     # 0x281a3
leaq 0x22c55(%rip), %rdx     # 0x281db
leaq -0x330(%rbp), %rdi
callq 0x8708
leaq -0x390(%rbp), %rdx
leaq -0x370(%rbp), %rcx
leaq -0x350(%rbp), %r8
leaq -0x330(%rbp), %r9
movq %r15, %rdi
movl $0x73, %esi
callq 0x98b4
movq %rax, %r15
leaq -0x300(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22c0c(%rip), %rsi     # 0x281dc
leaq 0x22c14(%rip), %rdx     # 0x281eb
leaq -0x310(%rbp), %rdi
callq 0x8708
leaq -0x2e0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22a94(%rip), %rsi     # 0x28089
leaq 0x22a90(%rip), %rdx     # 0x2808c
leaq -0x2f0(%rbp), %rdi
callq 0x8708
leaq -0x2c0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22c08(%rip), %rsi     # 0x28222
leaq 0x22c02(%rip), %rdx     # 0x28223
leaq -0x2d0(%rbp), %rdi
callq 0x8708
leaq -0x2a0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22bad(%rip), %rsi     # 0x281ec
leaq 0x22bdd(%rip), %rdx     # 0x28223
leaq -0x2b0(%rbp), %rdi
callq 0x8708
leaq -0x310(%rbp), %rdx
leaq -0x2f0(%rbp), %rcx
leaq -0x2d0(%rbp), %r8
leaq -0x2b0(%rbp), %r9
movq %r15, %rdi
movl $0x74, %esi
callq 0x98b4
movq %rax, %r15
leaq -0x280(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22b94(%rip), %rsi     # 0x28224
leaq 0x22b9d(%rip), %rdx     # 0x28234
leaq -0x290(%rbp), %rdi
callq 0x8708
leaq -0x260(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x23372(%rip), %rdx     # 0x28a27
leaq -0x270(%rbp), %rdi
movq %rdx, %rsi
callq 0x8708
leaq -0x240(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x23351(%rip), %rdx     # 0x28a27
leaq -0x250(%rbp), %rdi
movq %rdx, %rsi
callq 0x8708
leaq -0x220(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22b3e(%rip), %rsi     # 0x28235
leaq 0x22b6b(%rip), %rdx     # 0x28269
leaq -0x230(%rbp), %rdi
callq 0x8708
leaq -0x290(%rbp), %rdx
leaq -0x270(%rbp), %rcx
leaq -0x250(%rbp), %r8
leaq -0x230(%rbp), %r9
movq %r15, %rdi
movl $0x66, %esi
callq 0x98b4
movq %rax, %r15
leaq -0x200(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22b22(%rip), %rsi     # 0x2826a
leaq 0x22b20(%rip), %rdx     # 0x2826f
leaq -0x210(%rbp), %rdi
callq 0x8708
leaq -0x1e0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x232ba(%rip), %rdx     # 0x28a27
leaq -0x1f0(%rbp), %rdi
movq %rdx, %rsi
callq 0x8708
leaq -0x1c0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x23299(%rip), %rdx     # 0x28a27
leaq -0x1d0(%rbp), %rdi
movq %rdx, %rsi
callq 0x8708
leaq -0x1a0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22ac1(%rip), %rsi     # 0x28270
leaq 0x22ad9(%rip), %rdx     # 0x2828f
leaq -0x1b0(%rbp), %rdi
callq 0x8708
leaq -0x210(%rbp), %rdx
leaq -0x1f0(%rbp), %rcx
leaq -0x1d0(%rbp), %r8
leaq -0x1b0(%rbp), %r9
movq %r15, %rdi
movl $0x38, %esi
callq 0x98b4
movq -0x1b0(%rbp), %rdi
leaq -0x1a0(%rbp), %rax
cmpq %rax, %rdi
je 0x5803
callq 0x4360
movq -0x1d0(%rbp), %rdi
leaq -0x1c0(%rbp), %rax
cmpq %rax, %rdi
je 0x581b
callq 0x4360
movq -0x1f0(%rbp), %rdi
leaq -0x1e0(%rbp), %rax
cmpq %rax, %rdi
je 0x5833
callq 0x4360
movq -0x210(%rbp), %rdi
leaq -0x200(%rbp), %rax
cmpq %rax, %rdi
je 0x584b
callq 0x4360
movq -0x230(%rbp), %rdi
leaq -0x220(%rbp), %rax
cmpq %rax, %rdi
je 0x5863
callq 0x4360
movq -0x250(%rbp), %rdi
leaq -0x240(%rbp), %rax
cmpq %rax, %rdi
je 0x587b
callq 0x4360
movq -0x270(%rbp), %rdi
leaq -0x260(%rbp), %rax
cmpq %rax, %rdi
je 0x5893
callq 0x4360
movq -0x290(%rbp), %rdi
leaq -0x280(%rbp), %rax
cmpq %rax, %rdi
je 0x58ab
callq 0x4360
movq -0x2b0(%rbp), %rdi
leaq -0x2a0(%rbp), %rax
cmpq %rax, %rdi
je 0x58c3
callq 0x4360
movq -0x2d0(%rbp), %rdi
leaq -0x2c0(%rbp), %rax
cmpq %rax, %rdi
je 0x58db
callq 0x4360
movq -0x2f0(%rbp), %rdi
leaq -0x2e0(%rbp), %rax
cmpq %rax, %rdi
je 0x58f3
callq 0x4360
movq -0x310(%rbp), %rdi
leaq -0x300(%rbp), %rax
cmpq %rax, %rdi
je 0x590b
callq 0x4360
movq -0x330(%rbp), %rdi
leaq -0x320(%rbp), %rax
cmpq %rax, %rdi
je 0x5923
callq 0x4360
movq -0x350(%rbp), %rdi
leaq -0x340(%rbp), %rax
cmpq %rax, %rdi
je 0x593b
callq 0x4360
movq -0x370(%rbp), %rdi
leaq -0x360(%rbp), %rax
cmpq %rax, %rdi
je 0x5953
callq 0x4360
movq -0x390(%rbp), %rdi
leaq -0x380(%rbp), %rax
cmpq %rax, %rdi
je 0x596b
callq 0x4360
movq -0x3b0(%rbp), %rdi
leaq -0x3a0(%rbp), %rax
cmpq %rax, %rdi
je 0x5983
callq 0x4360
movq -0x3d0(%rbp), %rdi
leaq -0x3c0(%rbp), %rax
cmpq %rax, %rdi
je 0x599b
callq 0x4360
movq -0x3f0(%rbp), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x59b3
callq 0x4360
movq -0x410(%rbp), %rdi
leaq -0x400(%rbp), %rax
cmpq %rax, %rdi
je 0x59cb
callq 0x4360
movq -0x430(%rbp), %rdi
leaq -0x420(%rbp), %rax
cmpq %rax, %rdi
je 0x59e3
callq 0x4360
movq -0x450(%rbp), %rdi
leaq -0x440(%rbp), %rax
cmpq %rax, %rdi
je 0x59fb
callq 0x4360
movq -0x470(%rbp), %rdi
leaq -0x460(%rbp), %rax
cmpq %rax, %rdi
je 0x5a13
callq 0x4360
movq -0x490(%rbp), %rdi
leaq -0x480(%rbp), %rax
cmpq %rax, %rdi
je 0x5a2b
callq 0x4360
movq -0x4b0(%rbp), %rdi
leaq -0x4a0(%rbp), %rax
cmpq %rax, %rdi
je 0x5a43
callq 0x4360
movq -0x4d0(%rbp), %rdi
leaq -0x4c0(%rbp), %rax
cmpq %rax, %rdi
je 0x5a5b
callq 0x4360
movq -0x4f0(%rbp), %rdi
leaq -0x4e0(%rbp), %rax
cmpq %rax, %rdi
je 0x5a73
callq 0x4360
movq -0x510(%rbp), %rdi
leaq -0x500(%rbp), %rax
cmpq %rax, %rdi
je 0x5a8b
callq 0x4360
movq -0x530(%rbp), %rdi
leaq -0x520(%rbp), %rax
cmpq %rax, %rdi
je 0x5aa3
callq 0x4360
movq -0x550(%rbp), %rdi
leaq -0x540(%rbp), %rax
cmpq %rax, %rdi
je 0x5abb
callq 0x4360
movq -0x570(%rbp), %rdi
leaq -0x560(%rbp), %rax
cmpq %rax, %rdi
je 0x5ad3
callq 0x4360
movq -0x590(%rbp), %rdi
leaq -0x580(%rbp), %rax
cmpq %rax, %rdi
je 0x5aeb
callq 0x4360
movq -0x5b0(%rbp), %rdi
leaq -0x5a0(%rbp), %rax
cmpq %rax, %rdi
je 0x5b03
callq 0x4360
movq -0x5d0(%rbp), %rdi
leaq -0x5c0(%rbp), %rax
cmpq %rax, %rdi
je 0x5b1b
callq 0x4360
movq -0x5f0(%rbp), %rdi
leaq -0x5e0(%rbp), %rax
cmpq %rax, %rdi
je 0x5b33
callq 0x4360
movq -0x830(%rbp), %rdi
cmpq %r13, %rdi
je 0x5b44
callq 0x4360
movq -0x850(%rbp), %rdi
cmpq %r12, %rdi
je 0x5b55
callq 0x4360
leaq -0x938(%rbp), %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0xa2dc
movq -0x8a0(%rbp), %rax
movq -0x898(%rbp), %rcx
subq %rax, %rcx
cmpq $0x60, %rcx
je 0x5ba0
movq 0x30443(%rip), %rax     # 0x35fc8
movq (%rax), %rsi
leaq -0x938(%rbp), %rdi
movl $0x1, %edx
callq 0xa87e
movq -0x8a0(%rbp), %rax
leaq -0xf8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x108(%rbp), %rdi
callq 0x866a
movq -0x8a0(%rbp), %rax
leaq -0xd8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq -0xe8(%rbp), %rdi
callq 0x866a
movq -0x8a0(%rbp), %rax
leaq -0x180(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
addq %rsi, %rdx
leaq -0x190(%rbp), %rdi
callq 0x866a
leaq -0x800(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x2266b(%rip), %rsi     # 0x28290
leaq 0x2266e(%rip), %rdx     # 0x2829a
leaq -0x810(%rbp), %rdi
callq 0x8708
leaq -0x938(%rbp), %rdi
leaq -0x810(%rbp), %rsi
callq 0xa396
movq %rax, %rdi
callq 0x9758
movl %eax, -0x44(%rbp)
movq -0x810(%rbp), %rdi
cmpq %r14, %rdi
je 0x5c67
callq 0x4360
leaq -0x7e0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x22622(%rip), %rsi     # 0x2829b
leaq 0x22623(%rip), %rdx     # 0x282a3
leaq -0x7f0(%rbp), %rdi
callq 0x8708
leaq -0x938(%rbp), %rdi
leaq -0x7f0(%rbp), %rsi
callq 0xa396
movq %rax, %rdi
callq 0x9758
movl %eax, -0x4c(%rbp)
movq -0x7f0(%rbp), %rdi
cmpq %r14, %rdi
je 0x5cbb
callq 0x4360
leaq -0x7c0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x225d7(%rip), %rsi     # 0x282a4
leaq 0x225da(%rip), %rdx     # 0x282ae
leaq -0x7d0(%rbp), %rdi
callq 0x8708
leaq -0x938(%rbp), %rdi
leaq -0x7d0(%rbp), %rsi
callq 0xa396
movq %rax, %rdi
callq 0x9758
movl %eax, -0x2c(%rbp)
movq -0x7d0(%rbp), %rdi
cmpq %r14, %rdi
je 0x5d0f
callq 0x4360
leaq -0x7a0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x2258e(%rip), %rsi     # 0x282af
leaq 0x22591(%rip), %rdx     # 0x282b9
leaq -0x7b0(%rbp), %rdi
callq 0x8708
leaq -0x938(%rbp), %rdi
leaq -0x7b0(%rbp), %rsi
callq 0xa396
movq %rax, %rdi
callq 0x9758
movl %eax, -0x58(%rbp)
movq -0x7b0(%rbp), %rdi
cmpq %r14, %rdi
je 0x5d63
callq 0x4360
leaq -0x780(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x22545(%rip), %rsi     # 0x282ba
leaq 0x22549(%rip), %rdx     # 0x282c5
leaq -0x790(%rbp), %rdi
callq 0x8708
leaq -0x938(%rbp), %rdi
leaq -0x790(%rbp), %rsi
callq 0xa396
movq %rax, %rdi
callq 0x9758
movl %eax, -0x48(%rbp)
movq -0x790(%rbp), %rdi
cmpq %r14, %rdi
je 0x5db7
callq 0x4360
leaq -0x760(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x2245b(%rip), %rsi     # 0x28224
leaq 0x22464(%rip), %rdx     # 0x28234
leaq -0x770(%rbp), %rdi
callq 0x8708
leaq -0x938(%rbp), %rdi
leaq -0x770(%rbp), %rsi
callq 0xa396
movb 0x4a(%rax), %al
movb %al, -0x38(%rbp)
movq -0x770(%rbp), %rdi
cmpq %r14, %rdi
je 0x5e06
callq 0x4360
leaq -0x740(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x22452(%rip), %rsi     # 0x2826a
leaq 0x22450(%rip), %rdx     # 0x2826f
leaq -0x750(%rbp), %rdi
callq 0x8708
leaq -0x938(%rbp), %rdi
leaq -0x750(%rbp), %rsi
callq 0xa396
movb 0x4a(%rax), %al
movb %al, -0x40(%rbp)
movq -0x750(%rbp), %rdi
cmpq %r14, %rdi
je 0x5e55
callq 0x4360
leaq -0x168(%rbp), %r15
movl $0x0, (%r15)
xorl %eax, %eax
movq %rax, 0x8(%r15)
movq %r15, 0x10(%r15)
movq %r15, 0x18(%r15)
movq %rax, 0x20(%r15)
leaq -0x720(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x2243f(%rip), %rsi     # 0x282c6
leaq 0x22441(%rip), %rdx     # 0x282cf
leaq -0x730(%rbp), %rdi
callq 0x8708
leaq -0x938(%rbp), %rdi
leaq -0x730(%rbp), %rsi
callq 0xa396
movb 0x4a(%rax), %bl
movq -0x730(%rbp), %rdi
cmpq %r14, %rdi
je 0x5ec1
callq 0x4360
testb %bl, %bl
je 0x5fca
xorps %xmm0, %xmm0
movaps %xmm0, -0xb20(%rbp)
movq $0x0, -0xb10(%rbp)
leaq -0x6e0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x223d6(%rip), %rsi     # 0x282c6
leaq 0x223d8(%rip), %rdx     # 0x282cf
leaq -0x6f0(%rbp), %rdi
callq 0x8708
leaq -0x938(%rbp), %rdi
leaq -0x6f0(%rbp), %rsi
callq 0xa396
movq %rax, %rdi
callq 0x9822
leaq -0x700(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x710(%rbp), %rdi
callq 0x866a
leaq -0x710(%rbp), %rdi
leaq -0xb20(%rbp), %rsi
callq 0x20284
movq -0x710(%rbp), %rdi
cmpq %r12, %rdi
je 0x5f64
callq 0x4360
movq -0x6f0(%rbp), %rdi
cmpq %r14, %rdi
je 0x5f75
callq 0x4360
movq -0xb20(%rbp), %r14
movq -0xb18(%rbp), %rbx
leaq -0x170(%rbp), %rax
movq %rax, -0x880(%rbp)
cmpq %rbx, %r14
je 0x5fbe
leaq -0x170(%rbp), %r12
leaq -0x880(%rbp), %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq 0x87f6
addq $0x20, %r14
cmpq %rbx, %r14
jne 0x5fa4
leaq -0xb20(%rbp), %rdi
callq 0x753c
movq 0x30017(%rip), %rdi     # 0x35fe8
movq (%rdi), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x8(%rdi,%rcx)
movq -0x18(%rax), %rax
orl $0x1, 0x18(%rdi,%rax)
leaq 0x222df(%rip), %rsi     # 0x282d0
movl $0x16, %edx
callq 0x4410
movq -0x108(%rbp), %rsi
movq -0x100(%rbp), %rdx
movq 0x2ffd8(%rip), %rdi     # 0x35fe8
callq 0x4410
movq %rax, %rdi
callq 0x4180
movq 0x2ffc4(%rip), %rdi     # 0x35fe8
leaq 0x222bc(%rip), %rsi     # 0x282e7
movl $0x20, %edx
callq 0x4410
movq -0xe8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
movq 0x2ff9e(%rip), %rdi     # 0x35fe8
callq 0x4410
movq %rax, %rdi
callq 0x4180
movq 0x2ff8a(%rip), %rdi     # 0x35fe8
leaq 0x222a3(%rip), %rsi     # 0x28308
movl $0x1e, %edx
callq 0x4410
movq -0x190(%rbp), %rsi
movq -0x188(%rbp), %rdx
movq 0x2ff64(%rip), %rdi     # 0x35fe8
callq 0x4410
movq %rax, %rdi
callq 0x4180
movq 0x2ff50(%rip), %rdi     # 0x35fe8
leaq 0x22288(%rip), %rsi     # 0x28327
movl $0x26, %edx
callq 0x4410
movl -0x44(%rbp), %esi
movq 0x2ff35(%rip), %rdi     # 0x35fe8
movq %rsi, -0x80(%rbp)
callq 0x4260
movq %rax, %rdi
callq 0x4180
movq 0x2ff1d(%rip), %rdi     # 0x35fe8
leaq 0x2227c(%rip), %rsi     # 0x2834e
movl $0x33, %edx
callq 0x4410
movl -0x2c(%rbp), %esi
movq 0x2ff02(%rip), %rdi     # 0x35fe8
callq 0x4260
movq %rax, %rdi
callq 0x4180
movq 0x2feee(%rip), %rdi     # 0x35fe8
leaq 0x22281(%rip), %rsi     # 0x28382
movl $0x24, %edx
callq 0x4410
movl -0x4c(%rbp), %esi
movq 0x2fed3(%rip), %rdi     # 0x35fe8
callq 0x4260
movq %rax, %rdi
callq 0x4180
cmpq $0x0, -0x148(%rbp)
je 0x6176
movq 0x2feb5(%rip), %rdi     # 0x35fe8
leaq 0x2226d(%rip), %rsi     # 0x283a7
movl $0x1a, %edx
callq 0x4410
movq -0x148(%rbp), %rsi
movq 0x2fe96(%rip), %rdi     # 0x35fe8
callq 0x4260
movq %rax, %r14
leaq 0x2243c(%rip), %rsi     # 0x2859d
movl $0x9, %edx
movq %rax, %rdi
callq 0x4410
movq %r14, %rdi
callq 0x4180
movq 0x2fe6b(%rip), %rdi     # 0x35fe8
leaq 0x2223e(%rip), %rsi     # 0x283c2
movl $0x1f, %edx
callq 0x4410
movl -0x58(%rbp), %esi
movq 0x2fe50(%rip), %rbx     # 0x35fe8
movq %rbx, %rdi
movq %rsi, -0x58(%rbp)
callq 0x4260
movq %rax, %rdi
callq 0x4180
movl -0x48(%rbp), %eax
movl %eax, %ecx
movq %rcx, -0x88(%rbp)
testl %eax, %eax
jne 0x61d2
leaq 0x2225c(%rip), %rsi     # 0x2841f
movl $0x27, %edx
movq %rbx, %rdi
callq 0x4410
jmp 0x6214
movq 0x2fe0f(%rip), %rdi     # 0x35fe8
leaq 0x22202(%rip), %rsi     # 0x283e2
movl $0x3c, %edx
callq 0x4410
movq 0x2fdf7(%rip), %rdi     # 0x35fe8
movq -0x88(%rbp), %rsi
callq 0x4260
movq %rax, %rbx
leaq 0x22017(%rip), %rsi     # 0x2821e
movl $0x5, %edx
movq %rax, %rdi
callq 0x4410
movq %rbx, %rdi
callq 0x4180
movq 0x2fdc5(%rip), %rdi     # 0x35fe8
leaq 0x2221d(%rip), %rsi     # 0x28447
movl $0x22, %edx
callq 0x4410
movzbl -0x38(%rbp), %esi
movq 0x2fda9(%rip), %rdi     # 0x35fe8
callq 0x4600
movq %rax, %rdi
callq 0x4180
movq 0x2fd95(%rip), %rdi     # 0x35fe8
leaq 0x22210(%rip), %rsi     # 0x2846a
movl $0x1c, %edx
callq 0x4410
movzbl -0x40(%rbp), %ebx
movq 0x2fd79(%rip), %rdi     # 0x35fe8
movl %ebx, %esi
callq 0x4600
movq %rax, %rdi
callq 0x4180
leaq -0x878(%rbp), %r14
xorl %eax, %eax
movl %eax, (%r14)
movq %rax, 0x8(%r14)
movq %r14, 0x10(%r14)
movq %r14, 0x18(%r14)
movq %rax, 0x20(%r14)
leaq -0x130(%rbp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq -0x638(%rbp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq -0x668(%rbp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq 0x2fcfc(%rip), %rdi     # 0x35fe8
leaq 0x22194(%rip), %rsi     # 0x28487
movl $0x13, %edx
callq 0x4410
movq -0xe8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
movq 0x2fcd6(%rip), %rdi     # 0x35fe8
callq 0x4410
movq %rax, %rdi
callq 0x4180
leaq -0x6c0(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0xe8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x6d0(%rbp), %rdi
callq 0x866a
leaq -0x6d0(%rbp), %rdi
leaq -0x138(%rbp), %rsi
leaq -0x78(%rbp), %rdx
movl %ebx, %ecx
callq 0x1fa62
movl %eax, %r12d
movq -0x6d0(%rbp), %rdi
cmpq %r13, %rdi
je 0x6374
callq 0x4360
testl %r12d, %r12d
jns 0x63a2
movq 0x2fc68(%rip), %rdi     # 0x35fe8
leaq 0x22114(%rip), %rsi     # 0x2849b
movl $0x27, %edx
callq 0x4410
movq 0x2fc50(%rip), %rdi     # 0x35fe8
callq 0x4180
jmp 0x6555
movq 0x2fc3f(%rip), %rdi     # 0x35fe8
leaq 0x22676(%rip), %rsi     # 0x28a26
movl $0x1, %edx
callq 0x4410
movq 0x2fc27(%rip), %rdi     # 0x35fe8
leaq 0x22013(%rip), %rsi     # 0x283db
movl $0x6, %edx
callq 0x4410
movq -0x110(%rbp), %rsi
movq 0x2fc08(%rip), %rdi     # 0x35fe8
callq 0x4260
movq %rax, %rdi
callq 0x4180
movq 0x2fbf4(%rip), %rdi     # 0x35fe8
leaq 0x2262b(%rip), %rsi     # 0x28a26
movl $0x1, %edx
callq 0x4410
movq 0x2fbdc(%rip), %rdi     # 0x35fe8
leaq 0x220b0(%rip), %rsi     # 0x284c3
movl $0x17, %edx
callq 0x4410
movl -0x78(%rbp), %esi
movq 0x2fbc1(%rip), %rdi     # 0x35fe8
callq 0x4650
movq %rax, %rdi
callq 0x4180
leaq -0x138(%rbp), %rdi
leaq -0x880(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl %ebx, %ecx
callq 0x72d5
leaq -0x998(%rbp), %r9
movl $0x0, (%r9)
xorl %eax, %eax
movq %rax, 0x8(%r9)
movq %r9, 0x10(%r9)
movq %r9, 0x18(%r9)
movq %rax, 0x20(%r9)
movq -0x158(%rbp), %rdi
movq -0x868(%rbp), %rdx
leaq -0x9a0(%rbp), %r8
movq %r15, %rsi
movq %r14, %rcx
callq 0x8a34
leaq -0x170(%rbp), %rdi
leaq -0x9a0(%rbp), %rsi
callq 0x79f0
movq 0x2fb42(%rip), %rdi     # 0x35fe8
leaq 0x2202e(%rip), %rsi     # 0x284db
movl $0x12, %edx
callq 0x4410
movq -0x108(%rbp), %rsi
movq -0x100(%rbp), %rdx
movq 0x2fb1c(%rip), %rdi     # 0x35fe8
callq 0x4410
movq %rax, %rdi
callq 0x4180
leaq -0x6a0(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x108(%rbp), %rsi
movq -0x100(%rbp), %rdx
addq %rsi, %rdx
leaq -0x6b0(%rbp), %rdi
callq 0x866a
leaq -0x6b0(%rbp), %rdi
leaq -0x670(%rbp), %rsi
leaq -0x74(%rbp), %rdx
movl %ebx, %ecx
callq 0x1fa62
movl %eax, %ebx
movq -0x6b0(%rbp), %rdi
cmpq %r14, %rdi
je 0x652d
callq 0x4360
testl %ebx, %ebx
jns 0x655f
movq 0x2fab0(%rip), %rdi     # 0x35fe8
leaq 0x21faf(%rip), %rsi     # 0x284ee
movl $0x26, %edx
callq 0x4410
movq 0x2fa98(%rip), %rdi     # 0x35fe8
callq 0x4180
movl $0x1, %edi
callq 0x4430
movq 0x2fa82(%rip), %rdi     # 0x35fe8
leaq 0x224b9(%rip), %rsi     # 0x28a26
movl $0x1, %edx
callq 0x4410
movq 0x2fa6a(%rip), %rdi     # 0x35fe8
leaq 0x21f90(%rip), %rsi     # 0x28515
movl $0xf, %edx
callq 0x4410
movq -0x648(%rbp), %rsi
movq 0x2fa4b(%rip), %rdi     # 0x35fe8
callq 0x4260
movq %rax, %rdi
callq 0x4180
movq 0x2fa37(%rip), %rdi     # 0x35fe8
leaq 0x2246e(%rip), %rsi     # 0x28a26
movl $0x1, %edx
callq 0x4410
movq 0x2fa1f(%rip), %rdi     # 0x35fe8
leaq 0x21f55(%rip), %rsi     # 0x28525
movl $0x15, %edx
callq 0x4410
movl -0x74(%rbp), %esi
movq 0x2fa04(%rip), %rdi     # 0x35fe8
callq 0x4650
movq %rax, %rdi
callq 0x4180
cmpb $0x0, -0x38(%rbp)
je 0x6600
leaq 0x1378d(%rip), %rax     # 0x19d8b
jmp 0x6607
leaq 0x131c0(%rip), %rax     # 0x197c7
leaq -0x98(%rbp), %rdi
movq %rax, (%rdi)
movb -0x40(%rbp), %al
movb %al, 0x8(%rdi)
leaq -0x968(%rbp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq -0x670(%rbp), %rsi
leaq -0x138(%rbp), %rdx
leaq -0x640(%rbp), %rcx
leaq -0x970(%rbp), %r8
callq 0x204f0
movsd %xmm0, -0x38(%rbp)
leaq -0x970(%rbp), %rdi
callq 0x7d1c
movq 0x2f978(%rip), %rdi     # 0x35fe8
callq 0x4180
movq %rax, %rbx
leaq 0x21ebc(%rip), %rsi     # 0x2853b
movl $0x14, %edx
movq %rax, %rdi
callq 0x4410
movq %rbx, %rdi
movsd -0x38(%rbp), %xmm0
callq 0x45c0
movq %rax, %rdi
callq 0x4180
movq 0x2f940(%rip), %rdi     # 0x35fe8
callq 0x4180
movq %rax, %rbx
leaq 0x21e99(%rip), %rsi     # 0x28550
movl $0x2d, %edx
movq %rax, %rdi
callq 0x4410
movq %rbx, %rdi
callq 0x4180
movl $0xaaaaaaab, %eax       # imm = 0xAAAAAAAB
imulq -0x80(%rbp), %rax
shrq $0x21, %rax
movq %rax, -0x140(%rbp)
movl $0x1, -0x38(%rbp)
leaq -0x138(%rbp), %r15
movabsq $-0x3333333333333333, %r13 # imm = 0xCCCCCCCCCCCCCCCD
movl $0xa, %edx
movq 0x2f8e3(%rip), %rdi     # 0x35fe8
leaq 0x21e72(%rip), %rsi     # 0x2857e
callq 0x4410
movq 0x2f8d0(%rip), %rdi     # 0x35fe8
movl -0x38(%rbp), %esi
callq 0x4650
movq %rax, %rdi
callq 0x4180
movl $0x1d, %edx
movq 0x2f8b4(%rip), %rdi     # 0x35fe8
leaq 0x21e4e(%rip), %rsi     # 0x28589
callq 0x4410
movq 0x2f8a1(%rip), %rdi     # 0x35fe8
callq 0x4180
movl $0x0, -0xc0(%rbp)
xorl %ecx, %ecx
movq %rcx, -0xb8(%rbp)
leaq -0xc0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq %rax, -0xa8(%rbp)
movq %rcx, -0xa0(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, (%rsp)
leaq -0x98(%rbp), %rdi
leaq -0x670(%rbp), %rsi
movq %r15, %rdx
leaq -0xc8(%rbp), %rcx
movq -0x140(%rbp), %r8
leaq -0x170(%rbp), %r9
movsd 0x21859(%rip), %xmm0    # 0x28008
callq 0x2112a
movq -0x80(%rbp), %rcx
subq -0xa0(%rbp), %rcx
shrq $0x2, %rcx
leaq -0x98(%rbp), %rdi
movq %r15, %rsi
leaq -0xc8(%rbp), %rdx
leaq -0x170(%rbp), %r8
movl -0x2c(%rbp), %r9d
callq 0x20efa
leaq -0x98(%rbp), %rdi
movq %r15, %rsi
leaq -0xc8(%rbp), %rdx
movl -0x44(%rbp), %ecx
leaq -0x170(%rbp), %r8
movl -0x2c(%rbp), %r9d
callq 0x20d5c
movl $0x1c, %edx
movq 0x2f7d4(%rip), %rdi     # 0x35fe8
leaq 0x21d8c(%rip), %rsi     # 0x285a7
callq 0x4410
movq -0xa0(%rbp), %rsi
movq 0x2f7ba(%rip), %rdi     # 0x35fe8
callq 0x4260
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x220e6(%rip), %rsi     # 0x2892b
callq 0x4410
movq %rbx, %rdi
callq 0x4180
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movq $0x0, -0x60(%rbp)
leaq -0x98(%rbp), %rdi
leaq -0x670(%rbp), %rsi
movq %r15, %rdx
leaq -0xc8(%rbp), %rcx
leaq -0x640(%rbp), %r8
leaq -0x70(%rbp), %r9
callq 0x213c8
movsd %xmm0, -0x40(%rbp)
movl $0x2d, %edx
movq 0x2f74e(%rip), %rdi     # 0x35fe8
leaq 0x21d23(%rip), %rsi     # 0x285c4
callq 0x4410
movq 0x2f73b(%rip), %rdi     # 0x35fe8
movsd -0x40(%rbp), %xmm0
callq 0x45c0
movq %rax, %rdi
callq 0x4180
movq -0x70(%rbp), %rcx
cmpq %rcx, -0x68(%rbp)
je 0x6a9b
xorl %eax, %eax
movl $0x1, %r14d
xorl %r12d, %r12d
leaq (%rax,%rax,4), %rbx
cmpq $0x1, 0x8(%rcx,%rbx,8)
je 0x6a78
leaq (%rcx,%rbx,8), %rsi
movq %r15, %rdi
callq 0x87a6
movq -0x70(%rbp), %rcx
leaq -0x130(%rbp), %rdx
cmpq %rdx, %rax
je 0x6a78
leaq (%rcx,%rbx,8), %rsi
leaq -0x640(%rbp), %rdi
callq 0x87a6
movq -0x70(%rbp), %rcx
leaq -0x638(%rbp), %rdx
cmpq %rdx, %rax
je 0x6a78
leaq (%rcx,%rbx,8), %rsi
movq %r15, %rdi
callq 0x7594
shlq $0x3, %rbx
addq -0x70(%rbp), %rbx
leaq -0x640(%rbp), %rdi
movq %rbx, %rsi
callq 0x7594
cmpl $0x0, -0x48(%rbp)
je 0x6a5e
movq -0x618(%rbp), %rax
xorl %edx, %edx
divq -0x88(%rbp)
testq %rdx, %rdx
jne 0x6a5e
movq %r15, %rdi
leaq -0x640(%rbp), %rsi
callq 0x7d34
movq %r15, %rdi
movsd 0x21684(%rip), %xmm0    # 0x28010
callq 0x20596
leaq -0xb20(%rbp), %rdi
callq 0x44c0
movl $0xa, %edx
leaq -0xb20(%rbp), %rdi
leaq 0x21c42(%rip), %rsi     # 0x285f2
callq 0x4410
leaq -0xb20(%rbp), %rdi
movl -0x38(%rbp), %esi
callq 0x4650
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x21c25(%rip), %rsi     # 0x285fb
callq 0x4410
movq -0x110(%rbp), %rsi
movq %rbx, %rdi
callq 0x4260
movl $0x6, %edx
movq %rax, %rdi
leaq 0x21c04(%rip), %rsi     # 0x285fd
callq 0x4410
leaq -0x610(%rbp), %rdi
leaq -0xb18(%rbp), %rsi
callq 0x45a0
leaq -0x610(%rbp), %rdi
movq %r15, %rsi
xorl %edx, %edx
movl $0x6, %ecx
callq 0x1fec2
movq -0x610(%rbp), %rdi
leaq -0x600(%rbp), %rax
cmpq %rax, %rdi
je 0x6a3f
callq 0x4360
leaq -0xb20(%rbp), %rdi
movq 0x2f56b(%rip), %rsi     # 0x35fb8
callq 0x41c0
leaq -0xab0(%rbp), %rdi
callq 0x4110
incl %r12d
cmpl -0x4c(%rbp), %r12d
jae 0x6a96
movq -0x58(%rbp), %rax
cmpq %rax, -0x110(%rbp)
jbe 0x6a96
movq -0x70(%rbp), %rcx
movl %r14d, %eax
movq -0x68(%rbp), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %r13, %rdx
incl %r14d
cmpq %rax, %rdx
ja 0x68d8
movl %r12d, %ebx
jmp 0x6a9d
xorl %ebx, %ebx
leaq -0x98(%rbp), %rdi
leaq -0x670(%rbp), %rsi
movq %r15, %rdx
movl $0x1, %ecx
callq 0x203f4
movsd %xmm0, -0x40(%rbp)
movq %r15, %rdi
leaq -0x170(%rbp), %rsi
callq 0x74cc
movl $0x24, %edx
movq 0x2f510(%rip), %rdi     # 0x35fe8
leaq 0x21b25(%rip), %rsi     # 0x28604
callq 0x4410
movq 0x2f4fd(%rip), %rdi     # 0x35fe8
movq %rbx, %rsi
callq 0x4260
movq %rax, %rdi
callq 0x4180
movl $0x19, %edx
movq 0x2f4e1(%rip), %rdi     # 0x35fe8
leaq 0x21b1b(%rip), %rsi     # 0x28629
callq 0x4410
movq -0x110(%rbp), %rsi
movq 0x2f4c7(%rip), %rdi     # 0x35fe8
callq 0x4260
movq %rax, %rdi
callq 0x4180
movl $0x1f, %edx
movq 0x2f4ae(%rip), %rdi     # 0x35fe8
leaq 0x21b02(%rip), %rsi     # 0x28643
callq 0x4410
movq 0x2f49b(%rip), %rdi     # 0x35fe8
movsd -0x40(%rbp), %xmm0
callq 0x45c0
movq %rax, %rdi
callq 0x4180
movq -0x58(%rbp), %rax
cmpq %rax, -0x110(%rbp)
jbe 0x6b89
incl -0x38(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x75be
leaq -0xc8(%rbp), %rdi
callq 0x7d1c
jmp 0x66f9
movq 0x2f458(%rip), %rdi     # 0x35fe8
leaq 0x21acc(%rip), %rsi     # 0x28663
movl $0x1b, %edx
callq 0x4410
movq 0x2f440(%rip), %rdi     # 0x35fe8
callq 0x4180
leaq -0x70(%rbp), %rdi
callq 0x75be
leaq -0xc8(%rbp), %rdi
callq 0x7d1c
leaq -0x680(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x190(%rbp), %rsi
movq -0x188(%rbp), %rdx
addq %rsi, %rdx
leaq -0x690(%rbp), %rdi
callq 0x866a
leaq -0x690(%rbp), %rdi
leaq -0x138(%rbp), %rsi
xorl %edx, %edx
movl $0x6, %ecx
callq 0x1fec2
leaq -0x690(%rbp), %rdi
callq 0x4738
xorl %edi, %edi
callq 0x4430
movq %rax, %rbx
movq -0x690(%rbp), %rdi
jmp 0x6cb3
jmp 0x6ca4
jmp 0x6c75
jmp 0x6c75
movq %rax, %rbx
movq -0x610(%rbp), %rdi
leaq -0x600(%rbp), %rax
cmpq %rax, %rdi
je 0x6c4c
callq 0x4360
jmp 0x6c4c
movq %rax, %rbx
movq 0x2f365(%rip), %rsi     # 0x35fb8
leaq -0xb20(%rbp), %rdi
callq 0x41c0
leaq -0xab0(%rbp), %rdi
callq 0x4110
jmp 0x6c78
jmp 0x6c75
jmp 0x6c75
jmp 0x6c75
jmp 0x6c75
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x75be
jmp 0x6c86
movq %rax, %rbx
leaq -0xc8(%rbp), %rdi
jmp 0x6c9d
jmp 0x6ca4
jmp 0x6ca4
movq %rax, %rbx
leaq -0x970(%rbp), %rdi
callq 0x7d1c
jmp 0x6cbd
movq %rax, %rbx
jmp 0x6cbd
movq %rax, %rbx
movq -0x6b0(%rbp), %rdi
cmpq %r14, %rdi
je 0x6cbd
callq 0x4360
leaq -0x9a0(%rbp), %rdi
callq 0x7d1c
jmp 0x6ce6
jmp 0x6ce3
movq %rax, %rbx
movq -0x6d0(%rbp), %rdi
cmpq %r13, %rdi
je 0x6ce6
callq 0x4360
jmp 0x6ce6
movq %rax, %rbx
leaq -0x670(%rbp), %rdi
callq 0x84ea
leaq -0x640(%rbp), %rdi
callq 0x84ea
leaq -0x138(%rbp), %rdi
callq 0x84ea
leaq -0x880(%rbp), %rdi
callq 0x7d1c
jmp 0x6d72
jmp 0x6d6f
jmp 0x6d48
movq %rax, %rbx
movq -0x710(%rbp), %rdi
cmpq %r12, %rdi
je 0x6d35
callq 0x4360
jmp 0x6d35
movq %rax, %rbx
movq -0x6f0(%rbp), %rdi
cmpq %r14, %rdi
je 0x6d4b
callq 0x4360
jmp 0x6d4b
movq %rax, %rbx
leaq -0xb20(%rbp), %rdi
callq 0x753c
jmp 0x6d72
movq %rax, %rbx
movq -0x730(%rbp), %rdi
cmpq %r14, %rdi
je 0x6d72
callq 0x4360
jmp 0x6d72
movq %rax, %rbx
leaq -0x170(%rbp), %rdi
callq 0x7d1c
jmp 0x6ded
movq %rax, %rbx
movq -0x750(%rbp), %rdi
jmp 0x6dde
jmp 0x6dea
movq %rax, %rbx
movq -0x770(%rbp), %rdi
jmp 0x6dde
jmp 0x6dea
movq %rax, %rbx
movq -0x790(%rbp), %rdi
jmp 0x6dde
jmp 0x6dea
movq %rax, %rbx
movq -0x7b0(%rbp), %rdi
jmp 0x6dde
jmp 0x6dea
movq %rax, %rbx
movq -0x7d0(%rbp), %rdi
jmp 0x6dde
jmp 0x6dea
movq %rax, %rbx
movq -0x7f0(%rbp), %rdi
jmp 0x6dde
jmp 0x6dea
movq %rax, %rbx
movq -0x810(%rbp), %rdi
cmpq %r14, %rdi
je 0x6ded
callq 0x4360
jmp 0x6ded
movq %rax, %rbx
movq -0x190(%rbp), %rdi
leaq -0x180(%rbp), %rax
cmpq %rax, %rdi
je 0x6e0a
callq 0x4360
jmp 0x6e0a
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x6e27
callq 0x4360
jmp 0x6e27
movq %rax, %rbx
movq -0x108(%rbp), %rdi
leaq -0xf8(%rbp), %rax
cmpq %rax, %rdi
jne 0x727b
jmp 0x7285
jmp 0x7282
jmp 0x7282
movq %rax, %rbx
movq -0x1b0(%rbp), %rdi
leaq -0x1a0(%rbp), %rax
cmpq %rax, %rdi
je 0x6e6d
callq 0x4360
jmp 0x6e6d
movq %rax, %rbx
movq -0x1d0(%rbp), %rdi
leaq -0x1c0(%rbp), %rax
cmpq %rax, %rdi
je 0x6e8a
callq 0x4360
jmp 0x6e8a
movq %rax, %rbx
movq -0x1f0(%rbp), %rdi
leaq -0x1e0(%rbp), %rax
cmpq %rax, %rdi
je 0x6ea7
callq 0x4360
jmp 0x6ea7
movq %rax, %rbx
movq -0x210(%rbp), %rdi
leaq -0x200(%rbp), %rax
cmpq %rax, %rdi
je 0x6ec6
callq 0x4360
jmp 0x6ec6
jmp 0x6ec3
movq %rax, %rbx
movq -0x230(%rbp), %rdi
leaq -0x220(%rbp), %rax
cmpq %rax, %rdi
je 0x6ee3
callq 0x4360
jmp 0x6ee3
movq %rax, %rbx
movq -0x250(%rbp), %rdi
leaq -0x240(%rbp), %rax
cmpq %rax, %rdi
je 0x6f00
callq 0x4360
jmp 0x6f00
movq %rax, %rbx
movq -0x270(%rbp), %rdi
leaq -0x260(%rbp), %rax
cmpq %rax, %rdi
je 0x6f1d
callq 0x4360
jmp 0x6f1d
movq %rax, %rbx
movq -0x290(%rbp), %rdi
leaq -0x280(%rbp), %rax
cmpq %rax, %rdi
je 0x6f3c
callq 0x4360
jmp 0x6f3c
jmp 0x6f39
movq %rax, %rbx
movq -0x2b0(%rbp), %rdi
leaq -0x2a0(%rbp), %rax
cmpq %rax, %rdi
je 0x6f59
callq 0x4360
jmp 0x6f59
movq %rax, %rbx
movq -0x2d0(%rbp), %rdi
leaq -0x2c0(%rbp), %rax
cmpq %rax, %rdi
je 0x6f76
callq 0x4360
jmp 0x6f76
movq %rax, %rbx
movq -0x2f0(%rbp), %rdi
leaq -0x2e0(%rbp), %rax
cmpq %rax, %rdi
je 0x6f93
callq 0x4360
jmp 0x6f93
movq %rax, %rbx
movq -0x310(%rbp), %rdi
leaq -0x300(%rbp), %rax
cmpq %rax, %rdi
je 0x6fb2
callq 0x4360
jmp 0x6fb2
jmp 0x6faf
movq %rax, %rbx
movq -0x330(%rbp), %rdi
leaq -0x320(%rbp), %rax
cmpq %rax, %rdi
je 0x6fcf
callq 0x4360
jmp 0x6fcf
movq %rax, %rbx
movq -0x350(%rbp), %rdi
leaq -0x340(%rbp), %rax
cmpq %rax, %rdi
je 0x6fec
callq 0x4360
jmp 0x6fec
movq %rax, %rbx
movq -0x370(%rbp), %rdi
leaq -0x360(%rbp), %rax
cmpq %rax, %rdi
je 0x7009
callq 0x4360
jmp 0x7009
movq %rax, %rbx
movq -0x390(%rbp), %rdi
leaq -0x380(%rbp), %rax
cmpq %rax, %rdi
je 0x7028
callq 0x4360
jmp 0x7028
jmp 0x7025
movq %rax, %rbx
movq -0x3b0(%rbp), %rdi
leaq -0x3a0(%rbp), %rax
cmpq %rax, %rdi
je 0x7045
callq 0x4360
jmp 0x7045
movq %rax, %rbx
movq -0x3d0(%rbp), %rdi
leaq -0x3c0(%rbp), %rax
cmpq %rax, %rdi
je 0x7062
callq 0x4360
jmp 0x7062
movq %rax, %rbx
movq -0x3f0(%rbp), %rdi
leaq -0x3e0(%rbp), %rax
cmpq %rax, %rdi
je 0x707f
callq 0x4360
jmp 0x707f
movq %rax, %rbx
movq -0x410(%rbp), %rdi
leaq -0x400(%rbp), %rax
cmpq %rax, %rdi
je 0x709e
callq 0x4360
jmp 0x709e
jmp 0x709b
movq %rax, %rbx
movq -0x430(%rbp), %rdi
leaq -0x420(%rbp), %rax
cmpq %rax, %rdi
je 0x70bb
callq 0x4360
jmp 0x70bb
movq %rax, %rbx
movq -0x450(%rbp), %rdi
leaq -0x440(%rbp), %rax
cmpq %rax, %rdi
je 0x70d8
callq 0x4360
jmp 0x70d8
movq %rax, %rbx
movq -0x470(%rbp), %rdi
leaq -0x460(%rbp), %rax
cmpq %rax, %rdi
je 0x70f5
callq 0x4360
jmp 0x70f5
movq %rax, %rbx
movq -0x490(%rbp), %rdi
leaq -0x480(%rbp), %rax
cmpq %rax, %rdi
je 0x7114
callq 0x4360
jmp 0x7114
jmp 0x7111
movq %rax, %rbx
movq -0x4b0(%rbp), %rdi
leaq -0x4a0(%rbp), %rax
cmpq %rax, %rdi
je 0x7131
callq 0x4360
jmp 0x7131
movq %rax, %rbx
movq -0x4d0(%rbp), %rdi
leaq -0x4c0(%rbp), %rax
cmpq %rax, %rdi
je 0x714e
callq 0x4360
jmp 0x714e
movq %rax, %rbx
movq -0x4f0(%rbp), %rdi
leaq -0x4e0(%rbp), %rax
cmpq %rax, %rdi
je 0x716b
callq 0x4360
jmp 0x716b
movq %rax, %rbx
movq -0x510(%rbp), %rdi
leaq -0x500(%rbp), %rax
cmpq %rax, %rdi
je 0x718a
callq 0x4360
jmp 0x718a
jmp 0x7187
movq %rax, %rbx
movq -0x530(%rbp), %rdi
leaq -0x520(%rbp), %rax
cmpq %rax, %rdi
je 0x71a7
callq 0x4360
jmp 0x71a7
movq %rax, %rbx
movq -0x550(%rbp), %rdi
leaq -0x540(%rbp), %rax
cmpq %rax, %rdi
je 0x71c4
callq 0x4360
jmp 0x71c4
movq %rax, %rbx
movq -0x570(%rbp), %rdi
leaq -0x560(%rbp), %rax
cmpq %rax, %rdi
je 0x71e1
callq 0x4360
jmp 0x71e1
movq %rax, %rbx
movq -0x590(%rbp), %rdi
leaq -0x580(%rbp), %rax
cmpq %rax, %rdi
je 0x7200
callq 0x4360
jmp 0x7200
jmp 0x71fd
movq %rax, %rbx
movq -0x5b0(%rbp), %rdi
leaq -0x5a0(%rbp), %rax
cmpq %rax, %rdi
je 0x721d
callq 0x4360
jmp 0x721d
movq %rax, %rbx
movq -0x5d0(%rbp), %rdi
leaq -0x5c0(%rbp), %rax
cmpq %rax, %rdi
je 0x723a
callq 0x4360
jmp 0x723a
movq %rax, %rbx
movq -0x5f0(%rbp), %rdi
leaq -0x5e0(%rbp), %rax
cmpq %rax, %rdi
je 0x7257
callq 0x4360
jmp 0x7257
movq %rax, %rbx
movq -0x830(%rbp), %rdi
cmpq %r13, %rdi
je 0x726f
callq 0x4360
jmp 0x726f
jmp 0x726c
movq %rax, %rbx
movq -0x850(%rbp), %rdi
cmpq %r12, %rdi
je 0x7285
callq 0x4360
jmp 0x7285
movq %rax, %rbx
leaq -0x8a0(%rbp), %rdi
callq 0x753c
leaq -0x8d0(%rbp), %rdi
callq 0x8536
leaq -0x900(%rbp), %rdi
callq 0x85a0
leaq -0x918(%rbp), %r14
movq %r14, %rdi
callq 0x8502
movq -0x20(%r14), %rdi
leaq -0x928(%rbp), %rax
cmpq %rax, %rdi
je 0x72cd
callq 0x4360
movq %rbx, %rdi
callq 0x4680