// File: /workspace/github_cpp_makefile_star2_O3/Quinny[P]IteratedPrisoners/main.cpp
// Function: winner_battle()
void winner_battle() {
    using namespace ipd;

    std::string genome;
    int n;
    std::ifstream f("winners.txt");
    std::vector<prisoner_t> winners;

    while (f >> genome >> n)
        winners.emplace_back(
            make_prisoner_t(genetic::genetic_strategy(genome))
        );

    auto sb = play_tourny(winners, ipd::config::rounds);
    for (auto i: sb)
        std::cout << i.first << ", " << i.second << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2d8, %rsp            # imm = 0x2D8
leaq -0xa8(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x613f(%rip), %rsi      # 0xe14a
leaq -0x2f8(%rbp), %rdi
movl $0x8, %edx
callq 0x4550
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rax
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq -0x78(%rbp), %r14
leaq -0xb8(%rbp), %r12
leaq -0xf0(%rbp), %rbx
leaq -0x98(%rbp), %r15
leaq -0x2f8(%rbp), %rdi
movq %r12, %rsi
callq 0x4400
movq %rax, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x41f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x80fa
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8fc2
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6104
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x9282
movq -0x68(%rbp), %rax
testq %rax, %rax
je 0x80ac
movq %r14, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq *%rax
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x80c4
callq 0x4350
movq -0xd8(%rbp), %rdi
testq %rdi, %rdi
je 0x80d5
callq 0x4350
movq -0xf0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8047
movq (%rdi), %r13
callq 0x4350
movq %r13, %rdi
cmpq %rbx, %r13
jne 0x80e5
jmp 0x8047
movl 0xd258(%rip), %edx      # 0x15358
leaq -0xf0(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x58b9
movq -0xf0(%rbp), %rbx
movq -0xe8(%rbp), %r13
cmpq %r13, %rbx
je 0x81db
leaq -0x78(%rbp), %r14
movq 0xce8e(%rip), %r12      # 0x14fc0
leaq -0x98(%rbp), %rdi
movq %rbx, %rsi
callq 0x9224
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rdx
movq %r12, %rdi
callq 0x43e0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x5f1c(%rip), %rsi      # 0xe082
callq 0x43e0
movl -0x58(%rbp), %esi
movq %r12, %rdi
callq 0x4500
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4360
movsbl %al, %esi
movq %r15, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4230
movq -0x68(%rbp), %rax
testq %rax, %rax
je 0x81b6
movq %r14, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq *%rax
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x81ce
callq 0x4350
addq $0x48, %rbx
cmpq %r13, %rbx
jne 0x8132
leaq -0xf0(%rbp), %rdi
callq 0x83fc
leaq -0x50(%rbp), %rdi
callq 0x8472
leaq -0x2f8(%rbp), %rdi
callq 0x40e0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x8214
callq 0x4350
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8260
movq %rax, %rbx
jmp 0x8295
jmp 0x822f
movq %rax, %rdi
callq 0x92ba
movq %rax, %rbx
jmp 0x8274
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x83ba
jmp 0x8252
jmp 0x8260
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
callq 0x89a8
jmp 0x8280
movq %rax, %rbx
jmp 0x8280
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x8378
leaq -0xf0(%rbp), %rdi
callq 0x83fc
leaq -0x50(%rbp), %rdi
callq 0x8472
leaq -0x2f8(%rbp), %rdi
callq 0x40e0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x82ad
callq 0x4350
movq %rbx, %rdi
callq 0x4520