user: 请从给定的汇编指令推导出C源代码:

```asm
<nodelist_common_split_nodelist_entry>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rsi,(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    %rcx,0x10(%rsp)
  call   <strlen@plt>
  mov    %r13,%rdi
  movslq %eax,%rbx
  call   <strlen@plt>
  add    %r13,%rbx
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  test   %rax,%rax
  je     L295
  movsbl 0x0(%r13),%edi
  mov    %rax,%r15
  mov    %rax,%r14
  mov    %r13,%rbp
  cmp    $0x5b,%dil
  jne    L265
  nop
L270:
  mov    %r15,%rdi
  xor    %r14d,%r14d
  xor    %r15d,%r15d
  call   <free@plt>
  cmpb   $0x5b,0x0(%r13)
  je     L5
  mov    %r13,%r12
  cmp    %r13,%rbx
  ja     L331
  nopl   (%rax)
L55:
  mov    %r13,%r12
  xor    %ebp,%ebp
L297:
  cmp    %r12,%rbx
  je     L191
L392:
  sub    %r12,%rbx
  lea    0x1(%rbx),%edi
  mov    %rbx,%r13
  xor    %ebx,%ebx
  call   <malloc@plt>
  test   %rax,%rax
  jne    L41
  test   %r14,%r14
  je     L299
L389:
  mov    %r14,%rdi
  call   <free@plt>
L299:
  test   %rbp,%rbp
  je     L362
  mov    %rbp,%rdi
  call   <free@plt>
L362:
  test   %rbx,%rbx
  je     L373
  mov    %rbx,%rdi
  mov    $0xffffffff,%r15d
  xor    %ebp,%ebp
  xor    %ebx,%ebx
  call   <free@plt>
  xor    %r14d,%r14d
L211:
  mov    (%rsp),%rax
  mov    %r14,(%rax)
  mov    0x8(%rsp),%rax
  mov    %rbp,(%rax)
  mov    0x10(%rsp),%rax
  mov    %rbx,(%rax)
  add    $0x28,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L300:
  cmp    %rbp,%rbx
  jbe    L139
  movsbl 0x1(%rbp),%edi
  add    $0x1,%rbp
  cmp    $0x5b,%dil
  je     L139
L265:
  call   <isdigit@plt>
  test   %rax,%rax
  je     L300
L139:
  cmp    %rbp,%r13
  je     L270
  cmp    %rbp,%rbx
  jb     L270
  mov    %rbp,%r12
  mov    %r13,%rsi
  mov    %r15,%rdi
  sub    %r13,%r12
  mov    %rbp,%r13
  mov    %r12d,%edx
  call   <memcpy@plt>
  movb   $0x0,(%r15,%r12,1)
  xor    %r15d,%r15d
  jmp    L209
L295:
  xor    %r14d,%r14d
  mov    $0xffffffff,%r15d
  jmp    L209
  nopl   0x0(%rax,%rax,1)
L5:
  cmp    %r13,%rbx
  jbe    L55
  add    $0x1,%r13
L209:
  cmpb   $0x5b,0x0(%r13)
  je     L5
  mov    %r13,%r12
  cmp    %r13,%rbx
  ja     L331
  jmp    L55
  nopl   0x0(%rax)
L106:
  add    $0x1,%r12
L331:
  movsbl (%r12),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L121
  movzbl (%r12),%eax
  sub    $0x2c,%eax
  cmp    $0x1,%al
  ja     L258
L121:
  cmp    %rbx,%r12
  jne    L106
L258:
  cmpb   $0x2d,-0x1(%r12)
  je     L255
L13:
  mov    %r12,%rax
  sub    %r13,%rax
  lea    0x1(%rax),%edi
  mov    %rax,0x18(%rsp)
  call   <malloc@plt>
  test   %rax,%rax
  jne    L164
  xor    %ebp,%ebp
  mov    $0xffffffff,%r15d
L335:
  cmpb   $0x5d,(%r12)
  jne    L297
  cmp    %rbx,%r12
  jb     L398
  jmp    L297
  nopl   0x0(%rax)
L43:
  cmp    %r12,%rbx
  jbe    L297
L398:
  add    $0x1,%r12
  cmpb   $0x5d,(%r12)
  je     L43
  cmp    %r12,%rbx
  jne    L392
L191:
  xor    %ebx,%ebx
L285:
  test   %r15d,%r15d
  je     L211
  test   %r14,%r14
  jne    L389
  jmp    L299
  xchg   %ax,%ax
L373:
  xor    %ebp,%ebp
  xor    %r14d,%r14d
  mov    $0xffffffff,%r15d
  jmp    L211
L41:
  mov    %rax,%rbx
  mov    %r13d,%edx
  mov    %r12,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  movb   $0x0,(%rbx,%r13,1)
  jmp    L285
  nopl   0x0(%rax,%rax,1)
L255:
  lea    -0x1(%r12),%rax
  cmpb   $0x2d,-0x2(%r12)
  mov    %rax,%r12
  jne    L13
  nopl   0x0(%rax)
L277:
  sub    $0x1,%r12
  cmpb   $0x2d,-0x1(%r12)
  je     L277
  jmp    L13
  nopl   0x0(%rax)
L164:
  mov    0x18(%rsp),%edx
  mov    %r13,%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <memcpy@plt>
  mov    0x18(%rsp),%rax
  movb   $0x0,0x0(%rbp,%rax,1)
  jmp    L335
```

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