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

```asm
<wfile_find_in_path>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <wfile_eitherslash@plt>
  test   %rax,%rax
  jne    L114
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L23
L114:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <wfile_status@plt>
  cmp    $0x1,%eax
  jne    L126
  mov    $0xffffffff,%eax
  jmp    L135
L126:
  mov    $0x0,%eax
  jmp    L135
L23:
  movl   $0x0,-0x8(%rbp)
L9:
  movl   $0x0,-0x4(%rbp)
  jmp    L41
L138:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movzbl (%rcx),%edx
  cltq
  lea    D18(%rip),%rcx
  mov    %dl,(%rax,%rcx,1)
  cmpl   $0x1,-0x4(%rbp)
  jne    L116
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L116
  addl   $0x1,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movzbl (%rcx),%edx
  cltq
  lea    D18(%rip),%rcx
  mov    %dl,(%rax,%rcx,1)
  nop
L116:
  addl   $0x1,-0x8(%rbp)
L41:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L142
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  je     L142
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3b,%al
  jne    L138
L142:
  mov    -0x4(%rbp),%eax
  cltq
  lea    D18(%rip),%rdx
  movb   $0x0,(%rax,%rdx,1)
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <clean_line@plt>
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  lea    D18(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <wfile_fullname@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <wfile_status@plt>
  cmp    $0x1,%eax
  jne    L122
  mov    $0xffffffff,%eax
  jmp    L135
L122:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L67
  addl   $0x1,-0x8(%rbp)
  jmp    L9
L67:
  nop
  mov    $0x0,%eax
L135:
  leave
  ret
```

assistant: ```c
int wfile_find_in_path(char *dest, char *src, char *path) {
  static char dir[512];
  int i, j;
  if (wfile_eitherslash(src[0]) || src[1] == ':')
    return (wfile_status(src) == 1 ? -1 : 0);
  for (i = 0; 1; i++) {
    for (j = 0; path[i] != '\0' && path[i] != ':' && path[i] != ';'; i++) {
      dir[j++] = path[i];
      if (j == 1 && path[i + 1] == ':') {
        i++;
        dir[j++] = path[i];
        continue;
      }
    }
    dir[j] = '\0';
    clean_line(dir);
    wfile_fullname(dest, dir, src);
    if (wfile_status(dest) == 1)
      return (-1);
    if (path[i] == '\0')
      break;
  }
  return (0);
}
```