user: Translate the below assembly code into C programming language:

```asm
<mime_parse_content_disposition>:
  endbr64
  test   %rdi,%rdi
  je     L71
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  lea    D3(%rip),%r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x8,%rsp
  nopl   0x0(%rax,%rax,1)
L8:
  cmpb   $0x0,(%r14)
  je     L73
  lea    0x1(%r14),%rbp
  jmp    L55
L137:
  add    $0x1,%rbp
L55:
  movsbl 0x0(%rbp),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L137
  cmpb   $0x0,0x0(%rbp)
  je     L73
  lea    0x1(%rbp),%r15
  mov    $0x3b,%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L145
L83:
  mov    $0x3d,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L73
  mov    %eax,%esi
  mov    %rbp,%rdi
  sub    %ebp,%esi
  call   <strndupa@plt>
  mov    %r14,%rsi
  lea    0x1(%r15),%rdi
  sub    %r15,%rsi
  mov    %rax,%rbp
  sub    $0x1,%esi
  call   <strndupa@plt>
  mov    %rax,%r15
  mov    %rax,%rdi
  call   <rtrim@plt>
  cmpb   $0x22,(%r15)
  je     L49
L92:
  test   %rbx,%rbx
  je     L59
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L129
L59:
  test   %r14,%r14
  jne    L8
L73:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L129:
  mov    $0x2f,%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L34
  mov    $0x2f,%esi
  mov    %r15,%rdi
  call   <strrchr@plt>
  mov    %r13,%rdx
  mov    %rbx,%rdi
  lea    0x1(%rax),%rsi
  call   <strncpy@plt>
L111:
  movb   $0x0,-0x1(%rbx,%r13,1)
  jmp    L59
  cs nopw 0x0(%rax,%rax,1)
L49:
  mov    %r15,%rdi
  call   <strlen@plt>
  cltq
  cmpb   $0x22,-0x1(%r15,%rax,1)
  jne    L92
  mov    %r15,%rdi
  add    $0x1,%r15
  call   <strlen@plt>
  cltq
  movb   $0x0,-0x2(%r15,%rax,1)
  jmp    L92
  nop
L145:
  xor    %esi,%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  mov    %rax,%r14
  jmp    L83
L34:
  mov    %r13,%rdx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <strncpy@plt>
  jmp    L111
L71:
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D3
data_type: string

tool: D3: filename

assistant: ```c
void mime_parse_content_disposition(const char *arg, char *filename, size_t filename_size) {
  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 (filename && !strcasecmp(key, "filename")) {
      if (strchr(value, '/'))
        strncpy(filename, strrchr(value, '/') + 1, filename_size);
      else
        strncpy(filename, value, filename_size);
      filename[filename_size - 1] = 0;
    }
    arg = arg_end;
  }
}
```