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

```asm
<ksplit_core>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  sub    $0x28,%rsp
  mov    (%rdx),%eax
  mov    %rdx,0x10(%rsp)
  mov    %eax,0x8(%rsp)
  mov    (%rcx),%rax
  mov    %rcx,0x18(%rsp)
  mov    %rax,(%rsp)
  call   <strlen@plt>
  test   %eax,%eax
  js     L53
  movl   $0x0,0xc(%rsp)
  mov    %eax,%ebx
  xor    %r13d,%r13d
  xor    %r14d,%r14d
  xor    %r15d,%r15d
  jmp    L266
L11:
  cmp    %edi,%ebp
  je     L29
  test   %dil,%dil
  je     L29
  cmp    %r13d,%ebp
  je     L7
  test   %r13d,%r13d
  mov    %edi,%r13d
  je     L7
  cs nopw 0x0(%rax,%rax,1)
L187:
  add    $0x1,%r15d
  add    $0x1,%r12
  cmp    %r15d,%ebx
  jl     L153
L266:
  movsbl (%r12),%edi
  test   %ebp,%ebp
  jne    L11
  call   <isspace@plt>
  mov    %r13d,%edi
  test   %rax,%rax
  jne    L140
  cmpb   $0x0,(%r12)
  jne    L170
L140:
  call   <isgraph@plt>
  test   %rax,%rax
  jne    L169
  add    $0x1,%r15d
  movsbl (%r12),%r13d
  add    $0x1,%r12
  cmp    %r15d,%ebx
  jge    L266
L153:
  mov    0x10(%rsp),%rax
  mov    0x8(%rsp),%esi
  mov    %esi,(%rax)
  mov    0x18(%rsp),%rax
  mov    (%rsp),%rsi
  mov    %rsi,(%rax)
  add    $0x28,%rsp
  mov    %r14d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L29:
  test   %r13d,%r13d
  je     L222
  cmp    %r13d,%ebp
  je     L222
  movb   $0x0,(%r12)
  cmp    %r14d,0x8(%rsp)
  je     L249
L101:
  mov    (%rsp),%rdx
  mov    0xc(%rsp),%ecx
  movslq %r14d,%rax
  add    $0x1,%r14d
  mov    %ecx,(%rdx,%rax,4)
  movsbl (%r12),%r13d
  jmp    L187
  nopw   0x0(%rax,%rax,1)
L222:
  mov    %edi,%r13d
  jmp    L187
L169:
  movb   $0x0,(%r12)
  cmp    %r14d,0x8(%rsp)
  je     L35
L161:
  mov    (%rsp),%rsi
  mov    0xc(%rsp),%edx
  movslq %r14d,%rax
  add    $0x1,%r14d
  mov    %edx,(%rsi,%rax,4)
  movsbl (%r12),%r13d
  jmp    L187
  nopl   0x0(%rax)
L7:
  mov    %edi,%r13d
L120:
  mov    %r15d,0xc(%rsp)
  jmp    L187
  nopl   (%rax)
L249:
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jne    L211
  movl   $0x2,0x8(%rsp)
  mov    $0x8,%esi
L89:
  mov    (%rsp),%rdi
  call   <realloc@plt>
  mov    %rax,(%rsp)
  jmp    L101
  nopw   0x0(%rax,%rax,1)
L170:
  call   <isspace@plt>
  test   %r13d,%r13d
  movsbl (%r12),%r13d
  je     L120
  test   %rax,%rax
  jne    L120
  jmp    L187
  nopl   0x0(%rax)
L211:
  add    %eax,%eax
  mov    %eax,0x8(%rsp)
  lea    0x0(,%rax,4),%esi
  jmp    L89
  nop
L35:
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jne    L216
  movl   $0x2,0x8(%rsp)
  mov    $0x8,%esi
L286:
  mov    (%rsp),%rdi
  call   <realloc@plt>
  mov    %rax,(%rsp)
  jmp    L161
  nopw   0x0(%rax,%rax,1)
L216:
  add    %eax,%eax
  mov    %eax,0x8(%rsp)
  lea    0x0(,%rax,4),%esi
  jmp    L286
  nop
L53:
  xor    %r14d,%r14d
  jmp    L153
```

assistant: ```c
int ksplit_core(char *s, int delimiter, int *_max, int **_offsets) {
  int i, n, max, last_char, last_start, *offsets, l;
  n = 0;
  max = *_max;
  offsets = *_offsets;
  l = strlen(s);
  for (i = 0, last_char = last_start = 0; i <= l; ++i) {
    if (delimiter == 0) {
      if (isspace(s[i]) || s[i] == 0) {
        if (isgraph(last_char))
          do {
            if (_offsets) {
              s[i] = 0;
              if (n == max) {
                max = max ? max << 1 : 2;
                offsets = (int *)realloc(offsets, sizeof(int) * max);
              }
              offsets[n++] = last_start;
            } else
              ++n;
          } while (0);
      } else {
        if (isspace(last_char) || last_char == 0)
          last_start = i;
      }
    } else {
      if (s[i] == delimiter || s[i] == 0) {
        if (last_char != 0 && last_char != delimiter)
          do {
            if (_offsets) {
              s[i] = 0;
              if (n == max) {
                max = max ? max << 1 : 2;
                offsets = (int *)realloc(offsets, sizeof(int) * max);
              }
              offsets[n++] = last_start;
            } else
              ++n;
          } while (0);
      } else {
        if (last_char == delimiter || last_char == 0)
          last_start = i;
      }
    }
    last_char = s[i];
  }
  *_max = max;
  *_offsets = offsets;
  return n;
}
```