LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-maxpairs.c
// Function: setpostabto0_maxpairs
static void setpostabto0_maxpairs(GtBUstate_maxpairs *state)
{
  unsigned int base;

  if (!state->initialized)
  {
    for (base = 0; base < state->alphabetsize; base++)
    {
      state->poslist[base].nextfreeGtUword = 0;
    }
    state->uniquechar.nextfreeGtUword = 0;
    state->initialized = true;
  }
}

// Assembly:
cmpb $0x0, (%rdi)
jne 0x14f5cf
movl 0x8(%rdi), %eax
imulq $0x18, %rax, %rax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x14f5c7
movq 0x28(%rdi), %rdx
andq $0x0, 0x10(%rdx,%rcx)
addq $0x18, %rcx
jmp 0x14f5b2
andq $0x0, 0x20(%rdi)
movb $0x1, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x14f607
movq 0x28(%r15), %rcx
movl %edx, %r15d
imulq $0x18, %r15, %rdx
leaq (%rcx,%rdx), %r12
movq 0x8(%rcx,%rdx), %rax
cmpq %rax, 0x10(%rcx,%rdx)
jae 0x14f61b
movq (%r12), %rax
jmp 0x14f643
incq 0x10(%r14)
movq 0x18(%r15), %rax
cmpq %rax, 0x20(%r15)
jae 0x14f669
movq 0x10(%r15), %rax
jmp 0x14f690
leaq 0x4(%rax), %rcx
movq %rcx, 0x8(%r12)
movq (%r12), %rdi
leaq 0x20(,%rax,8), %rsi
leaq 0x1f52b4(%rip), %rdx    # 0x3448eb
pushq $0x6e
popq %rcx
callq 0x93472
movq %rax, (%r12)
testq %rax, %rax
je 0x14f6b1
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 0x14f6a5
leaq 0x4(%rax), %rcx
movq %rcx, 0x18(%r15)
movq 0x10(%r15), %rdi
leaq 0x20(,%rax,8), %rsi
leaq 0x1f5267(%rip), %rdx    # 0x3448eb
pushq $0x6a
popq %rcx
callq 0x93472
movq %rax, 0x10(%r15)
testq %rax, %rax
je 0x14f6db
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
movq 0x2e88b0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x195951(%rip), %rsi    # 0x2e5013
leaq 0x1f53fb(%rip), %rdx    # 0x344ac4
leaq 0x1f53b4(%rip), %rcx    # 0x344a84
leaq 0x1f5214(%rip), %r8     # 0x3448eb
pushq $0x6e
jmp 0x14f703
movq 0x2e8886(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x195927(%rip), %rsi    # 0x2e5013
leaq 0x1f53a6(%rip), %rdx    # 0x344a99
leaq 0x1f538a(%rip), %rcx    # 0x344a84
leaq 0x1f51ea(%rip), %r8     # 0x3448eb
pushq $0x6a
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/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 %r8, %r14
movq %rsi, 0x8(%rsp)
movq %rdi, %r12
movq 0x18(%rdx), %rax
movl %ecx, %ecx
imulq $0x18, %rcx, %rdx
shlq $0x4, %rcx
movq 0x28(%rdi), %rsi
movq (%rax,%rcx), %r15
shlq $0x3, %r15
addq (%rsi,%rdx), %r15
leaq (%rax,%rcx), %rbx
leaq 0x30(%rdi), %r13
movq %r15, %rbp
movq 0x8(%rbx), %rax
leaq (%r15,%rax,8), %rax
cmpq %rax, %rbp
jae 0x14f79b
movq (%rbp), %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)
addq $0x8, %rbp
testl %eax, %eax
je 0x14f758
pushq $-0x1
popq %rax
jmp 0x14f79d
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-maxpairs.c
// Function: compareLcpitervals
static int compareLcpitervals(const void *a,const void *b)
{
  const Lcpinterval *lcpitv_a = (const Lcpinterval *) a;
  const Lcpinterval *lcpitv_b = (const Lcpinterval *) b;

  if (lcpitv_a->left < lcpitv_b->left)
  {
    return -1;
  }
  if (lcpitv_a->left > lcpitv_b->left)
  {
    return 1;
  }
  if (lcpitv_a->offset < lcpitv_b->offset)
  {
    return -1;
  }
  if (lcpitv_a->offset > lcpitv_b->offset)
  {
    return 1;
  }
  gt_assert(false);
  return 0;
}

// Assembly:
movq 0x8(%rsi), %rcx
pushq $-0x1
popq %rax
cmpq %rcx, 0x8(%rdi)
jae 0x14f7ba
retq
pushq $0x1
popq %rcx
jbe 0x14f7c2
movl %ecx, %eax
retq
movq (%rsi), %rdx
cmpq %rdx, (%rdi)
jb 0x14f7b9
movl %ecx, %eax
ja 0x14f7b9
pushq %rax
movq 0x2e8792(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x195833(%rip), %rsi    # 0x2e5013
leaq 0x1d7205(%rip), %rdx    # 0x3269ec
leaq 0x1f5383(%rip), %rcx    # 0x344b71
leaq 0x1f50f6(%rip), %r8     # 0x3448eb
movl $0x264, %r9d            # imm = 0x264
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop
// File: /workspace/github_c_makefile_star2_O2/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, %r12
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x8(%rsp), %rax
movq %rdx, (%rax)
movq %rcx, 0x8(%rax)
movq (%rdi), %rdi
callq 0x7055e
movq %rax, %r13
cmpq %r12, %rbp
jae 0x14f88f
cmpq 0x50(%rsp), %r14
jae 0x14f88d
movb (%r14), %al
cmpb $-0x3, %al
ja 0x14f88d
movq (%r15), %rdi
movl 0x48(%r15), %esi
movq 0x58(%r15), %rcx
subq $0x8, %rsp
movzbl %al, %r9d
movq %r13, %rdx
leaq 0x10(%rsp), %r8
pushq %r12
pushq %rbp
pushq %rbx
callq 0x15392c
addq $0x20, %rsp
testb %al, %al
je 0x14f88d
incq %r14
incq %rbx
movq 0x8(%rsp), %rbp
movq 0x10(%rsp), %r12
jmp 0x14f83c
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_O2/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, %r13
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq %rsp, %rax
movq %rdx, (%rax)
movq %rcx, 0x8(%rax)
movq (%rdi), %rdi
callq 0x7055e
movq %rax, %rbp
cmpq %r13, %r14
ja 0x14f955
cmpq 0x50(%rsp), %r12
jae 0x14f92a
movb (%r12), %al
cmpb $-0x3, %al
ja 0x14f92a
movq (%r15), %rdi
movl 0x48(%r15), %esi
movq 0x58(%r15), %rcx
subq $0x8, %rsp
movzbl %al, %r9d
movq %rbp, %rdx
leaq 0x8(%rsp), %r8
pushq %r13
pushq %r14
pushq %rbx
callq 0x15392c
addq $0x20, %rsp
testb %al, %al
je 0x14f92a
incq %r12
incq %rbx
movq (%rsp), %r14
movq 0x8(%rsp), %r13
jmp 0x14f8d8
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x14f943
movq 0x58(%r15), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, (%rdx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2e860c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1956ad(%rip), %rsi    # 0x2e5013
leaq 0x1f5217(%rip), %rdx    # 0x344b84
leaq 0x1f5226(%rip), %rcx    # 0x344b9a
leaq 0x1f5234(%rip), %r8     # 0x344baf
pushq $0x56
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rdi, %r15
leaq 0x8(%rsp), %rax
movq %rdx, (%rax)
movq %rcx, 0x8(%rax)
movq (%rdi), %rdi
callq 0x7055e
movq %rax, %r14
movq (%rsp), %rax
orq $-0x1, (%rax)
cmpq %r12, %r13
ja 0x14fa43
cmpq 0x50(%rsp), %rbp
jae 0x14fa1d
movb (%rbp), %al
cmpb $-0x3, %al
ja 0x14fa1d
movq (%r15), %rdi
movl 0x48(%r15), %esi
movq 0x58(%r15), %rcx
subq $0x8, %rsp
movzbl %al, %r9d
movq %r14, %rdx
leaq 0x10(%rsp), %r8
pushq %r12
pushq %r13
pushq %rbx
callq 0x15392c
addq $0x20, %rsp
movq 0x8(%rsp), %r13
movq 0x10(%rsp), %r12
testb %al, %al
je 0x14fa1d
incq %rbp
incq %rbx
jmp 0x14f9cb
cmpq %r12, %r13
jne 0x14fa31
movq 0x58(%r15), %rax
movq (%rax,%r12,8), %rax
movq (%rsp), %rcx
movq %rax, (%rcx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2e851e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1955bf(%rip), %rsi    # 0x2e5013
leaq 0x1f5129(%rip), %rdx    # 0x344b84
leaq 0x1f5167(%rip), %rcx    # 0x344bc9
leaq 0x1f5146(%rip), %r8     # 0x344baf
pushq $0x7e
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/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, 0x8(%rsp)
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, 0x10(%rsp)
movq %rdi, %rbp
movq (%rdi), %rdi
callq 0x7055e
cmpq 0x60(%rsp), %r14
jae 0x14fb67
movq %rax, %rbx
xorl %r13d, %r13d
leaq (%r14,%r13), %rax
cmpq 0x60(%rsp), %rax
jae 0x14fb12
movb (%rax), %al
cmpb $-0x3, %al
ja 0x14fb12
movq 0x10(%rsp), %rcx
leaq (%rcx,%r13), %r10
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 %r10
callq 0x15392c
addq $0x20, %rsp
testb %al, %al
je 0x14fb12
movq 0x18(%rsp), %r12
movq 0x20(%rsp), %r15
cmpq %r15, %r12
ja 0x14fb2f
incq %r13
jmp 0x14fab6
movq 0x8(%rsp), %rax
movq %r13, (%rax)
movq %r12, %rax
movq %r15, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2e8432(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1954d3(%rip), %rsi    # 0x2e5013
leaq 0x1f503d(%rip), %rdx    # 0x344b84
leaq 0x1f5092(%rip), %rcx    # 0x344be0
leaq 0x1f505a(%rip), %r8     # 0x344baf
movl $0xb3, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2e83fa(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19549b(%rip), %rsi    # 0x2e5013
leaq 0x1f3639(%rip), %rdx    # 0x3431b8
leaq 0x1f505a(%rip), %rcx    # 0x344be0
leaq 0x1f5022(%rip), %r8     # 0x344baf
movl $0xa1, %r9d
jmp 0x14fb5b
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-mmsearch.c
// Function: gt_mmsearchiterator_new
static GtMMsearchiterator *gt_mmsearchiterator_new(
                                       const GtEncseq *dbencseq,
                                       const ESASuffixptr *suftab,
                                       GtUword leftbound,
                                       GtUword rightbound,
                                       GtUword itvoffset,
                                       GtReadmode readmode,
                                       const GtQuerysubstring *querysubstring,
                                       GtUword minmatchlength)
{
  GtMMsearchiterator *mmsi = gt_mmsearchiterator_new_empty();

  gt_mmsearchiterator_reinit(mmsi,
                             dbencseq,
                             suftab,
                             leftbound,
                             rightbound,
                             itvoffset,
                             readmode,
                             querysubstring,
                             minmatchlength);
  return mmsi;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebx
movq %r8, 0x20(%rsp)
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
callq 0x1505ad
movq %rax, %r14
movaps 0x60(%rsp), %xmm0
movups %xmm0, 0x8(%rsp)
movl %ebx, (%rsp)
movq %rax, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %r15, %r8
movq 0x20(%rsp), %r9
callq 0x150a64
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/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 0x14fcb8
movq 0x10(%rsi), %rax
movq 0x18(%rsi), %rcx
cmpq %rax, %rcx
ja 0x14fcb1
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
movq 0x2e82a8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x195349(%rip), %rsi    # 0x2e5013
leaq 0x1f4f2a(%rip), %rdx    # 0x344bfb
leaq 0x1f4f63(%rip), %rcx    # 0x344c3b
leaq 0x1f4f43(%rip), %r8     # 0x344c22
movl $0x13c, %r9d            # imm = 0x13C
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/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 0x1505fc
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x14fd61
movq 0x80(%rbx), %rdi
callq 0xa6389
leaq 0x1f4634(%rip), %rsi    # 0x344c22
movq %rbx, %rdi
movl $0x31b, %edx            # imm = 0x31B
popq %rbx
jmp 0x936f9
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x150f31
movq %rcx, %r14
cmpq $0x0, 0x8(%rcx)
je 0x150f31
movl %esi, %eax
decq %rdx
movq %rdx, %rsi
movl %eax, %edx
callq 0x705e4
cmpb $-0x3, %al
ja 0x150f31
movl %eax, %ebp
movq (%r14), %rdi
movq 0x8(%r14), %rsi
decq %rsi
callq 0x150fd3
cmpb %al, %bpl
setne %bl
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-mmsearch.c
// Function: gt_mmsearch_extendright
static GtUword gt_mmsearch_extendright(const GtEncseq *dbencseq,
                                             GtEncseqReader *esr,
                                             GtReadmode readmode,
                                             GtUword totallength,
                                             GtUword dbend,
                                             const GtQuerysubstring
                                               *querysubstring,
                                             GtUword matchlength)
{
  GtUchar dbchar;
  GtUword dbpos, querypos;

  if (dbend < totallength)
  {
    gt_encseq_reader_reinit_with_readmode(esr,dbencseq,readmode,dbend);
  }
  for (dbpos = dbend, querypos = querysubstring->currentoffset + matchlength;
       dbpos < totallength &&
       querypos < querysubstring->queryrep->seqlen;
       dbpos++, querypos++)
  {
    dbchar = gt_encseq_reader_next_encoded_char(esr);
    if (GT_ISSPECIAL(dbchar) ||
        dbchar != gt_mmsearch_accessquery(querysubstring->queryrep,querypos))
    {
      break;
    }
  }
  return dbpos - dbend;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r14
movq %r8, %rbp
movq %rcx, %r15
movq %rsi, %r12
movq 0x50(%rsp), %r13
cmpq %rcx, %r8
jae 0x150f6a
movq %rdi, %rsi
movq %r12, %rdi
movq %rbp, %rcx
callq 0x71f38
addq 0x8(%r14), %r13
cmpq %r15, %rbp
movq %r15, %rax
cmovaq %rbp, %rax
movq %rax, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
cmpq %r15, %rbp
jae 0x150fba
movq (%r14), %rax
cmpq 0x20(%rax), %r13
jae 0x150fb5
movq %r12, %rdi
callq 0x70f55
cmpb $-0x3, %al
ja 0x150fb5
movl %eax, %ebx
movq (%r14), %rdi
movq %r13, %rsi
callq 0x150fd3
cmpb %al, %bl
jne 0x150fb5
incq %rbp
incq %r13
jmp 0x150f82
movq %rbp, %rax
jmp 0x150fbf
movq 0x8(%rsp), %rax
subq 0x10(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-mmsearch.c
// Function: gt_mmsearch_accessquery
static GtUchar gt_mmsearch_accessquery(const GtQueryrepresentation *queryrep,
                                       GtUword pos)
{
  GtUword abspos, cc;

  gt_assert(queryrep != NULL);
  gt_assert(pos < queryrep->seqlen);
  abspos = queryrep->startpos + (queryrep->readmode == GT_READMODE_FORWARD
                                  ? pos
                                  : GT_REVERSEPOS(queryrep->seqlen,pos));
  if (queryrep->sequence != NULL)
  {
    cc = queryrep->sequence[abspos];
  } else
  {
    gt_assert(queryrep->encseq != NULL);
    cc = gt_encseq_get_encoded_char(queryrep->encseq,abspos,
                                    GT_READMODE_FORWARD);
  }
  if (GT_ISDIRCOMPLEMENT(queryrep->readmode))
  {
    if (GT_ISSPECIAL(cc))
    {
      return cc;
    }
    return GT_COMPLEMENTBASE(cc);
  } else
  {
    return cc;
  }
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x15103a
movq %rsi, %rax
movq %rdi, %rbx
movq 0x20(%rdi), %rsi
cmpq %rax, %rsi
jbe 0x151064
movl 0x10(%rbx), %edx
movq %rax, %rcx
notq %rcx
addq %rcx, %rsi
testl %edx, %edx
cmoveq %rax, %rsi
addq 0x18(%rbx), %rsi
movq (%rbx), %rax
testq %rax, %rax
je 0x15100b
movb (%rax,%rsi), %al
jmp 0x15101e
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x15108e
xorl %edx, %edx
callq 0x705e4
movl 0x10(%rbx), %edx
andl $-0x2, %edx
movb $0x3, %cl
subb %al, %cl
cmpb $-0x2, %al
movzbl %cl, %ecx
movzbl %al, %eax
cmovael %eax, %ecx
cmpl $0x2, %edx
cmovnel %eax, %ecx
movl %ecx, %eax
popq %rbx
retq
movq 0x2e6f27(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x193fc8(%rip), %rsi    # 0x2e5013
leaq 0x1f3f31(%rip), %rdx    # 0x344f83
leaq 0x1f3f3b(%rip), %rcx    # 0x344f94
leaq 0x1f3bc2(%rip), %r8     # 0x344c22
pushq $0x35
jmp 0x1510b6
movq 0x2e6efd(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x193f9e(%rip), %rsi    # 0x2e5013
leaq 0x1f3f30(%rip), %rdx    # 0x344fac
leaq 0x1f3f11(%rip), %rcx    # 0x344f94
leaq 0x1f3b98(%rip), %r8     # 0x344c22
pushq $0x36
jmp 0x1510b6
movq 0x2e6ed3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x193f74(%rip), %rsi    # 0x2e5013
leaq 0x1f3f1d(%rip), %rdx    # 0x344fc3
leaq 0x1f3ee7(%rip), %rcx    # 0x344f94
leaq 0x1f3b6e(%rip), %r8     # 0x344c22
pushq $0x3f
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-scanprj.c
// Function: gt_scannedprjkey_add
void gt_scannedprjkey_add(GtScannedprjkeytable *scannedprjkeytable,
                          const char *keystring,
                          void *valueptr,
                          size_t sizeval,
                          bool readdouble,
                          bool *readflag)
{
  GtScannedprjkey rikvalue;

  rikvalue.keystring = keystring;
  rikvalue.readflag = readflag;
  rikvalue.readdouble = readdouble;
  if (readdouble)
  {
    gt_assert(sizeval == sizeof (double));
    rikvalue.uint32valueptr = NULL;
    rikvalue.uint64valueptr = NULL;
    rikvalue.doublevalueptr = valueptr;
    rikvalue.ptrdefined = true;
  } else
  {
    gt_assert(sizeval == 0 || sizeval == (size_t) 4 || sizeval == (size_t) 8);
    switch (sizeval)
    {
      case 0: rikvalue.uint32valueptr = NULL;
              rikvalue.uint64valueptr = NULL;
              rikvalue.ptrdefined = false;
              break;
      case 4: gt_assert(sizeof (uint32_t) == (size_t) 4);
              rikvalue.uint32valueptr = valueptr;
              rikvalue.uint64valueptr = NULL;
              rikvalue.ptrdefined = true;
              break;
      case 8: gt_assert(sizeof (uint64_t) == (size_t) 8);
              rikvalue.uint64valueptr = valueptr;
              rikvalue.uint32valueptr = NULL;
              rikvalue.ptrdefined = true;
              break;
    }
  }
  rikvalue.found = false;
  gt_array_add_elem(scannedprjkeytable->arr,&rikvalue,
                    sizeof (GtScannedprjkey));
}

// Assembly:
subq $0x38, %rsp
movq %rsi, 0x8(%rsp)
movq %r9, 0x30(%rsp)
movb %r8b, 0x28(%rsp)
testl %r8d, %r8d
je 0x151136
cmpq $0x8, %rcx
jne 0x15118c
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movq %rdx, 0x20(%rsp)
jmp 0x15115f
testq %rcx, %rcx
je 0x15117d
cmpq $0x4, %rcx
je 0x151154
cmpq $0x8, %rcx
jne 0x1511b6
movq %rdx, 0x18(%rsp)
andq $0x0, 0x10(%rsp)
jmp 0x15115f
movq %rdx, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
movb $0x1, 0x29(%rsp)
leaq 0x8(%rsp), %rsi
movb $0x0, 0x22(%rsi)
movq (%rdi), %rdi
pushq $0x30
popq %rdx
callq 0x5851d
addq $0x38, %rsp
retq
movb $0x0, 0x29(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
jmp 0x151164
movq 0x2e6dd5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x193e76(%rip), %rsi    # 0x2e5013
leaq 0x1f3e50(%rip), %rdx    # 0x344ff4
leaq 0x1f3e64(%rip), %rcx    # 0x34500f
leaq 0x1f3e2a(%rip), %r8     # 0x344fdc
pushq $0x53
jmp 0x1511de
movq 0x2e6dab(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x193e4c(%rip), %rsi    # 0x2e5013
leaq 0x1f3e56(%rip), %rdx    # 0x345024
leaq 0x1f3e3a(%rip), %rcx    # 0x34500f
leaq 0x1f3e00(%rip), %r8     # 0x344fdc
pushq $0x5a
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-seqread.c
// Function: gt_freeSequentialsuffixarrayreader
void gt_freeSequentialsuffixarrayreader(Sequentialsuffixarrayreader **ssar)
{
  if ((*ssar)->suffixarray != NULL)
  {
    gt_freesuffixarray((*ssar)->suffixarray);
    gt_free((*ssar)->suffixarray);
  }
  gt_free(*ssar);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
movq (%rdi), %rax
testq %rax, %rax
je 0x151814
movq %rax, %rdi
callq 0x14d148
movq (%rbx), %rax
movq (%rax), %rdi
leaq 0x1f39f9(%rip), %rsi    # 0x345202
pushq $0x43
popq %rdx
callq 0x936f9
movq (%rbx), %rdi
leaq 0x1f39e7(%rip), %rsi    # 0x345202
pushq $0x45
popq %rdx
popq %rbx
jmp 0x936f9
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-seqread.c
// Function: gt_suftabSequentialsuffixarrayreader
const ESASuffixptr *gt_suftabSequentialsuffixarrayreader(
                        const Sequentialsuffixarrayreader *ssar)
{
  gt_assert(ssar != NULL);
  if (ssar->scanfile)
  {
    return ssar->suftab;
  }
  return ssar->suffixarray->suftab;
}

// Assembly:
testq %rdi, %rdi
je 0x151cc2
cmpb $0x1, 0x40(%rdi)
jne 0x151cb7
addq $0x30, %rdi
jmp 0x151cbe
movq (%rdi), %rdi
addq $0x58, %rdi
movq (%rdi), %rax
retq
pushq %rax
movq 0x2e629e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19333f(%rip), %rsi    # 0x2e5013
leaq 0x1f2c5d(%rip), %rdx    # 0x344938
leaq 0x1f3638(%rip), %rcx    # 0x34531a
leaq 0x1f3519(%rip), %r8     # 0x345202
movl $0xb6, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-shulen.c
// Function: gt_multiesa2shulengthdist_print
int gt_multiesa2shulengthdist_print(Sequentialsuffixarrayreader *ssar,
                                    const GtEncseq *encseq,
                                    GtError *err)
{
  GtBUstate_shulen *state;
  bool haserr = false;

  state = gt_malloc(sizeof (*state));
  state->numofdbfiles = gt_encseq_num_of_files(encseq);
  state->encseq = encseq;
#ifdef GENOMEDIFF_PAPER_IMPL
  state->leafdist = gt_malloc(sizeof (*state->leafdist) * state->numofdbfiles);
#endif
#ifdef SHUDEBUG
  state->nextid = 0;
#endif
  state->shulengthdist = shulengthdist_new(state->numofdbfiles);
  if (gt_esa_bottomup_shulen(ssar, state, err) != 0)
  {
    haserr = true;
  }
  if (!haserr)
  {
    shulengthdist_print(NULL,(const uint64_t * const*) state->shulengthdist,
                        state->numofdbfiles);
  }
  gt_array2dim_delete(state->shulengthdist);
#ifdef GENOMEDIFF_PAPER_IMPL
  gt_free(state->leafdist);
#endif
  gt_free(state);
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x1f35e3(%rip), %rsi    # 0x3454e7
pushq $0x48
popq %rdi
movl $0x17e, %edx            # imm = 0x17E
callq 0x93160
movq %rax, %rbx
movq %r15, %rdi
callq 0x79eb4
movq %rax, (%rbx)
movq %r15, 0x10(%rbx)
movq %rax, %rdi
callq 0x151f9c
movq %rax, 0x8(%rbx)
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x152029
movl %eax, %ebp
testl %eax, %eax
jne 0x151f51
movq (%rbx), %rdx
movq 0x8(%rbx), %rsi
xorl %edi, %edi
callq 0x1529ec
movq 0x8(%rbx), %rax
movq (%rax), %rdi
leaq 0x1f3588(%rip), %r14    # 0x3454e7
movq %r14, %rsi
movl $0x191, %edx            # imm = 0x191
callq 0x936f9
movq 0x8(%rbx), %rdi
movq %r14, %rsi
movl $0x191, %edx            # imm = 0x191
callq 0x936f9
movq %rbx, %rdi
movq %r14, %rsi
movl $0x195, %edx            # imm = 0x195
callq 0x936f9
xorl %eax, %eax
negl %ebp
sbbl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-shulen.c
// Function: shulengthdist_new
static uint64_t **shulengthdist_new(GtUword numofdbfiles)
{
  GtUword idx1, idx2;
  uint64_t **shulengthdist;

  gt_array2dim_malloc(shulengthdist,numofdbfiles,numofdbfiles);
  for (idx1=0; idx1 < numofdbfiles; idx1++)
  {
    for (idx2=0; idx2 < numofdbfiles; idx2++)
    {
      shulengthdist[idx1][idx2] = 0;
    }
  }
  return shulengthdist;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq (,%rdi,8), %r15
leaq 0x1f3531(%rip), %r12    # 0x3454e7
movq %r15, %rdi
movq %r12, %rsi
movl $0x145, %edx            # imm = 0x145
callq 0x93160
movq %rax, %r14
movq %r15, %rdi
imulq %rbx, %rdi
movq %r12, %rsi
movl $0x145, %edx            # imm = 0x145
callq 0x93160
movq %rax, (%r14)
pushq $0x1
popq %rax
cmpq %rbx, %rax
jae 0x151ff9
movq -0x8(%r14,%rax,8), %rcx
addq %r15, %rcx
movq %rcx, (%r14,%rax,8)
incq %rax
jmp 0x151fe3
xorl %eax, %eax
cmpq %rbx, %rax
je 0x15201a
movq (%r14,%rax,8), %rcx
xorl %edx, %edx
cmpq %rdx, %rbx
je 0x152015
andq $0x0, (%rcx,%rdx,8)
incq %rdx
jmp 0x152006
incq %rax
jmp 0x151ffb
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-shulen.c
// Function: shulengthdist_print
static void shulengthdist_print(const GtStrArray *file_names,
                                const uint64_t * const*shulengthdist,
                                GtUword numofdbfiles)
{
  GtUword idx1, idx2;

  /*shulengthdist[0][0] = 0; for testing */
  printf("# sum of shulen\n" GT_WU "\n",numofdbfiles);
  for (idx2=0; idx2 < numofdbfiles; idx2++)
  {
    if (file_names != NULL)
    {
      printf("%s\t",gt_str_array_get(file_names,idx2));
    } else
    {
      printf("" GT_WU "\t",idx2);
    }
    for (idx1=0; idx1 < numofdbfiles; idx1++)
    {
      if (idx1 != idx2)
      {
        printf(Formatuint64_t"\t",
               PRINTuint64_tcast(shulengthdist[idx1][idx2]));
      } else
      {
        printf("0.000000\t");
      }
    }
    printf("\n");
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1f2c17(%rip), %rdi    # 0x34561e
movq %rdx, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x1f9190(%rip), %r12    # 0x34bba8
leaq 0x1f2c14(%rip), %r13    # 0x345633
xorl %ebp, %ebp
movq %r15, (%rsp)
cmpq %rbx, %rbp
je 0x152a94
testq %r15, %r15
je 0x152a46
movq %r15, %rdi
movq %rbp, %rsi
callq 0xae386
leaq 0x1a3273(%rip), %rdi    # 0x2f5cb4
movq %rax, %rsi
jmp 0x152a4c
movq %r12, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x17070
xorl %r15d, %r15d
cmpq %r15, %rbx
je 0x152a83
cmpq %r15, %rbp
jne 0x152a6c
movq %r13, %rdi
xorl %eax, %eax
callq 0x17070
jmp 0x152a7e
movq (%r14,%r15,8), %rax
movq (%rax,%rbp,8), %rsi
movq %r12, %rdi
xorl %eax, %eax
callq 0x17070
incq %r15
jmp 0x152a56
pushq $0xa
popq %rdi
callq 0x179c0
incq %rbp
movq (%rsp), %r15
jmp 0x152a25
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-shulen.c
// Function: gt_multiesa2shulengthdist
int gt_multiesa2shulengthdist(Sequentialsuffixarrayreader *ssar,
                              const GtEncseq *encseq,
                              uint64_t **shulen,
                              const GtShuUnitFileInfo *unit_info,
                              GtError *err)
{
  GtBUstate_shulen *bustate;
  bool haserr = false;

  bustate = gt_malloc(sizeof (*bustate));
  bustate->numofdbfiles = unit_info->num_of_genomes;
  bustate->file_to_genome_map = unit_info->map_files;
  bustate->encseq = encseq;
#ifdef GENOMEDIFF_PAPER_IMPL
  bustate->leafdist
    = gt_malloc(sizeof (*bustate->leafdist) * bustate->numofdbfiles);
#endif
#ifdef SHUDEBUG
  bustate->nextid = 0;
#endif
  bustate->shulengthdist = shulen;
  if (gt_esa_bottomup_shulen(ssar, bustate, err) != 0)
  {
    haserr = true;
  }
#ifdef GENOMEDIFF_PAPER_IMPL
  gt_free(bustate->leafdist);
#endif
  gt_free(bustate);
  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
leaq 0x1f27e2(%rip), %rsi    # 0x3454e7
pushq $0x48
popq %rdi
movl $0x21c, %edx            # imm = 0x21C
callq 0x93160
movq %rax, %rbp
movq (%r14), %rax
movq %rax, (%rbp)
movq 0x20(%r14), %rax
movq %rax, 0x18(%rbp)
movq %r12, 0x10(%rbp)
movq %r15, 0x8(%rbp)
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x152029
movl %eax, %ebx
movq %rbp, %rdi
leaq 0x1f27a1(%rip), %rsi    # 0x3454e7
movl $0x22f, %edx            # imm = 0x22F
callq 0x936f9
xorl %eax, %eax
negl %ebx
sbbl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-shulen.c
// Function: gt_sfx_multiesashulengthdist_new
GtBUstate_shulen *gt_sfx_multiesashulengthdist_new(const GtEncseq *encseq,
                                            GenomediffInfo *gd_info)
{
  GtBUstate_shulen *bustate;

  bustate = gt_malloc(sizeof (*bustate));
  bustate->encseq = encseq;
  bustate->previousbucketlastsuffix = ULONG_MAX;
  bustate->idxoffset = 0;
  bustate->firstedgefromroot = false;
#ifdef SHUDEBUG
  bustate->nextid = 0;
#endif
  if (gd_info == NULL)
    bustate->unit_info = gt_shu_unit_info_new(encseq);
  else
    bustate->unit_info = gd_info->unit_info;

  bustate->numofdbfiles = gt_encseq_num_of_files(encseq);
#ifdef GENOMEDIFF_PAPER_IMPL
  bustate->leafdist
    = gt_malloc(sizeof (*bustate->leafdist) * bustate->numofdbfiles);
#endif
  bustate->file_to_genome_map = bustate->unit_info->map_files;
  if (gd_info == NULL)
    bustate->shulengthdist = shulengthdist_new(bustate->numofdbfiles);
  else
    bustate->shulengthdist = gd_info->shulensums;

  bustate->stack = (void *) gt_GtArrayGtBUItvinfo_new_shulen();
  return bustate;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1f2770(%rip), %rsi    # 0x3454e7
pushq $0x48
popq %rdi
movl $0x238, %edx            # imm = 0x238
callq 0x93160
movq %rax, %rbx
movq %r15, 0x10(%rax)
orq $-0x1, 0x28(%rax)
andq $0x0, 0x20(%rax)
movb $0x0, 0x30(%rax)
testq %r14, %r14
je 0x152da3
movq (%r14), %rax
jmp 0x152dab
movq %r15, %rdi
callq 0x1b21dd
movq %rax, 0x38(%rbx)
movq %r15, %rdi
callq 0x79eb4
movq %rax, (%rbx)
movq 0x38(%rbx), %rcx
movq 0x20(%rcx), %rcx
movq %rcx, 0x18(%rbx)
testq %r14, %r14
je 0x152dd1
movq 0x8(%r14), %rax
jmp 0x152dd9
movq %rax, %rdi
callq 0x151f9c
movq %rax, 0x8(%rbx)
callq 0x151e68
movq %rax, 0x40(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-shulen.c
// Function: gt_sfx_multiesashulengthdist_delete
void gt_sfx_multiesashulengthdist_delete(GtBUstate_shulen *bustate,
                                         GenomediffInfo *gd_info)
{
  if (bustate == NULL)
  {
    return;
  }
  gt_assert(bustate->shulengthdist != NULL);
  if (gd_info == NULL) {
    shulengthdist_print(bustate->unit_info->file_names,
                        (const uint64_t * const*) bustate->shulengthdist,
                        bustate->numofdbfiles);
    gt_array2dim_delete(bustate->shulengthdist);
    gt_shu_unit_info_delete(bustate->unit_info);
  }
  gt_GtArrayGtBUItvinfo_delete_shulen(bustate->stack,bustate);
#ifdef GENOMEDIFF_PAPER_IMPL
  gt_free(bustate->leafdist);
#endif
  gt_free(bustate);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1535c7
movq %rsi, %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
testq %rsi, %rsi
je 0x1535cf
testq %rax, %rax
jne 0x1535a3
movq (%rbx), %rdx
movq 0x38(%rbx), %rax
movq 0x18(%rax), %rdi
callq 0x1529ec
movq 0x8(%rbx), %rax
movq (%rax), %rdi
leaq 0x1f1f6b(%rip), %r14    # 0x3454e7
movq %r14, %rsi
movl $0x295, %edx            # imm = 0x295
callq 0x936f9
movq 0x8(%rbx), %rdi
movq %r14, %rsi
movl $0x295, %edx            # imm = 0x295
callq 0x936f9
movq 0x38(%rbx), %rdi
callq 0x1b2198
movq 0x40(%rbx), %rdi
callq 0x151e88
leaq 0x1f1f34(%rip), %rsi    # 0x3454e7
movq %rbx, %rdi
movl $0x29c, %edx            # imm = 0x29C
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x936f9
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x2e4992(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191a33(%rip), %rsi    # 0x2e5013
leaq 0x1f1f5b(%rip), %rdx    # 0x345542
leaq 0x1f1f73(%rip), %rcx    # 0x345561
leaq 0x1f1ef2(%rip), %r8     # 0x3454e7
movl $0x290, %r9d            # imm = 0x290
xorl %eax, %eax
callq 0x17a50
callq 0x17390
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-shulen.c
// Function: cartproduct_shulen
static void cartproduct_shulen(GtBUstate_shulen *state,
                               GtUword depth,
                               const GtUword *refnumdist,
                               const GtUword *querynumdist)
{
  GtUword referidx, shulenidx;

  for (referidx=0; referidx < state->numofdbfiles; referidx++)
  {
    if (refnumdist[referidx] > 0 && querynumdist[referidx] == 0)
    {
      for (shulenidx=0; shulenidx < state->numofdbfiles; shulenidx++)
      {
        if (querynumdist[shulenidx] > 0)
        {
          gt_assert(referidx != shulenidx);
          contribute_shulen(__LINE__,
                            state->shulengthdist,
                            referidx,
                            shulenidx,
                            querynumdist[shulenidx],
                            depth + 1);
        }
      }
    }
  }
}

// Assembly:
pushq %rax
incq %rsi
movq (%rdi), %r8
xorl %eax, %eax
cmpq %r8, %rax
jae 0x1538f1
cmpq $0x0, (%rdx,%rax,8)
je 0x1538be
cmpq $0x0, (%rcx,%rax,8)
je 0x1538c3
incq %rax
jmp 0x1538ab
xorl %r9d, %r9d
cmpq %r8, %r9
jae 0x1538be
movq (%rcx,%r9,8), %r10
testq %r10, %r10
je 0x1538ec
cmpq %r9, %rax
je 0x1538f3
movq 0x8(%rdi), %r8
imulq %rsi, %r10
movq (%r8,%rax,8), %r8
addq %r10, (%r8,%r9,8)
movq (%rdi), %r8
incq %r9
jmp 0x1538c6
popq %rax
retq
movq 0x2e466e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19170f(%rip), %rsi    # 0x2e5013
leaq 0x1f1cea(%rip), %rdx    # 0x3455f5
leaq 0x1f1cf9(%rip), %rcx    # 0x34560b
leaq 0x1f1bce(%rip), %r8     # 0x3454e7
movl $0x8f, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-splititv.c
// Function: gt_lcpintervalfindcharchildintv
bool gt_lcpintervalfindcharchildintv(const GtEncseq *encseq,
                                     GtReadmode readmode,
                                     GtUword totallength,
                                     const ESASuffixptr *suftab,
                                     Simplelcpinterval *itv,
                                     GtUchar cc,
                                     GtUword offset,
                                     GtUword left,
                                     GtUword right)
{
  GtUchar leftcc, rightcc;
  GtUword pos, rightbound, leftbound = left;

  pos = ESASUFFIXPTRGET(suftab,right) + offset;
  rightcc = SEQUENCE(encseq,pos);
  while (true)
  {
    pos = ESASUFFIXPTRGET(suftab,leftbound) + offset;
    leftcc = SEQUENCE(encseq,pos);
    if (leftcc == rightcc)
    {
      break;
    }
    rightbound = lcpintervalfindrightbound(encseq,readmode,
                                           totallength,suftab,leftcc,
                                           offset,leftbound,right);
    if (leftcc == cc)
    {
      itv->left = leftbound;
      itv->right = rightbound;
      return true;
    }
    if (leftcc > cc)
    {
      return false;
    }
    leftbound = rightbound+1;
  }
  if (leftcc == cc)
  {
    itv->left = leftbound;
    itv->right = right;
    return true;
  }
  return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %ebp
movq %r8, 0x10(%rsp)
movq %rcx, %r14
movq %rdx, %r15
movl %esi, (%rsp)
movq %rdi, 0x8(%rsp)
movq 0x60(%rsp), %rax
movq (%rcx,%rax,8), %rsi
addq 0x50(%rsp), %rsi
movl $0xff, 0x4(%rsp)
cmpq %rdx, %rsi
je 0x15397f
movq 0x8(%rsp), %rdi
movl (%rsp), %edx
callq 0x705e4
movzbl %al, %eax
movl %eax, 0x4(%rsp)
movq 0x58(%rsp), %r13
movq (%r14,%r13,8), %rsi
addq 0x50(%rsp), %rsi
movb $-0x1, %bl
cmpq %r15, %rsi
je 0x1539a3
movq 0x8(%rsp), %rdi
movl (%rsp), %edx
callq 0x705e4
movl %eax, %ebx
movzbl %bl, %r12d
cmpl %r12d, 0x4(%rsp)
je 0x1539e5
movq 0x8(%rsp), %rdi
movl (%rsp), %esi
movq %r15, %rdx
movq %r14, %rcx
movl %r12d, %r8d
movq 0x50(%rsp), %r9
pushq 0x60(%rsp)
pushq %r13
callq 0x153a13
addq $0x10, %rsp
cmpb %bpl, %r12b
je 0x1539f3
cmpb %bpl, %bl
ja 0x1539ef
incq %rax
movq %rax, %r13
jmp 0x153984
cmpb %bpl, %bl
movq 0x60(%rsp), %rcx
je 0x1539f6
xorl %eax, %eax
jmp 0x153a04
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %r13, (%rax)
movq %rcx, 0x8(%rax)
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-splititv.c
// Function: lcpintervalfindrightbound
static GtUword lcpintervalfindrightbound(const GtEncseq *encseq,
                                        GtReadmode readmode,
                                        GtUword totallength,
                                        const ESASuffixptr *suftab,
                                        GtUchar cc,
                                        GtUword offset,
                                        GtUword left,
                                        GtUword right)
{
  GtUword pos, mid;
  GtUchar midcc;

  while (right > left+1)
  {
    mid = GT_DIV2(left+right);
    pos = ESASUFFIXPTRGET(suftab,mid) + offset;
    midcc = SEQUENCE(encseq,pos);
    if (cc < midcc)
    {
      right = mid;
    } else
    {
      left = mid;
    }
  }
  return left;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbp
movl %r8d, %r14d
movq %rcx, %r15
movq %rdx, %rbx
movl %esi, 0x4(%rsp)
movq %rdi, 0x8(%rsp)
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %r12
leaq 0x1(%r12), %rax
cmpq %rax, %rdi
jbe 0x153a8c
leaq (%r12,%rdi), %r13
shrq %r13
movq (%r15,%r13,8), %rsi
addq %rbp, %rsi
movl $0xff, %eax
cmpq %rbx, %rsi
je 0x153a7d
movq %rdi, 0x10(%rsp)
movq 0x8(%rsp), %rdi
movl 0x4(%rsp), %edx
callq 0x705e4
movq 0x10(%rsp), %rdi
movzbl %al, %eax
cmpl %r14d, %eax
ja 0x153a87
movq %r13, %r12
jmp 0x153a40
movq %r13, %rdi
jmp 0x153a40
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq