LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Heroes.cpp
// Function: Hero::equip_weapon(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Hero::equip_weapon(string weapon_name){

    int flag = 0;
    list<Weapon*> :: iterator wp;
    cout << GetWeaponsListSize() << endl;
    for(wp = Weapons.begin(); wp != Weapons.end(); ++wp){

        if( (*wp)->get_name() == weapon_name){
            flag = 1;
            break;
        }
    }

    if(flag == 1){
        Strength += (*wp)->get_damage();
        Weapon_Equiped = (*wp);
    }else{
        cout << "You dont have that weapon in your inventory" << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movl 0x78(%rdi), %esi
movq 0xdf0b(%rip), %rdi      # 0x13fd0
callq 0x3210
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq %rbx, -0x30(%rbp)
addq $0x68, %rbx
leaq -0x50(%rbp), %r12
movq %rbx, %r13
movq (%r13), %r13
cmpq %rbx, %r13
je 0x617c
movq 0x10(%r13), %rsi
movq %r12, %rdi
callq 0xc78e
movq -0x48(%rbp), %rdx
cmpq 0x8(%r15), %rdx
jne 0x613b
testq %rdx, %rdx
je 0x6140
movq (%r15), %rsi
movq -0x50(%rbp), %rdi
callq 0x31a0
testl %eax, %eax
sete %r14b
jmp 0x6143
xorl %r14d, %r14d
jmp 0x6143
movb $0x1, %r14b
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x615c
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3190
testb %r14b, %r14b
je 0x6103
movq 0x10(%r13), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x30(%rbp), %rcx
addl %eax, 0x38(%rcx)
movq 0x10(%r13), %rax
movq %rax, 0x58(%rcx)
jmp 0x61be
leaq 0x8294(%rip), %rsi      # 0xe417
movl $0x2b, %edx
movq 0xde41(%rip), %rbx      # 0x13fd0
movq %rbx, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Heroes.cpp
// Function: Hero::equip_armor(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Hero::equip_armor(string armor_name){

    int flag = 0;
    list<Armor*> :: iterator ar;
    for(ar = Armors.begin(); ar != Armors.end(); ++ar){

        if( (*ar)->get_name() == armor_name){
            flag =1;
            break;
        }
    }

    if(flag == 1){
        Defense += (*ar)->get_protection();
        Armor_Equiped = (*ar);
    }else{

        cout << "You dont have that armor in your inventory" << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, -0x30(%rbp)
leaq 0x98(%rdi), %r13
leaq -0x50(%rbp), %r15
movq %r13, %r12
movq (%r12), %r12
cmpq %r13, %r12
je 0x6276
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0xc78e
movq -0x48(%rbp), %rdx
cmpq 0x8(%r14), %rdx
jne 0x6236
testq %rdx, %rdx
je 0x623a
movq (%r14), %rsi
movq -0x50(%rbp), %rdi
callq 0x31a0
testl %eax, %eax
sete %bl
jmp 0x623c
xorl %ebx, %ebx
jmp 0x623c
movb $0x1, %bl
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x6255
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3190
testb %bl, %bl
je 0x61fe
movq 0x10(%r12), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq -0x30(%rbp), %rcx
addl %eax, 0x44(%rcx)
movq 0x10(%r12), %rax
movq %rax, 0x60(%rcx)
jmp 0x62b8
movq 0xdd53(%rip), %rbx      # 0x13fd0
leaq 0x81bf(%rip), %rsi      # 0xe443
movl $0x2a, %edx
movq %rbx, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Heroes.cpp
// Function: Hero::castSpell(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Spell * Hero::castSpell(string spell_name){
    int flag = 0;
    list<Spell*> :: iterator is;

    for(is = Spells.begin(); is!= Spells.end(); ++is){
          
        if((*is)->get_name() == spell_name){
            flag = 1;
            break;
        }

    }


    if(flag == 1){

         if(MagicPower >= (*is)->get_MagicPower()){

            MagicPower -= (*is)->get_MagicPower();

         }
         return *is;

    }else{

        cout << "You dont have that spell in your inventory" << endl;
    }



}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, -0x30(%rbp)
leaq 0x80(%rdi), %r13
leaq -0x50(%rbp), %r15
movq %r13, %r12
movq (%r12), %r12
cmpq %r13, %r12
je 0x6385
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0xc78e
movq -0x48(%rbp), %rdx
cmpq 0x8(%r14), %rdx
jne 0x632a
testq %rdx, %rdx
je 0x632e
movq (%r14), %rsi
movq -0x50(%rbp), %rdi
callq 0x31a0
testl %eax, %eax
sete %bl
jmp 0x6330
xorl %ebx, %ebx
jmp 0x6330
movb $0x1, %bl
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x6349
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x3190
testb %bl, %bl
je 0x62ee
movq -0x30(%rbp), %r14
movl 0x34(%r14), %ebx
movq 0x10(%r12), %rdi
callq 0xc466
cmpl %eax, %ebx
jl 0x6371
movq 0x10(%r12), %rdi
callq 0xc466
subl %eax, 0x34(%r14)
movq 0x10(%r12), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3250
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Heroes.cpp
// Function: Hero::get_attacked(int)
void Hero::get_attacked(int dmg){
    int p = rand()%100;

    if(p <= Agility){
        cout << name << " dodged the Monster's attack!" << endl;
    }else{
        dec_hp(dmg);
        HealthPower += Defense;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
callq 0x3080
cltq
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
subl %ecx, %eax
cmpl 0x3c(%rbx), %eax
jle 0x670a
movq (%rbx), %rax
movq %rbx, %rdi
movl %r14d, %esi
callq *(%rax)
movl 0x44(%rbx), %eax
addl %eax, 0x2c(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq 0xd8b7(%rip), %rdi      # 0x13fd0
callq 0x31c0
movq %rax, %rbx
leaq 0x7dcf(%rip), %rsi      # 0xe4f7
movl $0x1d, %edx
movq %rax, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3100
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Heroes.cpp
// Function: Hero::round_won()
void Hero::round_won(){
    Money += Level*25;
    exp += Level*20;
    if(exp >= NextLvlExp){
        Level++;
        exp = 0;
        set_NextLvlExp();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x28(%rdi), %eax
leal (%rax,%rax,4), %ecx
leal (%rcx,%rcx,4), %edx
addl %edx, 0x48(%rdi)
shll $0x2, %ecx
addl 0x4c(%rdi), %ecx
movl %ecx, 0x4c(%rdi)
cmpl 0x50(%rdi), %ecx
jl 0x67a2
incl %eax
movl %eax, 0x28(%rdi)
movl $0x0, 0x4c(%rdi)
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Heroes.cpp
// Function: Warrior::level_up()
void Warrior::level_up(){
    Strength += Strength*0.3;
    Agility += Agility*0.3;
    Dexterity += Dexterity*0.2;
    Level++;
    set_NextLvlExp();

    cout << "The WARRIOR " << name << " just LEVELED UP. New LEVEL: " << Level << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cvtsi2sdl 0x38(%rdi), %xmm0
movsd 0x7967(%rip), %xmm1     # 0xe260
movapd %xmm0, %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
cvttsd2si %xmm2, %eax
movl %eax, 0x38(%rdi)
xorps %xmm0, %xmm0
cvtsi2sdl 0x3c(%rdi), %xmm0
mulsd %xmm0, %xmm1
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
movl %eax, 0x3c(%rdi)
xorps %xmm0, %xmm0
cvtsi2sdl 0x40(%rdi), %xmm0
movsd 0x7935(%rip), %xmm1     # 0xe268
mulsd %xmm0, %xmm1
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
movl %eax, 0x40(%rdi)
incl 0x28(%rdi)
movq 0xd684(%rip), %r14      # 0x13fd0
leaq 0x7be5(%rip), %rsi      # 0xe538
movl $0xc, %edx
movq %r14, %rdi
callq 0x31c0
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %r14, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0x7bcb(%rip), %rsi      # 0xe545
movl $0x1d, %edx
movq %rax, %rdi
callq 0x31c0
movl 0x28(%rbx), %esi
movq %r14, %rdi
callq 0x3210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3100
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Heroes.cpp
// Function: Sorcerer::level_up()
void Sorcerer::level_up(){
    Strength += Strength*0.2;
    Agility += Agility*0.3;
    Dexterity += Dexterity*0.3;
    Level++;
    set_NextLvlExp();

    cout << "The SORCERER " << name << " just LEVELED UP. New LEVEL: " << Level << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cvtsi2sdl 0x38(%rdi), %xmm0
movsd 0x7753(%rip), %xmm1     # 0xe268
mulsd %xmm0, %xmm1
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
movl %eax, 0x38(%rdi)
xorps %xmm0, %xmm0
cvtsi2sdl 0x3c(%rdi), %xmm0
movsd 0x772c(%rip), %xmm1     # 0xe260
movapd %xmm0, %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
cvttsd2si %xmm2, %eax
movl %eax, 0x3c(%rdi)
xorps %xmm0, %xmm0
cvtsi2sdl 0x40(%rdi), %xmm0
mulsd %xmm0, %xmm1
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
movl %eax, 0x40(%rdi)
incl 0x28(%rdi)
movq 0xd468(%rip), %r14      # 0x13fd0
leaq 0x7a19(%rip), %rsi      # 0xe588
movl $0xd, %edx
movq %r14, %rdi
callq 0x31c0
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %r14, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0x79af(%rip), %rsi      # 0xe545
movl $0x1d, %edx
movq %rax, %rdi
callq 0x31c0
movl 0x28(%rbx), %esi
movq %r14, %rdi
callq 0x3210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3100
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Heroes.cpp
// Function: Paladin::level_up()
void Paladin::level_up(){
    Strength += Strength*0.3;
    Agility += Agility*0.2;
    Dexterity += Dexterity*0.3;
    Level++;
    set_NextLvlExp();

    cout << "The PALADIN " << name << " just LEVELED UP. New LEVEL: " << Level << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cvtsi2sdl 0x38(%rdi), %xmm0
movsd 0x752f(%rip), %xmm1     # 0xe260
movapd %xmm0, %xmm2
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
cvttsd2si %xmm2, %eax
movl %eax, 0x38(%rdi)
xorps %xmm0, %xmm0
cvtsi2sdl 0x3c(%rdi), %xmm0
movsd 0x7514(%rip), %xmm2     # 0xe268
mulsd %xmm0, %xmm2
addsd %xmm0, %xmm2
cvttsd2si %xmm2, %eax
movl %eax, 0x3c(%rdi)
xorps %xmm0, %xmm0
cvtsi2sdl 0x40(%rdi), %xmm0
mulsd %xmm0, %xmm1
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
movl %eax, 0x40(%rdi)
incl 0x28(%rdi)
movq 0xd24c(%rip), %r14      # 0x13fd0
leaq 0x782e(%rip), %rsi      # 0xe5b9
movl $0xc, %edx
movq %r14, %rdi
callq 0x31c0
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %r14, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0x7793(%rip), %rsi      # 0xe545
movl $0x1d, %edx
movq %rax, %rdi
callq 0x31c0
movl 0x28(%rbx), %esi
movq %r14, %rdi
callq 0x3210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3100
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Monsters.cpp
// Function: Monster::get_attacked(Spell*)
void Monster::get_attacked(Spell* sp){
    string spell;
    spell = sp->get_class();

    int red;
    red = sp->get_Reduction();

    if(spell == "IceSpell"){
        red = Damage*red/100;
        decrease_damage(red);
    }else if(spell == "FireSpell"){
        red = Defence*red/100;
        decreade_def(red);
    }else{
        red = Agility*red/100;
        decrease_Agility(red);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq (%rsi), %rax
leaq -0x60(%rbp), %rdi
callq *0x30(%rax)
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %r15
movq %r15, %rsi
callq 0x31d0
movq (%r15), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x7380
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3190
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
movl %eax, %r14d
leaq 0x725d(%rip), %rsi      # 0xe5f0
leaq -0x40(%rbp), %rdi
callq 0x30a0
testl %eax, %eax
je 0x73d9
leaq 0x7252(%rip), %rsi      # 0xe5f9
leaq -0x40(%rbp), %rdi
callq 0x30a0
testl %eax, %eax
je 0x73fe
movl 0x3c(%rbx), %eax
imull %eax, %r14d
movslq %r14d, %rcx
imulq $-0x51eb851f, %rcx, %rcx # imm = 0xAE147AE1
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
addl %eax, %ecx
movl %ecx, 0x3c(%rbx)
jmp 0x7421
movl 0x34(%rbx), %eax
imull %eax, %r14d
movslq %r14d, %rcx
imulq $-0x51eb851f, %rcx, %rcx # imm = 0xAE147AE1
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
addl %eax, %ecx
movl %ecx, 0x34(%rbx)
jmp 0x7421
movl 0x38(%rbx), %eax
imull %eax, %r14d
movslq %r14d, %rcx
imulq $-0x51eb851f, %rcx, %rcx # imm = 0xAE147AE1
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
addl %eax, %ecx
movl %ecx, 0x38(%rbx)
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x7436
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3190
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7445
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x745d
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3190
movq %rbx, %rdi
callq 0x3220
nop
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Monsters.cpp
// Function: Monster::get_attacked(int)
void Monster::get_attacked(int dmg){
    int p = rand()%100;

    if(p <= Agility){
        cout << name << " dodged the attack!" << endl;
    }else{
        HealthPower -= dmg + Defence;
        cout << name << " was hit for " << dmg << " points of damage" << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0x3080
cltq
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
subl %ecx, %eax
cmpl 0x3c(%r14), %eax
jle 0x75e0
movl 0x38(%r14), %eax
addl %ebx, %eax
subl %eax, 0x2c(%r14)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq 0xca27(%rip), %rdi      # 0x13fd0
callq 0x31c0
movq %rax, %r14
leaq 0x6cb8(%rip), %rsi      # 0xe270
movl $0xd, %edx
movq %rax, %rdi
callq 0x31c0
movq %r14, %rdi
movl %ebx, %esi
callq 0x3210
movq %rax, %rbx
leaq 0x703e(%rip), %rsi      # 0xe617
movl $0x11, %edx
jmp 0x7603
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq 0xc9e1(%rip), %rdi      # 0x13fd0
callq 0x31c0
movq %rax, %rbx
leaq 0x7005(%rip), %rsi      # 0xe603
movl $0x13, %edx
movq %rax, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3100
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Market.cpp
// Function: Market::~Market()
Market::~Market() {

	Weapons.clear();
	Armors.clear();
	Potions.clear();
	Spells.clear();
	ItemsToSell.clear();	

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x9a6e
leaq 0x18(%rbx), %rdi
movq %rdi, -0x30(%rbp)
callq 0x9aaa
leaq 0x30(%rbx), %r15
movq %r15, %rdi
callq 0x9ae6
leaq 0x48(%rbx), %r12
movq %r12, %rdi
callq 0x9b22
leaq 0x60(%rbx), %r13
movq %r13, %rdi
callq 0x9b5e
movq 0x60(%rbx), %rdi
cmpq %r13, %rdi
je 0x7929
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %r13, %r14
jne 0x7914
movq (%r12), %rdi
cmpq %r12, %rdi
je 0x7947
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %r12, %r14
jne 0x7932
movq (%r15), %rdi
cmpq %r15, %rdi
je 0x7964
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %r15, %r14
jne 0x794f
movq -0x30(%rbp), %r15
movq (%r15), %rdi
cmpq %r15, %rdi
je 0x7985
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %r15, %r14
jne 0x7970
movq (%rbx), %rdi
cmpq %rbx, %rdi
je 0x79a2
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %rbx, %r14
jne 0x798d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Market.cpp
// Function: Market::EnterMarket()
void Market::EnterMarket(){

	cout << "Welcome to the Market" << endl << "Press 1 to buy,2 to sell and any button to leave" << endl;
	string flag;
	cin >> flag;
	if(flag == "1"){
		buy();
	}else if(flag == "2"){
		sell();
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0xba91(%rip), %r14      # 0x13fd0
leaq 0x6130(%rip), %rsi      # 0xe676
movl $0x15, %edx
movq %r14, %rdi
callq 0x31c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq %rax, %r14
leaq 0x6108(%rip), %rsi      # 0xe68c
movl $0x30, %edx
movq %rax, %rdi
callq 0x31c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
movq 0xba0d(%rip), %rdi      # 0x13fe0
leaq -0x30(%rbp), %rsi
callq 0x31e0
leaq 0x60da(%rip), %rsi      # 0xe6bd
leaq -0x30(%rbp), %rdi
callq 0x30a0
testl %eax, %eax
je 0x860e
leaq 0x60c8(%rip), %rsi      # 0xe6bf
leaq -0x30(%rbp), %rdi
callq 0x30a0
testl %eax, %eax
jne 0x8616
movq %rbx, %rdi
callq 0x9094
jmp 0x8616
movq %rbx, %rdi
callq 0x8654
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x862b
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x3190
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x864c
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x3190
movq %rbx, %rdi
callq 0x3220
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Grid.cpp
// Function: Grid::Grid(Market*, Squad*)
Grid::Grid(Market* m, Squad* sq){
    market = m;
    team = sq;

    Map = new int*[HEIGHT];                 //creating the map

    for(int i = 0; i < HEIGHT; i++){
        Map[i] = new int [WIDTH];
    }
    srand(time(NULL));

    for(int x = 0; x < HEIGHT; x++){
        for(int y = 0; y < WIDTH; y++){
            int p;                          //possibility
            p = rand()%100;

            if(p <= 15 ){
                Map[x][y] = 0;
            }else if(p <= 35){
                Map[x][y] = 2;
            }else{
                Map[x][y] = 1;
            }
        }
    }
    x = 0;
    y= 0;
    Map[0][0] = 1;
    pt = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rdi, 0x8(%rdi)
movq %rdi, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x18(%rdi), %r15
movq %r15, 0x20(%rdi)
movq %r15, 0x18(%rdi)
movq %rax, 0x28(%rdi)
leaq 0x30(%rdi), %r12
movq %r12, 0x38(%rdi)
movq %r12, 0x30(%rdi)
movq %rax, 0x40(%rdi)
leaq 0x48(%rdi), %r13
movq %r13, 0x50(%rdi)
movq %r13, 0x48(%rdi)
movq %rax, 0x58(%rdi)
movq %rsi, 0x68(%rdi)
movq %rdx, 0x70(%rdi)
movl $0x28, %edi
callq 0x3030
movq %rax, 0x60(%rbx)
xorl %r14d, %r14d
movl $0x14, %edi
callq 0x3030
movq 0x60(%rbx), %rcx
movq %rax, (%rcx,%r14,8)
incq %r14
cmpq $0x5, %r14
jne 0x9c9b
xorl %r14d, %r14d
xorl %edi, %edi
callq 0x3140
movl %eax, %edi
callq 0x3150
xorl %r15d, %r15d
callq 0x3080
cltq
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
subl %ecx, %eax
cmpl $0xf, %eax
jg 0x9d01
movq 0x60(%rbx), %rax
movq (%rax,%r14,8), %rax
movl $0x0, (%rax,%r15,4)
jmp 0x9d20
movq 0x60(%rbx), %rcx
movq (%rcx,%r14,8), %rcx
cmpl $0x23, %eax
jg 0x9d18
movl $0x2, (%rcx,%r15,4)
jmp 0x9d20
movl $0x1, (%rcx,%r15,4)
incq %r15
cmpq $0x5, %r15
jne 0x9cca
incq %r14
cmpq $0x5, %r14
jne 0x9cc7
movq $0x0, 0x78(%rbx)
movq 0x60(%rbx), %rax
movq (%rax), %rax
movl $0x1, %ecx
movl %ecx, (%rax)
movl %ecx, 0x88(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9d5f
movq %rax, -0x30(%rbp)
movq (%r13), %rdi
cmpq %r13, %rdi
je 0x9d81
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %r13, %r14
jne 0x9d6c
movq (%r12), %rdi
cmpq %r12, %rdi
je 0x9d9f
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %r12, %r14
jne 0x9d8a
movq (%r15), %rdi
cmpq %r15, %rdi
je 0x9dbc
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %r15, %r14
jne 0x9da7
movq (%rbx), %rdi
cmpq %rbx, %rdi
je 0x9dd9
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %rbx, %r14
jne 0x9dc4
movq -0x30(%rbp), %rdi
callq 0x3220
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Grid.cpp
// Function: Grid::move_up()
void Grid::move_up(){

    if(y -1 < 0){
        cout << "You can not move upwards" << endl;
    }else{
        if(Map[y-1][x] == 0){
            cout << "This is a non accessible square" << endl;
            return;            
        }
        py = y;
        px = x;
        Map[py][px] = pt;
        y--;
        pt = Map[y][x];
        Map[y][x] = 3;

    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movslq 0x7c(%rdi), %rax
testq %rax, %rax
jle 0x9e4a
movq 0x60(%rdi), %rcx
movq -0x8(%rcx,%rax,8), %rsi
movl 0x78(%rdi), %edx
movslq %edx, %rdx
cmpl $0x0, (%rsi,%rdx,4)
je 0x9e5f
movl %eax, 0x84(%rdi)
movl %edx, 0x80(%rdi)
movl 0x88(%rdi), %esi
movq (%rcx,%rax,8), %rax
movl %esi, (%rax,%rdx,4)
movslq 0x7c(%rdi), %rax
leaq -0x1(%rax), %rdx
movl %edx, 0x7c(%rdi)
movq -0x8(%rcx,%rax,8), %rax
movslq 0x78(%rdi), %rcx
movl (%rax,%rcx,4), %edx
movl %edx, 0x88(%rdi)
movl $0x3, (%rax,%rcx,4)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0xa17f(%rip), %rbx      # 0x13fd0
leaq 0x4ba6(%rip), %rsi      # 0xe9fe
movl $0x18, %edx
jmp 0x9e72
movq 0xa16a(%rip), %rbx      # 0x13fd0
leaq 0x4baa(%rip), %rsi      # 0xea17
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3100
nop
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Grid.cpp
// Function: Grid::move_down()
void Grid::move_down(){
    cout << y << endl;
    if(y + 1 > HEIGHT-1){
        cout << "You can not move down" << endl;
    }else{
        if(Map[y+1][x] == 0){
            cout << "This is a non accessible square" << endl;
            return;            
        }
        py = y;
        px = x;
        Map[py][px] = pt;
        y++;
        pt = Map[y][x];
        Map[y][x] = 3;
        
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl 0x7c(%rdi), %esi
movq 0xa111(%rip), %rbx      # 0x13fd0
movq %rbx, %rdi
callq 0x3210
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movslq 0x7c(%r14), %rcx
cmpq $0x4, %rcx
jl 0x9f09
leaq 0x4b35(%rip), %rsi      # 0xea37
movl $0x15, %edx
jmp 0x9f78
movq 0x60(%r14), %rax
movq 0x8(%rax,%rcx,8), %rsi
movl 0x78(%r14), %edx
movslq %edx, %rdx
cmpl $0x0, (%rsi,%rdx,4)
je 0x9f6c
movl %ecx, 0x84(%r14)
movl %edx, 0x80(%r14)
movl 0x88(%r14), %esi
movq (%rax,%rcx,8), %rcx
movl %esi, (%rcx,%rdx,4)
movslq 0x7c(%r14), %rcx
leaq 0x1(%rcx), %rdx
movl %edx, 0x7c(%r14)
movq 0x8(%rax,%rcx,8), %rax
movslq 0x78(%r14), %rcx
movl (%rax,%rcx,4), %edx
movl %edx, 0x88(%r14)
movl $0x3, (%rax,%rcx,4)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4aa4(%rip), %rsi      # 0xea17
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3100
nop
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Grid.cpp
// Function: Grid::move_left()
void Grid::move_left(){
    if(x - 1 < 0){
        cout << "You can not move to the left" << endl;
    }else{
        if(Map[y][x-1] == 0){
            cout << "This is a non accessible square" << endl;
            return;
        }
        py = y;
        px = x;
        Map[py][px] = pt;
        x--;
        pt = Map[y][x];
        Map[y][x] = 3;

    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movslq 0x78(%rdi), %rax
testq %rax, %rax
jle 0xa015
movq 0x60(%rdi), %rcx
movslq 0x7c(%rdi), %rsi
movq (%rcx,%rsi,8), %rdx
cmpl $0x0, -0x4(%rdx,%rax,4)
je 0xa02a
movl %esi, 0x84(%rdi)
movl %eax, 0x80(%rdi)
movl 0x88(%rdi), %esi
movl %esi, (%rdx,%rax,4)
movslq 0x78(%rdi), %rax
leaq -0x1(%rax), %rdx
movl %edx, 0x78(%rdi)
movslq 0x7c(%rdi), %rdx
movq (%rcx,%rdx,8), %rcx
movl -0x4(%rcx,%rax,4), %edx
movl %edx, 0x88(%rdi)
movl $0x3, -0x4(%rcx,%rax,4)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x9fb4(%rip), %rbx      # 0x13fd0
leaq 0x4a2a(%rip), %rsi      # 0xea4d
movl $0x1c, %edx
jmp 0xa03d
movq 0x9f9f(%rip), %rbx      # 0x13fd0
leaq 0x49df(%rip), %rsi      # 0xea17
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3100
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Grid.cpp
// Function: Grid::move_right()
void Grid::move_right(){
    if(x + 1 > WIDTH){
        cout << "You can not move to the right" << endl;
    }else{
        if(Map[y][x+1] == 0){
            cout << "This is a non accessible square" << endl;
            return;            
        }
        py = y;
        px = x;
        Map[py][px] = pt;
        x++;
        pt = Map[y][x];
        Map[y][x] = 3;

    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movslq 0x78(%rdi), %rcx
cmpq $0x5, %rcx
jl 0xa097
movq 0x9f47(%rip), %rbx      # 0x13fd0
leaq 0x49da(%rip), %rsi      # 0xea6a
movl $0x1d, %edx
jmp 0xa0fe
movq 0x60(%rdi), %rax
movslq 0x7c(%rdi), %rsi
movq (%rax,%rsi,8), %rdx
cmpl $0x0, 0x4(%rdx,%rcx,4)
je 0xa0eb
movl %esi, 0x84(%rdi)
movl %ecx, 0x80(%rdi)
movl 0x88(%rdi), %esi
movl %esi, (%rdx,%rcx,4)
movslq 0x78(%rdi), %rcx
leaq 0x1(%rcx), %rdx
movl %edx, 0x78(%rdi)
movslq 0x7c(%rdi), %rdx
movq (%rax,%rdx,8), %rax
movl 0x4(%rax,%rcx,4), %edx
movl %edx, 0x88(%rdi)
movl $0x3, 0x4(%rax,%rcx,4)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x9ede(%rip), %rbx      # 0x13fd0
leaq 0x491e(%rip), %rsi      # 0xea17
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3100
nop
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Grid.cpp
// Function: Grid::monsters_fainted()
int Grid::monsters_fainted(){
    list<Monster*>::iterator it;
    int count = 0;
    for(it = Monsters.begin(); it != Monsters.end(); ++it){
        if((*it)->get_HealthPower() <= 0){
            count++;
        }
    }

    if(count == Monsters.size()){
        return 1;
    }else{
        return 0;
    }  
        
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x48(%rdi), %r15
movq 0x48(%rdi), %r12
xorl %r14d, %r14d
cmpq %r15, %r12
je 0xa7b4
movq 0x10(%r12), %rdi
callq 0x48d2
xorl %ecx, %ecx
testl %eax, %eax
setle %cl
addl %ecx, %r14d
movq (%r12), %r12
cmpq %r15, %r12
jne 0xa794
movl %r14d, %r14d
xorl %eax, %eax
cmpq %r14, 0x58(%rbx)
sete %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Grid.cpp
// Function: Grid::display_Map()
void Grid::display_Map(){
    for(int k = 0; k < HEIGHT; k++){
        for(int l = 0; l < WIDTH; l++){
            cout << Map[k][l] << "  ";
        }

        cout << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r12d, %r12d
movq 0x97e5(%rip), %r14      # 0x13fd0
leaq 0x4315(%rip), %r15      # 0xeb07
xorl %r13d, %r13d
movq 0x60(%rbx), %rax
movq (%rax,%r12,8), %rax
movl (%rax,%r13,4), %esi
movq %r14, %rdi
callq 0x3210
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x31c0
incq %r13
cmpq $0x5, %r13
jne 0xa7f5
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
incq %r12
cmpq $0x5, %r12
jne 0xa7f2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Grid.cpp
// Function: Grid::~Grid()
Grid::~Grid(){
    Dragons.clear();
    Exoskeletons.clear();
    Spirits.clear();
    Monsters.clear();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xc36c
leaq 0x18(%rbx), %r14
movq %r14, %rdi
callq 0xc36c
leaq 0x30(%rbx), %r15
movq %r15, %rdi
callq 0xc36c
leaq 0x48(%rbx), %r12
movq %r12, %rdi
callq 0xc36c
movq 0x48(%rbx), %rdi
cmpq %r12, %rdi
je 0xc306
movq (%rdi), %r13
movl $0x18, %esi
callq 0x3190
movq %r13, %rdi
cmpq %r12, %r13
jne 0xc2f1
movq (%r15), %rdi
cmpq %r15, %rdi
je 0xc323
movq (%rdi), %r12
movl $0x18, %esi
callq 0x3190
movq %r12, %rdi
cmpq %r15, %r12
jne 0xc30e
movq (%r14), %rdi
cmpq %r14, %rdi
je 0xc340
movq (%rdi), %r15
movl $0x18, %esi
callq 0x3190
movq %r15, %rdi
cmpq %r14, %r15
jne 0xc32b
movq (%rbx), %rdi
cmpq %rbx, %rdi
je 0xc35d
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %rbx, %r14
jne 0xc348
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Squad.cpp
// Function: Squad::~Squad()
Squad::~Squad(){
    myHeroes.clear();
    Warriors.clear();
    Sorcerers.clear();
    Paladins.clear();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x9bf6
leaq 0x18(%rbx), %r14
movq %r14, %rdi
callq 0x9bf6
leaq 0x30(%rbx), %r15
movq %r15, %rdi
callq 0x9bf6
leaq 0x48(%rbx), %r12
movq %r12, %rdi
callq 0x9bf6
movq 0x48(%rbx), %rdi
cmpq %r12, %rdi
je 0xcf04
movq (%rdi), %r13
movl $0x18, %esi
callq 0x3190
movq %r13, %rdi
cmpq %r12, %r13
jne 0xceef
movq (%r15), %rdi
cmpq %r15, %rdi
je 0xcf21
movq (%rdi), %r12
movl $0x18, %esi
callq 0x3190
movq %r12, %rdi
cmpq %r15, %r12
jne 0xcf0c
movq (%r14), %rdi
cmpq %r14, %rdi
je 0xcf3e
movq (%rdi), %r15
movl $0x18, %esi
callq 0x3190
movq %r15, %rdi
cmpq %r14, %r15
jne 0xcf29
movq (%rbx), %rdi
cmpq %rbx, %rdi
je 0xcf5b
movq (%rdi), %r14
movl $0x18, %esi
callq 0x3190
movq %r14, %rdi
cmpq %rbx, %r14
jne 0xcf46
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Squad.cpp
// Function: Squad::display_myHeroes()
void Squad::display_myHeroes(){
    list<Hero*>::iterator it;
    for(it = myHeroes.begin(); it != myHeroes.end(); ++it){
        cout << (*it)->get_name() << "\t" << (*it)->get_HealthPower() << "\t" << (*it)->get_MagicPower() 
        << "\t" << (*it)->get_Strength() << "\t" << (*it)->get_Agility() << "\t" << (*it)->get_Dexterity() << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq (%rdi), %r14
cmpq %rdi, %r14
je 0xd9a4
movq %rdi, %rbx
movq 0x675d(%rip), %r15      # 0x13fd0
leaq 0x19ba(%rip), %r12      # 0xf234
movq 0x10(%r14), %rsi
leaq -0x48(%rbp), %rdi
callq 0x489a
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r15, %rdi
callq 0x31c0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x31c0
movq 0x10(%r14), %rdi
callq 0x48d2
movq %r13, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x31c0
movq 0x10(%r14), %rdi
callq 0x4b32
movq %r13, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x31c0
movq 0x10(%r14), %rdi
callq 0x4b3c
movq %r13, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x31c0
movq 0x10(%r14), %rdi
callq 0x4b46
movq %r13, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x31c0
movq 0x10(%r14), %rdi
callq 0x4b50
movq %r13, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xd998
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq (%r14), %r14
cmpq %rbx, %r14
jne 0xd87a
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xd9cf
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq %rbx, %rdi
callq 0x3220
nop
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Squad.cpp
// Function: Squad::select_hero(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Squad::select_hero(string name){
    if(myHeroes.size() == 3){
        cout << "Your Team is full!" << endl;
        return;
    }else{
        Hero* temp;
        string type;
        temp = search_Hero(name);
        if(temp != NULL){
            myHeroes.push_front(temp);
            cout << temp->get_name() << " is now part of your team!" << endl;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
cmpq $0x3, 0x10(%rdi)
jne 0xda3c
movq 0x65db(%rip), %rbx      # 0x13fd0
leaq 0x1863(%rip), %rsi      # 0xf25f
movl $0x12, %edx
movq %rbx, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3100
movq %rdi, %rbx
leaq -0x70(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x47b8
leaq -0x60(%rbp), %rsi
movq %rbx, %rdi
callq 0xdbac
movq %rax, %r14
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0xda98
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x3190
testq %r14, %r14
je 0xdb38
movq (%rbx), %r15
movl $0x18, %edi
callq 0x3180
movq %r14, 0x10(%rax)
movq %rax, %rdi
movq %r15, %rsi
callq 0x3050
incq 0x10(%rbx)
leaq -0x40(%rbp), %rdi
movq %r14, %rsi
callq 0x489a
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq 0x64f4(%rip), %rdi      # 0x13fd0
callq 0x31c0
movq %rax, %rbx
leaq 0x1787(%rip), %rsi      # 0xf272
movl $0x1a, %edx
movq %rax, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xdb38
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0xdb4d
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3190
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xdb6e
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0xdb8f
movq -0x50(%rbp), %rsi
jmp 0xdb87
movq %rax, %rbx
jmp 0xdb8f
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xdb8f
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0x80(%rbp), %rdi
cmpq %r12, %rdi
je 0xdba4
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x3190
movq %rbx, %rdi
callq 0x3220
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Squad.cpp
// Function: Squad::search_Hero(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Hero* Squad::search_Hero(string name){
    list<Hero*>::iterator w;
    for(w = Warriors.begin(); w != Warriors.end(); ++w){
        if((*w)->get_name() == name){
            return *w;
        }
    }

    list<Hero*>::iterator s;
    for(s = Sorcerers.begin(); s != Sorcerers.end(); ++s){
        if((*s)->get_name() == name){
            return *s;
        }
    }

    list <Hero*>::iterator p;
    for(p = Paladins.begin(); p != Paladins.end(); ++p){
        if((*p)->get_name() == name){
            return *p;
        }
    }

    cout << "I could not find this name :(" << endl;
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, -0x50(%rbp)
leaq 0x18(%rdi), %r14
leaq -0x48(%rbp), %r15
movq %r14, %r13
movq (%r13), %r13
cmpq %r14, %r13
je 0xdc36
movq 0x10(%r13), %rsi
movq %r15, %rdi
callq 0x489a
movq -0x40(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0xdc07
testq %rdx, %rdx
je 0xdc0c
movq (%rbx), %rsi
movq -0x48(%rbp), %rdi
callq 0x31a0
testl %eax, %eax
sete %r12b
jmp 0xdc0f
xorl %r12d, %r12d
jmp 0xdc0f
movb $0x1, %r12b
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xdc28
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
testb %r12b, %r12b
je 0xdbcf
movq 0x10(%r13), %rax
jmp 0xdd5a
movq -0x50(%rbp), %rax
leaq 0x30(%rax), %r13
leaq -0x48(%rbp), %r15
movq %r13, %r14
movq (%r14), %r14
cmpq %r13, %r14
je 0xdca4
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x489a
movq -0x40(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0xdc7c
testq %rdx, %rdx
je 0xdc81
movq (%rbx), %rsi
movq -0x48(%rbp), %rdi
callq 0x31a0
testl %eax, %eax
sete %r12b
jmp 0xdc84
xorl %r12d, %r12d
jmp 0xdc84
movb $0x1, %r12b
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xdc9d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
testb %r12b, %r12b
je 0xdc45
jmp 0xdd10
movq -0x50(%rbp), %r13
addq $0x48, %r13
leaq -0x48(%rbp), %r15
movq %r13, %r14
movq (%r14), %r14
cmpq %r13, %r14
je 0xdd16
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x489a
movq -0x40(%rbp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0xdcea
testq %rdx, %rdx
je 0xdcef
movq (%rbx), %rsi
movq -0x48(%rbp), %rdi
callq 0x31a0
testl %eax, %eax
sete %r12b
jmp 0xdcf2
xorl %r12d, %r12d
jmp 0xdcf2
movb $0x1, %r12b
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xdd0b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
testb %r12b, %r12b
je 0xdcb3
movq 0x10(%r14), %rax
jmp 0xdd5a
movq 0x62b3(%rip), %rbx      # 0x13fd0
leaq 0x1569(%rip), %rsi      # 0xf28d
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x31c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Squad.cpp
// Function: Squad::all_fainted()
int Squad::all_fainted(){
    int count = 0;
    list<Hero*>::iterator it;

    for(it = myHeroes.begin(); it != myHeroes.end(); ++it){
        if((*it)->get_HealthPower() <= 0)
            count++;
    }

    if(count == get_count())
        return 1;
    else
        return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r15
xorl %r14d, %r14d
cmpq %rdi, %r15
je 0xddbf
movq 0x10(%r15), %rdi
callq 0x48d2
xorl %ecx, %ecx
testl %eax, %eax
setle %cl
addl %ecx, %r14d
movq (%r15), %r15
cmpq %rbx, %r15
jne 0xdda4
xorl %eax, %eax
cmpl 0x10(%rbx), %r14d
sete %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Lartu[P]polaris/src/libs/cpptrim.h
// Function: trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void trim(std::string & line){
    //If the std::string is empty
    if(line.size() == 0) return;

    //If the string has only one character
    if(line.size() == 1 && !std::isspace(line[0])) return;

    //Left trim
    int first = 0;
    for(unsigned int i = 0; i < line.size(); ++i){
        if (!std::isspace(line[i])){
            first = i;
            break;
        }
    }

    //Right trim
    int last = 0;
    for(unsigned int i = line.size()-1; i >= 0; --i){
        if (!std::isspace(line[i])){
            last = i+1;
            break;
        }
        //--i will break with unsigned int when reaching 0, so we check
        //if i == 0 and, if it is and it's not a space, we break
        if(i == 0){
            last = 0;
            break;
        }
    }

    //Trim the std::string
    line = line.substr(first, last-first);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0x375c
movq %rdi, %rbx
cmpq $0x1, %r14
jne 0x36e5
movq (%rbx), %rax
movsbl (%rax), %edi
callq 0x3050
testl %eax, %eax
je 0x375c
testq %r14, %r14
je 0x3701
movq (%rbx), %r12
xorl %r15d, %r15d
movsbl (%r12,%r15), %edi
callq 0x3050
testl %eax, %eax
je 0x3704
incl %r15d
cmpq %r15, %r14
ja 0x36eb
xorl %r15d, %r15d
leal -0x1(%r14), %r12d
addq (%rbx), %r12
movsbl (%r12), %edi
callq 0x3050
testl %eax, %eax
je 0x3727
decl %r14d
decq %r12
testl %r14d, %r14d
jne 0x370b
xorl %r14d, %r14d
movslq %r15d, %rdx
subl %edx, %r14d
movslq %r14d, %rcx
leaq -0x40(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32d0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3170
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x375c
callq 0x3280
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x377e
callq 0x3280
movq %rbx, %rdi
callq 0x3410
// File: /workspace/github_cpp_makefile_star2_O1/Lartu[P]polaris/src/polaris.cpp
// Function: main
int main(int argc, char** argv)
{
    polaris_setup();
    string file_path = check_args(argc, argv);
    string base_path = join_paths(".", get_working_directory(file_path));
    eval(load_source_file(file_path), base_path);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %rbx
movl %edi, %r14d
callq 0x39d9
leaq -0x38(%rbp), %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0x39fe
leaq -0xa8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x5d0f(%rip), %rsi      # 0x94d1
leaq 0x5d09(%rip), %rdx      # 0x94d2
leaq -0xb8(%rbp), %rdi
callq 0x7da8
leaq -0x88(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0x7e42
leaq -0x118(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x3d84
leaq -0xd8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x118(%rbp), %rdx
callq 0x3bee
leaq -0x108(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3839
callq 0x3280
movq -0x98(%rbp), %rdi
cmpq %r15, %rdi
je 0x384a
callq 0x3280
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0x385b
callq 0x3280
leaq -0x68(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
addq %rsi, %rdx
leaq -0x78(%rbp), %rdi
callq 0x7e42
leaq -0xf8(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x3f21
leaq -0x48(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %rdi
callq 0x7e42
leaq -0xf8(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x3e24
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x38c7
callq 0x3280
leaq -0xe8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x38dc
callq 0x3280
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0x38ea
callq 0x3280
leaq -0xc8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x38ff
callq 0x3280
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3911
callq 0x3280
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x3937
callq 0x3280
jmp 0x3937
movq %rax, %rbx
leaq -0xe8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3951
callq 0x3280
jmp 0x3951
movq %rax, %rbx
movq -0x78(%rbp), %rdi
cmpq %r14, %rdi
je 0x3964
callq 0x3280
jmp 0x3964
movq %rax, %rbx
leaq -0xc8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x39b5
jmp 0x39bf
movq %rax, %rbx
leaq -0x108(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3993
callq 0x3280
jmp 0x3993
movq %rax, %rbx
movq -0x98(%rbp), %rdi
cmpq %r15, %rdi
je 0x39a9
callq 0x3280
jmp 0x39a9
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0x39bf
callq 0x3280
jmp 0x39bf
movq %rax, %rbx
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39d1
callq 0x3280
movq %rbx, %rdi
callq 0x3410