// File: millanek[P]evo/evo_getInformativeReadsFromSam.cpp
// Function: InfoReadsMain(int, char**)
int InfoReadsMain(int argc, char** argv) {
    parseInfoReadsOptions(argc, argv);
    string line; // for reading the input files
    
    std::istream* hetFile = createReader(opt::hetFile.c_str());
    std::istream* samtoolsFile = &std::cin;
    
    std::unordered_set<int> phasedHetsPos;
    std::map<int,PhaseInfo*> positionToPhase;
    std::map<string,std::vector<string> > readNameToSamRecords;
    
    
    if (opt::hapcutFormat) {
        // Parse the Hapcut blocks file
        while (getline(*hetFile, line)) {
            if (line[0] == '*') {
            
            } else if (line[0] == 'B' && line[1] == 'L') { // New block - should in the future separate the hets by blocks
                
            } else {
                std::vector<string> phasedSNPdetails = split(line, '\t');
                int snpPos = atoi(phasedSNPdetails[4].c_str());
                int H1phase = atoi(phasedSNPdetails[1].c_str());
                int H2phase = atoi(phasedSNPdetails[2].c_str());
                //std::cout << "line: " << line << std::endl;
                // std::cout << "phasedSNPdetails[5]: " << phasedSNPdetails[5] << std::endl;
                assert(phasedSNPdetails[5].length() == 1); assert(phasedSNPdetails[6].length() == 1);
                char refBase = phasedSNPdetails[5][0];
                char altBase = phasedSNPdetails[6][0];
                double phaseQual = stringToDouble(phasedSNPdetails[10].c_str());
                int snpCoverage = atoi(phasedSNPdetails[11].c_str());
                std::vector<char> phasedVars;
                if (H1phase == 0 && H2phase == 1) {
                    phasedVars.push_back(refBase); phasedVars.push_back(altBase);
                } else if (H1phase == 1 && H2phase == 0) {
                    phasedVars.push_back(altBase); phasedVars.push_back(refBase);
                } else{
                    continue;
                }
                PhaseInfo* thisPhase = new PhaseInfo(snpPos,phaseQual,snpCoverage, phasedVars,1);
                positionToPhase[snpPos] = thisPhase;
            }
        }
    } else {
        while (getline(*hetFile, line)) {
            std::vector<string> phasedSNPdetails = split(line, '\t');
            int snpPos = atoi(phasedSNPdetails[1].c_str());
            phasedHetsPos.insert(snpPos);
        }
    }
    
    std::cerr << "Finished reading het sites. There are " << positionToPhase.size() << " hets." << std::endl;
    std::cerr << "Processing reads:" << std::endl;
    
    int readsProcessed = 0;
    // Now parse the pairtools file to find read pairs that can be informative about the phasing and recombination
    while (getline(*samtoolsFile,line)) {
        readsProcessed++;
        if (readsProcessed % 100000 == 0) {
            std::cerr << "Processed " << readsProcessed << " reads" << std::endl;
        }
        // std::cerr << line << std::endl;
        std::vector<string> samRecVec = split(line, '\t'); //assert(pairVec.size() == 8);
        int flag = atoi(samRecVec[1].c_str());
        if (flag > 2000) continue;
        
        int MQ = atoi(samRecVec[4].c_str());
        if (MQ < opt::minMQ) continue;
        
        
        RecombRead* thisRead = new RecombRead(samRecVec);
        
        thisRead->findHetsInRead(positionToPhase);
        
        if (thisRead->hetSites.size() > 0) {
            readNameToSamRecords[thisRead->readName].push_back(line);
        }
        delete thisRead;
    }
    
    for (std::map<string,std::vector<string>>::iterator it = readNameToSamRecords.begin(); it != readNameToSamRecords.end(); it++) {
        if (it->second.size() > 1) {
            std::cout << it->second[0] << std::endl;
            std::cout << it->second[1] << std::endl;
        }
    }
    
    return 0;
    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x340, %rsp            # imm = 0x340
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0x125bf0
leaq -0x30(%rbp), %rdi
callq 0xa820
leaq 0x7687a(%rip), %rdi     # 0x19b868
callq 0xa220
movq %rax, -0x238(%rbp)
leaq -0x59(%rbp), %rdi
movq %rdi, -0x230(%rbp)
callq 0xab60
movq -0x238(%rbp), %rsi
movq -0x230(%rbp), %rdx
leaq -0x58(%rbp), %rdi
callq 0x2d6c0
jmp 0x125023
leaq -0x58(%rbp), %rdi
movl $0x8, %esi
callq 0x80e30
movq %rax, -0x240(%rbp)
jmp 0x12503a
leaq -0x58(%rbp), %rdi
callq 0xac88
leaq -0x59(%rbp), %rdi
callq 0xa640
movq -0x240(%rbp), %rax
movq %rax, -0x38(%rbp)
movq 0x73f72(%rip), %rax     # 0x198fd0
movq %rax, -0x78(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x1188a0
leaq -0xe0(%rbp), %rdi
callq 0x11cc50
leaq -0x110(%rbp), %rdi
callq 0x58920
testb $0x1, 0x7681b(%rip)     # 0x19b8a8
je 0x1255c1
jmp 0x125095
movq -0x38(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xa0d0
movq %rax, -0x248(%rbp)
jmp 0x1250ab
movq -0x248(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xa740
movb %al, -0x249(%rbp)
jmp 0x1250c9
movb -0x249(%rbp), %al
testb $0x1, %al
jne 0x1250d8
jmp 0x1255bc
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0xac60
movq %rax, -0x258(%rbp)
jmp 0x1250ee
movq -0x258(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2a, %eax
jne 0x125144
jmp 0x1255b7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x125125
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x58(%rbp), %rdi
callq 0xac88
leaq -0x59(%rbp), %rdi
callq 0xa640
jmp 0x125bd1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x125bad
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0xac60
movq %rax, -0x260(%rbp)
jmp 0x12515a
movq -0x260(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x42, %eax
jne 0x125194
leaq -0x30(%rbp), %rdi
movl $0x1, %esi
callq 0xac60
movq %rax, -0x268(%rbp)
jmp 0x125180
movq -0x268(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x4c, %eax
jne 0x125194
jmp 0x1255b5
leaq -0x128(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0x9, %edx
callq 0x7bbe0
jmp 0x1251ab
leaq -0x128(%rbp), %rdi
movl $0x4, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, %rdi
callq 0xa970
movl %eax, -0x12c(%rbp)
leaq -0x128(%rbp), %rdi
movl $0x1, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, %rdi
callq 0xa970
movl %eax, -0x130(%rbp)
leaq -0x128(%rbp), %rdi
movl $0x2, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, %rdi
callq 0xa970
movl %eax, -0x134(%rbp)
leaq -0x128(%rbp), %rdi
movl $0x5, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa930
cmpq $0x1, %rax
jne 0x125241
jmp 0x125260
leaq 0x291d5(%rip), %rdi     # 0x14e41d
leaq 0x2974f(%rip), %rsi     # 0x14e99e
movl $0x5d, %edx
leaq 0x29766(%rip), %rcx     # 0x14e9c1
callq 0xa390
leaq -0x128(%rbp), %rdi
movl $0x6, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa930
cmpq $0x1, %rax
jne 0x125281
jmp 0x1252a0
leaq 0x291f6(%rip), %rdi     # 0x14e47e
leaq 0x2970f(%rip), %rsi     # 0x14e99e
movl $0x5d, %edx
leaq 0x29726(%rip), %rcx     # 0x14e9c1
callq 0xa390
leaq -0x128(%rbp), %rdi
movl $0x5, %esi
callq 0x3d940
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xac60
movq %rax, -0x270(%rbp)
jmp 0x1252c6
movq -0x270(%rbp), %rax
movb (%rax), %al
movb %al, -0x135(%rbp)
leaq -0x128(%rbp), %rdi
movl $0x6, %esi
callq 0x3d940
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xac60
movq %rax, -0x278(%rbp)
jmp 0x1252fb
movq -0x278(%rbp), %rax
movb (%rax), %al
movb %al, -0x136(%rbp)
leaq -0x128(%rbp), %rdi
movl $0xa, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, -0x288(%rbp)
leaq -0x161(%rbp), %rdi
movq %rdi, -0x280(%rbp)
callq 0xab60
movq -0x288(%rbp), %rsi
movq -0x280(%rbp), %rdx
leaq -0x160(%rbp), %rdi
callq 0x2d6c0
jmp 0x125359
leaq -0x160(%rbp), %rdi
callq 0x7bab0
movsd %xmm0, -0x290(%rbp)
jmp 0x12536f
leaq -0x160(%rbp), %rdi
callq 0xac88
leaq -0x161(%rbp), %rdi
callq 0xa640
movsd -0x290(%rbp), %xmm0
movsd %xmm0, -0x140(%rbp)
leaq -0x128(%rbp), %rdi
movl $0xb, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, %rdi
callq 0xa970
movl %eax, -0x168(%rbp)
leaq -0x180(%rbp), %rdi
callq 0xad970
cmpl $0x0, -0x130(%rbp)
jne 0x12546c
cmpl $0x1, -0x134(%rbp)
jne 0x12546c
leaq -0x180(%rbp), %rdi
leaq -0x135(%rbp), %rsi
callq 0xad990
jmp 0x1253f9
leaq -0x180(%rbp), %rdi
leaq -0x136(%rbp), %rsi
callq 0xad990
jmp 0x12540e
jmp 0x1254bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x1255a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x12544a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x160(%rbp), %rdi
callq 0xac88
leaq -0x161(%rbp), %rdi
callq 0xa640
jmp 0x1255a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x125598
cmpl $0x1, -0x130(%rbp)
jne 0x1254aa
cmpl $0x0, -0x134(%rbp)
jne 0x1254aa
leaq -0x180(%rbp), %rdi
leaq -0x136(%rbp), %rsi
callq 0xad990
jmp 0x125493
leaq -0x180(%rbp), %rdi
leaq -0x135(%rbp), %rsi
callq 0xad990
jmp 0x1254a8
jmp 0x1254b9
movl $0x2, -0x184(%rbp)
jmp 0x125550
jmp 0x1254bb
movl $0x30, %edi
callq 0xa5d0
movq %rax, -0x298(%rbp)
jmp 0x1254ce
movq -0x298(%rbp), %rdi
movl -0x12c(%rbp), %esi
movsd -0x140(%rbp), %xmm0
movl -0x168(%rbp), %edx
leaq -0x180(%rbp), %rcx
movl $0x1, %r8d
callq 0x11ccb0
jmp 0x1254fd
movq -0x298(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x2a8(%rbp)
leaq -0xe0(%rbp), %rdi
leaq -0x12c(%rbp), %rsi
callq 0x11cd40
movq %rax, -0x2a0(%rbp)
jmp 0x125535
movq -0x2a0(%rbp), %rax
movq -0x2a8(%rbp), %rcx
movq %rcx, (%rax)
movl $0x0, -0x184(%rbp)
leaq -0x180(%rbp), %rdi
callq 0xae570
leaq -0x128(%rbp), %rdi
callq 0x3dfa0
movl -0x184(%rbp), %eax
testl %eax, %eax
je 0x125579
jmp 0x125574
jmp 0x125095
jmp 0x1255b5
movq -0x298(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
movl $0x30, %esi
callq 0xa5e0
leaq -0x180(%rbp), %rdi
callq 0xae570
leaq -0x128(%rbp), %rdi
callq 0x3dfa0
jmp 0x125bad
jmp 0x1255b7
jmp 0x125095
jmp 0x1256b0
jmp 0x1255c3
movq -0x38(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xa0d0
movq %rax, -0x2b0(%rbp)
jmp 0x1255d9
movq -0x2b0(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xa740
movb %al, -0x2b1(%rbp)
jmp 0x1255f7
movb -0x2b1(%rbp), %al
testb $0x1, %al
jne 0x125606
jmp 0x1256ae
leaq -0x1a8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0x9, %edx
callq 0x7bbe0
jmp 0x12561d
leaq -0x1a8(%rbp), %rdi
movl $0x1, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, %rdi
callq 0xa970
movl %eax, -0x1ac(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0x1ac(%rbp), %rsi
callq 0x1188c0
movb %dl, -0x2c1(%rbp)
movq %rax, -0x2c0(%rbp)
jmp 0x125666
movb -0x2c1(%rbp), %al
movq -0x2c0(%rbp), %rcx
movq %rcx, -0x1c0(%rbp)
movb %al, -0x1b8(%rbp)
leaq -0x1a8(%rbp), %rdi
callq 0x3dfa0
jmp 0x1255c3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x1a8(%rbp), %rdi
callq 0x3dfa0
jmp 0x125bad
jmp 0x1256b0
movq 0x73939(%rip), %rdi     # 0x198ff0
leaq 0x29323(%rip), %rsi     # 0x14e9e1
callq 0xa5c0
movq %rax, -0x2d0(%rbp)
jmp 0x1256cc
leaq -0xe0(%rbp), %rdi
callq 0x11ce20
movq -0x2d0(%rbp), %rdi
movq %rax, %rsi
callq 0xa140
movq %rax, -0x2d8(%rbp)
jmp 0x1256f0
movq -0x2d8(%rbp), %rdi
leaq 0x2930a(%rip), %rsi     # 0x14ea08
callq 0xa5c0
movq %rax, -0x2e0(%rbp)
jmp 0x12570c
movq -0x2e0(%rbp), %rdi
movq 0x7386e(%rip), %rsi     # 0x198f88
callq 0xa610
jmp 0x125721
movq 0x738c8(%rip), %rdi     # 0x198ff0
leaq 0x292e0(%rip), %rsi     # 0x14ea0f
callq 0xa5c0
movq %rax, -0x2e8(%rbp)
jmp 0x12573d
movq -0x2e8(%rbp), %rdi
movq 0x7383d(%rip), %rsi     # 0x198f88
callq 0xa610
jmp 0x125752
movl $0x0, -0x1c4(%rbp)
movq -0x78(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xa0d0
movq %rax, -0x2f0(%rbp)
jmp 0x125772
movq -0x2f0(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xa740
movb %al, -0x2f1(%rbp)
jmp 0x125790
movb -0x2f1(%rbp), %al
testb $0x1, %al
jne 0x12579f
jmp 0x125a56
movl -0x1c4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c4(%rbp)
movl -0x1c4(%rbp), %eax
movl $0x186a0, %ecx          # imm = 0x186A0
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x12582b
movq 0x73828(%rip), %rdi     # 0x198ff0
leaq 0x17177(%rip), %rsi     # 0x13c946
callq 0xa5c0
movq %rax, -0x300(%rbp)
jmp 0x1257dd
movq -0x300(%rbp), %rdi
movl -0x1c4(%rbp), %esi
callq 0xab20
movq %rax, -0x308(%rbp)
jmp 0x1257f8
movq -0x308(%rbp), %rdi
leaq 0x2921b(%rip), %rsi     # 0x14ea21
callq 0xa5c0
movq %rax, -0x310(%rbp)
jmp 0x125814
movq -0x310(%rbp), %rdi
movq 0x73766(%rip), %rsi     # 0x198f88
callq 0xa610
jmp 0x125829
jmp 0x12582b
leaq -0x1e0(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl $0x9, %edx
callq 0x7bbe0
jmp 0x125842
leaq -0x1e0(%rbp), %rdi
movl $0x1, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, %rdi
callq 0xa970
movl %eax, -0x1e4(%rbp)
cmpl $0x7d0, -0x1e4(%rbp)    # imm = 0x7D0
jle 0x125884
movl $0x6, -0x184(%rbp)
jmp 0x125a23
leaq -0x1e0(%rbp), %rdi
movl $0x4, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, %rdi
callq 0xa970
movl %eax, -0x1e8(%rbp)
movl -0x1e8(%rbp), %eax
cmpl 0x74201(%rip), %eax     # 0x199ab8
jge 0x1258c8
movl $0x6, -0x184(%rbp)
jmp 0x125a23
movl $0x150, %edi            # imm = 0x150
callq 0xa5d0
movq %rax, -0x318(%rbp)
jmp 0x1258db
movb $0x1, -0x209(%rbp)
leaq -0x208(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
callq 0x3fee0
jmp 0x1258f7
movq -0x318(%rbp), %rdi
leaq -0x208(%rbp), %rsi
callq 0x11ce40
jmp 0x12590c
movb $0x0, -0x209(%rbp)
leaq -0x208(%rbp), %rdi
callq 0x3dfa0
movq -0x318(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0x1f0(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x126170
jmp 0x125942
movq -0x1f0(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
callq 0x11d780
cmpq $0x0, %rax
jbe 0x1259e8
movq -0x1f0(%rbp), %rsi
addq $0x28, %rsi
leaq -0x110(%rbp), %rdi
callq 0x6b400
movq %rax, -0x320(%rbp)
jmp 0x12597f
movq -0x320(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x48dc0
jmp 0x125991
jmp 0x1259e8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x125a45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x1259ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x208(%rbp), %rdi
callq 0x3dfa0
testb $0x1, -0x209(%rbp)
jne 0x1259d5
jmp 0x1259e6
movq -0x318(%rbp), %rdi
movl $0x150, %esi            # imm = 0x150
callq 0xa5e0
jmp 0x125a45
movq -0x1f0(%rbp), %rax
movq %rax, -0x328(%rbp)
cmpq $0x0, %rax
je 0x125a19
movq -0x328(%rbp), %rdi
callq 0x125ec0
movq -0x328(%rbp), %rdi
movl $0x150, %esi            # imm = 0x150
callq 0xa5e0
movl $0x0, -0x184(%rbp)
leaq -0x1e0(%rbp), %rdi
callq 0x3dfa0
movl -0x184(%rbp), %eax
testl %eax, %eax
je 0x125a40
jmp 0x125a3b
jmp 0x12575c
jmp 0x12575c
leaq -0x1e0(%rbp), %rdi
callq 0x3dfa0
jmp 0x125bad
leaq -0x110(%rbp), %rdi
callq 0x6c3d0
movq %rax, -0x218(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x6c430
movq %rax, -0x220(%rbp)
leaq -0x218(%rbp), %rdi
leaq -0x220(%rbp), %rsi
callq 0x6c400
testb $0x1, %al
jne 0x125a98
jmp 0x125b6b
leaq -0x218(%rbp), %rdi
callq 0x6c460
movq %rax, %rdi
addq $0x20, %rdi
callq 0x3ffd0
cmpq $0x1, %rax
jbe 0x125b4f
leaq -0x218(%rbp), %rdi
callq 0x6c460
movq %rax, %rdi
addq $0x20, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3d940
movq %rax, %rsi
movq 0x734d8(%rip), %rdi     # 0x198fb8
callq 0xa520
movq %rax, -0x330(%rbp)
jmp 0x125aee
movq -0x330(%rbp), %rdi
movq 0x7348c(%rip), %rsi     # 0x198f88
callq 0xa610
jmp 0x125b03
leaq -0x218(%rbp), %rdi
callq 0x6c460
movq %rax, %rdi
addq $0x20, %rdi
movl $0x1, %esi
callq 0x3d940
movq %rax, %rsi
movq 0x7348e(%rip), %rdi     # 0x198fb8
callq 0xa520
movq %rax, -0x338(%rbp)
jmp 0x125b38
movq -0x338(%rbp), %rdi
movq 0x73442(%rip), %rsi     # 0x198f88
callq 0xa610
jmp 0x125b4d
jmp 0x125b4f
jmp 0x125b51
leaq -0x218(%rbp), %rdi
xorl %esi, %esi
callq 0x6c480
movq %rax, -0x228(%rbp)
jmp 0x125a69
movl $0x1, -0x184(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x58f00
leaq -0xe0(%rbp), %rdi
callq 0x11dae0
leaq -0xb0(%rbp), %rdi
callq 0x118990
leaq -0x30(%rbp), %rdi
callq 0xac88
xorl %eax, %eax
addq $0x340, %rsp            # imm = 0x340
popq %rbp
retq
leaq -0x110(%rbp), %rdi
callq 0x58f00
leaq -0xe0(%rbp), %rdi
callq 0x11dae0
leaq -0xb0(%rbp), %rdi
callq 0x118990
leaq -0x30(%rbp), %rdi
callq 0xac88
movq -0x68(%rbp), %rdi
callq 0xab50
nopw %cs:(%rax,%rax)