// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/encseq.c
// Function: fillssptabmapspecstartptr
static int fillssptabmapspecstartptr(GtEncseq *encseq,
                                     const char *indexname,
                                     GtError *err)
{
  bool haserr = false;
  GtStr *tmpfilename;
  GtUword sizessptab;
  Gtssptransferinfo ssptransferinfo;

  gt_error_check(err);
  tmpfilename = gt_str_new_cstr(indexname);
  gt_str_append_cstr(tmpfilename, GT_SSPTABFILESUFFIX);

  sizessptab
    = CALLCASTFUNC(uint64_t, unsigned_long,
                   gt_encseq_sizeofSWtable(encseq->satsep,
                                           false,
                                           false,
                                           encseq->totallength,
                                           encseq->numofdbsequences-1));
  ssptransferinfo.totallength = encseq->totallength;
  ssptransferinfo.numofdbsequences = encseq->numofdbsequences;
  ssptransferinfo.satsep = encseq->satsep;
  ssptransferinfo.ssptabptr = &encseq->ssptab;
  if (gt_mapspec_read(assignssptabmapspecification, &ssptransferinfo,
                      gt_str_get(tmpfilename),
                      sizessptab, &encseq->ssptabmappedptr, err) != 0) {
    haserr = true;
  }
  if (!haserr)
    encseq->has_ssptab = true;
  gt_str_delete(tmpfilename);
  return haserr ? -1 : 0;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movb $0x0, 0x3f(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x137b38
movq 0x40(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x137b00
jmp 0x137b38
movq 0x7c4d1(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x26555(%rip), %rsi     # 0x15e066
leaq 0x26b30(%rip), %rdx     # 0x15e648
leaq 0x527ad(%rip), %rcx     # 0x18a2cc
leaq 0x4db38(%rip), %r8      # 0x18565e
movl $0x3e1, %r9d            # imm = 0x3E1
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x137b3a
movq 0x48(%rsp), %rdi
callq 0x18f70
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
leaq 0x4cb84(%rip), %rsi     # 0x1846d9
callq 0x18fb0
movq 0x50(%rsp), %rax
movl 0x4(%rax), %edi
movq 0x50(%rsp), %rax
movq 0x30(%rax), %rcx
movq 0x50(%rsp), %rax
movq 0x40(%rax), %r8
subq $0x1, %r8
xorl %edx, %edx
movl %edx, %esi
callq 0x11ce80
movq %rax, %rdx
leaq 0x4dad3(%rip), %rdi     # 0x18565e
movl $0x3eb, %esi            # imm = 0x3EB
callq 0x12d160
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0x18(%rsp)
movq 0x50(%rsp), %rax
addq $0x240, %rax            # imm = 0x240
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rdi
callq 0x19940
movq %rax, %rdx
movq 0x28(%rsp), %rcx
movq 0x50(%rsp), %r8
addq $0x18, %r8
movq 0x40(%rsp), %r9
leaq -0x61a9(%rip), %rdi     # 0x131a50
leaq 0x8(%rsp), %rsi
callq 0x145950
cmpl $0x0, %eax
je 0x137c0d
movb $0x1, 0x3f(%rsp)
testb $0x1, 0x3f(%rsp)
jne 0x137c1d
movq 0x50(%rsp), %rax
movb $0x1, 0x2a(%rax)
movq 0x30(%rsp), %rdi
callq 0x1afc0
movb 0x3f(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x58, %rsp
retq
nopl (%rax)