user: Translate the below assembly code into C programming language:

```asm
<adler32>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x18(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0x10,%eax
  mov    %eax,%eax
  mov    %rax,-0x8(%rbp)
  andl   $0xffff,-0x14(%rbp)
  cmpl   $0x1,-0x18(%rbp)
  jne    L44
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  cmpl   $0xfff0,-0x14(%rbp)
  jbe    L161
  subl   $0xfff1,-0x14(%rbp)
L161:
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  cmpq   $0xfff0,-0x8(%rbp)
  jbe    L41
  subq   $0xfff1,-0x8(%rbp)
L41:
  mov    -0x8(%rbp),%rax
  shl    $0x10,%eax
  or     -0x14(%rbp),%eax
  jmp    L24
L44:
  cmpq   $0x0,-0x20(%rbp)
  jne    L93
  mov    $0x1,%eax
  jmp    L24
L93:
  cmpl   $0xf,-0x18(%rbp)
  ja     L131
  jmp    L25
L169:
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
L25:
  mov    -0x18(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x18(%rbp)
  test   %eax,%eax
  jne    L169
  cmpl   $0xfff0,-0x14(%rbp)
  jbe    L8
  subl   $0xfff1,-0x14(%rbp)
L8:
  mov    -0x8(%rbp),%rcx
  movabs $0xf00e10d2fc5cd,%rdx
  mov    %rcx,%rax
  mul    %rdx
  mov    %rcx,%rax
  sub    %rdx,%rax
  shr    %rax
  add    %rdx,%rax
  shr    $0xf,%rax
  imul   $0xfff1,%rax,%rdx
  mov    %rcx,%rax
  sub    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  shl    $0x10,%eax
  or     -0x14(%rbp),%eax
  jmp    L24
L29:
  subl   $0x15b0,-0x18(%rbp)
  movl   $0x15b,-0xc(%rbp)
L138:
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xa,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xc,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xd,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xe,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xf,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  addq   $0x10,-0x20(%rbp)
  subl   $0x1,-0xc(%rbp)
  cmpl   $0x0,-0xc(%rbp)
  jne    L138
  mov    -0x14(%rbp),%eax
  mov    %eax,%ecx
  mov    $0x80078071,%edx
  imul   %rcx,%rdx
  shr    $0x20,%rdx
  shr    $0xf,%edx
  imul   $0xfff1,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rcx
  movabs $0xf00e10d2fc5cd,%rdx
  mov    %rcx,%rax
  mul    %rdx
  mov    %rcx,%rax
  sub    %rdx,%rax
  shr    %rax
  add    %rdx,%rax
  shr    $0xf,%rax
  imul   $0xfff1,%rax,%rdx
  mov    %rcx,%rax
  sub    %rdx,%rax
  mov    %rax,-0x8(%rbp)
L131:
  cmpl   $0x15af,-0x18(%rbp)
  ja     L29
  cmpl   $0x0,-0x18(%rbp)
  je     L167
  jmp    L135
L168:
  subl   $0x10,-0x18(%rbp)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xa,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xc,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xd,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xe,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0xf,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
  addq   $0x10,-0x20(%rbp)
L135:
  cmpl   $0xf,-0x18(%rbp)
  ja     L168
  jmp    L119
L20:
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    %rax,-0x8(%rbp)
L119:
  mov    -0x18(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x18(%rbp)
  test   %eax,%eax
  jne    L20
  mov    -0x14(%rbp),%eax
  mov    %eax,%ecx
  mov    $0x80078071,%edx
  imul   %rcx,%rdx
  shr    $0x20,%rdx
  shr    $0xf,%edx
  imul   $0xfff1,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rcx
  movabs $0xf00e10d2fc5cd,%rdx
  mov    %rcx,%rax
  mul    %rdx
  mov    %rcx,%rax
  sub    %rdx,%rax
  shr    %rax
  add    %rdx,%rax
  shr    $0xf,%rax
  imul   $0xfff1,%rax,%rdx
  mov    %rcx,%rax
  sub    %rdx,%rax
  mov    %rax,-0x8(%rbp)
L167:
  mov    -0x8(%rbp),%rax
  shl    $0x10,%eax
  or     -0x14(%rbp),%eax
L24:
  pop    %rbp
  ret
```

assistant: ```c
unsigned int adler32(adler, buf, len)
unsigned int adler;
const unsigned char *buf;
unsigned int len;
{
  unsigned long sum2;
  unsigned n;
  sum2 = (adler >> 16) & 0xffff;
  adler &= 0xffff;
  if (len == 1) {
    adler += buf[0];
    if (adler >= 65521UL)
      adler -= 65521UL;
    sum2 += adler;
    if (sum2 >= 65521UL)
      sum2 -= 65521UL;
    return adler | (sum2 << 16);
  }
  if (buf == (void *)(unsigned char)0)
    return 1L;
  if (len < 16) {
    while (len--) {
      adler += *buf++;
      sum2 += adler;
    }
    if (adler >= 65521UL)
      adler -= 65521UL;
    sum2 %= 65521UL;
    return adler | (sum2 << 16);
  }
  while (len >= 5552) {
    len -= 5552;
    n = 5552 / 16;
    do {
      {
        adler += (buf)[0];
        sum2 += adler;
      };
      {
        adler += (buf)[0 + 1];
        sum2 += adler;
      };
      ;
      {
        adler += (buf)[0 + 2];
        sum2 += adler;
      };
      {
        adler += (buf)[0 + 2 + 1];
        sum2 += adler;
      };
      ;
      ;
      {
        adler += (buf)[0 + 4];
        sum2 += adler;
      };
      {
        adler += (buf)[0 + 4 + 1];
        sum2 += adler;
      };
      ;
      {
        adler += (buf)[0 + 4 + 2];
        sum2 += adler;
      };
      {
        adler += (buf)[0 + 4 + 2 + 1];
        sum2 += adler;
      };
      ;
      ;
      ;
      {
        adler += (buf)[8];
        sum2 += adler;
      };
      {
        adler += (buf)[8 + 1];
        sum2 += adler;
      };
      ;
      {
        adler += (buf)[8 + 2];
        sum2 += adler;
      };
      {
        adler += (buf)[8 + 2 + 1];
        sum2 += adler;
      };
      ;
      ;
      {
        adler += (buf)[8 + 4];
        sum2 += adler;
      };
      {
        adler += (buf)[8 + 4 + 1];
        sum2 += adler;
      };
      ;
      {
        adler += (buf)[8 + 4 + 2];
        sum2 += adler;
      };
      {
        adler += (buf)[8 + 4 + 2 + 1];
        sum2 += adler;
      };
      ;
      ;
      ;
      ;
      buf += 16;
    } while (--n);
    adler %= 65521UL;
    sum2 %= 65521UL;
  }
  if (len) {
    while (len >= 16) {
      len -= 16;
      {
        adler += (buf)[0];
        sum2 += adler;
      };
      {
        adler += (buf)[0 + 1];
        sum2 += adler;
      };
      ;
      {
        adler += (buf)[0 + 2];
        sum2 += adler;
      };
      {
        adler += (buf)[0 + 2 + 1];
        sum2 += adler;
      };
      ;
      ;
      {
        adler += (buf)[0 + 4];
        sum2 += adler;
      };
      {
        adler += (buf)[0 + 4 + 1];
        sum2 += adler;
      };
      ;
      {
        adler += (buf)[0 + 4 + 2];
        sum2 += adler;
      };
      {
        adler += (buf)[0 + 4 + 2 + 1];
        sum2 += adler;
      };
      ;
      ;
      ;
      {
        adler += (buf)[8];
        sum2 += adler;
      };
      {
        adler += (buf)[8 + 1];
        sum2 += adler;
      };
      ;
      {
        adler += (buf)[8 + 2];
        sum2 += adler;
      };
      {
        adler += (buf)[8 + 2 + 1];
        sum2 += adler;
      };
      ;
      ;
      {
        adler += (buf)[8 + 4];
        sum2 += adler;
      };
      {
        adler += (buf)[8 + 4 + 1];
        sum2 += adler;
      };
      ;
      {
        adler += (buf)[8 + 4 + 2];
        sum2 += adler;
      };
      {
        adler += (buf)[8 + 4 + 2 + 1];
        sum2 += adler;
      };
      ;
      ;
      ;
      ;
      buf += 16;
    }
    while (len--) {
      adler += *buf++;
      sum2 += adler;
    }
    adler %= 65521UL;
    sum2 %= 65521UL;
  }
  return adler | (sum2 << 16);
}
```