// File: /workspace/github_cpp_makefile_star2_O3/riyadparvez[P]louvain-method/community.cpp
// Function: Community::Community(char*, char*, int, int, double)
Community::Community(char * filename, char * filename_w, int type, int nbp, double minm) {
  g = Graph(filename, filename_w, type);
  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;
    tot[i] = g.weighted_degree(i);
    in[i]  = g.nb_selfloops(i);
  }

  nb_pass = nbp;
  min_modularity = minm;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movsd %xmm0, 0x30(%rsp)
movl %r8d, 0x14(%rsp)
movl %ecx, %r15d
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
movq %rax, 0x28(%rsp)
addq $0x38, %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %rdi, 0x8(%rsp)
callq 0x263c
leaq 0xb8(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0xd0(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0xe8(%rbx), %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0xe8(%rbx)
movups %xmm0, 0xd8(%rbx)
movups %xmm0, 0xc8(%rbx)
movups %xmm0, 0xb8(%rbx)
movq $0x0, 0xf8(%rbx)
leaq 0x38(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %r15d, %ecx
callq 0x2662
movq 0x48(%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rcx)
movq 0x50(%rbx), %rdi
movq 0x60(%rbx), %rsi
movups 0x50(%rsp), %xmm0
movups %xmm0, 0x50(%rbx)
movq 0x60(%rsp), %rax
movq %rax, 0x60(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
testq %rdi, %rdi
je 0x3c43
subq %rdi, %rsi
callq 0x2200
movq 0x78(%rbx), %rax
movups 0x68(%rsp), %xmm0
movq 0x78(%rsp), %rcx
movq %rcx, 0x78(%rbx)
movupd 0x68(%rbx), %xmm1
movups %xmm0, 0x68(%rbx)
leaq 0xb0(%rsp), %rdi
movapd %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rsp)
xorl %r14d, %r14d
movq %r14, 0x78(%rsp)
callq 0x3220
movq 0x80(%rbx), %rdi
movq 0x90(%rbx), %rsi
movups 0x80(%rsp), %xmm0
movups %xmm0, 0x80(%rbx)
movq 0x90(%rsp), %rax
movq %rax, 0x90(%rbx)
movq %r14, 0x90(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%rsp)
testq %rdi, %rdi
je 0x3ccf
subq %rdi, %rsi
callq 0x2200
movq 0x98(%rbx), %rdi
movq 0xa8(%rbx), %rsi
movups 0x98(%rsp), %xmm0
movups %xmm0, 0x98(%rbx)
movq 0xa8(%rsp), %rax
movq %rax, 0xa8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x98(%rsp)
movq $0x0, 0xa8(%rsp)
testq %rdi, %rdi
je 0x3d3c
subq %rdi, %rsi
callq 0x2200
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x3d3c
movq 0xa8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
leaq 0x68(%rsp), %r15
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x3d5a
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq %r15, %rdi
callq 0x3220
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3d79
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movslq 0x38(%rbx), %rsi
movl %esi, 0xb0(%rbx)
movabsq $-0x4010000000000000, %rax # imm = 0xBFF0000000000000
leaq 0x38(%rsp), %rdx
movq %rax, (%rdx)
movq %rbx, %rdi
callq 0x54d0
movslq 0xb0(%rbx), %rsi
movq 0x28(%rsp), %rdi
callq 0x3190
movl $0x0, 0x30(%rbx)
movslq 0xb0(%rbx), %rsi
movq 0x20(%rsp), %rdi
callq 0x5504
movslq 0xb0(%rbx), %rsi
movq 0x18(%rsp), %rdi
callq 0x5536
movslq 0xb0(%rbx), %rsi
movq %rbp, %rdi
callq 0x5536
cmpl $0x0, 0xb0(%rbx)
jle 0x3f64
movq 0xb8(%rbx), %rcx
movq 0xa0(%rbx), %rdx
movq 0x98(%rbx), %rsi
movq 0x50(%rbx), %rdi
movq 0x80(%rbx), %r8
movq 0xe8(%rbx), %r9
movq 0xd0(%rbx), %r10
xorl %r11d, %r11d
movsd 0x434c(%rip), %xmm0     # 0x8178
movl %r11d, (%rcx,%r11,4)
movq 0x8(%rsp), %rax
movl (%rax), %eax
cmpq %rax, %r11
jae 0x3f8e
cmpq %rsi, %rdx
je 0x3e60
testq %r11, %r11
je 0x3e77
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
leal (%r11,%rax), %r15d
movq (%rdi,%r15,8), %rax
leaq (%rsi,%rax,4), %r13
movq %rdi, %r12
jmp 0x3e84
testq %r11, %r11
je 0x3eb8
movq (%rdi,%r11,8), %r14
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addl %r11d, %eax
subq (%rdi,%rax,8), %r14
jmp 0x3ebb
movq 0x50(%rbx), %r12
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %rsi, %r13
xorpd %xmm1, %xmm1
xorl %r14d, %r14d
testq %r11, %r11
je 0x3e9a
movq (%r12,%r11,8), %rbp
subq (%r12,%r15,8), %rbp
jmp 0x3e9e
movl (%r12), %ebp
movl %ebp, %eax
cmpq %rax, %r14
jae 0x3ec6
xorps %xmm2, %xmm2
cvtss2sd (%r13,%r14,4), %xmm2
addsd %xmm2, %xmm1
incq %r14
jmp 0x3e8b
movq (%rdi), %r14
movl %r14d, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movsd %xmm1, (%r9,%r11,8)
testq %r11, %r11
je 0x3ef8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
leal (%r11,%rax), %r15d
cmpq %rsi, %rdx
movq (%rdi,%r15,8), %rax
leaq (%r8,%rax,4), %r13
movl $0x0, %r14d
cmovneq %rax, %r14
leaq (%rsi,%r14,4), %r12
movq %rdi, %rbp
jmp 0x3f08
movq 0x50(%rbx), %rbp
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %r8, %r13
movq %rsi, %r12
xorl %r14d, %r14d
testq %r11, %r11
je 0x3f1c
movq (%rbp,%r11,8), %rax
subq (%rbp,%r15,8), %rax
jmp 0x3f1f
movl (%rbp), %eax
movl %eax, %eax
cmpq %rax, %r14
jae 0x3f47
movl (%r13,%r14,4), %eax
incq %r14
cmpq %rax, %r11
jne 0x3f0b
movaps %xmm0, %xmm1
cmpq %rsi, %rdx
je 0x3f4b
xorps %xmm1, %xmm1
cvtss2sd -0x4(%r12,%r14,4), %xmm1
jmp 0x3f4b
xorpd %xmm1, %xmm1
movsd %xmm1, (%r10,%r11,8)
incq %r11
movslq 0xb0(%rbx), %rax
cmpq %rax, %r11
jl 0x3e2c
movl 0x14(%rsp), %eax
movl %eax, 0x100(%rbx)
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x108(%rbx)
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40e6(%rip), %rdi      # 0x807b
leaq 0x40f8(%rip), %rsi      # 0x8094
leaq 0x421f(%rip), %rcx      # 0x81c2
movl $0x74, %edx
callq 0x2130
jmp 0x3fb6
jmp 0x3fb6
movq %rax, %r14
jmp 0x4013
movq %rax, %r14
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x3fd1
movq 0xf8(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x18(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3fed
movq 0xe0(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x20(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x4009
movq 0xc8(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x8(%rsp), %rdi
callq 0x5480
movq 0x28(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x402c
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4040
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq %r14, %rdi
callq 0x2370