#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_fluffval(int /*<<< orphan*/ *, int, int, int, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
void GenUpDownFluff(FILE *outfile, char *arrname, int strided, int fluffval,
                    int mfluff, int wrapfluff, int dim, int lohi) {
  char regname[1024];
  sprintf(regname, "_ARR_DECL_REG(%s)", arrname);
  gen_fluffval(outfile, fluffval, mfluff, dim, regname);
}


x86 assembly (clang, -O0):
<GenUpDownFluff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%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)
lea    -0x420(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xea7(%rip),%rsi
call   1030 <sprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    0x10(%rbp),%ecx
lea    -0x420(%rbp),%r8
call   1040 <gen_fluffval@plt>
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GenUpDownFluff>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x400,%rsp
mov    %r8d,%r14d
mov    %ecx,%ebp
mov    %rsi,%rdx
mov    %rdi,%rbx
mov    0x430(%rsp),%r15d
lea    0xeb7(%rip),%rsi
mov    %rsp,%r12
mov    %r12,%rdi
call   1030 <sprintf@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r14d,%edx
mov    %r15d,%ecx
mov    %r12,%r8
call   1040 <gen_fluffval@plt>
add    $0x400,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"_ARR_DECL_REG(%s)\00"
define void @GenUpDownFluff(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
%17 = alloca [1024 x i8]
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
%18 = getelementptr inbounds [1024 x i8], [1024 x i8]* %17, i64 0, i64 0
%19 = load i8*, i8** %10
%20 = call i32 @sprintf(i8* %18, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %19)
%21 = load i32*, i32** %9
%22 = load i32, i32* %12
%23 = load i32, i32* %13
%24 = load i32, i32* %15
%25 = getelementptr inbounds [1024 x i8], [1024 x i8]* %17, i64 0, i64 0
%26 = call i32 @gen_fluffval(i32* %21, i32 %22, i32 %23, i32 %24, i8* %25)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"_ARR_DECL_REG(%s)\00"
define void @GenUpDownFluff(i32* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca [1024 x i8]
%10 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
%11 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %1)
%12 = call i32 @gen_fluffval(i32* %0, i32 %3, i32 %4, i32 %6, i8* %10)
ret void
}