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

```asm
<main>:
  endbr64
  push   %r15
  lea    D8(%rip),%rdi
  push   %r14
  lea    D42(%rip),%r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x17(%rsp),%r15
  call   <printf@plt>
  mov    $0x1,%edi
  call   <malloc@plt>
  mov    $0x1,%edi
  mov    %rax,%r12
  call   <malloc@plt>
  movl   $0x0,0xc(%rsp)
  mov    %rax,%rbp
  nopl   0x0(%rax)
L8:
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  jne    L35
L67:
  movzbl 0x17(%rsp),%eax
  cmp    $0x20,%al
  je     L13
  cmp    $0xa,%al
  je     L13
  lea    0x1(%rbx),%edx
  mov    %rbp,%rdi
  mov    %edx,%esi
  mov    %edx,0x8(%rsp)
  call   <realloc@plt>
  mov    0x8(%rsp),%edx
  mov    %r15,%rsi
  mov    %r14,%rdi
  mov    %rax,%rbp
  movzbl 0x17(%rsp),%eax
  addl   $0x1,0xc(%rsp)
  mov    %al,0x0(%rbp,%rbx,1)
  movslq %edx,%rbx
  call   <scanf@plt>
  cmp    $0x1,%eax
  je     L67
L35:
  mov    %r13d,%esi
  lea    D16(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D26(%rip),%rdi
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  lea    D48(%rip),%rdi
  cvtsi2ssl 0xc(%rsp),%xmm0
  mov    $0x1,%eax
  cvtsi2ss %r13d,%xmm1
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L28
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L13:
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %r12,%rdi
  mov    %eax,%ebx
  call   <strlen@plt>
  cmp    %eax,%ebx
  jg     L29
L58:
  add    $0x1,%r13d
  cmpb   $0xa,0x17(%rsp)
  je     L35
  xor    %ebx,%ebx
  jmp    L8
  nopl   0x0(%rax)
L29:
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %r12,%rdi
  mov    %eax,%esi
  call   <realloc@plt>
  mov    %rbp,%rsi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <strcpy@plt>
  jmp    L58
L28:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D8
type_infered: string
name: parse_data
arguments: tag: D42
type_infered: string
name: parse_data
arguments: tag: D16
type_infered: string
name: parse_data
arguments: tag: D26
type_infered: string
name: parse_data
arguments: tag: D48
type_infered: string

tool: D8: Frase? 

tool: D42: %c

tool: D16: Numero de palavras: %d


tool: D26: Palavra maior: %s


tool: D48: Comprimento medio: %.1f


assistant: ```c
int main() {
  char c, *max, *p;
  int n = 0, l = 0, i = 0;
  printf("Frase? ");
  max = (char *)malloc(sizeof(char));
  p = (char *)malloc(sizeof(char));
  while (scanf("%c", &c) == 1) {
    if (c == ' ' || c == '\n') {
      if (strlen(p) > strlen(max)) {
        max = (char *)realloc(max, sizeof(char) * strlen(p));
        strcpy(max, p);
      }
      n++;
      i = 0;
      if (c == '\n')
        break;
    } else {
      p = (char *)realloc(p, sizeof(char) * (i + 1));
      p[i] = c;
      l++;
      i++;
    }
  }
  printf("Numero de palavras: %d\n", n);
  printf("Palavra maior: %s\n", max);
  printf("Comprimento medio: %.1f\n", (float)l / (float)n);
  return 0;
}
```