// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/bioseq_col.c
// Function: gt_bioseq_col_grep_desc
static int gt_bioseq_col_grep_desc(GtSeqCol *sc, char **seq,
                                   GtUword start, GtUword end,
                                   GtStr *seqid, GtError *err)
{
  GtUword filenum = 0, seqnum = 0, seqlength;
  int had_err;
  GtBioseqCol *bsc;
  bsc = gt_bioseq_col_cast(sc);
  gt_error_check(err);
  gt_assert(bsc && seq && seqid);
  had_err = grep_desc(bsc, &filenum, &seqnum, seqid, err);
  if (!had_err) {
    seqlength = gt_bioseq_get_sequence_length(bsc->bioseqs[filenum], seqnum);
    if (start > seqlength - 1 || end > seqlength - 1) {
      had_err = -1;
      gt_error_set(err, "trying to extract range "GT_WU"-"GT_WU" on sequence "
                         "``%s'' which is not covered by that sequence (only "
                         ""GT_WU" characters in size). Has the sequence-region "
                         "to sequence mapping been defined correctly?",
                         start, end, gt_str_get(seqid), seqlength);
    }
  }
  if (!had_err) {
    *seq = gt_bioseq_get_sequence_range(bsc->bioseqs[filenum], seqnum,
                                        start, end);
  }
  return had_err;
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq %r9, 0x48(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x38(%rsp)
callq 0x10e3d0
movq %rax, %rdi
movq 0x70(%rsp), %rsi
callq 0x14a350
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x10eaab
movq 0x48(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x10ea73
jmp 0x10eaab
movq 0xa555e(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x4f5e2(%rip), %rsi     # 0x15e066
leaq 0x4fbbd(%rip), %rdx     # 0x15e648
leaq 0x75dba(%rip), %rcx     # 0x18484c
leaq 0x75c6a(%rip), %r8      # 0x184703
movl $0xa3, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x10eaad
jmp 0x10eaaf
cmpq $0x0, 0x20(%rsp)
je 0x10eac7
cmpq $0x0, 0x68(%rsp)
je 0x10eac7
cmpq $0x0, 0x50(%rsp)
jne 0x10eaff
movq 0xa550a(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x4f58e(%rip), %rsi     # 0x15e066
leaq 0x75d85(%rip), %rdx     # 0x184864
leaq 0x75d66(%rip), %rcx     # 0x18484c
leaq 0x75c16(%rip), %r8      # 0x184703
movl $0xa4, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x10eb01
movq 0x20(%rsp), %rdi
movq 0x50(%rsp), %rcx
movq 0x48(%rsp), %r8
leaq 0x40(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x10f9b0
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
jne 0x10ebcc
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x40(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x38(%rsp), %rsi
callq 0x10c6a0
movq %rax, 0x30(%rsp)
movq 0x60(%rsp), %rax
movq 0x30(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
ja 0x10eb75
movq 0x58(%rsp), %rax
movq 0x30(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jbe 0x10ebca
movl $0xffffffff, 0x2c(%rsp) # imm = 0xFFFFFFFF
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rdi
callq 0x19940
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq %rax, %r8
movq 0x30(%rsp), %r9
leaq 0x6b46a(%rip), %rsi     # 0x17a02d
movb $0x0, %al
callq 0xc0d0
jmp 0x10ebcc
cmpl $0x0, 0x2c(%rsp)
jne 0x10ec04
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x40(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x38(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rcx
callq 0x10ca60
movq %rax, %rcx
movq 0x68(%rsp), %rax
movq %rcx, (%rax)
movl 0x2c(%rsp), %eax
addq $0x78, %rsp
retq
nopl (%rax)