// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %ecx, %r14d
movq %rdx, %r15
movq %rdi, %rbx
leaq -0x90(%rbp), %rdi
callq 0x3bd4
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6d66
testb %al, %al
je 0x6a12
movslq %r14d, %rax
imulq $0x30, %rax, %rdi
addq 0x30(%rbx), %rdi
leaq -0x90(%rbp), %rsi
pushq $-0x1
popq %rdx
pushq $0x1
popq %rcx
callq 0x6d8e
jmp 0x6b90
movl %r14d, -0x2c(%rbp)
movq %rbx, -0x38(%rbp)
xorps %xmm0, %xmm0
leaq -0x70(%rbp), %r12
andq $0x0, 0x10(%r12)
movaps %xmm0, (%r12)
xorl %r14d, %r14d
pushq $0x38
popq %rbx
leaq -0x50(%rbp), %r13
movq 0x78f3(%rip), %rax      # 0xe330
subq 0x78e4(%rip), %rax      # 0xe328
cqto
idivq %rbx
cmpl %eax, %r14d
jge 0x6a62
andl $0x0, -0x50(%rbp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x765c
incl %r14d
jmp 0x6a36
leaq -0xa8(%rbp), %rdi
movq %r15, %rsi
callq 0x4d56
leaq -0x50(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x533a
movl -0x2c(%rbp), %r14d
leaq -0xa8(%rbp), %rdi
callq 0x7e2e
xorl %r15d, %r15d
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
shrq $0x4, %rax
cltq
cmpq %rax, %r15
jge 0x6b03
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x5512
movq %rax, %r13
xorl %r14d, %r14d
xorl %r12d, %r12d
movq 0x786d(%rip), %rax      # 0xe330
movq 0x785e(%rip), %rdi      # 0xe328
subq %rdi, %rax
cqto
idivq %rbx
cltq
cmpq %rax, %r12
jge 0x6afa
addq %r14, %rdi
movq %r13, %rsi
callq 0x85cc
testq %rax, %rax
je 0x6af1
movq -0x70(%rbp), %rax
incl (%rax,%r12,4)
incq %r12
addq $0x38, %r14
jmp 0x6abc
incq %r15
movl -0x2c(%rbp), %r14d
jmp 0x6a94
movslq %r14d, %rax
xorl %r15d, %r15d
imulq $0x30, %rax, %r14
leaq -0x90(%rbp), %r12
xorl %r13d, %r13d
movq 0x7812(%rip), %rax      # 0xe330
subq 0x7803(%rip), %rax      # 0xe328
cqto
idivq %rbx
cltq
cmpq %rax, %r15
jge 0x6b5b
movq -0x70(%rbp), %rax
movl (%rax,%r15,4), %ecx
testl %ecx, %ecx
jle 0x6b56
movq -0x38(%rbp), %rax
movq 0x30(%rax), %rdi
addq %r14, %rdi
movb $0x1, %r13b
movq %r12, %rsi
movl %r15d, %edx
callq 0x6d8e
incq %r15
jmp 0x6b17
testb $0x1, %r13b
jne 0x6b7e
movq -0x38(%rbp), %rax
addq 0x30(%rax), %r14
leaq -0x90(%rbp), %rsi
pushq $-0x1
popq %rdx
pushq $0x1
popq %rcx
movq %r14, %rdi
callq 0x6d8e
leaq -0x50(%rbp), %rdi
callq 0x7e42
leaq -0x70(%rbp), %rdi
callq 0x77d4
leaq -0x90(%rbp), %rdi
callq 0x3130
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6bd1
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x7e2e
jmp 0x6bdd
jmp 0x6bcc
movq %rax, %rbx
jmp 0x6be6
jmp 0x6bd1
jmp 0x6bd1
movq %rax, %rbx
jmp 0x6bdd
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x7e42
leaq -0x70(%rbp), %rdi
callq 0x77d4
leaq -0x90(%rbp), %rdi
callq 0x3130
movq %rbx, %rdi
callq 0x3440