// File: /workspace/github_cpp_makefile_star2_O2/lemire[P]runningmaxmin/runningmaxmin.cpp
// Function: compareallalgos(std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&, unsigned int, bool)
void compareallalgos(std::vector<floattype> & data,
                     std::vector<double> & timings, uint width, bool doslow) {
    if (timings.size() < 8)
        timings = std::vector<double>(8, 0.0);
    clock_t start, finish;
    start = clock();
    if (doslow)
        slowmaxmin A(data, width);
    finish = clock();
    timings[0] += static_cast<double>(finish - start) / CLOCKS_PER_SEC;
    start = clock();
    vanHerkGilWermanmaxmin B(data, width);
    finish = clock();
    timings[1] += static_cast<double>(finish - start) / CLOCKS_PER_SEC;
    start = clock();
    lemiremaxmin C(data, width);
    finish = clock();
    timings[2] += static_cast<double>(finish - start) / CLOCKS_PER_SEC;
    start = clock();
    GilKimmel D(data, width);
    finish = clock();
    timings[3] += static_cast<double>(finish - start) / CLOCKS_PER_SEC;
    start = clock();
    if (width < sizeof(unsigned long) * 8)
        lemirebitmapmaxmin BL(data, width);
    finish = clock();
    timings[4] += static_cast<double>(finish - start) / CLOCKS_PER_SEC;
    start = clock();
    simplelemiremaxmin F(data, width);
    finish = clock();
    timings[5] += static_cast<double>(finish - start) / CLOCKS_PER_SEC;
    start = clock();
    lemiremaxminwrap Cw(data, width);
    finish = clock();
    timings[6] += static_cast<double>(finish - start) / CLOCKS_PER_SEC;
    start = clock();
    monowedgewrap Mw(data, width);
    finish = clock();
    timings[7] += static_cast<double>(finish - start) / CLOCKS_PER_SEC;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x150, %rsp            # imm = 0x150
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rax
subq (%rsi), %rax
cmpq $0x3f, %rax
ja 0x2513
leaq 0xa8(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x38(%rsp), %r12
pushq $0x8
popq %rsi
leaq 0x70(%rsp), %rcx
movq %r12, %rdi
callq 0x373a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6d0c
movq %r12, %rdi
callq 0x6b18
callq 0x20b0
movq %rax, %r12
testb %r15b, %r15b
je 0x253a
leaq 0x38(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x3792
movq %r15, %rdi
callq 0x3888
callq 0x20b0
subq %r12, %rax
vcvtsi2sd %rax, %xmm0, %xmm0
vdivsd 0x4ac9(%rip), %xmm0, %xmm0 # 0x7018
movq (%rbx), %rax
vaddsd (%rax), %xmm0, %xmm0
vmovsd %xmm0, (%rax)
callq 0x20b0
movq %rax, %r15
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x38b0
callq 0x20b0
subq %r15, %rax
vcvtsi2sd %rax, %xmm1, %xmm0
vdivsd 0x4a92(%rip), %xmm0, %xmm0 # 0x7018
movq (%rbx), %rax
vaddsd 0x8(%rax), %xmm0, %xmm0
vmovsd %xmm0, 0x8(%rax)
callq 0x20b0
movq %rax, %r15
leaq 0xa8(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x3c8a
callq 0x20b0
subq %r15, %rax
vcvtsi2sd %rax, %xmm1, %xmm0
vdivsd 0x4a56(%rip), %xmm0, %xmm0 # 0x7018
movq (%rbx), %rax
vaddsd 0x10(%rax), %xmm0, %xmm0
vmovsd %xmm0, 0x10(%rax)
callq 0x20b0
movq %rax, %r15
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x406a
callq 0x20b0
subq %r15, %rax
vcvtsi2sd %rax, %xmm1, %xmm0
vdivsd 0x4a1d(%rip), %xmm0, %xmm0 # 0x7018
movq (%rbx), %rax
vaddsd 0x18(%rax), %xmm0, %xmm0
vmovsd %xmm0, 0x18(%rax)
callq 0x20b0
movq %rax, %r15
cmpl $0x3f, %ebp
ja 0x262a
movq %rsp, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x4382
movq %rsp, %rdi
callq 0x4680
callq 0x20b0
subq %r15, %rax
vcvtsi2sd %rax, %xmm1, %xmm0
vdivsd 0x49d9(%rip), %xmm0, %xmm0 # 0x7018
movq (%rbx), %rax
vaddsd 0x20(%rax), %xmm0, %xmm0
vmovsd %xmm0, 0x20(%rax)
callq 0x20b0
movq %rax, %r15
movq %rsp, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x46a8
callq 0x20b0
subq %r15, %rax
vcvtsi2sd %rax, %xmm1, %xmm0
vdivsd 0x49a2(%rip), %xmm0, %xmm0 # 0x7018
movq (%rbx), %rax
vaddsd 0x28(%rax), %xmm0, %xmm0
vmovsd %xmm0, 0x28(%rax)
callq 0x20b0
movq %rax, %r15
leaq 0xe0(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x4a24
callq 0x20b0
subq %r15, %rax
vcvtsi2sd %rax, %xmm1, %xmm0
vdivsd 0x4966(%rip), %xmm0, %xmm0 # 0x7018
movq (%rbx), %rax
vaddsd 0x30(%rax), %xmm0, %xmm0
vmovsd %xmm0, 0x30(%rax)
callq 0x20b0
movq %rax, %r15
leaq 0x118(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x4b6a
callq 0x20b0
subq %r15, %rax
vcvtsi2sd %rax, %xmm1, %xmm0
vdivsd 0x492a(%rip), %xmm0, %xmm0 # 0x7018
movq (%rbx), %rax
vaddsd 0x38(%rax), %xmm0, %xmm0
vmovsd %xmm0, 0x38(%rax)
leaq 0x118(%rsp), %rdi
callq 0x4d6e
leaq 0xe0(%rsp), %rdi
callq 0x4d96
movq %rsp, %rdi
callq 0x4dbe
leaq 0x70(%rsp), %rdi
callq 0x4de6
leaq 0xa8(%rsp), %rdi
callq 0x4e0e
leaq 0x38(%rsp), %rdi
callq 0x4e36
addq $0x150, %rsp            # imm = 0x150
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x276f
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x4d96
jmp 0x2765
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4dbe
jmp 0x2772
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x4de6
jmp 0x2781
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x4e0e
leaq 0x38(%rsp), %rdi
callq 0x4e36
movq %rbx, %rdi
callq 0x21e0
movq %rax, %rbx
jmp 0x278e