user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x140,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x138(%rbp),%rax
  mov    %rax,%rsi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  jmp    L20
L136:
  movl   $0x0,-0x134(%rbp)
  lea    -0x120(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0xd,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  lea    -0xb0(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0xe,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  movl   $0x0,-0x128(%rbp)
  lea    -0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  jmp    L28
L115:
  mov    -0x134(%rbp),%eax
  cltq
  movzbl -0x40(%rbp,%rax,1),%eax
  cmp    $0x60,%al
  jle    L120
  mov    -0x134(%rbp),%eax
  cltq
  movzbl -0x40(%rbp,%rax,1),%eax
  cmp    $0x7a,%al
  jg     L120
  mov    -0x134(%rbp),%eax
  cltq
  movzbl -0x40(%rbp,%rax,1),%eax
  movsbl %al,%eax
  sub    $0x61,%eax
  movslq %eax,%rdx
  mov    -0x120(%rbp,%rdx,4),%edx
  add    $0x1,%edx
  cltq
  mov    %edx,-0x120(%rbp,%rax,4)
L120:
  addl   $0x1,-0x134(%rbp)
L28:
  mov    -0x134(%rbp),%eax
  cltq
  movzbl -0x40(%rbp,%rax,1),%eax
  test   %al,%al
  jne    L115
  movl   $0x0,-0x130(%rbp)
  jmp    L175
L68:
  movl   $0x0,-0x124(%rbp)
  mov    -0x130(%rbp),%eax
  cltq
  mov    -0x120(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L134
  movl   $0x0,-0x12c(%rbp)
  jmp    L164
L119:
  mov    -0x130(%rbp),%eax
  cmp    -0x12c(%rbp),%eax
  je     L82
  mov    -0x12c(%rbp),%eax
  cltq
  mov    -0x120(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L82
  mov    -0x12c(%rbp),%eax
  cltq
  mov    -0x120(%rbp,%rax,4),%eax
  add    %eax,-0x124(%rbp)
L82:
  addl   $0x1,-0x12c(%rbp)
L164:
  cmpl   $0x19,-0x12c(%rbp)
  jle    L119
  mov    -0x130(%rbp),%eax
  cltq
  mov    -0x124(%rbp),%edx
  mov    %edx,-0xb0(%rbp,%rax,4)
L134:
  addl   $0x1,-0x130(%rbp)
L175:
  cmpl   $0x19,-0x130(%rbp)
  jle    L68
  movl   $0x0,-0x130(%rbp)
  jmp    L81
L6:
  mov    -0x130(%rbp),%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L133
  mov    -0x130(%rbp),%eax
  cltq
  mov    -0x120(%rbp,%rax,4),%edx
  mov    -0x130(%rbp),%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jne    L133
  movl   $0x1,-0x128(%rbp)
  jmp    L146
L133:
  addl   $0x1,-0x130(%rbp)
L81:
  cmpl   $0x19,-0x130(%rbp)
  jle    L6
L146:
  cmpl   $0x1,-0x128(%rbp)
  jne    L114
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L20
L114:
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L20:
  mov    -0x138(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x138(%rbp)
  test   %eax,%eax
  jne    L136
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L157
  call   <__stack_chk_fail@plt>
L157:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D29
data_type: string
name: retrieve_data
arguments: label: D28
data_type: string
name: retrieve_data
arguments: label: D6
data_type: string
name: retrieve_data
arguments: label: D23
data_type: string

tool: D29: %d

tool: D28: %s

tool: D6: YES


tool: D23: NO


assistant: ```c
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    char string[52];
    int c = 0, count[26] = {0}, k[28] = {0}, i, j, p = 0;
    scanf("%s", string);
    while (string[c] != '\0') {
      if (string[c] >= 'a' && string[c] <= 'z')
        count[string[c] - 'a']++;
      c++;
    }
    for (i = 0; i < 26; i++) {
      int s = 0;
      if (count[i] != 0) {
        for (j = 0; j < 26; j++) {
          if (i != j && count[j] != 0)
            s = s + count[j];
        }
        k[i] = s;
      }
    }
    for (i = 0; i < 26; i++) {
      if (k[i] != 0 && (count[i] == k[i])) {
        p = 1;
        break;
      }
    }
    if (p == 1)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
```