LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_seguranca(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char&)
bool verifica_seguranca(string nivel_seg_string, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	for(int i = 0; i < (int)nivel_seg_string.size(); i++){
		c = nivel_seg_string[i];
		verificacao = isdigit(c);
		if(!verificacao || (nivel_seg_string != "0" && nivel_seg_string != "1" && nivel_seg_string != "2")){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;		
	}
	if(cont == (int) nivel_seg_string.size()){
		sucesso = 's';
		return 1;
	}
	else{
		cout << "ERRO: valor inválido 2!" << endl << endl;
		sucesso = 'n';
		return 0;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movb $0x6e, (%rsi)
xorl %ebx, %ebx
leaq 0x17eb(%rip), %r15      # 0x23230
leaq 0x16b5(%rip), %r12      # 0x23101
leaq 0x1f55(%rip), %r13      # 0x239a8
movq 0x8(%r14), %rax
movslq %eax, %rcx
cmpq %rcx, %rbx
jge 0x21acc
movq (%r14), %rax
movsbl (%rax,%rbx), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x21aa0
movq %r14, %rdi
movq %r15, %rsi
callq 0xb86b
testb %al, %al
je 0x21a9b
movq %r14, %rdi
movq %r12, %rsi
callq 0xb86b
testb %al, %al
je 0x21a9b
movq %r14, %rdi
movq %r13, %rsi
callq 0xb86b
testb %al, %al
jne 0x21aa0
incq %rbx
jmp 0x21a53
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
movq 0xf51a(%rip), %rdi      # 0x30fc8
leaq 0x2b8e(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
jmp 0x21b05
cmpl %eax, %ebx
jne 0x21adb
movq -0x30(%rbp), %rax
movb $0x73, (%rax)
movb $0x1, %al
jmp 0x21b07
movq 0xf4e6(%rip), %rdi      # 0x30fc8
leaq 0x2ba1(%rip), %rsi      # 0x2468a
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_nome(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char&)
bool verifica_nome(string &nome, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	transform(nome.begin(), nome.end(), nome.begin(), ::toupper); // Converte a string nome para caracteres maiúsculos.
	for(int i = 0; i < (int)nome.size(); i++){
		c = nome[i];
		verificacao = isalpha(c);
		if(!verificacao && c != ' '){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;	
	}
	if(cont == (int) nome.size()){
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movb $0x6e, (%rsi)
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x21b50
movsbl (%rbx,%r12), %edi
callq 0x33a0
movb %al, (%rbx,%r12)
incq %r12
jmp 0x21b38
movl 0x8(%r14), %r15d
movq (%r14), %r12
xorl %r13d, %r13d
testl %r15d, %r15d
movl $0x0, %ebx
cmovgl %r15d, %ebx
cmpq %r13, %rbx
je 0x21bb1
movsbl (%r12,%r13), %r14d
movl %r14d, %edi
callq 0x3310
incq %r13
cmpl $0x20, %r14d
je 0x21b66
testl %eax, %eax
jne 0x21b66
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
movq 0xf435(%rip), %rdi      # 0x30fc8
leaq 0x2aa9(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
jmp 0x21bc1
testl %r15d, %r15d
js 0x21bc1
movq -0x30(%rbp), %rax
movb $0x73, (%rax)
movb $0x1, %al
jmp 0x21bc3
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_nome_cient(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char&)
bool verifica_nome_cient(string &nome, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	transform(nome.begin(), nome.end(), nome.begin(), ::toupper); // Converte a string nome para caracteres maiúsculos.
	for(int i = 0; i < (int)nome.size(); i++){
		c = nome[i];
		verificacao = isalpha(c);
		if(!verificacao && c != ' ' && c !='-'){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;	
	}
	if(cont == (int) nome.size()){
		transform(nome.begin(), nome.end(), nome.begin(), ::tolower);
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movb $0x6e, (%rsi)
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x21c0c
movsbl (%rbx,%r12), %edi
callq 0x33a0
movb %al, (%rbx,%r12)
incq %r12
jmp 0x21bf4
movq (%r14), %r15
movq 0x8(%r14), %r12
xorl %r13d, %r13d
testl %r12d, %r12d
movl $0x0, %ebx
cmovgl %r12d, %ebx
cmpq %r13, %rbx
je 0x21c4b
movsbl (%r15,%r13), %r14d
movl %r14d, %edi
callq 0x3310
testl %eax, %eax
jne 0x21c46
movzbl %r14b, %eax
cmpl $0x20, %eax
je 0x21c46
cmpl $0x2d, %eax
jne 0x21c75
incq %r13
jmp 0x21c22
testl %r12d, %r12d
js 0x21c9f
xorl %ebx, %ebx
cmpq %rbx, %r12
je 0x21c6a
movsbl (%r15,%rbx), %edi
callq 0x32c0
movb %al, (%r15,%rbx)
incq %rbx
jmp 0x21c52
movq -0x30(%rbp), %rax
movb $0x73, (%rax)
movb $0x1, %al
jmp 0x21ca1
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
movq 0xf345(%rip), %rdi      # 0x30fc8
leaq 0x29b9(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_CPF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char&)
bool verifica_CPF(string cpf_string, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	for(int i = 0; i < (int)cpf_string.size(); i++){
		c = cpf_string[i];
		verificacao = isdigit(c);
		if(!verificacao){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;	
	}

	if(cont == (int) cpf_string.size()){
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb $0x6e, (%rsi)
movl 0x8(%rdi), %eax
xorl %ecx, %ecx
testl %eax, %eax
movl $0x0, %edx
cmovgl %eax, %edx
cmpq %rcx, %rdx
je 0x21d05
movq (%rdi), %r8
movsbl (%r8,%rcx), %r8d
addl $-0x30, %r8d
incq %rcx
cmpl $0xa, %r8d
jb 0x21cc6
movq 0xf2e1(%rip), %rdi      # 0x30fc8
leaq 0x2955(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
jmp 0x21d10
testl %eax, %eax
js 0x21d10
movb $0x73, (%rsi)
movb $0x1, %al
jmp 0x21d12
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_idade(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char&)
bool verifica_idade(string idade_string, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	for(int i = 0; i < (int)idade_string.size(); i++){
		c = idade_string[i];
		verificacao = isdigit(c);
		if(!verificacao){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;
	}

	if(cont == (int) idade_string.size()){
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb $0x6e, (%rsi)
movl 0x8(%rdi), %eax
xorl %ecx, %ecx
testl %eax, %eax
movl $0x0, %edx
cmovgl %eax, %edx
cmpq %rcx, %rdx
je 0x21d69
movq (%rdi), %r8
movsbl (%r8,%rcx), %r8d
addl $-0x30, %r8d
incq %rcx
cmpl $0xa, %r8d
jb 0x21d2a
movq 0xf27d(%rip), %rdi      # 0x30fc8
leaq 0x28f1(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
jmp 0x21d74
testl %eax, %eax
js 0x21d74
movb $0x73, (%rsi)
movb $0x1, %al
jmp 0x21d76
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_inteiro(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char&)
bool verifica_inteiro(string total_mudas_string, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	for(int i = 0; i < (int)total_mudas_string.size(); i++){
		c = total_mudas_string[i];
		verificacao = isdigit(c);
		if(!verificacao){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;	
	}

	if(cont == (int) total_mudas_string.size()){
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb $0x6e, (%rsi)
movl 0x8(%rdi), %eax
xorl %ecx, %ecx
testl %eax, %eax
movl $0x0, %edx
cmovgl %eax, %edx
cmpq %rcx, %rdx
je 0x21dcd
movq (%rdi), %r8
movsbl (%r8,%rcx), %r8d
addl $-0x30, %r8d
incq %rcx
cmpl $0xa, %r8d
jb 0x21d8e
movq 0xf219(%rip), %rdi      # 0x30fc8
leaq 0x288d(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
jmp 0x21dd8
testl %eax, %eax
js 0x21dd8
movb $0x73, (%rsi)
movb $0x1, %al
jmp 0x21dda
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_tipo_sang(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char&)
bool verifica_tipo_sang(string &tipo_sang_string, char &sucesso){
	int cont = 0, cont_sangue = 0, verificacao;
	char c;
	sucesso = 'n';
	transform(tipo_sang_string.begin(), tipo_sang_string.end(), tipo_sang_string.begin(), ::toupper); // Converte a string nome para caracteres maiúsculos.
	for(int i = 0; i < (int)tipo_sang_string.size(); i++){
		c = tipo_sang_string[i];
		verificacao = isalpha(c);
		cont_sangue++;
		if(!verificacao || cont_sangue > 2 || (tipo_sang_string != "O" && tipo_sang_string != "AB" && tipo_sang_string != "B" && tipo_sang_string != "A")){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;
	}

	if(cont == (int)tipo_sang_string.size()){
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movb $0x6e, (%rsi)
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x21e16
movsbl (%rbx,%r12), %edi
callq 0x33a0
movb %al, (%rbx,%r12)
incq %r12
jmp 0x21dfe
xorl %ebx, %ebx
leaq 0x2406(%rip), %r15      # 0x24225
leaq 0x287d(%rip), %r12      # 0x246a3
leaq 0x2877(%rip), %r13      # 0x246a4
movq 0x8(%r14), %rax
movslq %eax, %rcx
cmpq %rcx, %rbx
jge 0x21ec3
movq (%r14), %rax
movsbl (%rax,%rbx), %edi
callq 0x3310
testl %eax, %eax
je 0x21e97
cmpl $0x1, %ebx
ja 0x21e97
movq %r14, %rdi
movq %r15, %rsi
callq 0xb86b
testb %al, %al
je 0x21e92
movq %r14, %rdi
movq %r12, %rsi
callq 0xb86b
testb %al, %al
je 0x21e92
movq %r14, %rdi
movq %r13, %rsi
callq 0xb86b
testb %al, %al
je 0x21e92
movq %r14, %rdi
leaq 0x2296(%rip), %rsi      # 0x2411f
callq 0xb86b
testb %al, %al
jne 0x21e97
incq %rbx
jmp 0x21e2d
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
movq 0xf123(%rip), %rdi      # 0x30fc8
leaq 0x2797(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
jmp 0x21ed2
cmpl %eax, %ebx
jne 0x21ed2
movq -0x30(%rbp), %rax
movb $0x73, (%rax)
movb $0x1, %al
jmp 0x21ed4
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_fator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char&)
bool verifica_fator(string fator_rh_string, char &sucesso){
	int cont = 0, cont_carac = 0;
	char c;
	sucesso = 'n';

	for(int i = 0; i < (int) fator_rh_string.size(); i++){
		c = fator_rh_string[i];
		cont_carac++;
		if((c != '-' && c != '+') || cont_carac > 1){
			cont--;
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;	
	}

	if(cont == (int)fator_rh_string.size()){
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
movb $0x6e, (%rsi)
movl 0x8(%rdi), %eax
testl %eax, %eax
jle 0x21f02
movq (%rdi), %rcx
movzbl (%rcx), %ecx
cmpl $0x2d, %ecx
je 0x21efd
cmpl $0x2b, %ecx
jne 0x21f0c
cmpl $0x1, %eax
jne 0x21f0c
testl %eax, %eax
js 0x21f37
movb $0x73, (%rsi)
movb $0x1, %al
retq
pushq %rbp
movq %rsp, %rbp
movq 0xf0b1(%rip), %rdi      # 0x30fc8
leaq 0x2725(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
xorl %eax, %eax
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_especialidade(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char&)
bool verifica_especialidade(string especialidade, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	transform(especialidade.begin(), especialidade.end(), especialidade.begin(), ::toupper);
	for(int i = 0; i < (int) especialidade.size(); i++){
		c = especialidade[i];
		verificacao = isalpha(c);
		if(!verificacao && c != ' '){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;	
	}

	if(cont == (int)especialidade.size()){
		sucesso = 's';
		return 1;
	}
	else{
		sucesso = 'n';
		return 0;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movb $0x6e, (%rsi)
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x21f74
movsbl (%rbx,%r12), %edi
callq 0x33a0
movb %al, (%rbx,%r12)
incq %r12
jmp 0x21f5c
movl 0x8(%r14), %r12d
xorl %r13d, %r13d
testl %r12d, %r12d
movl $0x0, %ebx
cmovgl %r12d, %ebx
cmpq %r13, %rbx
je 0x21fd5
movq (%r14), %rax
movsbl (%rax,%r13), %r15d
movl %r15d, %edi
callq 0x3310
incq %r13
cmpl $0x20, %r15d
je 0x21f87
testl %eax, %eax
jne 0x21f87
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
movq 0xf011(%rip), %rdi      # 0x30fc8
leaq 0x2685(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
jmp 0x21fec
testl %r12d, %r12d
js 0x21fe5
movq -0x30(%rbp), %rax
movb $0x73, (%rax)
movb $0x1, %al
jmp 0x21fee
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_dieta(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char&)
bool verifica_dieta(string &dieta, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	transform(dieta.begin(), dieta.end(), dieta.begin(), ::toupper); // Converte a string nome para caracteres maiúsculos.
	for(int i = 0; i < (int)dieta.size(); i++){
		c = dieta[i];
		verificacao = isalpha(c);
		if(!verificacao && c != ' ' && c != ','){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;
		
	}
	if(cont == (int) dieta.size()){
		transform(dieta.begin(), dieta.end(), dieta.begin(), ::tolower);
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movb $0x6e, (%rsi)
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x221cf
movsbl (%rbx,%r12), %edi
callq 0x33a0
movb %al, (%rbx,%r12)
incq %r12
jmp 0x221b7
movq (%r14), %r15
movq 0x8(%r14), %r12
xorl %r13d, %r13d
testl %r12d, %r12d
movl $0x0, %ebx
cmovgl %r12d, %ebx
cmpq %r13, %rbx
je 0x2220e
movsbl (%r15,%r13), %r14d
movl %r14d, %edi
callq 0x3310
testl %eax, %eax
jne 0x22209
movzbl %r14b, %eax
cmpl $0x20, %eax
je 0x22209
cmpl $0x2c, %eax
jne 0x22238
incq %r13
jmp 0x221e5
testl %r12d, %r12d
js 0x22262
xorl %ebx, %ebx
cmpq %rbx, %r12
je 0x2222d
movsbl (%r15,%rbx), %edi
callq 0x32c0
movb %al, (%r15,%rbx)
incq %rbx
jmp 0x22215
movq -0x30(%rbp), %rax
movb $0x73, (%rax)
movb $0x1, %al
jmp 0x22264
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
movq 0xed82(%rip), %rdi      # 0x30fc8
leaq 0x23f6(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_tamanho(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char&)
bool verifica_tamanho(string tamanho_string, char &sucesso){
	int cont = 0, cont_ponto = 0, verificacao;
	char c;
	sucesso = 'n';
	for(int i = 0; i < (int)tamanho_string.size(); i++){
		c = tamanho_string[i];
		verificacao = isdigit(c);
		if(c == '.'){
			cont_ponto++;
		}
		if(!verificacao && c != '.'){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;
		
	}
	if(cont == (int) tamanho_string.size() && cont_ponto == 1){
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb $0x6e, (%rsi)
movl 0x8(%rdi), %ecx
xorl %eax, %eax
testl %ecx, %ecx
movl $0x0, %r8d
cmovgl %ecx, %r8d
xorl %edx, %edx
cmpq %rax, %r8
je 0x222c6
movq (%rdi), %r9
movsbl (%r9,%rax), %r9d
cmpl $0x2e, %r9d
sete %r10b
leal -0x3a(%r9), %r11d
cmpl $-0xa, %r11d
setae %r11b
orb %r10b, %r11b
je 0x222d8
xorl %r10d, %r10d
cmpb $0x2e, %r9b
sete %r10b
addl %r10d, %edx
incq %rax
jmp 0x2228d
xorl %eax, %eax
testl %ecx, %ecx
js 0x222fd
cmpl $0x1, %edx
jne 0x222fd
movb $0x73, (%rsi)
movb $0x1, %al
jmp 0x222fd
movq 0xece9(%rip), %rdi      # 0x30fc8
leaq 0x235d(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_data(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char&)
bool verifica_data(string ultima_muda, char &sucesso){
	int cont = 0, cont_traco = 0, verificacao;
	char c;
	sucesso = 'n';
	for(int i = 0; i < (int)ultima_muda.size(); i++){
		c = ultima_muda[i];
		verificacao = isdigit(c);
		if(c == '-'){
			cont_traco++;
		}
		if(!verificacao && c != '-'){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;
		
	}
	if(cont == (int) ultima_muda.size() && cont_traco == 2){
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb $0x6e, (%rsi)
movl 0x8(%rdi), %ecx
xorl %eax, %eax
testl %ecx, %ecx
movl $0x0, %r8d
cmovgl %ecx, %r8d
xorl %edx, %edx
cmpq %rax, %r8
je 0x22352
movq (%rdi), %r9
movsbl (%r9,%rax), %r9d
cmpl $0x2d, %r9d
sete %r10b
leal -0x3a(%r9), %r11d
cmpl $-0xa, %r11d
setae %r11b
orb %r10b, %r11b
je 0x22364
xorl %r10d, %r10d
cmpb $0x2d, %r9b
sete %r10b
addl %r10d, %edx
incq %rax
jmp 0x22319
xorl %eax, %eax
testl %ecx, %ecx
js 0x22389
cmpl $0x2, %edx
jne 0x22389
movb $0x73, (%rsi)
movb $0x1, %al
jmp 0x22389
movq 0xec5d(%rip), %rdi      # 0x30fc8
leaq 0x22d1(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_autorizacao(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char&)
bool verifica_autorizacao(string &autorizacao, char &sucesso){
	int cont = 0, cont_traco = 0, verificacao;
	char c;
	sucesso = 'n';
	transform(autorizacao.begin(), autorizacao.end(), autorizacao.begin(), ::toupper); // Converte a string nome para caracteres maiúsculos.
	for(int i = 0; i < (int)autorizacao.size(); i++){
		c = autorizacao[i];
		verificacao = isalnum(c);
		if(c == '-'){
			cont_traco++;
		}
		if(!verificacao && c != '-'){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;
		
	}
	if(cont == (int) autorizacao.size() && cont_traco == 1){
		transform(autorizacao.begin(), autorizacao.end(), autorizacao.begin(), ::tolower); // Converte a string autorizacao para valores minusculos.
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movb $0x6e, (%rsi)
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x223c8
movsbl (%rbx,%r12), %edi
callq 0x33a0
movb %al, (%rbx,%r12)
incq %r12
jmp 0x223b0
movq (%r14), %r15
movq 0x8(%r14), %rax
xorl %r13d, %r13d
testl %eax, %eax
movl $0x0, %r12d
movq %rax, -0x38(%rbp)
cmovgl %eax, %r12d
xorl %ebx, %ebx
cmpq %r13, %r12
je 0x22410
movsbl (%r15,%r13), %r14d
movl %r14d, %edi
callq 0x3220
cmpl $0x2d, %r14d
je 0x22400
testl %eax, %eax
je 0x2243a
xorl %eax, %eax
cmpb $0x2d, %r14b
sete %al
addl %eax, %ebx
incq %r13
jmp 0x223e4
xorl %eax, %eax
movq -0x38(%rbp), %r14
testl %r14d, %r14d
js 0x22471
cmpl $0x1, %ebx
jne 0x22471
xorl %ebx, %ebx
cmpq %rbx, %r14
je 0x22468
movsbl (%r15,%rbx), %edi
callq 0x32c0
movb %al, (%r15,%rbx)
incq %rbx
jmp 0x22422
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
movq 0xeb80(%rip), %rdi      # 0x30fc8
leaq 0x21f4(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
xorl %eax, %eax
jmp 0x22471
movq -0x30(%rbp), %rax
movb $0x73, (%rax)
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_origem(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char&)
bool verifica_origem(string &origem, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	transform(origem.begin(), origem.end(), origem.begin(), ::toupper); // Converte a string nome para caracteres maiúsculos.
	for(int i = 0; i < (int)origem.size(); i++){
		c = origem[i];
		verificacao = isalpha(c);
		if(!verificacao && c != ' '){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;
		
	}
	if(cont == (int) origem.size()){
		transform(origem.begin(), origem.end(), origem.begin(), ::tolower);
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movb $0x6e, (%rsi)
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x224ba
movsbl (%rbx,%r12), %edi
callq 0x33a0
movb %al, (%rbx,%r12)
incq %r12
jmp 0x224a2
movq (%r14), %r15
movq 0x8(%r14), %r12
xorl %r13d, %r13d
testl %r12d, %r12d
movl $0x0, %ebx
cmovgl %r12d, %ebx
cmpq %r13, %rbx
je 0x2251b
movsbl (%r15,%r13), %r14d
movl %r14d, %edi
callq 0x3310
incq %r13
cmpl $0x20, %r14d
je 0x224d0
testl %eax, %eax
jne 0x224d0
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
movq 0xeacb(%rip), %rdi      # 0x30fc8
leaq 0x213f(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
jmp 0x2253a
testl %r12d, %r12d
js 0x2253a
xorl %ebx, %ebx
cmpq %rbx, %r12
je 0x2253e
movsbl (%r15,%rbx), %edi
callq 0x32c0
movb %al, (%r15,%rbx)
incq %rbx
jmp 0x22522
xorl %eax, %eax
jmp 0x22547
movq -0x30(%rbp), %rax
movb $0x73, (%rax)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_cor(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char&)
bool verifica_cor(string &cor, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	transform(cor.begin(), cor.end(), cor.begin(), ::toupper); // Converte a string cor para caracteres maiúsculos.
	for(int i = 0; i < (int)cor.size(); i++){
		c = cor[i];
		verificacao = isalpha(c);
		if(!verificacao && c != ' ' && c != '-'){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;	
	}
	if(cont == (int) cor.size()){
		transform(cor.begin(), cor.end(), cor.begin(), ::tolower); // Converte a string cor paara caracteres minusculos.
		sucesso = 's';
		return 1;
	}
	else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, -0x30(%rbp)
movb $0x6e, (%rsi)
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x22590
movsbl (%rbx,%r12), %edi
callq 0x33a0
movb %al, (%rbx,%r12)
incq %r12
jmp 0x22578
movq (%r14), %r15
movq 0x8(%r14), %r12
xorl %r13d, %r13d
testl %r12d, %r12d
movl $0x0, %ebx
cmovgl %r12d, %ebx
cmpq %r13, %rbx
je 0x225cf
movsbl (%r15,%r13), %r14d
movl %r14d, %edi
callq 0x3310
testl %eax, %eax
jne 0x225ca
movzbl %r14b, %eax
cmpl $0x20, %eax
je 0x225ca
cmpl $0x2d, %eax
jne 0x225f9
incq %r13
jmp 0x225a6
testl %r12d, %r12d
js 0x22623
xorl %ebx, %ebx
cmpq %rbx, %r12
je 0x225ee
movsbl (%r15,%rbx), %edi
callq 0x32c0
movb %al, (%r15,%rbx)
incq %rbx
jmp 0x225d6
movq -0x30(%rbp), %rax
movb $0x73, (%rax)
movb $0x1, %al
jmp 0x22625
movq -0x30(%rbp), %rax
movb $0x6e, (%rax)
movq 0xe9c1(%rip), %rdi      # 0x30fc8
leaq 0x2035(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nataly-enne[P]pet-fera/pet_fera_checagem.cpp
// Function: verifica_venenoso(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char&)
bool verifica_venenoso(string venenoso, char &sucesso){
	int cont = 0, verificacao;
	char c;
	sucesso = 'n';
	for(int i = 0; i < (int)venenoso.size(); i++){
		c = venenoso[i];
		verificacao = isdigit(c);
		if(!verificacao || (venenoso != "0" && venenoso != "1")){
			sucesso = 'n';
			cout << "ERRO: valor inválido!" << endl << endl;
			return 0;
		}
		else cont++;		
	}
	if(cont == (int) venenoso.size()){
		sucesso = 's';
		return 1;
	}
	else return 0;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movb $0x6e, (%rsi)
xorl %r13d, %r13d
leaq 0xbdb(%rip), %r15       # 0x23230
leaq 0xaa5(%rip), %r12       # 0x23101
movq 0x8(%r14), %rax
movslq %eax, %rcx
cmpq %rcx, %r13
jge 0x226c3
movq (%r14), %rax
movsbl (%rax,%r13), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x2269b
movq %r14, %rdi
movq %r15, %rsi
callq 0xb86b
testb %al, %al
je 0x22696
movq %r14, %rdi
movq %r12, %rsi
callq 0xb86b
testb %al, %al
jne 0x2269b
incq %r13
jmp 0x2265c
movb $0x6e, (%rbx)
movq 0xe923(%rip), %rdi      # 0x30fc8
leaq 0x1f97(%rip), %rsi      # 0x24643
callq 0x31f0
movq %rax, %rdi
callq 0x3110
movq %rax, %rdi
callq 0x3110
jmp 0x226cf
cmpl %eax, %r13d
jne 0x226cf
movb $0x73, (%rbx)
movb $0x1, %al
jmp 0x226d1
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/OpenTool.cpp
// Function: OpenTool::OpenTool()
OpenTool::OpenTool()
{
	ip_address = "";
	port = 0;

	timeout = 0;
	retries = 0;

	openToolHeader.SpindleID = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r15
movq 0x7519(%rip), %rax      # 0xdf20
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x20(%rdi), %rax
movq %rax, 0x10(%rdi)
andq $0x0, 0x18(%rdi)
leaq 0x10(%rdi), %rbx
movb $0x0, 0x20(%rdi)
leaq 0x48(%rdi), %r14
movq %r14, %rdi
movq %rbx, -0x38(%rbp)
callq 0x62f0
leaq 0x378(%r15), %r12
leaq 0x438(%r15), %r13
movl $0xc0, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x6280
movq %r13, %rdi
movq %r14, -0x48(%rbp)
callq 0x6390
leaq 0x478(%r15), %rbx
movq %rbx, %rdi
callq 0x6030
andq $0x0, 0x898(%r15)
leaq 0x8a8(%r15), %r14
movq %r14, %rdi
callq 0x6190
leaq 0x3852(%rip), %rsi      # 0xa2db
movq -0x38(%rbp), %rdi
callq 0x67f0
andl $0x0, 0x30(%r15)
andq $0x0, 0x38(%r15)
andl $0x0, 0x40(%r15)
andl $0x0, 0x374(%r15)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, -0x30(%rbp)
movq %r14, %rdi
callq 0x6720
jmp 0x6aca
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
callq 0x6060
jmp 0x6ad8
movq %rax, -0x30(%rbp)
movq %r13, %rdi
callq 0x60f0
jmp 0x6ae6
movq %rax, -0x30(%rbp)
leaq 0x398(%r15), %rax
movq %rax, -0x40(%rbp)
leaq 0x3b8(%r15), %r14
leaq 0x3d8(%r15), %r13
leaq 0x3f8(%r15), %rbx
addq $0x418, %r15            # imm = 0x418
movq %r15, %rdi
callq 0x6340
movq %rbx, %rdi
callq 0x6340
movq %r13, %rdi
callq 0x6340
movq %r14, %rdi
callq 0x6340
movq -0x40(%rbp), %rdi
callq 0x6340
movq %r12, %rdi
callq 0x6340
movq -0x48(%rbp), %rdi
callq 0x6420
jmp 0x6b4d
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rdi
callq 0x6200
movq -0x30(%rbp), %rdi
callq 0x6740
nop
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/OpenTool.cpp
// Function: OpenTool::OpenTool(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int, int, MID_Revision)
OpenTool::OpenTool(int spindleNumber, string _ip, int _port, int _timeout, int _retries, MID_Revision _rev)
{
	ip_address = _ip;
	port = _port;
	timeout = static_cast<double>(_timeout);
	retries = _retries;
	openToolHeader.SpindleID = spindleNumber;
	openToolHeader.Revision = version = _rev;
	SetStationID();
	SetAckStatus();
	if(ip_address.length() > 0)
	{
		lastSentTime = std::chrono::system_clock::now(); //Client timeout functionality
		timer_count = -1;
	}
	else
	{
		keep_alive_timer.init(timeout, 0, false); //Server KeepAlive
		keep_alive_timer.start();
		timer_count = keep_alive_timer.GetCount();
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, -0x30(%rbp)
movl %r8d, %r15d
movl %ecx, -0x38(%rbp)
movq %rdx, %r12
movq %rdi, %r14
movq 0x7398(%rip), %rax      # 0xdf20
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x20(%rdi), %rax
movq %rax, 0x10(%rdi)
andq $0x0, 0x18(%rdi)
movl %esi, -0x34(%rbp)
leaq 0x10(%rdi), %rax
movq %rax, -0x40(%rbp)
movb $0x0, 0x20(%rdi)
leaq 0x48(%rdi), %rbx
movq %rbx, %rdi
callq 0x62f0
leaq 0x378(%r14), %rdi
leaq 0x438(%r14), %r13
movl $0xc0, %edx
movq %rdi, -0x50(%rbp)
xorl %esi, %esi
callq 0x6280
movq %r13, -0x48(%rbp)
movq %r13, %rdi
movq %rbx, -0x58(%rbp)
callq 0x6390
leaq 0x478(%r14), %r13
movq %r13, %rdi
callq 0x6030
andq $0x0, 0x898(%r14)
leaq 0x8a8(%r14), %rbx
movq %rbx, %rdi
callq 0x6190
movq -0x40(%rbp), %rdi
movq %r12, %rsi
callq 0x6270
movl 0x10(%rbp), %eax
movl -0x38(%rbp), %ecx
movl %ecx, 0x30(%r14)
cvtsi2sd %r15d, %xmm0
movsd %xmm0, 0x38(%r14)
movl -0x30(%rbp), %ecx
movl %ecx, 0x40(%r14)
movl -0x34(%rbp), %ecx
movl %ecx, 0x374(%r14)
movl %eax, 0x34(%r14)
movl %eax, 0x368(%r14)
andl $0x0, 0x370(%r14)
movb $0x0, 0x36c(%r14)
cmpq $0x0, 0x18(%r14)
je 0x6c70
callq 0x6070
movq %rax, 0x898(%r14)
pushq $-0x1
popq %rax
jmp 0x6c8e
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x60d0
movq %rbx, %rdi
callq 0x62a0
movl 0xa38(%r14), %eax
movl %eax, 0x8a0(%r14)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, -0x30(%rbp)
jmp 0x6cc8
movq %rax, -0x30(%rbp)
jmp 0x6cd0
movq %rax, -0x30(%rbp)
jmp 0x6cd9
movq %rax, -0x30(%rbp)
jmp 0x6d36
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
callq 0x6720
movq %r13, %rdi
callq 0x6060
movq -0x48(%rbp), %rdi
callq 0x60f0
leaq 0x398(%r14), %rbx
leaq 0x3b8(%r14), %r12
leaq 0x3d8(%r14), %r13
leaq 0x3f8(%r14), %r15
addq $0x418, %r14            # imm = 0x418
movq %r14, %rdi
callq 0x6340
movq %r15, %rdi
callq 0x6340
movq %r13, %rdi
callq 0x6340
movq %r12, %rdi
callq 0x6340
movq %rbx, %rdi
callq 0x6340
movq -0x50(%rbp), %rdi
callq 0x6340
movq -0x58(%rbp), %rdi
callq 0x6420
movq -0x40(%rbp), %rdi
callq 0x6200
movq -0x30(%rbp), %rdi
callq 0x6740
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/OpenTool.cpp
// Function: OpenTool::Connect()
Error OpenTool::Connect()
{
	 Error result = Error::UNKNOWN;
	 client.init(ip_address,port);

	 if(client.Connect() == Connection_Status::CONNECTED)
	 {
		 openToolHeader.Number = MID_Number::CommunicationStart;
		 MIDOutputAction(&openToolHeader);
	 }

	 return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x438(%rdi), %r14
leaq 0x10(%rdi), %rsi
leaq -0x38(%rbp), %r15
movq %r15, %rdi
callq 0x65a0
movzwl 0x30(%rbx), %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x6410
leaq -0x38(%rbp), %rdi
callq 0x6200
movq %r14, %rdi
callq 0x66f0
cmpl $0x1, %eax
jne 0x6e82
leaq 0x48(%rbx), %rsi
movl $0x1, 0x364(%rbx)
movq %rbx, %rdi
callq 0x6530
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x6200
movq %rbx, %rdi
callq 0x6740
nop
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/OpenTool.cpp
// Function: OpenTool::Send(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Error OpenTool::Send(string data)
{
	 Error result = Error::UNKNOWN;
	 vector<char>  buffer(data.begin(), data.end());
	 result = client.Write(buffer);

	 return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq -0x48(%rbp), %r14
leaq -0x11(%rbp), %rcx
movq %r14, %rdi
movq %rax, %rsi
callq 0x6210
leaq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x6580
addq $0x438, %rbx            # imm = 0x438
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x6610
movl %eax, %ebx
leaq -0x30(%rbp), %rdi
callq 0x67c0
leaq -0x48(%rbp), %rdi
callq 0x67c0
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x67c0
jmp 0x741a
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x67c0
movq %rbx, %rdi
callq 0x6740
nop
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/OpenTool.cpp
// Function: OpenTool::isTimedOut()
bool OpenTool::isTimedOut()
{
	bool timed_out = false;
	std::chrono::time_point<std::chrono::system_clock> current_time;

	if(timer_count != -1)//Server side
	{
		if(keep_alive_timer.GetCount() > timer_count)
		{
			SendKeepAlive();
			timer_count = keep_alive_timer.GetCount();
			timed_out =  false;
		}
	}
	else //Client
	{
		current_time = std::chrono::system_clock::now();

		std::chrono::duration<double> seconds = current_time - lastSentTime;

		if(seconds.count() > timeout)
			timed_out = true;
	}

	return timed_out;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x8a0(%rdi), %eax
cmpl $-0x1, %eax
je 0x7462
movl 0xa38(%rbx), %ecx
cmpl %eax, %ecx
jle 0x745e
movq %rbx, %rdi
callq 0x62d0
movl 0xa38(%rbx), %eax
movl %eax, 0x8a0(%rbx)
xorl %eax, %eax
jmp 0x7483
callq 0x6070
subq 0x898(%rbx), %rax
cvtsi2sd %rax, %xmm0
divsd 0x2bbd(%rip), %xmm0     # 0xa038
ucomisd 0x38(%rbx), %xmm0
seta %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/Header.cpp
// Function: Header::Packup()
void Header::Packup()	{

	int Spare = HeaderTotalLength - (Length_Size + Number_Size + Revision_Size + StationID_Size + SpindleID_Size);
	OutputStream << ""; //clear string stream

	OutputStream << std::setw(Length_Size) << std::setfill('0') << Length;

	OutputStream << std::setw(Number_Size) << std::setfill('0') << Number;

	OutputStream << std::setw(Revision_Size) << std::setfill('0') << Revision;

	OutputStream << std::setw(NoAckFlag_Size) << std::setfill('0') << static_cast<int>(NoAckFlag);

	OutputStream << std::setw(StationID_Size) << std::setfill('0') << StationID;

	OutputStream << std::setw(SpindleID_Size) << std::setfill('0') << SpindleID;

	OutputStream << std::setw(Spare) << std::setfill('0') << 0 << std::endl; // Fill rest of header


}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
leaq 0x1a0(%rdi), %rbx
leaq 0x2849(%rip), %rsi      # 0xa2db
movq %rbx, %rdi
callq 0x6460
movq 0x1a0(%r14), %rax
movq -0x18(%rax), %rax
pushq $0x4
popq %r12
movq %r12, 0x1b0(%r14,%rax)
pushq $0x30
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x6670
movl 0x318(%r14), %esi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%r14), %rax
movq -0x18(%rax), %rax
movq %r12, 0x1b0(%r14,%rax)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x6670
movl 0x31c(%r14), %esi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%r14), %rax
movq -0x18(%rax), %rax
movq $0x3, 0x1b0(%r14,%rax)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x6670
movl 0x320(%r14), %esi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%r14), %rax
movq -0x18(%rax), %rax
pushq $0x1
popq %r12
movq %r12, 0x1b0(%r14,%rax)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x6670
movzbl 0x324(%r14), %esi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%r14), %rax
movq -0x18(%rax), %rax
movq %r12, 0x1b0(%r14,%rax)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x6670
movl 0x328(%r14), %esi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%r14), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x1b0(%r14,%rax)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x6670
movl 0x32c(%r14), %esi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%r14), %rax
movq -0x18(%rax), %rax
movq $0x6, 0x1b0(%r14,%rax)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x6670
movq %rax, %rdi
xorl %esi, %esi
callq 0x6700
movq %rax, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x6230
nop
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/Header.cpp
// Function: Header::Unpack()
void Header::Unpack()	{

	InputStream >> std::setw(Length_Size)	>> Length;

	InputStream >> std::setw(Number_Size)	>> Number;

	InputStream >> std::setw(Revision_Size) >> Revision;

	InputStream >> std::setw(NoAckFlag_Size) >> NoAckFlag;

	InputStream >> std::setw(StationID_Size) >> StationID;

	InputStream >> std::setw(SpindleID_Size) >> SpindleID;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq 0x8(%rdi), %rax
movq -0x18(%rax), %rax
pushq $0x4
popq %r15
movq %r15, 0x18(%rdi,%rax)
leaq 0x318(%rdi), %rsi
movq %r14, %rdi
callq 0x62c0
movq 0x8(%rbx), %rax
movq -0x18(%rax), %rax
movq %r15, 0x18(%rbx,%rax)
leaq 0x31c(%rbx), %rsi
movq %r14, %rdi
callq 0x6760
movq 0x8(%rbx), %rax
movq -0x18(%rax), %rax
movq $0x3, 0x18(%rbx,%rax)
leaq 0x320(%rbx), %rsi
movq %r14, %rdi
callq 0x67e0
movq 0x8(%rbx), %rax
movq -0x18(%rax), %rax
pushq $0x1
popq %r15
movq %r15, 0x18(%rbx,%rax)
leaq 0x324(%rbx), %rsi
movq %r14, %rdi
callq 0x63d0
movq 0x8(%rbx), %rax
movq -0x18(%rax), %rax
movq %r15, 0x18(%rbx,%rax)
leaq 0x328(%rbx), %rsi
movq %r14, %rdi
callq 0x62c0
movq 0x8(%rbx), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x18(%rbx,%rax)
addq $0x32c, %rbx            # imm = 0x32C
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x62c0
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/MessageID.h
// Function: operator>>(std::istream&, MID_Number&)
inline std::istream & operator>>(std::istream & stream, MID_Number& number )
{
	unsigned placeholder = 0;
	if(stream >> placeholder)
		number = static_cast<MID_Number>(placeholder);
    return stream;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x14(%rbp), %rsi
andl $0x0, (%rsi)
callq 0x6730
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7d01
movl -0x14(%rbp), %eax
movl %eax, (%r14)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/MessageID.h
// Function: operator>>(std::istream&, MID_Revision&)
inline std::istream & operator>>(std::istream & stream, MID_Revision& revision )
{
	unsigned placeholder = 0;
	if(stream >> placeholder)
		revision = static_cast<MID_Revision>(placeholder);
    return stream;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x14(%rbp), %rsi
andl $0x0, (%rsi)
callq 0x6730
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7d3e
movl -0x14(%rbp), %eax
movl %eax, (%r14)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/Mid0002.cpp
// Function: Mid_0002::BuildRevision1()
void Mid_0002::BuildRevision1()
{
	OutputStream << std::setw(Index_size) << std::setfill('0') << 1;
	OutputStream << std::setw(Cell_Id_size) << std::setfill('0') << Cell_Id;
	OutputStream << std::setw(Index_size) << std::setfill('0') << 2;
	OutputStream << std::setw(Channel_Id_size) << std::setfill('0') << Channel_Id;
	OutputStream << std::setw(Index_size) << std::setfill('0') << 3;
	OutputStream << std::setw(Controller_Name_size) << std::setfill(' ') << Controller_Name;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x1a0(%rdi), %r14
movq 0x1a0(%rdi), %rax
movq -0x18(%rax), %rax
pushq $0x2
popq %r12
movq %r12, 0x1b0(%rdi,%rax)
pushq $0x30
popq %r15
movq %r14, %rdi
movl %r15d, %esi
callq 0x6670
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
movq $0x4, 0x1b0(%rbx,%rax)
movq %r14, %rdi
movl %r15d, %esi
callq 0x6670
movl 0x330(%rbx), %esi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
movq %r12, 0x1b0(%rbx,%rax)
movq %r14, %rdi
movl %r15d, %esi
callq 0x6670
pushq $0x2
popq %rsi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
movq %r12, 0x1b0(%rbx,%rax)
movq %r14, %rdi
movl %r15d, %esi
callq 0x6670
movl 0x334(%rbx), %esi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
movq %r12, 0x1b0(%rbx,%rax)
movq %r14, %rdi
movl %r15d, %esi
callq 0x6670
pushq $0x3
popq %rsi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
movq $0x19, 0x1b0(%rbx,%rax)
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x6670
addq $0x338, %rbx            # imm = 0x338
movq %rax, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x6400
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/Mid0002.cpp
// Function: Mid_0002::BuildRevision3()
void Mid_0002::BuildRevision3()
{
	BuildRevision2();
	OutputStream << std::setw(Index_size) << std::setfill('0') << 5;
	OutputStream << std::setw(Open_Protocol_version_size) << std::setfill('0') << Open_Protocol_version;
	OutputStream << std::setw(Index_size) << std::setfill('0') << 6;
	OutputStream << std::setw(Controller_software_version_size) << std::setfill('0') << Controller_software_version;
	OutputStream << std::setw(Index_size) << std::setfill('0') << 7;
	OutputStream << std::setw(Tool_software_version_size) << std::setfill(' ') << Tool_software_version;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x64e0
leaq 0x1a0(%rbx), %r14
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
pushq $0x2
popq %r12
movq %r12, 0x1b0(%rbx,%rax)
pushq $0x30
popq %r15
movq %r14, %rdi
movl %r15d, %esi
callq 0x6670
pushq $0x5
popq %rsi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
pushq $0x13
popq %r13
movq %r13, 0x1b0(%rbx,%rax)
movq %r14, %rdi
movl %r15d, %esi
callq 0x6670
leaq 0x378(%rbx), %rsi
movq %rax, %rdi
callq 0x6400
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
movq %r12, 0x1b0(%rbx,%rax)
movq %r14, %rdi
movl %r15d, %esi
callq 0x6670
pushq $0x6
popq %rsi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
movq %r13, 0x1b0(%rbx,%rax)
movq %r14, %rdi
movl %r15d, %esi
callq 0x6670
leaq 0x398(%rbx), %rsi
movq %rax, %rdi
callq 0x6400
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
movq %r12, 0x1b0(%rbx,%rax)
movq %r14, %rdi
movl %r15d, %esi
callq 0x6670
pushq $0x7
popq %rsi
movq %rax, %rdi
callq 0x6700
movq 0x1a0(%rbx), %rax
movq -0x18(%rax), %rax
movq %r13, 0x1b0(%rbx,%rax)
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x6670
addq $0x3b8, %rbx            # imm = 0x3B8
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6400
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/Mid0002.cpp
// Function: Mid_0002::PackupMid0002()
void Mid_0002::PackupMid0002()
{

	switch(Revision)
	{
		default:
		case MID_Revision::Revision1:
			 Length += Rev1_size;
			 Packup();
			 BuildRevision1();
			 OutputStream << '\0';
			 break;
		case MID_Revision::Revision2:
			 Length += Rev2_size;
			 Packup();
			 BuildRevision2();
			 OutputStream << '\0';
			 break;
		case MID_Revision::Revision3:
			 Length += Rev3_size;
			 Packup();
			 BuildRevision3();
			 OutputStream << '\0';
			 break;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x318(%rdi), %eax
movl 0x320(%rdi), %ecx
cmpl $0x2, %ecx
je 0x82b7
cmpl $0x3, %ecx
jne 0x82d3
addl $0x69, %eax
movl %eax, 0x318(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq %rbx, %rdi
callq 0x62b0
jmp 0x82ed
addl $0x2a, %eax
movl %eax, 0x318(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq %rbx, %rdi
callq 0x64e0
jmp 0x82ed
addl $0x25, %eax
movl %eax, 0x318(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq %rbx, %rdi
callq 0x6430
addq $0x1a0, %rbx            # imm = 0x1A0
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x64c0
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/Mid0002.cpp
// Function: Mid_0002::ParseRevision1()
void Mid_0002::ParseRevision1()
{
	int index;
	OutputStream >> std::setw(Index_size) >> index;
	OutputStream >> std::setw(Cell_Id_size) >> Cell_Id;
	OutputStream >> std::setw(Index_size) >> index;
	OutputStream >> std::setw(Channel_Id_size) >> Channel_Id;
	OutputStream >> std::setw(Index_size) >> index;
	OutputStream >> std::setw(Controller_Name_size) >> Controller_Name;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x190(%rdi), %r14
movq 0x190(%rdi), %rax
movq -0x18(%rax), %rax
pushq $0x2
popq %r12
movq %r12, 0x1a0(%rdi,%rax)
leaq -0x24(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x62c0
movq 0x190(%rbx), %rax
movq -0x18(%rax), %rax
movq $0x4, 0x1a0(%rbx,%rax)
leaq 0x330(%rbx), %rsi
movq %r14, %rdi
callq 0x62c0
movq 0x190(%rbx), %rax
movq -0x18(%rax), %rax
movq %r12, 0x1a0(%rbx,%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x62c0
movq 0x190(%rbx), %rax
movq -0x18(%rax), %rax
movq %r12, 0x1a0(%rbx,%rax)
leaq 0x334(%rbx), %rsi
movq %r14, %rdi
callq 0x62c0
movq 0x190(%rbx), %rax
movq -0x18(%rax), %rax
movq %r12, 0x1a0(%rbx,%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x62c0
movq 0x190(%rbx), %rax
movq -0x18(%rax), %rax
movq $0x19, 0x1a0(%rbx,%rax)
addq $0x338, %rbx            # imm = 0x338
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6520
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Neuromancer2701[P]OpenTool/src/Mid0002.cpp
// Function: Mid_0002::ParseRevision2()
void Mid_0002::ParseRevision2()
{
	int index;
	ParseRevision1();
	OutputStream >> std::setw(Index_size) >> index;
	OutputStream >> std::setw(Supplier_code_size) >> Supplier_code;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x6650
leaq 0x190(%rbx), %r14
movq 0x190(%rbx), %rax
movq -0x18(%rax), %rax
movq $0x2, 0x1a0(%rbx,%rax)
leaq -0x14(%rbp), %rsi
movq %r14, %rdi
callq 0x62c0
movq 0x190(%rbx), %rax
movq -0x18(%rax), %rax
movq $0x3, 0x1a0(%rbx,%rax)
addq $0x358, %rbx            # imm = 0x358
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6520
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop