// File: /workspace/github_cpp_makefile_star2_O1/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 $0xe8, %rsp
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, 0x8(%rsp)
movq (%rdx), %rax
movslq (%rax), %rcx
movq %rdi, 0x20(%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 0xd0(%rsp), %rdi
callq 0x15090
movq (%r12), %rax
movq 0x8(%r12), %rcx
subq %rax, %rcx
cmpq $0x8, %rcx
je 0x1d6e8
movq 0x8(%rbx), %rcx
subq (%rbx), %rcx
cmpq $0x8, %rcx
jne 0x1d8e8
movl (%rax), %edx
movq %rbx, 0x18(%rsp)
movq (%rbx), %rcx
cmpl (%rcx), %edx
jne 0x1d708
movl 0x4(%rax), %eax
movb $0x1, %dl
movl %edx, 0x4(%rsp)
cmpl 0x4(%rcx), %eax
je 0x1d8f0
movq 0xd0(%rsp), %r13
movq 0xd8(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpq %rax, %r13
setne %al
movl %eax, 0x4(%rsp)
je 0x1d8f0
movq 0x8(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x10(%rsp)
leaq 0x48(%rsp), %rbx
leaq 0x80(%rsp), %r15
leaq 0xb8(%rsp), %r12
movq %r12, %rbp
movq %r15, %r14
movq (%r13), %rdi
callq 0x14f2c
movl %eax, %r12d
cmpl $0x1, %eax
jne 0x1d798
movq (%r13), %rsi
movq %rbx, %rdi
callq 0x14ed6
movq %r14, %r15
movq %r14, %rdi
movq %rbx, %rdx
callq 0x1d9e8
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x1e31e
cmpq 0x10(%rsp), %rax
sete %bl
jmp 0x1d79a
xorl %ebx, %ebx
cmpl $0x1, %r12d
movq %r14, %r15
movq %rbp, %r12
jne 0x1d7e2
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x1d7cb
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x1d7e2
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
testb %bl, %bl
leaq 0x48(%rsp), %rbx
je 0x1d8d0
movq (%r13), %rsi
movq %r12, %rdi
callq 0x14ed6
leaq 0x60(%rsp), %r15
movq %r15, %rdi
movq %r12, %rdx
callq 0x1d9e8
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x1e10e
movb $0x1, (%rax)
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x1d837
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5280
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x1d854
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq (%r13), %rsi
leaq 0x30(%rsp), %rdi
callq 0x14ed6
leaq 0xa0(%rsp), %r15
movq %r15, %rdi
movq 0x18(%rsp), %rsi
callq 0x11fd4
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r15, %rcx
callq 0x1d67a
movl %eax, %r12d
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x1d8ae
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1d8c5
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
testb %r12b, %r12b
movq %r14, %r15
movq %rbp, %r12
jne 0x1d8f0
addq $0x10, %r13
cmpq 0x28(%rsp), %r13
setne %al
movl %eax, 0x4(%rsp)
jne 0x1d750
jmp 0x1d8f0
movl $0x0, 0x4(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x1212c
movl 0x4(%rsp), %eax
andb $0x1, %al
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x1d964
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x1d964
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x1d999
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
jmp 0x1d999
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x1d9d3
movq 0x58(%rsp), %rsi
jmp 0x1d9c4
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x1d9af
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5280
jmp 0x1d9af
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1d9d3
movq 0x40(%rsp), %rsi
jmp 0x1d9c4
jmp 0x1d9d0
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x1d9d3
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x5280
jmp 0x1d9d3
jmp 0x1d9d0
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x1212c
movq %rbx, %rdi
callq 0x53e0