// File: /workspace/github_c_makefile_star2_O2/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, %r13d
movq %r8, 0x28(%rsp)
movq %rcx, %r12
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r15
movq 0x98(%rsp), %r14
testq %r14, %r14
je 0x1b5d8f
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1b642c
movq 0x90(%rsp), %rcx
movb 0x88(%rsp), %al
notb %al
andb 0x80(%rsp), %al
movzbl %al, %edx
pushq $0x7
popq %rsi
movq %r15, %rdi
movq %r14, %r8
callq 0x1516ac
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x1b5ed5
movq %r14, %rdi
movq %rax, %r14
movq %r15, 0x30(%rsp)
movq %rbx, 0x18(%rsp)
testq %rdi, %rdi
je 0x1b5de8
callq 0x89eb7
testb %al, %al
jne 0x1b645a
leaq 0x1a705c(%rip), %rsi    # 0x35ce4b
movl $0xb0, %edi
movl $0x212, %edx            # imm = 0x212
callq 0x93160
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rax)
andq $0x0, 0x48(%rax)
movq %r14, %rdi
callq 0x151c21
movq %rax, %r15
movq %r14, %rdi
callq 0x151c64
movq %r15, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x72260
movq %rax, 0x60(%rbx)
movq 0x18(%rsp), %r15
movq %r15, (%rbx)
movq %r14, %rdi
callq 0x151c21
movq %rax, 0x20(%rbx)
movq %rax, %rdi
callq 0x754dd
movq %rax, %rdi
callq 0x56c8e
movl %eax, 0x14(%rsp)
movq %r14, %rdi
callq 0x151c64
movl %eax, 0x28(%rbx)
movb %r13b, 0x69(%rbx)
movq %rbp, 0x10(%rbx)
movq %r12, 0x18(%rbx)
movq 0x20(%rbx), %rdi
callq 0x7055e
movq %rax, 0x8(%rbx)
movb 0x88(%rsp), %bpl
movb %bpl, 0x68(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x80(%rbx)
movups %xmm0, 0x90(%rbx)
movq 0x28(%rsp), %r12
cmpb $0x0, (%r12)
je 0x1b5edd
movq %r15, %rdi
shrq $0x2, %rdi
movl %r15d, %eax
andl $0x3, %eax
cmpq $0x1, %rax
sbbq $-0x1, %rdi
movq %rdi, 0x78(%rbx)
leaq 0x1a6f82(%rip), %rsi    # 0x35ce4b
movl $0x22d, %edx            # imm = 0x22D
callq 0x93160
jmp 0x1b5ee4
movb $0x1, %bpl
jmp 0x1b6229
andq $0x0, 0x78(%rbx)
xorl %eax, %eax
movq %rax, 0x70(%rbx)
testb %bpl, %bpl
je 0x1b5f12
movq (%rbx), %rdi
leaq 0x1a6f54(%rip), %rsi    # 0x35ce4b
movl $0x232, %edx            # imm = 0x232
callq 0x93160
movq %rax, 0xa8(%rbx)
movq %r14, %rdi
callq 0x151ca6
jmp 0x1b5f1c
andq $0x0, 0xa8(%rbx)
xorl %eax, %eax
leaq 0x38(%rbx), %rcx
movq %rcx, 0x8(%rsp)
movq %rax, 0xa0(%rbx)
movq (%rbx), %rdx
movq 0x8(%rbx), %rcx
cmpq %rcx, %rdx
jbe 0x1b5f56
leaq 0x1a6f3a(%rip), %rsi    # 0x35ce79
movq 0x98(%rsp), %rdi
xorl %eax, %eax
callq 0x89dbb
movb $0x1, %bpl
jmp 0x1b615a
cmpb $0x0, (%r12)
je 0x1b5fe9
movq %rbx, %r15
addq $0x50, %rbx
leaq 0x1a6f36(%rip), %rsi    # 0x35cea5
leaq 0x13fb7b(%rip), %rdx    # 0x2f5af1
leaq 0x1a6ece(%rip), %rcx    # 0x35ce4b
movq %r12, %rdi
movl $0x247, %r8d            # imm = 0x247
movq 0x98(%rsp), %r9
callq 0x8a449
movq %rax, (%rbx)
testq %rax, %rax
je 0x1b5ff2
cmpb $0x1, 0x69(%r15)
movq %r15, %rbx
jne 0x1b6008
leaq 0x1a6efe(%rip), %rsi    # 0x35ceaa
leaq 0x13fb3e(%rip), %rdx    # 0x2f5af1
leaq 0x1a6e91(%rip), %rcx    # 0x35ce4b
movq %r12, %rdi
movl $0x250, %r8d            # imm = 0x250
movq 0x98(%rsp), %r9
callq 0x8a449
movq %rax, 0x58(%rbx)
leaq 0x638(%rip), %rcx       # 0x1b6613
movq %rcx, 0x30(%rbx)
testq %rax, %rax
jne 0x1b6013
jmp 0x1b5f4e
leaq 0x4c8(%rip), %rax       # 0x1b64b8
jmp 0x1b600f
leaq 0x61a(%rip), %rax       # 0x1b6613
movq %rax, 0x30(%r15)
movb $0x1, %bpl
movq %r15, %rbx
jmp 0x1b615a
leaq 0x604(%rip), %rax       # 0x1b6613
movq %rax, 0x30(%rbx)
subq $0x8, %rsp
leaq 0x8d6(%rip), %rax       # 0x1b68f4
leaq 0x8cb(%rip), %r10       # 0x1b68f0
leaq 0x742(%rip), %rsi       # 0x1b676e
leaq 0x74f(%rip), %rdx       # 0x1b6782
leaq 0x759(%rip), %rcx       # 0x1b6793
leaq 0x803(%rip), %r9        # 0x1b6844
movq %r14, %rdi
xorl %r8d, %r8d
pushq 0xa0(%rsp)
pushq 0xa0(%rsp)
pushq %rbx
pushq %rax
pushq %r10
callq 0x2b00bc
addq $0x30, %rsp
movl %eax, 0x10(%rsp)
cmpb $0x0, (%r12)
je 0x1b623e
movb $0x1, %bpl
cmpl $0x0, 0x10(%rsp)
jne 0x1b615a
cmpq $0x0, 0x58(%rbx)
movq 0x90(%rsp), %r15
je 0x1b60d1
movq 0x90(%rbx), %rdx
leaq 0x1a6e13(%rip), %rsi    # 0x35ceaf
leaq 0x1a6e07(%rip), %r9     # 0x35ceaa
movl $0xff, %ecx
movq %r15, %rdi
movq 0x28(%rsp), %r8
xorl %eax, %eax
callq 0x92e71
movq 0x58(%rbx), %rcx
movq 0x80(%rbx), %rdi
movq 0x90(%rbx), %rdx
pushq $0x10
popq %rsi
callq 0xb302c
movq 0x98(%rbx), %rcx
leaq 0x1a6df9(%rip), %rsi    # 0x35ced8
xorl %ebp, %ebp
movq %r15, %rdi
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x92e71
movq 0x78(%rbx), %rax
imulq 0x98(%rbx), %rax
addq $0x10, %rax
movq %rax, %xmm1
punpckldq 0x1317d3(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1317db(%rip), %xmm1   # 0x2e78f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1317d7(%rip), %xmm0   # 0x2e7900
leaq 0x1a6dc9(%rip), %rsi    # 0x35cef9
movq %r15, %rdi
movb $0x1, %al
callq 0x92e71
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x1b615a
movq (%rbx), %rsi
callq 0x1b6901
movq 0x50(%rbx), %rdi
movl 0x14(%rsp), %esi
callq 0x1b6901
xorl %ebp, %ebp
movq 0x50(%rbx), %rdi
callq 0x8a5e5
movq 0x58(%rbx), %rdi
callq 0x8a5e5
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x1b6196
leaq 0x1a6ccf(%rip), %rsi    # 0x35ce4b
movl $0x290, %edx            # imm = 0x290
callq 0x936f9
xorps %xmm0, %xmm0
movq 0x8(%rsp), %rax
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq 0xa8(%rbx), %rdi
movq %rbx, %r15
leaq 0x1a6ca4(%rip), %rbx    # 0x35ce4b
movq %rbx, %rsi
movl $0x291, %edx            # imm = 0x291
callq 0x936f9
movq 0x70(%r15), %rdi
movq %rbx, %rsi
movl $0x292, %edx            # imm = 0x292
callq 0x936f9
movq 0x80(%r15), %rdi
testq %rdi, %rdi
je 0x1b61f4
movq %r15, %rbx
subq $-0x80, %rbx
leaq 0x1a6c6c(%rip), %rsi    # 0x35ce4b
movl $0x293, %edx            # imm = 0x293
callq 0x936f9
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
testq %r14, %r14
sete %bl
movq 0x60(%r15), %rdi
callq 0x722ae
leaq 0x1a6c41(%rip), %rsi    # 0x35ce4b
movq %r15, %rdi
movl $0x295, %edx            # imm = 0x295
callq 0x936f9
orb %bl, %bpl
testq %r14, %r14
je 0x1b6229
leaq 0x40(%rsp), %rdi
callq 0x1517e5
movzbl %bpl, %eax
negl %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x48(%rbx), %rax
xorl %ecx, %ecx
xorl %edx, %edx
xorl %r12d, %r12d
cmpq %rdx, %rax
je 0x1b626a
movq 0x8(%rsp), %rsi
movq (%rsi), %rsi
movq (%rsi,%rcx), %rsi
imulq %rdx, %rsi
addq %rsi, %r12
incq %rdx
addq $0x10, %rcx
jmp 0x1b6249
cmpb $0x1, 0x68(%rbx)
jne 0x1b62ae
xorl %r13d, %r13d
xorl %r15d, %r15d
movq (%rbx), %r8
movq 0x8(%rbx), %rax
subq %r8, %rax
cmpq %rax, %r13
ja 0x1b62a5
movq 0x20(%rbx), %rdi
movl 0x28(%rbx), %esi
movq 0x60(%rbx), %rdx
movq %r13, %rcx
callq 0x71e27
xorb $0x1, %al
movzbl %al, %eax
addq %rax, %r15
incq %r13
jmp 0x1b6276
cmpq %r12, %r15
jne 0x1b6492
leaq 0x1a6cf7(%rip), %rsi    # 0x35cfac
movq 0x90(%rsp), %r15
movq %r15, %rdi
xorl %eax, %eax
callq 0x92e71
leaq 0x1a6d16(%rip), %rsi    # 0x35cfe4
movq %r15, %rdi
movq 0x30(%rsp), %rdx
xorl %eax, %eax
callq 0x92e71
movq (%rbx), %rdx
leaq 0x1a6d1b(%rip), %rsi    # 0x35d002
movq %r15, %rdi
movq %r12, %rcx
xorl %eax, %eax
callq 0x92e71
movq (%rbx), %rdx
leaq 0x1a6d47(%rip), %rsi    # 0x35d045
movq %r15, %rdi
xorl %eax, %eax
callq 0x92e71
leaq 0x1a6d75(%rip), %rsi    # 0x35d084
movq %r15, %rdi
xorl %eax, %eax
callq 0x92e71
movq (%rbx), %rdx
leaq 0x1a6d99(%rip), %rsi    # 0x35d0bc
movq %r15, %rdi
xorl %eax, %eax
callq 0x92e71
leaq 0x16bec9(%rip), %r12    # 0x3221fd
pushq $0xa
popq %rbp
xorl %r13d, %r13d
movq %r14, 0x38(%rsp)
movq %rbx, 0x20(%rsp)
cmpq 0x48(%rbx), %r13
jae 0x1b6071
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq %r13, %r15
shlq $0x4, %r15
movq (%rax,%r15), %rdx
testq %rdx, %rdx
je 0x1b6424
movq %r12, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x17070
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1b692d
testb %al, %al
je 0x1b6424
movq (%rbx), %r12
movq %rbx, %rax
movq 0x20(%rbx), %rbx
movq 0x38(%rax), %rax
leaq (%rax,%r15), %r14
addq $0x8, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x1b63cd
movq 0x281b01(%rip), %rax    # 0x437eb0
movq (%rax), %rdi
movq (%r14), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x142e08
movl %ebp, %edi
callq 0x179c0
addq $0x8, %r14
jmp 0x1b63a0
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax,%r15), %rdi
testq %rdi, %rdi
movq 0x38(%rsp), %r14
movq 0x20(%rsp), %rbx
leaq 0x16be0f(%rip), %r12    # 0x3221fd
je 0x1b6424
leaq 0x1a6a54(%rip), %r15    # 0x35ce4b
movq 0x8(%rdi), %rbx
testq %rbx, %rbx
je 0x1b6412
movq %r15, %rsi
movl $0xb1, %edx
callq 0x936f9
movq %rbx, %rdi
jmp 0x1b63f7
movq %r15, %rsi
movl $0xad, %edx
callq 0x936f9
movq 0x20(%rsp), %rbx
incq %r13
jmp 0x1b6344
movq 0x281b35(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x12ebd6(%rip), %rsi    # 0x2e5013
leaq 0x12ed7b(%rip), %rdx    # 0x2e51bf
leaq 0x1a69ef(%rip), %rcx    # 0x35ce3a
leaq 0x1a69f9(%rip), %r8     # 0x35ce4b
movl $0x2a7, %r9d            # imm = 0x2A7
jmp 0x1b6486
movq 0x281b07(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x12eba8(%rip), %rsi    # 0x2e5013
leaq 0x12ed4d(%rip), %rdx    # 0x2e51bf
leaq 0x1a69ea(%rip), %rcx    # 0x35ce63
leaq 0x1a69cb(%rip), %r8     # 0x35ce4b
movl $0x211, %r9d            # imm = 0x211
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x281acf(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1a6c59(%rip), %rsi    # 0x35d0fc
movq %r12, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0