#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*/ delay_us(int);
int /*<<< orphan*/ i2c_lcd_write_command(int);
int /*<<< orphan*/ i2c_lcd_write_command4b(int);
void i2c_lcd_init(void) {
  delay_ms(16);
  i2c_lcd_write_command4b(0x30);
  delay_ms(5);
  i2c_lcd_write_command4b(0x30);
  delay_us(150);
  i2c_lcd_write_command4b(0x30);
  delay_ms(50);
  i2c_lcd_write_command4b(0x20);
  i2c_lcd_write_command(0x28);
  i2c_lcd_write_command(0x08);
  i2c_lcd_write_command(0x01);
  i2c_lcd_write_command(0x06);
  i2c_lcd_write_command(0x0C);
  i2c_lcd_write_command(0x02);
  delay_ms(5);
}


x86 assembly (clang, -O0):
<i2c_lcd_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x10,%edi
call   1050 <delay_ms@plt>
mov    $0x30,%edi
call   1040 <i2c_lcd_write_command4b@plt>
mov    $0x5,%edi
call   1050 <delay_ms@plt>
mov    $0x30,%edi
call   1040 <i2c_lcd_write_command4b@plt>
mov    $0x96,%edi
call   1060 <delay_us@plt>
mov    $0x30,%edi
call   1040 <i2c_lcd_write_command4b@plt>
mov    $0x32,%edi
call   1050 <delay_ms@plt>
mov    $0x20,%edi
call   1040 <i2c_lcd_write_command4b@plt>
mov    $0x28,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0x8,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0x1,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0x6,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0xc,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0x2,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0x5,%edi
call   1050 <delay_ms@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<i2c_lcd_init>:
push   %rax
mov    $0x10,%edi
call   1050 <delay_ms@plt>
mov    $0x30,%edi
call   1040 <i2c_lcd_write_command4b@plt>
mov    $0x5,%edi
call   1050 <delay_ms@plt>
mov    $0x30,%edi
call   1040 <i2c_lcd_write_command4b@plt>
mov    $0x96,%edi
call   1060 <delay_us@plt>
mov    $0x30,%edi
call   1040 <i2c_lcd_write_command4b@plt>
mov    $0x32,%edi
call   1050 <delay_ms@plt>
mov    $0x20,%edi
call   1040 <i2c_lcd_write_command4b@plt>
mov    $0x28,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0x8,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0x1,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0x6,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0xc,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0x2,%edi
call   1030 <i2c_lcd_write_command@plt>
mov    $0x5,%edi
pop    %rax
jmp    1050 <delay_ms@plt>

LLVM IR (-O0):
define void @i2c_lcd_init() {
%1 = call i32 @delay_ms(i32 16)
%2 = call i32 @i2c_lcd_write_command4b(i32 48)
%3 = call i32 @delay_ms(i32 5)
%4 = call i32 @i2c_lcd_write_command4b(i32 48)
%5 = call i32 @delay_us(i32 150)
%6 = call i32 @i2c_lcd_write_command4b(i32 48)
%7 = call i32 @delay_ms(i32 50)
%8 = call i32 @i2c_lcd_write_command4b(i32 32)
%9 = call i32 @i2c_lcd_write_command(i32 40)
%10 = call i32 @i2c_lcd_write_command(i32 8)
%11 = call i32 @i2c_lcd_write_command(i32 1)
%12 = call i32 @i2c_lcd_write_command(i32 6)
%13 = call i32 @i2c_lcd_write_command(i32 12)
%14 = call i32 @i2c_lcd_write_command(i32 2)
%15 = call i32 @delay_ms(i32 5)
ret void
}

LLVM IR (-O2):
define void @i2c_lcd_init() {
%1 = tail call i32 @delay_ms(i32 16)
%2 = tail call i32 @i2c_lcd_write_command4b(i32 48)
%3 = tail call i32 @delay_ms(i32 5)
%4 = tail call i32 @i2c_lcd_write_command4b(i32 48)
%5 = tail call i32 @delay_us(i32 150)
%6 = tail call i32 @i2c_lcd_write_command4b(i32 48)
%7 = tail call i32 @delay_ms(i32 50)
%8 = tail call i32 @i2c_lcd_write_command4b(i32 32)
%9 = tail call i32 @i2c_lcd_write_command(i32 40)
%10 = tail call i32 @i2c_lcd_write_command(i32 8)
%11 = tail call i32 @i2c_lcd_write_command(i32 1)
%12 = tail call i32 @i2c_lcd_write_command(i32 6)
%13 = tail call i32 @i2c_lcd_write_command(i32 12)
%14 = tail call i32 @i2c_lcd_write_command(i32 2)
%15 = tail call i32 @delay_ms(i32 5)
ret void
}