user: 请将以下的汇编代码转换成C语言代码：

```asm
<LinearADR_Sine_r>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x130,%rsp
  mov    %rdi,-0xf8(%rbp)
  mov    %rsi,-0x100(%rbp)
  mov    %edx,-0x104(%rbp)
  movsd  %xmm0,-0x110(%rbp)
  mov    %rcx,-0x118(%rbp)
  mov    %r8,-0x120(%rbp)
  mov    %r9,-0x128(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x100(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x8(%rax),%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x10(%rax),%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x18(%rax),%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x20(%rax),%xmm0
  movsd  %xmm0,-0x90(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x28(%rax),%xmm0
  movsd  %xmm0,-0x88(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x30(%rax),%xmm0
  movsd  %xmm0,-0x80(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x38(%rax),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x40(%rax),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x48(%rax),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x50(%rax),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x58(%rax),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x60(%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x68(%rax),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x70(%rax),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x78(%rax),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x100(%rbp),%rax
  movsd  0x80(%rax),%xmm0
  movsd  %xmm0,-0xd0(%rbp)
  mov    -0x120(%rbp),%r8
  mov    -0x118(%rbp),%rcx
  mov    -0x110(%rbp),%rdi
  mov    -0x104(%rbp),%edx
  mov    -0x100(%rbp),%rsi
  mov    -0xf8(%rbp),%rax
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <LinearADR_Sine@plt>
  mov    %eax,-0xdc(%rbp)
  movl   $0x0,-0xe0(%rbp)
  jmp    L10
L35:
  mov    -0xe0(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rbp,%rax
  sub    $0x50,%rax
  movsd  (%rax),%xmm1
  movsd  -0xb0(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0xe0(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rbp,%rax
  sub    $0x48,%rax
  movsd  (%rax),%xmm2
  movsd  -0xa8(%rbp),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  mov    -0xe0(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  add    %rbp,%rax
  sub    $0x40,%rax
  movsd  (%rax),%xmm2
  movsd  -0xa0(%rbp),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  mov    -0xe0(%rbp),%eax
  cltq
  movsd  %xmm0,-0x70(%rbp,%rax,8)
  addl   $0x1,-0xe0(%rbp)
L10:
  cmpl   $0x2,-0xe0(%rbp)
  jle    L35
  movsd  -0x70(%rbp),%xmm1
  movsd  -0xb0(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x68(%rbp),%xmm2
  movsd  -0xa8(%rbp),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x60(%rbp),%xmm2
  movsd  -0xa0(%rbp),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movq   D8(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  subsd  -0xd0(%rbp),%xmm0
  movsd  %xmm0,-0xc8(%rbp)
  movsd  -0x90(%rbp),%xmm1
  movsd  -0xb0(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x88(%rbp),%xmm2
  movsd  -0xa8(%rbp),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x80(%rbp),%xmm2
  movsd  -0xa0(%rbp),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movq   D8(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0xc0(%rbp)
  movl   $0x0,-0xe4(%rbp)
  jmp    L28
L16:
  movsd  -0xb0(%rbp),%xmm1
  mov    -0xe4(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x118(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0xa8(%rbp),%xmm2
  mov    -0xe4(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x118(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xa0(%rbp),%xmm2
  mov    -0xe4(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x118(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0xd8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  mov    -0xe4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x120(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0xd0(%rbp),%xmm0
  movsd  %xmm0,-0x130(%rbp)
  mov    -0xb8(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm4
  mulsd  -0xc0(%rbp),%xmm4
  movapd %xmm4,%xmm0
  movapd %xmm0,%xmm5
  addsd  -0x130(%rbp),%xmm5
  movsd  %xmm5,-0x130(%rbp)
  mov    -0xb8(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mulsd  -0xc8(%rbp),%xmm0
  mov    -0xe4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  addsd  -0x130(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0xe4(%rbp)
L28:
  mov    -0xe4(%rbp),%eax
  cmp    -0x104(%rbp),%eax
  jl     L16
  mov    -0xdc(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L49
  call   <__stack_chk_fail@plt>
L49:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D8
datatype: byte[8]

tool: {"D8": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

assistant: ```c
int LinearADR_Sine_r(int *iwork, double *rwork, int nPoints, double t, double *x, double *u, double *r) {
  int i, j, iret;
  double omega[3] = {rwork[0], rwork[1], rwork[2]};
  double omega0 = rwork[3];
  double b[3] = {rwork[4], rwork[5], rwork[6]};
  double a[3][3] = {{rwork[7], rwork[8], rwork[9]}, {rwork[10], rwork[11], rwork[12]}, {rwork[13], rwork[14], rwork[15]}};
  double c = rwork[16];
  double Y, D, E;
  double MM[3];
  iret = LinearADR_Sine(iwork, rwork, nPoints, t, x, u);
  for (j = 0; j < 3; j++) {
    MM[j] = a[j][0] * omega[0] + a[j][1] * omega[1] + a[j][2] * omega[2];
  }
  E = -(MM[0] * omega[0] + MM[1] * omega[1] + MM[2] * omega[2]) - c;
  D = -(b[0] * omega[0] + b[1] * omega[1] + b[2] * omega[2]);
  for (i = 0; i < nPoints; i++) {
    Y = omega[0] * x[i * 3 + 0] + omega[1] * x[i * 3 + 1] + omega[2] * x[i * 3 + 2] + omega0;
    r[i] = c * u[i] + D * cos(Y) + E * sin(Y);
  }
  return iret;
}
```