// File: /workspace/github_cpp_makefile_star2_O3/BGI-Qingdao[P]metaSLR/classify.cpp
// Function: load_kmers(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
void load_kmers(const std::string & file,int index){
    assert( g_kmers.size() == index );
    g_kmers.push_back(std::unordered_set<Kmer>());
    std::ifstream ifs(file);
    std::string line;
    int total_kmer = 0 ;
    if(index==0){
        std::getline(ifs,line);
        g_K = line.size();
        Kmer::InitFilter(g_K);
        g_kmers[index].insert(Kmer::str2Kmer(BaseStr::str2BaseStr(line)));
        total_kmer++;
    }
    while(!std::getline(ifs,line).eof()){
        g_kmers[index].insert(Kmer::str2Kmer(BaseStr::str2BaseStr(line)));
        total_kmer++;
    }
    std::cerr<<"Recorded "<<total_kmer<<" haplotype "<<index<<" specific "<<g_K<<"-mers\n"; 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq 0xabf9(%rip), %rax      # 0xe320
subq 0xabea(%rip), %rax      # 0xe318
movq %rax, -0x38(%rbp)
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rax, %rcx
movslq %esi, %rax
cmpq %rax, %rcx
jne 0x39f6
movl %esi, %r12d
movq %rdi, %rbx
leaq -0x260(%rbp), %rax
movq $0x0, -0x10(%rax)
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
leaq 0xab8e(%rip), %rdi      # 0xe318
leaq -0x290(%rbp), %rsi
callq 0x899e
leaq -0x290(%rbp), %rdi
callq 0x616c
leaq -0x290(%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x3380
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
xorl %r15d, %r15d
testl %r12d, %r12d
jne 0x38a0
movq -0x290(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %edx
leaq -0x290(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x3420
movl -0x58(%rbp), %eax
movl %eax, 0xab23(%rip)      # 0xe330
leal (%rax,%rax), %ecx
movq $-0x1, %rdx
cmpl $0x1f, %eax
jg 0x3824
shlq %cl, %rdx
notq %rdx
jmp 0x3829
cmpl $0x20, %eax
jne 0x382d
xorl %esi, %esi
jmp 0x383a
movq $-0x1, %rsi
shlq %cl, %rsi
notq %rsi
movq %rsi, 0xaac7(%rip)      # 0xe308
movq %rdx, 0xaac8(%rip)      # 0xe310
movl %eax, 0xaab6(%rip)      # 0xe304
movq 0xaac3(%rip), %rbx      # 0xe318
addq -0x38(%rbp), %rbx
leaq -0x78(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x56ac
leaq -0x78(%rbp), %rdi
callq 0x55ea
leaq -0x88(%rbp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
leaq -0x40(%rbp), %rdx
movq %rbx, (%rdx)
movq %rbx, %rdi
callq 0x8bee
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x389a
callq 0x3230
movl $0x1, %r15d
movl %r12d, -0x2c(%rbp)
leaq -0x60(%rbp), %r12
leaq -0x78(%rbp), %r13
leaq -0x40(%rbp), %r14
movq -0x290(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x290(%rbp), %rbx
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3420
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x2, 0x20(%rax,%rcx)
jne 0x3940
movq 0xaa26(%rip), %rbx      # 0xe318
addq -0x38(%rbp), %rbx
movq %r13, %rdi
movq %r12, %rsi
callq 0x56ac
movq %r13, %rdi
callq 0x55ea
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq %rbx, -0x40(%rbp)
movq %rbx, %rdi
leaq -0x88(%rbp), %rsi
movq %r14, %rdx
callq 0x8bee
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x3938
callq 0x3230
incl %r15d
jmp 0x38b0
movq 0xa6a9(%rip), %rdi      # 0xdff0
leaq 0x6705(%rip), %rsi      # 0xa053
movl $0x9, %edx
leaq -0x50(%rbp), %r14
callq 0x3290
movl -0x2c(%rbp), %r12d
movq 0xa689(%rip), %rdi      # 0xdff0
movl %r15d, %esi
callq 0x33f0
movq %rax, %rbx
leaq 0x66e4(%rip), %rsi      # 0xa05d
movl $0xb, %edx
movq %rax, %rdi
callq 0x3290
movq %rbx, %rdi
movl %r12d, %esi
callq 0x33f0
movq %rax, %rbx
leaq 0x66ce(%rip), %rsi      # 0xa069
movl $0xa, %edx
movq %rax, %rdi
callq 0x3290
movl 0xa982(%rip), %esi      # 0xe330
movq %rbx, %rdi
callq 0x33f0
leaq 0x66b7(%rip), %rsi      # 0xa074
movl $0x6, %edx
movq %rax, %rdi
callq 0x3290
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x39d8
callq 0x3230
leaq -0x290(%rbp), %rdi
callq 0x3080
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6607(%rip), %rdi      # 0xa004
leaq 0x6618(%rip), %rsi      # 0xa01c
leaq 0x661e(%rip), %rcx      # 0xa029
movl $0x1d, %edx
callq 0x3180
jmp 0x3a3b
movq %rax, %rbx
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x3a5c
callq 0x3230
jmp 0x3a5c
movq %rax, %rbx
leaq -0x290(%rbp), %rdi
callq 0x616c
jmp 0x3a76
movq %rax, %rbx
jmp 0x3a5c
jmp 0x3a55
movq %rax, %rbx
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x3a58
callq 0x3230
jmp 0x3a58
movq %rax, %rbx
leaq -0x50(%rbp), %r14
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x3a6a
callq 0x3230
leaq -0x290(%rbp), %rdi
callq 0x3080
movq %rbx, %rdi
callq 0x3400