LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_Viatwobitkeyvalues_reinit_without_stoppos
static void gt_Viatwobitkeyvalues_reinit_without_stoppos(
                                         GtViatwobitkeyvalues *vtk,
                                         const GtEncseq *encseq,
                                         GtReadmode readmode,
                                         GtEncseqReader *esr,
                                         GtUword pos,
                                         GtUword depth,
                                         GtUword maxdepth)
{
  if (maxdepth == 0) {
    vtk->endpos = encseq->logicaltotallength;
  }
  else {
    gt_assert(depth < maxdepth);
    vtk->endpos = pos + maxdepth;
    if (vtk->endpos > encseq->logicaltotallength) {
      vtk->endpos = encseq->logicaltotallength;
    }
  }
  vtk->pos = pos + depth;
  /* to have a defined value: */
  vtk->twobitcurrentpos = encseq->logicaltotallength;
  /* to have a defined value: */
  vtk->twobitencodingstoppos = GT_TWOBITENCODINGSTOPPOSUNDEF(encseq);
  if (vtk->pos < vtk->endpos) {
    bool fwd = GT_ISDIRREVERSE(readmode) ? false : true;

    if (esr != NULL && gt_encseq_has_twobitencoding_stoppos_support(encseq)) {
      gt_encseq_reader_reinit_with_readmode(esr, encseq, readmode, vtk->pos);
      vtk->twobitencodingstoppos = gt_getnexttwobitencodingstoppos(fwd, esr);
    }
    vtk->twobitcurrentpos
      = fwd ? vtk->pos : GT_REVERSEPOS(encseq->logicaltotallength, vtk->pos);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0xc476a
cmpq %rax, %r9
jae 0xc47ef
addq %r8, %rax
movq %rax, 0x10(%rbx)
movq 0x38(%r14), %rcx
cmpq %rcx, %rax
cmovaeq %rcx, %rax
jmp 0xc476e
movq 0x38(%r14), %rax
movq %rax, 0x10(%rbx)
addq %r8, %r9
movq %r9, (%rbx)
movq 0x38(%r14), %rax
movq %rax, 0x8(%rbx)
movzbl 0x3a8(%r14), %eax
movq 0x30(%r14,%rax,8), %rax
movq %rax, 0x18(%rbx)
cmpq 0x10(%rbx), %r9
jae 0xc47e6
movl %ebp, %r12d
andl $-0x3, %r12d
testq %r15, %r15
je 0xc47cd
movq %r14, %rdi
callq 0xc06bb
testb %al, %al
je 0xc47cd
movq (%rbx), %rcx
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0xc0212
xorl %edi, %edi
movq %r15, %rsi
callq 0xc3c5e
movq %rax, 0x18(%rbx)
cmpl $0x1, %r12d
jne 0xc47df
movq (%rbx), %rax
notq %rax
addq 0x38(%r14), %rax
jmp 0xc47e2
movq (%rbx), %rax
movq %rax, 0x8(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x2c31e
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_sequence_mapoffset
size_t gt_encseq_sequence_mapoffset(const GtEncseq *encseq)
{
  gt_assert(encseq != NULL && encseq->sat != GT_ACCESS_TYPE_UNDEFINED);
  if (gt_encseq_has_twobitencoding(encseq)) {
    return (size_t) ((unsigned char *) encseq->twobitencoding -
                     (unsigned char *) encseq->mappedptr);
  }
  else {
    if (encseq->sat == GT_ACCESS_TYPE_DIRECTACCESS) {
      return (size_t) ((unsigned char *) encseq->plainseq -
                       (unsigned char *) encseq->mappedptr);
    }
    else {
      return (size_t) ((unsigned char *) encseq->bitpackarray -
                       (unsigned char *) encseq->mappedptr);
    }
  }
}

// Assembly:
testq %rdi, %rdi
je 0xc4a4a
movl (%rdi), %eax
cmpl $0x7, %eax
je 0xc4a4a
cmpl $0x1, %eax
ja 0xc4a33
cmpb $0x0, 0x3a9(%rdi)
jne 0xc4a33
movq 0x10(%rdi), %rcx
testl %eax, %eax
je 0xc4a3f
movq 0x2a0(%rdi), %rax
jmp 0xc4a46
movq 0x280(%rdi), %rax
subq 0x10(%rdi), %rax
retq
movq 0x290(%rdi), %rax
subq %rcx, %rax
retq
pushq %rax
callq 0x2c402
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_compare_viatwobitencoding
int gt_encseq_compare_viatwobitencoding(GtCommonunits *commonunits,
                                        const GtEncseq *encseq1,
                                        const GtEncseq *encseq2,
                                        GtReadmode readmode,
                                        GtEncseqReader *esr1,
                                        GtEncseqReader *esr2,
                                        GtUword pos1,
                                        GtUword pos2,
                                        GtUword depth,
                                        GtUword maxdepth)
{
  GtViatwobitkeyvalues vtk1, vtk2;

  gt_assert(pos1 != pos2);
  gt_Viatwobitkeyvalues_reinit_without_stoppos(&vtk1, encseq1, readmode, esr1,
                                               pos1, depth, maxdepth);
  gt_Viatwobitkeyvalues_reinit_without_stoppos(&vtk2, encseq2, readmode, esr2,
                                               pos2, depth, maxdepth);
  return gt_encseq_twobitencoding_strcmp(commonunits,
                                         encseq1,
                                         encseq2,
                                         readmode,
                                         depth,
                                         maxdepth,
                                         &vtk1,
                                         &vtk2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, 0x10(%rsp)
movq 0x90(%rsp), %rax
cmpq 0x98(%rsp), %rax
je 0xc4b25
movq %r9, %rbp
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq 0xa8(%rsp), %rcx
movq 0xa0(%rsp), %r12
movq %rcx, (%rsp)
movq %rcx, %r13
leaq 0x18(%rsp), %rdi
movl %ebx, %edx
movq %r8, %rcx
movq %rax, %r8
movq %r12, %r9
callq 0xc4730
movq %r13, (%rsp)
leaq 0x38(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movl %ebx, %edx
movq %rbp, %rcx
movq 0x98(%rsp), %r8
movq %r12, %r9
callq 0xc4730
movq %r13, 0x8(%rsp)
leaq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
movq %r12, %r8
movq 0xa8(%rsp), %r9
callq 0xc480b
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2c474
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_showatstartpos
void gt_encseq_showatstartpos(FILE *fp,
                              bool fwd,
                              bool complement,
                              const GtEncseq *encseq,
                              GtUword startpos)
{
  GtUword pos, endpos;
  GtUchar buffer[GT_UNITSIN2BITENC];
  gt_assert(fp != NULL);
  /* scan-build was complaining about uninitialized values */
  memset(buffer, GT_UNDEF_UCHAR, GT_UNITSIN2BITENC);

  fprintf(fp, "          0123456789012345");
  if (GT_UNITSIN2BITENC == 32) {
    fprintf(fp, "6789012345678901");
  }
  fprintf(fp, "\nsequence=\"");
  if (fwd) {
    endpos = GT_MIN(startpos + GT_UNITSIN2BITENC - 1, encseq->totallength-1);
    gt_encseq_extract_encoded(encseq, buffer, startpos, endpos);
    for (pos=0; pos < endpos - startpos + 1; pos++) {
      showbufchar(fp, complement, buffer[pos]);
    }
  }
  else {
    if (startpos > (GtUword) (GT_UNITSIN2BITENC-1)) {
      endpos = startpos - (GT_UNITSIN2BITENC-1);
    }
    else {
      endpos = 0;
    }
    gt_encseq_extract_encoded(encseq, buffer, endpos, startpos);
    for (pos=0; pos < startpos - endpos + 1; pos++) {
      showbufchar(fp, complement, buffer[pos]);
    }
  }
  fprintf(fp, "\"\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
testq %rdi, %rdi
je 0xc4c66
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movl %esi, %r12d
movq %rdi, %rbx
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x10(%rsp)
movdqa %xmm0, (%rsp)
leaq 0x3f297(%rip), %rdi     # 0x103dfa
movl $0x1a, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0xbcb0
leaq 0x3f299(%rip), %rdi     # 0x103e15
movl $0x10, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0xbcb0
leaq 0x3f291(%rip), %rdi     # 0x103e26
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0xbcb0
testb %r12b, %r12b
je 0xc4bfb
leaq 0x1f(%r14), %rax
movq 0x30(%r15), %r12
decq %r12
cmpq %r12, %rax
cmovbq %rax, %r12
movq %rsp, %rsi
movq %r15, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0xc0464
subq %r14, %r12
cmpq $-0x1, %r12
je 0xc4c40
incq %r12
xorl %r14d, %r14d
movzbl %bpl, %ebp
movzbl (%rsp,%r14), %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xc4c6b
incq %r14
cmpq %r14, %r12
jne 0xc4be2
jmp 0xc4c40
xorl %r12d, %r12d
movq %r14, %rax
subq $0x1f, %rax
cmovaeq %rax, %r12
movq %rsp, %rsi
movq %r15, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0xc0464
incq %r14
subq %r12, %r14
je 0xc4c40
xorl %r15d, %r15d
movzbl %bpl, %ebp
movzbl (%rsp,%r15), %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0xc4c6b
incq %r15
cmpq %r15, %r14
jne 0xc4c29
leaq 0x3cd4e(%rip), %rdi     # 0x101995
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0xbcb0
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x2c4ad
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: showbufchar
static void showbufchar(FILE *fp, bool complement, GtUchar cc)
{
  if (cc == (GtUchar) GT_WILDCARD) {
    fprintf(fp, "$");
  }
  else {
    if (cc == (GtUchar) GT_SEPARATOR) {
      fprintf(fp, "#");
    }
    else {
      if (complement) {
        cc = GT_COMPLEMENTBASE(cc);
      }
      gt_assert(cc < (GtUchar) 4);
      fprintf(fp, "%c", "acgt"[cc]);
    }
  }
}

// Assembly:
movq %rdi, %rax
cmpl $0xfe, %edx
je 0xc4c85
cmpl $0xff, %edx
jne 0xc4c8c
movl $0x23, %edi
jmp 0xc4caf
movl $0x24, %edi
jmp 0xc4caf
movb $0x3, %cl
subb %dl, %cl
movzbl %cl, %edi
movzbl %dl, %ecx
testb %sil, %sil
cmovnel %edi, %ecx
cmpb $0x4, %cl
jae 0xc4cb7
movzbl %cl, %ecx
leaq 0x3c3da(%rip), %rdx     # 0x101085
movsbl (%rcx,%rdx), %edi
movq %rax, %rsi
jmp 0xb7d0
pushq %rax
callq 0x2c4e6
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_showatstartposwithdepth
void gt_encseq_showatstartposwithdepth(FILE *fp,
                                       const GtEncseq *encseq,
                                       GtReadmode readmode,
                                       GtUword start,
                                       GtUword depth)
{
  GtUword idx, end, totallength;
  const GtUword maxshow = 30UL;
  GtUchar cc;
  const GtUchar *characters;

  totallength = encseq->logicaltotallength;
  characters = gt_alphabet_characters(gt_encseq_alphabet(encseq));
  if (depth == 0) {
    end = GT_MIN(start + maxshow, totallength);
  }
  else {
    end = GT_MIN(start + maxshow, GT_MIN(totallength, start+depth));
  }
  for (idx = start; idx <= end; idx++) {
    if (idx == totallength) {
      (void) putc('~', fp);
      break;
    }
    cc = gt_encseq_get_encoded_char(encseq, idx, readmode);
    if (GT_ISSPECIAL(cc)) {
      (void) putc('~', fp);
      break;
    }
    (void) putc((int) characters[(int) cc], fp);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbp
movq %rcx, %rbx
movl %edx, 0x4(%rsp)
movq %rsi, %r15
movq %rdi, %r14
movq 0x38(%rsi), %r13
movq 0x220(%rsi), %rdi
callq 0xb96d7
movq %rax, %r12
movq %rbp, %rcx
addq %rbx, %rbp
cmpq %rbp, %r13
cmovbq %r13, %rbp
leaq 0x1e(%rbx), %rax
testq %rcx, %rcx
cmoveq %r13, %rbp
cmpq %rbp, %rax
cmovbq %rax, %rbp
cmpq %rbx, %rbp
jb 0xc4d3f
cmpq %rbx, %r13
je 0xc4d4e
movq %r15, %rdi
movq %rbx, %rsi
movl 0x4(%rsp), %edx
callq 0xbef7c
cmpb $-0x3, %al
ja 0xc4d4e
movzbl %al, %eax
movzbl (%r12,%rax), %edi
movq %r14, %rsi
callq 0xbc90
incq %rbx
cmpq %rbp, %rbx
jbe 0xc4d0f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x7e, %edi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbc90
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_extractprefixcode
GtCodetype gt_encseq_extractprefixcode(unsigned int *unitsnotspecial,
                                       const GtEncseq *encseq,
                                       const GtCodetype *filltable,
                                       GtReadmode readmode,
                                       GtEncseqReader *esr,
                                       const GtCodetype **multimappower,
                                       GtUword frompos,
                                       unsigned int prefixlength)
{
  GtUword pos, twobitencodingstoppos;
  GtCodetype code = 0;
  GtUchar cc;

  gt_assert(prefixlength > 0);
  gt_encseq_reader_reinit_with_readmode(esr, encseq, readmode, frompos);
  if (frompos + prefixlength - 1 < encseq->logicaltotallength)
    twobitencodingstoppos = frompos + prefixlength;
  else
    twobitencodingstoppos = encseq->logicaltotallength;

  *unitsnotspecial = 0;
  for (pos = frompos; pos < twobitencodingstoppos; pos++) {
    cc = gt_encseq_reader_next_encoded_char(esr);
    if (GT_ISNOTSPECIAL(cc)) {
      code += multimappower[*unitsnotspecial][cc];
      (*unitsnotspecial)++;
    }
    else
      break;
  }
  if (*unitsnotspecial < prefixlength)
    code += (GtCodetype) filltable[*unitsnotspecial];
  return code;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
movl 0x48(%rsp), %ebx
testl %ebx, %ebx
je 0xc4e10
movq %r9, %r15
movq %r8, %r12
movq %rsi, %r13
movq %rdi, %r14
movq 0x40(%rsp), %rbp
movq %r8, %rdi
movl %ecx, %edx
movq %rbp, %rcx
callq 0xc0212
movl %ebx, %ebx
leaq (%rbx,%rbp), %rax
decq %rax
addq %rbp, %rbx
movq 0x38(%r13), %rcx
cmpq %rcx, %rax
cmovaeq %rcx, %rbx
movl $0x0, (%r14)
xorl %r13d, %r13d
subq %rbp, %rbx
jbe 0xc4ded
movq %r12, %rdi
callq 0xbf542
cmpb $-0x3, %al
ja 0xc4ded
movl (%r14), %ecx
movq (%r15,%rcx,8), %rdx
movzbl %al, %eax
addq (%rdx,%rax,8), %r13
leal 0x1(%rcx), %eax
movl %eax, (%r14)
decq %rbx
jne 0xc4dc8
movl (%r14), %eax
cmpl 0x48(%rsp), %eax
jae 0xc4dfe
movq (%rsp), %rcx
addq (%rcx,%rax,8), %r13
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2c51f
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_relpos_seqnum_check
void gt_encseq_relpos_seqnum_check(const char *filename, int line,
                                   const GtEncseq *encseq, GtUword relpos,
                                   GtUword seqnum, GtUword position)
{
  if (encseq->sat == GT_ACCESS_TYPE_EQUALLENGTH) {
    GtUword seqnum2, relpos2;

    seqnum2 = gt_encseq_seqnum(encseq, position);
    relpos2 = position - gt_encseq_seqstartpos(encseq, seqnum2);
    if (seqnum != seqnum2) {
      fprintf(stderr,
              "file %s, line %d: pos="GT_WU", seqnum = "GT_WU" != "GT_WU" "
              " = seqnum.correct\n", filename, line, position, seqnum, seqnum2);
      exit(EXIT_FAILURE);
    }
    if (relpos != relpos2) {
      fprintf(stderr,
              "file %s, line %d: pos="GT_WU", relpos="GT_WU" != "GT_WU" "
              " = relpos.correct\n", filename, line, position,
              relpos, relpos2);
      exit(EXIT_FAILURE);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0x2, (%rdx)
jne 0xc5208
movq %r9, %rbx
movq %r8, %r12
movq %rcx, %r15
movq %rdx, %rbp
movq %rdi, %r14
movl %esi, 0x14(%rsp)
movq %rdx, %rdi
movq %r9, %rsi
callq 0xc29cc
movq %rax, %r13
movq %rbp, %rdi
movq %rax, %rsi
callq 0xc2a64
cmpq %r12, %r13
jne 0xc5217
movq %rbx, %rsi
subq %rax, %rsi
cmpq %r15, %rsi
movl 0x14(%rsp), %ecx
jne 0xc523b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8bda2(%rip), %rax     # 0x150fc0
movq (%rax), %rdi
movq %r13, (%rsp)
leaq 0x3ed5d(%rip), %rsi     # 0x103f89
movq %r14, %rdx
movl 0x14(%rsp), %ecx
movq %rbx, %r8
movq %r12, %r9
jmp 0xc5259
movq 0x8bd7e(%rip), %rax     # 0x150fc0
movq (%rax), %rdi
movq %rsi, (%rsp)
leaq 0x3ed7b(%rip), %rsi     # 0x103fcb
movq %r14, %rdx
movq %rbx, %r8
movq %r15, %r9
xorl %eax, %eax
callq 0xb8d0
movl $0x1, %edi
callq 0xb7b0
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_pairbitsum
uint64_t gt_encseq_pairbitsum(const GtEncseq *encseq)
{
  unsigned int idx, numofchars = gt_alphabet_num_of_chars(encseq->alpha);
  uint64_t pairbitsum = 0;

  for (idx = 0; idx < numofchars; idx++) {
    printf("idx=%u, add="GT_WU"\n", idx,
           encseq->headerptr.characterdistribution[idx]);
    pairbitsum += (uint64_t) encseq->headerptr.characterdistribution[idx] *
                  (uint64_t) idx;
  }
  if (encseq->sat == GT_ACCESS_TYPE_BITACCESS) {
    printf("numofseparators="GT_WU"\n", encseq->numofdbsequences - 1);
    pairbitsum += (uint64_t) (encseq->numofdbsequences - 1) *
                  (uint64_t) GT_TWOBITS_FOR_SEPARATOR;
  }
  else {
    printf("specials="GT_WU", leastprob=%u\n",
                gt_encseq_specialcharacters(encseq),
                encseq->leastprobablecharacter);
    pairbitsum += (uint64_t) gt_encseq_specialcharacters(encseq) *
                  (uint64_t) encseq->leastprobablecharacter;
  }
  return pairbitsum;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x220(%rdi), %rdi
callq 0xb96b7
testl %eax, %eax
je 0xc52ca
movl %eax, %r13d
leaq 0x3ed7b(%rip), %r14     # 0x10400b
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0xf8(%rbx), %rax
movq (%rax,%r15,8), %rdx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0xb070
movq 0xf8(%rbx), %rax
movq (%rax,%r15,8), %rax
imulq %r15, %rax
addq %rax, %r12
incq %r15
cmpq %r15, %r13
jne 0xc5296
jmp 0xc52cd
xorl %r12d, %r12d
cmpl $0x3, (%rbx)
jne 0xc52f0
movq 0x40(%rbx), %rsi
decq %rsi
leaq 0x3ed3c(%rip), %rdi     # 0x10401c
xorl %eax, %eax
callq 0xb070
movq 0x40(%rbx), %rax
decq %rax
jmp 0xc533f
movq 0x178(%rbx), %rax
cmpb $0x0, 0x3a8(%rbx)
leaq 0x1(%rax,%rax), %rsi
cmoveq %rax, %rsi
movl 0x170(%rbx), %edx
leaq 0x3ed1d(%rip), %rdi     # 0x104031
xorl %eax, %eax
callq 0xb070
movq 0x178(%rbx), %rax
leaq 0x1(,%rax,2), %rcx
cmpb $0x0, 0x3a8(%rbx)
cmoveq %rax, %rcx
movl 0x170(%rbx), %eax
imulq %rcx, %rax
addq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_check_minmax
int gt_encseq_check_minmax(const GtEncseq *encseq, GtError *err)
{
  int had_err = 0;
  GtUword i,
                min,
                max;
  gt_assert(encseq);

  min = gt_encseq_min_seq_length(encseq);
  max = gt_encseq_max_seq_length(encseq);
  for (i = 0UL; !had_err && i < gt_encseq_num_of_sequences(encseq); i++) {
    if (min > gt_encseq_seqlength(encseq, i)) {
      gt_error_set(err, "sequence "GT_WU" has length "GT_WU", but "
                        "indexed minimum is " GT_WU, i,
                        gt_encseq_seqlength(encseq, i), min);
      had_err = -1;
    }
    if (!had_err && max < gt_encseq_seqlength(encseq, i)) {
      gt_error_set(err, "sequence "GT_WU" has length "GT_WU", but "
                        "indexed maximum is " GT_WU, i,
                        gt_encseq_seqlength(encseq, i), max);
      had_err = -1;
    }
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xc5410
movq %rdi, %r14
cmpq $0x0, 0x48(%rdi)
je 0xc53ff
movq %rsi, %rbx
movq 0x3b0(%r14), %r15
movq 0x3b8(%r14), %r12
xorl %r13d, %r13d
movq %r14, %rdi
movq %r13, %rsi
callq 0xc2d57
movq %rax, %rbp
movq %r14, %rdi
movq %r13, %rsi
callq 0xc2d57
cmpq %rbp, %r15
jbe 0xc53b7
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0x3ecb8(%rip), %rsi     # 0x104064
movq %r13, %rdx
movq %rax, %rcx
movq %r15, %r8
jmp 0xc53dc
cmpq %rax, %r12
jae 0xc53ea
movq %r14, %rdi
movq %r13, %rsi
callq 0xc2d57
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0x3ecc9(%rip), %rsi     # 0x10409c
movq %r13, %rdx
movq %rax, %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xc53ef
xorl %eax, %eax
movb $0x1, %bpl
testb %bpl, %bpl
je 0xc5401
incq %r13
cmpq 0x48(%r14), %r13
jb 0xc5382
jmp 0xc5401
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2c63c
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_loader_new
GtEncseqLoader* gt_encseq_loader_new()
{
  GtEncseqLoader *el = gt_calloc((size_t) 1, sizeof (GtEncseqLoader));
  gt_encseq_loader_drop_multiseq_support(el);
  gt_encseq_loader_drop_lossless_support(el);
  gt_encseq_loader_drop_md5_support(el);
  gt_encseq_loader_drop_description_support(el);
  gt_encseq_loader_enable_autosupport(el);
  gt_encseq_loader_do_not_mirror(el);
  return el;
}

// Assembly:
pushq %rbx
leaq 0x3c5af(%rip), %rdx     # 0x102a2a
movl $0x1, %edi
movl $0x10, %esi
movl $0x2181, %ecx           # imm = 0x2181
callq 0x3601f
movq %rax, %rbx
movq %rax, %rdi
callq 0xc979e
movq %rbx, %rdi
callq 0xc97fc
movq %rbx, %rdi
callq 0xc982b
movq %rbx, %rdi
callq 0xc9771
movq %rbx, %rdi
callq 0xc97cd
movq %rbx, %rdi
callq 0xc96b6
movq %rbx, %rdi
callq 0xc96c6
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_check_specialranges
void gt_encseq_check_specialranges(const GtEncseq *encseq)
{
  GtArray *rangesforward, *rangesbackward;
  GtSpecialrangeiterator *sri;
  GtRange range;

  if (!gt_encseq_has_specialranges(encseq))
    return;
  rangesforward = gt_array_new(sizeof (GtRange));
  rangesbackward = gt_array_new(sizeof (GtRange));

  sri = gt_specialrangeiterator_new(encseq, true);
  while (gt_specialrangeiterator_next(sri, &range)) {
    gt_array_add(rangesforward, range);
  }
  gt_specialrangeiterator_delete(sri);
  sri = gt_specialrangeiterator_new(encseq, false);
  while (gt_specialrangeiterator_next(sri, &range)) {
    gt_array_add(rangesbackward, range);
  }
  gt_specialrangeiterator_delete(sri);
  gt_array_reverse(rangesbackward);
  if (!gt_array_equal(rangesforward, rangesbackward, compareGtRange))
    exit(GT_EXIT_PROGRAMMING_ERROR);
  gt_array_delete(rangesforward);
  gt_array_delete(rangesbackward);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r15
cmpb $0x1, 0x3a8(%rdi)
jne 0xc7008
cmpb $0x1, 0x28(%r15)
jne 0xc7013
cmpb $0x1, 0x28(%r15)
jne 0xc70ea
movl $0x10, %edi
callq 0x6e93c
movq %rax, %rbx
movl $0x10, %edi
callq 0x6e93c
movq %rax, %r14
movq %r15, %rdi
movl $0x1, %esi
callq 0xc215d
movq %rax, %r12
movq %rsp, %rsi
movq %rax, %rdi
callq 0xc21d5
testb %al, %al
je 0xc706e
movq %rsp, %r13
movl $0x10, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6ec0e
movq %r12, %rdi
movq %r13, %rsi
callq 0xc21d5
testb %al, %al
jne 0xc704f
movq %r12, %rdi
callq 0xc27cc
movq %r15, %rdi
xorl %esi, %esi
callq 0xc215d
movq %rax, %r15
movq %rsp, %rsi
movq %rax, %rdi
callq 0xc21d5
testb %al, %al
je 0xc70b4
movq %rsp, %r12
movl $0x10, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x6ec0e
movq %r15, %rdi
movq %r12, %rsi
callq 0xc21d5
testb %al, %al
jne 0xc7095
movq %r15, %rdi
callq 0xc27cc
movq %r14, %rdi
callq 0x6eb46
leaq 0x37(%rip), %rdx        # 0xc7102
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6ee2a
testb %al, %al
je 0xc70f8
movq %rbx, %rdi
callq 0x6f134
movq %r14, %rdi
callq 0x6f134
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl $0x2, %edi
callq 0xb7b0
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: compareGtRange
static int compareGtRange(const void *a, const void *b)
{
  const GtRange *vala, *valb;

  vala = (GtRange *) a;
  valb = (GtRange *) b;
  if (vala->start < valb->start) {
    makeerrormsg(vala, valb, "<");
    return -1;
  }
  if (vala->start > valb->start) {
    makeerrormsg(vala, valb, ">");
    return 1;
  }
  if (vala->end < valb->end) {
    makeerrormsg(vala, valb, "<");
    return -1;
  }
  if (vala->end > valb->end) {
    makeerrormsg(vala, valb, ">");
    return 1;
  }
  return 0;
}

// Assembly:
pushq %rax
movq (%rdi), %rdx
movq (%rsi), %r9
cmpq %r9, %rdx
jb 0xc7126
ja 0xc714f
movq 0x8(%rdi), %rcx
movq 0x8(%rsi), %rsi
cmpq %rsi, %rcx
jb 0xc7178
xorl %eax, %eax
cmpq %rsi, %rcx
ja 0xc71a2
popq %rcx
retq
movq 0x89e93(%rip), %rax     # 0x150fc0
movq (%rax), %rax
movq 0x8(%rdi), %rcx
movq 0x8(%rsi), %rsi
movq %rsi, (%rsp)
leaq 0x3ff63(%rip), %rsi     # 0x1070a6
leaq 0x3ff5a(%rip), %r8      # 0x1070a4
movq %rax, %rdi
jmp 0xc7194
movq 0x89e6a(%rip), %rax     # 0x150fc0
movq (%rax), %rax
movq 0x8(%rdi), %rcx
movq 0x8(%rsi), %rsi
movq %rsi, (%rsp)
leaq 0x3ff3a(%rip), %rsi     # 0x1070a6
leaq 0x30c97(%rip), %r8      # 0xf7e0a
movq %rax, %rdi
jmp 0xc71be
movq 0x89e41(%rip), %rax     # 0x150fc0
movq (%rax), %rdi
movq %rsi, (%rsp)
leaq 0x3ff19(%rip), %rsi     # 0x1070a6
leaq 0x3ff10(%rip), %r8      # 0x1070a4
xorl %eax, %eax
callq 0xb8d0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xc7124
movq 0x89e17(%rip), %rax     # 0x150fc0
movq (%rax), %rdi
movq %rsi, (%rsp)
leaq 0x3feef(%rip), %rsi     # 0x1070a6
leaq 0x30c4c(%rip), %r8      # 0xf7e0a
xorl %eax, %eax
callq 0xb8d0
movl $0x1, %eax
jmp 0xc7124
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_encoder_new
GtEncseqEncoder* gt_encseq_encoder_new()
{
  GtEncseqEncoder *ee = gt_calloc((size_t) 1, sizeof (GtEncseqEncoder));
  gt_encseq_encoder_enable_multiseq_support(ee);
  gt_encseq_encoder_enable_description_support(ee);
  gt_encseq_encoder_enable_md5_support(ee);
  gt_encseq_encoder_disable_lossless_support(ee);
  ee->esq_no_header = false;
  ee->isdna = ee->isprotein = ee->isplain = false;
  ee->sat = gt_str_new();
  ee->smapfile = gt_str_new();
  return ee;
}

// Assembly:
pushq %rbx
leaq 0x3b853(%rip), %rdx     # 0x102a2a
movl $0x1, %edi
movl $0x48, %esi
movl $0x1ffa, %ecx           # imm = 0x1FFA
callq 0x3601f
movq %rax, %rbx
movq %rax, %rdi
callq 0xc722c
movq %rbx, %rdi
callq 0xc723c
movq %rbx, %rdi
callq 0xc724f
movq %rbx, %rdi
callq 0xc725f
movl $0x0, 0x5(%rbx)
callq 0x3bfe0
movq %rax, 0x28(%rbx)
callq 0x3bfe0
movq %rax, 0x30(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_encoder_set_input_dna
void gt_encseq_encoder_set_input_dna(GtEncseqEncoder *ee)
{
  gt_assert(ee);
  ee->isdna = true;
  ee->isprotein = false;
  ee->isplain = false;
}

// Assembly:
testq %rdi, %rdi
je 0xc74a5
movw $0x1, 0x5(%rdi)
movb $0x0, 0x7(%rdi)
retq
pushq %rax
callq 0x2cf99
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_encoder_set_input_protein
void gt_encseq_encoder_set_input_protein(GtEncseqEncoder *ee)
{
  gt_assert(ee);
  ee->isdna = false;
  ee->isprotein = true;
  ee->isplain = false;
}

// Assembly:
testq %rdi, %rdi
je 0xc74bb
movw $0x100, 0x5(%rdi)       # imm = 0x100
movb $0x0, 0x7(%rdi)
retq
pushq %rax
callq 0x2cfd2
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_encoder_set_input_preencoded
void gt_encseq_encoder_set_input_preencoded(GtEncseqEncoder *ee)
{
  gt_assert(ee);
  ee->isdna = false;
  ee->isprotein = false;
  ee->isplain = true;
}

// Assembly:
testq %rdi, %rdi
je 0xc74d1
movw $0x0, 0x5(%rdi)
movb $0x1, 0x7(%rdi)
retq
pushq %rax
callq 0x2d00b
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_encoder_enable_dust
void gt_encseq_encoder_enable_dust(GtEncseqEncoder *ee, bool echo, GtUword ws,
                                   double thresh, GtUword linker)
{
  gt_assert(ee);
  ee->dust = true;
  ee->dust_echo = echo;
  ee->dust_windowsize = ws;
  ee->dust_threshold = thresh;
  ee->dust_linker = linker;
}

// Assembly:
testq %rdi, %rdi
je 0xc7512
movb $0x1, 0xa(%rdi)
movb %sil, 0xb(%rdi)
movq %rdx, 0x10(%rdi)
movsd %xmm0, 0x20(%rdi)
movq %rcx, 0x18(%rdi)
retq
pushq %rax
callq 0x2d0b6
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_encoder_use_symbolmap_file
int gt_encseq_encoder_use_symbolmap_file(GtEncseqEncoder *ee, const char *smap,
                                         GT_UNUSED GtError *err)
{
  gt_assert(ee && smap);
  if (ee->smapfile != NULL)
    gt_str_delete(ee->smapfile);
  ee->smapfile = gt_str_new_cstr(smap);
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xc7550
movq %rsi, %r14
testq %rsi, %rsi
je 0xc7550
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
testq %rdi, %rdi
je 0xc753a
callq 0x3d1eb
movq %r14, %rdi
callq 0x3c03d
movq %rax, 0x30(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x2d0ef
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_encoder_use_representation
int gt_encseq_encoder_use_representation(GtEncseqEncoder *ee, const char *sat,
                                         GtError *err)
{
  gt_assert(ee && sat);
  if (sat && strlen(sat) > 0
        && gt_encseq_access_type_get(sat) == GT_ACCESS_TYPE_UNDEFINED) {
    gt_error_set(err, "undefined access type: '%s'", sat);
    return -1;
  }
  if (ee->sat != NULL)
    gt_str_delete(ee->sat);
  ee->sat = gt_str_new_cstr(sat);
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0xc75bc
movq %rsi, %rbx
testq %rsi, %rsi
je 0xc75bc
movq %rdi, %r14
cmpb $0x0, (%rbx)
je 0xc759a
movq %rdx, %r15
movq %rbx, %rdi
callq 0xd2afa
cmpl $0x7, %eax
jne 0xc759a
leaq 0x3d18c(%rip), %rsi     # 0x104712
movq %r15, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xc75b6
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0xc75a8
callq 0x3d1eb
movq %rbx, %rdi
callq 0x3c03d
movq %rax, 0x28(%r14)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
callq 0x2d128
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_encoder_delete
void gt_encseq_encoder_delete(GtEncseqEncoder *ee)
{
  if (!ee) return;
  gt_str_delete(ee->sat);
  gt_str_delete(ee->smapfile);
  gt_free(ee);
}

// Assembly:
testq %rdi, %rdi
je 0xc75f1
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
callq 0x3d1eb
movq 0x30(%rbx), %rdi
callq 0x3d1eb
leaq 0x3b447(%rip), %rsi     # 0x102a2a
movq %rbx, %rdi
movl $0x2171, %edx           # imm = 0x2171
popq %rbx
jmp 0x362a0
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_loader_new_from_options
GtEncseqLoader* gt_encseq_loader_new_from_options(GtEncseqOptions *opts,
                                                  GT_UNUSED GtError *err)
{
  GtEncseqLoader *el = NULL;
  gt_assert(opts);

  el = gt_encseq_loader_new();
  /* set options according to option object */
  if (gt_encseq_options_lossless_value(opts))
    gt_encseq_loader_require_lossless_support(el);
  if (gt_encseq_options_md5_value(opts))
    gt_encseq_loader_require_md5_support(el);
  if (gt_encseq_options_mirrored_value(opts))
    gt_encseq_loader_mirror(el);
  return el;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xc9731
movq %rdi, %r14
callq 0xc6473
movq %rax, %rbx
movq %r14, %rdi
callq 0xd540e
testb %al, %al
je 0xc96fe
movq %rbx, %rdi
callq 0xc97ec
movq %r14, %rdi
callq 0xd5430
testb %al, %al
je 0xc9712
movq %rbx, %rdi
callq 0xc981b
movq %r14, %rdi
callq 0xd5455
testb %al, %al
je 0xc9726
movq %rbx, %rdi
callq 0xc9740
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x2db66
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_mirror
int gt_encseq_mirror(GtEncseq *encseq, GtError *err)
{
  int had_err = 0;
  gt_assert(encseq && !encseq->hasmirror);
  gt_error_check(err);
  if (!gt_alphabet_is_dna(encseq->alpha)) {
    gt_error_set(err, "mirroring can only be enabled for DNA sequences, "
                      "this encoded sequence has alphabet: %.*s",
                      gt_alphabet_num_of_chars(encseq->alpha),
                      gt_alphabet_characters(encseq->alpha));
    had_err = -1;
  }
  if (!had_err) {
    encseq->hasmirror = true;
    encseq->logicalnumofdbsequences = gt_safe_mult_ulong_check(2,
                                                     encseq->numofdbsequences,
                                                     gt_encseq_overflow_abort,
                                                     &encseq->numofdbsequences);
    encseq->logicaltotallength = gt_safe_mult_ulong_check(2,
                                                       encseq->totallength,
                                                       gt_encseq_overflow_abort,
                                                       &encseq->totallength)
                                  + 1;
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xc995f
movq %rdi, %rbx
cmpb $0x1, 0x3a8(%rdi)
je 0xc995f
movq %rsi, %r14
testq %rsi, %rsi
je 0xc98a9
movq %r14, %rdi
callq 0x3566a
testb %al, %al
jne 0xc9964
movq 0x220(%rbx), %rdi
callq 0xb9c19
movl %eax, %r15d
xorl %ebp, %ebp
testb %al, %al
jne 0xc98f3
movq 0x220(%rbx), %rdi
callq 0xb96b7
movl %eax, %ebp
movq 0x220(%rbx), %rdi
callq 0xb96d7
leaq 0x3c3c3(%rip), %rsi     # 0x105ca2
movq %r14, %rdi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testb %r15b, %r15b
je 0xc9952
movb $0x1, 0x3a8(%rbx)
leaq 0x40(%rbx), %r9
movq 0x40(%rbx), %rsi
leaq 0x3911c(%rip), %r14     # 0x102a2a
leaq 0x4098(%rip), %r15      # 0xcd9ad
movl $0x2, %edi
movq %r14, %rdx
movl $0x2595, %ecx           # imm = 0x2595
movq %r15, %r8
callq 0x7f0cb
movq %rax, 0x48(%rbx)
leaq 0x30(%rbx), %r9
movq 0x30(%rbx), %rsi
movl $0x2, %edi
movq %r14, %rdx
movl $0x2599, %ecx           # imm = 0x2599
movq %r15, %r8
callq 0x7f0cb
incq %rax
movq %rax, 0x38(%rbx)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x2dfda
callq 0x2dfa1
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_builder_new
GtEncseqBuilder* gt_encseq_builder_new(GtAlphabet *alpha)
{
  GtEncseqBuilder *eb;
  gt_assert(alpha);
  eb = gt_calloc((size_t) 1, sizeof (GtEncseqBuilder));
  eb->own = false;
  eb->alpha = gt_alphabet_ref(alpha);
  GT_INITARRAY(&eb->ssptab, GtUword);
  GT_INITARRAY(&eb->sdstab, GtUword);
  eb->destab = gt_str_new();
  eb->firstdesc = true;
  eb->firstseq = true;
  eb->minseqlen = eb->maxseqlen = GT_UNDEF_UWORD;
  return eb;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xc99de
movq %rdi, %rbx
leaq 0x390ae(%rip), %rdx     # 0x102a2a
movl $0x1, %edi
movl $0x80, %esi
movl $0x2295, %ecx           # imm = 0x2295
callq 0x3601f
movq %rax, %r14
movb $0x0, 0x68(%rax)
movq %rbx, %rdi
callq 0xb8fab
movq %rax, 0x70(%r14)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x28(%r14)
movdqu %xmm0, 0x38(%r14)
movdqu %xmm0, 0x48(%r14)
callq 0x3bfe0
movq %rax, 0x58(%r14)
movw $0x101, 0x6d(%r14)      # imm = 0x101
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x18(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x2e013
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_builder_add_multiple_encoded
void gt_encseq_builder_add_multiple_encoded(GtEncseqBuilder *eb,
                                            const GtUchar *str,
                                            GtUword strlen)
{
  GtUword idx, laststart = 0;

  for (idx = 0; idx < strlen; idx++)
  {
    if (str[idx] == GT_SEPARATOR)
    {
      gt_assert(laststart < idx);
      gt_encseq_builder_add_encoded(eb, str + laststart, idx - laststart, NULL);
      laststart = idx + 1;
    }
  }
  gt_assert(laststart < idx);
  gt_encseq_builder_add_encoded(eb, str + laststart, idx - laststart, NULL);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
testq %rdx, %rdx
je 0xca119
movq %rdx, %rbx
xorl %eax, %eax
xorl %r12d, %r12d
cmpb $-0x1, (%r14,%r12)
jne 0xca10f
cmpq %r12, %rax
jae 0xca140
leaq (%r14,%rax), %rsi
movq %r12, %rdx
subq %rax, %rdx
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xc9d1b
leaq 0x1(%r12), %rax
incq %r12
cmpq %r12, %rbx
jne 0xca0ea
jmp 0xca11d
xorl %ebx, %ebx
xorl %eax, %eax
subq %rax, %rbx
jbe 0xca145
addq %rax, %r14
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc9d1b
callq 0x2e5a4
callq 0x2e5dd
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_builder_reset
void gt_encseq_builder_reset(GtEncseqBuilder *eb)
{
  gt_assert(eb);
  /* if ownership was not transferred to new encoded sequence, clean up
     intermediate buffer */
  if (!eb->created_encseq && eb->own) {
    gt_free(eb->plainseq);
  }
  if (!eb->created_encseq) {
    GT_FREEARRAY(&eb->sdstab, GtUword);
  }
  GT_INITARRAY(&eb->sdstab, GtUword);
  GT_INITARRAY(&eb->ssptab, GtUword);
  gt_str_reset(eb->destab);
  eb->own = false;
  eb->nof_seqs = 0;
  eb->minseqlen = eb->maxseqlen = GT_UNDEF_UWORD;
  eb->seqlen = 0;
  eb->allocated = 0;
  eb->firstdesc = true;
  eb->firstseq = true;
  eb->created_encseq = false;
  eb->plainseq = NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xca20a
movq %rdi, %rbx
cmpb $0x0, 0x69(%rdi)
jne 0xca18a
cmpb $0x1, 0x68(%rbx)
jne 0xca18a
movq (%rbx), %rdi
leaq 0x388aa(%rip), %rsi     # 0x102a2a
movl $0x239f, %edx           # imm = 0x239F
callq 0x362a0
cmpb $0x0, 0x69(%rbx)
jne 0xca1bf
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0xca1bf
leaq 0x28(%rbx), %r14
leaq 0x38886(%rip), %rsi     # 0x102a2a
movl $0x23a2, %edx           # imm = 0x23A2
callq 0x362a0
pxor %xmm0, %xmm0
movdqu %xmm0, (%r14)
movq $0x0, 0x10(%r14)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x48(%rbx)
movdqu %xmm0, 0x38(%rbx)
movdqu %xmm0, 0x28(%rbx)
movq 0x58(%rbx), %rdi
callq 0x3c49c
movw $0x0, 0x68(%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x18(%rbx)
movq %rax, 0x60(%rbx)
movw $0x101, 0x6d(%rbx)      # imm = 0x101
pxor %xmm0, %xmm0
movdqu %xmm0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x2e64f
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: initcharacterdistribution
static GtUword *initcharacterdistribution(const GtAlphabet *alpha)
{
  GtUword *characterdistribution;
  unsigned int numofchars, idx;

  numofchars = gt_alphabet_num_of_chars(alpha);
  characterdistribution = gt_malloc(sizeof (*characterdistribution) *
                                    numofchars);
  for (idx=0; idx<numofchars; idx++)
    characterdistribution[idx] = 0;
  return characterdistribution;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
callq 0xb96b7
movl %eax, %ebp
movl %eax, %ebx
leaq (,%rbx,8), %rdi
leaq 0x37fee(%rip), %rsi     # 0x102a2a
movl $0x1d53, %edx           # imm = 0x1D53
callq 0x35ee2
testl %ebp, %ebp
je 0xcaa61
shlq $0x3, %rbx
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xb2f0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_builder_delete
void gt_encseq_builder_delete(GtEncseqBuilder *eb)
{
  if (!eb) return;
  gt_encseq_builder_reset(eb);
  gt_alphabet_delete(eb->alpha);
  gt_str_delete(eb->destab);
  gt_free(eb);
}

// Assembly:
testq %rdi, %rdi
je 0xcd890
pushq %rbx
movq %rdi, %rbx
callq 0xca15a
movq 0x70(%rbx), %rdi
callq 0xb9301
movq 0x58(%rbx), %rdi
callq 0x3d1eb
leaq 0x351a8(%rip), %rsi     # 0x102a2a
movq %rbx, %rdi
movl $0x252a, %edx           # imm = 0x252A
popq %rbx
jmp 0x362a0
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_effective_filelength
GtUint64 gt_encseq_effective_filelength(const GtEncseq *encseq,
                                        GtUword filenum)
{
  if (encseq->numofdbfiles == 1UL)
    return (GtUint64) encseq->totallength;
  gt_assert(encseq != NULL && encseq->headerptr.filelengthtab != NULL);
  gt_assert(filenum < encseq->numofdbfiles);
  return (GtUint64) encseq->headerptr.filelengthtab[filenum].effectivelength;
}

// Assembly:
pushq %rax
movq 0x50(%rdi), %rax
cmpq $0x1, %rax
jne 0xcd8a2
addq $0x30, %rdi
jmp 0xcd8c4
testq %rdi, %rdi
je 0xcd8c9
movq 0xf0(%rdi), %rcx
testq %rcx, %rcx
je 0xcd8c9
cmpq %rsi, %rax
jbe 0xcd8ce
shlq $0x4, %rsi
leaq (%rcx,%rsi), %rdi
addq $0x8, %rdi
movq (%rdi), %rax
popq %rcx
retq
callq 0x2e76c
callq 0x2e733
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_filenum
GtUword gt_encseq_filenum(const GtEncseq *encseq,
                                GtUword position)
{
  gt_assert(encseq->numofdbfiles == 1UL || encseq->fsptab != NULL);

  /* handle virtual coordinates */
  if (encseq->hasmirror) {
    if (position > encseq->totallength) {
      /* invert coordinates */
      position = GT_REVERSEPOS(encseq->totallength,
                               position - encseq->totallength - 1);
    }
  }
  gt_assert(position < encseq->totallength);
  return gt_encseq_sep2seqnum(encseq->fsptab,
                              encseq->numofdbfiles,
                              encseq->totallength,
                              position);
}

// Assembly:
pushq %rax
movq %rsi, %rcx
movq 0x50(%rdi), %rsi
cmpq $0x1, %rsi
je 0xcd8eb
cmpq $0x0, 0x278(%rdi)
je 0xcd921
cmpb $0x1, 0x3a8(%rdi)
jne 0xcd906
movq 0x30(%rdi), %rax
cmpq %rcx, %rax
jae 0xcd906
addq %rax, %rax
subq %rcx, %rax
movq %rax, %rcx
movq 0x30(%rdi), %rdx
cmpq %rdx, %rcx
jae 0xcd91c
movq 0x278(%rdi), %rdi
popq %rax
jmp 0xc27f4
callq 0x2e7de
callq 0x2e7a5
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_filestartpos
GtUword gt_encseq_filestartpos(const GtEncseq *encseq,
                                     GtUword filenum)
{
  gt_assert(encseq->numofdbfiles == 1UL || encseq->fsptab != NULL);
  if (filenum > 0)
    return encseq->fsptab[filenum-1] + 1;
  return 0;
}

// Assembly:
cmpq $0x1, 0x50(%rdi)
je 0xcd937
cmpq $0x0, 0x278(%rdi)
je 0xcd94f
testq %rsi, %rsi
je 0xcd94c
movq 0x278(%rdi), %rax
movq -0x8(%rax,%rsi,8), %rax
incq %rax
retq
xorl %eax, %eax
retq
pushq %rax
callq 0x2e817
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_filenum_first_seqnum
GtUword gt_encseq_filenum_first_seqnum(const GtEncseq *encseq,
                                             GtUword filenum)
{
  gt_assert(encseq->numofdbfiles == 1UL || encseq->fsptab != NULL);
  if (filenum > 0)
    return gt_encseq_seqnum(encseq, encseq->fsptab[filenum-1] + 1);
  return 0;
}

// Assembly:
cmpq $0x1, 0x50(%rdi)
je 0xcd966
cmpq $0x0, 0x278(%rdi)
je 0xcd982
testq %rsi, %rsi
je 0xcd97f
movq 0x278(%rdi), %rax
movq -0x8(%rax,%rsi,8), %rsi
incq %rsi
jmp 0xc29cc
xorl %eax, %eax
retq
pushq %rax
callq 0x2e850
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_unmirror
void gt_encseq_unmirror(GtEncseq *encseq)
{
  gt_assert(encseq && encseq->hasmirror);
  encseq->hasmirror = false;
  encseq->logicalnumofdbsequences = encseq->numofdbsequences;
  encseq->logicaltotallength = encseq->totallength;
}

// Assembly:
testq %rdi, %rdi
je 0xcd9fe
cmpb $0x0, 0x3a8(%rdi)
je 0xcd9fe
movb $0x0, 0x3a8(%rdi)
movq 0x30(%rdi), %rax
movq 0x40(%rdi), %rcx
movq %rcx, 0x48(%rdi)
movq %rax, 0x38(%rdi)
retq
pushq %rax
callq 0x2e8c2
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: gt_viautables_specialrangeiterator_next_withkind
static bool gt_viautables_specialrangeiterator_next_withkind(
                                                    GtRange *range,
                                                    GtEncseqReader *esr,
                                                    KindofSWtable kindsw)
{
  GtEncseqReaderViatablesinfo *swstate = assignSWstate(esr, kindsw);

  gt_assert(esr->encseq->accesstype_via_utables);
  if (swstate->exhausted)
    return false;
  gt_assert(swstate->hasprevious);
  *range = swstate->previousrange;
  if (swstate->hasmore)
    advancerangeGtEncseqReader(esr, kindsw);
  else
    swstate->exhausted = true;
  return true;
}

// Assembly:
pushq %rbx
xorl %eax, %eax
testl %edx, %edx
setne %cl
movq (%rsi), %r8
cmpb $0x0, 0x3a9(%r8)
je 0xce45f
movb %cl, %al
movq 0x28(%rsi,%rax,8), %rax
movb 0x3c(%rax), %bl
testb %bl, %bl
jne 0xce458
cmpb $0x0, 0x3a(%rax)
je 0xce464
movups 0x18(%rax), %xmm0
movups %xmm0, (%rdi)
cmpb $0x1, 0x39(%rax)
jne 0xce454
movq %rsi, %rdi
movl %edx, %esi
callq 0xbfe27
jmp 0xce458
movb $0x1, 0x3c(%rax)
xorb $0x1, %bl
movl %ebx, %eax
popq %rbx
retq
callq 0x2ebca
callq 0x2ec03
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq.c
// Function: fwdgetnexttwobitencodingstopposSW
static GtUword fwdgetnexttwobitencodingstopposSW(GtEncseqReader *esr,
                                      KindofSWtable kindsw)
{
  if (gt_encseq_has_specialranges(esr->encseq)) {
    GtEncseqAccessType sat = (kindsw == SWtable_ssptab)
                                ? esr->encseq->satsep
                                : esr->encseq->sat;
    switch (sat) {
      case GT_ACCESS_TYPE_UCHARTABLES:
        return fwdgetnexttwobitencodingstopposSW_uchar(esr, kindsw);
      case GT_ACCESS_TYPE_USHORTTABLES:
        return fwdgetnexttwobitencodingstopposSW_uint16(esr, kindsw);
      case GT_ACCESS_TYPE_UINT32TABLES:
        return fwdgetnexttwobitencodingstopposSW_uint32(esr, kindsw);
      default:
       fprintf(stderr, "%s(%d) undefined\n", __func__, (int) sat);
       exit(GT_EXIT_PROGRAMMING_ERROR);
    }
  }
  else
   return esr->encseq->totallength;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq (%rdi), %rax
cmpb $0x1, 0x3a8(%rax)
jne 0xce605
cmpb $0x1, 0x28(%rax)
jne 0xce60f
cmpb $0x1, 0x28(%rax)
jne 0xce758
xorl %ecx, %ecx
cmpl $0x1, %ebp
sete %cl
movl (%rax,%rcx,4), %edi
cmpl $0x6, %edi
je 0xce702
cmpl $0x5, %edi
je 0xce6a1
cmpl $0x4, %edi
jne 0xce770
xorl %ecx, %ecx
testl %ebp, %ebp
setne %dl
testq %rax, %rax
je 0xce77f
movl 0x8(%rbx), %eax
orl $0x2, %eax
cmpl $0x3, %eax
je 0xce76b
movb %dl, %cl
movq 0x28(%rbx,%rcx,8), %r14
cmpb $0x1, 0x3a(%r14)
jne 0xce755
movq 0x10(%rbx), %rcx
movq 0x18(%r14), %rax
cmpq %rax, %rcx
jb 0xce75c
movq %rcx, %rax
cmpq 0x20(%r14), %rcx
jb 0xce75c
cmpb $0x1, 0x39(%r14)
jne 0xce755
movq %rbx, %rdi
movl %ebp, %esi
callq 0xcdd1a
cmpb $0x0, 0x3a(%r14)
jne 0xce662
jmp 0xce755
xorl %ecx, %ecx
testl %ebp, %ebp
setne %dl
testq %rax, %rax
je 0xce775
movl 0x8(%rbx), %eax
orl $0x2, %eax
cmpl $0x3, %eax
je 0xce761
movb %dl, %cl
movq 0x28(%rbx,%rcx,8), %r14
cmpb $0x1, 0x3a(%r14)
jne 0xce755
movq 0x10(%rbx), %rcx
movq 0x18(%r14), %rax
cmpq %rax, %rcx
jb 0xce75c
movq %rcx, %rax
cmpq 0x20(%r14), %rcx
jb 0xce75c
cmpb $0x1, 0x39(%r14)
jne 0xce755
movq %rbx, %rdi
movl %ebp, %esi
callq 0xcded7
cmpb $0x0, 0x3a(%r14)
jne 0xce6d2
jmp 0xce755
xorl %ecx, %ecx
testl %ebp, %ebp
setne %dl
testq %rax, %rax
je 0xce77a
movl 0x8(%rbx), %eax
orl $0x2, %eax
cmpl $0x3, %eax
je 0xce766
movb %dl, %cl
movq 0x28(%rbx,%rcx,8), %r14
cmpb $0x1, 0x3a(%r14)
jne 0xce755
movq 0x10(%rbx), %rcx
movq 0x18(%r14), %rax
cmpq %rax, %rcx
jb 0xce75c
movq %rcx, %rax
cmpq 0x20(%r14), %rcx
jb 0xce75c
cmpb $0x1, 0x39(%r14)
jne 0xce755
movq %rbx, %rdi
movl %ebp, %esi
callq 0xce094
cmpb $0x0, 0x3a(%r14)
jne 0xce727
movq (%rbx), %rax
movq 0x30(%rax), %rax
popq %rbx
popq %r14
popq %rbp
retq
callq 0x2edeb
callq 0x2ed79
callq 0x2ee5d
callq 0x2eecf
callq 0x2ee24
callq 0x2edb2
callq 0x2ee96