// File: /workspace/github_cpp_makefile_star2_O3/travisdowns[P]avx-turbo/avx-turbo.cpp
// Function: make_default_tests(ISA, std::vector<int, std::allocator<int>>)
std::vector<test_spec> make_default_tests(ISA isas_supported, std::vector<int> cpus) {
    std::vector<test_spec> ret;

    size_t maxcpus;
    if (arg_max_threads) {
        auto max = arg_max_threads.Get();
        if (max > (int)cpus.size()) {
            printf("WARNING: can't run the requested number of threads (%d) because there are only %d available logical CPUs.\n",
                    max, (int)cpus.size());
            maxcpus = (int)cpus.size();
        } else {
            maxcpus = max;
        }
    } else {
        maxcpus = cpus.size();
    }

    printf("Will test up to %lu CPUs\n", maxcpus);

    auto try_add = [&ret](const test_func& t, size_t thread_count) {
        test_spec spec(t.id, t.description);
        spec.thread_funcs.resize(thread_count, t); // fill with thread_count copies of t
        ret.push_back(std::move(spec));
    };

    std::vector<test_func> funcs; // the selected test functions
    if (arg_focus) {
        for (auto& focus : split(arg_focus.Get(), ",")) {
            auto t = find_one_test(focus);
            if (!t) {
                printf("WARNING: Can't find specified test: %s\n", focus.c_str());
            } else {
                funcs.push_back(*t);
            }
        }
    } else {
        funcs.insert(funcs.begin(), std::begin(ALL_FUNCS), std::end(ALL_FUNCS));
    }

    for (size_t thread_count = arg_min_threads.Get(); thread_count <= maxcpus; thread_count++) {
        for (const auto& t : funcs) {
            if (should_run(t, isas_supported)) {
                try_add(t, thread_count);
            }
        }
    }

    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
movl %esi, 0x4(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, 0x8(%rsp)
movq $0x0, 0x10(%rdi)
movq 0x20deb(%rip), %rax     # 0x28fa0
leaq 0x20de4(%rip), %rdi     # 0x28fa0
callq *0x10(%rax)
testb %al, %al
je 0x81fb
movslq 0x20e9e(%rip), %r12     # 0x29068
movq 0x8(%rbx), %rdx
subq (%rbx), %rdx
shrq $0x2, %rdx
cmpl %edx, %r12d
jle 0x8206
leaq 0x1639f(%rip), %rdi     # 0x1e580
movl %r12d, %esi
xorl %eax, %eax
callq 0x6050
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x2, %rax
movslq %eax, %r12
jmp 0x8206
movq 0x8(%rbx), %r12
subq (%rbx), %r12
sarq $0x2, %r12
leaq 0x163de(%rip), %rdi     # 0x1e5eb
movq %r12, %rsi
xorl %eax, %eax
callq 0x6050
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x209e9(%rip), %rax     # 0x28c18
leaq 0x209e2(%rip), %rdi     # 0x28c18
callq *0x10(%rax)
testb %al, %al
movq %r12, 0x28(%rsp)
je 0x8336
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x163ac(%rip), %rsi     # 0x1e605
leaq 0x163a6(%rip), %rdx     # 0x1e606
leaq 0x70(%rsp), %rdi
callq 0xdf70
leaq 0x20a6f(%rip), %rsi     # 0x28ce0
leaq 0x30(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x8519
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x828f
callq 0x6320
movq 0x30(%rsp), %rbx
movq 0x38(%rsp), %r13
cmpq %r13, %rbx
je 0x8325
leaq 0x1ede7(%rip), %rbp     # 0x27090
leaq 0x10(%rsp), %r14
leaq 0x16352(%rip), %r15     # 0x1e607
xorl %r12d, %r12d
movq 0x8(%r12,%rbp), %rsi
movq %rbx, %rdi
callq 0x60b0
testl %eax, %eax
je 0x82e5
addq $0x20, %r12
cmpq $0x620, %r12            # imm = 0x620
jne 0x82b8
movq (%rbx), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x6050
jmp 0x831c
movq 0x18(%rsp), %rsi
addq %rbp, %r12
cmpq 0x20(%rsp), %rsi
je 0x8311
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x831c
movq %r14, %rdi
movq %r12, %rdx
callq 0x13a44
addq $0x20, %rbx
cmpq %r13, %rbx
jne 0x82b5
leaq 0x30(%rsp), %rdi
callq 0xad22
movq 0x28(%rsp), %r12
jmp 0x8350
leaq 0x1ed53(%rip), %rdx     # 0x27090
leaq 0x1f36c(%rip), %rcx     # 0x276b0
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x13b2a
movslq 0x20c41(%rip), %r15     # 0x28f98
cmpq %r15, %r12
jb 0x846c
notl 0x4(%rsp)
leaq 0x30(%rsp), %r13
leaq 0x50(%rsp), %rbx
leaq 0x70(%rsp), %r14
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %rbp
cmpq %rbp, %r12
je 0x845b
movl 0x4(%rsp), %eax
testl %eax, 0x18(%r12)
jne 0x8452
movq 0x8(%r12), %rsi
movq %r13, %rdi
leaq 0x3(%rsp), %rdx
callq 0x6100
movq 0x10(%r12), %rsi
movq %rbx, %rdi
leaq 0x2(%rsp), %rdx
callq 0x6100
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0xad94
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x83db
callq 0x6320
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x83ef
callq 0x6320
leaq 0xb0(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xe006
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xe2a2
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x8421
callq 0x6320
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x843b
callq 0x6320
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x8452
callq 0x6320
addq $0x20, %r12
jmp 0x837d
incq %r15
movq 0x28(%rsp), %r12
cmpq %r12, %r15
jbe 0x8373
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x847b
callq 0x6320
movq 0x8(%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
jne 0x84df
jmp 0x84f8
jmp 0x84e6
jmp 0x84e6
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xad22
jmp 0x84f8
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x84d0
callq 0x6320
jmp 0x84d0
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x84f8
callq 0x6320
jmp 0x84f8
movq %rax, %rbx
jmp 0x84f8
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xae82
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x8507
callq 0x6320
movq 0x8(%rsp), %rdi
callq 0xad6c
movq %rbx, %rdi
callq 0x65f0