// File: /workspace/github_cpp_makefile_star2_O1/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
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rax, %rcx
movslq %esi, %r14
cmpq %r14, %rcx
jne 0x39f7
movl %esi, %r13d
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq -0x260(%rbp), %rax
movaps %xmm0, -0x30(%rax)
movaps %xmm0, -0x10(%rax)
movaps %xmm0, -0x20(%rax)
movq $0x0, (%rax)
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
leaq 0xab8b(%rip), %rdi      # 0xe318
leaq -0x290(%rbp), %rsi
callq 0x89ee
leaq -0x290(%rbp), %rdi
callq 0x61b8
leaq -0x290(%rbp), %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x3380
leaq -0x48(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
xorl %r15d, %r15d
testl %r13d, %r13d
jne 0x38a7
movq -0x290(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x290(%rbp), %rax
addq %rax, %rdi
movl $0xa, %esi
callq 0x3240
movsbl %al, %edx
leaq -0x290(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x3420
movl -0x50(%rbp), %eax
movl %eax, 0xab19(%rip)      # 0xe330
leal (%rax,%rax), %ecx
movq $-0x1, %rdx
cmpl $0x1f, %eax
jg 0x382e
shlq %cl, %rdx
notq %rdx
jmp 0x3833
cmpl $0x20, %eax
jne 0x3837
xorl %esi, %esi
jmp 0x3844
movq $-0x1, %rsi
shlq %cl, %rsi
notq %rsi
movq %rsi, 0xaabd(%rip)      # 0xe308
movq %rdx, 0xaabe(%rip)      # 0xe310
movl %eax, 0xaaac(%rip)      # 0xe304
imulq $0x38, %r14, %rbx
addq 0xaab5(%rip), %rbx      # 0xe318
leaq -0x70(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x570a
leaq -0x70(%rbp), %rdi
callq 0x563a
leaq -0x80(%rbp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
leaq -0x38(%rbp), %rdx
movq %rbx, (%rdx)
movq %rbx, %rdi
callq 0x8c40
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x38a1
callq 0x3230
movl $0x1, %r15d
movl %r13d, -0x2c(%rbp)
leaq -0x58(%rbp), %r12
imulq $0x38, %r14, %r14
leaq -0x70(%rbp), %r13
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 0x3941
movq 0xaa1f(%rip), %rbx      # 0xe318
addq %r14, %rbx
movq %r13, %rdi
movq %r12, %rsi
callq 0x570a
movq %r13, %rdi
callq 0x563a
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq %rbx, -0x38(%rbp)
movq %rbx, %rdi
leaq -0x80(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0x8c40
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x3939
callq 0x3230
incl %r15d
jmp 0x38b7
movq 0xa6a8(%rip), %rdi      # 0xdff0
leaq 0x6704(%rip), %rsi      # 0xa053
movl $0x9, %edx
leaq -0x48(%rbp), %r12
callq 0x3290
movl -0x2c(%rbp), %r14d
movq 0xa688(%rip), %rdi      # 0xdff0
movl %r15d, %esi
callq 0x33f0
movq %rax, %rbx
leaq 0x66e3(%rip), %rsi      # 0xa05d
movl $0xb, %edx
movq %rax, %rdi
callq 0x3290
movq %rbx, %rdi
movl %r14d, %esi
callq 0x33f0
movq %rax, %rbx
leaq 0x66cd(%rip), %rsi      # 0xa069
movl $0xa, %edx
movq %rax, %rdi
callq 0x3290
movl 0xa981(%rip), %esi      # 0xe330
movq %rbx, %rdi
callq 0x33f0
leaq 0x66b6(%rip), %rsi      # 0xa074
movl $0x6, %edx
movq %rax, %rdi
callq 0x3290
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x39d9
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 0x6606(%rip), %rdi      # 0xa004
leaq 0x6617(%rip), %rsi      # 0xa01c
leaq 0x661d(%rip), %rcx      # 0xa029
movl $0x1d, %edx
callq 0x3180
jmp 0x3a3c
movq %rax, %rbx
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x3a5d
callq 0x3230
jmp 0x3a5d
movq %rax, %rbx
leaq -0x290(%rbp), %rdi
callq 0x61b8
jmp 0x3a77
movq %rax, %rbx
jmp 0x3a5d
jmp 0x3a56
movq %rax, %rbx
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x3a59
callq 0x3230
jmp 0x3a59
movq %rax, %rbx
leaq -0x48(%rbp), %r12
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x3a6b
callq 0x3230
leaq -0x290(%rbp), %rdi
callq 0x3080
movq %rbx, %rdi
callq 0x3400