// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq_col.c
// Function: gt_encseq_col_md5_to_seq
static int gt_encseq_col_md5_to_seq(GtSeqCol *sc, char **seq,
                                    GtUword start, GtUword end,
                                    GtStr *md5_seqid, GtError *err)
{
  GtUword seqnum = GT_UNDEF_UWORD;
  char seqid[GT_MD5_SEQID_HASH_LEN + 1];
  int had_err = 0;
  GtEncseqCol *esc;
  esc = gt_encseq_col_cast(sc);
  gt_error_check(err);
  gt_assert(esc && seq && start <= end && md5_seqid && err);
  gt_assert(gt_md5_seqid_has_prefix(gt_str_get(md5_seqid)));
  if (gt_str_length(md5_seqid) >= GT_MD5_SEQID_TOTAL_LEN) {
    const char *cstrseqid = gt_str_get(md5_seqid);
    if (cstrseqid[GT_MD5_SEQID_TOTAL_LEN-1] != GT_MD5_SEQID_SEPARATOR) {
      gt_error_set(err, "MD5 sequence id %s not terminated with '%c'",
                   gt_str_get(md5_seqid), GT_MD5_SEQID_SEPARATOR);
      had_err = -1;
    }
    if (!had_err) {
      strncpy(seqid, cstrseqid + GT_MD5_SEQID_PREFIX_LEN,
              GT_MD5_SEQID_HASH_LEN);
      seqid[GT_MD5_SEQID_HASH_LEN] = '\0';
    }
  }
  seqnum = gt_md5_tab_map(esc->md5_tab, seqid);
  if (seqnum != GT_UNDEF_UWORD) {
    GtUword startpos = gt_encseq_seqstartpos(esc->encseq, seqnum),
                  GT_UNUSED seqlength = gt_encseq_seqlength(esc->encseq,
                                                            seqnum);
    *seq = gt_calloc(end - start + 1, sizeof (char));
    gt_encseq_extract_decoded(esc->encseq, (char*) *seq, startpos + start,
                              startpos + end);
  } else {
    gt_error_set(err, "sequence %s not found", gt_str_get(md5_seqid));
    had_err = -1;
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %r12
movq %r8, %rbp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
callq 0xd2f61
movq %rax, %rdi
movq %rbx, %rsi
callq 0xd7a8e
movq %r12, %rcx
movq %rax, %r12
testq %rcx, %rcx
je 0xd3568
movq %rcx, %rbx
movq %rcx, %rdi
callq 0x3566a
movq %rbx, %rcx
testb %al, %al
jne 0xd36f4
testq %r13, %r13
je 0xd36ea
testq %r12, %r12
je 0xd36ea
movq %r14, %rbx
subq %r15, %rbx
jb 0xd36ea
testq %rbp, %rbp
je 0xd36ea
testq %rcx, %rcx
je 0xd36ea
movq %rcx, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq %rbp, %rdi
callq 0x3c40b
movq %rax, %rdi
callq 0x7a678
testb %al, %al
je 0xd36ef
movq %rbp, %rdi
callq 0x3c434
xorl %r15d, %r15d
cmpq $0x25, %rax
jb 0xd363d
movq %r13, (%rsp)
movq %rbp, %rdi
callq 0x3c40b
movq %rax, %r14
movb 0x24(%rax), %r13b
xorl %r15d, %r15d
cmpb $0x3a, %r13b
je 0xd3615
movq %rbp, %rdi
callq 0x3c40b
leaq 0x2e5f3(%rip), %rsi     # 0x101bee
movq 0x8(%rsp), %rdi
movq %rax, %rdx
movl $0x3a, %ecx
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
cmpb $0x3a, %r13b
jne 0xd3639
addq $0x4, %r14
leaq 0x20(%rsp), %r13
movl $0x20, %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0xb2d0
movb $0x0, 0x20(%r13)
movq (%rsp), %r13
movq 0x10(%r12), %rdi
leaq 0x20(%rsp), %rsi
callq 0xd7652
cmpq $-0x1, %rax
je 0xd36b4
movq %rax, %r14
movq 0x8(%r12), %rdi
movq %rax, %rsi
callq 0xc2a64
movq %r13, %rbp
movq %rax, %r13
movq 0x8(%r12), %rdi
movq %r14, %rsi
callq 0xc2d57
incq %rbx
leaq 0x34a5f(%rip), %rdx     # 0x1080de
movl $0x1, %esi
movq %rbx, %rdi
movl $0x10f, %ecx            # imm = 0x10F
callq 0x3601f
movq %rax, (%rbp)
movq 0x8(%r12), %rdi
movq 0x10(%rsp), %rdx
addq %r13, %rdx
movq 0x18(%rsp), %rcx
addq %r13, %rcx
movq %rax, %rsi
callq 0xc05ff
jmp 0xd36d8
movq %rbp, %rdi
callq 0x3c40b
leaq 0x2e557(%rip), %rsi     # 0x101c1a
movq 0x8(%rsp), %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x30785
callq 0x307be
callq 0x307f7