// File: /workspace/github_cpp_makefile_star2_O2/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 $0x188, %rsp            # imm = 0x188
leaq 0x601f(%rip), %rsi      # 0xd1ba
leaq -0x170(%rbp), %rdi
leaq -0x2c(%rbp), %rdx
callq 0x2b10
leaq 0x56a4(%rip), %rsi      # 0xc856
leaq -0x150(%rbp), %rdi
leaq -0x2b(%rbp), %rdx
callq 0x2b10
leaq 0x568d(%rip), %rsi      # 0xc856
leaq -0x130(%rbp), %rdi
leaq -0x2a(%rbp), %rdx
callq 0x2b10
leaq 0x5feb(%rip), %rsi      # 0xd1cb
leaq -0x110(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x2b10
leaq -0x170(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq -0x130(%rbp), %rdx
leaq -0x110(%rbp), %rcx
xorl %r8d, %r8d
callq 0x6a0c
leaq -0x110(%rbp), %rdi
callq 0x2080
leaq -0x130(%rbp), %rdi
callq 0x2080
leaq -0x150(%rbp), %rdi
callq 0x2080
leaq -0x170(%rbp), %rdi
callq 0x2080
movb $0x1, %r15b
movq 0x8d92(%rip), %rbx      # 0xffe0
leaq -0x2d(%rbp), %r14
movq 0x8d77(%rip), %r12      # 0xffd0
leaq 0x55f5(%rip), %r13      # 0xc855
cmpb $0x31, -0x2d(%rbp)
je 0x740f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21b0
movzbl -0x2d(%rbp), %eax
cmpl $0x77, %eax
je 0x7342
cmpl $0x73, %eax
jne 0x7260
pushq $0x28
popq %r15
subl $0x1, %r15d
jb 0x729e
movq %r12, %rdi
movq %r13, %rsi
callq 0x2120
jmp 0x728b
leaq -0x90(%rbp), %rdi
leaq 0x5f2e(%rip), %rsi      # 0xd1da
leaq -0x2c(%rbp), %rdx
callq 0x2b10
leaq -0x70(%rbp), %rdi
leaq 0x5596(%rip), %r15      # 0xc856
movq %r15, %rsi
leaq -0x2b(%rbp), %rdx
callq 0x2b10
leaq -0x190(%rbp), %rdi
movq %r15, %rsi
leaq -0x2a(%rbp), %rdx
callq 0x2b10
leaq -0x50(%rbp), %rdi
leaq 0x5f00(%rip), %rsi      # 0xd1ea
leaq -0x29(%rbp), %rdx
callq 0x2b10
leaq -0x90(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x190(%rbp), %r15
movq %r15, %rdx
leaq -0x50(%rbp), %rcx
xorl %r8d, %r8d
callq 0x6a0c
leaq -0x50(%rbp), %rdi
callq 0x2080
movq %r15, %rdi
callq 0x2080
leaq -0x70(%rbp), %rdi
callq 0x2080
leaq -0x90(%rbp), %rdi
callq 0x2080
xorl %r15d, %r15d
jmp 0x7260
pushq $0x28
popq %r15
subl $0x1, %r15d
jb 0x7359
movq %r12, %rdi
movq %r13, %rsi
callq 0x2120
jmp 0x7346
leaq -0xf0(%rbp), %rdi
leaq 0x5e53(%rip), %rsi      # 0xd1ba
leaq -0x2c(%rbp), %rdx
callq 0x2b10
leaq -0xd0(%rbp), %rdi
leaq 0x54d8(%rip), %r15      # 0xc856
movq %r15, %rsi
leaq -0x2b(%rbp), %rdx
callq 0x2b10
leaq -0x1b0(%rbp), %rdi
movq %r15, %rsi
leaq -0x2a(%rbp), %rdx
callq 0x2b10
leaq -0xb0(%rbp), %rdi
leaq 0x5e20(%rip), %rsi      # 0xd1cb
leaq -0x29(%rbp), %rdx
callq 0x2b10
leaq -0xf0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0x1b0(%rbp), %r15
movq %r15, %rdx
leaq -0xb0(%rbp), %rcx
xorl %r8d, %r8d
callq 0x6a0c
leaq -0xb0(%rbp), %rdi
callq 0x2080
movq %r15, %rdi
callq 0x2080
leaq -0xd0(%rbp), %rdi
callq 0x2080
leaq -0xf0(%rbp), %rdi
callq 0x2080
movb $0x1, %r15b
jmp 0x7260
andb $0x1, %r15b
movl %r15d, %eax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x2080
jmp 0x743c
movq %rax, %rbx
leaq -0x1b0(%rbp), %rdi
callq 0x2080
jmp 0x744d
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x2080
jmp 0x745e
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
jmp 0x74e1
jmp 0x74e8
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x2080
jmp 0x747a
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
callq 0x2080
jmp 0x748b
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x2080
jmp 0x7499
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
jmp 0x74e1
jmp 0x74e8
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x2080
jmp 0x74b8
movq %rax, %rbx
leaq -0x130(%rbp), %rdi
callq 0x2080
jmp 0x74c9
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
callq 0x2080
jmp 0x74da
movq %rax, %rbx
leaq -0x170(%rbp), %rdi
callq 0x2080
jmp 0x74eb
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2220