#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_add_epi32(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_shuffle_epi32(int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_slli_epi32(int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_srli_epi32(int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_xor_si128(int /*<<< orphan*/, int /*<<< orphan*/);
void sse2_salsa20_8(__m128i B[4]) {
  __m128i X0, X1, X2, X3;
  __m128i T;
  size_t i;
  X0 = B[0];
  X1 = B[1];
  X2 = B[2];
  X3 = B[3];
  for (i = 0; i < 8; i += 2) {
    T = _mm_add_epi32(X0, X3);
    X1 = _mm_xor_si128(X1, _mm_slli_epi32(T, 7));
    X1 = _mm_xor_si128(X1, _mm_srli_epi32(T, 25));
    T = _mm_add_epi32(X1, X0);
    X2 = _mm_xor_si128(X2, _mm_slli_epi32(T, 9));
    X2 = _mm_xor_si128(X2, _mm_srli_epi32(T, 23));
    T = _mm_add_epi32(X2, X1);
    X3 = _mm_xor_si128(X3, _mm_slli_epi32(T, 13));
    X3 = _mm_xor_si128(X3, _mm_srli_epi32(T, 19));
    T = _mm_add_epi32(X3, X2);
    X0 = _mm_xor_si128(X0, _mm_slli_epi32(T, 18));
    X0 = _mm_xor_si128(X0, _mm_srli_epi32(T, 14));
    X1 = _mm_shuffle_epi32(X1, 0x93);
    X2 = _mm_shuffle_epi32(X2, 0x4E);
    X3 = _mm_shuffle_epi32(X3, 0x39);
    T = _mm_add_epi32(X0, X1);
    X3 = _mm_xor_si128(X3, _mm_slli_epi32(T, 7));
    X3 = _mm_xor_si128(X3, _mm_srli_epi32(T, 25));
    T = _mm_add_epi32(X3, X0);
    X2 = _mm_xor_si128(X2, _mm_slli_epi32(T, 9));
    X2 = _mm_xor_si128(X2, _mm_srli_epi32(T, 23));
    T = _mm_add_epi32(X2, X3);
    X1 = _mm_xor_si128(X1, _mm_slli_epi32(T, 13));
    X1 = _mm_xor_si128(X1, _mm_srli_epi32(T, 19));
    T = _mm_add_epi32(X1, X2);
    X0 = _mm_xor_si128(X0, _mm_slli_epi32(T, 18));
    X0 = _mm_xor_si128(X0, _mm_srli_epi32(T, 14));
    X1 = _mm_shuffle_epi32(X1, 0x39);
    X2 = _mm_shuffle_epi32(X2, 0x4E);
    X3 = _mm_shuffle_epi32(X3, 0x93);
  }
  B[0] = _mm_add_epi32(B[0], X0);
  B[1] = _mm_add_epi32(B[1], X1);
  B[2] = _mm_add_epi32(B[2], X2);
  B[3] = _mm_add_epi32(B[3], X3);
}


x86 assembly (clang, -O0):
<sse2_salsa20_8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%eax
mov    %eax,-0x18(%rbp)
movq   $0x0,-0x28(%rbp)
cmpq   $0x8,-0x28(%rbp)
jae    1477 <sse2_salsa20_8+0x327>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x7,%esi
call   1060 <_mm_slli_epi32@plt>
mov    -0x68(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x19,%esi
call   1070 <_mm_srli_epi32@plt>
mov    -0x64(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x9,%esi
call   1060 <_mm_slli_epi32@plt>
mov    -0x60(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x17,%esi
call   1070 <_mm_srli_epi32@plt>
mov    -0x5c(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0xd,%esi
call   1060 <_mm_slli_epi32@plt>
mov    -0x58(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x13,%esi
call   1070 <_mm_srli_epi32@plt>
mov    -0x54(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x12,%esi
call   1060 <_mm_slli_epi32@plt>
mov    -0x50(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0xe,%esi
call   1070 <_mm_srli_epi32@plt>
mov    -0x4c(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%edi
mov    $0x93,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x4e,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
mov    $0x39,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x7,%esi
call   1060 <_mm_slli_epi32@plt>
mov    -0x48(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x19,%esi
call   1070 <_mm_srli_epi32@plt>
mov    -0x44(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x9,%esi
call   1060 <_mm_slli_epi32@plt>
mov    -0x40(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x17,%esi
call   1070 <_mm_srli_epi32@plt>
mov    -0x3c(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0xd,%esi
call   1060 <_mm_slli_epi32@plt>
mov    -0x38(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x13,%esi
call   1070 <_mm_srli_epi32@plt>
mov    -0x34(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x12,%esi
call   1060 <_mm_slli_epi32@plt>
mov    -0x30(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0xe,%esi
call   1070 <_mm_srli_epi32@plt>
mov    -0x2c(%rbp),%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%edi
mov    $0x39,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x4e,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
mov    $0x93,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x28(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x28(%rbp)
jmp    118b <sse2_salsa20_8+0x3b>
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0xc(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%edi
mov    -0x10(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edi
mov    -0x14(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%edi
mov    -0x18(%rbp),%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xc(%rax)
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sse2_salsa20_8>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    (%rdi),%r13d
mov    0x4(%rdi),%ebx
mov    0x8(%rdi),%r15d
mov    %rdi,0x8(%rsp)
mov    0xc(%rdi),%r12d
mov    $0xfffffffffffffffe,%rax
nopl   0x0(%rax,%rax,1)
mov    %rax,0x10(%rsp)
mov    %r13d,%edi
mov    %r12d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ebp
mov    %eax,%edi
mov    $0x7,%esi
call   1060 <_mm_slli_epi32@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    $0x19,%esi
call   1070 <_mm_srli_epi32@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%r14d
mov    %eax,%edi
mov    %r13d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    $0x9,%esi
call   1060 <_mm_slli_epi32@plt>
mov    %r15d,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x17,%esi
call   1070 <_mm_srli_epi32@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%r15d
mov    %eax,%edi
mov    %r14d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    $0xd,%esi
call   1060 <_mm_slli_epi32@plt>
mov    %r12d,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x13,%esi
call   1070 <_mm_srli_epi32@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%r12d
mov    %eax,%edi
mov    %r15d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ebp
mov    %eax,%edi
mov    $0x12,%esi
call   1060 <_mm_slli_epi32@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    $0xe,%esi
call   1070 <_mm_srli_epi32@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%r13d
mov    %r14d,%edi
mov    $0x93,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,%r14d
mov    %r15d,%edi
mov    $0x4e,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,%r15d
mov    %r12d,%edi
mov    $0x39,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,%ebx
mov    %r13d,%edi
mov    %r14d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ebp
mov    %eax,%edi
mov    $0x7,%esi
call   1060 <_mm_slli_epi32@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    $0x19,%esi
call   1070 <_mm_srli_epi32@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%r12d
mov    %eax,%edi
mov    %r13d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    $0x9,%esi
call   1060 <_mm_slli_epi32@plt>
mov    %r15d,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x17,%esi
call   1070 <_mm_srli_epi32@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%r15d
mov    %eax,%edi
mov    %r12d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    $0xd,%esi
call   1060 <_mm_slli_epi32@plt>
mov    %r14d,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x13,%esi
call   1070 <_mm_srli_epi32@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%r14d
mov    %eax,%edi
mov    %r15d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,%ebp
mov    %eax,%edi
mov    $0x12,%esi
call   1060 <_mm_slli_epi32@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    $0xe,%esi
call   1070 <_mm_srli_epi32@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1050 <_mm_xor_si128@plt>
mov    %eax,%r13d
mov    %r14d,%edi
mov    $0x39,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,%ebx
mov    %r15d,%edi
mov    $0x4e,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,%r15d
mov    %r12d,%edi
mov    $0x93,%esi
call   1040 <_mm_shuffle_epi32@plt>
mov    %eax,%r12d
mov    0x10(%rsp),%rax
add    $0x2,%rax
cmp    $0x6,%rax
jb     1180 <sse2_salsa20_8+0x30>
mov    0x8(%rsp),%rbp
mov    0x0(%rbp),%edi
mov    %r13d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,0x0(%rbp)
mov    0x4(%rbp),%edi
mov    %ebx,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,0x4(%rbp)
mov    0x8(%rbp),%edi
mov    %r15d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,0x8(%rbp)
mov    0xc(%rbp),%edi
mov    %r12d,%esi
call   1030 <_mm_add_epi32@plt>
mov    %eax,0xc(%rbp)
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @sse2_salsa20_8(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
store i32* %0, i32** %2
%9 = load i32*, i32** %2
%10 = getelementptr inbounds i32, i32* %9, i64 0
%11 = load i32, i32* %10
store i32 %11, i32* %3
%12 = load i32*, i32** %2
%13 = getelementptr inbounds i32, i32* %12, i64 1
%14 = load i32, i32* %13
store i32 %14, i32* %4
%15 = load i32*, i32** %2
%16 = getelementptr inbounds i32, i32* %15, i64 2
%17 = load i32, i32* %16
store i32 %17, i32* %5
%18 = load i32*, i32** %2
%19 = getelementptr inbounds i32, i32* %18, i64 3
%20 = load i32, i32* %19
store i32 %20, i32* %6
store i64 0, i64* %8
br label %21
21: ; preds = %125, %1
%22 = load i64, i64* %8
%23 = icmp ult i64 %22, 8
br i1 %23, label %24, label %128
24: ; preds = %21
%25 = load i32, i32* %3
%26 = load i32, i32* %6
%27 = call i32 @_mm_add_epi32(i32 %25, i32 %26)
store i32 %27, i32* %7
%28 = load i32, i32* %4
%29 = load i32, i32* %7
%30 = call i32 @_mm_slli_epi32(i32 %29, i32 7)
%31 = call i32 @_mm_xor_si128(i32 %28, i32 %30)
store i32 %31, i32* %4
%32 = load i32, i32* %4
%33 = load i32, i32* %7
%34 = call i32 @_mm_srli_epi32(i32 %33, i32 25)
%35 = call i32 @_mm_xor_si128(i32 %32, i32 %34)
store i32 %35, i32* %4
%36 = load i32, i32* %4
%37 = load i32, i32* %3
%38 = call i32 @_mm_add_epi32(i32 %36, i32 %37)
store i32 %38, i32* %7
%39 = load i32, i32* %5
%40 = load i32, i32* %7
%41 = call i32 @_mm_slli_epi32(i32 %40, i32 9)
%42 = call i32 @_mm_xor_si128(i32 %39, i32 %41)
store i32 %42, i32* %5
%43 = load i32, i32* %5
%44 = load i32, i32* %7
%45 = call i32 @_mm_srli_epi32(i32 %44, i32 23)
%46 = call i32 @_mm_xor_si128(i32 %43, i32 %45)
store i32 %46, i32* %5
%47 = load i32, i32* %5
%48 = load i32, i32* %4
%49 = call i32 @_mm_add_epi32(i32 %47, i32 %48)
store i32 %49, i32* %7
%50 = load i32, i32* %6
%51 = load i32, i32* %7
%52 = call i32 @_mm_slli_epi32(i32 %51, i32 13)
%53 = call i32 @_mm_xor_si128(i32 %50, i32 %52)
store i32 %53, i32* %6
%54 = load i32, i32* %6
%55 = load i32, i32* %7
%56 = call i32 @_mm_srli_epi32(i32 %55, i32 19)
%57 = call i32 @_mm_xor_si128(i32 %54, i32 %56)
store i32 %57, i32* %6
%58 = load i32, i32* %6
%59 = load i32, i32* %5
%60 = call i32 @_mm_add_epi32(i32 %58, i32 %59)
store i32 %60, i32* %7
%61 = load i32, i32* %3
%62 = load i32, i32* %7
%63 = call i32 @_mm_slli_epi32(i32 %62, i32 18)
%64 = call i32 @_mm_xor_si128(i32 %61, i32 %63)
store i32 %64, i32* %3
%65 = load i32, i32* %3
%66 = load i32, i32* %7
%67 = call i32 @_mm_srli_epi32(i32 %66, i32 14)
%68 = call i32 @_mm_xor_si128(i32 %65, i32 %67)
store i32 %68, i32* %3
%69 = load i32, i32* %4
%70 = call i32 @_mm_shuffle_epi32(i32 %69, i32 147)
store i32 %70, i32* %4
%71 = load i32, i32* %5
%72 = call i32 @_mm_shuffle_epi32(i32 %71, i32 78)
store i32 %72, i32* %5
%73 = load i32, i32* %6
%74 = call i32 @_mm_shuffle_epi32(i32 %73, i32 57)
store i32 %74, i32* %6
%75 = load i32, i32* %3
%76 = load i32, i32* %4
%77 = call i32 @_mm_add_epi32(i32 %75, i32 %76)
store i32 %77, i32* %7
%78 = load i32, i32* %6
%79 = load i32, i32* %7
%80 = call i32 @_mm_slli_epi32(i32 %79, i32 7)
%81 = call i32 @_mm_xor_si128(i32 %78, i32 %80)
store i32 %81, i32* %6
%82 = load i32, i32* %6
%83 = load i32, i32* %7
%84 = call i32 @_mm_srli_epi32(i32 %83, i32 25)
%85 = call i32 @_mm_xor_si128(i32 %82, i32 %84)
store i32 %85, i32* %6
%86 = load i32, i32* %6
%87 = load i32, i32* %3
%88 = call i32 @_mm_add_epi32(i32 %86, i32 %87)
store i32 %88, i32* %7
%89 = load i32, i32* %5
%90 = load i32, i32* %7
%91 = call i32 @_mm_slli_epi32(i32 %90, i32 9)
%92 = call i32 @_mm_xor_si128(i32 %89, i32 %91)
store i32 %92, i32* %5
%93 = load i32, i32* %5
%94 = load i32, i32* %7
%95 = call i32 @_mm_srli_epi32(i32 %94, i32 23)
%96 = call i32 @_mm_xor_si128(i32 %93, i32 %95)
store i32 %96, i32* %5
%97 = load i32, i32* %5
%98 = load i32, i32* %6
%99 = call i32 @_mm_add_epi32(i32 %97, i32 %98)
store i32 %99, i32* %7
%100 = load i32, i32* %4
%101 = load i32, i32* %7
%102 = call i32 @_mm_slli_epi32(i32 %101, i32 13)
%103 = call i32 @_mm_xor_si128(i32 %100, i32 %102)
store i32 %103, i32* %4
%104 = load i32, i32* %4
%105 = load i32, i32* %7
%106 = call i32 @_mm_srli_epi32(i32 %105, i32 19)
%107 = call i32 @_mm_xor_si128(i32 %104, i32 %106)
store i32 %107, i32* %4
%108 = load i32, i32* %4
%109 = load i32, i32* %5
%110 = call i32 @_mm_add_epi32(i32 %108, i32 %109)
store i32 %110, i32* %7
%111 = load i32, i32* %3
%112 = load i32, i32* %7
%113 = call i32 @_mm_slli_epi32(i32 %112, i32 18)
%114 = call i32 @_mm_xor_si128(i32 %111, i32 %113)
store i32 %114, i32* %3
%115 = load i32, i32* %3
%116 = load i32, i32* %7
%117 = call i32 @_mm_srli_epi32(i32 %116, i32 14)
%118 = call i32 @_mm_xor_si128(i32 %115, i32 %117)
store i32 %118, i32* %3
%119 = load i32, i32* %4
%120 = call i32 @_mm_shuffle_epi32(i32 %119, i32 57)
store i32 %120, i32* %4
%121 = load i32, i32* %5
%122 = call i32 @_mm_shuffle_epi32(i32 %121, i32 78)
store i32 %122, i32* %5
%123 = load i32, i32* %6
%124 = call i32 @_mm_shuffle_epi32(i32 %123, i32 147)
store i32 %124, i32* %6
br label %125
125: ; preds = %24
%126 = load i64, i64* %8
%127 = add i64 %126, 2
store i64 %127, i64* %8
br label %21
128: ; preds = %21
%129 = load i32*, i32** %2
%130 = getelementptr inbounds i32, i32* %129, i64 0
%131 = load i32, i32* %130
%132 = load i32, i32* %3
%133 = call i32 @_mm_add_epi32(i32 %131, i32 %132)
%134 = load i32*, i32** %2
%135 = getelementptr inbounds i32, i32* %134, i64 0
store i32 %133, i32* %135
%136 = load i32*, i32** %2
%137 = getelementptr inbounds i32, i32* %136, i64 1
%138 = load i32, i32* %137
%139 = load i32, i32* %4
%140 = call i32 @_mm_add_epi32(i32 %138, i32 %139)
%141 = load i32*, i32** %2
%142 = getelementptr inbounds i32, i32* %141, i64 1
store i32 %140, i32* %142
%143 = load i32*, i32** %2
%144 = getelementptr inbounds i32, i32* %143, i64 2
%145 = load i32, i32* %144
%146 = load i32, i32* %5
%147 = call i32 @_mm_add_epi32(i32 %145, i32 %146)
%148 = load i32*, i32** %2
%149 = getelementptr inbounds i32, i32* %148, i64 2
store i32 %147, i32* %149
%150 = load i32*, i32** %2
%151 = getelementptr inbounds i32, i32* %150, i64 3
%152 = load i32, i32* %151
%153 = load i32, i32* %6
%154 = call i32 @_mm_add_epi32(i32 %152, i32 %153)
%155 = load i32*, i32** %2
%156 = getelementptr inbounds i32, i32* %155, i64 3
store i32 %154, i32* %156
ret void
}

LLVM IR (-O2):
define void @sse2_salsa20_8(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = getelementptr inbounds i32, i32* %0, i64 1
%4 = load i32, i32* %3
%5 = getelementptr inbounds i32, i32* %0, i64 2
%6 = load i32, i32* %5
%7 = getelementptr inbounds i32, i32* %0, i64 3
%8 = load i32, i32* %7
br label %9
9: ; preds = %1, %9
%10 = phi i64 [ 0, %1 ], [ %61, %9 ]
%11 = phi i32 [ %2, %1 ], [ %57, %9 ]
%12 = phi i32 [ %8, %1 ], [ %60, %9 ]
%13 = phi i32 [ %6, %1 ], [ %59, %9 ]
%14 = phi i32 [ %4, %1 ], [ %58, %9 ]
%15 = tail call i32 @_mm_add_epi32(i32 %11, i32 %12)
%16 = tail call i32 @_mm_slli_epi32(i32 %15, i32 7)
%17 = tail call i32 @_mm_xor_si128(i32 %14, i32 %16)
%18 = tail call i32 @_mm_srli_epi32(i32 %15, i32 25)
%19 = tail call i32 @_mm_xor_si128(i32 %17, i32 %18)
%20 = tail call i32 @_mm_add_epi32(i32 %19, i32 %11)
%21 = tail call i32 @_mm_slli_epi32(i32 %20, i32 9)
%22 = tail call i32 @_mm_xor_si128(i32 %13, i32 %21)
%23 = tail call i32 @_mm_srli_epi32(i32 %20, i32 23)
%24 = tail call i32 @_mm_xor_si128(i32 %22, i32 %23)
%25 = tail call i32 @_mm_add_epi32(i32 %24, i32 %19)
%26 = tail call i32 @_mm_slli_epi32(i32 %25, i32 13)
%27 = tail call i32 @_mm_xor_si128(i32 %12, i32 %26)
%28 = tail call i32 @_mm_srli_epi32(i32 %25, i32 19)
%29 = tail call i32 @_mm_xor_si128(i32 %27, i32 %28)
%30 = tail call i32 @_mm_add_epi32(i32 %29, i32 %24)
%31 = tail call i32 @_mm_slli_epi32(i32 %30, i32 18)
%32 = tail call i32 @_mm_xor_si128(i32 %11, i32 %31)
%33 = tail call i32 @_mm_srli_epi32(i32 %30, i32 14)
%34 = tail call i32 @_mm_xor_si128(i32 %32, i32 %33)
%35 = tail call i32 @_mm_shuffle_epi32(i32 %19, i32 147)
%36 = tail call i32 @_mm_shuffle_epi32(i32 %24, i32 78)
%37 = tail call i32 @_mm_shuffle_epi32(i32 %29, i32 57)
%38 = tail call i32 @_mm_add_epi32(i32 %34, i32 %35)
%39 = tail call i32 @_mm_slli_epi32(i32 %38, i32 7)
%40 = tail call i32 @_mm_xor_si128(i32 %37, i32 %39)
%41 = tail call i32 @_mm_srli_epi32(i32 %38, i32 25)
%42 = tail call i32 @_mm_xor_si128(i32 %40, i32 %41)
%43 = tail call i32 @_mm_add_epi32(i32 %42, i32 %34)
%44 = tail call i32 @_mm_slli_epi32(i32 %43, i32 9)
%45 = tail call i32 @_mm_xor_si128(i32 %36, i32 %44)
%46 = tail call i32 @_mm_srli_epi32(i32 %43, i32 23)
%47 = tail call i32 @_mm_xor_si128(i32 %45, i32 %46)
%48 = tail call i32 @_mm_add_epi32(i32 %47, i32 %42)
%49 = tail call i32 @_mm_slli_epi32(i32 %48, i32 13)
%50 = tail call i32 @_mm_xor_si128(i32 %35, i32 %49)
%51 = tail call i32 @_mm_srli_epi32(i32 %48, i32 19)
%52 = tail call i32 @_mm_xor_si128(i32 %50, i32 %51)
%53 = tail call i32 @_mm_add_epi32(i32 %52, i32 %47)
%54 = tail call i32 @_mm_slli_epi32(i32 %53, i32 18)
%55 = tail call i32 @_mm_xor_si128(i32 %34, i32 %54)
%56 = tail call i32 @_mm_srli_epi32(i32 %53, i32 14)
%57 = tail call i32 @_mm_xor_si128(i32 %55, i32 %56)
%58 = tail call i32 @_mm_shuffle_epi32(i32 %52, i32 57)
%59 = tail call i32 @_mm_shuffle_epi32(i32 %47, i32 78)
%60 = tail call i32 @_mm_shuffle_epi32(i32 %42, i32 147)
%61 = add nuw nsw i64 %10, 2
%62 = icmp ult i64 %10, 6
br i1 %62, label %9, label %63
63: ; preds = %9
%64 = load i32, i32* %0
%65 = tail call i32 @_mm_add_epi32(i32 %64, i32 %57)
store i32 %65, i32* %0
%66 = load i32, i32* %3
%67 = tail call i32 @_mm_add_epi32(i32 %66, i32 %58)
store i32 %67, i32* %3
%68 = load i32, i32* %5
%69 = tail call i32 @_mm_add_epi32(i32 %68, i32 %59)
store i32 %69, i32* %5
%70 = load i32, i32* %7
%71 = tail call i32 @_mm_add_epi32(i32 %70, i32 %60)
store i32 %71, i32* %7
ret void
}