user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r15
  lea    D32(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xed8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xec8(%rsp)
  xor    %eax,%eax
  lea    0x38(%rsp),%rsi
  call   <scanf@plt>
  mov    0x38(%rsp),%ecx
  test   %ecx,%ecx
  jle    L120
  lea    0x44(%rsp),%rax
  movl   $0x0,0x4(%rsp)
  lea    0x50(%rsp),%rbp
  mov    %rax,0x8(%rsp)
  lea    0x40(%rsp),%rax
  lea    D5(%rip),%r14
  mov    %rax,0x18(%rsp)
  lea    0x3c(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x51(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    0x8d(%rsp),%rax
  mov    %rax,0x28(%rsp)
L5:
  mov    0x8(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  lea    D9(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    0x40(%rsp),%edx
  test   %edx,%edx
  jle    L132
  mov    %rbp,%r12
  xor    %ebx,%ebx
  xchg   %ax,%ax
L109:
  mov    %r12,%rdi
  add    $0x1,%ebx
  add    $0x3c,%r12
  call   <gets@plt>
  mov    0x40(%rsp),%eax
  cmp    %ebx,%eax
  jg     L109
  test   %eax,%eax
  jle    L132
  mov    0x44(%rsp),%edx
  test   %edx,%edx
  jle    L132
  mov    0x20(%rsp),%rbx
  lea    -0x1(%rdx),%edi
  lea    -0x1(%rax),%edx
  mov    %rdx,%rax
  lea    (%rbx,%rdi,1),%rsi
  mov    0x28(%rsp),%rbx
  shl    $0x4,%rax
  sub    %rdx,%rax
  lea    (%rbx,%rdi,1),%rcx
  lea    (%rcx,%rax,4),%r8
  nopl   0x0(%rax)
L88:
  mov    %rsi,%rax
  sub    %rdi,%rax
  sub    $0x1,%rax
  nopw   0x0(%rax,%rax,1)
L55:
  movzbl (%rax),%edx
  lea    -0x41(%rdx),%ecx
  cmp    $0x19,%cl
  ja     L114
  add    $0x20,%edx
  mov    %dl,(%rax)
L114:
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L55
  add    $0x3c,%rsi
  cmp    %r8,%rsi
  jne    L88
L132:
  mov    0x10(%rsp),%rsi
  lea    D32(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    0x3c(%rsp),%eax
  test   %eax,%eax
  jle    L62
  xor    %r15d,%r15d
  lea    0x4c(%rsp),%r13
  lea    0x48(%rsp),%r12
  lea    0xe60(%rsp),%rbx
  nopl   0x0(%rax)
L63:
  mov    %rbx,%rdi
  add    $0x1,%r15d
  call   <gets@plt>
  mov    0x44(%rsp),%ecx
  mov    0x40(%rsp),%edx
  mov    %rbx,%r9
  mov    %rbp,%r8
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <judge@plt>
  mov    0x4c(%rsp),%eax
  mov    %r14,%rdi
  lea    0x1(%rax),%edx
  mov    0x48(%rsp),%eax
  lea    0x1(%rax),%esi
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  cmp    %r15d,0x3c(%rsp)
  jg     L63
L62:
  mov    0x38(%rsp),%eax
  sub    $0x1,%eax
  cmp    0x4(%rsp),%eax
  jne    L83
L120:
  mov    0xec8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L46
  add    $0xed8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L83:
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,0x4(%rsp)
  mov    0x4(%rsp),%eax
  cmp    %eax,0x38(%rsp)
  jg     L5
  jmp    L120
L46:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D32
type_infered: string
name: read_data
arguments: data_label: D5
type_infered: string
name: read_data
arguments: data_label: D9
type_infered: string

tool: D32: %d

tool: D5: %d %d

tool: D9: %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;
}
```