user: 下面的汇编指令对应的C源代码是什么:

```asm
<isitmagic>:
  endbr64
  test   %esi,%esi
  jle    L186
  push   %r12
  mov    %rdi,%r9
  push   %rbp
  lea    -0x1(%rsi),%ebp
  push   %rbx
  cmp    $0x2,%ebp
  jbe    L38
  mov    %esi,%edx
  mov    %rdi,%rax
  pxor   %xmm0,%xmm0
  shr    $0x2,%edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%rdi,%rdx,1),%rdx
  nopw   0x0(%rax,%rax,1)
L298:
  movdqu (%rax),%xmm4
  add    $0x10,%rax
  paddd  %xmm4,%xmm0
  cmp    %rdx,%rax
  jne    L298
  movdqa %xmm0,%xmm1
  mov    %esi,%eax
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%eax
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%edi
  test   $0x3,%sil
  je     L208
  movslq %eax,%rdx
  add    $0x1,%eax
  lea    (%r9,%rdx,4),%rdx
  add    (%rdx),%edi
  cmp    %esi,%eax
  jge    L208
L294:
  add    $0x1,%eax
  add    0x4(%rdx),%edi
  cmp    %eax,%esi
  jle    L208
  add    0x8(%rdx),%edi
L208:
  lea    -0x2(%rsi),%eax
  mov    %esi,%r10d
  lea    0xf9c(%r9),%rcx
  imul   $0xf9c,%rax,%rax
  and    $0xfffffffc,%r10d
  lea    0x1f38(%r9,%rax,1),%r12
  mov    %esi,%eax
  shr    $0x2,%eax
  lea    -0x1(%rax),%ebx
  add    $0x1,%rbx
  shl    $0x4,%rbx
  nopw   0x0(%rax,%rax,1)
L162:
  cmp    $0x2,%ebp
  jbe    L12
  lea    (%rbx,%rcx,1),%rdx
  mov    %rcx,%rax
  pxor   %xmm0,%xmm0
  nopl   0x0(%rax)
L88:
  movdqu (%rax),%xmm2
  add    $0x10,%rax
  paddd  %xmm2,%xmm0
  cmp    %rdx,%rax
  jne    L88
  movdqa %xmm0,%xmm1
  mov    %r10d,%edx
  psrldq $0x8,%xmm1
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%eax
  cmp    %esi,%r10d
  je     L274
L273:
  movslq %edx,%r8
  lea    0x1(%rdx),%r11d
  lea    (%rcx,%r8,4),%r8
  add    (%r8),%eax
  cmp    %esi,%r11d
  jge    L274
  add    $0x2,%edx
  add    0x4(%r8),%eax
  cmp    %edx,%esi
  jle    L274
  add    0x8(%r8),%eax
L274:
  cmp    %eax,%edi
  jne    L233
  add    $0xf9c,%rcx
  cmp    %r12,%rcx
  jne    L162
L245:
  mov    %r9,%r11
  mov    %r9,%r8
  xor    %r10d,%r10d
  nopw   0x0(%rax,%rax,1)
L59:
  mov    %r8,%rdx
  xor    %ecx,%ecx
  xor    %eax,%eax
  nop
L256:
  add    $0x1,%eax
  add    (%rdx),%ecx
  add    $0xf9c,%rdx
  cmp    %eax,%esi
  jg     L256
  cmp    %ecx,%edi
  jne    L233
  add    $0x1,%r10d
  add    $0x4,%r8
  cmp    %r10d,%esi
  jg     L59
  xor    %edx,%edx
  xor    %eax,%eax
  nopl   0x0(%rax)
L72:
  add    $0x1,%eax
  add    (%r11),%edx
  add    $0xfa0,%r11
  cmp    %eax,%esi
  jg     L72
  xor    %eax,%eax
  cmp    %edx,%edi
  jne    L80
  movslq %esi,%rax
  mov    $0x1,%ebp
  mov    %esi,%r8d
  imul   $0xf9c,%rax,%rax
  test   %esi,%esi
  cmovg  %esi,%ebp
  lea    -0xf9c(%r9,%rax,1),%rcx
  mov    %ebp,%eax
  mov    %ebp,%r10d
  shr    $0x2,%eax
  and    $0xfffffffc,%r10d
  lea    -0x1(%rax),%ebx
  add    $0x1,%rbx
  shl    $0x4,%rbx
  nopl   0x0(%rax)
L271:
  cmp    $0x3,%esi
  jle    L180
  lea    (%rbx,%rcx,1),%rdx
  mov    %rcx,%rax
  pxor   %xmm0,%xmm0
  nopl   0x0(%rax)
L232:
  movdqu (%rax),%xmm3
  add    $0x10,%rax
  paddd  %xmm3,%xmm0
  cmp    %rax,%rdx
  jne    L232
  movdqa %xmm0,%xmm1
  mov    %r10d,%edx
  psrldq $0x8,%xmm1
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%eax
  cmp    %ebp,%r10d
  je     L36
L292:
  movslq %edx,%r9
  lea    0x1(%rdx),%r11d
  lea    (%rcx,%r9,4),%r9
  add    (%r9),%eax
  cmp    %r11d,%esi
  jle    L36
  add    $0x2,%edx
  add    0x4(%r9),%eax
  cmp    %edx,%esi
  jle    L36
  add    0x8(%r9),%eax
L36:
  cmp    %eax,%edi
  jne    L233
  sub    $0xf9c,%rcx
  sub    $0x1,%r8d
  jne    L271
  mov    $0x1,%eax
  jmp    L80
  nopl   (%rax)
L12:
  xor    %eax,%eax
  xor    %edx,%edx
  jmp    L273
L233:
  xor    %eax,%eax
L80:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L180:
  xor    %eax,%eax
  xor    %edx,%edx
  jmp    L292
L186:
  mov    $0x1,%eax
  ret
L38:
  mov    (%rdi),%edi
  cmp    $0x1,%esi
  je     L245
  mov    %r9,%rdx
  mov    $0x1,%eax
  jmp    L294
```

assistant: ```c
int isitmagic(int square[999][999], int size) {
  int i, ii, sum = 0, sum2 = 0;
  for (i = 0; i < size; i++) {
    sum += square[0][i];
  }
  for (i = 1; i < size; i++) {
    for (ii = 0; ii < size; ii++)
      sum2 += square[i][ii];
    if (sum2 != sum)
      return 0;
    sum2 = 0;
  }
  for (i = 0; i < size; i++) {
    for (ii = 0; ii < size; ii++)
      sum2 += square[ii][i];
    if (sum2 != sum)
      return 0;
    sum2 = 0;
  }
  for (i = 0; i < size; i++) {
    sum2 += square[i][i];
  }
  if (sum2 != sum)
    return 0;
  sum2 = 0;
  for (i = size; i > 0; i--) {
    for (ii = 0; ii < size; ii++)
      sum2 += square[i - 1][ii];
    if (sum2 != sum)
      return 0;
    sum2 = 0;
  }
  return 1;
}
```