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

```asm
<sanitize_string>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  cmpb   $0x28,(%r15)
  mov    %rax,%r13
  je     L176
L131:
  mov    %r15,%rdi
  xor    %r12d,%r12d
  call   <is_upper@plt>
  test   %rax,%rax
  jne    L154
  add    $0x1,%r13
  mov    %r13,%rdi
  call   <malloc@plt>
  mov    %r13,%rdx
  xor    %esi,%esi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <memset@plt>
  movsbl (%r15),%edi
  test   %dil,%dil
  je     L174
  add    $0x1,%r15
  mov    %r12,%rbx
  lea    D49(%rip),%r13
  xor    %ebp,%ebp
  lea    D41(%rip),%r14
  jmp    L101
  nopl   (%rax)
L79:
  cmp    $0x2e,%dil
  je     L161
L160:
  call   <isalpha@plt>
  test   %eax,%eax
  je     L161
  movzbl -0x1(%r15),%eax
  movsbl (%r15),%edi
  add    $0x1,%ebp
  add    $0x1,%r15
  add    $0x1,%rbx
  mov    %al,-0x1(%rbx)
  test   %dil,%dil
  je     L96
L101:
  cmp    $0x27,%dil
  jne    L79
  mov    $0x1,%edx
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L96
  mov    $0x2,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L96
  mov    $0x1,%edx
  lea    D25(%rip),%rsi
  mov    %r15,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L96
  mov    $0x1,%edx
  lea    D14(%rip),%rsi
  mov    %r15,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L96
  mov    $0x2,%edx
  lea    D7(%rip),%rsi
  mov    %r15,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L96
  movsbl -0x1(%r15),%edi
  cmp    $0x2e,%dil
  jne    L160
L161:
  mov    %r12,%rdi
  xor    %r12d,%r12d
  call   <free@plt>
L154:
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L96:
  movslq %ebp,%rbp
  add    %r12,%rbp
L43:
  movb   $0x0,0x0(%rbp)
  jmp    L154
  nopl   0x0(%rax)
L176:
  lea    -0x1(%r15,%rax,1),%rax
  cmpb   $0x29,(%rax)
  jne    L131
  movb   $0x0,(%rax)
  add    $0x1,%r15
  jmp    L131
L174:
  mov    %r12,%rbp
  jmp    L43
```

tool_calls: name: unpack_data
arguments: label: D49
type_infered: string
name: unpack_data
arguments: label: D41
type_infered: string
name: unpack_data
arguments: label: D25
type_infered: string
name: unpack_data
arguments: label: D14
type_infered: string
name: unpack_data
arguments: label: D7
type_infered: string

tool: D49: s

tool: D41: es

tool: D25: m

tool: D14: d

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