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

```asm
<file_confirm_mountpoint>:
  endbr64
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x8,%rsp
  call   <eslib_file_path_check@plt>
  test   %rax,%rax
  jne    L6
  mov    %r12,%rdi
  call   <eslib_file_path_check@plt>
  test   %rax,%rax
  jne    L6
  mov    %r12,%rdi
  call   <eslib_file_exists@plt>
  mov    %eax,%ebx
  cmp    $0xffffffff,%eax
  je     L22
  mov    %rbp,%rdi
  call   <eslib_file_isdir@plt>
  cmp    $0x1,%eax
  je     L83
  cmp    $0xffffffff,%eax
  je     L22
  test   %ebx,%ebx
  jne    L110
  and    $0x10,%r13d
  je     L108
  mov    $0x1ed,%esi
  mov    %r12,%rdi
  call   <eslib_file_mkfile@plt>
  test   %rax,%rax
  jne    L126
L4:
  xor    %eax,%eax
L56:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L110:
  mov    %r12,%rdi
  call   <eslib_file_isdir@plt>
  cmp    $0x1,%eax
  je     L51
  test   %eax,%eax
  je     L4
L22:
  mov    %r12,%rdx
  mov    %rbp,%rsi
  lea    D0(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L6:
  mov    $0xffffffff,%eax
  jmp    L56
  nopl   0x0(%rax,%rax,1)
L83:
  test   %ebx,%ebx
  jne    L31
  and    $0x10,%r13d
  je     L108
  mov    $0x1ed,%esi
  mov    %r12,%rdi
  call   <eslib_file_mkdirpath@plt>
  test   %rax,%rax
  je     L4
  mov    %r12,%rsi
  lea    D39(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L56
  nopl   0x0(%rax)
L31:
  mov    %r12,%rdi
  call   <eslib_file_isdir@plt>
  cmp    $0x1,%eax
  je     L4
  mov    %r12,%rsi
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L56
L126:
  mov    %r12,%rsi
  lea    D51(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L56
L108:
  mov    %r12,%rsi
  lea    D19(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L56
L51:
  mov    %r12,%rsi
  lea    D37(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  or     $0xffffffff,%eax
  jmp    L56
```

tool_calls: name: read_data
arguments: data_label: D0
datatype: string
name: read_data
arguments: data_label: D39
datatype: string
name: read_data
arguments: data_label: D27
datatype: string
name: read_data
arguments: data_label: D51
datatype: string
name: read_data
arguments: data_label: D19
datatype: string
name: read_data
arguments: data_label: D37
datatype: string

tool: D0: create mountpoint(%s, %s) failed


tool: D39: mkdirpath(%s) failed


tool: D27: dest(%s) is not a directory.


tool: D51: mkfile(%s) failed


tool: D19: dest(%s) did not exist


tool: D37: dest(%s) should not be a directory


assistant: ```c
int file_confirm_mountpoint(char *src, char *dest, unsigned long esflags) {
  int r;
  int exists = 0;
  const mode_t mode = 0755;
  if (eslib_file_path_check(src) || eslib_file_path_check(dest))
    return -1;
  r = eslib_file_exists(dest);
  if (r == -1)
    goto err;
  exists = r;
  r = eslib_file_isdir(src);
  if (r == 1) {
    if (exists) {
      if (eslib_file_isdir(dest) != 1) {
        printf("dest(%s) is not a directory.\n", dest);
        return -1;
      }
    } else {
      if (esflags & 16) {
        if (eslib_file_mkdirpath(dest, mode)) {
          printf("mkdirpath(%s) failed\n", dest);
          return -1;
        }
      } else {
        printf("dest(%s) did not exist\n", dest);
        return -1;
      }
    }
    return 0;
  } else if (r == -1) {
    goto err;
  }
  if (exists) {
    r = eslib_file_isdir(dest);
    if (r == 1) {
      printf("dest(%s) should not be a directory\n", dest);
      return -1;
    }
    if (r == 0) {
      return 0;
    } else {
      goto err;
    }
  } else {
    if (esflags & 16) {
      if (eslib_file_mkfile(dest, mode)) {
        printf("mkfile(%s) failed\n", dest);
        return -1;
      }
    } else {
      printf("dest(%s) did not exist\n", dest);
      return -1;
    }
    return 0;
  }
err:
  printf("create mountpoint(%s, %s) failed\n", src, dest);
  return -1;
}
```