#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 width;
typedef int height;
typedef int enable;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void SetFont_Region(unsigned char enable, unsigned short int width,
                    unsigned short int height) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x45) & 0xFF);
  SendChar((enable)&0xFF);
  SendChar(((width) >> 8) & 0xFF);
  SendChar((width)&0xFF);
  SendChar(((height) >> 8) & 0xFF);
  SendChar((height)&0xFF);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<SetFont_Region>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dx,%ax
mov    %si,%cx
mov    %dil,%dl
mov    %dl,-0x1(%rbp)
mov    %cx,-0x4(%rbp)
mov    %ax,-0x6(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x45,%edi
call   1030 <SendChar@plt>
movzbl -0x1(%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):
<SetFont_Region>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x45,%edi
call   1030 <SendChar@plt>
mov    %ebx,%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 @SetFont_Region(i8 zeroext %0, i16 zeroext %1, i16 zeroext %2) {
%4 = alloca i8
%5 = alloca i16
%6 = alloca i16
store i8 %0, i8* %4
store i16 %1, i16* %5
store i16 %2, i16* %6
%7 = call i32 @SendChar(i32 238)
%8 = call i32 @SendChar(i32 69)
%9 = load i8, i8* %4
%10 = zext i8 %9 to i32
%11 = and i32 %10, 255
%12 = call i32 @SendChar(i32 %11)
%13 = load i16, i16* %5
%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* %5
%19 = zext i16 %18 to i32
%20 = and i32 %19, 255
%21 = call i32 @SendChar(i32 %20)
%22 = load i16, i16* %6
%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* %6
%28 = zext i16 %27 to i32
%29 = and i32 %28, 255
%30 = call i32 @SendChar(i32 %29)
%31 = call i32 @SendChar(i32 255)
%32 = call i32 @SendChar(i32 252)
%33 = call i32 @SendChar(i32 255)
%34 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @SetFont_Region(i8 zeroext %0, i16 zeroext %1, i16 zeroext %2) {
%4 = tail call i32 @SendChar(i32 238)
%5 = tail call i32 @SendChar(i32 69)
%6 = zext i8 %0 to i32
%7 = tail call i32 @SendChar(i32 %6)
%8 = zext i16 %1 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 %2 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 = tail call i32 @SendChar(i32 255)
%19 = tail call i32 @SendChar(i32 252)
%20 = tail call i32 @SendChar(i32 255)
%21 = tail call i32 @SendChar(i32 255)
ret void
}