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

```asm
<PolygonF_Clip>:
  endbr64
  mov    %rsi,%r9
  movaps %xmm0,%xmm8
  mov    %edx,%r10d
  mov    %rcx,%rsi
  mov    $0x0,%ecx
  test   %edi,%edi
  jle    L105
  movaps %xmm0,%xmm5
  mulss  (%r9),%xmm5
  movaps %xmm1,%xmm0
  mulss  0x4(%r9),%xmm0
  addss  %xmm0,%xmm5
  movaps %xmm2,%xmm0
  mulss  0x8(%r9),%xmm0
  addss  %xmm0,%xmm5
  subss  %xmm3,%xmm5
  mov    %r9,%r8
  mov    $0x0,%edx
  mov    $0x0,%r11d
  movaps %xmm4,%xmm6
  xorps  D8(%rip),%xmm6
  jmp    L79
L106:
  cmp    %r10d,%ecx
  jge    L107
  movaps %xmm5,%xmm7
  subss  %xmm0,%xmm7
  divss  %xmm7,%xmm5
  movss  (%r8),%xmm9
  movss  (%rax),%xmm7
  subss  %xmm9,%xmm7
  mulss  %xmm5,%xmm7
  addss  %xmm9,%xmm7
  movss  %xmm7,(%rsi)
  movss  0x4(%r8),%xmm9
  movss  0x4(%rax),%xmm7
  subss  %xmm9,%xmm7
  mulss  %xmm5,%xmm7
  addss  %xmm9,%xmm7
  movss  %xmm7,0x4(%rsi)
  movss  0x8(%r8),%xmm9
  movss  0x8(%rax),%xmm7
  subss  %xmm9,%xmm7
  mulss  %xmm7,%xmm5
  addss  %xmm9,%xmm5
  movss  %xmm5,0x8(%rsi)
  lea    0xc(%rsi),%rsi
L107:
  add    $0x1,%ecx
L111:
  cmp    %edi,%edx
  je     L105
  movaps %xmm0,%xmm5
  mov    %rax,%r8
L79:
  add    $0x1,%edx
  mov    %r11,%rax
  cmp    %edi,%edx
  jge    L103
  lea    (%rdx,%rdx,2),%eax
  cltq
  shl    $0x2,%rax
L103:
  add    %r9,%rax
  movaps %xmm8,%xmm0
  mulss  (%rax),%xmm0
  movaps %xmm1,%xmm7
  mulss  0x4(%rax),%xmm7
  addss  %xmm7,%xmm0
  movaps %xmm2,%xmm7
  mulss  0x8(%rax),%xmm7
  addss  %xmm7,%xmm0
  subss  %xmm3,%xmm0
  comiss %xmm6,%xmm5
  jb     L58
  cmp    %ecx,%r10d
  jle    L11
  movss  (%r8),%xmm7
  movss  %xmm7,(%rsi)
  movss  0x4(%r8),%xmm7
  movss  %xmm7,0x4(%rsi)
  movss  0x8(%r8),%xmm7
  movss  %xmm7,0x8(%rsi)
  lea    0xc(%rsi),%rsi
L11:
  add    $0x1,%ecx
L58:
  comiss %xmm4,%xmm5
  jbe    L45
  comiss %xmm0,%xmm6
  ja     L106
L45:
  comiss %xmm5,%xmm6
  jbe    L111
  comiss %xmm4,%xmm0
  jbe    L111
  jmp    L106
L105:
  mov    %ecx,%eax
  ret
```

tool_calls: name: read_data
arguments: label: D8
data_type: byte[16]

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

assistant: ```c
int PolygonF_Clip(int innumpoints, const float *inpoints, float planenormalx, float planenormaly, float planenormalz, float planedist, float epsilon, int outfrontmaxpoints, float *outfrontpoints) {
  int i, frontcount = 0;
  const float *n, *p;
  float frac, pdist, ndist;
  if (innumpoints < 1)
    return 0;
  n = inpoints;
  ndist = n[0] * planenormalx + n[1] * planenormaly + n[2] * planenormalz - planedist;
  for (i = 0; i < innumpoints; i++) {
    p = n;
    pdist = ndist;
    n = inpoints + ((i + 1) < innumpoints ? (i + 1) : 0) * 3;
    ndist = n[0] * planenormalx + n[1] * planenormaly + n[2] * planenormalz - planedist;
    if (pdist >= -epsilon) {
      if (frontcount < outfrontmaxpoints) {
        *outfrontpoints++ = p[0];
        *outfrontpoints++ = p[1];
        *outfrontpoints++ = p[2];
      }
      frontcount++;
    }
    if ((pdist > epsilon && ndist < -epsilon) || (pdist < -epsilon && ndist > epsilon)) {
      frac = pdist / (pdist - ndist);
      if (frontcount < outfrontmaxpoints) {
        *outfrontpoints++ = p[0] + frac * (n[0] - p[0]);
        *outfrontpoints++ = p[1] + frac * (n[1] - p[1]);
        *outfrontpoints++ = p[2] + frac * (n[2] - p[2]);
      }
      frontcount++;
    }
  }
  return frontcount;
}
```