#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 mode;
typedef int font;
typedef int enable;
typedef int color;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void GUI_DispRTC(unsigned char enable, unsigned char mode, unsigned char font,
                 unsigned short int color, unsigned short int x,
                 unsigned short int y) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x85) & 0xFF);
  SendChar((enable)&0xFF);
  SendChar((mode)&0xFF);
  SendChar((font)&0xFF);
  SendChar(((color) >> 8) & 0xFF);
  SendChar((color)&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_DispRTC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %r8d,-0x1c(%rbp)
mov    %ecx,%eax
mov    -0x1c(%rbp),%ecx
mov    %eax,-0x18(%rbp)
mov    %edx,%eax
mov    -0x18(%rbp),%edx
mov    %eax,-0x14(%rbp)
mov    %esi,%eax
mov    -0x14(%rbp),%esi
mov    %eax,-0x10(%rbp)
mov    %edi,%r8d
mov    -0x10(%rbp),%edi
mov    %r9w,%ax
mov    %r8b,-0x1(%rbp)
mov    %dil,-0x2(%rbp)
mov    %sil,-0x3(%rbp)
mov    %dx,-0x6(%rbp)
mov    %cx,-0x8(%rbp)
mov    %ax,-0xa(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x85,%edi
call   1030 <SendChar@plt>
movzbl -0x1(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzbl -0x2(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzbl -0x3(%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    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GUI_DispRTC>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r14d
mov    %r8d,%r15d
mov    %ecx,%ebx
mov    %edx,%r12d
mov    %esi,%r13d
mov    %edi,%ebp
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x85,%edi
call   1030 <SendChar@plt>
mov    %ebp,%edi
call   1030 <SendChar@plt>
mov    %r13d,%edi
call   1030 <SendChar@plt>
mov    %r12d,%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    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <SendChar@plt>

LLVM IR (-O0):
define void @GUI_DispRTC(i8 zeroext %0, i8 zeroext %1, i8 zeroext %2, i16 zeroext %3, i16 zeroext %4, i16 zeroext %5) {
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
%10 = alloca i16
%11 = alloca i16
%12 = alloca i16
store i8 %0, i8* %7
store i8 %1, i8* %8
store i8 %2, i8* %9
store i16 %3, i16* %10
store i16 %4, i16* %11
store i16 %5, i16* %12
%13 = call i32 @SendChar(i32 238)
%14 = call i32 @SendChar(i32 133)
%15 = load i8, i8* %7
%16 = zext i8 %15 to i32
%17 = and i32 %16, 255
%18 = call i32 @SendChar(i32 %17)
%19 = load i8, i8* %8
%20 = zext i8 %19 to i32
%21 = and i32 %20, 255
%22 = call i32 @SendChar(i32 %21)
%23 = load i8, i8* %9
%24 = zext i8 %23 to i32
%25 = and i32 %24, 255
%26 = call i32 @SendChar(i32 %25)
%27 = load i16, i16* %10
%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* %10
%33 = zext i16 %32 to i32
%34 = and i32 %33, 255
%35 = call i32 @SendChar(i32 %34)
%36 = load i16, i16* %11
%37 = zext i16 %36 to i32
%38 = ashr i32 %37, 8
%39 = and i32 %38, 255
%40 = call i32 @SendChar(i32 %39)
%41 = load i16, i16* %11
%42 = zext i16 %41 to i32
%43 = and i32 %42, 255
%44 = call i32 @SendChar(i32 %43)
%45 = load i16, i16* %12
%46 = zext i16 %45 to i32
%47 = ashr i32 %46, 8
%48 = and i32 %47, 255
%49 = call i32 @SendChar(i32 %48)
%50 = load i16, i16* %12
%51 = zext i16 %50 to i32
%52 = and i32 %51, 255
%53 = call i32 @SendChar(i32 %52)
%54 = call i32 @SendChar(i32 255)
%55 = call i32 @SendChar(i32 252)
%56 = call i32 @SendChar(i32 255)
%57 = call i32 @SendChar(i32 255)
ret void
}

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