#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 */
char *tparam1(char const *, char *, int, int /*<<< orphan*/, int /*<<< orphan*/,
              int *);
char *emacs_tparam(const char *string, char *outstring, int len, int arg1,
                   int arg2, int arg3, int arg4, int arg5, int arg6, int arg7,
                   int arg8, int arg9) {
  int arg[9];
  arg[0] = arg1;
  arg[1] = arg2;
  arg[2] = arg3;
  arg[3] = arg4;
  arg[4] = arg5;
  arg[5] = arg6;
  arg[6] = arg7;
  arg[7] = arg8;
  arg[8] = arg9;
  return tparam1(string, outstring, len, 0, 0, arg);
}


x86 assembly (clang, -O0):
<emacs_tparam>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
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)
mov    -0x18(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    0x10(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    0x18(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    0x20(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    0x28(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    0x38(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    -0x50(%rbp),%r9
xor    %r8d,%r8d
mov    %r8d,%ecx
call   1030 <tparam1@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<emacs_tparam>:
push   %rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    0x78(%rsp),%r10d
mov    0x70(%rsp),%r11d
mov    0x68(%rsp),%r14d
mov    0x60(%rsp),%ebx
mov    0x58(%rsp),%ebp
mov    0x50(%rsp),%eax
mov    %ecx,(%rsp)
mov    %r8d,0x4(%rsp)
mov    %r9d,0x8(%rsp)
mov    %eax,0xc(%rsp)
mov    %ebp,0x10(%rsp)
mov    %ebx,0x14(%rsp)
mov    %r14d,0x18(%rsp)
mov    %r11d,0x1c(%rsp)
mov    %r10d,0x20(%rsp)
mov    %rsp,%r9
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1030 <tparam1@plt>
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i8* @emacs_tparam(i8* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11) {
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca [9 x i32]
store i8* %0, i8** %13
store i8* %1, i8** %14
store i32 %2, i32* %15
store i32 %3, i32* %16
store i32 %4, i32* %17
store i32 %5, i32* %18
store i32 %6, i32* %19
store i32 %7, i32* %20
store i32 %8, i32* %21
store i32 %9, i32* %22
store i32 %10, i32* %23
store i32 %11, i32* %24
%26 = load i32, i32* %16
%27 = getelementptr inbounds [9 x i32], [9 x i32]* %25, i64 0, i64 0
store i32 %26, i32* %27
%28 = load i32, i32* %17
%29 = getelementptr inbounds [9 x i32], [9 x i32]* %25, i64 0, i64 1
store i32 %28, i32* %29
%30 = load i32, i32* %18
%31 = getelementptr inbounds [9 x i32], [9 x i32]* %25, i64 0, i64 2
store i32 %30, i32* %31
%32 = load i32, i32* %19
%33 = getelementptr inbounds [9 x i32], [9 x i32]* %25, i64 0, i64 3
store i32 %32, i32* %33
%34 = load i32, i32* %20
%35 = getelementptr inbounds [9 x i32], [9 x i32]* %25, i64 0, i64 4
store i32 %34, i32* %35
%36 = load i32, i32* %21
%37 = getelementptr inbounds [9 x i32], [9 x i32]* %25, i64 0, i64 5
store i32 %36, i32* %37
%38 = load i32, i32* %22
%39 = getelementptr inbounds [9 x i32], [9 x i32]* %25, i64 0, i64 6
store i32 %38, i32* %39
%40 = load i32, i32* %23
%41 = getelementptr inbounds [9 x i32], [9 x i32]* %25, i64 0, i64 7
store i32 %40, i32* %41
%42 = load i32, i32* %24
%43 = getelementptr inbounds [9 x i32], [9 x i32]* %25, i64 0, i64 8
store i32 %42, i32* %43
%44 = load i8*, i8** %13
%45 = load i8*, i8** %14
%46 = load i32, i32* %15
%47 = getelementptr inbounds [9 x i32], [9 x i32]* %25, i64 0, i64 0
%48 = call i8* @tparam1(i8* %44, i8* %45, i32 %46, i32 0, i32 0, i32* %47)
ret i8* %48
}

LLVM IR (-O2):
define i8* @emacs_tparam(i8* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11) {
%13 = alloca [9 x i32]
%14 = bitcast [9 x i32]* %13 to i8*
%15 = getelementptr inbounds [9 x i32], [9 x i32]* %13, i64 0, i64 0
store i32 %3, i32* %15
%16 = getelementptr inbounds [9 x i32], [9 x i32]* %13, i64 0, i64 1
store i32 %4, i32* %16
%17 = getelementptr inbounds [9 x i32], [9 x i32]* %13, i64 0, i64 2
store i32 %5, i32* %17
%18 = getelementptr inbounds [9 x i32], [9 x i32]* %13, i64 0, i64 3
store i32 %6, i32* %18
%19 = getelementptr inbounds [9 x i32], [9 x i32]* %13, i64 0, i64 4
store i32 %7, i32* %19
%20 = getelementptr inbounds [9 x i32], [9 x i32]* %13, i64 0, i64 5
store i32 %8, i32* %20
%21 = getelementptr inbounds [9 x i32], [9 x i32]* %13, i64 0, i64 6
store i32 %9, i32* %21
%22 = getelementptr inbounds [9 x i32], [9 x i32]* %13, i64 0, i64 7
store i32 %10, i32* %22
%23 = getelementptr inbounds [9 x i32], [9 x i32]* %13, i64 0, i64 8
store i32 %11, i32* %23
%24 = call i8* @tparam1(i8* %0, i8* %1, i32 %2, i32 0, i32 0, i32* %15)
ret i8* %24
}