user: What would the C source look like for the assembly code provided here:

```asm
<getword>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    %esi,%r12d
  jmp    L156
L280:
  mov    %ebx,%edi
  call   <putchar@plt>
L156:
  mov    $0x0,%eax
  call   <getch@plt>
  movsbl %al,%ebx
  mov    %ebx,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L280
  cmp    $0x2f,%ebx
  je     L151
L234:
  cmp    $0x5c,%ebx
  je     L294
  cmp    $0x22,%ebx
  je     L73
L292:
  mov    D8(%rip),%rax
  cmp    %ebx,(%rax)
  je     L281
  mov    %bl,0x0(%rbp)
  lea    0x1(%rbp),%rbp
L281:
  movsbl %bl,%edi
  call   <isalnum@plt>
  cmp    $0x23,%ebx
  je     L77
  test   %eax,%eax
  je     L95
L77:
  lea    -0x1(%r12),%ebx
  add    %rbp,%rbx
  cmp    $0x1,%r12d
  jne    L203
  mov    %rbp,%rbx
  jmp    L3
L151:
  call   <getch@plt>
  movsbl %al,%edi
  cmp    $0x2f,%al
  je     L185
  cmp    $0x2a,%edi
  je     L31
  call   <ungetch@plt>
  jmp    L292
L185:
  mov    $0x0,%eax
  call   <getch@plt>
  cmp    $0xa,%al
  jne    L185
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%eax
  call   <getch@plt>
  movsbl %al,%ebx
  jmp    L234
L31:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %eax,%ebx
  mov    $0x0,%eax
  call   <getch@plt>
  cmp    $0x2a,%bl
  jne    L8
  cmp    $0x2f,%al
  je     L247
L8:
  mov    %eax,%ebx
  mov    $0x0,%eax
  call   <getch@plt>
  cmp    $0x2a,%bl
  jne    L8
  cmp    $0x2f,%al
  jne    L8
L247:
  mov    $0x0,%eax
  call   <getch@plt>
  movsbl %al,%ebx
  jmp    L234
L294:
  mov    $0x0,%eax
  call   <getch@plt>
  cmp    $0x22,%al
  je     L292
  movsbl %al,%edi
  call   <ungetch@plt>
  jmp    L292
L73:
  mov    $0x0,%eax
  call   <getch@plt>
  cmp    $0x22,%al
  je     L292
L242:
  mov    %eax,%r13d
  mov    $0x0,%eax
  call   <getch@plt>
  cmp    $0x5c,%r13b
  je     L242
  cmp    $0x22,%al
  jne    L242
  jmp    L292
L95:
  movb   $0x0,0x0(%rbp)
  jmp    L117
L218:
  add    $0x1,%rbp
  cmp    %rbp,%rbx
  je     L3
L203:
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %al,0x0(%rbp)
  movsbl %al,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  jne    L218
  movzbl 0x0(%rbp),%edi
  cmp    $0x23,%dil
  je     L218
  movsbl %dil,%edi
  call   <ungetch@plt>
  mov    %rbp,%rbx
L3:
  movb   $0x0,(%rbx)
  mov    $0x0,%ebx
L117:
  mov    %ebx,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

assistant: ```c
int getword(char *w, int maxlen) {
  int c;
  while (isspace(c = getch())) {
    putchar(c);
  }
  if (c == '/') {
    if ((c = getch()) == '/') {
      while (getch() != '\n')
        ;
      putchar('\n');
      c = getch();
    } else if (c == '*') {
      char tmp1, tmp2;
      tmp1 = getch();
      tmp2 = getch();
      while (tmp1 != '*' || tmp2 != '/') {
        tmp1 = tmp2;
        tmp2 = getch();
      }
      c = getch();
    } else {
      ungetch(c);
      c = '/';
    }
  }
  if (c == '\\') {
    char tmp;
    if ((tmp = getch()) != '\"') {
      ungetch(tmp);
    }
  }
  if (c == '\"') {
    char tmp1, tmp2;
    tmp1 = tmp2 = getch();
    while (1) {
      if (tmp1 != '\\' && tmp2 == '\"')
        break;
      tmp1 = tmp2;
      tmp2 = getch();
    }
  }
  if (c != EOF) {
    *w++ = c;
  }
  if (!isalnum(c) && c != '#') {
    *w = '\0';
    return c;
  }
  for (; --maxlen; w++) {
    if (!isalnum(*w = getch()) && *w != '#') {
      ungetch(*w);
      break;
    }
  }
  *w = '\0';
  return w[0];
}
```