// File: /workspace/github_cpp_makefile_star2_O1/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 0x8d6c2
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 0x91d00
movq 0x30(%r15), %rcx
testq %rcx, %rcx
movq 0x20(%rsp), %rbx
je 0x8d55a
addq $0x28, %r15
leaq 0x10(%rsp), %r14
xorl %r13d, %r13d
leaq 0x90(%rsp), %r12
leaq 0x2a61a(%rip), %rax     # 0xb7968
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 0x8d54e
movq %r14, (%rsp)
movq %rsp, %rdi
leaq 0x74c7(%rip), %rsi      # 0x94852
leaq 0x74c1(%rip), %rdx      # 0x94853
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 0x901aa
leaq 0x2b520(%rip), %rax     # 0xb88e8
movq %rax, 0x90(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x8d3ec
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x8d402
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
leaq 0x2c68f(%rip), %rax     # 0xb9a98
cmpb $0x1, (%rax)
jne 0x8d41e
movq %r12, %rdi
callq 0x6b9ea
movq %r12, %rdi
callq 0x6bfa8
movq 0x118(%rsp), %rax
movl $0x0, (%rax)
movq 0xc0(%rsp), %rax
cmpq 0x240(%rbx), %rax
jne 0x8d629
movq 0xc0(%rsp), %rbp
testq %rbp, %rbp
je 0x8d493
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 0x8d45b
testq %r14, %r14
leaq 0x10(%rsp), %r14
movq 0x100(%rsp), %r15
movq 0x20(%rsp), %rbx
jne 0x8d4dd
movq %r12, %rdi
callq 0x8a58a
movq %rsp, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x8dc9c
movq (%rsp), %rbp
movq 0x8(%rsp), %rbx
cmpq %rbx, %rbp
je 0x8d4d0
leaq 0x140(%rsp), %rdi
movq %rbp, %rsi
callq 0x45fee
incq (%rax)
addq $0x20, %rbp
jmp 0x8d4b2
movq %rsp, %rdi
callq 0x40aec
movq 0x20(%rsp), %rbx
leaq 0x2b37c(%rip), %rax     # 0xb8860
movq %rax, 0x90(%rsp)
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x8d511
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 0x8d546
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0x110(%rsp), %rcx
incq %r13
cmpq %rcx, %r13
jne 0x8d36a
xorps %xmm0, %xmm0
movq 0x48(%rsp), %r14
movups %xmm0, 0x9(%r14)
movups %xmm0, (%r14)
movq 0x158(%rsp), %rsi
movq %r14, %rdi
callq 0x8f1f2
movq 0x150(%rsp), %r12
testq %r12, %r12
je 0x8d5ff
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 0x8cd10
movq %r14, %rdi
movq %rbx, %rsi
callq 0x91dd4
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x3, %rax
imulq %r13, %rax
cmpq $0x2, %rax
jb 0x8d5d9
movb $0x0, 0x18(%r14)
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x8d5f6
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq (%r12), %r12
testq %r12, %r12
jne 0x8d5a2
movq %r14, %rdi
callq 0x8f2f6
leaq 0x140(%rsp), %rdi
callq 0x4473c
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 0x8d752
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xaa19(%rip), %rsi      # 0x98062
leaq 0xaa22(%rip), %rdx      # 0x98072
leaq 0x70(%rsp), %rdi
callq 0xdc76
leaq 0xe0(%rsp), %rdi
movl $0x1390, %esi           # imm = 0x1390
callq 0xe1a8
leaq 0x120(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0xe0(%rsp), %rdx
callq 0xe100
leaq 0x5b44(%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 0x8d75c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8d769
callq 0xb6b0
testl %eax, %eax
jne 0x8d752
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xa983(%rip), %rsi      # 0x98062
leaq 0xa98c(%rip), %rdx      # 0x98072
leaq 0x50(%rsp), %rdi
callq 0xdc76
leaq 0x120(%rsp), %rdi
movl $0x1387, %esi           # imm = 0x1387
callq 0xe1a8
leaq 0x28(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x120(%rsp), %rdx
callq 0xe100
leaq 0x5ab1(%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 0x8d860
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8d86c
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 0xc259(%rip), %rsi      # 0x999ee
leaq 0xc28f(%rip), %rdx      # 0x99a2b
leaq 0x198(%rsp), %rdi
callq 0xdc76
leaq 0x6101(%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 0x8d7e2
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8d7f5
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 0xe100
leaq 0xc065(%rip), %rsi      # 0x9988f
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 0x8d8e5
movups (%rcx), %xmm0
leaq 0x10(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x8d8f1
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 0xc156(%rip), %rsi      # 0x999ee
leaq 0xc18c(%rip), %rdx      # 0x99a2b
leaq 0xe0(%rsp), %rdi
callq 0xdc76
leaq 0x5ffe(%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 0x8d910
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8d920
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 0x1151b
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 0xe100
leaq 0xbea7(%rip), %rsi      # 0x997fa
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 0x8d984
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x8d997
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 0x1151b
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8d9e0
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8d9e0
movq %rax, %rbx
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8da06
movq 0x150(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8da06
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x8da25
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8da25
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r12, %rdi
je 0x8da47
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8da47
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x8daa3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8daa3
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8da82
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8da82
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x8dac3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8dac3
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8dae5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8dae5
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r13, %rdi
je 0x8db0b
movq 0x188(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8db0b
movq %rax, %rbx
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8db2d
movq 0x130(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8db2d
movq %rax, %rbx
movq 0x198(%rsp), %rdi
cmpq %r12, %rdi
je 0x8db50
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8db50
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x8dc94
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8dc94
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x8db74
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8db74
movq %rax, %rbx
jmp 0x8dc94
movq %rax, %rbx
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8db9a
movq 0x130(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8db9a
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8dbc2
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8dbc2
jmp 0x8dbec
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x8dc7a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8dc7a
jmp 0x8dc39
jmp 0x8dc77
movq %rax, %rbx
jmp 0x8dc87
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x8dc18
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8dc18
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8dc87
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8dc87
jmp 0x8dc77
jmp 0x8dc77
movq %rax, %rbx
jmp 0x8dc5e
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x8dc5e
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0x48(%rsp), %rdi
callq 0x8f356
jmp 0x8dc87
movq %rax, %rbx
movq %rsp, %rdi
callq 0x40aec
jmp 0x8dc7a
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x8fdca
leaq 0x140(%rsp), %rdi
callq 0x4473c
movq %rbx, %rdi
callq 0xba60