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
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0xea8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x3e98(%rsp)
  xor    %eax,%eax
  mov    $0x1,%eax
  movsd  D190(%rip),%xmm3
  mov    $0x3e9,%ecx
  movsd  D157(%rip),%xmm2
L58:
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movapd %xmm3,%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rsp,%rax,8)
  mov    %ecx,%edx
  sub    %eax,%edx
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,0x1f48(%rsp,%rax,8)
  add    $0x1,%rax
  cmp    $0x3e9,%rax
  jne    L58
  mov    D27(%rip),%r14
  mov    $0x186a0,%ebx
  lea    D182(%rip),%r13
  lea    D101(%rip),%r12
  jmp    L26
L83:
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  addsd  %xmm0,%xmm0
  mulsd  D157(%rip),%xmm0
  mulsd  D65(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  divsd  0x8(%rsp),%xmm0
  lea    D149(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L155
L148:
  lea    (%rbx,%rbx,4),%ebx
  add    %ebx,%ebx
L155:
  pxor   %xmm0,%xmm0
  comisd 0x8(%rsp),%xmm0
  jb     L159
L26:
  mov    $0x0,%eax
  call   <SuperLU_timer_@plt>
  movq   %xmm0,%rbp
  mov    $0x0,%esi
  lea    0x3e90(%rsp),%rcx
  test   %ebx,%ebx
  jle    L50
L84:
  lea    0x1f50(%rsp),%rax
  lea    0x10(%rsp),%rdx
L102:
  movq   %r14,%xmm0
  mulsd  (%rdx),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %rcx,%rax
  jne    L102
  movq   %r14,%xmm6
  xorpd  D52(%rip),%xmm6
  movq   %xmm6,%r14
  add    $0x1,%esi
  cmp    %ebx,%esi
  jne    L84
L50:
  mov    $0x0,%eax
  call   <SuperLU_timer_@plt>
  movq   %rbp,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,0x8(%rsp)
  comisd D128(%rip),%xmm0
  ja     L83
  cmp    $0x5f5e100,%ebx
  jle    L148
  mov    %r13,%rdi
  call   <puts@plt>
  jmp    L148
L159:
  movsd  0x1f50(%rsp),%xmm0
  lea    D181(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <SuperLU_timer_@plt>
  movq   %xmm0,%rbp
  mov    $0x186a0,%ecx
  lea    0x1f50(%rsp),%r12
  lea    0x10(%rsp),%r13
  lea    0x3e90(%rsp),%rbx
  movq   D52(%rip),%xmm1
L129:
  mov    %r13,%rdx
  mov    %r12,%rax
L146:
  movq   %r14,%xmm0
  mulsd  (%rdx),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %rax,%rbx
  jne    L146
  movq   %r14,%xmm4
  xorpd  %xmm1,%xmm4
  movq   %xmm4,%r14
  sub    $0x1,%ecx
  jne    L129
  mov    $0x0,%eax
  call   <SuperLU_timer_@plt>
  movq   %rbp,%xmm7
  subsd  %xmm7,%xmm0
  movsd  %xmm0,0x8(%rsp)
  mov    $0x0,%eax
  call   <SuperLU_timer_@plt>
  movq   %xmm0,%r15
  mov    $0x186a0,%ebp
L106:
  mov    %r13,%rdx
  mov    %r12,%rax
L40:
  movq   %r14,%xmm0
  mulsd  (%rdx),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %rax,%rbx
  jne    L40
  movq   %r14,%xmm5
  xorpd  D52(%rip),%xmm5
  movq   %xmm5,%r14
  mov    $0x0,%eax
  call   <SuperLU_timer_@plt>
  sub    $0x1,%ebp
  jne    L106
  movq   %r15,%xmm2
  subsd  %xmm2,%xmm0
  movq   %xmm0,%rbx
  lea    D183(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movq   %rbx,%xmm0
  subsd  0x8(%rsp),%xmm0
  mulsd  D157(%rip),%xmm0
  divsd  D80(%rip),%xmm0
  movq   %xmm0,%rbx
  lea    D49(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm7
  comisd D128(%rip),%xmm7
  ja     L110
L92:
  lea    0x1f50(%rsp),%rdx
  lea    0x10(%rsp),%rsi
  mov    $0x3e8,%edi
  call   <mysub@plt>
  mov    0x3e98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L139
  mov    $0x0,%eax
  add    $0x3ea8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L110:
  movq   %rbx,%xmm0
  mulsd  D157(%rip),%xmm0
  divsd  %xmm7,%xmm0
  lea    D26(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L92
L139:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D190
data_type: f64
name: disassemble_data
arguments: tag: D157
data_type: f64
name: disassemble_data
arguments: tag: D27
data_type: f64
name: disassemble_data
arguments: tag: D182
data_type: string
name: disassemble_data
arguments: tag: D101
data_type: string
name: disassemble_data
arguments: tag: D65
data_type: byte[8]
name: disassemble_data
arguments: tag: D149
data_type: string
name: disassemble_data
arguments: tag: D52
data_type: f32[4]
name: disassemble_data
arguments: tag: D128
data_type: f32
name: disassemble_data
arguments: tag: D181
data_type: string
name: disassemble_data
arguments: tag: D183
data_type: string
name: disassemble_data
arguments: tag: D80
data_type: f32[2]
name: disassemble_data
arguments: tag: D49
data_type: string
name: disassemble_data
arguments: tag: D26
data_type: string

tool: D190: 1

tool: D157: 1000

tool: D27: 0.315

tool: D182: *** Error: Time for operations was zero.
	The timer may not be working correctly.

tool: D101: Time for %d DAXPYs = %10.3g seconds


tool: {"D65": [0x95,0xd6,0x26,0xe8,0x0b,0x2e,0x11,0x3e]}

tool: D149: DAXPY performance rate = %10.3g Gflops


tool: {"D52": [0.0,-0.0,0.0,0.0]}

tool: D128: 0

tool: D181: y[0]=%g


tool: D183: Including DSECND, time        = %10.3g seconds


tool: {"D80": [0.0,7.762939453125]}

tool: D49: Average time for DSECND       = %10.3g milliseconds


tool: D26: Equivalent floating point ops = %10.3g ops


assistant: ```c
int main() {
  int i, j, iters;
  double alpha, avg, t1, t2, tnotim;
  double x[1000], y[1000];
  double SuperLU_timer_();
  for (i = 0; i < 1000; ++i) {
    x[i] = 1.0 / (double)(i + 1);
    y[i] = (double)(1000 - i) / (double)1000;
  }
  alpha = 0.315;
  iters = 100000;
  tnotim = 0.0;
  while (tnotim <= 0.0) {
    t1 = SuperLU_timer_();
    for (j = 0; j < iters; ++j) {
      for (i = 0; i < 1000; ++i)
        y[i] += alpha * x[i];
      alpha = -alpha;
    }
    t2 = SuperLU_timer_();
    tnotim = t2 - t1;
    if (tnotim > 0.) {
      float ops = 2.0 * iters * 1000 * 1e-9;
      printf("Time for %d DAXPYs = %10.3g seconds\n", iters, tnotim);
      printf("DAXPY performance rate = %10.3g Gflops\n", ops / tnotim);
    } else {
      if (iters > 100000000) {
        printf("*** Error: Time for operations was zero.\n"
               "\tThe timer may not be working correctly.\n");
      }
      iters *= 10;
    }
  }
  printf("y[0]=%g\n", y[0]);
  t1 = SuperLU_timer_();
  for (j = 0; j < 100000; ++j) {
    for (i = 0; i < 1000; ++i)
      y[i] += alpha * x[i];
    alpha = -alpha;
  }
  t2 = SuperLU_timer_();
  tnotim = t2 - t1;
  t1 = SuperLU_timer_();
  for (j = 0; j < 100000; ++j) {
    for (i = 0; i < 1000; ++i)
      y[i] += alpha * x[i];
    alpha = -alpha;
    t2 = SuperLU_timer_();
  }
  printf("Including DSECND, time        = %10.3g seconds\n", t2 - t1);
  avg = ((t2 - t1) - tnotim) * 1000. / (double)100000;
  printf("Average time for DSECND       = %10.3g milliseconds\n", avg);
  if (tnotim > 0.)
    printf("Equivalent floating point ops = %10.3g ops\n", 1000. * avg / tnotim);
  mysub(1000, x, y);
  return 0;
}
```