// File: /workspace/github_c_makefile_star2_O0/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:
subq $0xa8, %rsp
movl %edi, 0xa4(%rsp)
movq %rsi, 0x98(%rsp)
movl %edx, 0x94(%rsp)
movq %rcx, 0x88(%rsp)
movq %r8, 0x80(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq $0x0, 0x60(%rsp)
movl $0x0, 0x54(%rsp)
cmpq $0x0, 0x80(%rsp)
je 0x2e191
movq 0x80(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x2e159
jmp 0x2e191
movq 0x60de40(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4e7ea9(%rip), %rsi    # 0x516013
leaq 0x4e804e(%rip), %rdx    # 0x5161bf
leaq 0x4edc54(%rip), %rcx    # 0x51bdcc
leaq 0x4edae4(%rip), %r8     # 0x51bc63
movl $0x115, %r9d            # imm = 0x115
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2e193
jmp 0x2e195
cmpq $0x0, 0x78(%rsp)
jne 0x2e1d5
movq 0x60ddfc(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4e7e65(%rip), %rsi    # 0x516013
leaq 0x4e90cf(%rip), %rdx    # 0x517284
leaq 0x4edc10(%rip), %rcx    # 0x51bdcc
leaq 0x4edaa0(%rip), %r8     # 0x51bc63
movl $0x116, %r9d            # imm = 0x116
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2e1d7
callq 0xb7a40
movq %rax, 0x70(%rsp)
movq 0x98(%rsp), %rax
movslq 0x94(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x58(%rsp)
movq 0x70(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x80(%rsp), %rdx
callq 0xb7aa0
movq %rax, 0x68(%rsp)
cmpq $0x0, 0x68(%rsp)
jne 0x2e22b
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x2e4a1
movq 0x78(%rsp), %rax
testb $0x1, 0x8(%rax)
je 0x2e468
movq 0x68(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x80(%rsp), %rdx
callq 0x2e4d0
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x2e268
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x2e290
movq 0x78(%rsp), %rax
movb 0x9(%rax), %al
movq 0x60dcc1(%rip), %rcx    # 0x63bf38
movq (%rcx), %rdx
leaq 0x4e966b(%rip), %rsi    # 0x5178ec
andb $0x1, %al
movzbl %al, %edi
callq 0xe7870
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rdi
leaq 0x4edb47(%rip), %rsi    # 0x51bde3
movb $0x0, %al
callq 0xe7cd0
movq $0x0, 0x40(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x54(%rsp)
movb %al, 0x1f(%rsp)
jne 0x2e2df
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rdi
callq 0xa9d00
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
setb %al
movb %al, 0x1f(%rsp)
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x2e2ec
jmp 0x2e375
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x2e9d0
movq %rax, 0x48(%rsp)
cmpq $-0x1, 0x48(%rsp)
je 0x2e360
movq 0x68(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xb03a0
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x48(%rsp), %rax
je 0x2e35e
movq 0x60dc6c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x40(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x30(%rsp), %r8
leaq 0x4edab1(%rip), %rsi    # 0x51bdfe
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
jmp 0x2e360
jmp 0x2e362
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x2e2ac
movq 0x60(%rsp), %rdi
leaq 0x4edaaa(%rip), %rsi    # 0x51be2b
movb $0x0, %al
callq 0xe7cd0
movq $0x0, 0x48(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x54(%rsp)
movb %al, 0xf(%rsp)
jne 0x2e3c2
movq 0x48(%rsp), %rax
movq %rax, (%rsp)
movq 0x68(%rsp), %rdi
callq 0xa9d50
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
setb %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x2e3cc
jmp 0x2e44b
movq 0x68(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0xb0530
movq %rax, 0x28(%rsp)
movq 0x68(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x2ddb0
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x20(%rsp), %rax
je 0x2e436
movq 0x60db94(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x48(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq 0x20(%rsp), %r8
leaq 0x4eda1b(%rip), %rsi    # 0x51be40
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
jmp 0x2e438
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
jmp 0x2e391
movq 0x60(%rsp), %rdi
leaq 0x4eda18(%rip), %rsi    # 0x51be6f
movb $0x0, %al
callq 0xe7cd0
movq 0x38(%rsp), %rdi
callq 0x2dd40
cmpl $0x0, 0x54(%rsp)
jne 0x2e49f
movq 0x78(%rsp), %rax
cmpq $0x0, (%rax)
jbe 0x2e49f
movq 0x60(%rsp), %rdi
leaq 0x4eda00(%rip), %rsi    # 0x51be86
movb $0x0, %al
callq 0xe7cd0
movq 0x68(%rsp), %rdi
movq 0x78(%rsp), %rax
movq (%rax), %rsi
callq 0x2eb20
jmp 0x2e4a1
movq 0x68(%rsp), %rdi
callq 0xae070
movq 0x70(%rsp), %rdi
callq 0xb7e50
movq 0x60(%rsp), %rdi
callq 0xe7ed0
movl 0x54(%rsp), %eax
addq $0xa8, %rsp
retq
nopl (%rax,%rax)