#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(int);
int /*<<< orphan*/ SPI_2825_WrCmd(int);
int /*<<< orphan*/ SPI_2825_WrReg(int, int);
int /*<<< orphan*/ SPI_WriteData(int);
void Init_SSD2805_step2(void) {
  SPI_2825_WrReg(0xb1, ((4) << 8) | (4));
  SPI_2825_WrReg(0xb2, ((4) << 8) | (48));
  SPI_2825_WrReg(0xb3, ((8) << 8) | (16));
  SPI_2825_WrReg(0xb4, (800));
  SPI_2825_WrReg(0xb5, (1281));
  SPI_2825_WrReg(0xb6, 0x0003);
  SPI_2825_WrCmd(0xDE);
  SPI_WriteData(0x03);
  SPI_WriteData(0x00);
  SPI_2825_WrCmd(0xD6);
  SPI_WriteData(0x05);
  SPI_WriteData(0x00);
  SPI_2825_WrCmd(0xB7);
  SPI_WriteData(0x4B);
  SPI_WriteData(0x02);
  Delay(100);
  SPI_2825_WrCmd(0x2C);
}


x86 assembly (clang, -O0):
<Init_SSD2805_step2>:
push   %rbp
mov    %rsp,%rbp
mov    $0xb1,%edi
mov    $0x404,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xb2,%edi
mov    $0x430,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xb3,%edi
mov    $0x810,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xb4,%edi
mov    $0x320,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xb5,%edi
mov    $0x501,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xb6,%edi
mov    $0x3,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xde,%edi
call   1060 <SPI_2825_WrCmd@plt>
mov    $0x3,%edi
call   1040 <SPI_WriteData@plt>
xor    %edi,%edi
call   1040 <SPI_WriteData@plt>
mov    $0xd6,%edi
call   1060 <SPI_2825_WrCmd@plt>
mov    $0x5,%edi
call   1040 <SPI_WriteData@plt>
xor    %edi,%edi
call   1040 <SPI_WriteData@plt>
mov    $0xb7,%edi
call   1060 <SPI_2825_WrCmd@plt>
mov    $0x4b,%edi
call   1040 <SPI_WriteData@plt>
mov    $0x2,%edi
call   1040 <SPI_WriteData@plt>
mov    $0x64,%edi
call   1030 <Delay@plt>
mov    $0x2c,%edi
call   1060 <SPI_2825_WrCmd@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Init_SSD2805_step2>:
push   %rax
mov    $0xb1,%edi
mov    $0x404,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xb2,%edi
mov    $0x430,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xb3,%edi
mov    $0x810,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xb4,%edi
mov    $0x320,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xb5,%edi
mov    $0x501,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xb6,%edi
mov    $0x3,%esi
call   1050 <SPI_2825_WrReg@plt>
mov    $0xde,%edi
call   1060 <SPI_2825_WrCmd@plt>
mov    $0x3,%edi
call   1040 <SPI_WriteData@plt>
xor    %edi,%edi
call   1040 <SPI_WriteData@plt>
mov    $0xd6,%edi
call   1060 <SPI_2825_WrCmd@plt>
mov    $0x5,%edi
call   1040 <SPI_WriteData@plt>
xor    %edi,%edi
call   1040 <SPI_WriteData@plt>
mov    $0xb7,%edi
call   1060 <SPI_2825_WrCmd@plt>
mov    $0x4b,%edi
call   1040 <SPI_WriteData@plt>
mov    $0x2,%edi
call   1040 <SPI_WriteData@plt>
mov    $0x64,%edi
call   1030 <Delay@plt>
mov    $0x2c,%edi
pop    %rax
jmp    1060 <SPI_2825_WrCmd@plt>

LLVM IR (-O0):
define void @Init_SSD2805_step2() {
%1 = call i32 @SPI_2825_WrReg(i32 177, i32 1028)
%2 = call i32 @SPI_2825_WrReg(i32 178, i32 1072)
%3 = call i32 @SPI_2825_WrReg(i32 179, i32 2064)
%4 = call i32 @SPI_2825_WrReg(i32 180, i32 800)
%5 = call i32 @SPI_2825_WrReg(i32 181, i32 1281)
%6 = call i32 @SPI_2825_WrReg(i32 182, i32 3)
%7 = call i32 @SPI_2825_WrCmd(i32 222)
%8 = call i32 @SPI_WriteData(i32 3)
%9 = call i32 @SPI_WriteData(i32 0)
%10 = call i32 @SPI_2825_WrCmd(i32 214)
%11 = call i32 @SPI_WriteData(i32 5)
%12 = call i32 @SPI_WriteData(i32 0)
%13 = call i32 @SPI_2825_WrCmd(i32 183)
%14 = call i32 @SPI_WriteData(i32 75)
%15 = call i32 @SPI_WriteData(i32 2)
%16 = call i32 @Delay(i32 100)
%17 = call i32 @SPI_2825_WrCmd(i32 44)
ret void
}

LLVM IR (-O2):
define void @Init_SSD2805_step2() {
%1 = tail call i32 @SPI_2825_WrReg(i32 177, i32 1028)
%2 = tail call i32 @SPI_2825_WrReg(i32 178, i32 1072)
%3 = tail call i32 @SPI_2825_WrReg(i32 179, i32 2064)
%4 = tail call i32 @SPI_2825_WrReg(i32 180, i32 800)
%5 = tail call i32 @SPI_2825_WrReg(i32 181, i32 1281)
%6 = tail call i32 @SPI_2825_WrReg(i32 182, i32 3)
%7 = tail call i32 @SPI_2825_WrCmd(i32 222)
%8 = tail call i32 @SPI_WriteData(i32 3)
%9 = tail call i32 @SPI_WriteData(i32 0)
%10 = tail call i32 @SPI_2825_WrCmd(i32 214)
%11 = tail call i32 @SPI_WriteData(i32 5)
%12 = tail call i32 @SPI_WriteData(i32 0)
%13 = tail call i32 @SPI_2825_WrCmd(i32 183)
%14 = tail call i32 @SPI_WriteData(i32 75)
%15 = tail call i32 @SPI_WriteData(i32 2)
%16 = tail call i32 @Delay(i32 100)
%17 = tail call i32 @SPI_2825_WrCmd(i32 44)
ret void
}