user: Please show me the C implementation that matches the assembly code listed below:

```asm
<lzo_adler32>:
  endbr64
  push   %r15
  movzwl %di,%r15d
  shr    $0x10,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,-0xc(%rsp)
  mov    %edi,-0x10(%rsp)
  test   %rsi,%rsi
  je     L155
  test   %edx,%edx
  je     L80
  xchg   %ax,%ax
L62:
  cmpl   $0x15af,-0xc(%rsp)
  ja     L55
  mov    -0xc(%rsp),%eax
  movl   $0x0,-0xc(%rsp)
  cmp    $0xf,%eax
  ja     L197
L92:
  movsbl (%rsi),%edx
  add    %edx,%r15d
  add    %r15d,-0x10(%rsp)
  mov    -0x10(%rsp),%edi
  cmp    $0x1,%eax
  je     L166
  movsbl 0x1(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0x2,%eax
  je     L166
  movsbl 0x2(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0x3,%eax
  je     L166
  movsbl 0x3(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0x4,%eax
  je     L166
  movsbl 0x4(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0x5,%eax
  je     L166
  movsbl 0x5(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0x6,%eax
  je     L166
  movsbl 0x6(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0x7,%eax
  je     L166
  movsbl 0x7(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0x8,%eax
  je     L166
  movsbl 0x8(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0x9,%eax
  je     L166
  movsbl 0x9(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0xa,%eax
  je     L166
  movsbl 0xa(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0xb,%eax
  je     L166
  movsbl 0xb(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0xc,%eax
  je     L166
  movsbl 0xc(%rsi),%edx
  add    %edx,%r15d
  mov    %eax,%edx
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  sub    $0xd,%edx
  je     L166
  movsbl 0xd(%rsi),%ecx
  add    %ecx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  cmp    $0x1,%edx
  je     L166
  movsbl 0xe(%rsi),%edx
  add    %edx,%r15d
  add    %r15d,%edi
  mov    %edi,-0x10(%rsp)
  xchg   %ax,%ax
L166:
  cltq
  add    %rax,%rsi
L57:
  mov    %r15d,%eax
  mov    $0x80078071,%ebx
  imul   %rbx,%rax
  shr    $0x2f,%rax
  imul   $0xfff1,%eax,%eax
  sub    %eax,%r15d
  mov    -0x10(%rsp),%eax
  mov    %rax,%rdi
  imul   %rbx,%rax
  shr    $0x2f,%rax
  imul   $0xfff1,%eax,%eax
  sub    %eax,%edi
  mov    -0xc(%rsp),%eax
  mov    %edi,-0x10(%rsp)
  test   %eax,%eax
  jne    L62
L80:
  mov    -0x10(%rsp),%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  shl    $0x10,%eax
  pop    %r13
  pop    %r14
  or     %r15d,%eax
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L55:
  subl   $0x15b0,-0xc(%rsp)
  mov    $0x15b0,%eax
L197:
  sub    $0x10,%eax
  mov    %eax,-0x4(%rsp)
  shr    $0x4,%eax
  mov    %eax,-0x8(%rsp)
  add    $0x1,%eax
  shl    $0x4,%rax
  add    %rsi,%rax
  mov    %rax,-0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L40:
  movsbl (%rsi),%eax
  movsbl 0x1(%rsi),%r14d
  add    $0x10,%rsi
  movsbl -0xe(%rsi),%r13d
  movsbl -0xd(%rsi),%r12d
  add    %r15d,%eax
  movsbl -0xc(%rsi),%ebp
  movsbl -0xb(%rsi),%ebx
  add    %eax,%r14d
  movsbl -0xa(%rsi),%r11d
  movsbl -0x9(%rsi),%edx
  add    %r14d,%r13d
  add    %r14d,%eax
  movsbl -0x7(%rsi),%r10d
  movsbl -0x6(%rsi),%r9d
  add    %r13d,%r12d
  add    %r13d,%eax
  movsbl -0x5(%rsi),%r8d
  movsbl -0x4(%rsi),%edi
  add    %r12d,%ebp
  add    %r12d,%eax
  movsbl -0x1(%rsi),%r15d
  add    %ebp,%ebx
  add    %ebp,%eax
  add    %ebx,%r11d
  add    %ebx,%eax
  lea    (%rdx,%r11,1),%ecx
  movsbl -0x8(%rsi),%edx
  add    %r11d,%eax
  mov    %ecx,-0x20(%rsp)
  add    -0x20(%rsp),%eax
  add    %ecx,%edx
  movsbl -0x3(%rsi),%ecx
  add    %edx,%r10d
  mov    %edx,-0x1c(%rsp)
  add    -0x1c(%rsp),%eax
  add    %r10d,%r9d
  add    %r10d,%eax
  movsbl -0x2(%rsi),%edx
  add    %r9d,%r8d
  add    %r9d,%eax
  add    %r8d,%edi
  add    %r8d,%eax
  add    %edi,%ecx
  add    %edi,%eax
  add    %ecx,%edx
  add    %ecx,%eax
  add    %edx,%r15d
  add    %edx,%eax
  add    %r15d,%eax
  add    %eax,-0x10(%rsp)
  cmp    -0x18(%rsp),%rsi
  jne    L40
  mov    -0x8(%rsp),%edx
  mov    -0x4(%rsp),%eax
  shl    $0x4,%edx
  sub    %edx,%eax
  je     L57
  jmp    L92
  nopl   0x0(%rax)
L155:
  pop    %rbx
  mov    $0x1,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
unsigned int lzo_adler32(unsigned int adler, const char *buf, unsigned int len) {
  unsigned int s1 = adler & 0xffff;
  unsigned int s2 = (adler >> 16) & 0xffff;
  int k;
  if (buf == NULL)
    return 1;
  while (len > 0) {
    k = len < 5552 ? (int)len : 5552;
    len -= k;
    if (k >= 16)
      do {
        {
          s1 += buf[0];
          s2 += s1;
        };
        {
          s1 += buf[0 + 1];
          s2 += s1;
        };
        ;
        {
          s1 += buf[0 + 2];
          s2 += s1;
        };
        {
          s1 += buf[0 + 2 + 1];
          s2 += s1;
        };
        ;
        ;
        {
          s1 += buf[0 + 4];
          s2 += s1;
        };
        {
          s1 += buf[0 + 4 + 1];
          s2 += s1;
        };
        ;
        {
          s1 += buf[0 + 4 + 2];
          s2 += s1;
        };
        {
          s1 += buf[0 + 4 + 2 + 1];
          s2 += s1;
        };
        ;
        ;
        ;
        {
          s1 += buf[0 + 8];
          s2 += s1;
        };
        {
          s1 += buf[0 + 8 + 1];
          s2 += s1;
        };
        ;
        {
          s1 += buf[0 + 8 + 2];
          s2 += s1;
        };
        {
          s1 += buf[0 + 8 + 2 + 1];
          s2 += s1;
        };
        ;
        ;
        {
          s1 += buf[0 + 8 + 4];
          s2 += s1;
        };
        {
          s1 += buf[0 + 8 + 4 + 1];
          s2 += s1;
        };
        ;
        {
          s1 += buf[0 + 8 + 4 + 2];
          s2 += s1;
        };
        {
          s1 += buf[0 + 8 + 4 + 2 + 1];
          s2 += s1;
        };
        ;
        ;
        ;
        ;
        buf += 16;
        k -= 16;
      } while (k >= 16);
    if (k != 0)
      do {
        s1 += *buf++;
        s2 += s1;
      } while (--k > 0);
    s1 %= 65521u;
    s2 %= 65521u;
  }
  return (s2 << 16) | s1;
}
```