// File: /workspace/github_c_makefile_star2_O3/lh3[P]fermi-lite/rle.c
// Function: rle_insert_cached
int rle_insert_cached(uint8_t *block, int64_t x, int a, int64_t rl, int64_t cnt[6], const int64_t ec[6], int *beg, int64_t bc[6])
{
	uint16_t *nptr = (uint16_t*)block;
	int diff;

	block += 2; // skip the first 2 counting bytes
	if (*nptr == 0) {
		memset(cnt, 0, 48);
		diff = rle_enc1(block, a, rl);
	} else {
		uint8_t *p, *end = block + *nptr, *q;
		int64_t pre, z, l = 0, tot, beg_l;
		int c = -1, n_bytes = 0, n_bytes2, t = 0;
		uint8_t tmp[24];
		beg_l = bc[0] + bc[1] + bc[2] + bc[3] + bc[4] + bc[5];
		tot   = ec[0] + ec[1] + ec[2] + ec[3] + ec[4] + ec[5];
		if (x < beg_l) {
			beg_l = 0, *beg = 0;
			memset(bc, 0, 48);
		}
		if (x == beg_l) {
			p = q = block + (*beg); z = beg_l;
			memcpy(cnt, bc, 48);
		} else if (x - beg_l <= ((tot-beg_l)>>1) + ((tot-beg_l)>>3)) { // forward
			z = beg_l; p = block + (*beg);
			memcpy(cnt, bc, 48);
			while (z < x) {
				rle_dec1(p, c, l);
				z += l; cnt[c] += l;
			}
			for (q = p - 1; *q>>6 == 2; --q);
		} else { // backward
			memcpy(cnt, ec, 48);
			z = tot; p = end;
			while (z >= x) {
				--p;
				if (*p>>6 != 2) {
					l |= *p>>7? (int64_t)rle_auxtab[*p>>3&7]>>4 << t : *p>>3;
					z -= l; cnt[*p&7] -= l;
					l = 0; t = 0;
				} else {
					l |= (*p&0x3fL) << t;
					t += 6;
				}
			}
			q = p;
			rle_dec1(p, c, l);
			z += l; cnt[c] += l;
		}
		*beg = q - block;
		memcpy(bc, cnt, 48);
		bc[c] -= l;
		n_bytes = p - q;
		if (x == z && a != c && p < end) { // then try the next run
			int tc;
			int64_t tl;
			q = p;
			rle_dec1(q, tc, tl);
			if (a == tc)
				c = tc, n_bytes = q - p, l = tl, z += l, p = q, cnt[tc] += tl;
		}
		if (z != x) cnt[c] -= z - x;
		pre = x - (z - l); p -= n_bytes;
		if (a == c) { // insert to the same run
			n_bytes2 = rle_enc1(tmp, c, l + rl);
		} else if (x == z) { // at the end; append to the existing run
			p += n_bytes; n_bytes = 0;
			n_bytes2 = rle_enc1(tmp, a, rl);
		} else { // break the current run
			n_bytes2 = rle_enc1(tmp, c, pre);
			n_bytes2 += rle_enc1(tmp + n_bytes2, a, rl);
			n_bytes2 += rle_enc1(tmp + n_bytes2, c, l - pre);
		}
		if (n_bytes != n_bytes2 && end != p + n_bytes) // size changed
			memmove(p + n_bytes2, p + n_bytes, end - p - n_bytes);
		memcpy(p, tmp, n_bytes2);
		diff = n_bytes2 - n_bytes;
	}
	return (*nptr += diff);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rax
movl %edx, %r10d
movq %rdi, %rbx
addq $0x2, %rdi
movzwl (%rbx), %edx
testq %rdx, %rdx
je 0x15d77
movq 0x58(%rsp), %r15
movdqu (%r15), %xmm0
movdqu 0x10(%r15), %xmm1
paddq %xmm0, %xmm1
pshufd $0xee, %xmm1, %xmm0     # xmm0 = xmm1[2,3,2,3]
paddq %xmm1, %xmm0
movq %xmm0, %r13
addq 0x20(%r15), %r13
addq 0x28(%r15), %r13
movq 0x8(%r9), %rbp
addq (%r9), %rbp
addq 0x10(%r9), %rbp
addq 0x18(%r9), %rbp
addq 0x20(%r9), %rbp
movq 0x50(%rsp), %r12
addq 0x28(%r9), %rbp
cmpq %rsi, %r13
jle 0x15d36
movl $0x0, (%r12)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x20(%r15)
movdqu %xmm0, 0x10(%r15)
movdqu %xmm0, (%r15)
xorl %r13d, %r13d
addq %rdi, %rdx
movq %rsi, %rcx
subq %r13, %rcx
jne 0x15da4
movslq (%r12), %r9
addq %rdi, %r9
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%r8)
movups %xmm1, 0x10(%r8)
movups %xmm0, (%r8)
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r11d, %r11d
movq %r9, %r14
movq %rsi, %r13
jmp 0x15fd1
pxor %xmm0, %xmm0
movdqu %xmm0, 0x20(%r8)
movdqu %xmm0, 0x10(%r8)
movdqu %xmm0, (%r8)
cmpq $0xf, %rax
jg 0x15de9
shll $0x3, %eax
orl %r10d, %eax
movb %al, (%rdi)
movw $0x1, %r15w
jmp 0x1679a
movq %rbp, %r11
subq %r13, %r11
movq %r11, %r14
sarq %r14
sarq $0x3, %r11
addq %r14, %r11
cmpq %r11, %rcx
jle 0x15e17
movups (%r9), %xmm0
movups 0x10(%r9), %xmm1
movups 0x20(%r9), %xmm2
movups %xmm2, 0x20(%r8)
movups %xmm1, 0x10(%r8)
movups %xmm0, (%r8)
cmpq %rsi, %rbp
jge 0x15f1b
movq %rdx, %r9
jmp 0x15f8a
cmpq $0xff, %rax
ja 0x15ecf
movl %eax, %ecx
shrl $0x3, %ecx
andl $0x18, %ecx
orl %r10d, %ecx
orb $-0x40, %cl
movb %cl, 0x2(%rbx)
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x3(%rbx)
movw $0x2, %r15w
jmp 0x1679a
movslq (%r12), %r14
addq %rdi, %r14
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%r8)
movups %xmm1, 0x10(%r8)
movups %xmm0, (%r8)
cmpq %r13, %rsi
jle 0x15fb6
movzbl (%r14), %ecx
testb %cl, %cl
js 0x15e69
incq %r14
movl %ecx, %r11d
shrl $0x3, %r11d
andl $0x7, %ecx
addq %r11, %r13
addq %r11, (%r8,%rcx,8)
cmpq %rsi, %r13
jl 0x15e43
jmp 0x15fbe
movl %ecx, %r9d
andl $-0x20, %r9d
cmpl $0xc0, %r9d
jne 0x15e93
movl %ecx, %r9d
andl $0x18, %r9d
movzbl 0x1(%r14), %r11d
andl $0x3f, %r11d
leaq (%r11,%r9,8), %r11
addq $0x2, %r14
jmp 0x15e55
movl %ecx, %r9d
shrl $0x2, %r9d
andl $0x4, %r9d
movl %ecx, %r11d
shrl $0x3, %r11d
andl $0x1, %r11d
incq %r14
xorl $-0x3, %r9d
shlq $0x6, %r11
movq %r12, %rbp
movzbl (%r14), %r12d
andl $0x3f, %r12d
orq %r12, %r11
movq %rbp, %r12
incq %r14
incl %r9d
jne 0x15eb0
jmp 0x15e55
movl %r10d, %ecx
cmpq $0x7ffff, %rax          # imm = 0x7FFFF
ja 0x1622c
movl %eax, %edx
shrl $0xf, %edx
andl $0x8, %edx
orl %edx, %ecx
orb $-0x20, %cl
movb %cl, 0x2(%rbx)
movl %eax, %ecx
shrl $0xc, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x3(%rbx)
movl %eax, %ecx
shrl $0x6, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x4(%rbx)
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x5(%rbx)
movw $0x4, %r15w
jmp 0x1679a
xorl %ecx, %ecx
leaq 0x213c(%rip), %r11      # 0x18060
xorl %r14d, %r14d
movq %rdx, %r9
movzbl -0x1(%r9), %r13d
movl %r13d, %r12d
andl $-0x40, %r12d
cmpl $0x80, %r12d
jne 0x15f4e
andl $0x3f, %r13d
shlq %cl, %r13
orq %r13, %r14
addl $0x6, %ecx
jmp 0x15f82
movl %r13d, %r12d
shrl $0x3, %r12d
testb %r13b, %r13b
js 0x15f5f
movl %r12d, %r12d
jmp 0x15f6f
andl $0x7, %r12d
movzbl (%r12,%r11), %r12d
shrl $0x4, %r12d
shlq %cl, %r12
orq %r14, %r12
andl $0x7, %r13d
subq %r12, (%r8,%r13,8)
subq %r12, %rbp
xorl %r14d, %r14d
xorl %ecx, %ecx
decq %r9
cmpq %rsi, %rbp
jge 0x15f2a
movzbl (%r9), %r11d
movl %r11d, %ecx
andl $0x7, %ecx
testb %r11b, %r11b
js 0x167dc
leaq 0x1(%r9), %r14
shrl $0x3, %r11d
movq 0x50(%rsp), %r12
addq %r11, %rbp
addq %r11, (%r8,%rcx,8)
movq %rbp, %r13
jmp 0x15fd1
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r11d, %r11d
movq %r14, %r9
movb -0x1(%r9), %bpl
decq %r9
andb $-0x40, %bpl
negb %bpl
jo 0x15fc1
movl %r9d, %ebp
subl %edi, %ebp
movl %ebp, (%r12)
movdqu (%r8), %xmm0
movups 0x10(%r8), %xmm1
movups 0x20(%r8), %xmm2
movups %xmm2, 0x20(%r15)
movups %xmm1, 0x10(%r15)
movdqu %xmm0, (%r15)
movslq %ecx, %rdi
subq %r11, (%r15,%rdi,8)
movq %r14, %r12
subq %r9, %r12
cmpq %rsi, %r13
jne 0x1604a
cmpl %r10d, %ecx
je 0x1604a
cmpq %rdx, %r14
jae 0x1604a
movzbl (%r14), %r9d
movl %r9d, %ebp
andl $0x7, %ebp
testb %r9b, %r9b
js 0x167b5
leaq 0x1(%r14), %rdi
shrl $0x3, %r9d
cmpl %r10d, %ebp
jne 0x1605e
movq %rdi, %r12
subq %r14, %r12
leaq (%r9,%rsi), %r13
movl %r10d, %ecx
addq %r9, (%r8,%rcx,8)
movl %r10d, %ecx
jmp 0x16050
movq %r14, %rdi
movq %r11, %r9
movq %rsi, %r11
subq %r13, %r11
jne 0x1606e
movq %r9, %r11
movq %rdi, %r14
cmpl %r10d, %ecx
jne 0x160a1
movslq %r12d, %rsi
subq %rsi, %r14
movq %r14, %rdi
jmp 0x16083
movslq %ecx, %r14
addq %r11, (%r8,%r14,8)
movslq %r12d, %r8
subq %r8, %rdi
cmpl %r10d, %r14d
jne 0x160f1
movq %r9, %r11
addq %rax, %r11
cmpq $0xf, %r11
jg 0x160bd
shll $0x3, %r11d
orl %ecx, %r11d
movb %r11b, (%rsp)
movl $0x1, %ebp
jmp 0x16764
cmpq $0xf, %rax
jg 0x1611c
shll $0x3, %eax
orl %r10d, %eax
movb %al, (%rsp)
xorl %r12d, %r12d
movl $0x1, %ebp
jmp 0x1676f
cmpq $0xff, %r11
ja 0x1614e
movl %r11d, %eax
shrl $0x3, %eax
andl $0x18, %eax
orl %ecx, %eax
orb $-0x40, %al
movb %al, (%rsp)
andb $0x3f, %r11b
orb $-0x80, %r11b
movb %r11b, 0x1(%rsp)
movl $0x2, %ebp
jmp 0x16764
movq %r9, %r8
subq %r13, %r8
addq %rsi, %r8
cmpq $0xf, %r8
jg 0x161a0
leal (,%r8,8), %esi
orl %ecx, %esi
movb %sil, (%rsp)
movl $0x1, %esi
jmp 0x164df
cmpq $0xff, %rax
ja 0x161da
movl %eax, %ecx
shrl $0x3, %ecx
andl $0x18, %ecx
orl %r10d, %ecx
orb $-0x40, %cl
movb %cl, (%rsp)
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rsp)
xorl %r12d, %r12d
movl $0x2, %ebp
jmp 0x1676f
movl %ecx, %eax
cmpq $0x7ffff, %r11          # imm = 0x7FFFF
ja 0x162b6
movl %r11d, %ecx
shrl $0xf, %ecx
andl $0x8, %ecx
orl %ecx, %eax
orb $-0x20, %al
movb %al, (%rsp)
movl %r11d, %eax
shrl $0xc, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rsp)
movl %r11d, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x2(%rsp)
andb $0x3f, %r11b
orb $-0x80, %r11b
movb %r11b, 0x3(%rsp)
movl $0x4, %ebp
jmp 0x16764
cmpq $0xff, %r8
ja 0x16344
movl %r8d, %esi
shrl $0x3, %esi
andl $0x18, %esi
orl %ecx, %esi
orb $-0x40, %sil
movb %sil, (%rsp)
movl %r8d, %esi
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%rsp)
movl $0x2, %esi
jmp 0x164df
movl %r10d, %ecx
cmpq $0x7ffff, %rax          # imm = 0x7FFFF
ja 0x163a9
movl %eax, %esi
shrl $0xf, %esi
andl $0x8, %esi
orl %esi, %ecx
orb $-0x20, %cl
movb %cl, (%rsp)
movl %eax, %ecx
shrl $0xc, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rsp)
movl %eax, %ecx
shrl $0x6, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x2(%rsp)
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x3(%rsp)
xorl %r12d, %r12d
movl $0x4, %ebp
jmp 0x1676f
movq %rax, %rdx
shrq $0x27, %rdx
andl $0x8, %edx
orl %edx, %ecx
orb $-0x10, %cl
movb %cl, 0x2(%rbx)
movq %rax, %rcx
shrq $0x24, %rcx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x3(%rbx)
movq %rax, %rcx
shrq $0x1e, %rcx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x4(%rbx)
movl %eax, %ecx
shrl $0x18, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x5(%rbx)
movl %eax, %ecx
shrl $0x12, %ecx
movl %eax, %edx
shrl $0x4, %edx
andl $0xff00, %edx           # imm = 0xFF00
movzbl %cl, %ecx
orl %edx, %ecx
movl %eax, %edx
shll $0xa, %edx
andl $0xff0000, %edx         # imm = 0xFF0000
orl %ecx, %edx
shll $0x18, %eax
orl %edx, %eax
movd %eax, %xmm0
pand 0x1da1(%rip), %xmm0     # 0x18040
por 0x1da9(%rip), %xmm0     # 0x18050
movd %xmm0, 0x6(%rbx)
movw $0x8, %r15w
jmp 0x1679a
movq %r11, %rcx
shrq $0x27, %rcx
andl $0x8, %ecx
orl %ecx, %eax
orb $-0x10, %al
movb %al, (%rsp)
movq %r11, %rax
shrq $0x24, %rax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rsp)
movq %r11, %rax
shrq $0x1e, %rax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x2(%rsp)
movl %r11d, %eax
shrl $0x18, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x3(%rsp)
movl %r11d, %eax
shrl $0x12, %eax
movl %r11d, %ecx
shrl $0x4, %ecx
andl $0xff00, %ecx           # imm = 0xFF00
movzbl %al, %eax
orl %ecx, %eax
movl %r11d, %ecx
shll $0xa, %ecx
andl $0xff0000, %ecx         # imm = 0xFF0000
orl %eax, %ecx
shll $0x18, %r11d
orl %ecx, %r11d
movd %r11d, %xmm0
pand 0x1d14(%rip), %xmm0     # 0x18040
por 0x1d1c(%rip), %xmm0     # 0x18050
movd %xmm0, 0x4(%rsp)
movl $0x8, %ebp
jmp 0x16764
movl %ecx, %esi
cmpq $0x7ffff, %r8           # imm = 0x7FFFF
ja 0x1643a
movl %r8d, %r11d
shrl $0xf, %r11d
andl $0x8, %r11d
orl %r11d, %esi
orb $-0x20, %sil
movb %sil, (%rsp)
movl %r8d, %esi
shrl $0xc, %esi
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%rsp)
movl %r8d, %esi
shrl $0x6, %esi
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x2(%rsp)
movl %r8d, %esi
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x3(%rsp)
movl $0x4, %esi
jmp 0x164df
movq %rax, %rsi
shrq $0x27, %rsi
andl $0x8, %esi
orl %esi, %ecx
orb $-0x10, %cl
movb %cl, (%rsp)
movq %rax, %rcx
shrq $0x24, %rcx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rsp)
movq %rax, %rcx
shrq $0x1e, %rcx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x2(%rsp)
movl %eax, %ecx
shrl $0x12, %ecx
movl %eax, %esi
shrl $0x4, %esi
andl $0xff00, %esi           # imm = 0xFF00
movzbl %cl, %ecx
orl %esi, %ecx
movl %eax, %esi
shll $0xa, %esi
andl $0xff0000, %esi         # imm = 0xFF0000
orl %ecx, %esi
movl %eax, %ecx
shrl $0x18, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
shll $0x18, %eax
orl %esi, %eax
movd %eax, %xmm0
pand 0x1c25(%rip), %xmm0     # 0x18040
por 0x1c2d(%rip), %xmm0     # 0x18050
movb %cl, 0x3(%rsp)
movd %xmm0, 0x4(%rsp)
xorl %r12d, %r12d
movl $0x8, %ebp
jmp 0x1676f
movq %r8, %r11
shrq $0x27, %r11
andl $0x8, %r11d
orl %r11d, %esi
orb $-0x10, %sil
movb %sil, (%rsp)
movq %r8, %rsi
shrq $0x24, %rsi
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%rsp)
movq %r8, %rsi
shrq $0x1e, %rsi
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x2(%rsp)
movl %r8d, %esi
shrl $0x18, %esi
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x3(%rsp)
movl %r8d, %esi
shrl $0x12, %esi
movl %r8d, %r11d
shrl $0x4, %r11d
andl $0xff00, %r11d          # imm = 0xFF00
movzbl %sil, %esi
orl %r11d, %esi
movl %r8d, %r11d
shll $0xa, %r11d
andl $0xff0000, %r11d        # imm = 0xFF0000
orl %esi, %r11d
movl %r8d, %esi
shll $0x18, %esi
orl %r11d, %esi
movd %esi, %xmm0
pand 0x1b74(%rip), %xmm0     # 0x18040
por 0x1b7c(%rip), %xmm0     # 0x18050
movd %xmm0, 0x4(%rsp)
movl $0x8, %esi
movl %esi, %esi
cmpq $0xf, %rax
jg 0x164fa
shll $0x3, %eax
orl %r10d, %eax
movb %al, (%rsp,%rsi)
movl $0x1, %eax
jmp 0x16629
cmpq $0xff, %rax
ja 0x1652a
movl %eax, %r11d
shrl $0x3, %r11d
andl $0x18, %r11d
orl %r10d, %r11d
orb $-0x40, %r11b
movb %r11b, (%rsp,%rsi)
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rsp,%rsi)
movl $0x2, %eax
jmp 0x16629
movl %r10d, %r10d
cmpq $0x7ffff, %rax          # imm = 0x7FFFF
ja 0x16585
movl %eax, %r11d
shrl $0xf, %r11d
andl $0x8, %r11d
orl %r11d, %r10d
orb $-0x20, %r10b
movb %r10b, (%rsp,%rsi)
movl %eax, %r10d
shrl $0xc, %r10d
andb $0x3f, %r10b
orb $-0x80, %r10b
movb %r10b, 0x1(%rsp,%rsi)
movl %eax, %r10d
shrl $0x6, %r10d
andb $0x3f, %r10b
orb $-0x80, %r10b
movb %r10b, 0x2(%rsp,%rsi)
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x3(%rsp,%rsi)
movl $0x4, %eax
jmp 0x16629
movq %rax, %r11
shrq $0x27, %r11
andl $0x8, %r11d
orl %r11d, %r10d
orb $-0x10, %r10b
movb %r10b, (%rsp,%rsi)
movq %rax, %r10
shrq $0x24, %r10
andb $0x3f, %r10b
orb $-0x80, %r10b
movb %r10b, 0x1(%rsp,%rsi)
movq %rax, %r10
shrq $0x1e, %r10
andb $0x3f, %r10b
orb $-0x80, %r10b
movb %r10b, 0x2(%rsp,%rsi)
movl %eax, %r10d
shrl $0x18, %r10d
andb $0x3f, %r10b
orb $-0x80, %r10b
movb %r10b, 0x3(%rsp,%rsi)
movl %eax, %r10d
shrl $0x12, %r10d
movl %eax, %r11d
shrl $0x4, %r11d
andl $0xff00, %r11d          # imm = 0xFF00
movzbl %r10b, %r10d
orl %r11d, %r10d
movl %eax, %r11d
shll $0xa, %r11d
andl $0xff0000, %r11d        # imm = 0xFF0000
orl %r10d, %r11d
shll $0x18, %eax
orl %r11d, %eax
movd %eax, %xmm0
pand 0x1a2a(%rip), %xmm0     # 0x18040
por 0x1a32(%rip), %xmm0     # 0x18050
movd %xmm0, 0x4(%rsp,%rsi)
movl $0x8, %eax
movl %eax, %eax
addq %rsi, %rax
subq %r8, %r9
cmpq $0xf, %r9
jg 0x1664c
shll $0x3, %r9d
orl %ecx, %r9d
movb %r9b, (%rsp,%rax)
movl $0x1, %ebp
jmp 0x16762
cmpq $0xff, %r9
ja 0x1667f
movl %r9d, %esi
shrl $0x3, %esi
andl $0x18, %esi
orl %ecx, %esi
orb $-0x40, %sil
movb %sil, (%rsp,%rax)
andb $0x3f, %r9b
orb $-0x80, %r9b
movb %r9b, 0x1(%rsp,%rax)
movl $0x2, %ebp
jmp 0x16762
movl %ecx, %ecx
cmpq $0x7ffff, %r9           # imm = 0x7FFFF
ja 0x166d2
movl %r9d, %esi
shrl $0xf, %esi
andl $0x8, %esi
orl %esi, %ecx
orb $-0x20, %cl
movb %cl, (%rsp,%rax)
movl %r9d, %ecx
shrl $0xc, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rsp,%rax)
movl %r9d, %ecx
shrl $0x6, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x2(%rsp,%rax)
andb $0x3f, %r9b
orb $-0x80, %r9b
movb %r9b, 0x3(%rsp,%rax)
movl $0x4, %ebp
jmp 0x16762
movq %r9, %rsi
shrq $0x27, %rsi
andl $0x8, %esi
orl %esi, %ecx
orb $-0x10, %cl
movb %cl, (%rsp,%rax)
movq %r9, %rcx
shrq $0x24, %rcx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rsp,%rax)
movq %r9, %rcx
shrq $0x1e, %rcx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x2(%rsp,%rax)
movl %r9d, %ecx
shrl $0x18, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x3(%rsp,%rax)
movl %r9d, %ecx
shrl $0x12, %ecx
movl %r9d, %esi
shrl $0x4, %esi
andl $0xff00, %esi           # imm = 0xFF00
movzbl %cl, %ecx
orl %esi, %ecx
movl %r9d, %esi
shll $0xa, %esi
andl $0xff0000, %esi         # imm = 0xFF0000
orl %ecx, %esi
shll $0x18, %r9d
orl %esi, %r9d
movd %r9d, %xmm0
pand 0x18f1(%rip), %xmm0     # 0x18040
por 0x18f9(%rip), %xmm0     # 0x18050
movd %xmm0, 0x4(%rsp,%rax)
movl $0x8, %ebp
addl %eax, %ebp
movq %rdi, %r14
movl %r12d, %eax
cmpl %r12d, %ebp
je 0x16786
movslq %r12d, %rsi
addq %r14, %rsi
subq %rsi, %rdx
je 0x16784
movl %ebp, %edi
addq %r14, %rdi
callq 0x2200
movl %ebp, %eax
movslq %eax, %r15
movq %rsp, %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x2170
subl %r12d, %r15d
addw (%rbx), %r15w
movw %r15w, (%rbx)
movzwl %r15w, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r9d, %edi
andl $-0x20, %edi
cmpl $0xc0, %edi
jne 0x16806
andl $0x18, %r9d
movzbl 0x1(%r14), %edi
andl $0x3f, %edi
leaq (%rdi,%r9,8), %r9
leaq 0x2(%r14), %rdi
jmp 0x1602f
movl %r11d, %r14d
andl $-0x20, %r14d
cmpl $0xc0, %r14d
jne 0x1683d
andl $0x18, %r11d
movzbl 0x1(%r9), %r14d
andl $0x3f, %r14d
leaq (%r14,%r11,8), %r11
leaq 0x2(%r9), %r14
jmp 0x15fa5
movl %r9d, %r15d
shrl $0x2, %r15d
andl $0x4, %r15d
shrl $0x3, %r9d
andl $0x1, %r9d
leaq 0x1(%r14), %rdi
xorl $-0x3, %r15d
shlq $0x6, %r9
movzbl (%rdi), %r13d
andl $0x3f, %r13d
orq %r13, %r9
incq %rdi
incl %r15d
jne 0x16821
jmp 0x1602f
movl %r11d, %r13d
shrl $0x2, %r13d
andl $0x4, %r13d
shrl $0x3, %r11d
andl $0x1, %r11d
leaq 0x1(%r9), %r14
xorl $-0x3, %r13d
shlq $0x6, %r11
movzbl (%r14), %r12d
andl $0x3f, %r12d
orq %r12, %r11
movq 0x50(%rsp), %r12
incq %r14
incl %r13d
jne 0x16858
jmp 0x15faa