user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %r15
  lea    D31(%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    L91
  lea    0x44(%rsp),%rax
  movl   $0x0,0x4(%rsp)
  lea    0x50(%rsp),%rbp
  mov    %rax,0x18(%rsp)
  lea    0x40(%rsp),%rax
  lea    D35(%rip),%r14
  mov    %rax,0x10(%rsp)
  lea    0x3c(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    0x51(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    0x8d(%rsp),%rax
  mov    %rax,0x28(%rsp)
  xchg   %ax,%ax
L64:
  mov    0x18(%rsp),%rdx
  mov    0x10(%rsp),%rsi
  lea    D5(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    0x40(%rsp),%edx
  test   %edx,%edx
  jle    L77
  mov    %rbp,%r12
  xor    %ebx,%ebx
L63:
  mov    %r12,%rdi
  add    $0x1,%ebx
  add    $0x3c,%r12
  call   <gets@plt>
  mov    0x40(%rsp),%eax
  cmp    %ebx,%eax
  jg     L63
  test   %eax,%eax
  jle    L77
  mov    0x44(%rsp),%r8d
  mov    0x20(%rsp),%rbx
  lea    -0x1(%rax),%edx
  mov    %rdx,%rax
  lea    -0x1(%r8),%edi
  shl    $0x4,%rax
  lea    (%rbx,%rdi,1),%rsi
  mov    0x28(%rsp),%rbx
  sub    %rdx,%rax
  lea    (%rbx,%rdi,1),%rcx
  lea    (%rcx,%rax,4),%r9
  nopw   0x0(%rax,%rax,1)
L29:
  mov    %rsi,%rax
  sub    %rdi,%rax
  sub    $0x1,%rax
  test   %r8d,%r8d
  jle    L117
  nop
L9:
  movzbl (%rax),%edx
  lea    -0x41(%rdx),%ecx
  cmp    $0x19,%cl
  ja     L33
  add    $0x20,%edx
  mov    %dl,(%rax)
L33:
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L9
L117:
  add    $0x3c,%rsi
  cmp    %r9,%rsi
  jne    L29
L77:
  mov    0x8(%rsp),%rsi
  lea    D31(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    0x3c(%rsp),%eax
  test   %eax,%eax
  jle    L53
  xor    %r15d,%r15d
  lea    0x4c(%rsp),%r13
  lea    0x48(%rsp),%r12
  lea    0xe60(%rsp),%rbx
  nopl   0x0(%rax)
L121:
  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     L121
L53:
  mov    0x38(%rsp),%eax
  lea    -0x1(%rax),%edx
  cmp    0x4(%rsp),%edx
  je     L103
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x38(%rsp),%eax
L103:
  addl   $0x1,0x4(%rsp)
  mov    0x4(%rsp),%ebx
  cmp    %ebx,%eax
  jg     L64
L91:
  mov    0xec8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L50
  add    $0xed8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L50:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D31
data_type: string
name: unpack_data
arguments: label: D35
data_type: string
name: unpack_data
arguments: label: D5
data_type: string

tool: D31: %d

tool: D35: %d %d

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