user: 这段汇编代码用C语言表示是什么样的?

```asm
<ContentDispositionParse>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x838,%rsp
  mov    %rdi,%r13
  mov    %rsi,%rbp
  mov    %rdx,%r15
  mov    %rcx,%r14
  mov    %r8,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x828(%rsp)
  xor    %eax,%eax
  mov    $0x1,%edi
  test   %rsi,%rsi
  je     L117
  cmpq   $0x0,(%rsi)
  sete   %dil
  movzbl %dil,%edi
L117:
  call   <assert@plt>
  test   %r12,%r12
  je     L57
  mov    $0x0,%ebx
L96:
  cmpq   $0x0,(%r15,%rbx,8)
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  add    $0x1,%rbx
  cmp    %rbx,%r12
  jne    L96
L57:
  mov    %r13,%rdi
  call   <strlen@plt>
  cmp    $0x3ff,%eax
  jg     L64
  mov    %r13,0x10(%rsp)
  lea    0x420(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x18(%rsp),%rsi
  lea    0x10(%rsp),%rdi
  call   <read_token@plt>
  test   %eax,%eax
  je     L85
  test   %rbp,%rbp
  je     L171
  lea    0x420(%rsp),%rdi
  mov    0x18(%rsp),%esi
  sub    %edi,%esi
  call   <strndup@plt>
  mov    %rax,0x0(%rbp)
  test   %rax,%rax
  je     L85
L171:
  mov    0x10(%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x10(%rsp)
  cmpb   $0x3b,(%rax)
  jne    L59
  lea    0x420(%rsp),%rax
  mov    %rax,0x8(%rsp)
  jmp    L37
L85:
  mov    $0xffffffff,%eax
  jmp    L192
L105:
  addq   $0x1,0x10(%rsp)
L37:
  mov    0x10(%rsp),%rax
  movsbl (%rax),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L105
  lea    0x20(%rsp),%rsi
  lea    0x10(%rsp),%rdi
  mov    0x8(%rsp),%rdx
  call   <read_parm@plt>
  test   %eax,%eax
  je     L59
  test   %r12,%r12
  je     L56
  mov    %r15,%rbp
  mov    $0x0,%ebx
  lea    0x20(%rsp),%r13
  jmp    L58
L63:
  add    $0x1,%rbx
  add    $0x8,%rbp
  cmp    %rbx,%r12
  je     L56
L58:
  mov    (%r14,%rbx,8),%rsi
  mov    %r13,%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  jne    L63
  mov    %rbp,(%rsp)
  cmpq   $0x0,0x0(%rbp)
  jne    L63
  mov    0x8(%rsp),%rdi
  call   <strdup@plt>
  mov    (%rsp),%rcx
  mov    %rax,(%rcx)
L56:
  mov    0x10(%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x10(%rsp)
  cmpb   $0x3b,(%rax)
  je     L37
L59:
  mov    $0x0,%eax
L192:
  mov    0x828(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L15
  add    $0x838,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L64:
  mov    $0xffffffff,%eax
  jmp    L192
L15:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int ContentDispositionParse(char const *const str, char **const type, char *values[], char const *const fields[], size_t const count) {
  assert(!type || !*type);
  for (size_t i = 0; i < count; i++)
    assert(!values[i]);
  if (strlen(str) >= 1024)
    return -1;
  char const *s = str;
  {
    char buf[1024];
    char *d = buf;
    if (!read_token(&s, &d))
      return -1;
    if (type)
      *type = strndup(buf, d - buf);
    if (type && !*type)
      return -1;
  }
  for (;;) {
    if (';' != *s++)
      break;
    while (isspace(*s))
      s++;
    char field[1024];
    char value[1024];
    if (!read_parm(&s, field, value))
      break;
    for (size_t i = 0; i < count; i++) {
      if (0 != strcasecmp(field, fields[i]))
        continue;
      if (values[i])
        continue;
      values[i] = strdup(value);
      break;
    }
  }
  return 0;
}
```