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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  movl   $0x3e8,-0x24(%rbp)
  movl   $0x320,-0x20(%rbp)
  movl   $0x4b0,-0x1c(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x30(%rbp)
  jmp    L73
L87:
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    -0x30(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rax,(%rdx)
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    -0x30(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rax,(%rdx)
  movl   $0x0,-0x2c(%rbp)
  jmp    L57
L1:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    %edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,%ecx
  shl    $0x2,%ecx
  add    %edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  add    $0x1,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x2c(%rbp)
L57:
  mov    -0x2c(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L1
  addl   $0x1,-0x30(%rbp)
L73:
  mov    -0x30(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L87
  movl   $0x0,-0x30(%rbp)
  jmp    L20
L27:
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    -0x30(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rax,(%rdx)
  movl   $0x0,-0x2c(%rbp)
  jmp    L103
L41:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    %edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,%ecx
  shl    $0x2,%ecx
  add    %edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  add    $0x1,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x2c(%rbp)
L103:
  mov    -0x2c(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L41
  addl   $0x1,-0x30(%rbp)
L20:
  mov    -0x30(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L27
  movl   $0x0,-0x30(%rbp)
  jmp    L119
L0:
  movl   $0x0,-0x2c(%rbp)
  jmp    L99
L72:
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  movl   $0x0,-0x28(%rbp)
  jmp    L130
L111:
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x10(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%rsi
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rsi,%rax
  mov    (%rax),%eax
  imul   %eax,%edx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x8(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%rsi
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rsi,%rax
  add    %ecx,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x28(%rbp)
L130:
  mov    -0x28(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L111
  addl   $0x1,-0x2c(%rbp)
L99:
  mov    -0x2c(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L72
  addl   $0x1,-0x30(%rbp)
L119:
  mov    -0x30(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L0
  mov    $0x0,%eax
  leave
  ret
```

assistant: ```c
int main() {
  int i, j, k;
  int n = 1000;
  int m = 800;
  int p = 1200;
  int **A = (int **)malloc(sizeof(int *) * n);
  int **B = (int **)malloc(sizeof(int *) * m);
  int **C = (int **)malloc(sizeof(int *) * n);
  for (i = 0; i < n; i++) {
    A[i] = (int *)malloc(sizeof(int) * m);
    C[i] = (int *)malloc(sizeof(int) * p);
    for (j = 0; j < m; j++)
      A[i][j] = rand() % 5 + 1;
  }
  for (i = 0; i < m; i++) {
    B[i] = (int *)malloc(sizeof(int) * p);
    for (j = 0; j < p; j++)
      B[i][j] = rand() % 5 + 1;
  }
#pragma omp parallel private(i, j, k) shared(n, m, p)
  {
#pragma omp for
    for (i = 0; i < n; i++) {
#pragma omp parallel for
      for (j = 0; j < p; j++) {
        C[i][j] = 0;
        for (k = 0; k < m; k++)
          C[i][j] += A[i][k] * B[k][j];
      }
    }
  }
}
```