#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;

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


x86 assembly (clang, -O0):
<GUI_Dot>:
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    $0x50,%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):
<GUI_Dot>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x50,%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 @GUI_Dot(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 80)
%7 = load i16, i16* %3
%8 = zext i16 %7 to i32
%9 = ashr i32 %8, 8
%10 = and i32 %9, 255
%11 = call i32 @SendChar(i32 %10)
%12 = load i16, i16* %3
%13 = zext i16 %12 to i32
%14 = and i32 %13, 255
%15 = call i32 @SendChar(i32 %14)
%16 = load i16, i16* %4
%17 = zext i16 %16 to i32
%18 = ashr i32 %17, 8
%19 = and i32 %18, 255
%20 = call i32 @SendChar(i32 %19)
%21 = load i16, i16* %4
%22 = zext i16 %21 to i32
%23 = and i32 %22, 255
%24 = call i32 @SendChar(i32 %23)
%25 = call i32 @SendChar(i32 255)
%26 = call i32 @SendChar(i32 252)
%27 = call i32 @SendChar(i32 255)
%28 = call i32 @SendChar(i32 255)
ret void
}

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