user: Please show me the C implementation that matches the assembly code listed below:

```asm
<mstring_split_quote>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,%eax
  mov    %al,-0x3c(%rbp)
  movl   $0x0,-0x2c(%rbp)
  mov    $0x8,%edi
  call   <palloc@plt>
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x28(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L42
L90:
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L0
  cmpl   $0x0,-0x24(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x24(%rbp)
L0:
  cmpl   $0x0,-0x24(%rbp)
  jne    L94
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x3c(%rbp)
  jne    L13
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0x28(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x2c(%rbp)
  jmp    L13
L94:
  nop
L13:
  addl   $0x1,-0x28(%rbp)
L42:
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L90
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <mstring_get_length@plt>
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <palloc@plt>
  mov    %rax,-0x18(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jne    L43
  mov    -0x18(%rbp),%rax
  mov    -0x38(%rbp),%rdx
  mov    %rdx,(%rax)
L43:
  movl   $0x0,-0x28(%rbp)
  jmp    L80
L37:
  cmpl   $0x0,-0x28(%rbp)
  jne    L87
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  lea    (%rcx,%rax,1),%rbx
  mov    -0x38(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <mstring_get_sub_py@plt>
  mov    %rax,(%rbx)
  jmp    L64
L87:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%ecx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rsi
  mov    -0x18(%rbp),%rax
  lea    (%rsi,%rax,1),%rbx
  mov    -0x38(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <mstring_get_sub_py@plt>
  mov    %rax,(%rbx)
L64:
  addl   $0x1,-0x28(%rbp)
L80:
  mov    -0x28(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jne    L37
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%ecx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x38(%rbp),%rax
  mov    $0xffffffff,%edx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <mstring_get_sub_py@plt>
  mov    %rax,(%rbx)
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <pfree@plt>
  mov    -0x18(%rbp),%rax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
char **mstring_split_quote(char *in, char c) {
  int occ_num = 0;
  int *occs = palloc(sizeof(int *));
  int curr = 0;
  int in_quote = 0;
  for (; in[curr]; curr++) {
    if (in[curr] == '"') {
      in_quote = !in_quote;
    }
    if (in_quote) {
      continue;
    }
    if (in[curr] == c) {
      occs[occ_num] = curr;
      occ_num++;
    }
  }
  char **buff = palloc(sizeof(char *) * mstring_get_length(in));
  if (occ_num == 0) {
    buff[0] = in;
  }
  for (curr = 0; curr != occ_num; curr++) {
    if (curr == 0) {
      buff[curr] = mstring_get_sub_py(in, 0, occs[curr]);
    } else {
      buff[curr] = mstring_get_sub_py(in, occs[curr - 1] + 1, occs[curr]);
    }
  }
  buff[curr] = mstring_get_sub_py(in, occs[curr - 1] + 1, -1);
  pfree(occs);
  return buff;
}
```