#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 type;
typedef int show;
typedef int option;
typedef int max_len;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void ShowKeyboard(unsigned char show, unsigned short int x,
                  unsigned short int y, unsigned char type,
                  unsigned char option, unsigned char max_len) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x86) & 0xFF);
  SendChar((show)&0xFF);
  SendChar(((x) >> 8) & 0xFF);
  SendChar((x)&0xFF);
  SendChar(((y) >> 8) & 0xFF);
  SendChar((y)&0xFF);
  SendChar((type)&0xFF);
  SendChar((option)&0xFF);
  SendChar((max_len)&0xFF);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<ShowKeyboard>:
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    %r9b,%al
mov    %r8b,-0x1(%rbp)
mov    %di,-0x4(%rbp)
mov    %si,-0x6(%rbp)
mov    %dl,-0x7(%rbp)
mov    %cl,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x86,%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>
movzbl -0x9(%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):
<ShowKeyboard>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r14d
mov    %r8d,%r15d
mov    %ecx,%r12d
mov    %edx,%r13d
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x86,%edi
call   1030 <SendChar@plt>
mov    %ebp,%edi
call   1030 <SendChar@plt>
mov    %ebx,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %bl,%edi
call   1030 <SendChar@plt>
mov    %r13d,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %r13b,%edi
call   1030 <SendChar@plt>
mov    %r12d,%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
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <SendChar@plt>

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

LLVM IR (-O2):
define void @ShowKeyboard(i8 zeroext %0, i16 zeroext %1, i16 zeroext %2, i8 zeroext %3, i8 zeroext %4, i8 zeroext %5) {
%7 = tail call i32 @SendChar(i32 238)
%8 = tail call i32 @SendChar(i32 134)
%9 = zext i8 %0 to i32
%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 = zext i8 %3 to i32
%22 = tail call i32 @SendChar(i32 %21)
%23 = zext i8 %4 to i32
%24 = tail call i32 @SendChar(i32 %23)
%25 = zext i8 %5 to i32
%26 = tail call i32 @SendChar(i32 %25)
%27 = tail call i32 @SendChar(i32 255)
%28 = tail call i32 @SendChar(i32 252)
%29 = tail call i32 @SendChar(i32 255)
%30 = tail call i32 @SendChar(i32 255)
ret void
}