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

```asm
<Quaternion2R>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  movss  (%rax),%xmm1
  mov    -0x18(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm1
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  movss  -0x10(%rbp),%xmm0
  addss  -0xc(%rbp),%xmm0
  subss  -0x8(%rbp),%xmm0
  subss  -0x4(%rbp),%xmm0
  mov    -0x20(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  mov    -0x18(%rbp),%rax
  movss  (%rax),%xmm2
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  addss  %xmm0,%xmm0
  mov    -0x20(%rbp),%rax
  movss  %xmm0,0x4(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  mov    -0x18(%rbp),%rax
  movss  (%rax),%xmm2
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  addss  %xmm0,%xmm0
  mov    -0x20(%rbp),%rax
  movss  %xmm0,0x8(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  mov    -0x18(%rbp),%rax
  movss  (%rax),%xmm2
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  mov    -0x20(%rbp),%rax
  add    $0xc,%rax
  addss  %xmm0,%xmm0
  movss  %xmm0,(%rax)
  movss  -0x10(%rbp),%xmm0
  subss  -0xc(%rbp),%xmm0
  addss  -0x8(%rbp),%xmm0
  mov    -0x20(%rbp),%rax
  add    $0xc,%rax
  subss  -0x4(%rbp),%xmm0
  movss  %xmm0,0x4(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  mov    -0x18(%rbp),%rax
  movss  (%rax),%xmm2
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  mov    -0x20(%rbp),%rax
  add    $0xc,%rax
  addss  %xmm0,%xmm0
  movss  %xmm0,0x8(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  mov    -0x18(%rbp),%rax
  movss  (%rax),%xmm2
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  mov    -0x20(%rbp),%rax
  add    $0x18,%rax
  addss  %xmm0,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  mov    -0x18(%rbp),%rax
  movss  (%rax),%xmm2
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  mov    -0x20(%rbp),%rax
  add    $0x18,%rax
  addss  %xmm0,%xmm0
  movss  %xmm0,0x4(%rax)
  movss  -0x10(%rbp),%xmm0
  subss  -0xc(%rbp),%xmm0
  subss  -0x8(%rbp),%xmm0
  mov    -0x20(%rbp),%rax
  add    $0x18,%rax
  addss  -0x4(%rbp),%xmm0
  movss  %xmm0,0x8(%rax)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void Quaternion2R(float q[4], float Rbe[3][3]) {
  float q0s = q[0] * q[0], q1s = q[1] * q[1], q2s = q[2] * q[2], q3s = q[3] * q[3];
  Rbe[0][0] = q0s + q1s - q2s - q3s;
  Rbe[0][1] = 2 * (q[1] * q[2] + q[0] * q[3]);
  Rbe[0][2] = 2 * (q[1] * q[3] - q[0] * q[2]);
  Rbe[1][0] = 2 * (q[1] * q[2] - q[0] * q[3]);
  Rbe[1][1] = q0s - q1s + q2s - q3s;
  Rbe[1][2] = 2 * (q[2] * q[3] + q[0] * q[1]);
  Rbe[2][0] = 2 * (q[1] * q[3] + q[0] * q[2]);
  Rbe[2][1] = 2 * (q[2] * q[3] - q[0] * q[1]);
  Rbe[2][2] = q0s - q1s - q2s + q3s;
}
```