// File: /workspace/github_cpp_makefile_star2_O3/giovifazi[P]knossos-bloodbath/Menu.cpp
// Function: loadMenu()
bool loadMenu()
{
	bool start = true;           // Cursore per selezionare start o quit
        char command;

stampaMenu("         <START>","","","          QUIT", 0);                               
	// Itera finche' non si seleziona qualcosa
	while (command != '1')
	{
	        std::cin>>command;
		
		// Cambia posizione cursore in base a command
		if (command == 'w')
		{	for (int i=0; i<40; i++, std::cout<<"\n");			//spazio fra una schermata e l'altra
			stampaMenu("         <START>","","","          QUIT", 0);
			start = true;
		}
		

		else if (command == 's')
		{
                        for (int i=0; i<40; i++, std::cout<<"\n");
			stampaMenu("          START","","","         <QUIT>", 0);
			start = false;
		}
        
        }
	return (start); 	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
leaq -0x128(%rbp), %rax
movq %rax, -0x38(%rbp)
movq %rax, -0x10(%rax)
leaq 0x6635(%rip), %rsi      # 0xf1ba
leaq 0x663e(%rip), %rdx      # 0xf1ca
leaq -0x138(%rbp), %rdi
callq 0x2d0e
leaq -0x1a8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x5cac(%rip), %rdx      # 0xe856
leaq -0x1b8(%rbp), %rdi
movq %rdx, %rsi
callq 0x2d0e
leaq -0x188(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x5c8a(%rip), %rdx      # 0xe856
leaq -0x198(%rbp), %rdi
movq %rdx, %rsi
callq 0x2d0e
leaq -0x168(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x65de(%rip), %rsi      # 0xf1cb
leaq 0x65e5(%rip), %rdx      # 0xf1d9
leaq -0x178(%rbp), %rdi
callq 0x2d0e
leaq -0x138(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
leaq -0x198(%rbp), %rdx
leaq -0x178(%rbp), %rcx
xorl %r8d, %r8d
callq 0x8178
movq -0x178(%rbp), %rdi
cmpq %r13, %rdi
je 0x8c3f
movq -0x168(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x198(%rbp), %rdi
cmpq %r12, %rdi
je 0x8c5a
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x1b8(%rbp), %rdi
cmpq %r15, %rdi
je 0x8c75
movq -0x1a8(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x8c97
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x2120
movb $0x1, %bl
cmpb $0x31, -0x29(%rbp)
je 0x8f66
leaq -0x108(%rbp), %rax
movq %rax, -0x38(%rbp)
movb $0x1, %bl
movq 0x9319(%rip), %r15      # 0x11fd0
leaq 0x5b97(%rip), %r12      # 0xe855
leaq 0x5b91(%rip), %r13      # 0xe856
movq 0x9314(%rip), %rdi      # 0x11fe0
leaq -0x29(%rbp), %rsi
callq 0x2190
movzbl -0x29(%rbp), %eax
cmpl $0x77, %eax
je 0x8e07
cmpl $0x73, %eax
jne 0x8f5e
movl $0x28, %ebx
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
decl %ebx
jne 0x8cf0
leaq -0x148(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq -0x158(%rbp), %rbx
movq %rbx, %rdi
leaq 0x64b7(%rip), %rsi      # 0xf1da
leaq 0x64bf(%rip), %rdx      # 0xf1e9
callq 0x2d0e
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x78(%rbp), %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x2d0e
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x2d0e
leaq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq -0xd8(%rbp), %r14
movq %r14, %rdi
leaq 0x646e(%rip), %rsi      # 0xf1ea
leaq 0x6476(%rip), %rdx      # 0xf1f9
callq 0x2d0e
movq %rbx, %rdi
leaq -0x78(%rbp), %rsi
leaq -0x58(%rbp), %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x8178
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x8dc0
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x8dd9
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x8df2
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x158(%rbp), %rdi
xorl %ebx, %ebx
leaq -0x148(%rbp), %rcx
jmp 0x8f48
movl $0x28, %ebx
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
decl %ebx
jne 0x8e0c
leaq -0x108(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x118(%rbp), %rbx
movq %rbx, %rdi
leaq 0x637b(%rip), %rsi      # 0xf1ba
leaq 0x6384(%rip), %rdx      # 0xf1ca
callq 0x2d0e
leaq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0xb8(%rbp), %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x2d0e
leaq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq -0x98(%rbp), %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x2d0e
leaq -0xe8(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0xf8(%rbp), %r14
movq %r14, %rdi
leaq 0x6321(%rip), %rsi      # 0xf1cb
leaq 0x6328(%rip), %rdx      # 0xf1d9
callq 0x2d0e
movq %rbx, %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x98(%rbp), %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x8178
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x8ef4
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x8f16
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x8f38
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x118(%rbp), %rdi
movb $0x1, %bl
leaq -0x108(%rbp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x8f5b
movq (%rax), %rsi
incq %rsi
callq 0x2120
movb -0x29(%rbp), %al
cmpb $0x31, %al
jne 0x8cc5
andb $0x1, %bl
movl %ebx, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x178(%rbp), %rdi
cmpq %r13, %rdi
je 0x8fa0
movq -0x168(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x8fa0
movq %rax, %rbx
movq -0x198(%rbp), %rdi
cmpq %r12, %rdi
je 0x8fc0
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x8fc0
movq %rax, %rbx
movq -0x1b8(%rbp), %rdi
cmpq %r15, %rdi
je 0x8fe0
movq -0x1a8(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x8fe0
movq %rax, %rbx
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
jmp 0x90fc
movq %rax, %rbx
jmp 0x909c
movq %rax, %rbx
jmp 0x90ea
movq %rax, %rbx
jmp 0x90be
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x905c
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x905c
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x907a
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x907a
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x90d1
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x90d1
movq %rax, %rbx
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x909c
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x90be
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
jmp 0x90fc
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x90ea
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x158(%rbp), %rdi
leaq -0x148(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq %rax, %rdi
je 0x9110
movq -0x38(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2120
movq %rbx, %rdi
callq 0x2210