#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 font;
typedef int back;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
int /*<<< orphan*/ SendStrings(unsigned char *);
void DisText(unsigned short int x, unsigned short int y, unsigned char back,
             unsigned char font, unsigned char *strings) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x20) & 0xFF);
  SendChar(((x) >> 8) & 0xFF);
  SendChar((x)&0xFF);
  SendChar(((y) >> 8) & 0xFF);
  SendChar((y)&0xFF);
  SendChar((back)&0xFF);
  SendChar((font)&0xFF);
  SendStrings(strings);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<DisText>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %cl,%al
mov    %dl,%cl
mov    %si,%dx
mov    %di,%si
mov    %si,-0x2(%rbp)
mov    %dx,-0x4(%rbp)
mov    %cl,-0x5(%rbp)
mov    %al,-0x6(%rbp)
mov    %r8,-0x10(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x20,%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>
movzbl -0x5(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzbl -0x6(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
mov    -0x10(%rbp),%rdi
call   1040 <SendStrings@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):
<DisText>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8,%r14
mov    %ecx,%r15d
mov    %edx,%r12d
mov    %esi,%ebp
mov    %edi,%ebx
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x20,%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
call   1030 <SendChar@plt>
mov    %r15d,%edi
call   1030 <SendChar@plt>
mov    %r14,%rdi
call   1040 <SendStrings@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 @DisText(i16 zeroext %0, i16 zeroext %1, i8 zeroext %2, i8 zeroext %3, i8* %4) {
%6 = alloca i16
%7 = alloca i16
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8*
store i16 %0, i16* %6
store i16 %1, i16* %7
store i8 %2, i8* %8
store i8 %3, i8* %9
store i8* %4, i8** %10
%11 = call i32 @SendChar(i32 238)
%12 = call i32 @SendChar(i32 32)
%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 i8, i8* %8
%32 = zext i8 %31 to i32
%33 = and i32 %32, 255
%34 = call i32 @SendChar(i32 %33)
%35 = load i8, i8* %9
%36 = zext i8 %35 to i32
%37 = and i32 %36, 255
%38 = call i32 @SendChar(i32 %37)
%39 = load i8*, i8** %10
%40 = call i32 @SendStrings(i8* %39)
%41 = call i32 @SendChar(i32 255)
%42 = call i32 @SendChar(i32 252)
%43 = call i32 @SendChar(i32 255)
%44 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @DisText(i16 zeroext %0, i16 zeroext %1, i8 zeroext %2, i8 zeroext %3, i8* %4) {
%6 = tail call i32 @SendChar(i32 238)
%7 = tail call i32 @SendChar(i32 32)
%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 i8 %2 to i32
%19 = tail call i32 @SendChar(i32 %18)
%20 = zext i8 %3 to i32
%21 = tail call i32 @SendChar(i32 %20)
%22 = tail call i32 @SendStrings(i8* %4)
%23 = tail call i32 @SendChar(i32 255)
%24 = tail call i32 @SendChar(i32 252)
%25 = tail call i32 @SendChar(i32 255)
%26 = tail call i32 @SendChar(i32 255)
ret void
}