// File: /workspace/github_cpp_makefile_star2_O2/ncbi[P]amr/seq.cpp
// Function: Seq_sp::KmerIndex::code2ids(unsigned long)
StringVector KmerIndex::code2ids (size_t code)
{
  ASSERT (canRead);
  ASSERT (code < code_max);
  
  Addr addr = 0;
  {
    const streamoff pos = (streamoff) code2addr (code);  
    f. seekg (pos);
    readBin (f, addr);
  }
  QC_ASSERT (addr == nil || (addr >= code2addr (code_max) && addr < addr_new));
  
  string s;
  size_t n = 0;
  while (addr != nil)
  {
    const IdRecord rec (f, addr, false);
    s += rec. get ();
    addr = rec. prev;
    n++;
  }
  
  if (s. empty ())
    return StringVector ();
    
  ASSERT (s. back () == gap);
  s. erase (s. size () - 1, 1);

  return StringVector (s, gap, false);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0xc070
andl $0x0, (%rax)
cmpb $0x0, 0x238(%r12)
je 0x5aaa3
cmpq %r15, 0x248(%r12)
jbe 0x5ab7a
movq %rax, %r14
leaq 0x28(%rsp), %r13
andq $0x0, (%r13)
leaq 0x10(,%r15,8), %rsi
leaq 0x28(%r12), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0xc750
movq %r15, %rdi
movq %r13, %rsi
callq 0x5b58a
andl $0x0, (%r14)
movq (%r13), %rdx
cmpq $-0x1, %rdx
je 0x5a9d5
movq 0x248(%r12), %rax
leaq 0x10(,%rax,8), %rax
cmpq %rax, %rdx
jb 0x5ac51
cmpq 0x258(%r12), %rdx
jae 0x5ac51
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xf0(%rsp), %r12
leaq 0x30(%rsp), %r13
leaq 0x8(%rsp), %rbp
cmpq $-0x1, %rdx
je 0x5aa38
movq %r12, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x56c9a
movq %r13, %rdi
movq %r12, %rsi
callq 0x57a30
movq %rbp, %rdi
movq %r13, %rsi
callq 0xcb70
movq %r13, %rdi
callq 0xcbe8
movq 0x100(%rsp), %rdx
movq %rdx, 0x28(%rsp)
jmp 0x5a9f8
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x5aa7a
andl $0x0, (%r14)
movq 0x8(%rsp), %rax
cmpb $0x20, -0x1(%rax,%rsi)
jne 0x5ad28
decq %rsi
leaq 0x8(%rsp), %rdi
pushq $0x1
popq %rdx
callq 0xc120
leaq 0x8(%rsp), %rsi
pushq $0x20
popq %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x1798e
jmp 0x5aa84
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
leaq 0x8(%rsp), %rdi
callq 0xcbe8
movq %rbx, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xc6d0
testl %eax, %eax
jne 0x5ae02
leaq 0x855b(%rip), %rsi      # 0x63012
leaq 0xb0(%rsp), %rdi
leaq 0x128(%rsp), %rdx
callq 0xdbbe
leaq 0x90(%rsp), %rdi
movl $0x13a4, %esi           # imm = 0x13A4
callq 0xe2d5
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0xe26e
leaq 0x36cf(%rip), %rdx      # 0x5e1d1
leaq 0x30(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xe24f
leaq 0x9ed2(%rip), %rsi      # 0x649ed
leaq 0x50(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0xdbbe
leaq 0x3d9b(%rip), %rdx      # 0x5e8cc
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe24f
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0xe26e
leaq 0x9c60(%rip), %rdx      # 0x647bb
leaq 0xf0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe24f
leaq 0xf0(%rsp), %rdi
callq 0x101d0
callq 0xc6d0
testl %eax, %eax
jne 0x5ae02
leaq 0x8484(%rip), %rsi      # 0x63012
leaq 0xb0(%rsp), %rdi
leaq 0x128(%rsp), %rdx
callq 0xdbbe
leaq 0x90(%rsp), %rdi
movl $0x13a5, %esi           # imm = 0x13A5
callq 0xe2d5
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0xe26e
leaq 0x35f8(%rip), %rdx      # 0x5e1d1
leaq 0x30(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xe24f
leaq 0x9dfb(%rip), %rsi      # 0x649ed
leaq 0x50(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0xdbbe
leaq 0x3cc4(%rip), %rdx      # 0x5e8cc
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe24f
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0xe26e
leaq 0x9c87(%rip), %rdx      # 0x648b9
leaq 0xf0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe24f
leaq 0xf0(%rsp), %rdi
callq 0x101d0
callq 0xc6d0
testl %eax, %eax
jne 0x5ae02
leaq 0x83ad(%rip), %rsi      # 0x63012
leaq 0xb0(%rsp), %rdi
leaq 0x128(%rsp), %rdx
callq 0xdbbe
leaq 0x90(%rsp), %rdi
movl $0x13ad, %esi           # imm = 0x13AD
callq 0xe2d5
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0xe26e
leaq 0x3521(%rip), %rdx      # 0x5e1d1
leaq 0x30(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0xe24f
leaq 0x9d24(%rip), %rsi      # 0x649ed
leaq 0x50(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0xdbbe
leaq 0x3bed(%rip), %rdx      # 0x5e8cc
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe24f
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0xe26e
leaq 0x9bf2(%rip), %rdx      # 0x648fb
leaq 0xf0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe24f
leaq 0xf0(%rsp), %rdi
callq 0x101d0
callq 0xc6d0
testl %eax, %eax
jne 0x5ae02
leaq 0x82d6(%rip), %rsi      # 0x63012
leaq 0x90(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0xdbbe
leaq 0x70(%rsp), %rdi
movl $0x13bc, %esi           # imm = 0x13BC
callq 0xe2d5
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0xe26e
leaq 0x3453(%rip), %rdx      # 0x5e1d1
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0xe24f
leaq 0x9c53(%rip), %rsi      # 0x649ed
leaq 0x128(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xdbbe
leaq 0x3b19(%rip), %rdx      # 0x5e8cc
leaq 0x50(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0xe24f
leaq 0x30(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0xe26e
leaq 0x9c3b(%rip), %rdx      # 0x64a1e
leaq 0xf0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xe24f
leaq 0xf0(%rsp), %rdi
callq 0x101d0
pushq $0x1
popq %rdi
callq 0xc6f0
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0xcbe8
jmp 0x5ae1f
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xcbe8
jmp 0x5ae57
jmp 0x5ae33
jmp 0x5ae45
jmp 0x5ae33
jmp 0x5ae45
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0xcbe8
jmp 0x5ae48
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xcbe8
jmp 0x5ae6a
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xcbe8
jmp 0x5ae79
jmp 0x5ae67
jmp 0x5ae67
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xcbe8
jmp 0x5ae8f
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
callq 0xcbe8
jmp 0x5ae9e
jmp 0x5ae8c
jmp 0x5ae8c
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xcbe8
jmp 0x5aeb4
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xcbe8
jmp 0x5aec3
jmp 0x5aeb1
jmp 0x5aeb1
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xcbe8
jmp 0x5aed9
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xcbe8
jmp 0x5aeeb
jmp 0x5aed6
jmp 0x5aed6
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xcbe8
jmp 0x5aefe
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xcbe8
jmp 0x5af10
jmp 0x5aefb
jmp 0x5aefb
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xcbe8
jmp 0x5af21
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
jmp 0x5af47
jmp 0x5af1e
jmp 0x5af1e
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
jmp 0x5af51
jmp 0x5af3a
jmp 0x5af31
jmp 0x5af31
movq %rax, %rbx
jmp 0x5af56
jmp 0x5af3a
jmp 0x5af3a
movq %rax, %rbx
jmp 0x5af4c
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xcbe8
leaq 0x8(%rsp), %rdi
callq 0xcbe8
movq %rbx, %rdi
callq 0xcaa0