// File: /workspace/github_cpp_makefile_star2_O3/Matteo-Grellier[P]RPG/Character.cpp
// Function: Character::attack(Character&)
void Character::attack(Character& defender) {
    int damage = this->physicalAttack - defender.defense;
    defender.receiveDamage(damage);

    Menu::toScreen(
        "",
        this->name + " attaque " + defender.name + " et lui inflige " + to_string(damage) + " de dégats" ,
        defender.name + " est à " + to_string(defender.getCurrentHp()) + " pv."
    );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rsi, %rbx
movq %rdi, %r14
movl 0x2c(%rdi), %r12d
subl 0x34(%rsi), %r12d
xorl %eax, %eax
testl %r12d, %r12d
movl $0x0, %ecx
cmovgl %r12d, %ecx
movl 0x3c(%rsi), %edx
subl %ecx, %edx
testl %edx, %edx
cmovlel %eax, %edx
movl %edx, 0x3c(%rsi)
leaq -0x158(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x5765(%rip), %rdx      # 0x9532
leaq -0x168(%rbp), %rdi
movq %rdx, %rsi
callq 0x33fc
leaq -0xd8(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq -0xe8(%rbp), %rdi
callq 0x335e
leaq 0x5361(%rip), %rsi      # 0x9166
leaq -0xe8(%rbp), %rdi
callq 0x2290
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
leaq -0xe8(%rbp), %rdi
callq 0x2080
leaq -0x138(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3e52
movq %rdx, -0x148(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x138(%rbp)
jmp 0x3e58
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x148(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x52f3(%rip), %rsi      # 0x9170
callq 0x2290
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3ea6
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x3eae
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, -0x60(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl %r12d, %r14d
negl %r14d
cmovsl %r12d, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x3f25
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x3f1c
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3f22
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3f25
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3ee9
addl $-0x3, %r15d
jmp 0x3f25
addl $-0x2, %r15d
jmp 0x3f25
decl %r15d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x48(%rbp), %rdi
movl $0x2d, %edx
callq 0x21f0
movl %r12d, %edi
addq -0x48(%rbp), %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x4cb2
movq -0x68(%rbp), %rcx
movq -0x60(%rbp), %r8
movq -0x40(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x3f73
movq -0x58(%rbp), %rdi
movq -0x48(%rbp), %rsi
cmpq %rdi, %rax
jbe 0x3f93
movl $0xf, %edi
leaq -0x38(%rbp), %r9
cmpq %r9, %rsi
je 0x3f8e
movq -0x38(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x3f9e
leaq -0x68(%rbp), %rdi
callq 0x2080
jmp 0x3fab
leaq -0x48(%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 0x3fd5
movq %rsi, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x3fdb
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 0x5180(%rip), %rsi      # 0x9181
leaq -0xc8(%rbp), %rdi
callq 0x2290
leaq -0x118(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x403a
movq %rdx, -0x128(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x118(%rbp)
jmp 0x4040
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x120(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0x335e
leaq 0x50dd(%rip), %rsi      # 0x915d
leaq -0x88(%rbp), %rdi
callq 0x2290
movl 0x3c(%rbx), %ebx
movl %ebx, %r14d
negl %r14d
cmovsl %ebx, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x40ef
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x40e6
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x40ec
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x40ef
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x40b3
addl $-0x3, %r15d
jmp 0x40ef
addl $-0x2, %r15d
jmp 0x40ef
decl %r15d
shrl $0x1f, %ebx
leal (%r15,%rbx), %esi
leaq -0xf8(%rbp), %r12
movq %r12, -0x10(%r12)
leaq -0x108(%rbp), %rdi
movl $0x2d, %edx
callq 0x21f0
addq -0x108(%rbp), %rbx
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x4cb2
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %r8
movq -0x100(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x414c
movq -0x78(%rbp), %rdi
movq -0x108(%rbp), %rsi
cmpq %rdi, %rax
jbe 0x416e
movl $0xf, %edi
cmpq %r12, %rsi
je 0x4169
movq -0xf8(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x417c
leaq -0x88(%rbp), %rdi
callq 0x2080
jmp 0x418c
leaq -0x108(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
leaq -0x98(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x41b6
movq %rsi, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x41bc
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0xa0(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x4f76(%rip), %rsi      # 0x9158
leaq -0xa8(%rbp), %rdi
callq 0x2290
leaq -0x178(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x421b
movq %rdx, -0x188(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x178(%rbp)
jmp 0x4222
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rsi
leaq -0x188(%rbp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x168(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0x70b2
movq -0x188(%rbp), %rdi
cmpq %r14, %rdi
je 0x426e
movq -0x178(%rbp), %rsi
incq %rsi
callq 0x21c0
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x428d
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x108(%rbp), %rdi
cmpq %r12, %rdi
je 0x42a8
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x42c0
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
leaq -0x158(%rbp), %rbx
leaq -0xd8(%rbp), %r14
leaq -0x138(%rbp), %r15
leaq -0x58(%rbp), %r12
je 0x42fb
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x21c0
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x431a
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4333
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x4348
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x148(%rbp), %rdi
cmpq %r15, %rdi
je 0x4363
movq -0x138(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0x437e
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x168(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4399
movq -0x158(%rbp), %rsi
incq %rsi
callq 0x21c0
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x188(%rbp), %rdi
cmpq %r14, %rdi
je 0x43ce
movq -0x178(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x43ce
movq %rax, %rbx
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x43f2
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x43f2
movq %rax, %rbx
movq -0x108(%rbp), %rdi
cmpq %r12, %rdi
je 0x4414
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x4414
jmp 0x4411
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0x4431
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x4431
movq %rax, %rbx
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x4458
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x4458
movq %rax, %rbx
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x447c
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x447c
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x449a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21c0
jmp 0x449a
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x44b3
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x148(%rbp), %rdi
leaq -0x138(%rbp), %rax
cmpq %rax, %rdi
je 0x44d5
movq -0x138(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0xe8(%rbp), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x44f7
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x21c0
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
je 0x4519
movq -0x158(%rbp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2270
movq %rax, %rbx
jmp 0x44b3
movq %rax, %rbx
jmp 0x44d5
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
cmpq %r15, %rdi
jne 0x44e8
jmp 0x44f7
movq %rax, %rbx
jmp 0x44f7
nop