user: 下面的汇编指令对应的C源代码是什么：

```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     L150
  comisd D68(%rip),%xmm0
  movapd %xmm0,%xmm7
  jae    L80
L150:
  xor    %edi,%edi
L206:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x18(%rsp),%xmm5
  ucomisd %xmm5,%xmm5
  jp     L195
  comisd D68(%rip),%xmm5
  jae    L88
L195:
  xor    %edi,%edi
L341:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x30(%rsp),%xmm7
  ucomisd %xmm7,%xmm7
  jp     L294
  comisd D68(%rip),%xmm7
  jae    L108
L294:
  xor    %edi,%edi
L347:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x8(%rsp),%xmm4
  ucomisd %xmm4,%xmm4
  jp     L194
  comisd D160(%rip),%xmm4
  jae    L51
L194:
  xor    %edi,%edi
L354:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x38(%rsp),%xmm6
  ucomisd %xmm6,%xmm6
  jp     L160
  pxor   %xmm4,%xmm4
  xor    %edi,%edi
  comisd %xmm4,%xmm6
  movsd  %xmm4,0x50(%rsp)
  jb     L168
  movsd  D315(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm6,%xmm0
  setae  %dil
L168:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x28(%rsp),%xmm2
  ucomisd %xmm2,%xmm2
  jp     L286
  comisd D75(%rip),%xmm2
  jae    L161
L286:
  xor    %edi,%edi
L239:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x20(%rsp),%xmm6
  ucomisd %xmm6,%xmm6
  jp     L77
  comisd D75(%rip),%xmm6
  jae    L32
L77:
  xor    %edi,%edi
L235:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x10(%rsp),%xmm5
  ucomisd %xmm5,%xmm5
  jp     L47
  comisd D211(%rip),%xmm5
  jae    L279
L47:
  xor    %edi,%edi
L205:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0xb0(%rsp),%xmm7
  ucomisd %xmm7,%xmm7
  jp     L9
  comisd D211(%rip),%xmm7
  jae    L143
L9:
  xor    %edi,%edi
L232:
  xor    %eax,%eax
  call   <assert@plt>
  movsd  0x50(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm5
  ucomisd %xmm5,%xmm4
  ja     L196
  sqrtsd %xmm5,%xmm5
  movsd  %xmm5,0x48(%rsp)
L308:
  movsd  0x10(%rsp),%xmm6
  movsd  0x50(%rsp),%xmm7
  movsd  0xb8(%rsp),%xmm0
  movsd  0xb0(%rsp),%xmm3
  movapd %xmm6,%xmm2
  mulsd  %xmm6,%xmm2
  addsd  %xmm0,%xmm0
  mulsd  %xmm3,%xmm3
  mulsd  %xmm6,%xmm0
  mulsd  0xb0(%rsp),%xmm0
  movapd %xmm2,%xmm1
  addsd  %xmm3,%xmm1
  subsd  %xmm0,%xmm1
  ucomisd %xmm1,%xmm7
  ja     L99
  sqrtsd %xmm1,%xmm1
L184:
  movsd  0xb0(%rsp),%xmm4
  movsd  0x10(%rsp),%xmm5
  movsd  %xmm3,0x60(%rsp)
  lea    D20(%rip),%r13
  mulsd  0xb8(%rsp),%xmm4
  movsd  %xmm2,0x58(%rsp)
  movapd %xmm5,%xmm0
  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  D275(%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  D275(%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  D275(%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     L366
  lea    D205(%rip),%r12
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L11
  lea    D215(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L208
  lea    D222(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    1140 <OptionsOnTheMaxMin.cold>
  movsd  0x38(%rsp),%xmm0
  xorpd  D58(%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  D28(%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
L183:
  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,%rax,1)
L160:
  pxor   %xmm2,%xmm2
  xor    %edi,%edi
  movsd  %xmm2,0x50(%rsp)
  jmp    L168
  nopl   0x0(%rax)
L143:
  movsd  D219(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm7,%xmm0
  setae  %dil
  jmp    L232
  nop
L161:
  movsd  D315(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm2,%xmm0
  setae  %dil
  jmp    L239
  nopw   0x0(%rax,%rax,1)
L279:
  movsd  D219(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm5,%xmm0
  setae  %dil
  jmp    L205
  nopw   0x0(%rax,%rax,1)
L32:
  movsd  D315(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm6,%xmm0
  setae  %dil
  jmp    L235
  nopw   0x0(%rax,%rax,1)
L51:
  movsd  D231(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm4,%xmm0
  setae  %dil
  jmp    L354
  nopw   0x0(%rax,%rax,1)
L108:
  movsd  D115(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm7,%xmm0
  setae  %dil
  jmp    L347
  nopw   0x0(%rax,%rax,1)
L88:
  movsd  D115(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm5,%xmm0
  setae  %dil
  jmp    L341
  nopw   0x0(%rax,%rax,1)
L80:
  movsd  D115(%rip),%xmm0
  xor    %edi,%edi
  comisd %xmm7,%xmm0
  setae  %dil
  jmp    L206
  nopw   0x0(%rax,%rax,1)
L11:
  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  D58(%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  D28(%rip),%xmm1
  cvtsi2sd %eax,%xmm0
  subsd  %xmm0,%xmm1
  mulsd  0x8(%rsp),%xmm1
  movq   %rbp,%xmm0
  subsd  %xmm1,%xmm0
  jmp    L183
  nopw   0x0(%rax,%rax,1)
L366:
  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   D58(%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   D58(%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   D58(%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    L183
  nop
L208:
  movsd  0x38(%rsp),%xmm0
  xorpd  D58(%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  D28(%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    L183
L99:
  movapd %xmm1,%xmm0
  movsd  %xmm3,0x58(%rsp)
  movsd  %xmm2,0x50(%rsp)
  call   <sqrt@plt>
  movsd  0x58(%rsp),%xmm3
  movsd  0x50(%rsp),%xmm2
  movapd %xmm0,%xmm1
  jmp    L184
L196:
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  movsd  %xmm0,0x48(%rsp)
  jmp    L308
```

tool_calls: name: retrieve_data
arguments: data_label: D68
type_guessed: f64[2]
name: retrieve_data
arguments: data_label: D160
type_guessed: byte[16]
name: retrieve_data
arguments: data_label: D315
type_guessed: f64
name: retrieve_data
arguments: data_label: D75
type_guessed: f32[4]
name: retrieve_data
arguments: data_label: D211
type_guessed: f64[2]
name: retrieve_data
arguments: data_label: D20
type_guessed: string
name: retrieve_data
arguments: data_label: D275
type_guessed: f32[2]
name: retrieve_data
arguments: data_label: D205
type_guessed: string
name: retrieve_data
arguments: data_label: D215
type_guessed: string
name: retrieve_data
arguments: data_label: D222
type_guessed: string
name: retrieve_data
arguments: data_label: D58
type_guessed: f32[4]
name: retrieve_data
arguments: data_label: D28
type_guessed: f64
name: retrieve_data
arguments: data_label: D219
type_guessed: f64
name: retrieve_data
arguments: data_label: D231
type_guessed: f64
name: retrieve_data
arguments: data_label: D115
type_guessed: f64

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

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

tool: D315: 1000

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

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

tool: D20: cmin

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

tool: D205: cmax

tool: D215: pmin

tool: D222: pmax

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

tool: D28: 1

tool: D219: 100.99999

tool: D231: 20

tool: D115: 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;
}
```