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

```asm
<vigenereCipher>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x18(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L8
L10:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <islower@plt>
  test   %rax,%rax
  je     L11
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x61(%rax),%ebx
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  add    %ebx,%eax
  lea    -0x61(%rax),%edx
  movslq %edx,%rax
  imul   $0x4ec4ec4f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x1a,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  add    $0x61,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %al,-0x1d(%rbp)
  jmp    L34
L11:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  lea    -0x41(%rax),%ebx
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  mov    %edx,%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  add    %ebx,%eax
  lea    -0x41(%rax),%edx
  movslq %edx,%rax
  imul   $0x4ec4ec4f,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  imul   $0x1a,%eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  add    $0x41,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %al,-0x1d(%rbp)
L34:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L5
  movsbl -0x1d(%rbp),%eax
  mov    %eax,%esi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L49
L5:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%esi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L49:
  addl   $0x1,-0x1c(%rbp)
L8:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x1c(%rbp)
  jl     L10
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D9
type: string

tool: D9: %c

assistant: ```c
void vigenereCipher(char *plainText, char *k) {
  int i;
  char cipher;
  int cipherValue;
  int len = strlen(k);
  for (i = 0; i < strlen(plainText); i++) {
    if (islower(plainText[i])) {
      cipherValue = ((int)plainText[i] - 97 + (int)tolower(k[i % len]) - 97) % 26 + 97;
      cipher = (char)cipherValue;
    } else {
      cipherValue = ((int)plainText[i] - 65 + (int)toupper(k[i % len]) - 65) % 26 + 65;
      cipher = (char)cipherValue;
    }
    if (isalpha(plainText[i])) {
      printf("%c", cipher);
    } else {
      printf("%c", plainText[i]);
    }
  }
}
```