#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*/ delay_ms(int);
int /*<<< orphan*/ lcd_clear();
int /*<<< orphan*/ lcd_send_byte(int);
void lcd_init() {
  delay_ms(200);
  lcd_send_byte(0x00);
  lcd_send_byte(0x10);
  lcd_send_byte(0x00);
  lcd_send_byte(0x00);
  lcd_send_byte(0x10);
  lcd_send_byte(0x30);
  lcd_send_byte(0x30);
  lcd_send_byte(0x30);
  lcd_send_byte(0x20);
  lcd_send_byte(0x20);
  lcd_send_byte(0x80);
  lcd_send_byte(0x00);
  lcd_send_byte(0xC0);
  lcd_send_byte(0x00);
  lcd_send_byte(0x60);
  lcd_clear();
}


x86 assembly (clang, -O0):
<lcd_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0xc8,%edi
call   1040 <delay_ms@plt>
xor    %edi,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x10,%edi
call   1050 <lcd_send_byte@plt>
xor    %edi,%edi
call   1050 <lcd_send_byte@plt>
xor    %edi,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x10,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x30,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x30,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x30,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x20,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x20,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x80,%edi
call   1050 <lcd_send_byte@plt>
xor    %edi,%edi
call   1050 <lcd_send_byte@plt>
mov    $0xc0,%edi
call   1050 <lcd_send_byte@plt>
xor    %edi,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x60,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x0,%al
call   1030 <lcd_clear@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lcd_init>:
push   %rax
mov    $0xc8,%edi
call   1040 <delay_ms@plt>
xor    %edi,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x10,%edi
call   1050 <lcd_send_byte@plt>
xor    %edi,%edi
call   1050 <lcd_send_byte@plt>
xor    %edi,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x10,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x30,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x30,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x30,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x20,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x20,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x80,%edi
call   1050 <lcd_send_byte@plt>
xor    %edi,%edi
call   1050 <lcd_send_byte@plt>
mov    $0xc0,%edi
call   1050 <lcd_send_byte@plt>
xor    %edi,%edi
call   1050 <lcd_send_byte@plt>
mov    $0x60,%edi
call   1050 <lcd_send_byte@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <lcd_clear@plt>

LLVM IR (-O0):
define void @lcd_init() {
%1 = call i32 @delay_ms(i32 200)
%2 = call i32 @lcd_send_byte(i32 0)
%3 = call i32 @lcd_send_byte(i32 16)
%4 = call i32 @lcd_send_byte(i32 0)
%5 = call i32 @lcd_send_byte(i32 0)
%6 = call i32 @lcd_send_byte(i32 16)
%7 = call i32 @lcd_send_byte(i32 48)
%8 = call i32 @lcd_send_byte(i32 48)
%9 = call i32 @lcd_send_byte(i32 48)
%10 = call i32 @lcd_send_byte(i32 32)
%11 = call i32 @lcd_send_byte(i32 32)
%12 = call i32 @lcd_send_byte(i32 128)
%13 = call i32 @lcd_send_byte(i32 0)
%14 = call i32 @lcd_send_byte(i32 192)
%15 = call i32 @lcd_send_byte(i32 0)
%16 = call i32 @lcd_send_byte(i32 96)
%17 = call i32 (...) @lcd_clear()
ret void
}

LLVM IR (-O2):
define void @lcd_init() {
%1 = tail call i32 @delay_ms(i32 200)
%2 = tail call i32 @lcd_send_byte(i32 0)
%3 = tail call i32 @lcd_send_byte(i32 16)
%4 = tail call i32 @lcd_send_byte(i32 0)
%5 = tail call i32 @lcd_send_byte(i32 0)
%6 = tail call i32 @lcd_send_byte(i32 16)
%7 = tail call i32 @lcd_send_byte(i32 48)
%8 = tail call i32 @lcd_send_byte(i32 48)
%9 = tail call i32 @lcd_send_byte(i32 48)
%10 = tail call i32 @lcd_send_byte(i32 32)
%11 = tail call i32 @lcd_send_byte(i32 32)
%12 = tail call i32 @lcd_send_byte(i32 128)
%13 = tail call i32 @lcd_send_byte(i32 0)
%14 = tail call i32 @lcd_send_byte(i32 192)
%15 = tail call i32 @lcd_send_byte(i32 0)
%16 = tail call i32 @lcd_send_byte(i32 96)
%17 = tail call i32 (...) @lcd_clear()
ret void
}