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

```asm
<parse_string>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  movb   $0x0,-0x11(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  jne    L66
  mov    D12(%rip),%rax
  mov    (%rax),%edx
  mov    D34(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L239
L66:
  cmpq   $0x0,-0x28(%rbp)
  je     L161
  cmpq   $0x0,-0x38(%rbp)
  jne    L207
L161:
  mov    -0x30(%rbp),%rax
  movq   $0x0,(%rax)
  mov    D12(%rip),%rax
  mov    (%rax),%edx
  mov    D34(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L239
L207:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L54
  mov    -0x38(%rbp),%rax
  mov    -0x28(%rbp),%rdx
  mov    %rdx,(%rax)
L54:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L149
L238:
  addq   $0x1,-0x10(%rbp)
L149:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L172
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L238
L172:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L121
  mov    -0x38(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  mov    $0x0,%eax
  jmp    L239
L121:
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x8(%rbp)
  jmp    L25
L24:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  je     L60
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  jne    L198
L60:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L120
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L31
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L120
L31:
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movb   $0x0,(%rax)
  jmp    L75
L120:
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L224
  mov    D20(%rip),%rax
  mov    (%rax),%edx
  mov    D34(%rip),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L239
L198:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L174
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movb   $0x0,(%rax)
  jmp    L75
L224:
  nop
L174:
  addq   $0x1,-0x8(%rbp)
L25:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L24
L75:
  mov    -0x30(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x38(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
  cmpq   $0x0,-0x40(%rbp)
  je     L155
  mov    -0x40(%rbp),%rax
  movzbl -0x11(%rbp),%edx
  mov    %dl,(%rax)
L155:
  mov    $0x1,%eax
L239:
  leave
  ret
```

assistant: ```c
int parse_string(char *src, char **dst_p, char **ptr_p, char *quote_p) {
  char *p;
  char *q;
  char c = 0;
  if (!dst_p) {
    errno = EINVAL;
    return (-1);
  }
  if (!src || !ptr_p) {
    *dst_p = NULL;
    errno = EINVAL;
    return (-1);
  }
  if (*ptr_p == NULL) {
    *ptr_p = src;
  }
  for (p = *ptr_p; *p && isspace((int)*p); p++) {
    ;
  }
  if (*p == '\0') {
    *dst_p = *ptr_p = p;
    return (0);
  }
  for (q = p + 1; *q; q++) {
    if ((*p == '"') || (*p == '\'')) {
      if ((*q == *p) && (isspace((int)*(q + 1)) || (*(q + 1) == '\0'))) {
        c = *p++;
        *q++ = '\0';
        break;
      } else if (*(q + 1) == '\0') {
        errno = EIO;
        *dst_p = p;
        *ptr_p = q + 1;
        return (-1);
      }
    } else if (isspace((int)*q)) {
      *q++ = '\0';
      break;
    }
  }
  *dst_p = p;
  *ptr_p = q;
  if (quote_p) {
    *quote_p = c;
  }
  return (1);
}
```