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

```asm
<palindrome>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x38(%rbp)
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L101
L51:
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x24(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x38(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %eax,%edi
  call   <tolower@plt>
  mov    %al,(%rbx)
  addl   $0x1,-0x24(%rbp)
L101:
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L51
  movl   $0x0,-0x24(%rbp)
  jmp    L13
L71:
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <islower@plt>
  test   %rax,%rax
  je     L53
  addl   $0x1,-0x1c(%rbp)
L53:
  addl   $0x1,-0x24(%rbp)
L13:
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L71
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x24(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  jmp    L46
L79:
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <islower@plt>
  test   %rax,%rax
  je     L92
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x20(%rbp),%edx
  movslq %edx,%rdx
  lea    -0x1(%rdx),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  subl   $0x1,-0x20(%rbp)
L92:
  addl   $0x1,-0x24(%rbp)
L46:
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L79
  movl   $0x0,-0x24(%rbp)
  jmp    L78
L114:
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1c(%rbp),%eax
  sub    $0x1,%eax
  sub    -0x24(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L72
  mov    $0x0,%eax
  jmp    L113
L72:
  addl   $0x1,-0x24(%rbp)
L78:
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x24(%rbp)
  jl     L114
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x1,%eax
L113:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int palindrome(char *String) {
  int temp = 0;
  int label = 0;
  int chars = 0;
  for (temp = 0; String[temp]; temp++) {
    String[temp] = tolower(String[temp]);
  }
  for (temp = 0; String[temp] != '\0'; temp++) {
    if (islower(String[temp])) {
      chars++;
    }
  }
  char *str = (char *)malloc(chars * sizeof(char));
  for (temp = 0, label = chars; String[temp] != '\0'; temp++) {
    if (islower(String[temp])) {
      str[label - 1] = String[temp];
      label--;
    }
  }
  for (temp = 0; temp < (chars / 2); temp++) {
    if (str[temp] != str[chars - 1 - temp]) {
      return 0;
    }
  }
  free(str);
  return 1;
}
```