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
L71:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L71
  sub    $0x238,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x44aa228(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%r13
  mov    %r13,%rsi
  mov    $0xbb8,%ecx
L92:
  lea    -0xbb8(%rcx),%eax
  mov    %rsi,%rdx
L1:
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x1,%eax
  add    $0x8,%rdx
  cmp    %ecx,%eax
  jne    L1
  add    $0x5dc0,%rsi
  add    $0xa,%ecx
  cmp    $0x80e8,%ecx
  jne    L92
  mov    %rsp,%rdi
  mov    $0x0,%esi
  call   <gettimeofday@plt>
  lea    0x5de0(%rsp),%r14
  lea    0x44aa200(%r13),%r15
  jmp    L29
L18:
  add    $0x8,%rbp
  cmp    %r12,%rbp
  je     L47
L17:
  mov    $0x64,%ebx
L102:
  movsd  D18(%rip),%xmm0
  mulsd  -0x5db8(%rbp),%xmm0
  call   <sin@plt>
  movsd  %xmm0,0x0(%rbp)
  sub    $0x1,%ebx
  jne    L102
  jmp    L18
L47:
  add    $0x5dc0,%r14
  cmp    %r15,%r14
  je     L93
L29:
  mov    %r14,%rbp
  lea    0x5db8(%r14),%r12
  jmp    L17
L93:
  lea    0x10(%rsp),%rdi
  mov    $0x0,%esi
  call   <gettimeofday@plt>
  mov    0x10(%rsp),%rax
  sub    (%rsp),%rax
  imul   $0x3e8,%rax,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  mov    0x18(%rsp),%rax
  sub    0x8(%rsp),%rax
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  divsd  D48(%rip),%xmm1
  addsd  %xmm1,%xmm0
  lea    D34(%rip),%rdi
  call   <printf@plt>
  lea    D23(%rip),%rsi
  lea    D7(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  lea    0x5dc0(%r13),%r12
  add    $0x44affc0,%r13
  lea    D19(%rip),%r14
L36:
  lea    -0x5dc0(%r12),%rbx
L19:
  movsd  (%rbx),%xmm0
  mov    %r14,%rsi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
  add    $0x8,%rbx
  cmp    %rbx,%r12
  jne    L19
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  add    $0x5dc0,%r12
  cmp    %r12,%r13
  jne    L36
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x44aa228(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L85
  mov    $0x0,%eax
  add    $0x44aa238,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L85:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D18
type_guessed: f64
name: disassemble_data
arguments: data_label: D48
type_guessed: f64
name: disassemble_data
arguments: data_label: D34
type_guessed: string
name: disassemble_data
arguments: data_label: D23
type_guessed: string
name: disassemble_data
arguments: data_label: D7
type_guessed: string
name: disassemble_data
arguments: data_label: D19
type_guessed: string

tool: D18: 0.01

tool: D48: 1000

tool: D34: %.6lf


tool: D23: w

tool: D7: 2.out

tool: D19: %f 

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;
}
```