// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/hcr.c
// Function: hcr_base_qual_distr_new
static GtBaseQualDistr* hcr_base_qual_distr_new(GtAlphabet *alpha,
                                                GtQualRange qrange)
{
  GtBaseQualDistr *bqd;
  bqd = gt_calloc((size_t) 1, sizeof (GtBaseQualDistr));
  gt_array2dim_calloc(bqd->distr, HCR_HIGHESTQUALVALUE + 1UL,
                      gt_alphabet_size(alpha));

  bqd->ncols = gt_alphabet_size(alpha);
  bqd->nrows = HCR_HIGHESTQUALVALUE + 1U;
  bqd->qual_offset = HCR_LOWESTQUALVALUE;
  bqd->wildcard_indx = gt_alphabet_size(alpha) - 1;
  bqd->min_qual = HCR_HIGHESTQUALVALUE;
  bqd->max_qual = HCR_LOWESTQUALVALUE;
  gt_safe_assign(bqd->qrange_start, qrange.start);
  gt_safe_assign(bqd->qrange_end, qrange.end);
  bqd->alpha = alpha;
  return bqd;
}

// Assembly:
subq $0x48, %rsp
movq %rsi, 0x40(%rsp)
movq %rdi, 0x38(%rsp)
movl $0x1, %edi
movl $0x30, %esi
leaq 0x3cd3ec(%rip), %rdx    # 0x554ceb
movl $0xe5, %ecx
callq 0xe83c0
movq %rax, 0x30(%rsp)
movl $0x400, %edi            # imm = 0x400
leaq 0x3cd3d1(%rip), %rsi    # 0x554ceb
movl $0xe7, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
movq 0x38(%rsp), %rdi
callq 0x7e920
movl %eax, %eax
movl %eax, %edi
shlq $0x7, %rdi
movl $0x8, %esi
leaq 0x3cd39e(%rip), %rdx    # 0x554ceb
movl $0xe7, %ecx
callq 0xe83c0
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq %rcx, (%rax)
movq $0x1, 0x28(%rsp)
cmpq $0x80, 0x28(%rsp)
jae 0x1879cc
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x28(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
callq 0x7e920
movq 0x8(%rsp), %rdx
movl %eax, %eax
shlq $0x3, %rax
addq %rax, %rdx
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq 0x28(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x18796e
movq 0x38(%rsp), %rdi
callq 0x7e920
movl %eax, %ecx
movq 0x30(%rsp), %rax
movl %ecx, 0x10(%rax)
movq 0x30(%rsp), %rax
movl $0x80, 0x14(%rax)
movq 0x30(%rsp), %rax
movl $0x0, 0x28(%rax)
movq 0x38(%rsp), %rdi
callq 0x7e920
movl %eax, %ecx
subl $0x1, %ecx
movq 0x30(%rsp), %rax
movl %ecx, 0x20(%rax)
movq 0x30(%rsp), %rax
movl $0x7f, 0x1c(%rax)
movq 0x30(%rsp), %rax
movl $0x0, 0x18(%rax)
movl 0x40(%rsp), %eax
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
movl %eax, 0x20(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x20(%rsp), %eax
jne 0x187a74
cmpl $0x1, 0x24(%rsp)
setb %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, 0x20(%rsp)
setb %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x187a74
movl 0x20(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, 0x24(%rax)
xorl %eax, %eax
movl %eax, 0x4(%rsp)
jmp 0x187a7f
movl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x187a7f
movl 0x4(%rsp), %eax
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
je 0x187abc
movq 0x4b450b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x390586(%rip), %rsi    # 0x518025
leaq 0x3cd245(%rip), %rdx    # 0x554ceb
movl $0xef, %ecx
movb $0x0, %al
callq 0x199f0
movl $0x1, %edi
callq 0x19890
jmp 0x187abe
jmp 0x187ac0
movl 0x44(%rsp), %eax
movl %eax, 0x18(%rsp)
movl 0x18(%rsp), %eax
movl %eax, 0x14(%rsp)
movl 0x18(%rsp), %eax
cmpl 0x14(%rsp), %eax
jne 0x187b0c
cmpl $0x1, 0x18(%rsp)
setb %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, 0x14(%rsp)
setb %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x187b0c
movl 0x14(%rsp), %ecx
movq 0x30(%rsp), %rax
movl %ecx, 0x2c(%rax)
xorl %eax, %eax
movl %eax, (%rsp)
jmp 0x187b16
movl $0x1, %eax
movl %eax, (%rsp)
jmp 0x187b16
movl (%rsp), %eax
movl %eax, 0x10(%rsp)
cmpl $0x0, 0x10(%rsp)
je 0x187b52
movq 0x4b4475(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3904f0(%rip), %rsi    # 0x518025
leaq 0x3cd1af(%rip), %rdx    # 0x554ceb
movl $0xf0, %ecx
movb $0x0, %al
callq 0x199f0
movl $0x1, %edi
callq 0x19890
jmp 0x187b54
movq 0x38(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x30(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax)