// File: /workspace/github_c_makefile_star2_O3/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 $0x68, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
testq %rcx, %rcx
je 0xa9078
movq %rbx, %rdi
callq 0x34fea
testb %al, %al
jne 0xa9363
cmpq $0x0, 0x8(%rsp)
je 0xa935e
testq %r15, %r15
setne %al
testq %r14, %r14
setne %cl
xorb %al, %cl
je 0xa935e
movl $0x1, %eax
movq %rax, 0x10(%rsp)
testq %r15, %r15
jne 0xa90c6
testq %r14, %r14
je 0xa9368
movq %r14, %rdi
callq 0xd82d3
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0xa933f
movq %r14, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq $0x0, (%rsp)
leaq 0x30(%rsp), %rbp
movq 0x8(%rsp), %rbx
movq %r15, 0x18(%rsp)
testq %r15, %r15
je 0xa90f6
movq %r15, %rdi
callq 0xbc370
jmp 0xa910d
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xa9359
movq (%rsp), %rsi
callq 0xd82ef
testq %rax, %rax
je 0xa931f
xorl %r14d, %r14d
movq %rax, 0x40(%rsp)
testq %r15, %r15
je 0xa9138
movq %r15, %rdi
movq %r14, %rsi
callq 0xbbf5f
movq %rax, %rdi
callq 0x728c0
jmp 0xa9149
movq 0x20(%rsp), %rdi
movq (%rsp), %rsi
movq %r14, %rdx
callq 0xd8343
movq %rax, %r13
movq %rax, %rdi
movq %rbp, %rsi
callq 0x39c62
testl %eax, %eax
je 0xa91af
movq $0x1, 0x30(%rsp)
movq $-0x1, 0x38(%rsp)
movq 0x8(%rbx), %rdi
movq %r13, %rsi
callq 0x775ed
testq %rax, %rax
je 0xa923c
movq %rax, %rdi
movq %r14, %rsi
movq (%rsp), %rdx
movq %rbp, %rcx
movq %r13, %r8
movq 0x28(%rsp), %r9
callq 0xa9644
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0xa92f3
jmp 0xa9354
xorl %r12d, %r12d
cmpb $0x3a, (%r13,%r12)
leaq 0x1(%r12), %r12
jne 0xa91b2
movq %r12, %rdi
leaq 0x52cf6(%rip), %rsi     # 0xfbebf
movl $0x8d, %edx
callq 0x35862
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 0x775ed
testq %rax, %rax
je 0xa929f
movq %rax, %rdi
movq %r14, %rsi
movq (%rsp), %rdx
movq %rbp, %rcx
movq %rbx, %r8
movq 0x28(%rsp), %r9
callq 0xa9644
movl %eax, %r12d
movq %rbx, %rdi
leaq 0x52c92(%rip), %rsi     # 0xfbebf
movl $0x93, %edx
callq 0x35c27
jmp 0xa92eb
movl $0x20, %edi
callq 0x6ef7c
movq %rax, %rbx
movq %r14, 0x48(%rsp)
movq (%rsp), %rax
movq %rax, 0x50(%rsp)
movups 0x30(%rsp), %xmm0
leaq 0x58(%rsp), %rax
movups %xmm0, (%rax)
movl $0x20, %edx
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
callq 0x6f240
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r12
movq %r13, %rdi
callq 0x728c0
movq %r12, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq 0x8(%rsp), %rbx
callq 0x77628
xorl %r12d, %r12d
jmp 0xa92f3
movl $0x20, %edi
callq 0x6ef7c
movq %rax, %r12
movq %r14, 0x48(%rsp)
movq (%rsp), %rax
movq %rax, 0x50(%rsp)
movups 0x30(%rsp), %xmm0
leaq 0x58(%rsp), %rax
movups %xmm0, (%rax)
movl $0x20, %edx
movq %r12, %rdi
leaq 0x48(%rsp), %rsi
callq 0x6f240
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x77628
xorl %r12d, %r12d
movq %r15, %rbx
movq 0x18(%rsp), %r15
movq %r13, %rdi
leaq 0x52bc2(%rip), %rsi     # 0xfbebf
movl $0xb8, %edx
callq 0x35c27
testl %r12d, %r12d
jne 0xa9322
incq %r14
movq 0x40(%rsp), %rax
cmpq %rax, %r14
jb 0xa911e
jmp 0xa9322
xorl %r12d, %r12d
testl %r12d, %r12d
jne 0xa9342
movq (%rsp), %rcx
incq %rcx
movq %rcx, (%rsp)
cmpq 0x10(%rsp), %rcx
jb 0xa90e7
jmp 0xa9342
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x24564
callq 0x2452b
callq 0x2459d
callq 0x244b9
callq 0x244f2