user: 请将以下的汇编代码转换成C语言代码：

```asm
<strsplit>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  movq   $0x0,-0x38(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,-0x48(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  mov    %rax,-0x30(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x28(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L61
L94:
  mov    -0x30(%rbp),%rax
  add    %rax,-0x48(%rbp)
  addq   $0x1,-0x40(%rbp)
L61:
  mov    -0x60(%rbp),%rdx
  mov    -0x48(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x48(%rbp)
  cmpq   $0x0,-0x48(%rbp)
  jne    L94
  addq   $0x1,-0x40(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,-0x48(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x40(%rbp),%rax
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x38(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  je     L96
  cmpq   $0x0,-0x20(%rbp)
  je     L96
  jmp    L75
L47:
  mov    -0x18(%rbp),%rax
  sub    -0x48(%rbp),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x18(%rbp),%rax
  sub    -0x48(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x4c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4c(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,(%rbx)
  mov    -0x30(%rbp),%rax
  add    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x48(%rbp)
L75:
  mov    -0x60(%rbp),%rdx
  mov    -0x48(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L47
  cmpq   $0x0,-0x48(%rbp)
  je     L78
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L78
  mov    -0x4c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4c(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,(%rbx)
L78:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movq   $0x0,(%rax)
  mov    -0x68(%rbp),%rax
  mov    -0x40(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L37
L96:
  mov    -0x68(%rbp),%rax
  movq   $0x0,(%rax)
L37:
  cmpq   $0x0,-0x20(%rbp)
  je     L93
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L93:
  mov    -0x38(%rbp),%rax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
char **strsplit(char *str, const char delims[], size_t *len) {
  char *save, *tok;
  char **result = '\0';
  char *tmp = strdup(str);
  size_t delims_size = strlen(delims);
  size_t count = 0;
  size_t sub_count = 0;
  int i = 0;
  while ((tmp = strstr(tmp, delims)) != NULL) {
    tmp += delims_size;
    count++;
  }
  count++;
  tmp = strdup(str);
  save = malloc(sizeof(char) * strlen(str));
  result = malloc(sizeof(char *) * count);
  if (result && save) {
    while ((tok = strstr(tmp, delims)) != NULL) {
      strncpy(save, tmp, (tok - tmp));
      save[(tok - tmp)] = '\0';
      result[i++] = strdup(save);
      tok += delims_size;
      tmp = tok;
    }
    if (tmp && tmp[0] != '\0') {
      result[i++] = strdup(tmp);
    }
    result[i] = '\0';
    *len = count;
  } else {
    *len = 0;
  }
  if (save)
    free(save);
  return result;
}
```