#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*/ move_r(unsigned long *, unsigned short *);
int /*<<< orphan*/ move_u(unsigned long *, unsigned short *);
void sexyMove(unsigned long *positions, unsigned short *orientations) {
  move_r(positions, orientations);
  move_u(positions, orientations);
  move_r(positions, orientations);
  move_r(positions, orientations);
  move_r(positions, orientations);
  move_u(positions, orientations);
  move_u(positions, orientations);
  move_u(positions, orientations);
}


x86 assembly (clang, -O0):
<sexyMove>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <move_r@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <move_u@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <move_r@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <move_r@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <move_r@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <move_u@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <move_u@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <move_u@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sexyMove>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <move_r@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <move_u@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <move_r@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <move_r@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <move_r@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <move_u@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <move_u@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <move_u@plt>

LLVM IR (-O0):
define void @sexyMove(i64* %0, i16* %1) {
%3 = alloca i64*
%4 = alloca i16*
store i64* %0, i64** %3
store i16* %1, i16** %4
%5 = load i64*, i64** %3
%6 = load i16*, i16** %4
%7 = call i32 @move_r(i64* %5, i16* %6)
%8 = load i64*, i64** %3
%9 = load i16*, i16** %4
%10 = call i32 @move_u(i64* %8, i16* %9)
%11 = load i64*, i64** %3
%12 = load i16*, i16** %4
%13 = call i32 @move_r(i64* %11, i16* %12)
%14 = load i64*, i64** %3
%15 = load i16*, i16** %4
%16 = call i32 @move_r(i64* %14, i16* %15)
%17 = load i64*, i64** %3
%18 = load i16*, i16** %4
%19 = call i32 @move_r(i64* %17, i16* %18)
%20 = load i64*, i64** %3
%21 = load i16*, i16** %4
%22 = call i32 @move_u(i64* %20, i16* %21)
%23 = load i64*, i64** %3
%24 = load i16*, i16** %4
%25 = call i32 @move_u(i64* %23, i16* %24)
%26 = load i64*, i64** %3
%27 = load i16*, i16** %4
%28 = call i32 @move_u(i64* %26, i16* %27)
ret void
}

LLVM IR (-O2):
define void @sexyMove(i64* %0, i16* %1) {
%3 = tail call i32 @move_r(i64* %0, i16* %1)
%4 = tail call i32 @move_u(i64* %0, i16* %1)
%5 = tail call i32 @move_r(i64* %0, i16* %1)
%6 = tail call i32 @move_r(i64* %0, i16* %1)
%7 = tail call i32 @move_r(i64* %0, i16* %1)
%8 = tail call i32 @move_u(i64* %0, i16* %1)
%9 = tail call i32 @move_u(i64* %0, i16* %1)
%10 = tail call i32 @move_u(i64* %0, i16* %1)
ret void
}