user: What would the C source look like for the assembly code provided here?

```asm
<nodelist_common_split_nodelist_entry>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%rbp
  mov    %rsi,(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    %rcx,0x10(%rsp)
  call   <strlen@plt>
  movslq %eax,%r12
  add    %rbp,%r12
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    $0xffffffff,%r15d
  test   %rax,%rax
  je     L58
  movzbl 0x0(%rbp),%edi
  mov    %rbp,%rbx
  cmp    $0x5b,%dil
  je     L8
L41:
  movsbl %dil,%edi
  call   <isdigit@plt>
  cmp    %rbx,%r12
  jbe    L170
  test   %rax,%rax
  jne    L170
  add    $0x1,%rbx
  movzbl (%rbx),%edi
  cmp    $0x5b,%dil
  jne    L41
L170:
  cmp    %rbx,%rbp
  je     L8
  cmp    %rbx,%r12
  jb     L8
  mov    %rbx,%r14
  sub    %rbp,%r14
  mov    %r14d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  movb   $0x0,0x0(%r13,%r14,1)
  mov    %rbx,%rbp
  mov    $0x0,%r15d
L58:
  cmpb   $0x5b,0x0(%rbp)
  jne    L126
  cmp    %rbp,%r12
  jbe    L126
L192:
  add    $0x1,%rbp
  cmpb   $0x5b,0x0(%rbp)
  jne    L126
  cmp    %rbp,%r12
  ja     L192
L126:
  cmp    %rbp,%r12
  ja     L301
  mov    %rbp,%rbx
  mov    $0x0,%r14d
L107:
  cmp    %rbx,%r12
  je     L98
  sub    %rbx,%r12
  lea    0x1(%r12),%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  jne    L64
  mov    $0xffffffff,%r15d
L342:
  test   %r13,%r13
  je     L331
  mov    %r13,%rdi
  call   <free@plt>
L331:
  test   %r14,%r14
  je     L166
  mov    %r14,%rdi
  call   <free@plt>
L166:
  test   %rbp,%rbp
  je     L95
  mov    %rbp,%rdi
  call   <free@plt>
  mov    $0x0,%r14d
  mov    $0x0,%ebp
  mov    $0x0,%r13d
L354:
  mov    (%rsp),%rax
  mov    %r13,(%rax)
  mov    0x8(%rsp),%rax
  mov    %r14,(%rax)
  mov    0x10(%rsp),%rax
  mov    %rbp,(%rax)
  mov    %r15d,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L8:
  mov    %r13,%rdi
  call   <free@plt>
  mov    $0x0,%r13d
  mov    $0x0,%r15d
  jmp    L58
L301:
  mov    %rbp,%rbx
  jmp    L291
L234:
  cmp    %r12,%rbx
  je     L162
  add    $0x1,%rbx
L291:
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L234
  movzbl (%rbx),%eax
  sub    $0x2c,%eax
  cmp    $0x1,%al
  jbe    L234
  jmp    L187
L162:
  mov    %r12,%rbx
L187:
  cmpb   $0x2d,-0x1(%rbx)
  je     L105
L156:
  mov    %rbx,%rax
  sub    %rbp,%rax
  mov    %rax,0x18(%rsp)
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  mov    %rax,%r14
  test   %rax,%rax
  jne    L120
  mov    $0xffffffff,%r15d
L32:
  cmpb   $0x5d,(%rbx)
  jne    L107
  cmp    %r12,%rbx
  jae    L107
L305:
  add    $0x1,%rbx
  cmpb   $0x5d,(%rbx)
  jne    L107
  cmp    %rbx,%r12
  ja     L305
  jmp    L107
L105:
  lea    -0x1(%rbx),%rax
  cmpb   $0x2d,-0x2(%rbx)
  jne    L297
L286:
  sub    $0x1,%rax
  cmpb   $0x2d,-0x1(%rax)
  je     L286
  mov    %rax,%rbx
  jmp    L156
L297:
  mov    %rax,%rbx
  jmp    L156
L120:
  mov    0x18(%rsp),%edx
  mov    %rbp,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    0x18(%rsp),%rax
  movb   $0x0,(%r14,%rax,1)
  jmp    L32
L64:
  mov    %r12d,%edx
  mov    %rbx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  movb   $0x0,0x0(%rbp,%r12,1)
  jmp    L17
L98:
  mov    $0x0,%ebp
L17:
  test   %r15d,%r15d
  je     L354
  jmp    L342
L95:
  mov    %rbp,%r14
  mov    %rbp,%r13
  jmp    L354
```

assistant: ```c
int nodelist_common_split_nodelist_entry(char *list, char **p_prefix, char **p_idlist, char **p_suffix) {
  int fstatus = 0;
  char *list_end;
  char *prefix = NULL;
  char *prefix_begin;
  char *prefix_end;
  char *suffix = NULL;
  char *suffix_begin;
  char *idlist = NULL;
  char *idlist_begin;
  char *idlist_end;
  list_end = list + (strlen(list));
  prefix_begin = list;
  prefix_end = list;
  prefix = (char *)malloc((strlen(list) + 1) * sizeof(char));
  if (prefix != NULL) {
    while (*prefix_end != '[' && !isdigit(*prefix_end) && prefix_end < list_end)
      prefix_end++;
    if (prefix_end != prefix_begin && prefix_end <= list_end) {
      memcpy(prefix, list, (prefix_end - prefix_begin) * sizeof(char));
      prefix[prefix_end - prefix_begin] = '\0';
    } else {
      if (prefix != NULL) {
        free(prefix);
        prefix = NULL;
      };
    }
  } else {
    fstatus = -1;
  }
  if (prefix != NULL)
    idlist_begin = prefix_end;
  else
    idlist_begin = list;
  while (*idlist_begin == '[' && idlist_begin < list_end)
    idlist_begin++;
  idlist_end = idlist_begin;
  if (idlist_begin < list_end) {
    while ((isdigit(*idlist_end) || *idlist_end == ',' || *idlist_end == '-') && idlist_end < list_end) {
      idlist_end++;
    }
    if (*(idlist_end - 1) == '-') {
      idlist_end--;
      while (*(idlist_end - 1) == '-')
        idlist_end--;
    }
    idlist = (char *)malloc((idlist_end - idlist_begin + 1) * sizeof(char));
    if (idlist != NULL) {
      memcpy(idlist, idlist_begin, (idlist_end - idlist_begin) * sizeof(char));
      idlist[idlist_end - idlist_begin] = '\0';
    } else {
      fstatus = -1;
    }
  }
  suffix_begin = idlist_end;
  while (*suffix_begin == ']' && suffix_begin < list_end)
    suffix_begin++;
  if (suffix_begin != list_end) {
    suffix = (char *)malloc((list_end - suffix_begin + 1) * sizeof(char));
    if (suffix != NULL) {
      memcpy(suffix, suffix_begin, (list_end - suffix_begin) * sizeof(char));
      suffix[list_end - suffix_begin] = '\0';
    } else {
      fstatus = -1;
    }
  }
  if (fstatus != 0) {
    if (prefix != NULL) {
      free(prefix);
      prefix = NULL;
    };
    if (idlist != NULL) {
      free(idlist);
      idlist = NULL;
    };
    if (suffix != NULL) {
      free(suffix);
      suffix = NULL;
    };
  }
  *p_prefix = prefix;
  *p_idlist = idlist;
  *p_suffix = suffix;
  return fstatus;
}
```