user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    $0x68,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    $0x19000,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    %rax,%rsi
  lea    D41(%rip),%rdi
  call   <scanf@plt>
  mov    $0x1a,%edx
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L10
  mov    %r13,%rdx
  lea    -0x1(%rax),%eax
  lea    0x1(%r13,%rax,1),%rcx
L83:
  movsbq (%rdx),%rax
  addl   $0x1,-0x184(%rbp,%rax,4)
  add    $0x1,%rdx
  cmp    %rcx,%rdx
  jne    L83
L10:
  mov    $0x19,%edx
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <quickSort@plt>
  lea    0x4(%rbp),%rax
  mov    $0x0,%edx
  mov    $0x0,%esi
  jmp    L157
L49:
  lea    0x1(%rsi),%eax
  test   %esi,%esi
  je     L11
  cmp    $0x2,%eax
  jne    L129
  lea    0x1(%rbx),%edx
  cmp    $0x18,%edx
  jg     L143
  movslq %edx,%rax
  lea    0x0(%rbp,%rax,4),%rax
L108:
  mov    (%rax),%ecx
  add    $0x4,%rax
  cmp    (%rax),%ecx
  jne    L186
  add    $0x1,%edx
  cmp    $0x19,%edx
  jne    L108
  jmp    L143
L11:
  lea    D2(%rip),%rdi
  call   <printf@plt>
  jmp    L25
L186:
  mov    %edx,%r12d
L143:
  movslq %r12d,%rax
  mov    0x0(%rbp,%rax,4),%ecx
  mov    %ecx,%edx
  sub    0x4(%rbp,%rax,4),%edx
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  cmp    $0x1,%eax
  je     L119
  cmp    $0x1,%ecx
  je     L119
L77:
  lea    D31(%rip),%rdi
  call   <printf@plt>
  jmp    L25
L119:
  mov    %r12d,%eax
  sub    %ebx,%eax
  cmp    $0x1,%eax
  je     L73
  cmp    $0x18,%r12d
  jne    L77
L73:
  lea    D2(%rip),%rdi
  call   <printf@plt>
  jmp    L25
L129:
  lea    D31(%rip),%rdi
  call   <printf@plt>
L25:
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L81:
  cmpl   $0x0,(%rax)
  cmovne %edx,%ebx
L158:
  add    $0x1,%edx
  add    $0x4,%rax
  cmp    $0x19,%edx
  je     L49
L157:
  mov    -0x4(%rax),%ecx
  test   %ecx,%ecx
  je     L81
  cmp    (%rax),%ecx
  setne  %cl
  movzbl %cl,%ecx
  add    %ecx,%esi
  jmp    L158
```

tool_calls: name: read_data
arguments: data_label: D41
type: string
name: read_data
arguments: data_label: D2
type: string
name: read_data
arguments: data_label: D31
type: string

tool: D41: %s

tool: D2: YES

tool: D31: NO

assistant: ```c
int main() {
  int *arr = (int *)malloc(sizeof(int) * 26);
  char *s = (char *)malloc(sizeof(char) * 102400);
  scanf("%s", s);
  memset(arr, 0, 26);
  int len = strlen(s);
  for (int i = 0; i < len; i++) {
    arr[s[i] - 'a']++;
  }
  int count = 0;
  int idx;
  quickSort(arr, 0, 25);
  for (int i = 0; i < 25; i++) {
    if (arr[i] != 0 && arr[i] != arr[i + 1]) {
      count++;
    }
    if (arr[i] == 0 && arr[i + 1] != 0) {
      idx = i;
    }
  }
  count = count + 1;
  if (count == 1) {
    printf("YES");
  } else if (count == 2) {
    int j;
    for (int i = idx + 1; i < 25; i++) {
      if (arr[i] != arr[i + 1]) {
        j = i;
        break;
      }
    }
    if ((abs(arr[j] - arr[j + 1]) == 1 || arr[j] == 1) && (j - idx == 1 || 25 - j == 1))
      printf("YES");
    else
      printf("NO");
  } else {
    printf("NO");
  }
  return 0;
}
```