// File: /workspace/github_c_makefile_star2_O2/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, %r13
movb $0x0, 0x7(%rsp)
testq %rdx, %rdx
je 0x245d9
movq %rdx, %rdi
callq 0xc103
testb %al, %al
jne 0x2483b
testq %r13, %r13
je 0x2480d
testq %rbx, %rbx
je 0x2480d
movq 0x40(%rbx), %rsi
testq %rsi, %rsi
je 0x245fe
movq %r13, %rdi
callq 0x657b7
jmp 0x2460a
movq 0x38(%rbx), %rsi
movq %r13, %rdi
callq 0x6568c
movq 0x28(%rbx), %rdi
movq %r13, %rsi
callq 0x55ef6
movq %rax, %r12
testq %rax, %rax
je 0x24684
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x24658
leaq 0xac0e5(%rip), %rsi     # 0xd0713
callq 0x13dd3
movq 0x40(%rbx), %rdi
pushq $0x3d
popq %rsi
callq 0x140b1
movq 0x40(%rbx), %r14
movq %r12, %rdi
callq 0x143d2
movq %r14, %rdi
movq %rax, %rsi
callq 0x13dd3
jmp 0x2467f
movq 0x38(%rbx), %r14
movq %r12, %rdi
callq 0x143d2
leaq 0xad2d9(%rip), %rsi     # 0xd1944
leaq 0xac0a1(%rip), %rdx     # 0xd0713
movq %r14, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x542da
movb $0x1, 0x7(%rsp)
movq 0x20(%rbx), %rdi
movq %r13, %rsi
callq 0x55ef6
movq %rax, %r15
movq %rax, %rdi
callq 0x4b988
testq %rax, %rax
je 0x24794
testq %r12, %r12
je 0x246c8
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x246bc
pushq $0x3b
popq %rsi
callq 0x140b1
jmp 0x246c8
movq 0x38(%rbx), %rsi
pushq $0x3b
popq %rdi
callq 0x54619
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
movq %r13, 0x8(%rsp)
je 0x246f0
leaq 0xac039(%rip), %rsi     # 0xd0716
callq 0x13dd3
movq 0x40(%rbx), %rdi
pushq $0x3d
popq %rsi
callq 0x140b1
jmp 0x24709
movq 0x38(%rbx), %rdi
leaq 0xad24f(%rip), %rsi     # 0xd194a
leaq 0xac014(%rip), %rdx     # 0xd0716
xorl %eax, %eax
callq 0x542da
leaq 0xb3399(%rip), %r12     # 0xd7aa9
pushq $0x2c
popq %rbp
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x4b988
cmpq %rax, %r13
jae 0x2478a
testq %r13, %r13
je 0x24745
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x2473a
movl %ebp, %esi
callq 0x140b1
jmp 0x24745
movq 0x38(%rbx), %rsi
movl %ebp, %edi
callq 0x54619
movq 0x40(%rbx), %r14
testq %r14, %r14
je 0x24766
movq %r15, %rdi
movq %r13, %rsi
callq 0x4b48e
movq (%rax), %rsi
movq %r14, %rdi
callq 0x13dd3
jmp 0x24785
movq 0x38(%rbx), %r14
movq %r15, %rdi
movq %r13, %rsi
callq 0x4b48e
movq (%rax), %rdx
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x542da
incq %r13
jmp 0x24716
movb $0x1, 0x7(%rsp)
movq 0x8(%rsp), %r13
leaq 0x7(%rsp), %r14
leaq 0x10(%rsp), %rdx
movq %r14, (%rdx)
movups 0x38(%rbx), %xmm0
movups %xmm0, 0x8(%rdx)
leaq 0x37a(%rip), %rsi       # 0x24b2a
movq %r13, %rdi
callq 0x1a7c7
cmpb $0x0, (%r14)
jne 0x247dd
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x247d1
pushq $0x2e
popq %rsi
callq 0x140b1
jmp 0x247dd
movq 0x38(%rbx), %rsi
pushq $0x2e
popq %rdi
callq 0x54619
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x247f0
pushq $0xa
popq %rsi
callq 0x140b1
jmp 0x247fc
movq 0x38(%rbx), %rsi
pushq $0xa
popq %rdi
callq 0x54619
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1097a4(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa5848(%rip), %rsi     # 0xca066
leaq 0xad063(%rip), %rdx     # 0xd1888
leaq 0xad101(%rip), %rcx     # 0xd192d
leaq 0xacf81(%rip), %r8      # 0xd17b4
movl $0xa4, %r9d
jmp 0x24867
movq 0x109776(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa581a(%rip), %rsi     # 0xca066
leaq 0xa5e06(%rip), %rdx     # 0xca659
leaq 0xad0d3(%rip), %rcx     # 0xd192d
leaq 0xacf53(%rip), %r8      # 0xd17b4
movl $0xa3, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300