LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
movq %rsi, %rbx
xorl %r12d, %r12d
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 0x420a
cmpb $0x58, %al
je 0x368e
movq %rbx, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x420a
cmpb $0x4f, %al
je 0x368e
movq %rbx, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x4222
movb $0x1, %r12b
testb $0x1, %r12b
je 0x3611
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x520c
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x5901(%rip), %rbx      # 0x8fd0
movq %rbx, %rdi
callq 0x2150
leaq 0x2a85(%rip), %rsi      # 0x6163
movl $0x10, %edx
movq %rax, %rdi
callq 0x2150
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3704
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2140
movq %r15, %rdi
callq 0x5242
movl %eax, %r15d
leaq 0x2a5e(%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 0x2a42(%rip), %r15      # 0x6182
cmoveq %rax, %r14
callq 0x4132
movl $0x18, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2150
movq %r14, %rdi
callq 0x403e
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 0x37d9
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
xorl %r12d, %r12d
subl $0x1, %r14d
jb 0x382d
movl $0x32, %edx
movq 0x57af(%rip), %rdi      # 0x8fd0
leaq 0x2a66(%rip), %rsi      # 0x628e
callq 0x2150
movl $0x38, %edx
movq 0x5797(%rip), %rdi      # 0x8fd0
leaq 0x2a81(%rip), %rsi      # 0x62c1
callq 0x2150
leaq -0x68(%rbp), %r15
movq %r15, %rdi
callq 0x3d24
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x2180
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x3876
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 0x420a
cmpb $0x58, %al
je 0x38c0
movq %rbx, %rdi
movl %r15d, %esi
movl %r13d, %edx
callq 0x420a
cmpb $0x4f, %al
je 0x38c0
movb $0x1, %r12b
movq %rbx, %rdi
movl %r15d, %esi
movl %r13d, %edx
callq 0x4222
testb $0x1, %r12b
je 0x380f
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x38e3
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 0x38f4
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x48(%rbp), %rdi
cmpq %rax, %rdi
je 0x3910
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x569c(%rip), %r14      # 0x8fd0
movq %r14, %rdi
movq %rax, %rsi
callq 0x2150
leaq 0x2a19(%rip), %rsi      # 0x635f
movl $0x22, %edx
movq %rax, %rdi
callq 0x2150
movq 0x5686(%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 0x563f(%rip), %rdi      # 0x8fd0
callq 0x2150
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x39ab
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x2140
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x5617(%rip), %rbx      # 0x8fd0
movq %rbx, %rdi
callq 0x2150
leaq 0x29ba(%rip), %rsi      # 0x6382
movl $0x21, %edx
movq %rax, %rdi
callq 0x2150
movq 0x5604(%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 0x55c2(%rip), %rdi      # 0x8fd0
callq 0x2150
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x3a28
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x2140
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x3a35
jmp 0x3a4f
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x3a52
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x3a52
movq %rax, %rbx
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4386
testb %al, %al
je 0x3a71
incl %r15d
cmpl $0x5, %r15d
jne 0x3a71
testb %r14b, %r14b
je 0x3b15
movq 0x54e2(%rip), %rdi      # 0x8fd0
leaq 0x2782(%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 0x4132
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x528d(%rip), %rdi      # 0x8fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %edx
movq 0x5272(%rip), %r14      # 0x8fe0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2210
xorl %r12d, %r12d
movq 0x524d(%rip), %r15      # 0x8fd0
leaq 0x25a6(%rip), %r13      # 0x6330
cmpq $0x2, 0x8(%rbx)
jne 0x3dab
movq (%rbx), %rax
movb (%rax), %cl
addb $-0x41, %cl
cmpb $0x9, %cl
ja 0x3dab
movb 0x1(%rax), %cl
addb $-0x30, %cl
movb $0x1, %al
cmpb $0xa, %cl
jb 0x3df4
movl $0x35, %edx
movq %r15, %rdi
leaq 0x2540(%rip), %rsi      # 0x62fa
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
movb %r12b, %al
movl %eax, %r12d
testb $0x1, %al
je 0x3d8a
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3e0f
movq %rax, %r14
movq (%rbx), %rdi
movq -0x30(%rbp), %rax
cmpq %rax, %rdi
je 0x3e29
movq (%rax), %rsi
incq %rsi
callq 0x2140
movq %r14, %rdi
callq 0x21f0
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/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 0x256d(%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 0x5416(%rip), %r13      # 0x92a0
leaq -0x50(%rbp), %r14
leaq -0x88(%rbp), %r15
leaq 0x25b4(%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 0x46fc
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x4bd0
movq -0x30(%rbp), %rdi
movq %r15, %rsi
callq 0x4796
movq %r15, %rdi
callq 0x4f38
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3ef8
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2140
addq $0x4, %rbx
cmpq $0x14, %rbx
jne 0x3e95
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x3f43
movq %rax, %r14
jmp 0x3f2a
movq %rax, %r14
leaq -0x88(%rbp), %rdi
callq 0x4f38
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3f43
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2140
movq -0x30(%rbp), %rdi
callq 0x4534
movq %r14, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3f75
incq %rax
addq $0xa, %rcx
addq $0xa, %rdi
cmpq $0xa, %rax
jne 0x3f73
addq $0x68, %rsi
movq %rbx, %rdi
callq 0x4584
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x4534
movq %r14, %rdi
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4003
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 0x3fd4
incq %rax
addq $0xa, %rdx
addq $0xa, %rcx
cmpq $0xa, %rax
jne 0x3fd2
addq $0x68, %rsi
leaq 0x68(%rbx), %rdi
callq 0x4584
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x401d
incq %rcx
addq $0xa, %rdi
cmpq $0xa, %rcx
jne 0x4016
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4f77(%rip), %r14      # 0x8fd0
leaq 0x2380(%rip), %rsi      # 0x63e0
movl $0x16, %edx
movq %r14, %rdi
callq 0x2150
xorl %esi, %esi
leaq 0x205b(%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 0x40ad
cmpl $0x4f, %eax
jne 0x40bd
movb %al, -0x29(%rbp)
movl $0x1, %edx
movq %r14, %rdi
movq %r13, %rsi
jmp 0x40cd
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 0x409d
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 0x407a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4e83(%rip), %r14      # 0x8fd0
leaq 0x228c(%rip), %rsi      # 0x63e0
movl $0x16, %edx
movq %r14, %rdi
callq 0x2150
xorl %esi, %esi
leaq 0x1f67(%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 0x4191
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 0x416e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x38, %rsp
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %rbx
movq 0x68(%rdi), %rdi
callq 0x5014
movslq %r14d, %rcx
movq %rcx, -0x38(%rbp)
movslq %r15d, %r12
testb %al, %al
je 0x425b
movb $0x1, %r14b
xorl %r13d, %r13d
jmp 0x429f
movq %r12, -0x30(%rbp)
movl $0x38, %r12d
xorl %r13d, %r13d
cmpq $0x4, %r13
je 0x4337
movq 0x68(%rbx), %rdi
addq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x5014
addq $0x38, %r12
incq %r13
testb %al, %al
je 0x4268
leaq -0x1(%r13), %rax
cmpq $0x4, %rax
setb %r14b
movq -0x30(%rbp), %r12
movq -0x38(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq (%rbx,%rax,2), %rax
movb $0x58, (%r12,%rax)
imulq $0x38, %r13, %r15
movq 0x68(%rbx), %rdi
addq %r15, %rdi
callq 0x4e52
testb %al, %al
je 0x4330
movq 0x4d05(%rip), %rdi      # 0x8fd0
leaq 0x2125(%rip), %rsi      # 0x63f7
movl $0xd, %edx
callq 0x2150
addq 0x68(%rbx), %r15
leaq -0x58(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x4e10
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq 0x4cd2(%rip), %rdi      # 0x8fd0
callq 0x2150
leaq 0x20fb(%rip), %rsi      # 0x6405
movl $0x2, %edx
movq %rax, %rdi
callq 0x2150
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4330
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2140
testb %r14b, %r14b
je 0x433f
jmp 0x4350
setb %r14b
movq -0x30(%rbp), %r12
movq -0x38(%rbp), %rax
leaq (%rax,%rax,4), %rax
leaq (%rbx,%rax,2), %rax
movb $0x4f, (%r12,%rax)
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x437e
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
pushq %rax
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
movslq 0x8(%rbx), %rdi
callq 0x2030
movq %rax, (%rbx)
cmpl $0x0, 0x8(%rbx)
jle 0x4c2a
xorl %eax, %eax
movq (%rbx), %rcx
movb $0x5f, (%rcx,%rax)
incq %rax
movslq 0x8(%rbx), %rcx
cmpq %rcx, %rax
jl 0x4c17
movq $-0x1, 0xc(%rbx)
movw $0x100, 0x14(%rbx)      # imm = 0x100
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x4c59
movq (%r15), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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, -0x2c(%rbp)
movl %r8d, %r14d
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
movslq 0x8(%r15), %rdi
callq 0x2030
movb 0x10(%rbp), %cl
movq %rax, (%r15)
cmpl $0x0, 0x8(%r15)
jle 0x4cce
xorl %eax, %eax
movq (%r15), %rdx
movb $0x5f, (%rdx,%rax)
incq %rax
movslq 0x8(%r15), %rdx
cmpq %rdx, %rax
jl 0x4cbb
movl %r12d, 0xc(%r15)
movl %r14d, 0x10(%r15)
movl -0x2c(%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 0x4d07
movq (%rbx), %rsi
incq %rsi
callq 0x2140
movq %r14, %rdi
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x46fc
leaq -0x50(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x2180
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x4d89
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2140
movslq 0x8(%rbx), %rdi
callq 0x2030
movq %rax, (%rbx)
cmpl $0x0, 0x8(%rbx)
jle 0x4db5
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 0x4d9d
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 0x4de2
movq %rax, %rbx
movq (%r15), %rdi
cmpq -0x30(%rbp), %rdi
je 0x4dfd
movq -0x30(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2140
movq %rbx, %rdi
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4f27
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 0x46fc
leaq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0x2180
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x4eca
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)
cmpl $0x0, 0x8(%rbx)
jle 0x4ef9
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4ef9
callq 0x2190
movslq 0x8(%rbx), %r15
movq %r15, %rdi
callq 0x2030
movq %rax, (%rbx)
testq %r15, %r15
jle 0x4f27
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 0x4f0f
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/cb92[P]Battleship/Ship.cpp
// Function: Ship::setPosition(int, int, bool)
void Ship::setPosition(int x, int y, bool h)
{
	xpos=x;
	ypos=y;
	isHorizontal=h;
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %esi, 0xc(%rdi)
movl %edx, 0x10(%rdi)
movb %cl, 0x15(%rdi)
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4fec
movq %rdi, %rbx
xorl %r13d, %r13d
movq 0x4025(%rip), %r14      # 0x8fd0
leaq -0x29(%rbp), %r15
leaq 0x111b(%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 0x4fb6
movq 0x3fdd(%rip), %rdi      # 0x8fd0
leaq 0x10a6(%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_O1/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 0x503f
movl 0x8(%rdi), %r10d
addl %r8d, %r10d
cmpl %esi, %r10d
jle 0x503f
xorl %r9d, %r9d
cmpl %edx, 0x10(%rdi)
setne %r9b
testl %eax, %r9d
je 0x5047
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 0x5075
addl 0x8(%rdi), %ebx
cmpl %edx, %ebx
jle 0x5075
xorl %r11d, %r11d
cmpl %r8d, %esi
setne %r11b
testl %r10d, %r11d
je 0x507e
xorl %eax, %eax
jmp 0x50b4
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 0x50b4
movq (%rdi), %rdx
xorl %esi, %esi
cmpb $0x5f, (%rdx,%rsi)
jne 0x50ac
movb $0x0, 0x14(%rdi)
incq %rsi
cmpq %rsi, %rcx
jne 0x50a2
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5204
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_O1/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 0x50b8
leaq -0x138(%rbp), %rdi
callq 0x3e34
leaq -0xb8(%rbp), %rdi
callq 0x50b8
leaq -0x90(%rbp), %rdi
callq 0x3e34
movq 0x3d1f(%rip), %rdi      # 0x8fd0
leaq 0x11ac(%rip), %rsi      # 0x6464
movl $0x3d, %edx
callq 0x2150
movq 0x3d07(%rip), %rdi      # 0x8fd0
leaq 0x11d2(%rip), %rsi      # 0x64a2
movl $0xb, %edx
callq 0x2150
movl $0x1, %edi
movl $0x2, %esi
callq 0x53dd
movl %eax, %ebx
cmpl $0x1, %eax
jne 0x52fc
leaq -0x160(%rbp), %rdi
callq 0x2b0c
leaq -0x28(%rbp), %r14
movq %r14, %rdi
callq 0x4534
movq -0x90(%r14), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x532a
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2140
leaq -0xd0(%rbp), %r14
movq %r14, %rdi
callq 0x4534
movq -0x90(%r14), %rdi
leaq -0x150(%rbp), %rax
cmpq %rax, %rdi
je 0x535b
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 0x5394
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x5394
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x4534
jmp 0x53a5
movq %rax, %rbx
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x53d5
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x2140
jmp 0x53d5
movq %rax, %rbx
leaq -0x160(%rbp), %rdi
callq 0x570a
movq %rbx, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x39cd(%rip), %rdi      # 0x8fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %edx
movq 0x39b2(%rip), %r15      # 0x8fe0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2210
movslq -0x2c(%rbp), %r14
movq 0x398c(%rip), %r12      # 0x8fd0
cmpq %r14, 0x8(%rbx)
jbe 0x56d3
movl $0x2e, %edx
movq %r12, %rdi
leaq 0xe83(%rip), %rsi       # 0x64e0
callq 0x2150
movq %r12, %rdi
movl -0x2c(%rbp), %esi
callq 0x21e0
movq %rax, %r13
movl $0xc, %edx
movq %rax, %rdi
leaq 0xe90(%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 0x5644
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x56e7
movq %rax, %r14
movq (%rbx), %rdi
movq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x5701
movq (%rax), %rsi
incq %rsi
callq 0x2140
movq %r14, %rdi
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/lolonet[P]Timer/main.cpp
// Function: timeoutNotify(int)
int timeoutNotify(int timeid)
{
	cout<<" timeout id=" << timeid <<endl;
	switch(timeid)
	{
		case 100:
			cout<<" do time id 100" <<endl;
			break;
		case 101:
			cout<<" do time id 101" <<endl;
			break;

		default:
			cout<<" do time id " << timeid <<endl;
			break;

	}
	return timeid;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0x3c59(%rip), %r14      # 0x5fd8
leaq 0x1c7e(%rip), %rsi      # 0x4004
movl $0xc, %edx
movq %r14, %rdi
callq 0x2140
movq %r14, %rdi
movl %ebx, %esi
callq 0x21c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
cmpl $0x65, %ebx
je 0x23da
cmpl $0x64, %ebx
jne 0x23f7
leaq 0x1c39(%rip), %rsi      # 0x4011
jmp 0x23e8
movq 0x3bf7(%rip), %r14      # 0x5fd8
leaq 0x1c39(%rip), %rsi      # 0x4021
movl $0xf, %edx
movq %r14, %rdi
callq 0x2140
jmp 0x241f
movq 0x3bda(%rip), %r14      # 0x5fd8
leaq 0x1c2c(%rip), %rsi      # 0x4031
movl $0xc, %edx
movq %r14, %rdi
callq 0x2140
movq %r14, %rdi
movl %ebx, %esi
callq 0x21c0
movq %rax, %r14
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2adc
leaq -0x1dd(%rip), %rcx      # 0x236c
leaq -0x70(%rbp), %rdi
movl $0x65, %esi
movl $0x6, %edx
callq 0x2adc
leaq -0x110(%rip), %rcx      # 0x2453
leaq -0x70(%rbp), %rdi
movl $0x66, %esi
movl $0x4, %edx
callq 0x2adc
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 0x2b4e
movl $0xe, %edx
movq %r12, %rdi
leaq 0x1a99(%rip), %rsi      # 0x4050
callq 0x2140
movq %r15, %rdi
callq 0x2c78
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 0x2c82
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_O1/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
addq (%r15), %r12
subq %rax, %rcx
imulq $0xf4240, %r12, %rdx    # imm = 0xF4240
addq %rcx, %rdx
movq %rdx, (%r15)
movq 0x10(%r14), %rsi
leaq 0x8(%r14), %rax
movq %rax, %rcx
testq %rsi, %rsi
je 0x2861
movq %rax, %rcx
xorl %edi, %edi
cmpq %rdx, 0x20(%rsi)
setl %dil
cmovgeq %rsi, %rcx
movq 0x10(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
jne 0x2849
movq %rax, %rsi
cmpq %rax, %rcx
je 0x2874
cmpq 0x20(%rcx), %rdx
cmovlq %rax, %rcx
movq %rcx, %rsi
cmpq %rax, %rsi
je 0x28b6
leaq -0x30(%rbp), %rsi
movq %r14, %rdi
callq 0x2d7e
movq (%rax), %r14
cmpq %rax, %r14
je 0x2898
cmpq %rbx, 0x10(%r14)
je 0x2898
movq (%r14), %r14
jmp 0x2888
cmpq %rax, %r14
je 0x28b6
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_O1/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 0x28fb
movq %rdi, %rcx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x28fb
movq 0x30(%rdi), %rdi
testq %rdi, %rdi
je 0x28fb
pushq %rbp
movq %rsp, %rbp
movl %esi, 0x4(%rcx)
movq %rdx, 0x8(%rcx)
movq %rcx, %rsi
callq 0x28fc
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x29b0
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 0x2cfc
movq %r15, %rdi
movq %r12, %rsi
callq 0x2d7e
movq %rax, %r15
movl $0x18, %edi
callq 0x2110
movq %r14, 0x10(%rax)
movq %rax, %rdi
movq %r15, %rsi
callq 0x2040
incq 0x10(%r15)
jmp 0x29b5
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_O1/lolonet[P]Timer/Timer.cpp
// Function: Timer::StopTimer(int)
int Timer::StopTimer(int timeid)
{
	map<int, TimerObject*>::iterator it = m_timerMap.find(timeid);
	if (it != m_timerMap.end())
		m_timerMap.erase(it);
	
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rdi), %rax
leaq 0x8(%rdi), %rcx
movq %rcx, %rdx
testq %rax, %rax
je 0x2a17
movq %rcx, %rdx
xorl %r8d, %r8d
cmpl %esi, 0x20(%rax)
setl %r8b
cmovgeq %rax, %rdx
movq 0x10(%rax,%r8,8), %rax
testq %rax, %rax
jne 0x29ff
movq %rcx, %rax
cmpq %rcx, %rdx
je 0x2a29
cmpl %esi, 0x20(%rdx)
cmovgq %rcx, %rdx
movq %rdx, %rax
cmpq %rcx, %rax
je 0x2a36
movq %rax, %rsi
callq 0x3044
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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), %rdx
leaq 0x8(%rdi), %rax
movq %rax, %rcx
testq %rdx, %rdx
je 0x2a8a
movq %rax, %rcx
xorl %esi, %esi
cmpl %r14d, 0x20(%rdx)
setl %sil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x2a72
movq %rax, %rdx
cmpq %rax, %rcx
je 0x2a9d
cmpl %r14d, 0x20(%rcx)
cmovgq %rax, %rcx
movq %rcx, %rdx
cmpq %rax, %rdx
je 0x2aab
movq 0x28(%rdx), %r15
testq %r15, %r15
jne 0x2ace
movl $0x18, %edi
callq 0x2110
movq %rax, %r15
movl %r14d, (%rax)
movq %rbx, 0x10(%rax)
leaq -0x1c(%rbp), %rsi
movq %rbx, %rdi
callq 0x2c94
movq %r15, (%rax)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/lolonet[P]Timer/Timer.cpp
// Function: Timer::StartTimer(int, int, int (*)(int))
int Timer::StartTimer(int timeid, int timeout, TimerCallback *func)
{
	if (func == NULL)
		return -1;

	TimerObject *pTimeObj = this->GetTimerObj(timeid);
	pTimeObj->StopTimer();
	pTimeObj->StartTimer(timeout, func);
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rcx, %rcx
je 0x2b3b
movq %rcx, %rbx
movl %edx, %r14d
callq 0x2a4c
movq %rax, %r15
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x2b14
movq 0x30(%rax), %rdi
testq %rdi, %rdi
je 0x2b14
movq %r15, %rsi
callq 0x27cc
movq 0x10(%r15), %rax
xorl %r12d, %r12d
testq %rax, %rax
je 0x2b41
movq 0x30(%rax), %rdi
testq %rdi, %rdi
je 0x2b41
movl %r14d, 0x4(%r15)
movq %rbx, 0x8(%r15)
movq %r15, %rsi
callq 0x28fc
jmp 0x2b41
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/lolonet[P]Timer/Timer.cpp
// Function: TimerContraller::CheckExpire()
int TimerContraller::CheckExpire(void)
{
	const int64 now = TimerContraller::GetTimeStamp();

	while(!m_TimerQueue.empty())
	{
		const int64 minExpire = m_TimerQueue.top();
		if (minExpire > now)
			break;

		// time out 
		list<TimerObject*> &timeList = m_SameTimerList[minExpire];
		while(!timeList.empty())
		{
			TimerObject *pTimerObj = timeList.front();
			timeList.pop_front();
			pTimerObj->TimeOutNotify();
			delete pTimerObj;
		}

		m_SameTimerList.erase(minExpire);
		m_TimerQueue.pop();
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x2180
imulq $0xf4240, (%r14), %rcx  # imm = 0xF4240
movq 0x8(%r14), %rsi
movabsq $0x431bde82d7b634db, %rdx # imm = 0x431BDE82D7B634DB
movq %rsi, %rax
imulq %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
imulq $0xf4240, %rdx, %rax    # imm = 0xF4240
subq %rax, %rsi
addq %rcx, %rsi
leaq 0x30(%rbx), %rax
movq %rax, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
je 0x2c67
movq (%rax), %r15
movq %r15, -0x50(%rbp)
cmpq %rsi, %r15
jg 0x2c67
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2d7e
movq (%rax), %r14
cmpq %rax, %r14
je 0x2c37
movq %rax, %r13
movq 0x10(%r14), %r12
decq 0x10(%r13)
movq %r14, %rdi
callq 0x21a0
movl $0x18, %esi
movq %r14, %rdi
callq 0x2120
movl (%r12), %edi
callq *0x8(%r12)
movq 0x10(%r12), %rdi
movl (%r12), %esi
callq 0x29e8
movl $0x18, %esi
movq %r12, %rdi
callq 0x2120
movq (%r13), %r14
cmpq %r13, %r14
jne 0x2bed
movq %rbx, %rdi
leaq -0x50(%rbp), %r14
movq %r14, %rsi
callq 0x33f8
movq %rbx, %rdi
movq %rax, %rsi
callq 0x347a
movq -0x30(%rbp), %rdi
callq 0x2de8
movq -0x38(%rbp), %rsi
cmpq %rsi, %r15
jle 0x2bb9
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ctSkennerton[P]fxtract/util/bitmat_t.c
// Function: main
int
main(void)
{
    plan_tests(5);
    setvbuf(stdout, 0, _IOLBF, 0);
    int pts[] = { 1,3, 2,5, 4,0, 8,9, 5,20, 6,23, 10,10, 10,11, 10,12, 15,22, 13,23, -1 };
    
    dotest( 8,  8, pts);
    dotest( 8, 24, pts);
    dotest(16, 16, pts);
    dotest(16, 24, pts);
    dotest(24, 24, pts);
 
    return exit_status();
}

// Assembly:
pushq %rbx
movl $0x5, %edi
callq 0x54f6
movq 0x5a9a(%rip), %rax      # 0x8fc8
movq (%rax), %rdi
xorl %esi, %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x3030
leaq 0x2aca(%rip), %rbx      # 0x6010
movl $0x8, %edi
movl $0x8, %esi
movq %rbx, %rdx
callq 0x35a6
movl $0x8, %edi
movl $0x18, %esi
movq %rbx, %rdx
callq 0x35a6
movl $0x10, %edi
movl $0x10, %esi
movq %rbx, %rdx
callq 0x35a6
movl $0x10, %edi
movl $0x18, %esi
movq %rbx, %rdx
callq 0x35a6
movl $0x18, %edi
movl $0x18, %esi
movq %rbx, %rdx
callq 0x35a6
popq %rbx
jmp 0x579a