user: 请从给定的汇编指令推导出C源代码：

```asm
<par_shapes__trefoil>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x50,%rsp
  mov    %rsi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  movss  D102(%rip),%xmm0
  mulss  (%rdx),%xmm0
  movss  %xmm0,0x8(%rsp)
  movss  D93(%rip),%xmm0
  subss  (%rdi),%xmm0
  mulss  D85(%rip),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  D11(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  pxor   %xmm3,%xmm3
  cvtsd2ss %xmm0,%xmm3
  movss  0x4(%rdi),%xmm0
  addss  %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  %xmm1,%xmm0
  pxor   %xmm7,%xmm7
  cvtsd2ss %xmm0,%xmm7
  movss  %xmm7,0x4(%rsp)
  movss  %xmm3,(%rsp)
  movaps %xmm3,%xmm4
  mulss  D74(%rip),%xmm4
  movd   %xmm4,%ebx
  movaps %xmm4,%xmm0
  call   <cos@plt>
  mulss  D6(%rip),%xmm0
  movaps %xmm0,%xmm5
  addss  D153(%rip),%xmm5
  movss  %xmm5,0xc(%rsp)
  movss  (%rsp),%xmm0
  call   <cos@plt>
  movaps %xmm0,%xmm4
  mulss  0xc(%rsp),%xmm4
  movss  %xmm4,0x18(%rsp)
  movss  (%rsp),%xmm0
  call   <sin@plt>
  movaps %xmm0,%xmm3
  mulss  0xc(%rsp),%xmm3
  movss  %xmm3,0x1c(%rsp)
  movd   %ebx,%xmm0
  call   <sin@plt>
  movss  %xmm0,0xc(%rsp)
  movd   %ebx,%xmm0
  call   <sin@plt>
  movss  %xmm0,0x10(%rsp)
  movss  (%rsp),%xmm0
  call   <cos@plt>
  movss  D159(%rip),%xmm6
  mulss  0x10(%rsp),%xmm6
  mulss  %xmm0,%xmm6
  movss  %xmm6,0x10(%rsp)
  movd   %ebx,%xmm0
  call   <cos@plt>
  movss  %xmm0,0x14(%rsp)
  movss  (%rsp),%xmm0
  call   <sin@plt>
  movaps %xmm0,%xmm1
  movss  D6(%rip),%xmm5
  mulss  0x14(%rsp),%xmm5
  movaps %xmm5,%xmm0
  addss  D153(%rip),%xmm0
  mulss  %xmm0,%xmm1
  movss  0x10(%rsp),%xmm6
  subss  %xmm1,%xmm6
  movss  %xmm6,0x24(%rsp)
  movd   %ebx,%xmm0
  call   <sin@plt>
  movss  %xmm0,0x10(%rsp)
  movss  (%rsp),%xmm0
  call   <sin@plt>
  movss  D159(%rip),%xmm6
  mulss  0x10(%rsp),%xmm6
  movaps %xmm6,%xmm5
  mulss  %xmm0,%xmm5
  movss  %xmm5,0x10(%rsp)
  movd   %ebx,%xmm0
  call   <cos@plt>
  movss  %xmm0,0x14(%rsp)
  movss  (%rsp),%xmm0
  call   <cos@plt>
  movaps %xmm0,%xmm1
  movss  D6(%rip),%xmm6
  mulss  0x14(%rsp),%xmm6
  movaps %xmm6,%xmm0
  addss  D153(%rip),%xmm0
  mulss  %xmm1,%xmm0
  addss  0x10(%rsp),%xmm0
  movss  %xmm0,0x28(%rsp)
  movd   %ebx,%xmm0
  call   <cos@plt>
  mulss  D24(%rip),%xmm0
  movss  %xmm0,0x2c(%rsp)
  lea    0x24(%rsp),%rbx
  mov    %rbx,%rdi
  call   <par_shapes__normalize3@plt>
  movss  0x28(%rsp),%xmm0
  movss  %xmm0,0x30(%rsp)
  movss  0x24(%rsp),%xmm0
  xorps  D98(%rip),%xmm0
  movss  %xmm0,0x34(%rsp)
  movl   $0x0,0x38(%rsp)
  lea    0x30(%rsp),%r12
  mov    %r12,%rdi
  call   <par_shapes__normalize3@plt>
  lea    0x3c(%rsp),%rdi
  mov    %r12,%rdx
  mov    %rbx,%rsi
  call   <par_shapes__cross3@plt>
  mov    0x30(%rsp),%ebx
  movss  0x4(%rsp),%xmm0
  call   <cos@plt>
  movd   %ebx,%xmm7
  mulss  %xmm0,%xmm7
  movss  %xmm7,(%rsp)
  mov    0x3c(%rsp),%ebx
  movss  0x4(%rsp),%xmm0
  call   <sin@plt>
  movd   %ebx,%xmm1
  mulss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  addss  (%rsp),%xmm0
  mulss  0x8(%rsp),%xmm0
  addss  0x18(%rsp),%xmm0
  movss  %xmm0,0x0(%rbp)
  mov    0x34(%rsp),%ebx
  movss  0x4(%rsp),%xmm0
  call   <cos@plt>
  movd   %ebx,%xmm7
  mulss  %xmm0,%xmm7
  movss  %xmm7,(%rsp)
  mov    0x40(%rsp),%ebx
  movss  0x4(%rsp),%xmm0
  call   <sin@plt>
  movd   %ebx,%xmm4
  mulss  %xmm0,%xmm4
  movaps %xmm4,%xmm0
  addss  (%rsp),%xmm0
  movss  0x8(%rsp),%xmm2
  mulss  %xmm2,%xmm0
  addss  0x1c(%rsp),%xmm0
  movss  %xmm0,0x4(%rbp)
  mulss  0x44(%rsp),%xmm2
  movss  %xmm2,(%rsp)
  movss  0x4(%rsp),%xmm0
  call   <sin@plt>
  mulss  (%rsp),%xmm0
  movss  D153(%rip),%xmm1
  mulss  0xc(%rsp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,0x8(%rbp)
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x50,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D102
data_type: byte[4]
name: parse_data
arguments: tag: D93
data_type: byte[4]
name: parse_data
arguments: tag: D85
data_type: byte[4]
name: parse_data
arguments: tag: D11
data_type: f64
name: parse_data
arguments: tag: D74
data_type: byte[4]
name: parse_data
arguments: tag: D6
data_type: byte[4]
name: parse_data
arguments: tag: D153
data_type: byte[4]
name: parse_data
arguments: tag: D159
data_type: byte[4]
name: parse_data
arguments: tag: D24
data_type: byte[4]
name: parse_data
arguments: tag: D98
data_type: byte[16]

tool: {"D102": [0xcd,0xcc,0xcc,0x3d]}

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

tool: {"D85": [0x00,0x00,0x80,0x40]}

tool: D11: 3.14159265359

tool: {"D74": [0x00,0x00,0xc0,0x3f]}

tool: {"D6": [0x9a,0x99,0x99,0x3e]}

tool: {"D153": [0x00,0x00,0x00,0x3f]}

tool: {"D159": [0x67,0x66,0xe6,0xbe]}

tool: {"D24": [0x00,0x00,0x40,0x3f]}

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

assistant: ```c
void par_shapes__trefoil(float const *uv, float *xyz, void *userdata) {
  float minor = *((float *)userdata);
  const float a = 0.5f;
  const float b = 0.3f;
  const float c = 0.5f;
  const float d = minor * 0.1f;
  const float u = (1 - uv[0]) * 4 * (3.14159265359);
  const float v = uv[1] * 2 * (3.14159265359);
  const float r = a + b * cos(1.5f * u);
  const float x = r * cos(u);
  const float y = r * sin(u);
  const float z = c * sin(1.5f * u);
  float q[3];
  q[0] = -1.5f * b * sin(1.5f * u) * cos(u) - (a + b * cos(1.5f * u)) * sin(u);
  q[1] = -1.5f * b * sin(1.5f * u) * sin(u) + (a + b * cos(1.5f * u)) * cos(u);
  q[2] = 1.5f * c * cos(1.5f * u);
  par_shapes__normalize3(q);
  float qvn[3] = {q[1], -q[0], 0};
  par_shapes__normalize3(qvn);
  float ww[3];
  par_shapes__cross3(ww, q, qvn);
  xyz[0] = x + d * (qvn[0] * cos(v) + ww[0] * sin(v));
  xyz[1] = y + d * (qvn[1] * cos(v) + ww[1] * sin(v));
  xyz[2] = z + d * ww[2] * sin(v);
}
```