user: 请从给定的汇编指令推导出C源代码:

```asm
<mc_path_mkdir>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x238,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x228(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x10(%rsp)
  movw   $0x5c2f,0x1d(%rsp)
  movb   $0x0,0x1f(%rsp)
  movq   $0x0,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  movq   $0x0,0x40(%rsp)
  movq   $0x0,0x48(%rsp)
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x58(%rsp)
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x68(%rsp)
  movq   $0x0,0x70(%rsp)
  movq   $0x0,0x78(%rsp)
  movq   $0x0,0x80(%rsp)
  movq   $0x0,0x88(%rsp)
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0x98(%rsp)
  movq   $0x0,0xa0(%rsp)
  movq   $0x0,0xa8(%rsp)
  movq   $0x0,0xb0(%rsp)
  movq   $0x0,0xb8(%rsp)
  movq   $0x0,0xc0(%rsp)
  movq   $0x0,0xc8(%rsp)
  movq   $0x0,0xd0(%rsp)
  movq   $0x0,0xd8(%rsp)
  movq   $0x0,0xe0(%rsp)
  movq   $0x0,0xe8(%rsp)
  movq   $0x0,0xf0(%rsp)
  movq   $0x0,0xf8(%rsp)
  movq   $0x0,0x100(%rsp)
  movq   $0x0,0x108(%rsp)
  movq   $0x0,0x110(%rsp)
  movq   $0x0,0x118(%rsp)
  movq   $0x0,0x120(%rsp)
  movq   $0x0,0x128(%rsp)
  movq   $0x0,0x130(%rsp)
  movq   $0x0,0x138(%rsp)
  movq   $0x0,0x140(%rsp)
  movq   $0x0,0x148(%rsp)
  movq   $0x0,0x150(%rsp)
  movq   $0x0,0x158(%rsp)
  movq   $0x0,0x160(%rsp)
  movq   $0x0,0x168(%rsp)
  movq   $0x0,0x170(%rsp)
  movq   $0x0,0x178(%rsp)
  movq   $0x0,0x180(%rsp)
  movq   $0x0,0x188(%rsp)
  movq   $0x0,0x190(%rsp)
  movq   $0x0,0x198(%rsp)
  movq   $0x0,0x1a0(%rsp)
  movq   $0x0,0x1a8(%rsp)
  movq   $0x0,0x1b0(%rsp)
  movq   $0x0,0x1b8(%rsp)
  movq   $0x0,0x1c0(%rsp)
  movq   $0x0,0x1c8(%rsp)
  movq   $0x0,0x1d0(%rsp)
  movq   $0x0,0x1d8(%rsp)
  movq   $0x0,0x1e0(%rsp)
  movq   $0x0,0x1e8(%rsp)
  movq   $0x0,0x1f0(%rsp)
  movq   $0x0,0x1f8(%rsp)
  movq   $0x0,0x200(%rsp)
  movq   $0x0,0x208(%rsp)
  movq   $0x0,0x210(%rsp)
  movq   $0x0,0x218(%rsp)
  call   <mc_path_valid@plt>
  test   %eax,%eax
  je     L6
  lea    0x20(%rsp),%rdi
  mov    $0x100,%edx
  mov    %rbx,%rsi
  call   <strncpy@plt>
  movzbl 0x20(%rsp),%eax
  cmp    $0x2f,%al
  je     L5
  cmp    $0x5c,%al
  je     L5
L122:
  lea    0x10(%rsp),%rdx
  lea    0x1d(%rsp),%rsi
  lea    0x20(%rsp),%rdi
  call   <strtok_r@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  je     L94
  lea    D7(%rip),%rbp
  jmp    L84
L5:
  mov    %al,0x120(%rsp)
  jmp    L122
L3:
  lea    0xc(%rsp),%rsi
  lea    0x120(%rsp),%rdi
  call   <lstat@plt>
  test   %rax,%rax
  jne    L79
  mov    0xc(%rsp),%edi
  call   <S_ISDIR@plt>
  test   %eax,%eax
  je     L79
L18:
  lea    0x120(%rsp),%rdi
  mov    %rbp,%rsi
  call   <strcat@plt>
  lea    0x10(%rsp),%rdx
  lea    0x1d(%rsp),%rsi
  mov    $0x0,%edi
  call   <strtok_r@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  je     L73
L84:
  lea    0x120(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strcat@plt>
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <access@plt>
  test   %rax,%rax
  je     L3
  mov    %rbx,%rdi
  mov    $0x1ed,%esi
  call   <mkdir@plt>
  test   %rax,%rax
  jne    L9
  mov    %rbx,%rdi
  mov    $0x1ed,%esi
  call   <chmod@plt>
  jmp    L18
L79:
  mov    $0xffffffff,%eax
L108:
  mov    0x228(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L39
  add    $0x238,%rsp
  pop    %rbx
  pop    %rbp
  ret
L73:
  mov    $0x0,%eax
  jmp    L108
L6:
  mov    $0xffffffff,%eax
  jmp    L108
L94:
  mov    $0x0,%eax
  jmp    L108
L9:
  mov    $0xffffffff,%eax
  jmp    L108
L39:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D7
type: string

tool: D7: /

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