// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/tyr-occratio.c
// Function: gt_tyr_occratio_func
int gt_tyr_occratio_func(const char *inputindex,
                         bool scanfile,
                         GtUword minmersize,
                         GtUword maxmersize,
                         GtArrayuint64_t *uniquedistribution,
                         GtArrayuint64_t *nonuniquedistribution,
                         GtArrayuint64_t *nonuniquemultidistribution,
                         GtLogger *logger,
                         GtError *err)
{
  bool haserr = false;
  Sequentialsuffixarrayreader *ssar;

  gt_error_check(err);
  ssar = gt_newSequentialsuffixarrayreaderfromfile(inputindex,
                                                SARR_LCPTAB |
                                                SARR_SUFTAB |
                                                SARR_ESQTAB,
                                                scanfile,
                                                logger,
                                                err);
  if (ssar == NULL)
  {
    haserr = true;
  }
  if (!haserr)
  {
    if (computeoccurrenceratio(ssar,
                               minmersize,
                               maxmersize,
                               uniquedistribution,
                               nonuniquedistribution,
                               nonuniquemultidistribution,
                               logger,
                               err) != 0)
    {
      haserr = true;
    }
  }
  if (ssar != NULL)
  {
    gt_freeSequentialsuffixarrayreader(&ssar);
  }
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x20(%rsp)
movq %r8, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, %rbp
movl %esi, %r12d
movq %rdi, %r14
movq 0x70(%rsp), %rbx
testq %rbx, %rbx
je 0x20c168
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x20c2a5
movq 0x68(%rsp), %rcx
movzbl %r12b, %edx
movq %r14, %rdi
movl $0x7, %esi
movq %rbx, %r8
callq 0x1ae094
movq %rax, 0x8(%rsp)
xorl %r13d, %r13d
testq %rax, %rax
sete %r15b
je 0x20c27e
movq %rax, %r12
testq %rbx, %rbx
je 0x20c1ae
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x20c2aa
leaq 0x1ba19d(%rip), %rsi    # 0x3c6352
movl $0x40, %edi
movl $0xd2, %edx
callq 0x1092b2
movq %rax, %r14
movq %r12, %rdi
callq 0x1ae549
movq %rax, (%r14)
movq %r12, %rdi
callq 0x1ae559
movl %eax, 0x8(%r14)
movq (%r14), %rdi
callq 0xec1d8
movq %rax, 0x10(%r14)
movq %rbp, 0x18(%r14)
movq 0x10(%rsp), %rax
movq %rax, 0x20(%r14)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%r14)
movq 0x20(%rsp), %rax
movq %rax, 0x30(%r14)
movq 0x60(%rsp), %rax
movq %rax, 0x38(%r14)
subq $0x8, %rsp
leaq 0x1da(%rip), %rax       # 0x20c3f7
leaq 0x1cf(%rip), %r10       # 0x20c3f3
leaq 0x84(%rip), %rsi        # 0x20c2af
leaq 0x93(%rip), %rdx        # 0x20c2c5
leaq 0x9d(%rip), %rcx        # 0x20c2d6
leaq 0x139(%rip), %r9        # 0x20c379
movq %r12, %rdi
xorl %r8d, %r8d
pushq %rbx
pushq 0x78(%rsp)
pushq %r14
pushq %rax
pushq %r10
callq 0x31b004
addq $0x30, %rsp
movl %eax, %ebx
movq %r14, %rdi
leaq 0x1ba0ed(%rip), %rsi    # 0x3c6352
movl $0xe9, %edx
callq 0x109670
testl %ebx, %ebx
movb %r15b, %r13b
movl $0x1, %r15d
cmovel %r13d, %r15d
cmpq $0x0, 0x8(%rsp)
je 0x20c290
leaq 0x8(%rsp), %rdi
callq 0x1ae1ac
movzbl %r15b, %eax
negl %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x818df
callq 0x81918