// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-mmsearch.c
// Function: gt_querysubstringmatchiterator_new
GtQuerysubstringmatchiterator *gt_querysubstringmatchiterator_new(
                                     const GtEncseq *dbencseq,
                                     GtUword totallength,
                                     const ESASuffixptr *suftabpart,
                                     GtReadmode db_readmode,
                                     GtUword numberofsuffixes,
                                     const GtStrArray *query_files,
                                     const GtEncseq *query_encseq,
                                     GtReadmode query_readmode,
                                     unsigned int userdefinedleastlength,
                                     GtError *err)
{
  GtQuerysubstringmatchiterator *qsmi = gt_malloc(sizeof *qsmi);

  qsmi->dbencseq = dbencseq;
  qsmi->suftabpart = suftabpart;
  qsmi->db_readmode = db_readmode;
  qsmi->numberofsuffixes = numberofsuffixes;
  qsmi->totallength = totallength;
  qsmi->userdefinedleastlength = (GtUword) userdefinedleastlength;
  qsmi->queryunitnum = 0;
  qsmi->desc = NULL;
  qsmi->query_for_seqit = NULL;
  qsmi->query_seqlen = 0;
  qsmi->queryrep.sequence = NULL;
  qsmi->queryrep.encseq = query_encseq;
  qsmi->queryrep.readmode = query_readmode;
  qsmi->queryrep.startpos = 0;
  qsmi->dbstart = 0;
  qsmi->matchlength = 0;
  qsmi->querysubstring.queryrep = &qsmi->queryrep;
  qsmi->mmsi = gt_mmsearchiterator_new_empty();
  qsmi->mmsi_defined = false;
  if (query_files == NULL || gt_str_array_size(query_files) == 0)
  {
    gt_assert(query_encseq != NULL);
    qsmi->seqit = NULL;
    qsmi->query_encseq_numofsequences
      = (uint64_t) gt_encseq_num_of_sequences(query_encseq);
  } else
  {
    gt_assert(query_encseq == NULL);
    qsmi->seqit = gt_seq_iterator_sequence_buffer_new(query_files, err);
    if (qsmi->seqit == NULL)
    {
      gt_querysubstringmatchiterator_delete(qsmi);
      return NULL;
    }
    gt_seq_iterator_set_symbolmap(qsmi->seqit,
                        gt_alphabet_symbolmap(gt_encseq_alphabet(dbencseq)));
  }
  return qsmi;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movq %r8, %r13
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1f47f1(%rip), %rsi    # 0x344c22
movl $0xb8, %edi
movl $0x2eb, %edx            # imm = 0x2EB
callq 0x93160
movq %rax, %rbx
movq %r15, 0x8(%rsp)
movq %r15, (%rax)
movq 0x50(%rsp), %r15
movq %r12, 0x8(%rax)
movl %ebp, 0x10(%rax)
movq %r13, 0x18(%rax)
movq %r14, 0x20(%rax)
movq 0x10(%rsp), %r14
movl 0x60(%rsp), %eax
movq %rax, 0x28(%rbx)
andq $0x0, 0x98(%rbx)
andq $0x0, 0xa8(%rbx)
andq $0x0, 0x38(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%rbx)
movq %r15, 0x40(%rbx)
movl 0x58(%rsp), %eax
movl %eax, 0x48(%rbx)
andq $0x0, 0x50(%rbx)
leaq 0x38(%rbx), %rax
movups %xmm0, 0x88(%rbx)
movq %rax, 0x60(%rbx)
callq 0x1505ad
movq %rax, 0x30(%rbx)
movb $0x0, 0xb0(%rbx)
testq %r14, %r14
je 0x15050d
movq %r14, %rdi
callq 0xae61c
testq %rax, %rax
je 0x15050d
testq %r15, %r15
jne 0x150575
movq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0xa70d0
movq %rax, 0x80(%rbx)
testq %rax, %rax
je 0x15053b
movq %rax, %r15
movq 0x8(%rsp), %rdi
callq 0x754dd
movq %rax, %rdi
callq 0x56c48
movq %r15, %rdi
movq %rax, %rsi
callq 0xa61a8
jmp 0x150529
testq %r15, %r15
je 0x150547
andq $0x0, 0x80(%rbx)
movq %r15, %rdi
callq 0x705a1
movq %rax, 0xa0(%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x1505c9
xorl %ebx, %ebx
jmp 0x150529
movq 0x2e7a1a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x194abb(%rip), %rsi    # 0x2e5013
leaq 0x1f47d2(%rip), %rdx    # 0x344d31
leaq 0x1f47e0(%rip), %rcx    # 0x344d46
leaq 0x1f46b5(%rip), %r8     # 0x344c22
movl $0x302, %r9d            # imm = 0x302
jmp 0x1505a1
movq 0x2e79ec(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x194a8d(%rip), %rsi    # 0x2e5013
leaq 0x1f47dc(%rip), %rdx    # 0x344d69
leaq 0x1f47b2(%rip), %rcx    # 0x344d46
leaq 0x1f4687(%rip), %r8     # 0x344c22
movl $0x308, %r9d            # imm = 0x308
xorl %eax, %eax
callq 0x17a50
callq 0x17390