// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movl $0x0, 0x34(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x32275
movq 0x50(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x3223d
jmp 0x32275
movq 0x181d94(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x12be18(%rip), %rsi    # 0x15e066
leaq 0x12c3f3(%rip), %rdx    # 0x15e648
leaq 0x1337be(%rip), %rcx    # 0x165a1a
leaq 0x1336ed(%rip), %r8     # 0x165950
movl $0x134, %r9d            # imm = 0x134
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x32277
jmp 0x32279
cmpq $0x0, 0x60(%rsp)
je 0x32289
cmpq $0x0, 0x48(%rsp)
jne 0x322c1
movq 0x181d48(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x12bdcc(%rip), %rsi    # 0x15e066
leaq 0x133783(%rip), %rdx    # 0x165a24
leaq 0x133772(%rip), %rcx    # 0x165a1a
leaq 0x1336a1(%rip), %r8     # 0x165950
movl $0x135, %r9d            # imm = 0x135
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x322c3
movq 0x60(%rsp), %rdi
callq 0x21140
testb $0x1, %al
jne 0x32309
movq 0x60(%rsp), %rdi
callq 0x217b0
testb $0x1, %al
jne 0x32309
movq 0x48(%rsp), %rax
testb $0x1, 0x11(%rax)
je 0x32461
movq 0x60(%rsp), %rdi
leaq 0x132546(%rip), %rsi    # 0x164840
callq 0x1fde0
cmpq $0x0, %rax
je 0x32461
movq 0x60(%rsp), %rdi
callq 0x217b0
testb $0x1, %al
jne 0x3231c
jmp 0x323ee
movq 0x48(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x60(%rsp), %rdi
callq 0x21c40
movq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x86470
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x323a9
movq 0x48(%rsp), %rax
testb $0x1, 0x11(%rax)
je 0x32381
movq 0x48(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x60(%rsp), %rdi
callq 0x21c40
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x328b0
movq %rax, 0x28(%rsp)
jmp 0x323a7
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x60(%rsp), %rdi
callq 0x21c40
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x32a00
movq %rax, 0x28(%rsp)
jmp 0x323a9
movq 0x60(%rsp), %rdi
callq 0x21c40
cmpq 0x60(%rsp), %rax
je 0x323ec
movq 0x48(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, (%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rdi
callq 0x19dc0
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
callq 0x86510
jmp 0x32425
movq 0x48(%rsp), %rax
testb $0x1, 0x11(%rax)
je 0x3240f
movq 0x48(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x328b0
movq %rax, 0x28(%rsp)
jmp 0x32423
movq 0x48(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x32a00
movq %rax, 0x28(%rsp)
jmp 0x32425
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x28(%rsp), %rdi
callq 0x19940
movq %rax, 0x40(%rsp)
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rcx
leaq 0x38(%rsp), %rsi
leaq 0x688(%rip), %rdx       # 0x32ae0
callq 0x23790
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x68, %rsp
retq
nopw (%rax,%rax)