#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*/ trap_Cvar_Set(char *, int /*<<< orphan*/);
int trap_Cvar_VariableValue(char *);
int /*<<< orphan*/ va(char *, int);
void CG_CopyCharacterVariables(void) {
  int acc, str, sta, ste, tec, spe, xp;
  acc = trap_Cvar_VariableValue("char_accuracy");
  str = trap_Cvar_VariableValue("char_strength");
  sta = trap_Cvar_VariableValue("char_stamina");
  ste = trap_Cvar_VariableValue("char_stealth");
  tec = trap_Cvar_VariableValue("char_technical");
  spe = trap_Cvar_VariableValue("char_speed");
  xp = trap_Cvar_VariableValue("char_xp");
  trap_Cvar_Set("ui_char_accuracy", va("%i", acc));
  trap_Cvar_Set("ui_char_strength", va("%i", str));
  trap_Cvar_Set("ui_char_stamina", va("%i", sta));
  trap_Cvar_Set("ui_char_stealth", va("%i", ste));
  trap_Cvar_Set("ui_char_technical", va("%i", tec));
  trap_Cvar_Set("ui_char_speed", va("%i", spe));
  trap_Cvar_Set("ui_char_xp", va("%i", xp));
  trap_Cvar_Set("ui_char_old_xp", va("%i", xp));
}


x86 assembly (clang, -O0):
<CG_CopyCharacterVariables>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xec4(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,-0x4(%rbp)
lea    0xec9(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,-0x8(%rbp)
lea    0xecb(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,-0xc(%rbp)
lea    0xecc(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,-0x10(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,-0x14(%rbp)
lea    0xed0(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,-0x18(%rbp)
lea    0xecf(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe66(%rip),%rdi
call   1040 <va@plt>
mov    %eax,%esi
lea    0xe47(%rip),%rdi
call   1050 <trap_Cvar_Set@plt>
mov    -0x8(%rbp),%esi
lea    0xe49(%rip),%rdi
call   1040 <va@plt>
mov    %eax,%esi
lea    0xe3e(%rip),%rdi
call   1050 <trap_Cvar_Set@plt>
mov    -0xc(%rbp),%esi
lea    0xe2c(%rip),%rdi
call   1040 <va@plt>
mov    %eax,%esi
lea    0xe32(%rip),%rdi
call   1050 <trap_Cvar_Set@plt>
mov    -0x10(%rbp),%esi
lea    0xe0f(%rip),%rdi
call   1040 <va@plt>
mov    %eax,%esi
lea    0xe25(%rip),%rdi
call   1050 <trap_Cvar_Set@plt>
mov    -0x14(%rbp),%esi
lea    0xdf2(%rip),%rdi
call   1040 <va@plt>
mov    %eax,%esi
lea    0xe18(%rip),%rdi
call   1050 <trap_Cvar_Set@plt>
mov    -0x18(%rbp),%esi
lea    0xdd5(%rip),%rdi
call   1040 <va@plt>
mov    %eax,%esi
lea    0xe0d(%rip),%rdi
call   1050 <trap_Cvar_Set@plt>
mov    -0x1c(%rbp),%esi
lea    0xdb8(%rip),%rdi
call   1040 <va@plt>
mov    %eax,%esi
lea    0xdfe(%rip),%rdi
call   1050 <trap_Cvar_Set@plt>
mov    -0x1c(%rbp),%esi
lea    0xd9b(%rip),%rdi
call   1040 <va@plt>
mov    %eax,%esi
lea    0xdec(%rip),%rdi
call   1050 <trap_Cvar_Set@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CG_CopyCharacterVariables>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xec1(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,%r15d
lea    0xec6(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,%r14d
lea    0xec8(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,%r13d
lea    0xec9(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,%r12d
lea    0xeca(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,(%rsp)
lea    0xecd(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,0x4(%rsp)
lea    0xecb(%rip),%rdi
call   1030 <trap_Cvar_VariableValue@plt>
mov    %eax,%ebp
lea    0xe66(%rip),%rbx
mov    %rbx,%rdi
mov    %r15d,%esi
call   1040 <va@plt>
lea    0xe43(%rip),%rdi
mov    %eax,%esi
call   1050 <trap_Cvar_Set@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
call   1040 <va@plt>
lea    0xe3e(%rip),%rdi
mov    %eax,%esi
call   1050 <trap_Cvar_Set@plt>
mov    %rbx,%rdi
mov    %r13d,%esi
call   1040 <va@plt>
lea    0xe36(%rip),%rdi
mov    %eax,%esi
call   1050 <trap_Cvar_Set@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
call   1040 <va@plt>
lea    0xe2d(%rip),%rdi
mov    %eax,%esi
call   1050 <trap_Cvar_Set@plt>
mov    %rbx,%rdi
mov    (%rsp),%esi
call   1040 <va@plt>
lea    0xe24(%rip),%rdi
mov    %eax,%esi
call   1050 <trap_Cvar_Set@plt>
mov    %rbx,%rdi
mov    0x4(%rsp),%esi
call   1040 <va@plt>
lea    0xe1c(%rip),%rdi
mov    %eax,%esi
call   1050 <trap_Cvar_Set@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1040 <va@plt>
lea    0xe12(%rip),%rdi
mov    %eax,%esi
call   1050 <trap_Cvar_Set@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1040 <va@plt>
lea    0xe05(%rip),%rdi
mov    %eax,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <trap_Cvar_Set@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"char_accuracy\00"
@.str.1 = [14 x i8] c"char_strength\00"
@.str.2 = [13 x i8] c"char_stamina\00"
@.str.3 = [13 x i8] c"char_stealth\00"
@.str.4 = [15 x i8] c"char_technical\00"
@.str.5 = [11 x i8] c"char_speed\00"
@.str.6 = [8 x i8] c"char_xp\00"
@.str.7 = [17 x i8] c"ui_char_accuracy\00"
@.str.8 = [3 x i8] c"%i\00"
@.str.9 = [17 x i8] c"ui_char_strength\00"
@.str.10 = [16 x i8] c"ui_char_stamina\00"
@.str.11 = [16 x i8] c"ui_char_stealth\00"
@.str.12 = [18 x i8] c"ui_char_technical\00"
@.str.13 = [14 x i8] c"ui_char_speed\00"
@.str.14 = [11 x i8] c"ui_char_xp\00"
@.str.15 = [15 x i8] c"ui_char_old_xp\00"
define void @CG_CopyCharacterVariables() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
store i32 %8, i32* %1
%9 = call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
store i32 %9, i32* %2
%10 = call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
store i32 %10, i32* %3
%11 = call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
store i32 %11, i32* %4
%12 = call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
store i32 %12, i32* %5
%13 = call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
store i32 %13, i32* %6
%14 = call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
store i32 %14, i32* %7
%15 = load i32, i32* %1
%16 = call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %15)
%17 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %16)
%18 = load i32, i32* %2
%19 = call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %18)
%20 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* %3
%22 = call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %21)
%23 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %22)
%24 = load i32, i32* %4
%25 = call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %24)
%26 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i32 %25)
%27 = load i32, i32* %5
%28 = call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %27)
%29 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i32 %28)
%30 = load i32, i32* %6
%31 = call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %30)
%32 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 %31)
%33 = load i32, i32* %7
%34 = call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %33)
%35 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %34)
%36 = load i32, i32* %7
%37 = call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %36)
%38 = call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i32 %37)
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"char_accuracy\00"
@.str.1 = [14 x i8] c"char_strength\00"
@.str.2 = [13 x i8] c"char_stamina\00"
@.str.3 = [13 x i8] c"char_stealth\00"
@.str.4 = [15 x i8] c"char_technical\00"
@.str.5 = [11 x i8] c"char_speed\00"
@.str.6 = [8 x i8] c"char_xp\00"
@.str.7 = [17 x i8] c"ui_char_accuracy\00"
@.str.8 = [3 x i8] c"%i\00"
@.str.9 = [17 x i8] c"ui_char_strength\00"
@.str.10 = [16 x i8] c"ui_char_stamina\00"
@.str.11 = [16 x i8] c"ui_char_stealth\00"
@.str.12 = [18 x i8] c"ui_char_technical\00"
@.str.13 = [14 x i8] c"ui_char_speed\00"
@.str.14 = [11 x i8] c"ui_char_xp\00"
@.str.15 = [15 x i8] c"ui_char_old_xp\00"
define void @CG_CopyCharacterVariables() {
%1 = tail call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @trap_Cvar_VariableValue(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %1)
%9 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %8)
%10 = tail call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %2)
%11 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i32 %10)
%12 = tail call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %3)
%13 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %12)
%14 = tail call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %4)
%15 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i32 %14)
%16 = tail call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %5)
%17 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i32 %16)
%18 = tail call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %6)
%19 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 %18)
%20 = tail call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %7)
%21 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %20)
%22 = tail call i32 @va(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %7)
%23 = tail call i32 @trap_Cvar_Set(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i32 %22)
ret void
}