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

```asm
<sanitize_string>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  jne    L71
  mov    -0x10(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  jne    L71
  mov    -0x10(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x28(%rbp)
L71:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <is_upper@plt>
  test   %rax,%rax
  je     L87
  mov    $0x0,%eax
  jmp    L34
L87:
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    -0x8(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  jmp    L136
L36:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  jne    L35
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  mov    $0x1,%edx
  lea    D37(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L59
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  mov    $0x2,%edx
  lea    D39(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L59
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  mov    $0x1,%edx
  lea    D30(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L59
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  mov    $0x1,%edx
  lea    D28(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L59
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  mov    $0x2,%edx
  lea    D21(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L59
L35:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L132
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L34
L132:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalpha@plt>
  test   %eax,%eax
  jne    L42
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L34
L42:
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  mov    -0x14(%rbp),%edx
  lea    0x1(%rdx),%ecx
  mov    %ecx,-0x14(%rbp)
  movslq %edx,%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
L136:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L36
L59:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
L34:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D37
type: string
name: extract_symbolic_data
arguments: data_tag: D39
type: string
name: extract_symbolic_data
arguments: data_tag: D30
type: string
name: extract_symbolic_data
arguments: data_tag: D28
type: string
name: extract_symbolic_data
arguments: data_tag: D21
type: string

tool: D37: s

tool: D39: es

tool: D30: m

tool: D28: d

tool: D21: ll

assistant: ```c
char *sanitize_string(char *s) {
  size_t len = strlen(s);
  int i = 0;
  if (s[0] == '(' && s[len - 1] == ')') {
    s[len - 1] = 0;
    s++;
  }
  if (is_upper(s)) {
    return NULL;
  }
  char *ret = malloc(len + 1);
  memset(ret, 0, len + 1);
  while (*s) {
    if ((*s == '\'') && (!strncmp(s + 1, "s", 1) || !strncmp(s + 1, "es", 2) || !strncmp(s + 1, "m", 1) || !strncmp(s + 1, "d", 1) || !strncmp(s + 1, "ll", 2))) {
      break;
    }
    if (*s == '.') {
      free(ret);
      return NULL;
    }
    if (!isalpha(*s)) {
      free(ret);
      return NULL;
    }
    ret[i++] = *s++;
  }
  ret[i] = 0;
  return ret;
}
```