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

```asm
<wl_wep_code>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x3c(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movb   $0x0,-0x15(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L8
L60:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  xor    %al,-0x15(%rbp)
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  movzbl -0x15(%rbp),%eax
  add    %edx,%eax
  mov    %al,-0x15(%rbp)
  addl   $0x1,-0x14(%rbp)
L8:
  cmpl   $0xb,-0x14(%rbp)
  jle    L60
  mov    -0x30(%rbp),%rax
  movb   $0x0,(%rax)
  movl   $0x0,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L94
L85:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  movsbl -0x15(%rbp),%ecx
  mov    -0x14(%rbp),%edx
  add    %ecx,%edx
  xor    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x14(%rbp),%edx
  movslq %edx,%rax
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,%ecx
  add    %ecx,%ecx
  add    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  cmp    $0x2,%eax
  je     L1
  cmp    $0x2,%eax
  jg     L80
  test   %eax,%eax
  je     L2
  cmp    $0x1,%eax
  je     L61
  jmp    L80
L2:
  mov    -0xc(%rbp),%eax
  sar    $0x2,%eax
  and    $0x3f,%eax
  lea    0x26(%rax),%ecx
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0xc(%rbp),%eax
  shl    $0x4,%eax
  and    $0x30,%eax
  lea    0x26(%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L80
L61:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  sar    $0x4,%eax
  and    $0xf,%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  and    $0x3c,%eax
  lea    0x26(%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L80
L1:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  sar    $0x6,%eax
  and    $0x3,%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0xc(%rbp),%eax
  and    $0x3f,%eax
  lea    0x26(%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0x10(%rbp)
  nop
L80:
  addl   $0x1,-0x14(%rbp)
  addl   $0x1,-0x10(%rbp)
L94:
  mov    -0x14(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L85
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  leave
  ret
```

assistant: ```c
int wl_wep_code(char *szCrypt, char *szDest, void *Data, int nLen) {
  int i;
  int t;
  int k;
  char bits;
  char *szData = (char *)Data;
  for (i = bits = 0; i < 12; i++) {
    bits ^= szCrypt[i];
    bits += szCrypt[i];
  }
  for (i = t = *szDest = 0; i < nLen; i++, t++) {
    k = szData[i] ^ (bits + i);
    switch (i % 3) {
    case 0:
      szDest[t] = ((k & 0xFC) >> 2) + '&';
      szDest[t + 1] = ((k & 0x03) << 4) + '&';
      szDest[t + 2] = '\0';
      break;
    case 1:
      szDest[t] += ((k & 0xF0) >> 4);
      szDest[t + 1] = ((k & 0x0F) << 2) + '&';
      szDest[t + 2] = '\0';
      break;
    case 2:
      szDest[t] += ((k & 0xC0) >> 6);
      szDest[t + 1] = (k & 0x3F) + '&';
      szDest[t + 2] = '\0';
      t++;
      break;
    }
  }
  return (strlen(szDest));
}
```