// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: gt_feature_index_gfflike_has_seqid
int gt_feature_index_gfflike_has_seqid(const GtFeatureIndex *gfi,
                                       bool *has_seqid,
                                       const char *seqid,
                                       GtError *err)
{
  GtFeatureIndexGFFlike *fi;
  int had_err = 0;
  gt_assert(gfi);
  int rval;
  GtRDBStmt *stmt;
  gt_assert(gfi);
  gt_error_check(err);
  fi = feature_index_gfflike_cast((GtFeatureIndex*) gfi);
  gt_mutex_lock(fi->dblock);
  stmt = fi->stmts[GT_PSTMT_HAS_SEQID_SELECT];
  gt_rdb_stmt_reset(stmt, err);
  gt_rdb_stmt_bind_string(stmt, 0, seqid, err);
  rval = gt_rdb_stmt_exec(stmt, err);
  if (rval < 0) {
    /* error is set */
    had_err = -1;
  }
  if (!had_err) {
    int nof_entries;
    gt_rdb_stmt_get_int(stmt, 0, &nof_entries, err);
    *has_seqid = (nof_entries > 0);
    gt_assert(gt_rdb_stmt_exec(stmt, err) == 1);
  }
  gt_mutex_unlock(fi->dblock);
  return had_err;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movl $0x0, 0x1c(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x12f4b0
movq 0x50cb21(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e6b8a(%rip), %rsi    # 0x516013
leaq 0x41818e(%rip), %rdx    # 0x54761e
leaq 0x41827d(%rip), %rcx    # 0x547714
leaq 0x417fb0(%rip), %r8     # 0x54744e
movl $0x647, %r9d            # imm = 0x647
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x12f4b2
jmp 0x12f4b4
cmpq $0x0, 0x40(%rsp)
jne 0x12f4f4
movq 0x50cadd(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e6b46(%rip), %rsi    # 0x516013
leaq 0x41814a(%rip), %rdx    # 0x54761e
leaq 0x418239(%rip), %rcx    # 0x547714
leaq 0x417f6c(%rip), %r8     # 0x54744e
movl $0x64a, %r9d            # imm = 0x64A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x12f4f6
jmp 0x12f4f8
cmpq $0x0, 0x28(%rsp)
je 0x12f548
movq 0x28(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x12f510
jmp 0x12f548
movq 0x50ca89(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e6af2(%rip), %rsi    # 0x516013
leaq 0x3e6c97(%rip), %rdx    # 0x5161bf
leaq 0x4181e5(%rip), %rcx    # 0x547714
leaq 0x417f18(%rip), %r8     # 0x54744e
movl $0x64b, %r9d            # imm = 0x64B
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x12f54a
callq 0x12dc70
movq %rax, %rdi
movq 0x40(%rsp), %rsi
callq 0x16a0d0
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x170(%rax), %rdi
callq 0x1211d0
movq 0x20(%rsp), %rax
movq 0xf8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x1c42f0
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rdx
movq 0x28(%rsp), %rcx
xorl %eax, %eax
movl %eax, %esi
callq 0x1c44f0
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x1c4650
movl %eax, 0x18(%rsp)
cmpl $0x0, 0x18(%rsp)
jge 0x12f5cc
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x1c(%rsp)
jne 0x12f64d
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rcx
xorl %eax, %eax
movl %eax, %esi
leaq 0xc(%rsp), %rdx
callq 0x1c4840
cmpl $0x0, 0xc(%rsp)
setg %cl
movq 0x38(%rsp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x1c4650
cmpl $0x1, %eax
je 0x12f649
movq 0x50c988(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e69f1(%rip), %rsi    # 0x516013
leaq 0x418022(%rip), %rdx    # 0x54764b
leaq 0x4180e4(%rip), %rcx    # 0x547714
leaq 0x417e17(%rip), %r8     # 0x54744e
movl $0x65a, %r9d            # imm = 0x65A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x12f64b
jmp 0x12f64d
movq 0x20(%rsp), %rax
movq 0x170(%rax), %rdi
callq 0x121270
movl 0x1c(%rsp), %eax
addq $0x48, %rsp
retq
nopw (%rax,%rax)