user: What would the C source look like for the assembly code provided here:

```asm
<SplitFN>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  movl   $0x0,-0xc(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  je     L194
  cmpq   $0x0,-0x28(%rbp)
  je     L157
  mov    -0x28(%rbp),%rax
  movb   $0x0,(%rax)
L157:
  cmpq   $0x0,-0x30(%rbp)
  je     L63
  mov    -0x30(%rbp),%rax
  movb   $0x0,(%rax)
L63:
  movl   $0x0,-0x10(%rbp)
  jmp    L90
L5:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
  cmpb   $0x3a,-0x11(%rbp)
  je     L116
  cmpb   $0x5c,-0x11(%rbp)
  je     L116
  cmpb   $0x2f,-0x11(%rbp)
  jne    L185
L116:
  mov    -0x10(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0xc(%rbp)
L185:
  cmpq   $0x0,-0x28(%rbp)
  je     L66
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x11(%rbp),%eax
  mov    %al,(%rdx)
L66:
  addl   $0x1,-0x10(%rbp)
L90:
  mov    -0x10(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L5
  cmpq   $0x0,-0x28(%rbp)
  je     L100
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L100:
  cmpl   $0x0,-0xc(%rbp)
  je     L35
  movl   $0x0,-0x10(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  jmp    L182
L102:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  je     L84
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x11(%rbp),%eax
  mov    %al,(%rdx)
L84:
  addl   $0x1,-0x10(%rbp)
  addl   $0x1,-0x8(%rbp)
L182:
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L102
  cmpq   $0x0,-0x30(%rbp)
  je     L74
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L74:
  cmpq   $0x0,-0x28(%rbp)
  je     L194
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L194
L35:
  cmpq   $0x0,-0x30(%rbp)
  je     L114
  cmpq   $0x0,-0x28(%rbp)
  je     L114
  mov    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L114:
  cmpq   $0x0,-0x28(%rbp)
  je     L194
  mov    -0x28(%rbp),%rax
  movb   $0x0,(%rax)
L194:
  mov    -0xc(%rbp),%eax
  leave
  ret
```

assistant: ```c
int SplitFN(char *lpdir, char *lpfil, char *lpext) {
  int i, j, k, l;
  char c;
  k = 0;
  i = (int)strlen(lpext);
  if (i) {
    if (lpdir)
      *lpdir = 0;
    if (lpfil)
      *lpfil = 0;
    for (j = 0; j < i; j++) {
      c = lpext[j];
      if ((c == ':') || (c == '\\') || (c == '/')) {
        k = j + 1;
      }
      if (lpdir)
        lpdir[j] = c;
    }
    if (lpdir)
      lpdir[j] = 0;
    if (k) {
      j = 0;
      for (l = k; l < i; l++) {
        c = lpext[l];
        if (lpfil)
          lpfil[j] = c;
        j++;
      }
      if (lpfil)
        lpfil[j] = 0;
      if (lpdir)
        lpdir[k] = 0;
    } else {
      if (lpfil && lpdir)
        strcpy(lpfil, lpdir);
      if (lpdir)
        *lpdir = 0;
    }
  }
  return k;
}
```