user: Translate the below assembly code into C programming language:

```asm
<nodelist_common_split_nodelist_entry>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %rcx,-0x70(%rbp)
  movl   $0x0,-0x4c(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x28(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x48(%rbp)
  cmpq   $0x0,-0x48(%rbp)
  je     L29
  jmp    L343
L225:
  addq   $0x1,-0x40(%rbp)
L343:
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5b,%al
  je     L56
  mov    -0x40(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L56
  mov    -0x40(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jb     L225
L56:
  mov    -0x40(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  je     L52
  mov    -0x40(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  ja     L52
  mov    -0x40(%rbp),%rax
  sub    -0x8(%rbp),%rax
  mov    %eax,%edx
  mov    -0x58(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x40(%rbp),%rax
  sub    -0x8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L249
L52:
  cmpq   $0x0,-0x48(%rbp)
  je     L249
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movq   $0x0,-0x48(%rbp)
  jmp    L249
L29:
  movl   $0xffffffff,-0x4c(%rbp)
L249:
  cmpq   $0x0,-0x48(%rbp)
  je     L89
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  jmp    L66
L89:
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  jmp    L66
L250:
  addq   $0x1,-0x20(%rbp)
L66:
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5b,%al
  jne    L23
  mov    -0x20(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jb     L250
L23:
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x20(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jae    L358
  jmp    L191
L169:
  addq   $0x1,-0x18(%rbp)
L191:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L61
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  je     L61
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L355
L61:
  mov    -0x18(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jb     L169
L355:
  mov    -0x18(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L288
  subq   $0x1,-0x18(%rbp)
  jmp    L48
L100:
  subq   $0x1,-0x18(%rbp)
L48:
  mov    -0x18(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L100
L288:
  mov    -0x18(%rbp),%rax
  sub    -0x20(%rbp),%rax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L342
  mov    -0x18(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x18(%rbp),%rax
  sub    -0x20(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L358
L342:
  movl   $0xffffffff,-0x4c(%rbp)
L358:
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  jmp    L252
L19:
  addq   $0x1,-0x30(%rbp)
L252:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  jne    L267
  mov    -0x30(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jb     L19
L267:
  mov    -0x30(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  je     L303
  mov    -0x10(%rbp),%rax
  sub    -0x30(%rbp),%rax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x38(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  je     L246
  mov    -0x10(%rbp),%rax
  sub    -0x30(%rbp),%rax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    -0x10(%rbp),%rax
  sub    -0x30(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L303
L246:
  movl   $0xffffffff,-0x4c(%rbp)
L303:
  cmpl   $0x0,-0x4c(%rbp)
  je     L239
  cmpq   $0x0,-0x48(%rbp)
  je     L109
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movq   $0x0,-0x48(%rbp)
L109:
  cmpq   $0x0,-0x28(%rbp)
  je     L277
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movq   $0x0,-0x28(%rbp)
L277:
  cmpq   $0x0,-0x38(%rbp)
  je     L239
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movq   $0x0,-0x38(%rbp)
L239:
  mov    -0x60(%rbp),%rax
  mov    -0x48(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x68(%rbp),%rax
  mov    -0x28(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x70(%rbp),%rax
  mov    -0x38(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x4c(%rbp),%eax
  leave
  ret
```

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