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

```asm
<plotRotatedEllipseRect>:
  endbr64
  push   %r15
  mov    %ecx,%r15d
  push   %r14
  sub    %esi,%r15d
  mov    %ecx,%r14d
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    %edx,%ebx
  movslq %r15d,%rdx
  sub    %edi,%ebx
  movslq %ebx,%rax
  imul   %rdx,%rax
  sub    $0x28,%rsp
  test   %r8,%r8
  je     L0
  pxor   %xmm1,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm1
  ucomiss %xmm0,%xmm1
  jp     L9
  jne    L9
  movss  D27(%rip),%xmm2
  mov    $0x1,%edi
  comiss %xmm1,%xmm2
  jae    L57
L13:
  xor    %edi,%edi
L57:
  movss  %xmm2,0x10(%rsp)
  movss  %xmm1,0xc(%rsp)
  call   <assert@plt>
  pxor   %xmm0,%xmm0
  movss  0xc(%rsp),%xmm1
  cvtsi2ss %ebx,%xmm0
  mulss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  D36(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  pxor   %xmm0,%xmm0
  movss  0xc(%rsp),%xmm1
  cvtsi2ss %r15d,%xmm0
  mov    %eax,%ebx
  mulss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  D36(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <floor@plt>
  movss  0xc(%rsp),%xmm1
  mov    %r12d,%r9d
  mov    %ebp,%edx
  movss  0x10(%rsp),%xmm2
  lea    0x0(%rbp,%rbx,1),%r10d
  mov    %r12d,%ecx
  mov    %ebp,%edi
  lea    (%r12,%rax,1),%esi
  mov    %r10d,%r8d
  mov    %r10d,0x18(%rsp)
  mov    %eax,%r15d
  subss  %xmm1,%xmm2
  mov    %esi,0x14(%rsp)
  movaps %xmm2,%xmm0
  movss  %xmm2,0x1c(%rsp)
  call   <plotQuadRationalBezierSeg@plt>
  movss  0xc(%rsp),%xmm1
  mov    %r13d,%r8d
  mov    %ebp,%edx
  mov    0x14(%rsp),%esi
  sub    %ebx,%r8d
  mov    %r14d,%r9d
  mov    %r14d,%ecx
  movaps %xmm1,%xmm0
  mov    %ebp,%edi
  movss  %xmm1,0x10(%rsp)
  mov    %r14d,%ebp
  mov    %r8d,0xc(%rsp)
  sub    %r15d,%ebp
  call   <plotQuadRationalBezierSeg@plt>
  movss  0x1c(%rsp),%xmm2
  mov    %r14d,%r9d
  mov    %ebp,%esi
  mov    0xc(%rsp),%r8d
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r13d,%edi
  movaps %xmm2,%xmm0
  call   <plotQuadRationalBezierSeg@plt>
  movss  0x10(%rsp),%xmm1
  mov    %r12d,%r9d
  mov    %ebp,%esi
  mov    0x18(%rsp),%r8d
  add    $0x28,%rsp
  mov    %r12d,%ecx
  mov    %r13d,%edx
  pop    %rbx
  mov    %r13d,%edi
  movaps %xmm1,%xmm0
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10a0 <plotQuadRationalBezierSeg@plt>
  nop
L9:
  pxor   %xmm2,%xmm2
  movaps %xmm1,%xmm3
  cvtsi2ss %r8,%xmm2
  subss  %xmm2,%xmm3
  movaps %xmm1,%xmm2
  addss  %xmm1,%xmm2
  divss  %xmm2,%xmm3
  movss  D27(%rip),%xmm2
  comiss %xmm3,%xmm2
  movaps %xmm3,%xmm1
  jb     L13
  comiss %xmm0,%xmm3
  jb     L13
  mov    $0x1,%edi
  jmp    L57
  nopw   0x0(%rax,%rax,1)
L0:
  add    $0x28,%rsp
  mov    %r13d,%edx
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <plotEllipseRect@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D27
type_guessed: f32
name: disassemble_data
arguments: data_tag: D36
type_guessed: f64

tool: D27: 1

tool: D36: 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);
}
```