user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<decryptViginere>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L167
L206:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jle    L199
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  jle    L23
L199:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x60,%al
  jle    L25
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x7a,%al
  jg     L25
  mov    $0x1,%eax
  jmp    L74
L25:
  mov    $0x2,%eax
  jmp    L74
L23:
  mov    $0x0,%eax
L74:
  test   %eax,%eax
  je     L17
  cmp    $0x1,%eax
  je     L5
  jmp    L55
L17:
  mov    -0x14(%rbp),%eax
  cltd
  idivl  -0x10(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jle    L90
  mov    -0x14(%rbp),%eax
  cltd
  idivl  -0x10(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  jg     L90
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  cltd
  idivl  -0x10(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  sub    %eax,%ecx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jns    L163
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  lea    0x1a(%rax),%ecx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
L163:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    $0x4f,%ecx
  mov    %ecx,%eax
  imul   %dl
  shr    $0x8,%ax
  sar    $0x3,%al
  mov    %edx,%ecx
  sar    $0x7,%cl
  sub    %ecx,%eax
  mov    $0x1a,%ecx
  imul   %ecx,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  lea    0x41(%rax),%ecx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  jmp    L85
L90:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  jmp    L85
L5:
  mov    -0x14(%rbp),%eax
  cltd
  idivl  -0x10(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jle    L63
  mov    -0x14(%rbp),%eax
  cltd
  idivl  -0x10(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5a,%al
  jg     L63
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  cltd
  idivl  -0x10(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  lea    -0x20(%rax),%ecx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jns    L151
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  lea    0x1a(%rax),%ecx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
L151:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    $0x4f,%ecx
  mov    %ecx,%eax
  imul   %dl
  shr    $0x8,%ax
  sar    $0x3,%al
  mov    %edx,%ecx
  sar    $0x7,%cl
  sub    %ecx,%eax
  mov    $0x1a,%ecx
  imul   %ecx,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  lea    0x61(%rax),%ecx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  jmp    L85
L63:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  jmp    L85
L55:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  nop
L85:
  addl   $0x1,-0x14(%rbp)
L167:
  mov    -0x14(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L206
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
char *decryptViginere(char *txt, char *key) {
  int keyLen = strlen(key), txtLen = strlen(txt), cnt = 0;
  char *out = malloc(txtLen + 1 * sizeof(char));
  out[txtLen] = '\0';
  while (cnt < txtLen) {
    switch (((((char)txt[cnt] >= 'A' && (char)txt[cnt] <= 'Z') ? 1 : 0) ? 0 : (((char)txt[cnt] >= 'a' && (char)txt[cnt] <= 'z') ? 1 : 0) ? 1 : 2)) {
    case 0:
      if ((((char)key[cnt % keyLen] >= 'A' && (char)key[cnt % keyLen] <= 'Z') ? 1 : 0)) {
        out[cnt] = (txt[cnt] - 'A' - (key[cnt % keyLen] - 'A'));
        if (out[cnt] < 0)
          out[cnt] = (out[cnt] + 26);
        out[cnt] = (out[cnt] % 26) + 'A';
      } else
        out[cnt] = txt[cnt];
      break;
    case 1:
      if ((((char)key[cnt % keyLen] >= 'A' && (char)key[cnt % keyLen] <= 'Z') ? 1 : 0)) {
        out[cnt] = (txt[cnt] - 'a' - (key[cnt % keyLen] + 32 - 'a'));
        if (out[cnt] < 0)
          out[cnt] = (out[cnt] + 26);
        out[cnt] = (out[cnt] % 26) + 'a';
      } else
        out[cnt] = txt[cnt];
      break;
    default:
      out[cnt] = txt[cnt];
      break;
    }
    cnt++;
  }
  return out;
}
```