// File: /workspace/github_cpp_makefile_star2_O1/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 0x60f6(%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 0x8143
movq %rbx, %rdi
movq %r12, %rsi
callq 0x9006
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6185
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x92bc
movq -0x68(%rbp), %rax
testq %rax, %rax
je 0x80f5
movq %r14, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq *%rax
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x810d
callq 0x4350
movq -0xd8(%rbp), %rdi
testq %rdi, %rdi
je 0x811e
callq 0x4350
movq -0xf0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8090
movq (%rdi), %r13
callq 0x4350
movq %r13, %rdi
cmpq %rbx, %r13
jne 0x812e
jmp 0x8090
movl 0xd20f(%rip), %edx      # 0x15358
leaq -0xf0(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x594e
movq -0xf0(%rbp), %rbx
movq -0xe8(%rbp), %r13
cmpq %r13, %rbx
je 0x8224
leaq -0x78(%rbp), %r14
movq 0xce45(%rip), %r12      # 0x14fc0
leaq -0x98(%rbp), %rdi
movq %rbx, %rsi
callq 0x925e
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rdx
movq %r12, %rdi
callq 0x43e0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x5ed3(%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 0x81ff
movq %r14, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq *%rax
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x8217
callq 0x4350
addq $0x48, %rbx
cmpq %r13, %rbx
jne 0x817b
leaq -0xf0(%rbp), %rdi
callq 0x8446
leaq -0x50(%rbp), %rdi
callq 0x84bc
leaq -0x2f8(%rbp), %rdi
callq 0x40e0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x825d
callq 0x4350
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x82a9
movq %rax, %rbx
jmp 0x82de
jmp 0x8278
movq %rax, %rdi
callq 0x92f4
movq %rax, %rbx
jmp 0x82bd
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x8404
jmp 0x829b
jmp 0x82a9
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
callq 0x89f2
jmp 0x82c9
movq %rax, %rbx
jmp 0x82c9
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x83c2
leaq -0xf0(%rbp), %rdi
callq 0x8446
leaq -0x50(%rbp), %rdi
callq 0x84bc
leaq -0x2f8(%rbp), %rdi
callq 0x40e0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x82f6
callq 0x4350
movq %rbx, %rdi
callq 0x4520