user: Translate the below assembly code into C programming language:

```asm
<strstr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %ax,-0x24(%rbp)
  cmpw   $0x0,-0x24(%rbp)
  jne    L5
  nop
  jmp    L28
L203:
  nop
  jmp    L28
L67:
  nop
  jmp    L28
L182:
  nop
L28:
  mov    -0x20(%rbp),%rax
  jmp    L194
L5:
  subq   $0x1,-0x20(%rbp)
L104:
  addq   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %ax,-0x26(%rbp)
  cmpw   $0x0,-0x26(%rbp)
  jne    L130
  mov    $0x0,%eax
  jmp    L194
L130:
  movzwl -0x26(%rbp),%eax
  cmp    -0x24(%rbp),%ax
  jne    L104
  addq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %ax,-0x22(%rbp)
  cmpw   $0x0,-0x22(%rbp)
  je     L203
  addq   $0x1,-0x18(%rbp)
  addq   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %ax,-0x26(%rbp)
  movzwl -0x26(%rbp),%eax
  cmp    -0x22(%rbp),%ax
  je     L41
  nop
  nop
  jmp    L86
L235:
  cmpw   $0x0,-0x26(%rbp)
  jne    L196
  mov    $0x0,%eax
  jmp    L194
L196:
  addq   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %ax,-0x26(%rbp)
  movzwl -0x26(%rbp),%eax
  cmp    -0x24(%rbp),%ax
  je     L117
  cmpw   $0x0,-0x26(%rbp)
  jne    L157
  mov    $0x0,%eax
  jmp    L194
L157:
  addq   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %ax,-0x26(%rbp)
L86:
  movzwl -0x26(%rbp),%eax
  cmp    -0x24(%rbp),%ax
  jne    L235
  jmp    L101
L117:
  nop
L101:
  addq   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %ax,-0x26(%rbp)
  movzwl -0x26(%rbp),%eax
  cmp    -0x22(%rbp),%ax
  jne    L86
  jmp    L88
L41:
  nop
L88:
  mov    -0x20(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  add    $0x1,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    -0x18(%rbp),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x8(%rbp),%rdx
  movzbl (%rdx),%edx
  movzbl %dl,%edx
  mov    %dx,-0x26(%rbp)
  cmp    %ax,-0x26(%rbp)
  jne    L200
L116:
  cmpw   $0x0,-0x26(%rbp)
  je     L67
  addq   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  addq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rdx
  movzbl (%rdx),%edx
  movzbl %dl,%edx
  mov    %dx,-0x26(%rbp)
  cmp    %ax,-0x26(%rbp)
  jne    L267
  cmpw   $0x0,-0x26(%rbp)
  je     L182
  addq   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  addq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rdx
  movzbl (%rdx),%edx
  movzbl %dl,%edx
  mov    %dx,-0x26(%rbp)
  cmp    %ax,-0x26(%rbp)
  je     L116
  jmp    L200
L267:
  nop
L200:
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  cmpw   $0x0,-0x26(%rbp)
  jne    L214
  mov    $0x0,%eax
  jmp    L194
L214:
  addq   $0x1,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %ax,-0x26(%rbp)
  jmp    L86
L194:
  pop    %rbp
  ret
```

assistant: ```c
unsigned char *strstr(const unsigned char *phaystack, const unsigned char *pneedle) {
  const unsigned char *haystack, *needle;
  unsigned short a, b, c;
  const unsigned char *rneedle;
  const unsigned char *rhaystack;
  haystack = (const unsigned char *)phaystack;
  needle = (const unsigned char *)pneedle;
  b = *needle;
  if (!b)
  foundneedle:
    return (unsigned char *)haystack;
  haystack--;
  do {
    a = *++haystack;
    if (!a)
      return 0;
  } while (a != b);
  c = *++needle;
  if (!c)
    goto foundneedle;
  ++needle;
  a = *++haystack;
  if (a == c)
    goto crest;
  goto jin;
  for (;;) {
    a = *++haystack;
  jin:
    do {
      for (; a != b; a = *++haystack) {
        if (!a)
          return 0;
        if ((a = *++haystack) == b)
          break;
        if (!a)
          return 0;
      }
    } while ((a = *++haystack) != c);
  crest:
    if (*(rhaystack = haystack-- + 1) == (a = *(rneedle = needle)))
      do {
        if (!a)
          goto foundneedle;
        if (*++rhaystack != (a = *++needle))
          break;
        if (!a)
          goto foundneedle;
      } while (*++rhaystack == (a = *++needle));
    needle = rneedle;
    if (!a)
      return 0;
  }
}
```