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

```asm
<MiltersenSchwartz>:
  endbr64
  push   %r15
  push   %r14
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  sub    $0xd8,%rsp
  movsd  %xmm0,0x68(%rsp)
  movsd  0x118(%rsp),%xmm0
  movsd  %xmm4,0x10(%rsp)
  mulsd  %xmm3,%xmm0
  movsd  %xmm2,0x58(%rsp)
  movsd  %xmm5,0xc8(%rsp)
  movsd  %xmm7,0xb8(%rsp)
  movsd  %xmm3,0x8(%rsp)
  movsd  %xmm6,0xc0(%rsp)
  movsd  %xmm1,0x50(%rsp)
  call   <exp@plt>
  movsd  0x8(%rsp),%xmm1
  mulsd  0x120(%rsp),%xmm1
  movsd  %xmm0,0x38(%rsp)
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x20(%rsp)
  call   <exp@plt>
  movsd  %xmm0,0x40(%rsp)
  movsd  0x118(%rsp),%xmm0
  xorpd  D109(%rip),%xmm0
  mulsd  0x10(%rsp),%xmm0
  call   <exp@plt>
  movsd  0x20(%rsp),%xmm1
  movsd  %xmm0,0x18(%rsp)
  movapd %xmm1,%xmm6
  xorpd  D109(%rip),%xmm6
  movapd %xmm6,%xmm0
  call   <exp@plt>
  movsd  0x120(%rsp),%xmm6
  xorpd  D109(%rip),%xmm6
  movsd  %xmm0,0xb0(%rsp)
  movsd  0x10(%rsp),%xmm0
  mulsd  %xmm6,%xmm0
  call   <exp@plt>
  movsd  D123(%rip),%xmm2
  movsd  0x38(%rsp),%xmm15
  movapd %xmm0,%xmm9
  movsd  0x40(%rsp),%xmm7
  movsd  %xmm0,0xa8(%rsp)
  movsd  0x18(%rsp),%xmm0
  movapd %xmm2,%xmm8
  subsd  %xmm2,%xmm15
  divsd  0x118(%rsp),%xmm8
  movapd %xmm2,%xmm12
  mulsd  %xmm8,%xmm0
  subsd  %xmm2,%xmm7
  movsd  0x8(%rsp),%xmm3
  divsd  0x120(%rsp),%xmm12
  movsd  0x118(%rsp),%xmm2
  mulsd  %xmm12,%xmm9
  movsd  0x118(%rsp),%xmm6
  movsd  %xmm12,0xa0(%rsp)
  movapd %xmm3,%xmm10
  movapd %xmm3,%xmm13
  addsd  0x120(%rsp),%xmm6
  movsd  %xmm8,0x88(%rsp)
  movsd  %xmm15,0x80(%rsp)
  addsd  %xmm2,%xmm2
  mulsd  %xmm15,%xmm0
  movsd  %xmm6,0x20(%rsp)
  mulsd  %xmm7,%xmm9
  movsd  %xmm2,0x48(%rsp)
  movsd  0x120(%rsp),%xmm7
  addsd  %xmm7,%xmm7
  subsd  %xmm0,%xmm10
  movapd %xmm2,%xmm0
  xorpd  D109(%rip),%xmm0
  mulsd  0x10(%rsp),%xmm0
  subsd  %xmm9,%xmm13
  movsd  %xmm9,0x98(%rsp)
  movsd  %xmm7,0x28(%rsp)
  movsd  %xmm10,0x78(%rsp)
  movsd  %xmm13,0x90(%rsp)
  call   <exp@plt>
  movsd  0x8(%rsp),%xmm5
  mulsd  0x48(%rsp),%xmm5
  movsd  %xmm0,0x60(%rsp)
  movapd %xmm5,%xmm0
  call   <exp@plt>
  mov    D123(%rip),%rax
  movsd  0x28(%rsp),%xmm7
  movq   %xmm0,%r14
  movsd  0x10(%rsp),%xmm0
  movq   %rax,%xmm1
  movapd %xmm7,%xmm2
  xorpd  D109(%rip),%xmm2
  divsd  %xmm7,%xmm1
  mulsd  %xmm2,%xmm0
  movsd  %xmm1,0x30(%rsp)
  call   <exp@plt>
  movsd  0x28(%rsp),%xmm7
  mulsd  0x8(%rsp),%xmm7
  movsd  %xmm0,0x70(%rsp)
  movapd %xmm7,%xmm0
  call   <exp@plt>
  mov    D123(%rip),%rax
  movsd  0x20(%rsp),%xmm6
  movq   %xmm0,%r15
  movsd  0x10(%rsp),%xmm0
  movq   %rax,%xmm11
  movapd %xmm6,%xmm7
  xorpd  D109(%rip),%xmm7
  divsd  %xmm6,%xmm11
  mulsd  %xmm7,%xmm0
  movsd  %xmm11,0x28(%rsp)
  call   <exp@plt>
  movsd  0x20(%rsp),%xmm6
  mulsd  0x8(%rsp),%xmm6
  movq   %xmm0,%rbp
  movapd %xmm6,%xmm0
  call   <exp@plt>
  movq   %r14,%xmm4
  mov    D123(%rip),%rax
  movsd  0x88(%rsp),%xmm8
  movapd %xmm0,%xmm1
  movsd  0x60(%rsp),%xmm0
  movsd  0xc0(%rsp),%xmm6
  movq   %rax,%xmm13
  divsd  0x48(%rsp),%xmm13
  movq   %rax,%xmm2
  movsd  0x80(%rsp),%xmm15
  mulsd  %xmm13,%xmm0
  subsd  %xmm2,%xmm4
  movapd %xmm6,%xmm12
  movsd  0x8(%rsp),%xmm3
  mulsd  %xmm6,%xmm12
  movsd  0x78(%rsp),%xmm10
  movsd  0x100(%rsp),%xmm9
  movsd  0xb8(%rsp),%xmm7
  movsd  0x90(%rsp),%xmm13
  movsd  0xc8(%rsp),%xmm5
  mulsd  %xmm6,%xmm9
  movsd  0xb0(%rsp),%xmm11
  mulsd  %xmm4,%xmm0
  movapd %xmm8,%xmm4
  movapd %xmm5,%xmm14
  addsd  %xmm8,%xmm4
  mulsd  0x18(%rsp),%xmm4
  addsd  %xmm5,%xmm14
  addsd  %xmm3,%xmm0
  mulsd  %xmm4,%xmm15
  movsd  0x118(%rsp),%xmm4
  mulsd  %xmm4,%xmm4
  subsd  %xmm15,%xmm0
  movapd %xmm12,%xmm15
  movsd  0xa0(%rsp),%xmm12
  divsd  %xmm4,%xmm15
  movsd  0x108(%rsp),%xmm4
  mulsd  %xmm7,%xmm4
  mulsd  %xmm12,%xmm4
  mulsd  %xmm13,%xmm4
  mulsd  %xmm15,%xmm0
  movapd %xmm9,%xmm15
  movapd %xmm5,%xmm9
  mulsd  %xmm8,%xmm15
  mulsd  %xmm5,%xmm9
  mulsd  0x108(%rsp),%xmm5
  mulsd  %xmm10,%xmm15
  subsd  %xmm15,%xmm4
  movapd %xmm9,%xmm15
  movsd  0x98(%rsp),%xmm9
  mulsd  %xmm3,%xmm15
  mulsd  %xmm14,%xmm4
  movapd %xmm3,%xmm14
  movsd  0x70(%rsp),%xmm3
  mulsd  0x30(%rsp),%xmm3
  addsd  %xmm4,%xmm15
  movq   %r15,%xmm4
  subsd  %xmm2,%xmm4
  addsd  %xmm15,%xmm0
  movapd %xmm7,%xmm15
  mulsd  %xmm4,%xmm3
  movapd %xmm9,%xmm4
  addsd  %xmm9,%xmm4
  mulsd  %xmm7,%xmm15
  addsd  %xmm14,%xmm3
  movsd  0xa8(%rsp),%xmm14
  subsd  %xmm4,%xmm3
  movsd  0x120(%rsp),%xmm4
  mulsd  %xmm4,%xmm4
  divsd  %xmm4,%xmm15
  movq   %rbp,%xmm4
  mulsd  0x28(%rsp),%xmm4
  mulsd  %xmm3,%xmm15
  addsd  %xmm0,%xmm15
  movapd %xmm6,%xmm0
  addsd  %xmm6,%xmm0
  mulsd  0x110(%rsp),%xmm6
  movapd %xmm0,%xmm3
  movapd %xmm1,%xmm0
  movsd  0x30(%rsp),%xmm1
  subsd  %xmm2,%xmm0
  mulsd  %xmm7,%xmm3
  subsd  %xmm11,%xmm2
  mulsd  0x110(%rsp),%xmm3
  mulsd  %xmm14,%xmm1
  mulsd  %xmm0,%xmm4
  movapd %xmm10,%xmm0
  subsd  %xmm9,%xmm0
  mulsd  %xmm12,%xmm2
  mulsd  %xmm8,%xmm6
  mulsd  %xmm8,%xmm3
  addsd  %xmm0,%xmm4
  movapd %xmm7,%xmm0
  movsd  0x40(%rsp),%xmm7
  subsd  %xmm2,%xmm13
  mulsd  %xmm12,%xmm0
  subsd  %xmm2,%xmm10
  subsd  %xmm11,%xmm7
  mulsd  %xmm12,%xmm3
  mulsd  %xmm7,%xmm1
  mulsd  %xmm4,%xmm3
  addsd  %xmm13,%xmm1
  subsd  %xmm3,%xmm15
  mulsd  %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm3
  subsd  %xmm2,%xmm3
  mulsd  %xmm3,%xmm5
  movapd %xmm1,%xmm7
  movsd  0x38(%rsp),%xmm3
  movsd  0x28(%rsp),%xmm1
  mulsd  0x18(%rsp),%xmm1
  subsd  %xmm11,%xmm3
  addsd  %xmm5,%xmm7
  mulsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm10
  mulsd  %xmm10,%xmm6
  subsd  %xmm6,%xmm7
  mulsd  %xmm0,%xmm7
  pxor   %xmm0,%xmm0
  ucomisd %xmm15,%xmm0
  ja     L14
  movapd %xmm15,%xmm3
  sqrtsd %xmm3,%xmm3
L3:
  movsd  0x50(%rsp),%xmm0
  movsd  %xmm3,0x18(%rsp)
  divsd  0x58(%rsp),%xmm0
  movsd  %xmm7,0x10(%rsp)
  movsd  %xmm15,0x8(%rsp)
  call   <log@plt>
  movsd  0x10(%rsp),%xmm7
  movsd  0x8(%rsp),%xmm15
  movapd %xmm0,%xmm1
  movsd  0x18(%rsp),%xmm3
  mulsd  D47(%rip),%xmm15
  subsd  %xmm7,%xmm1
  xorpd  D109(%rip),%xmm7
  movapd %xmm1,%xmm2
  addsd  %xmm15,%xmm2
  subsd  %xmm15,%xmm1
  divsd  %xmm3,%xmm2
  divsd  %xmm3,%xmm1
  test   %ebx,%ebx
  je     L2
  movapd %xmm7,%xmm0
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm2,0x10(%rsp)
  call   <exp@plt>
  movsd  0x50(%rsp),%xmm2
  mov    $0x1,%eax
  mulsd  %xmm0,%xmm2
  movsd  %xmm2,0x8(%rsp)
  movsd  0x10(%rsp),%xmm2
  movapd %xmm2,%xmm0
  call   <cnd@plt>
  pxor   %xmm0,%xmm0
  movsd  0x18(%rsp),%xmm1
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  mov    $0x1,%eax
  movq   %xmm0,%rbx
  movapd %xmm1,%xmm0
  call   <cnd@plt>
  pxor   %xmm1,%xmm1
  movq   %rbx,%xmm0
  cvtsi2sd %eax,%xmm1
  mulsd  0x58(%rsp),%xmm1
  subsd  %xmm1,%xmm0
  mulsd  0x68(%rsp),%xmm0
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L2:
  xorpd  D109(%rip),%xmm1
  mov    $0x1,%eax
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm7,0x8(%rsp)
  movapd %xmm1,%xmm0
  call   <cnd@plt>
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm7
  cvtsi2sd %eax,%xmm0
  mulsd  0x58(%rsp),%xmm0
  movq   %xmm0,%rbx
  movapd %xmm7,%xmm0
  call   <exp@plt>
  mulsd  0x50(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm2
  mov    $0x1,%eax
  xorpd  D109(%rip),%xmm2
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm2,%xmm0
  call   <cnd@plt>
  pxor   %xmm1,%xmm1
  movq   %rbx,%xmm0
  cvtsi2sd %eax,%xmm1
  mulsd  0x8(%rsp),%xmm1
  subsd  %xmm1,%xmm0
  mulsd  0x68(%rsp),%xmm0
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r14
  pop    %r15
  ret
L14:
  movapd %xmm15,%xmm0
  movsd  %xmm7,0x10(%rsp)
  movsd  %xmm15,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x10(%rsp),%xmm7
  movsd  0x8(%rsp),%xmm15
  movapd %xmm0,%xmm3
  jmp    L3
```

tool_calls: name: disassemble_data
arguments: data_label: D109
type: byte[16]
name: disassemble_data
arguments: data_label: D123
type: f64
name: disassemble_data
arguments: data_label: D47
type: byte[8]

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

tool: D123: 1

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

assistant: ```c
double MiltersenSchwartz(int fCall, double Pt, double FT, double X, double t1, double T2, double vS, double vE, double vf, double rhoSe, double rhoSf, double rhoef, double kE, double kF) {
  double result;
  const double ekEt1 = exp(kE * t1);
  const double ekFt1 = exp(kF * t1);
  const double emkET2 = exp(-kE * T2);
  const double emkFt1 = exp(-kF * t1);
  const double emkFT2 = exp(-kF * T2);
  const double nkF = 1.0 / kF;
  const double nkE = 1.0 / kE;
  const double nemkFt1 = 1.0 - emkFt1;
  const double kEF = kE + kF;
  const double ekEt1m1 = ekEt1 - 1.0;
  const double ekFt1m1 = ekFt1 - 1.0;
  const double nff = nkF * emkFT2 * ekFt1m1;
  const double tkF = 2.0 * kF;
  const double tkE = 2.0 * kE;
  const double vz = ((vS) * (vS)) * t1 + 2.0 * vS * (vf * rhoSf * nkF * (t1 - nff) - vE * rhoSe * nkE * (t1 - nkE * emkET2 * ekEt1m1)) + ((vE) * (vE)) * 1.0 / ((kE) * (kE)) * (t1 + 1.0 / (tkE)*exp(-tkE * T2) * (exp(tkE * t1) - 1.0) - 2.0 * nkE * emkET2 * ekEt1m1) + ((vf) * (vf)) * 1.0 / ((kF) * (kF)) * (t1 + (1.0 / tkF) * exp(-tkF * T2) * (exp(tkF * t1) - 1.0) - 2.0 * nff) - 2.0 * vE * vf * rhoef * nkE * nkF * (t1 - (nkE * emkET2 * ekEt1m1) - nff + ((1.0 / kEF) * exp(-kEF * T2) * (exp(kEF * t1) - 1.0)));
  const double vxz = vf * nkF * (vS * rhoSf * (t1 - nkF * nemkFt1) + vf * nkF * (t1 - nff - nkF * nemkFt1 + ((1.0 / tkF) * emkFT2 * (ekFt1 - emkFt1))) - vE * rhoef * nkE * (t1 - nkE * emkET2 * ekEt1m1 - nkF * nemkFt1 + 1.0 / kEF * emkET2 * (ekEt1 - emkFt1)));
  const double sqrtvz = sqrt(vz);
  const double logFTX = log(FT / X);
  const double vz2 = vz / 2.0;
  const double d1 = (logFTX - vxz + vz2) / sqrtvz;
  const double d2 = (logFTX - vxz - vz2) / sqrtvz;
  if (fCall)
    result = Pt * (FT * exp(-vxz) * cnd(d1) - X * cnd(d2));
  else
    result = Pt * (X * cnd(-d2) - FT * exp(-vxz) * cnd(-d1));
  return result;
}
```