// File: /workspace/github_c_makefile_star2_O0/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:
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)
je 0x12f258
cmpq $0x0, 0x38(%rsp)
je 0x12f258
cmpq $0x0, 0x30(%rsp)
jne 0x12f290
movq 0x50cd41(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e6daa(%rip), %rsi    # 0x516013
leaq 0x41843d(%rip), %rdx    # 0x5476ad
leaq 0x41844c(%rip), %rcx    # 0x5476c3
leaq 0x4181d0(%rip), %r8     # 0x54744e
movl $0x625, %r9d            # imm = 0x625
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x12f292
jmp 0x12f294
cmpq $0x0, 0x28(%rsp)
je 0x12f2e4
movq 0x28(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x12f2ac
jmp 0x12f2e4
movq 0x50cced(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e6d56(%rip), %rsi    # 0x516013
leaq 0x3e6efb(%rip), %rdx    # 0x5161bf
leaq 0x4183f8(%rip), %rcx    # 0x5476c3
leaq 0x41817c(%rip), %r8     # 0x54744e
movl $0x626, %r9d            # imm = 0x626
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x12f2e6
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 0x90(%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)
movl 0x18(%rsp), %eax
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x12f379
jmp 0x12f367
movl 0xc(%rsp), %eax
subl $0x1, %eax
je 0x12f3fe
jmp 0x12f420
movq 0x10(%rsp), %rdi
movq 0x38(%rsp), %rdx
movq 0x28(%rsp), %rcx
xorl %eax, %eax
movl %eax, %esi
callq 0x1c4780
movq 0x10(%rsp), %rdi
movq 0x38(%rsp), %rdx
addq $0x8, %rdx
movq 0x28(%rsp), %rcx
movl $0x1, %esi
callq 0x1c4780
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x1c4650
cmpl $0x1, %eax
je 0x12f3fa
movq 0x50cbd7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e6c40(%rip), %rsi    # 0x516013
leaq 0x418271(%rip), %rdx    # 0x54764b
leaq 0x4182e2(%rip), %rcx    # 0x5476c3
leaq 0x418066(%rip), %r8     # 0x54744e
movl $0x631, %r9d            # imm = 0x631
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x12f3fc
jmp 0x12f428
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rdx
leaq 0x4182e1(%rip), %rsi    # 0x5476f0
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0x12f428
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
movq 0x20(%rsp), %rax
movq 0x170(%rax), %rdi
callq 0x121270
movl 0x1c(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)