// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: ssptaboutinfo_new
static Gtssptaboutinfo *ssptaboutinfo_new(GtUword totallength,
                                          GtUword numofsequences,
                                          GtSWtable *ssptab)
{
  Gtssptaboutinfo *ssptaboutinfo;

  ssptaboutinfo = gt_malloc(sizeof (*ssptaboutinfo));
  ssptaboutinfo->satsep = determineoptimalsssptablerep(totallength,
                                                       numofsequences-1);
  ssptaboutinfo->ssptabptr = ssptab;
  switch (ssptaboutinfo->satsep) {
    case GT_ACCESS_TYPE_UCHARTABLES:
      ssptaboutinfo->nextcheckincrement
        = ssptaboutinfo->ssptabptr->st_uchar.maxrangevalue+1;
      ssptaboutinfo->numofpages = ssptaboutinfo->ssptabptr->st_uchar.numofpages;
      ssptaboutinfo->ssptabptr->st_uchar.positions
        = gt_malloc(sizeof (*ssptaboutinfo->ssptabptr->st_uchar.positions)
                    * ssptaboutinfo->ssptabptr->st_uchar.numofpositionstostore);
      ssptaboutinfo->ssptabptr->st_uchar.endidxinpage
        = gt_malloc(sizeof (*ssptaboutinfo->ssptabptr->st_uchar.endidxinpage)
                    * ssptaboutinfo->ssptabptr->st_uchar.numofpages);
      break;
    case GT_ACCESS_TYPE_USHORTTABLES:
      ssptaboutinfo->nextcheckincrement
        = ssptaboutinfo->ssptabptr->st_uint16.maxrangevalue+1;
      ssptaboutinfo->numofpages
        = ssptaboutinfo->ssptabptr->st_uint16.numofpages;
      ssptaboutinfo->ssptabptr->st_uint16.positions
        = gt_malloc(sizeof (*ssptaboutinfo->ssptabptr->st_uint16.positions)
                    * ssptaboutinfo->ssptabptr->st_uint16.numofpositionstostore
                   );
      ssptaboutinfo->ssptabptr->st_uint16.endidxinpage
        = gt_malloc(sizeof (*ssptaboutinfo->ssptabptr->st_uint16.endidxinpage)
                    * ssptaboutinfo->ssptabptr->st_uint16.numofpages);
      break;
    case GT_ACCESS_TYPE_UINT32TABLES:
      ssptaboutinfo->nextcheckincrement
        = ssptaboutinfo->ssptabptr->st_uint32.maxrangevalue+1;
      ssptaboutinfo->numofpages
        = ssptaboutinfo->ssptabptr->st_uint32.numofpages;
      ssptaboutinfo->ssptabptr->st_uint32.positions
        = gt_malloc(sizeof (*ssptaboutinfo->ssptabptr->st_uint32.positions)
                    * ssptaboutinfo->ssptabptr->st_uint32.numofpositionstostore
                   );
      ssptaboutinfo->ssptabptr->st_uint32.endidxinpage
        = gt_malloc(sizeof (*ssptaboutinfo->ssptabptr->st_uint32.endidxinpage)
                    * ssptaboutinfo->ssptabptr->st_uint32.numofpages);
      break;
    default:
      fprintf(stderr, "%s(satsep = %d is undefined)\n", __func__,
                     (int) ssptaboutinfo->satsep);
      exit(GT_EXIT_PROGRAMMING_ERROR);
  }
  ssptaboutinfo->nextcheckpos = ssptaboutinfo->nextcheckincrement - 1;
  ssptaboutinfo->pagenumber = ssptaboutinfo->fillpos = 0;
  return ssptaboutinfo;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x3f71f(%rip), %rsi     # 0x102a2a
movl $0x38, %edi
movl $0x6f7, %edx            # imm = 0x6F7
callq 0x35ee2
movq %rax, %rbx
decq %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0xc323c
movl %eax, 0x8(%rbx)
movq %r14, (%rbx)
movq 0x30(%r14), %rcx
incq %rcx
movq %rcx, 0x18(%rbx)
movq 0x20(%r14), %rcx
movq %rcx, 0x30(%rbx)
movq 0x28(%r14), %rdi
cmpl $0x6, %eax
je 0xc336d
cmpl $0x5, %eax
jne 0xc3389
addq %rdi, %rdi
leaq 0x3f6ce(%rip), %rsi     # 0x102a2a
movl $0x70f, %edx            # imm = 0x70F
callq 0x35ee2
movl $0x712, %edx            # imm = 0x712
jmp 0xc339f
shlq $0x2, %rdi
leaq 0x3f6b2(%rip), %rsi     # 0x102a2a
movl $0x71c, %edx            # imm = 0x71C
callq 0x35ee2
movl $0x71f, %edx            # imm = 0x71F
jmp 0xc339f
leaq 0x3f69a(%rip), %rsi     # 0x102a2a
movl $0x702, %edx            # imm = 0x702
callq 0x35ee2
movl $0x705, %edx            # imm = 0x705
movq (%rbx), %rcx
movq %rax, (%rcx)
movq (%rbx), %rax
movq 0x20(%rax), %rdi
shlq $0x3, %rdi
leaq 0x3f673(%rip), %rsi     # 0x102a2a
callq 0x35ee2
movq (%rbx), %rcx
movq %rax, 0x10(%rcx)
movq 0x18(%rbx), %rax
decq %rax
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq