user: Translate the below assembly code into C programming language:

```asm
<line>:
  endbr64
  push   %r15
  mov    %edi,%r11d
  mov    %esi,%eax
  mov    %r9d,%r15d
  push   %r14
  sub    %ecx,%eax
  sub    %edx,%r11d
  mov    %r8d,%r14d
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x38,%rsp
  mov    %eax,0x4(%rsp)
  or     %r11d,%eax
  mov    0x70(%rsp),%r13d
  je     L160
  mov    %ecx,%ebx
  test   %r11d,%r11d
  je     L265
  mov    %edx,%r10d
  mov    0x4(%rsp),%edx
  test   %edx,%edx
  jne    L333
  test   %r11d,%r11d
  js     L119
  mov    %r10d,%ebx
  cmp    %r10d,%edi
  jl     L124
L55:
  mov    %ebx,%edi
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  mov    %r12d,%esi
  add    $0x1,%ebx
  call   <dot1@plt>
  cmp    %ebx,%ebp
  jge    L55
L124:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L333:
  mov    %esi,%edi
  mov    %r10d,0x10(%rsp)
  mov    %r11d,0x8(%rsp)
  call   <abs@plt>
  cmp    $0x3e8,%rax
  jg     L124
  mov    %ebx,%edi
  call   <abs@plt>
  cmp    $0x3e8,%rax
  jg     L124
  mov    0x8(%rsp),%r11d
  movl   $0xffffffff,0x1c(%rsp)
  mov    0x10(%rsp),%r10d
  test   %r11d,%r11d
  js     L294
L261:
  mov    0x4(%rsp),%eax
  movl   $0xffffffff,0x14(%rsp)
  test   %eax,%eax
  js     L308
L29:
  mov    %r11d,%edi
  mov    %r10d,0x18(%rsp)
  mov    %r11d,0x10(%rsp)
  call   <abs@plt>
  mov    0x4(%rsp),%edi
  mov    %rax,0x8(%rsp)
  call   <abs@plt>
  mov    0x10(%rsp),%r11d
  mov    0x18(%rsp),%r10d
  cmp    %rax,0x8(%rsp)
  mov    %r10d,0x10(%rsp)
  mov    %r11d,0x8(%rsp)
  jge    L327
  mov    0x4(%rsp),%eax
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r12d,%esi
  mov    %ebp,%edi
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  mov    $0x2,%edx
  cmp    $0x1,%eax
  cmove  %eax,%edx
  mov    %edx,0x28(%rsp)
  mov    %r14d,%edx
  call   <dot1@plt>
  mov    0x10(%rsp),%edi
  mov    %ebx,%esi
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  call   <dot1@plt>
  mov    0x8(%rsp),%r11d
  mov    0x4(%rsp),%eax
  mov    0x28(%rsp),%esi
  lea    (%r11,%r11,1),%r9d
  mov    %r9d,0x24(%rsp)
  sub    %eax,%r9d
  cmp    %esi,%eax
  jle    L71
  mov    0x10(%rsp),%r10d
  sub    %eax,%r11d
  mov    %r12d,0x2c(%rsp)
  lea    (%r11,%r11,1),%eax
  mov    %ebp,%r11d
  mov    %r13d,%ebp
  mov    %r9d,%r13d
  mov    %r10d,0x18(%rsp)
  mov    %esi,%r10d
  mov    %eax,0x20(%rsp)
  jmp    L7
  nopl   (%rax)
L179:
  mov    0x1c(%rsp),%ecx
  sub    %ecx,0x18(%rsp)
  add    0x20(%rsp),%r13d
  add    %ecx,%r11d
L56:
  mov    0x14(%rsp),%eax
  mov    %r11d,%edi
  mov    %ebp,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  mov    %r10d,0x10(%rsp)
  add    %eax,%r12d
  mov    %r11d,0x8(%rsp)
  sub    %eax,%ebx
  mov    %r12d,%esi
  call   <dot1@plt>
  mov    0x18(%rsp),%edi
  mov    %ebp,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  mov    %ebx,%esi
  call   <dot1@plt>
  mov    0x10(%rsp),%r10d
  mov    0x8(%rsp),%r11d
  add    $0x2,%r10d
  cmp    %r10d,0x4(%rsp)
  jle    L30
L7:
  test   %r13d,%r13d
  jns    L179
  add    0x24(%rsp),%r13d
  jmp    L56
  nopl   0x0(%rax,%rax,1)
L265:
  mov    0x4(%rsp),%ecx
  test   %ecx,%ecx
  jns    L172
  cmp    %ebx,%esi
  jg     L124
L236:
  mov    %r12d,%esi
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  mov    %ebp,%edi
  add    $0x1,%r12d
  call   <dot1@plt>
  cmp    %r12d,%ebx
  jge    L236
  jmp    L124
  nopl   0x0(%rax)
L59:
  mov    %ebx,%esi
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  mov    %ebp,%edi
  add    $0x1,%ebx
  call   <dot1@plt>
L172:
  cmp    %ebx,%r12d
  jge    L59
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L160:
  mov    %r13d,%r8d
  mov    %r9d,%ecx
  mov    %r14d,%edx
L196:
  mov    %ebp,%edi
L36:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <dot1@plt>
  cs nopw 0x0(%rax,%rax,1)
L119:
  cmp    %r10d,%edi
  jg     L124
  mov    %r10d,%ebx
  nopl   0x0(%rax)
L180:
  mov    %ebp,%edi
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  mov    %r12d,%esi
  add    $0x1,%ebp
  call   <dot1@plt>
  cmp    %ebp,%ebx
  jge    L180
  jmp    L124
  nop
L30:
  mov    0x4(%rsp),%eax
  mov    0x14(%rsp),%esi
  mov    %r13d,%r9d
  mov    %ebp,%r13d
  mov    0x2c(%rsp),%r12d
  mov    %r11d,%ebp
  sub    $0x1,%eax
  sub    0x28(%rsp),%eax
  shr    %eax
  add    %esi,%r12d
  imul   %esi,%eax
  add    %eax,%r12d
L71:
  testb  $0x1,0x4(%rsp)
  jne    L124
  mov    0x1c(%rsp),%eax
  mov    0x14(%rsp),%esi
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  add    %ebp,%eax
  test   %r9d,%r9d
  cmovns %eax,%ebp
  add    %r12d,%esi
  jmp    L196
  nopl   0x0(%rax)
L308:
  mov    %ebx,%eax
  movl   $0x1,0x14(%rsp)
  sub    %r12d,%eax
  mov    %eax,0x4(%rsp)
  jmp    L29
  xchg   %ax,%ax
L294:
  mov    %r10d,%r11d
  movl   $0x1,0x1c(%rsp)
  sub    %ebp,%r11d
  jmp    L261
  nopl   0x0(%rax,%rax,1)
L327:
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <dot1@plt>
  mov    0x10(%rsp),%edi
  mov    %ebx,%esi
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  call   <dot1@plt>
  mov    0x4(%rsp),%eax
  mov    0x8(%rsp),%r11d
  lea    (%rax,%rax,1),%edi
  mov    %edi,0x24(%rsp)
  sub    %r11d,%edi
  mov    %edi,%esi
  cmp    $0x2,%r11d
  jle    L303
  sub    %r11d,%eax
  mov    %r11d,0x18(%rsp)
  mov    %edi,%r10d
  mov    %r12d,%r11d
  add    %eax,%eax
  mov    %ebx,%r12d
  mov    %ebp,0x28(%rsp)
  mov    0x10(%rsp),%ebx
  mov    %eax,0x20(%rsp)
  mov    $0x2,%eax
  mov    %eax,%r9d
  jmp    L231
  nopw   0x0(%rax,%rax,1)
L144:
  mov    0x14(%rsp),%eax
  add    0x20(%rsp),%r10d
  add    %eax,%r11d
  sub    %eax,%r12d
L283:
  mov    0x1c(%rsp),%eax
  mov    %r11d,%esi
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  mov    %r9d,0x10(%rsp)
  add    %eax,%ebp
  sub    %eax,%ebx
  mov    %r10d,0x8(%rsp)
  mov    %ebp,%edi
  mov    %r11d,0x4(%rsp)
  call   <dot1@plt>
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  mov    %r12d,%esi
  mov    %ebx,%edi
  call   <dot1@plt>
  mov    0x10(%rsp),%r9d
  mov    0x4(%rsp),%r11d
  mov    0x8(%rsp),%r10d
  add    $0x2,%r9d
  cmp    %r9d,0x18(%rsp)
  jle    L170
L231:
  test   %r10d,%r10d
  jns    L144
  add    0x24(%rsp),%r10d
  jmp    L283
  nopw   0x0(%rax,%rax,1)
L170:
  mov    %r11d,%r12d
  mov    0x18(%rsp),%r11d
  mov    0x1c(%rsp),%edx
  mov    %r10d,%esi
  mov    0x28(%rsp),%ebp
  lea    -0x3(%r11),%eax
  shr    %eax
  add    %edx,%ebp
  imul   %edx,%eax
  add    %eax,%ebp
L303:
  and    $0x1,%r11d
  jne    L124
  mov    0x14(%rsp),%eax
  mov    0x1c(%rsp),%edi
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %r14d,%edx
  add    %r12d,%eax
  test   %esi,%esi
  cmovns %eax,%r12d
  add    %ebp,%edi
  mov    %r12d,%esi
  jmp    L36
```

assistant: ```c
void line(int x1, int y1, int x2, int y2, int r, int g, int b) {
  int dx, dy, p, s, st, n;
  dx = x1 - x2;
  dy = y1 - y2;
  if ((dx == 0) && (dy == 0)) {
    dot1(x1, y1, r, g, b);
    return;
  }
  if (dx == 0) {
    if (dy < 0) {
      for (p = y1; p <= y2; p++)
        dot1(x1, p, r, g, b);
    } else {
      for (p = y2; p <= y1; p++)
        dot1(x1, p, r, g, b);
    }
    return;
  }
  if (dy == 0) {
    if (dx < 0) {
      for (p = x1; p <= x2; p++)
        dot1(p, y1, r, g, b);
    } else {
      for (p = x2; p <= x1; p++)
        dot1(p, y1, r, g, b);
    }
    return;
  }
  if (abs(y1) > 1000)
    return;
  if (abs(y2) > 1000)
    return;
  if (dx < 0) {
    s = 1;
    dx = -dx;
  } else
    s = -1;
  if (dy < 0) {
    st = 1;
    dy = -dy;
  } else
    st = -1;
  if (abs(dx) >= abs(dy)) {
    if (dx % 2 == 1)
      n = 1;
    else
      n = 2;
    dot1(x1, y1, r, g, b);
    dot1(x2, y2, r, g, b);
    n = 2;
    p = 2 * dy - dx;
    while (n < dx) {
      if (p >= 0) {
        y1 = y1 + st;
        y2 = y2 - st;
        p = p + 2 * (dy - dx);
      } else
        p = p + 2 * dy;
      x1 = x1 + s;
      x2 = x2 - s;
      dot1(x1, y1, r, g, b);
      dot1(x2, y2, r, g, b);
      n = n + 2;
    }
    if (dx % 2 == 0) {
      if (p >= 0)
        y1 = y1 + st;
      x1 = x1 + s;
      dot1(x1, y1, r, g, b);
    }
  } else {
    if (dy % 2 == 1)
      n = 1;
    else
      n = 2;
    dot1(x1, y1, r, g, b);
    dot1(x2, y2, r, g, b);
    p = 2 * dx - dy;
    while (n < dy) {
      if (p >= 0) {
        x1 = x1 + s;
        x2 = x2 - s;
        p = p + 2 * (dx - dy);
      } else
        p = p + 2 * dx;
      y1 = y1 + st;
      y2 = y2 - st;
      dot1(x1, y1, r, g, b);
      dot1(x2, y2, r, g, b);
      n = n + 2;
    }
    if (dy % 2 == 0) {
      if (p >= 0)
        x1 = x1 + s;
      y1 = y1 + st;
      dot1(x1, y1, r, g, b);
    }
  }
}
```