#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_clear();
int /*<<< orphan*/ lcd_command(int);
int /*<<< orphan*/ lcd_delay(int);
int /*<<< orphan*/ lcd_write_raw(int);
void lcd_init(void) {
  lcd_delay(16000);
  lcd_write_raw(0x3);
  lcd_delay(15000);
  lcd_write_raw(0x3);
  lcd_delay(1600);
  lcd_write_raw(0x3);
  lcd_delay(1600);
  lcd_write_raw(0x2);
  lcd_delay(1600);
  lcd_command(0x28);
  lcd_command(0x08);
  lcd_clear();
  lcd_command(0x06);
  lcd_command(0x0C);
  lcd_command(0x02);
}


x86 assembly (clang, -O0):
<lcd_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3e80,%edi
call   1060 <lcd_delay@plt>
mov    $0x3,%edi
call   1030 <lcd_write_raw@plt>
mov    $0x3a98,%edi
call   1060 <lcd_delay@plt>
mov    $0x3,%edi
call   1030 <lcd_write_raw@plt>
mov    $0x640,%edi
call   1060 <lcd_delay@plt>
mov    $0x3,%edi
call   1030 <lcd_write_raw@plt>
mov    $0x640,%edi
call   1060 <lcd_delay@plt>
mov    $0x2,%edi
call   1030 <lcd_write_raw@plt>
mov    $0x640,%edi
call   1060 <lcd_delay@plt>
mov    $0x28,%edi
call   1040 <lcd_command@plt>
mov    $0x8,%edi
call   1040 <lcd_command@plt>
mov    $0x0,%al
call   1050 <lcd_clear@plt>
mov    $0x6,%edi
call   1040 <lcd_command@plt>
mov    $0xc,%edi
call   1040 <lcd_command@plt>
mov    $0x2,%edi
call   1040 <lcd_command@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lcd_init>:
push   %rax
mov    $0x3e80,%edi
call   1060 <lcd_delay@plt>
mov    $0x3,%edi
call   1030 <lcd_write_raw@plt>
mov    $0x3a98,%edi
call   1060 <lcd_delay@plt>
mov    $0x3,%edi
call   1030 <lcd_write_raw@plt>
mov    $0x640,%edi
call   1060 <lcd_delay@plt>
mov    $0x3,%edi
call   1030 <lcd_write_raw@plt>
mov    $0x640,%edi
call   1060 <lcd_delay@plt>
mov    $0x2,%edi
call   1030 <lcd_write_raw@plt>
mov    $0x640,%edi
call   1060 <lcd_delay@plt>
mov    $0x28,%edi
call   1040 <lcd_command@plt>
mov    $0x8,%edi
call   1040 <lcd_command@plt>
xor    %eax,%eax
call   1050 <lcd_clear@plt>
mov    $0x6,%edi
call   1040 <lcd_command@plt>
mov    $0xc,%edi
call   1040 <lcd_command@plt>
mov    $0x2,%edi
pop    %rax
jmp    1040 <lcd_command@plt>

LLVM IR (-O0):
define void @lcd_init() {
%1 = call i32 @lcd_delay(i32 16000)
%2 = call i32 @lcd_write_raw(i32 3)
%3 = call i32 @lcd_delay(i32 15000)
%4 = call i32 @lcd_write_raw(i32 3)
%5 = call i32 @lcd_delay(i32 1600)
%6 = call i32 @lcd_write_raw(i32 3)
%7 = call i32 @lcd_delay(i32 1600)
%8 = call i32 @lcd_write_raw(i32 2)
%9 = call i32 @lcd_delay(i32 1600)
%10 = call i32 @lcd_command(i32 40)
%11 = call i32 @lcd_command(i32 8)
%12 = call i32 (...) @lcd_clear()
%13 = call i32 @lcd_command(i32 6)
%14 = call i32 @lcd_command(i32 12)
%15 = call i32 @lcd_command(i32 2)
ret void
}

LLVM IR (-O2):
define void @lcd_init() {
%1 = tail call i32 @lcd_delay(i32 16000)
%2 = tail call i32 @lcd_write_raw(i32 3)
%3 = tail call i32 @lcd_delay(i32 15000)
%4 = tail call i32 @lcd_write_raw(i32 3)
%5 = tail call i32 @lcd_delay(i32 1600)
%6 = tail call i32 @lcd_write_raw(i32 3)
%7 = tail call i32 @lcd_delay(i32 1600)
%8 = tail call i32 @lcd_write_raw(i32 2)
%9 = tail call i32 @lcd_delay(i32 1600)
%10 = tail call i32 @lcd_command(i32 40)
%11 = tail call i32 @lcd_command(i32 8)
%12 = tail call i32 (...) @lcd_clear()
%13 = tail call i32 @lcd_command(i32 6)
%14 = tail call i32 @lcd_command(i32 12)
%15 = tail call i32 @lcd_command(i32 2)
ret void
}