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

```asm
<UTIL_createFileList>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x2000,%edi
  call   <malloc@plt>
  mov    %rax,-0x30(%rbp)
  movq   $0x2000,-0x20(%rbp)
  mov    -0x30(%rbp),%rax
  test   %rax,%rax
  jne    L71
  mov    $0x0,%eax
  jmp    L74
L71:
  movl   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movl   $0x0,-0x3c(%rbp)
  jmp    L25
L77:
  mov    -0x40(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <UTIL_isDirectory@plt>
  test   %eax,%eax
  jne    L50
  mov    -0x40(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  cltq
  mov    %rax,-0x10(%rbp)
  mov    -0x38(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x20(%rbp)
  ja     L120
  jmp    L118
L166:
  addq   $0x2000,-0x20(%rbp)
L118:
  mov    -0x38(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x20(%rbp)
  jbe    L166
  mov    -0x30(%rbp),%rax
  mov    -0x20(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <UTIL_realloc@plt>
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  test   %rax,%rax
  jne    L120
  mov    $0x0,%eax
  jmp    L74
L120:
  mov    -0x38(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x20(%rbp)
  seta   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x40(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x30(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  add    %rdx,%rcx
  mov    -0x10(%rbp),%rdx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  mov    -0x38(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  addl   $0x1,-0x3c(%rbp)
  jmp    L201
L50:
  mov    -0x30(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x40(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x28(%rbp),%rcx
  lea    -0x38(%rbp),%rdx
  lea    -0x30(%rbp),%rsi
  mov    %rax,%rdi
  call   <UTIL_prepareFileList@plt>
  add    %eax,-0x3c(%rbp)
  mov    -0x30(%rbp),%rax
  test   %rax,%rax
  jne    L96
  mov    $0x0,%eax
  jmp    L74
L96:
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  cmp    %rax,%rdx
  seta   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x28(%rbp),%rax
  mov    -0x30(%rbp),%rdx
  sub    %rdx,%rax
  mov    %rax,-0x20(%rbp)
L201:
  addl   $0x1,-0x40(%rbp)
L25:
  mov    -0x40(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jb     L77
  cmpl   $0x0,-0x3c(%rbp)
  jne    L155
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L74
L155:
  mov    -0x3c(%rbp),%eax
  add    $0x1,%rax
  shl    $0x3,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L172
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L74
L172:
  movl   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  jmp    L2
L153:
  mov    -0x30(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  mov    -0x40(%rbp),%eax
  lea    0x0(,%rax,8),%rsi
  mov    -0x18(%rbp),%rax
  add    %rsi,%rax
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  mov    -0x40(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  addl   $0x1,-0x40(%rbp)
L2:
  mov    -0x40(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jb     L153
  mov    -0x38(%rbp),%rax
  cmp    %rax,-0x20(%rbp)
  jae    L121
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L74
L121:
  mov    -0x30(%rbp),%rdx
  mov    -0x58(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x60(%rbp),%rax
  mov    -0x3c(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%rax
L74:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L70
  call   <__stack_chk_fail@plt>
L70:
  leave
  ret
```

assistant: ```c
__attribute__((unused)) const char **UTIL_createFileList(const char **inputNames, unsigned inputNamesNb, char **allocatedBuffer, unsigned *allocatedNamesNb) {
  size_t pos;
  unsigned i, nbFiles;
  char *buf = (char *)malloc((8 * 1024));
  size_t bufSize = (8 * 1024);
  const char **fileTable;
  if (!buf)
    return NULL;
  for (i = 0, pos = 0, nbFiles = 0; i < inputNamesNb; i++) {
    if (!UTIL_isDirectory(inputNames[i])) {
      size_t const len = strlen(inputNames[i]) + 1;
      if (pos + len >= bufSize) {
        while (pos + len >= bufSize)
          bufSize += (8 * 1024);
        buf = (char *)UTIL_realloc(buf, bufSize);
        if (!buf)
          return NULL;
      }
      assert(pos + len < bufSize);
      memcpy(buf + pos, inputNames[i], len);
      pos += len;
      nbFiles++;
    } else {
      char *bufend = buf + bufSize;
      nbFiles += (unsigned)UTIL_prepareFileList(inputNames[i], &buf, &pos, &bufend);
      if (buf == NULL)
        return NULL;
      assert(bufend > buf);
      bufSize = (size_t)(bufend - buf);
    }
  }
  if (nbFiles == 0) {
    free(buf);
    return NULL;
  }
  fileTable = (const char **)malloc(((size_t)nbFiles + 1) * sizeof(const char *));
  if (!fileTable) {
    free(buf);
    return NULL;
  }
  for (i = 0, pos = 0; i < nbFiles; i++) {
    fileTable[i] = buf + pos;
    pos += strlen(fileTable[i]) + 1;
  }
  if (pos > bufSize) {
    free(buf);
    free((void *)fileTable);
    return NULL;
  }
  *allocatedBuffer = buf;
  *allocatedNamesNb = nbFiles;
  return fileTable;
}
```