user: 这段汇编代码用C语言表示是什么样的:

```asm
<CHECK_SCORE>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x38(%rbp)
  mov    %ecx,-0x44(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    %r9,-0x58(%rbp)
  movl   $0x0,-0x28(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%r12d
  mov    %r12d,%r13d
  mov    %r13d,%r14d
  mov    %r14d,-0x30(%rbp)
  jmp    L12
L81:
  mov    -0x50(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  mov    (%rax),%ebx
  test   %ebx,%ebx
  jne    L70
  mov    -0x34(%rbp),%eax
  add    %r14d,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  add    $0x1,%r13d
  movslq %r13d,%rcx
  mov    -0x40(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  add    %eax,-0x30(%rbp)
  add    $0x1,%r14d
  add    $0x1,%r12d
  mov    -0x24(%rbp),%eax
  add    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jns    L72
  movl   $0x0,-0x2c(%rbp)
L72:
  mov    -0x2c(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jle    L12
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  jmp    L12
L70:
  test   %ebx,%ebx
  jle    L27
  mov    %ebx,%edx
  imul   0x18(%rbp),%edx
  mov    0x10(%rbp),%eax
  add    %edx,%eax
  sub    %eax,-0x30(%rbp)
  add    %ebx,%r13d
  add    %ebx,%r12d
  imul   0x18(%rbp),%ebx
  mov    %ebx,%edx
  mov    0x10(%rbp),%eax
  add    %edx,%eax
  sub    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jns    L12
  movl   $0x0,-0x2c(%rbp)
  jmp    L12
L27:
  mov    %ebx,%edx
  imul   0x18(%rbp),%edx
  mov    0x10(%rbp),%eax
  sub    %edx,%eax
  sub    %eax,-0x30(%rbp)
  sub    %ebx,%r14d
  sub    %ebx,%r12d
  imul   0x18(%rbp),%ebx
  mov    %ebx,%edx
  mov    0x10(%rbp),%eax
  sub    %edx,%eax
  sub    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jns    L12
  movl   $0x0,-0x2c(%rbp)
L12:
  cmp    -0x38(%rbp),%r14d
  jl     L81
  cmp    -0x44(%rbp),%r13d
  jl     L81
  mov    0x20(%rbp),%rax
  mov    %r12d,(%rax)
  mov    0x28(%rbp),%rax
  mov    -0x28(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
```

assistant: ```c
int CHECK_SCORE(int iw, const unsigned char *B, int M, int N, int *S, int **w, int g, int h, int *NC, int *sw_score) {
  register int i, j, op, nc;
  int itmp;
  int score;
  int l_score, mx_l_score;
  score = i = j = nc = l_score = mx_l_score = 0;
  while (i < M || j < N) {
    op = *S++;
    if (op == 0) {
      itmp = w[iw + i][B[++j]];
      score += itmp;
      i++;
      nc++;
      l_score += itmp;
      if (l_score < 0)
        l_score = 0;
      if (l_score > mx_l_score)
        mx_l_score = l_score;
    } else if (op > 0) {
      score = score - (g + op * h);
      j += op;
      nc += op;
      l_score -= (g + op * h);
      if (l_score < 0)
        l_score = 0;
    } else {
      score = score - (g - op * h);
      i -= op;
      nc -= op;
      l_score -= (g - op * h);
      if (l_score < 0)
        l_score = 0;
    }
  }
  *NC = nc;
  *sw_score = mx_l_score;
  return score;
}
```