BinaryPositionLong(pkt) unsigned char *pkt;
{
  int c;
  double pos[3], vel[3], view[3], up[3];
  double move_up, move_down;
  double move_right, move_left, move_pitchright, move_pitchleft;
  DecodeBinaryPacket(pkt, "cVVvvffffff", &c, pos, vel, view, up, &move_up,
                     &move_down, &move_right, &move_left, &move_pitchright,
                     &move_pitchleft);
  PositionLong(c, pos, vel, view, up, move_up, move_down, move_right, move_left,
               move_pitchright, move_pitchleft);
}


x86 assembly (clang, -O0):
<BinaryPositionLong>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x100,%rsp
mov    %rdi,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rcx
lea    -0x70(%rbp),%r8
lea    -0x90(%rbp),%r9
lea    -0xb0(%rbp),%r12
lea    0xea9(%rip),%rsi
lea    -0x34(%rbp),%rdx
lea    -0xb8(%rbp),%r15
lea    -0xc0(%rbp),%r14
lea    -0xc8(%rbp),%rbx
lea    -0xd0(%rbp),%r11
lea    -0xd8(%rbp),%r10
lea    -0xe0(%rbp),%rax
mov    %r12,(%rsp)
mov    %r15,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
mov    $0x0,%al
call   1040 <DecodeBinaryPacket@plt>
mov    -0x34(%rbp),%edi
lea    -0x50(%rbp),%rsi
lea    -0x70(%rbp),%rdx
lea    -0x90(%rbp),%rcx
lea    -0xb0(%rbp),%r8
movsd  -0xb8(%rbp),%xmm0
ff
movsd  -0xc0(%rbp),%xmm1
ff
movsd  -0xc8(%rbp),%xmm2
ff
movsd  -0xd0(%rbp),%xmm3
ff
movsd  -0xd8(%rbp),%xmm4
ff
movsd  -0xe0(%rbp),%xmm5
ff
mov    $0x6,%al
call   1030 <PositionLong@plt>
mov    -0x24(%rbp),%eax
add    $0x100,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<BinaryPositionLong>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
sub    $0x8,%rsp
lea    0x18(%rsp),%r10
lea    0x20(%rsp),%r11
lea    0x28(%rsp),%r13
lea    0x30(%rsp),%rbp
lea    0x48(%rsp),%r14
lea    0xeab(%rip),%rsi
lea    0x14(%rsp),%rdx
lea    0xa8(%rsp),%rbx
lea    0x88(%rsp),%r15
lea    0x68(%rsp),%r12
mov    %rbx,%rcx
mov    %r15,%r8
mov    %r12,%r9
mov    $0x0,%eax
push   %r10
push   %r11
push   %r13
push   %rbp
lea    0x58(%rsp),%rbp
push   %rbp
lea    0x68(%rsp),%rbp
push   %rbp
push   %r14
call   1040 <DecodeBinaryPacket@plt>
add    $0x40,%rsp
mov    0xc(%rsp),%edi
movsd  0x38(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
movsd  0x28(%rsp),%xmm2
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm5
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %r14,%r8
mov    $0x6,%al
call   1030 <PositionLong@plt>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"cVVvvffffff\00"
define i32 @BinaryPositionLong(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca [3 x double]
%6 = alloca [3 x double]
%7 = alloca [3 x double]
%8 = alloca [3 x double]
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
store i8* %0, i8** %3
%15 = load i8*, i8** %3
%16 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 0
%17 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
%18 = getelementptr inbounds [3 x double], [3 x double]* %7, i64 0, i64 0
%19 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 0
%20 = call i32 (i8*, i8*, i32*, double*, double*, double*, double*, double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @DecodeBinaryPacket to i32 (i8*, i8*, i32*, double*, double*, double*, double*, double*, double*, double*, double*, double*, double*, ...)*)(i8* %15, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32* %4, double* %16, double* %17, double* %18, double* %19, double* %9, double* %10, double* %11, double* %12, double* %13, double* %14)
%21 = load i32, i32* %4
%22 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 0
%23 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
%24 = getelementptr inbounds [3 x double], [3 x double]* %7, i64 0, i64 0
%25 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 0
%26 = load double, double* %9
%27 = load double, double* %10
%28 = load double, double* %11
%29 = load double, double* %12
%30 = load double, double* %13
%31 = load double, double* %14
%32 = call i32 (i32, double*, double*, double*, double*, double, double, double, double, double, double, ...) bitcast (i32 (...)* @PositionLong to i32 (i32, double*, double*, double*, double*, double, double, double, double, double, double, ...)*)(i32 %21, double* %22, double* %23, double* %24, double* %25, double %26, double %27, double %28, double %29, double %30, double %31)
%33 = load i32, i32* %2
ret i32 %33
}

LLVM IR (-O2):
@.str = [12 x i8] c"cVVvvffffff\00"
define i32 @BinaryPositionLong(i8* %0) {
%2 = alloca i32
%3 = alloca [3 x double]
%4 = alloca [3 x double]
%5 = alloca [3 x double]
%6 = alloca [3 x double]
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = bitcast i32* %2 to i8*
%14 = bitcast [3 x double]* %3 to i8*
%15 = bitcast [3 x double]* %4 to i8*
%16 = bitcast [3 x double]* %5 to i8*
%17 = bitcast [3 x double]* %6 to i8*
%18 = bitcast double* %7 to i8*
%19 = bitcast double* %8 to i8*
%20 = bitcast double* %9 to i8*
%21 = bitcast double* %10 to i8*
%22 = bitcast double* %11 to i8*
%23 = bitcast double* %12 to i8*
%24 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%25 = getelementptr inbounds [3 x double], [3 x double]* %4, i64 0, i64 0
%26 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 0
%27 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
%28 = call i32 (i8*, i8*, i32*, double*, double*, double*, double*, double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @DecodeBinaryPacket to i32 (i8*, i8*, i32*, double*, double*, double*, double*, double*, double*, double*, double*, double*, double*, ...)*)(i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32* %2, double* %24, double* %25, double* %26, double* %27, double* %7, double* %8, double* %9, double* %10, double* %11, double* %12)
%29 = load i32, i32* %2
%30 = load double, double* %7
%31 = load double, double* %8
%32 = load double, double* %9
%33 = load double, double* %10
%34 = load double, double* %11
%35 = load double, double* %12
%36 = call i32 (i32, double*, double*, double*, double*, double, double, double, double, double, double, ...) bitcast (i32 (...)* @PositionLong to i32 (i32, double*, double*, double*, double*, double, double, double, double, double, double, ...)*)(i32 %29, double* %24, double* %25, double* %26, double* %27, double %30, double %31, double %32, double %33, double %34, double %35)
ret i32 undef
}