#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_ExitSleep_ILI9325(void) {
  LCD_CtrlWrite_ILI9325(0x0010, 0x0000);
  LCD_CtrlWrite_ILI9325(0x0011, 0x0007);
  LCD_CtrlWrite_ILI9325(0x0012, 0x0000);
  LCD_CtrlWrite_ILI9325(0x0013, 0x0000);
  delayms(200);
  LCD_CtrlWrite_ILI9325(0x0010, 0x1490);
  LCD_CtrlWrite_ILI9325(0x0011, 0x0227);
  delayms(50);
  LCD_CtrlWrite_ILI9325(0x0012, 0x001C);
  delayms(50);
  LCD_CtrlWrite_ILI9325(0x0013, 0x1800);
  LCD_CtrlWrite_ILI9325(0x0029, 0x001C);
  delayms(50);
  LCD_CtrlWrite_ILI9325(0x0007, 0x0133);
}


x86 assembly (clang, -O0):
<LCD_ExitSleep_ILI9325>:
push   %rbp
mov    %rsp,%rbp
mov    $0x10,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x11,%edi
mov    $0x7,%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    $0x1490,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x11,%edi
mov    $0x227,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x32,%edi
call   1030 <delayms@plt>
mov    $0x12,%edi
mov    $0x1c,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x32,%edi
call   1030 <delayms@plt>
mov    $0x13,%edi
mov    $0x1800,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x29,%edi
mov    $0x1c,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x32,%edi
call   1030 <delayms@plt>
mov    $0x7,%edi
mov    $0x133,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<LCD_ExitSleep_ILI9325>:
push   %rax
mov    $0x10,%edi
xor    %esi,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x11,%edi
mov    $0x7,%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    $0x1490,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x11,%edi
mov    $0x227,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x32,%edi
call   1030 <delayms@plt>
mov    $0x12,%edi
mov    $0x1c,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x32,%edi
call   1030 <delayms@plt>
mov    $0x13,%edi
mov    $0x1800,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x29,%edi
mov    $0x1c,%esi
call   1040 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x32,%edi
call   1030 <delayms@plt>
mov    $0x7,%edi
mov    $0x133,%esi
pop    %rax
jmp    1040 <LCD_CtrlWrite_ILI9325@plt>

LLVM IR (-O0):
define void @LCD_ExitSleep_ILI9325() {
%1 = call i32 @LCD_CtrlWrite_ILI9325(i32 16, i32 0)
%2 = call i32 @LCD_CtrlWrite_ILI9325(i32 17, i32 7)
%3 = call i32 @LCD_CtrlWrite_ILI9325(i32 18, i32 0)
%4 = call i32 @LCD_CtrlWrite_ILI9325(i32 19, i32 0)
%5 = call i32 @delayms(i32 200)
%6 = call i32 @LCD_CtrlWrite_ILI9325(i32 16, i32 5264)
%7 = call i32 @LCD_CtrlWrite_ILI9325(i32 17, i32 551)
%8 = call i32 @delayms(i32 50)
%9 = call i32 @LCD_CtrlWrite_ILI9325(i32 18, i32 28)
%10 = call i32 @delayms(i32 50)
%11 = call i32 @LCD_CtrlWrite_ILI9325(i32 19, i32 6144)
%12 = call i32 @LCD_CtrlWrite_ILI9325(i32 41, i32 28)
%13 = call i32 @delayms(i32 50)
%14 = call i32 @LCD_CtrlWrite_ILI9325(i32 7, i32 307)
ret void
}

LLVM IR (-O2):
define void @LCD_ExitSleep_ILI9325() {
%1 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 16, i32 0)
%2 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 17, i32 7)
%3 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 18, i32 0)
%4 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 19, i32 0)
%5 = tail call i32 @delayms(i32 200)
%6 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 16, i32 5264)
%7 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 17, i32 551)
%8 = tail call i32 @delayms(i32 50)
%9 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 18, i32 28)
%10 = tail call i32 @delayms(i32 50)
%11 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 19, i32 6144)
%12 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 41, i32 28)
%13 = tail call i32 @delayms(i32 50)
%14 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 7, i32 307)
ret void
}