user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<CheckPassword>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x18,%rsp
  call   <strlen@plt>
  mov    %eax,%r12d
  sub    $0x7,%eax
  cmp    $0x4,%eax
  ja     L153
  lea    -0x1(%r12),%eax
  mov    %rbp,%rdx
  xor    %esi,%esi
  lea    0x1(%rbp,%rax,1),%rdi
  nopl   0x0(%rax,%rax,1)
L126:
  movzbl (%rdx),%eax
  lea    -0x30(%rax),%ecx
  sub    $0x3a,%eax
  cmp    $0x26,%al
  jbe    L110
  cmp    $0x4a,%cl
  ja     L110
  cmp    $0xa,%cl
  adc    $0x0,%esi
  add    $0x1,%rdx
  cmp    %rdi,%rdx
  jne    L126
  test   %esi,%esi
  je     L161
  mov    %r12d,%eax
  mov    $0x1,%r15d
  mov    %rax,0x8(%rsp)
L152:
  movzbl -0x1(%rbp,%r15,1),%r14d
  lea    -0x1(%r15),%r13d
  cmp    %r14b,0x0(%rbp,%r15,1)
  je     L75
  mov    %r15,%rbx
  cmp    %r15d,%r12d
  jg     L112
  jmp    L135
  nopl   0x0(%rax)
L69:
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jle    L135
L112:
  mov    %ebx,%edx
  cmp    %r14b,0x0(%rbp,%rbx,1)
  jne    L69
  mov    %r13d,%esi
  lea    D34(%rip),%rdi
  xor    %eax,%eax
  mov    %ebx,0x4(%rsp)
  call   <printf@plt>
  mov    0x4(%rsp),%edx
  mov    %r13d,%esi
  mov    %rbp,%rdi
  call   <check@plt>
  test   %eax,%eax
  jne    L69
  lea    D35(%rip),%rdi
  call   <puts@plt>
  xchg   %ax,%ax
L166:
  xor    %eax,%eax
L14:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L110:
  lea    D50(%rip),%rdi
  call   <puts@plt>
  jmp    L166
  cs nopw 0x0(%rax,%rax,1)
L135:
  add    $0x1,%r15
  cmp    %r15,0x8(%rsp)
  jne    L152
  jmp    L14
  nopl   0x0(%rax)
L153:
  lea    D31(%rip),%rdi
  call   <puts@plt>
  jmp    L166
L161:
  lea    D25(%rip),%rdi
  call   <puts@plt>
  jmp    L166
L75:
  lea    D58(%rip),%rdi
  call   <puts@plt>
  jmp    L166
```

tool_calls: name: extract_symbolic_data
arguments: label: D34
datatype: string
name: extract_symbolic_data
arguments: label: D35
datatype: string
name: extract_symbolic_data
arguments: label: D50
datatype: string
name: extract_symbolic_data
arguments: label: D31
datatype: string
name: extract_symbolic_data
arguments: label: D25
datatype: string
name: extract_symbolic_data
arguments: label: D58
datatype: string

tool: D34: %d - %d


tool: D35: PATTERN FOUND!

tool: D50: As contains capital or special character !

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

tool: D25: As contains no numbers!

tool: D58: Contains consecutive same characters

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;
        }
      }
    }
  }
}
```