// File: /workspace/github_c_makefile_star2_O3/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, %r12
movq %rdi, %r14
movl 0x80(%rsp), %eax
movq %rdx, 0x30(%rsp)
movq %rdx, 0x20(%rdi)
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x1a4a05
movq %r12, %rsi
movl %eax, %edx
xorl %ecx, %ecx
callq 0xe8eed
movq 0x28(%r14), %rax
movq %rax, 0x10(%rsp)
jmp 0x1a4a1a
movq %r12, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0xe91b2
movq %rax, 0x10(%rsp)
movq %rax, 0x28(%r14)
movq %r15, 0x8(%r14)
movq %rbp, 0x10(%r14)
movq %r13, (%r14)
movq %r12, %rdi
callq 0xe7b9c
movq %rax, %rdx
movq (%r14), %r15
movq 0x8(%r14), %r13
movq 0x30(%rsp), %rax
movq (%rax,%r13,8), %rbx
leaq (%rbx,%r15), %rcx
movq %rdx, 0x18(%rsp)
cmpq %rdx, %rcx
movq %r14, 0x40(%rsp)
jae 0x1a4c9b
movq 0x10(%r14), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movl 0x80(%rsp), %edx
callq 0xe8eed
cmpq 0x90(%rsp), %r15
jae 0x1a4c9b
incq %rbx
movq 0x10(%rsp), %rdi
callq 0xe8186
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r15, %rsi
callq 0x1a4fa7
cmpb %bpl, %al
jne 0x1a4adb
cmpb $-0x3, %bpl
ja 0x1a4c9b
leaq 0x1(%r15), %rax
cmpq 0x90(%rsp), %rax
jae 0x1a4c9b
addq %rbx, %r15
cmpq 0x18(%rsp), %r15
movq %rax, %r15
jb 0x1a4a85
jmp 0x1a4c9b
jbe 0x1a4c9b
movq (%r14), %rdx
movq 0x30(%rsp), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rdx, %rbx
movq %rax, 0x20(%rsp)
leaq (%rax,%rdx), %rcx
cmpq 0x18(%rsp), %rcx
jae 0x1a4b19
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movl 0x80(%rsp), %edx
callq 0xe8eed
cmpq 0x90(%rsp), %rbx
jae 0x1a4b92
movq 0x20(%rsp), %rax
addq %rbx, %rax
cmpq 0x18(%rsp), %rax
jae 0x1a4b92
movq 0x10(%rsp), %rdi
callq 0xe8186
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
movq %rbx, 0x38(%rsp)
addq %rbx, %rsi
callq 0x1a4fa7
cmpb %bpl, %al
jne 0x1a4b81
cmpb $-0x3, %bpl
ja 0x1a4b8d
movq 0x38(%rsp), %rbx
incq %rbx
cmpq %rbx, 0x90(%rsp)
jne 0x1a4b23
movq 0x90(%rsp), %rbx
jmp 0x1a4b92
movq 0x38(%rsp), %rbx
jbe 0x1a4b92
jmp 0x1a4d2b
movq 0x38(%rsp), %rbx
leaq 0x1(%r13), %rax
movq 0x8(%rsp), %r14
cmpq %rax, %r14
jbe 0x1a4c8f
movq %r13, %rdx
movq %r13, 0x28(%rsp)
movq %r12, %r13
movq %r14, 0x8(%rsp)
movq %rdx, 0x20(%rsp)
addq %rdx, %r14
shrq %r14
cmpq %rbx, %r15
movq %rbx, 0x38(%rsp)
cmovbq %r15, %rbx
movq 0x30(%rsp), %rax
movq (%rax,%r14,8), %r12
leaq (%r12,%rbx), %rcx
cmpq 0x18(%rsp), %rcx
jae 0x1a4bf3
movq 0x10(%rsp), %rdi
movq %r13, %rsi
movl 0x80(%rsp), %edx
callq 0xe8eed
cmpq 0x90(%rsp), %rbx
jae 0x1a4c55
leaq (%r12,%rbx), %rax
cmpq 0x18(%rsp), %rax
jae 0x1a4c55
movq 0x10(%rsp), %rdi
callq 0xe8186
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %rbx, %rsi
callq 0x1a4fa7
movzbl %al, %ecx
movzbl %bpl, %edx
subl %edx, %ecx
jne 0x1a4c71
cmpb $-0x2, %bpl
jb 0x1a4c40
cmpb $-0x3, %al
ja 0x1a4c55
incq %rbx
cmpq %rbx, 0x90(%rsp)
jne 0x1a4bfd
movq 0x90(%rsp), %rbx
movq %r13, %r12
movq 0x28(%rsp), %r13
movq 0x20(%rsp), %rdx
leaq 0x1(%rdx), %rax
cmpq %rax, %r14
ja 0x1a4bac
jmp 0x1a4c8f
testl %ecx, %ecx
movq %r13, %r12
jle 0x1a4c58
movq %rbx, %r15
movq %r14, %rdx
movq 0x28(%rsp), %r13
movq 0x8(%rsp), %r14
movq 0x38(%rsp), %rbx
jmp 0x1a4c62
movq %r14, %rax
movq 0x40(%rsp), %r14
movq %rax, 0x8(%r14)
movq (%r14), %r15
movq 0x10(%r14), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rax
movq (%rax,%r13,8), %rbx
leaq (%rbx,%r15), %rcx
cmpq 0x18(%rsp), %rcx
jae 0x1a4ccf
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movl 0x80(%rsp), %edx
callq 0xe8eed
cmpq 0x90(%rsp), %r15
jae 0x1a4d3b
leaq (%rbx,%r15), %rax
cmpq 0x18(%rsp), %rax
jae 0x1a4d2b
movq 0x10(%rsp), %rdi
callq 0xe8186
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r15, %rsi
callq 0x1a4fa7
cmpb %bpl, %al
jne 0x1a4d29
cmpb $-0x3, %bpl
ja 0x1a4d2b
incq %r15
cmpq %r15, 0x90(%rsp)
jne 0x1a4cd9
movq 0x90(%rsp), %r15
jmp 0x1a4d3b
jae 0x1a4d3b
movq $0x1, 0x8(%r14)
xorl %r13d, %r13d
jmp 0x1a4eba
movq %r12, 0x20(%rsp)
movq (%r14), %r12
movq 0x30(%rsp), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rbx
leaq (%rbx,%r12), %rcx
cmpq 0x18(%rsp), %rcx
jae 0x1a4d72
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0xe8eed
cmpq 0x90(%rsp), %r12
jae 0x1a4eb5
leaq (%rbx,%r12), %rax
cmpq 0x18(%rsp), %rax
jae 0x1a4dd1
movq 0x10(%rsp), %rdi
callq 0xe8186
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r12, %rsi
callq 0x1a4fa7
cmpb %bpl, %al
jne 0x1a4dcb
cmpb $-0x3, %bpl
ja 0x1a4dd1
incq %r12
cmpq %r12, 0x90(%rsp)
jne 0x1a4d80
jmp 0x1a4eb5
jae 0x1a4eb5
leaq 0x1(%r13), %rax
movq 0x8(%rsp), %rbx
cmpq %rax, %rbx
jbe 0x1a4eba
movq %r13, 0x28(%rsp)
movq %rbx, 0x8(%rsp)
addq %r13, %rbx
shrq %rbx
cmpq %r12, %r15
movq %r12, %r14
cmovbq %r15, %r14
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %r13
leaq (%r14,%r13), %rcx
cmpq 0x18(%rsp), %rcx
jae 0x1a4e27
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rsi
movl 0x80(%rsp), %edx
callq 0xe8eed
cmpq 0x90(%rsp), %r14
jae 0x1a4e9c
leaq (%r14,%r13), %rax
cmpq 0x18(%rsp), %rax
jae 0x1a4e8b
movq 0x10(%rsp), %rdi
callq 0xe8186
movl %eax, %ebp
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %r14, %rsi
callq 0x1a4fa7
movzbl %al, %ecx
movzbl %bpl, %edx
subl %edx, %ecx
jne 0x1a4e95
cmpb $-0x2, %bpl
jb 0x1a4e74
cmpb $-0x3, %al
ja 0x1a4e8b
incq %r14
cmpq %r14, 0x90(%rsp)
jne 0x1a4e31
movq 0x90(%rsp), %r15
jmp 0x1a4e9f
movq %r14, %r12
movq 0x28(%rsp), %r13
jmp 0x1a4ea7
movq 0x28(%rsp), %r13
js 0x1a4eb0
movq %r14, %r15
movq %rbx, %r13
movq 0x8(%rsp), %rbx
leaq 0x1(%r13), %rax
jmp 0x1a4dda
movq %r14, %r12
jmp 0x1a4ea7
movq 0x8(%rsp), %r13
movq 0x40(%rsp), %rcx
movq %r13, 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