#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 masken;
typedef int image_id;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void DisArea_Image(unsigned short int x, unsigned short int y,
                   unsigned short int image_id, unsigned char masken) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x32) & 0xFF);
  SendChar(((x) >> 8) & 0xFF);
  SendChar((x)&0xFF);
  SendChar(((y) >> 8) & 0xFF);
  SendChar((y)&0xFF);
  SendChar(((image_id) >> 8) & 0xFF);
  SendChar((image_id)&0xFF);
  SendChar((masken)&0xFF);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<DisArea_Image>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %cl,%al
mov    %dx,%cx
mov    %si,%dx
mov    %di,%si
mov    %si,-0x2(%rbp)
mov    %dx,-0x4(%rbp)
mov    %cx,-0x6(%rbp)
mov    %al,-0x7(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x32,%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>
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):
<DisArea_Image>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x32,%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    %r15d,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %r15b,%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
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <SendChar@plt>

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

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