user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r12
  lea    D36(%rip),%rdi
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  sub    $0x410,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  lea    0x10(%rsp),%rbp
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L301
  xchg   %ax,%ax
L221:
  mov    %rbp,%rdi
  call   <gets@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  lea    -0x1(%rax),%esi
  test   %eax,%eax
  jle    L20
  cmp    $0xe,%esi
  jbe    L288
  mov    %edx,%ecx
  mov    %rbp,%rax
  pxor   %xmm3,%xmm3
  shr    $0x4,%ecx
  sub    $0x1,%ecx
  shl    $0x4,%rcx
  lea    0x20(%rsp,%rcx,1),%rcx
  xchg   %ax,%ax
L304:
  movdqa (%rax),%xmm2
  movdqa D39(%rip),%xmm0
  add    $0x10,%rax
  movdqa D58(%rip),%xmm1
  pand   %xmm2,%xmm0
  paddb  D43(%rip),%xmm0
  psubusb D15(%rip),%xmm0
  paddb  %xmm2,%xmm1
  pcmpeqb %xmm3,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm1,%xmm0
  movaps %xmm0,-0x10(%rax)
  cmp    %rax,%rcx
  jne    L304
  mov    %edx,%eax
  and    $0xfffffff0,%eax
  test   $0xf,%dl
  je     L20
L104:
  movslq %eax,%r8
  movzbl 0x10(%rsp,%r8,1),%ecx
  mov    %ecx,%edi
  lea    0x3(%rcx),%r9d
  and    $0xffffffdf,%edi
  sub    $0x41,%edi
  cmp    $0x1a,%dil
  cmovb  %r9d,%ecx
  mov    %cl,0x10(%rsp,%r8,1)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0x2(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0x3(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0x4(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0x5(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0x6(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0x7(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0x8(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0x9(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0xa(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0xb(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0xc(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  mov    %dil,0x10(%rsp,%rcx,1)
  lea    0xd(%rax),%ecx
  cmp    %ecx,%edx
  jle    L20
  movslq %ecx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%edi
  mov    %edi,%r8d
  lea    0x3(%rdi),%r9d
  and    $0xffffffdf,%r8d
  sub    $0x41,%r8d
  cmp    $0x1a,%r8b
  cmovb  %r9d,%edi
  add    $0xe,%eax
  mov    %dil,0x10(%rsp,%rcx,1)
  cmp    %eax,%edx
  jle    L20
  cltq
  movzbl 0x10(%rsp,%rax,1),%ecx
  mov    %ecx,%edi
  lea    0x3(%rcx),%r8d
  and    $0xffffffdf,%edi
  sub    $0x41,%edi
  cmp    $0x1a,%dil
  cmovb  %r8d,%ecx
  mov    %cl,0x10(%rsp,%rax,1)
  nopw   0x0(%rax,%rax,1)
L20:
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  and    $0x1,%edx
  sar    %eax
  cmp    $0x1,%edx
  sbb    $0xffffffff,%eax
  mov    %eax,%edx
  test   %eax,%eax
  jle    L195
  lea    -0x1(%rax),%eax
  cmp    $0xe,%eax
  jbe    L256
  mov    %edx,%ecx
  mov    %rbp,%rax
  pcmpeqd %xmm1,%xmm1
  shr    $0x4,%ecx
  sub    $0x1,%ecx
  shl    $0x4,%rcx
  lea    0x20(%rsp,%rcx,1),%rcx
L41:
  movdqa (%rax),%xmm0
  add    $0x10,%rax
  paddb  %xmm1,%xmm0
  movaps %xmm0,-0x10(%rax)
  cmp    %rcx,%rax
  jne    L41
  mov    %edx,%eax
  and    $0xfffffff0,%eax
  mov    %eax,%ecx
  cmp    %edx,%eax
  je     L195
L247:
  mov    %edx,%edi
  sub    %eax,%edi
  lea    -0x1(%rdi),%r8d
  cmp    $0x6,%r8d
  jbe    L283
  movq   D19(%rip),%xmm1
  add    %rbp,%rax
  movq   (%rax),%xmm0
  paddb  %xmm1,%xmm0
  movq   %xmm0,(%rax)
  mov    %edi,%eax
  and    $0xfffffff8,%eax
  add    %eax,%ecx
  cmp    %eax,%edi
  je     L195
L283:
  movslq %ecx,%rax
  subb   $0x1,0x10(%rsp,%rax,1)
  lea    0x1(%rcx),%eax
  cmp    %eax,%edx
  jle    L195
  cltq
  subb   $0x1,0x10(%rsp,%rax,1)
  lea    0x2(%rcx),%eax
  cmp    %eax,%edx
  jle    L195
  cltq
  subb   $0x1,0x10(%rsp,%rax,1)
  lea    0x3(%rcx),%eax
  cmp    %eax,%edx
  jle    L195
  cltq
  subb   $0x1,0x10(%rsp,%rax,1)
  lea    0x4(%rcx),%eax
  cmp    %eax,%edx
  jle    L195
  cltq
  subb   $0x1,0x10(%rsp,%rax,1)
  lea    0x5(%rcx),%eax
  cmp    %eax,%edx
  jle    L195
  cltq
  add    $0x6,%ecx
  subb   $0x1,0x10(%rsp,%rax,1)
  cmp    %ecx,%edx
  jle    L195
  movslq %ecx,%rcx
  subb   $0x1,0x10(%rsp,%rcx,1)
L195:
  movslq %esi,%rbx
  test   %esi,%esi
  js     L362
  nopl   0x0(%rax,%rax,1)
L118:
  movsbl 0x0(%rbp,%rbx,1),%edi
  sub    $0x1,%rbx
  call   <putchar@plt>
  test   %ebx,%ebx
  jns    L118
L362:
  mov    $0xa,%edi
  add    $0x1,%r12d
  call   <putchar@plt>
  cmp    %r12d,0xc(%rsp)
  jg     L221
L301:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L115
  add    $0x410,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L256:
  xor    %eax,%eax
  xor    %ecx,%ecx
  jmp    L247
L288:
  xor    %eax,%eax
  jmp    L104
L115:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D36
data_type: string
name: read_data
arguments: tag: D39
data_type: byte[16]
name: read_data
arguments: tag: D58
data_type: byte[16]
name: read_data
arguments: tag: D43
data_type: byte[16]
name: read_data
arguments: tag: D15
data_type: byte[16]
name: read_data
arguments: tag: D19
data_type: byte[8]

tool: D36: %d

tool: {"D39": [0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf]}

tool: {"D58": [0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03]}

tool: {"D43": [0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf]}

tool: {"D15": [0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19]}

tool: {"D19": [0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff]}

assistant: ```c
int main() {
  int N, i, j, k, inverte, tam;
  char palavra[1001];
  scanf("%d", &N);
  getchar();
  for (i = 0; i < N; i++) {
    gets(palavra);
    inverte = strlen(palavra);
    tam = inverte;
    for (j = 0, inverte; j < tam; j++, inverte--) {
      k = palavra[j];
      if (palavra[j] >= 65 && palavra[j] <= 90 || palavra[j] >= 97 && palavra[j] <= 122) {
        k += 3;
      }
      palavra[j] = k;
    }
    inverte = tam / 2;
    if (tam % 2 != 0) {
      inverte++;
    }
    for (j = 0; j < inverte; j++) {
      k = palavra[j];
      k--;
      palavra[j] = k;
    }
    for (j = tam - 1; j >= 0; j--) {
      printf("%c", palavra[j]);
    }
    printf("\n");
  }
}
```