user: 请从给定的汇编指令推导出C源代码:

```asm
<wordcmp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  movl   $0x0,-0x8(%rbp)
  mov    -0x24(%rbp),%eax
  and    $0x3,%eax
  test   %eax,%eax
  je     L65
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  shr    $0x1e,%ecx
  add    %ecx,%eax
  and    $0x3,%eax
  sub    %ecx,%eax
  mov    %eax,%ecx
  mov    $0x3,%eax
  sub    %ecx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%ecx
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  shr    $0x1e,%ecx
  add    %ecx,%eax
  and    $0x3,%eax
  sub    %ecx,%eax
  mov    %eax,%ecx
  mov    $0x3,%eax
  sub    %ecx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%ecx
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  shr    $0x1e,%ecx
  add    %ecx,%eax
  and    $0x3,%eax
  sub    %ecx,%eax
  mov    %eax,%ecx
  mov    $0x3,%eax
  sub    %ecx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%ecx
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  shr    $0x1e,%ecx
  add    %ecx,%eax
  and    $0x3,%eax
  sub    %ecx,%eax
  mov    %eax,%ecx
  mov    $0x3,%eax
  sub    %ecx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%ecx
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  add    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L38
L65:
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  mov    %eax,-0x4(%rbp)
L38:
  movl   $0x0,-0x8(%rbp)
  jmp    L69
L79:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jae    L12
  mov    $0xffffffff,%eax
  jmp    L68
L12:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jbe    L4
  mov    $0x1,%eax
  jmp    L68
L4:
  addl   $0x1,-0x8(%rbp)
L69:
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L79
  mov    $0x0,%eax
L68:
  pop    %rbp
  ret
```

assistant: ```c
int wordcmp(unsigned char *w1, unsigned char *w2, int n) {
  int i = 0, limit;
  if (n % 4 != 0) {
    w1[n / 4] = w1[n / 4] >> (2 * (3 - ((n - 1) % 4)));
    w1[n / 4] = w1[n / 4] << (2 * (3 - ((n - 1) % 4)));
    w2[n / 4] = w2[n / 4] >> (2 * (3 - ((n - 1) % 4)));
    w2[n / 4] = w2[n / 4] << (2 * (3 - ((n - 1) % 4)));
    limit = (n / 4) + 1;
  } else {
    limit = n / 4;
  }
  for (i = 0; i < limit; i++) {
    if (w1[i] < w2[i])
      return -1;
    if (w1[i] > w2[i])
      return +1;
  }
  return 0;
}
```