user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<file_confirm_mountpoint>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbp
  mov    %rdx,%r13
  call   <eslib_file_path_check@plt>
  test   %rax,%rax
  jne    L185
  mov    %rbp,%rdi
  call   <eslib_file_path_check@plt>
  test   %rax,%rax
  jne    L7
  mov    %rbp,%rdi
  call   <eslib_file_exists@plt>
  mov    %eax,%ebx
  cmp    $0xffffffff,%eax
  je     L51
  mov    %r12,%rdi
  call   <eslib_file_isdir@plt>
  cmp    $0x1,%eax
  je     L148
  cmp    $0xffffffff,%eax
  je     L51
  test   %ebx,%ebx
  jne    L192
  test   $0x10,%r13b
  je     L9
  mov    $0x1ed,%esi
  mov    %rbp,%rdi
  call   <eslib_file_mkfile@plt>
  test   %rax,%rax
  jne    L197
L184:
  mov    %ebx,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L148:
  test   %ebx,%ebx
  jne    L109
  test   $0x10,%r13b
  je     L110
  mov    $0x1ed,%esi
  mov    %rbp,%rdi
  call   <eslib_file_mkdirpath@plt>
  test   %rax,%rax
  je     L184
  mov    %rbp,%rsi
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L184
L109:
  mov    %rbp,%rdi
  call   <eslib_file_isdir@plt>
  cmp    $0x1,%eax
  jne    L193
  mov    $0x0,%ebx
  jmp    L184
L193:
  mov    %rbp,%rsi
  lea    D65(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L184
L110:
  mov    %rbp,%rsi
  lea    D20(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L184
L192:
  mov    %rbp,%rdi
  call   <eslib_file_isdir@plt>
  mov    %eax,%ebx
  cmp    $0x1,%eax
  je     L15
  test   %eax,%eax
  je     L184
L51:
  mov    %rbp,%rdx
  mov    %r12,%rsi
  lea    D6(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L184
L15:
  mov    %rbp,%rsi
  lea    D1(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L184
L197:
  mov    %rbp,%rsi
  lea    D11(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L184
L9:
  mov    %rbp,%rsi
  lea    D20(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L184
L185:
  mov    $0xffffffff,%ebx
  jmp    L184
L7:
  mov    $0xffffffff,%ebx
  jmp    L184
```

tool_calls: name: retrieve_data
arguments: data_tag: D55
datatype: string
name: retrieve_data
arguments: data_tag: D65
datatype: string
name: retrieve_data
arguments: data_tag: D20
datatype: string
name: retrieve_data
arguments: data_tag: D6
datatype: string
name: retrieve_data
arguments: data_tag: D1
datatype: string
name: retrieve_data
arguments: data_tag: D11
datatype: string

tool: D55: mkdirpath(%s) failed


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


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


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


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


tool: D11: mkfile(%s) failed


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