#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_aesenc_si128(int /*<<< orphan*/,
                                    int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_aesenclast_si128(int /*<<< orphan*/,
                                        int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_load_si128(int /*<<< orphan*/ const *);
int /*<<< orphan*/ _mm_set_epi8(int, int, int, int, int, int, int, int, int,
                                int, int, int, int, int, int,
                                int /*<<< orphan*/);
int /*<<< orphan*/ _mm_shuffle_epi8(int /*<<< orphan*/,
                                    int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_store_si128(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_xor_si128(int /*<<< orphan*/, int /*<<< orphan*/ const);
void aesni_encrypt7(unsigned char *out, unsigned int *n,
                    const __m128i rkeys[16]) {
  const __m128i pt =
      _mm_set_epi8(12, 13, 14, 15, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0);
  __m128i nv0 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  __m128i nv1 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  __m128i nv2 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  __m128i nv3 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  __m128i nv4 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  __m128i nv5 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  __m128i nv6 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  int i;
  __m128i temp0 = _mm_xor_si128(nv0, rkeys[0]);
  __m128i temp1 = _mm_xor_si128(nv1, rkeys[0]);
  __m128i temp2 = _mm_xor_si128(nv2, rkeys[0]);
  __m128i temp3 = _mm_xor_si128(nv3, rkeys[0]);
  __m128i temp4 = _mm_xor_si128(nv4, rkeys[0]);
  __m128i temp5 = _mm_xor_si128(nv5, rkeys[0]);
  __m128i temp6 = _mm_xor_si128(nv6, rkeys[0]);
  for (i = 1; i < 14; i++) {
    temp0 = _mm_aesenc_si128(temp0, rkeys[i]);
    temp1 = _mm_aesenc_si128(temp1, rkeys[i]);
    temp2 = _mm_aesenc_si128(temp2, rkeys[i]);
    temp3 = _mm_aesenc_si128(temp3, rkeys[i]);
    temp4 = _mm_aesenc_si128(temp4, rkeys[i]);
    temp5 = _mm_aesenc_si128(temp5, rkeys[i]);
    temp6 = _mm_aesenc_si128(temp6, rkeys[i]);
  }
  temp0 = _mm_aesenclast_si128(temp0, rkeys[14]);
  temp1 = _mm_aesenclast_si128(temp1, rkeys[14]);
  temp2 = _mm_aesenclast_si128(temp2, rkeys[14]);
  temp3 = _mm_aesenclast_si128(temp3, rkeys[14]);
  temp4 = _mm_aesenclast_si128(temp4, rkeys[14]);
  temp5 = _mm_aesenclast_si128(temp5, rkeys[14]);
  temp6 = _mm_aesenclast_si128(temp6, rkeys[14]);
  _mm_store_si128((__m128i *)(out + (0 * 16)), temp0);
  _mm_store_si128((__m128i *)(out + (1 * 16)), temp1);
  _mm_store_si128((__m128i *)(out + (2 * 16)), temp2);
  _mm_store_si128((__m128i *)(out + (3 * 16)), temp3);
  _mm_store_si128((__m128i *)(out + (4 * 16)), temp4);
  _mm_store_si128((__m128i *)(out + (5 * 16)), temp5);
  _mm_store_si128((__m128i *)(out + (6 * 16)), temp6);
}


x86 assembly (clang, -O0):
<aesni_encrypt7>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0xc,%edi
mov    $0xd,%esi
mov    $0xe,%edx
mov    $0xf,%ecx
mov    $0xb,%r8d
mov    $0xa,%r9d
xor    %eax,%eax
movl   $0x9,(%rsp)
movl   $0x8,0x8(%rsp)
movl   $0x7,0x10(%rsp)
movl   $0x6,0x18(%rsp)
movl   $0x5,0x20(%rsp)
movl   $0x4,0x28(%rsp)
movl   $0x3,0x30(%rsp)
movl   $0x2,0x38(%rsp)
movl   $0x1,0x40(%rsp)
movl   $0x0,0x48(%rsp)
call   1080 <_mm_set_epi8@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
add    $0x1,%ecx
mov    %ecx,0xc(%rax)
mov    -0x10(%rbp),%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
add    $0x1,%ecx
mov    %ecx,0xc(%rax)
mov    -0x10(%rbp),%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
add    $0x1,%ecx
mov    %ecx,0xc(%rax)
mov    -0x10(%rbp),%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
add    $0x1,%ecx
mov    %ecx,0xc(%rax)
mov    -0x10(%rbp),%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
add    $0x1,%ecx
mov    %ecx,0xc(%rax)
mov    -0x10(%rbp),%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
add    $0x1,%ecx
mov    %ecx,0xc(%rax)
mov    -0x10(%rbp),%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
add    $0x1,%ecx
mov    %ecx,0xc(%rax)
mov    -0x20(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x40(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x48(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x50(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x54(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x58(%rbp)
movl   $0x1,-0x3c(%rbp)
cmpl   $0xe,-0x3c(%rbp)
jge    1425 <aesni_encrypt7+0x2b5>
mov    -0x40(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x40(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x44(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x48(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x50(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x50(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x54(%rbp)
mov    -0x58(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x58(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1373 <aesni_encrypt7+0x203>
mov    -0x40(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x40(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x44(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x48(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x50(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x50(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x54(%rbp)
mov    -0x58(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x58(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x40(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x10,%rdi
mov    -0x44(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x20,%rdi
mov    -0x48(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x30,%rdi
mov    -0x4c(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x40,%rdi
mov    -0x50(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x50,%rdi
mov    -0x54(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x60,%rdi
mov    -0x58(%rbp),%esi
call   1070 <_mm_store_si128@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aesni_encrypt7>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,0x20(%rsp)
mov    $0xc,%edi
mov    $0xd,%esi
mov    $0xe,%edx
mov    $0xf,%ecx
mov    $0xb,%r8d
mov    $0xa,%r9d
push   $0x0
push   $0x1
push   $0x2
push   $0x3
push   $0x4
push   $0x5
push   $0x6
push   $0x7
push   $0x8
push   $0x9
call   1080 <_mm_set_epi8@plt>
add    $0x50,%rsp
mov    %eax,%ebp
mov    %rbx,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %ebp,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x14(%rsp)
addl   $0x1,0xc(%rbx)
mov    %rbx,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %ebp,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x10(%rsp)
addl   $0x1,0xc(%rbx)
mov    %rbx,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %ebp,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0xc(%rsp)
addl   $0x1,0xc(%rbx)
mov    %rbx,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %ebp,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x18(%rsp)
addl   $0x1,0xc(%rbx)
mov    %rbx,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %ebp,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,%r14d
addl   $0x1,0xc(%rbx)
mov    %rbx,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %ebp,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,%r15d
addl   $0x1,0xc(%rbx)
mov    %rbx,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %ebp,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,%r12d
addl   $0x1,0xc(%rbx)
mov    0x0(%r13),%esi
mov    0x14(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0x14(%rsp)
mov    0x0(%r13),%esi
mov    0x10(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0x10(%rsp)
mov    0x0(%r13),%esi
mov    0xc(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0xc(%rsp)
mov    0x0(%r13),%esi
mov    0x18(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,%ebx
mov    0x0(%r13),%esi
mov    %r14d,%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,%r14d
mov    0x0(%r13),%esi
mov    %r15d,%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,%r15d
mov    %r13,0x18(%rsp)
mov    0x0(%r13),%esi
mov    %r12d,%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,%r12d
mov    $0x1,%r13d
mov    0x18(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x0(%rbp,%r13,4),%esi
mov    0x14(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x14(%rsp)
mov    0x0(%rbp,%r13,4),%esi
mov    0x10(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x10(%rsp)
mov    0x0(%rbp,%r13,4),%esi
mov    0xc(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0xc(%rsp)
mov    0x0(%rbp,%r13,4),%esi
mov    %ebx,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%ebx
mov    0x0(%rbp,%r13,4),%esi
mov    %r14d,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%r14d
mov    0x0(%rbp,%r13,4),%esi
mov    %r15d,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%r15d
mov    0x0(%rbp,%r13,4),%esi
mov    %r12d,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%r12d
add    $0x1,%r13
cmp    $0xe,%r13
jne    1300 <aesni_encrypt7+0x190>
mov    0x18(%rsp),%rbp
mov    0x38(%rbp),%esi
mov    0x14(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0x14(%rsp)
mov    0x38(%rbp),%esi
mov    0x10(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0x10(%rsp)
mov    0x38(%rbp),%esi
mov    0xc(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0xc(%rsp)
mov    0x38(%rbp),%esi
mov    %ebx,%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,%r13d
mov    0x38(%rbp),%esi
mov    %r14d,%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,%r14d
mov    0x38(%rbp),%esi
mov    %r15d,%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,%r15d
mov    0x38(%rbp),%esi
mov    %r12d,%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,%ebp
mov    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    0x14(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x10(%rbx),%rdi
mov    0x10(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x20(%rbx),%rdi
mov    0xc(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x30(%rbx),%rdi
mov    %r13d,%esi
call   1070 <_mm_store_si128@plt>
lea    0x40(%rbx),%rdi
mov    %r14d,%esi
call   1070 <_mm_store_si128@plt>
lea    0x50(%rbx),%rdi
mov    %r15d,%esi
call   1070 <_mm_store_si128@plt>
add    $0x60,%rbx
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <_mm_store_si128@plt>

LLVM IR (-O0):
define void @aesni_encrypt7(i8* %0, i32* %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
store i8* %0, i8** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%23 = call i32 @_mm_set_epi8(i32 12, i32 13, i32 14, i32 15, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0)
store i32 %23, i32* %7
%24 = load i32*, i32** %5
%25 = call i32 @_mm_load_si128(i32* %24)
%26 = load i32, i32* %7
%27 = call i32 @_mm_shuffle_epi8(i32 %25, i32 %26)
store i32 %27, i32* %8
%28 = load i32*, i32** %5
%29 = getelementptr inbounds i32, i32* %28, i64 3
%30 = load i32, i32* %29
%31 = add i32 %30, 1
store i32 %31, i32* %29
%32 = load i32*, i32** %5
%33 = call i32 @_mm_load_si128(i32* %32)
%34 = load i32, i32* %7
%35 = call i32 @_mm_shuffle_epi8(i32 %33, i32 %34)
store i32 %35, i32* %9
%36 = load i32*, i32** %5
%37 = getelementptr inbounds i32, i32* %36, i64 3
%38 = load i32, i32* %37
%39 = add i32 %38, 1
store i32 %39, i32* %37
%40 = load i32*, i32** %5
%41 = call i32 @_mm_load_si128(i32* %40)
%42 = load i32, i32* %7
%43 = call i32 @_mm_shuffle_epi8(i32 %41, i32 %42)
store i32 %43, i32* %10
%44 = load i32*, i32** %5
%45 = getelementptr inbounds i32, i32* %44, i64 3
%46 = load i32, i32* %45
%47 = add i32 %46, 1
store i32 %47, i32* %45
%48 = load i32*, i32** %5
%49 = call i32 @_mm_load_si128(i32* %48)
%50 = load i32, i32* %7
%51 = call i32 @_mm_shuffle_epi8(i32 %49, i32 %50)
store i32 %51, i32* %11
%52 = load i32*, i32** %5
%53 = getelementptr inbounds i32, i32* %52, i64 3
%54 = load i32, i32* %53
%55 = add i32 %54, 1
store i32 %55, i32* %53
%56 = load i32*, i32** %5
%57 = call i32 @_mm_load_si128(i32* %56)
%58 = load i32, i32* %7
%59 = call i32 @_mm_shuffle_epi8(i32 %57, i32 %58)
store i32 %59, i32* %12
%60 = load i32*, i32** %5
%61 = getelementptr inbounds i32, i32* %60, i64 3
%62 = load i32, i32* %61
%63 = add i32 %62, 1
store i32 %63, i32* %61
%64 = load i32*, i32** %5
%65 = call i32 @_mm_load_si128(i32* %64)
%66 = load i32, i32* %7
%67 = call i32 @_mm_shuffle_epi8(i32 %65, i32 %66)
store i32 %67, i32* %13
%68 = load i32*, i32** %5
%69 = getelementptr inbounds i32, i32* %68, i64 3
%70 = load i32, i32* %69
%71 = add i32 %70, 1
store i32 %71, i32* %69
%72 = load i32*, i32** %5
%73 = call i32 @_mm_load_si128(i32* %72)
%74 = load i32, i32* %7
%75 = call i32 @_mm_shuffle_epi8(i32 %73, i32 %74)
store i32 %75, i32* %14
%76 = load i32*, i32** %5
%77 = getelementptr inbounds i32, i32* %76, i64 3
%78 = load i32, i32* %77
%79 = add i32 %78, 1
store i32 %79, i32* %77
%80 = load i32, i32* %8
%81 = load i32*, i32** %6
%82 = getelementptr inbounds i32, i32* %81, i64 0
%83 = load i32, i32* %82
%84 = call i32 @_mm_xor_si128(i32 %80, i32 %83)
store i32 %84, i32* %16
%85 = load i32, i32* %9
%86 = load i32*, i32** %6
%87 = getelementptr inbounds i32, i32* %86, i64 0
%88 = load i32, i32* %87
%89 = call i32 @_mm_xor_si128(i32 %85, i32 %88)
store i32 %89, i32* %17
%90 = load i32, i32* %10
%91 = load i32*, i32** %6
%92 = getelementptr inbounds i32, i32* %91, i64 0
%93 = load i32, i32* %92
%94 = call i32 @_mm_xor_si128(i32 %90, i32 %93)
store i32 %94, i32* %18
%95 = load i32, i32* %11
%96 = load i32*, i32** %6
%97 = getelementptr inbounds i32, i32* %96, i64 0
%98 = load i32, i32* %97
%99 = call i32 @_mm_xor_si128(i32 %95, i32 %98)
store i32 %99, i32* %19
%100 = load i32, i32* %12
%101 = load i32*, i32** %6
%102 = getelementptr inbounds i32, i32* %101, i64 0
%103 = load i32, i32* %102
%104 = call i32 @_mm_xor_si128(i32 %100, i32 %103)
store i32 %104, i32* %20
%105 = load i32, i32* %13
%106 = load i32*, i32** %6
%107 = getelementptr inbounds i32, i32* %106, i64 0
%108 = load i32, i32* %107
%109 = call i32 @_mm_xor_si128(i32 %105, i32 %108)
store i32 %109, i32* %21
%110 = load i32, i32* %14
%111 = load i32*, i32** %6
%112 = getelementptr inbounds i32, i32* %111, i64 0
%113 = load i32, i32* %112
%114 = call i32 @_mm_xor_si128(i32 %110, i32 %113)
store i32 %114, i32* %22
store i32 1, i32* %15
br label %115
115: ; preds = %168, %3
%116 = load i32, i32* %15
%117 = icmp slt i32 %116, 14
br i1 %117, label %118, label %171
118: ; preds = %115
%119 = load i32, i32* %16
%120 = load i32*, i32** %6
%121 = load i32, i32* %15
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i32, i32* %120, i64 %122
%124 = load i32, i32* %123
%125 = call i32 @_mm_aesenc_si128(i32 %119, i32 %124)
store i32 %125, i32* %16
%126 = load i32, i32* %17
%127 = load i32*, i32** %6
%128 = load i32, i32* %15
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i32, i32* %127, i64 %129
%131 = load i32, i32* %130
%132 = call i32 @_mm_aesenc_si128(i32 %126, i32 %131)
store i32 %132, i32* %17
%133 = load i32, i32* %18
%134 = load i32*, i32** %6
%135 = load i32, i32* %15
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i32, i32* %134, i64 %136
%138 = load i32, i32* %137
%139 = call i32 @_mm_aesenc_si128(i32 %133, i32 %138)
store i32 %139, i32* %18
%140 = load i32, i32* %19
%141 = load i32*, i32** %6
%142 = load i32, i32* %15
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i32, i32* %141, i64 %143
%145 = load i32, i32* %144
%146 = call i32 @_mm_aesenc_si128(i32 %140, i32 %145)
store i32 %146, i32* %19
%147 = load i32, i32* %20
%148 = load i32*, i32** %6
%149 = load i32, i32* %15
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, i32* %148, i64 %150
%152 = load i32, i32* %151
%153 = call i32 @_mm_aesenc_si128(i32 %147, i32 %152)
store i32 %153, i32* %20
%154 = load i32, i32* %21
%155 = load i32*, i32** %6
%156 = load i32, i32* %15
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds i32, i32* %155, i64 %157
%159 = load i32, i32* %158
%160 = call i32 @_mm_aesenc_si128(i32 %154, i32 %159)
store i32 %160, i32* %21
%161 = load i32, i32* %22
%162 = load i32*, i32** %6
%163 = load i32, i32* %15
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds i32, i32* %162, i64 %164
%166 = load i32, i32* %165
%167 = call i32 @_mm_aesenc_si128(i32 %161, i32 %166)
store i32 %167, i32* %22
br label %168
168: ; preds = %118
%169 = load i32, i32* %15
%170 = add nsw i32 %169, 1
store i32 %170, i32* %15
br label %115
171: ; preds = %115
%172 = load i32, i32* %16
%173 = load i32*, i32** %6
%174 = getelementptr inbounds i32, i32* %173, i64 14
%175 = load i32, i32* %174
%176 = call i32 @_mm_aesenclast_si128(i32 %172, i32 %175)
store i32 %176, i32* %16
%177 = load i32, i32* %17
%178 = load i32*, i32** %6
%179 = getelementptr inbounds i32, i32* %178, i64 14
%180 = load i32, i32* %179
%181 = call i32 @_mm_aesenclast_si128(i32 %177, i32 %180)
store i32 %181, i32* %17
%182 = load i32, i32* %18
%183 = load i32*, i32** %6
%184 = getelementptr inbounds i32, i32* %183, i64 14
%185 = load i32, i32* %184
%186 = call i32 @_mm_aesenclast_si128(i32 %182, i32 %185)
store i32 %186, i32* %18
%187 = load i32, i32* %19
%188 = load i32*, i32** %6
%189 = getelementptr inbounds i32, i32* %188, i64 14
%190 = load i32, i32* %189
%191 = call i32 @_mm_aesenclast_si128(i32 %187, i32 %190)
store i32 %191, i32* %19
%192 = load i32, i32* %20
%193 = load i32*, i32** %6
%194 = getelementptr inbounds i32, i32* %193, i64 14
%195 = load i32, i32* %194
%196 = call i32 @_mm_aesenclast_si128(i32 %192, i32 %195)
store i32 %196, i32* %20
%197 = load i32, i32* %21
%198 = load i32*, i32** %6
%199 = getelementptr inbounds i32, i32* %198, i64 14
%200 = load i32, i32* %199
%201 = call i32 @_mm_aesenclast_si128(i32 %197, i32 %200)
store i32 %201, i32* %21
%202 = load i32, i32* %22
%203 = load i32*, i32** %6
%204 = getelementptr inbounds i32, i32* %203, i64 14
%205 = load i32, i32* %204
%206 = call i32 @_mm_aesenclast_si128(i32 %202, i32 %205)
store i32 %206, i32* %22
%207 = load i8*, i8** %4
%208 = getelementptr inbounds i8, i8* %207, i64 0
%209 = bitcast i8* %208 to i32*
%210 = load i32, i32* %16
%211 = call i32 @_mm_store_si128(i32* %209, i32 %210)
%212 = load i8*, i8** %4
%213 = getelementptr inbounds i8, i8* %212, i64 16
%214 = bitcast i8* %213 to i32*
%215 = load i32, i32* %17
%216 = call i32 @_mm_store_si128(i32* %214, i32 %215)
%217 = load i8*, i8** %4
%218 = getelementptr inbounds i8, i8* %217, i64 32
%219 = bitcast i8* %218 to i32*
%220 = load i32, i32* %18
%221 = call i32 @_mm_store_si128(i32* %219, i32 %220)
%222 = load i8*, i8** %4
%223 = getelementptr inbounds i8, i8* %222, i64 48
%224 = bitcast i8* %223 to i32*
%225 = load i32, i32* %19
%226 = call i32 @_mm_store_si128(i32* %224, i32 %225)
%227 = load i8*, i8** %4
%228 = getelementptr inbounds i8, i8* %227, i64 64
%229 = bitcast i8* %228 to i32*
%230 = load i32, i32* %20
%231 = call i32 @_mm_store_si128(i32* %229, i32 %230)
%232 = load i8*, i8** %4
%233 = getelementptr inbounds i8, i8* %232, i64 80
%234 = bitcast i8* %233 to i32*
%235 = load i32, i32* %21
%236 = call i32 @_mm_store_si128(i32* %234, i32 %235)
%237 = load i8*, i8** %4
%238 = getelementptr inbounds i8, i8* %237, i64 96
%239 = bitcast i8* %238 to i32*
%240 = load i32, i32* %22
%241 = call i32 @_mm_store_si128(i32* %239, i32 %240)
ret void
}

LLVM IR (-O2):
define void @aesni_encrypt7(i8* %0, i32* %1, i32* nocapture %2) {
%4 = tail call i32 @_mm_set_epi8(i32 12, i32 13, i32 14, i32 15, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0)
%5 = tail call i32 @_mm_load_si128(i32* %1)
%6 = tail call i32 @_mm_shuffle_epi8(i32 %5, i32 %4)
%7 = getelementptr inbounds i32, i32* %1, i64 3
%8 = load i32, i32* %7
%9 = add i32 %8, 1
store i32 %9, i32* %7
%10 = tail call i32 @_mm_load_si128(i32* %1)
%11 = tail call i32 @_mm_shuffle_epi8(i32 %10, i32 %4)
%12 = load i32, i32* %7
%13 = add i32 %12, 1
store i32 %13, i32* %7
%14 = tail call i32 @_mm_load_si128(i32* %1)
%15 = tail call i32 @_mm_shuffle_epi8(i32 %14, i32 %4)
%16 = load i32, i32* %7
%17 = add i32 %16, 1
store i32 %17, i32* %7
%18 = tail call i32 @_mm_load_si128(i32* %1)
%19 = tail call i32 @_mm_shuffle_epi8(i32 %18, i32 %4)
%20 = load i32, i32* %7
%21 = add i32 %20, 1
store i32 %21, i32* %7
%22 = tail call i32 @_mm_load_si128(i32* %1)
%23 = tail call i32 @_mm_shuffle_epi8(i32 %22, i32 %4)
%24 = load i32, i32* %7
%25 = add i32 %24, 1
store i32 %25, i32* %7
%26 = tail call i32 @_mm_load_si128(i32* %1)
%27 = tail call i32 @_mm_shuffle_epi8(i32 %26, i32 %4)
%28 = load i32, i32* %7
%29 = add i32 %28, 1
store i32 %29, i32* %7
%30 = tail call i32 @_mm_load_si128(i32* %1)
%31 = tail call i32 @_mm_shuffle_epi8(i32 %30, i32 %4)
%32 = load i32, i32* %7
%33 = add i32 %32, 1
store i32 %33, i32* %7
%34 = load i32, i32* %2
%35 = tail call i32 @_mm_xor_si128(i32 %6, i32 %34)
%36 = load i32, i32* %2
%37 = tail call i32 @_mm_xor_si128(i32 %11, i32 %36)
%38 = load i32, i32* %2
%39 = tail call i32 @_mm_xor_si128(i32 %15, i32 %38)
%40 = load i32, i32* %2
%41 = tail call i32 @_mm_xor_si128(i32 %19, i32 %40)
%42 = load i32, i32* %2
%43 = tail call i32 @_mm_xor_si128(i32 %23, i32 %42)
%44 = load i32, i32* %2
%45 = tail call i32 @_mm_xor_si128(i32 %27, i32 %44)
%46 = load i32, i32* %2
%47 = tail call i32 @_mm_xor_si128(i32 %31, i32 %46)
br label %48
48: ; preds = %3, %48
%49 = phi i64 [ 1, %3 ], [ %72, %48 ]
%50 = phi i32 [ %47, %3 ], [ %71, %48 ]
%51 = phi i32 [ %45, %3 ], [ %69, %48 ]
%52 = phi i32 [ %43, %3 ], [ %67, %48 ]
%53 = phi i32 [ %41, %3 ], [ %65, %48 ]
%54 = phi i32 [ %39, %3 ], [ %63, %48 ]
%55 = phi i32 [ %37, %3 ], [ %61, %48 ]
%56 = phi i32 [ %35, %3 ], [ %59, %48 ]
%57 = getelementptr inbounds i32, i32* %2, i64 %49
%58 = load i32, i32* %57
%59 = tail call i32 @_mm_aesenc_si128(i32 %56, i32 %58)
%60 = load i32, i32* %57
%61 = tail call i32 @_mm_aesenc_si128(i32 %55, i32 %60)
%62 = load i32, i32* %57
%63 = tail call i32 @_mm_aesenc_si128(i32 %54, i32 %62)
%64 = load i32, i32* %57
%65 = tail call i32 @_mm_aesenc_si128(i32 %53, i32 %64)
%66 = load i32, i32* %57
%67 = tail call i32 @_mm_aesenc_si128(i32 %52, i32 %66)
%68 = load i32, i32* %57
%69 = tail call i32 @_mm_aesenc_si128(i32 %51, i32 %68)
%70 = load i32, i32* %57
%71 = tail call i32 @_mm_aesenc_si128(i32 %50, i32 %70)
%72 = add nuw nsw i64 %49, 1
%73 = icmp eq i64 %72, 14
br i1 %73, label %74, label %48
74: ; preds = %48
%75 = getelementptr inbounds i32, i32* %2, i64 14
%76 = load i32, i32* %75
%77 = tail call i32 @_mm_aesenclast_si128(i32 %59, i32 %76)
%78 = load i32, i32* %75
%79 = tail call i32 @_mm_aesenclast_si128(i32 %61, i32 %78)
%80 = load i32, i32* %75
%81 = tail call i32 @_mm_aesenclast_si128(i32 %63, i32 %80)
%82 = load i32, i32* %75
%83 = tail call i32 @_mm_aesenclast_si128(i32 %65, i32 %82)
%84 = load i32, i32* %75
%85 = tail call i32 @_mm_aesenclast_si128(i32 %67, i32 %84)
%86 = load i32, i32* %75
%87 = tail call i32 @_mm_aesenclast_si128(i32 %69, i32 %86)
%88 = load i32, i32* %75
%89 = tail call i32 @_mm_aesenclast_si128(i32 %71, i32 %88)
%90 = bitcast i8* %0 to i32*
%91 = tail call i32 @_mm_store_si128(i32* %90, i32 %77)
%92 = getelementptr inbounds i8, i8* %0, i64 16
%93 = bitcast i8* %92 to i32*
%94 = tail call i32 @_mm_store_si128(i32* %93, i32 %79)
%95 = getelementptr inbounds i8, i8* %0, i64 32
%96 = bitcast i8* %95 to i32*
%97 = tail call i32 @_mm_store_si128(i32* %96, i32 %81)
%98 = getelementptr inbounds i8, i8* %0, i64 48
%99 = bitcast i8* %98 to i32*
%100 = tail call i32 @_mm_store_si128(i32* %99, i32 %83)
%101 = getelementptr inbounds i8, i8* %0, i64 64
%102 = bitcast i8* %101 to i32*
%103 = tail call i32 @_mm_store_si128(i32* %102, i32 %85)
%104 = getelementptr inbounds i8, i8* %0, i64 80
%105 = bitcast i8* %104 to i32*
%106 = tail call i32 @_mm_store_si128(i32* %105, i32 %87)
%107 = getelementptr inbounds i8, i8* %0, i64 96
%108 = bitcast i8* %107 to i32*
%109 = tail call i32 @_mm_store_si128(i32* %108, i32 %89)
ret void
}