// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movq %r8, %r13
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
testq %r8, %r8
je 0x1561a5
movq %r13, %rdi
callq 0x101a9a
testb %al, %al
jne 0x156789
testq %r15, %r15
je 0x1561c3
movq 0x36dd37(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdx
leaq 0x235867(%rip), %rsi    # 0x38ba22
movq %r15, %rdi
callq 0x1229c8
leaq 0x235845(%rip), %rsi    # 0x38ba0f
movl $0x10, %edi
movl $0x342, %edx            # imm = 0x342
callq 0x1092b2
movq %rax, %r15
movq $0x0, 0x8(%rax)
testb %bpl, %bpl
je 0x156208
movq %rbx, %rdi
movq %r13, %rsi
callq 0x142d32
movq %rax, (%r15)
movq %r13, %rdi
callq 0x101a9a
testb %al, %al
je 0x15620f
jmp 0x15674e
movq $0x0, (%r15)
movq %r15, 0x28(%rsp)
leaq 0x2357f4(%rip), %r12    # 0x38ba0f
movl $0x80, %edi
movq %r12, %rsi
movl $0x2f6, %edx            # imm = 0x2F6
callq 0x1092b2
movq %rax, %rbp
xorl %r15d, %r15d
movq %r15, 0x18(%rsp)
movq %r14, 0x8(%rax)
movq %r14, %rdi
callq 0xd3724
movl %eax, 0x78(%rbp)
movq %r15, 0x58(%rbp)
movq %r15, 0x48(%rbp)
movq %r15, 0x30(%rbp)
movq %r15, (%rbp)
movq %rbx, %rdi
callq 0x120955
movq %rax, 0x40(%rbp)
movq %r15, 0x38(%rbp)
movq %r15, 0x10(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbp)
leaq 0x235b1c(%rip), %r14    # 0x38bd95
movq %rax, %rdi
movq %r14, %rsi
callq 0x12097f
leaq 0x258a34(%rip), %rdx    # 0x3aecbf
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rcx
movl $0x30a, %r8d            # imm = 0x30A
movq %r13, %r9
callq 0x101dff
movq %rax, %r12
testq %rax, %rax
jne 0x1562b4
movq %rbp, %rdi
callq 0x157ed1
xorl %ebp, %ebp
testq %r12, %r12
movq %r13, 0x20(%rsp)
je 0x15651d
leaq 0x68(%rbp), %rbx
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rcx
callq 0x125604
cmpq $0x1, %rax
jne 0x15678e
movq 0x68(%rbp), %rdi
leaq 0x23571f(%rip), %rdx    # 0x38ba0f
movl $0x10, %esi
movl $0x250, %ecx            # imm = 0x250
callq 0x1093ef
movq %rax, (%rbp)
movq 0x68(%rbp), %rax
testq %rax, %rax
je 0x15636c
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 0x125604
cmpq $0x1, %rax
jne 0x156770
movq (%rbp), %rdi
addq %r14, %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x125604
cmpq $0x1, %rax
jne 0x15676b
incq %r13
movq (%rbx), %rax
addq $0x10, %r14
cmpq %rax, %r13
jb 0x156312
shlq $0x4, %rax
movq (%rbp), %rcx
movq 0x8(%rbp), %rdi
movq -0x8(%rcx,%rax), %rax
movq %rax, 0x60(%rbp)
movq %rdi, 0x8(%rsp)
callq 0xd3724
movl %eax, %ebx
leaq 0x23567b(%rip), %r14    # 0x38ba0f
movl $0x30, %edi
movq %r14, %rsi
movl $0xc1, %edx
callq 0x1092b2
movq %rax, %r13
movl $0x400, %edi            # imm = 0x400
movq %r14, %rsi
movl $0xc2, %edx
callq 0x1092b2
movq %rax, (%r13)
movl %ebx, %r15d
movq %r15, %rdi
shlq $0x7, %rdi
movl $0x8, %esi
movq %r14, %rdx
movl $0xc2, %ecx
callq 0x1093ef
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 0x1563eb
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 0x125604
cmpq $0x1, %rax
jne 0x156793
movq %rbp, %r15
cmpq $0x0, 0x10(%rsp)
je 0x156525
xorl %r14d, %r14d
movl $0x7f, %ebx
xorl %ebp, %ebp
movl $0x1, %esi
movl $0x1, %edx
leaq 0x7(%rsp), %rdi
movq %r12, %rcx
callq 0x125604
cmpq $0x1, %rax
jne 0x15677f
movl $0x1, %esi
movl $0x1, %edx
leaq 0x6(%rsp), %rdi
movq %r12, %rcx
callq 0x125604
cmpq $0x1, %rax
jne 0x15677a
movl $0x8, %esi
movl $0x1, %edx
leaq 0x30(%rsp), %rdi
movq %r12, %rcx
callq 0x125604
cmpq $0x1, %rax
jne 0x156775
movsbl 0x7(%rsp), %esi
movq 0x8(%rsp), %rdi
callq 0xd3d89
cmpb $-0x2, %al
jne 0x1564e6
movl 0x20(%r13), %ecx
movzbl %al, %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
jae 0x156784
movq 0x30(%rsp), %rdx
movq (%r13), %rsi
movzbl 0x6(%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 0x15645a
jmp 0x15652d
xorl %r13d, %r13d
jmp 0x156682
movl $0x7f, %ecx
xorl %r14d, %r14d
movl %ecx, 0x1c(%r13)
movl %r14d, 0x18(%r13)
movq %r13, %rdi
callq 0x157506
movl 0x28(%r13), %eax
movl %eax, 0x7c(%r15)
leaq 0x18(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
callq 0x125604
cmpq $0x1, %rax
jne 0x156798
callq 0xe837d
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 0x1565a0
movq %r14, %rax
xorl %edx, %edx
divq %rbx
movq %rax, %r14
incq %r14
imulq %rbx, %r14
movq %r15, %rbp
movq %r14, 0x70(%r15)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x40(%r15), %r15
leaq 0x235453(%rip), %rsi    # 0x38ba0f
movl $0x50, %edi
movl $0x25e, %edx            # imm = 0x25E
callq 0x1092b2
movq %rax, %rbx
movq %r15, %rdi
callq 0x120d23
movq %rax, (%rbx)
movq %r14, 0x10(%rbx)
movq %r14, 0x20(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rbx)
movq $0xa, 0x28(%rbx)
callq 0xe837d
movq %rax, %rcx
movq %rax, 0x38(%rbx)
movq 0x10(%rbx), %rax
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
jne 0x15679d
imulq 0x28(%rbx), %rcx
movq %rcx, 0x40(%rbx)
shrq $0x3, %rcx
movq %rcx, 0x30(%rbx)
movq $0x0, 0x8(%rbx)
movq %rbx, 0x48(%rbp)
movl 0x10(%r13), %eax
movl 0x14(%r13), %edx
imulq %rax, %rdx
leaq 0xfc8(%rip), %rsi       # 0x157608
movq %r13, %rdi
callq 0x15b8c0
movq %rax, 0x20(%rbp)
movq 0x48(%rbp), %rdx
leaq 0x1914(%rip), %rsi      # 0x157f6b
movq %rax, %rdi
movq 0x20(%rsp), %rcx
callq 0x15be73
movq %rax, 0x28(%rbp)
movb $0x1, %cl
testq %rax, %rax
jne 0x156684
movq 0x20(%rbp), %rdi
callq 0x15bc80
movq %rbp, %rdi
callq 0x157ed1
xorl %ebp, %ebp
xorl %ecx, %ecx
testb %cl, %cl
je 0x156727
xorl %ebx, %ebx
movq %r12, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x125636
movq %r12, %rdi
callq 0x17030
movq %rax, %r14
movq 0x18(%rsp), %rsi
movq %r12, %rdi
xorl %edx, %edx
callq 0x125636
cmpq %r14, 0x18(%rsp)
jae 0x1566c9
movq %r12, %rdi
callq 0x179216
movq %rax, %rbx
movq %rbx, 0x38(%rbp)
movq (%rbp), %rbx
movq %rbp, 0x8(%rsp)
movq 0x68(%rbp), %r15
movb $0x0, 0x10(%rsp)
leaq 0x199a(%rip), %rdi      # 0x158080
xorl %esi, %esi
xorl %edx, %edx
callq 0x16dec0
movq %rax, %r14
testq %r15, %r15
je 0x156713
leaq 0x10(%rsp), %rbp
movq %r14, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x16e310
addq $0x10, %rbx
decq %r15
jne 0x1566fc
cmpb $0x0, 0x10(%rsp)
je 0x1567a2
movq 0x8(%rsp), %rbp
movq %r14, 0x30(%rbp)
movq %r13, %rdi
callq 0x15761f
movq %r12, %rdi
callq 0x101e80
movq 0x28(%rsp), %r15
movq %rbp, 0x8(%r15)
movq 0x20(%rsp), %rdi
callq 0x101a9a
testb %al, %al
je 0x156759
movq %r15, %rdi
callq 0x1567a7
xorl %r15d, %r15d
movq %r15, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x47e9c
callq 0x47e63
callq 0x47f80
callq 0x47f47
callq 0x47f0e
callq 0x47fb9
callq 0x47df1
callq 0x47e2a
callq 0x47ed5
callq 0x47fe6
callq 0x4801f
callq 0x48058