// File: /workspace/github_c_makefile_star2_O1/Tarsnap[P]kivaloo/liball/../libcperciva/alg/sha256_sse2.c
// Function: SHA256_Transform_sse2
void
SHA256_Transform_sse2(uint32_t state[static restrict 8],
    const uint8_t block[static restrict 64], uint32_t W[static restrict 64],
    uint32_t S[static restrict 8])
#endif
{
	__m128i Y[4];
	int i;

	/* 1. Prepare the first part of the message schedule W. */
	Y[0] = mm_bswap_epi32(_mm_loadu_si128((const __m128i *)&block[0]));
	_mm_storeu_si128((__m128i *)&W[0], Y[0]);
	Y[1] = mm_bswap_epi32(_mm_loadu_si128((const __m128i *)&block[16]));
	_mm_storeu_si128((__m128i *)&W[4], Y[1]);
	Y[2] = mm_bswap_epi32(_mm_loadu_si128((const __m128i *)&block[32]));
	_mm_storeu_si128((__m128i *)&W[8], Y[2]);
	Y[3] = mm_bswap_epi32(_mm_loadu_si128((const __m128i *)&block[48]));
	_mm_storeu_si128((__m128i *)&W[12], Y[3]);

	/* 2. Initialize working variables. */
	memcpy(S, state, 32);

	/* 3. Mix. */
	for (i = 0; i < 64; i += 16) {
		RNDr(S, W, 0, i);
		RNDr(S, W, 1, i);
		RNDr(S, W, 2, i);
		RNDr(S, W, 3, i);
		RNDr(S, W, 4, i);
		RNDr(S, W, 5, i);
		RNDr(S, W, 6, i);
		RNDr(S, W, 7, i);
		RNDr(S, W, 8, i);
		RNDr(S, W, 9, i);
		RNDr(S, W, 10, i);
		RNDr(S, W, 11, i);
		RNDr(S, W, 12, i);
		RNDr(S, W, 13, i);
		RNDr(S, W, 14, i);
		RNDr(S, W, 15, i);

		if (i == 48)
			break;
		Y[0] = MSG4(Y[0], Y[1], Y[2], Y[3]);
		_mm_storeu_si128((__m128i *)&W[16 + i + 0], Y[0]);
		Y[1] = MSG4(Y[1], Y[2], Y[3], Y[0]);
		_mm_storeu_si128((__m128i *)&W[16 + i + 4], Y[1]);
		Y[2] = MSG4(Y[2], Y[3], Y[0], Y[1]);
		_mm_storeu_si128((__m128i *)&W[16 + i + 8], Y[2]);
		Y[3] = MSG4(Y[3], Y[0], Y[1], Y[2]);
		_mm_storeu_si128((__m128i *)&W[16 + i + 12], Y[3]);
	}

	/* 4. Mix local working variables into global state. */
	for (i = 0; i < 8; i++)
		state[i] += S[i];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movdqu (%rsi), %xmm0
movdqa %xmm0, %xmm1
psrlw $0x8, %xmm1
psllw $0x8, %xmm0
por %xmm1, %xmm0
pshuflw $0xb1, %xmm0, %xmm0     # xmm0 = xmm0[1,0,3,2,4,5,6,7]
pshufhw $0xb1, %xmm0, %xmm0     # xmm0 = xmm0[0,1,2,3,5,4,7,6]
movdqu %xmm0, (%rdx)
movdqu 0x10(%rsi), %xmm1
movdqa %xmm1, %xmm2
psrlw $0x8, %xmm2
psllw $0x8, %xmm1
por %xmm2, %xmm1
pshuflw $0xb1, %xmm1, %xmm1     # xmm1 = xmm1[1,0,3,2,4,5,6,7]
pshufhw $0xb1, %xmm1, %xmm3     # xmm3 = xmm1[0,1,2,3,5,4,7,6]
movdqu %xmm3, 0x10(%rdx)
movdqu 0x20(%rsi), %xmm1
movdqa %xmm1, %xmm2
psrlw $0x8, %xmm2
psllw $0x8, %xmm1
por %xmm2, %xmm1
pshuflw $0xb1, %xmm1, %xmm1     # xmm1 = xmm1[1,0,3,2,4,5,6,7]
pshufhw $0xb1, %xmm1, %xmm4     # xmm4 = xmm1[0,1,2,3,5,4,7,6]
movdqu %xmm4, 0x20(%rdx)
movdqu 0x30(%rsi), %xmm1
movdqa %xmm1, %xmm2
psrlw $0x8, %xmm2
psllw $0x8, %xmm1
por %xmm2, %xmm1
pshuflw $0xb1, %xmm1, %xmm1     # xmm1 = xmm1[1,0,3,2,4,5,6,7]
pshufhw $0xb1, %xmm1, %xmm1     # xmm1 = xmm1[0,1,2,3,5,4,7,6]
movq %rdx, -0x18(%rsp)
movdqu %xmm1, 0x30(%rdx)
movups (%rdi), %xmm2
movq %rdi, -0x10(%rsp)
movups 0x10(%rdi), %xmm5
movups %xmm5, 0x10(%rcx)
movups %xmm2, (%rcx)
movl 0x10(%rcx), %r8d
movl 0x14(%rcx), %r11d
movl (%rcx), %r9d
movl 0x4(%rcx), %r10d
movl 0x18(%rcx), %r15d
movl 0x1c(%rcx), %r14d
movl 0xc(%rcx), %ebp
movq %rcx, -0x8(%rsp)
movl 0x8(%rcx), %ebx
xorl %ecx, %ecx
xorps %xmm2, %xmm2
movq %rcx, -0x20(%rsp)
movl %r8d, %edx
roll $0x1a, %edx
movl %r8d, %esi
roll $0x15, %esi
movl %r8d, %eax
roll $0x7, %eax
xorl %edx, %esi
xorl %esi, %eax
movl %r15d, %edx
xorl %r11d, %edx
andl %r8d, %edx
xorl %r15d, %edx
movq -0x18(%rsp), %rsi
addl (%rsi,%rcx,4), %eax
movq %rsi, %r13
addl %r14d, %edx
leaq 0x3825(%rip), %rsi      # 0x13890
addl (%rsi,%rcx,4), %eax
addl %edx, %eax
addl %eax, %ebp
movl %r9d, %edx
roll $0x1e, %edx
movl %r9d, %esi
roll $0x13, %esi
xorl %edx, %esi
movl %r9d, %edx
roll $0xa, %edx
xorl %esi, %edx
movl %ebx, %esi
orl %r10d, %esi
andl %r9d, %esi
movl %ebx, %r12d
andl %r10d, %r12d
movl %ebp, %edi
roll $0x1a, %edi
orl %esi, %r12d
movl %ebp, %esi
roll $0x15, %esi
addl %edx, %r12d
movl %ebp, %r14d
roll $0x7, %r14d
xorl %edi, %esi
xorl %esi, %r14d
movl %r11d, %edx
xorl %r8d, %edx
andl %ebp, %edx
xorl %r11d, %edx
addl %r15d, %edx
addl %r14d, %edx
addl 0x4(%r13,%rcx,4), %edx
leaq 0x37c1(%rip), %rdi      # 0x13890
addl 0x4(%rdi,%rcx,4), %edx
addl %eax, %r12d
movl %r12d, %eax
roll $0x1e, %eax
addl %edx, %ebx
movl %r12d, %ecx
roll $0x13, %ecx
xorl %eax, %ecx
movl %r12d, %eax
roll $0xa, %eax
xorl %ecx, %eax
movl %r10d, %ecx
orl %r9d, %ecx
andl %r12d, %ecx
movl %r10d, %esi
andl %r9d, %esi
orl %ecx, %esi
addl %eax, %esi
addl %edx, %esi
movl %ebx, %eax
roll $0x1a, %eax
movl %ebx, %ecx
roll $0x15, %ecx
xorl %eax, %ecx
movl %ebx, %eax
roll $0x7, %eax
xorl %ecx, %eax
movl %ebp, %ecx
xorl %r8d, %ecx
andl %ebx, %ecx
xorl %r8d, %ecx
movq -0x20(%rsp), %rdx
addl 0x8(%r13,%rdx,4), %r11d
movq %r13, %r14
movq -0x20(%rsp), %rdx
addl 0x8(%rdi,%rdx,4), %r11d
addl %ecx, %r11d
movl %esi, %ecx
roll $0x1e, %ecx
addl %eax, %r11d
movl %esi, %eax
roll $0x13, %eax
addl %r11d, %r10d
movl %esi, %edx
roll $0xa, %edx
xorl %ecx, %eax
xorl %eax, %edx
movl %r12d, %eax
orl %r9d, %eax
andl %esi, %eax
movl %r12d, %r13d
andl %r9d, %r13d
orl %eax, %r13d
addl %edx, %r13d
movl %r10d, %eax
roll $0x1a, %eax
addl %r11d, %r13d
movl %r10d, %ecx
roll $0x15, %ecx
xorl %eax, %ecx
movl %r10d, %eax
roll $0x7, %eax
xorl %ecx, %eax
movl %ebx, %ecx
xorl %ebp, %ecx
andl %r10d, %ecx
movq -0x20(%rsp), %rdx
addl 0xc(%r14,%rdx,4), %r8d
movq -0x20(%rsp), %rdx
movq %rdi, %r11
addl 0xc(%rdi,%rdx,4), %r8d
xorl %ebp, %ecx
addl %ecx, %r8d
addl %eax, %r8d
addl %r8d, %r9d
movl %r13d, %eax
roll $0x1e, %eax
movl %r13d, %ecx
roll $0x13, %ecx
xorl %eax, %ecx
movl %r13d, %eax
roll $0xa, %eax
xorl %ecx, %eax
movl %esi, %ecx
orl %r12d, %ecx
andl %r13d, %ecx
movl %esi, %edx
andl %r12d, %edx
orl %ecx, %edx
movl %r9d, %ecx
roll $0x1a, %ecx
addl %eax, %edx
movl %r9d, %eax
roll $0x15, %eax
addl %r8d, %edx
movl %r9d, %edi
roll $0x7, %edi
xorl %ecx, %eax
xorl %eax, %edi
movl %r10d, %eax
xorl %ebx, %eax
andl %r9d, %eax
xorl %ebx, %eax
movq -0x20(%rsp), %rcx
addl 0x10(%r14,%rcx,4), %ebp
movq -0x20(%rsp), %rcx
addl 0x10(%r11,%rcx,4), %ebp
addl %eax, %ebp
addl %edi, %ebp
addl %ebp, %r12d
movl %edx, %eax
roll $0x1e, %eax
movl %edx, %ecx
roll $0x13, %ecx
xorl %eax, %ecx
movl %edx, %eax
roll $0xa, %eax
xorl %ecx, %eax
movl %r13d, %ecx
orl %esi, %ecx
andl %edx, %ecx
movl %r13d, %r15d
andl %esi, %r15d
orl %ecx, %r15d
addl %eax, %r15d
addl %ebp, %r15d
movl %r12d, %eax
roll $0x1a, %eax
movl %r12d, %ecx
roll $0x15, %ecx
xorl %eax, %ecx
movl %r12d, %eax
roll $0x7, %eax
xorl %ecx, %eax
movl %r9d, %ecx
xorl %r10d, %ecx
andl %r12d, %ecx
movq -0x20(%rsp), %rdi
addl 0x14(%r14,%rdi,4), %ebx
xorl %r10d, %ecx
movq -0x20(%rsp), %rdi
addl 0x14(%r11,%rdi,4), %ebx
addl %ecx, %ebx
addl %eax, %ebx
movl %r15d, %eax
roll $0x1e, %eax
addl %ebx, %esi
movl %r15d, %ecx
roll $0x13, %ecx
xorl %eax, %ecx
movl %r15d, %eax
roll $0xa, %eax
xorl %ecx, %eax
movl %edx, %ecx
orl %r13d, %ecx
andl %r15d, %ecx
movl %edx, %edi
andl %r13d, %edi
orl %ecx, %edi
addl %eax, %edi
addl %ebx, %edi
movl %esi, %eax
roll $0x1a, %eax
movl %esi, %ecx
roll $0x15, %ecx
xorl %eax, %ecx
movl %esi, %eax
roll $0x7, %eax
xorl %ecx, %eax
movl %r12d, %ecx
xorl %r9d, %ecx
andl %esi, %ecx
xorl %r9d, %ecx
movq -0x20(%rsp), %r8
addl 0x18(%r14,%r8,4), %r10d
movq -0x20(%rsp), %r8
addl 0x18(%r11,%r8,4), %r10d
addl %ecx, %r10d
movl %edi, %ecx
roll $0x1e, %ecx
addl %eax, %r10d
movl %edi, %eax
roll $0x13, %eax
addl %r10d, %r13d
movl %edi, %r8d
roll $0xa, %r8d
xorl %ecx, %eax
xorl %eax, %r8d
movl %r15d, %ecx
orl %edx, %ecx
andl %edi, %ecx
movl %r15d, %eax
andl %edx, %eax
orl %ecx, %eax
addl %r8d, %eax
movl %r13d, %ecx
roll $0x1a, %ecx
addl %r10d, %eax
movl %r13d, %r8d
roll $0x15, %r8d
xorl %ecx, %r8d
movl %r13d, %ecx
roll $0x7, %ecx
xorl %r8d, %ecx
movl %esi, %r8d
xorl %r12d, %r8d
andl %r13d, %r8d
movq -0x20(%rsp), %r10
addl 0x1c(%r14,%r10,4), %r9d
movq -0x20(%rsp), %r10
addl 0x1c(%r11,%r10,4), %r9d
xorl %r12d, %r8d
addl %r8d, %r9d
addl %ecx, %r9d
addl %r9d, %edx
movl %eax, %ecx
roll $0x1e, %ecx
movl %eax, %r8d
roll $0x13, %r8d
xorl %ecx, %r8d
movl %eax, %ecx
roll $0xa, %ecx
xorl %r8d, %ecx
movl %edi, %r8d
orl %r15d, %r8d
andl %eax, %r8d
movl %edi, %ebp
andl %r15d, %ebp
orl %r8d, %ebp
movl %edx, %r8d
roll $0x1a, %r8d
addl %ecx, %ebp
movl %edx, %ecx
roll $0x15, %ecx
addl %r9d, %ebp
movl %edx, %r9d
roll $0x7, %r9d
xorl %r8d, %ecx
xorl %ecx, %r9d
movl %r13d, %ecx
xorl %esi, %ecx
andl %edx, %ecx
xorl %esi, %ecx
movq -0x20(%rsp), %r8
movq %r14, %r10
addl 0x20(%r14,%r8,4), %r12d
movq -0x20(%rsp), %r8
addl 0x20(%r11,%r8,4), %r12d
addl %ecx, %r12d
addl %r9d, %r12d
addl %r12d, %r15d
movl %ebp, %ecx
roll $0x1e, %ecx
movl %ebp, %r8d
roll $0x13, %r8d
xorl %ecx, %r8d
movl %ebp, %ecx
roll $0xa, %ecx
xorl %r8d, %ecx
movl %eax, %r8d
orl %edi, %r8d
andl %ebp, %r8d
movl %eax, %r14d
andl %edi, %r14d
orl %r8d, %r14d
addl %ecx, %r14d
addl %r12d, %r14d
movl %r15d, %ecx
roll $0x1a, %ecx
movl %r15d, %r8d
roll $0x15, %r8d
xorl %ecx, %r8d
movl %r15d, %ecx
roll $0x7, %ecx
xorl %r8d, %ecx
movl %edx, %r8d
xorl %r13d, %r8d
andl %r15d, %r8d
movq -0x20(%rsp), %r9
addl 0x24(%r10,%r9,4), %esi
xorl %r13d, %r8d
movq -0x20(%rsp), %r9
addl 0x24(%r11,%r9,4), %esi
addl %r8d, %esi
addl %ecx, %esi
movl %r14d, %ecx
roll $0x1e, %ecx
addl %esi, %edi
movl %r14d, %r8d
roll $0x13, %r8d
xorl %ecx, %r8d
movq -0x20(%rsp), %rcx
movl %r14d, %r9d
roll $0xa, %r9d
xorl %r8d, %r9d
movl %ebp, %r8d
orl %eax, %r8d
andl %r14d, %r8d
movl %ebp, %ebx
andl %eax, %ebx
orl %r8d, %ebx
addl %r9d, %ebx
addl %esi, %ebx
movl %edi, %esi
roll $0x1a, %esi
movl %edi, %r8d
roll $0x15, %r8d
xorl %esi, %r8d
movl %edi, %esi
roll $0x7, %esi
xorl %r8d, %esi
movl %r15d, %r8d
xorl %edx, %r8d
andl %edi, %r8d
xorl %edx, %r8d
addl 0x28(%r10,%rcx,4), %r13d
addl 0x28(%r11,%rcx,4), %r13d
movq %r11, %r12
addl %r8d, %r13d
movl %ebx, %r8d
roll $0x1e, %r8d
addl %esi, %r13d
movl %ebx, %esi
roll $0x13, %esi
addl %r13d, %eax
movl %ebx, %r9d
roll $0xa, %r9d
xorl %r8d, %esi
xorl %esi, %r9d
movl %r14d, %esi
orl %ebp, %esi
andl %ebx, %esi
movl %r14d, %r11d
andl %ebp, %r11d
orl %esi, %r11d
addl %r9d, %r11d
movl %eax, %esi
roll $0x1a, %esi
addl %r13d, %r11d
movl %eax, %r8d
roll $0x15, %r8d
xorl %esi, %r8d
movl %eax, %r10d
roll $0x7, %r10d
xorl %r8d, %r10d
movl %edi, %r8d
xorl %r15d, %r8d
andl %eax, %r8d
xorl %r15d, %r8d
movq %r12, %rsi
movl 0x2c(%r12,%rcx,4), %r9d
movq -0x18(%rsp), %r12
addl 0x2c(%r12,%rcx,4), %r9d
movl 0x30(%rsi,%rcx,4), %esi
addl %edx, %r9d
addl %r8d, %r9d
addl %r10d, %r9d
addl %r9d, %ebp
movl %r11d, %edx
roll $0x1e, %edx
movl %r11d, %r8d
roll $0x13, %r8d
xorl %edx, %r8d
movl %r11d, %edx
roll $0xa, %edx
xorl %r8d, %edx
movl %ebx, %r10d
orl %r14d, %r10d
andl %r11d, %r10d
movl %ebx, %r8d
andl %r14d, %r8d
orl %r10d, %r8d
addl %edx, %r8d
addl %r9d, %r8d
movl %ebp, %edx
roll $0x1a, %edx
movl %ebp, %r9d
roll $0x15, %r9d
xorl %edx, %r9d
movl %ebp, %edx
roll $0x7, %edx
xorl %r9d, %edx
movl %eax, %r9d
xorl %edi, %r9d
andl %ebp, %r9d
movl %ebp, %r10d
addl 0x30(%r12,%rcx,4), %esi
xorl %edi, %r9d
addl %r15d, %esi
movl %ebx, %r15d
addl %r9d, %esi
addl %edx, %esi
addl %esi, %r14d
movl %r8d, %edx
roll $0x1e, %edx
movl %r8d, %r9d
roll $0x13, %r9d
xorl %edx, %r9d
movl %r8d, %edx
roll $0xa, %edx
xorl %r9d, %edx
movl %r11d, %r9d
orl %ebx, %r9d
andl %r8d, %r9d
movl %r11d, %ebp
andl %ebx, %ebp
orl %r9d, %ebp
addl %edx, %ebp
addl %esi, %ebp
movl %r14d, %edx
roll $0x1a, %edx
movl %r14d, %esi
roll $0x15, %esi
xorl %edx, %esi
movl %r14d, %r9d
roll $0x7, %r9d
xorl %esi, %r9d
movl %r10d, %esi
movl %r10d, %r13d
xorl %eax, %esi
andl %r14d, %esi
xorl %eax, %esi
leaq 0x32c8(%rip), %r10      # 0x13890
movl 0x34(%r10,%rcx,4), %edx
addl 0x34(%r12,%rcx,4), %edx
addl %edi, %edx
addl %esi, %edx
addl %r9d, %edx
movl %ebp, %esi
roll $0x1e, %esi
addl %edx, %r15d
movl %ebp, %edi
roll $0x13, %edi
xorl %esi, %edi
movl %ebp, %esi
roll $0xa, %esi
xorl %edi, %esi
movl %r8d, %edi
orl %r11d, %edi
andl %ebp, %edi
movl %r8d, %ebx
andl %r11d, %ebx
orl %edi, %ebx
addl %esi, %ebx
addl %edx, %ebx
movl %r15d, %edx
roll $0x1a, %edx
movl %r15d, %esi
roll $0x15, %esi
xorl %edx, %esi
movl %r15d, %edi
roll $0x7, %edi
xorl %esi, %edi
movl %r14d, %esi
xorl %r13d, %esi
andl %r15d, %esi
xorl %r13d, %esi
movl 0x38(%r10,%rcx,4), %edx
movq %r10, %r9
addl 0x38(%r12,%rcx,4), %edx
addl %eax, %edx
addl %esi, %edx
movl %ebx, %eax
roll $0x1e, %eax
addl %edi, %edx
movl %ebx, %esi
roll $0x13, %esi
addl %edx, %r11d
movl %ebx, %edi
roll $0xa, %edi
xorl %eax, %esi
xorl %esi, %edi
movl %ebp, %eax
orl %r8d, %eax
andl %ebx, %eax
movl %ebp, %r10d
andl %r8d, %r10d
orl %eax, %r10d
addl %edi, %r10d
movl %r11d, %eax
roll $0x1a, %eax
addl %edx, %r10d
movl %r11d, %edx
roll $0x15, %edx
xorl %eax, %edx
movl %r11d, %esi
roll $0x7, %esi
xorl %edx, %esi
movl %r15d, %edx
xorl %r14d, %edx
andl %r11d, %edx
xorl %r14d, %edx
movl 0x3c(%r9,%rcx,4), %eax
addl 0x3c(%r12,%rcx,4), %eax
addl %r13d, %eax
addl %edx, %eax
addl %esi, %eax
addl %eax, %r8d
movl %r10d, %edx
roll $0x1e, %edx
movl %r10d, %esi
roll $0x13, %esi
xorl %edx, %esi
movl %r10d, %edx
roll $0xa, %edx
xorl %esi, %edx
movl %ebx, %esi
orl %ebp, %esi
andl %r10d, %esi
movl %ebx, %r9d
andl %ebp, %r9d
orl %esi, %r9d
addl %edx, %r9d
addl %eax, %r9d
cmpq $0x30, %rcx
je 0x109ec
movdqa %xmm1, %xmm6
shufps $0x30, %xmm4, %xmm6     # xmm6 = xmm6[0,0],xmm4[3,0]
movaps %xmm4, %xmm5
shufps $0x29, %xmm6, %xmm5     # xmm5 = xmm5[1,2],xmm6[2,0]
movaps %xmm5, %xmm6
movaps %xmm5, %xmm7
psrld $0x7, %xmm7
movaps %xmm5, %xmm8
pslld $0x19, %xmm8
por %xmm7, %xmm8
movaps %xmm5, %xmm7
psrld $0x12, %xmm7
movaps %xmm5, %xmm9
pslld $0xe, %xmm9
por %xmm7, %xmm9
pxor %xmm8, %xmm9
psrld $0x3, %xmm5
pxor %xmm9, %xmm5
paddd %xmm4, %xmm5
movaps %xmm4, %xmm7
shufps $0x30, %xmm3, %xmm7     # xmm7 = xmm7[0,0],xmm3[3,0]
movaps %xmm3, %xmm4
shufps $0x29, %xmm7, %xmm4     # xmm4 = xmm4[1,2],xmm7[2,0]
movaps %xmm4, %xmm7
psrld $0x7, %xmm7
movaps %xmm4, %xmm8
pslld $0x19, %xmm8
por %xmm7, %xmm8
movaps %xmm4, %xmm7
psrld $0x12, %xmm7
movaps %xmm4, %xmm9
pslld $0xe, %xmm9
por %xmm7, %xmm9
pxor %xmm8, %xmm9
psrld $0x3, %xmm4
pxor %xmm9, %xmm4
paddd %xmm3, %xmm4
shufps $0x30, %xmm0, %xmm3     # xmm3 = xmm3[0,0],xmm0[3,0]
paddd %xmm0, %xmm6
shufps $0x29, %xmm3, %xmm0     # xmm0 = xmm0[1,2],xmm3[2,0]
movaps %xmm0, %xmm3
psrld $0x7, %xmm3
movaps %xmm0, %xmm7
pslld $0x19, %xmm7
por %xmm3, %xmm7
movaps %xmm0, %xmm3
psrld $0x12, %xmm3
movaps %xmm0, %xmm8
pslld $0xe, %xmm8
por %xmm3, %xmm8
pxor %xmm7, %xmm8
psrld $0x3, %xmm0
pxor %xmm8, %xmm0
pshufd $0xfa, %xmm1, %xmm3     # xmm3 = xmm1[2,2,3,3]
movdqa %xmm3, %xmm7
psrlq $0x11, %xmm7
movdqa %xmm3, %xmm8
psrlq $0x13, %xmm8
pxor %xmm7, %xmm8
psrld $0xa, %xmm3
pxor %xmm8, %xmm3
shufps $0x48, %xmm2, %xmm3     # xmm3 = xmm3[0,2],xmm2[0,1]
paddd %xmm6, %xmm3
paddd %xmm0, %xmm3
pshufd $0x50, %xmm3, %xmm6     # xmm6 = xmm3[0,0,1,1]
movdqa %xmm6, %xmm0
psrlq $0x11, %xmm0
movdqa %xmm6, %xmm7
psrlq $0x13, %xmm7
pxor %xmm0, %xmm7
psrld $0xa, %xmm6
pxor %xmm7, %xmm6
pxor %xmm0, %xmm0
shufps $0x8e, %xmm6, %xmm0     # xmm0 = xmm0[2,3],xmm6[0,2]
paddd %xmm3, %xmm0
movq -0x18(%rsp), %rax
movdqu %xmm0, 0x40(%rax,%rcx,4)
movdqa %xmm0, %xmm3
shufps $0x30, %xmm1, %xmm3     # xmm3 = xmm3[0,0],xmm1[3,0]
movaps %xmm1, %xmm6
shufps $0x29, %xmm3, %xmm6     # xmm6 = xmm6[1,2],xmm3[2,0]
pshufd $0xfa, %xmm0, %xmm3     # xmm3 = xmm0[2,2,3,3]
movdqa %xmm3, %xmm7
psrlq $0x11, %xmm7
movdqa %xmm3, %xmm8
psrlq $0x13, %xmm8
pxor %xmm7, %xmm8
psrld $0xa, %xmm3
pxor %xmm8, %xmm3
shufps $0x48, %xmm2, %xmm3     # xmm3 = xmm3[0,2],xmm2[0,1]
paddd %xmm6, %xmm4
paddd %xmm3, %xmm4
pshufd $0x50, %xmm4, %xmm7     # xmm7 = xmm4[0,0,1,1]
movdqa %xmm7, %xmm3
psrlq $0x11, %xmm3
movdqa %xmm7, %xmm8
psrlq $0x13, %xmm8
pxor %xmm3, %xmm8
psrld $0xa, %xmm7
pxor %xmm8, %xmm7
pxor %xmm3, %xmm3
shufps $0x8e, %xmm7, %xmm3     # xmm3 = xmm3[2,3],xmm7[0,2]
paddd %xmm4, %xmm3
movdqu %xmm3, 0x50(%rax,%rcx,4)
movdqa %xmm3, %xmm4
shufps $0x30, %xmm0, %xmm4     # xmm4 = xmm4[0,0],xmm0[3,0]
movaps %xmm0, %xmm7
shufps $0x29, %xmm4, %xmm7     # xmm7 = xmm7[1,2],xmm4[2,0]
pshufd $0xfa, %xmm3, %xmm4     # xmm4 = xmm3[2,2,3,3]
movdqa %xmm4, %xmm8
psrlq $0x11, %xmm8
movdqa %xmm4, %xmm9
psrlq $0x13, %xmm9
pxor %xmm8, %xmm9
psrld $0xa, %xmm4
pxor %xmm9, %xmm4
shufps $0x48, %xmm2, %xmm4     # xmm4 = xmm4[0,2],xmm2[0,1]
paddd %xmm7, %xmm5
paddd %xmm4, %xmm5
pshufd $0x50, %xmm5, %xmm7     # xmm7 = xmm5[0,0,1,1]
movdqa %xmm7, %xmm4
psrlq $0x11, %xmm4
movdqa %xmm7, %xmm8
psrlq $0x13, %xmm8
pxor %xmm4, %xmm8
psrld $0xa, %xmm7
pxor %xmm8, %xmm7
pxor %xmm4, %xmm4
shufps $0x8e, %xmm7, %xmm4     # xmm4 = xmm4[2,3],xmm7[0,2]
paddd %xmm5, %xmm4
movdqu %xmm4, 0x60(%rax,%rcx,4)
movdqa %xmm4, %xmm7
shufps $0x30, %xmm3, %xmm7     # xmm7 = xmm7[0,0],xmm3[3,0]
movaps %xmm3, %xmm5
shufps $0x29, %xmm7, %xmm5     # xmm5 = xmm5[1,2],xmm7[2,0]
movdqa %xmm6, %xmm7
psrld $0x7, %xmm7
movdqa %xmm6, %xmm8
pslld $0x19, %xmm8
por %xmm7, %xmm8
movdqa %xmm6, %xmm7
psrld $0x12, %xmm7
movdqa %xmm6, %xmm9
pslld $0xe, %xmm9
por %xmm7, %xmm9
pxor %xmm8, %xmm9
psrld $0x3, %xmm6
pxor %xmm9, %xmm6
pshufd $0xfa, %xmm4, %xmm7     # xmm7 = xmm4[2,2,3,3]
movdqa %xmm7, %xmm8
psrlq $0x11, %xmm8
movdqa %xmm7, %xmm9
psrlq $0x13, %xmm9
pxor %xmm8, %xmm9
psrld $0xa, %xmm7
pxor %xmm9, %xmm7
shufps $0x48, %xmm2, %xmm7     # xmm7 = xmm7[0,2],xmm2[0,1]
paddd %xmm1, %xmm6
paddd %xmm5, %xmm6
paddd %xmm7, %xmm6
pshufd $0x50, %xmm6, %xmm5     # xmm5 = xmm6[0,0,1,1]
movdqa %xmm5, %xmm1
psrlq $0x11, %xmm1
movdqa %xmm5, %xmm7
psrlq $0x13, %xmm7
pxor %xmm1, %xmm7
psrld $0xa, %xmm5
pxor %xmm7, %xmm5
pxor %xmm1, %xmm1
shufps $0x8e, %xmm5, %xmm1     # xmm1 = xmm1[2,3],xmm5[0,2]
paddd %xmm6, %xmm1
movdqu %xmm1, 0x70(%rax,%rcx,4)
addq $0x10, %rcx
jmp 0x1002f
movq -0x8(%rsp), %rdx
movl %r11d, 0x14(%rdx)
movl %r15d, 0x18(%rdx)
movl %r14d, 0x1c(%rdx)
movl %ebp, 0xc(%rdx)
movl %r10d, 0x4(%rdx)
movl %ebx, 0x8(%rdx)
movl %r8d, 0x10(%rdx)
movl %r9d, (%rdx)
xorl %eax, %eax
movq -0x10(%rsp), %rsi
movl (%rdx,%rax,4), %ecx
addl %ecx, (%rsi,%rax,4)
incq %rax
cmpq $0x8, %rax
jne 0x10a15
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop