// File: /workspace/github_cpp_makefile_star2_O3/BGI-Qingdao[P]metaSLR/./kmer/kmer.h
// Function: Kmer::chopRead2Kmer(std::vector<char, std::allocator<char>> const&)
static std::vector<Kmer> chopRead2Kmer( const std::vector<char> & read ){
        int rlen = read.size() ;
        assert(rlen >= overlap);
        std::vector<Kmer>  ret;
        Kmer word; word.Init();
        std::vector<char> bal_read = BaseStr::reverseComplementSeq(read);
        for (int index = 0; index < overlap; index++ )
        {
            word.LeftBitMoveBy2();
            word.low |= read.at(index);
        }
        Kmer bal_word = word.reverseComplement();
        if( word < bal_word ) 
            ret.push_back(word) ;
        else
            ret.push_back(bal_word);
        for( int index = 1 ; index <= rlen - overlap ; index ++ ){
            word.nextKmer (read.at(index - 1 + overlap));
            bal_word.prevKmer( bal_read[rlen - index - overlap] );
            if( word < bal_word ) 
                ret.push_back(word) ;
            else
                ret.push_back(bal_word);
        }
        return ret;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq (%rsi), %r12
movq 0x8(%rsi), %r15
movl %r15d, %r13d
subl %r12d, %r13d
cmpl %r13d, 0x85c1(%rip)     # 0xe304
jg 0x5f81
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movaps %xmm0, -0x40(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x86a6
movslq 0x8593(%rip), %rax      # 0xe304
testq %rax, %rax
jle 0x5db9
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rsi
movq (%r14), %rdi
movq 0x8(%r14), %rdx
subq %rdi, %rdx
xorl %r8d, %r8d
shldq $0x2, %rsi, %rcx
movq %rcx, -0x40(%rbp)
shlq $0x2, %rsi
movq %rsi, -0x38(%rbp)
cmpq %r8, %rdx
je 0x5f62
movsbq (%rdi,%r8), %r9
orq %r9, %rsi
movq %rsi, -0x38(%rbp)
incq %r8
cmpq %r8, %rax
jne 0x5d8b
movsbl %al, %esi
leaq -0x40(%rbp), %rdi
callq 0x61f0
movq %rax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x40(%rbp), %rcx
cmpq %rax, %rcx
jb 0x5de1
cmpq %rax, %rcx
jne 0x5dfb
cmpq %rdx, -0x38(%rbp)
jae 0x5dfb
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5df5
leaq 0x8(%rbx), %rax
movaps -0x40(%rbp), %xmm0
jmp 0x5e0d
leaq -0x40(%rbp), %rdx
jmp 0x5e1a
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5e16
leaq 0x8(%rbx), %rax
movups -0x50(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, (%rax)
jmp 0x5e22
leaq -0x50(%rbp), %rdx
movq %rbx, %rdi
callq 0x8756
movl 0x84dc(%rip), %eax      # 0xe304
cmpl %r13d, %eax
jge 0x5f42
notl %r12d
addl %r15d, %r12d
xorl %r15d, %r15d
leal (%rax,%r15), %ecx
movslq %ecx, %rsi
movq (%r14), %rcx
movq 0x8(%r14), %rdx
subq %rcx, %rdx
cmpq %rsi, %rdx
jbe 0x5f73
movsbq (%rcx,%rsi), %rcx
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
shldq $0x2, %rdx, %rsi
shlq $0x2, %rdx
andq 0x8497(%rip), %rsi      # 0xe308
andq 0x8498(%rip), %rdx      # 0xe310
movq %rsi, -0x40(%rbp)
orq %rcx, %rdx
movq %rdx, -0x38(%rbp)
movl %r12d, %ecx
subl %eax, %ecx
movslq %ecx, %rcx
movq -0x68(%rbp), %rdi
movsbq (%rdi,%rcx), %rdi
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %r8
shrdq $0x2, %rcx, %r8
shrq $0x2, %rcx
movq %rcx, -0x50(%rbp)
movq %r8, -0x48(%rbp)
movl %eax, %r9d
addl %eax, %r9d
leal -0x2(,%rax,2), %eax
addb $-0x42, %r9b
xorl %r10d, %r10d
cmpl $0x40, %eax
cmovgeq %rcx, %r8
setl %r10b
movzbl %r9b, %ecx
cmovll %eax, %ecx
shlq %cl, %rdi
orq %r8, %rdi
movq %rdi, -0x50(%rbp,%r10,8)
cmpq -0x50(%rbp), %rsi
jae 0x5eea
movq 0x8(%rbx), %rsi
jmp 0x5ef6
movq 0x8(%rbx), %rsi
jne 0x5f08
cmpq -0x48(%rbp), %rdx
jae 0x5f08
cmpq 0x10(%rbx), %rsi
je 0x5f02
movaps -0x40(%rbp), %xmm0
jmp 0x5f12
leaq -0x40(%rbp), %rdx
jmp 0x5f20
cmpq 0x10(%rbx), %rsi
je 0x5f1c
movups -0x50(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x5f28
leaq -0x50(%rbp), %rdx
movq %rbx, %rdi
callq 0x8756
movl 0x83d6(%rip), %eax      # 0xe304
movl %r13d, %ecx
subl %eax, %ecx
incl %r15d
decl %r12d
cmpl %ecx, %r15d
jl 0x5e3a
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x5f50
callq 0x3230
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x45a6(%rip), %rdi      # 0xa50f
movq %rdx, %rsi
xorl %eax, %eax
callq 0x3350
leaq 0x4595(%rip), %rdi      # 0xa50f
xorl %eax, %eax
callq 0x3350
leaq 0x4635(%rip), %rdi      # 0xa5bd
leaq 0x453c(%rip), %rsi      # 0xa4cb
leaq 0x4637(%rip), %rcx      # 0xa5cd
movl $0xab, %edx
callq 0x3180
movq %rax, %r14
jmp 0x5fbc
jmp 0x5fab
jmp 0x5fab
jmp 0x5fab
movq %rax, %r14
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x5fbc
callq 0x3230
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5fc9
callq 0x3230
movq %r14, %rdi
callq 0x3400
nop