user: 下面的汇编指令对应的C源代码是什么:

```asm
<isValid>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x6c(%rbp)
  cmpl   $0x0,-0x6c(%rbp)
  jne    L194
  mov    $0x1,%eax
  jmp    L18
L194:
  mov    -0x6c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L189:
  cmp    %rdx,%rsp
  je     L119
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L189
L119:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L63
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L63:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x6c(%rbp),%edx
  mov    -0x78(%rbp),%rcx
  mov    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x50(%rbp),%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x6c(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  jmp    L277
L203:
  mov    -0x68(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  je     L278
  mov    -0x68(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  je     L278
  mov    -0x68(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7d,%al
  jne    L28
L278:
  movl   $0x0,-0x70(%rbp)
  mov    -0x68(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x60(%rbp)
  jmp    L57
L52:
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L15
  subq   $0x1,-0x60(%rbp)
  jmp    L57
L15:
  mov    -0x68(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  jne    L122
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  je     L99
L122:
  mov    -0x68(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  jne    L258
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5b,%al
  je     L99
L258:
  mov    -0x68(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7d,%al
  jne    L160
  mov    -0x60(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7b,%al
  jne    L160
L99:
  mov    -0x68(%rbp),%rax
  movb   $0x20,(%rax)
  mov    -0x60(%rbp),%rax
  movb   $0x20,(%rax)
  movl   $0x1,-0x70(%rbp)
  jmp    L244
L160:
  mov    $0x0,%eax
  jmp    L18
L57:
  mov    -0x60(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  jae    L52
L244:
  cmpl   $0x0,-0x70(%rbp)
  jne    L28
  mov    $0x0,%eax
  jmp    L18
L28:
  addq   $0x1,-0x68(%rbp)
L277:
  mov    -0x68(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  jbe    L203
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  jmp    L206
L31:
  mov    -0x68(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L188
  mov    $0x0,%eax
  jmp    L18
L188:
  subq   $0x1,-0x68(%rbp)
L206:
  mov    -0x68(%rbp),%rax
  cmp    -0x48(%rbp),%rax
  jae    L31
  mov    $0x1,%eax
L18:
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L163
  call   <__stack_chk_fail@plt>
L163:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
bool isValid(char *s) {
  int len = strlen(s);
  if (!len) {
    return true;
  }
  char str[len];
  strncpy(str, s, len);
  char *startPos = str;
  char *endPos = startPos + len - 1;
  char *rightPos = startPos;
  while (rightPos <= endPos) {
    if (*rightPos == ')' || *rightPos == ']' || *rightPos == '}') {
      int clear = 0;
      char *leftPos = rightPos - 1;
      while (leftPos >= startPos) {
        if (*leftPos == ' ') {
          leftPos--;
          continue;
        }
        if ((*rightPos == ')' && *leftPos == '(') || (*rightPos == ']' && *leftPos == '[') || (*rightPos == '}' && *leftPos == '{')) {
          *rightPos = ' ';
          *leftPos = ' ';
          clear = 1;
          break;
        }
        return false;
      }
      if (!clear) {
        return false;
      }
    }
    rightPos++;
  }
  rightPos = endPos;
  while (rightPos >= startPos) {
    if (*rightPos != ' ') {
      return false;
    }
    rightPos--;
  }
  return true;
}
```