// File: /workspace/github_c_makefile_star2_O3/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, %r15
movq %rcx, %r13
movl %edx, %ebp
movq %rsi, %rbx
testq %r8, %r8
je 0xa3152
movq %r15, %rdi
callq 0xfcc32
testb %al, %al
jne 0xa36fa
testq %r13, %r13
je 0xa36eb
callq 0xef0cd
movq %rax, %r12
movslq %ebp, %rax
movq (%rbx,%rax,8), %rbx
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xef129
movq %rax, %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xa358e
movq %r13, %rax
xorl %r13d, %r13d
movq %rax, 0x20(%rsp)
cmpb $0x1, 0x8(%rax)
movq %r12, 0x8(%rsp)
jne 0xa3511
movq %rbx, %rdi
movq %r15, %rsi
callq 0xfb8bc
movq %rax, %rbx
testq %rax, %rax
je 0xa3596
leaq 0x2a7a5b(%rip), %rsi    # 0x34ac1c
movl $0x30, %edi
movl $0x88, %edx
callq 0x104226
movq %rax, %r12
movq %rbx, %rdi
callq 0xfbf17
movq %rax, (%r12)
movq %rbx, %rdi
callq 0xfbf07
movq %rax, 0x8(%r12)
movq (%r12), %rcx
decq %rcx
cmpq %rax, %rcx
jae 0xa36ff
movq %r14, %rdi
callq 0xe7bac
testq %rax, %rax
je 0xa3689
movq %rbx, 0x18(%rsp)
movl $0x1, %eax
movq %rax, 0x10(%rsp)
xorl %ebp, %ebp
xorl %r13d, %r13d
movq %r14, %rdi
movq %rbp, %rsi
callq 0xeb9d2
movq %rax, %rbx
testq %rbp, %rbp
je 0xa3243
cmpq %rbx, %r13
ja 0xa35da
adcq $0x0, 0x10(%rsp)
incq %rbp
movq %r14, %rdi
callq 0xe7bac
movq %rbx, %r13
cmpq %rax, %rbp
jb 0xa3221
leaq 0x2a79bf(%rip), %rdx    # 0x34ac1c
movl $0x8, %esi
movq 0x10(%rsp), %r15
movq %r15, %rdi
movl $0xa0, %ecx
callq 0x10436a
movq %rax, 0x28(%r12)
cmpq $0x1, %r15
jbe 0xa3691
leaq -0x8(,%r15,8), %r15
leaq 0x2a798a(%rip), %r13    # 0x34ac1c
movq %r15, %rdi
movq %r13, %rsi
movl $0xa8, %edx
callq 0x104226
movq %rax, 0x18(%r12)
movq %r15, %rdi
movq %r13, %rsi
movl $0xab, %edx
callq 0x104226
movq %rax, 0x20(%r12)
movq $0x0, 0x10(%r12)
cmpq $0x0, 0x18(%r12)
je 0xa36a3
testq %rax, %rax
je 0xa36a3
cmpq $0x0, 0x28(%r12)
je 0xa36a3
movq %r14, %rdi
callq 0xe7bac
testq %rax, %rax
je 0xa3396
decq 0x10(%rsp)
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0xeb9d2
movq %rax, %r13
testq %r15, %r15
je 0xa3374
cmpq %r13, %rbx
jae 0xa336c
movq 0x10(%r12), %rax
cmpq 0x10(%rsp), %rax
jae 0xa36f0
movq 0x20(%r12), %rcx
movq %r15, (%rcx,%rax,8)
movq 0x10(%r12), %rax
movq 0x18(%r12), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%r12)
movq %rbp, (%rcx,%rax,8)
movq 0x10(%r12), %rax
movq 0x28(%r12), %rcx
movq %r13, (%rcx,%rax,8)
movq %r14, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0xe7bbc
cmpb $-0x1, %al
jne 0xa36f5
addq %r13, %rbp
incq %rbp
jmp 0xa337f
movq 0x28(%r12), %rax
movq %r13, (%rax)
movq %r13, %rbp
incq %r15
movq %r14, %rdi
callq 0xe7bac
movq %r13, %rbx
cmpq %rax, %r15
jb 0xa3301
incq 0x10(%r12)
movq 0x18(%rsp), %rdi
callq 0xfbf9f
movq 0x20(%rsp), %rax
movzbl 0x9(%rax), %edi
movq 0x415b23(%rip), %rax    # 0x4b8ed8
movq (%rax), %rdx
leaq 0x2a3515(%rip), %rsi    # 0x3468d4
callq 0x103e40
movq %rax, %r13
leaq 0x2a79ce(%rip), %rsi    # 0x34ad9c
movq %rax, %rdi
xorl %eax, %eax
callq 0x103fe1
movq %r14, %rdi
callq 0xe7b9c
testq %rax, %rax
je 0xa349e
xorl %ebx, %ebx
movq %r14, %rdi
callq 0xe7b9c
cmpq %rbx, %rax
jbe 0xa36a8
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xe7bbc
cmpb $-0x1, %al
je 0xa348a
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0xeb47d
testq %rax, %rax
je 0xa3460
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 0xa3476
jmp 0xa348a
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 0xeb655
cmpq %r15, %rax
jne 0xa36c0
incq %rbx
movq %r14, %rdi
callq 0xe7b9c
cmpq %rax, %rbx
jb 0xa33eb
leaq 0x2a793f(%rip), %rsi    # 0x34ade4
movq %r13, %rdi
xorl %eax, %eax
callq 0x103fe1
movq %r14, %rdi
callq 0xe7bac
testq %rax, %rax
je 0xa34f3
xorl %ebx, %ebx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xeb6ee
movq %rax, %r15
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xa2fae
cmpq %rax, %r15
jne 0xa36ad
incq %rbx
movq %r14, %rdi
callq 0xe7bac
cmpq %rax, %rbx
jb 0xa34be
leaq 0x2a792e(%rip), %rsi    # 0x34ae28
movq %r13, %rdi
xorl %eax, %eax
callq 0x103fe1
movq %r12, %rdi
callq 0xa2f50
movq 0x8(%rsp), %r12
movq 0x20(%rsp), %r15
cmpq $0x0, (%r15)
je 0xa35d3
leaq 0x2a7918(%rip), %rsi    # 0x34ae3f
xorl %ebx, %ebx
movq %r13, %rdi
xorl %eax, %eax
callq 0x103fe1
movq (%r15), %rbp
movq %r14, %rdi
callq 0xe7b9c
movq %rax, %r15
callq 0x119160
testb %al, %al
je 0xa3561
leaq 0x2a7b0d(%rip), %rdi    # 0x34b05e
callq 0x11c986
movq %rax, %rbx
movq %rax, %rdi
callq 0x11c9e3
testq %rbp, %rbp
je 0xa359b
decq %r15
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x105d85
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0xe7bbc
movzbl %al, %eax
addq %rax, %r12
decq %rbp
jne 0xa356c
jmp 0xa359e
xorl %r13d, %r13d
jmp 0xa3660
xorl %r12d, %r12d
jmp 0xa3611
xorl %r12d, %r12d
leaq 0x2a7ad3(%rip), %rdi    # 0x34b078
movq %r12, %rsi
xorl %eax, %eax
callq 0x17070
testq %rbx, %rbx
je 0xa35ce
movq 0x41591d(%rip), %rax    # 0x4b8ed8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x11cf39
movq %rbx, %rdi
callq 0x11d054
movq 0x8(%rsp), %r12
xorl %ebp, %ebp
jmp 0xa3660
leaq -0x1(%rbp), %rdx
leaq 0x2a78ee(%rip), %rsi    # 0x34aed3
movq %r15, %rdi
movq %r13, %rcx
movq %rbp, %r8
movq %rbx, %r9
xorl %eax, %eax
callq 0xfcb67
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x10(%r12)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0xfbf9f
movq %r12, %rdi
callq 0xa2f50
leaq 0x2a7774(%rip), %rsi    # 0x34ad9c
xorl %r13d, %r13d
xorl %edi, %edi
xorl %eax, %eax
callq 0x103fe1
leaq 0x2a77a9(%rip), %rsi    # 0x34ade4
xorl %edi, %edi
xorl %eax, %eax
callq 0x103fe1
leaq 0x2a77dd(%rip), %rsi    # 0x34ae28
xorl %edi, %edi
xorl %eax, %eax
callq 0x103fe1
xorl %edi, %edi
callq 0xa2f50
movq 0x8(%rsp), %r12
movq %r14, %rdi
callq 0xea375
movq %r12, %rdi
callq 0xefbe3
movq %r13, %rdi
callq 0x1040e0
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x1a0d5
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
movq $0x0, 0x20(%r12)
callq 0x1a0f6
callq 0x1a09c
movq 0x4158cc(%rip), %rcx    # 0x4b8f80
movq (%rcx), %rdi
leaq 0x2a773b(%rip), %rsi    # 0x34adf9
jmp 0xa36d1
movq 0x4158b9(%rip), %rcx    # 0x4b8f80
movq (%rcx), %rdi
leaq 0x2a76e6(%rip), %rsi    # 0x34adb7
movq %rbx, %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x17ab0
movl $0x2, %edi
callq 0x17940
callq 0x1a12f
callq 0x1a02a
callq 0x1a063
callq 0x19fb8
callq 0x19ff1