// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/graph_hash_t.cc
// Function: graph_hash_t::find_sssp(unsigned int, std::tr1::unordered_map<unsigned int, int, std::tr1::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int const, int>>>&)
void graph_hash_t::find_sssp(node_id_t s, tr1_map_t(int)& out_vec)
{
    out_vec.clear();
    i_fill_map<int>(out_vec, -1);
    queue<node_id_t> Q;
    Q.push(s);
    out_vec[s] = 0;
    while(!Q.empty()) {
        node_id_t v = Q.front(); Q.pop();
        vector<node_id_t> nbr_vec = get_nbrs(v);
        for(int i = 0; i < nbr_vec.size(); ++i) {
            node_id_t nbr = nbr_vec[i];
            if(out_vec[nbr] == -1) {
                out_vec[nbr] = out_vec[v] + 1;
                Q.push(nbr);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl %esi, 0x14(%rsp)
movq 0x8(%rdx), %rsi
movq 0x10(%rdx), %rdx
movq %rbx, %rdi
callq 0x1290a
movq $0x0, 0x18(%rbx)
movq %r14, 0x80(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1d2aa
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, 0x40(%r15)
movaps %xmm0, 0x30(%r15)
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
movq %r15, %rdi
xorl %esi, %esi
callq 0x6ad0
movq 0x30(%r15), %rax
movq 0x40(%r15), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1cd85
movl %ebp, (%rax)
addq $0x4, %rax
movq %rax, 0x60(%rsp)
jmp 0x1cd94
leaq 0x30(%rsp), %rdi
leaq 0x14(%rsp), %rsi
callq 0x75be
leaq 0x14(%rsp), %rsi
movq %rbx, %rdi
callq 0xd94a
movl $0x0, (%rax)
movq 0x40(%rsp), %rax
cmpq %rax, 0x60(%rsp)
je 0x1cef0
leaq 0xc(%rsp), %r15
leaq 0x10(%rsp), %r13
leaq 0x30(%rsp), %rbp
movl (%rax), %ecx
movl %ecx, 0x10(%rsp)
movq 0x50(%rsp), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rax
je 0x1cde0
addq $0x4, %rax
jmp 0x1ce16
movq 0x48(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2250
movq 0x58(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x58(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x48(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x50(%rsp)
movl 0x10(%rsp), %ecx
movq %rax, 0x40(%rsp)
movl %ecx, 0xc(%rsp)
movq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x126b8
leaq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x6112
movq 0x18(%rsp), %rdi
cmpq %rdi, 0x20(%rsp)
je 0x1cece
xorl %r12d, %r12d
movl (%rdi,%r12,4), %eax
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd94a
cmpl $-0x1, (%rax)
jne 0x1ceb5
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd94a
movl (%rax), %r14d
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd94a
incl %r14d
movl %r14d, (%rax)
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1ceaa
movl 0xc(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x60(%rsp)
jmp 0x1ceb5
movq %rbp, %rdi
movq %r15, %rsi
callq 0x75be
incq %r12
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
cmpq %r12, %rax
ja 0x1ce4f
testq %rdi, %rdi
je 0x1cee0
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x40(%rsp), %rax
cmpq %rax, 0x60(%rsp)
jne 0x1cdc6
leaq 0x30(%rsp), %rdi
callq 0x690a
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1cf0e
movq %rax, %rbx
jmp 0x1cf2d
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1cf2d
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0x30(%rsp), %rdi
callq 0x690a
movq %rbx, %rdi
callq 0x23b0
nop