user: What would the C source look like for the assembly code provided here?

```asm
<createPartitionNodes>:
  endbr64
  push   %r15
  mov    $0xa,%edi
  lea    D67(%rip),%rsi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <logMessage@plt>
  lea    D88(%rip),%rdi
  call   <opendir@plt>
  test   %rax,%rax
  je     L82
  movl   $0x0,0x4(%rsp)
  mov    %rax,%r12
  lea    D87(%rip),%r15
  nopw   0x0(%rax,%rax,1)
L14:
  mov    %r12,%rdi
  call   <readdir@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L132
L75:
  mov    (%rbx),%edi
  mov    %r15,%rsi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L14
  mov    (%rbx),%edi
  lea    D76(%rip),%rsi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L14
  mov    (%rbx),%edx
  lea    D8(%rip),%r14
  mov    $0xa,%edi
  xor    %eax,%eax
  mov    %r14,%rsi
  lea    0x18(%rsp),%rbp
  call   <logMessage@plt>
  mov    (%rbx),%edx
  xor    %eax,%eax
  lea    D102(%rip),%rsi
  mov    %rbp,%rdi
  call   <asprintf@plt>
  test   %rax,%rax
  jle    L152
  mov    (%rbx),%esi
  mov    0x18(%rsp),%rdi
  call   <createDevNode@plt>
  mov    0x18(%rsp),%rdi
  cmp    $0x1,%eax
  adcl   $0x0,0x4(%rsp)
  call   <free@plt>
  mov    (%rbx),%edx
  xor    %eax,%eax
  lea    D16(%rip),%rsi
  mov    %rbp,%rdi
  call   <asprintf@plt>
  test   %rax,%rax
  jle    L172
  mov    0x18(%rsp),%rdi
  call   <opendir@plt>
  mov    %rax,%r13
  lea    0x20(%rsp),%rax
  mov    %rax,0x8(%rsp)
  test   %r13,%r13
  je     L17
  nopw   0x0(%rax,%rax,1)
L150:
  mov    %r13,%rdi
  call   <readdir@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L20
L61:
  mov    (%rbx),%edi
  call   <strlen@plt>
  mov    (%rbx),%esi
  mov    0x0(%rbp),%edi
  mov    %eax,%edx
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L150
  mov    0x0(%rbp),%edx
  mov    %r14,%rsi
  mov    $0xa,%edi
  call   <logMessage@plt>
  mov    0x0(%rbp),%ecx
  mov    (%rbx),%edx
  xor    %eax,%eax
  mov    0x8(%rsp),%rdi
  lea    D47(%rip),%rsi
  call   <asprintf@plt>
  test   %rax,%rax
  jle    L41
  mov    0x0(%rbp),%esi
  mov    0x20(%rsp),%rdi
  call   <createDevNode@plt>
  mov    0x20(%rsp),%rdi
  cmp    $0x1,%eax
  adcl   $0x0,0x4(%rsp)
  call   <free@plt>
  mov    %r13,%rdi
  call   <readdir@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  jne    L61
L20:
  mov    %r13,%rdi
  call   <closedir@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <readdir@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  jne    L75
  xchg   %ax,%ax
L132:
  mov    %r12,%rdi
  call   <closedir@plt>
L46:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L136
  mov    0x4(%rsp),%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L41:
  mov    0x0(%rbp),%edx
  lea    D119(%rip),%rsi
  mov    $0x28,%edi
  xor    %eax,%eax
  call   <logMessage@plt>
  jmp    L150
  nopl   0x0(%rax,%rax,1)
L152:
  mov    (%rbx),%edx
  lea    D119(%rip),%rsi
  mov    $0x28,%edi
  xor    %eax,%eax
  call   <logMessage@plt>
  jmp    L14
  nopw   0x0(%rax,%rax,1)
L172:
  mov    (%rbx),%edx
  lea    D5(%rip),%rsi
  mov    $0x28,%edi
  xor    %eax,%eax
  call   <logMessage@plt>
  jmp    L14
  nopw   0x0(%rax,%rax,1)
L17:
  mov    (%rbx),%edx
  lea    D12(%rip),%rsi
  mov    $0x28,%edi
  xor    %eax,%eax
  call   <logMessage@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  jmp    L14
L82:
  lea    D77(%rip),%rsi
  mov    $0x28,%edi
  xor    %eax,%eax
  call   <logMessage@plt>
  movl   $0xffffffff,0x4(%rsp)
  jmp    L46
L136:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D67
data_type: string
name: extract_symbolic_data
arguments: data_label: D88
data_type: string
name: extract_symbolic_data
arguments: data_label: D87
data_type: string
name: extract_symbolic_data
arguments: data_label: D76
data_type: string
name: extract_symbolic_data
arguments: data_label: D8
data_type: string
name: extract_symbolic_data
arguments: data_label: D102
data_type: string
name: extract_symbolic_data
arguments: data_label: D16
data_type: string
name: extract_symbolic_data
arguments: data_label: D47
data_type: string
name: extract_symbolic_data
arguments: data_label: D119
data_type: string
name: extract_symbolic_data
arguments: data_label: D5
data_type: string
name: extract_symbolic_data
arguments: data_label: D12
data_type: string
name: extract_symbolic_data
arguments: data_label: D77
data_type: string

tool: D67: Creating device nodes...

tool: D88: /sys/block

tool: D87: ..

tool: D76: .

tool: D8: Trying to create device nodes for %s.

tool: D102: /sys/block/%s/dev

tool: D16: /sys/block/%s

tool: D47: /sys/block/%s/%s/dev

tool: D119: Cannot allocate memory for device info (%s).

tool: D5: Cannot allocate memory for device subdirectory (%s).

tool: D12: Cannot read /sys/block/%s. Partition nodes will not be created and driver discs may not work

tool: D77: Cannot read /sys/block. Device nodes will not be created and driver discs may not work

assistant: ```c
int createPartitionNodes() {
  DIR *d, *subd;
  int numfound = 0;
  struct dirent *dirp;
  struct dirent *subdirp;
  logMessage(10, "Creating device nodes...");
  d = opendir("/sys/block");
  if (!d) {
    logMessage(40, "Cannot read /sys/block. Device nodes will not be created and driver discs may not work");
    return -1;
  }
  while ((dirp = readdir(d)) != NULL) {
    char *dname;
    if (!strcmp(dirp->d_name, "..") || !strcmp(dirp->d_name, "."))
      continue;
    logMessage(10, "Trying to create device nodes for %s.", dirp->d_name);
    if (asprintf(&dname, "/sys/block/%s/dev", dirp->d_name) <= 0) {
      logMessage(40, "Cannot allocate memory for device info (%s).", dirp->d_name);
      continue;
    }
    if (!createDevNode(dname, dirp->d_name))
      numfound++;
    free(dname);
    if (asprintf(&dname, "/sys/block/%s", dirp->d_name) <= 0) {
      logMessage(40, "Cannot allocate memory for device subdirectory (%s).", dirp->d_name);
      continue;
    }
    subd = opendir(dname);
    if (!subd) {
      logMessage(40, "Cannot read /sys/block/%s. Partition nodes will not be created and driver discs may not work", dirp->d_name);
      free(dname);
      continue;
    }
    while ((subdirp = readdir(subd)) != NULL) {
      char *subdirname;
      if (strncmp(subdirp->d_name, dirp->d_name, strlen(dirp->d_name))) {
        continue;
      }
      logMessage(10, "Trying to create device nodes for %s.", subdirp->d_name);
      if (asprintf(&subdirname, "/sys/block/%s/%s/dev", dirp->d_name, subdirp->d_name) <= 0) {
        logMessage(40, "Cannot allocate memory for device info (%s).", subdirp->d_name);
        continue;
      }
      if (!createDevNode(subdirname, subdirp->d_name))
        numfound++;
      free(subdirname);
    }
    closedir(subd);
    free(dname);
  }
  closedir(d);
  return numfound;
}
```