#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*/ rightRot(unsigned char *);
void leftRot(unsigned char key[]) {
  unsigned char i = 27;
  do {
    rightRot(key);
  } while (--i);
}


x86 assembly (clang, -O0):
<leftRot>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movb   $0x1b,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <rightRot@plt>
mov    -0x9(%rbp),%al
add    $0xff,%al
mov    %al,-0x9(%rbp)
cmp    $0x0,%al
jne    1120 <leftRot+0x10>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<leftRot>:
push   %rbx
mov    %rdi,%rbx
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
call   1030 <rightRot@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <rightRot@plt>

LLVM IR (-O0):
define void @leftRot(i8* %0) {
%2 = alloca i8*
%3 = alloca i8
store i8* %0, i8** %2
store i8 27, i8* %3
br label %4
4: ; preds = %7, %1
%5 = load i8*, i8** %2
%6 = call i32 @rightRot(i8* %5)
br label %7
7: ; preds = %4
%8 = load i8, i8* %3
%9 = add i8 %8, -1
store i8 %9, i8* %3
%10 = icmp ne i8 %9, 0
br i1 %10, label %4, label %11
11: ; preds = %7
ret void
}

LLVM IR (-O2):
define void @leftRot(i8* %0) {
%2 = tail call i32 @rightRot(i8* %0)
%3 = tail call i32 @rightRot(i8* %0)
%4 = tail call i32 @rightRot(i8* %0)
%5 = tail call i32 @rightRot(i8* %0)
%6 = tail call i32 @rightRot(i8* %0)
%7 = tail call i32 @rightRot(i8* %0)
%8 = tail call i32 @rightRot(i8* %0)
%9 = tail call i32 @rightRot(i8* %0)
%10 = tail call i32 @rightRot(i8* %0)
%11 = tail call i32 @rightRot(i8* %0)
%12 = tail call i32 @rightRot(i8* %0)
%13 = tail call i32 @rightRot(i8* %0)
%14 = tail call i32 @rightRot(i8* %0)
%15 = tail call i32 @rightRot(i8* %0)
%16 = tail call i32 @rightRot(i8* %0)
%17 = tail call i32 @rightRot(i8* %0)
%18 = tail call i32 @rightRot(i8* %0)
%19 = tail call i32 @rightRot(i8* %0)
%20 = tail call i32 @rightRot(i8* %0)
%21 = tail call i32 @rightRot(i8* %0)
%22 = tail call i32 @rightRot(i8* %0)
%23 = tail call i32 @rightRot(i8* %0)
%24 = tail call i32 @rightRot(i8* %0)
%25 = tail call i32 @rightRot(i8* %0)
%26 = tail call i32 @rightRot(i8* %0)
%27 = tail call i32 @rightRot(i8* %0)
%28 = tail call i32 @rightRot(i8* %0)
ret void
}