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

```asm
<string_split>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  mov    %rsi,%rdi
  push   %rbx
  sub    $0x38,%rsp
  call   <string_list_destroy@plt>
  mov    %rbp,%rdi
  call   <string_empty@plt>
  test   %eax,%eax
  je     L35
L72:
  xor    %r15d,%r15d
L4:
  add    $0x38,%rsp
  mov    %r15,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L35:
  mov    %r13,%rdi
  call   <string_length@plt>
  mov    %r13,%rdi
  mov    %eax,%ebx
  call   <string_empty@plt>
  test   %eax,%eax
  jne    L30
  movslq %ebx,%rax
  mov    %rbp,%rdi
  mov    $0x1,%r15d
  mov    %rax,0x8(%rsp)
  jmp    L33
  nopl   (%rax)
L73:
  mov    0x8(%rsp),%rcx
  add    $0x1,%r15
  lea    (%rax,%rcx,1),%rdi
L33:
  mov    %r13,%rsi
  call   <string_find@plt>
  test   %rax,%rax
  jne    L73
  test   %r15,%r15
  je     L72
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <string_list_init@plt>
  lea    -0x8(,%r15,8),%rax
  mov    %rax,0x28(%rsp)
  mov    %r15,%rax
  sub    $0x1,%rax
  mov    %rax,0x20(%rsp)
  je     L29
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L70:
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <string_find@plt>
  mov    %rax,0x18(%rsp)
  mov    %rax,%r14
  mov    (%r12),%rax
  sub    %rbp,%r14
  lea    (%rax,%rbx,8),%rdx
  lea    0x1(%r14),%edi
  mov    %rdx,0x10(%rsp)
  call   <malloc@plt>
  mov    0x10(%rsp),%rdx
  mov    %rbp,%rsi
  mov    %rax,(%rdx)
  mov    (%r12),%rax
  mov    %r14d,%edx
  mov    (%rax,%rbx,8),%rdi
  call   <strncpy@plt>
  mov    (%r12),%rax
  mov    0x18(%rsp),%rcx
  mov    (%rax,%rbx,8),%rax
  add    $0x1,%rbx
  movb   $0x0,(%rax,%r14,1)
  mov    0x8(%rsp),%rax
  lea    (%rcx,%rax,1),%rbp
  cmp    0x20(%rsp),%rbx
  jne    L70
L68:
  mov    %rbp,%rdi
  call   <string_length@plt>
  mov    0x28(%rsp),%r14
  mov    (%r12),%rbx
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  add    %r14,%rbx
  mov    %rbp,%rsi
  mov    %rax,(%rbx)
  mov    (%r12),%rax
  mov    (%rax,%r14,1),%rdi
  call   <strcpy@plt>
  jmp    L4
  nopl   0x0(%rax)
L30:
  mov    $0x1,%esi
  mov    %r12,%rdi
  mov    $0x1,%r15d
  call   <string_list_init@plt>
  movq   $0x0,0x28(%rsp)
  jmp    L68
L29:
  mov    $0x1,%r15d
  jmp    L68
```

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;
}
```