// File: /workspace/github_c_makefile_star2_O3/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, %r13
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
testq %rcx, %rcx
je 0x1a103a
movq %r13, %rdi
callq 0xfcc32
testb %al, %al
jne 0x1a1529
movq %r15, %rdi
movl $0x7, %esi
movl $0x1, %edx
movq %rbx, %rcx
movq %r13, %r8
callq 0x1a5580
movq %rax, 0x40(%rsp)
testq %rax, %rax
sete %r14b
je 0x1a1429
movq %rax, %rbx
movq $0x0, 0x18(%rsp)
movq %rax, %rdi
callq 0x1a5a46
movq %rax, %rdi
cmpl $0x1, %ebp
movq %rax, 0x8(%rsp)
je 0x1a1431
cmpl $0x2, %ebp
jne 0x1a1487
testq %rdi, %rdi
je 0x1a149f
movq %r13, 0x10(%rsp)
movb %r14b, 0x7(%rsp)
movl $0x1, %r14d
xorl %r15d, %r15d
xorl %r8d, %r8d
xorl %r12d, %r12d
movq %rbx, 0x38(%rsp)
cmpb $0x1, 0x40(%rbx)
jne 0x1a11f7
movq (%rbx), %r13
movl 0xd4(%r13), %eax
cmpl 0xd0(%r13), %eax
jb 0x1a113c
movq %r14, %rbx
movq %r8, %r14
movq 0xd8(%r13), %rdi
movq 0xe0(%r13), %rcx
movl $0x1, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x17b40
movq %rax, %rbp
movl %ebp, 0xd0(%r13)
movq 0xe0(%r13), %rdi
callq 0x17f00
testl %eax, %eax
jne 0x1a152e
movl $0x0, 0xd4(%r13)
xorl %eax, %eax
testl %ebp, %ebp
movq 0x8(%rsp), %rdi
movq %r14, %r8
movq %rbx, %r14
movq 0x38(%rsp), %rbx
je 0x1a141c
movq 0xd8(%r13), %rcx
leal 0x1(%rax), %edx
movl %edx, 0xd4(%r13)
movl %eax, %eax
movzbl (%rcx,%rax), %ebp
cmpq $0xff, %rbp
jne 0x1a1248
movq (%rbx), %r13
movl 0xec(%r13), %eax
cmpl 0xe8(%r13), %eax
jb 0x1a11d9
movq %r14, %rbx
movq %r8, %r14
movq 0xf0(%r13), %rdi
movq 0xf8(%r13), %rcx
movl $0x10, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x17b40
movq %rax, %rbp
movl %ebp, 0xe8(%r13)
movq 0xf8(%r13), %rdi
callq 0x17f00
testl %eax, %eax
jne 0x1a1538
movl $0x0, 0xec(%r13)
xorl %eax, %eax
testl %ebp, %ebp
movq 0x8(%rsp), %rdi
movq %r14, %r8
movq %rbx, %r14
movq 0x38(%rsp), %rbx
je 0x1a14eb
movq 0xf0(%r13), %rcx
leal 0x1(%rax), %edx
movl %edx, 0xec(%r13)
movl %eax, %eax
shlq $0x4, %rax
movq 0x8(%rcx,%rax), %rbp
jmp 0x1a1248
movq 0x20(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0x1a141c
movq (%rbx), %rcx
movq 0x60(%rcx), %rdx
leaq 0x1(%rax), %rsi
movq %rsi, 0x20(%rbx)
movzbl (%rdx,%rax), %ebp
cmpq $0xff, %rbp
jne 0x1a1248
movq 0x68(%rcx), %rcx
movq 0x28(%rbx), %rdx
movq %rdx, %rsi
shlq $0x4, %rsi
cmpq %rax, (%rcx,%rsi)
jne 0x1a1533
addq %rsi, %rcx
incq %rdx
movq %rdx, 0x28(%rbx)
movq 0x8(%rcx), %rbp
movq %rbp, 0x20(%rsp)
movq (%rbx), %r13
cmpb $0x1, 0x40(%rbx)
jne 0x1a12ef
movq 0xb0(%r13), %rcx
testq %rcx, %rcx
je 0x1a1308
movl 0xa4(%r13), %eax
cmpl 0xa0(%r13), %eax
jb 0x1a13aa
movq %r14, 0x28(%rsp)
movq %r8, 0x30(%rsp)
movq 0xa8(%r13), %rdi
movl $0x8, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x17b40
movq %rax, %r14
movl %eax, 0xa0(%r13)
movq 0xb0(%r13), %rdi
callq 0x17f00
testl %eax, %eax
je 0x1a1385
movq 0x10(%rsp), %rdi
leaq 0x1b8929(%rip), %rsi    # 0x359bf1
leaq 0x24167c(%rip), %rdx    # 0x3e294b
xorl %eax, %eax
callq 0xfcb67
movl 0xa4(%r13), %eax
movb $0x1, %r8b
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %r14
jmp 0x1a13aa
movq 0x58(%r13), %rax
movq 0x18(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x18(%rbx)
movq (%rax,%rcx,8), %rax
jmp 0x1a13fb
movl 0x8c(%r13), %eax
cmpl 0x88(%r13), %eax
jb 0x1a13e5
movq %r8, 0x30(%rsp)
movq 0x90(%r13), %rdi
movq 0x98(%r13), %rcx
movl $0x4, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x17b40
movq %rax, 0x28(%rsp)
movl %eax, 0x88(%r13)
movq 0x98(%r13), %rdi
callq 0x17f00
testl %eax, %eax
je 0x1a13c3
movq 0x10(%rsp), %rdi
leaq 0x1b888b(%rip), %rsi    # 0x359bf1
leaq 0x1b8c8e(%rip), %rdx    # 0x359ffb
xorl %eax, %eax
callq 0xfcb67
movl 0x8c(%r13), %eax
movb $0x1, %r8b
movq 0x8(%rsp), %rdi
jmp 0x1a13e5
movl $0x0, 0xa4(%r13)
xorl %eax, %eax
testl %r14d, %r14d
movq 0x8(%rsp), %rdi
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %r14
je 0x1a150c
movq 0xa8(%r13), %rcx
leal 0x1(%rax), %edx
movl %edx, 0xa4(%r13)
movl %eax, %eax
movq (%rcx,%rax,8), %rax
jmp 0x1a13fb
movl $0x0, 0x8c(%r13)
xorl %eax, %eax
cmpl $0x0, 0x28(%rsp)
movq 0x8(%rsp), %rdi
movq 0x30(%rsp), %r8
je 0x1a150c
movq 0x90(%r13), %rcx
leal 0x1(%rax), %edx
movl %edx, 0x8c(%r13)
movl %eax, %eax
movl (%rcx,%rax,4), %eax
movq %rax, 0x18(%rsp)
addq %rbp, %r12
addq %rax, %r15
testb $0x1, %r8b
jne 0x1a141c
leaq 0x1(%r14), %rax
cmpq %rdi, %r14
movq %rax, %r14
jb 0x1a10b9
testb $0x1, %r8b
movb 0x7(%rsp), %r14b
jne 0x1a149a
jmp 0x1a14a5
movb $0x1, %r14b
jmp 0x1a14d6
testq %rdi, %rdi
je 0x1a149f
xorl %r15d, %r15d
leaq 0x20(%rsp), %rbp
xorl %r12d, %r12d
movq %rbp, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x1a56db
testl %eax, %eax
js 0x1a149a
je 0x1a14a5
addq 0x20(%rsp), %r12
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x1a58ac
testl %eax, %eax
js 0x1a1524
movq 0x8(%rsp), %rax
je 0x1a14a5
addq 0x18(%rsp), %r15
decq %rax
movq %rax, 0x8(%rsp)
jne 0x1a1441
jmp 0x1a14a5
leaq 0x202d0c(%rip), %rsi    # 0x3a419a
movq %r13, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xfcb67
movb $0x1, %r14b
jmp 0x1a14c7
xorl %r15d, %r15d
xorl %r12d, %r12d
leaq 0x202d0a(%rip), %rdi    # 0x3a41b6
movq %r15, %rsi
xorl %eax, %eax
callq 0x17070
leaq 0x202d08(%rip), %rdi    # 0x3a41c5
movq %r12, %rsi
xorl %eax, %eax
callq 0x17070
testq %rbx, %rbx
je 0x1a14d6
leaq 0x40(%rsp), %rdi
callq 0x1a5698
movzbl %r14b, %eax
negl %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1b8653(%rip), %rsi    # 0x359b45
leaq 0x202bde(%rip), %rdx    # 0x3a40d7
movq 0x10(%rsp), %rdi
movl $0x123, %ecx            # imm = 0x123
xorl %eax, %eax
callq 0xfcb67
jmp 0x1a149a
leaq 0x1b8ad0(%rip), %rsi    # 0x359fe3
movq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0xfcb67
jmp 0x1a149a
callq 0x618e8
callq 0x61826
callq 0x61898
callq 0x6185f
callq 0x618c0
nopl (%rax)