LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0xbe9f(%rip), %rdi      # 0x12fd0
leaq 0x5540(%rip), %rsi      # 0xc678
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
leaq 0x5542(%rip), %rsi      # 0xc68e
movq %rax, %rdi
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
leaq -0x18(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0xbe6d(%rip), %rdi      # 0x12fe0
leaq -0x28(%rbp), %rsi
callq 0x31f0
leaq 0x553c(%rip), %rsi      # 0xc6bf
leaq -0x28(%rbp), %rdi
callq 0x5d10
testb %al, %al
je 0x719a
movq %rbx, %rdi
callq 0x71da
jmp 0x71b6
leaq 0x5520(%rip), %rsi      # 0xc6c1
leaq -0x28(%rbp), %rdi
callq 0x5d10
testb %al, %al
je 0x71b6
movq %rbx, %rdi
callq 0x7860
leaq -0x28(%rbp), %rdi
callq 0x30e0
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3240
// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, 0x10(%rdi)
leaq 0x18(%rdi), %rax
movq %rax, 0x20(%rdi)
movq %rax, -0x30(%rbp)
movq %rax, 0x18(%rdi)
andq $0x0, 0x28(%rdi)
leaq 0x30(%rdi), %r15
movq %r15, 0x38(%rdi)
movq %r15, 0x30(%rdi)
andq $0x0, 0x40(%rdi)
leaq 0x48(%rdi), %r12
movq %r12, 0x50(%rdi)
movq %r12, 0x48(%rdi)
andq $0x0, 0x58(%rdi)
movq %rsi, 0x68(%rdi)
movq %rdx, 0x70(%rdi)
pushq $0x28
popq %rdi
callq 0x3030
movq %rax, 0x60(%rbx)
xorl %r14d, %r14d
pushq $0x14
popq %r13
cmpq $0x5, %r14
je 0x8176
movq %r13, %rdi
callq 0x3030
movq 0x60(%rbx), %rcx
movq %rax, (%rcx,%r14,8)
incq %r14
jmp 0x815b
xorl %r14d, %r14d
xorl %edi, %edi
callq 0x3180
movl %eax, %edi
callq 0x3190
pushq $0x64
popq %r15
cmpq $0x5, %r14
je 0x81e0
xorl %r12d, %r12d
cmpq $0x5, %r12
je 0x81db
callq 0x3070
cltd
idivl %r15d
cmpl $0xf, %edx
jg 0x81b7
movq 0x60(%rbx), %rax
movq (%rax,%r14,8), %rax
andl $0x0, (%rax,%r12,4)
jmp 0x81d6
movq 0x60(%rbx), %rax
movq (%rax,%r14,8), %rax
cmpl $0x23, %edx
ja 0x81ce
movl $0x2, (%rax,%r12,4)
jmp 0x81d6
movl $0x1, (%rax,%r12,4)
incq %r12
jmp 0x8194
incq %r14
jmp 0x818b
andq $0x0, 0x78(%rbx)
movq 0x60(%rbx), %rax
movq (%rax), %rax
pushq $0x1
popq %rcx
movl %ecx, (%rax)
movl %ecx, 0x88(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8208
movq %rax, %r13
movq %r12, %rdi
callq 0x9ab6
movq %r15, %rdi
callq 0x9ab6
movq -0x30(%rbp), %rdi
callq 0x9ab6
movq %rbx, %rdi
callq 0x9ab6
movq %r13, %rdi
callq 0x3240
// File: /workspace/github_cpp_makefile_star2_O2/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
movslq 0x7c(%rdi), %rcx
testq %rcx, %rcx
jle 0x8295
movq 0x60(%rdi), %rax
movq -0x8(%rax,%rcx,8), %rsi
movl 0x78(%rdi), %edx
movslq %edx, %rdx
cmpl $0x0, (%rsi,%rdx,4)
je 0x82a5
movl %ecx, 0x84(%rdi)
movl %edx, 0x80(%rdi)
movl 0x88(%rdi), %esi
movq (%rax,%rcx,8), %rcx
movl %esi, (%rcx,%rdx,4)
movslq 0x7c(%rdi), %rcx
leaq -0x1(%rcx), %rdx
movl %edx, 0x7c(%rdi)
movq -0x8(%rax,%rcx,8), %rax
movslq 0x78(%rdi), %rcx
movl (%rax,%rcx,4), %edx
movl %edx, 0x88(%rdi)
movl $0x3, (%rax,%rcx,4)
popq %rbp
retq
movq 0xad34(%rip), %rdi      # 0x12fd0
leaq 0x475d(%rip), %rsi      # 0xca00
jmp 0x82b3
movq 0xad24(%rip), %rdi      # 0x12fd0
leaq 0x4766(%rip), %rsi      # 0xca19
callq 0x31a0
movq %rax, %rdi
popq %rbp
jmp 0x30f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
pushq %rax
movq %rdi, %rbx
movl 0x7c(%rdi), %esi
movq 0xacfb(%rip), %rdi      # 0x12fd0
callq 0x3230
movq %rax, %rdi
callq 0x30f0
movslq 0x7c(%rbx), %rcx
cmpq $0x4, %rcx
jl 0x82fc
movq 0xacdd(%rip), %rdi      # 0x12fd0
leaq 0x473f(%rip), %rsi      # 0xca39
jmp 0x8363
movq 0x60(%rbx), %rax
movq 0x8(%rax,%rcx,8), %rsi
movl 0x78(%rbx), %edx
movslq %edx, %rdx
cmpl $0x0, (%rsi,%rdx,4)
je 0x8355
movl %ecx, 0x84(%rbx)
movl %edx, 0x80(%rbx)
movl 0x88(%rbx), %esi
movq (%rax,%rcx,8), %rcx
movl %esi, (%rcx,%rdx,4)
movslq 0x7c(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movl %edx, 0x7c(%rbx)
movq 0x8(%rax,%rcx,8), %rax
movslq 0x78(%rbx), %rcx
movl (%rax,%rcx,4), %edx
movl %edx, 0x88(%rbx)
movl $0x3, (%rax,%rcx,4)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0xac74(%rip), %rdi      # 0x12fd0
leaq 0x46b6(%rip), %rsi      # 0xca19
callq 0x31a0
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x30f0
// File: /workspace/github_cpp_makefile_star2_O2/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
movslq 0x78(%rdi), %rcx
testq %rcx, %rcx
jle 0x83d2
movq 0x60(%rdi), %rax
movslq 0x7c(%rdi), %rsi
movq (%rax,%rsi,8), %rdx
cmpl $0x0, -0x4(%rdx,%rcx,4)
je 0x83e2
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)
popq %rbp
retq
movq 0xabf7(%rip), %rdi      # 0x12fd0
leaq 0x466f(%rip), %rsi      # 0xca4f
jmp 0x83f0
movq 0xabe7(%rip), %rdi      # 0x12fd0
leaq 0x4629(%rip), %rsi      # 0xca19
callq 0x31a0
movq %rax, %rdi
popq %rbp
jmp 0x30f0
// File: /workspace/github_cpp_makefile_star2_O2/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
movslq 0x78(%rdi), %rcx
cmpq $0x5, %rcx
jl 0x841c
movq 0xabbd(%rip), %rdi      # 0x12fd0
leaq 0x4652(%rip), %rsi      # 0xca6c
jmp 0x8479
movq 0x60(%rdi), %rax
movslq 0x7c(%rdi), %rsi
movq (%rax,%rsi,8), %rdx
cmpl $0x0, 0x4(%rdx,%rcx,4)
je 0x846b
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)
popq %rbp
retq
movq 0xab5e(%rip), %rdi      # 0x12fd0
leaq 0x45a0(%rip), %rsi      # 0xca19
callq 0x31a0
movq %rax, %rdi
popq %rbp
jmp 0x30f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/kongrigoriou[P]Text-Based-RPG/src/Grid.cpp
// Function: Grid::get_monsters(int)
void Grid::get_monsters(int lvl){
    int maxlvl = 0;
    list <Monster*>::iterator it, it2, it3;
    for(it = Dragons.begin(); it != Dragons.end(); ++it){
        int mlvl = (*it)->get_level();
        if(mlvl > maxlvl){
            Monsters.push_back(*it);
        }
        if(mlvl == lvl || mlvl == lvl - 1 || mlvl == lvl + 1){
            insert_Monster(*it);
        }
    }

    for(it2 = Exoskeletons.begin(); it2 != Exoskeletons.end(); ++it2){
        int mlvl = (*it2)->get_level();
        if(mlvl == lvl || mlvl == lvl - 1 || mlvl == lvl + 1){
            insert_Monster(*it2);
        }
    }

       for(it3 = Spirits.begin(); it3 != Spirits.end(); ++it3){
        int mlvl = (*it3)->get_level();
        if(mlvl == lvl || mlvl == lvl - 1 || mlvl == lvl + 1){
            insert_Monster(*it3);
        }
    }

    if(Monsters.size() > 3)
        while(Monsters.size() > 3)
            Monsters.pop_back();
    else if(Monsters.size() == 0)
        cout << "Could not find monsters" << endl;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
leaq 0x48(%rdi), %rax
movq %rax, -0x38(%rbp)
leal -0x1(%rsi), %eax
movl %eax, -0x30(%rbp)
movq %rsi, %rbx
leal 0x1(%rsi), %eax
movl %eax, -0x2c(%rbp)
movq %rdi, %r14
movq (%r14), %r14
cmpq %r15, %r14
je 0x877a
leaq 0x10(%r14), %r12
movq 0x10(%r14), %rdi
callq 0x42fc
movl %eax, %r13d
testl %eax, %eax
jle 0x8750
movq -0x38(%rbp), %rdi
movq %r12, %rsi
callq 0x9a76
cmpl %ebx, %r13d
sete %al
cmpl -0x30(%rbp), %r13d
sete %cl
orb %al, %cl
cmpl -0x2c(%rbp), %r13d
sete %al
orb %cl, %al
cmpb $0x1, %al
jne 0x8728
movq (%r12), %rsi
movq %r15, %rdi
callq 0x8680
jmp 0x8728
leaq 0x18(%r15), %r14
movq %r14, %r12
movq (%r12), %r12
cmpq %r14, %r12
je 0x87bc
movq 0x10(%r12), %rdi
callq 0x42fc
cmpl %ebx, %eax
sete %cl
cmpl -0x30(%rbp), %eax
sete %dl
orb %cl, %dl
cmpl -0x2c(%rbp), %eax
sete %al
orb %dl, %al
cmpb $0x1, %al
jne 0x8781
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0x8680
jmp 0x8781
leaq 0x30(%r15), %r14
movq %r14, %r12
movq (%r12), %r12
cmpq %r14, %r12
je 0x87fe
movq 0x10(%r12), %rdi
callq 0x42fc
cmpl %ebx, %eax
sete %cl
cmpl -0x30(%rbp), %eax
sete %dl
orb %cl, %dl
cmpl -0x2c(%rbp), %eax
sete %al
orb %dl, %al
cmpb $0x1, %al
jne 0x87c3
movq 0x10(%r12), %rsi
movq %r15, %rdi
callq 0x8680
jmp 0x87c3
movq 0x58(%r15), %rax
cmpq $0x4, %rax
jb 0x881d
cmpq $0x4, %rax
jb 0x8822
movq -0x38(%rbp), %rdi
callq 0x9a86
movq 0x58(%r15), %rax
jmp 0x8808
testq %rax, %rax
je 0x8831
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xa798(%rip), %rdi      # 0x12fd0
leaq 0x42b2(%rip), %rsi      # 0xcaf1
callq 0x31a0
movq %rax, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30f0
// File: /workspace/github_cpp_makefile_star2_O2/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
xorl %r14d, %r14d
movq %r15, %r12
movq (%r12), %r12
cmpq %r15, %r12
je 0x8891
movq 0x10(%r12), %rdi
callq 0x4306
xorl %ecx, %ecx
testl %eax, %eax
setle %cl
addl %ecx, %r14d
jmp 0x8872
movl %r14d, %ecx
xorl %eax, %eax
cmpq %rcx, 0x58(%rbx)
sete %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0xa705(%rip), %r14      # 0x12fd0
leaq 0x4237(%rip), %r15      # 0xcb09
cmpq $0x5, %r12
je 0x8912
xorl %r13d, %r13d
cmpq $0x5, %r13
je 0x8905
movq 0x60(%rbx), %rax
movq (%rax,%r12,8), %rax
movl (%rax,%r13,4), %esi
movq %r14, %rdi
callq 0x3230
movq %rax, %rdi
movq %r15, %rsi
callq 0x31a0
incq %r13
jmp 0x88db
movq %r14, %rdi
callq 0x30f0
incq %r12
jmp 0x88d2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/kongrigoriou[P]Text-Based-RPG/src/Grid.cpp
// Function: Grid::enter_battle()
void Grid::enter_battle(){

    int BattleFlag = 0;
    string input;
    list <Monster*>::iterator mit;

    while(BattleFlag == 0){
        cout << "You are about to fight with monsters" << endl;
        cout << "Choose your next move!" << endl;
        cout << "1: display your teams' stats \n"
            << "2: display monsters stats \n" 
            << "3: to start the battle " << endl;
        
        cin >> input;

        if(input == "1"){
            team->display_myHeroes();
        }else if(input == "2"){
            for(mit = Monsters.begin(); mit != Monsters.end(); ++mit){
                (*mit)->display_stats();
            }
        }else if(input == "3"){
            BattleFlag = battle();
            BattleFlag = 1;
        }else{
            cout << "Wrong input. Try again" << endl;
        }
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rdi, -0x30(%rbp)
leaq 0x48(%rdi), %r12
movq 0xa67e(%rip), %r14      # 0x12fd0
leaq -0x50(%rbp), %r13
leaq 0x3d62(%rip), %rbx      # 0xc6bf
movq %r14, %rdi
leaq 0x41a5(%rip), %rsi      # 0xcb0c
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
movq %r14, %rdi
leaq 0x41b3(%rip), %rsi      # 0xcb31
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
movq %r14, %rdi
leaq 0x41b3(%rip), %rsi      # 0xcb48
callq 0x31a0
movq %rax, %rdi
leaq 0x41c3(%rip), %rsi      # 0xcb67
callq 0x31a0
movq %rax, %rdi
leaq 0x41d0(%rip), %rsi      # 0xcb83
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
movq 0xa619(%rip), %rdi      # 0x12fe0
movq %r13, %rsi
callq 0x31f0
movq %r13, %rdi
movq %rbx, %rsi
callq 0x5d10
testb %al, %al
je 0x89f0
movq -0x30(%rbp), %rax
movq 0x70(%rax), %rdi
callq 0xaa66
jmp 0x895d
movq %r13, %rdi
leaq 0x3cc7(%rip), %rsi      # 0xc6c1
callq 0x5d10
testb %al, %al
je 0x8a1d
movq %r12, %r15
movq (%r15), %r15
cmpq %r12, %r15
je 0x895d
movq 0x10(%r15), %rdi
callq 0x6596
jmp 0x8a06
movq %r13, %rdi
leaq 0x3d3d(%rip), %rsi      # 0xc764
callq 0x5d10
testb %al, %al
jne 0x8a4c
movq %r14, %rdi
leaq 0x4161(%rip), %rsi      # 0xcb9b
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
jmp 0x895d
movq -0x30(%rbp), %rdi
callq 0x8a6e
jmp 0x8a59
jmp 0x8a59
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3240
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r12
pushq %rbx
movq %rdi, %rbx
callq 0x9a94
leaq 0x18(%rbx), %r14
movq %r14, %rdi
callq 0x9a94
leaq 0x30(%rbx), %r15
movq %r15, %rdi
callq 0x9a94
leaq 0x48(%rbx), %r12
movq %r12, %rdi
callq 0x9a94
movq %r12, %rdi
callq 0x9ab6
movq %r15, %rdi
callq 0x9ab6
movq %r14, %rdi
callq 0x9ab6
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x9ab6
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r12
pushq %rbx
movq %rdi, %rbx
callq 0x8082
leaq 0x18(%rbx), %r14
movq %r14, %rdi
callq 0x8082
leaq 0x30(%rbx), %r15
movq %r15, %rdi
callq 0x8082
leaq 0x48(%rbx), %r12
movq %r12, %rdi
callq 0x8082
movq %r12, %rdi
callq 0x7fb8
movq %r15, %rdi
callq 0x7fb8
movq %r14, %rdi
callq 0x7fb8
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x7fb8
nop
// File: /workspace/github_cpp_makefile_star2_O2/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, %r15
leaq -0x48(%rbp), %r14
leaq 0x27b1(%rip), %r12      # 0xd236
movq %rdi, %rbx
movq (%rbx), %rbx
cmpq %r15, %rbx
je 0xab69
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x42e0
movq 0x8529(%rip), %rdi      # 0x12fd0
movq %r14, %rsi
callq 0x3170
movq %rax, %rdi
movq %r12, %rsi
callq 0x31a0
movq %rax, %r13
movq 0x10(%rbx), %rdi
callq 0x4306
movq %r13, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r12, %rsi
callq 0x31a0
movq %rax, %r13
movq 0x10(%rbx), %rdi
callq 0x44b6
movq %r13, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r12, %rsi
callq 0x31a0
movq %rax, %r13
movq 0x10(%rbx), %rdi
callq 0x44c0
movq %r13, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r12, %rsi
callq 0x31a0
movq %rax, %r13
movq 0x10(%rbx), %rdi
callq 0x44ca
movq %r13, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
movq %r12, %rsi
callq 0x31a0
movq %rax, %r13
movq 0x10(%rbx), %rdi
callq 0x44d4
movq %r13, %rdi
movl %eax, %esi
callq 0x3230
movq %rax, %rdi
callq 0x30f0
movq %r14, %rdi
callq 0x30e0
jmp 0xaa88
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3240
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x70, %rsp
cmpq $0x3, 0x10(%rdi)
jne 0xabc1
movq 0x842b(%rip), %rdi      # 0x12fd0
leaq 0x26b5(%rip), %rsi      # 0xd261
callq 0x31a0
movq %rax, %rdi
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x30f0
movq %rdi, %rbx
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x58(%rbp), %rdi
callq 0x3200
leaq -0x58(%rbp), %rsi
movq %rbx, %rdi
callq 0xac86
movq %rax, %r14
movq %rax, -0x18(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x30e0
testq %r14, %r14
je 0xac47
leaq -0x18(%rbp), %rsi
movq %rbx, %rdi
callq 0xae18
movq -0x18(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x42e0
movq 0x83b2(%rip), %rdi      # 0x12fd0
leaq -0x38(%rbp), %rsi
callq 0x3170
leaq 0x2646(%rip), %rsi      # 0xd274
movq %rax, %rdi
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
leaq -0x38(%rbp), %rdi
callq 0x30e0
leaq -0x78(%rbp), %rdi
callq 0x30e0
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0xac64
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
jmp 0xac70
movq %rax, %rbx
jmp 0xac75
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x30e0
leaq -0x78(%rbp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3240
// File: /workspace/github_cpp_makefile_star2_O2/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, -0x30(%rbp)
leaq 0x18(%rdi), %r14
leaq -0x50(%rbp), %r15
movq %r14, %r13
movq (%r13), %r13
cmpq %r14, %r13
je 0xace2
movq 0x10(%r13), %rsi
movq %r15, %rdi
callq 0x42e0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5ce4
movl %eax, %r12d
movq %r15, %rdi
callq 0x30e0
testb %r12b, %r12b
je 0xaca9
movq 0x10(%r13), %rax
jmp 0xad83
movq -0x30(%rbp), %rax
leaq 0x30(%rax), %r13
leaq -0x50(%rbp), %r15
movq %r13, %r14
movq (%r14), %r14
cmpq %r13, %r14
je 0xad22
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x42e0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5ce4
movl %eax, %r12d
movq %r15, %rdi
callq 0x30e0
testb %r12b, %r12b
je 0xacf1
jmp 0xad60
movq -0x30(%rbp), %r13
addq $0x48, %r13
leaq -0x50(%rbp), %r15
movq %r13, %r14
movq (%r14), %r14
cmpq %r13, %r14
je 0xad66
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x42e0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5ce4
movl %eax, %r12d
movq %r15, %rdi
callq 0x30e0
testb %r12b, %r12b
je 0xad31
movq 0x10(%r14), %rax
jmp 0xad83
movq 0x8263(%rip), %rdi      # 0x12fd0
leaq 0x251b(%rip), %rsi      # 0xd28f
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
xorl %r14d, %r14d
movq %rdi, %r15
movq (%r15), %r15
cmpq %rbx, %r15
je 0xade4
movq 0x10(%r15), %rdi
callq 0x4306
xorl %ecx, %ecx
testl %eax, %eax
setle %cl
addl %ecx, %r14d
jmp 0xadc7
xorl %eax, %eax
cmpl 0x10(%rbx), %r14d
sete %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0x26ca
movq %rdi, %rbx
cmpq $0x1, %r14
jne 0x2655
movq (%rbx), %r15
movsbl (%r15), %edi
callq 0x2040
testl %eax, %eax
jne 0x2658
jmp 0x26ca
movq (%rbx), %r15
xorl %r12d, %r12d
xorl %r13d, %r13d
movl %r13d, %eax
cmpq %rax, %r14
jbe 0x267c
movsbl (%r15,%rax), %edi
callq 0x2040
testl %eax, %eax
je 0x2679
incl %r13d
jmp 0x265e
movl %r13d, %r12d
leal -0x1(%r14), %eax
addq %rax, %r15
movsbl (%r15), %edi
callq 0x2040
testl %eax, %eax
je 0x269e
decl %r14d
decq %r15
testl %r14d, %r14d
jne 0x2683
xorl %r14d, %r14d
movslq %r12d, %rdx
subl %edx, %r14d
movslq %r14d, %rcx
leaq -0x48(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x22b0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2180
leaq -0x48(%rbp), %rdi
callq 0x22f0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x22f0
movq %rbx, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movq %rsi, %rbx
movl %edi, %r14d
callq 0x28a2
leaq -0x38(%rbp), %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0x28c7
leaq 0x5dcd(%rip), %rsi      # 0x84f1
leaq -0xf8(%rbp), %rdi
leaq -0x11(%rbp), %rdx
callq 0x2120
leaq -0xb8(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2310
leaq -0xd8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x2b9b
leaq -0x118(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
leaq -0xd8(%rbp), %rdx
callq 0x2a70
leaq -0xd8(%rbp), %rdi
callq 0x22f0
leaq -0xb8(%rbp), %rdi
callq 0x22f0
leaq -0xf8(%rbp), %rdi
callq 0x22f0
leaq -0x78(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2310
leaq -0x98(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x2ce8
leaq -0x58(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x2310
leaq -0x98(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x2c23
leaq -0x58(%rbp), %rdi
callq 0x22f0
leaq -0x98(%rbp), %rdi
callq 0x22f0
leaq -0x78(%rbp), %rdi
callq 0x22f0
leaq -0x118(%rbp), %rdi
callq 0x22f0
leaq -0x38(%rbp), %rdi
callq 0x22f0
xorl %eax, %eax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x2864
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x22f0
jmp 0x2841
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x22f0
jmp 0x2871
movq %rax, %rbx
jmp 0x2856
movq %rax, %rbx
jmp 0x284d
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x22f0
leaq -0x78(%rbp), %rdi
callq 0x22f0
leaq -0x118(%rbp), %rdi
callq 0x22f0
jmp 0x2889
movq %rax, %rbx
jmp 0x2889
movq %rax, %rbx
jmp 0x287d
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x22f0
leaq -0xf8(%rbp), %rdi
callq 0x22f0
leaq -0x38(%rbp), %rdi
callq 0x22f0
movq %rbx, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: check_args[abi:cxx11](int, char**)
string check_args(int argc, char** argv)
{
    string filename = "";
    if (argc > 1)
    {
        for (unsigned int i = 1; i < argc; ++i)
        {
            string argument = argv[i];
            if (argument == "-v") display_version(true);
            else if (argument == "-h") display_help();
            else if (argument == "-p") show_pushpops = true;
            else
            {
                filename = argument;
                if (i < argc - 1)
                {
                    warning("some switches after the filename have been ignored.");
                    //TODO these commands should be pushed to the stack.
                }
            }
        }
    }
    if (filename == "")
        error("\nUsage: polaris <file>\nRun polaris -h for more information");
    return filename;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, -0x48(%rbp)
movl %esi, %ebx
leaq 0x5ab0(%rip), %rsi      # 0x8398
leaq -0x68(%rbp), %rdx
movq %rdi, -0x38(%rbp)
callq 0x2120
cmpl $0x2, %ebx
jl 0x29ca
leal -0x1(%rbx), %eax
movq %rax, -0x40(%rbp)
movl %ebx, %ebx
pushq $0x1
popq %r13
leaq -0x68(%rbp), %r15
leaq -0x29(%rbp), %r12
cmpq %r13, %rbx
je 0x29ca
movq -0x48(%rbp), %rax
movq (%rax,%r13,8), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x2120
movq %r15, %rdi
leaq 0x5767(%rip), %rsi      # 0x80a0
callq 0x61d8
testb %al, %al
je 0x294c
pushq $0x1
popq %rdi
callq 0x2fa2
jmp 0x29ba
movq %r15, %rdi
leaq 0x574d(%rip), %rsi      # 0x80a3
callq 0x61d8
testb %al, %al
jne 0x29f4
movq %r15, %rdi
leaq 0x5739(%rip), %rsi      # 0x80a6
callq 0x61d8
testb %al, %al
je 0x297f
movb $0x1, 0x98c4(%rip)      # 0xc241
jmp 0x29ba
movq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x2180
cmpq -0x40(%rbp), %r13
jae 0x29ba
movq %r12, %rdx
leaq -0xa8(%rbp), %r14
movq %r14, %rdi
leaq 0x5704(%rip), %rsi      # 0x80a9
callq 0x2120
movq %r14, %rdi
callq 0x30ac
movq %r14, %rdi
callq 0x22f0
movq %r15, %rdi
callq 0x22f0
incq %r13
jmp 0x2913
leaq 0x59c7(%rip), %rsi      # 0x8398
movq -0x38(%rbp), %rdi
callq 0x61d8
testb %al, %al
jne 0x29f9
movq -0x38(%rbp), %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x300f
leaq 0x56dd(%rip), %rsi      # 0x80dd
leaq -0x88(%rbp), %rdi
leaq -0x68(%rbp), %rdx
callq 0x2120
leaq -0x88(%rbp), %rdi
callq 0x30e1
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x22f0
jmp 0x2a57
jmp 0x2a46
jmp 0x2a46
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x22f0
jmp 0x2a4e
jmp 0x2a4b
jmp 0x2a46
movq %rax, %rbx
jmp 0x2a57
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x22f0
movq -0x38(%rbp), %rdi
callq 0x22f0
movq %rbx, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: join_paths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string join_paths(string base_path, string new_path)
{
    string joined_path = "";
    if(new_path[0] == '/') //Absolute Path
            joined_path = new_path;
    else if(new_path[0] == '~' && new_path[1] == '/') //Home Path
        joined_path = expand_home(new_path);
    else // Relative path
        joined_path = base_path + "/" + new_path;
    return joined_path;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x590b(%rip), %rsi      # 0x8398
leaq -0x38(%rbp), %rdx
callq 0x2120
movq (%r14), %rax
movzbl (%rax), %ecx
cmpl $0x7e, %ecx
je 0x2ab6
cmpl $0x2f, %ecx
jne 0x2af5
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2180
jmp 0x2b36
cmpb $0x2f, 0x1(%rax)
jne 0x2af5
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x2310
leaq -0x38(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x2ed8
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0x2180
leaq -0x38(%rbp), %rdi
callq 0x22f0
leaq -0x78(%rbp), %rdi
callq 0x22f0
jmp 0x2b36
leaq 0x5919(%rip), %rdx      # 0x8415
leaq -0x58(%rbp), %rdi
movq %r15, %rsi
callq 0x6198
leaq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rsi
movq %r14, %rdx
callq 0x6158
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0x2180
leaq -0x38(%rbp), %rdi
callq 0x22f0
leaq -0x58(%rbp), %rdi
callq 0x22f0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x38(%rbp), %rdi
callq 0x22f0
jmp 0x2b57
jmp 0x2b72
movq %rax, %r14
leaq -0x78(%rbp), %rdi
callq 0x22f0
jmp 0x2b83
jmp 0x2b72
movq %rax, %r14
leaq -0x38(%rbp), %rdi
callq 0x22f0
jmp 0x2b7a
movq %rax, %r14
jmp 0x2b83
movq %rax, %r14
leaq -0x58(%rbp), %rdi
callq 0x22f0
movq %rbx, %rdi
callq 0x22f0
movq %r14, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: get_working_directory(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string get_working_directory(string base_path)
{
    for(size_t i = base_path.length() - 1; i > 0; i--)
    {
        if(base_path[i] == '/'){
            base_path = base_path.substr(0, i);
            break;
        }
    }
    return base_path;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %rax
cmpq $0x1, %rax
je 0x2bee
movq (%r14), %rdx
leaq -0x1(%rax), %rcx
cmpb $0x2f, -0x1(%rdx,%rax)
movq %rcx, %rax
jne 0x2bb2
leaq -0x38(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x22b0
movq %r14, %rdi
movq %r15, %rsi
callq 0x2180
leaq -0x38(%rbp), %rdi
callq 0x22f0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2310
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x22f0
movq %rbx, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: eval(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void eval(string source, string base_path)
{
    vector<pair<bool, string> > tokens = tokenize(source);
    for(size_t i = 0; i < tokens.size(); ++i){
        if(tokens[i].first)
            execute_string(tokens[i].second, base_path);
        else
            stack_push(tokens[i].second, false, true);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %rsi
leaq -0x40(%rbp), %rdi
callq 0x3226
pushq $0x8
popq %r12
xorl %r13d, %r13d
pushq $0x28
popq %r15
leaq -0x60(%rbp), %r14
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rax
subq %rcx, %rax
cqto
idivq %r15
cmpq %rax, %r13
jae 0x2ca6
leaq (%rcx,%r12), %rsi
cmpb $0x1, -0x8(%rcx,%r12)
jne 0x2c80
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x3a06
jmp 0x2c9d
movq %r14, %rdi
callq 0x2310
movq %r14, %rdi
xorl %esi, %esi
pushq $0x1
popq %rdx
callq 0x3546
movq %r14, %rdi
callq 0x22f0
incq %r13
addq $0x28, %r12
jmp 0x2c52
leaq -0x40(%rbp), %rdi
callq 0x62a2
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x22f0
jmp 0x2ccf
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x62a2
movq %rbx, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: load_source_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string load_source_file(string filename)
{
    string contents = "";
    filename = expand_home(filename);
    ifstream file(filename.c_str());
    if(!file.is_open())
        error("the file '" + filename + "' couldn't be loaded.");
    string line = "";
    while(getline(file, line))
        contents += line + "\n";
    return contents;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x568f(%rip), %rsi      # 0x8398
leaq -0x2b0(%rbp), %rdx
callq 0x2120
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x2310
leaq -0x2b0(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x2ed8
leaq -0x2b0(%rbp), %rsi
movq %r14, %rdi
callq 0x2180
leaq -0x2b0(%rbp), %rdi
callq 0x22f0
leaq -0x68(%rbp), %rdi
callq 0x22f0
movq (%r14), %rsi
leaq -0x2b0(%rbp), %rdi
pushq $0x8
popq %rdx
callq 0x23f0
leaq -0x238(%rbp), %rdi
callq 0x20a0
testb %al, %al
je 0x2e11
leaq 0x5616(%rip), %rsi      # 0x8398
leaq -0x48(%rbp), %rdi
leaq -0x88(%rbp), %rdx
callq 0x2120
leaq -0x2b0(%rbp), %r14
leaq -0x48(%rbp), %r15
leaq 0x55f3(%rip), %r12      # 0x8397
leaq -0x88(%rbp), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x2070
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2de7
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x6198
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2430
movq %r13, %rdi
callq 0x22f0
jmp 0x2dab
leaq -0x48(%rbp), %rdi
callq 0x22f0
leaq -0x2b0(%rbp), %rdi
callq 0x20b0
movq %rbx, %rax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x555e(%rip), %rsi      # 0x8376
leaq -0x48(%rbp), %rdi
movq %r14, %rdx
callq 0x61e8
leaq 0x5556(%rip), %rdx      # 0x8381
leaq -0xa8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x6198
leaq -0xa8(%rbp), %rdi
callq 0x30e1
movq %rax, %r14
leaq -0xa8(%rbp), %rdi
callq 0x22f0
jmp 0x2e5b
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x22f0
jmp 0x2eb4
jmp 0x2e6a
jmp 0x2e6a
movq %rax, %r14
jmp 0x2eb4
movq %rax, %r14
leaq -0x2b0(%rbp), %rdi
callq 0x22f0
jmp 0x2e8a
jmp 0x2e82
movq %rax, %r14
jmp 0x2ec0
movq %rax, %r14
leaq -0x68(%rbp), %rdi
callq 0x22f0
jmp 0x2ec0
movq %rax, %r14
leaq -0x88(%rbp), %rdi
callq 0x22f0
jmp 0x2eab
jmp 0x2ea8
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x22f0
leaq -0x2b0(%rbp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x22f0
movq %r14, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: expand_home(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string expand_home(string filename)
{
    string newPath = "";
    string homeDir = exec("echo $HOME");
    trim(homeDir);
    for(size_t i = 0; i < filename.length(); ++i)
        if(i == 0 && filename[i] == '~' && filename[i+1] == '/')
            newPath += homeDir;
        else
            newPath += filename[i];
    return newPath;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x54a4(%rip), %rsi      # 0x8398
leaq -0x40(%rbp), %rdx
callq 0x2120
leaq 0x5467(%rip), %rsi      # 0x836b
leaq -0x40(%rbp), %rdi
callq 0x3173
leaq -0x40(%rbp), %rdi
callq 0x261c
xorl %r12d, %r12d
leaq -0x40(%rbp), %r15
cmpq 0x8(%r14), %r12
jae 0x2f55
movq (%r14), %rax
testq %r12, %r12
jne 0x2f43
cmpb $0x7e, (%rax)
jne 0x2f43
cmpb $0x2f, 0x1(%rax)
jne 0x2f43
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2430
jmp 0x2f50
movsbl (%rax,%r12), %esi
movq %rbx, %rdi
callq 0x2230
incq %r12
jmp 0x2f1d
leaq -0x40(%rbp), %rdi
callq 0x22f0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f75
movq %rax, %r14
jmp 0x2f81
movq %rax, %r14
leaq -0x40(%rbp), %rdi
callq 0x22f0
movq %rbx, %rdi
callq 0x22f0
movq %r14, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: display_version(bool)
void display_version(bool exit)
{
    cout << endl;
    cout << "  This is Polaris version " << VERSION << endl;
    cout << "  Copyright 2020, Martin del Rio (www.lartu.net)." << endl;
    cout << endl;
    if (exit) polaris_exit(0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
movq 0x901e(%rip), %r14      # 0xbfd0
movq %r14, %rdi
callq 0x2160
leaq 0x519d(%rip), %rsi      # 0x815e
movq %r14, %rdi
callq 0x2290
leaq 0x51a9(%rip), %rsi      # 0x8179
movq %rax, %rdi
callq 0x2290
movq %rax, %rdi
callq 0x2160
leaq 0x5196(%rip), %rsi      # 0x817d
movq %r14, %rdi
callq 0x2290
movq %rax, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2160
testl %ebx, %ebx
jne 0x3008
popq %rbx
popq %r14
popq %rbp
retq
xorl %edi, %edi
callq 0x22e0
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: display_help()
void display_help()
{
    puts("");
    puts(" Usage:");
    puts("   polaris <source file> [<switch>...]");
    puts(" Switches:");
    puts("   -v              Display Polaris version information.");
    puts("   -h              Display this help.");
    puts("   -p              Show push and pops during execution.");
    puts("");
    puts(" Complete documentation for Polaris should be found on this");
    puts(" system using the 'man polaris' command. If you have access");
    puts(" to the internet, the documentation can also be found online");
    puts(" at www.lartu.net/languages/polaris.");
    puts("");
    polaris_exit(0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
pushq $0xa
popq %rbx
movl %ebx, %edi
callq 0x2320
leaq 0x5189(%rip), %rdi      # 0x81af
callq 0x2370
leaq 0x5185(%rip), %rdi      # 0x81b7
callq 0x2370
leaq 0x51a0(%rip), %rdi      # 0x81de
callq 0x2370
leaq 0x519f(%rip), %rdi      # 0x81e9
callq 0x2370
leaq 0x51cb(%rip), %rdi      # 0x8221
callq 0x2370
leaq 0x51e5(%rip), %rdi      # 0x8247
callq 0x2370
movl %ebx, %edi
callq 0x2320
leaq 0x520a(%rip), %rdi      # 0x827f
callq 0x2370
leaq 0x523a(%rip), %rdi      # 0x82bb
callq 0x2370
leaq 0x526a(%rip), %rdi      # 0x82f7
callq 0x2370
leaq 0x529b(%rip), %rdi      # 0x8334
callq 0x2370
movl %ebx, %edi
callq 0x2320
xorl %edi, %edi
callq 0x22e0
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void error(string message)
{
    cout << "+---------------+" << endl;
    cout << "| Polaris Error |" << endl;
    cout << "+---------------+";
    if (message[0] != '\n') cout << endl << "The error was: ";
    cout << message << endl;
    polaris_exit(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8edb(%rip), %r14      # 0xbfd0
leaq 0x501c(%rip), %r15      # 0x8118
movq %r14, %rdi
movq %r15, %rsi
callq 0x2290
movq %rax, %rdi
callq 0x2160
leaq 0x5014(%rip), %rsi      # 0x812a
movq %r14, %rdi
callq 0x2290
movq %rax, %rdi
callq 0x2160
movq %r14, %rdi
movq %r15, %rsi
callq 0x2290
movq (%rbx), %rax
cmpb $0xa, (%rax)
je 0x3154
movq 0x8e90(%rip), %rdi      # 0xbfd0
callq 0x2160
leaq 0x4ff0(%rip), %rsi      # 0x813c
movq %rax, %rdi
callq 0x2290
movq 0x8e75(%rip), %rdi      # 0xbfd0
movq %rbx, %rsi
callq 0x2250
movq %rax, %rdi
callq 0x2160
pushq $0x1
popq %rdi
callq 0x22e0
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: exec[abi:cxx11](char const*)
string exec(const char* cmd)
{
    string result = "";
    FILE *fpipe;
    char c = 0;
    if (0 == (fpipe = (FILE*) popen(cmd, "r")))
    {
        perror("popen() failed.");
        polaris_exit(EXIT_FAILURE);
    }
    while (fread(&c, sizeof c, 1, fpipe))
        result += c;
    pclose(fpipe);
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x5209(%rip), %rsi      # 0x8398
leaq -0x22(%rbp), %rdx
callq 0x2120
movb $0x0, -0x21(%rbp)
leaq 0x51b6(%rip), %rsi      # 0x8359
movq %r14, %rdi
callq 0x2100
testq %rax, %rax
je 0x31f7
movq %rax, %r14
leaq -0x21(%rbp), %r15
pushq $0x1
popq %r12
movq %r15, %rdi
movq %r12, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x2350
testq %rax, %rax
je 0x31df
movsbl -0x21(%rbp), %esi
movq %rbx, %rdi
callq 0x2230
jmp 0x31bb
movq %r14, %rdi
callq 0x2330
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x515d(%rip), %rdi      # 0x835b
callq 0x2220
pushq $0x1
popq %rdi
callq 0x22e0
movq %rax, %r14
movq %rbx, %rdi
callq 0x22f0
movq %r14, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: stack_push(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, bool)
void stack_push(string token, bool trim_token, bool pushempty)
{
    if (trim_token) trim(token);
    if (token.length() > 0 || pushempty)
    {
        p_stack.push(token);
        if(show_pushpops) cout << "Push: '" << token << "'" << endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, %r14d
movq %rdi, %rbx
testl %esi, %esi
je 0x355f
movq %rbx, %rdi
callq 0x261c
cmpq $0x0, 0x8(%rbx)
sete %al
xorb $0x1, %r14b
testb %r14b, %al
jne 0x35c1
leaq 0x8cd1(%rip), %rdi      # 0xc248
movq %rbx, %rsi
callq 0x6d68
cmpb $0x1, 0x8cbb(%rip)      # 0xc241
jne 0x35c1
movq 0x8a41(%rip), %rdi      # 0xbfd0
leaq 0x4e03(%rip), %rsi      # 0x8399
callq 0x2290
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2250
leaq 0x4df2(%rip), %rsi      # 0x839f
movq %rax, %rdi
callq 0x2290
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2160
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: stack_pop[abi:cxx11]()
string stack_pop()
{
    string val = "";
    if(p_stack.size() == 0)
    {
        error("cannot pop from an empty stack.");
    }
    else
    {
        val = p_stack.top();
        p_stack.pop();
    }
    if(show_pushpops) cout << "Pop: '" << val << "'" << endl;
    return val;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
leaq 0x4dbd(%rip), %rsi      # 0x8398
leaq -0x11(%rbp), %rdx
callq 0x2120
leaq 0x8c5d(%rip), %rdi      # 0xc248
callq 0x68b8
testq %rax, %rax
je 0x367b
movq 0x8c78(%rip), %rsi      # 0xc278
cmpq 0x8c79(%rip), %rsi      # 0xc280
jne 0x3619
movq 0x8c80(%rip), %rax      # 0xc290
movl $0x200, %esi            # imm = 0x200
addq -0x8(%rax), %rsi
addq $-0x20, %rsi
movq %rbx, %rdi
callq 0x2180
leaq 0x8c1c(%rip), %rdi      # 0xc248
callq 0x6fa8
cmpb $0x1, 0x8c09(%rip)      # 0xc241
jne 0x366f
movq 0x898f(%rip), %rdi      # 0xbfd0
leaq 0x4d79(%rip), %rsi      # 0x83c1
callq 0x2290
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2250
leaq 0x4d40(%rip), %rsi      # 0x839f
movq %rax, %rdi
callq 0x2290
movq %rax, %rdi
callq 0x2160
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x4d1f(%rip), %rsi      # 0x83a1
leaq -0x38(%rbp), %rdi
leaq -0x11(%rbp), %rdx
callq 0x2120
leaq -0x38(%rbp), %rdi
callq 0x30e1
movq %rax, %r14
leaq -0x38(%rbp), %rdi
callq 0x22f0
jmp 0x36ab
jmp 0x36a8
movq %rax, %r14
movq %rbx, %rdi
callq 0x22f0
movq %r14, %rdi
callq 0x23e0
movq %rax, %rdi
callq 0x60ad
// File: /workspace/github_cpp_makefile_star2_O2/Lartu[P]polaris/src/polaris.cpp
// Function: polaris_delay(int)
void polaris_delay(int milliseconds)
{
    struct timespec  req, rem;
    if (milliseconds <= 0L)
        return;
    req.tv_sec = milliseconds / 1000L;
    req.tv_nsec = (milliseconds % 1000L) * 1000000L;
    rem.tv_sec = 0;
    rem.tv_nsec = 0;
    nanosleep(&req, &rem);
}

// Assembly:
testl %edi, %edi
jle 0x36ff
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl $0x3e8, %ecx            # imm = 0x3E8
movl %edi, %eax
xorl %edx, %edx
divl %ecx
leaq -0x20(%rbp), %rdi
movq %rax, (%rdi)
imull $0xf4240, %edx, %eax    # imm = 0xF4240
movq %rax, 0x8(%rdi)
xorps %xmm0, %xmm0
leaq -0x10(%rbp), %rsi
movaps %xmm0, (%rsi)
callq 0x20f0
addq $0x20, %rsp
popq %rbp
retq