// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
movq %rcx, 0x78(%rsp)
movq $-0x1, 0x70(%rsp)
movl $0x0, 0x3c(%rsp)
callq 0x13f230
movq %rax, %rdi
movq 0x90(%rsp), %rsi
callq 0x14a350
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x78(%rsp)
je 0x13ff5f
movq 0x78(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x13ff27
jmp 0x13ff5f
movq 0x740aa(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1e12e(%rip), %rsi     # 0x15e066
leaq 0x1e709(%rip), %rdx     # 0x15e648
leaq 0x4b196(%rip), %rcx     # 0x18b0dc
leaq 0x4af61(%rip), %r8      # 0x18aeae
movl $0x121, %r9d            # imm = 0x121
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x13ff61
jmp 0x13ff63
cmpq $0x0, 0x30(%rsp)
je 0x13ff89
cmpq $0x0, 0x88(%rsp)
je 0x13ff89
cmpq $0x0, 0x80(%rsp)
je 0x13ff89
cmpq $0x0, 0x78(%rsp)
jne 0x13ffc1
movq 0x74048(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1e0cc(%rip), %rsi     # 0x15e066
leaq 0x4b15c(%rip), %rdx     # 0x18b0fd
leaq 0x4b134(%rip), %rcx     # 0x18b0dc
leaq 0x4aeff(%rip), %r8      # 0x18aeae
movl $0x122, %r9d            # imm = 0x122
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x13ffc3
jmp 0x13ffc5
movq 0x80(%rsp), %rdi
callq 0x19940
movq %rax, %rdi
callq 0x8dca0
testb $0x1, %al
jne 0x140016
movq 0x73ff3(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1e077(%rip), %rsi     # 0x15e066
leaq 0x44742(%rip), %rdx     # 0x184738
leaq 0x4b0df(%rip), %rcx     # 0x18b0dc
leaq 0x4aeaa(%rip), %r8      # 0x18aeae
movl $0x123, %r9d            # imm = 0x123
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x140018
movq 0x80(%rsp), %rdi
callq 0x19a00
cmpq $0x25, %rax
jb 0x1400af
movq 0x80(%rsp), %rdi
callq 0x19940
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movsbl 0x24(%rax), %eax
cmpl $0x3a, %eax
je 0x140089
movq 0x78(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rdi
callq 0x19940
movq 0x10(%rsp), %rdi
movq %rax, %rdx
leaq 0x44769(%rip), %rsi     # 0x1847de
movl $0x3a, %ecx
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x3c(%rsp)
jne 0x1400ad
leaq 0x40(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq $0x4, %rsi
movl $0x20, %edx
callq 0xb2b0
movb $0x0, 0x60(%rsp)
jmp 0x1400af
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0x40(%rsp), %rsi
callq 0x149810
movq %rax, 0x70(%rsp)
cmpq $-0x1, 0x70(%rsp)
je 0x14016a
jmp 0x1400d5
movq 0x70(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x113f30
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jb 0x140132
movq 0x73ed7(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1df5b(%rip), %rsi     # 0x15e066
leaq 0x4b0eb(%rip), %rdx     # 0x18b1fd
leaq 0x4afc3(%rip), %rcx     # 0x18b0dc
leaq 0x4ad8e(%rip), %r8      # 0x18aeae
movl $0x135, %r9d            # imm = 0x135
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x140134
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x70(%rsp), %rdx
leaq 0x18(%rsp), %rsi
callq 0x11bd20
movq %rax, 0x20(%rsp)
movq 0x88(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x19290
jmp 0x14019d
movq 0x78(%rsp), %rax
movq %rax, (%rsp)
movq 0x80(%rsp), %rdi
callq 0x19940
movq (%rsp), %rdi
movq %rax, %rdx
leaq 0x4467c(%rip), %rsi     # 0x18480a
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
movl 0x3c(%rsp), %eax
addq $0x98, %rsp
retq
nopl (%rax)