// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_encseq_bench.c
// Function: gt_encseq_bench_runner
static int gt_encseq_bench_runner(GT_UNUSED int argc, const char **argv,
                                  int parsed_args, void *tool_arguments,
                                  GtError *err)
{
  GtEncseqBenchArguments *arguments = tool_arguments;
  GtEncseqLoader *encseq_loader;
  GtEncseq *encseq;
  GtLogger *logger = NULL;
  const char *indexname;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments != NULL);
  encseq_loader = gt_encseq_loader_new();
  indexname = argv[parsed_args];
  encseq = gt_encseq_loader_load(encseq_loader, indexname, err);
  if (encseq == NULL)
    had_err = -1;
  else {
    if (arguments->sortlenprepare) {
      GtUword seqnum, position;
      GtSortedlengthinfo *sortedlengthinfo =
        gt_sortedlengthinfo_new(encseq,indexname,err);

      if (sortedlengthinfo == NULL)
        had_err = -1;
      else {
        logger = gt_logger_new(arguments->verbose, GT_LOGGER_DEFLT_PREFIX,
                               stdout);
      }
      gt_logger_log(logger,"prepare sorted length info");
      for (position = 0; !had_err && position < gt_encseq_total_length(encseq);
           position++) {
        seqnum = gt_sortedlengthinfo_seqnum(encseq,sortedlengthinfo,position);
        if (seqnum != ULONG_MAX) {
          GtUword seqnum2 = gt_encseq_seqnum(encseq,position);
          if (seqnum2 != seqnum) {
            fprintf(stderr,
                    "position "GT_WU": seqnum2 = "GT_WU" != "GT_WU" = seqnum\n",
                    position,seqnum,seqnum2);
            exit(GT_EXIT_PROGRAMMING_ERROR);
          }
        }
      }
      gt_logger_log(logger,"perform seqnum check");
      for (seqnum = 0; !had_err && seqnum < gt_encseq_num_of_sequences(encseq);
           seqnum++) {
        GtUword seqstart = gt_encseq_seqstartpos(encseq,seqnum);
        GtUword seqstart2 = gt_sortedlengthinfo_seqstart(encseq,
                                   sortedlengthinfo,seqnum);
        if (seqstart != seqstart2) {
          fprintf(stderr,
                  "seqnum="GT_WU": seqstart = "GT_WU" != "GT_WU" = seqstart2\n",
                  seqnum,seqstart,seqstart2);
          exit(GT_EXIT_PROGRAMMING_ERROR);
        }
      }
      gt_logger_log(logger,"perform seqstart check");
      gt_sortedlengthinfo_delete(sortedlengthinfo);
    }
    if (!had_err && arguments->ccext > 0) {
      gt_logger_log(logger,"perform character extractions");
      gt_bench_character_extractions(encseq,arguments->ccext);
    }
  }
  gt_encseq_delete(encseq);
  gt_encseq_loader_delete(encseq_loader);
  gt_logger_delete(logger);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rbp
movq %rcx, %r12
movl %edx, %r14d
movq %rsi, %rbx
testq %r8, %r8
je 0xa542f
movq %rbp, %rdi
callq 0x101a9a
testb %al, %al
jne 0xa59cc
testq %r12, %r12
je 0xa599c
callq 0xf36ef
movq %rax, %r15
movslq %r14d, %rax
movq (%rbx,%rax,8), %rbx
movq %r15, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0xf374b
movq %rax, %r14
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xa5534
cmpb $0x1, 0x8(%r12)
movq %r12, 0x18(%rsp)
jne 0xa553b
movq %r15, 0x8(%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1000e4
movq %rax, %rbx
testq %rax, %rax
je 0xa5545
movq %rbp, 0x20(%rsp)
leaq 0x2ae78b(%rip), %rsi    # 0x353c2b
movl $0x30, %edi
movl $0x88, %edx
callq 0x1092b2
movq %rax, %r13
movq %rbx, %rdi
callq 0x100d7f
movq %rax, (%r13)
movq %rbx, %rdi
callq 0x100d6f
movq %rax, 0x8(%r13)
movq (%r13), %rcx
decq %rcx
cmpq %rax, %rcx
jae 0xa59e0
movq %rbx, 0x10(%rsp)
movq %r14, %rdi
callq 0xec1e8
testq %rax, %rax
sete %bpl
je 0xa554f
movl $0x1, %eax
movq %rax, (%rsp)
xorl %r15d, %r15d
xorl %ebx, %ebx
movq %r14, %rdi
movq %r15, %rsi
callq 0xeffd3
movq %rax, %r12
testq %r15, %r15
je 0xa551b
cmpq %r12, %rbx
ja 0xa557a
adcq $0x0, (%rsp)
incq %r15
movq %r14, %rdi
callq 0xec1e8
movq %r12, %rbx
cmpq %rax, %r15
setae %bpl
jb 0xa54fe
jmp 0xa555b
xorl %ebp, %ebp
jmp 0xa595a
movb $0x1, %r12b
xorl %ebp, %ebp
jmp 0xa582f
xorl %r13d, %r13d
xorl %ebp, %ebp
jmp 0xa56d7
xorl %r12d, %r12d
movl $0x1, %eax
movq %rax, (%rsp)
leaq 0x2ae6c9(%rip), %rdx    # 0x353c2b
movl $0x8, %esi
movq (%rsp), %rdi
movl $0xa0, %ecx
callq 0x1093ef
movq %r12, %rbx
jmp 0xa559c
leaq -0x1(%r15), %rdx
leaq 0x2ae95d(%rip), %rsi    # 0x353ee2
movq 0x20(%rsp), %rdi
movq %rbx, %rcx
movq %r15, %r8
movq %r12, %r9
xorl %eax, %eax
callq 0x1019cf
xorl %eax, %eax
movq %rax, 0x28(%r13)
testb $0x1, %bpl
je 0xa55ea
cmpq $0x2, (%rsp)
jb 0xa55ea
movq (%rsp), %rax
leaq -0x8(,%rax,8), %r15
leaq 0x2ae66b(%rip), %r12    # 0x353c2b
movq %r15, %rdi
movq %r12, %rsi
movl $0xa8, %edx
callq 0x1092b2
movq %rax, 0x18(%r13)
movq %r15, %rdi
movq %r12, %rsi
movl $0xab, %edx
callq 0x1092b2
movq %rax, 0x20(%r13)
jmp 0xa55f2
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r13)
movq $0x0, 0x10(%r13)
testb $0x1, %bpl
je 0xa56d2
cmpq $0x0, 0x18(%r13)
je 0xa59db
cmpq $0x0, 0x20(%r13)
je 0xa59db
cmpq $0x0, 0x28(%r13)
je 0xa59db
movq %r14, %rdi
callq 0xec1e8
testq %rax, %rax
je 0xa56cb
decq (%rsp)
xorl %ebp, %ebp
xorl %r12d, %r12d
movq %r14, %rdi
movq %r12, %rsi
callq 0xeffd3
movq %rax, %r15
testq %r12, %r12
je 0xa56aa
cmpq %r15, %rbx
jae 0xa56a2
movq 0x10(%r13), %rax
cmpq (%rsp), %rax
jae 0xa59d1
movq 0x20(%r13), %rcx
movq %r12, (%rcx,%rax,8)
movq 0x10(%r13), %rax
movq 0x18(%r13), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%r13)
movq %rbp, (%rcx,%rax,8)
movq 0x10(%r13), %rax
movq 0x28(%r13), %rcx
movq %r15, (%rcx,%rax,8)
movq %r14, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0xec1f8
cmpb $-0x1, %al
jne 0xa59d6
addq %r15, %rbp
incq %rbp
jmp 0xa56b4
movq 0x28(%r13), %rax
movq %r15, (%rax)
movq %r15, %rbp
incq %r12
movq %r14, %rdi
callq 0xec1e8
movq %r15, %rbx
cmpq %rax, %r12
jb 0xa563f
incq 0x10(%r13)
movb $0x1, %bpl
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x100e07
testb $0x1, %bpl
jne 0xa56f0
movq %r13, %rdi
callq 0xa522c
xorl %r13d, %r13d
testq %r13, %r13
setne %r12b
je 0xa571d
movq 0x18(%rsp), %rax
movzbl 0x9(%rax), %edi
movq 0x41e7df(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdx
leaq 0x2aa1c1(%rip), %rsi    # 0x34f8d4
callq 0x108ed0
movq %rax, %rbp
jmp 0xa571f
xorl %ebp, %ebp
leaq 0x2ae685(%rip), %rsi    # 0x353dab
movq %rbp, %rdi
xorl %eax, %eax
callq 0x10906e
testq %r13, %r13
je 0xa57fa
xorl %ebx, %ebx
movq %r14, %rdi
callq 0xec1d8
cmpq %rax, %rbx
jae 0xa58c0
movq %r14, %rdi
callq 0xec1d8
cmpq %rbx, %rax
jbe 0xa5984
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xec1f8
cmpb $-0x1, %al
je 0xa57b6
movq 0x10(%r13), %rsi
movq 0x18(%r13), %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0xefa70
testq %rax, %rax
je 0xa57bf
movq %rax, %rcx
movq 0x18(%r13), %rdx
movq 0x20(%r13), %rsi
movq %rbx, %rax
subq -0x8(%rdx,%rcx,8), %rax
movq 0x28(%r13), %rdx
movq (%rdx,%rcx,8), %rdi
incq %rdi
xorl %edx, %edx
divq %rdi
movq %rax, %r15
addq -0x8(%rsi,%rcx,8), %r15
jmp 0xa57d4
movq $-0x1, %r15
jmp 0xa57d4
movq 0x28(%r13), %rax
movq (%rax), %rcx
incq %rcx
movq %rbx, %rax
xorl %edx, %edx
divq %rcx
movq %rax, %r15
cmpq $-0x1, %r15
je 0xa57ee
movq %r14, %rdi
movq %rbx, %rsi
callq 0xefc48
cmpq %r15, %rax
jne 0xa5989
incq %rbx
testq %r13, %r13
jne 0xa573b
leaq 0x2ae5f2(%rip), %rsi    # 0x353df3
movq %rbp, %rdi
xorl %eax, %eax
callq 0x10906e
leaq 0x2ae625(%rip), %rsi    # 0x353e37
movq %rbp, %rdi
xorl %eax, %eax
callq 0x10906e
movq %r13, %rdi
callq 0xa522c
movq 0x8(%rsp), %r15
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testb %r12b, %r12b
je 0xa595a
movq 0x18(%rsp), %r12
cmpq $0x0, (%r12)
je 0xa5957
movq %r15, 0x8(%rsp)
leaq 0x2ae5fa(%rip), %rsi    # 0x353e4e
xorl %ebx, %ebx
movq %rbp, %rdi
xorl %eax, %eax
callq 0x10906e
movq (%r12), %r13
movq %r14, %rdi
callq 0xec1d8
movq %rax, %r15
callq 0x11ed94
testb %al, %al
je 0xa588f
leaq 0x2ae7ee(%rip), %rdi    # 0x35406d
callq 0x1226d6
movq %rax, %rbx
movq %rax, %rdi
callq 0x122733
testq %r13, %r13
je 0xa591f
decq %r15
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x10ae3c
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0xec1f8
movzbl %al, %eax
addq %rax, %r12
decq %r13
jne 0xa589e
jmp 0xa5922
leaq 0x2ae52c(%rip), %rsi    # 0x353df3
movq %rbp, %rdi
xorl %eax, %eax
callq 0x10906e
testq %r13, %r13
je 0xa580b
xorl %ebx, %ebx
movq %r14, %rdi
callq 0xec1e8
cmpq %rax, %rbx
jae 0xa580b
movq %r14, %rdi
movq %rbx, %rsi
callq 0xefce0
movq %rax, %r15
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0xa528a
cmpq %rax, %r15
jne 0xa59a1
incq %rbx
testq %r13, %r13
jne 0xa58dc
jmp 0xa580b
xorl %r12d, %r12d
leaq 0x2ae75e(%rip), %rdi    # 0x354087
movq %r12, %rsi
xorl %eax, %eax
callq 0x17070
testq %rbx, %rbx
je 0xa5952
movq 0x41e5a9(%rip), %rax    # 0x4c3ee8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x122c67
movq %rbx, %rdi
callq 0x122d79
movq 0x8(%rsp), %r15
xorl %r13d, %r13d
movq %r14, %rdi
callq 0xee90c
movq %r15, %rdi
callq 0xf424d
movq %rbp, %rdi
callq 0x10916a
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1a147
movq 0x41e5f0(%rip), %rcx    # 0x4c3f80
movq (%rcx), %rdi
leaq 0x2ae42c(%rip), %rsi    # 0x353dc6
jmp 0xa59b2
callq 0x1a180
movq 0x41e5d8(%rip), %rcx    # 0x4c3f80
movq (%rcx), %rdi
leaq 0x2ae456(%rip), %rsi    # 0x353e08
movq %rbx, %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x17ab0
movl $0x2, %edi
callq 0x17940
callq 0x1a02a
callq 0x1a09c
callq 0x1a0d5
callq 0x1a10e
callq 0x1a063
nopl (%rax)