#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*/ WriteSpiCommand(int);
int /*<<< orphan*/ WriteSpiData(int);
void LCDWrite130x130bmp(void) {
  long j;
  WriteSpiCommand(0xBC);
  WriteSpiData(0x00);
  WriteSpiData(0x00);
  WriteSpiData(0x02);
  WriteSpiCommand(0xAE);
  WriteSpiCommand(0x15);
  WriteSpiData(0);
  WriteSpiData(131);
  WriteSpiCommand(0x75);
  WriteSpiData(0);
  WriteSpiData(131);
  WriteSpiCommand(0x5C);
  for (j = 0; j < 25740; j++) {
    WriteSpiData(0xFF);
  }
  WriteSpiCommand(0xBC);
  WriteSpiData(0x01);
  WriteSpiData(0x00);
  WriteSpiData(0x02);
  WriteSpiCommand(0xAF);
}


x86 assembly (clang, -O0):
<LCDWrite130x130bmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xbc,%edi
call   1030 <WriteSpiCommand@plt>
xor    %edi,%edi
call   1040 <WriteSpiData@plt>
xor    %edi,%edi
call   1040 <WriteSpiData@plt>
mov    $0x2,%edi
call   1040 <WriteSpiData@plt>
mov    $0xae,%edi
call   1030 <WriteSpiCommand@plt>
mov    $0x15,%edi
call   1030 <WriteSpiCommand@plt>
xor    %edi,%edi
call   1040 <WriteSpiData@plt>
mov    $0x83,%edi
call   1040 <WriteSpiData@plt>
mov    $0x75,%edi
call   1030 <WriteSpiCommand@plt>
xor    %edi,%edi
call   1040 <WriteSpiData@plt>
mov    $0x83,%edi
call   1040 <WriteSpiData@plt>
mov    $0x5c,%edi
call   1030 <WriteSpiCommand@plt>
movq   $0x0,-0x8(%rbp)
cmpq   $0x648c,-0x8(%rbp)
jge    11c5 <LCDWrite130x130bmp+0xa5>
mov    $0xff,%edi
call   1040 <WriteSpiData@plt>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    119c <LCDWrite130x130bmp+0x7c>
mov    $0xbc,%edi
call   1030 <WriteSpiCommand@plt>
mov    $0x1,%edi
call   1040 <WriteSpiData@plt>
xor    %edi,%edi
call   1040 <WriteSpiData@plt>
mov    $0x2,%edi
call   1040 <WriteSpiData@plt>
mov    $0xaf,%edi
call   1030 <WriteSpiCommand@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LCDWrite130x130bmp>:
push   %rbx
mov    $0xbc,%edi
call   1030 <WriteSpiCommand@plt>
xor    %edi,%edi
call   1040 <WriteSpiData@plt>
xor    %edi,%edi
call   1040 <WriteSpiData@plt>
mov    $0x2,%edi
call   1040 <WriteSpiData@plt>
mov    $0xae,%edi
call   1030 <WriteSpiCommand@plt>
mov    $0x15,%edi
call   1030 <WriteSpiCommand@plt>
xor    %edi,%edi
call   1040 <WriteSpiData@plt>
mov    $0x83,%edi
call   1040 <WriteSpiData@plt>
mov    $0x75,%edi
call   1030 <WriteSpiCommand@plt>
xor    %edi,%edi
call   1040 <WriteSpiData@plt>
mov    $0x83,%edi
call   1040 <WriteSpiData@plt>
mov    $0x5c,%edi
call   1030 <WriteSpiCommand@plt>
mov    $0x648c,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xff,%edi
call   1040 <WriteSpiData@plt>
add    $0xffffffffffffffff,%rbx
jne    11a0 <LCDWrite130x130bmp+0x80>
mov    $0xbc,%edi
call   1030 <WriteSpiCommand@plt>
mov    $0x1,%edi
call   1040 <WriteSpiData@plt>
xor    %edi,%edi
call   1040 <WriteSpiData@plt>
mov    $0x2,%edi
call   1040 <WriteSpiData@plt>
mov    $0xaf,%edi
pop    %rbx
jmp    1030 <WriteSpiCommand@plt>

LLVM IR (-O0):
define void @LCDWrite130x130bmp() {
%1 = alloca i64
%2 = call i32 @WriteSpiCommand(i32 188)
%3 = call i32 @WriteSpiData(i32 0)
%4 = call i32 @WriteSpiData(i32 0)
%5 = call i32 @WriteSpiData(i32 2)
%6 = call i32 @WriteSpiCommand(i32 174)
%7 = call i32 @WriteSpiCommand(i32 21)
%8 = call i32 @WriteSpiData(i32 0)
%9 = call i32 @WriteSpiData(i32 131)
%10 = call i32 @WriteSpiCommand(i32 117)
%11 = call i32 @WriteSpiData(i32 0)
%12 = call i32 @WriteSpiData(i32 131)
%13 = call i32 @WriteSpiCommand(i32 92)
store i64 0, i64* %1
br label %14
14: ; preds = %19, %0
%15 = load i64, i64* %1
%16 = icmp slt i64 %15, 25740
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = call i32 @WriteSpiData(i32 255)
br label %19
19: ; preds = %17
%20 = load i64, i64* %1
%21 = add nsw i64 %20, 1
store i64 %21, i64* %1
br label %14
22: ; preds = %14
%23 = call i32 @WriteSpiCommand(i32 188)
%24 = call i32 @WriteSpiData(i32 1)
%25 = call i32 @WriteSpiData(i32 0)
%26 = call i32 @WriteSpiData(i32 2)
%27 = call i32 @WriteSpiCommand(i32 175)
ret void
}

LLVM IR (-O2):
define void @LCDWrite130x130bmp() {
%1 = tail call i32 @WriteSpiCommand(i32 188)
%2 = tail call i32 @WriteSpiData(i32 0)
%3 = tail call i32 @WriteSpiData(i32 0)
%4 = tail call i32 @WriteSpiData(i32 2)
%5 = tail call i32 @WriteSpiCommand(i32 174)
%6 = tail call i32 @WriteSpiCommand(i32 21)
%7 = tail call i32 @WriteSpiData(i32 0)
%8 = tail call i32 @WriteSpiData(i32 131)
%9 = tail call i32 @WriteSpiCommand(i32 117)
%10 = tail call i32 @WriteSpiData(i32 0)
%11 = tail call i32 @WriteSpiData(i32 131)
%12 = tail call i32 @WriteSpiCommand(i32 92)
br label %13
13: ; preds = %0, %13
%14 = phi i64 [ 0, %0 ], [ %16, %13 ]
%15 = tail call i32 @WriteSpiData(i32 255)
%16 = add nuw nsw i64 %14, 1
%17 = icmp eq i64 %16, 25740
br i1 %17, label %18, label %13
18: ; preds = %13
%19 = tail call i32 @WriteSpiCommand(i32 188)
%20 = tail call i32 @WriteSpiData(i32 1)
%21 = tail call i32 @WriteSpiData(i32 0)
%22 = tail call i32 @WriteSpiData(i32 2)
%23 = tail call i32 @WriteSpiCommand(i32 175)
ret void
}