// File: /workspace/github_c_makefile_star2_O1/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, %r12
movq %r8, %r13
movq %rcx, %rbp
movq %rsi, %r15
movq %rdi, %r14
movl 0x80(%rsp), %eax
movq %rdx, 0x18(%rsp)
movq %rdx, 0x20(%rdi)
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x1ad45b
movq %r15, %rsi
movl %eax, %edx
xorl %ecx, %ecx
callq 0xed48e
jmp 0x1ad46b
movq %r15, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0xed76d
movq %rax, 0x28(%r14)
movq %rbp, 0x8(%r14)
movq %r13, 0x10(%r14)
movq %r12, (%r14)
movq 0x28(%r14), %rax
movq %rax, (%rsp)
movq %r15, %rdi
callq 0xec1d8
movq %rax, %rdx
movq (%r14), %rcx
movq 0x8(%r14), %r12
movq 0x10(%r14), %rax
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %rax
movq (%rax,%r12,8), %rbx
movq %rcx, %r13
addq %rbx, %rcx
movq %rdx, 0x8(%rsp)
cmpq %rdx, %rcx
jae 0x1ad4c5
movq (%rsp), %rdi
movq %r15, %rsi
movl 0x80(%rsp), %edx
callq 0xed48e
cmpq 0x90(%rsp), %r13
movq %r14, 0x20(%rsp)
movq %r15, 0x28(%rsp)
jae 0x1ad53b
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
leaq (%rbx,%r13), %rax
cmpq 0x8(%rsp), %rax
jae 0x1ad542
movq (%rsp), %rdi
callq 0xec7be
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r13, %rsi
callq 0x1ada8f
movzbl %al, %ecx
movzbl %bpl, %edx
subl %edx, %ecx
jne 0x1ad53f
cmpb $-0x2, %bpl
jb 0x1ad521
cmpb $-0x3, %al
ja 0x1ad542
incq %r13
cmpq %r13, 0x90(%rsp)
jne 0x1ad4df
xorl %r15d, %r15d
movq 0x90(%rsp), %r13
jmp 0x1ad542
xorl %eax, %eax
jmp 0x1ad54d
movl %ecx, %r15d
testl %r15d, %r15d
setg %al
movq 0x20(%rsp), %r14
testb %al, %al
je 0x1ad725
movq (%r14), %r15
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %r14
movq (%rax,%r14,8), %rbx
leaq (%rbx,%r15), %rcx
cmpq 0x8(%rsp), %rcx
jae 0x1ad586
movq (%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0xed48e
cmpq 0x90(%rsp), %r15
jae 0x1ad5f5
movq %r12, %r14
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
leaq (%rbx,%r15), %rax
cmpq 0x8(%rsp), %rax
jae 0x1ad5fc
movq (%rsp), %rdi
callq 0xec7be
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r15, %rsi
callq 0x1ada8f
movzbl %al, %ecx
movzbl %bpl, %edx
subl %edx, %ecx
jne 0x1ad5f9
cmpb $-0x2, %bpl
jb 0x1ad5db
cmpb $-0x3, %al
ja 0x1ad5fc
incq %r15
cmpq %r15, 0x90(%rsp)
jne 0x1ad599
xorl %r12d, %r12d
movq 0x90(%rsp), %r15
jmp 0x1ad5fc
xorl %eax, %eax
jmp 0x1ad60a
movl %ecx, %r12d
testl %r12d, %r12d
setg %al
movq %r14, %r12
movq 0x30(%rsp), %r14
testb %al, %al
jne 0x1ad7cf
leaq 0x1(%r12), %rax
cmpq %rax, %r14
movq %r12, 0x10(%rsp)
jbe 0x1ad714
leaq (%r12,%r14), %rcx
shrq %rcx
cmpq %r15, %r13
movq %r15, %rbx
movq %r13, 0x38(%rsp)
cmovbq %r13, %rbx
movq 0x18(%rsp), %rax
movq %rcx, 0x40(%rsp)
movq (%rax,%rcx,8), %r13
leaq (%rbx,%r13), %rcx
cmpq 0x8(%rsp), %rcx
jae 0x1ad669
movq (%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0xed48e
movb $0x1, %al
cmpq 0x90(%rsp), %rbx
jae 0x1ad6ea
movq %r14, 0x30(%rsp)
leaq (%rbx,%r13), %rax
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
cmpq 0x8(%rsp), %rax
jae 0x1ad6df
movq (%rsp), %rdi
callq 0xec7be
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %rbx, %rsi
callq 0x1ada8f
movzbl %al, %ecx
movzbl %bpl, %edx
subl %edx, %ecx
jne 0x1ad6dc
cmpb $-0x2, %bpl
jb 0x1ad6c2
cmpb $-0x3, %al
ja 0x1ad6df
incq %rbx
cmpq %rbx, 0x90(%rsp)
jne 0x1ad67a
xorl %r14d, %r14d
movq 0x90(%rsp), %rbx
jmp 0x1ad6df
movl %ecx, %r14d
testl %r14d, %r14d
setle %al
movq 0x30(%rsp), %r14
testb %al, %al
movq 0x40(%rsp), %rax
cmoveq %rax, %r12
cmovneq %rax, %r14
movq 0x38(%rsp), %r13
cmoveq %rbx, %r13
cmovneq %rbx, %r15
leaq 0x1(%r12), %rax
cmpq %rax, %r14
ja 0x1ad625
movq %r14, %rax
movq 0x20(%rsp), %r14
movq %rax, 0x8(%r14)
movq 0x10(%rsp), %r12
movq (%r14), %r15
movq 0x10(%r14), %r13
movq 0x18(%rsp), %rax
movq (%rax,%r12,8), %r14
leaq (%r14,%r15), %rcx
cmpq 0x8(%rsp), %rcx
jae 0x1ad755
movq (%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0xed48e
cmpq 0x90(%rsp), %r15
jae 0x1ad7bf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
leaq (%r14,%r15), %rax
cmpq 0x8(%rsp), %rax
jae 0x1ad7c5
movq (%rsp), %rdi
callq 0xec7be
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r15, %rsi
callq 0x1ada8f
movzbl %al, %ecx
movzbl %bpl, %edx
subl %edx, %ecx
jne 0x1ad7c3
cmpb $-0x2, %bpl
jb 0x1ad7a6
cmpb $-0x3, %al
ja 0x1ad7c5
incq %r15
cmpq %r15, 0x90(%rsp)
jne 0x1ad764
xorl %ebx, %ebx
movq 0x90(%rsp), %r15
jmp 0x1ad7c5
xorl %ebx, %ebx
jmp 0x1ad7c8
movl %ecx, %ebx
shrl $0x1f, %ebx
movq %r13, %r14
testb %bl, %bl
je 0x1ad7e4
movq 0x20(%rsp), %rax
movq $0x1, 0x8(%rax)
xorl %r12d, %r12d
jmp 0x1ad8a7
movq %r12, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rbx
movq 0x18(%rsp), %rax
movq (%rax,%r14,8), %r12
leaq (%r12,%rbx), %rcx
cmpq 0x8(%rsp), %rcx
jae 0x1ad81a
movq (%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0xed48e
movb $0x1, %al
cmpq 0x90(%rsp), %rbx
jae 0x1ad888
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq (%r12,%rbx), %rax
cmpq 0x8(%rsp), %rax
jae 0x1ad892
movq (%rsp), %rdi
callq 0xec7be
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %rbx, %rsi
callq 0x1ada8f
movzbl %al, %ecx
movzbl %bpl, %edx
subl %edx, %ecx
jne 0x1ad88f
cmpb $-0x2, %bpl
jb 0x1ad86e
cmpb $-0x3, %al
ja 0x1ad892
incq %rbx
cmpq %rbx, 0x90(%rsp)
jne 0x1ad82c
xorl %r14d, %r14d
movq 0x90(%rsp), %rbx
jmp 0x1ad892
movq 0x10(%rsp), %r12
jmp 0x1ad8a0
movl %ecx, %r14d
testl %r14d, %r14d
setns %al
movq 0x10(%rsp), %r12
movq %r13, %r14
testb %al, %al
je 0x1ad8c7
movq %r14, %r12
movq 0x20(%rsp), %rcx
movq %r12, 0x10(%rcx)
movq 0x8(%rcx), %rax
movq %rax, 0x18(%rcx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1(%r12), %rax
cmpq %rax, %r14
jbe 0x1ad8a7
movq %r14, 0x38(%rsp)
leaq (%r12,%r14), %rcx
shrq %rcx
cmpq %rbx, %r15
movq %rbx, %r13
cmovbq %r15, %r13
movq 0x18(%rsp), %rax
movq %rcx, 0x40(%rsp)
movq (%rax,%rcx,8), %r14
leaq (%r14,%r13), %rcx
cmpq 0x8(%rsp), %rcx
jae 0x1ad915
movq (%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0xed48e
movb $0x1, %al
cmpq 0x90(%rsp), %r13
jae 0x1ad996
movq %r12, 0x10(%rsp)
leaq (%r14,%r13), %rax
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
cmpq 0x8(%rsp), %rax
jae 0x1ad98b
movq (%rsp), %rdi
callq 0xec7be
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r13, %rsi
callq 0x1ada8f
movzbl %al, %ecx
movzbl %bpl, %edx
subl %edx, %ecx
jne 0x1ad988
cmpb $-0x2, %bpl
jb 0x1ad96e
cmpb $-0x3, %al
ja 0x1ad98b
incq %r13
cmpq %r13, 0x90(%rsp)
jne 0x1ad926
xorl %r12d, %r12d
movq 0x90(%rsp), %r13
jmp 0x1ad98b
movl %ecx, %r12d
testl %r12d, %r12d
setns %al
movq 0x10(%rsp), %r12
movq 0x38(%rsp), %r14
testb %al, %al
movq 0x40(%rsp), %rax
cmovneq %rax, %r12
cmoveq %rax, %r14
cmovneq %r13, %r15
cmoveq %r13, %rbx
jmp 0x1ad8c7