user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<gen_triple_weight_polynomial>:
  endbr64
  push   %r15
  lea    0x4(%rdi),%rax
  lea    0x8(%rdi),%r15
  push   %r14
  mov    %r15,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x48(%rsp)
  mov    %rsi,0x20(%rsp)
  movq   $0x2,0x40(%rsp)
  mov    %rax,0x38(%rsp)
  nopl   (%rax)
L47:
  mov    0x40(%rsp),%rax
  mov    %r14,%r13
  mov    %eax,0x2c(%rsp)
  mov    %rax,0x30(%rsp)
  cmp    $0x40,%rax
  je     L30
  nopl   0x0(%rax,%rax,1)
L2:
  mov    0x38(%rsp),%rcx
  mov    $0x3f,%eax
  sub    0x2c(%rsp),%eax
  mov    %r13,%rbp
  add    0x30(%rsp),%rax
  lea    (%rcx,%rax,4),%rax
  mov    %rax,0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L112:
  mov    -0x8(%r14),%edi
  call   <popcount12@plt>
  mov    -0x4(%r13),%edi
  mov    %eax,0x8(%rsp)
  call   <popcount12@plt>
  mov    0x0(%rbp),%edi
  mov    %eax,(%rsp)
  call   <popcount12@plt>
  mov    -0x8(%r14),%edi
  and    -0x4(%r13),%edi
  and    0x0(%rbp),%edi
  mov    %eax,%r15d
  call   <popcount12@plt>
  mov    -0x4(%r13),%edi
  and    0x0(%rbp),%edi
  mov    %eax,0x10(%rsp)
  call   <popcount12@plt>
  mov    -0x8(%r14),%edi
  and    0x0(%rbp),%edi
  mov    %eax,%ebx
  call   <popcount12@plt>
  mov    -0x8(%r14),%edi
  and    -0x4(%r13),%edi
  mov    %eax,%r12d
  call   <popcount12@plt>
  mov    0x8(%rsp),%edx
  mov    (%rsp),%esi
  mov    %eax,%edi
  mov    $0x21,%eax
  sub    %edx,%eax
  sub    %esi,%eax
  sub    %r15d,%eax
  js     L63
  imul   %edx,%ebx
  mov    0x10(%rsp),%r8d
  mov    0x20(%rsp),%rcx
  cltq
  imul   %esi,%r12d
  imul   %r15d,%edi
  imul   %esi,%edx
  add    %r12d,%ebx
  add    %edi,%ebx
  imul   %r15d,%edx
  lea    0x0(,%rbx,4),%edi
  sub    %edi,%ebx
  lea    (%r8,%r8,8),%edi
  shl    $0x4,%edi
  lea    (%rdi,%rbx,4),%edi
  lea    (%rdi,%rdx,2),%edx
  lea    (%rdx,%rdx,2),%edx
  add    %edx,%edx
  add    %edx,(%rcx,%rax,4)
L63:
  add    $0x4,%rbp
  cmp    0x18(%rsp),%rbp
  jne    L112
  addl   $0x1,0x2c(%rsp)
  mov    0x2c(%rsp),%eax
  add    $0x4,%r13
  addq   $0x1,0x30(%rsp)
  cmp    $0x40,%eax
  jne    L2
L30:
  addq   $0x1,0x40(%rsp)
  mov    0x40(%rsp),%rax
  add    $0x4,%r14
  cmp    $0x41,%rax
  jne    L47
  mov    0x48(%rsp),%rax
  mov    $0x1,%r14d
  mov    0x38(%rsp),%rbp
  mov    %r14d,(%rsp)
  mov    %rax,0x10(%rsp)
  nopw   0x0(%rax,%rax,1)
L67:
  mov    0x48(%rsp),%rbx
  nopl   (%rax)
L89:
  mov    0x0(%rbp),%edi
  call   <popcount12@plt>
  mov    (%rbx),%edi
  mov    %eax,%r14d
  call   <popcount12@plt>
  mov    0x0(%rbp),%edi
  and    (%rbx),%edi
  mov    %eax,%r15d
  call   <popcount12@plt>
  mov    0x0(%rbp),%edi
  and    (%rbx),%edi
  mov    %eax,%r13d
  call   <popcount12@plt>
  mov    0x0(%rbp),%edi
  mov    %eax,%r12d
  call   <popcount12@plt>
  lea    (%r14,%r14,1),%edi
  mov    $0x21,%ecx
  sub    %edi,%ecx
  sub    %r15d,%ecx
  js     L88
  imul   %r14d,%r12d
  mov    %r14d,%edx
  mov    0x20(%rsp),%rsi
  movslq %ecx,%rcx
  imul   %r15d,%eax
  imul   %r14d,%edx
  lea    (%rax,%r12,2),%eax
  imul   %r15d,%edx
  lea    0x0(,%rax,4),%edi
  sub    %edi,%eax
  lea    0x0(%r13,%r13,8),%edi
  shl    $0x4,%edi
  lea    (%rdi,%rax,4),%eax
  lea    (%rax,%rdx,2),%eax
  lea    (%rax,%rax,2),%eax
  add    %eax,(%rsi,%rcx,4)
L88:
  add    $0x4,%rbx
  cmp    %rbp,%rbx
  jne    L89
  addl   $0x1,(%rsp)
  mov    (%rsp),%eax
  lea    0x4(%rbx),%rbp
  cmp    $0x40,%eax
  jne    L67
  mov    0x48(%rsp),%rax
  mov    0x38(%rsp),%r15
  mov    $0x1,%r14d
  mov    %r14,0x8(%rsp)
  add    $0x100,%rax
  mov    %r15,%r14
  mov    %rax,(%rsp)
  xchg   %ax,%ax
L96:
  mov    %r14,%rbp
  nopl   0x0(%rax,%rax,1)
L114:
  mov    -0x4(%r14),%edi
  call   <popcount12@plt>
  mov    0x0(%rbp),%edi
  mov    %eax,%ebx
  call   <popcount12@plt>
  mov    -0x4(%r14),%edi
  and    0x0(%rbp),%edi
  mov    %eax,%r13d
  call   <popcount12@plt>
  mov    -0x4(%r14),%edi
  and    0x0(%rbp),%edi
  mov    %eax,%r12d
  call   <popcount12@plt>
  mov    -0x4(%r14),%edi
  mov    %eax,%r15d
  call   <popcount12@plt>
  lea    (%rbx,%rbx,1),%edi
  mov    $0x21,%edx
  sub    %edi,%edx
  sub    %r13d,%edx
  js     L81
  imul   %ebx,%r15d
  mov    0x20(%rsp),%rcx
  movslq %edx,%rdx
  imul   %r13d,%eax
  imul   %ebx,%ebx
  lea    (%rax,%r15,2),%eax
  imul   %r13d,%ebx
  lea    0x0(,%rax,4),%edi
  sub    %edi,%eax
  lea    (%r12,%r12,8),%edi
  shl    $0x4,%edi
  lea    (%rdi,%rax,4),%eax
  lea    (%rax,%rbx,2),%eax
  lea    (%rax,%rax,2),%eax
  add    %eax,(%rcx,%rdx,4)
L81:
  add    $0x4,%rbp
  cmp    %rbp,(%rsp)
  jne    L114
  addq   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%rax
  add    $0x4,%r14
  cmp    $0x40,%rax
  jne    L96
  mov    0x10(%rsp),%rbp
  mov    0x20(%rsp),%r12
  mov    (%rsp),%r13
L20:
  mov    0x0(%rbp),%edi
  call   <popcount12@plt>
  mov    0x0(%rbp),%edi
  mov    %eax,%ebx
  call   <popcount12@plt>
  mov    0x0(%rbp),%edi
  mov    %eax,%r14d
  call   <popcount12@plt>
  lea    0x0(,%rbx,4),%ecx
  mov    %ebx,%edx
  sub    %ecx,%edx
  add    $0x21,%edx
  js     L111
  imul   %ebx,%eax
  lea    (%r14,%r14,8),%ecx
  movslq %edx,%rdx
  shl    $0x4,%ecx
  imul   $0xffffffdc,%eax,%eax
  add    %ecx,%eax
  mov    %ebx,%ecx
  imul   %ebx,%ecx
  imul   %ebx,%ecx
  lea    (%rax,%rcx,2),%eax
  add    %eax,(%r12,%rdx,4)
L111:
  add    $0x4,%rbp
  cmp    %r13,%rbp
  jne    L20
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  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;
    }
  }
}
```