// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-lcpintervals.c
// Function: gt_runscanesa
int gt_runscanesa(const char *inputindex, unsigned int mode,
                  GtLogger *logger,GtError *err)
{
  bool haserr = false;
  Sequentialsuffixarrayreader *ssar;

  gt_error_check(err);
  ssar = gt_newSequentialsuffixarrayreaderfromfile(inputindex,
                                                   SARR_LCPTAB |
                                                   SARR_SUFTAB |
                                                   SARR_ESQTAB,
                                                   true,
                                                   logger,
                                                   err);
  if (ssar == NULL)
  {
    haserr = true;
  }
  if (!haserr && gt_esa_scantables(ssar, mode, 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
movq %rcx, %r12
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
testq %rcx, %rcx
je 0x14cb77
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
jne 0x14d09c
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rbx, %rcx
movq %r12, %r8
callq 0x1516ac
movq %rax, 0x40(%rsp)
testq %rax, %rax
sete %r14b
je 0x14cc21
movq %rax, %rbx
andq $0x0, 0x28(%rsp)
movq %rax, %rdi
callq 0x151d3d
movq %rax, %r13
cmpl $0x2, %ebp
je 0x14cc29
cmpl $0x1, %ebp
jne 0x14cfac
movb %r14b, 0xf(%rsp)
xorl %r15d, %r15d
leaq 0x30(%rsp), %r14
xorl %eax, %eax
movq %rax, %rbp
subq $0x1, %r13
jb 0x14cfd0
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x151824
testl %eax, %eax
js 0x14cfc8
je 0x14cfd0
addq 0x30(%rsp), %r15
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x151a75
testl %eax, %eax
js 0x14d054
je 0x14cfd0
movq %rbp, %rax
addq 0x28(%rsp), %rax
jmp 0x14cbce
movb $0x1, %bpl
jmp 0x14d006
movq %r12, 0x10(%rsp)
movb %r14b, 0xf(%rsp)
xorl %r15d, %r15d
xorl %eax, %eax
xorl %edi, %edi
xorl %r8d, %r8d
movq %r13, 0x38(%rsp)
testb $0x1, %al
jne 0x14cfc1
cmpq %r13, %r8
jae 0x14cfc1
cmpb $0x1, 0x40(%rbx)
jne 0x14cd92
movq (%rbx), %r12
movl 0xd4(%r12), %eax
cmpl 0xd0(%r12), %eax
jb 0x14ccd4
movq %r8, %r13
movq %rdi, %rbp
movq 0xd8(%r12), %rdi
movq 0xe0(%r12), %rcx
movl $0x1000, %edx           # imm = 0x1000
pushq $0x1
popq %rsi
callq 0x17ad0
movq %rax, %r14
movl %r14d, 0xd0(%r12)
movq 0xe0(%r12), %rdi
callq 0x17e70
testl %eax, %eax
jne 0x14d082
andl $0x0, 0xd4(%r12)
xorl %eax, %eax
testl %r14d, %r14d
movq %rbp, %rdi
movq %r13, %r8
movq 0x38(%rsp), %r13
je 0x14cfd0
movq 0xd8(%r12), %rcx
leal 0x1(%rax), %edx
movl %edx, 0xd4(%r12)
movl %eax, %eax
movzbl (%rcx,%rax), %r12d
cmpq $0xff, %r12
jne 0x14cde4
movq (%rbx), %r12
movl 0xec(%r12), %eax
cmpl 0xe8(%r12), %eax
jb 0x14cd72
movq %r8, %r13
movq %rdi, %rbp
movq 0xf0(%r12), %rdi
movq 0xf8(%r12), %rcx
movl $0x1000, %edx           # imm = 0x1000
pushq $0x10
popq %rsi
callq 0x17ad0
movq %rax, %r14
movl %r14d, 0xe8(%r12)
movq 0xf8(%r12), %rdi
callq 0x17e70
testl %eax, %eax
jne 0x14d102
andl $0x0, 0xec(%r12)
xorl %eax, %eax
testl %r14d, %r14d
movq %rbp, %rdi
movq %r13, %r8
movq 0x38(%rsp), %r13
je 0x14d01b
movq 0xf0(%r12), %rcx
leal 0x1(%rax), %edx
movl %edx, 0xec(%r12)
movl %eax, %eax
shlq $0x4, %rax
movq 0x8(%rcx,%rax), %r12
jmp 0x14cde4
movq 0x20(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x14cfcd
movq (%rbx), %rcx
movq 0x60(%rcx), %rdx
leaq 0x1(%rax), %rsi
movq %rsi, 0x20(%rbx)
movzbl (%rdx,%rax), %r12d
cmpq $0xff, %r12
jne 0x14cde4
movq 0x68(%rcx), %rcx
movq 0x28(%rbx), %rdx
movq %rdx, %rsi
shlq $0x4, %rsi
cmpq %rax, (%rcx,%rsi)
jne 0x14d0ca
addq %rsi, %rcx
incq %rdx
movq %rdx, 0x28(%rbx)
movq 0x8(%rcx), %r12
movq %r12, 0x30(%rsp)
movq (%rbx), %r14
cmpb $0x1, 0x40(%rbx)
jne 0x14ce15
movq 0xb0(%r14), %rcx
testq %rcx, %rcx
je 0x14ce35
movl 0xa4(%r14), %edx
cmpl 0xa0(%r14), %edx
jae 0x14ce4c
xorl %eax, %eax
jmp 0x14cf49
movq 0x58(%r14), %rax
movq 0x18(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rbx)
movq (%rax,%rcx,8), %rcx
movq %rcx, 0x28(%rsp)
xorl %eax, %eax
jmp 0x14cf9e
movl 0x8c(%r14), %ecx
cmpl 0x88(%r14), %ecx
jae 0x14ceba
xorl %eax, %eax
jmp 0x14cf83
movq %r8, 0x20(%rsp)
movq %rdi, 0x18(%rsp)
movq 0xa8(%r14), %rdi
movl $0x1000, %edx           # imm = 0x1000
pushq $0x8
popq %rsi
callq 0x17ad0
movq %rax, %rbp
movl %eax, 0xa0(%r14)
movq 0xb0(%r14), %rdi
callq 0x17e70
testl %eax, %eax
je 0x14cf28
movq 0x10(%rsp), %rdi
leaq 0x1acd35(%rip), %rsi    # 0x2f9bc9
leaq 0x235e90(%rip), %rdx    # 0x382d2b
xorl %eax, %eax
callq 0x89dbb
movl 0xa4(%r14), %edx
movb $0x1, %al
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %r8
jmp 0x14cf49
movq %r8, 0x20(%rsp)
movq %rdi, 0x18(%rsp)
movq 0x90(%r14), %rdi
movq 0x98(%r14), %rcx
movl $0x1000, %edx           # imm = 0x1000
pushq $0x4
popq %rsi
callq 0x17ad0
movq %rax, %rbp
movl %eax, 0x88(%r14)
movq 0x98(%r14), %rdi
callq 0x17e70
testl %eax, %eax
je 0x14cf62
movq 0x10(%rsp), %rdi
leaq 0x1accc4(%rip), %rsi    # 0x2f9bc9
leaq 0x1ad0c7(%rip), %rdx    # 0x2f9fd3
xorl %eax, %eax
callq 0x89dbb
movl 0x8c(%r14), %ecx
movb $0x1, %al
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %r8
jmp 0x14cf83
andl $0x0, 0xa4(%r14)
xorl %edx, %edx
movl $0x0, %eax
testl %ebp, %ebp
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %r8
je 0x14d03c
movq 0xa8(%r14), %rcx
leal 0x1(%rdx), %esi
movl %esi, 0xa4(%r14)
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
jmp 0x14cf99
andl $0x0, 0x8c(%r14)
xorl %ecx, %ecx
movl $0x0, %eax
testl %ebp, %ebp
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %r8
je 0x14d03c
movq 0x90(%r14), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0x8c(%r14)
movl %ecx, %ecx
movl (%rdx,%rcx,4), %ecx
movq %rcx, 0x28(%rsp)
addq %r12, %r15
addq %rcx, %rdi
incq %r8
jmp 0x14cc42
leaq 0x1f7557(%rip), %rsi    # 0x34450a
movq %r12, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x89dbb
jmp 0x14cfc8
movq %rdi, %rbp
testb $0x1, %al
je 0x14cfd0
movb $0x1, %bpl
jmp 0x14cff7
movq %rdi, %rbp
leaq 0x1f754f(%rip), %rdi    # 0x344526
movq %rbp, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x1f754d(%rip), %rdi    # 0x344535
movq %r15, %rsi
xorl %eax, %eax
callq 0x17070
movb 0xf(%rsp), %bpl
testq %rbx, %rbx
je 0x14d006
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
leaq 0x1acafb(%rip), %rsi    # 0x2f9b1d
leaq 0x1f741e(%rip), %rdx    # 0x344447
movq 0x10(%rsp), %rdi
movl $0x123, %ecx            # imm = 0x123
xorl %eax, %eax
callq 0x89dbb
jmp 0x14cfc8
leaq 0x1acf78(%rip), %rsi    # 0x2f9fbb
movq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x89dbb
jmp 0x14cfc8
movq 0x2eaf0d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x197fae(%rip), %rsi    # 0x2e5013
leaq 0x1f7480(%rip), %rdx    # 0x3444ec
leaq 0x1f7485(%rip), %rcx    # 0x3444f8
leaq 0x1f73cd(%rip), %r8     # 0x344447
movl $0x115, %r9d            # imm = 0x115
jmp 0x14d0f6
movq 0x2eaedf(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1acb36(%rip), %rsi    # 0x2f9bc9
leaq 0x1acb51(%rip), %rdx    # 0x2f9beb
jmp 0x14d11a
movq 0x2eaec5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x197f66(%rip), %rsi    # 0x2e5013
leaq 0x19810b(%rip), %rdx    # 0x2e51bf
leaq 0x1f73e2(%rip), %rcx    # 0x34449d
leaq 0x1f7385(%rip), %r8     # 0x344447
movl $0x13e, %r9d            # imm = 0x13E
jmp 0x14d0f6
movq 0x2eae97(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x197f38(%rip), %rsi    # 0x2e5013
leaq 0x1aca78(%rip), %rdx    # 0x2f9b5a
leaq 0x1f740f(%rip), %rcx    # 0x3444f8
leaq 0x1f7357(%rip), %r8     # 0x344447
movl $0x123, %r9d            # imm = 0x123
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2eae5f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1acab6(%rip), %rsi    # 0x2f9bc9
leaq 0x20aedf(%rip), %rdx    # 0x357ff9
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0