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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x160,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x154(%rbp)
  jmp    L48
L129:
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    -0x154(%rbp),%edx
  movslq %edx,%rdx
  mov    %eax,-0x150(%rbp,%rdx,4)
  mov    -0x154(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  cmp    $0xa,%eax
  jne    L65
  mov    -0x154(%rbp),%eax
  add    $0x1,%eax
  cltq
  movl   $0x0,-0x150(%rbp,%rax,4)
  jmp    L34
L65:
  addl   $0x1,-0x154(%rbp)
L48:
  cmpl   $0x4f,-0x154(%rbp)
  jle    L129
L34:
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x158(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movl   $0x0,-0x154(%rbp)
  jmp    L78
L69:
  mov    -0x154(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  cmp    $0x60,%eax
  jle    L55
  mov    -0x154(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  cmp    $0x7a,%eax
  jg     L55
  mov    -0x154(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  lea    -0x61(%rax),%edx
  mov    -0x158(%rbp),%eax
  add    %eax,%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
  lea    0x61(%rax),%edx
  mov    -0x154(%rbp),%eax
  cltq
  mov    %edx,-0x150(%rbp,%rax,4)
  jmp    L145
L55:
  mov    -0x154(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  cmp    $0x40,%eax
  jle    L35
  mov    -0x154(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  cmp    $0x5a,%eax
  jg     L35
  mov    -0x154(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  lea    -0x41(%rax),%edx
  mov    -0x158(%rbp),%eax
  add    %eax,%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
  lea    0x41(%rax),%edx
  mov    -0x154(%rbp),%eax
  cltq
  mov    %edx,-0x150(%rbp,%rax,4)
  jmp    L145
L35:
  nop
L145:
  addl   $0x1,-0x154(%rbp)
L78:
  mov    -0x154(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L69
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x154(%rbp)
  jmp    L19
L93:
  mov    -0x154(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  mov    %eax,%edi
  call   <putchar@plt>
  addl   $0x1,-0x154(%rbp)
L19:
  mov    -0x154(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L93
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L120
  call   <__stack_chk_fail@plt>
L120:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D10
type_guessed: string
name: unpack_data
arguments: data_tag: D38
type_guessed: string
name: unpack_data
arguments: data_tag: D17
type_guessed: string
name: unpack_data
arguments: data_tag: D0
type_guessed: string

tool: D10: Enter message to be encrypted: 

tool: D38: Enter shift amount (1-25): 

tool: D17: %d

tool: D0: Encrypted message: 

assistant: ```c
int main(void) {
  int message[80];
  int n;
  printf("Enter message to be encrypted: ");
  int i = 0;
  while (i < 80) {
    message[i] = getchar();
    if (message[i] == '\n') {
      message[i + 1] = '\0';
      break;
    }
    i += 1;
  }
  printf("Enter shift amount (1-25): ");
  scanf("%d", &n);
  for (i = 0; message[i] != '\0'; i += 1) {
    if (message[i] >= 'a' && message[i] <= 'z') {
      message[i] = ((message[i] - 'a') + n) % 26 + 'a';
    } else if (message[i] >= 'A' && message[i] <= 'Z') {
      message[i] = ((message[i] - 'A') + n) % 26 + 'A';
    } else {
      continue;
    }
  }
  printf("Encrypted message: ");
  for (i = 0; message[i] != '\0'; i += 1) {
    printf("%c", message[i]);
  }
  return 0;
}
```