user: Converte this assembly snippet into its equivalent C code:

```asm
<parse_line>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %edx,-0x40(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    %r9,-0x58(%rbp)
  movl   $0x0,-0x2c(%rbp)
  mov    0x10(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x38(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x20(%rbp)
L58:
  addq   $0x1,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L58
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L119
  mov    -0x2c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L122
  mov    0x10(%rbp),%rax
  movl   $0x1,(%rax)
  jmp    L110
L122:
  addl   $0x1,-0x2c(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
L40:
  addq   $0x1,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L68
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L40
L68:
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpl   $0x0,-0x40(%rbp)
  je     L47
  mov    -0x48(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x20(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  je     L77
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  jmp    L136
L13:
  mov    -0x18(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L136:
  mov    -0x18(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  jb     L13
  jmp    L42
L77:
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x20(%rbp)
L42:
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  movb   $0x20,(%rax)
  jmp    L120
L47:
  mov    -0x48(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
L120:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L58
  jmp    L110
L119:
  nop
L110:
  cmpl   $0x0,-0x40(%rbp)
  je     L61
  mov    -0x50(%rbp),%rax
  sub    $0x8,%rax
  mov    (%rax),%rax
  movb   $0x0,(%rax)
L61:
  mov    -0x58(%rbp),%rax
  mov    -0x2c(%rbp),%edx
  mov    %edx,(%rax)
  nop
  leave
  ret
```

assistant: ```c
void parse_line(char *line, int mwords, int canonize, char **pword_begin, char **pword_end, int *p_nwords, int *p_overflow) {
  char *pl, *psq, *ptmp, *pbegin, *pend;
  int nwords = 0;
  *p_overflow = 0;
  pl = line - 1;
  psq = line;
  do {
    do
      pl++;
    while (isspace(*pl));
    if (*pl == 0)
      break;
    if (nwords >= mwords) {
      *p_overflow = 1;
      break;
    }
    nwords++;
    pbegin = pl;
    do
      pl++;
    while (!isspace(*pl) && *pl != 0);
    pend = pl;
    if (canonize) {
      *pword_begin++ = psq;
      if (psq != pbegin)
        for (ptmp = pbegin; ptmp < pend;)
          *psq++ = *ptmp++;
      else
        psq = pend;
      *pword_end++ = psq;
      *psq++ = ' ';
    } else {
      *pword_begin++ = pbegin;
      *pword_end++ = pend;
    }
  } while (*pl != 0);
  if (canonize)
    **(pword_end - 1) = '\0';
  *p_nwords = nwords;
}
```