// File: /workspace/github_cpp_makefile_star2_O3/lemire[P]validateutf8-experiments/benchmarks/benchmark.cpp
// Function: RealDataBenchmark::run()
void run() {
    printf("\n");
    printf("Running UTF8 validation benchmark.\n");
    printf("The speed is normalized by the number of input bytes.\n");
    const size_t repeat = 1000;
    for (std::string filename : filenames) {
      std::ifstream in(filename);
      if (!in) {
        std::cerr << " I cannot load " << filename << std::endl;
        continue;
      }
      std::vector<char> utf8((std::istreambuf_iterator<char>(in)),
                             std::istreambuf_iterator<char>());
      std::cout << "file: " << filename << " (" << utf8.size() / 1000 << "KB)"
                << std::endl;

      run(utf8, repeat);
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdi, %r14
movl $0xa, %edi
callq 0x21b0
leaq 0xc393(%rip), %rdi      # 0x12646
callq 0x2200
leaq 0xc3aa(%rip), %rdi      # 0x12669
callq 0x2200
movq (%r14), %rbx
movq %r14, 0x48(%rsp)
movq 0x8(%r14), %r13
cmpq %r13, %rbx
je 0x64a5
leaq 0x20(%rsp), %rbp
leaq 0x10(%rsp), %r14
leaq 0x50(%rsp), %r15
movq %rbp, 0x10(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x6b42
movq %r15, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x2210
movq 0x50(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x70(%rsp,%rax)
je 0x637c
movl $0xf, %edx
movq 0xfcc5(%rip), %rdi      # 0x15ff0
leaq 0xc056(%rip), %rsi      # 0x12388
callq 0x2180
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0xfca8(%rip), %rdi      # 0x15ff0
callq 0x2180
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
jmp 0x6479
movq 0x138(%rsp,%rax), %rsi
leaq 0x30(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
leaq 0xf(%rsp), %r9
callq 0x6bd8
movl $0x6, %edx
movq 0xfc24(%rip), %rdi      # 0x15fd0
leaq 0xbfe5(%rip), %rsi      # 0x12398
callq 0x2180
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0xfc07(%rip), %rdi      # 0x15fd0
callq 0x2180
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
leaq 0xbfbf(%rip), %rsi      # 0x1239f
callq 0x2180
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
mulq %rcx
shrq $0x4, %rdx
movq %r12, %rdi
movq %rdx, %rsi
callq 0x20d0
movq %rax, %r12
movl $0x3, %edx
movq %rax, %rdi
leaq 0xbf81(%rip), %rsi      # 0x123a2
callq 0x2180
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movl $0x3e8, %edx            # imm = 0x3E8
movq 0x48(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x6c1a
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x6479
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq %r15, %rdi
callq 0x2060
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6498
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2170
addq $0x20, %rbx
cmpq %r13, %rbx
jne 0x62e8
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x64be
movq %rax, %rbx
jmp 0x64e7
movq %rax, %rbx
jmp 0x64dd
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x64dd
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq 0x50(%rsp), %rdi
callq 0x2060
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x64fe
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2250