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

```asm
<split_string>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xb0,%rsp
  mov    %rdi,-0x98(%rbp)
  mov    %esi,%eax
  mov    %rdx,-0xa8(%rbp)
  mov    %al,-0x9c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x50,%edi
  call   <malloc@plt>
  mov    %rax,-0x80(%rbp)
  movl   $0x0,-0x88(%rbp)
  jmp    L44
L24:
  mov    -0x78(%rbp),%rax
  sub    -0x98(%rbp),%rax
  mov    %eax,-0x84(%rbp)
  cmpl   $0x0,-0x84(%rbp)
  je     L30
  mov    -0x84(%rbp),%edx
  mov    -0x98(%rbp),%rcx
  lea    -0x70(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x84(%rbp),%eax
  movb   $0x0,-0x70(%rbp,%rax,1)
  mov    -0x84(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    -0x88(%rbp),%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x80(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rax,(%rdx)
  mov    -0x88(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x70(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  addl   $0x1,-0x88(%rbp)
  mov    -0xa8(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0xa8(%rbp),%rax
  mov    %edx,(%rax)
L30:
  mov    -0x78(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x98(%rbp)
L44:
  movsbl -0x9c(%rbp),%edx
  mov    -0x98(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x78(%rbp)
  cmpq   $0x0,-0x78(%rbp)
  jne    L24
  mov    -0x98(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x84(%rbp)
  cmpl   $0x0,-0x84(%rbp)
  je     L12
  mov    -0x84(%rbp),%edx
  mov    -0x98(%rbp),%rcx
  lea    -0x70(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x84(%rbp),%eax
  movb   $0x0,-0x70(%rbp,%rax,1)
  mov    -0x84(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    -0x88(%rbp),%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x80(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rax,(%rdx)
  mov    -0x88(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x70(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0xa8(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0xa8(%rbp),%rax
  mov    %edx,(%rax)
L12:
  mov    -0x80(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L41
  call   <__stack_chk_fail@plt>
L41:
  leave
  ret
```

assistant: ```c
char **split_string(char string[], char c, unsigned int *nchunks) {
  char **string_chunks = (char **)malloc(10 * sizeof(char *));
  char *p;
  char tmp[100];
  unsigned int i = 0, l;
  while ((p = strchr(string, c))) {
    l = (int)(p - string);
    if (l > 0) {
      memcpy(tmp, string, l);
      tmp[l] = '\0';
      string_chunks[i] = (char *)malloc((l + 1) * sizeof(char));
      strcpy(string_chunks[i], tmp);
      i += 1;
      *nchunks += 1;
    }
    string = p + 1;
  }
  l = strlen(string);
  if (l > 0) {
    memcpy(tmp, string, l);
    tmp[l] = '\0';
    string_chunks[i] = (char *)malloc((l + 1) * sizeof(char));
    strcpy(string_chunks[i], tmp);
    *nchunks += 1;
  }
  return string_chunks;
}
```