// File: /workspace/github_c_makefile_star2_O2/rb-de0[P]hashverifier-for-monacoin/Lyra2RE/groestl.c
// Function: groestl_small_close
static void
groestl_small_close(sph_groestl_small_context *sc,
	unsigned ub, unsigned n, void *dst, size_t out_len)
{
	unsigned char pad[72];
	size_t u, ptr, pad_len;
#if SPH_64
	sph_u64 count;
#else
	sph_u32 count_high, count_low;
#endif
	unsigned z;
	DECL_STATE_SMALL

	ptr = sc->ptr;
	z = 0x80 >> n;
	pad[0] = ((ub & -z) | z) & 0xFF;
	if (ptr < 56) {
		pad_len = 64 - ptr;
#if SPH_64
		count = SPH_T64(sc->count + 1);
#else
		count_low = SPH_T32(sc->count_low + 1);
		count_high = SPH_T32(sc->count_high);
		if (count_low == 0)
			count_high = SPH_T32(count_high + 1);
#endif
	} else {
		pad_len = 128 - ptr;
#if SPH_64
		count = SPH_T64(sc->count + 2);
#else
		count_low = SPH_T32(sc->count_low + 2);
		count_high = SPH_T32(sc->count_high);
		if (count_low <= 1)
			count_high = SPH_T32(count_high + 1);
#endif
	}
	memset(pad + 1, 0, pad_len - 9);
#if SPH_64
	sph_enc64be(pad + pad_len - 8, count);
#else
	sph_enc64be(pad + pad_len - 8, count_high);
	sph_enc64be(pad + pad_len - 4, count_low);
#endif
	groestl_small_core(sc, pad, pad_len);
	READ_STATE_SMALL(sc);
	FINAL_SMALL;
#if SPH_GROESTL_64
	for (u = 0; u < 4; u ++)
		enc64e(pad + (u << 3), H[u + 4]);
#else
	for (u = 0; u < 8; u ++)
		enc32e(pad + (u << 2), H[u + 8]);
#endif
	memcpy(dst, pad + 32 - out_len, out_len);
	groestl_small_init(sc, (unsigned)out_len << 3);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %r8, -0xc8(%rbp)
movq %rcx, -0xb8(%rbp)
movl %edx, %ecx
movq %rdi, %r15
movq 0x40(%rdi), %rax
movl $0x80, %edx
shrl %cl, %edx
movl %edx, %ecx
negl %ecx
andl %esi, %ecx
orl %edx, %ecx
leaq -0x15f(%rbp), %rdi
movb %cl, -0x1(%rdi)
xorl %ebx, %ebx
cmpq $0x38, %rax
setae %bl
movq 0x88(%r15), %r14
sbbq $0x0, %r14
shll $0x6, %ebx
addq $0x2, %r14
subq %rax, %rbx
leaq 0x40(%rbx), %r13
leaq 0x37(%rbx), %rdx
xorl %r12d, %r12d
xorl %esi, %esi
callq 0x1080
bswapq %r14
movq %r14, -0x128(%rbp,%rbx)
leaq -0x160(%rbp), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x3a46
movups 0x48(%r15), %xmm0
movups 0x58(%r15), %xmm1
movups 0x68(%r15), %xmm2
movups 0x78(%r15), %xmm3
movaps %xmm3, -0xe0(%rbp)
movaps %xmm2, -0xf0(%rbp)
movaps %xmm1, -0x100(%rbp)
movaps %xmm0, -0x110(%rbp)
movups 0x48(%r15), %xmm0
movups 0x58(%r15), %xmm1
movups 0x68(%r15), %xmm2
movq %r15, -0xc0(%rbp)
movups 0x78(%r15), %xmm3
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x98(%rbp), %rdx
movq -0x90(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x88(%rbp), %r11
movq -0x80(%rbp), %rbx
movq -0x78(%rbp), %rcx
cmpq $0xa, %r12
jae 0x5f5f
movq -0x48(%rbp), %rsi
movq %rdx, %r15
movl $0xff, %eax
andq %rax, %rsi
xorq %r12, %rsi
movq -0x38(%rbp), %rdi
movl %edi, %eax
movq %rdi, %r13
movq %rdi, -0x38(%rbp)
shrl $0x8, %eax
movl $0xff, %edi
andl %edi, %eax
leaq 0x1a41a(%rip), %r8      # 0x1f880
movq (%r8,%rax,8), %rax
leaq 0x19c0f(%rip), %r8      # 0x1f080
xorq (%r8,%rsi,8), %rax
movq -0x40(%rbp), %r14
movl %r14d, %esi
shrl $0xd, %esi
movl $0x7f8, %r8d            # imm = 0x7F8
andl %r8d, %esi
leaq 0x1abf1(%rip), %r8      # 0x20080
xorq (%rsi,%r8), %rax
movl %r15d, %esi
shrl $0x18, %esi
leaq 0x1b3e0(%rip), %r8      # 0x20880
xorq (%r8,%rsi,8), %rax
movq -0x50(%rbp), %r9
movq %r9, %rsi
shrq $0x20, %rsi
andl %edi, %esi
leaq 0x1bbc8(%rip), %rdx     # 0x21080
xorq (%rdx,%rsi,8), %rax
movq %r11, %rsi
shrq $0x28, %rsi
andl %edi, %esi
leaq 0x1c3b4(%rip), %r8      # 0x21880
xorq (%r8,%rsi,8), %rax
movq %rbx, %rsi
shrq $0x30, %rsi
andl %edi, %esi
leaq 0x1cba0(%rip), %r8      # 0x22080
xorq (%r8,%rsi,8), %rax
movq %rcx, %rsi
shrq $0x38, %rsi
leaq 0x1d38e(%rip), %r10     # 0x22880
xorq (%r10,%rsi,8), %rax
movq %rax, -0x68(%rbp)
movq %r13, %rsi
movl $0xff, %eax
andq %rax, %rsi
leaq 0x10(%r12), %r8
xorq %rsi, %r8
movl %r14d, %esi
movq %r14, -0x40(%rbp)
shrl $0x8, %esi
andl %edi, %esi
leaq 0x1a360(%rip), %rax     # 0x1f880
movq (%rax,%rsi,8), %rsi
leaq 0x19b55(%rip), %r13     # 0x1f080
xorq (%r13,%r8,8), %rsi
movl %r15d, %r8d
shrl $0xd, %r8d
movl $0x7f8, %eax            # imm = 0x7F8
andl %eax, %r8d
leaq 0x1ab3a(%rip), %rax     # 0x20080
xorq (%r8,%rax), %rsi
movl %r9d, %r8d
shrl $0x18, %r8d
leaq 0x1b328(%rip), %rax     # 0x20880
xorq (%rax,%r8,8), %rsi
movq %r11, %r8
shrq $0x20, %r8
andl %edi, %r8d
xorq (%rdx,%r8,8), %rsi
movq %rbx, %r8
shrq $0x28, %r8
andl %edi, %r8d
leaq 0x1c305(%rip), %rax     # 0x21880
xorq (%rax,%r8,8), %rsi
movq %rcx, %r8
shrq $0x30, %r8
andl %edi, %r8d
leaq 0x1caf0(%rip), %rdx     # 0x22080
xorq (%rdx,%r8,8), %rsi
movq -0x48(%rbp), %rdx
movq %rdx, %r8
shrq $0x38, %r8
xorq (%r10,%r8,8), %rsi
movq %rsi, -0x60(%rbp)
movl $0xff, %esi
andq %rsi, %r14
leaq 0x20(%r12), %r10
xorq %r14, %r10
movq %r15, -0xd0(%rbp)
movl %r15d, %r8d
shrl $0x8, %r8d
andl %edi, %r8d
leaq 0x1a2b1(%rip), %rsi     # 0x1f880
movq (%rsi,%r8,8), %r8
xorq (%r13,%r10,8), %r8
movl %r9d, %r10d
shrl $0xd, %r10d
movl $0x7f8, %esi            # imm = 0x7F8
andl %esi, %r10d
leaq 0x1aa92(%rip), %rsi     # 0x20080
xorq (%r10,%rsi), %r8
movl %r11d, %r10d
shrl $0x18, %r10d
leaq 0x1b280(%rip), %rsi     # 0x20880
xorq (%rsi,%r10,8), %r8
movq %rbx, %r10
shrq $0x20, %r10
andl %edi, %r10d
leaq 0x1ba6b(%rip), %r13     # 0x21080
xorq (%r13,%r10,8), %r8
movq %rcx, %r10
shrq $0x28, %r10
andl %edi, %r10d
xorq (%rax,%r10,8), %r8
movq %rdx, %r10
shrq $0x30, %r10
andl %edi, %r10d
leaq 0x1ca47(%rip), %rsi     # 0x22080
xorq (%rsi,%r10,8), %r8
movq -0x38(%rbp), %rax
movq %rax, %r10
shrq $0x38, %r10
leaq 0x1d231(%rip), %r14     # 0x22880
xorq (%r14,%r10,8), %r8
movq %r8, -0x58(%rbp)
movq %r15, %r10
movl $0xff, %r8d
andq %r8, %r10
leaq 0x30(%r12), %r15
xorq %r10, %r15
movl %r9d, %r10d
shrl $0x8, %r10d
andl %edi, %r10d
leaq 0x1a204(%rip), %r8      # 0x1f880
movq (%r8,%r10,8), %r10
leaq 0x199f9(%rip), %r8      # 0x1f080
xorq (%r8,%r15,8), %r10
movl %r11d, %r15d
shrl $0xd, %r15d
movl $0x7f8, %r8d            # imm = 0x7F8
andl %r8d, %r15d
leaq 0x1a9de(%rip), %r8      # 0x20080
xorq (%r15,%r8), %r10
movl %ebx, %r15d
shrl $0x18, %r15d
leaq 0x1b1cc(%rip), %r8      # 0x20880
xorq (%r8,%r15,8), %r10
movq %rcx, %r15
shrq $0x20, %r15
andl %edi, %r15d
xorq (%r13,%r15,8), %r10
movq %rdx, %r15
shrq $0x28, %r15
andl %edi, %r15d
leaq 0x1c1a8(%rip), %r8      # 0x21880
xorq (%r8,%r15,8), %r10
movq %rax, %r15
shrq $0x30, %r15
andl %edi, %r15d
xorq (%rsi,%r15,8), %r10
movq -0x40(%rbp), %rax
movq %rax, %r15
shrq $0x38, %r15
xorq (%r14,%r15,8), %r10
movq %r9, %r15
movl $0xff, %esi
andq %rsi, %r15
movq %r12, -0x30(%rbp)
movq -0x30(%rbp), %r14
leaq 0x40(%r14), %r12
xorq %r15, %r12
movl %r11d, %r15d
shrl $0x8, %r15d
andl %edi, %r15d
leaq 0x1a15c(%rip), %rsi     # 0x1f880
movq (%rsi,%r15,8), %r13
leaq 0x19951(%rip), %rsi     # 0x1f080
xorq (%rsi,%r12,8), %r13
movl %ebx, %r15d
shrl $0xd, %r15d
movl $0x7f8, %esi            # imm = 0x7F8
andl %esi, %r15d
leaq 0x1a937(%rip), %rsi     # 0x20080
xorq (%r15,%rsi), %r13
movl %ecx, %r15d
shrl $0x18, %r15d
leaq 0x1b125(%rip), %rsi     # 0x20880
xorq (%rsi,%r15,8), %r13
movq %rdx, %r15
shrq $0x20, %r15
movl $0xff, %esi
andl %esi, %r15d
leaq 0x1b90b(%rip), %rdi     # 0x21080
xorq (%rdi,%r15,8), %r13
movq -0x38(%rbp), %rdi
movq %rdi, %r15
shrq $0x28, %r15
andl %esi, %r15d
xorq (%r8,%r15,8), %r13
movq %rax, %r15
shrq $0x30, %r15
andl %esi, %r15d
movl $0xff, %r8d
leaq 0x1c8de(%rip), %rax     # 0x22080
xorq (%rax,%r15,8), %r13
movq -0xd0(%rbp), %rax
movq %rax, %r15
shrq $0x38, %r15
leaq 0x1d0c5(%rip), %rsi     # 0x22880
xorq (%rsi,%r15,8), %r13
movq %r11, %r15
movl $0xff, %esi
andq %rsi, %r15
movq -0x30(%rbp), %r14
leaq 0x50(%r14), %r12
xorq %r15, %r12
movl %ebx, %r15d
shrl $0x8, %r15d
andl %r8d, %r15d
leaq 0x1a09a(%rip), %rsi     # 0x1f880
movq (%rsi,%r15,8), %r15
leaq 0x1988f(%rip), %rsi     # 0x1f080
xorq (%rsi,%r12,8), %r15
movl %ecx, %r12d
shrl $0xd, %r12d
movl $0x7f8, %esi            # imm = 0x7F8
andl %esi, %r12d
leaq 0x1a875(%rip), %rsi     # 0x20080
xorq (%r12,%rsi), %r15
movl %edx, %r12d
shrl $0x18, %r12d
leaq 0x1b063(%rip), %rsi     # 0x20880
xorq (%rsi,%r12,8), %r15
movq %rdi, %r12
shrq $0x20, %r12
andl %r8d, %r12d
leaq 0x1b84e(%rip), %rsi     # 0x21080
xorq (%rsi,%r12,8), %r15
movq -0x40(%rbp), %rsi
movq %rsi, %r12
shrq $0x28, %r12
andl %r8d, %r12d
leaq 0x1c035(%rip), %r14     # 0x21880
xorq (%r14,%r12,8), %r15
movq %rax, %r12
shrq $0x30, %r12
andl %r8d, %r12d
leaq 0x1c820(%rip), %r14     # 0x22080
xorq (%r14,%r12,8), %r15
movq %r9, %r12
shrq $0x38, %r12
leaq 0x1d00e(%rip), %r14     # 0x22880
xorq (%r14,%r12,8), %r15
movq %rbx, %r12
movl $0xff, %r14d
andq %r14, %r12
movq -0x30(%rbp), %r14
addq $0x60, %r14
xorq %r12, %r14
movl %ecx, %r12d
shrl $0x8, %r12d
andl %r8d, %r12d
leaq 0x19fe2(%rip), %r8      # 0x1f880
movq (%r8,%r12,8), %r12
leaq 0x197d7(%rip), %r8      # 0x1f080
xorq (%r8,%r14,8), %r12
movl %edx, %r14d
shrl $0xd, %r14d
movl $0x7f8, %r8d            # imm = 0x7F8
andl %r8d, %r14d
movq %rbx, %r8
leaq 0x1a7b9(%rip), %rbx     # 0x20080
xorq (%r14,%rbx), %r12
movl %edi, %r14d
shrl $0x18, %r14d
leaq 0x1afa7(%rip), %rdi     # 0x20880
xorq (%rdi,%r14,8), %r12
movq %rsi, %r14
shrq $0x20, %r14
movl $0xff, %edi
andl %edi, %r14d
leaq 0x1b78d(%rip), %rbx     # 0x21080
xorq (%rbx,%r14,8), %r12
movq %rax, %r14
shrq $0x28, %r14
andl %edi, %r14d
leaq 0x1bf78(%rip), %rbx     # 0x21880
xorq (%rbx,%r14,8), %r12
movq %r9, %r14
shrq $0x30, %r14
andl %edi, %r14d
movl $0xff, %ebx
leaq 0x1c75e(%rip), %rdi     # 0x22080
xorq (%rdi,%r14,8), %r12
movq %r11, %r14
shrq $0x38, %r14
leaq 0x1cf4c(%rip), %rdi     # 0x22880
xorq (%rdi,%r14,8), %r12
movl $0xff, %edi
andq %rdi, %rcx
movq -0x30(%rbp), %r14
addq $0x70, %r14
xorq %rcx, %r14
shrl $0x8, %edx
andl %ebx, %edx
leaq 0x19f29(%rip), %rcx     # 0x1f880
movq (%rcx,%rdx,8), %rcx
leaq 0x1971e(%rip), %rdx     # 0x1f080
xorq (%rdx,%r14,8), %rcx
movq -0x38(%rbp), %r14
shrl $0xd, %r14d
movl $0x7f8, %edx            # imm = 0x7F8
andl %edx, %r14d
leaq 0x1a703(%rip), %rdx     # 0x20080
xorq (%r14,%rdx), %rcx
movq %rsi, %rdx
shrl $0x18, %edx
leaq 0x1aef2(%rip), %r14     # 0x20880
xorq (%r14,%rdx,8), %rcx
shrq $0x20, %rax
andl %ebx, %eax
movq %rax, %rdx
leaq 0x1b6de(%rip), %rax     # 0x21080
xorq (%rax,%rdx,8), %rcx
shrq $0x28, %r9
andl %ebx, %r9d
leaq 0x1becc(%rip), %rax     # 0x21880
xorq (%rax,%r9,8), %rcx
shrq $0x30, %r11
andl %ebx, %r11d
leaq 0x1c6ba(%rip), %rax     # 0x22080
xorq (%rax,%r11,8), %rcx
shrq $0x38, %r8
leaq 0x1ceab(%rip), %rax     # 0x22880
xorq (%rax,%r8,8), %rcx
movq -0x68(%rbp), %rdi
movl $0xff, %eax
andq %rax, %rdi
movq -0x30(%rbp), %r9
incq %r9
xorq %rdi, %r9
movq -0x60(%rbp), %rdx
movl %edx, %edi
shrl $0x8, %edi
andl %ebx, %edi
leaq 0x19e7f(%rip), %rax     # 0x1f880
movq (%rax,%rdi,8), %r11
leaq 0x19674(%rip), %rax     # 0x1f080
xorq (%rax,%r9,8), %r11
movq -0x58(%rbp), %rsi
movl %esi, %edi
shrl $0xd, %edi
movl $0x7f8, %eax            # imm = 0x7F8
andl %eax, %edi
leaq 0x1a659(%rip), %rax     # 0x20080
xorq (%rdi,%rax), %r11
movl %r10d, %edi
shrl $0x18, %edi
movq %r14, %rbx
xorq (%r14,%rdi,8), %r11
movq %r13, %rdi
shrq $0x20, %rdi
movl $0xff, %r8d
andl %r8d, %edi
leaq 0x1b631(%rip), %r14     # 0x21080
xorq (%r14,%rdi,8), %r11
movq %r15, %rdi
shrq $0x28, %rdi
andl %r8d, %edi
leaq 0x1be1c(%rip), %rax     # 0x21880
xorq (%rax,%rdi,8), %r11
movq %r12, %rdi
shrq $0x30, %rdi
andl %r8d, %edi
leaq 0x1c607(%rip), %rax     # 0x22080
xorq (%rax,%rdi,8), %r11
movq %rcx, %rdi
shrq $0x38, %rdi
leaq 0x1cdf5(%rip), %r9      # 0x22880
xorq (%r9,%rdi,8), %r11
movq %r11, -0x48(%rbp)
movq %rdx, %rdi
movl $0xff, %edx
andq %rdx, %rdi
movq -0x30(%rbp), %r9
addq $0x11, %r9
xorq %rdi, %r9
movl %esi, %edi
shrl $0x8, %edi
andl %r8d, %edi
leaq 0x19dc8(%rip), %rdx     # 0x1f880
movq (%rdx,%rdi,8), %r11
leaq 0x195bd(%rip), %rdx     # 0x1f080
xorq (%rdx,%r9,8), %r11
movl %r10d, %edi
shrl $0xd, %edi
movl $0x7f8, %edx            # imm = 0x7F8
andl %edx, %edi
leaq 0x1a5a5(%rip), %rdx     # 0x20080
xorq (%rdi,%rdx), %r11
movl %r13d, %edi
shrl $0x18, %edi
xorq (%rbx,%rdi,8), %r11
movq %r15, %rdi
shrq $0x20, %rdi
andl %r8d, %edi
xorq (%r14,%rdi,8), %r11
movq %r14, %rbx
movq %r12, %rdi
shrq $0x28, %rdi
andl %r8d, %edi
leaq 0x1bd75(%rip), %r9      # 0x21880
xorq (%r9,%rdi,8), %r11
movq %rcx, %rdi
shrq $0x30, %rdi
andl %r8d, %edi
xorq (%rax,%rdi,8), %r11
movq -0x68(%rbp), %r14
movq %r14, %rdi
shrq $0x38, %rdi
leaq 0x1cd51(%rip), %rax     # 0x22880
xorq (%rax,%rdi,8), %r11
movq %r11, -0x38(%rbp)
movq %rsi, %rdi
movl $0xff, %eax
andq %rax, %rdi
movq -0x30(%rbp), %r9
addq $0x21, %r9
xorq %rdi, %r9
movl %r10d, %edi
shrl $0x8, %edi
andl %r8d, %edi
leaq 0x19d23(%rip), %rax     # 0x1f880
movq (%rax,%rdi,8), %rax
leaq 0x19518(%rip), %rsi     # 0x1f080
xorq (%rsi,%r9,8), %rax
movl %r13d, %edi
shrl $0xd, %edi
movl $0x7f8, %esi            # imm = 0x7F8
andl %esi, %edi
xorq (%rdi,%rdx), %rax
movl %r15d, %edi
shrl $0x18, %edi
leaq 0x1acf6(%rip), %rdx     # 0x20880
xorq (%rdx,%rdi,8), %rax
movq %r12, %rdi
shrq $0x20, %rdi
movl $0xff, %edx
andl %edx, %edi
xorq (%rbx,%rdi,8), %rax
movq %rcx, %rdi
shrq $0x28, %rdi
andl %edx, %edi
leaq 0x1bcd0(%rip), %rbx     # 0x21880
xorq (%rbx,%rdi,8), %rax
movq %r14, %rdi
shrq $0x30, %rdi
andl %edx, %edi
leaq 0x1c4bc(%rip), %rdx     # 0x22080
xorq (%rdx,%rdi,8), %rax
movq -0x60(%rbp), %rsi
movq %rsi, %rdi
shrq $0x38, %rdi
leaq 0x1cca6(%rip), %r11     # 0x22880
xorq (%r11,%rdi,8), %rax
movq %rax, -0x40(%rbp)
movq %r10, %rdi
movl $0xff, %eax
andq %rax, %rdi
movq -0x30(%rbp), %r9
addq $0x31, %r9
xorq %rdi, %r9
movl %r13d, %edi
shrl $0x8, %edi
andl %r8d, %edi
leaq 0x19c78(%rip), %rax     # 0x1f880
movq (%rax,%rdi,8), %rdx
leaq 0x1946d(%rip), %rax     # 0x1f080
xorq (%rax,%r9,8), %rdx
movl %r15d, %r9d
shrl $0xd, %r9d
movl $0x7f8, %eax            # imm = 0x7F8
andl %eax, %r9d
leaq 0x1a453(%rip), %rax     # 0x20080
xorq (%r9,%rax), %rdx
movl %r12d, %r9d
shrl $0x18, %r9d
leaq 0x1ac41(%rip), %rax     # 0x20880
xorq (%rax,%r9,8), %rdx
movq %rcx, %r9
shrq $0x20, %r9
andl %r8d, %r9d
leaq 0x1b42c(%rip), %rax     # 0x21080
xorq (%rax,%r9,8), %rdx
movq %r14, %rax
movq %r14, %r9
shrq $0x28, %r9
andl %r8d, %r9d
xorq (%rbx,%r9,8), %rdx
movq %rsi, %rdi
movq %rsi, %r9
shrq $0x30, %r9
andl %r8d, %r9d
leaq 0x1c403(%rip), %rsi     # 0x22080
xorq (%rsi,%r9,8), %rdx
movq -0x58(%rbp), %rsi
movq %rsi, %r9
shrq $0x38, %r9
xorq (%r11,%r9,8), %rdx
movq %r13, %r9
movl $0xff, %r11d
andq %r11, %r9
movq -0x30(%rbp), %r11
addq $0x41, %r11
xorq %r9, %r11
movl %r15d, %r9d
shrl $0x8, %r9d
andl %r8d, %r9d
leaq 0x19bc8(%rip), %r14     # 0x1f880
movq (%r14,%r9,8), %r9
leaq 0x193bd(%rip), %r14     # 0x1f080
xorq (%r14,%r11,8), %r9
movl %r12d, %r11d
shrl $0xd, %r11d
movl $0x7f8, %r14d           # imm = 0x7F8
andl %r14d, %r11d
leaq 0x1a3a2(%rip), %r14     # 0x20080
xorq (%r11,%r14), %r9
movl %ecx, %r11d
shrl $0x18, %r11d
leaq 0x1ab90(%rip), %r14     # 0x20880
xorq (%r14,%r11,8), %r9
movq %rax, %r11
shrq $0x20, %r11
andl %r8d, %r11d
leaq 0x1b37b(%rip), %r14     # 0x21080
xorq (%r14,%r11,8), %r9
movq %rdi, %r11
shrq $0x28, %r11
andl %r8d, %r11d
xorq (%rbx,%r11,8), %r9
movq %rsi, %r11
shrq $0x30, %r11
andl %r8d, %r11d
leaq 0x1c358(%rip), %rbx     # 0x22080
xorq (%rbx,%r11,8), %r9
movq %r10, %r11
shrq $0x38, %r11
leaq 0x1cb46(%rip), %rbx     # 0x22880
xorq (%rbx,%r11,8), %r9
movq %r9, -0x50(%rbp)
movq %r15, %r11
movl $0xff, %ebx
andq %rbx, %r11
movq -0x30(%rbp), %rbx
addq $0x51, %rbx
xorq %r11, %rbx
movl %r12d, %r11d
shrl $0x8, %r11d
andl %r8d, %r11d
leaq 0x19b17(%rip), %r14     # 0x1f880
movq (%r14,%r11,8), %r11
leaq 0x1930c(%rip), %r14     # 0x1f080
xorq (%r14,%rbx,8), %r11
movl %ecx, %ebx
shrl $0xd, %ebx
movl $0x7f8, %r8d            # imm = 0x7F8
andl %r8d, %ebx
leaq 0x1a2f3(%rip), %r8      # 0x20080
xorq (%rbx,%r8), %r11
movl %eax, %ebx
movq %rax, %r8
shrl $0x18, %ebx
leaq 0x1aae0(%rip), %r9      # 0x20880
xorq (%r9,%rbx,8), %r11
movq %rdi, %rbx
shrq $0x20, %rbx
movl $0xff, %r14d
andl %r14d, %ebx
leaq 0x1b2c5(%rip), %rax     # 0x21080
xorq (%rax,%rbx,8), %r11
movq %rsi, %rbx
shrq $0x28, %rbx
andl %r14d, %ebx
leaq 0x1bab0(%rip), %rax     # 0x21880
xorq (%rax,%rbx,8), %r11
movq %r10, %rbx
shrq $0x30, %rbx
andl %r14d, %ebx
leaq 0x1c29b(%rip), %rax     # 0x22080
xorq (%rax,%rbx,8), %r11
movq %r13, %rbx
shrq $0x38, %rbx
leaq 0x1ca89(%rip), %rax     # 0x22880
xorq (%rax,%rbx,8), %r11
movq %r12, %rbx
movl $0xff, %eax
andq %rax, %rbx
movq -0x30(%rbp), %r14
addq $0x61, %r14
xorq %rbx, %r14
movl %ecx, %ebx
shrl $0x8, %ebx
movl $0xff, %eax
andl %eax, %ebx
leaq 0x19a5c(%rip), %rax     # 0x1f880
movq (%rax,%rbx,8), %rbx
leaq 0x19251(%rip), %rax     # 0x1f080
xorq (%rax,%r14,8), %rbx
movl %r8d, %r14d
shrl $0xd, %r14d
movl $0x7f8, %eax            # imm = 0x7F8
andl %eax, %r14d
leaq 0x1a237(%rip), %rax     # 0x20080
xorq (%r14,%rax), %rbx
movl %edi, %r14d
shrl $0x18, %r14d
xorq (%r9,%r14,8), %rbx
movq %rsi, %r14
shrq $0x20, %r14
movl $0xff, %r9d
andl %r9d, %r14d
leaq 0x1b211(%rip), %rax     # 0x21080
xorq (%rax,%r14,8), %rbx
movq %r10, %r14
shrq $0x28, %r14
andl %r9d, %r14d
leaq 0x1b9fc(%rip), %rax     # 0x21880
xorq (%rax,%r14,8), %rbx
movq %r13, %r14
shrq $0x30, %r14
andl %r9d, %r14d
leaq 0x1c1e7(%rip), %rax     # 0x22080
xorq (%rax,%r14,8), %rbx
movq %r15, %r14
shrq $0x38, %r14
leaq 0x1c9d5(%rip), %rax     # 0x22880
xorq (%rax,%r14,8), %rbx
movl $0xff, %eax
andq %rax, %rcx
movq -0x30(%rbp), %r14
addq $0x71, %r14
xorq %rcx, %r14
shrl $0x8, %r8d
andl %r9d, %r8d
leaq 0x199b0(%rip), %rcx     # 0x1f880
movq (%rcx,%r8,8), %rcx
leaq 0x191a5(%rip), %rax     # 0x1f080
xorq (%rax,%r14,8), %rcx
movq %rdi, %rax
shrl $0xd, %eax
movl $0x7f8, %edi            # imm = 0x7F8
andl %edi, %eax
leaq 0x1a18d(%rip), %rdi     # 0x20080
xorq (%rax,%rdi), %rcx
movq %rsi, %rax
shrl $0x18, %eax
leaq 0x1a97c(%rip), %rsi     # 0x20880
xorq (%rsi,%rax,8), %rcx
shrq $0x20, %r10
movl $0xff, %eax
andl %eax, %r10d
leaq 0x1b165(%rip), %rsi     # 0x21080
xorq (%rsi,%r10,8), %rcx
shrq $0x28, %r13
andl %eax, %r13d
leaq 0x1b953(%rip), %rsi     # 0x21880
xorq (%rsi,%r13,8), %rcx
shrq $0x30, %r15
andl %eax, %r15d
leaq 0x1c141(%rip), %rax     # 0x22080
xorq (%rax,%r15,8), %rcx
shrq $0x38, %r12
leaq 0x1c932(%rip), %rax     # 0x22880
xorq (%rax,%r12,8), %rcx
movq -0x30(%rbp), %r12
addq $0x2, %r12
jmp 0x542c
movq -0x48(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x90(%rbp)
movq %r11, -0x88(%rbp)
movq %rbx, -0x80(%rbp)
movq %rcx, -0x78(%rbp)
xorl %eax, %eax
cmpq $0x8, %rax
je 0x5fbe
movq -0xb0(%rbp,%rax,8), %rcx
xorq %rcx, -0x110(%rbp,%rax,8)
incq %rax
jmp 0x5fa3
pushq $0x4
popq %rax
cmpq $0x8, %rax
je 0x5fdc
movq -0x110(%rbp,%rax,8), %rcx
movq %rcx, -0x180(%rbp,%rax,8)
incq %rax
jmp 0x5fc1
movq -0xc8(%rbp), %rbx
leaq -0x160(%rbp), %rsi
subq %rbx, %rsi
addq $0x20, %rsi
movq -0xb8(%rbp), %rdi
movq %rbx, %rdx
callq 0x10b0
shll $0x3, %ebx
movq -0xc0(%rbp), %rdi
movl %ebx, %esi
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3a0c