// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl $0x0, 0x74(%rdi)
movq 0x525d(%rip), %r14      # 0xcfd8
leaq 0x1c29(%rip), %rsi      # 0x99ab
movl $0x9, %edx
movq %r14, %rdi
callq 0x21e0
movq 0x28(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3084
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x21e0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r15, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
leaq 0x18(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x7df5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x28(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x3084
movq 0x8(%r15), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x7e2d
movq 0x8(%rsp), %r15
testq %rdx, %rdx
je 0x7e37
movq (%rbx), %rsi
movq %r15, %rdi
callq 0x21b0
testl %eax, %eax
sete %r13b
jmp 0x7e3a
movq 0x8(%rsp), %r15
xorl %r13d, %r13d
jmp 0x7e3a
movb $0x1, %r13b
cmpq %r12, %r15
je 0x7e4f
movq 0x18(%rsp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x21a0
movl $0x1, %ebp
movl $0x1, %eax
testb %r13b, %r13b
jne 0x7e9e
leaq 0x1b50(%rip), %rsi      # 0x99b5
movl $0xd, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addl %eax, 0x74(%rbx)
movq 0x5130(%rip), %r14      # 0xcfd8
leaq 0x1b5c(%rip), %rsi      # 0x9a0b
movl $0xc, %edx
movq %r14, %rdi
callq 0x21e0
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r15, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movl 0x64(%rbx), %ecx
addl $0x32, %ecx
cmpl %ecx, %eax
je 0x7f4c
leaq 0x1ab0(%rip), %rsi      # 0x99c3
movl $0xf, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
addl %ebp, 0x74(%rbx)
movq 0x5082(%rip), %r14      # 0xcfd8
leaq 0x1ac1(%rip), %rsi      # 0x9a1e
movl $0xa, %edx
movq %r14, %rdi
callq 0x21e0
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r15, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movl $0x1, %ecx
cmpl $0x96, %eax
je 0x7ffe
leaq 0x1a0e(%rip), %rsi      # 0x99d3
movl $0x12, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
addl %ecx, 0x74(%rbx)
leaq 0x19de(%rip), %rsi      # 0x99e6
movl $0x1e, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
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 0x19a8(%rip), %rsi      # 0x9a05
movl $0x12, %edx
movq %r14, %rdi
callq 0x21e0
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r15, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
leaq 0x196a(%rip), %rsi      # 0x9a18
movl $0x10, %edx
movq %r14, %rdi
callq 0x21e0
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r15, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
cmpl $0x3, 0x74(%rbx)
jne 0x813a
leaq 0x1923(%rip), %rsi      # 0x9a29
movl $0x2b, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %r14, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x20d0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8167
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x22a0
nop