void UI_Update(const char *name) {
  int val = trap_Cvar_VariableValue(name);
  if (Q_stricmp(name, "ui_SetName") == 0) {
    trap_Cvar_Set("name", UI_Cvar_VariableString("ui_Name"));
  } else if (Q_stricmp(name, "ui_setRate") == 0) {
    float rate = trap_Cvar_VariableValue("rate");
    if (rate >= 5000) {
      trap_Cvar_Set("cl_maxpackets", "30");
      trap_Cvar_Set("cl_packetdup", "1");
    } else if (rate >= 4000) {
      trap_Cvar_Set("cl_maxpackets", "15");
      trap_Cvar_Set("cl_packetdup", "2");
    } else {
      trap_Cvar_Set("cl_maxpackets", "15");
      trap_Cvar_Set("cl_packetdup", "1");
    }
  } else if (Q_stricmp(name, "ui_GetName") == 0) {
    trap_Cvar_Set("ui_Name", UI_Cvar_VariableString("name"));
  } else if (Q_stricmp(name, "r_colorbits") == 0) {
    switch (val) {
    case 0:
      trap_Cvar_SetValue("r_depthbits", 0);
      trap_Cvar_SetValue("r_stencilbits", 0);
      break;
    case 16:
      trap_Cvar_SetValue("r_depthbits", 16);
      trap_Cvar_SetValue("r_stencilbits", 0);
      break;
    case 32:
      trap_Cvar_SetValue("r_depthbits", 24);
      break;
    }
  } else if (Q_stricmp(name, "r_lodbias") == 0) {
    switch (val) {
    case 0:
      trap_Cvar_SetValue("r_subdivisions", 4);
      break;
    case 1:
      trap_Cvar_SetValue("r_subdivisions", 12);
      break;
    case 2:
      trap_Cvar_SetValue("r_subdivisions", 20);
      break;
    }
  } else if (Q_stricmp(name, "ui_glCustom") == 0) {
    switch (val) {
    case 0:
      trap_Cvar_SetValue("r_fullScreen", 1);
      trap_Cvar_SetValue("r_subdivisions", 4);
      trap_Cvar_SetValue("r_vertexlight", 0);
      trap_Cvar_SetValue("r_lodbias", 0);
      trap_Cvar_SetValue("r_colorbits", 32);
      trap_Cvar_SetValue("r_depthbits", 24);
      trap_Cvar_SetValue("r_picmip", 0);
      trap_Cvar_SetValue("r_mode", 4);
      trap_Cvar_SetValue("r_texturebits", 32);
      trap_Cvar_SetValue("r_fastSky", 0);
      trap_Cvar_SetValue("r_inGameVideo", 1);
      trap_Cvar_SetValue("cg_shadows", 1);
      trap_Cvar_SetValue("cg_brassTime", 2500);
      trap_Cvar_Set("r_texturemode", "GL_LINEAR_MIPMAP_LINEAR");
      break;
    case 1:
      trap_Cvar_SetValue("r_fullScreen", 1);
      trap_Cvar_SetValue("r_subdivisions", 12);
      trap_Cvar_SetValue("r_vertexlight", 0);
      trap_Cvar_SetValue("r_lodbias", 0);
      trap_Cvar_SetValue("r_colorbits", 0);
      trap_Cvar_SetValue("r_depthbits", 24);
      trap_Cvar_SetValue("r_picmip", 1);
      trap_Cvar_SetValue("r_mode", 3);
      trap_Cvar_SetValue("r_texturebits", 0);
      trap_Cvar_SetValue("r_fastSky", 0);
      trap_Cvar_SetValue("r_inGameVideo", 1);
      trap_Cvar_SetValue("cg_brassTime", 2500);
      trap_Cvar_Set("r_texturemode", "GL_LINEAR_MIPMAP_LINEAR");
      trap_Cvar_SetValue("cg_shadows", 0);
      break;
    case 2:
      trap_Cvar_SetValue("r_fullScreen", 1);
      trap_Cvar_SetValue("r_subdivisions", 8);
      trap_Cvar_SetValue("r_vertexlight", 0);
      trap_Cvar_SetValue("r_lodbias", 1);
      trap_Cvar_SetValue("r_colorbits", 0);
      trap_Cvar_SetValue("r_depthbits", 0);
      trap_Cvar_SetValue("r_picmip", 1);
      trap_Cvar_SetValue("r_mode", 3);
      trap_Cvar_SetValue("r_texturebits", 0);
      trap_Cvar_SetValue("cg_shadows", 0);
      trap_Cvar_SetValue("r_fastSky", 1);
      trap_Cvar_SetValue("r_inGameVideo", 0);
      trap_Cvar_SetValue("cg_brassTime", 0);
      trap_Cvar_Set("r_texturemode", "GL_LINEAR_MIPMAP_NEAREST");
      break;
    case 3:
      trap_Cvar_SetValue("r_fullScreen", 1);
      trap_Cvar_SetValue("r_subdivisions", 20);
      trap_Cvar_SetValue("r_vertexlight", 1);
      trap_Cvar_SetValue("r_lodbias", 2);
      trap_Cvar_SetValue("r_colorbits", 16);
      trap_Cvar_SetValue("r_depthbits", 16);
      trap_Cvar_SetValue("r_mode", 3);
      trap_Cvar_SetValue("r_picmip", 2);
      trap_Cvar_SetValue("r_texturebits", 16);
      trap_Cvar_SetValue("cg_shadows", 0);
      trap_Cvar_SetValue("cg_brassTime", 0);
      trap_Cvar_SetValue("r_fastSky", 1);
      trap_Cvar_SetValue("r_inGameVideo", 0);
      trap_Cvar_Set("r_texturemode", "GL_LINEAR_MIPMAP_NEAREST");
      break;
    }
  } else if (Q_stricmp(name, "ui_mousePitch") == 0) {
    if (val == 0) {
      trap_Cvar_SetValue("m_pitch", 0.022f);
    } else {
      trap_Cvar_SetValue("m_pitch", -0.022f);
    }
  }
}


x86 assembly (clang, -O0):
<UI_Update>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1050 <trap_Cvar_VariableValue@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb3(%rip),%rsi
mov    $0x0,%al
call   1030 <Q_stricmp@plt>
cmp    $0x0,%eax
jne    11a8 <UI_Update+0x58>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1040 <UI_Cvar_VariableString@plt>
mov    %eax,%esi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
jmp    18e4 <UI_Update+0x794>
mov    -0x8(%rbp),%rdi
lea    0xe8d(%rip),%rsi
mov    $0x0,%al
call   1030 <Q_stricmp@plt>
cmp    $0x0,%eax
jne    1298 <UI_Update+0x148>
lea    0xe81(%rip),%rdi
mov    $0x0,%al
call   1050 <trap_Cvar_VariableValue@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  0xe29(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     121f <UI_Update+0xcf>
lea    0xe59(%rip),%rdi
lea    0xe60(%rip),%rsi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
lea    0xe55(%rip),%rdi
lea    0xe5b(%rip),%rsi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
jmp    1293 <UI_Update+0x143>
movss  -0x10(%rbp),%xmm0
movss  0xde8(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     1264 <UI_Update+0x114>
lea    0xe14(%rip),%rdi
lea    0xe2d(%rip),%rsi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
lea    0xe10(%rip),%rdi
lea    0xe1b(%rip),%rsi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
jmp    128e <UI_Update+0x13e>
lea    0xde5(%rip),%rdi
lea    0xdfe(%rip),%rsi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
lea    0xde1(%rip),%rdi
lea    0xde7(%rip),%rsi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
jmp    1293 <UI_Update+0x143>
jmp    18df <UI_Update+0x78f>
mov    -0x8(%rbp),%rdi
lea    0xdd2(%rip),%rsi
mov    $0x0,%al
call   1030 <Q_stricmp@plt>
cmp    $0x0,%eax
jne    12d6 <UI_Update+0x186>
lea    0xd79(%rip),%rdi
mov    $0x0,%al
call   1040 <UI_Cvar_VariableString@plt>
mov    %eax,%esi
lea    0xd6e(%rip),%rdi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
jmp    18da <UI_Update+0x78a>
mov    -0x8(%rbp),%rdi
lea    0xd9f(%rip),%rsi
mov    $0x0,%al
call   1030 <Q_stricmp@plt>
cmp    $0x0,%eax
jne    138b <UI_Update+0x23b>
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
test   %eax,%eax
je     1326 <UI_Update+0x1d6>
jmp    1304 <UI_Update+0x1b4>
mov    -0x14(%rbp),%eax
sub    $0x10,%eax
je     134b <UI_Update+0x1fb>
jmp    1315 <UI_Update+0x1c5>
mov    -0x14(%rbp),%eax
sub    $0x20,%eax
je     1373 <UI_Update+0x223>
jmp    1386 <UI_Update+0x236>
lea    0xd5f(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xd5b(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
jmp    1386 <UI_Update+0x236>
lea    0xd3a(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xd33(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
jmp    1386 <UI_Update+0x236>
lea    0xd12(%rip),%rdi
mov    $0x18,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
jmp    18d5 <UI_Update+0x785>
mov    -0x8(%rbp),%rdi
lea    0xd10(%rip),%rsi
mov    $0x0,%al
call   1030 <Q_stricmp@plt>
cmp    $0x0,%eax
jne    1423 <UI_Update+0x2d3>
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
test   %eax,%eax
je     13db <UI_Update+0x28b>
jmp    13b9 <UI_Update+0x269>
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
je     13f3 <UI_Update+0x2a3>
jmp    13ca <UI_Update+0x27a>
mov    -0x18(%rbp),%eax
sub    $0x2,%eax
je     140b <UI_Update+0x2bb>
jmp    141e <UI_Update+0x2ce>
lea    0xcce(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
jmp    141e <UI_Update+0x2ce>
lea    0xcb6(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
jmp    141e <UI_Update+0x2ce>
lea    0xc9e(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
jmp    18d0 <UI_Update+0x780>
mov    -0x8(%rbp),%rdi
lea    0xc91(%rip),%rsi
mov    $0x0,%al
call   1030 <Q_stricmp@plt>
cmp    $0x0,%eax
jne    186b <UI_Update+0x71b>
mov    -0xc(%rbp),%eax
mov    %rax,-0x20(%rbp)
sub    $0x3,%rax
ja     1866 <UI_Update+0x716>
mov    -0x20(%rbp),%rax
lea    0xbbe(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xc61(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xc33(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xc48(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xc06(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbd0(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbc9(%rip),%rdi
mov    $0x18,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xc10(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xc09(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbfd(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbf8(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbf2(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbed(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbe5(%rip),%rdi
mov    $0x9c4,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbdf(%rip),%rdi
lea    0xbe6(%rip),%rsi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
jmp    1866 <UI_Update+0x716>
lea    0xb5c(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xb2e(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xb43(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xb01(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xacb(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xac7(%rip),%rdi
mov    $0x18,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xb0e(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xb04(%rip),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xaf8(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xaf6(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xaf0(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xaf6(%rip),%rdi
mov    $0x9c4,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xaf0(%rip),%rdi
lea    0xaf7(%rip),%rsi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
lea    0xac3(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
jmp    1866 <UI_Update+0x716>
lea    0xa5d(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa2f(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa44(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa02(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9c9(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9c5(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa0f(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa05(%rip),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9f9(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa0f(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9e7(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9de(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9e7(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9e4(%rip),%rdi
lea    0xa03(%rip),%rsi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
jmp    1866 <UI_Update+0x716>
lea    0x961(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x933(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x948(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x903(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x8ca(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x8c3(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x913(%rip),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x8f7(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x8f4(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x907(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x902(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x8cf(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x8c6(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <trap_Cvar_SetValue@plt>
lea    0x8dc(%rip),%rdi
lea    0x8fb(%rip),%rsi
mov    $0x0,%al
call   1070 <trap_Cvar_Set@plt>
jmp    18cb <UI_Update+0x77b>
mov    -0x8(%rbp),%rdi
lea    0x8fd(%rip),%rsi
mov    $0x0,%al
call   1030 <Q_stricmp@plt>
cmp    $0x0,%eax
jne    18c6 <UI_Update+0x776>
cmpl   $0x0,-0xc(%rbp)
jne    18ab <UI_Update+0x75b>
lea    0x8ea(%rip),%rdi
movsd  0x769(%rip),%xmm0
mov    $0x1,%al
call   1060 <trap_Cvar_SetValue@plt>
jmp    18c1 <UI_Update+0x771>
lea    0x8cf(%rip),%rdi
movsd  0x746(%rip),%xmm0
mov    $0x1,%al
call   1060 <trap_Cvar_SetValue@plt>
jmp    18c6 <UI_Update+0x776>
jmp    18cb <UI_Update+0x77b>
jmp    18d0 <UI_Update+0x780>
jmp    18d5 <UI_Update+0x785>
jmp    18da <UI_Update+0x78a>
jmp    18df <UI_Update+0x78f>
jmp    18e4 <UI_Update+0x794>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UI_Update>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
xor    %eax,%eax
call   1050 <trap_Cvar_VariableValue@plt>
mov    %eax,%ebp
lea    0xeba(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Q_stricmp@plt>
test   %eax,%eax
je     122a <UI_Update+0xda>
lea    0xeb9(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Q_stricmp@plt>
test   %eax,%eax
je     1241 <UI_Update+0xf1>
lea    0xed5(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Q_stricmp@plt>
test   %eax,%eax
je     126d <UI_Update+0x11d>
lea    0xec7(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Q_stricmp@plt>
test   %eax,%eax
je     12db <UI_Update+0x18b>
lea    0xed4(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Q_stricmp@plt>
test   %eax,%eax
je     1303 <UI_Update+0x1b3>
lea    0xed4(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Q_stricmp@plt>
test   %eax,%eax
je     132e <UI_Update+0x1de>
lea    0xf6f(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Q_stricmp@plt>
test   %eax,%eax
jne    1447 <UI_Update+0x2f7>
lea    0xf64(%rip),%rdi
test   %ebp,%ebp
je     14a1 <UI_Update+0x351>
movsd  0xddb(%rip),%xmm0
jmp    14a9 <UI_Update+0x359>
lea    0xdff(%rip),%rdi
xor    %eax,%eax
call   1040 <UI_Cvar_VariableString@plt>
lea    0xdec(%rip),%rdi
jmp    1282 <UI_Update+0x132>
lea    0xdfb(%rip),%rdi
xor    %eax,%eax
call   1050 <trap_Cvar_VariableValue@plt>
cmp    $0x1388,%eax
jl     1291 <UI_Update+0x141>
lea    0xdeb(%rip),%rdi
lea    0xdf2(%rip),%rsi
xor    %eax,%eax
call   1070 <trap_Cvar_Set@plt>
jmp    12c0 <UI_Update+0x170>
lea    0xdb7(%rip),%rdi
xor    %eax,%eax
call   1040 <UI_Cvar_VariableString@plt>
lea    0xdae(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1070 <trap_Cvar_Set@plt>
mov    %eax,%ebx
lea    0xdae(%rip),%rdi
lea    0xdc7(%rip),%rsi
xor    %eax,%eax
call   1070 <trap_Cvar_Set@plt>
cmp    $0xfa0,%ebx
jl     12c0 <UI_Update+0x170>
lea    0xda2(%rip),%rdi
lea    0xdad(%rip),%rsi
jmp    12ce <UI_Update+0x17e>
lea    0xd92(%rip),%rdi
lea    0xd98(%rip),%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1070 <trap_Cvar_Set@plt>
cmp    $0x20,%ebp
je     144e <UI_Update+0x2fe>
cmp    $0x10,%ebp
je     145c <UI_Update+0x30c>
test   %ebp,%ebp
jne    1447 <UI_Update+0x2f7>
lea    0xd88(%rip),%rdi
xor    %esi,%esi
jmp    1468 <UI_Update+0x318>
cmp    $0x2,%ebp
je     147a <UI_Update+0x32a>
cmp    $0x1,%ebp
je     1488 <UI_Update+0x338>
test   %ebp,%ebp
jne    1447 <UI_Update+0x2f7>
lea    0xd84(%rip),%rdi
mov    $0x4,%esi
jmp    1494 <UI_Update+0x344>
cmp    $0x3,%ebp
ja     1447 <UI_Update+0x2f7>
mov    %ebp,%eax
lea    0xcd0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd73(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xd45(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xd5a(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xd18(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xce2(%rip),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xcdb(%rip),%rdi
mov    $0x18,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xd22(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xd1b(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xd0f(%rip),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xd0a(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xd04(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xcff(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xcf7(%rip),%rdi
mov    $0x9c4,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xcf1(%rip),%rdi
lea    0xcf8(%rip),%rsi
jmp    12ce <UI_Update+0x17e>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
lea    0xc2f(%rip),%rdi
mov    $0x18,%esi
jmp    1494 <UI_Update+0x344>
lea    0xc21(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xc1a(%rip),%rdi
xor    %esi,%esi
jmp    1494 <UI_Update+0x344>
lea    0xc27(%rip),%rdi
mov    $0x14,%esi
jmp    1494 <UI_Update+0x344>
lea    0xc19(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1060 <trap_Cvar_SetValue@plt>
movsd  0xb5f(%rip),%xmm0
mov    $0x1,%al
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1060 <trap_Cvar_SetValue@plt>
lea    0xc06(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbd8(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbed(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbab(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xb75(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xb71(%rip),%rdi
mov    $0x18,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbb8(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xbae(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xba2(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xba0(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xb9a(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xba0(%rip),%rdi
mov    $0x9c4,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xb9a(%rip),%rdi
lea    0xba1(%rip),%rsi
xor    %eax,%eax
call   1070 <trap_Cvar_Set@plt>
lea    0xb6d(%rip),%rdi
jmp    1476 <UI_Update+0x326>
lea    0xb10(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xae2(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xaf7(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xab5(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa7c(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa78(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xac2(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xab8(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xaac(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xac2(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa9a(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa91(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa9a(%rip),%rdi
jmp    176f <UI_Update+0x61f>
lea    0xa32(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa04(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0xa19(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9d4(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x99b(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x994(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9e4(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9c8(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9c5(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9d8(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9d3(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9a0(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x997(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <trap_Cvar_SetValue@plt>
lea    0x9ad(%rip),%rdi
lea    0x9cc(%rip),%rsi
jmp    12ce <UI_Update+0x17e>

LLVM IR (-O0):
@.str = [11 x i8] c"ui_SetName\00"
@.str.1 = [5 x i8] c"name\00"
@.str.2 = [8 x i8] c"ui_Name\00"
@.str.3 = [11 x i8] c"ui_setRate\00"
@.str.4 = [5 x i8] c"rate\00"
@.str.5 = [14 x i8] c"cl_maxpackets\00"
@.str.6 = [3 x i8] c"30\00"
@.str.7 = [13 x i8] c"cl_packetdup\00"
@.str.8 = [2 x i8] c"1\00"
@.str.9 = [3 x i8] c"15\00"
@.str.10 = [2 x i8] c"2\00"
@.str.11 = [11 x i8] c"ui_GetName\00"
@.str.12 = [12 x i8] c"r_colorbits\00"
@.str.13 = [12 x i8] c"r_depthbits\00"
@.str.14 = [14 x i8] c"r_stencilbits\00"
@.str.15 = [10 x i8] c"r_lodbias\00"
@.str.16 = [15 x i8] c"r_subdivisions\00"
@.str.17 = [12 x i8] c"ui_glCustom\00"
@.str.18 = [13 x i8] c"r_fullScreen\00"
@.str.19 = [14 x i8] c"r_vertexlight\00"
@.str.20 = [9 x i8] c"r_picmip\00"
@.str.21 = [7 x i8] c"r_mode\00"
@.str.22 = [14 x i8] c"r_texturebits\00"
@.str.23 = [10 x i8] c"r_fastSky\00"
@.str.24 = [14 x i8] c"r_inGameVideo\00"
@.str.25 = [11 x i8] c"cg_shadows\00"
@.str.26 = [13 x i8] c"cg_brassTime\00"
@.str.27 = [14 x i8] c"r_texturemode\00"
@.str.28 = [24 x i8] c"GL_LINEAR_MIPMAP_LINEAR\00"
@.str.29 = [25 x i8] c"GL_LINEAR_MIPMAP_NEAREST\00"
@.str.30 = [14 x i8] c"ui_mousePitch\00"
@.str.31 = [8 x i8] c"m_pitch\00"
define void @UI_Update(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca float
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @trap_Cvar_VariableValue to i32 (i8*, ...)*)(i8* %5)
store i32 %6, i32* %3
%7 = load i8*, i8** %2
%8 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @UI_Cvar_VariableString to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %11)
br label %156
13: ; preds = %1
%14 = load i8*, i8** %2
%15 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %14, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %36
17: ; preds = %13
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @trap_Cvar_VariableValue to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%19 = sitofp i32 %18 to float
store float %19, float* %4
%20 = load float, float* %4
%21 = fcmp oge float %20, 5.000000e+03
br i1 %21, label %22, label %25
22: ; preds = %17
%23 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%24 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %35
25: ; preds = %17
%26 = load float, float* %4
%27 = fcmp oge float %26, 4.000000e+03
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%30 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %34
31: ; preds = %25
%32 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%33 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %34
34: ; preds = %31, %28
br label %35
35: ; preds = %34, %22
br label %155
36: ; preds = %13
%37 = load i8*, i8** %2
%38 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %37, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = call i32 (i8*, ...) bitcast (i32 (...)* @UI_Cvar_VariableString to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%42 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %41)
br label %154
43: ; preds = %36
%44 = load i8*, i8** %2
%45 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %44, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %58
47: ; preds = %43
%48 = load i32, i32* %3
switch i32 %48, label %57 [
i32 0, label %49
i32 16, label %52
i32 32, label %55
]
49: ; preds = %47
%50 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 0)
%51 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32 0)
br label %57
52: ; preds = %47
%53 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 16)
%54 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32 0)
br label %57
55: ; preds = %47
%56 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 24)
br label %57
57: ; preds = %47, %55, %52, %49
br label %153
58: ; preds = %43
%59 = load i8*, i8** %2
%60 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %59, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %71
62: ; preds = %58
%63 = load i32, i32* %3
switch i32 %63, label %70 [
i32 0, label %64
i32 1, label %66
i32 2, label %68
]
64: ; preds = %62
%65 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 4)
br label %70
66: ; preds = %62
%67 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 12)
br label %70
68: ; preds = %62
%69 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 20)
br label %70
70: ; preds = %62, %68, %66, %64
br label %152
71: ; preds = %58
%72 = load i8*, i8** %2
%73 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %72, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %138
75: ; preds = %71
%76 = load i32, i32* %3
switch i32 %76, label %137 [
i32 0, label %77
i32 1, label %92
i32 2, label %107
i32 3, label %122
]
77: ; preds = %75
%78 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 1)
%79 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 4)
%80 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 0)
%81 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 0)
%82 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 32)
%83 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 24)
%84 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0), i32 0)
%85 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 4)
%86 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 32)
%87 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i32 0)
%88 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i32 1)
%89 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 1)
%90 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i32 2500)
%91 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.28, i64 0, i64 0))
br label %137
92: ; preds = %75
%93 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 1)
%94 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 12)
%95 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 0)
%96 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 0)
%97 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 0)
%98 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 24)
%99 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0), i32 1)
%100 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 3)
%101 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 0)
%102 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i32 0)
%103 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i32 1)
%104 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i32 2500)
%105 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.28, i64 0, i64 0))
%106 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 0)
br label %137
107: ; preds = %75
%108 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 1)
%109 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 8)
%110 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 0)
%111 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 1)
%112 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 0)
%113 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 0)
%114 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0), i32 1)
%115 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 3)
%116 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 0)
%117 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 0)
%118 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i32 1)
%119 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i32 0)
%120 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i32 0)
%121 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.29, i64 0, i64 0))
br label %137
122: ; preds = %75
%123 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 1)
%124 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 20)
%125 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 1)
%126 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 2)
%127 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 16)
%128 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 16)
%129 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 3)
%130 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0), i32 2)
%131 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 16)
%132 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 0)
%133 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i32 0)
%134 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i32 1)
%135 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i32 0)
%136 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.29, i64 0, i64 0))
br label %137
137: ; preds = %75, %122, %107, %92, %77
br label %151
138: ; preds = %71
%139 = load i8*, i8** %2
%140 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %139, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.30, i64 0, i64 0))
%141 = icmp eq i32 %140, 0
br i1 %141, label %142, label %150
142: ; preds = %138
%143 = load i32, i32* %3
%144 = icmp eq i32 %143, 0
br i1 %144, label %145, label %147
145: ; preds = %142
%146 = call i32 (i8*, double, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, double, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0), double 0x3F96872B00000000)
br label %149
147: ; preds = %142
%148 = call i32 (i8*, double, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, double, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0), double 0xBF96872B00000000)
br label %149
149: ; preds = %147, %145
br label %150
150: ; preds = %149, %138
br label %151
151: ; preds = %150, %137
br label %152
152: ; preds = %151, %70
br label %153
153: ; preds = %152, %57
br label %154
154: ; preds = %153, %40
br label %155
155: ; preds = %154, %35
br label %156
156: ; preds = %155, %10
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"ui_SetName\00"
@.str.1 = [5 x i8] c"name\00"
@.str.2 = [8 x i8] c"ui_Name\00"
@.str.3 = [11 x i8] c"ui_setRate\00"
@.str.4 = [5 x i8] c"rate\00"
@.str.5 = [14 x i8] c"cl_maxpackets\00"
@.str.6 = [3 x i8] c"30\00"
@.str.7 = [13 x i8] c"cl_packetdup\00"
@.str.8 = [2 x i8] c"1\00"
@.str.9 = [3 x i8] c"15\00"
@.str.10 = [2 x i8] c"2\00"
@.str.11 = [11 x i8] c"ui_GetName\00"
@.str.12 = [12 x i8] c"r_colorbits\00"
@.str.13 = [12 x i8] c"r_depthbits\00"
@.str.14 = [14 x i8] c"r_stencilbits\00"
@.str.15 = [10 x i8] c"r_lodbias\00"
@.str.16 = [15 x i8] c"r_subdivisions\00"
@.str.17 = [12 x i8] c"ui_glCustom\00"
@.str.18 = [13 x i8] c"r_fullScreen\00"
@.str.19 = [14 x i8] c"r_vertexlight\00"
@.str.20 = [9 x i8] c"r_picmip\00"
@.str.21 = [7 x i8] c"r_mode\00"
@.str.22 = [14 x i8] c"r_texturebits\00"
@.str.23 = [10 x i8] c"r_fastSky\00"
@.str.24 = [14 x i8] c"r_inGameVideo\00"
@.str.25 = [11 x i8] c"cg_shadows\00"
@.str.26 = [13 x i8] c"cg_brassTime\00"
@.str.27 = [14 x i8] c"r_texturemode\00"
@.str.28 = [24 x i8] c"GL_LINEAR_MIPMAP_LINEAR\00"
@.str.29 = [25 x i8] c"GL_LINEAR_MIPMAP_NEAREST\00"
@.str.30 = [14 x i8] c"ui_mousePitch\00"
@.str.31 = [8 x i8] c"m_pitch\00"
define void @UI_Update(i8* %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @trap_Cvar_VariableValue to i32 (i8*, ...)*)(i8* %0)
%3 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @UI_Cvar_VariableString to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %6)
br label %125
8: ; preds = %1
%9 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %24
11: ; preds = %8
%12 = tail call i32 (i8*, ...) bitcast (i32 (...)* @trap_Cvar_VariableValue to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%13 = icmp sgt i32 %12, 4999
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%16 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %125
17: ; preds = %11
%18 = icmp sgt i32 %12, 3999
%19 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
br i1 %18, label %20, label %22
20: ; preds = %17
%21 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %125
22: ; preds = %17
%23 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %125
24: ; preds = %8
%25 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = tail call i32 (i8*, ...) bitcast (i32 (...)* @UI_Cvar_VariableString to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%29 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %28)
br label %125
30: ; preds = %24
%31 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %42
33: ; preds = %30
switch i32 %2, label %125 [
i32 0, label %34
i32 16, label %37
i32 32, label %40
]
34: ; preds = %33
%35 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 0)
%36 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32 0)
br label %125
37: ; preds = %33
%38 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 16)
%39 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32 0)
br label %125
40: ; preds = %33
%41 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 24)
br label %125
42: ; preds = %30
%43 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %52
45: ; preds = %42
switch i32 %2, label %125 [
i32 0, label %46
i32 1, label %48
i32 2, label %50
]
46: ; preds = %45
%47 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 4)
br label %125
48: ; preds = %45
%49 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 12)
br label %125
50: ; preds = %45
%51 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 20)
br label %125
52: ; preds = %42
%53 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %116
55: ; preds = %52
switch i32 %2, label %125 [
i32 0, label %56
i32 1, label %71
i32 2, label %86
i32 3, label %101
]
56: ; preds = %55
%57 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 1)
%58 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 4)
%59 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 0)
%60 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 0)
%61 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 32)
%62 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 24)
%63 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0), i32 0)
%64 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 4)
%65 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 32)
%66 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i32 0)
%67 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i32 1)
%68 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 1)
%69 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i32 2500)
%70 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.28, i64 0, i64 0))
br label %125
71: ; preds = %55
%72 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 1)
%73 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 12)
%74 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 0)
%75 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 0)
%76 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 0)
%77 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 24)
%78 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0), i32 1)
%79 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 3)
%80 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 0)
%81 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i32 0)
%82 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i32 1)
%83 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i32 2500)
%84 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.28, i64 0, i64 0))
%85 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 0)
br label %125
86: ; preds = %55
%87 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 1)
%88 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 8)
%89 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 0)
%90 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 1)
%91 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 0)
%92 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 0)
%93 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0), i32 1)
%94 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 3)
%95 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 0)
%96 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 0)
%97 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i32 1)
%98 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i32 0)
%99 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i32 0)
%100 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.29, i64 0, i64 0))
br label %125
101: ; preds = %55
%102 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 1)
%103 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 20)
%104 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 1)
%105 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 2)
%106 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0), i32 16)
%107 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 16)
%108 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 3)
%109 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0), i32 2)
%110 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 16)
%111 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 0)
%112 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i32 0)
%113 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i32 1)
%114 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), i32 0)
%115 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @trap_Cvar_Set to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.29, i64 0, i64 0))
br label %125
116: ; preds = %52
%117 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @Q_stricmp to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.30, i64 0, i64 0))
%118 = icmp eq i32 %117, 0
br i1 %118, label %119, label %125
119: ; preds = %116
%120 = icmp eq i32 %2, 0
br i1 %120, label %121, label %123
121: ; preds = %119
%122 = tail call i32 (i8*, double, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, double, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0), double 0x3F96872B00000000)
br label %125
123: ; preds = %119
%124 = tail call i32 (i8*, double, ...) bitcast (i32 (...)* @trap_Cvar_SetValue to i32 (i8*, double, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0), double 0xBF96872B00000000)
br label %125
125: ; preds = %14, %22, %20, %33, %40, %37, %34, %55, %101, %86, %71, %56, %121, %123, %116, %46, %48, %50, %45, %27, %5
ret void
}