// File: /workspace/github_c_makefile_star2_O0/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:
subq $0xa8, %rsp
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq %rdx, 0x90(%rsp)
movq %rcx, 0x88(%rsp)
movq %r8, 0x80(%rsp)
movq %r9, 0x78(%rsp)
movq $-0x1, 0x70(%rsp)
movl $0x0, 0x3c(%rsp)
callq 0x13f230
movq %rax, %rdi
movq 0xa0(%rsp), %rsi
callq 0x14a350
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x78(%rsp)
je 0x13fc4f
movq 0x78(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x13fc17
jmp 0x13fc4f
movq 0x743ba(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1e43e(%rip), %rsi     # 0x15e066
leaq 0x1ea19(%rip), %rdx     # 0x15e648
leaq 0x4b45e(%rip), %rcx     # 0x18b094
leaq 0x4b271(%rip), %r8      # 0x18aeae
movl $0xfa, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x13fc51
jmp 0x13fc53
cmpq $0x0, 0x30(%rsp)
je 0x13fc8b
cmpq $0x0, 0x98(%rsp)
je 0x13fc8b
movq 0x90(%rsp), %rax
cmpq 0x88(%rsp), %rax
ja 0x13fc8b
cmpq $0x0, 0x80(%rsp)
je 0x13fc8b
cmpq $0x0, 0x78(%rsp)
jne 0x13fcc3
movq 0x74346(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1e3ca(%rip), %rsi     # 0x15e066
leaq 0x4b40a(%rip), %rdx     # 0x18b0ad
leaq 0x4b3ea(%rip), %rcx     # 0x18b094
leaq 0x4b1fd(%rip), %r8      # 0x18aeae
movl $0xfb, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x13fcc5
jmp 0x13fcc7
movq 0x80(%rsp), %rdi
callq 0x19940
movq %rax, %rdi
callq 0x8dca0
testb $0x1, %al
jne 0x13fd18
movq 0x742f1(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1e375(%rip), %rsi     # 0x15e066
leaq 0x44a40(%rip), %rdx     # 0x184738
leaq 0x4b395(%rip), %rcx     # 0x18b094
leaq 0x4b1a8(%rip), %r8      # 0x18aeae
movl $0xfc, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x13fd1a
movq 0x80(%rsp), %rdi
callq 0x19a00
cmpq $0x25, %rax
jb 0x13fdb1
movq 0x80(%rsp), %rdi
callq 0x19940
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movsbl 0x24(%rax), %eax
cmpl $0x3a, %eax
je 0x13fd8b
movq 0x78(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rdi
callq 0x19940
movq 0x10(%rsp), %rdi
movq %rax, %rdx
leaq 0x44a67(%rip), %rsi     # 0x1847de
movl $0x3a, %ecx
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x3c(%rsp)
jne 0x13fdaf
leaq 0x40(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq $0x4, %rsi
movl $0x20, %edx
callq 0xb2b0
movb $0x0, 0x60(%rsp)
jmp 0x13fdb1
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0x40(%rsp), %rsi
callq 0x149810
movq %rax, 0x70(%rsp)
cmpq $-0x1, 0x70(%rsp)
je 0x13fe72
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x70(%rsp), %rsi
callq 0x11a710
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x70(%rsp), %rsi
callq 0x11abd0
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rdi
subq 0x90(%rsp), %rdi
addq $0x1, %rdi
movl $0x1, %esi
leaq 0x4b089(%rip), %rdx     # 0x18aeae
movl $0x10f, %ecx            # imm = 0x10F
callq 0xd5b0
movq %rax, %rcx
movq 0x98(%rsp), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x98(%rsp), %rax
movq (%rax), %rsi
movq 0x20(%rsp), %rdx
addq 0x90(%rsp), %rdx
movq 0x20(%rsp), %rcx
addq 0x88(%rsp), %rcx
callq 0x116750
jmp 0x13fea7
movq 0x78(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x80(%rsp), %rdi
callq 0x19940
movq 0x8(%rsp), %rdi
movq %rax, %rdx
leaq 0x44972(%rip), %rsi     # 0x18480a
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
movl 0x3c(%rsp), %eax
addq $0xa8, %rsp
retq
nopw %cs:(%rax,%rax)