user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x8000(%rsp),%r11
L22:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L22
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8018(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r12
  lea    0x4010(%rsp),%rbp
  mov    %rbp,%rcx
  mov    %r12,%rdx
L36:
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L74:
  movl   $0x80,(%rdx,%rax,1)
  movl   $0x80,(%rcx,%rax,1)
  add    $0x4,%rax
  cmp    $0x100,%rax
  jne    L74
  add    $0x100,%rdx
  add    $0x100,%rcx
  cmp    %rbp,%rdx
  jne    L36
  lea    0x210(%rsp),%rax
  mov    $0x10,%r13d
  lea    0x3f00(%r12),%rbx
  mov    %rax,(%rsp)
  lea    0x4210(%rsp),%rax
  lea    0x4110(%rsp),%r15
  mov    %rax,0x8(%rsp)
  lea    0x110(%rsp),%r14
  lea    0x3f00(%rbp),%r11
L15:
  mov    0x8(%rsp),%r10
  mov    %r15,%rsi
  mov    %r14,%rcx
  mov    %r14,%r9
  mov    %r15,%rdi
  mov    %rbp,%r8
  nopw   0x0(%rax,%rax,1)
L29:
  xor    %edx,%edx
  nopw   0x0(%rax,%rax,1)
L84:
  mov    0x4(%r10,%rdx,1),%eax
  add    0x4(%rdx,%r8,1),%eax
  add    (%rdi,%rdx,1),%eax
  add    0x8(%rdx,%rdi,1),%eax
  sar    $0x2,%eax
  mov    %eax,0x4(%r9,%rdx,1)
  add    $0x4,%rdx
  cmp    $0xf8,%rdx
  jne    L84
  add    $0x100,%rdi
  add    $0x100,%r8
  add    $0x100,%r10
  add    $0x100,%r9
  cmp    %r11,%rdi
  jne    L29
  mov    (%rsp),%r8
  mov    %r12,%rdi
  cs nopw 0x0(%rax,%rax,1)
L50:
  xor    %edx,%edx
  nopw   0x0(%rax,%rax,1)
L65:
  mov    0x4(%r8,%rdx,1),%eax
  add    0x4(%rdi,%rdx,1),%eax
  add    (%rcx,%rdx,1),%eax
  add    0x8(%rcx,%rdx,1),%eax
  sar    $0x2,%eax
  mov    %eax,0x4(%rsi,%rdx,1)
  add    $0x4,%rdx
  cmp    $0xf8,%rdx
  jne    L65
  add    $0x100,%rcx
  add    $0x100,%rdi
  add    $0x100,%r8
  add    $0x100,%rsi
  cmp    %rcx,%rbx
  jne    L50
  sub    $0x1,%r13d
  jne    L15
  lea    0x100(%rbp),%rcx
  xor    %edx,%edx
  add    $0x4100,%rbp
L45:
  lea    -0x100(%rcx),%rax
  xchg   %ax,%ax
L25:
  add    (%rax),%edx
  add    $0x4,%rax
  cmp    %rax,%rcx
  jne    L25
  add    $0x100,%rcx
  cmp    %rcx,%rbp
  jne    L45
  cmp    $0x88200,%edx
  mov    $0xbadbeef,%eax
  mov    $0x0,%edx
  cmovne %edx,%eax
  mov    0x8018(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L26
  add    $0x8028,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L26:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int main() {
  int r;
  int i, j, a2;
  int a[64][64];
  int b[64][64];
  int checksum;
  int ans = 557568;
  a2 = 0;
  for (i = 0; i < 64; i++) {
    a2++;
    for (j = 0; j < 64; j++) {
      a[i][j] = 1 << (8 - 1);
      b[i][j] = 1 << (8 - 1);
    }
  }
  for (r = 0; r < 32; r += 2) {
    for (i = 1; i < 64 - 1; i++) {
      for (j = 1; j < 64 - 1; j++) {
        a[i][j] = (b[i - 1][j] + b[i + 1][j] + b[i][j - 1] + b[i][j + 1]) >> 2;
      }
    }
    for (i = 1; i < 64 - 1; i++) {
      for (j = 1; j < 64 - 1; j++) {
        b[i][j] = (a[i - 1][j] + a[i + 1][j] + a[i][j - 1] + a[i][j + 1]) >> 2;
      }
    }
  }
  checksum = 0;
  for (i = 0; i < 64; i++)
    for (j = 0; j < 64; j++)
      checksum += b[i][j];
  if (checksum == ans)
    return 195935983;
  else
    return 0;
  return checksum;
}
```