user: 这段汇编代码用C语言表示是什么样的?

```asm
<XD_Draw_Vector>:
  endbr64
  cmp    $0x1,%edx
  jle    L18
  push   %r15
  lea    0x4(%rcx),%rax
  push   %r14
  mov    %r9,%r14
  push   %r13
  mov    %esi,%r13d
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rax,0x8(%rsp)
  lea    0x4(%r8),%rax
  mov    %rax,0x18(%rsp)
  lea    -0x2(%rdx),%eax
  lea    0x8(%rcx,%rax,4),%rax
  mov    %rax,0x20(%rsp)
  nopl   0x0(%rax,%rax,1)
L39:
  mov    0x8(%rsp),%rax
  mov    (%rax),%edi
  mov    -0x4(%rax),%ebx
  mov    0x18(%rsp),%rax
  mov    %edi,(%rsp)
  mov    (%rax),%esi
  mov    -0x4(%rax),%r8d
  mov    %edi,%eax
  sub    %ebx,%eax
  mov    %eax,%edx
  mov    %esi,0x4(%rsp)
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,%ecx
  mov    %eax,%ebp
  mov    %esi,%eax
  sub    %r8d,%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,%r11d
  cmp    %eax,%ecx
  jge    L197
  cmp    %esi,%r8d
  jle    L140
  mov    %r8d,%eax
  mov    %esi,%r8d
  mov    %eax,0x4(%rsp)
  mov    %ebx,%eax
  mov    %edi,%ebx
  mov    %eax,(%rsp)
L140:
  mov    %r11d,0x2c(%rsp)
  sub    $0x8,%rsp
  mov    %r12,%rdi
  mov    %r14,%r9
  push   0x78(%rsp)
  mov    %ebx,%ecx
  mov    %r13d,%edx
  mov    $0x9,%esi
  xor    %eax,%eax
  mov    %r8d,0x38(%rsp)
  call   <XD_Device_Interface@plt>
  mov    %eax,0x20(%rsp)
  mov    %eax,%edi
  pop    %r10
  pop    %r11
  cmp    $0x1,%eax
  jne    L97
  cmp    (%rsp),%ebx
  mov    $0xffffffff,%eax
  mov    0x2c(%rsp),%r11d
  lea    0x0(%rbp,%rbp,1),%r15d
  cmovle %edi,%eax
  mov    0x28(%rsp),%r8d
  mov    %r15d,0x14(%rsp)
  sub    %r11d,%r15d
  mov    %eax,0x10(%rsp)
  mov    %ebp,%eax
  add    $0x1,%r8d
  sub    %r11d,%eax
  add    %eax,%eax
  mov    %eax,(%rsp)
  cmp    %r8d,0x4(%rsp)
  jl     L27
  mov    %r14,%rbp
  mov    %r15d,%r14d
  mov    %ebx,%r15d
  mov    %r8d,%ebx
  jmp    L11
  nopl   0x0(%rax)
L50:
  add    0x10(%rsp),%r15d
  add    (%rsp),%r14d
L58:
  sub    $0x8,%rsp
  mov    %rbp,%r9
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  push   0x78(%rsp)
  mov    %r13d,%edx
  mov    $0x9,%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <XD_Device_Interface@plt>
  pop    %r8
  pop    %r9
  cmp    $0x1,%eax
  jne    L157
  add    $0x1,%ebx
  cmp    %ebx,0x4(%rsp)
  jl     L57
L11:
  test   %r14d,%r14d
  jns    L50
  add    0x14(%rsp),%r14d
  jmp    L58
  nopw   0x0(%rax,%rax,1)
L197:
  mov    (%rsp),%edi
  cmp    %edi,%ebx
  jle    L77
  mov    %r8d,%eax
  mov    0x4(%rsp),%r8d
  mov    %eax,0x4(%rsp)
  mov    %ebx,%eax
  mov    %edi,%ebx
  mov    %eax,(%rsp)
L77:
  mov    %r11d,0x28(%rsp)
  sub    $0x8,%rsp
  mov    %ebx,%ecx
  mov    $0x9,%esi
  push   0x78(%rsp)
  mov    %r12,%rdi
  mov    %r14,%r9
  mov    %r13d,%edx
  xor    %eax,%eax
  mov    %r8d,0x24(%rsp)
  call   <XD_Device_Interface@plt>
  mov    %eax,0x20(%rsp)
  mov    %eax,%ecx
  pop    %rsi
  pop    %rdi
  cmp    $0x1,%eax
  jne    L97
  mov    0x14(%rsp),%r8d
  mov    0x28(%rsp),%r11d
  mov    $0xffffffff,%eax
  cmp    0x4(%rsp),%r8d
  cmovle %ecx,%eax
  lea    (%r11,%r11,1),%r15d
  sub    %ebp,%r11d
  add    $0x1,%ebx
  mov    %r15d,0x14(%rsp)
  sub    %ebp,%r15d
  mov    %eax,0x10(%rsp)
  lea    (%r11,%r11,1),%eax
  mov    %eax,0x4(%rsp)
  cmp    %ebx,(%rsp)
  jl     L27
  mov    %r14,%rbp
  mov    %r15d,%r14d
  mov    %r8d,%r15d
  jmp    L119
  nopl   0x0(%rax)
L38:
  add    0x10(%rsp),%r15d
  add    0x4(%rsp),%r14d
L4:
  sub    $0x8,%rsp
  mov    %ebx,%ecx
  mov    %r13d,%edx
  mov    %rbp,%r9
  push   0x78(%rsp)
  mov    %r15d,%r8d
  mov    $0x9,%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <XD_Device_Interface@plt>
  pop    %rdx
  pop    %rcx
  cmp    $0x1,%eax
  jne    L157
  add    $0x1,%ebx
  cmp    %ebx,(%rsp)
  jl     L57
L119:
  test   %r14d,%r14d
  jns    L38
  add    0x14(%rsp),%r14d
  jmp    L4
  nop
L57:
  mov    %rbp,%r14
L27:
  mov    $0x1,%eax
L93:
  addq   $0x4,0x8(%rsp)
  mov    0x8(%rsp),%rdx
  addq   $0x4,0x18(%rsp)
  cmp    %rdx,0x20(%rsp)
  jne    L39
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L157:
  mov    %rbp,%r14
  jmp    L93
L97:
  mov    0x10(%rsp),%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L18:
  xor    %eax,%eax
  ret
```

assistant: ```c
int XD_Draw_Vector(Unit, Imp, NPts, X, Y, Value, Mask)
int *Unit, Imp, NPts, *X, *Y, *Mask;
char *Value;
{
  int dx, dy, incr1, incr2, d, x, y;
  int XStart, YStart, XEnd, YEnd, Offset, i, status;
  for (i = 0; i < NPts - 1; i++) {
    Offset = 1;
    XStart = X[i];
    XEnd = X[i + 1];
    YStart = Y[i];
    YEnd = Y[i + 1];
    dx = abs(XEnd - XStart);
    dy = abs(YEnd - YStart);
    if (dx < dy) {
      if (YStart > YEnd) {
        XStart = X[i + 1], XEnd = X[i];
        YStart = Y[i + 1], YEnd = Y[i];
      }
      status = XD_Device_Interface(Unit, 9, Imp, XStart, YStart, Value, Mask);
      if (status != 1)
        break;
      x = XStart;
      if (XStart > XEnd)
        Offset = -1;
      d = 2 * dx - dy;
      incr1 = 2 * dx;
      incr2 = 2 * (dx - dy);
      for (y = YStart + 1; y <= YEnd; y++) {
        if (d < 0) {
          d = d + incr1;
        } else {
          x = x + Offset;
          d = d + incr2;
        }
        status = XD_Device_Interface(Unit, 9, Imp, x, y, Value, Mask);
        if (status != 1)
          break;
      }
    } else {
      if (XStart > XEnd) {
        XStart = X[i + 1], XEnd = X[i];
        YStart = Y[i + 1], YEnd = Y[i];
      }
      status = XD_Device_Interface(Unit, 9, Imp, XStart, YStart, Value, Mask);
      if (status != 1)
        break;
      y = YStart;
      if (YStart > YEnd)
        Offset = -1;
      d = 2 * dy - dx;
      incr1 = 2 * dy;
      incr2 = 2 * (dy - dx);
      for (x = XStart + 1; x <= XEnd; x++) {
        if (d < 0) {
          d = d + incr1;
        } else {
          y = y + Offset;
          d = d + incr2;
        }
        status = XD_Device_Interface(Unit, 9, Imp, x, y, Value, Mask);
        if (status != 1)
          break;
      }
    }
  }
  return (status);
}
```