#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 mode;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
int /*<<< orphan*/ SendNU16(unsigned short *, unsigned short);
void GUI_ConDots(unsigned char mode, unsigned short int *dot,
                 unsigned short int dot_cnt) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x63) & 0xFF);
  SendChar((mode)&0xFF);
  SendNU16((unsigned short int *)dot, dot_cnt * 2);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<GUI_ConDots>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dx,%ax
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %ax,-0x12(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x63,%edi
call   1030 <SendChar@plt>
movzbl -0x1(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
mov    -0x10(%rbp),%rdi
movzwl -0x12(%rbp),%eax
shl    $0x1,%eax
movzwl %ax,%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_ConDots>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebx
mov    %rsi,%r14
mov    %edi,%ebp
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x63,%edi
call   1030 <SendChar@plt>
mov    %ebp,%edi
call   1030 <SendChar@plt>
add    %ebx,%ebx
movzwl %bx,%esi
mov    %r14,%rdi
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
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <SendChar@plt>

LLVM IR (-O0):
define void @GUI_ConDots(i8 zeroext %0, i16* %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 99)
%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 = load i16, i16* %6
%15 = zext i16 %14 to i32
%16 = mul nsw i32 %15, 2
%17 = trunc i32 %16 to i16
%18 = call i32 @SendNU16(i16* %13, i16 zeroext %17)
%19 = call i32 @SendChar(i32 255)
%20 = call i32 @SendChar(i32 252)
%21 = call i32 @SendChar(i32 255)
%22 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @GUI_ConDots(i8 zeroext %0, i16* %1, i16 zeroext %2) {
%4 = tail call i32 @SendChar(i32 238)
%5 = tail call i32 @SendChar(i32 99)
%6 = zext i8 %0 to i32
%7 = tail call i32 @SendChar(i32 %6)
%8 = shl i16 %2, 1
%9 = tail call i32 @SendNU16(i16* %1, i16 zeroext %8)
%10 = tail call i32 @SendChar(i32 255)
%11 = tail call i32 @SendChar(i32 252)
%12 = tail call i32 @SendChar(i32 255)
%13 = tail call i32 @SendChar(i32 255)
ret void
}