user: 请将以下的汇编代码转换成C语言代码：

```asm
<StringContainsWord>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %ebx,%eax
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L35
L197:
  cmpl   $0x0,-0x1c(%rbp)
  je     L157
  jmp    L8
L234:
  addq   $0x1,-0x28(%rbp)
L8:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L130
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L130
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L130
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  je     L130
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x21,%al
  jne    L234
L130:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L12
  addq   $0x1,-0x28(%rbp)
L157:
  movl   $0x0,-0x18(%rbp)
  jmp    L56
L106:
  cmpl   $0x0,-0x34(%rbp)
  je     L126
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x18(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L164
  jmp    L22
L126:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  mov    %eax,%ebx
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  cmp    %eax,%ebx
  jne    L207
L164:
  addl   $0x1,-0x18(%rbp)
L56:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L106
  jmp    L22
L207:
  nop
L22:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L81
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L187
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L187
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L187
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  je     L187
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x21,%al
  jne    L81
L187:
  mov    -0x28(%rbp),%rax
  jmp    L6
L81:
  addl   $0x1,-0x1c(%rbp)
  addq   $0x1,-0x28(%rbp)
L35:
  mov    -0x1c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L197
  jmp    L155
L12:
  nop
L155:
  mov    $0x0,%eax
L6:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
char *StringContainsWord(char *str1, char *str2, int casesensitive) {
  int len, i, j;
  len = strlen(str1) - strlen(str2);
  for (i = 0; i <= len; i++, str1++) {
    if (i) {
      while (*str1 && *str1 != ' ' && *str1 != '.' && *str1 != ',' && *str1 != '!')
        str1++;
      if (!*str1)
        break;
      str1++;
    }
    for (j = 0; str2[j]; j++) {
      if (casesensitive) {
        if (str1[j] != str2[j])
          break;
      } else {
        if (toupper(str1[j]) != toupper(str2[j]))
          break;
      }
    }
    if (!str2[j]) {
      if (!str1[j] || str1[j] == ' ' || str1[j] == '.' || str1[j] == ',' || str1[j] == '!')
        return str1;
    }
  }
  return ((void *)0);
}
```