// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: set_parents
static int set_parents(void *key, void *value, void *data,
                       GtError *err)
{
  int had_err = 0;
  GtFeatureNode *fn = (GtFeatureNode*) key,
                *parent = NULL;
  GtArray *parent_array = (GtArray*) value;
  GtFeatureIndexGFFlike *fi = (GtFeatureIndexGFFlike*) data;
  GtUword *num, *parent_id;

  num = node_ul_gt_hashmap_get(fi->cache_node2id, fn);
  gt_assert(num);
  if (parent_array && gt_array_size(parent_array)) {
    GtUword i;
    int rval = 0;
    for (i=0;i<gt_array_size(parent_array);i++) {
      if (rval < 0) {
        had_err = -1;
        break;
      }
      parent = *(GtFeatureNode**) gt_array_get(parent_array, i);
      parent_id = node_ul_gt_hashmap_get(fi->cache_node2id, parent);
      gt_assert(parent_id);
      /* insert parents */
      gt_rdb_stmt_reset(fi->stmts[GT_PSTMT_PARENT_INSERT], err);
      gt_rdb_stmt_bind_int(fi->stmts[GT_PSTMT_PARENT_INSERT], 0, *num, err);
      gt_rdb_stmt_bind_int(fi->stmts[GT_PSTMT_PARENT_INSERT], 1, *parent_id,
                           err);
      rval = gt_rdb_stmt_exec(fi->stmts[GT_PSTMT_PARENT_INSERT], err);
    }
  }
  return had_err;
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movl $0x0, 0x54(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x48(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0x48(%rsp), %rsi
callq 0x131830
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x1316af
movq 0x50a922(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e498b(%rip), %rsi    # 0x516013
leaq 0x425f47(%rip), %rdx    # 0x5575d6
leaq 0x416ffe(%rip), %rcx    # 0x548694
leaq 0x415db1(%rip), %r8     # 0x54744e
movl $0x2ec, %r9d            # imm = 0x2EC
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1316b1
cmpq $0x0, 0x38(%rsp)
je 0x13181a
movq 0x38(%rsp), %rdi
callq 0x81370
cmpq $0x0, %rax
je 0x13181a
movl $0x0, 0x14(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
callq 0x81370
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jae 0x131818
cmpl $0x0, 0x14(%rsp)
jge 0x13171b
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x131818
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x80b60
movq (%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0x40(%rsp), %rsi
callq 0x131830
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x13178a
movq 0x50a847(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e48b0(%rip), %rsi    # 0x516013
leaq 0x48317d(%rip), %rdx    # 0x5b48e7
leaq 0x416f23(%rip), %rcx    # 0x548694
leaq 0x415cd6(%rip), %r8     # 0x54744e
movl $0x2f7, %r9d            # imm = 0x2F7
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x13178c
movq 0x30(%rsp), %rax
movq 0x80(%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0x1c42f0
movq 0x30(%rsp), %rax
movq 0x80(%rax), %rdi
movq 0x28(%rsp), %rax
movq (%rax), %rax
movl %eax, %edx
movq 0x58(%rsp), %rcx
xorl %eax, %eax
movl %eax, %esi
callq 0x1c4390
movq 0x30(%rsp), %rax
movq 0x80(%rax), %rdi
movq 0x20(%rsp), %rax
movq (%rax), %rax
movl %eax, %edx
movq 0x58(%rsp), %rcx
movl $0x1, %esi
callq 0x1c4390
movq 0x30(%rsp), %rax
movq 0x80(%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0x1c4650
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x1316e2
jmp 0x13181a
movl 0x54(%rsp), %eax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)