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

```asm
<getword>:
  endbr64
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  jmp    L103
  cs nopw 0x0(%rax,%rax,1)
L148:
  mov    %ebp,%edi
  call   <putchar@plt>
L103:
  xor    %eax,%eax
  call   <getch@plt>
  movsbl %al,%ebp
  mov    %ebp,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L148
  cmp    $0x2f,%ebp
  je     L91
L77:
  cmp    $0x5c,%ebp
  je     L120
  cmp    $0x22,%ebp
  je     L173
  cmp    $0x23,%ebp
  setne  %r13b
L259:
  mov    D1(%rip),%rax
  cmp    %ebp,(%rax)
  je     L213
  mov    %bpl,(%rbx)
  add    $0x1,%rbx
L213:
  mov    %ebp,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  jne    L95
  test   %r13b,%r13b
  jne    L160
L95:
  lea    -0x1(%r12),%ebp
  add    %rbx,%rbp
  cmp    $0x1,%r12d
  je     L102
  nop
L264:
  xor    %eax,%eax
  call   <getch@plt>
  mov    %al,(%rbx)
  movsbl %al,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  jne    L112
  movsbl (%rbx),%edi
  cmp    $0x23,%dil
  jne    L50
L112:
  add    $0x1,%rbx
  cmp    %rbx,%rbp
  jne    L264
L174:
  movb   $0x0,0x0(%rbp)
  add    $0x8,%rsp
  xor    %ebp,%ebp
  pop    %rbx
  mov    %ebp,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
L160:
  movb   $0x0,(%rbx)
  add    $0x8,%rsp
  mov    %ebp,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L50:
  call   <ungetch@plt>
L102:
  mov    %rbx,%rbp
  jmp    L174
  nopw   0x0(%rax,%rax,1)
L173:
  xor    %eax,%eax
  call   <getch@plt>
  jmp    L31
  nopl   0x0(%rax)
L0:
  mov    %eax,%r13d
  xor    %eax,%eax
  call   <getch@plt>
  cmp    $0x5c,%r13b
  je     L0
L31:
  cmp    $0x22,%al
  jne    L0
  mov    $0x1,%r13d
  jmp    L259
  nop
L91:
  call   <getch@plt>
  movsbl %al,%edi
  cmp    $0x2f,%al
  je     L169
  cmp    $0x2a,%edi
  je     L80
  call   <ungetch@plt>
  mov    $0x1,%r13d
  jmp    L259
  nopl   0x0(%rax)
L169:
  xor    %eax,%eax
  call   <getch@plt>
  cmp    $0xa,%al
  jne    L169
  mov    $0xa,%edi
  call   <putchar@plt>
  xor    %eax,%eax
  call   <getch@plt>
  movsbl %al,%ebp
  jmp    L77
  nopl   0x0(%rax)
L120:
  xor    %eax,%eax
  mov    $0x1,%r13d
  call   <getch@plt>
  cmp    $0x22,%al
  je     L259
  movsbl %al,%edi
  call   <ungetch@plt>
  jmp    L259
L80:
  xor    %eax,%eax
  call   <getch@plt>
  nopl   0x0(%rax)
L35:
  mov    %eax,%ebp
  xor    %eax,%eax
  call   <getch@plt>
  cmp    $0x2a,%bpl
  jne    L35
  cmp    $0x2f,%al
  jne    L35
  xor    %eax,%eax
  call   <getch@plt>
  movsbl %al,%ebp
  jmp    L77
```

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];
}
```