#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*/ usleep(int);
void reset() {
  Si1132_I2C_write8(0x08, 0);
  Si1132_I2C_write8(0x09, 0);
  Si1132_I2C_write8(0x04, 0);
  Si1132_I2C_write8(0x05, 0);
  Si1132_I2C_write8(0x06, 0);
  Si1132_I2C_write8(0x03, 0);
  Si1132_I2C_write8(0x21, 0xFF);
  Si1132_I2C_write8(0x18, 0x01);
  usleep(10000);
  Si1132_I2C_write8(0x07, 0x17);
  usleep(10000);
}


x86 assembly (clang, -O0):
<reset>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x9,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x4,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x5,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x6,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x3,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x21,%edi
mov    $0xff,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x18,%edi
mov    $0x1,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x2710,%edi
call   1040 <usleep@plt>
mov    $0x7,%edi
mov    $0x17,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x2710,%edi
call   1040 <usleep@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<reset>:
push   %rax
mov    $0x8,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x9,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x4,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x5,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x6,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x3,%edi
xor    %esi,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x21,%edi
mov    $0xff,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x18,%edi
mov    $0x1,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x2710,%edi
call   1040 <usleep@plt>
mov    $0x7,%edi
mov    $0x17,%esi
call   1030 <Si1132_I2C_write8@plt>
mov    $0x2710,%edi
pop    %rax
jmp    1040 <usleep@plt>

LLVM IR (-O0):
define void @reset() {
%1 = call i32 @Si1132_I2C_write8(i32 8, i32 0)
%2 = call i32 @Si1132_I2C_write8(i32 9, i32 0)
%3 = call i32 @Si1132_I2C_write8(i32 4, i32 0)
%4 = call i32 @Si1132_I2C_write8(i32 5, i32 0)
%5 = call i32 @Si1132_I2C_write8(i32 6, i32 0)
%6 = call i32 @Si1132_I2C_write8(i32 3, i32 0)
%7 = call i32 @Si1132_I2C_write8(i32 33, i32 255)
%8 = call i32 @Si1132_I2C_write8(i32 24, i32 1)
%9 = call i32 @usleep(i32 10000)
%10 = call i32 @Si1132_I2C_write8(i32 7, i32 23)
%11 = call i32 @usleep(i32 10000)
ret void
}

LLVM IR (-O2):
define void @reset() {
%1 = tail call i32 @Si1132_I2C_write8(i32 8, i32 0)
%2 = tail call i32 @Si1132_I2C_write8(i32 9, i32 0)
%3 = tail call i32 @Si1132_I2C_write8(i32 4, i32 0)
%4 = tail call i32 @Si1132_I2C_write8(i32 5, i32 0)
%5 = tail call i32 @Si1132_I2C_write8(i32 6, i32 0)
%6 = tail call i32 @Si1132_I2C_write8(i32 3, i32 0)
%7 = tail call i32 @Si1132_I2C_write8(i32 33, i32 255)
%8 = tail call i32 @Si1132_I2C_write8(i32 24, i32 1)
%9 = tail call i32 @usleep(i32 10000)
%10 = tail call i32 @Si1132_I2C_write8(i32 7, i32 23)
%11 = tail call i32 @usleep(i32 10000)
ret void
}