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

```asm
<UTIL_createFileList>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,%r12
  mov    %esi,%ebx
  mov    %rdx,0x10(%rsp)
  mov    %rcx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  mov    $0x2000,%edi
  call   <malloc@plt>
  mov    %rax,0x28(%rsp)
  test   %rax,%rax
  je     L130
  movq   $0x0,0x20(%rsp)
  test   %ebx,%ebx
  je     L122
  mov    %r12,%rbp
  lea    -0x1(%rbx),%eax
  lea    0x8(%r12,%rax,8),%r15
  mov    $0x2000,%ebx
  mov    $0x0,%r13d
  lea    0x30(%rsp),%rax
  mov    %rax,0x8(%rsp)
  jmp    L188
L12:
  mov    %rbx,%rsi
  mov    0x28(%rsp),%rdi
  call   <UTIL_realloc@plt>
  mov    %rax,0x28(%rsp)
  test   %rax,%rax
  je     L209
L141:
  mov    %r12,%rax
  add    0x20(%rsp),%rax
  cmp    %rbx,%rax
  setb   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    0x20(%rsp),%rdi
  add    0x28(%rsp),%rdi
  mov    %r12,%rdx
  mov    (%r14),%rsi
  call   <memcpy@plt>
  add    %r12,0x20(%rsp)
  add    $0x1,%r13d
L176:
  add    $0x8,%rbp
  cmp    %r15,%rbp
  je     L66
L188:
  mov    %rbp,%r14
  mov    0x0(%rbp),%rdi
  call   <UTIL_isDirectory@plt>
  test   %eax,%eax
  jne    L170
  mov    0x0(%rbp),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%r12d
  movslq %r12d,%r12
  mov    %r12,%rax
  add    0x20(%rsp),%rax
  cmp    %rbx,%rax
  jb     L141
L42:
  add    $0x2000,%rbx
  cmp    %rbx,%rax
  jae    L42
  jmp    L12
L170:
  add    0x28(%rsp),%rbx
  mov    %rbx,0x30(%rsp)
  lea    0x20(%rsp),%rdx
  lea    0x28(%rsp),%rsi
  mov    0x8(%rsp),%rcx
  mov    0x0(%rbp),%rdi
  call   <UTIL_prepareFileList@plt>
  add    %eax,%r13d
  mov    0x28(%rsp),%r12
  test   %r12,%r12
  je     L117
  cmp    0x30(%rsp),%r12
  setb   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    0x30(%rsp),%rbx
  sub    0x28(%rsp),%rbx
  jmp    L176
L66:
  test   %r13d,%r13d
  je     L122
  mov    %r13d,%eax
  lea    0x8(,%rax,8),%rdi
  call   <malloc@plt>
  mov    %rax,%r15
  mov    %rax,%r12
  test   %rax,%rax
  je     L39
  movq   $0x0,0x20(%rsp)
  mov    %rax,%rbp
  mov    %r13d,%eax
  lea    (%r15,%rax,8),%r14
L63:
  mov    0x20(%rsp),%rdi
  add    0x28(%rsp),%rdi
  mov    %rdi,0x0(%rbp)
  call   <strlen@plt>
  add    $0x1,%eax
  cltq
  add    0x20(%rsp),%rax
  mov    %rax,0x20(%rsp)
  add    $0x8,%rbp
  cmp    %rbp,%r14
  jne    L63
  cmp    %rbx,%rax
  ja     L0
  mov    0x28(%rsp),%rax
  mov    0x10(%rsp),%rcx
  mov    %rax,(%rcx)
  mov    0x18(%rsp),%rax
  mov    %r13d,(%rax)
L117:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L197
  mov    %r12,%rax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L122:
  mov    0x28(%rsp),%rdi
  call   <free@plt>
  mov    $0x0,%r12d
  jmp    L117
L39:
  mov    0x28(%rsp),%rdi
  call   <free@plt>
  mov    $0x0,%r12d
  jmp    L117
L0:
  mov    0x28(%rsp),%rdi
  call   <free@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    $0x0,%r12d
  jmp    L117
L130:
  mov    $0x0,%r12d
  jmp    L117
L209:
  mov    $0x0,%r12d
  jmp    L117
L197:
  call   <__stack_chk_fail@plt>
```

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