// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq 0x68(%rsp), %rax
movl 0x60(%rsp), %eax
movl 0x58(%rsp), %eax
movq 0x50(%rsp), %rax
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movl %ecx, 0x24(%rsp)
movq %r8, 0x18(%rsp)
movq %r9, 0x10(%rsp)
movl $0xb8, %edi
leaq 0x33e2db(%rip), %rsi    # 0x57706a
movl $0x2eb, %edx            # imm = 0x2EB
callq 0xe80f0
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x28(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movl 0x24(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x10(%rax)
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x30(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x20(%rax)
movl 0x60(%rsp), %eax
movl %eax, %ecx
movq 0x8(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x98(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0xa8(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x70(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x78(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x38(%rax)
movq 0x50(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x40(%rax)
movl 0x58(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x48(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x50(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x88(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x90(%rax)
movq 0x8(%rsp), %rcx
addq $0x38, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x60(%rax)
callq 0x239000
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x8(%rsp), %rax
movb $0x0, 0xb0(%rax)
cmpq $0x0, 0x10(%rsp)
je 0x238ec5
movq 0x10(%rsp), %rdi
callq 0x11fcc0
cmpq $0x0, %rax
jne 0x238f37
jmp 0x238ec7
cmpq $0x0, 0x50(%rsp)
jne 0x238f07
movq 0x4030ca(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2dd133(%rip), %rsi    # 0x516013
leaq 0x33e292(%rip), %rdx    # 0x577179
leaq 0x33e2a0(%rip), %rcx    # 0x57718e
leaq 0x33e175(%rip), %r8     # 0x57706a
movl $0x302, %r9d            # imm = 0x302
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x238f09
movq 0x8(%rsp), %rax
movq $0x0, 0x80(%rax)
movq 0x50(%rsp), %rdi
callq 0xa9d50
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0xa0(%rax)
jmp 0x238feb
jmp 0x238f39
cmpq $0x0, 0x50(%rsp)
je 0x238f79
movq 0x403058(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2dd0c1(%rip), %rsi    # 0x516013
leaq 0x33e258(%rip), %rdx    # 0x5771b1
leaq 0x33e22e(%rip), %rcx    # 0x57718e
leaq 0x33e103(%rip), %r8     # 0x57706a
movl $0x308, %r9d            # imm = 0x308
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x238f7b
movq 0x10(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x113240
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x80(%rax)
movq 0x8(%rsp), %rax
cmpq $0x0, 0x80(%rax)
jne 0x238fbd
movq 0x8(%rsp), %rdi
callq 0x239030
movq $0x0, 0x40(%rsp)
jmp 0x238ff5
movq 0x8(%rsp), %rax
movq 0x80(%rax), %rax
movq %rax, (%rsp)
movq 0x38(%rsp), %rdi
callq 0xb0f00
movq %rax, %rdi
callq 0x7e870
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x1118a0
movq 0x8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nop