user: Translate the below assembly code into C programming language:

```asm
<rq_pricing_swaption>:
  endbr64
  push   %r14
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,%r12d
  movq   %xmm0,%rbp
  movsd  %xmm1,0x20(%rsp)
  movapd %xmm2,%xmm1
  movsd  %xmm2,(%rsp)
  movsd  %xmm3,0x28(%rsp)
  movsd  %xmm4,0x8(%rsp)
  movq   %xmm5,%rbx
  movsd  %xmm6,0x10(%rsp)
  divsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm1
  movsd  0x10(%rsp),%xmm7
  movapd %xmm7,%xmm0
  mulsd  %xmm7,%xmm0
  mulsd  D11(%rip),%xmm0
  movsd  0x8(%rsp),%xmm2
  mulsd  %xmm2,%xmm0
  movapd %xmm0,%xmm3
  addsd  %xmm1,%xmm3
  pxor   %xmm0,%xmm0
  ucomisd %xmm2,%xmm0
  ja     L20
  sqrtsd %xmm2,%xmm2
  movapd %xmm2,%xmm0
  mulsd  %xmm2,%xmm7
  divsd  %xmm7,%xmm3
  movsd  %xmm3,0x18(%rsp)
L36:
  mulsd  0x10(%rsp),%xmm0
  movsd  0x18(%rsp),%xmm4
  subsd  %xmm0,%xmm4
  movsd  %xmm4,0x10(%rsp)
  test   %r12w,%r12w
  je     L18
  movq   %rbp,%xmm6
  movsd  0x20(%rsp),%xmm5
  mulsd  %xmm5,%xmm6
  movapd %xmm6,%xmm0
  movsd  (%rsp),%xmm1
  divsd  %xmm5,%xmm1
  addsd  D38(%rip),%xmm1
  cvttsd2si %xmm1,%edi
  call   <pow@plt>
  mov    %eax,%ecx
  mov    $0xffffffff,%eax
  cltd
  idiv   %ecx
  add    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm6
  divsd  (%rsp),%xmm6
  movsd  %xmm6,0x20(%rsp)
  movq   %rbx,%xmm5
  xorpd  D66(%rip),%xmm5
  movapd %xmm5,%xmm0
  mulsd  0x8(%rsp),%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm5
  mulsd  0x20(%rsp),%xmm5
  movsd  %xmm5,0x8(%rsp)
  movsd  0x18(%rsp),%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  movapd %xmm0,%xmm6
  mulsd  (%rsp),%xmm6
  movsd  %xmm6,(%rsp)
  movsd  0x10(%rsp),%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  movsd  0x28(%rsp),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  (%rsp),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  0x8(%rsp),%xmm0
L23:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r14
  ret
L20:
  movq   %xmm3,%r14
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  mulsd  0x10(%rsp),%xmm0
  movq   %r14,%xmm4
  divsd  %xmm0,%xmm4
  movsd  %xmm4,0x18(%rsp)
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L36
L18:
  movq   %rbp,%xmm0
  movsd  0x20(%rsp),%xmm4
  mulsd  %xmm4,%xmm0
  movsd  (%rsp),%xmm1
  divsd  %xmm4,%xmm1
  addsd  D38(%rip),%xmm1
  cvttsd2si %xmm1,%edi
  call   <pow@plt>
  mov    %eax,%ecx
  mov    $0xffffffff,%eax
  cltd
  idiv   %ecx
  add    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  (%rsp),%xmm0
  movsd  %xmm0,0x20(%rsp)
  movq   %rbx,%xmm4
  xorpd  D66(%rip),%xmm4
  movapd %xmm4,%xmm0
  mulsd  0x8(%rsp),%xmm0
  call   <exp@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm7
  mulsd  0x20(%rsp),%xmm7
  movsd  %xmm7,0x8(%rsp)
  movsd  0x10(%rsp),%xmm0
  xorpd  D66(%rip),%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  mulsd  0x28(%rsp),%xmm0
  movsd  %xmm0,0x10(%rsp)
  movsd  0x18(%rsp),%xmm6
  xorpd  D66(%rip),%xmm6
  movapd %xmm6,%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  movsd  (%rsp),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  0x10(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  0x8(%rsp),%xmm0
  jmp    L23
```

tool_calls: name: retrieve_data
arguments: label: D11
datatype: f32[2]
name: retrieve_data
arguments: label: D38
datatype: f32[2]
name: retrieve_data
arguments: label: D66
datatype: f32[4]

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

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

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

assistant: ```c
double rq_pricing_swaption(short call, double t1, double m, double F, double X, double T, double r, double v) {
  double d1;
  double d2;
  double ret = 0.0;
  d1 = (log(F / X) + (v * v) / 2 * T) / (v * sqrt(T));
  d2 = d1 - v * sqrt(T);
  if (call)
    ret = ((1 - 1 / pow((1 + F / m), (t1 * m))) / F) * exp(-r * T) * (F * rq_pricing_cumul_norm_dist(d1) - X * rq_pricing_cumul_norm_dist(d2));
  else
    ret = ((1 - 1 / pow((1 + F / m), (t1 * m))) / F) * exp(-r * T) * (X * rq_pricing_cumul_norm_dist(-d2) - F * rq_pricing_cumul_norm_dist(-d1));
  return ret;
}
```