#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*/ getParLong(long *);
int /*<<< orphan*/ i2c_write(long, long, long, long);
void IF_I2CWrite(void) {
  long id, add, off, val;
  if (!getParLong(&id))
    return;
  if (!getParLong(&add))
    return;
  if (!getParLong(&off))
    return;
  if (!getParLong(&val))
    return;
  i2c_write(id, add, off, val);
  return;
}


x86 assembly (clang, -O0):
<IF_I2CWrite>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    -0x8(%rbp),%rdi
call   1030 <getParLong@plt>
cmp    $0x0,%eax
jne    113f <IF_I2CWrite+0x1f>
jmp    1199 <IF_I2CWrite+0x79>
lea    -0x10(%rbp),%rdi
call   1030 <getParLong@plt>
cmp    $0x0,%eax
jne    1156 <IF_I2CWrite+0x36>
jmp    1199 <IF_I2CWrite+0x79>
lea    -0x18(%rbp),%rdi
call   1030 <getParLong@plt>
cmp    $0x0,%eax
jne    116d <IF_I2CWrite+0x4d>
jmp    1199 <IF_I2CWrite+0x79>
lea    -0x20(%rbp),%rdi
call   1030 <getParLong@plt>
cmp    $0x0,%eax
jne    1184 <IF_I2CWrite+0x64>
jmp    1199 <IF_I2CWrite+0x79>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1040 <i2c_write@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<IF_I2CWrite>:
sub    $0x28,%rsp
lea    0x20(%rsp),%rdi
call   1030 <getParLong@plt>
test   %eax,%eax
je     1175 <IF_I2CWrite+0x55>
lea    0x18(%rsp),%rdi
call   1030 <getParLong@plt>
test   %eax,%eax
je     1175 <IF_I2CWrite+0x55>
lea    0x10(%rsp),%rdi
call   1030 <getParLong@plt>
test   %eax,%eax
je     1175 <IF_I2CWrite+0x55>
lea    0x8(%rsp),%rdi
call   1030 <getParLong@plt>
test   %eax,%eax
je     1175 <IF_I2CWrite+0x55>
mov    0x20(%rsp),%rdi
mov    0x18(%rsp),%rsi
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%rcx
call   1040 <i2c_write@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
define void @IF_I2CWrite() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = call i32 @getParLong(i64* %1)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %0
br label %26
8: ; preds = %0
%9 = call i32 @getParLong(i64* %2)
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %8
br label %26
12: ; preds = %8
%13 = call i32 @getParLong(i64* %3)
%14 = icmp ne i32 %13, 0
br i1 %14, label %16, label %15
15: ; preds = %12
br label %26
16: ; preds = %12
%17 = call i32 @getParLong(i64* %4)
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %16
br label %26
20: ; preds = %16
%21 = load i64, i64* %1
%22 = load i64, i64* %2
%23 = load i64, i64* %3
%24 = load i64, i64* %4
%25 = call i32 @i2c_write(i64 %21, i64 %22, i64 %23, i64 %24)
br label %26
26: ; preds = %20, %19, %15, %11, %7
ret void
}

LLVM IR (-O2):
define void @IF_I2CWrite() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = bitcast i64* %1 to i8*
%6 = bitcast i64* %2 to i8*
%7 = bitcast i64* %3 to i8*
%8 = bitcast i64* %4 to i8*
%9 = call i32 @getParLong(i64* %1)
%10 = icmp eq i32 %9, 0
br i1 %10, label %26, label %11
11: ; preds = %0
%12 = call i32 @getParLong(i64* %2)
%13 = icmp eq i32 %12, 0
br i1 %13, label %26, label %14
14: ; preds = %11
%15 = call i32 @getParLong(i64* %3)
%16 = icmp eq i32 %15, 0
br i1 %16, label %26, label %17
17: ; preds = %14
%18 = call i32 @getParLong(i64* %4)
%19 = icmp eq i32 %18, 0
br i1 %19, label %26, label %20
20: ; preds = %17
%21 = load i64, i64* %1
%22 = load i64, i64* %2
%23 = load i64, i64* %3
%24 = load i64, i64* %4
%25 = call i32 @i2c_write(i64 %21, i64 %22, i64 %23, i64 %24)
br label %26
26: ; preds = %17, %14, %11, %0, %20
ret void
}