LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/toxaart[P]hierarchical_block_sparse_lib/source/HierarchicalBlockSparseMatrix.h
// Function: hbsm::HierarchicalBlockSparseMatrix<double>::sum_skips(std::vector<unsigned long, std::allocator<unsigned long>> const&, std::vector<std::vector<unsigned long, std::allocator<unsigned long>>, std::allocator<std::vector<unsigned long, std::allocator<unsigned long>>>> const&)
std::vector<unsigned long int> HierarchicalBlockSparseMatrix<Treal>::sum_skips(std::vector<unsigned long int> const & curr_level_skips, std::vector<std::vector<unsigned long int> > const & sub_skips){

			  std::vector<unsigned long int> total_skips;
				total_skips.resize(curr_level_skips.size());

				for(int j = 0; j < curr_level_skips.size(); ++j){

					if(curr_level_skips[j] == 1) total_skips[j] = 1;
					else{
						for(int i = 0; i < sub_skips.size();++i){
							total_skips[j] += sub_skips[i][j];
						}
					}
				}

				return total_skips;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x8(%rsi), %rsi
subq (%r15), %rsi
sarq $0x3, %rsi
callq 0x21576
movq (%r15), %rax
movq 0x8(%r15), %rcx
subq %rax, %rcx
je 0x21775
sarq $0x3, %rcx
movq (%r14), %rdx
movq 0x8(%r14), %rsi
movq %rsi, %r8
subq %rdx, %r8
sarq $0x3, %r8
movabsq $-0x5555555555555555, %rdi # imm = 0xAAAAAAAAAAAAAAAB
imulq %r8, %rdi
movq (%rbx), %r8
cmpq $0x1, %rdi
adcq $0x0, %rdi
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %r9d, %r9d
cmpq $0x1, (%rax,%r9,8)
jne 0x2174a
movq $0x1, (%r8,%r9,8)
jmp 0x2176d
cmpq %rdx, %rsi
je 0x2176d
movq (%r8,%r9,8), %r10
movq %rdi, %r11
movq %rdx, %r14
movq (%r14), %r15
addq (%r15,%r9,8), %r10
movq %r10, (%r8,%r9,8)
addq $0x18, %r14
decq %r11
jne 0x21759
incq %r9
cmpq %rcx, %r9
jne 0x21739
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x21795
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x22b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/toxaart[P]hierarchical_block_sparse_lib/source/HierarchicalBlockSparseMatrix.h
// Function: hbsm::HierarchicalBlockSparseMatrix<double>::sum_spamm_errors(std::vector<double, std::allocator<double>> const&, std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>> const&)
std::vector<Treal> HierarchicalBlockSparseMatrix<Treal>::sum_spamm_errors(std::vector<real> const & curr_level_errors, std::vector<std::vector<real> > const & sub_errors){

	 			  std::vector<real> total_errors(curr_level_errors.size(),0.0);


	 				for(int j = 0; j < curr_level_errors.size(); ++j){

					// WHAT IS COMMENTED OUT IS DUE TO THE NEW VERSION OF THE ALGORITHM PROPOSED BY EMANUEL
	 				//	if(curr_level_errors[j] > 0.0) total_errors[j] = curr_level_errors[j];
	 				//	else{
	 						for(int i = 0; i < sub_errors.size();++i){
								if(sub_errors[i].size() == 0) continue;
								else total_errors[j] += sub_errors[i][j] * sub_errors[i][j];
	 						}
							total_errors[j] = std::sqrt(total_errors[j]);
	 					//}
	 				}

	 				return total_errors;
	 		}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq 0x8(%rsi), %rsi
subq (%r14), %rsi
movq %rdi, %r15
sarq $0x3, %rsi
leaq 0x8(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x7(%rsp), %rcx
callq 0x224ec
movq 0x8(%r14), %rax
cmpq (%r14), %rax
je 0x21d95
movq (%r15), %rax
xorl %r12d, %r12d
xorpd %xmm1, %xmm1
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
subq %rcx, %rdx
je 0x21d5e
sarq $0x3, %rdx
imulq %r13, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
addq $0x8, %rcx
movq -0x8(%rcx), %rsi
cmpq %rsi, (%rcx)
je 0x21d55
movsd (%rsi,%r12,8), %xmm0
mulsd %xmm0, %xmm0
addsd (%rax,%r12,8), %xmm0
movsd %xmm0, (%rax,%r12,8)
addq $0x18, %rcx
decq %rdx
jne 0x21d36
movsd (%rax,%r12,8), %xmm0
ucomisd %xmm1, %xmm0
jb 0x21d70
sqrtsd %xmm0, %xmm0
jmp 0x21d79
callq 0x2170
xorpd %xmm1, %xmm1
movq (%r15), %rax
movsd %xmm0, (%rax,%r12,8)
incq %r12
movq 0x8(%r14), %rcx
subq (%r14), %rcx
sarq $0x3, %rcx
cmpq %r12, %rcx
ja 0x21d16
movq %r15, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/toxaart[P]hierarchical_block_sparse_lib/source/HierarchicalBlockSparseMatrix.h
// Function: std::vector<double, std::allocator<double>> hbsm::operator+<double>(std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>> const&)
std::vector<T> operator+(const std::vector<T>& a, const std::vector<T>& b)
		{
		  assert(a.size() == b.size());

		  std::vector<T> result;
		  result.reserve(a.size());

		  std::transform(a.begin(), a.end(), b.begin(),
		                 std::back_inserter(result), std::plus<T>());
		  return result;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq 0x8(%rsi), %rsi
subq (%r15), %rsi
movq 0x8(%rdx), %rax
subq (%rdx), %rax
cmpq %rax, %rsi
jne 0x21e79
movq %rdx, %r14
movq %rdi, %rbx
sarq $0x3, %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
callq 0x1c630
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq (%r14), %rdx
movq %rbx, %rcx
callq 0x227fc
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3ff9(%rip), %rdi      # 0x25e79
leaq 0x2918(%rip), %rsi      # 0x2479f
leaq 0x4000(%rip), %rcx      # 0x25e8e
movl $0x1b6, %edx            # imm = 0x1B6
callq 0x2100
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x21eaf
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x22b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/toxaart[P]hierarchical_block_sparse_lib/source/HierarchicalBlockSparseMatrix.h
// Function: hbsm::HierarchicalBlockSparseMatrix<double>::self_frob_block_trunc(double)
bool HierarchicalBlockSparseMatrix<Treal>::self_frob_block_trunc(Treal trunc_value) {

			bool at_least_one_removed = false;

			for(int i = 0; i < 4; ++i){
				if(children[i] != NULL){ // if child exist
					if(children[i]->get_frob_squared() < trunc_value*trunc_value){
						children[i] = nullptr;
						at_least_one_removed = at_least_one_removed || true;
					}
					else{
						bool child_cleared = children[i]->self_frob_block_trunc(trunc_value);
						at_least_one_removed = at_least_one_removed || child_cleared;
					}
				}
			}


			for(int i = 0; i < 4; ++i){
				if(children[i] != NULL){
					if(!children[i]->lowest_level() && !children[i]->children_exist()){
						children[i] = nullptr;
					}
				}
			}

			return at_least_one_removed;

		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movsd %xmm0, (%rsp)
mulsd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %r15d, %r15d
xorl %r14d, %r14d
movq 0x28(%rbx,%r15), %rdi
testq %rdi, %rdi
je 0x228e4
callq 0x1b0ae
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x228cd
movq 0x30(%rbx,%r15), %rdi
xorpd %xmm0, %xmm0
movupd %xmm0, 0x28(%rbx,%r15)
movb $0x1, %r14b
testq %rdi, %rdi
je 0x228e4
callq 0x1b482
jmp 0x228e4
movq 0x28(%rbx,%r15), %rdi
movsd (%rsp), %xmm0
callq 0x22872
orb %r14b, %al
andb $0x1, %al
movl %eax, %r14d
addq $0x10, %r15
cmpq $0x40, %r15
jne 0x22893
xorl %r15d, %r15d
movq 0x28(%rbx,%r15), %rdi
testq %rdi, %rdi
je 0x2293f
callq 0x1b448
testb %al, %al
jne 0x2293f
movq 0x28(%rbx,%r15), %rax
cmpq $0x0, 0x28(%rax)
jne 0x2293f
cmpq $0x0, 0x38(%rax)
jne 0x2293f
cmpq $0x0, 0x48(%rax)
jne 0x2293f
cmpq $0x0, 0x58(%rax)
jne 0x2293f
movq 0x30(%rbx,%r15), %rdi
xorpd %xmm0, %xmm0
movupd %xmm0, 0x28(%rbx,%r15)
testq %rdi, %rdi
je 0x2293f
callq 0x1b482
addq $0x10, %r15
cmpq $0x40, %r15
jne 0x228f1
andb $0x1, %r14b
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Game.cpp
// Function: Game::getNextMoveAuto(Board&)
void Game::getNextMoveAuto(Board &b)
{
	bool goodMove=false;
	int xEntry, yEntry;

	while (!goodMove)
	{
		// randomly choose next move
		xEntry=rand()%10;
		yEntry=rand()%10;

		if (b.getSpaceValue(xEntry, yEntry)!=isHIT
			&& b.getSpaceValue(xEntry, yEntry)!=isMISS)
		{
			b.recordHit(xEntry, yEntry);
			goodMove=true;
		}
	} 
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0x2050
movslq %eax, %r14
imulq $0x66666667, %r14, %rax # imm = 0x66666667
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x22, %rax
addl %ecx, %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
subl %eax, %r14d
callq 0x2050
movslq %eax, %r15
imulq $0x66666667, %r15, %rax # imm = 0x66666667
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x22, %rax
addl %ecx, %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
subl %eax, %r15d
movq %rbx, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x41ee
cmpb $0x58, %al
je 0x3613
movq %rbx, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x41ee
cmpb $0x4f, %al
je 0x3613
movq %rbx, %rdi
movl %r14d, %esi
movl %r15d, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4206
nop
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Game.cpp
// Function: Game::printGameState(Player)
void Game::printGameState(Player p)
{
	std::cout<<p.getName()<<"'s GAME STATE:\n\n";
	if (p.getPlayerNum()==1)
	{
		std::cout<<"YOUR BOARD: \n";
		p1Board.printPublicBoard();
		std::cout<<"YOUR OPPONENT'S BOARD: \n";
		p2Board.printPrivateBoard();
		std::cout<<std::endl<<std::endl;
	}
	else
	{
		std::cout<<"YOUR BOARD: \n";
		p2Board.printPublicBoard();
		std::cout<<"YOUR OPPONENT'S BOARD: \n";
		p1Board.printPrivateBoard();
		std::cout<<std::endl<<std::endl;
	}


	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq -0x38(%rbp), %rbx
movq %rbx, %rdi
callq 0x51fc
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x590b(%rip), %rbx      # 0x8fd0
movq %rbx, %rdi
callq 0x2150
leaq 0x2a8f(%rip), %rsi      # 0x6163
movl $0x10, %edx
movq %rax, %rdi
callq 0x2150
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x36fa
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2140
movq %r15, %rdi
callq 0x5232
movl %eax, %r15d
leaq 0x2a68(%rip), %rsi      # 0x6174
movl $0xd, %edx
movq %rbx, %rdi
callq 0x2150
leaq 0xd0(%r14), %rax
addq $0x28, %r14
cmpl $0x1, %r15d
movq %rax, %rdi
cmoveq %r14, %rdi
leaq 0x2a4c(%rip), %r15      # 0x6182
cmoveq %rax, %r14
callq 0x4116
movl $0x18, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2150
movq %r14, %rdi
callq 0x4022
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20b0
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37cf
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Game.cpp
// Function: Game::getNextMove(Board&)
void Game::getNextMove(Board &b)
{
	int attemptCount=0;
	int xEntry, yEntry;
	bool goodMove=false;
	std::string entryTemp;

	while (!goodMove)
	{
		if (attemptCount>0) 
			std::cout<<"That move has already been attempted. Try again. \n";

		std::cout<<"Please enter location [Letter][Number] of desired move:\n";
		entryTemp=getSquare();		
		xEntry=static_cast<int>(entryTemp[0]);
		yEntry=static_cast<int>(entryTemp[1]);

		if (b.getSpaceValue(xEntry-LETTER_CHAR_OFFSET, 
						yEntry-NUMBER_CHAR_OFFSET)!=isHIT
			&& b.getSpaceValue(xEntry-LETTER_CHAR_OFFSET, 
							yEntry-NUMBER_CHAR_OFFSET)!=isMISS)
		{
			b.recordHit(xEntry-LETTER_CHAR_OFFSET, yEntry-NUMBER_CHAR_OFFSET);
			goodMove=true;
		}
		attemptCount++;
	} 

	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %r14d, %r14d
leaq -0x68(%rbp), %r12
subl $0x1, %r14d
jb 0x3824
movl $0x32, %edx
movq 0x57b8(%rip), %rdi      # 0x8fd0
leaq 0x2a6f(%rip), %rsi      # 0x628e
callq 0x2150
movl $0x38, %edx
movq 0x57a0(%rip), %rdi      # 0x8fd0
leaq 0x2a8a(%rip), %rsi      # 0x62c1
callq 0x2150
movq %r12, %rdi
callq 0x3d14
leaq -0x48(%rbp), %rdi
movq %r12, %rsi
callq 0x2180
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x3869
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2140
movq -0x48(%rbp), %rax
movsbl (%rax), %r15d
movsbl 0x1(%rax), %r13d
addl $-0x41, %r15d
addl $-0x30, %r13d
movq %rbx, %rdi
movl %r15d, %esi
movl %r13d, %edx
callq 0x41ee
cmpb $0x58, %al
je 0x3806
movq %rbx, %rdi
movl %r15d, %esi
movl %r13d, %edx
callq 0x41ee
cmpb $0x4f, %al
je 0x3806
movq %rbx, %rdi
movl %r15d, %esi
movl %r13d, %edx
callq 0x4206
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x38d1
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2140
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x38e4
jmp 0x38e4
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3900
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Game.cpp
// Function: Game::switchPlayers(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Game::switchPlayers(std::string playerFrom, std::string playerTo)
{
	std::cout<<playerFrom<<", press ENTER to finish your turn!";
	std::cin.get();
	std::cout<<std::flush;
	std::cout<<std::string(100,'\n');
	std::cout<<playerTo<<", press ENTER to start your turn!";
	std::cin.get();
	std::cout<<std::flush;
	std::cout<<std::string(100,'\n');	

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
movq 0x56ac(%rip), %r14      # 0x8fd0
movq %r14, %rdi
movq %rax, %rsi
callq 0x2150
leaq 0x2a29(%rip), %rsi      # 0x635f
movl $0x22, %edx
movq %rax, %rdi
callq 0x2150
movq 0x5696(%rip), %rdi      # 0x8fe0
callq 0x2170
movq %r14, %rdi
callq 0x20b0
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
leaq -0x30(%rbp), %rdi
movl $0x64, %esi
movl $0xa, %edx
callq 0x2160
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq 0x564f(%rip), %rdi      # 0x8fd0
callq 0x2150
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x399b
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x2140
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x5627(%rip), %rbx      # 0x8fd0
movq %rbx, %rdi
callq 0x2150
leaq 0x29ca(%rip), %rsi      # 0x6382
movl $0x21, %edx
movq %rax, %rdi
callq 0x2150
movq 0x5614(%rip), %rdi      # 0x8fe0
callq 0x2170
movq %rbx, %rdi
callq 0x20b0
leaq -0x30(%rbp), %rdi
movq %r14, (%rdi)
movl $0x64, %esi
movl $0xa, %edx
callq 0x2160
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq 0x55d2(%rip), %rdi      # 0x8fd0
callq 0x2150
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x3a18
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x2140
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x3a25
jmp 0x3a3f
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x3a42
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x3a42
movq %rax, %rbx
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Game.cpp
// Function: Game::initializeBoardAuto(Board&, bool)
void Game::initializeBoardAuto(Board &b, bool print)
{
	int xEntry, yEntry, horizEntry;

	for (int i=0; i<NUM_SHIPS; i++)
	{
		do // randomize position placements and place ships if possible
		{
			xEntry=rand()%10;
			yEntry=rand()%10;
			horizEntry=rand()%2;
		} while (!b.placeShip(i, xEntry, yEntry, horizEntry));

	}

	if (print)
	{
		std::cout<<"Your starting board: \n";
		b.printPublicBoard();
	}


	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %rbx
xorl %r15d, %r15d
callq 0x2050
movslq %eax, %r12
imulq $0x66666667, %r12, %rax # imm = 0x66666667
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x22, %rax
addl %ecx, %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
subl %eax, %r12d
callq 0x2050
movslq %eax, %r13
imulq $0x66666667, %r13, %rax # imm = 0x66666667
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x22, %rax
addl %ecx, %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
subl %eax, %r13d
callq 0x2050
andl $0x1, %eax
movq %rbx, %rdi
movl %r15d, %esi
movl %r12d, %edx
movl %r13d, %ecx
movl %eax, %r8d
callq 0x4350
testb %al, %al
je 0x3a61
incl %r15d
cmpl $0x5, %r15d
jne 0x3a61
testb %r14b, %r14b
je 0x3b05
movq 0x54f2(%rip), %rdi      # 0x8fd0
leaq 0x2792(%rip), %rsi      # 0x6277
movl $0x16, %edx
callq 0x2150
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4116
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Game.cpp
// Function: Game::getSquare[abi:cxx11]()
std::string Game::getSquare()
{
	std::string retString;
	std::getline(std::cin, retString);
	bool isGoodInput=false;

	while (!isGoodInput)
	{
		// check for two character entries of letter/number
		if (retString.length()==2 && (retString[0]>=65 && retString[0]<=74) 
						&& (retString[1]>=48 && retString[1]<=57))
			isGoodInput=true;
		else
		{
			std::cout<<"Bad input! Please enter location [Letter][Number] of "
						<<"your desired move, with capital letters only:\n";
			std::getline(std::cin, retString);
		}
	}

	return retString;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x30(%rbp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x529d(%rip), %rdi      # 0x8fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %edx
movq 0x5282(%rip), %r14      # 0x8fe0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2210
movq 0x5260(%rip), %r15      # 0x8fd0
leaq 0x2583(%rip), %r12      # 0x62fa
leaq 0x25b2(%rip), %r13      # 0x6330
cmpq $0x2, 0x8(%rbx)
jne 0x3d9b
movq (%rbx), %rax
movb (%rax), %cl
addb $-0x41, %cl
cmpb $0x9, %cl
ja 0x3d9b
movb 0x1(%rax), %al
addb $-0x30, %al
cmpb $0xa, %al
jb 0x3ddf
movl $0x35, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2150
movl $0x2e, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x2150
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2210
jmp 0x3d7e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3df3
movq %rax, %r14
movq (%rbx), %rdi
movq -0x30(%rbp), %rax
cmpq %rax, %rdi
je 0x3e0d
movq (%rax), %rsi
incq %rsi
callq 0x2140
movq %r14, %rdi
callq 0x21f0
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Board.cpp
// Function: Board::Board()
Board::Board()
{
	for (int i=0; i<BOARD_DIM; i++)
		for (int j=0; j<BOARD_DIM; j++)
			gameBoard[i][j]=isWATER;

	for (int i=0; i<NUM_SHIPS; i++)
		shipVec.push_back(Ship(SHIP_LENGTHS[i], SHIP_NAMES[i]));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
leaq 0x68(%rdi), %rax
movq %rax, -0x30(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rdi)
movq $0x0, 0x78(%rdi)
movaps 0x2589(%rip), %xmm0     # 0x63d0
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movl $0x77777777, 0x60(%rdi) # imm = 0x77777777
xorl %ebx, %ebx
leaq 0x5432(%rip), %r13      # 0x92a0
leaq -0x50(%rbp), %r14
leaq -0x88(%rbp), %r15
leaq 0x25d0(%rip), %rax      # 0x6450
movl (%rbx,%rax), %r12d
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq (%r13,%rbx,8), %rsi
movq 0x8(%r13,%rbx,8), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x46c8
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x4bb8
movq -0x30(%rbp), %rdi
movq %r15, %rsi
callq 0x4766
movq %r15, %rdi
callq 0x4f28
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3edc
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2140
addq $0x4, %rbx
cmpq $0x14, %rbx
jne 0x3e79
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x3f27
movq %rax, %r14
jmp 0x3f0e
movq %rax, %r14
leaq -0x88(%rbp), %rdi
callq 0x4f28
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3f27
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2140
movq -0x30(%rbp), %rdi
callq 0x44d6
movq %r14, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Board.cpp
// Function: Board::Board(Board const&)
Board::Board(const Board &oldBoard)
{
	for (int i=0; i<BOARD_DIM; i++)
		for (int j=0; j<BOARD_DIM; j++)
			gameBoard[i][j]=oldBoard.gameBoard[i][j];
	shipVec = oldBoard.shipVec;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x68(%rdi), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rdi)
movq $0x0, 0x78(%rdi)
xorl %eax, %eax
movq %rsi, %rcx
xorl %edx, %edx
movb (%rcx,%rdx), %r8b
movb %r8b, (%rdi,%rdx)
incq %rdx
cmpq $0xa, %rdx
jne 0x3f59
incq %rax
addq $0xa, %rcx
addq $0xa, %rdi
cmpq $0xa, %rax
jne 0x3f57
addq $0x68, %rsi
movq %rbx, %rdi
callq 0x452c
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x44d6
movq %r14, %rdi
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Board.cpp
// Function: Board::operator=(Board const&)
Board& Board::operator=(const Board &right)
{
	if (this!=&right)
	{
		for (int i=0; i<BOARD_DIM; i++)
			for (int j=0; j<BOARD_DIM; j++)
				gameBoard[i][j]=right.gameBoard[i][j];
		shipVec = right.shipVec;
	}

	return *this;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq %rsi, %rdi
je 0x3fe7
xorl %eax, %eax
movq %rbx, %rcx
movq %rsi, %rdx
xorl %edi, %edi
movb (%rdx,%rdi), %r8b
movb %r8b, (%rcx,%rdi)
incq %rdi
cmpq $0xa, %rdi
jne 0x3fb8
incq %rax
addq $0xa, %rdx
addq $0xa, %rcx
cmpq $0xa, %rax
jne 0x3fb6
addq $0x68, %rsi
leaq 0x68(%rbx), %rdi
callq 0x452c
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Board.cpp
// Function: Board::getNumHits()
int Board::getNumHits()
{
	int count=0;

	for (int i=0; i<BOARD_DIM; i++)
		for (int j=0; j<BOARD_DIM; j++)
			if (gameBoard[i][j]==isHIT)
				count++;

	return count;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %ecx, %ecx
xorl %eax, %eax
movq $-0xa, %rdx
xorl %esi, %esi
cmpb $0x58, 0xa(%rdi,%rdx)
sete %sil
addl %esi, %eax
incq %rdx
jne 0x4001
incq %rcx
addq $0xa, %rdi
cmpq $0xa, %rcx
jne 0x3ffa
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Board.cpp
// Function: Board::printPrivateBoard()
void Board::printPrivateBoard()
{
	std::cout<<"  A B C D E F G H I J\n";
	for (int i=0; i<BOARD_DIM; i++)
	{
		std::cout<<i<<" ";
		for (int j=0; j<BOARD_DIM; j++)
		{
			if (gameBoard[i][j]==isHIT || gameBoard[i][j]==isMISS)
				std::cout<<gameBoard[i][j]<<" ";
			else // obfuscate non-hit/miss entries
				std::cout<<isUNKNOWN<<" ";
		}	
		std::cout<<std::endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x4f93(%rip), %r14      # 0x8fd0
leaq 0x239c(%rip), %rsi      # 0x63e0
movl $0x16, %edx
movq %r14, %rdi
callq 0x2150
xorl %esi, %esi
leaq 0x2077(%rip), %r12      # 0x60d1
leaq -0x29(%rbp), %r13
movq %r14, %rdi
movq %rsi, -0x38(%rbp)
callq 0x21e0
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
movq $-0xa, %r15
movzbl 0xa(%rbx,%r15), %eax
cmpl $0x58, %eax
je 0x4091
cmpl $0x4f, %eax
jne 0x40a1
movb %al, -0x29(%rbp)
movl $0x1, %edx
movq %r14, %rdi
movq %r13, %rsi
jmp 0x40b1
movb $0x3f, -0x2a(%rbp)
movl $0x1, %edx
movq %r14, %rdi
leaq -0x2a(%rbp), %rsi
callq 0x2150
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
incq %r15
jne 0x4081
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20b0
movq -0x38(%rbp), %rsi
incq %rsi
addq $0xa, %rbx
cmpq $0xa, %rsi
jne 0x405e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Board.cpp
// Function: Board::printPublicBoard()
void Board::printPublicBoard()
{
	std::cout<<"  A B C D E F G H I J\n";
	for (int i=0; i<BOARD_DIM; i++)
	{
		std::cout<<i<<" ";
		for (int j=0; j<BOARD_DIM; j++)
		{
			std::cout<<gameBoard[i][j]<<" ";
		}	
		std::cout<<std::endl;
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x4e9f(%rip), %r14      # 0x8fd0
leaq 0x22a8(%rip), %rsi      # 0x63e0
movl $0x16, %edx
movq %r14, %rdi
callq 0x2150
xorl %esi, %esi
leaq 0x1f83(%rip), %r12      # 0x60d1
leaq -0x29(%rbp), %r13
movq %r14, %rdi
movq %rsi, -0x38(%rbp)
callq 0x21e0
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
movq $-0xa, %r15
movb 0xa(%rbx,%r15), %al
movb %al, -0x29(%rbp)
movl $0x1, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x2150
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
incq %r15
jne 0x4175
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20b0
movq -0x38(%rbp), %rsi
incq %rsi
addq $0xa, %rbx
cmpq $0xa, %rsi
jne 0x4152
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Board.cpp
// Function: Board::recordHit(int, int)
bool Board::recordHit(int x, int y)
{
	for (int i=0; i<NUM_SHIPS; i++)
	{
		if (shipVec[i].recordHit(x, y))
		{
			gameBoard[y][x]=isHIT; //record the hit on the board
			//tell the user that they sunk a ship
			if (shipVec[i].isShipSunk()) 
				std::cout<<"You sunk the "<<shipVec[i].getName()<<"!\n";
			return true;
		}
	}
	gameBoard[y][x]=isMISS;
	return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %r14
movq 0x68(%rdi), %rdi
callq 0x5004
testb %al, %al
je 0x4234
movb $0x1, %bl
xorl %r13d, %r13d
jmp 0x4271
movq $-0x1, %r13
movl $0x38, %ebx
cmpq $0x3, %r13
je 0x4307
movq 0x68(%r14), %rdi
addq %rbx, %rdi
movl %r15d, %esi
movl %r12d, %edx
callq 0x5004
incq %r13
addq $0x38, %rbx
testb %al, %al
je 0x4240
cmpq $0x4, %r13
setb %bl
incq %r13
movslq %r12d, %rax
movslq %r15d, %rcx
leaq (%rax,%rax,4), %rax
leaq (%r14,%rax,2), %rax
movb $0x58, (%rcx,%rax)
imulq $0x38, %r13, %r15
movq 0x68(%r14), %rdi
addq %r15, %rdi
callq 0x4e40
testb %al, %al
je 0x431b
movq 0x4d2e(%rip), %r12      # 0x8fd0
leaq 0x214e(%rip), %rsi      # 0x63f7
movl $0xd, %edx
movq %r12, %rdi
callq 0x2150
addq 0x68(%r14), %r15
leaq -0x48(%rbp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x4dfe
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r12, %rdi
callq 0x2150
leaq 0x2126(%rip), %rsi      # 0x6405
movl $0x2, %edx
movq %rax, %rdi
callq 0x2150
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x431b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x431b
movslq %r12d, %rax
movslq %r15d, %rcx
leaq (%rax,%rax,4), %rax
leaq (%r14,%rax,2), %rax
movb $0x4f, (%rcx,%rax)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4348
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Ship.cpp
// Function: Ship::Ship(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Ship::Ship(int size, std::string n)
{
	shipSize=size;
	name = n;
	shipSquares=new char[shipSize];
	for (int i=0; i<shipSize; i++)
		shipSquares[i]=isSAFESHIP; //initialize all ship squares to '_', no hit
	xpos=-1; //indicates that the ship has not been placed yet
	ypos=-1; //indicates that the ship has not been placed yet
	isSunk=false; //since ship is new, it is not yet sunk
	isHorizontal=true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
leaq 0x28(%rdi), %r15
movq %r15, 0x18(%rdi)
movq $0x0, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
movl %esi, 0x8(%rdi)
movq %r14, %rdi
movq %rdx, %rsi
callq 0x20a0
movl 0x8(%rbx), %r12d
movslq %r12d, %rdi
callq 0x2030
movq %rax, (%rbx)
testl %r12d, %r12d
jle 0x4c15
xorl %eax, %eax
movq (%rbx), %rcx
movb $0x5f, (%rcx,%rax)
incq %rax
movslq 0x8(%rbx), %rcx
cmpq %rcx, %rax
jl 0x4c02
movq $-0x1, 0xc(%rbx)
movw $0x100, 0x14(%rbx)      # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x4c42
movq (%r15), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Ship.cpp
// Function: Ship::Ship(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int, bool, bool)
Ship::Ship(int size, std::string n, int x, int y, bool s, bool h)
{
	shipSize=size;
	name = n;
	shipSquares=new char[shipSize];
	for (int i=0; i<shipSize; i++)
		shipSquares[i]=isSAFESHIP; //initialize all ship squares to '_', no hit
	xpos=x; 
	ypos=y;
	isSunk=s; 
	isHorizontal=h;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, -0x30(%rbp)
movl %r8d, -0x2c(%rbp)
movl %ecx, %r12d
movq %rdi, %r15
leaq 0x18(%rdi), %r13
leaq 0x28(%rdi), %rbx
movq %rbx, 0x18(%rdi)
movq $0x0, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
movl %esi, 0x8(%rdi)
movq %r13, %rdi
movq %rdx, %rsi
callq 0x20a0
movl 0x8(%r15), %r14d
movslq %r14d, %rdi
callq 0x2030
movb 0x10(%rbp), %cl
movq %rax, (%r15)
testl %r14d, %r14d
jle 0x4cb8
xorl %eax, %eax
movq (%r15), %rdx
movb $0x5f, (%rdx,%rax)
incq %rax
movslq 0x8(%r15), %rdx
cmpq %rdx, %rax
jl 0x4ca5
movl %r12d, 0xc(%r15)
movl -0x2c(%rbp), %eax
movl %eax, 0x10(%r15)
movl -0x30(%rbp), %eax
movb %al, 0x14(%r15)
movb %cl, 0x15(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%r13), %rdi
cmpq %rbx, %rdi
je 0x4cf4
movq (%rbx), %rsi
incq %rsi
callq 0x2140
movq %r14, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Ship.cpp
// Function: Ship::Ship(Ship const&)
Ship::Ship(const Ship &oldShip)
{
	shipSize=oldShip.getSize();
	name = oldShip.getName();
	shipSquares=new char[shipSize];
	for (int i=0; i<shipSize; i++)
		shipSquares[i]=oldShip.shipSquares[i]; 
	xpos=oldShip.getX();
	ypos=oldShip.getY();
	isSunk=oldShip.isShipSunk();
	isHorizontal=oldShip.isShipHorizontal();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %r15
leaq 0x28(%rdi), %rax
movq %rax, -0x30(%rbp)
movq %rax, 0x18(%rdi)
movq $0x0, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
movl 0x8(%rsi), %eax
movl %eax, 0x8(%rdi)
leaq -0x40(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x18(%rsi), %rsi
movq 0x20(%r14), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x46c8
leaq -0x50(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x2180
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x4d75
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2140
movl 0x8(%rbx), %r12d
movslq %r12d, %rdi
callq 0x2030
movq %rax, (%rbx)
testl %r12d, %r12d
jle 0x4da3
xorl %eax, %eax
movq (%r14), %rcx
movb (%rcx,%rax), %cl
movq (%rbx), %rdx
movb %cl, (%rdx,%rax)
incq %rax
movslq 0x8(%rbx), %rcx
cmpq %rcx, %rax
jl 0x4d8b
movl 0xc(%r14), %eax
movl %eax, 0xc(%rbx)
movl 0x10(%r14), %eax
movl %eax, 0x10(%rbx)
movb 0x14(%r14), %al
movb %al, 0x14(%rbx)
movb 0x15(%r14), %al
movb %al, 0x15(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4dd0
movq %rax, %rbx
movq (%r15), %rdi
cmpq -0x30(%rbp), %rdi
je 0x4deb
movq -0x30(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Ship.cpp
// Function: Ship::operator=(Ship const&)
Ship& Ship::operator=(const Ship &right)
{
	if (this!=&right)
	{
		shipSize=right.getSize();
		name = right.getName();
		xpos=right.getX();
		ypos=right.getY();
		isSunk=right.isShipSunk();
		isHorizontal=right.isShipHorizontal();

		if (shipSize>0) // delete old memory before new memory
			delete [] shipSquares;
		shipSquares = new char[shipSize];
		for (int i=0; i<shipSize; i++)
			shipSquares[i]=right.shipSquares[i]; 


	}
	return *this;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
cmpq %rsi, %rdi
je 0x4f18
movq %rsi, %r14
movl 0x8(%rsi), %eax
movl %eax, 0x8(%rbx)
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x18(%rsi), %rsi
movq 0x20(%r14), %rdx
addq %rsi, %rdx
leaq -0x40(%rbp), %r15
movq %r15, %rdi
callq 0x46c8
leaq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0x2180
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x4eb8
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2140
movl 0xc(%r14), %eax
movl %eax, 0xc(%rbx)
movl 0x10(%r14), %eax
movl %eax, 0x10(%rbx)
movb 0x14(%r14), %al
movb %al, 0x14(%rbx)
movb 0x15(%r14), %al
movb %al, 0x15(%rbx)
movl 0x8(%rbx), %eax
testl %eax, %eax
jle 0x4eeb
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4eeb
callq 0x2190
movl 0x8(%rbx), %eax
movslq %eax, %r15
movq %r15, %rdi
callq 0x2030
movq %rax, (%rbx)
testl %r15d, %r15d
jle 0x4f18
xorl %eax, %eax
movq (%r14), %rcx
movb (%rcx,%rax), %cl
movq (%rbx), %rdx
movb %cl, (%rdx,%rax)
incq %rax
movslq 0x8(%rbx), %rcx
cmpq %rcx, %rax
jl 0x4f00
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Ship.cpp
// Function: Ship::printShip()
void Ship::printShip() 
{
	for (int i=0; i<shipSize; i++)
		cout<<shipSquares[i]<<" ";
	cout<<"\n";
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, 0x8(%rdi)
jle 0x4fdc
movq %rdi, %rbx
xorl %r13d, %r13d
movq 0x4035(%rip), %r14      # 0x8fd0
leaq -0x29(%rbp), %r15
leaq 0x112b(%rip), %r12      # 0x60d1
movq (%rbx), %rax
movb (%rax,%r13), %al
movb %al, -0x29(%rbp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2150
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
incq %r13
movslq 0x8(%rbx), %rax
cmpq %rax, %r13
jl 0x4fa6
movq 0x3fed(%rip), %rdi      # 0x8fd0
leaq 0x10b6(%rip), %rsi      # 0x60a0
movl $0x1, %edx
callq 0x2150
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Ship.cpp
// Function: Ship::recordHit(int, int)
bool Ship::recordHit(int hitLocX, int hitLocY)
{
	//check to make sure that the hit is located on the ship, return if not
	if ((isHorizontal & (hitLocX<xpos || hitLocX>=xpos+shipSize 
														|| hitLocY!=ypos))
		|| (!isHorizontal & (hitLocY<ypos || hitLocY>=ypos+shipSize 
														|| hitLocX!=xpos)))
		return false; //return false because it was not a hit
	else // if there is a hit, record it on the ship
	{
		if (isHorizontal) 
			shipSquares[hitLocX-xpos]=isHIT;
		else 
			shipSquares[hitLocY-ypos]=isHIT;
	}

	//determine whether the ship has been sunk
	isSunk=true;
	for (int i=0; i<shipSize; i++)
		if (shipSquares[i]==isSAFESHIP)
			isSunk=false;

	return true;
}

// Assembly:
movzbl 0x15(%rdi), %eax
movl 0xc(%rdi), %r8d
movl $0x1, %r9d
movl %esi, %ecx
subl %r8d, %ecx
jl 0x502f
movl 0x8(%rdi), %r10d
addl %r8d, %r10d
cmpl %esi, %r10d
jle 0x502f
xorl %r9d, %r9d
cmpl %edx, 0x10(%rdi)
setne %r9b
testl %eax, %r9d
je 0x5037
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movl %eax, %r10d
xorl $0x1, %r10d
movl 0x10(%rdi), %ebx
movl $0x1, %r11d
movl %edx, %r9d
subl %ebx, %r9d
jl 0x5065
addl 0x8(%rdi), %ebx
cmpl %edx, %ebx
jle 0x5065
xorl %r11d, %r11d
cmpl %r8d, %esi
setne %r11b
testl %r10d, %r11d
je 0x506e
xorl %eax, %eax
jmp 0x50a4
movq (%rdi), %rdx
testl %eax, %eax
cmovnel %ecx, %r9d
movslq %r9d, %rax
movb $0x58, (%rdx,%rax)
movb $0x1, 0x14(%rdi)
movslq 0x8(%rdi), %rcx
movb $0x1, %al
testq %rcx, %rcx
jle 0x50a4
movq (%rdi), %rdx
xorl %esi, %esi
cmpb $0x5f, (%rdx,%rsi)
jne 0x509c
movb $0x0, 0x14(%rdi)
incq %rsi
cmpq %rsi, %rcx
jne 0x5092
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/Player.cpp
// Function: Player::operator=(Player const&)
Player& Player::operator=(const Player &obj)
{
	if (this != &obj)
	{
		name = obj.name;
		isAutomaticPlayer = obj.isAutomaticPlayer;
		playerNumber = obj.playerNumber;
	}

	return *this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq %rsi, %rdi
je 0x51f4
movq %rsi, %r14
movq %rbx, %rdi
callq 0x20a0
movb 0x20(%r14), %al
movb %al, 0x20(%rbx)
movl 0x24(%r14), %eax
movl %eax, 0x24(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/utils.cpp
// Function: printMenu()
bool printMenu()
{
	Game g; 
	int cont;

	std::cout<<"Welcome to Battleship! Enter 1 or 2 to: \n1. Start a new game."
				<<"\n2. Quit.\n\n";
	cont = getInt(1,2);

	if (cont==1)
	{
		g.playGame();
		return true;
	}
	else 
		return false;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x150, %rsp            # imm = 0x150
leaq -0x160(%rbp), %rdi
callq 0x50a8
leaq -0x138(%rbp), %rdi
callq 0x3e18
leaq -0xb8(%rbp), %rdi
callq 0x50a8
leaq -0x90(%rbp), %rdi
callq 0x3e18
movq 0x3d2f(%rip), %rdi      # 0x8fd0
leaq 0x11bc(%rip), %rsi      # 0x6464
movl $0x3d, %edx
callq 0x2150
movq 0x3d17(%rip), %rdi      # 0x8fd0
leaq 0x11e2(%rip), %rsi      # 0x64a2
movl $0xb, %edx
callq 0x2150
movl $0x1, %edi
movl $0x2, %esi
callq 0x53cd
movl %eax, %ebx
cmpl $0x1, %eax
jne 0x52ec
leaq -0x160(%rbp), %rdi
callq 0x2b0c
leaq -0x28(%rbp), %r14
movq %r14, %rdi
callq 0x44d6
movq -0x90(%r14), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x531a
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2140
leaq -0xd0(%rbp), %r14
movq %r14, %rdi
callq 0x44d6
movq -0x90(%r14), %rdi
leaq -0x150(%rbp), %rax
cmpq %rax, %rdi
je 0x534b
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x2140
cmpl $0x1, %ebx
sete %al
addq $0x150, %rsp            # imm = 0x150
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0xa8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5384
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x5384
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x44d6
jmp 0x5395
movq %rax, %rbx
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x53c5
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x53c5
movq %rax, %rbx
leaq -0x160(%rbp), %rdi
callq 0x56dc
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/cb92[P]Battleship/utils.cpp
// Function: getString[abi:cxx11](int)
std::string getString(int maxLen)
{
	std::string retString;
	std::getline(std::cin, retString);
	while (retString.length()>maxLen)
	{
		std::cout<<"String too long! Please enter a string with <=";
		std::cout<<maxLen<<" characters:"<<std::endl;
		std::getline(std::cin, retString);
	}

	return retString;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, -0x2c(%rbp)
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x38(%rbp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x39fa(%rip), %rdi      # 0x8fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %edx
movq 0x39df(%rip), %r15      # 0x8fe0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2210
movslq -0x2c(%rbp), %r14
movq 0x39b9(%rip), %r12      # 0x8fd0
cmpq %r14, 0x8(%rbx)
jbe 0x56a6
movl $0x2e, %edx
movq %r12, %rdi
leaq 0xeb0(%rip), %rsi       # 0x64e0
callq 0x2150
movq %r12, %rdi
movl -0x2c(%rbp), %esi
callq 0x21e0
movq %rax, %r13
movl $0xc, %edx
movq %rax, %rdi
leaq 0xebd(%rip), %rsi       # 0x650f
callq 0x2150
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20b0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2210
jmp 0x5617
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x56ba
movq %rax, %r14
movq (%rbx), %rdi
movq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x56d4
movq (%rax), %rsi
incq %rsi
callq 0x2140
movq %r14, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O3/lolonet[P]Timer/main.cpp
// Function: main
int main(int argc, char *argv[])
{
	const int epfd = epoll_create(1);
	epoll_event events[1] = {};

	TimerContraller timeCtl;
	Timer timer(&timeCtl);
	timer.StartTimer(100, 3, timeoutNotify);
	timer.StartTimer(101, 6, timeoutNotify);
	timer.StartTimer(102, 4, otherTimeoutNotify);

	const int minEpollTime = 1000;			// 1000 msec
	while(true)
	{
		epoll_wait(epfd, events, sizeof(events)/sizeof(epoll_event), minEpollTime);
		timeCtl.CheckExpire();

		cout<<" contral list " << timeCtl.GetTimerListSize() <<" contral queue " << timeCtl.GetTimerQueueSize() <<endl;

	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl $0x1, %edi
callq 0x21e0
movl %eax, %ebx
xorl %r15d, %r15d
movl %r15d, -0x30(%rbp)
movq %r15, -0x38(%rbp)
leaq -0xb8(%rbp), %rax
movl %r15d, (%rax)
movq %r15, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
leaq -0xc0(%rbp), %r14
movq %r14, %rdi
callq 0x266a
leaq -0x68(%rbp), %rax
movl %r15d, (%rax)
movq %r15, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %r15, 0x20(%rax)
movq %r14, 0x28(%rax)
leaq -0x1c3(%rip), %rcx      # 0x236c
leaq -0x70(%rbp), %rdi
movl $0x64, %esi
movl $0x3, %edx
callq 0x2aac
leaq -0x1dd(%rip), %rcx      # 0x236c
leaq -0x70(%rbp), %rdi
movl $0x65, %esi
movl $0x6, %edx
callq 0x2aac
leaq -0x110(%rip), %rcx      # 0x2453
leaq -0x70(%rbp), %rdi
movl $0x66, %esi
movl $0x4, %edx
callq 0x2aac
leaq -0xc0(%rbp), %r15
movq 0x3a54(%rip), %r12      # 0x5fd8
leaq 0x1ad4(%rip), %r14      # 0x405f
movl %ebx, %edi
leaq -0x38(%rbp), %rsi
movl $0x1, %edx
movl $0x3e8, %ecx            # imm = 0x3E8
callq 0x2090
movq %r15, %rdi
callq 0x2b1e
movl $0xe, %edx
movq %r12, %rdi
leaq 0x1a99(%rip), %rsi      # 0x4050
callq 0x2140
movq %r15, %rdi
callq 0x2c50
movq %r12, %rdi
movl %eax, %esi
callq 0x21c0
movq %rax, %r13
movl $0xf, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2140
movq %r15, %rdi
callq 0x2c5a
movq %r13, %rdi
movl %eax, %esi
callq 0x21c0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
jmp 0x258b
jmp 0x2624
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x2744
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x2648
movq -0x80(%rbp), %rsi
subq %rdi, %rsi
callq 0x2120
leaq -0xc0(%rbp), %rdi
callq 0x272c
movq %rbx, %rdi
callq 0x21d0
// File: /workspace/github_cpp_makefile_star2_O3/lolonet[P]Timer/Timer.cpp
// Function: TimerContraller::DeleteTimer(TimerObject*)
int TimerContraller::DeleteTimer(TimerObject *pTimerObj)
{
	const int64 timeout = TimerContraller::TransToTimeStamp(pTimerObj->GetTimeOut());
	map<int64, list<TimerObject*> >::iterator itList = m_SameTimerList.find(timeout);
	if (itList == m_SameTimerList.end())
		return 0;

	list<TimerObject*> &timeList = m_SameTimerList[timeout];
	list<TimerObject*>::iterator it = std::find(timeList.begin(), timeList.end(), pTimerObj);
	if (it != timeList.end())
		timeList.erase(it);

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movslq 0x4(%rsi), %r12
xorps %xmm0, %xmm0
leaq -0x30(%rbp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
xorl %esi, %esi
callq 0x2180
movq 0x8(%r15), %rcx
movabsq $0x431bde82d7b634db, %rdx # imm = 0x431BDE82D7B634DB
movq %rcx, %rax
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
imulq $0xf4240, %rdx, %rax    # imm = 0xF4240
subq %rax, %rcx
addq (%r15), %r12
imulq $0xf4240, %r12, %rax    # imm = 0xF4240
addq %rcx, %rax
movq %rax, (%r15)
movq 0x10(%r14), %rcx
testq %rcx, %rcx
je 0x28a6
leaq 0x8(%r14), %rsi
movq %rsi, %rdx
xorl %edi, %edi
cmpq %rax, 0x20(%rcx)
setl %dil
cmovgeq %rcx, %rdx
movq 0x10(%rcx,%rdi,8), %rcx
testq %rcx, %rcx
jne 0x2846
cmpq %rsi, %rdx
je 0x28a6
cmpq 0x20(%rdx), %rax
jl 0x28a6
leaq -0x30(%rbp), %rsi
movq %r14, %rdi
callq 0x2d4c
movq (%rax), %r14
cmpq %rax, %r14
je 0x2888
cmpq %rbx, 0x10(%r14)
je 0x2888
movq (%r14), %r14
jmp 0x2878
cmpq %rax, %r14
je 0x28a6
decq 0x10(%rax)
movq %r14, %rdi
callq 0x21a0
movl $0x18, %esi
movq %r14, %rdi
callq 0x2120
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/lolonet[P]Timer/Timer.cpp
// Function: TimerObject::StartTimer(int, int (*)(int))
int TimerObject::StartTimer(int timeout, TimerCallback *func)
{
	if (func == NULL || m_pTimer == NULL || m_pTimer->m_pTimeContraller == NULL)
		return -1;

	this->m_timeout = timeout;
	this->m_func = func;
	// 向 timeout epoll 注册定时器， 将this 添加到全局最小堆结构
	m_pTimer->m_pTimeContraller->RegisterTimer(this);
	return 0;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rdx, %rdx
je 0x28eb
movq %rdi, %rcx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x28eb
movq 0x30(%rdi), %rdi
testq %rdi, %rdi
je 0x28eb
pushq %rbp
movq %rsp, %rbp
movl %esi, 0x4(%rcx)
movq %rdx, 0x8(%rcx)
movq %rcx, %rsi
callq 0x28ec
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/lolonet[P]Timer/Timer.cpp
// Function: TimerContraller::RegisterTimer(TimerObject*)
int TimerContraller::RegisterTimer(TimerObject *pTimerObj)
{
	if (pTimerObj == NULL)
		return -1;

	const int64 timeout = TimerContraller::TransToTimeStamp(pTimerObj->GetTimeOut());
	m_TimerQueue.push(timeout);
	m_SameTimerList[timeout].push_back(pTimerObj);
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rsi, %rsi
je 0x29a0
movq %rsi, %r14
movq %rdi, %r15
movslq 0x4(%rsi), %r13
xorps %xmm0, %xmm0
leaq -0x40(%rbp), %r12
movaps %xmm0, (%r12)
xorl %ebx, %ebx
movq %r12, %rdi
xorl %esi, %esi
callq 0x2180
movq 0x8(%r12), %rcx
movabsq $0x431bde82d7b634db, %rdx # imm = 0x431BDE82D7B634DB
movq %rcx, %rax
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
imulq $0xf4240, %rdx, %rax    # imm = 0xF4240
subq %rax, %rcx
addq (%r12), %r13
imulq $0xf4240, %r13, %rax    # imm = 0xF4240
addq %rcx, %rax
movq %rax, (%r12)
leaq 0x30(%r15), %rdi
movq %r12, %rsi
callq 0x2cd4
movq %r15, %rdi
movq %r12, %rsi
callq 0x2d4c
movq %rax, %r15
movl $0x18, %edi
callq 0x2110
movq %r14, 0x10(%rax)
movq %rax, %rdi
movq %r15, %rsi
callq 0x2040
incq 0x10(%r15)
jmp 0x29a5
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/lolonet[P]Timer/Timer.cpp
// Function: Timer::GetTimerObj(int)
TimerObject* Timer::GetTimerObj(int timeid)
{
	map<int, TimerObject*>::iterator itObj = m_timerMap.find(timeid);
	if (itObj != m_timerMap.end() && itObj->second != NULL)
		return itObj->second;

	TimerObject *pTimeObj = new TimerObject(this, timeid);
	m_timerMap[timeid] = pTimeObj;
	return pTimeObj;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movl %esi, -0x1c(%rbp)
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x2a7b
leaq 0x8(%rbx), %rdx
movq %rdx, %rax
xorl %esi, %esi
cmpl %r14d, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x2a4f
cmpq %rdx, %rax
je 0x2a7b
cmpl %r14d, 0x20(%rax)
jg 0x2a7b
movq 0x28(%rax), %r15
testq %r15, %r15
jne 0x2a9e
movl $0x18, %edi
callq 0x2110
movq %rax, %r15
movl %r14d, (%rax)
movq %rbx, 0x10(%rax)
leaq -0x1c(%rbp), %rsi
movq %rbx, %rdi
callq 0x2c6c
movq %r15, (%rax)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq