user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<plotRotatedEllipseRect>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  mov    %ecx,-0x20(%rbp)
  mov    %r8,-0x28(%rbp)
  mov    -0x1c(%rbp),%eax
  sub    -0x14(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x20(%rbp),%eax
  sub    -0x18(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x4(%rbp),%eax
  cltq
  imul   %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  movss  %xmm0,-0xc(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L67
  mov    -0x20(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <plotEllipseRect@plt>
  jmp    L12
L67:
  pxor   %xmm0,%xmm0
  ucomiss -0xc(%rbp),%xmm0
  jp     L29
  pxor   %xmm0,%xmm0
  ucomiss -0xc(%rbp),%xmm0
  je     L22
L29:
  pxor   %xmm2,%xmm2
  cvtsi2ssq -0x28(%rbp),%xmm2
  movss  -0xc(%rbp),%xmm0
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  movss  -0xc(%rbp),%xmm0
  movaps %xmm0,%xmm2
  addss  %xmm0,%xmm2
  divss  %xmm2,%xmm1
  movaps %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
L22:
  movss  D29(%rip),%xmm0
  comiss -0xc(%rbp),%xmm0
  jb     L10
  movss  -0xc(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jb     L10
  mov    $0x1,%eax
  jmp    L14
L10:
  mov    $0x0,%eax
L14:
  mov    %eax,%edi
  call   <assert@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x8(%rbp),%xmm0
  mulss  -0xc(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D30(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  mov    %eax,-0x8(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x4(%rbp),%xmm0
  mulss  -0xc(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D30(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  mov    %eax,-0x4(%rbp)
  movss  D29(%rip),%xmm0
  subss  -0xc(%rbp),%xmm0
  movd   %xmm0,%esi
  mov    -0x14(%rbp),%edx
  mov    -0x8(%rbp),%eax
  lea    (%rdx,%rax,1),%r10d
  mov    -0x18(%rbp),%edx
  mov    -0x4(%rbp),%eax
  lea    (%rdx,%rax,1),%edi
  mov    -0x18(%rbp),%r8d
  mov    -0x18(%rbp),%ecx
  mov    -0x14(%rbp),%edx
  mov    -0x14(%rbp),%eax
  movd   %esi,%xmm0
  mov    %r8d,%r9d
  mov    %r10d,%r8d
  mov    %edi,%esi
  mov    %eax,%edi
  call   <plotQuadRationalBezierSeg@plt>
  mov    -0x1c(%rbp),%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,%r8d
  mov    -0x18(%rbp),%edx
  mov    -0x4(%rbp),%eax
  lea    (%rdx,%rax,1),%edi
  mov    -0xc(%rbp),%esi
  mov    -0x20(%rbp),%r9d
  mov    -0x20(%rbp),%ecx
  mov    -0x14(%rbp),%edx
  mov    -0x14(%rbp),%eax
  movd   %esi,%xmm0
  mov    %edi,%esi
  mov    %eax,%edi
  call   <plotQuadRationalBezierSeg@plt>
  movss  D29(%rip),%xmm0
  subss  -0xc(%rbp),%xmm0
  movd   %xmm0,%edi
  mov    -0x1c(%rbp),%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,%r8d
  mov    -0x20(%rbp),%eax
  sub    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    -0x20(%rbp),%r9d
  mov    -0x20(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  movd   %edi,%xmm0
  mov    %eax,%edi
  call   <plotQuadRationalBezierSeg@plt>
  mov    -0x14(%rbp),%edx
  mov    -0x8(%rbp),%eax
  lea    (%rdx,%rax,1),%r10d
  mov    -0x20(%rbp),%eax
  sub    -0x4(%rbp),%eax
  mov    %eax,%esi
  mov    -0xc(%rbp),%edi
  mov    -0x18(%rbp),%r8d
  mov    -0x18(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  movd   %edi,%xmm0
  mov    %r8d,%r9d
  mov    %r10d,%r8d
  mov    %eax,%edi
  call   <plotQuadRationalBezierSeg@plt>
L12:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D29
data_type: f32
name: retrieve_data
arguments: data_tag: D30
data_type: f64

tool: D29: 1

tool: D30: 0.5

assistant: ```c
void plotRotatedEllipseRect(int x0, int y0, int x1, int y1, long zd) {
  int xd = x1 - x0, yd = y1 - y0;
  float w = xd * (long)yd;
  if (zd == 0)
    return plotEllipseRect(x0, y0, x1, y1);
  if (w != 0.0)
    w = (w - zd) / (w + w);
  assert(w <= 1.0 && w >= 0.0);
  xd = floor(xd * w + 0.5);
  yd = floor(yd * w + 0.5);
  plotQuadRationalBezierSeg(x0, y0 + yd, x0, y0, x0 + xd, y0, 1.0 - w);
  plotQuadRationalBezierSeg(x0, y0 + yd, x0, y1, x1 - xd, y1, w);
  plotQuadRationalBezierSeg(x1, y1 - yd, x1, y1, x1 - xd, y1, 1.0 - w);
  plotQuadRationalBezierSeg(x1, y1 - yd, x1, y0, x0 + xd, y0, w);
}
```