user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    %rsi,%rbx
  xor    %esi,%esi
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0x40(%rsp),%rdi
  mov    %rdi,0x30(%rsp)
  call   <gettimeofday@plt>
  cmp    $0x1,%ebp
  jle    L179
L44:
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  movslq %eax,%rbx
  lea    0x0(,%rbx,8),%r12d
  mov    %r12d,%edi
  call   <malloc@plt>
  mov    %r12d,%edi
  mov    %rax,0x8(%rsp)
  call   <malloc@plt>
  mov    %r12d,%edi
  mov    %rax,%r15
  call   <malloc@plt>
  mov    %r12d,%edi
  mov    %rax,0x18(%rsp)
  call   <malloc@plt>
  mov    %ebx,%edi
  mov    %ebx,0x10(%rsp)
  imul   %ebx,%edi
  mov    %rax,0x20(%rsp)
  lea    0x0(,%rdi,8),%r12d
  mov    %r12d,%edi
  call   <malloc@plt>
  mov    %r12d,%edi
  mov    %rax,%r14
  call   <malloc@plt>
  mov    %r12d,%edi
  mov    %rax,%r13
  call   <malloc@plt>
  mov    %r12d,%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    0x10(%rsp),%esi
  test   %esi,%esi
  jle    L252
  lea    -0x1(%rsi),%edx
  mov    0x8(%rsp),%rcx
  lea    0x0(,%rbx,8),%rdi
  shl    $0x3,%rdx
  lea    0x8(%rcx,%rdx,1),%rsi
L229:
  mov    %r14,(%rcx)
  add    $0x8,%rcx
  add    %rdi,%r14
  cmp    %rsi,%rcx
  jne    L229
  lea    0x8(%r15,%rdx,1),%rsi
  mov    %r15,%rcx
L210:
  mov    %r13,(%rcx)
  add    $0x8,%rcx
  add    %rdi,%r13
  cmp    %rsi,%rcx
  jne    L210
  mov    0x18(%rsp),%rcx
  mov    %rbp,%r12
  lea    0x8(%rcx,%rdx,1),%rsi
L22:
  mov    %r12,(%rcx)
  add    $0x8,%rcx
  add    %rdi,%r12
  cmp    %rsi,%rcx
  jne    L22
  mov    0x20(%rsp),%rbx
  lea    0x8(%rbx,%rdx,1),%rcx
  mov    %rbx,%rdx
L74:
  mov    %rax,(%rdx)
  add    $0x8,%rdx
  add    %rdi,%rax
  cmp    %rcx,%rdx
  jne    L74
  mov    0x10(%rsp),%r12d
  mov    0x8(%rsp),%rbx
  lea    (%r12,%r12,1),%eax
  mov    %eax,0x2c(%rsp)
L94:
  mov    %r12d,%ebp
  xor    %r13d,%r13d
  sub    0x10(%rsp),%ebp
  nopl   0x0(%rax,%rax,1)
L183:
  xor    %eax,%eax
  call   <rand@plt>
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    (%rbx),%rdx
  cvtsi2sd %ebp,%xmm0
  add    $0x1,%ebp
  cvtsi2sd %rax,%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx,%r13,1)
  add    $0x8,%r13
  cmp    %r12d,%ebp
  jne    L183
  add    $0x8,%rbx
  lea    0x1(%rbp),%r12d
  cmp    0x2c(%rsp),%r12d
  jne    L94
  mov    0x10(%rsp),%r12d
  mov    %r15,%rbx
  xor    %r13d,%r13d
  shl    $0x3,%r12
L113:
  xor    %ebp,%ebp
  xor    %r14d,%r14d
  nopl   0x0(%rax)
L234:
  xor    %eax,%eax
  call   <rand@plt>
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    (%rbx),%rdx
  cvtsi2sd %r14d,%xmm0
  add    %r13d,%r14d
  cvtsi2sd %rax,%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx,%rbp,1)
  add    $0x8,%rbp
  cmp    %rbp,%r12
  jne    L234
  lea    0x1(%r13),%r14d
  add    $0x8,%rbx
  cmp    %r14d,0x10(%rsp)
  je     L111
  mov    %r14d,%r13d
  jmp    L113
L252:
  lea    0x50(%rsp),%rbp
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <gettimeofday@plt>
  mov    0x30(%rsp),%rsi
  lea    0x60(%rsp),%rdx
  mov    %rbp,%rdi
  call   <timersub@plt>
  mov    0x60(%rsp),%rdx
  mov    0x68(%rsp),%rsi
  xor    %eax,%eax
  lea    D11(%rip),%rdi
  call   <printf@plt>
  xor    %edi,%edi
  call   <exit@plt>
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L24
  add    $0x88,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L111:
  mov    0x18(%rsp),%rbx
  mov    0x20(%rsp),%rax
  test   %r14d,%r14d
  mov    %r15,%rcx
  mov    $0x8,%edx
  mov    %r13d,%r15d
  cmovg  %r12,%rdx
  sub    %rbx,%rax
  xor    %ebp,%ebp
  mov    %rbx,%r12
  mov    %rax,0x10(%rsp)
  mov    %ebp,%r13d
  mov    %rdx,%rbp
L178:
  mov    0x10(%rsp),%rax
  mov    (%r12),%rdi
  mov    (%rax,%r12,1),%rbx
  lea    (%rbx,%rbp,1),%rax
  cmp    %rax,%rdi
  jae    L17
  lea    (%rdi,%rbp,1),%rax
  cmp    %rax,%rbx
  jb     L56
L17:
  mov    %rbp,%rdx
  xor    %esi,%esi
  mov    %rcx,0x38(%rsp)
  add    $0x8,%r12
  call   <memset@plt>
  mov    %rbp,%rdx
  xor    %esi,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    0x38(%rsp),%rcx
  lea    0x1(%r13),%eax
  cmp    %r13d,%r15d
  jle    L138
L174:
  mov    %eax,%r13d
  jmp    L178
L56:
  xor    %eax,%eax
L79:
  movq   $0x0,(%rdi,%rax,8)
  movq   $0x0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r14d
  jg     L79
  lea    0x1(%r13),%eax
  add    $0x8,%r12
  cmp    %r13d,%r15d
  jg     L174
L138:
  mov    0x8(%rsp),%rax
  mov    %rcx,%r12
  mov    %r15d,%r13d
  pxor   %xmm4,%xmm4
  mov    %rcx,%r15
  xor    %edi,%edi
  mov    %rax,%rsi
  sub    %rax,%r12
L292:
  mov    (%rsi),%rcx
  mov    (%r12,%rsi,1),%rdx
  xor    %eax,%eax
  nopl   0x0(%rax)
L160:
  movsd  (%rcx,%rax,8),%xmm0
  addsd  (%rdx,%rax,8),%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm4
  cmp    %eax,%r14d
  jg     L160
  lea    0x1(%rdi),%eax
  add    $0x8,%rsi
  cmp    %edi,%r13d
  jle    L186
  mov    %eax,%edi
  jmp    L292
L186:
  mov    0x18(%rsp),%rbx
  mov    0x8(%rsp),%rbp
  mov    0x2c(%rsp),%ecx
  sub    %rbx,%rbp
L301:
  mov    0x0(%rbp,%rbx,1),%r10
  mov    (%rbx),%rdi
  xor    %r11d,%r11d
  sub    %r15,%r10
  cs nopw 0x0(%rax,%rax,1)
L245:
  movsd  (%rdi),%xmm1
  lea    0x0(,%r11,8),%r9
  mov    %r15,%r8
  xor    %esi,%esi
  nopl   0x0(%rax)
L270:
  mov    (%r8),%rax
  movsd  (%r10,%r8,1),%xmm0
  mov    %esi,%edx
  mulsd  (%rax,%r9,1),%xmm0
  xor    %eax,%eax
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdi)
  nopl   0x0(%rax,%rax,1)
L248:
  test   %edx,%edx
  je     L169
  pxor   %xmm2,%xmm2
  pxor   %xmm3,%xmm3
  cvtsi2sd %esi,%xmm2
  cvtsi2sd %eax,%xmm3
  movapd %xmm2,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm3,%xmm0
  subsd  %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2sd %edx,%xmm2
  divsd  %xmm2,%xmm0
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdi)
L169:
  add    $0x1,%eax
  add    $0x1,%edx
  cmp    %eax,%ecx
  jg     L248
  lea    0x1(%rsi),%eax
  add    $0x8,%r8
  cmp    %esi,%r13d
  jle    L271
  mov    %eax,%esi
  jmp    L270
  nopw   0x0(%rax,%rax,1)
L271:
  add    $0x1,%r11
  add    $0x8,%rdi
  cmp    %r11d,%r14d
  jg     L245
  add    $0x1,%ecx
  add    $0x8,%rbx
  mov    %ecx,%eax
  sub    0x2c(%rsp),%eax
  cmp    %eax,%r14d
  jg     L301
  mov    0x8(%rsp),%rdx
  mov    0x20(%rsp),%r8
  xor    %r9d,%r9d
  sub    %rdx,%r8
L273:
  mov    (%rdx),%rdi
  mov    (%rdx,%r12,1),%rsi
  xor    %eax,%eax
  mov    (%r8,%rdx,1),%rcx
  nopl   0x0(%rax)
L67:
  movsd  (%rdi,%rax,8),%xmm0
  addsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r14d
  jg     L67
  lea    0x1(%r9),%eax
  add    $0x8,%rdx
  cmp    %r9d,%r13d
  jle    L252
  mov    %eax,%r9d
  jmp    L273
L179:
  lea    D8(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
  jmp    L44
L24:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D11
data_type: string
name: unpack_data
arguments: data_tag: D8
data_type: string

tool: D11: %ld.%08ld


tool: D8: Usage: mm matrix_size

assistant: ```c
int main(int argc, char *argv[]) {
  struct timeval start_time, end_time, wall_time;
  gettimeofday(&start_time, NULL);
  int N;
  int tid, nthreads, i, j, k, l;
  double **a, **b, **c, **d, Z;
  double *a_block, *b_block, *c_block, *d_block;
  if (argc < 2) {
    printf("Usage: mm matrix_size\n");
    exit(-1);
  }
  N = atoi(argv[1]);
  a = (double **)malloc(N * sizeof(double *));
  b = (double **)malloc(N * sizeof(double *));
  c = (double **)malloc(N * sizeof(double *));
  d = (double **)malloc(N * sizeof(double *));
  a_block = (double *)malloc(N * N * sizeof(double));
  b_block = (double *)malloc(N * N * sizeof(double));
  c_block = (double *)malloc(N * N * sizeof(double));
  d_block = (double *)malloc(N * N * sizeof(double));
  for (i = 0; i < N; i++)
    a[i] = a_block + i * N;
  for (i = 0; i < N; i++)
    b[i] = b_block + i * N;
  for (i = 0; i < N; i++)
    c[i] = c_block + i * N;
  for (i = 0; i < N; i++)
    d[i] = d_block + i * N;
  for (i = 0; i < N; i++)
    for (j = 0; j < N; j++)
      a[i][j] = (i + j) * ((double)rand());
  for (i = 0; i < N; i++)
    for (j = 0; j < N; j++)
      b[i][j] = i * j * ((double)rand());
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      c[i][j] = 0.0;
      d[i][j] = 0.0;
    }
  }
  Z = 0.0;
  for (i = 0; i < N; i++)
    for (j = 0; j < N; j++) {
      Z += a[i][j] + b[i][j];
    }
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      for (k = 0; k < N; k++) {
        c[i][j] += a[i][k] * b[k][j];
        for (l = 0; l < i + N + N; l++) {
          if ((l + k) > 0)
            c[i][j] -= ((Z * k) + l - k) / (l + k);
        }
      }
    }
  }
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      d[i][j] = a[i][j] + b[i][j];
    }
  }
  gettimeofday(&end_time, NULL);
  timersub(&end_time, &start_time, &wall_time);
  printf("%ld.%08ld\n", (long int)wall_time.tv_sec, (long int)wall_time.tv_usec);
  exit(0);
}
```