LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-lcpvalues.c
// Function: gt_Outlcpinfo_prebucket
void gt_Outlcpinfo_prebucket(GtOutlcpinfo *outlcpinfo,
                             GtCodetype code,
                             GtUword lcptaboffset)
{
  if (outlcpinfo != NULL)
  {
    if (outlcpinfo->lcpsubtab.lcp2file != NULL ||
        outlcpinfo->lcpsubtab.lcpprocess != NULL)
    {
      outlcpinfo->lcpsubtab.tableoflcpvalues.numoflargelcpvalues = 0;
    } else
    {
      outlcpinfo->lcpsubtab.tableoflcpvalues.lcptaboffset = lcptaboffset;
    }
    if (code > 0)
    {
      (void) gt_turningwheel_next(outlcpinfo->turnwheel);
      if (outlcpinfo->previousbucketwasempty)
      {
        outlcpinfo->minchanged
          = GT_MIN(outlcpinfo->minchanged,
                gt_turningwheel_minchanged(outlcpinfo->turnwheel));
      } else
      {
        outlcpinfo->minchanged
          = gt_turningwheel_minchanged(outlcpinfo->turnwheel);
      }
    }
  }
}

// Assembly:
testq %rdi, %rdi
je 0x19d07c
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x68(%rdi)
je 0x19d028
pushq $0x58
popq %rcx
xorl %eax, %eax
jmp 0x19d040
xorl %eax, %eax
xorl %ecx, %ecx
cmpq $0x0, 0x70(%rbx)
sete %cl
leaq 0x58(,%rcx,8), %rcx
cmoveq %rdx, %rax
movq %rax, (%rbx,%rcx)
testq %rsi, %rsi
je 0x19d076
movq (%rbx), %rdi
callq 0x1b4dd0
cmpb $0x1, 0x38(%rbx)
jne 0x19d06b
movl 0x10(%rbx), %ebp
movq (%rbx), %rdi
callq 0x1b4e08
cmpl %eax, %ebp
jae 0x19d06b
movl 0x10(%rbx), %eax
jmp 0x19d073
movq (%rbx), %rdi
callq 0x1b4e08
movl %eax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-lcpvalues.c
// Function: computelocallcpvalue
static GtUword computelocallcpvalue(const Suffixwithcode *previoussuffix,
                                          const Suffixwithcode *currentsuffix,
                                          unsigned int minchanged)
{
  unsigned int lcpvalue;

  if (previoussuffix->code == currentsuffix->code)
  {
    lcpvalue = GT_MIN(previoussuffix->prefixindex,
                   currentsuffix->prefixindex);
  } else
  {
    gt_assert(previoussuffix->code < currentsuffix->code);
    lcpvalue = GT_MIN(previoussuffix->prefixindex,currentsuffix->prefixindex);
    if (minchanged < lcpvalue)
    {
      lcpvalue = minchanged;
    }
  }
  return (GtUword) lcpvalue;
}

// Assembly:
movq 0x8(%rsi), %rax
cmpq %rax, 0x8(%rdi)
jne 0x19d3af
movl 0x10(%rdi), %ecx
movl 0x10(%rsi), %eax
cmpl %eax, %ecx
cmovbl %ecx, %eax
jmp 0x19d3c1
jae 0x19d3c4
movl 0x10(%rdi), %ecx
movl 0x10(%rsi), %eax
cmpl %eax, %ecx
cmovbl %ecx, %eax
cmpl %edx, %eax
cmovael %edx, %eax
movl %eax, %eax
retq
pushq %rax
movq 0x29ab9c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x147c3d(%rip), %rsi    # 0x2e5013
leaq 0x1bab65(%rip), %rdx    # 0x357f42
leaq 0x1bab89(%rip), %rcx    # 0x357f6d
leaq 0x1ba957(%rip), %r8     # 0x357d42
pushq $0x67
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-lcpvalues.c
// Function: outsmalllcpvalues
static void outsmalllcpvalues(Lcpoutput2file *lcp2file,
                              GtUword numoflcps)
{
  gt_assert (lcp2file != NULL);
  lcp2file->countoutputlcpvalues += numoflcps;
  gt_assert(lcp2file->outfplcptab != NULL);
  gt_xfwrite(lcp2file->smalllcpvalues,
             sizeof (*lcp2file->smalllcpvalues),
             (size_t) numoflcps,
             lcp2file->outfplcptab);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x19d681
movq %rsi, %rdx
addq %rsi, 0x38(%rdi)
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x19d6ab
movq 0x50(%rdi), %rdi
pushq $0x1
popq %rsi
popq %rax
jmp 0xb302c
movq 0x29a8e0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x147981(%rip), %rsi    # 0x2e5013
leaq 0x1ba997(%rip), %rdx    # 0x358030
leaq 0x1ba9a1(%rip), %rcx    # 0x358041
leaq 0x1ba69b(%rip), %r8     # 0x357d42
pushq $0x74
jmp 0x19d6d3
movq 0x29a8b6(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x147957(%rip), %rsi    # 0x2e5013
leaq 0x1ba990(%rip), %rdx    # 0x358053
leaq 0x1ba977(%rip), %rcx    # 0x358041
leaq 0x1ba671(%rip), %r8     # 0x357d42
pushq $0x76
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-lcpvalues.c
// Function: gt_Outlcpinfo_resizereservoir
GtLcpvalues *gt_Outlcpinfo_resizereservoir(GtOutlcpinfo *outlcpinfo,
                                           const GtBcktab *bcktab)
{
  Lcpsubtab *lcpsubtab;

  gt_assert(outlcpinfo != NULL);
  lcpsubtab = &outlcpinfo->lcpsubtab;
  if (lcpsubtab->lcp2file != NULL)
  {
    size_t sizeforlcpvalues; /* in bytes */

    gt_assert(bcktab != NULL);
    sizeforlcpvalues = gt_bcktab_sizeforlcpvalues(bcktab);
    if (lcpsubtab->lcp2file->sizereservoir < sizeforlcpvalues)
    {
      lcpsubtab->lcp2file->sizereservoir = sizeforlcpvalues;
      lcpsubtab->lcp2file->reservoir
        = gt_realloc(lcpsubtab->lcp2file->reservoir,
                     lcpsubtab->lcp2file->sizereservoir);
          /* point to the same area, since this is not used simultaneously */
          /* be careful for the parallel version */
      lcpsubtab->lcp2file->smalllcpvalues
        = (uint8_t *) lcpsubtab->lcp2file->reservoir;
#ifndef NDEBUG
      lcpsubtab->tableoflcpvalues.isset = NULL;
#endif
      lcpsubtab->tableoflcpvalues.bucketoflcpvalues
        = (GtLcpvaluetype *) lcpsubtab->lcp2file->reservoir;
      lcpsubtab->tableoflcpvalues.lcptaboffset = 0;
      lcpsubtab->tableoflcpvalues.numofentries
        = (GtUword) lcpsubtab->lcp2file->sizereservoir/
          sizeof (*lcpsubtab->tableoflcpvalues.bucketoflcpvalues);
    }
  } else
  {
    if (lcpsubtab->lcpprocess != NULL)
    {
      outlcpinfo->sizeofinfo
        += gt_tableoflcpvalues_realloc(&lcpsubtab->tableoflcpvalues,
                                       gt_bcktab_maxbucketsize(bcktab));
    }
  }
  return &lcpsubtab->tableoflcpvalues;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x19d784
movq %rdi, %rbx
leaq 0x40(%rdi), %r14
cmpq $0x0, 0x68(%rdi)
je 0x19d75b
testq %rsi, %rsi
je 0x19d7b2
movq %rsi, %rdi
callq 0x135ab3
movq 0x68(%rbx), %rcx
cmpq %rax, 0x48(%rcx)
jae 0x19d779
movq %rax, 0x48(%rcx)
movq 0x40(%rcx), %rdi
leaq 0x1ba61c(%rip), %rdx    # 0x357d42
movq %rax, %rsi
movl $0x32f, %ecx            # imm = 0x32F
callq 0x93472
movq 0x68(%rbx), %rcx
movq %rax, 0x40(%rcx)
movq %rax, 0x50(%rcx)
andq $0x0, 0x40(%rbx)
movq %rax, 0x48(%rbx)
andq $0x0, 0x60(%rbx)
movq 0x48(%rcx), %rax
shrq $0x2, %rax
movq %rax, 0x50(%rbx)
jmp 0x19d779
cmpq $0x0, 0x70(%rbx)
je 0x19d779
movq %rsi, %rdi
callq 0x135acd
movq %r14, %rdi
movq %rax, %rsi
callq 0x19cb03
addq %rax, 0x18(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x29a7dd(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14787e(%rip), %rsi    # 0x2e5013
leaq 0x1ba5c0(%rip), %rdx    # 0x357d5c
leaq 0x1ba781(%rip), %rcx    # 0x357f24
leaq 0x1ba598(%rip), %r8     # 0x357d42
movl $0x322, %r9d            # imm = 0x322
jmp 0x19d7de
movq 0x29a7af(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x147850(%rip), %rsi    # 0x2e5013
leaq 0x1bd3a6(%rip), %rdx    # 0x35ab70
leaq 0x1ba753(%rip), %rcx    # 0x357f24
leaq 0x1ba56a(%rip), %r8     # 0x357d42
movl $0x328, %r9d            # imm = 0x328
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-linlcp.c
// Function: gt_ENCSEQ_lcp13_kasai
GtUword *gt_ENCSEQ_lcp13_kasai(const GtEncseq *encseq,
                               GtReadmode readmode,
                               GtUword partwidth,
                               GtUword totallength,
                               const ESASuffixptr *suftab,
                               GtCompactUlongStore *inversesuftab)
{
  GtUword pos, lcpvalue = 0, *lcptab;

  lcptab = gt_malloc(sizeof (*lcptab) * partwidth);
  lcptab[0] = 0;
  for (pos=0; pos <= totallength; pos++)
  {
    GtUword fillpos = gt_compact_ulong_store_get(inversesuftab, pos);
    if (fillpos > 0 && fillpos < partwidth)
    {
      GtUword previousstart = ESASUFFIXPTRGET(suftab, fillpos-1);
      while (pos+lcpvalue < totallength &&
             previousstart+lcpvalue < totallength)
      {
        GtUchar cc1, cc2;

        cc1 = gt_encseq_get_encoded_char(encseq, pos+lcpvalue, readmode);
        cc2 = gt_encseq_get_encoded_char(encseq, previousstart+lcpvalue,
                                                readmode);
        if (cc1 == cc2 && GT_ISNOTSPECIAL(cc1))
        {
          lcpvalue++;
        } else
        {
          break;
        }
      }
      lcptab[fillpos] = lcpvalue;
    }
    if (lcpvalue > 0)
    {
      lcpvalue--;
    }
  }
  return lcptab;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %rbx
movq %r8, 0x18(%rsp)
movq %rcx, %r15
movq %rdx, %r13
movl %esi, 0x4(%rsp)
movq %rdi, 0x38(%rsp)
leaq (,%rdx,8), %rdi
leaq 0x1ba835(%rip), %rsi    # 0x358071
pushq $0x28
popq %rdx
callq 0x93160
movq %rax, 0x8(%rsp)
andq $0x0, (%rax)
xorl %r12d, %r12d
xorl %r14d, %r14d
movq %rbx, 0x20(%rsp)
movq %r13, 0x10(%rsp)
movq %r15, 0x30(%rsp)
cmpq %r15, %r14
ja 0x19d92b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6bb8d
movq %rax, %rdx
testq %rax, %rax
sete %al
cmpq %r13, %rdx
setae %cl
orb %al, %cl
jne 0x19d912
movq 0x18(%rsp), %rax
movq %rdx, 0x28(%rsp)
movq -0x8(%rax,%rdx,8), %rax
movq %rax, 0x40(%rsp)
movq %r12, %rbp
leaq (%r14,%r12), %rsi
cmpq %r15, %rsi
jae 0x19d8f8
movq 0x40(%rsp), %rax
leaq (%rax,%rbp), %r12
cmpq %r15, %r12
jae 0x19d8f8
movq 0x38(%rsp), %r13
movq %r13, %rdi
movq %r14, %r15
movl 0x4(%rsp), %r14d
movl %r14d, %edx
callq 0x705e4
movl %eax, %ebx
movq %r13, %rdi
movq %r12, %rsi
movl %r14d, %edx
movq %r15, %r14
movq 0x30(%rsp), %r15
callq 0x705e4
cmpb $-0x3, %bl
ja 0x19d8f8
leaq 0x1(%rbp), %r12
cmpb %al, %bl
je 0x19d8a1
movq 0x8(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rbp, (%rax,%rcx,8)
movq 0x20(%rsp), %rbx
movq 0x10(%rsp), %r13
jmp 0x19d915
movq %r12, %rbp
subq $0x1, %rbp
movl $0x0, %r12d
cmovaeq %rbp, %r12
incq %r14
jmp 0x19d862
movq 0x8(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-mappedstr.c
// Function: gt_kmerstream_delete
static void gt_kmerstream_delete(GtKmerstream *spwp)
{
  if (spwp != NULL) {
    gt_free(spwp->filltable);
    gt_multimappower_delete(spwp->multimappower);
    special_queue_delete(&spwp->specialqueue);
    gt_free(spwp);
  }
}

// Assembly:
testq %rdi, %rdi
je 0x19f0b2
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x60(%rdi), %rdi
leaq 0x1b957e(%rip), %r14    # 0x3585f3
movq %r14, %rsi
movl $0x1a4, %edx            # imm = 0x1A4
callq 0x936f9
movq 0x68(%rbx), %rdi
callq 0x164c86
movq (%rbx), %rdi
movq %r14, %rsi
movl $0x11e, %edx            # imm = 0x11E
callq 0x936f9
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1a7, %edx            # imm = 0x1A7
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x936f9
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-mappedstr.c
// Function: gt_kmerstream_new
static GtKmerstream *gt_kmerstream_new(unsigned int numofchars,
                                       unsigned int kmersize)
{
  GtKmerstream *spwp;

  gt_assert(kmersize <= 32);
  spwp = gt_malloc(sizeof (*spwp));
  spwp->multimappower = gt_initmultimappower(numofchars,kmersize);
  gt_kmerstream_init(spwp, numofchars, kmersize);
  special_queue_init(&spwp->specialqueue,kmersize);
  spwp->filltable = gt_filllargestchartable(numofchars,kmersize);
  return spwp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x21, %esi
jae 0x19f45d
movl %esi, %ebx
movl %edi, %ebp
leaq 0x1b921f(%rip), %r15    # 0x3585f3
movl $0x80, %edi
movq %r15, %rsi
movl $0x133, %edx            # imm = 0x133
callq 0x93160
movq %rax, %r14
movl %ebp, %edi
movl %ebx, %esi
callq 0x164b59
movq %rax, 0x68(%r14)
andl $0x0, 0x50(%r14)
andq $0x0, 0x58(%r14)
movl %ebx, 0x44(%r14)
movl %ebp, 0x40(%r14)
andq $0x0, 0x48(%r14)
movl %ebx, 0x18(%r14)
movl %ebx, %edi
shll $0x4, %edi
movq %r15, %rsi
movl $0xef, %edx
callq 0x93160
movq %rax, (%r14)
andl $0x0, 0x1c(%r14)
movl 0x18(%r14), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
addq $-0x10, %rax
movq %rax, 0x8(%r14)
movq %rax, 0x10(%r14)
movl %ebp, %edi
movl %ebx, %esi
callq 0x164a5d
movq %rax, 0x60(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x298b04(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x145ba5(%rip), %rsi    # 0x2e5013
leaq 0x1b932a(%rip), %rdx    # 0x35879f
leaq 0x1b9332(%rip), %rcx    # 0x3587ae
leaq 0x1b9170(%rip), %r8     # 0x3585f3
movl $0x132, %r9d            # imm = 0x132
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-mappedstr.c
// Function: gt_kmercodeiterator_encseq_next
const GtKmercode *gt_kmercodeiterator_encseq_next(
                             GtKmercodeiterator *kmercodeiterator)
{
  if (!kmercodeiterator->hasprocessedfirst)
  {
    gt_assert(kmercodeiterator->currentposition
              == kmercodeiterator->startpos + kmercodeiterator->spwp->kmersize);
    gt_kmerstream_newcode(&kmercodeiterator->kmercode, kmercodeiterator->spwp);
    kmercodeiterator->hasprocessedfirst = true;
    return &kmercodeiterator->kmercode;
  }
  if (kmercodeiterator->currentposition < kmercodeiterator->totallength)
  {
    GtUchar charcode
      = gt_encseq_reader_next_encoded_char(kmercodeiterator->esr);
    gt_kmerstream_shiftrightwithchar(kmercodeiterator->spwp,charcode);
    gt_kmerstream_newcode(&kmercodeiterator->kmercode, kmercodeiterator->spwp);
    kmercodeiterator->currentposition++;
    return &kmercodeiterator->kmercode;
  }
  if (kmercodeiterator->currentposition < kmercodeiterator->totallength +
                                          kmercodeiterator->spwp->kmersize)
  {
    gt_kmerstream_shiftrightwithchar(kmercodeiterator->spwp,
                                     (GtUchar) GT_WILDCARD);
    gt_kmerstream_newcode(&kmercodeiterator->kmercode, kmercodeiterator->spwp);
    kmercodeiterator->currentposition++;
    return &kmercodeiterator->kmercode;
  }
  return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
cmpb $0x0, 0x18(%rdi)
je 0x19f4c0
movq (%rbx), %rcx
cmpq %rcx, %rax
jae 0x19f4e2
movq 0x28(%rbx), %rdi
callq 0x70f55
movq 0x38(%rbx), %rdi
movzbl %al, %esi
jmp 0x19f4f6
movq 0x38(%rbx), %rsi
movl 0x44(%rsi), %ecx
addq 0x8(%rbx), %rcx
cmpq %rcx, %rax
jne 0x19f51f
leaq 0x40(%rbx), %r14
movq %r14, %rdi
callq 0x19f557
movb $0x1, 0x18(%rbx)
jmp 0x19f514
movq 0x38(%rbx), %rdi
movl 0x44(%rdi), %edx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0x19f511
movl $0xfe, %esi
callq 0x19f5c8
leaq 0x40(%rbx), %r14
movq 0x38(%rbx), %rsi
movq %r14, %rdi
callq 0x19f557
incq 0x10(%rbx)
jmp 0x19f514
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x298a42(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x145ae3(%rip), %rsi    # 0x2e5013
leaq 0x1b9148(%rip), %rdx    # 0x35867f
leaq 0x1b91a4(%rip), %rcx    # 0x3586e2
leaq 0x1b90ae(%rip), %r8     # 0x3585f3
movl $0x219, %r9d            # imm = 0x219
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-mappedstr.c
// Function: gt_kmerstream_newcode
static void gt_kmerstream_newcode(GtKmercode *kmercode,
                                  const GtKmerstream *spwp)
{
  {
    if (special_queue_is_empty(&spwp->specialqueue))
    {
      kmercode->definedspecialposition = false;
      kmercode->specialposition = 0;
      kmercode->code = spwp->codewithoutspecial;
    } else
    {
      GtSpecialcontext *head = special_queue_head_get(&spwp->specialqueue);
      gt_assert(head->lengthofleftcontext < spwp->kmersize);
      kmercode->code = head->codeofleftcontext +
                       spwp->filltable[head->lengthofleftcontext];
      kmercode->definedspecialposition = true;
      kmercode->specialposition = head->lengthofleftcontext;
    }
  }
}

// Assembly:
cmpl $0x0, 0x1c(%rsi)
je 0x19f57f
movq 0x10(%rsi), %rcx
movl (%rcx), %eax
cmpl 0x44(%rsi), %eax
jae 0x19f58f
movq 0x60(%rsi), %rdx
movq (%rdx,%rax,8), %rdx
addq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movb $0x1, (%rdi)
movl %eax, 0x4(%rdi)
retq
movb $0x0, (%rdi)
andl $0x0, 0x4(%rdi)
movq 0x58(%rsi), %rax
movq %rax, 0x8(%rdi)
retq
pushq %rax
movq 0x2989d1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x145a72(%rip), %rsi    # 0x2e5013
leaq 0x1b9218(%rip), %rdx    # 0x3587c0
leaq 0x1b923c(%rip), %rcx    # 0x3587eb
leaq 0x1b903d(%rip), %r8     # 0x3585f3
movl $0x188, %r9d            # imm = 0x188
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-mappedstr.c
// Function: gt_kmerstream_shiftrightwithchar
static void gt_kmerstream_shiftrightwithchar(GtKmerstream *spwp,
                                             GtUchar charcode)
{
  gt_assert(spwp->windowwidth == spwp->kmersize);
  gt_kmerstream_updatespecialpositions(spwp,charcode,true,
                                       spwp->cyclicwindow[spwp->firstindex]);
  spwp->cyclicwindow[spwp->firstindex] = charcode;
  if (spwp->firstindex < spwp->kmersize-1)
  {
    spwp->firstindex++;
  } else
  {
    spwp->firstindex = 0;
  }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl 0x48(%rdi), %eax
cmpl 0x44(%rdi), %eax
jne 0x19f610
movq %rdi, %rbx
movl 0x4c(%rdi), %eax
movzbl 0x20(%rdi,%rax), %ecx
movzbl %sil, %ebp
pushq $0x1
popq %rdx
movl %ebp, %esi
callq 0x19f0b3
movl 0x4c(%rbx), %eax
movb %bpl, 0x20(%rbx,%rax)
movl 0x44(%rbx), %eax
movl 0x4c(%rbx), %ecx
decl %eax
leal 0x1(%rcx), %edx
xorl %esi, %esi
cmpl %eax, %ecx
cmovbl %edx, %esi
movl %esi, 0x4c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x298951(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1459f2(%rip), %rsi    # 0x2e5013
leaq 0x1b91d9(%rip), %rdx    # 0x358801
leaq 0x1b91f6(%rip), %rcx    # 0x358825
leaq 0x1b8fbd(%rip), %r8     # 0x3585f3
movl $0x194, %r9d            # imm = 0x194
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-mappedstr.c
// Function: gt_kmercodeiterator_encseq_nonspecial_next
const GtKmercode *gt_kmercodeiterator_encseq_nonspecial_next(
                             GtKmercodeiterator *kmercodeiterator)
{
  while (true) {
    if (!kmercodeiterator->hasprocessedfirst) {
      gt_assert(kmercodeiterator->currentposition
                == kmercodeiterator->startpos +
                   kmercodeiterator->spwp->kmersize);
      gt_kmerstream_newcode(&kmercodeiterator->kmercode,
                            kmercodeiterator->spwp);
      kmercodeiterator->hasprocessedfirst = true;
      if (!kmercodeiterator->kmercode.definedspecialposition)
        return &kmercodeiterator->kmercode;
    }
    else {
      if (kmercodeiterator->currentposition < kmercodeiterator->totallength) {
        GtUchar charcode
          = gt_encseq_reader_next_encoded_char(kmercodeiterator->esr);
        gt_kmerstream_shiftrightwithchar(kmercodeiterator->spwp,charcode);
        gt_kmerstream_newcode(&kmercodeiterator->kmercode,
                              kmercodeiterator->spwp);
        kmercodeiterator->currentposition++;
        if (!kmercodeiterator->kmercode.definedspecialposition)
          return &kmercodeiterator->kmercode;
      }
      else
        break;
    }
  }
  return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x40(%rdi), %rbx
movq 0x10(%r14), %rax
cmpb $0x0, 0x18(%r14)
je 0x19f68a
cmpq (%r14), %rax
jae 0x19f6b0
movq 0x28(%r14), %rdi
callq 0x70f55
movq 0x38(%r14), %rdi
movzbl %al, %esi
callq 0x19f5c8
movq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0x19f557
incq 0x10(%r14)
jmp 0x19f6a7
movq 0x38(%r14), %rsi
movl 0x44(%rsi), %ecx
addq 0x8(%r14), %rcx
cmpq %rcx, %rax
jne 0x19f6bd
movq %rbx, %rdi
callq 0x19f557
movb $0x1, 0x18(%r14)
cmpb $0x0, 0x40(%r14)
jne 0x19f653
jmp 0x19f6b2
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x2988a4(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x145945(%rip), %rsi    # 0x2e5013
leaq 0x1b8faa(%rip), %rdx    # 0x35867f
leaq 0x1b9026(%rip), %rcx    # 0x358702
leaq 0x1b8f10(%rip), %r8     # 0x3585f3
movl $0x23a, %r9d            # imm = 0x23A
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-mappedstr.c
// Function: gt_kmercodeiterator_delete
void gt_kmercodeiterator_delete(GtKmercodeiterator *kmercodeiterator)
{
  if (kmercodeiterator != NULL)
  {
    gt_encseq_reader_delete(kmercodeiterator->esr);
    gt_kmerstream_delete(kmercodeiterator->spwp);
    gt_sequence_buffer_delete(kmercodeiterator->fb);
    gt_free(kmercodeiterator);
  }
}

// Assembly:
testq %rdi, %rdi
je 0x19f877
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
callq 0x722ae
movq 0x38(%rbx), %rdi
callq 0x19f05e
movq 0x50(%rbx), %rdi
callq 0xa76dc
leaq 0x1b8d8a(%rip), %rsi    # 0x3585f3
movq %rbx, %rdi
movl $0x2d4, %edx            # imm = 0x2D4
popq %rbx
jmp 0x936f9
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-mappedstr.c
// Function: gt_kmercodeiterator_filetab_next
int gt_kmercodeiterator_filetab_next(const GtKmercode **kmercodeptr,
                                     GtKmercodeiterator *kmercodeiterator,
                                     GtError *err)
{
  if (!kmercodeiterator->inputexhausted)
  {
    if (kmercodeiterator->hasprocessedfirst)
    {
      GtUchar charcode;
      int retval;

      retval = gt_sequence_buffer_next(kmercodeiterator->fb,&charcode,err);
      if (retval < 0)
      {
        *kmercodeptr = NULL;
        return -1;
      }
      if (retval != 0)
      {
        gt_kmerstream_shiftrightwithchar(kmercodeiterator->spwp,charcode);
        gt_kmerstream_newcode(&kmercodeiterator->kmercode,
                              kmercodeiterator->spwp);
        kmercodeiterator->currentposition++,
        *kmercodeptr = &kmercodeiterator->kmercode;
        return 0;
      }
      kmercodeiterator->inputexhausted = true;
      kmercodeiterator->totallength = kmercodeiterator->currentposition;
    } else
    {
      gt_kmerstream_newcode(&kmercodeiterator->kmercode,
                            kmercodeiterator->spwp);
      kmercodeiterator->hasprocessedfirst = true;
      *kmercodeptr = &kmercodeiterator->kmercode;
      return 0;
    }
  }
  if (kmercodeiterator->currentposition < kmercodeiterator->totallength +
                                          kmercodeiterator->spwp->kmersize)
  {
    gt_kmerstream_shiftrightwithchar(kmercodeiterator->spwp,
                                     (GtUchar) GT_WILDCARD);
    gt_kmerstream_newcode(&kmercodeiterator->kmercode, kmercodeiterator->spwp);
    kmercodeiterator->currentposition++,
    *kmercodeptr = &kmercodeiterator->kmercode;
  } else
  {
    *kmercodeptr = NULL;
  }
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x19(%rsi)
jne 0x19f8c9
movq (%r14), %rax
movq 0x10(%r14), %rcx
movq 0x38(%r14), %rdi
movl 0x44(%rdi), %edx
addq %rax, %rdx
xorl %r15d, %r15d
cmpq %rdx, %rcx
jae 0x19f92c
movl $0xfe, %esi
callq 0x19f5c8
leaq 0x40(%r14), %r12
movq 0x38(%r14), %rsi
movq %r12, %rdi
callq 0x19f557
incq 0x10(%r14)
jmp 0x19f92f
cmpb $0x1, 0x18(%r14)
jne 0x19f90b
movq 0x50(%r14), %rdi
leaq 0x7(%rsp), %rsi
callq 0xa7be1
testl %eax, %eax
js 0x19f928
je 0x19f941
movq 0x38(%r14), %rdi
movzbl 0x7(%rsp), %esi
callq 0x19f5c8
leaq 0x40(%r14), %r12
movq 0x38(%r14), %rsi
movq %r12, %rdi
callq 0x19f557
incq 0x10(%r14)
xorl %r15d, %r15d
jmp 0x19f92f
leaq 0x40(%r14), %r15
movq 0x38(%r14), %rsi
movq %r15, %rdi
callq 0x19f557
movb $0x1, 0x18(%r14)
movq %r15, (%rbx)
xorl %r15d, %r15d
jmp 0x19f932
pushq $-0x1
popq %r15
xorl %r12d, %r12d
movq %r12, (%rbx)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movb $0x1, 0x19(%r14)
movq 0x10(%r14), %rax
movq %rax, (%r14)
movq %rax, %rcx
jmp 0x19f893
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-maprange.c
// Function: gt_Sfxmappedrange_map_entire
void *gt_Sfxmappedrange_map_entire(GtSfxmappedrange *sfxmappedrange,
                                   GtError *err)
{
  size_t mappedsize;

  gt_assert(sfxmappedrange != NULL);
  sfxmappedrange->entire = gt_fa_mmap_read(gt_str_get(sfxmappedrange->filename),
                                           &mappedsize,err);
  if (sfxmappedrange->entire == NULL)
  {
    return NULL;
  }
  if (mappedsize != gt_Sfxmappedrange_size_entire(sfxmappedrange))
  {
    gt_error_set(err,
                 "map file %s: mapped size = "GT_WU" != "
                 GT_WU" = expected size",
                 gt_str_get(sfxmappedrange->filename), (GtUword) mappedsize,
                 (GtUword) gt_Sfxmappedrange_size_entire(sfxmappedrange));
    gt_fa_xmunmap(sfxmappedrange->entire);
    sfxmappedrange->entire = NULL;
    return NULL;
  }
  gt_log_log("map %s completely ("GT_WU" units of size %u)",
              gt_str_get(sfxmappedrange->tablename),
              (GtUword) sfxmappedrange->numofunits,
              (unsigned int) sfxmappedrange->sizeofunit);
  return sfxmappedrange->entire;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x19fbdf
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0xad1fa
leaq 0x1b8d3d(%rip), %rdx    # 0x35887b
leaq 0x8(%rsp), %rsi
pushq $0x58
popq %rcx
movq %rax, %rdi
movq %r14, %r8
callq 0x8b049
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x19fb91
movq 0x30(%rbx), %rax
imulq 0x38(%rbx), %rax
cmpq %rax, 0x8(%rsp)
jne 0x19fb96
movq 0x20(%rbx), %rdi
callq 0xad1fa
movq 0x30(%rbx), %rdx
movl 0x38(%rbx), %ecx
leaq 0x1b8d66(%rip), %rdi    # 0x3588e7
movq %rax, %rsi
xorl %eax, %eax
callq 0x92a82
movq 0x8(%rbx), %r15
jmp 0x19fbd2
xorl %r15d, %r15d
jmp 0x19fbd2
movq 0x18(%rbx), %rdi
callq 0xad1fa
movq 0x8(%rsp), %rcx
movq 0x30(%rbx), %r8
imulq 0x38(%rbx), %r8
leaq 0x1b8cfd(%rip), %rsi    # 0x3588b1
xorl %r15d, %r15d
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x89dbb
movq 0x8(%rbx), %rdi
callq 0x8b9fa
andq $0x0, 0x8(%rbx)
movq %r15, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x298382(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x145423(%rip), %rsi    # 0x2e5013
leaq 0x1b8c4f(%rip), %rdx    # 0x358846
leaq 0x1b8c96(%rip), %rcx    # 0x358894
leaq 0x1b8c76(%rip), %r8     # 0x35887b
pushq $0x56
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-maprange.c
// Function: gt_Sfxmappedrange_new
GtSfxmappedrange *gt_Sfxmappedrange_new(const char *tablename,
                                        GtUword numofentries,
                                        GtSfxmappedrangetype type,
                                        GtSfxmappedrangetransformfunc
                                          transformfunc,
                                        const void *transformfunc_data)
{
  GtSfxmappedrange *sfxmappedrange;

  sfxmappedrange = gt_malloc(sizeof (*sfxmappedrange));
  sfxmappedrange->ptr = NULL;
  sfxmappedrange->pagesize = gt_pagesize();
  sfxmappedrange->usedptrptr = NULL;
  sfxmappedrange->filename = NULL;
  sfxmappedrange->writable = false;
  sfxmappedrange->entire = NULL;
  sfxmappedrange->transformfunc = transformfunc;
  sfxmappedrange->transformfunc_data = transformfunc_data;
  sfxmappedrange->type = type;
  sfxmappedrange->tablename = gt_str_new_cstr(tablename);
  sfxmappedrange->currentminindex = sfxmappedrange->currentmaxindex = 0;
  sfxmappedrange->indexrange_defined = false;
  switch (type)
  {
    case GtSfxGtBitsequence:
      sfxmappedrange->sizeofunit = sizeof (GtBitsequence);
      sfxmappedrange->numofunits = GT_NUMOFINTSFORBITS(numofentries);
      break;
    case GtSfxuint32_t:
      sfxmappedrange->sizeofunit = sizeof (uint32_t);
      sfxmappedrange->numofunits = (size_t) numofentries;
      break;
    case GtSfxunsignedlong:
      sfxmappedrange->sizeofunit = sizeof (GtUword);
      sfxmappedrange->numofunits = (size_t) numofentries;
      break;
    default:
      gt_assert(false);
      break;
  }
  return sfxmappedrange;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r12
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r13
leaq 0x1b8c46(%rip), %rsi    # 0x35887b
pushq $0x78
popq %rdi
pushq $0x78
popq %rdx
callq 0x93160
movq %rax, %r14
andq $0x0, (%rax)
callq 0x6be41
movq %rax, 0x28(%r14)
xorl %eax, %eax
movb %al, 0x70(%r14)
xorps %xmm0, %xmm0
andq $0x0, 0x18(%r14)
movups %xmm0, 0x8(%r14)
movq %r12, 0x60(%r14)
movq %r15, 0x68(%r14)
movl %ebp, 0x40(%r14)
movq %r13, %rdi
callq 0xacbd1
movq %rax, 0x20(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r14)
xorl %eax, %eax
movb %al, 0x58(%r14)
cmpl $0x2, %ebp
je 0x19fcc1
cmpl $0x1, %ebp
je 0x19fcb7
testl %ebp, %ebp
jne 0x19fcdf
movq $0x8, 0x38(%r14)
leaq -0x1(%rbx), %rax
shrq $0x6, %rax
incq %rax
cmpq $0x40, %rbx
pushq $0x1
popq %rbx
cmovaeq %rax, %rbx
jmp 0x19fcc9
movq $0x8, 0x38(%r14)
jmp 0x19fcc9
movq $0x4, 0x38(%r14)
movq %rbx, 0x30(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x298282(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x145323(%rip), %rsi    # 0x2e5013
leaq 0x186cf5(%rip), %rdx    # 0x3269ec
leaq 0x1b8c12(%rip), %rcx    # 0x358910
leaq 0x1b8b76(%rip), %r8     # 0x35887b
movl $0x94, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-maprange.c
// Function: gt_Sfxmappedrange_usetmp
void gt_Sfxmappedrange_usetmp(GtSfxmappedrange *sfxmappedrange,
                              const GtStr *tmpfilename,
                              void **usedptrptr,
                              GtUword numofentries,
                              bool writable)
{
  gt_assert(sfxmappedrange != NULL);
  sfxmappedrange->ptr = NULL;
  /*gt_assert(usedptrptr != NULL && *usedptrptr == NULL);*/
  sfxmappedrange->usedptrptr = usedptrptr;
  sfxmappedrange->filename = gt_str_clone(tmpfilename);
  sfxmappedrange->writable = writable;
  if (sfxmappedrange->type == GtSfxGtBitsequence)
  {
    sfxmappedrange->numofunits = GT_NUMOFINTSFORBITS(numofentries);
  } else
  {
    sfxmappedrange->numofunits = (size_t) numofentries;
  }
  gt_log_log("use file %s for table %s ("GT_WU" units of "GT_WU" bytes)",
             gt_str_get(sfxmappedrange->filename),
             gt_str_get(sfxmappedrange->tablename),
             (GtUword) sfxmappedrange->numofunits,
             (GtUword) sfxmappedrange->sizeofunit);
  gt_free(*sfxmappedrange->usedptrptr);
  *sfxmappedrange->usedptrptr = NULL;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x19ffbb
movl %r8d, %ebp
movq %rcx, %r14
movq %rdi, %rbx
andq $0x0, (%rdi)
movq %rdx, 0x10(%rdi)
movq %rsi, %rdi
callq 0xad442
movq %rax, 0x18(%rbx)
movb %bpl, 0x70(%rbx)
cmpl $0x0, 0x40(%rbx)
jne 0x19ff62
leaq -0x1(%r14), %rcx
shrq $0x6, %rcx
incq %rcx
cmpq $0x40, %r14
pushq $0x1
popq %r14
cmovaeq %rcx, %r14
movq %r14, 0x30(%rbx)
movq %rax, %rdi
callq 0xad1fa
movq %rax, %r14
movq 0x20(%rbx), %rdi
callq 0xad1fa
movq 0x30(%rbx), %rcx
movq 0x38(%rbx), %r8
leaq 0x1b8a33(%rip), %rdi    # 0x3589bc
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x92a82
movq 0x10(%rbx), %rax
movq (%rax), %rdi
leaq 0x1b88d7(%rip), %rsi    # 0x35887b
movl $0x105, %edx            # imm = 0x105
callq 0x936f9
movq 0x10(%rbx), %rax
andq $0x0, (%rax)
popq %rbx
popq %r14
popq %rbp
retq
movq 0x297fa6(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x145047(%rip), %rsi    # 0x2e5013
leaq 0x1b8873(%rip), %rdx    # 0x358846
leaq 0x1b89c9(%rip), %rcx    # 0x3589a3
leaq 0x1b889a(%rip), %r8     # 0x35887b
movl $0xf3, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-maprange.c
// Function: gt_Sfxmappedrange_size_mapped
GtUword gt_Sfxmappedrange_size_mapped(const GtSfxmappedrange
                                                      *sfxmappedrange,
                                            GtUword minindex,
                                            GtUword maxindex)
{
  gt_assert(sfxmappedrange != NULL);
  if (sfxmappedrange->transformfunc != NULL)
  {
    sfxmappedrange->transformfunc(&minindex,&maxindex,
                                  sfxmappedrange->transformfunc_data);
  }
  if (minindex <= maxindex)
  {
    GtMappedrange lbrange;

    gt_Sfxmapped_offset_end(&lbrange,
                            sfxmappedrange->sizeofunit,
                            sfxmappedrange->pagesize,
                            minindex,
                            maxindex);
    return lbrange.mapend - lbrange.mapoffset + 1;
  }
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, 0x8(%rsp)
movq %rdx, (%rsp)
testq %rdi, %rdi
je 0x1a0080
movq %rdx, %rcx
movq %rdi, %rbx
movq 0x60(%rdi), %rax
testq %rax, %rax
je 0x1a0033
movq 0x68(%rbx), %rdx
leaq 0x8(%rsp), %r14
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq *%rax
movq (%r14), %rsi
movq (%r15), %rcx
cmpq %rcx, %rsi
jbe 0x1a003c
xorl %eax, %eax
jmp 0x1a0076
movq 0x28(%rbx), %r8
movq 0x38(%rbx), %r9
imulq %r9, %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %rdi
imulq %r9, %rcx
movq %rcx, %rax
xorl %edx, %edx
divq %r8
addq %rcx, %r8
subq %rdx, %r8
testq %rdx, %rdx
cmoveq %rcx, %r8
subq %rsi, %rdi
leaq (%rdi,%r8), %rax
incq %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x297ee1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x144f82(%rip), %rsi    # 0x2e5013
leaq 0x1b87ae(%rip), %rdx    # 0x358846
leaq 0x1b894f(%rip), %rcx    # 0x3589ee
leaq 0x1b87d5(%rip), %r8     # 0x35887b
movl $0x10e, %r9d            # imm = 0x10E
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-maprange.c
// Function: gt_Sfxmappedrange_unmap
void gt_Sfxmappedrange_unmap(GtSfxmappedrange *sfxmappedrange)
{
  gt_assert(sfxmappedrange != NULL);
  if (sfxmappedrange->ptr != NULL)
  {
    gt_fa_xmunmap(sfxmappedrange->ptr);
  }
  sfxmappedrange->ptr = 0;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1a00d4
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x1a00ce
callq 0x8b9fa
andq $0x0, (%rbx)
popq %rbx
retq
movq 0x297e8d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x144f2e(%rip), %rsi    # 0x2e5013
leaq 0x1b875a(%rip), %rdx    # 0x358846
leaq 0x1b8919(%rip), %rcx    # 0x358a0c
leaq 0x1b8781(%rip), %r8     # 0x35887b
movl $0x124, %r9d            # imm = 0x124
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-maprange.c
// Function: gt_Sfxmappedrange_delete
void gt_Sfxmappedrange_delete(GtSfxmappedrange *sfxmappedrange)
{
  if (sfxmappedrange == NULL)
  {
    return;
  }
  gt_fa_xmunmap(sfxmappedrange->ptr);
  sfxmappedrange->ptr = NULL;
  gt_fa_xmunmap(sfxmappedrange->entire);
  sfxmappedrange->entire = NULL;
  if (sfxmappedrange->usedptrptr != NULL)
  {
    *sfxmappedrange->usedptrptr = NULL;
  }
  if (sfxmappedrange->filename != NULL)
  {
    gt_xunlink(gt_str_get(sfxmappedrange->filename));
  }
  gt_str_delete(sfxmappedrange->tablename);
  gt_str_delete(sfxmappedrange->filename);
  gt_free(sfxmappedrange);
}

// Assembly:
testq %rdi, %rdi
je 0x1a0533
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x8b9fa
andq $0x0, (%rbx)
movq 0x8(%rbx), %rdi
callq 0x8b9fa
andq $0x0, 0x8(%rbx)
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x1a04f6
andq $0x0, (%rax)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x1a050c
callq 0xad1fa
movq %rax, %rdi
callq 0xb3704
movq 0x20(%rbx), %rdi
callq 0xae103
movq 0x18(%rbx), %rdi
callq 0xae103
leaq 0x1b8356(%rip), %rsi    # 0x35887b
movq %rbx, %rdi
movl $0x198, %edx            # imm = 0x198
popq %rbx
jmp 0x936f9
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-maprange.c
// Function: gt_Sfxmappedrangelist_add
void gt_Sfxmappedrangelist_add(GtSfxmappedrangelist *sfxmrlist,
                               GtSfxmappedrange *sfxmappedrange)
{
  gt_assert(sfxmrlist != NULL);

  if (sfxmrlist->nextfree >= sfxmrlist->allocated)
  {
    sfxmrlist->allocated += 4UL;
    sfxmrlist->arr = gt_realloc(sfxmrlist->arr,sizeof (*sfxmrlist->arr) *
                                               sfxmrlist->allocated);
  }
  sfxmrlist->arr[sfxmrlist->nextfree++] = sfxmappedrange;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1a05b4
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rdx
cmpq %rdx, %rcx
jb 0x1a05a0
leaq 0x4(%rdx), %rcx
movq %rcx, 0x10(%r14)
leaq 0x20(,%rdx,8), %rsi
leaq 0x1b82ef(%rip), %rdx    # 0x35887b
movq %rax, %rdi
movl $0x1b3, %ecx            # imm = 0x1B3
callq 0x93472
movq %rax, (%r14)
movq 0x8(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r14)
movq %rbx, (%rax,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x2979ad(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x144a4e(%rip), %rsi    # 0x2e5013
leaq 0x1b85cd(%rip), %rdx    # 0x358b99
leaq 0x1b85d8(%rip), %rcx    # 0x358bab
leaq 0x1b82a1(%rip), %r8     # 0x35887b
movl $0x1ad, %r9d            # imm = 0x1AD
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-maprange.c
// Function: gt_Sfxmappedrangelist_size_mapped
GtUword gt_Sfxmappedrangelist_size_mapped(const GtSfxmappedrangelist *sfxmrlist,
                                          GtUword minindex,
                                          GtUword maxindex)
{
  if (sfxmrlist == NULL)
  {
    gt_assert(maxindex >= minindex);
    return maxindex - minindex + 1;
  } else
  {
    GtUword idx, sumsize = 0;

    for (idx = 0; idx < sfxmrlist->nextfree; idx++)
    {
      GtSfxmappedrange *sfxmappedrange = sfxmrlist->arr[idx];
      if (sfxmappedrange != NULL)
      {
        /*printf("size_mapped %s "GT_WU" "GT_WU" => "GT_WU"\n",
                    gt_str_get(sfxmappedrange->tablename),
                    minindex,maxindex,
                    gt_Sfxmappedrange_size_mapped(sfxmappedrange,minindex,
                                                  maxindex));*/
        sumsize += gt_Sfxmappedrange_size_mapped(sfxmappedrange,
                                                 minindex,
                                                 maxindex);
      }
    }
    return sumsize;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
testq %rdi, %rdi
je 0x1a062e
movq %rdi, %r15
xorl %r13d, %r13d
xorl %r12d, %r12d
cmpq 0x8(%r15), %r13
jae 0x1a0639
movq (%r15), %rax
movq (%rax,%r13,8), %rdi
testq %rdi, %rdi
je 0x1a0629
movq %r14, %rsi
movq %rbx, %rdx
callq 0x19fff3
addq %rax, %r12
incq %r13
jmp 0x1a0609
subq %r14, %rbx
jb 0x1a0646
incq %rbx
movq %rbx, %r12
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x29791b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1449bc(%rip), %rsi    # 0x2e5013
leaq 0x1b8567(%rip), %rdx    # 0x358bc5
leaq 0x1b8575(%rip), %rcx    # 0x358bda
leaq 0x1b820f(%rip), %r8     # 0x35887b
movl $0x1be, %r9d            # imm = 0x1BE
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-partssuf.c
// Function: gt_suftabparts_variance
double gt_suftabparts_variance(const GtSuftabparts *suftabparts)
{

  gt_assert(suftabparts->numofparts > 0);
  if (suftabparts->numofparts == 1U)
  {
    return 0.0;
  } else
  {
    double meanwidth, difference, sum = 0.0;
    unsigned int part;

    meanwidth
      = (double)
        gt_suftabparts_sumofwidth(suftabparts->numofparts-1,suftabparts)/
        suftabparts->numofparts;
    for (part = 0; part < suftabparts->numofparts; part++)
    {
      difference = (double) suftabparts->components[part].widthofpart
                   - meanwidth;
      sum += difference * difference;
    }
    return sum/(double) (suftabparts->numofparts-1);
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0xc(%rdi), %edi
xorpd %xmm0, %xmm0
cmpl $0x1, %edi
je 0x1a0a6c
testl %edi, %edi
je 0x1a0a6e
decl %edi
movq %rbx, %rsi
callq 0x1a08b9
movq %rax, %xmm0
punpckldq 0x146eeb(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x146ef3(%rip), %xmm0   # 0x2e78f0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movl 0xc(%rbx), %eax
cvtsi2sd %rax, %xmm0
divsd %xmm0, %xmm1
imulq $0x30, %rax, %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
movsd 0x146eb9(%rip), %xmm2   # 0x2e78e0
movapd 0x146ec1(%rip), %xmm3   # 0x2e78f0
cmpq %rdx, %rcx
je 0x1a0a61
movq (%rbx), %rsi
movsd (%rsi,%rdx), %xmm4
unpcklps %xmm2, %xmm4            # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
subpd %xmm3, %xmm4
movapd %xmm4, %xmm5
unpckhpd %xmm4, %xmm5            # xmm5 = xmm5[1],xmm4[1]
addsd %xmm4, %xmm5
subsd %xmm1, %xmm5
mulsd %xmm5, %xmm5
addsd %xmm5, %xmm0
addq $0x30, %rdx
jmp 0x1a0a2f
decl %eax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
popq %rbx
retq
movq 0x2974f3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x144594(%rip), %rsi    # 0x2e5013
leaq 0x1b848a(%rip), %rdx    # 0x358f10
leaq 0x1b83cb(%rip), %rcx    # 0x358e58
leaq 0x1b81dc(%rip), %r8     # 0x358c70
movl $0x160, %r9d            # imm = 0x160
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-run.c
// Function: gt_parseargsandcallsuffixerator
int gt_parseargsandcallsuffixerator(bool doesa,int argc,
                                    const char **argv,GtError *err)
{
  Suffixeratoroptions so;
  int retval;
  bool haserr = false;

  gt_error_check(err);
  retval = gt_suffixeratoroptions(&so,doesa,argc,argv,err);
  if (retval == 0)
  {
    GtLogger *logger = gt_logger_new(so.beverbose,
                                     GT_LOGGER_DEFLT_PREFIX, stdout);

    gt_logger_log(logger,"sizeof (GtUword)="GT_WU"",
                  (GtUword) (sizeof (GtUword) * CHAR_BIT));
    if (gt_runsuffixerator(doesa,&so,NULL,logger,err) < 0)
    {
      haserr = true;
    }
    gt_logger_delete(logger);
    logger = NULL;
  } else
  {
    if (retval < 0)
    {
      haserr = true;
    }
  }
  gt_sfxoptions_delete(&so);
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %r15d
movl %edi, %ebp
testq %rcx, %rcx
je 0x1a26bf
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1a274a
movzbl %bpl, %ebp
movq %rsp, %rdi
movl %ebp, %esi
movl %r15d, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x2cb1b3
testl %eax, %eax
je 0x1a26e3
movl %eax, %r14d
sarl $0x1f, %r14d
jmp 0x1a2734
movq %rsp, %r14
movzbl (%r14), %edi
movq 0x2957bf(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x1441d9(%rip), %rsi    # 0x2e68d4
callq 0x92b50
movq %rax, %r15
leaq 0x1b6c1b(%rip), %rsi    # 0x359325
pushq $0x40
popq %rdx
movq %rax, %rdi
xorl %eax, %eax
callq 0x92e71
movl %ebp, %edi
movq %r14, %rsi
xorl %edx, %edx
movq %r15, %rcx
movq %rbx, %r8
callq 0x1a1860
movl %eax, %r14d
movq %r15, %rdi
callq 0x92fd0
movq %rsp, %rdi
callq 0x2cb178
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x295817(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1428b8(%rip), %rsi    # 0x2e5013
leaq 0x142a5d(%rip), %rdx    # 0x2e51bf
leaq 0x1b6b9c(%rip), %rcx    # 0x359305
leaq 0x1b6ab3(%rip), %r8     # 0x359223
movl $0x2d6, %r9d            # imm = 0x2D6
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-run.c
// Function: gt_suflcptab2genomediff
static void gt_suflcptab2genomediff(void *data,
                                    const GtSuffixsortspace *sssp,
                                    const GtLcpvalues *tableoflcpvalues,
                                    GtUword bucketoffset,
                                    GtUword numberofsuffixes,
                                    GtUword posoffset)
{
  (void) gt_sfx_multiesa2shulengthdist(
                  (GtBUstate_shulen *) data,
                  gt_suffixsortspace_getptr_ulong(sssp,bucketoffset+posoffset),
                  gt_suffixsortspace_getptr_uint32(sssp,bucketoffset+posoffset),
                  gt_lcptab_getptr(tableoflcpvalues,bucketoffset),
                  numberofsuffixes,
                  NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, (%rsp)
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
leaq (%r9,%rcx), %rbp
movq %rsi, %rdi
movq %rbp, %rsi
callq 0x1af903
movq %rax, %rbx
movq %r12, %rdi
movq %rbp, %rsi
callq 0x1af965
movq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x19c8a0
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %rax, %rcx
movq (%rsp), %r8
xorl %r9d, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x152def
nop
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-sain.c
// Function: gt_sain_encseq_sortsuffixes
GtUsainindextype *gt_sain_encseq_sortsuffixes(const GtEncseq *encseq,
                                              GtReadmode readmode,
                                              bool intermediatecheck,
                                              bool finalcheck,
                                              GtLogger *logger,
                                              GtTimer *timer)
{
  GtUword nonspecialentries, suftabentries, totallength;
  GtUsainindextype *suftab;
  GtSainseq *sainseq;

  totallength = gt_encseq_total_length(encseq);
  nonspecialentries = totallength - gt_encseq_specialcharacters(encseq);
  suftabentries = totallength+1;
  suftab = (GtUsainindextype *) gt_calloc((size_t) suftabentries,
                                          sizeof *suftab);
  sainseq = gt_sainseq_new_from_encseq(encseq,readmode);
  gt_sain_rec_sortsuffixes(0,
                           sainseq,
                           suftab,
                           0,
                           nonspecialentries,
                           suftabentries,
                           intermediatecheck,
                           finalcheck,
                           logger,
                           timer);
#ifdef GT_SAIN_WITHCOUNTS
  printf("countcharaccess="GT_WU" (%.2f)\n",gt_sain_countcharaccess,
          (double) gt_sain_countcharaccess/sainseq->totallength);
#endif
  gt_sainseq_delete(sainseq);
  return suftab;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, 0x28(%rsp)
movq %r8, 0x30(%rsp)
movl %ecx, 0x8(%rsp)
movl %edx, 0xc(%rsp)
movl %esi, %ebx
movq %rdi, %r14
callq 0x7055e
movq %rax, %r13
movq %r14, %rdi
callq 0x760bc
movq %rax, 0x10(%rsp)
leaq 0x1(%r13), %rdi
leaq 0x1b6cb9(%rip), %rbp    # 0x3594f8
pushq $0x4
popq %rsi
movq %rdi, 0x18(%rsp)
movq %rbp, %rdx
movl $0x638, %ecx            # imm = 0x638
callq 0x9334a
movq %rax, 0x20(%rsp)
pushq $0x58
popq %rdi
pushq $0x74
popq %rdx
movq %rbp, %rsi
callq 0x93160
movq %rax, %rbp
movl $0x2, 0x50(%rax)
movq %r14, 0x38(%rax)
andq $0x0, 0x48(%rax)
movl %ebx, 0x40(%rax)
movq %r14, %rdi
callq 0x7055e
movq %rax, (%rbp)
movq %r14, %rdi
callq 0x75487
movl %eax, %eax
movq %rax, 0x8(%rbp)
movq (%rbp), %rdx
leaq 0x100(%rdx), %rsi
movq %rbp, %rdi
callq 0x1a5332
andl $-0x2, %ebx
movb $0x3, %r12b
xorl %r15d, %r15d
cmpq 0x8(%rbp), %r15
jae 0x1a28e2
cmpl $0x2, %ebx
movzbl %r12b, %r12d
movl %r15d, %eax
cmovel %r12d, %eax
movzbl %al, %esi
movq %r14, %rdi
callq 0x754fd
movq 0x18(%rbp), %rcx
movl %eax, (%rcx,%r15,4)
incq %r15
decb %r12b
jmp 0x1a28b3
subq 0x10(%rsp), %r13
movzbl 0x8(%rsp), %eax
movzbl 0xc(%rsp), %r10d
xorl %edi, %edi
movq %rbp, %rsi
movq 0x20(%rsp), %rbx
movq %rbx, %rdx
xorl %ecx, %ecx
movq %r13, %r8
movq 0x18(%rsp), %r9
pushq 0x28(%rsp)
pushq 0x38(%rsp)
pushq %rax
pushq %r10
callq 0x1a2937
addq $0x20, %rsp
movq %rbp, %rdi
callq 0x1a4dca
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq