// File: /workspace/github_cpp_makefile_star2_O1/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 -0x88(%rbp), %rdi
callq 0x3f2a
movq 0x8(%r15), %rax
testq %rax, %rax
setne %cl
je 0x757d
movq (%r15), %rdx
cmpb $0x4e, (%rdx)
je 0x757d
movl $0x1, %esi
cmpq %rsi, %rax
setne %cl
je 0x757d
cmpb $0x4e, (%rdx,%rsi)
leaq 0x1(%rsi), %rsi
jne 0x756b
testb %cl, %cl
je 0x75ab
movslq %r14d, %rax
leaq (%rax,%rax,2), %rdi
shlq $0x4, %rdi
addq 0x30(%rbx), %rdi
leaq -0x88(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %ecx
callq 0x7982
jmp 0x77f4
movl %r14d, -0x30(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq 0x6d63(%rip), %rax      # 0xe320
subq 0x6d54(%rip), %rax      # 0xe318
movq $0x0, -0x40(%rbp)
shrq $0x3, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
testl %eax, %eax
jle 0x7631
xorl %r14d, %r14d
leaq -0x50(%rbp), %r12
leaq -0x68(%rbp), %r13
movl $0x0, -0x68(%rbp)
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x7606
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x7611
movq %r12, %rdi
movq %r13, %rdx
callq 0x8144
movq 0x6d08(%rip), %rax      # 0xe320
subq 0x6cf9(%rip), %rax      # 0xe318
incl %r14d
shrq $0x3, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
cmpl %eax, %r14d
jl 0x75e5
leaq -0xa0(%rbp), %rdi
movq %r15, %rsi
callq 0x570a
leaq -0x68(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x5d84
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x7661
callq 0x3230
movq -0x68(%rbp), %r15
movq -0x60(%rbp), %rdx
subq %r15, %rdx
sarq $0x4, %rdx
testl %edx, %edx
jle 0x7730
xorl %r12d, %r12d
cmpq %r12, %rdx
jbe 0x7815
movq 0x6c95(%rip), %rax      # 0xe320
movq 0x6c86(%rip), %rsi      # 0xe318
subq %rsi, %rax
shrq $0x3, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
testl %eax, %eax
jle 0x770c
movq %r12, %rax
shlq $0x4, %rax
addq %rax, %r15
xorl %r13d, %r13d
xorl %r14d, %r14d
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 0x8d64
testq %rax, %rax
je 0x76e3
cmpq $0x0, (%rax)
je 0x76e3
movq -0x50(%rbp), %rax
incl (%rax,%r14,4)
incq %r14
movq 0x6c33(%rip), %rax      # 0xe320
movq 0x6c24(%rip), %rsi      # 0xe318
subq %rsi, %rax
shrq $0x3, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
cltq
addq $0x38, %r13
cmpq %rax, %r14
jl 0x76b3
incq %r12
movq -0x68(%rbp), %r15
movq -0x60(%rbp), %rax
subq %r15, %rax
movq %rax, %rdx
sarq $0x4, %rdx
shrq $0x4, %rax
cltq
cmpq %rax, %r12
jl 0x767b
movq 0x6be9(%rip), %rax      # 0xe320
subq 0x6bda(%rip), %rax      # 0xe318
shrq $0x3, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movslq -0x30(%rbp), %rcx
testl %eax, %eax
jle 0x77b6
xorl %r14d, %r14d
movq %rcx, -0x30(%rbp)
leaq (%rcx,%rcx,2), %r13
shlq $0x4, %r13
leaq -0x88(%rbp), %r15
xorl %r12d, %r12d
movq -0x50(%rbp), %rax
movl (%rax,%r14,4), %ecx
testl %ecx, %ecx
jle 0x778a
movq 0x30(%rbx), %rdi
addq %r13, %rdi
movb $0x1, %r12b
movq %r15, %rsi
movl %r14d, %edx
callq 0x7982
incq %r14
movq 0x6b8c(%rip), %rax      # 0xe320
subq 0x6b7d(%rip), %rax      # 0xe318
shrq $0x3, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
cltq
cmpq %rax, %r14
jl 0x7769
testb $0x1, %r12b
movq -0x30(%rbp), %rcx
jne 0x77d8
leaq (%rcx,%rcx,2), %rdi
shlq $0x4, %rdi
addq 0x30(%rbx), %rdi
leaq -0x88(%rbp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %ecx
callq 0x7982
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x77e6
callq 0x3230
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x77f4
callq 0x3230
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7806
callq 0x3230
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2cf3(%rip), %rdi      # 0xa50f
movq %r12, %rsi
xorl %eax, %eax
callq 0x3350
jmp 0x7844
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
jmp 0x784b
jmp 0x783b
movq %rax, %rbx
jmp 0x7863
movq %rax, %rbx
jmp 0x7855
jmp 0x7844
jmp 0x7844
movq %rax, %rbx
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x7855
callq 0x3230
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x7863
callq 0x3230
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7875
callq 0x3230
movq %rbx, %rdi
callq 0x3400
nop