// File: /workspace/github_cpp_makefile_star2_O3/riyadparvez[P]louvain-method/community.cpp
// Function: Community::Community(Graph, int, double)
Community::Community(Graph gc, int nbp, double minm) {
  g = gc;
  size = g.nb_nodes;

  neigh_weight.resize(size,-1);
  neigh_pos.resize(size);
  neigh_last=0;

  n2c.resize(size);
  in.resize(size);
  tot.resize(size);

  for (int i=0 ; i<size ; i++) {
    n2c[i] = i;
    in[i]  = g.nb_selfloops(i);
    tot[i] = g.weighted_degree(i);
  }

  nb_pass = nbp;
  min_modularity = minm;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movsd %xmm0, 0x28(%rsp)
movl %edx, %ebp
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq 0x38(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %r14, %rdi
callq 0x263c
movl %ebp, 0xc(%rsp)
leaq 0xb8(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0xd0(%rbx), %rbp
leaq 0xe8(%rbx), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0xe8(%rbx)
movups %xmm0, 0xd8(%rbx)
movups %xmm0, 0xc8(%rbx)
movups %xmm0, 0xb8(%rbx)
movq $0x0, 0xf8(%rbx)
movq 0x10(%r13), %rax
movq %rax, 0x10(%r14)
movups (%r13), %xmm0
movq %r14, (%rsp)
movups %xmm0, (%r14)
leaq 0x50(%rbx), %rdi
leaq 0x18(%r13), %rsi
movq %rdi, 0x20(%rsp)
callq 0x5b4e
leaq 0x68(%rbx), %rdi
leaq 0x30(%r13), %rsi
callq 0x5c32
leaq 0x80(%rbx), %rdi
leaq 0x48(%r13), %rsi
callq 0x5dd0
leaq 0x98(%rbx), %rdi
addq $0x60, %r13
movq %r13, %rsi
callq 0x5eb4
movslq 0x38(%rbx), %rsi
movl %esi, 0xb0(%rbx)
movabsq $-0x4010000000000000, %rax # imm = 0xBFF0000000000000
leaq 0x30(%rsp), %rdx
movq %rax, (%rdx)
movq %rbx, %rdi
callq 0x54d0
movslq 0xb0(%rbx), %rsi
movq 0x18(%rsp), %rdi
callq 0x3190
movl $0x0, 0x30(%rbx)
movslq 0xb0(%rbx), %rsi
movq 0x10(%rsp), %rdi
callq 0x5504
movslq 0xb0(%rbx), %rsi
movq %rbp, %rdi
callq 0x5536
movslq 0xb0(%rbx), %rsi
movq %r12, %rdi
callq 0x5536
cmpl $0x0, 0xb0(%rbx)
movq (%rsp), %rdi
jle 0x4323
movq 0xb8(%rbx), %rcx
movq 0xa0(%rbx), %rdx
movq 0x98(%rbx), %rsi
movq 0x50(%rbx), %r15
movq 0x80(%rbx), %r12
movq 0xd0(%rbx), %r9
movq 0xe8(%rbx), %r10
xorl %r11d, %r11d
movl %r11d, (%rcx,%r11,4)
movl (%rdi), %eax
cmpq %rax, %r11
jae 0x434a
testq %r11, %r11
je 0x420d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
leal (%r11,%rax), %r13d
cmpq %rsi, %rdx
movq (%r15,%r13,8), %rax
leaq (%r12,%rax,4), %r8
movl $0x0, %edi
cmovneq %rax, %rdi
leaq (%rsi,%rdi,4), %rbp
movq %r15, %rdi
jmp 0x4221
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq %r12, %r8
movq %rsi, %rbp
xorl %eax, %eax
testq %r11, %r11
je 0x4232
movq (%rdi,%r11,8), %r14
subq (%rdi,%r13,8), %r14
jmp 0x4235
movl (%rdi), %r14d
movl %r14d, %r14d
cmpq %r14, %rax
jae 0x4263
movl (%r8,%rax,4), %r14d
incq %rax
cmpq %r14, %r11
jne 0x4223
cmpq %rsi, %rdx
je 0x42d4
xorps %xmm0, %xmm0
cvtss2sd -0x4(%rbp,%rax,4), %xmm0
movsd %xmm0, (%r9,%r11,8)
jmp 0x4270
movq $0x0, (%r9,%r11,8)
cmpq %rsi, %rdx
je 0x42e2
testq %r11, %r11
je 0x428b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
leal (%r11,%rax), %r8d
movq (%r15,%r8,8), %rax
leaq (%rsi,%rax,4), %r13
movq %r15, %rdi
jmp 0x429c
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movq %rsi, %r13
xorps %xmm0, %xmm0
xorl %eax, %eax
testq %r11, %r11
je 0x42b0
movq (%rdi,%r11,8), %r14
subq (%rdi,%r8,8), %r14
jmp 0x42b3
movl (%rdi), %r14d
movl %r14d, %r14d
cmpq %r14, %rax
jae 0x42ce
xorps %xmm1, %xmm1
cvtss2sd (%r13,%rax,4), %xmm1
addsd %xmm1, %xmm0
incq %rax
jmp 0x42a1
movq (%rsp), %rdi
jmp 0x430a
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, (%r9,%r11,8)
testq %r11, %r11
je 0x42f9
movq (%r15,%r11,8), %rax
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
addl %r11d, %edi
subq (%r15,%rdi,8), %rax
jmp 0x42fc
movq (%r15), %rax
movq (%rsp), %rdi
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd %xmm0, (%r10,%r11,8)
incq %r11
movslq 0xb0(%rbx), %rax
cmpq %rax, %r11
jl 0x41d3
movl 0xc(%rsp), %eax
movl %eax, 0x100(%rbx)
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x108(%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3d2a(%rip), %rdi      # 0x807b
leaq 0x3d3c(%rip), %rsi      # 0x8094
leaq 0x3e8f(%rip), %rcx      # 0x81ee
movl $0x64, %edx
callq 0x2130
jmp 0x4370
movq %rax, %r15
jmp 0x43c8
movq %rax, %r15
movq (%r12), %rdi
testq %rdi, %rdi
je 0x438b
movq 0xf8(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x43a3
movq 0xe0(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x10(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x43bf
movq 0xc8(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq (%rsp), %rdi
callq 0x5480
movq 0x18(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x43e1
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x43f5
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq %r15, %rdi
callq 0x2370
nop