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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  cmp    $0x2,%edi
  jle    L178
  mov    0x8(%rsi),%rdi
  mov    %rsi,%rbx
  call   <atoi@plt>
  mov    0x10(%rbx),%rdi
  mov    %eax,%r14d
  call   <atoi@plt>
  mov    %r14d,%ebp
  movslq %r14d,%rbx
  imul   %r14d,%ebp
  mov    %eax,%edi
  call   <omp_set_num_threads@plt>
  mov    %rbx,0x10(%rsp)
  shl    $0x3,%ebp
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %rax,(%rsp)
  mov    %rax,%r12
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %rax,0x8(%rsp)
  mov    %rax,%r13
  call   <malloc@plt>
  mov    %rax,%r15
  test   %r14d,%r14d
  jle    L179
  lea    -0x1(%r14),%edi
  lea    0x0(,%rbx,8),%rbp
  movsd  D42(%rip),%xmm0
  mov    %r13,%rcx
  lea    0x0(,%rdi,8),%rsi
  mov    %rdi,0x28(%rsp)
  mov    $0xfffffffffffffff8,%rdi
  lea    0x8(%r12,%rsi,1),%rbx
  sub    %rsi,%rdi
  xor    %r12d,%r12d
  mov    %rbx,%rdx
  nopl   (%rax)
L184:
  lea    (%rdi,%rdx,1),%rax
  mov    %rcx,%r8
  nop
L61:
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  movsd  %xmm0,(%r8)
  add    %rbp,%r8
  cmp    %rdx,%rax
  jne    L61
  lea    0x1(%r12),%r13d
  add    $0x8,%rcx
  add    %rbp,%rdx
  cmp    %r13d,%r14d
  je     L41
  mov    %r13d,%r12d
  jmp    L184
L41:
  xor    %eax,%eax
  mov    %rsi,0x30(%rsp)
  call   <dwalltime@plt>
  mov    0x30(%rsp),%rsi
  xor    %r10d,%r10d
  xor    %r8d,%r8d
  lea    0x8(%r15),%rax
  mov    0x8(%rsp),%r9
  xor    %r11d,%r11d
  pxor   %xmm2,%xmm2
  mov    %rax,0x20(%rsp)
  add    %rax,%rsi
  mov    (%rsp),%rax
  mov    %r13d,0x3c(%rsp)
  mov    0x10(%rsp),%r13
  mov    %r14d,0x30(%rsp)
  sub    %rax,%r9
  mov    %rax,%r14
  movsd  %xmm0,0x18(%rsp)
  nopl   0x0(%rax)
L45:
  mov    %r10,%rax
  lea    (%r15,%r8,1),%rdx
  lea    (%r14,%r8,1),%rdi
  neg    %rax
  lea    (%r9,%rax,8),%rcx
  nopw   0x0(%rax,%rax,1)
L88:
  movq   $0x0,(%rdx)
  mov    %rdi,%rax
  movapd %xmm2,%xmm1
  cs nopw 0x0(%rax,%rax,1)
L115:
  movsd  (%rcx,%rax,1),%xmm0
  mulsd  (%rax),%xmm0
  add    $0x8,%rax
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdx)
  cmp    %rbx,%rax
  jne    L115
  add    $0x8,%rdx
  add    %rbp,%rcx
  cmp    %rsi,%rdx
  jne    L88
  lea    0x1(%r11),%eax
  add    %rbp,%rsi
  add    %rbp,%r8
  add    %rbp,%rbx
  add    %r13,%r10
  cmp    %r11d,%r12d
  je     L167
  mov    %eax,%r11d
  jmp    L45
L167:
  xor    %eax,%eax
  mov    0x30(%rsp),%r14d
  mov    0x3c(%rsp),%r13d
  call   <dwalltime@plt>
  subsd  0x18(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D14(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%esi
  xor    %edi,%edi
  xor    %ecx,%ecx
  mov    0x20(%rsp),%r8
  mov    0x28(%rsp),%r9
  test   %esi,%esi
  je     L8
L180:
  pxor   %xmm0,%xmm0
  movslq %edi,%rdx
  cvtsi2sd %r13d,%xmm0
  lea    (%r15,%rdx,8),%rax
  add    %r9,%rdx
  lea    (%r8,%rdx,8),%rdx
L15:
  ucomisd (%rax),%xmm0
  jp     L67
  jne    L67
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L15
  nopw   0x0(%rax,%rax,1)
L160:
  lea    0x1(%rcx),%eax
  add    %r14d,%edi
  cmp    %ecx,%r12d
  je     L143
L79:
  mov    %eax,%ecx
  test   %esi,%esi
  jne    L180
L8:
  lea    0x1(%rcx),%eax
  add    %r14d,%edi
  cmp    %ecx,%r12d
  je     L84
  mov    %eax,%ecx
  add    %r14d,%edi
  lea    0x1(%rcx),%eax
  cmp    %ecx,%r12d
  jne    L79
L143:
  test   %esi,%esi
  je     L84
L127:
  lea    D32(%rip),%rdi
  call   <puts@plt>
L168:
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    %r15,%rdi
  call   <free@plt>
  jmp    L159
  cs nopw 0x0(%rax,%rax,1)
L67:
  xor    %esi,%esi
  jmp    L160
L178:
  lea    D33(%rip),%rdi
  call   <puts@plt>
L159:
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L84:
  lea    D37(%rip),%rdi
  call   <puts@plt>
  jmp    L168
L179:
  xor    %eax,%eax
  call   <dwalltime@plt>
  xor    %eax,%eax
  movsd  %xmm0,0x10(%rsp)
  call   <dwalltime@plt>
  subsd  0x10(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D14(%rip),%rdi
  call   <printf@plt>
  jmp    L127
```

tool_calls: name: parse_data
arguments: label: D42
type: byte[8]
name: parse_data
arguments: label: D14
type: string
name: parse_data
arguments: label: D32
type: string
name: parse_data
arguments: label: D33
type: string
name: parse_data
arguments: label: D37
type: string

tool: {"D42": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D14: Tiempo en segundos %f 


tool: D32: Multiplicacion de matrices resultado correcto

tool: D33: 
 Faltan argumentos:: N dimension de la matriz, T cantidad de threads 

tool: D37: Multiplicacion de matrices resultado erroneo

assistant: ```c
main(int argc, char *argv[]) {
  double *A, *B, *C;
  int i, j, k, N;
  int check = 1;
  double timetick;
  if (argc < 3) {
    printf("\n Faltan argumentos:: N dimension de la matriz, T cantidad de threads \n");
    return 0;
  }
  N = atoi(argv[1]);
  int numThreads = atoi(argv[2]);
  omp_set_num_threads(numThreads);
  A = (double *)malloc(sizeof(double) * N * N);
  B = (double *)malloc(sizeof(double) * N * N);
  C = (double *)malloc(sizeof(double) * N * N);
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      A[i * N + j] = 1;
      B[i + j * N] = 1;
    }
  }
  timetick = dwalltime();
  int tmp = 0;
  for (i = 0; i < N; i++) {
#pragma omp parallel for firstprivate(i) shared(A, B) private(j)
    for (j = 0; j < N; j++) {
      C[i * N + j] = 0;
      for (k = 0; k < N; k++) {
        C[i * N + j] = C[i * N + j] + A[i * N + k] * B[k + j * N];
      }
    }
  }
  printf("Tiempo en segundos %f \n", dwalltime() - timetick);
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      check = check && (C[i * N + j] == N);
    }
  }
  if (check) {
    printf("Multiplicacion de matrices resultado correcto\n");
  } else {
    printf("Multiplicacion de matrices resultado erroneo\n");
  }
  free(A);
  free(B);
  free(C);
  return (0);
}
```