// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/seqid2seqnum_mapping.c
// Function: fill_mapping
static int fill_mapping(GtSeqid2SeqnumMapping *mapping, GtBioseq *bioseq,
                        GtSeqCol *seqcol, GT_UNUSED GtError *err)
{
  GtUword i, j, nof_sequences, nof_files;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(mapping && (bioseq || seqcol) && !(bioseq && seqcol));
  if (bioseq) {
    nof_files = 1;
  } else {
    gt_assert(seqcol);
    nof_files = gt_seq_col_num_of_files(seqcol);
  }
  for (j = 0; !had_err && j < nof_files; j++) {
    if (bioseq)
      nof_sequences = gt_bioseq_number_of_sequences(bioseq);
    else {
      gt_assert(seqcol);
      nof_sequences = gt_seq_col_num_of_seqs(seqcol, j);
    }
    for (i = 0; !had_err && i < nof_sequences; i++) {
      char *desc;
      if (bioseq)
        desc = gt_cstr_dup(gt_bioseq_get_description(bioseq, i));
      else
        desc = gt_seq_col_get_description(seqcol, j, i);
      had_err = handle_description(mapping, desc, i, j, err);
      gt_free(desc);
    }
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
testq %rcx, %rcx
je 0x8a731
movq %rbx, %rdi
callq 0xc103
testb %al, %al
jne 0x8aa33
cmpq $0x0, 0x8(%rsp)
je 0x8aa05
testq %r15, %r15
setne %al
testq %r14, %r14
setne %cl
xorb %al, %cl
je 0x8aa05
testq %r15, %r15
movq %r14, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
je 0x8a765
pushq $0x1
popq %rax
jmp 0x8a776
testq %r14, %r14
je 0x8aa64
movq %r14, %rdi
callq 0xbfde6
movq %rax, 0x10(%rsp)
movq $0x0, (%rsp)
leaq 0x38(%rsp), %rbp
xorl %r12d, %r12d
movq 0x8(%rsp), %rbx
movq %r15, 0x18(%rsp)
testl %r12d, %r12d
jne 0x8a98d
movq (%rsp), %rax
cmpq 0x10(%rsp), %rax
jae 0x8a98d
testq %r15, %r15
je 0x8a7bc
movq %r15, %rdi
callq 0x9dbb9
jmp 0x8a7d3
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8a9d7
movq (%rsp), %rsi
callq 0xbfe35
movq %rax, 0x30(%rsp)
xorl %r14d, %r14d
xorl %r12d, %r12d
testl %r12d, %r12d
jne 0x8a984
cmpq 0x30(%rsp), %r14
jae 0x8a984
testq %r15, %r15
je 0x8a80c
movq %r15, %rdi
movq %r14, %rsi
callq 0x9d478
movq %rax, %rdi
callq 0x4f8ae
jmp 0x8a81d
movq 0x20(%rsp), %rdi
movq (%rsp), %rsi
movq %r14, %rdx
callq 0xbff22
movq %rax, %r13
movq %rax, %rdi
movq %rbp, %rsi
callq 0x12087
testl %eax, %eax
je 0x8a87e
movq $0x1, 0x38(%rsp)
orq $-0x1, 0x40(%rsp)
movq 0x8(%rbx), %rdi
movq %r13, %rsi
callq 0x55ef6
testq %rax, %rax
je 0x8a904
movq %rax, %rdi
movq %r14, %rsi
movq (%rsp), %rdx
movq %rbp, %rcx
movq %r13, %r8
movq 0x28(%rsp), %r9
callq 0x8ae61
pushq $-0x1
popq %r12
testl %eax, %eax
jne 0x8a968
jmp 0x8a99f
xorl %r12d, %r12d
cmpb $0x3a, (%r13,%r12)
leaq 0x1(%r12), %r12
jne 0x8a881
movq %r12, %rdi
leaq 0x5a937(%rip), %rsi     # 0xe51cf
movl $0x8d, %edx
callq 0xccb0
movq %rax, %rbx
leaq -0x1(%r12), %rdx
movq %rax, %rdi
movq %r13, %rsi
callq 0xb2d0
movb $0x0, -0x1(%rbx,%r12)
movq 0x8(%rsp), %r15
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x55ef6
testq %rax, %rax
je 0x8a93f
movq %rax, %rdi
movq %r14, %rsi
movq (%rsp), %rdx
movq %rbp, %rcx
movq %rbx, %r8
movq 0x28(%rsp), %r9
callq 0x8ae61
movl %eax, %r12d
movq %rbx, %rdi
leaq 0x5a8d7(%rip), %rsi     # 0xe51cf
movl $0x93, %edx
callq 0xd249
jmp 0x8a960
movq %r14, %rdi
movq (%rsp), %rsi
movq %rbp, %rdx
callq 0x8af5c
movq %rax, %rbx
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r12
movq %r13, %rdi
callq 0x4f8ae
movq %r12, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq 0x8(%rsp), %rbx
callq 0x55f31
xorl %r12d, %r12d
jmp 0x8a968
movq %r14, %rdi
movq (%rsp), %rsi
movq %rbp, %rdx
callq 0x8af5c
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x55f31
xorl %r12d, %r12d
movq %r15, %rbx
movq 0x18(%rsp), %r15
movq %r13, %rdi
leaq 0x5a85d(%rip), %rsi     # 0xe51cf
movl $0xb8, %edx
callq 0xd249
incq %r14
jmp 0x8a7de
incq (%rsp)
jmp 0x8a795
movl %r12d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xa3612(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x3f6b6(%rip), %rsi     # 0xca066
leaq 0x3fc5d(%rip), %rdx     # 0xca614
leaq 0x5a91b(%rip), %rcx     # 0xe52d9
leaq 0x5a80a(%rip), %r8      # 0xe51cf
movl $0x81, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
movq 0xa35da(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x3f67e(%rip), %rsi     # 0xca066
leaq 0x5a820(%rip), %rdx     # 0xe520f
leaq 0x5a8a1(%rip), %rcx     # 0xe5297
leaq 0x5a7d2(%rip), %r8      # 0xe51cf
movl $0xae, %r9d
jmp 0x8a9cb
movq 0xa35ac(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x3f650(%rip), %rsi     # 0xca066
leaq 0x5a887(%rip), %rdx     # 0xe52a4
leaq 0x5a873(%rip), %rcx     # 0xe5297
leaq 0x5a7a4(%rip), %r8      # 0xe51cf
movl $0xa3, %r9d
jmp 0x8a9cb
movq 0xa357e(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x3f622(%rip), %rsi     # 0xca066
leaq 0x3fc0e(%rip), %rdx     # 0xca659
leaq 0x5a845(%rip), %rcx     # 0xe5297
leaq 0x5a776(%rip), %r8      # 0xe51cf
movl $0xa2, %r9d
jmp 0x8a9cb
movq 0xa354d(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x3f5f1(%rip), %rsi     # 0xca066
leaq 0x5a793(%rip), %rdx     # 0xe520f
leaq 0x5a814(%rip), %rcx     # 0xe5297
leaq 0x5a745(%rip), %r8      # 0xe51cf
movl $0xa7, %r9d
jmp 0x8a9cb