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

```asm
<mime_parse_content_type>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8,-0x68(%rbp)
  mov    %r9,-0x70(%rbp)
  mov    -0x48(%rbp),%rax
  mov    $0x2f,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x40(%rbp)
  cmpq   $0x0,-0x40(%rbp)
  jne    L68
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x40(%rbp)
L68:
  mov    -0x40(%rbp),%rax
  sub    -0x48(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  jb     L61
  mov    -0x58(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x38(%rbp)
L61:
  mov    -0x38(%rbp),%rdx
  mov    -0x48(%rbp),%rcx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x50(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x40(%rbp),%rax
  add    $0x1,%rax
  lea    D10(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strspn@plt>
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  cmp    -0x68(%rbp),%rax
  jb     L96
  mov    -0x68(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x30(%rbp)
L96:
  mov    -0x40(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x30(%rbp),%rdx
  mov    -0x60(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x60(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x40(%rbp),%rax
  mov    $0x3b,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x28(%rbp)
  jmp    L162
L22:
  addq   $0x1,-0x28(%rbp)
  jmp    L92
L101:
  addq   $0x1,-0x28(%rbp)
L92:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L101
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L179
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  mov    $0x3b,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L80
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x20(%rbp)
L80:
  mov    -0x28(%rbp),%rax
  mov    $0x3d,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  je     L138
  mov    -0x10(%rbp),%rax
  sub    -0x28(%rbp),%rax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <strndupa@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  sub    -0x10(%rbp),%rax
  sub    $0x1,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <strndupa@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <rtrim@plt>
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L229
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L229
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x18(%rbp)
L229:
  cmpq   $0x0,0x28(%rbp)
  je     L23
  mov    -0x8(%rbp),%rax
  lea    D2(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L23
  mov    0x30(%rbp),%rdx
  mov    -0x18(%rbp),%rcx
  mov    0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    0x30(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L199
L23:
  cmpq   $0x0,0x18(%rbp)
  je     L196
  mov    -0x8(%rbp),%rax
  lea    D28(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L196
  mov    -0x18(%rbp),%rax
  mov    $0x2f,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L198
  mov    -0x18(%rbp),%rax
  mov    $0x2f,%esi
  mov    %rax,%rdi
  call   <strrchr@plt>
  lea    0x1(%rax),%rcx
  mov    0x20(%rbp),%rdx
  mov    0x18(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L50
L198:
  mov    0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rcx
  mov    0x18(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
L50:
  mov    0x20(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L199
L196:
  mov    -0x8(%rbp),%rax
  lea    D13(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L199
  mov    -0x18(%rbp),%rcx
  mov    -0x70(%rbp),%rax
  mov    0x10(%rbp),%rdx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    0x10(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L199:
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x28(%rbp)
L162:
  cmpq   $0x0,-0x28(%rbp)
  je     L48
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L22
  jmp    L48
L179:
  nop
  jmp    L48
L138:
  nop
L48:
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D10
type_infered: string
name: parse_data
arguments: data_tag: D2
type_infered: string
name: parse_data
arguments: data_tag: D28
type_infered: string
name: parse_data
arguments: data_tag: D13
type_infered: string

tool: D10: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-

tool: D2: boundary

tool: D28: name

tool: D13: charset

assistant: ```c
void mime_parse_content_type(const char *cts, char *type, size_t type_size, char *subtype, size_t subtype_size, char *charset, size_t charset_size, char *filename, size_t filename_size, char *part_delimiter, size_t part_delimiter_size) {
  const char *type_delim = strchr(cts, '/');
  size_t type_len;
  if (!type_delim)
    type_delim = cts;
  type_len = type_delim - cts;
  if (type_len >= type_size)
    type_len = type_size - 1;
  strncpy(type, cts, type_len);
  type[type_len] = 0;
  size_t subtype_len = strspn(type_delim + 1, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-");
  if (subtype_len >= subtype_size)
    subtype_len = subtype_size - 1;
  strncpy(subtype, type_delim + 1, subtype_len);
  subtype[subtype_len] = 0;
  char *arg = strchr(type_delim, ';');
  while (arg && *arg) {
    char *arg_end;
    ++arg;
    while (isspace(*arg))
      ++arg;
    if (!*arg)
      break;
    arg_end = strchr(arg + 1, ';');
    if (!arg_end)
      arg_end = strchr(arg + 1, 0);
    char *arg_delim = strchr(arg, '=');
    if (!arg_delim)
      break;
    char *key = strndupa(arg, arg_delim - arg);
    char *value = strndupa(arg_delim + 1, arg_end - arg_delim - 1);
    rtrim(value);
    if (value[0] == '"' && value[strlen(value) - 1] == '"') {
      value[strlen(value) - 1] = 0;
      ++value;
    }
    if (part_delimiter && !strcasecmp(key, "boundary")) {
      strncpy(part_delimiter, value, part_delimiter_size);
      part_delimiter[part_delimiter_size - 1] = 0;
    } else if (filename && !strcasecmp(key, "name")) {
      if (strchr(value, '/'))
        strncpy(filename, strrchr(value, '/') + 1, filename_size);
      else
        strncpy(filename, value, filename_size);
      filename[filename_size - 1] = 0;
    } else if (!strcasecmp(key, "charset")) {
      strncpy(charset, value, charset_size);
      charset[charset_size - 1] = 0;
    }
    arg = arg_end;
  }
}
```