// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/encseq_col.c
// Function: gt_encseq_col_md5_to_description
static int gt_encseq_col_md5_to_description(GtSeqCol *sc, GtStr *desc,
                                            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 && desc && 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) {
    const char *cdesc;
    GtUword desc_len;
    gt_assert(seqnum < gt_encseq_num_of_sequences(esc->encseq));
    cdesc = gt_encseq_description(esc->encseq, &desc_len, seqnum);
    gt_str_append_cstr_nt(desc, cdesc, desc_len);
  } 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 $0x38, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
callq 0xd2f61
movq %rax, %rdi
movq %r12, %rsi
callq 0xd7a8e
movq %rax, %r12
testq %r14, %r14
je 0xd373b
movq %r14, %rdi
callq 0x3566a
testb %al, %al
jne 0xd3874
testq %r14, %r14
je 0xd386a
testq %r15, %r15
je 0xd386a
testq %rbx, %rbx
je 0xd386a
testq %r12, %r12
je 0xd386a
movq %r15, %rdi
callq 0x3c40b
movq %rax, %rdi
callq 0x7a678
testb %al, %al
je 0xd386f
movq %r15, %rdi
callq 0x3c434
xorl %ebp, %ebp
cmpq $0x25, %rax
jb 0xd37ec
movq %rbx, (%rsp)
movq %r15, %rdi
callq 0x3c40b
movq %rax, %r13
movb 0x24(%rax), %bl
xorl %ebp, %ebp
cmpb $0x3a, %bl
je 0xd37c6
movq %r15, %rdi
callq 0x3c40b
leaq 0x2e43f(%rip), %rsi     # 0x101bee
movq %r14, %rdi
movq %rax, %rdx
movl $0x3a, %ecx
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpb $0x3a, %bl
jne 0xd37e8
addq $0x4, %r13
leaq 0x10(%rsp), %rbx
movl $0x20, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0xb2d0
movb $0x0, 0x20(%rbx)
movq (%rsp), %rbx
movq 0x10(%r12), %rdi
leaq 0x10(%rsp), %rsi
callq 0xd7652
cmpq $-0x1, %rax
je 0xd3838
movq %rax, %r13
movq 0x8(%r12), %rdi
callq 0xbef6c
cmpq %rax, %r13
jae 0xd3879
movq 0x8(%r12), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
movq %r13, %rdx
callq 0xc3523
movq (%r14), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3c185
jmp 0xd3859
movq %r15, %rdi
callq 0x3c40b
leaq 0x2e3d3(%rip), %rsi     # 0x101c1a
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x30830
callq 0x30869
callq 0x308db
callq 0x308a2