// File: /workspace/github_cpp_makefile_star2_O3/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 $0xb8, %rsp
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r14
movq (%rdx), %rax
movslq (%rax), %rcx
movq %rdi, 0x30(%rsp)
movq (%rdi), %rdx
leaq (%rcx,%rcx,2), %rcx
movslq 0x4(%rax), %rax
movq (%rdx,%rcx,8), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %rsi
leaq 0xa0(%rsp), %rdi
callq 0x1517e
movq (%r12), %rax
movq 0x8(%r12), %rdx
subq %rax, %rdx
movq (%r13), %rcx
cmpq $0x8, %rdx
je 0x1d5f4
movq 0x8(%r13), %rdx
subq %rcx, %rdx
cmpq $0x8, %rdx
jne 0x1d797
movl (%rax), %edx
cmpl (%rcx), %edx
jne 0x1d609
movl 0x4(%rax), %eax
movb $0x1, %bpl
cmpl 0x4(%rcx), %eax
je 0x1d799
movq 0xa0(%rsp), %r15
movq 0xa8(%rsp), %rbx
cmpq %rbx, %r15
je 0x1d797
movq %r13, 0x28(%rsp)
leaq 0x8(%r14), %rax
movq %rax, 0x38(%rsp)
leaq 0x88(%rsp), %rbp
leaq 0x8(%rsp), %r13
movq %rbp, %r12
movq (%r15), %rdi
callq 0x1501a
cmpl $0x1, %eax
movq %r12, %rbp
jne 0x1d78a
movq (%r15), %rsi
movq %rbp, %rdi
callq 0x14fc4
movq %r13, %rdi
movq %rbp, %rdx
callq 0x1d88a
movq %r14, %rdi
movq %r13, %rsi
callq 0x1e1b4
movq %rax, %rbp
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1d694
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x1d6b1
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
cmpq 0x38(%rsp), %rbp
movq %r12, %rbp
jne 0x1d78a
movq (%r15), %rsi
leaq 0x70(%rsp), %rbp
movq %rbp, %rdi
callq 0x14fc4
movq %r13, %rdi
movq %rbp, %rdx
callq 0x1d88a
movq %r14, %rdi
movq %r13, %rsi
callq 0x1dfaa
movb $0x1, (%rax)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1d704
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1d71e
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq (%r15), %rsi
leaq 0x40(%rsp), %rdi
callq 0x14fc4
leaq 0x58(%rsp), %rbp
movq %rbp, %rdi
movq 0x28(%rsp), %rsi
callq 0x120b4
movq 0x30(%rsp), %rdi
movq %r14, %rsi
leaq 0x40(%rsp), %rdx
movq %rbp, %rcx
callq 0x1d584
movl %eax, %ebp
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x1d76b
movq 0x68(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1d782
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
testb %bpl, %bpl
movq %r12, %rbp
jne 0x1d7ba
addq $0x10, %r15
cmpq %rbx, %r15
jne 0x1d63d
xorl %ebp, %ebp
leaq 0xa0(%rsp), %rdi
callq 0x12220
movl %ebp, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %bpl
jmp 0x1d799
movq %rax, %rbx
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x1d7de
movq 0x68(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
jmp 0x1d7de
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1d875
movq 0x50(%rsp), %rsi
jmp 0x1d868
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1d817
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x1d817
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1d875
movq 0x80(%rsp), %rsi
jmp 0x1d868
jmp 0x1d872
jmp 0x1d872
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1d853
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x1d853
movq %rax, %rbx
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x1d875
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
jmp 0x1d875
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x12220
movq %rbx, %rdi
callq 0x53e0