#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 y1;
typedef int y0;
typedef int x1;
typedef int x0;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void GUI_Line(unsigned short int x0, unsigned short int y0,
              unsigned short int x1, unsigned short int y1) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x51) & 0xFF);
  SendChar(((x0) >> 8) & 0xFF);
  SendChar((x0)&0xFF);
  SendChar(((y0) >> 8) & 0xFF);
  SendChar((y0)&0xFF);
  SendChar(((x1) >> 8) & 0xFF);
  SendChar((x1)&0xFF);
  SendChar(((y1) >> 8) & 0xFF);
  SendChar((y1)&0xFF);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<GUI_Line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %cx,%ax
mov    %dx,%cx
mov    %si,%dx
mov    %di,%si
mov    %si,-0x2(%rbp)
mov    %dx,-0x4(%rbp)
mov    %cx,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x51,%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>
movzwl -0x8(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -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):
<GUI_Line>:
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    $0x51,%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
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %r14b,%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 @GUI_Line(i16 zeroext %0, i16 zeroext %1, i16 zeroext %2, i16 zeroext %3) {
%5 = alloca i16
%6 = alloca i16
%7 = alloca i16
%8 = alloca i16
store i16 %0, i16* %5
store i16 %1, i16* %6
store i16 %2, i16* %7
store i16 %3, i16* %8
%9 = call i32 @SendChar(i32 238)
%10 = call i32 @SendChar(i32 81)
%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 i16, i16* %8
%39 = zext i16 %38 to i32
%40 = ashr i32 %39, 8
%41 = and i32 %40, 255
%42 = call i32 @SendChar(i32 %41)
%43 = load i16, i16* %8
%44 = zext i16 %43 to i32
%45 = and i32 %44, 255
%46 = call i32 @SendChar(i32 %45)
%47 = call i32 @SendChar(i32 255)
%48 = call i32 @SendChar(i32 252)
%49 = call i32 @SendChar(i32 255)
%50 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @GUI_Line(i16 zeroext %0, i16 zeroext %1, i16 zeroext %2, i16 zeroext %3) {
%5 = tail call i32 @SendChar(i32 238)
%6 = tail call i32 @SendChar(i32 81)
%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 i16 %3 to i32
%23 = lshr i32 %22, 8
%24 = tail call i32 @SendChar(i32 %23)
%25 = and i32 %22, 255
%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
}