// File: /workspace/github_cpp_makefile_star2_O3/Quinny[P]IteratedPrisoners/./ipd/genetic.h
// Function: ipd::genetic::evaluate_async(std::vector<ipd::prisoner_t, std::allocator<ipd::prisoner_t>> const&)
std::vector<score_t> evaluate_async(const std::vector<prisoner_t>& v) {
    qp::profiler fit_prof("fitness evaluation");
    std::vector<std::future<int>> futs;
    std::vector<score_t> ret(v.size());
    auto fitness = std::bind(total_score, _1, bots::all, ipd::config::rounds);

    for (const auto& i: v) {
        futs.emplace_back(std::async(fitness, i));
    }

    for (auto i = 0UL; i < v.size(); ++i) {
        ret.emplace_back(v[i], futs[i].get());
    }

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x7c50(%rip), %rsi      # 0xe137
leaq 0x7c5b(%rip), %rdx      # 0xe149
leaq -0xa8(%rbp), %rbx
movq %rbx, %rdi
callq 0xaa0e
callq 0x4060
leaq -0xc8(%rbp), %rdi
movq %rax, -0x18(%rdi)
movq $0x0, -0x10(%rdi)
movb $0x0, -0x8(%rdi)
leaq -0xb8(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
callq 0x9ba6
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x6544
callq 0x4350
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x6, %rsi
leaq -0x88(%rbp), %rdx
movq -0x30(%rbp), %rdi
callq 0x89de
leaq -0xd30(%rip), %rax      # 0x5849
leaq -0x78(%rbp), %rdi
movq %rax, -0x10(%rdi)
movl 0xedd1(%rip), %eax      # 0x15358
movl %eax, -0x8(%rdi)
leaq 0xed7f(%rip), %rsi      # 0x15310
callq 0x9196
movq -0x38(%rbp), %rax
movq (%rax), %r12
movq 0x8(%rax), %r14
cmpq %r14, %r12
je 0x664a
leaq -0x48(%rbp), %r13
leaq -0x88(%rbp), %r15
leaq -0x60(%rbp), %rbx
movq %r13, %rdi
movl $0x3, %esi
movq %r15, %rdx
movq %r12, %rcx
callq 0xbbf4
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8a80
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x65e5
callq 0x955e
addq $0x40, %r12
cmpq %r14, %r12
jne 0x65b9
movq -0x38(%rbp), %rax
movq (%rax), %r13
cmpq %r13, 0x8(%rax)
je 0x664a
xorl %ebx, %ebx
leaq -0x48(%rbp), %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movq -0x60(%rbp), %rdi
addq %rbx, %rdi
callq 0x8afe
addq %r15, %r13
movl %eax, -0x48(%rbp)
movq -0x30(%rbp), %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x8abc
incq %r12
movq -0x38(%rbp), %rax
movq (%rax), %r13
movq 0x8(%rax), %rax
subq %r13, %rax
sarq $0x6, %rax
addq $0x40, %r15
addq $0x10, %rbx
cmpq %rax, %r12
jb 0x6607
leaq -0x78(%rbp), %rdi
callq 0x8472
leaq -0x60(%rbp), %rdi
callq 0x8b50
leaq -0xe0(%rbp), %rdi
callq 0x8ba6
movq -0x30(%rbp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x66bf
movq %rax, %r14
jmp 0x66c8
movq %rax, %r14
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x66dd
callq 0x4350
jmp 0x66dd
jmp 0x66b3
movq %rax, %r14
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x66b6
callq 0x955e
jmp 0x66b6
movq %rax, %r14
leaq -0x78(%rbp), %rdi
callq 0x8472
movq -0x30(%rbp), %rdi
callq 0x83fc
leaq -0x60(%rbp), %rdi
callq 0x8b50
leaq -0xe0(%rbp), %rdi
callq 0x8ba6
movq %r14, %rdi
callq 0x4520