#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 y;
typedef int x;
typedef int playnum;
typedef int flashimage_id;
typedef int enable;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void DisFlashImage(unsigned short int x, unsigned short int y,
                   unsigned short int flashimage_id, unsigned char enable,
                   unsigned char playnum) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x80) & 0xFF);
  SendChar(((x) >> 8) & 0xFF);
  SendChar((x)&0xFF);
  SendChar(((y) >> 8) & 0xFF);
  SendChar((y)&0xFF);
  SendChar(((flashimage_id) >> 8) & 0xFF);
  SendChar((flashimage_id)&0xFF);
  SendChar((enable)&0xFF);
  SendChar((playnum)&0xFF);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<DisFlashImage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %r8b,%al
mov    %di,-0x2(%rbp)
mov    %si,-0x4(%rbp)
mov    %dx,-0x6(%rbp)
mov    %cl,-0x7(%rbp)
mov    %al,-0x8(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x80,%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>
movzwl -0x6(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -0x6(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzbl -0x7(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzbl -0x8(%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):
<DisFlashImage>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8d,%r14d
mov    %ecx,%r15d
mov    %edx,%r12d
mov    %esi,%ebp
mov    %edi,%ebx
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x80,%edi
call   1030 <SendChar@plt>
mov    %ebx,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %bl,%edi
call   1030 <SendChar@plt>
mov    %ebp,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %bpl,%edi
call   1030 <SendChar@plt>
mov    %r12d,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %r12b,%edi
call   1030 <SendChar@plt>
mov    %r15d,%edi
call   1030 <SendChar@plt>
mov    %r14d,%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
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <SendChar@plt>

LLVM IR (-O0):
define void @DisFlashImage(i16 zeroext %0, i16 zeroext %1, i16 zeroext %2, i8 zeroext %3, i8 zeroext %4) {
%6 = alloca i16
%7 = alloca i16
%8 = alloca i16
%9 = alloca i8
%10 = alloca i8
store i16 %0, i16* %6
store i16 %1, i16* %7
store i16 %2, i16* %8
store i8 %3, i8* %9
store i8 %4, i8* %10
%11 = call i32 @SendChar(i32 238)
%12 = call i32 @SendChar(i32 128)
%13 = load i16, i16* %6
%14 = zext i16 %13 to i32
%15 = ashr i32 %14, 8
%16 = and i32 %15, 255
%17 = call i32 @SendChar(i32 %16)
%18 = load i16, i16* %6
%19 = zext i16 %18 to i32
%20 = and i32 %19, 255
%21 = call i32 @SendChar(i32 %20)
%22 = load i16, i16* %7
%23 = zext i16 %22 to i32
%24 = ashr i32 %23, 8
%25 = and i32 %24, 255
%26 = call i32 @SendChar(i32 %25)
%27 = load i16, i16* %7
%28 = zext i16 %27 to i32
%29 = and i32 %28, 255
%30 = call i32 @SendChar(i32 %29)
%31 = load i16, i16* %8
%32 = zext i16 %31 to i32
%33 = ashr i32 %32, 8
%34 = and i32 %33, 255
%35 = call i32 @SendChar(i32 %34)
%36 = load i16, i16* %8
%37 = zext i16 %36 to i32
%38 = and i32 %37, 255
%39 = call i32 @SendChar(i32 %38)
%40 = load i8, i8* %9
%41 = zext i8 %40 to i32
%42 = and i32 %41, 255
%43 = call i32 @SendChar(i32 %42)
%44 = load i8, i8* %10
%45 = zext i8 %44 to i32
%46 = and i32 %45, 255
%47 = call i32 @SendChar(i32 %46)
%48 = call i32 @SendChar(i32 255)
%49 = call i32 @SendChar(i32 252)
%50 = call i32 @SendChar(i32 255)
%51 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @DisFlashImage(i16 zeroext %0, i16 zeroext %1, i16 zeroext %2, i8 zeroext %3, i8 zeroext %4) {
%6 = tail call i32 @SendChar(i32 238)
%7 = tail call i32 @SendChar(i32 128)
%8 = zext i16 %0 to i32
%9 = lshr i32 %8, 8
%10 = tail call i32 @SendChar(i32 %9)
%11 = and i32 %8, 255
%12 = tail call i32 @SendChar(i32 %11)
%13 = zext i16 %1 to i32
%14 = lshr i32 %13, 8
%15 = tail call i32 @SendChar(i32 %14)
%16 = and i32 %13, 255
%17 = tail call i32 @SendChar(i32 %16)
%18 = zext i16 %2 to i32
%19 = lshr i32 %18, 8
%20 = tail call i32 @SendChar(i32 %19)
%21 = and i32 %18, 255
%22 = tail call i32 @SendChar(i32 %21)
%23 = zext i8 %3 to i32
%24 = tail call i32 @SendChar(i32 %23)
%25 = zext i8 %4 to i32
%26 = tail call i32 @SendChar(i32 %25)
%27 = tail call i32 @SendChar(i32 255)
%28 = tail call i32 @SendChar(i32 252)
%29 = tail call i32 @SendChar(i32 255)
%30 = tail call i32 @SendChar(i32 255)
ret void
}