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

```asm
<lcd_draw_circle>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,0x10(%rsp)
  mov    %esi,0x14(%rsp)
  mov    %r8d,%r13d
  mov    %cl,0x23(%rsp)
  mov    %edx,%r14d
  mov    $0x1,%eax
  sub    %edx,%eax
  mov    %eax,0xc(%rsp)
  mov    $0x0,%r15d
  jmp    L2
L31:
  mov    0x14(%rsp),%ebx
  lea    (%r14,%rbx,1),%r12d
  mov    0x10(%rsp),%eax
  lea    (%rax,%r15,1),%ebp
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <lcd_write_pixel@plt>
  mov    %ebx,0x14(%rsp)
  add    %r15d,%ebx
  mov    0x10(%rsp),%eax
  lea    (%r14,%rax,1),%edi
  mov    %r13d,%edx
  mov    %ebx,%esi
  mov    %edi,0x24(%rsp)
  call   <lcd_write_pixel@plt>
  lea    (%r15,%r15,1),%ecx
  mov    %ecx,%edx
  mov    %ebp,%ecx
  mov    %edx,0x1c(%rsp)
  sub    %edx,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ecx,0x28(%rsp)
  mov    %ecx,%edi
  call   <lcd_write_pixel@plt>
  mov    0x10(%rsp),%eax
  sub    %r14d,%eax
  mov    %r13d,%edx
  mov    %ebx,%esi
  mov    %eax,0x2c(%rsp)
  mov    %eax,%edi
  call   <lcd_write_pixel@plt>
  sub    0x1c(%rsp),%ebx
  mov    %r13d,%edx
  mov    %ebx,%esi
  mov    0x24(%rsp),%edi
  call   <lcd_write_pixel@plt>
  mov    0x14(%rsp),%r12d
  sub    %r14d,%r12d
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <lcd_write_pixel@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    0x28(%rsp),%edi
  call   <lcd_write_pixel@plt>
  mov    %r13d,%edx
  mov    %ebx,%esi
  mov    0x2c(%rsp),%edi
  call   <lcd_write_pixel@plt>
L24:
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  js     L16
  lea    0x1(%r15),%edx
  mov    0x18(%rsp),%eax
  sub    %r14d,%eax
  mov    0xc(%rsp),%ecx
  lea    0x5(%rcx,%rax,2),%eax
  mov    %eax,0xc(%rsp)
  lea    -0x1(%r14),%r14d
L26:
  add    $0x1,%r15d
  cmp    %r14d,%edx
  jg     L6
L2:
  mov    %r15d,0x18(%rsp)
  cmpb   $0x0,0x23(%rsp)
  je     L31
  mov    0x14(%rsp),%r12d
  lea    (%r14,%r12,1),%esi
  mov    0x10(%rsp),%eax
  lea    (%rax,%r15,1),%ebx
  lea    (%r15,%r15,1),%ecx
  mov    %ebx,%ebp
  mov    %ecx,0x1c(%rsp)
  sub    %ecx,%ebp
  mov    %r13d,%r8d
  mov    %esi,%ecx
  mov    %ebx,%edx
  mov    %ebp,%edi
  call   <lcd_draw_line@plt>
  mov    %r12d,%esi
  sub    %r14d,%esi
  mov    %r13d,%r8d
  mov    %esi,%ecx
  mov    %ebx,%edx
  mov    %ebp,%edi
  call   <lcd_draw_line@plt>
  lea    (%r12,%r15,1),%ebx
  mov    0x10(%rsp),%eax
  lea    (%r14,%rax,1),%r12d
  sub    %r14d,%eax
  mov    %eax,%ebp
  mov    %r13d,%r8d
  mov    %ebx,%ecx
  mov    %r12d,%edx
  mov    %ebx,%esi
  mov    %eax,%edi
  call   <lcd_draw_line@plt>
  sub    0x1c(%rsp),%ebx
  mov    %ebx,%esi
  mov    %r13d,%r8d
  mov    %ebx,%ecx
  mov    %r12d,%edx
  mov    %ebp,%edi
  call   <lcd_draw_line@plt>
  jmp    L24
L16:
  lea    0x1(%r15),%edx
  lea    0x3(%rax,%r15,2),%eax
  mov    %eax,0xc(%rsp)
  jmp    L26
L6:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void lcd_draw_circle(unsigned int x0, unsigned int y0, unsigned int radius, char fill, int color) {
  int x_offset, y_offset, error;
  x_offset = 0;
  y_offset = radius;
  error = 1 - radius;
  do {
    if (fill) {
      lcd_draw_line(x0 - x_offset, y0 + y_offset, x0 + x_offset, y0 + y_offset, color);
      lcd_draw_line(x0 - x_offset, y0 - y_offset, x0 + x_offset, y0 - y_offset, color);
      lcd_draw_line(x0 - y_offset, y0 + x_offset, x0 + y_offset, y0 + x_offset, color);
      lcd_draw_line(x0 - y_offset, y0 - x_offset, x0 + y_offset, y0 - x_offset, color);
    } else {
      lcd_write_pixel(x_offset + x0, y_offset + y0, color);
      lcd_write_pixel(y_offset + x0, x_offset + y0, color);
      lcd_write_pixel(x0 - x_offset, y_offset + y0, color);
      lcd_write_pixel(x0 - y_offset, x_offset + y0, color);
      lcd_write_pixel(y_offset + x0, y0 - x_offset, color);
      lcd_write_pixel(x_offset + x0, y0 - y_offset, color);
      lcd_write_pixel(x0 - x_offset, y0 - y_offset, color);
      lcd_write_pixel(x0 - y_offset, y0 - x_offset, color);
    }
    if (error < 0)
      error += (3 + (2 * (x_offset++)));
    else
      error += (5 + (2 * ((x_offset++) - (y_offset--))));
  } while (x_offset <= y_offset);
}
```