// File: /workspace/github_c_makefile_star2_O2/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, %r15
movl %edx, %r14d
movq %rsi, %rbx
testq %r8, %r8
je 0x24d15
movq %rbp, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2530e
testq %r15, %r15
je 0x252dd
callq 0x791cd
movq %rax, %r12
movslq %r14d, %rax
movq (%rbx,%rax,8), %rbx
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x7921d
movq %rax, %r14
xorl %r13d, %r13d
testq %rax, %rax
je 0x24df6
movq %r15, 0x18(%rsp)
cmpb $0x1, 0x8(%r15)
movq %r12, 0x8(%rsp)
jne 0x2512d
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x87eb0
movq %rax, %rbx
testq %rax, %rax
je 0x24f38
leaq 0x2c5e9f(%rip), %rsi    # 0x2eac1c
pushq $0x30
popq %rdi
movl $0x88, %edx
callq 0x93160
movq %rax, %r12
movq %rbx, %rdi
callq 0x88697
movq %rax, (%r12)
movq %rbx, 0x10(%rsp)
movq %rbx, %rdi
callq 0x88654
movq %rax, 0x8(%r12)
movq (%r12), %rcx
decq %rcx
cmpq %rax, %rcx
jae 0x2533f
pushq $0x1
popq %r13
xorl %ebx, %ebx
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x705a1
cmpq %rax, %r15
jae 0x24dfe
movq %r14, %rdi
movq %r15, %rsi
callq 0x75173
testq %r15, %r15
je 0x24dee
cmpq %rax, %rbx
ja 0x24f43
adcq $0x0, %r13
incq %r15
movq %rax, %rbx
jmp 0x24dc4
pushq $-0x1
popq %rbp
jmp 0x251e1
leaq 0x2c5e17(%rip), %rdx    # 0x2eac1c
pushq $0x8
popq %rsi
movq %r13, %rbp
movq %r13, %rdi
movl $0xa0, %ecx
callq 0x9334a
movq %rax, 0x28(%r12)
cmpq $0x1, %r13
jbe 0x25370
leaq -0x8(,%rbp,8), %r15
leaq 0x2c5de6(%rip), %r13    # 0x2eac1c
movq %r15, %rdi
movq %r13, %rsi
movl $0xa8, %edx
callq 0x93160
movq %rax, 0x18(%r12)
movq %r15, %rdi
movq %r13, %rsi
movl $0xab, %edx
callq 0x93160
movq %rax, 0x20(%r12)
andq $0x0, 0x10(%r12)
cmpq $0x0, 0x18(%r12)
je 0x2537f
testq %rax, %rax
je 0x2537f
cmpq $0x0, 0x28(%r12)
je 0x2537f
decq %rbp
movq %rbp, 0x20(%rsp)
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x705a1
cmpq %rax, %rbp
jae 0x24f2e
movq %r14, %rdi
movq %rbp, %rsi
callq 0x75173
movq %rax, %r13
testq %rbp, %rbp
je 0x24f18
cmpq %r13, %rbx
jae 0x24f10
movq 0x10(%r12), %rax
cmpq 0x20(%rsp), %rax
jae 0x2527e
movq 0x20(%r12), %rcx
movq %rbp, (%rcx,%rax,8)
movq 0x10(%r12), %rax
movq 0x18(%r12), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%r12)
movq %r15, (%rcx,%rax,8)
movq 0x10(%r12), %rax
movq 0x28(%r12), %rcx
movq %r13, (%rcx,%rax,8)
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x705e4
cmpb $-0x1, %al
jne 0x252ac
addq %r13, %r15
incq %r15
jmp 0x24f23
movq 0x28(%r12), %rax
movq %r13, (%rax)
movq %r13, %r15
incq %rbp
movq %r13, %rbx
jmp 0x24e94
incq 0x10(%r12)
movb $0x1, %r13b
jmp 0x24f73
xorl %r12d, %r12d
xorl %r13d, %r13d
pushq $-0x1
popq %rbp
jmp 0x24f7b
leaq -0x1(%r15), %rdx
leaq 0x2c5f85(%rip), %rsi    # 0x2eaed3
xorl %r13d, %r13d
movq %rbp, %rdi
movq %rbx, %rcx
movq %r15, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x89dbb
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x10(%r12)
pushq $-0x1
popq %rbp
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x888b5
testb %r13b, %r13b
je 0x24fb3
testq %r12, %r12
je 0x24fbb
movq 0x18(%rsp), %rax
movzbl 0x9(%rax), %edi
movq 0x412f13(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x2c192d(%rip), %rsi    # 0x2e68d4
callq 0x92b50
movq %rax, %r13
movb $0x1, %bl
jmp 0x24fc3
movq %r12, %rdi
callq 0x24a98
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %r13d, %r13d
leaq 0x2c5dd2(%rip), %rsi    # 0x2ead9c
movq %r13, %rdi
xorl %eax, %eax
callq 0x92e71
testb %bl, %bl
je 0x25096
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x7055e
cmpq %rax, %rbx
jae 0x250c5
movq %r14, %rdi
callq 0x7055e
cmpq %rbx, %rax
jbe 0x2520a
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x705e4
cmpb $-0x1, %al
je 0x2508e
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x74a31
testq %rax, %rax
je 0x25064
movq %rax, %rcx
movq 0x18(%r12), %rdx
movq 0x20(%r12), %rsi
movq %rbx, %rax
subq -0x8(%rdx,%rcx,8), %rax
movq 0x28(%r12), %rdx
movq (%rdx,%rcx,8), %rdi
incq %rdi
xorl %edx, %edx
divq %rdi
movq %rax, %r15
addq -0x8(%rsi,%rcx,8), %r15
cmpq $-0x1, %r15
jne 0x2507a
jmp 0x2508e
movq 0x28(%r12), %rax
movq (%rax), %rcx
incq %rcx
movq %rbx, %rax
xorl %edx, %edx
divq %rcx
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x74c9d
cmpq %r15, %rax
jne 0x25255
incq %rbx
jmp 0x24fde
leaq 0x2c5d47(%rip), %rsi    # 0x2eade4
movq %r13, %rdi
xorl %eax, %eax
callq 0x92e71
leaq 0x2c5d7a(%rip), %rsi    # 0x2eae28
movq %r13, %rdi
xorl %eax, %eax
callq 0x92e71
movq %r12, %rdi
callq 0x24a98
jmp 0x251d8
leaq 0x2c5d18(%rip), %rsi    # 0x2eade4
xorl %ebx, %ebx
movq %r13, %rdi
xorl %eax, %eax
callq 0x92e71
movq %r14, %rdi
callq 0x705a1
cmpq %rax, %rbx
jae 0x2510f
movq %r14, %rdi
movq %rbx, %rsi
callq 0x74d9c
movq %rax, %r15
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x24aee
cmpq %rax, %r15
jne 0x25242
incq %rbx
jmp 0x250d8
leaq 0x2c5d12(%rip), %rsi    # 0x2eae28
movq %r13, %rdi
xorl %eax, %eax
callq 0x92e71
movq %r12, %rdi
callq 0x24a98
movq 0x8(%rsp), %r12
movq 0x18(%rsp), %r15
cmpq $0x0, (%r15)
je 0x251df
leaq 0x2c5cfc(%rip), %rsi    # 0x2eae3f
xorl %ebx, %ebx
movq %r13, %rdi
xorl %eax, %eax
callq 0x92e71
movq (%r15), %rbp
movq %r14, %rdi
callq 0x7055e
movq %rax, %r15
callq 0xaaf34
testb %al, %al
je 0x2517d
leaq 0x2c5ef1(%rip), %rdi    # 0x2eb05e
callq 0xaf4a5
movq %rax, %rbx
movq %rax, %rdi
callq 0xaf4d6
decq %r15
xorl %r12d, %r12d
subq $0x1, %rbp
jb 0x251a6
movq %r15, %rdi
callq 0x955fa
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x705e4
movzbl %al, %eax
addq %rax, %r12
jmp 0x25183
leaq 0x2c5ecb(%rip), %rdi    # 0x2eb078
xorl %ebp, %ebp
movq %r12, %rsi
xorl %eax, %eax
callq 0x17070
testq %rbx, %rbx
je 0x251d8
movq 0x412ceb(%rip), %rax    # 0x437eb0
movq (%rax), %rsi
movq %rbx, %rdi
callq 0xafb49
movq %rbx, %rdi
callq 0xafc5b
movq 0x8(%rsp), %r12
jmp 0x251e1
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x735fd
movq %r12, %rdi
callq 0x79f01
movq %r13, %rdi
callq 0x92fd0
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x412d57(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bfdf8(%rip), %rsi    # 0x2e5013
leaq 0x2c5e0a(%rip), %rdx    # 0x2eb02c
leaq 0x2c5e1a(%rip), %rcx    # 0x2eb043
leaq 0x2c59ec(%rip), %r8     # 0x2eac1c
movl $0xdf, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x412d1f(%rip), %rcx    # 0x437f68
movq (%rcx), %rdi
leaq 0x2c5ba6(%rip), %rsi    # 0x2eadf9
jmp 0x25266
movq 0x412d0c(%rip), %rcx    # 0x437f68
movq (%rcx), %rdi
leaq 0x2c5b51(%rip), %rsi    # 0x2eadb7
movq %rbx, %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x412ce3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bfd84(%rip), %rsi    # 0x2e5013
leaq 0x2c5cf9(%rip), %rdx    # 0x2eaf8f
leaq 0x2c5c1e(%rip), %rcx    # 0x2eaebb
leaq 0x2c5978(%rip), %r8     # 0x2eac1c
movl $0xbc, %r9d
jmp 0x25236
movq 0x412cb5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bfd56(%rip), %rsi    # 0x2e5013
leaq 0x2c5d0b(%rip), %rdx    # 0x2eafcf
leaq 0x2c5bf0(%rip), %rcx    # 0x2eaebb
leaq 0x2c594a(%rip), %r8     # 0x2eac1c
movl $0xc5, %r9d
jmp 0x25236
movq 0x412c84(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bfd25(%rip), %rsi    # 0x2e5013
leaq 0x2c0f77(%rip), %rdx    # 0x2e626c
leaq 0x2c5a89(%rip), %rcx    # 0x2ead85
leaq 0x2c5919(%rip), %r8     # 0x2eac1c
movl $0x116, %r9d            # imm = 0x116
jmp 0x25236
movq 0x412c53(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bfcf4(%rip), %rsi    # 0x2e5013
leaq 0x2bfe99(%rip), %rdx    # 0x2e51bf
leaq 0x2c5a58(%rip), %rcx    # 0x2ead85
leaq 0x2c58e8(%rip), %r8     # 0x2eac1c
movl $0x115, %r9d            # imm = 0x115
jmp 0x25236
movq 0x412c22(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bfcc3(%rip), %rsi    # 0x2e5013
leaq 0x2c5b06(%rip), %rdx    # 0x2eae5d
leaq 0x2c5b5d(%rip), %rcx    # 0x2eaebb
leaq 0x2c58b7(%rip), %r8     # 0x2eac1c
movl $0x8c, %r9d
jmp 0x25236
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
andq $0x0, 0x20(%r12)
movq 0x412be2(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2bfc83(%rip), %rsi    # 0x2e5013
leaq 0x2c5b81(%rip), %rdx    # 0x2eaf18
leaq 0x2c5b1d(%rip), %rcx    # 0x2eaebb
leaq 0x2c5877(%rip), %r8     # 0x2eac1c
movl $0xb5, %r9d
jmp 0x25236