// File: Matteo-Grellier[P]RPG/Character.cpp
// Function: Character::increaseDefense(Character&, int)
void Character::increaseDefense(Character& other, int valueToIncrease) {
    other.defense += valueToIncrease;

    Menu::toScreen(
        "",
        this->name + " donne de la défense à " + other.name + " et ajoute " + to_string(valueToIncrease),
        other.name + " est à " + to_string(other.defense) + " de defense."
    );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x180(%rbp)
movl -0x14(%rbp), %edx
movq -0x10(%rbp), %rax
movl 0x34(%rax), %ecx
addl %edx, %ecx
movl %ecx, 0x34(%rax)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x33a0
movq -0x178(%rbp), %rdx
leaq 0x8314(%rip), %rsi      # 0xe512
leaq -0x38(%rbp), %rdi
callq 0x4500
jmp 0x6209
movq -0x180(%rbp), %rsi
addq $0x8, %rsi
leaq 0x7f56(%rip), %rdx      # 0xe171
leaq -0xd0(%rbp), %rdi
callq 0x66a0
jmp 0x6229
movq -0x10(%rbp), %rdx
addq $0x8, %rdx
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x6840
jmp 0x6246
leaq 0x7f3e(%rip), %rdx      # 0xe18b
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x4770
jmp 0x6262
movl -0x14(%rbp), %esi
leaq -0xf0(%rbp), %rdi
callq 0x6720
jmp 0x6273
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0x65d0
jmp 0x628c
movq -0x10(%rbp), %rsi
addq $0x8, %rsi
leaq 0x7ea6(%rip), %rdx      # 0xe141
leaq -0x150(%rbp), %rdi
callq 0x66a0
jmp 0x62a9
movq -0x10(%rbp), %rax
movl 0x34(%rax), %esi
leaq -0x170(%rbp), %rdi
callq 0x6720
jmp 0x62be
leaq -0x130(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq -0x170(%rbp), %rdx
callq 0x65d0
jmp 0x62da
leaq 0x7eb6(%rip), %rdx      # 0xe197
leaq -0x110(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x4770
jmp 0x62f6
leaq -0x38(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x93f0
jmp 0x630c
leaq -0x110(%rbp), %rdi
callq 0x3418
leaq -0x130(%rbp), %rdi
callq 0x3418
leaq -0x170(%rbp), %rdi
callq 0x3418
leaq -0x150(%rbp), %rdi
callq 0x3418
leaq -0x70(%rbp), %rdi
callq 0x3418
leaq -0xf0(%rbp), %rdi
callq 0x3418
leaq -0x90(%rbp), %rdi
callq 0x3418
leaq -0xb0(%rbp), %rdi
callq 0x3418
leaq -0xd0(%rbp), %rdi
callq 0x3418
leaq -0x38(%rbp), %rdi
callq 0x3418
leaq -0x39(%rbp), %rdi
callq 0x3280
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x64a9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x64a0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6494
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6488
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x647c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6470
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6467
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x645b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x644f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6443
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x3418
leaq -0x130(%rbp), %rdi
callq 0x3418
leaq -0x170(%rbp), %rdi
callq 0x3418
leaq -0x150(%rbp), %rdi
callq 0x3418
leaq -0x70(%rbp), %rdi
callq 0x3418
leaq -0xf0(%rbp), %rdi
callq 0x3418
leaq -0x90(%rbp), %rdi
callq 0x3418
leaq -0xb0(%rbp), %rdi
callq 0x3418
leaq -0xd0(%rbp), %rdi
callq 0x3418
leaq -0x38(%rbp), %rdi
callq 0x3418
leaq -0x39(%rbp), %rdi
callq 0x3280
movq -0x48(%rbp), %rdi
callq 0x3390
nopl (%rax,%rax)