// File: /workspace/github_cpp_makefile_star2_O2/Naomi1745698[P]BigPrac/test.cpp
// Function: test::racerTesting()
void test::racerTesting(){														
	PASS = 0;
	std::cout << "Name is: " << playerShip1->getName() << std::endl;
	if(playerShip1->getName() == spaceshipName){
		PASS++;
	}else{
		std::cout << "ERROR getName" << std::endl;
		PASS--;
	};
	std::cout  << " Health is: " << playerShip1->getHealth() << std::endl;		
	if(playerShip1->getHealth() == health+50){
		PASS++;
	}else{
		std::cout << "ERROR getHealth" << std::endl;
		PASS--;
	};
	std::cout << " Fuel is: " << playerShip1->getResources() << std::endl;
	if(playerShip1->getResources() == 150){
		PASS++;
	}else{
		std::cout << "ERROR getResources" << std::endl;
		PASS--;
	};
	std::cout << "add 50 to both health and fuel" << std::endl;
	playerShip1->setHealth(addHealth);	// adds addHealth to the original health
	playerShip1->setResources(addResources); //adds addResources to the original Resources

	std::cout << " added Health is: " << playerShip1->getHealth() << std::endl;
	std::cout <<  " added Fuel is: " << playerShip1->getResources() << std::endl;
	if(PASS == 3){
		std::cout << "<---------------------PASS---------------->" << std::endl;
	};
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
andl $0x0, 0x74(%rdi)
movq 0x4d20(%rip), %rdi      # 0xbfd8
leaq 0x16ec(%rip), %rsi      # 0x89ab
callq 0x21a0
movq %rax, %r14
movq 0x28(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3094
movq %r14, %rdi
movq %r15, %rsi
callq 0x2160
movq %rax, %rdi
callq 0x22f8
leaq 0x8(%rsp), %rdi
callq 0x20d0
movq 0x28(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3094
movq %r14, %rdi
movq %rbx, %rsi
callq 0x78d1
movl %eax, %ebp
movq %r14, %rdi
callq 0x20d0
pushq $0x1
popq %r15
movl %r15d, %r14d
testb %bpl, %bpl
jne 0x7346
pushq $-0x1
popq %r14
movq 0x4ca6(%rip), %rdi      # 0xbfd8
leaq 0x167c(%rip), %rsi      # 0x89b5
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
addl %r14d, 0x74(%rbx)
movq 0x4c87(%rip), %rdi      # 0xbfd8
leaq 0x16b3(%rip), %rsi      # 0x8a0b
callq 0x21a0
movq %rax, %r14
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %rdi
callq 0x22f8
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movl 0x64(%rbx), %edx
addl $0x32, %edx
movl %r15d, %ecx
cmpl %edx, %eax
je 0x73af
movq 0x4c40(%rip), %rdi      # 0xbfd8
leaq 0x1624(%rip), %rsi      # 0x89c3
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
pushq $-0x1
popq %rcx
addl %ecx, 0x74(%rbx)
movq 0x4c1f(%rip), %rdi      # 0xbfd8
leaq 0x165e(%rip), %rsi      # 0x8a1e
callq 0x21a0
movq %rax, %r14
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %rdi
callq 0x22f8
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
cmpl $0x96, %eax
je 0x7414
movq 0x4bdc(%rip), %rdi      # 0xbfd8
leaq 0x15d0(%rip), %rsi      # 0x89d3
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
pushq $-0x1
popq %r15
addl %r15d, 0x74(%rbx)
movq 0x4bb9(%rip), %r14      # 0xbfd8
leaq 0x15c0(%rip), %rsi      # 0x89e6
movq %r14, %rdi
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
movq 0x28(%rbx), %rdi
movl 0x68(%rbx), %esi
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x28(%rbx), %rdi
movl 0x6c(%rbx), %esi
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x15ae(%rip), %rsi      # 0x8a05
movq %r14, %rdi
callq 0x21a0
movq %rax, %r15
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movq %r15, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %rdi
callq 0x22f8
leaq 0x1594(%rip), %rsi      # 0x8a18
movq %r14, %rdi
callq 0x21a0
movq %rax, %r14
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %rdi
callq 0x22f8
cmpl $0x3, 0x74(%rbx)
jne 0x74cc
movq 0x4b20(%rip), %rdi      # 0xbfd8
leaq 0x156a(%rip), %rsi      # 0x8a29
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20d0
movq %rbx, %rdi
callq 0x22a0