// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/gff3_visitor.c
// Function: gff3_visitor_feature_node
static int gff3_visitor_feature_node(GtNodeVisitor *nv, GtFeatureNode *fn,
                                     GtError *err)
{
  GtGFF3Visitor *gff3_visitor;
  int had_err;
  gt_error_check(err);
  gff3_visitor = gff3_visitor_cast(nv);

  gff3_version_string(nv);

  had_err = gt_feature_node_traverse_children(fn, gff3_visitor, store_ids, true,
                                              err);
  if (!had_err) {
    if (gt_feature_node_is_tree(fn)) {
      had_err = gt_feature_node_traverse_children(fn, gff3_visitor,
                                                  gff3_show_feature_node, true,
                                                  err);
    }
    else {
      /* got a DAG -> traverse in topologically sorted depth first fashion to
         make sure that the 'Parent' attributes are shown in correct order */
      had_err =
        gt_feature_node_traverse_children_top(fn, gff3_visitor,
                                              gff3_show_feature_node, err);
    }
  }

  /* reset hashmaps */
  gt_hashmap_reset(gff3_visitor->feature_node_to_id_array);
  gt_hashmap_reset(gff3_visitor->feature_node_to_unique_id_str);

  /* show terminator, if the feature has children (otherwise it is clear that
     the feature is complete, because no ID attribute has been shown) */
  if (gt_feature_node_has_children(fn) ||
      (gff3_visitor->retain_ids && gt_feature_node_get_attribute(fn, "ID"))) {
    if (!gff3_visitor->outstr)
      gt_file_xprintf(gff3_visitor->outfp, "%s\n", GT_GFF_TERMINATOR);
    else {
      gt_str_append_cstr(gff3_visitor->outstr, GT_GFF_TERMINATOR);
      gt_str_append_char(gff3_visitor->outstr, '\n');
    }
  }

  return had_err;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x315d3
movq 0x10(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x3159b
jmp 0x315d3
movq 0x182a36(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x12caba(%rip), %rsi    # 0x15e066
leaq 0x12d095(%rip), %rdx    # 0x15e648
leaq 0x134446(%rip), %rcx    # 0x165a00
leaq 0x13438f(%rip), %r8     # 0x165950
movl $0x162, %r9d            # imm = 0x162
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x315d5
callq 0x312e0
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x34d50
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
callq 0x32100
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %r8
leaq 0xbf4(%rip), %rdx       # 0x32200
movl $0x1, %ecx
callq 0x22090
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x31678
movq 0x18(%rsp), %rdi
callq 0x24260
testb $0x1, %al
jne 0x31631
jmp 0x31657
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %r8
leaq 0xe29(%rip), %rdx       # 0x32470
movl $0x1, %ecx
callq 0x22090
movl %eax, 0x4(%rsp)
jmp 0x31676
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
leaq 0xe03(%rip), %rdx       # 0x32470
callq 0x23570
movl %eax, 0x4(%rsp)
jmp 0x31678
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x867b0
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x867b0
movq 0x18(%rsp), %rdi
callq 0x21140
testb $0x1, %al
jne 0x316c4
movq 0x8(%rsp), %rax
testb $0x1, 0x11(%rax)
je 0x3171a
movq 0x18(%rsp), %rdi
leaq 0x133187(%rip), %rsi    # 0x164840
callq 0x1fde0
cmpq $0x0, %rax
je 0x3171a
movq 0x8(%rsp), %rax
cmpq $0x0, 0x40(%rax)
jne 0x316f0
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rdi
leaq 0x12f6c6(%rip), %rsi    # 0x160da6
leaq 0x132721(%rip), %rdx    # 0x163e08
movb $0x0, %al
callq 0x837b0
jmp 0x31718
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rdi
leaq 0x132708(%rip), %rsi    # 0x163e08
callq 0x18fb0
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rdi
movl $0xa, %esi
callq 0x194d0
jmp 0x3171a
movl 0x4(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)