#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*/ burst_write2(unsigned int *, int);
void fpp(int ea, int _stack_top[]) {
  unsigned int temp[3];
  temp[0] = _stack_top[0];
  temp[1] = _stack_top[1];
  temp[2] = _stack_top[2];
  temp[0] = 0x00FFFFFF & ((temp[0] & 0x00C00000) |
                          ((temp[0] & 0x000003FF) << 12) | (temp[1] >> 12));
  temp[1] = 0x00FFFFFF & ((temp[1] << 12) | (temp[2] >> 12));
  burst_write2(temp, ea);
}


x86 assembly (clang, -O0):
<fpp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x1c(%rbp),%eax
and    $0xc00000,%eax
mov    -0x1c(%rbp),%ecx
and    $0x3ff,%ecx
shl    $0xc,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%ecx
shr    $0xc,%ecx
or     %ecx,%eax
and    $0xffffff,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
shl    $0xc,%eax
mov    -0x14(%rbp),%ecx
shr    $0xc,%ecx
or     %ecx,%eax
and    $0xffffff,%eax
mov    %eax,-0x18(%rbp)
lea    -0x1c(%rbp),%rdi
mov    -0x4(%rbp),%esi
call   1030 <burst_write2@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fpp>:
sub    $0x18,%rsp
mov    %edi,%eax
mov    (%rsi),%ecx
mov    0x4(%rsi),%edx
mov    0x8(%rsi),%esi
mov    %esi,0x14(%rsp)
mov    %ecx,%edi
and    $0xc00000,%edi
shl    $0xc,%ecx
and    $0x3ff000,%ecx
or     %edi,%ecx
mov    %edx,%edi
shr    $0xc,%edi
or     %ecx,%edi
mov    %edi,0xc(%rsp)
shl    $0xc,%edx
shr    $0xc,%esi
and    $0xfff000,%edx
or     %esi,%edx
mov    %edx,0x10(%rsp)
lea    0xc(%rsp),%rdi
mov    %eax,%esi
call   1030 <burst_write2@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @fpp(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca [3 x i32]
store i32 %0, i32* %3
store i32* %1, i32** %4
%6 = load i32*, i32** %4
%7 = getelementptr inbounds i32, i32* %6, i64 0
%8 = load i32, i32* %7
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
store i32 %8, i32* %9
%10 = load i32*, i32** %4
%11 = getelementptr inbounds i32, i32* %10, i64 1
%12 = load i32, i32* %11
%13 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 1
store i32 %12, i32* %13
%14 = load i32*, i32** %4
%15 = getelementptr inbounds i32, i32* %14, i64 2
%16 = load i32, i32* %15
%17 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 2
store i32 %16, i32* %17
%18 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
%19 = load i32, i32* %18
%20 = and i32 %19, 12582912
%21 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
%22 = load i32, i32* %21
%23 = and i32 %22, 1023
%24 = shl i32 %23, 12
%25 = or i32 %20, %24
%26 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 1
%27 = load i32, i32* %26
%28 = lshr i32 %27, 12
%29 = or i32 %25, %28
%30 = and i32 16777215, %29
%31 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
store i32 %30, i32* %31
%32 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 1
%33 = load i32, i32* %32
%34 = shl i32 %33, 12
%35 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 2
%36 = load i32, i32* %35
%37 = lshr i32 %36, 12
%38 = or i32 %34, %37
%39 = and i32 16777215, %38
%40 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 1
store i32 %39, i32* %40
%41 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
%42 = load i32, i32* %3
%43 = call i32 @burst_write2(i32* %41, i32 %42)
ret void
}

LLVM IR (-O2):
define void @fpp(i32 %0, i32* nocapture %1) {
%3 = alloca [3 x i32]
%4 = bitcast [3 x i32]* %3 to i8*
%5 = load i32, i32* %1
%6 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%7 = getelementptr inbounds i32, i32* %1, i64 1
%8 = load i32, i32* %7
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 1
%10 = getelementptr inbounds i32, i32* %1, i64 2
%11 = load i32, i32* %10
%12 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 2
store i32 %11, i32* %12
%13 = and i32 %5, 12582912
%14 = shl i32 %5, 12
%15 = and i32 %14, 4190208
%16 = or i32 %15, %13
%17 = lshr i32 %8, 12
%18 = or i32 %16, %17
store i32 %18, i32* %6
%19 = shl i32 %8, 12
%20 = lshr i32 %11, 12
%21 = and i32 %19, 16773120
%22 = or i32 %20, %21
store i32 %22, i32* %9
%23 = call i32 @burst_write2(i32* %6, i32 %0)
ret void
}