// File: /workspace/github_cpp_makefile_star2_O1/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 0x57e0
leaq 0x6397(%rip), %rax      # 0x9c40
addq $0x10, %rax
leaq -0x78(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x63a5(%rip), %rax      # 0x9c60
addq $0x10, %rax
movq %rax, 0x8(%rsi)
movq 0x78(%rbx), %rax
movq %rax, 0x10(%rsi)
leaq 0x63ee(%rip), %rax      # 0x9cc0
addq $0x10, %rax
movq %rax, (%rsi)
leaq 0x38(%rbx), %r14
leaq -0x40(%rbp), %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x5a16
leaq -0x78(%rbp), %rdi
callq 0x57fc
leaq -0x40(%rbp), %rdi
callq 0x5708
movl %eax, %r12d
leaq -0x40(%rbp), %rdi
callq 0x571c
movq %r15, %rdi
movl %r12d, %esi
movl %eax, %edx
callq 0x5726
leaq -0x60(%rbp), %rdi
callq 0x571c
movl %eax, %r15d
movq (%rbx), %r12
leaq -0x60(%rbp), %rdi
callq 0x5708
movslq %r15d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%r12,%rcx,8), %rcx
movl $0x2, (%rcx,%rax,4)
leaq -0x40(%rbp), %rdi
callq 0x571c
movl %eax, %r15d
movq (%rbx), %r12
leaq -0x40(%rbp), %rdi
callq 0x5708
movslq %r15d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%r12,%rcx,8), %rcx
cmpl $0x3, (%rcx,%rax,4)
jne 0x3975
movb $0x0, 0x19c(%rbx)
leaq -0x40(%rbp), %rdi
callq 0x571c
movl %eax, %r15d
movq (%rbx), %r12
leaq -0x40(%rbp), %rdi
callq 0x5708
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 0x57e0
leaq -0x30(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x5e7c
leaq -0x30(%rbp), %rdi
callq 0x5708
movl %eax, %r14d
leaq -0x30(%rbp), %rdi
callq 0x571c
movq %r15, %rdi
movl %r14d, %esi
movl %eax, %edx
callq 0x5726
leaq -0x50(%rbp), %rdi
callq 0x571c
movl %eax, %r14d
movq (%rbx), %r15
leaq -0x50(%rbp), %rdi
callq 0x5708
movslq %r14d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%r15,%rcx,8), %rcx
movl $0x2, (%rcx,%rax,4)
leaq -0x30(%rbp), %rdi
callq 0x571c
movl %eax, %r14d
movq (%rbx), %r15
leaq -0x30(%rbp), %rdi
callq 0x5708
movslq %r14d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%r15,%rcx,8), %rcx
cmpl $0x3, (%rcx,%rax,4)
jne 0x3a43
movb $0x0, 0x19c(%rbx)
leaq -0x30(%rbp), %rdi
callq 0x571c
movl %eax, %r14d
movq (%rbx), %rbx
leaq -0x30(%rbp), %rdi
callq 0x5708
movslq %r14d, %rcx
leaq (%rcx,%rcx,2), %rcx
cltq
movq (%rbx,%rcx,8), %rcx
movl $0x4, (%rcx,%rax,4)
leaq -0x30(%rbp), %rdi
callq 0x583c
leaq -0x50(%rbp), %rdi
callq 0x583c
leaq -0x40(%rbp), %rdi
callq 0x583c
leaq -0x60(%rbp), %rdi
callq 0x583c
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3ac1
jmp 0x3acc
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x57fc
jmp 0x3ad8
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x583c
leaq -0x50(%rbp), %rdi
callq 0x583c
jmp 0x3acf
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x583c
leaq -0x60(%rbp), %rdi
callq 0x583c
movq %rbx, %rdi
callq 0x33f0
nop