// File: /workspace/github_cpp_makefile_star2_O1/Matteo-Grellier[P]RPG/Mage.cpp
// Function: Mage::fireball(Character&)
void Mage::fireball(Character& other){
    if(!tryUsingMp(this->maxMp*0.10f)){
        return;
    }
    int randomNumber = rand() % 10;
    if(randomNumber == 0){

        Menu::toScreen(
            "",
            this->name + " lance une boule de feu sur " + other.name + " mais trébuche sur un tronc d'arbre et loupe la cible..." ,
            ""
        );
        return;
    }
    other.receiveDamage(this->magicAttack);

    Menu::toScreen(
        "",
        this->name + " lance une boule de feu sur " + other.name + " et lui inflige " + to_string(magicAttack) + " de dégats" ,
        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 $0x1c8, %rsp            # imm = 0x1C8
cvtsi2ssl 0x48(%rdi), %xmm0
mulss 0x43c3(%rip), %xmm0     # 0x92ac
cvttss2si %xmm0, %ecx
movl 0x44(%rdi), %eax
subl %ecx, %eax
jl 0x56f7
movq %rdi, %r14
movq %rsi, %rbx
movl %eax, 0x44(%rdi)
callq 0x2050
imull $0xcccccccd, %eax, %eax # imm = 0xCCCCCCCD
movl $0x19999998, %ecx       # imm = 0x19999998
addl %ecx, %eax
rorl %eax
cmpl %ecx, %eax
jbe 0x4fce
movl 0x30(%r14), %esi
movq %rbx, %rdi
callq 0x454e
leaq -0x1a0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x45f7(%rip), %rdx      # 0x9532
leaq -0x1b0(%rbp), %rdi
movq %rdx, %rsi
callq 0x340c
leaq -0x100(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq -0x110(%rbp), %rdi
movq %r13, -0xd0(%rbp)
callq 0x3372
leaq 0x4336(%rip), %rsi      # 0x92b0
leaq -0x110(%rbp), %rdi
callq 0x2290
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
leaq -0x110(%rbp), %rdi
callq 0x2080
leaq -0x140(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x505e
movq %rdx, -0x150(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x140(%rbp)
jmp 0x5064
leaq -0x1e0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x4552(%rip), %rdx      # 0x9532
leaq -0x1f0(%rbp), %rdi
movq %rdx, %rsi
callq 0x340c
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
movq %r13, -0xd0(%rbp)
callq 0x3372
leaq 0x4297(%rip), %rsi      # 0x92b0
leaq -0x48(%rbp), %rdi
callq 0x2290
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
leaq -0x48(%rbp), %rdi
callq 0x2080
leaq -0x58(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x513d
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x5144
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x150(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x40e7(%rip), %rsi      # 0x9170
callq 0x2290
leaq -0x38(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x50b2
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x50b8
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x30(%r14), %r14d
movl %r14d, %r15d
negl %r15d
cmovsl %r14d, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x5272
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x5269
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x526f
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x5272
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x50fb
addl $-0x3, %r12d
jmp 0x5272
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x4167(%rip), %rsi      # 0x92cd
callq 0x2290
leaq -0x160(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5199
movq %rdx, -0x170(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x160(%rbp)
jmp 0x51a1
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x168(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x1c0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x4365(%rip), %rdx      # 0x9532
leaq -0x1d0(%rbp), %rdi
movq %rdx, %rsi
callq 0x340c
leaq -0x1f0(%rbp), %rdi
leaq -0x170(%rbp), %rsi
leaq -0x1d0(%rbp), %rdx
callq 0x70ca
movq -0x1d0(%rbp), %rdi
cmpq %r13, %rdi
je 0x5211
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x170(%rbp), %rdi
cmpq %r12, %rdi
leaq -0x1e0(%rbp), %rbx
je 0x5233
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x5248
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x525d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x1f0(%rbp), %rdi
jmp 0x56e7
addl $-0x2, %r12d
jmp 0x5272
decl %r12d
shrl $0x1f, %r14d
leal (%r12,%r14), %esi
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x88(%rbp), %rdi
movl $0x2d, %edx
callq 0x21f0
addq -0x88(%rbp), %r14
movq %r14, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x4cc2
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x80(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq -0x38(%rbp), %rdi
cmpq %rdi, %rcx
je 0x52ca
movq -0x38(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x52ea
movl $0xf, %esi
leaq -0x78(%rbp), %rdi
cmpq %rdi, -0x88(%rbp)
je 0x52e5
movq -0x78(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x52fc
movq -0x88(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x2080
jmp 0x530c
leaq -0x88(%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 0x532d
movq %rsi, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x5333
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 0x3e2b(%rip), %rsi      # 0x9181
leaq -0x68(%rbp), %rdi
callq 0x2290
leaq -0x120(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x538c
movq %rdx, -0x130(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x120(%rbp)
jmp 0x5392
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x128(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x98(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0x3372
leaq 0x3d87(%rip), %rsi      # 0x915d
leaq -0xa8(%rbp), %rdi
callq 0x2290
movq %rbx, %rdi
callq 0x3d64
movl %eax, %r14d
movl %eax, %ebx
negl %ebx
cmovsl %eax, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0x5448
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x543f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x5445
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x5448
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x540c
addl $-0x3, %r15d
jmp 0x5448
addl $-0x2, %r15d
jmp 0x5448
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq -0xe0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0xf0(%rbp), %rdi
movl $0x2d, %edx
callq 0x21f0
movl %r14d, %edi
addq -0xf0(%rbp), %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x4cc2
movq -0xa8(%rbp), %rcx
movq -0xa0(%rbp), %r8
movq -0xe8(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x54aa
movq -0x98(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x54c9
movl $0xf, %esi
cmpq %r13, -0xf0(%rbp)
je 0x54c4
movq -0xe0(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x54de
movq -0xf0(%rbp), %rsi
leaq -0xa8(%rbp), %rdi
callq 0x2080
jmp 0x54ee
leaq -0xf0(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
leaq -0xb8(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x5518
movq %rsi, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x551e
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xc0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x3c14(%rip), %rsi      # 0x9158
leaq -0xc8(%rbp), %rdi
callq 0x2290
leaq -0x180(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x557d
movq %rdx, -0x190(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x180(%rbp)
jmp 0x5584
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rsi
leaq -0x190(%rbp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x1b0(%rbp), %rdi
leaq -0x130(%rbp), %rsi
callq 0x70ca
movq -0x190(%rbp), %rdi
cmpq %r14, %rdi
je 0x55d0
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x21c0
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x55ef
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xf0(%rbp), %rdi
cmpq %r13, %rdi
je 0x560a
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xa8(%rbp), %rdi
cmpq %r12, %rdi
leaq -0x1a0(%rbp), %rbx
je 0x562c
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
leaq -0x100(%rbp), %r14
leaq -0x38(%rbp), %r15
je 0x5659
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x21c0
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5672
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x568e
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x56a3
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x56c5
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x56e0
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x1b0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x56f7
movq (%rbx), %rsi
incq %rsi
callq 0x21c0
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x1d0(%rbp), %rdi
cmpq %r13, %rdi
je 0x572c
movq -0x1c0(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x572c
movq %rax, %rbx
movq -0x170(%rbp), %rdi
cmpq %r12, %rdi
je 0x574c
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x574c
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r14, %rdi
je 0x5768
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x5768
jmp 0x5765
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x5782
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x5782
movq %rax, %rbx
movq -0x1f0(%rbp), %rdi
leaq -0x1e0(%rbp), %rax
jmp 0x5928
movq %rax, %rbx
movq -0x190(%rbp), %rdi
cmpq %r14, %rdi
je 0x57b8
movq -0x180(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x57b8
movq %rax, %rbx
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x57dc
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x57dc
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
cmpq %r13, %rdi
je 0x584b
movq -0xe0(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x584b
jmp 0x5848
movq %rax, %rbx
jmp 0x5866
movq %rax, %rbx
jmp 0x5888
movq %rax, %rbx
jmp 0x58a1
movq %rax, %rbx
jmp 0x58bd
movq %rax, %rbx
jmp 0x58d6
movq %rax, %rbx
jmp 0x58f8
movq %rax, %rbx
movq -0x110(%rbp), %rdi
cmpq %r15, %rdi
jne 0x590b
jmp 0x591a
movq %rax, %rbx
jmp 0x591a
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r12, %rdi
je 0x5866
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
je 0x5888
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x21c0
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x58a1
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x58bd
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x58d6
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0x58f8
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0x591a
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x1b0(%rbp), %rdi
leaq -0x1a0(%rbp), %rax
cmpq %rax, %rdi
je 0x593f
movq -0xd0(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2270
nop