#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*/ Si1132_I2C_write8(int, int);
int /*<<< orphan*/ Si1132_I2C_writeParam(int, int);
int /*<<< orphan*/ reset();
int /*<<< orphan*/ usleep(int);
void initialize(void) {
  reset();
  Si1132_I2C_write8(0x13, 0x7B);
  Si1132_I2C_write8(0x14, 0x6B);
  Si1132_I2C_write8(0x15, 0x01);
  Si1132_I2C_write8(0x16, 0x00);
  Si1132_I2C_writeParam(0x01, 0x80 | 0x20 | 0x10);
  Si1132_I2C_write8(0x03, 0x01);
  Si1132_I2C_write8(0x04, 0x01);
  Si1132_I2C_writeParam(0x0E, 0x00);
  usleep(10000);
  Si1132_I2C_writeParam(0x1E, 0);
  usleep(10000);
  Si1132_I2C_writeParam(0x1D, 0x70);
  Si1132_I2C_writeParam(0x1F, 0x20);
  usleep(10000);
  Si1132_I2C_writeParam(0x11, 0);
  usleep(10000);
  Si1132_I2C_writeParam(0x10, 0x70);
  Si1132_I2C_writeParam(0x12, 0x20);
  usleep(10000);
  Si1132_I2C_write8(0x08, 0xFF);
  Si1132_I2C_write8(0x18, 0x0E);
}


x86 assembly (clang, -O0):
<initialize>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <reset@plt>
mov    $0x13,%edi
mov    $0x7b,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x14,%edi
mov    $0x6b,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x15,%edi
mov    $0x1,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x16,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x1,%edi
mov    $0xb0,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x3,%edi
mov    $0x1,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x4,%edi
mov    $0x1,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0xe,%edi
xor    %esi,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x2710,%edi
call   1060 <usleep@plt>
mov    $0x1e,%edi
xor    %esi,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x2710,%edi
call   1060 <usleep@plt>
mov    $0x1d,%edi
mov    $0x70,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x1f,%edi
mov    $0x20,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x2710,%edi
call   1060 <usleep@plt>
mov    $0x11,%edi
xor    %esi,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x2710,%edi
call   1060 <usleep@plt>
mov    $0x10,%edi
mov    $0x70,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x12,%edi
mov    $0x20,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x2710,%edi
call   1060 <usleep@plt>
mov    $0x8,%edi
mov    $0xff,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x18,%edi
mov    $0xe,%esi
call   1030 <Si1132_I2C_write8@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialize>:
push   %rax
xor    %eax,%eax
call   1040 <reset@plt>
mov    $0x13,%edi
mov    $0x7b,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x14,%edi
mov    $0x6b,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x15,%edi
mov    $0x1,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x16,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x1,%edi
mov    $0xb0,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x3,%edi
mov    $0x1,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x4,%edi
mov    $0x1,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0xe,%edi
xor    %esi,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x2710,%edi
call   1060 <usleep@plt>
mov    $0x1e,%edi
xor    %esi,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x2710,%edi
call   1060 <usleep@plt>
mov    $0x1d,%edi
mov    $0x70,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x1f,%edi
mov    $0x20,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x2710,%edi
call   1060 <usleep@plt>
mov    $0x11,%edi
xor    %esi,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x2710,%edi
call   1060 <usleep@plt>
mov    $0x10,%edi
mov    $0x70,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x12,%edi
mov    $0x20,%esi
call   1050 <Si1132_I2C_writeParam@plt>
mov    $0x2710,%edi
call   1060 <usleep@plt>
mov    $0x8,%edi
mov    $0xff,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x18,%edi
mov    $0xe,%esi
pop    %rax
jmp    1030 <Si1132_I2C_write8@plt>

LLVM IR (-O0):
define void @initialize() {
%1 = call i32 (...) @reset()
%2 = call i32 @Si1132_I2C_write8(i32 19, i32 123)
%3 = call i32 @Si1132_I2C_write8(i32 20, i32 107)
%4 = call i32 @Si1132_I2C_write8(i32 21, i32 1)
%5 = call i32 @Si1132_I2C_write8(i32 22, i32 0)
%6 = call i32 @Si1132_I2C_writeParam(i32 1, i32 176)
%7 = call i32 @Si1132_I2C_write8(i32 3, i32 1)
%8 = call i32 @Si1132_I2C_write8(i32 4, i32 1)
%9 = call i32 @Si1132_I2C_writeParam(i32 14, i32 0)
%10 = call i32 @usleep(i32 10000)
%11 = call i32 @Si1132_I2C_writeParam(i32 30, i32 0)
%12 = call i32 @usleep(i32 10000)
%13 = call i32 @Si1132_I2C_writeParam(i32 29, i32 112)
%14 = call i32 @Si1132_I2C_writeParam(i32 31, i32 32)
%15 = call i32 @usleep(i32 10000)
%16 = call i32 @Si1132_I2C_writeParam(i32 17, i32 0)
%17 = call i32 @usleep(i32 10000)
%18 = call i32 @Si1132_I2C_writeParam(i32 16, i32 112)
%19 = call i32 @Si1132_I2C_writeParam(i32 18, i32 32)
%20 = call i32 @usleep(i32 10000)
%21 = call i32 @Si1132_I2C_write8(i32 8, i32 255)
%22 = call i32 @Si1132_I2C_write8(i32 24, i32 14)
ret void
}

LLVM IR (-O2):
define void @initialize() {
%1 = tail call i32 (...) @reset()
%2 = tail call i32 @Si1132_I2C_write8(i32 19, i32 123)
%3 = tail call i32 @Si1132_I2C_write8(i32 20, i32 107)
%4 = tail call i32 @Si1132_I2C_write8(i32 21, i32 1)
%5 = tail call i32 @Si1132_I2C_write8(i32 22, i32 0)
%6 = tail call i32 @Si1132_I2C_writeParam(i32 1, i32 176)
%7 = tail call i32 @Si1132_I2C_write8(i32 3, i32 1)
%8 = tail call i32 @Si1132_I2C_write8(i32 4, i32 1)
%9 = tail call i32 @Si1132_I2C_writeParam(i32 14, i32 0)
%10 = tail call i32 @usleep(i32 10000)
%11 = tail call i32 @Si1132_I2C_writeParam(i32 30, i32 0)
%12 = tail call i32 @usleep(i32 10000)
%13 = tail call i32 @Si1132_I2C_writeParam(i32 29, i32 112)
%14 = tail call i32 @Si1132_I2C_writeParam(i32 31, i32 32)
%15 = tail call i32 @usleep(i32 10000)
%16 = tail call i32 @Si1132_I2C_writeParam(i32 17, i32 0)
%17 = tail call i32 @usleep(i32 10000)
%18 = tail call i32 @Si1132_I2C_writeParam(i32 16, i32 112)
%19 = tail call i32 @Si1132_I2C_writeParam(i32 18, i32 32)
%20 = tail call i32 @usleep(i32 10000)
%21 = tail call i32 @Si1132_I2C_write8(i32 8, i32 255)
%22 = tail call i32 @Si1132_I2C_write8(i32 24, i32 14)
ret void
}