user: Demonstrate the C code that generates the assembly output below:

```asm
<wordConvert>:
  endbr64
  push   %r13
  xor    %ecx,%ecx
  xor    %edx,%edx
  xor    %esi,%esi
  push   %r12
  lea    D22(%rip),%rdi
  lea    D7(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbp
  movl   $0x0,0x8(%rsp)
  movl   $0x0,0xc(%rsp)
  call   <printMessage@plt>
  mov    %rbp,%rsi
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  xor    %ecx,%ecx
  xor    %edx,%edx
  xor    %esi,%esi
  lea    D31(%rip),%rdi
  call   <printMessage@plt>
  lea    0x8(%rsp),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  xor    %ecx,%ecx
  xor    %edx,%edx
  xor    %esi,%esi
  lea    D4(%rip),%rdi
  call   <printMessage@plt>
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  cmpl   $0x1,0x8(%rsp)
  jne    L29
  negl   0xc(%rsp)
L29:
  mov    %rbp,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L67
  sub    $0x1,%eax
  mov    %rbp,%r12
  mov    %rbp,%r13
  lea    0x11(%rsp,%rax,1),%rbx
  nopw   0x0(%rax,%rax,1)
L87:
  movsbl 0x0(%r13),%edi
  add    $0x1,%r13
  call   <toupper@plt>
  mov    %al,-0x1(%r13)
  cmp    %rbx,%r13
  jne    L87
  mov    0xc(%rsp),%ecx
  jmp    L52
  nopl   (%rax)
L44:
  sub    $0x40,%eax
  mov    $0x5a,%edx
L70:
  add    %eax,%edx
  add    $0x1,%r12
  mov    %dl,-0x1(%r12)
  cmp    %rbx,%r12
  je     L67
L52:
  movsbl (%r12),%eax
  mov    %eax,%edx
  add    %ecx,%eax
  cmp    $0x40,%eax
  jle    L44
  cmp    $0x5a,%eax
  jle    L12
  sub    $0x5b,%eax
  mov    $0x41,%edx
  add    $0x1,%r12
  add    %eax,%edx
  mov    %dl,-0x1(%r12)
  cmp    %rbx,%r12
  jne    L52
L67:
  xor    %ecx,%ecx
  xor    %edx,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <printMessage@plt>
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L89
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L12:
  mov    %ecx,%eax
  jmp    L70
L89:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D22
type_infered: string
name: disassemble_data
arguments: label: D7
type_infered: string
name: disassemble_data
arguments: label: D3
type_infered: string
name: disassemble_data
arguments: label: D31
type_infered: string
name: disassemble_data
arguments: label: D4
type_infered: string

tool: D22: Word to Encrypt or Decrypt? 

tool: D7:  %d

tool: D3:  %s

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

tool: D4: 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);
}
```