user: Demonstrate the C code that generates the assembly output below:

```asm
<scoreWindow>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,%eax
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x38(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    %r9,-0x58(%rbp)
  mov    %al,-0x34(%rbp)
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  mov    -0x58(%rbp),%rax
  movl   $0x0,(%rax)
  movl   $0x0,-0x24(%rbp)
  jmp    L56
L81:
  cmpl   $0x0,-0x24(%rbp)
  jle    L22
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  jmp    L42
L22:
  mov    $0x0,%eax
L42:
  mov    %eax,-0x14(%rbp)
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  mov    %rax,%rbx
  movsbl -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <toupper@plt>
  cmp    %rax,%rbx
  jne    L116
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%ecx
  mov    0x10(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
  jmp    L138
L116:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  sub    0x18(%rbp),%eax
  mov    %eax,(%rdx)
L138:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x1c(%rbp)
  jg     L74
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x58(%rbp),%rax
  mov    -0x24(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  jmp    L44
L83:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L27
  mov    -0x20(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L74
L27:
  subl   $0x1,-0x20(%rbp)
L44:
  cmpl   $0x0,-0x20(%rbp)
  jns    L83
L74:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L51
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
L51:
  addl   $0x1,-0x24(%rbp)
L56:
  mov    -0x24(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L81
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x38(%rbp)
  setg   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
  jmp    L54
L148:
  mov    -0x24(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  setl   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  mov    %rax,%rbx
  movsbl -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <toupper@plt>
  cmp    %rax,%rbx
  jne    L50
  addl   $0x1,-0x18(%rbp)
L50:
  addl   $0x1,-0x24(%rbp)
L54:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x24(%rbp)
  jle    L148
  mov    -0x18(%rbp),%eax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int scoreWindow(char c, char *s, int size, int *score, int *start, int *end, int match, int misMatch) {
  int i = 0, j = 0, max = 0, count = 0;
  *end = 0;
  for (i = 0; i < size; i++) {
    int prevScore = (i > 0) ? score[i - 1] : 0;
    if (toupper(s[i]) == toupper(c))
      score[i] = prevScore + match;
    else
      score[i] = prevScore - misMatch;
    if (score[i] >= max) {
      max = score[i];
      *end = i;
      for (j = i; j >= 0; j--)
        if (score[j] == 0) {
          *start = j + 1;
          break;
        }
    }
    if (score[i] < 0)
      score[i] = 0;
  }
  assert(*end < size);
  for (i = *start; i <= *end; i++) {
    assert(i < size);
    if (toupper(s[i]) == toupper(c))
      count++;
  }
  return count;
}
```