user: Translate the below assembly code into C programming language:

```asm
<sanity_check_cluster_numbers>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rsi,(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    %r8d,0x14(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  test   %ecx,%ecx
  jle    L80
  movslq %r8d,%rax
  test   %eax,%eax
  jle    L80
  movslq %ecx,%rdx
  mov    %rax,0x18(%rsp)
  mov    %rdi,%r13
  mov    %ecx,%r14d
  mov    %rdx,0x38(%rsp)
  lea    0x50(%rsp),%rdx
  xor    %ebp,%ebp
  lea    D1(%rip),%r12
  mov    %rdx,0x28(%rsp)
  lea    0x48(%rsp),%rdx
  mov    %rdx,0x20(%rsp)
  lea    0x44(%rsp),%rdx
  mov    %rdx,0x30(%rsp)
L70:
  mov    %ebp,0x10(%rsp)
  xor    %ebx,%ebx
  cs nopw 0x0(%rax,%rax,1)
L63:
  movd   0x10(%rsp),%xmm0
  movd   %ebx,%xmm1
  sub    $0x8,%rsp
  mov    %r14d,%edx
  punpckldq %xmm1,%xmm0
  movq   %xmm0,0x50(%rsp)
  push   0x38(%rsp)
  mov    0x38(%rsp),%r9
  mov    0x30(%rsp),%r8
  mov    0x24(%rsp),%ecx
  mov    0x18(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  call   <get_bonded_neighbors@plt>
  mov    0x0(%r13,%rbp,8),%rax
  lea    (%rax,%rbx,4),%rdx
  mov    0x54(%rsp),%eax
  pop    %rcx
  pop    %rsi
  test   %eax,%eax
  jle    L89
  movslq 0x50(%rsp),%rcx
  movslq 0x54(%rsp),%rsi
  mov    (%rdx),%r15d
  mov    0x0(%r13,%rcx,8),%rcx
  cmp    (%rcx,%rsi,4),%r15d
  je     L8
  mov    %r12,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    0x44(%rsp),%eax
L8:
  cmp    $0x1,%eax
  jle    L89
  movslq 0x58(%rsp),%rcx
  movslq 0x5c(%rsp),%rsi
  mov    0x0(%r13,%rcx,8),%rcx
  cmp    %r15d,(%rcx,%rsi,4)
  je     L87
  mov    %r12,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    0x44(%rsp),%eax
L87:
  cmp    $0x2,%eax
  jle    L89
  movslq 0x60(%rsp),%rcx
  movslq 0x64(%rsp),%rsi
  mov    0x0(%r13,%rcx,8),%rcx
  cmp    (%rcx,%rsi,4),%r15d
  je     L102
  mov    %r12,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    0x44(%rsp),%eax
L102:
  cmp    $0x3,%eax
  jle    L89
  movslq 0x68(%rsp),%rax
  movslq 0x6c(%rsp),%rcx
  mov    0x0(%r13,%rax,8),%rax
  cmp    (%rax,%rcx,4),%r15d
  je     L89
  mov    %r12,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L89:
  add    $0x1,%rbx
  cmp    %rbx,0x18(%rsp)
  jne    L63
  add    $0x1,%rbp
  cmp    0x38(%rsp),%rbp
  jne    L70
L80:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L60
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L60:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D1
datatype: string

tool: D1: Cluster mismatch!!


assistant: ```c
void sanity_check_cluster_numbers(int **site_marks, int **vbonds, int **hbonds, int M, int N) {
  int i, j, k;
  int A[2];
  int nei[4][2];
  int numnei;
  int clunoA, clunoB;
  for (i = 0; i < M; i++) {
    for (j = 0; j < N; j++) {
      A[0] = i;
      A[1] = j;
      get_bonded_neighbors(vbonds, hbonds, M, N, A, nei, &numnei);
      clunoA = site_marks[i][j];
      for (k = 0; k < numnei; k++) {
        clunoB = site_marks[nei[k][0]][nei[k][1]];
        if (clunoA != clunoB) {
          printf("Cluster mismatch!!\n");
          exit(1);
        }
      }
    }
  }
}
```