user: 请从给定的汇编指令推导出C源代码:

```asm
<rkqs>:
  endbr64
  push   %r15
  movapd %xmm0,%xmm3
  push   %r14
  push   %r13
  movslq %edx,%r13
  push   %r12
  lea    0x0(,%r13,8),%rax
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %r13,%rbx
  mov    %r8,%r13
  sub    $0x38,%rsp
  movsd  (%rcx),%xmm0
  mov    0x78(%rsp),%r15
  mov    %rsi,0x10(%rsp)
  mov    %rcx,0x18(%rsp)
  lea    (%r15,%rax,1),%r12
  mov    %r9,0x28(%rsp)
  mov    %r15,%r14
  mov    %rbx,%r15
  add    %r12,%rax
  movsd  %xmm1,0x20(%rsp)
  mov    %rax,0x8(%rsp)
  mov    0x80(%rsp),%rax
  movl   $0x0,(%rax)
  nopl   0x0(%rax,%rax,1)
L102:
  mov    0x8(%rsp),%r9
  mov    0x10(%rsp),%rsi
  movapd %xmm3,%xmm1
  mov    %ebx,%edx
  mov    %r14,%r8
  mov    %r12,%rcx
  mov    %rbp,%rdi
  mov    $0x2,%eax
  movsd  %xmm3,(%rsp)
  call   <rkck@plt>
  test   %ebx,%ebx
  movsd  (%rsp),%xmm3
  movq   D79(%rip),%xmm2
  jle    L116
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  nopl   0x0(%rax,%rax,1)
L31:
  movsd  (%r14,%rax,8),%xmm1
  divsd  0x0(%r13,%rax,8),%xmm1
  add    $0x1,%rax
  andpd  %xmm2,%xmm1
  maxsd  %xmm1,%xmm0
  cmp    %r15,%rax
  jne    L31
  divsd  0x20(%rsp),%xmm0
  comisd D2(%rip),%xmm0
  jbe    L83
L41:
  mov    D32(%rip),%rax
  movsd  %xmm3,(%rsp)
  movq   %rax,%xmm1
  call   <pow@plt>
  movsd  (%rsp),%xmm3
  pxor   %xmm5,%xmm5
  movapd %xmm0,%xmm1
  movsd  D15(%rip),%xmm0
  comisd %xmm5,%xmm3
  mulsd  %xmm3,%xmm0
  mulsd  D77(%rip),%xmm3
  mulsd  %xmm1,%xmm0
  jb     L34
  maxsd  %xmm3,%xmm0
  movapd %xmm0,%xmm3
L18:
  mov    0x18(%rsp),%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  addsd  %xmm3,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L102
  jne    L102
  mov    0x80(%rsp),%rax
  movl   $0x1,(%rax)
  add    $0x38,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L34:
  minsd  %xmm3,%xmm0
  movapd %xmm0,%xmm3
  jmp    L18
  nopw   0x0(%rax,%rax,1)
L116:
  pxor   %xmm0,%xmm0
  divsd  0x20(%rsp),%xmm0
  comisd D2(%rip),%xmm0
  ja     L41
L83:
  comisd D73(%rip),%xmm0
  mov    %r15,%r13
  ja     L55
  movsd  D81(%rip),%xmm0
  mulsd  %xmm3,%xmm0
L0:
  mov    0x70(%rsp),%rax
  movsd  %xmm0,(%rax)
  mov    0x28(%rsp),%rax
  movsd  %xmm3,(%rax)
  mov    0x18(%rsp),%rax
  addsd  (%rax),%xmm3
  movsd  %xmm3,(%rax)
  xor    %eax,%eax
  test   %ebx,%ebx
  jle    L85
  cs nopw 0x0(%rax,%rax,1)
L29:
  movsd  (%r12,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r13
  jne    L29
L85:
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L55:
  movsd  D78(%rip),%xmm1
  movsd  %xmm3,(%rsp)
  call   <pow@plt>
  movsd  (%rsp),%xmm3
  movapd %xmm0,%xmm1
  movsd  D15(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm1,%xmm0
  jmp    L0
```

tool_calls: name: parse_data
arguments: tag: D79
data_type: qword
name: parse_data
arguments: tag: D2
data_type: f64[2]
name: parse_data
arguments: tag: D32
data_type: f32[2]
name: parse_data
arguments: tag: D15
data_type: f64
name: parse_data
arguments: tag: D77
data_type: f64
name: parse_data
arguments: tag: D73
data_type: byte[16]
name: parse_data
arguments: tag: D81
data_type: f64
name: parse_data
arguments: tag: D78
data_type: byte[8]

tool: D79: 9223372036854775807

tool: {"D2": [1.0,-0.25]}

tool: {"D32": [0.0,-1.625]}

tool: D15: 0.9

tool: D77: 0.1

tool: {"D73": [0xc3,0xa0,0x4c,0xa3,0xc9,0xc5,0x28,0x3f,0x9a,0x99,0x99,0x99,0x99,0x99,0xc9,0xbf]}

tool: D81: 5

tool: {"D78": [0x9a,0x99,0x99,0x99,0x99,0x99,0xc9,0xbf]}

assistant: ```c
int rkqs(y, dydx, n, x, htry, eps, yscal, hdid, hnext, work, ier)
double *hdid, *hnext, *x, *dydx, eps, htry, *y, *yscal, *work;
int n, *ier;
{
  int i;
  double errmax, h, htemp, xnew, *yerr, *ytemp;
  double *work2;
  yerr = work;
  ytemp = work + n;
  work2 = ytemp + n;
  h = htry;
  *ier = 0;
  for (;;) {
    rkck(y, dydx, n, *x, h, ytemp, yerr, work2);
    errmax = 0.0;
    for (i = 0; i < n; i++)
      errmax = ((errmax) > (fabs(yerr[i] / yscal[i])) ? (errmax) : (fabs(yerr[i] / yscal[i])));
    errmax /= eps;
    if (errmax > 1.0) {
      htemp = 0.9 * h * pow(errmax, -0.25);
      h = (h >= 0.0 ? ((htemp) > (0.1 * h) ? (htemp) : (0.1 * h)) : ((htemp) < (0.1 * h) ? (htemp) : (0.1 * h)));
      xnew = (*x) + h;
      if (xnew == *x) {
        *ier = 1;
        return -1;
      }
      continue;
    } else {
      if (errmax > 1.89e-4)
        *hnext = 0.9 * h * pow(errmax, -0.2);
      else
        *hnext = 5.0 * h;
      *x += (*hdid = h);
      for (i = 0; i < n; i++)
        y[i] = ytemp[i];
      break;
    }
  }
  return 0;
}
```