#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*/ dev_write(long, long, long, long);
int /*<<< orphan*/ getParLong(long *);
void IF_devWrite(void) {
  long d, n, sd, ch;
  if (!getParLong(&ch))
    return;
  if (!getParLong(&sd))
    return;
  if (!getParLong(&n))
    return;
  if (!getParLong(&d))
    return;
  dev_write(n, sd, ch, d);
  return;
}


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

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

LLVM IR (-O0):
define void @IF_devWrite() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = call i32 @getParLong(i64* %4)
%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* %3)
%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* %2)
%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* %1)
%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* %2
%22 = load i64, i64* %3
%23 = load i64, i64* %4
%24 = load i64, i64* %1
%25 = call i32 @dev_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_devWrite() {
%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* %4)
%10 = icmp eq i32 %9, 0
br i1 %10, label %26, label %11
11: ; preds = %0
%12 = call i32 @getParLong(i64* %3)
%13 = icmp eq i32 %12, 0
br i1 %13, label %26, label %14
14: ; preds = %11
%15 = call i32 @getParLong(i64* %2)
%16 = icmp eq i32 %15, 0
br i1 %16, label %26, label %17
17: ; preds = %14
%18 = call i32 @getParLong(i64* %1)
%19 = icmp eq i32 %18, 0
br i1 %19, label %26, label %20
20: ; preds = %17
%21 = load i64, i64* %2
%22 = load i64, i64* %3
%23 = load i64, i64* %4
%24 = load i64, i64* %1
%25 = call i32 @dev_write(i64 %21, i64 %22, i64 %23, i64 %24)
br label %26
26: ; preds = %17, %14, %11, %0, %20
ret void
}