user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xd0(%rbp)
  movl   $0x0,-0xcc(%rbp)
  movl   $0x0,-0xc8(%rbp)
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <gets@plt>
  lea    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc4(%rbp)
  movl   $0x0,-0xd4(%rbp)
  jmp    L96
L84:
  movl   $0x0,-0xd4(%rbp)
  jmp    L45
L159:
  mov    -0xd4(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0xd0(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xd0(%rbp)
  movslq %ecx,%rdx
  movzbl -0xc0(%rbp,%rdx,1),%edx
  cltq
  mov    %dl,-0xc0(%rbp,%rax,1)
  addl   $0x1,-0xd4(%rbp)
L45:
  mov    -0xd4(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jl     L159
  movl   $0x0,-0xd0(%rbp)
L96:
  movzbl -0xc0(%rbp),%eax
  cmp    $0x20,%al
  je     L84
  lea    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc4(%rbp)
  movl   $0x1,-0xd4(%rbp)
  jmp    L139
L141:
  mov    -0xc4(%rbp),%eax
  sub    -0xd4(%rbp),%eax
  cltq
  movb   $0x0,-0xc0(%rbp,%rax,1)
  addl   $0x1,-0xd4(%rbp)
L139:
  mov    -0xc4(%rbp),%eax
  sub    -0xd4(%rbp),%eax
  cltq
  movzbl -0xc0(%rbp,%rax,1),%eax
  cmp    $0x20,%al
  je     L141
  lea    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc4(%rbp)
  movl   $0x0,-0xd0(%rbp)
  mov    -0xd0(%rbp),%eax
  mov    %eax,-0xd4(%rbp)
  jmp    L13
L180:
  mov    -0xd4(%rbp),%eax
  mov    %eax,-0xd0(%rbp)
  jmp    L146
L16:
  mov    -0xd0(%rbp),%eax
  add    $0x1,%eax
  cltq
  movzbl -0xc0(%rbp,%rax,1),%edx
  mov    -0xd0(%rbp),%eax
  cltq
  mov    %dl,-0xc0(%rbp,%rax,1)
  addl   $0x1,-0xd0(%rbp)
L146:
  mov    -0xd0(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jl     L16
L108:
  mov    -0xd4(%rbp),%eax
  cltq
  movzbl -0xc0(%rbp,%rax,1),%eax
  cmp    $0x20,%al
  jne    L95
  mov    -0xd4(%rbp),%eax
  add    $0x1,%eax
  cltq
  movzbl -0xc0(%rbp,%rax,1),%eax
  cmp    $0x20,%al
  je     L180
L95:
  addl   $0x1,-0xd4(%rbp)
L13:
  mov    -0xd4(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jl     L108
  lea    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc4(%rbp)
  movl   $0x0,-0xd4(%rbp)
  jmp    L55
L136:
  mov    -0xd4(%rbp),%eax
  cltq
  movzbl -0xc0(%rbp,%rax,1),%eax
  cmp    $0x20,%al
  je     L121
  mov    -0xd4(%rbp),%eax
  cltq
  movzbl -0xc0(%rbp,%rax,1),%eax
  test   %al,%al
  jne    L166
L121:
  mov    -0xd4(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0xd0(%rbp)
  jmp    L107
L126:
  mov    -0xcc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  mov    -0xd0(%rbp),%edx
  movslq %edx,%rdx
  movzbl -0xc0(%rbp,%rdx,1),%edx
  cltq
  mov    %dl,-0x60(%rbp,%rax,1)
  subl   $0x1,-0xd0(%rbp)
  mov    -0xd0(%rbp),%eax
  cltq
  movzbl -0xc0(%rbp,%rax,1),%eax
  cmp    $0x20,%al
  je     L175
L107:
  cmpl   $0x0,-0xd0(%rbp)
  jns    L126
  jmp    L149
L175:
  nop
L149:
  mov    -0xcc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  cltq
  movb   $0x20,-0x60(%rbp,%rax,1)
L166:
  addl   $0x1,-0xd4(%rbp)
L55:
  mov    -0xd4(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jle    L136
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <system@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L75
  call   <__stack_chk_fail@plt>
L75:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D1
type_guessed: string
name: extract_symbolic_data
arguments: label: D4
type_guessed: string

tool: D1: entre com uma frase: 

tool: D4: pause

assistant: ```c
int main() {
  char frase[81], aux[81];
  int i, j = 0, k = 0, tam, cont = 0;
  printf("entre com uma frase: ");
  gets(frase);
  tam = strlen(frase);
  i = 0;
  while (frase[0] == ' ') {
    for (i = 0; i < tam; i++)
      frase[j++] = frase[i + 1];
    j = 0;
  }
  tam = strlen(frase);
  i = 1;
  while (frase[tam - i] == ' ') {
    frase[tam - i] = '\0';
    i++;
  }
  tam = strlen(frase);
  i = j = 0;
  for (; i < tam; i++) {
    while (frase[i] == ' ' && frase[i + 1] == ' ') {
      for (j = i; j < tam; j++)
        frase[j] = frase[j + 1];
    }
  }
  tam = strlen(frase);
  i = 0;
  for (; i <= tam; i++) {
    if (frase[i] == ' ' || frase[i] == '\0') {
      j = i - 1;
      while (j >= 0) {
        aux[k++] = frase[j];
        j--;
        if (frase[j] == ' ')
          break;
      }
      aux[k++] = ' ';
    }
  }
  printf("%s\n", aux);
  system("pause");
  return 0;
}
```