user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<find_se2nw>:
  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    L60
L88:
  movl   $0x0,-0x24(%rbp)
  jmp    L178
L6:
  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    L83
L51:
  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     L34
  addl   $0x1,-0x20(%rbp)
  jmp    L83
L34:
  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    L101
  addl   $0x1,-0x20(%rbp)
  subl   $0x1,-0x14(%rbp)
  subl   $0x1,-0x18(%rbp)
  jmp    L83
L101:
  movl   $0x0,-0x1c(%rbp)
L83:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L97
  cmpl   $0x0,-0x14(%rbp)
  js     L97
  cmpl   $0x0,-0x18(%rbp)
  js     L97
  cmpl   $0x0,-0x1c(%rbp)
  jne    L51
L97:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L33
  movl   $0x0,-0x20(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L109
L39:
  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     L29
  addl   $0x1,-0x20(%rbp)
  jmp    L109
L29:
  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    L109
  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)
  subl   $0x1,-0x18(%rbp)
L109:
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L39
L33:
  addl   $0x1,-0x24(%rbp)
L178:
  mov    -0x24(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L6
  addl   $0x1,-0x28(%rbp)
L60:
  mov    -0x28(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L88
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

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