LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/t3nma[P]sdl2-TicTacToe/src/Game.cpp
// Function: Game::render() const
void Game::render() const
{
    // bg
    SDL_SetRenderDrawColor(App::getRenderer(), 0xFF, 0xFF, 0xFF, 0xFF);
    SDL_RenderClear(App::getRenderer());

    // game objects
    board.render();

    // render
    SDL_RenderPresent(App::getRenderer());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x144e
movq %rax, %rdi
movl $0xff, %esi
movl $0xff, %edx
movl $0xff, %ecx
movl $0xff, %r8d
callq 0x1150
callq 0x144e
movq %rax, %rdi
callq 0x1130
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x14a6
callq 0x144e
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1070
nop
// File: /workspace/github_cpp_makefile_star2_O2/t3nma[P]sdl2-TicTacToe/src/Util.cpp
// Function: Util::drawCircle(int, int)
void Util::drawCircle(int row, int col)
{
    int fieldW = App::SCREEN_WIDTH/3;
    int fieldH = App::SCREEN_HEIGHT/3;

    // calculate circle center
    int centerX = col*fieldW+(fieldW/2);
    int centerY = row*fieldH+(fieldH/2);

    int r = fieldW/2;

    double step = 2*M_PI/30;
    int endX = centerX + r;
    int endY = centerY;

    // draw circle.. Multiple straight lines between consecutive
    // points of the desired circle
    for(double angle=0; angle<2*M_PI; angle+=step)
    {
        int startX = endX;
        int startY = endY;
        endX = r * cos(angle) + centerX;
        endY = r * sin(angle) + centerY;
        SDL_RenderDrawLine(App::getRenderer(), startX, startY, endX, endY);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
imull $0xc8, %esi, %ebx
leal 0x64(%rbx), %eax
imull $0xc8, %edi, %r14d
addl $0x64, %r14d
addl $0xc8, %ebx
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x38(%rbp)
cvtsi2sd %r14d, %xmm0
movsd %xmm0, -0x30(%rbp)
xorpd %xmm0, %xmm0
movsd 0xf6a(%rip), %xmm1      # 0x30a0
ucomisd %xmm0, %xmm1
jbe 0x21aa
movsd %xmm0, -0x28(%rbp)
movsd -0x28(%rbp), %xmm0
callq 0x1190
movsd 0xf55(%rip), %xmm1      # 0x30a8
mulsd %xmm1, %xmm0
addsd -0x38(%rbp), %xmm0
cvttsd2si %xmm0, %r15d
movsd -0x28(%rbp), %xmm0
callq 0x1080
mulsd 0xf35(%rip), %xmm0      # 0x30a8
addsd -0x30(%rbp), %xmm0
cvttsd2si %xmm0, %r12d
callq 0x144e
movq %rax, %rdi
movl %ebx, %esi
movl %r14d, %edx
movl %r15d, %ecx
movl %r12d, %r8d
callq 0x10b0
movsd -0x28(%rbp), %xmm0
addsd 0xf0e(%rip), %xmm0      # 0x30b0
movl %r12d, %r14d
movl %r15d, %ebx
jmp 0x212e
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/luizaes[P]post-machine-simulator/main.cpp
// Function: main
int main() {

	string input_word;
	bool output;
	auto pm = new PostMachineSimulator();

	DiagramState* diagram = pm->BuildDiagram();

	if(!diagram->IsValid()) {
		cout << diagram->GetError() << endl;
		return 0;
	}

	cout << "[SUCCESS] Post Machine created successfuly." << endl;

	cin >> input_word;

	output = pm->Run(input_word);

	if(output == ACCEPT) {
		cout << "[ACCEPT] The input \"" << input_word << "\" was accepted by the machine." << endl;
	} else {
		cout << "[REJECT] The input \"" << input_word << "\" was rejected by the machine." << endl;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
leaq -0x20(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl $0xa8, %edi
callq 0x2180
movq %rax, %rbx
movl $0xa8, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x2100
movq %rbx, %rdi
callq 0x2596
movq %rbx, %rdi
callq 0x2b56
movq %rax, %r14
movq %rax, %rdi
callq 0x3bde
testb %al, %al
je 0x24e5
movq 0x4b47(%rip), %rdi      # 0x6fd0
leaq 0x1b74(%rip), %rsi      # 0x4004
callq 0x2170
movq %rax, %rdi
callq 0x20d0
movq 0x4b3c(%rip), %rdi      # 0x6fe0
leaq -0x30(%rbp), %rsi
callq 0x21c0
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x3256
testb %al, %al
je 0x2514
movq 0x4b0c(%rip), %rdi      # 0x6fd0
leaq 0x1b65(%rip), %rsi      # 0x4030
callq 0x2170
leaq -0x30(%rbp), %rsi
movq %rax, %rdi
callq 0x2160
leaq 0x1b62(%rip), %rsi      # 0x4045
jmp 0x253a
leaq -0x50(%rbp), %rdi
movq %r14, %rsi
callq 0x3be8
movq 0x4ad8(%rip), %rdi      # 0x6fd0
leaq -0x50(%rbp), %rsi
callq 0x2160
movq %rax, %rdi
callq 0x20d0
leaq -0x50(%rbp), %rdi
callq 0x20c0
jmp 0x254a
movq 0x4ab5(%rip), %rdi      # 0x6fd0
leaq 0x1b42(%rip), %rsi      # 0x4064
callq 0x2170
leaq -0x30(%rbp), %rsi
movq %rax, %rdi
callq 0x2160
leaq 0x1b3f(%rip), %rsi      # 0x4079
movq %rax, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20d0
leaq -0x30(%rbp), %rdi
callq 0x20c0
xorl %eax, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x2582
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x20c0
jmp 0x2585
movq %rax, %r14
movl $0xa8, %esi
movq %rbx, %rdi
callq 0x2190
jmp 0x2585
jmp 0x2582
movq %rax, %r14
leaq -0x30(%rbp), %rdi
callq 0x20c0
movq %r14, %rdi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O2/luizaes[P]post-machine-simulator/post_machine_sim.cpp
// Function: ReadInputLine(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void ReadInputLine(string& line) {
	getline(cin, line);

	/* Fix so that the program can run for both Windows and Linux file formats */
	if(!line.empty() && *line.rbegin() == '\r') {
    	line.erase( line.length()-1, 1);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x4698(%rip), %rdi      # 0x6fe0
movq %rbx, %rsi
callq 0x2060
movq 0x8(%rbx), %rsi
testq %rsi, %rsi
je 0x2977
movq (%rbx), %rax
cmpb $0xd, -0x1(%rax,%rsi)
jne 0x2977
decq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2070
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/luizaes[P]post-machine-simulator/post_machine_sim.cpp
// Function: PostMachineSimulator::Run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool PostMachineSimulator::Run(string& input) {
	int start_index;

	for(int i = 0; input[i] != '\0'; i++) {
		work_queue.push(input[i]);
	}

	for(int i = 0; i < flow_diagram.size(); i++) {
		if(flow_diagram[i].name.compare(start_state) == 0) {
			start_index = i;
			break;
		}
	}

	/* Process the input word through the working queue and flow diagram */
	return TraverseDiagram(start_index);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %r15
xorl %r12d, %r12d
movq (%r14), %rsi
cmpb $0x0, (%rsi,%r12)
je 0x328b
addq %r12, %rsi
movq %r15, %rdi
callq 0x3448
incq %r12
jmp 0x3271
leaq 0x68(%rbx), %r14
xorl %r12d, %r12d
pushq $0x38
popq %r13
xorl %r15d, %r15d
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
subq %rdi, %rax
cqto
idivq %r13
cmpq %r15, %rax
jbe 0x32c5
addq %r12, %rdi
movq %r14, %rsi
callq 0x2030
testl %eax, %eax
je 0x32c5
incq %r15
addq $0x38, %r12
jmp 0x3299
movq %rbx, %rdi
movl %r15d, %esi
callq 0x297e
testl %eax, %eax
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/common.h
// Function: ipd::score(ipd::decision, ipd::decision)
int score(decision d1, decision d2) {
    if (d1 == decision::cooperate && d2 == decision::cooperate)
        return 3;
    if (d1 == decision::cooperate && d2 == decision::defect)
        return 0;
    if (d1 == decision::defect && d2 == decision::cooperate)
        return 5;
    if (d1 == decision::defect && d2 == decision::defect)
        return 1;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %esi, %eax
orl %edi, %eax
je 0x4fcb
movl %esi, %ecx
xorl $0x1, %ecx
xorl %eax, %eax
movl %edi, %edx
orl %ecx, %edx
je 0x4fd9
xorl $0x1, %edi
orl %edi, %esi
jne 0x4fd2
movl $0x5, %eax
jmp 0x4fd9
movl $0x3, %eax
jmp 0x4fd9
xorl %eax, %eax
orl %ecx, %edi
sete %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/common.h
// Function: ipd::play(ipd::prisoner_t const&, ipd::prisoner_t const&, int)
int play(const prisoner_t& p1, const prisoner_t& p2, int n) {
    history_t p1_hist, p2_hist;
    int p1_score = 0;

    for (int i = 0; i < n; ++i) {
        auto d1 = p1(p2_hist);
        auto d2 = p2(p1_hist);
        p1_score += score(d1, d2);

        p1_hist.push_front(d1);
        p2_hist.push_front(d2);
    }
    return p1_score;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %ebx
leaq -0x60(%rbp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
andq $0x0, 0x10(%rax)
movq %rsi, %r12
movq %rdi, %r13
leaq -0x48(%rbp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
andq $0x0, 0x10(%rax)
addq $0x20, %r13
addq $0x20, %r12
xorl %r15d, %r15d
testl %edx, %edx
cmovlel %r15d, %ebx
subl $0x1, %ebx
jb 0x5074
movq %r13, %rdi
leaq -0x48(%rbp), %rsi
callq 0x7b04
movl %eax, -0x2c(%rbp)
movq %r12, %rdi
leaq -0x60(%rbp), %rsi
callq 0x7b04
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %edi
movl %eax, %esi
callq 0x4fa6
movl %eax, %r14d
leaq -0x60(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x6e8c
leaq -0x48(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x6e8c
addl %r14d, %r15d
jmp 0x5025
leaq -0x48(%rbp), %rdi
callq 0x7b1a
leaq -0x60(%rbp), %rdi
callq 0x7b1a
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x509a
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x7b1a
leaq -0x60(%rbp), %rdi
callq 0x7b1a
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/common.h
// Function: ipd::total_score(ipd::prisoner_t const&, std::vector<ipd::prisoner_t, std::allocator<ipd::prisoner_t>> const&, int)
int total_score(const prisoner_t& p, const std::vector<prisoner_t>& ps, int n) {
    int score = 0;
    for (const auto& i: ps)
        score += play(p, i, n);
    return score;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
movq (%rsi), %r15
movq 0x8(%rsi), %r13
xorl %r12d, %r12d
cmpq %r13, %r15
je 0x50ef
movq %r14, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x4fdb
addl %eax, %r12d
addq $0x40, %r15
jmp 0x50d4
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/common.h
// Function: ipd::play_tourny(std::vector<ipd::prisoner_t, std::allocator<ipd::prisoner_t>> const&, int)
std::vector<score_t>
play_tourny(const std::vector<prisoner_t>& players, int n) {
    std::vector<std::pair<prisoner_t, int>> ret;
    for (auto p1: players) {
        auto score = total_score(p1, players, n);
        ret.push_back({p1, score});
    }
    std::sort(ret.begin(), ret.end(), std::greater<score_t>());
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edx, -0x34(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, -0x30(%rbp)
andq $0x0, 0x10(%rdi)
movq (%rsi), %r12
movq %rsi, -0x40(%rbp)
movq 0x8(%rsi), %r15
leaq -0xc8(%rbp), %r13
leaq -0x88(%rbp), %rbx
cmpq %r15, %r12
je 0x51b1
movq %r13, %rdi
movq %r12, %rsi
callq 0x6e9c
movq %r13, %rdi
movq -0x40(%rbp), %rsi
movl -0x34(%rbp), %edx
callq 0x50b7
movl %eax, %r14d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6e9c
movl %r14d, -0x48(%rbp)
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x8746
movq %rbx, %rdi
callq 0x6ed6
movq %r13, %rdi
callq 0x6ed6
addq $0x40, %r12
jmp 0x515e
movq -0x30(%rbp), %rbx
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
callq 0x8954
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x51d8
movq %rax, %rbx
jmp 0x51ff
jmp 0x51df
movq %rax, %rbx
jmp 0x51f3
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x6ed6
leaq -0xc8(%rbp), %rdi
callq 0x6ed6
movq -0x30(%rbp), %rdi
callq 0x6ef6
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/bots.h
// Function: ipd::bots::tf2t(std::__cxx11::list<ipd::decision, std::allocator<ipd::decision>> const&)
decision tf2t(const history_t& h) {
    if (h.size() < 2)
        return decision::cooperate;
    if (h.front() == decision::defect && *std::next(h.begin()) == decision::defect)
        return decision::defect;
    return decision::cooperate;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
xorl %ebx, %ebx
cmpq $0x2, 0x10(%rdi)
jb 0x5277
movq (%rdi), %rdi
cmpl $0x1, 0x10(%rdi)
jne 0x5277
pushq $0x1
popq %rsi
callq 0x6f21
cmpl $0x1, 0x10(%rax)
jne 0x5277
pushq $0x1
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/bots.h
// Function: ipd::bots::sus_tf2t(std::__cxx11::list<ipd::decision, std::allocator<ipd::decision>> const&)
decision sus_tf2t(const history_t& h) {
    if (h.size() < 2)
        return decision::defect;
    if (h.front() == decision::defect && *std::next(h.begin()) == decision::defect)
        return decision::defect;
    return decision::cooperate;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
pushq $0x1
popq %rbx
cmpq $0x2, 0x10(%rdi)
jb 0x52a9
movq (%rdi), %rdi
cmpl $0x1, 0x10(%rdi)
jne 0x52a7
pushq $0x1
popq %rsi
callq 0x6f21
cmpl $0x1, 0x10(%rax)
je 0x52a9
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/config.h
// Function: ipd::config::parse_line(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::pair<std::string, int> parse_line(std::string line) {
        std::stringstream sstream(line);
        std::string name;
        int val;

        sstream >> name >> val;
        return {name, val};
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdi, %rbx
leaq -0x1c0(%rbp), %r14
pushq $0x18
popq %rdx
movq %r14, %rdi
callq 0x4490
leaq -0x28(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x38(%rbp), %rsi
movq %r14, %rdi
callq 0x43f0
leaq -0x14(%rbp), %rsi
movq %rax, %rdi
callq 0x4210
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0x4440
movl -0x14(%rbp), %eax
movl %eax, 0x20(%rbx)
leaq -0x38(%rbp), %rdi
callq 0x4160
leaq -0x1c0(%rbp), %rdi
callq 0x4290
movq %rbx, %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x4160
leaq -0x1c0(%rbp), %rdi
callq 0x4290
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/config.h
// Function: ipd::config::load_config()
void load_config() {
        std::ifstream in("ipd.conf");
        std::string line;
        while (std::getline(in, line)) {
            auto p = parse_line(line);
            assign_arg(p.first, p.second);
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
leaq 0x7cdc(%rip), %rsi      # 0xd135
leaq -0x2b8(%rbp), %rbx
pushq $0x8
popq %rdx
movq %rbx, %rdi
callq 0x4540
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x48(%rbp), %r14
leaq -0xb0(%rbp), %r15
leaq -0x70(%rbp), %r12
leaq -0x90(%rbp), %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x40a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x54f0
movq %r15, %rdi
movq %r14, %rsi
callq 0x4440
movq %r12, %rdi
movq %r15, %rsi
callq 0x5366
movq %r15, %rdi
callq 0x4160
movq %r13, %rdi
movq %r12, %rsi
callq 0x4440
movl -0x50(%rbp), %esi
movq %r13, %rdi
callq 0x5407
movq %r13, %rdi
callq 0x4160
movq %r12, %rdi
callq 0x4160
jmp 0x5491
leaq -0x48(%rbp), %rdi
callq 0x4160
leaq -0x2b8(%rbp), %rdi
callq 0x40f0
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x4160
jmp 0x552b
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
jmp 0x553d
jmp 0x5544
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x4160
jmp 0x5547
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x4160
leaq -0x2b8(%rbp), %rdi
callq 0x40f0
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/genetic.h
// Function: ipd::genetic::random_decision()
decision random_decision() {
    static std::uniform_int_distribution<int> dist(0, 1);
    static std::knuth_b gen (std::time(nullptr));
    static auto roll = std::bind(dist, gen);

    if (roll())
        return decision::cooperate;
    return decision::defect;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movb 0xfd91(%rip), %al       # 0x153a8
testb %al, %al
je 0x564f
movb 0x1059f(%rip), %al      # 0x15bc0
testb %al, %al
je 0x567e
movb 0x10db5(%rip), %al      # 0x163e0
testb %al, %al
je 0x56b5
leaq 0x1058e(%rip), %rdi     # 0x15bc8
callq 0x71a0
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0xfd52(%rip), %rdi      # 0x153a8
callq 0x4530
testl %eax, %eax
je 0x561b
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0xfd30(%rip)      # 0x153a0
leaq 0xfd31(%rip), %rdi      # 0x153a8
callq 0x4230
jmp 0x561b
leaq 0x1053b(%rip), %rdi     # 0x15bc0
callq 0x4530
testl %eax, %eax
je 0x5625
xorl %edi, %edi
callq 0x4350
leaq 0xfd14(%rip), %rdi      # 0x153b0
movq %rax, %rsi
callq 0x717e
leaq 0x10515(%rip), %rdi     # 0x15bc0
callq 0x4230
jmp 0x5625
leaq 0x10d24(%rip), %rdi     # 0x163e0
callq 0x4530
testl %eax, %eax
je 0x5633
movq 0xfcd0(%rip), %rax      # 0x153a0
movq %rax, 0x104f1(%rip)     # 0x15bc8
leaq 0x104f2(%rip), %rdi     # 0x15bd0
leaq 0xfccb(%rip), %rsi      # 0x153b0
movl $0x810, %edx            # imm = 0x810
callq 0x42c0
leaq 0x10cea(%rip), %rdi     # 0x163e0
callq 0x4230
jmp 0x5633
movq %rax, %rbx
leaq 0x104b6(%rip), %rdi     # 0x15bc0
callq 0x4220
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/genetic.h
// Function: ipd::genetic::tft_genome[abi:cxx11](int)
std::string tft_genome(int mem_size) {
    int limit = std::pow(mem_size, 4);
    std::string genome = "c";
    for (int i = 1; i < limit; ++i) {
        if ((i & 2) > 0)
            genome += "c";
        else
            genome += "d";
    }
    return genome;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cvtsi2sd %esi, %xmm0
movsd 0x78d4(%rip), %xmm1     # 0xd008
callq 0x4510
cvttsd2si %xmm0, %r15d
leaq 0x79f9(%rip), %r14      # 0xd13e
leaq -0x29(%rbp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4130
pushq $0x1
popq %r12
leaq 0x79e1(%rip), %r13      # 0xd140
cmpl %r15d, %r12d
jge 0x577c
testb $0x2, %r12b
movq %r14, %rsi
cmoveq %r13, %rsi
movq %rbx, %rdi
callq 0x4550
incl %r12d
jmp 0x575f
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x4160
movq %r14, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/genetic.h
// Function: ipd::genetic::make_prisoner_t(ipd::genetic::genetic_strategy const&)
prisoner_t make_prisoner_t(const genetic_strategy& gs) {
    // converts a decision to a character
    auto f = [] (std::string s, decision d) {
        if (d == decision::cooperate) s += 'c';
        else s += 'd';
        return s;
    };
    auto name = std::accumulate(gs.strategy.begin(), gs.strategy.end(),
            std::string(), f);
    return {name, gs};
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq 0x18(%rsi), %r14
movq %rsi, -0x50(%rbp)
movq 0x20(%rsi), %rax
movq %rax, -0x60(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, -0x58(%rbp)
movb $0x0, (%rax)
leaq -0x38(%rbp), %r15
leaq -0x48(%rbp), %r12
leaq -0x80(%rbp), %rbx
leaq -0xa0(%rbp), %r13
cmpq -0x60(%rbp), %r14
je 0x5881
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4440
cmpl $0x1, (%r14)
pushq $0x64
popq %rsi
sbbl $0x0, %esi
movq %r12, %rdi
callq 0x42e0
leaq -0x90(%rbp), %rcx
movq %rcx, -0xa0(%rbp)
movq -0x48(%rbp), %rax
cmpq %r15, %rax
je 0x583e
movq %rax, -0xa0(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x5845
movups (%r15), %xmm0
movups %xmm0, (%rcx)
movq -0x40(%rbp), %rax
movq %rax, -0x98(%rbp)
movq %r15, -0x48(%rbp)
andq $0x0, -0x40(%rbp)
movb $0x0, -0x38(%rbp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x43e0
movq %r13, %rdi
callq 0x4160
movq %r12, %rdi
callq 0x4160
addq $0x4, %r14
jmp 0x57ec
leaq -0xb0(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x80(%rbp), %rcx
leaq -0x70(%rbp), %rdx
cmpq %rdx, %rcx
je 0x58ad
movq %rcx, -0xc0(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0xb0(%rbp)
jmp 0x58b3
movups (%rdx), %xmm0
movups %xmm0, (%rax)
leaq -0x80(%rbp), %rdi
movq 0x8(%rdi), %rax
leaq -0xc0(%rbp), %rbx
movq %rax, 0x8(%rbx)
movq %rdx, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
callq 0x4160
movq -0x58(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4440
leaq 0x20(%r14), %rdi
movq -0x50(%rbp), %rsi
callq 0x71ae
leaq -0xc0(%rbp), %rdi
callq 0x4160
movq %r14, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %r14, %rdi
jmp 0x592a
jmp 0x591e
movq %rax, %r15
jmp 0x592f
movq %rax, %r15
leaq -0x48(%rbp), %rdi
callq 0x4160
movq %rbx, %rdi
callq 0x4160
movq %r15, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/genetic.h
// Function: ipd::genetic::initial_population(unsigned long, unsigned long, unsigned long)
std::vector<prisoner_t> initial_population(std::size_t n,
        std::size_t first, std::size_t last) {
    std::vector<prisoner_t> ret;
    for (auto i = 0UL; i < n; ++i)
        ret.push_back(make_prisoner_t(genetic_strategy(random_range(first, last))));
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
andq $0x0, 0x10(%rdi)
xorps %xmm0, %xmm0
movq %rdi, -0x30(%rbp)
movups %xmm0, (%rdi)
leaq -0x68(%rbp), %r13
leaq -0xa8(%rbp), %rbx
subq $0x1, %r12
jb 0x5a17
movq %r15, %rdi
movq %r14, %rsi
callq 0x71f5
movq %r13, %rdi
movq %rax, %rsi
callq 0x727c
movq %rbx, %rdi
movq %r13, %rsi
callq 0x57a1
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x7ac8
movq %rbx, %rdi
callq 0x6ed6
movq %r13, %rdi
callq 0x7342
jmp 0x59d2
movq -0x30(%rbp), %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x5a41
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x6ed6
leaq -0x68(%rbp), %rdi
callq 0x7342
jmp 0x5a4f
movq %rax, %rbx
movq -0x30(%rbp), %rdi
callq 0x6f7a
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/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, %r14
movq %rdi, -0x30(%rbp)
leaq 0x76c0(%rip), %rsi      # 0xd142
leaq -0xa8(%rbp), %rdi
leaq -0x88(%rbp), %rdx
callq 0x4130
leaq -0xe0(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x7362
leaq -0xa8(%rbp), %rdi
callq 0x4160
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
andq $0x0, -0x50(%rbp)
movq 0x8(%r14), %rsi
subq (%r14), %rsi
sarq $0x6, %rsi
leaq -0x88(%rbp), %rdx
movq -0x30(%rbp), %rdi
callq 0x7394
leaq -0xa2b(%rip), %rax      # 0x50b7
leaq -0x80(%rbp), %rdi
movq %rax, -0x8(%rdi)
leaq 0xf80f(%rip), %rsi      # 0x15300
leaq 0xf850(%rip), %rdx      # 0x15348
callq 0x9f22
movq (%r14), %r12
movq 0x8(%r14), %rbx
leaq -0x40(%rbp), %r13
leaq -0x60(%rbp), %r15
cmpq %rbx, %r12
je 0x5b3d
movq %r13, %rdi
leaq -0x88(%rbp), %rsi
movq %r12, %rdx
callq 0x7423
movq %r15, %rdi
movq %r13, %rsi
callq 0x73e6
leaq -0x38(%rbp), %rdi
callq 0x7f40
addq $0x40, %r12
jmp 0x5b0c
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %r15d, %r15d
movq (%r14), %rbx
movq 0x8(%r14), %rax
subq %rbx, %rax
sarq $0x6, %rax
cmpq %rax, %r15
jae 0x5b88
movq -0x60(%rbp), %rdi
addq %r13, %rdi
callq 0x7486
addq %r12, %rbx
movl %eax, -0x40(%rbp)
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
leaq -0x40(%rbp), %rdx
callq 0x7444
incq %r15
addq $0x10, %r13
addq $0x40, %r12
jmp 0x5b46
leaq -0x78(%rbp), %rdi
callq 0x6f7a
leaq -0x60(%rbp), %rdi
callq 0x74bc
leaq -0xe0(%rbp), %rdi
callq 0x74e8
movq -0x30(%rbp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x5bf8
movq %rax, %r14
jmp 0x5c01
movq %rax, %r14
leaq -0xa8(%rbp), %rdi
callq 0x4160
jmp 0x5c16
movq %rax, %r14
jmp 0x5c16
jmp 0x5bec
movq %rax, %r14
leaq -0x38(%rbp), %rdi
callq 0x7f40
jmp 0x5bef
movq %rax, %r14
leaq -0x78(%rbp), %rdi
callq 0x6f7a
movq -0x30(%rbp), %rdi
callq 0x6ef6
leaq -0x60(%rbp), %rdi
callq 0x74bc
leaq -0xe0(%rbp), %rdi
callq 0x74e8
movq %r14, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/genetic.h
// Function: ipd::genetic::hamming_distance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int hamming_distance(const std::string& s1, const std::string& s2) {
    int ret = 0;
    for (auto i = 0UL; i < s1.size(); ++i) {
        if (s1[i] == s2[i])
            ++ret;
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
movq (%rsi), %rsi
xorl %eax, %eax
xorl %edi, %edi
cmpq %rdi, %rdx
je 0x5c4c
movb (%rcx,%rdi), %r8b
xorl %r9d, %r9d
cmpb (%rsi,%rdi), %r8b
sete %r9b
addl %r9d, %eax
incq %rdi
jmp 0x5c30
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/genetic.h
// Function: ipd::genetic::evaluate_tft_dist(std::vector<ipd::prisoner_t, std::allocator<ipd::prisoner_t>> const&)
std::vector<score_t> evaluate_tft_dist(const std::vector<prisoner_t>& v) {
    std::vector<score_t> ret;
    for (const auto& i: v) {
        std::size_t msize = std::ceil(
            std::log(i.name.size()) / std::log(4)
        );
        ret.emplace_back(i, i.name.size() - hamming_distance(
                    i.name, tft_genome(msize)
        ));
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
andq $0x0, 0x10(%rdi)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rdi)
movq (%rsi), %r14
movq 0x8(%rsi), %r13
leaq -0x50(%rbp), %r15
cmpq %r13, %r14
je 0x5cef
movq 0x8(%r14), %rdi
callq 0x7510
divsd 0x7388(%rip), %xmm0     # 0xd018
callq 0x4090
cvttsd2si %xmm0, %rsi
movq %rsi, %rax
subsd 0x736b(%rip), %xmm0     # 0xd010
cvttsd2si %xmm0, %rcx
sarq $0x3f, %rax
andl %eax, %ecx
orl %ecx, %esi
movq 0x8(%r14), %r12
movq %r15, %rdi
callq 0x5717
movq %r14, %rdi
movq %r15, %rsi
callq 0x5c1e
cltq
subq %rax, %r12
movq %r12, -0x30(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
leaq -0x30(%rbp), %rdx
callq 0x753c
movq %r15, %rdi
callq 0x4160
addq $0x40, %r14
jmp 0x5c7a
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x5d12
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x4160
movq %rbx, %rdi
callq 0x6ef6
movq %r14, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/genetic.h
// Function: ipd::genetic::evaluate_vs_tft(std::vector<ipd::prisoner_t, std::allocator<ipd::prisoner_t>> const&)
std::vector<score_t> evaluate_vs_tft(const std::vector<prisoner_t>& v) {
    std::vector<score_t> ret;
    prisoner_t tft = {"", bots::tft};
    for (const auto& i: v)
        ret.emplace_back(i, play(i, tft, ipd::config::rounds));
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r12
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x7339(%rip), %rsi      # 0xd084
leaq -0x70(%rbp), %rdi
leaq -0x2c(%rbp), %rdx
callq 0x4130
leaq -0x70(%rbp), %r14
andq $0x0, 0x28(%r14)
leaq -0xb45(%rip), %rax      # 0x5223
movq %rax, 0x20(%r14)
leaq 0x33af(%rip), %rax      # 0x9122
movq %rax, 0x38(%r14)
leaq 0x33b2(%rip), %rax      # 0x9130
movq %rax, 0x30(%r14)
movq (%r12), %r15
movq 0x8(%r12), %r13
leaq -0x2c(%rbp), %r12
cmpq %r13, %r15
je 0x5dbc
movl 0xf5ae(%rip), %edx      # 0x15348
movq %r15, %rdi
movq %r14, %rsi
callq 0x4fdb
movl %eax, -0x2c(%rbp)
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x7444
addq $0x40, %r15
jmp 0x5d8f
leaq -0x70(%rbp), %rdi
callq 0x6ed6
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x5de8
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0x6ed6
movq %rbx, %rdi
callq 0x6ef6
movq %r14, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/genetic.h
// Function: ipd::genetic::mutate_strategy(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
std::string mutate_strategy(std::string s, const int rate) {
    auto maybe_change = [&] (const char c) {
        if (random_range(0, 100) <= rate) {
            auto d = random_decision();
            if (d == decision::defect) return 'd';
            return 'c';
        }
        return c;
    };

    std::transform(s.begin(), s.end(), s.begin(), maybe_change);
    return s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r15d
movq %rdi, -0x38(%rbp)
movq (%rsi), %r13
movq %rsi, -0x30(%rbp)
movq 0x8(%rsi), %rbx
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x5e50
movb (%r13,%r14), %r12b
xorl %edi, %edi
pushq $0x64
popq %rsi
callq 0xb7d3
cmpl %r15d, %eax
jg 0x5e46
callq 0x560b
cmpl $0x1, %eax
movb $0x64, %r12b
sbbb $0x0, %r12b
movb %r12b, (%r13,%r14)
incq %r14
jmp 0x5e1e
movq -0x38(%rbp), %rbx
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x4400
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/genetic.h
// Function: ipd::genetic::cross(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::pair<std::string, std::string> cross(const std::string& s1,
                                          const std::string& s2) {
    auto point = random_range<std::size_t>(0UL, std::min(s1.size(), s2.size()));
    std::string p1 = s1.substr(0, point),
                p2 = s2.substr(0, point);

    for (auto i = point; i < s1.size(); ++i)
        p2 += s1[i];
    for (auto i = point; i < s2.size(); ++i)
        p1 += s2[i];

    return {p1, p2};
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, -0x30(%rbp)
movq 0x8(%rsi), %rsi
movq 0x8(%rdx), %rax
cmpq %rsi, %rax
cmovbq %rax, %rsi
xorl %edi, %edi
callq 0x71f5
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x43b0
leaq -0x50(%rbp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x43b0
leaq -0x50(%rbp), %r13
movq %rbx, %r15
cmpq 0x8(%r12), %r15
jae 0x5eec
movq (%r12), %rax
movsbl (%rax,%r15), %esi
movq %r13, %rdi
callq 0x42e0
incq %r15
jmp 0x5ecf
leaq -0x70(%rbp), %r12
cmpq 0x8(%r14), %rbx
jae 0x5f0a
movq (%r14), %rax
movsbl (%rax,%rbx), %esi
movq %r12, %rdi
callq 0x42e0
incq %rbx
jmp 0x5ef0
leaq -0x70(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x757e
leaq -0x50(%rbp), %rdi
callq 0x4160
leaq -0x70(%rbp), %rdi
callq 0x4160
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5f4b
movq %rax, %rbx
jmp 0x5f57
jmp 0x5f4b
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x4160
leaq -0x70(%rbp), %rdi
callq 0x4160
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/hill_climb.h
// Function: ipd::hill_climb::mutation_successor(ipd::prisoner_t const&, int)
std::vector<prisoner_t>
mutation_successor(const prisoner_t& p, const int rate) {
    std::vector<prisoner_t> ret;
    auto mutation = std::bind(genetic::mutate_strategy, _1, rate);

    for (int i = 0; i < config::pop_size; ++i) {
        auto n = mutation(p.name);
        ret.push_back(make_prisoner_t(genetic::genetic_strategy(n)));
    }

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, -0x30(%rbp)
andq $0x0, 0x10(%rdi)
leaq -0x458(%rip), %rax      # 0x5df8
leaq -0x40(%rbp), %rcx
movq %rax, (%rcx)
movl %edx, 0x8(%rcx)
xorl %ebx, %ebx
leaq -0x60(%rbp), %r12
leaq -0x98(%rbp), %r13
leaq -0xd8(%rbp), %r15
cmpl 0xf0e0(%rip), %ebx      # 0x15354
jge 0x62c3
movq %r12, %rdi
leaq -0x40(%rbp), %rsi
movq %r14, %rdx
callq 0x790a
movq %r13, %rdi
movq %r12, %rsi
callq 0x7836
movq %r15, %rdi
movq %r13, %rsi
callq 0x57a1
movq -0x30(%rbp), %rdi
movq %r15, %rsi
callq 0x7ac8
movq %r15, %rdi
callq 0x6ed6
movq %r13, %rdi
callq 0x7342
movq %r12, %rdi
callq 0x4160
incl %ebx
jmp 0x626e
movq -0x30(%rbp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0xd8(%rbp), %rdi
callq 0x6ed6
jmp 0x62ed
movq %rax, %r14
leaq -0x98(%rbp), %rdi
callq 0x7342
jmp 0x6303
movq %rax, %r14
jmp 0x630c
movq %rax, %r14
leaq -0x60(%rbp), %rdi
callq 0x4160
movq -0x30(%rbp), %rdi
callq 0x6f7a
movq %r14, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/hill_climb.h
// Function: ipd::hill_climb::climb(ipd::prisoner_t, int, std::function<std::vector<std::pair<ipd::prisoner_t, int>, std::allocator<std::pair<ipd::prisoner_t, int>>> (std::vector<ipd::prisoner_t, std::allocator<ipd::prisoner_t>> const&)>)
prisoner_t climb(prisoner_t init, const int rate,
        genetic::fitness_fn fitness_func) {
    while (true) {
        auto succ = mutation_successor(init, rate);
        succ.push_back(init);

        auto evaluation = fitness_func(succ);
        auto m = std::max_element(evaluation.begin(), evaluation.end(),
                std::less<score_t>());

        // best guy was initial guy
        if (m->first.name == init.name)
            break;
        init = m->first;
    }

    return init;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, -0x38(%rbp)
movl %edx, %r12d
movq %rsi, %r14
movq %rdi, -0x30(%rbp)
leaq -0x68(%rbp), %r13
leaq -0x50(%rbp), %rbx
movq %r13, %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x6223
movq %r13, %rdi
movq %r14, %rsi
callq 0x792c
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
movq %r13, %rdx
callq 0x75b4
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0xc000
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x7967
testb %al, %al
jne 0x6431
movq %r14, %rdi
movq %r15, %rsi
callq 0x798a
movq %rbx, %rdi
callq 0x6ef6
movq %r13, %rdi
callq 0x6f7a
jmp 0x63cd
leaq -0x50(%rbp), %rdi
callq 0x6ef6
leaq -0x68(%rbp), %rdi
callq 0x6f7a
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x79b4
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6466
movq %rax, %rbx
jmp 0x6477
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x6ef6
leaq -0x68(%rbp), %rdi
callq 0x6f7a
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/hill_climb.h
// Function: ipd::hill_climb::climb(ipd::prisoner_t, int, int)
prisoner_t climb(prisoner_t init, const int rate, int rounds) {
    for (int i = 0; i < rounds; ++i) {
        auto succ = mutate(init, rate);
        if (single_vs_tft(succ) > single_vs_tft(init))
            init = succ;
    }
    return init;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, -0x30(%rbp)
xorl %ebx, %ebx
testl %ecx, %ecx
cmovgl %ecx, %ebx
leaq -0x70(%rbp), %r12
subl $0x1, %ebx
jb 0x6574
movq %r12, %rdi
movq %r14, %rsi
movl %r15d, %edx
callq 0x631d
movq %r12, %rdi
callq 0x6488
movl %eax, %r13d
movq %r14, %rdi
callq 0x6488
cmpl %eax, %r13d
jle 0x656a
movq %r14, %rdi
movq %r12, %rsi
callq 0x798a
movq %r12, %rdi
callq 0x6ed6
jmp 0x6534
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x79b4
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x6ed6
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/./ipd/hill_climb.h
// Function: ipd::hill_climb::restart_climb(ipd::prisoner_t, int, std::function<std::vector<std::pair<ipd::prisoner_t, int>, std::allocator<std::pair<ipd::prisoner_t, int>>> (std::vector<ipd::prisoner_t, std::allocator<ipd::prisoner_t>> const&)>, int)
prisoner_t restart_climb(
    prisoner_t init,
    const int rate,
    genetic::fitness_fn fitness_func,
    int restarts
) {
    std::vector<prisoner_t> candidates;

    do {
        candidates.push_back(climb(init, rate, fitness_func));
        init = genetic::random_prisoner_t(config::mem_first, config::mem_last);
        --restarts;
    } while (restarts > 0);

    auto eval = fitness_func(candidates);
    auto max = std::max_element(eval.begin(), eval.end(), std::less<score_t>());
    return max->first;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movl %r8d, %r15d
movq %rcx, -0x38(%rbp)
movl %edx, -0x2c(%rbp)
movq %rsi, %r13
movq %rdi, -0x40(%rbp)
xorps %xmm0, %xmm0
leaq -0x60(%rbp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
incl %r15d
leaq -0x100(%rbp), %rbx
leaq -0xc0(%rbp), %r14
leaq -0xa0(%rbp), %r12
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6e9c
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq 0x79de
movq %r12, %rdi
movq %rbx, %rsi
movl -0x2c(%rbp), %edx
movq %r14, %rcx
callq 0x63a6
leaq -0x60(%rbp), %rdi
movq %r12, %rsi
callq 0x7ac8
movq %r12, %rdi
callq 0x6ed6
movq %r14, %rdi
callq 0xa73a
movq %rbx, %rdi
callq 0x6ed6
movslq 0xed04(%rip), %rsi      # 0x1534c
movslq 0xed01(%rip), %rdx      # 0x15350
movq %r12, %rdi
callq 0x593f
movq %r13, %rdi
movq %r12, %rsi
callq 0x7a2c
movq %r12, %rdi
callq 0x6ed6
decl %r15d
cmpl $0x1, %r15d
jg 0x65f5
leaq -0xa0(%rbp), %rdi
leaq -0x60(%rbp), %rdx
movq -0x38(%rbp), %rsi
callq 0x75b4
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0xc000
movq -0x40(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6e9c
leaq -0xa0(%rbp), %rdi
callq 0x6ef6
leaq -0x60(%rbp), %rdi
callq 0x6f7a
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x671b
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x6ef6
jmp 0x671e
jmp 0x671b
movq %rax, %rbx
jmp 0x670d
movq %rax, %rbx
jmp 0x6701
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x6ed6
leaq -0xc0(%rbp), %rdi
callq 0xa73a
leaq -0x100(%rbp), %rdi
callq 0x6ed6
jmp 0x671e
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x6f7a
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/main.cpp
// Function: ev_against_classic()
void ev_against_classic() {
    using namespace ipd;
    auto ev_guy   = genetic::evolve(
        config::pop_size,
        config::mutation_rate,
        config::generations,
        genetic::evaluate_vs_tft
    );
    auto cp       = bots::all;
    cp.push_back(ev_guy);

    auto sb = play_tourny(cp, config::rounds);
    for (auto i: sb)
        std::cout << i << std::endl;

    log(sb.front().first, sb.front().second);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xe0, %rsp
movl 0xeb7e(%rip), %esi      # 0x15354
leaq -0x70(%rbp), %r8
andq $0x0, 0x8(%r8)
movl 0xeb73(%rip), %edx      # 0x15358
movl 0xeb71(%rip), %ecx      # 0x1535c
leaq -0xad0(%rip), %rax      # 0x5d22
movq %rax, (%r8)
leaq 0x5832(%rip), %rax      # 0xc02e
movq %rax, 0x18(%r8)
leaq 0x5843(%rip), %rax      # 0xc04a
movq %rax, 0x10(%r8)
leaq -0xb0(%rbp), %rdi
callq 0x5f68
leaq -0x70(%rbp), %rdi
callq 0xa73a
leaq 0xead9(%rip), %rsi      # 0x15300
leaq -0x50(%rbp), %rdi
callq 0x7a56
leaq -0x50(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x792c
movl 0xeb02(%rip), %edx      # 0x15348
leaq -0x38(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x511f
movq -0x38(%rbp), %rbx
movq -0x30(%rbp), %r12
leaq -0xf8(%rbp), %r14
movq 0xe74f(%rip), %r15      # 0x14fb8
cmpq %r12, %rbx
je 0x689a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7aaa
movq %r15, %rdi
movq %r14, %rsi
callq 0x4f44
movq %r15, %rdi
callq 0x4180
movq %r14, %rdi
callq 0x6ed6
addq $0x48, %rbx
jmp 0x6869
movq -0x38(%rbp), %rdi
movl 0x40(%rdi), %esi
callq 0x672f
leaq -0x38(%rbp), %rdi
callq 0x6ef6
leaq -0x50(%rbp), %rdi
callq 0x6f7a
leaq -0xb0(%rbp), %rdi
callq 0x6ed6
addq $0xe0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x68f0
jmp 0x68d8
movq %rax, %rbx
jmp 0x690d
movq %rax, %rbx
jmp 0x6916
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0xa73a
jmp 0x6922
movq %rax, %rbx
jmp 0x6904
movq %rax, %rbx
leaq -0xf8(%rbp), %rdi
callq 0x6ed6
leaq -0x38(%rbp), %rdi
callq 0x6ef6
leaq -0x50(%rbp), %rdi
callq 0x6f7a
leaq -0xb0(%rbp), %rdi
callq 0x6ed6
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/main.cpp
// Function: hill_against_classic()
void hill_against_classic() {
    using namespace ipd;
    auto hill_guy = hill_climb::climb(
        make_prisoner_t(genetic::genetic_strategy(3)),
        config::mutation_rate,
        config::hill_pop
    );
    auto cp       = bots::all;
    cp.push_back(hill_guy);

    auto sb = play_tourny(cp, config::rounds);
    for (auto i: sb)
        std::cout << i << std::endl;

    //log(sb.front().first, sb.front().second);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
leaq -0x98(%rbp), %rbx
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x727c
leaq -0xd8(%rbp), %rdi
movq %rbx, %rsi
callq 0x57a1
movl 0xe9f5(%rip), %edx      # 0x15358
movl 0xe9f7(%rip), %ecx      # 0x15360
leaq -0x118(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x650e
leaq -0xd8(%rbp), %rdi
callq 0x6ed6
leaq -0x98(%rbp), %rdi
callq 0x7342
leaq 0xe965(%rip), %rsi      # 0x15300
leaq -0x50(%rbp), %rdi
callq 0x7a56
leaq -0x50(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x792c
movl 0xe98e(%rip), %edx      # 0x15348
leaq -0x38(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x511f
movq -0x38(%rbp), %rbx
movq -0x30(%rbp), %r12
leaq -0x98(%rbp), %r14
movq 0xe5db(%rip), %r15      # 0x14fb8
cmpq %r12, %rbx
je 0x6a0e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7aaa
movq %r15, %rdi
movq %r14, %rsi
callq 0x4f44
movq %r15, %rdi
callq 0x4180
movq %r14, %rdi
callq 0x6ed6
addq $0x48, %rbx
jmp 0x69dd
leaq -0x38(%rbp), %rdi
callq 0x6ef6
leaq -0x50(%rbp), %rdi
callq 0x6f7a
leaq -0x118(%rbp), %rdi
callq 0x6ed6
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6a3e
movq %rax, %rbx
jmp 0x6a87
movq %rax, %rbx
jmp 0x6a90
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x6ed6
jmp 0x6a5c
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x7342
jmp 0x6a9c
movq %rax, %rbx
jmp 0x6a7e
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x6ed6
leaq -0x38(%rbp), %rdi
callq 0x6ef6
leaq -0x50(%rbp), %rdi
callq 0x6f7a
leaq -0x118(%rbp), %rdi
callq 0x6ed6
movq %rbx, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/Quinny[P]IteratedPrisoners/main.cpp
// Function: restart_hill_against_classic(int)
void restart_hill_against_classic(int restarts) {
    using namespace ipd;
    auto hill_guy = hill_climb::restart_climb(
        genetic::random_prisoner_t(config::mem_first, config::mem_last),
        config::mutation_rate,
        genetic::evaluate_vs_tft,
        restarts
    );
    auto cp = bots::all;
    cp.push_back(hill_guy);

    auto sb = play_tourny(cp, config::rounds);
    for (auto i: sb)
        std::cout << i << std::endl;

    // log(sb.front().first, sb.front().second);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %edi, %r14d
movslq 0xe88a(%rip), %rsi      # 0x1534c
movslq 0xe887(%rip), %rdx      # 0x15350
leaq -0xf8(%rbp), %r15
movq %r15, %rdi
callq 0x593f
leaq -0x78(%rbp), %rcx
andq $0x0, 0x8(%rcx)
movl 0xe871(%rip), %edx      # 0x15358
leaq -0xdcc(%rip), %rax      # 0x5d22
movq %rax, (%rcx)
leaq 0x5536(%rip), %rax      # 0xc02e
movq %rax, 0x18(%rcx)
leaq 0x5547(%rip), %rax      # 0xc04a
movq %rax, 0x10(%rcx)
leaq -0xb8(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %r8d
callq 0x65a9
leaq -0x78(%rbp), %rdi
callq 0xa73a
leaq -0xf8(%rbp), %rdi
callq 0x6ed6
leaq 0xe7c8(%rip), %rsi      # 0x15300
leaq -0x58(%rbp), %rdi
callq 0x7a56
leaq -0x58(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x792c
movl 0xe7f1(%rip), %edx      # 0x15348
leaq -0x40(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x511f
movq -0x40(%rbp), %r14
movq -0x38(%rbp), %r13
leaq -0x140(%rbp), %r15
movq 0xe43e(%rip), %r12      # 0x14fb8
cmpq %r13, %r14
je 0x6bab
movq %r15, %rdi
movq %r14, %rsi
callq 0x7aaa
movq %r12, %rdi
movq %r15, %rsi
callq 0x4f44
movq %r12, %rdi
callq 0x4180
movq %r15, %rdi
callq 0x6ed6
addq $0x48, %r14
jmp 0x6b7a
leaq -0x40(%rbp), %rdi
callq 0x6ef6
leaq -0x58(%rbp), %rdi
callq 0x6f7a
leaq -0xb8(%rbp), %rdi
callq 0x6ed6
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6bdd
movq %rax, %r14
jmp 0x6c15
movq %rax, %r14
jmp 0x6c1e
movq %rax, %r14
leaq -0x78(%rbp), %rdi
callq 0xa73a
movq %r15, %rbx
jmp 0x6c1e
movq %rax, %r14
jmp 0x6c0c
movq %rax, %r14
leaq -0x140(%rbp), %rdi
callq 0x6ed6
leaq -0x40(%rbp), %rdi
callq 0x6ef6
leaq -0x58(%rbp), %rdi
callq 0x6f7a
movq %rbx, %rdi
callq 0x6ed6
movq %r14, %rdi
callq 0x4520