// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/encseq_col.c
// Function: gt_encseq_col_grep_desc
static int gt_encseq_col_grep_desc(GtSeqCol *sc, char **seq,
                                   GtUword start, GtUword end,
                                   GtStr *seqid, GtError *err)
{
  GtUword filenum = 0, seqnum = 0, seqlength;
  int had_err;
  GtEncseqCol *esc;
  esc = gt_encseq_col_cast(sc);
  gt_error_check(err);
  gt_assert(esc && seq && seqid);
  had_err = gt_encseq_col_do_grep_desc(esc, &filenum, &seqnum, seqid, err);
  if (!had_err) {
    seqlength = gt_encseq_col_get_sequence_length(sc, 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_seq_col_get_sequence(sc, 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 0x13f230
movq %rax, %rdi
movq 0x70(%rsp), %rsi
callq 0x14a350
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x13f66b
movq 0x48(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x13f633
jmp 0x13f66b
movq 0x7499e(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1ea22(%rip), %rsi     # 0x15e066
leaq 0x1effd(%rip), %rdx     # 0x15e648
leaq 0x4b8fa(%rip), %rcx     # 0x18af4c
leaq 0x4b855(%rip), %r8      # 0x18aeae
movl $0xaa, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x13f66d
jmp 0x13f66f
cmpq $0x0, 0x20(%rsp)
je 0x13f687
cmpq $0x0, 0x68(%rsp)
je 0x13f687
cmpq $0x0, 0x50(%rsp)
jne 0x13f6bf
movq 0x7494a(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1e9ce(%rip), %rsi     # 0x15e066
leaq 0x4b8c5(%rip), %rdx     # 0x18af64
leaq 0x4b8a6(%rip), %rcx     # 0x18af4c
leaq 0x4b801(%rip), %r8      # 0x18aeae
movl $0xab, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x13f6c1
movq 0x20(%rsp), %rdi
movq 0x50(%rsp), %rcx
movq 0x48(%rsp), %r8
leaq 0x40(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x140ab0
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
jne 0x13f784
movq 0x70(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x140840
movq %rax, 0x30(%rsp)
movq 0x60(%rsp), %rax
movq 0x30(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
ja 0x13f72d
movq 0x58(%rsp), %rax
movq 0x30(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jbe 0x13f782
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 0x3a8b2(%rip), %rsi     # 0x17a02d
movb $0x0, %al
callq 0xc0d0
jmp 0x13f784
cmpl $0x0, 0x2c(%rsp)
jne 0x13f7b4
movq 0x70(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %r8
callq 0x14ab10
movq %rax, %rcx
movq 0x68(%rsp), %rax
movq %rcx, (%rax)
movl 0x2c(%rsp), %eax
addq $0x78, %rsp
retq
nopl (%rax)