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

```asm
<token_parse>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,%eax
  mov    %rdx,-0x48(%rbp)
  mov    %al,-0x3c(%rbp)
  movl   $0x2,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  movq   $0x0,-0x10(%rbp)
  movq   $0x0,-0x8(%rbp)
  movl   $0x0,-0x24(%rbp)
  movq   $0x0,-0x18(%rbp)
  jmp    L130
L13:
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,-0x3c(%rbp)
  jne    L108
  addl   $0x1,-0x28(%rbp)
  jmp    L52
L108:
  cmpq   $0x0,-0x48(%rbp)
  je     L52
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L52
  addl   $0x1,-0x28(%rbp)
  jmp    L60
L52:
  addq   $0x1,-0x20(%rbp)
L130:
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L13
L60:
  mov    -0x28(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x38(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  movl   $0x0,-0x24(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  jmp    L139
L56:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,-0x3c(%rbp)
  jne    L71
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rax,(%rdx)
  mov    -0x38(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x18(%rbp)
  addl   $0x1,-0x24(%rbp)
  jmp    L51
L71:
  cmpq   $0x0,-0x48(%rbp)
  je     L51
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L51
  addq   $0x1,-0x18(%rbp)
  jmp    L100
L51:
  addq   $0x1,-0x38(%rbp)
L139:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L56
L100:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rax,(%rdx)
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movq   $0x0,(%rax)
  mov    -0x24(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%rax
  mov    %rax,(%rdx)
  mov    -0x10(%rbp),%rax
  leave
  ret
```

assistant: ```c
char **token_parse(char *token, char delim, char *dump) {
  int size = 2;
  char *ctoken = token;
  char **tok_arr = NULL;
  char *cpy = NULL;
  int index = 0;
  char *last = NULL;
  while (*ctoken) {
    if (*ctoken == delim)
      ++size;
    else if (dump != NULL) {
      if (*ctoken == *dump) {
        ++size;
        break;
      }
    }
    ++ctoken;
  }
  tok_arr = (char **)malloc(sizeof(char *) * size + sizeof(char *));
  cpy = (char *)malloc(sizeof(char) * strlen(token) + sizeof(char));
  strcpy(cpy, token);
  token = cpy;
  index = 0;
  last = token;
  while (*token) {
    if (*token == delim) {
      tok_arr[index] = last;
      *token = '\0';
      last = (token + 1);
      ++index;
    } else if (dump != NULL) {
      if (*token == *dump) {
        last++;
        break;
      }
    }
    ++token;
  }
  tok_arr[index] = last;
  tok_arr[index + 1] = NULL;
  tok_arr[index + 2] = cpy;
  return tok_arr;
}
```