user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    -0xb4(%rbp),%rsi
  push   %r13
  push   %r12
  push   %rbx
  lea    D22(%rip),%rbx
  mov    %rbx,%rdi
  sub    $0xa8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  lea    -0xb0(%rbp),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0xb4(%rbp),%rax
  mov    %rsp,%rcx
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L82
L66:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L66
L82:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L54
L92:
  xor    %eax,%eax
  mov    %rsp,%rsi
  lea    D5(%rip),%rdi
  mov    %rsp,%r13
  call   <scanf@plt>
  cmpl   $0x0,-0xb0(%rbp)
  jle    L114
  lea    -0xa8(%rbp),%rax
  xor    %r12d,%r12d
  lea    -0xa0(%rbp),%r14
  mov    %rax,-0xc8(%rbp)
  lea    -0xa4(%rbp),%rax
  lea    -0xac(%rbp),%r15
  mov    %rax,-0xd0(%rbp)
  cs nopw 0x0(%rax,%rax,1)
L76:
  xor    %eax,%eax
  mov    $0xd,%ecx
  mov    %r14,%rdi
  mov    %r15,%rsi
  rep stos %rax,%es:(%rdi)
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    -0xc8(%rbp),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0xd0(%rbp),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0xac(%rbp),%eax
  mov    -0xa8(%rbp),%esi
  cmp    %esi,%eax
  jg     L10
  movslq %eax,%rdi
  sub    %eax,%esi
  add    %rdi,%rsi
  lea    -0x1(%r13,%rdi,1),%rcx
  add    %r13,%rsi
  nopw   0x0(%rax,%rax,1)
L17:
  movsbl (%rcx),%eax
  add    $0x1,%rcx
  sub    $0x61,%eax
  cltq
  addl   $0x1,-0xa0(%rbp,%rax,4)
  cmp    %rsi,%rcx
  jne    L17
L10:
  mov    -0xa4(%rbp),%ecx
  mov    $0x1,%eax
  xor    %esi,%esi
  test   %ecx,%ecx
  jg     L68
  jmp    L115
  nop
L107:
  mov    $0x1,%esi
L86:
  add    $0x1,%rax
  cmp    $0x1b,%rax
  je     L89
L68:
  mov    -0x4(%r14,%rax,4),%edx
  test   %edx,%edx
  jle    L86
  mov    %eax,%esi
  sub    $0x1,%ecx
  jne    L107
  movl   $0x0,-0xa4(%rbp)
L174:
  add    $0x60,%esi
  lea    D35(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  nopw   0x0(%rax,%rax,1)
L60:
  add    $0x1,%r12d
  cmp    %r12d,-0xb0(%rbp)
  jg     L76
L114:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L160
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L89:
  test   %sil,%sil
  je     L101
  mov    %ecx,-0xa4(%rbp)
L101:
  lea    D0(%rip),%rdi
  call   <puts@plt>
  jmp    L60
L115:
  jne    L60
  xor    %esi,%esi
  jmp    L174
L54:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L92
L160:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D22
type_guessed: string
name: read_data
arguments: data_label: D5
type_guessed: string
name: read_data
arguments: data_label: D35
type_guessed: string
name: read_data
arguments: data_label: D0
type_guessed: string

tool: D22: %d

tool: D5: %s

tool: D35: %c


tool: D0: Out of range

assistant: ```c
int main() {
  int n;
  int q;
  int i = 0;
  int j = 0;
  scanf("%d", &n);
  scanf("%d", &q);
  char word[n];
  scanf("%s", word);
  for (j = 0; j < q; j++) {
    int hashtable[26] = {0};
    int l, r, k;
    scanf("%d", &l);
    scanf("%d", &r);
    scanf("%d", &k);
    for (i = l - 1; i <= (r - 1); i++) {
      int temp = (int)word[i] - 97;
      hashtable[temp]++;
    }
    i = 0;
    while (k > 0 && i < 26) {
      if (hashtable[i] > 0) {
        k--;
      }
      i++;
    }
    if (k > 0)
      printf("Out of range\n");
    else if (k == 0)
      printf("%c\n", (i - 1) + 97);
  }
}
```