// File: /workspace/github_cpp_makefile_star2_O1/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 0x6661(%rip), %rsi      # 0xf1ba
leaq 0x666a(%rip), %rdx      # 0xf1ca
leaq -0x138(%rbp), %rdi
callq 0x2cfa
leaq -0x1a8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x5cd8(%rip), %rdx      # 0xe856
leaq -0x1b8(%rbp), %rdi
movq %rdx, %rsi
callq 0x2cfa
leaq -0x188(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x5cb6(%rip), %rdx      # 0xe856
leaq -0x198(%rbp), %rdi
movq %rdx, %rsi
callq 0x2cfa
leaq -0x168(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x660a(%rip), %rsi      # 0xf1cb
leaq 0x6611(%rip), %rdx      # 0xf1d9
leaq -0x178(%rbp), %rdi
callq 0x2cfa
leaq -0x138(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
leaq -0x198(%rbp), %rdx
leaq -0x178(%rbp), %rcx
xorl %r8d, %r8d
callq 0x814c
movq -0x178(%rbp), %rdi
cmpq %r13, %rdi
je 0x8c13
movq -0x168(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x198(%rbp), %rdi
cmpq %r12, %rdi
je 0x8c2e
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x1b8(%rbp), %rdi
cmpq %r15, %rdi
je 0x8c49
movq -0x1a8(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x8c6b
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x2120
movb $0x1, %bl
cmpb $0x31, -0x29(%rbp)
je 0x8f39
leaq -0x108(%rbp), %rax
movq %rax, -0x38(%rbp)
movb $0x1, %bl
movq 0x9345(%rip), %r15      # 0x11fd0
leaq 0x5bc3(%rip), %r12      # 0xe855
leaq 0x5bbd(%rip), %r13      # 0xe856
movq 0x9340(%rip), %rdi      # 0x11fe0
leaq -0x29(%rbp), %rsi
callq 0x2190
movzbl -0x29(%rbp), %eax
cmpl $0x77, %eax
je 0x8ddb
cmpl $0x73, %eax
jne 0x8f2f
movl $0x28, %ebx
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
decl %ebx
jne 0x8cc4
leaq -0x148(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq -0x158(%rbp), %rbx
movq %rbx, %rdi
leaq 0x64e3(%rip), %rsi      # 0xf1da
leaq 0x64eb(%rip), %rdx      # 0xf1e9
callq 0x2cfa
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x78(%rbp), %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x2cfa
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x2cfa
leaq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq -0xd8(%rbp), %r14
movq %r14, %rdi
leaq 0x649a(%rip), %rsi      # 0xf1ea
leaq 0x64a2(%rip), %rdx      # 0xf1f9
callq 0x2cfa
movq %rbx, %rdi
leaq -0x78(%rbp), %rsi
leaq -0x58(%rbp), %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x814c
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x8d94
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x8dad
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x8dc6
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x158(%rbp), %rdi
xorl %ebx, %ebx
leaq -0x148(%rbp), %rcx
jmp 0x8f1c
movl $0x28, %ebx
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2140
decl %ebx
jne 0x8de0
leaq -0x108(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x118(%rbp), %rbx
movq %rbx, %rdi
leaq 0x63a7(%rip), %rsi      # 0xf1ba
leaq 0x63b0(%rip), %rdx      # 0xf1ca
callq 0x2cfa
leaq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0xb8(%rbp), %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x2cfa
leaq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq -0x98(%rbp), %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x2cfa
leaq -0xe8(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0xf8(%rbp), %r14
movq %r14, %rdi
leaq 0x634d(%rip), %rsi      # 0xf1cb
leaq 0x6354(%rip), %rdx      # 0xf1d9
callq 0x2cfa
movq %rbx, %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x98(%rbp), %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x814c
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x8ec8
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x8eea
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x8f0c
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 0x8f2f
movq (%rax), %rsi
incq %rsi
callq 0x2120
cmpb $0x31, -0x29(%rbp)
jne 0x8c99
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 0x8f73
movq -0x168(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x8f73
movq %rax, %rbx
movq -0x198(%rbp), %rdi
cmpq %r12, %rdi
je 0x8f93
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x8f93
movq %rax, %rbx
movq -0x1b8(%rbp), %rdi
cmpq %r15, %rdi
je 0x8fb3
movq -0x1a8(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x8fb3
movq %rax, %rbx
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
jmp 0x90cf
movq %rax, %rbx
jmp 0x906f
movq %rax, %rbx
jmp 0x90bd
movq %rax, %rbx
jmp 0x9091
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x902f
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x902f
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x904d
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x904d
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x90a4
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2120
jmp 0x90a4
movq %rax, %rbx
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x906f
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x9091
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
jmp 0x90cf
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x90bd
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x2120
movq -0x158(%rbp), %rdi
leaq -0x148(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq %rax, %rdi
je 0x90e3
movq -0x38(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2120
movq %rbx, %rdi
callq 0x2210