// File: /workspace/github_c_makefile_star2_O1/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 0x48785
movq %rbx, %rdi
callq 0x3566a
testb %al, %al
jne 0x488b6
testq %r14, %r14
je 0x488b1
testq %r15, %r15
je 0x488b1
movq %r14, %rdi
callq 0x40251
testb %al, %al
jne 0x487d4
movq %r14, %rdi
callq 0x40432
testb %al, %al
jne 0x487d4
xorl %ebp, %ebp
cmpb $0x1, 0x11(%r15)
jne 0x488a0
leaq 0x9efb2(%rip), %rsi     # 0xe7775
movq %r14, %rdi
callq 0x3f850
testq %rax, %rax
je 0x488a0
movq %r14, %rdi
callq 0x40432
testb %al, %al
je 0x4881e
movq 0x28(%r15), %r12
movq %r14, %rdi
callq 0x40571
movq %r12, %rdi
movq %rax, %rsi
callq 0x77109
movq %rax, %r12
testq %rax, %rax
jne 0x4884a
movb 0x11(%r15), %bpl
movq %r14, %rdi
callq 0x40571
movq %r15, %rdi
movq %rax, %rsi
cmpb $0x1, %bpl
jne 0x48842
callq 0x48b41
jmp 0x48847
cmpb $0x1, 0x11(%r15)
jne 0x48832
movq %r15, %rdi
movq %r14, %rsi
callq 0x48b41
jmp 0x4883d
movq %r15, %rdi
movq %r14, %rsi
callq 0x48c75
movq %rax, %r12
jmp 0x48871
callq 0x48c75
movq %rax, %r12
movq %r14, %rdi
callq 0x40571
cmpq %r14, %rax
je 0x48871
movq 0x28(%r15), %r13
movq %r12, %rdi
callq 0x3c561
movq %r13, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x77144
movq 0x20(%r15), %rax
leaq 0x8(%rsp), %r15
movq %rax, (%r15)
movq %r12, %rdi
callq 0x3c40b
movq %rax, 0x8(%r15)
leaq 0x454(%rip), %rdx       # 0x48ce4
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x411ba
movl %eax, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x13401
callq 0x133c8