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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  cmp    $0x2,%edi
  je     L64
  lea    D45(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%eax
L88:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L6
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L64:
  mov    %rsi,%rbp
  mov    0x8(%rsi),%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L17
  mov    %eax,%r12d
  mov    $0x0,%ebx
L0:
  mov    0x8(%rbp),%rax
  movsbl (%rax,%rbx,1),%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L84
  add    $0x1,%rbx
  cmp    %r12,%rbx
  jne    L0
L17:
  lea    D21(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rsi
  lea    D17(%rip),%rdi
  call   <scanf@plt>
  mov    0x8(%rbp),%r14
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %eax,%r12d
  lea    D27(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L1
  lea    -0x1(%rax),%eax
  lea    0x11(%rsp,%rax,1),%r15
  mov    $0x0,%ebp
  jmp    L74
L84:
  lea    D36(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L88
L117:
  movsbl (%rbx),%edi
  call   <islower@plt>
  test   %rax,%rax
  je     L139
  movsbl (%rbx),%eax
  mov    0xc(%rsp),%ecx
  lea    -0x61(%rcx,%rax,1),%eax
  mov    $0x1a,%ecx
  cltd
  idiv   %ecx
  lea    0x61(%rdx),%edi
  call   <putchar@plt>
  add    $0x1,%ebp
  jmp    L139
L46:
  movsbl (%rbx),%edi
  call   <putchar@plt>
L139:
  add    $0x1,%rbx
  cmp    %r15,%rbx
  je     L1
L74:
  mov    %ebp,%eax
  cltd
  idiv   %r12d
  movslq %edx,%rdx
  movsbl (%r14,%rdx,1),%edi
  call   <tolower@plt>
  mov    %eax,0xc(%rsp)
  movsbl (%rbx),%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L46
  mov    0xc(%rsp),%eax
  sub    $0x61,%eax
  mov    %eax,0xc(%rsp)
  movsbl (%rbx),%edi
  call   <isupper@plt>
  test   %rax,%rax
  je     L117
  movsbl (%rbx),%eax
  mov    0xc(%rsp),%ecx
  lea    -0x41(%rcx,%rax,1),%eax
  mov    $0x1a,%ecx
  cltd
  idiv   %ecx
  lea    0x41(%rdx),%edi
  call   <putchar@plt>
  add    $0x1,%ebp
  jmp    L139
L1:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%eax
  jmp    L88
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D45
type_guessed: string
name: parse_data
arguments: tag: D21
type_guessed: string
name: parse_data
arguments: tag: D17
type_guessed: string
name: parse_data
arguments: tag: D27
type_guessed: string
name: parse_data
arguments: tag: D36
type_guessed: string

tool: D45: Enter the Valid Key

tool: D21: plaintext:  

tool: D17: %s

tool: D27: ciphertext: 

tool: D36: Enter only Alphabets

assistant: ```c
int main(int argc, char *argv[]) {
  if (argc != 2) {
    printf("Enter the Valid Key");
    return 1;
  } else {
    for (int i = 0, n = strlen(argv[1]); i < n; i++) {
      if (!isalpha(argv[1][i])) {
        printf("Enter only Alphabets");
        return 1;
      }
    }
  }
  printf("plaintext:  ");
  char s[100];
  scanf("%s", s);
  char *k = argv[1];
  int klen = strlen(k);
  printf("ciphertext: ");
  for (int i = 0, j = 0, n = strlen(s); i < n; i++) {
    int key = tolower(k[j % klen]) - 97;
    if (isalpha(s[i])) {
      if (isupper(s[i])) {
        printf("%c", ((s[i] - 65 + key) % 26) + 65);
        j++;
      } else if (islower(s[i])) {
        printf("%c", ((s[i] - 97 + key) % 26) + 97);
        j++;
      }
    } else {
      printf("%c", s[i]);
    }
  }
  printf("\n");
  return 0;
}
```