LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/eis-voiditf.c
// Function: gt_pck_getShuStringLength
GtUword gt_pck_getShuStringLength(const FMindex *bwtSubject,
                                       const GtUchar *suffix,
                                       GtUword suffixLength)
{
  GtUwordPair occPair;
  Symbol curChar;
  const GtUchar *qptr, *qend;
  const MRAEnc *alphabet;
  GtUword start, end;

  gt_assert(bwtSubject && suffix);
  alphabet = BWTSeqGetAlphabet((const BWTSeq *) bwtSubject);

  qptr = suffix;
  qend = suffix + suffixLength;

  curChar = MRAEncMapSymbol(alphabet, *qptr);

  qptr++;
  start = ((const BWTSeq *) bwtSubject)->count[curChar];
  end = ((const BWTSeq *) bwtSubject)->count[curChar + 1];
  for (/* Nothing */; start < end && qptr < qend; qptr++)
  {
    curChar = MRAEncMapSymbol(alphabet, *qptr);
    occPair = BWTSeqTransformedPosPairOcc((const BWTSeq *) bwtSubject,
                                          curChar,
                                          start,
                                          end);
    start = ((const BWTSeq *) bwtSubject)->count[curChar] + occPair.a;
    end = ((const BWTSeq *) bwtSubject)->count[curChar] + occPair.b;
  }
  if (qptr == qend && start < end)
    return suffixLength + 1;
  else
    return qptr - suffix;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1a0779
testq %rsi, %rsi
je 0x1a0779
movq %rdi, %r15
movq 0x8(%rdi), %r14
cmpl $0x1, (%r14)
jne 0x1a076f
movq %rdx, %rbx
leaq (%rsi,%rdx), %r13
movzbl (%rsi), %eax
movzbl 0x18(%r14,%rax), %ecx
movq 0x38(%r15), %rdx
movq (%rdx,%rcx,8), %rax
movq 0x8(%rdx,%rcx,8), %rcx
movq %rsi, (%rsp)
leaq 0x1(%rsi), %rbp
cmpq %rcx, %rax
setb %dl
setae %sil
cmpq $0x2, %rbx
setl %dil
orb %sil, %dil
jne 0x1a0746
cmpl $0x1, (%r14)
jne 0x1a076f
movzbl (%rbp), %edx
movzbl 0x18(%r14,%rdx), %r12d
movb 0x24(%r15), %dl
cmpb %r12b, %dl
ja 0x1a06e7
cmpb %r12b, %dl
jae 0x1a06e2
movq 0x10(%r15), %rsi
decq %rsi
cmpq %r12, %rsi
jne 0x1a06e7
cmpb %r12b, %dl
jne 0x1a071c
movq (%r15), %rdi
movq 0x18(%r15), %r8
movl %r12d, %esi
movq %rax, %rdx
callq 0x1a098c
movq %rdx, %rcx
movq 0x38(%r15), %rdx
movq (%rdx,%r12,8), %rdx
addq %rdx, %rax
addq %rdx, %rcx
incq %rbp
cmpq %rcx, %rax
setb %dl
jae 0x1a0746
cmpq %r13, %rbp
jb 0x1a06b4
jmp 0x1a0746
movq 0x10(%r15), %rdx
decq %rdx
cmpq %r12, %rdx
jne 0x1a0774
movq 0x30(%r15), %rdx
xorl %esi, %esi
cmpq %rax, %rdx
setb %sil
xorl %edi, %edi
cmpq %rcx, %rdx
setb %dil
movq %rsi, %rax
movq %rdi, %rcx
jmp 0x1a06fc
incq %rbx
movq %rbp, %rax
subq (%rsp), %rax
testb %dl, %dl
cmoveq %rax, %rbx
cmpq %r13, %rbp
cmovneq %rax, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x173b0
callq 0x614a6
callq 0x6146d
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/eis-voiditf.c
// Function: gt_pck_getGCcontent
double gt_pck_getGCcontent(const FMindex *bwtSubject,
                           const GtAlphabet *alphabet)
{
  GtUword  c, length;
  double gc;
  const MRAEnc *FM_alphabet;
  GtUchar c_sym;

  FM_alphabet = BWTSeqGetAlphabet((const BWTSeq *) bwtSubject);

  c_sym = MRAEncMapSymbol(FM_alphabet,
                          gt_alphabet_encode(alphabet, 'c'));
  length = ((const BWTSeq *) bwtSubject)->seqIdx->seqLen;

  c = ((const BWTSeq *) bwtSubject)->count[c_sym+1] -
    ((const BWTSeq *) bwtSubject)->count[c_sym];

  gc = c * 2 / (double) (length - 2);
  return gc;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r14
movq %rsi, %rdi
movl $0x63, %esi
callq 0xd185d
cmpl $0x1, (%r14)
jne 0x1a080e
movzbl %al, %eax
movzbl 0x18(%r14,%rax), %eax
movq (%rbx), %rcx
movq 0x38(%rbx), %rdx
movq 0x10(%rcx), %rcx
movq 0x8(%rdx,%rax,8), %rsi
subq (%rdx,%rax,8), %rsi
addq %rsi, %rsi
movq %rsi, %xmm1
movq 0x1a7117(%rip), %xmm2   # 0x3478e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x1a711b(%rip), %xmm3   # 0x3478f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
addq $-0x2, %rcx
movq %rcx, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x173b0
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/eis-voiditf.c
// Function: gt_pck_get_nonspecial_count
GtUword gt_pck_get_nonspecial_count(const FMindex *index)
{
  const BWTSeq *bwtseq = (const BWTSeq *) index;

  return BWTSeqAggTransformedCount(bwtseq,
                                   MRAEncGetRangeSize(BWTSeqGetAlphabet(bwtseq),
                                     0));
}

// Assembly:
pushq %rax
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x1a083a
cmpl $0x0, 0x4(%rax)
je 0x1a083f
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpq %rax, 0x10(%rdi)
jb 0x1a0844
movq 0x38(%rdi), %rcx
movq (%rcx,%rax,8), %rax
popq %rcx
retq
callq 0x6154d
callq 0x61516
callq 0x614dd
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/eis-voiditf.c
// Function: gt_pck_special_occ_in_nonspecial_intervals
GtUword gt_pck_special_occ_in_nonspecial_intervals(const FMindex *index)
{
  const BWTSeq *bwtseq = (const BWTSeq *) index;
  GtUword count = 0,
                *rangeOccs, first_special_row;
  unsigned short idx, rangesize;

  rangesize = (unsigned short) MRAEncGetRangeSize(BWTSeqGetAlphabet(bwtseq), 1);
  rangeOccs = gt_calloc(rangesize, sizeof (GtUword));
  first_special_row = gt_pck_get_nonspecial_count(index);
  BWTSeqRangeOcc(bwtseq, 1, first_special_row, rangeOccs);
  for (idx = 0; idx < rangesize; idx++)
    count += rangeOccs[idx];
  gt_free(rangeOccs);
  return count;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x1a0964
cmpl $0x1, 0x4(%rax)
jbe 0x1a0969
movq %rdi, %r15
movq 0x10(%rax), %rax
movzwl 0x2(%rax), %ebx
leaq 0x203530(%rip), %rdx    # 0x3a3daa
movl $0x8, %esi
movq %rbx, %rdi
movl $0x245, %ecx            # imm = 0x245
callq 0x10436a
movq %rax, %r14
movq %r15, %rdi
callq 0x1a0813
testq %r14, %r14
je 0x1a096e
movq %rax, %r12
movq 0x8(%r15), %rax
cmpl $0x1, 0x4(%rax)
jbe 0x1a0973
movq (%r15), %rdi
movq 0x18(%r15), %r8
movq (%rdi), %rax
movl $0x1, %esi
movq %r12, %rdx
movq %r14, %rcx
callq *0x18(%rax)
cmpl $0x1, 0x28(%r15)
jne 0x1a0926
movq 0x8(%r15), %rcx
cmpl $0x1, (%rcx)
jne 0x1a0978
cmpl $0x1, 0x4(%rcx)
jbe 0x1a097d
movzbl 0x114(%rcx), %eax
movq 0x8(%rcx), %rcx
movzbl (%rcx), %ecx
subl %ecx, %eax
cmpq %r12, 0x30(%r15)
jae 0x1a091b
movzbl 0x24(%r15), %edx
movzwl %ax, %eax
movq $0x1, (%r14,%rax,8)
movzwl %cx, %eax
subl %eax, %edx
movzwl %dx, %eax
decq (%r14,%rax,8)
jmp 0x1a0926
movzwl %ax, %eax
movq $0x0, (%r14,%rax,8)
testq %rbx, %rbx
je 0x1a093e
xorl %eax, %eax
xorl %r15d, %r15d
addq (%r14,%rax,8), %r15
incq %rax
cmpq %rax, %rbx
jne 0x1a0930
jmp 0x1a0941
xorl %r15d, %r15d
leaq 0x203462(%rip), %rsi    # 0x3a3daa
movq %r14, %rdi
movl $0x24a, %edx            # imm = 0x24A
callq 0x1045eb
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x61660
callq 0x61584
callq 0x61629
callq 0x615bb
callq 0x173b0
callq 0x615f2
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/enum-patt.c
// Function: gt_newenumpatterniterator
Enumpatterniterator *gt_newenumpatterniterator(GtUword minpatternlen,
                                               GtUword maxpatternlen,
                                               const GtEncseq *encseq,
                                               GtError *err)
{
  Enumpatterniterator *epi = NULL;
  GtUword i;

  if (maxpatternlen < minpatternlen)
  {
    gt_error_set(err,"maxpatternlen="GT_WU" < "GT_WU"",
                    maxpatternlen,
                    minpatternlen);
    return NULL;
  }
  epi = gt_malloc(sizeof *epi);
  epi->totallength = gt_encseq_total_length(encseq);
  if (epi->totallength <= (GtUword) maxpatternlen)
  {
    gt_error_set(err,"totallength="GT_WU" <= maxpatternlen = "GT_WU"",
                    epi->totallength,
                    maxpatternlen);
    gt_free(epi);
    return NULL;
  }
  epi->patternspace = gt_malloc(sizeof *epi->patternspace * maxpatternlen);
  epi->patternstat = gt_malloc(sizeof *epi->patternstat * (maxpatternlen+1));
  for (i=0; i<=maxpatternlen; i++)
  {
    epi->patternstat[i] = 0;
  }
  epi->minpatternlen = minpatternlen;
  epi->maxpatternlen = maxpatternlen;
  epi->sampleencseq = encseq;
  epi->samplecount = 0;
  epi->alphasize = gt_alphabet_num_of_chars(
                                           gt_encseq_alphabet(encseq));
  epi->esr = NULL;
  return epi;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r13
movq %rsi, %r14
movq %rdi, %r15
cmpq %rdi, %rsi
jae 0x1a0a33
leaq 0x203607(%rip), %rsi    # 0x3a4023
xorl %ebx, %ebx
movq %r13, %rdi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0xfcb67
jmp 0x1a0afc
movq %rdx, %r12
leaq 0x2035fe(%rip), %rsi    # 0x3a403b
movl $0x48, %edi
movl $0x35, %edx
callq 0x104226
movq %rax, %rbx
movq %r12, %rdi
callq 0xe7b9c
movq %rax, 0x38(%rbx)
cmpq %r14, %rax
jbe 0x1a0acf
leaq 0x2035d4(%rip), %r13    # 0x3a403b
movq %r14, %rdi
movq %r13, %rsi
movl $0x3f, %edx
callq 0x104226
movq %rax, 0x20(%rbx)
leaq 0x8(,%r14,8), %rbp
movq %rbp, %rdi
movq %r13, %rsi
movl $0x40, %edx
callq 0x104226
movq %rax, 0x18(%rbx)
xorl %r13d, %r13d
movq %rax, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x173a0
movq %r15, (%rbx)
movq %r14, 0x8(%rbx)
movq %r12, 0x28(%rbx)
movq %r13, 0x10(%rbx)
movq %r12, %rdi
callq 0xebcd9
movq %rax, %rdi
callq 0xd11be
movl %eax, 0x30(%rbx)
movq %r13, 0x40(%rbx)
jmp 0x1a0afc
leaq 0x20357b(%rip), %rsi    # 0x3a4051
movq %r13, %rdi
movq %rax, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0xfcb67
leaq 0x20354e(%rip), %rsi    # 0x3a403b
movq %rbx, %rdi
movl $0x3c, %edx
callq 0x1045eb
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/enum-patt.c
// Function: gt_nextEnumpatterniterator
const GtUchar *gt_nextEnumpatterniterator(GtUword *patternlen,
                                       Enumpatterniterator *epi)
{
  GtUword start;
  GtUword j;
  GtUchar cc;

  if (epi->minpatternlen == epi->maxpatternlen)
  {
    *patternlen = epi->minpatternlen;
  } else
  {
    *patternlen = (GtUword) (epi->minpatternlen +
                                   (random() %
                                      (epi->maxpatternlen -
                                       epi->minpatternlen+1)));
  }
  start =
        (GtUword) (random() % (epi->totallength - *patternlen));
  gt_assert(start < (GtUword) (epi->totallength - *patternlen));
  if (epi->esr == NULL) {
    epi->esr = gt_encseq_create_reader_with_readmode(epi->sampleencseq,
                                          GT_READMODE_FORWARD,
                                          start);
  } else {
    gt_encseq_reader_reinit_with_readmode(epi->esr, epi->sampleencseq,
                                          GT_READMODE_FORWARD,
                                          start);
  }

  for (j=0; j<*patternlen; j++)
  {
    cc = gt_encseq_reader_next_encoded_char(epi->esr);
    if (GT_ISSPECIAL(cc))
    {
      cc = (GtUchar) (random() % epi->alphasize);
    }
    epi->patternspace[j] = cc;
  }
  if (epi->samplecount & 1)
  {
    reversesequenceinplace(epi->patternspace,*patternlen);
  }
  epi->samplecount++;
  epi->patternstat[*patternlen]++;
  return epi->patternspace;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %r15
cmpq 0x8(%rsi), %r15
je 0x1a0b3e
callq 0x11fe0c
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0x8(%rbx), %rcx
subq (%rbx), %rcx
incq %rcx
xorl %edx, %edx
divq %rcx
addq %rdx, %r15
movq %r15, (%r14)
callq 0x11fe0c
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0x28(%rbx), %rsi
movq 0x38(%rbx), %rcx
subq (%r14), %rcx
xorl %edx, %edx
divq %rcx
movq %rdx, %rcx
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x1a0b70
xorl %edx, %edx
callq 0xe8eed
jmp 0x1a0b81
movq %rsi, %rdi
xorl %esi, %esi
movq %rcx, %rdx
callq 0xe91b2
movq %rax, 0x40(%rbx)
cmpq $0x0, (%r14)
je 0x1a0bbd
xorl %r15d, %r15d
movq 0x40(%rbx), %rdi
callq 0xe8186
cmpb $-0x2, %al
jb 0x1a0ba8
callq 0x11fe0c
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
divl 0x30(%rbx)
movl %edx, %eax
movq 0x20(%rbx), %rcx
movb %al, (%rcx,%r15)
incq %r15
movq (%r14), %rcx
cmpq %rcx, %r15
jb 0x1a0b8a
jmp 0x1a0bbf
xorl %ecx, %ecx
movq 0x10(%rbx), %rdx
testb $0x1, %dl
je 0x1a0bf9
movq 0x20(%rbx), %rax
addq %rax, %rcx
decq %rcx
cmpq %rax, %rcx
jbe 0x1a0bf9
incq %rax
movb -0x1(%rax), %dl
movb (%rcx), %sil
movb %sil, -0x1(%rax)
movb %dl, (%rcx)
decq %rcx
leaq 0x1(%rax), %rdx
cmpq %rcx, %rax
movq %rdx, %rax
jb 0x1a0bda
movq 0x10(%rbx), %rdx
incq %rdx
movq %rdx, 0x10(%rbx)
movq 0x18(%rbx), %rax
movq (%r14), %rcx
incq (%rax,%rcx,8)
movq 0x20(%rbx), %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/enum-patt.c
// Function: gt_showPatterndistribution
void gt_showPatterndistribution(const Enumpatterniterator *epi)
{
  GtUword i;
  double addprob, probsum = 0.0;

  printf("# "GT_WU" pattern with the following length distribution:\n",
         epi->samplecount);
  for (i=epi->minpatternlen; i<=epi->maxpatternlen; i++)
  {
    if (epi->patternstat[i] > 0)
    {
      addprob = (double) epi->patternstat[i] / epi->samplecount;
      probsum += addprob;
      printf("# "GT_WU": "GT_WU" (prob=%.4f,cumulative=%.4f)\n",
             i,
             epi->patternstat[i],
             addprob,
             probsum);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
leaq 0x20344c(%rip), %rdi    # 0x3a4078
xorl %eax, %eax
callq 0x17070
movq (%rbx), %r14
movq 0x8(%rbx), %rax
cmpq %rax, %r14
ja 0x1a0cca
xorpd %xmm1, %xmm1
leaq 0x203461(%rip), %r15    # 0x3a40af
movq 0x18(%rbx), %rcx
movq (%rcx,%r14,8), %rdx
testq %rdx, %rdx
je 0x1a0cc2
movq %rdx, %xmm2
movq 0x1a6c78(%rip), %xmm4   # 0x3478e0
punpckldq %xmm4, %xmm2    # xmm2 = xmm2[0],xmm4[0],xmm2[1],xmm4[1]
movapd 0x1a6c7c(%rip), %xmm5   # 0x3478f0
subpd %xmm5, %xmm2
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
addsd %xmm2, %xmm0
movq 0x10(%rbx), %xmm3
punpckldq %xmm4, %xmm3    # xmm3 = xmm3[0],xmm4[0],xmm3[1],xmm4[1]
subpd %xmm5, %xmm3
movapd %xmm3, %xmm2
unpckhpd %xmm3, %xmm2            # xmm2 = xmm2[1],xmm3[1]
addsd %xmm3, %xmm2
divsd %xmm2, %xmm0
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movb $0x2, %al
callq 0x17070
movsd 0x8(%rsp), %xmm1
movq 0x8(%rbx), %rax
incq %r14
cmpq %rax, %r14
jbe 0x1a0c4e
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/enum-patt.c
// Function: gt_freeEnumpatterniterator
void gt_freeEnumpatterniterator(Enumpatterniterator *epi)
{
  if (!epi) return;
  gt_free(epi->patternspace);
  gt_free(epi->patternstat);
  gt_encseq_reader_delete(epi->esr);
  gt_free(epi);
}

// Assembly:
testq %rdi, %rdi
je 0x1a0d29
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
leaq 0x203350(%rip), %r14    # 0x3a403b
movq %r14, %rsi
movl $0xa4, %edx
callq 0x1045eb
movq 0x18(%rbx), %rdi
movq %r14, %rsi
movl $0xa5, %edx
callq 0x1045eb
movq 0x40(%rbx), %rdi
callq 0xe9204
movq %rbx, %rdi
movq %r14, %rsi
movl $0xa7, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1045eb
retq
nop
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-lcpintervals.c
// Function: gt_processlcpintervals
int gt_processlcpintervals(Sequentialsuffixarrayreader *ssar,
                           int (*processfunction)(void *,const Lcpinterval *),
                           void *processinfo,
                           GtLogger *logger,
                           GtError *err)
{
  Elcpstate *state;
  bool haserr = false;

  state = gt_malloc(sizeof (*state));
  state->processlcpinterval = processfunction;
  state->processinfo = processinfo;
  if (gt_depthfirstesa(ssar,
                       allocateDfsinfo_elcp,
                       freeDfsinfo_elcp,
                       state->processlcpinterval == NULL
                         ? processleafedge_elcp : NULL,
                       state->processlcpinterval == NULL
                         ? processbranchedge_elcp : NULL,
                       processcompletenode_elcp,
                       assignleftmostleaf_elcp,
                       assignrightmostleaf_elcp,
                       (Dfsstate *) state,
                       logger,
                       err) != 0)
  {
    haserr = true;
  }
  if (!haserr && state->processlcpinterval != NULL)
  {
    state->lastcompletenode.offset = 0;
    state->lastcompletenode.left = 0;
    state->lastcompletenode.right
      = gt_Sequentialsuffixarrayreader_totallength(ssar);
    if (state->processlcpinterval(state->processinfo,
                                  &state->lastcompletenode) != 0)
    {
      haserr = true;
    }
  }
  gt_free(state);
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
leaq 0x20338a(%rip), %rsi    # 0x3a40d7
movl $0x28, %edi
movl $0x8d, %edx
callq 0x104226
movq %rax, %rbx
movq %rbp, 0x18(%rax)
xorl %eax, %eax
testq %rbp, %rbp
leaq 0xd1(%rip), %rcx        # 0x1a0e40
cmovneq %rax, %rcx
movq %r13, 0x20(%rbx)
leaq 0xe5(%rip), %r8         # 0x1a0e63
cmovneq %rax, %r8
subq $0x8, %rsp
leaq 0x153(%rip), %rax       # 0x1a0ee0
leaq 0x147(%rip), %r10       # 0x1a0edb
leaq 0x7e(%rip), %rsi        # 0x1a0e19
leaq 0x8d(%rip), %rdx        # 0x1a0e2f
leaq 0xee(%rip), %r9         # 0x1a0e97
movq %r14, %rdi
pushq %r12
pushq %r15
pushq %rbx
pushq %rax
pushq %r10
callq 0x310db0
addq $0x30, %rsp
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x1a0df4
cmpq $0x0, 0x18(%rbx)
movl $0x0, %ebp
je 0x1a0df4
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %r14, %rdi
callq 0x1a5a56
movq %rax, 0x10(%rbx)
movq 0x20(%rbx), %rdi
movq %rbx, %rsi
callq *0x18(%rbx)
xorl %ebp, %ebp
negl %eax
sbbl %ebp, %ebp
leaq 0x2032dc(%rip), %rsi    # 0x3a40d7
movq %rbx, %rdi
movl $0xac, %edx
callq 0x1045eb
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-lcpintervals.c
// Function: processleafedge_elcp
static int processleafedge_elcp(bool firstsucc,
                                GtUword fatherdepth,
                                Dfsinfo *afather,
                                GtUword leafnumber,
                                GT_UNUSED Dfsstate *astate,
                                GT_UNUSED GtError *err)
{
  Lcpinterval *father = (Lcpinterval *) afather;

  printf("L %c "GT_WU" "GT_WU" "GT_WU"\n",firstsucc ? '1' : '0',
                              fatherdepth,father->left,leafnumber);
  return 0;
}

// Assembly:
pushq %rax
movq %rcx, %r8
movq %rsi, %rax
leal 0x30(%rdi), %esi
movq 0x8(%rdx), %rcx
leaq 0x2032e6(%rip), %rdi    # 0x3a413b
movq %rax, %rdx
xorl %eax, %eax
callq 0x17070
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-lcpintervals.c
// Function: processcompletenode_elcp
static int processcompletenode_elcp(
                          GtUword nodeptrdepth,
                          Dfsinfo *anodeptr,
                          GT_UNUSED GtUword nodeptrminusonedepth,
                          Dfsstate *astate,
                          GT_UNUSED GtError *err)
{
  Lcpinterval *nodeptr = (Lcpinterval *) anodeptr;
  Elcpstate *state = (Elcpstate *) astate;

  gt_assert(state != NULL);
  gt_assert(nodeptr != NULL);
  nodeptr->offset = state->lastcompletenode.offset = nodeptrdepth;
  state->lastcompletenode.left = nodeptr->left;
  state->lastcompletenode.right = nodeptr->right;
  if (state->processlcpinterval != NULL)
  {
    if (state->processlcpinterval(state->processinfo,
                                  &state->lastcompletenode) != 0)
    {
      return -1;
    }
  }
  return 0;
}

// Assembly:
pushq %rax
testq %rcx, %rcx
je 0x1a0ed1
testq %rsi, %rsi
je 0x1a0ed6
movq %rdi, (%rcx)
movq %rdi, (%rsi)
movups 0x8(%rsi), %xmm0
movups %xmm0, 0x8(%rcx)
movq 0x18(%rcx), %rax
testq %rax, %rax
je 0x1a0ecd
movq 0x20(%rcx), %rdi
movq %rcx, %rsi
callq *%rax
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x1a0ecf
xorl %eax, %eax
popq %rcx
retq
callq 0x6177d
callq 0x61746
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-lcpintervals.c
// Function: gt_runenumlcpvalues_bottomup
int gt_runenumlcpvalues_bottomup(const char *inputindex,
                                 GtLogger *logger,
                                 GtError *err)
{
  bool haserr = false;
  Sequentialsuffixarrayreader *ssar;

  gt_error_check(err);
  ssar = gt_newSequentialsuffixarrayreaderfromfile(inputindex,
                                                   SARR_LCPTAB |
                                                   SARR_SUFTAB |
                                                   SARR_ESQTAB,
                                                   true,
                                                   logger,
                                                   err);
  if (ssar == NULL)
  {
    haserr = true;
  }
  if (!haserr)
  {
    GtESAVisitor *elv = gt_esa_lcpitvs_visitor_new();
    if (gt_esa_bottomup(ssar, elv, err) != 0)
    {
      haserr = true;
    }
    gt_esa_visitor_delete(elv);
  }
  if (ssar != NULL)
  {
    gt_freeSequentialsuffixarrayreader(&ssar);
  }
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rdx, %rdx
je 0x1a0f06
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0x1a0f73
movq %r15, %rdi
movl $0x7, %esi
movl $0x1, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x1a5580
movq %rax, (%rsp)
testq %rax, %rax
je 0x1a0f63
movq %rax, %r14
sete %bpl
callq 0x1a8030
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x30fecb
testl %eax, %eax
setne %bl
orb %bpl, %bl
movq %r15, %rdi
callq 0x1a8790
movq %rsp, %rdi
callq 0x1a5698
movzbl %bl, %eax
negl %eax
jmp 0x1a0f68
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x617b4
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-lcpintervals.c
// Function: gt_runenumlcpvalues_process
int gt_runenumlcpvalues_process(const char *inputindex,
                             int (*processfunction)(void *,const Lcpinterval *),
                             void *processdata,
                             GtLogger *logger,
                             GtError *err)
{
  bool haserr = false;
  Sequentialsuffixarrayreader *ssar;

  gt_error_check(err);
  ssar = gt_newSequentialsuffixarrayreaderfromfile(inputindex,
                                                   SARR_LCPTAB |
                                                   SARR_SUFTAB |
                                                   SARR_ESQTAB,
                                                   true,
                                                   logger,
                                                   err);
  if (ssar == NULL)
  {
    haserr = true;
  }
  if (!haserr)
  {
    if (gt_processlcpintervals(ssar, processfunction, processdata,
                               logger, err) != 0)
    {
      haserr = true;
    }
  }
  if (ssar != NULL)
  {
    gt_freeSequentialsuffixarrayreader(&ssar);
  }
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
testq %r8, %r8
je 0x1a0fa3
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0x1a1007
movq %r13, %rdi
movl $0x7, %esi
movl $0x1, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x1a5580
movq %rax, (%rsp)
testq %rax, %rax
je 0x1a0ff3
sete %bpl
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x1a0d2c
testl %eax, %eax
setne %bl
orb %bpl, %bl
movq %rsp, %rdi
callq 0x1a5698
movzbl %bl, %eax
negl %eax
jmp 0x1a0ff8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x617ed
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-map.c
// Function: gt_freesuffixarray
void gt_freesuffixarray(Suffixarray *suffixarray)
{
  gt_fa_xmunmap((void *) suffixarray->suftab);
  suffixarray->suftab = NULL;
  gt_fa_xmunmap((void *) suffixarray->lcptab);
  suffixarray->lcptab = NULL;
  gt_fa_xmunmap((void *) suffixarray->llvtab);
  suffixarray->llvtab = NULL;
  gt_fa_xmunmap((void *) suffixarray->bwttab);
  suffixarray->bwttab = NULL;
  gt_fa_xfclose(suffixarray->suftabstream_GtUword.fp);
  suffixarray->suftabstream_GtUword.fp = NULL;
  gt_free(suffixarray->suftabstream_GtUword.bufferedfilespace);
#if defined (_LP64) || defined (_WIN64)
  gt_fa_xfclose(suffixarray->suftabstream_uint32_t.fp);
  suffixarray->suftabstream_uint32_t.fp = NULL;
  gt_free(suffixarray->suftabstream_uint32_t.bufferedfilespace);
#endif
  gt_fa_xfclose(suffixarray->lcptabstream.fp);
  suffixarray->lcptabstream.fp = NULL;
  gt_free(suffixarray->lcptabstream.bufferedfilespace);
  gt_fa_xfclose(suffixarray->llvtabstream.fp);
  suffixarray->llvtabstream.fp = NULL;
  gt_free(suffixarray->llvtabstream.bufferedfilespace);
  gt_fa_xfclose(suffixarray->bwttabstream.fp);
  suffixarray->bwttabstream.fp = NULL;
  gt_free(suffixarray->bwttabstream.bufferedfilespace);
  gt_encseq_delete(suffixarray->encseq);
  suffixarray->encseq = NULL;
  if (suffixarray->bcktab != NULL)
  {
    gt_bcktab_delete(suffixarray->bcktab);
    suffixarray->bcktab = NULL;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x58(%rdi), %rdi
callq 0xfdc54
xorl %r15d, %r15d
movq %r15, 0x58(%rbx)
movq 0x60(%rbx), %rdi
callq 0xfdc54
movq %r15, 0x60(%rbx)
movq 0x68(%rbx), %rdi
callq 0xfdc54
movq %r15, 0x68(%rbx)
movq 0x70(%rbx), %rdi
callq 0xfdc54
movq %r15, 0x70(%rbx)
movq 0xb0(%rbx), %rdi
callq 0xfd09a
movq %r15, 0xb0(%rbx)
movq 0xa8(%rbx), %rdi
leaq 0x202c34(%rip), %r14    # 0x3a41d4
movq %r14, %rsi
movl $0x10f, %edx            # imm = 0x10F
callq 0x1045eb
movq 0x98(%rbx), %rdi
callq 0xfd09a
movq %r15, 0x98(%rbx)
movq 0x90(%rbx), %rdi
movq %r14, %rsi
movl $0x113, %edx            # imm = 0x113
callq 0x1045eb
movq 0xe0(%rbx), %rdi
callq 0xfd09a
movq %r15, 0xe0(%rbx)
movq 0xd8(%rbx), %rdi
movq %r14, %rsi
movl $0x117, %edx            # imm = 0x117
callq 0x1045eb
movq 0xf8(%rbx), %rdi
callq 0xfd09a
movq %r15, 0xf8(%rbx)
movq 0xf0(%rbx), %rdi
movq %r14, %rsi
movl $0x11a, %edx            # imm = 0x11A
callq 0x1045eb
movq 0xc8(%rbx), %rdi
callq 0xfd09a
movq %r15, 0xc8(%rbx)
movq 0xc0(%rbx), %rdi
movq %r14, %rsi
movl $0x11d, %edx            # imm = 0x11D
callq 0x1045eb
movq (%rbx), %rdi
callq 0xea375
movq %r15, (%rbx)
movq 0x80(%rbx), %rdi
testq %rdi, %rdi
je 0x1a1670
callq 0x18b533
movq $0x0, 0x80(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-map.c
// Function: streamsuffixarray
int streamsuffixarray(Suffixarray *suffixarray,
                      unsigned int demand,
                      const char *indexname,
                      GtLogger *logger,
                      GtError *err)
{
  gt_error_check(err);
  return inputsuffixarray(false,
                          suffixarray,
                          demand,
                          indexname,
                          logger,
                          err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r12
testq %r8, %r8
je 0x1a16af
movq %r8, %r15
movq %r8, %rdi
callq 0xfcc32
testb %al, %al
jne 0x1a16c9
xorl %edi, %edi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r8
movq %r15, %r9
jmp 0x1a16bf
xorl %edi, %edi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r8
xorl %r9d, %r9d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1a16ce
callq 0x61921
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-map.c
// Function: gt_mapsuffixarray
int gt_mapsuffixarray(Suffixarray *suffixarray,
                      unsigned int demand,
                      const char *indexname,
                      GtLogger *logger,
                      GtError *err)
{
  gt_error_check(err);
  /* printf("sizeof (Suffixarray)="GT_WU"\n",sizeof (Suffixarray)); */
  return inputsuffixarray(true,
                          suffixarray,
                          demand,
                          indexname,
                          logger,
                          err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r12
testq %r8, %r8
je 0x1a22c4
movq %r8, %r15
movq %r8, %rdi
callq 0xfcc32
testb %al, %al
jne 0x1a22e4
movl $0x1, %edi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r8
movq %r15, %r9
jmp 0x1a22d7
movl $0x1, %edi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r8
xorl %r9d, %r9d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1a16ce
callq 0x61a03
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-maxpairs.c
// Function: showcollectedintervals
void showcollectedintervals(const Lcpinterval *itvtab,GtUword num)
{
  const Lcpinterval *lcpitv;

  for (lcpitv = itvtab; lcpitv < itvtab + num; lcpitv++)
  {
    printf("# " GT_WU " " GT_WU " " GT_WU "\n",lcpitv->offset,lcpitv->left,
                                               lcpitv->right);
  }
}

// Assembly:
testq %rsi, %rsi
jle 0x1a2f0c
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq (%rsi,%rsi,2), %rax
leaq (%rdi,%rax,8), %r15
leaq 0x20171b(%rip), %r14    # 0x3a4604
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
movq %r14, %rdi
xorl %eax, %eax
callq 0x17070
addq $0x18, %rbx
cmpq %r15, %rbx
jb 0x1a2ee9
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-maxpairs.c
// Function: collectmaxfreqintervals
static int collectmaxfreqintervals(void *data,const Lcpinterval *lcpitv)
{
  GtMaxfreqcollect *maxfreqcollect = (GtMaxfreqcollect *) data;

  if (lcpitv->offset >= (GtUword) maxfreqcollect->userdefinedleastlength)
  {
    gt_assert(lcpitv->left <= lcpitv->right);
    if (lcpitv->right - lcpitv->left - 1 >= maxfreqcollect->maxfreq)
    {
      Lcpinterval *lcpitvptr;

      GT_GETNEXTFREEINARRAY(lcpitvptr,&maxfreqcollect->arr,Lcpinterval,
                            maxfreqcollect->arr.allocatedLcpinterval * 0.2 +
                            1024UL);
      *lcpitvptr = *lcpitv;
    }
  }
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl (%rdi), %eax
cmpq %rax, (%rsi)
jb 0x1a3187
movq %rsi, %rbx
movq 0x8(%rsi), %rax
movq 0x10(%rsi), %rcx
cmpq %rcx, %rax
ja 0x1a3191
movq %rdi, %r14
notq %rax
addq %rax, %rcx
cmpq 0x8(%rdi), %rcx
jb 0x1a3187
movq 0x18(%r14), %rax
cmpq %rax, 0x20(%r14)
jae 0x1a30ea
movq 0x10(%r14), %rax
jmp 0x1a3162
movq %rax, %xmm0
punpckldq 0x1a47e9(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x1a47f1(%rip), %xmm0   # 0x3478f0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x1fca05(%rip), %xmm1   # 0x39fb18
addsd 0x1cd60d(%rip), %xmm1   # 0x370728
cvttsd2si %xmm1, %rcx
movq %rcx, %rdx
subsd 0x1a4bf5(%rip), %xmm1   # 0x347d20
cvttsd2si %xmm1, %rsi
sarq $0x3f, %rdx
andq %rdx, %rsi
orq %rcx, %rsi
addq %rax, %rsi
movq %rsi, 0x18(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
leaq 0x201427(%rip), %rdx    # 0x3a457b
movl $0x248, %ecx            # imm = 0x248
callq 0x104461
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x1a3196
movq 0x20(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x20(%r14)
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rbx), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups (%rbx), %xmm0
movups %xmm0, (%rax,%rcx,8)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x61de3
callq 0x61daa
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-maxpairs.c
// Function: add2poslist_maxpairs
static void add2poslist_maxpairs(GtBUstate_maxpairs *state,
                                 GtBUinfo_maxpairs *ninfo,
                                 unsigned int base,GtUword leafnumber)
{
  GtArrayGtUword *ptr;

  if (base >= state->alphabetsize)
  {
    ninfo->uniquecharposlength++;
    GT_STOREINARRAY(&state->uniquechar,GtUword,4,leafnumber);
  } else
  {
    ptr = &state->poslist[base];
    GT_STOREINARRAY(ptr,GtUword,4,leafnumber);
    NODEPOSLISTLENGTH(ninfo,base)++;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpl %edx, 0x8(%rdi)
jbe 0x1a39a7
movq 0x28(%r15), %rax
movl %edx, %r15d
leaq (%r15,%r15,2), %rcx
leaq (%rax,%rcx,8), %r12
movq 0x8(%r12), %rax
cmpq %rax, 0x10(%r12)
jae 0x1a39bb
movq (%r12), %rax
jmp 0x1a39e5
incq 0x10(%r14)
movq 0x18(%r15), %rax
cmpq %rax, 0x20(%r15)
jae 0x1a3a0b
movq 0x10(%r15), %rax
jmp 0x1a3a34
leaq 0x4(%rax), %rcx
movq %rcx, 0x8(%r12)
movq (%r12), %rdi
leaq 0x20(,%rax,8), %rsi
leaq 0x200ba4(%rip), %rdx    # 0x3a457b
movl $0x6e, %ecx
callq 0x104461
movq %rax, (%r12)
testq %rax, %rax
je 0x1a3a55
movq 0x10(%r12), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%r12)
movq %rbx, (%rax,%rcx,8)
movq 0x18(%r14), %rax
shlq $0x4, %r15
incq 0x8(%rax,%r15)
jmp 0x1a3a49
leaq 0x4(%rax), %rcx
movq %rcx, 0x18(%r15)
movq 0x10(%r15), %rdi
leaq 0x20(,%rax,8), %rsi
leaq 0x200b55(%rip), %rdx    # 0x3a457b
movl $0x6a, %ecx
callq 0x104461
movq %rax, 0x10(%r15)
testq %rax, %rax
je 0x1a3a5a
movq 0x20(%r15), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x20(%r15)
movq %rbx, (%rax,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x61ec3
callq 0x61e8c
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-maxpairs.c
// Function: cartproduct1_maxpairs
static int cartproduct1_maxpairs(GtBUstate_maxpairs *state,
                                 GtUword fatherdepth,
                                 const GtBUinfo_maxpairs *ninfo,
                                 unsigned int base,
                                 GtUword leafnumber,GtError *err)
{
  Listtype *pl;
  GtUword *spptr, *start;

  pl = &NODEPOSLISTENTRY(ninfo,base);
  start = state->poslist[base].spaceGtUword + pl->start;
  for (spptr = start; spptr < start + pl->length; spptr++)
  {
    if (state->processmaxpairs(state->processmaxpairsinfo,&state->genericencseq,
                               fatherdepth,GT_MIN(leafnumber,*spptr),
                                           GT_MAX(leafnumber,*spptr),err) != 0)
    {
      return -1;
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdi, %r12
movl %ecx, %edi
movq %rdi, %rcx
shlq $0x4, %rcx
xorl %eax, %eax
cmpq $0x0, 0x8(%rdx,%rcx)
jle 0x1a3af7
movq %r8, %r14
leaq (%rdx,%rcx), %rbp
movq 0x28(%r12), %rsi
leaq (%rdi,%rdi,2), %rax
movq (%rdx,%rcx), %r15
shlq $0x3, %r15
addq (%rsi,%rax,8), %r15
leaq 0x30(%r12), %r13
movq %r15, %rbx
movq (%rbx), %r8
cmpq %r14, %r8
movq %r14, %rcx
cmovbq %r8, %rcx
movq 0x68(%r12), %rdi
cmovbeq %r14, %r8
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %r9
callq *0x50(%r12)
testl %eax, %eax
jne 0x1a3af2
addq $0x8, %rbx
movq 0x8(%rbp), %rax
leaq (%r15,%rax,8), %rax
cmpq %rax, %rbx
jb 0x1a3ab1
xorl %eax, %eax
jmp 0x1a3af7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-minunique.c
// Function: gt_suffixarrayuniqueforward
GtUword gt_suffixarrayuniqueforward (const void *genericindex,
                                       GtUword offset,
                                       GtUword left,
                                       GtUword right,
                                       GT_UNUSED GtUword
                                          *witnessposition,
                                       const GtUchar *qstart,
                                       const GtUchar *qend)
{
  Simplelcpinterval itv;
  const GtUchar *qptr;
  const Suffixarray *suffixarray = (const Suffixarray *) genericindex;
  GtUword totallength;

  itv.left = left;
  itv.right = right;
  totallength = gt_encseq_total_length(suffixarray->encseq);
  for (qptr = qstart; /* Nothing */; qptr++, offset++)
  {
    if (itv.left < itv.right)
    {
      if (qptr >= qend || GT_ISSPECIAL(*qptr) ||
          !gt_lcpintervalfindcharchildintv(suffixarray->encseq,
                                           suffixarray->readmode,
                                           totallength,
                                           suffixarray->suftab,
                                           &itv,
                                           *qptr,
                                           offset,
                                           itv.left,
                                           itv.right))
      {
        break;
      }
    } else
    {
      return offset;
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r14
movq %rcx, %rbp
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r15
movq %rdx, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq (%rdi), %rdi
callq 0xe7b9c
cmpq %rbp, %r13
jae 0x1a3bbe
movq %rax, %r12
cmpq 0x50(%rsp), %r14
jae 0x1a3bbc
movb (%r14), %al
cmpb $-0x3, %al
ja 0x1a3bbc
movq (%r15), %rdi
movl 0x48(%r15), %esi
movq 0x58(%r15), %rcx
subq $0x8, %rsp
movzbl %al, %r9d
movq %r12, %rdx
leaq 0x10(%rsp), %r8
pushq %rbp
pushq %r13
pushq %rbx
callq 0x1a7280
addq $0x20, %rsp
testb %al, %al
je 0x1a3bbc
incq %r14
incq %rbx
movq 0x8(%rsp), %r13
movq 0x10(%rsp), %rbp
cmpq %rbp, %r13
jb 0x1a3b6b
jmp 0x1a3bbe
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-minunique.c
// Function: gt_suffixarraymstats
GtUword gt_suffixarraymstats (const void *genericindex,
                                    GtUword offset,
                                    GtUword left,
                                    GtUword right,
                                    GtUword *witnessposition,
                                    const GtUchar *qstart,
                                    const GtUchar *qend)
{
  Simplelcpinterval itv;
  const GtUchar *qptr;
  const Suffixarray *suffixarray = (const Suffixarray *) genericindex;
  GtUword totallength;

  itv.left = left;
  itv.right = right;
  totallength = gt_encseq_total_length(suffixarray->encseq);
  for (qptr = qstart; /* Nothing */; qptr++, offset++)
  {
    gt_assert(itv.left <= itv.right);
    if (qptr >= qend || GT_ISSPECIAL(*qptr) ||
        !gt_lcpintervalfindcharchildintv(suffixarray->encseq,
                                      suffixarray->readmode,
                                      totallength,
                                      suffixarray->suftab,
                                      &itv,
                                      *qptr,
                                      (GtUword) offset,
                                      itv.left,itv.right))
    {
      if (witnessposition != NULL)
      {
        *witnessposition = ESASUFFIXPTRGET(suffixarray->suftab,itv.left);
      }
      break;
    }
  }
  return offset;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r12
movq %r8, 0x10(%rsp)
movq %rcx, %rbx
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, (%rsp)
movq %rcx, 0x8(%rsp)
movq (%rdi), %rdi
callq 0xe7b9c
cmpq %rbx, %rbp
ja 0x1a3c5a
movq %rax, %r13
cmpq 0x50(%rsp), %r12
jae 0x1a3c5f
movb (%r12), %al
cmpb $-0x3, %al
ja 0x1a3c5f
movq (%r15), %rdi
movl 0x48(%r15), %esi
movq 0x58(%r15), %rcx
subq $0x8, %rsp
movzbl %al, %r9d
movq %r13, %rdx
leaq 0x8(%rsp), %r8
pushq %rbx
pushq %rbp
pushq %r14
callq 0x1a7280
addq $0x20, %rsp
testb %al, %al
je 0x1a3c5f
incq %r12
incq %r14
movq (%rsp), %rbp
movq 0x8(%rsp), %rbx
cmpq %rbx, %rbp
jbe 0x1a3c0b
callq 0x61f33
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x1a3c78
movq 0x58(%r15), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, (%rdx)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-minunique.c
// Function: gt_suffixarrayfindmums
GtUword gt_suffixarrayfindmums (const void *genericindex,
                                      GtUword offset,
                                      GtUword left,
                                      GtUword right,
                                      GtUword *witnessposition,
                                      const GtUchar *qstart,
                                      const GtUchar *qend)
{
  const Suffixarray *suffixarray = (const Suffixarray *) genericindex;
  Simplelcpinterval itv;
  const GtUchar *qptr;
  GtUword totallength;

  itv.left = left;
  itv.right = right;
  totallength = gt_encseq_total_length(suffixarray->encseq);
  *witnessposition = ULONG_MAX;
  for (qptr = qstart; /* Nothing */; qptr++, offset++)
  {
    gt_assert(itv.left <= itv.right);
    if (qptr >= qend || GT_ISSPECIAL(*qptr) ||
        !gt_lcpintervalfindcharchildintv(suffixarray->encseq,
                                         suffixarray->readmode,
                                         totallength,
                                         suffixarray->suftab,
                                         &itv,
                                         *qptr,
                                         offset,
                                         itv.left,
                                         itv.right))
    {
      if (itv.left == itv.right)
      {
        *witnessposition = ESASUFFIXPTRGET(suffixarray->suftab,itv.left);
      }
      break;
    }
  }
  return offset;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbp
movq %r8, (%rsp)
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq (%rdi), %rdi
callq 0xe7b9c
movq %rax, %rbx
movq (%rsp), %rax
movq $-0x1, (%rax)
cmpq %r12, %r13
ja 0x1a3d44
cmpq 0x50(%rsp), %rbp
jae 0x1a3d1e
movb (%rbp), %al
cmpb $-0x3, %al
ja 0x1a3d1e
movq (%r15), %rdi
movl 0x48(%r15), %esi
movq 0x58(%r15), %rcx
subq $0x8, %rsp
movzbl %al, %r9d
movq %rbx, %rdx
leaq 0x10(%rsp), %r8
pushq %r12
pushq %r13
pushq %r14
callq 0x1a7280
addq $0x20, %rsp
movq 0x8(%rsp), %r13
movq 0x10(%rsp), %r12
testb %al, %al
je 0x1a3d1e
incq %rbp
incq %r14
jmp 0x1a3ccb
cmpq %r12, %r13
jne 0x1a3d32
movq 0x58(%r15), %rax
movq (%rax,%r12,8), %rax
movq (%rsp), %rcx
movq %rax, (%rcx)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x61f6a
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-minunique.c
// Function: gt_suffixarrayfindinterval
GtRange gt_suffixarrayfindinterval (const void *genericindex,
                                    GtUword offset,
                                    GtUword left,
                                    GtUword right,
                                    GtUword *matchlength,
                                    const GtUchar *qstart,
                                    const GtUchar *qend)
{
  const Suffixarray *suffixarray = (const Suffixarray *) genericindex;
  const GtUchar *qptr;
  GtUword totallength = gt_encseq_total_length(suffixarray->encseq);
  GtRange result;

  gt_assert(qstart < qend);
  for (qptr = qstart; /* Nothing */; qptr++, offset++)
  {
    Simplelcpinterval itv;

    if (qptr >= qend || GT_ISSPECIAL(*qptr) ||
        !gt_lcpintervalfindcharchildintv(suffixarray->encseq,
                                         suffixarray->readmode,
                                         totallength,
                                         suffixarray->suftab,
                                         &itv,
                                         *qptr,
                                         offset,
                                         left,
                                         right))
    {
      break;
    }
    gt_assert(itv.left <= itv.right);
    left = itv.left;
    right = itv.right;
  }
  *matchlength = (GtUword) (qptr - qstart);
  result.start = left;
  result.end = right;
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r14
movq %r8, 0x10(%rsp)
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movq (%rdi), %rdi
callq 0xe7b9c
cmpq 0x60(%rsp), %r14
jae 0x1a3e03
movq %rax, %rbx
movq %r14, 0x8(%rsp)
movb (%r14), %al
cmpb $-0x3, %al
ja 0x1a3ddc
movq (%rbp), %rdi
movl 0x48(%rbp), %esi
movq 0x58(%rbp), %rcx
subq $0x8, %rsp
movzbl %al, %r9d
movq %rbx, %rdx
leaq 0x20(%rsp), %r8
pushq %r15
pushq %r12
pushq %r13
callq 0x1a7280
addq $0x20, %rsp
testb %al, %al
je 0x1a3ddc
movq 0x18(%rsp), %r12
movq 0x20(%rsp), %r15
cmpq %r15, %r12
ja 0x1a3dfe
incq %r14
incq %r13
cmpq 0x60(%rsp), %r14
jne 0x1a3d86
movq 0x60(%rsp), %r14
subq 0x8(%rsp), %r14
movq 0x10(%rsp), %rax
movq %r14, (%rax)
movq %r12, %rax
movq %r15, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x61fda
callq 0x61fa1
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-mmsearch.c
// Function: gt_mmsearchiterator_next
bool gt_mmsearchiterator_next(GtUword *dbstart,GtMMsearchiterator *mmsi)
{
  gt_assert(mmsi != NULL);
  if (mmsi->sufindex <= mmsi->lcpitv.right)
  {
    *dbstart = ESASUFFIXPTRGET(mmsi->suftab,mmsi->sufindex++);
    return true;
  }
  return false;
}

// Assembly:
testq %rsi, %rsi
je 0x1a3f11
movq 0x10(%rsi), %rax
movq 0x18(%rsi), %rcx
cmpq %rax, %rcx
ja 0x1a3f0a
movq 0x20(%rsi), %rdx
leaq 0x1(%rcx), %r8
movq %r8, 0x18(%rsi)
movq (%rdx,%rcx,8), %rdx
movq %rdx, (%rdi)
cmpq %rax, %rcx
setbe %al
retq
pushq %rax
callq 0x6204c
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-mmsearch.c
// Function: gt_querysubstringmatchiterator_delete
void gt_querysubstringmatchiterator_delete(GtQuerysubstringmatchiterator *qsmi)
{
  if (qsmi != NULL)
  {
    gt_mmsearchiterator_delete(qsmi->mmsi);
    gt_seq_iterator_delete(qsmi->seqit);
    gt_free(qsmi);
  }
}

// Assembly:
testq %rdi, %rdi
je 0x1a472f
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x1a3f54
movq 0x80(%rbx), %rdi
callq 0x11437f
leaq 0x200181(%rip), %rsi    # 0x3a48a2
movq %rbx, %rdi
movl $0x31b, %edx            # imm = 0x31B
popq %rbx
jmp 0x1045eb
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/esa-mmsearch.c
// Function: gt_mmsearch_isleftmaximal
static bool gt_mmsearch_isleftmaximal(const GtEncseq *dbencseq,
                                      GtReadmode readmode,
                                      GtUword dbstart,
                                      const GtQuerysubstring *querysubstring)
{
  GtUchar dbleftchar;

  if (dbstart == 0 || querysubstring->currentoffset == 0)
  {
    return true;
  }
  dbleftchar = gt_encseq_get_encoded_char(dbencseq, /* Random access */
                                          dbstart-1,
                                          readmode);
  if (GT_ISSPECIAL(dbleftchar) ||
      dbleftchar != gt_mmsearch_accessquery(querysubstring->queryrep,
                                            querysubstring->currentoffset-1))
  {
    return true;
  }
  return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movb $0x1, %bl
testq %rdx, %rdx
je 0x1a4f19
movq %rcx, %r14
cmpq $0x0, 0x8(%rcx)
je 0x1a4f19
movl %esi, %eax
decq %rdx
movq %rdx, %rsi
movl %eax, %edx
callq 0xe7bbc
cmpb $-0x3, %al
ja 0x1a4f19
movl %eax, %ebp
movq (%r14), %rdi
movq 0x8(%r14), %rsi
decq %rsi
callq 0x1a4fa7
cmpb %al, %bpl
setne %bl
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq