// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: anno_db_gfflike_create_indexes_sqlite
static int anno_db_gfflike_create_indexes_sqlite(GtRDBSqlite *db, GtError *err)
{
  int had_err = 0;
  GtRDBStmt *stmt;
  gt_assert(db);

  stmt = gt_rdb_prepare((GtRDB*) db,
                           "CREATE INDEX IF NOT EXISTS feature_all "
                           "ON features (id, start, end, seqid, source, type)",
                           0,
                           err);
  if (!stmt || (had_err = gt_rdb_stmt_exec(stmt, err)) < 0) {
    return -1;
  } else gt_rdb_stmt_delete(stmt);
  stmt = gt_rdb_prepare((GtRDB*) db,
                           "CREATE INDEX IF NOT EXISTS name_type "
                           "ON types (type_name)",
                           0,
                           err);
  if (!stmt || (had_err = gt_rdb_stmt_exec(stmt, err)) < 0) {
    return -1;
  } else gt_rdb_stmt_delete(stmt);
  stmt = gt_rdb_prepare((GtRDB*) db,
                           "CREATE INDEX IF NOT EXISTS name_source "
                           "ON sources (source_name)",
                           0,
                           err);
  if (!stmt || (had_err = gt_rdb_stmt_exec(stmt, err)) < 0) {
    return -1;
  } else gt_rdb_stmt_delete(stmt);
  stmt = gt_rdb_prepare((GtRDB*) db,
                           "CREATE INDEX IF NOT EXISTS feature_seqid "
                           "ON features (seqid)",
                           0,
                           err);
  if (!stmt || (had_err = gt_rdb_stmt_exec(stmt, err)) < 0) {
    return -1;
  } else gt_rdb_stmt_delete(stmt);
  stmt = gt_rdb_prepare((GtRDB*) db,
                           "CREATE INDEX IF NOT EXISTS name_sequenceregion "
                           "ON sequenceregions (sequenceregion_name)",
                           0,
                           err);
  if (!stmt || (had_err = gt_rdb_stmt_exec(stmt, err)) < 0) {
    return -1;
  } else gt_rdb_stmt_delete(stmt);
  stmt = gt_rdb_prepare((GtRDB*) db,
                           "CREATE INDEX IF NOT EXISTS attribs_value "
                           "ON attributes (value)",
                           0,
                           err);
  if (!stmt || (had_err = gt_rdb_stmt_exec(stmt, err)) < 0) {
    return -1;
  } else gt_rdb_stmt_delete(stmt);
  stmt = gt_rdb_prepare((GtRDB*) db,
                           "CREATE INDEX IF NOT EXISTS attribs_key "
                           "ON attributes (keystr)",
                           0,
                           err);
  if (!stmt || (had_err = gt_rdb_stmt_exec(stmt, err)) < 0) {
    return -1;
  } else gt_rdb_stmt_delete(stmt);
  stmt = gt_rdb_prepare((GtRDB*) db,
                           "CREATE INDEX IF NOT EXISTS attribs_feature "
                           "ON attributes (feature_id)",
                           0,
                           err);
  if (!stmt || (had_err = gt_rdb_stmt_exec(stmt, err)) < 0) {
    return -1;
  } else gt_rdb_stmt_delete(stmt);
  stmt = gt_rdb_prepare((GtRDB*) db,
                           "CREATE INDEX IF NOT EXISTS parent_id "
                           "ON parents (feature_id)",
                           0,
                           err);
  if (!stmt || (had_err = gt_rdb_stmt_exec(stmt, err)) < 0) {
    return -1;
  } else gt_rdb_stmt_delete(stmt);
  return 0;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x12cd86
movq 0x50f24b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e92b4(%rip), %rsi    # 0x516013
leaq 0x41a9db(%rip), %rdx    # 0x547741
leaq 0x41af57(%rip), %rcx    # 0x547cc4
leaq 0x41a6da(%rip), %r8     # 0x54744e
movl $0xe1, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x12cd88
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x41af51(%rip), %rsi    # 0x547cea
xorl %eax, %eax
movl %eax, %edx
callq 0x1c4240
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x12cdc4
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1c4650
movl %eax, 0xc(%rsp)
cmpl $0x0, %eax
jge 0x12cdd1
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x12d06c
movq (%rsp), %rdi
callq 0x1c46f0
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x41af58(%rip), %rsi    # 0x547d43
xorl %eax, %eax
movl %eax, %edx
callq 0x1c4240
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x12ce16
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1c4650
movl %eax, 0xc(%rsp)
cmpl $0x0, %eax
jge 0x12ce23
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x12d06c
movq (%rsp), %rdi
callq 0x1c46f0
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x41af40(%rip), %rsi    # 0x547d7d
xorl %eax, %eax
movl %eax, %edx
callq 0x1c4240
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x12ce68
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1c4650
movl %eax, 0xc(%rsp)
cmpl $0x0, %eax
jge 0x12ce75
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x12d06c
movq (%rsp), %rdi
callq 0x1c46f0
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x41af2e(%rip), %rsi    # 0x547dbd
xorl %eax, %eax
movl %eax, %edx
callq 0x1c4240
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x12ceba
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1c4650
movl %eax, 0xc(%rsp)
cmpl $0x0, %eax
jge 0x12cec7
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x12d06c
movq (%rsp), %rdi
callq 0x1c46f0
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x41af19(%rip), %rsi    # 0x547dfa
xorl %eax, %eax
movl %eax, %edx
callq 0x1c4240
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x12cf0c
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1c4650
movl %eax, 0xc(%rsp)
cmpl $0x0, %eax
jge 0x12cf19
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x12d06c
movq (%rsp), %rdi
callq 0x1c46f0
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x41af1f(%rip), %rsi    # 0x547e52
xorl %eax, %eax
movl %eax, %edx
callq 0x1c4240
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x12cf5e
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1c4650
movl %eax, 0xc(%rsp)
cmpl $0x0, %eax
jge 0x12cf6b
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x12d06c
movq (%rsp), %rdi
callq 0x1c46f0
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x41af0c(%rip), %rsi    # 0x547e91
xorl %eax, %eax
movl %eax, %edx
callq 0x1c4240
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x12cfb0
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1c4650
movl %eax, 0xc(%rsp)
cmpl $0x0, %eax
jge 0x12cfbd
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x12d06c
movq (%rsp), %rdi
callq 0x1c46f0
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x41aef8(%rip), %rsi    # 0x547ecf
xorl %eax, %eax
movl %eax, %edx
callq 0x1c4240
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x12d002
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1c4650
movl %eax, 0xc(%rsp)
cmpl $0x0, %eax
jge 0x12d00c
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x12d06c
movq (%rsp), %rdi
callq 0x1c46f0
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rcx
leaq 0x41aeef(%rip), %rsi    # 0x547f15
xorl %eax, %eax
movl %eax, %edx
callq 0x1c4240
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x12d051
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1c4650
movl %eax, 0xc(%rsp)
cmpl $0x0, %eax
jge 0x12d05b
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x12d06c
movq (%rsp), %rdi
callq 0x1c46f0
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)