user: What is the c source code of the assembly code below:

```asm
<nodelist_common_string_appends_and_extends>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    (%rdi),%rbp
  mov    %rsi,0x8(%rsp)
  test   %rbp,%rbp
  je     L10
  mov    %rcx,%r13
  test   %rcx,%rcx
  je     L10
  test   %r8,%r8
  mov    %r8,%r14
  lea    D8(%rip),%rax
  mov    %rdi,%r12
  cmove  %rax,%r14
  cmpb   $0x0,0x0(%rbp)
  mov    %rdx,%rsi
  je     L70
  mov    %r14,%rdi
  mov    %rdx,0x10(%rsp)
  call   <strlen@plt>
  mov    0x10(%rsp),%rsi
  mov    %rax,%rdx
L25:
  mov    %rbp,%rdi
  mov    %rsi,0x18(%rsp)
  mov    %rdx,0x10(%rsp)
  call   <strlen@plt>
  mov    %r13,%rdi
  mov    %rax,%rbx
  mov    %rax,0x20(%rsp)
  call   <strlen@plt>
  mov    0x10(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  mov    %rax,%r8
  lea    (%rbx,%rdx,1),%r10
  lea    (%r10,%rax,1),%r15
  mov    0x8(%rsp),%rax
  mov    (%rax),%rbx
  cmp    %r15,%rbx
  jb     L84
L31:
  mov    0x20(%rsp),%rdi
  mov    %r14,%rsi
  mov    %r8,0x10(%rsp)
  mov    %r10,0x8(%rsp)
  add    %rbp,%rdi
  call   <strncpy@plt>
  mov    0x10(%rsp),%rdx
  mov    0x8(%rsp),%rdi
  mov    %r13,%rsi
  add    (%r12),%rdi
  call   <strncpy@plt>
  mov    (%r12),%rax
  movb   $0x0,(%rax,%r15,1)
  xor    %eax,%eax
L72:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L84:
  add    %rsi,%rbx
  cmp    %rbx,%r15
  ja     L84
  mov    %rbp,%rdi
  lea    0x1(%rbx),%rsi
  mov    %r8,0x28(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %r10,0x10(%rsp)
  call   <realloc@plt>
  mov    %rax,%rbp
  mov    %rax,(%r12)
  mov    0x8(%rsp),%rax
  test   %rbp,%rbp
  je     L58
  mov    0x10(%rsp),%r10
  mov    0x18(%rsp),%rdx
  mov    %rbx,(%rax)
  mov    0x28(%rsp),%r8
  jmp    L31
  nopl   0x0(%rax,%rax,1)
L70:
  xor    %edx,%edx
  lea    D12(%rip),%r14
  jmp    L25
  cs nopw 0x0(%rax,%rax,1)
L58:
  movq   $0x0,(%rax)
  add    $0x38,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L10:
  mov    $0xffffffff,%eax
  jmp    L72
```

tool_calls: name: retrieve_data
arguments: data_label: D8
type_infered: string
name: retrieve_data
arguments: data_label: D12
type_infered: string

tool: D8:  

tool: 

assistant: ```c
int nodelist_common_string_appends_and_extends(char **p_io_string, size_t *p_current_length, size_t inc_length, char *string2append, char *separator) {
  int fstatus = -1;
  size_t new_output_length;
  size_t new_string_length;
  size_t output_string_length;
  size_t separator_length;
  size_t append_length;
  char *default_separator = " ";
  char *local_separator;
  if (*p_io_string != NULL && string2append != NULL) {
    if (separator != NULL)
      local_separator = separator;
    else
      local_separator = default_separator;
    if (strlen(*p_io_string) == 0)
      local_separator = "";
    output_string_length = strlen(*p_io_string);
    separator_length = strlen(local_separator);
    append_length = strlen(string2append);
    new_string_length = output_string_length + separator_length + append_length;
    if (new_string_length > *p_current_length) {
      new_output_length = *p_current_length;
      while (new_string_length > new_output_length)
        new_output_length += inc_length;
      *p_io_string = (char *)realloc(*p_io_string, (new_output_length + 1) * sizeof(char));
      if (*p_io_string != NULL)
        *p_current_length = new_output_length;
      else
        *p_current_length = 0;
    }
    if (*p_io_string != NULL) {
      strncpy(*p_io_string + output_string_length, local_separator, separator_length);
      strncpy(*p_io_string + output_string_length + separator_length, string2append, append_length);
      *(*p_io_string + output_string_length + separator_length + append_length) = '\0';
      fstatus = 0;
    }
  }
  return fstatus;
}
```