user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xeb8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xea8(%rsp)
  xor    %eax,%eax
  lea    0x18(%rsp),%rsi
  lea    D19(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x0,0x18(%rsp)
  jle    L114
  mov    $0x0,%r14d
  lea    D10(%rip),%r15
  lea    0x30(%rsp),%r12
  lea    0x31(%rsp),%rax
  mov    %rax,0x8(%rsp)
  jmp    L177
L124:
  add    $0x1,%rax
  cmp    %rsi,%rax
  je     L86
L107:
  movzbl (%rax),%edx
  lea    -0x41(%rdx),%ecx
  cmp    $0x19,%cl
  ja     L124
  add    $0x20,%edx
  mov    %dl,(%rax)
  jmp    L124
L86:
  add    $0x3c,%rsi
  cmp    %r9,%rsi
  je     L73
L133:
  mov    %rsi,%rax
  sub    %rdi,%rax
  sub    $0x1,%rax
  test   %r8d,%r8d
  jg     L107
  jmp    L86
L73:
  lea    0x1c(%rsp),%rsi
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  cmpl   $0x0,0x1c(%rsp)
  jle    L70
  mov    $0x0,%ebx
  lea    D20(%rip),%r13
L127:
  lea    0xe40(%rsp),%rbp
  mov    %rbp,%rdi
  call   <gets@plt>
  lea    0x2c(%rsp),%rsi
  lea    0x28(%rsp),%rdi
  mov    %rbp,%r9
  mov    %r12,%r8
  mov    0x24(%rsp),%ecx
  mov    0x20(%rsp),%edx
  call   <judge@plt>
  mov    0x2c(%rsp),%eax
  lea    0x1(%rax),%edx
  mov    0x28(%rsp),%eax
  lea    0x1(%rax),%esi
  mov    %r13,%rdi
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%ebx
  cmp    %ebx,0x1c(%rsp)
  jg     L127
L70:
  mov    0x18(%rsp),%eax
  sub    $0x1,%eax
  cmp    %r14d,%eax
  jne    L147
L119:
  add    $0x1,%r14d
  cmp    %r14d,0x18(%rsp)
  jle    L114
L177:
  lea    0x24(%rsp),%rdx
  lea    0x20(%rsp),%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  cmpl   $0x0,0x20(%rsp)
  jle    L73
  mov    %r12,%rbp
  mov    $0x0,%ebx
L27:
  mov    %rbp,%rdi
  call   <gets@plt>
  add    $0x1,%ebx
  mov    0x20(%rsp),%eax
  add    $0x3c,%rbp
  cmp    %ebx,%eax
  jg     L27
  test   %eax,%eax
  jle    L73
  mov    0x24(%rsp),%r8d
  lea    -0x1(%r8),%edi
  mov    0x8(%rsp),%rbx
  lea    (%rbx,%rdi,1),%rsi
  lea    0x3d(%r12,%rdi,1),%rcx
  lea    -0x1(%rax),%edx
  mov    %rdx,%rax
  shl    $0x4,%rax
  sub    %rdx,%rax
  lea    (%rcx,%rax,4),%r9
  jmp    L133
L147:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L119
L114:
  mov    0xea8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L146
  mov    $0x0,%eax
  add    $0xeb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L146:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D19
data_type: string
name: retrieve_data
arguments: tag: D10
data_type: string
name: retrieve_data
arguments: tag: D20
data_type: string

tool: D19: %d

tool: D10: %d%d

tool: D20: %d %d

assistant: ```c
main() {
  char s[60][60], sc[100];
  int ca, i, j, l, k, m, n, ans;
  int lh, ll, length;
  scanf("%d", &ca);
  for (ans = 0; ans < ca; ans++) {
    scanf("%d%d", &m, &n);
    getchar();
    for (i = 0; i < m; i++)
      gets(s[i]);
    for (i = 0; i < m; i++)
      for (j = 0; j < n; j++)
        if (s[i][j] >= 'A' && s[i][j] <= 'Z')
          s[i][j] -= 'A' - 'a';
    scanf("%d", &k);
    getchar();
    for (l = 0; l < k; l++) {
      gets(sc);
      judge(&lh, &ll, m, n, s, sc);
      printf("%d %d", lh + 1, ll + 1);
      putchar('\n');
    }
    if (ans != ca - 1)
      putchar('\n');
  }
  return 0;
}
```