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

```asm
<rq_pricing_garmankhol>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %edi,-0x34(%rbp)
  movsd  %xmm0,-0x40(%rbp)
  movsd  %xmm1,-0x48(%rbp)
  movsd  %xmm2,-0x50(%rbp)
  movsd  %xmm3,-0x58(%rbp)
  movsd  %xmm4,-0x60(%rbp)
  movsd  %xmm5,-0x68(%rbp)
  movsd  %xmm6,-0x70(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  je     L19
  movsd  D4(%rip),%xmm0
  jmp    L55
L19:
  movsd  D27(%rip),%xmm0
L55:
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x40(%rbp),%xmm0
  mulsd  -0x58(%rbp),%xmm0
  divsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x60(%rbp),%xmm0
  jae    L7
  pxor   %xmm0,%xmm0
  ucomisd -0x48(%rbp),%xmm0
  jp     L32
  pxor   %xmm0,%xmm0
  ucomisd -0x48(%rbp),%xmm0
  je     L7
L32:
  movsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm1
  divsd  -0x48(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jae    L7
  pxor   %xmm0,%xmm0
  comisd -0x68(%rbp),%xmm0
  jb     L41
L7:
  movsd  -0x20(%rbp),%xmm0
  subsd  -0x48(%rbp),%xmm0
  mulsd  -0x28(%rbp),%xmm0
  movq   %xmm0,%rax
  pxor   %xmm1,%xmm1
  movq   %rax,%xmm0
  call   <max@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mulsd  -0x50(%rbp),%xmm0
  jmp    L56
L41:
  mov    -0x68(%rbp),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movsd  -0x60(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  divsd  -0x48(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movsd  -0x60(%rbp),%xmm2
  movsd  D13(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  mulsd  -0x60(%rbp),%xmm1
  mulsd  -0x68(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  divsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  -0x28(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x10(%rbp),%xmm0
  mulsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x10(%rbp),%rax
  movq   %rax,%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm7
  mulsd  -0x20(%rbp),%xmm7
  movsd  %xmm7,-0x80(%rbp)
  mov    -0x8(%rbp),%rax
  movq   %rax,%xmm0
  call   <rq_pricing_cumul_norm_dist@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm1
  mulsd  -0x48(%rbp),%xmm1
  movsd  -0x80(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  -0x78(%rbp),%xmm0
L56:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D4
type_infered: f64
name: extract_symbolic_data
arguments: data_label: D27
type_infered: f32[2]
name: extract_symbolic_data
arguments: data_label: D13
type_infered: f64

tool: D4: 1

tool: {"D27": [0.0,-1.875]}

tool: D13: 0.5

assistant: ```c
double rq_pricing_garmankhol(int call, double S, double X, double df_dom, double df_for, double sigma, double tau_e, double tau_d) {
  double d1, d2, m = (call ? 1.0 : -1.0);
  double sigma_tau_sqrt;
  double f = S * df_for / df_dom;
  if (sigma <= 0.0 || X == 0.0 || f / X <= 0.0 || tau_e <= 0.0)
    return df_dom * max(m * (f - X), 0.0);
  sigma_tau_sqrt = sigma * sqrt(tau_e);
  d1 = (log(f / X) + (0.5 * sigma * sigma * tau_e)) / sigma_tau_sqrt;
  d2 = (d1 - sigma_tau_sqrt) * m;
  d1 *= m;
  return df_dom * m * (f * rq_pricing_cumul_norm_dist(d1) - X * rq_pricing_cumul_norm_dist(d2));
}
```