LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: gt_feature_index_gfflike_get_range_for_seqid
int gt_feature_index_gfflike_get_range_for_seqid(GtFeatureIndex *gfi,
                                                 GtRange *range,
                                                 const char *seqid,
                                                 GtError *err)
{
  GtFeatureIndexGFFlike *fi;
  int had_err = 0, rval;
  GtRDBStmt *stmt;
  gt_assert(gfi && range && seqid);
  gt_error_check(err);
  fi = feature_index_gfflike_cast(gfi);
  gt_mutex_lock(fi->dblock);
  stmt = fi->stmts[GT_PSTMT_GET_SEQREG_RANGE_SELECT];
  gt_rdb_stmt_reset(stmt, err);
  gt_rdb_stmt_bind_string(stmt, 0, seqid, err);
  rval = gt_rdb_stmt_exec(stmt, err);
  switch (rval) {
    case 0:
      gt_rdb_stmt_get_ulong(stmt, 0, &range->start, err);
      gt_rdb_stmt_get_ulong(stmt, 1, &range->end, err);
      gt_assert(gt_rdb_stmt_exec(stmt, err) == 1);
      break;
    case 1:
      gt_error_set(err, "sequence region '%s' does not exist", seqid);
      had_err = -1;
      break;
    default:
      /* error is set */
      had_err = -1;
      break;
  }
  gt_mutex_unlock(fi->dblock);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x129914
movq %rsi, %r14
testq %rsi, %rsi
je 0x129914
movq %rdx, %r12
testq %rdx, %rdx
je 0x129914
movq %rcx, %rbx
movq %rdi, %r15
testq %rcx, %rcx
je 0x129848
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x129919
callq 0x128b66
movq %rax, %rdi
movq %r15, %rsi
callq 0x147fb4
movq %rax, %r15
movq 0x170(%rax), %rdi
callq 0x122657
movq 0x90(%r15), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x174129
movq %rbp, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x17418c
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x1741ce
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
cmpl $0x1, %eax
je 0x1298e2
testl %eax, %eax
jne 0x1298f6
xorl %r13d, %r13d
movq %rbp, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x17422a
addq $0x8, %r14
movl $0x1, %esi
movq %rbp, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x17422a
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x1741ce
cmpl $0x1, %eax
je 0x1298f6
callq 0x3b308
leaq 0x254e3f(%rip), %rsi    # 0x37e728
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x1019cf
movq 0x170(%r15), %rdi
callq 0x122672
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3b296
callq 0x3b2cf
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: gt_feature_index_gfflike_has_seqid
int gt_feature_index_gfflike_has_seqid(const GtFeatureIndex *gfi,
                                       bool *has_seqid,
                                       const char *seqid,
                                       GtError *err)
{
  GtFeatureIndexGFFlike *fi;
  int had_err = 0;
  gt_assert(gfi);
  int rval;
  GtRDBStmt *stmt;
  gt_assert(gfi);
  gt_error_check(err);
  fi = feature_index_gfflike_cast((GtFeatureIndex*) gfi);
  gt_mutex_lock(fi->dblock);
  stmt = fi->stmts[GT_PSTMT_HAS_SEQID_SELECT];
  gt_rdb_stmt_reset(stmt, err);
  gt_rdb_stmt_bind_string(stmt, 0, seqid, err);
  rval = gt_rdb_stmt_exec(stmt, err);
  if (rval < 0) {
    /* error is set */
    had_err = -1;
  }
  if (!had_err) {
    int nof_entries;
    gt_rdb_stmt_get_int(stmt, 0, &nof_entries, err);
    *has_seqid = (nof_entries > 0);
    gt_assert(gt_rdb_stmt_exec(stmt, err) == 1);
  }
  gt_mutex_unlock(fi->dblock);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1299f3
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
testq %rcx, %rcx
je 0x129953
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x1299f8
callq 0x128b66
movq %rax, %rdi
movq %r15, %rsi
callq 0x147fb4
movq %rax, %r15
movq 0x170(%rax), %rdi
callq 0x122657
movq 0xf8(%r15), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x174129
movq %r13, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x17418c
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1741ce
movl %eax, %ebp
testl %eax, %eax
js 0x1299d3
leaq 0x4(%rsp), %r12
movq %r13, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x174250
cmpl $0x0, (%r12)
setg (%r14)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1741ce
cmpl $0x1, %eax
jne 0x1299fd
sarl $0x1f, %ebp
movq 0x170(%r15), %rdi
callq 0x122672
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3b3b3
callq 0x3b341
callq 0x3b37a
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: gt_feature_index_gfflike_delete
void gt_feature_index_gfflike_delete(GtFeatureIndex *gfi)
{
  GtFeatureIndexGFFlike *fi;
  GtUword i;
  if (!gfi) return;
  fi = feature_index_gfflike_cast(gfi);
  for (i=0;i<GT_PSTMT_NOF_STATEMENTS;i++) {
    gt_rdb_stmt_delete(fi->stmts[i]);
  }
  if (fi->db)
    gt_rdb_delete(fi->db);
  gt_hashmap_delete(fi->node_to_parent_array);
  unregister_observers(fi, NULL);
  gt_feature_node_observer_delete(fi->obs);
  node_ul_gt_hashmap_delete(fi->cache_node2id);
  ul_node_gt_hashmap_delete(fi->cache_id2node);
  gt_hashmap_delete(fi->ref_nodes);
  gt_hashmap_delete(fi->seqid_cache);
  gt_hashmap_delete(fi->source_cache);
  gt_hashmap_delete(fi->string_caches);
  gt_hashmap_delete(fi->added);
  gt_hashmap_delete(fi->deleted);
  gt_hashmap_delete(fi->changed);
  gt_mutex_delete(fi->dblock);
}

// Assembly:
testq %rdi, %rdi
je 0x129ad9
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x128b66
movq %rax, %rdi
movq %rbx, %rsi
callq 0x147fb4
movq %rax, %rbx
xorl %r14d, %r14d
movq 0x60(%rbx,%r14,8), %rdi
callq 0x1741ef
incq %r14
cmpq $0x20, %r14
jne 0x129a28
movq 0x168(%rbx), %rdi
testq %rdi, %rdi
je 0x129a4c
callq 0x173fb0
movq 0x10(%rbx), %rdi
callq 0x105f7d
movq 0x30(%rbx), %rdi
leaq 0x139e(%rip), %rsi      # 0x12adfe
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x105afd
movq 0x160(%rbx), %rdi
callq 0x14b42e
movq 0x50(%rbx), %rdi
callq 0x106d10
movq 0x58(%rbx), %rdi
callq 0x106d10
movq 0x30(%rbx), %rdi
callq 0x105f7d
movq 0x18(%rbx), %rdi
callq 0x105f7d
movq 0x20(%rbx), %rdi
callq 0x105f7d
movq 0x28(%rbx), %rdi
callq 0x105f7d
movq 0x38(%rbx), %rdi
callq 0x105f7d
movq 0x40(%rbx), %rdi
callq 0x105f7d
movq 0x48(%rbx), %rdi
callq 0x105f7d
movq 0x170(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x122635
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: node_score_changed_callback
static void node_score_changed_callback(GtFeatureNode *changed,
                                        GT_UNUSED double score,
                                        void *data)
{
  GtUword *id;
  ObserverCallbackInfo *info = (ObserverCallbackInfo*) data;
  gt_assert(changed);
  if ((id = node_ul_gt_hashmap_get(info->fis->cache_node2id, changed))) {
    gt_hashmap_add(info->fis->changed, changed, (void*) 1);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x12a264
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %rax
movq 0x50(%rax), %rdi
movq %rsp, %rsi
movq %rbx, (%rsi)
callq 0x10620e
testq %rax, %rax
je 0x12a25c
movq 0x8(%r14), %rax
movq 0x48(%rax), %rdi
movl $0x1, %edx
movq %rbx, %rsi
callq 0x105a4c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x3b497
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: node_strand_changed_callback
static void node_strand_changed_callback(GtFeatureNode *changed,
                                         GT_UNUSED GtStrand strand,
                                         void *data)
{
  GtUword *id;
  ObserverCallbackInfo *info = (ObserverCallbackInfo*) data;
  if ((id = node_ul_gt_hashmap_get(info->fis->cache_node2id, changed))) {
    gt_hashmap_add(info->fis->changed, changed, (void*) 1);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
movq 0x8(%rdx), %rax
movq 0x50(%rax), %rdi
movq %rsp, %rsi
movq %rbx, (%rsi)
callq 0x10620e
testq %rax, %rax
je 0x12a2a0
movq 0x8(%r14), %rax
movq 0x48(%rax), %rdi
movl $0x1, %edx
movq %rbx, %rsi
callq 0x105a4c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: node_attribute_change_callback
static void node_attribute_change_callback(GtFeatureNode *changed,
                                           GT_UNUSED bool added,
                                           GT_UNUSED const char *key,
                                           GT_UNUSED const char *value,
                                           void *data)
{
  GtUword *id;
  ObserverCallbackInfo *info = (ObserverCallbackInfo*) data;
  gt_assert(changed);
  if ((id = node_ul_gt_hashmap_get(info->fis->cache_node2id, changed))) {
    gt_hashmap_add(info->fis->changed, changed, (void*) 1);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x12a32b
movq %r8, %r14
movq %rdi, %rbx
movq 0x8(%r8), %rax
movq 0x50(%rax), %rdi
movq %rsp, %rsi
movq %rbx, (%rsi)
callq 0x10620e
testq %rax, %rax
je 0x12a323
movq 0x8(%r14), %rax
movq 0x48(%rax), %rdi
movl $0x1, %edx
movq %rbx, %rsi
callq 0x105a4c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x3b4d0
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: node_attribute_delete_callback
static void node_attribute_delete_callback(GtFeatureNode *changed,
                                           GT_UNUSED const char *key,
                                           GT_UNUSED void *data)
{
  GtUword *id;
  ObserverCallbackInfo *info = (ObserverCallbackInfo*) data;
  gt_assert(changed);
  if ((id = node_ul_gt_hashmap_get(info->fis->cache_node2id, changed))) {
    gt_hashmap_add(info->fis->changed, changed, (void*) 1);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x12a374
movq %rdx, %r14
movq %rdi, %rbx
movq 0x8(%rdx), %rax
movq 0x50(%rax), %rdi
movq %rsp, %rsi
movq %rbx, (%rsi)
callq 0x10620e
testq %rax, %rax
je 0x12a36c
movq 0x8(%r14), %rax
movq 0x48(%rax), %rdi
movl $0x1, %edx
movq %rbx, %rsi
callq 0x105a4c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x3b509
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: node_child_add_callback
static int node_child_add_callback(GtFeatureNode *parent,
                                   GtFeatureNode *child,
                                   void *data)
{
  int had_err = 0;
  GtUword *id, *child_id;
  ObserverCallbackInfo *info = (ObserverCallbackInfo*) data;
  gt_assert(parent && child);

  if ((id = node_ul_gt_hashmap_get(info->fis->cache_node2id, parent))) {
    if (!(child_id = node_ul_gt_hashmap_get(info->fis->cache_node2id, child))) {
      gt_hashmap_add(info->fis->added, child, (void*) 1);
    }
    gt_hashmap_add(info->fis->changed, parent, (void*) 1);
  }
  return had_err;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x12a3ff
movq %rsi, %r15
testq %rsi, %rsi
je 0x12a3ff
movq %rdx, %r14
movq %rdi, %rbx
movq 0x8(%rdx), %rax
movq 0x50(%rax), %rdi
leaq 0x8(%rsp), %rsi
movq %rbx, (%rsi)
callq 0x10620e
testq %rax, %rax
je 0x12a3f3
movq 0x8(%r14), %rax
movq 0x50(%rax), %rdi
leaq 0x8(%rsp), %rsi
movq %r15, (%rsi)
callq 0x10620e
testq %rax, %rax
jne 0x12a3de
movq 0x8(%r14), %rax
movq 0x38(%rax), %rdi
movl $0x1, %edx
movq %r15, %rsi
callq 0x105a4c
movq 0x8(%r14), %rax
movq 0x48(%rax), %rdi
movl $0x1, %edx
movq %rbx, %rsi
callq 0x105a4c
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
callq 0x3b542
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: gt_anno_db_gfflike_new
GtAnnoDBSchema* gt_anno_db_gfflike_new(void)
{
  GtAnnoDBSchema *s = gt_anno_db_schema_create(gt_anno_db_gfflike_class());
  GtAnnoDBGFFlike *adg = anno_db_gfflike_cast(s);
  adg->visitor = gfflike_setup_visitor_new(adg);
  return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
callq 0x128a5f
movq %rax, %rdi
callq 0x12b54d
movq %rax, %rbx
callq 0x128a5f
movq %rax, %rdi
movq %rbx, %rsi
callq 0x12b62b
movq %rax, %r14
callq 0x12b4e3
movq %rax, %rdi
callq 0x174e03
movq %rax, %r15
callq 0x12b4e3
movq %rax, %rdi
movq %r15, %rsi
callq 0x174e34
testq %r14, %r14
je 0x12a462
movq %r14, 0x10(%rax)
movq %r15, 0x18(%r14)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x3b57b
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: set_parents
static int set_parents(void *key, void *value, void *data,
                       GtError *err)
{
  int had_err = 0;
  GtFeatureNode *fn = (GtFeatureNode*) key,
                *parent = NULL;
  GtArray *parent_array = (GtArray*) value;
  GtFeatureIndexGFFlike *fi = (GtFeatureIndexGFFlike*) data;
  GtUword *num, *parent_id;

  num = node_ul_gt_hashmap_get(fi->cache_node2id, fn);
  gt_assert(num);
  if (parent_array && gt_array_size(parent_array)) {
    GtUword i;
    int rval = 0;
    for (i=0;i<gt_array_size(parent_array);i++) {
      if (rval < 0) {
        had_err = -1;
        break;
      }
      parent = *(GtFeatureNode**) gt_array_get(parent_array, i);
      parent_id = node_ul_gt_hashmap_get(fi->cache_node2id, parent);
      gt_assert(parent_id);
      /* insert parents */
      gt_rdb_stmt_reset(fi->stmts[GT_PSTMT_PARENT_INSERT], err);
      gt_rdb_stmt_bind_int(fi->stmts[GT_PSTMT_PARENT_INSERT], 0, *num, err);
      gt_rdb_stmt_bind_int(fi->stmts[GT_PSTMT_PARENT_INSERT], 1, *parent_id,
                           err);
      rval = gt_rdb_stmt_exec(fi->stmts[GT_PSTMT_PARENT_INSERT], err);
    }
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq 0x50(%rdx), %rax
leaq 0x8(%rsp), %rsi
movq %rdi, (%rsi)
movq %rax, %rdi
callq 0x10620e
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x12ac8a
xorl %r13d, %r13d
testq %r15, %r15
je 0x12ac73
movq %r15, %rdi
callq 0xd4a9a
testq %rax, %rax
je 0x12ac73
movq %r15, %rdi
callq 0xd4a9a
testq %rax, %rax
je 0x12ac73
xorl %r12d, %r12d
xorl %ebp, %ebp
testl %r12d, %r12d
js 0x12ac6d
movq %r15, %rdi
movq %rbp, %rsi
callq 0xd47ba
movq (%rax), %rax
movq 0x50(%r14), %rdi
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rsi
callq 0x10620e
testq %rax, %rax
je 0x12ac85
movq %rax, %r12
movq 0x80(%r14), %rdi
movq %rbx, %rsi
callq 0x174129
movq 0x80(%r14), %rdi
movq 0x10(%rsp), %rax
movl 0x8(%rax), %edx
xorl %r13d, %r13d
xorl %esi, %esi
movq %rbx, %rcx
callq 0x17414a
movq 0x80(%r14), %rdi
movl 0x8(%r12), %edx
movl $0x1, %esi
movq %rbx, %rcx
callq 0x17414a
movq 0x80(%r14), %rdi
movq %rbx, %rsi
callq 0x1741ce
movl %eax, %r12d
incq %rbp
movq %r15, %rdi
callq 0xd4a9a
cmpq %rax, %rbp
jb 0x12abcb
jmp 0x12ac73
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3b6d1
callq 0x3b70a
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: unregister_observer
static int
unregister_observer(void *key, GT_UNUSED void *val, GT_UNUSED void *data,
                    GT_UNUSED GtError *err)
{
  GtFeatureNode *fn = (void*) key;
  gt_assert(fn);
  gt_feature_node_unset_observer(fn);
  return 0;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x12ae0d
callq 0x1492ce
xorl %eax, %eax
popq %rcx
retq
callq 0x3b7b5
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: gt_feature_index_gfflike_save_del
static int gt_feature_index_gfflike_save_del(void *key, GT_UNUSED void *val,
                                             void *data, GtError *err)
{
  GtFeatureNode *fn = (GtFeatureNode*) key;
  GtFeatureNodeIterator *it;
  GtUword *id;
  ObserverCallbackInfo *oci = (ObserverCallbackInfo*) data;
  int had_err = 0;

  it = gt_feature_node_iterator_new(fn);
  id = node_ul_gt_hashmap_get(oci->fis->cache_node2id, fn);
  if (!id) {
    return 0;
  }

  while ((fn = gt_feature_node_iterator_next(it))) {
    id = node_ul_gt_hashmap_get(oci->fis->cache_node2id, fn);
    remove_node_by_id(oci->fis, *id, err);
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r12
callq 0x14b1a8
movq %rax, 0x8(%rsp)
movq 0x8(%r14), %rax
movq 0x50(%rax), %rdi
movq %rsp, %rsi
movq %r12, (%rsi)
callq 0x10620e
testq %rax, %rax
je 0x12b1b8
movq 0x8(%rsp), %rdi
callq 0x14b33e
testq %rax, %rax
je 0x12b1b8
movq %rsp, %r12
movq 0x8(%r14), %rcx
movq 0x50(%rcx), %rdi
movq %rax, (%rsp)
movq %r12, %rsi
callq 0x10620e
movq 0x8(%r14), %r15
movq 0x8(%rax), %rbp
movq 0x118(%r15), %rdi
movq %rbx, %rsi
callq 0x174129
movq 0x118(%r15), %rdi
xorl %esi, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x17414a
movq 0x118(%r15), %rdi
movl $0x1, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x17414a
movq 0x118(%r15), %rdi
movq %rbx, %rsi
callq 0x1741ce
testl %eax, %eax
js 0x12b132
movq 0xe0(%r15), %rdi
movq %rbx, %rsi
callq 0x174129
movq 0xe0(%r15), %rdi
xorl %esi, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x17414a
movq 0xe0(%r15), %rdi
movq %rbx, %rsi
callq 0x1741ce
movl %eax, %r13d
testl %eax, %eax
js 0x12b135
movq 0xe0(%r15), %rdi
xorl %esi, %esi
leaq 0x10(%rsp), %rdx
movq %rbx, %rcx
callq 0x17422a
cmpq $0x0, 0x10(%rsp)
jne 0x12b135
movq 0x108(%r15), %rdi
movq %rbx, %rsi
callq 0x174129
movq 0x108(%r15), %rdi
xorl %esi, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x17414a
movq 0x108(%r15), %rdi
movq %rbx, %rsi
callq 0x1741ce
testl %eax, %eax
js 0x12b132
movq 0x150(%r15), %rdi
movq %rbx, %rsi
callq 0x174129
movq 0x150(%r15), %rdi
xorl %esi, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x17414a
movq 0x150(%r15), %rdi
movq %rbx, %rsi
callq 0x1741ce
movl %eax, %r13d
testl %r13d, %r13d
jne 0x12b1a5
movq 0x58(%r15), %rdi
movq %rbp, (%rsp)
movq %r12, %rsi
callq 0x10620e
movq 0x8(%rax), %r13
testq %r13, %r13
je 0x12b163
movq 0x58(%r15), %rdi
movq %rbp, (%rsp)
movq %r12, %rsi
callq 0x10659e
movq 0x50(%r15), %rdi
movq %r13, (%rsp)
movq %r12, %rsi
callq 0x10620e
testq %rax, %rax
je 0x12b188
movq 0x50(%r15), %rdi
movq %r13, (%rsp)
movq %r12, %rsi
callq 0x10659e
movq 0x30(%r15), %rdi
movq %r13, %rsi
callq 0x105a11
testq %rax, %rax
je 0x12b1a5
movq 0x30(%r15), %rdi
movq %r13, %rsi
callq 0x105a8a
movq 0x8(%rsp), %rdi
callq 0x14b33e
testq %rax, %rax
jne 0x12b007
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: resave_each_attribute
static void resave_each_attribute(const char *attr_name, const char *attr_value,
                                  void *data)
{
  GFFlikeAttributeInfo *ai = (GFFlikeAttributeInfo*) data;
  gt_rdb_stmt_reset(ai->fis->stmts[GT_PSTMT_ATTRIBUTE_INSERT], ai->err);
  gt_rdb_stmt_bind_int(ai->fis->stmts[GT_PSTMT_ATTRIBUTE_INSERT], 0, ai->id,
                       ai->err);
  gt_rdb_stmt_bind_string(ai->fis->stmts[GT_PSTMT_ATTRIBUTE_INSERT], 1,
                          attr_name, ai->err);
  gt_rdb_stmt_bind_string(ai->fis->stmts[GT_PSTMT_ATTRIBUTE_INSERT], 2,
                          attr_value, ai->err);
  gt_rdb_stmt_exec(ai->fis->stmts[GT_PSTMT_ATTRIBUTE_INSERT], ai->err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdx), %rax
movq 0x10(%rdx), %rsi
movq 0xb8(%rax), %rdi
callq 0x174129
movq (%rbx), %rax
movq 0xb8(%rax), %rdi
movl 0x8(%rbx), %edx
movq 0x10(%rbx), %rcx
xorl %esi, %esi
callq 0x17414a
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movq 0xb8(%rax), %rdi
movl $0x1, %esi
movq %r15, %rdx
callq 0x17418c
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movq 0xb8(%rax), %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x17418c
movq (%rbx), %rax
movq 0x10(%rbx), %rsi
movq 0xb8(%rax), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1741ce
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: gfflike_setup_visitor_class
static const GtRDBVisitorClass* gfflike_setup_visitor_class()
{
  static const GtRDBVisitorClass *svc = NULL;
  gt_class_alloc_lock_enter();
  if (!svc) {
    svc = gt_rdb_visitor_class_new(sizeof (GtAnnoDBGFFlike),
                                   NULL,
                                   anno_db_gfflike_init_sqlite,
                                   anno_db_gfflike_init_mysql);
  }
  gt_class_alloc_lock_leave();
  return svc;
}

// Assembly:
pushq %rax
callq 0xe6a03
cmpq $0x0, 0x39e1b7(%rip)    # 0x4c96a8
jne 0x12b514
leaq -0x370a(%rip), %rdx     # 0x127df0
leaq -0x3109(%rip), %rcx     # 0x1283f8
movl $0x20, %edi
xorl %esi, %esi
callq 0x174dc0
movq %rax, 0x39e194(%rip)    # 0x4c96a8
callq 0xe6a19
movq 0x39e188(%rip), %rax    # 0x4c96a8
popq %rcx
retq
nop
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_schema.c
// Function: gt_anno_db_schema_class_new
const GtAnnoDBSchemaClass* gt_anno_db_schema_class_new(size_t size,
                            GtAnnoDBSchemaFreeFunc free_func,
                            GtAnnoDBSchemaBuildFunc build_func)
{
  GtAnnoDBSchemaClass *c_class = gt_class_alloc(sizeof *c_class);
  c_class->size = size;
  c_class->free_func = free_func;
  c_class->build_func = build_func;
  return c_class;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x18, %edi
callq 0x301854
movq %r15, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_schema.c
// Function: gt_anno_db_schema_create
GtAnnoDBSchema* gt_anno_db_schema_create(const GtAnnoDBSchemaClass *dbc)
{
  GtAnnoDBSchema *s;
  gt_assert(dbc && dbc->size);
  s = gt_calloc(1, dbc->size);
  s->c_class = dbc;
  s->members = gt_calloc(1, sizeof (GtAnnoDBSchemaMembers));
  return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x12b5a5
movq %rdi, %rbx
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x12b5a5
leaq 0x254d31(%rip), %r14    # 0x38029a
movl $0x1, %edi
movq %r14, %rdx
movl $0x2f, %ecx
callq 0x1093ef
movq %rax, %r15
movq %rbx, (%rax)
movl $0x1, %edi
movl $0x4, %esi
movq %r14, %rdx
movl $0x31, %ecx
callq 0x1093ef
movq %rax, 0x8(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x3b860
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_schema.c
// Function: gt_anno_db_schema_delete
void gt_anno_db_schema_delete(GtAnnoDBSchema *s)
{
  if (!s) return;
  if (s->members->reference_count) {
    s->members->reference_count--;
    return;
  }
  gt_assert(s->c_class);
  if (s->c_class->free_func) s->c_class->free_func(s);
  gt_free(s->members);
  gt_free(s);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x12b5d9
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movl (%rax), %ecx
testl %ecx, %ecx
je 0x12b5e1
decl %ecx
movl %ecx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq (%rbx), %rax
testq %rax, %rax
je 0x12b626
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x12b5f7
movq %rbx, %rdi
callq *%rax
movq 0x8(%rbx), %rdi
leaq 0x254c98(%rip), %r14    # 0x38029a
movq %r14, %rsi
movl $0x45, %edx
callq 0x109670
movq %rbx, %rdi
movq %r14, %rsi
movl $0x46, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x109670
callq 0x3b8ce
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/anno_db_schema.c
// Function: gt_anno_db_schema_get_feature_index
GtFeatureIndex* gt_anno_db_schema_get_feature_index(GtAnnoDBSchema *s,
                                                    GtRDB *rdb, GtError *err)
{
  gt_assert(s && s->c_class);
  if (s->c_class->build_func)
    return s->c_class->build_func(s, rdb, err);
  return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x12b65f
movq (%rdi), %rax
testq %rax, %rax
je 0x12b65f
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x12b65c
jmpq *%rax
xorl %eax, %eax
retq
pushq %rax
callq 0x3b93c
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/array_in_stream.c
// Function: gt_array_in_stream_class
const GtNodeStreamClass* gt_array_in_stream_class(void)
{
  static const GtNodeStreamClass *gsc = NULL;
  gt_class_alloc_lock_enter();
  if (!gsc) {
    gsc = gt_node_stream_class_new(sizeof (GtArrayInStream),
                                   NULL,
                                   gt_array_in_stream_next);
  }
  gt_class_alloc_lock_leave();
  return gsc;
}

// Assembly:
pushq %rax
callq 0xe6a03
cmpq $0x0, 0x39e03a(%rip)    # 0x4c96b0
jne 0x12b692
leaq 0x21(%rip), %rdx        # 0x12b6a0
movl $0x28, %edi
xorl %esi, %esi
callq 0x16abb4
movq %rax, 0x39e01e(%rip)    # 0x4c96b0
callq 0xe6a19
movq 0x39e012(%rip), %rax    # 0x4c96b0
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/array_in_stream.c
// Function: gt_array_in_stream_next
static int gt_array_in_stream_next(GtNodeStream *gs, GtGenomeNode **gn,
                                   GT_UNUSED GtError *err)
{
  GtArrayInStream *ais;
  int had_err = 0;

  gt_error_check(err);
  ais = gt_array_in_stream_cast(gs);
  if (ais->next_index >= gt_array_size(ais->nodes))
    *gn = NULL;
  else {
    *gn = *(GtGenomeNode**) gt_array_get(ais->nodes, ais->next_index);
    ais->next_index++;
    if (ais->progress)
      *ais->progress = *ais->progress + 1;
  }

  return had_err;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x12b6bc
movq %rdx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x12b715
callq 0x12b668
movq %rax, %rdi
movq %r14, %rsi
callq 0x16ae64
movq %rax, %r14
movq 0x10(%rax), %rdi
movq 0x18(%rax), %r15
callq 0xd4a9a
cmpq %rax, %r15
jae 0x12b706
movq 0x10(%r14), %rdi
movq 0x18(%r14), %rsi
callq 0xd47ba
movq (%rax), %rax
movq %rax, (%rbx)
incq 0x18(%r14)
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x12b70d
incq (%rax)
jmp 0x12b70d
movq $0x0, (%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
callq 0x3b973
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/array_in_stream.c
// Function: gt_array_in_stream_new
GtNodeStream* gt_array_in_stream_new(GtArray *nodes,
                                     GtUword *progress,
                                     GT_UNUSED GtError *err)
{
  GtNodeStream *gs;
  GtArrayInStream *ais;
  gt_assert(nodes);
  gs = gt_node_stream_create(gt_array_in_stream_class(), false);
  ais = gt_array_in_stream_cast(gs);
  ais->nodes = nodes;
  ais->progress = progress;
  ais->next_index = 0;

  return gs;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x12b765
movq %rsi, %rbx
movq %rdi, %r14
callq 0x12b668
movq %rax, %rdi
xorl %esi, %esi
callq 0x16abec
movq %rax, %r15
callq 0x12b668
movq %rax, %rdi
movq %r15, %rsi
callq 0x16ae64
movq %r14, 0x10(%rax)
movq %rbx, 0x20(%rax)
movq $0x0, 0x18(%rax)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x3b9aa
nop
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/array_out_stream.c
// Function: gt_array_out_stream_class
const GtNodeStreamClass* gt_array_out_stream_class(void)
{
  static const GtNodeStreamClass *gsc = NULL;
  gt_class_alloc_lock_enter();
  if (!gsc) {
    gsc = gt_node_stream_class_new(sizeof (GtArrayOutStream),
                                   gt_array_out_stream_free,
                                   gt_array_out_stream_next);
  }
  gt_class_alloc_lock_leave();
  return gsc;
}

// Assembly:
pushq %rax
callq 0xe6a03
cmpq $0x0, 0x39df3e(%rip)    # 0x4c96b8
jne 0x12b79b
leaq 0x26(%rip), %rsi        # 0x12b7a9
leaq 0x3d(%rip), %rdx        # 0x12b7c7
movl $0x28, %edi
callq 0x16abb4
movq %rax, 0x39df1d(%rip)    # 0x4c96b8
callq 0xe6a19
movq 0x39df11(%rip), %rax    # 0x4c96b8
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/array_out_stream.c
// Function: gt_array_out_stream_next
static int gt_array_out_stream_next(GtNodeStream *gs, GtGenomeNode **gn,
                                    GtError *err)
{
  GtArrayOutStream *aos;
  GT_UNUSED GtFeatureNode *node;
  GtGenomeNode  *gn_ref;
  int had_err = 0;

  gt_error_check(err);
  aos = gt_array_out_stream_cast(gs);
  had_err = gt_node_stream_next(aos->in_stream, gn, err);

  if (!had_err && *gn) {
    if (aos->store_all || (node = gt_feature_node_try_cast(*gn))) {
      gn_ref = gt_genome_node_ref(*gn);
      gt_array_add(aos->nodes, gn_ref);
    }
  }

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x12b7e8
movq %r15, %rdi
callq 0x101a9a
testb %al, %al
jne 0x12b852
callq 0x12b76c
movq %rax, %rdi
movq %r14, %rsi
callq 0x16ae64
movq %rax, %r14
movq 0x10(%rax), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x16ace8
movl %eax, %ebp
testl %eax, %eax
jne 0x12b845
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x12b845
cmpb $0x0, 0x20(%r14)
jne 0x12b829
callq 0x14aefc
testq %rax, %rax
je 0x12b845
movq (%rbx), %rdi
callq 0x14b5fc
movq %rsp, %rsi
movq %rax, (%rsi)
movq 0x18(%r14), %rdi
movl $0x8, %edx
callq 0xd49ce
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x3b9e1
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/array_out_stream.c
// Function: gt_array_out_stream_new_generic
static GtNodeStream* gt_array_out_stream_new_generic(GtNodeStream *in_stream,
                                                     GtArray *nodes,
                                                     bool store_all,
                                                     GT_UNUSED GtError *err)
{
  GtNodeStream *gs;
  GtArrayOutStream *aos;
  gt_assert(in_stream && nodes);
  gs = gt_node_stream_create(gt_array_out_stream_class(), false);
  aos = gt_array_out_stream_cast(gs);
  aos->in_stream = gt_node_stream_ref(in_stream);
  aos->nodes = nodes;
  aos->store_all = store_all;
  return gs;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x12b8bc
movq %rsi, %r14
testq %rsi, %rsi
je 0x12b8bc
movl %edx, %ebx
movq %rdi, %r15
callq 0x12b76c
movq %rax, %rdi
xorl %esi, %esi
callq 0x16abec
movq %rax, %r12
callq 0x12b76c
movq %rax, %rdi
movq %r12, %rsi
callq 0x16ae64
movq %rax, %r13
movq %r15, %rdi
callq 0x16ac58
movq %rax, 0x10(%r13)
movq %r14, 0x18(%r13)
movb %bl, 0x20(%r13)
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
callq 0x3ba18
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/assembly_stats_calculator.c
// Function: gt_assembly_stats_calculator_new
GtAssemblyStatsCalculator *gt_assembly_stats_calculator_new(void)
{
  GtAssemblyStatsCalculator *asc;

  asc = gt_malloc(sizeof (GtAssemblyStatsCalculator));
  asc->lengths = gt_disc_distri_new();
  asc->numofseq = 0;
  asc->sumlength = 0;
  asc->minlength = 0;
  asc->maxlength = 0;
  asc->genome_length = 0;
  asc->nstats = gt_array_new(sizeof (GtUword));
  return asc;
}

// Assembly:
pushq %rbx
leaq 0x254b94(%rip), %rsi    # 0x380464
movl $0x38, %edi
movl $0x28, %edx
callq 0x1092b2
movq %rax, %rbx
callq 0xe99dc
movq %rax, 0x28(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x20(%rbx)
movl $0x8, %edi
callq 0xd46fc
movq %rax, 0x30(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/assembly_stats_calculator.c
// Function: gt_assembly_stats_calculator_delete
void gt_assembly_stats_calculator_delete(GtAssemblyStatsCalculator *asc)
{
  if (asc != NULL)
  {
    gt_disc_distri_delete(asc->lengths);
    gt_array_delete(asc->nstats);
    gt_free(asc);
  }
}

// Assembly:
testq %rdi, %rdi
je 0x12b940
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
callq 0xe9ff6
movq 0x30(%rbx), %rdi
callq 0xd4ef4
leaq 0x254b32(%rip), %rsi    # 0x380464
movq %rbx, %rdi
movl $0x39, %edx
popq %rbx
jmp 0x109670
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/assembly_stats_calculator.c
// Function: gt_assembly_stats_calculator_add
void gt_assembly_stats_calculator_add(GtAssemblyStatsCalculator *asc,
    GtUword length)
{
  gt_assert(asc != NULL);
  gt_assert(length != 0);
  gt_disc_distri_add(asc->lengths, length);
  (asc->numofseq)++;
  asc->sumlength += length;
  if (asc->minlength == 0 || length < asc->minlength)
    asc->minlength = length;
  if (length > asc->maxlength)
    asc->maxlength = length;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x12b9a2
movq %rsi, %rbx
testq %rsi, %rsi
je 0x12b9a7
movq %rdi, %r14
movq 0x28(%rdi), %rdi
movq %rbx, %rsi
callq 0xe99f7
movdqu (%r14), %xmm0
movq %rbx, %xmm1
movdqa 0x254a9d(%rip), %xmm2   # 0x380410
punpcklqdq %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0]
paddq %xmm0, %xmm2
movdqu %xmm2, (%r14)
movq 0x10(%r14), %rax
decq %rax
cmpq %rbx, %rax
jb 0x12b990
movq %rbx, 0x10(%r14)
cmpq %rbx, 0x18(%r14)
jae 0x12b99a
movq %rbx, 0x18(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x3ba86
callq 0x3ba4f
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/assembly_stats_calculator.c
// Function: gt_assembly_stats_calculator_nstat
GtUword gt_assembly_stats_calculator_nstat(GtAssemblyStatsCalculator *asc,
    GtUword n)
{
  Nstats nstats;
  gt_assert(n > 0);
  gt_assert(n < (GtUword)100UL);
  nstats.min[0] = (GtUint64) (asc->sumlength * ((float)n / 100U));
  nstats.nvalue[0] = 0;
  nstats.lvalue[0] = 0;
  nstats.done[0] = false;
  nstats.nofstats = 1U;
  nstats.current_len = 0;
  nstats.current_num = 0;
  nstats.half_num = (GtUint64) (asc->numofseq >> 1);
  nstats.fourth_num = nstats.half_num >> 1;
  nstats.three_fourth_num = nstats.fourth_num + nstats.half_num;
  nstats.median = 0;
  nstats.first_quartile = 0;
  nstats.third_quartile = 0;
  gt_disc_distri_foreach_in_reverse_order(asc->lengths, calcNstats, &nstats);
  return nstats.nvalue[0];
}

// Assembly:
pushq %rbx
subq $0x240, %rsp            # imm = 0x240
testq %rsi, %rsi
je 0x12bab4
cmpq $0x64, %rsi
jae 0x12bab9
movq 0x8(%rdi), %rax
testq %rax, %rax
js 0x12b9e7
cvtsi2ss %rax, %xmm0
jmp 0x12b9fc
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rsi, %xmm1
divss 0x2318e7(%rip), %xmm1   # 0x35d2f0
mulss %xmm0, %xmm1
cvttss2si %xmm1, %rax
movq %rax, %rcx
subss 0x254a43(%rip), %xmm1   # 0x380460
cvttss2si %xmm1, %rdx
sarq $0x3f, %rcx
andq %rcx, %rdx
orq %rax, %rdx
leaq 0x8(%rsp), %rbx
movq %rdx, 0xe0(%rbx)
xorl %eax, %eax
movq %rax, 0x140(%rbx)
movq %rax, 0x190(%rbx)
movb $0x0, 0x50(%rbx)
movl $0x1, 0x230(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rbx)
movq (%rdi), %rcx
movq %rcx, %rdx
shrq %rdx
movq %rdx, 0x80(%rbx)
shrq $0x2, %rcx
movq %rcx, 0x78(%rbx)
addq %rdx, %rcx
movq %rcx, 0x138(%rbx)
movq %rax, 0xd8(%rbx)
movq %rax, 0x70(%rbx)
movq %rax, 0x130(%rbx)
movq 0x28(%rdi), %rdi
leaq 0x22(%rip), %rsi        # 0x12babe
movq %rbx, %rdx
callq 0xe9c6b
movq 0x140(%rbx), %rax
addq $0x240, %rsp            # imm = 0x240
popq %rbx
retq
callq 0x3bb2d
callq 0x3baf4
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/assembly_stats_calculator.c
// Function: calcNstats
static void calcNstats(GtUword key, GtUint64 value,
                        void *data)
{
  Nstats *nstats = data;
  unsigned int i;
  nstats->current_len += (key * value);
  nstats->current_num += value;
  for (i = 0; i < (unsigned int) NOF_LIMITS; i++)
  {
    if ((GtUint64) key > nstats->limit[i])
      nstats->larger_than_limit[i] = nstats->current_num;
  }
  if (nstats->third_quartile == 0 && nstats->current_num >= nstats->fourth_num)
  {
    nstats->third_quartile = (GtUint64) key;
  }
  if (nstats->median == 0 && nstats->current_num >= nstats->half_num)
  {
    nstats->median = (GtUint64) key;
  }
  if (nstats->first_quartile == 0 && nstats->current_num >=
      nstats->three_fourth_num)
  {
    nstats->first_quartile = (GtUint64) key;
  }
  for (i = 0; i < nstats->nofstats; i++)
  {
    if (!nstats->done[i] && (nstats->current_len >= nstats->min[i]))
    {
      nstats->done[i] = true;
      nstats->nvalue[i] = key;
      nstats->lvalue[i] = (GtUword) nstats->current_num;
    }
  }
}

// Assembly:
movq %rsi, %rax
imulq %rdi, %rax
addq 0x60(%rdx), %rax
movq %rax, 0x60(%rdx)
addq 0x68(%rdx), %rsi
movq %rsi, 0x68(%rdx)
movq $-0x5, %rcx
cmpq %rdi, 0xd8(%rdx,%rcx,8)
jae 0x12baee
movq %rsi, 0xb0(%rdx,%rcx,8)
incq %rcx
jne 0x12badc
cmpq $0x0, 0x130(%rdx)
jne 0x12bb0a
cmpq 0x78(%rdx), %rsi
jb 0x12bb0a
movq %rdi, 0x130(%rdx)
cmpq $0x0, 0xd8(%rdx)
jne 0x12bb24
cmpq 0x80(%rdx), %rsi
jb 0x12bb24
movq %rdi, 0xd8(%rdx)
cmpq $0x0, 0x70(%rdx)
jne 0x12bb38
cmpq 0x138(%rdx), %rsi
jb 0x12bb38
movq %rdi, 0x70(%rdx)
movl 0x230(%rdx), %ecx
testq %rcx, %rcx
je 0x12bb76
xorl %r8d, %r8d
cmpb $0x0, 0x50(%rdx,%r8)
jne 0x12bb6e
cmpq 0xe0(%rdx,%r8,8), %rax
jb 0x12bb6e
movb $0x1, 0x50(%rdx,%r8)
movq %rdi, 0x140(%rdx,%r8,8)
movq %rsi, 0x190(%rdx,%r8,8)
incq %r8
cmpq %r8, %rcx
jne 0x12bb46
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/assembly_stats_calculator.c
// Function: gt_assembly_stats_calculator_register_nstat
int gt_assembly_stats_calculator_register_nstat(GtAssemblyStatsCalculator *asc,
                                                GtUword n, GtError *err)
{
  GtUword i;
  bool present;
  gt_assert(asc != NULL && n > 0);

  if (n > 100) {
    gt_error_set(err, "invalid N value " GT_WU ", must be <= 100", n);
    return -1;
  }

  if (gt_array_size(asc->nstats) == MAX_NOF_NSTATS) {
    gt_error_set(err, "Limit of N statistics reached (%d)", MAX_NOF_NSTATS);
    return -1;
  }

  present = false;
  for (i = 0; i < gt_array_size(asc->nstats); i++) {
    if ((*(GtUword*) gt_array_get(asc->nstats, i)) == n) {
      present = true;
      break;
    }
  }
  if (!present) {
    gt_array_add(asc->nstats, n);
  }

  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, 0x8(%rsp)
testq %rdi, %rdi
je 0x12bc44
movq %rdx, %r14
movq %rsi, %rdx
testq %rsi, %rsi
je 0x12bc44
cmpq $0x65, %rdx
jb 0x12bbb6
leaq 0x2549b6(%rip), %rsi    # 0x380560
movq %r14, %rdi
xorl %eax, %eax
callq 0x1019cf
jmp 0x12bbde
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0xd4a9a
cmpq $0xa, %rax
jne 0x12bbf1
leaq 0x2549b5(%rip), %rsi    # 0x380584
movq %r14, %rdi
movl $0xa, %edx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x30(%rbx), %rdi
callq 0xd4a9a
testq %rax, %rax
je 0x12bc2c
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x30(%rbx), %rdi
movq %r15, %rsi
callq 0xd47ba
movq (%rax), %rax
cmpq 0x8(%rsp), %rax
je 0x12bbe4
incq %r15
movq 0x30(%rbx), %rdi
callq 0xd4a9a
cmpq %rax, %r15
jb 0x12bc05
movq 0x30(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
callq 0xd49ce
xorl %r14d, %r14d
jmp 0x12bbe4
callq 0x3bb66
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/bed_in_stream.c
// Function: gt_bed_in_stream_class
const GtNodeStreamClass* gt_bed_in_stream_class(void)
{
  static const GtNodeStreamClass *nsc = NULL;
  gt_class_alloc_lock_enter();
  if (!nsc) {
    nsc = gt_node_stream_class_new(sizeof (GtBEDInStream),
                                   bed_in_stream_free,
                                   bed_in_stream_next);
  }
  gt_class_alloc_lock_leave();
  return nsc;
}

// Assembly:
pushq %rax
callq 0xe6a03
cmpq $0x0, 0x39d306(%rip)    # 0x4c96c0
jne 0x12c3db
leaq 0x26(%rip), %rsi        # 0x12c3e9
leaq 0x7f(%rip), %rdx        # 0x12c449
movl $0x30, %edi
callq 0x16abb4
movq %rax, 0x39d2e5(%rip)    # 0x4c96c0
callq 0xe6a19
movq 0x39d2d9(%rip), %rax    # 0x4c96c0
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/bed_in_stream.c
// Function: bed_in_stream_free
static void bed_in_stream_free(GtNodeStream *ns)
{
  GtBEDInStream *bed_in_stream = bed_in_stream_cast(ns);
  gt_free(bed_in_stream->filename);
  while (gt_queue_size(bed_in_stream->genome_node_buffer))
    gt_genome_node_delete(gt_queue_get(bed_in_stream->genome_node_buffer));
  gt_queue_delete(bed_in_stream->genome_node_buffer);
  gt_bed_parser_delete(bed_in_stream->bed_parser);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x12c3ac
movq %rax, %rdi
movq %rbx, %rsi
callq 0x16ae64
movq %rax, %rbx
movq 0x20(%rax), %rdi
leaq 0x25446b(%rip), %rsi    # 0x380876
movl $0x4b, %edx
callq 0x109670
movq 0x18(%rbx), %rdi
callq 0x112a74
testq %rax, %rax
je 0x12c436
movq 0x18(%rbx), %rdi
callq 0x112a12
movq %rax, %rdi
callq 0x14c43a
jmp 0x12c415
movq 0x18(%rbx), %rdi
callq 0x112f03
movq 0x10(%rbx), %rdi
popq %rbx
jmp 0x12c61e
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/bed_in_stream.c
// Function: bed_in_stream_next
static int bed_in_stream_next(GtNodeStream *ns, GtGenomeNode **gn,
                              GT_UNUSED GtError *err)
{
  GtBEDInStream *is;
  int had_err = 0;
  gt_error_check(err);
  is = bed_in_stream_cast(ns);
  if (!is->file_processed) {
    had_err = bed_in_stream_process_file(is, err);
    is->file_processed = true;
  }
  if (!had_err && gt_queue_size(is->genome_node_buffer)) {
    /* we still have a node in the buffer -> serve it from there */
    *gn = gt_queue_get(is->genome_node_buffer);
    return 0;
  }
  if (!had_err) {
    /* the buffer is empty */
    gt_assert(!gt_queue_size(is->genome_node_buffer));
    *gn = NULL;
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
testq %rdx, %rdx
je 0x12c46e
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0x12c4f5
callq 0x12c3ac
movq %rax, %rdi
movq %r15, %rsi
callq 0x16ae64
movq %rax, %r15
xorl %ebp, %ebp
cmpb $0x0, 0x28(%rax)
jne 0x12c4ba
testq %r14, %r14
je 0x12c49a
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0x12c4ff
testq %r15, %r15
je 0x12c4fa
movq 0x10(%r15), %rdi
movq 0x18(%r15), %rsi
movq 0x20(%r15), %rdx
movq %r14, %rcx
callq 0x12c6d1
movl %eax, %ebp
movb $0x1, 0x28(%r15)
testl %ebp, %ebp
jne 0x12c4e8
movq 0x18(%r15), %rdi
callq 0x112a74
movq 0x18(%r15), %rdi
testq %rax, %rax
je 0x12c4d9
callq 0x112a12
xorl %ebp, %ebp
jmp 0x12c4e5
callq 0x112a74
testq %rax, %rax
jne 0x12c504
xorl %eax, %eax
movq %rax, (%rbx)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x3bbd8
callq 0x3bc46
callq 0x3bc0f
callq 0x3bc7d
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/bed_in_stream.c
// Function: gt_bed_in_stream_new
GtNodeStream* gt_bed_in_stream_new(const char *filename)
{
  GtBEDInStream *bed_in_stream;
  GtNodeStream *ns = gt_node_stream_create(gt_bed_in_stream_class(), false);
  bed_in_stream = bed_in_stream_cast(ns);
  bed_in_stream->bed_parser = gt_bed_parser_new();
  bed_in_stream->genome_node_buffer = gt_queue_new();
  bed_in_stream->filename = filename ? gt_cstr_dup(filename) : NULL;
  return ns;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
callq 0x12c3ac
xorl %r14d, %r14d
movq %rax, %rdi
xorl %esi, %esi
callq 0x16abec
movq %rax, %rbx
callq 0x12c3ac
movq %rax, %rdi
movq %rbx, %rsi
callq 0x16ae64
movq %rax, %r12
callq 0x12c5c0
movq %rax, 0x10(%r12)
callq 0x112908
movq %rax, 0x18(%r12)
testq %r15, %r15
je 0x12c560
movq %r15, %rdi
callq 0xe8760
movq %rax, %r14
movq %r14, 0x20(%r12)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/bed_parser.c
// Function: gt_bed_parser_new
GtBEDParser* gt_bed_parser_new(void)
{
  GtBEDParser *bed_parser = gt_calloc(1, sizeof *bed_parser);
  bed_parser->region_node_builder = gt_region_node_builder_new();
  bed_parser->feature_nodes = gt_queue_new();
  bed_parser->seqid_to_str_mapping = gt_hashmap_new(GT_HASH_STRING, NULL,
                                                    (GtFree) gt_str_delete);
  bed_parser->word = gt_str_new();
  bed_parser->another_word = gt_str_new();
  return bed_parser;
}

// Assembly:
pushq %rbx
leaq 0x254376(%rip), %rdx    # 0x38093e
movl $0x1, %edi
movl $0x48, %esi
movl $0x37, %ecx
callq 0x1093ef
movq %rax, %rbx
callq 0x176cd4
movq %rax, (%rbx)
callq 0x112908
movq %rax, 0x8(%rbx)
leaq -0xaaf4(%rip), %rdx     # 0x121b03
movl $0x1, %edi
xorl %esi, %esi
callq 0x105830
movq %rax, 0x10(%rbx)
callq 0x1208f8
movq %rax, 0x18(%rbx)
callq 0x1208f8
movq %rax, 0x20(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/bed_parser.c
// Function: gt_bed_parser_delete
void gt_bed_parser_delete(GtBEDParser *bed_parser)
{
  if (!bed_parser) return;
  gt_free(bed_parser->block_type);
  gt_free(bed_parser->thick_feature_type);
  gt_free(bed_parser->feature_type);
  gt_str_delete(bed_parser->another_word);
  gt_str_delete(bed_parser->word);
  gt_hashmap_delete(bed_parser->seqid_to_str_mapping);
  while (gt_queue_size(bed_parser->feature_nodes))
    gt_genome_node_delete(gt_queue_get(bed_parser->feature_nodes));
  gt_queue_delete(bed_parser->feature_nodes);
  gt_region_node_builder_delete(bed_parser->region_node_builder);
  gt_free(bed_parser);
}

// Assembly:
testq %rdi, %rdi
je 0x12c6d0
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
leaq 0x254305(%rip), %r14    # 0x38093e
movq %r14, %rsi
movl $0x44, %edx
callq 0x109670
movq 0x30(%rbx), %rdi
movq %r14, %rsi
movl $0x45, %edx
callq 0x109670
movq 0x28(%rbx), %rdi
movq %r14, %rsi
movl $0x46, %edx
callq 0x109670
movq 0x20(%rbx), %rdi
callq 0x121b03
movq 0x18(%rbx), %rdi
callq 0x121b03
movq 0x10(%rbx), %rdi
callq 0x105f7d
movq 0x8(%rbx), %rdi
callq 0x112a74
testq %rax, %rax
je 0x12c6a4
movq 0x8(%rbx), %rdi
callq 0x112a12
movq %rax, %rdi
callq 0x14c43a
jmp 0x12c683
movq 0x8(%rbx), %rdi
callq 0x112f03
movq (%rbx), %rdi
callq 0x176d0a
leaq 0x254282(%rip), %rsi    # 0x38093e
movq %rbx, %rdi
movl $0x4e, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x109670
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/bed_parser.c
// Function: rest_line
static void rest_line(GtIO *bed_file)
{
  for (;;) {
    switch (gt_io_peek(bed_file)) {
      case GT_CARRIAGE_RETURN:
        gt_io_next(bed_file);
        if (gt_io_peek(bed_file) == GT_END_OF_LINE)
          gt_io_next(bed_file);
        return;
      case GT_END_OF_LINE:
        gt_io_next(bed_file);
        /*@fallthrough@*/
      case GT_END_OF_FILE:
        return;
      default:
        gt_io_next(bed_file);
    }
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq %rbx, %rdi
callq 0x108c0e
cmpb $0xa, %al
je 0x12d71b
movzbl %al, %eax
cmpl $0xff, %eax
je 0x12d724
movq %rbx, %rdi
cmpl $0xd, %eax
je 0x12d70a
callq 0x108c47
jmp 0x12d6e5
callq 0x108c47
movq %rbx, %rdi
callq 0x108c0e
cmpb $0xa, %al
jne 0x12d724
movq %rbx, %rdi
popq %rbx
jmp 0x108c47
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/bed_parser.c
// Function: word
static void word(GtStr *word, GtIO *bed_file)
{
  gt_str_reset(word);
  for (;;) {
    switch (gt_io_peek(bed_file)) {
      case BLANK_CHAR:
      case TABULATOR_CHAR:
      case PAIR_SEPARATOR:
      case GT_CARRIAGE_RETURN:
      case GT_END_OF_LINE:
      case GT_END_OF_FILE:
        return;
      default:
        gt_str_append_char(word, gt_io_next(bed_file));
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x120db4
movabsq $0x2000000100002600, %r15 # imm = 0x2000000100002600
movq %rbx, %rdi
callq 0x108c0e
movzbl %al, %eax
cmpb $0x3d, %al
ja 0x12d755
btq %rax, %r15
jb 0x12d771
cmpl $0xff, %eax
je 0x12d771
movq %rbx, %rdi
callq 0x108c47
movsbl %al, %esi
movq %r14, %rdi
callq 0x120ba5
jmp 0x12d740
popq %rbx
popq %r14
popq %r15
retq