user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x44aa000(%rsp),%r11
L66:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L66
  sub    $0x238,%rsp
  mov    $0xbb8,%ecx
  mov    %fs:0x28,%rax
  mov    %rax,0x44aa228(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%r13
  mov    %r13,%rsi
L10:
  lea    -0xbb8(%rcx),%eax
  mov    %rsi,%rdx
L71:
  pxor   %xmm0,%xmm0
  add    $0x8,%rdx
  cvtsi2sd %eax,%xmm0
  add    $0x1,%eax
  movsd  %xmm0,-0x8(%rdx)
  cmp    %ecx,%eax
  jne    L71
  add    $0x5dc0,%rsi
  lea    0xa(%rax),%ecx
  cmp    $0x80de,%eax
  jne    L10
  mov    %rsp,%rdi
  xor    %esi,%esi
  lea    0x5dc0(%r13),%rbp
  xor    %r12d,%r12d
  call   <gettimeofday@plt>
  mov    %rbp,%r15
  mov    $0x5dc0,%r14d
L22:
  lea    -0x5db8(%r15),%rbx
L63:
  movsd  D21(%rip),%xmm0
  mulsd  (%rbx),%xmm0
  call   <sin@plt>
  lea    (%rbx,%r12,1),%rax
  add    $0x8,%rbx
  movsd  %xmm0,-0x8(%r14,%rax,1)
  cmp    %r15,%rbx
  jne    L63
  sub    $0x5dc0,%r12
  add    $0x5dc0,%r14
  lea    0x5dc0(%rbx),%r15
  cmp    $0xfffffffffbb5bbc0,%r12
  jne    L22
  xor    %esi,%esi
  lea    0x10(%rsp),%rdi
  add    $0x44affc0,%r13
  call   <gettimeofday@plt>
  mov    0x10(%rsp),%rax
  sub    (%rsp),%rax
  pxor   %xmm0,%xmm0
  imul   $0x3e8,%rax,%rax
  pxor   %xmm1,%xmm1
  lea    D44(%rip),%rdi
  lea    D24(%rip),%r14
  cvtsi2sd %rax,%xmm0
  mov    0x18(%rsp),%rax
  sub    0x8(%rsp),%rax
  cvtsi2sd %rax,%xmm1
  divsd  D11(%rip),%xmm1
  addsd  %xmm1,%xmm0
  call   <printf@plt>
  lea    D20(%rip),%rsi
  lea    D13(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%r12
L61:
  lea    -0x5dc0(%rbp),%rbx
L45:
  movsd  (%rbx),%xmm0
  mov    %r14,%rsi
  mov    %r12,%rdi
  mov    $0x1,%eax
  add    $0x8,%rbx
  call   <fprintf@plt>
  cmp    %rbx,%rbp
  jne    L45
  mov    %r12,%rsi
  mov    $0xa,%edi
  add    $0x5dc0,%rbp
  call   <fputc@plt>
  cmp    %r13,%rbp
  jne    L61
  mov    %r12,%rdi
  call   <fclose@plt>
  mov    0x44aa228(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L28
  add    $0x44aa238,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L28:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D21
type: f64
name: read_data
arguments: label: D44
type: string
name: read_data
arguments: label: D24
type: string
name: read_data
arguments: label: D11
type: f64
name: read_data
arguments: label: D20
type: string
name: read_data
arguments: label: D13
type: string

tool: D21: 0.01

tool: D44: %.6lf


tool: D24: %f 

tool: D11: 1000

tool: D20: w

tool: D13: 2.out

assistant: ```c
int main(int argc, char **argv) {
  double a[3000][3000];
  int i, j;
  FILE *ff;
  for (i = 0; i < 3000; ++i) {
    for (j = 0; j < 3000; ++j) {
      a[i][j] = 10 * i + j;
    }
  }
  double timeElapsed = 0.0;
  do {
    struct timeval timeElapsed_start, timeElapsed_end;
    long timeElapsed_seconds, timeElapsed_useconds;
    gettimeofday(&timeElapsed_start, NULL);
    {
      for (i = 1; i < 3000; ++i) {
        for (j = 0; j < 3000 - 1; ++j) {
          for (int k = 0; k < 100; ++k)
            a[i][j] = sin(0.01 * a[i - 1][j + 1]);
        }
      }
    }
    gettimeofday(&timeElapsed_end, NULL);
    timeElapsed_seconds = timeElapsed_end.tv_sec - timeElapsed_start.tv_sec;
    timeElapsed_useconds = timeElapsed_end.tv_usec - timeElapsed_start.tv_usec;
    timeElapsed = (timeElapsed_seconds * 1000 + timeElapsed_useconds / 1000.0);
  } while (0);
  printf("%.6lf\n", timeElapsed);
  ff = fopen("2.out", "w");
  for (i = 0; i < 3000; ++i) {
    for (j = 0; j < 3000; ++j) {
      fprintf(ff, "%f ", a[i][j]);
    }
    fprintf(ff, "\n");
  }
  fclose(ff);
  return 0;
}
```