// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: gt_feature_index_gfflike_get_range_for_seqid
int gt_feature_index_gfflike_get_range_for_seqid(GtFeatureIndex *gfi,
                                                 GtRange *range,
                                                 const char *seqid,
                                                 GtError *err)
{
  GtFeatureIndexGFFlike *fi;
  int had_err = 0, rval;
  GtRDBStmt *stmt;
  gt_assert(gfi && range && seqid);
  gt_error_check(err);
  fi = feature_index_gfflike_cast(gfi);
  gt_mutex_lock(fi->dblock);
  stmt = fi->stmts[GT_PSTMT_GET_SEQREG_RANGE_SELECT];
  gt_rdb_stmt_reset(stmt, err);
  gt_rdb_stmt_bind_string(stmt, 0, seqid, err);
  rval = gt_rdb_stmt_exec(stmt, err);
  switch (rval) {
    case 0:
      gt_rdb_stmt_get_ulong(stmt, 0, &range->start, err);
      gt_rdb_stmt_get_ulong(stmt, 1, &range->end, err);
      gt_assert(gt_rdb_stmt_exec(stmt, err) == 1);
      break;
    case 1:
      gt_error_set(err, "sequence region '%s' does not exist", seqid);
      had_err = -1;
      break;
    default:
      /* error is set */
      had_err = -1;
      break;
  }
  gt_mutex_unlock(fi->dblock);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xb84dc
movq %rsi, %r14
testq %rsi, %rsi
je 0xb84dc
movq %rdx, %r12
testq %rdx, %rdx
je 0xb84dc
movq %rcx, %rbx
movq %rdi, %r15
testq %rcx, %rcx
je 0xb83e8
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0xb850a
callq 0xb7471
movq %rax, %rdi
movq %r15, %rsi
callq 0xd80e5
movq %rax, %r15
movq 0x170(%rax), %rdi
callq 0xaf370
movq 0x90(%r15), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x10d4e4
movq %rbp, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x10d5e0
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x10d688
pushq $-0x1
popq %r13
cmpl $0x1, %eax
je 0xb84aa
testl %eax, %eax
jne 0xb84be
xorl %r13d, %r13d
movq %rbp, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x10d74a
addq $0x8, %r14
pushq $0x1
popq %rsi
movq %rbp, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x10d74a
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x10d688
cmpl $0x1, %eax
je 0xb84be
movq 0x37fae8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x22cb89(%rip), %rsi    # 0x2e5013
leaq 0x25d282(%rip), %rdx    # 0x315713
leaq 0x25d2f3(%rip), %rcx    # 0x31578b
leaq 0x25d077(%rip), %r8     # 0x315516
movl $0x631, %r9d            # imm = 0x631
jmp 0xb8536
leaq 0x25d307(%rip), %rsi    # 0x3157b8
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x89dbb
movq 0x170(%r15), %rdi
callq 0xaf3e7
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x37fa85(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x22cb26(%rip), %rsi    # 0x2e5013
leaq 0x25d281(%rip), %rdx    # 0x315775
leaq 0x25d290(%rip), %rcx    # 0x31578b
leaq 0x25d014(%rip), %r8     # 0x315516
movl $0x625, %r9d            # imm = 0x625
jmp 0xb8536
movq 0x37fa57(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x22caf8(%rip), %rsi    # 0x2e5013
leaq 0x22cc9d(%rip), %rdx    # 0x2e51bf
leaq 0x25d262(%rip), %rcx    # 0x31578b
leaq 0x25cfe6(%rip), %r8     # 0x315516
movl $0x626, %r9d            # imm = 0x626
xorl %eax, %eax
callq 0x17a50
callq 0x17390