// File: Matteo-Grellier[P]RPG/Menu.cpp
// Function: Menu::end(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Menu::end(string endtype){

    if ( endtype == "win") {
        toScreen(
        "",
        "you won mate, well done !",
        "");
        sleep(1);

    } else if ( endtype == "defeat") {
        toScreen(
        "",
        "you failed poor noob...",
        "");
        sleep(1);
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x110(%rbp)
movq %rdi, -0x8(%rbp)
leaq 0x3e6a(%rip), %rsi      # 0xe607
callq 0xaea0
testb $0x1, %al
jne 0xa7ab
jmp 0xa904
leaq -0x29(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x33a0
movq -0x118(%rbp), %rdx
leaq 0x3d49(%rip), %rsi      # 0xe512
leaq -0x28(%rbp), %rdi
callq 0x4500
jmp 0xa7d4
leaq -0x61(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x33a0
movq -0x120(%rbp), %rdx
leaq 0x3e20(%rip), %rsi      # 0xe612
leaq -0x60(%rbp), %rdi
callq 0x4500
jmp 0xa7fd
leaq -0x89(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x33a0
movq -0x128(%rbp), %rdx
leaq 0x3cf4(%rip), %rsi      # 0xe512
leaq -0x88(%rbp), %rdi
callq 0x4500
jmp 0xa82c
leaq -0x28(%rbp), %rdi
leaq -0x60(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0x93f0
jmp 0xa842
leaq -0x88(%rbp), %rdi
callq 0x3418
leaq -0x89(%rbp), %rdi
callq 0x3280
leaq -0x60(%rbp), %rdi
callq 0x3418
leaq -0x61(%rbp), %rdi
callq 0x3280
leaq -0x28(%rbp), %rdi
callq 0x3418
leaq -0x29(%rbp), %rdi
callq 0x3280
movl $0x1, %edi
callq 0x31b0
jmp 0xaaa2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xa8f6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xa8e4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xa8cf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x3418
leaq -0x89(%rbp), %rdi
callq 0x3280
leaq -0x60(%rbp), %rdi
callq 0x3418
leaq -0x61(%rbp), %rdi
callq 0x3280
leaq -0x28(%rbp), %rdi
callq 0x3418
leaq -0x29(%rbp), %rdi
callq 0x3280
jmp 0xaaab
movq -0x110(%rbp), %rdi
leaq 0x3cf9(%rip), %rsi      # 0xe60b
callq 0xaea0
testb $0x1, %al
jne 0xa920
jmp 0xaaa0
leaq -0xb1(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x33a0
movq -0x130(%rbp), %rdx
leaq 0x3bd1(%rip), %rsi      # 0xe512
leaq -0xb0(%rbp), %rdi
callq 0x4500
jmp 0xa94f
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x33a0
movq -0x138(%rbp), %rdx
leaq 0x3cbc(%rip), %rsi      # 0xe62c
leaq -0xd8(%rbp), %rdi
callq 0x4500
jmp 0xa97e
leaq -0x101(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x33a0
movq -0x140(%rbp), %rdx
leaq 0x3b73(%rip), %rsi      # 0xe512
leaq -0x100(%rbp), %rdi
callq 0x4500
jmp 0xa9ad
leaq -0xb0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
leaq -0x100(%rbp), %rdx
callq 0x93f0
jmp 0xa9c9
leaq -0x100(%rbp), %rdi
callq 0x3418
leaq -0x101(%rbp), %rdi
callq 0x3280
leaq -0xd8(%rbp), %rdi
callq 0x3418
leaq -0xd9(%rbp), %rdi
callq 0x3280
leaq -0xb0(%rbp), %rdi
callq 0x3418
leaq -0xb1(%rbp), %rdi
callq 0x3280
movl $0x1, %edi
callq 0x31b0
jmp 0xaaa0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xaa92
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xaa7a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0xaa62
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x3418
leaq -0x101(%rbp), %rdi
callq 0x3280
leaq -0xd8(%rbp), %rdi
callq 0x3418
leaq -0xd9(%rbp), %rdi
callq 0x3280
leaq -0xb0(%rbp), %rdi
callq 0x3418
leaq -0xb1(%rbp), %rdi
callq 0x3280
jmp 0xaaab
jmp 0xaaa2
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x3390
nopw %cs:(%rax,%rax)
nop