// File: /workspace/github_c_makefile_star2_O2/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, %r13
movq %r8, %rbp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, 0x10(%rsp)
movq %rdi, %rbx
callq 0xb9a4c
movq %rax, %rdi
movq %rbx, %rsi
callq 0xbfaea
movq %rax, %r12
testq %r13, %r13
je 0xba1cf
movq %r13, %rdi
callq 0xc103
testb %al, %al
jne 0xba38b
cmpq $0x0, 0x10(%rsp)
je 0xba32f
testq %r12, %r12
je 0xba32f
movq %r15, %rbx
subq %r14, %rbx
jb 0xba32f
testq %rbp, %rbp
je 0xba32f
testq %r13, %r13
je 0xba32f
movq %rbp, %rdi
callq 0x143d2
movq %rax, %rdi
callq 0x59a50
testb %al, %al
je 0xba35d
movq %rbp, %rdi
callq 0x14461
movl $0x0, 0xc(%rsp)
cmpq $0x25, %rax
movq %r15, 0x18(%rsp)
jb 0xba287
movq %rbp, %rdi
callq 0x143d2
cmpb $0x3a, 0x24(%rax)
jne 0xba261
addq $0x4, %rax
leaq 0x20(%rsp), %r15
pushq $0x20
popq %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0xb2d0
movb $0x0, 0x20(%r15)
jmp 0xba287
movq %rbp, %rdi
callq 0x143d2
leaq 0x30b6e(%rip), %rsi     # 0xeadde
pushq $0x3a
popq %rcx
movq %r13, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xc007
pushq $-0x1
popq %rax
movl %eax, 0xc(%rsp)
movq 0x10(%r12), %rdi
leaq 0x20(%rsp), %rsi
callq 0xbf3ee
cmpq $-0x1, %rax
je 0xba2ff
movq %rax, %r15
movq 0x8(%r12), %rdi
movq %rax, %rsi
callq 0xa6788
movq %rax, %r13
movq 0x8(%r12), %rdi
movq %r15, %rsi
callq 0xa6b5f
incq %rbx
leaq 0x36eec(%rip), %rdx     # 0xf11b2
pushq $0x1
popq %rsi
movq %rbx, %rdi
movl $0x10f, %ecx            # imm = 0x10F
callq 0xce9a
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r12), %rdi
addq %r13, %r14
movq 0x18(%rsp), %rcx
addq %r13, %rcx
movq %rax, %rsi
movq %r14, %rdx
callq 0xa3d89
movl 0xc(%rsp), %ebx
jmp 0xba31e
pushq $-0x1
popq %rbx
movq %rbp, %rdi
callq 0x143d2
leaq 0x30af9(%rip), %rsi     # 0xeae0a
movq %r13, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xc007
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x73c82(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xfd26(%rip), %rsi      # 0xca066
leaq 0x3706a(%rip), %rdx     # 0xf13b1
leaq 0x3704a(%rip), %rcx     # 0xf1398
leaq 0x36e5d(%rip), %r8      # 0xf11b2
movl $0xfb, %r9d
jmp 0xba3b7
movq 0x73c54(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xfcf8(%rip), %rsi      # 0xca066
leaq 0x309c3(%rip), %rdx     # 0xead38
leaq 0x3701c(%rip), %rcx     # 0xf1398
leaq 0x36e2f(%rip), %r8      # 0xf11b2
movl $0xfc, %r9d
jmp 0xba3b7
movq 0x73c26(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0xfcca(%rip), %rsi      # 0xca066
leaq 0x102b6(%rip), %rdx     # 0xca659
leaq 0x36fee(%rip), %rcx     # 0xf1398
leaq 0x36e01(%rip), %r8      # 0xf11b2
movl $0xfa, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300