// File: /workspace/github_c_makefile_star2_O3/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 0x47b14
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0x47c45
testq %r14, %r14
je 0x47c40
testq %r15, %r15
je 0x47c40
movq %r14, %rdi
callq 0x3f8ef
testb %al, %al
jne 0x47b63
movq %r14, %rdi
callq 0x3facd
testb %al, %al
jne 0x47b63
xorl %ebp, %ebp
cmpb $0x1, 0x11(%r15)
jne 0x47c2f
leaq 0x9fbd1(%rip), %rsi     # 0xe7723
movq %r14, %rdi
callq 0x3eedc
testq %rax, %rax
je 0x47c2f
movq %r14, %rdi
callq 0x3facd
testb %al, %al
je 0x47bad
movq 0x28(%r15), %r12
movq %r14, %rdi
callq 0x3fc0c
movq %r12, %rdi
movq %rax, %rsi
callq 0x775ed
movq %rax, %r12
testq %rax, %rax
jne 0x47bd9
movb 0x11(%r15), %bpl
movq %r14, %rdi
callq 0x3fc0c
movq %r15, %rdi
movq %rax, %rsi
cmpb $0x1, %bpl
jne 0x47bd1
callq 0x47ece
jmp 0x47bd6
cmpb $0x1, 0x11(%r15)
jne 0x47bc1
movq %r15, %rdi
movq %r14, %rsi
callq 0x47ece
jmp 0x47bcc
movq %r15, %rdi
movq %r14, %rsi
callq 0x48002
movq %rax, %r12
jmp 0x47c00
callq 0x48002
movq %rax, %r12
movq %r14, %rdi
callq 0x3fc0c
cmpq %r14, %rax
je 0x47c00
movq 0x28(%r15), %r13
movq %r12, %rdi
callq 0x3bcaf
movq %r13, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x77628
movq 0x20(%r15), %rax
leaq 0x8(%rsp), %r15
movq %rax, (%r15)
movq %r12, %rdi
callq 0x3bb5d
movq %rax, 0x8(%r15)
leaq 0x452(%rip), %rdx       # 0x48071
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x40831
movl %eax, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x132e6
callq 0x132ad