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

```asm
<isItMagic>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  push   %r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movaps %xmm0,(%rsp)
  movq   $0x0,0x20(%rsp)
  movaps %xmm0,0x10(%rsp)
  test   %esi,%esi
  jle    L55
  mov    %rdi,%rbx
  xor    %r11d,%r11d
  xor    %r8d,%r8d
  xor    %esi,%esi
  mov    %rsp,%rcx
  mov    %ebp,%r15d
  lea    -0x1(%rbp),%r14d
  nopw   0x0(%rax,%rax,1)
L88:
  xor    %eax,%eax
  xor    %r9d,%r9d
  lea    0x1(%r11),%r12d
  nopl   0x0(%rax)
L102:
  mov    (%rbx,%rax,4),%edx
  cmp    %eax,%r11d
  lea    (%r12,%rax,1),%r10d
  lea    (%rsi,%rdx,1),%edi
  cmove  %edi,%esi
  cmp    %ebp,%r10d
  lea    (%r8,%rdx,1),%edi
  cmove  %edi,%r8d
  add    %edx,(%rcx,%rax,4)
  add    $0x1,%rax
  add    %edx,%r9d
  cmp    %rax,%r15
  jne    L102
  cmp    %r9d,%r13d
  jne    L30
  mov    %r12d,%r11d
  add    $0x28,%rbx
  cmp    %r12d,%ebp
  jne    L88
  lea    0x4(%rsp,%r14,4),%rax
  jmp    L66
  nopw   0x0(%rax,%rax,1)
L64:
  add    $0x4,%rcx
  cmp    %rcx,%rax
  je     L86
L66:
  mov    (%rcx),%r10d
  cmp    %r9d,%r10d
  je     L64
  mov    %r10d,%esi
  lea    D17(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
L75:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L54
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L30:
  mov    %r9d,%esi
  lea    D6(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L75
L55:
  xor    %r8d,%r8d
  xor    %esi,%esi
L86:
  cmp    %r13d,%esi
  jne    L21
  mov    $0x1,%eax
  cmp    %esi,%r8d
  je     L75
  mov    %r8d,%esi
  lea    D45(%rip),%rdi
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D31(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L75
L21:
  lea    D9(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L75
L54:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D17
datatype: string
name: unpack_data
arguments: label: D6
datatype: string
name: unpack_data
arguments: label: D45
datatype: string
name: unpack_data
arguments: label: D31
datatype: string
name: unpack_data
arguments: label: D9
datatype: string

tool: D17: COL SUM IS: %d

tool: D6: ROW SUM IS: %d

tool: D45: SECOND SUM IS: %d

tool: D31: 
Size is: %d


tool: D9: MAIND SUM IS: %d

assistant: ```c
int isItMagic(int square[10][10], int squareSize, int sumOfSquare) {
  int row, mainDiag, secondDiag, columns[10], i, j;
  row = 0;
  mainDiag = 0;
  secondDiag = 0;
  for (i = 0; i < 10; i++) {
    columns[i] = 0;
  }
  for (i = 0; i < squareSize; i++) {
    for (j = 0; j < squareSize; j++) {
      if (i == j) {
        mainDiag += square[i][j];
      }
      if (i + j + 2 == squareSize + 1) {
        secondDiag += square[i][j];
      }
      columns[j] += square[i][j];
      row += square[i][j];
    }
    if (row != sumOfSquare) {
      printf("ROW SUM IS: %d", row);
      return -1;
    }
    row = 0;
  }
  for (i = 0; i < squareSize; i++) {
    if (columns[i] != sumOfSquare) {
      printf("COL SUM IS: %d", columns[i]);
      return -1;
    }
  }
  if (mainDiag != sumOfSquare) {
    printf("MAIND SUM IS: %d", mainDiag);
    return -1;
  }
  if (secondDiag != sumOfSquare) {
    printf("SECOND SUM IS: %d", secondDiag);
    printf("\nSize is: %d\n", squareSize);
    return -1;
  }
  return 1;
}
```