user: Please show me the C implementation that matches the assembly code listed below:

```asm
<split>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%r13
  mov    %rsi,%rbx
  mov    %rsi,0x10(%rsp)
  mov    %rdx,%r14
  mov    %rsi,%rdi
  call   <strlen@plt>
  mov    %eax,%ebp
  test   %r14,%r14
  sete   %al
  test   %r13,%r13
  sete   %dl
  or     %dl,%al
  jne    L45
  test   %rbx,%rbx
  je     L45
  mov    $0x50,%edi
  call   <malloc@plt>
  mov    %rax,(%r14)
  test   %rax,%rax
  je     L25
  mov    $0x0,%ebx
  mov    $0xa,%r15d
  movslq %ebp,%rax
  mov    %rax,0x18(%rsp)
  jmp    L117
L25:
  lea    D15(%rip),%rdi
  call   <perror@plt>
  mov    $0xffffffff,%ebp
  jmp    L101
L76:
  lea    D11(%rip),%rdi
  call   <perror@plt>
  mov    $0xffffffff,%ebp
  jmp    L101
L37:
  add    $0x1,%rbx
L117:
  mov    %ebx,0x8(%rsp)
  mov    %ebx,%r12d
  mov    0x10(%rsp),%rsi
  mov    %r13,%rdi
  call   <strstr@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L0
  mov    %rbp,%r12
  sub    %r13,%r12
  mov    %r12d,0xc(%rsp)
  lea    0x1(%r12),%edi
  call   <malloc@plt>
  mov    (%r14),%rdx
  mov    %rax,(%rdx,%rbx,8)
  test   %rax,%rax
  je     L76
  mov    (%r14),%rax
  mov    (%rax,%rbx,8),%rdi
  mov    0xc(%rsp),%edx
  mov    %r13,%rsi
  call   <strncpy@plt>
  mov    (%r14),%rax
  movslq %r12d,%r12
  mov    (%rax,%rbx,8),%rax
  movb   $0x0,(%rax,%r12,1)
  mov    0x18(%rsp),%rax
  lea    0x0(%rbp,%rax,1),%r13
  mov    0x8(%rsp),%eax
  add    $0x1,%eax
  cmp    %eax,%r15d
  jne    L37
  add    $0xa,%r15d
  lea    0x0(,%r15,8),%esi
  mov    (%r14),%rdi
  call   <realloc@plt>
  mov    %rax,(%r14)
  jmp    L37
L0:
  lea    0x1(%rbx),%ebp
  cmp    %r15d,%ebp
  je     L72
L85:
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  movslq %r12d,%r12
  lea    0x0(,%r12,8),%r15
  mov    (%r14),%rdx
  mov    %rax,(%rdx,%r12,8)
  mov    (%r14),%rax
  mov    (%rax,%r12,8),%rdi
  mov    %ebx,%edx
  mov    %r13,%rsi
  call   <strncpy@plt>
  mov    (%r14),%rax
  movslq %ebx,%rbx
  mov    (%rax,%r12,8),%rax
  movb   $0x0,(%rax,%rbx,1)
  mov    (%r14),%rax
  movq   $0x0,0x8(%rax,%r15,1)
L101:
  mov    %ebp,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L72:
  lea    0x10(,%r15,8),%esi
  mov    (%r14),%rdi
  call   <realloc@plt>
  mov    %rax,(%r14)
  jmp    L85
L45:
  mov    $0xffffffff,%ebp
  jmp    L101
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D15
type: string
name: extract_symbolic_data
arguments: data_label: D11
type: string

tool: D15: malloc List

tool: D11: split: malloc list element

assistant: ```c
int split(const char *Input, char *Delim, char ***List) {
  int Found;
  int MaxFound;
  int Length;
  int DelimLen;
  const char *Remain;
  char *Position;
  DelimLen = strlen(Delim);
  Found = 0;
  Remain = Input;
  MaxFound = 10;
  if ((List == NULL) || (Input == NULL) || (Delim == NULL)) {
    return -1;
  }
  if ((*List = (char **)malloc(MaxFound * sizeof(char *))) == NULL) {
    perror("malloc List");
    return -1;
  }
  while ((Position = strstr(Remain, Delim)) != NULL) {
    Length = Position - Remain;
    if ((((*List)[Found]) = (char *)malloc(sizeof(char) * (Length + 1))) == NULL) {
      perror("split: malloc list element");
      return -1;
    }
    strncpy(((*List)[Found]), Remain, Length);
    ((*List)[Found])[Length] = 0;
    Found++;
    Remain = Position + DelimLen;
    if (Found == MaxFound) {
      MaxFound += 10;
      *List = (char **)realloc(*List, MaxFound * sizeof(char *));
    }
  }
  if (Found + 1 == MaxFound) {
    MaxFound += 2;
    *List = (char **)realloc(*List, MaxFound * sizeof(char *));
  }
  Length = strlen(Remain);
  ((*List)[Found]) = (char *)malloc(sizeof(char) * (Length + 1));
  strncpy(((*List)[Found]), Remain, Length);
  ((*List)[Found])[Length] = 0;
  Found++;
  ((*List)[Found]) = NULL;
  return Found;
}
```