user: Please show me the C implementation that matches the assembly code listed below:

```asm
<drawEllipse>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %edx,-0x3c(%rbp)
  mov    %ecx,-0x40(%rbp)
  cmpl   $0x0,-0x3c(%rbp)
  jns    L13
  negl   -0x3c(%rbp)
L13:
  cmpl   $0x0,-0x40(%rbp)
  jns    L75
  negl   -0x40(%rbp)
L75:
  mov    -0x3c(%rbp),%eax
  imul   %eax,%eax
  add    %eax,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x40(%rbp),%eax
  imul   %eax,%eax
  add    %eax,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  mov    -0x40(%rbp),%eax
  imul   %eax,%eax
  mov    -0x3c(%rbp),%edx
  lea    (%rdx,%rdx,1),%ecx
  mov    $0x1,%edx
  sub    %ecx,%edx
  imul   %edx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x3c(%rbp),%eax
  imul   %eax,%eax
  mov    %eax,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x4(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L43
L78:
  mov    -0x20(%rbp),%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <Draw_4_Ellipse_Points@plt>
  addl   $0x1,-0x20(%rbp)
  mov    -0x8(%rbp),%eax
  add    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%eax
  add    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%eax
  add    %eax,-0x18(%rbp)
  mov    -0x14(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jle    L43
  subl   $0x1,-0x24(%rbp)
  mov    -0x4(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  add    %eax,-0x14(%rbp)
  mov    -0x4(%rbp),%eax
  add    %eax,-0x1c(%rbp)
L43:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jge    L78
  movl   $0x0,-0x24(%rbp)
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x40(%rbp),%eax
  imul   %eax,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x3c(%rbp),%eax
  imul   %eax,%eax
  mov    -0x40(%rbp),%edx
  lea    (%rdx,%rdx,1),%ecx
  mov    $0x1,%edx
  sub    %ecx,%edx
  imul   %edx,%eax
  mov    %eax,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  imul   -0x40(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L26
L1:
  mov    -0x20(%rbp),%ecx
  mov    -0x24(%rbp),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <Draw_4_Ellipse_Points@plt>
  addl   $0x1,-0x24(%rbp)
  mov    -0x4(%rbp),%eax
  add    %eax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  add    %eax,-0x14(%rbp)
  mov    -0x4(%rbp),%eax
  add    %eax,-0x1c(%rbp)
  mov    -0x14(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jle    L26
  subl   $0x1,-0x20(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%eax
  add    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%eax
  add    %eax,-0x18(%rbp)
L26:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jle    L1
  nop
  leave
  ret
```

assistant: ```c
void drawEllipse(int CX, int CY, int XRadius, int YRadius) {
  int X, Y, XChange, YChange, EllipseError, TwoASquare, TwoBSquare, StoppingX, StoppingY;
  if (XRadius < 0)
    XRadius = -XRadius;
  if (YRadius < 0)
    YRadius = -YRadius;
  TwoASquare = 2 * XRadius * XRadius;
  TwoBSquare = 2 * YRadius * YRadius;
  X = XRadius;
  Y = 0;
  XChange = YRadius * YRadius * (1 - 2 * XRadius);
  YChange = XRadius * XRadius;
  EllipseError = 0;
  StoppingX = TwoBSquare * XRadius;
  StoppingY = 0;
  while (StoppingX >= StoppingY) {
    Draw_4_Ellipse_Points(CX, CY, X, Y);
    Y++;
    StoppingY = StoppingY + TwoASquare;
    EllipseError = EllipseError + YChange;
    YChange = YChange + TwoASquare;
    if ((2 * EllipseError + XChange) > 0) {
      X--;
      StoppingX = StoppingX - TwoBSquare;
      EllipseError = EllipseError + XChange;
      XChange = XChange + TwoBSquare;
    }
  }
  X = 0;
  Y = YRadius;
  XChange = YRadius * YRadius;
  YChange = XRadius * XRadius * (1 - 2 * YRadius);
  EllipseError = 0;
  StoppingX = 0;
  StoppingY = TwoASquare * YRadius;
  while (StoppingX <= StoppingY) {
    Draw_4_Ellipse_Points(CX, CY, X, Y);
    X++;
    StoppingX = StoppingX + TwoBSquare;
    EllipseError = EllipseError + XChange;
    XChange = XChange + TwoBSquare;
    if ((2 * EllipseError + YChange) > 0) {
      Y--;
      StoppingY = StoppingY - TwoASquare;
      EllipseError = EllipseError + YChange;
      YChange = YChange + TwoASquare;
    }
  }
  return;
}
```