LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./game.h
// Function: Game::getboard(int) const
Board getboard(int offset = 0) const {
		Board board;
		if(offset <= 0)
			offset += hist.size();
		for(int i = 0; i < offset; i++)
			board.move(hist[i]);
		return board;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x9(%rdi)
vmovups %xmm0, (%rdi)
movw $0xfc01, 0x19(%rdi)     # imm = 0xFC01
movb $0x8, 0x1b(%rdi)
movw $0xdead, 0x1c(%rdi)     # imm = 0xDEAD
movq $0x0, 0x20(%rdi)
testl %edx, %edx
jg 0x9210
movq 0x8(%r14), %rax
subq (%r14), %rax
shrq $0x2, %rax
addl %edx, %eax
movl %eax, %edx
testl %edx, %edx
jle 0x9231
movl %edx, %r15d
xorl %r12d, %r12d
movq (%r14), %rax
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x9240
incq %r12
cmpq %r12, %r15
jne 0x921a
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./board.h
// Function: Board::move(Move)
bool move(Move mo){
		assert(outcome < 0);

		orient();
		Move m = mo.rotate(orientation);

		//TODO: only call valid_move if the move didn't come from an iterator?
		if(!valid_move(m))
			return false;

		if(m == M_SWAP){
			swap(sides[1], sides[2]);
			to_play = 1;
			return true;
		}

		sides[to_play] |= xybits[m.l];

		if (m.direction() == 0) {
			sides[1] = rotate_quad_ccw(sides[1], m.quadrant());
			sides[2] = rotate_quad_ccw(sides[2], m.quadrant());
		} else {
			sides[1] = rotate_quad_cw(sides[1], m.quadrant());
			sides[2] = rotate_quad_cw(sides[2], m.quadrant());
		}
		sides[0] = sides[1] | sides[2];

		nummoves++;
		to_play = 3 - to_play;
		outcome = -4;
		cached_score = default_score;
		cached_hash = 0;
		orientation = 8; //start with an unoriented board


//		if(m != mo)
//			logerr(mo.to_s(true) + " -> " + m.to_s(true) + " -> " + to_str(orient()) + "\n");

		return true;
	}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl %esi, 0xc(%rsp)
cmpb $0x0, 0x1a(%rdi)
jns 0x9351
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
jne 0x9265
movq %rbx, %rdi
callq 0x973a
movzbl 0x1b(%rbx), %esi
leaq 0xc(%rsp), %rdi
callq 0x9370
movl %eax, %ecx
movsbq %cl, %rax
leaq 0x21d50(%rip), %rdx     # 0x2afd0
movq (%rdx,%rax,8), %rsi
testq %rsi, (%rbx)
sete %dl
btl $0xb, %ecx
setae %al
andb %dl, %al
cmpb $0x1, %al
jne 0x934b
cmpb $-0x1, %cl
jne 0x92b4
vpshufd $0x4e, 0x8(%rbx), %xmm0 # xmm0 = mem[2,3,0,1]
vmovdqu %xmm0, 0x8(%rbx)
movb $0x1, 0x19(%rbx)
jmp 0x934b
movzbl 0x19(%rbx), %edx
orq %rsi, (%rbx,%rdx,8)
xorl %esi, %esi
movl %ecx, %edi
andl $0x100, %edi            # imm = 0x100
sete %sil
shrl $0x8, %edi
shrl $0x9, %ecx
andb $0x3, %cl
movzbl %cl, %ecx
leal (%rcx,%rcx,8), %ecx
movl $0xff, %r8d
shlxq %rcx, %r8, %rcx
leaq 0x2(,%rdi,4), %rdi
leaq 0x2(,%rsi,4), %rsi
vmovdqu 0x8(%rbx), %xmm0
vpbroadcastq %rcx, %xmm1
vpand %xmm1, %xmm0, %xmm2
vpbroadcastq %rdi, %xmm3
vpsrlq %xmm3, %xmm2, %xmm3
vpbroadcastq %rsi, %xmm4
vpsllq %xmm4, %xmm2, %xmm2
vpor %xmm2, %xmm3, %xmm2
vpternlogq $0xe2, %xmm0, %xmm1, %xmm2
vmovdqu %xmm2, 0x8(%rbx)
movq 0x10(%rbx), %rcx
orq 0x8(%rbx), %rcx
movq %rcx, (%rbx)
incb 0x18(%rbx)
movb $0x3, %cl
subb %dl, %cl
movb %cl, 0x19(%rbx)
movl $0xdead08fc, 0x1a(%rbx) # imm = 0xDEAD08FC
movq $0x0, 0x20(%rbx)
addq $0x10, %rsp
popq %rbx
retq
leaq 0x20675(%rip), %rdi     # 0x299cd
leaq 0x2067a(%rip), %rsi     # 0x299d9
leaq 0x2067d(%rip), %rcx     # 0x299e3
movl $0x9d, %edx
callq 0x41b0
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./board.h
// Function: Board::full_hash() const
uint64_t full_hash() const {
		//make sure this matches Move::rotate
		Board b(*this);

		uint64_t h, m = ~0;
		uint8_t o = 0;
		choose(m, (h = b.simple_hash()), o, 0);
		choose(m, (h = rotate_hash(h) ), o, 1);
		choose(m, (h = rotate_hash(h) ), o, 2);
		choose(m, (    rotate_hash(h) ), o, 3);
		b.flip_board();
		choose(m, (h = b.simple_hash()), o, 4);
		choose(m, (h = rotate_hash(h) ), o, 5);
		choose(m, (h = rotate_hash(h) ), o, 6);
		choose(m, (    rotate_hash(h) ), o, 7);

		orientation = o;
		return m;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq %rsp, %r15
movq %rax, 0x20(%r15)
vmovups (%rdi), %ymm0
vmovups %ymm0, (%r15)
movq %r15, %rdi
vzeroupper
callq 0x98a2
movq %rax, %r14
movl $0x2d0f, %r12d          # imm = 0x2D0F
bextrq %r12, %rax, %rax
movl %r14d, %ecx
andl $0x7fff, %ecx           # imm = 0x7FFF
shlq $0x2d, %rcx
orq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %r14
seta %al
movq %rcx, %rdx
cmovbq %r14, %rdx
shrq $0xf, %rcx
movl %r14d, %esi
andl $0x3fff8000, %esi       # imm = 0x3FFF8000
shlq $0x1e, %rsi
orq %rcx, %rsi
cmpq %rsi, %rdx
cmovaeq %rsi, %rdx
movl $0x2, %ecx
cmovbel %eax, %ecx
shrq $0xf, %rsi
shlq $0xf, %r14
movabsq $0xfffe00000000000, %r13 # imm = 0xFFFE00000000000
andq %r13, %r14
orq %rsi, %r14
cmpq %r14, %rdx
cmovbq %rdx, %r14
movl $0x3, %ebp
cmovbel %ecx, %ebp
movq %r15, %rdi
callq 0x993e
movq %r15, %rdi
callq 0x98a2
cmpq %rax, %r14
cmovaeq %rax, %r14
movl $0x4, %ecx
cmovbel %ebp, %ecx
bextrq %r12, %rax, %rdx
movl %eax, %esi
andl $0x7fff, %esi           # imm = 0x7FFF
shlq $0x2d, %rsi
orq %rdx, %rsi
cmpq %rsi, %r14
cmovaeq %rsi, %r14
movl $0x5, %edx
cmovbel %ecx, %edx
shrq $0xf, %rsi
movl %eax, %ecx
andl $0x3fff8000, %ecx       # imm = 0x3FFF8000
shlq $0x1e, %rcx
orq %rsi, %rcx
cmpq %rcx, %r14
cmovaeq %rcx, %r14
movl $0x6, %esi
cmovbel %edx, %esi
shrq $0xf, %rcx
shlq $0xf, %rax
andq %r13, %rax
orq %rcx, %rax
cmpq %rax, %r14
cmovbq %r14, %rax
movl $0x7, %ecx
cmovbel %esi, %ecx
movb %cl, 0x1b(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./board.h
// Function: Board::simple_hash() const
uint64_t simple_hash() const {
		//Take 9 bits at a time from each player, merge them, convert to base 2
		//results in a 60 bit hash when only 48 bits are needed, but much more efficient to compute
		uint64_t h = 0;
		uint64_t w = sides[1] << 9;
		uint64_t b = sides[2];
		h |= ((uint64_t)(lookup3to2[((w & (0x1FFull <<  9)) | (b & (0x1FFull <<  0))) >>  0])) <<  0;
		h |= ((uint64_t)(lookup3to2[((w & (0x1FFull << 18)) | (b & (0x1FFull <<  9))) >>  9])) << 15;
		h |= ((uint64_t)(lookup3to2[((w & (0x1FFull << 27)) | (b & (0x1FFull << 18))) >> 18])) << 30;
		h |= ((uint64_t)(lookup3to2[((w & (0x1FFull << 36)) | (b & (0x1FFull << 27))) >> 27])) << 45;
		orientation = 8;
		return h;
	}

// Assembly:
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rax
shlq $0x9, %rdx
movl $0x3fe00, %ecx          # imm = 0x3FE00
movl %edx, %esi
movq %rdx, %r8
movabsq $0x1ff000000000, %r9    # imm = 0x1FF000000000
andq %rdx, %r9
andl %ecx, %edx
movl %eax, %r10d
andl $0x1ff, %r10d           # imm = 0x1FF
orl %edx, %r10d
leaq 0x2de1d(%rip), %rdx     # 0x376f8
movq (%rdx), %rdx
movzwl (%rdx,%r10,2), %r10d
andl $0x7fc0000, %esi        # imm = 0x7FC0000
andl %eax, %ecx
orl %esi, %ecx
shrl $0x8, %ecx
movzwl (%rdx,%rcx), %ecx
shll $0xf, %ecx
orq %r10, %rcx
movabsq $0xff8000000, %rsi      # imm = 0xFF8000000
andq %rsi, %r8
movl %eax, %r10d
andl $0x7fc0000, %r10d       # imm = 0x7FC0000
orq %r8, %r10
shrq $0x11, %r10
movzwl (%rdx,%r10), %r8d
shlq $0x1e, %r8
andq %rsi, %rax
orq %r9, %rax
shrq $0x1a, %rax
movzwl (%rdx,%rax), %eax
shlq $0x2d, %rax
orq %r8, %rax
orq %rcx, %rax
movb $0x8, 0x1b(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./gtp.h
// Function: GTPclient::find_callback(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int find_callback(const string & name){
		for(unsigned int i = 0; i < callbacks.size(); i++)
			if(callbacks[i].name == name)
				return i;
		return -1;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rdi), %r15
movq 0x20(%rdi), %rax
subq %r15, %rax
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
je 0xa47c
sarq $0x5, %rax
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %r12
movq (%rsi), %r14
movq 0x8(%rsi), %rbp
xorl %r13d, %r13d
leaq (%r13,%r13,2), %rax
shlq $0x5, %rax
movq 0x8(%r15,%rax), %rdx
cmpq %rbp, %rdx
jne 0xa46f
testq %rdx, %rdx
je 0xa479
addq %r15, %rax
movq (%rax), %rdi
movq %r14, %rsi
callq 0x42f0
testl %eax, %eax
je 0xa479
incl %r13d
cmpq %r13, %r12
ja 0xa445
jmp 0xa47c
movl %r13d, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_mcts(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_mcts(vecstr args){
	delete agent;
	agent = new AgentMCTS();
	agent->set_board(game.getboard());
	return GTPResponse(true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x90(%rsi), %rdi
testq %rdi, %rdi
je 0xb1b7
movq (%rdi), %rax
callq *0x8(%rax)
movl $0xb68, %edi            # imm = 0xB68
callq 0x42e0
movq %rax, %r15
movq %rax, %rdi
callq 0x1cec2
movq %r15, 0x90(%r14)
addq $0x38, %r14
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x91ca
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq *0x20(%rax)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1e8d9(%rip), %rdx     # 0x29ae3
movq %rsp, %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0xa874
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x8d7a
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb236
callq 0x42b0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0xb259
jmp 0xb25e
movq %rax, %rbx
movq %r15, %rdi
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_pns(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_pns(vecstr args){
	delete agent;
	agent = new AgentPNS();
	agent->set_board(game.getboard());
	return GTPResponse(true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x90(%rsi), %rdi
testq %rdi, %rdi
je 0xb289
movq (%rdi), %rax
callq *0x8(%rax)
movl $0xb00, %edi            # imm = 0xB00
callq 0x42e0
movq %rax, %r15
movq %rax, %rdi
callq 0xcf3c
movq %r15, 0x90(%r14)
addq $0x38, %r14
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x91ca
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq *0x20(%rax)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1e807(%rip), %rdx     # 0x29ae3
movq %rsp, %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0xa874
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x8d7a
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb308
callq 0x42b0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0xb32b
jmp 0xb330
movq %rax, %rbx
movq %r15, %rdi
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_ab(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_ab(vecstr args){
	delete agent;
	agent = new AgentAB();
	agent->set_board(game.getboard());
	return GTPResponse(true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x90(%rsi), %rdi
testq %rdi, %rdi
je 0xb35b
movq (%rdi), %rax
callq *0x8(%rax)
movl $0x70, %edi
callq 0x42e0
movq %rax, %r15
movq %rax, %rdi
callq 0xd092
movq %r15, 0x90(%r14)
addq $0x38, %r14
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x91ca
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq *0x20(%rax)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1e735(%rip), %rdx     # 0x29ae3
movq %rsp, %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0xa874
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x8d7a
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb3da
callq 0x42b0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0xb3fd
jmp 0xb402
movq %rax, %rbx
movq %r15, %rdi
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::won_str[abi:cxx11](int) const
string PentagoGTP::won_str(int outcome) const {
	switch(outcome){
		case -3: return "none";
		case -2: return "black_or_draw";
		case -1: return "white_or_draw";
		case 0:  return "draw";
		case 1:  return "white";
		case 2:  return "black";
		case 3:  return "draw by simultaneous win";
		default: return "unknown";
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
addl $0x3, %edx
cmpl $0x6, %edx
ja 0xb713
leaq 0x1e906(%rip), %rax     # 0x29fd0
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x1e3ca(%rip), %rsi     # 0x29aa4
leaq 0x1e3c7(%rip), %rdx     # 0x29aa8
jmp 0xb751
leaq 0x1de69(%rip), %rsi     # 0x29553
leaq 0x1de67(%rip), %rdx     # 0x29558
jmp 0xb751
leaq 0x1e900(%rip), %rsi     # 0x29ffa
leaq 0x1e906(%rip), %rdx     # 0x2a007
jmp 0xb751
leaq 0x1e8f9(%rip), %rsi     # 0x2a003
leaq 0x1e8f6(%rip), %rdx     # 0x2a007
jmp 0xb751
leaq 0x1e382(%rip), %rsi     # 0x29a9c
leaq 0x1e382(%rip), %rdx     # 0x29aa3
jmp 0xb751
leaq 0x1e8c2(%rip), %rsi     # 0x29fec
leaq 0x1e8c8(%rip), %rdx     # 0x29ff9
jmp 0xb751
leaq 0x1de45(%rip), %rsi     # 0x2957f
leaq 0x1de43(%rip), %rdx     # 0x29584
jmp 0xb751
leaq 0x1e8be(%rip), %rsi     # 0x2a008
leaq 0x1e8cf(%rip), %rdx     # 0x2a020
movq %rbx, %rdi
callq 0xa874
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_clearboard(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_clearboard(vecstr args){
	game.clear();
	set_board();

	time_remain = time.game;

	log("clear_board");
	return GTPResponse(true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x38, %rsi
movq 0x38(%r14), %rax
cmpq %rax, 0x40(%r14)
je 0xb781
movq %rax, 0x40(%r14)
movq 0x90(%r14), %r15
movq %rsp, %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x91ca
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq *0x20(%rax)
vmovsd 0x68(%r14), %xmm0
vmovsd %xmm0, 0x80(%r14)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1dd21(%rip), %rsi     # 0x294e6
leaq 0x1dd25(%rip), %rdx     # 0x294f1
movq %rsp, %rdi
callq 0xa874
movq %rsp, %rsi
movq %r14, %rdi
callq 0x90f4
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb7ed
callq 0x42b0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1e2e6(%rip), %rdx     # 0x29ae3
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0xa874
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x8d7a
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xb82c
callq 0x42b0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
jmp 0xb84c
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb85b
callq 0x42b0
jmp 0xb85b
movq %rax, %rbx
movq %rbx, %rdi
callq 0x45b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_undo(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_undo(vecstr args){
	int num = 1;
	if(args.size() >= 1)
		num = from_str<int>(args[0]);

	while(num--){
		game.undo();
		log("undo");
	}
	set_board(false);
	if(verbose >= 2)
		logerr(game.getboard().to_s(colorboard) + "\n");
	return GTPResponse(true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %rdi
cmpq %rdi, 0x8(%rdx)
je 0xb88d
callq 0xd295
movl %eax, %ebp
jmp 0xb892
movl $0x1, %ebp
movq %rbx, 0x8(%rsp)
testl %ebp, %ebp
je 0xb8f6
leaq 0x20(%rsp), %rbx
leaq 0x1dd04(%rip), %r15     # 0x295ab
leaq 0x1dd01(%rip), %r12     # 0x295af
leaq 0x10(%rsp), %r13
movq 0x40(%r14), %rax
cmpq 0x38(%r14), %rax
je 0xb8c5
addq $-0x4, %rax
movq %rax, 0x40(%r14)
movq %rbx, 0x10(%rsp)
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0xa874
movq %r14, %rdi
movq %r13, %rsi
callq 0x90f4
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb8f2
callq 0x42b0
decl %ebp
jne 0xb8b3
movq 0x90(%r14), %r12
leaq 0x38(%r14), %r15
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x91ca
movq (%r12), %rax
movq %r12, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq *0x20(%rax)
cmpl $0x2, 0x50(%r14)
jge 0xb985
leaq 0x48(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x1e1a7(%rip), %rdx     # 0x29ae3
leaq 0x38(%rsp), %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0xa874
movq 0x8(%rsp), %r15
movq %r15, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x8d7a
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb970
callq 0x42b0
movq %r15, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x91ca
movzbl 0x54(%r14), %edx
leaq 0x58(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x15f84
leaq 0x1e12f(%rip), %rsi     # 0x29ae2
movq %r14, %rdi
callq 0x4610
leaq 0x78(%rsp), %rdi
leaq 0x58(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %rax, %rsi
callq 0x46ec
jmp 0xb92c
movq %rax, %r14
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xba06
jmp 0xba0b
movq %rax, %r14
movq 0x38(%rsp), %rdi
jmp 0xba01
movq %rax, %r14
jmp 0xba0b
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0xba0b
callq 0x42b0
movq %r14, %rdi
callq 0x45b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_all_legal(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_all_legal(vecstr args){
	string ret;
	for(MoveIterator move(game.getboard()); !move.done(); ++move)
		ret += move->to_s() + " ";
	return GTPResponse(true, ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, 0x8(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x38, %rsi
leaq 0x10(%rsp), %rdi
xorl %edx, %edx
callq 0x91ca
leaq 0x98(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xd316
leaq 0xc8(%rsp), %r14
leaq 0x20(%rsp), %rbx
leaq 0x78(%rsp), %r15
leaq 0x20ddb(%rip), %r12     # 0x2c859
leaq 0x38(%rsp), %r13
leaq 0x98(%rsp), %rbp
cmpb $0x24, 0xc8(%rsp)
jge 0xbb39
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x99d8
movq %r15, %rdi
movq %r12, %rsi
callq 0x4610
movq %rbx, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xbad4
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0xbadc
vmovups (%rcx), %xmm0
vmovups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x40b0
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0xbb15
callq 0x42b0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xbb2c
callq 0x42b0
movq %rbp, %rdi
callq 0xd402
jmp 0xba8b
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xbb4b
callq 0x43d0
leaq 0x68(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0x8df0
leaq 0x58(%rsp), %rdx
movq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0x8d7a
movq 0x58(%rsp), %rdi
cmpq %rbx, %rdi
je 0xbb8e
callq 0x42b0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xbba2
callq 0x42b0
movq 0x8(%rsp), %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x58(%rsp), %rdi
cmpq %rbx, %rdi
je 0xbc27
callq 0x42b0
jmp 0xbc27
jmp 0xbbcf
movq %rax, %r14
jmp 0xbc27
jmp 0xbc06
movq %rax, %r14
jmp 0xbbed
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0xbbed
callq 0x42b0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xbc09
callq 0x42b0
jmp 0xbc09
movq %rax, %r14
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xbc1b
callq 0x43d0
movq $0x0, 0xe0(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xbc3b
callq 0x42b0
movq %r14, %rdi
callq 0x45b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_history(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_history(vecstr args){
	string ret;
	vector<Move> hist = game.get_hist();
	for(unsigned int i = 0; i < hist.size(); i++)
		ret += hist[i].to_s() + " ";
	return GTPResponse(true, ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, 0x40(%rsp)
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x38, %rsi
leaq 0x8(%rsp), %rdi
callq 0xd4f6
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0xbd63
leaq 0x30(%rsp), %r13
movl $0x1, %ebx
leaq 0x98(%rsp), %rbp
xorl %ecx, %ecx
leaq 0x88(%rsp), %r14
leaq 0x20baa(%rip), %r15     # 0x2c859
leaq 0x48(%rsp), %r12
leaq (%rax,%rcx,4), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x99d8
movq %r14, %rdi
movq %r15, %rsi
callq 0x4610
movq %r13, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xbcf0
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xbcfa
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r12, %rdi
callq 0x40b0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0xbd33
callq 0x42b0
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0xbd45
callq 0x42b0
movl %ebx, %ecx
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0xbcb4
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x8df0
leaq 0x68(%rsp), %rdx
movq 0x40(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x8d7a
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xbda9
callq 0x42b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xbdb8
callq 0x42b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xbdcc
callq 0x42b0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
jne 0xbe20
jmp 0xbe25
jmp 0xbdf7
movq %rax, %rbx
jmp 0xbe34
movq %rax, %rbx
jmp 0xbe25
movq %rax, %rbx
jmp 0xbe13
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0xbe13
callq 0x42b0
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0xbe25
callq 0x42b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xbe34
callq 0x42b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xbe48
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_playgame(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_playgame(vecstr args){
	GTPResponse ret(true);

	for(unsigned int i = 0; ret.success && i < args.size(); i++)
		ret = play(args[i], game.toplay());

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r14
movq %rsi, 0x8(%rsp)
movq %rdi, %rbx
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d2f4(%rip), %rdx     # 0x29ae3
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %rdx, %rsi
callq 0xa874
movq %rbx, %rdi
movl $0x1, %esi
movq %r15, %rdx
callq 0x8d7a
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0xc81e
callq 0x42b0
cmpb $0x1, (%rbx)
jne 0xc8e6
movq 0x8(%rsp), %rax
addq $0x38, %rax
movq %rax, 0x10(%rsp)
leaq 0x8(%rbx), %r13
leaq 0x28(%rbx), %rbp
xorl %r12d, %r12d
movl %r12d, %r12d
movq (%r14), %r15
movq 0x8(%r14), %rax
subq %r15, %rax
sarq $0x5, %rax
cmpq %r12, %rax
jbe 0xc8e6
leaq 0x80(%rsp), %rdi
movq 0x10(%rsp), %rsi
xorl %edx, %edx
callq 0x91ca
movq %r12, %rax
shlq $0x5, %rax
addq %rax, %r15
movzbl 0x99(%rsp), %ecx
leaq 0x38(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
callq 0xbe50
movb 0x38(%rsp), %al
movb %al, (%rbx)
movq %r13, %rdi
leaq 0x40(%rsp), %rsi
callq 0x43c0
movq %rbp, %rdi
leaq 0x60(%rsp), %rsi
callq 0x43c0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xc8c6
callq 0x42b0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xc8da
callq 0x42b0
incl %r12d
cmpb $0x0, (%rbx)
jne 0xc840
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0xc91a
callq 0x42b0
jmp 0xc91a
movq %rax, %r14
movq %rbx, %rdi
callq 0x79c0
movq %r14, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpgeneral.cpp
// Function: PentagoGTP::gtp_play(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_play(vecstr args){
	if(args.size() != 2)
		return GTPResponse(false, "Wrong number of arguments");

	char toplay = 0;
	switch(tolower(args[0][0])){
		case 'w': toplay = 1; break;
		case 'b': toplay = 2; break;
		default:
			return GTPResponse(false, "Invalid player selection");
	}

	return play(args[1], toplay);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq (%rdx), %r15
movq 0x8(%rdx), %rax
subq %r15, %rax
cmpq $0x40, %rax
jne 0xc95d
movq %rsi, %r14
movq (%r15), %rax
movsbl (%rax), %edi
callq 0x4410
cmpl $0x77, %eax
je 0xc995
cmpl $0x62, %eax
jne 0xc9ae
movl $0x2, %ecx
jmp 0xc99a
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1d032(%rip), %rsi     # 0x2999f
leaq 0x1d044(%rip), %rdx     # 0x299b8
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0xa874
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8d7a
movq 0x20(%rsp), %rdi
jmp 0xc9e1
movl $0x1, %ecx
addq $0x20, %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xbe50
jmp 0xc9eb
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1d6c7(%rip), %rsi     # 0x2a085
leaq 0x1d6d8(%rip), %rdx     # 0x2a09d
movq %rsp, %r14
movq %r14, %rdi
callq 0xa874
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8d7a
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xc9eb
callq 0x42b0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
jmp 0xca09
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0xca13
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./agentpns.h
// Function: AgentPNS::AgentPNS()
AgentPNS() {
		df = true;
		epsilon = 0.25;
		ties = 0;
		numthreads = 1;
		gclimit = 5;

		nodes = 0;
		reset();

		set_memlimit(1000*1024*1024);

		//no threads started until a board is set
		threadstate = Thread_Wait_Start;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x10(%rdi)
vmovups %xmm0, 0x19(%rdi)
movw $0xfc01, 0x29(%rdi)     # imm = 0xFC01
movb $0x8, 0x2b(%rdi)
movw $0xdead, 0x2c(%rdi)     # imm = 0xDEAD
xorl %r15d, %r15d
movq %r15, 0x30(%rdi)
leaq 0x29c2c(%rip), %rax     # 0x36ba0
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x50(%rdi), %r14
movq %r14, %rdi
callq 0xd6ec
movq %r15, 0xa08(%rbx)
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x9f8(%rbx)
leaq 0xa10(%rbx), %r15
movq %r15, %rdi
callq 0xd8b0
movl $0x1, 0xa68(%rbx)
movl $0x0, 0xa6c(%rbx)
leaq 0xa70(%rbx), %r13
movq %r13, %rdi
callq 0xd8b0
movl $0x1, %eax
movl %eax, 0xac8(%rbx)
xorl %ecx, %ecx
movl %ecx, 0xacc(%rbx)
movw $0x8efc, 0xaf4(%rbx)    # imm = 0x8EFC
movq %rcx, 0xaf8(%rbx)
movb $0x1, 0xad0(%rbx)
movq $0x3e800000, 0xad4(%rbx) # imm = 0x3E800000
movl %eax, 0xadc(%rbx)
movl $0x5, 0x48(%rbx)
movq %rcx, 0x38(%rbx)
movl %ecx, 0x9e0(%rbx)
movq %rcx, 0x9e8(%rbx)
movb $0x0, 0x8(%rbx)
movq (%rbx), %rax
movl $0x3e800000, %esi       # imm = 0x3E800000
movq %rbx, %rdi
callq *0x30(%rax)
movl $0x1, 0x9f0(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r12
leaq 0xae0(%rbx), %rdi
callq 0xd77e
movq %r13, %rdi
callq 0xd7d6
jmp 0xd061
movq %rax, %r12
movq %r15, %rdi
callq 0xd7d6
jmp 0xd06e
movq %rax, %r12
addq $0x9f8, %rbx            # imm = 0x9F8
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xd082
callq 0x42b0
movq %r14, %rdi
callq 0xd824
movq %r12, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./agentab.h
// Function: AgentAB::AgentAB()
AgentAB() : rand(std::rand()) {
		maxdepth = 0;
		nodes_seen = 0;
		time_used = 0;
		TT = NULL;
		set_memlimit(100*1024*1024);

		randomness = 2;
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x10(%rdi)
vmovups %xmm0, 0x19(%rdi)
movw $0xfc01, 0x29(%rdi)     # imm = 0xFC01
movb $0x8, 0x2b(%rdi)
movw $0xdead, 0x2c(%rdi)     # imm = 0xDEAD
xorl %r14d, %r14d
movq %r14, 0x30(%rdi)
leaq 0x29c13(%rip), %rax     # 0x36cd8
addq $0x10, %rax
movq %rax, (%rdi)
callq 0x4080
testl %eax, %eax
movl $0x92d68ca2, %ecx       # imm = 0x92D68CA2
cmovnel %eax, %ecx
movl %ecx, 0x68(%rbx)
movl $0x0, 0x50(%rbx)
movq %r14, 0x38(%rbx)
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x58(%rbx)
movq (%rbx), %rax
movl $0x6400000, %esi        # imm = 0x6400000
movq %rbx, %rdi
callq *0x30(%rax)
movl $0x2, 0x6c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./moveiterator.h
// Function: MoveIterator::MoveIterator(Board const&, int)
MoveIterator(const Board & b, int Unique = -1) : base_board(b), move(M_SWAP, b.orient()) {
		unique = (Unique == -1 ? base_board.num_moves() <= Board::unique_depth : Unique);

		if(base_board.won() >= 0){
			move = Move(36, 8); //already done
		} else {
			if(unique)
				hashes.init(base_board.moves_avail());
			++(*this); //find the first valid move
		}
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, (%rdi)
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x8(%rdi)
vmovups %xmm0, 0x11(%rdi)
movw $0xfc01, 0x21(%rdi)     # imm = 0xFC01
movb $0x8, 0x23(%rdi)
movw $0xdead, 0x24(%rdi)     # imm = 0xDEAD
movq $0x0, 0x28(%rdi)
cmpq $0x0, 0x20(%rsi)
jne 0xd35a
movq %r14, %rdi
callq 0x973a
movzbl 0x1b(%r14), %eax
shll $0xc, %eax
orl $0xeff, %eax            # imm = 0xEFF
movw %ax, 0x30(%rbx)
xorl %eax, %eax
movq %rax, 0x38(%rbx)
movl $0x0, 0x40(%rbx)
movq %rax, 0x48(%rbx)
cmpl $-0x1, %ebp
je 0xd388
testl %ebp, %ebp
setne %al
jmp 0xd392
movq (%rbx), %rax
cmpb $0xb, 0x18(%rax)
setb %al
movb %al, 0x34(%rbx)
movq (%rbx), %r14
cmpb $-0x4, 0x1a(%r14)
jne 0xd3ab
movq %r14, %rdi
callq 0xdab0
movb %al, 0x1a(%r14)
cmpb $0x0, 0x1a(%r14)
js 0xd3ba
movw $0x8824, 0x30(%rbx)     # imm = 0x8824
jmp 0xd3db
cmpb $0x1, 0x34(%rbx)
jne 0xd3d3
movq (%rbx), %rdi
callq 0xda1e
leaq 0x38(%rbx), %rdi
movl %eax, %esi
callq 0xd9a0
movq %rbx, %rdi
callq 0xd402
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0xd3f1
callq 0x43d0
movq $0x0, 0x48(%rbx)
movq %r14, %rdi
callq 0x45b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./moveiterator.h
// Function: MoveIterator::operator++()
MoveIterator & operator ++ (){ //prefix form
		while(true){
			move.r++;
			if(move.r >= 8){
				move.r = 0;
				do{
					move.l++;
					if(move.l >= 36) //done
						return *this;
				}while(!base_board.valid_move_fast(move));
			}
			after = base_board;
			bool move_success = after.move(move);
			assert(move_success);
			if(unique){
				uint64_t h = after.hash();
				if(!hashes.add(h))
					continue;
			}
			break;
		}
		return *this;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
leaq 0x38(%rdi), %r15
leaq 0x1dbb4(%rip), %r12     # 0x2afd0
movzwl 0x30(%rbx), %eax
leal 0x100(%rax), %ecx
movl %ecx, %edx
andl $0xf00, %edx            # imm = 0xF00
andl $0xf0ff, %eax           # imm = 0xF0FF
orl %eax, %edx
movw %dx, 0x30(%rbx)
btl $0xb, %ecx
jae 0xd46d
movw %ax, 0x30(%rbx)
movq (%rbx), %rcx
leal 0x1(%rax), %edx
movzbl %dl, %esi
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
orl %esi, %eax
movw %ax, 0x30(%rbx)
cmpb $0x23, %sil
jg 0xd4c7
movzwl %dx, %edx
movsbq %dl, %rdx
movq (%r12,%rdx,8), %rdx
testq %rdx, (%rcx)
jne 0xd446
movq (%rbx), %rax
movq 0x20(%rax), %rcx
movq %rcx, 0x20(%r14)
vmovups (%rax), %ymm0
vmovups %ymm0, (%r14)
movl 0x30(%rbx), %esi
movq %r14, %rdi
vzeroupper
callq 0x9240
testb %al, %al
je 0xd4d6
cmpb $0x1, 0x34(%rbx)
jne 0xd4b0
movq %r14, %rdi
callq 0x973a
movq %r15, %rdi
movq %rax, %rsi
callq 0xda4c
testb %al, %al
je 0xd4b7
movl $0x3, %eax
jmp 0xd4be
xorb $0x1, %al
movzbl %al, %eax
addl %eax, %eax
cmpl $0x2, %eax
je 0xd41c
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1cdb7(%rip), %rdi     # 0x2a294
leaq 0x1cdbd(%rip), %rsi     # 0x2a2a1
leaq 0x1cdc7(%rip), %rcx     # 0x2a2b2
movl $0x2e, %edx
callq 0x41b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./hashset.h
// Function: HashSet::init(unsigned int)
void init(unsigned int s){
		size = roundup(s)*4;
		mask = size-1;
		count = 0;
		table = new uint64_t[size];
		for(unsigned int i = 0; i < size; i++)
			table[i] = 0;
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
decl %esi
movl %esi, %eax
shrl %eax
orl %esi, %eax
movl %eax, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x10, %eax
orl %ecx, %eax
leal 0x4(,%rax,4), %r14d
movl %r14d, (%rdi)
leal 0x3(,%rax,4), %eax
movl %eax, 0x4(%rdi)
movl $0x0, 0x8(%rdi)
leaq (,%r14,8), %rdi
callq 0x4030
movq %rax, 0x10(%rbx)
testl %r14d, %r14d
je 0xda15
movl %r14d, %edx
shlq $0x3, %rdx
movq %rax, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4170
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./hashset.h
// Function: HashSet::add(unsigned long)
static uint64_t mix_bits(uint64_t h){
		h ^= (h >> 17);
		h ^= (h << 31);
		h ^= (h >>  8);
		return h;
	}

// Assembly:
movq %rsi, %rax
shrq $0x11, %rax
xorq %rsi, %rax
movq %rax, %rdx
shlq $0x1f, %rdx
xorq %rax, %rdx
movq %rdx, %rcx
shrq $0x8, %rcx
xorq %rdx, %rcx
movl 0x4(%rdi), %edx
movl 0x8(%rdi), %esi
movl %ecx, %r8d
andl %edx, %r8d
movq 0x10(%rdi), %r9
movl %r8d, %r10d
movq (%r9,%r10,8), %r11
testq %r11, %r11
je 0xda8f
cmpq %rcx, %r11
jne 0xda9f
xorl %eax, %eax
jmp 0xda9a
movq %rcx, (%r9,%r10,8)
incl %esi
movl %esi, 0x8(%rdi)
movb $0x1, %al
xorl %r10d, %r10d
jmp 0xdaa8
incl %r8d
andl %edx, %r8d
movb $0x1, %r10b
testb %r10b, %r10b
jne 0xda7a
andb $0x1, %al
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./board.h
// Function: Board::won_calc() const
int8_t won_calc() const {
		int8_t wonside = 0;
		uint64_t ws = sides[1];
		uint64_t bs = sides[2];

		for(int i = 0; i < 32; i++){
			uint64_t wm = winmaps[i];
			if     ((ws & wm) == wm) wonside |= 1;
			else if((bs & wm) == wm) wonside |= 2;
		}

		switch(wonside){
			case 1:
			case 2:  return wonside;
			case 3:  return 0; //wonside == 3 when both sides win simultaneously
			default: return (nummoves >= 36 ? 0 : -3);
		}
	}

// Assembly:
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rdx
xorl %esi, %esi
leaq 0x1d63f(%rip), %r8      # 0x2b100
xorl %eax, %eax
movq (%r8,%rsi,8), %r9
andnq %r9, %rcx, %r10
jne 0xdad2
orb $0x1, %al
jmp 0xdae7
andnq %r9, %rdx, %r9
movzbl %al, %r10d
orb $0x2, %al
testq %r9, %r9
movzbl %al, %eax
cmovnel %r10d, %eax
incq %rsi
cmpq $0x20, %rsi
jne 0xdac3
decb %al
cmpb $0x3, %al
jae 0xdb04
shlb $0x3, %al
movl $0x201, %ecx            # imm = 0x201
shrxl %eax, %ecx, %eax
retq
xorl %ecx, %ecx
cmpb $0x24, 0x18(%rdi)
movl $0xfd, %eax
cmovael %ecx, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./game.h
// Function: Game::move(Move const&)
bool move(const Move & m){
		if(getboard().move(m)){
			hist.push_back(m);
			return true;
		}
		return false;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x91ca
movl (%rbx), %esi
movq %r15, %rdi
callq 0x9240
movl %eax, %ebp
testb %al, %al
je 0xdb64
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0xdb59
movl (%rbx), %eax
movl %eax, (%rsi)
addq $0x4, 0x8(%r14)
jmp 0xdb64
movq %r14, %rdi
movq %rbx, %rdx
callq 0xdb72
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpagent.cpp
// Function: PentagoGTP::get_time()
double PentagoGTP::get_time(){
	double ret = 0;

	switch(time.method){
		case TimeControl::PERCENT:
			ret += time.param*time_remain/100;
			break;
		case TimeControl::STATS:{
			double gamelen = agent->gamelen();
			if(gamelen > 0){
				ret += 2.0*time.param*time_remain / gamelen;
				break;
			}
		}//fall back to even
		case TimeControl::EVEN:
			ret += 2.0*time.param*time_remain / game.moves_remain();
			break;
	}

	if(ret > time_remain)
		ret = time_remain;

	ret += time.move;

	return ret;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl 0x58(%rdi), %eax
cmpl $0x2, %eax
je 0xf726
vxorpd %xmm2, %xmm2, %xmm2
cmpl $0x1, %eax
je 0xf764
testl %eax, %eax
jne 0xf7a0
vmovsd 0x60(%rbx), %xmm0
vmulsd 0x80(%rbx), %xmm0, %xmm0
vdivsd 0x1abcc(%rip), %xmm0, %xmm0 # 0x2a2e8
vxorpd %xmm1, %xmm1, %xmm1
vaddsd %xmm1, %xmm0, %xmm2
jmp 0xf7a0
movq 0x90(%rbx), %rdi
movq (%rdi), %rax
callq *0x50(%rax)
vxorpd %xmm1, %xmm1, %xmm1
vucomisd %xmm1, %xmm0
vxorpd %xmm2, %xmm2, %xmm2
jbe 0xf75e
vmovsd 0x60(%rbx), %xmm2
vaddsd %xmm2, %xmm2, %xmm2
vmulsd 0x80(%rbx), %xmm2, %xmm2
vdivsd %xmm0, %xmm2, %xmm2
vxorpd %xmm3, %xmm3, %xmm3
vaddsd %xmm3, %xmm2, %xmm2
vucomisd %xmm1, %xmm0
ja 0xf7a0
vmovsd %xmm2, 0x8(%rsp)
vmovsd 0x60(%rbx), %xmm0
vaddsd %xmm0, %xmm0, %xmm0
vmulsd 0x80(%rbx), %xmm0, %xmm0
vmovsd %xmm0, (%rsp)
leaq 0x38(%rbx), %rdi
callq 0x15576
vmovsd 0x8(%rsp), %xmm2
vcvtsi2sd %eax, %xmm4, %xmm0
vmovsd (%rsp), %xmm1
vdivsd %xmm0, %xmm1, %xmm0
vaddsd %xmm0, %xmm2, %xmm2
vmovsd 0x80(%rbx), %xmm0
vminsd %xmm2, %xmm0, %xmm0
vaddsd 0x70(%rbx), %xmm0, %xmm0
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpagent.cpp
// Function: PentagoGTP::time_used(double)
void PentagoGTP::time_used(double used){
	if(time.flexible)
		time_remain += time.move - used;
	else
		time_remain += min(0.0, time.move - used);
	if(time_remain < 0)
			time_remain = 0;
}

// Assembly:
kmovb 0x78(%rdi), %k1
vmovsd 0x70(%rdi), %xmm1
vsubsd %xmm0, %xmm1, %xmm0
vxorpd %xmm1, %xmm1, %xmm1
vminsd %xmm1, %xmm0, %xmm2
vmovsd %xmm0, %xmm2, %xmm2 {%k1}
vaddsd 0x80(%rdi), %xmm2, %xmm0
vmovsd %xmm0, 0x80(%rdi)
vucomisd %xmm0, %xmm1
jbe 0xf7f5
movq $0x0, 0x80(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpagent.cpp
// Function: PentagoGTP::gtp_pv(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_pv(vecstr args){
	string pvstr = "";
	vector<Move> pv = agent->get_pv();
	for(unsigned int i = 0; i < pv.size(); i++)
		pvstr += pv[i].to_s() + " ";
	return GTPResponse(true, pvstr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, 0x60(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x193a6(%rip), %rdx     # 0x29ae3
leaq 0x40(%rsp), %rdi
movq %rdx, %rsi
callq 0xa874
movq 0x90(%r14), %rsi
movq (%rsi), %rax
leaq 0x8(%rsp), %rdi
callq *0x40(%rax)
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x10843
leaq 0x30(%rsp), %r13
movl $0x1, %ebx
leaq 0x98(%rsp), %rbp
xorl %ecx, %ecx
leaq 0x88(%rsp), %r14
leaq 0x1c0ca(%rip), %r15     # 0x2c859
leaq 0x40(%rsp), %r12
leaq (%rax,%rcx,4), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x99d8
movq %r14, %rdi
movq %r15, %rsi
callq 0x4610
movq %r13, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x107d0
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x107da
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r12, %rdi
callq 0x40b0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x10813
callq 0x42b0
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x10825
callq 0x42b0
movl %ebx, %ecx
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebx
cmpq %rcx, %rdx
ja 0x10794
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x8df0
leaq 0x68(%rsp), %rdx
movq 0x60(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x8d7a
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x10889
callq 0x42b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x10898
callq 0x42b0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x108ac
callq 0x42b0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
jne 0x10900
jmp 0x10905
jmp 0x108d7
movq %rax, %rbx
jmp 0x10914
movq %rax, %rbx
jmp 0x10905
movq %rax, %rbx
jmp 0x108f3
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x108f3
callq 0x42b0
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x10905
callq 0x42b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x10914
callq 0x42b0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x10928
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/gtpagent.cpp
// Function: PentagoGTP::gtp_params(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_params(vecstr args){
	if(dynamic_cast<AgentAB   *>(agent)) return gtp_ab_params(args);
	if(dynamic_cast<AgentMCTS *>(agent)) return gtp_mcts_params(args);
	if(dynamic_cast<AgentPNS  *>(agent)) return gtp_pns_params(args);

	return GTPResponse(false, "Unknown Agent type");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movq 0x90(%rsi), %r12
testq %r12, %r12
je 0x10a33
movq %rdx, %r15
movq %rsi, %r14
leaq 0x260fd(%rip), %rsi     # 0x36a58
leaq 0x263e6(%rip), %rdx     # 0x36d48
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x4340
testq %rax, %rax
je 0x1099e
leaq 0x50(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xa48e
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x10abc
leaq 0x50(%rsp), %rdi
callq 0x8f38
jmp 0x10a70
testq %r12, %r12
je 0x10a33
leaq 0x260aa(%rip), %rsi     # 0x36a58
leaq 0x26123(%rip), %rdx     # 0x36ad8
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x4340
testq %rax, %rax
je 0x109e9
leaq 0x38(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xa48e
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1131a
leaq 0x38(%rsp), %rdi
jmp 0x10994
testq %r12, %r12
je 0x10a33
leaq 0x26063(%rip), %rsi     # 0x36a58
leaq 0x26214(%rip), %rdx     # 0x36c10
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x4340
testq %rax, %rax
je 0x10a33
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xa48e
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1444a
leaq 0x20(%rsp), %rdi
jmp 0x10994
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x19c48(%rip), %rsi     # 0x2a68b
leaq 0x19c53(%rip), %rdx     # 0x2a69d
movq %rsp, %r14
movq %r14, %rdi
callq 0xa874
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x8d7a
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x10a70
callq 0x42b0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
jmp 0x10a9b
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x10a9b
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x8f38
jmp 0x10ab3
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x10ab3
callq 0x42b0
movq %rbx, %rdi
callq 0x45b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/./pentagogtp.h
// Function: TimeControl::method_name[abi:cxx11]()
string method_name(){
		switch(method){
			case PERCENT: return "percent";
			case EVEN:    return "even";
			case STATS:   return "stats";
			default:      return "WTF? unknown time control method";
		}
	}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rsi), %eax
leaq 0x10(%rdi), %rcx
movq %rcx, (%rdi)
cmpl $0x2, %eax
je 0x1532b
cmpl $0x1, %eax
je 0x1531b
testl %eax, %eax
jne 0x1533b
leaq 0x152c9(%rip), %rsi     # 0x2a5db
leaq 0x152c9(%rip), %rdx     # 0x2a5e2
jmp 0x15349
leaq 0x152c6(%rip), %rsi     # 0x2a5e8
leaq 0x152c3(%rip), %rdx     # 0x2a5ec
jmp 0x15349
leaq 0x152c0(%rip), %rsi     # 0x2a5f2
leaq 0x152be(%rip), %rdx     # 0x2a5f7
jmp 0x15349
leaq 0x15b60(%rip), %rsi     # 0x2aea2
leaq 0x15b79(%rip), %rdx     # 0x2aec2
movq %rbx, %rdi
callq 0xa874
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]pentagod/string.cpp
// Function: to_str[abi:cxx11](double, int)
string to_str(double a, int prec){
	double p = pow(10.0, prec);
	a = round(a*p)/p;

	stringstream out;
//	out.precision(prec);
	out << a;
	return out.str();
}

// Assembly:
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
vmovsd %xmm0, (%rsp)
movq %rdi, %rbx
vcvtsi2sd %esi, %xmm1, %xmm1
vmovsd 0x15710(%rip), %xmm0    # 0x2aec8
callq 0x4590
vmulsd (%rsp), %xmm0, %xmm1
vpbroadcastq 0x15705(%rip), %xmm2 # 0x2aed0
vpternlogq $0xf8, 0x15702(%rip){1to2}, %xmm1, %xmm2 # 0x2aed8
vaddsd %xmm2, %xmm1, %xmm1
vroundsd $0xb, %xmm1, %xmm1, %xmm1
vdivsd %xmm0, %xmm1, %xmm0
vmovsd %xmm0, (%rsp)
leaq 0x8(%rsp), %rdi
callq 0x41e0
leaq 0x18(%rsp), %rdi
vmovsd (%rsp), %xmm0
callq 0x44f0
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x44e0
movq 0x217a2(%rip), %rsi     # 0x36fb8
leaq 0x8(%rsp), %rdi
callq 0x4200
leaq 0x88(%rsp), %rdi
callq 0x40c0
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq %rax, %rbx
movq 0x21775(%rip), %rsi     # 0x36fb8
leaq 0x8(%rsp), %rdi
callq 0x4200
leaq 0x88(%rsp), %rdi
callq 0x40c0
movq %rbx, %rdi
callq 0x45b0