user: Demonstrate the C code that generates the assembly output below:

```asm
<string_split>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  movq   $0x0,-0x40(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <string_list_destroy@plt>
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <string_empty@plt>
  test   %eax,%eax
  jne    L6
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <string_length@plt>
  cltq
  mov    %rax,-0x20(%rbp)
  movq   $0x1,-0x40(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <string_empty@plt>
  test   %eax,%eax
  jne    L59
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  jmp    L7
L44:
  mov    -0x20(%rbp),%rax
  add    %rax,-0x38(%rbp)
  addq   $0x1,-0x40(%rbp)
L7:
  mov    -0x58(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <string_find@plt>
  mov    %rax,-0x38(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  jne    L44
L59:
  cmpq   $0x0,-0x40(%rbp)
  je     L6
  mov    -0x40(%rbp),%rdx
  mov    -0x50(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <string_list_init@plt>
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  jmp    L53
L31:
  mov    -0x58(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <string_find@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  sub    -0x30(%rbp),%rax
  add    $0x1,%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%rax
  mov    (%rax),%rcx
  mov    -0x28(%rbp),%rax
  shl    $0x3,%rax
  lea    (%rcx,%rax,1),%rbx
  mov    %edx,%edi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  mov    -0x18(%rbp),%rax
  sub    -0x30(%rbp),%rax
  mov    %eax,%edx
  mov    -0x50(%rbp),%rax
  mov    (%rax),%rcx
  mov    -0x28(%rbp),%rax
  shl    $0x3,%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  mov    -0x30(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x50(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  sub    -0x30(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x18(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x30(%rbp)
  addq   $0x1,-0x28(%rbp)
L53:
  mov    -0x40(%rbp),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x28(%rbp)
  jb     L31
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <string_length@plt>
  add    $0x1,%eax
  mov    -0x50(%rbp),%rdx
  mov    (%rdx),%rcx
  mov    -0x40(%rbp),%rdx
  shl    $0x3,%rdx
  sub    $0x8,%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x40(%rbp),%rax
  shl    $0x3,%rax
  sub    $0x8,%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x30(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L6:
  mov    -0x40(%rbp),%rax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
size_t string_split(const char *joint, char ***strings, const char *delimiter) {
  size_t num_strings = 0;
  string_list_destroy(strings);
  if (!string_empty(joint)) {
    size_t delim_length = string_length(delimiter);
    num_strings = 1;
    if (!string_empty(delimiter)) {
      const char *start = joint;
      while ((start = string_find(start, delimiter))) {
        start += delim_length;
        ++num_strings;
      }
    }
    if (num_strings) {
      string_list_init(strings, num_strings);
      const char *start = joint;
      size_t i;
      for (i = 0; i < num_strings - 1; ++i) {
        const char *end = string_find(start, delimiter);
        (*strings)[i] = malloc(end - start + 1);
        strncpy((*strings)[i], start, end - start);
        (*strings)[i][end - start] = 0;
        start = end + delim_length;
      }
      (*strings)[num_strings - 1] = malloc(string_length(start) + 1);
      strcpy((*strings)[num_strings - 1], start);
    }
  }
  return num_strings;
}
```