// File: /workspace/github_cpp_makefile_star2_O1/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 0x1f773
movq 0x2c89b(%rip), %rbx     # 0x4bfc8
leaq 0x1e4e7(%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 0x2c869(%rip), %rdi     # 0x4bfc8
callq 0x4030
xorl %ebx, %ebx
movq %rax, %rdi
callq 0x4220
jmp 0x1f936
leaq 0x88(%rsp), %r12
movl $0x0, (%r12)
xorl %eax, %eax
movq %rax, 0x8(%r12)
movq %r12, 0x10(%r12)
movq %r12, 0x18(%r12)
movq %rax, 0x20(%r12)
movq 0xb0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0xd0(%rsp,%rax)
jne 0x1f926
leaq 0x30(%rsp), %r13
leaq 0x1f363(%rip), %r14     # 0x3eb22
leaq 0x20(%rsp), %r15
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)
je 0x1f8f5
movq 0x20(%rsp), %rax
cmpb $0x23, (%rax)
je 0x1f8f5
movb $0x9, 0x40(%rsp)
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
leaq 0x40(%rsp), %rdx
callq 0x36b7c
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 0xda32
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
callq 0xe368
cmpq %r12, %rax
jne 0x1f8d0
movq %r12, %r13
movq %rbp, %r12
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rbp
movq %rbp, %rdi
callq 0xda32
movl $0x1, 0x60(%rsp)
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
callq 0xe3f2
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
movq %r12, %rbp
je 0x1f8c8
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4340
movq %r13, %r12
leaq 0x30(%rsp), %r13
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1f8eb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x68(%rsp), %rdi
callq 0x6aa2
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f90c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xb0(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0xd0(%rsp,%rax)
je 0x1f7c7
leaq 0x80(%rsp), %rdi
movl 0x28(%rdi), %ebx
callq 0xd8e0
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 0x1f97f
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1f97f
jmp 0x1f97c
jmp 0x1f9b5
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1f99f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1f99f
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x6aa2
jmp 0x1f9b8
movq %rax, %rbx
jmp 0x1f9e1
movq %rax, %rbx
jmp 0x1f9d4
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1f9d4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x80(%rsp), %rdi
callq 0xd8e0
leaq 0xb0(%rsp), %rdi
callq 0x40d0
movq %rbx, %rdi
callq 0x45a0