// File: /workspace/github_cpp_makefile_star2_O3/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 $0x78, %rsp
movl %ecx, %r14d
movq %rdx, %r15
movq %rdi, %rbx
leaq -0x80(%rbp), %rdi
callq 0x3ed8
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x751b
movq (%r15), %rcx
xorl %edx, %edx
cmpb $0x4e, (%rcx,%rdx)
je 0x76b7
incq %rdx
cmpq %rdx, %rax
jne 0x7509
movq %rbx, -0x48(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
movq 0x6deb(%rip), %rax      # 0xe320
movq 0x6ddc(%rip), %rcx      # 0xe318
movq %rax, %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
imull $0xb6db6db7, %edx, %edx # imm = 0xB6DB6DB7
testl %edx, %edx
jle 0x75aa
xorl %ebx, %ebx
leaq -0x40(%rbp), %r12
leaq -0x60(%rbp), %r13
movl $0x0, -0x60(%rbp)
movq -0x38(%rbp), %rsi
cmpq -0x30(%rbp), %rsi
je 0x757b
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x38(%rbp)
jmp 0x7594
movq %r12, %rdi
movq %r13, %rdx
callq 0x80f0
movq 0x6d93(%rip), %rax      # 0xe320
movq 0x6d84(%rip), %rcx      # 0xe318
incl %ebx
movq %rax, %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
imull $0xb6db6db7, %edx, %edx # imm = 0xB6DB6DB7
cmpl %edx, %ebx
jl 0x755a
leaq -0x98(%rbp), %rdi
movq %r15, %rsi
callq 0x56ac
leaq -0x60(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x5d1e
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0x75da
callq 0x3230
movq -0x60(%rbp), %r15
movq -0x58(%rbp), %rcx
movq %rcx, %rdx
subq %r15, %rdx
sarq $0x4, %rdx
testl %edx, %edx
jle 0x76de
xorl %r12d, %r12d
cmpq %r12, %rdx
jbe 0x77e1
movq 0x6d19(%rip), %rax      # 0xe320
movq 0x6d0a(%rip), %rsi      # 0xe318
movq %rax, %rdx
subq %rsi, %rdx
shrq $0x3, %rdx
imull $0xb6db6db7, %edx, %edx # imm = 0xB6DB6DB7
testl %edx, %edx
jle 0x7695
movq %r12, %rax
shlq $0x4, %rax
addq %rax, %r15
xorl %r13d, %r13d
xorl %ebx, %ebx
leaq (%rsi,%r13), %rdi
movq 0x8(%r15), %rcx
movq %rcx, %rax
xorl %edx, %edx
divq 0x8(%rsi,%r13)
movq %rdx, %rsi
movq %r15, %rdx
callq 0x8d0a
testq %rax, %rax
je 0x7660
cmpq $0x0, (%rax)
je 0x7660
movq -0x40(%rbp), %rax
incl (%rax,%rbx,4)
incq %rbx
movq 0x6cb6(%rip), %rax      # 0xe320
movq 0x6ca7(%rip), %rsi      # 0xe318
movq %rax, %rcx
subq %rsi, %rcx
shrq $0x3, %rcx
imull $0xb6db6db7, %ecx, %ecx # imm = 0xB6DB6DB7
movslq %ecx, %rcx
addq $0x38, %r13
cmpq %rcx, %rbx
jl 0x7631
movq -0x60(%rbp), %r15
movq -0x58(%rbp), %rcx
incq %r12
movq %rcx, %rdi
subq %r15, %rdi
movq %rdi, %rdx
sarq $0x4, %rdx
shrq $0x4, %rdi
movslq %edi, %rdi
cmpq %rdi, %r12
jl 0x75f7
jmp 0x76ec
movslq %r14d, %rax
leaq (%rax,%rax,2), %rdi
shlq $0x4, %rdi
addq 0x30(%rbx), %rdi
leaq -0x80(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %ecx
callq 0x794e
jmp 0x77c0
movq 0x6c3b(%rip), %rax      # 0xe320
movq 0x6c2c(%rip), %rsi      # 0xe318
movq %rax, %rcx
subq %rsi, %rcx
shrq $0x3, %rcx
imull $0xb6db6db7, %ecx, %ecx # imm = 0xB6DB6DB7
movslq %r14d, %r12
testl %ecx, %ecx
jle 0x7781
xorl %r14d, %r14d
leaq (%r12,%r12,2), %r13
shlq $0x4, %r13
leaq -0x80(%rbp), %r15
xorl %edx, %edx
subq %rsi, %rax
movq -0x40(%rbp), %rsi
shrq $0x3, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
cltq
movl (%rsi,%r14,4), %ecx
testl %ecx, %ecx
jg 0x7739
incq %r14
cmpq %rax, %r14
jl 0x7727
jmp 0x777c
movq -0x48(%rbp), %rax
movq 0x30(%rax), %rdi
addq %r13, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x794e
movq 0x6bca(%rip), %rax      # 0xe320
movq 0x6bbb(%rip), %rsi      # 0xe318
incq %r14
movq %rax, %rcx
subq %rsi, %rcx
shrq $0x3, %rcx
imull $0xb6db6db7, %ecx, %ecx # imm = 0xB6DB6DB7
movslq %ecx, %rcx
movb $0x1, %dl
cmpq %rcx, %r14
jl 0x7714
jmp 0x77a4
testb $0x1, %dl
jne 0x77a4
leaq (%r12,%r12,2), %rdi
shlq $0x4, %rdi
movq -0x48(%rbp), %rax
addq 0x30(%rax), %rdi
leaq -0x80(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %ecx
callq 0x794e
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x77b2
callq 0x3230
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x77c0
callq 0x3230
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x77d2
callq 0x3230
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2d27(%rip), %rdi      # 0xa50f
movq %r12, %rsi
xorl %eax, %eax
callq 0x3350
movq %rax, %rbx
jmp 0x782f
jmp 0x7810
jmp 0x7810
movq %rax, %rbx
movq -0x98(%rbp), %rdi
jmp 0x7817
jmp 0x7809
movq %rax, %rbx
jmp 0x7821
jmp 0x7810
movq %rax, %rbx
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x7821
callq 0x3230
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x782f
callq 0x3230
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7841
callq 0x3230
movq %rbx, %rdi
callq 0x3400
nop