#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 *CG_Argv(int);
int /*<<< orphan*/ CG_PriorityCenterPrint(int /*<<< orphan*/, int, int, int);
int /*<<< orphan*/ CG_TranslateString(char *);
int /*<<< orphan*/ Q_strncpyz(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ va(char *, int /*<<< orphan*/, char *, char *,
                      int /*<<< orphan*/, char *);
void CG_LimboMessage_f(void) {
  char teamStr[80], classStr[80], weapStr[80];
  Q_strncpyz(teamStr, CG_TranslateString(CG_Argv(1)), 80);
  Q_strncpyz(classStr, CG_TranslateString(CG_Argv(2)), 80);
  Q_strncpyz(weapStr, CG_TranslateString(CG_Argv(3)), 80);
  CG_PriorityCenterPrint(va("%s %s %s %s %s.",
                            CG_TranslateString("You will spawn as an"), teamStr,
                            classStr, CG_TranslateString("with a"), weapStr),
                         480 - (480 * 0.25), 8, -1);
}


x86 assembly (clang, -O0):
<CG_LimboMessage_f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
lea    -0x50(%rbp),%rax
mov    %rax,-0x120(%rbp)
mov    $0x1,%edi
call   1040 <CG_Argv@plt>
mov    %rax,%rdi
call   1030 <CG_TranslateString@plt>
mov    -0x120(%rbp),%rdi
mov    %eax,%esi
mov    $0x50,%edx
call   1070 <Q_strncpyz@plt>
lea    -0xa0(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    $0x2,%edi
call   1040 <CG_Argv@plt>
mov    %rax,%rdi
call   1030 <CG_TranslateString@plt>
mov    -0x118(%rbp),%rdi
mov    %eax,%esi
mov    $0x50,%edx
call   1070 <Q_strncpyz@plt>
lea    -0xf0(%rbp),%rax
mov    %rax,-0x110(%rbp)
mov    $0x3,%edi
call   1040 <CG_Argv@plt>
mov    %rax,%rdi
call   1030 <CG_TranslateString@plt>
mov    -0x110(%rbp),%rdi
mov    %eax,%esi
mov    $0x50,%edx
call   1070 <Q_strncpyz@plt>
lea    0xe18(%rip),%rdi
call   1030 <CG_TranslateString@plt>
mov    %eax,-0x104(%rbp)
lea    -0x50(%rbp),%rax
mov    %rax,-0x100(%rbp)
lea    -0xa0(%rbp),%rax
mov    %rax,-0xf8(%rbp)
lea    0xe02(%rip),%rdi
call   1030 <CG_TranslateString@plt>
mov    -0x104(%rbp),%esi
mov    -0x100(%rbp),%rdx
mov    -0xf8(%rbp),%rcx
mov    %eax,%r8d
lea    -0xf0(%rbp),%r9
lea    0xdb3(%rip),%rdi
call   1060 <va@plt>
mov    %eax,%edi
mov    $0x168,%esi
mov    $0x8,%edx
mov    $0xffffffff,%ecx
call   1050 <CG_PriorityCenterPrint@plt>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CG_LimboMessage_f>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0xf8,%rsp
mov    $0x1,%edi
call   1040 <CG_Argv@plt>
mov    %rax,%rdi
call   1030 <CG_TranslateString@plt>
lea    0xa0(%rsp),%r14
mov    %r14,%rdi
mov    %eax,%esi
mov    $0x50,%edx
call   1070 <Q_strncpyz@plt>
mov    $0x2,%edi
call   1040 <CG_Argv@plt>
mov    %rax,%rdi
call   1030 <CG_TranslateString@plt>
lea    0x50(%rsp),%r15
mov    %r15,%rdi
mov    %eax,%esi
mov    $0x50,%edx
call   1070 <Q_strncpyz@plt>
mov    $0x3,%edi
call   1040 <CG_Argv@plt>
mov    %rax,%rdi
call   1030 <CG_TranslateString@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0x50,%edx
call   1070 <Q_strncpyz@plt>
lea    0xe39(%rip),%rdi
call   1030 <CG_TranslateString@plt>
mov    %eax,%ebp
lea    0xe40(%rip),%rdi
call   1030 <CG_TranslateString@plt>
lea    0xe0f(%rip),%rdi
mov    %ebp,%esi
mov    %r14,%rdx
mov    %r15,%rcx
mov    %eax,%r8d
mov    %rbx,%r9
call   1060 <va@plt>
mov    %eax,%edi
mov    $0x168,%esi
mov    $0x8,%edx
mov    $0xffffffff,%ecx
call   1050 <CG_PriorityCenterPrint@plt>
add    $0xf8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"%s %s %s %s %s.\00"
@.str.1 = [21 x i8] c"You will spawn as an\00"
@.str.2 = [7 x i8] c"with a\00"
define void @CG_LimboMessage_f() {
%1 = alloca [80 x i8]
%2 = alloca [80 x i8]
%3 = alloca [80 x i8]
%4 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%5 = call i8* @CG_Argv(i32 1)
%6 = call i32 @CG_TranslateString(i8* %5)
%7 = call i32 @Q_strncpyz(i8* %4, i32 %6, i32 80)
%8 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%9 = call i8* @CG_Argv(i32 2)
%10 = call i32 @CG_TranslateString(i8* %9)
%11 = call i32 @Q_strncpyz(i8* %8, i32 %10, i32 80)
%12 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%13 = call i8* @CG_Argv(i32 3)
%14 = call i32 @CG_TranslateString(i8* %13)
%15 = call i32 @Q_strncpyz(i8* %12, i32 %14, i32 80)
%16 = call i32 @CG_TranslateString(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%17 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%18 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%19 = call i32 @CG_TranslateString(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%20 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%21 = call i32 @va(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %16, i8* %17, i8* %18, i32 %19, i8* %20)
%22 = call i32 @CG_PriorityCenterPrint(i32 %21, i32 360, i32 8, i32 -1)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"%s %s %s %s %s.\00"
@.str.1 = [21 x i8] c"You will spawn as an\00"
@.str.2 = [7 x i8] c"with a\00"
define void @CG_LimboMessage_f() {
%1 = alloca [80 x i8]
%2 = alloca [80 x i8]
%3 = alloca [80 x i8]
%4 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%7 = tail call i8* @CG_Argv(i32 1)
%8 = tail call i32 @CG_TranslateString(i8* %7)
%9 = call i32 @Q_strncpyz(i8* %4, i32 %8, i32 80)
%10 = call i8* @CG_Argv(i32 2)
%11 = call i32 @CG_TranslateString(i8* %10)
%12 = call i32 @Q_strncpyz(i8* %5, i32 %11, i32 80)
%13 = call i8* @CG_Argv(i32 3)
%14 = call i32 @CG_TranslateString(i8* %13)
%15 = call i32 @Q_strncpyz(i8* %6, i32 %14, i32 80)
%16 = call i32 @CG_TranslateString(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 @CG_TranslateString(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%18 = call i32 @va(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %16, i8* %4, i8* %5, i32 %17, i8* %6)
%19 = call i32 @CG_PriorityCenterPrint(i32 %18, i32 360, i32 8, i32 -1)
ret void
}