// File: /workspace/github_c_makefile_star2_O3/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
pushq %rax
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r13
leaq 0x1ea952(%rip), %rdi    # 0x3aca89
movq %r13, %rsi
xorl %eax, %eax
callq 0x103d72
leaq 0x1e35d5(%rip), %rsi    # 0x3a571d
leaq 0x1ea912(%rip), %rdx    # 0x3aca61
movq %r13, %rdi
movl $0xd9, %ecx
movq %r14, %r8
callq 0xfcdbb
testq %rax, %rax
je 0x1c2264
movq %rax, %rbx
movq %rax, %rdi
callq 0x11f793
testl %eax, %eax
jg 0x1c226f
cmpl $-0x1, %eax
je 0x1c2383
testl %eax, %eax
jne 0x1c237a
leaq 0x1ea956(%rip), %rdi    # 0x3acae9
xorl %eax, %eax
callq 0x103d72
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1c25e6
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x1c24f6
testq %r15, %r15
je 0x1c251a
testb %bpl, %bpl
je 0x1c2495
movq (%r12), %rax
leaq -0x1(%rax), %rcx
shrq $0x6, %rcx
cmpq $0x40, %rax
leaq 0x8(,%rcx,8), %rbp
movl $0x8, %eax
cmovbq %rax, %rbp
leaq 0x1ea871(%rip), %rdx    # 0x3aca61
xorl %r13d, %r13d
xorl %edi, %edi
movq %rbp, %rsi
movl $0x78, %ecx
callq 0x104461
movq %rax, (%r15)
movq %rax, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x173a0
movq (%r15), %rdi
movq (%r12), %rax
leaq -0x1(%rax), %rdx
shrq $0x6, %rdx
incq %rdx
cmpq $0x40, %rax
movl $0x1, %r15d
cmovbq %r15, %rdx
movl $0x8, %esi
movq %rbx, %rcx
callq 0x17b40
movq (%r12), %rcx
leaq -0x1(%rcx), %rdx
shrq $0x6, %rdx
incq %rdx
cmpq $0x40, %rcx
cmovbq %r15, %rdx
cmpq %rdx, %rax
jne 0x1c24df
jmp 0x1c24f6
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x1c24fe
cmpl $0x1, %eax
je 0x1c23a2
cmpl $0x5b, %eax
jne 0x1c237a
movl $0x5b, %edi
movq %rbx, %rsi
callq 0x11f967
leaq 0x1ea875(%rip), %rdi    # 0x3acb0a
xorl %eax, %eax
callq 0x103d72
testq %r15, %r15
je 0x1c2510
testq %r12, %r12
je 0x1c2510
testq %r14, %r14
je 0x1c22c3
movq %r14, %rdi
callq 0xfcc32
testb %al, %al
jne 0x1c2515
leaq 0x1ea98b(%rip), %rsi    # 0x3acc55
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x17ea0
cmpl $0x1, %eax
jne 0x1c24df
movq (%r12), %rax
testq %rax, %rax
je 0x1c24df
testb %bpl, %bpl
je 0x1c2336
leaq -0x1(%rax), %rcx
shrq $0x6, %rcx
cmpq $0x40, %rax
leaq 0x8(,%rcx,8), %rax
movl $0x8, %r12d
cmovaeq %rax, %r12
leaq 0x1ea74a(%rip), %rdx    # 0x3aca61
xorl %edi, %edi
movq %r12, %rsi
movl $0xc2, %ecx
callq 0x104461
movq %rax, (%r15)
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x173a0
movabsq $-0x8000000000000000, %rbp # imm = 0x8000000000000000
leaq 0x18e6e1(%rip), %r12    # 0x350a28
movq %rsp, %r13
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x17ea0
cmpl $0x1, %eax
jne 0x1c248b
movq (%rsp), %rcx
movq %rbp, %rax
shrq %cl, %rax
movq (%r15), %rdx
shrq $0x6, %rcx
orq %rax, (%rdx,%rcx,8)
jmp 0x1c234a
leaq 0x1ea7ac(%rip), %rsi    # 0x3acb2d
jmp 0x1c238a
leaq 0x1ea723(%rip), %rsi    # 0x3acaad
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xfcb67
movl $0x1, %r13d
jmp 0x1c24f6
leaq 0x1ea71f(%rip), %rdi    # 0x3acac8
xorl %eax, %eax
callq 0x103d72
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1c25e6
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x1c24f6
testq %r15, %r15
je 0x1c251f
testb %bpl, %bpl
je 0x1c2422
movq (%r12), %rax
leaq -0x1(%rax), %rcx
shrq $0x6, %rcx
cmpq $0x40, %rax
leaq 0x8(,%rcx,8), %rax
movl $0x8, %r12d
cmovaeq %rax, %r12
leaq 0x1ea65e(%rip), %rdx    # 0x3aca61
xorl %edi, %edi
movq %r12, %rsi
movl $0xa0, %ecx
callq 0x104461
movq %rax, (%r15)
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x173a0
movq %rsp, %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x17b40
cmpq $0x1, %rax
jne 0x1c247a
movabsq $-0x8000000000000000, %r13 # imm = 0x8000000000000000
movq %rsp, %r12
movq (%rsp), %rcx
movq %r13, %rax
shrq %cl, %rax
movq (%r15), %rdx
shrq $0x6, %rcx
orq %rax, (%rdx,%rcx,8)
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x17b40
cmpq $0x1, %rax
je 0x1c244a
movq %rbx, %rdi
callq 0x17be0
xorl %r13d, %r13d
testl %eax, %eax
jne 0x1c24f6
jmp 0x1c24df
cmpl $-0x1, %eax
jne 0x1c24df
xorl %r13d, %r13d
jmp 0x1c24f6
xorl %ebp, %ebp
movl $0x8, %esi
movl $0x1, %edx
movq %rsp, %rdi
movq %rbx, %rcx
callq 0x17b40
cmpq $0x1, %rax
jne 0x1c24df
movq (%rsp), %rax
movq (%r15,%rbp,8), %rcx
orq %rax, (%rcx)
movq (%r12), %rax
xorl %r13d, %r13d
cmpq $0x40, %rax
jb 0x1c24f6
leaq 0x1(%rbp), %rcx
decq %rax
shrq $0x6, %rax
cmpq %rbp, %rax
movq %rcx, %rbp
ja 0x1c2497
jmp 0x1c24f6
leaq 0x1ea78e(%rip), %rsi    # 0x3acc74
movq %r14, %rdi
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0xfd018
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x691a5
callq 0x691de
callq 0x69217
callq 0x6924e