// File: /workspace/github_c_makefile_star2_O1/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 0xa9b2c
movq %rbx, %rdi
callq 0x3566a
testb %al, %al
jne 0xa9e1e
cmpq $0x0, 0x8(%rsp)
je 0xa9e19
testq %r15, %r15
setne %al
testq %r14, %r14
setne %cl
xorb %al, %cl
je 0xa9e19
movl $0x1, %eax
testq %r15, %r15
jne 0xa9b67
testq %r14, %r14
je 0xa9e23
movq %r14, %rdi
callq 0xd7bcb
testq %rax, %rax
je 0xa9dfa
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
xorl %r12d, %r12d
leaq 0x28(%rsp), %r14
movq $0x0, (%rsp)
movq 0x8(%rsp), %rbx
movq %rax, 0x38(%rsp)
movq %r15, 0x10(%rsp)
testq %r15, %r15
je 0xa9ba8
movq %r15, %rdi
callq 0xbb2b2
jmp 0xa9bbf
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xa9e14
movq (%rsp), %rsi
callq 0xd7be7
testl %r12d, %r12d
sete %dl
testq %rax, %rax
setne %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0xa9ddd
xorl %r13d, %r13d
movq %rax, 0x40(%rsp)
testq %r15, %r15
je 0xa9bf8
movq %r15, %rdi
movq %r13, %rsi
callq 0xbaea2
movq %rax, %rdi
callq 0x722dc
jmp 0xa9c09
movq 0x18(%rsp), %rdi
movq (%rsp), %rsi
movq %r13, %rdx
callq 0xd7c3b
movq %rax, %rbp
movq %rax, %rdi
movq %r14, %rsi
callq 0x3a4ce
testl %eax, %eax
je 0xa9c6f
movq $0x1, 0x28(%rsp)
movq $-0x1, 0x30(%rsp)
movq 0x8(%rbx), %rdi
movq %rbp, %rsi
callq 0x77109
testq %rax, %rax
je 0xa9cfc
movq %rax, %rdi
movq %r13, %rsi
movq (%rsp), %rdx
movq %r14, %rcx
movq %rbp, %r8
movq 0x20(%rsp), %r9
callq 0xaa112
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0xa9db3
jmp 0xa9e0f
xorl %r12d, %r12d
cmpb $0x3a, (%rbp,%r12)
leaq 0x1(%r12), %r12
jne 0xa9c72
movq %r12, %rdi
leaq 0x522c6(%rip), %rsi     # 0xfbf4f
movl $0x8d, %edx
callq 0x35ee2
movq %rax, %rbx
leaq -0x1(%r12), %rdx
movq %rax, %rdi
movq %rbp, %rsi
callq 0xb2d0
movb $0x0, -0x1(%rbx,%r12)
movq 0x8(%rsp), %r15
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x77109
testq %rax, %rax
je 0xa9d5f
movq %rax, %rdi
movq %r13, %rsi
movq (%rsp), %rdx
movq %r14, %rcx
movq %rbx, %r8
movq 0x20(%rsp), %r9
callq 0xaa112
movl %eax, %r12d
movq %rbx, %rdi
leaq 0x52262(%rip), %rsi     # 0xfbf4f
movl $0x93, %edx
callq 0x362a0
jmp 0xa9dab
movl $0x20, %edi
callq 0x6e93c
movq %rax, %rbx
movq %r13, 0x48(%rsp)
movq (%rsp), %rax
movq %rax, 0x50(%rsp)
movups 0x28(%rsp), %xmm0
leaq 0x58(%rsp), %rax
movups %xmm0, (%rax)
movl $0x20, %edx
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
callq 0x6ec0e
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r12
movq %rbp, %rdi
callq 0x722dc
movq %r12, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq 0x8(%rsp), %rbx
callq 0x77144
xorl %r12d, %r12d
jmp 0xa9db3
movl $0x20, %edi
callq 0x6e93c
movq %rax, %r12
movq %r13, 0x48(%rsp)
movq (%rsp), %rax
movq %rax, 0x50(%rsp)
movups 0x28(%rsp), %xmm0
leaq 0x58(%rsp), %rax
movups %xmm0, (%rax)
movl $0x20, %edx
movq %r12, %rdi
leaq 0x48(%rsp), %rsi
callq 0x6ec0e
movq 0x8(%r15), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x77144
xorl %r12d, %r12d
movq %r15, %rbx
movq 0x10(%rsp), %r15
movq %rbp, %rdi
leaq 0x52192(%rip), %rsi     # 0xfbf4f
movl $0xb8, %edx
callq 0x362a0
testl %r12d, %r12d
jne 0xa9ddd
incq %r13
movq 0x40(%rsp), %rax
cmpq %rax, %r13
jb 0xa9bde
testl %r12d, %r12d
jne 0xa9dfd
movq (%rsp), %rcx
incq %rcx
movq %rcx, (%rsp)
cmpq 0x38(%rsp), %rcx
jb 0xa9b99
jmp 0xa9dfd
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2463c
callq 0x24603
callq 0x24675
callq 0x24591
callq 0x245ca