// File: /workspace/github_c_makefile_star2_O1/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), %r15
movq %r15, -0x10(%r15)
leaq 0xc637(%rip), %rsi      # 0x13020
leaq 0xc637(%rip), %rdx      # 0x13027
leaq 0x238(%rsp), %rdi
callq 0x82ae
movq 0x1458c(%rip), %rax     # 0x1af90
movl (%rax), %edx
movl %edx, %ecx
shrl %ecx
leaq 0xc0(%rsp), %rdi
leaq 0x238(%rsp), %rsi
callq 0x6450
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x6a31
callq 0x6300
leaq 0xc0(%rsp), %rdi
callq 0x63b0
leaq 0x238(%rsp), %rdi
movq %rax, (%rdi)
leaq 0xc5d8(%rip), %rsi      # 0x13028
leaq 0xc5d8(%rip), %rdx      # 0x1302f
callq 0x65f0
movq %rax, %r14
leaq 0x14(%rsp), %rdi
callq 0x7717
leaq 0x438(%rsp), %rsi
movl $0xf0, (%rsi)
movq %rax, %rdi
callq 0x778e
leaq 0xc5b6(%rip), %rsi      # 0x1303c
leaq 0xc5bc(%rip), %rcx      # 0x13049
movq %r14, %rdi
movq %rax, %rdx
callq 0x6630
movq %rax, %r14
leaq 0xc(%rsp), %rdi
callq 0x7717
leaq 0x198(%rsp), %rsi
movl $0x50, (%rsi)
movq %rax, %rdi
callq 0x778e
leaq 0xc5a3(%rip), %rsi      # 0x13065
leaq 0xc5a8(%rip), %rcx      # 0x13071
movq %r14, %rdi
movq %rax, %rdx
callq 0x6630
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x7717
leaq 0x18(%rsp), %rsi
movl $0x1, (%rsi)
movq %rax, %rdi
callq 0x778e
leaq 0xc593(%rip), %rsi      # 0x1308e
leaq 0xc598(%rip), %rcx      # 0x1309a
movq %r14, %rdi
movq %rax, %rdx
callq 0x6630
movq %rax, %r14
xorl %edi, %edi
callq 0xb006
leaq 0xc59b(%rip), %rsi      # 0x130b9
leaq 0xc5a1(%rip), %rcx      # 0x130c6
movq %r14, %rdi
movq %rax, %rdx
callq 0x6630
leaq 0x198(%rsp), %rdi
callq 0x6150
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 0x787e
leaq 0x238(%rsp), %rdi
leaq 0x198(%rsp), %rsi
xorl %edx, %edx
callq 0x65a0
leaq 0x238(%rsp), %rdi
callq 0x7c32
leaq 0x170(%rsp), %rdi
callq 0x7978
leaq 0x198(%rsp), %rdi
callq 0x61b0
leaq 0x238(%rsp), %rdi
movq %r15, (%rdi)
leaq 0xc52b(%rip), %rsi      # 0x130e9
leaq 0xc528(%rip), %rdx      # 0x130ed
callq 0x82ae
leaq 0x1a8(%rsp), %rdi
leaq 0x238(%rsp), %rsi
callq 0xc1de
movq %rax, %r14
leaq 0x1b0(%rsp), %rbx
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x6bfc
callq 0x6300
cmpq %rbx, %r14
je 0x6c49
movq 0x143b0(%rip), %rdi     # 0x1afb8
leaq 0xc0(%rsp), %rsi
callq 0x6090
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq %r14, %rdi
callq 0x6030
movl $0x1, %ebp
movq %rax, %rdi
callq 0x6230
jmp 0x7450
leaq 0x238(%rsp), %rdi
movq %r15, (%rdi)
leaq 0xc493(%rip), %rsi      # 0x130ee
leaq 0xc496(%rip), %rdx      # 0x130f8
callq 0x82ae
leaq 0x238(%rsp), %rsi
leaq 0x1a8(%rsp), %rdi
callq 0xc1de
movq %rax, %r14
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x6c91
callq 0x6300
cmpq %rbx, %r14
je 0x751a
leaq 0x238(%rsp), %rdi
movq %r15, (%rdi)
leaq 0xc442(%rip), %rsi      # 0x130ee
leaq 0xc445(%rip), %rdx      # 0x130f8
callq 0x82ae
leaq 0x198(%rsp), %rdi
leaq 0x238(%rsp), %rsi
callq 0x6350
movq %rax, %rdi
callq 0xc267
leaq 0x50(%rsp), %rdi
movq %rax, %rsi
callq 0x61a0
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x6cf4
callq 0x6300
movl 0x14(%rsp), %esi
movl 0xc(%rsp), %edx
movl 0x10(%rsp), %ecx
leaq 0x438(%rsp), %rdi
xorl %r8d, %r8d
callq 0xde30
movq 0x142d9(%rip), %rdi     # 0x1aff0
leaq 0xc3ff(%rip), %rsi      # 0x1311d
movl $0xb, %edx
callq 0x6380
movl 0x14(%rsp), %esi
movq 0x142bd(%rip), %rdi     # 0x1aff0
callq 0x6220
movq %rax, %r14
leaq 0xc3e7(%rip), %rsi      # 0x13129
movl $0x3, %edx
movq %rax, %rdi
callq 0x6380
movl 0xc(%rsp), %esi
movq %r14, %rdi
callq 0x6220
movq %rax, %r14
leaq 0xc3c4(%rip), %rsi      # 0x13129
movl $0x3, %edx
movq %rax, %rdi
callq 0x6380
movl 0x10(%rsp), %esi
movq %r14, %rdi
callq 0x6220
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq %r14, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6230
movq 0x14241(%rip), %rdi     # 0x1aff0
leaq 0xc377(%rip), %rsi      # 0x1312d
movl $0x21, %edx
callq 0x6380
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x1421f(%rip), %rdi     # 0x1aff0
callq 0x6380
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq %r14, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6230
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x833e
leaq 0x438(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0xe07a
movq 0xa0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6e57
callq 0x6300
leaq 0x238(%rsp), %rdi
callq 0x6560
leaq 0xc2e4(%rip), %rsi      # 0x1314f
leaq 0x238(%rsp), %r14
movq %r14, %rdi
movl $0x10, %edx
callq 0x6050
leaq 0x438(%rsp), %rdi
callq 0xe054
leaq 0x140(%rsp), %rdi
movq %rax, %rsi
callq 0x7cee
leaq 0x148(%rsp), %rax
movq 0x10(%rax), %r15
cmpq %rax, %r15
je 0x6f78
leaq 0xc2a7(%rip), %r13      # 0x13160
leaq 0x20(%r15), %rsi
leaq 0x18(%rsp), %rdi
callq 0x79b0
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r14, %rdi
callq 0x6380
movq 0x38(%rsp), %r12
movq 0x40(%rsp), %rbx
cmpq %rbx, %r12
je 0x6f0d
movl (%r12), %ebp
movl $0x2, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x6380
movq %r14, %rdi
movq %rbp, %rsi
callq 0x6220
addq $0x4, %r12
jmp 0x6ee3
movq 0x238(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq %r14, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6230
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x6f48
callq 0x6300
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x6f5c
callq 0x6300
movq %r15, %rdi
callq 0x6250
movq %rax, %r15
leaq 0x148(%rsp), %rax
cmpq %rax, %r15
jne 0x6eb9
leaq 0x238(%rsp), %rdi
callq 0x6480
movq 0x14064(%rip), %rdi     # 0x1aff0
leaq 0xc1d0(%rip), %rsi      # 0x13163
movl $0x11, %edx
callq 0x6380
movl 0xc(%rsp), %esi
movq 0x14048(%rip), %rdi     # 0x1aff0
callq 0x6220
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq %r14, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6230
leaq 0x438(%rsp), %rdi
callq 0xf014
movq 0x14005(%rip), %r14     # 0x1aff0
leaq 0xc183(%rip), %rsi      # 0x13175
movl $0x15, %edx
movq %r14, %rdi
callq 0x6380
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq 0x13fd3(%rip), %rdi     # 0x1aff0
callq 0x6030
movq %rax, %rdi
callq 0x6230
leaq 0x438(%rsp), %rdi
callq 0xf48c
leaq 0x438(%rsp), %rdi
callq 0xe062
leaq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x7a26
movq 0x13f98(%rip), %rdi     # 0x1aff0
leaq 0xc12c(%rip), %rsi      # 0x1318b
movl $0x1e, %edx
callq 0x6380
movq 0x20(%rsp), %rsi
subq 0x18(%rsp), %rsi
sarq $0x6, %rsi
movq 0x13f72(%rip), %rdi     # 0x1aff0
callq 0x6220
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq %r14, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6230
leaq 0x438(%rsp), %rdi
callq 0xf75c
leaq 0xc0e9(%rip), %rsi      # 0x131aa
leaq 0x238(%rsp), %rdi
movl $0x10, %edx
callq 0x6050
leaq 0x438(%rsp), %rdi
callq 0xe06a
leaq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0x7aaa
movq 0x18(%rsp), %rax
cmpq %rax, 0x20(%rsp)
je 0x71c6
xorl %ebx, %ebx
leaq 0x238(%rsp), %r14
leaq 0xc0a9(%rip), %r15      # 0x131ba
xorl %r13d, %r13d
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
movq %r14, %rdi
callq 0x6380
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x6380
movq 0x18(%rsp), %rax
movq 0x20(%rax,%rbx), %rsi
movq 0x28(%rax,%rbx), %rdx
movq %r12, %rdi
callq 0x6380
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x6380
movq 0x88(%rsp), %rax
xorps %xmm0, %xmm0
cvtss2sd (%rax,%r13,4), %xmm0
movq %r12, %rdi
callq 0x6500
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq %r12, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6230
incq %r13
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq %rax, %rcx
sarq $0x6, %rcx
addq $0x40, %rbx
cmpq %r13, %rcx
ja 0x7114
leaq 0x238(%rsp), %rdi
callq 0x6480
leaq 0xbfe2(%rip), %rsi      # 0x131bc
leaq 0x238(%rsp), %rdi
movl $0x10, %edx
callq 0x6050
movq 0x13dfd(%rip), %rdi     # 0x1aff0
leaq 0xbfd0(%rip), %rsi      # 0x131ca
movl $0x1c, %edx
callq 0x6380
movq 0x20(%rsp), %rsi
subq 0x18(%rsp), %rsi
sarq $0x6, %rsi
movq 0x13dd7(%rip), %rdi     # 0x1aff0
callq 0x6220
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq %r14, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6230
leaq 0x438(%rsp), %rdi
callq 0xfa1c
leaq 0x438(%rsp), %rdi
callq 0xe072
leaq 0x70(%rsp), %rdi
movq %rax, %rsi
callq 0x7aaa
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
je 0x7356
xorl %ebp, %ebp
leaq 0xbf5f(%rip), %r14      # 0x131e7
leaq 0x238(%rsp), %r15
leaq 0xbf23(%rip), %r12      # 0x131ba
xorl %ebx, %ebx
movl $0x7, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x6380
movq 0x18(%rsp), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r15, %rdi
callq 0x6380
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x6380
movq 0x18(%rsp), %rax
movq 0x20(%rax,%rbp), %rsi
movq 0x28(%rax,%rbp), %rdx
movq %r13, %rdi
callq 0x6380
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x6380
movq 0x70(%rsp), %rax
cvtss2sd (%rax,%rbx,4), %xmm0
movq %r13, %rdi
callq 0x6500
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq %r13, %rdi
callq 0x6030
movq %rax, %rdi
callq 0x6230
movq 0x20(%rsp), %rax
subq 0x18(%rsp), %rax
incq %rbx
sarq $0x6, %rax
addq $0x40, %rbp
cmpq %rbx, %rax
ja 0x7299
leaq 0x238(%rsp), %rdi
callq 0x6480
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x7372
callq 0x6300
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x7384
callq 0x6300
leaq 0x18(%rsp), %rdi
callq 0x7b2a
leaq 0x140(%rsp), %rdi
callq 0x7ff2
movq 0x13bfe(%rip), %rax     # 0x1afa0
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 0x62b0
leaq 0x330(%rsp), %rdi
callq 0x6100
movq 0x560(%rsp), %rdi
testq %rdi, %rdi
je 0x73e5
callq 0x6300
movq 0x548(%rsp), %rdi
testq %rdi, %rdi
je 0x73f7
callq 0x6300
leaq 0x530(%rsp), %rdi
callq 0x7b2a
leaq 0x500(%rsp), %rdi
callq 0x8006
leaq 0x4d0(%rsp), %rdi
callq 0x7ff2
leaq 0x4a0(%rsp), %r14
movq %r14, %rdi
callq 0x7ff2
movq -0x40(%r14), %rdi
testq %rdi, %rdi
je 0x743c
callq 0x6300
movq 0x448(%rsp), %rdi
testq %rdi, %rdi
je 0x744e
callq 0x6300
xorl %ebp, %ebp
movq 0x13b79(%rip), %rax     # 0x1afd0
addq $0x10, %rax
leaq 0x208(%rsp), %rdi
movq %rax, -0x70(%rdi)
callq 0x80d8
leaq 0x1d8(%rsp), %rdi
callq 0x807c
leaq 0x1a8(%rsp), %rdi
callq 0x8158
leaq 0x128(%rsp), %rbx
movq %rbx, %rdi
callq 0x8210
movq -0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x74cc
callq 0x6300
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 0x824c
movq -0x28(%rbx), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x74f2
callq 0x6300
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7506
callq 0x6300
movl %ebp, %eax
addq $0x578, %rsp            # imm = 0x578
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x13a97(%rip), %r14     # 0x1afb8
leaq 0xbbd1(%rip), %rsi      # 0x130f9
movl $0x23, %edx
movq %r14, %rdi
callq 0x6380
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x6310
movsbl %al, %esi
movq 0x13a65(%rip), %rdi     # 0x1afb8
callq 0x6030
movq %rax, %rdi
callq 0x6230
movq 0x13a51(%rip), %rdi     # 0x1afb8
leaq 0xc0(%rsp), %rsi
callq 0x6090
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x6310
jmp 0x6c2c
jmp 0x767d
jmp 0x75d7
jmp 0x765f
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r14, %rdi
je 0x76d4
callq 0x6300
jmp 0x76d4
jmp 0x766c
jmp 0x766c
jmp 0x75e1
jmp 0x766c
jmp 0x7678
jmp 0x7650
jmp 0x7671
movq %rax, %rbx
jmp 0x76c7
jmp 0x75e1
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x76e1
callq 0x6300
jmp 0x76e1
jmp 0x766c
movq %rax, %rbx
leaq 0x238(%rsp), %rdi
callq 0x7c32
jmp 0x7616
movq %rax, %rbx
leaq 0x170(%rsp), %rdi
callq 0x7978
jmp 0x76e1
jmp 0x7664
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x76fb
callq 0x6300
jmp 0x76fb
movq %rax, %rbx
jmp 0x76fb
movq %rax, %rbx
jmp 0x76a1
jmp 0x7678
jmp 0x7671
jmp 0x7664
jmp 0x7664
jmp 0x7664
movq %rax, %rbx
jmp 0x76d4
movq %rax, %rbx
jmp 0x76ee
movq %rax, %rbx
jmp 0x76e1
movq %rax, %rbx
jmp 0x76ba
jmp 0x76ad
movq %rax, %rbx
jmp 0x768f
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x768f
callq 0x6300
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x76a1
callq 0x6300
leaq 0x18(%rsp), %rdi
callq 0x7b2a
jmp 0x76ba
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x7a00
leaq 0x140(%rsp), %rdi
callq 0x7ff2
leaq 0x238(%rsp), %rdi
callq 0x64b0
leaq 0x438(%rsp), %rdi
callq 0x7b52
leaq 0x198(%rsp), %rdi
callq 0x7bc4
leaq 0xc0(%rsp), %rdi
callq 0x7bf6
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x770f
callq 0x6300
movq %rbx, %rdi
callq 0x65b0