#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ _mm_shuffle_epi32(int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_slli_si128(int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_xor_si128(int /*<<< orphan*/, int /*<<< orphan*/);
void KEY_256_ASSIST_1(__m128i *temp1, __m128i *temp2) {
  __m128i temp4;
  *temp2 = _mm_shuffle_epi32(*temp2, 0xff);
  temp4 = _mm_slli_si128(*temp1, 0x4);
  *temp1 = _mm_xor_si128(*temp1, temp4);
  temp4 = _mm_slli_si128(temp4, 0x4);
  *temp1 = _mm_xor_si128(*temp1, temp4);
  temp4 = _mm_slli_si128(temp4, 0x4);
  *temp1 = _mm_xor_si128(*temp1, temp4);
  *temp1 = _mm_xor_si128(*temp1, *temp2);
}


x86 assembly (clang, -O0):
<KEY_256_ASSIST_1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    $0xff,%esi
call   1030 <_mm_shuffle_epi32@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    $0x4,%esi
call   1050 <_mm_slli_si128@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%edi
mov    $0x4,%esi
call   1050 <_mm_slli_si128@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%edi
mov    $0x4,%esi
call   1050 <_mm_slli_si128@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<KEY_256_ASSIST_1>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rsi),%edi
mov    $0xff,%esi
call   1030 <_mm_shuffle_epi32@plt>
mov    %eax,(%r14)
mov    (%rbx),%edi
mov    $0x4,%esi
call   1050 <_mm_slli_si128@plt>
mov    %eax,%ebp
mov    (%rbx),%edi
mov    %eax,%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,(%rbx)
mov    %ebp,%edi
mov    $0x4,%esi
call   1050 <_mm_slli_si128@plt>
mov    %eax,%ebp
mov    (%rbx),%edi
mov    %eax,%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,(%rbx)
mov    %ebp,%edi
mov    $0x4,%esi
call   1050 <_mm_slli_si128@plt>
mov    (%rbx),%edi
mov    %eax,%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,(%rbx)
mov    (%r14),%esi
mov    %eax,%edi
call   1040 <_mm_xor_si128@plt>
mov    %eax,(%rbx)
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @KEY_256_ASSIST_1(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
%6 = load i32*, i32** %4
%7 = load i32, i32* %6
%8 = call i32 @_mm_shuffle_epi32(i32 %7, i32 255)
%9 = load i32*, i32** %4
store i32 %8, i32* %9
%10 = load i32*, i32** %3
%11 = load i32, i32* %10
%12 = call i32 @_mm_slli_si128(i32 %11, i32 4)
store i32 %12, i32* %5
%13 = load i32*, i32** %3
%14 = load i32, i32* %13
%15 = load i32, i32* %5
%16 = call i32 @_mm_xor_si128(i32 %14, i32 %15)
%17 = load i32*, i32** %3
store i32 %16, i32* %17
%18 = load i32, i32* %5
%19 = call i32 @_mm_slli_si128(i32 %18, i32 4)
store i32 %19, i32* %5
%20 = load i32*, i32** %3
%21 = load i32, i32* %20
%22 = load i32, i32* %5
%23 = call i32 @_mm_xor_si128(i32 %21, i32 %22)
%24 = load i32*, i32** %3
store i32 %23, i32* %24
%25 = load i32, i32* %5
%26 = call i32 @_mm_slli_si128(i32 %25, i32 4)
store i32 %26, i32* %5
%27 = load i32*, i32** %3
%28 = load i32, i32* %27
%29 = load i32, i32* %5
%30 = call i32 @_mm_xor_si128(i32 %28, i32 %29)
%31 = load i32*, i32** %3
store i32 %30, i32* %31
%32 = load i32*, i32** %3
%33 = load i32, i32* %32
%34 = load i32*, i32** %4
%35 = load i32, i32* %34
%36 = call i32 @_mm_xor_si128(i32 %33, i32 %35)
%37 = load i32*, i32** %3
store i32 %36, i32* %37
ret void
}

LLVM IR (-O2):
define void @KEY_256_ASSIST_1(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %1
%4 = tail call i32 @_mm_shuffle_epi32(i32 %3, i32 255)
store i32 %4, i32* %1
%5 = load i32, i32* %0
%6 = tail call i32 @_mm_slli_si128(i32 %5, i32 4)
%7 = load i32, i32* %0
%8 = tail call i32 @_mm_xor_si128(i32 %7, i32 %6)
store i32 %8, i32* %0
%9 = tail call i32 @_mm_slli_si128(i32 %6, i32 4)
%10 = load i32, i32* %0
%11 = tail call i32 @_mm_xor_si128(i32 %10, i32 %9)
store i32 %11, i32* %0
%12 = tail call i32 @_mm_slli_si128(i32 %9, i32 4)
%13 = load i32, i32* %0
%14 = tail call i32 @_mm_xor_si128(i32 %13, i32 %12)
store i32 %14, i32* %0
%15 = load i32, i32* %1
%16 = tail call i32 @_mm_xor_si128(i32 %14, i32 %15)
store i32 %16, i32* %0
ret void
}