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    $0x68,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  lea    -0x68(%rbp),%rdx
  lea    -0x6c(%rbp),%rax
  mov    %rax,%rsi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x6c(%rbp),%ecx
  movslq %ecx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x58(%rbp)
  movslq %ecx,%rax
  mov    %rax,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  mov    -0x80(%rbp),%r10
  mov    -0x78(%rbp),%r11
  imul   $0xa0,%r11,%rdx
  imul   $0x0,%r10,%rax
  lea    (%rdx,%rax,1),%rsi
  mov    $0xa0,%eax
  mul    %r10
  add    %rdx,%rsi
  mov    %rsi,%rdx
  movslq %ecx,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  movslq %ecx,%rax
  mov    %rax,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  mov    -0x90(%rbp),%r8
  mov    -0x88(%rbp),%r9
  imul   $0xa0,%r9,%rdx
  imul   $0x0,%r8,%rax
  lea    (%rdx,%rax,1),%rsi
  mov    $0xa0,%eax
  mul    %r8
  add    %rdx,%rsi
  mov    %rsi,%rdx
  movslq %ecx,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L102:
  cmp    %rdx,%rsp
  je     L39
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L102
L39:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L70
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L70:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x50(%rbp)
  movl   $0x0,-0x60(%rbp)
  jmp    L44
L76:
  mov    -0x60(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    -0x50(%rbp),%rdx
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x60(%rbp)
L44:
  mov    -0x6c(%rbp),%eax
  cmp    %eax,-0x60(%rbp)
  jl     L76
  lea    -0x64(%rbp),%rax
  mov    %rax,%rsi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x64(%rbp),%ecx
  movslq %ecx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %ecx,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  imul   $0xa0,%r15,%rdx
  imul   $0x0,%r14,%rax
  lea    (%rdx,%rax,1),%rsi
  mov    $0xa0,%eax
  mul    %r14
  add    %rdx,%rsi
  mov    %rsi,%rdx
  movslq %ecx,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  movslq %ecx,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  imul   $0xa0,%r13,%rdx
  imul   $0x0,%r12,%rax
  lea    (%rdx,%rax,1),%rsi
  mov    $0xa0,%eax
  mul    %r12
  add    %rdx,%rsi
  mov    %rsi,%rdx
  movslq %ecx,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L100:
  cmp    %rdx,%rsp
  je     L40
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L100
L40:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L91
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L91:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x5c(%rbp)
  jmp    L36
L3:
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  mov    -0x40(%rbp),%rdx
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x5c(%rbp)
L36:
  mov    -0x64(%rbp),%eax
  cmp    %eax,-0x5c(%rbp)
  jl     L3
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L56
  call   <__stack_chk_fail@plt>
L56:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D30
data_type: string
name: extract_symbolic_data
arguments: tag: D12
data_type: string
name: extract_symbolic_data
arguments: tag: D39
data_type: string

tool: D30: %d %d

tool: D12: %s

tool: D39: %d

assistant: ```c
int main() {
  int n, res_sayisi;
  scanf("%d %d", &n, &res_sayisi);
  char db[n][20];
  for (int i = 0; i < n; i++) {
    scanf("%s", db[i]);
  }
  int arama;
  scanf("%d", &arama);
  char aramalar[arama][20];
  for (int i = 0; i < arama; i++) {
    scanf("%s", aramalar[i]);
  }
  return 0;
}
```