#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_encrypt8(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]++;
  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]);
  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]);
  }
  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]);
  _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);
}


x86 assembly (clang, -O0):
<aesni_encrypt8>:
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    -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    -0x20(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x44(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x48(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x50(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x54(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x58(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   1090 <_mm_xor_si128@plt>
mov    %eax,-0x60(%rbp)
movl   $0x1,-0x40(%rbp)
cmpl   $0xe,-0x40(%rbp)
jge    146f <aesni_encrypt8+0x2ff>
mov    -0x44(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x40(%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 -0x40(%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 -0x40(%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 -0x40(%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 -0x40(%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 -0x40(%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 -0x40(%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 -0x40(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,-0x60(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    13a7 <aesni_encrypt8+0x237>
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    -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    -0x8(%rbp),%rdi
mov    -0x44(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x10,%rdi
mov    -0x48(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x20,%rdi
mov    -0x4c(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x30,%rdi
mov    -0x50(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x40,%rdi
mov    -0x54(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x50,%rdi
mov    -0x58(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x60,%rdi
mov    -0x5c(%rbp),%esi
call   1070 <_mm_store_si128@plt>
mov    -0x8(%rbp),%rdi
add    $0x70,%rdi
mov    -0x60(%rbp),%esi
call   1070 <_mm_store_si128@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aesni_encrypt8>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%rbx
mov    %rsi,%rbp
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,%r14d
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,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,%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    %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    (%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    0x18(%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    %rbx,0x18(%rsp)
mov    (%rbx),%esi
mov    %r13d,%edi
call   1090 <_mm_xor_si128@plt>
mov    %eax,%r13d
mov    $0x1,%ebx
mov    0x18(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
mov    0x0(%rbp,%rbx,4),%esi
mov    0x14(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x14(%rsp)
mov    0x0(%rbp,%rbx,4),%esi
mov    0x10(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x10(%rsp)
mov    0x0(%rbp,%rbx,4),%esi
mov    0xc(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0xc(%rsp)
mov    0x0(%rbp,%rbx,4),%esi
mov    0x8(%rsp),%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,0x8(%rsp)
mov    0x0(%rbp,%rbx,4),%esi
mov    %r14d,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%r14d
mov    0x0(%rbp,%rbx,4),%esi
mov    %r15d,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%r15d
mov    0x0(%rbp,%rbx,4),%esi
mov    %r12d,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%r12d
mov    0x0(%rbp,%rbx,4),%esi
mov    %r13d,%edi
call   1060 <_mm_aesenc_si128@plt>
mov    %eax,%r13d
add    $0x1,%rbx
cmp    $0xe,%rbx
jne    1320 <aesni_encrypt8+0x1b0>
mov    0x18(%rsp),%rbx
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    %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,%r12d
mov    0x38(%rbx),%esi
mov    %r13d,%edi
call   1040 <_mm_aesenclast_si128@plt>
mov    %eax,%ebx
mov    0x20(%rsp),%rbp
mov    %rbp,%rdi
mov    0x14(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x10(%rbp),%rdi
mov    0x10(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x20(%rbp),%rdi
mov    0xc(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x30(%rbp),%rdi
mov    0x8(%rsp),%esi
call   1070 <_mm_store_si128@plt>
lea    0x40(%rbp),%rdi
mov    %r14d,%esi
call   1070 <_mm_store_si128@plt>
lea    0x50(%rbp),%rdi
mov    %r15d,%esi
call   1070 <_mm_store_si128@plt>
lea    0x60(%rbp),%rdi
mov    %r12d,%esi
call   1070 <_mm_store_si128@plt>
add    $0x70,%rbp
mov    %rbp,%rdi
mov    %ebx,%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_encrypt8(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
store i8* %0, i8** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%25 = 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 %25, i32* %7
%26 = load i32*, i32** %5
%27 = call i32 @_mm_load_si128(i32* %26)
%28 = load i32, i32* %7
%29 = call i32 @_mm_shuffle_epi8(i32 %27, i32 %28)
store i32 %29, i32* %8
%30 = load i32*, i32** %5
%31 = getelementptr inbounds i32, i32* %30, i64 3
%32 = load i32, i32* %31
%33 = add i32 %32, 1
store i32 %33, i32* %31
%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* %9
%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* %10
%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* %11
%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* %12
%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* %13
%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* %14
%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* %15
%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* %8
%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* %17
%95 = load i32, i32* %9
%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* %18
%100 = load i32, i32* %10
%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* %19
%105 = load i32, i32* %11
%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* %20
%110 = load i32, i32* %12
%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* %21
%115 = load i32, i32* %13
%116 = load i32*, i32** %6
%117 = getelementptr inbounds i32, i32* %116, i64 0
%118 = load i32, i32* %117
%119 = call i32 @_mm_xor_si128(i32 %115, i32 %118)
store i32 %119, i32* %22
%120 = load i32, i32* %14
%121 = load i32*, i32** %6
%122 = getelementptr inbounds i32, i32* %121, i64 0
%123 = load i32, i32* %122
%124 = call i32 @_mm_xor_si128(i32 %120, i32 %123)
store i32 %124, i32* %23
%125 = load i32, i32* %15
%126 = load i32*, i32** %6
%127 = getelementptr inbounds i32, i32* %126, i64 0
%128 = load i32, i32* %127
%129 = call i32 @_mm_xor_si128(i32 %125, i32 %128)
store i32 %129, i32* %24
store i32 1, i32* %16
br label %130
130: ; preds = %190, %3
%131 = load i32, i32* %16
%132 = icmp slt i32 %131, 14
br i1 %132, label %133, label %193
133: ; preds = %130
%134 = load i32, i32* %17
%135 = load i32*, i32** %6
%136 = load i32, i32* %16
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i32, i32* %135, i64 %137
%139 = load i32, i32* %138
%140 = call i32 @_mm_aesenc_si128(i32 %134, i32 %139)
store i32 %140, i32* %17
%141 = load i32, i32* %18
%142 = load i32*, i32** %6
%143 = load i32, i32* %16
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i32, i32* %142, i64 %144
%146 = load i32, i32* %145
%147 = call i32 @_mm_aesenc_si128(i32 %141, i32 %146)
store i32 %147, i32* %18
%148 = load i32, i32* %19
%149 = load i32*, i32** %6
%150 = load i32, i32* %16
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i32, i32* %149, i64 %151
%153 = load i32, i32* %152
%154 = call i32 @_mm_aesenc_si128(i32 %148, i32 %153)
store i32 %154, i32* %19
%155 = load i32, i32* %20
%156 = load i32*, i32** %6
%157 = load i32, i32* %16
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i32, i32* %156, i64 %158
%160 = load i32, i32* %159
%161 = call i32 @_mm_aesenc_si128(i32 %155, i32 %160)
store i32 %161, i32* %20
%162 = load i32, i32* %21
%163 = load i32*, i32** %6
%164 = load i32, i32* %16
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds i32, i32* %163, i64 %165
%167 = load i32, i32* %166
%168 = call i32 @_mm_aesenc_si128(i32 %162, i32 %167)
store i32 %168, i32* %21
%169 = load i32, i32* %22
%170 = load i32*, i32** %6
%171 = load i32, i32* %16
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds i32, i32* %170, i64 %172
%174 = load i32, i32* %173
%175 = call i32 @_mm_aesenc_si128(i32 %169, i32 %174)
store i32 %175, i32* %22
%176 = load i32, i32* %23
%177 = load i32*, i32** %6
%178 = load i32, i32* %16
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds i32, i32* %177, i64 %179
%181 = load i32, i32* %180
%182 = call i32 @_mm_aesenc_si128(i32 %176, i32 %181)
store i32 %182, i32* %23
%183 = load i32, i32* %24
%184 = load i32*, i32** %6
%185 = load i32, i32* %16
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds i32, i32* %184, i64 %186
%188 = load i32, i32* %187
%189 = call i32 @_mm_aesenc_si128(i32 %183, i32 %188)
store i32 %189, i32* %24
br label %190
190: ; preds = %133
%191 = load i32, i32* %16
%192 = add nsw i32 %191, 1
store i32 %192, i32* %16
br label %130
193: ; preds = %130
%194 = load i32, i32* %17
%195 = load i32*, i32** %6
%196 = getelementptr inbounds i32, i32* %195, i64 14
%197 = load i32, i32* %196
%198 = call i32 @_mm_aesenclast_si128(i32 %194, i32 %197)
store i32 %198, i32* %17
%199 = load i32, i32* %18
%200 = load i32*, i32** %6
%201 = getelementptr inbounds i32, i32* %200, i64 14
%202 = load i32, i32* %201
%203 = call i32 @_mm_aesenclast_si128(i32 %199, i32 %202)
store i32 %203, i32* %18
%204 = load i32, i32* %19
%205 = load i32*, i32** %6
%206 = getelementptr inbounds i32, i32* %205, i64 14
%207 = load i32, i32* %206
%208 = call i32 @_mm_aesenclast_si128(i32 %204, i32 %207)
store i32 %208, i32* %19
%209 = load i32, i32* %20
%210 = load i32*, i32** %6
%211 = getelementptr inbounds i32, i32* %210, i64 14
%212 = load i32, i32* %211
%213 = call i32 @_mm_aesenclast_si128(i32 %209, i32 %212)
store i32 %213, i32* %20
%214 = load i32, i32* %21
%215 = load i32*, i32** %6
%216 = getelementptr inbounds i32, i32* %215, i64 14
%217 = load i32, i32* %216
%218 = call i32 @_mm_aesenclast_si128(i32 %214, i32 %217)
store i32 %218, i32* %21
%219 = load i32, i32* %22
%220 = load i32*, i32** %6
%221 = getelementptr inbounds i32, i32* %220, i64 14
%222 = load i32, i32* %221
%223 = call i32 @_mm_aesenclast_si128(i32 %219, i32 %222)
store i32 %223, i32* %22
%224 = load i32, i32* %23
%225 = load i32*, i32** %6
%226 = getelementptr inbounds i32, i32* %225, i64 14
%227 = load i32, i32* %226
%228 = call i32 @_mm_aesenclast_si128(i32 %224, i32 %227)
store i32 %228, i32* %23
%229 = load i32, i32* %24
%230 = load i32*, i32** %6
%231 = getelementptr inbounds i32, i32* %230, i64 14
%232 = load i32, i32* %231
%233 = call i32 @_mm_aesenclast_si128(i32 %229, i32 %232)
store i32 %233, i32* %24
%234 = load i8*, i8** %4
%235 = getelementptr inbounds i8, i8* %234, i64 0
%236 = bitcast i8* %235 to i32*
%237 = load i32, i32* %17
%238 = call i32 @_mm_store_si128(i32* %236, i32 %237)
%239 = load i8*, i8** %4
%240 = getelementptr inbounds i8, i8* %239, i64 16
%241 = bitcast i8* %240 to i32*
%242 = load i32, i32* %18
%243 = call i32 @_mm_store_si128(i32* %241, i32 %242)
%244 = load i8*, i8** %4
%245 = getelementptr inbounds i8, i8* %244, i64 32
%246 = bitcast i8* %245 to i32*
%247 = load i32, i32* %19
%248 = call i32 @_mm_store_si128(i32* %246, i32 %247)
%249 = load i8*, i8** %4
%250 = getelementptr inbounds i8, i8* %249, i64 48
%251 = bitcast i8* %250 to i32*
%252 = load i32, i32* %20
%253 = call i32 @_mm_store_si128(i32* %251, i32 %252)
%254 = load i8*, i8** %4
%255 = getelementptr inbounds i8, i8* %254, i64 64
%256 = bitcast i8* %255 to i32*
%257 = load i32, i32* %21
%258 = call i32 @_mm_store_si128(i32* %256, i32 %257)
%259 = load i8*, i8** %4
%260 = getelementptr inbounds i8, i8* %259, i64 80
%261 = bitcast i8* %260 to i32*
%262 = load i32, i32* %22
%263 = call i32 @_mm_store_si128(i32* %261, i32 %262)
%264 = load i8*, i8** %4
%265 = getelementptr inbounds i8, i8* %264, i64 96
%266 = bitcast i8* %265 to i32*
%267 = load i32, i32* %23
%268 = call i32 @_mm_store_si128(i32* %266, i32 %267)
%269 = load i8*, i8** %4
%270 = getelementptr inbounds i8, i8* %269, i64 112
%271 = bitcast i8* %270 to i32*
%272 = load i32, i32* %24
%273 = call i32 @_mm_store_si128(i32* %271, i32 %272)
ret void
}

LLVM IR (-O2):
define void @aesni_encrypt8(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 = load i32, i32* %2
%39 = tail call i32 @_mm_xor_si128(i32 %6, i32 %38)
%40 = load i32, i32* %2
%41 = tail call i32 @_mm_xor_si128(i32 %11, i32 %40)
%42 = load i32, i32* %2
%43 = tail call i32 @_mm_xor_si128(i32 %15, i32 %42)
%44 = load i32, i32* %2
%45 = tail call i32 @_mm_xor_si128(i32 %19, i32 %44)
%46 = load i32, i32* %2
%47 = tail call i32 @_mm_xor_si128(i32 %23, i32 %46)
%48 = load i32, i32* %2
%49 = tail call i32 @_mm_xor_si128(i32 %27, i32 %48)
%50 = load i32, i32* %2
%51 = tail call i32 @_mm_xor_si128(i32 %31, i32 %50)
%52 = load i32, i32* %2
%53 = tail call i32 @_mm_xor_si128(i32 %35, i32 %52)
br label %54
54: ; preds = %3, %54
%55 = phi i64 [ 1, %3 ], [ %81, %54 ]
%56 = phi i32 [ %53, %3 ], [ %80, %54 ]
%57 = phi i32 [ %51, %3 ], [ %78, %54 ]
%58 = phi i32 [ %49, %3 ], [ %76, %54 ]
%59 = phi i32 [ %47, %3 ], [ %74, %54 ]
%60 = phi i32 [ %45, %3 ], [ %72, %54 ]
%61 = phi i32 [ %43, %3 ], [ %70, %54 ]
%62 = phi i32 [ %41, %3 ], [ %68, %54 ]
%63 = phi i32 [ %39, %3 ], [ %66, %54 ]
%64 = getelementptr inbounds i32, i32* %2, i64 %55
%65 = load i32, i32* %64
%66 = tail call i32 @_mm_aesenc_si128(i32 %63, i32 %65)
%67 = load i32, i32* %64
%68 = tail call i32 @_mm_aesenc_si128(i32 %62, i32 %67)
%69 = load i32, i32* %64
%70 = tail call i32 @_mm_aesenc_si128(i32 %61, i32 %69)
%71 = load i32, i32* %64
%72 = tail call i32 @_mm_aesenc_si128(i32 %60, i32 %71)
%73 = load i32, i32* %64
%74 = tail call i32 @_mm_aesenc_si128(i32 %59, i32 %73)
%75 = load i32, i32* %64
%76 = tail call i32 @_mm_aesenc_si128(i32 %58, i32 %75)
%77 = load i32, i32* %64
%78 = tail call i32 @_mm_aesenc_si128(i32 %57, i32 %77)
%79 = load i32, i32* %64
%80 = tail call i32 @_mm_aesenc_si128(i32 %56, i32 %79)
%81 = add nuw nsw i64 %55, 1
%82 = icmp eq i64 %81, 14
br i1 %82, label %83, label %54
83: ; preds = %54
%84 = getelementptr inbounds i32, i32* %2, i64 14
%85 = load i32, i32* %84
%86 = tail call i32 @_mm_aesenclast_si128(i32 %66, i32 %85)
%87 = load i32, i32* %84
%88 = tail call i32 @_mm_aesenclast_si128(i32 %68, i32 %87)
%89 = load i32, i32* %84
%90 = tail call i32 @_mm_aesenclast_si128(i32 %70, i32 %89)
%91 = load i32, i32* %84
%92 = tail call i32 @_mm_aesenclast_si128(i32 %72, i32 %91)
%93 = load i32, i32* %84
%94 = tail call i32 @_mm_aesenclast_si128(i32 %74, i32 %93)
%95 = load i32, i32* %84
%96 = tail call i32 @_mm_aesenclast_si128(i32 %76, i32 %95)
%97 = load i32, i32* %84
%98 = tail call i32 @_mm_aesenclast_si128(i32 %78, i32 %97)
%99 = load i32, i32* %84
%100 = tail call i32 @_mm_aesenclast_si128(i32 %80, i32 %99)
%101 = bitcast i8* %0 to i32*
%102 = tail call i32 @_mm_store_si128(i32* %101, i32 %86)
%103 = getelementptr inbounds i8, i8* %0, i64 16
%104 = bitcast i8* %103 to i32*
%105 = tail call i32 @_mm_store_si128(i32* %104, i32 %88)
%106 = getelementptr inbounds i8, i8* %0, i64 32
%107 = bitcast i8* %106 to i32*
%108 = tail call i32 @_mm_store_si128(i32* %107, i32 %90)
%109 = getelementptr inbounds i8, i8* %0, i64 48
%110 = bitcast i8* %109 to i32*
%111 = tail call i32 @_mm_store_si128(i32* %110, i32 %92)
%112 = getelementptr inbounds i8, i8* %0, i64 64
%113 = bitcast i8* %112 to i32*
%114 = tail call i32 @_mm_store_si128(i32* %113, i32 %94)
%115 = getelementptr inbounds i8, i8* %0, i64 80
%116 = bitcast i8* %115 to i32*
%117 = tail call i32 @_mm_store_si128(i32* %116, i32 %96)
%118 = getelementptr inbounds i8, i8* %0, i64 96
%119 = bitcast i8* %118 to i32*
%120 = tail call i32 @_mm_store_si128(i32* %119, i32 %98)
%121 = getelementptr inbounds i8, i8* %0, i64 112
%122 = bitcast i8* %121 to i32*
%123 = tail call i32 @_mm_store_si128(i32* %122, i32 %100)
ret void
}