// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/reads2twobit.c
// Function: gt_reads2twobit_collect_fileinfo
static void gt_reads2twobit_collect_fileinfo(const GtReads2Twobit *r2t,
    GtFilelengthvalues **filelengthtab, GtStrArray **filenametab)
{
  GtUword i, noflibraries;
  noflibraries = gt_array_size(r2t->collection);
  *filenametab = gt_str_array_new();
  if (filelengthtab != NULL)
  {
    *filelengthtab = gt_malloc(sizeof (**filelengthtab) * noflibraries);
  }
  for (i = 0; i < noflibraries; i++)
  {
    GtStr *libname;
    GtReadsLibraryInfo *rli;
    rli = gt_array_get(r2t->collection, i);
    if (filelengthtab != NULL)
    {
      (*filelengthtab)[i].effectivelength =
        (uint64_t)rli->total_seqlength - 1UL;
      if (r2t->seqlen_eqlen == 0 && i == noflibraries - 1UL)
        (*filelengthtab)[i].effectivelength--;
      (*filelengthtab)[i].length = (uint64_t)rli->total_filelength;
    }
    libname = gt_str_clone(rli->filename1);
    if (rli->filename2 != NULL)
    {
      gt_str_append_char(libname, GT_READS2TWOBIT_LIBSPECSEP);
      gt_str_append_str(libname, rli->filename2);
    }
    if (rli->paired)
    {
      gt_str_append_char(libname, GT_READS2TWOBIT_LIBSPECSEP);
      gt_str_append_uword(libname, rli->insertlength);
      if (rli->stdev > 0)
      {
        gt_str_append_char(libname, GT_READS2TWOBIT_INSERTSEP);
        gt_str_append_uword(libname, rli->stdev);
      }
    }
    gt_str_array_add(*filenametab, libname);
    gt_str_delete(libname);
  }
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x81370
movq %rax, 0x10(%rsp)
callq 0x11f5c0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
cmpq $0x0, 0x28(%rsp)
je 0x2a87c3
movq 0x10(%rsp), %rdi
shlq $0x4, %rdi
leaq 0x2dc802(%rip), %rsi    # 0x584fb0
movl $0x5be, %edx            # imm = 0x5BE
callq 0xe80f0
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, (%rax)
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jae 0x2a8946
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x18(%rsp), %rsi
callq 0x80b60
movq %rax, (%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x2a8881
movq (%rsp), %rax
movq 0x30(%rax), %rcx
subq $0x1, %rcx
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq 0x30(%rsp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x2a8862
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x2a8862
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq (%rsp), %rax
movq 0x28(%rax), %rcx
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11e280
movq %rax, 0x8(%rsp)
movq (%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x2a88bf
movq 0x8(%rsp), %rdi
movl $0x3a, %esi
callq 0x11da70
movq 0x8(%rsp), %rdi
movq (%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x11d750
movq (%rsp), %rax
testb $0x1, (%rax)
je 0x2a8917
movq 0x8(%rsp), %rdi
movl $0x3a, %esi
callq 0x11da70
movq 0x8(%rsp), %rdi
movq (%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x11d930
movq (%rsp), %rax
cmpq $0x0, 0x20(%rax)
jbe 0x2a8915
movq 0x8(%rsp), %rdi
movl $0x2c, %esi
callq 0x11da70
movq 0x8(%rsp), %rdi
movq (%rsp), %rax
movq 0x20(%rax), %rsi
callq 0x11d930
jmp 0x2a8917
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rsp), %rsi
callq 0x11f840
movq 0x8(%rsp), %rdi
callq 0x11f560
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x2a87cc
addq $0x38, %rsp
retq
nopl (%rax,%rax)