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

```asm
<test1>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  movzbl (%rdi),%ebx
  movsbl %bl,%edi
  call   <isalpha@plt>
  cmp    $0x5f,%bl
  je     L7
  mov    $0x0,%r12d
  test   %eax,%eax
  jne    L7
L228:
  mov    %r12d,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L7:
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    -0x1(%rbp,%rax,1),%rdi
  mov    $0xffffffff,%esi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  movzbl (%rax),%eax
  cmp    $0x3b,%al
  je     L311
  jg     L11
  cmp    $0x29,%al
  sete   %r12b
  movzbl %r12b,%r12d
  lea    -0x1(%r12,%r12,1),%r12d
L244:
  mov    %rbp,%rbx
  jmp    L19
L11:
  sub    $0x7b,%eax
  mov    $0x0,%r12d
  test   $0xfd,%al
  je     L228
  mov    $0xffffffff,%r12d
  jmp    L244
L277:
  add    $0x1,%rbx
L19:
  movzbl (%rbx),%r13d
  movsbl %r13b,%edi
  call   <isalnum@plt>
  cmp    $0x5f,%r13b
  je     L277
  test   %eax,%eax
  jne    L277
  mov    $0x1,%esi
  mov    %rbx,%rdi
  call   <skipspace@plt>
  cltq
  cmpb   $0x28,(%rax)
  je     L234
  mov    $0x0,%r12d
  jmp    L228
L311:
  mov    $0x0,%r12d
  jmp    L244
L234:
  lea    0x1(%rax),%rdi
  mov    $0x1,%esi
  mov    $0x0,%eax
  call   <skipspace@plt>
  movslq %eax,%r14
  cmpb   $0x29,(%r14)
  je     L351
  sub    %ebp,%ebx
  mov    D26(%rip),%r13
  test   %r13,%r13
  je     L232
  lea    D26(%rip),%r15
  movslq %ebx,%rbx
  jmp    L43
L146:
  add    $0x8,%r15
  mov    (%r15),%r13
  test   %r13,%r13
  je     L318
L43:
  mov    %r13,%rdi
  call   <strlen@plt>
  cmp    %rbx,%rax
  jne    L146
  mov    %rbx,%rdx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L146
  mov    %eax,%r12d
  jmp    L228
L318:
  mov    %r14,%rbx
  jmp    L330
L329:
  add    $0x1,%rbx
L330:
  movzbl (%rbx),%r13d
  movsbl %r13b,%edi
  call   <isalnum@plt>
  cmp    $0x5f,%r13b
  je     L329
  test   %eax,%eax
  jne    L329
  mov    $0x1,%esi
  mov    %rbx,%rdi
  call   <skipspace@plt>
  cltq
  cmpb   $0x29,(%rax)
  je     L66
L357:
  test   %r12d,%r12d
  jle    L228
  mov    $0x1,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  movzbl (%rax),%ecx
  test   %cl,%cl
  je     L228
  mov    $0x0,%ebx
  mov    $0x1,%ebp
  jmp    L123
L232:
  mov    %r14,%rbx
  jmp    L330
L66:
  sub    %r14,%rbx
  cmp    $0x4,%ebx
  jne    L112
  mov    $0x4,%edx
  lea    D5(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L357
  mov    $0x0,%r12d
  jmp    L228
L51:
  add    %edx,%ebx
  lea    0x1(%rax),%rdi
  mov    %ebp,%esi
  mov    $0x0,%eax
  call   <skipspace@plt>
  cltq
  movzbl (%rax),%ecx
  test   %cl,%cl
  je     L220
L123:
  mov    %ebp,%edx
  cmp    $0x28,%cl
  je     L51
  cmp    $0x29,%cl
  sete   %dl
  movzbl %dl,%edx
  neg    %edx
  jmp    L51
L220:
  test   %ebx,%ebx
  mov    $0xffffffff,%eax
  cmovg  %eax,%r12d
  jmp    L228
L351:
  mov    $0x0,%r12d
  jmp    L228
L112:
  mov    $0x0,%r12d
  jmp    L228
```

tool_calls: name: parse_data
arguments: tag: D5
datatype: string

tool: D5: 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;
}
```