LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-extinfo.c
// Function: writeLocateInfoHeader
static int
writeLocateInfoHeader(FILE *fp, void *cbData)
{
  struct locateHeader headerData;
  Definedunsignedlong rot0Pos;
  const struct locateHeaderWriteInfo *headerSrc = cbData;
  gt_assert(cbData);
  headerData.locateInterval = headerSrc->locateInterval;
  rot0Pos = SASSGetRot0Pos(headerSrc->src);
  if (!rot0Pos.defined)
  {
    fputs("Invalid index construction: position of suffix 0 unknown!\n",
          stderr);
    abort();
  }
  headerData.rot0Pos = rot0Pos.valueunsignedlong;
  headerData.featureToggles = headerSrc->featureToggles;
  gt_xfwrite(&headerData, sizeof (headerData), 1, fp);
  return 1;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
testq %rsi, %rsi
je 0x144e50
movq %rsi, %r14
movq %rdi, %rbx
movl 0x8(%rsi), %eax
movl %eax, 0x10(%rsp)
movq (%rsi), %rdi
callq *0x18(%rdi)
testb $0x1, %al
je 0x144e86
leaq 0x8(%rsp), %rdi
movq %rdx, (%rdi)
movl 0xc(%r14), %eax
movl %eax, 0xc(%rdi)
pushq $0x10
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0xb302c
pushq $0x1
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq 0x2f3111(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1a01b2(%rip), %rsi    # 0x2e5013
leaq 0x1fdcfb(%rip), %rdx    # 0x342b63
leaq 0x1fdcfb(%rip), %rcx    # 0x342b6a
leaq 0x1fda6a(%rip), %r8     # 0x3428e0
pushq $0x3f
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2f30db(%rip), %rax    # 0x437f68
movq (%rax), %rsi
leaq 0x1fdce9(%rip), %rdi    # 0x342b80
callq 0x17870
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-extinfo.c
// Function: writeRankSortHeader
static int
writeRankSortHeader(FILE *fp, void *cbData)
{
  struct sortModeHeader *headerData = cbData;
  gt_assert(cbData);
  gt_xfwrite(&headerData->bitsPerOrigRank, sizeof (headerData->bitsPerOrigRank),
             1, fp);
  {
    size_t i, numRanges = MRAEncGetNumRanges(headerData->alphabet);
    for (i = 0; i < numRanges; ++i)
    {
      int16_t mode = headerData->rangeSort[i];
      gt_xfwrite(&mode, sizeof (mode), 1, fp);
    }
  }
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x144f16
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0xb302c
movq 0x8(%rbx), %rax
movl 0x4(%rax), %ebp
xorl %r15d, %r15d
leaq 0x6(%rsp), %r12
pushq $0x2
popq %r13
cmpq %r15, %rbp
je 0x144f04
movq 0x10(%rbx), %rax
movzwl (%rax,%r15,4), %eax
movw %ax, 0x6(%rsp)
movq %r12, %rdi
movq %r13, %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0xb302c
incq %r15
jmp 0x144edb
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2f304b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1a00ec(%rip), %rsi    # 0x2e5013
leaq 0x1fdc35(%rip), %rdx    # 0x342b63
leaq 0x1fdc86(%rip), %rcx    # 0x342bbb
leaq 0x1fd9a4(%rip), %r8     # 0x3428e0
pushq $0x6e
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-extinfo.c
// Function: gt_BWTSeqPosHasLocateInfo
int
gt_BWTSeqPosHasLocateInfo(const BWTSeq *bwtSeq, GtUword pos,
                       struct extBitsRetrieval *extBits)
{
  if (bwtSeq->featureToggles & BWTLocateBitmap)
  {
    EISRetrieveExtraBits(bwtSeq->seqIdx, pos, EBRF_RETRIEVE_CWBITS, extBits,
                         bwtSeq->hint);
    return gt_bsGetBit(extBits->cwPart,
                       extBits->cwOffset + pos - extBits->start);
  }
  else if (bwtSeq->featureToggles & BWTLocateCount)
  {
    BitOffset markOffset = searchLocateCountMark(bwtSeq, pos, extBits);
    return markOffset != 0;
  }
#ifndef NDEBUG
  else
  {
    fputs("Trying to locate in BWT sequence index without locate information.",
          stderr);
    abort();
  }
#endif
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl 0x40(%rdi), %eax
testb $0x1, %al
jne 0x145653
testb $0x2, %al
je 0x14569f
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1456f2
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
setne %al
jmp 0x145697
movq (%rdi), %rax
movq 0x18(%rdi), %r8
movq (%rax), %r9
movq %rax, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %r14, %rcx
callq *0x50(%r9)
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x1456ba
addq (%r14), %rbx
subq 0x10(%r14), %rbx
movq %rbx, %rcx
shrq $0x3, %rcx
movzbl (%rax,%rcx), %ecx
notb %bl
movzbl %bl, %edx
andl $0x7, %edx
xorl %eax, %eax
btl %edx, %ecx
setb %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x2f28c2(%rip), %rax    # 0x437f68
movq (%rax), %rsi
leaq 0x1fd2dc(%rip), %rdi    # 0x34298c
callq 0x17870
callq 0x17390
movq 0x2f28a7(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19f948(%rip), %rsi    # 0x2e5013
leaq 0x1cc952(%rip), %rdx    # 0x312024
leaq 0x1bbdec(%rip), %rcx    # 0x3014c5
leaq 0x1bbdf1(%rip), %r8     # 0x3014d1
movl $0x18c, %r9d            # imm = 0x18C
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-extinfo.c
// Function: searchLocateCountMark
static inline BitOffset
searchLocateCountMark(const BWTSeq *bwtSeq, GtUword pos,
                      struct extBitsRetrieval *extBits)
{
  unsigned i, numMarks, bitsPerCount;
  BitOffset markOffset;
  EISRetrieveExtraBits(bwtSeq->seqIdx, pos, EBRF_RETRIEVE_CWBITS
                       | EBRF_RETRIEVE_VARBITS, extBits, bwtSeq->hint);
  markOffset = extBits->varOffset;
  bitsPerCount = requiredUlongBits(extBits->len);
  numMarks = gt_bsGetUlong(extBits->varPart, markOffset, bitsPerCount);
  if (numMarks)
  {
    unsigned bitsPerBWTPos = requiredUlongBits(extBits->len - 1),
      bitsPerOrigPos = requiredUlongBits(
        ((bwtSeq->featureToggles & BWTReversiblySorted) ?
         (BWTSeqLength(bwtSeq) - 1) / bwtSeq->locateSampleInterval :
         BWTSeqLength(bwtSeq) - 1));
    GtUword cmpPos = pos - extBits->start;
    markOffset += bitsPerCount;
    for (i = 0; i < numMarks; ++i)
    {
      GtUword markedPos = gt_bsGetUlong(extBits->varPart, markOffset,
                                     bitsPerBWTPos);
      if (markedPos < cmpPos)
        markOffset += bitsPerBWTPos + bitsPerOrigPos;
      else if (markedPos > cmpPos)
        break;
      else if (markedPos == cmpPos)
        return markOffset + bitsPerBWTPos;
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %rbp
movq (%rdi), %rdi
movq 0x18(%rbp), %r8
movq (%rdi), %rax
pushq $0x2
popq %rdx
movq %rbx, %rcx
callq *0x50(%rax)
movq 0x8(%rbx), %r15
movq 0x18(%rbx), %rdi
callq 0x28a939
movl %eax, %r13d
movq 0x28(%rbx), %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x28deac
movq %rax, %r12
testl %r12d, %r12d
je 0x1457a5
movl %r13d, 0x4(%rsp)
movq 0x18(%rbx), %rdi
decq %rdi
callq 0x28a939
movl %eax, %r13d
movq (%rbp), %rax
movq 0x10(%rax), %rax
decq %rax
testb $0x4, 0x40(%rbp)
je 0x14576c
movl 0x20(%rbp), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %rdi
callq 0x28a939
movl %eax, %ebp
subq 0x10(%rbx), %r14
movl 0x4(%rsp), %eax
addq %rax, %r15
addl %r13d, %ebp
subl $0x1, %r12d
jb 0x1457a5
movq 0x28(%rbx), %rdi
movq %r15, %rsi
movl %r13d, %edx
callq 0x28deac
cmpq %r14, %rax
jae 0x1457a3
addq %rbp, %r15
jmp 0x145784
jbe 0x1457b6
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq %r15, %r13
movq %r13, %rax
jmp 0x1457a7
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-mrangealphabet-siop.h
// Function: MRAEncGetRangeOfSymbol
static inline AlphabetRangeID
MRAEncGetRangeOfSymbol(const MRAEnc *mralpha, Symbol sym)
{
  AlphabetRangeID range = 0;
  gt_assert(mralpha && sym < gt_MRAEncGetSize(mralpha));
  while (sym >= mralpha->rangeEndIndices[range])
    ++range;
  return range;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1460db
movl %esi, %ebp
movq %rdi, %rbx
callq 0x14906a
movzbl %bpl, %ecx
cmpw %cx, %ax
jbe 0x1460db
movq 0x8(%rbx), %rdx
pushq $-0x1
popq %rax
incl %eax
cmpw %cx, (%rdx,%rax,2)
jbe 0x1460cc
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x2f1e86(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19ef27(%rip), %rsi    # 0x2e5013
leaq 0x1fc650(%rip), %rdx    # 0x342743
leaq 0x1fc674(%rip), %rcx    # 0x34276e
leaq 0x1fc684(%rip), %r8     # 0x342785
pushq $0x6e
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-param.c
// Function: gt_registerPackedIndexOptions
void
gt_registerPackedIndexOptions(GtOptionParser *op,
                              struct bwtOptions *paramOutput,
                              int defaultOptimizationFlags,
                              const GtStr *projectName)
{
  GtOption *option;

  gt_registerEncIdxSeqOptions(op, &paramOutput->final.seqParams);

  paramOutput->final.featureToggles = BWTBaseFeatures;

  option = gt_option_new_uint(
    "locfreq", "specify the locate frequency\n"
    "parameter i means that each i-th position of input string is stored\n"
    "0 => no locate information", &paramOutput->final.locateInterval, 16U);
  gt_option_parser_add_option(op, option);

  option = gt_option_new_bool(
    "locbitmap", "marked/unmarked positions for locate are stored as bitmaps\n"
    "this gives faster location of hits but increases the index by 1 bit per"
    " symbol", &paramOutput->useLocateBitmap, true);
  gt_option_parser_add_option(op, option);
  paramOutput->useLocateBitmapOption = option;

  option = gt_option_new_bool(
    "sprank", "build rank table for special symbols\n"
    "this produces an index which can be used to regenerate the "
    "original sequence but increases the memory used during index creation",
    &paramOutput->useSourceRank, false);
  gt_option_parser_add_option(op, option);

  option = gt_option_new_int_min_max(
    "sprankilog", "specify the interval of rank sampling as log value\n"
    "parameter i means that each 2^i-th position of source is sampled for "
    "rank\nundefined => chooses default of log(log(sequence length))",
    &paramOutput->final.sourceRankInterval, -1, -1,
    sizeof (GtUword) * CHAR_BIT - 1);
  gt_option_parser_add_option(op, option);

  gt_registerCtxMapOptions(op, &paramOutput->final.ctxMapILog);

  paramOutput->final.projectName = projectName;

  paramOutput->defaultOptimizationFlags = defaultOptimizationFlags;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r12
callq 0x1483ec
andl $0x0, 0x10(%r15)
leaq 0x14(%r15), %rdx
leaq 0x1fcb9b(%rip), %rdi    # 0x342d64
leaq 0x1fcb9c(%rip), %rsi    # 0x342d6c
pushq $0x10
popq %rcx
callq 0x9abcd
movq %r12, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x2c(%r15), %rdx
leaq 0x1fcbfa(%rip), %rdi    # 0x342de8
leaq 0x1fcbfd(%rip), %rsi    # 0x342df2
pushq $0x1
popq %rcx
callq 0x9a997
movq %rax, %r13
movq %r12, %rdi
movq %rax, %rsi
callq 0x97f31
movq %r13, 0x30(%r15)
leaq 0x2d(%r15), %rdx
leaq 0x1fcc62(%rip), %rdi    # 0x342e7c
leaq 0x1fcc62(%rip), %rsi    # 0x342e83
xorl %ecx, %ecx
callq 0x9a997
movq %r12, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x18(%r15), %rdx
leaq 0x1fcceb(%rip), %rdi    # 0x342f29
leaq 0x1fccef(%rip), %rsi    # 0x342f34
pushq $-0x1
popq %rcx
pushq $0x3f
popq %r9
movl %ecx, %r8d
callq 0x9abac
movq %r12, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x1c(%r15), %rsi
movq %r12, %rdi
callq 0x143860
movq %r14, 0x20(%r15)
movl %ebx, 0x28(%r15)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-param.c
// Function: gt_computePackedIndexDefaults
void
gt_computePackedIndexDefaults(struct bwtOptions *paramOutput, int extraToggles)
{
  if (gt_option_is_set(paramOutput->useLocateBitmapOption))
    paramOutput->final.featureToggles
      |= (paramOutput->useLocateBitmap?BWTLocateBitmap:BWTLocateCount);
  else
    paramOutput->final.featureToggles
      |= estimateBestLocateTypeFeature(paramOutput);
  if (paramOutput->final.sourceRankInterval >= 0
      || paramOutput->useSourceRank)
    paramOutput->final.featureToggles |= BWTReversiblySorted;
  paramOutput->final.featureToggles |= extraToggles;
  paramOutput->final.seqParams.EISFeatureSet
    = gt_convertBWTOptFlags2EISFeatures(paramOutput->defaultOptimizationFlags);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x9b4cb
testb %al, %al
je 0x1462a1
movzbl 0x2c(%rbx), %eax
pushq $0x2
popq %rcx
subl %eax, %ecx
jmp 0x1462d2
cmpl $0x0, 0x14(%rbx)
je 0x1462d0
movq %rbx, %rdi
callq 0x148c97
movl %eax, %r14d
leal 0x1(%r14), %r15d
movl %eax, %edi
callq 0x28a8fc
imull %r15d, %eax
xorl %ecx, %ecx
xorl %edx, %edx
divl 0x14(%rbx)
cmpl %r14d, %eax
adcl $0x1, %ecx
jmp 0x1462d2
xorl %ecx, %ecx
orl 0x10(%rbx), %ecx
cmpl $0x0, 0x18(%rbx)
jns 0x1462e1
cmpb $0x1, 0x2d(%rbx)
jne 0x1462e4
orl $0x4, %ecx
orl %ebp, %ecx
movl %ecx, 0x10(%rbx)
movl 0x28(%rbx), %eax
shrl %eax
andl $0x1, %eax
movl %eax, 0x4(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-sass.c
// Function: gt_BWTSeqNewSASeqSrc
SASeqSrc *
gt_BWTSeqNewSASeqSrc(const BWTSeq *bwtSeq, const BWTSeqContextRetriever *ctxMap)
{
  struct BWTSASeqSrc *newBWTSASeqSrc;
  gt_assert(bwtSeq);
  newBWTSASeqSrc = gt_malloc(sizeof (*newBWTSASeqSrc));
  {
    RandomSeqAccessor origSeqAccess;
    if (ctxMap)
    {
      origSeqAccess.accessFunc = BWTSASSAccessOrigSeq;
      origSeqAccess.state = (void *)ctxMap;
    }
    else
    {
      origSeqAccess.accessFunc = NULL;
      origSeqAccess.state = NULL;
    }
    initSASeqSrc(&newBWTSASeqSrc->baseClass,
                 BWTSeqLength(bwtSeq),
                 NULL,
                 BWTSASSCreateReader,
                 BWTSASSGetRot0Pos,
                 NULL,
                 origSeqAccess,
                 gt_deleteBWTSeqSASS,
                 BWTSASSNewMRAEnc,
                 NULL, NULL);   /* since BWTSeq can regenerate
                                 * arbitrary portions of all
                                 * associated data (when reversibly
                                 * sorted) no generator is necessary
                                 * and all readers just keep their state
                                 */
  }
  newBWTSASeqSrc->ctxMap = ctxMap;
  newBWTSASeqSrc->bwtSeq = bwtSeq;
  newBWTSASeqSrc->readerStateList = NULL;
  return &newBWTSASeqSrc->baseClass;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x1463db
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1fccdd(%rip), %rsi    # 0x343000
pushq $0x6c
popq %rdx
movl $0xd8, %edi
callq 0x93160
testq %rax, %rax
je 0x146405
movq %rax, %r15
movq (%rbx), %rax
movq 0x10(%rax), %rax
testq %r14, %r14
leaq 0xee(%rip), %rcx        # 0x14643b
cmoveq %r14, %rcx
movq %rax, (%r15)
andq $0x0, 0x10(%r15)
leaq 0x12d(%rip), %rax       # 0x14648d
movq %rax, 0x8(%r15)
leaq 0x1b3(%rip), %rax       # 0x14651e
movq %rax, 0x18(%r15)
andq $0x0, 0x20(%r15)
movq %rcx, 0x28(%r15)
movq %r14, 0x30(%r15)
leaq 0x1ae(%rip), %rax       # 0x146531
movq %rax, 0x38(%r15)
leaq 0x214(%rip), %rax       # 0x1465a2
movq %rax, 0x40(%r15)
andq $0x0, 0x48(%r15)
leaq 0x50(%r15), %rdi
pushq $0x8
popq %rcx
xorl %esi, %esi
xorl %edx, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1496ec
movq %r15, %rdi
addq $0xb0, %rdi
callq 0x1495e8
movq %r14, 0xc8(%r15)
movq %rbx, 0xc0(%r15)
andq $0x0, 0xd0(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x2f1b86(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19ec27(%rip), %rsi    # 0x2e5013
leaq 0x1fce84(%rip), %rdx    # 0x343277
leaq 0x1fcbf1(%rip), %rcx    # 0x342feb
leaq 0x1fcbff(%rip), %r8     # 0x343000
pushq $0x6b
jmp 0x14642d
movq 0x2f1b5c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19ebfd(%rip), %rsi    # 0x2e5013
leaq 0x1b7e28(%rip), %rdx    # 0x2fe245
leaq 0x1fcc0d(%rip), %rcx    # 0x343031
leaq 0x1fcc13(%rip), %r8     # 0x34303e
pushq $0x69
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-sass.c
// Function: BWTSASSAccessOrigSeq
static size_t
BWTSASSAccessOrigSeq(const void *state,
                     Symbol *dest,
                     GtUword pos,
                     size_t len)
{
  const BWTSeqContextRetriever *ctxMap = state;
  gt_assert(state);
  gt_BWTSeqCRAccessSubseq(ctxMap, pos, len, dest);
  return len;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x146457
movq %rcx, %rbx
movq %rsi, %rcx
movq %rdx, %rsi
movq %rbx, %rdx
callq 0x1441da
movq %rbx, %rax
popq %rbx
retq
movq 0x2f1b0a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19ebab(%rip), %rsi    # 0x2e5013
leaq 0x1ed5a8(%rip), %rdx    # 0x333a17
leaq 0x1fcba6(%rip), %rcx    # 0x34301c
leaq 0x1fcb83(%rip), %r8     # 0x343000
pushq $0x56
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-sass.c
// Function: BWTSASSCreateReader
static SeqDataReader
BWTSASSCreateReader(SASeqSrc *src, enum sfxDataRequest rtype)
{
  struct seqDataReader reader = { NULL, NULL};
  BWTSASeqSrc *bwtSASeqSrc;
  gt_assert(src);
  bwtSASeqSrc = SASS2BWTSASS(src);
  switch (rtype)
  {
  case SFX_REQUEST_SUFTAB:
    reader = BWTSASSMakeSufTabReader(bwtSASeqSrc,
                                     BWTSeqSASSAddReaderState(bwtSASeqSrc));
    break;
  case SFX_REQUEST_BWTTAB:
    reader = BWTSASSMakeBWTReader(bwtSASeqSrc,
                                  BWTSeqSASSAddReaderState(bwtSASeqSrc));
    break;
  default:
    fprintf(stderr, "error: unimplemented request: %d, %s: %d!\n", rtype,
            __FILE__, __LINE__);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
  return reader;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1464b9
movl %esi, %edx
cmpl $0x1, %esi
je 0x1464a8
cmpl $0x2, %edx
jne 0x1464f1
leaq 0x32b(%rip), %rbx       # 0x1467d1
jmp 0x1464af
leaq 0x216(%rip), %rbx       # 0x1466c5
callq 0x146654
movq %rbx, %rdx
popq %rbx
retq
movq 0x2f1aa8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19eb49(%rip), %rsi    # 0x2e5013
leaq 0x1b7d74(%rip), %rdx    # 0x2fe245
leaq 0x1fcbe9(%rip), %rcx    # 0x3430c1
leaq 0x1fcb21(%rip), %r8     # 0x343000
movl $0xd1, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2f1a70(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1fcbd3(%rip), %rsi    # 0x3430d5
leaq 0x1fcaf7(%rip), %rcx    # 0x343000
movl $0xdf, %r8d
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-sass.c
// Function: gt_deleteBWTSeqSASS
static void
gt_deleteBWTSeqSASS(struct SASeqSrc *baseClass)
{
  destructSASeqSrc(baseClass);
  ListDo(BWTSeqReaderState, SASS2BWTSASS(baseClass)->readerStateList,
         gt_free(p));
  gt_free(SASS2BWTSASS(baseClass));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x48(%rdi), %rdi
testq %rdi, %rdi
je 0x146549
callq 0x149458
leaq 0xb0(%rbx), %rdi
callq 0x1495ef
leaq 0x50(%rbx), %rdi
callq 0x149718
movq 0xd0(%rbx), %rdi
leaq 0x1fca94(%rip), %r14    # 0x343000
pushq $0x4b
popq %rbp
testq %rdi, %rdi
je 0x146586
movq (%rdi), %r15
movq %r14, %rsi
movl %ebp, %edx
callq 0x936f9
movq %r15, %rdi
jmp 0x14656f
leaq 0x1fca73(%rip), %rsi    # 0x343000
pushq $0x4c
popq %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x936f9
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-sass.c
// Function: BWTSASSNewMRAEnc
static MRAEnc *
BWTSASSNewMRAEnc(const SASeqSrc *src)
{
  const BWTSASeqSrc *bwtSASeqSrc;
  gt_assert(src);
  bwtSASeqSrc = constSASS2BWTSASS(src);
  return gt_MRAEncCopy(EISGetAlphabet(BWTSeqGetEncIdxSeq(bwtSASeqSrc->bwtSeq)));
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x1465c6
movq 0xc0(%rdi), %rax
testq %rax, %rax
je 0x1465f0
movq (%rax), %rax
testq %rax, %rax
je 0x14661e
movq 0x8(%rax), %rdi
popq %rax
jmp 0x148e8c
movq 0x2f199b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19ea3c(%rip), %rsi    # 0x2e5013
leaq 0x1b7c67(%rip), %rdx    # 0x2fe245
leaq 0x1fcab8(%rip), %rcx    # 0x34309d
leaq 0x1fca14(%rip), %r8     # 0x343000
pushq $0x5f
jmp 0x146646
movq 0x2f1971(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19ea12(%rip), %rsi    # 0x2e5013
leaq 0x1fcc6f(%rip), %rdx    # 0x343277
leaq 0x1fca9f(%rip), %rcx    # 0x3430ae
leaq 0x1fc051(%rip), %r8     # 0x342667
movl $0x102, %r9d            # imm = 0x102
jmp 0x146648
movq 0x2f1943(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19e9e4(%rip), %rsi    # 0x2e5013
leaq 0x1acac4(%rip), %rdx    # 0x2f30fa
leaq 0x1fc225(%rip), %rcx    # 0x342862
leaq 0x1fc0a0(%rip), %r8     # 0x3426e4
pushq $0x23
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-sass.c
// Function: BWTSeqSASSAddReaderState
static BWTSeqReaderState *
BWTSeqSASSAddReaderState(BWTSASeqSrc *bwtSASeqSrc)
{
  BWTSeqReaderState *newReader = gt_malloc(sizeof (*newReader));
  gt_assert(bwtSASeqSrc);
  newReader->backLink = bwtSASeqSrc;
  newReader->nextReadPos = 0;
  newReader->next = bwtSASeqSrc->readerStateList;
  bwtSASeqSrc->readerStateList = newReader;
  return newReader;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x1fc9a1(%rip), %rsi    # 0x343000
pushq $0x18
popq %rdi
movl $0xc3, %edx
callq 0x93160
testq %rbx, %rbx
je 0x14668d
movq %rbx, 0x8(%rax)
andq $0x0, 0x10(%rax)
movq 0xd0(%rbx), %rcx
movq %rcx, (%rax)
movq %rax, 0xd0(%rbx)
popq %rbx
retq
movq 0x2f18d4(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19e975(%rip), %rsi    # 0x2e5013
leaq 0x1fca6d(%rip), %rdx    # 0x343112
leaq 0x1fca72(%rip), %rcx    # 0x34311e
leaq 0x1fc94d(%rip), %r8     # 0x343000
movl $0xc4, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-sass.c
// Function: BWTSASSReadSufTab
static size_t
BWTSASSReadSufTab(SeqDataSrc src, void *dest, size_t len)
{
  const BWTSeq *bwtSeq;
  struct extBitsRetrieval extBits;
  gt_assert(src);
  initExtBitsRetrieval(&extBits);
  bwtSeq = ((BWTSeqReaderState *)src)->backLink->bwtSeq;
  size_t i;
  GtUword pos = ((BWTSeqReaderState *)src)->nextReadPos;
  for (i = 0; i < len; ++i)
    ((GtUword *)dest)[i] = gt_BWTSeqLocateMatch(bwtSeq,
                                                      pos + i,
                                                      &extBits);
  ((BWTSeqReaderState *)src)->nextReadPos = pos + len;
  destructExtBitsRetrieval(&extBits);
  return len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
testq %rdi, %rdi
je 0x146799
movq %rdx, %rbx
movq %rsi, %r15
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r12
movaps %xmm0, 0x20(%r12)
movaps %xmm0, 0x10(%r12)
movaps %xmm0, (%r12)
andq $0x0, 0x30(%r12)
movq 0x8(%rdi), %rax
movq %rdi, 0x8(%rsp)
movq 0x10(%rdi), %rbp
movq 0xc0(%rax), %r13
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x146735
leaq (%r14,%rbp), %rsi
movq %r13, %rdi
movq %r12, %rdx
callq 0x1457be
movq %rax, (%r15,%r14,8)
incq %r14
jmp 0x146718
addq %rbx, %rbp
movq 0x8(%rsp), %rax
movq %rbp, 0x10(%rax)
movl 0x40(%rsp), %eax
testb $0x1, %al
je 0x146768
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x146768
leaq 0x1fbf8a(%rip), %rsi    # 0x3426e4
movl $0x87, %edx
callq 0x936f9
movl 0x40(%rsp), %eax
testb $0x4, %al
je 0x146787
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x146787
leaq 0x1fbf67(%rip), %rsi    # 0x3426e4
movl $0x89, %edx
callq 0x936f9
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2f17c8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19e869(%rip), %rsi    # 0x2e5013
leaq 0x1b7a94(%rip), %rdx    # 0x2fe245
leaq 0x1fc948(%rip), %rcx    # 0x343100
leaq 0x1fc841(%rip), %r8     # 0x343000
movl $0x94, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-sass.c
// Function: BWTSASSReadBWT
static size_t
BWTSASSReadBWT(SeqDataSrc src, void *dest, size_t len)
{
  const BWTSeq *bwtSeq;
  gt_assert(src);
  bwtSeq = ((BWTSeqReaderState *)src)->backLink->bwtSeq;
  size_t i;
  GtUword pos = ((BWTSeqReaderState *)src)->nextReadPos;
  for (i = 0; i < len; ++i)
    ((Symbol *)dest)[i] = BWTSeqGetSym(bwtSeq, pos + i);
  ((BWTSeqReaderState *)src)->nextReadPos = pos + len;
  return len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1468ce
movq %rdx, %rbx
movq %rsi, %r15
movq 0x8(%rdi), %rax
movq %rdi, (%rsp)
movq 0x10(%rdi), %r12
movq 0xc0(%rax), %r13
xorl %ebp, %ebp
cmpq %rbp, %rbx
je 0x146848
testq %r13, %r13
je 0x146865
movq (%r13), %rdi
testq %rdi, %rdi
je 0x146898
movq 0x18(%r13), %rdx
testq %rdx, %rdx
je 0x146898
leaq (%r12,%rbp), %rsi
movq (%rdi), %rax
movq 0x8(%rdi), %r14
callq *0x30(%rax)
cmpl $0x1, (%r14)
jne 0x146893
movzbl %al, %eax
movb 0x118(%r14,%rax), %al
movb %al, (%r15,%rbp)
incq %rbp
jmp 0x146800
addq %rbx, %r12
movq (%rsp), %rax
movq %r12, 0x10(%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2f16fc(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19e79d(%rip), %rsi    # 0x2e5013
leaq 0x1fc9fa(%rip), %rdx    # 0x343277
leaq 0x1fc8c2(%rip), %rcx    # 0x343146
leaq 0x1fbddc(%rip), %r8     # 0x342667
movl $0x109, %r9d            # imm = 0x109
jmp 0x1468c2
callq 0x17390
movq 0x2f16c9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19e76a(%rip), %rsi    # 0x2e5013
leaq 0x1fbe13(%rip), %rdx    # 0x3426c3
leaq 0x1fbff3(%rip), %rcx    # 0x3428aa
leaq 0x1fbe26(%rip), %r8     # 0x3426e4
pushq $0x2a
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2f1693(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19e734(%rip), %rsi    # 0x2e5013
leaq 0x1b795f(%rip), %rdx    # 0x2fe245
leaq 0x1fc84a(%rip), %rcx    # 0x343137
leaq 0x1fc70c(%rip), %r8     # 0x343000
movl $0xae, %r9d
jmp 0x1468c2
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq.c
// Function: gt_deleteBWTSeq
void
gt_deleteBWTSeq(BWTSeq *bwtSeq)
{
  gt_MRAEncDelete(bwtSeq->alphabet);
  deleteEISHint(bwtSeq->seqIdx, bwtSeq->hint);
  gt_deleteEncIdxSeq(bwtSeq->seqIdx);
  gt_free(bwtSeq);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x149458
movq (%rbx), %rdi
movq 0x18(%rbx), %rsi
movq (%rdi), %rax
callq *0x40(%rax)
movq (%rbx), %rdi
callq 0x1483fc
leaq 0x1fc59e(%rip), %rsi    # 0x343160
movq %rbx, %rdi
movl $0x91, %edx
popq %rbx
jmp 0x936f9
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq.c
// Function: gt_packedindexuniqueforward
GtUword gt_packedindexuniqueforward(const BWTSeq *bwtSeq,
                                          const GtUchar *qstart,
                                          const GtUchar *qend)
{
  GtUchar cc;
  const GtUchar *qptr;
  struct matchBound bwtbound;
  GtUwordPair seqpospair;
  Symbol curSym;
  const MRAEnc *alphabet;

  gt_assert(bwtSeq && qstart);
  alphabet = BWTSeqGetAlphabet(bwtSeq);
  qptr = qstart;
  cc = *qptr++;
#undef SKDEBUG
#ifdef SKDEBUG
  printf("# start cc=%u\n",cc);
#endif
  if (GT_ISSPECIAL(cc))
  {
    return 0;
  }
  curSym = MRAEncMapSymbol(alphabet, cc);
  bwtbound.start = bwtSeq->count[curSym];
  bwtbound.end = bwtSeq->count[curSym+1];
#ifdef SKDEBUG
  printf("# bounds="GT_WU","GT_WU" = "GT_WU""
          "occurrences\n",
         bwtbound.start,
         bwtbound.end,
         bwtbound.end - bwtbound.start);
#endif
  while (qptr < qend && bwtbound.start + 1 < bwtbound.end)
  {
    cc = *qptr;
#ifdef SKDEBUG
    printf("# cc=%u\n",cc);
#endif
    if (GT_ISSPECIAL (cc))
    {
      return 0;
    }
    curSym = MRAEncMapSymbol(alphabet, cc);
    seqpospair = BWTSeqTransformedPosPairOcc(bwtSeq, curSym,
                                             bwtbound.start,bwtbound.end);
    bwtbound.start = bwtSeq->count[curSym] + seqpospair.a;
    bwtbound.end = bwtSeq->count[curSym] + seqpospair.b;
#ifdef SKDEBUG
    printf("# bounds="GT_WU","GT_WU" = "GT_WU""
            "occurrences\n",
           bwtbound.start,
           bwtbound.end,
           bwtbound.end - bwtbound.start);
#endif
    qptr++;
  }
  if (bwtbound.start + 1 == bwtbound.end)
  {
    return (GtUword) (qptr - qstart);
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
testq %rdi, %rdi
je 0x146c9a
movq %rsi, %r14
testq %rsi, %rsi
je 0x146c9a
movb (%r14), %al
cmpb $-0x3, %al
ja 0x146c85
movq %rdi, %r15
movq 0x8(%rdi), %rdi
movzbl %al, %esi
movq %rdi, 0x8(%rsp)
callq 0x146cd2
movq 0x38(%r15), %rcx
movzbl %al, %eax
movq (%rcx,%rax,8), %rbx
movq 0x8(%rcx,%rax,8), %rbp
pushq $0x1
popq %r12
leaq (%r14,%r12), %rax
leaq 0x1(%rbx), %rcx
cmpq 0x10(%rsp), %rax
jae 0x146c80
cmpq %rbp, %rcx
jae 0x146c80
movb (%rax), %al
cmpb $-0x3, %al
ja 0x146c85
movzbl %al, %esi
movq 0x8(%rsp), %rdi
callq 0x146cd2
movzbl %al, %r13d
movq %r15, %rdi
movl %r13d, %esi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x146cf8
movq %rax, %rbx
movq %rdx, %rbp
movq 0x38(%r15), %rax
movq (%rax,%r13,8), %rax
addq %rax, %rbx
addq %rax, %rbp
incq %r12
jmp 0x146c2b
cmpq %rbp, %rcx
je 0x146c88
xorl %r12d, %r12d
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2f12c7(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19e368(%rip), %rsi    # 0x2e5013
leaq 0x1fc4c5(%rip), %rdx    # 0x343177
leaq 0x1fc4cf(%rip), %rcx    # 0x343188
leaq 0x1fc4a0(%rip), %r8     # 0x343160
movl $0xec, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq-siop.h
// Function: BWTSeqTransformedPosPairOcc
static inline GtUwordPair
BWTSeqTransformedPosPairOcc(const BWTSeq *bwtSeq, Symbol tSym,
                            GtUword posA, GtUword posB)
{
  gt_assert(bwtSeq);
  /* two counts must be treated specially:
   * 1. for the symbols mapped to the same value as the terminator
   * 2. for queries of the terminator itself */
  if (tSym < bwtSeq->bwtTerminatorFallback)
    return EISSymTransformedPosPairRank(bwtSeq->seqIdx, tSym, posA, posB,
                                        bwtSeq->hint);
  else if (tSym > bwtSeq->bwtTerminatorFallback
           && tSym != bwtSeq->alphabetSize - 1)
    return EISSymTransformedPosPairRank(bwtSeq->seqIdx, tSym, posA, posB,
                                        bwtSeq->hint);
  else if (tSym == bwtSeq->bwtTerminatorFallback)
    return EISSymTransformedPosPairRank(bwtSeq->seqIdx, tSym, posA, posB,
                                        bwtSeq->hint);
/*       - ((pos > BWTSeqTerminatorPos(bwtSeq))?1:0); */
  else /* tSym == not flattened terminator == alphabetSize - 1 */
  {
    GtUwordPair occ;
    gt_assert(tSym == bwtSeq->alphabetSize - 1);
    occ.a = (posA > BWTSeqTerminatorPos(bwtSeq))?1:0;
    occ.b = (posB > BWTSeqTerminatorPos(bwtSeq))?1:0;
    return occ;
  }
}

// Assembly:
pushq %rax
movl %esi, %eax
movb 0x24(%rdi), %r8b
cmpb %al, %r8b
jbe 0x146d13
movq (%rdi), %r9
movq 0x18(%rdi), %r8
movzbl %al, %esi
movq %r9, %rdi
jmp 0x146d33
movzbl %al, %esi
jae 0x146d24
movq 0x10(%rdi), %r9
decq %r9
cmpq %rsi, %r9
jne 0x146d29
cmpb %al, %r8b
jne 0x146d3a
movq (%rdi), %rax
movq 0x18(%rdi), %r8
movq %rax, %rdi
callq 0x147de6
popq %rcx
retq
movq 0x10(%rdi), %rax
decq %rax
cmpq %rsi, %rax
jne 0x146d5c
movq 0x30(%rdi), %rsi
xorl %eax, %eax
cmpq %rdx, %rsi
setb %al
xorl %edx, %edx
cmpq %rcx, %rsi
setb %dl
jmp 0x146d38
movq 0x2f1205(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19e2a6(%rip), %rsi    # 0x2e5013
leaq 0x1fc8e2(%rip), %rdx    # 0x343656
leaq 0x1fc8bf(%rip), %rcx    # 0x34363a
leaq 0x1fb8e5(%rip), %r8     # 0x342667
pushq $0x5d
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq.c
// Function: gt_BWTSeqMatchCount
GtUword
gt_BWTSeqMatchCount(const BWTSeq *bwtSeq, const Symbol *query, size_t queryLen,
                 bool forward)
{
  struct matchBound match;
  gt_assert(bwtSeq && query);
  getMatchBound(bwtSeq, query, queryLen, &match, forward);
  if (match.end < match.start)
    return 0;
  else
    return match.end - match.start;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x146ee2
testq %rsi, %rsi
je 0x146ee2
movzbl %cl, %r8d
movq %rsp, %rbx
movq %rbx, %rcx
callq 0x146f1a
movq 0x8(%rbx), %rcx
xorl %eax, %eax
subq (%rbx), %rcx
cmovaeq %rcx, %rax
addq $0x10, %rsp
popq %rbx
retq
movq 0x2f107f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19e120(%rip), %rsi    # 0x2e5013
leaq 0x1fc304(%rip), %rdx    # 0x3431fe
leaq 0x1fc2e1(%rip), %rcx    # 0x3431e2
leaq 0x1fc258(%rip), %r8     # 0x343160
movl $0x173, %r9d            # imm = 0x173
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq.c
// Function: gt_initEMIterator
bool
gt_initEMIterator(BWTSeqExactMatchesIterator *iter, const BWTSeq *bwtSeq,
               const Symbol *query, size_t queryLen, bool forward)
{
  gt_assert(iter && bwtSeq && query);
  if (!bwtSeq->locateSampleInterval)
  {
    fputs("Index does not contain locate information.\n"
          "Localization of matches impossible!", stderr);
    return false;
  }
  getMatchBound(bwtSeq, query, queryLen, &iter->bounds, forward);
  iter->nextMatchBWTPos = iter->bounds.start;
  initExtBitsRetrieval(&iter->extBits);
  return true;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1471ca
testq %rsi, %rsi
je 0x1471ca
testq %rdx, %rdx
je 0x1471ca
movl 0x20(%rsi), %ebp
testl %ebp, %ebp
je 0x1471b2
movq %rdi, %rbx
movzbl %r8b, %r8d
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movq %rbx, %rcx
callq 0x146f1a
movq (%rbx), %rax
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbx)
movups %xmm0, 0x28(%rbx)
movups %xmm0, 0x38(%rbx)
andq $0x0, 0x48(%rbx)
testl %ebp, %ebp
setne %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x2f0daf(%rip), %rax    # 0x437f68
movq (%rax), %rsi
leaq 0x1fc05d(%rip), %rdi    # 0x343220
callq 0x17870
jmp 0x1471a6
movq 0x2f0d97(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19de38(%rip), %rsi    # 0x2e5013
leaq 0x1fc014(%rip), %rdx    # 0x3431f6
leaq 0x1fc025(%rip), %rcx    # 0x34320e
leaq 0x1fbf70(%rip), %r8     # 0x343160
movl $0x17f, %r9d            # imm = 0x17F
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq.c
// Function: gt_initEmptyEMIterator
bool
gt_initEmptyEMIterator(BWTSeqExactMatchesIterator *iter, const BWTSeq *bwtSeq)
{
  gt_assert(iter && bwtSeq);
  if (!bwtSeq->locateSampleInterval)
  {
    fputs("Index does not contain locate information.\n"
          "Localization of matches impossible!", stderr);
    return false;
  }
  iter->bounds.start = iter->bounds.end = iter->nextMatchBWTPos = 0;
  initExtBitsRetrieval(&iter->extBits);
  return true;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x147249
testq %rsi, %rsi
je 0x147249
movl 0x20(%rsi), %ebx
testl %ebx, %ebx
je 0x147231
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
testl %ebx, %ebx
setne %al
popq %rbx
retq
movq 0x2f0d30(%rip), %rax    # 0x437f68
movq (%rax), %rsi
leaq 0x1fbfde(%rip), %rdi    # 0x343220
callq 0x17870
jmp 0x14722a
movq 0x2f0d18(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19ddb9(%rip), %rsi    # 0x2e5013
leaq 0x1fc00e(%rip), %rdx    # 0x34326f
leaq 0x1fc016(%rip), %rcx    # 0x34327e
leaq 0x1fbef1(%rip), %r8     # 0x343160
movl $0x18f, %r9d            # imm = 0x18F
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq.c
// Function: gt_newEMIterator
struct BWTSeqExactMatchesIterator *
gt_newEMIterator(const BWTSeq *bwtSeq, const Symbol *query, size_t queryLen,
              bool forward)
{
  struct BWTSeqExactMatchesIterator *iter;
  gt_assert(bwtSeq && query);
  iter = gt_malloc(sizeof (*iter));
  if (gt_initEMIterator(iter, bwtSeq, query, queryLen,forward))
  {
    return iter;
  }
  gt_free(iter);
  return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x1472f1
movq %rsi, %r14
testq %rsi, %rsi
je 0x1472f1
movl %ecx, %ebp
movq %rdx, %rbx
movq %rdi, %r12
leaq 0x1fbebb(%rip), %rsi    # 0x343160
pushq $0x50
popq %rdi
movl $0x1a1, %edx            # imm = 0x1A1
callq 0x93160
movq %rax, %r15
movzbl %bpl, %r8d
movq %rax, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x14715a
testb %al, %al
jne 0x1472e5
leaq 0x1fbe8b(%rip), %rsi    # 0x343160
movq %r15, %rdi
movl $0x1a6, %edx            # imm = 0x1A6
callq 0x936f9
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x2f0c70(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19dd11(%rip), %rsi    # 0x2e5013
leaq 0x1fbef5(%rip), %rdx    # 0x3431fe
leaq 0x1fbf85(%rip), %rcx    # 0x343295
leaq 0x1fbe49(%rip), %r8     # 0x343160
movl $0x1a0, %r9d            # imm = 0x1A0
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-encidxseq-siop.h
// Function: destructExtBitsRetrieval
static inline void
destructExtBitsRetrieval(struct extBitsRetrieval *r)
{
  if ((r->flags & EBRF_PERSISTENT_CWBITS) && r->cwPart)
    gt_free(r->cwPart);
  if ((r->flags & EBRF_PERSISTENT_VARBITS) && r->varPart)
    gt_free(r->varPart);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x30(%rdi), %eax
testb $0x1, %al
je 0x147377
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x147377
leaq 0x1fb37a(%rip), %rsi    # 0x3426e4
movl $0x87, %edx
callq 0x936f9
movl 0x30(%rbx), %eax
testb $0x4, %al
je 0x147396
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x147396
leaq 0x1fb359(%rip), %rsi    # 0x3426e4
movl $0x89, %edx
popq %rbx
jmp 0x936f9
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-bwtseq.c
// Function: gt_EMINumMatchesLeft
GtUword
gt_EMINumMatchesLeft(const struct BWTSeqExactMatchesIterator *iter)
{
  gt_assert(iter);
  if (iter->nextMatchBWTPos > iter->bounds.end)
    return 0;
  else
    return iter->bounds.end - iter->bounds.start;
}

// Assembly:
testq %rdi, %rdi
je 0x14740b
movq 0x8(%rdi), %rax
cmpq %rax, 0x10(%rdi)
jbe 0x147407
xorl %eax, %eax
retq
subq (%rdi), %rax
retq
pushq %rax
movq 0x2f0b55(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19dbf6(%rip), %rsi    # 0x2e5013
leaq 0x1dbc28(%rip), %rdx    # 0x32304c
leaq 0x1fbe91(%rip), %rcx    # 0x3432bc
leaq 0x1fbd2e(%rip), %r8     # 0x343160
movl $0x1cc, %r9d            # imm = 0x1CC
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-encidxseq-siop.h
// Function: EISSymTransformedPosPairRank
static inline GtUwordPair
EISSymTransformedPosPairRank(EISeq *seq, Symbol tSym, GtUword posA,
                             GtUword posB, union EISHint *hint)
{
  if (tSym >= gt_MRAEncGetSize(EISGetAlphabet(seq)))
  {
    fprintf(stderr,"tsym="GT_WU",gt_MRAEncGetSize(EISGetAlphabet(seq)="
            GT_WU"\n", (GtUword) tSym,
            (GtUword) gt_MRAEncGetSize(EISGetAlphabet(seq)));
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
  gt_assert(tSym < gt_MRAEncGetSize(EISGetAlphabet(seq)));
  return seq->classInfo->posPairRank(seq, tSym, posA, posB, hint);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r14
callq 0x147d60
movq %rax, %rdi
callq 0x14906a
cmpw %bp, %ax
jbe 0x147e44
movq %r14, %rdi
callq 0x147d60
movq %rax, %rdi
callq 0x14906a
cmpw %bp, %ax
jbe 0x147e81
movq (%r14), %rax
movq 0x10(%rax), %rax
movzbl %bpl, %esi
movq %r14, %rdi
movq %r12, %rdx
movq %r15, %rcx
movq %rbx, %r8
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movq 0x2f011d(%rip), %rax    # 0x437f68
movq (%rax), %rbx
movzbl %bpl, %r15d
movq %r14, %rdi
callq 0x147d60
movq %rax, %rdi
callq 0x14906a
movzwl %ax, %ecx
leaq 0x1fb80b(%rip), %rsi    # 0x343677
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x2f00e0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19d181(%rip), %rsi    # 0x2e5013
leaq 0x1fa986(%rip), %rdx    # 0x34281f
leaq 0x1fb80a(%rip), %rcx    # 0x3436aa
leaq 0x1fa83d(%rip), %r8     # 0x3426e4
pushq $0x69
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-encidxseq-construct.c
// Function: gt_createEncIdxSeq
EISeq *
gt_createEncIdxSeq(const char *projectName,
                const struct seqBaseParam *params,
                size_t numExtHeaders, const uint16_t *headerIDs,
                const uint32_t *extHeaderSizes,
                headerWriteFunc *extHeaderCallbacks, void **headerCBData,
                bitInsertFunc biFunc, BitOffset cwExtBitsPerPos,
                varExtBitsEstimator biVarBits, void *cbState,
                GtLogger *verbosity, GtError *err)
{
  Suffixarray suffixArray;
  struct encIdxSeq *newSeqIdx;
  GtUword length;
  gt_assert(projectName);
  /* map and interpret index project file */
  if (streamsuffixarray(&suffixArray,
                       SARR_SUFTAB | SARR_BWTTAB, projectName, verbosity, err))
    return NULL;
  length = gt_encseq_total_length(suffixArray.encseq) + 1;
  newSeqIdx = gt_createEncIdxSeqFromSA(&suffixArray, length,
                                      projectName, params,
                                      numExtHeaders, headerIDs,
                                      extHeaderSizes, extHeaderCallbacks,
                                      headerCBData, biFunc, cwExtBitsPerPos,
                                      biVarBits, cbState, err);
  gt_freesuffixarray(&suffixArray);
  return newSeqIdx;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %r8, 0x10(%rsp)
testq %rdi, %rdi
je 0x147f8e
movq %r9, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movq 0x180(%rsp), %rbx
movq 0x178(%rsp), %rcx
leaq 0x18(%rsp), %rdi
pushq $0xa
popq %rsi
movq %rbp, %rdx
movq %rbx, %r8
callq 0x14d283
testl %eax, %eax
je 0x147f11
xorl %ebx, %ebx
jmp 0x147f79
leaq 0x18(%rsp), %rax
movq (%rax), %rdi
movq %r14, 0x8(%rsp)
movq %rax, %r14
callq 0x7055e
leaq 0x1(%rax), %rsi
movq %r14, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq %r12, %r8
movq %r15, %r9
pushq %rbx
pushq 0x178(%rsp)
pushq 0x178(%rsp)
pushq 0x178(%rsp)
pushq 0x178(%rsp)
pushq 0x178(%rsp)
pushq 0x38(%rsp)
pushq 0x48(%rsp)
callq 0x147fc4
addq $0x40, %rsp
movq %rax, %rbx
movq %r14, %rdi
callq 0x14d148
movq %rbx, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2effd3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19d074(%rip), %rsi    # 0x2e5013
leaq 0x1fa431(%rip), %rdx    # 0x3423d7
leaq 0x1fb73f(%rip), %rcx    # 0x3436ec
leaq 0x1fb74b(%rip), %r8     # 0x3436ff
pushq $0x31
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-encidxseq-construct.c
// Function: gt_createEncIdxSeqFromSA
EISeq *
gt_createEncIdxSeqFromSA(Suffixarray *sa, GtUword totalLen,
                      const char *projectName,
                      const struct seqBaseParam *params,
                      size_t numExtHeaders, const uint16_t *headerIDs,
                      const uint32_t *extHeaderSizes,
                      headerWriteFunc *extHeaderCallbacks,
                      void **headerCBData,
                      bitInsertFunc biFunc, BitOffset cwExtBitsPerPos,
                      varExtBitsEstimator biVarBits, void *cbState,
                      GtError *err)
{
  struct encIdxSeq *newSeqIdx;
  SuffixarrayFileInterface sai;
  gt_assert(sa && projectName && err);
  gt_initSuffixarrayFileInterface(&sai, totalLen, sa);
  newSeqIdx = gt_createEncIdxSeqFromSAI(
    &sai, projectName, params, numExtHeaders, headerIDs,
    extHeaderSizes, extHeaderCallbacks, headerCBData, biFunc, cwExtBitsPerPos,
    biVarBits, cbState, err);
  gt_destructSuffixarrayFileInterface(&sai);
  return newSeqIdx;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
testq %rdi, %rdi
je 0x148083
movq %rdx, %r12
testq %rdx, %rdx
je 0x148083
movq 0x158(%rsp), %rbp
testq %rbp, %rbp
je 0x148083
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdi, %rdx
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x14a055
subq $0x8, %rsp
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
movq 0x128(%rsp), %r9
pushq %rbp
pushq 0x160(%rsp)
pushq 0x160(%rsp)
pushq 0x160(%rsp)
pushq 0x160(%rsp)
pushq 0x160(%rsp)
pushq 0x160(%rsp)
callq 0x148105
addq $0x40, %rsp
movq %rax, %rbx
movq %r13, %rdi
callq 0x14a3cb
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2efede(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19cf7f(%rip), %rsi    # 0x2e5013
leaq 0x1fb688(%rip), %rdx    # 0x343723
leaq 0x1fb69a(%rip), %rcx    # 0x34373c
leaq 0x1fb656(%rip), %r8     # 0x3436ff
pushq $0x4f
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-encidxseq-construct.c
// Function: gt_createEncIdxSeqFromSAI
EISeq *
gt_createEncIdxSeqFromSAI(SuffixarrayFileInterface *sai,
                       const char *projectName,
                       const struct seqBaseParam *params,
                       size_t numExtHeaders, const uint16_t *headerIDs,
                       const uint32_t *extHeaderSizes,
                       headerWriteFunc *extHeaderCallbacks,
                       void **headerCBData,
                       bitInsertFunc biFunc, BitOffset cwExtBitsPerPos,
                       varExtBitsEstimator biVarBits, void *cbState,
                       GtError *err)
{
  gt_assert(sai && projectName && err);
  return gt_createEncIdxSeqFromSASeqSrc(
    SAI2SASS(sai), projectName, params,
    numExtHeaders, headerIDs, extHeaderSizes,
    extHeaderCallbacks, headerCBData, biFunc,
    cwExtBitsPerPos, biVarBits, cbState, err);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x1480cf
testq %rsi, %rsi
je 0x1480cf
cmpq $0x0, 0x40(%rsp)
je 0x1480cf
popq %rax
jmp 0x148105
movq 0x2efe92(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19cf33(%rip), %rsi    # 0x2e5013
leaq 0x1fb66e(%rip), %rdx    # 0x343755
leaq 0x1fb681(%rip), %rcx    # 0x34376f
leaq 0x1fb60a(%rip), %r8     # 0x3436ff
pushq $0x65
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390