// File: BGI-Qingdao[P]metaSLR/classify.cpp
// Function: MultiThread::process_reads(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
void process_reads(const std::string & head ,
                         const std::string & read , int index) {
        std::string barcode = parseName(head);
        if( containN(read) ){
            barcode_caches[index].IncrBarcodeHaps(barcode,-1,1);
            return ;
        }
        std::vector<int> vote;
        for( int i = 0 ; i< (int)g_kmers.size() ; i++ )
            vote.push_back(0);
        std::vector<Kmer> kmers=Kmer::chopRead2Kmer(BaseStr::str2BaseStr(read));
        //for( int i = 0 ; i <(int)seq.size()-g_K+1;i++ ){
        for(int i = 0 ; i <(int)kmers.size();i++){
            const Kmer & kmer = kmers.at(i);
            for( int j = 0 ; j< (int)g_kmers.size() ; j++ ) {
                if( g_kmers[j].find(kmer) != g_kmers[j].end() )
                    vote[j] ++ ;
            }
        }
        bool found = false;
        for( int i = 0 ; i< (int)g_kmers.size() ; i++ ){
            if( vote[i] > 0 ) {
                barcode_caches[index].IncrBarcodeHaps(barcode,i,vote[i]);
                found = true;
            }
        }
        if ( ! found )
            barcode_caches[index].IncrBarcodeHaps(barcode,-1);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x5060
movq -0xe0(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xdad0
movb %al, -0xd1(%rbp)
jmp 0xcfba
movb -0xd1(%rbp), %al
testb $0x1, %al
jne 0xcfc6
jmp 0xd012
movq -0xe0(%rbp), %rax
movq 0x30(%rax), %rdi
movslq -0x1c(%rbp), %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %rdi
leaq -0x40(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %ecx
callq 0xdb50
jmp 0xcff5
movl $0x1, -0x50(%rbp)
jmp 0xd343
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xd35e
leaq -0x68(%rbp), %rdi
callq 0xdc00
movl $0x0, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0xe4(%rbp)
leaq 0x163a6(%rip), %rdi     # 0x233d8
callq 0x6fa0
movq %rax, %rcx
movl -0xe4(%rbp), %eax
cmpl %ecx, %eax
jge 0xd078
movl $0x0, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xdc20
jmp 0xd05a
jmp 0xd05c
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0xd022
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xd355
movq -0x18(%rbp), %rsi
leaq -0xa0(%rbp), %rdi
callq 0x71c0
jmp 0xd08a
leaq -0x88(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x7e00
jmp 0xd09f
leaq -0xa0(%rbp), %rdi
callq 0x72b0
movl $0x0, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, -0xe8(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x8060
movq %rax, %rcx
movl -0xe8(%rbp), %eax
cmpl %ecx, %eax
jge 0xd22e
movslq -0xa4(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0x8080
movq %rax, -0xf0(%rbp)
jmp 0xd0fa
movq -0xf0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movl $0x0, -0xb4(%rbp)
movl -0xb4(%rbp), %eax
movl %eax, -0xf4(%rbp)
leaq 0x162b3(%rip), %rdi     # 0x233d8
callq 0x6fa0
movq %rax, %rcx
movl -0xf4(%rbp), %eax
cmpl %ecx, %eax
jge 0xd218
movslq -0xb4(%rbp), %rsi
leaq 0x1628f(%rip), %rdi     # 0x233d8
callq 0x7080
movq %rax, %rdi
movq -0xb0(%rbp), %rsi
callq 0x80f0
movq %rax, -0x100(%rbp)
jmp 0xd166
movq -0x100(%rbp), %rax
movq %rax, -0xc0(%rbp)
movslq -0xb4(%rbp), %rsi
leaq 0x16256(%rip), %rdi     # 0x233d8
callq 0x7080
movq %rax, %rdi
callq 0x8120
movq %rax, -0xc8(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x80c0
testb $0x1, %al
jne 0xd1af
jmp 0xd202
movslq -0xb4(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0xdc50
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xd202
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x72b0
jmp 0xd355
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x8360
jmp 0xd355
jmp 0xd204
movl -0xb4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb4(%rbp)
jmp 0xd112
jmp 0xd21a
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0xd0b5
movb $0x0, -0xc9(%rbp)
movl $0x0, -0xd0(%rbp)
movl -0xd0(%rbp), %eax
movl %eax, -0x104(%rbp)
leaq 0x16186(%rip), %rdi     # 0x233d8
callq 0x6fa0
movq %rax, %rcx
movl -0x104(%rbp), %eax
cmpl %ecx, %eax
jge 0xd2ed
movslq -0xd0(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0xdc50
cmpl $0x0, (%rax)
jle 0xd2d7
movq -0xe0(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x1c(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x110(%rbp)
movl -0xd0(%rbp), %eax
movl %eax, -0x108(%rbp)
movslq %eax, %rsi
leaq -0x68(%rbp), %rdi
callq 0xdc50
movq -0x110(%rbp), %rdi
movl -0x108(%rbp), %edx
movl (%rax), %ecx
leaq -0x40(%rbp), %rsi
callq 0xdb50
jmp 0xd2d0
movb $0x1, -0xc9(%rbp)
jmp 0xd2d9
movl -0xd0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xd0(%rbp)
jmp 0xd23f
testb $0x1, -0xc9(%rbp)
jne 0xd327
movq -0xe0(%rbp), %rax
movq 0x30(%rax), %rdi
movslq -0x1c(%rbp), %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %rdi
leaq -0x40(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %ecx
callq 0xdb50
jmp 0xd325
jmp 0xd327
leaq -0x88(%rbp), %rdi
callq 0x8360
leaq -0x68(%rbp), %rdi
callq 0xdc70
movl $0x0, -0x50(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x41d0
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
leaq -0x68(%rbp), %rdi
callq 0xdc70
leaq -0x40(%rbp), %rdi
callq 0x41d0
movq -0x48(%rbp), %rdi
callq 0x4550