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

```asm
<strstr_GNU_C_Library>:
  endbr64
  mov    %rdi,%rax
  mov    %rsi,%rdi
  movzbl (%rsi),%esi
  test   %sil,%sil
  je     L3
  sub    $0x1,%rax
  jmp    L129
  nopl   0x0(%rax,%rax,1)
L298:
  cmp    %dl,%sil
  je     L259
L129:
  mov    %rax,%rcx
  movzbl 0x1(%rax),%edx
  add    $0x1,%rax
  test   %dl,%dl
  jne    L298
L184:
  xor    %eax,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L259:
  movzbl 0x1(%rdi),%r8d
  test   %r8b,%r8b
  jne    L151
L3:
  ret
  nopl   0x0(%rax,%rax,1)
L151:
  lea    0x2(%rcx),%rdx
  movzbl 0x1(%rax),%ecx
  cmp    %cl,%r8b
  je     L68
  nopl   (%rax)
L181:
  cmp    %sil,%cl
  je     L80
L41:
  test   %cl,%cl
  je     L184
  movzbl 0x1(%rdx),%eax
  cmp    %al,%sil
  je     L37
  test   %al,%al
  je     L184
  movzbl 0x2(%rdx),%ecx
  add    $0x2,%rdx
  cmp    %sil,%cl
  jne    L41
L80:
  mov    %rdx,%rax
L263:
  movzbl 0x1(%rax),%ecx
  lea    0x1(%rax),%rdx
  cmp    %cl,%r8b
  jne    L181
L68:
  push   %rbp
  push   %rbx
L52:
  movsbl 0x2(%rdi),%r10d
  movzbl 0x1(%rdx),%r11d
  mov    %r10d,%r9d
  cmp    %r10d,%r11d
  je     L284
L128:
  test   %r9b,%r9b
  jne    L22
L189:
  pop    %rbx
  pop    %rbp
  ret
  nop
L37:
  lea    0x1(%rdx),%rax
  jmp    L263
L111:
  mov    %rdx,%rax
L106:
  movzbl 0x1(%rax),%ecx
  lea    0x1(%rax),%rdx
  cmp    %cl,%r8b
  je     L52
L22:
  cmp    %sil,%cl
  je     L111
L145:
  test   %cl,%cl
  je     L248
  movzbl 0x1(%rdx),%eax
  cmp    %al,%sil
  je     L282
  test   %al,%al
  je     L248
  movzbl 0x2(%rdx),%ecx
  add    $0x2,%rdx
  cmp    %sil,%cl
  jne    L145
  jmp    L111
L284:
  lea    0x2(%rdi),%r11
  lea    0x1(%rdx),%r10
  jmp    L292
  nopl   (%rax)
L43:
  test   %bl,%bl
  je     L189
  movsbl 0x2(%r11),%ebx
  movzbl 0x2(%r10),%ebp
  add    $0x2,%r10
  add    $0x2,%r11
  mov    %ebx,%r9d
  cmp    %ebx,%ebp
  jne    L128
L292:
  test   %r9b,%r9b
  je     L189
  movsbl 0x1(%r11),%ebx
  movzbl 0x1(%r10),%ebp
  mov    %ebx,%r9d
  cmp    %ebx,%ebp
  je     L43
  jmp    L128
L282:
  lea    0x1(%rdx),%rax
  jmp    L106
L248:
  xor    %eax,%eax
  jmp    L189
```

assistant: ```c
char *strstr_GNU_C_Library(phaystack, pneedle) const char *phaystack;
const char *pneedle;
{
  const unsigned char *haystack, *needle;
  char b;
  const unsigned char *rneedle;
  haystack = (const unsigned char *)phaystack;
  if ((b = *(needle = (const unsigned char *)pneedle))) {
    char c;
    haystack--;
    {
      char a;
      do
        if (!(a = *++haystack))
          goto ret0;
      while (a != b);
    }
    if (!(c = *++needle))
      goto foundneedle;
    ++needle;
    goto jin;
    for (;;) {
      {
        char a;
        if (0)
        jin : {
          if ((a = *++haystack) == c)
            goto crest;
        }
          else a = *++haystack;
        do {
          for (; a != b; a = *++haystack) {
            if (!a)
              goto ret0;
            if ((a = *++haystack) == b)
              break;
            if (!a)
              goto ret0;
          }
        } while ((a = *++haystack) != c);
      }
    crest : {
      char a;
      {
        const unsigned char *rhaystack;
        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)
        break;
    }
    }
  }
foundneedle:
  return (char *)haystack;
ret0:
  return 0;
}
```