Function at 0x18016cbf0
Capabilities:
Compute adler32 checksum

Disassembly:
mov r10d, ecx
movzx r9d, cx
shr r10d, 0x10
mov r11, rdx
cmp r8, 1
je 0x18016cd81
test rdx, rdx
jne 0x18016cc11
lea eax, [rdx + 1]
ret
cmp r8, 0x10
jb 0x18016cd3e
cmp r8, 0x15b0
jae 0x1801de19e
mov rcx, r8
shr rcx, 4
imul rax, rcx, 0xfffffffffffffff0
add r8, rax
movzx eax, byte [r11]
add r9d, eax
movzx eax, byte [r11 + 1]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 2]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 3]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 4]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 5]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 6]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 7]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 8]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 9]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xa]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xb]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xc]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xd]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xe]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xf]
add r10d, r9d
add r11, 0x10
add r9d, eax
add r10d, r9d
sub rcx, 1
jne 0x18016cc36
test r8, r8
je 0x18016cd0b
movzx eax, byte [r11]
inc r11
add r9d, eax
add r10d, r9d
sub r8, 1
jne 0x18016ccf8
mov eax, 0x80078071
mul r9d
mov eax, 0x80078071
shr edx, 0xf
imul ecx, edx, 0xffff000f
mul r10d
add r9d, ecx
shr edx, 0xf
imul ecx, edx, 0xffff000f
add r10d, ecx
shl r10d, 0x10
or r10d, r9d
mov eax, r10d
ret
test r8, r8
je 0x18016cd56
movzx eax, byte [r11]
inc r11
add r9d, eax
add r10d, r9d
sub r8, 1
jne 0x18016cd43
mov r8d, 0xfff1
lea ecx, [r9 - 0xfff1]
cmp r9d, r8d
mov eax, 0x80078071
cmovb ecx, r9d
mul r10d
shr edx, 0xf
imul eax, edx, 0xf
add eax, r10d
shl eax, 0x10
or eax, ecx
ret
movzx ecx, byte [rdx]
mov r8d, 0xfff1
add ecx, r9d
cmp ecx, r8d
lea edx, [rcx - 0xfff1]
cmovb edx, ecx
lea eax, [rdx + r10]
cmp eax, r8d
lea ecx, [rax - 0xfff1]
cmovb ecx, eax
shl ecx, 0x10
or ecx, edx
mov eax, ecx
ret
test r8, r8
je 0x18016cd33
cmp r8, 0x10
jae 0x18016cc28
jmp 0x18016ccf8
mov rcx, r8
movabs rax, 0x79baa6bb6398b6f7
mul r8
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 0xc
imul rax, rcx, 0xffffffffffffea50
add r8, rax
mov edx, 0x15b
movzx eax, byte [r11]
add r9d, eax
movzx eax, byte [r11 + 1]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 2]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 3]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 4]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 5]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 6]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 7]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 8]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 9]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xa]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xb]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xc]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xd]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xe]
add r10d, r9d
add r9d, eax
movzx eax, byte [r11 + 0xf]
add r10d, r9d
add r11, 0x10
add r9d, eax
add r10d, r9d
add edx, 0xffffffff
jne 0x1801de1ca
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul r10d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r10d, eax
sub rcx, 1
jne 0x1801de1c5
jmp 0x18016cdb1