// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/enum-patt.c
// Function: gt_newenumpatterniterator
Enumpatterniterator *gt_newenumpatterniterator(GtUword minpatternlen,
                                               GtUword maxpatternlen,
                                               const GtEncseq *encseq,
                                               GtError *err)
{
  Enumpatterniterator *epi = NULL;
  GtUword i;

  if (maxpatternlen < minpatternlen)
  {
    gt_error_set(err,"maxpatternlen="GT_WU" < "GT_WU"",
                    maxpatternlen,
                    minpatternlen);
    return NULL;
  }
  epi = gt_malloc(sizeof *epi);
  epi->totallength = gt_encseq_total_length(encseq);
  if (epi->totallength <= (GtUword) maxpatternlen)
  {
    gt_error_set(err,"totallength="GT_WU" <= maxpatternlen = "GT_WU"",
                    epi->totallength,
                    maxpatternlen);
    gt_free(epi);
    return NULL;
  }
  epi->patternspace = gt_malloc(sizeof *epi->patternspace * maxpatternlen);
  epi->patternstat = gt_malloc(sizeof *epi->patternstat * (maxpatternlen+1));
  for (i=0; i<=maxpatternlen; i++)
  {
    epi->patternstat[i] = 0;
  }
  epi->minpatternlen = minpatternlen;
  epi->maxpatternlen = maxpatternlen;
  epi->sampleencseq = encseq;
  epi->samplecount = 0;
  epi->alphasize = gt_alphabet_num_of_chars(
                                           gt_encseq_alphabet(encseq));
  epi->esr = NULL;
  return epi;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x28(%rsp), %rax
jae 0x231da8
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x344a07(%rip), %rsi    # 0x57679a
movb $0x0, %al
callq 0xd88c0
movq $0x0, 0x30(%rsp)
jmp 0x231f1d
movl $0x48, %edi
leaq 0x3449fe(%rip), %rsi    # 0x5767b2
movl $0x35, %edx
callq 0xe80f0
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
callq 0xa9d00
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rax
cmpq 0x20(%rsp), %rax
ja 0x231e2e
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rdx
movq 0x20(%rsp), %rcx
leaq 0x3449c5(%rip), %rsi    # 0x5767c8
movb $0x0, %al
callq 0xd88c0
movq 0x8(%rsp), %rdi
leaq 0x34499c(%rip), %rsi    # 0x5767b2
movl $0x3c, %edx
callq 0xe88c0
movq $0x0, 0x30(%rsp)
jmp 0x231f1d
movq 0x20(%rsp), %rdi
shlq $0x0, %rdi
leaq 0x344974(%rip), %rsi    # 0x5767b2
movl $0x3f, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x20(%rsp), %rdi
addq $0x1, %rdi
shlq $0x3, %rdi
leaq 0x34494a(%rip), %rsi    # 0x5767b2
movl $0x40, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x18(%rax)
movq $0x0, (%rsp)
movq (%rsp), %rax
cmpq 0x20(%rsp), %rax
ja 0x231eb4
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq (%rsp), %rcx
movq $0x0, (%rax,%rcx,8)
movq (%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
jmp 0x231e86
movq 0x28(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x18(%rsp), %rdi
callq 0xb0f00
movq %rax, %rdi
callq 0x7e8c0
movl %eax, %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x30(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x40(%rax)
movq 0x8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw (%rax,%rax)