user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x1f4,%esi
  mov    $0x1,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    $0x4,%ebx
  sub    $0xa8,%rsp
  movaps %xmm7,0x10(%rsp)
  lea    0x90(%rsp),%r12
  movaps %xmm6,(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  movq   $0xfffffffffffffffb,0x90(%rsp)
  call   <vector@plt>
  mov    $0x1f4,%esi
  mov    $0x1,%edi
  mov    %rax,%rbp
  call   <vector@plt>
  mov    $0x1f4,%esi
  mov    $0x1,%edi
  mov    %rax,%r13
  call   <vector@plt>
  lea    D110(%rip),%rdx
  lea    D143(%rip),%rsi
  lea    D113(%rip),%rdi
  mov    %rax,%r14
  xor    %eax,%eax
  call   <printf@plt>
  lea    D125(%rip),%r9
  xor    %eax,%eax
  lea    D55(%rip),%r8
  mov    %r9,%rcx
  mov    %r8,%rdx
  lea    D122(%rip),%rsi
  lea    D21(%rip),%rdi
  call   <printf@plt>
  movaps 0x10(%rsp),%xmm7
  movaps (%rsp),%xmm6
  xchg   %ax,%ax
L11:
  mov    %r12,%rdi
  movaps %xmm7,0x20(%rsp)
  movaps %xmm6,0x10(%rsp)
  call   <gasdev@plt>
  pxor   %xmm1,%xmm1
  mov    %r12,%rdi
  cvtsd2ss %xmm0,%xmm1
  movss  %xmm1,0x0(%rbp,%rbx,1)
  movss  %xmm1,(%rsp)
  call   <gasdev@plt>
  mulsd  D116(%rip),%xmm0
  movss  (%rsp),%xmm1
  mov    %r12,%rdi
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x0(%r13,%rbx,1)
  call   <gasdev@plt>
  mov    %r12,%rdi
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r14,%rbx,1)
  call   <gasdev@plt>
  pxor   %xmm1,%xmm1
  movaps 0x10(%rsp),%xmm6
  movaps 0x20(%rsp),%xmm7
  mulsd  D116(%rip),%xmm0
  cvtss2sd (%r14,%rbx,1),%xmm1
  addsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,(%r14,%rbx,1)
  add    $0x4,%rbx
  cmp    $0x7d4,%rbx
  jne    L11
  lea    0x84(%rsp),%rcx
  lea    0x68(%rsp),%rdx
  mov    $0x1f4,%esi
  mov    %rbp,%rdi
  movaps %xmm7,0x10(%rsp)
  movaps %xmm6,(%rsp)
  call   <avevar@plt>
  lea    0x88(%rsp),%rcx
  lea    0x6c(%rsp),%rdx
  mov    %r13,%rdi
  mov    $0x1f4,%esi
  call   <avevar@plt>
  lea    0x8c(%rsp),%rcx
  lea    0x70(%rsp),%rdx
  mov    %r14,%rdi
  mov    $0x1f4,%esi
  call   <avevar@plt>
  movaps 0x10(%rsp),%xmm7
  movaps (%rsp),%xmm6
  mov    $0x4,%eax
  movss  D22(%rip),%xmm2
  nop
L3:
  movss  0x68(%rsp),%xmm1
  movss  0x0(%rbp,%rax,1),%xmm0
  subss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,0x0(%rbp,%rax,1)
  movss  0x0(%r13,%rax,1),%xmm0
  subss  0x6c(%rsp),%xmm0
  movss  %xmm0,0x0(%r13,%rax,1)
  movss  (%r14,%rax,1),%xmm0
  subss  0x70(%rsp),%xmm0
  movss  %xmm0,(%r14,%rax,1)
  add    $0x4,%rax
  cmp    $0x7d4,%rax
  jne    L3
  lea    0x4(%r13),%rdx
  lea    0x14(%r14),%rax
  mov    $0x1,%r9d
  movsd  D118(%rip),%xmm8
  cmp    %rax,%rdx
  jae    L9
  lea    0x4(%r14),%rdx
  lea    0x14(%r13),%rax
  cmp    %rax,%rdx
  jb     L52
L9:
  lea    0x7c(%rsp),%rax
  movapd D118(%rip),%xmm5
  lea    0x74(%rsp),%r15
  mov    %rax,0x58(%rsp)
  lea    0x78(%rsp),%rax
  lea    0x80(%rsp),%r12
  mov    %rax,0x50(%rsp)
  lea    D141(%rip),%rbx
L22:
  pxor   %xmm0,%xmm0
  mov    $0x4,%eax
  cvtsi2sd %r9d,%xmm0
  mulsd  %xmm8,%xmm0
  cvtsd2ss %xmm0,%xmm0
L19:
  movlps 0x8(%r13,%rax,1),%xmm6
  cvtps2pd 0x0(%r13,%rax,1),%xmm1
  addpd  %xmm5,%xmm1
  cvtps2pd %xmm6,%xmm2
  addpd  %xmm5,%xmm2
  cvtpd2ps %xmm1,%xmm1
  cvtpd2ps %xmm2,%xmm2
  movlhps %xmm2,%xmm1
  movups %xmm1,0x0(%r13,%rax,1)
  cvtps2pd (%r14,%rax,1),%xmm1
  addpd  %xmm5,%xmm1
  movlps 0x8(%r14,%rax,1),%xmm7
  cvtps2pd %xmm7,%xmm2
  addpd  %xmm5,%xmm2
  cvtpd2ps %xmm1,%xmm1
  cvtpd2ps %xmm2,%xmm2
  movlhps %xmm2,%xmm1
  movups %xmm1,(%r14,%rax,1)
  add    $0x10,%rax
  cmp    $0x7d4,%rax
  jne    L19
  mov    0x58(%rsp),%rcx
  mov    %r15,%r8
  mov    $0x1f4,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %r9d,0x10(%rsp)
  movsd  %xmm8,0x48(%rsp)
  movaps %xmm7,0x30(%rsp)
  movaps %xmm6,0x20(%rsp)
  movss  %xmm0,(%rsp)
  call   <tptest@plt>
  mov    0x50(%rsp),%r8
  mov    %r12,%rcx
  mov    %r14,%rsi
  mov    $0x1f4,%edx
  mov    %rbp,%rdi
  call   <tptest@plt>
  pxor   %xmm4,%xmm4
  pxor   %xmm3,%xmm3
  mov    %rbx,%rdi
  movss  (%rsp),%xmm0
  pxor   %xmm2,%xmm2
  pxor   %xmm1,%xmm1
  mov    $0x5,%eax
  cvtss2sd 0x78(%rsp),%xmm4
  cvtss2sd 0x74(%rsp),%xmm2
  cvtss2sd 0x80(%rsp),%xmm3
  cvtss2sd 0x7c(%rsp),%xmm1
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  mov    0x10(%rsp),%r9d
  movaps 0x20(%rsp),%xmm6
  movaps 0x30(%rsp),%xmm7
  movsd  0x48(%rsp),%xmm8
  add    $0x1,%r9d
  movapd D118(%rip),%xmm5
  cmp    $0xc,%r9d
  jne    L22
L21:
  mov    $0x1f4,%edx
  mov    $0x1,%esi
  mov    %r14,%rdi
  call   <free_vector@plt>
  mov    $0x1f4,%edx
  mov    $0x1,%esi
  mov    %r13,%rdi
  call   <free_vector@plt>
  mov    $0x1f4,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <free_vector@plt>
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L82
  add    $0xa8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L52:
  lea    0x7c(%rsp),%rax
  lea    0x74(%rsp),%r15
  mov    %rax,0x58(%rsp)
  lea    0x78(%rsp),%rax
  lea    0x80(%rsp),%r12
  mov    %rax,0x50(%rsp)
  lea    D141(%rip),%rbx
L46:
  pxor   %xmm0,%xmm0
  mov    $0x4,%eax
  cvtsi2sd %r9d,%xmm0
  mulsd  %xmm8,%xmm0
  cvtsd2ss %xmm0,%xmm0
  nopw   0x0(%rax,%rax,1)
L57:
  pxor   %xmm1,%xmm1
  cvtss2sd 0x0(%r13,%rax,1),%xmm1
  addsd  %xmm8,%xmm1
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,0x0(%r13,%rax,1)
  pxor   %xmm1,%xmm1
  cvtss2sd (%r14,%rax,1),%xmm1
  addsd  %xmm8,%xmm1
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,(%r14,%rax,1)
  add    $0x4,%rax
  cmp    $0x7d4,%rax
  jne    L57
  mov    0x58(%rsp),%rcx
  mov    %r15,%r8
  mov    $0x1f4,%edx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %r9d,0x10(%rsp)
  movsd  %xmm8,0x20(%rsp)
  movss  %xmm0,(%rsp)
  call   <tptest@plt>
  mov    0x50(%rsp),%r8
  mov    %r12,%rcx
  mov    %r14,%rsi
  mov    $0x1f4,%edx
  mov    %rbp,%rdi
  call   <tptest@plt>
  pxor   %xmm4,%xmm4
  pxor   %xmm3,%xmm3
  mov    %rbx,%rdi
  movss  (%rsp),%xmm0
  pxor   %xmm2,%xmm2
  pxor   %xmm1,%xmm1
  mov    $0x5,%eax
  cvtss2sd 0x78(%rsp),%xmm4
  cvtss2sd 0x74(%rsp),%xmm2
  cvtss2sd 0x80(%rsp),%xmm3
  cvtss2sd 0x7c(%rsp),%xmm1
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  mov    0x10(%rsp),%r9d
  movsd  0x20(%rsp),%xmm8
  add    $0x1,%r9d
  cmp    $0xc,%r9d
  jne    L46
  jmp    L21
L82:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D110
type: string
name: unpack_data
arguments: data_label: D143
type: string
name: unpack_data
arguments: data_label: D113
type: string
name: unpack_data
arguments: data_label: D125
type: string
name: unpack_data
arguments: data_label: D55
type: string
name: unpack_data
arguments: data_label: D122
type: string
name: unpack_data
arguments: data_label: D21
type: string
name: unpack_data
arguments: data_label: D116
type: f64
name: unpack_data
arguments: data_label: D22
type: byte[4]
name: unpack_data
arguments: data_label: D118
type: f64[2]
name: unpack_data
arguments: data_label: D141
type: string

tool: D110: Uncorrelated:

tool: D143: Correlated:

tool: D113: %29s %31s


tool: D125: Probability

tool: D55: t

tool: D122: Shift

tool: D21: %7s %11s %17s %11s %17s


tool: D116: 0.3

tool: {"D22": [0xcd,0xcc,0x4c,0x3d]}

tool: {"D118": [0.01,0.01]}

tool: D141: %6.2f %14.4f %12.4f %16.4f %12.4f


assistant: ```c
int main(void) {
  long idum = (-5);
  int i, j;
  float ave1, ave2, ave3;
  float offset, prob1, prob2, shift, t1, t2;
  float var1, var2, var3, *data1, *data2, *data3;
  data1 = vector(1, 500);
  data2 = vector(1, 500);
  data3 = vector(1, 500);
  printf("%29s %31s\n", "Correlated:", "Uncorrelated:");
  printf("%7s %11s %17s %11s %17s\n", "Shift", "t", "Probability", "t", "Probability");
  offset = (11 / 2) * 0.01;
  for (j = 1; j <= 500; j++) {
    data1[j] = gasdev(&idum);
    data2[j] = data1[j] + 0.3 * gasdev(&idum);
    data3[j] = gasdev(&idum);
    data3[j] += 0.3 * gasdev(&idum);
  }
  avevar(data1, 500, &ave1, &var1);
  avevar(data2, 500, &ave2, &var2);
  avevar(data3, 500, &ave3, &var3);
  for (j = 1; j <= 500; j++) {
    data1[j] -= ave1 - offset;
    data2[j] -= ave2;
    data3[j] -= ave3;
  }
  for (i = 1; i <= 11; i++) {
    shift = i * 0.01;
    for (j = 1; j <= 500; j++) {
      data2[j] += 0.01;
      data3[j] += 0.01;
    }
    tptest(data1, data2, 500, &t1, &prob1);
    tptest(data1, data3, 500, &t2, &prob2);
    printf("%6.2f %14.4f %12.4f %16.4f %12.4f\n", shift, t1, prob1, t2, prob2);
  }
  free_vector(data3, 1, 500);
  free_vector(data2, 1, 500);
  free_vector(data1, 1, 500);
  return 0;
}
```