// File: /workspace/github_cpp_makefile_star2_O3/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 0x582a
leaq 0x63a7(%rip), %rax      # 0x9c60
addq $0x10, %rax
leaq -0x78(%rbp), %rsi
movq %rax, 0x8(%rsi)
movq 0x78(%rbx), %rax
movq %rax, 0x10(%rsi)
leaq 0x63ec(%rip), %rax      # 0x9cc0
addq $0x10, %rax
movq %rax, (%rsi)
leaq 0x38(%rbx), %r14
leaq -0x40(%rbp), %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x5a32
leaq -0x78(%rbp), %rdi
callq 0x5846
leaq -0x40(%rbp), %rdi
callq 0x5752
movl %eax, %r12d
leaq -0x40(%rbp), %rdi
callq 0x5766
movq %r15, %rdi
movl %r12d, %esi
movl %eax, %edx
callq 0x5770
leaq -0x60(%rbp), %rdi
callq 0x5766
movl %eax, %r15d
movq (%rbx), %r12
leaq -0x60(%rbp), %rdi
callq 0x5752
movslq %r15d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%r12,%rcx,8), %rcx
movl $0x2, (%rcx,%rax,4)
leaq -0x40(%rbp), %rdi
callq 0x5766
movl %eax, %r15d
movq (%rbx), %r12
leaq -0x40(%rbp), %rdi
callq 0x5752
movslq %r15d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%r12,%rcx,8), %rcx
cmpl $0x3, (%rcx,%rax,4)
jne 0x3977
movb $0x0, 0x19c(%rbx)
leaq -0x40(%rbp), %rdi
callq 0x5766
movl %eax, %r15d
movq (%rbx), %r12
leaq -0x40(%rbp), %rdi
callq 0x5752
movslq %r15d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%r12,%rcx,8), %rcx
movl $0x5, (%rcx,%rax,4)
leaq 0x50(%rbx), %r15
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x582a
leaq -0x30(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x5e90
leaq -0x30(%rbp), %rdi
callq 0x5752
movl %eax, %r14d
leaq -0x30(%rbp), %rdi
callq 0x5766
movq %r15, %rdi
movl %r14d, %esi
movl %eax, %edx
callq 0x5770
leaq -0x50(%rbp), %rdi
callq 0x5766
movl %eax, %r14d
movq (%rbx), %r15
leaq -0x50(%rbp), %rdi
callq 0x5752
movslq %r14d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%r15,%rcx,8), %rcx
movl $0x2, (%rcx,%rax,4)
leaq -0x30(%rbp), %rdi
callq 0x5766
movl %eax, %r14d
movq (%rbx), %r15
leaq -0x30(%rbp), %rdi
callq 0x5752
movslq %r14d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%r15,%rcx,8), %rcx
cmpl $0x3, (%rcx,%rax,4)
jne 0x3a45
movb $0x0, 0x19c(%rbx)
leaq -0x30(%rbp), %rdi
callq 0x5766
movl %eax, %r14d
movq (%rbx), %rbx
leaq -0x30(%rbp), %rdi
callq 0x5752
movslq %r14d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%rbx,%rcx,8), %rcx
movl $0x4, (%rcx,%rax,4)
leaq -0x30(%rbp), %rdi
callq 0x587c
leaq -0x50(%rbp), %rdi
callq 0x587c
leaq -0x40(%rbp), %rdi
callq 0x587c
leaq -0x60(%rbp), %rdi
callq 0x587c
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3ac3
jmp 0x3ace
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x5846
jmp 0x3ada
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x587c
leaq -0x50(%rbp), %rdi
callq 0x587c
jmp 0x3ad1
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x587c
leaq -0x60(%rbp), %rdi
callq 0x587c
movq %rbx, %rdi
callq 0x33e0
nop