// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/seq.cpp
// Function: Seq_sp::KmerIndex::find(Seq_sp::Dna const&)
Vector<KmerIndex::NumId> KmerIndex::find (const Dna &dna) 
{
  ASSERT (canRead);
  
  unordered_map<string,size_t> id2num;  id2num. rehash (100000);  // PAR
  const size_t seqSize = dna. seq. size ();
  FOR (size_t, i, seqSize)
    if (i + kmer_size <= seqSize)
    {
      const Dna kmer ("x", dna. seq. substr (i, kmer_size), false);
      kmer. qc ();
      ASSERT (kmer. seq. size () == kmer_size);
      if (kmer. getXs ())
        continue;
      const StringVector ids (code2ids (dna2code (kmer)));
      for (const string& id : ids)
        id2num [id] ++;
    }
    
  Vector<NumId> num2id;  num2id. reserve (id2num. size ());
  for (const auto& it : id2num)
    num2id << std::move (NumId (it. second, it. first));
  num2id. sort ();
  
  return num2id; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0xb070
movq %rax, 0x118(%rsp)
movl $0x0, (%rax)
movq %r14, 0x20(%rsp)
cmpb $0x0, 0x238(%r14)
je 0x8d286
movq %rbx, 0x48(%rsp)
leaq 0x170(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
leaq 0x140(%rsp), %rdi
movl $0x186a0, %esi          # imm = 0x186A0
callq 0x91a10
movq 0x30(%r15), %rcx
testq %rcx, %rcx
movq 0x20(%rsp), %rbx
je 0x8d11e
addq $0x28, %r15
leaq 0x10(%rsp), %r14
xorl %r13d, %r13d
leaq 0x90(%rsp), %r12
leaq 0x2aa7e(%rip), %rax     # 0xb7998
addq $0x10, %rax
movq %rax, 0x108(%rsp)
movq %r15, 0x100(%rsp)
movq %rcx, 0x110(%rsp)
movq 0x240(%rbx), %rax
addq %r13, %rax
cmpq %rcx, %rax
ja 0x8d112
movq %r14, (%rsp)
movq %rsp, %rdi
leaq 0x78e5(%rip), %rsi      # 0x9483c
leaq 0x78df(%rip), %rdx      # 0x9483d
callq 0xdc76
movq 0x240(%rbx), %rcx
leaq 0x28(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0xb5d0
movq %r12, %rdi
movq %rsp, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x8fe0e
leaq 0x2b954(%rip), %rax     # 0xb88e8
movq %rax, 0x90(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x8cfb8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x8cfce
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
leaq 0x2cac3(%rip), %rax     # 0xb9a98
cmpb $0x1, (%rax)
jne 0x8cfea
movq %r12, %rdi
callq 0x6b85e
movq %r12, %rdi
callq 0x6be1c
movq 0x118(%rsp), %rax
movl $0x0, (%rax)
movq 0xc0(%rsp), %rbp
cmpq 0x240(%rbx), %rbp
jne 0x8d1ed
testq %rbp, %rbp
je 0x8d057
movq 0xb8(%rsp), %r15
xorl %ebx, %ebx
xorl %r14d, %r14d
movsbl (%r15,%rbx), %esi
movq 0x90(%rsp), %rax
movq %r12, %rdi
callq *0x68(%rax)
movzbl %al, %eax
addq %rax, %r14
incq %rbx
cmpq %rbx, %rbp
jne 0x8d01f
testq %r14, %r14
leaq 0x10(%rsp), %r14
movq 0x100(%rsp), %r15
movq 0x20(%rsp), %rbx
jne 0x8d0a1
movq %r12, %rdi
callq 0x8a12c
movq %rsp, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x8d860
movq (%rsp), %rbp
movq 0x8(%rsp), %rbx
cmpq %rbx, %rbp
je 0x8d094
leaq 0x140(%rsp), %rdi
movq %rbp, %rsi
callq 0x45e9a
incq (%rax)
addq $0x20, %rbp
jmp 0x8d076
movq %rsp, %rdi
callq 0x40952
movq 0x20(%rsp), %rbx
leaq 0x2b7b8(%rip), %rax     # 0xb8860
movq %rax, 0x90(%rsp)
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x8d0d5
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0x108(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x8d10a
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0x110(%rsp), %rcx
incq %r13
cmpq %rcx, %r13
jne 0x8cf36
xorps %xmm0, %xmm0
movq 0x48(%rsp), %r14
movups %xmm0, 0x9(%r14)
movups %xmm0, (%r14)
movq 0x158(%rsp), %rsi
movq %r14, %rdi
callq 0x8ee16
movq 0x150(%rsp), %r12
testq %r12, %r12
je 0x8d1c3
leaq 0xa8(%rsp), %r15
leaq 0x90(%rsp), %rbx
movabsq $-0x3333333333333333, %r13 # imm = 0xCCCCCCCCCCCCCCCD
leaq 0x8(%r12), %rdx
movq 0x28(%r12), %rsi
movq %rbx, %rdi
callq 0x8c8e2
movq %r14, %rdi
movq %rbx, %rsi
callq 0x91ade
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x3, %rax
imulq %r13, %rax
cmpq $0x2, %rax
jb 0x8d19d
movb $0x0, 0x18(%r14)
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x8d1ba
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq (%r12), %r12
testq %r12, %r12
jne 0x8d166
movq %r14, %rdi
callq 0x8ef1a
leaq 0x140(%rsp), %rdi
callq 0x44602
movq %r14, %rax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x8d316
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xae45(%rip), %rsi      # 0x98052
leaq 0xae4e(%rip), %rdx      # 0x98062
leaq 0x70(%rsp), %rdi
callq 0xdc76
leaq 0xe0(%rsp), %rdi
movl $0x1390, %esi           # imm = 0x1390
callq 0xe1b2
leaq 0x120(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0xe0(%rsp), %rdx
callq 0xe10a
leaq 0x5f80(%rip), %rsi      # 0x931d1
leaq 0x120(%rsp), %rdi
callq 0xbb10
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8d320
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8d32d
callq 0xb6b0
testl %eax, %eax
jne 0x8d316
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xadaf(%rip), %rsi      # 0x98052
leaq 0xadb8(%rip), %rdx      # 0x98062
leaq 0x50(%rsp), %rdi
callq 0xdc76
leaq 0x120(%rsp), %rdi
movl $0x1387, %esi           # imm = 0x1387
callq 0xe1b2
leaq 0x28(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x120(%rsp), %rdx
callq 0xe10a
leaq 0x5eed(%rip), %rsi      # 0x931d1
leaq 0x28(%rsp), %rdi
callq 0xbb10
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8d424
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8d430
movl $0x1, %edi
callq 0xb6d0
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1a8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xc685(%rip), %rsi      # 0x999de
leaq 0xc6bb(%rip), %rdx      # 0x99a1b
leaq 0x198(%rsp), %rdi
callq 0xdc76
leaq 0x653d(%rip), %rsi      # 0x938b1
leaq 0x198(%rsp), %rdi
callq 0xbb10
leaq 0x188(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8d3a6
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8d3b9
movq %rdx, 0x178(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x188(%rsp)
movq 0x8(%rax), %rsi
leaq 0x178(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe10a
leaq 0xc491(%rip), %rsi      # 0x9987f
leaq 0x28(%rsp), %rdi
callq 0xbb10
leaq 0x10(%rsp), %rcx
movq %rcx, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8d4a9
movups (%rcx), %xmm0
leaq 0x10(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x8d4b5
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xf0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xc582(%rip), %rsi      # 0x999de
leaq 0xc5b8(%rip), %rdx      # 0x99a1b
leaq 0xe0(%rsp), %rdi
callq 0xdc76
leaq 0x643a(%rip), %rsi      # 0x938b1
leaq 0xe0(%rsp), %rdi
callq 0xbb10
leaq 0x80(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8d4d4
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8d4e4
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
movq 0x8(%rax), %rsi
leaq 0x70(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x140(%rsp), %rdi
movq %rsp, %rsi
callq 0xe10a
leaq 0xc2d3(%rip), %rsi      # 0x997ea
leaq 0x140(%rsp), %rdi
callq 0xbb10
leaq 0xa0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8d548
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x8d55b
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
movq 0x8(%rax), %rdx
leaq 0x90(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1155a
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8d5a4
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d5a4
movq %rax, %rbx
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8d5ca
movq 0x150(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d5ca
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x8d5e9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d5e9
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r12, %rdi
je 0x8d60b
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d60b
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x8d667
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d667
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8d646
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d646
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x8d687
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d687
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8d6a9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d6a9
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x8d6cf
movq 0x188(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d6cf
movq %rax, %rbx
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8d6f1
movq 0x130(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d6f1
movq %rax, %rbx
movq 0x198(%rsp), %rdi
cmpq %r12, %rdi
je 0x8d714
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d714
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x8d858
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d858
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x8d738
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d738
movq %rax, %rbx
jmp 0x8d858
movq %rax, %rbx
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8d75e
movq 0x130(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d75e
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8d786
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d786
jmp 0x8d7b0
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x8d83e
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d83e
jmp 0x8d7fd
jmp 0x8d83b
movq %rax, %rbx
jmp 0x8d84b
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x8d7dc
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d7dc
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8d84b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d84b
jmp 0x8d83b
jmp 0x8d83b
movq %rax, %rbx
jmp 0x8d822
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x8d822
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0x48(%rsp), %rdi
callq 0x8ef7a
jmp 0x8d84b
movq %rax, %rbx
movq %rsp, %rdi
callq 0x40952
jmp 0x8d83e
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x8fa26
leaq 0x140(%rsp), %rdi
callq 0x44602
movq %rbx, %rdi
callq 0xba60