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

```asm
<reverseWords>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L109
L160:
  addl   $0x1,-0x28(%rbp)
L109:
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L160
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  jmp    L187
L95:
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x24(%rbp),%eax
  sub    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x24(%rbp)
L187:
  mov    -0x2c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jge    L95
  mov    -0x28(%rbp),%eax
  sub    %eax,-0x2c(%rbp)
  jmp    L150
L23:
  subl   $0x1,-0x2c(%rbp)
L150:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L23
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x28(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L132
L39:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L189
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x20(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x20(%rbp)
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
  movl   $0x0,-0x28(%rbp)
  jmp    L65
L189:
  cmpl   $0x0,-0x28(%rbp)
  jne    L42
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x20(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x20(%rbp)
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  movzbl (%rcx),%eax
  mov    %al,(%rdx)
L42:
  addl   $0x1,-0x28(%rbp)
L65:
  addl   $0x1,-0x1c(%rbp)
L132:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L39
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L136
L90:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x2d(%rbp)
  mov    -0x2c(%rbp),%eax
  sub    -0x18(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x18(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x38(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x2c(%rbp),%eax
  sub    -0x18(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x2d(%rbp),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x18(%rbp)
L136:
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x18(%rbp)
  jl     L90
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L156
L190:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L36
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xc(%rbp)
  jne    L26
L36:
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xc(%rbp)
  je     L113
  subl   $0x1,-0x10(%rbp)
L113:
  mov    -0x10(%rbp),%eax
  sub    -0x14(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L20
L106:
  mov    -0x14(%rbp),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x2e(%rbp)
  mov    -0x10(%rbp),%eax
  sub    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%ecx
  mov    -0x8(%rbp),%edx
  add    %ecx,%edx
  movslq %edx,%rcx
  mov    -0x38(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x10(%rbp),%eax
  sub    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x2e(%rbp),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x8(%rbp)
L20:
  mov    -0x4(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x8(%rbp)
  jl     L106
  mov    -0x10(%rbp),%eax
  add    $0x2,%eax
  mov    %eax,-0x14(%rbp)
L26:
  addl   $0x1,-0xc(%rbp)
L156:
  mov    -0xc(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L190
  nop
  nop
  leave
  ret
```

assistant: ```c
void reverseWords(char *s) {
  int len = strlen(s);
  int count = 0;
  while (s[count] == ' ')
    count++;
  for (int i = count; i < len + 1; i++)
    s[i - count] = s[i];
  len -= count;
  while (s[len - 1] == ' ')
    len--;
  s[len] = '\0';
  int index = 0;
  count = 0;
  for (int i = 0; i < len; i++) {
    if (s[i] != ' ') {
      s[index++] = s[i];
      count = 0;
    } else {
      if (!count)
        s[index++] = s[i];
      count++;
    }
  }
  s[index] = '\0';
  len = index;
  for (int i = 0; i < len / 2; i++) {
    char c = s[i];
    s[i] = s[len - i - 1];
    s[len - i - 1] = c;
  }
  int begin = 0, end = 0;
  for (int i = 0; i < len; i++) {
    if (s[i] == ' ' || i == len - 1) {
      end = i;
      if (i != len - 1)
        end--;
      int size = end - begin + 1;
      for (int j = 0; j < size / 2; j++) {
        char c = s[begin + j];
        s[begin + j] = s[end - j];
        s[end - j] = c;
      }
      begin = end + 2;
    }
  }
}
```