#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*/ foo;
typedef int /*<<< orphan*/ bar;

/* Variables and functions */
int /*<<< orphan*/ memset(char **, int /*<<< orphan*/, int);
int /*<<< orphan*/ rotate_90(char **, char **, int);
void rotate_270(char before[][10], char trans[][10], int n) {
  char foo[10][10];
  char bar[10][10];
  memset(foo, 0, sizeof(foo));
  memset(bar, 0, sizeof(bar));
  rotate_90(before, foo, n);
  rotate_90(foo, bar, n);
  rotate_90(bar, trans, n);
}


x86 assembly (clang, -O0):
<rotate_270>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
lea    -0xf0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
mov    -0x8(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <rotate_90@plt>
lea    -0x80(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <rotate_90@plt>
lea    -0xf0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <rotate_90@plt>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rotate_270>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe0,%rsp
mov    %edx,%ebx
mov    %rsi,%r14
mov    %rdi,%r15
lea    0x70(%rsp),%r12
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
mov    %rsp,%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %ebx,%edx
call   1030 <rotate_90@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %ebx,%edx
call   1030 <rotate_90@plt>
mov    %r13,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1030 <rotate_90@plt>
add    $0xe0,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @rotate_270([10 x i8]* %0, [10 x i8]* %1, i32 %2) {
%4 = alloca [10 x i8]*
%5 = alloca [10 x i8]*
%6 = alloca i32
%7 = alloca [10 x [10 x i8]]
%8 = alloca [10 x [10 x i8]]
store [10 x i8]* %0, [10 x i8]** %4
store [10 x i8]* %1, [10 x i8]** %5
store i32 %2, i32* %6
%9 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %7, i64 0, i64 0
%10 = bitcast [10 x i8]* %9 to i8**
%11 = call i32 @memset(i8** %10, i32 0, i32 100)
%12 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %8, i64 0, i64 0
%13 = bitcast [10 x i8]* %12 to i8**
%14 = call i32 @memset(i8** %13, i32 0, i32 100)
%15 = load [10 x i8]*, [10 x i8]** %4
%16 = bitcast [10 x i8]* %15 to i8**
%17 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %7, i64 0, i64 0
%18 = bitcast [10 x i8]* %17 to i8**
%19 = load i32, i32* %6
%20 = call i32 @rotate_90(i8** %16, i8** %18, i32 %19)
%21 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %7, i64 0, i64 0
%22 = bitcast [10 x i8]* %21 to i8**
%23 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %8, i64 0, i64 0
%24 = bitcast [10 x i8]* %23 to i8**
%25 = load i32, i32* %6
%26 = call i32 @rotate_90(i8** %22, i8** %24, i32 %25)
%27 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %8, i64 0, i64 0
%28 = bitcast [10 x i8]* %27 to i8**
%29 = load [10 x i8]*, [10 x i8]** %5
%30 = bitcast [10 x i8]* %29 to i8**
%31 = load i32, i32* %6
%32 = call i32 @rotate_90(i8** %28, i8** %30, i32 %31)
ret void
}

LLVM IR (-O2):
define void @rotate_270([10 x i8]* %0, [10 x i8]* %1, i32 %2) {
%4 = alloca [10 x [10 x i8]]
%5 = alloca [10 x [10 x i8]]
%6 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %4, i64 0, i64 0, i64 0
%7 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %5, i64 0, i64 0, i64 0
%8 = bitcast [10 x [10 x i8]]* %4 to i8**
%9 = call i32 @memset(i8** %8, i32 0, i32 100)
%10 = bitcast [10 x [10 x i8]]* %5 to i8**
%11 = call i32 @memset(i8** %10, i32 0, i32 100)
%12 = bitcast [10 x i8]* %0 to i8**
%13 = call i32 @rotate_90(i8** %12, i8** %8, i32 %2)
%14 = call i32 @rotate_90(i8** %8, i8** %10, i32 %2)
%15 = bitcast [10 x i8]* %1 to i8**
%16 = call i32 @rotate_90(i8** %10, i8** %15, i32 %2)
ret void
}