#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*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ AddRoundRoundKeyAndRoundConstant(int /*<<< orphan*/ *,
                                                    int /*<<< orphan*/ *,
                                                    int /*<<< orphan*/ const *);
int /*<<< orphan*/ M0Multiplication(int /*<<< orphan*/ *);
int /*<<< orphan*/ M1Multiplication(int /*<<< orphan*/ *);
int /*<<< orphan*/ SLayer(int /*<<< orphan*/ *);
int /*<<< orphan*/ SR(int /*<<< orphan*/ *);
void Round(uint8_t *block, uint8_t *roundKey, const uint8_t *roundConstant) {
  SLayer(block);
  M0Multiplication(&block[6]);
  M1Multiplication(&block[4]);
  M1Multiplication(&block[2]);
  M0Multiplication(&block[0]);
  SR(block);
  AddRoundRoundKeyAndRoundConstant(block, roundKey, roundConstant);
}


x86 assembly (clang, -O0):
<Round>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <SLayer@plt>
mov    -0x8(%rbp),%rdi
add    $0x18,%rdi
call   1070 <M0Multiplication@plt>
mov    -0x8(%rbp),%rdi
add    $0x10,%rdi
call   1050 <M1Multiplication@plt>
mov    -0x8(%rbp),%rdi
add    $0x8,%rdi
call   1050 <M1Multiplication@plt>
mov    -0x8(%rbp),%rdi
call   1070 <M0Multiplication@plt>
mov    -0x8(%rbp),%rdi
call   1040 <SR@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <AddRoundRoundKeyAndRoundConstant@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Round>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
call   1060 <SLayer@plt>
lea    0x18(%rbx),%rdi
call   1070 <M0Multiplication@plt>
lea    0x10(%rbx),%rdi
call   1050 <M1Multiplication@plt>
lea    0x8(%rbx),%rdi
call   1050 <M1Multiplication@plt>
mov    %rbx,%rdi
call   1070 <M0Multiplication@plt>
mov    %rbx,%rdi
call   1040 <SR@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <AddRoundRoundKeyAndRoundConstant@plt>

LLVM IR (-O0):
define void @Round(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%7 = load i32*, i32** %4
%8 = call i32 @SLayer(i32* %7)
%9 = load i32*, i32** %4
%10 = getelementptr inbounds i32, i32* %9, i64 6
%11 = call i32 @M0Multiplication(i32* %10)
%12 = load i32*, i32** %4
%13 = getelementptr inbounds i32, i32* %12, i64 4
%14 = call i32 @M1Multiplication(i32* %13)
%15 = load i32*, i32** %4
%16 = getelementptr inbounds i32, i32* %15, i64 2
%17 = call i32 @M1Multiplication(i32* %16)
%18 = load i32*, i32** %4
%19 = getelementptr inbounds i32, i32* %18, i64 0
%20 = call i32 @M0Multiplication(i32* %19)
%21 = load i32*, i32** %4
%22 = call i32 @SR(i32* %21)
%23 = load i32*, i32** %4
%24 = load i32*, i32** %5
%25 = load i32*, i32** %6
%26 = call i32 @AddRoundRoundKeyAndRoundConstant(i32* %23, i32* %24, i32* %25)
ret void
}

LLVM IR (-O2):
define void @Round(i32* %0, i32* %1, i32* %2) {
%4 = tail call i32 @SLayer(i32* %0)
%5 = getelementptr inbounds i32, i32* %0, i64 6
%6 = tail call i32 @M0Multiplication(i32* %5)
%7 = getelementptr inbounds i32, i32* %0, i64 4
%8 = tail call i32 @M1Multiplication(i32* %7)
%9 = getelementptr inbounds i32, i32* %0, i64 2
%10 = tail call i32 @M1Multiplication(i32* %9)
%11 = tail call i32 @M0Multiplication(i32* %0)
%12 = tail call i32 @SR(i32* %0)
%13 = tail call i32 @AddRoundRoundKeyAndRoundConstant(i32* %0, i32* %1, i32* %2)
ret void
}