user: Demonstrate the C code that generates the assembly output below:

```asm
<rq_pricing_lookback_partial_time_floating_strike>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %edi,%ebp
  movsd  %xmm0,0x38(%rsp)
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm3,0x18(%rsp)
  movsd  %xmm4,0x10(%rsp)
  movsd  %xmm5,0x70(%rsp)
  movsd  %xmm6,0x20(%rsp)
  movsd  %xmm7,0x8(%rsp)
  test   %di,%di
  jne    L4
  movsd  %xmm2,0x40(%rsp)
L4:
  movsd  0x38(%rsp),%xmm6
  divsd  0x40(%rsp),%xmm6
  movapd %xmm6,%xmm0
  movq   %xmm6,%r14
  call   <log@plt>
  movapd %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm4
  movapd %xmm4,%xmm3
  mulsd  %xmm4,%xmm3
  movsd  %xmm3,0x48(%rsp)
  movapd %xmm3,%xmm0
  mulsd  D116(%rip),%xmm0
  movapd %xmm0,%xmm9
  addsd  0x20(%rsp),%xmm9
  movsd  %xmm9,0x30(%rsp)
  movapd %xmm9,%xmm2
  movsd  0x10(%rsp),%xmm5
  mulsd  %xmm5,%xmm2
  movapd %xmm2,%xmm7
  addsd  %xmm1,%xmm7
  movq   %xmm7,%rbx
  movapd %xmm5,%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movq   %rbx,%xmm2
  divsd  %xmm0,%xmm2
  movsd  %xmm2,0x28(%rsp)
  movsd  0x10(%rsp),%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movsd  0x28(%rsp),%xmm6
  subsd  %xmm0,%xmm6
  movsd  %xmm6,0x78(%rsp)
  movsd  0x10(%rsp),%xmm7
  subsd  0x18(%rsp),%xmm7
  movsd  0x30(%rsp),%xmm9
  mulsd  %xmm7,%xmm9
  movq   %xmm9,%rbx
  movsd  %xmm7,0x50(%rsp)
  movapd %xmm7,%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movq   %rbx,%xmm10
  divsd  %xmm0,%xmm10
  movsd  %xmm10,0x58(%rsp)
  movsd  0x50(%rsp),%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movsd  0x58(%rsp),%xmm11
  subsd  %xmm0,%xmm11
  movsd  %xmm11,0x80(%rsp)
  movq   %r14,%xmm0
  call   <log@plt>
  movsd  0x30(%rsp),%xmm9
  movsd  0x18(%rsp),%xmm12
  mulsd  %xmm12,%xmm9
  movapd %xmm9,%xmm15
  addsd  %xmm0,%xmm15
  movq   %xmm15,%rbx
  movapd %xmm12,%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movq   %rbx,%xmm14
  divsd  %xmm0,%xmm14
  movsd  %xmm14,0x60(%rsp)
  movsd  0x18(%rsp),%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movsd  0x60(%rsp),%xmm15
  subsd  %xmm0,%xmm15
  movsd  %xmm15,0x88(%rsp)
  movsd  0xf0(%rsp),%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  movsd  0x10(%rsp),%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movq   %rbx,%xmm13
  divsd  %xmm0,%xmm13
  movsd  %xmm13,0x30(%rsp)
  movsd  0xf0(%rsp),%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  movsd  0x50(%rsp),%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movq   %rbx,%xmm8
  divsd  %xmm0,%xmm8
  movsd  %xmm8,0x68(%rsp)
  test   %bp,%bp
  je     L26
  movsd  0x20(%rsp),%xmm1
  subsd  0x70(%rsp),%xmm1
  movapd %xmm1,%xmm9
  mulsd  0x10(%rsp),%xmm9
  movq   %xmm9,%r15
  movapd %xmm9,%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm9
  mulsd  0x38(%rsp),%xmm9
  movsd  %xmm9,0x90(%rsp)
  movsd  0x28(%rsp),%xmm2
  subsd  0x30(%rsp),%xmm2
  movapd %xmm2,%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm7
  mulsd  0x90(%rsp),%xmm7
  movq   %xmm7,%rbx
  movsd  0x40(%rsp),%xmm14
  mulsd  0xf0(%rsp),%xmm14
  movsd  %xmm14,0x90(%rsp)
  movsd  0x70(%rsp),%xmm12
  xorpd  D96(%rip),%xmm12
  mulsd  0x10(%rsp),%xmm12
  movq   %xmm12,%r12
  movapd %xmm12,%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm12
  mulsd  0x90(%rsp),%xmm12
  movsd  %xmm12,0x70(%rsp)
  movsd  0x78(%rsp),%xmm5
  subsd  0x30(%rsp),%xmm5
  movq   %xmm5,%r13
  movapd %xmm5,%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x70(%rsp),%xmm0
  movq   %rbx,%xmm9
  subsd  %xmm0,%xmm9
  movsd  %xmm9,0x78(%rsp)
  movq   %r12,%xmm0
  call   <exp@plt>
  movsd  0x20(%rsp),%xmm1
  movapd %xmm1,%xmm5
  addsd  %xmm1,%xmm5
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  0x48(%rsp),%xmm3
  mulsd  %xmm3,%xmm0
  divsd  %xmm5,%xmm0
  mulsd  0xf0(%rsp),%xmm0
  movapd %xmm0,%xmm9
  mulsd  0x38(%rsp),%xmm9
  movsd  %xmm9,0xa0(%rsp)
  movsd  %xmm5,0x70(%rsp)
  movapd %xmm5,%xmm8
  xorpd  D96(%rip),%xmm8
  movapd %xmm8,%xmm9
  divsd  %xmm3,%xmm9
  movsd  %xmm9,0x90(%rsp)
  cvttsd2si %xmm9,%edi
  movq   %r14,%xmm0
  call   <pow@plt>
  movq   %xmm0,%r14
  movsd  0x18(%rsp),%xmm13
  divsd  0x10(%rsp),%xmm13
  movsd  %xmm13,0x98(%rsp)
  movapd %xmm13,%xmm0
  call   <sqrt@plt>
  mov    %eax,%ebx
  movsd  0x10(%rsp),%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x70(%rsp),%xmm0
  divsd  0x8(%rsp),%xmm0
  subsd  0x28(%rsp),%xmm0
  movapd %xmm0,%xmm7
  subsd  0x30(%rsp),%xmm7
  movsd  %xmm7,0xa8(%rsp)
  movsd  0x18(%rsp),%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x70(%rsp),%xmm0
  divsd  0x8(%rsp),%xmm0
  subsd  0x60(%rsp),%xmm0
  mov    %ebx,%edi
  movsd  0xa8(%rsp),%xmm1
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movapd %xmm0,%xmm4
  movq   %r14,%xmm7
  mulsd  %xmm7,%xmm4
  movq   %xmm4,%rbx
  movsd  0x10(%rsp),%xmm6
  mulsd  0x20(%rsp),%xmm6
  movapd %xmm6,%xmm0
  call   <exp@plt>
  mov    %eax,%ebp
  movsd  0x90(%rsp),%xmm9
  xorpd  D96(%rip),%xmm9
  cvttsd2si %xmm9,%edi
  movsd  0xf0(%rsp),%xmm0
  call   <pow@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %ebp,%xmm1
  movapd %xmm1,%xmm12
  mulsd  %xmm0,%xmm12
  movsd  %xmm12,0x8(%rsp)
  movsd  D125(%rip),%xmm6
  subsd  0x98(%rsp),%xmm6
  movq   %xmm6,%rbp
  movapd %xmm6,%xmm0
  call   <sqrt@plt>
  neg    %eax
  mov    %eax,%edi
  movsd  0x28(%rsp),%xmm5
  xorpd  D96(%rip),%xmm5
  movapd %xmm5,%xmm0
  subsd  0x30(%rsp),%xmm0
  movsd  0x58(%rsp),%xmm6
  addsd  0x68(%rsp),%xmm6
  movapd %xmm6,%xmm1
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movsd  0x8(%rsp),%xmm12
  mulsd  %xmm0,%xmm12
  movq   %rbx,%xmm7
  subsd  %xmm12,%xmm7
  mulsd  0xa0(%rsp),%xmm7
  movsd  %xmm7,0x8(%rsp)
  movq   %r15,%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm12
  mulsd  0x38(%rsp),%xmm12
  movsd  %xmm12,0x10(%rsp)
  movq   %rbp,%xmm0
  call   <sqrt@plt>
  neg    %eax
  mov    %eax,%edi
  movsd  0x30(%rsp),%xmm14
  subsd  0x28(%rsp),%xmm14
  movapd %xmm14,%xmm0
  movsd  0x58(%rsp),%xmm6
  subsd  0x68(%rsp),%xmm6
  movapd %xmm6,%xmm1
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  mulsd  0x10(%rsp),%xmm0
  movapd %xmm0,%xmm6
  addsd  0x8(%rsp),%xmm6
  movsd  %xmm6,0x8(%rsp)
  movq   %r12,%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0xf0(%rsp),%xmm0
  movapd %xmm0,%xmm12
  mulsd  0x40(%rsp),%xmm12
  movsd  %xmm12,0x10(%rsp)
  movsd  0x98(%rsp),%xmm0
  call   <sqrt@plt>
  neg    %eax
  mov    %eax,%edi
  movsd  0x88(%rsp),%xmm2
  xorpd  D96(%rip),%xmm2
  movapd %xmm2,%xmm0
  movq   %r13,%xmm1
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movapd %xmm0,%xmm2
  mulsd  0x10(%rsp),%xmm2
  movq   %xmm2,%rbx
  movsd  0x20(%rsp),%xmm4
  xorpd  D96(%rip),%xmm4
  movapd %xmm4,%xmm0
  mulsd  0x50(%rsp),%xmm0
  call   <exp@plt>
  mov    %eax,%ebp
  movq   %r15,%xmm0
  call   <exp@plt>
  imul   %eax,%ebp
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebp,%xmm0
  movsd  0x48(%rsp),%xmm1
  divsd  0x70(%rsp),%xmm1
  addsd  D125(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  mulsd  0xf0(%rsp),%xmm0
  movapd %xmm0,%xmm3
  mulsd  0x38(%rsp),%xmm3
  movsd  %xmm3,0x10(%rsp)
  movsd  0x80(%rsp),%xmm0
  subsd  0x68(%rsp),%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm5
  mulsd  0x10(%rsp),%xmm5
  movsd  %xmm5,0x10(%rsp)
  movsd  0x60(%rsp),%xmm0
  xorpd  D96(%rip),%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x10(%rsp),%xmm0
  movq   %rbx,%xmm1
  subsd  %xmm0,%xmm1
L13:
  movsd  0x78(%rsp),%xmm0
  addsd  0x8(%rsp),%xmm0
  addsd  %xmm1,%xmm0
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L26:
  movsd  0x40(%rsp),%xmm3
  mulsd  0xf0(%rsp),%xmm3
  movsd  %xmm3,0x90(%rsp)
  movsd  0x70(%rsp),%xmm0
  xorpd  D96(%rip),%xmm0
  movapd %xmm0,%xmm5
  mulsd  0x10(%rsp),%xmm5
  movq   %xmm5,%r15
  movapd %xmm5,%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm5
  mulsd  0x90(%rsp),%xmm5
  movsd  %xmm5,0x90(%rsp)
  movsd  0x30(%rsp),%xmm3
  subsd  0x78(%rsp),%xmm3
  movapd %xmm3,%xmm0
  movq   %xmm3,%r13
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm4
  mulsd  0x90(%rsp),%xmm4
  movq   %xmm4,%rbx
  movsd  0x20(%rsp),%xmm0
  subsd  0x70(%rsp),%xmm0
  movapd %xmm0,%xmm2
  mulsd  0x10(%rsp),%xmm2
  movq   %xmm2,%r12
  movapd %xmm2,%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm5
  mulsd  0x38(%rsp),%xmm5
  movsd  %xmm5,0x70(%rsp)
  movsd  0x30(%rsp),%xmm7
  subsd  0x28(%rsp),%xmm7
  movapd %xmm7,%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x70(%rsp),%xmm0
  movq   %rbx,%xmm4
  subsd  %xmm0,%xmm4
  movsd  %xmm4,0x78(%rsp)
  movq   %r15,%xmm0
  call   <exp@plt>
  movsd  0x20(%rsp),%xmm0
  movapd %xmm0,%xmm3
  addsd  %xmm0,%xmm3
  neg    %eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  0x48(%rsp),%xmm4
  mulsd  %xmm4,%xmm0
  divsd  %xmm3,%xmm0
  mulsd  0xf0(%rsp),%xmm0
  movapd %xmm0,%xmm13
  mulsd  0x38(%rsp),%xmm13
  movsd  %xmm13,0xa0(%rsp)
  movsd  %xmm3,0x70(%rsp)
  movapd %xmm3,%xmm7
  xorpd  D96(%rip),%xmm7
  movapd %xmm7,%xmm15
  divsd  %xmm4,%xmm15
  movsd  %xmm15,0x90(%rsp)
  cvttsd2si %xmm15,%edi
  movq   %r14,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rbx
  movsd  0x18(%rsp),%xmm2
  divsd  0x10(%rsp),%xmm2
  movsd  %xmm2,0x98(%rsp)
  movapd %xmm2,%xmm0
  call   <sqrt@plt>
  mov    %eax,%ebp
  movsd  0x10(%rsp),%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x70(%rsp),%xmm0
  divsd  0x8(%rsp),%xmm0
  movsd  0x28(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  addsd  0x30(%rsp),%xmm1
  movsd  %xmm1,0xa8(%rsp)
  movsd  0x18(%rsp),%xmm0
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x70(%rsp),%xmm0
  divsd  0x8(%rsp),%xmm0
  movsd  0x60(%rsp),%xmm8
  subsd  %xmm0,%xmm8
  mov    %ebp,%edi
  movsd  0xa8(%rsp),%xmm1
  movapd %xmm8,%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movq   %rbx,%xmm14
  mulsd  %xmm0,%xmm14
  movq   %xmm14,%rbx
  movsd  0x10(%rsp),%xmm6
  mulsd  0x20(%rsp),%xmm6
  movapd %xmm6,%xmm0
  call   <exp@plt>
  mov    %eax,%ebp
  movsd  0x90(%rsp),%xmm15
  xorpd  D96(%rip),%xmm15
  cvttsd2si %xmm15,%edi
  movsd  0xf0(%rsp),%xmm0
  call   <pow@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %ebp,%xmm1
  movapd %xmm1,%xmm6
  mulsd  %xmm0,%xmm6
  movsd  %xmm6,0x8(%rsp)
  movsd  D125(%rip),%xmm15
  subsd  0x98(%rsp),%xmm15
  movq   %xmm15,%rbp
  movapd %xmm15,%xmm0
  call   <sqrt@plt>
  neg    %eax
  mov    %eax,%edi
  movsd  0x58(%rsp),%xmm1
  xorpd  D96(%rip),%xmm1
  movsd  0x28(%rsp),%xmm5
  addsd  0x30(%rsp),%xmm5
  movapd %xmm5,%xmm0
  subsd  0x68(%rsp),%xmm1
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movsd  0x8(%rsp),%xmm10
  mulsd  %xmm0,%xmm10
  movapd %xmm10,%xmm1
  movq   %rbx,%xmm10
  subsd  %xmm1,%xmm10
  mulsd  0xa0(%rsp),%xmm10
  movq   %xmm10,%rbx
  movq   %r12,%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm13
  mulsd  0x38(%rsp),%xmm13
  movsd  %xmm13,0x8(%rsp)
  movq   %rbp,%xmm0
  call   <sqrt@plt>
  neg    %eax
  mov    %eax,%edi
  movsd  0x28(%rsp),%xmm5
  subsd  0x30(%rsp),%xmm5
  movapd %xmm5,%xmm0
  movsd  0x68(%rsp),%xmm1
  subsd  0x58(%rsp),%xmm1
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  mulsd  0x8(%rsp),%xmm0
  movq   %rbx,%xmm14
  subsd  %xmm0,%xmm14
  movsd  %xmm14,0x8(%rsp)
  movq   %r15,%xmm0
  call   <exp@plt>
  neg    %eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0xf0(%rsp),%xmm0
  movapd %xmm0,%xmm15
  mulsd  0x40(%rsp),%xmm15
  movsd  %xmm15,0x10(%rsp)
  movsd  0x98(%rsp),%xmm0
  call   <sqrt@plt>
  neg    %eax
  mov    %eax,%edi
  movq   %r13,%xmm1
  movsd  0x88(%rsp),%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movapd %xmm0,%xmm6
  mulsd  0x10(%rsp),%xmm6
  movsd  %xmm6,0x10(%rsp)
  movsd  0x20(%rsp),%xmm2
  xorpd  D96(%rip),%xmm2
  movapd %xmm2,%xmm0
  mulsd  0x50(%rsp),%xmm0
  call   <exp@plt>
  mov    %eax,%ebx
  movq   %r12,%xmm0
  call   <exp@plt>
  imul   %eax,%ebx
  pxor   %xmm1,%xmm1
  cvtsi2sd %ebx,%xmm1
  movsd  0x48(%rsp),%xmm5
  divsd  0x70(%rsp),%xmm5
  movapd %xmm5,%xmm0
  addsd  D125(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  0xf0(%rsp),%xmm0
  movapd %xmm0,%xmm3
  mulsd  0x38(%rsp),%xmm3
  movsd  %xmm3,0x18(%rsp)
  movsd  0x68(%rsp),%xmm1
  subsd  0x80(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm7
  mulsd  0x18(%rsp),%xmm7
  movsd  %xmm7,0x18(%rsp)
  movsd  0x60(%rsp),%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mulsd  0x18(%rsp),%xmm1
  addsd  0x10(%rsp),%xmm1
  jmp    L13
```

tool_calls: name: parse_data
arguments: tag: D116
type_guessed: byte[8]
name: parse_data
arguments: tag: D96
type_guessed: byte[16]
name: parse_data
arguments: tag: D125
type_guessed: byte[8]

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

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

tool: {"D125": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
double rq_pricing_lookback_partial_time_floating_strike(short call, double S, double SMin, double SMax, double t1, double T2, double r, double b, double v, double lambda) {
  double d1;
  double d2;
  double e1;
  double e2;
  double f1;
  double f2;
  double g1;
  double g2;
  double m;
  double part1;
  double part2;
  double part3;
  if (call)
    m = SMin;
  else
    m = SMax;
  d1 = (log(S / m) + (b + (v * v) / 2) * T2) / (v * sqrt(T2));
  d2 = d1 - v * sqrt(T2);
  e1 = (b + (v * v) / 2) * (T2 - t1) / (v * sqrt(T2 - t1));
  e2 = e1 - v * sqrt(T2 - t1);
  f1 = (log(S / m) + (b + (v * v) / 2) * t1) / (v * sqrt(t1));
  f2 = f1 - v * sqrt(t1);
  g1 = log(lambda) / (v * sqrt(T2));
  g2 = log(lambda) / (v * sqrt(T2 - t1));
  if (call) {
    part1 = S * exp((b - r) * T2) * rq_pricing_cumul_norm_dist(d1 - g1) - lambda * m * exp(-r * T2) * rq_pricing_cumul_norm_dist(d2 - g1);
    part2 = exp(-r * T2) * (v * v) / (2 * b) * lambda * S * (pow((S / m), (-2 * b / (v * v))) * rq_pricing_cumul_bivar_norm_dist(-f1 + 2 * b * sqrt(t1) / v, -d1 + 2 * b * sqrt(T2) / v - g1, sqrt(t1 / T2)) - exp(b * T2) * pow(lambda, (2 * b / (v * v))) * rq_pricing_cumul_bivar_norm_dist(-d1 - g1, e1 + g2, -sqrt(1 - t1 / T2))) + S * exp((b - r) * T2) * rq_pricing_cumul_bivar_norm_dist(-d1 + g1, e1 - g2, -sqrt(1 - t1 / T2));
    part3 = exp(-r * T2) * lambda * m * rq_pricing_cumul_bivar_norm_dist(-f2, d2 - g1, -sqrt(t1 / T2)) - exp(-b * (T2 - t1)) * exp((b - r) * T2) * (1 + (v * v) / (2 * b)) * lambda * S * rq_pricing_cumul_norm_dist(e2 - g2) * rq_pricing_cumul_norm_dist(-f1);
  } else {
    part1 = lambda * m * exp(-r * T2) * rq_pricing_cumul_norm_dist(-d2 + g1) - S * exp((b - r) * T2) * rq_pricing_cumul_norm_dist(-d1 + g1);
    part2 = -exp(-r * T2) * (v * v) / (2 * b) * lambda * S * (pow((S / m), (-2 * b / (v * v))) * rq_pricing_cumul_bivar_norm_dist(f1 - 2 * b * sqrt(t1) / v, d1 - 2 * b * sqrt(T2) / v + g1, sqrt(t1 / T2)) - exp(b * T2) * pow(lambda, (2 * b / (v * v))) * rq_pricing_cumul_bivar_norm_dist(d1 + g1, -e1 - g2, -sqrt(1 - t1 / T2))) - S * exp((b - r) * T2) * rq_pricing_cumul_bivar_norm_dist(d1 - g1, -e1 + g2, -sqrt(1 - t1 / T2));
    part3 = -exp(-r * T2) * lambda * m * rq_pricing_cumul_bivar_norm_dist(f2, -d2 + g1, -sqrt(t1 / T2)) + exp(-b * (T2 - t1)) * exp((b - r) * T2) * (1 + (v * v) / (2 * b)) * lambda * S * rq_pricing_cumul_norm_dist(-e2 + g2) * rq_pricing_cumul_norm_dist(f1);
  }
  return part1 + part2 + part3;
}
```