// File: 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
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x0, 0x74(%rax)
movq 0x51a3(%rip), %rdi      # 0xdfd8
leaq 0x1b6f(%rip), %rsi      # 0xa9ab
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x70(%rbp)
movq 0x20(%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 0x8e70
movq -0x60(%rbp), %rdi
movq 0x514d(%rip), %rsi      # 0xdfc8
callq 0x31f0
jmp 0x8e82
leaq -0x28(%rbp), %rdi
callq 0x30f0
movq -0x78(%rbp), %rax
movq 0x20(%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 0x8ebe
jmp 0x8ee7
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x74(%rax)
jmp 0x8f16
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x30f0
jmp 0x9152
movq 0x50ea(%rip), %rdi      # 0xdfd8
leaq 0x1ac0(%rip), %rsi      # 0xa9b5
callq 0x31c0
movq %rax, %rdi
movq 0x50c4(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x74(%rax)
movq 0x50bb(%rip), %rdi      # 0xdfd8
leaq 0x1ae7(%rip), %rsi      # 0xaa0b
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x88(%rbp)
movq 0x20(%rax), %rdi
movq (%rdi), %rax
callq *(%rax)
movq -0x88(%rbp), %rdi
movl %eax, %esi
callq 0x3320
movq %rax, %rdi
movq 0x5070(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rdi
movq (%rdi), %rax
callq *(%rax)
movq -0x78(%rbp), %rcx
cmpl 0x64(%rcx), %eax
jne 0x8f82
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x74(%rax)
jmp 0x8fb1
movq 0x504f(%rip), %rdi      # 0xdfd8
leaq 0x1a33(%rip), %rsi      # 0xa9c3
callq 0x31c0
movq %rax, %rdi
movq 0x5029(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x74(%rax)
movq 0x5020(%rip), %rdi      # 0xdfd8
leaq 0x1a5f(%rip), %rsi      # 0xaa1e
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x90(%rbp)
movq 0x20(%rax), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x90(%rbp), %rdi
movl %eax, %esi
callq 0x3320
movq %rax, %rdi
movq 0x4fd4(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
cmpl $0x64, %eax
jne 0x901b
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x74(%rax)
jmp 0x904a
movq 0x4fb6(%rip), %rdi      # 0xdfd8
leaq 0x19aa(%rip), %rsi      # 0xa9d3
callq 0x31c0
movq %rax, %rdi
movq 0x4f90(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x74(%rax)
movq 0x4f87(%rip), %rdi      # 0xdfd8
leaq 0x198e(%rip), %rsi      # 0xa9e6
callq 0x31c0
movq %rax, %rdi
movq 0x4f61(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rdi
movl 0x68(%rax), %esi
movq (%rdi), %rax
callq *0x10(%rax)
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rdi
movl 0x6c(%rax), %esi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x4f43(%rip), %rdi      # 0xdfd8
leaq 0x1969(%rip), %rsi      # 0xaa05
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0xa0(%rbp)
movq 0x20(%rax), %rdi
movq (%rdi), %rax
callq *(%rax)
movq -0xa0(%rbp), %rdi
movl %eax, %esi
callq 0x3320
movq %rax, %rdi
movq 0x4ef8(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq 0x4efc(%rip), %rdi      # 0xdfd8
leaq 0x1935(%rip), %rsi      # 0xaa18
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x98(%rbp)
movq 0x20(%rax), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x98(%rbp), %rdi
movl %eax, %esi
callq 0x3320
movq %rax, %rdi
movq 0x4eb0(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
cmpl $0x3, 0x74(%rax)
jne 0x9149
movq 0x4eaa(%rip), %rdi      # 0xdfd8
leaq 0x18f4(%rip), %rsi      # 0xaa29
callq 0x31c0
movq %rax, %rdi
movq 0x4e84(%rip), %rsi      # 0xdfc8
callq 0x31f0
addq $0xa0, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x3330
nopl (%rax,%rax)