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

```asm
<srecmult>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %r9d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    0xe0(%rsp),%eax
  mov    %rdi,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    0xe8(%rsp),%r14d
  mov    %eax,(%rsp)
  lea    (%rcx,%r8,1),%eax
  mov    0xf0(%rsp),%r15d
  add    %r9d,%eax
  mov    %rdx,0x18(%rsp)
  mov    %ecx,0x20(%rsp)
  cmp    $0xc0,%eax
  jg     L53
  test   %ecx,%ecx
  jle    L36
  lea    -0x1(%r8),%eax
  movslq %r14d,%rsi
  xor    %r12d,%r12d
  xor    %r14d,%r14d
  mov    %rax,0x28(%rsp)
  lea    0x8(%rdi),%rax
  shl    $0x3,%rsi
  xor    %ebp,%ebp
  mov    %rax,0x30(%rsp)
  movslq %r9d,%r9
  pxor   %xmm2,%xmm2
  nopw   0x0(%rax,%rax,1)
L51:
  test   %r13d,%r13d
  jle    L3
  mov    0x8(%rsp),%rbx
  mov    0x30(%rsp),%rdi
  movslq %r14d,%rax
  mov    0x10(%rsp),%r10
  lea    (%rbx,%rax,8),%rbx
  add    0x28(%rsp),%rax
  lea    (%rdi,%rax,8),%rcx
  mov    0x18(%rsp),%rdi
  movslq %r12d,%rax
  lea    (%rdi,%rax,8),%r11
  xor    %edi,%edi
  nopw   0x0(%rax,%rax,1)
L12:
  test   %r8d,%r8d
  jle    L59
  mov    %r10,%rdx
  mov    %rbx,%rax
  movapd %xmm2,%xmm1
  nopw   0x0(%rax,%rax,1)
L28:
  movsd  (%rax),%xmm0
  mulsd  (%rdx),%xmm0
  add    $0x8,%rax
  add    %rsi,%rdx
  addsd  %xmm0,%xmm1
  cmp    %rax,%rcx
  jne    L28
L68:
  movsd  %xmm1,(%r11,%rdi,8)
  add    $0x1,%rdi
  add    $0x8,%r10
  cmp    %r9,%rdi
  jne    L12
L3:
  add    $0x1,%ebp
  add    %r15d,%r12d
  add    (%rsp),%r14d
  cmp    %ebp,0x20(%rsp)
  jne    L51
L36:
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L59:
  movapd %xmm2,%xmm1
  jmp    L68
L53:
  mov    0x20(%rsp),%eax
  mov    (%rsp),%edx
  mov    %r8d,%ebx
  mov    %r9d,%ebp
  shr    $0x1f,%ebx
  mov    0x8(%rsp),%rdi
  shr    $0x1f,%ebp
  mov    %eax,%r12d
  add    %r8d,%ebx
  add    %r9d,%ebp
  shr    $0x1f,%r12d
  sar    %ebx
  add    %eax,%r12d
  movslq %ebx,%rax
  sar    %ebp
  sar    %r12d
  lea    (%rdi,%rax,8),%rcx
  lea    0x0(,%rbp,8),%r13d
  imul   %r12d,%edx
  mov    %rcx,0x70(%rsp)
  mov    %r12d,%r8d
  imul   %r15d,%r8d
  movslq %edx,%rdx
  add    %rdx,%rax
  lea    (%rdi,%rdx,8),%rsi
  movslq %ebp,%rdx
  lea    (%rdi,%rax,8),%rax
  mov    %rsi,0x78(%rsp)
  mov    0x10(%rsp),%rsi
  lea    0x0(,%rdx,8),%rcx
  mov    %rax,0x30(%rsp)
  mov    %ebx,%eax
  mov    0x18(%rsp),%rdi
  imul   %r14d,%eax
  lea    (%rsi,%rcx,1),%r9
  mov    %r9,0x80(%rsp)
  cltq
  lea    (%rsi,%rax,8),%r11
  add    %rdx,%rax
  lea    (%rsi,%rax,8),%r9
  mov    %rcx,%rax
  mov    %r11,0x88(%rsp)
  add    %rdi,%rax
  mov    %r9,0x38(%rsp)
  mov    %rax,0x60(%rsp)
  movslq %r8d,%rax
  add    %rax,%rdx
  lea    (%rdi,%rax,8),%r11
  mov    %r12d,%eax
  imul   %r13d,%eax
  lea    (%rdi,%rdx,8),%r10
  mov    %r11,0x90(%rsp)
  mov    %r10,0x98(%rsp)
  imul   %ebx,%r13d
  mov    %eax,%edi
  mov    %eax,0x44(%rsp)
  call   <malloc@plt>
  mov    0x44(%rsp),%edi
  mov    %rax,0x20(%rsp)
  call   <malloc@plt>
  mov    0x44(%rsp),%edi
  mov    %rax,0x68(%rsp)
  call   <malloc@plt>
  mov    %r12d,%r8d
  imul   %ebx,%r8d
  mov    %rax,0x48(%rsp)
  lea    0x0(,%r8,8),%r11d
  mov    %r11d,%edi
  mov    %r11d,0x28(%rsp)
  call   <malloc@plt>
  mov    %r13d,%edi
  mov    %rax,0x50(%rsp)
  call   <malloc@plt>
  mov    %ebx,%r8d
  mov    %rax,0x58(%rsp)
  push   %rbx
  mov    0x8(%rsp),%ecx
  push   %rcx
  mov    0x60(%rsp),%rdx
  mov    %ecx,%r9d
  mov    0x40(%rsp),%rsi
  mov    0x18(%rsp),%rdi
  mov    %ecx,0x10(%rsp)
  mov    %r12d,%ecx
  call   <madd_stride@plt>
  push   %rbp
  mov    %r14d,%r9d
  mov    %ebp,%r8d
  push   %r14
  mov    0x78(%rsp),%rdx
  mov    %ebx,%ecx
  mov    0x58(%rsp),%rsi
  mov    0x30(%rsp),%rdi
  call   <madd_stride@plt>
  add    $0x18,%rsp
  mov    %ebp,%r9d
  mov    %ebx,%r8d
  push   %rbp
  mov    %r12d,%ecx
  push   %rbp
  push   %rbx
  mov    0x40(%rsp),%rdx
  mov    0x78(%rsp),%rsi
  mov    0x70(%rsp),%rdi
  call   <srecmult>
  mov    0x70(%rsp),%rdi
  add    $0x20,%rsp
  call   <free@plt>
  mov    0x58(%rsp),%rdi
  call   <free@plt>
  mov    0x28(%rsp),%edi
  call   <malloc@plt>
  push   %rbx
  mov    0x8(%rsp),%ecx
  mov    %ebx,%r8d
  mov    %rax,%rdx
  push   %rcx
  mov    0x40(%rsp),%rsi
  mov    %ecx,%r9d
  mov    0x88(%rsp),%rdi
  mov    %ecx,0x10(%rsp)
  mov    %r12d,%ecx
  mov    %rax,0x60(%rsp)
  call   <madd_stride@plt>
  mov    %r15d,(%rsp)
  mov    %ebp,%r9d
  mov    %ebx,%r8d
  push   %r14
  mov    %r12d,%ecx
  push   %rbx
  mov    0xb0(%rsp),%rdx
  mov    0x30(%rsp),%rsi
  mov    0x70(%rsp),%rdi
  call   <srecmult>
  mov    0x70(%rsp),%rdi
  add    $0x20,%rsp
  call   <free@plt>
  mov    %r13d,%edi
  call   <malloc@plt>
  push   %rbp
  mov    %r14d,%r9d
  mov    %ebp,%r8d
  push   %r14
  mov    0x48(%rsp),%rsi
  mov    %ebx,%ecx
  mov    %rax,%rdx
  mov    0x90(%rsp),%rdi
  mov    %rax,0x60(%rsp)
  call   <msub_stride@plt>
  mov    %ebp,(%rsp)
  mov    %ebp,%r9d
  mov    %ebx,%r8d
  push   %rbp
  mov    0x18(%rsp),%ecx
  push   %rcx
  mov    0x88(%rsp),%rdx
  mov    %r12d,%ecx
  mov    0x70(%rsp),%rsi
  mov    0x28(%rsp),%rdi
  call   <srecmult>
  mov    0x70(%rsp),%rdi
  add    $0x20,%rsp
  call   <free@plt>
  mov    %r13d,%edi
  call   <malloc@plt>
  push   %rbp
  mov    %r14d,%r9d
  mov    %ebp,%r8d
  push   %r14
  mov    0x20(%rsp),%rsi
  mov    %ebx,%ecx
  mov    %rax,%rdx
  mov    0x98(%rsp),%rdi
  mov    %rax,0x60(%rsp)
  call   <msub_stride@plt>
  mov    %ebp,(%rsp)
  mov    %ebp,%r9d
  mov    %ebx,%r8d
  push   %rbp
  mov    0x18(%rsp),%ecx
  push   %rcx
  mov    0x68(%rsp),%rdx
  mov    %r12d,%ecx
  mov    0x70(%rsp),%rsi
  mov    0x50(%rsp),%rdi
  call   <srecmult>
  mov    0x70(%rsp),%rdi
  add    $0x20,%rsp
  call   <free@plt>
  mov    0x28(%rsp),%edi
  call   <malloc@plt>
  push   %rbx
  mov    0x8(%rsp),%ecx
  mov    %ebx,%r8d
  mov    %rax,%rdx
  push   %rcx
  mov    0x80(%rsp),%rsi
  mov    %ecx,%r9d
  mov    0x18(%rsp),%rdi
  mov    %ecx,0x10(%rsp)
  mov    %r12d,%ecx
  mov    %rax,0x60(%rsp)
  call   <madd_stride@plt>
  mov    %r15d,(%rsp)
  mov    %ebp,%r9d
  mov    %ebx,%r8d
  push   %r14
  mov    %r12d,%ecx
  push   %rbx
  mov    0x80(%rsp),%rdx
  mov    0x58(%rsp),%rsi
  mov    0x70(%rsp),%rdi
  call   <srecmult>
  mov    0x70(%rsp),%rdi
  add    $0x20,%rsp
  call   <free@plt>
  mov    0x28(%rsp),%edi
  call   <malloc@plt>
  mov    %r13d,%edi
  mov    %rax,0x50(%rsp)
  call   <malloc@plt>
  mov    %ebx,%r8d
  mov    %rax,0x58(%rsp)
  push   %rbx
  mov    0x8(%rsp),%ecx
  push   %rcx
  mov    0x60(%rsp),%rdx
  mov    %ecx,%r9d
  mov    0x18(%rsp),%rsi
  mov    0x88(%rsp),%rdi
  mov    %ecx,0x10(%rsp)
  mov    %r12d,%ecx
  call   <msub_stride@plt>
  push   %rbp
  mov    %r14d,%r9d
  mov    %ebp,%r8d
  push   %r14
  mov    0x78(%rsp),%rdx
  mov    %ebx,%ecx
  mov    0xa0(%rsp),%rsi
  mov    0x30(%rsp),%rdi
  call   <madd_stride@plt>
  add    $0x18,%rsp
  mov    %ebp,%r9d
  mov    %ebx,%r8d
  push   %r15
  mov    %r12d,%ecx
  push   %rbp
  push   %rbx
  mov    0xb8(%rsp),%r10
  mov    0x78(%rsp),%rsi
  mov    0x70(%rsp),%rdi
  mov    %r10,%rdx
  mov    %r10,0x30(%rsp)
  call   <srecmult>
  mov    0x70(%rsp),%rdi
  add    $0x20,%rsp
  call   <free@plt>
  mov    0x58(%rsp),%rdi
  call   <free@plt>
  mov    0x28(%rsp),%edi
  call   <malloc@plt>
  mov    %r13d,%edi
  mov    %rax,0x8(%rsp)
  call   <malloc@plt>
  push   %rbx
  mov    0x8(%rsp),%ecx
  mov    %ebx,%r8d
  mov    %rax,%r13
  push   %rcx
  mov    0x18(%rsp),%r11
  mov    %ecx,%r9d
  mov    %r12d,%ecx
  mov    0x40(%rsp),%rsi
  mov    0x80(%rsp),%rdi
  mov    %r11,%rdx
  mov    %r11,0x10(%rsp)
  call   <msub_stride@plt>
  push   %rbp
  mov    %r14d,%r9d
  mov    %ebp,%r8d
  push   %r14
  mov    0x58(%rsp),%rsi
  mov    %ebx,%ecx
  mov    %r13,%rdx
  mov    0xa8(%rsp),%rdi
  call   <madd_stride@plt>
  add    $0x18,%rsp
  mov    %ebx,%r8d
  mov    %ebp,%r9d
  push   %r15
  mov    %r12d,%ecx
  mov    %r13,%rsi
  push   %rbp
  push   %rbx
  mov    0x38(%rsp),%rbx
  mov    0x20(%rsp),%rdi
  mov    %rbx,%rdx
  call   <srecmult>
  mov    0x20(%rsp),%rdi
  add    $0x20,%rsp
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    0x44(%rsp),%r14d
  mov    %r14d,%edi
  call   <malloc@plt>
  push   %r15
  mov    %ebp,%r9d
  mov    %ebp,%r8d
  push   %r15
  mov    0x30(%rsp),%rdi
  mov    %r12d,%ecx
  mov    %rbx,%rdx
  mov    %rbx,%rsi
  mov    %rax,%r13
  call   <madd_stride@plt>
  push   %rbp
  mov    %ebp,%r9d
  mov    %ebp,%r8d
  push   %r15
  mov    0x80(%rsp),%rsi
  mov    %r12d,%ecx
  mov    %r13,%rdx
  mov    0x68(%rsp),%rdi
  call   <msub_stride@plt>
  add    $0x20,%rsp
  mov    %r15d,%r9d
  mov    %ebp,%r8d
  push   %r15
  mov    %r12d,%ecx
  mov    %rbx,%rdx
  mov    %r13,%rsi
  push   %rbp
  mov    %rbx,%rdi
  call   <madd_stride@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    %r14d,%edi
  call   <malloc@plt>
  push   %r15
  mov    %ebp,%r9d
  mov    %ebp,%r8d
  push   %r15
  mov    0x30(%rsp),%r10
  mov    %r12d,%ecx
  mov    %rax,%r13
  mov    0x40(%rsp),%rdi
  mov    %r10,%rdx
  mov    %r10,%rsi
  mov    %r10,0x20(%rsp)
  call   <madd_stride@plt>
  add    $0x20,%rsp
  mov    %ebp,%r9d
  mov    %ebp,%r8d
  push   %rbp
  mov    %r12d,%ecx
  mov    %r13,%rdx
  push   %r15
  mov    0x78(%rsp),%r14
  mov    0xa0(%rsp),%rbx
  mov    %r14,%rdi
  mov    %rbx,%rsi
  call   <msub_stride@plt>
  push   %r15
  mov    %r15d,%r9d
  mov    %ebp,%r8d
  push   %rbp
  mov    0x20(%rsp),%r10
  mov    %r12d,%ecx
  mov    %r13,%rsi
  mov    %r10,%rdx
  mov    %r10,%rdi
  call   <madd_stride@plt>
  add    $0x20,%rsp
  mov    %r13,%rdi
  call   <free@plt>
  push   %r15
  mov    %ebp,%r9d
  mov    %ebp,%r8d
  push   %r15
  mov    0x70(%rsp),%rdx
  mov    %r12d,%ecx
  mov    %r14,%rdi
  mov    %rdx,%rsi
  call   <madd_stride@plt>
  push   %r15
  mov    %rbx,%rdx
  mov    %rbx,%rsi
  push   %r15
  mov    0x68(%rsp),%rbx
  mov    %ebp,%r9d
  mov    %ebp,%r8d
  mov    %r12d,%ecx
  mov    %rbx,%rdi
  call   <madd_stride@plt>
  mov    0x40(%rsp),%rdi
  add    $0x20,%rsp
  call   <free@plt>
  mov    %r14,%rdi
  call   <free@plt>
  add    $0xa8,%rsp
  mov    %rbx,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <free@plt>
```

assistant: ```c
void srecmult(double *A, double *B, double *C, int m, int n, int p, int sA, int sB, int sC) {
  register int i, j, k;
  int u, v, t;
  double sum;
  double *A1, *B1;
  double *a11, *a12, *a21, *a22;
  double *b11, *b12, *b21, *b22;
  double *c11, *c12, *c21, *c22;
  double *m1, *m2, *m3, *m4, *m5, *m6, *m7;
  int sm1, sm2, sm3, sm4, sm5, sm6, sm7;
  int sA1, sB1;
  if (m + n + p <= 192) {
    for (i = 0; i < m; ++i) {
      for (j = 0; j < p; ++j) {
        v = i * sA;
        u = i * sC;
        t = j + u;
        sum = 0.;
        for (k = 0; k < n; ++k) {
          sum += A[k + v] * B[j + k * sB];
        }
        C[t] = sum;
      }
    }
  } else {
    m /= 2;
    n /= 2;
    p /= 2;
    a11 = A;
    a12 = A + n;
    a21 = A + m * sA;
    a22 = A + n + m * sA;
    b11 = B;
    b12 = B + p;
    b21 = B + n * sB;
    b22 = B + p + n * sB;
    c11 = C;
    c12 = C + p;
    c21 = C + m * sC;
    c22 = C + p + m * sC;
    m1 = (double *)malloc(sizeof(double) * m * p);
    sm1 = p;
    m3 = (double *)malloc(sizeof(double) * m * p);
    sm3 = p;
    m4 = (double *)malloc(sizeof(double) * m * p);
    sm4 = p;
    m2 = c21;
    sm2 = sC;
    m5 = c12;
    sm5 = sC;
    m6 = c22;
    sm6 = sC;
    m7 = c11;
    sm7 = sC;
    sA1 = n;
    sB1 = p;
    A1 = (double *)malloc(sizeof(double) * m * n);
    B1 = (double *)malloc(sizeof(double) * n * p);
    madd_stride(a11, a22, A1, m, n, sA, sA, sA1);
    madd_stride(b11, b22, B1, n, p, sB, sB, sB1);
    srecmult(A1, B1, m1, m, n, p, sA1, sB1, sm1);
    free(A1);
    free(B1);
    A1 = (double *)malloc(sizeof(double) * m * n);
    madd_stride(a21, a22, A1, m, n, sA, sA, sA1);
    srecmult(A1, b11, m2, m, n, p, sA1, sB, sm2);
    free(A1);
    B1 = (double *)malloc(sizeof(double) * n * p);
    msub_stride(b12, b22, B1, n, p, sB, sB, sB1);
    srecmult(a11, B1, m3, m, n, p, sA, sB1, sm3);
    free(B1);
    B1 = (double *)malloc(sizeof(double) * n * p);
    msub_stride(b21, b11, B1, n, p, sB, sB, sB1);
    srecmult(a22, B1, m4, m, n, p, sA, sB1, sm4);
    free(B1);
    A1 = (double *)malloc(sizeof(double) * m * n);
    madd_stride(a11, a12, A1, m, n, sA, sA, sA1);
    srecmult(A1, b22, m5, m, n, p, sA1, sB, sm5);
    free(A1);
    A1 = (double *)malloc(sizeof(double) * m * n);
    B1 = (double *)malloc(sizeof(double) * n * p);
    msub_stride(a21, a11, A1, m, n, sA, sA, sA1);
    madd_stride(b11, b12, B1, n, p, sB, sB, sB1);
    srecmult(A1, B1, m6, m, n, p, sA1, sB1, sm6);
    free(A1);
    free(B1);
    A1 = (double *)malloc(sizeof(double) * m * n);
    B1 = (double *)malloc(sizeof(double) * n * p);
    msub_stride(a12, a22, A1, m, n, sA, sA, sA1);
    madd_stride(b21, b22, B1, n, p, sB, sB, sB1);
    srecmult(A1, B1, m7, m, n, p, sA1, sB1, sm7);
    free(A1);
    free(B1);
    A1 = (double *)malloc(sizeof(double) * m * p);
    sA1 = p;
    madd_stride(m1, m7, m7, m, p, sm1, sm7, sm7);
    msub_stride(m4, m5, A1, m, p, sm4, sm5, sA1);
    madd_stride(m7, A1, m7, m, p, sm7, sA1, sm7);
    free(A1);
    A1 = (double *)malloc(sizeof(double) * m * p);
    sA1 = p;
    madd_stride(m1, m6, m6, m, p, sm1, sm6, sm6);
    msub_stride(m3, m2, A1, m, p, sm3, sm2, sA1);
    madd_stride(m6, A1, m6, m, p, sm6, sA1, sm6);
    free(A1);
    madd_stride(m3, m5, m5, m, p, sm3, sm5, sm5);
    madd_stride(m4, m2, m2, m, p, sm4, sm2, sm2);
    free(m1);
    free(m3);
    free(m4);
  }
}
```