LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_checkcountspecialcodes
void gt_bcktab_checkcountspecialcodes(const GtBcktab *bcktab)
{
  GtCodetype code;
  GtUword *count;

  if (bcktab->prefixlength >= 2U)
  {
    count = gt_malloc(sizeof (*count) * bcktab->prefixlength);
    for (code=0; code<bcktab->numofallcodes; code++)
    {
      pfxidxpartialsums(count, code, bcktab);
    }
    gt_free(count);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x48(%rdi), %edi
cmpq $0x2, %rdi
jb 0x18b9ac
shlq $0x3, %rdi
leaq 0x212aba(%rip), %rsi    # 0x39e326
movl $0x2a9, %edx            # imm = 0x2A9
callq 0x104226
movq %rax, %r14
cmpq $0x0, 0x58(%rbx)
je 0x18b98a
movl 0x48(%rbx), %ecx
xorl %r15d, %r15d
movl %ecx, %edx
shlq $0x3, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x173a0
movl 0x48(%rbx), %r13d
addl $-0x2, %r13d
je 0x18b8f1
xorl %r12d, %r12d
movq 0x78(%rbx), %rax
movl %r13d, %r13d
movq (%rax,%r13,8), %rcx
movq %r15, %rax
subq %rcx, %rax
jb 0x18b8ec
incq %rcx
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
je 0x18b8cc
decl %r13d
jmp 0x18b8e7
leal -0x1(%r13), %ebp
movq %rbx, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x18bbb9
movq %rax, (%r14,%r13,8)
addq %rax, %r12
movl %ebp, %r13d
testl %r13d, %r13d
jne 0x18b8a7
movl 0x48(%rbx), %ecx
jmp 0x18b8f9
movl $0x2, %ecx
xorl %r12d, %r12d
movq 0x78(%rbx), %rax
leal -0x1(%rcx), %esi
movq (%rax,%rsi,8), %rdi
movq %r15, %rax
subq %rdi, %rax
jae 0x18b910
xorl %edi, %edi
jmp 0x18b941
incq %rdi
xorl %edx, %edx
divq %rdi
movl $0x0, %edi
testq %rdx, %rdx
jne 0x18b941
movq 0x20(%rbx), %rdx
testq %rdx, %rdx
je 0x18b931
movq (%rdx,%rax,8), %rdi
jmp 0x18b941
movq 0x10(%rbx), %rdx
testq %rdx, %rdx
je 0x18b9e8
movl (%rdx,%rax,4), %edi
movq %rdi, %rax
subq %r12, %rax
jb 0x18b9bb
movq %rax, (%r14,%rsi,8)
cmpl $0x3, %ecx
jb 0x18b97d
leal -0x2(%rcx), %eax
movq 0x8(%r14,%rax,8), %rdx
decq %rax
movq %rax, %rsi
addq 0x8(%r14,%rax,8), %rdx
movq %rdx, 0x8(%r14,%rax,8)
decq %rsi
testl %eax, %eax
movq %rsi, %rax
jne 0x18b960
movq 0x8(%r14), %r8
cmpq %r8, %rdi
jne 0x18b9c0
incq %r15
cmpq 0x58(%rbx), %r15
jb 0x18b88a
leaq 0x212995(%rip), %rsi    # 0x39e326
movq %r14, %rdi
movl $0x2ae, %edx            # imm = 0x2AE
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1045eb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5bbaf
movq 0x32d5b9(%rip), %rax    # 0x4b8f80
movq (%rax), %rdi
leaq 0x212e7d(%rip), %rsi    # 0x39e84e
movq %r15, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x17ab0
movl $0x2, %edi
callq 0x17940
callq 0x5bb76
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_map
GtBcktab *gt_bcktab_map(const char *indexname,
                        unsigned int numofchars,
                        unsigned int prefixlength,
                        GtUword maxvalue,
                        bool withspecialsuffixes,
                        GtError *err)
{
  GtBcktab *bcktab;

  bcktab = gt_bcktab_new_withinit(numofchars,prefixlength,maxvalue,
                                  withspecialsuffixes);
  bcktab->allocated = false;
  if (fillbcktabmapspecstartptr(bcktab, indexname, err) != 0)
  {
    gt_bcktab_delete(bcktab);
    return NULL;
  }
  if (withspecialsuffixes)
  {
    if (bcktab->ulongdistpfxidx != NULL)
    {
      ulong_setdistpfxidxptrs(bcktab->ulongdistpfxidx,
                              bcktab->ulongdistpfxidx[0],
                              bcktab->basepower,bcktab->prefixlength);
    } else
    {
      if (bcktab->uintdistpfxidx != NULL)
      {
        uint_setdistpfxidxptrs(bcktab->uintdistpfxidx,
                               bcktab->uintdistpfxidx[0],
                               bcktab->basepower,bcktab->prefixlength);
      }
    }
#ifdef CHECKCOUNTSPECIALCODES
    gt_bcktab_checkcountspecialcodes(bcktab);
#endif
  }
  return bcktab;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %r14
movl %r8d, %ebp
movq %rdi, %r15
movl %esi, %edi
movl %edx, %esi
movq %rcx, %rdx
movl %r8d, %ecx
callq 0x18b3d1
movq %rax, %rbx
movb $0x0, 0xa0(%rax)
testq %r14, %r14
je 0x18ba2b
movq %r14, %rdi
callq 0xfcc32
testb %al, %al
jne 0x18bb13
movq %r15, %rdi
callq 0x11acc9
movq %rax, %r15
leaq 0x212e6d(%rip), %rsi    # 0x39e8aa
movq %rax, %rdi
callq 0x11acf3
movq %r15, %rdi
callq 0x11b0a1
movq 0x30(%rbx), %rcx
movq %rbx, %r8
addq $0xa8, %r8
leaq -0x318(%rip), %rdi      # 0x18b74a
movq %rbx, %rsi
movq %rax, %rdx
movq %r14, %r9
callq 0x104dc0
movl %eax, %r14d
movq %r15, %rdi
callq 0x11bdbf
testl %r14d, %r14d
je 0x18ba8c
movq %rbx, %rdi
callq 0x18b533
xorl %ebx, %ebx
jmp 0x18bb05
testb %bpl, %bpl
je 0x18bb05
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x18bac8
movl 0x48(%rbx), %esi
decl %esi
cmpl $0x2, %esi
jb 0x18bafd
movq 0x70(%rbx), %rcx
movq (%rax), %rdx
movl %esi, %esi
movl $0x1, %edi
movq (%rcx,%rdi,8), %r8
leaq (%rdx,%r8,8), %rdx
movq %rdx, (%rax,%rdi,8)
incq %rdi
cmpq %rdi, %rsi
jne 0x18bab2
jmp 0x18bafd
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x18bafd
movl 0x48(%rbx), %esi
decl %esi
cmpl $0x2, %esi
jb 0x18bafd
movq 0x70(%rbx), %rcx
movq (%rax), %rdx
movl %esi, %esi
movl $0x1, %edi
movq (%rcx,%rdi,8), %r8
leaq (%rdx,%r8,4), %rdx
movq %rdx, (%rax,%rdi,8)
incq %rdi
cmpq %rdi, %rsi
jne 0x18bae9
movq %rbx, %rdi
callq 0x18b846
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x5bbe8
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_show
void gt_bcktab_show(const GtBcktab *bcktab)
{
  unsigned int prefixindex;

  for (prefixindex=1U; prefixindex < bcktab->prefixlength-1; prefixindex++)
  {
    GtCodetype code;
    GtUword sum = 0, value;
    for (code = 0; code < bcktab->basepower[prefixindex]; code++)
    {
      value = gt_bcktab_distpfxidx_get(bcktab,prefixindex-1,code);
      sum += value;
      printf("distpfxidx[%u]["GT_WU"]="GT_WU"\n",prefixindex,code,value);
    }
    printf("sum "GT_WU"\n",sum);
  }
}

// Assembly:
movl 0x48(%rdi), %eax
addl $-0x3, %eax
cmpl $-0x3, %eax
ja 0x18bbb8
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %r14d
leaq 0x212922(%rip), %r12    # 0x39e464
movq 0x70(%rbx), %rax
cmpq $0x0, (%rax,%r14,8)
je 0x18bb89
leal -0x1(%r14), %ebp
xorl %r13d, %r13d
xorl %r15d, %r15d
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x18bbb9
addq %rax, %r13
movq %r12, %rdi
movl %r14d, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x17070
incq %r15
movq 0x70(%rbx), %rax
cmpq (%rax,%r14,8), %r15
jb 0x18bb57
jmp 0x18bb8c
xorl %r13d, %r13d
leaq 0x2128ea(%rip), %rdi    # 0x39e47d
movq %r13, %rsi
xorl %eax, %eax
callq 0x17070
incq %r14
movl 0x48(%rbx), %eax
decl %eax
cmpq %rax, %r14
jb 0x18bb42
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/bcktab.c
// Function: gt_bcktab_distpfxidx_get
static GtUword gt_bcktab_distpfxidx_get(const GtBcktab *bcktab,
                                              unsigned int prefixindex,
                                              GtCodetype ordercode)
{
  if (bcktab->ulongdistpfxidx != NULL)
  {
    return bcktab->ulongdistpfxidx[prefixindex][ordercode];
  }
  gt_assert(bcktab->uintdistpfxidx != NULL);
  return (GtUword) bcktab->uintdistpfxidx[prefixindex][ordercode];
}

// Assembly:
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0x18bbcd
movl %esi, %ecx
movq (%rax,%rcx,8), %rax
movq (%rax,%rdx,8), %rax
retq
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x18bbe0
movl %esi, %ecx
movq (%rax,%rcx,8), %rax
movl (%rax,%rdx,4), %eax
retq
pushq %rax
callq 0x5bc21
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_leftborder_show
void gt_bcktab_leftborder_show(const GtBcktab *bcktab)
{
  GtCodetype idx;

  for (idx=0; idx<bcktab->numofallcodes; idx++)
  {
    printf("leftborder[" FormatGtCodetype "]="GT_WU,idx,
                                    gt_bcktab_get_leftborder(bcktab,idx));
    if (idx > 0)
    {
      printf(" size " GT_WU,gt_bcktab_get_leftborder(bcktab,idx) -
                            gt_bcktab_get_leftborder(bcktab,idx-1));
    }
    printf("\n");
  }
}

// Assembly:
cmpq $0x0, 0x58(%rdi)
je 0x18bc75
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x212882(%rip), %r14    # 0x39e486
leaq 0x1f93c3(%rip), %r15    # 0x384fce
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x18ae26
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x17070
testq %r12, %r12
je 0x18bc59
movq %rbx, %rdi
movq %r12, %rsi
callq 0x18ae26
movq %rax, %r13
leaq -0x1(%r12), %rsi
movq %rbx, %rdi
callq 0x18ae26
subq %rax, %r13
movq %r15, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x17070
movl $0xa, %edi
callq 0x17a20
incq %r12
cmpq 0x58(%rbx), %r12
jb 0x18bc0e
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_updatespecials
void gt_bcktab_updatespecials(GtBcktab *bcktab,
                              GtCodetype code,
                              unsigned int prefixindex)
{
  GtCodetype specialcode;

  gt_assert(prefixindex > 0);
  gt_assert(prefixindex <= bcktab->prefixlength);
  gt_assert(code < bcktab->numofallcodes);
  if (prefixindex < bcktab->prefixlength-1)
  {
    GtCodetype ordercode = (code - bcktab->filltable[prefixindex])/
                           (bcktab->filltable[prefixindex]+1);
    gt_bcktab_distpfxidx_increment(bcktab,prefixindex-1,ordercode);
  }
  gt_assert(code >= (GtCodetype) (bcktab->numofchars-1));
  specialcode = GT_FROMCODE2SPECIALCODE(code,bcktab->numofchars);
  if (bcktab->ulongcountspecialcodes != NULL)
  {
    bcktab->ulongcountspecialcodes[specialcode]++;
  } else
  {
    gt_assert(bcktab->uintcountspecialcodes != NULL);
    bcktab->uintcountspecialcodes[specialcode]++;
  }
}

// Assembly:
pushq %rax
testl %edx, %edx
je 0x18bd9d
movl %edx, %ecx
movl 0x48(%rdi), %eax
cmpl %edx, %eax
jb 0x18bda2
cmpq %rsi, 0x58(%rdi)
jbe 0x18bda7
decl %eax
cmpl %ecx, %eax
jbe 0x18bd5f
movq 0x28(%rdi), %r8
movq 0x78(%rdi), %rax
movl %ecx, %edx
movq (%rax,%rdx,8), %r9
movq %rsi, %rax
subq %r9, %rax
incq %r9
xorl %edx, %edx
divq %r9
decl %ecx
testq %r8, %r8
je 0x18bd4d
movl %ecx, %ecx
movq (%r8,%rcx,8), %rcx
incq (%rcx,%rax,8)
jmp 0x18bd5f
movq 0x18(%rdi), %rdx
testq %rdx, %rdx
je 0x18bdb6
movl %ecx, %ecx
movq (%rdx,%rcx,8), %rcx
incl (%rcx,%rax,4)
movl 0x4c(%rdi), %ecx
leal -0x1(%rcx), %edx
movq %rsi, %rax
subq %rdx, %rax
jb 0x18bdac
cmpl $0x4, %ecx
jne 0x18bd78
shrq $0x2, %rsi
jmp 0x18bd80
xorl %edx, %edx
divq %rcx
movq %rax, %rsi
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x18bd8f
incq (%rax,%rsi,8)
jmp 0x18bd9b
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x18bdb1
incl (%rax,%rsi,4)
popq %rax
retq
callq 0x5bd75
callq 0x5bd3c
callq 0x5bc58
callq 0x5bcca
callq 0x5bc91
callq 0x5bd03
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_addfinalspecials
void gt_bcktab_addfinalspecials(GtBcktab *bcktab,
                                GtUword specialcharacters)
{
  if (bcktab->withspecialsuffixes)
  {
    GtCodetype specialcode;

    gt_assert(bcktab->filltable[0] >= (GtCodetype) (bcktab->numofchars-1));
    specialcode = GT_FROMCODE2SPECIALCODE(bcktab->filltable[0],
                                          bcktab->numofchars);
    if (bcktab->ulongcountspecialcodes != NULL)
    {
      bcktab->ulongcountspecialcodes[specialcode]
        += (GtUword) (specialcharacters + 1);
    } else
    {
      gt_assert(bcktab->uintcountspecialcodes != NULL);
      bcktab->uintcountspecialcodes[specialcode]
        += (uint32_t) (specialcharacters + 1);
    }
  }
}

// Assembly:
pushq %rax
cmpb $0x1, 0xa1(%rdi)
jne 0x18be1c
movq 0x78(%rdi), %rax
movq (%rax), %rax
movl 0x4c(%rdi), %r8d
leal -0x1(%r8), %edx
movq %rax, %rcx
subq %rdx, %rcx
jb 0x18be1e
cmpl $0x4, %r8d
jne 0x18bde8
shrq $0x2, %rax
jmp 0x18bdf0
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq 0x20(%rdi), %rcx
testq %rcx, %rcx
je 0x18be09
movq (%rcx,%rax,8), %rdx
addq %rsi, %rdx
incq %rdx
movq %rdx, (%rcx,%rax,8)
jmp 0x18be1c
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x18be23
movl (%rcx,%rax,4), %edx
addl %esi, %edx
incl %edx
movl %edx, (%rcx,%rax,4)
popq %rax
retq
callq 0x5bde7
callq 0x5bdae
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_calcboundsparts
unsigned int gt_bcktab_calcboundsparts(GtBucketspecification *bucketspec,
                                       const GtBcktab *bcktab,
                                       GtCodetype code,
                                       GtCodetype maxcode,
                                       GtUword totalwidth,
                                       unsigned int rightchar)
{
  bucketspec->left = gt_bcktab_get_leftborder(bcktab,code);
  if (code < maxcode)
  {
    GtUword nextleftborder = gt_bcktab_get_leftborder(bcktab,code+1);

    if (nextleftborder > 0)
    {
      bucketspec->nonspecialsinbucket = nextleftborder - bucketspec->left;
    } else
    {
      bucketspec->nonspecialsinbucket = 0;
    }
  } else
  {
    gt_assert(totalwidth >= bucketspec->left);
    bucketspec->nonspecialsinbucket
      = (GtUword) (totalwidth - bucketspec->left);
  }
  if (bcktab->withspecialsuffixes && rightchar == bcktab->numofchars - 1)
  {
    GtCodetype specialcode;

    gt_assert(code >= (GtCodetype) (bcktab->numofchars-1));
    specialcode = GT_FROMCODE2SPECIALCODE(code,bcktab->numofchars);
    if (bcktab->ulongcountspecialcodes != NULL)
    {
      bucketspec->specialsinbucket
        = bcktab->ulongcountspecialcodes[specialcode];
    } else
    {
      gt_assert(bcktab->uintcountspecialcodes != NULL);
      bucketspec->specialsinbucket
        = (GtUword) bcktab->uintcountspecialcodes[specialcode];
    }
    if (bucketspec->nonspecialsinbucket >= bucketspec->specialsinbucket)
    {
      bucketspec->nonspecialsinbucket -= bucketspec->specialsinbucket;
    } else
    {
      bucketspec->nonspecialsinbucket = 0;
    }
  } else
  {
    bucketspec->specialsinbucket = 0;
  }
  return (rightchar < bcktab->numofchars - 1) ? (rightchar + 1) : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movq %r8, %r15
movq %rcx, %rbp
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x18ae26
movq %rax, (%r14)
cmpq %rbp, %r12
jae 0x18be72
leaq 0x1(%r12), %rsi
movq %r13, %rdi
callq 0x18ae26
testq %rax, %rax
je 0x18be7c
movq %rax, %r15
subq (%r14), %r15
jmp 0x18be7f
subq %rax, %r15
jae 0x18be7f
callq 0x5be20
xorl %r15d, %r15d
movq %r15, 0x8(%r14)
movl 0x4c(%r13), %ecx
leal -0x1(%rcx), %edx
cmpl %ebx, %edx
sete %al
andb 0xa1(%r13), %al
cmpb $0x1, %al
jne 0x18beb1
movl %ebx, %edx
movq %r12, %rax
subq %rdx, %rax
jb 0x18bf0b
movl %ecx, %ecx
cmpl $0x4, %ecx
jne 0x18bebb
shrq $0x2, %r12
jmp 0x18bec3
movq $0x0, 0x10(%r14)
jmp 0x18bef2
xorl %edx, %edx
divq %rcx
movq %rax, %r12
movq 0x20(%r13), %rax
testq %rax, %rax
je 0x18bed2
movq (%rax,%r12,8), %rax
jmp 0x18bedf
movq 0x10(%r13), %rax
testq %rax, %rax
je 0x18bf10
movl (%rax,%r12,4), %eax
movq %rax, 0x10(%r14)
xorl %ecx, %ecx
subq %rax, %r15
cmovaeq %r15, %rcx
movq %rcx, 0x8(%r14)
movl %ebx, %edx
leal 0x1(%rbx), %ecx
xorl %eax, %eax
cmpl %ebx, %edx
cmoval %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5be92
callq 0x5be59
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_calcboundaries
void gt_bcktab_calcboundaries(GtBucketspecification *bucketspec,
                              const GtBcktab *bcktab,
                              GtCodetype code)
{
  gt_assert(code != bcktab->numofallcodes);
  (void) gt_bcktab_calcboundsparts(bucketspec,
                                   bcktab,
                                   code,
                                   bcktab->numofallcodes, /*code<numofallcodes*/
                                   0,  /* not necessary */
                                   bcktab->withspecialsuffixes
                                    ? (unsigned int) (code % bcktab->numofchars)
                                    : 0);
}

// Assembly:
movq 0x58(%rsi), %rcx
cmpq %rdx, %rcx
je 0x18bf47
movq %rdx, %r8
xorl %r9d, %r9d
cmpb $0x1, 0xa1(%rsi)
jne 0x18bf3c
movl 0x4c(%rsi), %r9d
movq %r8, %rax
xorl %edx, %edx
divq %r9
movq %rdx, %r9
movq %r8, %rdx
xorl %r8d, %r8d
jmp 0x18be28
pushq %rax
callq 0x5becb
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_determinemaxsize
void gt_bcktab_determinemaxsize(GtBcktab *bcktab,
                                GtCodetype mincode,
                                GtCodetype maxcode,
                                GtUword partwidth)
{
  unsigned int rightchar = (unsigned int) (mincode % bcktab->numofchars);
  GtBucketspecification bucketspec;
  GtCodetype code;

#ifdef SKDEBUG
  printf("mincode="GT_WU",maxcode="GT_WU",partwidth="GT_WU",totallength="
         GT_WU"\n", (GtUword) mincode,(GtUword) maxcode, partwidth,totallength);
#endif
  bcktab->maxbucketinfo.specialsmaxbucketsize = 1UL;
  bcktab->maxbucketinfo.nonspecialsmaxbucketsize = 1UL;
  bcktab->maxbucketinfo.maxbucketsize = 1UL;
  for (code = mincode; code <= maxcode; code++)
  {
    rightchar = gt_bcktab_calcboundsparts(&bucketspec,
                                          bcktab,
                                          code,
                                          maxcode,
                                          partwidth,
                                          rightchar);
    if (bucketspec.nonspecialsinbucket >
        bcktab->maxbucketinfo.nonspecialsmaxbucketsize)
    {
      bcktab->maxbucketinfo.nonspecialsmaxbucketsize
        = bucketspec.nonspecialsinbucket;
    }
    if (bucketspec.specialsinbucket >
        bcktab->maxbucketinfo.specialsmaxbucketsize)
    {
      bcktab->maxbucketinfo.specialsmaxbucketsize = bucketspec.specialsinbucket;
    }
    if (bucketspec.nonspecialsinbucket + bucketspec.specialsinbucket
        > bcktab->maxbucketinfo.maxbucketsize)
    {
      bcktab->maxbucketinfo.maxbucketsize = bucketspec.nonspecialsinbucket +
                                            bucketspec.specialsinbucket;
    }
  }
  /*
  gt_logger_log(logger,"maxbucket (specials)="GT_WU"",
              bcktab->maxbucketinfo.specialsmaxbucketsize);
  gt_logger_log(logger,"maxbucket (nonspecials)="GT_WU"",
              bcktab->maxbucketinfo.nonspecialsmaxbucketsize);
  gt_logger_log(logger,"maxbucket (all)="GT_WU"",
              bcktab->maxbucketinfo.maxbucketsize);
  */
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %rbx
movl 0x4c(%rdi), %ecx
movl $0x1, %eax
movq %rax, 0x90(%rdi)
movq %rax, 0x88(%rdi)
movq %rax, 0x98(%rdi)
cmpq %rdx, %rsi
ja 0x18c03e
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq %rsi, %rax
xorl %edx, %edx
divq %rcx
movq %rdx, %rax
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
movl %eax, %r9d
callq 0x18be28
movq 0x10(%rsp), %rcx
cmpq 0x88(%r12), %rcx
jbe 0x18c00a
movq %rcx, 0x88(%r12)
movq 0x18(%rsp), %rdx
cmpq 0x90(%r12), %rdx
jbe 0x18c021
movq %rdx, 0x90(%r12)
addq %rcx, %rdx
cmpq 0x98(%r12), %rdx
jbe 0x18c036
movq %rdx, 0x98(%r12)
incq %r15
cmpq %r14, %r15
jbe 0x18bfdc
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_singletonmaxprefixindex
unsigned int gt_bcktab_singletonmaxprefixindex(const GtBcktab *bcktab,
                                               GtCodetype code)
{
  if (bcktab->prefixlength > 2U)
  {
    GtCodetype ordercode, divisor;
    unsigned int prefixindex;

    for (prefixindex=bcktab->prefixlength-2; prefixindex>=1U; prefixindex--)
    {
      if (code >= bcktab->filltable[prefixindex])
      {
        ordercode = code - bcktab->filltable[prefixindex];
        divisor = bcktab->filltable[prefixindex] + 1;
        if (ordercode % divisor == 0)
        {
          ordercode /= divisor;
          if (gt_bcktab_distpfxidx_get(bcktab,prefixindex-1,ordercode) > 0)
          {
            return prefixindex;
          }
        }
      } else
      {
        break;
      }
    }
  }
  return bcktab->prefixlength-1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x48(%rdi), %ebx
cmpl $0x3, %ebx
jb 0x18c0b4
movq %rsi, %r15
movq %rdi, %r14
addl $-0x2, %ebx
movq 0x78(%r14), %rax
movl %ebx, %ecx
movq (%rax,%rcx,8), %rcx
movq %r15, %rax
subq %rcx, %rax
jb 0x18c0b0
incq %rcx
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
je 0x18c095
decl %ebx
movl %ebx, %ebp
jmp 0x18c0aa
leal -0x1(%rbx), %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x18bbb9
testq %rax, %rax
jne 0x18c0b6
movl %ebp, %ebx
testl %ebp, %ebp
jne 0x18c070
movl 0x48(%r14), %ebx
decl %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_distpfxidxpartialsums
GtUword gt_bcktab_distpfxidxpartialsums(const GtBcktab *bcktab,
                                              GtCodetype code,
                                              unsigned int lowerbound)
{
  GtCodetype ordercode, divisor;
  GtUword sum = 0;
  unsigned int prefixindex;

  for (prefixindex=bcktab->prefixlength-2; prefixindex>lowerbound;
       prefixindex--)
  {
    if (code >= bcktab->filltable[prefixindex])
    {
      ordercode = code - bcktab->filltable[prefixindex];
      divisor = bcktab->filltable[prefixindex] + 1;
      if (ordercode % divisor == 0)
      {
        ordercode /= divisor;
        sum += gt_bcktab_distpfxidx_get(bcktab,prefixindex-1,ordercode);
      }
    } else
    {
      break;
    }
  }
  return sum;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x48(%rdi), %r12d
addl $-0x2, %r12d
cmpl %edx, %r12d
jbe 0x18c11d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
xorl %ebx, %ebx
movq 0x78(%r15), %rax
movl %r12d, %ecx
movq (%rax,%rcx,8), %rcx
movq %r14, %rax
subq %rcx, %rax
jb 0x18c11f
incq %rcx
xorl %edx, %edx
divq %rcx
decl %r12d
testq %rdx, %rdx
jne 0x18c116
movq %r15, %rdi
movl %r12d, %esi
movq %rax, %rdx
callq 0x18bbb9
addq %rax, %rbx
cmpl %ebp, %r12d
ja 0x18c0e2
jmp 0x18c11f
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_pfxidx2lcpvalues_uint8
unsigned int gt_bcktab_pfxidx2lcpvalues_uint8(unsigned int *minprefixindex,
                                              uint8_t *smalllcpvalues,
                                              GtUword specialsinbucket,
                                              const GtBcktab *bcktab,
                                              GtCodetype code)
{
  unsigned int prefixindex, maxprefixindex = 0;
  GtUword idx, value, insertpos;
  GtCodetype ordercode, divisor;

  gt_assert(smalllcpvalues != NULL);
  *minprefixindex = bcktab->prefixlength;
  insertpos = specialsinbucket;
  for (prefixindex=1U; prefixindex<bcktab->prefixlength-1; prefixindex++)
  {
    if (code >= bcktab->filltable[prefixindex])
    {
      ordercode = code - bcktab->filltable[prefixindex];
      divisor = bcktab->filltable[prefixindex] + 1;
      if (ordercode % divisor == 0)
      {
        ordercode /= divisor;
        value = gt_bcktab_distpfxidx_get(bcktab,prefixindex-1,ordercode);
        if (value > 0)
        {
          maxprefixindex = prefixindex;
          if (*minprefixindex > prefixindex)
          {
            *minprefixindex = prefixindex;
          }
          for (idx=0; idx < value; idx++)
          {
            gt_assert(insertpos > 0);
            smalllcpvalues[--insertpos] = (uint8_t) prefixindex;
          }
        }
      }
    }
  }
  if (insertpos > 0)
  {
    maxprefixindex = bcktab->prefixlength-1;
    if (*minprefixindex == bcktab->prefixlength)
    {
      *minprefixindex = bcktab->prefixlength-1;
    }
    while (insertpos > 0)
    {
      smalllcpvalues[--insertpos] = (uint8_t) (bcktab->prefixlength-1);
    }
  }
  return maxprefixindex;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x18c206
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r14
movl 0x48(%rcx), %ecx
movq %rdi, (%rsp)
movl %ecx, (%rdi)
leal -0x1(%rcx), %eax
xorl %r12d, %r12d
cmpl $0x2, %eax
jb 0x18c1ce
movq %r8, %r13
xorl %r12d, %r12d
movl $0x1, %ebp
movq 0x78(%rbx), %rax
movq (%rax,%rbp,8), %rcx
movq %r13, %rax
subq %rcx, %rax
jb 0x18c1c0
incq %rcx
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
jne 0x18c1c0
leal -0x1(%rbp), %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x18bbb9
testq %rax, %rax
je 0x18c1c0
movq (%rsp), %rdx
movl (%rdx), %ecx
cmpq %rcx, %rbp
jae 0x18c1a4
movl %ebp, (%rdx)
movq %r15, %rcx
subq $0x1, %rcx
jb 0x18c201
movb %bpl, -0x1(%r14,%r15)
movq %rcx, %r15
decq %rax
jne 0x18c1a7
movl %ebp, %r12d
movq %rcx, %r15
incq %rbp
movl 0x48(%rbx), %ecx
leal -0x1(%rcx), %eax
cmpq %rax, %rbp
jb 0x18c167
testq %r15, %r15
je 0x18c1ef
movq (%rsp), %rdx
cmpl %ecx, (%rdx)
jne 0x18c1dd
movl %eax, (%rdx)
movb 0x48(%rbx), %cl
decb %cl
movb %cl, -0x1(%r14,%r15)
decq %r15
jne 0x18c1dd
movl %eax, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5bf04
callq 0x5bf3d
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_pfxidx2lcpvalues_Lcpvaluetype
unsigned int gt_bcktab_pfxidx2lcpvalues_Lcpvaluetype(
                                              unsigned int *minprefixindex,
                                              GtLcpvaluetype *bucketoflcpvalues,
                                              GtUword specialsinbucket,
                                              const GtBcktab *bcktab,
                                              GtCodetype code)
{
  unsigned int prefixindex, maxprefixindex = 0;
  GtUword idx, value, insertpos;
  GtCodetype ordercode, divisor;

  gt_assert(bucketoflcpvalues != NULL);
  *minprefixindex = bcktab->prefixlength;
  insertpos = specialsinbucket;
  for (prefixindex=1U; prefixindex<bcktab->prefixlength-1; prefixindex++)
  {
    if (code >= bcktab->filltable[prefixindex])
    {
      ordercode = code - bcktab->filltable[prefixindex];
      divisor = bcktab->filltable[prefixindex] + 1;
      if (ordercode % divisor == 0)
      {
        ordercode /= divisor;
        value = gt_bcktab_distpfxidx_get(bcktab,prefixindex-1,ordercode);
        if (value > 0)
        {
          maxprefixindex = prefixindex;
          if (*minprefixindex > prefixindex)
          {
            *minprefixindex = prefixindex;
          }
          for (idx=0; idx < value; idx++)
          {
            gt_assert(insertpos > 0);
            bucketoflcpvalues[--insertpos] = (GtLcpvaluetype) prefixindex;
          }
        }
      }
    }
  }
  if (insertpos > 0)
  {
    maxprefixindex = bcktab->prefixlength-1;
    if (*minprefixindex == bcktab->prefixlength)
    {
      *minprefixindex = bcktab->prefixlength-1;
    }
    while (insertpos > 0)
    {
      bucketoflcpvalues[--insertpos]
        = (GtLcpvaluetype) (bcktab->prefixlength-1);
    }
  }
  return maxprefixindex;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x18c2dc
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl 0x48(%rcx), %ecx
movq %rdi, (%rsp)
movl %ecx, (%rdi)
leal -0x1(%rcx), %eax
xorl %r12d, %r12d
cmpl $0x2, %eax
jb 0x18c2a4
movq %r8, %r13
xorl %r12d, %r12d
movl $0x1, %ebp
movq 0x78(%rbx), %rax
movq (%rax,%rbp,8), %rcx
movq %r13, %rax
subq %rcx, %rax
jb 0x18c296
incq %rcx
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
jne 0x18c296
leal -0x1(%rbp), %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x18bbb9
testq %rax, %rax
je 0x18c296
movq (%rsp), %rdx
movl (%rdx), %ecx
cmpq %rcx, %rbp
jae 0x18c284
movl %ebp, (%rdx)
subq $0x1, %r14
jb 0x18c2d7
movl %ebp, (%r15,%r14,4)
decq %rax
jne 0x18c284
movl %ebp, %r12d
incq %rbp
movl 0x48(%rbx), %ecx
leal -0x1(%rcx), %eax
cmpq %rax, %rbp
jb 0x18c247
testq %r14, %r14
je 0x18c2c5
movq (%rsp), %rdx
cmpl %ecx, (%rdx)
jne 0x18c2b3
movl %eax, (%rdx)
movl 0x48(%rbx), %ecx
decl %ecx
movl %ecx, -0x4(%r15,%r14,4)
decq %r14
jne 0x18c2b3
movl %eax, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5bf76
callq 0x5bfaf
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_leftborderpartialsums
GtUword gt_bcktab_leftborderpartialsums(
                             GtUword *saved_bucketswithoutwholeleaf,
                             GtUword *numofsuffixestosort,
                             GtBcktab *bcktab)
{
  GtUword code, largestbucketsize, sumbuckets, saved = 0, currentsize;

  gt_assert(bcktab->numofallcodes > 0);
  largestbucketsize = sumbuckets = gt_bcktab_get_leftborder(bcktab,0);
  for (code = 1UL; code < bcktab->numofallcodes; code++)
  {
    currentsize = gt_bcktab_get_leftborder(bcktab,code);
    sumbuckets += currentsize;
    if (largestbucketsize < currentsize)
    {
      largestbucketsize = currentsize;
    }
    gt_bcktab_leftborder_assign(&bcktab->leftborder,code,sumbuckets);
  }
  gt_bcktab_leftborder_assign(&bcktab->leftborder,bcktab->numofallcodes,
                              sumbuckets);
  if (saved_bucketswithoutwholeleaf != NULL)
  {
    *saved_bucketswithoutwholeleaf = saved;
  }
  if (numofsuffixestosort != NULL)
  {
    *numofsuffixestosort = sumbuckets;
  }
  return largestbucketsize;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x58(%rdx)
je 0x18c39f
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rdi
xorl %esi, %esi
callq 0x18ae26
movq %rax, %r15
movq 0x58(%r12), %rsi
cmpq $0x2, %rsi
jb 0x18c36b
movl $0x1, %ebp
movq %r15, %r13
movq %r12, %rdi
movq %rbp, %rsi
callq 0x18ae26
addq %rax, %r13
cmpq %rax, %r15
cmovbeq %rax, %r15
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x18adec
incq %rbp
movq 0x58(%r12), %rsi
cmpq %rsi, %rbp
jb 0x18c339
jmp 0x18c36e
movq %r15, %r13
movq %r12, %rdi
movq %r13, %rdx
callq 0x18adec
testq %r14, %r14
je 0x18c385
movq $0x0, (%r14)
testq %rbx, %rbx
je 0x18c38d
movq %r13, (%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5bfe8
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_findfirstlarger
GtCodetype gt_bcktab_findfirstlarger(const GtBcktab *bcktab,
                                     GtCodetype mincode,
                                     GtCodetype maxcode,
                                     GtUword suftaboffset)
{
  GtCodetype left, right, found, offset;
  GT_UNUSED bool found_defined = false;

  if (mincode <= maxcode)
  {
    if (mincode == maxcode)
    {
      return mincode;
    }
    gt_assert(mincode < maxcode);
    left = mincode;
    right = maxcode;
    if (mincode > 0)
    {
      offset = gt_bcktab_get_leftborder(bcktab,mincode - 1);
    } else
    {
      offset = 0;
    }
  } else
  {
    left = 0;
    right = bcktab->numofallcodes - 1;
    offset = 0;
  }
  found = right + 1; /* undefined */
  while (left <= right)
  {
    GtCodetype midval, mid = GT_DIV2(left+right);

    gt_assert(mincode > maxcode || left <= mid);
    midval = gt_bcktab_get_leftborder(bcktab,mid) - offset;
    if (suftaboffset <= midval)
    {
      found = mid;
      found_defined = true;
      if (suftaboffset < midval)
      {
        if (mid == 0)
        {
          break;
        }
        right = mid - 1;
      } else
      {
        break;
      }
    } else
    {
      left = mid + 1;
    }
  }
  gt_assert(found_defined);
  return found;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
cmpq %rdx, %rsi
movq %rsi, 0x8(%rsp)
movq %rdi, (%rsp)
jbe 0x18c401
movq 0x58(%rdi), %r15
decq %r15
xorl %r14d, %r14d
movq $0x0, 0x10(%rsp)
jmp 0x18c442
jne 0x18c40b
movq %rsi, %rbp
jmp 0x18c4b7
jae 0x18c4db
testq %rsi, %rsi
je 0x18c4c9
movq 0x8(%rsp), %rax
leaq -0x1(%rax), %rsi
movq (%rsp), %rdi
callq 0x18ae26
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %r15
movq %rsi, %r14
leaq 0x1(%r15), %rbx
xorl %r12d, %r12d
leaq (%r14,%r15), %r13
movq %r13, %rbp
shrq %rbp
cmpq 0x18(%rsp), %rsi
ja 0x18c45f
cmpq %rbp, %r14
ja 0x18c4d6
movq %rbp, %rsi
callq 0x18ae26
subq 0x10(%rsp), %rax
cmpq 0x20(%rsp), %rax
jb 0x18c495
jbe 0x18c4b7
cmpq $0x2, %r13
jb 0x18c4b5
leaq -0x1(%rbp), %r15
movb $0x1, %r12b
movq %rbp, %rbx
cmpq %r15, %r14
movq 0x8(%rsp), %rsi
movq (%rsp), %rdi
jbe 0x18c449
jmp 0x18c4b7
leaq 0x1(%rbp), %r14
cmpq %r15, %rbp
movq 0x8(%rsp), %rsi
movq (%rsp), %rdi
jb 0x18c449
movq %rbx, %rbp
testb $0x1, %r12b
jne 0x18c4b7
callq 0x5c05a
xorl %ebp, %ebp
movq %rbp, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
movq 0x18(%rsp), %r15
jmp 0x18c3f6
callq 0x5c093
callq 0x5c021
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: gt_chain_matchtable_new
GtChain2Dimmatchtable *gt_chain_matchtable_new(GtUword numberofmatches)
{
  GtChain2Dimmatchtable *matchtable = gt_malloc(sizeof (*matchtable));
  matchtable->matches = gt_malloc(sizeof (*matchtable->matches) *
                                  numberofmatches);
  matchtable->nextfree = 0;
  matchtable->allocated = numberofmatches;
  matchtable->largestdim0 = matchtable->largestdim1 = 0;
  matchtable->previouscount = NULL;
  matchtable->previousbound = NULL;
  matchtable->previoustab = NULL;
  matchtable->allprevious = 0;
  return matchtable;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x212229(%rip), %r14    # 0x39ea78
movl $0x48, %edi
movq %r14, %rsi
movl $0x88, %edx
callq 0x104226
movq %rax, %r15
movq %rbx, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rdi
movq %r14, %rsi
movl $0x8a, %edx
callq 0x104226
movq %rax, (%r15)
movq $0x0, 0x18(%r15)
movq %rbx, 0x20(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movups %xmm0, 0x28(%r15)
movups %xmm0, 0x38(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: gt_chain_matchtable_delete
void gt_chain_matchtable_delete(GtChain2Dimmatchtable *matchtable)
{
  if (matchtable != NULL)
  {
    gt_free(matchtable->matches);
    gt_free(matchtable->previouscount);
    gt_free(matchtable->previousbound);
    gt_free(matchtable->previoustab);
    gt_free(matchtable);
  }
}

// Assembly:
testq %rdi, %rdi
je 0x18c913
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x2121bc(%rip), %r14    # 0x39ea78
movq %r14, %rsi
movl $0x99, %edx
callq 0x1045eb
movq 0x30(%rbx), %rdi
movq %r14, %rsi
movl $0x9a, %edx
callq 0x1045eb
movq 0x38(%rbx), %rdi
movq %r14, %rsi
movl $0x9b, %edx
callq 0x1045eb
movq 0x40(%rbx), %rdi
movq %r14, %rsi
movl $0x9c, %edx
callq 0x1045eb
movq %rbx, %rdi
movq %r14, %rsi
movl $0x9d, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1045eb
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: gt_chain_matchtable_add
void gt_chain_matchtable_add(GtChain2Dimmatchtable *matchtable,
                             const GtChain2Dimmatchvalues *inmatch)
{
  Matchchaininfo *matchchaininfo;

  gt_assert(matchtable->nextfree < matchtable->allocated);
  gt_assert(inmatch->startpos[0] <= inmatch->endpos[0]);
  gt_assert(inmatch->startpos[1] <= inmatch->endpos[1]);
  matchchaininfo = matchtable->matches + matchtable->nextfree++;
  matchchaininfo->startpos[0] = inmatch->startpos[0];
  matchchaininfo->startpos[1] = inmatch->startpos[1];
  matchchaininfo->endpos[0] = inmatch->endpos[0];
  matchchaininfo->endpos[1] = inmatch->endpos[1];
  matchchaininfo->weight = inmatch->weight;
  if (matchtable->largestdim0 < (GtChain2Dimscoretype) inmatch->endpos[0])
  {
    matchtable->largestdim0 = (GtChain2Dimscoretype) inmatch->endpos[0];
  }
  if (matchtable->largestdim1 < (GtChain2Dimscoretype) inmatch->endpos[1])
  {
    matchtable->largestdim1 = (GtChain2Dimscoretype) inmatch->endpos[1];
  }
}

// Assembly:
pushq %rax
movq 0x18(%rdi), %rax
cmpq 0x20(%rdi), %rax
jae 0x18c9a9
movq (%rsi), %rcx
cmpq 0x10(%rsi), %rcx
ja 0x18c9ae
movq 0x8(%rsi), %rcx
cmpq 0x18(%rsi), %rcx
ja 0x18c9b3
movq (%rdi), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x18(%rdi)
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq (%rsi), %rdx
movq %rdx, (%rcx,%rax)
movq 0x8(%rsi), %rdx
movq %rdx, 0x8(%rcx,%rax)
movq 0x10(%rsi), %rdx
movq %rdx, 0x10(%rcx,%rax)
movq 0x18(%rsi), %rdx
movq %rdx, 0x18(%rcx,%rax)
movq 0x20(%rsi), %rdx
movq %rdx, 0x30(%rcx,%rax)
movq 0x10(%rsi), %rax
cmpq %rax, 0x8(%rdi)
jge 0x18c999
movq %rax, 0x8(%rdi)
movq 0x18(%rsi), %rax
cmpq %rax, 0x10(%rdi)
jge 0x18c9a7
movq %rax, 0x10(%rdi)
popq %rax
retq
callq 0x5c13c
callq 0x5c1ae
callq 0x5c175
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: gt_chain_fillthegapvalues
void gt_chain_fillthegapvalues(GtChain2Dimmatchtable *matchtable)
{
  Matchchaininfo *fiptr;

  for (fiptr = matchtable->matches;
       fiptr < matchtable->matches + matchtable->nextfree;
       fiptr++)
  {
    fiptr->initialgap
      = (GtChain2Dimscoretype) (fiptr->startpos[0] + fiptr->startpos[1]);
    fiptr->terminalgap
      = (GtChain2Dimscoretype) (matchtable->largestdim0 - fiptr->endpos[0] +
                                matchtable->largestdim1 - fiptr->endpos[1]);
  }
}

// Assembly:
movq 0x18(%rdi), %rcx
testq %rcx, %rcx
jle 0x18c9fd
movq (%rdi), %rax
leaq (%rcx,%rcx,4), %rcx
shlq $0x4, %rcx
addq %rax, %rcx
movq 0x8(%rdi), %rdx
addq 0x10(%rdi), %rdx
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdi
addq (%rax), %rsi
movq %rsi, 0x38(%rax)
addq 0x18(%rax), %rdi
movq %rdx, %rsi
subq %rdi, %rsi
movq %rsi, 0x40(%rax)
addq $0x50, %rax
cmpq %rcx, %rax
jb 0x18c9d7
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: gt_chain_applyweight
void gt_chain_applyweight(double weightfactor,
                          GtChain2Dimmatchtable *matchtable)
{
  if (!gt_double_equals_double(weightfactor, 1.0))
  {
    Matchchaininfo *fiptr;

    for (fiptr = matchtable->matches;
         fiptr < matchtable->matches + matchtable->nextfree;
         fiptr++)
    {
      fiptr->weight *= weightfactor;
    }
  }
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movsd %xmm0, 0x8(%rsp)
movsd 0x1b9814(%rip), %xmm1   # 0x346228
callq 0x105bb7
movsd 0x8(%rsp), %xmm1
testb %al, %al
jne 0x18ca59
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
jle 0x18ca59
movq (%rbx), %rax
leaq (%rcx,%rcx,4), %rcx
shlq $0x4, %rcx
addq %rax, %rcx
xorps %xmm0, %xmm0
cvtsi2sdq 0x30(%rax), %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rdx
movq %rdx, 0x30(%rax)
addq $0x50, %rax
cmpq %rcx, %rax
jb 0x18ca3a
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: gt_chain_possiblysortmatches
void gt_chain_possiblysortmatches(GtLogger *logger,
                                    GtChain2Dimmatchtable *matchtable,
                                    unsigned int presortdim)
{
  if (matchtable->nextfree > 1UL)
  {
    Qsortcomparefunction qsortcomparefunction;
    Matchchaininfo *fptr;
    bool matchesaresorted = true;

    gt_assert(presortdim <= 1U);
    qsortcomparefunction
      = (presortdim == 0) ? cmpMatchchaininfo0 : cmpMatchchaininfo1;
    for (fptr = matchtable->matches;
         fptr < matchtable->matches + matchtable->nextfree - 1;
         fptr++)
    {
      if (qsortcomparefunction((const void *) fptr,
                               (const void *) (fptr+1)) == 1)
      {
        matchesaresorted = false;
        break;
      }
    }
    if (!matchesaresorted)
    {
      gt_logger_log(logger,"input matches are not yet sorted => sort them");
      qsort(matchtable->matches,(size_t) matchtable->nextfree,
            sizeof (*matchtable->matches),qsortcomparefunction);
    } else
    {
      gt_logger_log(logger,"matches are already sorted w.r.t. dimension %u",
                    presortdim);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpq $0x2, 0x18(%rsi)
jb 0x18e0ad
movl %edx, %ebp
cmpl $0x2, %edx
jae 0x18e0d1
movq %rsi, %rbx
movq %rdi, %r14
testl %ebp, %ebp
leaq 0x91(%rip), %rax        # 0x18e0d6
leaq 0x9e(%rip), %r15        # 0x18e0ea
cmoveq %rax, %r15
movq (%rsi), %rdi
movq (%rbx), %rax
movq 0x18(%rbx), %rcx
leaq (%rcx,%rcx,4), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
addq $-0x50, %rax
cmpq %rax, %rdi
jae 0x18e0b6
leaq 0x50(%rdi), %r12
movq %r12, %rsi
callq *%r15
movq %r12, %rdi
cmpl $0x1, %eax
jne 0x18e053
leaq 0x210b40(%rip), %rsi    # 0x39ebc7
movq %r14, %rdi
xorl %eax, %eax
callq 0x103fe1
movq (%rbx), %rdi
movq 0x18(%rbx), %rsi
movl $0x50, %edx
movq %r15, %rcx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x17f60
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x210b38(%rip), %rsi    # 0x39ebf5
movq %r14, %rdi
movl %ebp, %edx
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x103fe1
callq 0x5c47d
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: gt_chain_extractchainelem
void gt_chain_extractchainelem(GtChain2Dimmatchvalues *value,
                               const GtChain2Dimmatchtable *matchtable,
                               const GtChain2Dim *chain,GtUword idx)
{
  const Matchchaininfo *fiptr;

  gt_assert(idx <  gt_chain_chainlength(chain) &&
            chain->chainedmatches.spaceGtChain2Dimref[idx] <
            matchtable->nextfree);
  fiptr = matchtable->matches +
          chain->chainedmatches.spaceGtChain2Dimref[idx];
  value->startpos[0] = fiptr->startpos[0];
  value->startpos[1] = fiptr->startpos[1];
  value->endpos[0] = fiptr->endpos[0];
  value->endpos[1] = fiptr->endpos[1];
  value->weight = fiptr->weight;
}

// Assembly:
cmpq %rcx, 0x10(%rdx)
jbe 0x18e361
movq (%rdx), %rax
movq (%rax,%rcx,8), %rax
cmpq 0x18(%rsi), %rax
jae 0x18e361
movq (%rsi), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq (%rcx,%rax), %rdx
movq %rdx, (%rdi)
movq 0x8(%rcx,%rax), %rdx
movq %rdx, 0x8(%rdi)
movq 0x10(%rcx,%rax), %rdx
movq %rdx, 0x10(%rdi)
movq 0x18(%rcx,%rax), %rdx
movq %rdx, 0x18(%rdi)
movq 0x30(%rcx,%rax), %rax
movq %rax, 0x20(%rdi)
retq
pushq %rax
callq 0x5c51c
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: gt_chain_printchainelem
void gt_chain_printchainelem(FILE *outfp,const GtChain2Dimmatchvalues *value)
{
  fprintf(outfp,GT_WU " " GT_WU " " GT_WU " " GT_WU " " GT_WD "\n",
          value->startpos[0],
          value->endpos[0],
          value->startpos[1],
          value->endpos[1],
          value->weight);
}

// Assembly:
pushq %rax
movq 0x10(%rsi), %rcx
movq (%rsi), %rdx
movq 0x8(%rsi), %r8
movq 0x18(%rsi), %r9
movq 0x20(%rsi), %rax
movq %rax, (%rsp)
leaq 0x210953(%rip), %rsi    # 0x39ecd9
xorl %eax, %eax
callq 0x17ab0
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: gapcostCc
static GtChain2Dimscoretype gapcostCc(const GtChain2Dimmatchtable *matchtable,
                                  GtUword i,GtUword j)
{
  GtChain2Dimpostype value1, value2;

  gt_assert(GT_CHAIN2DIM_GETSTOREDSTARTPOINT(0,j)
              > GT_CHAIN2DIM_GETSTOREDENDPOINT(0,i) &&
            GT_CHAIN2DIM_GETSTOREDSTARTPOINT(1,j)
              > GT_CHAIN2DIM_GETSTOREDENDPOINT(1,i));
  value1 = GT_CHAIN2DIM_GETSTOREDSTARTPOINT(0,j)
             - GT_CHAIN2DIM_GETSTOREDENDPOINT(0,i) - 1,
  value2 = GT_CHAIN2DIM_GETSTOREDSTARTPOINT(1,j)
             - GT_CHAIN2DIM_GETSTOREDENDPOINT(1,i) - 1;
  return (GtChain2Dimscoretype) GT_MAX(value1,value2);
}

// Assembly:
movq (%rdi), %rdi
leaq (%rdx,%rdx,4), %rax
shlq $0x4, %rax
movq (%rdi,%rax), %rcx
leaq (%rsi,%rsi,4), %rsi
shlq $0x4, %rsi
movq 0x10(%rdi,%rsi), %rdx
cmpq %rdx, %rcx
jbe 0x18e441
addq %rdi, %rax
addq %rdi, %rsi
addq $0x10, %rsi
movq 0x8(%rax), %rax
movq 0x8(%rsi), %rsi
cmpq %rsi, %rax
jbe 0x18e441
notq %rdx
addq %rdx, %rcx
notq %rsi
addq %rsi, %rax
cmpq %rax, %rcx
cmovaq %rcx, %rax
retq
pushq %rax
callq 0x5c555
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: makeactivationpoint
static GtChain2DimMatchpoint *makeactivationpoint(
                                       const GtChain2Dimmatchtable *matchtable,
                                       GtUword fpident,
                                       unsigned int postsortdim)
{
  GtChain2DimMatchpoint *fpptr;

  fpptr = gt_malloc(sizeof (*fpptr));
  gt_assert(fpptr != NULL);
  fpptr->fpident = MAKEENDPOINT(fpident);
  fpptr->fpposition = GT_CHAIN2DIM_GETSTOREDENDPOINT(postsortdim,fpident);
  return fpptr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x2102e4(%rip), %rsi    # 0x39ea78
movl $0x10, %edi
movl $0x4cf, %edx            # imm = 0x4CF
callq 0x104226
testq %rax, %rax
je 0x18e7c7
movq %r15, (%rax)
leaq (%r15,%r15,4), %rcx
shlq $0x4, %rcx
addq (%r14), %rcx
movl %ebx, %edx
movq 0x10(%rcx,%rdx,8), %rcx
movq %rcx, 0x8(%rax)
popq %rbx
popq %r14
popq %r15
retq
callq 0x5c625
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/chain2dim.c
// Function: gt_chain2dim_retrievemaximalscore
static bool gt_chain2dim_retrievemaximalscore(GtChain2Dimscoretype *maxscore,
                                              const GtChain2Dimmode *chainmode,
                                              const GtChain2Dimmatchtable
                                                *matchtable)
{
  GtUword matchnum;
  GtChain2Dimscoretype tgap;
  bool maxscoredefined = false;

  *maxscore = 0;
  for (matchnum=0; matchnum<matchtable->nextfree; matchnum++)
  {
    if (gt_chain2dim_isrightmaximal_chain(matchtable,matchnum))
    {
      if (chainmode->chainkind == GLOBALCHAININGWITHGAPCOST)
      {
        tgap = GT_CHAIN2DIM_TERMINALGAP(matchnum);
      } else
      {
        tgap = 0;
      }
      if (!maxscoredefined ||
          *maxscore < matchtable->matches[matchnum].score - tgap)
      {
        *maxscore = matchtable->matches[matchnum].score - tgap;
        maxscoredefined = true;
      }
    }
  }
  return maxscoredefined;
}

// Assembly:
movq $0x0, (%rdi)
movq 0x18(%rdx), %rcx
testq %rcx, %rcx
je 0x18e83c
pushq %rbx
movq (%rdx), %r8
addq $0x40, %r8
xorl %r9d, %r9d
xorl %eax, %eax
xorl %r10d, %r10d
leaq -0x1(%rcx), %r11
cmpq %r11, %r10
je 0x18e805
cmpq 0x38(%r8), %r10
jne 0x18e805
movq 0x58(%r8), %r11
cmpq 0x8(%r8), %r11
jge 0x18e82d
cmpl $0x1, (%rsi)
jne 0x18e80f
movq (%r8), %rbx
jmp 0x18e811
xorl %ebx, %ebx
movq 0x8(%r8), %r11
subq %rbx, %r11
testb $0x1, %al
je 0x18e821
cmpq %r11, %r9
jge 0x18e82d
movq %r11, (%rdi)
movq 0x18(%rdx), %rcx
movb $0x1, %al
movq %r11, %r9
incq %r10
addq $0x50, %r8
cmpq %rcx, %r10
jb 0x18e7ec
popq %rbx
jmp 0x18e83e
xorl %eax, %eax
andb $0x1, %al
retq