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

```asm
<issafe>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L72
L29:
  mov    -0x8(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  je     L2
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x5,%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L122
  mov    $0x0,%eax
  jmp    L133
L2:
  nop
L122:
  addl   $0x1,-0x8(%rbp)
L72:
  cmpl   $0x7,-0x8(%rbp)
  jle    L29
  movl   $0x0,-0x4(%rbp)
  jmp    L226
L103:
  mov    -0x4(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  je     L235
  mov    -0x4(%rbp),%eax
  cltq
  shl    $0x5,%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L280
  mov    $0x0,%eax
  jmp    L133
L235:
  nop
L280:
  addl   $0x1,-0x4(%rbp)
L226:
  cmpl   $0x7,-0x4(%rbp)
  jle    L103
  jmp    L248
L146:
  addl   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x5,%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  addl   $0x1,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L248
  mov    $0x0,%eax
  jmp    L133
L248:
  cmpl   $0x7,-0x10(%rbp)
  jg     L199
  cmpl   $0x7,-0xc(%rbp)
  jle    L146
L199:
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L291
L328:
  subl   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x5,%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  subl   $0x1,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L291
  mov    $0x0,%eax
  jmp    L133
L291:
  cmpl   $0x0,-0x10(%rbp)
  js     L177
  cmpl   $0x0,-0xc(%rbp)
  jns    L328
L177:
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L155
L41:
  subl   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x5,%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  addl   $0x1,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L155
  mov    $0x0,%eax
  jmp    L133
L155:
  cmpl   $0x7,-0x10(%rbp)
  jg     L261
  cmpl   $0x7,-0xc(%rbp)
  jg     L261
  cmpl   $0x0,-0x10(%rbp)
  js     L261
  cmpl   $0x0,-0xc(%rbp)
  jns    L41
L261:
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L38
L313:
  addl   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x5,%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  subl   $0x1,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L38
  mov    $0x0,%eax
  jmp    L133
L38:
  cmpl   $0x7,-0x10(%rbp)
  jg     L7
  cmpl   $0x7,-0xc(%rbp)
  jg     L7
  cmpl   $0x0,-0x10(%rbp)
  js     L7
  cmpl   $0x0,-0xc(%rbp)
  jns    L313
L7:
  mov    $0x1,%eax
L133:
  pop    %rbp
  ret
```

assistant: ```c
int issafe(int arr[][8], int a, int b) {
  int x = a;
  int y = b;
  for (int i = 0; i < 8; i++) {
    if (i == b)
      continue;
    if (arr[a][i] == 1)
      return 0;
  }
  for (int j = 0; j < 8; j++) {
    if (j == a)
      continue;
    if (arr[j][b] == 1)
      return 0;
  }
  while ((x < 8) && (y < 8)) {
    if (arr[++x][++y] == 1)
      return 0;
  }
  x = a;
  y = b;
  while ((x >= 0) && (y >= 0))
    if (arr[--x][--y] == 1)
      return 0;
  x = a;
  y = b;
  while ((x < 8) && (y < 8) && (x >= 0) && (y >= 0))
    if (arr[--x][++y] == 1)
      return 0;
  x = a;
  y = b;
  while ((x < 8) && (y < 8) && (x >= 0) && (y >= 0))
    if (arr[++x][--y] == 1)
      return 0;
  return 1;
}
```