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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xf8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x114(%rbp)
  lea    -0x114(%rbp),%rsi
  lea    D14(%rip),%rdi
  call   <scanf@plt>
  mov    -0x114(%rbp),%edi
  movslq %edi,%rax
  lea    (%rax,%rax,4),%rax
  lea    (%rax,%rax,4),%rax
  shl    $0x5,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L176:
  cmp    %rdx,%rsp
  je     L173
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L176
L173:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L179
  orq    $0x0,-0x8(%rsp,%rdx,1)
L179:
  mov    %rsp,%r14
  test   %edi,%edi
  jle    L12
  mov    %r14,%r13
  mov    $0x0,%r15d
  lea    -0xa0(%rbp),%r12
  jmp    L197
L24:
  movsbq (%rbx,%r12,1),%rax
  mov    %rax,0x0(%r13,%rbx,8)
  add    $0x1,%rbx
L188:
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    %rbx,%rax
  ja     L24
  movslq %r15d,%rdx
  lea    (%rdx,%rdx,4),%rdx
  lea    (%rdx,%rdx,4),%rdx
  lea    (%rax,%rdx,4),%rax
  movq   $0x0,(%r14,%rax,8)
  add    $0x1,%r15d
  mov    -0x114(%rbp),%edi
  add    $0x320,%r13
  cmp    %r15d,%edi
  jle    L12
L197:
  mov    %r12,%rsi
  lea    D22(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    $0x0,%ebx
  jmp    L188
L12:
  lea    -0x110(%rbp),%rsi
  lea    -0xa8(%rbp),%r9
  mov    %rsi,%rax
L2:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %r9,%rax
  jne    L2
  test   %edi,%edi
  jle    L124
  mov    $0x0,%ecx
  jmp    L182
L135:
  cltq
  movl   $0x1,-0x110(%rbp,%rax,4)
L88:
  add    $0x8,%rdx
  mov    (%rdx),%rax
  test   %rax,%rax
  je     L42
L53:
  movsbl %al,%eax
  sub    $0x61,%eax
  test   %ecx,%ecx
  je     L135
  movslq %eax,%r8
  cmp    %ecx,-0x110(%rbp,%r8,4)
  jne    L88
  mov    %r10d,-0x110(%rbp,%r8,4)
  jmp    L88
L42:
  add    $0x1,%ecx
  add    $0x320,%r14
  cmp    %edi,%ecx
  je     L124
L182:
  mov    (%r14),%rax
  mov    %r14,%rdx
  lea    0x1(%rcx),%r10d
  test   %rax,%rax
  jne    L53
  jmp    L42
L124:
  mov    $0x0,%eax
L125:
  cmp    %edi,(%rsi)
  sete   %dl
  movzbl %dl,%edx
  add    %edx,%eax
  add    $0x4,%rsi
  cmp    %r9,%rsi
  jne    L125
  mov    %eax,%esi
  lea    D14(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L15
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L15:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D14
type: string
name: retrieve_data
arguments: tag: D22
type: string

tool: D14: %d


tool: D22: %s

assistant: ```c
int main() {
  int a = 0;
  scanf("%d\n", &a);
  char *s[a][100];
  int i = 0;
  int j = 0;
  int count = 0;
  int hashtable[26];
  for (; i < a; i++) {
    char word[100];
    scanf("%s", word);
    for (j = 0; j < strlen(word); j++)
      s[i][j] = word[j];
    s[i][strlen(word)] = '\0';
  }
  for (i = 0; i < 26; i++)
    hashtable[i] = 0;
  for (i = 0; i < a; i++) {
    for (j = 0; s[i][j] != '\0'; j++) {
      char c = s[i][j];
      int temp = ((int)c - 97);
      int t = i;
      if (t == 0)
        hashtable[temp] = t + 1;
      else {
        if (hashtable[temp] == t)
          hashtable[temp] = t + 1;
      }
    }
  }
  for (i = 0; i < 26; i++) {
    if (hashtable[i] == a) {
      count++;
    }
  }
  printf("%d\n", count);
  return 0;
}
```