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

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


x86 assembly (clang, -O0):
<GUI_CircleFill>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dx,%ax
mov    %si,%cx
mov    %di,%dx
mov    %dx,-0x2(%rbp)
mov    %cx,-0x4(%rbp)
mov    %ax,-0x6(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x53,%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>
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_CircleFill>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x53,%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    %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    %r14
pop    %rbp
jmp    1030 <SendChar@plt>

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

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