user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %r15
  lea    D18(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbx
  call   <printf@plt>
  mov    %rbx,%rdi
  mov    %rbx,(%rsp)
  call   <gets@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmpb   $0x20,0x10(%rsp)
  jne    L149
  movslq %eax,%rbp
  lea    0x11(%rsp),%rbx
  test   %eax,%eax
  jle    L149
L142:
  mov    (%rsp),%rdi
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  call   <memmove@plt>
  cmpb   $0x20,0x10(%rsp)
  je     L142
L149:
  mov    (%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    -0x1(%rax),%edx
  cltq
  movslq %edx,%rdx
  add    %rbx,%rax
  cmpb   $0x20,0x10(%rsp,%rdx,1)
  jne    L74
  nopl   0x0(%rax)
L138:
  movb   $0x0,-0x1(%rax)
  sub    $0x1,%rax
  cmpb   $0x20,-0x1(%rax)
  je     L138
L74:
  mov    (%rsp),%rdi
  call   <strlen@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  jle    L173
  lea    -0x1(%rax),%eax
  mov    (%rsp),%rcx
  lea    0x11(%rsp),%r15
  mov    $0x1,%r13d
  mov    %eax,0xc(%rsp)
  mov    %eax,%r14d
  nop
L109:
  mov    0xc(%rsp),%ebp
  lea    0x1(%r14),%ebx
  sub    %r14d,%ebp
  cmpb   $0x20,(%rcx)
  je     L205
  jmp    L199
  nopw   0x0(%rax,%rax,1)
L87:
  cmp    %ebp,%r12d
  mov    %ebx,%edx
  mov    %rcx,%rdi
  mov    %r15,%rsi
  cmovle %r13,%rdx
  call   <memmove@plt>
  cmpb   $0x20,(%rax)
  mov    %rax,%rcx
  jne    L199
L205:
  cmpb   $0x20,(%r15)
  je     L87
L199:
  sub    $0x1,%r14d
  add    $0x1,%rcx
  add    $0x1,%r15
  cmp    $0xffffffff,%r14d
  jne    L109
L173:
  mov    (%rsp),%rdi
  call   <strlen@plt>
  mov    %eax,%r11d
  test   %eax,%eax
  js     L186
  mov    (%rsp),%r15
  add    $0x1,%r11d
  xor    %esi,%esi
  xor    %r9d,%r9d
  lea    0x70(%rsp),%rbp
  jmp    L201
L8:
  add    $0x1,%r9d
  add    $0x1,%r15
  cmp    %r11d,%r9d
  je     L94
L201:
  testb  $0xdf,(%r15)
  jne    L8
  movslq %esi,%rcx
  lea    0x1(%rsi),%eax
  mov    %r15,%rdx
  add    %rbp,%rcx
  lea    (%rax,%r9,1),%r10d
  jmp    L172
  nopl   0x0(%rax)
L193:
  movzbl -0x1(%rdx),%r8d
  mov    %rdx,%rdi
  add    $0x1,%rcx
  sub    $0x1,%rdx
  mov    %r8b,-0x1(%rcx)
  cmpb   $0x20,-0x2(%rdi)
  je     L209
  add    $0x1,%eax
L172:
  movslq %esi,%rdi
  mov    %eax,%esi
  cmp    %eax,%r10d
  jne    L193
  movb   $0x20,0x70(%rsp,%rdi,1)
  lea    0x1(%rdi),%esi
L131:
  add    $0x1,%r9d
  add    $0x1,%r15
  cmp    %r11d,%r9d
  jne    L201
L94:
  mov    %rbp,%rdi
  call   <puts@plt>
  lea    D5(%rip),%rdi
  call   <system@plt>
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L136
  add    $0xd8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L209:
  movslq %eax,%rdi
  movb   $0x20,0x70(%rsp,%rdi,1)
  lea    0x1(%rdi),%esi
  jmp    L131
L186:
  lea    0x70(%rsp),%rbp
  jmp    L94
L136:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D18
data_type: string
name: disassemble_data
arguments: data_tag: D5
data_type: string

tool: D18: entre com uma frase: 

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