#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 rowround(uint32_t *a) {
  quaterround(a + 0, a + 1, a + 2, a + 3);
  quaterround(a + 5, a + 6, a + 7, a + 4);
  quaterround(a + 10, a + 11, a + 8, a + 9);
  quaterround(a + 15, a + 12, a + 13, a + 14);
}


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

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

LLVM IR (-O0):
define void @rowround(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 1
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 2
%9 = load i32*, i32** %2
%10 = getelementptr inbounds i32, i32* %9, i64 3
%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 6
%16 = load i32*, i32** %2
%17 = getelementptr inbounds i32, i32* %16, i64 7
%18 = load i32*, i32** %2
%19 = getelementptr inbounds i32, i32* %18, i64 4
%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 11
%25 = load i32*, i32** %2
%26 = getelementptr inbounds i32, i32* %25, i64 8
%27 = load i32*, i32** %2
%28 = getelementptr inbounds i32, i32* %27, i64 9
%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 12
%34 = load i32*, i32** %2
%35 = getelementptr inbounds i32, i32* %34, i64 13
%36 = load i32*, i32** %2
%37 = getelementptr inbounds i32, i32* %36, i64 14
%38 = call i32 @quaterround(i32* %31, i32* %33, i32* %35, i32* %37)
ret void
}

LLVM IR (-O2):
define void @rowround(i32* %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 1
%3 = getelementptr inbounds i32, i32* %0, i64 2
%4 = getelementptr inbounds i32, i32* %0, i64 3
%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 6
%8 = getelementptr inbounds i32, i32* %0, i64 7
%9 = getelementptr inbounds i32, i32* %0, i64 4
%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 11
%13 = getelementptr inbounds i32, i32* %0, i64 8
%14 = getelementptr inbounds i32, i32* %0, i64 9
%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 12
%18 = getelementptr inbounds i32, i32* %0, i64 13
%19 = getelementptr inbounds i32, i32* %0, i64 14
%20 = tail call i32 @quaterround(i32* %16, i32* %17, i32* %18, i32* %19)
ret void
}