#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_encrypt12(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]++;
  __m128i nv7 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  __m128i nv8 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  __m128i nv9 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  __m128i nv10 = _mm_shuffle_epi8(_mm_load_si128((const __m128i *)n), pt);
  n[3]++;
  __m128i nv11 = _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]);
  __m128i temp7 = _mm_xor_si128(nv7, rkeys[0]);
  __m128i temp8 = _mm_xor_si128(nv8, rkeys[0]);
  __m128i temp9 = _mm_xor_si128(nv9, rkeys[0]);
  __m128i temp10 = _mm_xor_si128(nv10, rkeys[0]);
  __m128i temp11 = _mm_xor_si128(nv11, 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]);
    temp7 = _mm_aesenc_si128(temp7, rkeys[i]);
    temp8 = _mm_aesenc_si128(temp8, rkeys[i]);
    temp9 = _mm_aesenc_si128(temp9, rkeys[i]);
    temp10 = _mm_aesenc_si128(temp10, rkeys[i]);
    temp11 = _mm_aesenc_si128(temp11, 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]);
  temp7 = _mm_aesenclast_si128(temp7, rkeys[14]);
  temp8 = _mm_aesenclast_si128(temp8, rkeys[14]);
  temp9 = _mm_aesenclast_si128(temp9, rkeys[14]);
  temp10 = _mm_aesenclast_si128(temp10, rkeys[14]);
  temp11 = _mm_aesenclast_si128(temp11, 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);
  _mm_store_si128((__m128i *)(out + (7 * 16)), temp7);
  _mm_store_si128((__m128i *)(out + (8 * 16)), temp8);
  _mm_store_si128((__m128i *)(out + (9 * 16)), temp9);
  _mm_store_si128((__m128i *)(out + (10 * 16)), temp10);
  _mm_store_si128((__m128i *)(out + (11 * 16)), temp11);
}


x86 assembly (clang, -O0):
<aesni_encrypt12>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%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    -0x10(%rbp),%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,-0x3c(%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,-0x40(%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,-0x44(%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,-0x48(%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,-0x4c(%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,-0x54(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x58(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x60(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x64(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x68(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x70(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x74(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x78(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x80(%rbp)
movl   $0x1,-0x50(%rbp)
cmpl   $0xe,-0x50(%rbp)
jge    1597 <aesni_encrypt12+0x427>
mov    -0x54(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%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 -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x58(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x60(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x60(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x64(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x70(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x70(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x74(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x78(%rbp)
mov    -0x7c(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x80(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x80(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1477 <aesni_encrypt12+0x307>
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    -0x5c(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x60(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x60(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x64(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x70(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x70(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x74(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x78(%rbp)
mov    -0x7c(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x80(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%esi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,-0x80(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x54(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x10,%rdi
mov    -0x58(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x20,%rdi
mov    -0x5c(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x30,%rdi
mov    -0x60(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x40,%rdi
mov    -0x64(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x50,%rdi
mov    -0x68(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x60,%rdi
mov    -0x6c(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x70,%rdi
mov    -0x70(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x80,%rdi
mov    -0x74(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x90,%rdi
mov    -0x78(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0xa0,%rdi
mov    -0x7c(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0xb0,%rdi
mov    -0x80(%rbp),%esi
call   1070 <_mm_store_si128@plt>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aesni_encrypt12>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdx,%rbx
mov    %rsi,%rbp
mov    %rdi,0x30(%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,%r14d
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x20(%rsp)
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x1c(%rsp)
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x18(%rsp)
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x14(%rsp)
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x10(%rsp)
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0xc(%rsp)
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x8(%rsp)
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,%r13d
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x2c(%rsp)
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,0x28(%rsp)
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,%r15d
addl   $0x1,0xc(%rbp)
mov    %rbp,%rdi
call   1030 <_mm_load_si128@plt>
mov    %eax,%edi
mov    %r14d,%esi
call   1050 <_mm_shuffle_epi8@plt>
mov    %eax,%r12d
addl   $0x1,0xc(%rbp)
mov    (%rbx),%esi
mov    0x20(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0x20(%rsp)
mov    (%rbx),%esi
mov    0x1c(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0x1c(%rsp)
mov    (%rbx),%esi
mov    0x18(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0x18(%rsp)
mov    (%rbx),%esi
mov    0x14(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0x14(%rsp)
mov    (%rbx),%esi
mov    0x10(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0x10(%rsp)
mov    (%rbx),%esi
mov    0xc(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0xc(%rsp)
mov    (%rbx),%esi
mov    0x8(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0x8(%rsp)
mov    (%rbx),%esi
mov    %r13d,%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,0x24(%rsp)
mov    (%rbx),%esi
mov    0x2c(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,%ebp
mov    (%rbx),%esi
mov    0x28(%rsp),%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,%r14d
mov    (%rbx),%esi
mov    %r15d,%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,%r15d
mov    (%rbx),%esi
mov    %r12d,%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,%r12d
mov    $0x1,%r13d
mov    (%rbx,%r13,4),%esi
mov    0x20(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x20(%rsp)
mov    (%rbx,%r13,4),%esi
mov    0x1c(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x1c(%rsp)
mov    (%rbx,%r13,4),%esi
mov    0x18(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x18(%rsp)
mov    (%rbx,%r13,4),%esi
mov    0x14(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x14(%rsp)
mov    (%rbx,%r13,4),%esi
mov    0x10(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x10(%rsp)
mov    (%rbx,%r13,4),%esi
mov    0xc(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0xc(%rsp)
mov    (%rbx,%r13,4),%esi
mov    0x8(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x8(%rsp)
mov    (%rbx,%r13,4),%esi
mov    0x24(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x24(%rsp)
mov    (%rbx,%r13,4),%esi
mov    %ebp,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%ebp
mov    (%rbx,%r13,4),%esi
mov    %r14d,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%r14d
mov    (%rbx,%r13,4),%esi
mov    %r15d,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%r15d
mov    (%rbx,%r13,4),%esi
mov    %r12d,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%r12d
add    $0x1,%r13
cmp    $0xe,%r13
jne    13b0 <aesni_encrypt12+0x240>
mov    0x38(%rbx),%esi
mov    0x20(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0x20(%rsp)
mov    0x38(%rbx),%esi
mov    0x1c(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0x1c(%rsp)
mov    0x38(%rbx),%esi
mov    0x18(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0x18(%rsp)
mov    0x38(%rbx),%esi
mov    0x14(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0x14(%rsp)
mov    0x38(%rbx),%esi
mov    0x10(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0x10(%rsp)
mov    0x38(%rbx),%esi
mov    0xc(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0xc(%rsp)
mov    0x38(%rbx),%esi
mov    0x8(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0x8(%rsp)
mov    0x38(%rbx),%esi
mov    0x24(%rsp),%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,0x24(%rsp)
mov    0x38(%rbx),%esi
mov    %ebp,%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,%r13d
mov    0x38(%rbx),%esi
mov    %r14d,%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,%r14d
mov    0x38(%rbx),%esi
mov    %r15d,%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,%r15d
mov    0x38(%rbx),%esi
mov    %r12d,%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,%ebx
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
mov    0x20(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x10(%rbp),%rdi
mov    0x1c(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x20(%rbp),%rdi
mov    0x18(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x30(%rbp),%rdi
mov    0x14(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x40(%rbp),%rdi
mov    0x10(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x50(%rbp),%rdi
mov    0xc(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x60(%rbp),%rdi
mov    0x8(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x70(%rbp),%rdi
mov    0x24(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x80(%rbp),%rdi
mov    %r13d,%esi
call   1070 <_mm_store_si128@plt>
lea    0x90(%rbp),%rdi
mov    %r14d,%esi
call   1070 <_mm_store_si128@plt>
lea    0xa0(%rbp),%rdi
mov    %r15d,%esi
call   1070 <_mm_store_si128@plt>
add    $0xb0,%rbp
mov    %rbp,%rdi
mov    %ebx,%esi
add    $0x38,%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_encrypt12(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
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
store i8* %0, i8** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%33 = 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 %33, i32* %7
%34 = load i32*, i32** %5
%35 = call i32 @_mm_load_si128(i32* %34)
%36 = load i32, i32* %7
%37 = call i32 @_mm_shuffle_epi8(i32 %35, i32 %36)
store i32 %37, i32* %8
%38 = load i32*, i32** %5
%39 = getelementptr inbounds i32, i32* %38, i64 3
%40 = load i32, i32* %39
%41 = add i32 %40, 1
store i32 %41, i32* %39
%42 = load i32*, i32** %5
%43 = call i32 @_mm_load_si128(i32* %42)
%44 = load i32, i32* %7
%45 = call i32 @_mm_shuffle_epi8(i32 %43, i32 %44)
store i32 %45, i32* %9
%46 = load i32*, i32** %5
%47 = getelementptr inbounds i32, i32* %46, i64 3
%48 = load i32, i32* %47
%49 = add i32 %48, 1
store i32 %49, i32* %47
%50 = load i32*, i32** %5
%51 = call i32 @_mm_load_si128(i32* %50)
%52 = load i32, i32* %7
%53 = call i32 @_mm_shuffle_epi8(i32 %51, i32 %52)
store i32 %53, i32* %10
%54 = load i32*, i32** %5
%55 = getelementptr inbounds i32, i32* %54, i64 3
%56 = load i32, i32* %55
%57 = add i32 %56, 1
store i32 %57, i32* %55
%58 = load i32*, i32** %5
%59 = call i32 @_mm_load_si128(i32* %58)
%60 = load i32, i32* %7
%61 = call i32 @_mm_shuffle_epi8(i32 %59, i32 %60)
store i32 %61, i32* %11
%62 = load i32*, i32** %5
%63 = getelementptr inbounds i32, i32* %62, i64 3
%64 = load i32, i32* %63
%65 = add i32 %64, 1
store i32 %65, i32* %63
%66 = load i32*, i32** %5
%67 = call i32 @_mm_load_si128(i32* %66)
%68 = load i32, i32* %7
%69 = call i32 @_mm_shuffle_epi8(i32 %67, i32 %68)
store i32 %69, i32* %12
%70 = load i32*, i32** %5
%71 = getelementptr inbounds i32, i32* %70, i64 3
%72 = load i32, i32* %71
%73 = add i32 %72, 1
store i32 %73, i32* %71
%74 = load i32*, i32** %5
%75 = call i32 @_mm_load_si128(i32* %74)
%76 = load i32, i32* %7
%77 = call i32 @_mm_shuffle_epi8(i32 %75, i32 %76)
store i32 %77, i32* %13
%78 = load i32*, i32** %5
%79 = getelementptr inbounds i32, i32* %78, i64 3
%80 = load i32, i32* %79
%81 = add i32 %80, 1
store i32 %81, i32* %79
%82 = load i32*, i32** %5
%83 = call i32 @_mm_load_si128(i32* %82)
%84 = load i32, i32* %7
%85 = call i32 @_mm_shuffle_epi8(i32 %83, i32 %84)
store i32 %85, i32* %14
%86 = load i32*, i32** %5
%87 = getelementptr inbounds i32, i32* %86, i64 3
%88 = load i32, i32* %87
%89 = add i32 %88, 1
store i32 %89, i32* %87
%90 = load i32*, i32** %5
%91 = call i32 @_mm_load_si128(i32* %90)
%92 = load i32, i32* %7
%93 = call i32 @_mm_shuffle_epi8(i32 %91, i32 %92)
store i32 %93, i32* %15
%94 = load i32*, i32** %5
%95 = getelementptr inbounds i32, i32* %94, i64 3
%96 = load i32, i32* %95
%97 = add i32 %96, 1
store i32 %97, i32* %95
%98 = load i32*, i32** %5
%99 = call i32 @_mm_load_si128(i32* %98)
%100 = load i32, i32* %7
%101 = call i32 @_mm_shuffle_epi8(i32 %99, i32 %100)
store i32 %101, i32* %16
%102 = load i32*, i32** %5
%103 = getelementptr inbounds i32, i32* %102, i64 3
%104 = load i32, i32* %103
%105 = add i32 %104, 1
store i32 %105, i32* %103
%106 = load i32*, i32** %5
%107 = call i32 @_mm_load_si128(i32* %106)
%108 = load i32, i32* %7
%109 = call i32 @_mm_shuffle_epi8(i32 %107, i32 %108)
store i32 %109, i32* %17
%110 = load i32*, i32** %5
%111 = getelementptr inbounds i32, i32* %110, i64 3
%112 = load i32, i32* %111
%113 = add i32 %112, 1
store i32 %113, i32* %111
%114 = load i32*, i32** %5
%115 = call i32 @_mm_load_si128(i32* %114)
%116 = load i32, i32* %7
%117 = call i32 @_mm_shuffle_epi8(i32 %115, i32 %116)
store i32 %117, i32* %18
%118 = load i32*, i32** %5
%119 = getelementptr inbounds i32, i32* %118, i64 3
%120 = load i32, i32* %119
%121 = add i32 %120, 1
store i32 %121, i32* %119
%122 = load i32*, i32** %5
%123 = call i32 @_mm_load_si128(i32* %122)
%124 = load i32, i32* %7
%125 = call i32 @_mm_shuffle_epi8(i32 %123, i32 %124)
store i32 %125, i32* %19
%126 = load i32*, i32** %5
%127 = getelementptr inbounds i32, i32* %126, i64 3
%128 = load i32, i32* %127
%129 = add i32 %128, 1
store i32 %129, i32* %127
%130 = load i32, i32* %8
%131 = load i32*, i32** %6
%132 = getelementptr inbounds i32, i32* %131, i64 0
%133 = load i32, i32* %132
%134 = call i32 @_mm_xor_si128(i32 %130, i32 %133)
store i32 %134, i32* %21
%135 = load i32, i32* %9
%136 = load i32*, i32** %6
%137 = getelementptr inbounds i32, i32* %136, i64 0
%138 = load i32, i32* %137
%139 = call i32 @_mm_xor_si128(i32 %135, i32 %138)
store i32 %139, i32* %22
%140 = load i32, i32* %10
%141 = load i32*, i32** %6
%142 = getelementptr inbounds i32, i32* %141, i64 0
%143 = load i32, i32* %142
%144 = call i32 @_mm_xor_si128(i32 %140, i32 %143)
store i32 %144, i32* %23
%145 = load i32, i32* %11
%146 = load i32*, i32** %6
%147 = getelementptr inbounds i32, i32* %146, i64 0
%148 = load i32, i32* %147
%149 = call i32 @_mm_xor_si128(i32 %145, i32 %148)
store i32 %149, i32* %24
%150 = load i32, i32* %12
%151 = load i32*, i32** %6
%152 = getelementptr inbounds i32, i32* %151, i64 0
%153 = load i32, i32* %152
%154 = call i32 @_mm_xor_si128(i32 %150, i32 %153)
store i32 %154, i32* %25
%155 = load i32, i32* %13
%156 = load i32*, i32** %6
%157 = getelementptr inbounds i32, i32* %156, i64 0
%158 = load i32, i32* %157
%159 = call i32 @_mm_xor_si128(i32 %155, i32 %158)
store i32 %159, i32* %26
%160 = load i32, i32* %14
%161 = load i32*, i32** %6
%162 = getelementptr inbounds i32, i32* %161, i64 0
%163 = load i32, i32* %162
%164 = call i32 @_mm_xor_si128(i32 %160, i32 %163)
store i32 %164, i32* %27
%165 = load i32, i32* %15
%166 = load i32*, i32** %6
%167 = getelementptr inbounds i32, i32* %166, i64 0
%168 = load i32, i32* %167
%169 = call i32 @_mm_xor_si128(i32 %165, i32 %168)
store i32 %169, i32* %28
%170 = load i32, i32* %16
%171 = load i32*, i32** %6
%172 = getelementptr inbounds i32, i32* %171, i64 0
%173 = load i32, i32* %172
%174 = call i32 @_mm_xor_si128(i32 %170, i32 %173)
store i32 %174, i32* %29
%175 = load i32, i32* %17
%176 = load i32*, i32** %6
%177 = getelementptr inbounds i32, i32* %176, i64 0
%178 = load i32, i32* %177
%179 = call i32 @_mm_xor_si128(i32 %175, i32 %178)
store i32 %179, i32* %30
%180 = load i32, i32* %18
%181 = load i32*, i32** %6
%182 = getelementptr inbounds i32, i32* %181, i64 0
%183 = load i32, i32* %182
%184 = call i32 @_mm_xor_si128(i32 %180, i32 %183)
store i32 %184, i32* %31
%185 = load i32, i32* %19
%186 = load i32*, i32** %6
%187 = getelementptr inbounds i32, i32* %186, i64 0
%188 = load i32, i32* %187
%189 = call i32 @_mm_xor_si128(i32 %185, i32 %188)
store i32 %189, i32* %32
store i32 1, i32* %20
br label %190
190: ; preds = %278, %3
%191 = load i32, i32* %20
%192 = icmp slt i32 %191, 14
br i1 %192, label %193, label %281
193: ; preds = %190
%194 = load i32, i32* %21
%195 = load i32*, i32** %6
%196 = load i32, i32* %20
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i32, i32* %195, i64 %197
%199 = load i32, i32* %198
%200 = call i32 @_mm_aesenc_si128(i32 %194, i32 %199)
store i32 %200, i32* %21
%201 = load i32, i32* %22
%202 = load i32*, i32** %6
%203 = load i32, i32* %20
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds i32, i32* %202, i64 %204
%206 = load i32, i32* %205
%207 = call i32 @_mm_aesenc_si128(i32 %201, i32 %206)
store i32 %207, i32* %22
%208 = load i32, i32* %23
%209 = load i32*, i32** %6
%210 = load i32, i32* %20
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds i32, i32* %209, i64 %211
%213 = load i32, i32* %212
%214 = call i32 @_mm_aesenc_si128(i32 %208, i32 %213)
store i32 %214, i32* %23
%215 = load i32, i32* %24
%216 = load i32*, i32** %6
%217 = load i32, i32* %20
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds i32, i32* %216, i64 %218
%220 = load i32, i32* %219
%221 = call i32 @_mm_aesenc_si128(i32 %215, i32 %220)
store i32 %221, i32* %24
%222 = load i32, i32* %25
%223 = load i32*, i32** %6
%224 = load i32, i32* %20
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds i32, i32* %223, i64 %225
%227 = load i32, i32* %226
%228 = call i32 @_mm_aesenc_si128(i32 %222, i32 %227)
store i32 %228, i32* %25
%229 = load i32, i32* %26
%230 = load i32*, i32** %6
%231 = load i32, i32* %20
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds i32, i32* %230, i64 %232
%234 = load i32, i32* %233
%235 = call i32 @_mm_aesenc_si128(i32 %229, i32 %234)
store i32 %235, i32* %26
%236 = load i32, i32* %27
%237 = load i32*, i32** %6
%238 = load i32, i32* %20
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds i32, i32* %237, i64 %239
%241 = load i32, i32* %240
%242 = call i32 @_mm_aesenc_si128(i32 %236, i32 %241)
store i32 %242, i32* %27
%243 = load i32, i32* %28
%244 = load i32*, i32** %6
%245 = load i32, i32* %20
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds i32, i32* %244, i64 %246
%248 = load i32, i32* %247
%249 = call i32 @_mm_aesenc_si128(i32 %243, i32 %248)
store i32 %249, i32* %28
%250 = load i32, i32* %29
%251 = load i32*, i32** %6
%252 = load i32, i32* %20
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds i32, i32* %251, i64 %253
%255 = load i32, i32* %254
%256 = call i32 @_mm_aesenc_si128(i32 %250, i32 %255)
store i32 %256, i32* %29
%257 = load i32, i32* %30
%258 = load i32*, i32** %6
%259 = load i32, i32* %20
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds i32, i32* %258, i64 %260
%262 = load i32, i32* %261
%263 = call i32 @_mm_aesenc_si128(i32 %257, i32 %262)
store i32 %263, i32* %30
%264 = load i32, i32* %31
%265 = load i32*, i32** %6
%266 = load i32, i32* %20
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds i32, i32* %265, i64 %267
%269 = load i32, i32* %268
%270 = call i32 @_mm_aesenc_si128(i32 %264, i32 %269)
store i32 %270, i32* %31
%271 = load i32, i32* %32
%272 = load i32*, i32** %6
%273 = load i32, i32* %20
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds i32, i32* %272, i64 %274
%276 = load i32, i32* %275
%277 = call i32 @_mm_aesenc_si128(i32 %271, i32 %276)
store i32 %277, i32* %32
br label %278
278: ; preds = %193
%279 = load i32, i32* %20
%280 = add nsw i32 %279, 1
store i32 %280, i32* %20
br label %190
281: ; preds = %190
%282 = load i32, i32* %21
%283 = load i32*, i32** %6
%284 = getelementptr inbounds i32, i32* %283, i64 14
%285 = load i32, i32* %284
%286 = call i32 @_mm_aesenclast_si128(i32 %282, i32 %285)
store i32 %286, i32* %21
%287 = load i32, i32* %22
%288 = load i32*, i32** %6
%289 = getelementptr inbounds i32, i32* %288, i64 14
%290 = load i32, i32* %289
%291 = call i32 @_mm_aesenclast_si128(i32 %287, i32 %290)
store i32 %291, i32* %22
%292 = load i32, i32* %23
%293 = load i32*, i32** %6
%294 = getelementptr inbounds i32, i32* %293, i64 14
%295 = load i32, i32* %294
%296 = call i32 @_mm_aesenclast_si128(i32 %292, i32 %295)
store i32 %296, i32* %23
%297 = load i32, i32* %24
%298 = load i32*, i32** %6
%299 = getelementptr inbounds i32, i32* %298, i64 14
%300 = load i32, i32* %299
%301 = call i32 @_mm_aesenclast_si128(i32 %297, i32 %300)
store i32 %301, i32* %24
%302 = load i32, i32* %25
%303 = load i32*, i32** %6
%304 = getelementptr inbounds i32, i32* %303, i64 14
%305 = load i32, i32* %304
%306 = call i32 @_mm_aesenclast_si128(i32 %302, i32 %305)
store i32 %306, i32* %25
%307 = load i32, i32* %26
%308 = load i32*, i32** %6
%309 = getelementptr inbounds i32, i32* %308, i64 14
%310 = load i32, i32* %309
%311 = call i32 @_mm_aesenclast_si128(i32 %307, i32 %310)
store i32 %311, i32* %26
%312 = load i32, i32* %27
%313 = load i32*, i32** %6
%314 = getelementptr inbounds i32, i32* %313, i64 14
%315 = load i32, i32* %314
%316 = call i32 @_mm_aesenclast_si128(i32 %312, i32 %315)
store i32 %316, i32* %27
%317 = load i32, i32* %28
%318 = load i32*, i32** %6
%319 = getelementptr inbounds i32, i32* %318, i64 14
%320 = load i32, i32* %319
%321 = call i32 @_mm_aesenclast_si128(i32 %317, i32 %320)
store i32 %321, i32* %28
%322 = load i32, i32* %29
%323 = load i32*, i32** %6
%324 = getelementptr inbounds i32, i32* %323, i64 14
%325 = load i32, i32* %324
%326 = call i32 @_mm_aesenclast_si128(i32 %322, i32 %325)
store i32 %326, i32* %29
%327 = load i32, i32* %30
%328 = load i32*, i32** %6
%329 = getelementptr inbounds i32, i32* %328, i64 14
%330 = load i32, i32* %329
%331 = call i32 @_mm_aesenclast_si128(i32 %327, i32 %330)
store i32 %331, i32* %30
%332 = load i32, i32* %31
%333 = load i32*, i32** %6
%334 = getelementptr inbounds i32, i32* %333, i64 14
%335 = load i32, i32* %334
%336 = call i32 @_mm_aesenclast_si128(i32 %332, i32 %335)
store i32 %336, i32* %31
%337 = load i32, i32* %32
%338 = load i32*, i32** %6
%339 = getelementptr inbounds i32, i32* %338, i64 14
%340 = load i32, i32* %339
%341 = call i32 @_mm_aesenclast_si128(i32 %337, i32 %340)
store i32 %341, i32* %32
%342 = load i8*, i8** %4
%343 = getelementptr inbounds i8, i8* %342, i64 0
%344 = bitcast i8* %343 to i32*
%345 = load i32, i32* %21
%346 = call i32 @_mm_store_si128(i32* %344, i32 %345)
%347 = load i8*, i8** %4
%348 = getelementptr inbounds i8, i8* %347, i64 16
%349 = bitcast i8* %348 to i32*
%350 = load i32, i32* %22
%351 = call i32 @_mm_store_si128(i32* %349, i32 %350)
%352 = load i8*, i8** %4
%353 = getelementptr inbounds i8, i8* %352, i64 32
%354 = bitcast i8* %353 to i32*
%355 = load i32, i32* %23
%356 = call i32 @_mm_store_si128(i32* %354, i32 %355)
%357 = load i8*, i8** %4
%358 = getelementptr inbounds i8, i8* %357, i64 48
%359 = bitcast i8* %358 to i32*
%360 = load i32, i32* %24
%361 = call i32 @_mm_store_si128(i32* %359, i32 %360)
%362 = load i8*, i8** %4
%363 = getelementptr inbounds i8, i8* %362, i64 64
%364 = bitcast i8* %363 to i32*
%365 = load i32, i32* %25
%366 = call i32 @_mm_store_si128(i32* %364, i32 %365)
%367 = load i8*, i8** %4
%368 = getelementptr inbounds i8, i8* %367, i64 80
%369 = bitcast i8* %368 to i32*
%370 = load i32, i32* %26
%371 = call i32 @_mm_store_si128(i32* %369, i32 %370)
%372 = load i8*, i8** %4
%373 = getelementptr inbounds i8, i8* %372, i64 96
%374 = bitcast i8* %373 to i32*
%375 = load i32, i32* %27
%376 = call i32 @_mm_store_si128(i32* %374, i32 %375)
%377 = load i8*, i8** %4
%378 = getelementptr inbounds i8, i8* %377, i64 112
%379 = bitcast i8* %378 to i32*
%380 = load i32, i32* %28
%381 = call i32 @_mm_store_si128(i32* %379, i32 %380)
%382 = load i8*, i8** %4
%383 = getelementptr inbounds i8, i8* %382, i64 128
%384 = bitcast i8* %383 to i32*
%385 = load i32, i32* %29
%386 = call i32 @_mm_store_si128(i32* %384, i32 %385)
%387 = load i8*, i8** %4
%388 = getelementptr inbounds i8, i8* %387, i64 144
%389 = bitcast i8* %388 to i32*
%390 = load i32, i32* %30
%391 = call i32 @_mm_store_si128(i32* %389, i32 %390)
%392 = load i8*, i8** %4
%393 = getelementptr inbounds i8, i8* %392, i64 160
%394 = bitcast i8* %393 to i32*
%395 = load i32, i32* %31
%396 = call i32 @_mm_store_si128(i32* %394, i32 %395)
%397 = load i8*, i8** %4
%398 = getelementptr inbounds i8, i8* %397, i64 176
%399 = bitcast i8* %398 to i32*
%400 = load i32, i32* %32
%401 = call i32 @_mm_store_si128(i32* %399, i32 %400)
ret void
}

LLVM IR (-O2):
define void @aesni_encrypt12(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 = tail call i32 @_mm_load_si128(i32* %1)
%35 = tail call i32 @_mm_shuffle_epi8(i32 %34, i32 %4)
%36 = load i32, i32* %7
%37 = add i32 %36, 1
store i32 %37, i32* %7
%38 = tail call i32 @_mm_load_si128(i32* %1)
%39 = tail call i32 @_mm_shuffle_epi8(i32 %38, i32 %4)
%40 = load i32, i32* %7
%41 = add i32 %40, 1
store i32 %41, i32* %7
%42 = tail call i32 @_mm_load_si128(i32* %1)
%43 = tail call i32 @_mm_shuffle_epi8(i32 %42, i32 %4)
%44 = load i32, i32* %7
%45 = add i32 %44, 1
store i32 %45, i32* %7
%46 = tail call i32 @_mm_load_si128(i32* %1)
%47 = tail call i32 @_mm_shuffle_epi8(i32 %46, i32 %4)
%48 = load i32, i32* %7
%49 = add i32 %48, 1
store i32 %49, i32* %7
%50 = tail call i32 @_mm_load_si128(i32* %1)
%51 = tail call i32 @_mm_shuffle_epi8(i32 %50, i32 %4)
%52 = load i32, i32* %7
%53 = add i32 %52, 1
store i32 %53, i32* %7
%54 = load i32, i32* %2
%55 = tail call i32 @_mm_xor_si128(i32 %6, i32 %54)
%56 = load i32, i32* %2
%57 = tail call i32 @_mm_xor_si128(i32 %11, i32 %56)
%58 = load i32, i32* %2
%59 = tail call i32 @_mm_xor_si128(i32 %15, i32 %58)
%60 = load i32, i32* %2
%61 = tail call i32 @_mm_xor_si128(i32 %19, i32 %60)
%62 = load i32, i32* %2
%63 = tail call i32 @_mm_xor_si128(i32 %23, i32 %62)
%64 = load i32, i32* %2
%65 = tail call i32 @_mm_xor_si128(i32 %27, i32 %64)
%66 = load i32, i32* %2
%67 = tail call i32 @_mm_xor_si128(i32 %31, i32 %66)
%68 = load i32, i32* %2
%69 = tail call i32 @_mm_xor_si128(i32 %35, i32 %68)
%70 = load i32, i32* %2
%71 = tail call i32 @_mm_xor_si128(i32 %39, i32 %70)
%72 = load i32, i32* %2
%73 = tail call i32 @_mm_xor_si128(i32 %43, i32 %72)
%74 = load i32, i32* %2
%75 = tail call i32 @_mm_xor_si128(i32 %47, i32 %74)
%76 = load i32, i32* %2
%77 = tail call i32 @_mm_xor_si128(i32 %51, i32 %76)
br label %78
78: ; preds = %3, %78
%79 = phi i64 [ 1, %3 ], [ %117, %78 ]
%80 = phi i32 [ %77, %3 ], [ %116, %78 ]
%81 = phi i32 [ %75, %3 ], [ %114, %78 ]
%82 = phi i32 [ %73, %3 ], [ %112, %78 ]
%83 = phi i32 [ %71, %3 ], [ %110, %78 ]
%84 = phi i32 [ %69, %3 ], [ %108, %78 ]
%85 = phi i32 [ %67, %3 ], [ %106, %78 ]
%86 = phi i32 [ %65, %3 ], [ %104, %78 ]
%87 = phi i32 [ %63, %3 ], [ %102, %78 ]
%88 = phi i32 [ %61, %3 ], [ %100, %78 ]
%89 = phi i32 [ %59, %3 ], [ %98, %78 ]
%90 = phi i32 [ %57, %3 ], [ %96, %78 ]
%91 = phi i32 [ %55, %3 ], [ %94, %78 ]
%92 = getelementptr inbounds i32, i32* %2, i64 %79
%93 = load i32, i32* %92
%94 = tail call i32 @_mm_aesenc_si128(i32 %91, i32 %93)
%95 = load i32, i32* %92
%96 = tail call i32 @_mm_aesenc_si128(i32 %90, i32 %95)
%97 = load i32, i32* %92
%98 = tail call i32 @_mm_aesenc_si128(i32 %89, i32 %97)
%99 = load i32, i32* %92
%100 = tail call i32 @_mm_aesenc_si128(i32 %88, i32 %99)
%101 = load i32, i32* %92
%102 = tail call i32 @_mm_aesenc_si128(i32 %87, i32 %101)
%103 = load i32, i32* %92
%104 = tail call i32 @_mm_aesenc_si128(i32 %86, i32 %103)
%105 = load i32, i32* %92
%106 = tail call i32 @_mm_aesenc_si128(i32 %85, i32 %105)
%107 = load i32, i32* %92
%108 = tail call i32 @_mm_aesenc_si128(i32 %84, i32 %107)
%109 = load i32, i32* %92
%110 = tail call i32 @_mm_aesenc_si128(i32 %83, i32 %109)
%111 = load i32, i32* %92
%112 = tail call i32 @_mm_aesenc_si128(i32 %82, i32 %111)
%113 = load i32, i32* %92
%114 = tail call i32 @_mm_aesenc_si128(i32 %81, i32 %113)
%115 = load i32, i32* %92
%116 = tail call i32 @_mm_aesenc_si128(i32 %80, i32 %115)
%117 = add nuw nsw i64 %79, 1
%118 = icmp eq i64 %117, 14
br i1 %118, label %119, label %78
119: ; preds = %78
%120 = getelementptr inbounds i32, i32* %2, i64 14
%121 = load i32, i32* %120
%122 = tail call i32 @_mm_aesenclast_si128(i32 %94, i32 %121)
%123 = load i32, i32* %120
%124 = tail call i32 @_mm_aesenclast_si128(i32 %96, i32 %123)
%125 = load i32, i32* %120
%126 = tail call i32 @_mm_aesenclast_si128(i32 %98, i32 %125)
%127 = load i32, i32* %120
%128 = tail call i32 @_mm_aesenclast_si128(i32 %100, i32 %127)
%129 = load i32, i32* %120
%130 = tail call i32 @_mm_aesenclast_si128(i32 %102, i32 %129)
%131 = load i32, i32* %120
%132 = tail call i32 @_mm_aesenclast_si128(i32 %104, i32 %131)
%133 = load i32, i32* %120
%134 = tail call i32 @_mm_aesenclast_si128(i32 %106, i32 %133)
%135 = load i32, i32* %120
%136 = tail call i32 @_mm_aesenclast_si128(i32 %108, i32 %135)
%137 = load i32, i32* %120
%138 = tail call i32 @_mm_aesenclast_si128(i32 %110, i32 %137)
%139 = load i32, i32* %120
%140 = tail call i32 @_mm_aesenclast_si128(i32 %112, i32 %139)
%141 = load i32, i32* %120
%142 = tail call i32 @_mm_aesenclast_si128(i32 %114, i32 %141)
%143 = load i32, i32* %120
%144 = tail call i32 @_mm_aesenclast_si128(i32 %116, i32 %143)
%145 = bitcast i8* %0 to i32*
%146 = tail call i32 @_mm_store_si128(i32* %145, i32 %122)
%147 = getelementptr inbounds i8, i8* %0, i64 16
%148 = bitcast i8* %147 to i32*
%149 = tail call i32 @_mm_store_si128(i32* %148, i32 %124)
%150 = getelementptr inbounds i8, i8* %0, i64 32
%151 = bitcast i8* %150 to i32*
%152 = tail call i32 @_mm_store_si128(i32* %151, i32 %126)
%153 = getelementptr inbounds i8, i8* %0, i64 48
%154 = bitcast i8* %153 to i32*
%155 = tail call i32 @_mm_store_si128(i32* %154, i32 %128)
%156 = getelementptr inbounds i8, i8* %0, i64 64
%157 = bitcast i8* %156 to i32*
%158 = tail call i32 @_mm_store_si128(i32* %157, i32 %130)
%159 = getelementptr inbounds i8, i8* %0, i64 80
%160 = bitcast i8* %159 to i32*
%161 = tail call i32 @_mm_store_si128(i32* %160, i32 %132)
%162 = getelementptr inbounds i8, i8* %0, i64 96
%163 = bitcast i8* %162 to i32*
%164 = tail call i32 @_mm_store_si128(i32* %163, i32 %134)
%165 = getelementptr inbounds i8, i8* %0, i64 112
%166 = bitcast i8* %165 to i32*
%167 = tail call i32 @_mm_store_si128(i32* %166, i32 %136)
%168 = getelementptr inbounds i8, i8* %0, i64 128
%169 = bitcast i8* %168 to i32*
%170 = tail call i32 @_mm_store_si128(i32* %169, i32 %138)
%171 = getelementptr inbounds i8, i8* %0, i64 144
%172 = bitcast i8* %171 to i32*
%173 = tail call i32 @_mm_store_si128(i32* %172, i32 %140)
%174 = getelementptr inbounds i8, i8* %0, i64 160
%175 = bitcast i8* %174 to i32*
%176 = tail call i32 @_mm_store_si128(i32* %175, i32 %142)
%177 = getelementptr inbounds i8, i8* %0, i64 176
%178 = bitcast i8* %177 to i32*
%179 = tail call i32 @_mm_store_si128(i32* %178, i32 %144)
ret void
}