#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 x_space;
typedef int x;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
int /*<<< orphan*/ SendNU16(unsigned short *, unsigned short);
void GUI_ConSpaceDots(unsigned short int x, unsigned short int x_space,
                      unsigned short int *dot_y, unsigned short int dot_cnt) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x59) & 0xFF);
  SendChar(((x) >> 8) & 0xFF);
  SendChar((x)&0xFF);
  SendChar(((x_space) >> 8) & 0xFF);
  SendChar((x_space)&0xFF);
  SendNU16((unsigned short int *)dot_y, dot_cnt);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<GUI_ConSpaceDots>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %cx,%ax
mov    %si,%cx
mov    %di,%si
mov    %si,-0x2(%rbp)
mov    %cx,-0x4(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ax,-0x12(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x59,%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>
mov    -0x10(%rbp),%rdi
movzwl -0x12(%rbp),%esi
call   1040 <SendNU16@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_ConSpaceDots>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %rdx,%r15
mov    %esi,%ebp
mov    %edi,%ebx
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x59,%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    %r15,%rdi
mov    %r14d,%esi
call   1040 <SendNU16@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    %r14
pop    %r15
pop    %rbp
jmp    1030 <SendChar@plt>

LLVM IR (-O0):
define void @GUI_ConSpaceDots(i16 zeroext %0, i16 zeroext %1, i16* %2, i16 zeroext %3) {
%5 = alloca i16
%6 = alloca i16
%7 = alloca i16*
%8 = alloca i16
store i16 %0, i16* %5
store i16 %1, i16* %6
store i16* %2, i16** %7
store i16 %3, i16* %8
%9 = call i32 @SendChar(i32 238)
%10 = call i32 @SendChar(i32 89)
%11 = load i16, i16* %5
%12 = zext i16 %11 to i32
%13 = ashr i32 %12, 8
%14 = and i32 %13, 255
%15 = call i32 @SendChar(i32 %14)
%16 = load i16, i16* %5
%17 = zext i16 %16 to i32
%18 = and i32 %17, 255
%19 = call i32 @SendChar(i32 %18)
%20 = load i16, i16* %6
%21 = zext i16 %20 to i32
%22 = ashr i32 %21, 8
%23 = and i32 %22, 255
%24 = call i32 @SendChar(i32 %23)
%25 = load i16, i16* %6
%26 = zext i16 %25 to i32
%27 = and i32 %26, 255
%28 = call i32 @SendChar(i32 %27)
%29 = load i16*, i16** %7
%30 = load i16, i16* %8
%31 = call i32 @SendNU16(i16* %29, i16 zeroext %30)
%32 = call i32 @SendChar(i32 255)
%33 = call i32 @SendChar(i32 252)
%34 = call i32 @SendChar(i32 255)
%35 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @GUI_ConSpaceDots(i16 zeroext %0, i16 zeroext %1, i16* %2, i16 zeroext %3) {
%5 = tail call i32 @SendChar(i32 238)
%6 = tail call i32 @SendChar(i32 89)
%7 = zext i16 %0 to i32
%8 = lshr i32 %7, 8
%9 = tail call i32 @SendChar(i32 %8)
%10 = and i32 %7, 255
%11 = tail call i32 @SendChar(i32 %10)
%12 = zext i16 %1 to i32
%13 = lshr i32 %12, 8
%14 = tail call i32 @SendChar(i32 %13)
%15 = and i32 %12, 255
%16 = tail call i32 @SendChar(i32 %15)
%17 = tail call i32 @SendNU16(i16* %2, i16 zeroext %3)
%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
}