// File: /workspace/github_cpp_makefile_star2_O1/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 $0xd8, %rsp
movq %rdx, %rbx
movl %esi, 0x1c(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, 0x10(%rsp)
movq $0x0, 0x10(%rdi)
movq 0x20de9(%rip), %rax     # 0x28fa0
leaq 0x20de2(%rip), %rdi     # 0x28fa0
callq *0x10(%rax)
testb %al, %al
je 0x81fd
movslq 0x20e9c(%rip), %r12     # 0x29068
movq 0x8(%rbx), %rdx
subq (%rbx), %rdx
shrq $0x2, %rdx
cmpl %edx, %r12d
jle 0x8208
leaq 0x1638d(%rip), %rdi     # 0x1e570
movl %r12d, %esi
xorl %eax, %eax
callq 0x6050
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x2, %rax
movslq %eax, %r12
jmp 0x8208
movq 0x8(%rbx), %r12
subq (%rbx), %r12
sarq $0x2, %r12
leaq 0x163cc(%rip), %rdi     # 0x1e5db
movq %r12, %rsi
xorl %eax, %eax
callq 0x6050
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x209e7(%rip), %rax     # 0x28c18
leaq 0x209e0(%rip), %rdi     # 0x28c18
callq *0x10(%rax)
testb %al, %al
movq %r12, 0x38(%rsp)
je 0x834f
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1639a(%rip), %rsi     # 0x1e5f5
leaq 0x16394(%rip), %rdx     # 0x1e5f6
leaq 0x80(%rsp), %rdi
callq 0xe0a8
leaq 0x20a6a(%rip), %rsi     # 0x28ce0
leaq 0x40(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0x853e
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0x829a
callq 0x6320
movq 0x40(%rsp), %rbx
movq 0x48(%rsp), %r13
cmpq %r13, %rbx
je 0x833e
leaq 0x1eddc(%rip), %rbp     # 0x27090
xorl %r15d, %r15d
movq %r12, %r14
leaq (%r15,%rbp), %r12
movq 0x8(%r15,%rbp), %rsi
movq %rbx, %rdi
callq 0x60b0
testl %eax, %eax
cmovneq %r14, %r12
je 0x82e3
addq $0x20, %r15
cmpq $0x620, %r15            # imm = 0x620
jne 0x82b7
xorl %r12d, %r12d
testq %r12, %r12
je 0x8311
movq 0x28(%rsp), %rsi
cmpq 0x30(%rsp), %rsi
je 0x8324
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, %rsi
movq %rsi, 0x28(%rsp)
jmp 0x8331
movq (%rbx), %rsi
leaq 0x162dc(%rip), %rdi     # 0x1e5f7
xorl %eax, %eax
callq 0x6050
jmp 0x8331
leaq 0x20(%rsp), %rdi
movq %r12, %rdx
callq 0x13c8c
addq $0x20, %rbx
cmpq %r13, %rbx
jne 0x82b4
leaq 0x40(%rsp), %rdi
callq 0xad72
movq 0x38(%rsp), %r12
jmp 0x836a
leaq 0x20(%rsp), %rdi
movq (%rdi), %rsi
leaq 0x1ed32(%rip), %rdx     # 0x27090
leaq 0x1f34b(%rip), %rcx     # 0x276b0
callq 0x13d72
movslq 0x20c27(%rip), %r15     # 0x28f98
cmpq %r15, %r12
movl 0x1c(%rsp), %r13d
jb 0x848b
notl %r13d
leaq 0x60(%rsp), %rbx
leaq 0x80(%rsp), %r14
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %rbp
cmpq %rbp, %r12
je 0x847a
testl %r13d, 0x18(%r12)
jne 0x8471
movq 0x8(%r12), %rsi
leaq 0x40(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x6100
movq 0x10(%r12), %rsi
movq %rbx, %rdi
leaq 0xe(%rsp), %rdx
callq 0x6100
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
movq %rbx, %rdx
callq 0xadde
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x83f7
callq 0x6320
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x840b
callq 0x6320
leaq 0xc0(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xe138
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0xe3d2
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x843d
callq 0x6320
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x8457
callq 0x6320
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x8471
callq 0x6320
addq $0x20, %r12
jmp 0x8399
incq %r15
movq 0x38(%rsp), %r12
cmpq %r12, %r15
jbe 0x838f
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x849a
callq 0x6320
movq 0x10(%rsp), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
jne 0x8501
jmp 0x851d
jmp 0x8508
jmp 0x8508
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xad72
jmp 0x851d
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x84f2
callq 0x6320
jmp 0x84f2
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x851d
callq 0x6320
jmp 0x851d
movq %rax, %rbx
jmp 0x851d
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0xaecc
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x852c
callq 0x6320
movq 0x10(%rsp), %rdi
callq 0xadb6
movq %rbx, %rdi
callq 0x65f0