#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*/ CG_CenterPrint(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ trap_Cvar_Set(char *, char *);
void CG_spWin_f(void) {
  trap_Cvar_Set("cg_cameraOrbit", "2");
  trap_Cvar_Set("cg_cameraOrbitDelay", "35");
  trap_Cvar_Set("cg_thirdPerson", "1");
  trap_Cvar_Set("cg_thirdPersonAngle", "0");
  trap_Cvar_Set("cg_thirdPersonRange", "100");
  CG_CenterPrint("YOU WIN!", 480 * .30, 0);
}


x86 assembly (clang, -O0):
<CG_spWin_f>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xedd(%rip),%rsi
call   1040 <trap_Cvar_Set@plt>
lea    0xed3(%rip),%rdi
lea    0xee0(%rip),%rsi
call   1040 <trap_Cvar_Set@plt>
lea    0xed7(%rip),%rdi
lea    0xedf(%rip),%rsi
call   1040 <trap_Cvar_Set@plt>
lea    0xed5(%rip),%rdi
lea    0xef8(%rip),%rsi
call   1040 <trap_Cvar_Set@plt>
lea    0xed6(%rip),%rdi
lea    0xee3(%rip),%rsi
call   1040 <trap_Cvar_Set@plt>
lea    0xedb(%rip),%rdi
mov    $0x90,%esi
xor    %edx,%edx
call   1030 <CG_CenterPrint@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<CG_spWin_f>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xee0(%rip),%rsi
call   1040 <trap_Cvar_Set@plt>
lea    0xed6(%rip),%rdi
lea    0xee3(%rip),%rsi
call   1040 <trap_Cvar_Set@plt>
lea    0xeda(%rip),%rdi
lea    0xee2(%rip),%rsi
call   1040 <trap_Cvar_Set@plt>
lea    0xed8(%rip),%rdi
lea    0xefb(%rip),%rsi
call   1040 <trap_Cvar_Set@plt>
lea    0xed9(%rip),%rdi
lea    0xee6(%rip),%rsi
call   1040 <trap_Cvar_Set@plt>
lea    0xede(%rip),%rdi
mov    $0x90,%esi
xor    %edx,%edx
pop    %rax
jmp    1030 <CG_CenterPrint@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"cg_cameraOrbit\00"
@.str.1 = [2 x i8] c"2\00"
@.str.2 = [20 x i8] c"cg_cameraOrbitDelay\00"
@.str.3 = [3 x i8] c"35\00"
@.str.4 = [15 x i8] c"cg_thirdPerson\00"
@.str.5 = [2 x i8] c"1\00"
@.str.6 = [20 x i8] c"cg_thirdPersonAngle\00"
@.str.7 = [2 x i8] c"0\00"
@.str.8 = [20 x i8] c"cg_thirdPersonRange\00"
@.str.9 = [4 x i8] c"100\00"
@.str.10 = [9 x i8] c"YOU WIN!\00"
define void @CG_spWin_f() {
%1 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%5 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%6 = call i32 @CG_CenterPrint(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 144, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"cg_cameraOrbit\00"
@.str.1 = [2 x i8] c"2\00"
@.str.2 = [20 x i8] c"cg_cameraOrbitDelay\00"
@.str.3 = [3 x i8] c"35\00"
@.str.4 = [15 x i8] c"cg_thirdPerson\00"
@.str.5 = [2 x i8] c"1\00"
@.str.6 = [20 x i8] c"cg_thirdPersonAngle\00"
@.str.7 = [2 x i8] c"0\00"
@.str.8 = [20 x i8] c"cg_thirdPersonRange\00"
@.str.9 = [4 x i8] c"100\00"
@.str.10 = [9 x i8] c"YOU WIN!\00"
define void @CG_spWin_f() {
%1 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%5 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%6 = tail call i32 @CG_CenterPrint(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 144, i32 0)
ret void
}