#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*/ CopyCStringToPascal(char const *, unsigned char *);
int /*<<< orphan*/ ParamText(unsigned char *, unsigned char *, unsigned char *,
                             unsigned char *);
void paramtext(const char *param0, const char *param1, const char *param2,
               const char *param3) {
  unsigned char p0[256];
  unsigned char p1[256];
  unsigned char p2[256];
  unsigned char p3[256];
  CopyCStringToPascal(param0, p0);
  CopyCStringToPascal(param1, p1);
  CopyCStringToPascal(param2, p2);
  CopyCStringToPascal(param3, p3);
  ParamText(p0, p1, p2, p3);
}


x86 assembly (clang, -O0):
<paramtext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x120(%rbp),%rsi
call   1030 <CopyCStringToPascal@plt>
mov    -0x10(%rbp),%rdi
lea    -0x220(%rbp),%rsi
call   1030 <CopyCStringToPascal@plt>
mov    -0x18(%rbp),%rdi
lea    -0x320(%rbp),%rsi
call   1030 <CopyCStringToPascal@plt>
mov    -0x20(%rbp),%rdi
lea    -0x420(%rbp),%rsi
call   1030 <CopyCStringToPascal@plt>
lea    -0x120(%rbp),%rdi
lea    -0x220(%rbp),%rsi
lea    -0x320(%rbp),%rdx
lea    -0x420(%rbp),%rcx
call   1040 <ParamText@plt>
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<paramtext>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x408,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
lea    0x300(%rsp),%r12
mov    %r12,%rsi
call   1030 <CopyCStringToPascal@plt>
lea    0x200(%rsp),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
call   1030 <CopyCStringToPascal@plt>
lea    0x100(%rsp),%rbp
mov    %r15,%rdi
mov    %rbp,%rsi
call   1030 <CopyCStringToPascal@plt>
mov    %rsp,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <CopyCStringToPascal@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %rbx,%rcx
call   1040 <ParamText@plt>
add    $0x408,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @paramtext(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca [256 x i8]
%10 = alloca [256 x i8]
%11 = alloca [256 x i8]
%12 = alloca [256 x i8]
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%13 = load i8*, i8** %5
%14 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%15 = call i32 @CopyCStringToPascal(i8* %13, i8* %14)
%16 = load i8*, i8** %6
%17 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%18 = call i32 @CopyCStringToPascal(i8* %16, i8* %17)
%19 = load i8*, i8** %7
%20 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%21 = call i32 @CopyCStringToPascal(i8* %19, i8* %20)
%22 = load i8*, i8** %8
%23 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%24 = call i32 @CopyCStringToPascal(i8* %22, i8* %23)
%25 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%26 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%27 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%28 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%29 = call i32 @ParamText(i8* %25, i8* %26, i8* %27, i8* %28)
ret void
}

LLVM IR (-O2):
define void @paramtext(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca [256 x i8]
%6 = alloca [256 x i8]
%7 = alloca [256 x i8]
%8 = alloca [256 x i8]
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%11 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%12 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%13 = call i32 @CopyCStringToPascal(i8* %0, i8* %9)
%14 = call i32 @CopyCStringToPascal(i8* %1, i8* %10)
%15 = call i32 @CopyCStringToPascal(i8* %2, i8* %11)
%16 = call i32 @CopyCStringToPascal(i8* %3, i8* %12)
%17 = call i32 @ParamText(i8* %9, i8* %10, i8* %11, i8* %12)
ret void
}