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

```asm
<wordConvert>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x8(%rsp)
  movl   $0x0,0xc(%rsp)
  mov    $0x0,%ecx
  mov    $0x0,%edx
  mov    $0x0,%esi
  lea    D21(%rip),%rdi
  call   <printMessage@plt>
  lea    0x10(%rsp),%rsi
  lea    D7(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    $0x0,%ecx
  mov    $0x0,%edx
  mov    $0x0,%esi
  lea    D40(%rip),%rdi
  call   <printMessage@plt>
  lea    0x8(%rsp),%rsi
  lea    D29(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    $0x0,%ecx
  mov    $0x0,%edx
  mov    $0x0,%esi
  lea    D10(%rip),%rdi
  call   <printMessage@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpl   $0x1,0x8(%rsp)
  je     L32
L46:
  lea    0x10(%rsp),%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L105
  lea    0x10(%rsp),%rbx
  lea    -0x1(%rax),%eax
  lea    0x11(%rsp,%rax,1),%r12
  mov    %rbx,%rbp
L10:
  movsbl 0x0(%rbp),%edi
  call   <toupper@plt>
  mov    %al,0x0(%rbp)
  add    $0x1,%rbp
  cmp    %r12,%rbp
  jne    L10
  mov    0xc(%rsp),%ecx
  jmp    L99
L32:
  negl   0xc(%rsp)
  jmp    L46
L66:
  cmp    $0x5a,%eax
  jle    L77
  sub    $0x5b,%eax
  movb   $0x41,(%rbx)
L55:
  add    %al,(%rdx)
  add    $0x1,%rbx
  cmp    %r12,%rbx
  je     L105
L99:
  mov    %rbx,%rdx
  movsbl (%rbx),%eax
  add    %ecx,%eax
  cmp    $0x40,%eax
  jg     L66
  sub    $0x40,%eax
  movb   $0x5a,(%rbx)
  jmp    L55
L77:
  mov    %ecx,%eax
  jmp    L55
L105:
  lea    0x10(%rsp),%rdi
  mov    $0x0,%ecx
  mov    $0x0,%edx
  mov    $0x1,%esi
  call   <printMessage@plt>
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L97
  add    $0xa0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L97:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D21
type: string
name: retrieve_data
arguments: tag: D7
type: string
name: retrieve_data
arguments: tag: D40
type: string
name: retrieve_data
arguments: tag: D29
type: string
name: retrieve_data
arguments: tag: D10
type: string

tool: D21: Word to Encrypt or Decrypt? 

tool: D7:  %s

tool: D40: Encrypt (0) or Decrypt (1)?

tool: D29:  %d

tool: D10: Encrypt Key?

assistant: ```c
void wordConvert(void) {
  char word[128];
  int isEncrypt = 0, encryptValue = 0, wordLength = 0, i = 0, tempKey = 0, newValue = 0;
  printMessage("Word to Encrypt or Decrypt? ", 0, 0, 0);
  scanf(" %s", &word);
  printMessage("Encrypt (0) or Decrypt (1)?", 0, 0, 0);
  scanf(" %d", &isEncrypt);
  printMessage("Encrypt Key?", 0, 0, 0);
  scanf(" %d", &encryptValue);
  if (isEncrypt == 1) {
    encryptValue = -encryptValue;
  }
  wordLength = strlen(word);
  for (i = 0; i < wordLength; i++) {
    word[i] = toupper(word[i]);
  }
  for (i = 0; i < wordLength; i++) {
    tempKey = encryptValue;
    newValue = (int)word[i] + tempKey;
    if (newValue < 65) {
      tempKey = (newValue - 65) + 1;
      word[i] = 'Z';
    }
    if (newValue > 90) {
      tempKey = (newValue - 90) - 1;
      word[i] = 'A';
    }
    word[i] = (char)((int)word[i] + tempKey);
  }
  printMessage(word, 1, 0, 0);
}
```