#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 */

/* Variables and functions */
int /*<<< orphan*/ LCD_CtrlWrite_ILI9325(int, int);
int /*<<< orphan*/ delayms(int);
void LCD_EnterSleep_lil9325(void) {
  LCD_CtrlWrite_ILI9325(0x0007, 0x0131);
  delayms(10);
  LCD_CtrlWrite_ILI9325(0x0007, 0x0130);
  delayms(10);
  LCD_CtrlWrite_ILI9325(0x0007, 0x0000);
  LCD_CtrlWrite_ILI9325(0x0010, 0x0000);
  LCD_CtrlWrite_ILI9325(0x0011, 0x0000);
  LCD_CtrlWrite_ILI9325(0x0012, 0x0000);
  LCD_CtrlWrite_ILI9325(0x0013, 0x0000);
  delayms(200);
  LCD_CtrlWrite_ILI9325(0x0010, 0x0002);
}


x86 assembly (clang, -O0):
<LCD_EnterSleep_lil9325>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7,%edi
mov    $0x131,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0xa,%edi
call   1030 <delayms@plt>
mov    $0x7,%edi
mov    $0x130,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0xa,%edi
call   1030 <delayms@plt>
mov    $0x7,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x10,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x11,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x12,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x13,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0xc8,%edi
call   1030 <delayms@plt>
mov    $0x10,%edi
mov    $0x2,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<LCD_EnterSleep_lil9325>:
push   %rax
mov    $0x7,%edi
mov    $0x131,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0xa,%edi
call   1030 <delayms@plt>
mov    $0x7,%edi
mov    $0x130,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0xa,%edi
call   1030 <delayms@plt>
mov    $0x7,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x10,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x11,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x12,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x13,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0xc8,%edi
call   1030 <delayms@plt>
mov    $0x10,%edi
mov    $0x2,%esi
pop    %rax
jmp    1040 <LCD_CtrlWrite_ILI9325@plt>

LLVM IR (-O0):
define void @LCD_EnterSleep_lil9325() {
%1 = call i32 @LCD_CtrlWrite_ILI9325(i32 7, i32 305)
%2 = call i32 @delayms(i32 10)
%3 = call i32 @LCD_CtrlWrite_ILI9325(i32 7, i32 304)
%4 = call i32 @delayms(i32 10)
%5 = call i32 @LCD_CtrlWrite_ILI9325(i32 7, i32 0)
%6 = call i32 @LCD_CtrlWrite_ILI9325(i32 16, i32 0)
%7 = call i32 @LCD_CtrlWrite_ILI9325(i32 17, i32 0)
%8 = call i32 @LCD_CtrlWrite_ILI9325(i32 18, i32 0)
%9 = call i32 @LCD_CtrlWrite_ILI9325(i32 19, i32 0)
%10 = call i32 @delayms(i32 200)
%11 = call i32 @LCD_CtrlWrite_ILI9325(i32 16, i32 2)
ret void
}

LLVM IR (-O2):
define void @LCD_EnterSleep_lil9325() {
%1 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 7, i32 305)
%2 = tail call i32 @delayms(i32 10)
%3 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 7, i32 304)
%4 = tail call i32 @delayms(i32 10)
%5 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 7, i32 0)
%6 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 16, i32 0)
%7 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 17, i32 0)
%8 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 18, i32 0)
%9 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 19, i32 0)
%10 = tail call i32 @delayms(i32 200)
%11 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 16, i32 2)
ret void
}