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

```asm
<drawLine>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,%ebp
  mov    %esi,%r12d
  mov    %edx,%ebx
  mov    %edx,0x30(%rsp)
  mov    %ecx,0x34(%rsp)
  mov    %r8,%r13
  movsd  %xmm0,(%rsp)
  movsd  %xmm1,0x8(%rsp)
  mov    %r9,%r14
  movsd  %xmm2,0x28(%rsp)
  mov    0x80(%rsp),%r15
  mov    %edx,%eax
  sub    %edi,%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,%esi
  mov    %eax,0x1c(%rsp)
  cmp    %edi,%ebx
  setg   %al
  movzbl %al,%eax
  lea    -0x1(%rax,%rax,1),%eax
  mov    %eax,0x38(%rsp)
  mov    %ecx,%eax
  sub    %r12d,%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,0x20(%rsp)
  cmp    %r12d,%ecx
  setg   %dl
  movzbl %dl,%edx
  lea    -0x1(%rdx,%rdx,1),%edx
  mov    %edx,0x3c(%rsp)
  cmp    %eax,%esi
  jg     L72
  mov    %eax,%edx
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  neg    %eax
  mov    %eax,0x24(%rsp)
L84:
  cmp    %ebp,0x30(%rsp)
  jne    L19
  cmp    %r12d,0x34(%rsp)
  jne    L19
L41:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L72:
  mov    0x1c(%rsp),%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  mov    %eax,0x24(%rsp)
  jmp    L84
L73:
  mov    %eax,0x24(%rsp)
L38:
  cmp    0x30(%rsp),%ebp
  jne    L19
  cmp    0x34(%rsp),%r12d
  je     L41
L19:
  mov    %r15,%r8
  mov    %r14,%rcx
  movsd  0x8(%rsp),%xmm1
  movsd  (%rsp),%xmm0
  mov    %r13,%rdx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <drawPixel@plt>
  movsd  D5(%rip),%xmm3
  mulsd  0x28(%rsp),%xmm3
  movsd  %xmm3,0x10(%rsp)
  mov    $0x1,%ebx
  jmp    L42
L108:
  mov    %ebp,%edi
  sub    %ebx,%edi
  mov    %r15,%r8
  mov    %r14,%rcx
  movsd  0x8(%rsp),%xmm1
  movsd  (%rsp),%xmm0
  mov    %r13,%rdx
  mov    %r12d,%esi
  call   <drawPixel@plt>
  lea    (%rbx,%rbp,1),%edi
  mov    %r15,%r8
  mov    %r14,%rcx
  movsd  0x8(%rsp),%xmm1
  movsd  (%rsp),%xmm0
  mov    %r13,%rdx
  mov    %r12d,%esi
  call   <drawPixel@plt>
L32:
  add    $0x1,%ebx
L42:
  movsd  0x10(%rsp),%xmm0
  call   <ceil@plt>
  cmp    %ebx,%eax
  jle    L31
  mov    0x20(%rsp),%ecx
  cmp    %ecx,0x1c(%rsp)
  jle    L108
  mov    %r12d,%esi
  sub    %ebx,%esi
  mov    %r15,%r8
  mov    %r14,%rcx
  movsd  0x8(%rsp),%xmm1
  movsd  (%rsp),%xmm0
  mov    %r13,%rdx
  mov    %ebp,%edi
  call   <drawPixel@plt>
  lea    (%rbx,%r12,1),%esi
  mov    %r15,%r8
  mov    %r14,%rcx
  movsd  0x8(%rsp),%xmm1
  movsd  (%rsp),%xmm0
  mov    %r13,%rdx
  mov    %ebp,%edi
  call   <drawPixel@plt>
  jmp    L32
L31:
  mov    0x1c(%rsp),%edx
  neg    %edx
  mov    0x24(%rsp),%ecx
  mov    %ecx,%eax
  cmp    %ecx,%edx
  jge    L75
  sub    0x20(%rsp),%eax
  add    0x38(%rsp),%ebp
L75:
  mov    0x24(%rsp),%ebx
  cmp    %ebx,0x20(%rsp)
  jle    L73
  add    0x1c(%rsp),%eax
  mov    %eax,0x24(%rsp)
  add    0x3c(%rsp),%r12d
  jmp    L38
```

tool_calls: name: read_data
arguments: data_label: D5
type_infered: byte[8]

tool: {"D5": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

assistant: ```c
void drawLine(int x0, int y0, int x1, int y1, struct graphics *g, double bright, double hue, long long meta, double thick, struct tilecontext *tc) {
  int dx = abs(x1 - x0), sx = (x0 < x1) ? 1 : -1;
  int dy = abs(y1 - y0), sy = (y0 < y1) ? 1 : -1;
  int err = ((dx > dy) ? dx : -dy) / 2, e2;
  while (1) {
    if (x0 == x1 && y0 == y1) {
      break;
    }
    drawPixel(x0, y0, g, bright, hue, meta, tc);
    int n;
    for (n = 1; n < ceil(thick / 2); n++) {
      if (dx > dy) {
        drawPixel(x0, y0 - n, g, bright, hue, meta, tc);
        drawPixel(x0, y0 + n, g, bright, hue, meta, tc);
      } else {
        drawPixel(x0 - n, y0, g, bright, hue, meta, tc);
        drawPixel(x0 + n, y0, g, bright, hue, meta, tc);
      }
    }
    e2 = err;
    if (e2 > -dx) {
      err -= dy;
      x0 += sx;
    }
    if (e2 < dy) {
      err += dx;
      y0 += sy;
    }
  }
}
```