// File: 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
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x0, 0x74(%rax)
movq 0x4e53(%rip), %rdi      # 0xdfd8
leaq 0x181f(%rip), %rsi      # 0xa9ab
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x70(%rbp)
movq 0x28(%rax), %rsi
leaq -0x28(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0x4144
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x3180
movq %rax, -0x60(%rbp)
jmp 0x91c0
movq -0x60(%rbp), %rdi
movq 0x4dfd(%rip), %rsi      # 0xdfc8
callq 0x31f0
jmp 0x91d2
leaq -0x28(%rbp), %rdi
callq 0x30f0
movq -0x78(%rbp), %rax
movq 0x28(%rax), %rsi
leaq -0x58(%rbp), %rdi
callq 0x4144
movq -0x78(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x9ad0
movb %al, -0x79(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x30f0
movb -0x79(%rbp), %al
testb $0x1, %al
jne 0x920e
jmp 0x9237
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x74(%rax)
jmp 0x9266
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x30f0
jmp 0x94a9
movq 0x4d9a(%rip), %rdi      # 0xdfd8
leaq 0x1770(%rip), %rsi      # 0xa9b5
callq 0x31c0
movq %rax, %rdi
movq 0x4d74(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x74(%rax)
movq 0x4d6b(%rip), %rdi      # 0xdfd8
leaq 0x1797(%rip), %rsi      # 0xaa0b
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x88(%rbp)
movq 0x28(%rax), %rdi
movq (%rdi), %rax
callq *(%rax)
movq -0x88(%rbp), %rdi
movl %eax, %esi
callq 0x3320
movq %rax, %rdi
movq 0x4d20(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movq 0x28(%rax), %rdi
movq (%rdi), %rax
callq *(%rax)
movq -0x78(%rbp), %rcx
movl 0x64(%rcx), %ecx
addl $0x32, %ecx
cmpl %ecx, %eax
jne 0x92d7
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x74(%rax)
jmp 0x9306
movq 0x4cfa(%rip), %rdi      # 0xdfd8
leaq 0x16de(%rip), %rsi      # 0xa9c3
callq 0x31c0
movq %rax, %rdi
movq 0x4cd4(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x74(%rax)
movq 0x4ccb(%rip), %rdi      # 0xdfd8
leaq 0x170a(%rip), %rsi      # 0xaa1e
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x90(%rbp)
movq 0x28(%rax), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x90(%rbp), %rdi
movl %eax, %esi
callq 0x3320
movq %rax, %rdi
movq 0x4c7f(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movq 0x28(%rax), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
cmpl $0x96, %eax
jne 0x9372
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x74(%rax)
jmp 0x93a1
movq 0x4c5f(%rip), %rdi      # 0xdfd8
leaq 0x1653(%rip), %rsi      # 0xa9d3
callq 0x31c0
movq %rax, %rdi
movq 0x4c39(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x74(%rax)
movq 0x4c30(%rip), %rdi      # 0xdfd8
leaq 0x1637(%rip), %rsi      # 0xa9e6
callq 0x31c0
movq %rax, %rdi
movq 0x4c0a(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movq 0x28(%rax), %rdi
movl 0x68(%rax), %esi
movq (%rdi), %rax
callq *0x10(%rax)
movq -0x78(%rbp), %rax
movq 0x28(%rax), %rdi
movl 0x6c(%rax), %esi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x4bec(%rip), %rdi      # 0xdfd8
leaq 0x1612(%rip), %rsi      # 0xaa05
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0xa0(%rbp)
movq 0x28(%rax), %rdi
movq (%rdi), %rax
callq *(%rax)
movq -0xa0(%rbp), %rdi
movl %eax, %esi
callq 0x3320
movq %rax, %rdi
movq 0x4ba1(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq 0x4ba5(%rip), %rdi      # 0xdfd8
leaq 0x15de(%rip), %rsi      # 0xaa18
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x98(%rbp)
movq 0x28(%rax), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x98(%rbp), %rdi
movl %eax, %esi
callq 0x3320
movq %rax, %rdi
movq 0x4b59(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
cmpl $0x3, 0x74(%rax)
jne 0x94a0
movq 0x4b53(%rip), %rdi      # 0xdfd8
leaq 0x159d(%rip), %rsi      # 0xaa29
callq 0x31c0
movq %rax, %rdi
movq 0x4b2d(%rip), %rsi      # 0xdfc8
callq 0x31f0
addq $0xa0, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x3330
nopw %cs:(%rax,%rax)