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

```asm
<rq_pricing_lookback_partial_time_fixed_strike>:
  endbr64
  movapd %xmm0,%xmm14
  push   %r14
  divsd  %xmm1,%xmm14
  push   %rbx
  mov    %edi,%ebx
  sub    $0xc8,%rsp
  movsd  %xmm0,0x30(%rsp)
  movsd  %xmm4,0x60(%rsp)
  movsd  %xmm5,0x20(%rsp)
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm3,0x10(%rsp)
  movsd  %xmm6,0x8(%rsp)
  movsd  %xmm1,0x58(%rsp)
  movapd %xmm14,%xmm0
  movq   %xmm14,%r14
  call   <log@plt>
  movsd  0x8(%rsp),%xmm6
  movsd  0x10(%rsp),%xmm3
  movapd %xmm0,%xmm1
  movsd  D88(%rip),%xmm0
  movapd %xmm6,%xmm7
  mulsd  %xmm6,%xmm7
  mulsd  %xmm7,%xmm0
  movsd  %xmm7,0x38(%rsp)
  addsd  0x20(%rsp),%xmm0
  movapd %xmm0,%xmm10
  movsd  %xmm0,0x48(%rsp)
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm10
  addsd  %xmm10,%xmm1
  movsd  %xmm1,0x28(%rsp)
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  movsd  0x28(%rsp),%xmm1
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  divsd  %xmm0,%xmm1
  movsd  0x10(%rsp),%xmm0
  movsd  %xmm1,0x28(%rsp)
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  movsd  0x10(%rsp),%xmm2
  subsd  0x18(%rsp),%xmm2
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movsd  0x48(%rsp),%xmm1
  movsd  0x28(%rsp),%xmm11
  mulsd  %xmm2,%xmm1
  movsd  %xmm2,0x68(%rsp)
  subsd  %xmm0,%xmm11
  movapd %xmm2,%xmm0
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm11,0x50(%rsp)
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  movsd  0x40(%rsp),%xmm1
  movsd  0x68(%rsp),%xmm2
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movapd %xmm1,%xmm15
  movsd  %xmm2,0x78(%rsp)
  divsd  %xmm0,%xmm15
  movapd %xmm2,%xmm0
  movsd  %xmm15,0x40(%rsp)
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  movsd  0x40(%rsp),%xmm13
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  subsd  %xmm0,%xmm13
  movq   %r14,%xmm0
  movsd  %xmm13,0x68(%rsp)
  call   <log@plt>
  movsd  0x18(%rsp),%xmm12
  movsd  0x48(%rsp),%xmm10
  mulsd  %xmm12,%xmm10
  movapd %xmm10,%xmm1
  addsd  %xmm0,%xmm1
  movapd %xmm12,%xmm0
  movsd  %xmm1,0x48(%rsp)
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  movsd  0x48(%rsp),%xmm1
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movapd %xmm1,%xmm9
  divsd  %xmm0,%xmm9
  movsd  0x18(%rsp),%xmm0
  movsd  %xmm9,0x48(%rsp)
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  test   %bx,%bx
  movsd  0x20(%rsp),%xmm1
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movsd  0x48(%rsp),%xmm5
  movsd  0x60(%rsp),%xmm15
  movapd %xmm1,%xmm4
  movsd  0x78(%rsp),%xmm2
  xorpd  D159(%rip),%xmm4
  movapd %xmm15,%xmm3
  xorpd  D159(%rip),%xmm3
  movsd  %xmm4,0x70(%rsp)
  subsd  %xmm0,%xmm5
  je     L9
  movsd  %xmm5,0xb0(%rsp)
  movapd %xmm1,%xmm5
  movsd  0x10(%rsp),%xmm6
  subsd  %xmm15,%xmm5
  movsd  %xmm3,0x78(%rsp)
  movsd  %xmm2,0xa8(%rsp)
  mulsd  %xmm5,%xmm6
  movsd  %xmm6,0xa0(%rsp)
  movapd %xmm6,%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x30(%rsp),%xmm10
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm10
  movsd  0x28(%rsp),%xmm0
  movsd  %xmm10,0x60(%rsp)
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  movsd  0x60(%rsp),%xmm15
  movsd  0x78(%rsp),%xmm3
  cvtsi2sd %eax,%xmm0
  mulsd  0x10(%rsp),%xmm3
  mulsd  %xmm0,%xmm15
  movsd  %xmm3,0x80(%rsp)
  movapd %xmm3,%xmm0
  movq   %xmm15,%rbx
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x58(%rsp),%xmm10
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm10
  movsd  0x50(%rsp),%xmm0
  movsd  %xmm10,0x60(%rsp)
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  movq   %rbx,%xmm15
  movsd  0x80(%rsp),%xmm3
  cvtsi2sd %eax,%xmm0
  mulsd  0x60(%rsp),%xmm0
  movsd  %xmm3,0x98(%rsp)
  subsd  %xmm0,%xmm15
  movapd %xmm3,%xmm0
  movsd  %xmm15,0x78(%rsp)
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x20(%rsp),%xmm5
  movq   %r14,%xmm11
  xorpd  D159(%rip),%xmm11
  cvtsi2sd %eax,%xmm0
  mulsd  0x30(%rsp),%xmm0
  movapd %xmm5,%xmm4
  addsd  %xmm5,%xmm4
  movsd  0x38(%rsp),%xmm5
  movapd %xmm4,%xmm3
  xorpd  D159(%rip),%xmm3
  movsd  %xmm4,0x60(%rsp)
  mulsd  %xmm5,%xmm0
  movapd %xmm0,%xmm10
  movapd %xmm3,%xmm0
  divsd  %xmm5,%xmm0
  divsd  %xmm4,%xmm10
  cvttsd2si %xmm0,%edi
  movapd %xmm11,%xmm0
  movsd  %xmm10,0x80(%rsp)
  call   <pow@plt>
  movsd  0x18(%rsp),%xmm13
  divsd  0x10(%rsp),%xmm13
  movsd  %xmm13,0x90(%rsp)
  movsd  %xmm0,0x88(%rsp)
  movapd %xmm13,%xmm0
  call   <sqrt@plt>
  movsd  0x18(%rsp),%xmm0
  mov    %eax,%ebx
  call   <sqrt@plt>
  pxor   %xmm1,%xmm1
  movsd  0x10(%rsp),%xmm0
  neg    %ebx
  cvtsi2sd %eax,%xmm1
  mulsd  0x60(%rsp),%xmm1
  divsd  0x8(%rsp),%xmm1
  subsd  0x48(%rsp),%xmm1
  movsd  %xmm1,0x18(%rsp)
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm6
  pxor   %xmm0,%xmm0
  mov    %ebx,%edi
  cvtsi2sd %eax,%xmm0
  mulsd  0x60(%rsp),%xmm0
  movsd  0x18(%rsp),%xmm1
  divsd  0x8(%rsp),%xmm0
  subsd  %xmm0,%xmm6
  movapd %xmm6,%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movsd  0x20(%rsp),%xmm4
  movsd  0x88(%rsp),%xmm12
  mulsd  0x10(%rsp),%xmm4
  mulsd  %xmm0,%xmm12
  movapd %xmm4,%xmm0
  movsd  %xmm12,0x8(%rsp)
  call   <exp@plt>
  movsd  D102(%rip),%xmm2
  movsd  0x90(%rsp),%xmm7
  mov    %eax,%ebx
  movsd  %xmm7,0x88(%rsp)
  subsd  %xmm7,%xmm2
  movapd %xmm2,%xmm0
  movsd  %xmm2,0x20(%rsp)
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm1
  movsd  0x40(%rsp),%xmm0
  mov    %eax,%edi
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movsd  0x78(%rsp),%xmm15
  movsd  0xa0(%rsp),%xmm6
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  movsd  %xmm6,0x18(%rsp)
  mulsd  %xmm1,%xmm0
  addsd  0x8(%rsp),%xmm0
  mulsd  0x80(%rsp),%xmm0
  addsd  %xmm0,%xmm15
  movapd %xmm6,%xmm0
  movsd  %xmm15,0x10(%rsp)
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x30(%rsp),%xmm2
  movsd  0x20(%rsp),%xmm8
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm2
  movapd %xmm8,%xmm0
  movsd  %xmm2,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x40(%rsp),%xmm11
  xorpd  D159(%rip),%xmm11
  movsd  0x28(%rsp),%xmm1
  neg    %eax
  movapd %xmm11,%xmm0
  mov    %eax,%edi
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  mulsd  0x8(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm4
  movsd  0x98(%rsp),%xmm3
  subsd  %xmm0,%xmm4
  movapd %xmm3,%xmm0
  movsd  %xmm4,0x10(%rsp)
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x58(%rsp),%xmm2
  movsd  0x88(%rsp),%xmm7
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm2
  movapd %xmm7,%xmm0
  movsd  %xmm2,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x50(%rsp),%xmm6
  movsd  0xb0(%rsp),%xmm5
  xorpd  D159(%rip),%xmm6
  neg    %eax
  mov    %eax,%edi
  movapd %xmm5,%xmm0
  movapd %xmm6,%xmm1
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  mulsd  0x8(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm4
  movsd  0x70(%rsp),%xmm3
  movapd %xmm4,%xmm2
  subsd  %xmm0,%xmm2
  movsd  %xmm2,0x8(%rsp)
  movsd  0xa8(%rsp),%xmm2
  mulsd  %xmm2,%xmm3
  movapd %xmm3,%xmm0
  call   <exp@plt>
  movsd  D102(%rip),%xmm7
  movsd  0x38(%rsp),%xmm1
  divsd  0x60(%rsp),%xmm1
  movsd  0x30(%rsp),%xmm4
  movsd  0x18(%rsp),%xmm6
  subsd  %xmm1,%xmm7
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movapd %xmm7,%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  %xmm0,%xmm4
  movapd %xmm6,%xmm0
  movsd  %xmm4,0x10(%rsp)
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x10(%rsp),%xmm7
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm7
  movsd  0x48(%rsp),%xmm0
  movsd  %xmm7,0x10(%rsp)
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  movsd  0x10(%rsp),%xmm4
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm4
  movsd  0x68(%rsp),%xmm0
  xorpd  D159(%rip),%xmm0
  movsd  %xmm4,0x10(%rsp)
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x10(%rsp),%xmm0
  addsd  0x8(%rsp),%xmm0
  add    $0xc8,%rsp
  pop    %rbx
  pop    %r14
  ret
  cs nopw 0x0(%rax,%rax,1)
L9:
  movsd  %xmm2,0xb0(%rsp)
  mulsd  0x10(%rsp),%xmm3
  movsd  %xmm5,0xb8(%rsp)
  movsd  %xmm3,0x80(%rsp)
  movapd %xmm3,%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x58(%rsp),%xmm0
  movsd  %xmm0,0x78(%rsp)
  movsd  0x50(%rsp),%xmm0
  xorpd  D159(%rip),%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  movsd  0x78(%rsp),%xmm4
  movsd  0x20(%rsp),%xmm6
  cvtsi2sd %eax,%xmm0
  subsd  0x60(%rsp),%xmm6
  mulsd  0x10(%rsp),%xmm6
  mulsd  %xmm0,%xmm4
  movsd  %xmm6,0xa8(%rsp)
  movapd %xmm6,%xmm0
  movq   %xmm4,%rbx
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x28(%rsp),%xmm8
  xorpd  D159(%rip),%xmm8
  cvtsi2sd %eax,%xmm0
  mulsd  0x30(%rsp),%xmm0
  movsd  %xmm8,0xa0(%rsp)
  movsd  %xmm0,0x60(%rsp)
  movapd %xmm8,%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  movq   %rbx,%xmm13
  movsd  0x80(%rsp),%xmm3
  cvtsi2sd %eax,%xmm0
  mulsd  0x60(%rsp),%xmm0
  movsd  %xmm3,0x98(%rsp)
  subsd  %xmm0,%xmm13
  movapd %xmm3,%xmm0
  movsd  %xmm13,0x78(%rsp)
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x38(%rsp),%xmm3
  movsd  0x20(%rsp),%xmm6
  cvtsi2sd %eax,%xmm0
  mulsd  0x30(%rsp),%xmm0
  movapd %xmm6,%xmm5
  addsd  %xmm6,%xmm5
  mulsd  %xmm3,%xmm0
  movsd  %xmm5,0x60(%rsp)
  divsd  %xmm5,%xmm0
  movsd  %xmm0,0x80(%rsp)
  movapd %xmm5,%xmm0
  xorpd  D159(%rip),%xmm0
  divsd  %xmm3,%xmm0
  cvttsd2si %xmm0,%edi
  movq   %r14,%xmm0
  call   <pow@plt>
  movsd  0x18(%rsp),%xmm11
  divsd  0x10(%rsp),%xmm11
  movsd  %xmm11,0x90(%rsp)
  movsd  %xmm0,0x88(%rsp)
  movapd %xmm11,%xmm0
  call   <sqrt@plt>
  movsd  0x18(%rsp),%xmm0
  mov    %eax,%ebx
  call   <sqrt@plt>
  movsd  0x48(%rsp),%xmm1
  pxor   %xmm0,%xmm0
  neg    %ebx
  cvtsi2sd %eax,%xmm0
  mulsd  0x60(%rsp),%xmm0
  divsd  0x8(%rsp),%xmm0
  subsd  %xmm0,%xmm1
  movsd  0x10(%rsp),%xmm0
  movsd  %xmm1,0x18(%rsp)
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  movsd  0x18(%rsp),%xmm1
  mov    %ebx,%edi
  cvtsi2sd %eax,%xmm0
  mulsd  0x60(%rsp),%xmm0
  divsd  0x8(%rsp),%xmm0
  subsd  0x28(%rsp),%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movsd  0x20(%rsp),%xmm5
  movsd  0x88(%rsp),%xmm14
  mulsd  0x10(%rsp),%xmm5
  mulsd  %xmm0,%xmm14
  movapd %xmm5,%xmm0
  movsd  %xmm14,0x8(%rsp)
  call   <exp@plt>
  movsd  0x90(%rsp),%xmm7
  movsd  D102(%rip),%xmm9
  mov    %eax,%ebx
  movsd  %xmm7,0x88(%rsp)
  subsd  %xmm7,%xmm9
  movapd %xmm9,%xmm0
  movsd  %xmm9,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x40(%rsp),%xmm5
  movsd  0xa0(%rsp),%xmm8
  xorpd  D159(%rip),%xmm5
  mov    %eax,%edi
  movapd %xmm8,%xmm1
  movsd  %xmm8,0x20(%rsp)
  movapd %xmm5,%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movsd  0x8(%rsp),%xmm4
  movsd  0x78(%rsp),%xmm6
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  movapd %xmm4,%xmm11
  mulsd  %xmm0,%xmm1
  movsd  0x80(%rsp),%xmm0
  subsd  %xmm1,%xmm11
  mulsd  %xmm11,%xmm0
  addsd  %xmm0,%xmm6
  movsd  %xmm6,0x8(%rsp)
  movsd  0xa8(%rsp),%xmm6
  movapd %xmm6,%xmm0
  movsd  %xmm6,0x18(%rsp)
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x30(%rsp),%xmm13
  movsd  0x28(%rsp),%xmm9
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm13
  movapd %xmm9,%xmm0
  movsd  %xmm13,0x10(%rsp)
  call   <sqrt@plt>
  movsd  0x20(%rsp),%xmm8
  movsd  0x40(%rsp),%xmm0
  neg    %eax
  movapd %xmm8,%xmm1
  mov    %eax,%edi
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  mulsd  0x10(%rsp),%xmm0
  movsd  0x8(%rsp),%xmm5
  movsd  0x98(%rsp),%xmm3
  addsd  %xmm0,%xmm5
  movapd %xmm3,%xmm0
  movsd  %xmm5,0x8(%rsp)
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x58(%rsp),%xmm6
  movsd  0x88(%rsp),%xmm7
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm6
  movapd %xmm7,%xmm0
  movsd  %xmm6,0x10(%rsp)
  call   <sqrt@plt>
  movsd  0x50(%rsp),%xmm1
  movsd  0xb8(%rsp),%xmm5
  neg    %eax
  movapd %xmm5,%xmm2
  xorpd  D159(%rip),%xmm2
  mov    %eax,%edi
  movapd %xmm2,%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  mulsd  0x10(%rsp),%xmm0
  movsd  0x8(%rsp),%xmm5
  movsd  0xb0(%rsp),%xmm2
  addsd  %xmm0,%xmm5
  movsd  %xmm5,0x10(%rsp)
  movsd  0x70(%rsp),%xmm5
  mulsd  %xmm2,%xmm5
  movapd %xmm5,%xmm0
  call   <exp@plt>
  movsd  D102(%rip),%xmm2
  movsd  0x38(%rsp),%xmm0
  divsd  0x60(%rsp),%xmm0
  movsd  0x30(%rsp),%xmm3
  movsd  0x18(%rsp),%xmm6
  subsd  %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  %xmm0,%xmm3
  movapd %xmm6,%xmm0
  movsd  %xmm3,0x8(%rsp)
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm7
  cvtsi2sd %eax,%xmm0
  mulsd  %xmm0,%xmm7
  movsd  0x48(%rsp),%xmm0
  xorpd  D159(%rip),%xmm0
  movsd  %xmm7,0x8(%rsp)
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  movsd  0x68(%rsp),%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  pxor   %xmm2,%xmm2
  movsd  0x10(%rsp),%xmm1
  cvtsi2sd %eax,%xmm2
  mulsd  0x8(%rsp),%xmm2
  add    $0xc8,%rsp
  pop    %rbx
  pop    %r14
  subsd  %xmm2,%xmm1
  movapd %xmm1,%xmm0
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D88
datatype: f32[2]
name: retrieve_data
arguments: data_tag: D159
datatype: f32[4]
name: retrieve_data
arguments: data_tag: D102
datatype: f32[2]

tool: {"D88": [0.0,1.75]}

tool: {"D159": [0.0,-0.0,0.0,0.0]}

tool: {"D102": [0.0,1.875]}

assistant: ```c
double rq_pricing_lookback_partial_time_fixed_strike(short call, double S, double X, double t1, double T2, double r, double b, double v) {
  double d1;
  double d2;
  double e1;
  double e2;
  double f1;
  double f2;
  double ret = 0.0;
  d1 = (log(S / X) + (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 / X) + (b + (v * v) / 2) * t1) / (v * sqrt(t1));
  f2 = f1 - v * sqrt(t1);
  if (call)
    ret = S * exp((b - r) * T2) * rq_pricing_cumul_norm_dist(d1) - exp(-r * T2) * X * rq_pricing_cumul_norm_dist(d2) + S * exp(-r * T2) * (v * v) / (2 * b) * (pow(-(S / X), (-2 * b / (v * v))) * rq_pricing_cumul_bivar_norm_dist(d1 - 2 * b * sqrt(T2) / v, -f1 + 2 * b * sqrt(t1) / v, -sqrt(t1 / T2)) + exp(b * T2) * rq_pricing_cumul_bivar_norm_dist(e1, d1, sqrt(1 - t1 / T2))) - S * exp((b - r) * T2) * rq_pricing_cumul_bivar_norm_dist(-e1, d1, -sqrt(1 - t1 / T2)) - X * exp(-r * T2) * rq_pricing_cumul_bivar_norm_dist(f2, -d2, -sqrt(t1 / T2)) + exp(-b * (T2 - t1)) * (1 - (v * v) / (2 * b)) * S * exp((b - r) * T2) * rq_pricing_cumul_norm_dist(f1) * rq_pricing_cumul_norm_dist(-e2);
  else
    ret = X * exp(-r * T2) * rq_pricing_cumul_norm_dist(-d2) - S * exp((b - r) * T2) * rq_pricing_cumul_norm_dist(-d1) + S * exp(-r * T2) * (v * v) / (2 * b) * (pow((S / X), (-2 * b / (v * v))) * rq_pricing_cumul_bivar_norm_dist(-d1 + 2 * b * sqrt(T2) / v, f1 - 2 * b * sqrt(t1) / v, -sqrt(t1 / T2)) - exp(b * T2) * rq_pricing_cumul_bivar_norm_dist(-e1, -d1, sqrt(1 - t1 / T2))) + S * exp((b - r) * T2) * rq_pricing_cumul_bivar_norm_dist(e1, -d1, -sqrt(1 - t1 / T2)) + X * exp(-r * T2) * rq_pricing_cumul_bivar_norm_dist(-f2, d2, -sqrt(t1 / T2)) - exp(-b * (T2 - t1)) * (1 - (v * v) / (2 * b)) * S * exp((b - r) * T2) * rq_pricing_cumul_norm_dist(-f1) * rq_pricing_cumul_norm_dist(e2);
  return ret;
}
```