// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_compreads_decompress.c
// Function: gt_compreads_decompress_benchmark
static int gt_compreads_decompress_benchmark(GtHcrDecoder *hcrd,
                                             GtUword amount,
                                             GtTimer *timer,
                                             GtError *err) {
  char qual[BUFSIZ] = {0},
       seq[BUFSIZ] = {0};
  int had_err = 0;
  GtUword rand,
                max_rand = gt_hcr_decoder_num_of_reads(hcrd) - 1,
                count;

  GtStr *timer_comment = gt_str_new_cstr("extracting ");
  GtStr *desc = gt_str_new();

  gt_str_append_uword(timer_comment, amount);
  gt_str_append_cstr(timer_comment, " reads of ");
  gt_str_append_uword(timer_comment, max_rand + 1);
  gt_str_append_cstr(timer_comment, "!");

  if (timer == NULL) {
    timer = gt_timer_new_with_progress_description("extract random reads");
    gt_timer_start(timer);
  }
  else {
    gt_timer_show_progress(timer, "extract random reads", stdout);
  }

  gt_log_log("%s",gt_str_get(timer_comment));
  for (count = 0; count < amount; count++) {
    if (!had_err) {
      rand = gt_rand_max(max_rand);
      gt_log_log("get read: "GT_WU"", rand);
      had_err = gt_hcr_decoder_decode(hcrd, rand, seq, qual, desc, err);
      gt_log_log("%s",gt_str_get(desc));
      gt_log_log("%s",seq);
      gt_log_log("%s",qual);
    }
  }
  gt_str_delete(timer_comment);
  gt_str_delete(desc);
  if (!gt_showtime_enabled())
    gt_timer_delete(timer);
  return had_err;
}

// Assembly:
subq $0x4058, %rsp           # imm = 0x4058
movq %rdi, 0x4050(%rsp)
movq %rsi, 0x4048(%rsp)
movq %rdx, 0x4040(%rsp)
movq %rcx, 0x4038(%rsp)
leaq 0x2030(%rsp), %rdi
xorl %esi, %esi
movl $0x2000, %edx           # imm = 0x2000
callq 0x19360
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
movl $0x2000, %edx           # imm = 0x2000
callq 0x19360
movl $0x0, 0x2c(%rsp)
movq 0x4050(%rsp), %rdi
callq 0x1871a0
subq $0x1, %rax
movq %rax, 0x18(%rsp)
leaq 0x4f7540(%rip), %rdi    # 0x5183c1
callq 0x11d510
movq %rax, 0x8(%rsp)
callq 0x11d4a0
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
movq 0x4048(%rsp), %rsi
callq 0x11d930
movq 0x8(%rsp), %rdi
leaq 0x4f751b(%rip), %rsi    # 0x5183cd
callq 0x11d550
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
addq $0x1, %rsi
callq 0x11d930
movq 0x8(%rsp), %rdi
leaq 0x56dd59(%rip), %rsi    # 0x58ec2f
callq 0x11d550
cmpq $0x0, 0x4040(%rsp)
jne 0x20f09
leaq 0x4f74eb(%rip), %rdi    # 0x5183d8
callq 0x1213a0
movq %rax, 0x4040(%rsp)
movq 0x4040(%rsp), %rdi
callq 0x1213f0
jmp 0x20f27
movq 0x4040(%rsp), %rdi
movq 0x61b020(%rip), %rax    # 0x63bf38
movq (%rax), %rdx
leaq 0x4f74b6(%rip), %rsi    # 0x5183d8
callq 0x121930
movq 0x8(%rsp), %rdi
callq 0x11dee0
movq %rax, %rsi
leaq 0x57b0e6(%rip), %rdi    # 0x59c021
movb $0x0, %al
callq 0xe7740
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x4048(%rsp), %rax
jae 0x21012
cmpl $0x0, 0x2c(%rsp)
jne 0x20ffd
movq 0x18(%rsp), %rdi
callq 0xec350
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rsi
leaq 0x4f7469(%rip), %rdi    # 0x5183ed
movb $0x0, %al
callq 0xe7740
movq 0x4050(%rsp), %rdi
movq 0x20(%rsp), %rsi
leaq 0x30(%rsp), %rdx
leaq 0x2030(%rsp), %rcx
movq (%rsp), %r8
movq 0x4038(%rsp), %r9
callq 0x1862d0
movl %eax, 0x2c(%rsp)
movq (%rsp), %rdi
callq 0x11dee0
movq %rax, %rsi
leaq 0x57b054(%rip), %rdi    # 0x59c021
movb $0x0, %al
callq 0xe7740
leaq 0x30(%rsp), %rsi
leaq 0x57b041(%rip), %rdi    # 0x59c021
movb $0x0, %al
callq 0xe7740
leaq 0x2030(%rsp), %rsi
leaq 0x57b02b(%rip), %rdi    # 0x59c021
movb $0x0, %al
callq 0xe7740
jmp 0x20fff
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x20f4b
movq 0x8(%rsp), %rdi
callq 0x11f560
movq (%rsp), %rdi
callq 0x11f560
callq 0x11aa90
testb $0x1, %al
jne 0x2103b
movq 0x4040(%rsp), %rdi
callq 0x121f00
movl 0x2c(%rsp), %eax
addq $0x4058, %rsp           # imm = 0x4058
retq
nopw (%rax,%rax)