user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<rq_pricing_compound>:
  endbr64
  push   %r15
  movapd %xmm5,%xmm8
  movapd %xmm4,%xmm10
  movapd %xmm3,%xmm11
  push   %r14
  movapd %xmm8,%xmm9
  movapd %xmm8,%xmm3
  push   %r12
  subsd  %xmm6,%xmm9
  push   %rbp
  mov    %edi,%ebp
  mov    %esi,%edi
  push   %rbx
  mov    %esi,%ebx
  movapd %xmm9,%xmm4
  sub    $0x60,%rsp
  movsd  %xmm0,0x10(%rsp)
  movapd %xmm2,%xmm0
  movsd  %xmm2,0x20(%rsp)
  movapd %xmm10,%xmm2
  subsd  %xmm11,%xmm2
  movsd  %xmm5,0x30(%rsp)
  movapd %xmm7,%xmm5
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm9,0x18(%rsp)
  movsd  %xmm7,0x28(%rsp)
  movsd  %xmm10,(%rsp)
  movsd  %xmm11,0x8(%rsp)
  call   <critical_value@plt>
  pxor   %xmm2,%xmm2
  movsd  0x28(%rsp),%xmm5
  movapd %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  divsd  (%rsp),%xmm0
  ucomisd %xmm0,%xmm2
  ja     L9
  sqrtsd %xmm0,%xmm0
  movq   %xmm0,%r15
L92:
  movsd  0x10(%rsp),%xmm0
  movsd  %xmm5,0x28(%rsp)
  divsd  %xmm1,%xmm0
  call   <log@plt>
  movsd  0x28(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm7
  pxor   %xmm2,%xmm2
  movapd %xmm0,%xmm1
  movapd %xmm5,%xmm3
  ucomisd %xmm7,%xmm2
  movapd %xmm7,%xmm0
  mulsd  %xmm5,%xmm3
  mulsd  D15(%rip),%xmm3
  addsd  0x18(%rsp),%xmm3
  mulsd  %xmm3,%xmm0
  addsd  %xmm0,%xmm1
  ja     L87
  sqrtsd %xmm7,%xmm7
  movapd %xmm7,%xmm0
  mulsd  %xmm5,%xmm0
  divsd  %xmm0,%xmm1
  movq   %xmm1,%r14
L1:
  movq   %r14,%xmm6
  movsd  %xmm5,0x38(%rsp)
  subsd  %xmm0,%xmm6
  movsd  %xmm3,0x28(%rsp)
  movsd  0x10(%rsp),%xmm0
  divsd  0x20(%rsp),%xmm0
  movq   %xmm6,%r12
  call   <log@plt>
  movsd  (%rsp),%xmm4
  pxor   %xmm7,%xmm7
  movsd  0x28(%rsp),%xmm3
  movsd  0x38(%rsp),%xmm5
  mulsd  %xmm4,%xmm3
  ucomisd %xmm4,%xmm7
  addsd  %xmm0,%xmm3
  ja     L31
  sqrtsd %xmm4,%xmm4
  mulsd  %xmm4,%xmm5
  divsd  %xmm5,%xmm3
L66:
  movsd  0x30(%rsp),%xmm2
  movq   D59(%rip),%xmm4
  test   %ebp,%ebp
  movapd %xmm3,%xmm6
  setne  %al
  test   %ebx,%ebx
  subsd  %xmm5,%xmm6
  movapd %xmm2,%xmm1
  setne  %dl
  xorpd  %xmm4,%xmm1
  movsd  %xmm1,0x28(%rsp)
  test   %al,%al
  je     L25
  test   %dl,%dl
  jne    L28
L25:
  test   %ebp,%ebp
  jne    L75
  test   %dl,%dl
  je     L75
  movsd  (%rsp),%xmm0
  mulsd  0x28(%rsp),%xmm0
  movsd  %xmm3,0x58(%rsp)
  movsd  %xmm6,0x50(%rsp)
  call   <exp@plt>
  movsd  0x20(%rsp),%xmm4
  movq   %r12,%xmm6
  movq   %r15,%xmm2
  mulsd  %xmm0,%xmm4
  movsd  %xmm4,0x20(%rsp)
  movq   D59(%rip),%xmm4
  xorpd  %xmm4,%xmm6
  xorpd  %xmm4,%xmm2
  movapd %xmm6,%xmm1
  movsd  %xmm6,0x38(%rsp)
  movsd  0x50(%rsp),%xmm6
  movsd  %xmm2,0x48(%rsp)
  movapd %xmm6,%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movsd  0x20(%rsp),%xmm6
  movsd  0x18(%rsp),%xmm7
  subsd  0x30(%rsp),%xmm7
  mulsd  %xmm0,%xmm6
  movsd  (%rsp),%xmm0
  mulsd  %xmm7,%xmm0
  movq   %xmm6,%rbx
  call   <exp@plt>
  mulsd  0x10(%rsp),%xmm0
  movq   %r14,%xmm1
  movsd  0x58(%rsp),%xmm3
  movq   D59(%rip),%xmm4
  movsd  0x48(%rsp),%xmm2
  xorpd  %xmm4,%xmm1
  movsd  %xmm0,(%rsp)
  movapd %xmm3,%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  mulsd  (%rsp),%xmm0
  movq   %rbx,%xmm2
  subsd  %xmm0,%xmm2
  movsd  0x8(%rsp),%xmm0
  mulsd  0x28(%rsp),%xmm0
  movsd  %xmm2,(%rsp)
  call   <exp@plt>
  mulsd  0x40(%rsp),%xmm0
  movsd  0x38(%rsp),%xmm5
  movsd  %xmm0,0x8(%rsp)
  movapd %xmm5,%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  mulsd  0x8(%rsp),%xmm0
  addsd  (%rsp),%xmm0
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L28:
  movsd  0x18(%rsp),%xmm0
  movsd  %xmm6,0x30(%rsp)
  movsd  %xmm3,0x38(%rsp)
  subsd  %xmm2,%xmm0
  mulsd  (%rsp),%xmm0
  call   <exp@plt>
  movsd  0x10(%rsp),%xmm7
  movsd  0x38(%rsp),%xmm3
  movq   %r15,%xmm2
  movq   %r14,%xmm1
  mulsd  %xmm0,%xmm7
  movapd %xmm3,%xmm0
  movsd  %xmm7,0x10(%rsp)
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movsd  0x10(%rsp),%xmm5
  mulsd  %xmm0,%xmm5
  movsd  (%rsp),%xmm0
  mulsd  0x28(%rsp),%xmm0
  movq   %xmm5,%rbx
  call   <exp@plt>
  mulsd  0x20(%rsp),%xmm0
  movsd  0x30(%rsp),%xmm6
  movq   %r15,%xmm2
  movq   %r12,%xmm1
  movsd  %xmm0,(%rsp)
  movapd %xmm6,%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  mulsd  (%rsp),%xmm0
  movq   %rbx,%xmm6
  subsd  %xmm0,%xmm6
  movsd  0x8(%rsp),%xmm0
  mulsd  0x28(%rsp),%xmm0
  movq   %xmm6,%rbx
  call   <exp@plt>
  mulsd  0x40(%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  movq   %r12,%xmm0
L58:
  call   <rq_pricing_cumul_norm_dist@plt>
  movsd  (%rsp),%xmm1
  add    $0x60,%rsp
  mulsd  %xmm0,%xmm1
  movq   %rbx,%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r14
  pop    %r15
  subsd  %xmm1,%xmm0
  ret
  nopl   0x0(%rax)
L75:
  xorpd  %xmm4,%xmm3
  xorpd  %xmm4,%xmm6
  test   %ebx,%ebx
  jne    L41
  test   %al,%al
  je     L41
  movsd  (%rsp),%xmm0
  mulsd  0x28(%rsp),%xmm0
  movsd  %xmm3,0x50(%rsp)
  movsd  %xmm6,0x48(%rsp)
  call   <exp@plt>
  movsd  0x20(%rsp),%xmm5
  movsd  0x48(%rsp),%xmm6
  movq   %r12,%xmm7
  movq   D59(%rip),%xmm4
  movq   %r15,%xmm2
  mulsd  %xmm0,%xmm5
  movapd %xmm6,%xmm0
  xorpd  %xmm4,%xmm7
  movapd %xmm7,%xmm1
  movsd  %xmm7,0x38(%rsp)
  movsd  %xmm5,0x20(%rsp)
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movsd  0x20(%rsp),%xmm7
  movsd  0x18(%rsp),%xmm5
  subsd  0x30(%rsp),%xmm5
  mulsd  %xmm0,%xmm7
  movsd  (%rsp),%xmm0
  mulsd  %xmm5,%xmm0
  movq   %xmm7,%rbx
  call   <exp@plt>
  mulsd  0x10(%rsp),%xmm0
  movsd  0x50(%rsp),%xmm3
  movq   %r14,%xmm1
  movq   D59(%rip),%xmm4
  movq   %r15,%xmm2
  xorpd  %xmm4,%xmm1
  movsd  %xmm0,(%rsp)
  movapd %xmm3,%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  mulsd  (%rsp),%xmm0
  movq   %rbx,%xmm2
  subsd  %xmm0,%xmm2
  movsd  0x8(%rsp),%xmm0
  mulsd  0x28(%rsp),%xmm0
  movq   %xmm2,%rbx
  call   <exp@plt>
  mulsd  0x40(%rsp),%xmm0
  movsd  0x38(%rsp),%xmm5
  movsd  %xmm0,(%rsp)
  movapd %xmm5,%xmm0
  jmp    L58
  nopw   0x0(%rax,%rax,1)
L41:
  movsd  0x18(%rsp),%xmm0
  subsd  0x30(%rsp),%xmm0
  movsd  %xmm3,0x48(%rsp)
  mulsd  (%rsp),%xmm0
  movsd  %xmm6,0x38(%rsp)
  call   <exp@plt>
  movsd  0x10(%rsp),%xmm6
  movsd  0x48(%rsp),%xmm3
  movq   %r15,%xmm2
  movq   D59(%rip),%xmm4
  movq   %r14,%xmm1
  mulsd  %xmm0,%xmm6
  movapd %xmm3,%xmm0
  xorpd  %xmm4,%xmm2
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm6,0x10(%rsp)
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  movsd  0x10(%rsp),%xmm4
  mulsd  %xmm0,%xmm4
  movsd  (%rsp),%xmm0
  mulsd  0x28(%rsp),%xmm0
  movq   %xmm4,%rbx
  call   <exp@plt>
  mulsd  0x20(%rsp),%xmm0
  movsd  0x38(%rsp),%xmm6
  movq   %r12,%xmm1
  movsd  0x18(%rsp),%xmm2
  movsd  %xmm0,(%rsp)
  movapd %xmm6,%xmm0
  call   <rq_pricing_cumul_bivar_norm_dist@plt>
  mulsd  (%rsp),%xmm0
  movq   %rbx,%xmm7
  subsd  %xmm0,%xmm7
  movsd  0x8(%rsp),%xmm0
  mulsd  0x28(%rsp),%xmm0
  movsd  %xmm7,(%rsp)
  call   <exp@plt>
  mulsd  0x40(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  movq   %r12,%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  mulsd  0x8(%rsp),%xmm0
  addsd  (%rsp),%xmm0
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r14
  pop    %r15
  ret
L31:
  movsd  (%rsp),%xmm0
  movsd  %xmm5,0x38(%rsp)
  movsd  %xmm3,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x38(%rsp),%xmm5
  movsd  0x28(%rsp),%xmm3
  mulsd  %xmm5,%xmm0
  divsd  %xmm0,%xmm3
  movsd  (%rsp),%xmm0
  movsd  %xmm3,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x38(%rsp),%xmm5
  movsd  0x28(%rsp),%xmm3
  mulsd  %xmm0,%xmm5
  jmp    L66
L87:
  movsd  0x8(%rsp),%xmm0
  movsd  %xmm3,0x38(%rsp)
  movsd  %xmm5,0x28(%rsp)
  movsd  %xmm1,0x48(%rsp)
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm5
  movsd  0x48(%rsp),%xmm1
  mulsd  %xmm5,%xmm0
  divsd  %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  movq   %xmm1,%r14
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm5
  movsd  0x38(%rsp),%xmm3
  mulsd  %xmm5,%xmm0
  jmp    L1
L9:
  movsd  %xmm5,0x38(%rsp)
  movsd  %xmm1,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x38(%rsp),%xmm5
  movsd  0x28(%rsp),%xmm1
  movq   %xmm0,%r15
  jmp    L92
```

tool_calls: name: extract_symbolic_data
arguments: tag: D15
type: f32[2]
name: extract_symbolic_data
arguments: tag: D59
type: f32[2]

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

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

assistant: ```c
double rq_pricing_compound(int outer_call, int inner_call, double S, double X_outer, double X_inner, double T_outer, double T_inner, double r, double rf, double v) {
  double y1;
  double y2;
  double z1;
  double z2;
  double I;
  double rho;
  double b = r - rf;
  double ret = 0.0;
  I = critical_value(inner_call, X_inner, X_outer, T_inner - T_outer, r, b, v);
  rho = sqrt(T_outer / T_inner);
  y1 = (log(S / I) + (b + (v * v) / 2) * T_outer) / (v * sqrt(T_outer));
  y2 = y1 - v * sqrt(T_outer);
  z1 = (log(S / X_inner) + (b + (v * v) / 2) * T_inner) / (v * sqrt(T_inner));
  z2 = z1 - v * sqrt(T_inner);
  if (outer_call && inner_call)
    ret = S * exp((b - r) * T_inner) * rq_pricing_cumul_bivar_norm_dist(z1, y1, rho) - X_inner * exp(-r * T_inner) * rq_pricing_cumul_bivar_norm_dist(z2, y2, rho) - X_outer * exp(-r * T_outer) * rq_pricing_cumul_norm_dist(y2);
  else if (!outer_call && inner_call)
    ret = X_inner * exp(-r * T_inner) * rq_pricing_cumul_bivar_norm_dist(z2, -y2, -rho) - S * exp((b - r) * T_inner) * rq_pricing_cumul_bivar_norm_dist(z1, -y1, -rho) + X_outer * exp(-r * T_outer) * rq_pricing_cumul_norm_dist(-y2);
  else if (outer_call && !inner_call)
    ret = X_inner * exp(-r * T_inner) * rq_pricing_cumul_bivar_norm_dist(-z2, -y2, rho) - S * exp((b - r) * T_inner) * rq_pricing_cumul_bivar_norm_dist(-z1, -y1, rho) - X_outer * exp(-r * T_outer) * rq_pricing_cumul_norm_dist(-y2);
  else
    ret = S * exp((b - r) * T_inner) * rq_pricing_cumul_bivar_norm_dist(-z1, y1, -rho) - X_inner * exp(-r * T_inner) * rq_pricing_cumul_bivar_norm_dist(-z2, y2, -rho) + exp(-r * T_outer) * X_outer * rq_pricing_cumul_norm_dist(y2);
  return ret;
}
```