// File: 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
subq $0x260, %rsp            # imm = 0x260
movb $0x1, -0x1(%rbp)
leaq -0x29(%rbp), %rdi
movq %rdi, -0x200(%rbp)
callq 0x2330
movq -0x200(%rbp), %rdx
leaq 0x6b31(%rip), %rsi      # 0x112ee
leaq -0x28(%rbp), %rdi
callq 0x3180
jmp 0xa7c8
leaq -0x61(%rbp), %rdi
movq %rdi, -0x208(%rbp)
callq 0x2330
movq -0x208(%rbp), %rdx
leaq 0x6194(%rip), %rsi      # 0x1097a
leaq -0x60(%rbp), %rdi
callq 0x3180
jmp 0xa7f1
leaq -0x89(%rbp), %rdi
movq %rdi, -0x210(%rbp)
callq 0x2330
movq -0x210(%rbp), %rdx
leaq 0x6168(%rip), %rsi      # 0x1097a
leaq -0x88(%rbp), %rdi
callq 0x3180
jmp 0xa820
leaq -0xb1(%rbp), %rdi
movq %rdi, -0x218(%rbp)
callq 0x2330
movq -0x218(%rbp), %rdx
leaq 0x6abe(%rip), %rsi      # 0x112ff
leaq -0xb0(%rbp), %rdi
callq 0x3180
jmp 0xa84f
leaq -0x28(%rbp), %rdi
leaq -0x60(%rbp), %rsi
leaq -0x88(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
xorl %r8d, %r8d
callq 0x9810
jmp 0xa86f
leaq -0xb0(%rbp), %rdi
callq 0x2100
leaq -0xb1(%rbp), %rdi
callq 0x2200
leaq -0x88(%rbp), %rdi
callq 0x2100
leaq -0x89(%rbp), %rdi
callq 0x2200
leaq -0x60(%rbp), %rdi
callq 0x2100
leaq -0x61(%rbp), %rdi
callq 0x2200
leaq -0x28(%rbp), %rdi
callq 0x2100
leaq -0x29(%rbp), %rdi
callq 0x2200
movsbl -0x2(%rbp), %eax
cmpl $0x31, %eax
je 0xae02
movq 0x9709(%rip), %rdi      # 0x13fe0
leaq -0x2(%rbp), %rsi
callq 0x2290
movsbl -0x2(%rbp), %eax
cmpl $0x77, %eax
jne 0xabc1
movl $0x0, -0xb8(%rbp)
cmpl $0x28, -0xb8(%rbp)
jge 0xa9ca
jmp 0xa906
movl -0xb8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb8(%rbp)
movq 0x96b4(%rip), %rdi      # 0x13fd0
leaq 0x6056(%rip), %rsi      # 0x10979
callq 0x21a0
jmp 0xa8f7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xa9bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xa9aa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xa995
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xa97d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x2100
leaq -0xb1(%rbp), %rdi
callq 0x2200
leaq -0x88(%rbp), %rdi
callq 0x2100
leaq -0x89(%rbp), %rdi
callq 0x2200
leaq -0x60(%rbp), %rdi
callq 0x2100
leaq -0x61(%rbp), %rdi
callq 0x2200
leaq -0x28(%rbp), %rdi
callq 0x2100
leaq -0x29(%rbp), %rdi
callq 0x2200
jmp 0xae10
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x220(%rbp)
callq 0x2330
movq -0x220(%rbp), %rdx
leaq 0x6903(%rip), %rsi      # 0x112ee
leaq -0xd8(%rbp), %rdi
callq 0x3180
jmp 0xa9f9
leaq -0x101(%rbp), %rdi
movq %rdi, -0x228(%rbp)
callq 0x2330
movq -0x228(%rbp), %rdx
leaq 0x5f60(%rip), %rsi      # 0x1097a
leaq -0x100(%rbp), %rdi
callq 0x3180
jmp 0xaa28
leaq -0x129(%rbp), %rdi
movq %rdi, -0x230(%rbp)
callq 0x2330
movq -0x230(%rbp), %rdx
leaq 0x5f31(%rip), %rsi      # 0x1097a
leaq -0x128(%rbp), %rdi
callq 0x3180
jmp 0xaa57
leaq -0x151(%rbp), %rdi
movq %rdi, -0x238(%rbp)
callq 0x2330
movq -0x238(%rbp), %rdx
leaq 0x6887(%rip), %rsi      # 0x112ff
leaq -0x150(%rbp), %rdi
callq 0x3180
jmp 0xaa86
leaq -0xd8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
leaq -0x128(%rbp), %rdx
leaq -0x150(%rbp), %rcx
xorl %r8d, %r8d
callq 0x9810
jmp 0xaaac
leaq -0x150(%rbp), %rdi
callq 0x2100
leaq -0x151(%rbp), %rdi
callq 0x2200
leaq -0x128(%rbp), %rdi
callq 0x2100
leaq -0x129(%rbp), %rdi
callq 0x2200
leaq -0x100(%rbp), %rdi
callq 0x2100
leaq -0x101(%rbp), %rdi
callq 0x2200
leaq -0xd8(%rbp), %rdi
callq 0x2100
leaq -0xd9(%rbp), %rdi
callq 0x2200
movb $0x1, -0x1(%rbp)
jmp 0xadfd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xabb0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xab98
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xab80
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xab68
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x150(%rbp), %rdi
callq 0x2100
leaq -0x151(%rbp), %rdi
callq 0x2200
leaq -0x128(%rbp), %rdi
callq 0x2100
leaq -0x129(%rbp), %rdi
callq 0x2200
leaq -0x100(%rbp), %rdi
callq 0x2100
leaq -0x101(%rbp), %rdi
callq 0x2200
leaq -0xd8(%rbp), %rdi
callq 0x2100
leaq -0xd9(%rbp), %rdi
callq 0x2200
jmp 0xae10
movsbl -0x2(%rbp), %eax
cmpl $0x73, %eax
jne 0xadfb
movl $0x0, -0x158(%rbp)
cmpl $0x28, -0x158(%rbp)
jge 0xac07
jmp 0xabe3
movl -0x158(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x158(%rbp)
movq 0x93d7(%rip), %rdi      # 0x13fd0
leaq 0x5d79(%rip), %rsi      # 0x10979
callq 0x21a0
jmp 0xabd8
leaq -0x179(%rbp), %rdi
movq %rdi, -0x240(%rbp)
callq 0x2330
movq -0x240(%rbp), %rdx
leaq 0x66e6(%rip), %rsi      # 0x1130e
leaq -0x178(%rbp), %rdi
callq 0x3180
jmp 0xac36
leaq -0x1a1(%rbp), %rdi
movq %rdi, -0x248(%rbp)
callq 0x2330
movq -0x248(%rbp), %rdx
leaq 0x5d23(%rip), %rsi      # 0x1097a
leaq -0x1a0(%rbp), %rdi
callq 0x3180
jmp 0xac65
leaq -0x1c9(%rbp), %rdi
movq %rdi, -0x250(%rbp)
callq 0x2330
movq -0x250(%rbp), %rdx
leaq 0x5cf4(%rip), %rsi      # 0x1097a
leaq -0x1c8(%rbp), %rdi
callq 0x3180
jmp 0xac94
leaq -0x1f1(%rbp), %rdi
movq %rdi, -0x258(%rbp)
callq 0x2330
movq -0x258(%rbp), %rdx
leaq 0x6669(%rip), %rsi      # 0x1131e
leaq -0x1f0(%rbp), %rdi
callq 0x3180
jmp 0xacc3
leaq -0x178(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
leaq -0x1c8(%rbp), %rdx
leaq -0x1f0(%rbp), %rcx
xorl %r8d, %r8d
callq 0x9810
jmp 0xace9
leaq -0x1f0(%rbp), %rdi
callq 0x2100
leaq -0x1f1(%rbp), %rdi
callq 0x2200
leaq -0x1c8(%rbp), %rdi
callq 0x2100
leaq -0x1c9(%rbp), %rdi
callq 0x2200
leaq -0x1a0(%rbp), %rdi
callq 0x2100
leaq -0x1a1(%rbp), %rdi
callq 0x2200
leaq -0x178(%rbp), %rdi
callq 0x2100
leaq -0x179(%rbp), %rdi
callq 0x2200
movb $0x0, -0x1(%rbp)
jmp 0xadfb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xaded
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xadd5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xadbd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xada5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x1f0(%rbp), %rdi
callq 0x2100
leaq -0x1f1(%rbp), %rdi
callq 0x2200
leaq -0x1c8(%rbp), %rdi
callq 0x2100
leaq -0x1c9(%rbp), %rdi
callq 0x2200
leaq -0x1a0(%rbp), %rdi
callq 0x2100
leaq -0x1a1(%rbp), %rdi
callq 0x2200
leaq -0x178(%rbp), %rdi
callq 0x2100
leaq -0x179(%rbp), %rdi
callq 0x2200
jmp 0xae10
jmp 0xadfd
jmp 0xa8c3
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x260, %rsp            # imm = 0x260
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x2320
nopl (%rax)