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

```asm
<mse_pfdr_deltaapprox>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  movsd  %xmm0,-0x38(%rbp)
  movsd  %xmm1,-0x40(%rbp)
  mov    %edi,-0x44(%rbp)
  mov    %esi,-0x48(%rbp)
  mov    %edx,-0x4c(%rbp)
  mov    %ecx,-0x50(%rbp)
  mov    %r8d,-0x54(%rbp)
  movsd  -0x38(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L27
  movsd  D24(%rip),%xmm0
  comisd -0x38(%rbp),%xmm0
  jb     L27
  mov    $0x1,%eax
  jmp    L144
L27:
  mov    $0x0,%eax
L144:
  mov    %eax,%edi
  call   <assert@plt>
  movsd  -0x40(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L29
  movsd  D24(%rip),%xmm0
  comisd -0x40(%rbp),%xmm0
  jb     L29
  mov    $0x1,%eax
  jmp    L95
L29:
  mov    $0x0,%eax
L95:
  mov    %eax,%edi
  call   <assert@plt>
  mov    $0x1,%edi
  call   <assert@plt>
  mov    $0x1,%edi
  call   <assert@plt>
  mov    $0x1,%edi
  call   <assert@plt>
  mov    $0x1,%edi
  call   <assert@plt>
  mov    -0x44(%rbp),%edx
  mov    -0x48(%rbp),%eax
  add    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x54(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x44(%rbp),%edx
  mov    -0x48(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%eax
  test   %rax,%rax
  js     L128
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L157
L128:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L157:
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x28(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x48(%rbp),%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%eax
  test   %rax,%rax
  js     L113
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L193
L113:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L193:
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x44(%rbp),%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%eax
  test   %rax,%rax
  js     L34
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L156
L34:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L156:
  movsd  %xmm0,-0x10(%rbp)
  movsd  D24(%rip),%xmm0
  subsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x60(%rbp)
  mov    -0x54(%rbp),%eax
  test   %rax,%rax
  js     L176
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L75
L176:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L75:
  movsd  -0x40(%rbp),%xmm1
  movq   D26(%rip),%xmm2
  xorpd  %xmm2,%xmm1
  movq   %xmm1,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow1pm1@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  -0x60(%rbp),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D29(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0x20(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  divsd  %xmm0,%xmm1
  mov    -0x44(%rbp),%eax
  test   %rax,%rax
  js     L25
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L143
L25:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L143:
  mulsd  -0x18(%rbp),%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x18(%rbp),%xmm2
  mov    -0x48(%rbp),%eax
  test   %rax,%rax
  js     L16
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L173
L16:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L173:
  mulsd  -0x10(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  addsd  %xmm0,%xmm2
  mov    -0x4c(%rbp),%eax
  test   %rax,%rax
  js     L184
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L41
L184:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L41:
  mulsd  -0x20(%rbp),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D24
type: f64
name: disassemble_data
arguments: data_label: D26
type: f32[2]
name: disassemble_data
arguments: data_label: D29
type: f32[2]

tool: D24: 1

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

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

assistant: ```c
double mse_pfdr_deltaapprox(const double lambda, const double gamma, const unsigned int a, const unsigned int b, const unsigned int c, const unsigned int d, const unsigned int m) {
  assert(lambda >= 0. && lambda <= 1.);
  assert(gamma >= 0. && gamma <= 1.);
  assert(a >= 0);
  assert(b >= 0);
  assert(c >= 0);
  assert(d >= 0);
  assert(a + b + c + d == m);
  const double apb = a + b;
  const double apb_sqr = apb * apb;
  const double bmc = b - c;
  const double apc = a + c;
  const double Klambda = -1. / ((1. - lambda) * pow1pm1(-gamma, (double)m));
  return Klambda * Klambda / (apb_sqr * apb_sqr) * (a * bmc * bmc + b * apc * apc + c * apb_sqr);
}
```