user: Converte this assembly snippet into its equivalent C code:

```asm
<drawEllipse>:
  endbr64
  push   %r15
  mov    %edx,%r11d
  mov    $0x1,%r10d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %ecx,%ebx
  sub    $0x28,%rsp
  neg    %r11d
  cmovs  %edx,%r11d
  neg    %ebx
  cmovs  %ecx,%ebx
  xor    %r15d,%r15d
  xor    %r14d,%r14d
  imul   %edx,%edx
  imul   %ecx,%ecx
  mov    %ebx,0x1c(%rsp)
  mov    %r15d,%ebx
  lea    (%rdx,%rdx,1),%eax
  mov    %edx,0x14(%rsp)
  lea    (%rcx,%rcx,1),%ebp
  mov    %eax,0x10(%rsp)
  lea    (%r11,%r11,1),%eax
  sub    %eax,%r10d
  mov    %ebp,%eax
  mov    %ecx,0x18(%rsp)
  mov    %ebp,%r12d
  imul   %r11d,%eax
  mov    %r11d,%ebp
  imul   %ecx,%r10d
  mov    %eax,(%rsp)
  mov    %r10d,%r13d
  nopl   0x0(%rax,%rax,1)
L10:
  mov    0x14(%rsp),%eax
  mov    %ebx,%ecx
  mov    %ebp,%edx
  mov    %esi,0xc(%rsp)
  mov    %edi,0x8(%rsp)
  add    $0x1,%ebx
  add    %r15d,%eax
  mov    %eax,0x4(%rsp)
  call   <Draw_4_Ellipse_Points@plt>
  add    0x4(%rsp),%r14d
  add    0x10(%rsp),%r15d
  lea    0x0(%r13,%r14,2),%eax
  mov    0x8(%rsp),%edi
  mov    0xc(%rsp),%esi
  test   %eax,%eax
  jle    L29
  sub    %r12d,(%rsp)
  mov    (%rsp),%edx
  sub    %r14d,%eax
  sub    $0x1,%ebp
  mov    %eax,%r14d
  add    %r12d,%r13d
  cmp    %edx,%r15d
  jle    L10
L28:
  mov    0x1c(%rsp),%ebx
  mov    $0x1,%r10d
  xor    %r9d,%r9d
  mov    %r12d,%ebp
  xor    %r14d,%r14d
  xor    %r15d,%r15d
  lea    (%rbx,%rbx,1),%eax
  mov    %ebx,%r12d
  sub    %eax,%r10d
  mov    0x10(%rsp),%eax
  imul   0x14(%rsp),%r10d
  imul   %ebx,%eax
  mov    %r9d,%ebx
  mov    %r10d,%r13d
  mov    %eax,(%rsp)
  nopl   0x0(%rax,%rax,1)
L38:
  mov    0x18(%rsp),%eax
  mov    %r15d,%edx
  mov    %r12d,%ecx
  mov    %esi,0xc(%rsp)
  mov    %edi,0x8(%rsp)
  add    $0x1,%r15d
  add    %ebx,%eax
  add    %ebp,%ebx
  mov    %eax,0x4(%rsp)
  call   <Draw_4_Ellipse_Points@plt>
  add    0x4(%rsp),%r14d
  mov    0x8(%rsp),%edi
  lea    0x0(%r13,%r14,2),%eax
  mov    0xc(%rsp),%esi
  test   %eax,%eax
  jle    L68
  mov    0x10(%rsp),%edx
  sub    %edx,(%rsp)
  sub    %r14d,%eax
  sub    $0x1,%r12d
  mov    (%rsp),%ecx
  mov    %eax,%r14d
  add    %edx,%r13d
  cmp    %ecx,%ebx
  jle    L38
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L68:
  cmp    (%rsp),%ebx
  jle    L38
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L29:
  cmp    (%rsp),%r15d
  jle    L10
  jmp    L28
```

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;
}
```