// File: /workspace/github_cpp_makefile_star2_O3/schneebergerlab[P]DrLink/find_intersection.cpp
// Function: get_CO_reads(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, int>>>*)
bool get_CO_reads(string coreadfile, map<string, int>* reads)
{
    ifstream ifp;
    ifp.open(coreadfile.c_str(), ios::in);
    if(!ifp.is_open())
    {
        cout << "   Error: cannot find file " << coreadfile << endl;
        return false;
    }
    while(ifp.good())
    {
        string line("");
        getline(ifp, line);
        if(line.size()==0 || line[0]=='#') continue;
        //00000000	0	1109895	1110045	2	J00137:120:HNWTCBBXX:2:1112:28970:19021	151M
        vector<string> lineinfo = split_string(line, '\t');
        (*reads).insert(std::pair<string, int>(lineinfo[5], 1));
    }
    ifp.close();
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x70(%rsp), %r15
movq %r15, %rdi
callq 0x4390
movq (%rbx), %rsi
movq %r15, %rdi
movl $0x8, %edx
callq 0x41e0
leaq 0xe8(%rsp), %rdi
callq 0x40c0
movl %eax, %ebp
testb %al, %al
je 0x25731
movb %bpl, 0xf(%rsp)
movq 0x70(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x90(%rsp,%rax)
jne 0x25720
leaq 0x20(%rsp), %rbp
leaq 0x194e5(%rip), %r12     # 0x3eb0a
leaq 0x10(%rsp), %r13
leaq 0x30(%rsp), %rbx
movq %rbp, 0x10(%rsp)
movq %r13, %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x5384
movq 0x70(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x45c0
cmpq $0x0, 0x18(%rsp)
movq 0x10(%rsp), %rdi
je 0x256f7
cmpb $0x23, (%rdi)
je 0x256f7
movb $0x9, 0x30(%rsp)
leaq 0x58(%rsp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x367c0
movq 0x58(%rsp), %rax
leaq 0x40(%rsp), %rcx
movq %rcx, 0x30(%rsp)
movq 0xa0(%rax), %rsi
movq 0xa8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xd940
movl $0x1, 0x50(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0xe312
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x256e8
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x58(%rsp), %rdi
callq 0x6aac
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x25709
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x70(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x90(%rsp,%rax)
je 0x2562f
leaq 0x70(%rsp), %rdi
callq 0x40a0
movb 0xf(%rsp), %bpl
jmp 0x25786
movq 0x26890(%rip), %rdi     # 0x4bfc8
leaq 0x187ba(%rip), %rsi     # 0x3def9
movl $0x1b, %edx
callq 0x43a0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x26871(%rip), %rdi     # 0x4bfc8
callq 0x43a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
leaq 0x70(%rsp), %rdi
callq 0x40d0
movl %ebp, %eax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x257dd
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x257ca
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x257ca
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x6aac
jmp 0x257e0
jmp 0x257d8
movq %rax, %rbx
jmp 0x257f7
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x257f7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x70(%rsp), %rdi
callq 0x40d0
movq %rbx, %rdi
callq 0x45a0
nop