#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 masken;
typedef int image_y;
typedef int image_x;
typedef int image_w;
typedef int image_l;
typedef int image_id;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void DisCut_Image(unsigned short int x, unsigned short int y,
                  unsigned short int image_id, unsigned short int image_x,
                  unsigned short int image_y, unsigned short int image_l,
                  unsigned short int image_w, unsigned char masken) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x33) & 0xFF);
  SendChar(((x) >> 8) & 0xFF);
  SendChar((x)&0xFF);
  SendChar(((y) >> 8) & 0xFF);
  SendChar((y)&0xFF);
  SendChar(((image_id) >> 8) & 0xFF);
  SendChar((image_id)&0xFF);
  SendChar(((image_x) >> 8) & 0xFF);
  SendChar((image_x)&0xFF);
  SendChar(((image_y) >> 8) & 0xFF);
  SendChar((image_y)&0xFF);
  SendChar(((image_l) >> 8) & 0xFF);
  SendChar((image_l)&0xFF);
  SendChar(((image_w) >> 8) & 0xFF);
  SendChar((image_w)&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):
<DisCut_Image>:
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    %r9w,%ax
mov    0x18(%rbp),%r9b
mov    0x10(%rbp),%r9w
mov    %r8w,-0x2(%rbp)
mov    %di,-0x4(%rbp)
mov    %si,-0x6(%rbp)
mov    %dx,-0x8(%rbp)
mov    %cx,-0xa(%rbp)
mov    %ax,-0xc(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x33,%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>
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>
movzwl -0x8(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -0x8(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -0xa(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -0xa(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -0xc(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl -0xc(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl 0x10(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzwl 0x10(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzbl 0x18(%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):
<DisCut_Image>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r15d
mov    %r8d,%r12d
mov    %ecx,%r13d
mov    %edx,%ebx
mov    %esi,%ebp
mov    %edi,%r14d
movzbl 0x48(%rsp),%eax
mov    %eax,0x4(%rsp)
movzwl 0x40(%rsp),%eax
mov    %eax,(%rsp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x33,%edi
call   1030 <SendChar@plt>
mov    %r14d,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %r14b,%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
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
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %r12b,%edi
call   1030 <SendChar@plt>
mov    %r15d,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %r15b,%edi
call   1030 <SendChar@plt>
mov    (%rsp),%ebx
mov    %ebx,%edi
shr    $0x8,%edi
call   1030 <SendChar@plt>
movzbl %bl,%edi
call   1030 <SendChar@plt>
mov    0x4(%rsp),%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 @DisCut_Image(i16 zeroext %0, i16 zeroext %1, i16 zeroext %2, i16 zeroext %3, i16 zeroext %4, i16 zeroext %5, i16 zeroext %6, i8 zeroext %7) {
%9 = alloca i16
%10 = alloca i16
%11 = alloca i16
%12 = alloca i16
%13 = alloca i16
%14 = alloca i16
%15 = alloca i16
%16 = alloca i8
store i16 %0, i16* %9
store i16 %1, i16* %10
store i16 %2, i16* %11
store i16 %3, i16* %12
store i16 %4, i16* %13
store i16 %5, i16* %14
store i16 %6, i16* %15
store i8 %7, i8* %16
%17 = call i32 @SendChar(i32 238)
%18 = call i32 @SendChar(i32 51)
%19 = load i16, i16* %9
%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* %9
%25 = zext i16 %24 to i32
%26 = and i32 %25, 255
%27 = call i32 @SendChar(i32 %26)
%28 = load i16, i16* %10
%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* %10
%34 = zext i16 %33 to i32
%35 = and i32 %34, 255
%36 = call i32 @SendChar(i32 %35)
%37 = load i16, i16* %11
%38 = zext i16 %37 to i32
%39 = ashr i32 %38, 8
%40 = and i32 %39, 255
%41 = call i32 @SendChar(i32 %40)
%42 = load i16, i16* %11
%43 = zext i16 %42 to i32
%44 = and i32 %43, 255
%45 = call i32 @SendChar(i32 %44)
%46 = load i16, i16* %12
%47 = zext i16 %46 to i32
%48 = ashr i32 %47, 8
%49 = and i32 %48, 255
%50 = call i32 @SendChar(i32 %49)
%51 = load i16, i16* %12
%52 = zext i16 %51 to i32
%53 = and i32 %52, 255
%54 = call i32 @SendChar(i32 %53)
%55 = load i16, i16* %13
%56 = zext i16 %55 to i32
%57 = ashr i32 %56, 8
%58 = and i32 %57, 255
%59 = call i32 @SendChar(i32 %58)
%60 = load i16, i16* %13
%61 = zext i16 %60 to i32
%62 = and i32 %61, 255
%63 = call i32 @SendChar(i32 %62)
%64 = load i16, i16* %14
%65 = zext i16 %64 to i32
%66 = ashr i32 %65, 8
%67 = and i32 %66, 255
%68 = call i32 @SendChar(i32 %67)
%69 = load i16, i16* %14
%70 = zext i16 %69 to i32
%71 = and i32 %70, 255
%72 = call i32 @SendChar(i32 %71)
%73 = load i16, i16* %15
%74 = zext i16 %73 to i32
%75 = ashr i32 %74, 8
%76 = and i32 %75, 255
%77 = call i32 @SendChar(i32 %76)
%78 = load i16, i16* %15
%79 = zext i16 %78 to i32
%80 = and i32 %79, 255
%81 = call i32 @SendChar(i32 %80)
%82 = load i8, i8* %16
%83 = zext i8 %82 to i32
%84 = and i32 %83, 255
%85 = call i32 @SendChar(i32 %84)
%86 = call i32 @SendChar(i32 255)
%87 = call i32 @SendChar(i32 252)
%88 = call i32 @SendChar(i32 255)
%89 = call i32 @SendChar(i32 255)
ret void
}

LLVM IR (-O2):
define void @DisCut_Image(i16 zeroext %0, i16 zeroext %1, i16 zeroext %2, i16 zeroext %3, i16 zeroext %4, i16 zeroext %5, i16 zeroext %6, i8 zeroext %7) {
%9 = tail call i32 @SendChar(i32 238)
%10 = tail call i32 @SendChar(i32 51)
%11 = zext i16 %0 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 %1 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 i16 %2 to i32
%22 = lshr i32 %21, 8
%23 = tail call i32 @SendChar(i32 %22)
%24 = and i32 %21, 255
%25 = tail call i32 @SendChar(i32 %24)
%26 = zext i16 %3 to i32
%27 = lshr i32 %26, 8
%28 = tail call i32 @SendChar(i32 %27)
%29 = and i32 %26, 255
%30 = tail call i32 @SendChar(i32 %29)
%31 = zext i16 %4 to i32
%32 = lshr i32 %31, 8
%33 = tail call i32 @SendChar(i32 %32)
%34 = and i32 %31, 255
%35 = tail call i32 @SendChar(i32 %34)
%36 = zext i16 %5 to i32
%37 = lshr i32 %36, 8
%38 = tail call i32 @SendChar(i32 %37)
%39 = and i32 %36, 255
%40 = tail call i32 @SendChar(i32 %39)
%41 = zext i16 %6 to i32
%42 = lshr i32 %41, 8
%43 = tail call i32 @SendChar(i32 %42)
%44 = and i32 %41, 255
%45 = tail call i32 @SendChar(i32 %44)
%46 = zext i8 %7 to i32
%47 = tail call i32 @SendChar(i32 %46)
%48 = tail call i32 @SendChar(i32 255)
%49 = tail call i32 @SendChar(i32 252)
%50 = tail call i32 @SendChar(i32 255)
%51 = tail call i32 @SendChar(i32 255)
ret void
}