// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/hcr.c
// Function: gt_hcr_decoder_new
GtHcrDecoder *gt_hcr_decoder_new(const char *name, GtAlphabet *alpha,
                                 bool descs, GtTimer *timer, GtError *err)
{
  GtHcrDecoder *hcr_dec = NULL;
  int had_err = 0;

  gt_error_check(err);
  if (timer != NULL)
    gt_timer_show_progress(timer, "initialize hcr decoder", stdout);

  hcr_dec = gt_malloc(sizeof (GtHcrDecoder));
  hcr_dec->seq_dec = NULL;

  if (descs) {
    hcr_dec->encdesc = gt_encdesc_load(name, err);
    if (gt_error_is_set(err)) {
      had_err = -1;
    }
  }
  else
    hcr_dec->encdesc = NULL;

  if (!had_err) {
    hcr_dec->seq_dec = hcr_seq_decoder_new(alpha, name, err);
    if (!gt_error_is_set(err))
      return hcr_dec;
  }
  gt_hcr_decoder_delete(hcr_dec);
  return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r13
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r12
testq %r8, %r8
je 0x14e905
movq %r13, %rdi
callq 0xfcc32
testb %al, %al
jne 0x14eee5
testq %r14, %r14
je 0x14e923
movq 0x36a5c7(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x233d44(%rip), %rsi    # 0x38265f
movq %r14, %rdi
callq 0x11cc90
leaq 0x233d22(%rip), %rsi    # 0x38264c
movl $0x10, %edi
movl $0x342, %edx            # imm = 0x342
callq 0x104226
movq %rax, %r14
movq $0x0, 0x8(%rax)
testb %bpl, %bpl
je 0x14e968
movq %r12, %rdi
movq %r13, %rsi
callq 0x13c2dc
movq %rax, (%r14)
movq %r13, %rdi
callq 0xfcc32
testb %al, %al
je 0x14e96f
jmp 0x14eeaa
movq $0x0, (%r14)
movq %r14, 0x38(%rsp)
leaq 0x233cd1(%rip), %r14    # 0x38264c
movl $0x80, %edi
movq %r14, %rsi
movl $0x2f6, %edx            # imm = 0x2F6
callq 0x104226
movq %rax, %rbp
xorl %r15d, %r15d
movq %r15, 0x20(%rsp)
movq %rbx, 0x8(%rax)
movq %rbx, %rdi
callq 0xd11cf
movl %eax, 0x78(%rbp)
movq %r15, 0x58(%rbp)
movq %r15, 0x48(%rbp)
movq %r15, 0x30(%rbp)
movq %r15, (%rbp)
movq %r12, %rdi
callq 0x11acc9
movq %rax, 0x40(%rbp)
movq %r15, 0x38(%rbp)
movq %r15, 0x10(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbp)
leaq 0x233ff9(%rip), %rbx    # 0x3829d2
movq %rax, %rdi
movq %rbx, %rsi
callq 0x11acf3
leaq 0x256d32(%rip), %rdx    # 0x3a571d
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rcx
movl $0x30a, %r8d            # imm = 0x30A
movq %r13, %r9
callq 0xfcf97
movq %rax, %r12
testq %rax, %rax
movq %r13, 0x30(%rsp)
je 0x14eac4
movq %rbp, %rbx
addq $0x68, %rbx
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rcx
callq 0x11f848
cmpq $0x1, %rax
jne 0x14eeef
movq 0x68(%rbp), %rdi
leaq 0x233c08(%rip), %rdx    # 0x38264c
movl $0x10, %esi
movl $0x250, %ecx            # imm = 0x250
callq 0x10436a
movq %rax, (%rbp)
cmpq $0x0, 0x68(%rbp)
je 0x14ead6
xorl %r14d, %r14d
xorl %r13d, %r13d
movq (%rbp), %rax
leaq (%rax,%r14), %rdi
addq $0x8, %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x11f848
cmpq $0x1, %rax
jne 0x14eecc
movq (%rbp), %rdi
addq %r14, %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x11f848
cmpq $0x1, %rax
jne 0x14eec7
incq %r13
movq (%rbx), %rcx
addq $0x10, %r14
cmpq %rcx, %r13
jb 0x14ea64
movq (%rbp), %rax
jmp 0x14ead8
movq %rbp, %rdi
callq 0x15059e
xorl %ebx, %ebx
xorl %r13d, %r13d
jmp 0x14ee83
xorl %ecx, %ecx
shlq $0x4, %rcx
movq -0x8(%rax,%rcx), %rax
movq %rax, 0x60(%rbp)
movq 0x8(%rbp), %rdi
movq %rdi, 0x28(%rsp)
callq 0xd11cf
movl %eax, %ebx
leaq 0x233b50(%rip), %r14    # 0x38264c
movl $0x30, %edi
movq %r14, %rsi
movl $0xc1, %edx
callq 0x104226
movq %rax, %r13
movl $0x400, %edi            # imm = 0x400
movq %r14, %rsi
movl $0xc2, %edx
callq 0x104226
movq %rax, (%r13)
movl %ebx, %r15d
movq %r15, %rdi
shlq $0x7, %rdi
movl $0x8, %esi
movq %r14, %rdx
movl $0xc2, %ecx
callq 0x10436a
movq (%r13), %rcx
movq %rax, (%rcx)
movl $0x1, %eax
shlq $0x3, %r15
movq (%r13), %rcx
movq -0x8(%rcx,%rax,8), %rdx
addq %r15, %rdx
movq %rdx, (%rcx,%rax,8)
incq %rax
cmpq $0x80, %rax
jne 0x14eb53
movl %ebx, 0x10(%r13)
movl $0x80, 0x14(%r13)
movl $0x0, 0x28(%r13)
decl %ebx
movl %ebx, 0x20(%r13)
leaq 0x10(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x11f848
cmpq $0x1, %rax
jne 0x14eef4
movq %rbp, 0x18(%rsp)
cmpq $0x0, 0x10(%rsp)
movq 0x28(%rsp), %r15
je 0x14ec83
xorl %r14d, %r14d
movl $0x7f, %ebx
xorl %ebp, %ebp
movl $0x1, %esi
movl $0x1, %edx
leaq 0xf(%rsp), %rdi
movq %r12, %rcx
callq 0x11f848
cmpq $0x1, %rax
jne 0x14eedb
movl $0x1, %esi
movl $0x1, %edx
leaq 0xe(%rsp), %rdi
movq %r12, %rcx
callq 0x11f848
cmpq $0x1, %rax
jne 0x14eed6
movl $0x8, %esi
movl $0x1, %edx
leaq 0x40(%rsp), %rdi
movq %r12, %rcx
callq 0x11f848
cmpq $0x1, %rax
jne 0x14eed1
movsbl 0xf(%rsp), %esi
movq %r15, %rdi
callq 0xd185d
cmpb $-0x2, %al
jne 0x14ec4c
movl 0x20(%r13), %eax
cmpl $0x100, %eax            # imm = 0x100
jae 0x14eee0
movq 0x40(%rsp), %rdx
movq (%r13), %rsi
movzbl 0xe(%rsp), %ecx
movq (%rsi,%rcx,8), %rsi
movzbl %al, %eax
cmpl %ecx, %r14d
cmovbel %ecx, %r14d
movq %rdx, (%rsi,%rax,8)
cmpl %ecx, %ebx
cmovbl %ebx, %ecx
incq %rbp
movl %ecx, %ebx
cmpq 0x10(%rsp), %rbp
jb 0x14ebc9
jmp 0x14ec8b
movl $0x7f, %ecx
xorl %r14d, %r14d
movl %ecx, 0x1c(%r13)
movl %r14d, 0x18(%r13)
movq %r13, %rdi
callq 0x14fc51
movl 0x28(%r13), %eax
movq 0x18(%rsp), %rcx
movl %eax, 0x7c(%rcx)
leaq 0x20(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x11f848
cmpq $0x1, %rax
jne 0x14eef9
callq 0xe3e95
movq %rax, %rbx
movq %r12, %rdi
callq 0x17030
xorl %edx, %edx
divq %rbx
movq %rdx, %rbp
movq %r12, %rdi
callq 0x17030
movq %rax, %r14
testq %rbp, %rbp
je 0x14ed02
movq %r14, %rax
xorl %edx, %edx
divq %rbx
movq %rax, %r14
incq %r14
imulq %rbx, %r14
movq 0x18(%rsp), %r15
movq %r14, 0x70(%r15)
movq 0x20(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x40(%r15), %rbp
leaq 0x23392c(%rip), %rsi    # 0x38264c
movl $0x50, %edi
movl $0x25e, %edx            # imm = 0x25E
callq 0x104226
movq %rax, %rbx
movq %rbp, %rdi
callq 0x11b0a1
movq %rax, (%rbx)
movq %r14, 0x10(%rbx)
movq %r14, 0x20(%rbx)
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rbx)
movq $0xa, 0x28(%rbx)
callq 0xe3e95
movq %rax, %rcx
movq %rax, 0x38(%rbx)
movq 0x10(%rbx), %rax
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
jne 0x14eefe
imulq 0x28(%rbx), %rcx
movq %rcx, 0x40(%rbx)
shrq $0x3, %rcx
movq %rcx, 0x30(%rbx)
movq $0x0, 0x8(%rbx)
movq %rbx, 0x48(%r15)
movl 0x10(%r13), %eax
movl 0x14(%r13), %edx
imulq %rax, %rdx
leaq 0xfab(%rip), %rsi       # 0x14fd4f
movq %r13, %rdi
callq 0x153ff8
movq %rax, 0x20(%r15)
movq 0x48(%r15), %rdx
leaq 0x187d(%rip), %rsi      # 0x150638
movq %rax, %rdi
movq 0x30(%rsp), %rcx
callq 0x1545b4
movq %rax, 0x28(%r15)
testq %rax, %rax
je 0x14ee70
xorl %ebx, %ebx
movq %r12, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x11f87a
movq %r12, %rdi
callq 0x17030
movq %rax, %r14
movq 0x20(%rsp), %rsi
movq %r12, %rdi
xorl %edx, %edx
callq 0x11f87a
cmpq %r14, 0x20(%rsp)
jae 0x14ee12
movq %r12, %rdi
callq 0x170e64
movq %rax, %rbx
movq %rbx, 0x38(%r15)
movq (%r15), %rbx
movq 0x68(%r15), %r15
movb $0x0, 0x10(%rsp)
leaq 0x1920(%rip), %rdi      # 0x150749
xorl %esi, %esi
xorl %edx, %edx
callq 0x165f7c
testq %r15, %r15
je 0x14eeea
movq %rax, %r14
leaq 0x10(%rsp), %rbp
movq %r14, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x1663b6
addq $0x10, %rbx
decq %r15
jne 0x14ee43
testb $0x1, 0x10(%rsp)
je 0x14eeea
movq 0x18(%rsp), %rbx
movq %r14, 0x30(%rbx)
jmp 0x14ee83
movq 0x20(%r15), %rdi
callq 0x1543bd
movq %r15, %rdi
callq 0x15059e
xorl %ebx, %ebx
movq %r13, %rdi
callq 0x14fd66
movq %r12, %rdi
callq 0xfd018
movq 0x38(%rsp), %r14
movq %rbx, 0x8(%r14)
movq 0x30(%rsp), %rdi
callq 0xfcc32
testb %al, %al
je 0x14eeb5
movq %r14, %rdi
callq 0x14ef03
xorl %r14d, %r14d
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x47061
callq 0x47028
callq 0x47145
callq 0x4710c
callq 0x470d3
callq 0x4717e
callq 0x46fb6
callq 0x4721d
callq 0x46fef
callq 0x4709a
callq 0x471ab
callq 0x471e4