user: 请将以下的汇编代码转换成C语言代码：

```asm
<floats_quat_slerp>:
  endbr64
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdx,%rbp
  mov    $0x4,%edx
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x30,%rsp
  movss  %xmm0,0x4(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <floats_dot@plt>
  lea    0x10(%rsp),%rdi
  mov    $0x10,%edx
  mov    %r12,%rsi
  movss  %xmm0,0x8(%rsp)
  call   <memcpy@plt>
  movss  0x8(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm0,%xmm1
  jbe    L53
  movaps 0x10(%rsp),%xmm1
  xorps  D43(%rip),%xmm1
  xorps  D24(%rip),%xmm0
  movaps %xmm1,0x10(%rsp)
L53:
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  comisd D11(%rip),%xmm1
  jbe    L28
  movss  D39(%rip),%xmm0
  movss  0x4(%rsp),%xmm4
  lea    0x4(%rbx),%rdx
  mov    %rbp,%rax
  sub    %rdx,%rax
  subss  %xmm4,%xmm0
  cmp    $0x8,%rax
  jbe    L0
  movups (%rbx),%xmm1
  shufps $0x0,%xmm0,%xmm0
  mulps  %xmm1,%xmm0
  movaps %xmm4,%xmm1
  shufps $0x0,%xmm1,%xmm1
  mulps  0x10(%rsp),%xmm1
  addps  %xmm1,%xmm0
  movups %xmm0,0x0(%rbp)
L58:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L55
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  cs nopw 0x0(%rax,%rax,1)
L28:
  call   <acos@plt>
  movaps %xmm0,%xmm1
  movss  D39(%rip),%xmm0
  subss  0x4(%rsp),%xmm0
  movss  %xmm1,0xc(%rsp)
  mulss  %xmm1,%xmm0
  call   <sin@plt>
  movss  0xc(%rsp),%xmm1
  movss  %xmm0,0x8(%rsp)
  movss  0x4(%rsp),%xmm0
  mulss  %xmm1,%xmm0
  call   <sin@plt>
  lea    0x4(%rbx),%rdx
  mov    %rbp,%rax
  movss  0x8(%rsp),%xmm2
  sub    %rdx,%rax
  cmp    $0x8,%rax
  jbe    L6
  movups (%rbx),%xmm1
  shufps $0x0,%xmm2,%xmm2
  shufps $0x0,%xmm0,%xmm0
  mulps  0x10(%rsp),%xmm0
  mulps  %xmm2,%xmm1
  addps  %xmm1,%xmm0
  movups %xmm0,0x0(%rbp)
L51:
  mov    %rbp,%rdx
  mov    $0x4,%esi
  mov    %rbp,%rdi
  call   <floats_normalize@plt>
  jmp    L58
  nopl   0x0(%rax)
L0:
  movss  (%rbx),%xmm2
  movss  0x10(%rsp),%xmm1
  movaps %xmm4,%xmm6
  mulss  0x1c(%rsp),%xmm6
  mulss  %xmm0,%xmm2
  mulss  %xmm4,%xmm1
  addss  %xmm2,%xmm1
  movss  0x14(%rsp),%xmm2
  mulss  %xmm4,%xmm2
  movss  %xmm1,0x0(%rbp)
  movss  0x4(%rbx),%xmm1
  mulss  %xmm0,%xmm1
  addss  %xmm2,%xmm1
  movss  0x18(%rsp),%xmm2
  mulss  %xmm4,%xmm2
  movss  %xmm1,0x4(%rbp)
  movss  0x8(%rbx),%xmm1
  mulss  %xmm0,%xmm1
  addss  %xmm2,%xmm1
  movss  %xmm1,0x8(%rbp)
  mulss  0xc(%rbx),%xmm0
  movaps %xmm6,%xmm1
  addss  %xmm0,%xmm1
  movss  %xmm1,0xc(%rbp)
  jmp    L58
  nopw   0x0(%rax,%rax,1)
L6:
  movss  (%rbx),%xmm1
  movss  0x10(%rsp),%xmm3
  mulss  %xmm2,%xmm1
  mulss  %xmm0,%xmm3
  addss  %xmm3,%xmm1
  movss  0x14(%rsp),%xmm3
  mulss  %xmm0,%xmm3
  movss  %xmm1,0x0(%rbp)
  movss  0x4(%rbx),%xmm1
  mulss  %xmm2,%xmm1
  addss  %xmm3,%xmm1
  movss  0x18(%rsp),%xmm3
  mulss  %xmm0,%xmm3
  movss  %xmm1,0x4(%rbp)
  movss  0x8(%rbx),%xmm1
  mulss  0x1c(%rsp),%xmm0
  mulss  %xmm2,%xmm1
  addss  %xmm3,%xmm1
  movss  %xmm1,0x8(%rbp)
  mulss  0xc(%rbx),%xmm2
  addss  %xmm0,%xmm2
  movss  %xmm2,0xc(%rbp)
  jmp    L51
L55:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D43
type_infered: byte[16]
name: parse_data
arguments: label: D24
type_infered: byte[16]
name: parse_data
arguments: label: D11
type_infered: f64
name: parse_data
arguments: label: D39
type_infered: f32

tool: {"D43": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80]}

tool: {"D24": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: D11: 0.95

tool: D39: 1

assistant: ```c
void floats_quat_slerp(const float q0[4], const float _q1[4], float r[4], float w) {
  float dot = floats_dot(q0, _q1, 4);
  float q1[4];
  memcpy(q1, _q1, sizeof(float) * 4);
  if (dot < 0) {
    dot = -dot;
    for (int i = 0; i < 4; i++)
      q1[i] *= -1;
  }
  if (dot > 0.95) {
    for (int i = 0; i < 4; i++)
      r[i] = q0[i] * (1 - w) + q1[i] * w;
  } else {
    float angle = acos(dot);
    float w0 = sin(angle * (1 - w)), w1 = sin(angle * w);
    for (int i = 0; i < 4; i++)
      r[i] = q0[i] * w0 + q1[i] * w1;
    floats_normalize(r, 4, r);
  }
}
```