user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<QuaternionRotateVector>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x48(%rbp),%rax
  movss  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x30(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  pxor   %xmm1,%xmm1
  cvtss2sd -0x34(%rbp),%xmm1
  movsd  D11(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movss  -0x20(%rbp),%xmm1
  cvtss2sd %xmm1,%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x20(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movss  -0x30(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  D11(%rip),%xmm2
  subsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x20(%rbp)
  movss  -0x30(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x34(%rbp),%xmm0
  movsd  D11(%rip),%xmm2
  subsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x30(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x2c(%rbp)
  movss  -0x2c(%rbp),%xmm0
  movss  %xmm0,-0x24(%rbp)
  mov    -0x48(%rbp),%rax
  movss  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  movss  -0x24(%rbp),%xmm0
  addss  -0x34(%rbp),%xmm0
  movss  %xmm0,-0x24(%rbp)
  movss  -0x2c(%rbp),%xmm0
  subss  -0x34(%rbp),%xmm0
  movss  %xmm0,-0x2c(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x28(%rbp)
  movss  -0x28(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  mov    -0x48(%rbp),%rax
  movss  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  movss  -0x18(%rbp),%xmm0
  subss  -0x34(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x28(%rbp),%xmm0
  addss  -0x34(%rbp),%xmm0
  movss  %xmm0,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x1c(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  mov    -0x48(%rbp),%rax
  movss  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  movss  -0x14(%rbp),%xmm0
  addss  -0x34(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x1c(%rbp),%xmm0
  subss  -0x34(%rbp),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x30(%rbp),%xmm1
  mov    -0x50(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x2c(%rbp),%xmm2
  mov    -0x50(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm2
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  mov    -0x58(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    -0x58(%rbp),%rax
  movss  (%rax),%xmm0
  addss  %xmm0,%xmm0
  mov    -0x58(%rbp),%rax
  movss  %xmm0,(%rax)
  movss  -0x24(%rbp),%xmm1
  mov    -0x50(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x20(%rbp),%xmm2
  mov    -0x50(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x1c(%rbp),%xmm2
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  mov    -0x58(%rbp),%rax
  add    $0x4,%rax
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x58(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mov    -0x58(%rbp),%rax
  add    $0x4,%rax
  addss  %xmm0,%xmm0
  movss  %xmm0,(%rax)
  movss  -0x18(%rbp),%xmm1
  mov    -0x50(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm2
  mov    -0x50(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x10(%rbp),%xmm2
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  addss  %xmm0,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x58(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D11
datatype: f64

tool: D11: 0.5

assistant: ```c
float *QuaternionRotateVector(const float quat[4], const float v[3], float result[3]) {
  float temp, r_2[3][3];
  r_2[0][0] = quat[0] * quat[0];
  r_2[1][1] = quat[2] * quat[2];
  temp = quat[1] * quat[1];
  r_2[2][2] = 0.5 - temp - r_2[1][1];
  r_2[1][1] += r_2[0][0] - 0.5;
  r_2[0][0] += temp - 0.5;
  r_2[0][1] = quat[1] * quat[2];
  r_2[1][0] = r_2[0][1];
  temp = quat[0] * quat[3];
  r_2[1][0] += temp;
  r_2[0][1] -= temp;
  r_2[0][2] = quat[1] * quat[3];
  r_2[2][0] = r_2[0][2];
  temp = quat[0] * quat[2];
  r_2[2][0] -= temp;
  r_2[0][2] += temp;
  r_2[1][2] = quat[2] * quat[3];
  r_2[2][1] = r_2[1][2];
  temp = quat[0] * quat[1];
  r_2[2][1] += temp;
  r_2[1][2] -= temp;
  result[0] = r_2[0][0] * v[0] + r_2[0][1] * v[1] + r_2[0][2] * v[2];
  result[0] += result[0];
  result[1] = r_2[1][0] * v[0] + r_2[1][1] * v[1] + r_2[1][2] * v[2];
  result[1] += result[1];
  result[2] = r_2[2][0] * v[0] + r_2[2][1] * v[1] + r_2[2][2] * v[2];
  result[2] += result[2];
  return result;
}
```