user: What would the C source look like for the assembly code provided here?

```asm
<OptionsOnTheMaxMin>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  add    $0xffffffffffffff80,%rsp
  ucomisd %xmm0,%xmm0
  movsd  %xmm0,0x40(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm3,0x8(%rsp)
  movsd  %xmm4,0x38(%rsp)
  movsd  %xmm5,0x28(%rsp)
  movsd  %xmm6,0x20(%rsp)
  movsd  %xmm7,0x10(%rsp)
  jp     L30
  comisd D128(%rip),%xmm0
  movapd %xmm0,%xmm7
  jae    L119
L30:
  xor    %edi,%edi
L32:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x18(%rsp),%xmm5
  ucomisd %xmm5,%xmm5
  jp     L248
  comisd D128(%rip),%xmm5
  jae    L18
L248:
  xor    %edi,%edi
L347:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x30(%rsp),%xmm7
  ucomisd %xmm7,%xmm7
  jp     L99
  comisd D128(%rip),%xmm7
  jae    L230
L99:
  xor    %edi,%edi
L38:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x8(%rsp),%xmm4
  ucomisd %xmm4,%xmm4
  jp     L276
  comisd D209(%rip),%xmm4
  jae    L5
L276:
  xor    %edi,%edi
L77:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x38(%rsp),%xmm6
  ucomisd %xmm6,%xmm6
  jp     L229
  pxor   %xmm4,%xmm4
  xor    %edi,%edi
  comisd %xmm4,%xmm6
  movsd  %xmm4,0x50(%rsp)
  jb     L17
  movsd  D182(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm6,%xmm0
  setae  %dil
L17:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x28(%rsp),%xmm2
  ucomisd %xmm2,%xmm2
  jp     L149
  comisd D47(%rip),%xmm2
  jae    L344
L149:
  xor    %edi,%edi
L173:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x20(%rsp),%xmm6
  ucomisd %xmm6,%xmm6
  jp     L197
  comisd D47(%rip),%xmm6
  jae    L89
L197:
  xor    %edi,%edi
L59:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x10(%rsp),%xmm5
  ucomisd %xmm5,%xmm5
  jp     L302
  comisd D41(%rip),%xmm5
  jae    L155
L302:
  xor    %edi,%edi
L312:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0xb0(%rsp),%xmm7
  ucomisd %xmm7,%xmm7
  jp     L336
  comisd D41(%rip),%xmm7
  jae    L105
L336:
  xor    %edi,%edi
L6:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x50(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm5
  ucomisd %xmm5,%xmm4
  ja     L102
  sqrtsd %xmm5,%xmm5
  movapd %xmm4,%xmm7
  movsd  %xmm5,0x48(%rsp)
L288:
  movsd  0xb8(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm6
  movsd  0xb0(%rsp),%xmm3
  movapd %xmm6,%xmm2
  addsd  %xmm0,%xmm0
  mulsd  %xmm6,%xmm2
  mulsd  %xmm3,%xmm3
  mulsd  %xmm6,%xmm0
  mulsd  0xb0(%rsp),%xmm0
  movapd %xmm2,%xmm1
  addsd  %xmm3,%xmm1
  subsd  %xmm0,%xmm1
  ucomisd %xmm1,%xmm7
  ja     L321
  sqrtsd %xmm1,%xmm1
  movapd %xmm6,%xmm5
L111:
  movsd  0xb0(%rsp),%xmm4
  movapd %xmm5,%xmm0
  movsd  %xmm3,0x60(%rsp)
  lea    D63(%rip),%r13
  mulsd  0xb8(%rsp),%xmm4
  movsd  %xmm2,0x58(%rsp)
  movsd  %xmm1,0x50(%rsp)
  subsd  %xmm4,%xmm0
  movsd  0xb8(%rsp),%xmm4
  mulsd  %xmm5,%xmm4
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rbx
  movsd  0xb0(%rsp),%xmm0
  subsd  %xmm4,%xmm0
  divsd  %xmm1,%xmm0
  movq   %xmm0,%r14
  movsd  0x40(%rsp),%xmm0
  divsd  0x18(%rsp),%xmm0
  call   <log@plt>
  movsd  0x50(%rsp),%xmm1
  movsd  0x48(%rsp),%xmm7
  movsd  0x28(%rsp),%xmm4
  subsd  0x20(%rsp),%xmm4
  mulsd  %xmm1,%xmm7
  mulsd  %xmm1,%xmm1
  mulsd  D84(%rip),%xmm1
  movsd  %xmm7,0x68(%rsp)
  addsd  %xmm4,%xmm1
  mulsd  0x8(%rsp),%xmm1
  addsd  %xmm0,%xmm1
  movsd  0x40(%rsp),%xmm0
  divsd  0x30(%rsp),%xmm0
  divsd  %xmm7,%xmm1
  movsd  %xmm1,0x50(%rsp)
  call   <log@plt>
  movsd  0x58(%rsp),%xmm2
  mulsd  D84(%rip),%xmm2
  addsd  0x28(%rsp),%xmm2
  mulsd  0x8(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm5
  mulsd  0x48(%rsp),%xmm5
  addsd  %xmm0,%xmm2
  movsd  0x18(%rsp),%xmm0
  divsd  0x30(%rsp),%xmm0
  movsd  %xmm5,0x70(%rsp)
  movapd %xmm2,%xmm4
  divsd  %xmm5,%xmm4
  movsd  %xmm4,0x58(%rsp)
  call   <log@plt>
  movsd  0x60(%rsp),%xmm3
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mulsd  D84(%rip),%xmm3
  movsd  0x48(%rsp),%xmm6
  mulsd  0xb0(%rsp),%xmm6
  addsd  0x20(%rsp),%xmm3
  mulsd  0x8(%rsp),%xmm3
  movsd  %xmm6,0x78(%rsp)
  addsd  %xmm0,%xmm3
  divsd  %xmm6,%xmm3
  movsd  %xmm3,0x48(%rsp)
  call   <strcmp@plt>
  test   %eax,%eax
  je     L167
  lea    D260(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L337
  lea    D4(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L9
  lea    D104(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    1140 <OptionsOnTheMaxMin.cold>
  movsd  0x38(%rsp),%xmm0
  xorpd  D194(%rip),%xmm0
  mulsd  0x8(%rsp),%xmm0
  call   <exp@plt>
  movsd  0x20(%rsp),%xmm2
  subsd  0x38(%rsp),%xmm2
  movsd  %xmm0,0x48(%rsp)
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm2,%xmm0
  call   <exp@plt>
  movsd  0x18(%rsp),%xmm8
  movsd  0x48(%rsp),%xmm1
  sub    $0x8,%rsp
  mulsd  0x38(%rsp),%xmm1
  movsd  D329(%rip),%xmm2
  mov    $0x8,%eax
  push   0xc0(%rsp)
  mulsd  %xmm8,%xmm0
  push   0xc0(%rsp)
  push   0x28(%rsp)
  movapd %xmm2,%xmm3
  movsd  0x40(%rsp),%xmm7
  movsd  0x48(%rsp),%xmm6
  movsd  0x58(%rsp),%xmm5
  movsd  0x28(%rsp),%xmm4
  movsd  %xmm8,0x38(%rsp)
  subsd  %xmm0,%xmm1
  movsd  0x60(%rsp),%xmm0
  movq   %xmm1,%rbp
  movapd %xmm8,%xmm1
  call   <EuropeanExchangeOption@plt>
  pxor   %xmm0,%xmm0
  movq   %rbp,%xmm9
  mov    %r12,%rdi
  cvtsi2sd %eax,%xmm0
  subsd  %xmm0,%xmm9
  movsd  %xmm9,0x68(%rsp)
  add    $0x20,%rsp
  push   0xb8(%rsp)
  push   0xb8(%rsp)
  movsd  0x20(%rsp),%xmm7
  movsd  0x30(%rsp),%xmm6
  movsd  0x38(%rsp),%xmm5
  movsd  0x48(%rsp),%xmm4
  movsd  0x18(%rsp),%xmm3
  movsd  0x40(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm1
  movsd  0x50(%rsp),%xmm0
  call   <OptionsOnTheMaxMin>
  addsd  0x58(%rsp),%xmm0
  pop    %rax
  pop    %rdx
L103:
  ucomisd %xmm0,%xmm0
  movsd  %xmm0,0x8(%rsp)
  setnp  %dil
  xor    %eax,%eax
  movzbl %dil,%edi
  call   <assert@plt>
  movsd  0x8(%rsp),%xmm0
  sub    $0xffffffffffffff80,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L229:
  pxor   %xmm2,%xmm2
  xor    %edi,%edi
  movsd  %xmm2,0x50(%rsp)
  jmp    L17
  nopl   0x0(%rax)
L105:
  movsd  D20(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm7,%xmm0
  setae  %dil
  jmp    L6
  nopw   0x0(%rax,%rax,1)
L344:
  movsd  D182(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm2,%xmm0
  setae  %dil
  jmp    L173
  nopw   0x0(%rax,%rax,1)
L155:
  movsd  D20(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm5,%xmm0
  setae  %dil
  jmp    L312
  nopw   0x0(%rax,%rax,1)
L89:
  movsd  D182(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm6,%xmm0
  setae  %dil
  jmp    L59
  nopw   0x0(%rax,%rax,1)
L5:
  movsd  D288(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm4,%xmm0
  setae  %dil
  jmp    L77
  nopw   0x0(%rax,%rax,1)
L230:
  movsd  D64(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm7,%xmm0
  setae  %dil
  jmp    L38
  nopw   0x0(%rax,%rax,1)
L18:
  movsd  D64(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm5,%xmm0
  setae  %dil
  jmp    L347
  nopw   0x0(%rax,%rax,1)
L119:
  movsd  D64(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm7,%xmm0
  setae  %dil
  jmp    L32
  nopw   0x0(%rax,%rax,1)
L337:
  movsd  0x28(%rsp),%xmm0
  subsd  0x38(%rsp),%xmm0
  mulsd  0x8(%rsp),%xmm0
  call   <exp@plt>
  mulsd  0x40(%rsp),%xmm0
  movsd  0x50(%rsp),%xmm1
  movq   %rbx,%xmm2
  mov    $0x3,%eax
  movsd  %xmm0,0x10(%rsp)
  movsd  0x58(%rsp),%xmm0
  call   <cbnd@plt>
  pxor   %xmm0,%xmm0
  movsd  0x10(%rsp),%xmm6
  movsd  0x20(%rsp),%xmm5
  cvtsi2sd %eax,%xmm0
  subsd  0x38(%rsp),%xmm5
  mulsd  %xmm0,%xmm6
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm5,%xmm0
  movsd  %xmm6,0x10(%rsp)
  call   <exp@plt>
  movsd  0x18(%rsp),%xmm7
  movsd  0x68(%rsp),%xmm5
  movq   %r14,%xmm2
  subsd  0x50(%rsp),%xmm5
  mov    $0x3,%eax
  mulsd  %xmm0,%xmm7
  movsd  0x48(%rsp),%xmm0
  movapd %xmm5,%xmm1
  movsd  %xmm7,0x18(%rsp)
  call   <cbnd@plt>
  pxor   %xmm0,%xmm0
  movsd  0x10(%rsp),%xmm2
  movsd  0x38(%rsp),%xmm3
  cvtsi2sd %eax,%xmm0
  mulsd  0x18(%rsp),%xmm0
  xorpd  D194(%rip),%xmm3
  addsd  %xmm0,%xmm2
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm3,%xmm0
  movq   %xmm2,%rbp
  call   <exp@plt>
  movsd  0x30(%rsp),%xmm3
  movsd  0x70(%rsp),%xmm4
  mov    $0x3,%eax
  subsd  0x58(%rsp),%xmm4
  movsd  0x78(%rsp),%xmm1
  mulsd  %xmm0,%xmm3
  subsd  0x48(%rsp),%xmm1
  movsd  0xb8(%rsp),%xmm2
  movapd %xmm4,%xmm0
  movsd  %xmm3,0x8(%rsp)
  call   <cbnd@plt>
  pxor   %xmm0,%xmm0
  movsd  D329(%rip),%xmm1
  cvtsi2sd %eax,%xmm0
  subsd  %xmm0,%xmm1
  mulsd  0x8(%rsp),%xmm1
  movq   %rbp,%xmm0
  subsd  %xmm1,%xmm0
  jmp    L103
  nopw   0x0(%rax,%rax,1)
L167:
  movsd  0x28(%rsp),%xmm0
  subsd  0x38(%rsp),%xmm0
  mulsd  0x8(%rsp),%xmm0
  call   <exp@plt>
  mulsd  0x40(%rsp),%xmm0
  movsd  0x50(%rsp),%xmm1
  movq   %rbx,%xmm5
  movq   D194(%rip),%xmm3
  mov    $0x3,%eax
  xorpd  %xmm3,%xmm5
  xorpd  %xmm3,%xmm1
  movapd %xmm5,%xmm2
  movsd  %xmm0,0x10(%rsp)
  movsd  0x58(%rsp),%xmm0
  call   <cbnd@plt>
  pxor   %xmm0,%xmm0
  movsd  0x10(%rsp),%xmm6
  movsd  0x20(%rsp),%xmm2
  cvtsi2sd %eax,%xmm0
  subsd  0x38(%rsp),%xmm2
  mulsd  %xmm0,%xmm6
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm6,0x10(%rsp)
  call   <exp@plt>
  movsd  0x18(%rsp),%xmm5
  movsd  0x50(%rsp),%xmm1
  movq   %r14,%xmm2
  subsd  0x68(%rsp),%xmm1
  movq   D194(%rip),%xmm3
  mov    $0x3,%eax
  mulsd  %xmm0,%xmm5
  movsd  0x48(%rsp),%xmm0
  xorpd  %xmm3,%xmm2
  movsd  %xmm5,0x18(%rsp)
  call   <cbnd@plt>
  movsd  0x38(%rsp),%xmm7
  pxor   %xmm0,%xmm0
  movq   D194(%rip),%xmm3
  cvtsi2sd %eax,%xmm0
  movsd  0x8(%rsp),%xmm4
  mulsd  0x18(%rsp),%xmm0
  xorpd  %xmm7,%xmm3
  movsd  0x10(%rsp),%xmm2
  mulsd  %xmm3,%xmm4
  addsd  %xmm0,%xmm2
  movapd %xmm4,%xmm0
  movq   %xmm2,%rbp
  call   <exp@plt>
  movsd  0x30(%rsp),%xmm7
  movsd  0x58(%rsp),%xmm3
  mov    $0x3,%eax
  subsd  0x70(%rsp),%xmm3
  movsd  0x48(%rsp),%xmm1
  mulsd  %xmm0,%xmm7
  subsd  0x78(%rsp),%xmm1
  movsd  0xb8(%rsp),%xmm2
  movapd %xmm3,%xmm0
  movsd  %xmm7,0x8(%rsp)
  call   <cbnd@plt>
  pxor   %xmm1,%xmm1
  movq   %rbp,%xmm0
  cvtsi2sd %eax,%xmm1
  mulsd  0x8(%rsp),%xmm1
  subsd  %xmm1,%xmm0
  jmp    L103
  nop
L9:
  movsd  0x38(%rsp),%xmm0
  xorpd  D194(%rip),%xmm0
  mulsd  0x8(%rsp),%xmm0
  call   <exp@plt>
  movsd  0x28(%rsp),%xmm7
  subsd  0x38(%rsp),%xmm7
  movq   %xmm0,%rbp
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm7,%xmm0
  call   <exp@plt>
  movsd  0x40(%rsp),%xmm11
  sub    $0x8,%rsp
  movsd  D329(%rip),%xmm2
  movapd %xmm0,%xmm1
  movq   %rbp,%xmm0
  mov    $0x8,%eax
  mulsd  0x38(%rsp),%xmm0
  movapd %xmm2,%xmm3
  mulsd  %xmm11,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x50(%rsp)
  movapd %xmm11,%xmm0
  push   0xc0(%rsp)
  push   0xc0(%rsp)
  push   0x28(%rsp)
  movsd  0x40(%rsp),%xmm7
  movsd  0x48(%rsp),%xmm6
  movsd  0x58(%rsp),%xmm5
  movsd  0x28(%rsp),%xmm4
  movsd  0x38(%rsp),%xmm1
  movsd  %xmm11,0x60(%rsp)
  call   <EuropeanExchangeOption@plt>
  pxor   %xmm0,%xmm0
  movsd  0x68(%rsp),%xmm13
  mov    %r13,%rdi
  cvtsi2sd %eax,%xmm0
  addsd  %xmm0,%xmm13
  movsd  %xmm13,0x68(%rsp)
  add    $0x20,%rsp
  push   0xb8(%rsp)
  push   0xb8(%rsp)
  movsd  0x20(%rsp),%xmm7
  movsd  0x30(%rsp),%xmm6
  movsd  0x38(%rsp),%xmm5
  movsd  0x48(%rsp),%xmm4
  movsd  0x18(%rsp),%xmm3
  movsd  0x40(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm1
  movsd  0x50(%rsp),%xmm0
  call   <OptionsOnTheMaxMin>
  addsd  0x58(%rsp),%xmm0
  pop    %rcx
  pop    %rsi
  jmp    L103
L321:
  movapd %xmm1,%xmm0
  movsd  %xmm3,0x58(%rsp)
  movsd  %xmm2,0x50(%rsp)
  call   <sqrt@plt>
  movsd  0x58(%rsp),%xmm3
  movsd  0x50(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm5
  movapd %xmm0,%xmm1
  jmp    L111
L102:
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  movsd  0x50(%rsp),%xmm7
  movsd  %xmm0,0x48(%rsp)
  jmp    L288
```

tool_calls: name: disassemble_data
arguments: tag: D128
type: f64[2]
name: disassemble_data
arguments: tag: D209
type: byte[16]
name: disassemble_data
arguments: tag: D182
type: f64
name: disassemble_data
arguments: tag: D47
type: f32[4]
name: disassemble_data
arguments: tag: D41
type: f64[2]
name: disassemble_data
arguments: tag: D63
type: string
name: disassemble_data
arguments: tag: D84
type: f32[2]
name: disassemble_data
arguments: tag: D260
type: string
name: disassemble_data
arguments: tag: D4
type: string
name: disassemble_data
arguments: tag: D104
type: string
name: disassemble_data
arguments: tag: D194
type: f32[4]
name: disassemble_data
arguments: tag: D329
type: f64
name: disassemble_data
arguments: tag: D20
type: f64
name: disassemble_data
arguments: tag: D288
type: f64
name: disassemble_data
arguments: tag: D64
type: f64

tool: {"D128": [1e-6,1000000000000.0]}

tool: {"D209": [0xce,0xd2,0x29,0x9c,0x17,0x96,0x25,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0x34,0x40]}

tool: D182: 1000

tool: {"D47": [0.0,-4.4765625,-7.803815971229722e-23,0.2449643909931183]}

tool: {"D41": [1e-7,100.99999]}

tool: D63: cmin

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

tool: D260: cmax

tool: D4: pmin

tool: D104: pmax

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

tool: D329: 1

tool: D20: 100.99999

tool: D288: 20

tool: D64: 1000000000000

assistant: ```c
double OptionsOnTheMaxMin(const char *TypeFlag, double S1, double S2, double X, double T, double r, double b1, double b2, double v1, double v2, double Rho) {
  double sT, v, rho1, rho2, d, _y1, y2, result;
  assert(((S1) == (S1)) && (S1) >= 0.000001 && (S1) <= 1000000000000.0);
  assert(((S2) == (S2)) && (S2) >= 0.000001 && (S2) <= 1000000000000.0);
  assert(((X) == (X)) && (X) >= 0.000001 && (X) <= 1000000000000.0);
  assert(((T) == (T)) && (T) >= (1.0 / (253.0 * 24.0)) && (T) <= (20.0));
  assert(((r) == (r)) && (r) >= 0.0 && (r) <= 1000.0);
  assert(((b1) == (b1)) && (b1) >= -1000.0 && (b1) <= 1000.0);
  assert(((b2) == (b2)) && (b2) >= -1000.0 && (b2) <= 1000.0);
  assert(((v1) == (v1)) && (v1) >= 0.0000001 && v1 <= 100.99999);
  assert(((v2) == (v2)) && (v2) >= 0.0000001 && v2 <= 100.99999);
  sT = sqrt(T);
  v = sqrt(((v1) * (v1)) + ((v2) * (v2)) - 2.0 * Rho * v1 * v2);
  rho1 = (v1 - Rho * v2) / v;
  rho2 = (v2 - Rho * v1) / v;
  d = (log(S1 / S2) + (b1 - b2 + ((v) * (v)) / 2.0) * T) / (v * sT);
  _y1 = (log(S1 / X) + (b1 + ((v1) * (v1)) / 2.0) * T) / (v1 * sT);
  y2 = (log(S2 / X) + (b2 + ((v2) * (v2)) / 2.0) * T) / (v2 * sT);
  if (!strcmp(TypeFlag, "cmin")) {
    result = S1 * exp((b1 - r) * T) * cbnd(_y1, -d, -rho1) + S2 * exp((b2 - r) * T) * cbnd(y2, d - v * sT, -rho2) - X * exp(-r * T) * cbnd(_y1 - v1 * sT, y2 - v2 * sT, Rho);
  } else if (!strcmp(TypeFlag, "cmax")) {
    result = S1 * exp((b1 - r) * T) * cbnd(_y1, d, rho1) + S2 * exp((b2 - r) * T) * cbnd(y2, -d + v * sT, rho2) - X * exp(-r * T) * (1.0 - cbnd(-_y1 + v1 * sT, -y2 + v2 * sT, Rho));
  } else if (!strcmp(TypeFlag, "pmin")) {
    result = X * exp(-r * T) - S1 * exp((b1 - r) * T) + EuropeanExchangeOption(S1, S2, 1.0, 1.0, T, r, b1, b2, v1, v2, Rho) + OptionsOnTheMaxMin("cmin", S1, S2, X, T, r, b1, b2, v1, v2, Rho);
  } else if (!strcmp(TypeFlag, "pmax")) {
    result = X * exp(-r * T) - S2 * exp((b2 - r) * T) - EuropeanExchangeOption(S1, S2, 1.0, 1.0, T, r, b1, b2, v1, v2, Rho) + OptionsOnTheMaxMin("cmax", S1, S2, X, T, r, b1, b2, v1, v2, Rho);
  } else
    abort();
  assert(((result) == (result)));
  return result;
}
```