LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_file_exists_with_suffix
bool gt_file_exists_with_suffix(const char *path, const char *suffix)
{
  struct stat statbuf;
  GtStr *tmpfilename;

  gt_assert(path && suffix);

  tmpfilename = gt_str_new_cstr(path);
  gt_str_append_cstr(tmpfilename, suffix);

  if (stat(gt_str_get(tmpfilename), &statbuf) == 0) {
    gt_str_delete(tmpfilename);
    return true;
  }
  gt_str_delete(tmpfilename);
  return false;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
testq %rdi, %rdi
je 0x761ce
movq %rsi, %rbx
testq %rsi, %rsi
je 0x761ce
callq 0x3b785
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3b7af
movq %r14, %rdi
callq 0x3bb5d
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0xbad0
testl %eax, %eax
sete %bl
movq %r14, %rdi
callq 0x3c87b
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
callq 0x1c01a
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_file_is_newer
bool gt_file_is_newer(const char *a, const char *b)
{
  struct stat stat_a, stat_b;
  gt_assert(a && b);
  gt_xstat(a, &stat_a);
  gt_xstat(b, &stat_b);
  if (stat_a.st_mtime > stat_b.st_mtime ||
      (stat_a.st_mtime == stat_b.st_mtime &&
       stat_a.st_mtime > stat_b.st_mtime)) {
    return true;
  }
  return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
testq %rdi, %rdi
je 0x76222
movq %rsi, %rbx
testq %rsi, %rsi
je 0x76222
leaq 0x90(%rsp), %r14
movq %r14, %rsi
callq 0x832f9
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x832f9
movq 0x58(%r14), %rax
cmpq 0x58(%r15), %rax
setg %al
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r14
popq %r15
retq
callq 0x1c051
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_file_number_of_lines
GtUword gt_file_number_of_lines(const char *path)
{
  GtUword number_of_lines = 0;
  GtFile *fp;
  int cc;
  gt_assert(path);
  fp = gt_file_xopen(path, "r");
  while ((cc = gt_file_xfgetc(fp)) != EOF)
    if (cc == '\n') number_of_lines++;
  gt_file_delete(fp);
  return number_of_lines;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x7626b
leaq 0x78c26(%rip), %rsi     # 0xeee5d
callq 0x75bec
movq %rax, %r14
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x75c64
cmpl $-0x1, %eax
je 0x76258
cmpl $0xa, %eax
jne 0x76241
incq %rbx
jmp 0x76241
movq %r14, %rdi
callq 0x760c0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x1c088
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_file_suffix
const char* gt_file_suffix(const char *path)
{
  const char *suffixptr;
  gt_assert(path);
  suffixptr = path + gt_file_basename_length(path) - 1;
  while (suffixptr > path) {
    if (*suffixptr == GT_PATH_SEPARATOR)
      return "";
    else if (*suffixptr == '.')
      break;
    suffixptr--;
  }
  return suffixptr;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x762a2
movq %rdi, %rbx
callq 0x758a9
addq %rbx, %rax
decq %rax
cmpq %rbx, %rax
jbe 0x762a0
movzbl (%rax), %ecx
cmpl $0x2e, %ecx
je 0x762a0
decq %rax
cmpl $0x2f, %ecx
jne 0x76284
leaq 0x78897(%rip), %rax     # 0xeeb37
popq %rbx
retq
callq 0x1c0bf
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_file_dirname
void gt_file_dirname(GtStr *path, const char *file)
{
  GtWord i;
  gt_str_reset(path);
  for (i = (GtWord) (strlen(file) - 1); i >= 0; i--) {
    if (file[i] == GT_PATH_SEPARATOR)
      break;
  }
  if (i > 0)
    gt_str_append_cstr_nt(path, file, (GtUword) i);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3bbee
movq %rbx, %rdi
callq 0xb260
movq %rax, %rdx
decq %rdx
js 0x762e7
cmpb $0x2f, -0x1(%rbx,%rax)
movq %rdx, %rax
jne 0x762c1
testq %rdx, %rdx
je 0x762e7
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3b8d7
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: file_exists_and_is_regular_executable
static bool file_exists_and_is_regular_executable(const char *path)
{
  bool is_exec = false;
  struct stat sb;
  FILE *file;
#ifdef _WIN32
  size_t len = strlen(path);
#endif
  if ((file = fopen(path, "r")) == NULL)
    return false;
  gt_xfstat(fileno(file), &sb);
  if (S_ISREG(sb.st_mode) &&
#ifndef _WIN32
      (sb.st_mode & S_IXUSR || sb.st_mode & S_IXGRP || sb.st_mode & S_IXOTH )
#else
      (len > 4 && !strcmp(path + len - 4, ".exe"))
#endif
     ) {
    is_exec = true;
  }
  gt_xfclose(file);
  return is_exec;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
leaq 0x78963(%rip), %rsi     # 0xeee5d
callq 0xb720
testq %rax, %rax
je 0x76544
movq %rax, %rbx
movq %rax, %rdi
callq 0xb6c0
movq %rsp, %r14
movl %eax, %edi
movq %r14, %rsi
callq 0x831ff
movl 0x18(%r14), %eax
movl %eax, %ecx
andl $0xf000, %ecx           # imm = 0xF000
cmpl $0x8000, %ecx           # imm = 0x8000
sete %cl
testb $0x49, %al
setne %bpl
andb %cl, %bpl
movq %rbx, %rdi
callq 0x3d1f5
jmp 0x76546
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_file_estimate_size
off_t gt_file_estimate_size(const char *file)
{
  off_t size;
  struct stat sb;
  GtFileMode gfm;
  int fd;

  gt_assert(file);

  fd = gt_xopen(file, O_RDONLY, 0);
  gt_xfstat(fd, &sb);
  gfm = gt_file_mode_determine(file);
  if (gfm == GT_FILE_MODE_UNCOMPRESSED)
    size = sb.st_size;
  else
    size = sb.st_size  * 4; /* expected compression rate for sequence is 0.25 */
  gt_xclose(fd);

  return size;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
testq %rdi, %rdi
je 0x765be
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x83269
movl %eax, %ebp
movq %rsp, %r14
movl %eax, %edi
movq %r14, %rsi
callq 0x831ff
movq %rbx, %rdi
callq 0x75824
movq 0x30(%r14), %rcx
leaq (,%rcx,4), %rbx
testl %eax, %eax
cmoveq %rcx, %rbx
movl %ebp, %edi
callq 0x831dc
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x1c1a1
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_file_size
off_t gt_file_size(const char *file)
{
  struct stat sb;
  int fd;
  gt_assert(file);
  fd = gt_xopen(file, O_RDONLY, 0);
  gt_xfstat(fd, &sb);
  gt_xclose(fd);
  return sb.st_size;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
testq %rdi, %rdi
je 0x76602
xorl %esi, %esi
xorl %edx, %edx
callq 0x83269
movl %eax, %ebx
leaq 0x8(%rsp), %r14
movl %eax, %edi
movq %r14, %rsi
callq 0x831ff
movl %ebx, %edi
callq 0x831dc
movq 0x30(%r14), %rax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
callq 0x1c1da
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_xfile_cmp
void gt_xfile_cmp(const char *file1,const char *file2)
{
  FILE *fp1, *fp2;
  off_t offset;
  int cc1, cc2;

  fp1 = fopen(file1, "rb");
  fp2 = fopen(file2, "rb");
  for (offset = 0; /* Nothing */; offset++)
  {
    cc1 = fgetc(fp1);
    cc2 = fgetc(fp2);
    if (cc1 != cc2)
    {
      fprintf(stderr,"files %s and %s differ in byte "GT_WU": %d != %d\n",
                      file1,file2,(GtUword) offset,cc1,cc2);
      exit(EXIT_FAILURE);
    }
    if (cc1 == EOF)
    {
      break;
    }
  }
  gt_xfclose(fp1);
  gt_xfclose(fp2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x775d7(%rip), %r15     # 0xedbf6
movq %r15, %rsi
callq 0xb720
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb720
movq %rax, %r13
movq %r12, %rdi
callq 0xb9e0
movl %eax, %ebp
movq %r13, %rdi
callq 0xb9e0
xorl %r15d, %r15d
cmpl %eax, %ebp
jne 0x7668b
cmpl $-0x1, %ebp
je 0x7666d
incq %r15
movq %r12, %rdi
callq 0xb9e0
movl %eax, %ebp
movq %r13, %rdi
callq 0xb9e0
jmp 0x7664d
movq %r12, %rdi
callq 0x3d1f5
movq %r13, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3d1f5
movq 0xda92e(%rip), %rcx     # 0x150fc0
movq (%rcx), %rdi
movl %eax, (%rsp)
leaq 0x7aa9a(%rip), %rsi     # 0xf1139
movq %r14, %rdx
movq %rbx, %rcx
movq %r15, %r8
movl %ebp, %r9d
xorl %eax, %eax
callq 0xb8d0
movl $0x1, %edi
callq 0xb7b0
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_file_size_with_suffix
off_t gt_file_size_with_suffix(const char *path, const char *suffix)
{
  GtStr *tmpfilename;
  off_t tmpsize;

  gt_assert(path && suffix);

  tmpfilename = gt_str_new_cstr(path);
  gt_str_append_cstr(tmpfilename, suffix);
  tmpsize = gt_file_size(gt_str_get(tmpfilename));
  gt_str_delete(tmpfilename);
  return tmpsize;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x76706
movq %rsi, %rbx
testq %rsi, %rsi
je 0x76706
callq 0x3b785
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3b7af
movq %r14, %rdi
callq 0x3bb5d
movq %rax, %rdi
callq 0x765c3
movq %rax, %rbx
movq %r14, %rdi
callq 0x3c87b
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x1c213
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_files_estimate_total_size
off_t gt_files_estimate_total_size(const GtStrArray *filenames)
{
  GtUword filenum;
  off_t totalsize = 0;

  for (filenum = 0; filenum < gt_str_array_size(filenames); filenum++)
    totalsize += gt_file_estimate_size(gt_str_array_get(filenames, filenum));

  return totalsize;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x3cbed
xorl %r14d, %r14d
testq %rax, %rax
je 0x76749
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3ca6f
movq %rax, %rdi
callq 0x76563
addq %rax, %r14
incq %r15
movq %rbx, %rdi
callq 0x3cbed
cmpq %rax, %r15
jb 0x76723
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/fileutils.c
// Function: gt_files_guess_if_protein_sequences
int gt_files_guess_if_protein_sequences(const GtStrArray *filenames,
                                        GtError *err)
{
  unsigned int countnonbases = 0,
               currentposition;
  GtUchar currentchar;
  GtSequenceBuffer *fb;
  int retval;

  gt_error_check(err);
  fb = gt_sequence_buffer_new_guess_type(filenames, err);
  if (!fb) return -1;

  for (currentposition = 0; currentposition < 1000U;
       currentposition++)
  {
    retval = gt_sequence_buffer_next(fb,&currentchar,err);
    if (retval < 0)
    {
      gt_sequence_buffer_delete(fb);
      return -1;
    }
    if (retval == 0)
    {
      break;
    }
    switch (currentchar)
    {
      case 'L':
      case 'I':
      case 'F':
      case 'E':
      case 'Q':
      case 'P':
      case 'X':
      case 'Z': countnonbases++;
                break;
      default:  break;
    }
    if (countnonbases > 0)
    {
      break;
    }
  }
  gt_sequence_buffer_delete(fb);
  if (countnonbases > 0)
  {
    return 1; /* guess it is a protein sequence */
  }
  return 0; /* guess it is a dna sequence */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %rsi, %rsi
je 0x76778
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0x767fa
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7f2a2
testq %rax, %rax
je 0x767dd
movq %rax, %r14
movl $0x3e8, %r12d           # imm = 0x3E8
leaq 0x7(%rsp), %r15
movl $0x281893, %r13d        # imm = 0x281893
xorl %ebp, %ebp
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x7f4da
testl %eax, %eax
js 0x767f3
testl %eax, %eax
je 0x767d3
movzbl 0x7(%rsp), %eax
addl $-0x45, %eax
cmpl $0x15, %eax
ja 0x767c7
btl %eax, %r13d
jb 0x767ce
decl %r12d
jne 0x7679e
jmp 0x767d3
movl $0x1, %ebp
movq %r14, %rdi
callq 0x7f219
jmp 0x767e2
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x767d3
callq 0x1c24c
nop
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/grep.c
// Function: gt_grep_escape_extended
void gt_grep_escape_extended(GtStr *dest, const char *str, size_t len)
{
  size_t i;
  gt_assert(dest && str);
  gt_str_reset(dest);
  for (i= 0; i < len; i++) {
    switch (str[i]) {
      case '.':
      case '*':
      case '^':
      case '$':
      case '+':
      case '?':
      case '(':
      case ')':
      case '[':
      case '{':
      case '\\':
      case '|':
        gt_str_append_cstr(dest, "\\");
        break;
      default:
        break;
    }
    gt_str_append_char(dest, str[i]);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x7688e
movq %rsi, %r14
testq %rsi, %rsi
je 0x7688e
movq %rdx, %rbx
movq %rdi, %r15
callq 0x3bbee
testq %rbx, %rbx
je 0x7687f
xorl %r13d, %r13d
leaq 0x7a9f3(%rip), %r12     # 0xf1225
movabsq $0x5800000080004f1, %rbp # imm = 0x5800000080004F1
movb (%r14,%r13), %al
movzbl %al, %ecx
leal -0x24(%rcx), %edx
cmpl $0x3a, %edx
ja 0x76875
btq %rdx, %rbp
jae 0x76875
movq %r15, %rdi
movq %r12, %rsi
callq 0x3b7af
movb (%r14,%r13), %al
movsbl %al, %esi
movq %r15, %rdi
callq 0x3b9df
incq %r13
cmpq %r13, %rbx
jne 0x7683c
jmp 0x7687f
addl $-0x7b, %ecx
cmpl $0x2, %ecx
jb 0x76851
jmp 0x76860
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1c285
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/grep.c
// Function: gt_grep_nt
int gt_grep_nt(GT_UNUSED bool *match, GT_UNUSED const char *pattern,
               GT_UNUSED const char *line, size_t len, GtError *err)
{
  regex_t matcher;
  int rval, had_err = 0;
  gt_error_check(err);
  gt_assert(pattern && line);
  if ((rval = tre_regcomp(&matcher, pattern, REG_EXTENDED | REG_NOSUB))) {
    grep_error(rval, &matcher, err);
    had_err = -1;
  }
  if (!had_err) {
    rval = tre_regnexec(&matcher, line, len, 0, NULL, 0);
    if (rval && rval != REG_NOMATCH) {
      grep_error(rval, &matcher, err);
      had_err = -1;
    }
  }
  tre_regfree(&matcher);
  if (!had_err) {
    if (rval)
      *match = false;
    else
      *match = true;
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
testq %r8, %r8
je 0x768c5
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0x7695f
testq %r13, %r13
je 0x7695a
testq %r12, %r12
je 0x7695a
leaq 0x8(%rsp), %rdi
movq %r13, %rsi
movl $0x9, %edx
callq 0x8f419
testl %eax, %eax
je 0x768f1
movl %eax, %ebp
jmp 0x76910
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8f67d
movl %eax, %ebp
cmpl $0x2, %eax
jb 0x7693e
leaq 0x8(%rsp), %r14
movl %ebp, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x76964
movq %r14, %rdi
callq 0x8f451
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rsp), %rdi
callq 0x8f451
testl %ebp, %ebp
je 0x76952
movb $0x0, (%r14)
jmp 0x76956
movb $0x1, (%r14)
xorl %eax, %eax
jmp 0x7692f
callq 0x1c2f3
callq 0x1c2bc
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/grep.c
// Function: grep_error
static void grep_error(int errcode, regex_t *matcher, GtError *err)
{
  char sbuf[BUFSIZ], *buf;
  size_t bufsize;
  gt_error_check(err);
  bufsize = tre_regerror(errcode, matcher, NULL, 0);
  buf = gt_malloc(bufsize);
  (void) tre_regerror(errcode, matcher, buf ? buf : sbuf,
                      buf ? bufsize : BUFSIZ);
  gt_error_set(err, "grep(): %s", buf ? buf : sbuf);
  gt_free(buf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2008, %rsp           # imm = 0x2008
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
testq %rdx, %rdx
je 0x76992
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0x76a14
movl %ebp, %edi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x8f458
movq %rax, %r12
leaq 0x7a86b(%rip), %rsi     # 0xf1215
movq %rax, %rdi
movl $0x22, %edx
callq 0x35862
movq %rax, %r13
testq %rax, %rax
movq %rsp, %r15
cmovneq %rax, %r15
movl $0x2000, %ecx           # imm = 0x2000
cmovneq %r12, %rcx
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x8f458
leaq 0x7a938(%rip), %rsi     # 0xf1319
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x34f1f
movq %r13, %rdi
leaq 0x7a81d(%rip), %rsi     # 0xf1215
movl $0x26, %edx
callq 0x35c27
addq $0x2008, %rsp           # imm = 0x2008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1c32a
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashmap.c
// Function: gt_hashmap_new_g
static GtHashmap* gt_hashmap_new_g(GtHashType keyhashtype, GtFree keyfree,
                                   GtFree valuefree, void* (*alloc)(size_t))
{
  struct hm_freefuncs *ff = alloc(sizeof (*ff));
  ff->keyfree = keyfree;
  ff->valuefree = valuefree;
  switch (keyhashtype) {
    case GT_HASH_DIRECT:
      {
        HashElemInfo hm_directkey_eleminfo = {
          gt_ht_ptr_elem_hash, { .free_elem_with_data = hm_elem_free },
          sizeof (struct map_entry), gt_ht_ptr_elem_cmp, ff, gt_free_func
        };
        if (alloc != gt_hashmap_malloc)
          return (GtHashmap*) gt_hashtable_new_no_ma(hm_directkey_eleminfo);
        else
          return (GtHashmap*) gt_hashtable_new(hm_directkey_eleminfo);
      }
    case GT_HASH_STRING:
      {
        HashElemInfo hm_strkey_eleminfo = {
          gt_ht_cstr_elem_hash, { .free_elem_with_data = hm_elem_free },
          sizeof (struct map_entry), gt_ht_cstr_elem_cmp, ff, gt_free_func
        };
        if (alloc != gt_hashmap_malloc)
          return (GtHashmap*) gt_hashtable_new_no_ma(hm_strkey_eleminfo);
        else
          return (GtHashmap*) gt_hashtable_new(hm_strkey_eleminfo);
      }
    default: gt_assert(0);
  }
  return NULL; /* for stupid compilers nagging too much */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
movl $0x10, %edi
callq *%rcx
movq %r15, (%rax)
movq %r14, 0x8(%rax)
cmpl $0x1, %ebp
je 0x7746f
testl %ebp, %ebp
jne 0x7750a
leaq 0x15c4(%rip), %rcx      # 0x78a10
movq %rcx, 0x38(%rsp)
leaq 0x758(%rip), %rcx       # 0x77bb0
movq %rcx, 0x40(%rsp)
movq $0x10, 0x48(%rsp)
leaq 0x182c(%rip), %rcx      # 0x78c99
jmp 0x77497
leaq 0x17ef(%rip), %rcx      # 0x78c65
movq %rcx, 0x38(%rsp)
leaq 0x72e(%rip), %rcx       # 0x77bb0
movq %rcx, 0x40(%rsp)
movq $0x10, 0x48(%rsp)
leaq 0x1820(%rip), %rcx      # 0x78cb7
movq %rcx, 0x50(%rsp)
movq %rax, 0x58(%rsp)
leaq -0x417c2(%rip), %rax    # 0x35ce6
movq %rax, 0x60(%rsp)
leaq 0x5b(%rip), %rax        # 0x7750f
cmpq %rax, %rbx
je 0x774dd
movups 0x38(%rsp), %xmm0
movups 0x48(%rsp), %xmm1
movups 0x58(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x77d21
jmp 0x774ff
movups 0x38(%rsp), %xmm0
movups 0x48(%rsp), %xmm1
movups 0x58(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x77ca4
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x1c398
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashmap.c
// Function: gt_hashmap_add
void gt_hashmap_add(GtHashmap *hm, void *key, void *value)
{
  struct map_entry keyvalpair = { key, value };
  if (!gt_hashtable_add((GtHashtable*) hm, &keyvalpair)) {
    ((struct map_entry *)gt_hashtable_get((GtHashtable*) hm, &keyvalpair))
      ->value = value;
  }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %rax
movq %rsi, (%rax)
movq %rdx, 0x8(%rax)
movq %rax, %rsi
callq 0x77e8a
testl %eax, %eax
jne 0x7765e
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x77dfe
movq %rbx, 0x8(%rax)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashmap.c
// Function: gt_hashmap_unit_test
int
gt_hashmap_unit_test(GtError *err)
{
  int had_err;
  gt_error_check(err);

  /* direct hash */
  had_err = gt_hashmap_test(GT_HASH_DIRECT);

  /* string hash */
  if (!had_err)
    had_err = gt_hashmap_test(GT_HASH_STRING);

  if (had_err)
  {
    gt_error_set(err, "hashmap operation created inconsistent state.");
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0x77749
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0x77783
xorl %ebp, %ebp
xorl %edi, %edi
callq 0x77788
testl %eax, %eax
jne 0x77764
movl $0x1, %edi
callq 0x77788
testl %eax, %eax
je 0x7777a
leaq 0x79be1(%rip), %rsi     # 0xf134c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x34f1f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
callq 0x1c406
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashmap.c
// Function: hm_elem_free
static void
hm_elem_free(void *elem, void *table_data)
{
  struct hm_freefuncs *ff = table_data;
  gt_assert(elem && ff);
  if (ff->keyfree)
    ff->keyfree(((struct map_entry *)elem)->key);
  if (ff->valuefree)
    ff->valuefree(((struct map_entry *)elem)->value);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x77bef
movq %rsi, %r14
testq %rsi, %rsi
je 0x77bef
movq %rdi, %rbx
movq (%r14), %rax
testq %rax, %rax
je 0x77bd1
movq (%rbx), %rdi
callq *%rax
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x77be7
movq 0x8(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x1c43f
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_new_with_start_size_g
GtHashtable* gt_hashtable_new_with_start_size_g(HashElemInfo table_info,
                                                unsigned short size_log,
                                                void* (*alloc)(size_t))
{
  GtHashtable *ht;
  ht = alloc(sizeof (*ht));
  ht->lock = gt_rwlock_new();
  if (alloc == gt_hashtable_malloc)
    ht->no_ma = false;
  else
    ht->no_ma = true;
  gt_ht_init(ht, table_info, size_log, DEFAULT_HIGH_MUL, DEFAULT_LOW_MUL);
  return ht;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movl %edi, %ebp
movl $0x80, %edi
callq *%rsi
movq %rax, %r14
callq 0x3cf33
movq %rax, 0x68(%r14)
leaq 0x45(%rip), %rax        # 0x77c64
cmpq %rax, %rbx
setne 0x78(%r14)
movaps 0x50(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movaps 0x70(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r14, %rdi
movl %ebp, %esi
movl $0xc0, %edx
movl $0x20, %ecx
callq 0x77c75
movq %r14, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_ht_init
static void
gt_ht_init(GtHashtable *ht, HashElemInfo table_info, unsigned short size_log,
           unsigned short high_mul, unsigned short low_mul)
{
  gt_assert(size_log < sizeof (htsize_t) * CHAR_BIT);
  ht->current_fill = 0;
  ht->reference_count = 0;
  ht->table = ht->links.table = NULL;
  gt_ht_reinit(ht, table_info, size_log, high_mul, low_mul);
}

// Assembly:
cmpw $0x20, %si
jae 0x77c9e
movl $0x0, 0x54(%rdi)
xorl %eax, %eax
movq %rax, 0x70(%rdi)
movq %rax, 0x58(%rdi)
movq %rax, 0x30(%rdi)
movzwl %si, %esi
movzwl %dx, %edx
movzwl %cx, %ecx
jmp 0x7874a
pushq %rax
callq 0x1c476
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_get
void* gt_hashtable_get(GtHashtable *ht, const void *elem)
{
  gt_assert(ht);
  gt_rwlock_wrlock(ht->lock);
#if TJ_DEBUG > 1
  gt_ht_traverse_list_of_key_debug(ht, elem);
#endif
  gt_ht_traverse_list_of_key(ht, elem, ,
                          if (link != free_mark
                              && !ht->table_info.cmp(elem,
                                                     gt_ht_elem_ptr(ht, idx))) {
                            gt_rwlock_unlock(ht->lock);
                            return gt_ht_elem_ptr(ht, idx); },);
  gt_rwlock_unlock(ht->lock);
  return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x77e7b
movq %rsi, %r14
movq %rdi, %rbx
movq 0x68(%rdi), %rdi
callq 0x3cfc0
movq %r14, %rdi
callq *(%rbx)
movl %eax, %ebp
andl 0x48(%rbx), %ebp
movq 0x58(%rbx), %rax
movl %ebp, %r15d
movl (%rax,%r15,4), %ebp
cmpl $-0x1, %ebp
je 0x77e4d
movq 0x10(%rbx), %rsi
imulq %r15, %rsi
addq 0x30(%rbx), %rsi
movq %r14, %rdi
callq *0x18(%rbx)
testl %eax, %eax
je 0x77e5b
testl %ebp, %ebp
jns 0x77e23
movq 0x68(%rbx), %rdi
callq 0x3cfdb
xorl %r15d, %r15d
jmp 0x77e6d
movq 0x68(%rbx), %rdi
callq 0x3cfdb
imulq 0x10(%rbx), %r15
addq 0x30(%rbx), %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x1c4af
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_add
int gt_hashtable_add(GtHashtable *ht, const void *elem)
{
  int insert_count;
  gt_assert(ht && elem);
  gt_rwlock_wrlock(ht->lock);
  if (ht->current_fill + 1 > ht->high_fill)
    gt_ht_resize(ht, ht->table_size_log + 1);
  insert_count = gt_ht_insert(ht, elem, NULL);
  gt_rwlock_unlock(ht->lock);
  return insert_count;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x77ee0
movq %rsi, %r14
testq %rsi, %rsi
je 0x77ee0
movq %rdi, %rbx
movq 0x68(%rdi), %rdi
callq 0x3cfc0
movl 0x54(%rbx), %eax
incl %eax
cmpl 0x4c(%rbx), %eax
jbe 0x77ec1
movl 0x60(%rbx), %eax
incl %eax
movzwl %ax, %esi
movq %rbx, %rdi
callq 0x77ee5
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x77f97
movl %eax, %ebp
movq 0x68(%rbx), %rdi
callq 0x3cfdb
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
callq 0x1c4e8
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_ht_resize
static void
gt_ht_resize(GtHashtable *ht, unsigned short new_size_log)
{
  GtHashtable new_ht;
#ifndef NDEBUG
  htsize_t new_size = 1 << new_size_log;
#endif
  gt_assert(ht);
  if (new_size_log != ht->table_size_log)
  {
    /* save lock from old table */
    GtRWLock *l = ht->lock;
    new_ht.no_ma = ht->no_ma;
    gt_ht_init(&new_ht, ht->table_info, new_size_log, ht->high_fill_mul,
               ht->low_fill_mul);
    gt_assert(ht->current_fill < new_size);
    gt_hashtable_foreach_g(ht, gt_ht_insert_wrapper, &new_ht, NULL, false);
    gt_ht_destruct(ht);
    memcpy(ht, &new_ht, sizeof (*ht));
    /* restore lock */
    ht->lock = l;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xb8, %rsp
testq %rdi, %rdi
je 0x77f8d
movl %esi, %ebp
movq %rdi, %rbx
cmpw %bp, 0x60(%rdi)
je 0x77f7f
movq 0x68(%rbx), %r15
movb 0x78(%rbx), %al
leaq 0x38(%rsp), %rdi
movb %al, 0x78(%rdi)
movzwl 0x62(%rbx), %edx
movzwl 0x64(%rbx), %ecx
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movzwl %bp, %esi
callq 0x77c75
movl 0x54(%rbx), %eax
movl %ebp, %ecx
shrl %cl, %eax
testl %eax, %eax
jne 0x77f92
leaq 0x12ea(%rip), %rsi      # 0x7923a
leaq 0x38(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x78472
movq %rbx, %rdi
callq 0x789be
movl $0x10, %ecx
movq %rbx, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r15, 0x68(%rbx)
addq $0xb8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x1c55a
callq 0x1c521
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_add_with_storage_ptr
int gt_hashtable_add_with_storage_ptr(GtHashtable *ht, const void *elem,
                                      void **stor_ptr)
{
  int insert_count;
  gt_assert(ht && elem);
  gt_rwlock_wrlock(ht->lock);
  if (ht->current_fill + 1 > ht->high_fill)
    gt_ht_resize(ht, ht->table_size_log + 1);
  insert_count = gt_ht_insert(ht, elem, stor_ptr);
  gt_rwlock_unlock(ht->lock);
  return insert_count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x78161
movq %rsi, %r15
testq %rsi, %rsi
je 0x78161
movq %rdx, %r14
movq %rdi, %rbx
movq 0x68(%rdi), %rdi
callq 0x3cfc0
movl 0x54(%rbx), %eax
incl %eax
cmpl 0x4c(%rbx), %eax
jbe 0x7813b
movl 0x60(%rbx), %eax
incl %eax
movzwl %ax, %esi
movq %rbx, %rdi
callq 0x77ee5
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x77f97
movl %eax, %ebp
movq 0x68(%rbx), %rdi
callq 0x3cfdb
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x1c593
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_remove
int gt_hashtable_remove(GtHashtable *ht, const void *elem)
{
  htsize_t remove_pos;
  int rval = 0;
  gt_assert(ht && elem);
  gt_rwlock_wrlock(ht->lock);
  remove_pos = gt_ht_remove(ht, elem);
  if (remove_pos != free_mark)
  {
    gt_ht_shrink(ht);
    rval = 1;
  }
  gt_rwlock_unlock(ht->lock);
  return rval;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x781d9
movq %rsi, %r14
testq %rsi, %rsi
je 0x781d9
movq %rdi, %rbx
movq 0x68(%rdi), %rdi
callq 0x3cfc0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x781de
cmpl $-0x1, %eax
je 0x781c7
movl 0x50(%rbx), %eax
movl 0x54(%rbx), %ecx
movl $0x1, %ebp
cmpl %eax, %ecx
jae 0x781c9
movzwl 0x60(%rbx), %edx
cmpw $0x5, %dx
jb 0x781c9
decl %edx
cmpl %eax, %ecx
jae 0x781ba
shrl %eax
cmpw $0x4, %dx
ja 0x781ac
movzwl %dx, %esi
movq %rbx, %rdi
callq 0x77ee5
jmp 0x781c9
xorl %ebp, %ebp
movq 0x68(%rbx), %rdi
callq 0x3cfdb
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
callq 0x1c5cc
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_foreach_ordered
int gt_hashtable_foreach_ordered(GtHashtable *ht, Elemvisitfunc iter,
                                 void *data, GtCompare cmp, GtError *err)
{
  GtArray *hash_entries;
  void *elem;
  GtUword i;
  int had_err;
  gt_error_check(err);
  gt_assert(ht && iter && cmp);
  gt_rwlock_wrlock(ht->lock);
  hash_entries = gt_array_new(ht->table_info.elem_size);
  {
    struct hash_to_array_data visitor_data = { ht->table_info.elem_size,
                                               hash_entries };

    had_err = gt_hashtable_foreach_g(ht, gt_ht_save_entry_to_array,
                                     &visitor_data, err, false);
  }
  gt_rwlock_unlock(ht->lock);
  if (!had_err) {
    size_t hash_size;
    gt_qsort_r(gt_array_get_space(hash_entries), gt_array_size(hash_entries),
               gt_array_elem_size(hash_entries), data, (GtCompareWithData)cmp);
    hash_size = gt_array_size(hash_entries);
    gt_assert(hash_size == gt_hashtable_fill(ht));
    for (i = 0; !had_err && i < hash_size; i++) {
      elem = gt_array_get(hash_entries, i);
      had_err = iter(elem, data, err);
    }
  }
  gt_array_delete(hash_entries);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rbx
movq %rcx, %rbp
movq %rdx, 0x8(%rsp)
movq %rsi, %r15
movq %rdi, %r13
testq %r8, %r8
je 0x78356
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0x78468
testq %r13, %r13
je 0x78463
testq %r15, %r15
je 0x78463
testq %rbp, %rbp
je 0x78463
movq 0x68(%r13), %rdi
callq 0x3cfc0
movq 0x10(%r13), %rdi
callq 0x6ef7c
movq %rax, %r12
movq 0x10(%r13), %rax
leaq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq %r12, 0x8(%rdx)
leaq 0x2a2(%rip), %rsi       # 0x7863f
movq %r13, %rdi
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x78472
movl %eax, %r14d
movq 0x68(%r13), %rdi
callq 0x3cfdb
testl %r14d, %r14d
je 0x783d6
movq %r12, %rdi
callq 0x6f768
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x6f21b
movq %rax, 0x10(%rsp)
movq %r12, %rdi
callq 0x6f310
movq %rax, %r14
movq %r12, %rdi
callq 0x6f31d
movq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %rax, %rdx
movq 0x8(%rsp), %rcx
movq %rbp, %r8
callq 0x7bb9c
movq %r12, %rdi
callq 0x6f310
movq %rax, %rbp
movl 0x54(%r13), %eax
cmpq %rax, %rbp
jne 0x7846d
testq %rbp, %rbp
je 0x7845b
xorl %r13d, %r13d
movq %r12, %rdi
movq %r13, %rsi
callq 0x6f037
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq *%r15
movl %eax, %r14d
testl %eax, %eax
jne 0x783bc
incq %r13
cmpq %rbp, %r13
jb 0x7842a
jmp 0x783bc
xorl %r14d, %r14d
jmp 0x783bc
callq 0x1c63e
callq 0x1c605
callq 0x1c677
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_ht_save_entry_to_array
static enum iterator_op
gt_ht_save_entry_to_array(void *elem, void *data, GT_UNUSED GtError *err)
{
  GtArray *hash_entries;
  gt_assert(elem && data);
  hash_entries = ((struct hash_to_array_data *)data)->hash_entries;
  gt_array_add_elem(hash_entries, elem,
                 ((struct hash_to_array_data *)data)->elem_size);
  return CONTINUE_ITERATION;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x78660
testq %rsi, %rsi
je 0x78660
movq %rdi, %rax
movq (%rsi), %rdx
movq 0x8(%rsi), %rdi
movq %rax, %rsi
callq 0x6f240
xorl %eax, %eax
popq %rcx
retq
callq 0x1c6da
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_fill
size_t gt_hashtable_fill(GtHashtable *ht)
{
  size_t rval;
  gt_assert(ht);
  rval = ht->current_fill;
  return rval;
}

// Assembly:
testq %rdi, %rdi
je 0x7866e
movl 0x54(%rdi), %eax
retq
pushq %rax
callq 0x1c713
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_reset
void gt_hashtable_reset(GtHashtable *ht)
{
  gt_assert(ht);
  FreeFuncWData free_elem_with_data;
  gt_rwlock_wrlock(ht->lock);
  free_elem_with_data = ht->table_info.free_op.free_elem_with_data;
  if (free_elem_with_data)
    gt_ht_internal_foreach(ht, free_elem_with_data(elem, table_data));
  ht->current_fill = 0;
  gt_ht_reinit(ht, ht->table_info, MIN_SIZE_LOG, DEFAULT_HIGH_MUL,
            DEFAULT_LOW_MUL);
  gt_rwlock_unlock(ht->lock);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
testq %rdi, %rdi
je 0x78745
movq %rdi, %rbx
movq 0x68(%rdi), %rdi
callq 0x3cfc0
movq 0x8(%rbx), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x786f7
movl 0x48(%rbx), %eax
incl %eax
sete %cl
cmpl $0x0, 0x54(%rbx)
sete %dl
orb %cl, %dl
testb $0x1, %dl
jne 0x786f7
movq 0x10(%rbx), %r13
movq 0x20(%rbx), %r14
movq 0x30(%rbx), %r15
movl %eax, %ebp
xorl %r12d, %r12d
movq 0x58(%rbx), %rax
cmpl $-0x1, (%rax,%r12,4)
je 0x786ec
movq %r15, %rdi
movq %r14, %rsi
callq *0x30(%rsp)
addq %r13, %r15
incq %r12
cmpq %r12, %rbp
jne 0x786d7
movl $0x0, 0x54(%rbx)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x4, %esi
movl $0xc0, %edx
movl $0x20, %ecx
callq 0x7874a
movq 0x68(%rbx), %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3cfdb
callq 0x1c74c
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_ht_reinit
static void
gt_ht_reinit(GtHashtable *ht, HashElemInfo table_info, unsigned short size_log,
             unsigned short high_mul, unsigned short low_mul)
{
  htsize_t table_size;
  gt_assert(high_mul > low_mul);
  gt_assert(low_mul > 0 && high_mul < FILL_DIVISOR);
  ht->table_info = table_info;
  ht->table_size_log = size_log;
  ht->table_mask = (table_size = 1 << size_log) - 1;
  if (ht->no_ma)
    ht->table = realloc(ht->table, table_info.elem_size * table_size);
  else
    ht->table = gt_realloc(ht->table, table_info.elem_size * table_size);
  ht->high_fill_mul = high_mul;
  ht->high_fill
    = (GtUint64)ht->high_fill_mul * table_size / FILL_DIVISOR;
  ht->low_fill_mul = low_mul;
  ht->low_fill
    = (GtUint64)ht->low_fill_mul * table_size / FILL_DIVISOR;
  {
    uint32_t i;
    if (ht->no_ma)
      ht->links.table = realloc(ht->links.table,
                                sizeof (*(ht->links.table)) * table_size);
    else
      ht->links.table = gt_realloc(ht->links.table,
                                   sizeof (*(ht->links.table)) * table_size);
    for (i = 0; i < table_size; ++i)
      ht->links.table[i] = free_mark;
    ht->get_link = gt_ht_get_table_link;
    ht->set_link = gt_ht_set_table_link;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r14d
cmpw %bp, %r14w
jbe 0x78872
movzwl %r14w, %r12d
cmpl $0xff, %r12d
ja 0x78877
testw %bp, %bp
je 0x78877
movl %esi, %ecx
movq %rdi, %rbx
leaq 0x40(%rsp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%rdi)
movups %xmm1, 0x10(%rdi)
movups %xmm0, (%rdi)
movl $0x1, %r13d
shll %cl, %r13d
movw %cx, 0x60(%rdi)
leal -0x1(%r13), %edx
movl %edx, 0x48(%rdi)
movq 0x10(%rax), %rsi
shlq %cl, %rsi
movq 0x30(%rdi), %rdi
movzwl %cx, %r15d
cmpb $0x1, 0x78(%rbx)
jne 0x787ce
callq 0xba70
jmp 0x787df
leaq 0x78c24(%rip), %rdx     # 0xf13f9
movl $0x6a, %ecx
callq 0x35a9d
movq %rax, 0x30(%rbx)
movl %r15d, %ecx
shlq %cl, %r12
movw %r14w, 0x62(%rbx)
movl %r13d, %r14d
shrq $0x8, %r12
movzwl %bp, %eax
shlq %cl, %rax
movl %r12d, 0x4c(%rbx)
movw %bp, 0x64(%rbx)
shrq $0x8, %rax
movl %eax, 0x50(%rbx)
movq 0x58(%rbx), %rdi
leaq (,%r14,4), %rsi
cmpb $0x1, 0x78(%rbx)
jne 0x78823
callq 0xba70
jmp 0x78834
leaq 0x78bcf(%rip), %rdx     # 0xf13f9
movl $0x78, %ecx
callq 0x35a9d
movq %rax, 0x58(%rbx)
xorl %eax, %eax
movq 0x58(%rbx), %rcx
movl $0xffffffff, (%rcx,%rax,4) # imm = 0xFFFFFFFF
incq %rax
cmpq %rax, %r14
jne 0x7883a
leaq -0x9d4(%rip), %rax      # 0x77e80
movq %rax, 0x38(%rbx)
leaq 0xa1c(%rip), %rax       # 0x7927b
movq %rax, 0x40(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1c785
callq 0x1c7bc
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_ref
GtHashtable* gt_hashtable_ref(GtHashtable *ht)
{
  if (!ht) return NULL;
  gt_rwlock_wrlock(ht->lock);
  ht->reference_count++;
  gt_rwlock_unlock(ht->lock);
  return ht;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testq %rdi, %rdi
je 0x7889b
movq 0x68(%rbx), %rdi
callq 0x3cfc0
incq 0x70(%rbx)
movq 0x68(%rbx), %rdi
callq 0x3cfdb
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_delete
void gt_hashtable_delete(GtHashtable *ht)
{
  FreeFuncWData free_elem_with_data;
  if (!ht) return;
  gt_rwlock_rdlock(ht->lock);
  if (ht->reference_count) {
    ht->reference_count--;
    gt_rwlock_unlock(ht->lock);
    return;
  }
  gt_rwlock_unlock(ht->lock);
  gt_rwlock_wrlock(ht->lock);
  free_elem_with_data = ht->table_info.free_op.free_elem_with_data;
  if (free_elem_with_data)
    gt_ht_internal_foreach(ht, free_elem_with_data(elem, table_data));
  gt_ht_destruct(ht);
  if (ht->table_info.table_data_free)
    ht->table_info.table_data_free(ht->table_info.table_data);
  gt_rwlock_unlock(ht->lock);
  gt_rwlock_delete(ht->lock);
  if (ht->no_ma)
    free(ht);
  else
    gt_free(ht);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x788e3
movq %rdi, %rbx
movq 0x68(%rdi), %rdi
callq 0x3cfa5
movq 0x70(%rbx), %rax
testq %rax, %rax
je 0x788f2
decq %rax
movq %rax, 0x70(%rbx)
movq 0x68(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3cfdb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x68(%rbx), %rdi
callq 0x3cfdb
movq 0x68(%rbx), %rdi
callq 0x3cfc0
movq 0x8(%rbx), %rax
movq %rax, (%rsp)
testq %rax, %rax
je 0x78957
movl 0x48(%rbx), %eax
incl %eax
sete %cl
cmpl $0x0, 0x54(%rbx)
sete %dl
orb %cl, %dl
testb $0x1, %dl
jne 0x78957
movq 0x10(%rbx), %r13
movq 0x20(%rbx), %r14
movq 0x30(%rbx), %r15
movl %eax, %ebp
xorl %r12d, %r12d
movq 0x58(%rbx), %rax
cmpl $-0x1, (%rax,%r12,4)
je 0x7894c
movq %r15, %rdi
movq %r14, %rsi
callq *(%rsp)
addq %r13, %r15
incq %r12
cmpq %r12, %rbp
jne 0x78938
movq %rbx, %rdi
callq 0x789be
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x7896e
movq 0x20(%rbx), %rdi
callq *%rax
movq 0x68(%rbx), %rdi
callq 0x3cfdb
movq 0x68(%rbx), %rdi
callq 0x3cf83
cmpb $0x1, 0x78(%rbx)
jne 0x7899c
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb790
leaq 0x78a56(%rip), %rsi     # 0xf13f9
movq %rbx, %rdi
movl $0x2a1, %edx            # imm = 0x2A1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x35c27
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_ht_destruct
static void
gt_ht_destruct(GtHashtable *ht)
{
  if (ht->no_ma) {
    free(ht->table);
    free(ht->links.table);
  } else {
    gt_free(ht->table);
    gt_free(ht->links.table);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
cmpb $0x1, 0x78(%rbx)
jne 0x789e4
callq 0xb790
movq 0x58(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xb790
leaq 0x78a0e(%rip), %r14     # 0xf13f9
movq %r14, %rsi
movl $0x92, %edx
callq 0x35c27
movq 0x58(%rbx), %rdi
movq %r14, %rsi
movl $0x93, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x35c27
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_ht_2ptr_elem_free
void gt_ht_2ptr_elem_free(void *elem)
{
  struct gt_ht_elem_2cstr *p = elem;
  gt_assert(elem);
  gt_free(p->key);
  gt_free(p->value);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x78cfd
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x78721(%rip), %r14     # 0xf13f9
movq %r14, %rsi
movl $0x32f, %edx            # imm = 0x32F
callq 0x35c27
movq 0x8(%rbx), %rdi
movq %r14, %rsi
movl $0x330, %edx            # imm = 0x330
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x35c27
callq 0x1c7f3
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_unit_test
int gt_hashtable_unit_test(GT_UNUSED GtError *err)
{
  int had_err;
  gt_error_check(err);
  static const HashElemInfo
    hash_ptr = { gt_ht_ptr_elem_hash, { NULL },
                 sizeof (struct gt_ht_elem_2cstr),
                 gt_ht_ptr_elem_cmp, NULL, NULL },
    hash_str = { gt_ht_cstr_elem_hash, { NULL },
                 sizeof (struct gt_ht_elem_2cstr),
                 gt_ht_cstr_elem_cmp, NULL, NULL };
  /* hash key as string */
  had_err = gt_hashtable_test(hash_str);

  /* hash key by pointer value */
  if (!had_err)
    had_err = gt_hashtable_test(hash_ptr);

  return had_err;
}

// Assembly:
subq $0x38, %rsp
testq %rdi, %rdi
je 0x78d14
callq 0x34fea
testb %al, %al
jne 0x78d74
movups 0xd6abd(%rip), %xmm0    # 0x14f7d8
movups %xmm0, 0x20(%rsp)
movups 0xd6aa1(%rip), %xmm0    # 0x14f7c8
movups %xmm0, 0x10(%rsp)
movups 0xd6a85(%rip), %xmm0    # 0x14f7b8
movups %xmm0, (%rsp)
callq 0x78d79
testl %eax, %eax
je 0x78d47
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x78d6f
movups 0xd6a5a(%rip), %xmm0    # 0x14f7a8
movups %xmm0, 0x20(%rsp)
movups 0xd6a3e(%rip), %xmm0    # 0x14f798
movups %xmm0, 0x10(%rsp)
movups 0xd6a22(%rip), %xmm0    # 0x14f788
movups %xmm0, (%rsp)
callq 0x78d79
addq $0x38, %rsp
retq
callq 0x1c82c
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/hashtable.c
// Function: gt_ht_find_free_idx
static htsize_t
gt_ht_find_free_idx(GtHashtable *ht, htsize_t start_idx, int search_dir)
{
  htsize_t new_idx = start_idx;
  gt_assert(ht->current_fill < ht->table_mask + 1);
  do {
    new_idx = (new_idx + search_dir) & ht->table_mask;
  } while (HT_GET_LINK(ht, new_idx) != free_mark);
  return new_idx;
}

// Assembly:
pushq %rax
movl 0x48(%rdi), %eax
leal 0x1(%rax), %ecx
cmpl %ecx, 0x54(%rdi)
jae 0x79276
movq 0x58(%rdi), %rcx
addl %edx, %esi
andl %eax, %esi
cmpl $-0x1, (%rcx,%rsi,4)
jne 0x79268
movl %esi, %eax
popq %rcx
retq
callq 0x1c881
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/interval_tree.c
// Function: gt_interval_tree_node_new
GtIntervalTreeNode* gt_interval_tree_node_new(void *data,
                                         GtUword low,
                                         GtUword high)
{
  GtIntervalTreeNode* n;
  n = gt_calloc(1, sizeof (GtIntervalTreeNode));
  n->low = low;
  n->high = high;
  n->data = data;
  return n;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x783d0(%rip), %rdx     # 0xf166d
movl $0x1, %edi
movl $0x40, %esi
movl $0x34, %ecx
callq 0x359a6
movq %r14, 0x28(%rax)
movq %rbx, 0x30(%rax)
movq %r15, 0x18(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/interval_tree.c
// Function: gt_interval_tree_new
GtIntervalTree* gt_interval_tree_new(GtFree func)
{
  GtIntervalTree *it;
  it = gt_calloc(1, sizeof (GtIntervalTree));
  it->free_func = func;
  it->nil = &it->sentinel;
  it->root = it->nil;
  return it;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x7839f(%rip), %rdx     # 0xf166d
movl $0x1, %edi
movl $0x60, %esi
movl $0x3e, %ecx
callq 0x359a6
movq %rbx, 0x58(%rax)
leaq 0x8(%rax), %rcx
movq %rcx, 0x48(%rax)
movq %rcx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/interval_tree.c
// Function: gt_interval_tree_node_delete
void gt_interval_tree_node_delete(GtIntervalTree *it, GtIntervalTreeNode *n)
{
  if (n == it->nil) return;
  if (n->data && it->free_func)
    it->free_func(n->data);
  gt_free(n);
}

// Assembly:
cmpq %rsi, 0x48(%rdi)
je 0x79349
pushq %rbx
movq %rsi, %rbx
movq %rdi, %rax
movq 0x18(%rsi), %rdi
testq %rdi, %rdi
je 0x79334
movq 0x58(%rax), %rax
testq %rax, %rax
je 0x79334
callq *%rax
leaq 0x78332(%rip), %rsi     # 0xf166d
movq %rbx, %rdi
movl $0x56, %edx
popq %rbx
jmp 0x35c27
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/interval_tree.c
// Function: gt_interval_tree_find_first_overlapping
GtIntervalTreeNode* gt_interval_tree_find_first_overlapping(GtIntervalTree *it,
                                                            GtUword low,
                                                            GtUword high)
{
  gt_assert(it);
  if (it->root == it->nil)
    return NULL;
  return interval_tree_search_internal(it, it->root, low, high);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x79387
movq (%rdi), %rax
movq 0x48(%rdi), %rcx
cmpq %rcx, %rax
je 0x79383
cmpq %rsi, 0x30(%rax)
jb 0x79368
cmpq %rdx, 0x28(%rax)
jbe 0x79385
movq 0x8(%rax), %rdi
cmpq %rcx, %rdi
je 0x79377
cmpq %rsi, 0x38(%rdi)
jae 0x7937b
movq 0x10(%rax), %rdi
movq %rdi, %rax
cmpq %rcx, %rdi
jne 0x7935c
xorl %eax, %eax
popq %rcx
retq
callq 0x1c928
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/interval_tree.c
// Function: interval_tree_traverse_internal
static int interval_tree_traverse_internal(GtIntervalTree *it,
                                           GtIntervalTreeNode *node,
                                           GtIntervalTreeIteratorFunc func,
                                           void *data)
{
  int had_err = 0;
  if (node == it->nil) return 0;
  if (!had_err)
    had_err = interval_tree_traverse_internal(it, node->left, func, data);
  if (!had_err)
    had_err = interval_tree_traverse_internal(it, node->right, func, data);
  if (!had_err)
    had_err = func(node, data);
  return had_err;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpq %rsi, 0x48(%rdi)
je 0x793f1
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rsi), %rsi
movq %rdx, %r12
callq 0x7939e
testl %eax, %eax
jne 0x793f3
movq 0x10(%r14), %rsi
movq %r15, %rdi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x7939e
testl %eax, %eax
jne 0x793f3
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq