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

```asm
<drawLine>:
  endbr64
  push   %r15
  mov    %edx,%eax
  push   %r14
  sub    %edi,%eax
  mov    %r9,%r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %esi,%r12d
  mov    %edx,%esi
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edx,0x24(%rsp)
  mov    %eax,%edx
  mov    0x80(%rsp),%r15
  neg    %edx
  mov    %ecx,0x34(%rsp)
  cmovns %edx,%eax
  movsd  %xmm0,(%rsp)
  movsd  %xmm2,0x28(%rsp)
  mov    %eax,%ebx
  mov    %eax,0x20(%rsp)
  xor    %eax,%eax
  cmp    %edi,%esi
  setg   %al
  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,0x1c(%rsp)
  mov    %eax,%edx
  xor    %eax,%eax
  cmp    %r12d,%ecx
  setg   %al
  lea    -0x1(%rax,%rax,1),%eax
  mov    %eax,0x3c(%rsp)
  mov    %ebx,%eax
  sar    %eax
  mov    %eax,0x18(%rsp)
  cmp    %edx,%ebx
  jg     L87
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  neg    %eax
  mov    %eax,0x18(%rsp)
L87:
  cmp    %ebp,0x24(%rsp)
  jne    L42
  cmp    %r12d,0x34(%rsp)
  je     L30
L42:
  mov    0x20(%rsp),%eax
  neg    %eax
  mov    %eax,0x30(%rsp)
  nopw   0x0(%rax,%rax,1)
L33:
  movsd  (%rsp),%xmm0
  mov    %r13,%rdx
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    %r12d,%esi
  mov    %ebp,%edi
  movsd  %xmm1,0x10(%rsp)
  mov    $0x1,%ebx
  call   <drawPixel@plt>
  mov    0x1c(%rsp),%edx
  cmp    %edx,0x20(%rsp)
  movsd  D9(%rip),%xmm3
  mulsd  0x28(%rsp),%xmm3
  movsd  0x10(%rsp),%xmm1
  movsd  %xmm3,0x8(%rsp)
  jg     L126
  jmp    L125
  nopl   (%rax)
L18:
  movsd  (%rsp),%xmm0
  mov    %ebp,%edi
  mov    %r15,%r8
  mov    %r14,%rcx
  sub    %ebx,%edi
  mov    %r13,%rdx
  mov    %r12d,%esi
  call   <drawPixel@plt>
  movsd  (%rsp),%xmm0
  mov    %r15,%r8
  mov    %r14,%rcx
  movsd  0x10(%rsp),%xmm1
  lea    0x0(%rbp,%rbx,1),%edi
  mov    %r13,%rdx
  mov    %r12d,%esi
  add    $0x1,%ebx
  call   <drawPixel@plt>
  movsd  0x10(%rsp),%xmm1
L125:
  movsd  0x8(%rsp),%xmm0
  movsd  %xmm1,0x10(%rsp)
  call   <ceil@plt>
  movsd  0x10(%rsp),%xmm1
  cmp    %ebx,%eax
  jg     L18
L107:
  mov    0x18(%rsp),%ecx
  mov    %ecx,%eax
  cmp    %ecx,0x30(%rsp)
  jge    L52
  sub    0x1c(%rsp),%eax
  add    0x38(%rsp),%ebp
L52:
  mov    0x18(%rsp),%ecx
  cmp    %ecx,0x1c(%rsp)
  jle    L16
  add    0x20(%rsp),%eax
  add    0x3c(%rsp),%r12d
  mov    %eax,0x18(%rsp)
L40:
  cmp    0x24(%rsp),%ebp
  jne    L33
  cmp    0x34(%rsp),%r12d
  jne    L33
L30:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L111:
  movsd  (%rsp),%xmm0
  mov    %r12d,%esi
  mov    %r15,%r8
  mov    %r14,%rcx
  sub    %ebx,%esi
  mov    %r13,%rdx
  mov    %ebp,%edi
  movsd  %xmm1,0x10(%rsp)
  call   <drawPixel@plt>
  movsd  0x10(%rsp),%xmm1
  mov    %r15,%r8
  mov    %ebp,%edi
  movsd  (%rsp),%xmm0
  lea    (%r12,%rbx,1),%esi
  mov    %r14,%rcx
  mov    %r13,%rdx
  add    $0x1,%ebx
  call   <drawPixel@plt>
  movsd  0x10(%rsp),%xmm1
L126:
  movsd  0x8(%rsp),%xmm0
  movsd  %xmm1,0x10(%rsp)
  call   <ceil@plt>
  movsd  0x10(%rsp),%xmm1
  cmp    %ebx,%eax
  jg     L111
  jmp    L107
  nopl   0x0(%rax,%rax,1)
L16:
  mov    %eax,0x18(%rsp)
  jmp    L40
```

tool_calls: name: unpack_data
arguments: label: D9
datatype: byte[8]

tool: {"D9": [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;
    }
  }
}
```