// File: /workspace/github_cpp_makefile_star2_O1/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, 0x118(%rsp)
callq 0xb070
movl $0x0, (%rax)
cmpb $0x0, 0x238(%r12)
je 0x8de7b
movq %rax, %r14
movl $0x0, (%rax)
cmpq %r15, 0x248(%r12)
jbe 0x8df1a
leaq 0x120(%rsp), %r13
movq $0x0, (%r13)
leaq 0x10(,%r15,8), %rsi
leaq 0x28(%r12), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0xb730
movl $0x8, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0xb710
movl $0x0, (%r14)
movq (%r13), %rax
cmpq $-0x1, %rax
je 0x8dd5b
movq 0x248(%r12), %rcx
leaq 0x10(,%rcx,8), %rcx
cmpq %rcx, %rax
jb 0x8dfb9
cmpq 0x258(%r12), %rax
jae 0x8dfb9
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x120(%rsp), %rdx
cmpq $-0x1, %rdx
je 0x8dde7
leaq 0x10(%rsp), %rbx
leaq 0xe0(%rsp), %r12
movq %rsp, %r13
leaq 0x20(%rsp), %rbp
movq %r12, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x86bf8
movq %r13, %rdi
movq %r12, %rsi
callq 0x88538
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0xb1b0
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x8ddd1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0xf0(%rsp), %rdx
movq %rdx, 0x120(%rsp)
cmpq $-0x1, %rdx
jne 0x8dd92
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x8de38
movl $0x0, (%r14)
movq 0x20(%rsp), %rax
cmpb $0x20, -0x1(%rax,%rsi)
jne 0x8e058
decq %rsi
leaq 0x20(%rsp), %rdi
movl $0x1, %edx
callq 0xb110
movq 0x118(%rsp), %rbx
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movl $0x20, %edx
xorl %ecx, %ecx
callq 0x1f2bc
jmp 0x8de4a
xorps %xmm0, %xmm0
movq 0x118(%rsp), %rbx
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8de66
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %rbx, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x8e0f4
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xa1c7(%rip), %rsi      # 0x98062
leaq 0xa1d0(%rip), %rdx      # 0x98072
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x13a4, %esi           # imm = 0x13A4
callq 0xe1a8
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe100
leaq 0x52ec(%rip), %rsi      # 0x931d1
leaq 0xa0(%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 0x8e0fe
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8e10a
callq 0xb6b0
testl %eax, %eax
jne 0x8e0f4
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xa128(%rip), %rsi      # 0x98062
leaq 0xa131(%rip), %rdx      # 0x98072
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x13a5, %esi           # imm = 0x13A5
callq 0xe1a8
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe100
leaq 0x524d(%rip), %rsi      # 0x931d1
leaq 0xa0(%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 0x8e17e
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8e18a
callq 0xb6b0
testl %eax, %eax
jne 0x8e0f4
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xa089(%rip), %rsi      # 0x98062
leaq 0xa092(%rip), %rdx      # 0x98072
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x13ad, %esi           # imm = 0x13AD
callq 0xe1a8
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe100
leaq 0x51ae(%rip), %rsi      # 0x931d1
leaq 0xa0(%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 0x8e1fe
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8e20a
callq 0xb6b0
testl %eax, %eax
jne 0x8e0f4
leaq 0xd0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x9fea(%rip), %rsi      # 0x98062
leaq 0x9ff3(%rip), %rdx      # 0x98072
leaq 0xc0(%rsp), %rdi
callq 0xdc76
leaq 0x40(%rsp), %rdi
movl $0x13bc, %esi           # imm = 0x13BC
callq 0xe1a8
leaq 0x80(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0xe100
leaq 0x5115(%rip), %rsi      # 0x931d1
leaq 0x80(%rsp), %rdi
callq 0xbb10
leaq 0xb0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e27e
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x8e291
movl $0x1, %edi
callq 0xb6d0
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 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb8f9(%rip), %rsi      # 0x99a2c
leaq 0xb922(%rip), %rdx      # 0x99a5c
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x5766(%rip), %rsi      # 0x938b1
leaq 0x60(%rsp), %rdi
callq 0xbb10
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e311
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8e31e
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 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb879(%rip), %rsi      # 0x99a2c
leaq 0xb8a2(%rip), %rdx      # 0x99a5c
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x56e6(%rip), %rsi      # 0x938b1
leaq 0x60(%rsp), %rdi
callq 0xbb10
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e382
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8e38f
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 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb7f9(%rip), %rsi      # 0x99a2c
leaq 0xb822(%rip), %rdx      # 0x99a5c
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x5666(%rip), %rsi      # 0x938b1
leaq 0x60(%rsp), %rdi
callq 0xbb10
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e3f3
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8e400
movq %rdx, 0xa0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb0(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0xa8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb76c(%rip), %rsi      # 0x99a2c
leaq 0xb795(%rip), %rdx      # 0x99a5c
leaq 0x128(%rsp), %rdi
callq 0xdc76
leaq 0x55d6(%rip), %rsi      # 0x938b1
leaq 0x128(%rsp), %rdi
callq 0xbb10
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e464
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8e471
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x8(%rax), %rsi
leaq 0x40(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0xe100
leaq 0xb4ac(%rip), %rsi      # 0x997fa
leaq 0x20(%rsp), %rdi
callq 0xbb10
leaq 0xf0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e4d6
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
jmp 0x8e4e9
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x8(%rax), %rsi
leaq 0x40(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0xe100
leaq 0xb539(%rip), %rsi      # 0x998f8
leaq 0x20(%rsp), %rdi
callq 0xbb10
leaq 0xf0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e50d
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
jmp 0x8e520
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x8(%rax), %rsi
leaq 0x40(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0xe100
leaq 0xb50a(%rip), %rsi      # 0x9993a
leaq 0x20(%rsp), %rdi
callq 0xbb10
leaq 0xf0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e544
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
jmp 0x8e557
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
movq 0x8(%rax), %rsi
leaq 0x60(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rsp, %rdi
leaq 0xa0(%rsp), %rsi
callq 0xe100
leaq 0xb5b9(%rip), %rsi      # 0x99a5d
movq %rsp, %rdi
callq 0xbb10
leaq 0xf0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e57b
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
jmp 0x8e58e
movq %rdx, 0xe0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf0(%rsp)
movq 0x8(%rax), %rdx
leaq 0xe0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rdx, 0xe0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf0(%rsp)
movq 0x8(%rax), %rdx
leaq 0xe0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rdx, 0xe0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf0(%rsp)
movq 0x8(%rax), %rdx
leaq 0xe0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rdx, 0xe0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf0(%rsp)
movq 0x8(%rax), %rdx
leaq 0xe0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rax, %rbp
movq 0xe0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x8e5d7
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e5d7
movq %rax, %rbp
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e641
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e641
jmp 0x8e5fc
jmp 0x8e61e
jmp 0x8e5fc
jmp 0x8e61e
movq %rax, %rbp
movq 0xe0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x8e621
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e621
movq %rax, %rbp
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e661
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e661
movq %rax, %rbp
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x8e67d
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e67d
jmp 0x8e65e
jmp 0x8e65e
movq %rax, %rbp
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x8e6a3
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e6a3
movq %rax, %rbp
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x8e6bf
movq 0x138(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e6bf
jmp 0x8e6a0
jmp 0x8e6a0
movq %rax, %rbp
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x8e6e5
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e6e5
movq %rax, %rbp
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x8e700
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e700
jmp 0x8e6e2
jmp 0x8e6e2
movq %rax, %rbp
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x8e72a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e72a
movq %rax, %rbp
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e750
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e750
jmp 0x8e727
jmp 0x8e727
movq %rax, %rbp
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e774
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e774
movq %rax, %rbp
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e79a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e79a
jmp 0x8e771
jmp 0x8e771
movq %rax, %rbp
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e7b8
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e7b8
movq %rax, %rbp
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x8e7e1
movq 0xd0(%rsp), %rsi
jmp 0x8e816
jmp 0x8e7b5
jmp 0x8e7b5
movq %rax, %rbp
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0x8e7fd
movq 0x90(%rsp), %rsi
jmp 0x8e7f5
jmp 0x8e7de
jmp 0x8e7d5
jmp 0x8e7d5
movq %rax, %rbp
jmp 0x8e7fd
jmp 0x8e7de
jmp 0x8e7de
movq %rax, %rbp
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8e7fd
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %rbp, %rdi
callq 0xba60
movq %rax, %rbp
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x8e7e1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e7e1