// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/gff3_visitor.c
// Function: gff3_show_feature_node
static int gff3_show_feature_node(GtFeatureNode *fn, void *data,
                                  GT_UNUSED GtError *err)
{
  bool part_shown = false;
  GtGFF3Visitor *gff3_visitor = (GtGFF3Visitor*) data;
  GtArray *parent_features = NULL;
  ShowAttributeInfo info;
  GtUword i;
  GtStr *id;

  gt_error_check(err);
  gt_assert(fn && gff3_visitor);

  /* output leading part */
  if (!gff3_visitor->outstr) {
    gt_gff3_output_leading(fn, gff3_visitor->outfp);
  } else {
    gt_gff3_output_leading_str(fn, gff3_visitor->outstr);
  }

  /* show unique id part of attributes */
  if ((id = gt_hashmap_get(gff3_visitor->feature_node_to_unique_id_str, fn))) {
    if (!gff3_visitor->outstr)
      gt_file_xprintf(gff3_visitor->outfp, "%s=%s", GT_GFF_ID, gt_str_get(id));
    else {
      gt_str_append_cstr(gff3_visitor->outstr, GT_GFF_ID);
      gt_str_append_char(gff3_visitor->outstr, '=');
      gt_str_append_cstr(gff3_visitor->outstr, gt_str_get(id));
    }
    part_shown = true;
  }

  /* show parent part of attributes */
  parent_features = gt_hashmap_get(gff3_visitor->feature_node_to_id_array, fn);
  if (gt_array_size(parent_features)) {
    if (part_shown) {
      if (!gff3_visitor->outstr)
        gt_file_xfputc(';', gff3_visitor->outfp);
      else
        gt_str_append_char(gff3_visitor->outstr, ';');
    }
    if (!gff3_visitor->outstr)
      gt_file_xprintf(gff3_visitor->outfp, "%s=", GT_GFF_PARENT);
    else {
      gt_str_append_cstr(gff3_visitor->outstr, GT_GFF_PARENT);
      gt_str_append_char(gff3_visitor->outstr, '=');
    }
    for (i = 0; i < gt_array_size(parent_features); i++) {
      if (i) {
        if (!gff3_visitor->outstr)
          gt_file_xfputc(',', gff3_visitor->outfp);
        else
          gt_str_append_char(gff3_visitor->outstr, ',');
      }
      if (!gff3_visitor->outstr) {
        gt_file_xprintf(gff3_visitor->outfp, "%s",
                        *(char**) gt_array_get(parent_features, i));
      } else {
        gt_str_append_cstr(gff3_visitor->outstr,
                           *(char**) gt_array_get(parent_features, i));
      }
    }
    part_shown = true;
  }

  /* show missing part of attributes */
  info.attribute_shown = &part_shown;
  info.outfp = gff3_visitor->outfp;
  info.outstr = gff3_visitor->outstr;
  gt_feature_node_foreach_attribute(fn, show_attribute, &info);

  /* show dot if no attributes have been shown */
  if (!part_shown) {
    if (!gff3_visitor->outstr)
      gt_file_xfputc('.', gff3_visitor->outfp);
    else
      gt_str_append_char(gff3_visitor->outstr, '.');
  }

  /* show terminal newline */
  if (!gff3_visitor->outstr)
    gt_file_xfputc('\n', gff3_visitor->outfp);
  else
    gt_str_append_char(gff3_visitor->outstr, '\n');

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movb $0x0, 0xf(%rsp)
testq %rdx, %rdx
je 0x488e9
movq %rdx, %rdi
callq 0x3566a
testb %al, %al
jne 0x48b3c
testq %r14, %r14
je 0x48b37
testq %rbx, %rbx
je 0x48b37
movq 0x40(%rbx), %rsi
testq %rsi, %rsi
je 0x4890e
movq %r14, %rdi
callq 0x85ecc
jmp 0x4891a
movq 0x38(%rbx), %rsi
movq %r14, %rdi
callq 0x85dd0
movq 0x28(%rbx), %rdi
movq %r14, %rsi
callq 0x77109
testq %rax, %rax
je 0x48996
movq %rax, %r15
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x4896a
leaq 0x9ee37(%rip), %rsi     # 0xe7775
callq 0x3c067
movq 0x40(%rbx), %rdi
movl $0x3d, %esi
callq 0x3c28d
movq 0x40(%rbx), %r12
movq %r15, %rdi
callq 0x3c40b
movq %r12, %rdi
movq %rax, %rsi
callq 0x3c067
jmp 0x48991
movq 0x38(%rbx), %r12
movq %r15, %rdi
callq 0x3c40b
leaq 0xa0029(%rip), %rsi     # 0xe89a6
leaq 0x9edf1(%rip), %rdx     # 0xe7775
movq %r12, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x757a1
movb $0x1, 0xf(%rsp)
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x77109
movq %rax, %r15
movq %rax, %rdi
callq 0x6ecda
testq %rax, %rax
je 0x48ab6
cmpb $0x1, 0xf(%rsp)
jne 0x489e0
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x489d2
movl $0x3b, %esi
callq 0x3c28d
jmp 0x489e0
movq 0x38(%rbx), %rsi
movl $0x3b, %edi
callq 0x759ff
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x48a05
leaq 0x9ed88(%rip), %rsi     # 0xe7778
callq 0x3c067
movq 0x40(%rbx), %rdi
movl $0x3d, %esi
callq 0x3c28d
jmp 0x48a1e
movq 0x38(%rbx), %rdi
leaq 0x9ff9c(%rip), %rsi     # 0xe89ac
leaq 0x9ed61(%rip), %rdx     # 0xe7778
xorl %eax, %eax
callq 0x757a1
movq %r15, %rdi
callq 0x6ecda
testq %rax, %rax
je 0x48ab1
leaq 0xa6113(%rip), %r12     # 0xeeb49
xorl %r13d, %r13d
testq %r13, %r13
je 0x48a61
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x48a53
movl $0x2c, %esi
callq 0x3c28d
jmp 0x48a61
movq 0x38(%rbx), %rsi
movl $0x2c, %edi
callq 0x759ff
movq 0x40(%rbx), %rbp
testq %rbp, %rbp
je 0x48a82
movq %r15, %rdi
movq %r13, %rsi
callq 0x6e9fa
movq (%rax), %rsi
movq %rbp, %rdi
callq 0x3c067
jmp 0x48aa1
movq 0x38(%rbx), %rbp
movq %r15, %rdi
movq %r13, %rsi
callq 0x6e9fa
movq (%rax), %rdx
movq %rbp, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x757a1
incq %r13
movq %r15, %rdi
callq 0x6ecda
cmpq %rax, %r13
jb 0x48a39
movb $0x1, 0xf(%rsp)
leaq 0xf(%rsp), %r15
leaq 0x10(%rsp), %rdx
movq %r15, (%rdx)
movups 0x38(%rbx), %xmm0
movups %xmm0, 0x8(%rdx)
leaq 0x2a1(%rip), %rsi       # 0x48d73
movq %r14, %rdi
callq 0x40ccb
cmpb $0x0, (%r15)
jne 0x48b03
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x48af5
movl $0x2e, %esi
callq 0x3c28d
jmp 0x48b03
movq 0x38(%rbx), %rsi
movl $0x2e, %edi
callq 0x759ff
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x48b18
movl $0xa, %esi
callq 0x3c28d
jmp 0x48b26
movq 0x38(%rbx), %rsi
movl $0xa, %edi
callq 0x759ff
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13473
callq 0x1343a