// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rdi, %r14
movl %esi, 0xc(%rsp)
movq 0x8(%rdx), %rsi
movq 0x10(%rdx), %rdx
movq %rbx, %rdi
callq 0x129c0
movq $0x0, 0x18(%rbx)
movq %r14, 0x80(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1d3c8
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 0x6b50
movq 0x30(%r15), %rax
movq 0x40(%r15), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1cea7
movl 0xc(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x60(%rsp)
jmp 0x1ceb6
leaq 0x30(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x7644
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0xd8ec
movl $0x0, (%rax)
movq 0x40(%rsp), %rax
cmpq %rax, 0x60(%rsp)
je 0x1d012
leaq 0x10(%rsp), %r15
leaq 0x14(%rsp), %r13
leaq 0x30(%rsp), %rbp
movl (%rax), %ecx
movl %ecx, 0x14(%rsp)
movq 0x50(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1cf02
addq $0x4, %rax
jmp 0x1cf34
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)
movq %rax, 0x40(%rsp)
movl 0x14(%rsp), %eax
movl %eax, 0x10(%rsp)
movq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x12762
leaq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x61a0
movq 0x18(%rsp), %rdi
cmpq %rdi, 0x20(%rsp)
je 0x1cff0
xorl %r12d, %r12d
movl (%rdi,%r12,4), %eax
movl %eax, 0x10(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd8ec
cmpl $-0x1, (%rax)
jne 0x1cfd7
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd8ec
movl (%rax), %r14d
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd8ec
incl %r14d
movl %r14d, (%rax)
movq 0x60(%rsp), %rax
movq 0x70(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x1cfcc
movl 0x10(%rsp), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x60(%rsp)
jmp 0x1cfd7
movq %rbp, %rdi
movq %r15, %rsi
callq 0x7644
incq %r12
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rax
subq %rdi, %rax
sarq $0x2, %rax
cmpq %r12, %rax
ja 0x1cf71
testq %rdi, %rdi
je 0x1d002
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x40(%rsp), %rax
cmpq %rax, 0x60(%rsp)
jne 0x1cee8
leaq 0x30(%rsp), %rdi
callq 0x6998
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1d030
movq %rax, %rbx
jmp 0x1d04f
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1d04f
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
leaq 0x30(%rsp), %rdi
callq 0x6998
movq %rbx, %rdi
callq 0x23b0
nop