user: 这段汇编代码用C语言表示是什么样的:

```asm
<ksplit_core>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbx
  mov    %esi,%r13d
  mov    %rdx,0x20(%rsp)
  mov    %rcx,0x28(%rsp)
  mov    (%rdx),%eax
  mov    %eax,0x10(%rsp)
  mov    (%rcx),%rax
  mov    %rax,0x8(%rsp)
  call   <strlen@plt>
  test   %eax,%eax
  js     L5
  mov    %eax,%r14d
  movl   $0x0,0x14(%rsp)
  mov    $0x0,%r12d
  mov    $0x0,%r15d
  mov    $0x0,%ebp
  jmp    L46
L160:
  mov    %rbx,0x18(%rsp)
  movsbl (%rbx),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L16
  cmpb   $0x0,(%rbx)
  jne    L119
L16:
  mov    %r12d,%edi
  call   <isgraph@plt>
  test   %rax,%rax
  je     L54
  mov    0x18(%rsp),%rax
  movb   $0x0,(%rax)
  cmp    0x10(%rsp),%r15d
  je     L191
L39:
  movslq %r15d,%rax
  mov    0x8(%rsp),%rcx
  mov    0x14(%rsp),%esi
  mov    %esi,(%rcx,%rax,4)
  lea    0x1(%r15),%r15d
  jmp    L54
L191:
  mov    0x10(%rsp),%esi
  lea    (%rsi,%rsi,1),%eax
  test   %esi,%esi
  mov    $0x2,%edx
  cmove  %edx,%eax
  mov    %eax,0x10(%rsp)
  lea    0x0(,%rax,4),%esi
  mov    0x8(%rsp),%rdi
  call   <realloc@plt>
  mov    %rax,0x8(%rsp)
  jmp    L39
L119:
  mov    %r12d,%edi
  call   <isspace@plt>
  test   %r12d,%r12d
  je     L53
  test   %rax,%rax
  je     L54
L53:
  mov    %ebp,0x14(%rsp)
  jmp    L54
L212:
  mov    0x10(%rsp),%ecx
  lea    (%rcx,%rcx,1),%eax
  test   %ecx,%ecx
  mov    $0x2,%esi
  cmove  %esi,%eax
  mov    %eax,0x10(%rsp)
  lea    0x0(,%rax,4),%esi
  mov    0x8(%rsp),%rdi
  call   <realloc@plt>
  mov    %rax,0x8(%rsp)
L131:
  movslq %r15d,%rax
  mov    0x8(%rsp),%rsi
  mov    0x14(%rsp),%ecx
  mov    %ecx,(%rsi,%rax,4)
  lea    0x1(%r15),%r15d
L54:
  movsbl (%rbx),%r12d
  add    $0x1,%ebp
  add    $0x1,%rbx
  cmp    %ebp,%r14d
  jl     L71
L46:
  test   %r13d,%r13d
  je     L160
  mov    %rbx,%rdx
  movzbl (%rbx),%eax
  test   %al,%al
  je     L141
  movsbl %al,%eax
  cmp    %r13d,%eax
  jne    L40
L141:
  test   %r12d,%r12d
  je     L54
  cmp    %r12d,%r13d
  je     L54
  movb   $0x0,(%rdx)
  cmp    0x10(%rsp),%r15d
  jne    L131
  jmp    L212
L40:
  cmp    %r12d,%r13d
  je     L99
  test   %r12d,%r12d
  jne    L54
L99:
  mov    %ebp,0x14(%rsp)
  jmp    L54
L5:
  mov    $0x0,%r15d
L71:
  mov    0x20(%rsp),%rax
  mov    0x10(%rsp),%esi
  mov    %esi,(%rax)
  mov    0x28(%rsp),%rax
  mov    0x8(%rsp),%rsi
  mov    %rsi,(%rax)
  mov    %r15d,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

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