#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*/ PutBitsOnPins(int);
int /*<<< orphan*/ usleep(int);
void lcd_reset() {
  PutBitsOnPins(0xFF);
  usleep(5000);
  PutBitsOnPins(0x03 + 0x80);
  PutBitsOnPins(0x03);
  usleep(5000);
  PutBitsOnPins(0x03 + 0x80);
  PutBitsOnPins(0x03);
  usleep(500);
  PutBitsOnPins(0x03 + 0x80);
  PutBitsOnPins(0x03);
  usleep(500);
  PutBitsOnPins(0x02 + 0x80);
  PutBitsOnPins(0x02);
  usleep(500);
}


x86 assembly (clang, -O0):
<lcd_reset>:
push   %rbp
mov    %rsp,%rbp
mov    $0xff,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x1388,%edi
call   1040 <usleep@plt>
mov    $0x83,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x3,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x1388,%edi
call   1040 <usleep@plt>
mov    $0x83,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x3,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x1f4,%edi
call   1040 <usleep@plt>
mov    $0x83,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x3,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x1f4,%edi
call   1040 <usleep@plt>
mov    $0x82,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x2,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x1f4,%edi
call   1040 <usleep@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lcd_reset>:
push   %rax
mov    $0xff,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x1388,%edi
call   1040 <usleep@plt>
mov    $0x83,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x3,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x1388,%edi
call   1040 <usleep@plt>
mov    $0x83,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x3,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x1f4,%edi
call   1040 <usleep@plt>
mov    $0x83,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x3,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x1f4,%edi
call   1040 <usleep@plt>
mov    $0x82,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x2,%edi
call   1030 <PutBitsOnPins@plt>
mov    $0x1f4,%edi
pop    %rax
jmp    1040 <usleep@plt>

LLVM IR (-O0):
define void @lcd_reset() {
%1 = call i32 @PutBitsOnPins(i32 255)
%2 = call i32 @usleep(i32 5000)
%3 = call i32 @PutBitsOnPins(i32 131)
%4 = call i32 @PutBitsOnPins(i32 3)
%5 = call i32 @usleep(i32 5000)
%6 = call i32 @PutBitsOnPins(i32 131)
%7 = call i32 @PutBitsOnPins(i32 3)
%8 = call i32 @usleep(i32 500)
%9 = call i32 @PutBitsOnPins(i32 131)
%10 = call i32 @PutBitsOnPins(i32 3)
%11 = call i32 @usleep(i32 500)
%12 = call i32 @PutBitsOnPins(i32 130)
%13 = call i32 @PutBitsOnPins(i32 2)
%14 = call i32 @usleep(i32 500)
ret void
}

LLVM IR (-O2):
define void @lcd_reset() {
%1 = tail call i32 @PutBitsOnPins(i32 255)
%2 = tail call i32 @usleep(i32 5000)
%3 = tail call i32 @PutBitsOnPins(i32 131)
%4 = tail call i32 @PutBitsOnPins(i32 3)
%5 = tail call i32 @usleep(i32 5000)
%6 = tail call i32 @PutBitsOnPins(i32 131)
%7 = tail call i32 @PutBitsOnPins(i32 3)
%8 = tail call i32 @usleep(i32 500)
%9 = tail call i32 @PutBitsOnPins(i32 131)
%10 = tail call i32 @PutBitsOnPins(i32 3)
%11 = tail call i32 @usleep(i32 500)
%12 = tail call i32 @PutBitsOnPins(i32 130)
%13 = tail call i32 @PutBitsOnPins(i32 2)
%14 = tail call i32 @usleep(i32 500)
ret void
}