// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: gt_feature_index_gfflike_save
static int gt_feature_index_gfflike_save(GtFeatureIndex *fi,
                                         GT_UNUSED GtError *err)
{
  GtFeatureIndexGFFlike *fig;
  ObserverCallbackInfo *oci;
  int had_err = 0;
  GtRDBStmt *stmt_b, *stmt_e;
  gt_assert(fi);
  fig = feature_index_gfflike_cast(fi);
  oci = (ObserverCallbackInfo*) fig->obs->data;

  gt_mutex_lock(fig->dblock);
  stmt_b = gt_rdb_prepare(fig->db, "BEGIN TRANSACTION;", 0, err);
  stmt_e = gt_rdb_prepare(fig->db, "END TRANSACTION;", 0, err);
  gt_rdb_stmt_exec(stmt_b, err);
  if (oci && fig->deleted) {
    had_err = gt_hashmap_foreach(fig->deleted,
                                 gt_feature_index_gfflike_save_del,
                                 oci, err);
  }
  gt_hashmap_reset(fig->deleted);
  gt_rdb_stmt_exec(stmt_e, err);

  gt_rdb_stmt_reset(stmt_b, err);
  gt_rdb_stmt_exec(stmt_b, err);
  if (oci && fig->added) {
    had_err = gt_hashmap_foreach(fig->added,
                                 gt_feature_index_gfflike_save_add,
                                 oci, err);
  }
  gt_hashmap_reset(fig->added);
  gt_rdb_stmt_reset(stmt_e, err);
  gt_rdb_stmt_exec(stmt_e, err);

  gt_rdb_stmt_reset(stmt_b, err);
  gt_rdb_stmt_exec(stmt_b, err);
  if (oci && fig->changed) {
    had_err = gt_hashmap_foreach(fig->changed,
                                 gt_feature_index_gfflike_save_chg,
                                 oci, err);
  }
  gt_hashmap_reset(fig->changed);
  gt_rdb_stmt_reset(stmt_e, err);
  gt_rdb_stmt_exec(stmt_e, err);

  gt_rdb_stmt_delete(stmt_e);
  gt_rdb_stmt_delete(stmt_b);
  gt_mutex_lock(fig->dblock);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xb9f0c
movq %rsi, %rbx
movq %rdi, %r14
callq 0xb7471
movq %rax, %rdi
movq %r14, %rsi
callq 0xd80e5
movq %rax, %r14
movq 0x160(%rax), %rax
movq 0x170(%r14), %rdi
movq 0x60(%rax), %rbp
callq 0xaf370
movq 0x168(%r14), %rdi
leaq 0x25c9bd(%rip), %rsi    # 0x31677e
xorl %r12d, %r12d
xorl %edx, %edx
movq %rbx, %rcx
callq 0x10d490
movq %rax, %r15
movq 0x168(%r14), %rdi
leaq 0x25c9b2(%rip), %rsi    # 0x316791
xorl %edx, %edx
movq %rbx, %rcx
callq 0x10d490
movq %rax, %r13
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10d688
testq %rbp, %rbp
je 0xb9e1a
movq 0x40(%r14), %rdi
testq %rdi, %rdi
je 0xb9e1a
leaq 0x138(%rip), %rsi       # 0xb9f44
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x8f56e
movl %eax, %r12d
movq 0x40(%r14), %rdi
callq 0x8f5bc
movq %r13, %rdi
movq %rbx, %rsi
callq 0x10d688
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10d4e4
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10d688
testq %rbp, %rbp
je 0xb9e67
movq 0x38(%r14), %rdi
testq %rdi, %rdi
je 0xb9e67
leaq 0x2fa(%rip), %rsi       # 0xba153
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x8f56e
movl %eax, %r12d
movq 0x38(%r14), %rdi
callq 0x8f5bc
movq %r13, %rdi
movq %rbx, %rsi
callq 0x10d4e4
movq %r13, %rdi
movq %rbx, %rsi
callq 0x10d688
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10d4e4
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10d688
testq %rbp, %rbp
je 0xb9ebf
movq 0x48(%r14), %rdi
testq %rdi, %rdi
je 0xb9ebf
leaq 0x2b1(%rip), %rsi       # 0xba162
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x8f56e
movl %eax, %r12d
movq 0x48(%r14), %rdi
callq 0x8f5bc
movq %r13, %rdi
movq %rbx, %rsi
callq 0x10d4e4
movq %r13, %rdi
movq %rbx, %rsi
callq 0x10d688
movq %r13, %rdi
callq 0x10d6dc
movq %r15, %rdi
callq 0x10d6dc
movq 0x170(%r14), %rdi
callq 0xaf370
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x37e055(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x22b0f6(%rip), %rsi    # 0x2e5013
leaq 0x279d13(%rip), %rdx    # 0x333c37
leaq 0x25c835(%rip), %rcx    # 0x316760
leaq 0x25b5e4(%rip), %r8     # 0x315516
movl $0x4e4, %r9d            # imm = 0x4E4
xorl %eax, %eax
callq 0x17a50
callq 0x17390