// File: /workspace/github_c_makefile_star2_O3/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 0x47c78
movq %rdx, %rdi
callq 0x34fea
testb %al, %al
jne 0x47ec9
testq %r14, %r14
je 0x47ec4
testq %rbx, %rbx
je 0x47ec4
movq 0x40(%rbx), %rsi
testq %rsi, %rsi
je 0x47c9d
movq %r14, %rdi
callq 0x859a0
jmp 0x47ca9
movq 0x38(%rbx), %rsi
movq %r14, %rdi
callq 0x858a4
movq 0x28(%rbx), %rdi
movq %r14, %rsi
callq 0x775ed
movq %rax, %r12
testq %rax, %rax
je 0x47d25
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x47cf9
leaq 0x9fa56(%rip), %rsi     # 0xe7723
callq 0x3b7af
movq 0x40(%rbx), %rdi
movl $0x3d, %esi
callq 0x3b9df
movq 0x40(%rbx), %r15
movq %r12, %rdi
callq 0x3bb5d
movq %r15, %rdi
movq %rax, %rsi
callq 0x3b7af
jmp 0x47d20
movq 0x38(%rbx), %r15
movq %r12, %rdi
callq 0x3bb5d
leaq 0xa0c48(%rip), %rsi     # 0xe8954
leaq 0x9fa10(%rip), %rdx     # 0xe7723
movq %r15, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x75ce5
movb $0x1, 0xf(%rsp)
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x775ed
movq %rax, %r15
movq %rax, %rdi
callq 0x6f310
testq %rax, %rax
je 0x47e43
testq %r12, %r12
je 0x47d6d
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x47d5f
movl $0x3b, %esi
callq 0x3b9df
jmp 0x47d6d
movq 0x38(%rbx), %rsi
movl $0x3b, %edi
callq 0x75f43
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x47d92
leaq 0x9f9a9(%rip), %rsi     # 0xe7726
callq 0x3b7af
movq 0x40(%rbx), %rdi
movl $0x3d, %esi
callq 0x3b9df
jmp 0x47dab
movq 0x38(%rbx), %rdi
leaq 0xa0bbd(%rip), %rsi     # 0xe895a
leaq 0x9f982(%rip), %rdx     # 0xe7726
xorl %eax, %eax
callq 0x75ce5
movq %r15, %rdi
callq 0x6f310
testq %rax, %rax
je 0x47e3e
leaq 0xa6d3e(%rip), %r12     # 0xeeb01
xorl %r13d, %r13d
testq %r13, %r13
je 0x47dee
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x47de0
movl $0x2c, %esi
callq 0x3b9df
jmp 0x47dee
movq 0x38(%rbx), %rsi
movl $0x2c, %edi
callq 0x75f43
movq 0x40(%rbx), %rbp
testq %rbp, %rbp
je 0x47e0f
movq %r15, %rdi
movq %r13, %rsi
callq 0x6f037
movq (%rax), %rsi
movq %rbp, %rdi
callq 0x3b7af
jmp 0x47e2e
movq 0x38(%rbx), %rbp
movq %r15, %rdi
movq %r13, %rsi
callq 0x6f037
movq (%rax), %rdx
movq %rbp, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x75ce5
incq %r13
movq %r15, %rdi
callq 0x6f310
cmpq %rax, %r13
jb 0x47dc6
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       # 0x48100
movq %r14, %rdi
callq 0x4035e
cmpb $0x0, (%r15)
jne 0x47e90
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x47e82
movl $0x2e, %esi
callq 0x3b9df
jmp 0x47e90
movq 0x38(%rbx), %rsi
movl $0x2e, %edi
callq 0x75f43
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x47ea5
movl $0xa, %esi
callq 0x3b9df
jmp 0x47eb3
movq 0x38(%rbx), %rsi
movl $0xa, %edi
callq 0x75f43
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13358
callq 0x1331f