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

```asm
<test1>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    -0x58(%rbp),%rbx
  movzbl (%rbx),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalpha@plt>
  test   %eax,%eax
  jne    L114
  movzbl (%rbx),%eax
  cmp    $0x5f,%al
  je     L114
  mov    $0x0,%eax
  jmp    L244
L114:
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  lea    -0x1(%rax),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0xffffffff,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x7d,%eax
  je     L306
  cmp    $0x7d,%eax
  jg     L375
  cmp    $0x7b,%eax
  je     L361
  cmp    $0x7b,%eax
  jg     L375
  cmp    $0x29,%eax
  je     L256
  cmp    $0x3b,%eax
  jne    L375
  movl   $0x0,-0x48(%rbp)
  jmp    L282
L256:
  movl   $0x1,-0x48(%rbp)
  jmp    L282
L361:
  mov    $0x0,%eax
  jmp    L244
L306:
  mov    $0x0,%eax
  jmp    L244
L375:
  movl   $0xffffffff,-0x48(%rbp)
L282:
  jmp    L348
L118:
  add    $0x1,%rbx
L348:
  movzbl (%rbx),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  jne    L118
  movzbl (%rbx),%eax
  cmp    $0x5f,%al
  je     L118
  mov    %rbx,-0x28(%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     L64
  mov    $0x0,%eax
  jmp    L244
L64:
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  mov    %rax,%rbx
  movzbl (%rbx),%eax
  cmp    $0x29,%al
  jne    L90
  mov    $0x0,%eax
  jmp    L244
L90:
  lea    D4(%rip),%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  sub    -0x58(%rbp),%rax
  mov    %eax,-0x40(%rbp)
  jmp    L301
L230:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  cmp    %rdx,%rax
  jne    L217
  mov    -0x40(%rbp),%edx
  mov    -0x58(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L217
  mov    $0x0,%eax
  jmp    L244
L217:
  addq   $0x8,-0x38(%rbp)
L301:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L230
  mov    %rbx,-0x18(%rbp)
  jmp    L372
L91:
  add    $0x1,%rbx
L372:
  movzbl (%rbx),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  jne    L91
  movzbl (%rbx),%eax
  cmp    $0x5f,%al
  je     L91
  mov    %rbx,%rax
  sub    -0x18(%rbp),%rax
  mov    %eax,-0x3c(%rbp)
  mov    $0x1,%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  mov    %rax,%rbx
  movzbl (%rbx),%eax
  cmp    $0x29,%al
  jne    L128
  cmpl   $0x4,-0x3c(%rbp)
  jne    L174
  mov    -0x18(%rbp),%rax
  mov    $0x4,%edx
  lea    D2(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L128
L174:
  mov    $0x0,%eax
  jmp    L244
L128:
  cmpl   $0x0,-0x48(%rbp)
  jle    L88
  movl   $0x0,-0x44(%rbp)
  mov    -0x58(%rbp),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  mov    %rax,%rbx
  jmp    L239
L84:
  movzbl (%rbx),%eax
  cmp    $0x28,%al
  je     L383
  movzbl (%rbx),%eax
  cmp    $0x29,%al
  jne    L206
  mov    $0xffffffff,%eax
  jmp    L107
L206:
  mov    $0x0,%eax
  jmp    L107
L383:
  mov    $0x1,%eax
L107:
  add    %eax,-0x44(%rbp)
  lea    0x1(%rbx),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  mov    %rax,%rbx
L239:
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L84
  cmpl   $0x0,-0x44(%rbp)
  jle    L88
  movl   $0xffffffff,-0x48(%rbp)
L88:
  mov    -0x48(%rbp),%eax
L244:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D2
type: string

tool: D2: void

assistant: ```c
int test1(buf)
char *buf;
{
  register char *p = buf;
  char *bend;
  char *endfn;
  int contin;
  if (!((1 && isalpha(*p)) || (*p) == '_'))
    return 0;
  bend = skipspace(buf + strlen(buf) - 1, -1);
  switch (*bend) {
  case ';':
    contin = 0;
    break;
  case ')':
    contin = 1;
    break;
  case '{':
    return 0;
  case '}':
    return 0;
  default:
    contin = -1;
  }
  while (((1 && 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++;
    }
  }
  {
    char *id = p;
    int len;
    while (((1 && isalnum(*p)) || (*p) == '_'))
      p++;
    len = p - id;
    p = skipspace(p, 1);
    if (*p == ')' && (len != 4 || strncmp(id, "void", 4)))
      return 0;
  }
  if (contin > 0) {
    int level = 0;
    for (p = skipspace(buf, 1); *p; p = skipspace(p + 1, 1))
      level += (*p == '(' ? 1 : *p == ')' ? -1 : 0);
    if (level > 0)
      contin = -1;
  }
  return contin;
}
```