user: 请将以下的汇编代码转换成C语言代码:

```asm
<gen_triple_weight_polynomial>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x70,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L159
L47:
  mov    -0x70(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x6c(%rbp)
  jmp    L74
L175:
  mov    -0x6c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x68(%rbp)
  jmp    L70
L38:
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,-0x24(%rbp)
  mov    -0x6c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,-0x20(%rbp)
  mov    -0x68(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,-0x1c(%rbp)
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x6c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  and    %eax,%edx
  mov    -0x68(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  and    %edx,%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%r12d
  mov    -0x6c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x68(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  and    %edx,%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  imul   -0x24(%rbp),%eax
  mov    %eax,%ebx
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x68(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  and    %edx,%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  imul   -0x20(%rbp),%eax
  add    %eax,%ebx
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x6c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  and    %edx,%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  imul   -0x1c(%rbp),%eax
  lea    (%rbx,%rax,1),%edx
  mov    %edx,%eax
  shl    $0x2,%edx
  sub    %edx,%eax
  shl    $0x2,%eax
  lea    (%r12,%rax,1),%edx
  mov    -0x24(%rbp),%eax
  imul   -0x20(%rbp),%eax
  imul   -0x1c(%rbp),%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0x18(%rbp)
  mov    $0x21,%eax
  sub    -0x24(%rbp),%eax
  sub    -0x20(%rbp),%eax
  sub    -0x1c(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  js     L94
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%esi
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  lea    (%rcx,%rsi,1),%edx
  mov    %edx,(%rax)
L94:
  addl   $0x1,-0x68(%rbp)
L70:
  cmpl   $0x3f,-0x68(%rbp)
  jle    L38
  addl   $0x1,-0x6c(%rbp)
L74:
  cmpl   $0x3f,-0x6c(%rbp)
  jle    L175
  addl   $0x1,-0x70(%rbp)
L159:
  cmpl   $0x3f,-0x70(%rbp)
  jle    L47
  movl   $0x0,-0x64(%rbp)
  jmp    L14
L40:
  movl   $0x0,-0x60(%rbp)
  jmp    L50
L153:
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,-0x34(%rbp)
  mov    -0x60(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,-0x30(%rbp)
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x60(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  and    %edx,%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%r12d
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x60(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  and    %edx,%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  imul   -0x34(%rbp),%eax
  lea    (%rax,%rax,1),%ebx
  mov    -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  imul   -0x30(%rbp),%eax
  lea    (%rbx,%rax,1),%edx
  mov    %edx,%eax
  shl    $0x2,%edx
  sub    %edx,%eax
  shl    $0x2,%eax
  lea    (%r12,%rax,1),%edx
  mov    -0x34(%rbp),%eax
  imul   %eax,%eax
  imul   -0x30(%rbp),%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x34(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    $0x21,%eax
  sub    %edx,%eax
  sub    -0x30(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  cmpl   $0x0,-0x28(%rbp)
  js     L165
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x2c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x80(%rbp),%rax
  add    %rsi,%rax
  add    %ecx,%edx
  mov    %edx,(%rax)
L165:
  addl   $0x1,-0x60(%rbp)
L50:
  mov    -0x60(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L153
  addl   $0x1,-0x64(%rbp)
L14:
  cmpl   $0x3f,-0x64(%rbp)
  jle    L40
  movl   $0x0,-0x5c(%rbp)
  jmp    L166
L27:
  mov    -0x5c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x58(%rbp)
  jmp    L118
L174:
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,-0x44(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,-0x40(%rbp)
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  and    %edx,%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%r12d
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  and    %edx,%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  imul   -0x44(%rbp),%eax
  lea    (%rax,%rax,1),%ebx
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  imul   -0x40(%rbp),%eax
  lea    (%rbx,%rax,1),%edx
  mov    %edx,%eax
  shl    $0x2,%edx
  sub    %edx,%eax
  shl    $0x2,%eax
  lea    (%r12,%rax,1),%edx
  mov    -0x44(%rbp),%eax
  imul   %eax,%eax
  imul   -0x40(%rbp),%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x44(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    $0x21,%eax
  sub    %edx,%eax
  sub    -0x40(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  js     L142
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x80(%rbp),%rax
  add    %rsi,%rax
  add    %ecx,%edx
  mov    %edx,(%rax)
L142:
  addl   $0x1,-0x58(%rbp)
L118:
  cmpl   $0x3f,-0x58(%rbp)
  jle    L174
  addl   $0x1,-0x5c(%rbp)
L166:
  cmpl   $0x3f,-0x5c(%rbp)
  jle    L27
  movl   $0x0,-0x54(%rbp)
  jmp    L97
L151:
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,-0x50(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  shl    $0x4,%eax
  mov    %eax,%ebx
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <popcount12@plt>
  imul   -0x50(%rbp),%eax
  imul   $0xffffffdc,%eax,%eax
  lea    (%rbx,%rax,1),%edx
  mov    -0x50(%rbp),%eax
  imul   %eax,%eax
  imul   -0x50(%rbp),%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x50(%rbp),%eax
  mov    %eax,%ecx
  lea    0x0(,%rax,4),%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  add    $0x21,%eax
  mov    %eax,-0x48(%rbp)
  cmpl   $0x0,-0x48(%rbp)
  js     L43
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    -0x4c(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
L43:
  addl   $0x1,-0x54(%rbp)
L97:
  cmpl   $0x3f,-0x54(%rbp)
  jle    L151
  nop
  nop
  add    $0x70,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

assistant: ```c
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;
    }
  }
}
```