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

```asm
<_CompressPath>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x228,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x218(%rsp)
  xor    %eax,%eax
  movzbl (%rdi),%eax
  test   %al,%al
  je     L15
  mov    $0x1,%edx
  lea    0x10(%rsp),%r12
  nopl   0x0(%rax)
L60:
  mov    %rdi,-0x8(%r12,%rdx,8)
  mov    %edx,%ebp
  jmp    L21
  nopl   0x0(%rax)
L128:
  movzbl 0x1(%rdi),%eax
  add    $0x1,%rdi
  test   %al,%al
  je     L102
L21:
  cmp    $0x2f,%al
  jne    L128
L67:
  movzbl 0x1(%rdi),%eax
  add    $0x1,%rdi
L102:
  cmp    $0x2f,%al
  je     L67
  test   %al,%al
  je     L165
  add    $0x1,%rdx
  cmp    $0x40,%rdx
  jne    L60
  mov    %rdi,0x208(%rsp)
  mov    $0x3f,%ebp
  jmp    L213
L15:
  mov    0x218(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L134
  add    $0x228,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L165:
  movslq %ebp,%rax
  mov    %rdi,0x10(%rsp,%rax,8)
  cmp    $0x1,%ebp
  je     L15
L213:
  mov    $0x1,%ebx
  lea    D13(%rip),%r14
  jmp    L147
  nopl   (%rax)
L42:
  mov    %r15d,%ebx
L186:
  cmp    %ebp,%ebx
  jge    L15
L147:
  movslq %ebx,%r13
  lea    0x1(%rbx),%r15d
  mov    0x10(%rsp,%r13,8),%rdi
  cmpb   $0x2e,(%rdi)
  jne    L42
  movzbl 0x1(%rdi),%eax
  cmp    $0x2f,%al
  je     L12
  test   %al,%al
  je     L12
  cmp    $0x2e,%al
  jne    L42
  movzbl 0x2(%rdi),%eax
  cmp    $0x2f,%al
  je     L79
  test   %al,%al
  jne    L42
L79:
  lea    -0x1(%rbx),%eax
  mov    $0x2,%edx
  mov    %r14,%rsi
  movslq %eax,%r9
  mov    %eax,0x4(%rsp)
  mov    0x10(%rsp,%r9,8),%rdi
  mov    %r9,0x8(%rsp)
  call   <strncmp@plt>
  mov    0x8(%rsp),%r9
  test   %rax,%rax
  je     L42
  mov    0x10(%rsp,%r9,8),%rdi
  mov    $0x3,%edx
  mov    %r9,0x8(%rsp)
  lea    D7(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L42
  movslq %r15d,%rcx
  mov    0x8(%rsp),%r9
  mov    0x10(%rsp,%rcx,8),%rdx
  mov    0x10(%rsp,%r9,8),%rdi
  mov    %edx,%r15d
  sub    %edi,%r15d
  mov    %r15d,%esi
  call   <_ReduceString@plt>
  mov    %ebp,%esi
  lea    (%r12,%r13,8),%rdi
  mov    $0x2,%ecx
  sub    %ebx,%esi
  mov    %r15d,%edx
  sub    $0x2,%ebp
  call   <_ReduceArrayString@plt>
  mov    0x4(%rsp),%ebx
  jmp    L186
  nopl   0x0(%rax)
L12:
  movslq %r15d,%rcx
  mov    0x10(%rsp,%rcx,8),%r15
  sub    %edi,%r15d
  mov    %r15d,%esi
  call   <_ReduceString@plt>
  mov    %ebp,%esi
  lea    (%r12,%r13,8),%rdi
  mov    $0x1,%ecx
  sub    %ebx,%esi
  mov    %r15d,%edx
  sub    $0x1,%ebp
  call   <_ReduceArrayString@plt>
  jmp    L186
L134:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D13
data_type: string
name: retrieve_data
arguments: tag: D7
data_type: string

tool: D13: ./

tool: D7: ../

assistant: ```c
void _CompressPath(char *path) {
  int i;
  char *pStr = path;
  char *pFolder[64];
  int found = 0;
  while (*pStr && found < sizeof(pFolder) / sizeof(*pFolder) - 1) {
    pFolder[found++] = pStr;
    while (*pStr != '\0' && *pStr != '/')
      pStr++;
    while (*pStr != '\0' && *pStr == '/')
      pStr++;
  }
  pFolder[found] = pStr;
  i = 1;
  while (i < found) {
    if (pFolder[i][0] == '.') {
      if (pFolder[i][1] == '/' || pFolder[i][1] == '\0') {
        int len = pFolder[i + 1] - pFolder[i];
        _ReduceString(pFolder[i], len);
        _ReduceArrayString(pFolder + i, found - i, len, 1);
        found--;
      } else if (pFolder[i][1] == '.' && (pFolder[i][2] == '/' || pFolder[i][2] == '\0')) {
        if (strncmp(pFolder[i - 1], "./", 2) == 0 || strncmp(pFolder[i - 1], "../", 3) == 0) {
          i++;
          continue;
        }
        int len = pFolder[i + 1] - pFolder[i - 1];
        _ReduceString(pFolder[i - 1], len);
        _ReduceArrayString(pFolder + i, found - i, len, 2);
        found -= 2;
        i--;
      } else
        i++;
    } else
      i++;
  }
}
```