// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, 0x10(%rdi)
xorps %xmm0, %xmm0
movq %rdi, 0x8(%rsp)
movups %xmm0, (%rdi)
movq 0x207cf(%rip), %rax     # 0x27fc0
leaq 0x207c8(%rip), %rdi     # 0x27fc0
callq *0x10(%rax)
testb %al, %al
je 0x7835
movslq 0x20882(%rip), %rbp     # 0x28088
movq 0x8(%rbx), %rdx
subq (%rbx), %rdx
shrq $0x2, %rdx
cmpl %edx, %ebp
jle 0x7840
leaq 0x13d7e(%rip), %rdi     # 0x1b59a
movl %ebp, %esi
xorl %eax, %eax
callq 0x6050
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x2, %rax
movslq %eax, %rbp
jmp 0x7840
movq 0x8(%rbx), %rbp
subq (%rbx), %rbp
sarq $0x2, %rbp
leaq 0x13dbe(%rip), %rdi     # 0x1b605
movq %rbp, %rsi
xorl %eax, %eax
callq 0x6050
andq $0x0, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x203d2(%rip), %rax     # 0x27c38
leaq 0x203cb(%rip), %rdi     # 0x27c38
callq *0x10(%rax)
testb %al, %al
je 0x78f2
leaq 0x13da4(%rip), %rsi     # 0x1b61f
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x6100
leaq 0x2046f(%rip), %rsi     # 0x27d00
leaq 0x30(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x7a61
leaq 0x70(%rsp), %rdi
callq 0x6140
movq 0x30(%rsp), %rbx
movq 0x38(%rsp), %r12
leaq 0x13d66(%rip), %r14     # 0x1b621
leaq 0x10(%rsp), %r15
cmpq %r12, %rbx
je 0x790e
movq %rbx, %rdi
callq 0x7783
testq %rax, %rax
je 0x78df
movq %r15, %rdi
movq %rax, %rsi
callq 0x9992
jmp 0x78ec
movq (%rbx), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6050
addq $0x20, %rbx
jmp 0x78c0
leaq 0x1e727(%rip), %rdx     # 0x26020
leaq 0x1ed40(%rip), %rcx     # 0x26640
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x99da
jmp 0x7918
leaq 0x30(%rsp), %rdi
callq 0x99b8
movslq 0x20699(%rip), %r15     # 0x27fb8
notl 0x4(%rsp)
leaq 0x30(%rsp), %r13
leaq 0x50(%rsp), %rbx
leaq 0x70(%rsp), %r14
movq %rbp, 0x28(%rsp)
cmpq %rbp, %r15
ja 0x79d7
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %rbp
cmpq %rbp, %r12
je 0x79ca
movl 0x4(%rsp), %eax
testl %eax, 0x18(%r12)
jne 0x79c4
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 0x9a1c
movq %rbx, %rdi
callq 0x6140
movq %r13, %rdi
callq 0x6140
leaq 0xb0(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xc6d4
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xc9ac
movq %r14, %rdi
callq 0x9b6a
addq $0x20, %r12
jmp 0x794a
incq %r15
movq 0x28(%rsp), %rbp
jmp 0x7937
leaq 0x10(%rsp), %rdi
callq 0xcc02
movq 0x8(%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
jmp 0x7a31
jmp 0x7a1a
jmp 0x7a1a
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x99b8
jmp 0x7a45
movq %rax, %rbx
jmp 0x7a2c
movq %rax, %rbx
jmp 0x7a45
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x6140
leaq 0x30(%rsp), %rdi
callq 0x6140
jmp 0x7a45
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x9b6a
leaq 0x10(%rsp), %rdi
callq 0xcc02
movq 0x8(%rsp), %rdi
callq 0x99fa
movq %rbx, %rdi
callq 0x65f0