// File: /workspace/github_c_makefile_star2_O2/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 0x1b69b0
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1b6ad4
movq 0x58(%rsp), %rcx
movzbl %r12b, %edx
pushq $0x7
popq %rsi
movq %r14, %rdi
movq %rbx, %r8
callq 0x1516ac
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x1b6ac2
movq %rax, %r12
testq %rbx, %rbx
je 0x1b69ed
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1b6b02
testq %r12, %r12
sete 0x7(%rsp)
leaq 0x1a673a(%rip), %rsi    # 0x35d136
pushq $0x40
popq %rdi
movl $0xd2, %edx
callq 0x93160
movq %rax, %r14
movq %r12, %rdi
callq 0x151c21
movq %rax, (%r14)
movq %r12, %rdi
callq 0x151c64
movl %eax, 0x8(%r14)
movq (%r14), %rdi
callq 0x7055e
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 0x208(%rip), %rax       # 0x1b6c60
leaq 0x1fd(%rip), %r10       # 0x1b6c5c
leaq 0xd4(%rip), %rsi        # 0x1b6b3a
leaq 0xdf(%rip), %rdx        # 0x1b6b4c
leaq 0xe7(%rip), %rcx        # 0x1b6b5b
leaq 0x164(%rip), %r9        # 0x1b6bdf
movq %r12, %rdi
xorl %r8d, %r8d
pushq %rbx
pushq 0x68(%rsp)
pushq %r14
pushq %rax
pushq %r10
callq 0x2b00bc
addq $0x30, %rsp
testl %eax, %eax
setne %bl
movq %r14, %rdi
leaq 0x1a6693(%rip), %rsi    # 0x35d136
movl $0xe9, %edx
callq 0x936f9
orb 0x7(%rsp), %bl
leaq 0x10(%rsp), %rdi
callq 0x1517e5
movzbl %bl, %eax
negl %eax
jmp 0x1b6ac5
pushq $-0x1
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28148d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x12e52e(%rip), %rsi    # 0x2e5013
leaq 0x12e6d3(%rip), %rdx    # 0x2e51bf
leaq 0x1a662e(%rip), %rcx    # 0x35d121
leaq 0x1a663c(%rip), %r8     # 0x35d136
movl $0xfa, %r9d
jmp 0x1b6b2e
movq 0x28145f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x12e500(%rip), %rsi    # 0x2e5013
leaq 0x12e6a5(%rip), %rdx    # 0x2e51bf
leaq 0x1a662e(%rip), %rcx    # 0x35d14f
leaq 0x1a660e(%rip), %r8     # 0x35d136
movl $0xd1, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390