LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/feature_node_iterator.c
// Function: gt_feature_node_iterator_new_direct
GtFeatureNodeIterator* gt_feature_node_iterator_new_direct(const GtFeatureNode
                                                           *fn)
{
  GtFeatureNodeIterator *fni;
  gt_assert(fn);
  fni = feature_node_iterator_new_base(fn);
  if (fn->children)
    add_children_to_stack(fni->feature_stack, fn);
  fni->direct = true;
  return fni;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x41004
movq %rdi, %rbx
callq 0x40f89
movq %rax, %r14
cmpq $0x0, 0x70(%rbx)
je 0x40ff4
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x41009
movb $0x1, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x10c29
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/feature_node_iterator.c
// Function: add_children_to_stack
static void add_children_to_stack(GtArray *feature_stack,
                                  const GtFeatureNode *fn)
{
  GtFeatureNode *child;
  GtDlistelem *dlistelem;
  gt_assert(feature_stack && fn && fn->children);
  /* add the children backwards to traverse in order */
  for (dlistelem = gt_dlist_last(fn->children); dlistelem != NULL;
       dlistelem = gt_dlistelem_previous(dlistelem)) {
    child = gt_dlistelem_get_data(dlistelem);
    gt_array_add(feature_stack, child);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x41071
testq %rsi, %rsi
je 0x41071
movq %rdi, %rbx
movq 0x70(%rsi), %rdi
testq %rdi, %rdi
je 0x41071
callq 0x73318
testq %rax, %rax
je 0x41067
movq %rax, %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
callq 0x73384
movq %rax, 0x8(%rsp)
movl $0x8, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6f240
movq %r14, %rdi
callq 0x74122
movq %rax, %r14
testq %rax, %rax
jne 0x4103a
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
callq 0x10c60
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/feature_node_iterator.c
// Function: gt_feature_node_iterator_next
GtFeatureNode* gt_feature_node_iterator_next(GtFeatureNodeIterator *fni)
{
  GtFeatureNode *fn;
  gt_assert(fni);
  if (!gt_array_size(fni->feature_stack))
    return NULL;
  /* pop */
  fn = *(GtFeatureNode**) gt_array_pop(fni->feature_stack);
  /* push children on stack */
  if (!fni->direct && fn->children)
    add_children_to_stack(fni->feature_stack, fn);
  return fn;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x410c5
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x6f310
testq %rax, %rax
je 0x410b7
movq 0x8(%rbx), %rdi
callq 0x6f072
movq (%rax), %r14
cmpb $0x0, 0x10(%rbx)
jne 0x410ba
cmpq $0x0, 0x70(%r14)
je 0x410ba
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x41009
jmp 0x410ba
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x10c97
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/feature_node_iterator.c
// Function: gt_feature_node_iterator_example
int gt_feature_node_iterator_example(GT_UNUSED GtError *err)
{
  GtFeatureNodeIterator *fni;
  GtFeatureNode *fn, *node;
  fn = (GtFeatureNode*) gt_feature_node_new_standard_gene();

  /* an example genome node iterator use case */
  fni = gt_feature_node_iterator_new(fn);
  while ((node = gt_feature_node_iterator_next(fni))) {
    /* do something with <node> */
  }
  gt_feature_node_iterator_delete(fni);

  gt_genome_node_delete((GtGenomeNode*) fn);
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x3f477
movq %rax, %rbx
movq %rax, %rdi
callq 0x40ee0
movq %rax, %r14
movq %r14, %rdi
callq 0x41076
testq %rax, %rax
jne 0x410e1
movq %r14, %rdi
callq 0x41108
movq %rbx, %rdi
callq 0x4210c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/feature_node_iterator.c
// Function: gt_feature_node_iterator_delete
void gt_feature_node_iterator_delete(GtFeatureNodeIterator *fni)
{
  if (!fni) return;
  gt_genome_node_delete((GtGenomeNode*) fni->fn);
  gt_array_delete(fni->feature_stack);
  gt_free(fni);
}

// Assembly:
testq %rdi, %rdi
je 0x41137
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x4210c
movq 0x8(%rbx), %rdi
callq 0x6f768
leaq 0xa46ec(%rip), %rsi     # 0xe5815
movq %rbx, %rdi
movl $0x7d, %edx
popq %rbx
jmp 0x35c27
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/feature_node_observer.c
// Function: gt_feature_node_observer_delete
void gt_feature_node_observer_delete(GtFeatureNodeObserver *o)
{
  if (!o) return;
  if (o->reference_count) {
    o->reference_count--;
    return;
  }
  if (o->data)
    gt_free(o->data);
  gt_free(o);
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x4117f
movq %rdi, %rbx
movq 0x68(%rdi), %rax
testq %rax, %rax
je 0x41181
decq %rax
movq %rax, 0x68(%rbx)
popq %rbx
retq
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x4119b
leaq 0xa474b(%rip), %rsi     # 0xe58dc
movl $0x2a, %edx
callq 0x35c27
leaq 0xa473a(%rip), %rsi     # 0xe58dc
movq %rbx, %rdi
movl $0x2b, %edx
popq %rbx
jmp 0x35c27
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/feature_visitor.c
// Function: gt_feature_visitor_class
const GtNodeVisitorClass* gt_feature_visitor_class()
{
  static const GtNodeVisitorClass *gvc = NULL;
  gt_class_alloc_lock_enter();
  if (!gvc) {
    gvc = gt_node_visitor_class_new(sizeof (GtFeatureVisitor),
                                    feature_visitor_free,
                                    NULL,
                                    feature_visitor_feature_node,
                                    feature_visitor_region_node,
                                    NULL,
                                    NULL);
  }
  gt_class_alloc_lock_leave();
  return gvc;
}

// Assembly:
pushq %rax
callq 0x72367
cmpq $0x0, 0x11197a(%rip)    # 0x152b38
jne 0x411f3
movq $0x0, (%rsp)
leaq 0x32(%rip), %rsi        # 0x41201
leaq 0x53(%rip), %rcx        # 0x41229
leaq 0x97(%rip), %r8         # 0x41274
movl $0x18, %edi
xorl %edx, %edx
xorl %r9d, %r9d
callq 0x48f24
movq %rax, 0x111945(%rip)    # 0x152b38
callq 0x7237d
movq 0x111939(%rip), %rax    # 0x152b38
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/feature_visitor.c
// Function: feature_visitor_feature_node
static int feature_visitor_feature_node(GtNodeVisitor *gv, GtFeatureNode *fn,
                                        GtError *err)
{
  GtFeatureVisitor *v = feature_visitor_cast(gv);
  int rval = 0;
  gt_error_check(err);
  rval = gt_feature_index_add_feature_node(v->feature_index, fn, err);
  return rval;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x411b0
movq %rax, %rdi
movq %r15, %rsi
callq 0x48fc5
movq %rax, %r15
testq %rbx, %rbx
je 0x4125b
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0x4126f
movq 0x10(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x3d79a
callq 0x10d3c
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/feature_visitor.c
// Function: gt_feature_visitor_new
GtNodeVisitor* gt_feature_visitor_new(GtFeatureIndex *fi)
{
  GtNodeVisitor *gv;
  GtFeatureVisitor *feature_visitor;
  gt_assert(fi != NULL);
  gv = gt_node_visitor_create(gt_feature_visitor_class());
  feature_visitor = feature_visitor_cast(gv);
  feature_visitor->feature_index = gt_feature_index_ref(fi);
  gt_assert(feature_visitor != NULL);
  return gv;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x41304
movq %rdi, %rbx
callq 0x411b0
movq %rax, %rdi
callq 0x48f94
movq %rax, %r14
callq 0x411b0
movq %rax, %rdi
movq %r14, %rsi
callq 0x48fc5
movq %rax, %r15
movq %rbx, %rdi
callq 0x3d66b
movq %rax, 0x10(%r15)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x10daa
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_ref
GtGenomeNode* gt_genome_node_ref(GtGenomeNode *gn)
{
  gt_assert(gn);
  gt_rwlock_wrlock(gn->lock);
  gn->reference_count++;
  gt_rwlock_unlock(gn->lock);
  return gn;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x4132f
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0x3cfc0
incl 0x24(%rbx)
movq 0x18(%rbx), %rdi
callq 0x3cfdb
movq %rbx, %rax
popq %rbx
retq
callq 0x10de1
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_class_new
const GtGenomeNodeClass*
gt_genome_node_class_new(size_t size,
                         GtGenomeNodeFreeFunc free,
                         GtGenomeNodeSetSeqidFunc get_seqid,
                         GtGenomeNodeGetIdstrFunc get_idstr,
                         GtGenomeNodeGetRangeFunc get_range,
                         GtGenomeNodeSetRangeFunc set_range,
                         GtGenomeNodeChangeSeqidFunc change_seqid,
                         GtGenomeNodeAcceptFunc accept)
{
  GtGenomeNodeClass *c_class;
  gt_assert(size);
  c_class = gt_class_alloc(sizeof *c_class);
  c_class->size = size;
  c_class->free = free;
  c_class->get_seqid = get_seqid;
  c_class->get_idstr = get_idstr;
  c_class->get_range = get_range;
  c_class->set_range = set_range;
  c_class->change_seqid = change_seqid;
  c_class->accept = accept;
  return c_class;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x41398
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movl $0x40, %edi
callq 0x72274
movq %rbp, (%rax)
movq %r13, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %r15, 0x18(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x28(%rax)
movq 0x40(%rsp), %rcx
movq %rcx, 0x30(%rax)
movq 0x48(%rsp), %rcx
movq %rcx, 0x38(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x10e18
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_cmp_generic
static inline int gt_genome_node_cmp_generic(GtGenomeNode *gn_a,
                                             GtGenomeNode *gn_b,
                                             bool numeric_cmp)
{
  GtRange range_a, range_b;
  int rval;
  const char *id_a, *id_b;
  gt_assert(gn_a && gn_b);
  /* ensure that region nodes come first and sequence nodes come last,
     otherwise we don't get a valid GFF3 stream */
  if ((rval = compare_genome_node_type(gn_a, gn_b)))
    return rval;

  id_a = gt_str_get(gt_genome_node_get_idstr(gn_a));
  id_b = gt_str_get(gt_genome_node_get_idstr(gn_b));
  if (numeric_cmp) {
    GtUword anum, bnum;
    int arval, brval;
    arval = gt_parse_uword(&anum, id_a);
    brval = gt_parse_uword(&bnum, id_b);
    if (arval == 0 && brval == 0)
      rval = anum-bnum;
    else if (arval == 0)
      return -1;
    else if (brval == 0)
      return 1;
    else
      rval = 0;
    if (rval)
      return rval;
  } else {
    if ((rval = gt_md5_seqid_cmp_seqids(id_a, id_b))) {
      return rval;
    }
  }
  range_a = gt_genome_node_get_range(gn_a),
  range_b = gt_genome_node_get_range(gn_b);
  return gt_range_compare(&range_a, &range_b);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
testq %rdi, %rdi
je 0x41497
movq %rsi, %rbx
testq %rsi, %rsi
je 0x41497
movl %edx, %ebp
movq %rdi, %r14
movq %rbx, %rsi
callq 0x4218f
testl %eax, %eax
je 0x413e0
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x415c2
movq %rax, %rdi
callq 0x3bb5d
movq %rax, %r15
movq %rbx, %rdi
callq 0x415c2
movq %rax, %rdi
callq 0x3bb5d
movq %rax, %r12
testb %bpl, %bpl
je 0x41436
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x395c7
movl %eax, %ebp
movq %rsp, %rdi
movq %r12, %rsi
callq 0x395c7
movl %ebp, %ecx
orl %eax, %ecx
jne 0x41447
movl 0x10(%rsp), %eax
subl (%rsp), %eax
jne 0x413d3
jmp 0x41464
movq %r15, %rdi
movq %r12, %rsi
callq 0x7aa87
testl %eax, %eax
jne 0x413d3
jmp 0x41464
testl %eax, %eax
sete %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
je 0x41464
xorl %eax, %eax
cmpl $0x1, %ebp
sbbl %eax, %eax
orl $0x1, %eax
jmp 0x413d3
movq %r14, %rdi
callq 0x415e5
leaq 0x10(%rsp), %r14
movq %rax, (%r14)
movq %rdx, 0x8(%r14)
movq %rbx, %rdi
callq 0x415e5
movq %rsp, %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %r14, %rdi
callq 0x7e09c
jmp 0x413d3
callq 0x10e4f
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_create
GtGenomeNode* gt_genome_node_create(const GtGenomeNodeClass *gnc)
{
  GtGenomeNode *gn;
  gt_assert(gnc && gnc->size);
  gn                     = gt_malloc(gnc->size);
  gn->c_class            = gnc;
  gn->filename           = NULL; /* means the node is generated */
  gn->line_number        = 0;
  gn->reference_count    = 0;
  gn->userdata           = NULL;
  gn->userdata_nof_items = 0;
#ifdef GT_THREADS_ENABLED
  gn->lock              = gt_rwlock_new();
#endif
  return gn;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x414fb
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x414fb
leaq 0xa44ff(%rip), %rsi     # 0xe59c0
movl $0xdb, %edx
callq 0x35862
movq %rax, %r14
movq %rbx, (%rax)
movq $0x0, 0x20(%rax)
movl $0x0, 0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
callq 0x3cf33
movq %rax, 0x18(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x10e88
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_set_origin
void gt_genome_node_set_origin(GtGenomeNode *gn, GtStr *filename,
                               unsigned int line_number)
{
  gt_assert(gn && filename && line_number);
  gt_str_delete(gn->filename);
  gn->filename = gt_str_ref(filename);
  gn->line_number = line_number;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x4153a
movq %rsi, %r15
testq %rsi, %rsi
je 0x4153a
movl %edx, %ebx
testl %edx, %edx
je 0x4153a
movq %rdi, %r14
movq 0x8(%rdi), %rdi
callq 0x3c87b
movq %r15, %rdi
callq 0x3bcaf
movq %rax, 0x8(%r14)
movl %ebx, 0x20(%r14)
popq %rbx
popq %r14
popq %r15
retq
callq 0x10ec1
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_get_seqid
GtStr* gt_genome_node_get_seqid(GtGenomeNode *gn)
{
  gt_assert(gn && gn->c_class);
  if (gn->c_class->get_seqid)
    return gn->c_class->get_seqid(gn);
  return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x415bc
movq (%rdi), %rax
testq %rax, %rax
je 0x415bc
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x415b9
jmpq *%rax
xorl %eax, %eax
retq
pushq %rax
callq 0x10fde
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_get_length
GtUword gt_genome_node_get_length(GtGenomeNode *gn)
{
  GtRange range;
  gt_assert(gn && gn->c_class && gn->c_class->get_range);
  range = gt_genome_node_get_range(gn);
  return gt_range_length(&range);
}

// Assembly:
subq $0x18, %rsp
testq %rdi, %rdi
je 0x41641
movq (%rdi), %rax
testq %rax, %rax
je 0x41641
cmpq $0x0, 0x20(%rax)
je 0x41641
callq 0x415e5
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
movq %rdx, 0x8(%rdi)
callq 0x7e19f
addq $0x18, %rsp
retq
callq 0x11089
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_set_range
void gt_genome_node_set_range(GtGenomeNode *gn, const GtRange *range)
{
  gt_assert(gn && gn->c_class);
  if (gn->c_class->set_range) {
    gt_assert(range->start <= range->end);
    gn->c_class->set_range(gn, range);
  }
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x4166b
movq (%rdi), %rax
testq %rax, %rax
je 0x4166b
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x41669
movq (%rsi), %rcx
cmpq 0x8(%rsi), %rcx
ja 0x41670
popq %rcx
jmpq *%rax
popq %rax
retq
callq 0x110fb
callq 0x110c2
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_nodes_show
void gt_genome_nodes_show(GtArray *nodes, GtFile *outfp)
{
  GtNodeVisitor *gff3_visitor;
  GtUword i;
  gt_assert(nodes);
  gff3_visitor = gt_gff3_visitor_new(outfp);
  for (i = 0; i < gt_array_size(nodes); i++) {
    GT_UNUSED int had_err;
    had_err = gt_genome_node_accept(*(GtGenomeNode**) gt_array_get(nodes, i),
                                    gff3_visitor, NULL);
    gt_assert(!had_err); /* should not happen */
  }
  gt_node_visitor_delete(gff3_visitor);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x41905
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x47917
movq %rax, %r14
movq %rbx, %rdi
callq 0x6f310
testq %rax, %rax
je 0x418f3
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6f037
movq (%rax), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x41698
testl %eax, %eax
jne 0x41900
incq %r15
movq %rbx, %rdi
callq 0x6f310
cmpq %rax, %r15
jb 0x418c7
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x49206
callq 0x11251
callq 0x1128a
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_nodes_are_equal_region_nodes
bool gt_genome_nodes_are_equal_region_nodes(GtGenomeNode *gn_a,
                                            GtGenomeNode *gn_b)
{
  void *sr_a, *sr_b;

  sr_a = gn_a ? gt_region_node_try_cast(gn_a) : NULL;
  sr_b = gn_b ? gt_region_node_try_cast(gn_b) : NULL;

  if (sr_a && sr_b && !gt_str_cmp(gt_genome_node_get_seqid(gn_a),
                                  gt_genome_node_get_seqid(gn_b))) {
    return true;
  }
  return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
je 0x4192a
movq %r14, %rdi
callq 0x49700
testq %rax, %rax
setne %bpl
jmp 0x4192c
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x4196a
movq %rbx, %rdi
callq 0x49700
testq %rax, %rax
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x4196a
movq %r14, %rdi
callq 0x415a1
movq %rax, %r14
movq %rbx, %rdi
callq 0x415a1
movq %r14, %rdi
movq %rax, %rsi
callq 0x3bc02
testl %eax, %eax
je 0x41971
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movb $0x1, %al
jmp 0x4196c
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_nodes_are_sorted
bool gt_genome_nodes_are_sorted(const GtArray *nodes)
{
  GtUword i;
  gt_assert(nodes);
  for (i = 1; i < gt_array_size(nodes); i++) {
    if (gt_genome_node_compare(gt_array_get(nodes, i-1),
                               gt_array_get(nodes, i)) > 0) {
      return false;
    }
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x419e4
movq %rdi, %rbx
callq 0x6f310
movb $0x1, %bpl
cmpq $0x2, %rax
jb 0x419d7
movl $0x1, %r14d
leaq -0x1(%r14), %rsi
movq %rbx, %rdi
callq 0x6f037
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6f037
movq (%r15), %rdi
movq (%rax), %rsi
xorl %edx, %edx
callq 0x413a1
testl %eax, %eax
setle %bpl
jg 0x419d7
incq %r14
movq %rbx, %rdi
callq 0x6f310
cmpq %rax, %r14
jb 0x41998
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x112c3
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_add_user_data
void gt_genome_node_add_user_data(GtGenomeNode *gn, const char *key, void *data,
                                  GtFree free_func)
{
  GtGenomeNodeUserData *ud, *myud;
  gt_assert(gn && key);
  ud = gt_malloc(sizeof (GtGenomeNodeUserData));
  ud->ptr = data;
  ud->free_func = free_func;
  if (!gn->userdata) {
    gn->userdata = gt_hashmap_new(GT_HASH_STRING, gt_free_func,
                                  userdata_delete);
  }
  gt_assert(gn->userdata != NULL);
  /* remove old data entry first if there is one */
  if ((myud = gt_hashmap_get(gn->userdata, key)) != NULL) {
    gt_hashmap_remove(gn->userdata, key);
  } else {
    gn->userdata_nof_items++;
  }
  gt_hashmap_add(gn->userdata, gt_cstr_dup((char*) key), ud);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x41a9f
movq %rsi, %rbx
testq %rsi, %rsi
je 0x41a9f
movq %rcx, %r12
movq %rdx, %r13
movq %rdi, %r14
leaq 0xa3fa9(%rip), %rsi     # 0xe59c0
movl $0x10, %edi
movl $0x1ab, %edx            # imm = 0x1AB
callq 0x35862
movq %rax, %r15
movq %r13, (%rax)
movq %r12, 0x8(%rax)
movq 0x10(%r14), %rdi
testq %rdi, %rdi
jne 0x41a5d
leaq -0xbd5a(%rip), %rsi     # 0x35ce6
leaq 0x62(%rip), %rdx        # 0x41aa9
movl $0x1, %edi
callq 0x7740c
movq %rax, %rdi
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x41aa4
movq %rbx, %rsi
callq 0x775ed
testq %rax, %rax
je 0x41a78
movq 0x10(%r14), %rdi
movq %rbx, %rsi
callq 0x77666
jmp 0x41a7c
incl 0x28(%r14)
movq 0x10(%r14), %r14
movq %rbx, %rdi
callq 0x728c0
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x77628
callq 0x112fc
callq 0x11335
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: userdata_delete
static void userdata_delete(void *data)
{
  GtGenomeNodeUserData *ud;
  if (!data) return;
  ud = (GtGenomeNodeUserData*) data;
  if (ud->free_func)
    ud->free_func(ud->ptr);
  ud->free_func = ud->ptr = NULL;
  gt_free(ud);
}

// Assembly:
testq %rdi, %rdi
je 0x41adb
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x41ac0
movq (%rbx), %rdi
callq *%rax
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
leaq 0xa3ef3(%rip), %rsi     # 0xe59c0
movq %rbx, %rdi
movl $0x52, %edx
popq %rbx
jmp 0x35c27
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_get_user_data
void* gt_genome_node_get_user_data(const GtGenomeNode *gn, const char *key)
{
  GtGenomeNodeUserData *ud;
  gt_assert(gn && key);
  if (!gn->userdata)
    return NULL;
  ud = (GtGenomeNodeUserData*) gt_hashmap_get(gn->userdata, key);
  return (ud ? ud->ptr : NULL);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x41b03
testq %rsi, %rsi
je 0x41b03
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x41aff
callq 0x775ed
testq %rax, %rax
je 0x41aff
movq (%rax), %rax
jmp 0x41b01
xorl %eax, %eax
popq %rcx
retq
callq 0x1136e
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_release_user_data
void gt_genome_node_release_user_data(GtGenomeNode *gn, const char *key)
{
  GtGenomeNodeUserData *ud;
  gt_assert(gn && key);
  if (!gn->userdata)
    return;
  if ((ud = (GtGenomeNodeUserData*) gt_hashmap_get(gn->userdata, key))) {
    gt_hashmap_remove(gn->userdata, (char*) key);
    if (--gn->userdata_nof_items == 0) {
      gt_hashmap_delete(gn->userdata);
      gn->userdata = NULL;
    }
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x41b5c
movq %rsi, %r14
testq %rsi, %rsi
je 0x41b5c
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x41b54
movq %r14, %rsi
callq 0x775ed
testq %rax, %rax
je 0x41b54
movq 0x10(%rbx), %rdi
movq %r14, %rsi
callq 0x77666
decl 0x28(%rbx)
jne 0x41b54
movq 0x10(%rbx), %rdi
callq 0x77bab
movq $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x113a7
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_delete
void gt_genome_node_delete(GtGenomeNode *gn)
{
  if (!gn) return;
  gt_rwlock_wrlock(gn->lock);
  if (gn->reference_count) {
    gn->reference_count--;
    gt_rwlock_unlock(gn->lock);
    return;
  }
  gt_assert(gn->c_class);
  if (gn->c_class->free)
    gn->c_class->free(gn);
  gt_str_delete(gn->filename);
  if (gn->userdata)
    gt_hashmap_delete(gn->userdata);
  gt_rwlock_unlock(gn->lock);
#ifdef GT_THREADS_ENABLED
  gt_rwlock_delete(gn->lock);
#endif
  gt_free(gn);
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x42134
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0x3cfc0
movl 0x24(%rbx), %eax
testl %eax, %eax
je 0x42136
decl %eax
movl %eax, 0x24(%rbx)
movq 0x18(%rbx), %rdi
popq %rbx
jmp 0x3cfdb
popq %rbx
retq
movq (%rbx), %rax
testq %rax, %rax
je 0x4218a
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x4214c
movq %rbx, %rdi
callq *%rax
movq 0x8(%rbx), %rdi
callq 0x3c87b
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x42163
callq 0x77bab
movq 0x18(%rbx), %rdi
callq 0x3cfdb
movq 0x18(%rbx), %rdi
callq 0x3cf83
leaq 0xa3844(%rip), %rsi     # 0xe59c0
movq %rbx, %rdi
movl $0x21e, %edx            # imm = 0x21E
popq %rbx
jmp 0x35c27
callq 0x11419
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream.c
// Function: gt_gff3_in_stream_class
const GtNodeStreamClass* gt_gff3_in_stream_class(void)
{
  static const GtNodeStreamClass *nsc = NULL;
  gt_class_alloc_lock_enter();
  if (!nsc) {
    nsc = gt_node_stream_class_new(sizeof (GtGFF3InStream),
                                   gff3_in_stream_free,
                                   gff3_in_stream_next);
  }
  gt_class_alloc_lock_leave();
  return nsc;
}

// Assembly:
pushq %rax
callq 0x72367
cmpq $0x0, 0x1107e2(%rip)    # 0x152b40
jne 0x4237f
leaq 0x26(%rip), %rsi        # 0x4238d
leaq 0x64(%rip), %rdx        # 0x423d2
movl $0x40, %edi
callq 0x48c48
movq %rax, 0x1107c1(%rip)    # 0x152b40
callq 0x7237d
movq 0x1107b5(%rip), %rax    # 0x152b40
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream.c
// Function: gff3_in_stream_free
static void gff3_in_stream_free(GtNodeStream *ns)
{
  GtGFF3InStream *gff3_in_stream = gff3_in_stream_cast(ns);
  gt_node_stream_delete(gff3_in_stream->cds_check_stream);
  gt_node_stream_delete(gff3_in_stream->add_ids_stream);
  gt_node_stream_delete(gff3_in_stream->gff3_in_stream_plain);
  gt_node_stream_delete(gff3_in_stream->fix_region_stream);
  gt_node_stream_delete(gff3_in_stream->multi_sanitize_stream);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x42350
movq %rax, %rdi
movq %rbx, %rsi
callq 0x48f0b
movq %rax, %rbx
movq 0x20(%rax), %rdi
callq 0x48d02
movq 0x18(%rbx), %rdi
callq 0x48d02
movq 0x10(%rbx), %rdi
callq 0x48d02
movq 0x28(%rbx), %rdi
callq 0x48d02
movq 0x38(%rbx), %rdi
popq %rbx
jmp 0x48d02
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream.c
// Function: gff3_in_stream_next
static int gff3_in_stream_next(GtNodeStream *ns, GtGenomeNode **gn,
                               GtError *err)
{
  GtGFF3InStream *is;
  gt_error_check(err);
  is = gff3_in_stream_cast(ns);
  return gt_node_stream_next(is->last_stream, gn, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rdx, %rdx
je 0x423f1
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0x42415
callq 0x42350
movq %rax, %rdi
movq %r15, %rsi
callq 0x48f0b
movq 0x30(%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x48d7c
callq 0x11452
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream.c
// Function: gt_gff3_in_stream_set_type_checker
void gt_gff3_in_stream_set_type_checker(GtNodeStream *ns,
                                        GtTypeChecker *type_checker)
{
  GtGFF3InStream *is = gff3_in_stream_cast(ns);
  gt_assert(is);
  gt_gff3_in_stream_plain_set_type_checker(is->gff3_in_stream_plain,
                                           type_checker);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x42350
movq %rax, %rdi
movq %r14, %rsi
callq 0x48f0b
testq %rax, %rax
je 0x42474
movq 0x10(%rax), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x42b99
callq 0x114f7
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream.c
// Function: gt_gff3_in_stream_set_xrf_checker
void gt_gff3_in_stream_set_xrf_checker(GtNodeStream *ns,
                                       GtXRFChecker *xrf_checker)
{
  GtGFF3InStream *is = gff3_in_stream_cast(ns);
  gt_assert(is);
  gt_gff3_in_stream_plain_set_xrf_checker(is->gff3_in_stream_plain,
                                          xrf_checker);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x42350
movq %rax, %rdi
movq %r14, %rsi
callq 0x48f0b
testq %rax, %rax
je 0x424ab
movq 0x10(%rax), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x42bd0
callq 0x1152e
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream.c
// Function: gt_gff3_in_stream_set_offsetfile
int gt_gff3_in_stream_set_offsetfile(GtNodeStream *ns, GtStr *offsetfile,
                                     GtError *err)
{
  GtGFF3InStream *is = gff3_in_stream_cast(ns);
  gt_assert(is);
  return gt_gff3_in_stream_plain_set_offsetfile(is->gff3_in_stream_plain,
                                                offsetfile, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x42350
movq %rax, %rdi
movq %r15, %rsi
callq 0x48f0b
testq %rax, %rax
je 0x42546
movq 0x10(%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x42c66
callq 0x115d3
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream.c
// Function: gt_gff3_in_stream_enable_tidy_mode
void gt_gff3_in_stream_enable_tidy_mode(GtGFF3InStream *is)
{
  gt_assert(is);
  gt_gff3_in_stream_plain_enable_tidy_mode(is->gff3_in_stream_plain);
  gt_cds_check_stream_enable_tidy_mode((GtCDSCheckStream*)
                                       is->cds_check_stream);
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x425a8
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0x42cca
movq 0x20(%rbx), %rdi
popq %rbx
jmp 0x83f4e
callq 0x1167c
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream.c
// Function: gt_gff3_in_stream_fix_region_boundaries
void gt_gff3_in_stream_fix_region_boundaries(GtGFF3InStream *is)
{
  gt_assert(is);
  gt_gff3_in_stream_plain_do_not_check_region_boundaries(
                               (GtGFF3InStreamPlain*) is->gff3_in_stream_plain);
  is->last_stream = is->fix_region_stream =
             gt_tidy_region_node_stream_new(is->last_stream);
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x425d2
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0x42b75
movq 0x30(%rbx), %rdi
callq 0x4aff1
movq %rax, 0x28(%rbx)
movq %rax, 0x30(%rbx)
popq %rbx
retq
callq 0x116b5
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream.c
// Function: gt_gff3_in_stream_new_unsorted
GtNodeStream* gt_gff3_in_stream_new_unsorted(int num_of_files,
                                             const char **filenames)
{
  GtNodeStream *ns = gt_node_stream_create(gt_gff3_in_stream_class(), false);
  GtGFF3InStream *is = gff3_in_stream_cast(ns);
  is->fix_region_stream = NULL;
  is->last_stream = is->gff3_in_stream_plain =
                  gt_gff3_in_stream_plain_new_unsorted(num_of_files, filenames);
  gt_gff3_in_stream_plain_check_region_boundaries(
                               (GtGFF3InStreamPlain*) is->gff3_in_stream_plain);
  is->last_stream = is->add_ids_stream = gt_add_ids_stream_new(is->last_stream);
  is->last_stream = is->multi_sanitize_stream =
       gt_visitor_stream_new(is->last_stream, gt_multi_sanitizer_visitor_new());
  is->last_stream = is->cds_check_stream =
                                       gt_cds_check_stream_new(is->last_stream);
  return ns;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movl %edi, %ebp
callq 0x42350
movq %rax, %rdi
xorl %esi, %esi
callq 0x48c80
movq %rax, %rbx
callq 0x42350
movq %rax, %rdi
movq %rbx, %rsi
callq 0x48f0b
movq %rax, %r14
movq $0x0, 0x28(%rax)
movl %ebp, %edi
movq %r15, %rsi
callq 0x42cf2
movq %rax, 0x10(%r14)
movq %rax, 0x30(%r14)
movq %rax, %rdi
callq 0x42b61
movq 0x30(%r14), %rdi
callq 0x83667
movq %rax, %r15
movq %rax, 0x18(%r14)
movq %rax, 0x30(%r14)
callq 0x48b8d
movq %r15, %rdi
movq %rax, %rsi
callq 0x4b6e1
movq %rax, 0x38(%r14)
movq %rax, 0x30(%r14)
movq %rax, %rdi
callq 0x83f03
movq %rax, 0x20(%r14)
movq %rax, 0x30(%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream.c
// Function: gt_gff3_in_stream_new_sorted
GtNodeStream* gt_gff3_in_stream_new_sorted(const char *filename)
{
  GtNodeStream *ns = gt_node_stream_create(gt_gff3_in_stream_class(), true);
  GtGFF3InStream *is = gff3_in_stream_cast(ns);
  is->fix_region_stream = NULL;
  is->last_stream = is->gff3_in_stream_plain =
                                   gt_gff3_in_stream_plain_new_sorted(filename);
  gt_gff3_in_stream_plain_check_region_boundaries(
                               (GtGFF3InStreamPlain*) is->gff3_in_stream_plain);
  is->last_stream = is->add_ids_stream = gt_add_ids_stream_new(is->last_stream);
  is->last_stream = is->multi_sanitize_stream =
       gt_visitor_stream_new(is->last_stream, gt_multi_sanitizer_visitor_new());
  is->last_stream = is->cds_check_stream =
                                       gt_cds_check_stream_new(is->last_stream);
  return ns;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
callq 0x42350
movq %rax, %rdi
movl $0x1, %esi
callq 0x48c80
movq %rax, %rbx
callq 0x42350
movq %rax, %rdi
movq %rbx, %rsi
callq 0x48f0b
movq %rax, %r14
movq $0x0, 0x28(%rax)
movq %r15, %rdi
callq 0x42da8
movq %rax, 0x10(%r14)
movq %rax, 0x30(%r14)
movq %rax, %rdi
callq 0x42b61
movq 0x30(%r14), %rdi
callq 0x83667
movq %rax, %r15
movq %rax, 0x18(%r14)
movq %rax, 0x30(%r14)
callq 0x48b8d
movq %r15, %rdi
movq %rax, %rsi
callq 0x4b6e1
movq %rax, 0x38(%r14)
movq %rax, 0x30(%r14)
movq %rax, %rdi
callq 0x83f03
movq %rax, 0x20(%r14)
movq %rax, 0x30(%r14)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream_plain.c
// Function: gt_gff3_in_stream_plain_class
const GtNodeStreamClass* gt_gff3_in_stream_plain_class(void)
{
  static const GtNodeStreamClass *nsc = NULL;
  gt_class_alloc_lock_enter();
  if (!nsc) {
    nsc = gt_node_stream_class_new(sizeof (GtGFF3InStreamPlain),
                                   gff3_in_stream_plain_free,
                                   gff3_in_stream_plain_next);
  }
  gt_class_alloc_lock_leave();
  return nsc;
}

// Assembly:
pushq %rax
callq 0x72367
cmpq $0x0, 0x11042e(%rip)    # 0x152b48
jne 0x4273b
leaq 0x26(%rip), %rsi        # 0x42749
leaq 0x8e(%rip), %rdx        # 0x427b8
movl $0x58, %edi
callq 0x48c48
movq %rax, 0x11040d(%rip)    # 0x152b48
callq 0x7237d
movq 0x110401(%rip), %rax    # 0x152b48
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream_plain.c
// Function: gff3_in_stream_plain_free
static void gff3_in_stream_plain_free(GtNodeStream *ns)
{
  GtGFF3InStreamPlain *gff3_in_stream_plain = gff3_in_stream_plain_cast(ns);
  gt_str_array_delete(gff3_in_stream_plain->files);
  gt_str_delete(gff3_in_stream_plain->stdinstr);
  while (gt_queue_size(gff3_in_stream_plain->genome_node_buffer)) {
    gt_genome_node_delete(gt_queue_get(gff3_in_stream_plain
                                       ->genome_node_buffer));
  }
  gt_queue_delete(gff3_in_stream_plain->genome_node_buffer);
  gt_gff3_parser_delete(gff3_in_stream_plain->gff3_parser);
  gt_cstr_table_delete(gff3_in_stream_plain->used_types);
  gt_file_delete(gff3_in_stream_plain->fpin);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x4270c
movq %rax, %rdi
movq %rbx, %rsi
callq 0x48f0b
movq %rax, %rbx
movq 0x18(%rax), %rdi
callq 0x3cc00
movq 0x20(%rbx), %rdi
callq 0x3c87b
movq 0x40(%rbx), %rdi
callq 0x7c5d0
testq %rax, %rax
je 0x42793
movq 0x40(%rbx), %rdi
callq 0x7c56e
movq %rax, %rdi
callq 0x4210c
jmp 0x42772
movq 0x40(%rbx), %rdi
callq 0x7ca47
movq 0x48(%rbx), %rdi
callq 0x46578
movq 0x50(%rbx), %rdi
callq 0x73273
movq 0x30(%rbx), %rdi
popq %rbx
jmp 0x760c0
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream_plain.c
// Function: gt_gff3_in_stream_plain_new_unsorted
GtNodeStream* gt_gff3_in_stream_plain_new_unsorted(int num_of_files,
                                                   const char **filenames)
{
  int i;
  GtStrArray *files = gt_str_array_new();
  for (i = 0; i < num_of_files; i++)
    gt_str_array_add_cstr(files, filenames[i]);
  return gff3_in_stream_plain_new(files, false);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
callq 0x3c8cc
movq %rax, %r14
testl %ebp, %ebp
jle 0x42d25
movl %ebp, %r15d
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
callq 0x3c9a5
incq %r12
cmpq %r12, %r15
jne 0x42d11
movq %r14, %rdi
xorl %esi, %esi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x42d34
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream_plain.c
// Function: gff3_in_stream_plain_new
static GtNodeStream* gff3_in_stream_plain_new(GtStrArray *files,
                                              bool ensure_sorting)
{
  GtNodeStream *ns = gt_node_stream_create(gt_gff3_in_stream_plain_class(),
                                           ensure_sorting);
  GtGFF3InStreamPlain *gff3_in_stream_plain = gff3_in_stream_plain_cast(ns);
  gff3_in_stream_plain->files               = files;
  gff3_in_stream_plain->stdinstr            = gt_str_new_cstr("stdin");
  gff3_in_stream_plain->ensure_sorting      = ensure_sorting;
  gff3_in_stream_plain->genome_node_buffer  = gt_queue_new();
  gff3_in_stream_plain->gff3_parser         = gt_gff3_parser_new(NULL);
  gff3_in_stream_plain->used_types          = gt_cstr_table_new();
  return ns;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
callq 0x4270c
movq %rax, %rdi
movl %ebp, %esi
callq 0x48c80
movq %rax, %rbx
callq 0x4270c
movq %rax, %rdi
movq %rbx, %rsi
callq 0x48f0b
movq %rax, %r15
movq %r14, 0x18(%rax)
leaq 0xaae7c(%rip), %rdi     # 0xedbec
callq 0x3b785
movq %rax, 0x20(%r15)
movb %bpl, 0x28(%r15)
callq 0x7c464
movq %rax, 0x40(%r15)
xorl %edi, %edi
callq 0x42e8c
movq %rax, 0x48(%r15)
callq 0x72f00
movq %rax, 0x50(%r15)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream_plain.c
// Function: gt_gff3_in_stream_plain_new_sorted
GtNodeStream* gt_gff3_in_stream_plain_new_sorted(const char *filename)
{
  GtStrArray *files = gt_str_array_new();
  if (filename)
    gt_str_array_add_cstr(files, filename);
  return gff3_in_stream_plain_new(files, true);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x3c8cc
movq %rax, %rbx
testq %r14, %r14
je 0x42dc7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c9a5
movq %rbx, %rdi
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x42d34
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_in_stream_plain.c
// Function: buffer_is_sorted
static int buffer_is_sorted(void **elem, void *info, GtError *err)
{
  GtGenomeNode *current_node, **last_node;

  gt_error_check(err);
  gt_assert(elem && info);

  current_node = *(GtGenomeNode**) elem,
  last_node = info;

  if (*last_node && gt_genome_node_compare(last_node, &current_node) > 0) {
    gt_assert(*last_node);
    gt_error_set(err, "the file %s is not sorted (example: line %u and %u)",
              gt_genome_node_get_filename(*last_node),
              gt_genome_node_get_line_number(*last_node),
              gt_genome_node_get_line_number(current_node));
    return -1;
  }
  else
    *last_node = current_node;
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rdx, %rdx
je 0x42e00
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0x42e82
testq %r15, %r15
je 0x42e7d
testq %r14, %r14
je 0x42e7d
movq (%r15), %rax
movq %rax, (%rsp)
cmpq $0x0, (%r14)
je 0x42e6d
movq %rsp, %rsi
movq %r14, %rdi
callq 0x416ec
testl %eax, %eax
jle 0x42e69
movq (%r14), %rdi
testq %rdi, %rdi
je 0x42e87
callq 0x41572
movq %rax, %r15
movq (%r14), %rdi
callq 0x41592
movl %eax, %ebp
movq (%rsp), %rdi
callq 0x41592
leaq 0xa360c(%rip), %rsi     # 0xe645c
movq %rbx, %rdi
movq %r15, %rdx
movl %ebp, %ecx
movl %eax, %r8d
xorl %eax, %eax
callq 0x34f1f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x42e72
movq (%rsp), %rax
movq %rax, (%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x11aea
callq 0x11ab3
callq 0x11b21
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_parser.c
// Function: gt_gff3_parser_new
GtGFF3Parser* gt_gff3_parser_new(GtTypeChecker *type_checker)
{
  GtGFF3Parser *parser;
  parser = gt_calloc(1, sizeof *parser);
  parser->feature_info = gt_feature_info_new();
  parser->seqid_to_ssr_mapping = gt_hashmap_new(GT_HASH_STRING, NULL,
                                        (GtFree) simple_sequence_region_delete);
  parser->source_to_str_mapping = gt_hashmap_new(GT_HASH_STRING, NULL,
                                                 (GtFree) gt_str_delete);
  parser->offset = GT_UNDEF_WORD;
  parser->orphanage = gt_orphanage_new();
  parser->type_checker = type_checker ? gt_type_checker_ref(type_checker)
                                      : NULL;
  parser->xrf_checker = NULL;
  return parser;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0xa3605(%rip), %rdx     # 0xe64a0
movl $0x1, %edi
movl $0x58, %esi
movl $0x66, %ecx
callq 0x359a6
movq %rax, %rbx
callq 0x84bc0
movq %rax, (%rbx)
leaq 0x66(%rip), %rdx        # 0x42f27
xorl %r15d, %r15d
movl $0x1, %edi
xorl %esi, %esi
callq 0x7740c
movq %rax, 0x8(%rbx)
leaq -0x6660(%rip), %rdx     # 0x3c87b
movl $0x1, %edi
xorl %esi, %esi
callq 0x7740c
movq %rax, 0x10(%rbx)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x28(%rbx)
callq 0x49244
movq %rax, 0x38(%rbx)
testq %r14, %r14
je 0x42f12
movq %r14, %rdi
callq 0x4b4e1
movq %rax, %r15
movq %r15, 0x40(%rbx)
movq $0x0, 0x48(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_parser.c
// Function: gt_gff3_parser_set_offsetfile
int gt_gff3_parser_set_offsetfile(GtGFF3Parser *parser, GtStr *offsetfile,
                                  GtError *err)
{
  gt_error_check(err);
  gt_assert(parser);
  gt_assert(parser->offset == GT_UNDEF_WORD);
  parser->offset_mapping = gt_mapping_new(offsetfile, "offsets",
                                          GT_MAPPINGTYPE_INTEGER, err);
  if (parser->offset_mapping)
    return 0;
  return -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
testq %rdx, %rdx
je 0x43029
movq %r14, %rdi
callq 0x34fea
testb %al, %al
jne 0x43072
testq %rbx, %rbx
je 0x43068
xorl %r12d, %r12d
cmpq 0x28(%rbx), %r12
jno 0x4306d
leaq 0xa35d1(%rip), %rsi     # 0xe660f
movq %r15, %rdi
movl $0x1, %edx
movq %r14, %rcx
callq 0x481d8
movq %rax, 0x30(%rbx)
cmpq $0x1, %rax
sbbl %r12d, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x11d55
callq 0x11d1c
callq 0x11ce3
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_parser.c
// Function: gt_gff3_parser_build_target_str
void gt_gff3_parser_build_target_str(GtStr *target, GtStrArray *target_ids,
                                     GtArray *target_ranges,
                                     GtArray *target_strands)
{
  GtUword i;
  gt_assert(target && target_ids && target_ranges && target_strands);
  for (i = 0; i < gt_str_array_size(target_ids); i++) {
    GtRange *range;
    GtStrand *strand;
    range = gt_array_get(target_ranges, i);
    strand = gt_array_get(target_strands, i);
    if (i)
      gt_str_append_char(target, ',');
    gt_str_append_cstr(target, gt_str_array_get(target_ids, i));
    gt_str_append_char(target, ' ');
    gt_str_append_uword(target, range->start);
    gt_str_append_char(target, ' ');
    gt_str_append_uword(target, range->end);
    if (*strand != GT_NUM_OF_STRAND_TYPES) {
      gt_str_append_char(target, ' ');
      gt_str_append_char(target, GT_STRAND_CHARS[*strand]);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %xmm0
movq %rdi, %xmm1
punpcklqdq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
movq %rcx, (%rsp)
movq %rcx, %xmm0
movq %rdx, %xmm2
punpcklqdq %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0]
pxor %xmm0, %xmm0
pcmpeqd %xmm0, %xmm2
pcmpeqd %xmm0, %xmm1
movdqa %xmm1, %xmm0
shufps $0xdd, %xmm2, %xmm0     # xmm0 = xmm0[1,3],xmm2[1,3]
shufps $0x88, %xmm2, %xmm1     # xmm1 = xmm1[0,2],xmm2[0,2]
andps %xmm0, %xmm1
movmskps %xmm1, %eax
testl %eax, %eax
jne 0x436b5
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq %rsi, %rdi
callq 0x3cbed
testq %rax, %rax
je 0x436a6
xorl %r13d, %r13d
movq %r14, %rdi
movq %r13, %rsi
callq 0x6f037
movq %rax, %rbx
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x6f037
movq %rax, %rbp
testq %r13, %r13
je 0x43622
movq %r12, %rdi
movl $0x2c, %esi
callq 0x3b9df
movq %r15, %rdi
movq %r13, %rsi
callq 0x3ca6f
movq %r12, %rdi
movq %rax, %rsi
callq 0x3b7af
movq %r12, %rdi
movl $0x20, %esi
callq 0x3b9df
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x3b92e
movq %r12, %rdi
movl $0x20, %esi
callq 0x3b9df
movq 0x8(%rbx), %rsi
movq %r12, %rdi
callq 0x3b92e
cmpl $0x4, (%rbp)
je 0x43692
movq %r12, %rdi
movl $0x20, %esi
callq 0x3b9df
movl (%rbp), %eax
leaq 0x9f4be(%rip), %rcx     # 0xe2b44
movsbl (%rax,%rcx), %esi
movq %r12, %rdi
callq 0x3b9df
incq %r13
movq %r15, %rdi
callq 0x3cbed
cmpq %rax, %r13
jb 0x435f3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x11ee4
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_parser.c
// Function: chomp_seqid
void chomp_seqid(char *seqid, const char *filename, unsigned int line_number)
{
  GtUword len;
  if (!seqid) return;
  len = strlen(seqid);
  if (len > 0) {
    if (seqid[len-1] == ' ') {
      gt_warning("seqid \"%s\" on line %u in file \"%s\" ends with a blank, "
                 "removing it", seqid, line_number, filename);
      (void) gt_cstr_rtrim(seqid, ' ');
    }
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x43703
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0xb260
testq %rax, %rax
je 0x43703
cmpb $0x20, -0x1(%rbx,%rax)
jne 0x43703
leaq 0xa3000(%rip), %rdi     # 0xe66e3
movq %rbx, %rsi
movl %ebp, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x3d110
movq %rbx, %rdi
movl $0x20, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x729e6
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_parser.c
// Function: gt_gff3_parser_reset
void gt_gff3_parser_reset(GtGFF3Parser *parser)
{
  gt_assert(parser);
  parser->fasta_parsing = false;
  parser->eof_emitted = false;
  gt_feature_info_reset(parser->feature_info);
  gt_hashmap_reset(parser->seqid_to_ssr_mapping);
  gt_hashmap_reset(parser->source_to_str_mapping);
  gt_orphanage_reset(parser->orphanage);
  parser->last_terminator = 0;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x46573
movq %rdi, %rbx
movw $0x0, 0x1d(%rdi)
movq (%rdi), %rdi
callq 0x84c4c
movq 0x8(%rbx), %rdi
callq 0x7772d
movq 0x10(%rbx), %rdi
callq 0x7772d
movq 0x38(%rbx), %rdi
callq 0x492d5
movl $0x0, 0x50(%rbx)
popq %rbx
retq
callq 0x1283e
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/gff3_parser.c
// Function: gt_gff3_parser_delete
void gt_gff3_parser_delete(GtGFF3Parser *parser)
{
  if (!parser) return;
  gt_feature_info_delete(parser->feature_info);
  gt_hashmap_delete(parser->seqid_to_ssr_mapping);
  gt_hashmap_delete(parser->source_to_str_mapping);
  gt_mapping_delete(parser->offset_mapping);
  gt_orphanage_delete(parser->orphanage);
  gt_type_checker_delete(parser->type_checker);
  gt_xrf_checker_delete(parser->xrf_checker);
  gt_free(parser);
}

// Assembly:
testq %rdi, %rdi
je 0x465d4
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x84c1c
movq 0x8(%rbx), %rdi
callq 0x77bab
movq 0x10(%rbx), %rdi
callq 0x77bab
movq 0x30(%rbx), %rdi
callq 0x483d5
movq 0x38(%rbx), %rdi
callq 0x4927d
movq 0x40(%rbx), %rdi
callq 0x4b593
movq 0x48(%rbx), %rdi
callq 0x4ba96
leaq 0x9feda(%rip), %rsi     # 0xe64a0
movq %rbx, %rdi
movl $0x8ca, %edx            # imm = 0x8CA
popq %rbx
jmp 0x35c27
retq