LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/oknenavin[P]cxon/examples/overriding-default-serializers.cxx
// Function: main
int main() {
    double d = 0.0;
        cxon::from_bytes(d, "0");
    assert(d == 42.);   // the override is used for double
    int i = 0;
        cxon::from_bytes(i, "42");
    assert(i == 42);    // the other types are intact
    float f = 0.0;
        cxon::from_bytes<CUSTOM_JSON>(f, "0");
    assert(f == 42.);   // the override is used for CUSTOM_JSON
    unsigned u = 0;
        cxon::from_bytes<CUSTOM_JSON>(u, "42");
    assert(u == 42);    // the other types are as in JSON<>
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
xorl %ebp, %ebp
leaq 0x4(%rsp), %r14
movl %ebp, (%r14)
leaq 0xe10(%rip), %r13       # 0x205b
leaq 0x8(%rsp), %r15
movq %r13, (%r15)
leaq 0x10(%rsp), %r12
movl %ebp, (%r12)
callq 0x1050
movq %rax, %rbx
movq %rax, 0x8(%r12)
leaq 0xdee(%rip), %rdx       # 0x205e
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rcx
callq 0x1350
cmpl %ebp, (%r12)
setne %cl
xorb %al, %cl
je 0x12db
cmpl $0x2a, 0x4(%rsp)
jne 0x12f2
xorl %ebp, %ebp
movq %rsp, %rdi
movl %ebp, (%rdi)
leaq 0x8(%rsp), %rsi
movq %r13, (%rsi)
leaq 0x10(%rsp), %r14
movl %ebp, (%r14)
movq %rbx, 0x8(%r14)
leaq 0xdac(%rip), %rdx       # 0x205e
movq %r14, %rcx
callq 0x15c0
cmpl %ebp, (%r14)
setne %cl
xorb %al, %cl
je 0x1311
cmpl $0x2a, (%rsp)
jne 0x1330
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd84(%rip), %rdi       # 0x2066
leaq 0xd8a(%rip), %rsi       # 0x2073
leaq 0xd98(%rip), %rcx       # 0x2088
jmp 0x1326
leaq 0xd5d(%rip), %rdi       # 0x2056
leaq 0xd28(%rip), %rsi       # 0x2028
leaq 0xd44(%rip), %rcx       # 0x204b
movl $0x27, %edx
callq 0x1070
leaq 0xd4e(%rip), %rdi       # 0x2066
leaq 0xd54(%rip), %rsi       # 0x2073
leaq 0xee2(%rip), %rcx       # 0x2208
movl $0xbd, %edx
callq 0x1070
leaq 0xd27(%rip), %rdi       # 0x205e
leaq 0xcea(%rip), %rsi       # 0x2028
leaq 0xd06(%rip), %rcx       # 0x204b
movl $0x2d, %edx
callq 0x1070
nop
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::newHand()
std::vector <ficha> newHand()
	{
		std::vector<ficha> playerHand;
		int x;

		for(int i = 0; i < 7; i++)
		{
			x = rand() % (int) forStole.size();

			playerHand.push_back(forStole[x]);

			forStole.erase(forStole.begin() + x);
		}

		return playerHand;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x7, %r15d
callq 0x2090
movq 0x18(%r14), %rcx
movq 0x20(%r14), %rsi
subq %rcx, %rsi
shrq $0x3, %rsi
cltd
idivl %esi
movslq %edx, %r12
leaq (%rcx,%r12,8), %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x49c6
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x49ce
movq %rbx, %rdi
callq 0x51a2
movq 0x18(%r14), %rax
movq 0x20(%r14), %rdx
leaq (%rax,%r12,8), %rsi
addq $0x8, %rsi
cmpq %rdx, %rsi
je 0x49ef
leaq (%rax,%r12,8), %rdi
subq %rsi, %rdx
callq 0x22f0
addq $-0x8, 0x20(%r14)
decl %r15d
jne 0x4991
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4a1c
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::emptyBoard()
void emptyBoard()
	{
		board.clear();
		forStole.clear();
		first = -1;
		last = -1;
		player1.socket = -1;
		player2.socket = -1;


		//"Amontonamos" las fichas para repartir y robar.
		ficha aux;

		for (int i = 0; i < 7; i++)
		{
			for (int j = i; j < 7; j++)
			{
				aux.left = i;
				aux.right = j;
				forStole.push_back(aux);
			}
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x4cbe
movq %rax, 0x8(%rbx)
movq 0x18(%rbx), %rax
cmpq %rax, 0x20(%rbx)
je 0x4ccc
movq %rax, 0x20(%rbx)
leaq 0x18(%rbx), %r14
movq $-0x1, 0x130(%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x94(%rbx)
movl %eax, 0x114(%rbx)
xorl %r12d, %r12d
leaq -0x30(%rbp), %r15
movl %r12d, %r13d
movl %r12d, -0x30(%rbp)
movl %r13d, -0x2c(%rbp)
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x4d16
movq -0x30(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x4d21
movq %r14, %rdi
movq %r15, %rdx
callq 0x51a2
incl %r13d
cmpl $0x7, %r13d
jne 0x4cf6
incl %r12d
cmpl $0x7, %r12d
jne 0x4cf3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::hasFicha(ficha, std::vector<ficha, std::allocator<ficha>>)
bool hasFicha(ficha f, std::vector<ficha> hand)
	{
		bool result = false;

		for (int i = 0; i < (int) hand.size(); ++i)
		{
			if(( hand[i].left == f.left ) and ( hand[i].right == f.right ))
				result = true;

			else if (( hand[i].left == f.right ) and ( hand[i].right == f.left ))
				result = true;
		}

		return result;
	}

// Assembly:
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
shrq $0x3, %rdx
testl %edx, %edx
jle 0x4da7
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rdi
shrq $0x20, %rdi
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
xorl %r8d, %r8d
movl $0x1, %r9d
xorl %eax, %eax
movl %eax, %r10d
movl (%rcx,%r8,8), %r11d
cmpl %esi, %r11d
jne 0x4d85
movb $0x1, %al
cmpl %edi, 0x4(%rcx,%r8,8)
je 0x4d9c
cmpl %edi, %r11d
jne 0x4d99
cmpl %esi, 0x4(%rcx,%r8,8)
movzbl %r10b, %eax
cmovel %r9d, %eax
jmp 0x4d9c
movl %r10d, %eax
incq %r8
cmpq %r8, %rdx
jne 0x4d70
popq %rbp
jmp 0x4da9
xorl %eax, %eax
andb $0x1, %al
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::stealPiece()
ficha stealPiece()
	{
		int x = rand() % (int) forStole.size();
		ficha stolenPiece = forStole[x];

		forStole.erase(forStole.begin() + x);

		return stolenPiece;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x2090
movq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rcx
movq %rcx, %rsi
subq %rdi, %rsi
shrq $0x3, %rsi
cltd
idivl %esi
movslq %edx, %rax
leaq (%rdi,%rax,8), %rsi
addq $0x8, %rsi
movq -0x8(%rsi), %r14
cmpq %rcx, %rsi
je 0x4df3
leaq (%rdi,%rax,8), %rdi
subq %rsi, %rcx
movq %rcx, %rdx
callq 0x22f0
addq $-0x8, 0x20(%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::addToHand(int, ficha)
bool addToHand(int i, ficha pieceToAdd)
	{
		if(i==getSocketP1())
		{
			player1.hand.push_back(pieceToAdd);
		}
		else if(i==getSocketP2())
		{
			player2.hand.push_back(pieceToAdd);
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdx, -0x8(%rbp)
cmpl %esi, 0x94(%rdi)
jne 0x4e24
addq $0x98, %rdi
leaq -0x8(%rbp), %rsi
callq 0x517e
addq $0x118, %rdi            # imm = 0x118
leaq -0x8(%rbp), %rsi
callq 0x517e
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::putInBoard(ficha)
bool putInBoard(ficha f)
	{
		//Estructura ficha auxiliar para "girar" la ficha
		ficha aux;
		bool inserted = false;

		if(isBoardEmpty())
		{
			setFirst(f.left);
			setLast(f.right);
			board.push_back(f);

			inserted = true;
		}

		//Se comprueba si la ficha se puede colocar en el extremo inicial.
		else if((first == f.left) or (first == f.right))
		{
			if( f.left == first )
			{
				setFirst(f.right);
				aux.left = f.right;
				aux.right = f.left;
				board.insert(board.begin(), aux);
			}

			else
			{
				setFirst(f.left);
				board.insert(board.begin(), f);
			}

			inserted = true;
		}

		//Si no, se comprueba si la ficha se puede colocar en el extremo final.
		else if((last == f.left) or (last == f.right))
		{
			if( f.left == last )
			{
				setLast(f.right);
				board.push_back(f);
			}

			else
			{
				setLast(f.left);
				aux.left = f.right;
				aux.right = f.left;
				board.push_back(aux);
			}

			inserted = true;
		}

		//Si no, se devuelve false (valor inicial de inserted)
		return inserted;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rsi, -0x8(%rbp)
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
cmpq %rsi, %rax
je 0x5387
movl 0x130(%rdi), %r8d
movl -0x8(%rbp), %ecx
cmpl %ecx, %r8d
jne 0x53ad
movl -0x4(%rbp), %esi
movl %esi, 0x130(%rdi)
leaq -0x10(%rbp), %rdx
movl %esi, (%rdx)
movl %ecx, 0x4(%rdx)
movq %rax, %rsi
callq 0x55a8
jmp 0x53f2
movl -0x8(%rbp), %eax
movl %eax, 0x130(%rdi)
movl -0x4(%rbp), %eax
movl %eax, 0x134(%rdi)
cmpq 0x10(%rdi), %rsi
je 0x53e9
movq -0x8(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x53f2
movl -0x4(%rbp), %edx
cmpl %edx, %r8d
jne 0x53c6
cmpl %ecx, %r8d
je 0x536b
movl %ecx, 0x130(%rdi)
leaq -0x8(%rbp), %rdx
jmp 0x537d
movl 0x134(%rdi), %eax
cmpl %ecx, %eax
setne %r8b
cmpl %edx, %eax
setne %r9b
testb %r9b, %r8b
jne 0x53fa
cmpl %ecx, %eax
jne 0x53fe
movl %edx, 0x134(%rdi)
jmp 0x5399
leaq -0x8(%rbp), %rdx
callq 0x51a2
movb $0x1, %al
addq $0x10, %rsp
popq %rbp
retq
xorl %eax, %eax
jmp 0x53f4
movl %ecx, 0x134(%rdi)
movl %edx, -0x10(%rbp)
movl %ecx, -0xc(%rbp)
cmpq 0x10(%rdi), %rsi
je 0x5416
movq -0x10(%rbp), %rax
jmp 0x53a3
leaq -0x10(%rbp), %rdx
jmp 0x53ed
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::quitPieceJ1(ficha)
void quitPieceJ1(ficha f)
	{
		bool erase = false;

		for (int i = 0; i < (int) player1.hand.size(); i++)
		{
			if (erase == false)
			{
				if(( player1.hand[i].left == f.left ) and ( player1.hand[i].right == f.right ))
				{
					player1.hand.erase(player1.hand.begin() + i);
					erase = true;
				}

				else if(( player1.hand[i].left == f.right ) and ( player1.hand[i].right == f.left ))
				{
					player1.hand.erase(player1.hand.begin() + i);
					erase = true;
				}
			}
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x98(%rdi), %rsi
movq 0xa0(%rdi), %rdx
movq %rdx, %rax
subq %rsi, %rax
shrq $0x3, %rax
testl %eax, %eax
jle 0x54d2
movq %rdi, %r14
movq %rbx, %r15
shrq $0x20, %r15
movl $0x8, %r12d
xorl %r13d, %r13d
xorl %eax, %eax
testb $0x1, %al
jne 0x54ab
leaq (%rsi,%r13,8), %rdi
movl (%rdi), %ecx
cmpl %ebx, %ecx
jne 0x5485
cmpl %r15d, 0x4(%rsi,%r13,8)
jne 0x5485
addq %r12, %rsi
cmpq %rdx, %rsi
je 0x54a1
leaq 0x8(%rdi), %rsi
jmp 0x5499
cmpl %r15d, %ecx
jne 0x54ab
cmpl %ebx, 0x4(%rsi,%r13,8)
jne 0x54ab
addq %r12, %rsi
cmpq %rdx, %rsi
je 0x54a1
subq %rsi, %rdx
callq 0x22f0
addq $-0x8, 0xa0(%r14)
movb $0x1, %al
incq %r13
movq 0x98(%r14), %rsi
movq 0xa0(%r14), %rdx
movq %rdx, %rcx
subq %rsi, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
addq $0x8, %r12
cmpq %rcx, %r13
jl 0x5462
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::quitPieceJ2(ficha)
void quitPieceJ2(ficha f)
	{
		bool erase = false;

		for (int i = 0; i < (int) player2.hand.size(); i++)
		{
			if (erase == false)
			{
				if(( player2.hand[i].left == f.left ) and ( player2.hand[i].right == f.right ))
				{
					player2.hand.erase(player2.hand.begin() + i);
					erase = true;
				}

				else if(( player2.hand[i].left == f.right ) and ( player2.hand[i].right == f.left ))
				{
					player2.hand.erase(player2.hand.begin() + i);
					erase = true;
				}
			}
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x118(%rdi), %rsi
movq 0x120(%rdi), %rdx
movq %rdx, %rax
subq %rsi, %rax
shrq $0x3, %rax
testl %eax, %eax
jle 0x5598
movq %rdi, %r14
movq %rbx, %r15
shrq $0x20, %r15
movl $0x8, %r12d
xorl %r13d, %r13d
xorl %eax, %eax
testb $0x1, %al
jne 0x5571
leaq (%rsi,%r13,8), %rdi
movl (%rdi), %ecx
cmpl %ebx, %ecx
jne 0x554b
cmpl %r15d, 0x4(%rsi,%r13,8)
jne 0x554b
addq %r12, %rsi
cmpq %rdx, %rsi
je 0x5567
leaq 0x8(%rdi), %rsi
jmp 0x555f
cmpl %r15d, %ecx
jne 0x5571
cmpl %ebx, 0x4(%rsi,%r13,8)
jne 0x5571
addq %r12, %rsi
cmpq %rdx, %rsi
je 0x5567
subq %rsi, %rdx
callq 0x22f0
addq $-0x8, 0x120(%r14)
movb $0x1, %al
incq %r13
movq 0x118(%r14), %rsi
movq 0x120(%r14), %rdx
movq %rdx, %rcx
subq %rsi, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
addq $0x8, %r12
cmpq %rcx, %r13
jl 0x5528
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::domino()
domino()
	{
		//Inicializador de numeros aleatorios.
		srand(time(NULL));

		first = -1;
		last = -1;
		board.clear();
		forStole.clear();
		player1.socket = -1;
		player2.socket = -1;

		//"Amontonamos" las fichas para repartir y robar.
		ficha aux;

		for (int i = 0; i < 7; i++)
		{
			for (int j = i; j < 7; j++)
			{
				aux.left = i;
				aux.right = j;

				forStole.push_back(aux);
			}
		}

	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x98(%rdi)
xorl %eax, %eax
movq %rax, 0xa8(%rdi)
movups %xmm0, 0x118(%rdi)
movq %rax, 0x128(%rdi)
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
xorl %edi, %edi
callq 0x21a0
movl %eax, %edi
callq 0x21d0
movq $-0x1, 0x130(%rbx)
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x5c36
movq %rax, 0x8(%rbx)
movq 0x18(%rbx), %rax
cmpq %rax, 0x20(%rbx)
je 0x5c44
movq %rax, 0x20(%rbx)
leaq 0x18(%rbx), %r14
leaq 0x98(%rbx), %rax
movq %rax, -0x38(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x94(%rbx)
movl %eax, 0x114(%rbx)
xorl %r15d, %r15d
leaq -0x30(%rbp), %r12
movl %r15d, %r13d
movl %r15d, -0x30(%rbp)
movl %r13d, -0x2c(%rbp)
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x5c8e
movq -0x30(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x5c99
movq %r14, %rdi
movq %r12, %rdx
callq 0x51a2
incl %r13d
cmpl $0x7, %r13d
jne 0x5c6e
incl %r15d
cmpl $0x7, %r15d
jne 0x5c6b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
leaq 0x28(%rbx), %r13
movq 0x118(%rbx), %rdi
testq %rdi, %rdi
je 0x5cdc
movq 0x128(%rbx), %rsi
subq %rdi, %rsi
callq 0x21f0
movq -0x38(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x23d1
movq %r12, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/message.cc
// Function: sendBoardAndHands(domino&)
void sendBoardAndHands(domino& game)
{
    char mensaje[MSG_SIZE];

    // Enviamos el tablero
    strcpy(mensaje, game.showBoard().c_str());
    sendBoth(game, mensaje);

    // Send hands
    strcpy(mensaje, game.messageHandP1().c_str());
    send(game.getSocketP1(), mensaje, strlen(mensaje), 0);

    strcpy(mensaje, game.messageHandP2().c_str());
    send(game.getSocketP2(), mensaje, strlen(mensaje), 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
movq %rdi, %rbx
leaq -0x40(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6774
movq (%r14), %r14
leaq -0x140(%rbp), %rdi
movq %r14, %rsi
callq 0x21b0
leaq -0x30(%rbp), %r12
cmpq %r12, %r14
je 0x6222
movq -0x30(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x21f0
leaq -0x140(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x617c
leaq -0x40(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6e76
movq (%r14), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x21b0
cmpq %r12, %r14
je 0x6265
movq -0x30(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x21f0
movl 0x94(%rbx), %r14d
movq %r15, %rdi
callq 0x2100
movl %r14d, %edi
movq %r15, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x2110
leaq -0x40(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7552
movq (%r14), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x21b0
cmpq %r12, %r14
je 0x62b5
movq -0x30(%rbp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x21f0
movl 0x114(%rbx), %ebx
leaq -0x140(%rbp), %r14
movq %r14, %rdi
callq 0x2100
movl %ebx, %edi
movq %r14, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x2110
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/message.cc
// Function: nextTurnMessage(int*, domino&)
void nextTurnMessage(int *i, domino& game)
{
    char mensaje[MSG_SIZE];

    //Se informa de paso de turno
    if(*i == game.getSocketP1()){
        strcpy(mensaje, "+Ok. Turno de partida.\n\n");
        send(game.getSocketP2(), mensaje, strlen(mensaje), 0);

        strcpy(mensaje, "+Ok. Turno del otro jugador.\n\n");
        send(game.getSocketP1(), mensaje, strlen(mensaje), 0);
    }
    else if (*i == game.getSocketP2()) {
        strcpy(mensaje, "+Ok. Turno de partida.\n\n");
        send(game.getSocketP1(), mensaje, strlen(mensaje), 0);

        strcpy(mensaje, "+Ok. Turno del otro jugador.\n\n");
        send(game.getSocketP2(), mensaje, strlen(mensaje), 0);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %rbx
movl (%rdi), %eax
movl 0x94(%rsi), %r14d
cmpl %r14d, %eax
jne 0x6336
movups 0x34f1(%rip), %xmm0     # 0x9802
movups %xmm0, -0x117(%rbp)
movups 0x34da(%rip), %xmm0     # 0x97f9
movaps %xmm0, -0x120(%rbp)
movl 0x114(%rbx), %r14d
addq $0x94, %rbx
jmp 0x6361
cmpl 0x114(%rbx), %eax
jne 0x63b0
addq $0x114, %rbx            # imm = 0x114
movups 0x34b6(%rip), %xmm0     # 0x9802
movups %xmm0, -0x117(%rbp)
movups 0x349f(%rip), %xmm0     # 0x97f9
movaps %xmm0, -0x120(%rbp)
leaq -0x120(%rbp), %r15
movq %r15, %rdi
callq 0x2100
movl %r14d, %edi
movq %r15, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x2110
movups 0x348b(%rip), %xmm0     # 0x9812
movaps %xmm0, (%r15)
movups 0x348f(%rip), %xmm0     # 0x9821
movups %xmm0, 0xf(%r15)
movl (%rbx), %ebx
movq %r15, %rdi
callq 0x2100
movl %ebx, %edi
movq %r15, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x2110
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/funcionesServer.cc
// Function: salirCliente(int, fd_set*, int*, std::vector<cliente, std::allocator<cliente>>&)
void salirCliente(int socket, fd_set * readfds, int * numClientes, std::vector<cliente> &arrayClientes){

    char buffer[250];
    int j;

    close(socket);
    FD_CLR(socket,readfds);

    //Re-estructurar el array de clientes
    for (j = 0; j < (*numClientes) - 1; j++)
        if (arrayClientes[j].sd == socket)
            break;
    for (; j < (*numClientes) - 1; j++)
        (arrayClientes[j] = arrayClientes[j+1]);

    (*numClientes)--;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r12
movl %edi, %r15d
callq 0x2380
movq $-0x2, %rax
movl %r15d, %ecx
rolq %cl, %rax
leal 0x3f(%r15), %ecx
testl %r15d, %r15d
cmovnsl %r15d, %ecx
sarl $0x6, %ecx
movslq %ecx, %rcx
andq %rax, (%r12,%rcx,8)
movl (%rbx), %eax
xorl %r12d, %r12d
cmpl $0x2, %eax
jl 0x7d34
decl %eax
movq (%r14), %rcx
movl %eax, %edx
xorl %r12d, %r12d
cmpl %r15d, (%rcx)
je 0x7d34
incq %r12
addq $0xd4, %rcx
cmpq %r12, %rdx
jne 0x7d1d
movl %eax, %r12d
movl (%rbx), %eax
decl %eax
cmpl %eax, %r12d
jge 0x7d70
movl %r12d, %eax
imulq $0xd4, %rax, %r15
movl $0xd4, %r13d
movq (%r14), %rdi
addq %r15, %rdi
leaq (%rdi,%r13), %rsi
movl $0xd4, %edx
callq 0x2160
movl (%rbx), %eax
decl %eax
addq %r13, %r15
incl %r12d
cmpl %r12d, %eax
jg 0x7d4d
movl %eax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/funcionesServer.cc
// Function: checkUser(char*)
bool checkUser(char buffer[])
{
	char user[100];
	char passwd[100];
	std::fstream dataFile;
	bool isUser = false;

	dataFile.open("Data-Clients.txt", std::fstream::in);

	// A la fuerza, cualquier cliente tendra que tener
	// un usuario y una contraseña para acceder al domino y,
	// por lo tanto en el fichero de datos deben aparecer ambos reflejados,
	// por lo que recorreremos el fichero guardando el valor
	// del nombre de usuario (user) y su password (passwd)

	while(!dataFile.eof())
	{
		dataFile >> user;
		dataFile >> passwd;

		if( strcmp(buffer, user) == 0 )
			isUser = true;
	}

	dataFile.close();

	return isUser;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq %rdi, %r14
leaq -0x238(%rbp), %rbx
movq %rbx, %rdi
callq 0x2240
leaq 0x1b4c(%rip), %rsi      # 0x991c
movq %rbx, %rdi
movl $0x8, %edx
callq 0x2190
movq -0x238(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x218(%rbp,%rax)
jne 0x7f44
xorl %ebx, %ebx
leaq -0x238(%rbp), %r15
leaq -0x310(%rbp), %r12
movq -0x228(%rbp,%rax), %r13
movl $0x64, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2320
movq -0x238(%rbp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, -0x218(%rbp,%rax)
jne 0x7e53
addq $-0x65, %r13
cmpq $-0x65, %r13
ja 0x7e53
movq -0x150(%rbp,%rax), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x7ede
movq -0x238(%rbp), %rax
movq -0x18(%rax), %rax
movq -0x228(%rbp,%rax), %r13
movl $0x64, %edx
movq %r15, %rdi
leaq -0x2a0(%rbp), %rsi
callq 0x2320
movq -0x238(%rbp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, -0x218(%rbp,%rax)
jne 0x7eab
addq $-0x65, %r13
cmpq $-0x65, %r13
ja 0x7eab
movq -0x150(%rbp,%rax), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x7f13
movq %r14, %rdi
movq %r12, %rsi
callq 0x2280
testl %eax, %eax
movzbl %bl, %ebx
movl $0x1, %eax
cmovel %eax, %ebx
movq -0x238(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x218(%rbp,%rax)
je 0x7e06
jmp 0x7f46
movq (%rdi), %rax
callq *0x48(%rax)
cmpl $-0x1, %eax
jne 0x7e53
movq -0x238(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x238, %rdi           # imm = 0xFDC8
movl 0x20(%rdi), %esi
orl $0x2, %esi
callq 0x2310
jmp 0x7e53
movq (%rdi), %rax
callq *0x48(%rax)
cmpl $-0x1, %eax
jne 0x7eab
movq -0x238(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x238, %rdi           # imm = 0xFDC8
movl 0x20(%rdi), %esi
orl $0x2, %esi
callq 0x2310
jmp 0x7eab
xorl %ebx, %ebx
leaq -0x238(%rbp), %rdi
callq 0x2040
leaq -0x238(%rbp), %rdi
callq 0x2070
andb $0x1, %bl
movl %ebx, %eax
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7f77
movq %rax, %rbx
leaq -0x238(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/funcionesServer.cc
// Function: registerUser(char*, char*)
bool registerUser(char rUser[], char rPasswd[])
{
	bool registerCompleted = false;
	std::fstream dataFile;

	if(!checkUser(rUser))
	{
		dataFile.open("Data-Clients.txt", std::fstream::out | std::fstream::app);
		dataFile << rUser << " " << rPasswd << "\n";
		dataFile.close();
		registerCompleted = true;
	}

	return registerCompleted;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x210, %rsp            # imm = 0x210
movq %rsi, %r14
movq %rdi, %r12
leaq -0x230(%rbp), %rdi
callq 0x2240
movq %r12, %rdi
callq 0x7da3
movl %eax, %ebx
testb %al, %al
jne 0x808d
leaq 0x1951(%rip), %rsi      # 0x991c
leaq -0x230(%rbp), %rdi
movl $0x11, %edx
callq 0x2190
leaq -0x220(%rbp), %r15
testq %r12, %r12
je 0x8000
movq %r12, %rdi
callq 0x2100
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2220
jmp 0x801e
movq -0x220(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%r15,%rax), %rdi
movl -0x200(%rbp,%rax), %esi
orl $0x1, %esi
callq 0x2310
leaq 0x1447(%rip), %rsi      # 0x946c
movl $0x1, %edx
movq %r15, %rdi
callq 0x2220
testq %r14, %r14
je 0x804f
movq %r14, %rdi
callq 0x2100
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x2220
jmp 0x806d
movq -0x220(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%r15,%rax), %rdi
movl -0x200(%rbp,%rax), %esi
orl $0x1, %esi
callq 0x2310
leaq 0x15b5(%rip), %rsi      # 0x9629
movl $0x1, %edx
movq %r15, %rdi
callq 0x2220
leaq -0x230(%rbp), %rdi
callq 0x2040
xorb $0x1, %bl
leaq -0x230(%rbp), %rdi
callq 0x2070
movl %ebx, %eax
addq $0x210, %rsp            # imm = 0x210
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/funcionesServer.cc
// Function: verifyPassword(char*, char*)
bool verifyPassword(char cUser[], char cPasswd[])
{
	char user[100];
	char passwd[100];
	bool foundClient = false;
	bool correctPasswd = false;

	std::fstream dataFile;
	dataFile.open("Data-Clients.txt", std::fstream::in);

	while ((!dataFile.eof()) and (!foundClient))
	{
		dataFile >> user;
		dataFile >> passwd;

		if(strcmp(cUser, user) == 0)
		{
			foundClient = true;

			if(strcmp(cPasswd, passwd) == 0)
			{
				correctPasswd = true;
			}
		}
	}

	dataFile.close();

	return correctPasswd;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
movq %rsi, -0x30(%rbp)
movq %rdi, -0x38(%rbp)
leaq -0x248(%rbp), %rbx
movq %rbx, %rdi
callq 0x2240
leaq 0x1825(%rip), %rsi      # 0x991c
movq %rbx, %rdi
movl $0x8, %edx
callq 0x2190
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x228(%rbp,%rax)
jne 0x8294
xorl %ebx, %ebx
leaq -0x248(%rbp), %r12
leaq -0x320(%rbp), %r13
xorl %r15d, %r15d
movq -0x238(%rbp,%rax), %r14
movl $0x64, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x2320
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, -0x228(%rbp,%rax)
jne 0x817d
addq $-0x65, %r14
cmpq $-0x65, %r14
ja 0x817d
movq -0x160(%rbp,%rax), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x822a
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
movq -0x238(%rbp,%rax), %r14
movl $0x64, %edx
movq %r12, %rdi
leaq -0x2b0(%rbp), %rsi
callq 0x2320
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, -0x228(%rbp,%rax)
jne 0x81d9
addq $-0x65, %r14
cmpq $-0x65, %r14
ja 0x81d9
movq -0x160(%rbp,%rax), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x825f
movq -0x38(%rbp), %rdi
movq %r13, %rsi
callq 0x2280
testl %eax, %eax
jne 0x820a
movq -0x30(%rbp), %rdi
leaq -0x2b0(%rbp), %rsi
callq 0x2280
testl %eax, %eax
movzbl %r15b, %r15d
movl $0x1, %eax
cmovel %eax, %r15d
movb $0x1, %bl
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x228(%rbp,%rax)
jne 0x8297
testb $0x1, %bl
je 0x8130
jmp 0x8297
movq (%rdi), %rax
callq *0x48(%rax)
cmpl $-0x1, %eax
jne 0x817d
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x248, %rdi           # imm = 0xFDB8
movl 0x20(%rdi), %esi
orl $0x2, %esi
callq 0x2310
jmp 0x817d
movq (%rdi), %rax
callq *0x48(%rax)
cmpl $-0x1, %eax
jne 0x81d9
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x248, %rdi           # imm = 0xFDB8
movl 0x20(%rdi), %esi
orl $0x2, %esi
callq 0x2310
jmp 0x81d9
xorl %r15d, %r15d
leaq -0x248(%rbp), %rdi
callq 0x2040
leaq -0x248(%rbp), %rdi
callq 0x2070
andb $0x1, %r15b
movl %r15d, %eax
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x82ca
movq %rax, %rbx
leaq -0x248(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/funcionesServer.cc
// Function: matchmaking(std::vector<domino, std::allocator<domino>>)
int matchmaking(std::vector<domino> games)
{
	int gameAssigned = -1;

	for(int i = 0; i < (int) games.size(); i++)
	{
		if(gameAssigned == -1)
		{
			if(!games[i].has2players())
			{
				gameAssigned = i;
			}
		}
	}

	return gameAssigned;
}

// Assembly:
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
subq %rcx, %rax
sarq $0x3, %rax
movabsq $0x6f96f96f96f96f97, %rdx # imm = 0x6F96F96F96F96F97
imulq %rax, %rdx
testl %edx, %edx
jle 0x8342
pushq %rbp
movq %rsp, %rbp
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
addq $0x114, %rcx            # imm = 0x114
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %esi, %esi
cmpl $-0x1, %eax
jne 0x8331
cmpl $-0x1, (%rcx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jne 0x832a
movl %esi, %eax
cmpl $-0x1, -0x80(%rcx)
cmovel %esi, %eax
incq %rsi
addq $0x138, %rcx            # imm = 0x138
cmpq %rsi, %rdx
jne 0x8319
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/funcionesServer.cc
// Function: alternatePlayerStatus(domino&, std::vector<cliente, std::allocator<cliente>>&)
void alternatePlayerStatus(domino& game, std::vector<cliente>& arrayClientes)
{
	int sdplayer1 = game.getSocketP1();
	int sdplayer2 = game.getSocketP2();

	for (int i = 0; i < (int) arrayClientes.size(); i++)
	{
		if (arrayClientes[i].sd == sdplayer1)
        {
        	if (arrayClientes[i].status == 3)
        		arrayClientes[i].status = 4;

        	else
        		arrayClientes[i].status = 3;
        }

        else if (arrayClientes[i].sd == sdplayer2)
        {
        	if (arrayClientes[i].status == 3)
        		arrayClientes[i].status = 4;

        	else
        		arrayClientes[i].status = 3;
        }
	}

}

// Assembly:
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
movabsq $0x21cfb2b78c13521d, %rcx # imm = 0x21CFB2B78C13521D
imulq %rdx, %rcx
testl %ecx, %ecx
jle 0x83ac
pushq %rbp
movq %rsp, %rbp
movl 0x94(%rdi), %edx
movl 0x114(%rdi), %esi
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
addq $0x4, %rax
movl -0x4(%rax), %edi
cmpl %edx, %edi
je 0x838d
cmpl %esi, %edi
jne 0x83a0
cmpl $0x3, (%rax)
jne 0x839a
movl $0x4, (%rax)
jmp 0x83a0
movl $0x3, (%rax)
addq $0xd4, %rax
decq %rcx
jne 0x8382
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/funcionesServer.cc
// Function: userInWaitList(int, std::vector<int, std::allocator<int>>)
bool userInWaitList(int sd, std::vector <int> waitList)
{
	bool result = false;

	for(int i = 0; i < (int) waitList.size(); i++)
	{
		if(waitList[i] == sd)
			result = true;

	}

	return result;
}

// Assembly:
movq (%rsi), %rcx
movq 0x8(%rsi), %rdx
subq %rcx, %rdx
shrq $0x2, %rdx
testl %edx, %edx
jle 0x868f
pushq %rbp
movq %rsp, %rbp
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
xorl %esi, %esi
movl $0x1, %r8d
xorl %eax, %eax
cmpl %edi, (%rcx,%rsi,4)
movzbl %al, %eax
cmovel %r8d, %eax
incq %rsi
cmpq %rsi, %rdx
jne 0x867a
popq %rbp
jmp 0x8691
xorl %eax, %eax
andb $0x1, %al
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/funcionesServer.cc
// Function: managePostGame(std::vector<domino, std::allocator<domino>>&, int, std::vector<cliente, std::allocator<cliente>>&, int, int*)
void managePostGame(std::vector<domino> &partida, int pos, std::vector<cliente> &arrayClientes, int numClientes, int *numPartidas)
{
	for (int j = 0; j < numClientes; j++)
	{
	    if (arrayClientes[j].sd == partida[pos].getSocketP1())
	    {
	        // Cambiamos el estado para que puedan iniciar nueva partida
	        arrayClientes[j].status = 2;
	        arrayClientes[j].inGame = -1;
	    }

	    else if (arrayClientes[j].sd == partida[pos].getSocketP2())
	    {
	        // Cambiamos el estado para que puedan iniciar nueva partida
	        arrayClientes[j].status = 2;
	        arrayClientes[j].inGame = -1;
	    }
    }

    // Limpiamos la partida y la habilitamos para otros usuarios
    partida[pos].emptyBoard();
    (*numPartidas)--;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %r8, %rbx
movslq %esi, %rax
testl %ecx, %ecx
jle 0x86fc
movq (%rdx), %rdx
movq (%rdi), %r8
imulq $0x138, %rax, %r9       # imm = 0x138
leaq (%r8,%r9), %rsi
movl 0x94(%r8,%r9), %r8d
movl %ecx, %ecx
imulq $0xd4, %rcx, %rcx
xorl %r9d, %r9d
movl (%rdx,%r9), %r10d
cmpl %r8d, %r10d
je 0x86db
cmpl 0x114(%rsi), %r10d
jne 0x86f0
movl $0x2, 0x4(%rdx,%r9)
movl $0xffffffff, 0xd0(%rdx,%r9) # imm = 0xFFFFFFFF
addq $0xd4, %r9
cmpq %r9, %rcx
jne 0x86c9
imulq $0x138, %rax, %rax      # imm = 0x138
addq (%rdi), %rax
movq %rax, %rdi
callq 0x4ca0
decl (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/funcionesServer.cc
// Function: checkPiece(int, char*, ficha&, char*&)
bool checkPiece(int i, char* buffer, ficha &auxFicha, char* &extremo)
{
    //Variables auxiliares
    int contNum = 0;
    char valorFicha[2];
    char* aux;

    //Sacamos "COLOCAR-FICHA" del buffer
    aux = strtok(buffer, " ,");

    // Sacamos la ficha y la posicion donde colocarla (izquierda/derecha)
    aux = strtok(NULL, " ,");   //La ficha entra en aux
    contNum = 0;                //Evaluamos si es un comando de colocar ficha válido

    //Hallamos los valores de la ficha
    for (int l = 0; l < strlen(aux); l++) {
        if (isdigit(aux[l])) {
            if(contNum < 2){
                // "- '0'" sirve para pasar de char a int el contenido de aux
                valorFicha[contNum] = (aux[l]) - '0';
            }
            contNum++;
        }
    }
    if(contNum != 2){   //Si el comando no lleva exactamente 2 valores numéricos
        return false;
    }

    extremo = strtok(NULL, " ,");   //El extremo entra en aux

    //Si el valor del extremo no es válido
    if ((strcmp( extremo, "derecha\n") != 0 ) && (strcmp( extremo, "izquierda\n") != 0 ))
    {
        return false;
    }

    auxFicha.left = valorFicha[0];
    auxFicha.right = valorFicha[1];

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %rdi
leaq 0xe70(%rip), %r12       # 0x9985
movq %r12, %rsi
callq 0x22d0
xorl %r15d, %r15d
xorl %edi, %edi
movq %r12, %rsi
callq 0x22d0
movq %rax, %r12
movq %rax, %rdi
callq 0x2100
testq %rax, %rax
je 0x8bb9
xorl %ecx, %ecx
movsbl (%r12,%rcx), %edx
leal -0x30(%rdx), %esi
cmpl $0x9, %esi
ja 0x8b5c
cmpl $0x1, %r15d
jg 0x8b59
addb $-0x30, %dl
movslq %r15d, %rsi
movb %dl, -0x22(%rbp,%rsi)
incl %r15d
incq %rcx
cmpq %rcx, %rax
jne 0x8b3c
cmpl $0x2, %r15d
jne 0x8ba4
leaq 0xe14(%rip), %rsi       # 0x9985
xorl %edi, %edi
callq 0x22d0
movq %rax, %r15
movq %rax, (%r14)
leaq 0xe03(%rip), %rsi       # 0x9988
movq %rax, %rdi
callq 0x2280
testl %eax, %eax
je 0x8ba9
leaq 0xdf9(%rip), %rsi       # 0x9991
movq %r15, %rdi
callq 0x2280
testl %eax, %eax
je 0x8ba9
xorl %r15d, %r15d
jmp 0x8bb9
movsbl -0x22(%rbp), %eax
movl %eax, (%rbx)
movsbl -0x21(%rbp), %eax
movl %eax, 0x4(%rbx)
movb $0x1, %r15b
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/funcionesServer.cc
// Function: puttingpieceP1(domino&, ficha&, char*)
bool puttingpieceP1(domino& game, ficha &auxFicha, char* extremo)
{
    if (strcmp( extremo, "izquierda\n") == 0)
    {
        //Si la ficha se puede coloca, se coloca y se le quita de la mano
        if (game.putInBoardLeft(auxFicha)) {
            game.quitPieceJ1(auxFicha);
        }
        else{
            return false;
        }
    }

    else if (strcmp( extremo, "derecha\n") == 0)
    {
        //Si la ficha se puede coloca, se coloca y se le quita de la mano
        if (game.putInBoardRight(auxFicha)) {
            game.quitPieceJ1(auxFicha);
        }
        else{
            return false;
        }
    }

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xdae(%rip), %rsi       # 0x9991
movq %rdx, %rdi
callq 0x2280
testl %eax, %eax
je 0x8c13
leaq 0xd92(%rip), %rsi       # 0x9988
movq %r15, %rdi
callq 0x2280
movl %eax, %ecx
movb $0x1, %al
testl %ecx, %ecx
jne 0x8c33
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x8d0c
jmp 0x8c1e
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x8cb4
testb %al, %al
je 0x8c31
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x541c
movb $0x1, %al
jmp 0x8c33
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::putInBoardLeft(ficha)
bool putInBoardLeft(ficha f)
	{
		//Estructura ficha auxiliar para "girar" la ficha
		ficha aux;
		bool inserted = false;

		/*No hace falta considerar el caso con tablero vacio, ya que nunca se
		  va a llamar a esta funcion en esa situacion.*/

		//Se comprueba si la ficha se puede colocar en el extremo inicial.
		if((first == f.left) or (first == f.right))
		{
			if( f.left == first )
			{
				setFirst(f.right);
				aux.left = f.right;
				aux.right = f.left;
				board.insert(board.begin(), aux);
			}

			else
			{
				setFirst(f.left);
				board.insert(board.begin(), f);
			}

			inserted = true;
		}

		//Si no, se devuelve false (valor inicial de inserted)
		return inserted;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rsi, -0x10(%rbp)
movl 0x130(%rdi), %ecx
cmpl %esi, %ecx
sete %dl
movl -0xc(%rbp), %eax
cmpl %eax, %ecx
sete %bl
orb %dl, %bl
cmpb $0x1, %bl
jne 0x8d02
cmpl %esi, %ecx
jne 0x8cf0
movl %eax, 0x130(%rdi)
leaq -0x18(%rbp), %rdx
movl %eax, (%rdx)
movl %esi, 0x4(%rdx)
jmp 0x8cfa
movl %esi, 0x130(%rdi)
leaq -0x10(%rbp), %rdx
movq (%rdi), %rsi
callq 0x55a8
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/janthonyo[P]Redes-Practicas/./domino.cc
// Function: domino::putInBoardRight(ficha)
bool putInBoardRight(ficha f)
	{
		//Estructura ficha auxiliar para "girar" la ficha
		ficha aux;
		bool inserted = false;

		/*No hace falta considerar el caso con tablero vacio, ya que nunca se
		  va a llamar a esta funcion en esa situacion.*/

		  //Se comprueba si la ficha se puede colocar en el extremo final.
  		if((last == f.left) or (last == f.right))
  		{
  			if( f.left == last )
  			{
  				setLast(f.right);
  				board.push_back(f);
  			}

  			else
  			{
  				setLast(f.left);
  				aux.left = f.right;
  				aux.right = f.left;
  				board.push_back(aux);
  			}

  			inserted = true;
  		}

		//Si no, se devuelve false (valor inicial de inserted)
		return inserted;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rsi, -0x18(%rbp)
movl 0x134(%rdi), %ecx
cmpl %esi, %ecx
sete %dl
movl -0x14(%rbp), %eax
cmpl %eax, %ecx
sete %bl
orb %dl, %bl
cmpb $0x1, %bl
jne 0x8d80
cmpl %esi, %ecx
jne 0x8d4d
movl %eax, 0x134(%rdi)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x8d71
movq -0x18(%rbp), %rax
jmp 0x8d67
movl %esi, 0x134(%rdi)
movl %eax, -0x10(%rbp)
movl %esi, -0xc(%rbp)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x8d77
movq -0x10(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x8d80
leaq -0x18(%rbp), %rdx
jmp 0x8d7b
leaq -0x10(%rbp), %rdx
callq 0x51a2
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Stygain[P]bandwidth-monitor/src/main.cpp
// Function: updateInterfaceUI()
void updateInterfaceUI()
{
	interfaceHeader->Print();
	for (size_t i = 0; i < interfaces.size(); ++i)
	{
		interfaces[i]->Print();
	}
	footer->Print();
	refresh();
}

// Assembly:
pushq %rbx
movq 0xc3ab(%rip), %rdi      # 0x10308
callq 0x94fa
movq 0xc3bf(%rip), %rax      # 0x10328
cmpq %rax, 0xc3c0(%rip)      # 0x10330
je 0x3f9a
xorl %ebx, %ebx
movq (%rax,%rbx,8), %rdi
callq 0x9d8e
incq %rbx
movq 0xc3a9(%rip), %rcx      # 0x10330
movq 0xc39a(%rip), %rax      # 0x10328
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %rbx
jb 0x3f74
movq 0xc39f(%rip), %rdi      # 0x10340
callq 0xadbc
popq %rbx
jmp 0x3530
// File: /workspace/github_cpp_makefile_star2_O1/Stygain[P]bandwidth-monitor/src/main.cpp
// Function: updateGraphs()
void updateGraphs()
{
	switch (gm)
	{
		case GM_ONE:
		{
			graphs[0]->Update();
			break;
		}
		case GM_TWO_WIDE:
		case GM_TWO_TALL:
		{
			graphs[0]->Update();
			graphs[1]->Update();
			break;
		}
		case GM_FOUR_WIDE:
		case GM_FOUR_TALL:
		case GM_TWO_WIDE_TWO_TALL:
		{
			graphs[0]->Update();
			graphs[1]->Update();
			graphs[2]->Update();
			graphs[3]->Update();
			break;
		}
	}
}

// Assembly:
pushq %rax
movl 0xab7c(%rip), %eax      # 0x10378
leal -0x3(%rax), %ecx
cmpl $0x3, %ecx
jb 0x5828
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0x5864
movq 0xab4d(%rip), %rax      # 0x10360
movq (%rax), %rdi
callq 0x8d56
movq 0xab3e(%rip), %rax      # 0x10360
addq $0x8, %rax
jmp 0x586f
movq 0xab31(%rip), %rax      # 0x10360
movq (%rax), %rdi
callq 0x8d56
movq 0xab22(%rip), %rax      # 0x10360
movq 0x8(%rax), %rdi
callq 0x8d56
movq 0xab12(%rip), %rax      # 0x10360
movq 0x10(%rax), %rdi
callq 0x8d56
movq 0xab02(%rip), %rax      # 0x10360
addq $0x18, %rax
jmp 0x586f
testl %eax, %eax
jne 0x5878
movq 0xaaf1(%rip), %rax      # 0x10360
movq (%rax), %rdi
popq %rax
jmp 0x8d56
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/Stygain[P]bandwidth-monitor/src/main.cpp
// Function: deactivateGraphs()
void deactivateGraphs()
{
	switch (gm)
	{
		case GM_ONE:
		{
			graphs[0]->setActive(false);
			break;
		}
		case GM_TWO_WIDE:
		case GM_TWO_TALL:
		{
			graphs[0]->setActive(false);
			graphs[1]->setActive(false);
			break;
		}
		case GM_FOUR_WIDE:
		case GM_FOUR_TALL:
		case GM_TWO_WIDE_TWO_TALL:
		{
			graphs[0]->setActive(false);
			graphs[1]->setActive(false);
			graphs[2]->setActive(false);
			graphs[3]->setActive(false);
			break;
		}
	}
}

// Assembly:
pushq %rax
movl 0xaaf7(%rip), %eax      # 0x10378
leal -0x3(%rax), %ecx
cmpl $0x3, %ecx
jb 0x58af
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0x58f1
movq 0xaac8(%rip), %rax      # 0x10360
movq (%rax), %rdi
xorl %esi, %esi
callq 0x8f56
movq 0xaab7(%rip), %rax      # 0x10360
addq $0x8, %rax
jmp 0x58fc
movq 0xaaaa(%rip), %rax      # 0x10360
movq (%rax), %rdi
xorl %esi, %esi
callq 0x8f56
movq 0xaa99(%rip), %rax      # 0x10360
movq 0x8(%rax), %rdi
xorl %esi, %esi
callq 0x8f56
movq 0xaa87(%rip), %rax      # 0x10360
movq 0x10(%rax), %rdi
xorl %esi, %esi
callq 0x8f56
movq 0xaa75(%rip), %rax      # 0x10360
addq $0x18, %rax
jmp 0x58fc
testl %eax, %eax
jne 0x5907
movq 0xaa64(%rip), %rax      # 0x10360
movq (%rax), %rdi
xorl %esi, %esi
popq %rax
jmp 0x8f56
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/Stygain[P]bandwidth-monitor/src/main.cpp
// Function: printGraphs()
void printGraphs()
{
	switch (gm)
	{
		case GM_ONE:
		{
			graphs[0]->Print();
			break;
		}
		case GM_TWO_WIDE:
		case GM_TWO_TALL:
		{
			graphs[0]->Print();
			graphs[1]->Print();
			break;
		}
		case GM_FOUR_WIDE:
		case GM_FOUR_TALL:
		case GM_TWO_WIDE_TWO_TALL:
		{
			graphs[0]->Print();
			graphs[1]->Print();
			graphs[2]->Print();
			graphs[3]->Print();
			break;
		}
	}
}

// Assembly:
pushq %rax
movl 0xaa68(%rip), %eax      # 0x10378
leal -0x3(%rax), %ecx
cmpl $0x3, %ecx
jb 0x593c
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0x5978
movq 0xaa39(%rip), %rax      # 0x10360
movq (%rax), %rdi
callq 0x8d9a
movq 0xaa2a(%rip), %rax      # 0x10360
addq $0x8, %rax
jmp 0x5983
movq 0xaa1d(%rip), %rax      # 0x10360
movq (%rax), %rdi
callq 0x8d9a
movq 0xaa0e(%rip), %rax      # 0x10360
movq 0x8(%rax), %rdi
callq 0x8d9a
movq 0xa9fe(%rip), %rax      # 0x10360
movq 0x10(%rax), %rdi
callq 0x8d9a
movq 0xa9ee(%rip), %rax      # 0x10360
addq $0x18, %rax
jmp 0x5983
testl %eax, %eax
jne 0x598c
movq 0xa9dd(%rip), %rax      # 0x10360
movq (%rax), %rdi
popq %rax
jmp 0x8d9a
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/Stygain[P]bandwidth-monitor/src/main.cpp
// Function: updateAllGraphInterfaces(Interface*)
void updateAllGraphInterfaces(Interface * interface)
{
	switch (gm)
	{
		case GM_ONE:
		{
			graphs[0]->UpdateGraphInterface(interface);
			break;
		}
		case GM_TWO_WIDE:
		case GM_TWO_TALL:
		{
			graphs[0]->UpdateGraphInterface(interface);
			graphs[1]->UpdateGraphInterface(interface);
			break;
		}
		case GM_FOUR_WIDE:
		case GM_FOUR_TALL:
		case GM_TWO_WIDE_TWO_TALL:
		{
			graphs[0]->UpdateGraphInterface(interface);
			graphs[1]->UpdateGraphInterface(interface);
			graphs[2]->UpdateGraphInterface(interface);
			graphs[3]->UpdateGraphInterface(interface);
			break;
		}
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0xa9ca(%rip), %eax      # 0x10378
leal -0x3(%rax), %ecx
cmpl $0x3, %ecx
jb 0x59dd
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0x5a22
movq 0xa99b(%rip), %rax      # 0x10360
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x8ef4
movq 0xa989(%rip), %rax      # 0x10360
addq $0x8, %rax
jmp 0x5a2d
movq 0xa97c(%rip), %rax      # 0x10360
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x8ef4
movq 0xa96a(%rip), %rax      # 0x10360
movq 0x8(%rax), %rdi
movq %rbx, %rsi
callq 0x8ef4
movq 0xa957(%rip), %rax      # 0x10360
movq 0x10(%rax), %rdi
movq %rbx, %rsi
callq 0x8ef4
movq 0xa944(%rip), %rax      # 0x10360
addq $0x18, %rax
jmp 0x5a2d
testl %eax, %eax
jne 0x5a39
movq 0xa933(%rip), %rax      # 0x10360
movq (%rax), %rdi
movq %rbx, %rsi
popq %rbx
jmp 0x8ef4
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Stygain[P]bandwidth-monitor/src/main.cpp
// Function: clearGraphs()
void clearGraphs()
{
	switch (gm)
	{
		case GM_ONE:
		{
			graphs[0]->Clear();
			break;
		}
		case GM_TWO_WIDE:
		case GM_TWO_TALL:
		{
			graphs[0]->Clear();
			graphs[1]->Clear();
			break;
		}
		case GM_FOUR_WIDE:
		case GM_FOUR_TALL:
		case GM_TWO_WIDE_TWO_TALL:
		{
			graphs[0]->Clear();
			graphs[1]->Clear();
			graphs[2]->Clear();
			graphs[3]->Clear();
			break;
		}
	}
}

// Assembly:
pushq %rax
movl 0xa936(%rip), %eax      # 0x10378
leal -0x3(%rax), %ecx
cmpl $0x3, %ecx
jb 0x5a6e
leal -0x1(%rax), %ecx
cmpl $0x2, %ecx
jae 0x5aaa
movq 0xa907(%rip), %rax      # 0x10360
movq (%rax), %rdi
callq 0x8e68
movq 0xa8f8(%rip), %rax      # 0x10360
addq $0x8, %rax
jmp 0x5ab5
movq 0xa8eb(%rip), %rax      # 0x10360
movq (%rax), %rdi
callq 0x8e68
movq 0xa8dc(%rip), %rax      # 0x10360
movq 0x8(%rax), %rdi
callq 0x8e68
movq 0xa8cc(%rip), %rax      # 0x10360
movq 0x10(%rax), %rdi
callq 0x8e68
movq 0xa8bc(%rip), %rax      # 0x10360
addq $0x18, %rax
jmp 0x5ab5
testl %eax, %eax
jne 0x5abe
movq 0xa8ab(%rip), %rax      # 0x10360
movq (%rax), %rdi
popq %rax
jmp 0x8e68
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/Stygain[P]bandwidth-monitor/src/graph.cpp
// Function: GraphRow::GraphRow(int, int, int, int, int, int)
GraphRow::GraphRow(int height, int width, int placementX, int placementY, int value, int max)
{
	this->max = max;
	this->value = value;
	this->placementY = placementY;
	this->placementX = placementX;
	this->height = height;
	this->width = width;
	this->win = newwin(this->height, this->width, this->placementY, this->placementX);

	wrefresh(this->win);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x10(%rsp), %eax
movl %eax, 0xc(%rdi)
movl %r9d, 0x8(%rdi)
movl %r8d, 0x10(%rdi)
movl %ecx, 0x14(%rdi)
movl %esi, 0x18(%rdi)
movl %edx, 0x1c(%rdi)
movl %esi, %edi
movl %edx, %esi
movl %r8d, %edx
callq 0x32e0
movq %rax, (%rbx)
movq %rax, %rdi
popq %rbx
jmp 0x3310