// File: /workspace/github_c_makefile_star2_O3/perdisci[P]LSH/lsh_example.cpp
// Function: main
int main(int argc, char* argv[]) {
    
    unsigned mh_sig_len;
    unsigned lsh_bands;
    unsigned ngram_len;
    std::string corpus_dir;
    
    namespace po = boost::program_options;
    po::options_description desc("Options");
    desc.add_options()
    ("help,h", "Help message")
    ("mh_sig_len,l", po::value<unsigned>(&mh_sig_len)->default_value(240), "Length of minhash signature")
    ("lsh_bands,b", po::value<unsigned>(&lsh_bands)->default_value(80), "Number of bands used for LSH")
    ("ngram_len,n", po::value<unsigned>(&ngram_len)->default_value(1), "ngram length (number of grams)")
    ("corpus_dir,d", po::value<std::string>(), "Directory containing the documents")
    ;
    
    po::variables_map vm;
    po::store(po::parse_command_line(argc, argv, desc), vm);
    po::notify(vm);
    
    if (vm.count("help")) {
        std::cout << desc << std::endl;
        return 1;
    }
    

    if (!vm.count("corpus_dir")) {
        std::cout << "Error: corpus_dir must be provided!" << std::endl;
        std::cout << desc << std::endl;
        return 1;
    }

    corpus_dir = vm["corpus_dir"].as<std::string>();
    
    rp::LSH lsh(mh_sig_len,lsh_bands,ngram_len);
    std::cerr << "parameters:" << mh_sig_len << " | " << lsh_bands << " | " << ngram_len << std::endl;
    
    
    std::cerr << "Computing minhash for files in : " << corpus_dir << std::endl;
    lsh.minhash_corpus(corpus_dir,true,true);
    std::ofstream of;
    of.open("minhash_sigs.csv");
    rp::MinHashMap mh_map = lsh.get_minhash_signatures();
    for (rp::MinHashMap::value_type itm : mh_map) {
        of << itm.first;
        for(uint32_t v : itm.second)
            of << ", " << v;
        of << std::endl;
    }
    of.close();
    
    std::cerr << "Computing bands  " << lsh_bands << std::endl;
    lsh.compute_bands();
    std::cerr << "Computing candidates " << std::endl;
    lsh.compute_candidate_pairs();
    std::vector<rp::CandidatePair> cpv = lsh.get_candidate_pairs();
    
    std::cerr << "Computing minhash similarity: " << cpv.size() << std::endl;
    lsh.compute_minhash_similarities();
    of.open("minhash_sim.csv");
    std::vector<float> jsvmh = lsh.get_minhash_similarities();
    for(int i=0; i<cpv.size(); i++)
        of << cpv[i].first << "," << cpv[i].second << "," << jsvmh[i] << std::endl;
    of.close();
    
    // we can also compute the similarity based on the 
    // original document ngrams
    // this is available if lsh.minhash_corpus() was called with keep_ngrams set to true
    of.open("ngram_sim.csv");
    std::cerr << "Computing ngram similarity: " << cpv.size() << std::endl;
    lsh.compute_ngram_similarities();
    std::vector<float> jsvng = lsh.get_ngram_similarities();
    for(int i=0; i<cpv.size(); i++)
        of << "ngram: " << cpv[i].first << "," << cpv[i].second << "," << jsvng[i] << std::endl;
    of.close();

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x578, %rsp            # imm = 0x578
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x248(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xc636(%rip), %rsi      # 0x12020
leaq 0xc636(%rip), %rdx      # 0x12027
leaq 0x238(%rsp), %rdi
callq 0x72b6
movq 0x1458b(%rip), %rax     # 0x19f90
movl (%rax), %edx
movl %edx, %ecx
shrl %ecx
leaq 0xc0(%rsp), %rdi
leaq 0x238(%rsp), %rsi
callq 0x5450
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x5a32
callq 0x5300
leaq 0xc0(%rsp), %rdi
callq 0x53b0
leaq 0x238(%rsp), %rdi
movq %rax, (%rdi)
leaq 0xc5d7(%rip), %rsi      # 0x12028
leaq 0xc5d7(%rip), %rdx      # 0x1202f
callq 0x55f0
movq %rax, %r14
leaq 0x14(%rsp), %rdi
callq 0x6718
leaq 0x438(%rsp), %rsi
movl $0xf0, (%rsi)
movq %rax, %rdi
callq 0x6790
leaq 0xc5b5(%rip), %rsi      # 0x1203c
leaq 0xc5bb(%rip), %rcx      # 0x12049
movq %r14, %rdi
movq %rax, %rdx
callq 0x5630
movq %rax, %r14
leaq 0xc(%rsp), %rdi
callq 0x6718
leaq 0x198(%rsp), %rsi
movl $0x50, (%rsi)
movq %rax, %rdi
callq 0x6790
leaq 0xc5a2(%rip), %rsi      # 0x12065
leaq 0xc5a7(%rip), %rcx      # 0x12071
movq %r14, %rdi
movq %rax, %rdx
callq 0x5630
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x6718
leaq 0x18(%rsp), %rsi
movl $0x1, (%rsi)
movq %rax, %rdi
callq 0x6790
leaq 0xc592(%rip), %rsi      # 0x1208e
leaq 0xc597(%rip), %rcx      # 0x1209a
movq %r14, %rdi
movq %rax, %rdx
callq 0x5630
movq %rax, %r14
xorl %edi, %edi
callq 0x9f88
leaq 0xc59a(%rip), %rsi      # 0x120b9
leaq 0xc5a0(%rip), %rcx      # 0x120c6
movq %r14, %rdi
movq %rax, %rdx
callq 0x5630
leaq 0x198(%rsp), %rdi
callq 0x5150
xorps %xmm0, %xmm0
leaq 0x170(%rsp), %r9
movaps %xmm0, (%r9)
movaps %xmm0, 0x10(%r9)
leaq 0x238(%rsp), %rdi
leaq 0xc0(%rsp), %rcx
movl %ebp, %esi
movq %rbx, %rdx
xorl %r8d, %r8d
callq 0x6874
leaq 0x238(%rsp), %rdi
leaq 0x198(%rsp), %rsi
xorl %edx, %edx
callq 0x55a0
leaq 0x238(%rsp), %rdi
callq 0x6c28
leaq 0x170(%rsp), %rdi
callq 0x696e
leaq 0x198(%rsp), %rdi
callq 0x51b0
leaq 0x238(%rsp), %rdi
movq %r12, (%rdi)
leaq 0xc52a(%rip), %rsi      # 0x120e9
leaq 0xc527(%rip), %rdx      # 0x120ed
callq 0x72b6
leaq 0x1a8(%rsp), %rdi
leaq 0x238(%rsp), %rsi
callq 0xb14a
movq %rax, %r14
leaq 0x1b0(%rsp), %rbx
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x5bfd
callq 0x5300
cmpq %rbx, %r14
je 0x5c4a
movq 0x143af(%rip), %rdi     # 0x19fb8
leaq 0xc0(%rsp), %rsi
callq 0x5090
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movl $0x1, %ebp
movq %rax, %rdi
callq 0x5230
jmp 0x6451
leaq 0x238(%rsp), %rdi
movq %r12, (%rdi)
leaq 0xc492(%rip), %rsi      # 0x120ee
leaq 0xc495(%rip), %rdx      # 0x120f8
callq 0x72b6
leaq 0x238(%rsp), %rsi
leaq 0x1a8(%rsp), %rdi
callq 0xb14a
movq %rax, %r15
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c92
callq 0x5300
cmpq %r14, %r15
je 0x651b
leaq 0x238(%rsp), %rdi
movq %r12, (%rdi)
leaq 0xc441(%rip), %rsi      # 0x120ee
leaq 0xc444(%rip), %rdx      # 0x120f8
callq 0x72b6
leaq 0x198(%rsp), %rdi
leaq 0x238(%rsp), %rsi
callq 0x5350
movq %rax, %rdi
callq 0xb1d3
leaq 0x50(%rsp), %rdi
movq %rax, %rsi
callq 0x51a0
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x5cf5
callq 0x5300
movl 0x14(%rsp), %esi
movl 0xc(%rsp), %edx
movl 0x10(%rsp), %ecx
leaq 0x438(%rsp), %rdi
xorl %r8d, %r8d
callq 0xcd70
movq 0x142d8(%rip), %rdi     # 0x19ff0
leaq 0xc3fe(%rip), %rsi      # 0x1211d
movl $0xb, %edx
callq 0x5380
movl 0x14(%rsp), %esi
movq 0x142bc(%rip), %rdi     # 0x19ff0
callq 0x5220
movq %rax, %r14
leaq 0xc3e6(%rip), %rsi      # 0x12129
movl $0x3, %edx
movq %rax, %rdi
callq 0x5380
movl 0xc(%rsp), %esi
movq %r14, %rdi
callq 0x5220
movq %rax, %r14
leaq 0xc3c3(%rip), %rsi      # 0x12129
movl $0x3, %edx
movq %rax, %rdi
callq 0x5380
movl 0x10(%rsp), %esi
movq %r14, %rdi
callq 0x5220
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5230
movq 0x14240(%rip), %rdi     # 0x19ff0
leaq 0xc376(%rip), %rsi      # 0x1212d
movl $0x21, %edx
callq 0x5380
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x1421e(%rip), %rdi     # 0x19ff0
callq 0x5380
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5230
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x734c
leaq 0x438(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0xcfbc
movq 0xa0(%rsp), %rdi
cmpq %r14, %rdi
je 0x5e58
callq 0x5300
leaq 0x238(%rsp), %rdi
callq 0x5560
leaq 0xc2e3(%rip), %rsi      # 0x1214f
leaq 0x238(%rsp), %r14
movq %r14, %rdi
movl $0x10, %edx
callq 0x5050
leaq 0x438(%rsp), %rdi
callq 0xcf96
leaq 0x140(%rsp), %rdi
movq %rax, %rsi
callq 0x6cea
leaq 0x148(%rsp), %rax
movq 0x10(%rax), %r15
cmpq %rax, %r15
je 0x5f79
leaq 0xc2a6(%rip), %r13      # 0x12160
leaq 0x20(%r15), %rsi
leaq 0x18(%rsp), %rdi
callq 0x69a6
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r14, %rdi
callq 0x5380
movq 0x38(%rsp), %r12
movq 0x40(%rsp), %rbx
cmpq %rbx, %r12
je 0x5f0e
movl (%r12), %ebp
movl $0x2, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x5380
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5220
addq $0x4, %r12
jmp 0x5ee4
movq 0x238(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5230
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x5f49
callq 0x5300
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x5f5d
callq 0x5300
movq %r15, %rdi
callq 0x5250
movq %rax, %r15
leaq 0x148(%rsp), %rax
cmpq %rax, %r15
jne 0x5eba
leaq 0x238(%rsp), %rdi
callq 0x5480
movq 0x14063(%rip), %rdi     # 0x19ff0
leaq 0xc1cf(%rip), %rsi      # 0x12163
movl $0x11, %edx
callq 0x5380
movl 0xc(%rsp), %esi
movq 0x14047(%rip), %rdi     # 0x19ff0
callq 0x5220
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5230
leaq 0x438(%rsp), %rdi
callq 0xdf4a
movq 0x14004(%rip), %r14     # 0x19ff0
leaq 0xc182(%rip), %rsi      # 0x12175
movl $0x15, %edx
movq %r14, %rdi
callq 0x5380
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq 0x13fd2(%rip), %rdi     # 0x19ff0
callq 0x5030
movq %rax, %rdi
callq 0x5230
leaq 0x438(%rsp), %rdi
callq 0xe3e4
leaq 0x438(%rsp), %rdi
callq 0xcfa4
leaq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x6a1c
movq 0x13f97(%rip), %rdi     # 0x19ff0
leaq 0xc12b(%rip), %rsi      # 0x1218b
movl $0x1e, %edx
callq 0x5380
movq 0x20(%rsp), %rsi
subq 0x18(%rsp), %rsi
sarq $0x6, %rsi
movq 0x13f71(%rip), %rdi     # 0x19ff0
callq 0x5220
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5230
leaq 0x438(%rsp), %rdi
callq 0xe6a8
leaq 0xc0e8(%rip), %rsi      # 0x121aa
leaq 0x238(%rsp), %rdi
movl $0x10, %edx
callq 0x5050
leaq 0x438(%rsp), %rdi
callq 0xcfac
leaq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0x6aa0
movq 0x18(%rsp), %rax
cmpq %rax, 0x20(%rsp)
je 0x61c7
xorl %ebx, %ebx
leaq 0x238(%rsp), %r14
leaq 0xc0a8(%rip), %r15      # 0x121ba
xorl %r13d, %r13d
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
movq %r14, %rdi
callq 0x5380
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5380
movq 0x18(%rsp), %rax
movq 0x20(%rax,%rbx), %rsi
movq 0x28(%rax,%rbx), %rdx
movq %r12, %rdi
callq 0x5380
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5380
movq 0x88(%rsp), %rax
xorps %xmm0, %xmm0
cvtss2sd (%rax,%r13,4), %xmm0
movq %r12, %rdi
callq 0x5500
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq %r12, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5230
incq %r13
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq %rax, %rcx
sarq $0x6, %rcx
addq $0x40, %rbx
cmpq %r13, %rcx
ja 0x6115
leaq 0x238(%rsp), %rdi
callq 0x5480
leaq 0xbfe1(%rip), %rsi      # 0x121bc
leaq 0x238(%rsp), %rdi
movl $0x10, %edx
callq 0x5050
movq 0x13dfc(%rip), %rdi     # 0x19ff0
leaq 0xbfcf(%rip), %rsi      # 0x121ca
movl $0x1c, %edx
callq 0x5380
movq 0x20(%rsp), %rsi
subq 0x18(%rsp), %rsi
sarq $0x6, %rsi
movq 0x13dd6(%rip), %rdi     # 0x19ff0
callq 0x5220
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5230
leaq 0x438(%rsp), %rdi
callq 0xe942
leaq 0x438(%rsp), %rdi
callq 0xcfb4
leaq 0x70(%rsp), %rdi
movq %rax, %rsi
callq 0x6aa0
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
je 0x6357
xorl %ebp, %ebp
leaq 0xbf5e(%rip), %r14      # 0x121e7
leaq 0x238(%rsp), %r15
leaq 0xbf22(%rip), %r12      # 0x121ba
xorl %ebx, %ebx
movl $0x7, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x5380
movq 0x18(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r15, %rdi
callq 0x5380
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x5380
movq 0x18(%rsp), %rax
movq 0x20(%rax,%rbp), %rsi
movq 0x28(%rax,%rbp), %rdx
movq %r13, %rdi
callq 0x5380
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x5380
movq 0x70(%rsp), %rax
cvtss2sd (%rax,%rbx,4), %xmm0
movq %r13, %rdi
callq 0x5500
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq %r13, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5230
movq 0x20(%rsp), %rax
subq 0x18(%rsp), %rax
incq %rbx
sarq $0x6, %rax
addq $0x40, %rbp
cmpq %rbx, %rax
ja 0x629a
leaq 0x238(%rsp), %rdi
callq 0x5480
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x6373
callq 0x5300
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x6385
callq 0x5300
leaq 0x18(%rsp), %rdi
callq 0x6b20
leaq 0x140(%rsp), %rdi
callq 0x6fee
movq 0x13bfd(%rip), %rax     # 0x19fa0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x240(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x238(%rsp,%rcx)
callq 0x52b0
leaq 0x330(%rsp), %rdi
callq 0x5100
movq 0x560(%rsp), %rdi
testq %rdi, %rdi
je 0x63e6
callq 0x5300
movq 0x548(%rsp), %rdi
testq %rdi, %rdi
je 0x63f8
callq 0x5300
leaq 0x530(%rsp), %rdi
callq 0x6b20
leaq 0x500(%rsp), %rdi
callq 0x7002
leaq 0x4d0(%rsp), %rdi
callq 0x6fee
leaq 0x4a0(%rsp), %r14
movq %r14, %rdi
callq 0x6fee
movq -0x40(%r14), %rdi
testq %rdi, %rdi
je 0x643d
callq 0x5300
movq 0x448(%rsp), %rdi
testq %rdi, %rdi
je 0x644f
callq 0x5300
xorl %ebp, %ebp
movq 0x13b78(%rip), %rax     # 0x19fd0
addq $0x10, %rax
leaq 0x208(%rsp), %rdi
movq %rax, -0x70(%rdi)
callq 0x70d4
leaq 0x1d8(%rsp), %rdi
callq 0x7078
leaq 0x1a8(%rsp), %rdi
callq 0x7154
leaq 0x128(%rsp), %rbx
movq %rbx, %rdi
callq 0x720c
movq -0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x64cd
callq 0x5300
xorl %eax, %eax
movq %rax, 0x100(%rsp)
movl %eax, 0x108(%rsp)
movq %rax, 0x110(%rsp)
movl %eax, 0x118(%rsp)
movq %rax, 0x120(%rsp)
leaq 0xe8(%rsp), %rbx
movq %rbx, %rdi
callq 0x724e
movq -0x28(%rbx), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x64f3
callq 0x5300
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6507
callq 0x5300
movl %ebp, %eax
addq $0x578, %rsp            # imm = 0x578
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x13a96(%rip), %r14     # 0x19fb8
leaq 0xbbd0(%rip), %rsi      # 0x120f9
movl $0x23, %edx
movq %r14, %rdi
callq 0x5380
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x5310
movsbl %al, %esi
movq 0x13a64(%rip), %rdi     # 0x19fb8
callq 0x5030
movq %rax, %rdi
callq 0x5230
movq 0x13a50(%rip), %rdi     # 0x19fb8
leaq 0xc0(%rsp), %rsi
callq 0x5090
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5310
jmp 0x5c2d
jmp 0x667e
jmp 0x65d8
jmp 0x6660
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r14, %rdi
je 0x66d5
callq 0x5300
jmp 0x66d5
jmp 0x666d
jmp 0x666d
jmp 0x65e2
jmp 0x666d
jmp 0x6679
jmp 0x6651
jmp 0x6672
movq %rax, %rbx
jmp 0x66c8
jmp 0x65e2
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x66e2
callq 0x5300
jmp 0x66e2
jmp 0x666d
movq %rax, %rbx
leaq 0x238(%rsp), %rdi
callq 0x6c28
jmp 0x6617
movq %rax, %rbx
leaq 0x170(%rsp), %rdi
callq 0x696e
jmp 0x66e2
jmp 0x6665
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x66fc
callq 0x5300
jmp 0x66fc
movq %rax, %rbx
jmp 0x66fc
movq %rax, %rbx
jmp 0x66a2
jmp 0x6679
jmp 0x6672
jmp 0x6665
jmp 0x6665
jmp 0x6665
movq %rax, %rbx
jmp 0x66d5
movq %rax, %rbx
jmp 0x66ef
movq %rax, %rbx
jmp 0x66e2
movq %rax, %rbx
jmp 0x66bb
jmp 0x66ae
movq %rax, %rbx
jmp 0x6690
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x6690
callq 0x5300
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x66a2
callq 0x5300
leaq 0x18(%rsp), %rdi
callq 0x6b20
jmp 0x66bb
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x69f6
leaq 0x140(%rsp), %rdi
callq 0x6fee
leaq 0x238(%rsp), %rdi
callq 0x54b0
leaq 0x438(%rsp), %rdi
callq 0x6b48
leaq 0x198(%rsp), %rdi
callq 0x6bba
leaq 0xc0(%rsp), %rdi
callq 0x6bec
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6710
callq 0x5300
movq %rbx, %rdi
callq 0x55b0