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

```asm
<gfks_rotate_vector_by_quaternion>:
  endbr64
  movaps %xmm1,%xmm6
  movaps %xmm3,%xmm4
  movaps %xmm2,%xmm5
  push   %rbx
  unpcklps %xmm0,%xmm6
  shufps $0xe0,%xmm4,%xmm4
  shufps $0xe0,%xmm5,%xmm5
  mov    %rdi,%rbx
  mulps  %xmm4,%xmm6
  movaps %xmm0,%xmm4
  mov    $0x2,%esi
  mulss  %xmm2,%xmm3
  unpcklps %xmm1,%xmm4
  sub    $0x30,%rsp
  mulps  %xmm5,%xmm4
  movss  %xmm2,0x10(%rsp)
  movss  %xmm1,0x8(%rsp)
  addps  %xmm6,%xmm6
  addss  %xmm3,%xmm3
  addps  %xmm4,%xmm4
  movlps %xmm6,0x20(%rsp)
  movss  %xmm3,0xc(%rsp)
  movaps %xmm4,%xmm5
  movaps %xmm4,%xmm8
  movlps %xmm4,0x28(%rsp)
  addps  %xmm6,%xmm5
  subps  %xmm6,%xmm8
  movss  %xmm5,%xmm8
  movaps %xmm0,%xmm5
  addss  %xmm0,%xmm0
  mulss  %xmm1,%xmm5
  movlps %xmm8,0x18(%rsp)
  cvttss2si %xmm0,%edi
  addss  %xmm5,%xmm5
  movss  %xmm5,0x14(%rsp)
  call   <powf@plt>
  movss  0x8(%rsp),%xmm1
  mov    $0x2,%esi
  movss  %xmm0,0x4(%rsp)
  addss  %xmm1,%xmm1
  cvttss2si %xmm1,%edi
  call   <powf@plt>
  movss  0x10(%rsp),%xmm2
  mov    $0x2,%esi
  movss  %xmm0,0x8(%rsp)
  addss  %xmm2,%xmm2
  cvttss2si %xmm2,%edi
  call   <powf@plt>
  movss  0x8(%rsp),%xmm1
  movss  0x14(%rsp),%xmm5
  movaps %xmm0,%xmm10
  movss  0xc(%rsp),%xmm3
  movq   (%rbx),%xmm7
  movaps %xmm5,%xmm11
  movss  D5(%rip),%xmm0
  movss  0x8(%rbx),%xmm2
  addss  %xmm3,%xmm11
  subss  %xmm3,%xmm5
  movq   0x18(%rsp),%xmm8
  movq   0x28(%rsp),%xmm4
  movaps %xmm0,%xmm9
  subss  0x4(%rsp),%xmm9
  subss  %xmm1,%xmm0
  movq   0x20(%rsp),%xmm6
  movaps %xmm9,%xmm3
  subss  %xmm10,%xmm0
  subss  %xmm1,%xmm9
  subss  %xmm10,%xmm3
  mulss  %xmm2,%xmm9
  unpcklps %xmm11,%xmm0
  movaps %xmm7,%xmm11
  unpcklps %xmm3,%xmm5
  movaps %xmm7,%xmm3
  shufps $0xe0,%xmm11,%xmm11
  shufps $0xe5,%xmm3,%xmm3
  mulps  %xmm11,%xmm0
  mulps  %xmm3,%xmm5
  movaps %xmm2,%xmm3
  shufps $0xe0,%xmm3,%xmm3
  mulps  %xmm8,%xmm3
  addps  %xmm5,%xmm0
  addps  %xmm3,%xmm0
  movlps %xmm0,(%rbx)
  movaps %xmm4,%xmm0
  shufps $0xe5,%xmm4,%xmm4
  subss  %xmm6,%xmm0
  shufps $0xe5,%xmm6,%xmm6
  addss  %xmm6,%xmm4
  mulss  %xmm7,%xmm0
  shufps $0xe5,%xmm7,%xmm7
  mulss  %xmm7,%xmm4
  addss  %xmm4,%xmm0
  addss  %xmm9,%xmm0
  movss  %xmm0,0x8(%rbx)
  add    $0x30,%rsp
  pop    %rbx
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D5
data_type: byte[4]

tool: {"D5": [0x00,0x00,0x80,0x3f]}

assistant: ```c
void gfks_rotate_vector_by_quaternion(float vec[3], float x, float y, float z, float w) {
  float xy2 = x * y * 2;
  float xz2 = x * z * 2;
  float xw2 = x * w * 2;
  float yw2 = y * w * 2;
  float yz2 = y * z * 2;
  float zw2 = z * w * 2;
  float _2x2 = powf(2 * x, 2);
  float _2y2 = powf(2 * y, 2);
  float _2z2 = powf(2 * z, 2);
  float Q[16];
  Q[0] = 1.0f - _2y2 - _2z2;
  Q[1] = xy2 + zw2;
  Q[2] = xz2 - yw2;
  Q[3] = xy2 - zw2;
  Q[4] = 1.0f - _2x2 - _2z2;
  Q[5] = yz2 + xw2;
  Q[6] = xz2 + yw2;
  Q[7] = yz2 - xw2;
  Q[8] = 1.0f - _2x2 - _2y2;
  float result[3];
  result[0] = (vec[0] * Q[0]) + (vec[1] * Q[3]) + (vec[2] * Q[6]);
  result[1] = (vec[0] * Q[1]) + (vec[1] * Q[4]) + (vec[2] * Q[7]);
  result[2] = (vec[0] * Q[2]) + (vec[1] * Q[5]) + (vec[2] * Q[8]);
  vec[0] = result[0];
  vec[1] = result[1];
  vec[2] = result[2];
}
```