user: What would the C source look like for the assembly code provided here?

```asm
<extract_string>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0xffffffff,-0x4(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x23,%al
  jne    L100
  mov    $0xffffffff,%eax
  jmp    L80
L100:
  movl   $0x0,-0xc(%rbp)
  jmp    L45
L19:
  cmpl   $0xffffffff,-0x4(%rbp)
  jne    L64
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L64
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L173
L64:
  cmpl   $0x0,-0x4(%rbp)
  js     L173
  cmpl   $0x1,-0x8(%rbp)
  jne    L24
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x22,%eax
  je     L92
  cmp    $0x5c,%eax
  jne    L188
L92:
  addl   $0x1,-0x4(%rbp)
  nop
L188:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xc(%rbp),%eax
  sub    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
  movl   $0x0,-0x8(%rbp)
  jmp    L173
L24:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L2
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xc(%rbp),%eax
  sub    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
  movl   $0x1,-0x8(%rbp)
  jmp    L173
L2:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  je     L31
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xc(%rbp),%eax
  sub    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
  jmp    L173
L31:
  mov    -0xc(%rbp),%eax
  sub    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L177
L173:
  addl   $0x1,-0xc(%rbp)
L45:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0xc(%rbp)
  jge    L177
  mov    -0xc(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L19
L177:
  cmpl   $0x0,-0x4(%rbp)
  js     L143
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  jmp    L80
L143:
  mov    $0xffffffff,%eax
L80:
  leave
  ret
```

assistant: ```c
int extract_string(const char *src, char *dest, int len) {
  int pos = 0;
  int esc = 0;
  int off = -1;
  if (*src == '#')
    return -1;
  for (pos = 0; (pos < strlen(src)) && (pos < len); pos++) {
    if ((off == -1) && (src[pos] == '"')) {
      off = pos + 1;
    } else if (off >= 0) {
      if (esc == 1) {
        switch (src[pos]) {
        case '"':
        case '\\':
          off++;
          break;
        }
        dest[pos - off] = src[pos];
        esc = 0;
      } else if (src[pos] == '\\') {
        dest[pos - off] = src[pos];
        esc = 1;
      } else if (src[pos] != '"') {
        dest[pos - off] = src[pos];
      } else {
        dest[pos - off] = '\0';
        break;
      }
    }
  }
  return (off > -1) ? strlen(dest) : -1;
}
```