// File: /workspace/github_cpp_makefile_star2_O2/Teris45[P]Maze-Game/Engine.cpp
// Function: Engine::makeMove()
void Engine :: makeMove(){
    Point old_point = traalinakos.getPoint();
    Point new_point = MyMoving :: Move(traalinakos,poterakos,maze);
    traalinakos.setPoint(new_point.getX(),new_point.getY());
    maze[old_point.getY()][old_point.getX()] = DIADROMOS;
    if(maze[new_point.getY()][new_point.getX()] == POTERAKOS) {
        poterAlive = false;
    }
    maze[new_point.getY()][new_point.getX()] = TRAALINAKOS;

    Point old_point_goblin = goblinakos.getPoint();
    Point new_point_goblin = MyMoving :: Move(goblinakos,poterakos,maze);
    goblinakos.setPoint(new_point_goblin.getX(),new_point_goblin.getY());
    maze[old_point_goblin.getY()][old_point_goblin.getX()] = DIADROMOS;
    if(maze[new_point_goblin.getY()][new_point_goblin.getX()] == POTERAKOS) {
        poterAlive = false;
    }
    maze[new_point_goblin.getY()][new_point_goblin.getX()] = GOBLINAKOS;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
leaq 0x68(%rdi), %r15
leaq -0x60(%rbp), %rdi
movq %r15, %rsi
callq 0x4612
leaq 0x74b3(%rip), %rax      # 0x9c68
addq $0x10, %rax
leaq -0x78(%rbp), %rsi
movq %rax, 0x8(%rsi)
movq 0x78(%rbx), %rax
movq %rax, 0x10(%rsi)
leaq 0x74f8(%rip), %rax      # 0x9cc8
addq $0x10, %rax
movq %rax, (%rsi)
leaq 0x38(%rbx), %r14
leaq -0x40(%rbp), %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x481a
leaq -0x78(%rbp), %rdi
callq 0x462e
leaq -0x40(%rbp), %rdi
callq 0x453e
movl %eax, %r12d
leaq -0x40(%rbp), %rdi
callq 0x4552
movq %r15, %rdi
movl %r12d, %esi
movl %eax, %edx
callq 0x455c
leaq -0x60(%rbp), %rdi
callq 0x4552
movl %eax, %r15d
movq (%rbx), %r12
leaq -0x60(%rbp), %rdi
callq 0x453e
movslq %r15d, %rcx
imulq $0x18, %rcx, %rcx
cltq
movq (%r12,%rcx), %rcx
movl $0x2, (%rcx,%rax,4)
leaq -0x40(%rbp), %rdi
callq 0x4552
movl %eax, %r15d
movq (%rbx), %r12
leaq -0x40(%rbp), %rdi
callq 0x453e
movslq %r15d, %rcx
imulq $0x18, %rcx, %rcx
cltq
movq (%r12,%rcx), %rcx
cmpl $0x3, (%rcx,%rax,4)
jne 0x2873
movb $0x0, 0x19c(%rbx)
leaq -0x40(%rbp), %rdi
callq 0x4552
movl %eax, %r15d
movq (%rbx), %r12
leaq -0x40(%rbp), %rdi
callq 0x453e
movslq %r15d, %rcx
imulq $0x18, %rcx, %rcx
cltq
movq (%r12,%rcx), %rcx
movl $0x5, (%rcx,%rax,4)
leaq 0x50(%rbx), %r15
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x4612
leaq -0x30(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x4c3a
leaq -0x30(%rbp), %rdi
callq 0x453e
movl %eax, %r14d
leaq -0x30(%rbp), %rdi
callq 0x4552
movq %r15, %rdi
movl %r14d, %esi
movl %eax, %edx
callq 0x455c
leaq -0x50(%rbp), %rdi
callq 0x4552
movl %eax, %r14d
movq (%rbx), %r15
leaq -0x50(%rbp), %rdi
callq 0x453e
movslq %r14d, %rcx
imulq $0x18, %rcx, %rcx
cltq
movq (%r15,%rcx), %rcx
movl $0x2, (%rcx,%rax,4)
leaq -0x30(%rbp), %rdi
callq 0x4552
movl %eax, %r14d
movq (%rbx), %r15
leaq -0x30(%rbp), %rdi
callq 0x453e
movslq %r14d, %rcx
imulq $0x18, %rcx, %rcx
cltq
movq (%r15,%rcx), %rcx
cmpl $0x3, (%rcx,%rax,4)
jne 0x2941
movb $0x0, 0x19c(%rbx)
leaq -0x30(%rbp), %rdi
callq 0x4552
movl %eax, %r14d
movq (%rbx), %rbx
leaq -0x30(%rbp), %rdi
callq 0x453e
movslq %r14d, %rcx
imulq $0x18, %rcx, %rcx
cltq
movq (%rbx,%rcx), %rcx
movl $0x4, (%rcx,%rax,4)
leaq -0x30(%rbp), %rdi
callq 0x4668
leaq -0x50(%rbp), %rdi
callq 0x4668
leaq -0x40(%rbp), %rdi
callq 0x4668
leaq -0x60(%rbp), %rdi
callq 0x4668
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x29bf
jmp 0x29ca
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x462e
jmp 0x29d6
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x4668
leaq -0x50(%rbp), %rdi
callq 0x4668
jmp 0x29cd
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x4668
leaq -0x60(%rbp), %rdi
callq 0x4668
movq %rbx, %rdi
callq 0x23b0
nop