#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 screen_id;
typedef int control_id;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void AnimationPlayPrev(unsigned short int screen_id,
                       unsigned short int control_id) {
  SendChar((0XEE) & 0xFF);
  SendChar((0xB1) & 0xFF);
  SendChar((0x24) & 0xFF);
  SendChar(((screen_id) >> 8) & 0xFF);
  SendChar((screen_id)&0xFF);
  SendChar(((control_id) >> 8) & 0xFF);
  SendChar((control_id)&0xFF);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<AnimationPlayPrev>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %di,%cx
mov    %cx,-0x2(%rbp)
mov    %ax,-0x4(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0xb1,%edi
call   1030 <SendChar@plt>
mov    $0x24,%edi
call   1030 <SendChar@plt>
movzwl -0x2(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -0x2(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -0x4(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -0x4(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
call   1030 <SendChar@plt>
mov    $0xfc,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
call   1030 <SendChar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AnimationPlayPrev>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0xb1,%edi
call   1030 <SendChar@plt>
mov    $0x24,%edi
call   1030 <SendChar@plt>
mov    %ebp,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %bpl,%edi
call   1030 <SendChar@plt>
mov    %ebx,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %bl,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
call   1030 <SendChar@plt>
mov    $0xfc,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
call   1030 <SendChar@plt>
mov    $0xff,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <SendChar@plt>

LLVM IR (-O0):
define void @AnimationPlayPrev(i16 zeroext %0, i16 zeroext %1) {
%3 = alloca i16
%4 = alloca i16
store i16 %0, i16* %3
store i16 %1, i16* %4
%5 = call i32 @SendChar(i32 238)
%6 = call i32 @SendChar(i32 177)
%7 = call i32 @SendChar(i32 36)
%8 = load i16, i16* %3
%9 = zext i16 %8 to i32
%10 = ashr i32 %9, 8
%11 = and i32 %10, 255
%12 = call i32 @SendChar(i32 %11)
%13 = load i16, i16* %3
%14 = zext i16 %13 to i32
%15 = and i32 %14, 255
%16 = call i32 @SendChar(i32 %15)
%17 = load i16, i16* %4
%18 = zext i16 %17 to i32
%19 = ashr i32 %18, 8
%20 = and i32 %19, 255
%21 = call i32 @SendChar(i32 %20)
%22 = load i16, i16* %4
%23 = zext i16 %22 to i32
%24 = and i32 %23, 255
%25 = call i32 @SendChar(i32 %24)
%26 = call i32 @SendChar(i32 255)
%27 = call i32 @SendChar(i32 252)
%28 = call i32 @SendChar(i32 255)
%29 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @AnimationPlayPrev(i16 zeroext %0, i16 zeroext %1) {
%3 = tail call i32 @SendChar(i32 238)
%4 = tail call i32 @SendChar(i32 177)
%5 = tail call i32 @SendChar(i32 36)
%6 = zext i16 %0 to i32
%7 = lshr i32 %6, 8
%8 = tail call i32 @SendChar(i32 %7)
%9 = and i32 %6, 255
%10 = tail call i32 @SendChar(i32 %9)
%11 = zext i16 %1 to i32
%12 = lshr i32 %11, 8
%13 = tail call i32 @SendChar(i32 %12)
%14 = and i32 %11, 255
%15 = tail call i32 @SendChar(i32 %14)
%16 = tail call i32 @SendChar(i32 255)
%17 = tail call i32 @SendChar(i32 252)
%18 = tail call i32 @SendChar(i32 255)
%19 = tail call i32 @SendChar(i32 255)
ret void
}