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

```asm
<find_nw2se>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  mov    %ecx,-0x48(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L43
L160:
  movl   $0x0,-0x24(%rbp)
  jmp    L182
L121:
  movl   $0x0,-0x20(%rbp)
  movl   $0x1,-0x1c(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L149
L44:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L67
  addl   $0x1,-0x20(%rbp)
  jmp    L149
L67:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%ecx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    %al,%cl
  jne    L96
  addl   $0x1,-0x20(%rbp)
  addl   $0x1,-0x14(%rbp)
  addl   $0x1,-0x18(%rbp)
  jmp    L149
L96:
  movl   $0x0,-0x1c(%rbp)
L149:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L112
  mov    -0x14(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jge    L112
  mov    -0x18(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jge    L112
  cmpl   $0x0,-0x1c(%rbp)
  jne    L44
L112:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L14
  movl   $0x0,-0x20(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L159
L91:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L113
  addl   $0x1,-0x20(%rbp)
  jmp    L159
L113:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%ecx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  cmp    %al,%cl
  jne    L159
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  movzbl (%rdx,%rax,1),%eax
  movsbl %al,%edx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rcx
  mov    %rcx,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  shl    $0x3,%rax
  mov    %rax,%rcx
  mov    -0x40(%rbp),%rax
  lea    (%rcx,%rax,1),%rbx
  mov    %edx,%edi
  call   <toupper@plt>
  mov    -0x18(%rbp),%edx
  movslq %edx,%rdx
  mov    %al,(%rbx,%rdx,1)
  addl   $0x1,-0x20(%rbp)
  addl   $0x1,-0x14(%rbp)
  addl   $0x1,-0x18(%rbp)
L159:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L91
L14:
  addl   $0x1,-0x24(%rbp)
L182:
  mov    -0x24(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L121
  addl   $0x1,-0x28(%rbp)
L43:
  mov    -0x28(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L160
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void find_nw2se(char word[], char board[40][40], int nrows, int ncols) {
  int i, j;
  for (i = 0; i < nrows; i++) {
    for (j = 0; j < ncols; j++) {
      int k = 0;
      int match = 1;
      int h = j, m = i;
      ;
      while (word[k] != '\0' && m < nrows && h < ncols && match) {
        if (isspace(word[k])) {
          k++;
        } else if (word[k] == board[m][h]) {
          k++;
          m++;
          h++;
        } else {
          match = 0;
        }
      }
      if (word[k] == '\0') {
        k = 0;
        h = j;
        m = i;
        while (word[k] != '\0') {
          if (isspace(word[k])) {
            k++;
          } else if (word[k] == board[m][h]) {
            board[m][h] = toupper(board[m][h]);
            k++;
            m++;
            h++;
          }
        }
      }
    }
  }
}
```