user: 请从给定的汇编指令推导出C源代码：

```asm
<getword>:
  endbr64
  push   %r14
  push   %r13
  mov    %esi,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  nopw   0x0(%rax,%rax,1)
L205:
  xor    %eax,%eax
  call   <getch@plt>
  movsbl %al,%ebp
  mov    %ebp,%edi
  mov    %ebp,%r12d
  call   <isspace@plt>
  test   %rax,%rax
  jne    L205
  mov    D3(%rip),%r14
  cmp    %bpl,(%r14)
  je     L239
  mov    %bpl,(%rbx)
  add    $0x1,%rbx
L239:
  mov    %ebp,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  jne    L93
  cmp    $0x2f,%r12b
  je     L271
  jg     L13
  cmp    $0x23,%r12b
  je     L93
  cmp    $0x27,%r12b
  jne    L263
L65:
  sub    $0x1,%r13d
  test   %r13d,%r13d
  jg     L75
  jmp    L218
  nopl   0x0(%rax,%rax,1)
L244:
  cmp    %r12b,%al
  je     L31
  cmp    (%r14),%al
  je     L218
L215:
  add    $0x1,%rbx
  sub    $0x1,%r13d
  je     L218
L75:
  xor    %eax,%eax
  call   <getch@plt>
  mov    %al,(%rbx)
  cmp    $0x5c,%al
  jne    L244
  xor    %eax,%eax
  lea    0x1(%rbx),%rbp
  call   <getch@plt>
  mov    %al,0x1(%rbx)
  mov    %rbp,%rbx
  jmp    L215
L263:
  cmp    $0x22,%r12b
  je     L65
L218:
  movb   $0x0,(%rbx)
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L13:
  cmp    $0x5f,%r12b
  jne    L218
L93:
  lea    -0x2(%r13),%eax
  lea    0x1(%rbx,%rax,1),%rbp
  cmp    $0x1,%r13d
  jle    L218
  nopl   (%rax)
L174:
  xor    %eax,%eax
  call   <getch@plt>
  mov    %al,(%rbx)
  movsbl %al,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  jne    L39
  movsbl (%rbx),%edi
  cmp    $0x2e,%dil
  je     L39
  cmp    $0x5f,%dil
  jne    L44
L39:
  add    $0x1,%rbx
  cmp    %rbx,%rbp
  jne    L174
  movb   $0x0,(%rbx)
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L271:
  xor    %eax,%eax
  call   <getch@plt>
  cmp    $0x2a,%al
  je     L210
  cmp    $0x2f,%al
  je     L260
  jmp    L181
  nopl   0x0(%rax)
L207:
  cmp    $0xa,%al
  je     L218
L260:
  xor    %eax,%eax
  call   <getch@plt>
  mov    %eax,%r12d
  cmp    %al,(%r14)
  jne    L207
  jmp    L218
L181:
  movsbl %al,%edi
L44:
  call   <ungetch@plt>
  movb   $0x0,(%rbx)
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L31:
  add    $0x1,%rbx
  jmp    L218
L210:
  xor    %eax,%eax
  call   <comment@plt>
  mov    %eax,%r12d
  jmp    L218
```

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