// File: fjamour[P]icentral/src/bc.cc
// Function: brandes_bc_hash_out(graph_t&, int)
brandes_bc_hash_out(graph_t& graph_in, int max_iter)
{
    tr1_map_t(double) bc_vec;
    for(int i = 0; i < graph_in.nodes_vec.size(); ++i) {
        bc_vec.insert(make_pair(i, 0.0));
    }

    if(max_iter == -1) {
        for(node_id_t s = 0; s < graph_in.size(); ++s) {
            brandes_iter_hash_out(graph_in, s, bc_vec);
        }
        for(node_id_t i = 0; i < bc_vec.size(); ++i) {
            bc_vec[i] = bc_vec[i]/2;
        }
    } else {
        int num_iter = min(max_iter, (int)graph_in.size());
        for(node_id_t s = 0; s < num_iter; ++s) {
            brandes_iter_hash_out(graph_in, s, bc_vec);
        }
    }

    return bc_vec;
}

// Assembly:
subq $0xf8, %rsp
movq %rdi, 0x68(%rsp)
movq %rdi, %rax
movq %rax, 0x60(%rsp)
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movl %edx, 0xe4(%rsp)
movb $0x0, 0xe3(%rsp)
leaq 0xe0(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0x2d1e0
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %r8
movl $0xa, %esi
leaq 0xe2(%rsp), %rdx
leaq 0xe1(%rsp), %rcx
callq 0x2d1f0
jmp 0x2918b
leaq 0xe0(%rsp), %rdi
callq 0x2d230
movl $0x0, 0xd0(%rsp)
movslq 0xd0(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0xe8(%rsp), %rdi
callq 0x2d240
movq %rax, %rcx
movq 0x58(%rsp), %rax
cmpq %rcx, %rax
jae 0x292a9
movq $0x0, 0xa8(%rsp)
leaq 0xd0(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x2d290
movsd %xmm0, 0x48(%rsp)
movl %eax, 0x54(%rsp)
jmp 0x291fb
movsd 0x48(%rsp), %xmm0
movl 0x54(%rsp), %eax
movl %eax, 0xb0(%rsp)
movsd %xmm0, 0xb8(%rsp)
leaq 0xc0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2d2d0
jmp 0x2922c
movq 0x68(%rsp), %rsi
leaq 0x90(%rsp), %rdi
leaq 0xc0(%rsp), %rdx
callq 0x2d260
jmp 0x29248
jmp 0x2924a
movl 0xd0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xd0(%rsp)
jmp 0x291a3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0xe0(%rsp), %rdi
callq 0x2d230
jmp 0x2947e
movq 0x68(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
callq 0x2d420
jmp 0x2947e
cmpl $-0x1, 0xe4(%rsp)
jne 0x293cf
movl $0x0, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
movq %rax, 0x38(%rsp)
movq 0xe8(%rsp), %rdi
callq 0x56b40
movq %rax, 0x40(%rsp)
jmp 0x292e2
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rcx
cmpq %rcx, %rax
jae 0x29321
movq 0x68(%rsp), %rdx
movq 0xe8(%rsp), %rdi
movl 0x8c(%rsp), %esi
callq 0x29490
jmp 0x2930c
jmp 0x2930e
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
jmp 0x292c2
movl $0x0, 0x88(%rsp)
movq 0x68(%rsp), %rdi
movl 0x88(%rsp), %eax
movq %rax, 0x28(%rsp)
callq 0x2d300
movq %rax, 0x30(%rsp)
jmp 0x29349
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq %rcx, %rax
jae 0x293ca
movq 0x68(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x2d310
movq %rax, 0x20(%rsp)
jmp 0x29371
movq 0x68(%rsp), %rdi
movq 0x20(%rsp), %rax
movsd (%rax), %xmm0
movsd 0x51eb9(%rip), %xmm1    # 0x7b240
mulsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
leaq 0x88(%rsp), %rsi
callq 0x2d310
movq %rax, 0x18(%rsp)
jmp 0x293a5
movq 0x18(%rsp), %rax
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rax)
movl 0x88(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x88(%rsp)
jmp 0x2932c
jmp 0x29455
movq 0xe8(%rsp), %rdi
callq 0x56b40
movq %rax, 0x8(%rsp)
jmp 0x293e3
movq 0x8(%rsp), %rax
movl %eax, 0x80(%rsp)
leaq 0xe4(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x2d1a0
movq %rax, (%rsp)
jmp 0x2940a
movq (%rsp), %rax
movl (%rax), %eax
movl %eax, 0x84(%rsp)
movl $0x0, 0x7c(%rsp)
movl 0x7c(%rsp), %eax
cmpl 0x84(%rsp), %eax
jae 0x29453
movq 0x68(%rsp), %rdx
movq 0xe8(%rsp), %rdi
movl 0x7c(%rsp), %esi
callq 0x29490
jmp 0x29444
jmp 0x29446
movl 0x7c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x7c(%rsp)
jmp 0x2941f
jmp 0x29455
movb $0x1, 0xe3(%rsp)
testb $0x1, 0xe3(%rsp)
jne 0x29471
movq 0x68(%rsp), %rdi
callq 0x2d420
movq 0x60(%rsp), %rax
addq $0xf8, %rsp
retq
movq 0xd8(%rsp), %rdi
callq 0x9cf0
nopl (%rax,%rax)