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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0xd000(%rsp),%r11
L63:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L63
  sub    $0xb00,%rsp
  mov    %edi,-0xdaf4(%rbp)
  mov    %rsi,-0xdb00(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x64,-0xdaec(%rbp)
  cmpl   $0x3e7,-0xdaec(%rbp)
  jle    L38
  mov    -0xdaec(%rbp),%eax
  mov    $0x3e8,%edx
  mov    %eax,%esi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L38:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xdad8(%rbp)
  movsd  -0xdad8(%rbp),%xmm0
  movsd  %xmm0,-0xdae0(%rbp)
  movsd  -0xdae0(%rbp),%xmm0
  movsd  %xmm0,-0xdae8(%rbp)
  movl   $0x0,-0xdaf0(%rbp)
  jmp    L10
L60:
  mov    -0xdaf0(%rbp),%eax
  add    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0xdaec(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0xdaf0(%rbp),%eax
  cltq
  movsd  %xmm0,-0xdad0(%rbp,%rax,8)
  mov    -0xdaf0(%rbp),%eax
  cltq
  mov    -0xdad0(%rbp,%rax,8),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  mov    -0xdaf0(%rbp),%edx
  movslq %edx,%rdx
  mov    %rax,-0xbb90(%rbp,%rdx,8)
  mov    -0xdaf0(%rbp),%eax
  cltq
  mov    -0xdad0(%rbp,%rax,8),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rax
  mov    -0xdaf0(%rbp),%edx
  movslq %edx,%rdx
  add    $0x3e8,%rdx
  mov    %rax,-0xbb90(%rbp,%rdx,8)
  mov    -0xdaf0(%rbp),%eax
  cltq
  mov    -0xdad0(%rbp,%rax,8),%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  mov    -0xdaf0(%rbp),%edx
  movslq %edx,%rdx
  add    $0x7d0,%rdx
  mov    %rax,-0xbb90(%rbp,%rdx,8)
  mov    -0xdaf0(%rbp),%eax
  cltq
  movsd  -0xbb90(%rbp,%rax,8),%xmm0
  movsd  -0xdae8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xdae8(%rbp)
  mov    -0xdaf0(%rbp),%eax
  cltq
  add    $0x3e8,%rax
  movsd  -0xbb90(%rbp,%rax,8),%xmm0
  movsd  -0xdae0(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xdae0(%rbp)
  mov    -0xdaf0(%rbp),%eax
  cltq
  add    $0x7d0,%rax
  movsd  -0xbb90(%rbp,%rax,8),%xmm0
  movsd  -0xdad8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xdad8(%rbp)
  mov    -0xdaf0(%rbp),%eax
  cltq
  add    $0xbb8,%rax
  movsd  -0xdae8(%rbp),%xmm0
  movsd  %xmm0,-0xbb90(%rbp,%rax,8)
  mov    -0xdaf0(%rbp),%eax
  cltq
  add    $0xfa0,%rax
  movsd  -0xdae0(%rbp),%xmm0
  movsd  %xmm0,-0xbb90(%rbp,%rax,8)
  mov    -0xdaf0(%rbp),%eax
  cltq
  add    $0x1388,%rax
  movsd  -0xdad8(%rbp),%xmm0
  movsd  %xmm0,-0xbb90(%rbp,%rax,8)
  addl   $0x1,-0xdaf0(%rbp)
L10:
  mov    -0xdaf0(%rbp),%eax
  cmp    -0xdaec(%rbp),%eax
  jl     L60
  mov    -0xdaec(%rbp),%eax
  lea    -0xbb90(%rbp),%rdx
  add    $0x5dc0,%rdx
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <normalize@plt>
  mov    -0xdaec(%rbp),%eax
  lea    -0xbb90(%rbp),%rdx
  add    $0x7d00,%rdx
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <normalize@plt>
  mov    -0xdaec(%rbp),%eax
  lea    -0xbb90(%rbp),%rdx
  add    $0x9c40,%rdx
  mov    %eax,%esi
  mov    %rdx,%rdi
  call   <normalize@plt>
  movl   $0x0,-0xdaf0(%rbp)
  jmp    L3
L36:
  mov    -0xdaf0(%rbp),%eax
  cltq
  mov    -0xdad0(%rbp,%rax,8),%rax
  movq   %rax,%xmm0
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0xdaf0(%rbp),%eax
  cltq
  add    $0x7d0,%rax
  movsd  -0xbb90(%rbp,%rax,8),%xmm1
  mov    -0xdaf0(%rbp),%eax
  cltq
  add    $0x3e8,%rax
  movsd  -0xbb90(%rbp,%rax,8),%xmm0
  mov    -0xdaf0(%rbp),%eax
  cltq
  mov    -0xbb90(%rbp,%rax,8),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  mov    -0xdaf0(%rbp),%eax
  cltq
  add    $0x1388,%rax
  movsd  -0xbb90(%rbp,%rax,8),%xmm1
  mov    -0xdaf0(%rbp),%eax
  cltq
  add    $0xfa0,%rax
  movsd  -0xbb90(%rbp,%rax,8),%xmm0
  mov    -0xdaf0(%rbp),%eax
  cltq
  add    $0xbb8,%rax
  mov    -0xbb90(%rbp,%rax,8),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0xdaf0(%rbp)
L3:
  mov    -0xdaf0(%rbp),%eax
  cmp    -0xdaec(%rbp),%eax
  jl     L36
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L68
  call   <__stack_chk_fail@plt>
L68:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D5
type: string
name: unpack_data
arguments: data_label: D20
type: string
name: unpack_data
arguments: data_label: D4
type: string

tool: D5: npt=%d too large -or- MAXROW=%d too small


tool: D20: %g

tool: D4:  %g %g %g

assistant: ```c
int main(int argc, char *argv[]) {
  int i, j, npt;
  double x[1000], y[6][1000], sum0, sum1, sum2;
  npt = 100;
  if (npt >= 1000) {
    printf("npt=%d too large -or- MAXROW=%d too small\n", npt, 1000);
    exit(1);
  }
  sum0 = sum1 = sum2 = 0.0;
  for (i = 0; i < npt; i++) {
    x[i] = (double)(i + 1) / (double)npt;
    y[0][i] = sqrt(x[i]);
    y[1][i] = log(x[i]);
    y[2][i] = exp(x[i]);
    sum0 += y[0][i];
    sum1 += y[1][i];
    sum2 += y[2][i];
    y[3][i] = sum0;
    y[4][i] = sum1;
    y[5][i] = sum2;
  }
  normalize(y[3], npt);
  normalize(y[4], npt);
  normalize(y[5], npt);
  for (i = 0; i < npt; i++) {
    printf("%g", x[i]);
    printf(" %g %g %g", y[0][i], y[1][i], y[2][i]);
    printf(" %g %g %g", y[3][i], y[4][i], y[5][i]);
    printf("\n");
  }
  return 0;
}
```