// File: /workspace/github_cpp_makefile_star2_O2/Naomi1745698[P]BigPrac/test.cpp
// Function: test::gunShipTesting()
void test::gunShipTesting(){							
	PASS = 0;
	std::cout << "Name is: " << playerShip->getName() << std::endl;
	if(playerShip->getName() == spaceshipName){
		PASS++;
	}else{
		std::cout << "ERROR getName" << std::endl;
		PASS--;
	};
	std::cout  << " Health is: " << playerShip->getHealth() << std::endl;	
	if(playerShip->getHealth() == health){
		PASS++;
	}else{
		std::cout << "ERROR getHealth" << std::endl;
		PASS--;
	};
	std::cout << " Fuel is: " << playerShip->getResources() << std::endl;
	if(playerShip->getResources() == 100){
		PASS++;
	}else{
		std::cout << "ERROR getResources" << std::endl;
		PASS--;
	}
	std::cout << "add 50 to both health and fuel" << std::endl;
	playerShip->setHealth(addHealth);	// adds addHealth to the original health
	playerShip->setResources(addResources); //adds addResources to the original Resources

	std::cout << " added Health is: " << playerShip->getHealth() << std::endl;
	std::cout <<  " added Fuel is: " << playerShip->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 0x4f66(%rip), %rdi      # 0xbfd8
leaq 0x1932(%rip), %rsi      # 0x89ab
callq 0x21a0
movq %rax, %r14
movq 0x20(%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 0x20(%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 0x7100
pushq $-0x1
popq %r14
movq 0x4eec(%rip), %rdi      # 0xbfd8
leaq 0x18c2(%rip), %rsi      # 0x89b5
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
addl %r14d, 0x74(%rbx)
movq 0x4ecd(%rip), %rdi      # 0xbfd8
leaq 0x18f9(%rip), %rsi      # 0x8a0b
callq 0x21a0
movq %rax, %r14
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %rdi
callq 0x22f8
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movl %r15d, %ecx
cmpl 0x64(%rbx), %eax
je 0x7164
movq 0x4e8b(%rip), %rdi      # 0xbfd8
leaq 0x186f(%rip), %rsi      # 0x89c3
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
pushq $-0x1
popq %rcx
addl %ecx, 0x74(%rbx)
movq 0x4e6a(%rip), %rdi      # 0xbfd8
leaq 0x18a9(%rip), %rsi      # 0x8a1e
callq 0x21a0
movq %rax, %r14
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %rdi
callq 0x22f8
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
cmpl $0x64, %eax
je 0x71c7
movq 0x4e29(%rip), %rdi      # 0xbfd8
leaq 0x181d(%rip), %rsi      # 0x89d3
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
pushq $-0x1
popq %r15
addl %r15d, 0x74(%rbx)
movq 0x4e06(%rip), %r14      # 0xbfd8
leaq 0x180d(%rip), %rsi      # 0x89e6
movq %r14, %rdi
callq 0x21a0
movq %rax, %rdi
callq 0x22f8
movq 0x20(%rbx), %rdi
movl 0x68(%rbx), %esi
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x20(%rbx), %rdi
movl 0x6c(%rbx), %esi
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x17fb(%rip), %rsi      # 0x8a05
movq %r14, %rdi
callq 0x21a0
movq %rax, %r15
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
callq *(%rax)
movq %r15, %rdi
movl %eax, %esi
callq 0x2290
movq %rax, %rdi
callq 0x22f8
leaq 0x17e1(%rip), %rsi      # 0x8a18
movq %r14, %rdi
callq 0x21a0
movq %rax, %r14
movq 0x20(%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 0x727f
movq 0x4d6d(%rip), %rdi      # 0xbfd8
leaq 0x17b7(%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
nop