#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*/ CyDelay(unsigned int);
int /*<<< orphan*/ LCD_WrCntrlNib(int);
int /*<<< orphan*/ LCD_WriteControl(int);
void LCD_Init(void) {
  CyDelay(40u);
  LCD_WrCntrlNib((0x03u));
  CyDelay(5u);
  LCD_WrCntrlNib((0x03u));
  CyDelay(15u);
  LCD_WrCntrlNib((0x03u));
  CyDelay(1u);
  LCD_WrCntrlNib((0x02u));
  CyDelay(5u);
  LCD_WriteControl((0x06u));
  LCD_WriteControl((0x0Eu));
  LCD_WriteControl((0x2Cu));
  LCD_WriteControl((0x08u));
  LCD_WriteControl((0x01u));
  LCD_WriteControl((0x0Cu));
  LCD_WriteControl((0x03u));
  CyDelay(5u);
}


x86 assembly (clang, -O0):
<LCD_Init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x28,%edi
call   1050 <CyDelay@plt>
mov    $0x3,%edi
call   1030 <LCD_WrCntrlNib@plt>
mov    $0x5,%edi
call   1050 <CyDelay@plt>
mov    $0x3,%edi
call   1030 <LCD_WrCntrlNib@plt>
mov    $0xf,%edi
call   1050 <CyDelay@plt>
mov    $0x3,%edi
call   1030 <LCD_WrCntrlNib@plt>
mov    $0x1,%edi
call   1050 <CyDelay@plt>
mov    $0x2,%edi
call   1030 <LCD_WrCntrlNib@plt>
mov    $0x5,%edi
call   1050 <CyDelay@plt>
mov    $0x6,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0xe,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0x2c,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0x8,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0x1,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0xc,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0x3,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0x5,%edi
call   1050 <CyDelay@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<LCD_Init>:
push   %rax
mov    $0x28,%edi
call   1050 <CyDelay@plt>
mov    $0x3,%edi
call   1030 <LCD_WrCntrlNib@plt>
mov    $0x5,%edi
call   1050 <CyDelay@plt>
mov    $0x3,%edi
call   1030 <LCD_WrCntrlNib@plt>
mov    $0xf,%edi
call   1050 <CyDelay@plt>
mov    $0x3,%edi
call   1030 <LCD_WrCntrlNib@plt>
mov    $0x1,%edi
call   1050 <CyDelay@plt>
mov    $0x2,%edi
call   1030 <LCD_WrCntrlNib@plt>
mov    $0x5,%edi
call   1050 <CyDelay@plt>
mov    $0x6,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0xe,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0x2c,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0x8,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0x1,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0xc,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0x3,%edi
call   1040 <LCD_WriteControl@plt>
mov    $0x5,%edi
pop    %rax
jmp    1050 <CyDelay@plt>

LLVM IR (-O0):
define void @LCD_Init() {
%1 = call i32 @CyDelay(i32 40)
%2 = call i32 @LCD_WrCntrlNib(i32 3)
%3 = call i32 @CyDelay(i32 5)
%4 = call i32 @LCD_WrCntrlNib(i32 3)
%5 = call i32 @CyDelay(i32 15)
%6 = call i32 @LCD_WrCntrlNib(i32 3)
%7 = call i32 @CyDelay(i32 1)
%8 = call i32 @LCD_WrCntrlNib(i32 2)
%9 = call i32 @CyDelay(i32 5)
%10 = call i32 @LCD_WriteControl(i32 6)
%11 = call i32 @LCD_WriteControl(i32 14)
%12 = call i32 @LCD_WriteControl(i32 44)
%13 = call i32 @LCD_WriteControl(i32 8)
%14 = call i32 @LCD_WriteControl(i32 1)
%15 = call i32 @LCD_WriteControl(i32 12)
%16 = call i32 @LCD_WriteControl(i32 3)
%17 = call i32 @CyDelay(i32 5)
ret void
}

LLVM IR (-O2):
define void @LCD_Init() {
%1 = tail call i32 @CyDelay(i32 40)
%2 = tail call i32 @LCD_WrCntrlNib(i32 3)
%3 = tail call i32 @CyDelay(i32 5)
%4 = tail call i32 @LCD_WrCntrlNib(i32 3)
%5 = tail call i32 @CyDelay(i32 15)
%6 = tail call i32 @LCD_WrCntrlNib(i32 3)
%7 = tail call i32 @CyDelay(i32 1)
%8 = tail call i32 @LCD_WrCntrlNib(i32 2)
%9 = tail call i32 @CyDelay(i32 5)
%10 = tail call i32 @LCD_WriteControl(i32 6)
%11 = tail call i32 @LCD_WriteControl(i32 14)
%12 = tail call i32 @LCD_WriteControl(i32 44)
%13 = tail call i32 @LCD_WriteControl(i32 8)
%14 = tail call i32 @LCD_WriteControl(i32 1)
%15 = tail call i32 @LCD_WriteControl(i32 12)
%16 = tail call i32 @LCD_WriteControl(i32 3)
%17 = tail call i32 @CyDelay(i32 5)
ret void
}