#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 enable;
typedef int bl_on_time;
typedef int bl_on_level;
typedef int bl_off_level;

/* Variables and functions */
int /*<<< orphan*/ SendChar(int);
void SetPowerSaving(unsigned char enable, unsigned char bl_off_level,
                    unsigned char bl_on_level, unsigned char bl_on_time) {
  SendChar((0XEE) & 0xFF);
  SendChar((0x77) & 0xFF);
  SendChar((enable)&0xFF);
  SendChar((bl_off_level)&0xFF);
  SendChar((bl_on_level)&0xFF);
  SendChar((bl_on_time)&0xFF);
  SendChar((((0XFFFCFFFF) >> 16) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) >> 16) & 0xFF);
  SendChar((((0XFFFCFFFF) & 0xFFFF) >> 8) & 0xFF);
  SendChar(((0XFFFCFFFF) & 0xFFFF) & 0xFF);
}


x86 assembly (clang, -O0):
<SetPowerSaving>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %cl,%al
mov    %dl,%cl
mov    %sil,%dl
mov    %dil,%sil
mov    %sil,-0x1(%rbp)
mov    %dl,-0x2(%rbp)
mov    %cl,-0x3(%rbp)
mov    %al,-0x4(%rbp)
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x77,%edi
call   1030 <SendChar@plt>
movzbl -0x1(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzbl -0x2(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzbl -0x3(%rbp),%edi
and    $0xff,%edi
call   1030 <SendChar@plt>
movzbl -0x4(%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):
<SetPowerSaving>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0xee,%edi
call   1030 <SendChar@plt>
mov    $0x77,%edi
call   1030 <SendChar@plt>
mov    %ebp,%edi
call   1030 <SendChar@plt>
mov    %ebx,%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    %r14
pop    %r15
pop    %rbp
jmp    1030 <SendChar@plt>

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

LLVM IR (-O2):
define void @SetPowerSaving(i8 zeroext %0, i8 zeroext %1, i8 zeroext %2, i8 zeroext %3) {
%5 = tail call i32 @SendChar(i32 238)
%6 = tail call i32 @SendChar(i32 119)
%7 = zext i8 %0 to i32
%8 = tail call i32 @SendChar(i32 %7)
%9 = zext i8 %1 to i32
%10 = tail call i32 @SendChar(i32 %9)
%11 = zext i8 %2 to i32
%12 = tail call i32 @SendChar(i32 %11)
%13 = zext i8 %3 to i32
%14 = tail call i32 @SendChar(i32 %13)
%15 = tail call i32 @SendChar(i32 255)
%16 = tail call i32 @SendChar(i32 252)
%17 = tail call i32 @SendChar(i32 255)
%18 = tail call i32 @SendChar(i32 255)
ret void
}