#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ gen_set_fluff(int /*<<< orphan*/ *, char *, int, int, int,
                                 int, int, int);
void gen_fluff_setup_onedim(FILE *outfile, char *regname, int strided,
                            int fluffval, int unk_fluff, int wrapfluff,
                            int lohi, int dim) {
  if (fluffval || unk_fluff) {
    gen_set_fluff(outfile, regname, dim, fluffval, unk_fluff, lohi, strided,
                  wrapfluff);
  }
}


x86 assembly (clang, -O0):
<gen_fluff_setup_onedim>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
cmpl   $0x0,-0x18(%rbp)
jne    1148 <gen_fluff_setup_onedim+0x38>
cmpl   $0x0,-0x1c(%rbp)
je     1172 <gen_fluff_setup_onedim+0x62>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    0x18(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
mov    0x10(%rbp),%r9d
mov    -0x14(%rbp),%r10d
mov    -0x20(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1030 <gen_set_fluff@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_fluff_setup_onedim>:
mov    %edx,%r10d
mov    %r8d,%edx
or     %ecx,%edx
je     1134 <gen_fluff_setup_onedim+0x24>
push   %rax
mov    %r9d,%eax
mov    0x18(%rsp),%edx
mov    0x10(%rsp),%r9d
push   %rax
push   %r10
call   1030 <gen_set_fluff@plt>
add    $0x10,%rsp
pop    %rax
ret

LLVM IR (-O0):
define void @gen_fluff_setup_onedim(i32* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32* %0, i32** %9
store i8* %1, i8** %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%17 = load i32, i32* %12
%18 = icmp ne i32 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %8
%20 = load i32, i32* %13
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %32
22: ; preds = %19, %8
%23 = load i32*, i32** %9
%24 = load i8*, i8** %10
%25 = load i32, i32* %16
%26 = load i32, i32* %12
%27 = load i32, i32* %13
%28 = load i32, i32* %15
%29 = load i32, i32* %11
%30 = load i32, i32* %14
%31 = call i32 @gen_set_fluff(i32* %23, i8* %24, i32 %25, i32 %26, i32 %27, i32 %28, i32 %29, i32 %30)
br label %32
32: ; preds = %22, %19
ret void
}

LLVM IR (-O2):
define void @gen_fluff_setup_onedim(i32* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = or i32 %4, %3
%10 = icmp eq i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %8
%12 = tail call i32 @gen_set_fluff(i32* %0, i8* %1, i32 %7, i32 %3, i32 %4, i32 %6, i32 %2, i32 %5)
br label %13
13: ; preds = %8, %11
ret void
}