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

/* Variables and functions */
int /*<<< orphan*/ quaterround(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                               int /*<<< orphan*/ *, int /*<<< orphan*/ *);
void columnround(uint32_t *a) {
  quaterround(a + 0, a + 4, a + 8, a + 12);
  quaterround(a + 5, a + 9, a + 13, a + 1);
  quaterround(a + 10, a + 14, a + 2, a + 6);
  quaterround(a + 15, a + 3, a + 7, a + 11);
}


x86 assembly (clang, -O0):
<columnround>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rsi
add    $0x10,%rsi
mov    -0x8(%rbp),%rdx
add    $0x20,%rdx
mov    -0x8(%rbp),%rcx
add    $0x30,%rcx
call   1030 <quaterround@plt>
mov    -0x8(%rbp),%rdi
add    $0x14,%rdi
mov    -0x8(%rbp),%rsi
add    $0x24,%rsi
mov    -0x8(%rbp),%rdx
add    $0x34,%rdx
mov    -0x8(%rbp),%rcx
add    $0x4,%rcx
call   1030 <quaterround@plt>
mov    -0x8(%rbp),%rdi
add    $0x28,%rdi
mov    -0x8(%rbp),%rsi
add    $0x38,%rsi
mov    -0x8(%rbp),%rdx
add    $0x8,%rdx
mov    -0x8(%rbp),%rcx
add    $0x18,%rcx
call   1030 <quaterround@plt>
mov    -0x8(%rbp),%rdi
add    $0x3c,%rdi
mov    -0x8(%rbp),%rsi
add    $0xc,%rsi
mov    -0x8(%rbp),%rdx
add    $0x1c,%rdx
mov    -0x8(%rbp),%rcx
add    $0x2c,%rcx
call   1030 <quaterround@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<columnround>:
push   %rbx
mov    %rdi,%rbx
lea    0x10(%rdi),%rsi
lea    0x20(%rdi),%rdx
lea    0x30(%rdi),%rcx
call   1030 <quaterround@plt>
lea    0x14(%rbx),%rdi
lea    0x24(%rbx),%rsi
lea    0x34(%rbx),%rdx
lea    0x4(%rbx),%rcx
call   1030 <quaterround@plt>
lea    0x28(%rbx),%rdi
lea    0x38(%rbx),%rsi
lea    0x8(%rbx),%rdx
lea    0x18(%rbx),%rcx
call   1030 <quaterround@plt>
lea    0x3c(%rbx),%rdi
lea    0xc(%rbx),%rsi
lea    0x1c(%rbx),%rdx
add    $0x2c,%rbx
mov    %rbx,%rcx
pop    %rbx
jmp    1030 <quaterround@plt>

LLVM IR (-O0):
define void @columnround(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 0
%5 = load i32*, i32** %2
%6 = getelementptr inbounds i32, i32* %5, i64 4
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 8
%9 = load i32*, i32** %2
%10 = getelementptr inbounds i32, i32* %9, i64 12
%11 = call i32 @quaterround(i32* %4, i32* %6, i32* %8, i32* %10)
%12 = load i32*, i32** %2
%13 = getelementptr inbounds i32, i32* %12, i64 5
%14 = load i32*, i32** %2
%15 = getelementptr inbounds i32, i32* %14, i64 9
%16 = load i32*, i32** %2
%17 = getelementptr inbounds i32, i32* %16, i64 13
%18 = load i32*, i32** %2
%19 = getelementptr inbounds i32, i32* %18, i64 1
%20 = call i32 @quaterround(i32* %13, i32* %15, i32* %17, i32* %19)
%21 = load i32*, i32** %2
%22 = getelementptr inbounds i32, i32* %21, i64 10
%23 = load i32*, i32** %2
%24 = getelementptr inbounds i32, i32* %23, i64 14
%25 = load i32*, i32** %2
%26 = getelementptr inbounds i32, i32* %25, i64 2
%27 = load i32*, i32** %2
%28 = getelementptr inbounds i32, i32* %27, i64 6
%29 = call i32 @quaterround(i32* %22, i32* %24, i32* %26, i32* %28)
%30 = load i32*, i32** %2
%31 = getelementptr inbounds i32, i32* %30, i64 15
%32 = load i32*, i32** %2
%33 = getelementptr inbounds i32, i32* %32, i64 3
%34 = load i32*, i32** %2
%35 = getelementptr inbounds i32, i32* %34, i64 7
%36 = load i32*, i32** %2
%37 = getelementptr inbounds i32, i32* %36, i64 11
%38 = call i32 @quaterround(i32* %31, i32* %33, i32* %35, i32* %37)
ret void
}

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