#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*/);
void aes_round(__m128i key, __m128i *x0, __m128i *x1, __m128i *x2, __m128i *x3,
               __m128i *x4, __m128i *x5, __m128i *x6, __m128i *x7) {
  *x0 = _mm_aesenc_si128(*x0, key);
  *x1 = _mm_aesenc_si128(*x1, key);
  *x2 = _mm_aesenc_si128(*x2, key);
  *x3 = _mm_aesenc_si128(*x3, key);
  *x4 = _mm_aesenc_si128(*x4, key);
  *x5 = _mm_aesenc_si128(*x5, key);
  *x6 = _mm_aesenc_si128(*x6, key);
  *x7 = _mm_aesenc_si128(*x7, key);
}


x86 assembly (clang, -O0):
<aes_round>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x30(%rbp),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    0x10(%rbp),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,%ecx
mov    0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,%ecx
mov    0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    0x20(%rbp),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,%ecx
mov    0x20(%rbp),%rax
mov    %ecx,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aes_round>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbp
mov    %edi,%ebx
mov    (%rsi),%edi
mov    %ebx,%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,0x0(%rbp)
mov    0x0(%r13),%edi
mov    %ebx,%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,0x0(%r13)
mov    (%r12),%edi
mov    %ebx,%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,(%r12)
mov    (%r15),%edi
mov    %ebx,%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,(%r15)
mov    (%r14),%edi
mov    %ebx,%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,(%r14)
mov    0x40(%rsp),%rbp
mov    0x0(%rbp),%edi
mov    %ebx,%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,0x0(%rbp)
mov    0x48(%rsp),%rbp
mov    0x0(%rbp),%edi
mov    %ebx,%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,0x0(%rbp)
mov    0x50(%rsp),%rbp
mov    0x0(%rbp),%edi
mov    %ebx,%esi
call   1030 <_mm_aesenc_si128@plt>
mov    %eax,0x0(%rbp)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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