user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<find_sw2ne>:
  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    L1
L87:
  movl   $0x0,-0x24(%rbp)
  jmp    L134
L79:
  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    L7
L16:
  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     L18
  addl   $0x1,-0x20(%rbp)
  jmp    L7
L18:
  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    L127
  addl   $0x1,-0x20(%rbp)
  subl   $0x1,-0x14(%rbp)
  addl   $0x1,-0x18(%rbp)
  jmp    L7
L127:
  movl   $0x0,-0x1c(%rbp)
L7:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L90
  cmpl   $0x0,-0x14(%rbp)
  js     L90
  mov    -0x18(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jge    L90
  cmpl   $0x0,-0x1c(%rbp)
  jne    L16
L90:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L178
  movl   $0x0,-0x20(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L145
L53:
  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     L85
  addl   $0x1,-0x20(%rbp)
  jmp    L145
L85:
  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    L145
  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)
  subl   $0x1,-0x14(%rbp)
  addl   $0x1,-0x18(%rbp)
L145:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L53
L178:
  addl   $0x1,-0x24(%rbp)
L134:
  mov    -0x24(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L79
  addl   $0x1,-0x28(%rbp)
L1:
  mov    -0x28(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L87
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void find_sw2ne(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 >= 0 && 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++;
          }
        }
      }
    }
  }
}
```