// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-mmsearch.c
// Function: gt_mmsearchiterator_reinit
static void gt_mmsearchiterator_reinit(GtMMsearchiterator *mmsi,
                                       const GtEncseq *dbencseq,
                                       const ESASuffixptr *suftab,
                                       GtUword leftbound,
                                       GtUword rightbound,
                                       GtUword itvoffset,
                                       GtReadmode readmode,
                                       const GtQuerysubstring *querysubstring,
                                       GtUword minmatchlength)
{
  mmsi->suftab = suftab;
  if (mmsi->esr == NULL)
  {
    mmsi->esr = gt_encseq_create_reader_with_readmode(dbencseq, readmode, 0);
  } else
  {
    gt_encseq_reader_reinit_with_readmode(mmsi->esr,dbencseq,readmode,0);
  }
  mmsi->lcpitv.left = leftbound;
  mmsi->lcpitv.right = rightbound;
  mmsi->lcpitv.offset = itvoffset;
  if (!gt_mmsearch(dbencseq,mmsi->esr,suftab,readmode,&mmsi->lcpitv,
                   querysubstring,minmatchlength))
  {
    mmsi->lcpitv.left = 1UL;
    mmsi->lcpitv.right = 0;
  }
  mmsi->sufindex = mmsi->lcpitv.left;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %r13
movq %r8, %rbp
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movl 0x80(%rsp), %eax
movq %rdx, 0x20(%rsp)
movq %rdx, 0x20(%rdi)
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x150ab1
movq %rbx, %rsi
movl %eax, %edx
xorl %ecx, %ecx
callq 0x71f38
movq 0x28(%r14), %rax
movq %rax, 0x8(%rsp)
jmp 0x150ac6
movq %rbx, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x72260
movq %rax, 0x8(%rsp)
movq %rax, 0x28(%r14)
movq %r15, 0x8(%r14)
movq %rbp, 0x10(%r14)
movq %r13, (%r14)
movq %rbx, 0x18(%rsp)
movq %rbx, %rdi
callq 0x7055e
movq %rax, %r13
movq (%r14), %r15
movq 0x8(%r14), %rcx
movq %r14, 0x10(%rsp)
movq 0x10(%r14), %r14
movq 0x20(%rsp), %rax
movq %rcx, 0x28(%rsp)
movq (%rax,%rcx,8), %rbx
leaq (%rbx,%r15), %rcx
cmpq %r13, %rcx
jae 0x150b1e
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0x71f38
cmpq 0x90(%rsp), %r15
jae 0x150ce0
leaq (%rbx,%r15), %rax
cmpq %r13, %rax
jae 0x150ce0
movq 0x8(%rsp), %rdi
callq 0x70f55
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r15, %rsi
callq 0x150fd3
cmpb %bpl, %al
jne 0x150b70
cmpb $-0x3, %bpl
ja 0x150ce0
incq %r15
jmp 0x150b1e
jbe 0x150ce0
movq 0x10(%rsp), %rax
movq (%rax), %rbp
movq 0x20(%rsp), %rax
movq (%rax,%r14,8), %rbx
leaq (%rbx,%rbp), %rcx
cmpq %r13, %rcx
jae 0x150ba6
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0x71f38
cmpq 0x90(%rsp), %rbp
jae 0x150bfe
leaq (%rbx,%rbp), %rax
cmpq %r13, %rax
jae 0x150bfe
movq 0x8(%rsp), %rdi
callq 0x70f55
movq %rbp, %rcx
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
movq %rcx, %r12
addq %rcx, %rsi
callq 0x150fd3
cmpb %bpl, %al
jne 0x150bf5
cmpb $-0x3, %bpl
movq %r12, %rbp
ja 0x150bfe
incq %rbp
jmp 0x150ba6
movq %r12, %rbp
ja 0x150d61
movq 0x28(%rsp), %rcx
leaq 0x1(%rcx), %rax
cmpq %rax, %r14
jbe 0x150cd7
movq %r14, 0x30(%rsp)
movq %rcx, 0x40(%rsp)
addq %r14, %rcx
shrq %rcx
cmpq %rbp, %r15
movq %rbp, 0x38(%rsp)
movq %rbp, %rbx
cmovbq %r15, %rbx
movq 0x20(%rsp), %rax
movq %rcx, %r12
movq (%rax,%rcx,8), %r14
leaq (%r14,%rbx), %rcx
cmpq %r13, %rcx
jae 0x150c5a
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0x71f38
cmpq 0x90(%rsp), %rbx
jae 0x150caf
leaq (%r14,%rbx), %rax
cmpq %r13, %rax
jae 0x150caa
movq 0x8(%rsp), %rdi
callq 0x70f55
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %rbx, %rsi
callq 0x150fd3
movzbl %al, %ecx
movzbl %bpl, %edx
subl %edx, %ecx
jne 0x150cb1
cmpb $-0x2, %bpl
jb 0x150ca5
cmpb $-0x3, %al
ja 0x150caa
incq %rbx
jmp 0x150c5a
pushq $-0x1
popq %rcx
jmp 0x150cb1
xorl %ecx, %ecx
testl %ecx, %ecx
movq 0x40(%rsp), %rcx
cmovgq %r12, %rcx
movq 0x30(%rsp), %r14
cmovleq %r12, %r14
cmovgq %rbx, %r15
movq 0x38(%rsp), %rbp
cmovleq %rbx, %rbp
jmp 0x150c03
movq 0x10(%rsp), %rax
movq %r14, 0x8(%rax)
movq 0x10(%rsp), %rax
movq (%rax), %r15
movq 0x10(%rax), %r14
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
movq (%rax,%rcx,8), %rbx
leaq (%rbx,%r15), %rcx
cmpq %r13, %rcx
jae 0x150d19
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0x71f38
cmpq 0x90(%rsp), %r15
jae 0x150d75
leaq (%rbx,%r15), %rax
cmpq %r13, %rax
jae 0x150d61
movq 0x8(%rsp), %rdi
callq 0x70f55
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r15, %rsi
callq 0x150fd3
cmpb %bpl, %al
jne 0x150d5f
cmpb $-0x3, %bpl
ja 0x150d61
incq %r15
jmp 0x150d19
jae 0x150d75
movq 0x10(%rsp), %rdx
movq $0x1, 0x8(%rdx)
xorl %ecx, %ecx
jmp 0x150ed7
movq 0x10(%rsp), %rax
movq (%rax), %r12
movq 0x20(%rsp), %rax
movq (%rax,%r14,8), %rbx
leaq (%rbx,%r12), %rcx
cmpq %r13, %rcx
jae 0x150da5
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0x71f38
cmpq 0x90(%rsp), %r12
jae 0x150ecf
leaq (%rbx,%r12), %rax
cmpq %r13, %rax
jae 0x150df5
movq 0x8(%rsp), %rdi
callq 0x70f55
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r12, %rsi
callq 0x150fd3
cmpb %bpl, %al
jne 0x150def
cmpb $-0x3, %bpl
ja 0x150df5
incq %r12
jmp 0x150da5
jae 0x150ecf
movq 0x28(%rsp), %rcx
movq %r14, %rdx
leaq 0x1(%rcx), %rax
cmpq %rax, %rdx
jbe 0x150ed2
movq %rcx, 0x28(%rsp)
movq %rdx, 0x38(%rsp)
leaq (%rdx,%rcx), %rbx
shrq %rbx
cmpq %r12, %r15
movq %r12, 0x30(%rsp)
movq %r12, %r14
cmovbq %r15, %r14
movq 0x20(%rsp), %rax
movq (%rax,%rbx,8), %r12
leaq (%r12,%r14), %rcx
cmpq %r13, %rcx
jae 0x150e52
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0x71f38
cmpq 0x90(%rsp), %r14
jae 0x150ea7
leaq (%r12,%r14), %rax
cmpq %r13, %rax
jae 0x150ea2
movq 0x8(%rsp), %rdi
callq 0x70f55
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r14, %rsi
callq 0x150fd3
movzbl %al, %ecx
movzbl %bpl, %edx
subl %edx, %ecx
jne 0x150ea9
cmpb $-0x2, %bpl
jb 0x150e9d
cmpb $-0x3, %al
ja 0x150ea2
incq %r14
jmp 0x150e52
pushq $-0x1
popq %rcx
jmp 0x150ea9
xorl %ecx, %ecx
testl %ecx, %ecx
movq 0x28(%rsp), %rcx
cmovnsq %rbx, %rcx
movq 0x38(%rsp), %rdx
cmovsq %rbx, %rdx
cmovnsq %r14, %r15
movq 0x30(%rsp), %r12
cmovsq %r14, %r12
jmp 0x150dfd
movq %r14, %rcx
movq 0x10(%rsp), %rdx
movq %rcx, 0x10(%rdx)
movq 0x8(%rdx), %rax
movq %rax, 0x18(%rdx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq