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

```asm
<mc_path_mkdir>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x250,%rsp
  mov    %rdi,-0x248(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x228(%rbp)
  movw   $0x5c2f,-0x213(%rbp)
  movb   $0x0,-0x211(%rbp)
  movq   $0x0,-0x210(%rbp)
  movq   $0x0,-0x208(%rbp)
  movq   $0x0,-0x200(%rbp)
  movq   $0x0,-0x1f8(%rbp)
  movq   $0x0,-0x1f0(%rbp)
  movq   $0x0,-0x1e8(%rbp)
  movq   $0x0,-0x1e0(%rbp)
  movq   $0x0,-0x1d8(%rbp)
  movq   $0x0,-0x1d0(%rbp)
  movq   $0x0,-0x1c8(%rbp)
  movq   $0x0,-0x1c0(%rbp)
  movq   $0x0,-0x1b8(%rbp)
  movq   $0x0,-0x1b0(%rbp)
  movq   $0x0,-0x1a8(%rbp)
  movq   $0x0,-0x1a0(%rbp)
  movq   $0x0,-0x198(%rbp)
  movq   $0x0,-0x190(%rbp)
  movq   $0x0,-0x188(%rbp)
  movq   $0x0,-0x180(%rbp)
  movq   $0x0,-0x178(%rbp)
  movq   $0x0,-0x170(%rbp)
  movq   $0x0,-0x168(%rbp)
  movq   $0x0,-0x160(%rbp)
  movq   $0x0,-0x158(%rbp)
  movq   $0x0,-0x150(%rbp)
  movq   $0x0,-0x148(%rbp)
  movq   $0x0,-0x140(%rbp)
  movq   $0x0,-0x138(%rbp)
  movq   $0x0,-0x130(%rbp)
  movq   $0x0,-0x128(%rbp)
  movq   $0x0,-0x120(%rbp)
  movq   $0x0,-0x118(%rbp)
  movq   $0x0,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movq   $0x0,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movq   $0x0,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movq   $0x0,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  movq   $0x0,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movq   $0x0,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movq   $0x0,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movq   $0x0,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movq   $0x0,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movq   $0x0,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x0,-0x230(%rbp)
  mov    -0x248(%rbp),%rax
  mov    %rax,%rdi
  call   <mc_path_valid@plt>
  test   %eax,%eax
  jne    L6
  mov    $0xffffffff,%eax
  jmp    L137
L6:
  mov    -0x248(%rbp),%rcx
  lea    -0x210(%rbp),%rax
  mov    $0x100,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  movzbl -0x210(%rbp),%eax
  cmp    $0x2f,%al
  je     L17
  movzbl -0x210(%rbp),%eax
  cmp    $0x5c,%al
  jne    L147
L17:
  movzbl -0x210(%rbp),%eax
  mov    %al,-0x110(%rbp)
L147:
  lea    -0x228(%rbp),%rdx
  lea    -0x213(%rbp),%rcx
  lea    -0x210(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strtok_r@plt>
  mov    %rax,-0x220(%rbp)
  jmp    L86
L32:
  movl   $0x0,-0x22c(%rbp)
  mov    -0x220(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  cmpl   $0x0,-0x22c(%rbp)
  jne    L25
  lea    -0x110(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <access@plt>
  test   %rax,%rax
  je     L122
  lea    -0x110(%rbp),%rax
  mov    $0x1ed,%esi
  mov    %rax,%rdi
  call   <mkdir@plt>
  test   %rax,%rax
  je     L114
  mov    $0xffffffff,%eax
  jmp    L137
L114:
  lea    -0x110(%rbp),%rax
  mov    $0x1ed,%esi
  mov    %rax,%rdi
  call   <chmod@plt>
  jmp    L25
L122:
  lea    -0x234(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <lstat@plt>
  test   %rax,%rax
  je     L123
  mov    $0xffffffff,%eax
  jmp    L137
L123:
  mov    -0x234(%rbp),%eax
  mov    %eax,%edi
  call   <S_ISDIR@plt>
  test   %eax,%eax
  jne    L25
  mov    $0xffffffff,%eax
  jmp    L137
L25:
  lea    -0x110(%rbp),%rax
  lea    D8(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  addl   $0x1,-0x230(%rbp)
  lea    -0x228(%rbp),%rdx
  lea    -0x213(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <strtok_r@plt>
  mov    %rax,-0x220(%rbp)
L86:
  cmpq   $0x0,-0x220(%rbp)
  jne    L32
  mov    $0x0,%eax
L137:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L84
  call   <__stack_chk_fail@plt>
L84:
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D8
type: string

tool: D8: /

assistant: ```c
int mc_path_mkdir(const char *path) {
  char *token;
  char *last_buf = NULL;
  char seps[] = "/\\";
  char src[256] = {0};
  char dir[256] = {0};
  int depth = 0;
  if (!mc_path_valid(path)) {
    return -1;
  }
  strncpy(src, path, sizeof(src));
  if ('/' == src[0] || '\\' == src[0]) {
    dir[0] = src[0];
  }
  token = strtok_r(src, seps, &last_buf);
  while (token) {
    int is_driver = 0;
    strcat(dir, token);
    if (!is_driver) {
      if (0 != access(dir, 0)) {
        if (0 != mkdir(dir, 0755)) {
          return -1;
        }
        chmod(dir, (7 * 8 * 8) + (5 * 8) + 5);
      } else {
        struct stat st;
        if (0 != lstat(dir, &st)) {
          return -1;
        }
        if (!S_ISDIR(st.st_mode)) {
          return -1;
        }
      }
    }
    strcat(dir, "/");
    depth += 1;
    token = strtok_r(0, seps, &last_buf);
  }
  return 0;
}
```