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

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void DisCursor(unsigned char enable, unsigned short int x, unsigned short int y,
               unsigned char width, unsigned char height) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x21) & 0xFF);
  SendChar((enable)&0xFF);
  SendChar(((x) >> 8) & 0xFF);
  SendChar((x)&0xFF);
  SendChar(((y) >> 8) & 0xFF);
  SendChar((y)&0xFF);
  SendChar((width)&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):
<DisCursor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %r8b,%al
mov    %dil,-0x1(%rbp)
mov    %si,-0x4(%rbp)
mov    %dx,-0x6(%rbp)
mov    %cl,-0x7(%rbp)
mov    %al,-0x8(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x21,%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>
movzbl -0x7(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzbl -0x8(%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):
<DisCursor>:
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    $0x21,%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    %r12d,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %r12b,%edi
call   1030 <SendChar@plt>
mov    %r15d,%edi
call   1030 <SendChar@plt>
mov    %r14d,%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 @DisCursor(i8 zeroext %0, i16 zeroext %1, i16 zeroext %2, i8 zeroext %3, i8 zeroext %4) {
%6 = alloca i8
%7 = alloca i16
%8 = alloca i16
%9 = alloca i8
%10 = alloca i8
store i8 %0, i8* %6
store i16 %1, i16* %7
store i16 %2, i16* %8
store i8 %3, i8* %9
store i8 %4, i8* %10
%11 = call i32 @SendChar(i32 238)
%12 = call i32 @SendChar(i32 33)
%13 = load i8, i8* %6
%14 = zext i8 %13 to i32
%15 = and i32 %14, 255
%16 = call i32 @SendChar(i32 %15)
%17 = load i16, i16* %7
%18 = zext i16 %17 to i32
%19 = ashr i32 %18, 8
%20 = and i32 %19, 255
%21 = call i32 @SendChar(i32 %20)
%22 = load i16, i16* %7
%23 = zext i16 %22 to i32
%24 = and i32 %23, 255
%25 = call i32 @SendChar(i32 %24)
%26 = load i16, i16* %8
%27 = zext i16 %26 to i32
%28 = ashr i32 %27, 8
%29 = and i32 %28, 255
%30 = call i32 @SendChar(i32 %29)
%31 = load i16, i16* %8
%32 = zext i16 %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 = zext i8 %39 to i32
%41 = and i32 %40, 255
%42 = call i32 @SendChar(i32 %41)
%43 = call i32 @SendChar(i32 255)
%44 = call i32 @SendChar(i32 252)
%45 = call i32 @SendChar(i32 255)
%46 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @DisCursor(i8 zeroext %0, i16 zeroext %1, i16 zeroext %2, i8 zeroext %3, i8 zeroext %4) {
%6 = tail call i32 @SendChar(i32 238)
%7 = tail call i32 @SendChar(i32 33)
%8 = zext i8 %0 to i32
%9 = tail call i32 @SendChar(i32 %8)
%10 = zext i16 %1 to i32
%11 = lshr i32 %10, 8
%12 = tail call i32 @SendChar(i32 %11)
%13 = and i32 %10, 255
%14 = tail call i32 @SendChar(i32 %13)
%15 = zext i16 %2 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 i8 %3 to i32
%21 = tail call i32 @SendChar(i32 %20)
%22 = zext i8 %4 to i32
%23 = tail call i32 @SendChar(i32 %22)
%24 = tail call i32 @SendChar(i32 255)
%25 = tail call i32 @SendChar(i32 252)
%26 = tail call i32 @SendChar(i32 255)
%27 = tail call i32 @SendChar(i32 255)
ret void
}