// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/reads_libraries_table.c
// Function: gt_reads_libraries_table_load
GtReadsLibrariesTable* gt_reads_libraries_table_load(FILE *rlt_fp,
                                                     GtError *err)
{
  GtReadsLibrariesTable *rlt;
  size_t count;
  gt_assert(rlt_fp != NULL);
  gt_error_check(err);
  rlt = gt_malloc(sizeof (*rlt));
  count = fread(&(rlt->noflibraries), sizeof (rlt->noflibraries), (size_t)1,
      rlt_fp);
  if (count != (size_t)1 || rlt->noflibraries == 0)
  {
    gt_error_set(err, "libraries table: error by reading number of libraries");
    gt_free(rlt);
    return NULL;
  }
  else
  {
    rlt->library = gt_malloc(sizeof (*(rlt->library)) * rlt->noflibraries);
    count = fread(rlt->library, sizeof (*(rlt->library)),
        (size_t)rlt->noflibraries, rlt_fp);
    if (count != (size_t)rlt->noflibraries)
    {
      gt_error_set(err, "library table: "GT_WU" libraries expected, "GT_WU
                   " found", rlt->noflibraries, (GtUword)count);
      gt_free(rlt->library);
      gt_free(rlt);
      return NULL;
    }
  }
  return rlt;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x2a92fe
movq 0x392cd3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x26cd3c(%rip), %rsi    # 0x516013
leaq 0x2d7263(%rip), %rdx    # 0x580541
leaq 0x2dcd75(%rip), %rcx    # 0x58605a
leaq 0x2dcbf2(%rip), %r8     # 0x585ede
movl $0x81, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2a9300
jmp 0x2a9302
cmpq $0x0, 0x10(%rsp)
je 0x2a9352
movq 0x10(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x2a931a
jmp 0x2a9352
movq 0x392c7f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x26cce8(%rip), %rsi    # 0x516013
leaq 0x26ce8d(%rip), %rdx    # 0x5161bf
leaq 0x2dcd21(%rip), %rcx    # 0x58605a
leaq 0x2dcb9e(%rip), %r8     # 0x585ede
movl $0x82, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2a9354
movl $0x20, %edi
leaq 0x2dcb7e(%rip), %rsi    # 0x585ede
movl $0x83, %edx
callq 0xe80f0
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rcx
movl $0x8, %esi
movl $0x1, %edx
callq 0x19a70
movq %rax, (%rsp)
cmpq $0x1, (%rsp)
jne 0x2a939e
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x2a93d5
movq 0x10(%rsp), %rdi
leaq 0x2dccce(%rip), %rsi    # 0x586078
movb $0x0, %al
callq 0xd88c0
movq 0x8(%rsp), %rdi
leaq 0x2dcb21(%rip), %rsi    # 0x585ede
movl $0x89, %edx
callq 0xe88c0
movq $0x0, 0x20(%rsp)
jmp 0x2a9493
movq 0x8(%rsp), %rax
imulq $0x18, (%rax), %rdi
leaq 0x2dcaf9(%rip), %rsi    # 0x585ede
movl $0x8e, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rdx
movq 0x18(%rsp), %rcx
movl $0x18, %esi
callq 0x19a70
movq %rax, (%rsp)
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
cmpq (%rcx), %rax
je 0x2a9487
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rdx
movq (%rsp), %rcx
leaq 0x2dcc69(%rip), %rsi    # 0x5860ae
movb $0x0, %al
callq 0xd88c0
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0x2dca82(%rip), %rsi    # 0x585ede
movl $0x95, %edx
callq 0xe88c0
movq 0x8(%rsp), %rdi
leaq 0x2dca6c(%rip), %rsi    # 0x585ede
movl $0x96, %edx
callq 0xe88c0
movq $0x0, 0x20(%rsp)
jmp 0x2a9493
jmp 0x2a9489
movq 0x8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
nopl (%rax)