// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/region_mapping.c
// Function: gt_region_mapping_get_description
int gt_region_mapping_get_description(GtRegionMapping *rm, GtStr *desc,
                                      GtStr *seqid, GtError *err)
{
  int had_err = 0;
  gt_error_check(err);
  gt_assert(rm && desc && seqid);
  if (rm->userawseq) {
    gt_str_append_cstr(desc, "<rawseq>");
    return 0;
  }
  had_err = update_seq_col_if_necessary(rm, seqid, err);
  if (!had_err) {
    if (gt_md5_seqid_has_prefix(gt_str_get(seqid))) {
      had_err = gt_seq_col_md5_to_description(rm->seq_col, desc, seqid,
                                              err);
    } else if (rm->usedesc) {
      GtUword filenum, seqnum;
      gt_assert(rm->seqid2seqnum_mapping);
      had_err = gt_seqid2seqnum_mapping_map(rm->seqid2seqnum_mapping,
                                            gt_str_get(seqid), NULL, &seqnum,
                                            &filenum, NULL, err);
      if (!had_err) {
        char *cdesc;
        cdesc = gt_seq_col_get_description(rm->seq_col, filenum, seqnum);
        gt_assert(cdesc);
        gt_str_append_cstr(desc, cdesc);
        gt_free(cdesc);
      }
    } else if (rm->useseqno) {
      GtUword seqno = GT_UNDEF_UWORD;
      gt_assert(rm->encseq);
      if (1 != sscanf(gt_str_get(seqid), "seq"GT_WU"", &seqno)) {
        gt_error_set(err, "seqid '%s' does not have the form 'seqX' "
                          "where X is a sequence number in the encoded "
                          "sequence", gt_str_get(seqid));
        had_err = -1;
      }
      gt_assert(had_err || seqno != GT_UNDEF_UWORD);
      if (!had_err && seqno >= gt_encseq_num_of_sequences(rm->encseq)) {
          gt_error_set(err, "trying to access sequence "GT_WU", but encoded"
                            "sequence contains only "GT_WU" sequences",
                            seqno, gt_encseq_num_of_sequences(rm->encseq));
          had_err = -1;
      }
      if (!had_err) {
        GtUword desclen;
        const char *edesc;
        edesc = gt_encseq_description(rm->encseq, &desclen, seqno);
        gt_str_append_cstr_nt(desc, edesc, desclen);
      }
    } else if (rm->matchdesc) {
      had_err = gt_seq_col_grep_desc_description(rm->seq_col, desc,
                                                 seqid, err);
    } else if (rm->mapping) {
      char *cdesc;
      cdesc = gt_seq_col_get_description(rm->seq_col, 0, 0);
      gt_assert(cdesc);
      gt_str_append_cstr(desc, cdesc);
      gt_free(cdesc);
    } else {
      gt_assert(!rm->usedesc && !rm->matchdesc);
      if (!had_err) {
        gt_error_set(err, "no mapping rule given and no MD5 tags "
                          "present in the query seqid \"%s\" -- no mapping can "
                          "be defined", gt_str_get(seqid));
        had_err = -1;
      }
    }
  }
  return had_err;
}

// Assembly:
subq $0xa8, %rsp
movq %rdi, 0x98(%rsp)
movq %rsi, 0x90(%rsp)
movq %rdx, 0x88(%rsp)
movq %rcx, 0x80(%rsp)
movl $0x0, 0x7c(%rsp)
cmpq $0x0, 0x80(%rsp)
je 0xea245
movq 0x80(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0xea20d
jmp 0xea245
movq 0xc9dc4(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x73e48(%rip), %rsi     # 0x15e066
leaq 0x74423(%rip), %rdx     # 0x15e648
leaq 0x8ff71(%rip), %rcx     # 0x17a19d
leaq 0x8fad3(%rip), %r8      # 0x179d06
movl $0x1a3, %r9d            # imm = 0x1A3
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xea247
jmp 0xea249
cmpq $0x0, 0x98(%rsp)
je 0xea26a
cmpq $0x0, 0x90(%rsp)
je 0xea26a
cmpq $0x0, 0x88(%rsp)
jne 0xea2a2
movq 0xc9d67(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x73deb(%rip), %rsi     # 0x15e066
leaq 0x8ff3d(%rip), %rdx     # 0x17a1bf
leaq 0x8ff14(%rip), %rcx     # 0x17a19d
leaq 0x8fa76(%rip), %r8      # 0x179d06
movl $0x1a4, %r9d            # imm = 0x1A4
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xea2a4
movq 0x98(%rsp), %rax
testb $0x1, 0x1b(%rax)
je 0xea2d6
movq 0x90(%rsp), %rdi
leaq 0x8ff12(%rip), %rsi     # 0x17a1d3
callq 0x18fb0
movl $0x0, 0xa4(%rsp)
jmp 0xea7f2
movq 0x98(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x80(%rsp), %rdx
callq 0xe98f0
movl %eax, 0x7c(%rsp)
cmpl $0x0, 0x7c(%rsp)
jne 0xea7e7
movq 0x88(%rsp), %rdi
callq 0x19940
movq %rax, %rdi
callq 0x8dca0
testb $0x1, %al
jne 0xea31d
jmp 0xea34f
movq 0x98(%rsp), %rax
movq 0x38(%rax), %rdi
movq 0x90(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x80(%rsp), %rcx
callq 0x14a7f0
movl %eax, 0x7c(%rsp)
jmp 0xea7e5
movq 0x98(%rsp), %rax
testb $0x1, 0x19(%rax)
je 0xea493
jmp 0xea363
movq 0x98(%rsp), %rax
cmpq $0x0, 0x40(%rax)
jne 0xea3aa
movq 0xc9c5f(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x73ce3(%rip), %rsi     # 0x15e066
leaq 0x8fad4(%rip), %rdx     # 0x179e5e
leaq 0x8fe0c(%rip), %rcx     # 0x17a19d
leaq 0x8f96e(%rip), %r8      # 0x179d06
movl $0x1b0, %r9d            # imm = 0x1B0
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xea3ac
movq 0x98(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x88(%rsp), %rdi
callq 0x19940
movq 0x38(%rsp), %rdi
movq %rax, %rsi
movq 0x80(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, %r9d
leaq 0x68(%rsp), %rcx
leaq 0x70(%rsp), %r8
movq %r9, %rdx
movq %rax, (%rsp)
callq 0xeb6c0
movl %eax, 0x7c(%rsp)
cmpl $0x0, 0x7c(%rsp)
jne 0xea48e
movq 0x98(%rsp), %rax
movq 0x38(%rax), %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x14abc0
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
jne 0xea464
movq 0xc9ba5(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x73c29(%rip), %rsi     # 0x15e066
leaq 0x8fd98(%rip), %rdx     # 0x17a1dc
leaq 0x8fd52(%rip), %rcx     # 0x17a19d
leaq 0x8f8b4(%rip), %r8      # 0x179d06
movl $0x1b7, %r9d            # imm = 0x1B7
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xea466
movq 0x90(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x18fb0
movq 0x60(%rsp), %rdi
leaq 0x8f882(%rip), %rsi     # 0x179d06
movl $0x1b9, %edx            # imm = 0x1B9
callq 0xdab0
jmp 0xea7e3
movq 0x98(%rsp), %rax
testb $0x1, 0x1c(%rax)
je 0xea665
movq $-0x1, 0x58(%rsp)
movq 0x98(%rsp), %rax
cmpq $0x0, 0x30(%rax)
jne 0xea4f5
movq 0xc9b14(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x73b98(%rip), %rsi     # 0x15e066
leaq 0x8fa75(%rip), %rdx     # 0x179f4a
leaq 0x8fcc1(%rip), %rcx     # 0x17a19d
leaq 0x8f823(%rip), %r8      # 0x179d06
movl $0x1bd, %r9d            # imm = 0x1BD
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xea4f7
movq 0x88(%rsp), %rdi
callq 0x19940
movq %rax, %rdi
leaq 0x8fa47(%rip), %rsi     # 0x179f55
leaq 0x58(%rsp), %rdx
movb $0x0, %al
callq 0xb660
movl %eax, %ecx
movl $0x1, %eax
cmpl %ecx, %eax
je 0xea55d
movq 0x80(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x88(%rsp), %rdi
callq 0x19940
movq 0x30(%rsp), %rdi
movq %rax, %rdx
leaq 0x8fa0e(%rip), %rsi     # 0x179f5c
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x7c(%rsp) # imm = 0xFFFFFFFF
jmp 0xea55f
cmpl $0x0, 0x7c(%rsp)
jne 0xea5a6
cmpq $-0x1, 0x58(%rsp)
jne 0xea5a6
movq 0xc9a63(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x73ae7(%rip), %rsi     # 0x15e066
leaq 0x8fa34(%rip), %rdx     # 0x179fba
leaq 0x8fc10(%rip), %rcx     # 0x17a19d
leaq 0x8f772(%rip), %r8      # 0x179d06
movl $0x1c4, %r9d            # imm = 0x1C4
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xea5a8
cmpl $0x0, 0x7c(%rsp)
jne 0xea622
movq 0x58(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x98(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x113f30
movq %rax, %rcx
movq 0x28(%rsp), %rax
cmpq %rcx, %rax
jb 0xea622
movq 0x80(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x98(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x113f30
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rdx
movq %rax, %rcx
leaq 0x8fbcf(%rip), %rsi     # 0x17a1e2
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x7c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x7c(%rsp)
jne 0xea660
movq 0x98(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0x58(%rsp), %rdx
leaq 0x50(%rsp), %rsi
callq 0x11bd20
movq %rax, 0x48(%rsp)
movq 0x90(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
callq 0x19290
jmp 0xea7e1
movq 0x98(%rsp), %rax
testb $0x1, 0x18(%rax)
je 0xea6a5
movq 0x98(%rsp), %rax
movq 0x38(%rax), %rdi
movq 0x90(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq 0x80(%rsp), %rcx
callq 0x14a5c0
movl %eax, 0x7c(%rsp)
jmp 0xea7df
movq 0x98(%rsp), %rax
cmpq $0x0, 0x20(%rax)
je 0xea744
movq 0x98(%rsp), %rax
movq 0x38(%rax), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x14abc0
movq %rax, 0x40(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0xea715
movq 0xc98f4(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x73978(%rip), %rsi     # 0x15e066
leaq 0x8fae7(%rip), %rdx     # 0x17a1dc
leaq 0x8faa1(%rip), %rcx     # 0x17a19d
leaq 0x8f603(%rip), %r8      # 0x179d06
movl $0x1d7, %r9d            # imm = 0x1D7
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xea717
movq 0x90(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x18fb0
movq 0x40(%rsp), %rdi
leaq 0x8f5d1(%rip), %rsi     # 0x179d06
movl $0x1d9, %edx            # imm = 0x1D9
callq 0xdab0
jmp 0xea7dd
jmp 0xea746
movq 0x98(%rsp), %rax
testb $0x1, 0x19(%rax)
jne 0xea762
movq 0x98(%rsp), %rax
testb $0x1, 0x18(%rax)
je 0xea79a
movq 0xc986f(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x738f3(%rip), %rsi     # 0x15e066
leaq 0x8f96f(%rip), %rdx     # 0x17a0e9
leaq 0x8fa1c(%rip), %rcx     # 0x17a19d
leaq 0x8f57e(%rip), %r8      # 0x179d06
movl $0x1db, %r9d            # imm = 0x1DB
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xea79c
cmpl $0x0, 0x7c(%rsp)
jne 0xea7db
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x88(%rsp), %rdi
callq 0x19940
movq 0x10(%rsp), %rdi
movq %rax, %rdx
leaq 0x8f93c(%rip), %rsi     # 0x17a108
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x7c(%rsp) # imm = 0xFFFFFFFF
jmp 0xea7dd
jmp 0xea7df
jmp 0xea7e1
jmp 0xea7e3
jmp 0xea7e5
jmp 0xea7e7
movl 0x7c(%rsp), %eax
movl %eax, 0xa4(%rsp)
movl 0xa4(%rsp), %eax
addq $0xa8, %rsp
retq
nopw %cs:(%rax,%rax)