#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 masken;
typedef int image_id;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void DisFull_Image(unsigned short int image_id, unsigned char masken) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x31) & 0xFF);
  SendChar(((image_id) >> 8) & 0xFF);
  SendChar((image_id)&0xFF);
  SendChar((masken)&0xFF);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<DisFull_Image>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %di,%cx
mov    %cx,-0x2(%rbp)
mov    %al,-0x3(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x31,%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>
movzbl -0x3(%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):
<DisFull_Image>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x31,%edi
call   1030 <SendChar@plt>
mov    %ebp,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %bpl,%edi
call   1030 <SendChar@plt>
mov    %ebx,%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    %rbp
jmp    1030 <SendChar@plt>

LLVM IR (-O0):
define void @DisFull_Image(i16 zeroext %0, i8 zeroext %1) {
%3 = alloca i16
%4 = alloca i8
store i16 %0, i16* %3
store i8 %1, i8* %4
%5 = call i32 @SendChar(i32 238)
%6 = call i32 @SendChar(i32 49)
%7 = load i16, i16* %3
%8 = zext i16 %7 to i32
%9 = ashr i32 %8, 8
%10 = and i32 %9, 255
%11 = call i32 @SendChar(i32 %10)
%12 = load i16, i16* %3
%13 = zext i16 %12 to i32
%14 = and i32 %13, 255
%15 = call i32 @SendChar(i32 %14)
%16 = load i8, i8* %4
%17 = zext i8 %16 to i32
%18 = and i32 %17, 255
%19 = call i32 @SendChar(i32 %18)
%20 = call i32 @SendChar(i32 255)
%21 = call i32 @SendChar(i32 252)
%22 = call i32 @SendChar(i32 255)
%23 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @DisFull_Image(i16 zeroext %0, i8 zeroext %1) {
%3 = tail call i32 @SendChar(i32 238)
%4 = tail call i32 @SendChar(i32 49)
%5 = zext i16 %0 to i32
%6 = lshr i32 %5, 8
%7 = tail call i32 @SendChar(i32 %6)
%8 = and i32 %5, 255
%9 = tail call i32 @SendChar(i32 %8)
%10 = zext i8 %1 to i32
%11 = tail call i32 @SendChar(i32 %10)
%12 = tail call i32 @SendChar(i32 255)
%13 = tail call i32 @SendChar(i32 252)
%14 = tail call i32 @SendChar(i32 255)
%15 = tail call i32 @SendChar(i32 255)
ret void
}