// File: /workspace/github_cpp_makefile_star2_O2/XxAdi101xX[P]ChamberCrawler/Floor/Floor.cc
// Function: Floor::dfsSearch(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, bool>>>&, std::vector<int, std::allocator<int>>, std::vector<int, std::allocator<int>>) const
bool Floor::dfsSearch(std::map<std::string, bool>& travelled, const std::vector<int> curr, const std::vector<int> dest) const {
    std::vector<std::shared_ptr<Cell>> neighbourCells = theFloor[curr[0]][curr[1]]->getNeighbours();

    if (curr.size() != 2 && dest.size() != 2) return false;

    if (curr[0] == dest[0] && curr[1] == dest[1]) return true;

    for (auto &c: neighbourCells) {
        if (c->getCellType() == CellType::FloorTile && travelled.count(coordsToString(c->getCoords())) == 0) {
            travelled[coordsToString(c->getCoords())] = true;
            if (dfsSearch(travelled, c->getCoords(), dest)) return true;
        }
    }
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, 0x10(%rsp)
movq (%rdx), %rax
movslq (%rax), %rcx
movq %rdi, 0x20(%rsp)
movq (%rdi), %rdx
imulq $0x18, %rcx, %rcx
movslq 0x4(%rax), %rax
movq (%rdx,%rcx), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %rsi
leaq 0x30(%rsp), %rdi
callq 0x109e4
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
movq (%r14), %rcx
cmpq $0x8, %rdx
je 0x16746
movq 0x8(%r14), %rdx
subq %rcx, %rdx
cmpq $0x8, %rdx
jne 0x16894
movq %r14, 0x18(%rsp)
movl (%rax), %edx
cmpl (%rcx), %edx
jne 0x16763
movl 0x4(%rax), %eax
movb $0x1, %dl
movl %edx, 0xc(%rsp)
cmpl 0x4(%rcx), %eax
je 0x1689c
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0xb0(%rsp), %r14
leaq 0x60(%rsp), %r15
leaq 0x98(%rsp), %r12
cmpq 0x28(%rsp), %rcx
setne %al
movl %eax, 0xc(%rsp)
je 0x1689c
movq %rcx, %r13
movq (%rcx), %rdi
callq 0x108f0
cmpl $0x1, %eax
jne 0x16888
movq (%r13), %rsi
movq %r14, %rbx
movq %r14, %rdi
callq 0x108b2
movq %r15, %rbp
movq %r15, %rdi
movq %rbx, %rdx
callq 0x1692e
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x16cf0
movq %rax, %rbx
movq %rbp, %rdi
callq 0x5428
movq %r14, %rdi
callq 0xd484
testq %rbx, %rbx
jne 0x16888
movq (%r13), %rsi
movq %r12, %rbx
movq %r12, %rdi
callq 0x108b2
movq %r15, %rbp
movq %r15, %rdi
movq %rbx, %rdx
callq 0x1692e
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x16d0a
movb $0x1, (%rax)
movq %rbp, %rdi
callq 0x5428
movq %r12, %rdi
callq 0xd484
movq (%r13), %rsi
leaq 0x48(%rsp), %rdi
callq 0x108b2
leaq 0x80(%rsp), %rbx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0xcef6
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
leaq 0x48(%rsp), %rbp
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x166da
movb %al, 0xb(%rsp)
movq %rbx, %rdi
callq 0xd484
movq %rbp, %rdi
callq 0xd484
cmpb $0x0, 0xb(%rsp)
jne 0x1689c
movq %r13, %rcx
addq $0x10, %rcx
jmp 0x16787
movl $0x0, 0xc(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xd100
movl 0xc(%rsp), %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0xd484
jmp 0x168d1
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x16912
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x5428
jmp 0x168ea
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x16912
jmp 0x16919
movq %rax, %rbx
jmp 0x1690a
jmp 0x16919
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x5428
leaq 0xb0(%rsp), %rdi
callq 0xd484
jmp 0x1691c
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xd100
movq %rbx, %rdi
callq 0x53c0