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

```asm
<test1>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    -0x48(%rbp),%rbx
  movzbl (%rbx),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalpha@plt>
  test   %eax,%eax
  jne    L153
  movzbl (%rbx),%eax
  cmp    $0x5f,%al
  je     L153
  mov    $0x0,%eax
  jmp    L176
L153:
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  lea    -0x1(%rax),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    $0xffffffff,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  mov    %rax,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x2c,%eax
  je     L209
  cmp    $0x2c,%eax
  jg     L123
  cmp    $0x28,%eax
  je     L209
  cmp    $0x29,%eax
  jne    L123
  movl   $0x1,-0x38(%rbp)
  jmp    L186
L209:
  movl   $0xffffffff,-0x38(%rbp)
  jmp    L186
L123:
  mov    $0x0,%eax
  jmp    L176
L186:
  jmp    L12
L42:
  add    $0x1,%rbx
L12:
  movzbl (%rbx),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  jne    L42
  movzbl (%rbx),%eax
  cmp    $0x5f,%al
  je     L42
  mov    %rbx,-0x20(%rbp)
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  mov    %rax,%rbx
  mov    %rbx,%rax
  lea    0x1(%rax),%rbx
  movzbl (%rax),%eax
  cmp    $0x28,%al
  je     L201
  mov    $0x0,%eax
  jmp    L176
L201:
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  mov    %rax,%rbx
  movzbl (%rbx),%eax
  cmp    $0x29,%al
  jne    L162
  mov    $0x0,%eax
  jmp    L176
L162:
  lea    D9(%rip),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x20(%rbp),%rax
  sub    -0x48(%rbp),%rax
  mov    %eax,-0x34(%rbp)
  jmp    L164
L108:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    -0x34(%rbp),%edx
  movslq %edx,%rdx
  cmp    %rdx,%rax
  jne    L4
  mov    -0x34(%rbp),%edx
  mov    -0x48(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L4
  mov    $0x0,%eax
  jmp    L176
L4:
  addq   $0x8,-0x30(%rbp)
L164:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L108
  mov    -0x38(%rbp),%eax
L176:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int test1(buf)
char *buf;
{
  register char *p = buf;
  char *bend;
  char *endfn;
  int contin;
  if (!(isalpha(*p) || (*p) == '_'))
    return 0;
  bend = skipspace(buf + strlen(buf) - 1, -1);
  switch (*bend) {
  case ')':
    contin = 1;
    break;
  case '(':
  case ',':
    contin = -1;
    break;
  default:
    return 0;
  }
  while ((isalnum(*p) || (*p) == '_'))
    p++;
  endfn = p;
  p = skipspace(p, 1);
  if (*p++ != '(')
    return 0;
  p = skipspace(p, 1);
  if (*p == ')')
    return 0;
  {
    static char *words[] = {"asm", "auto", "case", "char", "const", "double", "extern", "float", "for", "if", "int", "long", "register", "return", "short", "signed", "sizeof", "static", "switch", "typedef", "unsigned", "void", "volatile", "while", 0};
    char **key = words;
    char *kp;
    int len = endfn - buf;
    while ((kp = *key) != 0) {
      if (strlen(kp) == len && !strncmp(kp, buf, len))
        return 0;
      key++;
    }
  }
  return contin;
}
```