user: What is the c source code of the assembly code below?

```asm
<getword>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  movl   $0x0,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  nop
L288:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L288
  mov    D34(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  je     L325
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0xc(%rbp),%edx
  mov    %dl,(%rax)
L325:
  mov    -0xc(%rbp),%eax
  mov    %eax,%edi
  call   <isalpha@plt>
  test   %eax,%eax
  jne    L404
  cmpl   $0x22,-0xc(%rbp)
  jne    L22
  nop
L175:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x22,-0xc(%rbp)
  je     L404
  mov    D34(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  jne    L175
  jmp    L404
L22:
  cmpl   $0x5c,-0xc(%rbp)
  jne    L41
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x5c,-0xc(%rbp)
  jne    L389
  nop
L71:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0xa,-0xc(%rbp)
  je     L404
  mov    D34(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  jne    L71
  jmp    L404
L389:
  cmpl   $0x2a,-0xc(%rbp)
  jne    L404
  jmp    L163
L43:
  cmpl   $0x2a,-0xc(%rbp)
  jne    L424
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x5c,-0xc(%rbp)
  je     L404
L424:
  nop
L163:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  mov    D34(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  jne    L43
  jmp    L404
L41:
  cmpl   $0x23,-0xc(%rbp)
  je     L350
  cmpl   $0x5f,-0xc(%rbp)
  jne    L138
L350:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0xc(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L257
L138:
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0xc(%rbp),%eax
  jmp    L435
L257:
  jmp    L404
L82:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  jne    L161
  cmpl   $0x22,-0xc(%rbp)
  jne    L375
  nop
L40:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x22,-0xc(%rbp)
  je     L130
  mov    D34(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  jne    L40
L130:
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L182
L375:
  cmpl   $0x5c,-0xc(%rbp)
  jne    L16
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x5c,-0xc(%rbp)
  jne    L88
  nop
L317:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0xa,-0xc(%rbp)
  je     L6
  mov    D34(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  jne    L317
L6:
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L182
L88:
  cmpl   $0x2a,-0xc(%rbp)
  jne    L161
  jmp    L266
L63:
  cmpl   $0x2a,-0xc(%rbp)
  jne    L145
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x5c,-0xc(%rbp)
  jne    L145
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L161
L145:
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  nop
L266:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,-0xc(%rbp)
  mov    D34(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  jne    L63
  jmp    L161
L16:
  cmpl   $0x23,-0xc(%rbp)
  je     L316
  cmpl   $0x5f,-0xc(%rbp)
  je     L316
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <ungetch@plt>
  jmp    L182
L316:
  nop
L161:
  addq   $0x1,-0x8(%rbp)
L404:
  subl   $0x1,-0x1c(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jg     L82
L182:
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
L435:
  leave
  ret
```

assistant: ```c
int getword(char *word, int lim) {
  int c = 0;
  char *w = word;
  while (isspace(c = getch()))
    ;
  if (c != EOF)
    *w++ = c;
  if (!isalpha(c)) {
    if (c == '"')
      while (((c = getch()) != '"') && (c != EOF))
        ;
    else if (c == '\\') {
      if ((c = getch()) == '\\') {
        while (((c = getch()) != '\n') && (c != EOF))
          ;
      } else if (c == '*') {
        while ((c = getch()) != EOF)
          if ((c == '*') && ((c = getch()) == '\\'))
            break;
          else
            continue;
      }
    } else if ((c == '#') || (c == '_'))
      *w++ = c;
    else {
      *w = '\0';
      return c;
    }
  }
  for (; --lim > 0; w++)
    if (!isalnum(*w = getch())) {
      if (c == '"') {
        while (((c = getch()) != '"') && (c != EOF))
          ;
        *w = '\0';
        break;
      } else if (c == '\\') {
        if ((c = getch()) == '\\') {
          while (((c = getch()) != '\n') && (c != EOF))
            ;
          *w = '\0';
          break;
        } else if (c == '*') {
          while ((c = getch()) != EOF)
            if ((c == '*') && ((c = getch()) == '\\')) {
              *w = '\0';
              break;
            } else {
              *w = '\0';
              continue;
            }
        }
      } else if ((c == '#') || (c == '_')) {
        continue;
      } else {
        ungetch(*w);
        break;
      }
    }
  *w = '\0';
  return word[0];
}
```