#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*/ ili9320_WriteReg(int, int);
void ili9320_DisplayOn(void) {
  ili9320_WriteReg(0x10, 0x0000);
  ili9320_WriteReg(0x11, 0x0000);
  ili9320_WriteReg(0x12, 0x0000);
  ili9320_WriteReg(0x13, 0x0000);
  ili9320_WriteReg(0x10, 0x17B0);
  ili9320_WriteReg(0x11, 0x0137);
  ili9320_WriteReg(0x12, 0x0139);
  ili9320_WriteReg(0x13, 0x1d00);
  ili9320_WriteReg(0x29, 0x0013);
  ili9320_WriteReg(0x07, 0x0173);
}


x86 assembly (clang, -O0):
<ili9320_DisplayOn>:
push   %rbp
mov    %rsp,%rbp
mov    $0x10,%edi
xor    %esi,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x11,%edi
xor    %esi,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x12,%edi
xor    %esi,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x13,%edi
xor    %esi,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x10,%edi
mov    $0x17b0,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x11,%edi
mov    $0x137,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x12,%edi
mov    $0x139,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x13,%edi
mov    $0x1d00,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x29,%edi
mov    $0x13,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x7,%edi
mov    $0x173,%esi
call   1030 <ili9320_WriteReg@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ili9320_DisplayOn>:
push   %rax
mov    $0x10,%edi
xor    %esi,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x11,%edi
xor    %esi,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x12,%edi
xor    %esi,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x13,%edi
xor    %esi,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x10,%edi
mov    $0x17b0,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x11,%edi
mov    $0x137,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x12,%edi
mov    $0x139,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x13,%edi
mov    $0x1d00,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x29,%edi
mov    $0x13,%esi
call   1030 <ili9320_WriteReg@plt>
mov    $0x7,%edi
mov    $0x173,%esi
pop    %rax
jmp    1030 <ili9320_WriteReg@plt>

LLVM IR (-O0):
define void @ili9320_DisplayOn() {
%1 = call i32 @ili9320_WriteReg(i32 16, i32 0)
%2 = call i32 @ili9320_WriteReg(i32 17, i32 0)
%3 = call i32 @ili9320_WriteReg(i32 18, i32 0)
%4 = call i32 @ili9320_WriteReg(i32 19, i32 0)
%5 = call i32 @ili9320_WriteReg(i32 16, i32 6064)
%6 = call i32 @ili9320_WriteReg(i32 17, i32 311)
%7 = call i32 @ili9320_WriteReg(i32 18, i32 313)
%8 = call i32 @ili9320_WriteReg(i32 19, i32 7424)
%9 = call i32 @ili9320_WriteReg(i32 41, i32 19)
%10 = call i32 @ili9320_WriteReg(i32 7, i32 371)
ret void
}

LLVM IR (-O2):
define void @ili9320_DisplayOn() {
%1 = tail call i32 @ili9320_WriteReg(i32 16, i32 0)
%2 = tail call i32 @ili9320_WriteReg(i32 17, i32 0)
%3 = tail call i32 @ili9320_WriteReg(i32 18, i32 0)
%4 = tail call i32 @ili9320_WriteReg(i32 19, i32 0)
%5 = tail call i32 @ili9320_WriteReg(i32 16, i32 6064)
%6 = tail call i32 @ili9320_WriteReg(i32 17, i32 311)
%7 = tail call i32 @ili9320_WriteReg(i32 18, i32 313)
%8 = tail call i32 @ili9320_WriteReg(i32 19, i32 7424)
%9 = tail call i32 @ili9320_WriteReg(i32 41, i32 19)
%10 = tail call i32 @ili9320_WriteReg(i32 7, i32 371)
ret void
}