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

```asm
<xdl_adler32>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,-0xc(%rsp)
  movzwl %di,%r15d
  shr    $0x10,%rdi
  movzwl %di,%eax
  mov    %rax,-0x20(%rsp)
  test   %rsi,%rsi
  je     L59
  test   %edx,%edx
  je     L37
  mov    %rsi,%rdi
  jmp    L85
L47:
  movabs $0xf00e10d2fc5cd,%rax
  mul    %r15
  mov    %r15,%rax
  sub    %rdx,%rax
  shr    %rax
  add    %rax,%rdx
  shr    $0xf,%rdx
  imul   $0xfff1,%rdx,%rdx
  sub    %rdx,%r15
  movabs $0xf00e10d2fc5cd,%rax
  mov    -0x20(%rsp),%rcx
  mul    %rcx
  mov    %rcx,%rax
  sub    %rdx,%rax
  shr    %rax
  add    %rax,%rdx
  shr    $0xf,%rdx
  imul   $0xfff1,%rdx,%rdx
  sub    %rdx,%rcx
  mov    %rcx,-0x20(%rsp)
  cmpl   $0x0,-0xc(%rsp)
  je     L37
L85:
  mov    $0x15b0,%eax
  mov    -0xc(%rsp),%ebx
  cmp    %eax,%ebx
  cmovbe %ebx,%eax
  mov    %eax,-0x8(%rsp)
  mov    %eax,%ecx
  sub    %eax,%ebx
  mov    %ebx,-0xc(%rsp)
  cmp    $0xf,%eax
  jle    L74
  sub    $0x10,%eax
  shr    $0x4,%eax
  mov    %eax,-0x4(%rsp)
  add    $0x1,%eax
  mov    %eax,%eax
  shl    $0x4,%rax
  add    %rdi,%rax
  mov    %rax,-0x18(%rsp)
L51:
  movzbl (%rdi),%eax
  add    %r15,%rax
  movzbl 0x1(%rdi),%r14d
  add    %rax,%r14
  movzbl 0x2(%rdi),%r13d
  add    %r14,%r13
  movzbl 0x3(%rdi),%r12d
  add    %r13,%r12
  movzbl 0x4(%rdi),%ebp
  add    %r12,%rbp
  movzbl 0x5(%rdi),%ebx
  add    %rbp,%rbx
  movzbl 0x6(%rdi),%r11d
  add    %rbx,%r11
  movzbl 0x7(%rdi),%edx
  lea    (%rdx,%r11,1),%rsi
  movzbl 0x8(%rdi),%edx
  mov    %rsi,-0x30(%rsp)
  add    %rsi,%rdx
  movzbl 0x9(%rdi),%r10d
  mov    %rdx,-0x28(%rsp)
  add    %rdx,%r10
  movzbl 0xa(%rdi),%r9d
  add    %r10,%r9
  movzbl 0xb(%rdi),%r8d
  add    %r9,%r8
  movzbl 0xc(%rdi),%esi
  add    %r8,%rsi
  movzbl 0xd(%rdi),%ecx
  add    %rsi,%rcx
  movzbl 0xe(%rdi),%edx
  add    %rcx,%rdx
  movzbl 0xf(%rdi),%r15d
  add    %rdx,%r15
  add    %r14,%rax
  add    %r13,%rax
  add    %r12,%rax
  add    %rbp,%rax
  add    %rbx,%rax
  add    %r11,%rax
  add    -0x30(%rsp),%rax
  add    -0x28(%rsp),%rax
  add    %r10,%rax
  add    %r9,%rax
  add    %r8,%rax
  add    %rsi,%rax
  add    %rcx,%rax
  add    %rdx,%rax
  add    %r15,%rax
  add    %rax,-0x20(%rsp)
  add    $0x10,%rdi
  cmp    -0x18(%rsp),%rdi
  jne    L51
  mov    -0x4(%rsp),%eax
  neg    %eax
  shl    $0x4,%eax
  mov    -0x8(%rsp),%ecx
  lea    -0x10(%rcx,%rax,1),%ecx
  mov    -0x18(%rsp),%rdi
L74:
  test   %ecx,%ecx
  je     L47
  lea    -0x1(%rcx),%eax
  lea    0x1(%rdi,%rax,1),%rsi
  mov    %rdi,%rax
  mov    -0x20(%rsp),%rdx
L66:
  add    $0x1,%rax
  movzbl -0x1(%rax),%r8d
  add    %r8,%r15
  add    %r15,%rdx
  cmp    %rsi,%rax
  jne    L66
  mov    %rdx,-0x20(%rsp)
  lea    -0x1(%rcx),%eax
  lea    0x1(%rdi,%rax,1),%rdi
  jmp    L47
L37:
  mov    -0x20(%rsp),%rax
  shl    $0x10,%rax
  or     %r15,%rax
L68:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L59:
  mov    $0x1,%eax
  jmp    L68
```

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