#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_192_ASSIST(__m128i *temp1, __m128i *temp2, __m128i *temp3) {
  __m128i temp4;
  *temp2 = _mm_shuffle_epi32(*temp2, 0x55);
  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);
  *temp2 = _mm_shuffle_epi32(*temp1, 0xff);
  temp4 = _mm_slli_si128(*temp3, 0x4);
  *temp3 = _mm_xor_si128(*temp3, temp4);
  *temp3 = _mm_xor_si128(*temp3, *temp2);
}


x86 assembly (clang, -O0):
<KEY_192_ASSIST>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    $0x55,%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,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x1c(%rbp),%edi
mov    $0x4,%esi
call   1050 <_mm_slli_si128@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x1c(%rbp),%edi
mov    $0x4,%esi
call   1050 <_mm_slli_si128@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x1c(%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)
mov    -0x8(%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    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    $0x4,%esi
call   1050 <_mm_slli_si128@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<KEY_192_ASSIST>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
mov    (%rsi),%edi
mov    $0x55,%esi
call   1030 <_mm_shuffle_epi32@plt>
mov    %eax,(%r15)
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    (%r15),%esi
mov    %eax,%edi
call   1040 <_mm_xor_si128@plt>
mov    %eax,(%rbx)
mov    %eax,%edi
mov    $0xff,%esi
call   1030 <_mm_shuffle_epi32@plt>
mov    %eax,(%r15)
mov    (%r14),%edi
mov    $0x4,%esi
call   1050 <_mm_slli_si128@plt>
mov    (%r14),%edi
mov    %eax,%esi
call   1040 <_mm_xor_si128@plt>
mov    %eax,(%r14)
mov    (%r15),%esi
mov    %eax,%edi
call   1040 <_mm_xor_si128@plt>
mov    %eax,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @KEY_192_ASSIST(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%8 = load i32*, i32** %5
%9 = load i32, i32* %8
%10 = call i32 @_mm_shuffle_epi32(i32 %9, i32 85)
%11 = load i32*, i32** %5
store i32 %10, i32* %11
%12 = load i32*, i32** %4
%13 = load i32, i32* %12
%14 = call i32 @_mm_slli_si128(i32 %13, i32 4)
store i32 %14, i32* %7
%15 = load i32*, i32** %4
%16 = load i32, i32* %15
%17 = load i32, i32* %7
%18 = call i32 @_mm_xor_si128(i32 %16, i32 %17)
%19 = load i32*, i32** %4
store i32 %18, i32* %19
%20 = load i32, i32* %7
%21 = call i32 @_mm_slli_si128(i32 %20, i32 4)
store i32 %21, i32* %7
%22 = load i32*, i32** %4
%23 = load i32, i32* %22
%24 = load i32, i32* %7
%25 = call i32 @_mm_xor_si128(i32 %23, i32 %24)
%26 = load i32*, i32** %4
store i32 %25, i32* %26
%27 = load i32, i32* %7
%28 = call i32 @_mm_slli_si128(i32 %27, i32 4)
store i32 %28, i32* %7
%29 = load i32*, i32** %4
%30 = load i32, i32* %29
%31 = load i32, i32* %7
%32 = call i32 @_mm_xor_si128(i32 %30, i32 %31)
%33 = load i32*, i32** %4
store i32 %32, i32* %33
%34 = load i32*, i32** %4
%35 = load i32, i32* %34
%36 = load i32*, i32** %5
%37 = load i32, i32* %36
%38 = call i32 @_mm_xor_si128(i32 %35, i32 %37)
%39 = load i32*, i32** %4
store i32 %38, i32* %39
%40 = load i32*, i32** %4
%41 = load i32, i32* %40
%42 = call i32 @_mm_shuffle_epi32(i32 %41, i32 255)
%43 = load i32*, i32** %5
store i32 %42, i32* %43
%44 = load i32*, i32** %6
%45 = load i32, i32* %44
%46 = call i32 @_mm_slli_si128(i32 %45, i32 4)
store i32 %46, i32* %7
%47 = load i32*, i32** %6
%48 = load i32, i32* %47
%49 = load i32, i32* %7
%50 = call i32 @_mm_xor_si128(i32 %48, i32 %49)
%51 = load i32*, i32** %6
store i32 %50, i32* %51
%52 = load i32*, i32** %6
%53 = load i32, i32* %52
%54 = load i32*, i32** %5
%55 = load i32, i32* %54
%56 = call i32 @_mm_xor_si128(i32 %53, i32 %55)
%57 = load i32*, i32** %6
store i32 %56, i32* %57
ret void
}

LLVM IR (-O2):
define void @KEY_192_ASSIST(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2) {
%4 = load i32, i32* %1
%5 = tail call i32 @_mm_shuffle_epi32(i32 %4, i32 85)
store i32 %5, i32* %1
%6 = load i32, i32* %0
%7 = tail call i32 @_mm_slli_si128(i32 %6, i32 4)
%8 = load i32, i32* %0
%9 = tail call i32 @_mm_xor_si128(i32 %8, i32 %7)
store i32 %9, i32* %0
%10 = tail call i32 @_mm_slli_si128(i32 %7, i32 4)
%11 = load i32, i32* %0
%12 = tail call i32 @_mm_xor_si128(i32 %11, i32 %10)
store i32 %12, i32* %0
%13 = tail call i32 @_mm_slli_si128(i32 %10, i32 4)
%14 = load i32, i32* %0
%15 = tail call i32 @_mm_xor_si128(i32 %14, i32 %13)
store i32 %15, i32* %0
%16 = load i32, i32* %1
%17 = tail call i32 @_mm_xor_si128(i32 %15, i32 %16)
store i32 %17, i32* %0
%18 = tail call i32 @_mm_shuffle_epi32(i32 %17, i32 255)
store i32 %18, i32* %1
%19 = load i32, i32* %2
%20 = tail call i32 @_mm_slli_si128(i32 %19, i32 4)
%21 = load i32, i32* %2
%22 = tail call i32 @_mm_xor_si128(i32 %21, i32 %20)
store i32 %22, i32* %2
%23 = load i32, i32* %1
%24 = tail call i32 @_mm_xor_si128(i32 %22, i32 %23)
store i32 %24, i32* %2
ret void
}