// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/esa-shulen.c
// Function: gt_esa2shulengthqueryfiles
int gt_esa2shulengthqueryfiles(GtUword *totalgmatchlength,
                               const Suffixarray *suffixarray,
                               const GtStrArray *queryfilenames,
                               GtError *err)
{
  bool haserr = false;
  GtSeqIterator *seqit;
  const GtUchar *query;
  GtUword querylen;
  char *desc = NULL;
  int retval;
  GtAlphabet *alphabet;

  gt_error_check(err);
  alphabet = gt_encseq_alphabet(suffixarray->encseq);
  gt_assert(gt_str_array_size(queryfilenames) == 1UL);
  seqit = gt_seq_iterator_sequence_buffer_new(queryfilenames, err);
  if (!seqit)
  {
    haserr = true;
  }
  if (!haserr)
  {
    gt_seq_iterator_set_symbolmap(seqit, gt_alphabet_symbolmap(alphabet));
    for (; /* Nothing */; )
    {
      retval = gt_seq_iterator_next(seqit,
                                   &query,
                                   &querylen,
                                   &desc,
                                   err);
      if (retval < 0)
      {
        haserr = true;
        break;
      }
      if (retval == 0)
      {
        break;
      }
      *totalgmatchlength += gt_esa2shulengthquery(suffixarray,query,querylen);
    }
    gt_seq_iterator_delete(seqit);
  }
  return haserr ? -1 : 0;
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movb $0x0, 0x47(%rsp)
movq $0x0, 0x20(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x23d5f6
movq 0x48(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x23d5be
jmp 0x23d5f6
movq 0x3fe9db(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2d8a44(%rip), %rsi    # 0x516013
leaq 0x2d8be9(%rip), %rdx    # 0x5161bf
leaq 0x33a369(%rip), %rcx    # 0x577946
leaq 0x33a34b(%rip), %r8     # 0x57792f
movl $0x1f1, %r9d            # imm = 0x1F1
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23d5f8
movq 0x58(%rsp), %rax
movq (%rax), %rdi
callq 0xb0f00
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rdi
callq 0x11fcc0
cmpq $0x1, %rax
je 0x23d652
movq 0x3fe97f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2d89e8(%rip), %rsi    # 0x516013
leaq 0x33a32f(%rip), %rdx    # 0x577961
leaq 0x33a30d(%rip), %rcx    # 0x577946
leaq 0x33a2ef(%rip), %r8     # 0x57792f
movl $0x1f3, %r9d            # imm = 0x1F3
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23d654
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x113240
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x23d675
movb $0x1, 0x47(%rsp)
testb $0x1, 0x47(%rsp)
jne 0x23d708
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
callq 0x7e870
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x1118a0
movq 0x38(%rsp), %rdi
movq 0x48(%rsp), %r8
leaq 0x30(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0x20(%rsp), %rcx
callq 0x111ab0
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
jge 0x23d6d1
movb $0x1, 0x47(%rsp)
jmp 0x23d6fe
cmpl $0x0, 0x1c(%rsp)
jne 0x23d6da
jmp 0x23d6fe
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x23d720
movq %rax, %rcx
movq 0x60(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
jmp 0x23d6a1
movq 0x38(%rsp), %rdi
callq 0x111c10
movb 0x47(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x68, %rsp
retq
nop