#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int popcount12(unsigned int);
void gen_triple_weight_polynomial(unsigned int all_codes[],
                                  int triple_weight_polynomial[]) {
  for (int i = 0; i < 64; i++) {
    for (int j = i + 1; j < 64; j++) {
      for (int k = j + 1; k < 64; k++) {
        int weight_i = popcount12(all_codes[i]);
        int weight_j = popcount12(all_codes[j]);
        int weight_k = popcount12(all_codes[k]);
        int koeff =
            144 * popcount12(all_codes[i] & all_codes[j] & all_codes[k]) -
            12 * ((weight_i * popcount12(all_codes[j] & all_codes[k]) +
                   (weight_j * popcount12(all_codes[i] & all_codes[k])) +
                   (weight_k * popcount12(all_codes[i] & all_codes[j])))) +
            2 * weight_i * weight_j * weight_k;
        int index = 33 - weight_i - weight_j - weight_k;
        if (index >= 0) {
          triple_weight_polynomial[index] += 6 * koeff;
        }
      }
    }
  }
  for (int i = 0; i < 64; ++i) {
    for (int k = 0; k < i; ++k) {
      int weight_i = popcount12(all_codes[i]);
      int weight_k = popcount12(all_codes[k]);
      int koeff =
          144 * popcount12(all_codes[i] & all_codes[k]) -
          12 * ((2 * (weight_i * popcount12(all_codes[i] & all_codes[k]))) +
                (weight_k * popcount12(all_codes[i]))) +
          2 * weight_i * weight_i * weight_k;
      int index = 33 - (2 * weight_i) - weight_k;
      if (index >= 0) {
        triple_weight_polynomial[index] += 3 * koeff;
      }
    }
  }
  for (int i = 0; i < 64; ++i) {
    for (int k = i + 1; k < 64; ++k) {
      int weight_i = popcount12(all_codes[i]);
      int weight_k = popcount12(all_codes[k]);
      int koeff =
          144 * popcount12(all_codes[i] & all_codes[k]) -
          12 * ((2 * (weight_i * popcount12(all_codes[i] & all_codes[k]))) +
                (weight_k * popcount12(all_codes[i]))) +
          2 * weight_i * weight_i * weight_k;
      int index = 33 - (2 * weight_i) - weight_k;
      if (index >= 0) {
        triple_weight_polynomial[index] += 3 * koeff;
      }
    }
  }
  for (int i = 0; i < 64; ++i) {
    int weight_i = popcount12(all_codes[i]);
    int koeff = 144 * popcount12(all_codes[i]) -
                12 * (3 * (weight_i * popcount12(all_codes[i]))) +
                2 * weight_i * weight_i * weight_i;
    int index = 33 - (3 * weight_i);
    if (index >= 0) {
      triple_weight_polynomial[index] += koeff;
    }
  }
}


x86 assembly (clang, -O0):
<gen_triple_weight_polynomial>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x40,-0x14(%rbp)
jge    12da <gen_triple_weight_polynomial+0x1ca>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x40,-0x18(%rbp)
jge    12c7 <gen_triple_weight_polynomial+0x1b7>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x40,-0x1c(%rbp)
jge    12b4 <gen_triple_weight_polynomial+0x1a4>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
and    (%rax,%rcx,4),%edi
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
and    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
imul   $0x90,%eax,%eax
mov    %eax,-0x74(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
and    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%ecx
mov    -0x88(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0x80(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
and    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    -0x84(%rbp),%ecx
mov    %eax,%edx
mov    -0x80(%rbp),%eax
imul   %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x78(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
and    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    -0x7c(%rbp),%edx
mov    -0x78(%rbp),%ecx
mov    %eax,%esi
mov    -0x74(%rbp),%eax
imul   %esi,%edx
add    %edx,%ecx
imul   $0xc,%ecx,%ecx
sub    %ecx,%eax
mov    -0x20(%rbp),%ecx
shl    $0x1,%ecx
imul   -0x24(%rbp),%ecx
imul   -0x28(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    $0x21,%eax
sub    -0x20(%rbp),%eax
sub    -0x24(%rbp),%eax
sub    -0x28(%rbp),%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x0,-0x30(%rbp)
jl     12a1 <gen_triple_weight_polynomial+0x191>
imul   $0x6,-0x2c(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
jmp    12a6 <gen_triple_weight_polynomial+0x196>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1150 <gen_triple_weight_polynomial+0x40>
jmp    12b9 <gen_triple_weight_polynomial+0x1a9>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    113d <gen_triple_weight_polynomial+0x2d>
jmp    12cc <gen_triple_weight_polynomial+0x1bc>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112a <gen_triple_weight_polynomial+0x1a>
movl   $0x0,-0x34(%rbp)
cmpl   $0x40,-0x34(%rbp)
jge    1422 <gen_triple_weight_polynomial+0x312>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    140f <gen_triple_weight_polynomial+0x2ff>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x8(%rbp),%rax
movslq -0x38(%rbp),%rcx
and    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
imul   $0x90,%eax,%eax
mov    %eax,-0x8c(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x8(%rbp),%rax
movslq -0x38(%rbp),%rcx
and    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%ecx
mov    -0x98(%rbp),%eax
imul   %ecx,%eax
shl    $0x1,%eax
mov    %eax,-0x90(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x94(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    -0x94(%rbp),%edx
mov    -0x90(%rbp),%ecx
mov    %eax,%esi
mov    -0x8c(%rbp),%eax
imul   %esi,%edx
add    %edx,%ecx
imul   $0xc,%ecx,%ecx
sub    %ecx,%eax
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
imul   -0x3c(%rbp),%ecx
imul   -0x40(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x44(%rbp)
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
mov    $0x21,%eax
sub    %ecx,%eax
sub    -0x40(%rbp),%eax
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
jl     13fc <gen_triple_weight_polynomial+0x2ec>
imul   $0x3,-0x44(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
jmp    1401 <gen_triple_weight_polynomial+0x2f1>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12f2 <gen_triple_weight_polynomial+0x1e2>
jmp    1414 <gen_triple_weight_polynomial+0x304>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12e1 <gen_triple_weight_polynomial+0x1d1>
movl   $0x0,-0x4c(%rbp)
cmpl   $0x40,-0x4c(%rbp)
jge    156a <gen_triple_weight_polynomial+0x45a>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
cmpl   $0x40,-0x50(%rbp)
jge    1557 <gen_triple_weight_polynomial+0x447>
mov    -0x8(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,-0x54(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,-0x58(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x8(%rbp),%rax
movslq -0x50(%rbp),%rcx
and    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
imul   $0x90,%eax,%eax
mov    %eax,-0x9c(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0xa8(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x8(%rbp),%rax
movslq -0x50(%rbp),%rcx
and    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%ecx
mov    -0xa8(%rbp),%eax
imul   %ecx,%eax
shl    $0x1,%eax
mov    %eax,-0xa0(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0xa4(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    -0xa4(%rbp),%edx
mov    -0xa0(%rbp),%ecx
mov    %eax,%esi
mov    -0x9c(%rbp),%eax
imul   %esi,%edx
add    %edx,%ecx
imul   $0xc,%ecx,%ecx
sub    %ecx,%eax
mov    -0x54(%rbp),%ecx
shl    $0x1,%ecx
imul   -0x54(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x54(%rbp),%ecx
shl    $0x1,%ecx
mov    $0x21,%eax
sub    %ecx,%eax
sub    -0x58(%rbp),%eax
mov    %eax,-0x60(%rbp)
cmpl   $0x0,-0x60(%rbp)
jl     1544 <gen_triple_weight_polynomial+0x434>
imul   $0x3,-0x5c(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0x60(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
jmp    1549 <gen_triple_weight_polynomial+0x439>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    143c <gen_triple_weight_polynomial+0x32c>
jmp    155c <gen_triple_weight_polynomial+0x44c>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1429 <gen_triple_weight_polynomial+0x319>
movl   $0x0,-0x64(%rbp)
cmpl   $0x40,-0x64(%rbp)
jge    162b <gen_triple_weight_polynomial+0x51b>
mov    -0x8(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    %eax,-0x68(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
imul   $0x90,%eax,%eax
mov    %eax,-0xac(%rbp)
mov    -0x68(%rbp),%eax
mov    %eax,-0xb0(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <popcount12@plt>
mov    -0xb0(%rbp),%ecx
mov    %eax,%edx
mov    -0xac(%rbp),%eax
imul   %edx,%ecx
imul   $0x3,%ecx,%ecx
imul   $0xc,%ecx,%ecx
sub    %ecx,%eax
mov    -0x68(%rbp),%ecx
shl    $0x1,%ecx
imul   -0x68(%rbp),%ecx
imul   -0x68(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x6c(%rbp)
imul   $0x3,-0x68(%rbp),%ecx
mov    $0x21,%eax
sub    %ecx,%eax
mov    %eax,-0x70(%rbp)
cmpl   $0x0,-0x70(%rbp)
jl     1618 <gen_triple_weight_polynomial+0x508>
mov    -0x6c(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0x70(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
jmp    161d <gen_triple_weight_polynomial+0x50d>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1571 <gen_triple_weight_polynomial+0x461>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_triple_weight_polynomial>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rsi,0x8(%rsp)
mov    %rdi,0x10(%rsp)
mov    $0x1,%eax
xor    %ecx,%ecx
mov    0x10(%rsp),%r12
jmp    1158 <gen_triple_weight_polynomial+0x48>
cs nopw 0x0(%rax,%rax,1)
mov    0x40(%rsp),%rax
add    $0x1,%rax
mov    0x38(%rsp),%rcx
cmp    $0x40,%rcx
je     128f <gen_triple_weight_polynomial+0x17f>
mov    %rcx,%rdx
add    $0x1,%rcx
mov    %rcx,0x38(%rsp)
mov    %rax,0x40(%rsp)
mov    %rdx,0x50(%rsp)
cmp    $0x3e,%rdx
jbe    118b <gen_triple_weight_polynomial+0x7b>
jmp    1140 <gen_triple_weight_polynomial+0x30>
cs nopw 0x0(%rax,%rax,1)
mov    0x48(%rsp),%rax
cmp    $0x40,%rax
je     1140 <gen_triple_weight_polynomial+0x30>
mov    %rax,%rcx
add    $0x1,%rax
mov    %rax,0x48(%rsp)
mov    %rcx,0x30(%rsp)
cmp    $0x3e,%rcx
ja     1180 <gen_triple_weight_polynomial+0x70>
mov    0x30(%rsp),%r15
jmp    11ba <gen_triple_weight_polynomial+0xaa>
nopl   0x0(%rax)
add    $0x1,%r15
cmp    $0x3f,%r15
jae    1180 <gen_triple_weight_polynomial+0x70>
mov    0x50(%rsp),%rbp
mov    (%r12,%rbp,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%ebx
mov    0x30(%rsp),%r14
mov    (%r12,%r14,4),%edi
call   1030 <popcount12@plt>
mov    %rax,(%rsp)
mov    0x4(%r12,%r15,4),%edi
call   1030 <popcount12@plt>
mov    %eax,0x20(%rsp)
mov    (%r12,%r14,4),%edi
and    (%r12,%rbp,4),%edi
and    0x4(%r12,%r15,4),%edi
call   1030 <popcount12@plt>
mov    %rax,0x18(%rsp)
mov    0x4(%r12,%r15,4),%edi
and    (%r12,%r14,4),%edi
call   1030 <popcount12@plt>
mov    %eax,0x2c(%rsp)
mov    0x4(%r12,%r15,4),%edi
and    (%r12,%rbp,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%r13d
mov    (%r12,%r14,4),%edi
and    (%r12,%rbp,4),%edi
call   1030 <popcount12@plt>
mov    0x20(%rsp),%edi
mov    (%rsp),%rsi
lea    (%rbx,%rsi,1),%edx
add    %edi,%edx
mov    $0x21,%ecx
sub    %edx,%ecx
js     11b0 <gen_triple_weight_polynomial+0xa0>
mov    0x2c(%rsp),%edx
imul   %ebx,%edx
imul   %esi,%r13d
add    %edx,%r13d
imul   %edi,%eax
add    %r13d,%eax
shl    $0x2,%eax
lea    (%rax,%rax,2),%eax
mov    0x18(%rsp),%rdx
lea    (%rdx,%rdx,8),%edx
shl    $0x4,%edx
imul   %esi,%ebx
imul   %edi,%ebx
lea    (%rdx,%rbx,2),%edx
sub    %eax,%edx
lea    (%rdx,%rdx,2),%eax
add    %eax,%eax
mov    %ecx,%ecx
mov    0x8(%rsp),%rdx
add    %eax,(%rdx,%rcx,4)
jmp    11b0 <gen_triple_weight_polynomial+0xa0>
xor    %r15d,%r15d
mov    0x10(%rsp),%r12
jmp    12ae <gen_triple_weight_polynomial+0x19e>
nopl   0x0(%rax)
add    $0x1,%r15
cmp    $0x40,%r15
je     1353 <gen_triple_weight_polynomial+0x243>
test   %r15,%r15
je     12a0 <gen_triple_weight_polynomial+0x190>
xor    %ebp,%ebp
jmp    12c9 <gen_triple_weight_polynomial+0x1b9>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbp
cmp    %rbp,%r15
je     12a0 <gen_triple_weight_polynomial+0x190>
mov    (%r12,%r15,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%r14d
mov    (%r12,%rbp,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%r13d
mov    (%r12,%rbp,4),%edi
and    (%r12,%r15,4),%edi
call   1030 <popcount12@plt>
mov    %rax,(%rsp)
mov    (%r12,%rbp,4),%edi
and    (%r12,%r15,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%ebx
mov    (%r12,%r15,4),%edi
call   1030 <popcount12@plt>
lea    0x0(%r13,%r14,2),%edx
mov    $0x21,%ecx
sub    %edx,%ecx
js     12c0 <gen_triple_weight_polynomial+0x1b0>
lea    (%r14,%r14,1),%edx
imul   %edx,%ebx
imul   %r13d,%eax
add    %ebx,%eax
shl    $0x2,%eax
lea    (%rax,%rax,2),%eax
mov    (%rsp),%rsi
lea    (%rsi,%rsi,8),%esi
shl    $0x4,%esi
imul   %r14d,%edx
imul   %r13d,%edx
add    %esi,%edx
sub    %eax,%edx
lea    (%rdx,%rdx,2),%eax
mov    %ecx,%ecx
mov    0x8(%rsp),%rdx
add    %eax,(%rdx,%rcx,4)
jmp    12c0 <gen_triple_weight_polynomial+0x1b0>
mov    $0x1,%eax
mov    %rax,0x18(%rsp)
xor    %r13d,%r13d
mov    0x10(%rsp),%r12
jmp    1385 <gen_triple_weight_polynomial+0x275>
nopw   0x0(%rax,%rax,1)
addq   $0x1,0x18(%rsp)
mov    0x20(%rsp),%r13
cmp    $0x40,%r13
je     1431 <gen_triple_weight_polynomial+0x321>
lea    0x1(%r13),%rax
mov    %rax,0x20(%rsp)
cmp    $0x3e,%r13
ja     1370 <gen_triple_weight_polynomial+0x260>
mov    0x18(%rsp),%r15
jmp    13aa <gen_triple_weight_polynomial+0x29a>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r15
cmp    $0x40,%r15
je     1370 <gen_triple_weight_polynomial+0x260>
mov    (%r12,%r13,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%r14d
mov    (%r12,%r15,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%ebp
mov    (%r12,%r15,4),%edi
and    (%r12,%r13,4),%edi
call   1030 <popcount12@plt>
mov    %rax,(%rsp)
mov    (%r12,%r15,4),%edi
and    (%r12,%r13,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%ebx
mov    (%r12,%r13,4),%edi
call   1030 <popcount12@plt>
lea    0x0(%rbp,%r14,2),%edx
mov    $0x21,%ecx
sub    %edx,%ecx
js     13a0 <gen_triple_weight_polynomial+0x290>
lea    (%r14,%r14,1),%edx
imul   %edx,%ebx
imul   %ebp,%eax
add    %ebx,%eax
shl    $0x2,%eax
lea    (%rax,%rax,2),%eax
mov    (%rsp),%rsi
lea    (%rsi,%rsi,8),%esi
shl    $0x4,%esi
imul   %r14d,%edx
imul   %ebp,%edx
add    %esi,%edx
sub    %eax,%edx
lea    (%rdx,%rdx,2),%eax
mov    %ecx,%ecx
mov    0x8(%rsp),%rdx
add    %eax,(%rdx,%rcx,4)
jmp    13a0 <gen_triple_weight_polynomial+0x290>
xor    %ebp,%ebp
mov    0x10(%rsp),%rbx
jmp    144a <gen_triple_weight_polynomial+0x33a>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbp
cmp    $0x40,%rbp
je     149f <gen_triple_weight_polynomial+0x38f>
mov    (%rbx,%rbp,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%r15d
mov    (%rbx,%rbp,4),%edi
call   1030 <popcount12@plt>
mov    %eax,%r14d
mov    (%rbx,%rbp,4),%edi
call   1030 <popcount12@plt>
lea    (%r15,%r15,2),%edx
mov    $0x21,%ecx
sub    %edx,%ecx
js     1440 <gen_triple_weight_polynomial+0x330>
shl    $0x2,%eax
lea    (%rax,%rax,8),%eax
lea    (%r14,%r14,8),%edx
shl    $0x4,%edx
mov    %r15d,%esi
imul   %r15d,%esi
add    %esi,%esi
sub    %eax,%esi
mov    %ecx,%eax
imul   %r15d,%esi
add    %edx,%esi
mov    0x8(%rsp),%rcx
add    %esi,(%rcx,%rax,4)
jmp    1440 <gen_triple_weight_polynomial+0x330>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @gen_triple_weight_polynomial(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
store i32 0, i32* %5
br label %29
29: ; preds = %161, %2
%30 = load i32, i32* %5
%31 = icmp slt i32 %30, 64
br i1 %31, label %32, label %164
32: ; preds = %29
%33 = load i32, i32* %5
%34 = add nsw i32 %33, 1
store i32 %34, i32* %6
br label %35
35: ; preds = %157, %32
%36 = load i32, i32* %6
%37 = icmp slt i32 %36, 64
br i1 %37, label %38, label %160
38: ; preds = %35
%39 = load i32, i32* %6
%40 = add nsw i32 %39, 1
store i32 %40, i32* %7
br label %41
41: ; preds = %153, %38
%42 = load i32, i32* %7
%43 = icmp slt i32 %42, 64
br i1 %43, label %44, label %156
44: ; preds = %41
%45 = load i32*, i32** %3
%46 = load i32, i32* %5
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, i32* %45, i64 %47
%49 = load i32, i32* %48
%50 = call i32 @popcount12(i32 %49)
store i32 %50, i32* %8
%51 = load i32*, i32** %3
%52 = load i32, i32* %6
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, i32* %51, i64 %53
%55 = load i32, i32* %54
%56 = call i32 @popcount12(i32 %55)
store i32 %56, i32* %9
%57 = load i32*, i32** %3
%58 = load i32, i32* %7
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, i32* %57, i64 %59
%61 = load i32, i32* %60
%62 = call i32 @popcount12(i32 %61)
store i32 %62, i32* %10
%63 = load i32*, i32** %3
%64 = load i32, i32* %5
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, i32* %63, i64 %65
%67 = load i32, i32* %66
%68 = load i32*, i32** %3
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, i32* %68, i64 %70
%72 = load i32, i32* %71
%73 = and i32 %67, %72
%74 = load i32*, i32** %3
%75 = load i32, i32* %7
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, i32* %74, i64 %76
%78 = load i32, i32* %77
%79 = and i32 %73, %78
%80 = call i32 @popcount12(i32 %79)
%81 = mul nsw i32 144, %80
%82 = load i32, i32* %8
%83 = load i32*, i32** %3
%84 = load i32, i32* %6
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, i32* %83, i64 %85
%87 = load i32, i32* %86
%88 = load i32*, i32** %3
%89 = load i32, i32* %7
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, i32* %88, i64 %90
%92 = load i32, i32* %91
%93 = and i32 %87, %92
%94 = call i32 @popcount12(i32 %93)
%95 = mul nsw i32 %82, %94
%96 = load i32, i32* %9
%97 = load i32*, i32** %3
%98 = load i32, i32* %5
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, i32* %97, i64 %99
%101 = load i32, i32* %100
%102 = load i32*, i32** %3
%103 = load i32, i32* %7
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, i32* %102, i64 %104
%106 = load i32, i32* %105
%107 = and i32 %101, %106
%108 = call i32 @popcount12(i32 %107)
%109 = mul nsw i32 %96, %108
%110 = add nsw i32 %95, %109
%111 = load i32, i32* %10
%112 = load i32*, i32** %3
%113 = load i32, i32* %5
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, i32* %112, i64 %114
%116 = load i32, i32* %115
%117 = load i32*, i32** %3
%118 = load i32, i32* %6
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, i32* %117, i64 %119
%121 = load i32, i32* %120
%122 = and i32 %116, %121
%123 = call i32 @popcount12(i32 %122)
%124 = mul nsw i32 %111, %123
%125 = add nsw i32 %110, %124
%126 = mul nsw i32 12, %125
%127 = sub nsw i32 %81, %126
%128 = load i32, i32* %8
%129 = mul nsw i32 2, %128
%130 = load i32, i32* %9
%131 = mul nsw i32 %129, %130
%132 = load i32, i32* %10
%133 = mul nsw i32 %131, %132
%134 = add nsw i32 %127, %133
store i32 %134, i32* %11
%135 = load i32, i32* %8
%136 = sub nsw i32 33, %135
%137 = load i32, i32* %9
%138 = sub nsw i32 %136, %137
%139 = load i32, i32* %10
%140 = sub nsw i32 %138, %139
store i32 %140, i32* %12
%141 = load i32, i32* %12
%142 = icmp sge i32 %141, 0
br i1 %142, label %143, label %152
143: ; preds = %44
%144 = load i32, i32* %11
%145 = mul nsw i32 6, %144
%146 = load i32*, i32** %4
%147 = load i32, i32* %12
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds i32, i32* %146, i64 %148
%150 = load i32, i32* %149
%151 = add nsw i32 %150, %145
store i32 %151, i32* %149
br label %152
152: ; preds = %143, %44
br label %153
153: ; preds = %152
%154 = load i32, i32* %7
%155 = add nsw i32 %154, 1
store i32 %155, i32* %7
br label %41
156: ; preds = %41
br label %157
157: ; preds = %156
%158 = load i32, i32* %6
%159 = add nsw i32 %158, 1
store i32 %159, i32* %6
br label %35
160: ; preds = %35
br label %161
161: ; preds = %160
%162 = load i32, i32* %5
%163 = add nsw i32 %162, 1
store i32 %163, i32* %5
br label %29
164: ; preds = %29
store i32 0, i32* %13
br label %165
165: ; preds = %253, %164
%166 = load i32, i32* %13
%167 = icmp slt i32 %166, 64
br i1 %167, label %168, label %256
168: ; preds = %165
store i32 0, i32* %14
br label %169
169: ; preds = %249, %168
%170 = load i32, i32* %14
%171 = load i32, i32* %13
%172 = icmp slt i32 %170, %171
br i1 %172, label %173, label %252
173: ; preds = %169
%174 = load i32*, i32** %3
%175 = load i32, i32* %13
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds i32, i32* %174, i64 %176
%178 = load i32, i32* %177
%179 = call i32 @popcount12(i32 %178)
store i32 %179, i32* %15
%180 = load i32*, i32** %3
%181 = load i32, i32* %14
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds i32, i32* %180, i64 %182
%184 = load i32, i32* %183
%185 = call i32 @popcount12(i32 %184)
store i32 %185, i32* %16
%186 = load i32*, i32** %3
%187 = load i32, i32* %13
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds i32, i32* %186, i64 %188
%190 = load i32, i32* %189
%191 = load i32*, i32** %3
%192 = load i32, i32* %14
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds i32, i32* %191, i64 %193
%195 = load i32, i32* %194
%196 = and i32 %190, %195
%197 = call i32 @popcount12(i32 %196)
%198 = mul nsw i32 144, %197
%199 = load i32, i32* %15
%200 = load i32*, i32** %3
%201 = load i32, i32* %13
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds i32, i32* %200, i64 %202
%204 = load i32, i32* %203
%205 = load i32*, i32** %3
%206 = load i32, i32* %14
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds i32, i32* %205, i64 %207
%209 = load i32, i32* %208
%210 = and i32 %204, %209
%211 = call i32 @popcount12(i32 %210)
%212 = mul nsw i32 %199, %211
%213 = mul nsw i32 2, %212
%214 = load i32, i32* %16
%215 = load i32*, i32** %3
%216 = load i32, i32* %13
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i32, i32* %215, i64 %217
%219 = load i32, i32* %218
%220 = call i32 @popcount12(i32 %219)
%221 = mul nsw i32 %214, %220
%222 = add nsw i32 %213, %221
%223 = mul nsw i32 12, %222
%224 = sub nsw i32 %198, %223
%225 = load i32, i32* %15
%226 = mul nsw i32 2, %225
%227 = load i32, i32* %15
%228 = mul nsw i32 %226, %227
%229 = load i32, i32* %16
%230 = mul nsw i32 %228, %229
%231 = add nsw i32 %224, %230
store i32 %231, i32* %17
%232 = load i32, i32* %15
%233 = mul nsw i32 2, %232
%234 = sub nsw i32 33, %233
%235 = load i32, i32* %16
%236 = sub nsw i32 %234, %235
store i32 %236, i32* %18
%237 = load i32, i32* %18
%238 = icmp sge i32 %237, 0
br i1 %238, label %239, label %248
239: ; preds = %173
%240 = load i32, i32* %17
%241 = mul nsw i32 3, %240
%242 = load i32*, i32** %4
%243 = load i32, i32* %18
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds i32, i32* %242, i64 %244
%246 = load i32, i32* %245
%247 = add nsw i32 %246, %241
store i32 %247, i32* %245
br label %248
248: ; preds = %239, %173
br label %249
249: ; preds = %248
%250 = load i32, i32* %14
%251 = add nsw i32 %250, 1
store i32 %251, i32* %14
br label %169
252: ; preds = %169
br label %253
253: ; preds = %252
%254 = load i32, i32* %13
%255 = add nsw i32 %254, 1
store i32 %255, i32* %13
br label %165
256: ; preds = %165
store i32 0, i32* %19
br label %257
257: ; preds = %346, %256
%258 = load i32, i32* %19
%259 = icmp slt i32 %258, 64
br i1 %259, label %260, label %349
260: ; preds = %257
%261 = load i32, i32* %19
%262 = add nsw i32 %261, 1
store i32 %262, i32* %20
br label %263
263: ; preds = %342, %260
%264 = load i32, i32* %20
%265 = icmp slt i32 %264, 64
br i1 %265, label %266, label %345
266: ; preds = %263
%267 = load i32*, i32** %3
%268 = load i32, i32* %19
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds i32, i32* %267, i64 %269
%271 = load i32, i32* %270
%272 = call i32 @popcount12(i32 %271)
store i32 %272, i32* %21
%273 = load i32*, i32** %3
%274 = load i32, i32* %20
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds i32, i32* %273, i64 %275
%277 = load i32, i32* %276
%278 = call i32 @popcount12(i32 %277)
store i32 %278, i32* %22
%279 = load i32*, i32** %3
%280 = load i32, i32* %19
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds i32, i32* %279, i64 %281
%283 = load i32, i32* %282
%284 = load i32*, i32** %3
%285 = load i32, i32* %20
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds i32, i32* %284, i64 %286
%288 = load i32, i32* %287
%289 = and i32 %283, %288
%290 = call i32 @popcount12(i32 %289)
%291 = mul nsw i32 144, %290
%292 = load i32, i32* %21
%293 = load i32*, i32** %3
%294 = load i32, i32* %19
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds i32, i32* %293, i64 %295
%297 = load i32, i32* %296
%298 = load i32*, i32** %3
%299 = load i32, i32* %20
%300 = sext i32 %299 to i64
%301 = getelementptr inbounds i32, i32* %298, i64 %300
%302 = load i32, i32* %301
%303 = and i32 %297, %302
%304 = call i32 @popcount12(i32 %303)
%305 = mul nsw i32 %292, %304
%306 = mul nsw i32 2, %305
%307 = load i32, i32* %22
%308 = load i32*, i32** %3
%309 = load i32, i32* %19
%310 = sext i32 %309 to i64
%311 = getelementptr inbounds i32, i32* %308, i64 %310
%312 = load i32, i32* %311
%313 = call i32 @popcount12(i32 %312)
%314 = mul nsw i32 %307, %313
%315 = add nsw i32 %306, %314
%316 = mul nsw i32 12, %315
%317 = sub nsw i32 %291, %316
%318 = load i32, i32* %21
%319 = mul nsw i32 2, %318
%320 = load i32, i32* %21
%321 = mul nsw i32 %319, %320
%322 = load i32, i32* %22
%323 = mul nsw i32 %321, %322
%324 = add nsw i32 %317, %323
store i32 %324, i32* %23
%325 = load i32, i32* %21
%326 = mul nsw i32 2, %325
%327 = sub nsw i32 33, %326
%328 = load i32, i32* %22
%329 = sub nsw i32 %327, %328
store i32 %329, i32* %24
%330 = load i32, i32* %24
%331 = icmp sge i32 %330, 0
br i1 %331, label %332, label %341
332: ; preds = %266
%333 = load i32, i32* %23
%334 = mul nsw i32 3, %333
%335 = load i32*, i32** %4
%336 = load i32, i32* %24
%337 = sext i32 %336 to i64
%338 = getelementptr inbounds i32, i32* %335, i64 %337
%339 = load i32, i32* %338
%340 = add nsw i32 %339, %334
store i32 %340, i32* %338
br label %341
341: ; preds = %332, %266
br label %342
342: ; preds = %341
%343 = load i32, i32* %20
%344 = add nsw i32 %343, 1
store i32 %344, i32* %20
br label %263
345: ; preds = %263
br label %346
346: ; preds = %345
%347 = load i32, i32* %19
%348 = add nsw i32 %347, 1
store i32 %348, i32* %19
br label %257
349: ; preds = %257
store i32 0, i32* %25
br label %350
350: ; preds = %399, %349
%351 = load i32, i32* %25
%352 = icmp slt i32 %351, 64
br i1 %352, label %353, label %402
353: ; preds = %350
%354 = load i32*, i32** %3
%355 = load i32, i32* %25
%356 = sext i32 %355 to i64
%357 = getelementptr inbounds i32, i32* %354, i64 %356
%358 = load i32, i32* %357
%359 = call i32 @popcount12(i32 %358)
store i32 %359, i32* %26
%360 = load i32*, i32** %3
%361 = load i32, i32* %25
%362 = sext i32 %361 to i64
%363 = getelementptr inbounds i32, i32* %360, i64 %362
%364 = load i32, i32* %363
%365 = call i32 @popcount12(i32 %364)
%366 = mul nsw i32 144, %365
%367 = load i32, i32* %26
%368 = load i32*, i32** %3
%369 = load i32, i32* %25
%370 = sext i32 %369 to i64
%371 = getelementptr inbounds i32, i32* %368, i64 %370
%372 = load i32, i32* %371
%373 = call i32 @popcount12(i32 %372)
%374 = mul nsw i32 %367, %373
%375 = mul nsw i32 3, %374
%376 = mul nsw i32 12, %375
%377 = sub nsw i32 %366, %376
%378 = load i32, i32* %26
%379 = mul nsw i32 2, %378
%380 = load i32, i32* %26
%381 = mul nsw i32 %379, %380
%382 = load i32, i32* %26
%383 = mul nsw i32 %381, %382
%384 = add nsw i32 %377, %383
store i32 %384, i32* %27
%385 = load i32, i32* %26
%386 = mul nsw i32 3, %385
%387 = sub nsw i32 33, %386
store i32 %387, i32* %28
%388 = load i32, i32* %28
%389 = icmp sge i32 %388, 0
br i1 %389, label %390, label %398
390: ; preds = %353
%391 = load i32, i32* %27
%392 = load i32*, i32** %4
%393 = load i32, i32* %28
%394 = sext i32 %393 to i64
%395 = getelementptr inbounds i32, i32* %392, i64 %394
%396 = load i32, i32* %395
%397 = add nsw i32 %396, %391
store i32 %397, i32* %395
br label %398
398: ; preds = %390, %353
br label %399
399: ; preds = %398
%400 = load i32, i32* %25
%401 = add nsw i32 %400, 1
store i32 %401, i32* %25
br label %350
402: ; preds = %350
ret void
}

LLVM IR (-O2):
define void @gen_triple_weight_polynomial(i32* nocapture %0, i32* nocapture %1) {
br label %7
3: ; preds = %15, %7
%4 = add nuw nsw i64 %10, 1
%5 = add nuw nsw i64 %9, 1
%6 = icmp eq i64 %11, 64
br i1 %6, label %77, label %7
7: ; preds = %2, %3
%8 = phi i64 [ 0, %2 ], [ %11, %3 ]
%9 = phi i64 [ 1, %2 ], [ %5, %3 ]
%10 = phi i64 [ 2, %2 ], [ %4, %3 ]
%11 = add nuw nsw i64 %8, 1
%12 = icmp ult i64 %8, 63
br i1 %12, label %13, label %3
13: ; preds = %7
%14 = getelementptr inbounds i32, i32* %0, i64 %8
br label %18
15: ; preds = %74, %18
%16 = add nuw nsw i64 %20, 1
%17 = icmp eq i64 %21, 64
br i1 %17, label %3, label %18
18: ; preds = %13, %15
%19 = phi i64 [ %9, %13 ], [ %21, %15 ]
%20 = phi i64 [ %10, %13 ], [ %16, %15 ]
%21 = add nuw nsw i64 %19, 1
%22 = icmp ult i64 %19, 63
br i1 %22, label %23, label %15
23: ; preds = %18
%24 = getelementptr inbounds i32, i32* %0, i64 %19
br label %25
25: ; preds = %23, %74
%26 = phi i64 [ %20, %23 ], [ %75, %74 ]
%27 = load i32, i32* %14
%28 = tail call i32 @popcount12(i32 %27)
%29 = load i32, i32* %24
%30 = tail call i32 @popcount12(i32 %29)
%31 = getelementptr inbounds i32, i32* %0, i64 %26
%32 = load i32, i32* %31
%33 = tail call i32 @popcount12(i32 %32)
%34 = load i32, i32* %14
%35 = load i32, i32* %24
%36 = and i32 %35, %34
%37 = load i32, i32* %31
%38 = and i32 %36, %37
%39 = tail call i32 @popcount12(i32 %38)
%40 = load i32, i32* %24
%41 = load i32, i32* %31
%42 = and i32 %41, %40
%43 = tail call i32 @popcount12(i32 %42)
%44 = load i32, i32* %14
%45 = load i32, i32* %31
%46 = and i32 %45, %44
%47 = tail call i32 @popcount12(i32 %46)
%48 = load i32, i32* %14
%49 = load i32, i32* %24
%50 = and i32 %49, %48
%51 = tail call i32 @popcount12(i32 %50)
%52 = add i32 %28, %30
%53 = add i32 %52, %33
%54 = sub i32 33, %53
%55 = icmp sgt i32 %54, -1
br i1 %55, label %56, label %74
56: ; preds = %25
%57 = mul nsw i32 %43, %28
%58 = mul nsw i32 %47, %30
%59 = add nsw i32 %58, %57
%60 = mul nsw i32 %51, %33
%61 = add nsw i32 %59, %60
%62 = mul i32 %61, -12
%63 = mul nsw i32 %39, 144
%64 = shl nsw i32 %28, 1
%65 = mul nsw i32 %64, %30
%66 = mul nsw i32 %65, %33
%67 = add i32 %63, %66
%68 = add i32 %67, %62
%69 = mul nsw i32 %68, 6
%70 = zext i32 %54 to i64
%71 = getelementptr inbounds i32, i32* %1, i64 %70
%72 = load i32, i32* %71
%73 = add nsw i32 %72, %69
store i32 %73, i32* %71
br label %74
74: ; preds = %56, %25
%75 = add nuw nsw i64 %26, 1
%76 = icmp ult i64 %26, 63
br i1 %76, label %25, label %15
77: ; preds = %3, %82
%78 = phi i64 [ %83, %82 ], [ 0, %3 ]
%79 = icmp eq i64 %78, 0
br i1 %79, label %82, label %80
80: ; preds = %77
%81 = getelementptr inbounds i32, i32* %0, i64 %78
br label %85
82: ; preds = %121, %77
%83 = add nuw nsw i64 %78, 1
%84 = icmp eq i64 %83, 64
br i1 %84, label %127, label %77
85: ; preds = %80, %121
%86 = phi i64 [ 0, %80 ], [ %122, %121 ]
%87 = load i32, i32* %81
%88 = tail call i32 @popcount12(i32 %87)
%89 = getelementptr inbounds i32, i32* %0, i64 %86
%90 = load i32, i32* %89
%91 = tail call i32 @popcount12(i32 %90)
%92 = load i32, i32* %81
%93 = load i32, i32* %89
%94 = and i32 %93, %92
%95 = tail call i32 @popcount12(i32 %94)
%96 = load i32, i32* %81
%97 = load i32, i32* %89
%98 = and i32 %97, %96
%99 = tail call i32 @popcount12(i32 %98)
%100 = load i32, i32* %81
%101 = tail call i32 @popcount12(i32 %100)
%102 = shl i32 %88, 1
%103 = add i32 %102, %91
%104 = sub i32 33, %103
%105 = icmp sgt i32 %104, -1
br i1 %105, label %106, label %121
106: ; preds = %85
%107 = mul i32 %102, %99
%108 = mul nsw i32 %101, %91
%109 = add nsw i32 %108, %107
%110 = mul i32 %109, -12
%111 = mul nsw i32 %95, 144
%112 = mul nsw i32 %102, %88
%113 = mul nsw i32 %112, %91
%114 = add i32 %111, %113
%115 = add i32 %114, %110
%116 = mul nsw i32 %115, 3
%117 = zext i32 %104 to i64
%118 = getelementptr inbounds i32, i32* %1, i64 %117
%119 = load i32, i32* %118
%120 = add nsw i32 %119, %116
store i32 %120, i32* %118
br label %121
121: ; preds = %106, %85
%122 = add nuw nsw i64 %86, 1
%123 = icmp eq i64 %122, %78
br i1 %123, label %82, label %85
124: ; preds = %170, %127
%125 = add nuw nsw i64 %129, 1
%126 = icmp eq i64 %130, 64
br i1 %126, label %174, label %127
127: ; preds = %82, %124
%128 = phi i64 [ %130, %124 ], [ 0, %82 ]
%129 = phi i64 [ %125, %124 ], [ 1, %82 ]
%130 = add nuw nsw i64 %128, 1
%131 = icmp ult i64 %128, 63
br i1 %131, label %132, label %124
132: ; preds = %127
%133 = getelementptr inbounds i32, i32* %0, i64 %128
br label %134
134: ; preds = %132, %170
%135 = phi i64 [ %129, %132 ], [ %171, %170 ]
%136 = load i32, i32* %133
%137 = tail call i32 @popcount12(i32 %136)
%138 = getelementptr inbounds i32, i32* %0, i64 %135
%139 = load i32, i32* %138
%140 = tail call i32 @popcount12(i32 %139)
%141 = load i32, i32* %133
%142 = load i32, i32* %138
%143 = and i32 %142, %141
%144 = tail call i32 @popcount12(i32 %143)
%145 = load i32, i32* %133
%146 = load i32, i32* %138
%147 = and i32 %146, %145
%148 = tail call i32 @popcount12(i32 %147)
%149 = load i32, i32* %133
%150 = tail call i32 @popcount12(i32 %149)
%151 = shl i32 %137, 1
%152 = add i32 %151, %140
%153 = sub i32 33, %152
%154 = icmp sgt i32 %153, -1
br i1 %154, label %155, label %170
155: ; preds = %134
%156 = mul i32 %151, %148
%157 = mul nsw i32 %150, %140
%158 = add nsw i32 %157, %156
%159 = mul i32 %158, -12
%160 = mul nsw i32 %144, 144
%161 = mul nsw i32 %151, %137
%162 = mul nsw i32 %161, %140
%163 = add i32 %160, %162
%164 = add i32 %163, %159
%165 = mul nsw i32 %164, 3
%166 = zext i32 %153 to i64
%167 = getelementptr inbounds i32, i32* %1, i64 %166
%168 = load i32, i32* %167
%169 = add nsw i32 %168, %165
store i32 %169, i32* %167
br label %170
170: ; preds = %155, %134
%171 = add nuw nsw i64 %135, 1
%172 = icmp eq i64 %171, 64
br i1 %172, label %124, label %134
173: ; preds = %198
ret void
174: ; preds = %124, %198
%175 = phi i64 [ %199, %198 ], [ 0, %124 ]
%176 = getelementptr inbounds i32, i32* %0, i64 %175
%177 = load i32, i32* %176
%178 = tail call i32 @popcount12(i32 %177)
%179 = load i32, i32* %176
%180 = tail call i32 @popcount12(i32 %179)
%181 = load i32, i32* %176
%182 = tail call i32 @popcount12(i32 %181)
%183 = mul i32 %178, -3
%184 = add i32 %183, 33
%185 = icmp sgt i32 %184, -1
br i1 %185, label %186, label %198
186: ; preds = %174
%187 = mul i32 %182, -36
%188 = mul nsw i32 %180, 144
%189 = shl i32 %178, 1
%190 = mul i32 %189, %178
%191 = zext i32 %184 to i64
%192 = getelementptr inbounds i32, i32* %1, i64 %191
%193 = load i32, i32* %192
%194 = add i32 %187, %190
%195 = mul i32 %194, %178
%196 = add i32 %195, %188
%197 = add i32 %196, %193
store i32 %197, i32* %192
br label %198
198: ; preds = %186, %174
%199 = add nuw nsw i64 %175, 1
%200 = icmp eq i64 %199, 64
br i1 %200, label %173, label %174
}