// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movsd %xmm0, 0x18(%rsp)
movl %edx, 0x14(%rsp)
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0x38(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %r14, %rdi
callq 0x261c
leaq 0xb8(%rbx), %rax
movq %rax, (%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
movups %xmm0, (%r14)
leaq 0x50(%rbx), %r15
leaq 0x18(%r13), %rsi
movq %r15, %rdi
callq 0x5b26
leaq 0x68(%rbx), %rdi
leaq 0x30(%r13), %rsi
callq 0x5bfc
leaq 0x80(%rbx), %rdi
leaq 0x48(%r13), %rsi
callq 0x5d74
leaq 0x98(%rbx), %rdi
addq $0x60, %r13
movq %r13, %rsi
callq 0x5e4a
movslq 0x38(%rbx), %rsi
movl %esi, 0xb0(%rbx)
movabsq $-0x4010000000000000, %rax # imm = 0xBFF0000000000000
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
movq %rbx, %rdi
callq 0x54e6
movslq 0xb0(%rbx), %rsi
movq 0x8(%rsp), %rdi
callq 0x31c0
movl $0x0, 0x30(%rbx)
movslq 0xb0(%rbx), %rsi
movq (%rsp), %rdi
callq 0x551a
movslq 0xb0(%rbx), %rsi
movq %rbp, %rdi
callq 0x554c
movslq 0xb0(%rbx), %rsi
movq %r12, %rdi
callq 0x554c
cmpl $0x0, 0xb0(%rbx)
jle 0x42aa
movq %r14, %rcx
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq 0xb8(%rbx), %rax
movq %rax, 0x8(%rsp)
movq 0xa0(%rbx), %rdx
movq 0x98(%rbx), %rsi
movq 0x50(%rbx), %rax
movq %rax, (%rsp)
movq 0x80(%rbx), %r14
movq 0xd0(%rbx), %r9
movq 0xe8(%rbx), %r10
xorl %r11d, %r11d
movsd 0x3fec(%rip), %xmm0     # 0x8178
movq 0x8(%rsp), %rax
movl %r11d, (%rax,%r11,4)
movl (%rcx), %eax
cmpq %rax, %r11
jae 0x42d1
movq %r14, %r8
movq %rsi, %rbp
testq %r11, %r11
je 0x41cb
leal (%r11,%rdi), %eax
cmpq %rsi, %rdx
movq (%rsp), %rdi
movq (%rdi,%rax,8), %rax
leaq (%r14,%rax,4), %r8
movl $0x0, %edi
cmovneq %rax, %rdi
leaq (%rsi,%rdi,4), %rbp
movq (%r15), %r13
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
leal (%r11,%rax), %r12d
xorl %edi, %edi
testq %r11, %r11
je 0x41ea
movq (%r13,%r11,8), %rax
subq (%r13,%r12,8), %rax
jmp 0x41ee
movl (%r13), %eax
movl %eax, %eax
cmpq %rax, %rdi
jae 0x4214
movl (%r8,%rdi,4), %eax
incq %rdi
cmpq %rax, %r11
jne 0x41d9
movaps %xmm0, %xmm1
cmpq %rsi, %rdx
je 0x4217
xorps %xmm1, %xmm1
cvtss2sd -0x4(%rbp,%rdi,4), %xmm1
jmp 0x4217
xorps %xmm1, %xmm1
movsd %xmm1, (%r9,%r11,8)
cmpq %rsi, %rdx
je 0x426d
movq %rsi, %r8
testq %r11, %r11
je 0x4233
movq (%r13,%r12,8), %rax
leaq (%rsi,%rax,4), %r8
movq (%r15), %rdi
xorps %xmm1, %xmm1
xorl %r13d, %r13d
testq %r11, %r11
je 0x424b
movq (%rdi,%r11,8), %rax
subq (%rdi,%r12,8), %rax
jmp 0x424d
movl (%rdi), %eax
movl %eax, %eax
cmpq %rax, %r13
jae 0x4266
xorps %xmm2, %xmm2
cvtss2sd (%r8,%r13,4), %xmm2
addsd %xmm2, %xmm1
incq %r13
jmp 0x423c
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
jmp 0x4291
testq %r11, %r11
je 0x427e
movq (%r13,%r11,8), %rax
subq (%r13,%r12,8), %rax
jmp 0x4282
movq (%r13), %rax
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd %xmm1, (%r10,%r11,8)
incq %r11
movslq 0xb0(%rbx), %rax
cmpq %rax, %r11
jl 0x418c
movl 0x14(%rsp), %eax
movl %eax, 0x100(%rbx)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x108(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3da3(%rip), %rdi      # 0x807b
leaq 0x3db5(%rip), %rsi      # 0x8094
leaq 0x3ed0(%rip), %rcx      # 0x81b6
movl $0x64, %edx
callq 0x2130
jmp 0x42f7
movq %rax, %r15
jmp 0x434d
movq %rax, %r15
movq (%r12), %rdi
testq %rdi, %rdi
je 0x4312
movq 0xf8(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x432a
movq 0xe0(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq (%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x4345
movq 0xc8(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq %r14, %rdi
callq 0x5496
movq 0x8(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x4366
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x437a
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq %r15, %rdi
callq 0x2370