user: What would the C source look like for the assembly code provided here:

```asm
<ScoreBoard>:
  endbr64
  sub    $0x38,%rsp
  mov    %rdi,%rsi
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movq   $0x0,(%rsp)
  movq   $0x0,0x8(%rsp)
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  movl   $0x0,0x20(%rsp)
  lea    0x10(%rdi),%rdi
  lea    0xb8(%rsi),%r8
  jmp    L84
L98:
  add    $0x1c,%rdi
  cmp    %r8,%rdi
  je     L99
L84:
  mov    -0xc(%rdi),%eax
  add    -0x10(%rdi),%eax
  add    -0x8(%rdi),%eax
  lea    -0x10(%rdi),%rdx
L23:
  add    0xc(%rdx),%eax
  lea    0x4(%rax),%ecx
  movslq %ecx,%rcx
  addl   $0x1,(%rsp,%rcx,4)
  sub    (%rdx),%eax
  add    $0x4,%rdx
  cmp    %rdi,%rdx
  jne    L23
  jmp    L98
L99:
  lea    0x54(%rsi),%rdi
  lea    0x70(%rsi),%r8
  jmp    L93
L153:
  add    $0x4,%rdi
  cmp    %r8,%rdi
  je     L60
L93:
  mov    -0x38(%rdi),%eax
  add    -0x54(%rdi),%eax
  add    -0x1c(%rdi),%eax
  lea    -0x54(%rdi),%rdx
L145:
  add    0x54(%rdx),%eax
  lea    0x4(%rax),%ecx
  movslq %ecx,%rcx
  addl   $0x1,(%rsp,%rcx,4)
  sub    (%rdx),%eax
  add    $0x1c,%rdx
  cmp    %rdi,%rdx
  jne    L145
  jmp    L153
L60:
  lea    0x80(%rsi),%r10
  mov    $0x0,%r8d
  mov    $0x0,%r9d
L113:
  mov    %r10,%rcx
  mov    $0x0,%edi
L118:
  lea    -0x80(%rcx),%rax
  mov    %r9d,%edx
L155:
  add    (%rax),%edx
  add    $0x20,%rax
  cmp    %rcx,%rax
  jne    L155
  add    $0x4,%edx
  movslq %edx,%rdx
  addl   $0x1,(%rsp,%rdx,4)
  add    $0x1,%edi
  add    $0x4,%rcx
  cmp    $0x4,%edi
  jne    L118
  add    $0x1,%r8d
  add    $0x1c,%r10
  cmp    $0x3,%r8d
  jne    L113
  sub    $0xc,%rsi
  mov    $0x0,%r9d
L146:
  mov    %rsi,%rcx
  mov    $0x0,%edi
L100:
  lea    0x60(%rcx),%rax
  mov    %r9d,%edx
L14:
  add    (%rax),%edx
  sub    $0x18,%rax
  cmp    %rcx,%rax
  jne    L14
  add    $0x4,%edx
  movslq %edx,%rdx
  addl   $0x1,(%rsp,%rdx,4)
  add    $0x1,%edi
  add    $0x4,%rcx
  cmp    $0x4,%edi
  jne    L100
  add    $0x1,%r8d
  add    $0x1c,%rsi
  cmp    $0x6,%r8d
  jne    L146
  cmpl   $0x0,(%rsp)
  jne    L132
  mov    $0xf4240,%eax
  cmpl   $0x0,0x20(%rsp)
  jne    L32
  mov    0x18(%rsp),%edx
  mov    0x14(%rsp),%eax
  lea    (%rax,%rdx,2),%eax
  mov    0x1c(%rsp),%edx
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%eax
  sub    0xc(%rsp),%eax
  mov    0x8(%rsp),%esi
  lea    (%rsi,%rsi,1),%edx
  sub    %edx,%eax
  mov    0x4(%rsp),%edx
  lea    (%rdx,%rdx,4),%edx
  sub    %edx,%eax
L32:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L57
  add    $0x38,%rsp
  ret
L132:
  mov    $0xfff0bdc0,%eax
  jmp    L32
L57:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int ScoreBoard(int scores[][7]) {
  int counters[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  int x, y;
  for (y = 0; y < 6; y++) {
    int score = scores[y][0] + scores[y][1] + scores[y][2];
    for (x = 3; x < 7; x++) {
      score += scores[y][x];
      counters[score + 4]++;
      score -= scores[y][x - 3];
    }
  }
  for (x = 0; x < 7; x++) {
    int score = scores[0][x] + scores[1][x] + scores[2][x];
    for (y = 3; y < 6; y++) {
      score += scores[y][x];
      counters[score + 4]++;
      score -= scores[y - 3][x];
    }
  }
  for (y = 0; y < 6 - 3; y++) {
    for (x = 0; x < 7 - 3; x++) {
      int score = 0, idx = 0;
      for (idx = 0; idx < 4; idx++) {
        score += scores[y + idx][x + idx];
      }
      counters[score + 4]++;
    }
  }
  for (y = 3; y < 6; y++) {
    for (x = 0; x < 7 - 3; x++) {
      int score = 0, idx = 0;
      for (idx = 0; idx < 4; idx++) {
        score += scores[y - idx][x + idx];
      }
      counters[score + 4]++;
    }
  }
  if (counters[0] != 0)
    return -1000000;
  else if (counters[8] != 0)
    return 1000000;
  else
    return counters[5] + 2 * counters[6] + 5 * counters[7] - counters[3] - 2 * counters[2] - 5 * counters[1];
}
```