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

```asm
<gfks_rotate_vector_by_quaternion>:
  endbr64
  push   %rbx
  sub    $0x30,%rsp
  mov    %rdi,%rbx
  movaps %xmm1,%xmm7
  mulss  %xmm0,%xmm1
  addss  %xmm1,%xmm1
  movss  %xmm1,0xc(%rsp)
  movaps %xmm2,%xmm1
  mulss  %xmm0,%xmm1
  movaps %xmm1,%xmm8
  addss  %xmm1,%xmm8
  movss  %xmm8,0x10(%rsp)
  movaps %xmm0,%xmm5
  mulss  %xmm3,%xmm5
  movaps %xmm5,%xmm6
  addss  %xmm5,%xmm6
  movss  %xmm6,0x14(%rsp)
  movaps %xmm7,%xmm1
  mulss  %xmm3,%xmm1
  movaps %xmm1,%xmm9
  addss  %xmm1,%xmm9
  movss  %xmm9,0x18(%rsp)
  movss  %xmm7,0x28(%rsp)
  movaps %xmm7,%xmm1
  mulss  %xmm2,%xmm1
  movaps %xmm1,%xmm5
  addss  %xmm1,%xmm5
  movss  %xmm5,0x1c(%rsp)
  movss  %xmm2,0x2c(%rsp)
  mulss  %xmm2,%xmm3
  addss  %xmm3,%xmm3
  movss  %xmm3,0x20(%rsp)
  addss  %xmm0,%xmm0
  cvttss2si %xmm0,%edi
  mov    $0x2,%esi
  call   <powf@plt>
  movss  %xmm0,0x24(%rsp)
  movss  0x28(%rsp),%xmm7
  addss  %xmm7,%xmm7
  cvttss2si %xmm7,%edi
  mov    $0x2,%esi
  call   <powf@plt>
  movss  %xmm0,0x28(%rsp)
  movss  0x2c(%rsp),%xmm4
  addss  %xmm4,%xmm4
  cvttss2si %xmm4,%edi
  mov    $0x2,%esi
  call   <powf@plt>
  movaps %xmm0,%xmm3
  movss  D4(%rip),%xmm0
  movaps %xmm0,%xmm2
  subss  0x24(%rsp),%xmm2
  movaps %xmm2,%xmm1
  movss  (%rbx),%xmm5
  movss  0x4(%rbx),%xmm4
  movss  0x8(%rbx),%xmm2
  movss  0x28(%rsp),%xmm11
  subss  %xmm11,%xmm0
  subss  %xmm3,%xmm0
  mulss  %xmm5,%xmm0
  movss  0xc(%rsp),%xmm7
  movaps %xmm7,%xmm6
  movss  0x20(%rsp),%xmm10
  subss  %xmm10,%xmm6
  mulss  %xmm4,%xmm6
  addss  %xmm6,%xmm0
  movss  0x10(%rsp),%xmm8
  movaps %xmm8,%xmm6
  movss  0x18(%rsp),%xmm9
  addss  %xmm9,%xmm6
  mulss  %xmm2,%xmm6
  addss  %xmm6,%xmm0
  movss  %xmm0,(%rbx)
  addss  %xmm10,%xmm7
  movaps %xmm7,%xmm0
  mulss  %xmm5,%xmm0
  movaps %xmm1,%xmm12
  subss  %xmm3,%xmm12
  movaps %xmm12,%xmm3
  mulss  %xmm4,%xmm3
  addss  %xmm3,%xmm0
  movss  0x1c(%rsp),%xmm7
  movaps %xmm7,%xmm3
  movss  0x14(%rsp),%xmm6
  subss  %xmm6,%xmm3
  mulss  %xmm2,%xmm3
  addss  %xmm3,%xmm0
  movss  %xmm0,0x4(%rbx)
  movaps %xmm8,%xmm0
  subss  %xmm9,%xmm0
  mulss  %xmm5,%xmm0
  addss  %xmm7,%xmm6
  movaps %xmm6,%xmm3
  mulss  %xmm4,%xmm3
  addss  %xmm3,%xmm0
  subss  %xmm11,%xmm1
  mulss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,0x8(%rbx)
  add    $0x30,%rsp
  pop    %rbx
  ret
```

tool_calls: name: retrieve_data
arguments: label: D4
type_guessed: byte[4]

tool: {"D4": [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];
}
```