#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*/ OLED_Fill(int);
int /*<<< orphan*/ WriteCmd(int);
void ssd1306_init(void) {
  WriteCmd(0xAE);
  WriteCmd(0x20);
  WriteCmd(0x10);
  WriteCmd(0xb0);
  WriteCmd(0xc8);
  WriteCmd(0x00);
  WriteCmd(0x10);
  WriteCmd(0x40);
  WriteCmd(0x81);
  WriteCmd(0xff);
  WriteCmd(0xa1);
  WriteCmd(0xa6);
  WriteCmd(0xa8);
  WriteCmd(0x3F);
  WriteCmd(0xa4);
  WriteCmd(0xd3);
  WriteCmd(0x00);
  WriteCmd(0xd5);
  WriteCmd(0xf0);
  WriteCmd(0xd9);
  WriteCmd(0x22);
  WriteCmd(0xda);
  WriteCmd(0x12);
  WriteCmd(0xdb);
  WriteCmd(0x20);
  WriteCmd(0x8d);
  WriteCmd(0x14);
  WriteCmd(0xaf);
  OLED_Fill(0x00);
}


x86 assembly (clang, -O0):
<ssd1306_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0xae,%edi
call   1040 <WriteCmd@plt>
mov    $0x20,%edi
call   1040 <WriteCmd@plt>
mov    $0x10,%edi
call   1040 <WriteCmd@plt>
mov    $0xb0,%edi
call   1040 <WriteCmd@plt>
mov    $0xc8,%edi
call   1040 <WriteCmd@plt>
xor    %edi,%edi
call   1040 <WriteCmd@plt>
mov    $0x10,%edi
call   1040 <WriteCmd@plt>
mov    $0x40,%edi
call   1040 <WriteCmd@plt>
mov    $0x81,%edi
call   1040 <WriteCmd@plt>
mov    $0xff,%edi
call   1040 <WriteCmd@plt>
mov    $0xa1,%edi
call   1040 <WriteCmd@plt>
mov    $0xa6,%edi
call   1040 <WriteCmd@plt>
mov    $0xa8,%edi
call   1040 <WriteCmd@plt>
mov    $0x3f,%edi
call   1040 <WriteCmd@plt>
mov    $0xa4,%edi
call   1040 <WriteCmd@plt>
mov    $0xd3,%edi
call   1040 <WriteCmd@plt>
xor    %edi,%edi
call   1040 <WriteCmd@plt>
mov    $0xd5,%edi
call   1040 <WriteCmd@plt>
mov    $0xf0,%edi
call   1040 <WriteCmd@plt>
mov    $0xd9,%edi
call   1040 <WriteCmd@plt>
mov    $0x22,%edi
call   1040 <WriteCmd@plt>
mov    $0xda,%edi
call   1040 <WriteCmd@plt>
mov    $0x12,%edi
call   1040 <WriteCmd@plt>
mov    $0xdb,%edi
call   1040 <WriteCmd@plt>
mov    $0x20,%edi
call   1040 <WriteCmd@plt>
mov    $0x8d,%edi
call   1040 <WriteCmd@plt>
mov    $0x14,%edi
call   1040 <WriteCmd@plt>
mov    $0xaf,%edi
call   1040 <WriteCmd@plt>
xor    %edi,%edi
call   1030 <OLED_Fill@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ssd1306_init>:
push   %rax
mov    $0xae,%edi
call   1040 <WriteCmd@plt>
mov    $0x20,%edi
call   1040 <WriteCmd@plt>
mov    $0x10,%edi
call   1040 <WriteCmd@plt>
mov    $0xb0,%edi
call   1040 <WriteCmd@plt>
mov    $0xc8,%edi
call   1040 <WriteCmd@plt>
xor    %edi,%edi
call   1040 <WriteCmd@plt>
mov    $0x10,%edi
call   1040 <WriteCmd@plt>
mov    $0x40,%edi
call   1040 <WriteCmd@plt>
mov    $0x81,%edi
call   1040 <WriteCmd@plt>
mov    $0xff,%edi
call   1040 <WriteCmd@plt>
mov    $0xa1,%edi
call   1040 <WriteCmd@plt>
mov    $0xa6,%edi
call   1040 <WriteCmd@plt>
mov    $0xa8,%edi
call   1040 <WriteCmd@plt>
mov    $0x3f,%edi
call   1040 <WriteCmd@plt>
mov    $0xa4,%edi
call   1040 <WriteCmd@plt>
mov    $0xd3,%edi
call   1040 <WriteCmd@plt>
xor    %edi,%edi
call   1040 <WriteCmd@plt>
mov    $0xd5,%edi
call   1040 <WriteCmd@plt>
mov    $0xf0,%edi
call   1040 <WriteCmd@plt>
mov    $0xd9,%edi
call   1040 <WriteCmd@plt>
mov    $0x22,%edi
call   1040 <WriteCmd@plt>
mov    $0xda,%edi
call   1040 <WriteCmd@plt>
mov    $0x12,%edi
call   1040 <WriteCmd@plt>
mov    $0xdb,%edi
call   1040 <WriteCmd@plt>
mov    $0x20,%edi
call   1040 <WriteCmd@plt>
mov    $0x8d,%edi
call   1040 <WriteCmd@plt>
mov    $0x14,%edi
call   1040 <WriteCmd@plt>
mov    $0xaf,%edi
call   1040 <WriteCmd@plt>
xor    %edi,%edi
pop    %rax
jmp    1030 <OLED_Fill@plt>

LLVM IR (-O0):
define void @ssd1306_init() {
%1 = call i32 @WriteCmd(i32 174)
%2 = call i32 @WriteCmd(i32 32)
%3 = call i32 @WriteCmd(i32 16)
%4 = call i32 @WriteCmd(i32 176)
%5 = call i32 @WriteCmd(i32 200)
%6 = call i32 @WriteCmd(i32 0)
%7 = call i32 @WriteCmd(i32 16)
%8 = call i32 @WriteCmd(i32 64)
%9 = call i32 @WriteCmd(i32 129)
%10 = call i32 @WriteCmd(i32 255)
%11 = call i32 @WriteCmd(i32 161)
%12 = call i32 @WriteCmd(i32 166)
%13 = call i32 @WriteCmd(i32 168)
%14 = call i32 @WriteCmd(i32 63)
%15 = call i32 @WriteCmd(i32 164)
%16 = call i32 @WriteCmd(i32 211)
%17 = call i32 @WriteCmd(i32 0)
%18 = call i32 @WriteCmd(i32 213)
%19 = call i32 @WriteCmd(i32 240)
%20 = call i32 @WriteCmd(i32 217)
%21 = call i32 @WriteCmd(i32 34)
%22 = call i32 @WriteCmd(i32 218)
%23 = call i32 @WriteCmd(i32 18)
%24 = call i32 @WriteCmd(i32 219)
%25 = call i32 @WriteCmd(i32 32)
%26 = call i32 @WriteCmd(i32 141)
%27 = call i32 @WriteCmd(i32 20)
%28 = call i32 @WriteCmd(i32 175)
%29 = call i32 @OLED_Fill(i32 0)
ret void
}

LLVM IR (-O2):
define void @ssd1306_init() {
%1 = tail call i32 @WriteCmd(i32 174)
%2 = tail call i32 @WriteCmd(i32 32)
%3 = tail call i32 @WriteCmd(i32 16)
%4 = tail call i32 @WriteCmd(i32 176)
%5 = tail call i32 @WriteCmd(i32 200)
%6 = tail call i32 @WriteCmd(i32 0)
%7 = tail call i32 @WriteCmd(i32 16)
%8 = tail call i32 @WriteCmd(i32 64)
%9 = tail call i32 @WriteCmd(i32 129)
%10 = tail call i32 @WriteCmd(i32 255)
%11 = tail call i32 @WriteCmd(i32 161)
%12 = tail call i32 @WriteCmd(i32 166)
%13 = tail call i32 @WriteCmd(i32 168)
%14 = tail call i32 @WriteCmd(i32 63)
%15 = tail call i32 @WriteCmd(i32 164)
%16 = tail call i32 @WriteCmd(i32 211)
%17 = tail call i32 @WriteCmd(i32 0)
%18 = tail call i32 @WriteCmd(i32 213)
%19 = tail call i32 @WriteCmd(i32 240)
%20 = tail call i32 @WriteCmd(i32 217)
%21 = tail call i32 @WriteCmd(i32 34)
%22 = tail call i32 @WriteCmd(i32 218)
%23 = tail call i32 @WriteCmd(i32 18)
%24 = tail call i32 @WriteCmd(i32 219)
%25 = tail call i32 @WriteCmd(i32 32)
%26 = tail call i32 @WriteCmd(i32 141)
%27 = tail call i32 @WriteCmd(i32 20)
%28 = tail call i32 @WriteCmd(i32 175)
%29 = tail call i32 @OLED_Fill(i32 0)
ret void
}