// File: /workspace/github_cpp_makefile_star2_O3/Matteo-Grellier[P]RPG/Priest.cpp
// Function: Priest::healSpell(Character&)
void Priest::healSpell(Character& other){
    if(!tryUsingMp(this->maxMp*0.10f)){
        return;
    }
    int healValue = (rand() % ( magicAttack*2 - magicAttack)+magicAttack );
    other.heal(healValue);

    Menu::toScreen(
        "",
        this->name + " soigne " + other.name,
        other.name + " est à " + to_string(other.getCurrentHp()) + " pv." 
    );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
cvtsi2ssl 0x44(%rdi), %xmm0
mulss 0x2ee5(%rip), %xmm0     # 0x92ac
cvttss2si %xmm0, %ecx
movl 0x48(%rdi), %eax
subl %ecx, %eax
jl 0x674e
movq %rdi, %r14
movq %rsi, %rbx
movl %eax, 0x48(%rdi)
callq 0x2050
movl 0x30(%r14), %esi
cltd
idivl %esi
addl %edx, %esi
movq %rbx, %rdi
callq 0x36d8
leaq -0xd8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x312b(%rip), %rdx      # 0x9532
leaq -0xe8(%rbp), %rdi
movq %rdx, %rsi
callq 0x33fc
leaq -0x78(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0x335e
leaq 0x3000(%rip), %rsi      # 0x943c
leaq -0x88(%rbp), %rdi
callq 0x2290
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
leaq -0x88(%rbp), %rdi
callq 0x2080
leaq -0xb8(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6489
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x648f
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xc0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x335e
leaq 0x2c91(%rip), %rsi      # 0x915d
leaq -0x48(%rbp), %rdi
callq 0x2290
movq %rbx, %rdi
callq 0x3d5c
movl %eax, %r14d
movl %eax, %ebx
negl %ebx
cmovsl %eax, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0x653b
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x6532
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x6538
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x653b
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x64ff
addl $-0x3, %r15d
jmp 0x653b
addl $-0x2, %r15d
jmp 0x653b
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq -0x98(%rbp), %r12
movq %r12, -0x10(%r12)
leaq -0xa8(%rbp), %rdi
movl $0x2d, %edx
callq 0x21f0
movl %r14d, %edi
addq -0xa8(%rbp), %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x4cb2
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0xa0(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x6595
movq -0x38(%rbp), %rdi
movq -0xa8(%rbp), %rsi
cmpq %rdi, %rax
jbe 0x65b7
movl $0xf, %edi
cmpq %r12, %rsi
je 0x65b2
movq -0x98(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x65c2
leaq -0x48(%rbp), %rdi
callq 0x2080
jmp 0x65d2
leaq -0xa8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
leaq -0x58(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x65f3
movq %rsi, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x65f9
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x60(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2b3c(%rip), %rsi      # 0x9158
leaq -0x68(%rbp), %rdi
callq 0x2290
leaq -0xf8(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6652
movq %rdx, -0x108(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xf8(%rbp)
jmp 0x6659
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rsi
leaq -0x108(%rbp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xe8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x70b2
movq -0x108(%rbp), %rdi
cmpq %r14, %rdi
je 0x66a5
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x21c0
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x66be
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xa8(%rbp), %rdi
cmpq %r12, %rdi
je 0x66d9
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
leaq -0xd8(%rbp), %rbx
leaq -0x78(%rbp), %r14
je 0x66f9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x671b
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x88(%rbp), %rdi
cmpq %r14, %rdi
je 0x6733
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xe8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x674e
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x21c0
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x108(%rbp), %rdi
cmpq %r14, %rdi
je 0x6783
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x6783
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67a1
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x67a1
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r12, %rdi
je 0x67e3
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x67e3
jmp 0x67e0
movq %rax, %rbx
jmp 0x67f8
movq %rax, %rbx
jmp 0x681a
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r15, %rdi
jne 0x682a
jmp 0x6836
movq %rax, %rbx
jmp 0x6836
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x67f8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x681a
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x6836
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xe8(%rbp), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x6858
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2270