#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_Command(int);
int /*<<< orphan*/ LCD_Data(int);
int /*<<< orphan*/ LCD_LowLevelInit();
int /*<<< orphan*/ SPI_BeginTransfer(int);
int /*<<< orphan*/ SPI_EndTransfer(int);
int /*<<< orphan*/ TIMER0_Init(int);
int /*<<< orphan*/ delay(int);
void LCD_Boot_Init(void) {
  TIMER0_Init(1000);
  LCD_LowLevelInit();
  SPI_BeginTransfer(3);
  LCD_Command(0xCA);
  LCD_Data(0x0C);
  LCD_Data(0x20);
  LCD_Data(0x0C);
  LCD_Command(0xBB);
  LCD_Data(0x01);
  LCD_Command(0xD1);
  LCD_Command(0x94);
  LCD_Command(0x20);
  LCD_Data(0x0F);
  LCD_Command(0xA7);
  LCD_Command(0xBC);
  LCD_Data(0x00);
  LCD_Data(0x00);
  LCD_Data(0x04);
  LCD_Command(0x81);
  LCD_Data(0x27);
  LCD_Data(0x03);
  delay(100);
  LCD_Command(0xAF);
  SPI_EndTransfer(3);
}


x86 assembly (clang, -O0):
<LCD_Boot_Init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3e8,%edi
call   1080 <TIMER0_Init@plt>
mov    $0x0,%al
call   1030 <LCD_LowLevelInit@plt>
mov    $0x3,%edi
call   1050 <SPI_BeginTransfer@plt>
mov    $0xca,%edi
call   1070 <LCD_Command@plt>
mov    $0xc,%edi
call   1090 <LCD_Data@plt>
mov    $0x20,%edi
call   1090 <LCD_Data@plt>
mov    $0xc,%edi
call   1090 <LCD_Data@plt>
mov    $0xbb,%edi
call   1070 <LCD_Command@plt>
mov    $0x1,%edi
call   1090 <LCD_Data@plt>
mov    $0xd1,%edi
call   1070 <LCD_Command@plt>
mov    $0x94,%edi
call   1070 <LCD_Command@plt>
mov    $0x20,%edi
call   1070 <LCD_Command@plt>
mov    $0xf,%edi
call   1090 <LCD_Data@plt>
mov    $0xa7,%edi
call   1070 <LCD_Command@plt>
mov    $0xbc,%edi
call   1070 <LCD_Command@plt>
xor    %edi,%edi
call   1090 <LCD_Data@plt>
xor    %edi,%edi
call   1090 <LCD_Data@plt>
mov    $0x4,%edi
call   1090 <LCD_Data@plt>
mov    $0x81,%edi
call   1070 <LCD_Command@plt>
mov    $0x27,%edi
call   1090 <LCD_Data@plt>
mov    $0x3,%edi
call   1090 <LCD_Data@plt>
mov    $0x64,%edi
call   1060 <delay@plt>
mov    $0xaf,%edi
call   1070 <LCD_Command@plt>
mov    $0x3,%edi
call   1040 <SPI_EndTransfer@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<LCD_Boot_Init>:
push   %rax
mov    $0x3e8,%edi
call   1080 <TIMER0_Init@plt>
xor    %eax,%eax
call   1030 <LCD_LowLevelInit@plt>
mov    $0x3,%edi
call   1050 <SPI_BeginTransfer@plt>
mov    $0xca,%edi
call   1070 <LCD_Command@plt>
mov    $0xc,%edi
call   1090 <LCD_Data@plt>
mov    $0x20,%edi
call   1090 <LCD_Data@plt>
mov    $0xc,%edi
call   1090 <LCD_Data@plt>
mov    $0xbb,%edi
call   1070 <LCD_Command@plt>
mov    $0x1,%edi
call   1090 <LCD_Data@plt>
mov    $0xd1,%edi
call   1070 <LCD_Command@plt>
mov    $0x94,%edi
call   1070 <LCD_Command@plt>
mov    $0x20,%edi
call   1070 <LCD_Command@plt>
mov    $0xf,%edi
call   1090 <LCD_Data@plt>
mov    $0xa7,%edi
call   1070 <LCD_Command@plt>
mov    $0xbc,%edi
call   1070 <LCD_Command@plt>
xor    %edi,%edi
call   1090 <LCD_Data@plt>
xor    %edi,%edi
call   1090 <LCD_Data@plt>
mov    $0x4,%edi
call   1090 <LCD_Data@plt>
mov    $0x81,%edi
call   1070 <LCD_Command@plt>
mov    $0x27,%edi
call   1090 <LCD_Data@plt>
mov    $0x3,%edi
call   1090 <LCD_Data@plt>
mov    $0x64,%edi
call   1060 <delay@plt>
mov    $0xaf,%edi
call   1070 <LCD_Command@plt>
mov    $0x3,%edi
pop    %rax
jmp    1040 <SPI_EndTransfer@plt>

LLVM IR (-O0):
define void @LCD_Boot_Init() {
%1 = call i32 @TIMER0_Init(i32 1000)
%2 = call i32 (...) @LCD_LowLevelInit()
%3 = call i32 @SPI_BeginTransfer(i32 3)
%4 = call i32 @LCD_Command(i32 202)
%5 = call i32 @LCD_Data(i32 12)
%6 = call i32 @LCD_Data(i32 32)
%7 = call i32 @LCD_Data(i32 12)
%8 = call i32 @LCD_Command(i32 187)
%9 = call i32 @LCD_Data(i32 1)
%10 = call i32 @LCD_Command(i32 209)
%11 = call i32 @LCD_Command(i32 148)
%12 = call i32 @LCD_Command(i32 32)
%13 = call i32 @LCD_Data(i32 15)
%14 = call i32 @LCD_Command(i32 167)
%15 = call i32 @LCD_Command(i32 188)
%16 = call i32 @LCD_Data(i32 0)
%17 = call i32 @LCD_Data(i32 0)
%18 = call i32 @LCD_Data(i32 4)
%19 = call i32 @LCD_Command(i32 129)
%20 = call i32 @LCD_Data(i32 39)
%21 = call i32 @LCD_Data(i32 3)
%22 = call i32 @delay(i32 100)
%23 = call i32 @LCD_Command(i32 175)
%24 = call i32 @SPI_EndTransfer(i32 3)
ret void
}

LLVM IR (-O2):
define void @LCD_Boot_Init() {
%1 = tail call i32 @TIMER0_Init(i32 1000)
%2 = tail call i32 (...) @LCD_LowLevelInit()
%3 = tail call i32 @SPI_BeginTransfer(i32 3)
%4 = tail call i32 @LCD_Command(i32 202)
%5 = tail call i32 @LCD_Data(i32 12)
%6 = tail call i32 @LCD_Data(i32 32)
%7 = tail call i32 @LCD_Data(i32 12)
%8 = tail call i32 @LCD_Command(i32 187)
%9 = tail call i32 @LCD_Data(i32 1)
%10 = tail call i32 @LCD_Command(i32 209)
%11 = tail call i32 @LCD_Command(i32 148)
%12 = tail call i32 @LCD_Command(i32 32)
%13 = tail call i32 @LCD_Data(i32 15)
%14 = tail call i32 @LCD_Command(i32 167)
%15 = tail call i32 @LCD_Command(i32 188)
%16 = tail call i32 @LCD_Data(i32 0)
%17 = tail call i32 @LCD_Data(i32 0)
%18 = tail call i32 @LCD_Data(i32 4)
%19 = tail call i32 @LCD_Command(i32 129)
%20 = tail call i32 @LCD_Data(i32 39)
%21 = tail call i32 @LCD_Data(i32 3)
%22 = tail call i32 @delay(i32 100)
%23 = tail call i32 @LCD_Command(i32 175)
%24 = tail call i32 @SPI_EndTransfer(i32 3)
ret void
}