// File: /workspace/github_cpp_makefile_star2_O1/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 0x258c3
movb %bpl, 0xf(%rsp)
movq 0x70(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x90(%rsp,%rax)
jne 0x258b2
leaq 0x20(%rsp), %rbp
leaq 0x1936b(%rip), %r12     # 0x3eb22
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)
je 0x25884
movq 0x10(%rsp), %rax
cmpb $0x23, (%rax)
je 0x25884
movb $0x9, 0x30(%rsp)
leaq 0x58(%rsp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x36b7c
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 0xda32
movl $0x1, 0x50(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0xe3f2
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x2587a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x58(%rsp), %rdi
callq 0x6aa2
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2589b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x70(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x90(%rsp,%rax)
je 0x257c1
leaq 0x70(%rsp), %rdi
callq 0x40a0
movb 0xf(%rsp), %bpl
jmp 0x25918
movq 0x266fe(%rip), %rdi     # 0x4bfc8
leaq 0x18628(%rip), %rsi     # 0x3def9
movl $0x1b, %edx
callq 0x43a0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x266df(%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 0x2596f
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x2595c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x2595c
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x6aa2
jmp 0x25972
jmp 0x2596a
movq %rax, %rbx
jmp 0x25989
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x25989
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x70(%rsp), %rdi
callq 0x40d0
movq %rbx, %rdi
callq 0x45a0
nop