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

```asm
<argz_create_sep>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x3c(%rbp)
  movl   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x28(%rbp)
  mov    -0x60(%rbp),%rax
  movq   $0x0,(%rax)
  cmpq   $0x0,-0x48(%rbp)
  je     L76
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L74
L76:
  mov    -0x58(%rbp),%rax
  movq   $0x0,(%rax)
  mov    $0x0,%eax
  jmp    L72
L74:
  mov    -0x4c(%rbp),%eax
  mov    %al,-0xa(%rbp)
  movb   $0x0,-0x9(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  jmp    L14
L96:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x34(%rbp)
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x34(%rbp),%eax
  add    $0x1,%eax
  cltq
  add    %rax,%rdx
  mov    -0x60(%rbp),%rax
  mov    %rdx,(%rax)
  addl   $0x1,-0x38(%rbp)
L14:
  lea    -0xa(%rbp),%rdx
  lea    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strsep@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L96
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,%rdx
  mov    -0x58(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L92
  mov    D6(%rip),%rax
  mov    (%rax),%eax
  jmp    L72
L92:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x28(%rbp)
  movl   $0x0,-0x3c(%rbp)
  jmp    L13
L50:
  lea    -0xa(%rbp),%rdx
  lea    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strsep@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%edx
  mov    -0x18(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x34(%rbp),%eax
  cltq
  add    %rax,-0x28(%rbp)
  addl   $0x1,-0x3c(%rbp)
L13:
  mov    -0x3c(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L50
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
L72:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L73
  call   <__stack_chk_fail@plt>
L73:
  leave
  ret
```

assistant: ```c
error_t argz_create_sep(const char *string, int sep, char **argz, size_t *argz_len) {
  int len = 0;
  int i = 0;
  int num_strings = 0;
  char delim[2];
  char *running = 0;
  char *old_running = 0;
  char *token = 0;
  char *iter = 0;
  *argz_len = 0;
  if (!string || string[0] == '\0') {
    *argz = NULL;
    return 0;
  }
  delim[0] = sep;
  delim[1] = '\0';
  running = strdup(string);
  old_running = running;
  while ((token = strsep(&running, delim))) {
    len = strlen(token);
    *argz_len += (len + 1);
    num_strings++;
  }
  if (!(*argz = (char *)malloc(*argz_len)))
    return ENOMEM;
  free(old_running);
  running = strdup(string);
  old_running = running;
  iter = *argz;
  for (i = 0; i < num_strings; i++) {
    token = strsep(&running, delim);
    len = strlen(token) + 1;
    memcpy(iter, token, len);
    iter += len;
  }
  free(old_running);
  return 0;
}
```