// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
movq %r9, 0x8(%rsp)
movq %r8, %r15
movq %rcx, %r13
movq %rdx, %rbp
movl %esi, %r12d
movq %rdi, %r14
movq 0x60(%rsp), %rbx
testq %rbx, %rbx
je 0x2028a4
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0x2029ce
movq 0x58(%rsp), %rcx
movzbl %r12b, %edx
movq %r14, %rdi
movl $0x7, %esi
movq %rbx, %r8
callq 0x1a5580
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x2029ba
movq %rax, %r12
testq %rbx, %rbx
je 0x2028e3
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0x2029d3
testq %r12, %r12
sete 0x7(%rsp)
leaq 0x1ba3f0(%rip), %rsi    # 0x3bcce2
movl $0x40, %edi
movl $0xd2, %edx
callq 0x104226
movq %rax, %r14
movq %r12, %rdi
callq 0x1a59f6
movq %rax, (%r14)
movq %r12, %rdi
callq 0x1a5a06
movl %eax, 0x8(%r14)
movq (%r14), %rdi
callq 0xe7b9c
movq %rax, 0x10(%r14)
movq %rbp, 0x18(%r14)
movq %r13, 0x20(%r14)
movq %r15, 0x28(%r14)
movq 0x8(%rsp), %rax
movq %rax, 0x30(%r14)
movq 0x50(%rsp), %rax
movq %rax, 0x38(%r14)
subq $0x8, %rsp
leaq 0x1cc(%rip), %rax       # 0x202b1c
leaq 0x1c1(%rip), %r10       # 0x202b18
leaq 0x7a(%rip), %rsi        # 0x2029d8
leaq 0x89(%rip), %rdx        # 0x2029ee
leaq 0x93(%rip), %rcx        # 0x2029ff
leaq 0x12b(%rip), %r9        # 0x202a9e
movq %r12, %rdi
xorl %r8d, %r8d
pushq %rbx
pushq 0x68(%rsp)
pushq %r14
pushq %rax
pushq %r10
callq 0x310db0
addq $0x30, %rsp
testl %eax, %eax
setne %bl
movq %r14, %rdi
leaq 0x1ba347(%rip), %rsi    # 0x3bcce2
movl $0xe9, %edx
callq 0x1045eb
orb 0x7(%rsp), %bl
leaq 0x10(%rsp), %rdi
callq 0x1a5698
movzbl %bl, %eax
negl %eax
jmp 0x2029bf
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7fad5
callq 0x7fb0e