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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x7c(%rbp),%rax
  mov    %rax,%rsi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  jmp    L119
L56:
  mov    %rsp,%rax
  mov    %rax,-0xa0(%rbp)
  lea    -0x74(%rbp),%rdx
  lea    -0x78(%rbp),%rax
  mov    %rax,%rsi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x74(%rbp),%esi
  mov    -0x78(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %esi,%rax
  mov    %rax,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movslq %esi,%rax
  shl    $0x3,%rax
  mov    %rax,-0x98(%rbp)
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %esi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  movslq %edi,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  mov    %r13,%rdx
  imul   %r14,%rdx
  mov    %r15,%rax
  imul   %r12,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r12,%rax
  mul    %r14
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  mov    -0xb0(%rbp),%r9
  mov    -0xa8(%rbp),%r10
  mov    %r10,%rdx
  mov    -0x90(%rbp),%rcx
  mov    -0x88(%rbp),%rbx
  imul   %rcx,%rdx
  mov    %rcx,-0x90(%rbp)
  mov    %rbx,-0x88(%rbp)
  mov    %rbx,%rax
  imul   %r9,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r9,%rax
  mulq   -0x90(%rbp)
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L54:
  cmp    %rdx,%rsp
  je     L170
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L54
L170:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L105
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L105:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L77
L84:
  movl   $0x0,-0x6c(%rbp)
  jmp    L67
L176:
  mov    -0x98(%rbp),%rdx
  shr    $0x3,%rdx
  mov    -0x70(%rbp),%eax
  cltq
  imul   %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x6c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x6c(%rbp)
L67:
  mov    -0x74(%rbp),%eax
  cmp    %eax,-0x6c(%rbp)
  jl     L176
  addl   $0x1,-0x70(%rbp)
L77:
  mov    -0x78(%rbp),%eax
  cmp    %eax,-0x70(%rbp)
  jl     L84
  movq   $0x0,-0x58(%rbp)
  movl   $0x0,-0x68(%rbp)
  jmp    L74
L161:
  movl   $0x0,-0x64(%rbp)
  jmp    L172
L10:
  mov    -0x74(%rbp),%eax
  sub    -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x78(%rbp),%eax
  sub    -0x68(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <min@plt>
  lea    -0x1(%rax),%ebx
  mov    -0x64(%rbp),%eax
  mov    -0x68(%rbp),%edx
  mov    %eax,%esi
  mov    %edx,%edi
  call   <min@plt>
  mov    %ebx,%esi
  mov    %eax,%edi
  call   <min@plt>
  mov    %eax,-0x5c(%rbp)
  movl   $0x0,-0x60(%rbp)
  jmp    L62
L165:
  addq   $0x1,-0x58(%rbp)
  addl   $0x1,-0x60(%rbp)
L62:
  mov    -0x60(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jg     L179
  mov    -0x98(%rbp),%rbx
  mov    %rbx,%rdi
  shr    $0x3,%rdi
  mov    -0x68(%rbp),%edx
  mov    -0x60(%rbp),%eax
  add    %eax,%edx
  mov    -0x40(%rbp),%rcx
  mov    -0x64(%rbp),%eax
  movslq %eax,%rsi
  movslq %edx,%rax
  imul   %rdi,%rax
  add    %rsi,%rax
  mov    (%rcx,%rax,8),%r8
  mov    %rbx,%rdi
  shr    $0x3,%rdi
  mov    -0x68(%rbp),%eax
  sub    -0x60(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rsi
  mov    -0x64(%rbp),%eax
  movslq %eax,%rcx
  movslq %edx,%rax
  imul   %rdi,%rax
  add    %rcx,%rax
  mov    (%rsi,%rax,8),%rax
  cmp    %rax,%r8
  jne    L179
  mov    %rbx,%rcx
  shr    $0x3,%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  mov    -0x40(%rbp),%rdx
  movslq %eax,%rsi
  mov    -0x68(%rbp),%eax
  cltq
  imul   %rcx,%rax
  add    %rsi,%rax
  mov    (%rdx,%rax,8),%rdi
  shr    $0x3,%rbx
  mov    %rbx,%rsi
  mov    -0x64(%rbp),%eax
  sub    -0x60(%rbp),%eax
  mov    -0x40(%rbp),%rdx
  movslq %eax,%rcx
  mov    -0x68(%rbp),%eax
  cltq
  imul   %rsi,%rax
  add    %rcx,%rax
  mov    (%rdx,%rax,8),%rax
  cmp    %rax,%rdi
  je     L165
L179:
  addl   $0x1,-0x64(%rbp)
L172:
  mov    -0x74(%rbp),%eax
  cmp    %eax,-0x64(%rbp)
  jl     L10
  addl   $0x1,-0x68(%rbp)
L74:
  mov    -0x78(%rbp),%eax
  cmp    %eax,-0x68(%rbp)
  jl     L161
  mov    -0x58(%rbp),%rax
  mov    %rax,%rsi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0xa0(%rbp),%rsp
L119:
  mov    -0x7c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x7c(%rbp)
  test   %eax,%eax
  jne    L56
  mov    $0x0,%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L120
  call   <__stack_chk_fail@plt>
L120:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: tag: D2
type: string
name: unpack_data
arguments: tag: D7
type: string
name: unpack_data
arguments: tag: D15
type: string
name: unpack_data
arguments: tag: D11
type: string

tool: D2: %d

tool: D7: %d %d

tool: D15: %zu

tool: D11: %zu


assistant: ```c
int main() {
  int t, n, m;
  scanf("%d", &t);
  while (t--) {
    scanf("%d %d", &n, &m);
    size_t a[n][m];
    for (int i = 0; i < n; ++i)
      for (int j = 0; j < m; ++j)
        scanf("%zu", a[i] + j);
    size_t count = 0;
    for (int i = 0; i < n; ++i)
      for (int j = 0; j < m; ++j) {
        int max = min(min(i, j), min(n - i, m - j) - 1);
        for (int k = 0; k <= max && a[i + k][j] == a[i - k][j] && a[i][j + k] == a[i][j - k]; count++, ++k)
          ;
      }
    printf("%zu\n", count);
  }
  return 0;
}
```