// File: /workspace/github_c_makefile_star2_O1/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 $0x58, %rsp
movq %rcx, %r12
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
testq %rcx, %rcx
je 0x1a985a
movq %r12, %rdi
callq 0x101a9a
testb %al, %al
jne 0x1a9e05
movq %r15, %rdi
movl $0x7, %esi
movl $0x1, %edx
movq %r14, %rcx
movq %r12, %r8
callq 0x1ae094
movq %rax, 0x48(%rsp)
testq %rax, %rax
sete %bl
je 0x1a9dda
movq %rax, %r15
movq $0x0, 0x28(%rsp)
movq %rax, %rdi
callq 0x1ae599
movq %rax, %r13
cmpl $0x1, %ebp
movb %bl, 0xf(%rsp)
je 0x1a9d08
cmpl $0x2, %ebp
jne 0x1a9d7b
testq %r13, %r13
je 0x1a9d9a
movq %r12, 0x38(%rsp)
movl $0x1, %edi
xorl %r12d, %r12d
movq $0x0, 0x10(%rsp)
xorl %r14d, %r14d
movq %r15, 0x40(%rsp)
cmpb $0x1, 0x40(%r15)
jne 0x1a9990
movq (%r15), %rbx
movl 0xd4(%rbx), %eax
cmpl 0xd0(%rbx), %eax
jb 0x1a9960
movq %r8, 0x18(%rsp)
movq %r14, %r15
movq %r12, %r14
movq %rdi, %r12
movq 0xd8(%rbx), %rdi
movq 0xe0(%rbx), %rcx
movl $0x1, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x17b40
movq %rax, %rbp
movl %ebp, 0xd0(%rbx)
movq 0xe0(%rbx), %rdi
callq 0x17f00
testl %eax, %eax
jne 0x1a9e0a
movl $0x0, 0xd4(%rbx)
testl %ebp, %ebp
movq %r12, %rdi
movq %r14, %r12
movq %r15, %r14
movq 0x40(%rsp), %r15
movq 0x18(%rsp), %r8
je 0x1a9c21
movq 0xd8(%rbx), %rax
movl 0xd4(%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0xd4(%rbx)
movb (%rax,%rcx), %r8b
xorl %eax, %eax
testb %al, %al
jne 0x1a99be
cmpb $-0x1, %r8b
je 0x1a9b40
movzbl %r8b, %eax
jmp 0x1a99e9
movq 0x20(%r15), %rax
cmpq 0x10(%r15), %rax
jae 0x1a99be
movq (%r15), %rcx
movq 0x60(%rcx), %rdx
leaq 0x1(%rax), %rsi
movq %rsi, 0x20(%r15)
movzbl (%rdx,%rax), %r8d
cmpq $0xff, %r8
je 0x1a99c2
movq %r8, 0x30(%rsp)
jmp 0x1a99ee
xorl %ebp, %ebp
jmp 0x1a99f1
movq 0x68(%rcx), %rcx
movq 0x28(%r15), %rdx
movq %rdx, %rsi
shlq $0x4, %rsi
cmpq %rax, (%rcx,%rsi)
jne 0x1a9e0f
addq %rsi, %rcx
incq %rdx
movq %rdx, 0x28(%r15)
movq 0x8(%rcx), %rax
movq %rax, 0x30(%rsp)
movb $0x1, %bpl
testb %bpl, %bpl
je 0x1a9da9
movq (%r15), %rbp
addq 0x30(%rsp), %r14
cmpb $0x1, 0x40(%r15)
jne 0x1a9a9c
movq 0xb0(%rbp), %rcx
testq %rcx, %rcx
je 0x1a9aba
movl 0xa4(%rbp), %eax
cmpl 0xa0(%rbp), %eax
jb 0x1a9c44
movq %r8, 0x18(%rsp)
movq %rdi, 0x20(%rsp)
movq 0xa8(%rbp), %rdi
movl $0x8, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x17b40
movq %rax, %rbx
movl %ebx, 0xa0(%rbp)
movq 0xb0(%rbp), %rdi
callq 0x17f00
testl %eax, %eax
je 0x1a9c28
movq 0x38(%rsp), %rdi
leaq 0x1b91d6(%rip), %rsi    # 0x362c4e
leaq 0x2425f0(%rip), %rdx    # 0x3ec06f
xorl %eax, %eax
callq 0x1019cf
movb $0x1, %al
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %r8
jmp 0x1a9c44
movq 0x58(%rbp), %rax
movq 0x18(%r15), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%r15)
movq (%rax,%rcx,8), %rax
movq %rax, 0x28(%rsp)
jmp 0x1a9cb3
movl 0x8c(%rbp), %eax
cmpl 0x88(%rbp), %eax
jb 0x1a9c8b
movq %r8, 0x18(%rsp)
movq %rdi, 0x20(%rsp)
movq 0x90(%rbp), %rdi
movq 0x98(%rbp), %rcx
movl $0x4, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x17b40
movq %rax, %rbx
movl %ebx, 0x88(%rbp)
movq 0x98(%rbp), %rdi
callq 0x17f00
testl %eax, %eax
je 0x1a9c73
movq 0x38(%rsp), %rdi
leaq 0x1b9132(%rip), %rsi    # 0x362c4e
leaq 0x1b954c(%rip), %rdx    # 0x36306f
xorl %eax, %eax
callq 0x1019cf
movb $0x1, %al
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %r8
jmp 0x1a9c8b
movq (%r15), %rbx
movl 0xec(%rbx), %eax
cmpl 0xe8(%rbx), %eax
jb 0x1a9bbe
movq %r8, 0x18(%rsp)
movq %r14, %r15
movq %r12, %r14
movq %rdi, %r12
movq 0xf0(%rbx), %rdi
movq 0xf8(%rbx), %rcx
movl $0x10, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x17b40
movq %rax, %rbp
movl %ebp, 0xe8(%rbx)
movq 0xf8(%rbx), %rdi
callq 0x17f00
testl %eax, %eax
jne 0x1a9e14
movl $0x0, 0xec(%rbx)
testl %ebp, %ebp
movq %r12, %rdi
movq %r14, %r12
movq %r15, %r14
movq 0x40(%rsp), %r15
movq 0x18(%rsp), %r8
je 0x1a9d00
movq 0xf0(%rbx), %rax
movl 0xec(%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0xec(%rbx)
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rax
movq %rax, 0x50(%rsp)
xorl %ebp, %ebp
testb %bpl, %bpl
je 0x1a9c60
movq %rdi, 0x20(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x1b8fa8(%rip), %rsi    # 0x362ba2
leaq 0x203a75(%rip), %rdx    # 0x3ad676
movl $0x123, %ecx            # imm = 0x123
xorl %eax, %eax
movq %r8, %rbx
callq 0x1019cf
movq %rbx, %r8
movq 0x20(%rsp), %rdi
movb $0x1, %al
movq %rax, 0x10(%rsp)
jmp 0x1a9c6a
movb $0x1, %al
jmp 0x1a997c
movl $0x0, 0xa4(%rbp)
testl %ebx, %ebx
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %r8
je 0x1a9cd8
movq 0xa8(%rbp), %rax
movl 0xa4(%rbp), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0xa4(%rbp)
movq (%rax,%rcx,8), %rax
jmp 0x1a9ca4
movq 0x50(%rsp), %rax
movq %rax, 0x30(%rsp)
xorb $0x1, %bpl
jmp 0x1a99f1
movl $0x0, 0x8c(%rbp)
testl %ebx, %ebx
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %r8
je 0x1a9cd8
movq 0x90(%rbp), %rax
movl 0x8c(%rbp), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x8c(%rbp)
movl (%rax,%rcx,4), %eax
movq %rax, 0x28(%rsp)
movb $0x1, %bl
testb %bl, %bl
je 0x1a9da9
addq 0x28(%rsp), %r12
testb $0x1, 0x10(%rsp)
jne 0x1a9da9
leaq 0x1(%rdi), %rax
cmpq %r13, %rdi
movq %rax, %rdi
jb 0x1a98d7
jmp 0x1a9da9
xorl %ebx, %ebx
movq 0x38(%rsp), %rdi
leaq 0x1b9371(%rip), %rsi    # 0x363057
xorl %eax, %eax
callq 0x1019cf
movq 0x18(%rsp), %r8
movq 0x20(%rsp), %rdi
movb $0x1, %al
movq %rax, 0x10(%rsp)
jmp 0x1a9cab
movb $0x1, %bpl
jmp 0x1a9be4
testq %r13, %r13
je 0x1a9d9a
movq %r12, %rbp
decq %r13
xorl %r12d, %r12d
movq $0x0, 0x10(%rsp)
xorl %r14d, %r14d
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x1ae1ec
movb $0x1, %bl
testl %eax, %eax
js 0x1a9d63
je 0x1a9d6a
addq 0x30(%rsp), %r14
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x1ae3ec
testl %eax, %eax
js 0x1a9e00
je 0x1a9d6a
addq 0x28(%rsp), %r12
xorl %ebx, %ebx
jmp 0x1a9d6a
movb $0x1, %al
movq %rax, 0x10(%rsp)
subq $0x1, %r13
setb %al
testb %bl, %bl
jne 0x1a9da9
testb %al, %al
je 0x1a9d26
jmp 0x1a9da9
leaq 0x2039b7(%rip), %rsi    # 0x3ad739
xorl %r14d, %r14d
movq %r12, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x1019cf
movb $0x1, %al
movq %rax, 0x10(%rsp)
jmp 0x1a9da6
xorl %r14d, %r14d
movq $0x0, 0x10(%rsp)
xorl %r12d, %r12d
movb $0x1, %al
testb $0x1, 0x10(%rsp)
jne 0x1a9dd8
leaq 0x20399c(%rip), %rdi    # 0x3ad755
movq %r12, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x20399a(%rip), %rdi    # 0x3ad764
movq %r14, %rsi
xorl %eax, %eax
callq 0x17070
movb 0xf(%rsp), %al
movl %eax, %ebx
cmpq $0x0, 0x48(%rsp)
je 0x1a9dec
leaq 0x48(%rsp), %rdi
callq 0x1ae1ac
movzbl %bl, %eax
negl %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x62f1c
callq 0x62e5a
callq 0x62ecc
callq 0x62e93
callq 0x62ef4
nopl (%rax)