// File: /workspace/github_c_makefile_star2_O1/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 0x200e6b(%rip), %rsi    # 0x3ade44
movl $0xb8, %edi
movl $0x2eb, %edx            # imm = 0x2EB
callq 0x1092b2
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)
movl 0x60(%rsp), %eax
movq %rax, 0x28(%rbx)
xorl %r14d, %r14d
movq %r14, 0x98(%rbx)
movq %r14, 0xa8(%rbx)
leaq 0x38(%rbx), %rax
movq %r14, 0x38(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%rbx)
movq %r15, 0x40(%rbx)
movl 0x58(%rsp), %ecx
movl %ecx, 0x48(%rbx)
movq %r14, 0x50(%rbx)
movups %xmm0, 0x88(%rbx)
movq %rax, 0x60(%rbx)
movl $0x30, %edi
leaq 0x200def(%rip), %rsi    # 0x3ade44
movl $0xf3, %edx
callq 0x1092b2
movq %r14, 0x28(%rax)
movq 0x10(%rsp), %r14
movq %rax, 0x30(%rbx)
movb $0x0, 0xb0(%rbx)
testq %r14, %r14
je 0x1ad0c5
movq %r14, %rdi
callq 0x121e78
testq %rax, %rax
je 0x1ad0c5
testq %r15, %r15
jne 0x1ad107
movq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0x11a648
movq %rax, 0x80(%rbx)
testq %rax, %rax
je 0x1ad0f6
movq %rax, %r15
movq 0x8(%rsp), %rdi
callq 0xf02da
movq %rax, %rdi
callq 0xd3700
movq %r15, %rdi
movq %rax, %rsi
callq 0x119998
jmp 0x1ad0e4
testq %r15, %r15
je 0x1ad102
movq $0x0, 0x80(%rbx)
movq %r15, %rdi
callq 0xec1e8
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 0x1ad10c
xorl %ebx, %ebx
jmp 0x1ad0e4
callq 0x63848
callq 0x6380f