#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 sa;
typedef int r;
typedef int ea;

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


x86 assembly (clang, -O0):
<GUI_Arc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %r8w,%ax
mov    %di,-0x2(%rbp)
mov    %si,-0x4(%rbp)
mov    %dx,-0x6(%rbp)
mov    %cx,-0x8(%rbp)
mov    %ax,-0xa(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x67,%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>
movzwl -0xa(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -0xa(%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_Arc>:
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    $0x67,%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
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
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <SendChar@plt>

LLVM IR (-O0):
define void @GUI_Arc(i16 zeroext %0, i16 zeroext %1, i16 zeroext %2, i16 zeroext %3, i16 zeroext %4) {
%6 = alloca i16
%7 = alloca i16
%8 = alloca i16
%9 = alloca i16
%10 = alloca i16
store i16 %0, i16* %6
store i16 %1, i16* %7
store i16 %2, i16* %8
store i16 %3, i16* %9
store i16 %4, i16* %10
%11 = call i32 @SendChar(i32 238)
%12 = call i32 @SendChar(i32 103)
%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 i16, i16* %9
%41 = zext i16 %40 to i32
%42 = ashr i32 %41, 8
%43 = and i32 %42, 255
%44 = call i32 @SendChar(i32 %43)
%45 = load i16, i16* %9
%46 = zext i16 %45 to i32
%47 = and i32 %46, 255
%48 = call i32 @SendChar(i32 %47)
%49 = load i16, i16* %10
%50 = zext i16 %49 to i32
%51 = ashr i32 %50, 8
%52 = and i32 %51, 255
%53 = call i32 @SendChar(i32 %52)
%54 = load i16, i16* %10
%55 = zext i16 %54 to i32
%56 = and i32 %55, 255
%57 = call i32 @SendChar(i32 %56)
%58 = call i32 @SendChar(i32 255)
%59 = call i32 @SendChar(i32 252)
%60 = call i32 @SendChar(i32 255)
%61 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @GUI_Arc(i16 zeroext %0, i16 zeroext %1, i16 zeroext %2, i16 zeroext %3, i16 zeroext %4) {
%6 = tail call i32 @SendChar(i32 238)
%7 = tail call i32 @SendChar(i32 103)
%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 i16 %3 to i32
%24 = lshr i32 %23, 8
%25 = tail call i32 @SendChar(i32 %24)
%26 = and i32 %23, 255
%27 = tail call i32 @SendChar(i32 %26)
%28 = zext i16 %4 to i32
%29 = lshr i32 %28, 8
%30 = tail call i32 @SendChar(i32 %29)
%31 = and i32 %28, 255
%32 = tail call i32 @SendChar(i32 %31)
%33 = tail call i32 @SendChar(i32 255)
%34 = tail call i32 @SendChar(i32 252)
%35 = tail call i32 @SendChar(i32 255)
%36 = tail call i32 @SendChar(i32 255)
ret void
}