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

```asm
<vp8_blit_line>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %edx,-0x3c(%rbp)
  mov    %ecx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9d,-0x4c(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovs  %eax,%edx
  mov    -0x38(%rbp),%eax
  sub    -0x34(%rbp),%eax
  mov    %eax,%ecx
  neg    %ecx
  cmovns %ecx,%eax
  cmp    %eax,%edx
  setg   %al
  movzbl %al,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  je     L42
  mov    -0x34(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x40(%rbp)
L42:
  mov    -0x34(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jle    L65
  mov    -0x34(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x40(%rbp)
L65:
  mov    -0x38(%rbp),%eax
  sub    -0x34(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x40(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x24(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x3c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jge    L82
  movl   $0x1,-0x20(%rbp)
  jmp    L60
L82:
  movl   $0xffffffff,-0x20(%rbp)
L60:
  cmpl   $0x0,-0x14(%rbp)
  je     L4
  mov    -0x34(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  jmp    L81
L115:
  mov    -0x4c(%rbp),%ecx
  mov    -0x48(%rbp),%rdx
  mov    -0x18(%rbp),%esi
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <plot@plt>
  mov    -0x4(%rbp),%eax
  sub    %eax,-0x24(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  jns    L119
  mov    -0x20(%rbp),%eax
  add    %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%eax
  add    %eax,-0x24(%rbp)
L119:
  addl   $0x1,-0x18(%rbp)
L81:
  mov    -0x18(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jle    L115
  jmp    L17
L4:
  mov    -0x34(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  jmp    L50
L88:
  mov    -0x4c(%rbp),%ecx
  mov    -0x48(%rbp),%rdx
  mov    -0x1c(%rbp),%esi
  mov    -0x18(%rbp),%eax
  mov    %eax,%edi
  call   <plot@plt>
  mov    -0x4(%rbp),%eax
  sub    %eax,-0x24(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  jns    L100
  mov    -0x20(%rbp),%eax
  add    %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%eax
  add    %eax,-0x24(%rbp)
L100:
  addl   $0x1,-0x18(%rbp)
L50:
  mov    -0x18(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jle    L88
L17:
  nop
  leave
  ret
```

assistant: ```c
void vp8_blit_line(int x0, int x1, int y0, int y1, unsigned char *image, const int pitch) {
  int steep = abs(y1 - y0) > abs(x1 - x0);
  int deltax, deltay;
  int error, ystep, y, x;
  if (steep) {
    int t;
    t = x0;
    x0 = y0;
    y0 = t;
    t = x1;
    x1 = y1;
    y1 = t;
  }
  if (x0 > x1) {
    int t;
    t = x0;
    x0 = x1;
    x1 = t;
    t = y0;
    y0 = y1;
    y1 = t;
  }
  deltax = x1 - x0;
  deltay = abs(y1 - y0);
  error = deltax / 2;
  y = y0;
  if (y0 < y1)
    ystep = 1;
  else
    ystep = -1;
  if (steep) {
    for (x = x0; x <= x1; x++) {
      plot(y, x, image, pitch);
      error = error - deltay;
      if (error < 0) {
        y = y + ystep;
        error = error + deltax;
      }
    }
  } else {
    for (x = x0; x <= x1; x++) {
      plot(x, y, image, pitch);
      error = error - deltay;
      if (error < 0) {
        y = y + ystep;
        error = error + deltax;
      }
    }
  }
}
```