// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/tyr-mkindex.c
// Function: gt_merstatistics
int gt_merstatistics(const char *inputindex,
                  GtUword mersize,
                  GtUword minocc,
                  GtUword maxocc,
                  const char *storeindex,
                  bool storecounts,
                  bool scanfile,
                  bool performtest,
                  GtLogger *logger,
                  GtError *err)
{
  bool haserr = false;
  Sequentialsuffixarrayreader *ssar;

  gt_error_check(err);
  ssar = gt_newSequentialsuffixarrayreaderfromfile(inputindex,
                                                SARR_LCPTAB |
                                                SARR_SUFTAB |
                                                SARR_ESQTAB,
                                                (scanfile && !performtest)
                                                  ? true : false,
                                                logger,
                                                err);
  if (ssar == NULL)
  {
    haserr = true;
  }
  if (!haserr)
  {
    if (enumeratelcpintervals(inputindex,
                              ssar,
                              storeindex,
                              storecounts,
                              mersize,
                              minocc,
                              maxocc,
                              performtest,
                              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 $0x48, %rsp
movl %r9d, %r15d
movq %r8, 0x20(%rsp)
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %rbx
movq 0x98(%rsp), %r14
testq %r14, %r14
je 0x20b603
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0x20bd23
movq 0x90(%rsp), %rcx
movb 0x88(%rsp), %al
notb %al
andb 0x80(%rsp), %al
movzbl %al, %edx
movq %rbx, 0x40(%rsp)
movq %rbx, %rdi
movl $0x7, %esi
movq %r14, %r8
callq 0x1ae094
movq %rax, 0x38(%rsp)
testq %rax, %rax
sete %bl
je 0x20bcfd
movq %r14, %rdi
movq %rax, %r14
movq %rbp, 0x30(%rsp)
movl %ebx, 0x2c(%rsp)
testq %rdi, %rdi
je 0x20b665
callq 0x101a9a
testb %al, %al
jne 0x20bd28
leaq 0x1ba9fb(%rip), %rsi    # 0x3c6067
movl $0xb0, %edi
movl $0x212, %edx            # imm = 0x212
callq 0x1092b2
movq %rax, %rbx
xorpd %xmm0, %xmm0
movupd %xmm0, 0x38(%rax)
movq $0x0, 0x48(%rax)
movq %r14, %rdi
callq 0x1ae549
movq %rax, %rbp
movq %r14, %rdi
callq 0x1ae559
movq %rbp, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0xed76d
movq %rax, 0x60(%rbx)
movq 0x30(%rsp), %rbp
movq %rbp, (%rbx)
movq %r14, %rdi
callq 0x1ae549
movq %rax, 0x20(%rbx)
movq %rax, %rdi
callq 0xf02da
movq %rax, %rdi
callq 0xd3713
movl %eax, 0x28(%rsp)
movq %r14, %rdi
callq 0x1ae559
movl %eax, 0x28(%rbx)
movb %r15b, 0x69(%rbx)
movq %r13, 0x10(%rbx)
movq %r12, 0x18(%rbx)
movq 0x20(%rbx), %rdi
callq 0xec1d8
xorpd %xmm0, %xmm0
movq %rax, 0x8(%rbx)
movb 0x88(%rsp), %r15b
movb %r15b, 0x68(%rbx)
movupd %xmm0, 0x50(%rbx)
movupd %xmm0, 0x80(%rbx)
movupd %xmm0, 0x90(%rbx)
movq 0x20(%rsp), %r12
cmpb $0x0, (%r12)
je 0x20b75e
movq %rbp, %rdi
shrq $0x2, %rdi
movl %ebp, %eax
andl $0x3, %eax
cmpq $0x1, %rax
sbbq $-0x1, %rdi
movq %rdi, 0x78(%rbx)
leaq 0x1ba919(%rip), %rsi    # 0x3c6067
movl $0x22d, %edx            # imm = 0x22D
callq 0x1092b2
movq %rax, 0x70(%rbx)
jmp 0x20b763
movupd %xmm0, 0x70(%rbx)
testb %r15b, %r15b
movq 0x90(%rsp), %r13
je 0x20b79c
movq (%rbx), %rdi
leaq 0x1ba8ed(%rip), %rsi    # 0x3c6067
movl $0x232, %edx            # imm = 0x232
callq 0x1092b2
movq %rax, 0xa8(%rbx)
movq %r14, %rdi
callq 0x1ae568
movq %rax, 0xa0(%rbx)
jmp 0x20b7a8
xorpd %xmm0, %xmm0
movupd %xmm0, 0xa0(%rbx)
leaq 0x38(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x50(%rbx), %r15
movq (%rbx), %rdx
movq 0x8(%rbx), %rcx
cmpq %rcx, %rdx
jbe 0x20b7de
leaq 0x1ba8cd(%rip), %rsi    # 0x3c6095
movq 0x98(%rsp), %rdi
xorl %eax, %eax
callq 0x1019cf
movb $0x1, %dl
jmp 0x20bbd8
cmpb $0x0, (%r12)
movq %r15, 0x8(%rsp)
je 0x20b861
leaq 0x1ba8d0(%rip), %rsi    # 0x3c60c1
leaq 0x153315(%rip), %rdx    # 0x35eb0d
leaq 0x1ba868(%rip), %rcx    # 0x3c6067
movq %r12, %rdi
movl $0x247, %r8d            # imm = 0x247
movq 0x98(%rsp), %r9
callq 0x101dff
movq %rax, (%r15)
leaq 0x692(%rip), %r15       # 0x20beb1
testq %rax, %rax
je 0x20b86c
cmpb $0x1, 0x69(%rbx)
jne 0x20b868
leaq 0x1ba895(%rip), %rsi    # 0x3c60c6
leaq 0x1532d5(%rip), %rdx    # 0x35eb0d
leaq 0x1ba828(%rip), %rcx    # 0x3c6067
movq %r12, %rdi
movl $0x250, %r8d            # imm = 0x250
movq 0x98(%rsp), %r9
callq 0x101dff
movq %rax, 0x58(%rbx)
testq %rax, %rax
sete %dl
jmp 0x20b86e
leaq 0x4d0(%rip), %r15       # 0x20bd38
xorl %edx, %edx
jmp 0x20b86e
movb $0x1, %dl
movq %r15, 0x30(%rbx)
testb %dl, %dl
jne 0x20bb16
subq $0x8, %rsp
leaq 0x896(%rip), %rax       # 0x20c11b
leaq 0x88b(%rip), %r10       # 0x20c117
leaq 0x765(%rip), %rsi       # 0x20bff8
movl %edx, %r15d
leaq 0x771(%rip), %rdx       # 0x20c00e
leaq 0x77b(%rip), %rcx       # 0x20c01f
leaq 0x7f6(%rip), %r9        # 0x20c0a1
movq %r14, %rdi
xorl %r8d, %r8d
pushq 0xa0(%rsp)
pushq %r13
pushq %rbx
pushq %rax
pushq %r10
callq 0x31b004
addq $0x30, %rsp
testl %eax, %eax
movzbl %r15b, %eax
movl $0x1, %edx
cmovel %eax, %edx
cmpb $0x0, (%r12)
movq 0x10(%rsp), %rcx
jne 0x20bb16
movl %edx, 0x4(%rsp)
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0x20b912
movq (%rcx), %rcx
xorl %r14d, %r14d
xorl %edx, %edx
movq (%rcx), %rsi
imulq %rdx, %rsi
addq %rsi, %r14
incq %rdx
addq $0x10, %rcx
cmpq %rdx, %rax
jne 0x20b8fa
jmp 0x20b915
xorl %r14d, %r14d
cmpb $0x1, 0x68(%rbx)
jne 0x20b95f
movq (%rbx), %r8
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x20(%rbx), %rdi
movl 0x28(%rbx), %esi
movq 0x60(%rbx), %rdx
movq %r12, %rcx
callq 0xed3e1
xorb $0x1, %al
movzbl %al, %eax
addq %rax, %r15
incq %r12
movq (%rbx), %r8
movq 0x8(%rbx), %rax
subq %r8, %rax
cmpq %rax, %r12
jbe 0x20b924
cmpq %r14, %r15
movq 0x20(%rsp), %r12
jne 0x20bd2d
leaq 0x1ba862(%rip), %rsi    # 0x3c61c8
movq %r13, %rdi
xorl %eax, %eax
callq 0x10906e
leaq 0x1ba889(%rip), %rsi    # 0x3c6200
movq %r13, %rdi
movq 0x40(%rsp), %rdx
xorl %eax, %eax
callq 0x10906e
movq (%rbx), %rdx
leaq 0x1ba88e(%rip), %rsi    # 0x3c621e
movq %r13, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x10906e
movq (%rbx), %rdx
leaq 0x1ba8ba(%rip), %rsi    # 0x3c6261
movq %r13, %rdi
xorl %eax, %eax
callq 0x10906e
leaq 0x1ba8e8(%rip), %rsi    # 0x3c62a0
movq %r13, %rdi
xorl %eax, %eax
callq 0x10906e
movq (%rbx), %rdx
leaq 0x1ba90c(%rip), %rsi    # 0x3c62d8
movq %r13, %rdi
xorl %eax, %eax
callq 0x10906e
cmpq $0x0, 0x48(%rbx)
je 0x20bb12
movq 0x2b8500(%rip), %r14    # 0x4c3ee8
xorl %ebp, %ebp
movq 0x10(%rsp), %r15
movq %rbx, 0x18(%rsp)
movq (%r15), %rax
movq %rbp, %r13
shlq $0x4, %r13
movq (%rax,%r13), %rdx
testq %rdx, %rdx
je 0x20baf8
leaq 0x17f799(%rip), %rdi    # 0x38b1ab
movq %rbp, %rsi
xorl %eax, %eax
callq 0x17070
movq 0x10(%rbx), %rcx
movq 0x18(%rbx), %rax
testq %rcx, %rcx
je 0x20ba36
testq %rax, %rax
je 0x20ba4b
cmpq %rbp, %rcx
seta %cl
jmp 0x20ba3c
testq %rax, %rax
sete %cl
cmpq %rbp, %rax
setb %al
orb %cl, %al
je 0x20ba54
jmp 0x20baf8
cmpq %rbp, %rcx
ja 0x20baf8
movq 0x38(%rbx), %rax
movq %r14, %rbx
movq 0x8(%rax,%r13), %r14
testq %r14, %r14
je 0x20ba95
movq 0x18(%rsp), %rax
movq (%rax), %r15
movq 0x20(%rax), %r12
movq (%rbx), %rdi
movq (%r14), %rdx
movq %r12, %rsi
movq %r15, %rcx
callq 0x1a1120
movl $0xa, %edi
callq 0x17a20
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x20ba71
movq 0x10(%rsp), %r15
movq (%r15), %rax
movq 0x8(%rax,%r13), %rdi
testq %rdi, %rdi
movq 0x20(%rsp), %r12
movq %rbx, %r14
movq 0x18(%rsp), %rbx
je 0x20baf8
movq %r14, %rbx
movq 0x8(%rdi), %r14
testq %r14, %r14
leaq 0x1ba5a2(%rip), %r13    # 0x3c6067
je 0x20bae3
movq %r13, %rsi
movl $0xb1, %edx
callq 0x109670
movq %r14, %rdi
movq 0x8(%r14), %rax
movq %rax, %r14
testq %rax, %rax
jne 0x20bac7
movq %r13, %rsi
movl $0xad, %edx
callq 0x109670
movq %rbx, %r14
movq 0x18(%rsp), %rbx
incq %rbp
cmpq 0x48(%rbx), %rbp
jb 0x20b9f4
movq 0x90(%rsp), %r13
movq 0x30(%rsp), %rbp
movl 0x4(%rsp), %edx
movq 0x8(%rsp), %r15
testb %dl, %dl
jne 0x20bbd8
movl %edx, %r14d
cmpq $0x0, 0x58(%rbx)
je 0x20bb70
movq 0x90(%rbx), %rdx
leaq 0x1ba590(%rip), %rsi    # 0x3c60cb
leaq 0x1ba584(%rip), %r9     # 0x3c60c6
movl $0xff, %ecx
movq %r13, %rdi
movq %r12, %r8
xorl %eax, %eax
callq 0x10906e
movq 0x58(%rbx), %rcx
movq 0x80(%rbx), %rdi
movq 0x90(%rbx), %rdx
movl $0x10, %esi
callq 0x125658
movq 0x98(%rbx), %rcx
leaq 0x1ba576(%rip), %rsi    # 0x3c60f4
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x10906e
movq 0x78(%rbx), %rax
imulq 0x98(%rbx), %rax
addq $0x10, %rax
movq %rax, %xmm1
punpckldq 0x144d38(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x144d40(%rip), %xmm1   # 0x3508f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x144d3c(%rip), %xmm0   # 0x350900
leaq 0x1ba54a(%rip), %rsi    # 0x3c6115
movq %r13, %rdi
movb $0x1, %al
callq 0x10906e
movl %r14d, %edx
movl %edx, %ebp
testb %dl, %dl
jne 0x20bc2b
movq (%r15), %r14
testq %r14, %r14
je 0x20bc2b
movq %r15, %r13
movq (%rbx), %r15
movl $0x8, %r12d
movzbl %r15b, %edi
movq %r14, %rsi
callq 0x17f80
shrq $0x8, %r15
decq %r12
jne 0x20bbf2
movq (%r13), %r14
movl 0x28(%rsp), %r15d
movl $0x8, %r12d
movzbl %r15b, %edi
movq %r14, %rsi
callq 0x17f80
shrq $0x8, %r15
decq %r12
jne 0x20bc16
movq 0x50(%rbx), %rdi
callq 0x101f02
movq 0x58(%rbx), %rdi
callq 0x101f02
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x20bc6c
leaq 0x1ba41a(%rip), %rsi    # 0x3c6067
movl $0x290, %edx            # imm = 0x290
callq 0x109670
xorpd %xmm0, %xmm0
movq 0x10(%rsp), %rax
movupd %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq 0xa8(%rbx), %rdi
leaq 0x1ba3ed(%rip), %r14    # 0x3c6067
movq %r14, %rsi
movl $0x291, %edx            # imm = 0x291
callq 0x109670
movq 0x70(%rbx), %rdi
movq %r14, %rsi
movl $0x292, %edx            # imm = 0x292
callq 0x109670
movq 0x80(%rbx), %rdi
testq %rdi, %rdi
je 0x20bccd
movq %rbx, %r14
subq $-0x80, %r14
leaq 0x1ba3b5(%rip), %rsi    # 0x3c6067
movl $0x293, %edx            # imm = 0x293
callq 0x109670
xorpd %xmm0, %xmm0
movupd %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq 0x60(%rbx), %rdi
callq 0xed7bf
leaq 0x1ba38a(%rip), %rsi    # 0x3c6067
movq %rbx, %rdi
movl $0x295, %edx            # imm = 0x295
callq 0x109670
movl 0x2c(%rsp), %eax
xorl %ecx, %ecx
movb %al, %cl
testb %bpl, %bpl
movl $0x1, %ebx
cmovel %ecx, %ebx
cmpq $0x0, 0x38(%rsp)
je 0x20bd0f
leaq 0x38(%rsp), %rdi
callq 0x1ae1ac
movzbl %bl, %eax
negl %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x81774
callq 0x817ad
movq %r14, %rdi
movq %r15, %rsi
callq 0x817e6