user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<rec_matmul>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x3c(%rbp)
  mov    %r8d,-0x40(%rbp)
  mov    %r9d,-0x44(%rbp)
  mov    -0x3c(%rbp),%edx
  mov    -0x40(%rbp),%eax
  add    %eax,%edx
  mov    -0x44(%rbp),%eax
  add    %edx,%eax
  cmp    $0x40,%eax
  jg     L168
  cmpl   $0x0,0x18(%rbp)
  je     L167
  movl   $0x0,-0x20(%rbp)
  jmp    L129
L118:
  movl   $0x0,-0x18(%rbp)
  jmp    L153
L100:
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x14(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L229
L61:
  mov    -0x20(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x1c(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x14(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  addl   $0x1,-0x1c(%rbp)
L229:
  mov    -0x1c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L61
  mov    -0x20(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x20(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  addss  -0x14(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x18(%rbp)
L153:
  mov    -0x18(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L100
  addl   $0x1,-0x20(%rbp)
L129:
  mov    -0x20(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L118
  jmp    L225
L167:
  movl   $0x0,-0x20(%rbp)
  jmp    L219
L17:
  movl   $0x0,-0x18(%rbp)
  jmp    L120
L7:
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L184
L2:
  mov    -0x20(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x1c(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x10(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  addl   $0x1,-0x1c(%rbp)
L184:
  mov    -0x1c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L2
  mov    -0x20(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  -0x10(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x18(%rbp)
L120:
  mov    -0x18(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L7
  addl   $0x1,-0x20(%rbp)
L219:
  mov    -0x20(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L17
  jmp    L225
L168:
  mov    -0x3c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L64
  mov    -0x40(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L64
  mov    -0x3c(%rbp),%eax
  sar    %eax
  mov    %eax,-0xc(%rbp)
  mov    -0x44(%rbp),%r9d
  mov    -0x40(%rbp),%r8d
  mov    -0xc(%rbp),%ecx
  mov    -0x38(%rbp),%rdx
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    0x18(%rbp),%edi
  push   %rdi
  mov    0x10(%rbp),%edi
  push   %rdi
  mov    %rax,%rdi
  call   <rec_matmul>
  add    $0x10,%rsp
  mov    -0x3c(%rbp),%eax
  sub    -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  imul   0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  lea    (%rcx,%rax,1),%rsi
  mov    -0xc(%rbp),%eax
  imul   0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  lea    (%rcx,%rax,1),%rdi
  mov    -0x44(%rbp),%r9d
  mov    -0x40(%rbp),%r8d
  mov    -0x30(%rbp),%rax
  mov    0x18(%rbp),%ecx
  push   %rcx
  mov    0x10(%rbp),%ecx
  push   %rcx
  mov    %edx,%ecx
  mov    %rsi,%rdx
  mov    %rax,%rsi
  call   <rec_matmul>
  add    $0x10,%rsp
  jmp    L225
L64:
  mov    -0x40(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L42
  mov    -0x40(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L42
  mov    -0x40(%rbp),%eax
  sar    %eax
  mov    %eax,-0x8(%rbp)
  mov    -0x44(%rbp),%r9d
  mov    -0x8(%rbp),%r8d
  mov    -0x3c(%rbp),%ecx
  mov    -0x38(%rbp),%rdx
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    0x18(%rbp),%edi
  push   %rdi
  mov    0x10(%rbp),%edi
  push   %rdi
  mov    %rax,%rdi
  call   <rec_matmul>
  add    $0x10,%rsp
  mov    -0x40(%rbp),%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,%r8d
  mov    -0x8(%rbp),%eax
  imul   0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x44(%rbp),%r9d
  mov    -0x3c(%rbp),%edx
  mov    -0x38(%rbp),%rax
  push   $0x1
  mov    0x10(%rbp),%ecx
  push   %rcx
  mov    %edx,%ecx
  mov    %rax,%rdx
  call   <rec_matmul>
  add    $0x10,%rsp
  jmp    L225
L42:
  mov    -0x44(%rbp),%eax
  sar    %eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%r9d
  mov    -0x40(%rbp),%r8d
  mov    -0x3c(%rbp),%ecx
  mov    -0x38(%rbp),%rdx
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    0x18(%rbp),%edi
  push   %rdi
  mov    0x10(%rbp),%edi
  push   %rdi
  mov    %rax,%rdi
  call   <rec_matmul>
  add    $0x10,%rsp
  mov    -0x44(%rbp),%eax
  sub    -0x4(%rbp),%eax
  mov    %eax,%r9d
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x40(%rbp),%r8d
  mov    -0x3c(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    0x18(%rbp),%ecx
  push   %rcx
  mov    0x10(%rbp),%ecx
  push   %rcx
  mov    %edx,%ecx
  mov    %rdi,%rdx
  mov    %rax,%rdi
  call   <rec_matmul>
  add    $0x10,%rsp
  jmp    L225
L225:
  nop
  leave
  ret
```

assistant: ```c
void rec_matmul(float *A, float *B, float *C, int m, int n, int p, int ld, int add) {
  if ((m + n + p) <= 64) {
    int i, j, k;
    if (add) {
      for (i = 0; i < m; i++)
        for (k = 0; k < p; k++) {
          float c = 0.0;
          for (j = 0; j < n; j++)
            c += A[i * ld + j] * B[j * ld + k];
          C[i * ld + k] += c;
        }
    } else {
      for (i = 0; i < m; i++)
        for (k = 0; k < p; k++) {
          float c = 0.0;
          for (j = 0; j < n; j++)
            c += A[i * ld + j] * B[j * ld + k];
          C[i * ld + k] = c;
        }
    }
  } else if (m >= n && n >= p) {
    int m1 = m >> 1;
    rec_matmul(A, B, C, m1, n, p, ld, add);
    rec_matmul(A + m1 * ld, B, C + m1 * ld, m - m1, n, p, ld, add);
  } else if (n >= m && n >= p) {
    int n1 = n >> 1;
    rec_matmul(A, B, C, m, n1, p, ld, add);
    rec_matmul(A + n1, B + n1 * ld, C, m, n - n1, p, ld, 1);
  } else {
    int p1 = p >> 1;
    rec_matmul(A, B, C, m, n, p1, ld, add);
    rec_matmul(A, B + p1, C + p1, m, n, p - p1, ld, add);
  }
}
```