// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/diagram.c
// Function: add_recursive
static void add_recursive(GtDiagram *d, GtFeatureNode *node,
                          GtFeatureNode* parent,
                          GtFeatureNode *original_node)
{
  NodeInfoElement *ni;
  GtFeatureNode *rep = GT_UNDEF_REPR;
  gt_assert(d && node && original_node);
  if (!parent) return;
  ni = nodeinfo_get(d, node);
  if (gt_feature_node_is_multi(original_node)) {
    rep = gt_feature_node_get_multi_representative(original_node);
  }
    /* end of recursion, insert into target block */
  if (parent == node) {
    GtBlock *block ;
    block = nodeinfo_find_block(ni,
                                gt_feature_node_get_type(node),
                                rep);
    if (!block) {
      block = gt_block_new_from_node(node);
      nodeinfo_add_block(ni,
                         gt_feature_node_get_type(node),
                         rep,
                         block);
    }
    gt_block_insert_element(block, original_node);
    gt_log_log("add %s to target %s", gt_feature_node_get_type(original_node),
                                      gt_block_get_type(block));
  }
  else
  {
    /* not at target type block yet, set up reverse entry and follow */
    NodeInfoElement *parent_ni;
    /* set up reverse entry */
    ni->parent = parent;
    parent_ni = gt_hashmap_get(d->nodeinfo, parent);
    if (parent_ni) {
      gt_log_log("recursion: %s -> %s", gt_feature_node_get_type(node),
                                        gt_feature_node_get_type(parent));
      add_recursive(d, parent, parent_ni->parent, original_node);
    }
  }
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq $-0x1, %rax
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x3d04c
cmpq $0x0, 0x58(%rsp)
je 0x3d04c
cmpq $0x0, 0x48(%rsp)
jne 0x3d084
movq 0x176f85(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x121009(%rip), %rsi    # 0x15e066
leaq 0x12ab24(%rip), %rdx    # 0x167b88
leaq 0x12ab38(%rip), %rcx    # 0x167ba3
leaq 0x12a8e5(%rip), %r8     # 0x167957
movl $0x187, %r9d            # imm = 0x187
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x3d086
cmpq $0x0, 0x50(%rsp)
jne 0x3d093
jmp 0x3d1fd
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x3d8f0
movq %rax, 0x40(%rsp)
movq 0x48(%rsp), %rdi
callq 0x217b0
testb $0x1, %al
jne 0x3d0b7
jmp 0x3d0c6
movq 0x48(%rsp), %rdi
callq 0x21c40
movq %rax, 0x38(%rsp)
movq 0x50(%rsp), %rax
cmpq 0x58(%rsp), %rax
jne 0x3d183
movq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rdi
callq 0x211d0
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq 0x38(%rsp), %rdx
callq 0x3d9e0
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x3d143
movq 0x58(%rsp), %rdi
callq 0xb0640
movq %rax, 0x30(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x58(%rsp), %rdi
callq 0x211d0
movq 0x18(%rsp), %rdi
movq %rax, %rsi
movq 0x38(%rsp), %rdx
movq 0x30(%rsp), %rcx
callq 0x3db00
movq 0x30(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0xb0730
movq 0x48(%rsp), %rdi
callq 0x211d0
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
callq 0xb10f0
movq 0x10(%rsp), %rsi
movq %rax, %rdx
leaq 0x12aa37(%rip), %rdi    # 0x167bb1
movb $0x0, %al
callq 0xc930
jmp 0x3d1fd
movq 0x50(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x50(%rsp), %rsi
callq 0x86470
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x3d1fb
movq 0x58(%rsp), %rdi
callq 0x211d0
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rdi
callq 0x211d0
movq 0x8(%rsp), %rsi
movq %rax, %rdx
leaq 0x12a9ed(%rip), %rdi    # 0x167bc5
movb $0x0, %al
callq 0xc930
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x28(%rsp), %rax
movq (%rax), %rdx
movq 0x48(%rsp), %rcx
callq 0x3d010
jmp 0x3d1fd
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)