user: 这段汇编代码用C语言表示是什么样的:

```asm
<twoway_wcsstr>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r15
  mov    %rsi,%rbp
  mov    (%rsi),%rax
  mov    $0x0,%r13d
  test   %rax,%rax
  je     L81
L18:
  cmpq   $0x0,(%r15,%r13,8)
  je     L276
  add    $0x1,%r13
  mov    0x0(%rbp,%r13,8),%rax
  test   %rax,%rax
  jne    L18
L249:
  cmp    $0x1,%r13
  jbe    L81
  mov    $0x1,%r8d
  mov    $0x1,%edx
  mov    $0x0,%r9d
  mov    $0xffffffffffffffff,%rdi
  mov    $0x1,%eax
  mov    $0x1,%r10d
  jmp    L77
L276:
  mov    $0x0,%ebx
  test   %rax,%rax
  je     L249
  jmp    L160
L198:
  cmp    %r8,%rdx
  je     L52
  add    $0x1,%rdx
  jmp    L248
L52:
  add    %r8,%r9
  mov    $0x1,%edx
  jmp    L248
L282:
  mov    %r9,%rdi
  lea    0x1(%r9),%r9
  mov    %r10,%r8
  mov    $0x1,%edx
L248:
  lea    (%r9,%rdx,1),%rax
  cmp    %r13,%rax
  jae    L128
L77:
  lea    (%rdi,%rdx,1),%rcx
  mov    0x0(%rbp,%rcx,8),%rsi
  mov    0x0(%rbp,%rax,8),%rcx
  cmp    %rcx,%rsi
  je     L198
  jle    L282
  mov    %rax,%r8
  sub    %rdi,%r8
  mov    %rax,%r9
  mov    $0x1,%edx
  jmp    L248
L128:
  mov    $0x1,%ebx
  mov    $0x1,%edx
  mov    $0x0,%r9d
  movq   $0xffffffffffffffff,0x8(%rsp)
  mov    $0x1,%eax
  jmp    L191
L142:
  cmp    %rbx,%rdx
  je     L140
  add    $0x1,%rdx
  jmp    L346
L140:
  add    %rbx,%r9
  mov    $0x1,%edx
  jmp    L346
L183:
  mov    %r9,0x8(%rsp)
  lea    0x1(%r9),%r9
  mov    $0x1,%ebx
  mov    $0x1,%edx
L346:
  lea    (%r9,%rdx,1),%rax
  cmp    %r13,%rax
  jae    L329
L191:
  mov    0x8(%rsp),%rsi
  lea    (%rsi,%rdx,1),%rcx
  mov    0x0(%rbp,%rcx,8),%rsi
  mov    0x0(%rbp,%rax,8),%rcx
  cmp    %rcx,%rsi
  je     L142
  jge    L183
  mov    %rax,%rbx
  sub    0x8(%rsp),%rbx
  mov    %rax,%r9
  mov    $0x1,%edx
  jmp    L346
L329:
  mov    0x8(%rsp),%rcx
  lea    0x1(%rcx),%rdx
  lea    0x1(%rdi),%rax
  cmp    %rax,%rdx
  cmova  %rcx,%rdi
  mov    %rdi,0x8(%rsp)
  cmovbe %r8,%rbx
L302:
  mov    0x8(%rsp),%r12
  lea    0x1(%r12),%r14
  lea    0x0(%rbp,%rbx,8),%rsi
  mov    %r14,%rdx
  mov    %rbp,%rdi
  call   <wmemcmp@plt>
  mov    %r13,%rsi
  sub    %rbx,%rsi
  mov    %rsi,0x10(%rsp)
  test   %rax,%rax
  je     L148
  lea    -0x1(%r13),%rax
  sub    %r12,%rax
  cmp    %r12,%rax
  cmovb  %r12,%rax
  lea    0x1(%rax),%rbx
  movq   $0x0,0x10(%rsp)
L148:
  mov    %r13,%rax
  or     $0x3f,%rax
  mov    %rax,0x20(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x28(%rsp)
  lea    0x0(,%rbx,8),%rax
  mov    %rax,0x18(%rsp)
  mov    %r15,%rbx
  mov    $0x0,%r12d
  jmp    L117
L56:
  mov    0x20(%rsp),%rdx
  mov    $0x0,%esi
  mov    %r15,%rdi
  call   <wmemchr@plt>
  test   %rax,%rax
  je     L107
  mov    %rax,%rdx
  sub    %rbx,%rdx
  sar    $0x3,%rdx
  cmp    %r13,%rdx
  jb     L50
  mov    %rax,%r15
  jmp    L38
L107:
  add    0x28(%rsp),%r15
  jmp    L38
L176:
  test   %rdx,%rdx
  je     L39
  sub    0x8(%rsp),%rax
  lea    (%rbx,%rax,8),%rbx
  mov    $0x0,%r12d
L117:
  mov    %r15,%rax
  sub    %rbx,%rax
  sar    $0x3,%rax
  cmp    %r13,%rax
  jb     L56
L38:
  cmp    %r12,%r14
  mov    %r12,%rax
  cmovae %r14,%rax
  mov    0x0(%rbp,%rax,8),%rdx
  test   %rdx,%rdx
  je     L39
L133:
  cmp    %rdx,(%rbx,%rax,8)
  jne    L176
  add    $0x1,%rax
  mov    0x0(%rbp,%rax,8),%rdx
  test   %rdx,%rdx
  jne    L133
L39:
  mov    %r14,%rax
  cmp    %r12,%r14
  jbe    L126
L258:
  mov    -0x8(%rbx,%rax,8),%rdi
  cmp    %rdi,-0x8(%rbp,%rax,8)
  jne    L126
  sub    $0x1,%rax
  cmp    %rax,%r12
  jb     L258
L126:
  cmp    %rax,%r12
  je     L160
  add    0x18(%rsp),%rbx
  mov    0x10(%rsp),%r12
  jmp    L117
L50:
  mov    $0x0,%ebx
L160:
  mov    %rbx,%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L81:
  movq   $0xffffffffffffffff,0x8(%rsp)
  mov    $0x1,%ebx
  jmp    L302
```

assistant: ```c
wchar_t *twoway_wcsstr(const wchar_t *h, const wchar_t *n) {
  const wchar_t *z;
  size_t l, ip, jp, k, p, ms, p0, mem, mem0;
  for (l = 0; n[l] && h[l]; l++)
    ;
  if (n[l])
    return 0;
  ip = -1;
  jp = 0;
  k = p = 1;
  while (jp + k < l) {
    if (n[ip + k] == n[jp + k]) {
      if (k == p) {
        jp += p;
        k = 1;
      } else
        k++;
    } else if (n[ip + k] > n[jp + k]) {
      jp += k;
      k = 1;
      p = jp - ip;
    } else {
      ip = jp++;
      k = p = 1;
    }
  }
  ms = ip;
  p0 = p;
  ip = -1;
  jp = 0;
  k = p = 1;
  while (jp + k < l) {
    if (n[ip + k] == n[jp + k]) {
      if (k == p) {
        jp += p;
        k = 1;
      } else
        k++;
    } else if (n[ip + k] < n[jp + k]) {
      jp += k;
      k = 1;
      p = jp - ip;
    } else {
      ip = jp++;
      k = p = 1;
    }
  }
  if (ip + 1 > ms + 1)
    ms = ip;
  else
    p = p0;
  if (wmemcmp(n, n + p, ms + 1)) {
    mem0 = 0;
    p = ((ms) > (l - ms - 1) ? (ms) : (l - ms - 1)) + 1;
  } else
    mem0 = l - p;
  mem = 0;
  z = h;
  for (;;) {
    if (z - h < l) {
      size_t grow = l | 63;
      const wchar_t *z2 = wmemchr(z, 0, grow);
      if (z2) {
        z = z2;
        if (z - h < l)
          return 0;
      } else
        z += grow;
    }
    for (k = ((ms + 1) > (mem) ? (ms + 1) : (mem)); n[k] && n[k] == h[k]; k++)
      ;
    if (n[k]) {
      h += k - ms;
      mem = 0;
      continue;
    }
    for (k = ms + 1; k > mem && n[k - 1] == h[k - 1]; k--)
      ;
    if (k == mem)
      return (wchar_t *)h;
    h += p;
    mem = mem0;
  }
}
```