// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/rdj-cntlist.c
// Function: gt_cntlist_parse
int gt_cntlist_parse(const char *filename, bool alloc_cntlist,
    GtBitsequence **cntlist, GtUword *nofreads, GtError *err)
{
  int c, retval = 0;
  FILE *infp;

  gt_log_log("parse contained reads list file: %s", filename);
  infp = gt_fa_fopen(filename, "rb", err);

  if (infp == NULL)
    return -1;

  c = gt_xfgetc(infp);
  switch (c)
  {
    case EOF:
      gt_error_set(err, "%s: unexpected end of file", filename);
      retval = 1;
      break;
    case GT_CNTLIST_BIN_HEADER:
      gt_log_log("contained reads list format: BIN");
      retval = gt_cntlist_parse_bin(infp, alloc_cntlist, cntlist, nofreads,
          err);
      break;
    case GT_CNTLIST_BIT_HEADER:
      gt_log_log("contained reads list format: BIT");
      retval = gt_cntlist_parse_bit(infp, alloc_cntlist, cntlist, nofreads,
          err);
      break;
    case GT_CNTLIST_ASCII_HEADER:
      gt_xungetc(c, infp);
      gt_log_log("contained reads list format: ASCII");
      retval = gt_cntlist_parse_ascii(infp, alloc_cntlist, cntlist, nofreads,
          err);
      break;
    default:
      gt_error_set(err, "%s: unrecognized format", filename);
      retval = 1;
      break;
  }
  gt_fa_fclose(infp);

  return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r13
leaq 0x1daa72(%rip), %rdi    # 0x34cde9
movq %r13, %rsi
xorl %eax, %eax
callq 0x92a82
leaq 0x1d3715(%rip), %rsi    # 0x345a9d
leaq 0x1daa32(%rip), %rdx    # 0x34cdc1
movq %r13, %rdi
movl $0xd9, %ecx
movq %r14, %r8
callq 0x8a156
testq %rax, %rax
je 0x1723d6
movq %rax, %rbx
movq %rax, %rdi
callq 0xb2e44
cmpl $0x5b, %eax
je 0x1724d3
testl %eax, %eax
je 0x1723df
cmpl $0x1, %eax
je 0x17240e
cmpl $-0x1, %eax
jne 0x1725cb
leaq 0x1daa3c(%rip), %rsi    # 0x34ce0d
jmp 0x1725d2
pushq $-0x1
popq %r13
jmp 0x1726e7
leaq 0x1daa63(%rip), %rdi    # 0x34ce49
xorl %eax, %eax
callq 0x92a82
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1728f8
pushq $-0x1
popq %rcx
testl %eax, %eax
je 0x1725e6
movl %ecx, %r13d
jmp 0x1726df
leaq 0x1daa13(%rip), %rdi    # 0x34ce28
xorl %eax, %eax
callq 0x92a82
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1728f8
testl %eax, %eax
jne 0x1726db
testq %r15, %r15
je 0x1727ad
movq %r14, 0x10(%rsp)
testb %bpl, %bpl
je 0x17248a
pushq $0x8
popq %rax
movq (%r12), %rcx
leaq -0x1(%rcx), %rdx
shrq $0x6, %rdx
cmpq $0x40, %rcx
leaq 0x8(,%rdx,8), %r12
cmovbq %rax, %r12
leaq 0x1da956(%rip), %rdx    # 0x34cdc1
xorl %edi, %edi
movq %r12, %rsi
movl $0xa0, %ecx
callq 0x93472
movq %rax, (%r15)
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x17380
movabsq $-0x8000000000000000, %r14 # imm = 0x8000000000000000
leaq 0x8(%rsp), %r12
pushq $0x8
popq %r13
pushq $0x1
popq %rbp
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x17ad0
cmpq $0x1, %rax
jne 0x1726a3
movq 0x8(%rsp), %rcx
movq %r14, %rax
shrq %cl, %rax
movq (%r15), %rdx
shrq $0x6, %rcx
orq %rax, (%rdx,%rcx,8)
jmp 0x1724a0
pushq $0x5b
popq %rdi
movq %rbx, %rsi
callq 0xb3156
leaq 0x1da985(%rip), %rdi    # 0x34ce6a
xorl %eax, %eax
callq 0x92a82
testq %r15, %r15
je 0x17274e
testq %r12, %r12
je 0x17274e
testq %r14, %r14
je 0x172513
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x17277f
leaq 0x1daa9b(%rip), %rsi    # 0x34cfb5
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x17e10
cmpl $0x1, %eax
jne 0x1726ca
movq (%r12), %rax
testq %rax, %rax
je 0x1726ca
testb %bpl, %bpl
je 0x172584
leaq -0x1(%rax), %rcx
shrq $0x6, %rcx
cmpq $0x40, %rax
leaq 0x8(,%rcx,8), %rax
pushq $0x8
popq %r12
cmovaeq %rax, %r12
leaq 0x1da85c(%rip), %rdx    # 0x34cdc1
xorl %edi, %edi
movq %r12, %rsi
movl $0xc2, %ecx
callq 0x93472
movq %rax, (%r15)
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x17380
movabsq $-0x8000000000000000, %rbp # imm = 0x8000000000000000
leaq 0x17e4a6(%rip), %r12    # 0x2f0a3b
leaq 0x8(%rsp), %r13
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x17e10
cmpl $0x1, %eax
jne 0x1726c0
movq 0x8(%rsp), %rcx
movq %rbp, %rax
shrq %cl, %rax
movq (%r15), %rdx
shrq $0x6, %rcx
orq %rax, (%rdx,%rcx,8)
jmp 0x17259a
leaq 0x1da8bb(%rip), %rsi    # 0x34ce8d
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x89dbb
pushq $0x1
jmp 0x1726dd
movq %r14, 0x10(%rsp)
testq %r15, %r15
je 0x1727db
testb %bpl, %bpl
je 0x1726f9
movq (%r12), %rax
leaq -0x1(%rax), %rcx
shrq $0x6, %rcx
cmpq $0x40, %rax
leaq 0x8(,%rcx,8), %rbp
pushq $0x8
popq %rax
cmovbq %rax, %rbp
leaq 0x1da79e(%rip), %rdx    # 0x34cdc1
xorl %r13d, %r13d
pushq $0x78
popq %rcx
xorl %edi, %edi
movq %rbp, %rsi
callq 0x93472
movq %rax, (%r15)
movq %rax, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x17380
movq (%r15), %rdi
movq (%r12), %rax
leaq -0x1(%rax), %rdx
shrq $0x6, %rdx
incq %rdx
cmpq $0x40, %rax
pushq $0x1
popq %r14
cmovbq %r14, %rdx
pushq $0x8
popq %rsi
movq %rbx, %rcx
callq 0x17ad0
movq (%r12), %rcx
leaq -0x1(%rcx), %rdx
shrq $0x6, %rdx
incq %rdx
cmpq $0x40, %rcx
cmovbq %r14, %rdx
cmpq %rdx, %rax
je 0x1726df
leaq 0x1da945(%rip), %rsi    # 0x34cfd4
movq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rax
movl %eax, %r13d
jmp 0x1726df
movq %rbx, %rdi
callq 0x17b70
xorl %r13d, %r13d
testl %eax, %eax
jne 0x1726df
leaq 0x1da91b(%rip), %rsi    # 0x34cfd4
movq 0x10(%rsp), %rdi
jmp 0x1726d4
cmpl $-0x1, %eax
jne 0x1726ca
xorl %r13d, %r13d
jmp 0x1726df
leaq 0x1da903(%rip), %rsi    # 0x34cfd4
movq %r14, %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %r13
movq %rbx, %rdi
callq 0x8a4fd
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r13d, %r13d
pushq $0x1
popq %rdx
xorl %ebp, %ebp
movq (%r12), %rax
leaq -0x1(%rax), %rcx
shrq $0x6, %rcx
incq %rcx
cmpq $0x40, %rax
cmovbq %rdx, %rcx
cmpq %rcx, %rbp
jae 0x1726df
leaq 0x8(%rsp), %rdi
pushq $0x8
popq %rsi
movq %rdx, %r14
movq %rbx, %rcx
callq 0x17ad0
cmpq $0x1, %rax
jne 0x172688
movq 0x8(%rsp), %rax
movq (%r15,%rbp,8), %rcx
orq %rax, (%rcx)
incq %rbp
movq %r14, %rdx
jmp 0x172701
movq 0x2c5813(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1728b4(%rip), %rsi    # 0x2e5013
leaq 0x1da995(%rip), %rdx    # 0x34d0fb
leaq 0x1da9c2(%rip), %rcx    # 0x34d12f
leaq 0x1da64d(%rip), %r8     # 0x34cdc1
movl $0xb9, %r9d
jmp 0x172805
movq 0x2c57e2(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x172883(%rip), %rsi    # 0x2e5013
leaq 0x172a28(%rip), %rdx    # 0x2e51bf
leaq 0x1da991(%rip), %rcx    # 0x34d12f
leaq 0x1da61c(%rip), %r8     # 0x34cdc1
movl $0xba, %r9d
jmp 0x172805
movq 0x2c57b4(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x172855(%rip), %rsi    # 0x2e5013
leaq 0x1da95a(%rip), %rdx    # 0x34d11f
leaq 0x1da7f3(%rip), %rcx    # 0x34cfbf
leaq 0x1da5ee(%rip), %r8     # 0x34cdc1
movl $0x9e, %r9d
jmp 0x172805
movq 0x2c5786(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x172827(%rip), %rsi    # 0x2e5013
leaq 0x1da92c(%rip), %rdx    # 0x34d11f
leaq 0x1da8ec(%rip), %rcx    # 0x34d0e6
leaq 0x1da5c0(%rip), %r8     # 0x34cdc1
pushq $0x75
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390