// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/seqid2seqnum_mapping.c
// Function: handle_description
static int handle_description(GtSeqid2SeqnumMapping *mapping, const char *desc,
                              GtUword seqnum, GtUword filenum,
                              GtError *err)
{
  GtRange descrange;
  GtUword j;
  int had_err = 0;
  SeqidInfo *seqid_info;
  if (gt_parse_description_range(desc, &descrange)) {
    /* no offset could be parsed -> store description as sequence id */
    descrange.start = 1;
    descrange.end = GT_UNDEF_UWORD;
    if ((seqid_info = gt_hashmap_get(mapping->map, desc))) {
      had_err = seqid_info_add(seqid_info, seqnum, filenum,
                               &descrange, mapping->filename, desc, err);
      gt_assert(had_err); /* adding a seqid without range should fail */
    }
    else {
      seqid_info = seqid_info_new(seqnum, filenum, &descrange);
      gt_hashmap_add(mapping->map, gt_cstr_dup(desc), seqid_info);
    }
  } else {
    char *dup;
    /* offset could be parsed -> store description up to ':' as sequence id */
    j = 0;
    while (desc[j] != ':')
      j++;
    dup = gt_malloc((j + 1) * sizeof *dup);
    strncpy(dup, desc, j);
    dup[j] = '\0';
    if ((seqid_info = gt_hashmap_get(mapping->map, dup))) {
      had_err = seqid_info_add(seqid_info, seqnum, filenum, &descrange,
                               mapping->filename, dup, err);
      gt_free(dup);
    }
    else {
      seqid_info = seqid_info_new(seqnum, filenum, &descrange);
      gt_hashmap_add(mapping->map, dup, seqid_info);
    }
  }
  return had_err;
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movl $0x0, 0x24(%rsp)
movq 0x58(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x162c0
cmpl $0x0, %eax
je 0xebc8b
movq $0x1, 0x30(%rsp)
movq $-0x1, 0x38(%rsp)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x58(%rsp), %rsi
callq 0x86470
movq %rax, 0x18(%rsp)
cmpq $0x0, %rax
je 0xebc43
movq 0x18(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x60(%rsp), %rax
movq (%rax), %r8
movq 0x58(%rsp), %r9
movq 0x40(%rsp), %rax
leaq 0x30(%rsp), %rcx
movq %rax, (%rsp)
callq 0xebdb0
movl %eax, 0x24(%rsp)
cmpl $0x0, 0x24(%rsp)
jne 0xebc3f
movq 0xc83ca(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x7244e(%rip), %rsi     # 0x15e066
leaq 0x7b3a0(%rip), %rdx     # 0x166fbf
leaq 0x8e82a(%rip), %rcx     # 0x17a450
leaq 0x8e719(%rip), %r8      # 0x17a346
movl $0x81, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xebc41
jmp 0xebc86
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0xebf10
movq %rax, 0x18(%rsp)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rdi
callq 0x7c400
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x18(%rsp), %rdx
callq 0x86510
jmp 0xebd98
movq $0x0, 0x28(%rsp)
movq 0x58(%rsp), %rax
movq 0x28(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x3a, %eax
je 0xebcb7
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0xebc94
movq 0x28(%rsp), %rdi
addq $0x1, %rdi
shlq $0x0, %rdi
leaq 0x8e67b(%rip), %rsi     # 0x17a346
movl $0x8d, %edx
callq 0xd2e0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0xb2b0
movq 0x10(%rsp), %rax
movq 0x28(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rsp), %rsi
callq 0x86470
movq %rax, 0x18(%rsp)
cmpq $0x0, %rax
je 0xebd65
movq 0x18(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x60(%rsp), %rax
movq (%rax), %r8
movq 0x10(%rsp), %r9
movq 0x40(%rsp), %rax
leaq 0x30(%rsp), %rcx
movq %rax, (%rsp)
callq 0xebdb0
movl %eax, 0x24(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x8e5ed(%rip), %rsi     # 0x17a346
movl $0x93, %edx
callq 0xdab0
jmp 0xebd96
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0xebf10
movq %rax, 0x18(%rsp)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x86510
jmp 0xebd98
movl 0x24(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)