// File: /workspace/github_cpp_makefile_star2_O3/schneebergerlab[P]DrLink/detect_recombsite.cpp
// Function: get_chr_num_ii(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int get_chr_num_ii(string marker_file)
{
    // here we get the number of chrs in the given marker list
    ifstream ifp;
    if(!ifp.good() )
    {
        cout << "   warning: file not found. " << endl;
        return 0;
    }
    map<string, int> chrs;
    while(ifp.good())
    {
        string line("");
        getline(ifp, line);
        if(line.size()==0 || line[0]=='#') continue;
        vector<string> lineinfo = split_string(line, '\t');
        string chrid = lineinfo[1];
        if(chrs.find(chrid) ==chrs.end() )
        {
           chrs.insert(std::pair<string, int>(chrid, 1) );
        }
    }
    return chrs.size();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
leaq 0xb0(%rsp), %rbx
movq %rbx, %rdi
callq 0x4390
movq (%rbx), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0xd0(%rsp,%rax)
je 0x1f68f
movq 0x2c97f(%rip), %rbx     # 0x4bfc8
leaq 0x1e5cb(%rip), %rsi     # 0x3dc1b
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x43a0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq 0x2c94d(%rip), %rdi     # 0x4bfc8
callq 0x4030
xorl %ebx, %ebx
movq %rax, %rdi
callq 0x4220
jmp 0x1f83b
leaq 0x88(%rsp), %rcx
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x30(%rsp), %r13
leaq 0x1f44f(%rip), %r14     # 0x3eb0a
leaq 0x20(%rsp), %r15
leaq 0x68(%rsp), %r12
movq %rsp, %rbp
movq %r13, 0x20(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x5384
movq 0xb0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x45c0
cmpq $0x0, 0x28(%rsp)
movq 0x20(%rsp), %rdi
je 0x1f7ff
cmpb $0x23, (%rdi)
je 0x1f7ff
movb $0x9, 0x40(%rsp)
movq %r12, %rdi
movq %r15, %rsi
leaq 0x40(%rsp), %rdx
callq 0x367c0
movq 0x68(%rsp), %rax
leaq 0x10(%rsp), %rcx
movq %rcx, (%rsp)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0xd940
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
callq 0xe288
leaq 0x88(%rsp), %rcx
cmpq %rcx, %rax
jne 0x1f7d7
movq %rbp, %r13
movq %r12, %rbp
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0xd940
movl $0x1, 0x60(%rsp)
leaq 0x80(%rsp), %rdi
movq %r12, %rsi
callq 0xe312
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
movq %rbp, %r12
je 0x1f7cf
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4340
movq %r13, %rbp
leaq 0x30(%rsp), %r13
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1f7f2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4340
movq %r12, %rdi
callq 0x6aac
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f811
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xb0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0xd0(%rsp,%rax)
je 0x1f6c8
leaq 0x80(%rsp), %rdi
movl 0x28(%rdi), %ebx
callq 0xd7ee
leaq 0xb0(%rsp), %rdi
callq 0x40d0
movl %ebx, %eax
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1f889
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1f889
jmp 0x1f886
movq %rax, %rbx
jmp 0x1f8e6
jmp 0x1f8ba
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1f8a9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1f8a9
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x6aac
jmp 0x1f8bd
movq %rax, %rbx
jmp 0x1f8d9
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1f8d9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x80(%rsp), %rdi
callq 0xd7ee
leaq 0xb0(%rsp), %rdi
callq 0x40d0
movq %rbx, %rdi
callq 0x45a0
nop