// File: Matteo-Grellier[P]RPG/Character.cpp
// Function: Character::drink(Potion&)
void Character::drink(Potion& p){
    this->heal(p.getHealedHp());

    Menu::toScreen(
        "",
        this->name + " a bu une potion qui lui a redonné " + to_string(p.getHealedHp()) + " pv.",
        this->name + " est à " + to_string(this->getCurrentHp()) + " pv."
    );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8470
movq -0x158(%rbp), %rdi
movl %eax, %esi
callq 0x5a60
leaq -0x31(%rbp), %rdi
movq %rdi, -0x150(%rbp)
callq 0x33a0
movq -0x150(%rbp), %rdx
leaq 0x8a1f(%rip), %rsi      # 0xe512
leaq -0x30(%rbp), %rdi
callq 0x4500
jmp 0x5afe
movq -0x158(%rbp), %rsi
addq $0x8, %rsi
leaq 0x8607(%rip), %rdx      # 0xe117
leaq -0xa8(%rbp), %rdi
callq 0x66a0
jmp 0x5b1e
movq -0x10(%rbp), %rdi
callq 0x8470
movl %eax, -0x15c(%rbp)
jmp 0x5b2f
movl -0x15c(%rbp), %esi
leaq -0xc8(%rbp), %rdi
callq 0x6720
jmp 0x5b43
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
callq 0x65d0
jmp 0x5b5f
leaq 0x85d6(%rip), %rdx      # 0xe13c
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x4770
jmp 0x5b78
movq -0x158(%rbp), %rsi
addq $0x8, %rsi
leaq 0x85b7(%rip), %rdx      # 0xe141
leaq -0x128(%rbp), %rdi
callq 0x66a0
jmp 0x5b98
movq -0x158(%rbp), %rdi
callq 0x5da0
movl %eax, -0x160(%rbp)
jmp 0x5bac
movl -0x160(%rbp), %esi
leaq -0x148(%rbp), %rdi
callq 0x6720
jmp 0x5bc0
leaq -0x108(%rbp), %rdi
leaq -0x128(%rbp), %rsi
leaq -0x148(%rbp), %rdx
callq 0x65d0
jmp 0x5bdc
leaq 0x8559(%rip), %rdx      # 0xe13c
leaq -0xe8(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x4770
jmp 0x5bf8
leaq -0x30(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0x93f0
jmp 0x5c0e
leaq -0xe8(%rbp), %rdi
callq 0x3418
leaq -0x108(%rbp), %rdi
callq 0x3418
leaq -0x148(%rbp), %rdi
callq 0x3418
leaq -0x128(%rbp), %rdi
callq 0x3418
leaq -0x68(%rbp), %rdi
callq 0x3418
leaq -0x88(%rbp), %rdi
callq 0x3418
leaq -0xc8(%rbp), %rdi
callq 0x3418
leaq -0xa8(%rbp), %rdi
callq 0x3418
leaq -0x30(%rbp), %rdi
callq 0x3418
leaq -0x31(%rbp), %rdi
callq 0x3280
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5d82
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5d79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5d6d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5d61
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5d55
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5d4c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5d40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5d34
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5d28
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x3418
leaq -0x108(%rbp), %rdi
callq 0x3418
leaq -0x148(%rbp), %rdi
callq 0x3418
leaq -0x128(%rbp), %rdi
callq 0x3418
leaq -0x68(%rbp), %rdi
callq 0x3418
leaq -0x88(%rbp), %rdi
callq 0x3418
leaq -0xc8(%rbp), %rdi
callq 0x3418
leaq -0xa8(%rbp), %rdi
callq 0x3418
leaq -0x30(%rbp), %rdi
callq 0x3418
leaq -0x31(%rbp), %rdi
callq 0x3280
movq -0x40(%rbp), %rdi
callq 0x3390
nopw %cs:(%rax,%rax)