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

```asm
<bersihkan_path>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    -0x28(%rbp),%rax
  mov    $0x3f,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L11
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x8(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <konversi_escaped_character@plt>
  jmp    L143
L11:
  mov    -0x30(%rbp),%rax
  movb   $0x0,(%rax)
L143:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x10(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L6
L43:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L186
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L186
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L186
  addl   $0x1,-0x18(%rbp)
  subl   $0x2,-0x10(%rbp)
  jmp    L93
L186:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L56
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L56
  subl   $0x1,-0x10(%rbp)
  jmp    L93
L56:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x14(%rbp)
L93:
  addl   $0x1,-0x18(%rbp)
L6:
  mov    -0x18(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L43
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <konversi_escaped_character@plt>
  cmpl   $0x2,-0x10(%rbp)
  jle    L131
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L131
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L131
  movl   $0x0,-0x18(%rbp)
  jmp    L175
L77:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x18(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x18(%rbp)
L175:
  mov    -0x10(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x18(%rbp)
  jl     L77
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  subl   $0x1,-0x10(%rbp)
L131:
  cmpl   $0x2,-0x10(%rbp)
  jle    L90
  mov    -0x10(%rbp),%eax
  cltq
  lea    -0x2(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L90
  mov    -0x10(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L90
  mov    -0x10(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  subl   $0x1,-0x10(%rbp)
L90:
  nop
  leave
  ret
```

assistant: ```c
void bersihkan_path(char *path, char *query_string) {
  int i, j, len, max;
  char *c;
  c = strchr(path, '?');
  if (c != NULL) {
    *c = '\0';
    c++;
    strcpy(query_string, c);
    konversi_escaped_character(query_string);
  } else {
    query_string[0] = '\0';
  }
  len = strlen(path);
  j = 0;
  max = len;
  for (i = 0; i < max; i++) {
    if ((path[i] == '/') && (path[i + 1] == '.') && (path[i + 2] == '/')) {
      i++;
      len -= 2;
    } else if ((path[i] == '/') && (path[i + 1] == '/')) {
      len--;
    } else {
      path[j] = path[i];
      j++;
    }
  }
  path[j] = '\0';
  konversi_escaped_character(path);
  if (len > 2) {
    if ((path[0] == '.') && (path[1] == '/')) {
      for (i = 0; i < len - 1; i++) {
        path[i] = path[i + 1];
      }
      path[i + 1] = '\0';
      len--;
    }
  }
  if (len > 2) {
    if ((path[len - 2] == '/') && (path[len - 1] == '.')) {
      path[len - 1] = '\0';
      len--;
    }
  }
}
```