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

```asm
<matmac>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rdx,0x10(%rsp)
  mov    %ecx,0x1c(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  test   %ecx,%ecx
  jle    L52
  lea    -0x1(%rcx),%eax
  movslq %ecx,%r11
  mov    %rsi,%r13
  xor    %r15d,%r15d
  mov    %eax,%r14d
  mov    %rax,0x20(%rsp)
  lea    0x4(%rdi),%rax
  shl    $0x2,%r11
  shr    $0x3,%r14d
  mov    %rax,0x28(%rsp)
  lea    0x30(%rsp),%r9
  lea    0x50(%rsp),%r8
  movl   $0x0,0x18(%rsp)
  add    $0x1,%r14d
  shl    $0x3,%r14
L41:
  mov    0x10(%rsp),%rbx
  movslq %r15d,%rax
  lea    0x0(,%rax,4),%r12
  add    0x20(%rsp),%rax
  lea    (%rbx,%r12,1),%rbp
  mov    0x28(%rsp),%rbx
  add    0x8(%rsp),%r12
  lea    (%rbx,%rax,4),%r10
  xor    %ebx,%ebx
L40:
  pxor   %xmm0,%xmm0
  lea    0x0(%r13,%rbx,4),%rdi
  mov    %r12,%rsi
  movaps %xmm0,(%r9)
  movaps %xmm0,0x10(%r9)
  nopl   (%rax)
L23:
  movss  (%rsi),%xmm4
  mov    %r9,%rcx
  mov    %r9,%rax
  mov    %rdi,%rdx
L9:
  movss  (%rdx),%xmm3
  movss  0x4(%rdx),%xmm2
  add    $0x10,%rax
  add    $0x10,%rdx
  movss  -0x8(%rdx),%xmm1
  movss  -0x4(%rdx),%xmm0
  mulss  %xmm4,%xmm3
  mulss  %xmm4,%xmm2
  addss  -0x10(%rax),%xmm3
  mulss  %xmm4,%xmm1
  addss  -0xc(%rax),%xmm2
  mulss  %xmm4,%xmm0
  addss  -0x8(%rax),%xmm1
  addss  -0x4(%rax),%xmm0
  movss  %xmm3,-0x10(%rax)
  movss  %xmm2,-0xc(%rax)
  movss  %xmm1,-0x8(%rax)
  movss  %xmm0,-0x4(%rax)
  cmp    %rax,%r8
  jne    L9
  add    $0x4,%rsi
  add    %r11,%rdi
  cmp    %rsi,%r10
  jne    L23
  mov    %rbp,%rax
  nopl   0x0(%rax)
L2:
  movss  (%rax),%xmm0
  addss  (%rcx),%xmm0
  add    $0x4,%rcx
  add    $0x4,%rax
  movss  %xmm0,-0x4(%rax)
  cmp    %rcx,%r8
  jne    L2
  add    $0x8,%rbx
  add    $0x20,%rbp
  cmp    %r14,%rbx
  jne    L40
  addl   $0x1,0x18(%rsp)
  mov    0x1c(%rsp),%ebx
  mov    0x18(%rsp),%eax
  add    %ebx,%r15d
  cmp    %eax,%ebx
  jne    L41
L52:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L59
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L59:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void matmac(volatile float *restrict aa, volatile float *restrict bb, volatile float *restrict cc, int NN) {
  int i = 0;
  for (i = 0; i < NN; i++) {
    int j0, j1;
    for (j0 = 0; j0 < NN; j0 += 8) {
      int x;
      float tot[8];
      for (j1 = 0; j1 < 8; j1++) {
        tot[j1] = 0.0;
      }
      for (x = 0; x < NN; x++) {
        float tmp = *(aa + (i * NN) + x);
        for (j1 = 0; j1 < 8; j1 += 4) {
          float tmp2[4];
          tmp2[0] = *(bb + (x * NN) + j0 + j1 + 0);
          tmp2[1] = *(bb + (x * NN) + j0 + j1 + 1);
          tmp2[2] = *(bb + (x * NN) + j0 + j1 + 2);
          tmp2[3] = *(bb + (x * NN) + j0 + j1 + 3);
          tot[j1 + 0] += tmp * tmp2[0];
          tot[j1 + 1] += tmp * tmp2[1];
          tot[j1 + 2] += tmp * tmp2[2];
          tot[j1 + 3] += tmp * tmp2[3];
        }
      }
      for (j1 = 0; j1 < 8; j1 += 1) {
        *(cc + (i * NN) + j0 + j1) += tot[j1];
      }
    }
  }
  return;
}
```