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

```asm
<find_nw2se>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rsi,0x8(%rsp)
  mov    %edx,0x4(%rsp)
  mov    %ecx,(%rsp)
  movl   $0x0,0x14(%rsp)
  test   %edx,%edx
  jle    L39
  nopl   0x0(%rax)
L30:
  mov    (%rsp),%eax
  movl   $0x0,0x10(%rsp)
  test   %eax,%eax
  jle    L41
  nopl   0x0(%rax,%rax,1)
L180:
  movsbl (%r14),%edi
  test   %dil,%dil
  je     L112
  mov    0x14(%rsp),%esi
  cmp    %esi,0x4(%rsp)
  jle    L112
  mov    0x10(%rsp),%esi
  cmp    %esi,(%rsp)
  jle    L112
  mov    0x14(%rsp),%r13d
  mov    0x10(%rsp),%r12d
  mov    %r14,%rbx
  mov    $0x1,%r15d
  nopl   0x0(%rax,%rax,1)
L27:
  lea    -0x1(%r15),%ebp
  call   <isspace@plt>
  test   %rax,%rax
  jne    L117
  mov    0x8(%rsp),%rdx
  movslq %r13d,%rax
  lea    (%rax,%rax,4),%rax
  lea    (%rdx,%rax,8),%rcx
  movslq %r12d,%rax
  movzbl (%rcx,%rax,1),%eax
  cmp    %al,(%rbx)
  je     L179
  movslq %ebp,%rbp
  cmpb   $0x0,(%r14,%rbp,1)
  jne    L112
L90:
  movsbl (%r14),%edi
  test   %dil,%dil
  je     L112
  mov    0x14(%rsp),%ebp
  mov    0x10(%rsp),%r12d
  mov    %r14,%r13
  xor    %ebx,%ebx
  jmp    L196
  nopl   0x0(%rax)
L33:
  add    $0x1,%ebx
L111:
  movslq %ebx,%r13
  add    %r14,%r13
  movsbl 0x0(%r13),%edi
  test   %dil,%dil
  je     L112
L196:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L33
  mov    0x8(%rsp),%rsi
  movslq %ebp,%rax
  movslq %r12d,%r15
  lea    (%rax,%rax,4),%rax
  lea    (%rsi,%rax,8),%rcx
  movsbl (%rcx,%r15,1),%edi
  cmp    %dil,0x0(%r13)
  jne    L111
  add    $0x1,%ebx
  mov    %rcx,0x18(%rsp)
  add    $0x1,%ebp
  add    $0x1,%r12d
  call   <toupper@plt>
  movslq %ebx,%r13
  mov    0x18(%rsp),%rcx
  add    %r14,%r13
  mov    %al,(%rcx,%r15,1)
  movsbl 0x0(%r13),%edi
  test   %dil,%dil
  jne    L196
  nopl   0x0(%rax,%rax,1)
L112:
  addl   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%eax
  cmp    %eax,(%rsp)
  jne    L180
L41:
  addl   $0x1,0x14(%rsp)
  mov    0x14(%rsp),%eax
  cmp    %eax,0x4(%rsp)
  jne    L30
L39:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L179:
  add    $0x1,%r13d
  add    $0x1,%r12d
L117:
  movslq %r15d,%rbx
  add    %r14,%rbx
  movsbl (%rbx),%edi
  test   %dil,%dil
  je     L90
  add    $0x1,%r15d
  cmp    0x4(%rsp),%r13d
  jge    L112
  cmp    (%rsp),%r12d
  jl     L27
  jmp    L112
```

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++;
          }
        }
      }
    }
  }
}
```