user: Please show me the C implementation that matches the assembly code listed below:

```asm
<leech_three_rk4>:
  endbr64
  push   %r15
  movapd %xmm0,%xmm5
  movapd %xmm0,%xmm6
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x2e8,%rsp
  movsd  D18(%rip),%xmm7
  divsd  D19(%rip),%xmm5
  mov    %edx,0x4c(%rsp)
  mulsd  %xmm0,%xmm7
  mov    %r9,0x80(%rsp)
  movsd  %xmm0,0x70(%rsp)
  movsd  (%rdi),%xmm0
  mov    %fs:0x28,%rdx
  mov    %rdx,0x2d8(%rsp)
  xor    %edx,%edx
  movsd  %xmm5,0x78(%rsp)
  movsd  %xmm7,0x40(%rsp)
  movapd %xmm7,%xmm4
  movapd %xmm5,%xmm7
  unpcklpd %xmm7,%xmm7
  movapd %xmm7,%xmm5
  movdqu 0x8(%rcx),%xmm7
  movaps %xmm7,0x270(%rsp)
  movdqu 0x18(%rcx),%xmm7
  movaps %xmm7,0x280(%rsp)
  movdqu 0x28(%rcx),%xmm7
  movaps %xmm7,0x290(%rsp)
  movdqu 0x38(%rcx),%xmm7
  movaps %xmm7,0x2a0(%rsp)
  movdqu 0x48(%rcx),%xmm7
  movaps %xmm7,0x2b0(%rsp)
  movdqu 0x58(%rcx),%xmm7
  movsd  %xmm0,(%r9)
  movsd  0x18(%rdi),%xmm0
  movaps %xmm7,0x2c0(%rsp)
  movsd  %xmm0,0x8(%r9)
  movsd  0x30(%rdi),%xmm0
  movsd  %xmm0,0x10(%r9)
  cmp    $0x1,%esi
  jbe    L14
  lea    (%rsi,%rsi,2),%eax
  mov    %rdi,%r12
  unpcklpd %xmm6,%xmm6
  mov    %r8,%r13
  mov    %eax,0x8c(%rsp)
  unpcklpd %xmm4,%xmm4
  lea    0x270(%rsp),%rbp
  movl   $0x3,0x88(%rsp)
  nopl   0x0(%rax,%rax,1)
L17:
  mov    0x4c(%rsp),%eax
  test   %eax,%eax
  je     L32
  lea    0x130(%rsp),%rax
  xor    %r14d,%r14d
  lea    0x180(%rsp),%r15
  mov    %rax,0x68(%rsp)
  lea    0x90(%rsp),%rax
  lea    0xe0(%rsp),%rbx
  mov    %rax,0x58(%rsp)
  lea    0x1d0(%rsp),%rax
  mov    %rax,0x60(%rsp)
  lea    0x220(%rsp),%rax
  mov    %rax,0x50(%rsp)
  mov    %r12,%rax
  mov    %r14d,%r12d
  mov    %rax,%r14
  nopl   0x0(%rax)
L39:
  mov    0x68(%rsp),%rsi
  mov    %r13,%rcx
  mov    %rbp,%rdx
  mov    %r14,%rdi
  movaps %xmm6,0x30(%rsp)
  add    $0x1,%r12d
  movaps %xmm4,(%rsp)
  movaps %xmm5,0x20(%rsp)
  call   <derivs_three@plt>
  movapd (%rsp),%xmm4
  mov    %r13,%rcx
  mov    %rbp,%rdx
  movupd 0x10(%r14),%xmm5
  movupd 0x20(%r14),%xmm7
  mov    %r15,%rsi
  movapd 0x140(%rsp),%xmm2
  mov    0x58(%rsp),%rdi
  movapd 0x160(%rsp),%xmm0
  movapd 0x150(%rsp),%xmm1
  movapd 0x130(%rsp),%xmm3
  mulpd  %xmm4,%xmm2
  mulpd  %xmm4,%xmm0
  mulpd  %xmm4,%xmm1
  mulpd  %xmm4,%xmm3
  addpd  %xmm5,%xmm2
  movupd 0x30(%r14),%xmm5
  addpd  %xmm5,%xmm0
  addpd  %xmm7,%xmm1
  movupd (%r14),%xmm7
  movaps %xmm2,0xa0(%rsp)
  addpd  %xmm7,%xmm3
  movaps %xmm0,0xc0(%rsp)
  movsd  0x40(%rsp),%xmm0
  mulsd  0x170(%rsp),%xmm0
  addsd  0x40(%r14),%xmm0
  movaps %xmm1,0xb0(%rsp)
  movaps %xmm3,0x90(%rsp)
  movsd  %xmm0,0xd0(%rsp)
  call   <derivs_three@plt>
  movapd (%rsp),%xmm4
  mov    %r13,%rcx
  mov    %rbp,%rdx
  movupd 0x20(%r14),%xmm7
  movupd 0x10(%r14),%xmm5
  mov    %rbx,%rdi
  movapd %xmm4,%xmm3
  mov    0x60(%rsp),%rsi
  movaps %xmm4,0x10(%rsp)
  movapd 0x1a0(%rsp),%xmm1
  movapd 0x190(%rsp),%xmm2
  mulpd  0x180(%rsp),%xmm3
  mulpd  %xmm4,%xmm1
  mulpd  %xmm4,%xmm2
  addpd  %xmm7,%xmm1
  movapd 0x1b0(%rsp),%xmm7
  addpd  %xmm5,%xmm2
  movupd 0x30(%r14),%xmm5
  mulpd  %xmm4,%xmm7
  movaps %xmm1,0x100(%rsp)
  movaps %xmm2,0xf0(%rsp)
  movapd %xmm7,%xmm0
  movupd (%r14),%xmm7
  addpd  %xmm5,%xmm0
  addpd  %xmm7,%xmm3
  movaps %xmm0,0x110(%rsp)
  movsd  0x40(%rsp),%xmm0
  mulsd  0x1c0(%rsp),%xmm0
  addsd  0x40(%r14),%xmm0
  movaps %xmm3,0xe0(%rsp)
  movsd  %xmm0,0x120(%rsp)
  call   <derivs_three@plt>
  movapd 0x30(%rsp),%xmm6
  mov    0x50(%rsp),%rsi
  mov    %r13,%rcx
  movapd 0x200(%rsp),%xmm0
  movupd 0x30(%r14),%xmm7
  mov    %rbp,%rdx
  mov    %rbx,%rdi
  movapd %xmm6,%xmm3
  movupd 0x10(%r14),%xmm4
  movupd 0x20(%r14),%xmm5
  movaps %xmm6,(%rsp)
  movapd 0x1e0(%rsp),%xmm2
  mulpd  %xmm6,%xmm0
  movapd 0x1f0(%rsp),%xmm1
  mulpd  0x1d0(%rsp),%xmm3
  mulpd  %xmm6,%xmm2
  mulpd  %xmm6,%xmm1
  movupd (%r14),%xmm6
  addpd  %xmm7,%xmm0
  addpd  %xmm6,%xmm3
  addpd  %xmm4,%xmm2
  movaps %xmm0,0x110(%rsp)
  movsd  0x70(%rsp),%xmm0
  addpd  %xmm5,%xmm1
  mulsd  0x210(%rsp),%xmm0
  addsd  0x40(%r14),%xmm0
  movaps %xmm3,0xe0(%rsp)
  movaps %xmm2,0xf0(%rsp)
  movaps %xmm1,0x100(%rsp)
  movsd  %xmm0,0x120(%rsp)
  call   <derivs_three@plt>
  movapd 0x20(%rsp),%xmm5
  movapd 0x1f0(%rsp),%xmm1
  addpd  0x1a0(%rsp),%xmm1
  movupd 0x20(%r14),%xmm6
  movapd 0x1b0(%rsp),%xmm0
  movupd 0x30(%r14),%xmm7
  addpd  0x200(%rsp),%xmm0
  movupd 0x10(%r14),%xmm4
  movsd  0x180(%rsp),%xmm3
  addpd  %xmm1,%xmm1
  addpd  0x150(%rsp),%xmm1
  addpd  0x240(%rsp),%xmm1
  addsd  0x1d0(%rsp),%xmm3
  movapd 0x1e0(%rsp),%xmm2
  addpd  %xmm0,%xmm0
  addpd  0x160(%rsp),%xmm0
  addpd  0x250(%rsp),%xmm0
  addpd  0x190(%rsp),%xmm2
  mulpd  %xmm5,%xmm1
  addsd  %xmm3,%xmm3
  addsd  0x130(%rsp),%xmm3
  addsd  0x220(%rsp),%xmm3
  mulpd  %xmm5,%xmm0
  addpd  %xmm2,%xmm2
  addpd  0x140(%rsp),%xmm2
  addpd  0x230(%rsp),%xmm2
  addpd  %xmm6,%xmm1
  movsd  0x78(%rsp),%xmm6
  mulpd  %xmm5,%xmm2
  mulsd  %xmm6,%xmm3
  addpd  %xmm7,%xmm0
  movsd  (%r14),%xmm7
  movups %xmm1,0x20(%r14)
  movups %xmm0,0x30(%r14)
  movsd  0x1c0(%rsp),%xmm0
  addpd  %xmm4,%xmm2
  movupd (%r14),%xmm4
  addsd  %xmm3,%xmm7
  movapd 0x1d0(%rsp),%xmm3
  addpd  0x180(%rsp),%xmm3
  movups %xmm2,0x10(%r14)
  addpd  %xmm3,%xmm3
  addpd  0x130(%rsp),%xmm3
  addpd  0x220(%rsp),%xmm3
  mulpd  %xmm5,%xmm3
  addpd  %xmm4,%xmm3
  movups %xmm3,(%r14)
  addsd  0x210(%rsp),%xmm0
  cmp    %r12d,0x4c(%rsp)
  movapd 0x10(%rsp),%xmm4
  addsd  %xmm0,%xmm0
  addsd  0x170(%rsp),%xmm0
  addsd  0x260(%rsp),%xmm0
  mulsd  %xmm6,%xmm0
  movapd (%rsp),%xmm6
  addsd  0x40(%r14),%xmm0
  movsd  %xmm0,0x40(%r14)
  jne    L39
  mov    %r14,%r12
L0:
  mov    0x88(%rsp),%eax
  mov    0x80(%rsp),%rsi
  movsd  %xmm7,(%rsi,%rax,8)
  movsd  0x18(%r12),%xmm0
  mov    %rax,%rbx
  lea    0x1(%rax),%eax
  movsd  %xmm0,(%rsi,%rax,8)
  movsd  0x30(%r12),%xmm0
  lea    0x2(%rbx),%eax
  add    $0x3,%ebx
  mov    %ebx,0x88(%rsp)
  movsd  %xmm0,(%rsi,%rax,8)
  cmp    0x8c(%rsp),%ebx
  jne    L17
L14:
  mov    0x2d8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x2e8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L32:
  movsd  (%r12),%xmm7
  jmp    L0
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D18
data_type: byte[8]
name: extract_symbolic_data
arguments: label: D19
data_type: f64

tool: {"D18": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

tool: D19: 6

assistant: ```c
void leech_three_rk4(double *y, const double dt, const unsigned N, const unsigned stride, const double *p, const double *kij, double *output) {
  unsigned i, j, k;
  double dt2, dt6;
  double y1[9], y2[9], k1[9], k2[9], k3[9], k4[9], P[12];
  dt2 = dt / 2.;
  dt6 = dt / 6.;
  for (j = 0; j < 12; j++)
    P[j] = p[j + 1];
  for (j = 0; j < 3; j++)
    output[j] = y[3 * j];
  for (i = 1; i < N; i++) {
    for (j = 0; j < stride; j++) {
      derivs_three(y, k1, P, kij);
      for (k = 0; k < 9; k++)
        y1[k] = y[k] + k1[k] * dt2;
      derivs_three(y1, k2, P, kij);
      for (k = 0; k < 9; k++)
        y2[k] = y[k] + k2[k] * dt2;
      derivs_three(y2, k3, P, kij);
      for (k = 0; k < 9; k++)
        y2[k] = y[k] + k3[k] * dt;
      derivs_three(y2, k4, P, kij);
      for (k = 0; k < 9; k++)
        y[k] += dt6 * (k1[k] + 2. * (k2[k] + k3[k]) + k4[k]);
    }
    for (j = 0; j < 3; j++)
      output[3 * i + j] = y[3 * j];
  }
}
```