// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/seq.cpp
// Function: Seq_sp::KmerIndex::add(Seq_sp::Dna const&, unsigned long&, unsigned long&)
void KmerIndex::add (const Dna &dna,
                     size_t &kmers,
                     size_t &kmersRejected)
{
  ASSERT (canRead);
  
  const size_t seqSize = dna. seq. size ();
  const string id (dna. getId ());
  kmers = 0;
  size_t kmersUsed = 0;
  FOR (size_t, i, seqSize)
    if (i + kmer_size <= seqSize)
    {
      kmers++;
      const Dna kmer ("x", dna. seq. substr (i, kmer_size), false);
      kmer. qc ();
      ASSERT (kmer. seq. size () == kmer_size);
      if (kmer. getXs ())
        continue;
      kmersUsed++;
      addId (dna2code (kmer), id);
    }
  ASSERT (kmers >= kmersUsed);
  kmersRejected = kmers - kmersUsed;
  
  items++;
  f. seekp (sizeof (kmer_size));
  writeBin (f, items);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rcx, %rbx
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %r15
callq 0xb070
movq %rax, 0x118(%rsp)
movl $0x0, (%rax)
cmpb $0x0, 0x238(%r15)
je 0x8ab63
movq %rbx, 0x168(%rsp)
movq 0x30(%r12), %rax
movq %rax, 0x120(%rsp)
leaq 0x8(%r12), %r14
movq $0x0, 0x40(%rsp)
movq %r14, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0xb760
cmpq $-0x1, %rax
jne 0x8a7e7
movq 0x10(%r12), %rax
leaq 0x148(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0xb5d0
movq $0x0, (%r13)
movq 0x120(%rsp), %rcx
testq %rcx, %rcx
je 0x8aa3e
addq $0x28, %r12
leaq 0x10(%rsp), %rbx
xorl %ebp, %ebp
leaq 0x2d141(%rip), %rax     # 0xb7968
addq $0x10, %rax
movq %rax, 0x180(%rsp)
movq $0x0, 0x40(%rsp)
movq %r15, 0x178(%rsp)
movq %r13, 0x170(%rsp)
movq 0x240(%r15), %rax
addq %rbp, %rax
cmpq %rcx, %rax
ja 0x8aa32
incq (%r13)
movq %rbx, (%rsp)
movq %rsp, %rdi
leaq 0x9fe1(%rip), %rsi      # 0x94852
leaq 0x9fdb(%rip), %rdx      # 0x94853
callq 0xdc76
movq 0x240(%r15), %rcx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0xb5d0
leaq 0xc8(%rsp), %rdi
movq %rsp, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x901aa
leaq 0x2e035(%rip), %rax     # 0xb88e8
movq %rax, 0xc8(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8a8d7
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x8a8ed
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
leaq 0x2f1a4(%rip), %rax     # 0xb9a98
cmpb $0x1, (%rax)
jne 0x8a913
leaq 0xc8(%rsp), %rdi
callq 0x6b9ea
leaq 0xc8(%rsp), %rdi
callq 0x6bfa8
movq 0x118(%rsp), %rax
movl $0x0, (%rax)
movq 0xf8(%rsp), %rax
cmpq 0x240(%r15), %rax
jne 0x8aaca
movq %r12, %r14
movq 0xf8(%rsp), %r12
testq %r12, %r12
je 0x8a999
movq 0xf0(%rsp), %r13
xorl %ebx, %ebx
xorl %r15d, %r15d
movsbl (%r13,%rbx), %esi
movq 0xc8(%rsp), %rax
leaq 0xc8(%rsp), %rdi
callq *0x68(%rax)
movzbl %al, %eax
addq %rax, %r15
incq %rbx
cmpq %rbx, %r12
jne 0x8a953
testq %r15, %r15
leaq 0x10(%rsp), %rbx
movq 0x178(%rsp), %r15
movq 0x170(%rsp), %r13
je 0x8a999
movq %r14, %r12
jmp 0x8a9c1
leaq 0xc8(%rsp), %rdi
callq 0x8a58a
movq %r14, %r12
movq %r15, %rdi
movq %rax, %rsi
leaq 0x148(%rsp), %rdx
callq 0x8b3c0
incq 0x40(%rsp)
leaq 0x2de98(%rip), %rax     # 0xb8860
movq %rax, 0xc8(%rsp)
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x8a9f5
movq 0x100(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0x180(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x8aa2a
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0x120(%rsp), %rcx
incq %rbp
cmpq %rcx, %rbp
jne 0x8a84c
movq 0x118(%rsp), %rax
movl $0x0, (%rax)
movq (%r13), %rax
subq 0x40(%rsp), %rax
jb 0x8abf3
movq 0x168(%rsp), %rcx
movq %rax, (%rcx)
incq 0x250(%r15)
leaq 0x38(%r15), %r14
movl $0x8, %esi
movq %r14, %rdi
xorl %edx, %edx
callq 0xb6c0
addq $0x250, %r15            # imm = 0x250
movl $0x8, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0xb770
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8aab8
movq 0x158(%rsp), %rsi
incq %rsi
callq 0xb5a0
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x8ac8c
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xd578(%rip), %rsi      # 0x98062
leaq 0xd581(%rip), %rdx      # 0x98072
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0x68(%rsp), %rdi
movl $0x132c, %esi           # imm = 0x132C
callq 0xe1a8
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0xe100
leaq 0x86a3(%rip), %rsi      # 0x931d1
leaq 0xa8(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8ac96
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8aca3
callq 0xb6b0
testl %eax, %eax
jne 0x8ac8c
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xd4e2(%rip), %rsi      # 0x98062
leaq 0xd4eb(%rip), %rdx      # 0x98072
leaq 0x48(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x1320, %esi           # imm = 0x1320
callq 0xe1a8
leaq 0x20(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x8610(%rip), %rsi      # 0x931d1
leaq 0x20(%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 0x8ad9a
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8ada6
callq 0xb6b0
testl %eax, %eax
jne 0x8ac8c
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xd44f(%rip), %rsi      # 0x98062
leaq 0xd458(%rip), %rdx      # 0x98072
leaq 0xa8(%rsp), %rdi
callq 0xdc76
leaq 0x88(%rsp), %rdi
movl $0x1332, %esi           # imm = 0x1332
callq 0xe1a8
leaq 0x48(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0xe100
leaq 0x8577(%rip), %rsi      # 0x931d1
leaq 0x48(%rsp), %rdi
callq 0xbb10
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8ae1d
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8ae2a
movl $0x1, %edi
callq 0xb6d0
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x198(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xeb83(%rip), %rsi      # 0x99852
leaq 0xebb8(%rip), %rdx      # 0x9988e
leaq 0x188(%rsp), %rdi
callq 0xdc76
leaq 0x8bc7(%rip), %rsi      # 0x938b1
leaq 0x188(%rsp), %rdi
callq 0xbb10
leaq 0x138(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8ad1c
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8ad2f
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
movq 0x8(%rax), %rsi
leaq 0x128(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x20(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0xe100
leaq 0xeb2b(%rip), %rsi      # 0x9988f
leaq 0x20(%rsp), %rdi
callq 0xbb10
leaq 0x10(%rsp), %rcx
movq %rcx, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8aea7
movups (%rcx), %xmm0
leaq 0x10(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x8aeb3
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 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xea83(%rip), %rsi      # 0x99852
leaq 0xeab8(%rip), %rdx      # 0x9988e
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x8aca(%rip), %rsi      # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8aed2
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8aee5
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xe9fc(%rip), %rsi      # 0x99852
leaq 0xea31(%rip), %rdx      # 0x9988e
leaq 0x128(%rsp), %rdi
callq 0xdc76
leaq 0x8a40(%rip), %rsi      # 0x938b1
leaq 0x128(%rsp), %rdi
callq 0xbb10
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8af4c
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8af59
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, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
movq 0x8(%rax), %rsi
leaq 0x88(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x148(%rsp), %rdi
movq %rsp, %rsi
callq 0xe100
leaq 0xe8df(%rip), %rsi      # 0x997fa
leaq 0x148(%rsp), %rdi
callq 0xbb10
leaq 0xd8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8afb5
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x8afc8
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
movq 0x8(%rax), %rsi
leaq 0x68(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
callq 0xe100
leaq 0xe926(%rip), %rsi      # 0x998af
movq %rsp, %rdi
callq 0xbb10
leaq 0xd8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8afec
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x8afff
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
movq 0x8(%rax), %rdx
leaq 0xc8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
movq 0x8(%rax), %rdx
leaq 0xc8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8b048
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b048
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8b0b0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b0b0
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8b08a
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b08a
movq %rax, %rbx
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8b0cc
movq 0x158(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b0cc
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x8b0ee
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b0ee
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x8b110
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b110
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x8b12c
movq 0x138(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b12c
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x8b148
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b148
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x8b1a4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b1a4
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x8b1c4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b1c4
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8b183
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b183
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8b1e4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b1e4
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8b206
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b206
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8b22c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b22c
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r13, %rdi
je 0x8b252
movq 0x138(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b252
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8b274
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b274
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8b295
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b295
movq %rax, %rbx
movq 0x188(%rsp), %rdi
cmpq %r12, %rdi
je 0x8b2b0
movq 0x198(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b2b0
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x8b397
movq 0xb8(%rsp), %rsi
jmp 0x8b37b
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x8b3b8
movq 0x58(%rsp), %rsi
jmp 0x8b3b0
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x8b2d6
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b2d6
jmp 0x8b33f
movq %rax, %rbx
jmp 0x8b3b8
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8b2fc
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b2fc
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8b31c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b31c
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x8b38a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b38a
jmp 0x8b33f
jmp 0x8b387
movq %rax, %rbx
jmp 0x8b397
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8b368
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b368
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x8b397
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8b397
jmp 0x8b387
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x8fdca
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8b3b8
movq 0x158(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %rbx, %rdi
callq 0xba60