LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/CoinBlack[P]blackcoin-seeder/db.cpp
// Function: CAddrDb::Add_(CAddress const&, bool)
void CAddrDb::Add_(const CAddress &addr, bool force) {
  if (!force && !addr.IsRoutable())
    return;
  CService ipp(addr);
  if (banned.count(ipp)) {
    time_t bantime = banned[ipp];
    if (force || (bantime < time(NULL) && addr.nTime > bantime))
      banned.erase(ipp);
    else
      return;
  }
  if (ipToId.count(ipp)) {
    CAddrInfo &ai = idToInfo[ipToId[ipp]];
    if (addr.nTime > ai.lastTry) ai.lastTry = addr.nTime;
    // Do not update ai.nServices (data from VERSION from the peer itself is better than random ADDR rumours).
    if (force) {
      ai.ignoreTill = 0;
    }
    return;
  }
  CAddrInfo ai;
  ai.ip = ipp;
  ai.services = addr.nServices;
  ai.lastTry = addr.nTime;
  ai.ourLastTry = 0;
  ai.total = 0;
  ai.success = 0;
  int id = nId++;
  idToInfo[id] = ai;
  ipToId[ipp] = id;
//  printf("%s: added\n", ToString(ipp).c_str(), ipToId[ipp]);
  unkId.insert(id);
  nDirty++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xe0, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
testl %edx, %edx
jne 0xa52b
movq %r14, %rdi
callq 0x87de
testb %al, %al
je 0xa686
movzwl 0x10(%r14), %eax
leaq 0x10(%rsp), %rsi
movw %ax, 0x10(%rsi)
movups (%r14), %xmm0
movaps %xmm0, (%rsi)
leaq 0x158(%rbx), %r15
movq %r15, %rdi
callq 0xadf8
testq %rax, %rax
je 0xa593
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xad92
testb %bpl, %bpl
jne 0xa586
movq (%rax), %r12
xorl %edi, %edi
callq 0x33c0
cmpq %rax, %r12
jge 0xa686
movl 0x20(%r14), %eax
cmpq %rax, %r12
jge 0xa686
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xbb52
leaq 0x70(%rbx), %r15
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xaace
testq %rax, %rax
je 0xa5e6
addq $0x40, %rbx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xaae8
movq %rbx, %rdi
movq %rax, %rsi
callq 0xaa40
movl 0x20(%r14), %ecx
cmpq %rcx, 0x20(%rax)
jge 0xa5d3
movq %rcx, 0x20(%rax)
testb %bpl, %bpl
je 0xa686
andq $0x0, 0x38(%rax)
jmp 0xa686
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0xae12
movzwl 0x20(%rsp), %eax
movw %ax, 0x10(%r12)
movaps 0x10(%rsp), %xmm0
movaps %xmm0, (%r12)
movq 0x18(%r14), %rax
movq %rax, 0x18(%r12)
movl 0x20(%r14), %eax
movq %rax, 0x20(%r12)
andq $0x0, 0x28(%r12)
andq $0x0, 0x84(%r12)
movl 0x38(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x38(%rbx)
leaq 0xc(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x40(%rbx), %rdi
callq 0xaa40
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0xae60
movl 0xc(%rsp), %ebp
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xaae8
movl %ebp, (%rax)
leaq 0xf0(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0xb78e
incl 0x150(%rbx)
leaq 0xc0(%rsp), %rdi
callq 0x31d0
addq $0xe0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x31d0
movq %rbx, %rdi
callq 0x36d0
// File: /workspace/github_cpp_makefile_star2_O2/CoinBlack[P]blackcoin-seeder/./db.h
// Function: CAddrDb::ResultMany(std::vector<CServiceResult, std::allocator<CServiceResult>> const&)
void ResultMany(const std::vector<CServiceResult> &ips) {
    CRITICAL_BLOCK(cs) {
      for (int i=0; i<ips.size(); i++) {
        if (ips[i].fGood) {
          Good_(ips[i].service, ips[i].nClientV, ips[i].strClientV, ips[i].nHeight, ips[i].services);
        } else {
          Bad_(ips[i].service, ips[i].nBanTime);
        }
      }
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x3610
pushq $0x30
popq %r13
xorl %r15d, %r15d
leaq 0x8(%rsp), %rdi
movq (%r14), %rsi
movq 0x8(%r14), %rax
subq %rsi, %rax
cqto
pushq $0x58
popq %rcx
idivq %rcx
cmpq %r15, %rax
jbe 0xdb5e
leaq (%rsi,%r13), %r12
addq $-0x30, %r12
cmpb $0x1, 0x20(%r12)
jne 0xdb45
movl -0x4(%rsi,%r13), %ebp
addq %r13, %rsi
callq 0x3570
movq (%r14), %rax
movl -0x8(%rax,%r13), %r8d
movq -0x18(%rax,%r13), %r9
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
leaq 0x8(%rsp), %r12
movq %r12, %rcx
callq 0xa2c0
movq %r12, %rdi
callq 0x31d0
jmp 0xdb55
movl -0xc(%rsi,%r13), %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa3b2
incq %r15
addq $0x58, %r13
jmp 0xdae0
movq %rbx, %rdi
callq 0x3510
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x31d0
jmp 0xdb87
movq %rax, %r14
movq %rbx, %rdi
callq 0x3510
movq %r14, %rdi
callq 0x36d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/t0mm4rx[P]piscine_cpp/day07/ex00/whatever.cpp
// Function: void swap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(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 swap(T &a, T &b)
{
  T tmp;
  tmp = a;
  a = b;
  b = tmp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x20(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x1090
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1090
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
callq 0x1090
leaq -0x30(%rbp), %rdi
callq 0x1070
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x1070
movq %rbx, %rdi
callq 0x1110
// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk-extras/exprtk_symtab_functions.cpp
// Function: void symbol_table_function_names<double>()
void symbol_table_function_names()
{
   typedef exprtk::symbol_table<T> symbol_table_t;

   symbol_table_t symbol_table;

   myfunc<T> mf;

   symbol_table.add_function("f1",[](T v0) -> T { return v0;});
   symbol_table.add_function("f2",[](T v0, T v1) -> T{ return v0 / v1;});

   symbol_table.add_function("myfunc"   , mf         );
   symbol_table.add_function("otherfunc", myotherfunc);

   for (const auto& func : symbol_table.get_function_list())
   {
      printf("function: %s\n",func.c_str());
   }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x40ae
andw $0x0, 0x40(%rsp)
andq $0x0, 0x48(%rsp)
orq $-0x1, 0x50(%rsp)
movq $0x2, 0x58(%rsp)
leaq 0x6b77(%rip), %rax      # 0xaa20
movq %rax, 0x38(%rsp)
leaq 0x336c(%rip), %rsi      # 0x7221
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3e36
leaq 0x17cd(%rip), %rdx      # 0x5698
leaq 0x10(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x40d2
leaq 0x18(%rsp), %rdi
callq 0x20a0
leaq 0x3339(%rip), %rsi      # 0x7224
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3e36
leaq 0x17af(%rip), %rdx      # 0x56b0
leaq 0x10(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x4186
leaq 0x18(%rsp), %rdi
callq 0x20a0
leaq 0x3306(%rip), %rsi      # 0x7227
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3e36
leaq 0x10(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x423a
leaq 0x18(%rsp), %rdi
callq 0x20a0
leaq 0x32d9(%rip), %rsi      # 0x722e
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3e36
leaq 0x3e3(%rip), %rdx       # 0x434e
leaq 0x10(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x429a
leaq 0x18(%rsp), %rdi
callq 0x20a0
leaq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4360
movq 0x18(%rsp), %r14
movq 0x20(%rsp), %r15
leaq 0x3294(%rip), %rbx      # 0x7238
cmpq %r15, %r14
je 0x3fbc
movq (%r14), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2040
addq $0x20, %r14
jmp 0x3fa4
leaq 0x18(%rsp), %rdi
callq 0x439c
leaq 0x10(%rsp), %rdi
callq 0x43c0
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x3ff7
jmp 0x3fe8
jmp 0x3ff7
jmp 0x3fe8
jmp 0x3ff7
jmp 0x3fe8
jmp 0x3ff7
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x20a0
jmp 0x3ffa
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x43c0
movq %rbx, %rdi
callq 0x21b0
// File: /workspace/github_cpp_makefile_star2_O2/onlyuser[P]Sandbox/test_c/c++0x/main2.cpp
// Function: main
int main(int argc, char** argv)
{
    if(argc != 2) {
        std::cout << "Error: Need 1 arg!" << std::endl;
        return 1;
    }
    int x = atoi(argv[1]);
    std::cout << "The factorial of " << x << " is " << [](int n) -> float
                                                         {
                                                             float result = 1;
                                                             for(int i = 1; i <= n; i++) {
                                                                 result *= i;
                                                             }
                                                             return result;
                                                         }(x) << std::endl;
    return 0;
}

// Assembly:
pushq %rbx
cmpl $0x2, %edi
jne 0x1231
movq 0x8(%rsi), %rdi
callq 0x1080
movl %eax, %ebx
movq 0x2df4(%rip), %rdi      # 0x3fd8
leaq 0xe30(%rip), %rsi       # 0x201b
callq 0x1060
movq %rax, %rdi
movl %ebx, %esi
callq 0x1090
leaq 0xe2c(%rip), %rsi       # 0x202d
movq %rax, %rdi
callq 0x1060
xorl %ecx, %ecx
testl %ebx, %ebx
cmovgl %ebx, %ecx
negl %ecx
pushq $0x1
popq %rdx
movss 0xde7(%rip), %xmm0      # 0x2004
leal (%rcx,%rdx), %esi
cmpl $0x1, %esi
je 0x1249
cvtsi2ss %edx, %xmm1
mulss %xmm1, %xmm0
incl %edx
jmp 0x121d
movq 0x2da0(%rip), %rdi      # 0x3fd8
leaq 0xdc9(%rip), %rsi       # 0x2008
callq 0x1060
pushq $0x1
popq %rbx
jmp 0x1253
movq %rax, %rdi
callq 0x1040
xorl %ebx, %ebx
movq %rax, %rdi
callq 0x1030
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/Olverine[P]TerminalGraphics/./Maths.h
// Function: getTranslation(glm::tvec3<float, (glm::precision)0>)
glm::mat4 getTranslation(vec3 position) {
    float mat[16] = {
        1, 0, 0, position.x,
        0, 1, 0, position.y,
        0, 0, 1, position.z,
        0, 0, 0, 1
    };
    return arrayToMatrix(mat);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movabsq $0x3f80000000000000, %rcx # imm = 0x3F80000000000000
movq %rcx, 0x10(%rdi)
andq $0x0, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movl $0x3f800000, %ecx       # imm = 0x3F800000
movl %ecx, 0x28(%rdi)
movups %xmm0, 0x2c(%rdi)
movl %ecx, 0x3c(%rdi)
movq $0x3f800000, (%rdi)     # imm = 0x3F800000
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Olverine[P]TerminalGraphics/./Maths.h
// Function: getPerspective(float, float, float)
glm::mat4 getPerspective(float fov, float near, float far) {
    float mat[16] = {
        1 / tan(fov / 2), 0, 0, 0,
        0, 1 / tan(fov / 2), 0, 0,
        0, 0, -(far + near / far - near), -(2 * far * near / far - near),
        0, 0, 1, 0
    };
    return arrayToMatrix(mat);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
mulss 0x1aa0(%rip), %xmm0     # 0x4008
movss %xmm0, -0xc(%rbp)
callq 0x21a0
movss 0x1a8a(%rip), %xmm1     # 0x4004
divss %xmm0, %xmm1
movss %xmm1, -0x10(%rbp)
movss -0xc(%rbp), %xmm0
callq 0x21a0
movabsq $0x3f80000000000000, %rax # imm = 0x3F80000000000000
andq $0x0, 0x8(%rbx)
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbx)
movl $0x3f800000, %eax       # imm = 0x3F800000
movl %eax, 0x28(%rbx)
movups %xmm0, 0x2c(%rbx)
movl %eax, 0x3c(%rbx)
movss -0x10(%rbp), %xmm0
movss %xmm0, (%rbx)
andl $0x0, 0x4(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Olverine[P]TerminalGraphics/./Maths.h
// Function: getView(glm::tvec3<float, (glm::precision)0>, glm::tvec3<float, (glm::precision)0>, glm::tvec3<float, (glm::precision)0>)
mat4 getView(vec3 eye, vec3 target, vec3 up) {
    vec3 zaxis = normalize(eye - target); // The "forward" vector.
    vec3 xaxis = normalize(cross(up, zaxis)); // The "right" vector.
    vec3 yaxis = cross(zaxis, xaxis); // The "up" vector.

    // Create a 4x4 view matrix from the right, up, forward and eye position vectors
    float viewMatrix[16] = {
        xaxis.x, yaxis.x, zaxis.x, 0,
        xaxis.y, yaxis.y, zaxis.y, 0,
        xaxis.z, yaxis.z, zaxis.z, 0,
        -dot(xaxis, eye), -dot(yaxis, eye), -dot(zaxis, eye),  1
    };

    return arrayToMatrix(viewMatrix);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq -0x90(%rbp), %r14
movlps %xmm0, (%r14)
movss %xmm1, 0x8(%r14)
leaq -0x80(%rbp), %r13
movlps %xmm4, (%r13)
movss %xmm5, 0x8(%r13)
subps %xmm2, %xmm0
subss %xmm3, %xmm1
leaq -0x48(%rbp), %r12
movlps %xmm0, (%r12)
movss %xmm1, 0x8(%r12)
movq %r12, %rdi
callq 0x38d4
leaq -0x70(%rbp), %r15
movlps %xmm0, (%r15)
movss %xmm1, 0x8(%r15)
movq %r13, %rdi
movq %r15, %rsi
callq 0x3938
leaq -0x38(%rbp), %r13
movlps %xmm0, (%r13)
movss %xmm1, 0x8(%r13)
movq %r13, %rdi
callq 0x38d4
movlps %xmm0, (%r12)
movss %xmm1, 0x8(%r12)
movq %r15, %rdi
movq %r12, %rsi
callq 0x3938
movaps %xmm0, -0x60(%rbp)
movlps %xmm0, (%r13)
movss %xmm1, 0x8(%r13)
movl (%r12), %r13d
movq %r12, %rdi
movq %r14, %rsi
callq 0x3988
leaq -0x38(%rbp), %rdi
movq %r14, %rsi
callq 0x3988
movq %r15, %rdi
movq %r14, %rsi
callq 0x3988
movabsq $0x3f80000000000000, %rax # imm = 0x3F80000000000000
movq %rax, 0x10(%rbx)
andq $0x0, 0x8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbx)
movl $0x3f800000, %eax       # imm = 0x3F800000
movl %eax, 0x28(%rbx)
movups %xmm0, 0x2c(%rbx)
movl %eax, 0x3c(%rbx)
movl %r13d, (%rbx)
movaps -0x60(%rbp), %xmm0
movss %xmm0, 0x4(%rbx)
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Olverine[P]TerminalGraphics/./Graphics.h
// Function: DrawPoint(glm::tvec3<float, (glm::precision)0>)
void DrawPoint(vec3 point) {
	int index = pixelLocationToCharIndex(point);
	if (pointIsOutOfBounds(point) || point.z < zBuffer[index]) return;

	char c = getGreyscaleChar(point.z);
	setPixel(index, c, point.z);
	if (point.z < zBuffer[index + 1]) return;
	setPixel(index + 1, c, point.z);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movss %xmm1, -0x1c(%rbp)
movaps %xmm0, -0x30(%rbp)
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, -0x40(%rbp)
addss 0x1804(%rip), %xmm0     # 0x400c
callq 0x2160
movss %xmm0, -0x20(%rbp)
movaps -0x30(%rbp), %xmm0
addss %xmm0, %xmm0
callq 0x2160
movaps 0x180a(%rip), %xmm1     # 0x4030
movaps -0x30(%rbp), %xmm2
andps %xmm1, %xmm2
ucomiss 0x17d8(%rip), %xmm2     # 0x400c
ja 0x2895
movaps -0x40(%rbp), %xmm2
andps %xmm1, %xmm2
ucomiss 0x17c8(%rip), %xmm2     # 0x400c
ja 0x2895
movss -0x20(%rbp), %xmm1
mulss 0x17bd(%rip), %xmm1     # 0x4010
addss 0x17b9(%rip), %xmm1     # 0x4014
addss %xmm1, %xmm0
cvttss2si %xmm0, %ebx
movslq %ebx, %r14
leaq 0x3933(%rip), %r15      # 0x61a0
movss (%r15,%r14,4), %xmm0
ucomiss -0x1c(%rbp), %xmm0
ja 0x2895
movl %r14d, %edi
xorl %esi, %esi
movss -0x1c(%rbp), %xmm0
callq 0x278b
movss 0x4(%r15,%r14,4), %xmm0
ucomiss -0x1c(%rbp), %xmm0
jbe 0x28a0
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
incl %ebx
movl %ebx, %edi
xorl %esi, %esi
movss -0x1c(%rbp), %xmm0
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x278b
// File: /workspace/github_cpp_makefile_star2_O2/Olverine[P]TerminalGraphics/./Graphics.h
// Function: initViewPort()
void initViewPort(){
	for(int y = 0; y < 33; y++) {
		for (int x = 0; x < 33; x++) {
			clear += "  ";
		}
		clear += "\n";
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %r12d, %r12d
leaq 0x328f(%rip), %rbx      # 0x6158
leaq 0x1193(%rip), %r14      # 0x4063
leaq 0x1189(%rip), %r15      # 0x4060
cmpl $0x21, %r12d
je 0x2f01
pushq $0x21
popq %r13
movq %rbx, %rdi
subl $0x1, %r13d
jb 0x2ef4
movq %r15, %rsi
callq 0x2210
jmp 0x2ee1
movq %r14, %rsi
callq 0x2210
incl %r12d
jmp 0x2ed7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Olverine[P]TerminalGraphics/Main.cpp
// Function: main
int main(int argc, char* argv[]) {
    vec4* shape = loadShape(argv[1]);
    initViewPort();

    mat4 model = mat4(1.0);
    mat4 view = getView(vec3(0, 0, 1), vec3(0, 0, 0), vec3(0, 1, 0)); 
    mat4 projection = getPerspective(radians(90.0f), 0.1, 500);

    float rotX = 0;
    float rotY = 0;

    system("clear");

    while (true) {
        clearViewPort();		

        // Rotate the object
        rotX += 0.0001f;
        rotY += 0.0002f;

        model = eulerAngleYXZ(rotY, rotX, 0.0f);

        mat4 mp =  projection * view * model;
        DrawShape(shape, mp);

        cout << out.c_str() << "\033[1;1H";
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq 0x8(%rsi), %rsi
leaq -0xd0(%rbp), %rbx
leaq -0xb0(%rbp), %rdx
movq %rbx, %rdi
callq 0x313e
movq %rbx, %rdi
callq 0x2c1d
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x2228
callq 0x2eb1
movl $0x3f800000, %r14d      # imm = 0x3F800000
leaq -0xb0(%rbp), %rax
movl %r14d, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rax)
movl %r14d, 0x14(%rax)
movups %xmm0, 0x18(%rax)
movl %r14d, 0x28(%rax)
movups %xmm0, 0x2c(%rax)
movl %r14d, 0x3c(%rax)
movsd 0x107c(%rip), %xmm4     # 0x4040
leaq -0x190(%rbp), %rdi
movss 0x1031(%rip), %xmm1     # 0x4004
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
xorps %xmm5, %xmm5
callq 0x25cd
movabsq $0x3f80000000000000, %rax # imm = 0x3F80000000000000
leaq -0x150(%rbp), %rcx
movq %rax, 0x10(%rcx)
andq $0x0, 0x8(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rcx)
movl %r14d, 0x28(%rcx)
movups %xmm0, 0x2c(%rcx)
movl %r14d, 0x3c(%rcx)
movq $0x3f800000, (%rcx)     # imm = 0x3F800000
leaq -0x30(%rbp), %rax
andl $0x0, (%rax)
leaq -0x2c(%rbp), %rax
andl $0x0, (%rax)
leaq 0x103b(%rip), %rdi      # 0x4065
callq 0x2120
leaq -0x70(%rbp), %r15
leaq -0x110(%rbp), %r12
movq 0x2f8f(%rip), %r13      # 0x5fd0
leaq 0x1023(%rip), %r14      # 0x406b
callq 0x2f10
movss -0x30(%rbp), %xmm0
addss 0xfc2(%rip), %xmm0      # 0x401c
movss %xmm0, -0x30(%rbp)
movss -0x2c(%rbp), %xmm0
addss 0xfb4(%rip), %xmm0      # 0x4020
movss %xmm0, -0x2c(%rbp)
andl $0x0, -0x110(%rbp)
movq %r15, %rdi
leaq -0x2c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
movq %r12, %rcx
callq 0x32cc
movups -0x70(%rbp), %xmm0
movups -0x60(%rbp), %xmm1
movups -0x50(%rbp), %xmm2
movups -0x40(%rbp), %xmm3
movaps %xmm3, -0x80(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm0, -0xb0(%rbp)
movq %r12, %rdi
leaq -0x150(%rbp), %rsi
leaq -0x190(%rbp), %rdx
callq 0x341d
movq %r15, %rdi
movq %r12, %rsi
leaq -0xb0(%rbp), %rdx
callq 0x341d
movups -0x70(%rbp), %xmm0
movups -0x60(%rbp), %xmm1
movups -0x50(%rbp), %xmm2
movups -0x40(%rbp), %xmm3
movups %xmm3, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x2b9f
movq 0x306a(%rip), %rsi      # 0x6178
movq %r13, %rdi
callq 0x2150
movq %rax, %rdi
movq %r14, %rsi
callq 0x2150
jmp 0x3048
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x2228
movq %rbx, %rdi
callq 0x21d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/hcoona[P]POJ-Solutions/P1061.cpp
// Function: POJ::P1061::Run(std::istream&, std::ostream&)
void P1061::Run(istream &in, ostream &out)
    {
        int x, y, m, n, L;
        in >> x >> y >> m >> n >> L;
        int result = Solve(x, y, m, n, L);
        if (result != INVALID) {
            out << result << endl;
        } else {
            out << "Impossible" << endl;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, 0x8(%rsp)
movq %rdi, %r14
leaq 0x24(%rsp), %r15
movq %rsi, %rdi
movq %r15, %rsi
callq 0x1040
leaq 0x20(%rsp), %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x1040
leaq 0x1c(%rsp), %r13
movq %rax, %rdi
movq %r13, %rsi
callq 0x1040
leaq 0x18(%rsp), %rbp
movq %rax, %rdi
movq %rbp, %rsi
callq 0x1040
leaq 0x14(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1040
movl (%r15), %esi
movl (%r12), %edx
movl (%r13), %ecx
movl (%rbp), %r8d
movl (%rbx), %r9d
movq %r14, %rdi
callq 0x12b8
cmpl $-0x1, %eax
je 0x128f
movq 0x8(%rsp), %rdi
movl %eax, %esi
callq 0x10c0
jmp 0x12a0
leaq 0xd8a(%rip), %rsi       # 0x2020
movq 0x8(%rsp), %rdi
callq 0x1070
movq %rax, %rdi
callq 0x1030
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/hcoona[P]POJ-Solutions/P1061.cpp
// Function: POJ::P1061::Solve(int, int, int, int, int) const
int P1061::Solve(int x, int y, int m, int n, int L) const
    {
        int a = m - n, b = L, c = y - x;
        int x0, gcd;
        tie(x0, ignore, gcd) = Extended_GCD(a, b);
        if (a && (c % gcd == 0)) {
            int scale = c / gcd;
            double t = -static_cast<double>(x0) * c / b;
            int x = x0 * scale + b / gcd * static_cast<int>(floor(t));
            return x < 0 ? (x + b / gcd) : x;
        } else if (c % L == 0) {
            return 0;
        } else {
            return INVALID;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %r9d, %ebx
movl %r8d, %r14d
movl %ecx, %r15d
movl %edx, %ebp
subl %esi, %ebp
movl %ecx, %edx
subl %r8d, %edx
leaq 0xc(%rsp), %rdi
movl %r9d, %ecx
callq 0x1352
cmpl %r14d, %r15d
je 0x12f3
movl 0xc(%rsp), %ecx
movl %ebp, %eax
cltd
idivl %ecx
testl %edx, %edx
je 0x1309
movl %ebp, %eax
cltd
idivl %ebx
xorl %eax, %eax
negl %edx
sbbl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %r14d
movl 0x14(%rsp), %eax
cvtsi2sd %eax, %xmm1
xorpd 0xcf4(%rip), %xmm1      # 0x2010
cvtsi2sd %ebp, %xmm0
mulsd %xmm1, %xmm0
cvtsi2sd %ebx, %xmm1
divsd %xmm1, %xmm0
imull %eax, %r14d
movl %ebx, %eax
cltd
idivl %ecx
movl %eax, %ebx
callq 0x10b0
cvttsd2si %xmm0, %ecx
imull %ebx, %ecx
addl %r14d, %ecx
movl %ecx, %eax
sarl $0x1f, %eax
andl %ebx, %eax
addl %ecx, %eax
jmp 0x12fe
nop
// File: /workspace/github_cpp_makefile_star2_O2/hcoona[P]POJ-Solutions/P1061.cpp
// Function: POJ::P1061::Extended_GCD(int, int) const
tuple<int, int, int> P1061::Extended_GCD(int a, int b) const
    {
        int x = 0, y = 1;
        int lastx = 1, lasty = 0;
        while (b != 0) {
            auto qr = div(a, b);
            a = b, b = qr.rem;
            int tmpx = x, tmpy = y;
            x = lastx - qr.quot * x, lastx = tmpx;
            y = lasty - qr.quot * y, lasty = tmpy;
        }
        return make_tuple(lastx, lasty, a);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdi, %rbx
xorl %r14d, %r14d
pushq $0x1
popq %r15
movl %r15d, %r12d
xorl %r13d, %r13d
testl %ebp, %ebp
je 0x13a6
movl %edx, %edi
movl %ebp, %esi
callq 0x1060
movl %r15d, %ecx
movl %r13d, %r15d
imull %eax, %r13d
movl %r14d, %esi
movl %r12d, %r14d
imull %eax, %r12d
movl %ebp, %edx
shrq $0x20, %rax
subl %r13d, %ecx
subl %r12d, %esi
movl %esi, %r12d
movl %ecx, %r13d
movl %eax, %ebp
jmp 0x136f
movl %edx, (%rbx)
movl %r14d, 0x4(%rbx)
movl %r15d, 0x8(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/main.cpp
// Function: main
int main(){
	//	hold user choice
	int choice;

	//	loop until user decides to exit
	do{
		//  calls menu function which displays 2 options 1) play 2) quit
		displayMenu();
		choice = validate(1,2);
		actOnChoice(choice);
	}while(choice != 2);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
pushq $0x1
popq %rbx
pushq $0x2
popq %rbp
callq 0x246b
movl %ebx, %edi
movl %ebp, %esi
callq 0x4d50
movl %eax, %r14d
movl %eax, %edi
callq 0x24cf
cmpl $0x2, %r14d
jne 0x2446
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/main.cpp
// Function: displayMenu()
void displayMenu(){
	std::cout << "\n\nWelcome to the train game!" << std::endl;

    std::cout << "\n\n\tMenu\n\n";
    std::cout << "1) Start game\n";
    std::cout << "2) Exit\n";
	std::cout << "Enter your choice: " << std::endl;
}

// Assembly:
pushq %rbx
movq 0x5b5d(%rip), %rbx      # 0x7fd0
leaq 0x2b8a(%rip), %rsi      # 0x5004
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x2b90(%rip), %rsi      # 0x5021
movq %rbx, %rdi
callq 0x2150
leaq 0x2b8b(%rip), %rsi      # 0x502b
movq %rbx, %rdi
callq 0x2150
leaq 0x2b8b(%rip), %rsi      # 0x503a
movq %rbx, %rdi
callq 0x2150
leaq 0x2b85(%rip), %rsi      # 0x5043
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
popq %rbx
jmp 0x20a0
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/main.cpp
// Function: actOnChoice(int)
void actOnChoice(int selection){
	switch(selection){
		//	Play game
		case 1:
		{
			Game game;
			game.play();
			break;
		}
		//	Quit
		case 2:
		{
			std::cout << "Goodbye!" << std::endl;
			break;
		}
	}
}

// Assembly:
pushq %rbx
subq $0x60, %rsp
cmpl $0x2, %edi
je 0x24ff
cmpl $0x1, %edi
jne 0x24f9
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x3e48
movq %rbx, %rdi
callq 0x47d0
movq %rsp, %rdi
callq 0x48ca
addq $0x60, %rsp
popq %rbx
retq
movq 0x5aca(%rip), %rdi      # 0x7fd0
leaq 0x2b4a(%rip), %rsi      # 0x5057
callq 0x2150
movq %rax, %rdi
addq $0x60, %rsp
popq %rbx
jmp 0x20a0
movq %rax, %rbx
movq %rsp, %rdi
callq 0x48ca
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Engine.cpp
// Function: Engine::checkKey(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Engine::checkKey(std::vector<std::string>& container, std::string search){
	//	iterator used to store the position of searched element
	std::vector<std::string>::iterator it;

	//	print backpack content
	std::cout << "Backpack contents:\n";
	for(unsigned int i = 0; i < container.size(); i++){
		std::cout << "item " << i + 1 << " - " << container[i] << std::endl;
	}

    std::cout << std::endl;

	//	std::find function call
	it = std::find(container.begin(), container.end(), search);

	if(it != container.end()){
		return true;
	}
	else{
		return false;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
movq %rsi, %rbx
movq 0x57f7(%rip), %r15      # 0x7fd0
leaq 0x2a5d(%rip), %rsi      # 0x523d
movq %r15, %rdi
callq 0x2150
pushq $0x1
popq %r14
leaq 0x29c0(%rip), %r12      # 0x51b3
leaq 0x29bf(%rip), %r13      # 0x51b9
leal -0x1(%r14), %ebp
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x5, %rax
cmpq %rbp, %rax
jbe 0x284e
movq %r15, %rdi
movq %r12, %rsi
callq 0x2150
movl %r14d, %esi
movq %rax, %rdi
callq 0x20f0
movq %rax, %rdi
movq %r13, %rsi
callq 0x2150
shlq $0x5, %rbp
addq (%rbx), %rbp
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2140
movq %rax, %rdi
callq 0x20a0
incl %r14d
jmp 0x27fa
movq 0x577b(%rip), %rdi      # 0x7fd0
callq 0x20a0
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movq (%rsp), %rdx
callq 0x2e7f
cmpq 0x8(%rbx), %rax
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Game.cpp
// Function: Game::displayGoal()
void Game::displayGoal(){
	std::cout << "\n\n\t\t\t\tWelcome\n" << std::endl;
	std::cout << "You are on a train and you feel a violent earthquake shake the ground!\n";
	std::cout << "You see that the tracks up ahead are damaged.\n" << std::endl;

	std::cout << "Goal:\nStop the train from derailing! Travel through the train from the caboose to the engine.\n";
	std::cout << "Along the way you will find items. One important item is ";
	std::cout << "\"an emergency brake key\".\nYou will need this item in order to stop the train from derailing!" << std::endl;
	std::cout << "In order to win the game you will need to earn \"a hero badge\"!" << std::endl;
	std::cout << "This item is awarded once you successfully stop the train!\n" << std::endl;

	std::cout << "\nTip:\nItems can only be picked up once. If you drop an item, it's gone forever!" << std::endl;
	std::cout << "You can only carry up to 3 items at a time.\n" << std::endl;
}

// Assembly:
pushq %rbx
movq 0x3bd4(%rip), %rbx      # 0x7fd0
leaq 0x1183(%rip), %rsi      # 0x5586
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x117b(%rip), %rsi      # 0x5595
movq %rbx, %rdi
callq 0x2150
leaq 0x11b4(%rip), %rsi      # 0x55dd
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x11cc(%rip), %rsi      # 0x560c
movq %rbx, %rdi
callq 0x2150
leaq 0x121c(%rip), %rsi      # 0x566b
movq %rbx, %rdi
callq 0x2150
leaq 0x1247(%rip), %rsi      # 0x56a5
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x128d(%rip), %rsi      # 0x5702
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x12b5(%rip), %rsi      # 0x5741
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x12da(%rip), %rsi      # 0x577d
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x1313(%rip), %rsi      # 0x57cd
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
popq %rbx
jmp 0x20a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Game.cpp
// Function: Game::displaySteps()
void Game::displaySteps(){
	//	display steps taken and steps remaining
	std::cout << "************ Step Information ***************" << std::endl;
	std::cout << "\nSteps taken: " << steps << std::endl;
	std::cout << "Steps remaining: " << 20 - steps << std::endl;

	std::cout << std::endl;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x3af6(%rip), %rbx      # 0x7fd0
leaq 0x1319(%rip), %rsi      # 0x57fa
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x1330(%rip), %rsi      # 0x5828
movq %rbx, %rdi
callq 0x2150
movl (%r14), %esi
movq %rax, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20a0
leaq 0x131d(%rip), %rsi      # 0x5837
movq %rbx, %rdi
callq 0x2150
pushq $0x14
popq %rsi
subl (%r14), %esi
movq %rax, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20a0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x20a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Game.cpp
// Function: Game::inGameMenu()
void Game::inGameMenu(){
	//	3 options
	int actionChoice;
	bool moved = false;
	do{
		//	display map
		displayMap(location->getCarName());

		std::cout << "\nAction Menu\n";
		std::cout << "1) Left\n";
		std::cout << "2) Right\n";
		std::cout << "3) Check backpack\n";

		std::cout << "Enter your choice: " << std::endl;

		actionChoice = validate(1,3);

		switch(actionChoice){
			//	Go left
			case 1:
			{
				if(location->getLeft() != nullptr){
					location = location->getLeft();
					moved = true;
				}
				else{
					std::cout << "\nThere is no train car to the left!\n" << std::endl;
				}
				break;
			}

			//	Go right
			case 2:
			{
				if(location->getRight() != nullptr){
					location = location->getRight();
					moved = true;
				}
				else{
					std::cout << "\nThere is no train car to the right!\n";
				}
				break;
			}

			//	See backpack
			case 3:
			{
				//	print contents of backpack
				this->printContainer();
				break;
			}
		}
	}while(!moved);

	//	increment steps after successfully moving
	steps++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq 0x3a6b(%rip), %r15      # 0x7fd0
leaq 0xad7(%rip), %r13       # 0x5043
pushq $0x1
popq %rbp
pushq $0x3
popq %r12
movq 0x38(%rbx), %rsi
movq %r14, %rdi
callq 0x4d18
movq %r14, %rdi
callq 0x49b0
movq %r14, %rdi
callq 0x2090
movq %r15, %rdi
leaq 0x12b0(%rip), %rsi      # 0x5849
callq 0x2150
movq %r15, %rdi
leaq 0x12af(%rip), %rsi      # 0x5857
callq 0x2150
movq %r15, %rdi
leaq 0x12a9(%rip), %rsi      # 0x5860
callq 0x2150
movq %r15, %rdi
leaq 0x12a4(%rip), %rsi      # 0x586a
callq 0x2150
movq %r15, %rdi
movq %r13, %rsi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
movl %ebp, %edi
movl %r12d, %esi
callq 0x4d50
cmpl $0x1, %eax
je 0x462a
cmpl $0x2, %eax
je 0x4608
cmpl $0x3, %eax
jne 0x4573
movq %rbx, %rdi
callq 0x4692
jmp 0x4573
movq 0x38(%rbx), %rdi
callq 0x4d12
testq %rax, %rax
jne 0x4654
movq %r15, %rdi
leaq 0x1282(%rip), %rsi      # 0x58a2
callq 0x2150
jmp 0x4573
movq 0x38(%rbx), %rdi
callq 0x4d0c
testq %rax, %rax
jne 0x465f
movq %r15, %rdi
leaq 0x123b(%rip), %rsi      # 0x587d
callq 0x2150
movq %rax, %rdi
callq 0x20a0
jmp 0x4573
movq 0x38(%rbx), %rdi
callq 0x4d12
jmp 0x4668
movq 0x38(%rbx), %rdi
callq 0x4d0c
movq %rax, 0x38(%rbx)
incl (%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Game.cpp
// Function: Game::printContainer()
void Game::printContainer(){

	//	print backpack content
	std::cout << "Backpack contents: " << std::endl;
	if(container.empty()){
		std::cout << "You do not have any items in your backpack\n" << std::endl;
	}
	else{
		for(unsigned int i = 0; i < container.size(); i++){
			std::cout << "item " << i + 1 << " - " << container[i] << std::endl;
		}
	}

	//empty line
	std::cout << std::endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x3929(%rip), %rdi      # 0x7fd0
leaq 0xaf1(%rip), %rsi       # 0x519f
callq 0x2150
movq %rax, %rdi
callq 0x20a0
movq 0x40(%rbx), %rcx
movq 0x48(%rbx), %rax
cmpq %rax, %rcx
je 0x4737
pushq $0x1
popq %rbp
movq 0x38fe(%rip), %r14      # 0x7fd0
leaq 0xada(%rip), %r15       # 0x51b3
leaq 0xad9(%rip), %r12       # 0x51b9
subq %rcx, %rax
leal -0x1(%rbp), %r13d
sarq $0x5, %rax
cmpq %r13, %rax
jbe 0x4752
movq %r14, %rdi
movq %r15, %rsi
callq 0x2150
movl %ebp, %esi
movq %rax, %rdi
callq 0x20f0
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
shlq $0x5, %r13
addq 0x40(%rbx), %r13
movq %rax, %rdi
movq %r13, %rsi
callq 0x2140
movq %rax, %rdi
callq 0x20a0
movq 0x40(%rbx), %rcx
movq 0x48(%rbx), %rax
incl %ebp
jmp 0x46e0
movq 0x3892(%rip), %rdi      # 0x7fd0
leaq 0x1183(%rip), %rsi      # 0x58c8
callq 0x2150
movq %rax, %rdi
callq 0x20a0
movq 0x3877(%rip), %rdi      # 0x7fd0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20a0
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Game.cpp
// Function: Game::checkHero()
bool Game::checkHero(){
	//	iterator used to store the position of searched element
	std::vector<std::string>::iterator it;

	std::string search = "a hero badge";

	//	std::find function call
	it = std::find(container.begin(), container.end(), search);

	if(it != container.end()){
		return true;
	}
	else{
		return false;
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0xdfc(%rip), %rsi       # 0x5579
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x2b68
movq 0x40(%rbx), %rdi
movq 0x48(%rbx), %rsi
movq %r14, %rdx
callq 0x2e7f
cmpq 0x48(%rbx), %rax
setne %bl
leaq 0x8(%rsp), %rdi
callq 0x2090
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x21e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Game.cpp
// Function: Game::play()
void Game::play(){
	//	Display goal
	this->displayGoal();

	while(steps <= 20 && !hero){
		//	display steps taken and steps remaining
		this->displaySteps();
		//	display map
		displayMap(location->getCarName());
		std::cout << "**********************************************" << std::endl;

		//	special action based on car
		location->action(container);

		//	check hero status
		this->hero = this->checkHero();

		//	break out of loop if your out of steps
		if(steps == 20){
			break;
		}

		//	if you have the hero badge you won the game 
		if(hero){
			break;
		}
		//	display action menu
		this->inGameMenu();
	}

	//	if you lost the game
	if(!hero){
		std::cout << "\nYou ran out of time and the train derailed! You lost!\n" << std::endl;
		std::cout << "***********************************************" << std::endl;
	}
	//	if you won the game
	else{
		std::cout << "\nYou are a hero and saved the train from derailing! Game Won!\n" << std::endl;
		std::cout << "***********************************************" << std::endl;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
callq 0x43f4
leaq 0x40(%rbx), %r14
movq %rsp, %r15
movq 0x37dd(%rip), %r12      # 0x7fd0
leaq 0x1133(%rip), %r13      # 0x592d
cmpl $0x14, (%rbx)
movb 0x58(%rbx), %al
jg 0x4867
testb $0x1, %al
jne 0x4867
movq %rbx, %rdi
callq 0x44cc
movq 0x38(%rbx), %rsi
movq %r15, %rdi
callq 0x4d18
movq %r15, %rdi
callq 0x49b0
movq %r15, %rdi
callq 0x2090
movq %r12, %rdi
movq %r13, %rsi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *(%rax)
movq %rbx, %rdi
callq 0x476c
movb %al, 0x58(%rbx)
testb %al, %al
jne 0x4867
cmpl $0x14, (%rbx)
je 0x4867
movq %rbx, %rdi
callq 0x4548
jmp 0x47fa
leaq 0x10ee(%rip), %rcx      # 0x595c
leaq 0x107f(%rip), %rsi      # 0x58f4
testb $0x1, %al
cmovneq %rcx, %rsi
movq 0x374e(%rip), %rbx      # 0x7fd0
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
leaq 0x1093(%rip), %rsi      # 0x592c
movq %rbx, %rdi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Game.cpp
// Function: Game::~Game()
Game::~Game(){

	//	If you lose the game then set player to engine car to avoid memory leaks
	if(this->hero == false){
		while(location->getRight() != nullptr){
			location = location->getRight();
		}
	}

	//	delete cars from the engine to the caboose
	while(location->getLeft() != nullptr){
		Space* temp = location;
		location = location->getLeft();
		delete temp;
	}
	delete location;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0x58(%rdi)
jne 0x490c
movq 0x38(%rbx), %rax
movq %rax, %rdi
callq 0x4d12
testq %rax, %rax
je 0x490c
movq 0x38(%rbx), %rdi
callq 0x4d12
movq %rax, 0x38(%rbx)
jmp 0x48db
movq %r14, %rdi
callq 0x4d0c
movq %rax, 0x38(%rbx)
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq 0x38(%rbx), %rdi
callq 0x4d0c
movq 0x38(%rbx), %r14
testq %rax, %rax
jne 0x48f7
testq %r14, %r14
je 0x492c
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
addq $0x40, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x494a
jmp 0x4941
movq %rax, %rdi
callq 0x2c00
nop
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/Space.cpp
// Function: Space::Space(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Space::Space(std::string m_name, std::string m_action, std::string m_item){
	this->carName = m_name;
	this->actionName = m_action;
	this->itemName = m_item;
	this->actionTaken = false;
	this->itemTaken = false;
	this->top = nullptr;
	this->bottom = nullptr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %rbp
movq %rdi, %r14
leaq 0x30bd(%rip), %rax      # 0x7d18
movq %rax, (%rdi)
leaq 0x30(%rdi), %rbx
leaq 0x40(%rdi), %rax
movq %rax, 0x30(%rdi)
andq $0x0, 0x38(%rdi)
xorl %eax, %eax
movb %al, 0x40(%rdi)
leaq 0x50(%rdi), %r15
leaq 0x60(%rdi), %rcx
movq %rcx, 0x50(%rdi)
andq $0x0, 0x58(%rdi)
movb %al, 0x60(%rdi)
leaq 0x70(%rdi), %r13
leaq 0x80(%rdi), %rcx
movq %rcx, 0x70(%rdi)
andq $0x0, 0x78(%rdi)
movb %al, 0x80(%rdi)
movq %rbx, %rdi
callq 0x20c0
movq %r15, %rdi
movq %rbp, %rsi
callq 0x20c0
movq %r13, %rdi
movq %r12, %rsi
callq 0x20c0
andw $0x0, 0x28(%r14)
andq $0x0, 0x8(%r14)
andq $0x0, 0x18(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %r13, %rdi
callq 0x2090
movq %r15, %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x2090
movq %r14, %rdi
callq 0x21e0
// File: /workspace/github_cpp_makefile_star2_O2/isimplyexcel[P]text-based-game/validate.cpp
// Function: validate(int, int)
int validate(int min, int max) {
    int choice;
    bool isValid = false;
    do {
        std::cin >> choice;

        if(!std::cin.fail() && (choice >= min && choice <= max)){
            isValid = true;
            std::cin.clear();	//	clear buffer
            std::cin.ignore(256, '\n');	// referenced stack overflow and TA james
        }
        else{
            std::cin.clear();	//	clear buffer
            std::cin.ignore(256, '\n');	// referenced stack overflow and TA james
            std::cout << "Invalid input. Please try again: " << std::endl;
                      //<< min << " and " << max << ": " << std::endl;
        }
    } while(!isValid);

    return choice;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, 0x4(%rsp)
movl %edi, %ebp
movq 0x3278(%rip), %r14      # 0x7fe0
movq %rsp, %r15
pushq $0xa
popq %r12
movq 0x325a(%rip), %r13      # 0x7fd0
leaq 0xc3e(%rip), %rbx       # 0x59bb
movq %r14, %rdi
movq %r15, %rsi
callq 0x20d0
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
testb $0x5, 0x20(%r14,%rax)
jne 0x4dae
movl (%rsp), %eax
cmpl %ebp, %eax
setl %cl
cmpl 0x4(%rsp), %eax
setg %al
orb %cl, %al
je 0x4dda
xorl %esi, %esi
callq 0x21c0
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
movl %r12d, %edx
callq 0x20e0
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2150
movq %rax, %rdi
callq 0x20a0
jmp 0x4d7d
xorl %esi, %esi
callq 0x21c0
movq 0x31f8(%rip), %rdi      # 0x7fe0
pushq $0xa
popq %rdx
movl $0x100, %esi            # imm = 0x100
callq 0x20e0
movl (%rsp), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/AngelPn[P]L5R-card_game/src/main.cpp
// Function: main
int main(void){
	GameBoard Legend_of_5_Rings;
	std::cout<< "How many players? Type a number: (2-8): ";
	int no_players= 0;
	while(no_players< 2 || no_players> 8){
		std::cin>> no_players;
		std::cout<< std::endl;
	}
	Legend_of_5_Rings.initializeGameBoard(no_players);
	Legend_of_5_Rings.gameplay();

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movq 0xdb36(%rip), %rdi      # 0x10fd0
leaq 0x6b63(%rip), %rsi      # 0xa004
callq 0x31a0
leaq 0xc(%rsp), %rbx
andl $0x0, (%rbx)
movq 0xdb2b(%rip), %r14      # 0x10fe0
movq 0xdb14(%rip), %r15      # 0x10fd0
movl 0xc(%rsp), %esi
leal -0x9(%rsi), %eax
cmpl $-0x8, %eax
ja 0x34dd
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3110
movq %r15, %rdi
callq 0x30d0
jmp 0x34bc
leaq 0x10(%rsp), %rdi
callq 0x5e9a
leaq 0x10(%rsp), %rdi
callq 0x608a
leaq 0x10(%rsp), %rdi
callq 0x5e4c
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x350b
jmp 0x350b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5e4c
movq %rbx, %rdi
callq 0x3260
// File: /workspace/github_cpp_makefile_star2_O2/AngelPn[P]L5R-card_game/src/DeckBuilder.cpp
// Function: DeckBuilder::~DeckBuilder()
DeckBuilder::~DeckBuilder()
{
	list<BlackCard *>::iterator it = black->begin(),it3;
	list<GreenCard *>::iterator it2 = green->begin(),it4;
	while (it != black->end())
	{
		it3 = it++;
		delete *it3;
		black->remove((*it3));
	}
	while (it2 != green->end())
	{
		it4 = it2++;
		delete *it4;
		green->remove((*it4));
	}
	delete black;
	delete green;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %rdi
movq (%rdi), %r15
movq (%rax), %r14
cmpq %rdi, %r15
je 0x35bc
movq (%r15), %r12
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x35a7
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
movq 0x8(%rbx), %rdi
addq $0x10, %r15
movq %r15, %rsi
callq 0x43a6
movq 0x8(%rbx), %rdi
movq %r12, %r15
jmp 0x3589
pushq $0x68
popq %r15
cmpq (%rbx), %r14
je 0x35f8
movq (%r14), %r13
movq 0x10(%r14), %r12
testq %r12, %r12
je 0x35d9
movq %r12, %rdi
callq 0x440e
addq $0x10, %r14
movq %r12, %rdi
movq %r15, %rsi
callq 0x31c0
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x442e
movq %r13, %r14
jmp 0x35c0
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x3609
movq %r14, %rdi
callq 0x4df0
pushq $0x18
popq %rsi
movq %r14, %rdi
callq 0x31c0
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x3624
movq %rbx, %rdi
callq 0x4e1a
pushq $0x18
popq %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x31c0
// File: /workspace/github_cpp_makefile_star2_O2/AngelPn[P]L5R-card_game/src/DeckBuilder.cpp
// Function: DeckBuilder::deckShuffler(std::__cxx11::list<BlackCard*, std::allocator<BlackCard*>>*)
void DeckBuilder::deckShuffler(list<BlackCard *> *black)
{
	vector<BlackCard *> vect;
	list<BlackCard *>::iterator it;
	for (it = black->begin(); it != black->end(); it++)
		vect.push_back((*it));

	random_shuffle(vect.begin(), vect.end());

	black->clear();

	vector<BlackCard *>::iterator it2;
	for (it2 = vect.begin(); it2 != vect.end(); it2++)
		black->push_back((*it2));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, (%r14)
andq $0x0, 0x10(%r14)
movq %rsi, %r15
movq (%r15), %r15
cmpq %rbx, %r15
je 0x42ba
leaq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x4c18
jmp 0x42a4
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x4c35
movq %rbx, %rdi
callq 0x4c94
movq (%rsp), %r14
cmpq 0x8(%rsp), %r14
je 0x42ec
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4cac
addq $0x8, %r14
jmp 0x42d4
movq %rsp, %rdi
callq 0x5a90
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x4302
jmp 0x4302
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5a90
movq %rbx, %rdi
callq 0x3260
nop
// File: /workspace/github_cpp_makefile_star2_O2/AngelPn[P]L5R-card_game/src/DeckBuilder.cpp
// Function: DeckBuilder::deckShuffler(std::__cxx11::list<GreenCard*, std::allocator<GreenCard*>>*)
void DeckBuilder::deckShuffler(list<GreenCard *> *green)
{
	vector<GreenCard *> vect;
	list<GreenCard *>::iterator it;
	for (it = green->begin(); it != green->end(); it++)
		vect.push_back((*it));

	random_shuffle(vect.begin(), vect.end());

	green->clear();

	vector<GreenCard *>::iterator it2;
	for (it2 = vect.begin(); it2 != vect.end(); it2++)
		green->push_back((*it2));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, (%r14)
andq $0x0, 0x10(%r14)
movq %rsi, %r15
movq (%r15), %r15
cmpq %rbx, %r15
je 0x434a
leaq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x4cb8
jmp 0x4334
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x4cd5
movq %rbx, %rdi
callq 0x4d34
movq (%rsp), %r14
cmpq 0x8(%rsp), %r14
je 0x437c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4d4c
addq $0x8, %r14
jmp 0x4364
movq %rsp, %rdi
callq 0x5c6e
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x4392
jmp 0x4392
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5c6e
movq %rbx, %rdi
callq 0x3260
nop