user: 请将以下的汇编代码转换成C语言代码：

```asm
<plot_line>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %esi,-0x5c(%rbp)
  mov    %edx,-0x60(%rbp)
  movsd  %xmm0,-0x68(%rbp)
  movsd  %xmm1,-0x70(%rbp)
  movsd  %xmm2,-0x78(%rbp)
  movl   $0x0,-0x44(%rbp)
  mov    -0x68(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  mov    %rax,%rbx
  mov    -0x70(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  cmp    %rax,%rbx
  jge    L53
  movsd  -0x68(%rbp),%xmm0
  movq   D1(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  divsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x78(%rbp),%xmm0
  movq   D1(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  divsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L56
L33:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x40(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  addsd  -0x18(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <round@plt>
  mov    %eax,-0x34(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x40(%rbp),%eax
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x34(%rbp)
  js     L52
  mov    -0x34(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jge    L52
  mov    -0x44(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x44(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x34(%rbp),%eax
  mov    %eax,0x4(%rdx)
L52:
  addl   $0x1,-0x40(%rbp)
L56:
  mov    -0x40(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jl     L33
  jmp    L99
L53:
  movsd  -0x70(%rbp),%xmm0
  movq   D1(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  divsd  -0x68(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x78(%rbp),%xmm0
  movq   D1(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  divsd  -0x68(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movl   $0x0,-0x3c(%rbp)
  jmp    L36
L47:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x3c(%rbp),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  addsd  -0x28(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <round@plt>
  mov    %eax,-0x38(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x3c(%rbp),%eax
  mov    %eax,0x4(%rdx)
  cmpl   $0x0,-0x38(%rbp)
  js     L79
  mov    -0x38(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jge    L79
  mov    -0x44(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x44(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x38(%rbp),%eax
  mov    %eax,(%rdx)
L79:
  addl   $0x1,-0x3c(%rbp)
L36:
  mov    -0x3c(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jl     L47
L99:
  mov    -0x44(%rbp),%eax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D1
type_guessed: byte[8]

tool: {"D1": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

assistant: ```c
int plot_line(int (*P)[2], int w, int h, double a, double b, double c) {
  int r = 0;
  if (fabs(a) < fabs(b)) {
    double p = -a / b;
    double q = -c / b;
    for (int x = 0; x < w; x++) {
      int y = round(p * x + q);
      P[r][0] = x;
      if (y >= 0 && y < h)
        P[r++][1] = y;
    }
  } else {
    double p = -b / a;
    double q = -c / a;
    for (int y = 0; y < h; y++) {
      int x = round(p * y + q);
      P[r][1] = y;
      if (x >= 0 && x < w)
        P[r++][0] = x;
    }
  }
  return r;
}
```