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

```asm
<tokenizeString>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  mov    %rdx,%r13
  movslq %esi,%rax
  add    %rdi,%rax
  mov    %rdi,%r12
  cmp    %rax,%rdi
  jae    L351
L164:
  cmpb   $0x0,(%r12)
  je     L351
  add    $0x1,%r12
  cmp    %r12,%rax
  jne    L164
  mov    %rax,%r12
L351:
  sub    $0x1,%r12
  jmp    L242
L375:
  sub    $0x1,%r12
L242:
  movsbl (%r12),%edi
  call   <isspace@plt>
  mov    %eax,%r14d
  test   %eax,%eax
  jne    L375
  lea    0x1(%r12),%rbp
  cmp    %rbp,%rbx
  jae    L328
L41:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %eax,%eax
  je     L328
  add    $0x1,%rbx
  cmp    %rbx,%rbp
  jne    L41
L44:
  mov    $0x8,%edi
  mov    $0x0,%eax
  call   <xmalloc@plt>
  cltq
  mov    %rax,0x0(%r13)
  movq   $0x0,(%rax)
  jmp    L335
L328:
  cmp    %rbx,%rbp
  je     L44
  cmp    %rbx,%r12
  ja     L142
L327:
  lea    0x2(%r14),%r12d
  movslq %r12d,%r12
  shl    $0x3,%r12
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <xmalloc@plt>
  cltq
  mov    %rax,0x0(%r13)
  movq   $0x0,-0x8(%rax,%r12,1)
  mov    $0x0,%r12d
  cmp    %rbx,%rbp
  ja     L144
L335:
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L129:
  lea    -0x1(%r12),%rax
  movzbl -0x1(%r12),%edx
  cmp    $0x27,%dl
  setne  %cl
  cmp    $0x22,%dl
  setne  %dl
  test   %dl,%cl
  je     L173
  cmp    %rbx,%rax
  jbe    L173
L364:
  sub    $0x1,%rax
  movzbl (%rax),%edx
  cmp    $0x27,%dl
  setne  %cl
  cmp    $0x22,%dl
  setne  %dl
  test   %dl,%cl
  je     L348
  cmp    %rbx,%rax
  ja     L364
L348:
  mov    %rax,%r12
  jmp    L178
L173:
  mov    %rax,%r12
  jmp    L178
L240:
  sub    $0x1,%r12
  cmp    %rbx,%r12
  jbe    L327
L142:
  movzbl (%r12),%eax
  cmp    $0x27,%al
  je     L129
  cmp    $0x22,%al
  je     L129
L178:
  movsbl (%r12),%edi
  call   <isspace@plt>
  test   %eax,%eax
  je     L240
  movsbl -0x1(%r12),%edi
  call   <isspace@plt>
  cmp    $0x1,%eax
  adc    $0x0,%r14d
  jmp    L240
L6:
  mov    %rax,%r14
L198:
  add    $0x1,%r14
L160:
  movzbl (%r14),%r15d
  movsbl %r15b,%edi
  call   <isspace@plt>
  cmp    %rbp,%r14
  jae    L276
  test   %eax,%eax
  jne    L276
  cmp    $0x27,%r15b
  je     L53
  cmp    $0x22,%r15b
  jne    L198
L53:
  lea    0x1(%r14),%rax
  movzbl 0x1(%r14),%edx
  cmp    $0x27,%dl
  setne  %cl
  cmp    $0x22,%dl
  setne  %dl
  test   %dl,%cl
  je     L373
  cmp    %rax,%rbp
  jbe    L373
L86:
  add    $0x1,%rax
  movzbl (%rax),%edx
  cmp    $0x27,%dl
  setne  %cl
  cmp    $0x22,%dl
  setne  %dl
  test   %dl,%cl
  je     L6
  cmp    %rax,%rbp
  ja     L86
  jmp    L6
L373:
  mov    %rax,%r14
  jmp    L198
L276:
  mov    %r14,%r15
  sub    %rbx,%r15
  lea    0x1(%r15),%rdi
  mov    $0x0,%eax
  call   <xmalloc@plt>
  mov    0x0(%r13),%rdx
  cltq
  mov    %rax,(%rdx,%r12,1)
  mov    0x0(%r13),%rax
  mov    (%rax,%r12,1),%rdi
  mov    %r15,%rdx
  mov    %rbx,%rsi
  call   <strncpy@plt>
  mov    0x0(%r13),%rax
  mov    (%rax,%r12,1),%rax
  movb   $0x0,(%rax,%r15,1)
  lea    0x1(%r14),%rbx
L235:
  movsbl (%rbx),%edi
  call   <isspace@plt>
  cmp    %rbp,%rbx
  jae    L362
  test   %eax,%eax
  je     L362
  add    $0x1,%rbx
  jmp    L235
L362:
  add    $0x8,%r12
  cmp    %rbp,%rbx
  jae    L335
L144:
  mov    %rbx,%r14
  jmp    L160
```

assistant: ```c
int tokenizeString(char *string, int size, char ***output) {
  char *start, *end;
  char *p, *q;
  int i;
  end = string + size;
  for (p = string; p < end && *p != '\0'; p++)
    ;
  for (p--; isspace((int)*p); p--)
    ;
  end = p + 1;
  for (p = string; p < end && isspace((int)*p); p++)
    ;
  start = p;
  if (start == end) {
    *output = ((char **)xmalloc((1) * sizeof(char *)));
    (*output)[0] = '\0';
    return 0;
  }
  for (p = end - 1, i = 0; p > start; p--) {
    if (*p == '\'' || *p == '"') {
      for (p--; *p != '\'' && *p != '"' && p > start; p--)
        ;
    }
    if (isspace((int)*p) && !isspace((int)*(p - 1))) {
      i++;
    }
  }
  i++;
  *output = ((char **)xmalloc((i + 1) * sizeof(char *)));
  (*output)[i] = '\0';
  for (i = 0, p = q = start; p < end && q < end; p = q, i++) {
    for (q = p; !isspace((int)*q) && q < end; q++) {
      if (*q == '\'' || *q == '"') {
        for (q++; *q != '\'' && *q != '"' && q < end; q++)
          ;
      }
    }
    (*output)[i] = ((char *)xmalloc(((q - p + 1)) * sizeof(char)));
    strncpy((*output)[i], p, q - p);
    (*output)[i][q - p] = '\0';
    for (q++; isspace((int)*q) && q < end; q++)
      ;
  }
  return 0;
}
```