// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/gff3_visitor.c
// Function: store_ids
static int store_ids(GtFeatureNode *fn, void *data, GtError *err)
{
  GtGFF3Visitor *gff3_visitor = (GtGFF3Visitor*) data;
  AddIDInfo add_id_info;
  int had_err = 0;
  GtStr *id;

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

  if (gt_feature_node_has_children(fn) || gt_feature_node_is_multi(fn) ||
      (gff3_visitor->retain_ids && gt_feature_node_get_attribute(fn, "ID"))) {
    if (gt_feature_node_is_multi(fn)) {
      id = gt_hashmap_get(gff3_visitor->feature_node_to_unique_id_str,
                          gt_feature_node_get_multi_representative(fn));
      if (!id) {
        /* the representative does not have its own id yet -> create it */
        if (gff3_visitor->retain_ids) {
          id = make_id_unique(gff3_visitor,
                              gt_feature_node_get_multi_representative(fn));
        }
        else {
          id = create_unique_id(gff3_visitor,
                                gt_feature_node_get_multi_representative(fn));
        }
      }
      /* store id for feature, if the feature was not the representative */
      if (gt_feature_node_get_multi_representative(fn) != fn) {
        gt_hashmap_add(gff3_visitor->feature_node_to_unique_id_str, fn,
                       gt_str_ref(id));
      }
    }
    else {
      if (gff3_visitor->retain_ids)
        id = make_id_unique(gff3_visitor, fn);
      else
        id = create_unique_id(gff3_visitor, fn);
    }
    /* for each child -> store the parent feature in the hash map */
    add_id_info.gt_feature_node_to_id_array =
      gff3_visitor->feature_node_to_id_array,
    add_id_info.id = gt_str_get(id);
    had_err = gt_feature_node_traverse_direct_children(fn, &add_id_info, add_id,
                                                       err);
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testq %rdx, %rdx
je 0x24419
movq %rbx, %rdi
callq 0xc103
testb %al, %al
jne 0x24573
testq %r14, %r14
je 0x24545
testq %r15, %r15
je 0x24545
movq %r14, %rdi
callq 0x194d0
testb %al, %al
jne 0x24468
movq %r14, %rdi
callq 0x198d7
testb %al, %al
jne 0x24468
xorl %ebp, %ebp
cmpb $0x1, 0x11(%r15)
jne 0x24534
leaq 0xac2bc(%rip), %rsi     # 0xd0713
movq %r14, %rdi
callq 0x18818
testq %rax, %rax
je 0x24534
movq %r14, %rdi
callq 0x198d7
testb %al, %al
je 0x244b2
movq 0x28(%r15), %r12
movq %r14, %rdi
callq 0x19b8f
movq %r12, %rdi
movq %rax, %rsi
callq 0x55ef6
movq %rax, %r12
testq %rax, %rax
jne 0x244de
movb 0x11(%r15), %bpl
movq %r14, %rdi
callq 0x19b8f
movq %r15, %rdi
movq %rax, %rsi
cmpb $0x1, %bpl
jne 0x244d6
callq 0x24873
jmp 0x244db
cmpb $0x1, 0x11(%r15)
jne 0x244c6
movq %r15, %rdi
movq %r14, %rsi
callq 0x24873
jmp 0x244d1
movq %r15, %rdi
movq %r14, %rsi
callq 0x249a3
movq %rax, %r12
jmp 0x24505
callq 0x249a3
movq %rax, %r12
movq %r14, %rdi
callq 0x19b8f
cmpq %r14, %rax
je 0x24505
movq 0x28(%r15), %r13
movq %r12, %rdi
callq 0x146aa
movq %r13, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x55f31
movq 0x20(%r15), %rax
leaq 0x8(%rsp), %r15
movq %rax, (%r15)
movq %r12, %rdi
callq 0x143d2
movq %rax, 0x8(%r15)
leaq 0x521(%rip), %rdx       # 0x24a45
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x1ae00
movl %eax, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x109a6c(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa5b10(%rip), %rsi     # 0xca066
leaq 0xad32b(%rip), %rdx     # 0xd1888
leaq 0xad31a(%rip), %rcx     # 0xd187e
leaq 0xad249(%rip), %r8      # 0xd17b4
movl $0x135, %r9d            # imm = 0x135
jmp 0x2459f
movq 0x109a3e(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xa5ae2(%rip), %rsi     # 0xca066
leaq 0xa60ce(%rip), %rdx     # 0xca659
leaq 0xad2ec(%rip), %rcx     # 0xd187e
leaq 0xad21b(%rip), %r8      # 0xd17b4
movl $0x134, %r9d            # imm = 0x134
xorl %eax, %eax
callq 0xb8c0
callq 0xb300