// File: /workspace/github_cpp_makefile_star2_O1/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, 0x1c(%rsp)
movl %ecx, %r15d
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
addq $0x38, %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %rdi, 0x10(%rsp)
callq 0x261c
leaq 0xb8(%rbx), %rax
movq %rax, 0x8(%rsp)
leaq 0xd0(%rbx), %rax
movq %rax, 0x20(%rsp)
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)
leaq 0x38(%rsp), %rdi
movq %rbp, %rsi
movq %r13, %rdx
movl %r15d, %ecx
callq 0x2642
leaq 0x50(%rsp), %r13
movq -0x8(%r13), %rax
movq 0x10(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups -0x18(%r13), %xmm0
movups %xmm0, (%rcx)
leaq 0x50(%rbx), %rdi
movq %rdi, 0x28(%rsp)
movq %r13, %rsi
callq 0x5a66
xorps %xmm0, %xmm0
leaq 0xb0(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x68(%rbx), %rax
movups 0x70(%rbx), %xmm0
movq 0x18(%r13), %rcx
movq %rcx, 0x68(%rbx)
movq 0x20(%r13), %rcx
movq %rcx, 0x70(%rbx)
movq 0x28(%r13), %rcx
movq %rcx, 0x78(%rbx)
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rsi
movq %rax, (%rdi)
movups %xmm0, 0x8(%rdi)
movq %rcx, 0x18(%r13)
movq %rdx, 0x20(%r13)
movq %rsi, 0x28(%r13)
callq 0x3250
leaq 0x80(%rbx), %rdi
leaq 0x80(%rsp), %rsi
callq 0x5aa6
leaq 0x98(%rbx), %rdi
leaq 0x98(%rsp), %r13
movq %r13, %rsi
callq 0x5ae6
movq (%r13), %rdi
testq %rdi, %rdi
je 0x3cf4
movq 0xa8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
leaq 0x68(%rsp), %r13
movq 0x18(%r13), %rdi
testq %rdi, %rdi
je 0x3d12
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x2200
movq %r13, %rdi
callq 0x3250
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x3d31
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 0x54e6
movslq 0xb0(%rbx), %rsi
movq %r14, %rdi
callq 0x31c0
movl $0x0, 0x30(%rbx)
movslq 0xb0(%rbx), %rsi
movq 0x8(%rsp), %rdi
callq 0x551a
movslq 0xb0(%rbx), %rsi
movq 0x20(%rsp), %rdi
callq 0x554c
movslq 0xb0(%rbx), %rsi
movq %r12, %rdi
callq 0x554c
cmpl $0x0, 0xb0(%rbx)
jle 0x3f17
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq 0xb8(%rbx), %rcx
movq %rcx, 0x8(%rsp)
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 0x438c(%rip), %xmm0     # 0x8178
movq 0x8(%rsp), %rcx
movl %r11d, (%rcx,%r11,4)
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
cmpq %rcx, %r11
jae 0x3f41
cmpq %rsi, %rdx
je 0x3e5f
movq %rsi, %r12
testq %r11, %r11
je 0x3e1e
leal (%r11,%rax), %ecx
movq (%rdi,%rcx,8), %rcx
leaq (%rsi,%rcx,4), %r12
movq 0x28(%rsp), %rcx
movq (%rcx), %r13
leal (%r11,%rax), %r14d
xorpd %xmm1, %xmm1
xorl %ecx, %ecx
testq %r11, %r11
je 0x3e41
movq (%r13,%r11,8), %rbp
subq (%r13,%r14,8), %rbp
jmp 0x3e45
movl (%r13), %ebp
movl %ebp, %r15d
cmpq %r15, %rcx
jae 0x3e7f
xorps %xmm2, %xmm2
cvtss2sd (%r12,%rcx,4), %xmm2
addsd %xmm2, %xmm1
incq %rcx
jmp 0x3e30
testq %r11, %r11
je 0x3e72
movq (%rdi,%r11,8), %rcx
leal (%r11,%rax), %r14d
subq (%rdi,%r14,8), %rcx
jmp 0x3e75
movq (%rdi), %rcx
movl %ecx, %ecx
xorps %xmm1, %xmm1
cvtsi2sd %rcx, %xmm1
movsd %xmm1, (%r9,%r11,8)
movq %r8, %r13
movq %rsi, %r12
testq %r11, %r11
je 0x3ead
leal (%r11,%rax), %ecx
cmpq %rsi, %rdx
movq (%rdi,%rcx,8), %rcx
leaq (%r8,%rcx,4), %r13
movl $0x0, %r14d
cmovneq %rcx, %r14
leaq (%rsi,%r14,4), %r12
movq 0x28(%rsp), %rcx
movq (%rcx), %rbp
leal (%r11,%rax), %ecx
xorl %r14d, %r14d
testq %r11, %r11
je 0x3ecd
movq (%rbp,%r11,8), %r15
subq (%rbp,%rcx,8), %r15
jmp 0x3ed1
movl (%rbp), %r15d
movl %r15d, %r15d
cmpq %r15, %r14
jae 0x3efa
movl (%r13,%r14,4), %r15d
incq %r14
cmpq %r15, %r11
jne 0x3ebc
movaps %xmm0, %xmm1
cmpq %rsi, %rdx
je 0x3efe
xorps %xmm1, %xmm1
cvtss2sd -0x4(%r12,%r14,4), %xmm1
jmp 0x3efe
xorpd %xmm1, %xmm1
movsd %xmm1, (%r10,%r11,8)
incq %r11
movslq 0xb0(%rbx), %rcx
cmpq %rcx, %r11
jl 0x3dec
movl 0x1c(%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 0x4133(%rip), %rdi      # 0x807b
leaq 0x4145(%rip), %rsi      # 0x8094
leaq 0x4234(%rip), %rcx      # 0x818a
movl $0x74, %edx
callq 0x2130
jmp 0x3f69
jmp 0x3f69
movq %rax, %r15
jmp 0x3fc6
movq %rax, %r15
movq (%r12), %rdi
testq %rdi, %rdi
je 0x3f84
movq 0xf8(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x20(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3fa0
movq 0xe0(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x8(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3fbc
movq 0xc8(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq 0x10(%rsp), %rdi
callq 0x5496
movq (%r14), %rdi
testq %rdi, %rdi
je 0x3fda
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3fee
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2200
movq %r15, %rdi
callq 0x2370