#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_Delay(int);
int /*<<< orphan*/ hx8347d_WriteReg(int, int);
void hx8347d_DisplayOn(void) {
  hx8347d_WriteReg(0x18, 0x36);
  hx8347d_WriteReg(0x19, 0x01);
  hx8347d_WriteReg(0x1C, 0x06);
  hx8347d_WriteReg(0x1F, 0x90);
  LCD_Delay(10);
  hx8347d_WriteReg(0x17, 0x05);
  hx8347d_WriteReg(0x36, 0x09);
  hx8347d_WriteReg(0x28, 0x38);
  LCD_Delay(60);
  hx8347d_WriteReg(0x28, 0x3C);
}


x86 assembly (clang, -O0):
<hx8347d_DisplayOn>:
push   %rbp
mov    %rsp,%rbp
mov    $0x18,%edi
mov    $0x36,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x19,%edi
mov    $0x1,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x1c,%edi
mov    $0x6,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x1f,%edi
mov    $0x90,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0xa,%edi
call   1030 <LCD_Delay@plt>
mov    $0x17,%edi
mov    $0x5,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x36,%edi
mov    $0x9,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x28,%edi
mov    $0x38,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x3c,%edi
call   1030 <LCD_Delay@plt>
mov    $0x28,%edi
mov    $0x3c,%esi
call   1040 <hx8347d_WriteReg@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<hx8347d_DisplayOn>:
push   %rax
mov    $0x18,%edi
mov    $0x36,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x19,%edi
mov    $0x1,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x1c,%edi
mov    $0x6,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x1f,%edi
mov    $0x90,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0xa,%edi
call   1030 <LCD_Delay@plt>
mov    $0x17,%edi
mov    $0x5,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x36,%edi
mov    $0x9,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x28,%edi
mov    $0x38,%esi
call   1040 <hx8347d_WriteReg@plt>
mov    $0x3c,%edi
call   1030 <LCD_Delay@plt>
mov    $0x28,%edi
mov    $0x3c,%esi
pop    %rax
jmp    1040 <hx8347d_WriteReg@plt>

LLVM IR (-O0):
define void @hx8347d_DisplayOn() {
%1 = call i32 @hx8347d_WriteReg(i32 24, i32 54)
%2 = call i32 @hx8347d_WriteReg(i32 25, i32 1)
%3 = call i32 @hx8347d_WriteReg(i32 28, i32 6)
%4 = call i32 @hx8347d_WriteReg(i32 31, i32 144)
%5 = call i32 @LCD_Delay(i32 10)
%6 = call i32 @hx8347d_WriteReg(i32 23, i32 5)
%7 = call i32 @hx8347d_WriteReg(i32 54, i32 9)
%8 = call i32 @hx8347d_WriteReg(i32 40, i32 56)
%9 = call i32 @LCD_Delay(i32 60)
%10 = call i32 @hx8347d_WriteReg(i32 40, i32 60)
ret void
}

LLVM IR (-O2):
define void @hx8347d_DisplayOn() {
%1 = tail call i32 @hx8347d_WriteReg(i32 24, i32 54)
%2 = tail call i32 @hx8347d_WriteReg(i32 25, i32 1)
%3 = tail call i32 @hx8347d_WriteReg(i32 28, i32 6)
%4 = tail call i32 @hx8347d_WriteReg(i32 31, i32 144)
%5 = tail call i32 @LCD_Delay(i32 10)
%6 = tail call i32 @hx8347d_WriteReg(i32 23, i32 5)
%7 = tail call i32 @hx8347d_WriteReg(i32 54, i32 9)
%8 = tail call i32 @hx8347d_WriteReg(i32 40, i32 56)
%9 = tail call i32 @LCD_Delay(i32 60)
%10 = tail call i32 @hx8347d_WriteReg(i32 40, i32 60)
ret void
}