// File: /workspace/github_cpp_makefile_star2_O3/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 0x8da4c
cmpq %r15, 0x248(%r12)
jbe 0x8daea
movq %rax, %r14
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), %rdx
cmpq $-0x1, %rdx
je 0x8d9f1
movq 0x248(%r12), %rax
leaq 0x10(,%rax,8), %rax
cmpq %rax, %rdx
jb 0x8db88
cmpq 0x258(%r12), %rdx
jae 0x8db88
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
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 0x867b6
movq %r13, %rdi
movq %r12, %rsi
callq 0x880fc
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0xb1b0
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x8d985
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0xf0(%rsp), %rdx
movq %rdx, 0x120(%rsp)
cmpq $-0x1, %rdx
jne 0x8d946
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x8da07
movl $0x0, (%r14)
movq 0x20(%rsp), %rax
cmpb $0x20, -0x1(%rax,%rsi)
jne 0x8dc26
decq %rsi
leaq 0x20(%rsp), %rdi
movl $0x1, %edx
leaq 0x30(%rsp), %rbx
callq 0xb110
movq 0x118(%rsp), %r14
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
movl $0x20, %edx
xorl %ecx, %ecx
callq 0x1f136
jmp 0x8da20
leaq 0x30(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq $0x0, -0x8(%rbx)
movb $0x0, (%rbx)
jmp 0x8da0c
leaq 0x30(%rsp), %rbx
xorps %xmm0, %xmm0
movq 0x118(%rsp), %r14
movups %xmm0, 0x10(%r14)
movups %xmm0, (%r14)
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x8da37
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %r14, %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 0x8dcc4
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xa5e6(%rip), %rsi      # 0x98052
leaq 0xa5ef(%rip), %rdx      # 0x98062
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x13a4, %esi           # imm = 0x13A4
callq 0xe1b2
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x571b(%rip), %rsi      # 0x931d1
leaq 0xa0(%rsp), %rdi
callq 0xbb10
leaq 0x10(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8dcce
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
jmp 0x8dcda
callq 0xb6b0
testl %eax, %eax
jne 0x8dcc4
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xa548(%rip), %rsi      # 0x98052
leaq 0xa551(%rip), %rdx      # 0x98062
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x13a5, %esi           # imm = 0x13A5
callq 0xe1b2
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x567d(%rip), %rsi      # 0x931d1
leaq 0xa0(%rsp), %rdi
callq 0xbb10
leaq 0x10(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8dd4e
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
jmp 0x8dd5a
callq 0xb6b0
testl %eax, %eax
jne 0x8dcc4
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xa4aa(%rip), %rsi      # 0x98052
leaq 0xa4b3(%rip), %rdx      # 0x98062
leaq 0x80(%rsp), %rdi
callq 0xdc76
leaq 0xc0(%rsp), %rdi
movl $0x13ad, %esi           # imm = 0x13AD
callq 0xe1b2
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0xe10a
leaq 0x55df(%rip), %rsi      # 0x931d1
leaq 0xa0(%rsp), %rdi
callq 0xbb10
leaq 0x10(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8ddce
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
jmp 0x8ddda
callq 0xb6b0
testl %eax, %eax
jne 0x8dcc4
leaq 0xd0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xa40c(%rip), %rsi      # 0x98052
leaq 0xa415(%rip), %rdx      # 0x98062
leaq 0xc0(%rsp), %rdi
callq 0xdc76
leaq 0x40(%rsp), %rdi
movl $0x13bc, %esi           # imm = 0x13BC
callq 0xe1b2
leaq 0x80(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0xe10a
leaq 0x5547(%rip), %rsi      # 0x931d1
leaq 0x80(%rsp), %rdi
callq 0xbb10
leaq 0xb0(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8de4e
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x8de61
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 0xbd19(%rip), %rsi      # 0x99a1c
leaq 0xbd42(%rip), %rdx      # 0x99a4c
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x5b96(%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 0x8dedf
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8deec
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 0xbc99(%rip), %rsi      # 0x99a1c
leaq 0xbcc2(%rip), %rdx      # 0x99a4c
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x5b16(%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 0x8df51
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8df5e
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 0xbc19(%rip), %rsi      # 0x99a1c
leaq 0xbc42(%rip), %rdx      # 0x99a4c
leaq 0x60(%rsp), %rdi
callq 0xdc76
leaq 0x5a96(%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 0x8dfc3
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x8dfd0
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), %r13
movq %r13, -0x10(%r13)
leaq 0xbb8d(%rip), %rsi      # 0x99a1c
leaq 0xbbb6(%rip), %rdx      # 0x99a4c
leaq 0x128(%rsp), %rdi
callq 0xdc76
leaq 0x5a07(%rip), %rsi      # 0x938b1
leaq 0x128(%rsp), %rdi
callq 0xbb10
leaq 0x70(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e035
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x8e042
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 0xe10a
leaq 0xb8ce(%rip), %rsi      # 0x997ea
leaq 0x20(%rsp), %rdi
callq 0xbb10
leaq 0xf0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e0af
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x8e0c2
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 0xe10a
leaq 0xb95a(%rip), %rsi      # 0x998e8
leaq 0x20(%rsp), %rdi
callq 0xbb10
leaq 0xf0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e0e6
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x8e0f9
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 0xe10a
leaq 0xb92a(%rip), %rsi      # 0x9992a
leaq 0x20(%rsp), %rdi
callq 0xbb10
leaq 0xf0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e11d
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x8e130
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 0xe10a
leaq 0xb9d8(%rip), %rsi      # 0x99a4d
movq %rsp, %rdi
callq 0xbb10
leaq 0xf0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8e154
movups (%rcx), %xmm0
leaq 0xf0(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x8e167
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 0x1155a
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 0x1155a
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 0x1155a
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 0x1155a
movq %rax, %r15
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x8e1b8
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e1b8
movq %rax, %r15
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x8e1d7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e1d7
jmp 0x8e1f4
jmp 0x8e216
movq %rax, %r15
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8e23b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e23b
jmp 0x8e1f4
jmp 0x8e216
movq %rax, %r15
movq 0xe0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8e219
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e219
movq %rax, %r15
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e25f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e25f
jmp 0x8e25c
movq %rax, %r15
movq 0x128(%rsp), %rdi
cmpq %r13, %rdi
je 0x8e27d
movq 0x138(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e27d
jmp 0x8e25c
movq %rax, %r15
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x8e2a1
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e2a1
jmp 0x8e29e
movq %rax, %r15
movq 0xa0(%rsp), %rdi
cmpq %r12, %rdi
je 0x8e2bf
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e2bf
jmp 0x8e29e
movq %rax, %r15
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x8e2e7
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e2e7
jmp 0x8e2e4
movq %rax, %r15
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e304
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e304
jmp 0x8e2e4
movq %rax, %r15
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x8e326
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e326
jmp 0x8e323
movq %rax, %r15
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e34e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e34e
jmp 0x8e323
movq %rax, %r15
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e36d
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e36d
jmp 0x8e36a
movq %rax, %r15
movq 0xc0(%rsp), %rdi
cmpq %r14, %rdi
je 0x8e3c0
movq 0xd0(%rsp), %rsi
jmp 0x8e3f5
jmp 0x8e36a
movq %rax, %r15
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e399
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e399
jmp 0x8e396
jmp 0x8e3bd
jmp 0x8e396
movq %rax, %r15
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0x8e3dc
movq 0x90(%rsp), %rsi
jmp 0x8e3d4
jmp 0x8e3b4
jmp 0x8e3b4
movq %rax, %r15
jmp 0x8e3dc
jmp 0x8e3bd
jmp 0x8e3bd
movq %rax, %r15
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8e3dc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %r15, %rdi
callq 0xba60
movq %rax, %r15
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x8e3c0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x8e3c0