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

/* Variables and functions */
int /*<<< orphan*/ rotate(unsigned char *, unsigned char *, unsigned char *,
                          unsigned char *);
void rotate_word(unsigned char *word) {
  rotate(&word[1], &word[5], &word[9], &word[13]);
  rotate(&word[2], &word[6], &word[10], &word[14]);
  rotate(&word[2], &word[6], &word[10], &word[14]);
  rotate(&word[3], &word[7], &word[11], &word[15]);
  rotate(&word[3], &word[7], &word[11], &word[15]);
  rotate(&word[3], &word[7], &word[11], &word[15]);
}


x86 assembly (clang, -O0):
<rotate_word>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x1,%rdi
mov    -0x8(%rbp),%rsi
add    $0x5,%rsi
mov    -0x8(%rbp),%rdx
add    $0x9,%rdx
mov    -0x8(%rbp),%rcx
add    $0xd,%rcx
call   1030 <rotate@plt>
mov    -0x8(%rbp),%rdi
add    $0x2,%rdi
mov    -0x8(%rbp),%rsi
add    $0x6,%rsi
mov    -0x8(%rbp),%rdx
add    $0xa,%rdx
mov    -0x8(%rbp),%rcx
add    $0xe,%rcx
call   1030 <rotate@plt>
mov    -0x8(%rbp),%rdi
add    $0x2,%rdi
mov    -0x8(%rbp),%rsi
add    $0x6,%rsi
mov    -0x8(%rbp),%rdx
add    $0xa,%rdx
mov    -0x8(%rbp),%rcx
add    $0xe,%rcx
call   1030 <rotate@plt>
mov    -0x8(%rbp),%rdi
add    $0x3,%rdi
mov    -0x8(%rbp),%rsi
add    $0x7,%rsi
mov    -0x8(%rbp),%rdx
add    $0xb,%rdx
mov    -0x8(%rbp),%rcx
add    $0xf,%rcx
call   1030 <rotate@plt>
mov    -0x8(%rbp),%rdi
add    $0x3,%rdi
mov    -0x8(%rbp),%rsi
add    $0x7,%rsi
mov    -0x8(%rbp),%rdx
add    $0xb,%rdx
mov    -0x8(%rbp),%rcx
add    $0xf,%rcx
call   1030 <rotate@plt>
mov    -0x8(%rbp),%rdi
add    $0x3,%rdi
mov    -0x8(%rbp),%rsi
add    $0x7,%rsi
mov    -0x8(%rbp),%rdx
add    $0xb,%rdx
mov    -0x8(%rbp),%rcx
add    $0xf,%rcx
call   1030 <rotate@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rotate_word>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdi,%rbx
add    $0x1,%rdi
lea    0x5(%rbx),%rsi
lea    0x9(%rbx),%rdx
lea    0xd(%rbx),%rcx
call   1030 <rotate@plt>
lea    0x2(%rbx),%r14
lea    0x6(%rbx),%r15
lea    0xa(%rbx),%r12
lea    0xe(%rbx),%r13
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
call   1030 <rotate@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
call   1030 <rotate@plt>
lea    0x3(%rbx),%r14
lea    0x7(%rbx),%r15
lea    0xb(%rbx),%r12
add    $0xf,%rbx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
call   1030 <rotate@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
call   1030 <rotate@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <rotate@plt>

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

LLVM IR (-O2):
define void @rotate_word(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 1
%3 = getelementptr inbounds i8, i8* %0, i64 5
%4 = getelementptr inbounds i8, i8* %0, i64 9
%5 = getelementptr inbounds i8, i8* %0, i64 13
%6 = tail call i32 @rotate(i8* %2, i8* %3, i8* %4, i8* %5)
%7 = getelementptr inbounds i8, i8* %0, i64 2
%8 = getelementptr inbounds i8, i8* %0, i64 6
%9 = getelementptr inbounds i8, i8* %0, i64 10
%10 = getelementptr inbounds i8, i8* %0, i64 14
%11 = tail call i32 @rotate(i8* %7, i8* %8, i8* %9, i8* %10)
%12 = tail call i32 @rotate(i8* %7, i8* %8, i8* %9, i8* %10)
%13 = getelementptr inbounds i8, i8* %0, i64 3
%14 = getelementptr inbounds i8, i8* %0, i64 7
%15 = getelementptr inbounds i8, i8* %0, i64 11
%16 = getelementptr inbounds i8, i8* %0, i64 15
%17 = tail call i32 @rotate(i8* %13, i8* %14, i8* %15, i8* %16)
%18 = tail call i32 @rotate(i8* %13, i8* %14, i8* %15, i8* %16)
%19 = tail call i32 @rotate(i8* %13, i8* %14, i8* %15, i8* %16)
ret void
}