user: 请将以下的汇编代码转换成C语言代码：

```asm
<CheckPassword>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc(%rbp)
  cmpl   $0x6,-0xc(%rbp)
  jle    L112
  cmpl   $0xb,-0xc(%rbp)
  jle    L85
L112:
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L218
L85:
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L10
L186:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L116
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x60,%al
  jle    L42
L116:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x7a,%al
  jg     L42
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jg     L213
L42:
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L218
L213:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L33
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L33
  addl   $0x1,-0x14(%rbp)
L33:
  addl   $0x1,-0x18(%rbp)
L10:
  mov    -0x18(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L186
  cmpl   $0x0,-0x14(%rbp)
  jg     L228
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L218
L228:
  movl   $0x0,-0x18(%rbp)
  jmp    L95
L66:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x19(%rbp)
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L191
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L218
L191:
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L45
L135:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    %al,-0x19(%rbp)
  jne    L128
  mov    -0x10(%rbp),%edx
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%edx
  mov    -0x18(%rbp),%ecx
  mov    -0x28(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <check@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jne    L128
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L218
L128:
  addl   $0x1,-0x10(%rbp)
L45:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L135
  addl   $0x1,-0x18(%rbp)
L95:
  mov    -0xc(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x18(%rbp)
  jl     L66
L218:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D28
type_guessed: string
name: read_data
arguments: data_tag: D41
type_guessed: string
name: read_data
arguments: data_tag: D34
type_guessed: string
name: read_data
arguments: data_tag: D58
type_guessed: string
name: read_data
arguments: data_tag: D42
type_guessed: string
name: read_data
arguments: data_tag: D51
type_guessed: string

tool: D28: As has less then 4 or greater than 11 characters

tool: D41: As contains capital or special character !

tool: D34: As contains no numbers!

tool: D58: Contains consecutive same characters

tool: D42: %d - %d


tool: D51: PATTERN FOUND!

assistant: ```c
int CheckPassword(char str[]) {
  int len = strlen(str), i;
  if (len < 7 || len > 11) {
    printf("As has less then 4 or greater than 11 characters\n");
    return 0;
  }
  int cnt = 0;
  for (i = 0; i < len; i++) {
    if ((str[i] > 57 && str[i] < 97) || str[i] > 122 || str[i] < 48) {
      printf("As contains capital or special character !\n");
      return 0;
    }
    if (str[i] >= 48 && str[i] <= 57) {
      cnt++;
    }
  }
  if (cnt <= 0) {
    printf("As contains no numbers!\n");
    return 0;
  }
  int j, pos;
  char temp;
  for (i = 0; i < len - 1; i++) {
    temp = str[i];
    if (str[i] == str[i + 1]) {
      printf("Contains consecutive same characters\n");
      return 0;
    }
    for (j = i + 1; j < len; j++) {
      if (temp == str[j]) {
        printf("%d - %d\n", i, j);
        pos = j;
        int r = check(str, i, pos);
        if (r == 0) {
          printf("PATTERN FOUND!\n");
          return 0;
        }
      }
    }
  }
}
```