text: #region Local Var
  	var uLocal_0 = 0;
  	var uLocal_1 = 0;
  	int iLocal_2 = 0;
  	int iLocal_3 = 0;
  	int iLocal_4 = 0;
  	int iLocal_5 = 0;
  	int iLocal_6 = 0;
  	int iLocal_7 = 0;
  	int iLocal_8 = 0;
  	int iLocal_9 = 0;
  	int iLocal_10 = 0;
  	int iLocal_11 = 0;
  	var uLocal_12 = 0;
  	var uLocal_13 = 0;
  	float fLocal_14 = 0f;
  	var uLocal_15 = 0;
  	var uLocal_16 = 0;
  	int iLocal_17 = 0;
  	var uLocal_18 = 0;
  	var uLocal_19 = 0;
  	char* sLocal_20 = NULL;
  	float fLocal_21 = 0f;
  	var uLocal_22 = 0;
  	var uLocal_23 = 0;
  	var uLocal_24 = 0;
  	float fLocal_25 = 0f;
  	float fLocal_26 = 0f;
  	var uLocal_27 = 0;
  	var uLocal_28 = 0;
  	var uLocal_29 = 0;
  	float fLocal_30 = 0f;
  	float fLocal_31 = 0f;
  	float fLocal_32 = 0f;
  	var uLocal_33 = 0;
  	var uLocal_34 = 0;
  	int iLocal_35 = 0;
  	var uLocal_36 = 0;
  	struct<4> Local_37[10];
  	bool bLocal_38 = 0;
  	var uLocal_39 = 0;
  	var uLocal_40 = 0;
  	var uLocal_41 = 0;
  	int iLocal_42 = 0;
  	int iLocal_43 = 0;
  	int iLocal_44 = 0;
  	int iLocal_45 = 0;
  	var uLocal_46 = 0;
  	var uLocal_47 = 0;
  	var uLocal_48 = 0;
  	var uLocal_49 = 0;
  	var uLocal_50 = 0;
  	int iLocal_51 = 0;
  	var uLocal_52 = 0;
  	var uLocal_53 = 0;
  	var uLocal_54 = 0;
  	var uLocal_55 = 0;
  	int iLocal_56 = 0;
  	int iLocal_57 = 0;
  	var uLocal_58 = 16;
  	var uLocal_59 = 0;
  	var uLocal_60 = 0;
  	var uLocal_61 = 0;
  	var uLocal_62 = 0;
  	var uLocal_63 = 0;
  	var uLocal_64 = 0;
  	var uLocal_65 = 0;
  	var uLocal_66 = 0;
  	var uLocal_67 = 0;
  	var uLocal_68 = 0;
  	var uLocal_69 = 0;
  	var uLocal_70 = 0;
  	var uLocal_71 = 0;
  	var uLocal_72 = 0;
  	var uLocal_73 = 0;
  	var uLocal_74 = 0;
  	var uLocal_75 = 0;
  	var uLocal_76 = 0;
  	var uLocal_77 = 0;
  	var uLocal_78 = 0;
  	var uLocal_79 = 0;
  	var uLocal_80 = 0;
  	var uLocal_81 = 0;
  	var uLocal_82 = 0;
  	var uLocal_83 = 0;
  	var uLocal_84 = 0;
  	var uLocal_85 = 0;
  	var uLocal_86 = 0;
  	var uLocal_87 = 0;
  	var uLocal_88 = 0;
  	var uLocal_89 = 0;
  	var uLocal_90 = 0;
  	var uLocal_91 = 0;
  	var uLocal_92 = 0;
  	var uLocal_93 = 0;
  	var uLocal_94 = 0;
  	var uLocal_95 = 0;
  	var uLocal_96 = 0;
  	var uLocal_97 = 0;
  	var uLocal_98 = 0;
  	var uLocal_99 = 0;
  	var uLocal_100 = 0;
  	var uLocal_101 = 0;
  	var uLocal_102 = 0;
  	var uLocal_103 = 0;
  	var uLocal_104 = 0;
  	var uLocal_105 = 0;
  	var uLocal_106 = 0;
  	var uLocal_107 = 0;
  	var uLocal_108 = 0;
  	var uLocal_109 = 0;
  	var uLocal_110 = 0;
  	var uLocal_111 = 0;
  	var uLocal_112 = 0;
  	var uLocal_113 = 0;
  	var uLocal_114 = 0;
  	var uLocal_115 = 0;
  	var uLocal_116 = 0;
  	var uLocal_117 = 0;
  	var uLocal_118 = 0;
  	var uLocal_119 = 0;
  	var uLocal_120 = 0;
  	var uLocal_121 = 0;
  	var uLocal_122 = 0;
  	var uLocal_123 = 0;
  	var uLocal_124 = 0;
  	var uLocal_125 = 0;
  	var uLocal_126 = 0;
  	var uLocal_127 = 0;
  	var uLocal_128 = 0;
  	var uLocal_129 = 0;
  	var uLocal_130 = 0;
  	var uLocal_131 = 0;
  	var uLocal_132 = 0;
  	var uLocal_133 = 0;
  	var uLocal_134 = 0;
  	var uLocal_135 = 0;
  	var uLocal_136 = 0;
  	var uLocal_137 = 0;
  	var uLocal_138 = 0;
  	var uLocal_139 = 0;
  	var uLocal_140 = 0;
  	var uLocal_141 = 0;
  	var uLocal_142 = 0;
  	var uLocal_143 = 0;
  	var uLocal_144 = 0;
  	var uLocal_145 = 0;
  	var uLocal_146 = 0;
  	var uLocal_147 = 0;
  	var uLocal_148 = 0;
  	var uLocal_149 = 0;
  	var uLocal_150 = 0;
  	var uLocal_151 = 0;
  	var uLocal_152 = 0;
  	var uLocal_153 = 0;
  	var uLocal_154 = 0;
  	var uLocal_155 = 0;
  	var uLocal_156 = 0;
  	var uLocal_157 = 0;
  	var uLocal_158 = 0;
  	var uLocal_159 = 0;
  	var uLocal_160 = 0;
  	var uLocal_161 = 0;
  	var uLocal_162 = 0;
  	var uLocal_163 = 0;
  	var uLocal_164 = 0;
  	var uLocal_165 = 0;
  	var uLocal_166 = 0;
  	var uLocal_167 = 0;
  	var uLocal_168 = 0;
  	var uLocal_169 = 0;
  	var uLocal_170 = 0;
  	var uLocal_171 = 0;
  	var uLocal_172 = 0;
  	var uLocal_173 = 0;
  	var uLocal_174 = 0;
  	var uLocal_175 = 0;
  	var uLocal_176 = 0;
  	var uLocal_177 = 0;
  	var uLocal_178 = 0;
  	var uLocal_179 = 0;
  	var uLocal_180 = 0;
  	var uLocal_181 = 0;
  	var uLocal_182 = 0;
  	var uLocal_183 = 0;
  	var uLocal_184 = 0;
  	var uLocal_185 = 0;
  	var uLocal_186 = 0;
  	var uLocal_187 = 0;
  	var uLocal_188 = 0;
  	var uLocal_189 = 0;
  	var uLocal_190 = 0;
  	var uLocal_191 = 0;
  	var uLocal_192 = 0;
  	var uLocal_193 = 0;
  	var uLocal_194 = 0;
  	var uLocal_195 = 0;
  	var uLocal_196 = 0;
  	var uLocal_197 = 0;
  	var uLocal_198 = 0;
  	var uLocal_199 = 0;
  	var uLocal_200 = 0;
  	var uLocal_201 = 0;
  	var uLocal_202 = 0;
  	var uLocal_203 = 0;
  	var uLocal_204 = 0;
  	var uLocal_205 = 0;
  	var uLocal_206 = 0;
  	var uLocal_207 = 0;
  	var uLocal_208 = 0;
  	var uLocal_209 = 0;
  	var uLocal_210 = 0;
  	var uLocal_211 = 0;
  	var uLocal_212 = 0;
  	var uLocal_213 = 0;
  	var uLocal_214 = 0;
  	var uLocal_215 = 0;
  	var uLocal_216 = 0;
  	var uLocal_217 = 0;
  	var uLocal_218 = 0;
  	var uLocal_219 = 0;
  	var uLocal_220 = 0;
  	var uLocal_221 = 0;
  	var uLocal_222 = 0;
  	int iLocal_223 = 0;
  	int iLocal_224 = 0;
  	int iLocal_225 = 0;
  	var uLocal_226 = 0;
  	var uLocal_227 = 0;
  	var uLocal_228 = 0;
  	var uLocal_229 = 0;
  	int iLocal_230 = 0;
  	var uLocal_231 = 0;
  	int iLocal_232 = 0;
  	int iLocal_233 = 0;
  	struct<3> Local_234[3];
  	struct<2> Local_235 = { 0, 5 } ;
  	var uLocal_236 = 0;
  	var uLocal_237 = 0;
  	var uLocal_238 = 0;
  	var uLocal_239 = 0;
  	var uLocal_240 = 0;
  	var uLocal_241 = 0;
  	var uLocal_242 = 0;
  	var uLocal_243 = 0;
  	var uLocal_244 = 0;
  	var uLocal_245 = 0;
  	var uLocal_246 = 0;
  	var uLocal_247 = 0;
  	var uLocal_248 = 0;
  	var uLocal_249 = 0;
  	var uLocal_250 = 0;
  	var uLocal_251 = 5;
  	var uLocal_252 = 0;
  	var uLocal_253 = 0;
  	var uLocal_254 = 0;
  	var uLocal_255 = 0;
  	var uLocal_256 = 0;
  #endregion
  
  void __EntryFunction__()
  {
  	struct<42> Var0;
  	struct<3> Var1;
  	int iVar2;
  	int iVar3[8];
  	
  	iLocal_2 = 1;
  	iLocal_3 = 134;
  	iLocal_4 = 134;
  	iLocal_5 = 1;
  	iLocal_6 = 1;
  	iLocal_7 = 1;
  	iLocal_8 = 134;
  	iLocal_9 = 1;
  	iLocal_10 = 12;
  	iLocal_11 = 12;
  	fLocal_14 = 0.001f;
  	iLocal_17 = -1;
  	sLocal_20 = "NULL";
  	fLocal_21 = 0f;
  	fLocal_25 = -0.0375f;
  	fLocal_26 = 0.17f;
  	fLocal_30 = 80f;
  	fLocal_31 = 140f;
  	fLocal_32 = 180f;
  	iLocal_35 = 3;
  	iLocal_42 = 1;
  	iLocal_43 = 65;
  	iLocal_44 = 49;
  	iLocal_45 = 64;
  	uLocal_49 = unk_0x0CD0167AEB96E096();
  	uLocal_50 = unk_0xE66C877C9033DBB0();
  	uLocal_52 = func_497(60);
  	uLocal_53 = func_497(14);
  	iLocal_56 = -1;
  	unk_0x2354C1CC1CA65629(1);
  	func_496();
  	Var0.f_17 = 2;
  	Var0.f_28 = 6;
  	Var0.f_35 = 5;
  	Var0.f_41 = 6;
  	Var1 = { 0f, 0f, 0f };
  	iVar2 = 1;
  	func_495(&Var0);
  	Var1 = { ScriptParam_235.f_1[0 /*3*/] };
  	iVar3[0] = 9;
  	iVar3[1] = 10;
  	iVar3[2] = 11;
  	iVar3[3] = 12;
  	iVar3[4] = 13;
  	iVar3[5] = 14;
  	iVar3[6] = 15;
  	iVar3[7] = 16;
  	if (unk_0xED06FD5709A59F02(83))
  	{
  		func_494("Force cleanup [TERMINATING]");
  		if (Var0 != -1)
  		{
  			if (Global_110945[Var0 /*10*/].f_9 != -1)
  			{
  				func_494("Relinquishing candidate id...");
  				func_493(&(Global_110945[Var0 /*10*/].f_9));
  			}
  		}
  		func_478(&Var0, 1);
  	}
  	if (!func_475(&iVar3, &Var0, Var1, 5f))
  	{
  		func_474();
  		func_494("SCRIPT TERMINATED");
  		unk_0xD39E529EBE5DB04F();
  	}
  	if (!func_466(Var0))
  	{
  		func_474();
  		func_494("SCRIPT TERMINATED");
  		unk_0xD39E529EBE5DB04F();
  	}
  	if (func_465(Var0))
  	{
  		func_474();
  		func_494("SCRIPT TERMINATED");
  		unk_0xD39E529EBE5DB04F();
  	}
  	while (!func_433(&Var0))
  	{
  		SYSTEM::WAIT(0);
  		if (!unk_0x1116855A2A7A342C())
  		{
  			func_494("Player out of range [TERMINATING]");
  			func_478(&Var0, 1);
  		}
  	}
  	unk_0x555EE41D7C7078E6(Var1, Var0.f_15, 1, 0, 0, 0);
  	if (Var0 == 11)
  	{
  		func_432(&uLocal_58, 3, Var0.f_28[0], "MARNIE", 0, 1);
  	}
  	if (Var0 == 12)
  	{
  		func_432(&uLocal_58, 4, Var0.f_28[0], "MARNIE", 0, 1);
  		func_432(&uLocal_58, 5, Var0.f_28[1], "JIMMYBOSTON", 0, 1);
  		iLocal_223 = unk_0x578C4EF320340AF7();
  		func_431();
  	}
  	if (Var0 == 13)
  	{
  		func_432(&uLocal_58, 4, Var0.f_28[0], "MARNIE", 0, 1);
  	}
  	if (Var0 == 16)
  	{
  		func_432(&uLocal_58, 4, Var0.f_28[0], "EPSGUARD5", 0, 1);
  		func_432(&uLocal_58, 5, Var0.f_28[1], "EPSGUARD6", 0, 1);
  	}
  	while (true)
  	{
  		SYSTEM::WAIT(0);
  		if (!func_411(&Var0, 1))
  		{
  			if (Var0 == 16 && unk_0x1116855A2A7A342C())
  			{
  				func_494("Epsilon 8 kicking off! [TERMINATING]");
  				func_410(&Var0);
  				func_409();
  			}
  			if (Var0 == 14)
  			{
  				func_406(37, 1);
  			}
  			func_478(&Var0, 1);
  		}
  		if (Var0 == 10)
  		{
  			func_392();
  			if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 237.926f, 360.2992f, 103.6515f, 244.6899f, 357.8277f, 107.3224f, 4.75f, 0, 1, 0))
  			{
  				unk_0x94D1A5176CE89859(unk_0x9B0761B4C3EB8BC7(), 1f);
  			}
  		}
  		else if (Var0 == 11)
  		{
  			if (func_391(Var0.f_28[0]))
  			{
  				if (!unk_0xA26A1295C5145A11(Var0.f_28[0]) && !unk_0xCED6B5226244381C(Var0.f_28[0]))
  				{
  					func_390(&Var0, Var1, "EPS3AUD", "EP3_AMB", 3, "MARNIE", 500, 1101004800);
  				}
  				if (func_371(Var0.f_28[0], 1, 1116471296, 1126825984, 0, 0, 0, 0))
  				{
  					if (unk_0xC614DDE265D18415("rcmepsilonism3"))
  					{
  						unk_0x9DC06E2A59C5AEBB(&uLocal_227);
  						unk_0x756D74A3EF0AB788(0, "rcmepsilonism3", "outro", 8f, -8f, -1, 0, 0, 0, 0, 0);
  						unk_0x8B18A80E8EB15510(0, unk_0x9B0761B4C3EB8BC7(), 200f, -1, 0, 0);
  						unk_0x19F29730874AD6F1(uLocal_227);
  						unk_0x9B6EC2CECE1010EF(Var0.f_28[0], uLocal_227);
  					}
  					else
  					{
  						unk_0x8B18A80E8EB15510(Var0.f_28[0], unk_0x9B0761B4C3EB8BC7(), 200f, -1, 0, 0);
  					}
  					unk_0xCBA6B2B569DCAFD8(Var0.f_28[0], 1);
  					unk_0x2481907DEE6B85EA(&(Var0.f_28[0]));
  					func_478(&Var0, 1);
  				}
  			}
  		}
  		else if (Var0 == 12)
  		{
  			if (unk_0x06BC339A53519E4E())
  			{
  				func_494("Can request assets for cutscene entity in Eps 4");
  				unk_0x8289CFFF7D89F1C7("Jimmy_Boston", 1, 0, 0, 0);
  			}
  			func_370();
  			if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 1826.621f, 4698.734f, 41.36862f, 1831.158f, 4680.191f, 32.42626f, 16.5f, 0, 1, 0))
  			{
  				if (!unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  				{
  					if (!func_369(unk_0x9B0761B4C3EB8BC7(), 713668775))
  					{
  						unk_0xDDEDC06C88DA4E04(unk_0x460153A63B9477BC(), false, 256);
  						unk_0x3C1B180EE30D36EF(unk_0x9B0761B4C3EB8BC7(), 1827.34f, 4697.22f, 38.02f, 1f, 20000, 0.25f, 1, 1193033728);
  					}
  				}
  			}
  			func_368();
  		}
  		else if (Var0 == 13)
  		{
  			if (func_391(Var0.f_28[0]))
  			{
  				if (!unk_0xA26A1295C5145A11(Var0.f_28[0]) && !unk_0xCED6B5226244381C(Var0.f_28[0]))
  				{
  					if (func_364(&Var0, Var1, "EPS5AUD", "EP5_AMB", 4, "MARNIE", 1500))
  					{
  						func_494("Triggered Mary Ann Eps 5 conv");
  					}
  				}
  				if (func_371(Var0.f_28[0], 1, 1116471296, 1126825984, 0, 0, 0, 0))
  				{
  					if (func_363())
  					{
  						func_494("Killed Eps 5 conversation (threat)");
  						func_362();
  					}
  					unk_0x8B18A80E8EB15510(Var0.f_28[0], unk_0x9B0761B4C3EB8BC7(), 200f, -1, 0, 0);
  					unk_0xCBA6B2B569DCAFD8(Var0.f_28[0], 1);
  					unk_0x2481907DEE6B85EA(&(Var0.f_28[0]));
  					func_478(&Var0, 1);
  				}
  			}
  		}
  		else if (Var0 == 14)
  		{
  			func_361(&Var0);
  		}
  		else if (Var0 == 15)
  		{
  			if (unk_0x06BC339A53519E4E())
  			{
  				func_494("Can request assets for cutscene entity in Eps 7");
  				unk_0x8289CFFF7D89F1C7("Jimmy_Boston", 1, 0, 0, 0);
  			}
  		}
  		else if (Var0 == 16)
  		{
  			func_347();
  		}
  		func_346(Var0);
  		func_338(&iLocal_56, &(Var0.f_9), Var1);
  		func_337(&Var0, &iVar2);
  		if (func_322(&Var0, 0))
  		{
  			if (!func_172(&Var0))
  			{
  				func_169(&Var0, &iVar2);
  			}
  			else
  			{
  				if (func_168(Var0))
  				{
  					func_165(Var0, &uLocal_226);
  				}
  				if (!func_2(&Var0))
  				{
  					func_478(&Var0, 1);
  				}
  				if (func_1(&Var0))
  				{
  					func_478(&Var0, 0);
  				}
  			}
  		}
  	}
  }
  
  int func_1(int iParam0)
  {
  	while (!Global_110945[*iParam0 /*10*/])
  	{
  		SYSTEM::WAIT(0);
  	}
  	return 1;
  }
  
  int func_2(int iParam0)
  {
  	struct<4> Var0;
  	char* sVar1;
  	
  	if (!func_164())
  	{
  		while (!func_155(*iParam0))
  		{
  			if (func_154(*iParam0))
  			{
  				func_143();
  			}
  			if (!func_411(iParam0, *iParam0 != 2))
  			{
  				func_494("LAUNCH_RC_MISSION - NOT IS_RC_FINE_AND_IN_RANGE() [TERMINATING]");
  				return 0;
  			}
  			SYSTEM::WAIT(0);
  		}
  	}
  	if (func_363())
  	{
  		func_362();
  	}
  	if (!func_113(iParam0))
  	{
  		func_494("STEP_7_COMMON_LaunchMission - Trying to launch a null script string name");
  		return 0;
  	}
  	func_110(*iParam0, &Var0);
  	MemCopy(&sVar1, {func_109(*iParam0)}, 4);
  	func_107(&sVar1, Var0.f_3, 0);
  	func_106(*iParam0);
  	if (!func_164())
  	{
  		if (iParam0->f_16 == 2)
  		{
  			func_22(&(iParam0->f_1), 0);
  		}
  		else
  		{
  			func_22(&(iParam0->f_1), 1);
  		}
  	}
  	func_3(*iParam0, Var0);
  	return 1;
  }
  
  void func_3(int iParam0, char* sParam1)
  {
  	func_21(sParam1);
  	unk_0xD2459066EA58CE43(&(Global_111858.f_18570[iParam0 /*6*/]), 5);
  	if (unk_0x7B70881748D166CD(joaat("mission_stat_watcher")) > 0)
  	{
  		while (unk_0x7B70881748D166CD(joaat("mission_stat_watcher")) > 0)
  		{
  			func_19();
  			SYSTEM::WAIT(0);
  		}
  	}
  	if (unk_0x7B70881748D166CD(joaat("mission_stat_watcher")) < 1)
  	{
  		Global_61718 = 0;
  		unk_0xBE9B3870B1B370E3("mission_stat_watcher");
  		while (!unk_0x8DC2EFD1CECAA468("mission_stat_watcher"))
  		{
  			SYSTEM::WAIT(0);
  		}
  		SYSTEM::START_NEW_SCRIPT("mission_stat_watcher", 1828);
  		unk_0x5F82526B41A5EBCE("mission_stat_watcher");
  	}
  	while (!unk_0xCE990E643CD9D0E5(Global_111858.f_18570[iParam0 /*6*/], 5))
  	{
  		if (unk_0x7B70881748D166CD(joaat("mission_stat_watcher")) > 0)
  		{
  			unk_0xBE20AB8238688965(&(Global_111858.f_18570[iParam0 /*6*/]), 5);
  		}
  	}
  	func_4(iParam0);
  }
  
  void func_4(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (Global_61715 == 1)
  	{
  		func_18();
  		Global_61715 = 0;
  		if (Global_61710)
  		{
  			return;
  		}
  	}
  	if (Global_3)
  	{
  		Global_61718 = 1;
  		func_10();
  		return;
  	}
  	MemCopy(&Global_61732, {func_9(iParam0)}, 4);
  	Global_61720 = 0;
  	Global_61719 = 0;
  	switch (iParam0)
  	{
  		case 1:
  		case 9:
  			Global_61707 = 1;
  			Global_61710 = 1;
  			Global_61713 = 1;
  			break;
  		
  		case 0:
  		case 4:
  		case 7:
  		case 10:
  		case 11:
  		case 13:
  		case 15:
  		case 27:
  		case 31:
  		case 35:
  		case 36:
  		case 37:
  		case 48:
  		case 44:
  		case 45:
  		case 52:
  		case 53:
  		case 54:
  		case 55:
  		case 56:
  			Global_61718 = 1;
  			Global_61719 = 1;
  			func_10();
  			func_19();
  			return;
  			break;
  	}
  	iVar0 = Global_73962;
  	Global_73962 = 1;
  	iVar1 = Global_73963;
  	Global_73963 = iParam0;
  	if (!Global_61707)
  	{
  		if ((Global_73963 != iVar1 || Global_73812 == 0) || iVar0 != Global_73962)
  		{
  			Global_31220 = 0;
  			func_10();
  			func_6(iParam0);
  		}
  		else
  		{
  			Global_61710 = 1;
  		}
  	}
  	Global_61745 = unk_0x578C4EF320340AF7();
  	func_5();
  	Global_61717 = 0;
  }
  
  void func_5()
  {
  	int iVar0;
  	
  	if (!Global_61714)
  	{
  		return;
  	}
  	if (Global_73812 == 0)
  	{
  		return;
  	}
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < Global_73812)
  	{
  		switch (Global_61942[Global_73813[iVar0 /*9*/] /*13*/])
  		{
  			case 1:
  			case 9:
  				Global_73813[iVar0 /*9*/].f_3 = 1;
  				break;
  			
  			case 4:
  				if (Global_61725)
  				{
  					Global_73813[iVar0 /*9*/].f_3 = 1;
  				}
  				break;
  			
  			case 6:
  				if (Global_61942[Global_73813[iVar0 /*9*/] /*13*/].f_3)
  				{
  					if (Global_73813[iVar0 /*9*/].f_1 != 0)
  					{
  						Global_73813[iVar0 /*9*/].f_3 = 1;
  					}
  				}
  				break;
  		}
  		iVar0++;
  	}
  	Global_61714 = 0;
  }
  
  void func_6(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 2:
  			func_7(741);
  			func_7(742);
  			return;
  		
  		case 3:
  			func_7(743);
  			func_7(744);
  			return;
  		
  		case 5:
  			func_7(745);
  			func_7(746);
  			return;
  		
  		case 6:
  			func_7(747);
  			func_7(748);
  			return;
  		
  		case 8:
  			func_7(749);
  			return;
  		
  		case 12:
  			func_7(750);
  			return;
  		
  		case 14:
  			func_7(751);
  			func_7(752);
  			return;
  		
  		case 16:
  			func_7(753);
  			func_7(754);
  			return;
  		
  		case 17:
  			func_7(755);
  			func_7(756);
  			func_7(757);
  			return;
  		
  		case 18:
  			func_7(758);
  			func_7(759);
  			return;
  		
  		case 19:
  			func_7(760);
  			func_7(761);
  			return;
  		
  		case 20:
  			func_7(762);
  			return;
  		
  		case 21:
  			func_7(763);
  			return;
  		
  		case 22:
  			func_7(764);
  			func_7(765);
  			return;
  		
  		case 23:
  			func_7(766);
  			return;
  		
  		case 25:
  			func_7(767);
  			func_7(768);
  			func_7(769);
  			return;
  		
  		case 26:
  			func_7(770);
  			func_7(771);
  			return;
  		
  		case 28:
  			func_7(772);
  			func_7(773);
  			return;
  		
  		case 29:
  			func_7(774);
  			func_7(775);
  			return;
  		
  		case 30:
  			func_7(776);
  			func_7(777);
  			return;
  		
  		case 32:
  			func_7(778);
  			func_7(779);
  			return;
  		
  		case 33:
  			func_7(780);
  			func_7(781);
  			func_7(782);
  			return;
  		
  		case 34:
  			func_7(783);
  			func_7(784);
  			return;
  		
  		case 38:
  			func_7(785);
  			func_7(786);
  			return;
  		
  		case 39:
  			func_7(787);
  			func_7(788);
  			return;
  		
  		case 40:
  			func_7(789);
  			return;
  		
  		case 41:
  			func_7(790);
  			func_7(791);
  			func_7(792);
  			return;
  		
  		case 42:
  			func_7(793);
  			func_7(794);
  			func_7(795);
  			return;
  		
  		case 43:
  			func_7(796);
  			func_7(797);
  			return;
  		
  		case 46:
  			func_7(798);
  			func_7(799);
  			return;
  		
  		default:
  	}
  	switch (iParam0)
  	{
  		case 47:
  			func_7(800);
  			func_7(801);
  			return;
  		
  		case 49:
  			func_7(802);
  			func_7(803);
  			return;
  		
  		case 50:
  			func_7(804);
  			func_7(805);
  			return;
  		
  		case 51:
  			func_7(806);
  			return;
  		
  		case 57:
  			func_7(807);
  			func_7(808);
  			func_7(809);
  			return;
  		
  		case 58:
  			func_7(828);
  			func_7(829);
  			func_7(830);
  			return;
  		
  		case 59:
  			func_7(831);
  			func_7(832);
  			func_7(833);
  			return;
  		
  		case 60:
  			func_7(834);
  			func_7(835);
  			func_7(836);
  			return;
  		
  		case 61:
  			func_7(837);
  			func_7(838);
  			func_7(839);
  			return;
  		
  		case 62:
  			func_7(840);
  			func_7(841);
  			func_7(842);
  			return;
  		
  		case 24:
  			func_7(843);
  			func_7(844);
  			func_7(845);
  			return;
  		
  		default:
  	}
  }
  
  void func_7(int iParam0)
  {
  	Global_61710 = 1;
  	Global_61713 = 1;
  	if (Global_73812 > 15)
  	{
  		return;
  	}
  	func_8(Global_73812);
  	Global_73813[Global_73812 /*9*/] = iParam0;
  	Global_73812++;
  	if (Global_61942[iParam0 /*13*/] == 16)
  	{
  		Global_73964 = 1;
  	}
  }
  
  void func_8(int iParam0)
  {
  	Global_73813[iParam0 /*9*/].f_1 = 0;
  	Global_73813[iParam0 /*9*/].f_2 = 0f;
  	Global_73813[iParam0 /*9*/].f_3 = 0;
  	Global_73813[iParam0 /*9*/].f_4 = 0;
  }
  
  struct<2> func_9(int iParam0)
  {
  	struct<2> Var0;
  	char[] cVar1[8];
  	
  	StringCopy(&Var0, "", 8);
  	cVar1 = { func_109(iParam0) };
  	if (unk_0x7BCC91F3C1CF24E8(&cVar1))
  	{
  	}
  	else
  	{
  		StringCopy(&Var0, "RC_", 8);
  		StringConCat(&Var0, &cVar1, 8);
  	}
  	return Var0;
  }
  
  void func_10()
  {
  	if (Global_61717)
  	{
  		return;
  	}
  	Global_61726 = 0;
  	Global_73812 = 0;
  	Global_61728 = 0;
  	if (Global_61725)
  	{
  	}
  	Global_61725 = 0;
  	func_17(0);
  	func_16();
  	Global_73964 = 0;
  	Global_61716 = 1;
  	func_14();
  	func_13();
  	func_12();
  	func_11();
  	Global_61707 = 0;
  	Global_61737 = 0;
  	Global_61745 = -1;
  }
  
  void func_11()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 4)
  	{
  		Global_73999[iVar0 /*2*/].f_1 = -1;
  		iVar0++;
  	}
  	Global_74008 = 0;
  }
  
  void func_12()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 16)
  	{
  		Global_73965[iVar0 /*2*/] = 0;
  		Global_73965[iVar0 /*2*/].f_1 = -1;
  		iVar0++;
  	}
  	Global_73998 = 0;
  }
  
  void func_13()
  {
  	Global_61876 = 0;
  }
  
  void func_14()
  {
  	Global_61736 = 0;
  	Global_61740 = func_15(joaat("SP0_SHOTS"));
  	Global_61739 = func_15(joaat("SP0_HITS"));
  	Global_61742 = func_15(joaat("SP1_SHOTS"));
  	Global_61741 = func_15(joaat("SP1_HITS"));
  	Global_61744 = func_15(joaat("SP2_SHOTS"));
  	Global_61743 = func_15(joaat("SP2_HITS"));
  }
  
  var func_15(int iParam0)
  {
  	var uVar0;
  	
  	unk_0xD2F202166691EDB2(iParam0, &uVar0, -1);
  	return uVar0;
  }
  
  void func_16()
  {
  	int iVar0;
  	
  	Global_61746 = 0;
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 64)
  	{
  		Global_61747[iVar0 /*2*/] = 0;
  		iVar0++;
  	}
  }
  
  void func_17(int iParam0)
  {
  	Global_77093 = iParam0;
  	Global_77094 = iParam0;
  }
  
  void func_18()
  {
  	int iVar0;
  	
  	Global_61715 = 1;
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < Global_73812)
  	{
  		Global_73813[iVar0 /*9*/].f_3 = 2;
  		iVar0++;
  	}
  	if (Global_61725)
  	{
  	}
  	Global_61725 = 0;
  }
  
  void func_19()
  {
  	if (unk_0x7B70881748D166CD(joaat("mission_stat_watcher")) > 0)
  	{
  		if (func_20())
  		{
  			if (Global_61712 && !Global_61711)
  			{
  				Global_61712 = 0;
  				unk_0xAE9FF16AC494E897("mission_stat_watcher");
  			}
  		}
  		else
  		{
  			unk_0xAE9FF16AC494E897("mission_stat_watcher");
  		}
  	}
  }
  
  int func_20()
  {
  	if (unk_0x7B70881748D166CD(joaat("mission_stat_watcher")) < 1)
  	{
  		return 0;
  	}
  	if (!Global_61710)
  	{
  		return 0;
  	}
  	return Global_61722;
  }
  
  void func_21(char* sParam0)
  {
  	if (unk_0xF005CCA4263DF67F(sParam0, sParam0))
  	{
  	}
  }
  
  void func_22(char[4] cParam0, int iParam1)
  {
  	unk_0xD2459066EA58CE43(&(Global_98955.f_20), 17);
  	func_23(cParam0, iParam1, 0);
  }
  
  void func_23(char[4] cParam0, int iParam1, int iParam2)
  {
  	if (Global_98955 != 10 && Global_98955 != 9)
  	{
  		StringCopy(&Global_102415, cParam0, 32);
  		func_25(&Global_102423, cParam0, 0, "Start", iParam1, iParam2);
  		func_24();
  		Global_93133 = 0;
  	}
  }
  
  void func_24()
  {
  	int iVar0;
  	int iVar1;
  	
  	Global_105407 = Global_102423;
  	Global_105407.f_1 = Global_102423.f_1;
  	Global_105407.f_6 = Global_102423.f_6;
  	Global_105407.f_7 = Global_102423.f_7;
  	Global_105407.f_8 = Global_102423.f_8;
  	Global_105407.f_2 = Global_102423.f_2;
  	Global_105407.f_3 = Global_102423.f_3;
  	Global_105407.f_4 = Global_102423.f_4;
  	Global_105407.f_5 = Global_102423.f_5;
  	iVar1 = 0;
  	while (iVar1 < 3)
  	{
  		Global_105407.f_9[iVar1] = Global_102423.f_9[iVar1];
  		Global_105407.f_13[iVar1] = Global_102423.f_13[iVar1];
  		Global_105407.f_17[iVar1] = Global_102423.f_17[iVar1];
  		Global_105407.f_21[iVar1] = Global_102423.f_21[iVar1];
  		Global_105407.f_25[0 /*295*/][iVar1 /*98*/] = { Global_102423.f_25[0 /*295*/][iVar1 /*98*/] };
  		Global_105407.f_25[1 /*295*/][iVar1 /*98*/] = { Global_102423.f_25[1 /*295*/][iVar1 /*98*/] };
  		iVar0 = 0;
  		while (iVar0 < 12)
  		{
  			Global_105407.f_616[iVar1 /*65*/][iVar0] = Global_102423.f_616[iVar1 /*65*/][iVar0];
  			Global_105407.f_616[iVar1 /*65*/].f_13[iVar0] = Global_102423.f_616[iVar1 /*65*/].f_13[iVar0];
  			Global_105407.f_616[iVar1 /*65*/].f_26[iVar0] = Global_102423.f_616[iVar1 /*65*/].f_26[iVar0];
  			iVar0++;
  		}
  		Global_105407.f_616[iVar1 /*65*/].f_59 = Global_102423.f_616[iVar1 /*65*/].f_59;
  		Global_105407.f_616[iVar1 /*65*/].f_60 = Global_102423.f_616[iVar1 /*65*/].f_60;
  		Global_105407.f_616[iVar1 /*65*/].f_61 = Global_102423.f_616[iVar1 /*65*/].f_61;
  		Global_105407.f_616[iVar1 /*65*/].f_62 = Global_102423.f_616[iVar1 /*65*/].f_62;
  		Global_105407.f_616[iVar1 /*65*/].f_63 = Global_102423.f_616[iVar1 /*65*/].f_63;
  		Global_105407.f_616[iVar1 /*65*/].f_64 = Global_102423.f_616[iVar1 /*65*/].f_64;
  		iVar0 = 0;
  		while (iVar0 < 9)
  		{
  			Global_105407.f_616[iVar1 /*65*/].f_39[iVar0] = Global_102423.f_616[iVar1 /*65*/].f_39[iVar0];
  			Global_105407.f_616[iVar1 /*65*/].f_49[iVar0] = Global_102423.f_616[iVar1 /*65*/].f_49[iVar0];
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 44)
  		{
  			Global_105407.f_812[iVar1 /*477*/][iVar0 /*5*/] = { Global_102423.f_812[iVar1 /*477*/][iVar0 /*5*/] };
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 51)
  		{
  			Global_105407.f_812[iVar1 /*477*/].f_221[iVar0 /*5*/] = { Global_102423.f_812[iVar1 /*477*/].f_221[iVar0 /*5*/] };
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 4)
  		{
  			Global_105407.f_2244[iVar1 /*32*/][iVar0] = Global_102423.f_2244[iVar1 /*32*/][iVar0];
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 10)
  		{
  			Global_105407.f_2244[iVar1 /*32*/].f_5[iVar0] = Global_102423.f_2244[iVar1 /*32*/].f_5[iVar0];
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 15)
  		{
  			Global_105407.f_2244[iVar1 /*32*/].f_16[iVar0] = Global_102423.f_2244[iVar1 /*32*/].f_16[iVar0];
  			iVar0++;
  		}
  		Global_105407.f_2341[iVar1] = Global_102423.f_2341[iVar1];
  		iVar0 = 0;
  		while (iVar0 <= 3)
  		{
  			Global_105407.f_2838[iVar1 /*15*/][iVar0] = Global_102423.f_2838[iVar1 /*15*/][iVar0];
  			Global_105407.f_2838[iVar1 /*15*/].f_5[iVar0] = Global_102423.f_2838[iVar1 /*15*/].f_5[iVar0];
  			Global_105407.f_2838[iVar1 /*15*/].f_10[iVar0] = Global_102423.f_2838[iVar1 /*15*/].f_10[iVar0];
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			Global_105407.f_2345[iVar1 /*164*/][iVar0] = Global_102423.f_2345[iVar1 /*164*/][iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_4[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_4[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_8[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_8[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_12[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_12[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_16[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_16[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_20[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_20[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_24[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_24[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_28[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_28[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_32[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_32[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_36[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_36[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_40[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_40[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_44[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_44[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_48[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_48[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_52[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_52[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_56[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_56[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_60[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_60[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_64[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_64[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_68[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_68[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_72[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_72[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_76[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_76[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_80[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_80[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_84[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_84[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_88[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_88[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_92[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_92[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_96[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_96[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_100[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_100[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_104[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_104[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_108[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_108[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_112[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_112[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_116[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_116[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_120[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_120[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_124[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_124[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_128[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_128[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_132[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_132[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_136[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_136[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_140[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_140[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_144[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_144[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_148[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_148[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_152[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_152[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_156[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_156[iVar0];
  			Global_105407.f_2345[iVar1 /*164*/].f_160[iVar0] = Global_102423.f_2345[iVar1 /*164*/].f_160[iVar0];
  			iVar0++;
  		}
  		iVar1++;
  	}
  	Global_105407.f_2884 = { Global_102423.f_2884 };
  	Global_105407.f_2884.f_3 = Global_102423.f_2884.f_3;
  	Global_105407.f_2890 = { Global_102423.f_2890 };
  	Global_105407.f_2890.f_3 = { Global_102423.f_2890.f_3 };
  	Global_105407.f_2890.f_6 = Global_102423.f_2890.f_6;
  	Global_105407.f_2890.f_8 = Global_105407.f_2890.f_8;
  	Global_105407.f_2890.f_7 = Global_102423.f_2890.f_7;
  	Global_105407.f_2890.f_9 = Global_102423.f_2890.f_9;
  	Global_105407.f_2890.f_11 = Global_102423.f_2890.f_11;
  	Global_105407.f_2890.f_10 = Global_102423.f_2890.f_10;
  	Global_105407.f_2890.f_12 = Global_102423.f_2890.f_12;
  	Global_105407.f_2890.f_12.f_1 = { Global_102423.f_2890.f_12.f_1 };
  	Global_105407.f_2890.f_12.f_5 = Global_102423.f_2890.f_12.f_5;
  	Global_105407.f_2890.f_12.f_6 = Global_102423.f_2890.f_12.f_6;
  	Global_105407.f_2890.f_12.f_7 = Global_102423.f_2890.f_12.f_7;
  	Global_105407.f_2890.f_12.f_8 = Global_102423.f_2890.f_12.f_8;
  	Global_105407.f_2890.f_12.f_9 = { Global_102423.f_2890.f_12.f_9 };
  	Global_105407.f_2890.f_12.f_59 = { Global_102423.f_2890.f_12.f_59 };
  	Global_105407.f_2890.f_12.f_62 = Global_102423.f_2890.f_12.f_62;
  	Global_105407.f_2890.f_12.f_63 = Global_102423.f_2890.f_12.f_63;
  	Global_105407.f_2890.f_12.f_64 = Global_102423.f_2890.f_12.f_64;
  	Global_105407.f_2890.f_12.f_65 = Global_102423.f_2890.f_12.f_65;
  	Global_105407.f_2890.f_12.f_77 = Global_102423.f_2890.f_12.f_77;
  	Global_105407.f_2890.f_12.f_66 = Global_102423.f_2890.f_12.f_66;
  	Global_105407.f_2890.f_12.f_67 = Global_102423.f_2890.f_12.f_67;
  	Global_105407.f_2890.f_12.f_68 = Global_102423.f_2890.f_12.f_68;
  	Global_105407.f_2890.f_12.f_69 = Global_102423.f_2890.f_12.f_69;
  	Global_105407.f_2890.f_12.f_71 = Global_102423.f_2890.f_12.f_71;
  	Global_105407.f_2890.f_12.f_72 = Global_102423.f_2890.f_12.f_72;
  	Global_105407.f_2890.f_12.f_73 = Global_102423.f_2890.f_12.f_73;
  	Global_105407.f_2890.f_12.f_74 = Global_102423.f_2890.f_12.f_74;
  	Global_105407.f_2890.f_12.f_75 = Global_102423.f_2890.f_12.f_75;
  	Global_105407.f_2890.f_12.f_76 = Global_102423.f_2890.f_12.f_76;
  	Global_105407.f_2980 = Global_102423.f_2980;
  	Global_105407.f_2980.f_1 = Global_102423.f_2980.f_1;
  	Global_105407.f_2980.f_2 = Global_102423.f_2980.f_2;
  	Global_105407.f_2980.f_3 = Global_102423.f_2980.f_3;
  }
  
  void func_25(var uParam0, char* sParam1, int iParam2, char* sParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	int iVar1;
  	
  	*uParam0 = func_105();
  	uParam0->f_1 = func_94();
  	unk_0x012D8A79244042A4(&(uParam0->f_6), &(uParam0->f_7), &(uParam0->f_8));
  	if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  	{
  		func_66(&(uParam0->f_2884), 0);
  		func_65(unk_0x9B0761B4C3EB8BC7());
  		func_58(unk_0x9B0761B4C3EB8BC7(), 0);
  		unk_0x1386E5E658CE3032(unk_0x9B0761B4C3EB8BC7(), &(uParam0->f_2), 1);
  		if (uParam0->f_2 == 0 || uParam0->f_2 == joaat("object"))
  		{
  			uParam0->f_2 = joaat("weapon_unarmed");
  		}
  	}
  	iVar1 = 0;
  	while (iVar1 < 3)
  	{
  		uParam0->f_17[iVar1] = Global_111858.f_2359.f_539.f_294[iVar1];
  		if (iVar1 == func_55())
  		{
  			func_48(unk_0x9B0761B4C3EB8BC7(), &(uParam0->f_616[iVar1 /*65*/]), 1, -1);
  		}
  		else
  		{
  			iVar0 = 0;
  			while (iVar0 < 12)
  			{
  				uParam0->f_616[iVar1 /*65*/][iVar0] = Global_98680[iVar1 /*65*/][iVar0];
  				uParam0->f_616[iVar1 /*65*/].f_13[iVar0] = Global_98680[iVar1 /*65*/].f_13[iVar0];
  				iVar0++;
  			}
  			uParam0->f_616[iVar1 /*65*/].f_59 = Global_98680[iVar1 /*65*/].f_59;
  			uParam0->f_616[iVar1 /*65*/].f_60 = Global_98680[iVar1 /*65*/].f_60;
  			uParam0->f_616[iVar1 /*65*/].f_61 = Global_98680[iVar1 /*65*/].f_61;
  			uParam0->f_616[iVar1 /*65*/].f_62 = Global_98680[iVar1 /*65*/].f_62;
  			uParam0->f_616[iVar1 /*65*/].f_63 = Global_98680[iVar1 /*65*/].f_63;
  			uParam0->f_616[iVar1 /*65*/].f_64 = Global_98680[iVar1 /*65*/].f_64;
  			iVar0 = 0;
  			while (iVar0 < 9)
  			{
  				uParam0->f_616[iVar1 /*65*/].f_39[iVar0] = Global_98680[iVar1 /*65*/].f_39[iVar0];
  				uParam0->f_616[iVar1 /*65*/].f_49[iVar0] = Global_98680[iVar1 /*65*/].f_49[iVar0];
  				iVar0++;
  			}
  		}
  		iVar0 = 0;
  		while (iVar0 < 44)
  		{
  			uParam0->f_812[iVar1 /*477*/][iVar0 /*5*/] = { Global_111858.f_2359.f_539.f_298[iVar1 /*477*/][iVar0 /*5*/] };
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 51)
  		{
  			uParam0->f_812[iVar1 /*477*/].f_221[iVar0 /*5*/] = { Global_111858.f_2359.f_539.f_298[iVar1 /*477*/].f_221[iVar0 /*5*/] };
  			iVar0++;
  		}
  		switch (iVar1)
  		{
  			case 0:
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/][0]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/][1]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_ADDON_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_5[0]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_ADDON_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_5[1]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_ADDON_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_5[2]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_ADDON_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_5[3]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_ADDON_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_5[4]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_16[0]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_16[1]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_16[2]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_16[3]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_16[4]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_5"), &(uParam0->f_2244[iVar1 /*32*/].f_16[5]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_6"), &(uParam0->f_2244[iVar1 /*32*/].f_16[6]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_7"), &(uParam0->f_2244[iVar1 /*32*/].f_16[7]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_8"), &(uParam0->f_2244[iVar1 /*32*/].f_16[8]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_9"), &(uParam0->f_2244[iVar1 /*32*/].f_16[9]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_10"), &(uParam0->f_2244[iVar1 /*32*/].f_16[10]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP0_WEAP_TINT_PURCH_11"), &(uParam0->f_2244[iVar1 /*32*/].f_16[11]), -1);
  				break;
  			
  			case 1:
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/][0]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/][1]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_ADDON_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_5[0]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_ADDON_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_5[1]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_ADDON_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_5[2]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_ADDON_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_5[3]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_ADDON_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_5[4]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_16[0]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_16[1]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_16[2]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_16[3]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_16[4]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_5"), &(uParam0->f_2244[iVar1 /*32*/].f_16[5]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_6"), &(uParam0->f_2244[iVar1 /*32*/].f_16[6]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_7"), &(uParam0->f_2244[iVar1 /*32*/].f_16[7]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_8"), &(uParam0->f_2244[iVar1 /*32*/].f_16[8]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_9"), &(uParam0->f_2244[iVar1 /*32*/].f_16[9]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_10"), &(uParam0->f_2244[iVar1 /*32*/].f_16[10]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP1_WEAP_TINT_PURCH_11"), &(uParam0->f_2244[iVar1 /*32*/].f_16[11]), -1);
  				break;
  			
  			case 2:
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/][0]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/][1]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_ADDON_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_5[0]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_ADDON_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_5[1]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_ADDON_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_5[2]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_ADDON_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_5[3]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_ADDON_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_5[4]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_0"), &(uParam0->f_2244[iVar1 /*32*/].f_16[0]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_1"), &(uParam0->f_2244[iVar1 /*32*/].f_16[1]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_2"), &(uParam0->f_2244[iVar1 /*32*/].f_16[2]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_3"), &(uParam0->f_2244[iVar1 /*32*/].f_16[3]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_4"), &(uParam0->f_2244[iVar1 /*32*/].f_16[4]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_5"), &(uParam0->f_2244[iVar1 /*32*/].f_16[5]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_6"), &(uParam0->f_2244[iVar1 /*32*/].f_16[6]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_7"), &(uParam0->f_2244[iVar1 /*32*/].f_16[7]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_8"), &(uParam0->f_2244[iVar1 /*32*/].f_16[8]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_9"), &(uParam0->f_2244[iVar1 /*32*/].f_16[9]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_10"), &(uParam0->f_2244[iVar1 /*32*/].f_16[10]), -1);
  				unk_0xD2F202166691EDB2(joaat("SP2_WEAP_TINT_PURCH_11"), &(uParam0->f_2244[iVar1 /*32*/].f_16[11]), -1);
  				break;
  		}
  		uParam0->f_9[iVar1] = Global_111858.f_20560.f_233[iVar1 /*69*/].f_1;
  		uParam0->f_13[iVar1] = Global_58891[iVar1];
  		uParam0->f_25[0 /*295*/][iVar1 /*98*/] = { Global_111858.f_2359.f_539.f_2407[0 /*295*/][iVar1 /*98*/] };
  		uParam0->f_25[1 /*295*/][iVar1 /*98*/] = { Global_111858.f_2359.f_539.f_2407[1 /*295*/][iVar1 /*98*/] };
  		iVar0 = 0;
  		while (iVar0 <= 3)
  		{
  			uParam0->f_2838[iVar1 /*15*/][iVar0] = Global_111858.f_2359.f_493[iVar1 /*15*/][iVar0];
  			uParam0->f_2838[iVar1 /*15*/].f_5[iVar0] = Global_111858.f_2359.f_493[iVar1 /*15*/].f_5[iVar0];
  			uParam0->f_2838[iVar1 /*15*/].f_10[iVar0] = Global_111858.f_2359.f_493[iVar1 /*15*/].f_10[iVar0];
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			uParam0->f_2345[iVar1 /*164*/][iVar0] = Global_111858.f_2359[iVar1 /*164*/][iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_4[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_4[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_8[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_8[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_12[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_12[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_16[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_16[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_20[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_20[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_24[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_24[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_28[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_28[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_32[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_32[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_36[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_36[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_40[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_40[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_44[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_44[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_48[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_48[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_52[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_52[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_56[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_56[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_60[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_60[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_64[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_64[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_68[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_68[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_72[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_72[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_76[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_76[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_80[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_80[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_84[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_84[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_88[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_88[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_92[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_92[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_96[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_96[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_100[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_100[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_104[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_104[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_108[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_108[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_112[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_112[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_116[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_116[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_120[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_120[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_124[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_124[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_128[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_128[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_132[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_132[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_136[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_136[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_140[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_140[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_144[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_144[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_148[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_148[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_152[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_152[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_156[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_156[iVar0];
  			uParam0->f_2345[iVar1 /*164*/].f_160[iVar0] = Global_111858.f_2359[iVar1 /*164*/].f_160[iVar0];
  			iVar0++;
  		}
  		iVar1++;
  	}
  	unk_0xD2F202166691EDB2(joaat("SP0_SPECIAL_ABILITY"), &(uParam0->f_2341[0]), -1);
  	unk_0xD2F202166691EDB2(joaat("SP1_SPECIAL_ABILITY"), &(uParam0->f_2341[1]), -1);
  	unk_0xD2F202166691EDB2(joaat("SP2_SPECIAL_ABILITY"), &(uParam0->f_2341[2]), -1);
  	uParam0->f_5 = 145;
  	if (iParam4 == 1)
  	{
  		func_27(&(uParam0->f_2890), uParam0, iParam5, 1, 1, 0);
  	}
  	func_26(&(uParam0->f_2980));
  	sParam3 = sParam3;
  	iParam2 = iParam2;
  }
  
  int func_26(var uParam0)
  {
  	*uParam0 = Global_94804;
  	uParam0->f_1 = Global_94805;
  	uParam0->f_2 = 0;
  	uParam0->f_3 = 0;
  	return 1;
  }
  
  void func_27(var uParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	
  	if (iParam2 == 0)
  	{
  		iParam2 = unk_0x9B0761B4C3EB8BC7();
  	}
  	if (unk_0xAE06B9E39EBDE049(iParam2))
  	{
  		uParam1->f_5 = func_45(iParam2);
  	}
  	if (func_42(iParam2, &iVar0, iParam3, iParam5))
  	{
  		func_28(uParam0, uParam1, iVar0, iParam4);
  	}
  	else if (unk_0xAE06B9E39EBDE049(iVar0))
  	{
  		if (!unk_0xA59F96B50B97E63C(iVar0, 0))
  		{
  			if (unk_0x68AEFA37A65085FD(iVar0, joaat("skylift")) && unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), iVar0, 0))
  			{
  				func_28(uParam0, uParam1, iVar0, iParam4);
  			}
  		}
  	}
  }
  
  int func_28(var uParam0, var uParam1, int iParam2, int iParam3)
  {
  	if (unk_0x80FF6C016CDB0FAF(iParam2, 0))
  	{
  		func_30(uParam0, iParam2, iParam3);
  		uParam1->f_4 = iParam2;
  		if (func_29(iParam2))
  		{
  			uParam1->f_3 = 1;
  		}
  		else
  		{
  			uParam1->f_3 = 0;
  		}
  		return 1;
  	}
  	return 0;
  }
  
  int func_29(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 6)
  	{
  		if (Global_98955.f_22[iVar0] == iParam0)
  		{
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  void func_30(var uParam0, int iParam1, int iParam2)
  {
  	func_37(iParam1, &(uParam0->f_12));
  	uParam0->f_7 = func_33(iParam1, 145, 0);
  	uParam0->f_11 = func_32(iParam1);
  	if (!uParam0->f_7)
  	{
  		if (!uParam0->f_10)
  		{
  			uParam0->f_10 = func_31(iParam1);
  		}
  	}
  	if (iParam2 == 1)
  	{
  		*uParam0 = { unk_0x3E4D3CCC220BDFB1(iParam1, 1) };
  		uParam0->f_6 = unk_0xEF7858F25585F853(iParam1);
  		uParam0->f_3 = { unk_0x97C0B1E5FCD8E08A(iParam1) };
  		if (unk_0x1037B9D45CE6B788(iParam1, -1154.326f, -1523.871f, 3.262189f, -1158.453f, -1517.75f, 6.374244f, 13f, 0, 1, 0))
  		{
  			*uParam0 = { -1160.095f, -1515.407f, 3.1496f };
  			uParam0->f_6 = 305.6424f;
  		}
  		if (Global_76559 == iParam1)
  		{
  			uParam0->f_9 = 1;
  		}
  	}
  	if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  	{
  		uParam0->f_8 = 1;
  	}
  	else
  	{
  		uParam0->f_8 = 0;
  	}
  }
  
  int func_31(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 68)
  	{
  		if (unk_0xAE06B9E39EBDE049(Global_75654.f_484[iVar0]))
  		{
  			if (iParam0 == Global_75654.f_484[iVar0])
  			{
  				return 1;
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_32(int iParam0)
  {
  	int iVar0;
  	
  	if (!unk_0xAE06B9E39EBDE049(iParam0))
  	{
  		return 145;
  	}
  	if (!unk_0x80FF6C016CDB0FAF(iParam0, 0))
  	{
  		return 145;
  	}
  	iVar0 = 0;
  	while (iVar0 < 9)
  	{
  		if (unk_0xAE06B9E39EBDE049(Global_96286[iVar0]))
  		{
  			if (Global_96286[iVar0] == iParam0)
  			{
  				return Global_96296[iVar0];
  			}
  		}
  		iVar0++;
  	}
  	return 145;
  }
  
  int func_33(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	if (!unk_0xAE06B9E39EBDE049(iParam0))
  	{
  		return 0;
  	}
  	if (!unk_0x80FF6C016CDB0FAF(iParam0, 0))
  	{
  		return 0;
  	}
  	iVar0 = 0;
  	while (iVar0 < 9)
  	{
  		if (unk_0xAE06B9E39EBDE049(Global_96286[iVar0]))
  		{
  			if (Global_96286[iVar0] == iParam0)
  			{
  				if (iParam1 == 145 || iParam1 == Global_96296[iVar0])
  				{
  					if (iParam2 == 0 || unk_0x36FE6D3220816ADA(iParam0) == func_34(iParam1, iParam2))
  					{
  						return 1;
  					}
  				}
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_34(int iParam0, int iParam1)
  {
  	struct<82> Var0;
  	
  	if (func_36(iParam0))
  	{
  		Var0.f_11 = 12;
  		Var0.f_31 = 49;
  		Var0.f_81 = 2;
  		func_35(iParam0, &Var0, iParam1);
  		return Var0;
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  void func_35(int iParam0, var uParam1, int iParam2)
  {
  	int iVar0;
  	
  	uParam1->f_88 = 1;
  	uParam1->f_84 = 255;
  	uParam1->f_85 = 255;
  	uParam1->f_86 = 255;
  	uParam1->f_97 = 1;
  	uParam1->f_3 = 1000;
  	uParam1->f_1 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = joaat("tailgater");
  			if (Global_111858.f_9081.f_99.f_58[128] && !Global_111858.f_9081.f_99.f_58[131])
  			{
  				iVar0 = joaat("premier");
  			}
  			switch (iVar0)
  			{
  				case joaat("tailgater"):
  					*uParam1 = iVar0;
  					uParam1->f_2 = 3f;
  					uParam1->f_4 = 0;
  					uParam1->f_9 = 1;
  					uParam1->f_11[0] = 1;
  					StringCopy(&(uParam1->f_27), "5MDS003", 16);
  					break;
  				
  				case joaat("premier"):
  					*uParam1 = iVar0;
  					uParam1->f_2 = 14.9f;
  					uParam1->f_5 = 43;
  					uParam1->f_6 = 43;
  					uParam1->f_7 = 0;
  					uParam1->f_8 = 156;
  					uParam1->f_9 = 0;
  					StringCopy(&(uParam1->f_27), "880HS955", 16);
  					break;
  			}
  			break;
  		
  		case 2:
  			iVar0 = joaat("bodhi2");
  			switch (iVar0)
  			{
  				case joaat("bodhi2"):
  					*uParam1 = iVar0;
  					uParam1->f_2 = 14f;
  					uParam1->f_5 = 32;
  					uParam1->f_6 = 0;
  					uParam1->f_7 = 0;
  					uParam1->f_8 = 156;
  					StringCopy(&(uParam1->f_27), "BETTY 32", 16);
  					if (Global_111858.f_9081.f_99.f_58[119])
  					{
  						uParam1->f_11[1] = 1;
  					}
  					break;
  			}
  			break;
  		
  		case 1:
  			if (iParam2 == 1)
  			{
  				iVar0 = joaat("buffalo2");
  			}
  			else if (iParam2 == 2)
  			{
  				iVar0 = joaat("bagger");
  			}
  			else if (Global_111858.f_9081.f_99.f_58[118])
  			{
  				iVar0 = joaat("bagger");
  			}
  			else
  			{
  				iVar0 = joaat("buffalo2");
  			}
  			switch (iVar0)
  			{
  				case joaat("bagger"):
  					*uParam1 = iVar0;
  					uParam1->f_2 = 6f;
  					uParam1->f_5 = 53;
  					uParam1->f_6 = 0;
  					uParam1->f_7 = 59;
  					uParam1->f_8 = 156;
  					StringCopy(&(uParam1->f_27), "FC88", 16);
  					break;
  				
  				case joaat("buffalo2"):
  					*uParam1 = iVar0;
  					uParam1->f_2 = 0f;
  					uParam1->f_5 = 111;
  					uParam1->f_6 = 111;
  					uParam1->f_7 = 0;
  					uParam1->f_8 = 156;
  					uParam1->f_10 = 1;
  					StringCopy(&(uParam1->f_27), "FC1988", 16);
  					uParam1->f_11[0] = 1;
  					uParam1->f_11[1] = 1;
  					uParam1->f_11[2] = 1;
  					uParam1->f_11[3] = 1;
  					uParam1->f_11[4] = 1;
  					uParam1->f_11[5] = 1;
  					uParam1->f_11[6] = 1;
  					uParam1->f_11[7] = 1;
  					uParam1->f_11[8] = 1;
  					break;
  			}
  			break;
  		
  		default:
  			break;
  	}
  }
  
  bool func_36(int iParam0)
  {
  	return iParam0 < 3;
  }
  
  void func_37(int iParam0, var uParam1)
  {
  	int iVar0;
  	
  	if (unk_0x80FF6C016CDB0FAF(iParam0, 0))
  	{
  		func_41(uParam1);
  		uParam1->f_66 = unk_0x36FE6D3220816ADA(iParam0);
  		StringCopy(&(uParam1->f_1), unk_0x6984AA4EC2FF9734(iParam0), 16);
  		*uParam1 = unk_0x999BFF5D72C9701A(iParam0);
  		unk_0x255499E0D27A1780(iParam0, &(uParam1->f_5), &(uParam1->f_6));
  		unk_0x7E545979AF9FCA10(iParam0, &(uParam1->f_7), &(uParam1->f_8));
  		unk_0xA681FAA57125DB66(iParam0, &(uParam1->f_62), &(uParam1->f_63), &(uParam1->f_64));
  		uParam1->f_65 = unk_0xA3DDFC0A00C22ED3(iParam0);
  		uParam1->f_67 = unk_0x16628A9DDE9875CC(iParam0);
  		uParam1->f_69 = unk_0x74BE6BA308A7B62F(iParam0);
  		uParam1->f_70 = unk_0xB9FAC5FDE6272EE5(iParam0);
  		unk_0x7984C9503C733252(iParam0, &(uParam1->f_71), &(uParam1->f_72), &(uParam1->f_73));
  		unk_0xEC53ED0C29BA8483(iParam0, &(uParam1->f_74), &(uParam1->f_75), &(uParam1->f_76));
  		if (unk_0x8CC64DFDB61877EA(iParam0, 2))
  		{
  			unk_0xBE20AB8238688965(&(uParam1->f_77), 28);
  		}
  		if (unk_0x8CC64DFDB61877EA(iParam0, 3))
  		{
  			unk_0xBE20AB8238688965(&(uParam1->f_77), 29);
  		}
  		if (unk_0x8CC64DFDB61877EA(iParam0, 0))
  		{
  			unk_0xBE20AB8238688965(&(uParam1->f_77), 30);
  		}
  		if (unk_0x8CC64DFDB61877EA(iParam0, 1))
  		{
  			unk_0xBE20AB8238688965(&(uParam1->f_77), 31);
  		}
  		if (uParam1->f_65 == -1 && !func_40(uParam1->f_66))
  		{
  			uParam1->f_65 = 0;
  		}
  		if (unk_0xD501F7099396F726(iParam0, 0))
  		{
  			uParam1->f_68 = unk_0x4B3B9AC15296615C(iParam0);
  		}
  		if (unk_0xF9C3E2B9AA9E2294(uParam1->f_66))
  		{
  			if (unk_0xCA87E17B66918D00(iParam0))
  			{
  				switch (unk_0x38EAEB8EE9D858CF(iParam0))
  				{
  					case 3:
  					case 0:
  						unk_0xD2459066EA58CE43(&(uParam1->f_77), 23);
  						unk_0xBE20AB8238688965(&(uParam1->f_77), 22);
  						break;
  					
  					case 4:
  					case 1:
  						unk_0xD2459066EA58CE43(&(uParam1->f_77), 23);
  						unk_0xD2459066EA58CE43(&(uParam1->f_77), 22);
  						break;
  					
  					case 5:
  						unk_0xBE20AB8238688965(&(uParam1->f_77), 23);
  						break;
  				}
  			}
  			else
  			{
  				unk_0xBE20AB8238688965(&(uParam1->f_77), 23);
  			}
  		}
  		if (!unk_0x5EF4A66EF7630445(iParam0))
  		{
  			unk_0xBE20AB8238688965(&(uParam1->f_77), 9);
  		}
  		if (unk_0x93846124A64E7DEC(iParam0))
  		{
  			unk_0xBE20AB8238688965(&(uParam1->f_77), 10);
  		}
  		if (unk_0xB41668EFA7045047(iParam0))
  		{
  			unk_0xBE20AB8238688965(&(uParam1->f_77), 13);
  			unk_0x2CB46B57EB6A7F5D(iParam0, &(uParam1->f_71), &(uParam1->f_72), &(uParam1->f_73));
  		}
  		if (unk_0x3FE1C23F43A4E29E(iParam0))
  		{
  			unk_0xBE20AB8238688965(&(uParam1->f_77), 12);
  		}
  		func_39(&iParam0, &(uParam1->f_9), &(uParam1->f_59));
  		iVar0 = 0;
  		while (iVar0 <= 11)
  		{
  			if (unk_0xAACD889100BCBCFA(iParam0, iVar0 + 1))
  			{
  				unk_0xBE20AB8238688965(&(uParam1->f_77), func_38(iVar0 + 1));
  			}
  			iVar0++;
  		}
  		if (unk_0x62B133F8490E0B2E(iParam0, 0))
  		{
  			unk_0xBE20AB8238688965(&(uParam1->f_77), 11);
  		}
  		else
  		{
  			unk_0xD2459066EA58CE43(&(uParam1->f_77), 11);
  		}
  		if (unk_0x871819940BD2E434(iParam0, "IgnoredByQuickSave") && unk_0x84E72BB19D4FDE12(iParam0, "IgnoredByQuickSave"))
  		{
  			unk_0xBE20AB8238688965(&(uParam1->f_77), 27);
  		}
  		else
  		{
  			unk_0xD2459066EA58CE43(&(uParam1->f_77), 27);
  		}
  	}
  }
  
  int func_38(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  			return 0;
  			break;
  		
  		case 2:
  			return 1;
  			break;
  		
  		case 3:
  			return 2;
  			break;
  		
  		case 4:
  			return 3;
  			break;
  		
  		case 5:
  			return 4;
  			break;
  		
  		case 6:
  			return 5;
  			break;
  		
  		case 7:
  			return 6;
  			break;
  		
  		case 8:
  			return 7;
  			break;
  		
  		case 9:
  			return 8;
  			break;
  		
  		case 10:
  			return 24;
  			break;
  		
  		case 11:
  			return 25;
  			break;
  		
  		case 12:
  			return 26;
  			break;
  	}
  	return 0;
  }
  
  int func_39(int iParam0, var uParam1, var uParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!unk_0x80FF6C016CDB0FAF(*iParam0, 0))
  	{
  		return 0;
  	}
  	if (unk_0xC71761E30ACCF098(*iParam0) == 0)
  	{
  		return 0;
  	}
  	iVar0 = 0;
  	while (iVar0 < *uParam1)
  	{
  		iVar1 = iVar0;
  		if ((((iVar1 == 17 || iVar1 == 18) || iVar1 == 19) || iVar1 == 20) || iVar1 == 21)
  		{
  			(*uParam1)[iVar0] = 0;
  			if (unk_0xC59714C8D4D5117D(*iParam0, iVar1))
  			{
  				(*uParam1)[iVar0] = 1;
  			}
  		}
  		else if (iVar1 == 22)
  		{
  			if (unk_0xC59714C8D4D5117D(*iParam0, iVar1))
  			{
  				switch (unk_0x0523E2B914021FFF(*iParam0))
  				{
  					case 255:
  						(*uParam1)[iVar0] = 1;
  						break;
  					
  					case 0:
  						(*uParam1)[iVar0] = 2;
  						break;
  					
  					case 1:
  						(*uParam1)[iVar0] = 3;
  						break;
  					
  					case 2:
  						(*uParam1)[iVar0] = 4;
  						break;
  					
  					case 3:
  						(*uParam1)[iVar0] = 5;
  						break;
  					
  					case 4:
  						(*uParam1)[iVar0] = 6;
  						break;
  					
  					case 5:
  						(*uParam1)[iVar0] = 7;
  						break;
  					
  					case 6:
  						(*uParam1)[iVar0] = 8;
  						break;
  					
  					case 7:
  						(*uParam1)[iVar0] = 9;
  						break;
  					
  					case 8:
  						(*uParam1)[iVar0] = 10;
  						break;
  					
  					case 9:
  						(*uParam1)[iVar0] = 11;
  						break;
  					
  					case 10:
  						(*uParam1)[iVar0] = 12;
  						break;
  					
  					case 11:
  						(*uParam1)[iVar0] = 13;
  						break;
  					
  					case 12:
  						(*uParam1)[iVar0] = 14;
  						break;
  					
  					case 13:
  						(*uParam1)[iVar0] = 15;
  						break;
  				}
  			}
  			else
  			{
  				(*uParam1)[iVar0] = 0;
  			}
  		}
  		else
  		{
  			(*uParam1)[iVar0] = unk_0x7F8B14CBFB9813E5(*iParam0, iVar0) + 1;
  			if (iVar0 == 23)
  			{
  				(*uParam2)[0] = unk_0x9CE7070F0EBF111F(*iParam0, iVar0);
  			}
  			else if (iVar0 == 24)
  			{
  				(*uParam2)[1] = unk_0x9CE7070F0EBF111F(*iParam0, iVar0);
  			}
  		}
  		iVar0++;
  	}
  	return 1;
  }
  
  int func_40(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("granger"):
  		case joaat("visione"):
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  void func_41(var uParam0)
  {
  	int iVar0;
  	
  	uParam0->f_66 = 0;
  	uParam0->f_77 = 0;
  	uParam0->f_65 = 0;
  	uParam0->f_62 = 0;
  	uParam0->f_63 = 0;
  	uParam0->f_64 = 0;
  	uParam0->f_74 = 0;
  	uParam0->f_75 = 0;
  	uParam0->f_76 = 0;
  	*uParam0 = 0;
  	StringCopy(&(uParam0->f_1), "", 16);
  	uParam0->f_5 = 0;
  	uParam0->f_6 = 0;
  	uParam0->f_7 = 0;
  	uParam0->f_8 = 0;
  	iVar0 = 0;
  	while (iVar0 < 49)
  	{
  		uParam0->f_9[iVar0] = 0;
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 2)
  	{
  		uParam0->f_59[iVar0] = 0;
  		iVar0++;
  	}
  	uParam0->f_67 = 0;
  	uParam0->f_68 = 0;
  	uParam0->f_69 = 0;
  	uParam0->f_70 = 1;
  	uParam0->f_71 = 0;
  	uParam0->f_72 = 0;
  	uParam0->f_73 = 0;
  }
  
  int func_42(int iParam0, var uParam1, int iParam2, int iParam3)
  {
  	char* sVar0;
  	
  	if (unk_0xAE06B9E39EBDE049(iParam0))
  	{
  		if (!unk_0x5AEB5DDFFAD43CA5(iParam0))
  		{
  			if (iParam0 == unk_0x9B0761B4C3EB8BC7())
  			{
  				*uParam1 = unk_0xA5D3CD332CD10EE9();
  			}
  			else
  			{
  				*uParam1 = unk_0xA5D5B1042E8F47BD(iParam0, 1);
  			}
  			if (unk_0xAE06B9E39EBDE049(*uParam1))
  			{
  				if (unk_0x80FF6C016CDB0FAF(*uParam1, 0))
  				{
  					if (iParam2 == 0 || unk_0x272784C60C397DB6(unk_0x3E4D3CCC220BDFB1(*uParam1, 1), unk_0x3E4D3CCC220BDFB1(iParam0, 1), 1) < 100f)
  					{
  						if (unk_0x68AEFA37A65085FD(*uParam1, joaat("taxi")))
  						{
  							if (unk_0x10D3F7E169A49C44(*uParam1, -1, 0) != iParam0 && unk_0x10D3F7E169A49C44(*uParam1, -1, 0) != 0)
  							{
  								return 0;
  							}
  						}
  						if (func_43(*uParam1, func_105(), 1))
  						{
  							sVar0 = unk_0x6C5C6B207AA78253();
  							if (!unk_0xF005CCA4263DF67F(sVar0, "save_anywhere"))
  							{
  								return 0;
  							}
  							else if (!unk_0x47DBF174A0CB9D55(iParam0, 1))
  							{
  								return 0;
  							}
  						}
  						if (iParam3 == 1)
  						{
  							if (unk_0x871819940BD2E434(*uParam1, "IgnoredByQuickSave"))
  							{
  								if (unk_0x84E72BB19D4FDE12(*uParam1, "IgnoredByQuickSave"))
  								{
  									return 0;
  								}
  							}
  						}
  						else if (unk_0x68AEFA37A65085FD(*uParam1, joaat("blimp")))
  						{
  							return 0;
  						}
  						return 1;
  					}
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_43(int iParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	char* sVar1;
  	int iVar2;
  	
  	if (!unk_0xAE06B9E39EBDE049(iParam0) || !unk_0x80FF6C016CDB0FAF(iParam0, 0))
  	{
  		return 0;
  	}
  	iVar0 = 0;
  	while (func_44(iParam1, iVar0, &sVar1, &iVar2))
  	{
  		if (!bParam2 || unk_0xCE990E643CD9D0E5(Global_111858.f_7225[iVar2], 0))
  		{
  			if (unk_0x1362F9BE8812B12C(&sVar1, iParam0))
  			{
  				return 1;
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_44(int iParam0, int iParam1, char* sParam2, var uParam3)
  {
  	StringCopy(sParam2, "", 32);
  	switch (iParam0)
  	{
  		case 0:
  			if (iParam1 == 0)
  			{
  				StringCopy(sParam2, "Michael - Beverly Hills", 32);
  				*uParam3 = 0;
  				return 1;
  			}
  			else if (iParam1 == 1)
  			{
  				StringCopy(sParam2, "Trevor - Countryside", 32);
  				*uParam3 = 1;
  				return 1;
  			}
  			break;
  		
  		case 1:
  			if (iParam1 == 0)
  			{
  				StringCopy(sParam2, "Franklin - Aunt", 32);
  				*uParam3 = 5;
  				return 1;
  			}
  			else if (iParam1 == 1)
  			{
  				StringCopy(sParam2, "Franklin - Hills", 32);
  				*uParam3 = 6;
  				return 1;
  			}
  			break;
  		
  		case 2:
  			if (iParam1 == 0)
  			{
  				StringCopy(sParam2, "Trevor - Countryside", 32);
  				*uParam3 = 2;
  				return 1;
  			}
  			else if (iParam1 == 1)
  			{
  				StringCopy(sParam2, "Trevor - City", 32);
  				*uParam3 = 3;
  				return 1;
  			}
  			else if (iParam1 == 2)
  			{
  				StringCopy(sParam2, "Trevor - Stripclub", 32);
  				*uParam3 = 4;
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_45(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (unk_0xAE06B9E39EBDE049(iParam0))
  	{
  		iVar1 = unk_0x36FE6D3220816ADA(iParam0);
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			if (func_46(iVar0) == iVar1)
  			{
  				return iVar0;
  			}
  			iVar0++;
  		}
  	}
  	return 145;
  }
  
  int func_46(int iParam0)
  {
  	if (func_36(iParam0))
  	{
  		return func_47(iParam0);
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  var func_47(int iParam0)
  {
  	return Global_1848[iParam0 /*29*/];
  }
  
  void func_48(int iParam0, var uParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		iVar0 = func_45(iParam0);
  		iVar1 = 0;
  		while (iVar1 < 12)
  		{
  			func_54(iParam0, iVar1, &(uParam1->f_13[iVar1]), uParam1[iVar1], &(uParam1->f_26[iVar1]), iParam2, 145);
  			iVar1++;
  		}
  		iVar1 = 0;
  		while (iVar1 < 9)
  		{
  			func_53(iParam0, iVar1, &(uParam1->f_39[iVar1]), &(uParam1->f_49[iVar1]), iParam2, 145);
  			iVar1++;
  		}
  		if (func_36(iVar0))
  		{
  			uParam1->f_59 = Global_111858.f_2359.f_539[iVar0 /*65*/].f_59;
  			uParam1->f_60 = Global_111858.f_2359.f_539[iVar0 /*65*/].f_60;
  			uParam1->f_61 = Global_111858.f_2359.f_539[iVar0 /*65*/].f_61;
  			uParam1->f_62 = Global_111858.f_2359.f_539[iVar0 /*65*/].f_62;
  			uParam1->f_63 = Global_111858.f_2359.f_539[iVar0 /*65*/].f_63;
  			uParam1->f_64 = Global_111858.f_2359.f_539[iVar0 /*65*/].f_64;
  		}
  		else if (unk_0x25DDB354A40FFCDB() && unk_0x36FE6D3220816ADA(iParam0) == unk_0x36FE6D3220816ADA(unk_0x9B0761B4C3EB8BC7()))
  		{
  			if (func_52(161, iParam3))
  			{
  				uParam1->f_59 = func_49(2052, iParam3, 0);
  			}
  			else
  			{
  				uParam1->f_59 = func_49(752, iParam3, 0);
  			}
  			uParam1->f_60 = func_49(753, iParam3, 0);
  			uParam1->f_61 = func_49(754, iParam3, 0);
  		}
  		if (unk_0x25DDB354A40FFCDB() && iParam0 == unk_0x9B0761B4C3EB8BC7())
  		{
  			if (func_52(161, iParam3))
  			{
  				uParam1->f_59 = func_49(2052, iParam3, 0);
  			}
  			else
  			{
  				uParam1->f_59 = func_49(752, iParam3, 0);
  			}
  		}
  	}
  }
  
  int func_49(int iParam0, int iParam1, int iParam2)
  {
  	var uVar0;
  	var uVar1;
  	
  	if (iParam0 != 11771)
  	{
  		if (iParam2 == 0)
  		{
  		}
  		uVar0 = Global_2551832[iParam0 /*3*/][func_50(iParam1)];
  		if (unk_0xD2F202166691EDB2(uVar0, &uVar1, -1))
  		{
  			return uVar1;
  		}
  	}
  	return 0;
  }
  
  int func_50(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = uParam0;
  	if (iVar0 == -1)
  	{
  		iVar1 = func_51();
  		if (iVar1 > -1)
  		{
  			Global_2551544 = 0;
  			iVar0 = iVar1;
  		}
  		else
  		{
  			iVar0 = 0;
  			Global_2551544 = 1;
  		}
  	}
  	return iVar0;
  }
  
  int func_51()
  {
  	return Global_1312763;
  }
  
  int func_52(int iParam0, int iParam1)
  {
  	var uVar0;
  	var uVar1;
  	
  	uVar0 = Global_2587834[iParam0 /*3*/][func_50(iParam1)];
  	if (unk_0xB9112C701DE2A810(uVar0, &uVar1, -1))
  	{
  		return uVar1;
  	}
  	return 0;
  }
  
  void func_53(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	
  	iVar0 = func_45(iParam0);
  	if (iParam0 != 0)
  	{
  		*uParam2 = unk_0xA98E0435012EAF07(iParam0, iParam1);
  		*uParam3 = unk_0x77A103B794FA7737(iParam0, iParam1);
  	}
  	else
  	{
  		iVar0 = iParam5;
  	}
  	if (iParam4 == 0)
  	{
  		return;
  	}
  	if (iParam1 == 0)
  	{
  		if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  		{
  			if (iParam0 != 0)
  			{
  				if (unk_0x2489BECD123A725B(iParam0) && unk_0x36A2658DF0E6FA5B(iParam0) != -1)
  				{
  					*uParam2 = unk_0x36A2658DF0E6FA5B(iParam0);
  					*uParam3 = unk_0x4D85ED5F576DB434(iParam0);
  				}
  			}
  		}
  	}
  	switch (iVar0)
  	{
  		case 0:
  			if (iParam1 == 0)
  			{
  				if (*uParam2 == 7)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 11)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 21)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 16 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 23)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 27)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 28)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 >= 14 && *uParam2 <= 20)
  				{
  					if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  			}
  			else if (iParam1 == 1)
  			{
  				if (*uParam2 == 1)
  				{
  					if (iParam4 & 2 != 0 || iParam4 & 64 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  			}
  			break;
  		
  		case 1:
  			if (iParam1 == 0)
  			{
  				if (*uParam2 == 2)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 4)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 16 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 6)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 17)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 20)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 21)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 >= 8 && *uParam2 <= 14)
  				{
  					if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  			}
  			break;
  		
  		case 2:
  			if (iParam1 == 0)
  			{
  				if (*uParam2 == 9)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 11)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 12)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 21)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 23)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if (*uParam2 == 27)
  				{
  					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  				else if ((*uParam2 >= 14 && *uParam2 <= 20) || *uParam2 == 2)
  				{
  					if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
  					{
  						*uParam2 = -1;
  						*uParam3 = -1;
  					}
  				}
  			}
  			break;
  	}
  }
  
  void func_54(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, int iParam5, int iParam6)
  {
  	int iVar0;
  	
  	iVar0 = func_45(iParam0);
  	if (iParam0 != 0)
  	{
  		*uParam2 = unk_0x3FB4D40A857CEA77(iParam0, iParam1);
  		*uParam3 = unk_0x79AFA009D186C4FB(iParam0, iParam1);
  		*uParam4 = unk_0xABAC9462CD887571(iParam0, iParam1);
  	}
  	else
  	{
  		iVar0 = iParam6;
  	}
  	if (iParam5 == 0)
  	{
  		return;
  	}
  	switch (iVar0)
  	{
  		case 0:
  			if (iParam1 == 8)
  			{
  				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
  				{
  					if (*uParam2 == 15)
  					{
  						*uParam2 = 0;
  						*uParam3 = 0;
  					}
  				}
  				if (iParam5 & 2 != 0 || iParam5 & 64 != 0)
  				{
  					if (*uParam2 == 3 || *uParam2 == 22)
  					{
  						*uParam2 = 0;
  						*uParam3 = 0;
  					}
  				}
  			}
  			else if (iParam1 == 9)
  			{
  				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
  				{
  					if (*uParam2 == 5)
  					{
  						*uParam2 = 0;
  						*uParam3 = 0;
  					}
  				}
  				if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
  				{
  					if (*uParam2 == 8)
  					{
  						*uParam2 = 0;
  						*uParam3 = 0;
  					}
  				}
  			}
  			break;
  		
  		case 1:
  			if (iParam1 == 8)
  			{
  				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
  				{
  					if (*uParam2 == 1 || *uParam2 == 10)
  					{
  						*uParam2 = 14;
  						*uParam3 = 0;
  					}
  				}
  				if (iParam5 & 2 != 0 || iParam5 & 64 != 0)
  				{
  					if (*uParam2 == 19)
  					{
  						*uParam2 = 14;
  						*uParam3 = 0;
  					}
  				}
  			}
  			else if (iParam1 == 9)
  			{
  				if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
  				{
  					if (*uParam2 == 5)
  					{
  						*uParam2 = 0;
  						*uParam3 = 0;
  					}
  				}
  			}
  			break;
  		
  		case 2:
  			if (iParam1 == 8)
  			{
  				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
  				{
  					if (*uParam2 == 3)
  					{
  						*uParam2 = 14;
  						*uParam3 = 0;
  					}
  				}
  			}
  			else if (iParam1 == 9)
  			{
  				if (*uParam2 >= 5 && *uParam2 <= 7)
  				{
  					if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
  					{
  						*uParam2 = 0;
  						*uParam3 = 0;
  					}
  				}
  			}
  			break;
  	}
  }
  
  int func_55()
  {
  	func_56();
  	return Global_111858.f_2359.f_539.f_4321;
  }
  
  void func_56()
  {
  	int iVar0;
  	
  	if (unk_0xAE06B9E39EBDE049(unk_0x9B0761B4C3EB8BC7()))
  	{
  		if (func_46(Global_111858.f_2359.f_539.f_4321) != unk_0x36FE6D3220816ADA(unk_0x9B0761B4C3EB8BC7()))
  		{
  			iVar0 = func_45(unk_0x9B0761B4C3EB8BC7());
  			if (func_36(iVar0) && (!func_57(14) || Global_110809))
  			{
  				if (Global_111858.f_2359.f_539.f_4321 != iVar0 && func_36(Global_111858.f_2359.f_539.f_4321))
  				{
  					Global_111858.f_2359.f_539.f_4322 = Global_111858.f_2359.f_539.f_4321;
  				}
  				Global_111858.f_2359.f_539.f_4323 = iVar0;
  				Global_111858.f_2359.f_539.f_4321 = iVar0;
  				return;
  			}
  		}
  		else
  		{
  			if (Global_111858.f_2359.f_539.f_4321 != 145)
  			{
  				Global_111858.f_2359.f_539.f_4323 = Global_111858.f_2359.f_539.f_4321;
  			}
  			return;
  		}
  	}
  	Global_111858.f_2359.f_539.f_4321 = 145;
  }
  
  bool func_57(int iParam0)
  {
  	return Global_41631 == iParam0;
  }
  
  void func_58(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar0 = func_45(iParam0);
  	if (func_36(iVar0) && !unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		if (iParam0 == unk_0x9B0761B4C3EB8BC7())
  		{
  			func_59(iParam0, &(Global_111858.f_2359.f_539.f_298[iVar0 /*477*/]));
  			iVar2 = 0;
  			while (iVar2 <= (8 - 1))
  			{
  				Global_111858.f_2359.f_539.f_1730[iVar2 /*4*/][iVar0] = unk_0x74D9DA32014F46E1(iVar2);
  				if (bParam1)
  				{
  					iVar1 = unk_0x6229CCADB7BCDADA();
  					if (Global_111858.f_2359.f_539.f_1730[iVar2 /*4*/][iVar0] == iVar1)
  					{
  						Global_111858.f_2359.f_539.f_1763 = iVar2;
  					}
  				}
  				iVar2++;
  			}
  			unk_0x80A60743EEF71865(unk_0x460153A63B9477BC(), &iVar3);
  			if (iVar0 == 0)
  			{
  				unk_0x6000E4684CB4330B(joaat("SP0_PARACHUTE_CURRENT_TINT"), iVar3, 1);
  			}
  			else if (iVar0 == 1)
  			{
  				unk_0x6000E4684CB4330B(joaat("SP1_PARACHUTE_CURRENT_TINT"), iVar3, 1);
  			}
  			else if (iVar0 == 2)
  			{
  				unk_0x6000E4684CB4330B(joaat("SP2_PARACHUTE_CURRENT_TINT"), iVar3, 1);
  			}
  		}
  	}
  }
  
  void func_59(int iParam0, var uParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	struct<5> Var4;
  	int iVar5;
  	int iVar6;
  	struct<2> Var7;
  	struct<4> Var8;
  	int iVar9;
  	int iVar10;
  	
  	if (!unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		iVar0 = 0;
  		while (iVar0 <= (44 - 1))
  		{
  			(uParam1[iVar0 /*5*/])->f_1 = 0;
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 <= (44 - 1))
  		{
  			iVar3 = func_64(iVar0);
  			if (iVar3 != 0)
  			{
  				Var4 = unk_0x285D770154CF7612(iParam0, func_64(iVar0));
  				Var4.f_1 = 0;
  				Var4.f_2 = 0;
  				Var4.f_3 = 0;
  				Var4.f_4 = 0;
  				if (Var4 != 0 && Var4 != joaat("weapon_unarmed"))
  				{
  					Var4.f_1 = unk_0x35DEEA1DC27CF0A2(iParam0, Var4);
  					if (Var4 == joaat("gadget_parachute"))
  					{
  						Var4.f_1 = 1;
  					}
  					Var4.f_3 = unk_0xC524D460B9FE4A6A(iParam0, Var4);
  					Var4.f_4 = unk_0xE5457310A14F8FFC(iParam0, Var4);
  					if (Var4.f_1 == -1)
  					{
  						if (!unk_0x0EBD989162AEAFA1(iParam0, Var4, &(Var4.f_1)))
  						{
  							Var4.f_1 = 0;
  						}
  					}
  					(uParam1[iVar0 /*5*/])->f_1 = Var4.f_1;
  					iVar1 = 0;
  					iVar2 = func_62(Var4, iVar1);
  					while (iVar2 != 0)
  					{
  						if (unk_0x0BCEF4D1482DACD2(iParam0, Var4, iVar2))
  						{
  							unk_0xBE20AB8238688965(&(Var4.f_2), iVar1);
  						}
  						iVar1++;
  						iVar2 = func_62(Var4, iVar1);
  					}
  				}
  				*(uParam1[iVar0 /*5*/]) = { Var4 };
  			}
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 <= 50)
  		{
  			uParam1->f_221[iVar0 /*5*/].f_1 = 0;
  			iVar0++;
  		}
  		iVar6 = unk_0x705B1F36F9880DD4();
  		iVar5 = 0;
  		while (iVar5 < iVar6)
  		{
  			if ((unk_0xC517E2708E06CD75(iVar5, &Var7) && !func_61(Var7.f_1)) && iVar9 < 51)
  			{
  				if (!unk_0x14AC70FD8926649E(Var7))
  				{
  					Var4 = Var7.f_1;
  					Var4.f_1 = 0;
  					Var4.f_2 = 0;
  					Var4.f_3 = 0;
  					Var4.f_4 = 0;
  					Var4.f_1 = unk_0x35DEEA1DC27CF0A2(iParam0, Var4);
  					if (unk_0x15D88F65956DC2F6(iParam0, Var4, 0))
  					{
  						Var4.f_3 = unk_0xC524D460B9FE4A6A(iParam0, Var4);
  						Var4.f_4 = unk_0xE5457310A14F8FFC(iParam0, Var4);
  					}
  					if (Var4.f_1 == -1)
  					{
  						if (!unk_0x0EBD989162AEAFA1(iParam0, Var4, &(Var4.f_1)))
  						{
  							Var4.f_1 = 0;
  						}
  					}
  					uParam1->f_221[iVar9 /*5*/].f_1 = Var4.f_1;
  					iVar10 = 0;
  					iVar1 = 0;
  					while (iVar1 < unk_0xE57085BC4B6B2D60(iVar5))
  					{
  						if (unk_0xCCE94EFAFE5A3D71(iVar5, iVar1, &Var8))
  						{
  							if (!func_60(Var8.f_3))
  							{
  								if (unk_0x0BCEF4D1482DACD2(iParam0, Var4, Var8.f_3))
  								{
  									unk_0xBE20AB8238688965(&(Var4.f_2), iVar10);
  								}
  								iVar10++;
  							}
  						}
  						iVar1++;
  					}
  				}
  				if (Var4 != 0)
  				{
  					if (!unk_0x15D88F65956DC2F6(iParam0, Var4, 0))
  					{
  						Var4 = 0;
  						Var4.f_1 = 0;
  					}
  				}
  				uParam1->f_221[iVar9 /*5*/] = { Var4 };
  				iVar9++;
  			}
  			iVar5++;
  		}
  	}
  }
  
  int func_60(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_02_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_03_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_04_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_05_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_06_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_07_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_08_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_09_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_10_SLIDE"):
  		case joaat("COMPONENT_PISTOL_MK2_CAMO_IND_01_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_02_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_03_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_04_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_05_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_06_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_07_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_08_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_09_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_10_SLIDE"):
  		case joaat("COMPONENT_SNSPISTOL_MK2_CAMO_IND_01_SLIDE"):
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  int func_61(int iParam0)
  {
  	if (unk_0x25DDB354A40FFCDB())
  	{
  	}
  	else
  	{
  		switch (iParam0)
  		{
  			case joaat("weapon_pistol50"):
  			case joaat("weapon_bullpupshotgun"):
  			case joaat("weapon_assaultsmg"):
  				return 0;
  				break;
  			
  			case joaat("weapon_bottle"):
  			case joaat("weapon_snspistol"):
  			case joaat("weapon_gusenberg"):
  				return 0;
  				break;
  			
  			case joaat("weapon_heavypistol"):
  			case joaat("weapon_specialcarbine"):
  				return 0;
  				break;
  			
  			case joaat("weapon_bullpuprifle"):
  				return 0;
  				break;
  			
  			case joaat("weapon_dagger"):
  			case joaat("weapon_vintagepistol"):
  				return 0;
  				break;
  			
  			case joaat("weapon_firework"):
  			case joaat("weapon_musket"):
  				return 0;
  				break;
  			
  			case joaat("weapon_heavyshotgun"):
  			case joaat("weapon_marksmanrifle"):
  				return 0;
  				break;
  			
  			case joaat("weapon_hominglauncher"):
  			case joaat("weapon_proxmine"):
  				return 0;
  				break;
  			
  			case joaat("weapon_combatpdw"):
  			case joaat("weapon_knuckle"):
  			case joaat("weapon_marksmanpistol"):
  				return 0;
  				break;
  			
  			case -947031628:
  			case -572349828:
  			case 392730790:
  			case -1523701417:
  			case -2112826155:
  			case -664359727:
  			case -1887867191:
  			case -837150131:
  			case -344484024:
  			case joaat("weapon_flaregun"):
  			case joaat("weapon_handcuffs"):
  			case joaat("weapon_snowball"):
  			case joaat("weapon_garbagebag"):
  			case joaat("weapon_flashlight"):
  			case joaat("weapon_switchblade"):
  			case joaat("weapon_revolver"):
  			case joaat("weapon_dbshotgun"):
  			case joaat("weapon_compactrifle"):
  			case joaat("WEAPON_AUTOSHOTGUN"):
  			case joaat("WEAPON_MINISMG"):
  			case joaat("WEAPON_COMPACTLAUNCHER"):
  			case joaat("WEAPON_BATTLEAXE"):
  			case joaat("WEAPON_PIPEBOMB"):
  			case joaat("WEAPON_POOLCUE"):
  			case joaat("WEAPON_WRENCH"):
  			case joaat("WEAPON_DOUBLEACTION"):
  			case joaat("WEAPON_RAYCARBINE"):
  			case joaat("WEAPON_RAYMINIGUN"):
  			case joaat("WEAPON_RAYPISTOL"):
  			case joaat("WEAPON_NAVYREVOLVER"):
  			case joaat("WEAPON_CERAMICPISTOL"):
  			case 1470379660:
  			case -1658906650:
  			case 94989220:
  				return 1;
  				break;
  			}
  	}
  	return 0;
  }
  
  int func_62(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	var uVar4;
  	struct<4> Var5;
  	
  	iVar0 = 0;
  	switch (iParam0)
  	{
  		case joaat("weapon_pistol"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_pistol_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_pistol_clip_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_pi_flsh");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_pi_supp_02");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_pistol_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_combatpistol"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_combatpistol_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_combatpistol_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_pi_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_pi_supp");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_combatpistol_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_appistol"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_appistol_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_appistol_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_pi_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_pi_supp");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_appistol_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_microsmg"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_microsmg_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_microsmg_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_pi_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_scope_macro");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_microsmg_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_smg"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_smg_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_smg_clip_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_smg_clip_03");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_pi_supp");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_at_scope_macro_02");
  					break;
  				
  				case 7:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 8:
  					iVar0 = joaat("component_smg_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_assaultrifle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_assaultrifle_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_assaultrifle_clip_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_assaultrifle_clip_03");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_at_scope_macro");
  					break;
  				
  				case 7:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 8:
  					iVar0 = joaat("component_assaultrifle_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_carbinerifle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_carbinerifle_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_carbinerifle_clip_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_carbinerifle_clip_03");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_railcover_01");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 7:
  					iVar0 = joaat("component_at_scope_medium");
  					break;
  				
  				case 8:
  					iVar0 = joaat("component_at_ar_supp");
  					break;
  				
  				case 9:
  					iVar0 = joaat("component_carbinerifle_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_advancedrifle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_advancedrifle_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_advancedrifle_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_scope_small");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_supp");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_advancedrifle_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_mg"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_mg_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_mg_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_scope_small_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_mg_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_combatmg"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_combatmg_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_combatmg_clip_02");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_scope_medium");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_combatmg_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_pumpshotgun"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_at_sr_supp");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_pumpshotgun_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_assaultshotgun"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_assaultshotgun_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_assaultshotgun_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_supp");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_sniperrifle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_sniperrifle_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_at_scope_large");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_scope_max");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_sniperrifle_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_heavysniper"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = 1623028892;
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_heavysniper_clip_01");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_scope_large");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_scope_max");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_grenadelauncher"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_scope_small");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_minigun"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_minigun_clip_01");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_assaultsmg"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_assaultsmg_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_assaultsmg_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_scope_macro");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_assaultsmg_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_bullpupshotgun"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_pistol50"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_pistol50_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_pistol50_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_pi_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_pistol50_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_combatpdw"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_combatpdw_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_combatpdw_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_combatpdw_clip_03");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_scope_small");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_sawnoffshotgun"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_sawnoffshotgun_varmod_luxe");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_bullpuprifle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_bullpuprifle_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_bullpuprifle_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_scope_small");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_ar_supp");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_bullpuprifle_varmod_low");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_snspistol"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_snspistol_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_snspistol_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_snspistol_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_specialcarbine"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_specialcarbine_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_specialcarbine_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_specialcarbine_clip_03");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_ar_flsh");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_at_scope_medium");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_at_ar_supp_02");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_at_ar_afgrip");
  					break;
  				
  				case 7:
  					iVar0 = joaat("component_specialcarbine_varmod_lowrider");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_knuckle"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_knuckle_varmod_pimp");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_knuckle_varmod_ballas");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_knuckle_varmod_dollar");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_knuckle_varmod_diamond");
  					break;
  				
  				case 4:
  					iVar0 = joaat("component_knuckle_varmod_hate");
  					break;
  				
  				case 5:
  					iVar0 = joaat("component_knuckle_varmod_love");
  					break;
  				
  				case 6:
  					iVar0 = joaat("component_knuckle_varmod_player");
  					break;
  				
  				case 7:
  					iVar0 = joaat("component_knuckle_varmod_king");
  					break;
  				
  				case 8:
  					iVar0 = joaat("component_knuckle_varmod_vagos");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_machinepistol"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_machinepistol_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_machinepistol_clip_02");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_machinepistol_clip_03");
  					break;
  				
  				case 3:
  					iVar0 = joaat("component_at_pi_supp");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_switchblade"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_switchblade_varmod_var1");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_switchblade_varmod_var2");
  					break;
  			}
  			break;
  		
  		case joaat("weapon_revolver"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("component_revolver_clip_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("component_revolver_varmod_boss");
  					break;
  				
  				case 2:
  					iVar0 = joaat("component_revolver_varmod_goon");
  					break;
  			}
  			break;
  		
  		case joaat("WEAPON_MINISMG"):
  			switch (iParam1)
  			{
  				case 0:
  					iVar0 = joaat("COMPONENT_MINISMG_CLIP_01");
  					break;
  				
  				case 1:
  					iVar0 = joaat("COMPONENT_MINISMG_CLIP_02");
  					break;
  			}
  			break;
  		
  		default:
  			if (iParam0 != 0)
  			{
  				iVar1 = func_63(iParam0, &uVar4);
  				if (iVar1 != -1)
  				{
  					iVar2 = 0;
  					while (iVar2 < unk_0x4C70B0C3D1E97438(iVar1))
  					{
  						if (unk_0xF4545E3991F419DA(iVar1, iVar2, &Var5))
  						{
  							if (!func_60(Var5.f_3))
  							{
  								if (iVar3 == iParam1)
  								{
  									return Var5.f_3;
  								}
  								iVar3++;
  							}
  						}
  						iVar2++;
  					}
  				}
  			}
  			break;
  	}
  	return iVar0;
  }
  
  int func_63(int iParam0, var uParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar1 = unk_0x5D2674C71F97E2ED();
  	iVar0 = 0;
  	while (iVar0 < iVar1)
  	{
  		if (unk_0x53C7411361231D87(iVar0, uParam1))
  		{
  			if (uParam1->f_1 == iParam0)
  			{
  				return iVar0;
  			}
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_64(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = 1993361168;
  			break;
  		
  		case 1:
  			iVar0 = 1277010230;
  			break;
  		
  		case 2:
  			iVar0 = 932043479;
  			break;
  		
  		case 3:
  			iVar0 = -690654591;
  			break;
  		
  		case 4:
  			iVar0 = -1459198205;
  			break;
  		
  		case 5:
  			iVar0 = 195782970;
  			break;
  		
  		case 6:
  			iVar0 = -438797331;
  			break;
  		
  		case 7:
  			iVar0 = 896793492;
  			break;
  		
  		case 8:
  			iVar0 = 495159329;
  			break;
  		
  		case 9:
  			iVar0 = -1155528315;
  			break;
  		
  		case 10:
  			iVar0 = -515636489;
  			break;
  		
  		case 11:
  			iVar0 = -871913299;
  			break;
  		
  		case 12:
  			iVar0 = -1352759032;
  			break;
  		
  		case 13:
  			iVar0 = -542958961;
  			break;
  		
  		case 14:
  			iVar0 = 1682645887;
  			break;
  		
  		case 15:
  			iVar0 = -859470162;
  			break;
  		
  		case 16:
  			iVar0 = -2125426402;
  			break;
  		
  		case 17:
  			iVar0 = 2067210266;
  			break;
  		
  		case 18:
  			iVar0 = -538172856;
  			break;
  		
  		case 19:
  			iVar0 = 1783244476;
  			break;
  		
  		case 20:
  			iVar0 = 439844898;
  			break;
  		
  		case 21:
  			iVar0 = -24829327;
  			break;
  		
  		case 22:
  			iVar0 = 1949306232;
  			break;
  		
  		case 23:
  			iVar0 = -1941230881;
  			break;
  		
  		case 24:
  			iVar0 = -1033554448;
  			break;
  		
  		case 25:
  			iVar0 = 320513715;
  			break;
  		
  		case 26:
  			iVar0 = -695165975;
  			break;
  		
  		case 27:
  			iVar0 = -281028447;
  			break;
  		
  		case 28:
  			iVar0 = -686713772;
  			break;
  		
  		case 29:
  			iVar0 = 347509793;
  			break;
  		
  		case 30:
  			iVar0 = 1769089473;
  			break;
  		
  		case 31:
  			iVar0 = 189935548;
  			break;
  		
  		case 33:
  			iVar0 = 248801358;
  			break;
  		
  		case 34:
  			iVar0 = 386596758;
  			break;
  		
  		case 35:
  			iVar0 = -157212362;
  			break;
  		
  		case 36:
  			iVar0 = 436985596;
  			break;
  		
  		case 37:
  			iVar0 = -47957369;
  			break;
  		
  		case 38:
  			iVar0 = 575938238;
  			break;
  	}
  	return iVar0;
  }
  
  void func_65(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = func_45(iParam0);
  	if (func_36(iVar0) && !unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		Global_111858.f_2359.f_539.f_294[iVar0] = unk_0x90F6D247913C41F9(iParam0);
  	}
  }
  
  void func_66(var uParam0, int iParam1)
  {
  	int iVar0;
  	struct<3> Var1;
  	var uVar2;
  	int iVar3;
  	
  	*uParam0 = { unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1) };
  	uParam0->f_3 = unk_0xEF7858F25585F853(unk_0x9B0761B4C3EB8BC7());
  	uParam0->f_5 = unk_0x5B5B4E37C1CCA675(unk_0x9B0761B4C3EB8BC7());
  	if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  	{
  		uParam0->f_4 = unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC());
  	}
  	if (SYSTEM::VDIST(*uParam0, 320.9934f, 265.2515f, 82.1221f) < 10f)
  	{
  		*uParam0 = { 301.2162f, 202.1357f, 103.3797f };
  		uParam0->f_3 = 156.5144f;
  	}
  	else if (SYSTEM::VDIST(*uParam0, 377.153f, -717.567f, 10.0536f) < 10f)
  	{
  		*uParam0 = { 394.2567f, -713.5439f, 28.2853f };
  		uParam0->f_3 = 276.6273f;
  	}
  	else if (SYSTEM::VDIST(*uParam0, -1425.564f, -244.3f, 15.8053f) < 10f)
  	{
  		*uParam0 = { -1423.472f, -214.2539f, 45.5004f };
  		uParam0->f_3 = 353.8757f;
  	}
  	else if (unk_0x7B70881748D166CD(joaat("finale_choice")) > 0)
  	{
  		*uParam0 = { 4.2587f, 525.0214f, 173.6281f };
  		uParam0->f_3 = 203.6746f;
  	}
  	else if (unk_0xCE990E643CD9D0E5(Global_77081, 4))
  	{
  		*uParam0 = { 452.0255f, 5571.85f, 780.1859f };
  		uParam0->f_3 = 78.9858f;
  	}
  	else if (unk_0xCE990E643CD9D0E5(Global_77081, 5))
  	{
  		*uParam0 = { -745.4462f, 5595.146f, 40.6594f };
  		uParam0->f_3 = 261.747f;
  	}
  	else if (unk_0xCE990E643CD9D0E5(Global_77081, 6))
  	{
  		*uParam0 = { -1675.521f, -1125.59f, 12.091f };
  		uParam0->f_3 = 271.8208f;
  	}
  	else if (unk_0xCE990E643CD9D0E5(Global_77081, 7))
  	{
  		*uParam0 = { -1631.219f, -1112.805f, 12.0212f };
  		uParam0->f_3 = 316.8879f;
  	}
  	else if (unk_0x518D695E2DBA9DB8(unk_0x9B0761B4C3EB8BC7()) == unk_0xC519B5898C2310B1(1272.659f, -1715.467f, 53.7715f, "v_lesters"))
  	{
  		*uParam0 = { 1276.956f, -1725.189f, 53.6551f };
  		uParam0->f_3 = 204.1703f;
  	}
  	else if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -415.4365f, 2068.289f, 113.3002f, -564.9516f, 1884.703f, 134.0403f, 258.75f, 0, 1, 0) || unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -596.4706f, 2089.921f, 125.4128f, -581.2134f, 2036.256f, 136.2836f, 9.5f, 0, 1, 0))
  	{
  		*uParam0 = { -601.59f, 2099.197f, 128.8928f };
  		uParam0->f_3 = 204.7498f;
  	}
  	else if (SYSTEM::VDIST(*uParam0, -1007.393f, -477.9584f, 52.5357f) < 8f)
  	{
  		*uParam0 = { -1018.376f, -483.9436f, 36.0964f };
  		uParam0->f_3 = 114.7664f;
  	}
  	else if (SYSTEM::VDIST(*uParam0, 480.6662f, -1317.808f, 28.20303f) < 15f)
  	{
  		*uParam0 = { 497.7238f, -1310.932f, 28.2372f };
  		uParam0->f_3 = 289.3663f;
  	}
  	else if (SYSTEM::VDIST(*uParam0, 2329.527f, 2571.311f, 45.6779f) < 5f)
  	{
  		*uParam0 = { 2316.93f, 2594.153f, 45.7199f };
  		uParam0->f_3 = 348.1325f;
  	}
  	if (iParam1 == 1)
  	{
  		if (func_70(&iVar0))
  		{
  			if (func_68(iVar0, &Var1, &uVar2))
  			{
  				Var1.f_2 = (Var1.f_2 + 1f);
  				*uParam0 = { Var1 };
  				uParam0->f_3 = uVar2;
  			}
  		}
  		else if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 207.4336f, -1019.795f, -100.4728f, 189.9338f, -1019.623f, -95.56883f, 17.1875f, 0, 1, 0))
  		{
  			iVar3 = func_105();
  			if (iVar3 == 0)
  			{
  				*uParam0 = { -65.1234f, 81.2517f, 70.5644f };
  				uParam0->f_3 = 71.6237f;
  			}
  			else if (iVar3 == 1)
  			{
  				*uParam0 = { -68.5531f, -1824.377f, 25.9424f };
  				uParam0->f_3 = 215.8295f;
  			}
  			else if (iVar3 == 2)
  			{
  				*uParam0 = { -220.8189f, -1162.302f, 22.0242f };
  				uParam0->f_3 = 70.2711f;
  			}
  		}
  		else if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 483.7175f, -1326.63f, 28.2135f, 474.9644f, -1307.998f, 34.49498f, 12f, 0, 1, 0))
  		{
  			*uParam0 = { 495.4108f, -1306.08f, 29.2883f };
  			uParam0->f_3 = 213.6273f;
  		}
  		else if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -1146.77f, -1534.22f, 3.37f, -1158.453f, -1517.75f, 6.374244f, 13f, 0, 1, 0))
  		{
  			*uParam0 = { -1160.095f, -1515.407f, 3.1496f };
  			uParam0->f_3 = 305.6424f;
  		}
  		else if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 439.5432f, -996.9769f, 24.88307f, 428.2935f, -997.0192f, 28.57458f, 8.5f, 0, 1, 0))
  		{
  			*uParam0 = { 431.8853f, -1013.133f, 28.7907f };
  			uParam0->f_3 = 186.6814f;
  		}
  		else if (func_67(*uParam0, "v_hospital", 307.3065f, -589.9595f, 43.302f))
  		{
  			*uParam0 = { 279.4137f, -585.8815f, 43.2502f };
  			uParam0->f_3 = 48.8028f;
  		}
  	}
  }
  
  int func_67(struct<3> Param0, char* sParam1, struct<3> Param2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!unk_0xECF201F09142F9D9(Param0))
  	{
  		iVar0 = unk_0xC519B5898C2310B1(Param2, sParam1);
  		if (!unk_0x0B1B45E748AD48BA(iVar0))
  		{
  			return 0;
  		}
  		iVar1 = unk_0x73E8970C02384D59(Param0);
  		if (iVar1 == iVar0)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  bool func_68(int iParam0, var uParam1, var uParam2)
  {
  	*uParam1 = { 0f, 0f, 0f };
  	*uParam2 = 0f;
  	switch (iParam0)
  	{
  		case 0:
  			*uParam1 = { -829.842f, -191.7454f, 36.4386f };
  			*uParam2 = 29.5061f;
  			break;
  		
  		case 1:
  			*uParam1 = { 129.8484f, -1716.528f, 28.0702f };
  			*uParam2 = 50.3483f;
  			break;
  		
  		case 2:
  			*uParam1 = { -1296.913f, -1120.999f, 5.3951f };
  			*uParam2 = 0.9933f;
  			break;
  		
  		case 3:
  			*uParam1 = { 1938.028f, 3718.736f, 31.3154f };
  			*uParam2 = 118.2305f;
  			break;
  		
  		case 4:
  			*uParam1 = { 1197.866f, -469.3809f, 65.0885f };
  			*uParam2 = 346.4477f;
  			break;
  		
  		case 5:
  			*uParam1 = { -32.2161f, -135.8212f, 56.0532f };
  			*uParam2 = 186.0052f;
  			break;
  		
  		case 6:
  			*uParam1 = { -287.7696f, 6238.081f, 30.2902f };
  			*uParam2 = 316.1349f;
  			break;
  		
  		case 7:
  			*uParam1 = { 99.2876f, -1395.16f, 28.2759f };
  			*uParam2 = 320.2739f;
  			break;
  		
  		case 8:
  			*uParam1 = { 1679.445f, 4819.056f, 41.0035f };
  			*uParam2 = 4.6192f;
  			break;
  		
  		case 9:
  			*uParam1 = { 411.3063f, -809.1863f, 28.1554f };
  			*uParam2 = 1.8972f;
  			break;
  		
  		case 10:
  			*uParam1 = { -1088.054f, 2699.167f, 19.2748f };
  			*uParam2 = 129.7382f;
  			break;
  		
  		case 11:
  			*uParam1 = { 1194.163f, 2695.644f, 36.9225f };
  			*uParam2 = 1.1454f;
  			break;
  		
  		case 12:
  			*uParam1 = { -821.2829f, -1088.027f, 10.0499f };
  			*uParam2 = 120.5883f;
  			break;
  		
  		case 13:
  			*uParam1 = { -3.3416f, 6521.303f, 30.2961f };
  			*uParam2 = 316.4451f;
  			break;
  		
  		case 14:
  			*uParam1 = { -1208.417f, -785.9635f, 16.0139f };
  			*uParam2 = 36.3181f;
  			break;
  		
  		case 15:
  			*uParam1 = { 623.1845f, 2739.191f, 40.9588f };
  			*uParam2 = 3.5411f;
  			break;
  		
  		case 16:
  			*uParam1 = { 130.9555f, -198.2084f, 53.41f };
  			*uParam2 = 251.3506f;
  			break;
  		
  		case 17:
  			*uParam1 = { -3164.065f, 1067.317f, 19.6778f };
  			*uParam2 = 101.2229f;
  			break;
  		
  		case 18:
  			*uParam1 = { -713.2797f, -174.2767f, 35.8962f };
  			*uParam2 = 29.8138f;
  			break;
  		
  		case 19:
  			*uParam1 = { -147.0616f, -306.4322f, 37.7912f };
  			*uParam2 = 160.4526f;
  			break;
  		
  		case 20:
  			*uParam1 = { -1461.355f, -230.6092f, 48.3064f };
  			*uParam2 = 318.7851f;
  			break;
  		
  		case 21:
  			*uParam1 = { -1347.739f, -1278.573f, 3.8952f };
  			*uParam2 = 17.9365f;
  			break;
  		
  		case 22:
  			*uParam1 = { 325.6833f, 164.3263f, 102.4425f };
  			*uParam2 = 68.6407f;
  			break;
  		
  		case 23:
  			*uParam1 = { 1858.774f, 3742.393f, 32.0779f };
  			*uParam2 = 301.2329f;
  			break;
  		
  		case 24:
  			*uParam1 = { -286.3272f, 6202.802f, 30.3323f };
  			*uParam2 = 225.1334f;
  			break;
  		
  		case 25:
  			*uParam1 = { -1161.596f, -1417.7f, 3.712f };
  			*uParam2 = 246.9161f;
  			break;
  		
  		case 26:
  			*uParam1 = { 1308.952f, -1660.611f, 50.2362f };
  			*uParam2 = 163.5456f;
  			break;
  		
  		case 27:
  			*uParam1 = { -3161.585f, 1074.214f, 19.6847f };
  			*uParam2 = 98.6092f;
  			break;
  		
  		case 28:
  			*uParam1 = { 28.423f, -1110.814f, 28.2848f };
  			*uParam2 = 85.2495f;
  			break;
  		
  		case 29:
  			*uParam1 = { 1704.966f, 3749.709f, 33.0188f };
  			*uParam2 = 45.6778f;
  			break;
  		
  		case 30:
  			*uParam1 = { 223.949f, -38.7894f, 68.6483f };
  			*uParam2 = 159.4265f;
  			break;
  		
  		case 31:
  			*uParam1 = { 837.7854f, -1017.963f, 26.3045f };
  			*uParam2 = 181.0445f;
  			break;
  		
  		case 32:
  			*uParam1 = { -313.1914f, 6093.351f, 30.4625f };
  			*uParam2 = 315.8405f;
  			break;
  		
  		case 33:
  			*uParam1 = { -663.4631f, -952.8069f, 20.3143f };
  			*uParam2 = 92.6796f;
  			break;
  		
  		case 34:
  			*uParam1 = { -1323.06f, -392.8577f, 35.4596f };
  			*uParam2 = 210.7398f;
  			break;
  		
  		case 35:
  			*uParam1 = { -1106.102f, 2684.35f, 18.0953f };
  			*uParam2 = 127.0383f;
  			break;
  		
  		case 36:
  			*uParam1 = { -3157.932f, 1081.309f, 19.6953f };
  			*uParam2 = 100.2942f;
  			break;
  		
  		case 37:
  			*uParam1 = { 2562.882f, 312.8641f, 107.4612f };
  			*uParam2 = 179.205f;
  			break;
  		
  		case 38:
  			*uParam1 = { 822.48f, -2142.875f, 27.8496f };
  			*uParam2 = 355.0598f;
  			break;
  		
  		case 39:
  			*uParam1 = { -1137.053f, -1993.916f, 12.1677f };
  			*uParam2 = 43.1213f;
  			break;
  		
  		case 40:
  			*uParam1 = { 717.8107f, -1084.081f, 21.3094f };
  			*uParam2 = 93.2649f;
  			break;
  		
  		case 41:
  			*uParam1 = { -387.6789f, -128.2568f, 37.6796f };
  			*uParam2 = 119.1085f;
  			break;
  		
  		case 42:
  			*uParam1 = { 117.8835f, 6599.415f, 31.0134f };
  			*uParam2 = 90.7225f;
  			break;
  		
  		case 43:
  			*uParam1 = { 1201.709f, 2664.813f, 36.8102f };
  			*uParam2 = 133.9002f;
  			break;
  		
  		case 44:
  			*uParam1 = { -200.1521f, -1297.502f, 30.296f };
  			*uParam2 = 269.0687f;
  			break;
  		
  		case 45:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 46:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 47:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 48:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 49:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 52:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 50:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 51:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  		
  		case 53:
  			*uParam1 = { 0f, 0f, 0f };
  			*uParam2 = 0f;
  			break;
  	}
  	return !func_69(*uParam1, 0f, 0f, 0f, 0);
  }
  
  bool func_69(struct<3> Param0, struct<3> Param1, bool bParam2)
  {
  	if (bParam2)
  	{
  		return (Param0.x == Param1.x && Param0.f_1 == Param1.f_1);
  	}
  	return ((Param0.x == Param1.x && Param0.f_1 == Param1.f_1) && Param0.f_2 == Param1.f_2);
  }
  
  int func_70(var uParam0)
  {
  	if (!unk_0xA59F96B50B97E63C(unk_0x9B0761B4C3EB8BC7(), 0) && !unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  	{
  		if (func_93())
  		{
  			*uParam0 = func_76(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), 6, -1, 0, 1, -1);
  			if (func_75(*uParam0) && !func_71(*uParam0))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  bool func_71(int iParam0)
  {
  	return func_72(iParam0, 0, 1);
  }
  
  int func_72(int iParam0, int iParam1, bool bParam2)
  {
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	if (bParam2)
  	{
  		return unk_0xCE990E643CD9D0E5(Global_99007.f_1364[iParam0], iParam1);
  	}
  	else if (unk_0x25DDB354A40FFCDB())
  	{
  		if (func_74() == 0)
  		{
  			return unk_0xCE990E643CD9D0E5(func_49(func_73(iParam0), -1, 0), iParam1);
  		}
  	}
  	else
  	{
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_668[iParam0], iParam1);
  	}
  	return 0;
  }
  
  int func_73(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 827;
  			break;
  		
  		case 1:
  			return 828;
  			break;
  		
  		case 2:
  			return 829;
  			break;
  		
  		case 3:
  			return 830;
  			break;
  		
  		case 4:
  			return 831;
  			break;
  		
  		case 5:
  			return 832;
  			break;
  		
  		case 6:
  			return 833;
  			break;
  		
  		case 7:
  			return 834;
  			break;
  		
  		case 8:
  			return 835;
  			break;
  		
  		case 9:
  			return 836;
  			break;
  		
  		case 10:
  			return 837;
  			break;
  		
  		case 11:
  			return 838;
  			break;
  		
  		case 12:
  			return 839;
  			break;
  		
  		case 13:
  			return 840;
  			break;
  		
  		case 14:
  			return 841;
  			break;
  		
  		case 15:
  			return 843;
  			break;
  		
  		case 16:
  			return 844;
  			break;
  		
  		case 17:
  			return 845;
  			break;
  		
  		case 18:
  			return 846;
  			break;
  		
  		case 19:
  			return 847;
  			break;
  		
  		case 20:
  			return 848;
  			break;
  		
  		case 21:
  			return 849;
  			break;
  		
  		case 22:
  			return 850;
  			break;
  		
  		case 23:
  			return 851;
  			break;
  		
  		case 24:
  			return 852;
  			break;
  		
  		case 25:
  			return 853;
  			break;
  		
  		case 26:
  			return 854;
  			break;
  		
  		case 27:
  			return 855;
  			break;
  		
  		case 28:
  			return 856;
  			break;
  		
  		case 29:
  			return 857;
  			break;
  		
  		case 30:
  			return 858;
  			break;
  		
  		case 31:
  			return 859;
  			break;
  		
  		case 32:
  			return 860;
  			break;
  		
  		case 33:
  			return 861;
  			break;
  		
  		case 34:
  			return 862;
  			break;
  		
  		case 35:
  			return 863;
  			break;
  		
  		case 36:
  			return 864;
  			break;
  		
  		case 37:
  			return 865;
  			break;
  		
  		case 38:
  			return 866;
  			break;
  		
  		case 39:
  			return 867;
  			break;
  		
  		case 40:
  			return 871;
  			break;
  		
  		case 41:
  			return 872;
  			break;
  		
  		case 42:
  			return 873;
  			break;
  		
  		case 43:
  			return 874;
  			break;
  		
  		case 44:
  			return 10099;
  			break;
  		
  		case 45:
  			return 3809;
  			break;
  		
  		case 46:
  			return 5384;
  			break;
  		
  		case 47:
  			return 6156;
  			break;
  		
  		case 48:
  			return 7233;
  			break;
  		
  		case 49:
  			return 7879;
  			break;
  		
  		case 52:
  			return 8913;
  			break;
  		
  		case 50:
  			return 8266;
  			break;
  		
  		case 51:
  			return 8268;
  			break;
  		
  		case 53:
  			return 9553;
  			break;
  		
  		default:
  			break;
  	}
  	return 11771;
  }
  
  int func_74()
  {
  	return Global_30968;
  }
  
  int func_75(int iParam0)
  {
  	return func_72(iParam0, 5, 1);
  }
  
  int func_76(struct<3> Param0, int iParam1, int iParam2, bool bParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	float fVar1;
  	float fVar2;
  	int iVar3;
  	
  	fVar2 = 1000000f;
  	iVar3 = -1;
  	iVar0 = 0;
  	while (iVar0 <= 53)
  	{
  		if (iParam1 == 6 || iParam1 == func_92(iVar0))
  		{
  			if (!bParam3 || func_91(iVar0))
  			{
  				fVar1 = unk_0x272784C60C397DB6(Param0, func_77(iVar0, 0), 1);
  				if (((fVar1 < fVar2 && (fVar1 <= IntToFloat(iParam2) || iParam2 == -1)) && (iParam4 || iVar0 != 21)) && iVar0 != iParam5)
  				{
  					fVar2 = fVar1;
  					iVar3 = iVar0;
  				}
  			}
  		}
  		iVar0++;
  	}
  	return iVar3;
  }
  
  Vector3 func_77(int iParam0, bool bParam1)
  {
  	switch (iParam0)
  	{
  		case -1:
  			return 0f, 0f, 0f;
  			break;
  		
  		case 0:
  			return -821.9946f, -187.1776f, 36.5689f;
  			break;
  		
  		case 1:
  			return 133.5702f, -1710.918f, 28.2916f;
  			break;
  		
  		case 2:
  			return -1287.082f, -1116.558f, 5.9901f;
  			break;
  		
  		case 3:
  			return 1933.119f, 3726.079f, 31.8444f;
  			break;
  		
  		case 4:
  			return 1208.333f, -470.917f, 65.208f;
  			break;
  		
  		case 5:
  			return -30.7448f, -148.4921f, 56.0765f;
  			break;
  		
  		case 6:
  			return -280.8165f, 6231.771f, 30.6955f;
  			break;
  		
  		case 7:
  			return 80.665f, -1391.669f, 28.3761f;
  			break;
  		
  		case 8:
  			return 1687.881f, 4820.55f, 41.0096f;
  			break;
  		
  		case 9:
  			return 419.531f, -807.5787f, 28.4896f;
  			break;
  		
  		case 10:
  			return -1094.049f, 2704.171f, 18.0873f;
  			break;
  		
  		case 11:
  			return 1197.972f, 2704.22f, 37.1572f;
  			break;
  		
  		case 12:
  			return -818.6218f, -1077.533f, 10.3282f;
  			break;
  		
  		case 13:
  			return -0.2361f, 6516.045f, 30.8684f;
  			break;
  		
  		case 14:
  			return -1199.809f, -776.6886f, 16.3237f;
  			break;
  		
  		case 15:
  			return 618.1857f, 2752.567f, 41.0881f;
  			break;
  		
  		case 16:
  			return 126.6853f, -212.5027f, 53.5578f;
  			break;
  		
  		case 17:
  			return -3168.966f, 1055.287f, 19.8632f;
  			break;
  		
  		case 18:
  			return -715.3598f, -155.7742f, 36.4105f;
  			break;
  		
  		case 19:
  			return -158.2199f, -304.9663f, 38.735f;
  			break;
  		
  		case 20:
  			return -1455.005f, -233.1862f, 48.7936f;
  			break;
  		
  		case 21:
  			return -1335.973f, -1278.555f, 3.8598f;
  			break;
  		
  		case 22:
  			return 321.6098f, 179.4165f, 102.5865f;
  			break;
  		
  		case 23:
  			return 1861.685f, 3750.08f, 32.0318f;
  			break;
  		
  		case 24:
  			return -290.1603f, 6199.095f, 30.4871f;
  			break;
  		
  		case 25:
  			return -1153.948f, -1425.019f, 3.9544f;
  			break;
  		
  		case 26:
  			return 1322.455f, -1651.125f, 51.1885f;
  			break;
  		
  		case 27:
  			return -3169.42f, 1074.727f, 19.8343f;
  			break;
  		
  		case 28:
  			return 17.6804f, -1114.288f, 28.797f;
  			break;
  		
  		case 29:
  			return 1697.979f, 3753.2f, 33.7053f;
  			break;
  		
  		case 30:
  			return 245.2711f, -45.8126f, 68.941f;
  			break;
  		
  		case 31:
  			return 844.1248f, -1025.571f, 27.1948f;
  			break;
  		
  		case 32:
  			return -325.8904f, 6077.026f, 30.4548f;
  			break;
  		
  		case 33:
  			return -664.2178f, -943.3646f, 20.8292f;
  			break;
  		
  		case 34:
  			return -1313.948f, -390.9637f, 35.592f;
  			break;
  		
  		case 35:
  			return -1111.238f, 2688.463f, 17.6131f;
  			break;
  		
  		case 36:
  			return -3165.231f, 1082.855f, 19.8438f;
  			break;
  		
  		case 37:
  			return 2569.612f, 302.576f, 107.7349f;
  			break;
  		
  		case 38:
  			return 811.8699f, -2149.102f, 28.6363f;
  			break;
  		
  		case 39:
  			return -1147.314f, -1992.434f, 12.1803f;
  			break;
  		
  		case 40:
  			return 724.524f, -1089.081f, 21.1692f;
  			break;
  		
  		case 41:
  			return -354.5272f, -135.4011f, 38.185f;
  			break;
  		
  		case 42:
  			return 113.2615f, 6624.28f, 30.7871f;
  			break;
  		
  		case 43:
  			return 1174.707f, 2644.45f, 36.7552f;
  			break;
  		
  		case 44:
  			if (bParam1)
  			{
  				return -211.5f, -1324.2f, 30.296f;
  			}
  			else
  			{
  				return -205.6654f, -1311.113f, 30.296f;
  			}
  			break;
  		
  		case 45:
  			return func_88(Global_101058);
  			break;
  		
  		case 46:
  			if (Global_1590519 != func_87())
  			{
  				if (func_86(Global_1590519))
  				{
  					return func_79(2, 2);
  				}
  				else if (func_78(Global_1590519))
  				{
  					return func_79(45, 3);
  				}
  				else
  				{
  					return 1000000f, 1000000f, 1000000f;
  				}
  			}
  			else
  			{
  				return 1000000f, 1000000f, 1000000f;
  			}
  			break;
  		
  		case 47:
  			return 510.1f, 4749.5f, -69f;
  			break;
  		
  		case 48:
  			return -1422.197f, -3015.803f, -79.1603f;
  			break;
  		
  		case 49:
  			return 203.0799f, 5200.189f, -89.6f;
  			break;
  		
  		case 52:
  			return 2714.547f, -354.2701f, -55.1867f;
  			break;
  		
  		case 50:
  			return Global_1696916;
  			break;
  		
  		case 51:
  			return 1100f, 220f, -50f;
  			break;
  		
  		case 53:
  			return 1560f, 400f, -50f;
  			break;
  	}
  	return 1000000f, 1000000f, 1000000f;
  }
  
  int func_78(int iParam0)
  {
  	if (iParam0 != func_87())
  	{
  		if ((unk_0xCE990E643CD9D0E5(Global_1590682[iParam0 /*883*/].f_274.f_259, 0) || unk_0xCE990E643CD9D0E5(Global_1590682[iParam0 /*883*/].f_274.f_259, 1)) || unk_0xCE990E643CD9D0E5(Global_1590682[iParam0 /*883*/].f_274.f_259, 2))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  Vector3 func_79(int iParam0, int iParam1)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	
  	Var1 = { 1000000f, 1000000f, 1000000f };
  	if (Global_1590519 != func_87())
  	{
  		if (iParam1 == 3)
  		{
  			if (func_80(iParam0, 1, &Var0, 0, 0))
  			{
  				Var1 = { Var0 };
  			}
  		}
  		else if (iParam1 == 2)
  		{
  			if (unk_0xCE990E643CD9D0E5(Global_1590682[Global_1590519 /*883*/].f_274.f_259, 4))
  			{
  				if (func_80(iParam0, 1, &Var0, 0, 0))
  				{
  					Var1 = { Var0 };
  				}
  			}
  			else if (unk_0xCE990E643CD9D0E5(Global_1590682[Global_1590519 /*883*/].f_274.f_259, 5))
  			{
  				if (func_80(iParam0, 2, &Var0, 0, 0))
  				{
  					Var1 = { Var0 };
  				}
  			}
  		}
  	}
  	return Var1;
  }
  
  int func_80(int iParam0, int iParam1, var uParam2, int iParam3, bool bParam4)
  {
  	struct<4> Var0;
  	struct<3> Var1;
  	struct<4> Var2;
  	struct<3> Var3;
  	
  	if (!func_85(iParam3, &Var0))
  	{
  		return 0;
  	}
  	if (!func_85(iParam1, &Var1))
  	{
  		return 0;
  	}
  	if (!bParam4)
  	{
  		Var2 = { func_83(iParam0) };
  	}
  	else
  	{
  		Var2 = { func_82(iParam0) };
  	}
  	Var3 = { Var2 - Var0 };
  	Var3 = { func_81(Var3, -Var0.f_3.f_2) };
  	Var3 = { func_81(Var3, Var1.f_3.f_2) };
  	*uParam2 = { unk_0x1BAE5C94E38E44FE(Var1, 0f, Var3) };
  	uParam2->f_3 = { Var2.f_3 };
  	return 1;
  }
  
  Vector3 func_81(struct<3> Param0, float fParam1)
  {
  	struct<3> Var0;
  	float fVar1;
  	float fVar2;
  	
  	fVar1 = SYSTEM::SIN(fParam1);
  	fVar2 = SYSTEM::COS(fParam1);
  	Var0.x = ((Param0.x * fVar2) - (Param0.f_1 * fVar1));
  	Var0.f_1 = ((Param0.x * fVar1) + (Param0.f_1 * fVar2));
  	Var0.f_2 = Param0.f_2;
  	return Var0;
  }
  
  struct<6> func_82(int iParam0)
  {
  	struct<6> Var0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			Var0 = { 1102.1f, -3010.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 115.92f };
  			break;
  		
  		case 1:
  			Var0 = { 1105.05f, -3010.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -103.32f };
  			break;
  		
  		case 2:
  			Var0 = { 1105.05f, -3008.75f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -77.76f };
  			break;
  		
  		case 3:
  			Var0 = { 1102.1f, -3002.1f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 102.96f };
  			break;
  		
  		case 4:
  			Var0 = { 1105.05f, -3002.1f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -101.88f };
  			break;
  		
  		case 5:
  			Var0 = { 1105.05f, -3000.65f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -81.36f };
  			break;
  		
  		case 6:
  			Var0 = { 1102.1f, -2994.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 103.32f };
  			break;
  		
  		case 7:
  			Var0 = { 1105.05f, -2994.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -109.8f };
  			break;
  		
  		case 8:
  			Var0 = { 1105.05f, -2992.65f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -84.96f };
  			break;
  	}
  	return Var0;
  }
  
  struct<6> func_83(int iParam0)
  {
  	return func_84(iParam0);
  }
  
  struct<6> func_84(int iParam0)
  {
  	struct<6> Var0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			Var0 = { 1105.22f, -3013.985f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 1:
  			Var0 = { 1104.105f, -3013.985f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 19:
  			Var0 = { 1105.22f, -3005.985f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 20:
  			Var0 = { 1104.105f, -3005.985f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 2:
  			Var0 = { 1102f, -3011.925f, -39.95f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 3:
  			Var0 = { 1103f, -3010f, -38.125f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 4:
  			Var0 = { 1103.213f, -3013.483f, -39.03f };
  			Var0.f_3 = { 0f, 0f, 31.32f };
  			break;
  		
  		case 5:
  			Var0.f_3 = { 0f, 0f, 0f };
  			Var0 = { 1101.408f, -3012.32f, -38.45339f };
  			break;
  		
  		case 6:
  			Var0.f_3 = { 0f, 0f, 0f };
  			Var0 = { 1103.037f, -3012.318f, -39.99874f };
  			break;
  		
  		case 7:
  			Var0 = { 1105.645f, -3012.04f, -39.542f };
  			Var0.f_3 = { 0f, 0f, -86.04f };
  			break;
  		
  		case 8:
  			Var0.f_3 = { 0f, 0f, 0f };
  			Var0 = { 1104.063f, -3012.368f, -39.99875f };
  			break;
  		
  		case 9:
  			Var0 = { 1105.665f, -3012.334f, -38.50835f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 10:
  			Var0 = { 1102.504f, -3012.35f, -39.341f };
  			Var0.f_3 = { 0f, 0f, -96.48f };
  			break;
  		
  		case 11:
  			Var0 = { 1102.928f, -3012.693f, -39.99945f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 12:
  			Var0 = { 1102.942f, -3011.315f, -37.99945f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 61:
  			Var0 = { 1101.994f, -3012.878f, -39.95f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 62:
  			Var0 = { 1103.152f, -3013.032f, -38.24946f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 13:
  			Var0 = { 1102.465f, -3009.515f, -39.341f };
  			Var0.f_3 = { 0f, 0f, -12.96f };
  			break;
  		
  		case 14:
  			Var0 = { 1102.917f, -3009.525f, -39.99945f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 15:
  			Var0 = { 1102.922f, -3010.887f, -37.99945f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 63:
  			Var0 = { 1101.682f, -3009.227f, -39.95f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 64:
  			Var0 = { 1102.453f, -3008.51f, -38.2f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 16:
  			Var0 = { 1104.684f, -3009.561f, -39.341f };
  			Var0.f_3 = { 0f, 0f, 169.56f };
  			break;
  		
  		case 17:
  			Var0 = { 1104.34f, -3008.698f, -39.99945f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 18:
  			Var0 = { 1104.344f, -3009.618f, -37.98172f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 65:
  			Var0 = { 1105.459f, -3009.793f, -39.95f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 66:
  			Var0 = { 1104.783f, -3010.433f, -38.2f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 44:
  			Var0 = { 1104.025f, -3007.316f, -39.9987f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 21:
  			Var0 = { 1103.562f, -3014f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 22:
  			Var0 = { 1103.562f, -3014f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 23:
  			Var0 = { 1102.1f, -3010.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 115.92f };
  			break;
  		
  		case 24:
  			Var0 = { 1105.05f, -3010.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -103.32f };
  			break;
  		
  		case 25:
  			Var0 = { 1105.05f, -3008.75f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -77.76f };
  			break;
  		
  		case 26:
  			Var0 = { 1102.05f, -3011.717f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 27:
  			Var0 = { 1102.05f, -3012.653f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 28:
  			Var0 = { 1105.05f, -3012.653f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 29:
  			Var0 = { 1105.05f, -3011.717f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 30:
  			Var0 = { 1102.1f, -3002.1f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 102.96f };
  			break;
  		
  		case 31:
  			Var0 = { 1105.05f, -3002.1f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -101.88f };
  			break;
  		
  		case 32:
  			Var0 = { 1105.05f, -3000.65f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -81.36f };
  			break;
  		
  		case 33:
  			Var0 = { 1102.05f, -3003.592f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 34:
  			Var0 = { 1102.05f, -3004.541f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 35:
  			Var0 = { 1105.05f, -3004.541f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 36:
  			Var0 = { 1105.05f, -3003.592f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 37:
  			Var0 = { 1102.1f, -2994.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 103.32f };
  			break;
  		
  		case 38:
  			Var0 = { 1105.05f, -2994.2f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -109.8f };
  			break;
  		
  		case 39:
  			Var0 = { 1105.05f, -2992.65f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -84.96f };
  			break;
  		
  		case 40:
  			Var0 = { 1102.05f, -2995.582f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 41:
  			Var0 = { 1102.05f, -2996.501f, -39.35f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 42:
  			Var0 = { 1105.05f, -2996.501f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 43:
  			Var0 = { 1105.05f, -2995.582f, -39.35f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 45:
  			Var0 = { 1101f, -3011.9f, -39.95f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 46:
  			Var0 = { 1102f, -3010f, -38.115f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 47:
  			Var0 = { 1105.174f, -3004.16f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 48:
  			Var0 = { 1105.175f, -3005.818f, -37.91948f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 49:
  			Var0 = { 1106.6f, -3000.847f, -39.89988f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 50:
  			Var0 = { 1106.601f, -3002.171f, -37.89988f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 51:
  			Var0 = { 1101.95f, -3011.9f, -39.2f };
  			Var0.f_3 = { 0f, 0f, 49.5f };
  			break;
  		
  		case 52:
  			Var0 = { 1101.95f, -3010f, -39.2f };
  			Var0.f_3 = { 0f, 0f, 130.32f };
  			break;
  		
  		case 53:
  			Var0 = { 1105.16f, -3009.06f, -39.2f };
  			Var0.f_3 = { 0f, 0f, -44.64f };
  			break;
  		
  		case 54:
  			Var0 = { 1102.476f, -3008.508f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 55:
  			Var0 = { 1099f, -3008.508f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 56:
  			Var0 = { 1103.593f, -3008.27f, -39.9987f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 57:
  			Var0 = { 1103.565f, -3014f, -39.988f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 58:
  			Var0 = { 1103.565f, -3014f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 59:
  			Var0 = { 1103.565f, -3014f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 60:
  			Var0 = { 1103.55f, -3014f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 67:
  			Var0 = { 1103.55f, -3013.762f, -40f };
  			Var0.f_3 = { 0f, 0f, 180f };
  			break;
  		
  		case 68:
  			Var0 = { 1103.55f, -3006.186f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 71:
  		case 69:
  		case 70:
  		case 73:
  		case 72:
  		case 74:
  			Var0 = { 1103.6f, -3013.933f, -40f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  	}
  	return Var0;
  }
  
  int func_85(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			*uParam1 = { 1103.562f, -3014f, -40f };
  			uParam1->f_3 = { 0f, 0f, 0f };
  			return 1;
  		
  		case 1:
  			*uParam1 = { 1103.562f, -3006f, -40f };
  			uParam1->f_3 = { 0f, 0f, 0f };
  			return 1;
  		
  		case 2:
  			*uParam1 = { 1103.562f, -2998f, -40f };
  			uParam1->f_3 = { 0f, 0f, 0f };
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_86(int iParam0)
  {
  	if (iParam0 != func_87())
  	{
  		if ((unk_0xCE990E643CD9D0E5(Global_1590682[iParam0 /*883*/].f_274.f_259, 3) || unk_0xCE990E643CD9D0E5(Global_1590682[iParam0 /*883*/].f_274.f_259, 4)) || unk_0xCE990E643CD9D0E5(Global_1590682[iParam0 /*883*/].f_274.f_259, 5))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_87()
  {
  	return -1;
  }
  
  Vector3 func_88(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  			return 1060f, -2990f, -35f;
  			break;
  		
  		case 2:
  			return 1060f, -2990f, -35f;
  			break;
  		
  		case 3:
  			return 974.9542f, -3000.091f, -35f;
  			break;
  		
  		case 6:
  			return -1586.36f, -566.6f, 106.17f;
  			break;
  		
  		case 7:
  			return -1389.87f, -465.17f, 82.68f;
  			break;
  		
  		case 8:
  			return -145.81f, -590.2f, 171.13f;
  			break;
  		
  		case 9:
  			return -62.49f, -823.55f, 288.74f;
  			break;
  		
  		case 4:
  			return 1102.515f, -3158.888f, -38.5186f;
  			break;
  		
  		case 5:
  			return 1005.861f, -3156.162f, -39.907f;
  			break;
  		
  		case 10:
  			return 1103.562f, -3000f, -40f;
  			break;
  		
  		case 11:
  			return 938.3077f, -3196.112f, -100f;
  			break;
  		
  		case 12:
  			return -1266.802f, -3014.836f, -49.4895f;
  			break;
  		
  		case 13:
  			return 520.0001f, 4750f, -70f;
  			break;
  		
  		case 14:
  			return 345.0041f, 4842.001f, -59.9997f;
  			break;
  		
  		case 15:
  			return -1604.664f, -3012.583f, -79.9999f;
  			break;
  		
  		case 16:
  			return -1421.015f, -3012.587f, -80f;
  			break;
  		
  		case 17:
  			if (func_89() == 0)
  			{
  				return 205f, 5180f, -90f;
  			}
  			else
  			{
  				return 170f, 5190f, 10f;
  			}
  			break;
  		
  		default:
  			return 0f, 0f, -200f;
  			break;
  	}
  	return 0f, 0f, -200f;
  }
  
  int func_89()
  {
  	return func_90(unk_0x460153A63B9477BC());
  }
  
  var func_90(int iParam0)
  {
  	return unk_0x039D1DD18D3EA3F3(Global_2425869[iParam0 /*443*/].f_314.f_3, 28, 31);
  }
  
  int func_91(int iParam0)
  {
  	return func_72(iParam0, 0, 0);
  }
  
  int func_92(int iParam0)
  {
  	switch (iParam0)
  	{
  		case -1:
  			return 6;
  			break;
  		
  		case 0:
  			return 0;
  			break;
  		
  		case 1:
  			return 0;
  			break;
  		
  		case 2:
  			return 0;
  			break;
  		
  		case 3:
  			return 0;
  			break;
  		
  		case 4:
  			return 0;
  			break;
  		
  		case 5:
  			return 0;
  			break;
  		
  		case 6:
  			return 0;
  			break;
  		
  		case 50:
  			return 0;
  			break;
  		
  		case 7:
  			return 1;
  			break;
  		
  		case 8:
  			return 1;
  			break;
  		
  		case 9:
  			return 1;
  			break;
  		
  		case 10:
  			return 1;
  			break;
  		
  		case 11:
  			return 1;
  			break;
  		
  		case 12:
  			return 1;
  			break;
  		
  		case 13:
  			return 1;
  			break;
  		
  		case 14:
  			return 1;
  			break;
  		
  		case 15:
  			return 1;
  			break;
  		
  		case 16:
  			return 1;
  			break;
  		
  		case 17:
  			return 1;
  			break;
  		
  		case 18:
  			return 1;
  			break;
  		
  		case 19:
  			return 1;
  			break;
  		
  		case 20:
  			return 1;
  			break;
  		
  		case 21:
  			return 1;
  			break;
  		
  		case 22:
  			return 2;
  			break;
  		
  		case 23:
  			return 2;
  			break;
  		
  		case 24:
  			return 2;
  			break;
  		
  		case 25:
  			return 2;
  			break;
  		
  		case 26:
  			return 2;
  			break;
  		
  		case 27:
  			return 2;
  			break;
  		
  		case 28:
  			return 3;
  			break;
  		
  		case 29:
  			return 3;
  			break;
  		
  		case 30:
  			return 3;
  			break;
  		
  		case 31:
  			return 3;
  			break;
  		
  		case 32:
  			return 3;
  			break;
  		
  		case 33:
  			return 3;
  			break;
  		
  		case 34:
  			return 3;
  			break;
  		
  		case 35:
  			return 3;
  			break;
  		
  		case 36:
  			return 3;
  			break;
  		
  		case 37:
  			return 3;
  			break;
  		
  		case 38:
  			return 3;
  			break;
  		
  		case 39:
  			return 4;
  			break;
  		
  		case 40:
  			return 4;
  			break;
  		
  		case 41:
  			return 4;
  			break;
  		
  		case 42:
  			return 4;
  			break;
  		
  		case 43:
  			return 4;
  			break;
  		
  		case 44:
  			return 4;
  			break;
  		
  		case 45:
  			return 5;
  			break;
  		
  		case 46:
  			return 3;
  			break;
  		
  		case 47:
  			return 3;
  			break;
  		
  		case 48:
  			return 3;
  			break;
  		
  		case 49:
  			return 3;
  			break;
  		
  		case 52:
  			return 3;
  			break;
  		
  		case 51:
  			return 1;
  			break;
  		
  		case 53:
  			return 3;
  			break;
  	}
  	return 6;
  }
  
  bool func_93()
  {
  	return Global_99007.f_351 > 0;
  }
  
  var func_94()
  {
  	var uVar0;
  	
  	func_104(&uVar0, unk_0x1D3A3697182AD8B3());
  	func_103(&uVar0, unk_0x81F2E25F8C019191());
  	func_102(&uVar0, unk_0x1F596C965B00E290());
  	func_97(&uVar0, unk_0x371CFD525753F70C());
  	func_96(&uVar0, unk_0xF225116F449A5CC6());
  	func_95(&uVar0, unk_0x2E48CFA70ABFC06A());
  	return uVar0;
  }
  
  void func_95(var uParam0, int iParam1)
  {
  	if (iParam1 <= 0)
  	{
  		return;
  	}
  	if (iParam1 > 2043 || iParam1 < 1979)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 2080374784);
  	if (iParam1 < 2011)
  	{
  		*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT((2011 - iParam1), 26));
  		*uParam0 |= -2147483648;
  	}
  	else
  	{
  		*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT((iParam1 - 2011), 26));
  		*uParam0 = (*uParam0 - *uParam0 & -2147483648);
  	}
  }
  
  void func_96(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 > 11)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 15);
  	*uParam0 = (*uParam0 || iParam1);
  }
  
  void func_97(var uParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = func_101(*uParam0);
  	iVar1 = func_99(*uParam0);
  	if (iParam1 < 1 || iParam1 > func_98(iVar0, iVar1))
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 496);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 4));
  }
  
  int func_98(int iParam0, int iParam1)
  {
  	if (iParam1 < 0)
  	{
  		iParam1 = 0;
  	}
  	switch (iParam0)
  	{
  		case 0:
  		case 2:
  		case 4:
  		case 6:
  		case 7:
  		case 9:
  		case 11:
  			return 31;
  			break;
  		
  		case 3:
  		case 5:
  		case 8:
  		case 10:
  			return 30;
  			break;
  		
  		case 1:
  			if ((iParam1 % 4) == 0)
  			{
  				if ((iParam1 % 100) != 0)
  				{
  					return 29;
  				}
  				else if ((iParam1 % 400) == 0)
  				{
  					return 29;
  				}
  			}
  			return 28;
  			break;
  	}
  	return 30;
  }
  
  var func_99(int iParam0)
  {
  	return (SYSTEM::SHIFT_RIGHT(iParam0, 26) & 31 * func_100(unk_0xCE990E643CD9D0E5(iParam0, 31), -1, 1)) + 2011;
  }
  
  int func_100(bool bParam0, int iParam1, int iParam2)
  {
  	if (bParam0)
  	{
  		return iParam1;
  	}
  	return iParam2;
  }
  
  int func_101(var uParam0)
  {
  	return uParam0 & 15;
  }
  
  void func_102(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 > 24)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 15872);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 9));
  }
  
  void func_103(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 >= 60)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 1032192);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 14));
  }
  
  void func_104(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 >= 60)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 66060288);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 20));
  }
  
  int func_105()
  {
  	func_56();
  	return Global_111858.f_2359.f_539.f_4321;
  }
  
  void func_106(int iParam0)
  {
  	var uVar0;
  	char cVar1[24];
  	
  	if (unk_0x11E5DE894D6A8A5F() || unk_0xC6C08C02733D02C8())
  	{
  		uVar0 = iParam0;
  		unk_0xC4D6DAEA1F5E94FE(9, &uVar0, 1, 1);
  	}
  	else if (unk_0x59ED414969A48197() || unk_0xDCA0815D900F27F8())
  	{
  		StringCopy(&cVar1, "SPRC_", 24);
  		StringIntConCat(&cVar1, iParam0, 24);
  		StringConCat(&cVar1, "_STR", 24);
  		unk_0x0DB4750EF9385C97(9, &cVar1);
  	}
  }
  
  void func_107(char* sParam0, var uParam1, int iParam2)
  {
  	if (!unk_0x7BCC91F3C1CF24E8(&Global_96025))
  	{
  		unk_0x0EBA6E775E8E6AF8(&Global_96025, 0, 0, 0, 1, 0);
  		StringCopy(&Global_96025, "", 64);
  	}
  	StringCopy(&Global_96025, sParam0, 64);
  	unk_0x1FCF66376799FB94(sParam0, uParam1, iParam2, func_108(0));
  }
  
  bool func_108(bool bParam0)
  {
  	if (!bParam0 && unk_0x7B70881748D166CD(joaat("benchmark")) > 0)
  	{
  		return 1;
  	}
  	return unk_0xCE990E643CD9D0E5(Global_77081, 0);
  }
  
  struct<2> func_109(int iParam0)
  {
  	struct<2> Var0;
  	
  	StringCopy(&Var0, "", 8);
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var0, "ABI1", 8);
  			break;
  		
  		case 1:
  			StringCopy(&Var0, "ABI2", 8);
  			break;
  		
  		case 2:
  			StringCopy(&Var0, "BA1", 8);
  			break;
  		
  		case 3:
  			StringCopy(&Var0, "BA2", 8);
  			break;
  		
  		case 4:
  			StringCopy(&Var0, "BA3", 8);
  			break;
  		
  		case 5:
  			StringCopy(&Var0, "BA3A", 8);
  			break;
  		
  		case 6:
  			StringCopy(&Var0, "BA3C", 8);
  			break;
  		
  		case 7:
  			StringCopy(&Var0, "BA4", 8);
  			break;
  		
  		case 8:
  			StringCopy(&Var0, "DRE1", 8);
  			break;
  		
  		case 9:
  			StringCopy(&Var0, "EPS1", 8);
  			break;
  		
  		case 10:
  			StringCopy(&Var0, "EPS2", 8);
  			break;
  		
  		case 11:
  			StringCopy(&Var0, "EPS3", 8);
  			break;
  		
  		case 12:
  			StringCopy(&Var0, "EPS4", 8);
  			break;
  		
  		case 13:
  			StringCopy(&Var0, "EPS5", 8);
  			break;
  		
  		case 14:
  			StringCopy(&Var0, "EPS6", 8);
  			break;
  		
  		case 15:
  			StringCopy(&Var0, "EPS7", 8);
  			break;
  		
  		case 16:
  			StringCopy(&Var0, "EPS8", 8);
  			break;
  		
  		case 17:
  			StringCopy(&Var0, "EXT1", 8);
  			break;
  		
  		case 18:
  			StringCopy(&Var0, "EXT2", 8);
  			break;
  		
  		case 19:
  			StringCopy(&Var0, "EXT3", 8);
  			break;
  		
  		case 20:
  			StringCopy(&Var0, "EXT4", 8);
  			break;
  		
  		case 21:
  			StringCopy(&Var0, "FAN1", 8);
  			break;
  		
  		case 22:
  			StringCopy(&Var0, "FAN2", 8);
  			break;
  		
  		case 23:
  			StringCopy(&Var0, "FAN3", 8);
  			break;
  		
  		case 24:
  			StringCopy(&Var0, "HAO1", 8);
  			break;
  		
  		case 25:
  			StringCopy(&Var0, "HUN1", 8);
  			break;
  		
  		case 26:
  			StringCopy(&Var0, "HUN2", 8);
  			break;
  		
  		case 27:
  			StringCopy(&Var0, "JOS1", 8);
  			break;
  		
  		case 28:
  			StringCopy(&Var0, "JOS2", 8);
  			break;
  		
  		case 29:
  			StringCopy(&Var0, "JOS3", 8);
  			break;
  		
  		case 30:
  			StringCopy(&Var0, "JOS4", 8);
  			break;
  		
  		case 31:
  			StringCopy(&Var0, "MAU1", 8);
  			break;
  		
  		case 32:
  			StringCopy(&Var0, "MIN1", 8);
  			break;
  		
  		case 33:
  			StringCopy(&Var0, "MIN2", 8);
  			break;
  		
  		case 34:
  			StringCopy(&Var0, "MIN3", 8);
  			break;
  		
  		case 35:
  			StringCopy(&Var0, "MRS1", 8);
  			break;
  		
  		case 36:
  			StringCopy(&Var0, "MRS2", 8);
  			break;
  		
  		case 37:
  			StringCopy(&Var0, "NI1", 8);
  			break;
  		
  		case 38:
  			StringCopy(&Var0, "NI1A", 8);
  			break;
  		
  		case 39:
  			StringCopy(&Var0, "NI1B", 8);
  			break;
  		
  		case 40:
  			StringCopy(&Var0, "NI1C", 8);
  			break;
  		
  		case 41:
  			StringCopy(&Var0, "NI1D", 8);
  			break;
  		
  		case 42:
  			StringCopy(&Var0, "NI2", 8);
  			break;
  		
  		case 43:
  			StringCopy(&Var0, "NI3", 8);
  			break;
  		
  		case 44:
  			StringCopy(&Var0, "OME1", 8);
  			break;
  		
  		case 45:
  			StringCopy(&Var0, "OME2", 8);
  			break;
  		
  		case 46:
  			StringCopy(&Var0, "PA1", 8);
  			break;
  		
  		case 47:
  			StringCopy(&Var0, "PA2", 8);
  			break;
  		
  		case 48:
  			StringCopy(&Var0, "PA3", 8);
  			break;
  		
  		case 49:
  			StringCopy(&Var0, "PA3A", 8);
  			break;
  		
  		case 50:
  			StringCopy(&Var0, "PA3B", 8);
  			break;
  		
  		case 51:
  			StringCopy(&Var0, "PA4", 8);
  			break;
  		
  		case 52:
  			StringCopy(&Var0, "RAM1", 8);
  			break;
  		
  		case 53:
  			StringCopy(&Var0, "RAM2", 8);
  			break;
  		
  		case 54:
  			StringCopy(&Var0, "RAM3", 8);
  			break;
  		
  		case 55:
  			StringCopy(&Var0, "RAM4", 8);
  			break;
  		
  		case 56:
  			StringCopy(&Var0, "RAM5", 8);
  			break;
  		
  		case 57:
  			StringCopy(&Var0, "SAS1", 8);
  			break;
  		
  		case 58:
  			StringCopy(&Var0, "TON1", 8);
  			break;
  		
  		case 59:
  			StringCopy(&Var0, "TON2", 8);
  			break;
  		
  		case 60:
  			StringCopy(&Var0, "TON3", 8);
  			break;
  		
  		case 61:
  			StringCopy(&Var0, "TON4", 8);
  			break;
  		
  		case 62:
  			StringCopy(&Var0, "TON5", 8);
  			break;
  		
  		default:
  			break;
  	}
  	return Var0;
  }
  
  void func_110(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_111(uParam1, "Abigail1", func_9(iParam0), 0, 0, 4, -1604.668f, 5239.1f, 3.01f, 66, "", 109, 0, "ambient_Diving", 0, 0, 1, 4, 1, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 1:
  			func_111(uParam1, "Abigail2", func_9(iParam0), 0, 0, 4, -1592.84f, 5214.04f, 3.01f, 400, "", 110, 0, "", 0, 0, -1, 4, 1, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 2:
  			func_111(uParam1, "Barry1", func_9(iParam0), 0, 1, 4, 190.26f, -956.35f, 29.63f, 381, "", 74, 0, "", 0, 1, -1, 4, 1, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 3:
  			func_111(uParam1, "Barry2", func_9(iParam0), 0, 1, 4, 190.26f, -956.35f, 29.63f, 381, "", -1, 0, "", 0, 1, -1, 4, 4, 0, 2359, func_112(iParam0), 1, 1);
  			break;
  		
  		case 4:
  			func_111(uParam1, "Barry3", func_9(iParam0), 0, 1, 4, 414f, -761f, 29f, 381, "", -1, 0, "", 164, 1, -1, 0, 2, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 5:
  			func_111(uParam1, "Barry3A", func_9(iParam0), 1, 1, 0, 1199.27f, -1255.63f, 34.23f, 381, "BARSTASH", 84, 0, "", 166, 0, 7, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 6:
  			func_111(uParam1, "Barry3C", func_9(iParam0), 3, 1, 0, -468.9f, -1713.06f, 18.21f, 381, "", 84, 0, "", 166, 0, 7, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 7:
  			func_111(uParam1, "Barry4", func_9(iParam0), 0, 1, 4, 237.65f, -385.41f, 44.4f, 381, "", 85, 0, "postRC_Barry4", 0, 0, -1, 4, 2, 800, 2000, func_112(iParam0), 0, 0);
  			break;
  		
  		case 8:
  			func_111(uParam1, "Dreyfuss1", func_9(iParam0), 0, 2, 4, -1458.97f, 485.99f, 115.38f, 66, "LETTERS_HINT", 106, 0, "", 0, 0, -1, 4, 2, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 9:
  			func_111(uParam1, "Epsilon1", func_9(iParam0), 0, 3, 4, -1622.89f, 4204.87f, 83.3f, 66, "", 86, 0, "", 0, 1, 10, 4, 1, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 10:
  			func_111(uParam1, "Epsilon2", func_9(iParam0), 0, 3, 4, 242.7f, 362.7f, 104.74f, 206, "", 87, 16, "", 0, 0, 11, 4, 1, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 11:
  			func_111(uParam1, "Epsilon3", func_9(iParam0), 0, 3, 4, 1835.53f, 4705.86f, 38.1f, 206, "", 88, 16, "epsCars", 0, 0, 12, 4, 1, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 12:
  			func_111(uParam1, "Epsilon4", func_9(iParam0), 0, 3, 4, 1826.13f, 4698.88f, 38.92f, 206, "", 90, 16, "postRC_Epsilon4", 0, 0, 13, 4, 1, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 13:
  			func_111(uParam1, "Epsilon5", func_9(iParam0), 0, 3, 4, 637.02f, 119.7093f, 89.5f, 206, "", 89, 16, "epsRobes", 0, 0, 14, 4, 1, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 14:
  			func_111(uParam1, "Epsilon6", func_9(iParam0), 0, 3, 4, -2892.93f, 3192.37f, 11.66f, 206, "", 93, 0, "", 0, 0, 15, 4, 1, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 15:
  			func_111(uParam1, "Epsilon7", func_9(iParam0), 0, 3, 4, 524.43f, 3079.82f, 39.48f, 206, "", -1, 16, "epsDesert", 0, 0, 16, 4, 1, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 16:
  			func_111(uParam1, "Epsilon8", func_9(iParam0), 0, 3, 4, -697.75f, 45.38f, 43.03f, 206, "", 94, 16, "epsilonTract", 0, 0, -1, 4, 1, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 17:
  			func_111(uParam1, "Extreme1", func_9(iParam0), 0, 4, 4, -188.22f, 1296.1f, 302.86f, 66, "", -1, 0, "", 4, 1, 18, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 18:
  			func_111(uParam1, "Extreme2", func_9(iParam0), 0, 4, 4, -954.19f, -2760.05f, 14.64f, 382, "", 96, 0, "", 171, 0, 19, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 19:
  			func_111(uParam1, "Extreme3", func_9(iParam0), 0, 4, 4, -63.8f, -809.5f, 321.8f, 382, "", 97, 0, "", 0, 0, 20, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 20:
  			func_111(uParam1, "Extreme4", func_9(iParam0), 0, 4, 4, 1731.41f, 96.96f, 170.39f, 382, "", 98, 16, "", 0, 0, -1, 4, 2, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 21:
  			func_111(uParam1, "Fanatic1", func_9(iParam0), 0, 5, 4, -1877.82f, -440.649f, 45.05f, 405, "", 74, 0, "", 0, 1, -1, 4, 1, 700, 2000, func_112(iParam0), 1, 0);
  			break;
  		
  		case 22:
  			func_111(uParam1, "Fanatic2", func_9(iParam0), 0, 5, 4, 809.66f, 1279.76f, 360.49f, 405, "", -1, 0, "", 0, 1, -1, 4, 4, 700, 2000, func_112(iParam0), 1, 0);
  			break;
  		
  		case 23:
  			func_111(uParam1, "Fanatic3", func_9(iParam0), 0, 5, 4, -915.6f, 6139.2f, 5.5f, 405, "", -1, 0, "", 0, 1, -1, 4, 2, 700, 2000, func_112(iParam0), 0, 1);
  			break;
  		
  		case 24:
  			func_111(uParam1, "Hao1", func_9(iParam0), 0, 6, 4, -72.29f, -1260.63f, 28.14f, 66, "", -1, 0, "controller_Races", 13, 1, -1, 4, 2, 2000, 500, func_112(iParam0), 0, 1);
  			break;
  		
  		case 25:
  			func_111(uParam1, "Hunting1", func_9(iParam0), 0, 7, 4, 1804.32f, 3931.33f, 32.82f, 66, "", -1, 0, "", 174, 1, 26, 4, 4, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 26:
  			func_111(uParam1, "Hunting2", func_9(iParam0), 0, 7, 4, -684.17f, 5839.16f, 16.09f, 384, "", 99, 0, "", 7, 0, -1, 4, 4, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 27:
  			func_111(uParam1, "Josh1", func_9(iParam0), 0, 8, 4, -1104.93f, 291.25f, 64.3f, 66, "", -1, 0, "forSaleSigns", 0, 1, 28, 4, 4, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 28:
  			func_111(uParam1, "Josh2", func_9(iParam0), 0, 8, 4, 565.39f, -1772.88f, 29.77f, 385, "", 105, 0, "", 0, 0, 29, 4, 4, 0, 2359, func_112(iParam0), 1, 1);
  			break;
  		
  		case 29:
  			func_111(uParam1, "Josh3", func_9(iParam0), 0, 8, 4, 565.39f, -1772.88f, 29.77f, 385, "", -1, 16, "", 0, 0, 30, 4, 4, 0, 2359, func_112(iParam0), 1, 1);
  			break;
  		
  		case 30:
  			func_111(uParam1, "Josh4", func_9(iParam0), 0, 8, 4, -1104.93f, 291.25f, 64.3f, 385, "", -1, 36, "", 0, 0, -1, 4, 4, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 31:
  			func_111(uParam1, "Maude1", func_9(iParam0), 0, 9, 4, 2726.1f, 4145f, 44.3f, 66, "", -1, 0, "BailBond_Launcher", 0, 1, -1, 4, 4, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 32:
  			func_111(uParam1, "Minute1", func_9(iParam0), 0, 10, 4, 327.85f, 3405.7f, 35.73f, 66, "", -1, 0, "", 0, 1, 33, 4, 4, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 33:
  			func_111(uParam1, "Minute2", func_9(iParam0), 0, 10, 4, 18f, 4527f, 105f, 386, "", -1, 10, "", 0, 0, 34, 4, 4, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 34:
  			func_111(uParam1, "Minute3", func_9(iParam0), 0, 10, 4, -303.82f, 6211.29f, 31.05f, 386, "", -1, 10, "", 0, 0, -1, 4, 4, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 35:
  			func_111(uParam1, "MrsPhilips1", func_9(iParam0), 0, 11, 4, 1972.59f, 3816.43f, 32.42f, 66, "", -1, 0, "ambient_MrsPhilips", 0, 1, -1, 4, 4, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 36:
  			func_111(uParam1, "MrsPhilips2", func_9(iParam0), 0, 11, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 0, 1, -1, 4, 4, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 37:
  			func_111(uParam1, "Nigel1", func_9(iParam0), 0, 12, 4, -1097.16f, 790.01f, 164.52f, 66, "", -1, 0, "", 177, 1, -1, 1, 4, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 38:
  			func_111(uParam1, "Nigel1A", func_9(iParam0), 0, 12, 1, -558.65f, 284.49f, 90.86f, 149, "NIGITEMS", 100, 0, "", 0, 0, 42, 4, 4, 0, 2359, func_112(iParam0), 1, 1);
  			break;
  		
  		case 39:
  			func_111(uParam1, "Nigel1B", func_9(iParam0), 0, 12, 1, -1034.15f, 366.08f, 80.11f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_112(iParam0), 1, 1);
  			break;
  		
  		case 40:
  			func_111(uParam1, "Nigel1C", func_9(iParam0), 0, 12, 1, -623.91f, -266.17f, 37.76f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_112(iParam0), 1, 1);
  			break;
  		
  		case 41:
  			func_111(uParam1, "Nigel1D", func_9(iParam0), 0, 12, 1, -1096.85f, 67.68f, 52.95f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_112(iParam0), 1, 1);
  			break;
  		
  		case 42:
  			func_111(uParam1, "Nigel2", func_9(iParam0), 0, 12, 4, -1310.7f, -640.22f, 26.54f, 149, "", -1, 8, "", 0, 0, 43, 4, 4, 0, 2359, func_112(iParam0), 1, 1);
  			break;
  		
  		case 43:
  			func_111(uParam1, "Nigel3", func_9(iParam0), 0, 12, 4, -44.75f, -1288.67f, 28.21f, 149, "", -1, 16, "postRC_Nigel3", 0, 0, -1, 4, 4, 0, 2359, func_112(iParam0), 1, 1);
  			break;
  		
  		case 44:
  			func_111(uParam1, "Omega1", func_9(iParam0), 0, 13, 4, 2468.51f, 3437.39f, 49.9f, 66, "", -1, 0, "spaceshipParts", 0, 1, 45, 4, 2, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 45:
  			func_111(uParam1, "Omega2", func_9(iParam0), 0, 13, 4, 2319.44f, 2583.58f, 46.76f, 387, "", 107, 0, "", 0, 0, -1, 4, 2, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 46:
  			func_111(uParam1, "Paparazzo1", func_9(iParam0), 0, 14, 4, -149.75f, 285.81f, 93.67f, 66, "", -1, 0, "", 0, 1, 47, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 47:
  			func_111(uParam1, "Paparazzo2", func_9(iParam0), 0, 14, 4, -70.71f, 301.43f, 106.79f, 389, "", -1, 8, "", 0, 0, 48, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 48:
  			func_111(uParam1, "Paparazzo3", func_9(iParam0), 0, 14, 4, -257.22f, 292.85f, 90.63f, 389, "", -1, 8, "", 183, 1, -1, 2, 2, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 49:
  			func_111(uParam1, "Paparazzo3A", func_9(iParam0), 0, 14, 2, 305.52f, 157.19f, 102.94f, 389, "PAPPHOTO", 102, 0, "", 0, 0, 51, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 50:
  			func_111(uParam1, "Paparazzo3B", func_9(iParam0), 0, 14, 2, 1040.96f, -534.42f, 60.17f, 389, "", 102, 0, "", 0, 0, 51, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 51:
  			func_111(uParam1, "Paparazzo4", func_9(iParam0), 0, 14, 4, -484.2f, 229.68f, 82.21f, 389, "", -1, 8, "", 0, 1, -1, 4, 2, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 52:
  			func_111(uParam1, "Rampage1", func_9(iParam0), 0, 15, 4, 908f, 3643.7f, 32.2f, 66, "", -1, 0, "", 0, 1, 54, 4, 4, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 54:
  			func_111(uParam1, "Rampage3", func_9(iParam0), 0, 15, 4, 465.1f, -1849.3f, 27.8f, 84, "", -1, 0, "", 0, 1, 55, 4, 4, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 55:
  			func_111(uParam1, "Rampage4", func_9(iParam0), 0, 15, 4, -161f, -1669.7f, 33f, 84, "", -1, 0, "", 0, 0, 56, 4, 4, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 56:
  			func_111(uParam1, "Rampage5", func_9(iParam0), 0, 15, 4, -1298.2f, 2504.14f, 21.09f, 84, "", -1, 0, "", 0, 0, 53, 4, 4, 0, 2359, func_112(iParam0), 0, 0);
  			break;
  		
  		case 53:
  			func_111(uParam1, "Rampage2", func_9(iParam0), 0, 15, 4, 1181.5f, -400.1f, 67.5f, 84, "", -1, 0, "rampage_controller", 0, 0, -1, 4, 4, 0, 2359, func_112(iParam0), 1, 0);
  			break;
  		
  		case 57:
  			func_111(uParam1, "TheLastOne", func_9(iParam0), 0, 16, 4, -1298.98f, 4640.16f, 105.67f, 66, "", 133, 1, "", 0, 1, -1, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 58:
  			func_111(uParam1, "Tonya1", func_9(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 66, "AM_H_RCFS", -1, 0, "ambient_TonyaCall", 24, 1, 59, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 59:
  			func_111(uParam1, "Tonya2", func_9(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 388, "", -1, 48, "ambient_Tonya", 185, 0, 60, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 60:
  			func_111(uParam1, "Tonya3", func_9(iParam0), 0, 17, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 187, 0, 61, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 61:
  			func_111(uParam1, "Tonya4", func_9(iParam0), 0, 17, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 0, 0, 62, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		case 62:
  			func_111(uParam1, "Tonya5", func_9(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 388, "", -1, 48, "", 0, 0, -1, 4, 2, 0, 2359, func_112(iParam0), 0, 1);
  			break;
  		
  		default:
  			break;
  	}
  }
  
  void func_111(var uParam0, char* sParam1, struct<2> Param2, int iParam3, int iParam4, int iParam5, struct<3> Param6, int iParam7, char* sParam8, int iParam9, int iParam10, char* sParam11, int iParam12, int iParam13, int iParam14, int iParam15, int iParam16, int iParam17, int iParam18, var uParam19, int iParam20, int iParam21)
  {
  	uParam0->f_4 = iParam4;
  	*uParam0 = sParam1;
  	uParam0->f_1 = { Param2 };
  	uParam0->f_3 = iParam3;
  	uParam0->f_5 = iParam5;
  	uParam0->f_6 = { Param6 };
  	uParam0->f_9 = iParam7;
  	StringCopy(&(uParam0->f_10), sParam8, 16);
  	uParam0->f_14 = iParam9;
  	uParam0->f_15 = iParam10;
  	StringCopy(&(uParam0->f_16), sParam11, 24);
  	uParam0->f_22 = iParam12;
  	uParam0->f_23 = iParam13;
  	uParam0->f_24 = iParam14;
  	uParam0->f_25 = iParam15;
  	uParam0->f_26 = iParam16;
  	uParam0->f_27 = iParam17;
  	uParam0->f_28 = iParam18;
  	uParam0->f_29 = uParam19;
  	uParam0->f_30 = iParam20;
  	uParam0->f_31 = iParam21;
  }
  
  int func_112(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  			break;
  		
  		case 1:
  			return 0;
  			break;
  		
  		case 2:
  			return 1;
  			break;
  		
  		case 3:
  			return 1;
  			break;
  		
  		case 4:
  			return 0;
  			break;
  		
  		case 5:
  			return 1;
  			break;
  		
  		case 6:
  			return 1;
  			break;
  		
  		case 7:
  			return 0;
  			break;
  		
  		case 8:
  			return 1;
  			break;
  		
  		case 9:
  			return 0;
  			break;
  		
  		case 10:
  			return 0;
  			break;
  		
  		case 11:
  			return 0;
  			break;
  		
  		case 12:
  			return 1;
  			break;
  		
  		case 13:
  			return 0;
  			break;
  		
  		case 14:
  			return 1;
  			break;
  		
  		case 15:
  			return 0;
  			break;
  		
  		case 16:
  			return 1;
  			break;
  		
  		case 17:
  			return 1;
  			break;
  		
  		case 18:
  			return 1;
  			break;
  		
  		case 19:
  			return 1;
  			break;
  		
  		case 20:
  			return 1;
  			break;
  		
  		case 21:
  			return 1;
  			break;
  		
  		case 22:
  			return 1;
  			break;
  		
  		case 23:
  			return 1;
  			break;
  		
  		case 24:
  			return 1;
  			break;
  		
  		case 25:
  			return 1;
  			break;
  		
  		case 26:
  			return 1;
  			break;
  		
  		case 27:
  			return 0;
  			break;
  		
  		case 28:
  			return 1;
  			break;
  		
  		case 29:
  			return 1;
  			break;
  		
  		case 30:
  			return 1;
  			break;
  		
  		case 31:
  			return 0;
  			break;
  		
  		case 32:
  			return 1;
  			break;
  		
  		case 33:
  			return 1;
  			break;
  		
  		case 34:
  			return 1;
  			break;
  		
  		case 35:
  			return 0;
  			break;
  		
  		case 36:
  			return 0;
  			break;
  		
  		case 37:
  			return 0;
  			break;
  		
  		case 38:
  			return 1;
  			break;
  		
  		case 39:
  			return 1;
  			break;
  		
  		case 40:
  			return 1;
  			break;
  		
  		case 41:
  			return 1;
  			break;
  		
  		case 42:
  			return 1;
  			break;
  		
  		case 43:
  			return 1;
  			break;
  		
  		case 44:
  			return 0;
  			break;
  		
  		case 45:
  			return 0;
  			break;
  		
  		case 46:
  			return 1;
  			break;
  		
  		case 47:
  			return 1;
  			break;
  		
  		case 48:
  			return 0;
  			break;
  		
  		case 49:
  			return 1;
  			break;
  		
  		case 50:
  			return 1;
  			break;
  		
  		case 51:
  			return 1;
  			break;
  		
  		case 52:
  			return 1;
  			break;
  		
  		case 54:
  			return 1;
  			break;
  		
  		case 55:
  			return 1;
  			break;
  		
  		case 56:
  			return 1;
  			break;
  		
  		case 53:
  			return 1;
  			break;
  		
  		case 57:
  			return 1;
  			break;
  		
  		case 58:
  			return 1;
  			break;
  		
  		case 59:
  			return 1;
  			break;
  		
  		case 60:
  			return 1;
  			break;
  		
  		case 61:
  			return 1;
  			break;
  		
  		case 62:
  			return 1;
  			break;
  		
  		default:
  			break;
  	}
  	return 0;
  }
  
  int func_113(var* uParam0)
  {
  	int iVar0;
  	
  	if (func_142(&(uParam0->f_1)))
  	{
  		if (!unk_0x7BCC91F3C1CF24E8(&(uParam0->f_9)))
  		{
  			func_132(1);
  			func_130(uParam0, 1, func_131(*uParam0));
  		}
  		if (uParam0->f_27)
  		{
  			if (func_129(*uParam0))
  			{
  				while (!unk_0xEEB37DB9533AA764(unk_0x9B0761B4C3EB8BC7()))
  				{
  					func_143();
  					SYSTEM::WAIT(0);
  				}
  			}
  		}
  		func_114(*uParam0);
  		iVar0 = SYSTEM::START_NEW_SCRIPT_WITH_ARGS(&(uParam0->f_1), uParam0, 61, 37500);
  		unk_0x5F82526B41A5EBCE(&(uParam0->f_1));
  		if (unk_0x9893D61ACB9FB52A())
  		{
  			func_494("Initial cutscene loaded and passing to RC mission.");
  			unk_0x069C9C3DFF8867FE(iVar0);
  		}
  		else
  		{
  			func_494("Initial cutscene wasn't loaded in time to pass to RC mission.");
  			unk_0xA389D93286499741();
  		}
  		return 1;
  	}
  	return 0;
  }
  
  void func_114(int iParam0)
  {
  	struct<2> Var0;
  	
  	func_128();
  	if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  	{
  		unk_0x694113444F21E39F(unk_0x9B0761B4C3EB8BC7(), 32, 0);
  		unk_0x694113444F21E39F(unk_0x9B0761B4C3EB8BC7(), 250, 0);
  	}
  	if (func_127(iParam0))
  	{
  		unk_0x9EB88E485EDFD7EB(unk_0x9B0761B4C3EB8BC7(), 0);
  	}
  	unk_0xAF3D0236D181BE08(unk_0x460153A63B9477BC(), 1);
  	unk_0x5D52AA94798846BB(0, 1);
  	unk_0x5D52AA94798846BB(3, 1);
  	unk_0x5D52AA94798846BB(2, 1);
  	if (Global_42801 == 1)
  	{
  		if (func_126(unk_0x9B0761B4C3EB8BC7()))
  		{
  			func_117(unk_0x9B0761B4C3EB8BC7());
  		}
  	}
  	if (!func_164())
  	{
  		if (iParam0 < 63)
  		{
  			func_115(iParam0);
  			Var0 = { func_9(iParam0) };
  			unk_0x694F632EFD1F47D0(1, &Var0);
  		}
  	}
  }
  
  void func_115(int iParam0)
  {
  	if (iParam0 < 63)
  	{
  		func_116();
  		Global_77088 = iParam0;
  		Global_77087 = 0;
  		Global_77090 = 7;
  	}
  }
  
  void func_116()
  {
  	if (Global_77087 != 6)
  	{
  	}
  	if (Global_77092)
  	{
  		unk_0x610B4083B1F95914(15);
  		Global_77092 = 0;
  		Global_22550.f_8417 = 0;
  	}
  	Global_77087 = 6;
  	Global_77089 = -1;
  	Global_77088 = -1;
  }
  
  void func_117(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (iParam0 == 0)
  	{
  		return;
  	}
  	if (!unk_0xAE06B9E39EBDE049(iParam0))
  	{
  		return;
  	}
  	iVar0 = func_125(iParam0);
  	if (!iVar0 == -1)
  	{
  		iVar1 = Global_42588[iVar0 /*5*/];
  		func_120(1, iVar1, 1);
  		return;
  	}
  	iVar2 = func_119(iParam0);
  	if (iVar2 == -1)
  	{
  		return;
  	}
  	func_118(iVar2);
  }
  
  void func_118(int iParam0)
  {
  	if (iParam0 < 0 || iParam0 >= 5)
  	{
  		return;
  	}
  	if (!Global_42562[iParam0 /*5*/].f_1 == 0)
  	{
  		if (Global_42562[iParam0 /*5*/].f_1 == unk_0x9B0761B4C3EB8BC7())
  		{
  			Global_42799 = 0;
  		}
  	}
  	Global_42562[iParam0 /*5*/] = 13;
  	Global_42562[iParam0 /*5*/].f_1 = 0;
  	Global_42562[iParam0 /*5*/].f_2 = 0;
  	Global_42562[iParam0 /*5*/].f_3 = 0;
  	Global_42562[iParam0 /*5*/].f_4 = 0;
  	Global_42560 = (Global_42560 - 1);
  	if (Global_42560 < 0)
  	{
  		Global_42560 = 0;
  	}
  }
  
  int func_119(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 5)
  	{
  		if (Global_42562[iVar0 /*5*/].f_1 == iParam0)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  void func_120(int iParam0, int iParam1, int iParam2)
  {
  	func_121(iParam0, iParam1, iParam2, 0, 0, 1);
  }
  
  void func_121(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (iParam1 == -1)
  	{
  		return;
  	}
  	if (iParam2 == 6)
  	{
  		return;
  	}
  	if (func_123(iParam0, iParam1, iParam2))
  	{
  		return;
  	}
  	iVar0 = func_122();
  	if (iVar0 == -1)
  	{
  		return;
  	}
  	Global_42669[iVar0 /*6*/] = iParam0;
  	Global_42669[iVar0 /*6*/].f_1 = iParam1;
  	Global_42669[iVar0 /*6*/].f_2 = iParam2;
  	Global_42669[iVar0 /*6*/].f_3 = iParam3;
  	Global_42669[iVar0 /*6*/].f_4 = iParam4;
  	Global_42669[iVar0 /*6*/].f_5 = iParam5;
  }
  
  int func_122()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 16)
  	{
  		if (Global_42669[iVar0 /*6*/].f_2 == 6)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_123(int iParam0, int iParam1, int iParam2)
  {
  	if (func_124(iParam0, iParam1, iParam2) == -1)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_124(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 16)
  	{
  		if (iParam2 == Global_42669[iVar0 /*6*/].f_2)
  		{
  			if (iParam0 == Global_42669[iVar0 /*6*/])
  			{
  				if (iParam1 == Global_42669[iVar0 /*6*/].f_1)
  				{
  					return iVar0;
  				}
  			}
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_125(int iParam0)
  {
  	int iVar0;
  	
  	if (iParam0 == 0)
  	{
  		return -1;
  	}
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < 16)
  	{
  		if (!Global_42588[iVar0 /*5*/] == -1)
  		{
  			if (iParam0 == Global_42588[iVar0 /*5*/].f_1)
  			{
  				return iVar0;
  			}
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_126(int iParam0)
  {
  	if (func_391(iParam0))
  	{
  		if (!unk_0x5AEB5DDFFAD43CA5(iParam0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_127(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 5:
  		case 6:
  		case 38:
  		case 39:
  		case 40:
  		case 41:
  		case 49:
  		case 50:
  		case 60:
  		case 61:
  			return 0;
  			break;
  	}
  	return 1;
  }
  
  void func_128()
  {
  	if (Global_8356[0 /*2811*/][0 /*281*/].f_259 == 2)
  	{
  		Global_8356[0 /*2811*/][0 /*281*/].f_259 = 0;
  	}
  	if (Global_8356[1 /*2811*/][0 /*281*/].f_259 == 2)
  	{
  		Global_8356[1 /*2811*/][0 /*281*/].f_259 = 0;
  	}
  	if (Global_8356[2 /*2811*/][0 /*281*/].f_259 == 2)
  	{
  		Global_8356[2 /*2811*/][0 /*281*/].f_259 = 0;
  	}
  	unk_0xD2459066EA58CE43(&Global_7551, 25);
  	unk_0xBE20AB8238688965(&Global_7552, 11);
  }
  
  int func_129(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 5:
  		case 6:
  		case 14:
  		case 16:
  		case 38:
  		case 39:
  		case 40:
  		case 41:
  		case 49:
  		case 50:
  			return 0;
  			break;
  	}
  	return 1;
  }
  
  void func_130(var uParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 6)
  	{
  		if (func_391(uParam0->f_28[iVar0]))
  		{
  			unk_0x52090984B5C8A3E4(uParam0->f_28[iVar0], iParam1, iParam1, iParam1, iParam1, iParam1, 0, 0, 0);
  		}
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 5)
  	{
  		if (func_391(uParam0->f_35[iVar0]))
  		{
  			unk_0x52090984B5C8A3E4(uParam0->f_35[iVar0], iParam1, iParam1, iParam1, iParam1, iParam1, 0, 0, 0);
  		}
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 6)
  	{
  		if (func_391(uParam0->f_41[iVar0]))
  		{
  			unk_0x52090984B5C8A3E4(uParam0->f_41[iVar0], iParam1, iParam1, iParam1, iParam1, iParam1, 0, 0, 0);
  		}
  		iVar0++;
  	}
  	if (!unk_0xA59F96B50B97E63C(unk_0x9B0761B4C3EB8BC7(), 0))
  	{
  		unk_0x52090984B5C8A3E4(unk_0x9B0761B4C3EB8BC7(), iParam1, iParam1, iParam1, iParam1, iParam1, 0, 0, 0);
  		unk_0x0312E5501F93E5AB(unk_0x9B0761B4C3EB8BC7(), iParam1);
  		if (bParam2)
  		{
  			unk_0x69C71C91F56D82B9(unk_0x9B0761B4C3EB8BC7(), joaat("weapon_unarmed"), 1);
  		}
  	}
  }
  
  int func_131(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 5:
  		case 6:
  		case 14:
  		case 38:
  		case 39:
  		case 40:
  		case 41:
  		case 49:
  		case 50:
  		case 52:
  		case 53:
  		case 54:
  		case 55:
  		case 56:
  			return 0;
  			break;
  	}
  	return 1;
  }
  
  void func_132(bool bParam0)
  {
  	int iVar0;
  	
  	iVar0 = unk_0x2639A2323BEA8CC6();
  	if (!unk_0x252C34B7867FDDFA(iVar0))
  	{
  		if (bParam0)
  		{
  		}
  		unk_0xDDEDC06C88DA4E04(iVar0, bParam0, 16);
  		unk_0xDDEDC06C88DA4E04(iVar0, bParam0, 32);
  	}
  	func_133(1, 1, 0, 0, 0, 0, 0);
  }
  
  void func_133(bool bParam0, bool bParam1, int iParam2, int iParam3, bool bParam4, bool bParam5, bool bParam6)
  {
  	if (bParam0)
  	{
  		unk_0x967251943AD606D5(unk_0x460153A63B9477BC(), 0);
  		unk_0xAF3D0236D181BE08(unk_0x460153A63B9477BC(), 1);
  		unk_0x23F7D177F71818C3(unk_0x460153A63B9477BC(), 1);
  		func_141(1);
  		unk_0x86529CF5C6F9D6AE();
  		unk_0x6D3823E5CADC313B();
  		if (Global_19681.f_1 > 3 && !bParam6)
  		{
  			if (unk_0x6B12213471F330A3())
  			{
  				unk_0xBE4122AC23440E7D(0);
  			}
  			if (!func_140())
  			{
  				Global_19681.f_1 = 3;
  			}
  			Global_21005 = 5;
  		}
  		func_139(1, iParam3, iParam2, 0);
  		Global_61723 = 1;
  		Global_74033 = 1;
  		Global_76831 = 1;
  	}
  	else
  	{
  		func_141(0);
  		unk_0x51C14866CB8A57BF();
  		Global_61723 = 0;
  		if (bParam1)
  		{
  			unk_0x86A985A804621EB7();
  		}
  		unk_0xAF3D0236D181BE08(unk_0x460153A63B9477BC(), 0);
  		unk_0x23F7D177F71818C3(unk_0x460153A63B9477BC(), 0);
  		func_139(0, iParam3, iParam2, 0);
  		if (unk_0x25DDB354A40FFCDB())
  		{
  			if (((((!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()) && !func_137(unk_0x460153A63B9477BC())) && !func_135(unk_0x460153A63B9477BC(), 0)) && !func_134()) && !bParam4) && !bParam5)
  			{
  				unk_0x0312E5501F93E5AB(unk_0x9B0761B4C3EB8BC7(), 0);
  			}
  		}
  		else if (((!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()) && !func_137(unk_0x460153A63B9477BC())) && !bParam4) && !bParam5)
  		{
  			unk_0x0312E5501F93E5AB(unk_0x9B0761B4C3EB8BC7(), 0);
  		}
  		Global_76831 = 0;
  	}
  }
  
  bool func_134()
  {
  	return unk_0xCE990E643CD9D0E5(Global_1590682[unk_0x460153A63B9477BC() /*883*/].f_39.f_18, 14);
  }
  
  bool func_135(int iParam0, int iParam1)
  {
  	bool bVar0;
  	
  	if (iParam0 == unk_0x460153A63B9477BC())
  	{
  		bVar0 = func_136(-1, 0) == 8;
  	}
  	else
  	{
  		bVar0 = Global_1590682[iParam0 /*883*/].f_211 == 8;
  	}
  	if (iParam1 == 1)
  	{
  		if (unk_0x166E920FB00B2DBB(iParam0))
  		{
  			bVar0 = unk_0x6CC163E30ECE0790(iParam0) == 8;
  		}
  	}
  	return bVar0;
  }
  
  int func_136(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar1 = iParam0;
  	if (iVar1 == -1)
  	{
  		iVar1 = func_51();
  	}
  	if (Global_1312876[iVar1] == 1)
  	{
  		if (bParam1)
  		{
  		}
  		iVar0 = 8;
  	}
  	else
  	{
  		iVar0 = Global_1312757[iVar1];
  		if (bParam1)
  		{
  		}
  	}
  	return iVar0;
  }
  
  int func_137(int iParam0)
  {
  	if (func_135(iParam0, 0))
  	{
  		return 1;
  	}
  	if (func_138())
  	{
  		if (iParam0 == unk_0x460153A63B9477BC())
  		{
  			return 1;
  		}
  	}
  	if (unk_0xCE990E643CD9D0E5(Global_2425869[iParam0 /*443*/].f_199, 2))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_138()
  {
  	return unk_0xCE990E643CD9D0E5(Global_2359302, 3);
  }
  
  int func_139(int iParam0, var uParam1, var uParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	if (unk_0xF8EDFF98A9C94C74())
  	{
  		if (unk_0x93914DE00496FC78() != iParam0 && uParam2)
  		{
  			unk_0x6D883C27212BF370(iParam0, uParam1, 1, iParam3);
  			iVar0 = 1;
  		}
  	}
  	return iVar0;
  }
  
  int func_140()
  {
  	if (Global_19681.f_1 == 1 || Global_19681.f_1 == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_141(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		unk_0xBE20AB8238688965(&Global_7551, 13);
  	}
  	else
  	{
  		unk_0xD2459066EA58CE43(&Global_7551, 13);
  	}
  }
  
  int func_142(char* sParam0)
  {
  	if (!unk_0x7BCC91F3C1CF24E8(uParam0))
  	{
  		unk_0xBE9B3870B1B370E3(uParam0);
  		while (!unk_0x8DC2EFD1CECAA468(sParam0))
  		{
  			unk_0xBE9B3870B1B370E3(sParam0);
  			SYSTEM::WAIT(0);
  		}
  		return 1;
  	}
  	func_494("Attempting to launch invalid script file [TERMINATING]");
  	return 0;
  }
  
  void func_143()
  {
  	func_148(0);
  	func_147();
  	func_144();
  }
  
  void func_144()
  {
  	if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  	{
  		if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  		{
  			if (func_145(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0), 10.5f, 1, 1056964608, 0, 1, 0))
  			{
  				if (unk_0x16BC17A8EDC701A2(unk_0x9B0761B4C3EB8BC7(), -828834893) != 1)
  				{
  					unk_0x0AB756271BADC8DF(unk_0x9B0761B4C3EB8BC7(), 0, 0);
  				}
  			}
  		}
  	}
  }
  
  int func_145(int iParam0, float fParam1, int iParam2, float fParam3, int iParam4, bool bParam5, bool bParam6)
  {
  	unk_0x779660A9E5364C4D(0, 71, 1);
  	unk_0x779660A9E5364C4D(0, 72, 1);
  	unk_0x779660A9E5364C4D(0, 76, 1);
  	unk_0x779660A9E5364C4D(0, 73, 1);
  	unk_0x779660A9E5364C4D(0, 59, 1);
  	unk_0x779660A9E5364C4D(0, 60, 1);
  	if (bParam5)
  	{
  		unk_0x779660A9E5364C4D(0, 75, 1);
  	}
  	unk_0x779660A9E5364C4D(0, 80, 1);
  	if (!bParam6)
  	{
  		unk_0x779660A9E5364C4D(0, 69, 1);
  		unk_0x779660A9E5364C4D(0, 70, 1);
  		unk_0x779660A9E5364C4D(0, 68, 1);
  	}
  	unk_0x779660A9E5364C4D(0, 74, 1);
  	unk_0x779660A9E5364C4D(0, 86, 1);
  	unk_0x779660A9E5364C4D(0, 81, 1);
  	unk_0x779660A9E5364C4D(0, 82, 1);
  	unk_0x779660A9E5364C4D(0, 138, 1);
  	unk_0x779660A9E5364C4D(0, 136, 1);
  	unk_0x779660A9E5364C4D(0, 114, 1);
  	unk_0x779660A9E5364C4D(0, 107, 1);
  	unk_0x779660A9E5364C4D(0, 110, 1);
  	unk_0x779660A9E5364C4D(0, 89, 1);
  	unk_0x779660A9E5364C4D(0, 89, 1);
  	unk_0x779660A9E5364C4D(0, 87, 1);
  	unk_0x779660A9E5364C4D(0, 88, 1);
  	unk_0x779660A9E5364C4D(0, 113, 1);
  	unk_0x779660A9E5364C4D(0, 115, 1);
  	unk_0x779660A9E5364C4D(0, 116, 1);
  	unk_0x779660A9E5364C4D(0, 117, 1);
  	unk_0x779660A9E5364C4D(0, 118, 1);
  	unk_0x779660A9E5364C4D(0, 119, 1);
  	unk_0x779660A9E5364C4D(0, 352, 1);
  	unk_0x779660A9E5364C4D(0, 131, 1);
  	unk_0x779660A9E5364C4D(0, 132, 1);
  	unk_0x779660A9E5364C4D(0, 123, 1);
  	unk_0x779660A9E5364C4D(0, 126, 1);
  	unk_0x779660A9E5364C4D(0, 129, 1);
  	unk_0x779660A9E5364C4D(0, 130, 1);
  	unk_0x779660A9E5364C4D(0, 133, 1);
  	unk_0x779660A9E5364C4D(0, 134, 1);
  	unk_0xB78DC40D63D4FBA3();
  	func_146(iParam0);
  	if ((unk_0x578C4EF320340AF7() - Global_29) > 500)
  	{
  		unk_0xD4C86DEC93F19FB0(iParam0, fParam1, iParam2, iParam4);
  	}
  	Global_29 = unk_0x578C4EF320340AF7();
  	if (!unk_0xA59F96B50B97E63C(iParam0, 0))
  	{
  		if (unk_0x0D77CDCF403AEBD2(unk_0xF3A639BEE7AADF55(iParam0)) <= fParam3)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_146(int iParam0)
  {
  	if (!unk_0xA59F96B50B97E63C(iParam0, 0))
  	{
  		if (unk_0xAADB7E66E4BD2B67(iParam0))
  		{
  			if (unk_0xC1067169688057A8(iParam0))
  			{
  				unk_0x348DC18FDCA78997(iParam0, 0);
  			}
  		}
  	}
  }
  
  void func_147()
  {
  	unk_0x779660A9E5364C4D(0, 21, 1);
  	unk_0x779660A9E5364C4D(0, 37, 1);
  	unk_0x779660A9E5364C4D(0, 25, 1);
  	unk_0x779660A9E5364C4D(0, 141, 1);
  	unk_0x779660A9E5364C4D(0, 140, 1);
  	unk_0x779660A9E5364C4D(0, 24, 1);
  	unk_0x779660A9E5364C4D(0, 257, 1);
  	unk_0x779660A9E5364C4D(0, 22, 1);
  	unk_0x779660A9E5364C4D(0, 23, 1);
  }
  
  void func_148(int iParam0)
  {
  	if (func_153())
  	{
  		return;
  	}
  	if (!Global_19681.f_1 == 1)
  	{
  		if (func_152(0))
  		{
  			func_149(iParam0);
  		}
  		unk_0xBE20AB8238688965(&Global_7552, 2);
  	}
  }
  
  void func_149(int iParam0)
  {
  	if (func_153())
  	{
  		return;
  	}
  	if (Global_19864)
  	{
  		if (func_151())
  		{
  			func_150(1, 1);
  		}
  		else
  		{
  			func_150(0, 0);
  		}
  	}
  	if (Global_19681.f_1 == 10 || Global_19681.f_1 == 9)
  	{
  		unk_0xBE20AB8238688965(&Global_7552, 16);
  	}
  	if (unk_0x6B12213471F330A3())
  	{
  		unk_0xBE4122AC23440E7D(0);
  	}
  	Global_21005 = 5;
  	if (iParam0 == 1)
  	{
  		unk_0xBE20AB8238688965(&Global_7551, 30);
  	}
  	else
  	{
  		unk_0xD2459066EA58CE43(&Global_7551, 30);
  	}
  	if (!func_140())
  	{
  		Global_19681.f_1 = 3;
  	}
  }
  
  void func_150(bool bParam0, bool bParam1)
  {
  	if (bParam0)
  	{
  		if (func_152(0))
  		{
  			Global_19864 = 1;
  			if (bParam1)
  			{
  				unk_0x1F1B1269BB6217F7(&Global_19618);
  			}
  			Global_19609 = { Global_19627[Global_19626 /*3*/] };
  			unk_0x241AFEE3D5B4FF70(Global_19609);
  		}
  	}
  	else if (Global_19864 == 1)
  	{
  		Global_19864 = 0;
  		Global_19609 = { Global_19634[Global_19626 /*3*/] };
  		if (bParam1)
  		{
  			unk_0x241AFEE3D5B4FF70(Global_19618);
  		}
  		else
  		{
  			unk_0x241AFEE3D5B4FF70(Global_19609);
  		}
  	}
  }
  
  bool func_151()
  {
  	return unk_0xCE990E643CD9D0E5(Global_1689730, 5);
  }
  
  int func_152(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		if (Global_19681.f_1 > 3)
  		{
  			if (unk_0xCE990E643CD9D0E5(Global_7551, 14))
  			{
  				return 1;
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	if (unk_0x7B70881748D166CD(joaat("cellphone_flashhand")) > 0)
  	{
  		return 1;
  	}
  	if (Global_19681.f_1 > 3)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_153()
  {
  	return unk_0xCE990E643CD9D0E5(Global_1689730, 19);
  }
  
  int func_154(int iParam0)
  {
  	if ((((iParam0 == 52 || iParam0 == 53) || iParam0 == 54) || iParam0 == 55) || iParam0 == 56)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_155(int iParam0)
  {
  	int iVar0;
  	
  	if (iParam0 == -1)
  	{
  		iParam0 = func_162();
  	}
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	iVar0 = func_157(&(Global_110945[iParam0 /*10*/].f_9), 1, 4, 0, 0);
  	if (!iVar0 == 1)
  	{
  		return 0;
  	}
  	func_156(iParam0);
  	return 1;
  }
  
  void func_156(int iParam0)
  {
  	Global_110945[iParam0 /*10*/].f_4 = 1;
  	Global_110945[iParam0 /*10*/].f_5 = 0;
  	Global_110945[iParam0 /*10*/].f_6 = 0;
  	Global_110945[iParam0 /*10*/] = 0;
  }
  
  int func_157(var uParam0, int iParam1, int iParam2, bool bParam3, int iParam4)
  {
  	int iVar0;
  	
  	if (iParam1 == 7)
  	{
  		return 0;
  	}
  	if (!bParam3)
  	{
  		if (Global_96433.f_44 == 1)
  		{
  			return 2;
  		}
  	}
  	if (iParam1 == 0)
  	{
  		if (func_161(0))
  		{
  			return 0;
  		}
  		Global_41595++;
  		*uParam0 = Global_41595;
  		unk_0xBF70D1B666A353F5(unk_0x2639A2323BEA8CC6(), 0);
  		Global_22411.f_5 = 0;
  		if (iParam2 != 5)
  		{
  			unk_0x09BA0099935AAA6B(8);
  		}
  		Global_41631 = iParam2;
  		Global_41593 = *uParam0;
  		Global_41594 = iParam4;
  		Global_41592 = 0;
  		return 1;
  	}
  	if (*uParam0 != -1)
  	{
  		if (Global_41592 > 0)
  		{
  			iVar0 = 0;
  			iVar0 = 0;
  			while (iVar0 < Global_41592)
  			{
  				if (Global_41598[iVar0 /*4*/] == *uParam0)
  				{
  					return 2;
  				}
  				iVar0++;
  			}
  		}
  		else if (Global_41593 == *uParam0)
  		{
  			return 1;
  		}
  		*uParam0 = -1;
  	}
  	if (*uParam0 == -1)
  	{
  		if (!func_159(iParam2))
  		{
  			return 0;
  		}
  		if (Global_41592 == 8)
  		{
  			return 0;
  		}
  		Global_41595++;
  		*uParam0 = Global_41595;
  		Global_41598[Global_41592 /*4*/] = Global_41595;
  		Global_41598[Global_41592 /*4*/].f_1 = iParam1;
  		Global_41598[Global_41592 /*4*/].f_2 = iParam2;
  		Global_41598[Global_41592 /*4*/].f_3 = 0;
  		Global_41592++;
  		if (iParam4 != 0)
  		{
  			func_158(uParam0, iParam4);
  		}
  	}
  	return 2;
  }
  
  void func_158(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (Global_41592 == 0)
  	{
  		return;
  	}
  	if (*uParam0 == -1)
  	{
  		return;
  	}
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < Global_41592)
  	{
  		if (Global_41598[iVar0 /*4*/] == *uParam0)
  		{
  			Global_41598[iVar0 /*4*/].f_3 = iParam1;
  		}
  		iVar0++;
  	}
  	*uParam0 = -1;
  }
  
  bool func_159(int iParam0)
  {
  	return func_160(iParam0, Global_41631);
  }
  
  int func_160(int iParam0, int iParam1)
  {
  	if (iParam1 == 15)
  	{
  		return 1;
  	}
  	if (iParam0 == 15)
  	{
  		return 0;
  	}
  	switch (iParam0)
  	{
  		case 16:
  			switch (iParam1)
  			{
  				case 9:
  				case 10:
  				case 7:
  				case 13:
  				case 14:
  					return 0;
  					break;
  			}
  			return 1;
  			break;
  		
  		case 0:
  			switch (iParam1)
  			{
  				case 5:
  				case 17:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 2:
  		case 3:
  			switch (iParam1)
  			{
  				case 5:
  				case 6:
  				case 8:
  				case 17:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 4:
  			if (iParam1 == 17)
  			{
  				return 1;
  			}
  			break;
  		
  		case 5:
  			break;
  		
  		case 6:
  		case 8:
  			if (iParam1 == 5)
  			{
  				return 1;
  			}
  			break;
  		
  		case 7:
  			if (iParam1 == 6)
  			{
  				return 1;
  			}
  			break;
  		
  		case 9:
  			if (iParam1 == 5)
  			{
  				return 1;
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 5:
  				case 6:
  				case 17:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 11:
  			if (iParam1 == 5)
  			{
  				return 1;
  			}
  			break;
  		
  		case 17:
  			switch (iParam1)
  			{
  				case 17:
  				case 12:
  				case 5:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 18:
  		case 12:
  			switch (iParam1)
  			{
  				case 5:
  				case 6:
  				case 8:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 13:
  			switch (iParam1)
  			{
  				case 5:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 14:
  			switch (iParam1)
  			{
  				case 5:
  					return 1;
  					break;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_161(int iParam0)
  {
  	if (Global_41631 == 15)
  	{
  		return 0;
  	}
  	if (func_159(iParam0))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_162()
  {
  	return func_163(unk_0x6C5C6B207AA78253(), 0);
  }
  
  int func_163(char* sParam0, int iParam1)
  {
  	int iVar0;
  	var uVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar2 = unk_0x856D5567211886A2(uParam0);
  	iVar3 = 0;
  	iVar3 = 0;
  	while (iVar3 < 63)
  	{
  		iVar0 = iVar3;
  		func_110(iVar0, &uVar1);
  		if (unk_0x856D5567211886A2(uVar1) == iVar2)
  		{
  			return iVar0;
  		}
  		iVar3++;
  	}
  	if (iParam1 == 0)
  	{
  	}
  	return -1;
  }
  
  int func_164()
  {
  	if (Global_98955 == 10 || Global_98955 == 9)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_165(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			*uParam1 = func_166(-1604.668f, 5239.1f, 3.01f, 0);
  			unk_0xE7B8403ABCA0391D(*uParam1, 66);
  			unk_0xECC9A00CF1181EC2(*uParam1, 42);
  			break;
  		
  		case 1:
  			*uParam1 = func_166(-1592.84f, 5214.04f, 3.01f, 0);
  			unk_0xE7B8403ABCA0391D(*uParam1, 400);
  			unk_0xECC9A00CF1181EC2(*uParam1, 42);
  			break;
  		
  		case 2:
  		case 3:
  			*uParam1 = func_166(190.26f, -956.35f, 29.63f, 0);
  			if ((unk_0xCE990E643CD9D0E5(Global_111858.f_18570[2 /*6*/], 3) || unk_0xCE990E643CD9D0E5(Global_111858.f_18570[4 /*6*/], 3)) || unk_0xCE990E643CD9D0E5(Global_111858.f_18570[4 /*6*/], 3))
  			{
  				unk_0xE7B8403ABCA0391D(*uParam1, 381);
  			}
  			else
  			{
  				unk_0xE7B8403ABCA0391D(*uParam1, 66);
  			}
  			if (iParam0 == 2)
  			{
  				unk_0xECC9A00CF1181EC2(*uParam1, 42);
  			}
  			else
  			{
  				unk_0xECC9A00CF1181EC2(*uParam1, 44);
  			}
  			break;
  		
  		case 4:
  			*uParam1 = func_166(414f, -761f, 29f, 0);
  			if (unk_0xCE990E643CD9D0E5(Global_111858.f_18570[2 /*6*/], 3) || unk_0xCE990E643CD9D0E5(Global_111858.f_18570[3 /*6*/], 3))
  			{
  				unk_0xE7B8403ABCA0391D(*uParam1, 381);
  			}
  			else
  			{
  				unk_0xE7B8403ABCA0391D(*uParam1, 66);
  			}
  			unk_0xECC9A00CF1181EC2(*uParam1, 43);
  			break;
  		
  		case 9:
  			*uParam1 = func_166(-1622.89f, 4204.87f, 83.3f, 0);
  			unk_0xE7B8403ABCA0391D(*uParam1, 66);
  			unk_0xECC9A00CF1181EC2(*uParam1, 42);
  			break;
  		
  		case 11:
  		case 12:
  		case 13:
  			if (iParam0 == 11)
  			{
  				*uParam1 = func_166(1835.53f, 4705.86f, 38.1f, 0);
  			}
  			else if (iParam0 == 12)
  			{
  				*uParam1 = func_166(1826.13f, 4698.88f, 38.92f, 0);
  			}
  			else
  			{
  				*uParam1 = func_166(637.02f, 119.7093f, 89.5f, 0);
  			}
  			unk_0xE7B8403ABCA0391D(*uParam1, 206);
  			unk_0xECC9A00CF1181EC2(*uParam1, 42);
  			break;
  		
  		case 18:
  		case 19:
  			if (iParam0 == 18)
  			{
  				*uParam1 = func_166(-954.19f, -2760.05f, 14.64f, 0);
  			}
  			else
  			{
  				*uParam1 = func_166(-63.8f, -809.5f, 321.8f, 0);
  			}
  			unk_0xE7B8403ABCA0391D(*uParam1, 382);
  			unk_0xECC9A00CF1181EC2(*uParam1, 43);
  			break;
  		
  		case 21:
  		case 23:
  			if (iParam0 == 21)
  			{
  				*uParam1 = func_166(-1877.82f, -440.649f, 45.05f, 0);
  			}
  			else
  			{
  				*uParam1 = func_166(-915.6f, 6139.2f, 5.5f, 0);
  			}
  			if ((unk_0xCE990E643CD9D0E5(Global_111858.f_18570[21 /*6*/], 3) || unk_0xCE990E643CD9D0E5(Global_111858.f_18570[22 /*6*/], 3)) || unk_0xCE990E643CD9D0E5(Global_111858.f_18570[23 /*6*/], 3))
  			{
  				unk_0xE7B8403ABCA0391D(*uParam1, 405);
  			}
  			else
  			{
  				unk_0xE7B8403ABCA0391D(*uParam1, 66);
  			}
  			if (iParam0 == 21)
  			{
  				unk_0xECC9A00CF1181EC2(*uParam1, 42);
  			}
  			else
  			{
  				unk_0xECC9A00CF1181EC2(*uParam1, 43);
  			}
  			break;
  		
  		case 27:
  			*uParam1 = func_166(-1104.93f, 291.25f, 64.3f, 0);
  			unk_0xE7B8403ABCA0391D(*uParam1, 66);
  			unk_0xECC9A00CF1181EC2(*uParam1, 44);
  			break;
  		
  		case 30:
  			*uParam1 = func_166(-1104.93f, 291.25f, 64.3f, 0);
  			unk_0xE7B8403ABCA0391D(*uParam1, 385);
  			unk_0xECC9A00CF1181EC2(*uParam1, 44);
  			break;
  		
  		case 34:
  			*uParam1 = func_166(-303.82f, 6211.29f, 31.05f, 0);
  			unk_0xE7B8403ABCA0391D(*uParam1, 386);
  			unk_0xECC9A00CF1181EC2(*uParam1, 44);
  			break;
  		
  		case 43:
  			*uParam1 = func_166(-44.75f, -1288.67f, 28.21f, 0);
  			unk_0xE7B8403ABCA0391D(*uParam1, 149);
  			unk_0xECC9A00CF1181EC2(*uParam1, 44);
  			break;
  		
  		case 46:
  			*uParam1 = func_166(-149.75f, 285.81f, 93.67f, 0);
  			unk_0xE7B8403ABCA0391D(*uParam1, 66);
  			unk_0xECC9A00CF1181EC2(*uParam1, 43);
  			break;
  		
  		case 47:
  		case 48:
  			if (iParam0 == 47)
  			{
  				*uParam1 = func_166(-70.71f, 301.43f, 106.79f, 0);
  			}
  			else
  			{
  				*uParam1 = func_166(-257.22f, 292.85f, 90.63f, 0);
  			}
  			unk_0xE7B8403ABCA0391D(*uParam1, 389);
  			unk_0xECC9A00CF1181EC2(*uParam1, 43);
  			break;
  	}
  }
  
  var func_166(struct<3> Param0, int iParam1)
  {
  	var uVar0;
  	
  	uVar0 = unk_0x6820C712C1DD618A(Param0);
  	unk_0xFA81E0FBD7F5ACA0(uVar0, func_167(unk_0x25DDB354A40FFCDB(), 1f, 1f));
  	unk_0x72BEFB9451782F60(uVar0, iParam1);
  	return uVar0;
  }
  
  float func_167(bool bParam0, float fParam1, float fParam2)
  {
  	if (bParam0)
  	{
  		return fParam1;
  	}
  	return fParam2;
  }
  
  int func_168(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  		case 1:
  		case 2:
  		case 3:
  		case 4:
  		case 9:
  		case 11:
  		case 12:
  		case 13:
  		case 18:
  		case 19:
  		case 21:
  		case 23:
  		case 27:
  		case 30:
  		case 34:
  		case 43:
  		case 46:
  		case 47:
  		case 48:
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  void func_169(var uParam0, int iParam1)
  {
  	if (*iParam1)
  	{
  		switch (*uParam0)
  		{
  			case 15:
  				func_494("Need to wear robes to launch Epsilon 7...");
  				func_171("BADSUIT_HELP", "OUTFIT_P0_11", -1);
  				*iParam1 = 0;
  				break;
  			
  			case 16:
  				func_494("Need robes and $ to launch Epsilon 8...");
  				func_170("NOCASH_HELP", "OUTFIT_P0_11", 50000, -1);
  				*iParam1 = 0;
  				break;
  			
  			default:
  				func_494("Tried to show help text for invalid mission");
  				break;
  			}
  	}
  }
  
  void func_170(char* sParam0, char* sParam1, int iParam2, int iParam3)
  {
  	unk_0x17751E107423AFE9(sParam0);
  	unk_0x6A826E35A3096ED0(sParam1);
  	unk_0x42710E9E08FA375A(iParam2);
  	unk_0x1A169149B3D18FCB(0, 0, 1, iParam3);
  }
  
  void func_171(char* sParam0, char* sParam1, int iParam2)
  {
  	unk_0x17751E107423AFE9(sParam0);
  	unk_0x6A826E35A3096ED0(sParam1);
  	unk_0x1A169149B3D18FCB(0, 0, 1, iParam2);
  }
  
  int func_172(var uParam0)
  {
  	switch (*uParam0)
  	{
  		case 15:
  			return func_321(*uParam0);
  			break;
  		
  		case 16:
  			if (func_108(0))
  			{
  				func_320(joaat("player_zero"), 12, 28, 1);
  				func_319(joaat("player_zero"), 12, 28, 1, 1);
  				func_207(unk_0x9B0761B4C3EB8BC7(), 12, 28, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  				func_174(0, 1, 50000, 0, 0);
  			}
  			if (func_173(0) >= 50000 || Global_111858.f_18570.f_387 == 1)
  			{
  				return func_321(*uParam0);
  			}
  			else
  			{
  				return 0;
  			}
  			break;
  	}
  	return 1;
  }
  
  int func_173(int iParam0)
  {
  	var uVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			unk_0xD2F202166691EDB2(joaat("SP0_TOTAL_CASH"), &uVar0, -1);
  			return uVar0;
  		
  		case 1:
  			unk_0xD2F202166691EDB2(joaat("SP1_TOTAL_CASH"), &uVar0, -1);
  			return uVar0;
  		
  		case 2:
  			unk_0xD2F202166691EDB2(joaat("SP2_TOTAL_CASH"), &uVar0, -1);
  			return uVar0;
  		
  		default:
  	}
  	return 0;
  }
  
  void func_174(int iParam0, int iParam1, int iParam2, bool bParam3, bool bParam4)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (func_206(iParam0) == 3)
  	{
  		return;
  	}
  	if (func_206(iParam0) == 4)
  	{
  		return;
  	}
  	func_175(func_206(iParam0), 1, iParam1, iParam2, 0);
  	if (bParam3)
  	{
  		iVar0 = 0;
  		if (bParam4)
  		{
  			switch (iParam0)
  			{
  				case 0:
  					iVar1 = joaat("SP0_MONEY_MADE_FROM_RANDOM_PEDS");
  					break;
  				
  				case 1:
  					iVar1 = joaat("SP1_MONEY_MADE_FROM_RANDOM_PEDS");
  					break;
  				
  				case 2:
  					iVar1 = joaat("SP2_MONEY_MADE_FROM_RANDOM_PEDS");
  					break;
  				
  				default:
  					return;
  			}
  		}
  		else
  		{
  			switch (iParam0)
  			{
  				case 0:
  					iVar1 = joaat("SP0_MONEY_MADE_FROM_MISSIONS");
  					break;
  				
  				case 1:
  					iVar1 = joaat("SP1_MONEY_MADE_FROM_MISSIONS");
  					break;
  				
  				case 2:
  					iVar1 = joaat("SP2_MONEY_MADE_FROM_MISSIONS");
  					break;
  				
  				default:
  					return;
  				}
  		}
  		unk_0xD2F202166691EDB2(iVar1, &iVar0, -1);
  		iVar0 = (iVar0 + iParam2);
  		unk_0x6000E4684CB4330B(iVar1, iVar0, 1);
  	}
  }
  
  int func_175(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4)
  {
  	float fVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	
  	func_205();
  	if (iParam3 < 1)
  	{
  		return 0;
  	}
  	fVar0 = 1f;
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 0:
  					func_204(99, 1);
  					func_203(joaat("SP0_MONEY_TOTAL_SPENT"), iParam3);
  					break;
  				
  				case 1:
  					func_203(joaat("SP1_MONEY_TOTAL_SPENT"), iParam3);
  					break;
  				
  				case 2:
  					func_203(joaat("SP2_MONEY_TOTAL_SPENT"), iParam3);
  					break;
  			}
  			func_188(0);
  			switch (iParam2)
  			{
  				case 127:
  				case 129:
  				case 125:
  				case 126:
  				case 128:
  					if (func_184(5))
  					{
  						fVar0 = 0.9f;
  						iVar1 = 5;
  					}
  					break;
  				
  				case 63:
  				case 64:
  				case 65:
  				case 66:
  				case 67:
  				case 68:
  					switch (iParam0)
  					{
  						case 0:
  							func_203(joaat("SP0_MONEY_SPENT_ON_TATTOOS"), iParam3);
  							break;
  						
  						case 1:
  							func_203(joaat("SP1_MONEY_SPENT_ON_TATTOOS"), iParam3);
  							break;
  						
  						case 2:
  							func_203(joaat("SP2_MONEY_SPENT_ON_TATTOOS"), iParam3);
  							break;
  					}
  					if (func_184(1))
  					{
  						fVar0 = 0f;
  						iVar1 = 1;
  					}
  					break;
  				
  				case 21:
  					switch (iParam0)
  					{
  						case 0:
  							func_203(joaat("SP0_MONEY_SPENT_ON_TAXIS"), iParam3);
  							break;
  						
  						case 1:
  							func_203(joaat("SP1_MONEY_SPENT_ON_TAXIS"), iParam3);
  							break;
  						
  						case 2:
  							func_203(joaat("SP2_MONEY_SPENT_ON_TAXIS"), iParam3);
  							break;
  					}
  					break;
  				
  				case 25:
  					switch (iParam0)
  					{
  						case 0:
  							func_203(joaat("SP0_MONEY_SPENT_IN_STRIP_CLUBS"), iParam3);
  							break;
  						
  						case 1:
  							func_203(joaat("SP1_MONEY_SPENT_IN_STRIP_CLUBS"), iParam3);
  							break;
  						
  						case 2:
  							func_203(joaat("SP2_MONEY_SPENT_IN_STRIP_CLUBS"), iParam3);
  							break;
  					}
  					break;
  				
  				case 99:
  				case 100:
  				case 101:
  				case 102:
  				case 104:
  				case 105:
  				case 106:
  				case 107:
  				case 108:
  				case 109:
  				case 110:
  				case 111:
  				case 112:
  				case 113:
  					switch (iParam0)
  					{
  						case 0:
  							func_203(joaat("SP0_MONEY_SPENT_PROPERTY"), iParam3);
  							break;
  						
  						case 1:
  							func_203(joaat("SP1_MONEY_SPENT_PROPERTY"), iParam3);
  							break;
  						
  						case 2:
  							func_203(joaat("SP2_MONEY_SPENT_PROPERTY"), iParam3);
  							break;
  					}
  					break;
  				
  				default:
  					switch (unk_0x02406178CDC27728())
  					{
  						case joaat("clothes_shop_sp"):
  							switch (iParam0)
  							{
  								case 0:
  									func_203(joaat("SP0_MONEY_SPENT_IN_CLOTHES"), iParam3);
  									break;
  								
  								case 1:
  									func_203(joaat("SP1_MONEY_SPENT_IN_CLOTHES"), iParam3);
  									break;
  								
  								case 2:
  									func_203(joaat("SP2_MONEY_SPENT_IN_CLOTHES"), iParam3);
  									break;
  							}
  							break;
  						
  						case joaat("hairdo_shop_sp"):
  							switch (iParam0)
  							{
  								case 0:
  									func_203(joaat("SP0_MONEY_SPENT_ON_HAIRDOS"), iParam3);
  									break;
  								
  								case 1:
  									func_203(joaat("SP1_MONEY_SPENT_ON_HAIRDOS"), iParam3);
  									break;
  								
  								case 2:
  									func_203(joaat("SP2_MONEY_SPENT_ON_HAIRDOS"), iParam3);
  									break;
  							}
  							if (func_184(0))
  							{
  								fVar0 = 0f;
  								iVar1 = 0;
  							}
  							break;
  						
  						case joaat("gunclub_shop"):
  							switch (iParam0)
  							{
  								case 0:
  									func_203(joaat("SP0_MONEY_SPENT_IN_BUYING_GUNS"), iParam3);
  									break;
  								
  								case 1:
  									func_203(joaat("SP1_MONEY_SPENT_IN_BUYING_GUNS"), iParam3);
  									break;
  								
  								case 2:
  									func_203(joaat("SP2_MONEY_SPENT_IN_BUYING_GUNS"), iParam3);
  									break;
  							}
  							break;
  						
  						case joaat("carmod_shop"):
  							switch (iParam0)
  							{
  								case 0:
  									func_203(joaat("SP0_MONEY_SPENT_CAR_MODS"), iParam3);
  									break;
  								
  								case 1:
  									func_203(joaat("SP1_MONEY_SPENT_CAR_MODS"), iParam3);
  									break;
  								
  								case 2:
  									func_203(joaat("SP2_MONEY_SPENT_CAR_MODS"), iParam3);
  									break;
  							}
  							func_183(iParam3);
  							break;
  					}
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 0:
  					func_204(95, iParam3);
  					break;
  				
  				case 1:
  					func_204(97, iParam3);
  					break;
  				
  				case 2:
  					func_204(96, iParam3);
  					break;
  			}
  			func_204(98, iParam3);
  			break;
  	}
  	iVar2 = iParam0;
  	iParam3 = SYSTEM::FLOOR((fVar0 * SYSTEM::TO_FLOAT(iParam3)));
  	iVar3 = 0;
  	iVar4 = iParam3;
  	if (fVar0 == 0f)
  	{
  		func_178(iVar1);
  		return 1;
  	}
  	else if (fVar0 != 1f)
  	{
  		func_178(iVar1);
  	}
  	iVar5 = (Global_58891[iVar2] + iParam3);
  	switch (iParam1)
  	{
  		case 1:
  			if (Global_58891[iVar2] >= 0 && iParam3 > 0)
  			{
  				if (iVar5 <= 0)
  				{
  					Global_58891[iVar2] = 2147483647;
  				}
  				else
  				{
  					Global_58891[iVar2] = (Global_58891[iVar2] + iParam3);
  				}
  			}
  			switch (iParam0)
  			{
  				case 0:
  					func_203(joaat("SP0_TOTAL_CASH_EARNED"), iParam3);
  					break;
  				
  				case 1:
  					func_203(joaat("SP1_TOTAL_CASH_EARNED"), iParam3);
  					break;
  				
  				case 2:
  					func_203(joaat("SP2_TOTAL_CASH_EARNED"), iParam3);
  					break;
  			}
  			break;
  		
  		case 0:
  			if (!bParam4)
  			{
  				if ((Global_58891[iVar2] - iParam3) < 0)
  				{
  					return 0;
  				}
  			}
  			iVar3 = Global_58891[iVar2];
  			Global_58891[iVar2] = (Global_58891[iVar2] - iParam3);
  			if (bParam4)
  			{
  				iVar4 = iVar3;
  			}
  			break;
  	}
  	if (iParam2 == 1)
  	{
  		if (iVar4 > 20)
  		{
  		}
  	}
  	else
  	{
  		Global_111858.f_20560.f_233[iVar2 /*69*/].f_2[Global_111858.f_20560.f_233[iVar2 /*69*/].f_1 /*6*/] = iParam1;
  		Global_111858.f_20560.f_233[iVar2 /*69*/].f_2[Global_111858.f_20560.f_233[iVar2 /*69*/].f_1 /*6*/].f_1 = iParam2;
  		Global_111858.f_20560.f_233[iVar2 /*69*/].f_2[Global_111858.f_20560.f_233[iVar2 /*69*/].f_1 /*6*/].f_2 = iParam3;
  		Global_111858.f_20560.f_233[iVar2 /*69*/]++;
  		Global_111858.f_20560.f_233[iVar2 /*69*/].f_1++;
  		if (Global_111858.f_20560.f_233[iVar2 /*69*/].f_1 > 10)
  		{
  			Global_111858.f_20560.f_233[iVar2 /*69*/].f_1 = 0;
  		}
  	}
  	func_177(iParam0);
  	if (Global_41631 == 15)
  	{
  		func_176(0);
  	}
  	return 1;
  }
  
  void func_176(bool bParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = 0;
  	iVar1 = 0;
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		iVar1 = 0;
  		while (iVar1 < 11)
  		{
  			Global_111858.f_20560.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_3 = Global_111858.f_20560.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/];
  			Global_111858.f_20560.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_4 = Global_111858.f_20560.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_1;
  			Global_111858.f_20560.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_5 = Global_111858.f_20560.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_2;
  			iVar1++;
  		}
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 10)
  	{
  		Global_58899[iVar0 /*3*/][0] = Global_111858.f_20560[iVar0];
  		Global_58899.f_31[iVar0 /*3*/][0] = Global_111858.f_20560.f_11[iVar0];
  		Global_58899.f_62[iVar0 /*3*/][0] = Global_111858.f_20560.f_22[iVar0];
  		Global_58899.f_93[iVar0 /*3*/][0] = Global_111858.f_20560.f_33[iVar0];
  		Global_58899.f_124[iVar0 /*3*/][0] = Global_111858.f_20560.f_44[iVar0];
  		Global_58899.f_155[iVar0 /*3*/][0] = Global_111858.f_20560.f_55[iVar0];
  		Global_58899.f_186[iVar0 /*3*/][0] = Global_111858.f_20560.f_66[iVar0];
  		Global_58899.f_217[iVar0 /*3*/][0] = Global_111858.f_20560.f_77[iVar0];
  		Global_58899.f_248[iVar0 /*3*/][0] = Global_111858.f_20560.f_88[iVar0];
  		if (!bParam0)
  		{
  			Global_58899[iVar0 /*3*/][1] = Global_111858.f_20560[iVar0];
  			Global_58899.f_31[iVar0 /*3*/][1] = Global_111858.f_20560.f_11[iVar0];
  			Global_58899.f_62[iVar0 /*3*/][1] = Global_111858.f_20560.f_22[iVar0];
  			Global_58899.f_93[iVar0 /*3*/][1] = Global_111858.f_20560.f_33[iVar0];
  			Global_58899.f_124[iVar0 /*3*/][1] = Global_111858.f_20560.f_44[iVar0];
  			Global_58899.f_155[iVar0 /*3*/][1] = Global_111858.f_20560.f_55[iVar0];
  			Global_58899.f_186[iVar0 /*3*/][1] = Global_111858.f_20560.f_66[iVar0];
  			Global_58899.f_217[iVar0 /*3*/][1] = Global_111858.f_20560.f_77[iVar0];
  			Global_58899.f_248[iVar0 /*3*/][1] = Global_111858.f_20560.f_88[iVar0];
  		}
  		iVar0++;
  	}
  }
  
  void func_177(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = Global_58891[iParam0];
  	switch (iParam0)
  	{
  		case 0:
  			unk_0x6000E4684CB4330B(joaat("SP0_TOTAL_CASH"), iVar0, 1);
  			break;
  		
  		case 1:
  			unk_0x6000E4684CB4330B(joaat("SP1_TOTAL_CASH"), iVar0, 1);
  			break;
  		
  		case 2:
  			unk_0x6000E4684CB4330B(joaat("SP2_TOTAL_CASH"), iVar0, 1);
  			break;
  	}
  }
  
  void func_178(int iParam0)
  {
  	bool bVar0;
  	char cVar1[64];
  	
  	if (iParam0 == 8)
  	{
  		func_182(129, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 9)
  	{
  		func_182(135, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 10)
  	{
  		func_182(136, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 11)
  	{
  		func_182(137, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 12)
  	{
  		func_181(8270, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 13)
  	{
  		func_181(8271, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 14)
  	{
  		func_181(8272, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 15)
  	{
  		func_181(8273, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 16)
  	{
  		func_181(8274, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 17)
  	{
  		func_181(8275, 0, -1, 1, 0);
  		return;
  	}
  	bVar0 = false;
  	if (!unk_0x25DDB354A40FFCDB())
  	{
  		if (unk_0xCE990E643CD9D0E5(Global_111858.f_20560.f_471, iParam0))
  		{
  			bVar0 = true;
  			unk_0xD2459066EA58CE43(&(Global_111858.f_20560.f_471), iParam0);
  		}
  	}
  	else if (unk_0xCE990E643CD9D0E5(Global_111858.f_20560.f_471, iParam0) || unk_0xCE990E643CD9D0E5(Global_2097152[func_180() /*10931*/].f_6175.f_10, iParam0))
  	{
  		bVar0 = true;
  		unk_0xD2459066EA58CE43(&(Global_111858.f_20560.f_471), iParam0);
  		unk_0xD2459066EA58CE43(&(Global_2097152[func_180() /*10931*/].f_6175.f_10), iParam0);
  	}
  	if (bVar0)
  	{
  		StringCopy(&cVar1, "CHAR_LIFEINVADER", 64);
  		unk_0x5B8DD855EAFD33B5("COUP_RED");
  		unk_0x6A826E35A3096ED0(func_179(iParam0));
  		unk_0x39E1440587355CC1(&cVar1, &cVar1, 1, 0, "", 0);
  	}
  }
  
  char* func_179(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return "COUP_HAIRC";
  		
  		case 1:
  			return "COUP_TATTOO";
  		
  		case 2:
  			return "COUP_WARSTOCK";
  		
  		case 3:
  			return "COUP_MOSPORT";
  		
  		case 4:
  			return "COUP_ELITAS";
  		
  		case 5:
  			return "COUP_MEDSPENS";
  		
  		case 6:
  			return "COUP_SPRUNK";
  		
  		case 7:
  			return "COUP_RESPRAY";
  		
  		case 8:
  			return "COUP_XMAS2017";
  		
  		case 9:
  			return "COUP_CAR_XMAS2018";
  		
  		case 10:
  			return "COUP_HELI_XMAS2018";
  		
  		case 11:
  			return "COUP_CAR2_XMAS2018";
  		
  		case 12:
  			return "COUP_CAS_ELITAS";
  		
  		case 13:
  			return "COUP_CAS_DOCKTEASE";
  		
  		case 14:
  			return "COUP_CAS_MOSPORT";
  		
  		case 15:
  			return "COUP_CAS_SSASA";
  		
  		case 16:
  			return "COUP_CAS_WARSTOCK";
  		
  		case 17:
  			return "COUP_CAS_PANDM";
  		
  		default:
  	}
  	return "";
  }
  
  int func_180()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	return iVar0;
  }
  
  void func_181(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4)
  {
  	int iVar0;
  	
  	if (bParam4)
  	{
  	}
  	iVar0 = Global_2551832[iParam0 /*3*/][func_50(iParam2)];
  	if (iVar0 != 0)
  	{
  		unk_0x6000E4684CB4330B(iVar0, iParam1, iParam3);
  	}
  }
  
  int func_182(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	int iVar11;
  	int iVar12;
  	int iVar13;
  	int iVar14;
  	int iVar15;
  	int iVar16;
  	int iVar17;
  	int iVar18;
  	int iVar19;
  	int iVar20;
  	int iVar21;
  	int iVar22;
  	int iVar23;
  	int iVar24;
  	int iVar25;
  	
  	if (iParam2 == -1)
  	{
  		iParam2 = func_51();
  	}
  	iVar0 = 0;
  	if (iParam0 >= 0 && iParam0 < 192)
  	{
  		iVar2 = unk_0x43BE40E27DB6DC2E((iParam0 - 0), 0, 1, iParam2);
  		iVar1 = ((iParam0 - 0) - unk_0x12730A13C85FC896((iParam0 - 0)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar2, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 192 && iParam0 < 384)
  	{
  		iVar3 = unk_0x43BE40E27DB6DC2E((iParam0 - 192), 1, 1, iParam2);
  		iVar1 = ((iParam0 - 192) - unk_0x12730A13C85FC896((iParam0 - 192)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar3, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 513 && iParam0 < 705)
  	{
  		iVar4 = unk_0x43BE40E27DB6DC2E((iParam0 - 513), 0, 0, 0);
  		iVar1 = ((iParam0 - 513) - unk_0x12730A13C85FC896((iParam0 - 513)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar4, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 705 && iParam0 < 1281)
  	{
  		iVar5 = unk_0x43BE40E27DB6DC2E((iParam0 - 705), 1, 0, 0);
  		iVar1 = ((iParam0 - 705) - unk_0x12730A13C85FC896((iParam0 - 705)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar5, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 3111 && iParam0 < 3879)
  	{
  		iVar6 = unk_0x840F9A9E6D216561((iParam0 - 3111), 0, 1, iParam2);
  		iVar1 = ((iParam0 - 3111) - unk_0x12730A13C85FC896((iParam0 - 3111)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar6, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 2919 && iParam0 < 3111)
  	{
  		iVar7 = unk_0x840F9A9E6D216561((iParam0 - 2919), 0, 0, 0);
  		iVar1 = ((iParam0 - 2919) - unk_0x12730A13C85FC896((iParam0 - 2919)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar7, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 4207 && iParam0 < 4335)
  	{
  		iVar8 = unk_0x4B2E4855CB2B4FAA((iParam0 - 4207), 0, 1, iParam2, "_NGPSTAT_BOOL");
  		iVar1 = ((iParam0 - 4207) - unk_0x12730A13C85FC896((iParam0 - 4207)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar8, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 4335 && iParam0 < 4399)
  	{
  		iVar9 = unk_0x4B2E4855CB2B4FAA((iParam0 - 4335), 0, 0, 0, "_NGPSTAT_BOOL");
  		iVar1 = ((iParam0 - 4335) - unk_0x12730A13C85FC896((iParam0 - 4335)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar9, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 6029 && iParam0 < 6413)
  	{
  		iVar10 = unk_0x4B2E4855CB2B4FAA((iParam0 - 6029), 0, 1, iParam2, "_NGTATPSTAT_BOOL");
  		iVar1 = ((iParam0 - 6029) - unk_0x12730A13C85FC896((iParam0 - 6029)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar10, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 7385 && iParam0 < 7641)
  	{
  		iVar11 = unk_0x4B2E4855CB2B4FAA((iParam0 - 7385), 0, 1, iParam2, "_NGDLCPSTAT_BOOL");
  		iVar1 = ((iParam0 - 7385) - unk_0x12730A13C85FC896((iParam0 - 7385)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar11, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 7321 && iParam0 < 7385)
  	{
  		iVar12 = unk_0x4B2E4855CB2B4FAA((iParam0 - 7321), 0, 0, 0, "_NGDLCPSTAT_BOOL");
  		iVar1 = ((iParam0 - 7321) - unk_0x12730A13C85FC896((iParam0 - 7321)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar12, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 9361 && iParam0 < 9553)
  	{
  		iVar13 = unk_0x4B2E4855CB2B4FAA((iParam0 - 9361), 0, 1, iParam2, "_DLCBIKEPSTAT_BOOL");
  		iVar1 = ((iParam0 - 9361) - unk_0x12730A13C85FC896((iParam0 - 9361)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar13, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 15369 && iParam0 < 15561)
  	{
  		iVar14 = unk_0x4B2E4855CB2B4FAA((iParam0 - 15369), 0, 1, iParam2, "_DLCGUNPSTAT_BOOL");
  		iVar1 = ((iParam0 - 15369) - unk_0x12730A13C85FC896((iParam0 - 15369)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar14, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 15562 && iParam0 < 15946)
  	{
  		iVar15 = unk_0x4B2E4855CB2B4FAA((iParam0 - 15562), 0, 1, iParam2, "_GUNTATPSTAT_BOOL");
  		iVar1 = ((iParam0 - 15562) - unk_0x12730A13C85FC896((iParam0 - 15562)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar15, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 15946 && iParam0 < 16010)
  	{
  		iVar16 = unk_0x4B2E4855CB2B4FAA((iParam0 - 15946), 0, 1, iParam2, "_DLCSMUGCHARPSTAT_BOOL");
  		iVar1 = ((iParam0 - 15946) - unk_0x12730A13C85FC896((iParam0 - 15946)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar16, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 18098 && iParam0 < 18162)
  	{
  		iVar17 = unk_0x4B2E4855CB2B4FAA((iParam0 - 18098), 0, 1, iParam2, "_GANGOPSPSTAT_BOOL");
  		iVar1 = ((iParam0 - 18098) - unk_0x12730A13C85FC896((iParam0 - 18098)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar17, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 22066 && iParam0 < 22194)
  	{
  		iVar18 = unk_0x4B2E4855CB2B4FAA((iParam0 - 22066), 0, 1, iParam2, "_BUSINESSBATPSTAT_BOOL");
  		iVar1 = ((iParam0 - 22066) - unk_0x12730A13C85FC896((iParam0 - 22066)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar18, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 24962 && iParam0 < 25538)
  	{
  		iVar19 = unk_0x4B2E4855CB2B4FAA((iParam0 - 24962), 0, 1, iParam2, "_ARENAWARSPSTAT_BOOL");
  		iVar1 = ((iParam0 - 24962) - unk_0x12730A13C85FC896((iParam0 - 24962)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar19, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 26810 && iParam0 < 27258)
  	{
  		iVar20 = unk_0x4B2E4855CB2B4FAA((iParam0 - 26810), 0, 1, iParam2, "_CASINOPSTAT_BOOL");
  		iVar1 = ((iParam0 - 26810) - unk_0x12730A13C85FC896((iParam0 - 26810)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar20, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 28098 && iParam0 < 28354)
  	{
  		iVar21 = unk_0x4B2E4855CB2B4FAA((iParam0 - 28098), 0, 1, iParam2, "_CASINOHSTPSTAT_BOOL");
  		iVar1 = ((iParam0 - 28098) - unk_0x12730A13C85FC896((iParam0 - 28098)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar21, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 28355 && iParam0 < 28483)
  	{
  		iVar22 = unk_0x4B2E4855CB2B4FAA((iParam0 - 28355), 0, 1, iParam2, "_HEIST3TATTOOSTAT_BOOL");
  		iVar1 = ((iParam0 - 28355) - unk_0x12730A13C85FC896((iParam0 - 28355)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar22, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 30227 && iParam0 < 30355)
  	{
  		iVar23 = unk_0x4B2E4855CB2B4FAA((iParam0 - 30227), 0, 1, iParam2, "_SU20PSTAT_BOOL");
  		iVar1 = ((iParam0 - 30227) - unk_0x12730A13C85FC896((iParam0 - 30227)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar23, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 30355 && iParam0 < 30483)
  	{
  		iVar24 = unk_0x4B2E4855CB2B4FAA((iParam0 - 30355), 0, 1, iParam2, "_SU20TATTOOSTAT_BOOL");
  		iVar1 = ((iParam0 - 30355) - unk_0x12730A13C85FC896((iParam0 - 30355)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar24, iParam1, iVar1, iParam3);
  	}
  	else if (iParam0 >= 30515 && iParam0 < 30707)
  	{
  		iVar25 = unk_0x4B2E4855CB2B4FAA((iParam0 - 30515), 0, 1, iParam2, "_HISLANDPSTAT_BOOL");
  		iVar1 = ((iParam0 - 30515) - unk_0x12730A13C85FC896((iParam0 - 30515)) * 64);
  		iVar0 = unk_0xC06DB57B81E2C02B(iVar25, iParam1, iVar1, iParam3);
  	}
  	return iVar0;
  }
  
  void func_183(int iParam0)
  {
  	func_204(93, iParam0);
  	func_204(29, iParam0);
  	func_204(30, iParam0);
  }
  
  bool func_184(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	int iVar11;
  	
  	if (iParam0 == 8)
  	{
  		return func_185(129, -1, -1);
  	}
  	if (iParam0 == 9)
  	{
  		return func_185(135, -1, -1);
  	}
  	if (iParam0 == 10)
  	{
  		return func_185(136, -1, -1);
  	}
  	if (iParam0 == 11)
  	{
  		return func_185(137, -1, -1);
  	}
  	if (iParam0 == 12)
  	{
  		iVar0 = unk_0x5A002C4821A13338();
  		iVar1 = func_49(8270, -1, 0);
  		if (iVar1 == 0 || iVar0 >= iVar1)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 13)
  	{
  		iVar2 = unk_0x5A002C4821A13338();
  		iVar3 = func_49(8271, -1, 0);
  		if (iVar3 == 0 || iVar2 >= iVar3)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 14)
  	{
  		iVar4 = unk_0x5A002C4821A13338();
  		iVar5 = func_49(8272, -1, 0);
  		if (iVar5 == 0 || iVar4 >= iVar5)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 15)
  	{
  		iVar6 = unk_0x5A002C4821A13338();
  		iVar7 = func_49(8273, -1, 0);
  		if (iVar7 == 0 || iVar6 >= iVar7)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 16)
  	{
  		iVar8 = unk_0x5A002C4821A13338();
  		iVar9 = func_49(8274, -1, 0);
  		if (iVar9 == 0 || iVar8 >= iVar9)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 17)
  	{
  		iVar10 = unk_0x5A002C4821A13338();
  		iVar11 = func_49(8275, -1, 0);
  		if (iVar11 == 0 || iVar10 >= iVar11)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (!unk_0x25DDB354A40FFCDB())
  	{
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_20560.f_471, iParam0);
  	}
  	return unk_0xCE990E643CD9D0E5(Global_2097152[func_180() /*10931*/].f_6175.f_10, iParam0);
  }
  
  int func_185(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	var uVar2;
  	
  	iVar0 = 0;
  	if (iParam1 == -1)
  	{
  		iParam1 = func_51();
  	}
  	iVar1 = func_187(iParam0, iParam1);
  	uVar2 = func_186(iParam0);
  	if (0 != iVar1)
  	{
  		iVar0 = unk_0x9FD0AD883E4A7C1E(iVar1, uVar2, iParam2);
  	}
  	return iVar0;
  }
  
  int func_186(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	if (iParam0 >= 0 && iParam0 < 192)
  	{
  		iVar0 = ((iParam0 - 0) - unk_0x12730A13C85FC896((iParam0 - 0)) * 64);
  	}
  	else if (iParam0 >= 192 && iParam0 < 384)
  	{
  		iVar0 = ((iParam0 - 192) - unk_0x12730A13C85FC896((iParam0 - 192)) * 64);
  	}
  	else if (iParam0 >= 513 && iParam0 < 705)
  	{
  		iVar0 = ((iParam0 - 513) - unk_0x12730A13C85FC896((iParam0 - 513)) * 64);
  	}
  	else if (iParam0 >= 705 && iParam0 < 1281)
  	{
  		iVar0 = ((iParam0 - 705) - unk_0x12730A13C85FC896((iParam0 - 705)) * 64);
  	}
  	else if (iParam0 >= 2919 && iParam0 < 3111)
  	{
  		iVar0 = ((iParam0 - 2919) - unk_0x12730A13C85FC896((iParam0 - 2919)) * 64);
  	}
  	else if (iParam0 >= 3111 && iParam0 < 3879)
  	{
  		iVar0 = ((iParam0 - 3111) - unk_0x12730A13C85FC896((iParam0 - 3111)) * 64);
  	}
  	else if (iParam0 >= 4335 && iParam0 < 4399)
  	{
  		iVar0 = ((iParam0 - 4335) - unk_0x12730A13C85FC896((iParam0 - 4335)) * 64);
  	}
  	else if (iParam0 >= 4207 && iParam0 < 4335)
  	{
  		iVar0 = ((iParam0 - 4207) - unk_0x12730A13C85FC896((iParam0 - 4207)) * 64);
  	}
  	else if (iParam0 >= 6029 && iParam0 < 6413)
  	{
  		iVar0 = ((iParam0 - 6029) - unk_0x12730A13C85FC896((iParam0 - 6029)) * 64);
  	}
  	else if (iParam0 >= 7385 && iParam0 < 7641)
  	{
  		iVar0 = ((iParam0 - 7385) - unk_0x12730A13C85FC896((iParam0 - 7385)) * 64);
  	}
  	else if (iParam0 >= 7321 && iParam0 < 7385)
  	{
  		iVar0 = ((iParam0 - 7321) - unk_0x12730A13C85FC896((iParam0 - 7321)) * 64);
  	}
  	else if (iParam0 >= 9361 && iParam0 < 9553)
  	{
  		iVar0 = ((iParam0 - 9361) - unk_0x12730A13C85FC896((iParam0 - 9361)) * 64);
  	}
  	else if (iParam0 >= 15369 && iParam0 < 15561)
  	{
  		iVar0 = ((iParam0 - 15369) - unk_0x12730A13C85FC896((iParam0 - 15369)) * 64);
  	}
  	else if (iParam0 >= 15562 && iParam0 < 15946)
  	{
  		iVar0 = ((iParam0 - 15562) - unk_0x12730A13C85FC896((iParam0 - 15562)) * 64);
  	}
  	else if (iParam0 >= 15946 && iParam0 < 16010)
  	{
  		iVar0 = ((iParam0 - 15946) - unk_0x12730A13C85FC896((iParam0 - 15946)) * 64);
  	}
  	else if (iParam0 >= 18098 && iParam0 < 18162)
  	{
  		iVar0 = ((iParam0 - 18098) - unk_0x12730A13C85FC896((iParam0 - 18098)) * 64);
  	}
  	else if (iParam0 >= 22066 && iParam0 < 22194)
  	{
  		iVar0 = ((iParam0 - 22066) - unk_0x12730A13C85FC896((iParam0 - 22066)) * 64);
  	}
  	else if (iParam0 >= 24962 && iParam0 < 25538)
  	{
  		iVar0 = ((iParam0 - 24962) - unk_0x12730A13C85FC896((iParam0 - 24962)) * 64);
  	}
  	else if (iParam0 >= 26810 && iParam0 < 27258)
  	{
  		iVar0 = ((iParam0 - 26810) - unk_0x12730A13C85FC896((iParam0 - 26810)) * 64);
  	}
  	else if (iParam0 >= 28098 && iParam0 < 28354)
  	{
  		iVar0 = ((iParam0 - 28098) - unk_0x12730A13C85FC896((iParam0 - 28098)) * 64);
  	}
  	else if (iParam0 >= 28355 && iParam0 < 28483)
  	{
  		iVar0 = ((iParam0 - 28355) - unk_0x12730A13C85FC896((iParam0 - 28355)) * 64);
  	}
  	else if (iParam0 >= 30227 && iParam0 < 30355)
  	{
  		iVar0 = ((iParam0 - 30227) - unk_0x12730A13C85FC896((iParam0 - 30227)) * 64);
  	}
  	else if (iParam0 >= 30355 && iParam0 < 30483)
  	{
  		iVar0 = ((iParam0 - 30355) - unk_0x12730A13C85FC896((iParam0 - 30355)) * 64);
  	}
  	else if (iParam0 >= 30515 && iParam0 < 30707)
  	{
  		iVar0 = ((iParam0 - 30515) - unk_0x12730A13C85FC896((iParam0 - 30515)) * 64);
  	}
  	return iVar0;
  }
  
  int func_187(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam1 == -1)
  	{
  		iParam1 = func_51();
  	}
  	iVar0 = 0;
  	if (iParam0 >= 0 && iParam0 < 192)
  	{
  		iVar0 = unk_0x43BE40E27DB6DC2E((iParam0 - 0), 0, 1, iParam1);
  	}
  	else if (iParam0 >= 192 && iParam0 < 384)
  	{
  		iVar0 = unk_0x43BE40E27DB6DC2E((iParam0 - 192), 1, 1, iParam1);
  	}
  	else if (iParam0 >= 513 && iParam0 < 705)
  	{
  		iVar0 = unk_0x43BE40E27DB6DC2E((iParam0 - 513), 0, 0, 0);
  	}
  	else if (iParam0 >= 705 && iParam0 < 1281)
  	{
  		iVar0 = unk_0x43BE40E27DB6DC2E((iParam0 - 705), 1, 0, 0);
  	}
  	else if (iParam0 >= 2919 && iParam0 < 3111)
  	{
  		iVar0 = unk_0x840F9A9E6D216561((iParam0 - 2919), 0, 0, 0);
  	}
  	else if (iParam0 >= 3111 && iParam0 < 3879)
  	{
  		iVar0 = unk_0x840F9A9E6D216561((iParam0 - 3111), 0, 1, iParam1);
  	}
  	else if (iParam0 >= 4335 && iParam0 < 4399)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 4335), 0, 0, 0, "_NGPSTAT_BOOL");
  	}
  	else if (iParam0 >= 4207 && iParam0 < 4335)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 4207), 0, 1, iParam1, "_NGPSTAT_BOOL");
  	}
  	else if (iParam0 >= 6029 && iParam0 < 6413)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 6029), 0, 1, iParam1, "_NGTATPSTAT_BOOL");
  	}
  	else if (iParam0 >= 7321 && iParam0 < 7385)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 7321), 0, 0, 0, "_NGDLCPSTAT_BOOL");
  	}
  	else if (iParam0 >= 7385 && iParam0 < 7641)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 7385), 0, 1, iParam1, "_NGDLCPSTAT_BOOL");
  	}
  	else if (iParam0 >= 9361 && iParam0 < 9553)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 9361), 0, 1, iParam1, "_DLCBIKEPSTAT_BOOL");
  	}
  	else if (iParam0 >= 15369 && iParam0 < 15561)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 15369), 0, 1, iParam1, "_DLCGUNPSTAT_BOOL");
  	}
  	else if (iParam0 >= 15562 && iParam0 < 15946)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 15562), 0, 1, iParam1, "_GUNTATPSTAT_BOOL");
  	}
  	else if (iParam0 >= 15946 && iParam0 < 16010)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 15946), 0, 1, iParam1, "_DLCSMUGCHARPSTAT_BOOL");
  	}
  	else if (iParam0 >= 18098 && iParam0 < 18162)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 18098), 0, 1, iParam1, "_GANGOPSPSTAT_BOOL");
  	}
  	else if (iParam0 >= 22066 && iParam0 < 22194)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 22066), 0, 1, iParam1, "_BUSINESSBATPSTAT_BOOL");
  	}
  	else if (iParam0 >= 24962 && iParam0 < 25538)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 24962), 0, 1, iParam1, "_ARENAWARSPSTAT_BOOL");
  	}
  	else if (iParam0 >= 26810 && iParam0 < 27258)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 26810), 0, 1, iParam1, "_CASINOPSTAT_BOOL");
  	}
  	else if (iParam0 >= 28098 && iParam0 < 28354)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 28098), 0, 1, iParam1, "_CASINOHSTPSTAT_BOOL");
  	}
  	else if (iParam0 >= 28355 && iParam0 < 28483)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 28355), 0, 1, iParam1, "_HEIST3TATTOOSTAT_BOOL");
  	}
  	else if (iParam0 >= 30227 && iParam0 < 30355)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 30227), 0, 1, iParam1, "_SU20PSTAT_BOOL");
  	}
  	else if (iParam0 >= 30355 && iParam0 < 30483)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 30355), 0, 1, iParam1, "_SU20TATTOOSTAT_BOOL");
  	}
  	else if (iParam0 >= 30515 && iParam0 < 30707)
  	{
  		iVar0 = unk_0x4B2E4855CB2B4FAA((iParam0 - 30515), 0, 1, iParam1, "_HISLANDPSTAT_BOOL");
  	}
  	return iVar0;
  }
  
  int func_188(bool bParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar1 = 0;
  	if (unk_0x027BA2E902FAC118(27))
  	{
  		return 0;
  	}
  	if (unk_0xD2F202166691EDB2(joaat("SP0_MONEY_TOTAL_SPENT"), &iVar0, -1))
  	{
  		iVar1 = (iVar1 + iVar0);
  	}
  	if (unk_0xD2F202166691EDB2(joaat("SP1_MONEY_TOTAL_SPENT"), &iVar0, -1))
  	{
  		iVar1 = (iVar1 + iVar0);
  	}
  	if (unk_0xD2F202166691EDB2(joaat("SP2_MONEY_TOTAL_SPENT"), &iVar0, -1))
  	{
  		iVar1 = (iVar1 + iVar0);
  	}
  	if (bParam0)
  	{
  	}
  	iVar2 = 0;
  	unk_0xD2F202166691EDB2(joaat("NUM_CASH_SPENT"), &iVar2, -1);
  	if (iVar1 > 0 && (iVar2 / 2000000) != (iVar1 / 2000000))
  	{
  		unk_0x6000E4684CB4330B(joaat("NUM_CASH_SPENT"), iVar1, 1);
  		func_202(27, iVar1);
  	}
  	if (iVar1 < 200000000)
  	{
  		return 0;
  	}
  	func_189(27, 1);
  	return 1;
  }
  
  int func_189(int iParam0, int iParam1)
  {
  	if (iParam0 >= 78)
  	{
  		return 0;
  	}
  	return func_190(iParam0, iParam1);
  }
  
  int func_190(int iParam0, int iParam1)
  {
  	if (func_57(14) && !func_201(iParam0))
  	{
  		return 0;
  	}
  	if (unk_0x027BA2E902FAC118(iParam0) && iParam1 == 1)
  	{
  		return 0;
  	}
  	if (Global_31217 != 0 && !Global_76833)
  	{
  		return 0;
  	}
  	if (func_200(&Global_4271324))
  	{
  		if (func_198(&Global_4271324, iParam0))
  		{
  			return 0;
  		}
  		if (func_191(&Global_4271324, iParam0))
  		{
  			return 1;
  		}
  	}
  	else
  	{
  		if (!unk_0x1C382E0E92F57545(iParam0))
  		{
  			return 0;
  		}
  		if (unk_0x027BA2E902FAC118(iParam0))
  		{
  			return 1;
  		}
  		return 0;
  	}
  	return 0;
  }
  
  int func_191(var uParam0, int iParam1)
  {
  	int iVar0;
  	var uVar1[78];
  	
  	if (unk_0x027BA2E902FAC118(iParam1))
  	{
  		return 0;
  	}
  	if (func_57(14) && !func_201(iParam1))
  	{
  		return 0;
  	}
  	if (func_198(uParam0, iParam1))
  	{
  		return 0;
  	}
  	if (func_197(uParam0) < 0f)
  	{
  		func_196(uParam0, 0);
  	}
  	func_194(&uVar1);
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < (*uParam0 - 1))
  	{
  		uVar1[iVar0 + 1] = (*uParam0)[iVar0];
  		iVar0++;
  	}
  	func_192(&uVar1, iParam1);
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		(*uParam0)[iVar0] = uVar1[iVar0];
  		iVar0++;
  	}
  	return 1;
  }
  
  int func_192(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (unk_0x027BA2E902FAC118(iParam1))
  	{
  		return 0;
  	}
  	if (func_57(14) && !func_201(iParam1))
  	{
  		return 0;
  	}
  	if (func_198(uParam0, iParam1))
  	{
  		return 0;
  	}
  	if (func_197(uParam0) < 0f)
  	{
  		func_196(uParam0, 0);
  	}
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if (func_193(uParam0, iVar0))
  		{
  			(*uParam0)[iVar0] = iParam1;
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  bool func_193(var uParam0, int iParam1)
  {
  	return (*uParam0)[iParam1] == 78;
  }
  
  void func_194(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		func_195(uParam0, iVar0);
  		iVar0++;
  	}
  	func_196(uParam0, (Global_4271323 - 0.5f));
  }
  
  void func_195(var uParam0, int iParam1)
  {
  	(*uParam0)[iParam1] = 78;
  }
  
  void func_196(var uParam0, float fParam1)
  {
  	if (fParam1 == 0f)
  	{
  		uParam0->f_80 = 0f;
  	}
  	else
  	{
  		uParam0->f_80 = fParam1;
  	}
  }
  
  float func_197(var uParam0)
  {
  	return uParam0->f_80;
  }
  
  bool func_198(var uParam0, int iParam1)
  {
  	return func_199(uParam0, iParam1) != -1;
  }
  
  int func_199(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if ((*uParam0)[iVar0] == iParam1)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  bool func_200(var uParam0)
  {
  	return uParam0->f_79 == 1;
  }
  
  int func_201(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 60:
  		case 61:
  		case 62:
  		case 63:
  		case 64:
  		case 65:
  		case 66:
  		case 67:
  		case 68:
  		case 69:
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_202(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam0 < 0)
  	{
  		return 0;
  	}
  	if (iParam0 > 78)
  	{
  		return 0;
  	}
  	if (iParam1 <= 0 || iParam1 > 100)
  	{
  		return 0;
  	}
  	iVar0 = unk_0x76B47D2BF8F31200(iParam0);
  	if (iParam1 > iVar0)
  	{
  		return unk_0xD4563E24351CCDF9(iParam0, iParam1);
  	}
  	return 0;
  }
  
  void func_203(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	unk_0xD2F202166691EDB2(iParam0, &iVar0, -1);
  	iVar0 = (iVar0 + iParam1);
  	unk_0x6000E4684CB4330B(iParam0, iVar0, 1);
  }
  
  void func_204(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam1 < 1)
  	{
  		return;
  	}
  	if (Global_57459[iParam0 /*7*/].f_2)
  	{
  		return;
  	}
  	if (unk_0x25DDB354A40FFCDB())
  	{
  		return;
  	}
  	if (Global_57459[iParam0 /*7*/])
  	{
  		unk_0xD2F202166691EDB2(Global_57459[iParam0 /*7*/].f_1, &iVar0, -1);
  		iVar0 = (iVar0 + iParam1);
  		unk_0x6000E4684CB4330B(Global_57459[iParam0 /*7*/].f_1, iVar0, 1);
  	}
  }
  
  void func_205()
  {
  	int iVar0;
  	
  	if (unk_0x011A67D2B195B6EB())
  	{
  		unk_0xD2F202166691EDB2(joaat("SP0_TOTAL_CASH"), &iVar0, -1);
  		if (!Global_58891[0] == iVar0)
  		{
  			Global_58891[0] = iVar0;
  		}
  		unk_0xD2F202166691EDB2(joaat("SP1_TOTAL_CASH"), &iVar0, -1);
  		if (!Global_58891[1] == iVar0)
  		{
  			Global_58891[1] = iVar0;
  		}
  		unk_0xD2F202166691EDB2(joaat("SP2_TOTAL_CASH"), &iVar0, -1);
  		if (!Global_58891[2] == iVar0)
  		{
  			Global_58891[2] = iVar0;
  		}
  	}
  }
  
  int func_206(int iParam0)
  {
  	return Global_1848[iParam0 /*29*/].f_17;
  }
  
  int func_207(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	int iVar10;
  	var uVar11;
  	var uVar12;
  	var uVar13;
  	struct<14> Var14;
  	var uVar15;
  	
  	if (unk_0x5AEB5DDFFAD43CA5(iParam0) || iParam2 == -99)
  	{
  		return 0;
  	}
  	Global_76645++;
  	iVar5 = -99;
  	iVar6 = -99;
  	iVar7 = -99;
  	iVar8 = -99;
  	iVar9 = -99;
  	iVar10 = unk_0x36FE6D3220816ADA(iParam0);
  	if (iParam5 == 0)
  	{
  		Global_76647[1 /*14*/] = { func_255(iVar10, iParam1, iParam2, -1) };
  		if (!func_254(iParam3))
  		{
  			Global_76645 = (Global_76645 - 1);
  			return 0;
  		}
  		func_250(iParam1);
  	}
  	if (iParam1 == 12)
  	{
  		if (iParam7 == 1)
  		{
  			if (iVar10 == joaat("player_one"))
  			{
  				iVar5 = func_248(iParam0, 8);
  				if (iVar5 != 9)
  				{
  					iVar5 = -99;
  				}
  			}
  			iVar6 = func_248(iParam0, 9);
  			if (iVar10 == joaat("player_zero"))
  			{
  				if (iVar6 >= 9 && iVar6 <= 14)
  				{
  				}
  				else
  				{
  					iVar6 = -99;
  				}
  			}
  			else if (iVar10 == joaat("player_one"))
  			{
  				if (iVar6 >= 5 && iVar6 <= 10)
  				{
  				}
  				else
  				{
  					iVar6 = -99;
  				}
  			}
  			else if (iVar10 == joaat("player_two"))
  			{
  				if ((iVar6 >= 9 && iVar6 <= 14) || (iVar6 >= 15 && iVar6 <= 16))
  				{
  				}
  				else
  				{
  					iVar6 = -99;
  				}
  			}
  			iVar7 = func_247(iParam0, 1);
  			if (!func_246(iVar10, 14, iVar7, -1))
  			{
  				iVar7 = -99;
  			}
  			iVar8 = func_247(iParam0, 0);
  			if (!func_245(iVar10, 14, iVar8, -1) && !func_244(iVar10, 14, iVar8, -1))
  			{
  				iVar8 = -99;
  			}
  			if (iVar10 == joaat("player_one"))
  			{
  				iVar9 = func_247(iParam0, 2);
  			}
  		}
  		unk_0x6BD562D713BA3F70(iParam0);
  		uVar11 = 15;
  		if (iParam5 == 1)
  		{
  			uVar11 = { Global_76690 };
  		}
  		else
  		{
  			uVar11 = { func_240(iVar10, iParam2) };
  		}
  		iVar0 = 0;
  		while (iVar0 <= 14)
  		{
  			if (uVar11[iVar0] != -99)
  			{
  				Global_76647[1 /*14*/] = { func_255(iVar10, iVar0, uVar11[iVar0], -1) };
  				if (unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 0))
  				{
  					if (iVar0 == 13)
  					{
  						uVar12 = 9;
  						if (iParam5 == 1)
  						{
  							uVar12 = { Global_76707 };
  						}
  						else
  						{
  							uVar12 = { func_237(iVar10, uVar11[iVar0]) };
  						}
  						iVar1 = 0;
  						while (iVar1 <= 8)
  						{
  							Global_76647[1 /*14*/] = { func_255(iVar10, 14, uVar12[iVar1], -1) };
  							func_228(iParam0, Global_76647[1 /*14*/].f_12, Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4);
  							func_250(14);
  							if (Global_76645 == 1)
  							{
  								iVar2 = 0;
  								while (iVar2 < 15)
  								{
  									iVar3 = func_220(iParam0, iVar10, 14, uVar12[iVar1], iVar2, 0);
  									if (iVar3 != -99)
  									{
  										func_207(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  									}
  									iVar2++;
  								}
  							}
  							iVar1++;
  						}
  					}
  					else if (iVar0 != 14 && iVar0 != 12)
  					{
  						if ((iVar10 == joaat("player_one") && iVar0 == 2) && uVar11[iVar0] == 20)
  						{
  							func_219(iVar10, 2, 20, &iVar4);
  						}
  						if (iParam4 == -1)
  						{
  							unk_0x45F588C0DD767737(iParam0, func_218(iVar0), Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4, unk_0xABAC9462CD887571(iParam0, func_218(iVar0)));
  						}
  						else
  						{
  							unk_0x45F588C0DD767737(iParam0, func_218(iVar0), Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4, iParam4);
  						}
  						func_250(iVar0);
  						if (Global_76645 == 1)
  						{
  							iVar2 = 0;
  							while (iVar2 < 15)
  							{
  								iVar3 = func_220(iParam0, iVar10, iVar0, uVar11[iVar0], iVar2, 0);
  								if (iVar3 != -99)
  								{
  									func_207(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  								}
  								iVar2++;
  							}
  						}
  					}
  				}
  			}
  			else if (iVar0 != 12 && iVar0 != 14)
  			{
  				Global_76647[1 /*14*/] = { func_255(iVar10, iVar0, func_217(iParam0, iVar0, -1), -1) };
  				if (unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 3))
  				{
  					if (iVar0 == 2)
  					{
  						if (iVar10 == joaat("player_one"))
  						{
  							if (func_216(iParam0, iVar10, &iVar4, 1))
  							{
  								func_207(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  							}
  						}
  					}
  					else
  					{
  						uVar13 = { func_240(iVar10, 0) };
  						func_207(iParam0, iVar0, uVar13[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  				}
  			}
  			iVar0++;
  		}
  		if (iParam7 == 1)
  		{
  			Var14 = { func_255(iVar10, 8, iVar5, -1) };
  			if (iVar5 != -99)
  			{
  				if (func_214(iVar10, iParam2, 8, iVar5, &uVar11, &Var14))
  				{
  					func_207(iParam0, 8, iVar5, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var14 = { func_255(iVar10, 9, iVar6, -1) };
  			if (iVar6 != -99)
  			{
  				if (func_214(iVar10, iParam2, 9, iVar6, &uVar11, &Var14))
  				{
  					func_207(iParam0, 9, iVar6, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var14 = { func_255(iVar10, 14, iVar7, -1) };
  			if (iVar7 != -99)
  			{
  				if (func_214(iVar10, iParam2, 14, iVar7, &uVar11, &Var14))
  				{
  					func_207(iParam0, 14, iVar7, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var14 = { func_255(iVar10, 14, iVar8, -1) };
  			if (iVar8 != -99)
  			{
  				if (func_214(iVar10, iParam2, 14, iVar8, &uVar11, &Var14))
  				{
  					func_207(iParam0, 14, iVar8, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var14 = { func_255(iVar10, 14, iVar9, -1) };
  			if (iVar9 != -99)
  			{
  				if (func_214(iVar10, iParam2, 14, iVar9, &uVar11, &Var14))
  				{
  					func_207(iParam0, 14, iVar9, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  		}
  	}
  	else if (iParam1 == 13)
  	{
  		uVar15 = { func_237(iVar10, iParam2) };
  		iVar1 = 0;
  		while (iVar1 <= 8)
  		{
  			Global_76647[1 /*14*/] = { func_255(iVar10, 14, uVar15[iVar1], -1) };
  			func_228(iParam0, Global_76647[1 /*14*/].f_12, Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4);
  			func_250(14);
  			if (Global_76645 == 1)
  			{
  				iVar2 = 0;
  				while (iVar2 < 15)
  				{
  					iVar3 = func_220(iParam0, iVar10, 14, uVar15[iVar1], iVar2, 0);
  					if (iVar3 != -99)
  					{
  						func_207(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					iVar2++;
  				}
  			}
  			iVar1++;
  		}
  	}
  	else if (iParam1 == 14)
  	{
  		func_228(iParam0, Global_76647[1 /*14*/].f_12, Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4);
  		func_250(iParam1);
  		if (Global_76645 == 1)
  		{
  			iVar2 = 0;
  			while (iVar2 < 15)
  			{
  				iVar3 = func_220(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
  				if (iVar3 != -99)
  				{
  					func_207(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  				}
  				iVar2++;
  			}
  		}
  	}
  	else
  	{
  		if (iParam4 == -1)
  		{
  			unk_0x45F588C0DD767737(iParam0, func_218(iParam1), Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4, unk_0xABAC9462CD887571(iParam0, func_218(iParam1)));
  		}
  		else
  		{
  			unk_0x45F588C0DD767737(iParam0, func_218(iParam1), Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4, iParam4);
  		}
  		if (Global_76645 == 1)
  		{
  			iVar2 = 0;
  			while (iVar2 < 15)
  			{
  				iVar3 = func_220(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
  				if (iVar3 != -99)
  				{
  					func_207(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  				}
  				iVar2++;
  			}
  		}
  		if (iParam6 == 0)
  		{
  			func_211(iVar10, iParam1, iParam2);
  		}
  	}
  	if (Global_76645 == 1)
  	{
  		if (func_216(iParam0, iVar10, &iVar4, 0))
  		{
  			func_207(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  		}
  		if (func_208(iParam0, iVar10, &iVar4))
  		{
  			func_207(iParam0, 1, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  		}
  	}
  	Global_76645 = (Global_76645 - 1);
  	return 1;
  }
  
  int func_208(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	iVar0 = func_210(iParam1);
  	if (Global_111858.f_2359.f_539[iVar0 /*65*/].f_63 != -99)
  	{
  		if (!func_209(iParam0, Global_111858.f_2359.f_539[iVar0 /*65*/].f_64, Global_111858.f_2359.f_539[iVar0 /*65*/].f_63))
  		{
  			*iParam2 = Global_111858.f_2359.f_539[iVar0 /*65*/].f_62;
  			Global_111858.f_2359.f_539[iVar0 /*65*/].f_63 = -99;
  			Global_111858.f_2359.f_539[iVar0 /*65*/].f_64 = 1;
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_209(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	var uVar5;
  	var uVar6;
  	int iVar7;
  	var uVar8;
  	
  	if (unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		return 0;
  	}
  	iVar0 = unk_0x36FE6D3220816ADA(iParam0);
  	Global_76647[1 /*14*/] = { func_255(iVar0, iParam1, iParam2, -1) };
  	if (!unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 0))
  	{
  		return 0;
  	}
  	if (iParam1 == 12)
  	{
  		uVar5 = { func_240(iVar0, iParam2) };
  		iVar2 = 0;
  		while (iVar2 <= 14)
  		{
  			if ((uVar5[iVar2] != -99 && iVar2 != 12) && iVar2 != 14)
  			{
  				if (!func_209(iParam0, iVar2, uVar5[iVar2]))
  				{
  					if (iVar2 == 13)
  					{
  						uVar6 = { func_237(iVar0, uVar5[iVar2]) };
  						iVar3 = 0;
  						while (iVar3 <= 8)
  						{
  							if (!func_209(iParam0, 14, uVar6[iVar3]))
  							{
  								iVar4 = 0;
  								while (iVar4 <= 19)
  								{
  									Global_76647[2 /*14*/] = { func_255(iVar0, 14, iVar4, -1) };
  									if (Global_76647[2 /*14*/].f_12 == iVar3)
  									{
  										if (func_209(iParam0, 14, iVar4))
  										{
  											if (!func_214(iVar0, iParam2, 14, iVar4, &uVar5, &(Global_76647[2 /*14*/])))
  											{
  												return 0;
  											}
  										}
  									}
  									iVar4++;
  								}
  							}
  							iVar3++;
  						}
  					}
  					else
  					{
  						iVar1 = func_248(iParam0, iVar2);
  						Global_76647[2 /*14*/] = { func_255(iVar0, iVar2, iVar1, -1) };
  						if (!func_214(iVar0, iParam2, iVar2, iVar1, &uVar5, &(Global_76647[2 /*14*/])))
  						{
  							return 0;
  						}
  					}
  				}
  			}
  			iVar2++;
  		}
  		return 1;
  	}
  	else if (iParam1 == 13)
  	{
  		uVar8 = { func_237(iVar0, iParam2) };
  		iVar7 = 0;
  		while (iVar7 <= 8)
  		{
  			if (!func_209(iParam0, 14, uVar8[iVar7]))
  			{
  				return 0;
  			}
  			iVar7++;
  		}
  		return 1;
  	}
  	else if (iParam1 == 14)
  	{
  		if (unk_0xA98E0435012EAF07(iParam0, Global_76647[1 /*14*/].f_12) == Global_76647[1 /*14*/].f_3 && (unk_0x77A103B794FA7737(iParam0, Global_76647[1 /*14*/].f_12) == Global_76647[1 /*14*/].f_4 || Global_76647[1 /*14*/].f_3 == -1))
  		{
  			return 1;
  		}
  	}
  	else if (Global_76647[1 /*14*/].f_3 == unk_0x3FB4D40A857CEA77(iParam0, func_218(iParam1)) && Global_76647[1 /*14*/].f_4 == unk_0x79AFA009D186C4FB(iParam0, func_218(iParam1)))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_210(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			return 0;
  			break;
  		
  		case joaat("player_one"):
  			return 1;
  			break;
  		
  		case joaat("player_two"):
  			return 2;
  			break;
  		
  		default:
  			break;
  	}
  	return 145;
  }
  
  void func_211(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (iParam0 == joaat("player_zero"))
  	{
  		iVar0 = 5;
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		iVar0 = 2;
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		iVar0 = 4;
  	}
  	if (func_213(iParam0, 12, iVar0))
  	{
  		if (func_212(iParam0, iParam1, iParam2))
  		{
  			iVar1 = func_210(iParam0);
  			if (iParam1 == 3)
  			{
  				Global_111858.f_2359.f_539.f_196[iVar1] = iParam2;
  			}
  			else if (iParam1 == 4)
  			{
  				Global_111858.f_2359.f_539.f_200[iVar1] = iParam2;
  			}
  		}
  	}
  }
  
  int func_212(int iParam0, int iParam1, int iParam2)
  {
  	if (iParam0 == joaat("player_zero"))
  	{
  		if (iParam1 == 4)
  		{
  			if (iParam2 >= 47 && iParam2 <= 54)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 3)
  		{
  			if (iParam2 >= 77 && iParam2 <= 84)
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		if (iParam1 == 4)
  		{
  			if (iParam2 >= 14 && iParam2 <= 21)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 3)
  		{
  			if (iParam2 >= 41 && iParam2 <= 56)
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		if (iParam1 == 4)
  		{
  			if (iParam2 >= 18 && iParam2 <= 29)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 3)
  		{
  			if (iParam2 >= 54 && iParam2 <= 69)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  bool func_213(int iParam0, int iParam1, int iParam2)
  {
  	Global_76647[1 /*14*/] = { func_255(iParam0, iParam1, iParam2, -1) };
  	return unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 2);
  }
  
  int func_214(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4, var uParam5)
  {
  	var uVar0;
  	int iVar1;
  	
  	if ((*uParam4)[iParam2] == iParam3)
  	{
  		return 1;
  	}
  	if (((*uParam4)[iParam2] == -99 && iParam2 != 14) && iParam2 != 13)
  	{
  		return 1;
  	}
  	if (iParam2 == 13 || (iParam2 == 14 && (*uParam4)[13] == 31))
  	{
  		if ((((((((iParam3 == 0 || iParam3 == 1) || iParam3 == 2) || iParam3 == 3) || iParam3 == 4) || iParam3 == 5) || iParam3 == 6) || iParam3 == 7) || iParam3 == 8)
  		{
  			return 1;
  		}
  	}
  	if (iParam3 == -99 || uParam5->f_1 == -1)
  	{
  		return 1;
  	}
  	if (iParam2 == 14)
  	{
  		uVar0 = { func_237(iParam0, (*uParam4)[13]) };
  		iVar1 = 0;
  		while (iVar1 <= 8)
  		{
  			if (uVar0[iVar1] == iParam3)
  			{
  				return 1;
  			}
  			iVar1++;
  		}
  	}
  	if (func_215(iParam0, iParam2, iParam3))
  	{
  		return 1;
  	}
  	if (iParam0 == joaat("player_zero"))
  	{
  		if (func_246(iParam0, iParam2, iParam3, -1))
  		{
  			if ((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 18) || iParam1 == 50)
  			{
  				return 0;
  			}
  			return 1;
  		}
  		else if (func_245(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 4) || iParam1 == 5) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 14) || iParam1 == 18) || iParam1 == 50)
  			{
  				return 0;
  			}
  			if (iParam2 == 8)
  			{
  				if ((*uParam4)[8] != 0)
  				{
  					return 0;
  				}
  			}
  			else if (iParam2 == 9)
  			{
  				if ((*uParam4)[9] != 0)
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  		else if (func_244(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 4) || iParam1 == 5) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 14) || iParam1 == 18) || iParam1 == 50)
  			{
  				return 0;
  			}
  			return 1;
  		}
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		if (func_246(iParam0, iParam2, iParam3, -1))
  		{
  			if ((iParam1 == 3 || iParam1 == 5) || iParam1 == 7)
  			{
  				return 0;
  			}
  			return 1;
  		}
  		else if (func_245(iParam0, iParam2, iParam3, -1))
  		{
  			if ((((iParam1 == 3 || iParam1 == 5) || iParam1 == 7) || iParam1 == 8) || iParam1 == 21)
  			{
  				if (iParam2 == 8)
  				{
  					if (iParam3 == 9)
  					{
  						if (iParam1 == 8 || iParam1 == 21)
  						{
  							return 1;
  						}
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				else
  				{
  					return 0;
  				}
  			}
  			if (iParam2 == 8)
  			{
  				if ((*uParam4)[8] != 26)
  				{
  					return 0;
  				}
  			}
  			else if (iParam2 == 9)
  			{
  				if ((*uParam4)[9] != 0)
  				{
  					return 0;
  				}
  				if (((iParam1 == 43 || iParam1 == 44) || iParam1 == 45) || iParam1 == 46)
  				{
  					if (iParam3 >= 5 && iParam3 <= 10)
  					{
  						return 0;
  					}
  				}
  			}
  			else if (iParam2 == 14)
  			{
  				if (((iParam1 == 43 || iParam1 == 44) || iParam1 == 45) || iParam1 == 46)
  				{
  					if (iParam3 >= 26 && iParam3 <= 39)
  					{
  						return 0;
  					}
  				}
  			}
  			return 1;
  		}
  		else if (func_244(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((iParam1 == 3 || iParam1 == 3) || iParam1 == 5) || iParam1 == 7) || iParam1 == 8) || iParam1 == 21)
  			{
  				return 0;
  			}
  			return 1;
  		}
  		else if (iParam2 == 14)
  		{
  			if (iParam3 >= 159 && iParam3 <= 174)
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		if (iParam1 == 2)
  		{
  			if (iParam2 == 14 && iParam3 == 0)
  			{
  				return 1;
  			}
  		}
  		if (func_246(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((iParam1 == 1 || iParam1 == 2) || iParam1 == 6) || iParam1 == 8) || iParam1 == 45) || iParam1 == 12)
  			{
  				return 0;
  			}
  			return 1;
  		}
  		else if (func_245(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 3) || iParam1 == 6) || iParam1 == 8) || iParam1 == 11) || iParam1 == 45) || iParam1 == 12)
  			{
  				return 0;
  			}
  			if (iParam2 == 8)
  			{
  				if ((*uParam4)[8] != 15)
  				{
  					return 0;
  				}
  			}
  			else if (iParam2 == 9)
  			{
  				if ((*uParam4)[9] != 0)
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  		else if (func_244(iParam0, iParam2, iParam3, -1))
  		{
  			if ((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 3) || iParam1 == 6) || iParam1 == 8) || iParam1 == 11) || iParam1 == 12)
  			{
  				return 0;
  			}
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_215(int iParam0, int iParam1, int iParam2)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 8:
  					if (iParam2 == 15)
  					{
  						return 1;
  					}
  					break;
  				
  				case 9:
  					if (iParam2 == 6)
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 8:
  					if (iParam2 == 1 || iParam2 == 10)
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 8:
  					if (iParam2 == 4)
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_216(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_210(iParam1);
  	if (Global_111858.f_2359.f_539[iVar0 /*65*/].f_60 != -99)
  	{
  		if (!func_209(iParam0, Global_111858.f_2359.f_539[iVar0 /*65*/].f_61, Global_111858.f_2359.f_539[iVar0 /*65*/].f_60) || iParam3 == 1)
  		{
  			*iParam2 = Global_111858.f_2359.f_539[iVar0 /*65*/].f_59;
  			Global_111858.f_2359.f_539[iVar0 /*65*/].f_60 = -99;
  			Global_111858.f_2359.f_539[iVar0 /*65*/].f_61 = 2;
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_217(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		if (iParam1 == 12)
  		{
  			iVar0 = 0;
  			while (iVar0 <= 53)
  			{
  				if (func_209(iParam0, iParam1, iVar0))
  				{
  					return iVar0;
  				}
  				iVar0++;
  			}
  		}
  		else if (iParam1 == 13)
  		{
  			iVar1 = 0;
  			while (iVar1 <= 19)
  			{
  				if (func_209(iParam0, iParam1, iVar1))
  				{
  					return iVar1;
  				}
  				iVar1++;
  			}
  			return 31;
  		}
  		else if (iParam1 == 14)
  		{
  			if (iParam2 == -1)
  			{
  			}
  			else
  			{
  				return func_247(iParam0, iParam2);
  			}
  		}
  		else
  		{
  			return func_248(iParam0, iParam1);
  		}
  	}
  	return -99;
  }
  
  int func_218(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  			break;
  		
  		case 2:
  			return 2;
  			break;
  		
  		case 3:
  			return 3;
  			break;
  		
  		case 4:
  			return 4;
  			break;
  		
  		case 6:
  			return 6;
  			break;
  		
  		case 5:
  			return 5;
  			break;
  		
  		case 8:
  			return 8;
  			break;
  		
  		case 9:
  			return 9;
  			break;
  		
  		case 10:
  			return 10;
  			break;
  		
  		case 1:
  			return 1;
  			break;
  		
  		case 7:
  			return 7;
  			break;
  		
  		case 11:
  			return 11;
  			break;
  	}
  	return 0;
  }
  
  int func_219(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	*iParam3 = -99;
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 8:
  					if (iParam2 == 7 || iParam2 == 23)
  					{
  						*iParam3 = 1;
  					}
  					break;
  				
  				case 9:
  					if (iParam2 == 8 || (iParam2 >= 9 && iParam2 <= 14))
  					{
  						*iParam3 = 1;
  					}
  					break;
  				
  				case 10:
  					if (iParam2 >= 44 && iParam2 <= 47)
  					{
  						*iParam3 = 1;
  					}
  					break;
  				
  				case 14:
  					if ((((((iParam2 >= 31 && iParam2 <= 32) || (iParam2 >= 33 && iParam2 <= 34)) || (iParam2 >= 35 && iParam2 <= 36)) || iParam2 == 37) || (iParam2 >= 40 && iParam2 <= 41)) || iParam2 == 46)
  					{
  						*iParam3 = 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 2:
  					if (iParam2 == 20)
  					{
  						*iParam3 = 20;
  					}
  					break;
  				
  				case 8:
  					if (iParam2 == 4)
  					{
  						*iParam3 = 19;
  					}
  					break;
  				
  				case 9:
  					if (iParam2 >= 5 && iParam2 <= 10)
  					{
  						*iParam3 = 19;
  					}
  					break;
  				
  				case 10:
  					if (iParam2 >= 47 && iParam2 <= 50)
  					{
  						*iParam3 = 19;
  					}
  					break;
  				
  				case 14:
  					if (((((iParam2 >= 26 && iParam2 <= 27) || (iParam2 >= 28 && iParam2 <= 29)) || (iParam2 >= 30 && iParam2 <= 31)) || iParam2 == 32) || (iParam2 >= 35 && iParam2 <= 36))
  					{
  						*iParam3 = 19;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 8:
  					if (iParam2 == 7)
  					{
  						*iParam3 = 2;
  					}
  					break;
  				
  				case 9:
  					if ((iParam2 >= 9 && iParam2 <= 14) || (iParam2 >= 15 && iParam2 <= 16))
  					{
  						*iParam3 = 2;
  					}
  					break;
  				
  				case 10:
  					if (iParam2 >= 29 && iParam2 <= 32)
  					{
  						*iParam3 = 2;
  					}
  					break;
  				
  				case 14:
  					if ((((((iParam2 >= 47 && iParam2 <= 48) || (iParam2 >= 49 && iParam2 <= 50)) || (iParam2 >= 51 && iParam2 <= 52)) || iParam2 == 53) || (iParam2 >= 56 && iParam2 <= 57)) || iParam2 == 62)
  					{
  						*iParam3 = 2;
  					}
  					break;
  			}
  			break;
  	}
  	if (*iParam3 != -99)
  	{
  		iVar0 = func_210(iParam0);
  		Global_111858.f_2359.f_539[iVar0 /*65*/].f_60 = iParam2;
  		Global_111858.f_2359.f_539[iVar0 /*65*/].f_61 = iParam1;
  		return 1;
  	}
  	return 0;
  }
  
  int func_220(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	
  	iVar0 = -99;
  	if (iParam4 == 0)
  	{
  		switch (iParam2)
  		{
  			case 2:
  				iVar1 = func_248(iParam0, 1);
  				iVar0 = func_227(iParam1, iParam3, iVar1);
  				break;
  			
  			case 1:
  				iVar2 = func_248(iParam0, 2);
  				iVar0 = func_227(iParam1, iVar2, iParam3);
  				break;
  		}
  	}
  	else if (iParam4 == 2)
  	{
  		func_219(iParam1, iParam2, iParam3, &iVar0);
  	}
  	else if (iParam4 == 1)
  	{
  		func_226(iParam1, iParam2, iParam3, &iVar0);
  	}
  	else if (iParam4 == 6)
  	{
  		if (iParam2 == 4)
  		{
  			if (func_225(iParam1, iParam3, &iVar0))
  			{
  			}
  		}
  	}
  	else
  	{
  		switch (iParam1)
  		{
  			case joaat("player_zero"):
  				switch (iParam4)
  				{
  					case 3:
  						switch (iParam2)
  						{
  							case 10:
  								switch (iParam3)
  								{
  									case 36:
  										iVar0 = 17;
  										break;
  									
  									case 37:
  										iVar0 = 17;
  										break;
  									
  									case 38:
  										iVar0 = 18;
  										break;
  									
  									case 39:
  										iVar0 = 18;
  										break;
  									
  									case 40:
  										iVar0 = 19;
  										break;
  									
  									case 41:
  										iVar0 = 19;
  										break;
  									
  									case 42:
  										iVar0 = 20;
  										break;
  									
  									case 43:
  										iVar0 = 20;
  										break;
  								}
  								break;
  							
  							case 11:
  								if (iParam3 >= 2 && iParam3 <= 7)
  								{
  									if (!func_224(iParam0, 3, 44, 59))
  									{
  										iVar0 = 44;
  									}
  								}
  								else if (((iParam3 >= 8 && iParam3 <= 17) || (iParam3 >= 18 && iParam3 <= 27)) || (iParam3 >= 28 && iParam3 <= 43))
  								{
  									if (!func_224(iParam0, 3, 135, 150))
  									{
  										iVar0 = func_223(iParam1, 3, 135, 150);
  									}
  								}
  								break;
  						}
  						break;
  					
  					case 10:
  						switch (iParam2)
  						{
  							case 3:
  								switch (iParam3)
  								{
  									case 63:
  										iVar0 = 4;
  										break;
  									
  									case 61:
  										iVar0 = 3;
  										break;
  									
  									case 16:
  										iVar0 = 1;
  										break;
  									
  									case 114:
  										iVar0 = 15;
  										break;
  									
  									case 115:
  										iVar0 = 17;
  										break;
  									
  									case 116:
  										iVar0 = 16;
  										break;
  									
  									case 117:
  										iVar0 = 18;
  										break;
  									
  									case 118:
  										iVar0 = 20;
  										break;
  									
  									case 119:
  										iVar0 = 19;
  										break;
  									
  									case 125:
  										iVar0 = 21;
  										break;
  									
  									case 120:
  										iVar0 = 22;
  										break;
  									
  									case 124:
  										iVar0 = 23;
  										break;
  									
  									case 126:
  										iVar0 = 24;
  										break;
  									
  									case 121:
  										iVar0 = 25;
  										break;
  									
  									case 127:
  										iVar0 = 26;
  										break;
  									
  									case 128:
  										iVar0 = 27;
  										break;
  									
  									case 85:
  										iVar0 = 6;
  										break;
  									
  									case 77:
  										iVar0 = 7;
  										break;
  									
  									case 78:
  										iVar0 = 8;
  										break;
  									
  									case joaat("MPSV_LP0_31"):
  										iVar0 = 9;
  										break;
  									
  									case 80:
  										iVar0 = 10;
  										break;
  									
  									case 81:
  										iVar0 = 11;
  										break;
  									
  									case 82:
  										iVar0 = 12;
  										break;
  									
  									case 83:
  										iVar0 = 13;
  										break;
  									
  									case 84:
  										iVar0 = 14;
  										break;
  									
  									case 21:
  										iVar0 = 31;
  										break;
  									
  									case 22:
  										iVar0 = 30;
  										break;
  									
  									case 23:
  										iVar0 = 29;
  										break;
  									
  									case 24:
  										iVar0 = 28;
  										break;
  									
  									case 25:
  										iVar0 = 33;
  										break;
  									
  									case 26:
  										iVar0 = 35;
  										break;
  									
  									case 27:
  										iVar0 = 34;
  										break;
  									
  									case 28:
  										iVar0 = 32;
  										break;
  									
  									default:
  										if (iParam3 >= 17 && iParam3 <= 20)
  										{
  										}
  										else
  										{
  											iVar0 = 0;
  										}
  										break;
  								}
  								break;
  							
  							case 11:
  								if (iParam3 != 0)
  								{
  									iVar0 = 0;
  								}
  								break;
  						}
  						break;
  					
  					case 11:
  						if (iParam2 == 3)
  						{
  							if ((iParam3 >= 44 && iParam3 <= 59) || (iParam3 >= 135 && iParam3 <= 150))
  							{
  							}
  							else
  							{
  								iVar0 = 0;
  							}
  						}
  						else if (iParam2 == 10)
  						{
  							if (iParam3 >= 36 && iParam3 <= 43)
  							{
  								iVar0 = 0;
  							}
  						}
  						break;
  				}
  				break;
  			
  			case joaat("player_one"):
  				switch (iParam4)
  				{
  					case 10:
  						switch (iParam2)
  						{
  							case 3:
  								switch (iParam3)
  								{
  									case 17:
  										iVar0 = 2;
  										break;
  									
  									case 90:
  										iVar0 = 1;
  										break;
  									
  									case 268:
  										iVar0 = 3;
  										break;
  									
  									case 269:
  										iVar0 = 5;
  										break;
  									
  									case 270:
  										iVar0 = 4;
  										break;
  									
  									case 271:
  										iVar0 = 6;
  										break;
  									
  									case 272:
  										iVar0 = 8;
  										break;
  									
  									case 273:
  										iVar0 = 7;
  										break;
  									
  									case 279:
  										iVar0 = 9;
  										break;
  									
  									case 274:
  										iVar0 = 10;
  										break;
  									
  									case 278:
  										iVar0 = 11;
  										break;
  									
  									case 280:
  										iVar0 = 12;
  										break;
  									
  									case 275:
  										iVar0 = 13;
  										break;
  									
  									case 281:
  										iVar0 = 14;
  										break;
  									
  									case 282:
  										iVar0 = 15;
  										break;
  									
  									case 107:
  										iVar0 = 16;
  										break;
  									
  									case 108:
  										iVar0 = 17;
  										break;
  									
  									case 109:
  										iVar0 = 18;
  										break;
  									
  									case 110:
  										iVar0 = 19;
  										break;
  									
  									case 111:
  										iVar0 = 20;
  										break;
  									
  									case 112:
  										iVar0 = 21;
  										break;
  									
  									case 113:
  										iVar0 = 22;
  										break;
  									
  									case 114:
  										iVar0 = 23;
  										break;
  									
  									case 115:
  										iVar0 = 24;
  										break;
  									
  									case 116:
  										iVar0 = 25;
  										break;
  									
  									case 117:
  										iVar0 = 52;
  										break;
  									
  									case 118:
  										iVar0 = 27;
  										break;
  									
  									case 119:
  										iVar0 = 28;
  										break;
  									
  									case 120:
  										iVar0 = 29;
  										break;
  									
  									case 121:
  										iVar0 = 30;
  										break;
  									
  									case 122:
  										iVar0 = 31;
  										break;
  									
  									case 296:
  										iVar0 = 32;
  										break;
  									
  									case 297:
  										iVar0 = 33;
  										break;
  									
  									case 298:
  										iVar0 = 34;
  										break;
  									
  									case 299:
  										iVar0 = 35;
  										break;
  									
  									case 300:
  										iVar0 = 36;
  										break;
  									
  									case 301:
  										iVar0 = 37;
  										break;
  									
  									case 302:
  										iVar0 = 38;
  										break;
  									
  									case 309:
  										iVar0 = 39;
  										break;
  									
  									case 310:
  										iVar0 = 40;
  										break;
  									
  									case 311:
  										iVar0 = 41;
  										break;
  									
  									case 312:
  										iVar0 = 42;
  										break;
  									
  									case 313:
  										iVar0 = 43;
  										break;
  									
  									case 314:
  										iVar0 = 44;
  										break;
  									
  									case 315:
  										iVar0 = 45;
  										break;
  									
  									case 316:
  										iVar0 = 46;
  										break;
  									
  									case 317:
  										iVar0 = 51;
  										break;
  									
  									default:
  										iVar0 = 0;
  										break;
  								}
  								break;
  							
  							case 11:
  								if (iParam3 != 0)
  								{
  									iVar0 = 0;
  								}
  								break;
  						}
  						break;
  					
  					case 3:
  						switch (iParam2)
  						{
  							case 11:
  								if (iParam3 >= 47 && iParam3 <= 62)
  								{
  									if (!func_224(iParam0, 3, 209, 222))
  									{
  										iVar0 = func_223(iParam1, 3, 209, 222);
  									}
  								}
  								else if ((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8))
  								{
  									if (!func_224(iParam0, 3, 243, 258))
  									{
  										if (iParam3 == 1 || iParam3 == 5)
  										{
  											iVar0 = func_223(iParam1, 3, 243, 246);
  										}
  										else if (iParam3 == 2 || iParam3 == 6)
  										{
  											iVar0 = func_223(iParam1, 3, 247, 250);
  										}
  										else if (iParam3 == 3 || iParam3 == 7)
  										{
  											iVar0 = func_223(iParam1, 3, 251, 254);
  										}
  										else if (iParam3 == 4 || iParam3 == 8)
  										{
  											iVar0 = func_223(iParam1, 3, 255, 258);
  										}
  									}
  								}
  								else if (iParam3 == 41 || iParam3 == 42)
  								{
  									if (!func_224(iParam0, 3, 176, 191) && !func_224(iParam0, 3, 227, 242))
  									{
  										iVar0 = func_223(iParam1, 3, 176, 191);
  									}
  								}
  								break;
  						}
  						break;
  					
  					case 8:
  						if (iParam2 == 11 || iParam2 == 3)
  						{
  							if (iParam2 == 11)
  							{
  								iVar5 = iParam3;
  								iVar4 = func_248(iParam0, 3);
  							}
  							else if (iParam2 == 3)
  							{
  								iVar4 = iParam3;
  								iVar5 = func_248(iParam0, 11);
  								iVar5 = func_222(iParam1, iVar4, iVar5, 0);
  							}
  							iVar3 = func_248(iParam0, 8);
  							if (((iVar5 >= 5 && iVar5 <= 8) || (iVar5 >= 25 && iVar5 <= 40)) || (iVar5 >= 42 && iVar5 <= 43))
  							{
  								if (!func_221(joaat("player_one"), iVar3, iVar5, iVar4, &iVar6))
  								{
  									if (iVar6 != -99)
  									{
  										iVar0 = iVar6;
  									}
  								}
  							}
  							else if (((iVar3 >= 27 && iVar3 <= 42) || (iVar3 >= 43 && iVar3 <= 58)) || (iVar3 >= 59 && iVar3 <= 74))
  							{
  								iVar0 = 26;
  							}
  						}
  						break;
  					
  					case 11:
  						if (iParam2 == 3)
  						{
  							if (iParam3 >= 209 && iParam3 <= 222)
  							{
  							}
  							else if (((iParam3 >= 176 && iParam3 <= 191) || (iParam3 >= 227 && iParam3 <= 242)) || (iParam3 >= 243 && iParam3 <= 258))
  							{
  								iVar7 = func_248(iParam0, 8);
  								iVar8 = func_248(iParam0, 11);
  								if (((iVar7 >= 27 && iVar7 <= 42) || (iVar7 >= 43 && iVar7 <= 58)) || (iVar7 >= 59 && iVar7 <= 74))
  								{
  									iVar0 = func_222(iParam1, iParam3, iVar8, 0);
  								}
  								else
  								{
  									iVar0 = func_222(iParam1, iParam3, iVar8, 1);
  								}
  							}
  							else if (iParam3 >= 41 && iParam3 <= 56)
  							{
  								iVar0 = 45;
  							}
  							else if (iParam3 >= 223 && iParam3 <= 226)
  							{
  								iVar0 = 44;
  							}
  							else
  							{
  								iVar0 = 0;
  							}
  						}
  						else if (iParam2 == 8)
  						{
  							if (((iParam3 >= 27 && iParam3 <= 42) || (iParam3 >= 43 && iParam3 <= 58)) || (iParam3 >= 59 && iParam3 <= 74))
  							{
  								iVar9 = func_248(iParam0, 11);
  								iVar0 = func_222(iParam1, -99, iVar9, 0);
  							}
  						}
  						break;
  				}
  				break;
  			
  			case joaat("player_two"):
  				switch (iParam4)
  				{
  					case 10:
  						switch (iParam2)
  						{
  							case 3:
  								switch (iParam3)
  								{
  									case 50:
  										iVar0 = 3;
  										break;
  									
  									case 81:
  										iVar0 = 5;
  										break;
  									
  									case 82:
  										iVar0 = 6;
  										break;
  									
  									case 83:
  										iVar0 = 7;
  										break;
  									
  									case 84:
  										iVar0 = 10;
  										break;
  									
  									case 85:
  										iVar0 = 9;
  										break;
  									
  									case 86:
  										iVar0 = 8;
  										break;
  									
  									case 92:
  										iVar0 = 22;
  										break;
  									
  									case 87:
  										iVar0 = 23;
  										break;
  									
  									case 91:
  										iVar0 = 24;
  										break;
  									
  									case 93:
  										iVar0 = 25;
  										break;
  									
  									case 88:
  										iVar0 = 26;
  										break;
  									
  									case 94:
  										iVar0 = 27;
  										break;
  									
  									case 120:
  										iVar0 = 11;
  										break;
  									
  									case 121:
  										iVar0 = 13;
  										break;
  									
  									case 122:
  										iVar0 = 14;
  										break;
  									
  									case 124:
  										iVar0 = 12;
  										break;
  									
  									case 126:
  										iVar0 = 18;
  										break;
  									
  									case 128:
  										iVar0 = 17;
  										break;
  									
  									case 130:
  										iVar0 = 19;
  										break;
  									
  									case 131:
  										iVar0 = 16;
  										break;
  									
  									case 134:
  										iVar0 = 15;
  										break;
  									
  									case 135:
  										iVar0 = 20;
  										break;
  									
  									default:
  										iVar0 = 0;
  										break;
  								}
  								break;
  						}
  						break;
  				}
  				break;
  			}
  	}
  	return iVar0;
  }
  
  int func_221(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			break;
  		
  		case joaat("player_one"):
  			*uParam4 = 0;
  			if (iParam1 >= 27 && iParam1 <= 42)
  			{
  				if (iParam2 != -99)
  				{
  					if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
  					{
  					}
  					else
  					{
  						if (iParam2 >= 42 && iParam2 <= 43)
  						{
  							if (iParam3 >= 176 && iParam3 <= 191)
  							{
  								iVar0 = (iParam1 - 27);
  								*uParam4 = (59 + iVar0);
  							}
  							else if (iParam3 >= 227 && iParam3 <= 242)
  							{
  								iVar0 = (iParam1 - 27);
  								*uParam4 = (43 + iVar0);
  							}
  						}
  						return 0;
  					}
  				}
  				if (iParam3 != -99)
  				{
  					if (((iParam3 >= 227 && iParam3 <= 242) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 243 && iParam3 <= 258))
  					{
  					}
  					else
  					{
  						return 0;
  					}
  				}
  			}
  			else if (iParam1 >= 43 && iParam1 <= 58)
  			{
  				if (iParam2 != -99)
  				{
  					if (iParam2 >= 42 && iParam2 <= 43)
  					{
  					}
  					else
  					{
  						if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
  						{
  							iVar0 = (iParam1 - 43);
  							*uParam4 = (27 + iVar0);
  						}
  						return 0;
  					}
  				}
  				if (iParam3 != -99)
  				{
  					if (iParam3 >= 227 && iParam3 <= 242)
  					{
  					}
  					else
  					{
  						if (iParam3 >= 176 && iParam3 <= 191)
  						{
  							if (iParam2 >= 42 && iParam2 <= 43)
  							{
  								iVar0 = (iParam1 - 43);
  								*uParam4 = (59 + iVar0);
  							}
  						}
  						return 0;
  					}
  				}
  			}
  			else if (iParam1 >= 59 && iParam1 <= 74)
  			{
  				if (iParam2 != -99)
  				{
  					if (iParam2 >= 42 && iParam2 <= 43)
  					{
  					}
  					else
  					{
  						if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
  						{
  							iVar0 = (iParam1 - 59);
  							*uParam4 = (27 + iVar0);
  						}
  						return 0;
  					}
  				}
  				if (iParam3 != -99)
  				{
  					if (iParam3 >= 176 && iParam3 <= 191)
  					{
  					}
  					else
  					{
  						if (iParam3 >= 227 && iParam3 <= 242)
  						{
  							if (iParam2 >= 42 && iParam2 <= 43)
  							{
  								iVar0 = (iParam1 - 59);
  								*uParam4 = (43 + iVar0);
  							}
  						}
  						else if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
  						{
  							iVar0 = (iParam1 - 59);
  							*uParam4 = (27 + iVar0);
  						}
  						return 0;
  					}
  				}
  			}
  			break;
  		
  		case joaat("player_two"):
  			if (iParam1 == 12)
  			{
  				if (iParam3 != 241)
  				{
  					return 0;
  				}
  			}
  			break;
  	}
  	return 1;
  }
  
  int func_222(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	if (iParam1 >= 243 && iParam1 <= 246)
  	{
  		if (iParam3 == 1)
  		{
  			return 1;
  		}
  		else
  		{
  			return 5;
  		}
  	}
  	else if (iParam1 >= 247 && iParam1 <= 250)
  	{
  		if (iParam3 == 1)
  		{
  			return 2;
  		}
  		else
  		{
  			return 6;
  		}
  	}
  	else if (iParam1 >= 251 && iParam1 <= 254)
  	{
  		if (iParam3 == 1)
  		{
  			return 3;
  		}
  		else
  		{
  			return 7;
  		}
  	}
  	else if (iParam1 >= 255 && iParam1 <= 258)
  	{
  		if (iParam3 == 1)
  		{
  			return 4;
  		}
  		else
  		{
  			return 8;
  		}
  	}
  	else if (iParam1 >= 255 && iParam1 <= 258)
  	{
  		if (iParam3 == 1)
  		{
  			return 4;
  		}
  		else
  		{
  			return 8;
  		}
  	}
  	else if ((iParam1 >= 176 && iParam1 <= 191) || (iParam1 >= 227 && iParam1 <= 242))
  	{
  		if (iParam2 >= 9 && iParam2 <= 24)
  		{
  			if (iParam3 == 1)
  			{
  				return iParam2;
  			}
  			else
  			{
  				iVar0 = (iParam2 - 9);
  				iParam2 = (25 + iVar0);
  				return iParam2;
  			}
  		}
  		else if (iParam2 >= 25 && iParam2 <= 40)
  		{
  			if (iParam3 == 1)
  			{
  				iVar0 = (iParam2 - 25);
  				iParam2 = (9 + iVar0);
  				return iParam2;
  			}
  			else
  			{
  				return iParam2;
  			}
  		}
  		else if (iParam2 == 41 || iParam2 == 42)
  		{
  			if (iParam3 == 1)
  			{
  				return 41;
  			}
  			else
  			{
  				return 42;
  			}
  		}
  		else
  		{
  			if (iParam3 == 1)
  			{
  				iParam2 = func_223(iParam0, 11, 9, 24);
  			}
  			else
  			{
  				iParam2 = func_223(iParam0, 11, 25, 40);
  			}
  			if (iParam2 == -99)
  			{
  				if (iParam3 == 1)
  				{
  					return 41;
  				}
  				else
  				{
  					return 42;
  				}
  			}
  			else
  			{
  				return iParam2;
  			}
  		}
  	}
  	else if (iParam2 >= 1 && iParam2 <= 4)
  	{
  		if (iParam3 == 1)
  		{
  			return iParam2;
  		}
  		else
  		{
  			iVar0 = (iParam2 - 1);
  			iParam2 = (5 + iVar0);
  			return iParam2;
  		}
  	}
  	else if (iParam2 >= 5 && iParam2 <= 8)
  	{
  		if (iParam3 == 1)
  		{
  			iVar0 = (iParam2 - 5);
  			iParam2 = (1 + iVar0);
  			return iParam2;
  		}
  		else
  		{
  			return iParam2;
  		}
  	}
  	else if (iParam2 >= 9 && iParam2 <= 24)
  	{
  		if (iParam3 == 1)
  		{
  			return iParam2;
  		}
  		else
  		{
  			iVar0 = (iParam2 - 9);
  			iParam2 = (25 + iVar0);
  			return iParam2;
  		}
  	}
  	else if (iParam2 >= 25 && iParam2 <= 40)
  	{
  		if (iParam3 == 1)
  		{
  			iVar0 = (iParam2 - 25);
  			iParam2 = (9 + iVar0);
  			return iParam2;
  		}
  		else
  		{
  			return iParam2;
  		}
  	}
  	else if (iParam2 == 41 || iParam2 == 42)
  	{
  		if (iParam3 == 1)
  		{
  			return 41;
  		}
  		else
  		{
  			return 42;
  		}
  	}
  	return -99;
  }
  
  int func_223(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = iParam2;
  	while (iVar0 <= (iParam3 - 1))
  	{
  		iVar1 = iVar0;
  		if (func_213(iParam0, iParam1, iVar1))
  		{
  			return iVar1;
  		}
  		iVar0++;
  	}
  	return -99;
  }
  
  int func_224(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_248(iParam0, iParam1);
  	if (iVar0 >= iParam2 && iVar0 <= iParam3)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_225(int iParam0, int iParam1, int iParam2)
  {
  	*iParam2 = -99;
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			if ((((((((((((((((((iParam1 == 16 || iParam1 == 17) || iParam1 == 21) || iParam1 == 22) || iParam1 == 32) || (iParam1 >= 34 && iParam1 <= 39)) || (iParam1 >= 41 && iParam1 <= 45)) || iParam1 == 46) || (iParam1 >= 47 && iParam1 <= 54)) || (iParam1 >= 55 && iParam1 <= 70)) || (iParam1 >= 72 && iParam1 <= 79)) || iParam1 == 80) || (iParam1 >= 81 && iParam1 <= 83)) || (iParam1 >= 84 && iParam1 <= 87)) || iParam1 == 88) || (iParam1 >= 89 && iParam1 <= 91)) || iParam1 == 95) || (iParam1 >= 96 && iParam1 <= 111)) || iParam1 == 112)
  			{
  				*iParam2 = 6;
  				return 1;
  			}
  			break;
  		
  		case joaat("player_one"):
  			if ((((((iParam1 == 12 || (iParam1 >= 14 && iParam1 <= 21)) || iParam1 == 32) || iParam1 == 52) || (iParam1 >= 69 && iParam1 <= 70)) || iParam1 == 71) || (iParam1 >= 72 && iParam1 <= 77))
  			{
  				*iParam2 = 17;
  				return 1;
  			}
  			break;
  		
  		case joaat("player_two"):
  			if (((((((((((((((iParam1 == 4 || iParam1 == 5) || iParam1 == 6) || iParam1 == 7) || iParam1 == 14) || (iParam1 >= 18 && iParam1 <= 29)) || iParam1 == 31) || iParam1 == 32) || iParam1 == 33) || iParam1 == 34) || (iParam1 >= 35 && iParam1 <= 42)) || (iParam1 >= 43 && iParam1 <= 53)) || (iParam1 >= 54 && iParam1 <= 61)) || (iParam1 >= 71 && iParam1 <= 80)) || (iParam1 >= 81 && iParam1 <= 90)) || (iParam1 >= 94 && iParam1 <= 103))
  			{
  				*iParam2 = 8;
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_226(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	*iParam3 = -99;
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 10:
  					if (iParam2 >= 44 && iParam2 <= 47)
  					{
  						*iParam3 = 0;
  					}
  					break;
  				
  				case 14:
  					if (((((((iParam2 >= 31 && iParam2 <= 32) || (iParam2 >= 33 && iParam2 <= 34)) || (iParam2 >= 35 && iParam2 <= 36)) || iParam2 == 37) || (iParam2 >= 38 && iParam2 <= 39)) || (iParam2 >= 40 && iParam2 <= 41)) || (iParam2 >= 42 && iParam2 <= 44))
  					{
  						*iParam3 = 0;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 10:
  					if (iParam2 >= 47 && iParam2 <= 50)
  					{
  						*iParam3 = 0;
  					}
  					break;
  				
  				case 14:
  					if (((((iParam2 >= 26 && iParam2 <= 27) || (iParam2 >= 28 && iParam2 <= 29)) || (iParam2 >= 30 && iParam2 <= 31)) || iParam2 == 32) || (iParam2 >= 35 && iParam2 <= 36))
  					{
  						*iParam3 = 0;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 9:
  					if (iParam2 >= 15 && iParam2 <= 16)
  					{
  						*iParam3 = 0;
  					}
  					break;
  				
  				case 10:
  					if (iParam2 >= 29 && iParam2 <= 32)
  					{
  						*iParam3 = 0;
  					}
  					break;
  				
  				case 14:
  					if (((((((iParam2 >= 47 && iParam2 <= 48) || (iParam2 >= 49 && iParam2 <= 50)) || (iParam2 >= 51 && iParam2 <= 52)) || iParam2 == 53) || (iParam2 >= 54 && iParam2 <= 55)) || (iParam2 >= 56 && iParam2 <= 57)) || (iParam2 >= 58 && iParam2 <= 60))
  					{
  						*iParam3 = 0;
  					}
  					break;
  			}
  			break;
  	}
  	if (*iParam3 != -99)
  	{
  		iVar0 = func_210(iParam0);
  		Global_111858.f_2359.f_539[iVar0 /*65*/].f_63 = iParam2;
  		Global_111858.f_2359.f_539[iVar0 /*65*/].f_64 = iParam1;
  		return 1;
  	}
  	return 0;
  }
  
  int func_227(int iParam0, int iParam1, int iParam2)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			if (iParam1 == 1)
  			{
  				if (iParam2 == 0)
  				{
  					return 1;
  				}
  				else if (iParam2 == 4)
  				{
  					return 5;
  				}
  				else
  				{
  					return 3;
  				}
  			}
  			else if (iParam2 == 0)
  			{
  				return 0;
  			}
  			else if (iParam2 == 4)
  			{
  				return 4;
  			}
  			else
  			{
  				return 2;
  			}
  			break;
  		
  		case joaat("player_one"):
  			if (iParam1 >= 0 && iParam1 <= 15)
  			{
  				if (iParam2 == 0)
  				{
  					return 0;
  				}
  				else
  				{
  					return 3;
  				}
  			}
  			else if (iParam1 >= 16 && iParam1 <= 17)
  			{
  				if (iParam2 == 0)
  				{
  					return 2;
  				}
  				else
  				{
  					return 5;
  				}
  			}
  			else if (iParam1 == 18)
  			{
  				if (iParam2 == 0)
  				{
  					return 6;
  				}
  				else
  				{
  					return 7;
  				}
  			}
  			else if (iParam1 == 19)
  			{
  				if (iParam2 == 0)
  				{
  					return 1;
  				}
  				else
  				{
  					return 4;
  				}
  			}
  			else if (iParam2 == 0)
  			{
  				return 1;
  			}
  			else
  			{
  				return 4;
  			}
  			break;
  		
  		case joaat("player_two"):
  			if (iParam1 == 2)
  			{
  				if (iParam2 == 0)
  				{
  					return 2;
  				}
  				else
  				{
  					return 3;
  				}
  			}
  			else if (iParam1 == 3)
  			{
  				if (iParam2 == 0)
  				{
  					return 4;
  				}
  				else
  				{
  					return 6;
  				}
  			}
  			else if (iParam1 == 8)
  			{
  				return 5;
  			}
  			else if (iParam2 == 0)
  			{
  				return 0;
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  	}
  	return -99;
  }
  
  void func_228(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	if (iParam2 == -1)
  	{
  		unk_0x4FCABD4082A6C808(iParam0, iParam1);
  		if (iParam1 == 0)
  		{
  			unk_0x694113444F21E39F(iParam0, 34, 0);
  			unk_0x694113444F21E39F(iParam0, 36, 0);
  		}
  	}
  	else
  	{
  		unk_0x78024EFD31A7FAD4(iParam0, iParam1, iParam2, iParam3, unk_0x25DDB354A40FFCDB());
  		if (iParam1 == 0)
  		{
  			iVar0 = func_233(iParam0, iParam2, iParam3, iParam1);
  			if (func_229(unk_0x36FE6D3220816ADA(iParam0), 14, iVar0, unk_0xEAF476EEF924D2C9(iParam0, 0, iParam2, iParam3)))
  			{
  				unk_0x694113444F21E39F(iParam0, 34, 1);
  				unk_0x694113444F21E39F(iParam0, 36, 1);
  			}
  			else
  			{
  				unk_0x694113444F21E39F(iParam0, 34, 0);
  				unk_0x694113444F21E39F(iParam0, 36, 0);
  			}
  		}
  	}
  }
  
  int func_229(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	switch (iParam0)
  	{
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 14:
  					if (iParam3 == -1)
  					{
  						iParam3 = func_230(iParam0, iParam2, 14, 3);
  					}
  					if ((iParam2 >= 131 && iParam2 <= 154) || (iParam2 >= 327 && unk_0x4D0432E34C5996D9(iParam3, joaat("HELMET"), 1)))
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 14:
  					if (iParam3 == -1)
  					{
  						iParam3 = func_230(iParam0, iParam2, 14, 4);
  					}
  					if ((iParam2 >= 131 && iParam2 <= 154) || (iParam2 >= 327 && unk_0x4D0432E34C5996D9(iParam3, joaat("HELMET"), 1)))
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_230(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	struct<2> Var0;
  	int iVar1;
  	int iVar2;
  	struct<2> Var3;
  	int iVar4;
  	int iVar5;
  	
  	if (iParam2 == 12)
  	{
  	}
  	else if (iParam2 == 13)
  	{
  	}
  	else if (iParam2 == 14)
  	{
  		unk_0x8BC52CDFCD2A4534(&Var0);
  		iVar1 = (iParam1 - func_232(iParam0));
  		if (iVar1 < 0)
  		{
  			return -1;
  		}
  		iVar2 = unk_0x21A524CB091C80DE(iParam3, 7, -1, 1, -1, -1);
  		if (iVar2 <= iVar1)
  		{
  			return -1;
  		}
  		unk_0xD2FB5DC35CA67C53(iVar1, &Var0);
  		return Var0.f_1;
  	}
  	else
  	{
  		unk_0x1C2EE47D7054A42C(&Var3);
  		iVar4 = (iParam1 - func_231(iParam0, func_218(iParam2)));
  		if (iVar4 < 0)
  		{
  			return -1;
  		}
  		if ((iParam0 == Global_76769.f_26[iParam2] && iParam1 == Global_76769[iParam2]) && Global_76769.f_13[iParam2] != 0)
  		{
  			return Global_76769.f_13[iParam2];
  		}
  		iVar5 = unk_0x21A524CB091C80DE(iParam3, 7, -1, 0, -1, func_218(iParam2));
  		if (iVar5 <= iVar4)
  		{
  			return -1;
  		}
  		unk_0x627AC3AC8991672C(iVar4, &Var3);
  		Global_76769.f_13[iParam2] = Var3.f_1;
  		Global_76769[iParam2] = iParam1;
  		Global_76769.f_26[iParam2] = iParam0;
  		return Var3.f_1;
  	}
  	return -1;
  }
  
  int func_231(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 0:
  					return 7;
  					break;
  				
  				case 1:
  					return 5;
  					break;
  				
  				case 2:
  					return 6;
  					break;
  				
  				case 3:
  					return 181;
  					break;
  				
  				case 4:
  					return 113;
  					break;
  				
  				case 5:
  					return 14;
  					break;
  				
  				case 6:
  					return 99;
  					break;
  				
  				case 7:
  					return 1;
  					break;
  				
  				case 8:
  					return 24;
  					break;
  				
  				case 9:
  					return 20;
  					break;
  				
  				case 10:
  					return 48;
  					break;
  				
  				case 11:
  					return 45;
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 5;
  					break;
  				
  				case 2:
  					return 21;
  					break;
  				
  				case 3:
  					return 318;
  					break;
  				
  				case 4:
  					return 117;
  					break;
  				
  				case 5:
  					return 7;
  					break;
  				
  				case 6:
  					return 134;
  					break;
  				
  				case 7:
  					return 1;
  					break;
  				
  				case 8:
  					return 77;
  					break;
  				
  				case 9:
  					return 12;
  					break;
  				
  				case 10:
  					return 53;
  					break;
  				
  				case 11:
  					return 63;
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 0:
  					return 7;
  					break;
  				
  				case 1:
  					return 6;
  					break;
  				
  				case 2:
  					return 9;
  					break;
  				
  				case 3:
  					return 242;
  					break;
  				
  				case 4:
  					return 104;
  					break;
  				
  				case 5:
  					return 7;
  					break;
  				
  				case 6:
  					return 84;
  					break;
  				
  				case 7:
  					return 1;
  					break;
  				
  				case 8:
  					return 18;
  					break;
  				
  				case 9:
  					return 17;
  					break;
  				
  				case 10:
  					return 33;
  					break;
  				
  				case 11:
  					return 1;
  					break;
  			}
  			break;
  	}
  	switch (iParam0)
  	{
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					return 0;
  					break;
  				
  				case 1:
  					return 26;
  					break;
  				
  				case 2:
  					return 91;
  					break;
  				
  				case 3:
  					return 16;
  					break;
  				
  				case 4:
  					return 256;
  					break;
  				
  				case 5:
  					return 9;
  					break;
  				
  				case 6:
  					return 256;
  					break;
  				
  				case 7:
  					return 92;
  					break;
  				
  				case 8:
  					return 241;
  					break;
  				
  				case 9:
  					return 46;
  					break;
  				
  				case 10:
  					return 7;
  					break;
  				
  				case 11:
  					return 237;
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					return 0;
  					break;
  				
  				case 1:
  					return 26;
  					break;
  				
  				case 2:
  					return 92;
  					break;
  				
  				case 3:
  					return 16;
  					break;
  				
  				case 4:
  					return 256;
  					break;
  				
  				case 5:
  					return 9;
  					break;
  				
  				case 6:
  					return 256;
  					break;
  				
  				case 7:
  					return 55;
  					break;
  				
  				case 8:
  					return 136;
  					break;
  				
  				case 9:
  					return 36;
  					break;
  				
  				case 10:
  					return 6;
  					break;
  				
  				case 11:
  					return 256;
  					break;
  			}
  			break;
  	}
  	return -99;
  }
  
  int func_232(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			return 113;
  			break;
  		
  		case joaat("player_one"):
  			return 175;
  			break;
  		
  		case joaat("player_two"):
  			return 155;
  			break;
  	}
  	switch (iParam0)
  	{
  		case joaat("mp_m_freemode_01"):
  			return 327;
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			return 327;
  			break;
  	}
  	return -99;
  }
  
  int func_233(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	
  	if (iParam1 == -1)
  	{
  		return func_236(iParam3);
  	}
  	iVar0 = unk_0x36FE6D3220816ADA(iParam0);
  	iVar1 = unk_0xEAF476EEF924D2C9(iParam0, iParam3, iParam1, iParam2);
  	if (iVar1 != -1 && iVar1 != 0)
  	{
  		if (iVar0 == joaat("mp_m_freemode_01"))
  		{
  			return func_235(unk_0x36FE6D3220816ADA(iParam0), iVar1, 14, 3);
  		}
  		else if (iVar0 == joaat("mp_f_freemode_01"))
  		{
  			return func_235(unk_0x36FE6D3220816ADA(iParam0), iVar1, 14, 4);
  		}
  	}
  	iVar2 = unk_0x99134D420E2DAA74(iParam0, iParam3);
  	iVar4 = 0;
  	while (iVar4 <= (iVar2 - 1))
  	{
  		iVar6 = unk_0x2CB217E5FD6878E9(iParam0, iParam3, iVar4);
  		if (iVar4 != iParam1)
  		{
  			iVar3 = (iVar3 + iVar6);
  		}
  		else
  		{
  			iVar5 = 0;
  			while (iVar5 <= (iVar6 - 1))
  			{
  				if (iVar4 == iParam1 && iVar5 == iParam2)
  				{
  					iVar3 = (iVar3 + func_234(iParam0, iParam3));
  					return iVar3;
  				}
  				else
  				{
  					iVar3++;
  				}
  				iVar5++;
  			}
  		}
  		iVar4++;
  	}
  	return func_236(iParam3);
  }
  
  int func_234(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = unk_0x36FE6D3220816ADA(iParam0);
  	switch (iVar0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 58;
  					break;
  				
  				case 2:
  					return 112;
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 82;
  					break;
  				
  				case 2:
  					return 158;
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 88;
  					break;
  				
  				case 2:
  					return 154;
  					break;
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 155;
  					break;
  				
  				case 6:
  					return 319;
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					return 10;
  					break;
  				
  				case 1:
  					return 155;
  					break;
  				
  				case 6:
  					return 319;
  					break;
  			}
  			break;
  	}
  	return -99;
  }
  
  int func_235(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (iParam2 == 12)
  	{
  	}
  	else if (iParam2 == 13)
  	{
  	}
  	else if (iParam2 == 14)
  	{
  		unk_0x21A524CB091C80DE(iParam3, 7, -1, 1, -1, -1);
  		iVar0 = unk_0x6CEBE002E58DEE97(iParam1);
  		if (iVar0 != -1)
  		{
  			return (func_232(iParam0) + iVar0);
  		}
  	}
  	else
  	{
  		unk_0x21A524CB091C80DE(iParam3, 7, -1, 0, -1, func_218(iParam2));
  		iVar1 = unk_0x96E2929292A4DB77(iParam1);
  		if (iVar1 != -1)
  		{
  			return (func_231(iParam0, func_218(iParam2)) + iVar1);
  		}
  	}
  	return -99;
  }
  
  int func_236(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  			break;
  		
  		case 1:
  			return 1;
  			break;
  		
  		case 2:
  			return 2;
  			break;
  		
  		case 3:
  			return 3;
  			break;
  		
  		case 4:
  			return 4;
  			break;
  		
  		case 5:
  			return 5;
  			break;
  		
  		case 6:
  			return 6;
  			break;
  		
  		case 7:
  			return 7;
  			break;
  		
  		case 8:
  			return 8;
  			break;
  	}
  	return 0;
  }
  
  struct<10> func_237(int iParam0, int iParam1)
  {
  	int iVar0;
  	struct<10> Var1;
  	
  	Var1 = 9;
  	iVar0 = 0;
  	while (iVar0 <= 8)
  	{
  		Var1[iVar0] = -99;
  		iVar0++;
  	}
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 31:
  					func_239(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_239(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_239(&Var1, 19, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_239(&Var1, 14, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_239(&Var1, 18, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_239(&Var1, 0, 59, 112, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_239(&Var1, 0, 60, 112, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_239(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_239(&Var1, 0, 60, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_239(&Var1, 55, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 9:
  					func_239(&Var1, 0, 1, 112, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_238(&Var1, iParam0, iParam1, 10);
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 31:
  					func_239(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_239(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_239(&Var1, 0, 82, 158, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_239(&Var1, 0, 1, 158, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_239(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_239(&Var1, 41, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_239(&Var1, 40, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_239(&Var1, 41, 95, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_239(&Var1, 0, 95, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_239(&Var1, 69, 95, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_238(&Var1, iParam0, iParam1, 9);
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 31:
  					func_239(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_239(&Var1, 11, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_239(&Var1, 17, 90, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_239(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_239(&Var1, 0, 88, 154, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_239(&Var1, 0, 1, 154, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_239(&Var1, 16, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_239(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_239(&Var1, 0, 123, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_239(&Var1, 69, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_238(&Var1, iParam0, iParam1, 9);
  					break;
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 31:
  					func_239(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_239(&Var1, 129, 167, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_239(&Var1, 90, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_239(&Var1, 23, 251, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_239(&Var1, 36, 262, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_239(&Var1, 88, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_239(&Var1, 125, 175, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_239(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_239(&Var1, 44, 208, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_239(&Var1, 52, 189, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 9:
  					func_239(&Var1, 0, 261, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 10:
  					func_239(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 11:
  					func_239(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 12:
  					func_239(&Var1, 0, 212, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 13:
  					func_239(&Var1, 64, 291, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 14:
  					func_239(&Var1, 61, 207, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 15:
  					func_239(&Var1, 0, 291, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 16:
  					func_239(&Var1, 0, 208, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 17:
  					func_239(&Var1, 0, 229, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 18:
  					func_239(&Var1, 36, 249, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 19:
  					func_239(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 20:
  					func_239(&Var1, 0, 174, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 21:
  					func_239(&Var1, 35, 180, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 22:
  					func_239(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 23:
  					func_239(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 24:
  					func_239(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_238(&Var1, iParam0, iParam1, 25);
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 31:
  					func_239(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_239(&Var1, 35, 233, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_239(&Var1, 36, 178, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_239(&Var1, 53, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_239(&Var1, 38, 170, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_239(&Var1, 37, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_239(&Var1, 113, 203, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_239(&Var1, 114, 183, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_239(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_239(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 9:
  					func_239(&Var1, 0, 199, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 10:
  					func_239(&Var1, 0, 182, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 11:
  					func_239(&Var1, 0, 233, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 12:
  					func_239(&Var1, 107, 167, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 13:
  					func_239(&Var1, 109, 170, 2, 3, 4, 5, 323, 7, 8);
  					break;
  				
  				case 14:
  					func_239(&Var1, 119, 237, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 15:
  					func_239(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 16:
  					func_239(&Var1, 114, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 17:
  					func_239(&Var1, 35, 268, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 18:
  					func_239(&Var1, 0, 266, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 19:
  					func_239(&Var1, 42, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 20:
  					func_239(&Var1, 76, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 21:
  					func_239(&Var1, 39, 235, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 22:
  					func_239(&Var1, 41, 183, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 23:
  					func_239(&Var1, 111, 194, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_238(&Var1, iParam0, iParam1, 25);
  					break;
  			}
  			break;
  	}
  	return Var1;
  }
  
  void func_238(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	struct<4> Var1;
  	struct<3> Var2;
  	int iVar3;
  	
  	if (iParam2 != 0 && iParam2 != -99)
  	{
  		(*iParam0)[0] = 0;
  		(*iParam0)[1] = 1;
  		(*iParam0)[2] = 2;
  		(*iParam0)[3] = 3;
  		(*iParam0)[4] = 4;
  		(*iParam0)[5] = 5;
  		(*iParam0)[6] = 6;
  		(*iParam0)[7] = 7;
  		(*iParam0)[8] = 8;
  		iVar0 = 0;
  		if (iParam1 == joaat("player_zero"))
  		{
  			iVar0 = 0;
  		}
  		else if (iParam1 == joaat("player_one"))
  		{
  			iVar0 = 1;
  		}
  		else if (iParam1 == joaat("player_two"))
  		{
  			iVar0 = 2;
  		}
  		else if (iParam1 == joaat("mp_m_freemode_01"))
  		{
  			iVar0 = 3;
  		}
  		else if (iParam1 == joaat("mp_f_freemode_01"))
  		{
  			iVar0 = 4;
  		}
  		unk_0x6208B91ED335678E(iParam2, &Var1);
  		if (!unk_0x14AC70FD8926649E(Var1))
  		{
  			iVar3 = 0;
  			while (iVar3 < Var1.f_3)
  			{
  				if (unk_0xC35D62D0F96C6D07(Var1.f_1, iVar3, &Var2) && Var2.f_2 != -1)
  				{
  					if ((Var2.x != 0 && Var2.x != -1) && Var2.x != joaat("0"))
  					{
  						(*iParam0)[Var2.f_2] = func_235(iParam1, Var2.x, 14, iVar0);
  					}
  					else if (Var2.f_1 != -1)
  					{
  						(*iParam0)[Var2.f_2] = Var2.f_1;
  					}
  				}
  				iVar3++;
  			}
  		}
  	}
  }
  
  void func_239(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)
  {
  	(*iParam0)[0] = iParam1;
  	(*iParam0)[1] = iParam2;
  	(*iParam0)[2] = iParam3;
  	(*iParam0)[3] = iParam4;
  	(*iParam0)[4] = iParam5;
  	(*iParam0)[5] = iParam6;
  	(*iParam0)[6] = iParam7;
  	(*iParam0)[7] = iParam8;
  	(*iParam0)[8] = iParam9;
  }
  
  struct<17> func_240(int iParam0, int iParam1)
  {
  	int iVar0;
  	struct<17> Var1;
  	
  	Var1 = 15;
  	iVar0 = 0;
  	while (iVar0 <= 14)
  	{
  		Var1[iVar0] = -99;
  		iVar0++;
  	}
  	Var1.f_16 = 0;
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 0:
  					if (Global_111858.f_9081.f_99.f_58[120])
  					{
  						func_243(&Var1, -99, -99, 1, 1, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					}
  					else
  					{
  						func_243(&Var1, -99, -99, 0, 0, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					}
  					break;
  				
  				case 1:
  					func_243(&Var1, -99, -99, 16, 16, 6, 1, 1, 0, 1, -99, 0, 0, 0);
  					break;
  				
  				case 2:
  					func_243(&Var1, -99, -99, 36, 21, 6, 1, 5, 0, 0, -99, 0, 0, 8);
  					break;
  				
  				case 3:
  					func_243(&Var1, -99, -99, 65, 36, 6, 0, 2, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 4:
  					func_243(&Var1, -99, -99, 61, 32, 6, 0, 0, 7, 3, -99, 0, 0, 2);
  					break;
  				
  				case 5:
  					func_243(&Var1, -99, -99, Global_111858.f_2359.f_539.f_196[0], Global_111858.f_2359.f_539.f_200[0], 6, 3, 0, 0, 0, -99, 0, 0, 3);
  					break;
  				
  				case 6:
  					func_243(&Var1, -99, -99, 92, 72, 7, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 7:
  					func_243(&Var1, -99, -99, 85, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 8:
  					func_243(&Var1, -99, -99, 170, 80, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 9:
  					func_243(&Var1, -99, -99, 171, 89, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 10:
  					func_243(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 4);
  					break;
  				
  				case 11:
  					func_243(&Var1, -99, -99, 33, 18, 17, 10, 4, 8, 0, -99, 0, 0, 5);
  					break;
  				
  				case 12:
  					func_243(&Var1, -99, -99, 35, 20, 9, 10, 23, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 13:
  					func_243(&Var1, -99, -99, 69, 40, 13, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 14:
  					func_243(&Var1, -99, -99, 62, 33, 38, 0, 8, 0, 0, -99, 0, 0, 6);
  					break;
  				
  				case 15:
  					func_243(&Var1, -99, -99, 63, 34, 6, 10, 0, 0, 4, -99, 0, 0, 31);
  					break;
  				
  				case 16:
  					func_243(&Var1, -99, -99, 174, 93, 18, 0, 18, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 17:
  					func_243(&Var1, -99, -99, 76, 46, 6, 10, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 18:
  					func_243(&Var1, -99, -99, 35, 20, 9, 10, 0, 4, 0, -99, 0, 0, 7);
  					break;
  				
  				case 19:
  					func_243(&Var1, -99, -99, 64, 35, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 20:
  					func_243(&Var1, -99, -99, 66, 37, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 21:
  					func_243(&Var1, -99, -99, 67, 38, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 22:
  					func_243(&Var1, -99, -99, 68, 39, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 23:
  					func_243(&Var1, -99, -99, 177, 94, 19, 9, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 24:
  					func_243(&Var1, -99, -99, 35, 20, 9, 10, 4, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 25:
  					func_243(&Var1, -99, -99, 97, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 26:
  					func_243(&Var1, -99, -99, 3, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 27:
  					func_243(&Var1, -99, -99, 129, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 28:
  					func_243(&Var1, -99, -99, 170, 80, 6, 0, 13, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 29:
  					func_243(&Var1, -99, -99, 2, 2, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 30:
  					func_243(&Var1, -99, -99, 161, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 31:
  					func_243(&Var1, -99, -99, 3, 3, 0, 12, 0, 0, 0, -99, 0, 1, 31);
  					break;
  				
  				case 32:
  					func_243(&Var1, -99, -99, 85, 55, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 33:
  					func_243(&Var1, -99, -99, 86, 4, 20, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 34:
  					func_243(&Var1, -99, -99, 44, 97, 6, 0, 0, 0, 0, -99, 0, 2, 31);
  					break;
  				
  				case 35:
  					func_243(&Var1, -99, -99, 85, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 36:
  					func_243(&Var1, -99, -99, 4, 4, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 37:
  					func_243(&Var1, -99, -99, 5, 5, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 38:
  					func_243(&Var1, -99, -99, 6, 6, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 39:
  					func_243(&Var1, -99, -99, 7, 7, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 40:
  					func_243(&Var1, -99, -99, 8, 8, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 41:
  					func_243(&Var1, -99, -99, 9, 9, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 42:
  					func_243(&Var1, -99, -99, 10, 10, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 43:
  					func_243(&Var1, -99, -99, 11, 11, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 44:
  					func_243(&Var1, -99, -99, 12, 12, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 45:
  					func_243(&Var1, -99, -99, 13, 13, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 46:
  					func_243(&Var1, -99, -99, 14, 14, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 47:
  					func_243(&Var1, -99, -99, 15, 15, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 48:
  					func_243(&Var1, -99, -99, 91, 71, 14, 13, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 49:
  					func_243(&Var1, -99, -99, 35, 20, 9, 10, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 50:
  					func_243(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 9);
  					break;
  				
  				case 51:
  					func_243(&Var1, -99, -99, 169, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 52:
  					func_243(&Var1, -99, -99, 169, 72, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				default:
  					func_241(&Var1, iParam0, iParam1, 53);
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 0:
  					func_243(&Var1, -99, -99, 73, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 1:
  					func_243(&Var1, -99, -99, 22, 10, 64, 0, 24, 0, 0, -99, 0, 43, 31);
  					break;
  				
  				case 2:
  					func_243(&Var1, -99, -99, Global_111858.f_2359.f_539.f_196[1], Global_111858.f_2359.f_539.f_200[1], 17, 2, 26, 0, 0, -99, 0, 45, 31);
  					break;
  				
  				case 3:
  					func_243(&Var1, -99, -99, 23, 11, 13, 5, 2, 4, 0, -99, 0, 0, 1);
  					break;
  				
  				case 4:
  					func_243(&Var1, -99, -99, 23, 11, 34, 5, 26, 0, 0, -99, 0, 0, 2);
  					break;
  				
  				case 5:
  					func_243(&Var1, -99, 20, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 6:
  					func_243(&Var1, -99, -99, 40, 13, 14, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 7:
  					func_243(&Var1, -99, -99, 90, 32, 17, 1, 8, 0, 1, -99, 0, 0, 3);
  					break;
  				
  				case 8:
  					func_243(&Var1, -99, -99, 17, 5, 12, 0, 26, 0, 2, -99, 0, 0, 5);
  					break;
  				
  				case 9:
  					func_243(&Var1, -99, -99, 16, 4, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 10:
  					func_243(&Var1, -99, -99, 208, 71, 17, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 11:
  					func_243(&Var1, -99, -99, 259, 10, 35, 0, 24, 0, 0, -99, 0, 43, 31);
  					break;
  				
  				case 12:
  					func_243(&Var1, -99, -99, 18, 6, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 13:
  					func_243(&Var1, -99, -99, 19, 7, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 14:
  					func_243(&Var1, -99, -99, 20, 8, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 15:
  					func_243(&Var1, -99, -99, 21, 9, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 16:
  					func_243(&Var1, -99, -99, 135, 40, 0, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 17:
  					func_243(&Var1, -99, -99, 74, 24, 52, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 18:
  					func_243(&Var1, -99, -99, 176, 53, 26, 5, 26, 0, 0, -99, 0, 41, 31);
  					break;
  				
  				case 19:
  					func_243(&Var1, -99, -99, 125, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 20:
  					func_243(&Var1, -99, -99, 162, 24, 36, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 21:
  					func_243(&Var1, -99, -99, 75, 24, 36, 0, 26, 0, 0, -99, 0, 0, 4);
  					break;
  				
  				case 22:
  					func_243(&Var1, -99, -99, 227, 53, 25, 0, 27, 0, 0, -99, 0, 25, 31);
  					break;
  				
  				case 23:
  					func_243(&Var1, -99, -99, 228, 54, 25, 0, 28, 0, 0, -99, 0, 26, 31);
  					break;
  				
  				case 24:
  					func_243(&Var1, -99, -99, 229, 55, 25, 0, 29, 0, 0, -99, 0, 27, 31);
  					break;
  				
  				case 25:
  					func_243(&Var1, -99, -99, 230, 56, 25, 0, 30, 0, 0, -99, 0, 28, 31);
  					break;
  				
  				case 26:
  					func_243(&Var1, -99, -99, 231, 57, 25, 0, 31, 0, 0, -99, 0, 29, 31);
  					break;
  				
  				case 27:
  					func_243(&Var1, -99, -99, 232, 58, 25, 0, 32, 0, 0, -99, 0, 30, 31);
  					break;
  				
  				case 28:
  					func_243(&Var1, -99, -99, 233, 59, 25, 0, 33, 0, 0, -99, 0, 31, 31);
  					break;
  				
  				case 29:
  					func_243(&Var1, -99, -99, 234, 60, 25, 0, 34, 0, 0, -99, 0, 32, 31);
  					break;
  				
  				case 30:
  					func_243(&Var1, -99, -99, 235, 61, 25, 0, 35, 0, 0, -99, 0, 33, 31);
  					break;
  				
  				case 31:
  					func_243(&Var1, -99, -99, 236, 62, 25, 0, 36, 0, 0, -99, 0, 34, 31);
  					break;
  				
  				case 32:
  					func_243(&Var1, -99, -99, 237, 63, 25, 0, 37, 0, 0, -99, 0, 35, 31);
  					break;
  				
  				case 33:
  					func_243(&Var1, -99, -99, 238, 64, 25, 0, 38, 0, 0, -99, 0, 36, 31);
  					break;
  				
  				case 34:
  					func_243(&Var1, -99, -99, 239, 65, 25, 0, 39, 0, 0, -99, 0, 37, 31);
  					break;
  				
  				case 35:
  					func_243(&Var1, -99, -99, 240, 66, 25, 0, 40, 0, 0, -99, 0, 38, 31);
  					break;
  				
  				case 36:
  					func_243(&Var1, -99, -99, 241, 67, 25, 0, 41, 0, 0, -99, 0, 39, 31);
  					break;
  				
  				case 37:
  					func_243(&Var1, -99, -99, 242, 68, 25, 0, 42, 0, 0, -99, 0, 40, 31);
  					break;
  				
  				case 38:
  					func_243(&Var1, -99, -99, 260, 72, 17, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 39:
  					func_243(&Var1, -99, -99, 125, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 40:
  					func_243(&Var1, -99, -99, 123, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 41:
  					func_243(&Var1, -99, -99, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 42:
  					func_243(&Var1, -99, -99, 89, 22, 15, 6, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 43:
  					func_243(&Var1, -99, -99, 317, 69, 17, 0, 0, 0, 51, -99, 0, 0, 6);
  					break;
  				
  				case 44:
  					func_243(&Var1, -99, -99, 30, 23, 16, 0, 0, 0, 0, -99, 0, 0, 7);
  					break;
  				
  				case 45:
  					func_243(&Var1, -99, -99, 106, 70, 17, 5, 26, 0, 0, -99, 0, 0, 8);
  					break;
  				
  				case 46:
  					func_243(&Var1, -99, -99, 117, 24, 20, 5, 26, 0, 52, -99, 0, 0, 31);
  					break;
  				
  				default:
  					func_241(&Var1, iParam0, iParam1, 47);
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 0:
  					func_243(&Var1, -99, -99, 0, 91, 28, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 1:
  					func_243(&Var1, -99, -99, 17, 5, 8, 2, 3, 0, 0, -99, 0, 0, 8);
  					break;
  				
  				case 2:
  					func_243(&Var1, -99, -99, 43, 8, 12, 3, 5, 0, 0, -99, 0, 0, 1);
  					break;
  				
  				case 3:
  					func_243(&Var1, -99, -99, 50, 14, 8, 0, 15, 6, 3, -99, 0, 0, 2);
  					break;
  				
  				case 4:
  					func_243(&Var1, -99, -99, Global_111858.f_2359.f_539.f_196[2], Global_111858.f_2359.f_539.f_200[2], 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 5:
  					func_243(&Var1, -99, -99, 95, 33, 8, 0, 15, 0, 0, -99, 0, 0, 6);
  					break;
  				
  				case 6:
  					func_243(&Var1, -99, -99, 49, 13, 10, 4, 6, 0, 0, -99, 0, 0, 3);
  					break;
  				
  				case 7:
  					func_243(&Var1, -99, -99, 49, 13, 14, 4, 15, 0, 0, -99, 0, 0, 4);
  					break;
  				
  				case 8:
  					func_243(&Var1, -99, -99, 79, 32, 8, 5, 7, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 9:
  					func_243(&Var1, -99, -99, 53, 17, 11, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 10:
  					func_243(&Var1, -99, -99, 96, 81, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 11:
  					func_243(&Var1, -99, -99, 51, 15, 33, 0, 8, 0, 0, -99, 0, 0, 5);
  					break;
  				
  				case 12:
  					func_243(&Var1, -99, -99, 0, 93, 29, 0, 13, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 13:
  					func_243(&Var1, -99, -99, 52, 16, 30, 5, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 14:
  					func_243(&Var1, -99, -99, 241, 92, 16, 0, 12, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 15:
  					func_243(&Var1, -99, -99, 97, 34, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 16:
  					func_243(&Var1, -99, -99, 44, 9, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 17:
  					func_243(&Var1, -99, -99, 45, 10, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 18:
  					func_243(&Var1, -99, -99, 46, 11, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 19:
  					func_243(&Var1, -99, -99, 47, 12, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 20:
  					func_243(&Var1, -99, -99, 161, 53, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 21:
  					func_243(&Var1, -99, -99, 0, 44, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 22:
  					func_243(&Var1, -99, -99, 98, 0, 28, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 23:
  					func_243(&Var1, -99, -99, 27, 0, 31, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 24:
  					func_243(&Var1, -99, -99, 190, 71, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 25:
  					func_243(&Var1, -99, -99, 191, 72, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 26:
  					func_243(&Var1, -99, -99, 192, 73, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 27:
  					func_243(&Var1, -99, -99, 193, 74, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 28:
  					func_243(&Var1, -99, -99, 194, 75, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 29:
  					func_243(&Var1, -99, -99, 195, 76, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 30:
  					func_243(&Var1, -99, -99, 196, 77, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 31:
  					func_243(&Var1, -99, -99, 197, 78, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 32:
  					func_243(&Var1, -99, -99, 198, 79, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 33:
  					func_243(&Var1, -99, -99, 199, 80, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 34:
  					func_243(&Var1, -99, -99, 200, 62, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 35:
  					func_243(&Var1, -99, -99, 201, 63, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 36:
  					func_243(&Var1, -99, -99, 202, 64, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 37:
  					func_243(&Var1, -99, -99, 203, 65, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 38:
  					func_243(&Var1, -99, -99, 204, 66, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 39:
  					func_243(&Var1, -99, -99, 205, 67, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 40:
  					func_243(&Var1, -99, -99, 206, 68, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 41:
  					func_243(&Var1, -99, -99, 2, 43, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 42:
  					func_243(&Var1, -99, -99, 55, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 43:
  					func_243(&Var1, -99, -99, 0, 52, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 44:
  					func_243(&Var1, -99, -99, 70, 30, 32, 6, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 45:
  					func_243(&Var1, -99, -99, 19, 91, 28, 0, 0, 0, 0, -99, 0, 0, 7);
  					break;
  				
  				case 46:
  					func_243(&Var1, -99, -99, 0, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 47:
  					func_243(&Var1, -99, -99, 79, 32, 8, 5, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				default:
  					func_241(&Var1, iParam0, iParam1, 48);
  					break;
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					func_243(&Var1, -99, -99, 0, 0, 10, -99, 0, -99, -99, 0, 0, 0, 31);
  					break;
  				
  				case 1:
  					func_243(&Var1, -99, -99, 1, 127, 38, -99, 2, 0, 0, 0, 0, 62, 0);
  					break;
  				
  				case 2:
  					func_243(&Var1, -99, -99, 0, 248, 45, -99, 240, 0, 0, 0, 0, 144, 1);
  					break;
  				
  				case 3:
  					func_243(&Var1, -99, -99, 4, 31, 25, -99, 240, 0, 0, 0, 0, 231, 2);
  					break;
  				
  				case 4:
  					func_243(&Var1, -99, -99, 1, 66, 10, -99, 21, 0, 0, 0, 0, 123, 3);
  					break;
  				
  				case 5:
  					func_243(&Var1, -99, -99, 1, 93, 141, -99, 3, 0, 0, 0, 0, 114, 4);
  					break;
  				
  				case 6:
  					func_243(&Var1, -99, -99, 1, 116, 113, -99, 7, 0, 0, 0, 0, 113, 5);
  					break;
  				
  				case 7:
  					func_243(&Var1, -99, -99, 1, 61, 136, -99, 27, 0, 0, 0, 0, 61, 6);
  					break;
  				
  				case 8:
  					func_243(&Var1, -99, -99, 0, 112, 10, -99, 240, 0, 0, 0, 0, 8, 7);
  					break;
  				
  				case 9:
  					func_243(&Var1, -99, -99, 4, 131, 24, -99, 240, 0, 0, 0, 0, 223, 8);
  					break;
  				
  				case 10:
  					func_243(&Var1, -99, -99, 1, 209, 188, -99, 208, 0, 0, 0, 0, 64, 9);
  					break;
  				
  				case 11:
  					func_243(&Var1, -99, -99, 1, 209, 160, -99, 211, 0, 0, 0, 43, 157, 10);
  					break;
  				
  				case 12:
  					func_243(&Var1, -99, -99, 1, 162, 174, -99, 201, 0, 0, 0, 0, 158, 11);
  					break;
  				
  				case 13:
  					func_243(&Var1, -99, -99, 1, 4, 240, -99, 34, 0, 0, 0, 0, 97, 12);
  					break;
  				
  				case 14:
  					func_243(&Var1, -99, -99, 1, 128, 232, -99, 43, 0, 0, 0, 0, 102, 13);
  					break;
  				
  				case 15:
  					func_243(&Var1, -99, -99, 1, 66, 65, -99, 224, 0, 0, 0, 0, 100, 14);
  					break;
  				
  				case 16:
  					func_243(&Var1, -99, -99, 1, 65, 172, -99, 202, 0, 0, 0, 0, 64, 15);
  					break;
  				
  				case 17:
  					func_243(&Var1, -99, -99, 1, 64, 10, -99, 1, 0, 0, 0, 0, 66, 16);
  					break;
  				
  				case 18:
  					func_243(&Var1, -99, -99, 5, 98, 80, -99, 240, 0, 0, 0, 0, 87, 17);
  					break;
  				
  				case 19:
  					func_243(&Var1, -99, -99, 5, 192, 96, -99, 240, 0, 0, 0, 0, 80, 18);
  					break;
  				
  				case 20:
  					func_243(&Var1, -99, -99, 1, 124, 96, -99, 11, 0, 0, 0, 0, 110, 19);
  					break;
  				
  				case 21:
  					func_243(&Var1, -99, -99, 0, 80, 114, -99, 240, 0, 0, 0, 0, 2, 20);
  					break;
  				
  				case 22:
  					func_243(&Var1, -99, -99, 6, 43, 112, -99, 82, 0, 0, 0, 0, 48, 21);
  					break;
  				
  				case 23:
  					func_243(&Var1, -99, -99, 1, 116, 144, -99, 2, 0, 0, 0, 0, 108, 22);
  					break;
  				
  				case 24:
  					func_243(&Var1, -99, -99, 1, 63, 38, -99, 3, 0, 0, 0, 0, 63, 23);
  					break;
  				
  				case 25:
  					func_243(&Var1, -99, -99, 2, 64, 10, -99, 240, 0, 0, 0, 0, 41, 24);
  					break;
  				
  				default:
  					func_241(&Var1, iParam0, iParam1, 26);
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					func_243(&Var1, -99, -99, 0, 0, 0, -99, 0, -99, -99, 0, -99, 0, 31);
  					break;
  				
  				case 1:
  					func_243(&Var1, -99, -99, 5, 136, 241, -99, 47, 0, 0, 0, 0, 21, 31);
  					break;
  				
  				case 2:
  					func_243(&Var1, -99, -99, 4, 1, 96, -99, 32, 0, 0, 0, 7, 215, 0);
  					break;
  				
  				case 3:
  					func_243(&Var1, -99, -99, 1, 73, 241, -99, 3, 0, 0, 0, 0, 25, 1);
  					break;
  				
  				case 4:
  					func_243(&Var1, -99, -99, 2, 88, 217, -99, 32, 0, 0, 0, 0, 33, 2);
  					break;
  				
  				case 5:
  					func_243(&Var1, -99, -99, 9, 7, 98, -99, 32, 0, 0, 0, 7, 153, 3);
  					break;
  				
  				case 6:
  					func_243(&Var1, -99, -99, 1, 140, 241, -99, 7, 0, 0, 0, 31, 16, 4);
  					break;
  				
  				case 7:
  					func_243(&Var1, -99, -99, 4, 139, 112, -99, 32, 0, 0, 0, 49, 78, 5);
  					break;
  				
  				case 8:
  					func_243(&Var1, -99, -99, 1, 193, 48, -99, 108, 0, 0, 0, 0, 17, 6);
  					break;
  				
  				case 9:
  					func_243(&Var1, -99, -99, 5, 114, 97, -99, 103, 0, 0, 0, 0, 98, 7);
  					break;
  				
  				case 10:
  					func_243(&Var1, -99, -99, 9, 134, 239, -99, 32, 0, 0, 0, 2, 144, 8);
  					break;
  				
  				case 11:
  					func_243(&Var1, -99, -99, 5, 152, 96, -99, 10, 0, 0, 0, 31, 96, 9);
  					break;
  				
  				case 12:
  					func_243(&Var1, -99, -99, 6, 129, 1, -99, 96, 0, 0, 0, 5, 120, 10);
  					break;
  				
  				case 13:
  					func_243(&Var1, -99, -99, 5, 0, 0, -99, 10, 0, 0, 0, 0, 130, 31);
  					break;
  				
  				case 14:
  					func_243(&Var1, -99, -99, 4, 159, 96, -99, 32, 0, 0, 0, 22, 214, 11);
  					break;
  				
  				case 15:
  					func_243(&Var1, -99, -99, 9, 232, 213, -99, 32, 0, 0, 0, 22, 147, 12);
  					break;
  				
  				case 16:
  					func_243(&Var1, -99, -99, 2, 8, 98, -99, 32, 0, 0, 0, 33, 39, 13);
  					break;
  				
  				case 17:
  					func_243(&Var1, -99, -99, 5, 150, 235, -99, 106, 0, 0, 0, 0, 128, 14);
  					break;
  				
  				case 18:
  					func_243(&Var1, -99, -99, 6, 96, 97, -99, 7, 0, 0, 0, 32, 114, 15);
  					break;
  				
  				case 19:
  					func_243(&Var1, -99, -99, 4, 48, 64, -99, 32, 0, 0, 0, 0, 89, 16);
  					break;
  				
  				case 20:
  					func_243(&Var1, -99, -99, 4, 62, 64, -99, 32, 0, 0, 0, 0, 78, 17);
  					break;
  				
  				case 21:
  					func_243(&Var1, -99, -99, 4, 49, 65, -99, 32, 0, 0, 0, 8, 80, 31);
  					break;
  				
  				case 22:
  					func_243(&Var1, -99, -99, 3, 20, 16, -99, 32, 0, 0, 0, 0, 49, 18);
  					break;
  				
  				case 23:
  					func_243(&Var1, -99, -99, 0, 73, 178, -99, 32, 0, 0, 0, 38, 11, 19);
  					break;
  				
  				case 24:
  					func_243(&Var1, -99, -99, 5, 135, 53, -99, 9, 0, 0, 0, 29, 27, 20);
  					break;
  				
  				case 25:
  					func_243(&Var1, -99, -99, 7, 233, 176, -99, 120, 0, 0, 0, 11, 160, 21);
  					break;
  				
  				case 26:
  					func_243(&Var1, -99, -99, 4, 34, 179, -99, 32, 0, 0, 0, 0, 77, 22);
  					break;
  				
  				case 27:
  					func_243(&Var1, -99, -99, 15, 131, 93, -99, 32, 0, 0, 0, 0, 250, 23);
  					break;
  				
  				default:
  					func_241(&Var1, iParam0, iParam1, 28);
  					break;
  			}
  			break;
  	}
  	return Var1;
  }
  
  void func_241(var uParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	struct<5> Var1;
  	struct<3> Var2;
  	struct<2> Var3;
  	int iVar4;
  	
  	(*uParam0)[0] = 0;
  	(*uParam0)[2] = -99;
  	(*uParam0)[3] = 0;
  	(*uParam0)[4] = 0;
  	(*uParam0)[6] = 0;
  	(*uParam0)[5] = 0;
  	(*uParam0)[8] = 0;
  	(*uParam0)[9] = 0;
  	(*uParam0)[10] = 0;
  	(*uParam0)[1] = 0;
  	(*uParam0)[7] = 0;
  	(*uParam0)[11] = 0;
  	(*uParam0)[13] = -99;
  	(*uParam0)[14] = -99;
  	uParam0->f_16 = 0;
  	iVar0 = 0;
  	if (iParam1 == joaat("player_zero"))
  	{
  		iVar0 = 0;
  		(*uParam0)[13] = (10 + (iParam2 - iParam3));
  	}
  	else if (iParam1 == joaat("player_one"))
  	{
  		iVar0 = 1;
  		(*uParam0)[13] = (9 + (iParam2 - iParam3));
  	}
  	else if (iParam1 == joaat("player_two"))
  	{
  		iVar0 = 2;
  		(*uParam0)[13] = (9 + (iParam2 - iParam3));
  	}
  	else if (iParam1 == joaat("mp_m_freemode_01"))
  	{
  		iVar0 = 3;
  	}
  	else if (iParam1 == joaat("mp_f_freemode_01"))
  	{
  		iVar0 = 4;
  	}
  	unk_0x04222560EC9A383D(iVar0, 0);
  	unk_0xB11622B138AA8874((iParam2 - iParam3), &Var1);
  	if (!unk_0x14AC70FD8926649E(Var1))
  	{
  		iVar4 = 0;
  		while (iVar4 < Var1.f_4)
  		{
  			if (unk_0xCFA068E582501862(Var1.f_1, iVar4, &Var2))
  			{
  				if ((Var2.x != 0 && Var2.x != -1) && Var2.x != joaat("0"))
  				{
  					if (Var2.f_2 == 10)
  					{
  						unk_0x1C2EE47D7054A42C(&Var3);
  						unk_0x2209D2FE26AA9212(Var2.x, &Var3);
  						if (Var2.x != Var3.f_1)
  						{
  							uParam0->f_16 = 1;
  						}
  					}
  					if (Var2.f_2 == 10 && uParam0->f_16)
  					{
  						(*uParam0)[func_242(Var2.f_2)] = Var2.x;
  						uParam0->f_16 = 1;
  					}
  					else
  					{
  						(*uParam0)[func_242(Var2.f_2)] = func_235(iParam1, Var2.x, func_242(Var2.f_2), iVar0);
  					}
  				}
  				else if (Var2.f_1 != -1)
  				{
  					(*uParam0)[func_242(Var2.f_2)] = Var2.f_1;
  				}
  			}
  			iVar4++;
  		}
  		if (Var1.f_3 == 0)
  		{
  			(*uParam0)[13] = -99;
  		}
  		else
  		{
  			(*uParam0)[13] = Var1.f_1;
  		}
  	}
  }
  
  int func_242(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 0;
  			break;
  		
  		case 2:
  			return 2;
  			break;
  		
  		case 3:
  			return 3;
  			break;
  		
  		case 4:
  			return 4;
  			break;
  		
  		case 6:
  			return 6;
  			break;
  		
  		case 5:
  			return 5;
  			break;
  		
  		case 8:
  			return 8;
  			break;
  		
  		case 9:
  			return 9;
  			break;
  		
  		case 10:
  			return 10;
  			break;
  		
  		case 1:
  			return 1;
  			break;
  		
  		case 7:
  			return 7;
  			break;
  		
  		case 11:
  			return 11;
  			break;
  	}
  	return 0;
  }
  
  void func_243(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)
  {
  	(*uParam0)[0] = iParam1;
  	(*uParam0)[2] = iParam2;
  	(*uParam0)[3] = iParam3;
  	(*uParam0)[4] = iParam4;
  	(*uParam0)[6] = iParam5;
  	(*uParam0)[5] = iParam6;
  	(*uParam0)[8] = iParam7;
  	(*uParam0)[9] = iParam8;
  	(*uParam0)[10] = iParam9;
  	(*uParam0)[1] = iParam10;
  	(*uParam0)[7] = iParam11;
  	(*uParam0)[11] = iParam12;
  	(*uParam0)[13] = iParam13;
  	(*uParam0)[14] = -99;
  }
  
  int func_244(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			switch (iParam1)
  			{
  				case 14:
  					if (iParam2 == 16)
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 14:
  					if ((iParam2 == 40 || (iParam2 >= 41 && iParam2 <= 56)) || (iParam2 >= 64 && iParam2 <= 79))
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 14:
  					if ((iParam2 >= 17 && iParam2 <= 18) || (iParam2 >= 71 && iParam2 <= 86))
  					{
  						return 1;
  					}
  					break;
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 14:
  					if (iParam2 >= 18 && iParam2 <= 130)
  					{
  						return 1;
  					}
  					else if (iParam2 >= 10 && iParam2 <= 17)
  					{
  						return 1;
  					}
  					else if (iParam2 >= 327)
  					{
  						if (iParam3 == -1)
  						{
  							iParam3 = func_230(iParam0, iParam2, 14, 3);
  						}
  						return (unk_0x4D0432E34C5996D9(iParam3, joaat("HAT"), 1) || unk_0x4D0432E34C5996D9(func_230(iParam0, iParam2, 14, 3), -1842686353, 1));
  					}
  					break;
  				
  				case 1:
  					if (iParam2 >= 26)
  					{
  						if (iParam3 == -1)
  						{
  							iParam3 = func_230(iParam0, iParam2, 1, 3);
  						}
  						return (unk_0x4D0432E34C5996D9(iParam3, joaat("HAT"), 0) || unk_0x4D0432E34C5996D9(func_230(iParam0, iParam2, 1, 3), -1842686353, 0));
  					}
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 14:
  					if (iParam2 >= 18 && iParam2 <= 130)
  					{
  						return 1;
  					}
  					else if (iParam2 >= 10 && iParam2 <= 17)
  					{
  						return 1;
  					}
  					else if (iParam2 >= 327)
  					{
  						if (iParam3 == -1)
  						{
  							iParam3 = func_230(iParam0, iParam2, 14, 4);
  						}
  						return (unk_0x4D0432E34C5996D9(iParam3, joaat("HAT"), 1) || unk_0x4D0432E34C5996D9(func_230(iParam0, iParam2, 14, 4), -1842686353, 1));
  					}
  					break;
  				
  				case 1:
  					if (iParam2 >= 26)
  					{
  						if (iParam3 == -1)
  						{
  							iParam3 = func_230(iParam0, iParam2, 1, 4);
  						}
  						return (unk_0x4D0432E34C5996D9(iParam3, joaat("HAT"), 0) || unk_0x4D0432E34C5996D9(func_230(iParam0, iParam2, 1, 4), -1842686353, 0));
  					}
  					break;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_245(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	if (iParam0 == joaat("player_zero"))
  	{
  		if (iParam1 == 6)
  		{
  			if (iParam2 == 10)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 8)
  		{
  			if ((iParam2 == 9 || iParam2 == 7) || iParam2 == 23)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 9)
  		{
  			if (iParam2 >= 9 && iParam2 <= 14)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 14)
  		{
  			if ((((((((((((((((iParam2 == 12 || iParam2 == 59) || iParam2 == 60) || iParam2 == 31) || iParam2 == 32) || iParam2 == 33) || iParam2 == 34) || iParam2 == 35) || iParam2 == 36) || iParam2 == 37) || iParam2 == 38) || iParam2 == 39) || iParam2 == 40) || iParam2 == 41) || (iParam2 >= 42 && iParam2 <= 44)) || iParam2 == 54) || iParam2 == 55)
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		if (iParam1 == 2)
  		{
  			if (iParam2 == 20)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 8)
  		{
  			if ((iParam2 == 3 || iParam2 == 5) || iParam2 == 9)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 9)
  		{
  			if (iParam2 >= 5 && iParam2 <= 10)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 14)
  		{
  			if (((((((((((((iParam2 == 82 || iParam2 == 10) || iParam2 == 26) || iParam2 == 27) || iParam2 == 28) || iParam2 == 29) || iParam2 == 30) || iParam2 == 31) || iParam2 == 32) || iParam2 == 33) || iParam2 == 34) || iParam2 == 35) || iParam2 == 36) || (iParam2 >= 37 && iParam2 <= 39))
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		if (iParam1 == 8)
  		{
  			if (iParam2 == 14 || iParam2 == 7)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 9)
  		{
  			if (((iParam2 == 8 || (iParam2 >= 9 && iParam2 <= 14)) || iParam2 == 15) || iParam2 == 16)
  			{
  				return 1;
  			}
  		}
  		else if (iParam1 == 14)
  		{
  			if (((((((((((((iParam2 == 88 || iParam2 == 12) || iParam2 == 47) || iParam2 == 48) || iParam2 == 49) || iParam2 == 50) || iParam2 == 51) || iParam2 == 52) || iParam2 == 53) || iParam2 == 54) || iParam2 == 55) || iParam2 == 56) || iParam2 == 57) || (iParam2 >= 58 && iParam2 <= 60))
  			{
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("mp_m_freemode_01"))
  	{
  		if (iParam1 == 1)
  		{
  			if (iParam2 > 0)
  			{
  				if (iParam2 >= 26)
  				{
  					if (iParam3 == -1)
  					{
  						iParam3 = func_230(iParam0, iParam2, 1, 3);
  					}
  					if (unk_0x4D0432E34C5996D9(iParam3, joaat("HAT"), 0) || unk_0x4D0432E34C5996D9(iParam3, joaat("HAIR_SHRINK"), 0))
  					{
  						return 0;
  					}
  				}
  				return 1;
  			}
  		}
  	}
  	else if (iParam0 == joaat("mp_f_freemode_01"))
  	{
  		if (iParam1 == 1)
  		{
  			if (iParam2 > 0)
  			{
  				if (iParam2 >= 26)
  				{
  					if (iParam3 == -1)
  					{
  						iParam3 = func_230(iParam0, iParam2, 1, 4);
  					}
  					if (unk_0x4D0432E34C5996D9(iParam3, joaat("HAT"), 0) || unk_0x4D0432E34C5996D9(iParam3, joaat("HAIR_SHRINK"), 0))
  					{
  						return 0;
  					}
  				}
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_246(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	switch (iParam0)
  	{
  		case joaat("player_zero"):
  			if (iParam1 == 14)
  			{
  				if ((((((((iParam2 == 58 || iParam2 == 61) || (iParam2 >= 62 && iParam2 <= 69)) || (iParam2 >= 70 && iParam2 <= 79)) || (iParam2 >= 80 && iParam2 <= 89)) || iParam2 == 90) || (iParam2 >= 91 && iParam2 <= 102)) || (iParam2 >= 103 && iParam2 <= 110)) || iParam2 == 111)
  				{
  					return 1;
  				}
  			}
  			break;
  		
  		case joaat("player_one"):
  			if (iParam1 == 14)
  			{
  				if (((((((((((iParam2 >= 83 && iParam2 <= 92) || iParam2 == 93) || iParam2 == 94) || (iParam2 >= 95 && iParam2 <= 101)) || (iParam2 >= 102 && iParam2 <= 111)) || (iParam2 >= 112 && iParam2 <= 121)) || (iParam2 >= 122 && iParam2 <= 131)) || (iParam2 >= 132 && iParam2 <= 139)) || (iParam2 >= 140 && iParam2 <= 149)) || (iParam2 >= 150 && iParam2 <= 156)) || iParam2 == 157)
  				{
  					return 1;
  				}
  			}
  			break;
  		
  		case joaat("player_two"):
  			if (iParam1 == 14)
  			{
  				if (((((((((iParam2 == 89 || (iParam2 >= 90 && iParam2 <= 99)) || (iParam2 >= 100 && iParam2 <= 109)) || iParam2 == 111) || iParam2 == 112) || (iParam2 >= 113 && iParam2 <= 122)) || (iParam2 >= 123 && iParam2 <= 132)) || (iParam2 >= 133 && iParam2 <= 142)) || (iParam2 >= 143 && iParam2 <= 152)) || iParam2 == 153)
  				{
  					return 1;
  				}
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			if (iParam1 == 14)
  			{
  				if (iParam2 >= 155 && iParam2 <= 318)
  				{
  					return 1;
  				}
  				else if (iParam2 >= 327)
  				{
  					if (iParam3 == -1)
  					{
  						iParam3 = func_230(iParam0, iParam2, 14, 3);
  					}
  					return unk_0x4D0432E34C5996D9(iParam3, joaat("GLASSES"), 1);
  				}
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			if (iParam1 == 14)
  			{
  				if (iParam2 >= 155 && iParam2 <= 318)
  				{
  					return 1;
  				}
  				else if (iParam2 >= 327)
  				{
  					if (iParam3 == -1)
  					{
  						iParam3 = func_230(iParam0, iParam2, 14, 4);
  					}
  					return unk_0x4D0432E34C5996D9(iParam3, joaat("GLASSES"), 1);
  				}
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_247(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		return -99;
  	}
  	iVar0 = unk_0xA98E0435012EAF07(iParam0, iParam1);
  	if (iVar0 == -1)
  	{
  		return func_236(iParam1);
  	}
  	iVar1 = unk_0x77A103B794FA7737(iParam0, iParam1);
  	return func_233(iParam0, iVar0, iVar1, iParam1);
  }
  
  int func_248(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (((iParam1 == 12 || iParam1 == 13) || iParam1 == 14) || unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		return -99;
  	}
  	iVar0 = func_218(iParam1);
  	iVar1 = unk_0x3FB4D40A857CEA77(iParam0, iVar0);
  	iVar2 = unk_0x79AFA009D186C4FB(iParam0, iVar0);
  	return func_249(iParam0, iVar1, iVar2, iParam1);
  }
  
  int func_249(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	
  	iVar0 = func_218(iParam3);
  	iVar1 = unk_0xD6A0115FA2F3F0EC(iParam0, iVar0);
  	iVar3 = 0;
  	while (iVar3 <= (iVar1 - 1))
  	{
  		iVar5 = unk_0x7CF1CA3F6DB5685F(iParam0, iVar0, iVar3);
  		if (iVar3 != iParam1)
  		{
  			iVar2 = (iVar2 + iVar5);
  		}
  		else
  		{
  			iVar4 = 0;
  			while (iVar4 <= (iVar5 - 1))
  			{
  				if (iVar3 == iParam1 && iVar4 == iParam2)
  				{
  					return iVar2;
  				}
  				else
  				{
  					iVar2++;
  				}
  				iVar4++;
  			}
  		}
  		iVar3++;
  	}
  	return -99;
  }
  
  void func_250(int iParam0)
  {
  	if (unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 1) && !unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 6))
  	{
  		func_253(iParam0, Global_76647[1 /*14*/].f_5, Global_76647[1 /*14*/].f_2, 2, Global_76647[1 /*14*/].f_1, 1, 0);
  	}
  	if (unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 1) && unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 6))
  	{
  		if (iParam0 == 12)
  		{
  			func_251(Global_2621444, 2, 1, 1, -1);
  		}
  		else if (iParam0 == 13)
  		{
  		}
  		else if (iParam0 == 14)
  		{
  			func_251(Global_2621444, 2, 1, 1, -1);
  		}
  		else
  		{
  			func_251(Global_2621444, 2, 1, 1, -1);
  		}
  	}
  }
  
  void func_251(int iParam0, int iParam1, bool bParam2, bool bParam3, int iParam4)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar0 = Global_76644;
  	if (iParam4 != -1)
  	{
  		iVar0 = iParam4;
  	}
  	if (func_252(iParam0, iParam1, &iVar2, &iVar1, bParam2, bParam3))
  	{
  		iVar3 = func_49(iVar2, iVar0, 0);
  		unk_0xBE20AB8238688965(&iVar3, iVar1);
  		func_181(iVar2, iVar3, iVar0, 1, 0);
  	}
  }
  
  bool func_252(int iParam0, int iParam1, var uParam2, var uParam3, bool bParam4, bool bParam5)
  {
  	int iVar0;
  	
  	*uParam2 = 11771;
  	if ((bParam4 && Global_4268238) || (!bParam4 && bParam5))
  	{
  		switch (iParam1)
  		{
  			case 1:
  				switch (iParam0)
  				{
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_0"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_0"):
  						*uParam2 = 971;
  						*uParam3 = 19;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_1"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_1"):
  						*uParam2 = 971;
  						*uParam3 = 20;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_2"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_2"):
  						*uParam2 = 971;
  						*uParam3 = 21;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_3"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_3"):
  						*uParam2 = 971;
  						*uParam3 = 22;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_4"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_4"):
  						*uParam2 = 971;
  						*uParam3 = 23;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_5"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_5"):
  						*uParam2 = 971;
  						*uParam3 = 24;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_6"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_6"):
  						*uParam2 = 971;
  						*uParam3 = 25;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_7"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_7"):
  						*uParam2 = 971;
  						*uParam3 = 26;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_0"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_0"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_0"):
  						*uParam2 = 935;
  						*uParam3 = 0;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_1"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_1"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_1"):
  						*uParam2 = 935;
  						*uParam3 = 1;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_2"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_2"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_2"):
  						*uParam2 = 935;
  						*uParam3 = 2;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_3"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_3"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_3"):
  						*uParam2 = 935;
  						*uParam3 = 3;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_4"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_4"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_4"):
  						*uParam2 = 935;
  						*uParam3 = 4;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_5"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_5"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_5"):
  						*uParam2 = 935;
  						*uParam3 = 5;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_7"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_7"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_7"):
  						*uParam2 = 935;
  						*uParam3 = 7;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_8"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_8"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_8"):
  						*uParam2 = 935;
  						*uParam3 = 8;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_BIKER_M_SPECIAL_0_11"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_2_11"):
  					case joaat("DLC_MP_BIKER_M_SPECIAL_4_11"):
  						*uParam2 = 935;
  						*uParam3 = 11;
  						return 1;
  						break;
  				}
  				break;
  			
  			case 2:
  				switch (iParam0)
  				{
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_0"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_0"):
  						*uParam2 = 1023;
  						*uParam3 = 19;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_1"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_1"):
  						*uParam2 = 1023;
  						*uParam3 = 20;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_2"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_2"):
  						*uParam2 = 1023;
  						*uParam3 = 21;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_3"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_3"):
  						*uParam2 = 1023;
  						*uParam3 = 22;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_4"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_4"):
  						*uParam2 = 1023;
  						*uParam3 = 23;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_5"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_5"):
  						*uParam2 = 1023;
  						*uParam3 = 24;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_6"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_6"):
  						*uParam2 = 1023;
  						*uParam3 = 25;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_M_PHEAD_15_7"):
  					case joaat("DLC_MP_STUNT_M_PHEAD_0_7"):
  						*uParam2 = 1023;
  						*uParam3 = 26;
  						return 1;
  						break;
  				}
  				break;
  		}
  	}
  	else
  	{
  		switch (iParam1)
  		{
  			case 1:
  				switch (iParam0)
  				{
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_0"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_0"):
  						*uParam2 = 971;
  						*uParam3 = 19;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_1"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_1"):
  						*uParam2 = 971;
  						*uParam3 = 20;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_2"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_2"):
  						*uParam2 = 971;
  						*uParam3 = 21;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_3"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_3"):
  						*uParam2 = 971;
  						*uParam3 = 22;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_4"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_4"):
  						*uParam2 = 971;
  						*uParam3 = 23;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_5"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_5"):
  						*uParam2 = 971;
  						*uParam3 = 24;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_6"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_6"):
  						*uParam2 = 971;
  						*uParam3 = 25;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_7"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_7"):
  						*uParam2 = 971;
  						*uParam3 = 26;
  						return 1;
  						break;
  				}
  				break;
  			
  			case 2:
  				switch (iParam0)
  				{
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_0"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_0"):
  						*uParam2 = 1023;
  						*uParam3 = 19;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_1"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_1"):
  						*uParam2 = 1023;
  						*uParam3 = 20;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_2"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_2"):
  						*uParam2 = 1023;
  						*uParam3 = 21;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_3"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_3"):
  						*uParam2 = 1023;
  						*uParam3 = 22;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_4"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_4"):
  						*uParam2 = 1023;
  						*uParam3 = 23;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_5"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_5"):
  						*uParam2 = 1023;
  						*uParam3 = 24;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_6"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_6"):
  						*uParam2 = 1023;
  						*uParam3 = 25;
  						return 1;
  						break;
  					
  					case joaat("DLC_MP_STUNT_F_PHEAD_15_7"):
  					case joaat("DLC_MP_STUNT_F_PHEAD_0_7"):
  						*uParam2 = 1023;
  						*uParam3 = 26;
  						return 1;
  						break;
  				}
  				break;
  			}
  	}
  	iVar0 = -1;
  	if (bParam4)
  	{
  		if (Global_4268238)
  		{
  			iVar0 = unk_0x52E48CCEEE1A6F7C(iParam0);
  		}
  		else
  		{
  			iVar0 = unk_0x9C343CBA5B2E3744(iParam0);
  		}
  	}
  	else if (bParam5)
  	{
  		iVar0 = unk_0x52E48CCEEE1A6F7C(iParam0);
  	}
  	else
  	{
  		iVar0 = unk_0x9C343CBA5B2E3744(iParam0);
  	}
  	if (iVar0 == -1)
  	{
  		return 0;
  	}
  	switch (iParam1)
  	{
  		case 1:
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 0:
  					*uParam2 = 1760;
  					break;
  				
  				case 1:
  					*uParam2 = 1761;
  					break;
  				
  				case 2:
  					*uParam2 = 1762;
  					break;
  				
  				case 3:
  					*uParam2 = 1763;
  					break;
  				
  				case 4:
  					*uParam2 = 1764;
  					break;
  				
  				case 5:
  					*uParam2 = 1765;
  					break;
  				
  				case 6:
  					*uParam2 = 1772;
  					break;
  				
  				case 7:
  					*uParam2 = 1773;
  					break;
  				
  				case 8:
  					*uParam2 = 1774;
  					break;
  				
  				case 9:
  					*uParam2 = 1775;
  					break;
  				
  				case 10:
  					*uParam2 = 1776;
  					break;
  				
  				case 11:
  					*uParam2 = 1777;
  					break;
  				
  				case 12:
  					*uParam2 = 1778;
  					break;
  				
  				case 13:
  					*uParam2 = 1786;
  					break;
  				
  				case 14:
  					*uParam2 = 1787;
  					break;
  				
  				case 15:
  					*uParam2 = 1888;
  					break;
  				
  				case 16:
  					*uParam2 = 1889;
  					break;
  				
  				case 17:
  					*uParam2 = 1920;
  					break;
  				
  				case 18:
  					*uParam2 = 1934;
  					break;
  				
  				case 19:
  					*uParam2 = 1935;
  					break;
  				
  				case 20:
  					*uParam2 = 1936;
  					break;
  				
  				case 21:
  					*uParam2 = 1937;
  					break;
  				
  				case 22:
  					*uParam2 = 1938;
  					break;
  				
  				case 23:
  					*uParam2 = 2042;
  					break;
  				
  				case 24:
  					*uParam2 = 2043;
  					break;
  				
  				case 25:
  					*uParam2 = 2069;
  					break;
  				
  				case 26:
  					*uParam2 = 2070;
  					break;
  				
  				case 27:
  					*uParam2 = 2071;
  					break;
  				
  				case 28:
  					*uParam2 = 2072;
  					break;
  				
  				case 29:
  					*uParam2 = 2073;
  					break;
  				
  				case 30:
  					*uParam2 = 2074;
  					break;
  				
  				case 31:
  					*uParam2 = 2075;
  					break;
  				
  				case 32:
  					*uParam2 = 2076;
  					break;
  				
  				case 33:
  					*uParam2 = 2077;
  					break;
  				
  				case 34:
  					*uParam2 = 2078;
  					break;
  				
  				case 35:
  					*uParam2 = 2325;
  					break;
  				
  				case 36:
  					*uParam2 = 2326;
  					break;
  				
  				case 37:
  					*uParam2 = 2390;
  					break;
  				
  				case 38:
  					*uParam2 = 2391;
  					break;
  				
  				case 39:
  					*uParam2 = 2392;
  					break;
  				
  				case 40:
  					*uParam2 = 2393;
  					break;
  				
  				case 41:
  					*uParam2 = 2452;
  					break;
  				
  				case 42:
  					*uParam2 = 2453;
  					break;
  				
  				case 43:
  					*uParam2 = 2454;
  					break;
  				
  				case 44:
  					*uParam2 = 2455;
  					break;
  				
  				case 45:
  					*uParam2 = 2456;
  					break;
  				
  				case 46:
  					*uParam2 = 2457;
  					break;
  				
  				case 47:
  					*uParam2 = 2458;
  					break;
  				
  				case 48:
  					*uParam2 = 2459;
  					break;
  				
  				case 49:
  					*uParam2 = 2460;
  					break;
  				
  				case 50:
  					*uParam2 = 2461;
  					break;
  				
  				case 51:
  					*uParam2 = 2590;
  					break;
  				
  				case 52:
  					*uParam2 = 2591;
  					break;
  				
  				case 53:
  					*uParam2 = 2592;
  					break;
  				
  				case 54:
  					*uParam2 = 2593;
  					break;
  				
  				case 55:
  					*uParam2 = 2594;
  					break;
  				
  				case 56:
  					*uParam2 = 2595;
  					break;
  				
  				case 57:
  					*uParam2 = 2596;
  					break;
  				
  				case 58:
  					*uParam2 = 2597;
  					break;
  				
  				case 59:
  					*uParam2 = 2598;
  					break;
  				
  				case 60:
  					*uParam2 = 2599;
  					break;
  				
  				case 61:
  					*uParam2 = 2600;
  					break;
  				
  				case 62:
  					*uParam2 = 3197;
  					break;
  				
  				case 63:
  					*uParam2 = 3198;
  					break;
  				
  				case 64:
  					*uParam2 = 3199;
  					break;
  				
  				case 65:
  					*uParam2 = 3200;
  					break;
  				
  				case 66:
  					*uParam2 = 3201;
  					break;
  				
  				case 67:
  					*uParam2 = 3202;
  					break;
  				
  				case 68:
  					*uParam2 = 3670;
  					break;
  				
  				case 69:
  					*uParam2 = 3671;
  					break;
  				
  				case 70:
  					*uParam2 = 3672;
  					break;
  				
  				case 71:
  					*uParam2 = 3673;
  					break;
  				
  				case 72:
  					*uParam2 = 3674;
  					break;
  				
  				case 73:
  					*uParam2 = 3675;
  					break;
  				
  				case 74:
  					*uParam2 = 3676;
  					break;
  				
  				case 75:
  					*uParam2 = 3677;
  					break;
  				
  				case 76:
  					*uParam2 = 3678;
  					break;
  				
  				case 77:
  					*uParam2 = 3679;
  					break;
  				
  				case 78:
  					*uParam2 = 3793;
  					break;
  				
  				case joaat("MPSV_LP0_31"):
  					*uParam2 = 3794;
  					break;
  				
  				case 80:
  					*uParam2 = 3795;
  					break;
  				
  				case 81:
  					*uParam2 = 3796;
  					break;
  				
  				case 82:
  					*uParam2 = 3797;
  					break;
  				
  				case 83:
  					*uParam2 = 3798;
  					break;
  				
  				case 84:
  					*uParam2 = 3799;
  					break;
  				
  				case 85:
  					*uParam2 = 3800;
  					break;
  				
  				case 86:
  					*uParam2 = 3903;
  					break;
  				
  				case 87:
  					*uParam2 = 3904;
  					break;
  				
  				case 88:
  					*uParam2 = 3905;
  					break;
  				
  				case 89:
  					*uParam2 = 5338;
  					break;
  				
  				case 90:
  					*uParam2 = 5339;
  					break;
  				
  				case 91:
  					*uParam2 = 5340;
  					break;
  				
  				case 92:
  					*uParam2 = 5341;
  					break;
  				
  				case 93:
  					*uParam2 = 5342;
  					break;
  				
  				case 94:
  					*uParam2 = 5343;
  					break;
  				
  				case 95:
  					*uParam2 = 5344;
  					break;
  				
  				case 96:
  					*uParam2 = 5345;
  					break;
  				
  				case 97:
  					*uParam2 = 5346;
  					break;
  				
  				case 98:
  					*uParam2 = 5347;
  					break;
  				
  				case 99:
  					*uParam2 = 5348;
  					break;
  			}
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 100:
  					*uParam2 = 5349;
  					break;
  				
  				case 101:
  					*uParam2 = 5395;
  					break;
  				
  				case 102:
  					*uParam2 = 5396;
  					break;
  				
  				case 103:
  					*uParam2 = 5397;
  					break;
  				
  				case 104:
  					*uParam2 = 5398;
  					break;
  				
  				case 105:
  					*uParam2 = 5399;
  					break;
  				
  				case 106:
  					*uParam2 = 5400;
  					break;
  				
  				case 107:
  					*uParam2 = 5401;
  					break;
  				
  				case 108:
  					*uParam2 = 5402;
  					break;
  				
  				case 109:
  					*uParam2 = 5403;
  					break;
  				
  				case 110:
  					*uParam2 = 5404;
  					break;
  				
  				case 111:
  					*uParam2 = 5405;
  					break;
  				
  				case 112:
  					*uParam2 = 5406;
  					break;
  				
  				case 113:
  					*uParam2 = 5407;
  					break;
  				
  				case 114:
  					*uParam2 = 5408;
  					break;
  				
  				case 115:
  					*uParam2 = 5409;
  					break;
  				
  				case 116:
  					*uParam2 = 5410;
  					break;
  				
  				case 117:
  					*uParam2 = 5411;
  					break;
  				
  				case 118:
  					*uParam2 = 5412;
  					break;
  				
  				case 119:
  					*uParam2 = 5413;
  					break;
  				
  				case 120:
  					*uParam2 = 5414;
  					break;
  				
  				case 121:
  					*uParam2 = 5415;
  					break;
  				
  				case 122:
  					*uParam2 = 5416;
  					break;
  				
  				case 123:
  					*uParam2 = 5417;
  					break;
  				
  				case 124:
  					*uParam2 = 6123;
  					break;
  				
  				case 125:
  					*uParam2 = 6124;
  					break;
  				
  				case 126:
  					*uParam2 = 6125;
  					break;
  				
  				case 127:
  					*uParam2 = 6126;
  					break;
  				
  				case 128:
  					*uParam2 = 6127;
  					break;
  				
  				case 129:
  					*uParam2 = 6128;
  					break;
  				
  				case 130:
  					*uParam2 = 6129;
  					break;
  				
  				case 131:
  					*uParam2 = 6130;
  					break;
  				
  				case 132:
  					*uParam2 = 6131;
  					break;
  				
  				case 133:
  					*uParam2 = 6132;
  					break;
  				
  				case 134:
  					*uParam2 = 6133;
  					break;
  				
  				case 135:
  					*uParam2 = 6134;
  					break;
  				
  				case 136:
  					*uParam2 = 6135;
  					break;
  				
  				case 137:
  					*uParam2 = 6136;
  					break;
  				
  				case 138:
  					*uParam2 = 6137;
  					break;
  				
  				case 139:
  					*uParam2 = 6436;
  					break;
  				
  				case 140:
  					*uParam2 = 6437;
  					break;
  				
  				case 141:
  					*uParam2 = 6438;
  					break;
  				
  				case 142:
  					*uParam2 = 6439;
  					break;
  				
  				case 143:
  					*uParam2 = 6440;
  					break;
  				
  				case 144:
  					*uParam2 = 6441;
  					break;
  				
  				case 145:
  					*uParam2 = 6442;
  					break;
  				
  				case 146:
  					*uParam2 = 6443;
  					break;
  				
  				case 147:
  					*uParam2 = 6444;
  					break;
  				
  				case 148:
  					*uParam2 = 6445;
  					break;
  				
  				case 149:
  					*uParam2 = 6446;
  					break;
  				
  				case 150:
  					*uParam2 = 6447;
  					break;
  				
  				case 151:
  					*uParam2 = 6448;
  					break;
  				
  				case 152:
  					*uParam2 = 6449;
  					break;
  				
  				case 153:
  					*uParam2 = 6450;
  					break;
  				
  				case 154:
  					*uParam2 = 7267;
  					break;
  				
  				case 155:
  					*uParam2 = 7268;
  					break;
  				
  				case 156:
  					*uParam2 = 7269;
  					break;
  				
  				case 157:
  					*uParam2 = 7270;
  					break;
  				
  				case 158:
  					*uParam2 = 7271;
  					break;
  				
  				case 159:
  					*uParam2 = 7272;
  					break;
  				
  				case 160:
  					*uParam2 = 7273;
  					break;
  				
  				case 161:
  					*uParam2 = 7880;
  					break;
  				
  				case 162:
  					*uParam2 = 7881;
  					break;
  				
  				case 163:
  					*uParam2 = 7882;
  					break;
  				
  				case 164:
  					*uParam2 = 7883;
  					break;
  				
  				case 165:
  					*uParam2 = 7884;
  					break;
  				
  				case 166:
  					*uParam2 = 7885;
  					break;
  				
  				case 167:
  					*uParam2 = 7886;
  					break;
  				
  				case 168:
  					*uParam2 = 7887;
  					break;
  				
  				case 169:
  					*uParam2 = 7888;
  					break;
  				
  				case 170:
  					*uParam2 = 7889;
  					break;
  				
  				case 171:
  					*uParam2 = 7890;
  					break;
  				
  				case 172:
  					*uParam2 = 7891;
  					break;
  				
  				case 173:
  					*uParam2 = 7892;
  					break;
  				
  				case 174:
  					*uParam2 = 7893;
  					break;
  				
  				case 175:
  					*uParam2 = 7894;
  					break;
  				
  				case 176:
  					*uParam2 = 8300;
  					break;
  				
  				case 177:
  					*uParam2 = 8301;
  					break;
  				
  				case 178:
  					*uParam2 = 8302;
  					break;
  				
  				case 179:
  					*uParam2 = 8303;
  					break;
  				
  				case 180:
  					*uParam2 = 8304;
  					break;
  				
  				case 181:
  					*uParam2 = 8305;
  					break;
  				
  				case 182:
  					*uParam2 = 8306;
  					break;
  				
  				case 183:
  					*uParam2 = 8307;
  					break;
  				
  				case 184:
  					*uParam2 = 8308;
  					break;
  				
  				case 185:
  					*uParam2 = 8309;
  					break;
  				
  				case 186:
  					*uParam2 = 8310;
  					break;
  				
  				case 187:
  					*uParam2 = 8311;
  					break;
  				
  				case 188:
  					*uParam2 = 8312;
  					break;
  				
  				case 189:
  					*uParam2 = 8313;
  					break;
  				
  				case 190:
  					*uParam2 = 8314;
  					break;
  				
  				case 191:
  					*uParam2 = 8315;
  					break;
  				
  				case 192:
  					*uParam2 = 8316;
  					break;
  				
  				case 193:
  					*uParam2 = 8317;
  					break;
  				
  				case 194:
  					*uParam2 = 8318;
  					break;
  				
  				case 195:
  					*uParam2 = 8319;
  					break;
  				
  				case 196:
  					*uParam2 = 8320;
  					break;
  				
  				case 197:
  					*uParam2 = 8321;
  					break;
  				
  				case 198:
  					*uParam2 = 8322;
  					break;
  				
  				case 199:
  					*uParam2 = 8323;
  					break;
  			}
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 200:
  					*uParam2 = 8324;
  					break;
  				
  				case 201:
  					*uParam2 = 8937;
  					break;
  				
  				case 202:
  					*uParam2 = 8938;
  					break;
  				
  				case 203:
  					*uParam2 = 8939;
  					break;
  				
  				case 204:
  					*uParam2 = 8940;
  					break;
  				
  				case 205:
  					*uParam2 = 8941;
  					break;
  				
  				case 206:
  					*uParam2 = 9420;
  					break;
  				
  				case 207:
  					*uParam2 = 9421;
  					break;
  				
  				case 208:
  					*uParam2 = 9422;
  					break;
  				
  				case 209:
  					*uParam2 = 9423;
  					break;
  				
  				case 210:
  					*uParam2 = 9424;
  					break;
  				
  				case 211:
  					*uParam2 = 9425;
  					break;
  				
  				case 212:
  					*uParam2 = 9426;
  					break;
  				
  				case 213:
  					*uParam2 = 9427;
  					break;
  				
  				case 214:
  					*uParam2 = 9428;
  					break;
  				
  				case 215:
  					*uParam2 = 9429;
  					break;
  				
  				case 216:
  					*uParam2 = 9430;
  					break;
  				
  				case 217:
  					*uParam2 = 9431;
  					break;
  				
  				case 218:
  					*uParam2 = 9432;
  					break;
  				
  				case 219:
  					*uParam2 = 9433;
  					break;
  				
  				case 220:
  					*uParam2 = 9434;
  					break;
  				
  				case 221:
  					*uParam2 = 9435;
  					break;
  				
  				case 222:
  					*uParam2 = 9436;
  					break;
  				
  				case 223:
  					*uParam2 = 9437;
  					break;
  				
  				case 224:
  					*uParam2 = 9438;
  					break;
  				
  				case 225:
  					*uParam2 = 9439;
  					break;
  				
  				case 226:
  					*uParam2 = 9440;
  					break;
  				
  				case 227:
  					*uParam2 = 9441;
  					break;
  				
  				case 228:
  					*uParam2 = 9442;
  					break;
  				
  				case 229:
  					*uParam2 = 9443;
  					break;
  				
  				case 230:
  					*uParam2 = 9444;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 0:
  					*uParam2 = 1766;
  					break;
  				
  				case 1:
  					*uParam2 = 1767;
  					break;
  				
  				case 2:
  					*uParam2 = 1768;
  					break;
  				
  				case 3:
  					*uParam2 = 1769;
  					break;
  				
  				case 4:
  					*uParam2 = 1770;
  					break;
  				
  				case 5:
  					*uParam2 = 1771;
  					break;
  				
  				case 6:
  					*uParam2 = 1779;
  					break;
  				
  				case 7:
  					*uParam2 = 1780;
  					break;
  				
  				case 8:
  					*uParam2 = 1781;
  					break;
  				
  				case 9:
  					*uParam2 = 1782;
  					break;
  				
  				case 10:
  					*uParam2 = 1783;
  					break;
  				
  				case 11:
  					*uParam2 = 1784;
  					break;
  				
  				case 12:
  					*uParam2 = 1785;
  					break;
  				
  				case 13:
  					*uParam2 = 1788;
  					break;
  				
  				case 14:
  					*uParam2 = 1789;
  					break;
  				
  				case 15:
  					*uParam2 = 1890;
  					break;
  				
  				case 16:
  					*uParam2 = 1891;
  					break;
  				
  				case 17:
  					*uParam2 = 1921;
  					break;
  				
  				case 18:
  					*uParam2 = 1939;
  					break;
  				
  				case 19:
  					*uParam2 = 1940;
  					break;
  				
  				case 20:
  					*uParam2 = 1941;
  					break;
  				
  				case 21:
  					*uParam2 = 1942;
  					break;
  				
  				case 22:
  					*uParam2 = 1943;
  					break;
  				
  				case 23:
  					*uParam2 = 2044;
  					break;
  				
  				case 24:
  					*uParam2 = 2045;
  					break;
  				
  				case 25:
  					*uParam2 = 2079;
  					break;
  				
  				case 26:
  					*uParam2 = 2080;
  					break;
  				
  				case 27:
  					*uParam2 = 2081;
  					break;
  				
  				case 28:
  					*uParam2 = 2082;
  					break;
  				
  				case 29:
  					*uParam2 = 2083;
  					break;
  				
  				case 30:
  					*uParam2 = 2084;
  					break;
  				
  				case 31:
  					*uParam2 = 2085;
  					break;
  				
  				case 32:
  					*uParam2 = 2086;
  					break;
  				
  				case 33:
  					*uParam2 = 2087;
  					break;
  				
  				case 34:
  					*uParam2 = 2088;
  					break;
  				
  				case 35:
  					*uParam2 = 2327;
  					break;
  				
  				case 36:
  					*uParam2 = 2328;
  					break;
  				
  				case 37:
  					*uParam2 = 2394;
  					break;
  				
  				case 38:
  					*uParam2 = 2395;
  					break;
  				
  				case 39:
  					*uParam2 = 2396;
  					break;
  				
  				case 40:
  					*uParam2 = 2397;
  					break;
  				
  				case 41:
  					*uParam2 = 2462;
  					break;
  				
  				case 42:
  					*uParam2 = 2463;
  					break;
  				
  				case 43:
  					*uParam2 = 2464;
  					break;
  				
  				case 44:
  					*uParam2 = 2465;
  					break;
  				
  				case 45:
  					*uParam2 = 2466;
  					break;
  				
  				case 46:
  					*uParam2 = 2467;
  					break;
  				
  				case 47:
  					*uParam2 = 2468;
  					break;
  				
  				case 48:
  					*uParam2 = 2469;
  					break;
  				
  				case 49:
  					*uParam2 = 2470;
  					break;
  				
  				case 50:
  					*uParam2 = 2471;
  					break;
  				
  				case 51:
  					*uParam2 = 2601;
  					break;
  				
  				case 52:
  					*uParam2 = 2602;
  					break;
  				
  				case 53:
  					*uParam2 = 2603;
  					break;
  				
  				case 54:
  					*uParam2 = 2604;
  					break;
  				
  				case 55:
  					*uParam2 = 2605;
  					break;
  				
  				case 56:
  					*uParam2 = 2606;
  					break;
  				
  				case 57:
  					*uParam2 = 2607;
  					break;
  				
  				case 58:
  					*uParam2 = 2608;
  					break;
  				
  				case 59:
  					*uParam2 = 2609;
  					break;
  				
  				case 60:
  					*uParam2 = 2610;
  					break;
  				
  				case 61:
  					*uParam2 = 2611;
  					break;
  				
  				case 62:
  					*uParam2 = 3203;
  					break;
  				
  				case 63:
  					*uParam2 = 3204;
  					break;
  				
  				case 64:
  					*uParam2 = 3205;
  					break;
  				
  				case 65:
  					*uParam2 = 3206;
  					break;
  				
  				case 66:
  					*uParam2 = 3207;
  					break;
  				
  				case 67:
  					*uParam2 = 3208;
  					break;
  				
  				case 68:
  					*uParam2 = 3680;
  					break;
  				
  				case 69:
  					*uParam2 = 3681;
  					break;
  				
  				case 70:
  					*uParam2 = 3682;
  					break;
  				
  				case 71:
  					*uParam2 = 3683;
  					break;
  				
  				case 72:
  					*uParam2 = 3684;
  					break;
  				
  				case 73:
  					*uParam2 = 3685;
  					break;
  				
  				case 74:
  					*uParam2 = 3686;
  					break;
  				
  				case 75:
  					*uParam2 = 3687;
  					break;
  				
  				case 76:
  					*uParam2 = 3688;
  					break;
  				
  				case 77:
  					*uParam2 = 3689;
  					break;
  				
  				case 78:
  					*uParam2 = 3801;
  					break;
  				
  				case joaat("MPSV_LP0_31"):
  					*uParam2 = 3802;
  					break;
  				
  				case 80:
  					*uParam2 = 3803;
  					break;
  				
  				case 81:
  					*uParam2 = 3804;
  					break;
  				
  				case 82:
  					*uParam2 = 3805;
  					break;
  				
  				case 83:
  					*uParam2 = 3806;
  					break;
  				
  				case 84:
  					*uParam2 = 3807;
  					break;
  				
  				case 85:
  					*uParam2 = 3808;
  					break;
  				
  				case 86:
  					*uParam2 = 3906;
  					break;
  				
  				case 87:
  					*uParam2 = 3907;
  					break;
  				
  				case 88:
  					*uParam2 = 3908;
  					break;
  				
  				case 89:
  					*uParam2 = 5350;
  					break;
  				
  				case 90:
  					*uParam2 = 5351;
  					break;
  				
  				case 91:
  					*uParam2 = 5352;
  					break;
  				
  				case 92:
  					*uParam2 = 5353;
  					break;
  				
  				case 93:
  					*uParam2 = 5354;
  					break;
  				
  				case 94:
  					*uParam2 = 5355;
  					break;
  				
  				case 95:
  					*uParam2 = 5356;
  					break;
  				
  				case 96:
  					*uParam2 = 5357;
  					break;
  				
  				case 97:
  					*uParam2 = 5358;
  					break;
  				
  				case 98:
  					*uParam2 = 5359;
  					break;
  				
  				case 99:
  					*uParam2 = 5360;
  					break;
  			}
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 100:
  					*uParam2 = 5361;
  					break;
  				
  				case 101:
  					*uParam2 = 5418;
  					break;
  				
  				case 102:
  					*uParam2 = 5419;
  					break;
  				
  				case 103:
  					*uParam2 = 5420;
  					break;
  				
  				case 104:
  					*uParam2 = 5421;
  					break;
  				
  				case 105:
  					*uParam2 = 5422;
  					break;
  				
  				case 106:
  					*uParam2 = 5423;
  					break;
  				
  				case 107:
  					*uParam2 = 5424;
  					break;
  				
  				case 108:
  					*uParam2 = 5425;
  					break;
  				
  				case 109:
  					*uParam2 = 5426;
  					break;
  				
  				case 110:
  					*uParam2 = 5427;
  					break;
  				
  				case 111:
  					*uParam2 = 5428;
  					break;
  				
  				case 112:
  					*uParam2 = 5429;
  					break;
  				
  				case 113:
  					*uParam2 = 5430;
  					break;
  				
  				case 114:
  					*uParam2 = 5431;
  					break;
  				
  				case 115:
  					*uParam2 = 5432;
  					break;
  				
  				case 116:
  					*uParam2 = 5433;
  					break;
  				
  				case 117:
  					*uParam2 = 5434;
  					break;
  				
  				case 118:
  					*uParam2 = 5435;
  					break;
  				
  				case 119:
  					*uParam2 = 5436;
  					break;
  				
  				case 120:
  					*uParam2 = 5437;
  					break;
  				
  				case 121:
  					*uParam2 = 5438;
  					break;
  				
  				case 122:
  					*uParam2 = 5439;
  					break;
  				
  				case 123:
  					*uParam2 = 5440;
  					break;
  				
  				case 124:
  					*uParam2 = 6138;
  					break;
  				
  				case 125:
  					*uParam2 = 6139;
  					break;
  				
  				case 126:
  					*uParam2 = 6140;
  					break;
  				
  				case 127:
  					*uParam2 = 6141;
  					break;
  				
  				case 128:
  					*uParam2 = 6142;
  					break;
  				
  				case 129:
  					*uParam2 = 6143;
  					break;
  				
  				case 130:
  					*uParam2 = 6144;
  					break;
  				
  				case 131:
  					*uParam2 = 6145;
  					break;
  				
  				case 132:
  					*uParam2 = 6146;
  					break;
  				
  				case 133:
  					*uParam2 = 6147;
  					break;
  				
  				case 134:
  					*uParam2 = 6148;
  					break;
  				
  				case 135:
  					*uParam2 = 6149;
  					break;
  				
  				case 136:
  					*uParam2 = 6150;
  					break;
  				
  				case 137:
  					*uParam2 = 6151;
  					break;
  				
  				case 138:
  					*uParam2 = 6152;
  					break;
  				
  				case 139:
  					*uParam2 = 6451;
  					break;
  				
  				case 140:
  					*uParam2 = 6452;
  					break;
  				
  				case 141:
  					*uParam2 = 6453;
  					break;
  				
  				case 142:
  					*uParam2 = 6454;
  					break;
  				
  				case 143:
  					*uParam2 = 6455;
  					break;
  				
  				case 144:
  					*uParam2 = 6456;
  					break;
  				
  				case 145:
  					*uParam2 = 6457;
  					break;
  				
  				case 146:
  					*uParam2 = 6458;
  					break;
  				
  				case 147:
  					*uParam2 = 6459;
  					break;
  				
  				case 148:
  					*uParam2 = 6460;
  					break;
  				
  				case 149:
  					*uParam2 = 6461;
  					break;
  				
  				case 150:
  					*uParam2 = 6462;
  					break;
  				
  				case 151:
  					*uParam2 = 6463;
  					break;
  				
  				case 152:
  					*uParam2 = 6464;
  					break;
  				
  				case 153:
  					*uParam2 = 6465;
  					break;
  				
  				case 154:
  					*uParam2 = 7274;
  					break;
  				
  				case 155:
  					*uParam2 = 7275;
  					break;
  				
  				case 156:
  					*uParam2 = 7276;
  					break;
  				
  				case 157:
  					*uParam2 = 7277;
  					break;
  				
  				case 158:
  					*uParam2 = 7278;
  					break;
  				
  				case 159:
  					*uParam2 = 7279;
  					break;
  				
  				case 160:
  					*uParam2 = 7280;
  					break;
  				
  				case 161:
  					*uParam2 = 7895;
  					break;
  				
  				case 162:
  					*uParam2 = 7896;
  					break;
  				
  				case 163:
  					*uParam2 = 7897;
  					break;
  				
  				case 164:
  					*uParam2 = 7898;
  					break;
  				
  				case 165:
  					*uParam2 = 7899;
  					break;
  				
  				case 166:
  					*uParam2 = 7900;
  					break;
  				
  				case 167:
  					*uParam2 = 7901;
  					break;
  				
  				case 168:
  					*uParam2 = 7902;
  					break;
  				
  				case 169:
  					*uParam2 = 7903;
  					break;
  				
  				case 170:
  					*uParam2 = 7904;
  					break;
  				
  				case 171:
  					*uParam2 = 7905;
  					break;
  				
  				case 172:
  					*uParam2 = 7906;
  					break;
  				
  				case 173:
  					*uParam2 = 7907;
  					break;
  				
  				case 174:
  					*uParam2 = 7908;
  					break;
  				
  				case 175:
  					*uParam2 = 7909;
  					break;
  				
  				case 176:
  					*uParam2 = 8325;
  					break;
  				
  				case 177:
  					*uParam2 = 8326;
  					break;
  				
  				case 178:
  					*uParam2 = 8327;
  					break;
  				
  				case 179:
  					*uParam2 = 8328;
  					break;
  				
  				case 180:
  					*uParam2 = 8329;
  					break;
  				
  				case 181:
  					*uParam2 = 8330;
  					break;
  				
  				case 182:
  					*uParam2 = 8331;
  					break;
  				
  				case 183:
  					*uParam2 = 8332;
  					break;
  				
  				case 184:
  					*uParam2 = 8333;
  					break;
  				
  				case 185:
  					*uParam2 = 8334;
  					break;
  				
  				case 186:
  					*uParam2 = 8335;
  					break;
  				
  				case 187:
  					*uParam2 = 8336;
  					break;
  				
  				case 188:
  					*uParam2 = 8337;
  					break;
  				
  				case 189:
  					*uParam2 = 8338;
  					break;
  				
  				case 190:
  					*uParam2 = 8339;
  					break;
  				
  				case 191:
  					*uParam2 = 8340;
  					break;
  				
  				case 192:
  					*uParam2 = 8341;
  					break;
  				
  				case 193:
  					*uParam2 = 8342;
  					break;
  				
  				case 194:
  					*uParam2 = 8343;
  					break;
  				
  				case 195:
  					*uParam2 = 8344;
  					break;
  				
  				case 196:
  					*uParam2 = 8345;
  					break;
  				
  				case 197:
  					*uParam2 = 8346;
  					break;
  				
  				case 198:
  					*uParam2 = 8347;
  					break;
  				
  				case 199:
  					*uParam2 = 8348;
  					break;
  			}
  			switch (SYSTEM::FLOOR((SYSTEM::TO_FLOAT(iVar0) / 32f)))
  			{
  				case 200:
  					*uParam2 = 8349;
  					break;
  				
  				case 201:
  					*uParam2 = 8942;
  					break;
  				
  				case 202:
  					*uParam2 = 8943;
  					break;
  				
  				case 203:
  					*uParam2 = 8944;
  					break;
  				
  				case 204:
  					*uParam2 = 8945;
  					break;
  				
  				case 205:
  					*uParam2 = 8946;
  					break;
  				
  				case 206:
  					*uParam2 = 9445;
  					break;
  				
  				case 207:
  					*uParam2 = 9446;
  					break;
  				
  				case 208:
  					*uParam2 = 9447;
  					break;
  				
  				case 209:
  					*uParam2 = 9448;
  					break;
  				
  				case 210:
  					*uParam2 = 9449;
  					break;
  				
  				case 211:
  					*uParam2 = 9450;
  					break;
  				
  				case 212:
  					*uParam2 = 9451;
  					break;
  				
  				case 213:
  					*uParam2 = 9452;
  					break;
  				
  				case 214:
  					*uParam2 = 9453;
  					break;
  				
  				case 215:
  					*uParam2 = 9454;
  					break;
  				
  				case 216:
  					*uParam2 = 9455;
  					break;
  				
  				case 217:
  					*uParam2 = 9456;
  					break;
  				
  				case 218:
  					*uParam2 = 9457;
  					break;
  				
  				case 219:
  					*uParam2 = 9458;
  					break;
  				
  				case 220:
  					*uParam2 = 9459;
  					break;
  				
  				case 221:
  					*uParam2 = 9460;
  					break;
  				
  				case 222:
  					*uParam2 = 9461;
  					break;
  				
  				case 223:
  					*uParam2 = 9462;
  					break;
  				
  				case 224:
  					*uParam2 = 9463;
  					break;
  				
  				case 225:
  					*uParam2 = 9464;
  					break;
  				
  				case 226:
  					*uParam2 = 9465;
  					break;
  				
  				case 227:
  					*uParam2 = 9466;
  					break;
  				
  				case 228:
  					*uParam2 = 9467;
  					break;
  				
  				case 229:
  					*uParam2 = 9468;
  					break;
  				
  				case 230:
  					*uParam2 = 9469;
  					break;
  			}
  			break;
  	}
  	*uParam3 = (iVar0 % 32);
  	return *uParam2 != 11771;
  }
  
  int func_253(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)
  {
  	if (iParam0 == 0)
  	{
  		if (iParam5 == 1)
  		{
  			unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/][iParam3]), iParam4);
  		}
  		if (iParam6 == 1)
  		{
  			unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/][iParam3]), iParam4);
  		}
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/][iParam3], iParam4);
  	}
  	else if (iParam0 == 1)
  	{
  		if (iParam5 == 1)
  		{
  			unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_4[iParam3]), iParam4);
  		}
  		if (iParam6 == 1)
  		{
  			unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_4[iParam3]), iParam4);
  		}
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_4[iParam3], iParam4);
  	}
  	else if (iParam0 == 2)
  	{
  		if (iParam5 == 1)
  		{
  			unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_8[iParam3]), iParam4);
  		}
  		if (iParam6 == 1)
  		{
  			unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_8[iParam3]), iParam4);
  		}
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_8[iParam3], iParam4);
  	}
  	else if (iParam0 == 3)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_12[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_12[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_12[iParam3], iParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_16[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_16[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_16[iParam3], iParam4);
  		}
  		else if (iParam2 == 2)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_20[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_20[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_20[iParam3], iParam4);
  		}
  		else if (iParam2 == 3)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_24[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_24[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_24[iParam3], iParam4);
  		}
  		else if (iParam2 == 4)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_28[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_28[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_28[iParam3], iParam4);
  		}
  		else if (iParam2 == 5)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_32[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_32[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_32[iParam3], iParam4);
  		}
  		else if (iParam2 == 6)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_36[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_36[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_36[iParam3], iParam4);
  		}
  		else if (iParam2 == 7)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_40[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_40[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_40[iParam3], iParam4);
  		}
  		else if (iParam2 == 8)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_44[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_44[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_44[iParam3], iParam4);
  		}
  		else if (iParam2 == 9)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_48[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_48[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_48[iParam3], iParam4);
  		}
  	}
  	else if (iParam0 == 4)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_52[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_52[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_52[iParam3], iParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_56[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_56[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_56[iParam3], iParam4);
  		}
  		else if (iParam2 == 2)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_60[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_60[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_60[iParam3], iParam4);
  		}
  		else if (iParam2 == 3)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_64[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_64[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_64[iParam3], iParam4);
  		}
  	}
  	else if (iParam0 == 5)
  	{
  		if (iParam5 == 1)
  		{
  			unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_68[iParam3]), iParam4);
  		}
  		if (iParam6 == 1)
  		{
  			unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_68[iParam3]), iParam4);
  		}
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_68[iParam3], iParam4);
  	}
  	else if (iParam0 == 6)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_72[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_72[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_72[iParam3], iParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_76[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_76[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_76[iParam3], iParam4);
  		}
  		else if (iParam2 == 2)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_80[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_80[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_80[iParam3], iParam4);
  		}
  		else if (iParam2 == 3)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_84[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_84[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_84[iParam3], iParam4);
  		}
  		else if (iParam2 == 4)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_88[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_88[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_88[iParam3], iParam4);
  		}
  	}
  	else if (iParam0 == 7)
  	{
  		if (iParam5 == 1)
  		{
  			unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_92[iParam3]), iParam4);
  		}
  		if (iParam6 == 1)
  		{
  			unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_92[iParam3]), iParam4);
  		}
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_92[iParam3], iParam4);
  	}
  	else if (iParam0 == 8)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_96[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_96[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_96[iParam3], iParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_100[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_100[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_100[iParam3], iParam4);
  		}
  		else if (iParam2 == 2)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_104[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_104[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_104[iParam3], iParam4);
  		}
  	}
  	else if (iParam0 == 9)
  	{
  		if (iParam5 == 1)
  		{
  			unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_108[iParam3]), iParam4);
  		}
  		if (iParam6 == 1)
  		{
  			unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_108[iParam3]), iParam4);
  		}
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_108[iParam3], iParam4);
  	}
  	else if (iParam0 == 10)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_112[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_112[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_112[iParam3], iParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_116[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_116[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_116[iParam3], iParam4);
  		}
  	}
  	else if (iParam0 == 11)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_120[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_120[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_120[iParam3], iParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_124[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_124[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_124[iParam3], iParam4);
  		}
  	}
  	else if (iParam0 == 12)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_128[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_128[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_128[iParam3], iParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_132[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_132[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_132[iParam3], iParam4);
  		}
  	}
  	else if (iParam0 == 13)
  	{
  		if (iParam5 == 1)
  		{
  			unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_136[iParam3]), iParam4);
  		}
  		if (iParam6 == 1)
  		{
  			unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_136[iParam3]), iParam4);
  		}
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_136[iParam3], iParam4);
  	}
  	else if (iParam0 == 14)
  	{
  		if (iParam2 == 0)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_140[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_140[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_140[iParam3], iParam4);
  		}
  		else if (iParam2 == 1)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_144[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_144[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_144[iParam3], iParam4);
  		}
  		else if (iParam2 == 2)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_148[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_148[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_148[iParam3], iParam4);
  		}
  		else if (iParam2 == 3)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_152[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_152[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_152[iParam3], iParam4);
  		}
  		else if (iParam2 == 4)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_156[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_156[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_156[iParam3], iParam4);
  		}
  		else if (iParam2 == 5)
  		{
  			if (iParam5 == 1)
  			{
  				unk_0xBE20AB8238688965(&(Global_111858.f_2359[iParam1 /*164*/].f_160[iParam3]), iParam4);
  			}
  			if (iParam6 == 1)
  			{
  				unk_0xD2459066EA58CE43(&(Global_111858.f_2359[iParam1 /*164*/].f_160[iParam3]), iParam4);
  			}
  			return unk_0xCE990E643CD9D0E5(Global_111858.f_2359[iParam1 /*164*/].f_160[iParam3], iParam4);
  		}
  	}
  	return 0;
  }
  
  int func_254(int iParam0)
  {
  	if (!unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 0))
  	{
  		return 0;
  	}
  	if (iParam0 == 1)
  	{
  		if (!unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 1))
  		{
  			return 0;
  		}
  		if (!unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 2))
  		{
  			return 0;
  		}
  	}
  	return 1;
  }
  
  struct<14> func_255(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	func_318();
  	if (iParam0 == joaat("player_zero"))
  	{
  		func_300(iParam1, iParam2);
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		func_281(iParam1, iParam2);
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		func_256(iParam1, iParam2);
  	}
  	return Global_76647[0 /*14*/];
  }
  
  void func_256(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_280(iParam1);
  			break;
  		
  		case 2:
  			func_279(iParam1);
  			break;
  		
  		case 3:
  			func_276(iParam1);
  			break;
  		
  		case 4:
  			func_275(iParam1);
  			break;
  		
  		case 6:
  			func_274(iParam1);
  			break;
  		
  		case 5:
  			func_273(iParam1);
  			break;
  		
  		case 8:
  			func_272(iParam1);
  			break;
  		
  		case 9:
  			func_271(iParam1);
  			break;
  		
  		case 10:
  			func_270(iParam1);
  			break;
  		
  		case 1:
  			func_269(iParam1);
  			break;
  		
  		case 7:
  			func_268(iParam1);
  			break;
  		
  		case 11:
  			func_267(iParam1);
  			break;
  		
  		case 12:
  			func_266(iParam1);
  			break;
  		
  		case 13:
  			func_265(iParam1);
  			break;
  		
  		case 14:
  			func_257(iParam1);
  			break;
  	}
  }
  
  void func_257(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 14;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 8;
  			break;
  		
  		case 154:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 2;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 10;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "PROPS_P2_E1", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			iVar1 = 45;
  			iVar5 = 10;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "PROPS_P2_E2", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			iVar5 = 10;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "PROPS_P2_E2_1", 16);
  			iVar3 = 2;
  			iVar4 = 1;
  			iVar1 = 50;
  			iVar5 = 10;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "PROPS_P2_E2_2", 16);
  			iVar3 = 2;
  			iVar4 = 2;
  			iVar1 = 55;
  			iVar5 = 10;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "PROPS_P2_E2_3", 16);
  			iVar3 = 2;
  			iVar4 = 3;
  			iVar1 = 52;
  			iVar5 = 10;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "PROPS_P2_E2_4", 16);
  			iVar3 = 2;
  			iVar4 = 4;
  			iVar1 = 54;
  			iVar5 = 10;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "PROPS_P2_E2_5", 16);
  			iVar3 = 2;
  			iVar4 = 5;
  			iVar1 = 54;
  			iVar5 = 10;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "PROPS_P2_E2_6", 16);
  			iVar3 = 2;
  			iVar4 = 6;
  			iVar1 = 55;
  			iVar5 = 10;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "PROPS_P2_E2_7", 16);
  			iVar3 = 2;
  			iVar4 = 7;
  			iVar1 = 55;
  			iVar5 = 10;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "PROPS_P2_E2_8", 16);
  			iVar3 = 2;
  			iVar4 = 8;
  			iVar1 = 58;
  			iVar5 = 10;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "PROPS_P2_E2_9", 16);
  			iVar3 = 2;
  			iVar4 = 9;
  			iVar1 = 58;
  			iVar5 = 10;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "PROPS_P2_E3", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "PROPS_P2_E3_1", 16);
  			iVar3 = 3;
  			iVar4 = 1;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "PROPS_P2_E3_2", 16);
  			iVar3 = 3;
  			iVar4 = 2;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "PROPS_P2_E3_3", 16);
  			iVar3 = 3;
  			iVar4 = 3;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "PROPS_P2_E3_4", 16);
  			iVar3 = 3;
  			iVar4 = 4;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "PROPS_P2_E3_5", 16);
  			iVar3 = 3;
  			iVar4 = 5;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "PROPS_P2_E3_6", 16);
  			iVar3 = 3;
  			iVar4 = 6;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "PROPS_P2_E3_7", 16);
  			iVar3 = 3;
  			iVar4 = 7;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "PROPS_P2_E3_8", 16);
  			iVar3 = 3;
  			iVar4 = 8;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "PROPS_P2_E3_9", 16);
  			iVar3 = 3;
  			iVar4 = 9;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			iVar5 = 10;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			iVar5 = 10;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			iVar5 = 10;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "PROPS_P2_E7_0", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			iVar1 = 60;
  			iVar5 = 10;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "PROPS_P2_E7_1", 16);
  			iVar3 = 7;
  			iVar4 = 1;
  			iVar1 = 50;
  			iVar5 = 10;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "PROPS_P2_E7_2", 16);
  			iVar3 = 7;
  			iVar4 = 2;
  			iVar1 = 50;
  			iVar5 = 10;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "PROPS_P2_E7_3", 16);
  			iVar3 = 7;
  			iVar4 = 3;
  			iVar1 = 59;
  			iVar5 = 10;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "PROPS_P2_E7_4", 16);
  			iVar3 = 7;
  			iVar4 = 4;
  			iVar1 = 55;
  			iVar5 = 10;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "PROPS_P2_E7_5", 16);
  			iVar3 = 7;
  			iVar4 = 5;
  			iVar1 = 55;
  			iVar5 = 10;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "PROPS_P2_E7_6", 16);
  			iVar3 = 7;
  			iVar4 = 6;
  			iVar1 = 65;
  			iVar5 = 10;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "PROPS_P2_E7_7", 16);
  			iVar3 = 7;
  			iVar4 = 7;
  			iVar1 = 59;
  			iVar5 = 10;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "PROPS_P2_E7_8", 16);
  			iVar3 = 7;
  			iVar4 = 8;
  			iVar1 = 79;
  			iVar5 = 10;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "PROPS_P2_E7_9", 16);
  			iVar3 = 7;
  			iVar4 = 9;
  			iVar1 = 79;
  			iVar5 = 10;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "PROPS_P2_E8_0", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			iVar1 = 150;
  			iVar5 = 10;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "PROPS_P2_E8_1", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			iVar1 = 150;
  			iVar5 = 10;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "PROPS_P2_E8_2", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			iVar1 = 170;
  			iVar5 = 10;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "PROPS_P2_E8_3", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			iVar1 = 175;
  			iVar5 = 10;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "PROPS_P2_E8_4", 16);
  			iVar3 = 8;
  			iVar4 = 4;
  			iVar1 = 180;
  			iVar5 = 10;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "PROPS_P2_E8_5", 16);
  			iVar3 = 8;
  			iVar4 = 5;
  			iVar1 = 185;
  			iVar5 = 10;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "PROPS_P2_E8_6", 16);
  			iVar3 = 8;
  			iVar4 = 6;
  			iVar1 = 189;
  			iVar5 = 10;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "PROPS_P2_E8_7", 16);
  			iVar3 = 8;
  			iVar4 = 7;
  			iVar1 = 195;
  			iVar5 = 10;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "PROPS_P2_E8_8", 16);
  			iVar3 = 8;
  			iVar4 = 8;
  			iVar1 = 210;
  			iVar5 = 10;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "PROPS_P2_E8_9", 16);
  			iVar3 = 8;
  			iVar4 = 9;
  			iVar1 = 215;
  			iVar5 = 10;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "PROPS_P2_E9_0", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			iVar1 = 165;
  			iVar5 = 10;
  			break;
  		
  		case 134:
  			StringCopy(&Var2, "PROPS_P2_E9_1", 16);
  			iVar3 = 9;
  			iVar4 = 1;
  			iVar1 = 165;
  			iVar5 = 10;
  			break;
  		
  		case 135:
  			StringCopy(&Var2, "PROPS_P2_E9_2", 16);
  			iVar3 = 9;
  			iVar4 = 2;
  			iVar1 = 169;
  			iVar5 = 10;
  			break;
  		
  		case 136:
  			StringCopy(&Var2, "PROPS_P2_E9_3", 16);
  			iVar3 = 9;
  			iVar4 = 3;
  			iVar1 = 169;
  			iVar5 = 10;
  			break;
  		
  		case 137:
  			StringCopy(&Var2, "PROPS_P2_E9_4", 16);
  			iVar3 = 9;
  			iVar4 = 4;
  			iVar1 = 175;
  			iVar5 = 10;
  			break;
  		
  		case 138:
  			StringCopy(&Var2, "PROPS_P2_E9_5", 16);
  			iVar3 = 9;
  			iVar4 = 5;
  			iVar1 = 175;
  			iVar5 = 10;
  			break;
  		
  		case 139:
  			StringCopy(&Var2, "PROPS_P2_E9_6", 16);
  			iVar3 = 9;
  			iVar4 = 6;
  			iVar1 = 175;
  			iVar5 = 10;
  			break;
  		
  		case 140:
  			StringCopy(&Var2, "PROPS_P2_E9_7", 16);
  			iVar3 = 9;
  			iVar4 = 7;
  			iVar1 = 189;
  			iVar5 = 10;
  			break;
  		
  		case 141:
  			StringCopy(&Var2, "PROPS_P2_E9_8", 16);
  			iVar3 = 9;
  			iVar4 = 8;
  			iVar1 = 195;
  			iVar5 = 10;
  			break;
  		
  		case 142:
  			StringCopy(&Var2, "PROPS_P2_E9_9", 16);
  			iVar3 = 9;
  			iVar4 = 9;
  			iVar1 = 195;
  			iVar5 = 10;
  			break;
  		
  		case 143:
  			StringCopy(&Var2, "PROPS_P2_E10_0", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			iVar1 = 49;
  			iVar5 = 10;
  			break;
  		
  		case 144:
  			StringCopy(&Var2, "PROPS_P2_E10_1", 16);
  			iVar3 = 10;
  			iVar4 = 1;
  			iVar1 = 50;
  			iVar5 = 10;
  			break;
  		
  		case 145:
  			StringCopy(&Var2, "PROPS_P2_E10_2", 16);
  			iVar3 = 10;
  			iVar4 = 2;
  			iVar1 = 52;
  			iVar5 = 10;
  			break;
  		
  		case 146:
  			StringCopy(&Var2, "PROPS_P2_E10_3", 16);
  			iVar3 = 10;
  			iVar4 = 3;
  			iVar1 = 55;
  			iVar5 = 10;
  			break;
  		
  		case 147:
  			StringCopy(&Var2, "PROPS_P2_E10_4", 16);
  			iVar3 = 10;
  			iVar4 = 4;
  			iVar1 = 60;
  			iVar5 = 10;
  			break;
  		
  		case 148:
  			StringCopy(&Var2, "PROPS_P2_E10_5", 16);
  			iVar3 = 10;
  			iVar4 = 5;
  			iVar1 = 58;
  			iVar5 = 10;
  			break;
  		
  		case 149:
  			StringCopy(&Var2, "PROPS_P2_E10_6", 16);
  			iVar3 = 10;
  			iVar4 = 6;
  			iVar1 = 60;
  			iVar5 = 10;
  			break;
  		
  		case 150:
  			StringCopy(&Var2, "PROPS_P2_E10_7", 16);
  			iVar3 = 10;
  			iVar4 = 7;
  			iVar1 = 63;
  			iVar5 = 10;
  			break;
  		
  		case 151:
  			StringCopy(&Var2, "PROPS_P2_E10_8", 16);
  			iVar3 = 10;
  			iVar4 = 8;
  			iVar1 = 65;
  			iVar5 = 10;
  			break;
  		
  		case 152:
  			StringCopy(&Var2, "PROPS_P2_E10_9", 16);
  			iVar3 = 10;
  			iVar4 = 9;
  			iVar1 = 68;
  			iVar5 = 10;
  			break;
  		
  		case 153:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			iVar1 = 100;
  			iVar5 = 10;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "PROPS_P2_H2_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			iVar1 = 320;
  			iVar5 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "PROPS_P2_H7_0", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "PROPS_P2_H7_1", 16);
  			iVar3 = 7;
  			iVar4 = 1;
  			iVar5 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 1;
  			iVar5 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 2;
  			iVar5 = 0;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 3;
  			iVar5 = 0;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 4;
  			iVar5 = 0;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 5;
  			iVar5 = 0;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 6;
  			iVar5 = 0;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 7;
  			iVar5 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 8;
  			iVar5 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 9;
  			iVar5 = 0;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 10;
  			iVar5 = 0;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 11;
  			iVar5 = 0;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 12;
  			iVar5 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 13;
  			iVar5 = 0;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 14;
  			iVar5 = 0;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 15;
  			iVar5 = 0;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 1;
  			iVar5 = 0;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 2;
  			iVar5 = 0;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 3;
  			iVar5 = 0;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 4;
  			iVar5 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 5;
  			iVar5 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 6;
  			iVar5 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 7;
  			iVar5 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			iVar1 = 270;
  			iVar5 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
  			iVar3 = 14;
  			iVar4 = 1;
  			iVar1 = 270;
  			iVar5 = 0;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			iVar1 = 200;
  			iVar5 = 0;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
  			iVar3 = 15;
  			iVar4 = 1;
  			iVar1 = 200;
  			iVar5 = 0;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			iVar1 = 350;
  			iVar5 = 0;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
  			iVar3 = 16;
  			iVar4 = 1;
  			iVar1 = 350;
  			iVar5 = 0;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			iVar1 = 450;
  			iVar5 = 0;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			iVar1 = 500;
  			iVar5 = 0;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
  			iVar3 = 18;
  			iVar4 = 1;
  			iVar1 = 500;
  			iVar5 = 0;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			iVar1 = 50;
  			iVar5 = 0;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
  			iVar3 = 19;
  			iVar4 = 1;
  			iVar1 = 50;
  			iVar5 = 0;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			iVar1 = 99;
  			iVar5 = 0;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
  			iVar3 = 20;
  			iVar4 = 1;
  			iVar1 = 99;
  			iVar5 = 0;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
  			iVar3 = 20;
  			iVar4 = 2;
  			iVar1 = 99;
  			iVar5 = 0;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 22;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 1;
  			iVar5 = 0;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 2;
  			iVar5 = 0;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 3;
  			iVar5 = 0;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 4;
  			iVar5 = 0;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 5;
  			iVar5 = 0;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 24;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 25;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "PROPS_P1_H26_0", 16);
  			iVar3 = 26;
  			iVar4 = 0;
  			iVar1 = 20;
  			iVar5 = 0;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "PROPS_P1_H26_1", 16);
  			iVar3 = 26;
  			iVar4 = 1;
  			iVar1 = 25;
  			iVar5 = 0;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "PROPS_P1_H26_2", 16);
  			iVar3 = 26;
  			iVar4 = 2;
  			iVar1 = 25;
  			iVar5 = 0;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "PROPS_P1_H26_3", 16);
  			iVar3 = 26;
  			iVar4 = 3;
  			iVar1 = 22;
  			iVar5 = 0;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "PROPS_P1_H26_4", 16);
  			iVar3 = 26;
  			iVar4 = 4;
  			iVar1 = 20;
  			iVar5 = 0;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "PROPS_P1_H26_5", 16);
  			iVar3 = 26;
  			iVar4 = 5;
  			iVar1 = 25;
  			iVar5 = 0;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "PROPS_P1_H26_6", 16);
  			iVar3 = 26;
  			iVar4 = 6;
  			iVar1 = 28;
  			iVar5 = 0;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "PROPS_P1_H26_7", 16);
  			iVar3 = 26;
  			iVar4 = 7;
  			iVar1 = 24;
  			iVar5 = 0;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "PROPS_P1_H26_8", 16);
  			iVar3 = 26;
  			iVar4 = 8;
  			iVar1 = 25;
  			iVar5 = 0;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "PROPS_P1_H26_9", 16);
  			iVar3 = 26;
  			iVar4 = 9;
  			iVar1 = 22;
  			iVar5 = 0;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "PROPS_P1_H26_10", 16);
  			iVar3 = 26;
  			iVar4 = 10;
  			iVar1 = 18;
  			iVar5 = 0;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "PROPS_P1_H26_11", 16);
  			iVar3 = 26;
  			iVar4 = 11;
  			iVar1 = 20;
  			iVar5 = 0;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "PROPS_P1_H26_12", 16);
  			iVar3 = 26;
  			iVar4 = 12;
  			iVar1 = 24;
  			iVar5 = 0;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "PROPS_P1_H26_13", 16);
  			iVar3 = 26;
  			iVar4 = 13;
  			iVar1 = 22;
  			iVar5 = 0;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "PROPS_P1_H26_14", 16);
  			iVar3 = 26;
  			iVar4 = 14;
  			iVar1 = 25;
  			iVar5 = 0;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "PROPS_P1_H26_15", 16);
  			iVar3 = 26;
  			iVar4 = 15;
  			iVar1 = 25;
  			iVar5 = 0;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 27;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 155, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_258(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, int iParam6, bool bParam7, int iParam8, int iParam9, bool bParam10)
  {
  	int iVar0;
  	int iVar1;
  	
  	uParam0->f_6 = 0;
  	*uParam0 = iParam9;
  	uParam0->f_1 = (iParam2 % 32);
  	uParam0->f_2 = (iParam2 / 32);
  	uParam0->f_3 = iParam4;
  	uParam0->f_4 = iParam5;
  	uParam0->f_7 = iParam6;
  	StringCopy(&(uParam0->f_8), sParam3, 16);
  	uParam0->f_13 = iParam8;
  	uParam0->f_12 = func_263(iParam8);
  	if ((uParam0->f_2 >= 10 && uParam0->f_5 >= 0) && uParam0->f_5 < 3)
  	{
  		if (!bParam10)
  		{
  		}
  		uParam0->f_2 = 0;
  	}
  	if (unk_0x856D5567211886A2(sParam3) != unk_0x856D5567211886A2("NO_LABEL"))
  	{
  	}
  	if (bParam7)
  	{
  		unk_0xBE20AB8238688965(&(uParam0->f_6), 3);
  	}
  	if (bParam10)
  	{
  		unk_0xBE20AB8238688965(&(uParam0->f_6), 0);
  		if (uParam0->f_5 >= 0 && uParam0->f_5 < 3)
  		{
  			unk_0xBE20AB8238688965(&(uParam0->f_6), 5);
  		}
  		unk_0xBE20AB8238688965(&(uParam0->f_6), 1);
  		unk_0xBE20AB8238688965(&(uParam0->f_6), 2);
  		unk_0xBE20AB8238688965(&(uParam0->f_6), 6);
  		if (func_57(14))
  		{
  			return;
  		}
  		if (iParam1 == 1)
  		{
  			if (unk_0x4D0432E34C5996D9(Global_2621444, joaat("REBREATHER"), 0))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 7);
  			}
  		}
  		if (iParam1 == 12)
  		{
  			if (!func_262(Global_2621444, 1, 1, 1, -1))
  			{
  				unk_0xD2459066EA58CE43(&(uParam0->f_6), 2);
  			}
  			if (!func_262(Global_2621444, 2, 1, 1, -1))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 4);
  			}
  		}
  		else if (iParam1 == 13)
  		{
  		}
  		else if (iParam1 == 14)
  		{
  			if (!func_262(Global_2621444, 1, 1, 1, -1))
  			{
  				unk_0xD2459066EA58CE43(&(uParam0->f_6), 2);
  			}
  			if (!func_262(Global_2621444, 2, 1, 1, -1))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 4);
  			}
  		}
  		else
  		{
  			if (!func_262(Global_2621444, 1, 1, 1, -1))
  			{
  				unk_0xD2459066EA58CE43(&(uParam0->f_6), 2);
  			}
  			if (!func_262(Global_2621444, 2, 1, 1, -1))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 4);
  			}
  		}
  	}
  	else if (uParam0->f_5 >= 0 && uParam0->f_5 < 3)
  	{
  		unk_0xBE20AB8238688965(&(uParam0->f_6), 0);
  		unk_0xBE20AB8238688965(&(uParam0->f_6), 5);
  		if (func_253(iParam1, uParam0->f_5, uParam0->f_2, 0, uParam0->f_1, 0, 0))
  		{
  			unk_0xBE20AB8238688965(&(uParam0->f_6), 1);
  		}
  		if (func_253(iParam1, uParam0->f_5, uParam0->f_2, 1, uParam0->f_1, 0, 0))
  		{
  			unk_0xBE20AB8238688965(&(uParam0->f_6), 2);
  		}
  		if (!func_253(iParam1, uParam0->f_5, uParam0->f_2, 2, uParam0->f_1, 0, 0))
  		{
  			unk_0xBE20AB8238688965(&(uParam0->f_6), 4);
  		}
  	}
  	else
  	{
  		unk_0xBE20AB8238688965(&(uParam0->f_6), 0);
  		if ((((((((((iParam1 == 11 || iParam1 == 4) || iParam1 == 6) || iParam1 == 1) || iParam1 == 14) || iParam1 == 2) || iParam1 == 8) || iParam1 == 9) || iParam1 == 10) || iParam1 == 7) || iParam1 == 12)
  		{
  			if (func_57(14))
  			{
  				return;
  			}
  			iVar0 = func_49(func_261(iParam1, uParam0->f_2), Global_76644, 0);
  			if (unk_0xCE990E643CD9D0E5(iVar0, uParam0->f_1))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 1);
  			}
  			iVar0 = func_49(func_260(iParam1, uParam0->f_2), Global_76644, 0);
  			if (unk_0xCE990E643CD9D0E5(iVar0, uParam0->f_1))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 2);
  			}
  			if (func_259(iParam1, uParam0->f_2, &iVar1))
  			{
  				iVar0 = func_49(iVar1, Global_76644, 0);
  				if (!unk_0xCE990E643CD9D0E5(iVar0, uParam0->f_1))
  				{
  					unk_0xBE20AB8238688965(&(uParam0->f_6), 4);
  				}
  			}
  		}
  		else
  		{
  			unk_0xBE20AB8238688965(&(uParam0->f_6), 1);
  			unk_0xBE20AB8238688965(&(uParam0->f_6), 2);
  		}
  	}
  	if (iParam1 == 14)
  	{
  		if (iParam4 == -1)
  		{
  			unk_0xBE20AB8238688965(&(uParam0->f_6), 1);
  			unk_0xBE20AB8238688965(&(uParam0->f_6), 2);
  		}
  	}
  }
  
  bool func_259(int iParam0, int iParam1, var uParam2)
  {
  	*uParam2 = 978;
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 2:
  					*uParam2 = 979;
  					break;
  				
  				case 3:
  					*uParam2 = 1429;
  					break;
  				
  				case 4:
  					*uParam2 = 995;
  					break;
  				
  				case 6:
  					*uParam2 = 1003;
  					break;
  				
  				case 8:
  					*uParam2 = 1430;
  					break;
  				
  				case 9:
  					*uParam2 = 1438;
  					break;
  				
  				case 10:
  					*uParam2 = 1440;
  					break;
  				
  				case 1:
  					*uParam2 = 1011;
  					break;
  				
  				case 7:
  					*uParam2 = 1441;
  					break;
  				
  				case 11:
  					*uParam2 = 987;
  					break;
  				
  				case 14:
  					*uParam2 = 1019;
  					break;
  				
  				case 12:
  					*uParam2 = 1030;
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 2:
  					*uParam2 = 980;
  					break;
  				
  				case 4:
  					*uParam2 = 996;
  					break;
  				
  				case 6:
  					*uParam2 = 1004;
  					break;
  				
  				case 8:
  					*uParam2 = 1431;
  					break;
  				
  				case 9:
  					*uParam2 = 1439;
  					break;
  				
  				case 7:
  					*uParam2 = 1442;
  					break;
  				
  				case 11:
  					*uParam2 = 988;
  					break;
  				
  				case 14:
  					*uParam2 = 1020;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (iParam0)
  			{
  				case 2:
  					*uParam2 = 981;
  					break;
  				
  				case 4:
  					*uParam2 = 997;
  					break;
  				
  				case 6:
  					*uParam2 = 1005;
  					break;
  				
  				case 8:
  					*uParam2 = 1432;
  					break;
  				
  				case 7:
  					*uParam2 = 1443;
  					break;
  				
  				case 11:
  					*uParam2 = 989;
  					break;
  				
  				case 14:
  					*uParam2 = 1021;
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam0)
  			{
  				case 4:
  					*uParam2 = 998;
  					break;
  				
  				case 6:
  					*uParam2 = 1006;
  					break;
  				
  				case 8:
  					*uParam2 = 1433;
  					break;
  				
  				case 11:
  					*uParam2 = 990;
  					break;
  				
  				case 14:
  					*uParam2 = 1022;
  					break;
  			}
  			break;
  		
  		case 4:
  			switch (iParam0)
  			{
  				case 4:
  					*uParam2 = 999;
  					break;
  				
  				case 6:
  					*uParam2 = 1007;
  					break;
  				
  				case 8:
  					*uParam2 = 1434;
  					break;
  				
  				case 11:
  					*uParam2 = 991;
  					break;
  				
  				case 14:
  					*uParam2 = 1023;
  					break;
  			}
  			break;
  		
  		case 5:
  			switch (iParam0)
  			{
  				case 4:
  					*uParam2 = 1000;
  					break;
  				
  				case 6:
  					*uParam2 = 1008;
  					break;
  				
  				case 8:
  					*uParam2 = 1435;
  					break;
  				
  				case 11:
  					*uParam2 = 992;
  					break;
  				
  				case 14:
  					*uParam2 = 1024;
  					break;
  			}
  			break;
  		
  		case 6:
  			switch (iParam0)
  			{
  				case 4:
  					*uParam2 = 1001;
  					break;
  				
  				case 6:
  					*uParam2 = 1009;
  					break;
  				
  				case 8:
  					*uParam2 = 1436;
  					break;
  				
  				case 11:
  					*uParam2 = 993;
  					break;
  				
  				case 14:
  					*uParam2 = 1025;
  					break;
  			}
  			break;
  		
  		case 7:
  			switch (iParam0)
  			{
  				case 4:
  					*uParam2 = 1002;
  					break;
  				
  				case 6:
  					*uParam2 = 1010;
  					break;
  				
  				case 8:
  					*uParam2 = 1437;
  					break;
  				
  				case 11:
  					*uParam2 = 994;
  					break;
  				
  				case 14:
  					*uParam2 = 1026;
  					break;
  			}
  			break;
  		
  		case 8:
  			switch (iParam0)
  			{
  				case 14:
  					*uParam2 = 1027;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam0)
  			{
  				case 14:
  					*uParam2 = 1028;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam0)
  			{
  				case 14:
  					*uParam2 = 1029;
  					break;
  			}
  			break;
  	}
  	return *uParam2 != 978;
  }
  
  int func_260(int iParam0, int iParam1)
  {
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 2:
  					return 927;
  					break;
  				
  				case 3:
  					return 1414;
  					break;
  				
  				case 4:
  					return 943;
  					break;
  				
  				case 6:
  					return 951;
  					break;
  				
  				case 8:
  					return 1415;
  					break;
  				
  				case 9:
  					return 1423;
  					break;
  				
  				case 10:
  					return 1425;
  					break;
  				
  				case 1:
  					return 959;
  					break;
  				
  				case 7:
  					return 1426;
  					break;
  				
  				case 11:
  					return 935;
  					break;
  				
  				case 14:
  					return 967;
  					break;
  				
  				case 12:
  					return 978;
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 2:
  					return 928;
  					break;
  				
  				case 4:
  					return 944;
  					break;
  				
  				case 6:
  					return 952;
  					break;
  				
  				case 8:
  					return 1416;
  					break;
  				
  				case 9:
  					return 1424;
  					break;
  				
  				case 7:
  					return 1427;
  					break;
  				
  				case 11:
  					return 936;
  					break;
  				
  				case 14:
  					return 968;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (iParam0)
  			{
  				case 2:
  					return 929;
  					break;
  				
  				case 4:
  					return 945;
  					break;
  				
  				case 6:
  					return 953;
  					break;
  				
  				case 8:
  					return 1417;
  					break;
  				
  				case 7:
  					return 1428;
  					break;
  				
  				case 11:
  					return 937;
  					break;
  				
  				case 14:
  					return 969;
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam0)
  			{
  				case 4:
  					return 946;
  					break;
  				
  				case 6:
  					return 954;
  					break;
  				
  				case 8:
  					return 1418;
  					break;
  				
  				case 11:
  					return 938;
  					break;
  				
  				case 14:
  					return 970;
  					break;
  			}
  			break;
  		
  		case 4:
  			switch (iParam0)
  			{
  				case 4:
  					return 947;
  					break;
  				
  				case 6:
  					return 955;
  					break;
  				
  				case 8:
  					return 1419;
  					break;
  				
  				case 11:
  					return 939;
  					break;
  				
  				case 14:
  					return 971;
  					break;
  			}
  			break;
  		
  		case 5:
  			switch (iParam0)
  			{
  				case 4:
  					return 948;
  					break;
  				
  				case 6:
  					return 956;
  					break;
  				
  				case 8:
  					return 1420;
  					break;
  				
  				case 11:
  					return 940;
  					break;
  				
  				case 14:
  					return 972;
  					break;
  			}
  			break;
  		
  		case 6:
  			switch (iParam0)
  			{
  				case 4:
  					return 949;
  					break;
  				
  				case 6:
  					return 957;
  					break;
  				
  				case 8:
  					return 1421;
  					break;
  				
  				case 11:
  					return 941;
  					break;
  				
  				case 14:
  					return 973;
  					break;
  			}
  			break;
  		
  		case 7:
  			switch (iParam0)
  			{
  				case 4:
  					return 950;
  					break;
  				
  				case 6:
  					return 958;
  					break;
  				
  				case 8:
  					return 1422;
  					break;
  				
  				case 11:
  					return 942;
  					break;
  				
  				case 14:
  					return 974;
  					break;
  			}
  			break;
  		
  		case 8:
  			switch (iParam0)
  			{
  				case 14:
  					return 975;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam0)
  			{
  				case 14:
  					return 976;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam0)
  			{
  				case 14:
  					return 977;
  					break;
  			}
  			break;
  	}
  	return 935;
  }
  
  int func_261(int iParam0, int iParam1)
  {
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 2:
  					return 875;
  					break;
  				
  				case 3:
  					return 1399;
  					break;
  				
  				case 4:
  					return 891;
  					break;
  				
  				case 6:
  					return 899;
  					break;
  				
  				case 8:
  					return 1400;
  					break;
  				
  				case 9:
  					return 1408;
  					break;
  				
  				case 10:
  					return 1410;
  					break;
  				
  				case 1:
  					return 907;
  					break;
  				
  				case 7:
  					return 1411;
  					break;
  				
  				case 11:
  					return 883;
  					break;
  				
  				case 14:
  					return 915;
  					break;
  				
  				case 12:
  					return 926;
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 2:
  					return 876;
  					break;
  				
  				case 4:
  					return 892;
  					break;
  				
  				case 6:
  					return 900;
  					break;
  				
  				case 8:
  					return 1401;
  					break;
  				
  				case 9:
  					return 1409;
  					break;
  				
  				case 7:
  					return 1412;
  					break;
  				
  				case 11:
  					return 884;
  					break;
  				
  				case 14:
  					return 916;
  					break;
  			}
  			break;
  		
  		case 2:
  			switch (iParam0)
  			{
  				case 2:
  					return 877;
  					break;
  				
  				case 4:
  					return 893;
  					break;
  				
  				case 6:
  					return 901;
  					break;
  				
  				case 8:
  					return 1402;
  					break;
  				
  				case 7:
  					return 1413;
  					break;
  				
  				case 11:
  					return 885;
  					break;
  				
  				case 14:
  					return 917;
  					break;
  			}
  			break;
  		
  		case 3:
  			switch (iParam0)
  			{
  				case 4:
  					return 894;
  					break;
  				
  				case 6:
  					return 902;
  					break;
  				
  				case 8:
  					return 1403;
  					break;
  				
  				case 11:
  					return 886;
  					break;
  				
  				case 14:
  					return 918;
  					break;
  			}
  			break;
  		
  		case 4:
  			switch (iParam0)
  			{
  				case 4:
  					return 895;
  					break;
  				
  				case 6:
  					return 903;
  					break;
  				
  				case 8:
  					return 1404;
  					break;
  				
  				case 11:
  					return 887;
  					break;
  				
  				case 14:
  					return 919;
  					break;
  			}
  			break;
  		
  		case 5:
  			switch (iParam0)
  			{
  				case 4:
  					return 896;
  					break;
  				
  				case 6:
  					return 904;
  					break;
  				
  				case 8:
  					return 1405;
  					break;
  				
  				case 11:
  					return 888;
  					break;
  				
  				case 14:
  					return 920;
  					break;
  			}
  			break;
  		
  		case 6:
  			switch (iParam0)
  			{
  				case 4:
  					return 897;
  					break;
  				
  				case 6:
  					return 905;
  					break;
  				
  				case 8:
  					return 1406;
  					break;
  				
  				case 11:
  					return 889;
  					break;
  				
  				case 14:
  					return 921;
  					break;
  			}
  			break;
  		
  		case 7:
  			switch (iParam0)
  			{
  				case 4:
  					return 898;
  					break;
  				
  				case 6:
  					return 906;
  					break;
  				
  				case 8:
  					return 1407;
  					break;
  				
  				case 11:
  					return 890;
  					break;
  				
  				case 14:
  					return 922;
  					break;
  			}
  			break;
  		
  		case 8:
  			switch (iParam0)
  			{
  				case 14:
  					return 923;
  					break;
  			}
  			break;
  		
  		case 9:
  			switch (iParam0)
  			{
  				case 14:
  					return 924;
  					break;
  			}
  			break;
  		
  		case 10:
  			switch (iParam0)
  			{
  				case 14:
  					return 925;
  					break;
  			}
  			break;
  	}
  	return 883;
  }
  
  int func_262(int iParam0, int iParam1, bool bParam2, bool bParam3, int iParam4)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar0 = Global_76644;
  	if (iParam4 != -1)
  	{
  		iVar0 = iParam4;
  	}
  	if (func_252(iParam0, iParam1, &iVar2, &iVar1, bParam2, bParam3))
  	{
  		iVar3 = func_49(iVar2, iVar0, 0);
  		return unk_0xCE990E643CD9D0E5(iVar3, iVar1);
  	}
  	return 0;
  }
  
  int func_263(int iParam0)
  {
  	switch (iParam0)
  	{
  		case -1:
  			return 0;
  			break;
  		
  		case 0:
  			return 0;
  			break;
  		
  		case 1:
  			return 1;
  			break;
  		
  		case 2:
  			return 2;
  			break;
  		
  		case 3:
  			return 3;
  			break;
  		
  		case 4:
  			return 4;
  			break;
  		
  		case 5:
  			return 5;
  			break;
  		
  		case 6:
  			return 6;
  			break;
  		
  		case 7:
  			return 7;
  			break;
  		
  		case 8:
  			return 8;
  			break;
  		
  		case 9:
  			return 0;
  			break;
  		
  		case 10:
  			return 1;
  			break;
  		
  		case 11:
  			return 0;
  			break;
  		
  		case 12:
  			return 0;
  			break;
  		
  		case 13:
  			return 0;
  			break;
  	}
  	return 0;
  }
  
  void func_264(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	var uVar1;
  	struct<8> Var2;
  	int iVar3;
  	int iVar4;
  	struct<10> Var5;
  	int iVar6;
  	int iVar7;
  	int iVar8;
  	struct<10> Var9;
  	int iVar10;
  	int iVar11;
  	
  	iVar0 = (iParam1 - iParam2);
  	iVar0 = iVar0;
  	if (iVar0 < 0)
  	{
  		return;
  	}
  	uVar1 = Global_76647[0 /*14*/].f_5;
  	if (iParam0 == 12)
  	{
  		iVar3 = (iParam1 - iParam2);
  		if (iVar3 >= 0)
  		{
  			iVar4 = unk_0x04222560EC9A383D(uVar1, 0);
  			if (iVar4 > iVar3)
  			{
  				unk_0xB11622B138AA8874(iVar3, &Var2);
  				Global_2621444 = Var2.f_1;
  				Global_2621445 = Var2;
  				func_258(&(Global_76647[0 /*14*/]), iParam0, iParam1, &(Var2.f_7), 0, 0, Var2.f_2, 0, -1, 2, 1);
  				return;
  			}
  		}
  	}
  	else if (iParam0 == 13)
  	{
  		func_258(&(Global_76647[0 /*14*/]), iParam0, iParam1, "NO_LABEL", 0, 0, 0, 1, -1, 2, 1);
  	}
  	else if (iParam0 == 14)
  	{
  		unk_0x8BC52CDFCD2A4534(&Var5);
  		iVar7 = (iParam1 - iParam2);
  		if (iVar7 >= 0)
  		{
  			iVar8 = unk_0x21A524CB091C80DE(iVar1, 7, -1, 1, -1, -1);
  			if (iVar8 > iVar7)
  			{
  				unk_0xD2FB5DC35CA67C53(iVar7, &Var5);
  				if (Var5.f_6 == 0)
  				{
  					iVar6 = 9;
  				}
  				else if (Var5.f_6 == 1)
  				{
  					iVar6 = 10;
  				}
  				else if (Var5.f_6 == 2)
  				{
  					iVar6 = 2;
  				}
  				else if (Var5.f_6 == 3)
  				{
  					iVar6 = 3;
  				}
  				else if (Var5.f_6 == 4)
  				{
  					iVar6 = 4;
  				}
  				else if (Var5.f_6 == 5)
  				{
  					iVar6 = 5;
  				}
  				else if (Var5.f_6 == 6)
  				{
  					iVar6 = 6;
  				}
  				else if (Var5.f_6 == 7)
  				{
  					iVar6 = 7;
  				}
  				else if (Var5.f_6 == 8)
  				{
  					iVar6 = 8;
  				}
  				else
  				{
  					iVar6 = -1;
  				}
  				Global_2621444 = Var5.f_1;
  				Global_2621445 = Var5;
  				func_258(&(Global_76647[0 /*14*/]), iParam0, iParam1, &(Var5.f_9), Var5.f_3, Var5.f_4, Var5.f_5, unk_0x4D0432E34C5996D9(Var5.f_1, joaat("OUTFIT_ONLY"), 0), iVar6, 2, Var5.f_1 != 0);
  				return;
  			}
  		}
  	}
  	else
  	{
  		unk_0x1C2EE47D7054A42C(&Var9);
  		if (iParam3 != -1 && Global_76814)
  		{
  			unk_0x2209D2FE26AA9212(iParam3, &Var9);
  			Global_2621444 = Var9.f_1;
  			Global_2621445 = Var9;
  			func_258(&(Global_76647[0 /*14*/]), iParam0, iParam1, &(Var9.f_9), Var9.f_3, Var9.f_4, Var9.f_5, unk_0x4D0432E34C5996D9(Var9.f_1, joaat("OUTFIT_ONLY"), 0), -1, 2, Var9.f_1 != 0);
  			return;
  		}
  		iVar10 = (iParam1 - iParam2);
  		if (iVar10 >= 0)
  		{
  			iVar11 = unk_0x21A524CB091C80DE(iVar1, 7, -1, 0, -1, func_218(iParam0));
  			if (iVar11 > iVar10)
  			{
  				unk_0x627AC3AC8991672C(iVar10, &Var9);
  				Global_2621444 = Var9.f_1;
  				Global_2621445 = Var9;
  				func_258(&(Global_76647[0 /*14*/]), iParam0, iParam1, &(Var9.f_9), Var9.f_3, Var9.f_4, Var9.f_5, unk_0x4D0432E34C5996D9(Var9.f_1, joaat("OUTFIT_ONLY"), 0), -1, 2, Var9.f_1 != 0);
  				return;
  			}
  		}
  	}
  }
  
  void func_265(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 13;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 9, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_266(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 12;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "OUTFIT_P2_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "OUTFIT_P2_5", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "OUTFIT_P2_6", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "OUTFIT_P2_7", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "OUTFIT_P2_8", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "OUTFIT_P2_9", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "OUTFIT_P2_10", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "OUTFIT_P2_12", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "OUTFIT_P2_13", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "OUTFIT_P2_14", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "OUTFIT_P2_15", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "OUTFIT_P2_16", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "OUTFIT_P2_17", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "OUTFIT_P2_18", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 10000;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "OUTFIT_P2_19", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "OUTFIT_P2_20", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "OUTFIT_P2_21", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "OUTFIT_P2_22", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "OUTFIT_P2_23", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "OUTFIT_P2_24", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "OUTFIT_P2_25", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "OUTFIT_P2_26", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "OUTFIT_P2_27", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "OUTFIT_P2_28", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 119;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "OUTFIT_P2_29", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 99;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "OUTFIT_P2_30", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 129;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "OUTFIT_P2_44", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 125;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "OUTFIT_P2_45", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 120;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "OUTFIT_P2_46", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 139;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "OUTFIT_P2_47", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 149;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "OUTFIT_P2_48", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 145;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "OUTFIT_P2_49", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 140;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "OUTFIT_P2_50", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 135;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "OUTFIT_P2_31", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4900;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "OUTFIT_P2_32", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "OUTFIT_P2_33", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4500;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "OUTFIT_P2_34", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4900;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "OUTFIT_P2_35", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4500;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "OUTFIT_P2_36", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "OUTFIT_P2_37", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5500;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "OUTFIT_P2_38", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "OUTFIT_P2_39", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "OUTFIT_P2_40", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "OUTFIT_P2_41", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "OUTFIT_P2_42", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "OUTFIT_P2_43", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "OUTFIT_P2_12", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 48, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_267(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 11;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_268(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 7;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_269(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 1;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "BERD_P2_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "BERD_P2_1_0", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "BERD_P2_2_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "BERD_P2_3_0", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "BERD_P2_4_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "BERD_P2_5_0", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 6, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_270(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 10;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 1;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 2;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 3;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 4;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 5;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 1;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 2;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 3;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 4;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 5;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 6;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 7;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 8;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 9;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 4;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 5;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 6;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 1;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 2;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 3;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 33, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_271(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 9;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 1;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 2;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 3;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			iVar1 = 125;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
  			iVar3 = 6;
  			iVar4 = 1;
  			iVar1 = 150;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
  			iVar3 = 6;
  			iVar4 = 2;
  			iVar1 = 175;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
  			iVar3 = 6;
  			iVar4 = 3;
  			iVar1 = 85;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
  			iVar3 = 6;
  			iVar4 = 4;
  			iVar1 = 150;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
  			iVar3 = 6;
  			iVar4 = 5;
  			iVar1 = 175;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			iVar1 = 270;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
  			iVar3 = 7;
  			iVar4 = 1;
  			iVar1 = 270;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 17, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_272(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 8;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "SPEC_P2_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "SPEC_P2_0_1", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 18, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_273(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 5;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_274(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 6;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "FEET_P2_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "FEET_P2_0_1", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			iVar1 = 22;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "FEET_P2_0_2", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			iVar1 = 45;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "FEET_P2_0_3", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			iVar1 = 65;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "FEET_P2_0_4", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			iVar1 = 58;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "FEET_P2_0_5", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			iVar1 = 72;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "FEET_P2_0_6", 16);
  			iVar3 = 0;
  			iVar4 = 6;
  			iVar1 = 68;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "FEET_P2_0_7", 16);
  			iVar3 = 0;
  			iVar4 = 7;
  			iVar1 = 60;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "FEET_P2_5_0", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "FEET_P2_8_0", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "FEET_P2_9_0", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "FEET_P2_9_1", 16);
  			iVar3 = 9;
  			iVar4 = 1;
  			iVar1 = 680;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "FEET_P2_9_2", 16);
  			iVar3 = 9;
  			iVar4 = 2;
  			iVar1 = 650;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "FEET_P2_9_3", 16);
  			iVar3 = 9;
  			iVar4 = 3;
  			iVar1 = 670;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "FEET_P2_9_4", 16);
  			iVar3 = 9;
  			iVar4 = 4;
  			iVar1 = 700;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "FEET_P2_9_5", 16);
  			iVar3 = 9;
  			iVar4 = 5;
  			iVar1 = 680;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "FEET_P2_9_6", 16);
  			iVar3 = 9;
  			iVar4 = 6;
  			iVar1 = 720;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "FEET_P2_9_7", 16);
  			iVar3 = 9;
  			iVar4 = 7;
  			iVar1 = 740;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "FEET_P2_9_8", 16);
  			iVar3 = 9;
  			iVar4 = 8;
  			iVar1 = 760;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "FEET_P2_9_9", 16);
  			iVar3 = 9;
  			iVar4 = 9;
  			iVar1 = 780;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "FEET_P2_9_10", 16);
  			iVar3 = 9;
  			iVar4 = 10;
  			iVar1 = 750;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "FEET_P2_9_11", 16);
  			iVar3 = 9;
  			iVar4 = 11;
  			iVar1 = 700;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "FEET_P2_10_0", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "FEET_P2_18_0", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			iVar1 = 790;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "FEET_P2_18_1", 16);
  			iVar3 = 18;
  			iVar4 = 1;
  			iVar1 = 750;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "FEET_P2_18_2", 16);
  			iVar3 = 18;
  			iVar4 = 2;
  			iVar1 = 860;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "FEET_P2_18_3", 16);
  			iVar3 = 18;
  			iVar4 = 3;
  			iVar1 = 750;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "FEET_P2_18_4", 16);
  			iVar3 = 18;
  			iVar4 = 4;
  			iVar1 = 790;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "FEET_P2_18_5", 16);
  			iVar3 = 18;
  			iVar4 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "FEET_P2_18_6", 16);
  			iVar3 = 18;
  			iVar4 = 6;
  			iVar1 = 820;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "FEET_P2_18_7", 16);
  			iVar3 = 18;
  			iVar4 = 7;
  			iVar1 = 800;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "FEET_P2_18_8", 16);
  			iVar3 = 18;
  			iVar4 = 8;
  			iVar1 = 850;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "FEET_P2_18_9", 16);
  			iVar3 = 18;
  			iVar4 = 9;
  			iVar1 = 870;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "FEET_P2_18_10", 16);
  			iVar3 = 18;
  			iVar4 = 10;
  			iVar1 = 720;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "FEET_P2_18_11", 16);
  			iVar3 = 18;
  			iVar4 = 11;
  			iVar1 = 740;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "FEET_P2_18_12", 16);
  			iVar3 = 18;
  			iVar4 = 12;
  			iVar1 = 800;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "FEET_P2_18_13", 16);
  			iVar3 = 18;
  			iVar4 = 13;
  			iVar1 = 750;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "FEET_P2_18_14", 16);
  			iVar3 = 18;
  			iVar4 = 14;
  			iVar1 = 770;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "FEET_P2_18_15", 16);
  			iVar3 = 18;
  			iVar4 = 15;
  			iVar1 = 860;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "FEET_P2_19_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			iVar1 = 850;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "FEET_P2_19_1", 16);
  			iVar3 = 19;
  			iVar4 = 1;
  			iVar1 = 800;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "FEET_P2_19_2", 16);
  			iVar3 = 19;
  			iVar4 = 2;
  			iVar1 = 780;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "FEET_P2_19_3", 16);
  			iVar3 = 19;
  			iVar4 = 3;
  			iVar1 = 890;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "FEET_P2_19_4", 16);
  			iVar3 = 19;
  			iVar4 = 4;
  			iVar1 = 820;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "FEET_P2_19_5", 16);
  			iVar3 = 19;
  			iVar4 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "FEET_P2_19_6", 16);
  			iVar3 = 19;
  			iVar4 = 6;
  			iVar1 = 870;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "FEET_P2_19_7", 16);
  			iVar3 = 19;
  			iVar4 = 7;
  			iVar1 = 930;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "FEET_P2_19_8", 16);
  			iVar3 = 19;
  			iVar4 = 8;
  			iVar1 = 880;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "FEET_P2_19_9", 16);
  			iVar3 = 19;
  			iVar4 = 9;
  			iVar1 = 900;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "FEET_P2_19_10", 16);
  			iVar3 = 19;
  			iVar4 = 10;
  			iVar1 = 920;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "FEET_P2_19_11", 16);
  			iVar3 = 19;
  			iVar4 = 11;
  			iVar1 = 970;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "FEET_P2_19_12", 16);
  			iVar3 = 19;
  			iVar4 = 12;
  			iVar1 = 990;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "FEET_P2_19_13", 16);
  			iVar3 = 19;
  			iVar4 = 13;
  			iVar1 = 960;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "FEET_P2_19_14", 16);
  			iVar3 = 19;
  			iVar4 = 14;
  			iVar1 = 980;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "FEET_P2_19_15", 16);
  			iVar3 = 19;
  			iVar4 = 15;
  			iVar1 = 950;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "FEET_P2_20_0", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			iVar1 = 110;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "FEET_P2_20_1", 16);
  			iVar3 = 20;
  			iVar4 = 1;
  			iVar1 = 115;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "FEET_P2_20_2", 16);
  			iVar3 = 20;
  			iVar4 = 2;
  			iVar1 = 120;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "FEET_P2_20_3", 16);
  			iVar3 = 20;
  			iVar4 = 3;
  			iVar1 = 110;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "FEET_P2_20_4", 16);
  			iVar3 = 20;
  			iVar4 = 4;
  			iVar1 = 125;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "FEET_P2_20_5", 16);
  			iVar3 = 20;
  			iVar4 = 5;
  			iVar1 = 128;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "FEET_P2_20_6", 16);
  			iVar3 = 20;
  			iVar4 = 6;
  			iVar1 = 135;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "FEET_P2_20_7", 16);
  			iVar3 = 20;
  			iVar4 = 7;
  			iVar1 = 130;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "FEET_P2_20_8", 16);
  			iVar3 = 20;
  			iVar4 = 8;
  			iVar1 = 145;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "FEET_P2_20_9", 16);
  			iVar3 = 20;
  			iVar4 = 9;
  			iVar1 = 110;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "FEET_P2_20_10", 16);
  			iVar3 = 20;
  			iVar4 = 10;
  			iVar1 = 120;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "FEET_P2_20_11", 16);
  			iVar3 = 20;
  			iVar4 = 11;
  			iVar1 = 150;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "FEET_P2_20_12", 16);
  			iVar3 = 20;
  			iVar4 = 12;
  			iVar1 = 125;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "FEET_P2_20_13", 16);
  			iVar3 = 20;
  			iVar4 = 13;
  			iVar1 = 120;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "FEET_P2_20_14", 16);
  			iVar3 = 20;
  			iVar4 = 14;
  			iVar1 = 130;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "FEET_P2_20_15", 16);
  			iVar3 = 20;
  			iVar4 = 15;
  			iVar1 = 110;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 84, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_275(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 4;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "LEGS_P2_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "LEGS_P2_0_1", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			iVar1 = 95;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "LEGS_P2_0_2", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			iVar1 = 129;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "LEGS_P2_0_3", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			iVar1 = 115;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 2;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 3;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 4;
  			bVar0 = true;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "LEGS_P2_11_0", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "LEGS_P2_11_1", 16);
  			iVar3 = 11;
  			iVar4 = 1;
  			iVar1 = 750;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "LEGS_P2_11_2", 16);
  			iVar3 = 11;
  			iVar4 = 2;
  			iVar1 = 650;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "LEGS_P2_11_3", 16);
  			iVar3 = 11;
  			iVar4 = 3;
  			iVar1 = 850;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "LEGS_P2_11_4", 16);
  			iVar3 = 11;
  			iVar4 = 4;
  			iVar1 = 850;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "LEGS_P2_11_5", 16);
  			iVar3 = 11;
  			iVar4 = 5;
  			iVar1 = 750;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "LEGS_P2_11_6", 16);
  			iVar3 = 11;
  			iVar4 = 6;
  			iVar1 = 690;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "LEGS_P2_11_7", 16);
  			iVar3 = 11;
  			iVar4 = 7;
  			iVar1 = 820;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "LEGS_P2_11_8", 16);
  			iVar3 = 11;
  			iVar4 = 8;
  			iVar1 = 650;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "LEGS_P2_11_9", 16);
  			iVar3 = 11;
  			iVar4 = 9;
  			iVar1 = 690;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "LEGS_P2_11_10", 16);
  			iVar3 = 11;
  			iVar4 = 10;
  			iVar1 = 690;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "LEGS_P2_11_11", 16);
  			iVar3 = 11;
  			iVar4 = 11;
  			iVar1 = 820;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "LEGS_P2_14_0", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "LEGS_P2_15_0", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "LEGS_P2_16_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "LEGS_P2_17_0", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			iVar1 = 58;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "LEGS_P2_17_1", 16);
  			iVar3 = 17;
  			iVar4 = 1;
  			iVar1 = 68;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "LEGS_P2_17_2", 16);
  			iVar3 = 17;
  			iVar4 = 2;
  			iVar1 = 65;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "LEGS_P2_17_3", 16);
  			iVar3 = 17;
  			iVar4 = 3;
  			iVar1 = 60;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "LEGS_P2_17_4", 16);
  			iVar3 = 17;
  			iVar4 = 4;
  			iVar1 = 65;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "LEGS_P2_17_5", 16);
  			iVar3 = 17;
  			iVar4 = 5;
  			iVar1 = 63;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "LEGS_P2_17_6", 16);
  			iVar3 = 17;
  			iVar4 = 6;
  			iVar1 = 60;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "LEGS_P2_17_7", 16);
  			iVar3 = 17;
  			iVar4 = 7;
  			iVar1 = 58;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "LEGS_P2_18_0", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "LEGS_P2_18_1", 16);
  			iVar3 = 18;
  			iVar4 = 1;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "LEGS_P2_18_2", 16);
  			iVar3 = 18;
  			iVar4 = 2;
  			iVar1 = 99;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "LEGS_P2_18_3", 16);
  			iVar3 = 18;
  			iVar4 = 3;
  			iVar1 = 105;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "LEGS_P2_18_4", 16);
  			iVar3 = 18;
  			iVar4 = 4;
  			iVar1 = 110;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "LEGS_P2_18_5", 16);
  			iVar3 = 18;
  			iVar4 = 5;
  			iVar1 = 110;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "LEGS_P2_18_6", 16);
  			iVar3 = 18;
  			iVar4 = 6;
  			iVar1 = 99;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "LEGS_P2_18_7", 16);
  			iVar3 = 18;
  			iVar4 = 7;
  			iVar1 = 110;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "LEGS_P2_18_8", 16);
  			iVar3 = 18;
  			iVar4 = 8;
  			iVar1 = 110;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "LEGS_P2_18_9", 16);
  			iVar3 = 18;
  			iVar4 = 9;
  			iVar1 = 105;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "LEGS_P2_18_10", 16);
  			iVar3 = 18;
  			iVar4 = 10;
  			iVar1 = 105;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "LEGS_P2_19_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			iVar1 = 15;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "LEGS_P2_19_1", 16);
  			iVar3 = 19;
  			iVar4 = 1;
  			iVar1 = 15;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "LEGS_P2_19_2", 16);
  			iVar3 = 19;
  			iVar4 = 2;
  			iVar1 = 15;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "LEGS_P2_19_3", 16);
  			iVar3 = 19;
  			iVar4 = 3;
  			iVar1 = 15;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "LEGS_P2_19_4", 16);
  			iVar3 = 19;
  			iVar4 = 4;
  			iVar1 = 15;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "LEGS_P2_19_5", 16);
  			iVar3 = 19;
  			iVar4 = 5;
  			iVar1 = 15;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "LEGS_P2_19_6", 16);
  			iVar3 = 19;
  			iVar4 = 6;
  			iVar1 = 15;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "LEGS_P2_19_7", 16);
  			iVar3 = 19;
  			iVar4 = 7;
  			iVar1 = 15;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "LEGS_P2_20_0", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			iVar1 = 600;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "LEGS_P2_20_1", 16);
  			iVar3 = 20;
  			iVar4 = 1;
  			iVar1 = 600;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "LEGS_P2_20_2", 16);
  			iVar3 = 20;
  			iVar4 = 2;
  			iVar1 = 600;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "LEGS_P2_20_3", 16);
  			iVar3 = 20;
  			iVar4 = 3;
  			iVar1 = 600;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "LEGS_P2_20_4", 16);
  			iVar3 = 20;
  			iVar4 = 4;
  			iVar1 = 600;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "LEGS_P2_20_5", 16);
  			iVar3 = 20;
  			iVar4 = 5;
  			iVar1 = 600;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "LEGS_P2_20_6", 16);
  			iVar3 = 20;
  			iVar4 = 6;
  			iVar1 = 600;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "LEGS_P2_20_7", 16);
  			iVar3 = 20;
  			iVar4 = 7;
  			iVar1 = 600;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "LEGS_P2_20_8", 16);
  			iVar3 = 20;
  			iVar4 = 8;
  			iVar1 = 600;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "LEGS_P2_21_0", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			iVar1 = 80;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "LEGS_P2_21_1", 16);
  			iVar3 = 21;
  			iVar4 = 1;
  			iVar1 = 80;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "LEGS_P2_21_2", 16);
  			iVar3 = 21;
  			iVar4 = 2;
  			iVar1 = 80;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "LEGS_P2_21_3", 16);
  			iVar3 = 21;
  			iVar4 = 3;
  			iVar1 = 80;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "LEGS_P2_21_4", 16);
  			iVar3 = 21;
  			iVar4 = 4;
  			iVar1 = 80;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "LEGS_P2_21_5", 16);
  			iVar3 = 21;
  			iVar4 = 5;
  			iVar1 = 80;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "LEGS_P2_21_6", 16);
  			iVar3 = 21;
  			iVar4 = 6;
  			iVar1 = 80;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "LEGS_P2_21_7", 16);
  			iVar3 = 21;
  			iVar4 = 7;
  			iVar1 = 80;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "LEGS_P2_21_8", 16);
  			iVar3 = 21;
  			iVar4 = 8;
  			iVar1 = 80;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "LEGS_P2_21_9", 16);
  			iVar3 = 21;
  			iVar4 = 9;
  			iVar1 = 80;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "LEGS_P2_22_0", 16);
  			iVar3 = 22;
  			iVar4 = 0;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "LEGS_P2_22_1", 16);
  			iVar3 = 22;
  			iVar4 = 1;
  			iVar1 = 12;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "LEGS_P2_22_2", 16);
  			iVar3 = 22;
  			iVar4 = 2;
  			iVar1 = 12;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "LEGS_P2_22_3", 16);
  			iVar3 = 22;
  			iVar4 = 3;
  			iVar1 = 22;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "LEGS_P2_22_4", 16);
  			iVar3 = 22;
  			iVar4 = 4;
  			iVar1 = 18;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "LEGS_P2_22_5", 16);
  			iVar3 = 22;
  			iVar4 = 5;
  			iVar1 = 20;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "LEGS_P2_22_6", 16);
  			iVar3 = 22;
  			iVar4 = 6;
  			iVar1 = 30;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "LEGS_P2_22_7", 16);
  			iVar3 = 22;
  			iVar4 = 7;
  			iVar1 = 30;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "LEGS_P2_22_8", 16);
  			iVar3 = 22;
  			iVar4 = 8;
  			iVar1 = 30;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "LEGS_P2_22_9", 16);
  			iVar3 = 22;
  			iVar4 = 9;
  			iVar1 = 30;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "LEGS_P2_23_0", 16);
  			iVar3 = 23;
  			iVar4 = 0;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "LEGS_P2_24_0", 16);
  			iVar3 = 24;
  			iVar4 = 0;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 25;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 0;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 1;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 2;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 3;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 4;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 5;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 6;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 7;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 8;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 9;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 104, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_276(int iParam0)
  {
  	if (iParam0 < 136)
  	{
  		func_278(iParam0);
  	}
  	else
  	{
  		func_277(iParam0);
  	}
  	if (Global_76647[0 /*14*/].f_2 == -1)
  	{
  		func_264(3, iParam0, 242, -1);
  	}
  }
  
  void func_277(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 3;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 136:
  			StringCopy(&Var2, "TORSO_P2_21_0", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			iVar1 = 32;
  			break;
  		
  		case 137:
  			StringCopy(&Var2, "TORSO_P2_21_1", 16);
  			iVar3 = 21;
  			iVar4 = 1;
  			iVar1 = 39;
  			break;
  		
  		case 138:
  			StringCopy(&Var2, "TORSO_P2_21_2", 16);
  			iVar3 = 21;
  			iVar4 = 2;
  			iVar1 = 40;
  			break;
  		
  		case 139:
  			StringCopy(&Var2, "TORSO_P2_21_3", 16);
  			iVar3 = 21;
  			iVar4 = 3;
  			iVar1 = 42;
  			break;
  		
  		case 140:
  			StringCopy(&Var2, "TORSO_P2_21_4", 16);
  			iVar3 = 21;
  			iVar4 = 4;
  			iVar1 = 45;
  			break;
  		
  		case 141:
  			StringCopy(&Var2, "TORSO_P2_21_5", 16);
  			iVar3 = 21;
  			iVar4 = 5;
  			iVar1 = 48;
  			break;
  		
  		case 142:
  			StringCopy(&Var2, "TORSO_P2_21_6", 16);
  			iVar3 = 21;
  			iVar4 = 6;
  			iVar1 = 52;
  			break;
  		
  		case 143:
  			StringCopy(&Var2, "TORSO_P2_21_7", 16);
  			iVar3 = 21;
  			iVar4 = 7;
  			iVar1 = 55;
  			break;
  		
  		case 144:
  			StringCopy(&Var2, "TORSO_P2_22_0", 16);
  			iVar3 = 22;
  			iVar4 = 0;
  			iVar1 = 390;
  			break;
  		
  		case 145:
  			StringCopy(&Var2, "TORSO_P2_22_1", 16);
  			iVar3 = 22;
  			iVar4 = 1;
  			iVar1 = 390;
  			break;
  		
  		case 146:
  			StringCopy(&Var2, "TORSO_P2_22_2", 16);
  			iVar3 = 22;
  			iVar4 = 2;
  			iVar1 = 560;
  			break;
  		
  		case 147:
  			StringCopy(&Var2, "TORSO_P2_22_3", 16);
  			iVar3 = 22;
  			iVar4 = 3;
  			iVar1 = 390;
  			break;
  		
  		case 148:
  			StringCopy(&Var2, "TORSO_P2_22_4", 16);
  			iVar3 = 22;
  			iVar4 = 4;
  			iVar1 = 390;
  			break;
  		
  		case 149:
  			StringCopy(&Var2, "TORSO_P2_22_5", 16);
  			iVar3 = 22;
  			iVar4 = 5;
  			iVar1 = 390;
  			break;
  		
  		case 150:
  			StringCopy(&Var2, "TORSO_P2_22_6", 16);
  			iVar3 = 22;
  			iVar4 = 6;
  			iVar1 = 560;
  			break;
  		
  		case 151:
  			StringCopy(&Var2, "TORSO_P2_22_7", 16);
  			iVar3 = 22;
  			iVar4 = 7;
  			iVar1 = 390;
  			break;
  		
  		case 152:
  			StringCopy(&Var2, "TORSO_P2_22_8", 16);
  			iVar3 = 22;
  			iVar4 = 8;
  			iVar1 = 390;
  			break;
  		
  		case 153:
  			StringCopy(&Var2, "TORSO_P2_22_9", 16);
  			iVar3 = 22;
  			iVar4 = 9;
  			iVar1 = 390;
  			break;
  		
  		case 154:
  			StringCopy(&Var2, "TORSO_P2_22_10", 16);
  			iVar3 = 22;
  			iVar4 = 10;
  			iVar1 = 390;
  			break;
  		
  		case 155:
  			StringCopy(&Var2, "TORSO_P2_22_11", 16);
  			iVar3 = 22;
  			iVar4 = 11;
  			iVar1 = 3950;
  			break;
  		
  		case 156:
  			StringCopy(&Var2, "TORSO_P2_23_0", 16);
  			iVar3 = 23;
  			iVar4 = 0;
  			iVar1 = 150;
  			break;
  		
  		case 157:
  			StringCopy(&Var2, "TORSO_P2_23_1", 16);
  			iVar3 = 23;
  			iVar4 = 1;
  			break;
  		
  		case 158:
  			StringCopy(&Var2, "TORSO_P2_23_2", 16);
  			iVar3 = 23;
  			iVar4 = 2;
  			iVar1 = 150;
  			break;
  		
  		case 159:
  			StringCopy(&Var2, "TORSO_P2_23_3", 16);
  			iVar3 = 23;
  			iVar4 = 3;
  			iVar1 = 150;
  			break;
  		
  		case 160:
  			StringCopy(&Var2, "TORSO_P2_23_4", 16);
  			iVar3 = 23;
  			iVar4 = 4;
  			iVar1 = 160;
  			break;
  		
  		case 161:
  			StringCopy(&Var2, "TORSO_P2_23_5", 16);
  			iVar3 = 23;
  			iVar4 = 5;
  			break;
  		
  		case 162:
  			StringCopy(&Var2, "TORSO_P2_24_0", 16);
  			iVar3 = 24;
  			iVar4 = 0;
  			iVar1 = 19;
  			break;
  		
  		case 163:
  			StringCopy(&Var2, "TORSO_P2_24_1", 16);
  			iVar3 = 24;
  			iVar4 = 1;
  			iVar1 = 20;
  			break;
  		
  		case 164:
  			StringCopy(&Var2, "TORSO_P2_24_2", 16);
  			iVar3 = 24;
  			iVar4 = 2;
  			iVar1 = 19;
  			break;
  		
  		case 165:
  			StringCopy(&Var2, "TORSO_P2_24_3", 16);
  			iVar3 = 24;
  			iVar4 = 3;
  			iVar1 = 22;
  			break;
  		
  		case 166:
  			StringCopy(&Var2, "TORSO_P2_24_4", 16);
  			iVar3 = 24;
  			iVar4 = 4;
  			iVar1 = 20;
  			break;
  		
  		case 167:
  			StringCopy(&Var2, "TORSO_P2_24_5", 16);
  			iVar3 = 24;
  			iVar4 = 5;
  			iVar1 = 28;
  			break;
  		
  		case 168:
  			StringCopy(&Var2, "TORSO_P2_24_6", 16);
  			iVar3 = 24;
  			iVar4 = 6;
  			iVar1 = 28;
  			break;
  		
  		case 169:
  			StringCopy(&Var2, "TORSO_P2_24_7", 16);
  			iVar3 = 24;
  			iVar4 = 7;
  			iVar1 = 25;
  			break;
  		
  		case 170:
  			StringCopy(&Var2, "TORSO_P2_24_8", 16);
  			iVar3 = 24;
  			iVar4 = 8;
  			iVar1 = 22;
  			break;
  		
  		case 171:
  			StringCopy(&Var2, "TORSO_P2_24_9", 16);
  			iVar3 = 24;
  			iVar4 = 9;
  			iVar1 = 19;
  			break;
  		
  		case 172:
  			StringCopy(&Var2, "TORSO_P2_24_10", 16);
  			iVar3 = 24;
  			iVar4 = 10;
  			iVar1 = 22;
  			break;
  		
  		case 173:
  			StringCopy(&Var2, "TORSO_P2_24_11", 16);
  			iVar3 = 24;
  			iVar4 = 11;
  			iVar1 = 19;
  			break;
  		
  		case 174:
  			StringCopy(&Var2, "TORSO_P2_24_12", 16);
  			iVar3 = 24;
  			iVar4 = 12;
  			iVar1 = 20;
  			break;
  		
  		case 175:
  			StringCopy(&Var2, "TORSO_P2_24_13", 16);
  			iVar3 = 24;
  			iVar4 = 13;
  			iVar1 = 25;
  			break;
  		
  		case 176:
  			StringCopy(&Var2, "TORSO_P2_24_14", 16);
  			iVar3 = 24;
  			iVar4 = 14;
  			iVar1 = 20;
  			break;
  		
  		case 177:
  			StringCopy(&Var2, "TORSO_P2_24_15", 16);
  			iVar3 = 24;
  			iVar4 = 15;
  			iVar1 = 28;
  			break;
  		
  		case 178:
  			StringCopy(&Var2, "TORSO_P2_25_0", 16);
  			iVar3 = 25;
  			iVar4 = 0;
  			iVar1 = 35;
  			break;
  		
  		case 179:
  			StringCopy(&Var2, "TORSO_P2_25_1", 16);
  			iVar3 = 25;
  			iVar4 = 1;
  			iVar1 = 40;
  			break;
  		
  		case 180:
  			StringCopy(&Var2, "TORSO_P2_25_2", 16);
  			iVar3 = 25;
  			iVar4 = 2;
  			iVar1 = 45;
  			break;
  		
  		case 181:
  			StringCopy(&Var2, "TORSO_P2_25_3", 16);
  			iVar3 = 25;
  			iVar4 = 3;
  			iVar1 = 45;
  			break;
  		
  		case 182:
  			StringCopy(&Var2, "TORSO_P2_25_4", 16);
  			iVar3 = 25;
  			iVar4 = 4;
  			iVar1 = 49;
  			break;
  		
  		case 183:
  			StringCopy(&Var2, "TORSO_P2_25_5", 16);
  			iVar3 = 25;
  			iVar4 = 5;
  			iVar1 = 820;
  			break;
  		
  		case 184:
  			StringCopy(&Var2, "TORSO_P2_25_6", 16);
  			iVar3 = 25;
  			iVar4 = 6;
  			iVar1 = 790;
  			break;
  		
  		case 185:
  			StringCopy(&Var2, "TORSO_P2_25_7", 16);
  			iVar3 = 25;
  			iVar4 = 7;
  			iVar1 = 820;
  			break;
  		
  		case 186:
  			StringCopy(&Var2, "TORSO_P2_25_8", 16);
  			iVar3 = 25;
  			iVar4 = 8;
  			iVar1 = 929;
  			break;
  		
  		case 187:
  			StringCopy(&Var2, "TORSO_P2_25_9", 16);
  			iVar3 = 25;
  			iVar4 = 9;
  			iVar1 = 40;
  			break;
  		
  		case 188:
  			StringCopy(&Var2, "TORSO_P2_25_10", 16);
  			iVar3 = 25;
  			iVar4 = 10;
  			iVar1 = 850;
  			break;
  		
  		case 189:
  			StringCopy(&Var2, "TORSO_P2_25_11", 16);
  			iVar3 = 25;
  			iVar4 = 11;
  			iVar1 = 790;
  			break;
  		
  		case 190:
  			StringCopy(&Var2, "TORSO_P2_26_0", 16);
  			iVar3 = 26;
  			iVar4 = 0;
  			break;
  		
  		case 191:
  			StringCopy(&Var2, "TORSO_P2_26_1", 16);
  			iVar3 = 26;
  			iVar4 = 1;
  			break;
  		
  		case 192:
  			StringCopy(&Var2, "TORSO_P2_26_2", 16);
  			iVar3 = 26;
  			iVar4 = 2;
  			break;
  		
  		case 193:
  			StringCopy(&Var2, "TORSO_P2_26_3", 16);
  			iVar3 = 26;
  			iVar4 = 3;
  			break;
  		
  		case 194:
  			StringCopy(&Var2, "TORSO_P2_26_4", 16);
  			iVar3 = 26;
  			iVar4 = 4;
  			break;
  		
  		case 195:
  			StringCopy(&Var2, "TORSO_P2_26_5", 16);
  			iVar3 = 26;
  			iVar4 = 5;
  			break;
  		
  		case 196:
  			StringCopy(&Var2, "TORSO_P2_26_6", 16);
  			iVar3 = 26;
  			iVar4 = 6;
  			break;
  		
  		case 197:
  			StringCopy(&Var2, "TORSO_P2_26_7", 16);
  			iVar3 = 26;
  			iVar4 = 7;
  			break;
  		
  		case 198:
  			StringCopy(&Var2, "TORSO_P2_26_8", 16);
  			iVar3 = 26;
  			iVar4 = 8;
  			break;
  		
  		case 199:
  			StringCopy(&Var2, "TORSO_P2_26_9", 16);
  			iVar3 = 26;
  			iVar4 = 9;
  			break;
  		
  		case 200:
  			StringCopy(&Var2, "TORSO_P2_27_0", 16);
  			iVar3 = 27;
  			iVar4 = 0;
  			iVar1 = 2200;
  			break;
  		
  		case 201:
  			StringCopy(&Var2, "TORSO_P2_27_1", 16);
  			iVar3 = 27;
  			iVar4 = 1;
  			iVar1 = 2500;
  			break;
  		
  		case 202:
  			StringCopy(&Var2, "TORSO_P2_27_2", 16);
  			iVar3 = 27;
  			iVar4 = 2;
  			iVar1 = 2500;
  			break;
  		
  		case 203:
  			StringCopy(&Var2, "TORSO_P2_27_3", 16);
  			iVar3 = 27;
  			iVar4 = 3;
  			iVar1 = 2200;
  			break;
  		
  		case 204:
  			StringCopy(&Var2, "TORSO_P2_27_4", 16);
  			iVar3 = 27;
  			iVar4 = 4;
  			iVar1 = 2500;
  			break;
  		
  		case 205:
  			StringCopy(&Var2, "TORSO_P2_27_5", 16);
  			iVar3 = 27;
  			iVar4 = 5;
  			iVar1 = 2500;
  			break;
  		
  		case 206:
  			StringCopy(&Var2, "TORSO_P2_27_6", 16);
  			iVar3 = 27;
  			iVar4 = 6;
  			iVar1 = 2200;
  			break;
  		
  		case 207:
  			StringCopy(&Var2, "TORSO_P2_28_0", 16);
  			iVar3 = 28;
  			iVar4 = 0;
  			iVar1 = 1100;
  			break;
  		
  		case 208:
  			StringCopy(&Var2, "TORSO_P2_28_1", 16);
  			iVar3 = 28;
  			iVar4 = 1;
  			iVar1 = 1200;
  			break;
  		
  		case 209:
  			StringCopy(&Var2, "TORSO_P2_28_2", 16);
  			iVar3 = 28;
  			iVar4 = 2;
  			iVar1 = 1220;
  			break;
  		
  		case 210:
  			StringCopy(&Var2, "TORSO_P2_28_3", 16);
  			iVar3 = 28;
  			iVar4 = 3;
  			iVar1 = 1250;
  			break;
  		
  		case 211:
  			StringCopy(&Var2, "TORSO_P2_28_4", 16);
  			iVar3 = 28;
  			iVar4 = 4;
  			iVar1 = 1300;
  			break;
  		
  		case 212:
  			StringCopy(&Var2, "TORSO_P2_28_5", 16);
  			iVar3 = 28;
  			iVar4 = 5;
  			iVar1 = 1360;
  			break;
  		
  		case 213:
  			StringCopy(&Var2, "TORSO_P2_28_6", 16);
  			iVar3 = 28;
  			iVar4 = 6;
  			iVar1 = 35;
  			break;
  		
  		case 214:
  			StringCopy(&Var2, "TORSO_P2_28_7", 16);
  			iVar3 = 28;
  			iVar4 = 7;
  			iVar1 = 38;
  			break;
  		
  		case 215:
  			StringCopy(&Var2, "TORSO_P2_28_8", 16);
  			iVar3 = 28;
  			iVar4 = 8;
  			iVar1 = 40;
  			break;
  		
  		case 216:
  			StringCopy(&Var2, "TORSO_P2_28_9", 16);
  			iVar3 = 28;
  			iVar4 = 9;
  			iVar1 = 42;
  			break;
  		
  		case 217:
  			StringCopy(&Var2, "TORSO_P2_28_10", 16);
  			iVar3 = 28;
  			iVar4 = 10;
  			iVar1 = 50;
  			break;
  		
  		case 218:
  			StringCopy(&Var2, "TORSO_P2_28_11", 16);
  			iVar3 = 28;
  			iVar4 = 11;
  			iVar1 = 45;
  			break;
  		
  		case 219:
  			StringCopy(&Var2, "TORSO_P2_28_12", 16);
  			iVar3 = 28;
  			iVar4 = 12;
  			iVar1 = 45;
  			break;
  		
  		case 220:
  			StringCopy(&Var2, "TORSO_P2_28_13", 16);
  			iVar3 = 28;
  			iVar4 = 13;
  			iVar1 = 44;
  			break;
  		
  		case 221:
  			StringCopy(&Var2, "TORSO_P2_28_14", 16);
  			iVar3 = 28;
  			iVar4 = 14;
  			iVar1 = 46;
  			break;
  		
  		case 222:
  			StringCopy(&Var2, "TORSO_P2_28_15", 16);
  			iVar3 = 28;
  			iVar4 = 15;
  			iVar1 = 52;
  			break;
  		
  		case 223:
  			StringCopy(&Var2, "TORSO_P2_29_0", 16);
  			iVar3 = 29;
  			iVar4 = 0;
  			iVar1 = 3200;
  			break;
  		
  		case 224:
  			StringCopy(&Var2, "TORSO_P2_29_1", 16);
  			iVar3 = 29;
  			iVar4 = 1;
  			iVar1 = 3200;
  			break;
  		
  		case 225:
  			StringCopy(&Var2, "TORSO_P2_29_2", 16);
  			iVar3 = 29;
  			iVar4 = 2;
  			iVar1 = 2550;
  			break;
  		
  		case 226:
  			StringCopy(&Var2, "TORSO_P2_29_3", 16);
  			iVar3 = 29;
  			iVar4 = 3;
  			iVar1 = 2750;
  			break;
  		
  		case 227:
  			StringCopy(&Var2, "TORSO_P2_29_4", 16);
  			iVar3 = 29;
  			iVar4 = 4;
  			iVar1 = 2590;
  			break;
  		
  		case 228:
  			StringCopy(&Var2, "TORSO_P2_29_5", 16);
  			iVar3 = 29;
  			iVar4 = 5;
  			iVar1 = 2750;
  			break;
  		
  		case 229:
  			StringCopy(&Var2, "TORSO_P2_29_6", 16);
  			iVar3 = 29;
  			iVar4 = 6;
  			iVar1 = 2550;
  			break;
  		
  		case 230:
  			StringCopy(&Var2, "TORSO_P2_29_7", 16);
  			iVar3 = 29;
  			iVar4 = 7;
  			iVar1 = 2590;
  			break;
  		
  		case 231:
  			StringCopy(&Var2, "TORSO_P2_29_8", 16);
  			iVar3 = 29;
  			iVar4 = 8;
  			iVar1 = 2720;
  			break;
  		
  		case 232:
  			StringCopy(&Var2, "TORSO_P2_29_9", 16);
  			iVar3 = 29;
  			iVar4 = 9;
  			iVar1 = 2750;
  			break;
  		
  		case 233:
  			StringCopy(&Var2, "TORSO_P2_30_0", 16);
  			iVar3 = 30;
  			iVar4 = 0;
  			iVar1 = 3250;
  			break;
  		
  		case 234:
  			StringCopy(&Var2, "TORSO_P2_30_1", 16);
  			iVar3 = 30;
  			iVar4 = 1;
  			iVar1 = 2950;
  			break;
  		
  		case 235:
  			StringCopy(&Var2, "TORSO_P2_30_2", 16);
  			iVar3 = 30;
  			iVar4 = 2;
  			iVar1 = 3100;
  			break;
  		
  		case 236:
  			StringCopy(&Var2, "TORSO_P2_30_3", 16);
  			iVar3 = 30;
  			iVar4 = 3;
  			iVar1 = 3150;
  			break;
  		
  		case 237:
  			StringCopy(&Var2, "TORSO_P2_30_4", 16);
  			iVar3 = 30;
  			iVar4 = 4;
  			iVar1 = 3240;
  			break;
  		
  		case 238:
  			StringCopy(&Var2, "TORSO_P2_30_5", 16);
  			iVar3 = 30;
  			iVar4 = 5;
  			iVar1 = 3350;
  			break;
  		
  		case 239:
  			StringCopy(&Var2, "TORSO_P2_30_6", 16);
  			iVar3 = 30;
  			iVar4 = 6;
  			iVar1 = 3400;
  			break;
  		
  		case 240:
  			StringCopy(&Var2, "TORSO_P2_30_7", 16);
  			iVar3 = 30;
  			iVar4 = 7;
  			iVar1 = 3280;
  			break;
  		
  		case 241:
  			StringCopy(&Var2, "TORSO_P2_31_0", 16);
  			iVar3 = 31;
  			iVar4 = 0;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_278(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 3;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "TORSO_P2_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "TORSO_P2_0_1", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			iVar1 = 25;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "TORSO_P2_0_2", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "TORSO_P2_0_3", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			iVar1 = 15;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "TORSO_P2_0_4", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			iVar1 = 25;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "TORSO_P2_0_5", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			iVar1 = 25;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "TORSO_P2_0_6", 16);
  			iVar3 = 0;
  			iVar4 = 6;
  			iVar1 = 22;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "TORSO_P2_0_7", 16);
  			iVar3 = 0;
  			iVar4 = 7;
  			iVar1 = 22;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "TORSO_P2_0_8", 16);
  			iVar3 = 0;
  			iVar4 = 8;
  			iVar1 = 20;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "TORSO_P2_0_9", 16);
  			iVar3 = 0;
  			iVar4 = 9;
  			iVar1 = 20;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "TORSO_P2_0_10", 16);
  			iVar3 = 0;
  			iVar4 = 10;
  			iVar1 = 24;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "TORSO_P2_0_11", 16);
  			iVar3 = 0;
  			iVar4 = 11;
  			iVar1 = 26;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "TORSO_P2_0_12", 16);
  			iVar3 = 0;
  			iVar4 = 12;
  			iVar1 = 28;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "TORSO_P2_0_13", 16);
  			iVar3 = 0;
  			iVar4 = 13;
  			iVar1 = 29;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "TORSO_P2_0_14", 16);
  			iVar3 = 0;
  			iVar4 = 14;
  			iVar1 = 22;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "TORSO_P2_0_15", 16);
  			iVar3 = 0;
  			iVar4 = 15;
  			iVar1 = 20;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "TORSO_P2_3_0", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			iVar1 = 35;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "TORSO_P2_3_1", 16);
  			iVar3 = 3;
  			iVar4 = 1;
  			iVar1 = 22;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "TORSO_P2_3_2", 16);
  			iVar3 = 3;
  			iVar4 = 2;
  			iVar1 = 25;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "TORSO_P2_3_3", 16);
  			iVar3 = 3;
  			iVar4 = 3;
  			iVar1 = 38;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "TORSO_P2_3_4", 16);
  			iVar3 = 3;
  			iVar4 = 4;
  			iVar1 = 40;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "TORSO_P2_3_5", 16);
  			iVar3 = 3;
  			iVar4 = 5;
  			iVar1 = 40;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "TORSO_P2_3_6", 16);
  			iVar3 = 3;
  			iVar4 = 6;
  			iVar1 = 40;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "TORSO_P2_3_7", 16);
  			iVar3 = 3;
  			iVar4 = 7;
  			iVar1 = 40;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "TORSO_P2_3_8", 16);
  			iVar3 = 3;
  			iVar4 = 8;
  			iVar1 = 40;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "TORSO_P2_4_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "TORSO_P2_4_1", 16);
  			iVar3 = 4;
  			iVar4 = 1;
  			iVar1 = 500;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "TORSO_P2_4_2", 16);
  			iVar3 = 4;
  			iVar4 = 2;
  			iVar1 = 560;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "TORSO_P2_4_3", 16);
  			iVar3 = 4;
  			iVar4 = 3;
  			iVar1 = 600;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "TORSO_P2_4_4tu", 16);
  			iVar3 = 4;
  			iVar4 = 4;
  			iVar1 = 650;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "TORSO_P2_4_5tu", 16);
  			iVar3 = 4;
  			iVar4 = 5;
  			iVar1 = 500;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "TORSO_P2_4_6tu", 16);
  			iVar3 = 4;
  			iVar4 = 6;
  			iVar1 = 560;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "TORSO_P2_4_7", 16);
  			iVar3 = 4;
  			iVar4 = 7;
  			iVar1 = 500;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "TORSO_P2_4_8", 16);
  			iVar3 = 4;
  			iVar4 = 8;
  			iVar1 = 650;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "TORSO_P2_4_9", 16);
  			iVar3 = 4;
  			iVar4 = 9;
  			iVar1 = 540;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "TORSO_P2_4_10", 16);
  			iVar3 = 4;
  			iVar4 = 10;
  			iVar1 = 690;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "TORSO_P2_4_11", 16);
  			iVar3 = 4;
  			iVar4 = 11;
  			iVar1 = 560;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "TORSO_P2_4_12", 16);
  			iVar3 = 4;
  			iVar4 = 12;
  			iVar1 = 590;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "TORSO_P2_4_13", 16);
  			iVar3 = 4;
  			iVar4 = 13;
  			iVar1 = 690;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "TORSO_P2_4_14", 16);
  			iVar3 = 4;
  			iVar4 = 14;
  			iVar1 = 540;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "TORSO_P2_4_15", 16);
  			iVar3 = 4;
  			iVar4 = 15;
  			iVar1 = 500;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 2;
  			bVar0 = true;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 3;
  			bVar0 = true;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 4;
  			bVar0 = true;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 5;
  			bVar0 = true;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "TORSO_P2_11_0", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "TORSO_P2_11_1", 16);
  			iVar3 = 11;
  			iVar4 = 1;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "TORSO_P2_11_2", 16);
  			iVar3 = 11;
  			iVar4 = 2;
  			iVar1 = 25;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "TORSO_P2_11_3", 16);
  			iVar3 = 11;
  			iVar4 = 3;
  			iVar1 = 27;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "TORSO_P2_11_4", 16);
  			iVar3 = 11;
  			iVar4 = 4;
  			iVar1 = 22;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "TORSO_P2_11_5", 16);
  			iVar3 = 11;
  			iVar4 = 5;
  			iVar1 = 350;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "TORSO_P2_11_6", 16);
  			iVar3 = 11;
  			iVar4 = 6;
  			iVar1 = 27;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "TORSO_P2_11_7", 16);
  			iVar3 = 11;
  			iVar4 = 7;
  			iVar1 = 370;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "TORSO_P2_11_8", 16);
  			iVar3 = 11;
  			iVar4 = 8;
  			iVar1 = 25;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "TORSO_P2_11_9", 16);
  			iVar3 = 11;
  			iVar4 = 9;
  			iVar1 = 22;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "TORSO_P2_11_10", 16);
  			iVar3 = 11;
  			iVar4 = 10;
  			iVar1 = 25;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "TORSO_P2_11_11", 16);
  			iVar3 = 11;
  			iVar4 = 11;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "TORSO_P2_11_12", 16);
  			iVar3 = 11;
  			iVar4 = 12;
  			iVar1 = 22;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "TORSO_P2_11_13", 16);
  			iVar3 = 11;
  			iVar4 = 13;
  			iVar1 = 27;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "TORSO_P2_11_14", 16);
  			iVar3 = 11;
  			iVar4 = 14;
  			iVar1 = 25;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "TORSO_P2_11_15", 16);
  			iVar3 = 11;
  			iVar4 = 15;
  			iVar1 = 27;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar6 = 1;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "TORSO_P2_13_0", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "TORSO_P2_13_1", 16);
  			iVar3 = 13;
  			iVar4 = 1;
  			iVar1 = 39;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "TORSO_P2_13_2", 16);
  			iVar3 = 13;
  			iVar4 = 2;
  			iVar1 = 42;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "TORSO_P2_13_3", 16);
  			iVar3 = 13;
  			iVar4 = 3;
  			iVar1 = 49;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "TORSO_P2_13_4", 16);
  			iVar3 = 13;
  			iVar4 = 4;
  			iVar1 = 35;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "TORSO_P2_13_5", 16);
  			iVar3 = 13;
  			iVar4 = 5;
  			iVar1 = 50;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "TORSO_P2_13_6", 16);
  			iVar3 = 13;
  			iVar4 = 6;
  			iVar1 = 50;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "TORSO_P2_13_7", 16);
  			iVar3 = 13;
  			iVar4 = 7;
  			iVar1 = 50;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "TORSO_P2_14_0", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "TORSO_P2_14_1", 16);
  			iVar3 = 14;
  			iVar4 = 1;
  			iVar1 = 88;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "TORSO_P2_14_2", 16);
  			iVar3 = 14;
  			iVar4 = 2;
  			iVar1 = 60;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "TORSO_P2_14_3", 16);
  			iVar3 = 14;
  			iVar4 = 3;
  			iVar1 = 80;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "TORSO_P2_14_4", 16);
  			iVar3 = 14;
  			iVar4 = 4;
  			iVar1 = 70;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "TORSO_P2_14_5", 16);
  			iVar3 = 14;
  			iVar4 = 5;
  			iVar1 = 80;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "TORSO_P2_14_6", 16);
  			iVar3 = 14;
  			iVar4 = 6;
  			iVar1 = 70;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "TORSO_P2_14_7", 16);
  			iVar3 = 14;
  			iVar4 = 7;
  			iVar1 = 90;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "TORSO_P2_14_8", 16);
  			iVar3 = 14;
  			iVar4 = 8;
  			iVar1 = 95;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "TORSO_P2_14_9", 16);
  			iVar3 = 14;
  			iVar4 = 9;
  			iVar1 = 105;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "TORSO_P2_14_10", 16);
  			iVar3 = 14;
  			iVar4 = 10;
  			iVar1 = 95;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "TORSO_P2_14_11", 16);
  			iVar3 = 14;
  			iVar4 = 11;
  			iVar1 = 110;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "TORSO_P2_14_12", 16);
  			iVar3 = 14;
  			iVar4 = 12;
  			iVar1 = 98;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "TORSO_P2_14_13", 16);
  			iVar3 = 14;
  			iVar4 = 13;
  			iVar1 = 88;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "TORSO_P2_14_14", 16);
  			iVar3 = 14;
  			iVar4 = 14;
  			iVar1 = 98;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "TORSO_P2_14_15", 16);
  			iVar3 = 14;
  			iVar4 = 15;
  			iVar1 = 110;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "TORSO_P2_15_0", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "TORSO_P2_16_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "TORSO_P2_17_0", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "TORSO_P2_18_0", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "TORSO_P2_18_1", 16);
  			iVar3 = 18;
  			iVar4 = 1;
  			iVar1 = 520;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "TORSO_P2_18_2", 16);
  			iVar3 = 18;
  			iVar4 = 2;
  			iVar1 = 490;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "TORSO_P2_18_3", 16);
  			iVar3 = 18;
  			iVar4 = 3;
  			iVar1 = 450;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "TORSO_P2_18_4", 16);
  			iVar3 = 18;
  			iVar4 = 4;
  			iVar1 = 420;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "TORSO_P2_18_5", 16);
  			iVar3 = 18;
  			iVar4 = 5;
  			iVar1 = 420;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "TORSO_P2_19_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			iVar1 = 85;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "TORSO_P2_19_1", 16);
  			iVar3 = 19;
  			iVar4 = 1;
  			iVar1 = 85;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "TORSO_P2_19_2", 16);
  			iVar3 = 19;
  			iVar4 = 2;
  			iVar1 = 75;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "TORSO_P2_19_3", 16);
  			iVar3 = 19;
  			iVar4 = 3;
  			iVar1 = 68;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "TORSO_P2_19_4", 16);
  			iVar3 = 19;
  			iVar4 = 4;
  			iVar1 = 68;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "TORSO_P2_19_5", 16);
  			iVar3 = 19;
  			iVar4 = 5;
  			iVar1 = 78;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "TORSO_P2_19_6", 16);
  			iVar3 = 19;
  			iVar4 = 6;
  			iVar1 = 85;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "TORSO_P2_19_7", 16);
  			iVar3 = 19;
  			iVar4 = 7;
  			iVar1 = 68;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "TORSO_P2_19_8", 16);
  			iVar3 = 19;
  			iVar4 = 8;
  			iVar1 = 75;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "TORSO_P2_19_9", 16);
  			iVar3 = 19;
  			iVar4 = 9;
  			iVar1 = 75;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "TORSO_P2_19_10", 16);
  			iVar3 = 19;
  			iVar4 = 10;
  			iVar1 = 78;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "TORSO_P2_19_11", 16);
  			iVar3 = 19;
  			iVar4 = 11;
  			iVar1 = 75;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "TORSO_P2_19_12", 16);
  			iVar3 = 19;
  			iVar4 = 12;
  			iVar1 = 75;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "TORSO_P2_19_13", 16);
  			iVar3 = 19;
  			iVar4 = 13;
  			iVar1 = 75;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "TORSO_P2_19_14", 16);
  			iVar3 = 19;
  			iVar4 = 14;
  			iVar1 = 78;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "TORSO_P2_19_15", 16);
  			iVar3 = 19;
  			iVar4 = 15;
  			iVar1 = 78;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "TORSO_P2_20_0", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			iVar1 = 40;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "TORSO_P2_20_1", 16);
  			iVar3 = 20;
  			iVar4 = 1;
  			iVar1 = 32;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "TORSO_P2_20_2", 16);
  			iVar3 = 20;
  			iVar4 = 2;
  			iVar1 = 32;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "TORSO_P2_20_3", 16);
  			iVar3 = 20;
  			iVar4 = 3;
  			iVar1 = 32;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "TORSO_P2_20_4", 16);
  			iVar3 = 20;
  			iVar4 = 4;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "TORSO_P2_20_5", 16);
  			iVar3 = 20;
  			iVar4 = 5;
  			iVar1 = 38;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "TORSO_P2_20_6", 16);
  			iVar3 = 20;
  			iVar4 = 6;
  			iVar1 = 35;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "TORSO_P2_20_7", 16);
  			iVar3 = 20;
  			iVar4 = 7;
  			iVar1 = 38;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "TORSO_P2_20_8", 16);
  			iVar3 = 20;
  			iVar4 = 8;
  			iVar1 = 29;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "TORSO_P2_20_9", 16);
  			iVar3 = 20;
  			iVar4 = 9;
  			iVar1 = 32;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "TORSO_P2_20_10", 16);
  			iVar3 = 20;
  			iVar4 = 10;
  			iVar1 = 29;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "TORSO_P2_20_11", 16);
  			iVar3 = 20;
  			iVar4 = 11;
  			iVar1 = 35;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "TORSO_P2_20_12", 16);
  			iVar3 = 20;
  			iVar4 = 12;
  			iVar1 = 32;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "TORSO_P2_20_13", 16);
  			iVar3 = 20;
  			iVar4 = 13;
  			iVar1 = 35;
  			break;
  		
  		case 134:
  			StringCopy(&Var2, "TORSO_P2_20_14", 16);
  			iVar3 = 20;
  			iVar4 = 14;
  			iVar1 = 32;
  			break;
  		
  		case 135:
  			StringCopy(&Var2, "TORSO_P2_20_15", 16);
  			iVar3 = 20;
  			iVar4 = 15;
  			iVar1 = 40;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_279(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 2;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "HAIR_P2_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "HAIR_P2_0_1", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "HAIR_P2_1_0", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "HAIR_P2_2_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "HAIR_P2_3_0", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "HAIR_P2_4_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "HAIR_P2_5_0", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "HAIR_P2_6_0", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "HAIR_P2_7_0", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 9, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_280(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 0;
  	Global_76647[0 /*14*/].f_5 = 2;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 6;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_281(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_299(iParam1);
  			break;
  		
  		case 2:
  			func_298(iParam1);
  			break;
  		
  		case 3:
  			func_294(iParam1);
  			break;
  		
  		case 4:
  			func_293(iParam1);
  			break;
  		
  		case 6:
  			func_292(iParam1);
  			break;
  		
  		case 5:
  			func_291(iParam1);
  			break;
  		
  		case 8:
  			func_290(iParam1);
  			break;
  		
  		case 9:
  			func_289(iParam1);
  			break;
  		
  		case 10:
  			func_288(iParam1);
  			break;
  		
  		case 1:
  			func_287(iParam1);
  			break;
  		
  		case 7:
  			func_286(iParam1);
  			break;
  		
  		case 11:
  			func_285(iParam1);
  			break;
  		
  		case 12:
  			func_284(iParam1);
  			break;
  		
  		case 13:
  			func_283(iParam1);
  			break;
  		
  		case 14:
  			func_282(iParam1);
  			break;
  	}
  }
  
  void func_282(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 14;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 8;
  			break;
  		
  		case 158:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 2;
  			break;
  		
  		case 159:
  			StringCopy(&Var2, "PROPS_P1_EA1_0", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			iVar1 = 4590;
  			iVar5 = 2;
  			break;
  		
  		case 160:
  			StringCopy(&Var2, "PROPS_P1_EA1_1", 16);
  			iVar3 = 1;
  			iVar4 = 1;
  			iVar1 = 4100;
  			iVar5 = 2;
  			break;
  		
  		case 161:
  			StringCopy(&Var2, "PROPS_P1_EA1_2", 16);
  			iVar3 = 1;
  			iVar4 = 2;
  			iVar1 = 3850;
  			iVar5 = 2;
  			break;
  		
  		case 162:
  			StringCopy(&Var2, "PROPS_P1_EA1_3", 16);
  			iVar3 = 1;
  			iVar4 = 3;
  			iVar1 = 1850;
  			iVar5 = 2;
  			break;
  		
  		case 163:
  			StringCopy(&Var2, "PROPS_P1_EA1_4", 16);
  			iVar3 = 1;
  			iVar4 = 4;
  			iVar1 = 5250;
  			iVar5 = 2;
  			break;
  		
  		case 164:
  			StringCopy(&Var2, "PROPS_P1_EA1_5", 16);
  			iVar3 = 1;
  			iVar4 = 5;
  			iVar1 = 2700;
  			iVar5 = 2;
  			break;
  		
  		case 165:
  			StringCopy(&Var2, "PROPS_P1_EA1_6", 16);
  			iVar3 = 1;
  			iVar4 = 6;
  			iVar1 = 3100;
  			iVar5 = 2;
  			break;
  		
  		case 166:
  			StringCopy(&Var2, "PROPS_P1_EA1_7", 16);
  			iVar3 = 1;
  			iVar4 = 7;
  			iVar1 = 5050;
  			iVar5 = 2;
  			break;
  		
  		case 167:
  			StringCopy(&Var2, "PROPS_P1_EA2_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			iVar1 = 2500;
  			iVar5 = 2;
  			break;
  		
  		case 168:
  			StringCopy(&Var2, "PROPS_P1_EA2_1", 16);
  			iVar3 = 2;
  			iVar4 = 1;
  			iVar1 = 1950;
  			iVar5 = 2;
  			break;
  		
  		case 169:
  			StringCopy(&Var2, "PROPS_P1_EA2_2", 16);
  			iVar3 = 2;
  			iVar4 = 2;
  			iVar1 = 3900;
  			iVar5 = 2;
  			break;
  		
  		case 170:
  			StringCopy(&Var2, "PROPS_P1_EA2_3", 16);
  			iVar3 = 2;
  			iVar4 = 3;
  			iVar1 = 3550;
  			iVar5 = 2;
  			break;
  		
  		case 171:
  			StringCopy(&Var2, "PROPS_P1_EA2_4", 16);
  			iVar3 = 2;
  			iVar4 = 4;
  			iVar1 = 4500;
  			iVar5 = 2;
  			break;
  		
  		case 172:
  			StringCopy(&Var2, "PROPS_P1_EA2_5", 16);
  			iVar3 = 2;
  			iVar4 = 5;
  			iVar1 = 2700;
  			iVar5 = 2;
  			break;
  		
  		case 173:
  			StringCopy(&Var2, "PROPS_P1_EA2_6", 16);
  			iVar3 = 2;
  			iVar4 = 6;
  			iVar1 = 3100;
  			iVar5 = 2;
  			break;
  		
  		case 174:
  			StringCopy(&Var2, "PROPS_P1_EA2_7", 16);
  			iVar3 = 2;
  			iVar4 = 7;
  			iVar1 = 2950;
  			iVar5 = 2;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 10;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "PROPS_P1_E1_0", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "PROPS_P1_E1_1", 16);
  			iVar3 = 1;
  			iVar4 = 1;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "PROPS_P1_E1_2", 16);
  			iVar3 = 1;
  			iVar4 = 2;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "PROPS_P1_E1_3", 16);
  			iVar3 = 1;
  			iVar4 = 3;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "PROPS_P1_E1_4", 16);
  			iVar3 = 1;
  			iVar4 = 4;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "PROPS_P1_E1_5", 16);
  			iVar3 = 1;
  			iVar4 = 5;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "PROPS_P1_E1_6", 16);
  			iVar3 = 1;
  			iVar4 = 6;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "PROPS_P1_E1_7", 16);
  			iVar3 = 1;
  			iVar4 = 7;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "PROPS_P1_E1_8", 16);
  			iVar3 = 1;
  			iVar4 = 8;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "PROPS_P1_E1_9", 16);
  			iVar3 = 1;
  			iVar4 = 9;
  			iVar1 = 75;
  			iVar5 = 10;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "PROPS_P1_E2", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			iVar5 = 10;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "PROPS_P1_E3", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			iVar1 = 110;
  			iVar5 = 10;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "PROPS_P1_E4_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			iVar1 = 120;
  			iVar5 = 10;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "PROPS_P1_E4_1", 16);
  			iVar3 = 4;
  			iVar4 = 1;
  			iVar1 = 128;
  			iVar5 = 10;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "PROPS_P1_E4_2", 16);
  			iVar3 = 4;
  			iVar4 = 2;
  			iVar1 = 130;
  			iVar5 = 10;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "PROPS_P1_E4_3", 16);
  			iVar3 = 4;
  			iVar4 = 3;
  			iVar1 = 140;
  			iVar5 = 10;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "PROPS_P1_E4_4", 16);
  			iVar3 = 4;
  			iVar4 = 4;
  			iVar1 = 145;
  			iVar5 = 10;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "PROPS_P1_E4_5", 16);
  			iVar3 = 4;
  			iVar4 = 5;
  			iVar1 = 135;
  			iVar5 = 10;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "PROPS_P1_E4_6", 16);
  			iVar3 = 4;
  			iVar4 = 6;
  			iVar1 = 138;
  			iVar5 = 10;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "PROPS_P1_E5_0", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			iVar1 = 110;
  			iVar5 = 10;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "PROPS_P1_E5_1", 16);
  			iVar3 = 5;
  			iVar4 = 1;
  			iVar1 = 112;
  			iVar5 = 10;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "PROPS_P1_E5_2", 16);
  			iVar3 = 5;
  			iVar4 = 2;
  			iVar1 = 115;
  			iVar5 = 10;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "PROPS_P1_E5_3", 16);
  			iVar3 = 5;
  			iVar4 = 3;
  			iVar1 = 118;
  			iVar5 = 10;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "PROPS_P1_E5_4", 16);
  			iVar3 = 5;
  			iVar4 = 4;
  			iVar1 = 120;
  			iVar5 = 10;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "PROPS_P1_E5_5", 16);
  			iVar3 = 5;
  			iVar4 = 5;
  			iVar1 = 125;
  			iVar5 = 10;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "PROPS_P1_E5_6", 16);
  			iVar3 = 5;
  			iVar4 = 6;
  			iVar1 = 128;
  			iVar5 = 10;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "PROPS_P1_E5_7", 16);
  			iVar3 = 5;
  			iVar4 = 7;
  			iVar1 = 138;
  			iVar5 = 10;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "PROPS_P1_E5_8", 16);
  			iVar3 = 5;
  			iVar4 = 8;
  			iVar1 = 140;
  			iVar5 = 10;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "PROPS_P1_E5_9", 16);
  			iVar3 = 5;
  			iVar4 = 9;
  			iVar1 = 155;
  			iVar5 = 10;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "PROPS_P1_E6_0", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			iVar1 = 55;
  			iVar5 = 10;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "PROPS_P1_E6_1", 16);
  			iVar3 = 6;
  			iVar4 = 1;
  			iVar1 = 55;
  			iVar5 = 10;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "PROPS_P1_E6_2", 16);
  			iVar3 = 6;
  			iVar4 = 2;
  			iVar1 = 58;
  			iVar5 = 10;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "PROPS_P1_E6_3", 16);
  			iVar3 = 6;
  			iVar4 = 3;
  			iVar1 = 58;
  			iVar5 = 10;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "PROPS_P1_E6_4", 16);
  			iVar3 = 6;
  			iVar4 = 4;
  			iVar1 = 60;
  			iVar5 = 10;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "PROPS_P1_E6_5", 16);
  			iVar3 = 6;
  			iVar4 = 5;
  			iVar1 = 62;
  			iVar5 = 10;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "PROPS_P1_E6_6", 16);
  			iVar3 = 6;
  			iVar4 = 6;
  			iVar1 = 65;
  			iVar5 = 10;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "PROPS_P1_E6_7", 16);
  			iVar3 = 6;
  			iVar4 = 7;
  			iVar1 = 68;
  			iVar5 = 10;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "PROPS_P1_E6_8", 16);
  			iVar3 = 6;
  			iVar4 = 8;
  			iVar1 = 68;
  			iVar5 = 10;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "PROPS_P1_E6_9", 16);
  			iVar3 = 6;
  			iVar4 = 9;
  			iVar1 = 72;
  			iVar5 = 10;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "PROPS_P1_E7_0", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			iVar1 = 145;
  			iVar5 = 10;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "PROPS_P1_E7_1", 16);
  			iVar3 = 7;
  			iVar4 = 1;
  			iVar1 = 149;
  			iVar5 = 10;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "PROPS_P1_E7_2", 16);
  			iVar3 = 7;
  			iVar4 = 2;
  			iVar1 = 139;
  			iVar5 = 10;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "PROPS_P1_E7_3", 16);
  			iVar3 = 7;
  			iVar4 = 3;
  			iVar1 = 149;
  			iVar5 = 10;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "PROPS_P1_E7_4", 16);
  			iVar3 = 7;
  			iVar4 = 4;
  			iVar1 = 135;
  			iVar5 = 10;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "PROPS_P1_E7_5", 16);
  			iVar3 = 7;
  			iVar4 = 5;
  			iVar1 = 138;
  			iVar5 = 10;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "PROPS_P1_E7_6", 16);
  			iVar3 = 7;
  			iVar4 = 6;
  			iVar1 = 140;
  			iVar5 = 10;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "PROPS_P1_E7_7", 16);
  			iVar3 = 7;
  			iVar4 = 7;
  			iVar1 = 145;
  			iVar5 = 10;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "PROPS_P1_E7_8", 16);
  			iVar3 = 7;
  			iVar4 = 8;
  			iVar1 = 159;
  			iVar5 = 10;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "PROPS_P1_E7_9", 16);
  			iVar3 = 7;
  			iVar4 = 9;
  			iVar1 = 155;
  			iVar5 = 10;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "PROPS_P1_E8_0", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			iVar1 = 198;
  			iVar5 = 10;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "PROPS_P1_E8_1", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			iVar1 = 210;
  			iVar5 = 10;
  			break;
  		
  		case 134:
  			StringCopy(&Var2, "PROPS_P1_E8_2", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			iVar1 = 185;
  			iVar5 = 10;
  			break;
  		
  		case 135:
  			StringCopy(&Var2, "PROPS_P1_E8_3", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			iVar1 = 220;
  			iVar5 = 10;
  			break;
  		
  		case 136:
  			StringCopy(&Var2, "PROPS_P1_E8_4", 16);
  			iVar3 = 8;
  			iVar4 = 4;
  			iVar1 = 190;
  			iVar5 = 10;
  			break;
  		
  		case 137:
  			StringCopy(&Var2, "PROPS_P1_E8_5", 16);
  			iVar3 = 8;
  			iVar4 = 5;
  			iVar1 = 200;
  			iVar5 = 10;
  			break;
  		
  		case 138:
  			StringCopy(&Var2, "PROPS_P1_E8_6", 16);
  			iVar3 = 8;
  			iVar4 = 6;
  			iVar1 = 208;
  			iVar5 = 10;
  			break;
  		
  		case 139:
  			StringCopy(&Var2, "PROPS_P1_E8_7", 16);
  			iVar3 = 8;
  			iVar4 = 7;
  			iVar1 = 210;
  			iVar5 = 10;
  			break;
  		
  		case 140:
  			StringCopy(&Var2, "PROPS_P1_E9_0", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			iVar1 = 165;
  			iVar5 = 10;
  			break;
  		
  		case 141:
  			StringCopy(&Var2, "PROPS_P1_E9_1", 16);
  			iVar3 = 9;
  			iVar4 = 1;
  			iVar1 = 185;
  			iVar5 = 10;
  			break;
  		
  		case 142:
  			StringCopy(&Var2, "PROPS_P1_E9_2", 16);
  			iVar3 = 9;
  			iVar4 = 2;
  			iVar1 = 190;
  			iVar5 = 10;
  			break;
  		
  		case 143:
  			StringCopy(&Var2, "PROPS_P1_E9_3", 16);
  			iVar3 = 9;
  			iVar4 = 3;
  			iVar1 = 178;
  			iVar5 = 10;
  			break;
  		
  		case 144:
  			StringCopy(&Var2, "PROPS_P1_E9_4", 16);
  			iVar3 = 9;
  			iVar4 = 4;
  			iVar1 = 180;
  			iVar5 = 10;
  			break;
  		
  		case 145:
  			StringCopy(&Var2, "PROPS_P1_E9_5", 16);
  			iVar3 = 9;
  			iVar4 = 5;
  			iVar1 = 168;
  			iVar5 = 10;
  			break;
  		
  		case 146:
  			StringCopy(&Var2, "PROPS_P1_E9_6", 16);
  			iVar3 = 9;
  			iVar4 = 6;
  			iVar1 = 170;
  			iVar5 = 10;
  			break;
  		
  		case 147:
  			StringCopy(&Var2, "PROPS_P1_E9_7", 16);
  			iVar3 = 9;
  			iVar4 = 7;
  			iVar1 = 175;
  			iVar5 = 10;
  			break;
  		
  		case 148:
  			StringCopy(&Var2, "PROPS_P1_E9_8", 16);
  			iVar3 = 9;
  			iVar4 = 8;
  			iVar1 = 170;
  			iVar5 = 10;
  			break;
  		
  		case 149:
  			StringCopy(&Var2, "PROPS_P1_E9_9", 16);
  			iVar3 = 9;
  			iVar4 = 9;
  			iVar1 = 178;
  			iVar5 = 10;
  			break;
  		
  		case 150:
  			StringCopy(&Var2, "PROPS_P1_E10_0", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			iVar1 = 140;
  			iVar5 = 10;
  			break;
  		
  		case 151:
  			StringCopy(&Var2, "PROPS_P1_E10_1", 16);
  			iVar3 = 10;
  			iVar4 = 1;
  			iVar1 = 145;
  			iVar5 = 10;
  			break;
  		
  		case 152:
  			StringCopy(&Var2, "PROPS_P1_E10_2", 16);
  			iVar3 = 10;
  			iVar4 = 2;
  			iVar1 = 150;
  			iVar5 = 10;
  			break;
  		
  		case 153:
  			StringCopy(&Var2, "PROPS_P1_E10_3", 16);
  			iVar3 = 10;
  			iVar4 = 3;
  			iVar1 = 165;
  			iVar5 = 10;
  			break;
  		
  		case 154:
  			StringCopy(&Var2, "PROPS_P1_E10_4", 16);
  			iVar3 = 10;
  			iVar4 = 4;
  			iVar1 = 168;
  			iVar5 = 10;
  			break;
  		
  		case 155:
  			StringCopy(&Var2, "PROPS_P1_E10_5", 16);
  			iVar3 = 10;
  			iVar4 = 5;
  			iVar1 = 178;
  			iVar5 = 10;
  			break;
  		
  		case 156:
  			StringCopy(&Var2, "PROPS_P1_E10_6", 16);
  			iVar3 = 10;
  			iVar4 = 6;
  			iVar1 = 160;
  			iVar5 = 10;
  			break;
  		
  		case 157:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			iVar1 = 100;
  			iVar5 = 10;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "PROPS_P1_H0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 320;
  			iVar5 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "PROPS_P1_H3_0", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 1;
  			iVar5 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 2;
  			iVar5 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 3;
  			iVar5 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 4;
  			iVar5 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 5;
  			iVar5 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 6;
  			iVar5 = 0;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 7;
  			iVar5 = 0;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 8;
  			iVar5 = 0;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			iVar1 = 270;
  			iVar5 = 0;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			iVar1 = 270;
  			iVar5 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			iVar1 = 200;
  			iVar5 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
  			iVar3 = 9;
  			iVar4 = 1;
  			iVar1 = 200;
  			iVar5 = 0;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			iVar1 = 350;
  			iVar5 = 0;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
  			iVar3 = 10;
  			iVar4 = 1;
  			iVar1 = 350;
  			iVar5 = 0;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			iVar1 = 450;
  			iVar5 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			iVar1 = 500;
  			iVar5 = 0;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
  			iVar3 = 12;
  			iVar4 = 1;
  			iVar1 = 500;
  			iVar5 = 0;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			iVar1 = 50;
  			iVar5 = 0;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
  			iVar3 = 13;
  			iVar4 = 1;
  			iVar1 = 50;
  			iVar5 = 0;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			iVar1 = 99;
  			iVar5 = 0;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
  			iVar3 = 14;
  			iVar4 = 1;
  			iVar1 = 99;
  			iVar5 = 0;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
  			iVar3 = 14;
  			iVar4 = 2;
  			iVar1 = 99;
  			iVar5 = 0;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "PROPS_P1_H19_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "PROPS_P1_H19_1", 16);
  			iVar3 = 16;
  			iVar4 = 1;
  			iVar5 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "PROPS_P1_H19_2", 16);
  			iVar3 = 16;
  			iVar4 = 2;
  			iVar5 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "PROPS_P1_H19_3", 16);
  			iVar3 = 16;
  			iVar4 = 3;
  			iVar5 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "PROPS_P1_H19_4", 16);
  			iVar3 = 16;
  			iVar4 = 4;
  			iVar5 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "PROPS_P1_H19_5", 16);
  			iVar3 = 16;
  			iVar4 = 5;
  			iVar5 = 0;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "PROPS_P1_H19_6", 16);
  			iVar3 = 16;
  			iVar4 = 6;
  			iVar5 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "PROPS_P1_H19_7", 16);
  			iVar3 = 16;
  			iVar4 = 7;
  			iVar5 = 0;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "PROPS_P1_H19_8", 16);
  			iVar3 = 16;
  			iVar4 = 8;
  			iVar5 = 0;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "PROPS_P1_H19_9", 16);
  			iVar3 = 16;
  			iVar4 = 9;
  			iVar5 = 0;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "PROPS_P1_H19_10", 16);
  			iVar3 = 16;
  			iVar4 = 10;
  			iVar5 = 0;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "PROPS_P1_H19_11", 16);
  			iVar3 = 16;
  			iVar4 = 11;
  			iVar5 = 0;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "PROPS_P1_H19_12", 16);
  			iVar3 = 16;
  			iVar4 = 12;
  			iVar5 = 0;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "PROPS_P1_H19_13", 16);
  			iVar3 = 16;
  			iVar4 = 13;
  			iVar5 = 0;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "PROPS_P1_H19_14", 16);
  			iVar3 = 16;
  			iVar4 = 14;
  			iVar5 = 0;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "PROPS_P1_H19_15", 16);
  			iVar3 = 16;
  			iVar4 = 15;
  			iVar5 = 0;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 1;
  			iVar5 = 0;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 2;
  			iVar5 = 0;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 3;
  			iVar5 = 0;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 4;
  			iVar5 = 0;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 5;
  			iVar5 = 0;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "PROPS_P1_H19_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			iVar1 = 30;
  			iVar5 = 0;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "PROPS_P1_H19_1", 16);
  			iVar3 = 19;
  			iVar4 = 1;
  			iVar1 = 30;
  			iVar5 = 0;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "PROPS_P1_H19_2", 16);
  			iVar3 = 19;
  			iVar4 = 2;
  			iVar1 = 32;
  			iVar5 = 0;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "PROPS_P1_H19_3", 16);
  			iVar3 = 19;
  			iVar4 = 3;
  			iVar1 = 35;
  			iVar5 = 0;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "PROPS_P1_H19_4", 16);
  			iVar3 = 19;
  			iVar4 = 4;
  			iVar1 = 38;
  			iVar5 = 0;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "PROPS_P1_H19_5", 16);
  			iVar3 = 19;
  			iVar4 = 5;
  			iVar1 = 42;
  			iVar5 = 0;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "PROPS_P1_H19_6", 16);
  			iVar3 = 19;
  			iVar4 = 6;
  			iVar1 = 42;
  			iVar5 = 0;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "PROPS_P1_H19_7", 16);
  			iVar3 = 19;
  			iVar4 = 7;
  			iVar1 = 40;
  			iVar5 = 0;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "PROPS_P1_H19_8", 16);
  			iVar3 = 19;
  			iVar4 = 8;
  			iVar1 = 45;
  			iVar5 = 0;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "PROPS_P1_H19_9", 16);
  			iVar3 = 19;
  			iVar4 = 9;
  			iVar1 = 48;
  			iVar5 = 0;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "PROPS_P1_H19_10", 16);
  			iVar3 = 19;
  			iVar4 = 10;
  			iVar1 = 25;
  			iVar5 = 0;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "PROPS_P1_H19_11", 16);
  			iVar3 = 19;
  			iVar4 = 11;
  			iVar1 = 25;
  			iVar5 = 0;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "PROPS_P1_H19_12", 16);
  			iVar3 = 19;
  			iVar4 = 12;
  			iVar1 = 28;
  			iVar5 = 0;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "PROPS_P1_H19_13", 16);
  			iVar3 = 19;
  			iVar4 = 13;
  			iVar1 = 28;
  			iVar5 = 0;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "PROPS_P1_H19_14", 16);
  			iVar3 = 19;
  			iVar4 = 14;
  			iVar1 = 30;
  			iVar5 = 0;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "PROPS_P1_H19_15", 16);
  			iVar3 = 19;
  			iVar4 = 15;
  			iVar1 = 35;
  			iVar5 = 0;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 175, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_283(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 13;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 9, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_284(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 12;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "OUTFIT_P1_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "OUTFIT_P1_2", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "OUTFIT_P1_4", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "OUTFIT_P1_7", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "OUTFIT_P1_10", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "OUTFIT_P1_11", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "OUTFIT_P1_12", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "OUTFIT_P1_13", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "OUTFIT_P1_15", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "OUTFIT_P1_16", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "OUTFIT_P1_17", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 10000;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "OUTFIT_P1_18", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "OUTFIT_P1_19", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "OUTFIT_P1_20", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "OUTFIT_P1_21", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "OUTFIT_P1_22", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "OUTFIT_P1_23", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "OUTFIT_P1_24", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "OUTFIT_P1_25", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "OUTFIT_P1_26", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "OUTFIT_P1_27", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "OUTFIT_P1_28", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4000;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "OUTFIT_P1_29", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4500;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "OUTFIT_P1_30", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4500;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "OUTFIT_P1_31", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4650;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "OUTFIT_P1_32", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4900;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "OUTFIT_P1_33", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5000;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "OUTFIT_P1_34", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4750;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "OUTFIT_P1_35", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4750;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "OUTFIT_P1_36", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5200;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "OUTFIT_P1_37", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5200;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "OUTFIT_P1_38", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5500;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "OUTFIT_P1_39", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "OUTFIT_P1_40", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "OUTFIT_P1_41", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "OUTFIT_P1_42", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "OUTFIT_P1_43", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "OUTFIT_P1_47", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 3000;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "OUTFIT_P1_48", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 3000;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "OUTFIT_P1_49", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 3000;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "OUTFIT_P1_10", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "OUTFIT_P1_50", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "OUTFIT_P1_51", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "OUTFIT_P1_52", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "OUTFIT_P1_53", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "OUTFIT_P1_54", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 47, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_285(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 11;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 1;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 2;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 3;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "JBIB_P1_1_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "JBIB_P1_1_1", 16);
  			iVar3 = 2;
  			iVar4 = 1;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "JBIB_P1_1_2", 16);
  			iVar3 = 2;
  			iVar4 = 2;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "JBIB_P1_1_3", 16);
  			iVar3 = 2;
  			iVar4 = 3;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "JBIB_P1_3_0", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "JBIB_P1_3_1", 16);
  			iVar3 = 3;
  			iVar4 = 1;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "JBIB_P1_3_2", 16);
  			iVar3 = 3;
  			iVar4 = 2;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "JBIB_P1_3_3", 16);
  			iVar3 = 3;
  			iVar4 = 3;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "JBIB_P1_3_4", 16);
  			iVar3 = 3;
  			iVar4 = 4;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "JBIB_P1_3_5", 16);
  			iVar3 = 3;
  			iVar4 = 5;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "JBIB_P1_3_6", 16);
  			iVar3 = 3;
  			iVar4 = 6;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "JBIB_P1_3_7", 16);
  			iVar3 = 3;
  			iVar4 = 7;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "JBIB_P1_3_8", 16);
  			iVar3 = 3;
  			iVar4 = 8;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "JBIB_P1_3_9", 16);
  			iVar3 = 3;
  			iVar4 = 9;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "JBIB_P1_3_10", 16);
  			iVar3 = 3;
  			iVar4 = 10;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "JBIB_P1_3_11", 16);
  			iVar3 = 3;
  			iVar4 = 11;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "JBIB_P1_3_12", 16);
  			iVar3 = 3;
  			iVar4 = 12;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "JBIB_P1_3_13", 16);
  			iVar3 = 3;
  			iVar4 = 13;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "JBIB_P1_3_14", 16);
  			iVar3 = 3;
  			iVar4 = 14;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "JBIB_P1_3_15", 16);
  			iVar3 = 3;
  			iVar4 = 15;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "JBIB_P1_3_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "JBIB_P1_3_1", 16);
  			iVar3 = 4;
  			iVar4 = 1;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "JBIB_P1_3_2", 16);
  			iVar3 = 4;
  			iVar4 = 2;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "JBIB_P1_3_3", 16);
  			iVar3 = 4;
  			iVar4 = 3;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "JBIB_P1_3_4", 16);
  			iVar3 = 4;
  			iVar4 = 4;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "JBIB_P1_3_5", 16);
  			iVar3 = 4;
  			iVar4 = 5;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "JBIB_P1_3_6", 16);
  			iVar3 = 4;
  			iVar4 = 6;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "JBIB_P1_3_7", 16);
  			iVar3 = 4;
  			iVar4 = 7;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "JBIB_P1_3_8", 16);
  			iVar3 = 4;
  			iVar4 = 8;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "JBIB_P1_3_9", 16);
  			iVar3 = 4;
  			iVar4 = 9;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "JBIB_P1_3_10", 16);
  			iVar3 = 4;
  			iVar4 = 10;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "JBIB_P1_3_11", 16);
  			iVar3 = 4;
  			iVar4 = 11;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "JBIB_P1_3_12", 16);
  			iVar3 = 4;
  			iVar4 = 12;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "JBIB_P1_3_13", 16);
  			iVar3 = 4;
  			iVar4 = 13;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "JBIB_P1_3_14", 16);
  			iVar3 = 4;
  			iVar4 = 14;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "JBIB_P1_3_15", 16);
  			iVar3 = 4;
  			iVar4 = 15;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "JBIB_P1_5_0", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "JBIB_P1_6_0", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "JBIB_P1_6_1", 16);
  			iVar3 = 6;
  			iVar4 = 1;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "JBIB_P1_7_0", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "JBIB_P1_8_0", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "JBIB_P1_9_0", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "JBIB_P1_10_0", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "JBIB_P1_10_1", 16);
  			iVar3 = 10;
  			iVar4 = 1;
  			iVar1 = 48;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "JBIB_P1_10_2", 16);
  			iVar3 = 10;
  			iVar4 = 2;
  			iVar1 = 35;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "JBIB_P1_10_3", 16);
  			iVar3 = 10;
  			iVar4 = 3;
  			iVar1 = 32;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "JBIB_P1_10_4", 16);
  			iVar3 = 10;
  			iVar4 = 4;
  			iVar1 = 35;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "JBIB_P1_10_5", 16);
  			iVar3 = 10;
  			iVar4 = 5;
  			iVar1 = 48;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "JBIB_P1_10_6", 16);
  			iVar3 = 10;
  			iVar4 = 6;
  			iVar1 = 52;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "JBIB_P1_10_7", 16);
  			iVar3 = 10;
  			iVar4 = 7;
  			iVar1 = 38;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "JBIB_P1_10_8", 16);
  			iVar3 = 10;
  			iVar4 = 8;
  			iVar1 = 42;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "JBIB_P1_10_9", 16);
  			iVar3 = 10;
  			iVar4 = 9;
  			iVar1 = 38;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "JBIB_P1_10_10", 16);
  			iVar3 = 10;
  			iVar4 = 10;
  			iVar1 = 35;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "JBIB_P1_10_11", 16);
  			iVar3 = 10;
  			iVar4 = 11;
  			iVar1 = 48;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "JBIB_P1_10_12", 16);
  			iVar3 = 10;
  			iVar4 = 12;
  			iVar1 = 42;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "JBIB_P1_10_13", 16);
  			iVar3 = 10;
  			iVar4 = 13;
  			iVar1 = 45;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "JBIB_P1_10_14", 16);
  			iVar3 = 10;
  			iVar4 = 14;
  			iVar1 = 45;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "JBIB_P1_10_15", 16);
  			iVar3 = 10;
  			iVar4 = 15;
  			iVar1 = 49;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 63, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_286(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 7;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_287(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 1;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "BERD_P1_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "BERD_P1_1_0", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "BERD_P1_2_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "BERD_P1_3_0", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "BERD_P1_4_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 5, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_288(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 10;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 1;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 2;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 3;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 4;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 5;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 1;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 2;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 3;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 4;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 5;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 6;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 1;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 2;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 3;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 4;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 5;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 6;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 7;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 8;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 9;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 10;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 11;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 12;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 13;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 14;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 15;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 1;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 2;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 3;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 4;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 5;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 6;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 1;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 2;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 3;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 4;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 5;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 6;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 7;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 53, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_289(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 9;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			iVar1 = 125;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
  			iVar3 = 5;
  			iVar4 = 1;
  			iVar1 = 150;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
  			iVar3 = 5;
  			iVar4 = 2;
  			iVar1 = 175;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
  			iVar3 = 5;
  			iVar4 = 3;
  			iVar1 = 85;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
  			iVar3 = 5;
  			iVar4 = 4;
  			iVar1 = 150;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
  			iVar3 = 5;
  			iVar4 = 5;
  			iVar1 = 175;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 12, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_290(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 8;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "SPEC_P1_9_0", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "SPEC_P1_11_0", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			iVar1 = 195;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "SPEC_P1_11_1", 16);
  			iVar3 = 11;
  			iVar4 = 1;
  			iVar1 = 195;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "SPEC_P1_11_2", 16);
  			iVar3 = 11;
  			iVar4 = 2;
  			iVar1 = 195;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "SPEC_P1_11_3", 16);
  			iVar3 = 11;
  			iVar4 = 3;
  			iVar1 = 250;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "SPEC_P1_11_4", 16);
  			iVar3 = 11;
  			iVar4 = 4;
  			iVar1 = 250;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "SPEC_P1_11_5", 16);
  			iVar3 = 11;
  			iVar4 = 5;
  			iVar1 = 250;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "SPEC_P1_11_6", 16);
  			iVar3 = 11;
  			iVar4 = 6;
  			iVar1 = 195;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "SPEC_P1_11_7", 16);
  			iVar3 = 11;
  			iVar4 = 7;
  			iVar1 = 250;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "SPEC_P1_11_8", 16);
  			iVar3 = 11;
  			iVar4 = 8;
  			iVar1 = 250;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "SPEC_P1_11_9", 16);
  			iVar3 = 11;
  			iVar4 = 9;
  			iVar1 = 250;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "SPEC_P1_11_10", 16);
  			iVar3 = 11;
  			iVar4 = 10;
  			iVar1 = 250;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "SPEC_P1_11_11", 16);
  			iVar3 = 11;
  			iVar4 = 11;
  			iVar1 = 195;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "SPEC_P1_11_12", 16);
  			iVar3 = 11;
  			iVar4 = 12;
  			iVar1 = 250;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "SPEC_P1_15_0", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "SPEC_P1_15_1", 16);
  			iVar3 = 15;
  			iVar4 = 1;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "SPEC_P1_15_2", 16);
  			iVar3 = 15;
  			iVar4 = 2;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "SPEC_P1_15_3", 16);
  			iVar3 = 15;
  			iVar4 = 3;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "SPEC_P1_15_4", 16);
  			iVar3 = 15;
  			iVar4 = 4;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "SPEC_P1_15_5", 16);
  			iVar3 = 15;
  			iVar4 = 5;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "SPEC_P1_15_6", 16);
  			iVar3 = 15;
  			iVar4 = 6;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "SPEC_P1_15_7", 16);
  			iVar3 = 15;
  			iVar4 = 7;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "SPEC_P1_15_8", 16);
  			iVar3 = 15;
  			iVar4 = 8;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "SPEC_P1_15_9", 16);
  			iVar3 = 15;
  			iVar4 = 9;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "SPEC_P1_15_10", 16);
  			iVar3 = 15;
  			iVar4 = 10;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "SPEC_P1_15_11", 16);
  			iVar3 = 15;
  			iVar4 = 11;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "SPEC_P1_15_12", 16);
  			iVar3 = 15;
  			iVar4 = 12;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "SPEC_P1_15_13", 16);
  			iVar3 = 15;
  			iVar4 = 13;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "SPEC_P1_15_14", 16);
  			iVar3 = 15;
  			iVar4 = 14;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "SPEC_P1_15_15", 16);
  			iVar3 = 15;
  			iVar4 = 15;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "SPEC_P1_15_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "SPEC_P1_15_1", 16);
  			iVar3 = 16;
  			iVar4 = 1;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "SPEC_P1_15_2", 16);
  			iVar3 = 16;
  			iVar4 = 2;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "SPEC_P1_15_3", 16);
  			iVar3 = 16;
  			iVar4 = 3;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "SPEC_P1_15_4", 16);
  			iVar3 = 16;
  			iVar4 = 4;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "SPEC_P1_15_5", 16);
  			iVar3 = 16;
  			iVar4 = 5;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "SPEC_P1_15_6", 16);
  			iVar3 = 16;
  			iVar4 = 6;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "SPEC_P1_15_7", 16);
  			iVar3 = 16;
  			iVar4 = 7;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "SPEC_P1_15_8", 16);
  			iVar3 = 16;
  			iVar4 = 8;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "SPEC_P1_15_9", 16);
  			iVar3 = 16;
  			iVar4 = 9;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "SPEC_P1_15_10", 16);
  			iVar3 = 16;
  			iVar4 = 10;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "SPEC_P1_15_11", 16);
  			iVar3 = 16;
  			iVar4 = 11;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "SPEC_P1_15_12", 16);
  			iVar3 = 16;
  			iVar4 = 12;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "SPEC_P1_15_13", 16);
  			iVar3 = 16;
  			iVar4 = 13;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "SPEC_P1_15_14", 16);
  			iVar3 = 16;
  			iVar4 = 14;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "SPEC_P1_15_15", 16);
  			iVar3 = 16;
  			iVar4 = 15;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "SPEC_P1_15_0", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "SPEC_P1_15_1", 16);
  			iVar3 = 17;
  			iVar4 = 1;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "SPEC_P1_15_2", 16);
  			iVar3 = 17;
  			iVar4 = 2;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "SPEC_P1_15_3", 16);
  			iVar3 = 17;
  			iVar4 = 3;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "SPEC_P1_15_4", 16);
  			iVar3 = 17;
  			iVar4 = 4;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "SPEC_P1_15_5", 16);
  			iVar3 = 17;
  			iVar4 = 5;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "SPEC_P1_15_6", 16);
  			iVar3 = 17;
  			iVar4 = 6;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "SPEC_P1_15_7", 16);
  			iVar3 = 17;
  			iVar4 = 7;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "SPEC_P1_15_8", 16);
  			iVar3 = 17;
  			iVar4 = 8;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "SPEC_P1_15_9", 16);
  			iVar3 = 17;
  			iVar4 = 9;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "SPEC_P1_15_10", 16);
  			iVar3 = 17;
  			iVar4 = 10;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "SPEC_P1_15_11", 16);
  			iVar3 = 17;
  			iVar4 = 11;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "SPEC_P1_15_12", 16);
  			iVar3 = 17;
  			iVar4 = 12;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "SPEC_P1_15_13", 16);
  			iVar3 = 17;
  			iVar4 = 13;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "SPEC_P1_15_14", 16);
  			iVar3 = 17;
  			iVar4 = 14;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "SPEC_P1_15_15", 16);
  			iVar3 = 17;
  			iVar4 = 15;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 77, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_291(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 5;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_292(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 6;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "FEET_P1_00_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "FEET_P1_00_1", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			iVar1 = 80;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "FEET_P1_00_2", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			iVar1 = 80;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "FEET_P1_00_3", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			iVar1 = 89;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "FEET_P1_00_4", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			iVar1 = 45;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "FEET_P1_00_5", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			iVar1 = 35;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "FEET_P1_00_6", 16);
  			iVar3 = 0;
  			iVar4 = 6;
  			iVar1 = 89;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "FEET_P1_00_7", 16);
  			iVar3 = 0;
  			iVar4 = 7;
  			iVar1 = 95;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "FEET_P1_00_8", 16);
  			iVar3 = 0;
  			iVar4 = 8;
  			iVar1 = 115;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "FEET_P1_00_9", 16);
  			iVar3 = 0;
  			iVar4 = 9;
  			iVar1 = 40;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "FEET_P1_00_10", 16);
  			iVar3 = 0;
  			iVar4 = 10;
  			iVar1 = 145;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "FEET_P1_00_11", 16);
  			iVar3 = 0;
  			iVar4 = 11;
  			iVar1 = 145;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "FEET_P1_01_0", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "FEET_P1_06_0", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "FEET_P1_06_1", 16);
  			iVar3 = 6;
  			iVar4 = 1;
  			iVar1 = 180;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "FEET_P1_06_2", 16);
  			iVar3 = 6;
  			iVar4 = 2;
  			iVar1 = 80;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "FEET_P1_06_3", 16);
  			iVar3 = 6;
  			iVar4 = 3;
  			iVar1 = 200;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "FEET_P1_06_4", 16);
  			iVar3 = 6;
  			iVar4 = 4;
  			iVar1 = 220;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "FEET_P1_06_5", 16);
  			iVar3 = 6;
  			iVar4 = 5;
  			iVar1 = 235;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "FEET_P1_08_0", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			iVar1 = 870;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "FEET_P1_08_1", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			iVar1 = 870;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "FEET_P1_08_2", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			iVar1 = 870;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "FEET_P1_08_3", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			iVar1 = 1275;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "FEET_P1_08_4", 16);
  			iVar3 = 8;
  			iVar4 = 4;
  			iVar1 = 1275;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "FEET_P1_08_5", 16);
  			iVar3 = 8;
  			iVar4 = 5;
  			iVar1 = 1275;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "FEET_P1_08_6", 16);
  			iVar3 = 8;
  			iVar4 = 6;
  			iVar1 = 1275;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "FEET_P1_08_7", 16);
  			iVar3 = 8;
  			iVar4 = 7;
  			iVar1 = 1275;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "FEET_P1_08_8", 16);
  			iVar3 = 8;
  			iVar4 = 8;
  			iVar1 = 1275;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "FEET_P1_10_0", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "FEET_P1_11_0", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "FEET_P1_11_1", 16);
  			iVar3 = 11;
  			iVar4 = 1;
  			iVar1 = 50;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "FEET_P1_11_2", 16);
  			iVar3 = 11;
  			iVar4 = 2;
  			iVar1 = 50;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "FEET_P1_11_3", 16);
  			iVar3 = 11;
  			iVar4 = 3;
  			iVar1 = 50;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "FEET_P1_11_4", 16);
  			iVar3 = 11;
  			iVar4 = 4;
  			iVar1 = 50;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "FEET_P1_11_5", 16);
  			iVar3 = 11;
  			iVar4 = 5;
  			iVar1 = 50;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "FEET_P1_11_6", 16);
  			iVar3 = 11;
  			iVar4 = 6;
  			iVar1 = 50;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "FEET_P1_11_7", 16);
  			iVar3 = 11;
  			iVar4 = 7;
  			iVar1 = 50;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "FEET_P1_11_8", 16);
  			iVar3 = 11;
  			iVar4 = 8;
  			iVar1 = 50;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "FEET_P1_11_9", 16);
  			iVar3 = 11;
  			iVar4 = 9;
  			iVar1 = 50;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "FEET_P1_11_10", 16);
  			iVar3 = 11;
  			iVar4 = 10;
  			iVar1 = 50;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "FEET_P1_11_11", 16);
  			iVar3 = 11;
  			iVar4 = 11;
  			iVar1 = 50;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "FEET_P1_11_12", 16);
  			iVar3 = 11;
  			iVar4 = 12;
  			iVar1 = 50;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "FEET_P1_11_13", 16);
  			iVar3 = 11;
  			iVar4 = 13;
  			iVar1 = 50;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "FEET_P1_11_14", 16);
  			iVar3 = 11;
  			iVar4 = 14;
  			iVar1 = 50;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "FEET_P1_11_15", 16);
  			iVar3 = 11;
  			iVar4 = 15;
  			iVar1 = 50;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "FEET_P1_12_0", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "FEET_P1_12_1", 16);
  			iVar3 = 12;
  			iVar4 = 1;
  			iVar1 = 25;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "FEET_P1_12_2", 16);
  			iVar3 = 12;
  			iVar4 = 2;
  			iVar1 = 20;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "FEET_P1_12_3", 16);
  			iVar3 = 12;
  			iVar4 = 3;
  			iVar1 = 24;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "FEET_P1_12_4", 16);
  			iVar3 = 12;
  			iVar4 = 4;
  			iVar1 = 25;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "FEET_P1_12_5", 16);
  			iVar3 = 12;
  			iVar4 = 5;
  			iVar1 = 27;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "FEET_P1_12_6", 16);
  			iVar3 = 12;
  			iVar4 = 6;
  			iVar1 = 29;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "FEET_P1_12_7", 16);
  			iVar3 = 12;
  			iVar4 = 7;
  			iVar1 = 27;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "FEET_P1_12_8", 16);
  			iVar3 = 12;
  			iVar4 = 8;
  			iVar1 = 25;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "FEET_P1_12_9", 16);
  			iVar3 = 12;
  			iVar4 = 9;
  			iVar1 = 30;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "FEET_P1_12_10", 16);
  			iVar3 = 12;
  			iVar4 = 10;
  			iVar1 = 28;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "FEET_P1_12_11", 16);
  			iVar3 = 12;
  			iVar4 = 11;
  			iVar1 = 30;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "FEET_P1_13_0", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "FEET_P1_14_0", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			iVar1 = 155;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "FEET_P1_14_1", 16);
  			iVar3 = 14;
  			iVar4 = 1;
  			iVar1 = 155;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "FEET_P1_14_2", 16);
  			iVar3 = 14;
  			iVar4 = 2;
  			iVar1 = 165;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "FEET_P1_14_3", 16);
  			iVar3 = 14;
  			iVar4 = 3;
  			iVar1 = 170;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "FEET_P1_14_4", 16);
  			iVar3 = 14;
  			iVar4 = 4;
  			iVar1 = 160;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "FEET_P1_14_5", 16);
  			iVar3 = 14;
  			iVar4 = 5;
  			iVar1 = 165;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "FEET_P1_14_6", 16);
  			iVar3 = 14;
  			iVar4 = 6;
  			iVar1 = 170;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "FEET_P1_14_7", 16);
  			iVar3 = 14;
  			iVar4 = 7;
  			iVar1 = 160;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "FEET_P1_16_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			iVar1 = 720;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "FEET_P1_16_1", 16);
  			iVar3 = 16;
  			iVar4 = 1;
  			iVar1 = 680;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "FEET_P1_16_2", 16);
  			iVar3 = 16;
  			iVar4 = 2;
  			iVar1 = 650;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "FEET_P1_16_3", 16);
  			iVar3 = 16;
  			iVar4 = 3;
  			iVar1 = 670;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "FEET_P1_16_4", 16);
  			iVar3 = 16;
  			iVar4 = 4;
  			iVar1 = 700;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "FEET_P1_16_5", 16);
  			iVar3 = 16;
  			iVar4 = 5;
  			iVar1 = 680;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "FEET_P1_16_6", 16);
  			iVar3 = 16;
  			iVar4 = 6;
  			iVar1 = 720;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "FEET_P1_16_7", 16);
  			iVar3 = 16;
  			iVar4 = 7;
  			iVar1 = 740;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "FEET_P1_16_8", 16);
  			iVar3 = 16;
  			iVar4 = 8;
  			iVar1 = 760;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "FEET_P1_16_9", 16);
  			iVar3 = 16;
  			iVar4 = 9;
  			iVar1 = 780;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "FEET_P1_16_10", 16);
  			iVar3 = 16;
  			iVar4 = 10;
  			iVar1 = 750;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "FEET_P1_16_11", 16);
  			iVar3 = 16;
  			iVar4 = 11;
  			iVar1 = 700;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "FEET_P1_17_0", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			iVar1 = 790;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "FEET_P1_17_1", 16);
  			iVar3 = 17;
  			iVar4 = 1;
  			iVar1 = 750;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "FEET_P1_17_2", 16);
  			iVar3 = 17;
  			iVar4 = 2;
  			iVar1 = 860;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "FEET_P1_17_3", 16);
  			iVar3 = 17;
  			iVar4 = 3;
  			iVar1 = 750;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "FEET_P1_17_4", 16);
  			iVar3 = 17;
  			iVar4 = 4;
  			iVar1 = 790;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "FEET_P1_17_5", 16);
  			iVar3 = 17;
  			iVar4 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "FEET_P1_17_6", 16);
  			iVar3 = 17;
  			iVar4 = 6;
  			iVar1 = 820;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "FEET_P1_17_7", 16);
  			iVar3 = 17;
  			iVar4 = 7;
  			iVar1 = 800;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "FEET_P1_17_8", 16);
  			iVar3 = 17;
  			iVar4 = 8;
  			iVar1 = 850;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "FEET_P1_17_9", 16);
  			iVar3 = 17;
  			iVar4 = 9;
  			iVar1 = 870;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "FEET_P1_17_10", 16);
  			iVar3 = 17;
  			iVar4 = 10;
  			iVar1 = 720;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "FEET_P1_17_11", 16);
  			iVar3 = 17;
  			iVar4 = 11;
  			iVar1 = 740;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "FEET_P1_17_12", 16);
  			iVar3 = 17;
  			iVar4 = 12;
  			iVar1 = 800;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "FEET_P1_17_13", 16);
  			iVar3 = 17;
  			iVar4 = 13;
  			iVar1 = 750;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "FEET_P1_17_14", 16);
  			iVar3 = 17;
  			iVar4 = 14;
  			iVar1 = 770;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "FEET_P1_17_15", 16);
  			iVar3 = 17;
  			iVar4 = 15;
  			iVar1 = 860;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "FEET_P1_18_0", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			iVar1 = 850;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "FEET_P1_18_1", 16);
  			iVar3 = 18;
  			iVar4 = 1;
  			iVar1 = 800;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "FEET_P1_18_2", 16);
  			iVar3 = 18;
  			iVar4 = 2;
  			iVar1 = 780;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "FEET_P1_18_3", 16);
  			iVar3 = 18;
  			iVar4 = 3;
  			iVar1 = 890;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "FEET_P1_18_4", 16);
  			iVar3 = 18;
  			iVar4 = 4;
  			iVar1 = 820;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "FEET_P1_18_5", 16);
  			iVar3 = 18;
  			iVar4 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "FEET_P1_18_6", 16);
  			iVar3 = 18;
  			iVar4 = 6;
  			iVar1 = 870;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "FEET_P1_18_7", 16);
  			iVar3 = 18;
  			iVar4 = 7;
  			iVar1 = 930;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "FEET_P1_18_8", 16);
  			iVar3 = 18;
  			iVar4 = 8;
  			iVar1 = 880;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "FEET_P1_18_9", 16);
  			iVar3 = 18;
  			iVar4 = 9;
  			iVar1 = 900;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "FEET_P1_18_10", 16);
  			iVar3 = 18;
  			iVar4 = 10;
  			iVar1 = 920;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "FEET_P1_18_11", 16);
  			iVar3 = 18;
  			iVar4 = 11;
  			iVar1 = 970;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "FEET_P1_18_12", 16);
  			iVar3 = 18;
  			iVar4 = 12;
  			iVar1 = 990;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "FEET_P1_18_13", 16);
  			iVar3 = 18;
  			iVar4 = 13;
  			iVar1 = 960;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "FEET_P1_18_14", 16);
  			iVar3 = 18;
  			iVar4 = 14;
  			iVar1 = 980;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "FEET_P1_18_15", 16);
  			iVar3 = 18;
  			iVar4 = 15;
  			iVar1 = 950;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "FEET_P1_19_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			iVar1 = 110;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "FEET_P1_19_1", 16);
  			iVar3 = 19;
  			iVar4 = 1;
  			iVar1 = 115;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "FEET_P1_19_2", 16);
  			iVar3 = 19;
  			iVar4 = 2;
  			iVar1 = 120;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "FEET_P1_19_3", 16);
  			iVar3 = 19;
  			iVar4 = 3;
  			iVar1 = 110;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "FEET_P1_19_4", 16);
  			iVar3 = 19;
  			iVar4 = 4;
  			iVar1 = 125;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "FEET_P1_19_5", 16);
  			iVar3 = 19;
  			iVar4 = 5;
  			iVar1 = 128;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "FEET_P1_19_6", 16);
  			iVar3 = 19;
  			iVar4 = 6;
  			iVar1 = 135;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "FEET_P1_19_7", 16);
  			iVar3 = 19;
  			iVar4 = 7;
  			iVar1 = 130;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "FEET_P1_19_8", 16);
  			iVar3 = 19;
  			iVar4 = 8;
  			iVar1 = 145;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "FEET_P1_19_9", 16);
  			iVar3 = 19;
  			iVar4 = 9;
  			iVar1 = 110;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "FEET_P1_19_10", 16);
  			iVar3 = 19;
  			iVar4 = 10;
  			iVar1 = 120;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "FEET_P1_19_11", 16);
  			iVar3 = 19;
  			iVar4 = 11;
  			iVar1 = 150;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "FEET_P1_19_12", 16);
  			iVar3 = 19;
  			iVar4 = 12;
  			iVar1 = 125;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "FEET_P1_19_13", 16);
  			iVar3 = 19;
  			iVar4 = 13;
  			iVar1 = 120;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "FEET_P1_19_14", 16);
  			iVar3 = 19;
  			iVar4 = 14;
  			iVar1 = 130;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "FEET_P1_19_15", 16);
  			iVar3 = 19;
  			iVar4 = 15;
  			iVar1 = 110;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 134, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_293(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 4;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "LEGS_P1_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "LEGS_P1_0_1", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			iVar1 = 32;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "LEGS_P1_0_2", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			iVar1 = 38;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "LEGS_P1_0_3", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			iVar1 = 44;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 2;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 3;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 4;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 5;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "LEGS_P1_2_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "LEGS_P1_6_0", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "LEGS_P1_6_1", 16);
  			iVar3 = 6;
  			iVar4 = 1;
  			iVar1 = 690;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "LEGS_P1_6_2", 16);
  			iVar3 = 6;
  			iVar4 = 2;
  			iVar1 = 720;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "LEGS_P1_6_3", 16);
  			iVar3 = 6;
  			iVar4 = 3;
  			iVar1 = 850;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "LEGS_P1_6_4", 16);
  			iVar3 = 6;
  			iVar4 = 4;
  			iVar1 = 850;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "LEGS_P1_6_5", 16);
  			iVar3 = 6;
  			iVar4 = 5;
  			iVar1 = 740;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "LEGS_P1_6_6", 16);
  			iVar3 = 6;
  			iVar4 = 6;
  			iVar1 = 750;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "LEGS_P1_6_7", 16);
  			iVar3 = 6;
  			iVar4 = 7;
  			iVar1 = 790;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "LEGS_P1_8_0", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "LEGS_P1_8_1", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			iVar1 = 145;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "LEGS_P1_8_2", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			iVar1 = 140;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "LEGS_P1_8_3", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			iVar1 = 148;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "LEGS_P1_8_4", 16);
  			iVar3 = 8;
  			iVar4 = 4;
  			iVar1 = 150;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "LEGS_P1_8_5", 16);
  			iVar3 = 8;
  			iVar4 = 5;
  			iVar1 = 154;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "LEGS_P1_8_6", 16);
  			iVar3 = 8;
  			iVar4 = 6;
  			iVar1 = 158;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "LEGS_P1_11_0", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			iVar1 = 820;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "LEGS_P1_11_1", 16);
  			iVar3 = 11;
  			iVar4 = 1;
  			iVar1 = 820;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "LEGS_P1_11_2", 16);
  			iVar3 = 11;
  			iVar4 = 2;
  			iVar1 = 850;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "LEGS_P1_11_3", 16);
  			iVar3 = 11;
  			iVar4 = 3;
  			iVar1 = 850;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "LEGS_P1_11_4", 16);
  			iVar3 = 11;
  			iVar4 = 4;
  			iVar1 = 920;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "LEGS_P1_11_5", 16);
  			iVar3 = 11;
  			iVar4 = 5;
  			iVar1 = 950;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "LEGS_P1_13_0", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "LEGS_P1_13_1", 16);
  			iVar3 = 13;
  			iVar4 = 1;
  			iVar1 = 45;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "LEGS_P1_13_2", 16);
  			iVar3 = 13;
  			iVar4 = 2;
  			iVar1 = 48;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "LEGS_P1_13_3", 16);
  			iVar3 = 13;
  			iVar4 = 3;
  			iVar1 = 45;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "LEGS_P1_13_4", 16);
  			iVar3 = 13;
  			iVar4 = 4;
  			iVar1 = 48;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "LEGS_P1_13_5", 16);
  			iVar3 = 13;
  			iVar4 = 5;
  			iVar1 = 52;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "LEGS_P1_13_6", 16);
  			iVar3 = 13;
  			iVar4 = 6;
  			iVar1 = 55;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "LEGS_P1_13_7", 16);
  			iVar3 = 13;
  			iVar4 = 7;
  			iVar1 = 58;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "LEGS_P1_13_8", 16);
  			iVar3 = 13;
  			iVar4 = 8;
  			iVar1 = 60;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "LEGS_P1_13_9", 16);
  			iVar3 = 13;
  			iVar4 = 9;
  			iVar1 = 58;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "LEGS_P1_13_10", 16);
  			iVar3 = 13;
  			iVar4 = 10;
  			iVar1 = 62;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "LEGS_P1_13_11", 16);
  			iVar3 = 13;
  			iVar4 = 11;
  			iVar1 = 65;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "LEGS_P1_14_0", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "LEGS_P1_15_0", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "LEGS_P1_15_1", 16);
  			iVar3 = 15;
  			iVar4 = 1;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "LEGS_P1_15_2", 16);
  			iVar3 = 15;
  			iVar4 = 2;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "LEGS_P1_15_3", 16);
  			iVar3 = 15;
  			iVar4 = 3;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "LEGS_P1_15_4", 16);
  			iVar3 = 15;
  			iVar4 = 4;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "LEGS_P1_15_5", 16);
  			iVar3 = 15;
  			iVar4 = 5;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "LEGS_P1_15_6", 16);
  			iVar3 = 15;
  			iVar4 = 6;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "LEGS_P1_15_7", 16);
  			iVar3 = 15;
  			iVar4 = 7;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "LEGS_P1_15_8", 16);
  			iVar3 = 15;
  			iVar4 = 8;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "LEGS_P1_15_9", 16);
  			iVar3 = 15;
  			iVar4 = 9;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "LEGS_P1_15_10", 16);
  			iVar3 = 15;
  			iVar4 = 10;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "LEGS_P1_15_11", 16);
  			iVar3 = 15;
  			iVar4 = 11;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "LEGS_P1_15_12", 16);
  			iVar3 = 15;
  			iVar4 = 12;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "LEGS_P1_15_13", 16);
  			iVar3 = 15;
  			iVar4 = 13;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "LEGS_P1_15_14", 16);
  			iVar3 = 15;
  			iVar4 = 14;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "LEGS_P1_15_15", 16);
  			iVar3 = 15;
  			iVar4 = 15;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "LEGS_P1_16_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 16;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "LEGS_P1_18_0", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "LEGS_P1_18_1", 16);
  			iVar3 = 18;
  			iVar4 = 1;
  			iVar1 = 160;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "LEGS_P1_18_2", 16);
  			iVar3 = 18;
  			iVar4 = 2;
  			iVar1 = 180;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "LEGS_P1_18_3", 16);
  			iVar3 = 18;
  			iVar4 = 3;
  			iVar1 = 180;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "LEGS_P1_18_4", 16);
  			iVar3 = 18;
  			iVar4 = 4;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "LEGS_P1_18_5", 16);
  			iVar3 = 18;
  			iVar4 = 5;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "LEGS_P1_19_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "LEGS_P1_20_0", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			iVar1 = 118;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "LEGS_P1_20_1", 16);
  			iVar3 = 20;
  			iVar4 = 1;
  			iVar1 = 120;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "LEGS_P1_20_2", 16);
  			iVar3 = 20;
  			iVar4 = 2;
  			iVar1 = 128;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "LEGS_P1_20_3", 16);
  			iVar3 = 20;
  			iVar4 = 3;
  			iVar1 = 128;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "LEGS_P1_20_4", 16);
  			iVar3 = 20;
  			iVar4 = 4;
  			iVar1 = 130;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "LEGS_P1_20_5", 16);
  			iVar3 = 20;
  			iVar4 = 5;
  			iVar1 = 145;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "LEGS_P1_20_6", 16);
  			iVar3 = 20;
  			iVar4 = 6;
  			iVar1 = 138;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "LEGS_P1_20_7", 16);
  			iVar3 = 20;
  			iVar4 = 7;
  			iVar1 = 132;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "LEGS_P1_20_8", 16);
  			iVar3 = 20;
  			iVar4 = 8;
  			iVar1 = 148;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "LEGS_P1_21_0", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			iVar1 = 118;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "LEGS_P1_21_1", 16);
  			iVar3 = 21;
  			iVar4 = 1;
  			iVar1 = 118;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "LEGS_P1_21_2", 16);
  			iVar3 = 21;
  			iVar4 = 2;
  			iVar1 = 118;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "LEGS_P1_21_3", 16);
  			iVar3 = 21;
  			iVar4 = 3;
  			iVar1 = 129;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "LEGS_P1_21_4", 16);
  			iVar3 = 21;
  			iVar4 = 4;
  			iVar1 = 135;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "LEGS_P1_21_5", 16);
  			iVar3 = 21;
  			iVar4 = 5;
  			iVar1 = 135;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "LEGS_P1_21_6", 16);
  			iVar3 = 21;
  			iVar4 = 6;
  			iVar1 = 118;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "LEGS_P1_21_7", 16);
  			iVar3 = 21;
  			iVar4 = 7;
  			iVar1 = 118;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "LEGS_P1_21_8", 16);
  			iVar3 = 21;
  			iVar4 = 8;
  			iVar1 = 118;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "LEGS_P1_22_0", 16);
  			iVar3 = 22;
  			iVar4 = 0;
  			iVar1 = 55;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "LEGS_P1_22_1", 16);
  			iVar3 = 22;
  			iVar4 = 1;
  			iVar1 = 55;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "LEGS_P1_22_2", 16);
  			iVar3 = 22;
  			iVar4 = 2;
  			iVar1 = 59;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "LEGS_P1_22_3", 16);
  			iVar3 = 22;
  			iVar4 = 3;
  			iVar1 = 59;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "LEGS_P1_22_4", 16);
  			iVar3 = 22;
  			iVar4 = 4;
  			iVar1 = 65;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "LEGS_P1_22_5", 16);
  			iVar3 = 22;
  			iVar4 = 5;
  			iVar1 = 65;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "LEGS_P1_22_6", 16);
  			iVar3 = 22;
  			iVar4 = 6;
  			iVar1 = 69;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "LEGS_P1_22_7", 16);
  			iVar3 = 22;
  			iVar4 = 7;
  			iVar1 = 69;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "LEGS_P1_22_8", 16);
  			iVar3 = 22;
  			iVar4 = 8;
  			iVar1 = 75;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "LEGS_P1_22_9", 16);
  			iVar3 = 22;
  			iVar4 = 9;
  			iVar1 = 75;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "LEGS_P1_22_10", 16);
  			iVar3 = 22;
  			iVar4 = 10;
  			iVar1 = 65;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "LEGS_P1_22_11", 16);
  			iVar3 = 22;
  			iVar4 = 11;
  			iVar1 = 65;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "LEGS_P1_22_12", 16);
  			iVar3 = 22;
  			iVar4 = 12;
  			iVar1 = 65;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "LEGS_P1_22_13", 16);
  			iVar3 = 22;
  			iVar4 = 13;
  			iVar1 = 65;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "LEGS_P1_23_0", 16);
  			iVar3 = 23;
  			iVar4 = 0;
  			iVar1 = 38;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "LEGS_P1_23_1", 16);
  			iVar3 = 23;
  			iVar4 = 1;
  			iVar1 = 38;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "LEGS_P1_23_2", 16);
  			iVar3 = 23;
  			iVar4 = 2;
  			iVar1 = 28;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "LEGS_P1_23_3", 16);
  			iVar3 = 23;
  			iVar4 = 3;
  			iVar1 = 34;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "LEGS_P1_23_4", 16);
  			iVar3 = 23;
  			iVar4 = 4;
  			iVar1 = 36;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "LEGS_P1_23_5", 16);
  			iVar3 = 23;
  			iVar4 = 5;
  			iVar1 = 32;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 117, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_294(int iParam0)
  {
  	if (iParam0 < 107)
  	{
  		func_297(iParam0);
  	}
  	else if (iParam0 < 227)
  	{
  		func_296(iParam0);
  	}
  	else
  	{
  		func_295(iParam0);
  	}
  	if (Global_76647[0 /*14*/].f_2 == -1)
  	{
  		func_264(3, iParam0, 318, -1);
  	}
  }
  
  void func_295(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 3;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 227:
  			StringCopy(&Var2, "TORSO_P1_18_0", 16);
  			iVar3 = 23;
  			iVar4 = 0;
  			iVar6 = 3;
  			break;
  		
  		case 228:
  			StringCopy(&Var2, "TORSO_P1_18_1", 16);
  			iVar3 = 23;
  			iVar4 = 1;
  			iVar6 = 3;
  			break;
  		
  		case 229:
  			StringCopy(&Var2, "TORSO_P1_18_2", 16);
  			iVar3 = 23;
  			iVar4 = 2;
  			iVar6 = 3;
  			break;
  		
  		case 230:
  			StringCopy(&Var2, "TORSO_P1_18_3", 16);
  			iVar3 = 23;
  			iVar4 = 3;
  			iVar6 = 3;
  			break;
  		
  		case 231:
  			StringCopy(&Var2, "TORSO_P1_18_4", 16);
  			iVar3 = 23;
  			iVar4 = 4;
  			iVar6 = 3;
  			break;
  		
  		case 232:
  			StringCopy(&Var2, "TORSO_P1_18_5", 16);
  			iVar3 = 23;
  			iVar4 = 5;
  			iVar6 = 3;
  			break;
  		
  		case 233:
  			StringCopy(&Var2, "TORSO_P1_18_6", 16);
  			iVar3 = 23;
  			iVar4 = 6;
  			iVar6 = 3;
  			break;
  		
  		case 234:
  			StringCopy(&Var2, "TORSO_P1_18_7", 16);
  			iVar3 = 23;
  			iVar4 = 7;
  			iVar6 = 3;
  			break;
  		
  		case 235:
  			StringCopy(&Var2, "TORSO_P1_18_8", 16);
  			iVar3 = 23;
  			iVar4 = 8;
  			iVar6 = 3;
  			break;
  		
  		case 236:
  			StringCopy(&Var2, "TORSO_P1_18_9", 16);
  			iVar3 = 23;
  			iVar4 = 9;
  			iVar6 = 3;
  			break;
  		
  		case 237:
  			StringCopy(&Var2, "TORSO_P1_18_10", 16);
  			iVar3 = 23;
  			iVar4 = 10;
  			iVar6 = 3;
  			break;
  		
  		case 238:
  			StringCopy(&Var2, "TORSO_P1_18_11", 16);
  			iVar3 = 23;
  			iVar4 = 11;
  			iVar6 = 3;
  			break;
  		
  		case 239:
  			StringCopy(&Var2, "TORSO_P1_18_12", 16);
  			iVar3 = 23;
  			iVar4 = 12;
  			iVar6 = 3;
  			break;
  		
  		case 240:
  			StringCopy(&Var2, "TORSO_P1_18_13", 16);
  			iVar3 = 23;
  			iVar4 = 13;
  			iVar6 = 3;
  			break;
  		
  		case 241:
  			StringCopy(&Var2, "TORSO_P1_18_14", 16);
  			iVar3 = 23;
  			iVar4 = 14;
  			iVar6 = 3;
  			break;
  		
  		case 242:
  			StringCopy(&Var2, "TORSO_P1_18_15", 16);
  			iVar3 = 23;
  			iVar4 = 15;
  			iVar6 = 3;
  			break;
  		
  		case 243:
  			StringCopy(&Var2, "TORSO_P1_24_0", 16);
  			iVar3 = 24;
  			iVar4 = 0;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 244:
  			StringCopy(&Var2, "TORSO_P1_24_1", 16);
  			iVar3 = 24;
  			iVar4 = 1;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 245:
  			StringCopy(&Var2, "TORSO_P1_24_2", 16);
  			iVar3 = 24;
  			iVar4 = 2;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 246:
  			StringCopy(&Var2, "TORSO_P1_24_3", 16);
  			iVar3 = 24;
  			iVar4 = 3;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 247:
  			StringCopy(&Var2, "TORSO_P1_24_4", 16);
  			iVar3 = 24;
  			iVar4 = 4;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 248:
  			StringCopy(&Var2, "TORSO_P1_24_5", 16);
  			iVar3 = 24;
  			iVar4 = 5;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 249:
  			StringCopy(&Var2, "TORSO_P1_24_6", 16);
  			iVar3 = 24;
  			iVar4 = 6;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 250:
  			StringCopy(&Var2, "TORSO_P1_24_7", 16);
  			iVar3 = 24;
  			iVar4 = 7;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 251:
  			StringCopy(&Var2, "TORSO_P1_24_8", 16);
  			iVar3 = 24;
  			iVar4 = 8;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 252:
  			StringCopy(&Var2, "TORSO_P1_24_9", 16);
  			iVar3 = 24;
  			iVar4 = 9;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 253:
  			StringCopy(&Var2, "TORSO_P1_24_10", 16);
  			iVar3 = 24;
  			iVar4 = 10;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 254:
  			StringCopy(&Var2, "TORSO_P1_24_11", 16);
  			iVar3 = 24;
  			iVar4 = 11;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 255:
  			StringCopy(&Var2, "TORSO_P1_24_12", 16);
  			iVar3 = 24;
  			iVar4 = 12;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 256:
  			StringCopy(&Var2, "TORSO_P1_24_13", 16);
  			iVar3 = 24;
  			iVar4 = 13;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 257:
  			StringCopy(&Var2, "TORSO_P1_24_14", 16);
  			iVar3 = 24;
  			iVar4 = 14;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 258:
  			StringCopy(&Var2, "TORSO_P1_24_15", 16);
  			iVar3 = 24;
  			iVar4 = 15;
  			iVar1 = 2200;
  			iVar6 = 3;
  			break;
  		
  		case 259:
  			StringCopy(&Var2, "TORSO_P1_25_0", 16);
  			iVar3 = 25;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar6 = 3;
  			break;
  		
  		case 260:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 0;
  			iVar6 = 1;
  			break;
  		
  		case 261:
  			StringCopy(&Var2, "TORSO_P1_27_0", 16);
  			iVar3 = 27;
  			iVar4 = 0;
  			iVar1 = 150;
  			break;
  		
  		case 262:
  			StringCopy(&Var2, "TORSO_P1_27_1", 16);
  			iVar3 = 27;
  			iVar4 = 1;
  			iVar1 = 160;
  			break;
  		
  		case 263:
  			StringCopy(&Var2, "TORSO_P1_27_2", 16);
  			iVar3 = 27;
  			iVar4 = 2;
  			iVar1 = 150;
  			break;
  		
  		case 264:
  			StringCopy(&Var2, "TORSO_P1_27_3", 16);
  			iVar3 = 27;
  			iVar4 = 3;
  			iVar1 = 150;
  			break;
  		
  		case 265:
  			StringCopy(&Var2, "TORSO_P1_27_4", 16);
  			iVar3 = 27;
  			iVar4 = 4;
  			iVar1 = 160;
  			break;
  		
  		case 266:
  			StringCopy(&Var2, "TORSO_P1_27_5", 16);
  			iVar3 = 27;
  			iVar4 = 5;
  			iVar1 = 160;
  			break;
  		
  		case 267:
  			StringCopy(&Var2, "TORSO_P1_28_0", 16);
  			iVar3 = 28;
  			iVar4 = 0;
  			iVar1 = 88;
  			break;
  		
  		case 268:
  			StringCopy(&Var2, "TORSO_P1_28_1", 16);
  			iVar3 = 28;
  			iVar4 = 1;
  			iVar1 = 60;
  			break;
  		
  		case 269:
  			StringCopy(&Var2, "TORSO_P1_28_2", 16);
  			iVar3 = 28;
  			iVar4 = 2;
  			iVar1 = 70;
  			break;
  		
  		case 270:
  			StringCopy(&Var2, "TORSO_P1_28_3", 16);
  			iVar3 = 28;
  			iVar4 = 3;
  			iVar1 = 80;
  			break;
  		
  		case 271:
  			StringCopy(&Var2, "TORSO_P1_28_4", 16);
  			iVar3 = 28;
  			iVar4 = 4;
  			iVar1 = 90;
  			break;
  		
  		case 272:
  			StringCopy(&Var2, "TORSO_P1_28_5", 16);
  			iVar3 = 28;
  			iVar4 = 5;
  			iVar1 = 80;
  			break;
  		
  		case 273:
  			StringCopy(&Var2, "TORSO_P1_28_6", 16);
  			iVar3 = 28;
  			iVar4 = 6;
  			iVar1 = 70;
  			break;
  		
  		case 274:
  			StringCopy(&Var2, "TORSO_P1_28_7", 16);
  			iVar3 = 28;
  			iVar4 = 7;
  			iVar1 = 95;
  			break;
  		
  		case 275:
  			StringCopy(&Var2, "TORSO_P1_28_8", 16);
  			iVar3 = 28;
  			iVar4 = 8;
  			iVar1 = 105;
  			break;
  		
  		case 276:
  			StringCopy(&Var2, "TORSO_P1_28_9", 16);
  			iVar3 = 28;
  			iVar4 = 9;
  			iVar1 = 95;
  			break;
  		
  		case 277:
  			StringCopy(&Var2, "TORSO_P1_28_10", 16);
  			iVar3 = 28;
  			iVar4 = 10;
  			iVar1 = 110;
  			break;
  		
  		case 278:
  			StringCopy(&Var2, "TORSO_P1_28_11", 16);
  			iVar3 = 28;
  			iVar4 = 11;
  			iVar1 = 98;
  			break;
  		
  		case 279:
  			StringCopy(&Var2, "TORSO_P1_28_12", 16);
  			iVar3 = 28;
  			iVar4 = 12;
  			iVar1 = 88;
  			break;
  		
  		case 280:
  			StringCopy(&Var2, "TORSO_P1_28_13", 16);
  			iVar3 = 28;
  			iVar4 = 13;
  			iVar1 = 98;
  			break;
  		
  		case 281:
  			StringCopy(&Var2, "TORSO_P1_28_14", 16);
  			iVar3 = 28;
  			iVar4 = 14;
  			iVar1 = 110;
  			break;
  		
  		case 282:
  			StringCopy(&Var2, "TORSO_P1_28_15", 16);
  			iVar3 = 28;
  			iVar4 = 15;
  			iVar1 = 98;
  			break;
  		
  		case 283:
  			StringCopy(&Var2, "TORSO_P1_29_0", 16);
  			iVar3 = 29;
  			iVar4 = 0;
  			iVar1 = 250;
  			break;
  		
  		case 284:
  			StringCopy(&Var2, "TORSO_P1_29_1", 16);
  			iVar3 = 29;
  			iVar4 = 1;
  			iVar1 = 270;
  			break;
  		
  		case 285:
  			StringCopy(&Var2, "TORSO_P1_29_2", 16);
  			iVar3 = 29;
  			iVar4 = 2;
  			iVar1 = 280;
  			break;
  		
  		case 286:
  			StringCopy(&Var2, "TORSO_P1_29_3", 16);
  			iVar3 = 29;
  			iVar4 = 3;
  			iVar1 = 275;
  			break;
  		
  		case 287:
  			StringCopy(&Var2, "TORSO_P1_29_4", 16);
  			iVar3 = 29;
  			iVar4 = 4;
  			iVar1 = 290;
  			break;
  		
  		case 288:
  			StringCopy(&Var2, "TORSO_P1_29_5", 16);
  			iVar3 = 29;
  			iVar4 = 5;
  			iVar1 = 35;
  			break;
  		
  		case 289:
  			StringCopy(&Var2, "TORSO_P1_29_6", 16);
  			iVar3 = 29;
  			iVar4 = 6;
  			iVar1 = 35;
  			break;
  		
  		case 290:
  			StringCopy(&Var2, "TORSO_P1_29_7", 16);
  			iVar3 = 29;
  			iVar4 = 7;
  			iVar1 = 35;
  			break;
  		
  		case 291:
  			StringCopy(&Var2, "TORSO_P1_29_8", 16);
  			iVar3 = 29;
  			iVar4 = 8;
  			iVar1 = 295;
  			break;
  		
  		case 292:
  			StringCopy(&Var2, "TORSO_P1_29_9", 16);
  			iVar3 = 29;
  			iVar4 = 9;
  			iVar1 = 35;
  			break;
  		
  		case 293:
  			StringCopy(&Var2, "TORSO_P1_29_10", 16);
  			iVar3 = 29;
  			iVar4 = 10;
  			iVar1 = 35;
  			break;
  		
  		case 294:
  			StringCopy(&Var2, "TORSO_P1_29_11", 16);
  			iVar3 = 29;
  			iVar4 = 11;
  			iVar1 = 35;
  			break;
  		
  		case 295:
  			StringCopy(&Var2, "TORSO_P1_29_12", 16);
  			iVar3 = 29;
  			iVar4 = 12;
  			break;
  		
  		case 296:
  			StringCopy(&Var2, "TORSO_P1_30_0", 16);
  			iVar3 = 30;
  			iVar4 = 0;
  			iVar1 = 1750;
  			break;
  		
  		case 297:
  			StringCopy(&Var2, "TORSO_P1_30_1", 16);
  			iVar3 = 30;
  			iVar4 = 1;
  			iVar1 = 1920;
  			break;
  		
  		case 298:
  			StringCopy(&Var2, "TORSO_P1_30_2", 16);
  			iVar3 = 30;
  			iVar4 = 2;
  			iVar1 = 1890;
  			break;
  		
  		case 299:
  			StringCopy(&Var2, "TORSO_P1_30_3", 16);
  			iVar3 = 30;
  			iVar4 = 3;
  			iVar1 = 1850;
  			break;
  		
  		case 300:
  			StringCopy(&Var2, "TORSO_P1_30_4", 16);
  			iVar3 = 30;
  			iVar4 = 4;
  			iVar1 = 1750;
  			break;
  		
  		case 301:
  			StringCopy(&Var2, "TORSO_P1_30_5", 16);
  			iVar3 = 30;
  			iVar4 = 5;
  			iVar1 = 1990;
  			break;
  		
  		case 302:
  			StringCopy(&Var2, "TORSO_P1_30_6", 16);
  			iVar3 = 30;
  			iVar4 = 6;
  			iVar1 = 1820;
  			break;
  		
  		case 303:
  			StringCopy(&Var2, "TORSO_P1_30_7", 16);
  			iVar3 = 30;
  			iVar4 = 7;
  			iVar1 = 1990;
  			break;
  		
  		case 304:
  			StringCopy(&Var2, "TORSO_P1_30_8", 16);
  			iVar3 = 30;
  			iVar4 = 8;
  			iVar1 = 1920;
  			break;
  		
  		case 305:
  			StringCopy(&Var2, "TORSO_P1_30_9", 16);
  			iVar3 = 30;
  			iVar4 = 9;
  			iVar1 = 1850;
  			break;
  		
  		case 306:
  			StringCopy(&Var2, "TORSO_P1_30_10", 16);
  			iVar3 = 30;
  			iVar4 = 10;
  			iVar1 = 1990;
  			break;
  		
  		case 307:
  			StringCopy(&Var2, "TORSO_P1_30_11", 16);
  			iVar3 = 30;
  			iVar4 = 11;
  			iVar1 = 1790;
  			break;
  		
  		case 308:
  			StringCopy(&Var2, "TORSO_P1_30_12", 16);
  			iVar3 = 30;
  			iVar4 = 12;
  			iVar1 = 1790;
  			break;
  		
  		case 309:
  			StringCopy(&Var2, "TORSO_P1_31_0", 16);
  			iVar3 = 31;
  			iVar4 = 0;
  			iVar1 = 69;
  			break;
  		
  		case 310:
  			StringCopy(&Var2, "TORSO_P1_31_1", 16);
  			iVar3 = 31;
  			iVar4 = 1;
  			iVar1 = 75;
  			break;
  		
  		case 311:
  			StringCopy(&Var2, "TORSO_P1_31_2", 16);
  			iVar3 = 31;
  			iVar4 = 2;
  			iVar1 = 75;
  			break;
  		
  		case 312:
  			StringCopy(&Var2, "TORSO_P1_31_3", 16);
  			iVar3 = 31;
  			iVar4 = 3;
  			iVar1 = 79;
  			break;
  		
  		case 313:
  			StringCopy(&Var2, "TORSO_P1_31_4", 16);
  			iVar3 = 31;
  			iVar4 = 4;
  			iVar1 = 79;
  			break;
  		
  		case 314:
  			StringCopy(&Var2, "TORSO_P1_31_5", 16);
  			iVar3 = 31;
  			iVar4 = 5;
  			iVar1 = 89;
  			break;
  		
  		case 315:
  			StringCopy(&Var2, "TORSO_P1_31_6", 16);
  			iVar3 = 31;
  			iVar4 = 6;
  			iVar1 = 85;
  			break;
  		
  		case 316:
  			StringCopy(&Var2, "TORSO_P1_31_7", 16);
  			iVar3 = 31;
  			iVar4 = 7;
  			iVar1 = 85;
  			break;
  		
  		case 317:
  			StringCopy(&Var2, "TORSO_P1_31_8", 16);
  			iVar3 = 31;
  			iVar4 = 8;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_296(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 3;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 107:
  			StringCopy(&Var2, "TORSO_P1_12_0", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			iVar1 = 195;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "TORSO_P1_12_1", 16);
  			iVar3 = 12;
  			iVar4 = 1;
  			iVar1 = 420;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "TORSO_P1_12_2", 16);
  			iVar3 = 12;
  			iVar4 = 2;
  			iVar1 = 390;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "TORSO_P1_12_3", 16);
  			iVar3 = 12;
  			iVar4 = 3;
  			iVar1 = 450;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "TORSO_P1_12_4", 16);
  			iVar3 = 12;
  			iVar4 = 4;
  			iVar1 = 400;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "TORSO_P1_12_5", 16);
  			iVar3 = 12;
  			iVar4 = 5;
  			iVar1 = 390;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "TORSO_P1_12_6", 16);
  			iVar3 = 12;
  			iVar4 = 6;
  			iVar1 = 570;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "TORSO_P1_12_7", 16);
  			iVar3 = 12;
  			iVar4 = 7;
  			iVar1 = 390;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "TORSO_P1_12_8", 16);
  			iVar3 = 12;
  			iVar4 = 8;
  			iVar1 = 470;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "TORSO_P1_12_9", 16);
  			iVar3 = 12;
  			iVar4 = 9;
  			iVar1 = 390;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "TORSO_P1_12_10", 16);
  			iVar3 = 12;
  			iVar4 = 10;
  			iVar1 = 520;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "TORSO_P1_12_11", 16);
  			iVar3 = 12;
  			iVar4 = 11;
  			iVar1 = 490;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "TORSO_P1_12_12", 16);
  			iVar3 = 12;
  			iVar4 = 12;
  			iVar1 = 490;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "TORSO_P1_12_13", 16);
  			iVar3 = 12;
  			iVar4 = 13;
  			iVar1 = 590;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "TORSO_P1_12_14", 16);
  			iVar3 = 12;
  			iVar4 = 14;
  			iVar1 = 560;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "TORSO_P1_12_15", 16);
  			iVar3 = 12;
  			iVar4 = 15;
  			iVar1 = 520;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "TORSO_P1_13_0", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "TORSO_P1_13_1", 16);
  			iVar3 = 13;
  			iVar4 = 1;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "TORSO_P1_13_2", 16);
  			iVar3 = 13;
  			iVar4 = 2;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "TORSO_P1_13_3", 16);
  			iVar3 = 13;
  			iVar4 = 3;
  			iVar1 = 90;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "TORSO_P1_13_4", 16);
  			iVar3 = 13;
  			iVar4 = 4;
  			iVar1 = 85;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "TORSO_P1_13_5", 16);
  			iVar3 = 13;
  			iVar4 = 5;
  			iVar1 = 45;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "TORSO_P1_13_6", 16);
  			iVar3 = 13;
  			iVar4 = 6;
  			iVar1 = 90;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "TORSO_P1_13_7", 16);
  			iVar3 = 13;
  			iVar4 = 7;
  			iVar1 = 47;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "TORSO_P1_13_8", 16);
  			iVar3 = 13;
  			iVar4 = 8;
  			iVar1 = 45;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "TORSO_P1_13_9", 16);
  			iVar3 = 13;
  			iVar4 = 9;
  			iVar1 = 48;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "TORSO_P1_13_10", 16);
  			iVar3 = 13;
  			iVar4 = 10;
  			iVar1 = 45;
  			break;
  		
  		case 134:
  			StringCopy(&Var2, "TORSO_P1_13_11", 16);
  			iVar3 = 13;
  			iVar4 = 11;
  			iVar1 = 85;
  			break;
  		
  		case 135:
  			StringCopy(&Var2, "TORSO_P1_13_12", 16);
  			iVar3 = 13;
  			iVar4 = 12;
  			iVar1 = 45;
  			break;
  		
  		case 136:
  			StringCopy(&Var2, "TORSO_P1_13_13", 16);
  			iVar3 = 13;
  			iVar4 = 13;
  			iVar1 = 47;
  			break;
  		
  		case 137:
  			StringCopy(&Var2, "TORSO_P1_13_14", 16);
  			iVar3 = 13;
  			iVar4 = 14;
  			iVar1 = 45;
  			break;
  		
  		case 138:
  			StringCopy(&Var2, "TORSO_P1_13_15", 16);
  			iVar3 = 13;
  			iVar4 = 15;
  			iVar1 = 48;
  			break;
  		
  		case 139:
  			StringCopy(&Var2, "TORSO_P1_14_0", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			iVar1 = 290;
  			break;
  		
  		case 140:
  			StringCopy(&Var2, "TORSO_P1_14_1", 16);
  			iVar3 = 14;
  			iVar4 = 1;
  			iVar1 = 290;
  			break;
  		
  		case 141:
  			StringCopy(&Var2, "TORSO_P1_14_2", 16);
  			iVar3 = 14;
  			iVar4 = 2;
  			iVar1 = 290;
  			break;
  		
  		case 142:
  			StringCopy(&Var2, "TORSO_P1_14_3", 16);
  			iVar3 = 14;
  			iVar4 = 3;
  			iVar1 = 290;
  			break;
  		
  		case 143:
  			StringCopy(&Var2, "TORSO_P1_14_4", 16);
  			iVar3 = 14;
  			iVar4 = 4;
  			iVar1 = 290;
  			break;
  		
  		case 144:
  			StringCopy(&Var2, "TORSO_P1_14_5", 16);
  			iVar3 = 14;
  			iVar4 = 5;
  			iVar1 = 290;
  			break;
  		
  		case 145:
  			StringCopy(&Var2, "TORSO_P1_14_6", 16);
  			iVar3 = 14;
  			iVar4 = 6;
  			iVar1 = 65;
  			break;
  		
  		case 146:
  			StringCopy(&Var2, "TORSO_P1_14_7", 16);
  			iVar3 = 14;
  			iVar4 = 7;
  			iVar1 = 65;
  			break;
  		
  		case 147:
  			StringCopy(&Var2, "TORSO_P1_15_0", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			iVar1 = 200;
  			break;
  		
  		case 148:
  			StringCopy(&Var2, "TORSO_P1_15_1", 16);
  			iVar3 = 15;
  			iVar4 = 1;
  			iVar1 = 220;
  			break;
  		
  		case 149:
  			StringCopy(&Var2, "TORSO_P1_15_2", 16);
  			iVar3 = 15;
  			iVar4 = 2;
  			iVar1 = 220;
  			break;
  		
  		case 150:
  			StringCopy(&Var2, "TORSO_P1_15_3", 16);
  			iVar3 = 15;
  			iVar4 = 3;
  			iVar1 = 240;
  			break;
  		
  		case 151:
  			StringCopy(&Var2, "TORSO_P1_15_4", 16);
  			iVar3 = 15;
  			iVar4 = 4;
  			break;
  		
  		case 152:
  			StringCopy(&Var2, "TORSO_P1_15_5", 16);
  			iVar3 = 15;
  			iVar4 = 5;
  			iVar1 = 250;
  			break;
  		
  		case 153:
  			StringCopy(&Var2, "TORSO_P1_15_6", 16);
  			iVar3 = 15;
  			iVar4 = 6;
  			iVar1 = 260;
  			break;
  		
  		case 154:
  			StringCopy(&Var2, "TORSO_P1_15_7", 16);
  			iVar3 = 15;
  			iVar4 = 7;
  			iVar1 = 40;
  			break;
  		
  		case 155:
  			StringCopy(&Var2, "TORSO_P1_15_8", 16);
  			iVar3 = 15;
  			iVar4 = 8;
  			iVar1 = 50;
  			break;
  		
  		case 156:
  			StringCopy(&Var2, "TORSO_P1_15_9", 16);
  			iVar3 = 15;
  			iVar4 = 9;
  			iVar1 = 45;
  			break;
  		
  		case 157:
  			StringCopy(&Var2, "TORSO_P1_15_10", 16);
  			iVar3 = 15;
  			iVar4 = 10;
  			iVar1 = 40;
  			break;
  		
  		case 158:
  			StringCopy(&Var2, "TORSO_P1_15_11", 16);
  			iVar3 = 15;
  			iVar4 = 11;
  			iVar1 = 55;
  			break;
  		
  		case 159:
  			StringCopy(&Var2, "TORSO_P1_16_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			break;
  		
  		case 160:
  			StringCopy(&Var2, "TORSO_P1_17_0", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			iVar1 = 40;
  			break;
  		
  		case 161:
  			StringCopy(&Var2, "TORSO_P1_17_1", 16);
  			iVar3 = 17;
  			iVar4 = 1;
  			iVar1 = 50;
  			break;
  		
  		case 162:
  			StringCopy(&Var2, "TORSO_P1_17_2", 16);
  			iVar3 = 17;
  			iVar4 = 2;
  			break;
  		
  		case 163:
  			StringCopy(&Var2, "TORSO_P1_17_3", 16);
  			iVar3 = 17;
  			iVar4 = 3;
  			iVar1 = 50;
  			break;
  		
  		case 164:
  			StringCopy(&Var2, "TORSO_P1_17_4", 16);
  			iVar3 = 17;
  			iVar4 = 4;
  			iVar1 = 50;
  			break;
  		
  		case 165:
  			StringCopy(&Var2, "TORSO_P1_17_5", 16);
  			iVar3 = 17;
  			iVar4 = 5;
  			iVar1 = 50;
  			break;
  		
  		case 166:
  			StringCopy(&Var2, "TORSO_P1_17_6", 16);
  			iVar3 = 17;
  			iVar4 = 6;
  			iVar1 = 50;
  			break;
  		
  		case 167:
  			StringCopy(&Var2, "TORSO_P1_17_7", 16);
  			iVar3 = 17;
  			iVar4 = 7;
  			iVar1 = 50;
  			break;
  		
  		case 168:
  			StringCopy(&Var2, "TORSO_P1_17_8", 16);
  			iVar3 = 17;
  			iVar4 = 8;
  			iVar1 = 50;
  			break;
  		
  		case 169:
  			StringCopy(&Var2, "TORSO_P1_17_9", 16);
  			iVar3 = 17;
  			iVar4 = 9;
  			iVar1 = 50;
  			break;
  		
  		case 170:
  			StringCopy(&Var2, "TORSO_P1_17_10", 16);
  			iVar3 = 17;
  			iVar4 = 10;
  			iVar1 = 50;
  			break;
  		
  		case 171:
  			StringCopy(&Var2, "TORSO_P1_17_11", 16);
  			iVar3 = 17;
  			iVar4 = 11;
  			iVar1 = 50;
  			break;
  		
  		case 172:
  			StringCopy(&Var2, "TORSO_P1_17_12", 16);
  			iVar3 = 17;
  			iVar4 = 12;
  			iVar1 = 50;
  			break;
  		
  		case 173:
  			StringCopy(&Var2, "TORSO_P1_17_13", 16);
  			iVar3 = 17;
  			iVar4 = 13;
  			iVar1 = 50;
  			break;
  		
  		case 174:
  			StringCopy(&Var2, "TORSO_P1_17_14", 16);
  			iVar3 = 17;
  			iVar4 = 14;
  			iVar1 = 50;
  			break;
  		
  		case 175:
  			StringCopy(&Var2, "TORSO_P1_17_15", 16);
  			iVar3 = 17;
  			iVar4 = 15;
  			iVar1 = 50;
  			break;
  		
  		case 176:
  			StringCopy(&Var2, "TORSO_P1_18_0", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			iVar6 = 3;
  			break;
  		
  		case 177:
  			StringCopy(&Var2, "TORSO_P1_18_1", 16);
  			iVar3 = 18;
  			iVar4 = 1;
  			iVar6 = 3;
  			break;
  		
  		case 178:
  			StringCopy(&Var2, "TORSO_P1_18_2", 16);
  			iVar3 = 18;
  			iVar4 = 2;
  			iVar6 = 3;
  			break;
  		
  		case 179:
  			StringCopy(&Var2, "TORSO_P1_18_3", 16);
  			iVar3 = 18;
  			iVar4 = 3;
  			iVar6 = 3;
  			break;
  		
  		case 180:
  			StringCopy(&Var2, "TORSO_P1_18_4", 16);
  			iVar3 = 18;
  			iVar4 = 4;
  			iVar6 = 3;
  			break;
  		
  		case 181:
  			StringCopy(&Var2, "TORSO_P1_18_5", 16);
  			iVar3 = 18;
  			iVar4 = 5;
  			iVar6 = 3;
  			break;
  		
  		case 182:
  			StringCopy(&Var2, "TORSO_P1_18_6", 16);
  			iVar3 = 18;
  			iVar4 = 6;
  			iVar6 = 3;
  			break;
  		
  		case 183:
  			StringCopy(&Var2, "TORSO_P1_18_7", 16);
  			iVar3 = 18;
  			iVar4 = 7;
  			iVar6 = 3;
  			break;
  		
  		case 184:
  			StringCopy(&Var2, "TORSO_P1_18_8", 16);
  			iVar3 = 18;
  			iVar4 = 8;
  			iVar6 = 3;
  			break;
  		
  		case 185:
  			StringCopy(&Var2, "TORSO_P1_18_9", 16);
  			iVar3 = 18;
  			iVar4 = 9;
  			iVar6 = 3;
  			break;
  		
  		case 186:
  			StringCopy(&Var2, "TORSO_P1_18_10", 16);
  			iVar3 = 18;
  			iVar4 = 10;
  			iVar6 = 3;
  			break;
  		
  		case 187:
  			StringCopy(&Var2, "TORSO_P1_18_11", 16);
  			iVar3 = 18;
  			iVar4 = 11;
  			iVar6 = 3;
  			break;
  		
  		case 188:
  			StringCopy(&Var2, "TORSO_P1_18_12", 16);
  			iVar3 = 18;
  			iVar4 = 12;
  			iVar6 = 3;
  			break;
  		
  		case 189:
  			StringCopy(&Var2, "TORSO_P1_18_13", 16);
  			iVar3 = 18;
  			iVar4 = 13;
  			iVar6 = 3;
  			break;
  		
  		case 190:
  			StringCopy(&Var2, "TORSO_P1_18_14", 16);
  			iVar3 = 18;
  			iVar4 = 14;
  			iVar6 = 3;
  			break;
  		
  		case 191:
  			StringCopy(&Var2, "TORSO_P1_18_15", 16);
  			iVar3 = 18;
  			iVar4 = 15;
  			iVar6 = 3;
  			break;
  		
  		case 192:
  			StringCopy(&Var2, "TORSO_P1_19_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			iVar1 = 480;
  			iVar6 = 3;
  			break;
  		
  		case 193:
  			StringCopy(&Var2, "TORSO_P1_19_1", 16);
  			iVar3 = 19;
  			iVar4 = 1;
  			iVar1 = 440;
  			iVar6 = 3;
  			break;
  		
  		case 194:
  			StringCopy(&Var2, "TORSO_P1_19_2", 16);
  			iVar3 = 19;
  			iVar4 = 2;
  			iVar1 = 440;
  			iVar6 = 3;
  			break;
  		
  		case 195:
  			StringCopy(&Var2, "TORSO_P1_19_3", 16);
  			iVar3 = 19;
  			iVar4 = 3;
  			iVar1 = 520;
  			iVar6 = 3;
  			break;
  		
  		case 196:
  			StringCopy(&Var2, "TORSO_P1_19_4", 16);
  			iVar3 = 19;
  			iVar4 = 4;
  			iVar1 = 440;
  			iVar6 = 3;
  			break;
  		
  		case 197:
  			StringCopy(&Var2, "TORSO_P1_19_5", 16);
  			iVar3 = 19;
  			iVar4 = 5;
  			iVar1 = 440;
  			iVar6 = 3;
  			break;
  		
  		case 198:
  			StringCopy(&Var2, "TORSO_P1_19_6", 16);
  			iVar3 = 19;
  			iVar4 = 6;
  			iVar1 = 480;
  			iVar6 = 3;
  			break;
  		
  		case 199:
  			StringCopy(&Var2, "TORSO_P1_19_7", 16);
  			iVar3 = 19;
  			iVar4 = 7;
  			iVar1 = 480;
  			iVar6 = 3;
  			break;
  		
  		case 200:
  			StringCopy(&Var2, "TORSO_P1_19_8", 16);
  			iVar3 = 19;
  			iVar4 = 8;
  			iVar1 = 480;
  			iVar6 = 3;
  			break;
  		
  		case 201:
  			StringCopy(&Var2, "TORSO_P1_19_9", 16);
  			iVar3 = 19;
  			iVar4 = 9;
  			iVar1 = 480;
  			iVar6 = 3;
  			break;
  		
  		case 202:
  			StringCopy(&Var2, "TORSO_P1_19_10", 16);
  			iVar3 = 19;
  			iVar4 = 10;
  			iVar1 = 480;
  			iVar6 = 3;
  			break;
  		
  		case 203:
  			StringCopy(&Var2, "TORSO_P1_19_11", 16);
  			iVar3 = 19;
  			iVar4 = 11;
  			iVar1 = 480;
  			iVar6 = 3;
  			break;
  		
  		case 204:
  			StringCopy(&Var2, "TORSO_P1_19_12", 16);
  			iVar3 = 19;
  			iVar4 = 12;
  			iVar1 = 520;
  			iVar6 = 3;
  			break;
  		
  		case 205:
  			StringCopy(&Var2, "TORSO_P1_19_13", 16);
  			iVar3 = 19;
  			iVar4 = 13;
  			iVar1 = 520;
  			iVar6 = 3;
  			break;
  		
  		case 206:
  			StringCopy(&Var2, "TORSO_P1_19_14", 16);
  			iVar3 = 19;
  			iVar4 = 14;
  			iVar1 = 520;
  			iVar6 = 3;
  			break;
  		
  		case 207:
  			StringCopy(&Var2, "TORSO_P1_19_15", 16);
  			iVar3 = 19;
  			iVar4 = 15;
  			iVar1 = 440;
  			iVar6 = 3;
  			break;
  		
  		case 208:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar6 = 4;
  			break;
  		
  		case 209:
  			StringCopy(&Var2, "TORSO_P1_21_0", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			iVar1 = 220;
  			break;
  		
  		case 210:
  			StringCopy(&Var2, "TORSO_P1_21_1", 16);
  			iVar3 = 21;
  			iVar4 = 1;
  			iVar1 = 200;
  			break;
  		
  		case 211:
  			StringCopy(&Var2, "TORSO_P1_21_2", 16);
  			iVar3 = 21;
  			iVar4 = 2;
  			iVar1 = 240;
  			break;
  		
  		case 212:
  			StringCopy(&Var2, "TORSO_P1_21_3", 16);
  			iVar3 = 21;
  			iVar4 = 3;
  			iVar1 = 240;
  			break;
  		
  		case 213:
  			StringCopy(&Var2, "TORSO_P1_21_4", 16);
  			iVar3 = 21;
  			iVar4 = 4;
  			iVar1 = 260;
  			break;
  		
  		case 214:
  			StringCopy(&Var2, "TORSO_P1_21_5", 16);
  			iVar3 = 21;
  			iVar4 = 5;
  			iVar1 = 275;
  			break;
  		
  		case 215:
  			StringCopy(&Var2, "TORSO_P1_21_6", 16);
  			iVar3 = 21;
  			iVar4 = 6;
  			iVar1 = 275;
  			break;
  		
  		case 216:
  			StringCopy(&Var2, "TORSO_P1_21_7", 16);
  			iVar3 = 21;
  			iVar4 = 7;
  			iVar1 = 280;
  			break;
  		
  		case 217:
  			StringCopy(&Var2, "TORSO_P1_21_8", 16);
  			iVar3 = 21;
  			iVar4 = 8;
  			iVar1 = 280;
  			break;
  		
  		case 218:
  			StringCopy(&Var2, "TORSO_P1_21_9", 16);
  			iVar3 = 21;
  			iVar4 = 9;
  			iVar1 = 280;
  			break;
  		
  		case 219:
  			StringCopy(&Var2, "TORSO_P1_21_10", 16);
  			iVar3 = 21;
  			iVar4 = 10;
  			iVar1 = 280;
  			break;
  		
  		case 220:
  			StringCopy(&Var2, "TORSO_P1_21_11", 16);
  			iVar3 = 21;
  			iVar4 = 11;
  			iVar1 = 280;
  			break;
  		
  		case 221:
  			StringCopy(&Var2, "TORSO_P1_21_12", 16);
  			iVar3 = 21;
  			iVar4 = 12;
  			iVar1 = 280;
  			break;
  		
  		case 222:
  			StringCopy(&Var2, "TORSO_P1_21_13", 16);
  			iVar3 = 21;
  			iVar4 = 13;
  			iVar1 = 280;
  			break;
  		
  		case 223:
  			StringCopy(&Var2, "TORSO_P1_22_0", 16);
  			iVar3 = 22;
  			iVar4 = 0;
  			iVar1 = 3100;
  			iVar6 = 3;
  			break;
  		
  		case 224:
  			StringCopy(&Var2, "TORSO_P1_22_1", 16);
  			iVar3 = 22;
  			iVar4 = 1;
  			iVar1 = 2800;
  			iVar6 = 3;
  			break;
  		
  		case 225:
  			StringCopy(&Var2, "TORSO_P1_22_2", 16);
  			iVar3 = 22;
  			iVar4 = 2;
  			iVar1 = 2500;
  			iVar6 = 3;
  			break;
  		
  		case 226:
  			StringCopy(&Var2, "TORSO_P1_22_3", 16);
  			iVar3 = 22;
  			iVar4 = 3;
  			iVar1 = 3000;
  			iVar6 = 3;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_297(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 3;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "TORSO_P1_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "TORSO_P1_0_1", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "TORSO_P1_0_2", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			iVar1 = 180;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "TORSO_P1_0_3", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			iVar1 = 22;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "TORSO_P1_0_4", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			iVar1 = 20;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "TORSO_P1_0_5", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			iVar1 = 18;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "TORSO_P1_0_6", 16);
  			iVar3 = 0;
  			iVar4 = 6;
  			iVar1 = 19;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "TORSO_P1_0_7", 16);
  			iVar3 = 0;
  			iVar4 = 7;
  			iVar1 = 22;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "TORSO_P1_0_8", 16);
  			iVar3 = 0;
  			iVar4 = 8;
  			iVar1 = 20;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "TORSO_P1_0_9", 16);
  			iVar3 = 0;
  			iVar4 = 9;
  			iVar1 = 19;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "TORSO_P1_0_10", 16);
  			iVar3 = 0;
  			iVar4 = 10;
  			iVar1 = 19;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "TORSO_P1_0_11", 16);
  			iVar3 = 0;
  			iVar4 = 11;
  			iVar1 = 18;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "TORSO_P1_0_12", 16);
  			iVar3 = 0;
  			iVar4 = 12;
  			iVar1 = 20;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "TORSO_P1_0_13", 16);
  			iVar3 = 0;
  			iVar4 = 13;
  			iVar1 = 22;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "TORSO_P1_0_14", 16);
  			iVar3 = 0;
  			iVar4 = 14;
  			iVar1 = 19;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "TORSO_P1_0_15", 16);
  			iVar3 = 0;
  			iVar4 = 15;
  			iVar1 = 22;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar6 = 4;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 1;
  			bVar0 = true;
  			iVar6 = 4;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 2;
  			bVar0 = true;
  			iVar6 = 4;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 3;
  			bVar0 = true;
  			iVar6 = 4;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 4;
  			bVar0 = true;
  			iVar6 = 4;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 5;
  			bVar0 = true;
  			iVar6 = 4;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "TORSO_P1_2_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar6 = 3;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar6 = 1;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "TORSO_P1_4_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			iVar1 = 20;
  			iVar6 = 2;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "TORSO_P1_4_1", 16);
  			iVar3 = 4;
  			iVar4 = 1;
  			iVar1 = 22;
  			iVar6 = 2;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "TORSO_P1_4_2", 16);
  			iVar3 = 4;
  			iVar4 = 2;
  			iVar1 = 20;
  			iVar6 = 2;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "TORSO_P1_4_3", 16);
  			iVar3 = 4;
  			iVar4 = 3;
  			iVar1 = 25;
  			iVar6 = 2;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "TORSO_P1_4_4", 16);
  			iVar3 = 4;
  			iVar4 = 4;
  			iVar1 = 23;
  			iVar6 = 2;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "TORSO_P1_4_5", 16);
  			iVar3 = 4;
  			iVar4 = 5;
  			iVar1 = 25;
  			iVar6 = 2;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "TORSO_P1_4_6", 16);
  			iVar3 = 4;
  			iVar4 = 6;
  			iVar1 = 28;
  			iVar6 = 2;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "TORSO_P1_4_7", 16);
  			iVar3 = 4;
  			iVar4 = 7;
  			iVar1 = 26;
  			iVar6 = 2;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "TORSO_P1_4_8", 16);
  			iVar3 = 4;
  			iVar4 = 8;
  			iVar1 = 24;
  			iVar6 = 2;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "TORSO_P1_4_9", 16);
  			iVar3 = 4;
  			iVar4 = 9;
  			iVar1 = 27;
  			iVar6 = 2;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "TORSO_P1_4_10", 16);
  			iVar3 = 4;
  			iVar4 = 10;
  			iVar1 = 29;
  			iVar6 = 2;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "TORSO_P1_4_11", 16);
  			iVar3 = 4;
  			iVar4 = 11;
  			iVar1 = 28;
  			iVar6 = 2;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "TORSO_P1_4_12", 16);
  			iVar3 = 4;
  			iVar4 = 12;
  			iVar1 = 25;
  			iVar6 = 2;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "TORSO_P1_4_13", 16);
  			iVar3 = 4;
  			iVar4 = 13;
  			iVar1 = 22;
  			iVar6 = 2;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "TORSO_P1_4_14", 16);
  			iVar3 = 4;
  			iVar4 = 14;
  			iVar1 = 27;
  			iVar6 = 2;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "TORSO_P1_4_15", 16);
  			iVar3 = 4;
  			iVar4 = 15;
  			iVar1 = 29;
  			iVar6 = 2;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar6 = 4;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "TORSO_P1_6_0", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			iVar6 = 3;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "TORSO_P1_6_1", 16);
  			iVar3 = 6;
  			iVar4 = 1;
  			iVar1 = 1270;
  			iVar6 = 3;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "TORSO_P1_6_2", 16);
  			iVar3 = 6;
  			iVar4 = 2;
  			iVar1 = 1270;
  			iVar6 = 3;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "TORSO_P1_6_3", 16);
  			iVar3 = 6;
  			iVar4 = 3;
  			iVar1 = 1270;
  			iVar6 = 3;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "TORSO_P1_6_4", 16);
  			iVar3 = 6;
  			iVar4 = 4;
  			iVar1 = 1090;
  			iVar6 = 3;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "TORSO_P1_6_5", 16);
  			iVar3 = 6;
  			iVar4 = 5;
  			iVar1 = 1090;
  			iVar6 = 3;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "TORSO_P1_6_6", 16);
  			iVar3 = 6;
  			iVar4 = 6;
  			iVar1 = 1120;
  			iVar6 = 3;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "TORSO_P1_6_7", 16);
  			iVar3 = 6;
  			iVar4 = 7;
  			iVar1 = 1120;
  			iVar6 = 3;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "TORSO_P1_6_8", 16);
  			iVar3 = 6;
  			iVar4 = 8;
  			iVar1 = 1290;
  			iVar6 = 3;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "TORSO_P1_6_9", 16);
  			iVar3 = 6;
  			iVar4 = 9;
  			iVar1 = 1290;
  			iVar6 = 3;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "TORSO_P1_6_10", 16);
  			iVar3 = 6;
  			iVar4 = 10;
  			iVar1 = 1320;
  			iVar6 = 3;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "TORSO_P1_6_11", 16);
  			iVar3 = 6;
  			iVar4 = 11;
  			iVar1 = 1320;
  			iVar6 = 3;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "TORSO_P1_6_12", 16);
  			iVar3 = 6;
  			iVar4 = 12;
  			iVar1 = 1590;
  			iVar6 = 3;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "TORSO_P1_6_13", 16);
  			iVar3 = 6;
  			iVar4 = 13;
  			iVar1 = 1590;
  			iVar6 = 3;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "TORSO_P1_6_14", 16);
  			iVar3 = 6;
  			iVar4 = 14;
  			iVar1 = 1590;
  			iVar6 = 3;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "TORSO_P1_6_15", 16);
  			iVar3 = 6;
  			iVar4 = 15;
  			iVar1 = 1320;
  			iVar6 = 3;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "TORSO_P1_7_0", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			iVar1 = 98;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "TORSO_P1_7_1", 16);
  			iVar3 = 7;
  			iVar4 = 1;
  			iVar1 = 98;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "TORSO_P1_7_2", 16);
  			iVar3 = 7;
  			iVar4 = 2;
  			iVar1 = 110;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "TORSO_P1_7_3", 16);
  			iVar3 = 7;
  			iVar4 = 3;
  			iVar1 = 110;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "TORSO_P1_7_4", 16);
  			iVar3 = 7;
  			iVar4 = 4;
  			iVar1 = 118;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "TORSO_P1_7_5", 16);
  			iVar3 = 7;
  			iVar4 = 5;
  			iVar1 = 120;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "TORSO_P1_7_6", 16);
  			iVar3 = 7;
  			iVar4 = 6;
  			iVar1 = 120;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "TORSO_P1_7_7", 16);
  			iVar3 = 7;
  			iVar4 = 7;
  			iVar1 = 129;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "TORSO_P1_7_8", 16);
  			iVar3 = 7;
  			iVar4 = 8;
  			iVar1 = 125;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "TORSO_P1_7_9", 16);
  			iVar3 = 7;
  			iVar4 = 9;
  			iVar1 = 125;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "TORSO_P1_7_10", 16);
  			iVar3 = 7;
  			iVar4 = 10;
  			iVar1 = 129;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "TORSO_P1_7_11", 16);
  			iVar3 = 7;
  			iVar4 = 11;
  			iVar1 = 129;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "TORSO_P1_7_12", 16);
  			iVar3 = 7;
  			iVar4 = 12;
  			iVar1 = 135;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "TORSO_P1_7_13", 16);
  			iVar3 = 7;
  			iVar4 = 13;
  			iVar1 = 139;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "TORSO_P1_7_14", 16);
  			iVar3 = 7;
  			iVar4 = 14;
  			iVar1 = 145;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "TORSO_P1_7_15", 16);
  			iVar3 = 7;
  			iVar4 = 15;
  			iVar1 = 145;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "TORSO_P1_8_0", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "TORSO_P1_8_1", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "TORSO_P1_8_2", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "TORSO_P1_8_3", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "TORSO_P1_8_4", 16);
  			iVar3 = 8;
  			iVar4 = 4;
  			iVar1 = 30;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "TORSO_P1_8_5", 16);
  			iVar3 = 8;
  			iVar4 = 5;
  			iVar1 = 38;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "TORSO_P1_8_6", 16);
  			iVar3 = 8;
  			iVar4 = 6;
  			iVar1 = 32;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "TORSO_P1_8_7", 16);
  			iVar3 = 8;
  			iVar4 = 7;
  			iVar1 = 30;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "TORSO_P1_8_8", 16);
  			iVar3 = 8;
  			iVar4 = 8;
  			iVar1 = 33;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "TORSO_P1_8_9", 16);
  			iVar3 = 8;
  			iVar4 = 9;
  			iVar1 = 35;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "TORSO_P1_8_10", 16);
  			iVar3 = 8;
  			iVar4 = 10;
  			iVar1 = 35;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "TORSO_P1_8_11", 16);
  			iVar3 = 8;
  			iVar4 = 11;
  			iVar1 = 38;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "TORSO_P1_8_12", 16);
  			iVar3 = 8;
  			iVar4 = 12;
  			iVar1 = 33;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "TORSO_P1_8_13", 16);
  			iVar3 = 8;
  			iVar4 = 13;
  			iVar1 = 35;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "TORSO_P1_8_14", 16);
  			iVar3 = 8;
  			iVar4 = 14;
  			iVar1 = 38;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "TORSO_P1_8_15", 16);
  			iVar3 = 8;
  			iVar4 = 15;
  			iVar1 = 32;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "TORSO_P1_11_0", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "TORSO_P1_11_1", 16);
  			iVar3 = 11;
  			iVar4 = 1;
  			iVar1 = 59;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "TORSO_P1_11_2", 16);
  			iVar3 = 11;
  			iVar4 = 2;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "TORSO_P1_11_3", 16);
  			iVar3 = 11;
  			iVar4 = 3;
  			iVar1 = 25;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "TORSO_P1_11_4", 16);
  			iVar3 = 11;
  			iVar4 = 4;
  			iVar1 = 29;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "TORSO_P1_11_5", 16);
  			iVar3 = 11;
  			iVar4 = 5;
  			iVar1 = 27;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "TORSO_P1_11_6", 16);
  			iVar3 = 11;
  			iVar4 = 6;
  			iVar1 = 25;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "TORSO_P1_11_7", 16);
  			iVar3 = 11;
  			iVar4 = 7;
  			iVar1 = 27;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "TORSO_P1_11_8", 16);
  			iVar3 = 11;
  			iVar4 = 8;
  			iVar1 = 28;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "TORSO_P1_11_9", 16);
  			iVar3 = 11;
  			iVar4 = 9;
  			iVar1 = 30;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "TORSO_P1_11_10", 16);
  			iVar3 = 11;
  			iVar4 = 10;
  			iVar1 = 29;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "TORSO_P1_11_11", 16);
  			iVar3 = 11;
  			iVar4 = 11;
  			iVar1 = 27;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "TORSO_P1_11_12", 16);
  			iVar3 = 11;
  			iVar4 = 12;
  			iVar1 = 29;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "TORSO_P1_11_13", 16);
  			iVar3 = 11;
  			iVar4 = 13;
  			iVar1 = 32;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "TORSO_P1_11_14", 16);
  			iVar3 = 11;
  			iVar4 = 14;
  			iVar1 = 30;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "TORSO_P1_11_15", 16);
  			iVar3 = 11;
  			iVar4 = 15;
  			iVar1 = 28;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_298(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 2;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "HAIR_P1_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "HAIR_P1_0_1", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "HAIR_P1_0_2", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "HAIR_P1_0_3", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			iVar6 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "HAIR_P1_0_4", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			iVar6 = 3;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "HAIR_P1_0_5", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			iVar6 = 3;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "HAIR_P1_0_6", 16);
  			iVar3 = 0;
  			iVar4 = 6;
  			iVar6 = 3;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "HAIR_P1_0_7", 16);
  			iVar3 = 0;
  			iVar4 = 7;
  			iVar6 = 3;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "HAIR_P1_0_8", 16);
  			iVar3 = 0;
  			iVar4 = 8;
  			iVar6 = 3;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "HAIR_P1_0_9", 16);
  			iVar3 = 0;
  			iVar4 = 9;
  			iVar6 = 3;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "HAIR_P1_0_10", 16);
  			iVar3 = 0;
  			iVar4 = 10;
  			iVar6 = 3;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "HAIR_P1_0_11", 16);
  			iVar3 = 0;
  			iVar4 = 11;
  			iVar6 = 3;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "HAIR_P1_0_12", 16);
  			iVar3 = 0;
  			iVar4 = 12;
  			iVar6 = 3;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "HAIR_P1_0_13", 16);
  			iVar3 = 0;
  			iVar4 = 13;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "HAIR_P1_0_14", 16);
  			iVar3 = 0;
  			iVar4 = 14;
  			iVar6 = 3;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "HAIR_P1_0_15", 16);
  			iVar3 = 0;
  			iVar4 = 15;
  			iVar6 = 3;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "HAIR_P1_1_0", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			iVar6 = 3;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "HAIR_P1_2_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			iVar6 = 3;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "HAIR_P1_3_0", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			iVar6 = 3;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "HAIR_P1_4_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 21, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_299(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 0;
  	Global_76647[0 /*14*/].f_5 = 1;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 8;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 9;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 10, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_300(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_317(iParam1);
  			break;
  		
  		case 2:
  			func_316(iParam1);
  			break;
  		
  		case 3:
  			func_313(iParam1);
  			break;
  		
  		case 4:
  			func_312(iParam1);
  			break;
  		
  		case 6:
  			func_311(iParam1);
  			break;
  		
  		case 5:
  			func_310(iParam1);
  			break;
  		
  		case 8:
  			func_309(iParam1);
  			break;
  		
  		case 9:
  			func_308(iParam1);
  			break;
  		
  		case 10:
  			func_307(iParam1);
  			break;
  		
  		case 1:
  			func_306(iParam1);
  			break;
  		
  		case 7:
  			func_305(iParam1);
  			break;
  		
  		case 11:
  			func_304(iParam1);
  			break;
  		
  		case 12:
  			func_303(iParam1);
  			break;
  		
  		case 13:
  			func_302(iParam1);
  			break;
  		
  		case 14:
  			func_301(iParam1);
  			break;
  	}
  }
  
  void func_301(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 14;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = -1;
  			iVar4 = 0;
  			iVar1 = 0;
  			iVar5 = 8;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "PROPS_P0_H1", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "PROPS_P0_H2", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			iVar1 = 320;
  			iVar5 = 11;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 1;
  			iVar5 = 0;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 2;
  			iVar5 = 0;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 3;
  			iVar5 = 0;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 4;
  			iVar5 = 0;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 5;
  			iVar5 = 0;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 6;
  			iVar5 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 7;
  			iVar5 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "PROPS_P0_H12", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			iVar1 = 270;
  			iVar5 = 0;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
  			iVar3 = 14;
  			iVar4 = 1;
  			iVar1 = 270;
  			iVar5 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			iVar1 = 200;
  			iVar5 = 0;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
  			iVar3 = 15;
  			iVar4 = 1;
  			iVar1 = 200;
  			iVar5 = 0;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			iVar1 = 350;
  			iVar5 = 0;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
  			iVar3 = 16;
  			iVar4 = 1;
  			iVar1 = 350;
  			iVar5 = 0;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			iVar1 = 450;
  			iVar5 = 0;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			iVar1 = 500;
  			iVar5 = 0;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
  			iVar3 = 18;
  			iVar4 = 1;
  			iVar1 = 500;
  			iVar5 = 0;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			iVar1 = 50;
  			iVar5 = 0;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
  			iVar3 = 19;
  			iVar4 = 1;
  			iVar1 = 50;
  			iVar5 = 0;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			iVar1 = 99;
  			iVar5 = 0;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
  			iVar3 = 20;
  			iVar4 = 1;
  			iVar1 = 99;
  			iVar5 = 0;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
  			iVar3 = 20;
  			iVar4 = 2;
  			iVar1 = 99;
  			iVar5 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 22;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 1;
  			iVar5 = 0;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 2;
  			iVar5 = 0;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 3;
  			iVar5 = 0;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 4;
  			iVar5 = 0;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 5;
  			iVar5 = 0;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 24;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 25;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 27;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 28;
  			iVar4 = 0;
  			iVar5 = 0;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "PROPS_P0_E0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 45;
  			iVar5 = 10;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 10;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 10;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "PROPS_P0_E3", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			iVar1 = 55;
  			iVar5 = 10;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "PROPS_P0_E4", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			iVar1 = 58;
  			iVar5 = 10;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "PROPS_P0_E4_1", 16);
  			iVar3 = 4;
  			iVar4 = 1;
  			iVar1 = 56;
  			iVar5 = 10;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "PROPS_P0_E4_2", 16);
  			iVar3 = 4;
  			iVar4 = 2;
  			iVar1 = 60;
  			iVar5 = 10;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "PROPS_P0_E4_3", 16);
  			iVar3 = 4;
  			iVar4 = 3;
  			iVar1 = 65;
  			iVar5 = 10;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "PROPS_P0_E4_4", 16);
  			iVar3 = 4;
  			iVar4 = 4;
  			iVar1 = 62;
  			iVar5 = 10;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "PROPS_P0_E4_5", 16);
  			iVar3 = 4;
  			iVar4 = 5;
  			iVar1 = 65;
  			iVar5 = 10;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "PROPS_P0_E4_6", 16);
  			iVar3 = 4;
  			iVar4 = 6;
  			iVar1 = 68;
  			iVar5 = 10;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "PROPS_P0_E4_7", 16);
  			iVar3 = 4;
  			iVar4 = 7;
  			iVar1 = 68;
  			iVar5 = 10;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "PROPS_P0_E5", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			iVar1 = 65;
  			iVar5 = 10;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "PROPS_P0_E5_1", 16);
  			iVar3 = 5;
  			iVar4 = 1;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "PROPS_P0_E5_2", 16);
  			iVar3 = 5;
  			iVar4 = 2;
  			iVar1 = 72;
  			iVar5 = 10;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "PROPS_P0_E5_3", 16);
  			iVar3 = 5;
  			iVar4 = 3;
  			iVar1 = 70;
  			iVar5 = 10;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "PROPS_P0_E5_4", 16);
  			iVar3 = 5;
  			iVar4 = 4;
  			iVar1 = 74;
  			iVar5 = 10;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "PROPS_P0_E5_5", 16);
  			iVar3 = 5;
  			iVar4 = 5;
  			iVar1 = 78;
  			iVar5 = 10;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "PROPS_P0_E5_6", 16);
  			iVar3 = 5;
  			iVar4 = 6;
  			iVar1 = 82;
  			iVar5 = 10;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "PROPS_P0_E5_7", 16);
  			iVar3 = 5;
  			iVar4 = 7;
  			iVar1 = 85;
  			iVar5 = 10;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "PROPS_P0_E5_8", 16);
  			iVar3 = 5;
  			iVar4 = 8;
  			iVar1 = 85;
  			iVar5 = 10;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "PROPS_P0_E5_9", 16);
  			iVar3 = 5;
  			iVar4 = 9;
  			iVar5 = 10;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "PROPS_P0_E6", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "PROPS_P0_E6_1", 16);
  			iVar3 = 6;
  			iVar4 = 1;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "PROPS_P0_E6_2", 16);
  			iVar3 = 6;
  			iVar4 = 2;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "PROPS_P0_E6_3", 16);
  			iVar3 = 6;
  			iVar4 = 3;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "PROPS_P0_E6_4", 16);
  			iVar3 = 6;
  			iVar4 = 4;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "PROPS_P0_E6_5", 16);
  			iVar3 = 6;
  			iVar4 = 5;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "PROPS_P0_E6_6", 16);
  			iVar3 = 6;
  			iVar4 = 6;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "PROPS_P0_E6_7", 16);
  			iVar3 = 6;
  			iVar4 = 7;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "PROPS_P0_E6_8", 16);
  			iVar3 = 6;
  			iVar4 = 8;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "PROPS_P0_E6_9", 16);
  			iVar3 = 6;
  			iVar4 = 9;
  			iVar1 = 69;
  			iVar5 = 10;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "PROPS_P0_E7", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			iVar5 = 10;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "PROPS_P0_E8", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			iVar1 = 170;
  			iVar5 = 10;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "PROPS_P0_E8_1", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			iVar1 = 175;
  			iVar5 = 10;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "PROPS_P0_E8_2", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			iVar1 = 180;
  			iVar5 = 10;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "PROPS_P0_E8_3", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			iVar1 = 185;
  			iVar5 = 10;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "PROPS_P0_E8_4", 16);
  			iVar3 = 8;
  			iVar4 = 4;
  			iVar1 = 189;
  			iVar5 = 10;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "PROPS_P0_E8_5", 16);
  			iVar3 = 8;
  			iVar4 = 5;
  			iVar1 = 195;
  			iVar5 = 10;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "PROPS_P0_E8_6", 16);
  			iVar3 = 8;
  			iVar4 = 6;
  			iVar1 = 235;
  			iVar5 = 10;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "PROPS_P0_E8_7", 16);
  			iVar3 = 8;
  			iVar4 = 7;
  			iVar1 = 245;
  			iVar5 = 10;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "PROPS_P0_E8_8", 16);
  			iVar3 = 8;
  			iVar4 = 8;
  			iVar1 = 250;
  			iVar5 = 10;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "PROPS_P0_E8_9", 16);
  			iVar3 = 8;
  			iVar4 = 9;
  			iVar1 = 275;
  			iVar5 = 10;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "PROPS_P0_E8_10", 16);
  			iVar3 = 8;
  			iVar4 = 10;
  			iVar1 = 280;
  			iVar5 = 10;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "PROPS_P0_E8_11", 16);
  			iVar3 = 8;
  			iVar4 = 11;
  			iVar1 = 295;
  			iVar5 = 10;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "PROPS_P0_E9", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			iVar1 = 179;
  			iVar5 = 10;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "PROPS_P0_E9_1", 16);
  			iVar3 = 9;
  			iVar4 = 1;
  			iVar1 = 159;
  			iVar5 = 10;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "PROPS_P0_E9_2", 16);
  			iVar3 = 9;
  			iVar4 = 2;
  			iVar1 = 165;
  			iVar5 = 10;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "PROPS_P0_E9_3", 16);
  			iVar3 = 9;
  			iVar4 = 3;
  			iVar1 = 155;
  			iVar5 = 10;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "PROPS_P0_E9_4", 16);
  			iVar3 = 9;
  			iVar4 = 4;
  			iVar1 = 175;
  			iVar5 = 10;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "PROPS_P0_E9_5", 16);
  			iVar3 = 9;
  			iVar4 = 5;
  			iVar1 = 185;
  			iVar5 = 10;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "PROPS_P0_E9_6", 16);
  			iVar3 = 9;
  			iVar4 = 6;
  			iVar1 = 189;
  			iVar5 = 10;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "PROPS_P0_E9_7", 16);
  			iVar3 = 9;
  			iVar4 = 7;
  			iVar1 = 225;
  			iVar5 = 10;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			iVar1 = 100;
  			iVar5 = 10;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			iVar5 = 2;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 113, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_302(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 13;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 10, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_303(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 12;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "OUTFIT_P0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "OUTFIT_P0_1", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "OUTFIT_P0_4", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "OUTFIT_P0_7", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "OUTFIT_P0_8", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "OUTFIT_P0_9", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "OUTFIT_P0_11", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "OUTFIT_P0_12", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "OUTFIT_P0_14", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "OUTFIT_P0_17", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "OUTFIT_P0_18", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "OUTFIT_P0_19", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "OUTFIT_P0_20", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "OUTFIT_P0_22", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 10000;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "OUTFIT_P0_23", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "OUTFIT_P0_24", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "OUTFIT_P0_26", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "OUTFIT_P0_28", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "OUTFIT_P0_29", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "OUTFIT_P0_30", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 105;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "OUTFIT_P0_31", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "OUTFIT_P0_32", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "OUTFIT_P0_33", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "OUTFIT_P0_34", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "OUTFIT_P0_35", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "OUTFIT_P0_11", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "OUTFIT_P0_36", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4900;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "OUTFIT_P0_37", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 840;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "OUTFIT_P0_38", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "OUTFIT_P0_39", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "OUTFIT_P0_40", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "OUTFIT_P0_41", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "OUTFIT_P0_42", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "OUTFIT_P0_43", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "OUTFIT_P0_44", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 3900;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "OUTFIT_P0_45", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4000;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "OUTFIT_P0_46", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "OUTFIT_P0_47", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4600;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "OUTFIT_P0_48", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5500;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "OUTFIT_P0_49", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4400;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "OUTFIT_P0_50", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4400;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "OUTFIT_P0_51", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4900;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "OUTFIT_P0_52", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5500;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "OUTFIT_P0_53", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 4500;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "OUTFIT_P0_54", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			iVar1 = 5900;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "OUTFIT_P0_55", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "OUTFIT_P0_17", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 53, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_304(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 11;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "JBIB_P0_02_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "JBIB_P0_02_1", 16);
  			iVar3 = 2;
  			iVar4 = 1;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "JBIB_P0_02_2", 16);
  			iVar3 = 2;
  			iVar4 = 2;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "JBIB_P0_02_3", 16);
  			iVar3 = 2;
  			iVar4 = 3;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "JBIB_P0_02_4", 16);
  			iVar3 = 2;
  			iVar4 = 4;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "JBIB_P0_02_5", 16);
  			iVar3 = 2;
  			iVar4 = 5;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "JBIB_P0_03_0", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			iVar1 = 390;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "JBIB_P0_03_1", 16);
  			iVar3 = 3;
  			iVar4 = 1;
  			iVar1 = 390;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "JBIB_P0_03_2", 16);
  			iVar3 = 3;
  			iVar4 = 2;
  			iVar1 = 420;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "JBIB_P0_03_3", 16);
  			iVar3 = 3;
  			iVar4 = 3;
  			iVar1 = 420;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "JBIB_P0_03_4", 16);
  			iVar3 = 3;
  			iVar4 = 4;
  			iVar1 = 490;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "JBIB_P0_03_5", 16);
  			iVar3 = 3;
  			iVar4 = 5;
  			iVar1 = 490;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "JBIB_P0_03_6", 16);
  			iVar3 = 3;
  			iVar4 = 6;
  			iVar1 = 540;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "JBIB_P0_03_7", 16);
  			iVar3 = 3;
  			iVar4 = 7;
  			iVar1 = 540;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "JBIB_P0_03_8", 16);
  			iVar3 = 3;
  			iVar4 = 8;
  			iVar1 = 550;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "JBIB_P0_03_9", 16);
  			iVar3 = 3;
  			iVar4 = 9;
  			iVar1 = 540;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "JBIB_P0_04_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			iVar1 = 850;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "JBIB_P0_04_1", 16);
  			iVar3 = 4;
  			iVar4 = 1;
  			iVar1 = 850;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "JBIB_P0_04_2", 16);
  			iVar3 = 4;
  			iVar4 = 2;
  			iVar1 = 890;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "JBIB_P0_04_3", 16);
  			iVar3 = 4;
  			iVar4 = 3;
  			iVar1 = 890;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "JBIB_P0_04_4", 16);
  			iVar3 = 4;
  			iVar4 = 4;
  			iVar1 = 920;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "JBIB_P0_04_5", 16);
  			iVar3 = 4;
  			iVar4 = 5;
  			iVar1 = 920;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "JBIB_P0_04_6", 16);
  			iVar3 = 4;
  			iVar4 = 6;
  			iVar1 = 950;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "JBIB_P0_04_7", 16);
  			iVar3 = 4;
  			iVar4 = 7;
  			iVar1 = 980;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "JBIB_P0_04_8", 16);
  			iVar3 = 4;
  			iVar4 = 8;
  			iVar1 = 1050;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "JBIB_P0_04_9", 16);
  			iVar3 = 4;
  			iVar4 = 9;
  			iVar1 = 1100;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "JBIB_P0_05_0", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			iVar1 = 1890;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "JBIB_P0_05_1", 16);
  			iVar3 = 5;
  			iVar4 = 1;
  			iVar1 = 1820;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "JBIB_P0_05_2", 16);
  			iVar3 = 5;
  			iVar4 = 2;
  			iVar1 = 1820;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "JBIB_P0_05_3", 16);
  			iVar3 = 5;
  			iVar4 = 3;
  			iVar1 = 1850;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "JBIB_P0_05_4", 16);
  			iVar3 = 5;
  			iVar4 = 4;
  			iVar1 = 1850;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "JBIB_P0_05_5", 16);
  			iVar3 = 5;
  			iVar4 = 5;
  			iVar1 = 1900;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "JBIB_P0_05_6", 16);
  			iVar3 = 5;
  			iVar4 = 6;
  			iVar1 = 1920;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "JBIB_P0_05_7", 16);
  			iVar3 = 5;
  			iVar4 = 7;
  			iVar1 = 1980;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "JBIB_P0_05_8", 16);
  			iVar3 = 5;
  			iVar4 = 8;
  			iVar1 = 2100;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "JBIB_P0_05_9", 16);
  			iVar3 = 5;
  			iVar4 = 9;
  			iVar1 = 2120;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "JBIB_P0_05_10", 16);
  			iVar3 = 5;
  			iVar4 = 10;
  			iVar1 = 2000;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "JBIB_P0_05_11", 16);
  			iVar3 = 5;
  			iVar4 = 11;
  			iVar1 = 2200;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "JBIB_P0_05_12", 16);
  			iVar3 = 5;
  			iVar4 = 12;
  			iVar1 = 2280;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "JBIB_P0_05_13", 16);
  			iVar3 = 5;
  			iVar4 = 13;
  			iVar1 = 2300;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "JBIB_P0_05_14", 16);
  			iVar3 = 5;
  			iVar4 = 14;
  			iVar1 = 2350;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "JBIB_P0_05_15", 16);
  			iVar3 = 5;
  			iVar4 = 15;
  			iVar1 = 2280;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "JBIB_P0_06_0", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 45, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_305(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 7;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_306(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 1;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "BERD_P0_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "BERD_P0_1_0", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "BERD_P0_2_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "BERD_P0_3_0", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "BERD_P0_4_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 5, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_307(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 10;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 1;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 2;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 3;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 4;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 5;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 6;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 7;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 4;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 5;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 1;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 2;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 3;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 4;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 5;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 6;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 1;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 2;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 3;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 4;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 5;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 6;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 7;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "DECL_P0_10_8", 16);
  			iVar3 = 10;
  			iVar4 = 8;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "DECL_P0_10_9", 16);
  			iVar3 = 10;
  			iVar4 = 9;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "DECL_P0_10_10", 16);
  			iVar3 = 10;
  			iVar4 = 10;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "DECL_P0_10_11", 16);
  			iVar3 = 10;
  			iVar4 = 11;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "DECL_P0_10_12", 16);
  			iVar3 = 10;
  			iVar4 = 12;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "DECL_P0_10_13", 16);
  			iVar3 = 10;
  			iVar4 = 13;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "DECL_P0_10_14", 16);
  			iVar3 = 10;
  			iVar4 = 14;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "DECL_P0_10_15", 16);
  			iVar3 = 10;
  			iVar4 = 15;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 1;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 2;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 3;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 48, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_308(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 9;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 1;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			iVar1 = 125;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			iVar1 = 150;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			iVar1 = 175;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			iVar1 = 85;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
  			iVar3 = 8;
  			iVar4 = 4;
  			iVar1 = 150;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
  			iVar3 = 8;
  			iVar4 = 5;
  			iVar1 = 175;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 20, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_309(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 8;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "SPEC_P0_10", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "SPEC_P0_16", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 22;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 23;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 24, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_310(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 5;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 2;
  			bVar0 = true;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 3;
  			bVar0 = true;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 4;
  			bVar0 = true;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 14, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_311(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 6;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "FEET_P0_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "FEET_P0_0_1", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			iVar1 = 665;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "FEET_P0_0_2", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			iVar1 = 620;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "FEET_P0_0_3", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			iVar1 = 540;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "FEET_P0_0_4", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			iVar1 = 580;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "FEET_P0_0_5", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			iVar1 = 650;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "FEET_P0_13_0", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "FEET_P0_15_0", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "FEET_P0_15_1", 16);
  			iVar3 = 15;
  			iVar4 = 1;
  			iVar1 = 64;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "FEET_P0_15_2", 16);
  			iVar3 = 15;
  			iVar4 = 2;
  			iVar1 = 56;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "FEET_P0_15_3", 16);
  			iVar3 = 15;
  			iVar4 = 3;
  			iVar1 = 69;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "FEET_P0_15_4", 16);
  			iVar3 = 15;
  			iVar4 = 4;
  			iVar1 = 59;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "FEET_P0_15_5", 16);
  			iVar3 = 15;
  			iVar4 = 5;
  			iVar1 = 62;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "FEET_P0_15_6", 16);
  			iVar3 = 15;
  			iVar4 = 6;
  			iVar1 = 74;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "FEET_P0_15_7", 16);
  			iVar3 = 15;
  			iVar4 = 7;
  			iVar1 = 68;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "FEET_P0_15_8", 16);
  			iVar3 = 15;
  			iVar4 = 8;
  			iVar1 = 72;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "FEET_P0_15_9", 16);
  			iVar3 = 15;
  			iVar4 = 9;
  			iVar1 = 70;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "FEET_P0_16_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			iVar1 = 48;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "FEET_P0_16_1", 16);
  			iVar3 = 16;
  			iVar4 = 1;
  			iVar1 = 48;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "FEET_P0_16_2", 16);
  			iVar3 = 16;
  			iVar4 = 2;
  			iVar1 = 55;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "FEET_P0_16_3", 16);
  			iVar3 = 16;
  			iVar4 = 3;
  			iVar1 = 75;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "FEET_P0_16_4", 16);
  			iVar3 = 16;
  			iVar4 = 4;
  			iVar1 = 65;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "FEET_P0_16_5", 16);
  			iVar3 = 16;
  			iVar4 = 5;
  			iVar1 = 68;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "FEET_P0_16_6", 16);
  			iVar3 = 16;
  			iVar4 = 6;
  			iVar1 = 58;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "FEET_P0_16_7", 16);
  			iVar3 = 16;
  			iVar4 = 7;
  			iVar1 = 68;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "FEET_P0_18_0", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			iVar1 = 790;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "FEET_P0_18_1", 16);
  			iVar3 = 18;
  			iVar4 = 1;
  			iVar1 = 750;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "FEET_P0_18_2", 16);
  			iVar3 = 18;
  			iVar4 = 2;
  			iVar1 = 860;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "FEET_P0_18_3", 16);
  			iVar3 = 18;
  			iVar4 = 3;
  			iVar1 = 750;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "FEET_P0_18_4", 16);
  			iVar3 = 18;
  			iVar4 = 4;
  			iVar1 = 790;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "FEET_P0_18_5", 16);
  			iVar3 = 18;
  			iVar4 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "FEET_P0_18_6", 16);
  			iVar3 = 18;
  			iVar4 = 6;
  			iVar1 = 820;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "FEET_P0_18_7", 16);
  			iVar3 = 18;
  			iVar4 = 7;
  			iVar1 = 800;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "FEET_P0_18_8", 16);
  			iVar3 = 18;
  			iVar4 = 8;
  			iVar1 = 850;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "FEET_P0_18_9", 16);
  			iVar3 = 18;
  			iVar4 = 9;
  			iVar1 = 870;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "FEET_P0_18_10", 16);
  			iVar3 = 18;
  			iVar4 = 10;
  			iVar1 = 720;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "FEET_P0_18_11", 16);
  			iVar3 = 18;
  			iVar4 = 11;
  			iVar1 = 740;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "FEET_P0_18_12", 16);
  			iVar3 = 18;
  			iVar4 = 12;
  			iVar1 = 800;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "FEET_P0_18_13", 16);
  			iVar3 = 18;
  			iVar4 = 13;
  			iVar1 = 750;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "FEET_P0_18_14", 16);
  			iVar3 = 18;
  			iVar4 = 14;
  			iVar1 = 770;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "FEET_P0_18_15", 16);
  			iVar3 = 18;
  			iVar4 = 15;
  			iVar1 = 860;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "FEET_P0_19_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			iVar1 = 850;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "FEET_P0_19_1", 16);
  			iVar3 = 19;
  			iVar4 = 1;
  			iVar1 = 800;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "FEET_P0_19_2", 16);
  			iVar3 = 19;
  			iVar4 = 2;
  			iVar1 = 780;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "FEET_P0_19_3", 16);
  			iVar3 = 19;
  			iVar4 = 3;
  			iVar1 = 890;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "FEET_P0_19_4", 16);
  			iVar3 = 19;
  			iVar4 = 4;
  			iVar1 = 820;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "FEET_P0_19_5", 16);
  			iVar3 = 19;
  			iVar4 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "FEET_P0_19_6", 16);
  			iVar3 = 19;
  			iVar4 = 6;
  			iVar1 = 870;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "FEET_P0_19_7", 16);
  			iVar3 = 19;
  			iVar4 = 7;
  			iVar1 = 930;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "FEET_P0_19_8", 16);
  			iVar3 = 19;
  			iVar4 = 8;
  			iVar1 = 880;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "FEET_P0_19_9", 16);
  			iVar3 = 19;
  			iVar4 = 9;
  			iVar1 = 900;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "FEET_P0_19_10", 16);
  			iVar3 = 19;
  			iVar4 = 10;
  			iVar1 = 920;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "FEET_P0_19_11", 16);
  			iVar3 = 19;
  			iVar4 = 11;
  			iVar1 = 970;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "FEET_P0_19_12", 16);
  			iVar3 = 19;
  			iVar4 = 12;
  			iVar1 = 990;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "FEET_P0_19_13", 16);
  			iVar3 = 19;
  			iVar4 = 13;
  			iVar1 = 960;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "FEET_P0_19_14", 16);
  			iVar3 = 19;
  			iVar4 = 14;
  			iVar1 = 980;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "FEET_P0_19_15", 16);
  			iVar3 = 19;
  			iVar4 = 15;
  			iVar1 = 950;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "FEET_P0_20_0", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			iVar1 = 110;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "FEET_P0_20_1", 16);
  			iVar3 = 20;
  			iVar4 = 1;
  			iVar1 = 115;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "FEET_P0_20_2", 16);
  			iVar3 = 20;
  			iVar4 = 2;
  			iVar1 = 120;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "FEET_P0_20_3", 16);
  			iVar3 = 20;
  			iVar4 = 3;
  			iVar1 = 110;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "FEET_P0_20_4", 16);
  			iVar3 = 20;
  			iVar4 = 4;
  			iVar1 = 125;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "FEET_P0_20_5", 16);
  			iVar3 = 20;
  			iVar4 = 5;
  			iVar1 = 128;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "FEET_P0_20_6", 16);
  			iVar3 = 20;
  			iVar4 = 6;
  			iVar1 = 135;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "FEET_P0_20_7", 16);
  			iVar3 = 20;
  			iVar4 = 7;
  			iVar1 = 130;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "FEET_P0_20_8", 16);
  			iVar3 = 20;
  			iVar4 = 8;
  			iVar1 = 145;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "FEET_P0_20_9", 16);
  			iVar3 = 20;
  			iVar4 = 9;
  			iVar1 = 110;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "FEET_P0_20_10", 16);
  			iVar3 = 20;
  			iVar4 = 10;
  			iVar1 = 120;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "FEET_P0_20_11", 16);
  			iVar3 = 20;
  			iVar4 = 11;
  			iVar1 = 150;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "FEET_P0_20_12", 16);
  			iVar3 = 20;
  			iVar4 = 12;
  			iVar1 = 125;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "FEET_P0_20_13", 16);
  			iVar3 = 20;
  			iVar4 = 13;
  			iVar1 = 120;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "FEET_P0_20_14", 16);
  			iVar3 = 20;
  			iVar4 = 14;
  			iVar1 = 130;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "FEET_P0_20_15", 16);
  			iVar3 = 20;
  			iVar4 = 15;
  			iVar1 = 110;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "FEET_P0_21_0", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			iVar1 = 720;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "FEET_P0_21_1", 16);
  			iVar3 = 21;
  			iVar4 = 1;
  			iVar1 = 680;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "FEET_P0_21_2", 16);
  			iVar3 = 21;
  			iVar4 = 2;
  			iVar1 = 650;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "FEET_P0_21_3", 16);
  			iVar3 = 21;
  			iVar4 = 3;
  			iVar1 = 670;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "FEET_P0_21_4", 16);
  			iVar3 = 21;
  			iVar4 = 4;
  			iVar1 = 700;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "FEET_P0_21_5", 16);
  			iVar3 = 21;
  			iVar4 = 5;
  			iVar1 = 680;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "FEET_P0_21_6", 16);
  			iVar3 = 21;
  			iVar4 = 6;
  			iVar1 = 720;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "FEET_P0_21_7", 16);
  			iVar3 = 21;
  			iVar4 = 7;
  			iVar1 = 740;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "FEET_P0_21_8", 16);
  			iVar3 = 21;
  			iVar4 = 8;
  			iVar1 = 760;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "FEET_P0_21_9", 16);
  			iVar3 = 21;
  			iVar4 = 9;
  			iVar1 = 780;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "FEET_P0_21_10", 16);
  			iVar3 = 21;
  			iVar4 = 10;
  			iVar1 = 750;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "FEET_P0_21_11", 16);
  			iVar3 = 21;
  			iVar4 = 11;
  			iVar1 = 700;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 99, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_312(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 4;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "LEGS_P0_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "LEGS_P0_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "LEGS_P0_0_2", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "LEGS_P0_0_3", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "LEGS_P0_0_4", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "LEGS_P0_0_5", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "LEGS_P0_0_6", 16);
  			iVar3 = 0;
  			iVar4 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "LEGS_P0_0_7", 16);
  			iVar3 = 0;
  			iVar4 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "LEGS_P0_0_8", 16);
  			iVar3 = 0;
  			iVar4 = 8;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "LEGS_P0_0_9", 16);
  			iVar3 = 0;
  			iVar4 = 9;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "LEGS_P0_0_10", 16);
  			iVar3 = 0;
  			iVar4 = 10;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "LEGS_P0_0_11", 16);
  			iVar3 = 0;
  			iVar4 = 11;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "LEGS_P0_0_12", 16);
  			iVar3 = 0;
  			iVar4 = 12;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "LEGS_P0_0_13", 16);
  			iVar3 = 0;
  			iVar4 = 13;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "LEGS_P0_0_14", 16);
  			iVar3 = 0;
  			iVar4 = 14;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "LEGS_P0_0_15", 16);
  			iVar3 = 0;
  			iVar4 = 15;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "LEGS_P0_7_0", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			iVar1 = 115;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "LEGS_P0_7_1", 16);
  			iVar3 = 7;
  			iVar4 = 1;
  			iVar1 = 115;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "LEGS_P0_7_2", 16);
  			iVar3 = 7;
  			iVar4 = 2;
  			iVar1 = 128;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "LEGS_P0_7_3", 16);
  			iVar3 = 7;
  			iVar4 = 3;
  			iVar1 = 118;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "LEGS_P0_7_4", 16);
  			iVar3 = 7;
  			iVar4 = 4;
  			iVar1 = 125;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "LEGS_P0_7_5", 16);
  			iVar3 = 7;
  			iVar4 = 5;
  			iVar1 = 128;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "LEGS_P0_7_6", 16);
  			iVar3 = 7;
  			iVar4 = 6;
  			iVar1 = 128;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "LEGS_P0_7_7", 16);
  			iVar3 = 7;
  			iVar4 = 7;
  			iVar1 = 125;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 2;
  			bVar0 = true;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 3;
  			bVar0 = true;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 4;
  			bVar0 = true;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 5;
  			bVar0 = true;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "LEGS_P0_13_0", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			iVar1 = 68;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "LEGS_P0_13_1", 16);
  			iVar3 = 13;
  			iVar4 = 1;
  			iVar1 = 68;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "LEGS_P0_13_2", 16);
  			iVar3 = 13;
  			iVar4 = 2;
  			iVar1 = 68;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "LEGS_P0_13_3", 16);
  			iVar3 = 13;
  			iVar4 = 3;
  			iVar1 = 68;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "LEGS_P0_13_4", 16);
  			iVar3 = 13;
  			iVar4 = 4;
  			iVar1 = 68;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "LEGS_P0_15_0", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "LEGS_P0_15_1", 16);
  			iVar3 = 15;
  			iVar4 = 1;
  			iVar1 = 550;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "LEGS_P0_15_2", 16);
  			iVar3 = 15;
  			iVar4 = 2;
  			iVar1 = 650;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "LEGS_P0_15_3", 16);
  			iVar3 = 15;
  			iVar4 = 3;
  			iVar1 = 875;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "LEGS_P0_15_4", 16);
  			iVar3 = 15;
  			iVar4 = 4;
  			iVar1 = 820;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "LEGS_P0_15_5", 16);
  			iVar3 = 15;
  			iVar4 = 5;
  			iVar1 = 720;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "LEGS_P0_15_6", 16);
  			iVar3 = 15;
  			iVar4 = 6;
  			iVar1 = 750;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "LEGS_P0_15_7", 16);
  			iVar3 = 15;
  			iVar4 = 7;
  			iVar1 = 850;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "LEGS_P0_16_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "LEGS_P0_16_1", 16);
  			iVar3 = 16;
  			iVar4 = 1;
  			iVar1 = 48;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "LEGS_P0_16_2", 16);
  			iVar3 = 16;
  			iVar4 = 2;
  			iVar1 = 48;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "LEGS_P0_16_3", 16);
  			iVar3 = 16;
  			iVar4 = 3;
  			iVar1 = 38;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "LEGS_P0_16_4", 16);
  			iVar3 = 16;
  			iVar4 = 4;
  			iVar1 = 38;
  			break;
  		
  		case 60:
  			StringCopy(&Var2, "LEGS_P0_16_5", 16);
  			iVar3 = 16;
  			iVar4 = 5;
  			iVar1 = 42;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "LEGS_P0_16_6", 16);
  			iVar3 = 16;
  			iVar4 = 6;
  			iVar1 = 58;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "LEGS_P0_16_7", 16);
  			iVar3 = 16;
  			iVar4 = 7;
  			iVar1 = 46;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "LEGS_P0_16_8", 16);
  			iVar3 = 16;
  			iVar4 = 8;
  			iVar1 = 46;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "LEGS_P0_16_9", 16);
  			iVar3 = 16;
  			iVar4 = 9;
  			iVar1 = 46;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "LEGS_P0_16_10", 16);
  			iVar3 = 16;
  			iVar4 = 10;
  			iVar1 = 68;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "LEGS_P0_16_11", 16);
  			iVar3 = 16;
  			iVar4 = 11;
  			iVar1 = 58;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "LEGS_P0_16_12", 16);
  			iVar3 = 16;
  			iVar4 = 12;
  			iVar1 = 50;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "LEGS_P0_16_13", 16);
  			iVar3 = 16;
  			iVar4 = 13;
  			iVar1 = 68;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "LEGS_P0_16_14", 16);
  			iVar3 = 16;
  			iVar4 = 14;
  			iVar1 = 68;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "LEGS_P0_16_15", 16);
  			iVar3 = 16;
  			iVar4 = 15;
  			iVar1 = 42;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "LEGS_P0_18_0", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "LEGS_P0_18_1", 16);
  			iVar3 = 18;
  			iVar4 = 1;
  			iVar1 = 250;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "LEGS_P0_18_2", 16);
  			iVar3 = 18;
  			iVar4 = 2;
  			iVar1 = 250;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "LEGS_P0_18_3", 16);
  			iVar3 = 18;
  			iVar4 = 3;
  			iVar1 = 290;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "LEGS_P0_18_4", 16);
  			iVar3 = 18;
  			iVar4 = 4;
  			iVar1 = 270;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "LEGS_P0_18_5", 16);
  			iVar3 = 18;
  			iVar4 = 5;
  			iVar1 = 270;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "LEGS_P0_18_6", 16);
  			iVar3 = 18;
  			iVar4 = 6;
  			iVar1 = 15;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "LEGS_P0_18_7", 16);
  			iVar3 = 18;
  			iVar4 = 7;
  			iVar1 = 12;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "LEGS_P0_20_0", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "LEGS_P0_20_1", 16);
  			iVar3 = 20;
  			iVar4 = 1;
  			iVar1 = 118;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "LEGS_P0_20_2", 16);
  			iVar3 = 20;
  			iVar4 = 2;
  			iVar1 = 110;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "LEGS_P0_21_0", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			iVar1 = 88;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "LEGS_P0_21_1", 16);
  			iVar3 = 21;
  			iVar4 = 1;
  			iVar1 = 95;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "LEGS_P0_21_2", 16);
  			iVar3 = 21;
  			iVar4 = 2;
  			iVar1 = 95;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "LEGS_P0_21_3", 16);
  			iVar3 = 21;
  			iVar4 = 3;
  			iVar1 = 98;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "LEGS_P0_22_0", 16);
  			iVar3 = 22;
  			iVar4 = 0;
  			iVar1 = 140;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "LEGS_P0_23_0", 16);
  			iVar3 = 23;
  			iVar4 = 0;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "LEGS_P0_23_1", 16);
  			iVar3 = 23;
  			iVar4 = 1;
  			iVar1 = 150;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "LEGS_P0_23_2", 16);
  			iVar3 = 23;
  			iVar4 = 2;
  			iVar1 = 130;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 24;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 25;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 26;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "LEGS_P0_27_0", 16);
  			iVar3 = 27;
  			iVar4 = 0;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "LEGS_P0_28_0", 16);
  			iVar3 = 28;
  			iVar4 = 0;
  			iVar1 = 45;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "LEGS_P0_28_1", 16);
  			iVar3 = 28;
  			iVar4 = 1;
  			iVar1 = 48;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "LEGS_P0_28_2", 16);
  			iVar3 = 28;
  			iVar4 = 2;
  			iVar1 = 48;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "LEGS_P0_28_3", 16);
  			iVar3 = 28;
  			iVar4 = 3;
  			iVar1 = 52;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "LEGS_P0_28_4", 16);
  			iVar3 = 28;
  			iVar4 = 4;
  			iVar1 = 52;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "LEGS_P0_28_5", 16);
  			iVar3 = 28;
  			iVar4 = 5;
  			iVar1 = 55;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "LEGS_P0_28_6", 16);
  			iVar3 = 28;
  			iVar4 = 6;
  			iVar1 = 55;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "LEGS_P0_28_7", 16);
  			iVar3 = 28;
  			iVar4 = 7;
  			iVar1 = 55;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "LEGS_P0_28_8", 16);
  			iVar3 = 28;
  			iVar4 = 8;
  			iVar1 = 58;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "LEGS_P0_28_9", 16);
  			iVar3 = 28;
  			iVar4 = 9;
  			iVar1 = 58;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "LEGS_P0_28_10", 16);
  			iVar3 = 28;
  			iVar4 = 10;
  			iVar1 = 60;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "LEGS_P0_28_11", 16);
  			iVar3 = 28;
  			iVar4 = 11;
  			iVar1 = 60;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "LEGS_P0_28_12", 16);
  			iVar3 = 28;
  			iVar4 = 12;
  			iVar1 = 62;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "LEGS_P0_28_13", 16);
  			iVar3 = 28;
  			iVar4 = 13;
  			iVar1 = 62;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "LEGS_P0_28_14", 16);
  			iVar3 = 28;
  			iVar4 = 14;
  			iVar1 = 65;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "LEGS_P0_28_15", 16);
  			iVar3 = 28;
  			iVar4 = 15;
  			iVar1 = 65;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 29;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 113, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_313(int iParam0)
  {
  	if (iParam0 < 60)
  	{
  		func_315(iParam0);
  	}
  	else
  	{
  		func_314(iParam0);
  	}
  	if (Global_76647[0 /*14*/].f_2 == -1)
  	{
  		func_264(3, iParam0, 181, -1);
  	}
  }
  
  void func_314(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 3;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 60:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 9;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 61:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 10;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 62:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 11;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 63:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 64:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 65:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 2;
  			bVar0 = true;
  			break;
  		
  		case 66:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 3;
  			bVar0 = true;
  			break;
  		
  		case 67:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 4;
  			bVar0 = true;
  			break;
  		
  		case 68:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 12;
  			iVar4 = 5;
  			bVar0 = true;
  			break;
  		
  		case 69:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 13;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 70:
  			StringCopy(&Var2, "TORSO_P0_14_0", 16);
  			iVar3 = 14;
  			iVar4 = 0;
  			iVar1 = 120;
  			break;
  		
  		case 71:
  			StringCopy(&Var2, "TORSO_P0_14_1", 16);
  			iVar3 = 14;
  			iVar4 = 1;
  			iVar1 = 120;
  			break;
  		
  		case 72:
  			StringCopy(&Var2, "TORSO_P0_14_2", 16);
  			iVar3 = 14;
  			iVar4 = 2;
  			iVar1 = 120;
  			break;
  		
  		case 73:
  			StringCopy(&Var2, "TORSO_P0_14_3", 16);
  			iVar3 = 14;
  			iVar4 = 3;
  			iVar1 = 120;
  			break;
  		
  		case 74:
  			StringCopy(&Var2, "TORSO_P0_14_4", 16);
  			iVar3 = 14;
  			iVar4 = 4;
  			iVar1 = 120;
  			break;
  		
  		case 75:
  			StringCopy(&Var2, "TORSO_P0_14_5", 16);
  			iVar3 = 14;
  			iVar4 = 5;
  			iVar1 = 120;
  			break;
  		
  		case 76:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 15;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 77:
  			StringCopy(&Var2, "TORSO_P0_16_0", 16);
  			iVar3 = 16;
  			iVar4 = 0;
  			break;
  		
  		case 78:
  			StringCopy(&Var2, "TORSO_P0_16_1", 16);
  			iVar3 = 16;
  			iVar4 = 1;
  			iVar1 = 20;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			StringCopy(&Var2, "TORSO_P0_16_2", 16);
  			iVar3 = 16;
  			iVar4 = 2;
  			iVar1 = 24;
  			break;
  		
  		case 80:
  			StringCopy(&Var2, "TORSO_P0_16_3", 16);
  			iVar3 = 16;
  			iVar4 = 3;
  			iVar1 = 22;
  			break;
  		
  		case 81:
  			StringCopy(&Var2, "TORSO_P0_16_4", 16);
  			iVar3 = 16;
  			iVar4 = 4;
  			iVar1 = 25;
  			break;
  		
  		case 82:
  			StringCopy(&Var2, "TORSO_P0_16_5", 16);
  			iVar3 = 16;
  			iVar4 = 5;
  			iVar1 = 25;
  			break;
  		
  		case 83:
  			StringCopy(&Var2, "TORSO_P0_16_6", 16);
  			iVar3 = 16;
  			iVar4 = 6;
  			iVar1 = 22;
  			break;
  		
  		case 84:
  			StringCopy(&Var2, "TORSO_P0_16_7", 16);
  			iVar3 = 16;
  			iVar4 = 7;
  			iVar1 = 27;
  			break;
  		
  		case 85:
  			StringCopy(&Var2, "TORSO_P0_17_0", 16);
  			iVar3 = 17;
  			iVar4 = 0;
  			break;
  		
  		case 86:
  			StringCopy(&Var2, "TORSO_P0_17_1", 16);
  			iVar3 = 17;
  			iVar4 = 1;
  			break;
  		
  		case 87:
  			StringCopy(&Var2, "TORSO_P0_17_2", 16);
  			iVar3 = 17;
  			iVar4 = 2;
  			break;
  		
  		case 88:
  			StringCopy(&Var2, "TORSO_P0_17_3", 16);
  			iVar3 = 17;
  			iVar4 = 3;
  			iVar1 = 48;
  			break;
  		
  		case 89:
  			StringCopy(&Var2, "TORSO_P0_17_4", 16);
  			iVar3 = 17;
  			iVar4 = 4;
  			iVar1 = 40;
  			break;
  		
  		case 90:
  			StringCopy(&Var2, "TORSO_P0_17_5", 16);
  			iVar3 = 17;
  			iVar4 = 5;
  			iVar1 = 45;
  			break;
  		
  		case 91:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 18;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 92:
  			StringCopy(&Var2, "TORSO_P0_19_0", 16);
  			iVar3 = 19;
  			iVar4 = 0;
  			break;
  		
  		case 93:
  			StringCopy(&Var2, "TORSO_P0_19_1", 16);
  			iVar3 = 19;
  			iVar4 = 1;
  			iVar1 = 190;
  			break;
  		
  		case 94:
  			StringCopy(&Var2, "TORSO_P0_19_2", 16);
  			iVar3 = 19;
  			iVar4 = 2;
  			iVar1 = 190;
  			break;
  		
  		case 95:
  			StringCopy(&Var2, "TORSO_P0_19_3", 16);
  			iVar3 = 19;
  			iVar4 = 3;
  			iVar1 = 190;
  			break;
  		
  		case 96:
  			StringCopy(&Var2, "TORSO_P0_19_4", 16);
  			iVar3 = 19;
  			iVar4 = 4;
  			iVar1 = 210;
  			break;
  		
  		case 97:
  			StringCopy(&Var2, "TORSO_P0_20_0", 16);
  			iVar3 = 20;
  			iVar4 = 0;
  			break;
  		
  		case 98:
  			StringCopy(&Var2, "TORSO_P0_20_1", 16);
  			iVar3 = 20;
  			iVar4 = 1;
  			iVar1 = 115;
  			break;
  		
  		case 99:
  			StringCopy(&Var2, "TORSO_P0_20_2", 16);
  			iVar3 = 20;
  			iVar4 = 2;
  			iVar1 = 55;
  			break;
  		
  		case 100:
  			StringCopy(&Var2, "TORSO_P0_20_3", 16);
  			iVar3 = 20;
  			iVar4 = 3;
  			iVar1 = 110;
  			break;
  		
  		case 101:
  			StringCopy(&Var2, "TORSO_P0_20_4", 16);
  			iVar3 = 20;
  			iVar4 = 4;
  			iVar1 = 99;
  			break;
  		
  		case 102:
  			StringCopy(&Var2, "TORSO_P0_20_5", 16);
  			iVar3 = 20;
  			iVar4 = 5;
  			iVar1 = 49;
  			break;
  		
  		case 103:
  			StringCopy(&Var2, "TORSO_P0_20_6", 16);
  			iVar3 = 20;
  			iVar4 = 6;
  			iVar1 = 120;
  			break;
  		
  		case 104:
  			StringCopy(&Var2, "TORSO_P0_20_7", 16);
  			iVar3 = 20;
  			iVar4 = 7;
  			iVar1 = 45;
  			break;
  		
  		case 105:
  			StringCopy(&Var2, "TORSO_P0_20_8", 16);
  			iVar3 = 20;
  			iVar4 = 8;
  			iVar1 = 115;
  			break;
  		
  		case 106:
  			StringCopy(&Var2, "TORSO_P0_20_9", 16);
  			iVar3 = 20;
  			iVar4 = 9;
  			iVar1 = 105;
  			break;
  		
  		case 107:
  			StringCopy(&Var2, "TORSO_P0_20_10", 16);
  			iVar3 = 20;
  			iVar4 = 10;
  			iVar1 = 90;
  			break;
  		
  		case 108:
  			StringCopy(&Var2, "TORSO_P0_20_11", 16);
  			iVar3 = 20;
  			iVar4 = 11;
  			iVar1 = 95;
  			break;
  		
  		case 109:
  			StringCopy(&Var2, "TORSO_P0_20_12", 16);
  			iVar3 = 20;
  			iVar4 = 12;
  			iVar1 = 39;
  			break;
  		
  		case 110:
  			StringCopy(&Var2, "TORSO_P0_20_13", 16);
  			iVar3 = 20;
  			iVar4 = 13;
  			iVar1 = 95;
  			break;
  		
  		case 111:
  			StringCopy(&Var2, "TORSO_P0_20_14", 16);
  			iVar3 = 20;
  			iVar4 = 14;
  			iVar1 = 35;
  			break;
  		
  		case 112:
  			StringCopy(&Var2, "TORSO_P0_20_15", 16);
  			iVar3 = 20;
  			iVar4 = 15;
  			iVar1 = 95;
  			break;
  		
  		case 113:
  			StringCopy(&Var2, "TORSO_P0_21_0", 16);
  			iVar3 = 21;
  			iVar4 = 0;
  			iVar1 = 88;
  			break;
  		
  		case 114:
  			StringCopy(&Var2, "TORSO_P0_21_1", 16);
  			iVar3 = 21;
  			iVar4 = 1;
  			iVar1 = 60;
  			break;
  		
  		case 115:
  			StringCopy(&Var2, "TORSO_P0_21_2", 16);
  			iVar3 = 21;
  			iVar4 = 2;
  			iVar1 = 70;
  			break;
  		
  		case 116:
  			StringCopy(&Var2, "TORSO_P0_21_3", 16);
  			iVar3 = 21;
  			iVar4 = 3;
  			iVar1 = 80;
  			break;
  		
  		case 117:
  			StringCopy(&Var2, "TORSO_P0_21_4", 16);
  			iVar3 = 21;
  			iVar4 = 4;
  			iVar1 = 90;
  			break;
  		
  		case 118:
  			StringCopy(&Var2, "TORSO_P0_21_5", 16);
  			iVar3 = 21;
  			iVar4 = 5;
  			iVar1 = 80;
  			break;
  		
  		case 119:
  			StringCopy(&Var2, "TORSO_P0_21_6", 16);
  			iVar3 = 21;
  			iVar4 = 6;
  			iVar1 = 70;
  			break;
  		
  		case 120:
  			StringCopy(&Var2, "TORSO_P0_21_7", 16);
  			iVar3 = 21;
  			iVar4 = 7;
  			iVar1 = 95;
  			break;
  		
  		case 121:
  			StringCopy(&Var2, "TORSO_P0_21_8", 16);
  			iVar3 = 21;
  			iVar4 = 8;
  			iVar1 = 105;
  			break;
  		
  		case 122:
  			StringCopy(&Var2, "TORSO_P0_21_9", 16);
  			iVar3 = 21;
  			iVar4 = 9;
  			iVar1 = 95;
  			break;
  		
  		case 123:
  			StringCopy(&Var2, "TORSO_P0_21_10", 16);
  			iVar3 = 21;
  			iVar4 = 10;
  			iVar1 = 110;
  			break;
  		
  		case 124:
  			StringCopy(&Var2, "TORSO_P0_21_11", 16);
  			iVar3 = 21;
  			iVar4 = 11;
  			iVar1 = 98;
  			break;
  		
  		case 125:
  			StringCopy(&Var2, "TORSO_P0_21_12", 16);
  			iVar3 = 21;
  			iVar4 = 12;
  			iVar1 = 88;
  			break;
  		
  		case 126:
  			StringCopy(&Var2, "TORSO_P0_21_13", 16);
  			iVar3 = 21;
  			iVar4 = 13;
  			iVar1 = 98;
  			break;
  		
  		case 127:
  			StringCopy(&Var2, "TORSO_P0_21_14", 16);
  			iVar3 = 21;
  			iVar4 = 14;
  			iVar1 = 110;
  			break;
  		
  		case 128:
  			StringCopy(&Var2, "TORSO_P0_21_15", 16);
  			iVar3 = 21;
  			iVar4 = 15;
  			iVar1 = 98;
  			break;
  		
  		case 129:
  			StringCopy(&Var2, "TORSO_P0_22_0", 16);
  			iVar3 = 22;
  			iVar4 = 0;
  			break;
  		
  		case 130:
  			StringCopy(&Var2, "TORSO_P0_22_1", 16);
  			iVar3 = 22;
  			iVar4 = 1;
  			iVar1 = 4950;
  			break;
  		
  		case 131:
  			StringCopy(&Var2, "TORSO_P0_22_2", 16);
  			iVar3 = 22;
  			iVar4 = 2;
  			iVar1 = 4195;
  			break;
  		
  		case 132:
  			StringCopy(&Var2, "TORSO_P0_22_3", 16);
  			iVar3 = 22;
  			iVar4 = 3;
  			iVar1 = 3195;
  			break;
  		
  		case 133:
  			StringCopy(&Var2, "TORSO_P0_22_4", 16);
  			iVar3 = 22;
  			iVar4 = 4;
  			iVar1 = 2950;
  			break;
  		
  		case 134:
  			StringCopy(&Var2, "TORSO_P0_22_5", 16);
  			iVar3 = 22;
  			iVar4 = 5;
  			iVar1 = 3950;
  			break;
  		
  		case 135:
  			StringCopy(&Var2, "TORSO_P0_23_0", 16);
  			iVar3 = 23;
  			iVar4 = 0;
  			iVar1 = 3200;
  			break;
  		
  		case 136:
  			StringCopy(&Var2, "TORSO_P0_23_1", 16);
  			iVar3 = 23;
  			iVar4 = 1;
  			iVar1 = 3200;
  			break;
  		
  		case 137:
  			StringCopy(&Var2, "TORSO_P0_23_2", 16);
  			iVar3 = 23;
  			iVar4 = 2;
  			iVar1 = 3200;
  			break;
  		
  		case 138:
  			StringCopy(&Var2, "TORSO_P0_23_3", 16);
  			iVar3 = 23;
  			iVar4 = 3;
  			iVar1 = 3200;
  			break;
  		
  		case 139:
  			StringCopy(&Var2, "TORSO_P0_23_4", 16);
  			iVar3 = 23;
  			iVar4 = 4;
  			iVar1 = 3200;
  			break;
  		
  		case 140:
  			StringCopy(&Var2, "TORSO_P0_23_5", 16);
  			iVar3 = 23;
  			iVar4 = 5;
  			iVar1 = 3200;
  			break;
  		
  		case 141:
  			StringCopy(&Var2, "TORSO_P0_23_6", 16);
  			iVar3 = 23;
  			iVar4 = 6;
  			iVar1 = 3200;
  			break;
  		
  		case 142:
  			StringCopy(&Var2, "TORSO_P0_23_7", 16);
  			iVar3 = 23;
  			iVar4 = 7;
  			iVar1 = 3200;
  			break;
  		
  		case 143:
  			StringCopy(&Var2, "TORSO_P0_23_8", 16);
  			iVar3 = 23;
  			iVar4 = 8;
  			iVar1 = 3200;
  			break;
  		
  		case 144:
  			StringCopy(&Var2, "TORSO_P0_23_9", 16);
  			iVar3 = 23;
  			iVar4 = 9;
  			iVar1 = 3200;
  			break;
  		
  		case 145:
  			StringCopy(&Var2, "TORSO_P0_23_10", 16);
  			iVar3 = 23;
  			iVar4 = 10;
  			iVar1 = 3200;
  			break;
  		
  		case 146:
  			StringCopy(&Var2, "TORSO_P0_23_11", 16);
  			iVar3 = 23;
  			iVar4 = 11;
  			iVar1 = 3200;
  			break;
  		
  		case 147:
  			StringCopy(&Var2, "TORSO_P0_23_12", 16);
  			iVar3 = 23;
  			iVar4 = 12;
  			iVar1 = 3200;
  			break;
  		
  		case 148:
  			StringCopy(&Var2, "TORSO_P0_23_13", 16);
  			iVar3 = 23;
  			iVar4 = 13;
  			iVar1 = 3200;
  			break;
  		
  		case 149:
  			StringCopy(&Var2, "TORSO_P0_23_14", 16);
  			iVar3 = 23;
  			iVar4 = 14;
  			iVar1 = 3200;
  			break;
  		
  		case 150:
  			StringCopy(&Var2, "TORSO_P0_23_15", 16);
  			iVar3 = 23;
  			iVar4 = 15;
  			iVar1 = 3200;
  			break;
  		
  		case 151:
  			StringCopy(&Var2, "TORSO_P0_24_0", 16);
  			iVar3 = 24;
  			iVar4 = 0;
  			iVar1 = 1350;
  			break;
  		
  		case 152:
  			StringCopy(&Var2, "TORSO_P0_24_1", 16);
  			iVar3 = 24;
  			iVar4 = 1;
  			iVar1 = 1400;
  			break;
  		
  		case 153:
  			StringCopy(&Var2, "TORSO_P0_24_2", 16);
  			iVar3 = 24;
  			iVar4 = 2;
  			iVar1 = 1200;
  			break;
  		
  		case 154:
  			StringCopy(&Var2, "TORSO_P0_24_3", 16);
  			iVar3 = 24;
  			iVar4 = 3;
  			iVar1 = 1250;
  			break;
  		
  		case 155:
  			StringCopy(&Var2, "TORSO_P0_24_4", 16);
  			iVar3 = 24;
  			iVar4 = 4;
  			iVar1 = 1350;
  			break;
  		
  		case 156:
  			StringCopy(&Var2, "TORSO_P0_24_5", 16);
  			iVar3 = 24;
  			iVar4 = 5;
  			iVar1 = 1300;
  			break;
  		
  		case 157:
  			StringCopy(&Var2, "TORSO_P0_24_6", 16);
  			iVar3 = 24;
  			iVar4 = 6;
  			iVar1 = 1380;
  			break;
  		
  		case 158:
  			StringCopy(&Var2, "TORSO_P0_24_7", 16);
  			iVar3 = 24;
  			iVar4 = 7;
  			iVar1 = 1340;
  			break;
  		
  		case 159:
  			StringCopy(&Var2, "TORSO_P0_24_8", 16);
  			iVar3 = 24;
  			iVar4 = 8;
  			iVar1 = 1380;
  			break;
  		
  		case 160:
  			StringCopy(&Var2, "TORSO_P0_24_9", 16);
  			iVar3 = 24;
  			iVar4 = 9;
  			iVar1 = 1250;
  			break;
  		
  		case 161:
  			StringCopy(&Var2, "TORSO_P0_25_0", 16);
  			iVar3 = 25;
  			iVar4 = 0;
  			iVar1 = 840;
  			break;
  		
  		case 162:
  			StringCopy(&Var2, "TORSO_P0_25_1", 16);
  			iVar3 = 25;
  			iVar4 = 1;
  			iVar1 = 840;
  			break;
  		
  		case 163:
  			StringCopy(&Var2, "TORSO_P0_25_2", 16);
  			iVar3 = 25;
  			iVar4 = 2;
  			iVar1 = 840;
  			break;
  		
  		case 164:
  			StringCopy(&Var2, "TORSO_P0_25_3", 16);
  			iVar3 = 25;
  			iVar4 = 3;
  			iVar1 = 840;
  			break;
  		
  		case 165:
  			StringCopy(&Var2, "TORSO_P0_25_4", 16);
  			iVar3 = 25;
  			iVar4 = 4;
  			iVar1 = 840;
  			break;
  		
  		case 166:
  			StringCopy(&Var2, "TORSO_P0_25_5", 16);
  			iVar3 = 25;
  			iVar4 = 5;
  			iVar1 = 840;
  			break;
  		
  		case 167:
  			StringCopy(&Var2, "TORSO_P0_25_6", 16);
  			iVar3 = 25;
  			iVar4 = 6;
  			iVar1 = 840;
  			break;
  		
  		case 168:
  			StringCopy(&Var2, "TORSO_P0_25_7", 16);
  			iVar3 = 25;
  			iVar4 = 7;
  			iVar1 = 840;
  			break;
  		
  		case 169:
  			StringCopy(&Var2, "TORSO_P0_26_0", 16);
  			iVar3 = 26;
  			iVar4 = 0;
  			break;
  		
  		case 170:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 27;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 171:
  			StringCopy(&Var2, "TORSO_P0_28_0", 16);
  			iVar3 = 28;
  			iVar4 = 0;
  			break;
  		
  		case 172:
  			StringCopy(&Var2, "TORSO_P0_28_1", 16);
  			iVar3 = 28;
  			iVar4 = 1;
  			iVar1 = 130;
  			break;
  		
  		case 173:
  			StringCopy(&Var2, "TORSO_P0_28_2", 16);
  			iVar3 = 28;
  			iVar4 = 2;
  			iVar1 = 110;
  			break;
  		
  		case 174:
  			StringCopy(&Var2, "TORSO_P0_29_0", 16);
  			iVar3 = 29;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 175:
  			StringCopy(&Var2, "TORSO_P0_30_0", 16);
  			iVar3 = 30;
  			iVar4 = 0;
  			iVar1 = 290;
  			break;
  		
  		case 176:
  			StringCopy(&Var2, "TORSO_P0_30_1", 16);
  			iVar3 = 30;
  			iVar4 = 1;
  			iVar1 = 320;
  			break;
  		
  		case 177:
  			StringCopy(&Var2, "TORSO_P0_31_0", 16);
  			iVar3 = 31;
  			iVar4 = 0;
  			iVar1 = 59;
  			break;
  		
  		case 178:
  			StringCopy(&Var2, "TORSO_P0_31_1", 16);
  			iVar3 = 31;
  			iVar4 = 1;
  			iVar1 = 55;
  			break;
  		
  		case 179:
  			StringCopy(&Var2, "TORSO_P0_31_2", 16);
  			iVar3 = 31;
  			iVar4 = 2;
  			iVar1 = 59;
  			break;
  		
  		case 180:
  			StringCopy(&Var2, "TORSO_P0_31_3", 16);
  			iVar3 = 31;
  			iVar4 = 3;
  			iVar1 = 49;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_315(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 3;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "TORSO_P0_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "TORSO_P0_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "TORSO_P0_0_2", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			iVar1 = 3500;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "TORSO_P0_0_3", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "TORSO_P0_0_4", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "TORSO_P0_0_5", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "TORSO_P0_0_6", 16);
  			iVar3 = 0;
  			iVar4 = 6;
  			break;
  		
  		case 7:
  			StringCopy(&Var2, "TORSO_P0_0_7", 16);
  			iVar3 = 0;
  			iVar4 = 7;
  			break;
  		
  		case 8:
  			StringCopy(&Var2, "TORSO_P0_0_8", 16);
  			iVar3 = 0;
  			iVar4 = 8;
  			break;
  		
  		case 9:
  			StringCopy(&Var2, "TORSO_P0_0_9", 16);
  			iVar3 = 0;
  			iVar4 = 9;
  			break;
  		
  		case 10:
  			StringCopy(&Var2, "TORSO_P0_0_10", 16);
  			iVar3 = 0;
  			iVar4 = 10;
  			break;
  		
  		case 11:
  			StringCopy(&Var2, "TORSO_P0_0_11", 16);
  			iVar3 = 0;
  			iVar4 = 11;
  			break;
  		
  		case 12:
  			StringCopy(&Var2, "TORSO_P0_0_12", 16);
  			iVar3 = 0;
  			iVar4 = 12;
  			break;
  		
  		case 13:
  			StringCopy(&Var2, "TORSO_P0_0_13", 16);
  			iVar3 = 0;
  			iVar4 = 13;
  			break;
  		
  		case 14:
  			StringCopy(&Var2, "TORSO_P0_0_14", 16);
  			iVar3 = 0;
  			iVar4 = 14;
  			break;
  		
  		case 15:
  			StringCopy(&Var2, "TORSO_P0_0_15", 16);
  			iVar3 = 0;
  			iVar4 = 15;
  			break;
  		
  		case 16:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 17:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			iVar1 = 20;
  			break;
  		
  		case 18:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 1;
  			iVar1 = 18;
  			break;
  		
  		case 19:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 2;
  			iVar1 = 22;
  			break;
  		
  		case 20:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 2;
  			iVar4 = 3;
  			iVar1 = 25;
  			break;
  		
  		case 21:
  			StringCopy(&Var2, "TORSO_P0_2_4", 16);
  			iVar3 = 2;
  			iVar4 = 4;
  			iVar1 = 19;
  			break;
  		
  		case 22:
  			StringCopy(&Var2, "TORSO_P0_2_5", 16);
  			iVar3 = 2;
  			iVar4 = 5;
  			iVar1 = 20;
  			break;
  		
  		case 23:
  			StringCopy(&Var2, "TORSO_P0_2_6", 16);
  			iVar3 = 2;
  			iVar4 = 6;
  			iVar1 = 22;
  			break;
  		
  		case 24:
  			StringCopy(&Var2, "TORSO_P0_2_7", 16);
  			iVar3 = 2;
  			iVar4 = 7;
  			iVar1 = 18;
  			break;
  		
  		case 25:
  			StringCopy(&Var2, "TORSO_P0_2_8", 16);
  			iVar3 = 2;
  			iVar4 = 8;
  			iVar1 = 39;
  			break;
  		
  		case 26:
  			StringCopy(&Var2, "TORSO_P0_2_9", 16);
  			iVar3 = 2;
  			iVar4 = 9;
  			iVar1 = 32;
  			break;
  		
  		case 27:
  			StringCopy(&Var2, "TORSO_P0_2_10", 16);
  			iVar3 = 2;
  			iVar4 = 10;
  			iVar1 = 35;
  			break;
  		
  		case 28:
  			StringCopy(&Var2, "TORSO_P0_2_11", 16);
  			iVar3 = 2;
  			iVar4 = 11;
  			iVar1 = 35;
  			break;
  		
  		case 29:
  			StringCopy(&Var2, "TORSO_P0_2_12", 16);
  			iVar3 = 2;
  			iVar4 = 12;
  			iVar1 = 210;
  			break;
  		
  		case 30:
  			StringCopy(&Var2, "TORSO_P0_2_13", 16);
  			iVar3 = 2;
  			iVar4 = 13;
  			iVar1 = 250;
  			break;
  		
  		case 31:
  			StringCopy(&Var2, "TORSO_P0_2_14", 16);
  			iVar3 = 2;
  			iVar4 = 14;
  			iVar1 = 290;
  			break;
  		
  		case 32:
  			StringCopy(&Var2, "TORSO_P0_2_15", 16);
  			iVar3 = 2;
  			iVar4 = 15;
  			iVar1 = 310;
  			break;
  		
  		case 33:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 34:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 3;
  			iVar4 = 1;
  			bVar0 = true;
  			break;
  		
  		case 35:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 36:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 37:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 6;
  			iVar4 = 0;
  			bVar0 = true;
  			break;
  		
  		case 38:
  			StringCopy(&Var2, "TORSO_P0_7_0", 16);
  			iVar3 = 7;
  			iVar4 = 0;
  			iVar1 = 150;
  			break;
  		
  		case 39:
  			StringCopy(&Var2, "TORSO_P0_7_1", 16);
  			iVar3 = 7;
  			iVar4 = 1;
  			iVar1 = 160;
  			break;
  		
  		case 40:
  			StringCopy(&Var2, "TORSO_P0_7_2", 16);
  			iVar3 = 7;
  			iVar4 = 2;
  			iVar1 = 150;
  			break;
  		
  		case 41:
  			StringCopy(&Var2, "TORSO_P0_7_3", 16);
  			iVar3 = 7;
  			iVar4 = 3;
  			iVar1 = 150;
  			break;
  		
  		case 42:
  			StringCopy(&Var2, "TORSO_P0_7_4", 16);
  			iVar3 = 7;
  			iVar4 = 4;
  			iVar1 = 160;
  			break;
  		
  		case 43:
  			StringCopy(&Var2, "TORSO_P0_7_5", 16);
  			iVar3 = 7;
  			iVar4 = 5;
  			iVar1 = 160;
  			break;
  		
  		case 44:
  			StringCopy(&Var2, "TORSO_P0_8_0", 16);
  			iVar3 = 8;
  			iVar4 = 0;
  			break;
  		
  		case 45:
  			StringCopy(&Var2, "TORSO_P0_8_1", 16);
  			iVar3 = 8;
  			iVar4 = 1;
  			iVar1 = 52;
  			break;
  		
  		case 46:
  			StringCopy(&Var2, "TORSO_P0_8_2", 16);
  			iVar3 = 8;
  			iVar4 = 2;
  			iVar1 = 52;
  			break;
  		
  		case 47:
  			StringCopy(&Var2, "TORSO_P0_8_3", 16);
  			iVar3 = 8;
  			iVar4 = 3;
  			iVar1 = 55;
  			break;
  		
  		case 48:
  			StringCopy(&Var2, "TORSO_P0_8_4", 16);
  			iVar3 = 8;
  			iVar4 = 4;
  			iVar1 = 55;
  			break;
  		
  		case 49:
  			StringCopy(&Var2, "TORSO_P0_8_5", 16);
  			iVar3 = 8;
  			iVar4 = 5;
  			iVar1 = 58;
  			break;
  		
  		case 50:
  			StringCopy(&Var2, "TORSO_P0_8_6", 16);
  			iVar3 = 8;
  			iVar4 = 6;
  			iVar1 = 58;
  			break;
  		
  		case 51:
  			StringCopy(&Var2, "TORSO_P0_8_7", 16);
  			iVar3 = 8;
  			iVar4 = 7;
  			iVar1 = 62;
  			break;
  		
  		case 52:
  			StringCopy(&Var2, "TORSO_P0_8_8", 16);
  			iVar3 = 8;
  			iVar4 = 8;
  			iVar1 = 65;
  			break;
  		
  		case 53:
  			StringCopy(&Var2, "TORSO_P0_8_9", 16);
  			iVar3 = 8;
  			iVar4 = 9;
  			iVar1 = 65;
  			break;
  		
  		case 54:
  			StringCopy(&Var2, "TORSO_P0_8_10", 16);
  			iVar3 = 8;
  			iVar4 = 10;
  			iVar1 = 68;
  			break;
  		
  		case 55:
  			StringCopy(&Var2, "TORSO_P0_8_11", 16);
  			iVar3 = 8;
  			iVar4 = 11;
  			iVar1 = 68;
  			break;
  		
  		case 56:
  			StringCopy(&Var2, "TORSO_P0_8_12", 16);
  			iVar3 = 8;
  			iVar4 = 12;
  			iVar1 = 55;
  			break;
  		
  		case 57:
  			StringCopy(&Var2, "TORSO_P0_8_13", 16);
  			iVar3 = 8;
  			iVar4 = 13;
  			iVar1 = 62;
  			break;
  		
  		case 58:
  			StringCopy(&Var2, "TORSO_P0_8_14", 16);
  			iVar3 = 8;
  			iVar4 = 14;
  			iVar1 = 58;
  			break;
  		
  		case 59:
  			StringCopy(&Var2, "TORSO_P0_8_15", 16);
  			iVar3 = 8;
  			iVar4 = 15;
  			iVar1 = 58;
  			break;
  		
  		default:
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_316(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 2;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "HAIR_P0_0_0", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "HAIR_P0_1_0", 16);
  			iVar3 = 1;
  			iVar4 = 0;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "HAIR_P0_2_0", 16);
  			iVar3 = 2;
  			iVar4 = 0;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "HAIR_P0_3_0", 16);
  			iVar3 = 3;
  			iVar4 = 0;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "HAIR_P0_4_0", 16);
  			iVar3 = 4;
  			iVar4 = 0;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 5;
  			iVar4 = 0;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 6, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_317(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	struct<2> Var2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7;
  	
  	bVar0 = false;
  	iVar1 = 10;
  	iVar3 = 0;
  	iVar4 = 0;
  	iVar5 = -1;
  	iVar6 = 2;
  	iVar7 = 0;
  	Global_76647[0 /*14*/].f_5 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 0;
  			break;
  		
  		case 1:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 1;
  			break;
  		
  		case 2:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 2;
  			break;
  		
  		case 3:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 3;
  			break;
  		
  		case 4:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 4;
  			break;
  		
  		case 5:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 5;
  			break;
  		
  		case 6:
  			StringCopy(&Var2, "NO_LABEL", 16);
  			iVar3 = 0;
  			iVar4 = 6;
  			break;
  		
  		default:
  			func_264(iVar7, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_258(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_318()
  {
  	Global_76647[0 /*14*/].f_1 = -1;
  	Global_76647[0 /*14*/].f_2 = -1;
  	Global_76647[0 /*14*/].f_5 = -1;
  	Global_76647[0 /*14*/].f_3 = -1;
  	Global_76647[0 /*14*/].f_4 = -1;
  	Global_76647[0 /*14*/].f_7 = 0;
  	Global_76647[0 /*14*/].f_6 = 0;
  	Global_76647[0 /*14*/].f_13 = -1;
  	Global_76647[0 /*14*/].f_12 = 0;
  	Global_76647[0 /*14*/] = 0;
  	StringCopy(&(Global_76647[0 /*14*/].f_8), "NO_LABEL", 16);
  }
  
  int func_319(int iParam0, int iParam1, int iParam2, bool bParam3, int iParam4)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	var uVar3;
  	var uVar4;
  	int iVar5;
  	
  	Global_76647[1 /*14*/] = { func_255(iParam0, iParam1, iParam2, -1) };
  	if (unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 0) && !unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 6))
  	{
  		if (bParam3)
  		{
  			func_253(iParam1, Global_76647[1 /*14*/].f_5, Global_76647[1 /*14*/].f_2, 1, Global_76647[1 /*14*/].f_1, 1, 0);
  			if (iParam1 == 12)
  			{
  				iVar0 = 1;
  				if (iParam0 == joaat("player_zero"))
  				{
  					if (iParam2 == 31)
  					{
  						iVar0 = 0;
  					}
  				}
  				if (iVar0 == 1)
  				{
  					uVar3 = { func_240(iParam0, iParam2) };
  					iVar1 = 0;
  					while (iVar1 <= 14)
  					{
  						if ((uVar3[iVar1] != -99 && iVar1 != 12) && iVar1 != 14)
  						{
  							if (iVar1 != 13)
  							{
  								func_319(iParam0, iVar1, uVar3[iVar1], 1, 1);
  								func_320(iParam0, iVar1, uVar3[iVar1], 1);
  							}
  							else
  							{
  								uVar4 = { func_237(iParam0, uVar3[iVar1]) };
  								iVar2 = 0;
  								while (iVar2 <= 8)
  								{
  									func_319(iParam0, 14, uVar4[iVar2], 1, 1);
  									func_320(iParam0, 14, uVar4[iVar2], 1);
  									iVar2++;
  								}
  							}
  						}
  						iVar1++;
  					}
  				}
  			}
  		}
  		else
  		{
  			func_253(iParam1, Global_76647[1 /*14*/].f_5, Global_76647[1 /*14*/].f_2, 1, Global_76647[1 /*14*/].f_1, 0, 1);
  		}
  		if (iParam4 == 1 && bParam3 == 1)
  		{
  			switch (iParam0)
  			{
  				case joaat("player_zero"):
  					break;
  				
  				case joaat("player_one"):
  					switch (iParam1)
  					{
  						case 3:
  							if (iParam2 >= 176 && iParam2 <= 191)
  							{
  								iVar5 = (227 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 3, iVar5, 1, 0);
  							}
  							else if (iParam2 >= 227 && iParam2 <= 242)
  							{
  								iVar5 = (176 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 3, iVar5, 1, 0);
  							}
  							break;
  						
  						case 11:
  							if (iParam2 >= 9 && iParam2 <= 24)
  							{
  								iVar5 = (25 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 11, iVar5, 1, 0);
  							}
  							else if (iParam2 >= 25 && iParam2 <= 40)
  							{
  								iVar5 = (9 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 11, iVar5, 1, 0);
  							}
  							break;
  						
  						case 8:
  							if (iParam2 >= 27 && iParam2 <= 42)
  							{
  								iVar5 = (43 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 8, iVar5, 1, 0);
  								iVar5 = (59 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 8, iVar5, 1, 0);
  							}
  							else if (iParam2 >= 43 && iParam2 <= 58)
  							{
  								iVar5 = (27 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 8, iVar5, 1, 0);
  								iVar5 = (59 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 8, iVar5, 1, 0);
  							}
  							else if (iParam2 >= 59 && iParam2 <= 74)
  							{
  								iVar5 = (27 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 8, iVar5, 1, 0);
  								iVar5 = (43 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 8, iVar5, 1, 0);
  							}
  							break;
  						
  						case 14:
  							if (iParam2 >= 64 && iParam2 <= 79)
  							{
  								iVar5 = (41 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 14, iVar5, 1, 0);
  							}
  							break;
  					}
  					break;
  				
  				case joaat("player_two"):
  					switch (iParam1)
  					{
  						case 4:
  							if (iParam2 >= 81 && iParam2 <= 90)
  							{
  								iVar5 = (94 + Global_76647[1 /*14*/].f_4);
  								func_319(iParam0, 4, iVar5, 1, 0);
  							}
  							break;
  						
  						case 12:
  							if (iParam2 == 2)
  							{
  								func_319(iParam0, 14, 17, 1, 0);
  							}
  							break;
  					}
  					break;
  				}
  		}
  		return 1;
  	}
  	return 0;
  }
  
  int func_320(int iParam0, int iParam1, int iParam2, bool bParam3)
  {
  	Global_76647[1 /*14*/] = { func_255(iParam0, iParam1, iParam2, -1) };
  	if (unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 0) && !unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 6))
  	{
  		if (bParam3)
  		{
  			func_253(iParam1, Global_76647[1 /*14*/].f_5, Global_76647[1 /*14*/].f_2, 0, Global_76647[1 /*14*/].f_1, 1, 0);
  		}
  		else
  		{
  			func_253(iParam1, Global_76647[1 /*14*/].f_5, Global_76647[1 /*14*/].f_2, 0, Global_76647[1 /*14*/].f_1, 0, 1);
  		}
  		return 1;
  	}
  	return 0;
  }
  
  int func_321(int iParam0)
  {
  	if (func_391(unk_0x9B0761B4C3EB8BC7()))
  	{
  		switch (iParam0)
  		{
  			case 15:
  				if (func_209(unk_0x9B0761B4C3EB8BC7(), 12, 8))
  				{
  					return 1;
  				}
  				break;
  			
  			case 16:
  				if (func_209(unk_0x9B0761B4C3EB8BC7(), 12, 8) || func_209(unk_0x9B0761B4C3EB8BC7(), 12, 28))
  				{
  					return 1;
  				}
  				break;
  			
  			default:
  				return 1;
  				break;
  			}
  	}
  	return 0;
  }
  
  int func_322(var uParam0, int iParam1)
  {
  	switch (uParam0->f_16)
  	{
  		case 0:
  			if (*uParam0 == 12)
  			{
  				if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 1826.631f, 4699.115f, 35.38089f, 1812.878f, 4710.457f, 42.05354f, 23.75f, 0, 1, 0))
  				{
  					if (func_391(uParam0->f_28[0]))
  					{
  						if (unk_0x272784C60C397DB6(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1), unk_0x3E4D3CCC220BDFB1(uParam0->f_28[0], 1), 1) < 3f)
  						{
  							if (func_328(2))
  							{
  								if (func_326(uParam0->f_27))
  								{
  									func_325(uParam0->f_27, *uParam0);
  									func_494("ARE_RC_TRIGGER_CONDITIONS_MET: RC_TRIG_CHAR - Used special case Eps 4 trigger.");
  									return 1;
  								}
  							}
  						}
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				else if (func_391(uParam0->f_28[0]))
  				{
  					if (func_324(uParam0))
  					{
  						if (func_328(2))
  						{
  							if (func_326(uParam0->f_27))
  							{
  								func_325(uParam0->f_27, *uParam0);
  								return 1;
  							}
  						}
  					}
  				}
  				else
  				{
  					return 0;
  				}
  			}
  			else if (*uParam0 == 21)
  			{
  				if ((((!unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -1895.788f, -434.0192f, 40.30126f, -1883.038f, -444.0811f, 50.24509f, 8.5f, 0, 1, 0) && !unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -1883.576f, -443.6434f, 36.40581f, -1874.826f, -448.0797f, 49.15162f, 8.5f, 0, 1, 0)) && !unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -1876.343f, -446.2214f, 35.64637f, -1866.952f, -456.5601f, 49.0442f, 8.5f, 0, 1, 0)) && !unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -1882.997f, -438.9922f, 44.17246f, -1874.079f, -443.342f, 48.69179f, 0.75f, 0, 1, 0)) || unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -1878.822f, -441.7655f, 44.9175f, -1877.941f, -439.9522f, 47.28982f, 1.25f, 0, 1, 0))
  				{
  					if (func_391(uParam0->f_28[0]))
  					{
  						if (func_324(uParam0))
  						{
  							if (func_328(2))
  							{
  								if (func_326(uParam0->f_27))
  								{
  									func_325(uParam0->f_27, *uParam0);
  									return 1;
  								}
  							}
  						}
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				else
  				{
  					return 0;
  				}
  			}
  			else if (*uParam0 == 22)
  			{
  				if (!unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 837.0731f, 1261.086f, 366.1592f, 780.8383f, 1260.829f, 351.405f, 17.75f, 0, 1, 0))
  				{
  					if (func_391(uParam0->f_28[0]))
  					{
  						if (func_324(uParam0))
  						{
  							if (func_328(2))
  							{
  								if (func_326(uParam0->f_27))
  								{
  									func_325(uParam0->f_27, *uParam0);
  									return 1;
  								}
  							}
  						}
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				else
  				{
  					return 0;
  				}
  			}
  			else if (func_391(uParam0->f_28[0]))
  			{
  				if (func_324(uParam0))
  				{
  					if (func_328(2))
  					{
  						if (func_326(uParam0->f_27))
  						{
  							func_325(uParam0->f_27, *uParam0);
  							return 1;
  						}
  					}
  				}
  			}
  			else
  			{
  				return 0;
  			}
  			break;
  		
  		case 2:
  			if (func_391(uParam0->f_35[0]))
  			{
  				if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), uParam0->f_35[0], 0))
  				{
  					if (func_328(3))
  					{
  						func_325(uParam0->f_27, *uParam0);
  						return 1;
  					}
  				}
  				else if (iParam1 == 1)
  				{
  					func_323();
  				}
  			}
  			else
  			{
  				return 0;
  			}
  			break;
  		
  		case 1:
  			if (unk_0xAE06B9E39EBDE049(uParam0->f_35[0]))
  			{
  				if (!unk_0xA59F96B50B97E63C(uParam0->f_35[0], 0))
  				{
  					if (unk_0x272784C60C397DB6(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1), unk_0x3E4D3CCC220BDFB1(uParam0->f_35[0], 1), 1) < uParam0->f_15)
  					{
  						if (func_328(2))
  						{
  							if (func_326(uParam0->f_27))
  							{
  								func_325(uParam0->f_27, *uParam0);
  								return 1;
  							}
  						}
  					}
  				}
  			}
  			else
  			{
  				return 0;
  			}
  			break;
  		
  		case 3:
  			if (unk_0x272784C60C397DB6(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1), uParam0->f_17[0 /*3*/], 1) < uParam0->f_15)
  			{
  				if (func_328(2))
  				{
  					if (func_326(uParam0->f_27))
  					{
  						func_325(uParam0->f_27, *uParam0);
  						return 1;
  					}
  				}
  			}
  			else
  			{
  				return 0;
  			}
  			break;
  		
  		case 4:
  			if (unk_0xC2169C00B643278B(unk_0x9B0761B4C3EB8BC7(), uParam0->f_17[0 /*3*/], uParam0->f_17[1 /*3*/], 0, 1, 0))
  			{
  				if (func_328(2))
  				{
  					if (func_326(uParam0->f_27))
  					{
  						func_325(uParam0->f_27, *uParam0);
  						return 1;
  					}
  				}
  			}
  			else
  			{
  				return 0;
  			}
  			break;
  		
  		case 5:
  			if (*uParam0 == 6)
  			{
  				if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  				{
  					if (func_391(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0)))
  					{
  						if (unk_0x68AEFA37A65085FD(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0), joaat("towtruck")) || unk_0x68AEFA37A65085FD(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0), joaat("towtruck2")))
  						{
  							if (unk_0xBA9474B1995C6AAD(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0), uParam0->f_35[0]))
  							{
  								if (func_328(3))
  								{
  									return 1;
  								}
  							}
  						}
  						else if ((unk_0x68AEFA37A65085FD(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0), joaat("cargobob")) || unk_0x68AEFA37A65085FD(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0), joaat("cargobob2"))) || unk_0x68AEFA37A65085FD(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0), joaat("cargobob3")))
  						{
  							if (unk_0xA2748482F49AA068(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0)) && unk_0x50EE517FDC91D03C(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0), uParam0->f_35[0]))
  							{
  								if (func_328(3))
  								{
  									return 1;
  								}
  							}
  						}
  					}
  				}
  			}
  			else if (*uParam0 == 10)
  			{
  				if (unk_0xA969175D27D90CDE(unk_0x9B0761B4C3EB8BC7()) >= 2f)
  				{
  					if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 245.8885f, 371.9034f, 103.9884f, 241.5898f, 359.6458f, 107.3461f, 1.25f, 0, 1, 0))
  					{
  						if (func_328(2))
  						{
  							if (func_326(uParam0->f_27))
  							{
  								func_325(uParam0->f_27, *uParam0);
  								func_494("RC5_IN_ACTIVATION_RANGE: RC_TRIG_LOCATE_NONAXIS - Eps 2 special case trigger used");
  								return 1;
  							}
  						}
  					}
  				}
  			}
  			else if (*uParam0 == 46)
  			{
  				if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -164.2046f, 277.4866f, 91.55322f, -153.6f, 277.4061f, 97.33813f, 10f, 0, 1, 0))
  				{
  					return 0;
  				}
  			}
  			else if (*uParam0 == 31)
  			{
  				if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 2728.948f, 4143.44f, 42.29295f, 2722.213f, 4144.521f, 45.43182f, 10f, 0, 1, 0))
  				{
  					if (func_328(2))
  					{
  						if (func_326(1))
  						{
  							func_325(1, *uParam0);
  							func_494("RC_IN_ACTIVATION_RANGE: RC_TRIG_LOCATE_NONAXIS - RC_MAUDE_1 special case vehicle launch area");
  							return 1;
  						}
  					}
  				}
  			}
  			else if (*uParam0 == 39)
  			{
  				if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -992.4995f, 358.7455f, 96.3735f, -1021.94f, 361.8888f, 65.36148f, 30f, 0, 1, 0))
  				{
  					if (!unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -983.5426f, 369.1104f, 68.46017f, -1028.566f, 395.4613f, 94.57245f, 15f, 0, 1, 0))
  					{
  						if (!unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), -983.875f, 346.7556f, 68.02096f, -1021.451f, 336.3458f, 93.18714f, 14.5f, 0, 1, 0))
  						{
  							if (func_328(2))
  							{
  								if (func_326(uParam0->f_27))
  								{
  									func_325(uParam0->f_27, *uParam0);
  									func_494("RC_IN_ACTIVATION_RANGE: RC_TRIG_LOCATE_NONAXIS - RC_NIGEL_1B special case vehicle launch area");
  									return 1;
  								}
  							}
  						}
  					}
  				}
  			}
  			if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), uParam0->f_17[0 /*3*/], uParam0->f_17[1 /*3*/], uParam0->f_24, 0, 1, 0))
  			{
  				if (*uParam0 == 45)
  				{
  					if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 2338.697f, 2597.037f, 45.39052f, 2324.003f, 2597.185f, 47.74961f, 8.5f, 0, 1, 0))
  					{
  						return 0;
  					}
  				}
  				if (func_328(2))
  				{
  					if (func_326(uParam0->f_27))
  					{
  						func_325(uParam0->f_27, *uParam0);
  						return 1;
  					}
  				}
  			}
  			else
  			{
  				return 0;
  			}
  			break;
  		
  		case 6:
  			break;
  	}
  	return 0;
  }
  
  void func_323()
  {
  	func_27(&(Global_102423.f_2890), &Global_102423, 0, 1, 1, 0);
  }
  
  int func_324(var uParam0)
  {
  	float fVar0;
  	
  	if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0) && uParam0->f_27)
  	{
  		if (*uParam0 == 27 || *uParam0 == 30)
  		{
  			fVar0 = 1f;
  		}
  		else
  		{
  			fVar0 = 5f;
  		}
  		if (unk_0x272784C60C397DB6(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1), unk_0x3E4D3CCC220BDFB1(uParam0->f_28[0], 1), 1) < (uParam0->f_15 + fVar0))
  		{
  			return 1;
  		}
  	}
  	else if (unk_0x272784C60C397DB6(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1), unk_0x3E4D3CCC220BDFB1(uParam0->f_28[0], 1), 1) < uParam0->f_15)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_325(int iParam0, int iParam1)
  {
  	if (iParam0 == 1)
  	{
  		if (!func_129(iParam1))
  		{
  			return;
  		}
  		if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  		{
  			func_494("RC_STOP_PLAYER_VEHICLE_CHECK: Stopping player's vehicle.");
  			if (unk_0x94BF5C4EB0D40E9E(unk_0x9B0761B4C3EB8BC7()) || unk_0xAABDC18B9F6EC79D(unk_0x9B0761B4C3EB8BC7()))
  			{
  				func_494("RC_STOP_PLAYER_VEHICLE_CHECK: Turning off engine for plane or helicopter.");
  				unk_0xC160551F55D6365A(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0), 0, 1, 0);
  			}
  			func_143();
  		}
  	}
  }
  
  int func_326(bool bParam0)
  {
  	int iVar0;
  	
  	if (unk_0x5A228A6A51E757C8(unk_0x2639A2323BEA8CC6()))
  	{
  		if (unk_0xEEB37DB9533AA764(unk_0x9B0761B4C3EB8BC7()))
  		{
  			return 1;
  		}
  		else if (bParam0)
  		{
  			if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  			{
  				iVar0 = unk_0xA5D3CD332CD10EE9();
  				if (func_327(iVar0))
  				{
  					if (unk_0x94BF5C4EB0D40E9E(unk_0x9B0761B4C3EB8BC7()) || unk_0xAABDC18B9F6EC79D(unk_0x9B0761B4C3EB8BC7()))
  					{
  						if ((!unk_0x4162501391EDB9BF(iVar0) && !unk_0xA16974805191D19C(iVar0)) && unk_0xF3A639BEE7AADF55(iVar0) < 1f)
  						{
  							return 1;
  						}
  					}
  					else if (!unk_0xA16974805191D19C(iVar0))
  					{
  						return 1;
  					}
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_327(int iParam0)
  {
  	if (func_391(uParam0))
  	{
  		if (unk_0x80FF6C016CDB0FAF(uParam0, 0))
  		{
  			if (!unk_0x0922C2E075A5F18C(iParam0))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_328(int iParam0)
  {
  	int iVar0;
  	
  	if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  	{
  		if (unk_0xAE06B9E39EBDE049(unk_0x9B0761B4C3EB8BC7()))
  		{
  			if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  			{
  				iVar0 = func_105();
  				if (!func_36(iVar0))
  				{
  					return 0;
  				}
  				switch (iParam0)
  				{
  					case 9:
  					case 0:
  						if (((((((((((((((((!unk_0x117A56F7403FC6D2(unk_0x460153A63B9477BC()) || unk_0xA16974805191D19C(unk_0x9B0761B4C3EB8BC7())) || unk_0x11B7C25143EE2F29(unk_0x9B0761B4C3EB8BC7())) || unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7())) || unk_0xEC787E1D3B804A72(unk_0x9B0761B4C3EB8BC7())) || unk_0xD5EAF42B1EAE828F(unk_0x460153A63B9477BC(), 1)) || unk_0x5197F8CD4A72E68F(unk_0x460153A63B9477BC())) || unk_0xF83D0A2EC884A4DD(unk_0x9B0761B4C3EB8BC7(), 0)) || func_336()) || Global_110905) || Global_30970) || func_335()) || func_334(8, -1)) || func_93()) || func_333()) || func_332()) || func_331()) || Global_111858.f_7684.f_919[iVar0] == 5)
  						{
  							return 0;
  						}
  						break;
  					
  					case 1:
  						if (((((((((unk_0xD5EAF42B1EAE828F(unk_0x460153A63B9477BC(), 1) || func_336()) || Global_30970) || func_335()) || func_334(8, -1)) || func_332()) || func_93()) || func_333()) || func_331()) || Global_111858.f_7684.f_919[iVar0] == 5)
  						{
  							return 0;
  						}
  						break;
  					
  					case 2:
  						if ((((((((((((((((((!unk_0x117A56F7403FC6D2(unk_0x460153A63B9477BC()) || unk_0xA16974805191D19C(unk_0x9B0761B4C3EB8BC7())) || unk_0x11B7C25143EE2F29(unk_0x9B0761B4C3EB8BC7())) || unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7())) || unk_0xEC787E1D3B804A72(unk_0x9B0761B4C3EB8BC7())) || unk_0xD5EAF42B1EAE828F(unk_0x460153A63B9477BC(), 1)) || unk_0x5197F8CD4A72E68F(unk_0x460153A63B9477BC())) || unk_0xF83D0A2EC884A4DD(unk_0x9B0761B4C3EB8BC7(), 0)) || func_336()) || Global_110905) || Global_30970) || func_335()) || func_334(8, -1)) || func_332()) || func_93()) || func_333()) || func_331()) || Global_111858.f_7684.f_919[iVar0] == 5) || Global_42178 != -1)
  						{
  							return 0;
  						}
  						break;
  					
  					case 3:
  						if ((((((((((((unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7()) || unk_0xEC787E1D3B804A72(unk_0x9B0761B4C3EB8BC7())) || unk_0xD5EAF42B1EAE828F(unk_0x460153A63B9477BC(), 1)) || unk_0xF83D0A2EC884A4DD(unk_0x9B0761B4C3EB8BC7(), 0)) || func_336()) || Global_110905) || Global_30970) || func_335()) || func_334(8, -1)) || func_93()) || func_333()) || func_331()) || Global_111858.f_7684.f_919[iVar0] == 5)
  						{
  							return 0;
  						}
  						break;
  					
  					case 4:
  						if (((((func_336() || unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) > 0) || func_334(8, -1)) || func_331()) || func_330()) || Global_111858.f_7684.f_919[iVar0] == 5)
  						{
  							return 0;
  						}
  						break;
  					
  					case 5:
  						if ((((func_334(8, -1) || func_93()) || func_333()) || func_330()) || func_329())
  						{
  							return 0;
  						}
  						if ((unk_0x9CC4D06F5338CA6B() && unk_0xEE67CF13DD662F51() != 3) && unk_0x69222D599BA78994() < 8)
  						{
  							return 0;
  						}
  						break;
  					
  					case 6:
  						if (unk_0xAE06B9E39EBDE049(unk_0x9B0761B4C3EB8BC7()))
  						{
  							if ((((((((((((((unk_0xF83D0A2EC884A4DD(unk_0x9B0761B4C3EB8BC7(), 0) || unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) > 0) || unk_0xA16974805191D19C(unk_0x9B0761B4C3EB8BC7())) || unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7())) || unk_0xEC787E1D3B804A72(unk_0x9B0761B4C3EB8BC7())) || unk_0xD5EAF42B1EAE828F(unk_0x460153A63B9477BC(), 1)) || unk_0x5197F8CD4A72E68F(unk_0x460153A63B9477BC())) || func_336()) || Global_30970) || func_335()) || func_334(8, -1)) || func_333()) || func_332()) || func_331()) || Global_111858.f_7684.f_919[iVar0] == 5)
  							{
  								return 0;
  							}
  						}
  						break;
  					
  					case 7:
  						if ((((((((((((((((((unk_0xF83D0A2EC884A4DD(unk_0x9B0761B4C3EB8BC7(), 0) || !unk_0x4DC4117F94CD5B84(unk_0x460153A63B9477BC())) || !unk_0x117A56F7403FC6D2(unk_0x460153A63B9477BC())) || !unk_0x87F0CB19476706C3()) || unk_0xA16974805191D19C(unk_0x9B0761B4C3EB8BC7())) || unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7())) || unk_0xEC787E1D3B804A72(unk_0x9B0761B4C3EB8BC7())) || unk_0xD5EAF42B1EAE828F(unk_0x460153A63B9477BC(), 1)) || func_336()) || func_333()) || Global_110905) || Global_30970) || func_335()) || Global_42801) || func_334(8, -1)) || func_332()) || func_330()) || func_331()) || Global_111858.f_7684.f_919[iVar0] == 5)
  						{
  							return 0;
  						}
  						break;
  					
  					case 8:
  						if (((((((((((((((((((((unk_0xF83D0A2EC884A4DD(unk_0x9B0761B4C3EB8BC7(), 0) || !unk_0x4DC4117F94CD5B84(unk_0x460153A63B9477BC())) || !unk_0x117A56F7403FC6D2(unk_0x460153A63B9477BC())) || !unk_0x87F0CB19476706C3()) || unk_0x0F1E960B06B93848(unk_0x460153A63B9477BC(), 0)) || unk_0xA16974805191D19C(unk_0x9B0761B4C3EB8BC7())) || unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1)) || unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7())) || unk_0xEC787E1D3B804A72(unk_0x9B0761B4C3EB8BC7())) || unk_0x9D7D76BBBFE285E0(unk_0x9B0761B4C3EB8BC7())) || unk_0xD5EAF42B1EAE828F(unk_0x460153A63B9477BC(), 1)) || unk_0x5197F8CD4A72E68F(unk_0x460153A63B9477BC())) || func_336()) || Global_110905) || Global_30970) || func_335()) || func_334(8, -1)) || func_332()) || func_330()) || func_93()) || func_333()) || func_331())
  						{
  							return 0;
  						}
  						break;
  				}
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	else
  	{
  		return 0;
  	}
  	return 1;
  }
  
  var func_329()
  {
  	return Global_98994.f_1;
  }
  
  int func_330()
  {
  	if (Global_95877 != -1)
  	{
  		return unk_0xCE990E643CD9D0E5(Global_89743[Global_95877 /*34*/].f_15, 13);
  	}
  	return 0;
  }
  
  int func_331()
  {
  	if (unk_0x7B70881748D166CD(joaat("player_timetable_scene")) > 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_332()
  {
  	if (Global_77093)
  	{
  		return 1;
  	}
  	else if (Global_61711 && !Global_61717)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_333()
  {
  	return Global_99007.f_352 > 0;
  }
  
  bool func_334(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 5:
  			if (iParam1 > -1)
  			{
  				return Global_1377236.f_203[iParam1];
  			}
  			break;
  	}
  	return unk_0xCE990E643CD9D0E5(Global_1377236.f_1048, iParam0);
  }
  
  var func_335()
  {
  	return Global_1312896;
  }
  
  int func_336()
  {
  	if (!unk_0x25DDB354A40FFCDB())
  	{
  		return Global_96433.f_44 == 1;
  	}
  	return 0;
  }
  
  void func_337(var uParam0, int iParam1)
  {
  	if (!*iParam1)
  	{
  		if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  		{
  			if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0x272784C60C397DB6(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1), uParam0->f_17[0 /*3*/], 1) > 25f)
  				{
  					func_494("Resetting help text flag as player has moved out of range...");
  					*iParam1 = 1;
  				}
  			}
  		}
  	}
  }
  
  void func_338(int iParam0, char* sParam1, struct<3> Param2)
  {
  	if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  	{
  		if (!unk_0x7BCC91F3C1CF24E8(sParam1))
  		{
  			if (Global_41631 == 17)
  			{
  				if (*iParam0 != -1)
  				{
  					func_344(iParam0);
  				}
  			}
  			else if (func_343())
  			{
  				if (*iParam0 != -1)
  				{
  					func_344(iParam0);
  				}
  			}
  			else if (*iParam0 == -1)
  			{
  				if (func_342(unk_0x9B0761B4C3EB8BC7(), Param2, 1) <= 100f)
  				{
  					func_341(iParam0, 1);
  				}
  			}
  			else
  			{
  				switch (func_340(*iParam0))
  				{
  					case 1:
  						if (unk_0xF005CCA4263DF67F(sParam1, "JOSH_1_INT_CONCAT"))
  						{
  							unk_0xDDBEE500B2E6E7FA(sParam1, 14, 8);
  						}
  						else
  						{
  							unk_0x85D9FC15836825C1(sParam1, 8);
  						}
  						unk_0xA378886965CC3459(2);
  						func_339(*iParam0, 1);
  						break;
  					
  					case 2:
  						unk_0xF43E5395F54BAF56(0);
  						unk_0xA389D93286499741();
  						unk_0xA378886965CC3459(0);
  						func_339(*iParam0, 0);
  						break;
  				}
  				if (func_342(unk_0x9B0761B4C3EB8BC7(), Param2, 1) > 120f)
  				{
  					func_344(iParam0);
  				}
  			}
  		}
  	}
  }
  
  void func_339(int iParam0, bool bParam1)
  {
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (bParam1)
  	{
  		if (Global_76829 == iParam0)
  		{
  			Global_76830 = iParam0;
  		}
  	}
  	else if (Global_76830 == iParam0)
  	{
  		Global_76830 = -1;
  	}
  }
  
  int func_340(int iParam0)
  {
  	if (Global_76829 == iParam0)
  	{
  		if (Global_76830 == -1)
  		{
  			if (Global_76828 < unk_0xD3137A576BE9EC5C())
  			{
  				return 1;
  			}
  		}
  	}
  	else if (Global_76830 == iParam0)
  	{
  		return 2;
  	}
  	return 0;
  }
  
  void func_341(int iParam0, int iParam1)
  {
  	bool bVar0;
  	int iVar1;
  	
  	if (Global_76826 < 5)
  	{
  		Global_76815[Global_76826 /*2*/] = 0;
  		Global_76815[Global_76826 /*2*/].f_1 = iParam1;
  		bVar0 = false;
  		while (!bVar0)
  		{
  			bVar0 = true;
  			iVar1 = 0;
  			while (iVar1 < Global_76826)
  			{
  				if (Global_76815[iVar1 /*2*/] == Global_76815[Global_76826 /*2*/])
  				{
  					Global_76815[Global_76826 /*2*/]++;
  					bVar0 = false;
  				}
  				iVar1++;
  			}
  		}
  		*iParam0 = Global_76815[Global_76826 /*2*/];
  		Global_76826++;
  		Global_76827 = 1;
  	}
  	else
  	{
  		*iParam0 = -1;
  	}
  }
  
  float func_342(int iParam0, struct<3> Param1, int iParam2)
  {
  	struct<3> Var0;
  	
  	if (!unk_0xA59F96B50B97E63C(iParam0, 0))
  	{
  		Var0 = { unk_0x3E4D3CCC220BDFB1(iParam0, 1) };
  	}
  	else
  	{
  		Var0 = { unk_0x3E4D3CCC220BDFB1(iParam0, 0) };
  	}
  	return unk_0x272784C60C397DB6(Var0, Param1, iParam2);
  }
  
  bool func_343()
  {
  	return Global_96264;
  }
  
  void func_344(int iParam0)
  {
  	unk_0xF43E5395F54BAF56(0);
  	unk_0xA389D93286499741();
  	func_345(iParam0);
  }
  
  void func_345(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (*iParam0 == -1)
  	{
  		return;
  	}
  	if (Global_76830 == *iParam0)
  	{
  		func_339(*iParam0, 0);
  	}
  	if (Global_76829 == *iParam0)
  	{
  		Global_76829 = -1;
  	}
  	bVar0 = false;
  	iVar1 = 0;
  	while (!bVar0 && iVar1 < Global_76826)
  	{
  		if (Global_76815[iVar1 /*2*/] == *iParam0)
  		{
  			bVar0 = true;
  		}
  		else
  		{
  			iVar1++;
  		}
  	}
  	if (!bVar0)
  	{
  		return;
  	}
  	iVar2 = iVar1;
  	while (iVar2 <= (Global_76826 - 2))
  	{
  		Global_76815[iVar2 /*2*/] = Global_76815[iVar2 + 1 /*2*/];
  		Global_76815[iVar2 /*2*/].f_1 = Global_76815[iVar2 + 1 /*2*/].f_1;
  		iVar2++;
  	}
  	Global_76815[(Global_76826 - 1) /*2*/] = -1;
  	Global_76815[(Global_76826 - 1) /*2*/].f_1 = 3;
  	Global_76826 = (Global_76826 - 1);
  	Global_76827 = 1;
  	Global_76828 = unk_0xD3137A576BE9EC5C();
  	*iParam0 = -1;
  }
  
  void func_346(int iParam0)
  {
  	if (iParam0 == -1)
  	{
  		iParam0 = func_162();
  	}
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	Global_110945[iParam0 /*10*/].f_1 = 1;
  }
  
  void func_347()
  {
  	switch (iLocal_57)
  	{
  		case 0:
  			if ((unk_0x578C4EF320340AF7() - iLocal_223) > 20000)
  			{
  				iLocal_57 = 1;
  			}
  			break;
  		
  		case 1:
  			if (func_342(unk_0x9B0761B4C3EB8BC7(), -726.45f, 33.33f, 43.23f, 1) < 9f)
  			{
  				if (func_348(&uLocal_58, "EPS8AU", "EPS8_AMB1", 7, 0, 0, 0))
  				{
  					iLocal_57 = 2;
  				}
  			}
  			if (func_342(unk_0x9B0761B4C3EB8BC7(), -666.55f, 49.19f, 42.08f, 1) < 9f)
  			{
  				if (func_348(&uLocal_58, "EPS8AU", "EPS8_AMB2", 7, 0, 0, 0))
  				{
  					iLocal_57 = 2;
  				}
  			}
  			break;
  		
  		case 2:
  			if (!func_363())
  			{
  				iLocal_223 = unk_0x578C4EF320340AF7();
  				iLocal_57 = 0;
  			}
  			break;
  	}
  }
  
  bool func_348(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6)
  {
  	func_360(uParam0, 145, sParam1, iParam4, iParam5, iParam6);
  	if (iParam3 > 7)
  	{
  		if (iParam3 < 12)
  		{
  			iParam3 = 7;
  		}
  	}
  	Global_21012 = 0;
  	Global_21014 = 0;
  	Global_21019 = 0;
  	Global_21996 = 0;
  	Global_21998 = 0;
  	Global_22002 = 0;
  	Global_2621441 = 0;
  	return func_349(sParam2, iParam3, 0);
  }
  
  int func_349(char* sParam0, int iParam1, bool bParam2)
  {
  	Global_21006 = 0;
  	if (Global_21005 == 0 || Global_21007 == 2)
  	{
  		if (Global_21005 != 0)
  		{
  			if (iParam1 > Global_21007)
  			{
  				if (Global_21012 == 0)
  				{
  					unk_0xBE4122AC23440E7D(0);
  					Global_19681.f_1 = 3;
  					Global_21005 = 0;
  					Global_21006 = 1;
  					Global_21058 = 0;
  					Global_21001 = 0;
  					Global_21002 = 0;
  					Global_21016 = 0;
  					Global_21015 = 0;
  					Global_19680 = 0;
  				}
  				else
  				{
  					func_359();
  					return 0;
  				}
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		if (unk_0x6A5CC4A2C9D9ED8D())
  		{
  			return 0;
  		}
  		if (func_334(8, -1))
  		{
  			return 0;
  		}
  		Global_21081 = { Global_21075 };
  		func_358();
  		Global_20294 = { Global_20459 };
  		Global_21011 = Global_21012;
  		Global_21018 = Global_21019;
  		Global_2621442 = Global_2621441;
  		Global_21020 = { Global_21036 };
  		Global_21013 = Global_21014;
  		Global_21995 = Global_21996;
  		Global_22003 = { Global_22009 };
  		Global_21997 = Global_21998;
  		Global_21999 = Global_22000;
  		Global_22001 = Global_22002;
  		Global_20624.f_370 = Global_21994;
  		Global_20624.f_368 = Global_21992;
  		Global_20624.f_369 = Global_21993;
  		Global_21001 = Global_21002;
  		if (Global_21011)
  		{
  			unk_0xD2459066EA58CE43(&Global_7551, 20);
  			unk_0xD2459066EA58CE43(&Global_7552, 17);
  			unk_0xD2459066EA58CE43(&Global_7553, 0);
  			if (bParam2)
  			{
  				func_357();
  				if (Global_8356[Global_19681 /*2811*/][0 /*281*/].f_259 == 2)
  				{
  					if (iParam1 == 13)
  					{
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				if (Global_19681.f_1 > 3)
  				{
  					return 0;
  				}
  			}
  			if (Global_19647 == 1)
  			{
  				return 0;
  			}
  			if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  			{
  				if (unk_0x42A04E707DE50816(unk_0x9B0761B4C3EB8BC7()))
  				{
  					return 0;
  				}
  				if (func_356())
  				{
  					return 0;
  				}
  				if (unk_0x7587087519CF4F83(unk_0x9B0761B4C3EB8BC7()))
  				{
  					return 0;
  				}
  				if (unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7()))
  				{
  					return 0;
  				}
  				if (unk_0xAACBFCE60AF94F2D(unk_0x9B0761B4C3EB8BC7()))
  				{
  					return 0;
  				}
  				if (unk_0x02D1369035663875(unk_0x9B0761B4C3EB8BC7(), joaat("gadget_parachute")))
  				{
  					return 0;
  				}
  				if (!Global_76833)
  				{
  					if (unk_0xE72C9284B5143451(unk_0x9B0761B4C3EB8BC7()))
  					{
  						return 0;
  					}
  					if (unk_0x5197F8CD4A72E68F(unk_0x460153A63B9477BC()))
  					{
  						return 0;
  					}
  					if (unk_0x887D491E579FA61E(unk_0x9B0761B4C3EB8BC7()))
  					{
  						return 0;
  					}
  					if (unk_0x4C9EC9A10C274889(unk_0x460153A63B9477BC(), 0))
  					{
  						return 0;
  					}
  				}
  			}
  			if (func_140())
  			{
  				return 0;
  			}
  			else
  			{
  				switch (Global_19681.f_1)
  				{
  					case 7:
  						return 0;
  						break;
  					
  					case 8:
  						return 0;
  						break;
  					
  					case 9:
  						break;
  					
  					case 10:
  						break;
  					
  					default:
  						break;
  				}
  				if (unk_0xCE990E643CD9D0E5(Global_7551, 9))
  				{
  					return 0;
  				}
  			}
  			func_355();
  			Global_21015 = bParam2;
  		}
  		Global_21007 = iParam1;
  		StringCopy(&Global_20624, sParam0, 24);
  		Global_19871 = 0;
  		func_354();
  		func_350();
  		return 1;
  	}
  	if (Global_21005 == 5)
  	{
  		return 0;
  	}
  	if (iParam1 < Global_21007 || iParam1 == Global_21007)
  	{
  		return 0;
  	}
  	if (iParam1 == 2)
  	{
  	}
  	else
  	{
  		func_359();
  	}
  	return 0;
  }
  
  void func_350()
  {
  	if (!func_351())
  	{
  		return;
  	}
  	if (Global_21011)
  	{
  		MemCopy(&(Global_1703978.f_1), {Global_20624}, 4);
  		Global_1703978 = Global_6866;
  		Global_1703978.f_6 = Global_21015;
  	}
  }
  
  int func_351()
  {
  	if (!Global_262145.f_28160)
  	{
  		return 0;
  	}
  	if (!Global_76833)
  	{
  		return 0;
  	}
  	if (unk_0x460153A63B9477BC() == func_87())
  	{
  		return 0;
  	}
  	if (func_352(unk_0x460153A63B9477BC()))
  	{
  		return 0;
  	}
  	if (unk_0xCE990E643CD9D0E5(Global_1630317[unk_0x460153A63B9477BC() /*595*/].f_1, 7))
  	{
  		return 0;
  	}
  	if (unk_0xFC559366953F62B3())
  	{
  		return 0;
  	}
  	return 1;
  }
  
  bool func_352(int iParam0)
  {
  	return func_353(iParam0, 20);
  }
  
  bool func_353(int iParam0, int iParam1)
  {
  	return unk_0xCE990E643CD9D0E5(Global_1630317[iParam0 /*595*/].f_11.f_4, iParam1);
  }
  
  void func_354()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 69)
  	{
  		StringCopy(&(Global_19873[iVar0 /*6*/]), "", 24);
  		iVar0++;
  	}
  	unk_0xBE4122AC23440E7D(0);
  	Global_21005 = 1;
  }
  
  void func_355()
  {
  	Global_21058 = Global_21057;
  	Global_21052 = Global_21053;
  	Global_21099 = { Global_21087 };
  	Global_21105 = { Global_21093 };
  	Global_21060 = Global_21059;
  	Global_21129 = { Global_21111 };
  	Global_21135 = { Global_21117 };
  	Global_21141 = { Global_21123 };
  	Global_21147 = { Global_21153 };
  	Global_6866 = Global_6867;
  	Global_6868 = Global_6869;
  	Global_21016 = Global_21017;
  	Global_21018 = Global_21019;
  	Global_21020 = { Global_21036 };
  	Global_21009 = Global_21010;
  	Global_22021 = 0;
  	Global_21054 = 0;
  	Global_21055 = 0;
  	unk_0xD2459066EA58CE43(&Global_7552, 16);
  }
  
  int func_356()
  {
  	int iVar0;
  	int iVar1;
  	
  	if (Global_76833)
  	{
  		iVar0 = 0;
  		unk_0x1386E5E658CE3032(unk_0x9B0761B4C3EB8BC7(), &iVar1, 1);
  		if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  		{
  			if ((iVar1 == joaat("weapon_sniperrifle") || iVar1 == joaat("weapon_heavysniper")) || iVar1 == joaat("weapon_remotesniper"))
  			{
  				iVar0 = 1;
  			}
  		}
  		if (unk_0x5BFE1F305D18843B() && iVar0 == 1)
  		{
  			return 1;
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  	{
  		if (unk_0xD15202C6B03220B8(unk_0x9B0761B4C3EB8BC7(), 78, 1))
  		{
  			return 1;
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	return 1;
  }
  
  void func_357()
  {
  	if (func_57(14))
  	{
  		if (!unk_0xA59F96B50B97E63C(unk_0x9B0761B4C3EB8BC7(), 0))
  		{
  			if (unk_0x36FE6D3220816ADA(unk_0x9B0761B4C3EB8BC7()) == Global_111858.f_28046[0 /*29*/])
  			{
  				Global_19681 = 0;
  			}
  			else if (unk_0x36FE6D3220816ADA(unk_0x9B0761B4C3EB8BC7()) == Global_111858.f_28046[1 /*29*/])
  			{
  				Global_19681 = 1;
  			}
  			else if (unk_0x36FE6D3220816ADA(unk_0x9B0761B4C3EB8BC7()) == Global_111858.f_28046[2 /*29*/])
  			{
  				Global_19681 = 2;
  			}
  			else
  			{
  				Global_19681 = 0;
  			}
  		}
  	}
  	else
  	{
  		Global_19681 = func_105();
  		if (Global_19681 == 145)
  		{
  			Global_19681 = 3;
  		}
  		if (Global_76833)
  		{
  			Global_19681 = 3;
  		}
  		if (Global_19681 > 3)
  		{
  			Global_19681 = 3;
  		}
  	}
  }
  
  void func_358()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 15)
  	{
  		Global_20294[iVar0 /*10*/] = 0;
  		StringCopy(&(Global_20294[iVar0 /*10*/].f_1), "", 24);
  		Global_20294[iVar0 /*10*/].f_7 = 0;
  		Global_20294[iVar0 /*10*/].f_8 = 0;
  		iVar0++;
  	}
  	Global_20294.f_161 = -99;
  	Global_20294.f_162 = { 0f, 0f, 0f };
  }
  
  void func_359()
  {
  	unk_0x62B2C9892E3E142D();
  	Global_22016 = 0;
  	if ((unk_0x6B12213471F330A3() || Global_19681.f_1 == 9) || Global_19680 == 1)
  	{
  		unk_0xBE4122AC23440E7D(0);
  		Global_21005 = 6;
  		Global_19681.f_1 = 3;
  		return;
  	}
  	if (unk_0x6A5CC4A2C9D9ED8D())
  	{
  		unk_0xBE4122AC23440E7D(1);
  		Global_21005 = 6;
  		return;
  	}
  }
  
  void func_360(var uParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5)
  {
  	Global_20459 = { *uParam0 };
  	Global_6867 = iParam1;
  	StringCopy(&Global_21075, sParam2, 24);
  	Global_21994 = iParam5;
  	if (iParam3 == 0)
  	{
  		Global_21992 = 1;
  		Global_21990 = 0;
  	}
  	else
  	{
  		Global_21992 = 0;
  		Global_21990 = 1;
  	}
  	if (iParam4 == 0)
  	{
  		Global_21993 = 1;
  		Global_21991 = 0;
  	}
  	else
  	{
  		Global_21993 = 0;
  		Global_21991 = 1;
  	}
  }
  
  void func_361(int iParam0)
  {
  	if (func_391(iParam0->f_28[0]))
  	{
  		switch (iLocal_232)
  		{
  			case 0:
  				iLocal_233 = 0;
  				Local_234[0 /*3*/] = { -2887.15f, 3197.88f, 10.17f };
  				Local_234[1 /*3*/] = { -2888.92f, 3203.76f, 10.6f };
  				Local_234[2 /*3*/] = { -2895.37f, 3199.37f, 10.03f };
  				unk_0x131ED02492676000("rcmepsilonism6");
  				if (unk_0xC614DDE265D18415("rcmepsilonism6"))
  				{
  					unk_0x756D74A3EF0AB788(iParam0->f_28[0], "rcmepsilonism6", "cultist_upperstatic", 8f, -8f, -1, 49, 0, 0, 0, 0);
  					iLocal_232 = 1;
  					func_494("Initialised Eps 6 Tom state machine");
  				}
  				break;
  			
  			case 1:
  				if (!func_369(iParam0->f_28[0], 713668775))
  				{
  					unk_0x3C1B180EE30D36EF(iParam0->f_28[0], Local_234[iLocal_233 /*3*/], 1f, 20000, 0.25f, 0, 1193033728);
  					func_494("Eps 6: Nav tasking Tom...");
  					iLocal_232 = 2;
  				}
  				break;
  			
  			case 2:
  				if (func_342(iParam0->f_28[0], Local_234[iLocal_233 /*3*/], 1) <= 1.2f)
  				{
  					iLocal_232 = 3;
  					func_494("Eps 6: Tom at coord; do idle anim");
  				}
  				break;
  			
  			case 3:
  				unk_0x9B94F6169B0DAEFD(iParam0->f_28[0]);
  				unk_0x756D74A3EF0AB788(iParam0->f_28[0], "rcmepsilonism6", "cultist_idle_a", 16f, -2f, -1, 131072, 0, 0, 0, 0);
  				unk_0x1322CA891C5DF18A(iParam0->f_28[0], 0, 0);
  				iLocal_232 = 4;
  				func_494("Eps 6: Done Tom idle anim");
  				break;
  			
  			case 4:
  				if (unk_0x9934470AA0A08B57(iParam0->f_28[0], "rcmepsilonism6", "cultist_idle_a", 3))
  				{
  					if (unk_0x4C06B15B376AA145(iParam0->f_28[0], "rcmepsilonism6", "cultist_idle_a") >= 0.98f)
  					{
  						if (iLocal_233 >= 2)
  						{
  							iLocal_233 = 0;
  						}
  						else
  						{
  							iLocal_233++;
  						}
  						unk_0x756D74A3EF0AB788(iParam0->f_28[0], "rcmepsilonism6", "cultist_upperstatic", 16f, -8f, -1, 49, 0, 0, 0, 0);
  						unk_0x1322CA891C5DF18A(iParam0->f_28[0], 0, 0);
  						iLocal_232 = 1;
  						func_494("Eps 6: Tom idle anim >0.98");
  					}
  				}
  				else
  				{
  					if (iLocal_233 >= 2)
  					{
  						iLocal_233 = 0;
  					}
  					else
  					{
  						iLocal_233++;
  					}
  					unk_0x756D74A3EF0AB788(iParam0->f_28[0], "rcmepsilonism6", "cultist_upperstatic", 8f, -8f, -1, 49, 0, 0, 0, 0);
  					iLocal_232 = 1;
  					func_494("Eps 6: Tom idle anim not playing");
  				}
  				break;
  			}
  	}
  }
  
  void func_362()
  {
  	Global_19871 = 0;
  	func_359();
  }
  
  int func_363()
  {
  	if (Global_21005 != 0 || unk_0x6A5CC4A2C9D9ED8D())
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_364(var uParam0, struct<3> Param1, char[4] cParam2, char* sParam3, int iParam4, char* sParam5, int iParam6)
  {
  	var uVar0;
  	
  	if (func_328(2))
  	{
  		if (!func_363())
  		{
  			if (((func_391(unk_0x9B0761B4C3EB8BC7()) && func_391(uParam0->f_28[0])) && (unk_0x578C4EF320340AF7() - uParam0->f_60) > iParam6) && func_342(unk_0x9B0761B4C3EB8BC7(), Param1, 1) < 20f)
  			{
  				uVar0 = 16;
  				func_432(&uVar0, iParam4, uParam0->f_28[0], sParam5, 0, 1);
  				func_367(&uVar0, cParam2, sParam3, 7, 0, 0);
  				uParam0->f_60 = unk_0x578C4EF320340AF7();
  				return 1;
  			}
  		}
  		else if (func_365(sParam3))
  		{
  			if (func_391(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (func_342(unk_0x9B0761B4C3EB8BC7(), Param1, 1) >= 20f)
  				{
  					func_362();
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_365(char* sParam0)
  {
  	struct<6> Var0;
  	
  	Var0 = { func_366() };
  	if (unk_0xF005CCA4263DF67F(&Var0, sParam0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  struct<6> func_366()
  {
  	struct<6> Var0;
  	
  	StringCopy(&Var0, "NULL", 24);
  	if (Global_21005 == 4)
  	{
  		return Global_20624;
  	}
  	return Var0;
  }
  
  void func_367(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5)
  {
  	func_360(uParam0, 145, sParam1, iParam4, iParam5, 0);
  	if (iParam3 > 7)
  	{
  		if (iParam3 < 12)
  		{
  			iParam3 = 7;
  		}
  	}
  	unk_0xBE20AB8238688965(&Global_19871, 0);
  	Global_21008 = iParam3;
  	StringCopy(&Global_20995, sParam2, 24);
  }
  
  void func_368()
  {
  	switch (iLocal_57)
  	{
  		case 0:
  			iLocal_57 = 1;
  			break;
  		
  		case 1:
  			if (func_342(unk_0x9B0761B4C3EB8BC7(), 1826.45f, 4699.58f, 38.15f, 1) <= 25f && iLocal_224 == 0)
  			{
  				if (func_348(&uLocal_58, "EPS4AUD", "EPS4_AMBJ", 8, 0, 0, 0))
  				{
  					iLocal_57 = 2;
  					iLocal_224 = 1;
  				}
  			}
  			break;
  		
  		case 2:
  			if (!func_363())
  			{
  				iLocal_57 = 0;
  			}
  			else if (func_342(unk_0x9B0761B4C3EB8BC7(), 1826.45f, 4699.58f, 38.15f, 1) >= 28f)
  			{
  				func_362();
  				iLocal_57 = 0;
  			}
  			break;
  	}
  }
  
  int func_369(int iParam0, int iParam1)
  {
  	if (func_126(iParam0))
  	{
  		if (unk_0x16BC17A8EDC701A2(iParam0, iParam1) == 1 || unk_0x16BC17A8EDC701A2(iParam0, iParam1) == 0)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_370()
  {
  	unk_0x830F007E19C63E14(uLocal_228, "SET_COLOUR");
  	unk_0xAD291B8F75D737AD(255);
  	unk_0xAD291B8F75D737AD(10);
  	unk_0xAD291B8F75D737AD(10);
  	unk_0xAD291B8F75D737AD(255);
  	unk_0xAD291B8F75D737AD(10);
  	unk_0xAD291B8F75D737AD(10);
  	unk_0xAD291B8F75D737AD(255);
  	unk_0xAD291B8F75D737AD(10);
  	unk_0xAD291B8F75D737AD(10);
  	unk_0xE1FDD153F5858534();
  	unk_0x830F007E19C63E14(uLocal_228, "SET_DISTANCE");
  	unk_0x49B9B8101B158AEE(10f);
  	unk_0xE1FDD153F5858534();
  	unk_0xCA1F114B668562E5(uLocal_229);
  	unk_0xE6A03BA84586E67B(uLocal_228, 0.1f, 0.24f, 0.21f, 0.51f, 100, 100, 100, 255, 0);
  	if ((unk_0x578C4EF320340AF7() - iLocal_230) > 1250)
  	{
  		unk_0x057194D526464DC0(uLocal_231, "IDLE_BEEP_NPC", 1827.06f, 4700.52f, 39.16f, "EPSILONISM_04_SOUNDSET", 0, 0, 0);
  		iLocal_230 = unk_0x578C4EF320340AF7();
  	}
  }
  
  int func_371(int iParam0, bool bParam1, float fParam2, float fParam3, bool bParam4, bool bParam5, bool bParam6, bool bParam7)
  {
  	struct<3> Var0;
  	
  	if (func_391(unk_0x9B0761B4C3EB8BC7()) && func_391(iParam0))
  	{
  		if (unk_0xCDF860E56BBCC6B4(iParam0, unk_0x9B0761B4C3EB8BC7(), 1))
  		{
  			return 1;
  		}
  		if (func_385(iParam0, bParam1, bParam5, bParam6, bParam7))
  		{
  			return 1;
  		}
  		if (!unk_0xC0A3F78AF5448915(unk_0x9B0761B4C3EB8BC7(), 6))
  		{
  			if (unk_0x42A04E707DE50816(unk_0x9B0761B4C3EB8BC7()))
  			{
  				Var0 = { unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1) - unk_0x3E4D3CCC220BDFB1(iParam0, 1) };
  				if ((((Var0.x * Var0.x) + (Var0.f_1 * Var0.f_1)) + (Var0.f_2 * Var0.f_2)) <= 5f)
  				{
  					return func_384(unk_0x9B0761B4C3EB8BC7(), iParam0, fParam2);
  				}
  			}
  		}
  		if (bParam4)
  		{
  			return 0;
  		}
  		else if (func_372(iParam0, fParam3))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_372(int iParam0, float fParam1)
  {
  	float fVar0;
  	
  	if (func_391(unk_0x9B0761B4C3EB8BC7()) && func_391(iParam0))
  	{
  		if (func_383(iParam0) || unk_0x5E5402F6D3B26AFB(unk_0x460153A63B9477BC(), iParam0))
  		{
  			if (unk_0xC0A3F78AF5448915(unk_0x9B0761B4C3EB8BC7(), 6))
  			{
  				fVar0 = 40f;
  			}
  			else
  			{
  				fVar0 = 3f;
  			}
  			if (unk_0x910DFF8E55ABB8EC(unk_0x9B0761B4C3EB8BC7(), iParam0, fVar0, fVar0, fVar0, 0, 1, 0))
  			{
  				if (func_373(iParam0, fParam1))
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  bool func_373(int iParam0, float fParam1)
  {
  	return func_374(iParam0, unk_0x9B0761B4C3EB8BC7(), fParam1, 1, 250, 7);
  }
  
  bool func_374(int iParam0, int iParam1, float fParam2, int iParam3, int iParam4, int iParam5)
  {
  	var uVar0;
  	struct<3> Var1;
  	int iVar2;
  	
  	iVar2 = func_382(iParam0, iParam1);
  	if (!func_391(iParam0) || !func_391(iParam1))
  	{
  		if (iVar2 != -1)
  		{
  			func_381(&(Local_37[iVar2 /*4*/]));
  		}
  		return 0;
  	}
  	if (!func_378(iParam0, iParam1, fParam2, iParam3))
  	{
  		return 0;
  	}
  	if (iVar2 == -1)
  	{
  		iVar2 = func_377();
  		if (iVar2 == -1)
  		{
  			return 0;
  		}
  		Local_37[iVar2 /*4*/].f_1 = iParam0;
  		Local_37[iVar2 /*4*/].f_2 = iParam1;
  	}
  	Var1 = { unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 0f, 0f) };
  	uVar0 = func_375(&(Local_37[iVar2 /*4*/]), Var1, iParam1, &(Local_37[iVar2 /*4*/].f_3), iParam0, iParam5);
  	return (uVar0 || (unk_0x578C4EF320340AF7() - Local_37[iVar2 /*4*/].f_3) < iParam4);
  }
  
  int func_375(var uParam0, struct<3> Param1, int iParam2, var uParam3, int iParam4, int iParam5)
  {
  	var uVar0;
  	struct<3> Var1;
  	var uVar2;
  	int iVar3;
  	int iVar4;
  	
  	iVar3 = 0;
  	if (!func_391(iParam2))
  	{
  		*uParam0 = 0;
  		return 0;
  	}
  	if (*uParam0 == 0)
  	{
  		Var1 = { func_376(iParam2, iParam5) };
  		*uParam0 = unk_0xF898EA06B9458004(Param1, Var1 + Var1 - Param1 * Vector(0.1f, 0.1f, 0.1f), 511, iParam4, 7);
  		return 0;
  	}
  	iVar4 = unk_0x0F0E6A09A9C90474(*uParam0, &uVar0, &Var1, &uVar2, &iVar3);
  	if (iVar4 == 0)
  	{
  		*uParam0 = 0;
  		return 0;
  	}
  	else if (iVar4 == 1)
  	{
  		return 0;
  	}
  	*uParam0 = 0;
  	if (unk_0xA1914E72A0EB31D0(iVar3))
  	{
  		func_391(iVar3);
  		if (unk_0x9048E8838E822F21(iVar3) == iParam2)
  		{
  			if (bLocal_38)
  			{
  				unk_0x3CB9705203630AF7(Param1, unk_0x3E4D3CCC220BDFB1(iParam2, 1), 255, 0, 0, 255, 0, 0, 255, 255);
  			}
  			*uParam3 = unk_0x578C4EF320340AF7();
  			return 1;
  		}
  		return 0;
  	}
  	if (unk_0x20F7576FDB52E2B0(iVar3))
  	{
  		func_391(iVar3);
  		if (unk_0x47DBF174A0CB9D55(iParam2, 0))
  		{
  			if (unk_0xEA90A5DC55A2F652(iVar3) == unk_0xA5D5B1042E8F47BD(iParam2, 0))
  			{
  				if (bLocal_38)
  				{
  					unk_0x3CB9705203630AF7(Param1, unk_0x3E4D3CCC220BDFB1(iParam2, 1), 255, 0, 0, 255, 0, 0, 255, 255);
  				}
  				*uParam3 = unk_0x578C4EF320340AF7();
  				return 1;
  			}
  		}
  		return 0;
  	}
  	return 0;
  }
  
  Vector3 func_376(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam1 == 7)
  	{
  		iVar0 = unk_0x344C570D6F8700DF(0, 7);
  		iParam1 = iVar0;
  	}
  	if (iParam1 == 0)
  	{
  		return unk_0x3E4D3CCC220BDFB1(iParam0, 1);
  	}
  	else if (iParam1 == 1)
  	{
  		return unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 0f, 0f);
  	}
  	else if (iParam1 == 2)
  	{
  		return unk_0x1D5C49FCA9BC5B02(iParam0, 39317, 0f, 0f, 0f);
  	}
  	else if (iParam1 == 3)
  	{
  		return unk_0x1D5C49FCA9BC5B02(iParam0, 18905, 0f, 0f, 0f);
  	}
  	else if (iParam1 == 4)
  	{
  		return unk_0x1D5C49FCA9BC5B02(iParam0, 57005, 0f, 0f, 0f);
  	}
  	else if (iParam1 == 5)
  	{
  		return unk_0x1D5C49FCA9BC5B02(iParam0, 63931, 0f, 0f, 0f);
  	}
  	else if (iParam1 == 6)
  	{
  		return unk_0x1D5C49FCA9BC5B02(iParam0, 36864, 0f, 0f, 0f);
  	}
  	return unk_0x3E4D3CCC220BDFB1(iParam0, 1);
  }
  
  int func_377()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < Local_37)
  	{
  		if ((Local_37[iVar0 /*4*/] == 0 && Local_37[iVar0 /*4*/].f_1 == 0) && Local_37[iVar0 /*4*/].f_2 == 0)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_378(int iParam0, int iParam1, float fParam2, int iParam3)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	float fVar2;
  	
  	Var0 = { func_380(unk_0x3E4D3CCC220BDFB1(iParam1, 1) - unk_0x3E4D3CCC220BDFB1(iParam0, 1)) };
  	if (fParam2 < 0.1f || fParam2 > 360f)
  	{
  		return 1;
  	}
  	if (iParam3 == 0)
  	{
  		Var1 = { unk_0x2E6A35AC161797A7(iParam0) };
  	}
  	else
  	{
  		Var1 = { func_380(unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 5f, 0f) - unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 0f, 0f)) };
  	}
  	fVar2 = func_379(Var1, Var0);
  	if (fVar2 <= SYSTEM::COS((fParam2 / 2f)))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  float func_379(struct<3> Param0, struct<3> Param1)
  {
  	return (((Param0.x * Param1.x) + (Param0.f_1 * Param1.f_1)) + (Param0.f_2 * Param1.f_2));
  }
  
  Vector3 func_380(struct<3> Param0)
  {
  	float fVar0;
  	float fVar1;
  	
  	fVar0 = SYSTEM::VMAG(Param0);
  	if (fVar0 != 0f)
  	{
  		fVar1 = (1f / fVar0);
  		Param0 = { Param0 * Vector(fVar1, fVar1, fVar1) };
  	}
  	else
  	{
  		Param0.x = 0f;
  		Param0.f_1 = 0f;
  		Param0.f_2 = 0f;
  	}
  	return Param0;
  }
  
  void func_381(var uParam0)
  {
  	*uParam0 = 0;
  	uParam0->f_1 = 0;
  	uParam0->f_2 = 0;
  	uParam0->f_3 = 0;
  }
  
  int func_382(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < Local_37)
  	{
  		if (Local_37[iVar0 /*4*/].f_1 == iParam0 && Local_37[iVar0 /*4*/].f_2 == iParam1)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_383(var uParam0)
  {
  	if (unk_0x2311EB213A0CB707(unk_0x460153A63B9477BC(), uParam0) && unk_0xC0A3F78AF5448915(unk_0x9B0761B4C3EB8BC7(), 6))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_384(int iParam0, int iParam1, float fParam2)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	
  	Var0 = { unk_0x2E6A35AC161797A7(iParam0) };
  	Var1 = { unk_0x3E4D3CCC220BDFB1(iParam1, 1) - unk_0x3E4D3CCC220BDFB1(iParam0, 1) };
  	return (((Var0.x * Var1.x) + (Var0.f_1 * Var1.f_1)) / SYSTEM::VDIST(Var1, 0f, 0f, 0f)) > SYSTEM::COS(fParam2);
  }
  
  int func_385(int iParam0, bool bParam1, bool bParam2, bool bParam3, bool bParam4)
  {
  	float fVar0;
  	float fVar1;
  	int iVar2;
  	
  	fVar0 = 8f;
  	fVar1 = 15f;
  	if (bParam1 == 0)
  	{
  		fVar0 = 1.86f;
  		fVar1 = 1.86f;
  	}
  	if (bParam2)
  	{
  		fVar0 = 2f;
  	}
  	if (func_391(unk_0x9B0761B4C3EB8BC7()) && func_391(iParam0))
  	{
  		unk_0x1386E5E658CE3032(unk_0x9B0761B4C3EB8BC7(), &iVar2, 1);
  		if (iVar2 == joaat("weapon_petrolcan"))
  		{
  			fVar0 = 3f;
  			fVar1 = 3f;
  		}
  		if (!bParam2)
  		{
  			if (func_389(iParam0, bParam1, fVar0, fVar1))
  			{
  				return 1;
  			}
  			if (func_386(iParam0, fVar1, bParam3, bParam4))
  			{
  				return 1;
  			}
  		}
  		else
  		{
  			if (unk_0xEBFC112B3EEB18E5(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0x7922FF28ED63354A(unk_0x9B0761B4C3EB8BC7()))
  				{
  					if (unk_0xC7EB33BFDB436C87(unk_0x3E4D3CCC220BDFB1(iParam0, 1), fVar0, 1))
  					{
  						return 1;
  					}
  				}
  			}
  			else
  			{
  				if (bParam1)
  				{
  					fVar0 = 1.86f;
  					fVar1 = 1.86f;
  				}
  				if (func_389(iParam0, bParam1, fVar0, fVar1))
  				{
  					return 1;
  				}
  			}
  			if (func_386(iParam0, fVar1, bParam3, bParam4))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_386(int iParam0, float fParam1, bool bParam2, bool bParam3)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	
  	Var0 = { unk_0x3E4D3CCC220BDFB1(uParam0, 1) };
  	Var1 = { Var0 };
  	Var0.x = (Var0.x - fParam1);
  	Var0.f_1 = (Var0.f_1 - fParam1);
  	Var0.f_2 = (Var0.f_2 - fParam1);
  	Var1.x = (Var1.x + fParam1);
  	Var1.f_1 = (Var1.f_1 + fParam1);
  	Var1.f_2 = (Var1.f_2 + fParam1);
  	if (bParam2)
  	{
  		if (((unk_0x811BEDF8A732443A(unk_0x3E4D3CCC220BDFB1(iParam0, 1), joaat("weapon_grenade"), fParam1, 1) || unk_0x811BEDF8A732443A(unk_0x3E4D3CCC220BDFB1(iParam0, 1), joaat("weapon_molotov"), fParam1, 1)) || unk_0x811BEDF8A732443A(unk_0x3E4D3CCC220BDFB1(iParam0, 1), joaat("weapon_smokegrenade"), fParam1, 1)) || unk_0x811BEDF8A732443A(unk_0x3E4D3CCC220BDFB1(iParam0, 1), joaat("weapon_stickybomb"), 5f, 1))
  		{
  			if (bParam3)
  			{
  				if (func_387(iParam0, fParam1))
  				{
  					return 1;
  				}
  				else
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  	}
  	else
  	{
  		if (bParam3)
  		{
  			if (func_387(iParam0, fParam1))
  			{
  				return 1;
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		if (unk_0x5AC0C31BB5BC0343(Var0, Var1, 1))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_387(var uParam0, float fParam1)
  {
  	var uVar0;
  	struct<3> Var1;
  	
  	if ((((unk_0x7E1498E5B37D9AC7(uParam0, joaat("weapon_grenade"), fParam1, &Var1, &uVar0, 0) || unk_0x7E1498E5B37D9AC7(uParam0, joaat("weapon_smokegrenade"), fParam1, &Var1, &uVar0, 0)) || unk_0x7E1498E5B37D9AC7(uParam0, joaat("weapon_bzgas"), fParam1, &Var1, &uVar0, 0)) || unk_0x7E1498E5B37D9AC7(uParam0, joaat("weapon_stickybomb"), fParam1, &Var1, &uVar0, 0)) || unk_0x7E1498E5B37D9AC7(uParam0, joaat("weapon_molotov"), fParam1, &Var1, &uVar0, 0))
  	{
  		if (func_388(uParam0, Var1, 90f, 0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_388(int iParam0, struct<3> Param1, float fParam2, int iParam3)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	float fVar2;
  	
  	Var0 = { func_380(Param1 - unk_0x3E4D3CCC220BDFB1(uParam0, 1)) };
  	if (fParam2 < 0.1f || fParam2 > 360f)
  	{
  		return 1;
  	}
  	if (iParam3 == 0)
  	{
  		Var1 = { unk_0x2E6A35AC161797A7(iParam0) };
  	}
  	else
  	{
  		Var1 = { func_380(unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 5f, 0f) - unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 0f, 0f)) };
  	}
  	fVar2 = func_379(Var1, Var0);
  	if (fVar2 <= SYSTEM::COS((fParam2 / 2f)))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_389(int iParam0, bool bParam1, float fParam2, float fParam3)
  {
  	if (bParam1)
  	{
  		if (unk_0x7922FF28ED63354A(unk_0x9B0761B4C3EB8BC7()))
  		{
  			if (unk_0x910DFF8E55ABB8EC(unk_0x9B0761B4C3EB8BC7(), uParam0, fParam3, fParam3, fParam3, 0, 1, 0))
  			{
  				return 1;
  			}
  		}
  	}
  	if (unk_0xC7EB33BFDB436C87(unk_0x3E4D3CCC220BDFB1(iParam0, 1), fParam2, 1))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_390(var uParam0, struct<3> Param1, char[4] cParam2, char* sParam3, int iParam4, char* sParam5, int iParam6, float fParam7)
  {
  	var uVar0;
  	
  	if ((((func_391(unk_0x9B0761B4C3EB8BC7()) && func_391(uParam0->f_28[0])) && !func_363()) && (unk_0x578C4EF320340AF7() - uParam0->f_60) > iParam6) && func_342(unk_0x9B0761B4C3EB8BC7(), Param1, 1) < fParam7)
  	{
  		uVar0 = 16;
  		func_432(&uVar0, iParam4, uParam0->f_28[0], sParam5, 0, 1);
  		func_367(&uVar0, cParam2, sParam3, 7, 0, 0);
  		uParam0->f_60 = unk_0x578C4EF320340AF7();
  		return 1;
  	}
  	return 0;
  }
  
  int func_391(int iParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(iParam0))
  	{
  		if (!unk_0xA59F96B50B97E63C(iParam0, 0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_392()
  {
  	if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  	{
  		if (unk_0xEEB37DB9533AA764(unk_0x9B0761B4C3EB8BC7()))
  		{
  			if (iLocal_225)
  			{
  				func_393(109, 0);
  				iLocal_225 = 0;
  			}
  		}
  		else if (!iLocal_225)
  		{
  			func_393(109, 1);
  			iLocal_225 = 1;
  		}
  	}
  	if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), 244.9669f, 374.6696f, 104.4579f, 239.6119f, 360.3045f, 107.7523f, 9.0625f, 0, 1, 0))
  	{
  		Global_7556 = 1;
  	}
  	else
  	{
  		Global_7556 = 0;
  	}
  }
  
  void func_393(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam0 != 226)
  	{
  		if (Global_76833)
  		{
  			iVar0 = Global_2440049.f_75[iParam0];
  		}
  		else
  		{
  			iVar0 = Global_111858.f_7257[iParam0];
  		}
  		if (iVar0 != iParam1 || unk_0xCE990E643CD9D0E5(Global_37418[(iParam0 / 32)], (iParam0 % 32)))
  		{
  			if ((((iParam1 == 4 || iParam1 == 3) || iParam1 == 5) || iParam1 == 6) || iParam1 == 2)
  			{
  				unk_0xBE20AB8238688965(&(Global_37427[(iParam0 / 32)]), (iParam0 % 32));
  				Global_37890[iParam0] = iParam1;
  			}
  			else if (Global_76833)
  			{
  				Global_2440049.f_75[iParam0] = iParam1;
  			}
  			else
  			{
  				Global_111858.f_7257[iParam0] = iParam1;
  			}
  			unk_0xBE20AB8238688965(&(Global_37418[(iParam0 / 32)]), (iParam0 % 32));
  			func_395(iParam0);
  			if (unk_0xCE990E643CD9D0E5(Global_37418[(iParam0 / 32)], (iParam0 % 32)))
  			{
  				func_394(iParam0);
  			}
  		}
  	}
  }
  
  void func_394(int iParam0)
  {
  	if (!unk_0xCE990E643CD9D0E5(Global_38361.f_228[(iParam0 / 32)], (iParam0 % 23)))
  	{
  		unk_0xBE20AB8238688965(&(Global_38361.f_228[(iParam0 / 32)]), (iParam0 % 23));
  		Global_38361[Global_38361.f_227] = iParam0;
  		Global_38361.f_227++;
  	}
  }
  
  void func_395(int iParam0)
  {
  	struct<7> Var0;
  	bool bVar1;
  	bool bVar2;
  	int iVar3;
  	float fVar4;
  	int iVar5;
  	int iVar6;
  	bool bVar7;
  	int iVar8;
  	int iVar9;
  	
  	if (!func_404())
  	{
  		return;
  	}
  	if (unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  	{
  		return;
  	}
  	Var0 = { func_403(iParam0) };
  	if (unk_0xCE990E643CD9D0E5(Var0.f_4, 2))
  	{
  		func_400(iParam0, &Var0);
  	}
  	if (!unk_0x60C47897C07F44B1(Var0.f_5))
  	{
  		if (unk_0x3EBB66F936A3436E())
  		{
  			return;
  		}
  	}
  	bVar1 = false;
  	bVar2 = false;
  	fVar4 = unk_0x272784C60C397DB6(Var0, unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1), 1);
  	if ((unk_0xCE990E643CD9D0E5(Global_37427[(iParam0 / 32)], (iParam0 % 32)) && Global_37890[iParam0] == 2) && fVar4 > 210f)
  	{
  		unk_0xD2459066EA58CE43(&(Global_37427[(iParam0 / 32)]), (iParam0 % 32));
  		Global_37436[iParam0] = 0;
  	}
  	if (unk_0x7B70881748D166CD(joaat("startup_positioning")) == 0)
  	{
  		if (unk_0xCE990E643CD9D0E5(Global_37663[(iParam0 / 32)], (iParam0 % 32)))
  		{
  			if (fVar4 < 25f)
  			{
  				if (Global_99007.f_349 == 0)
  				{
  					if (!unk_0xA59F96B50B97E63C(unk_0x9B0761B4C3EB8BC7(), 0))
  					{
  						Global_99007.f_349 = unk_0x518D695E2DBA9DB8(unk_0x9B0761B4C3EB8BC7());
  					}
  				}
  				iVar5 = Global_99007.f_349;
  				iVar6 = unk_0xD5C5CDCF5230F2BA(Var0);
  				if (iVar5 == iVar6 && iVar5 != 0)
  				{
  					unk_0xBE20AB8238688965(&(Global_37427[(iParam0 / 32)]), (iParam0 % 32));
  					Global_37890[iParam0] = 3;
  					unk_0xBE20AB8238688965(&(Global_37418[(iParam0 / 32)]), (iParam0 % 32));
  				}
  			}
  			unk_0xD2459066EA58CE43(&(Global_37663[(iParam0 / 32)]), (iParam0 % 32));
  		}
  	}
  	if (unk_0xCE990E643CD9D0E5(Global_37427[(iParam0 / 32)], (iParam0 % 32)))
  	{
  		iVar3 = Global_37890[iParam0];
  	}
  	else if (unk_0xCE990E643CD9D0E5(Var0.f_4, 0))
  	{
  		if (Global_111858.f_9081)
  		{
  			iVar3 = func_397(iParam0);
  		}
  		else
  		{
  			iVar3 = 0;
  		}
  		if (func_57(14))
  		{
  			iVar3 = 0;
  		}
  	}
  	else if (unk_0xCE990E643CD9D0E5(Var0.f_4, 1) && unk_0x7B70881748D166CD(joaat("ambient_solomon")) == 0)
  	{
  		if (func_396())
  		{
  			iVar3 = 0;
  		}
  		else
  		{
  			iVar3 = 1;
  		}
  	}
  	else
  	{
  		iVar3 = Global_111858.f_7257[iParam0];
  	}
  	if (Global_38117[iParam0] != iVar3)
  	{
  		bVar1 = true;
  	}
  	if (unk_0xCE990E643CD9D0E5(Global_37418[(iParam0 / 32)], (iParam0 % 32)))
  	{
  		if (!unk_0xCE990E643CD9D0E5(Global_37427[(iParam0 / 32)], (iParam0 % 32)) || (Global_37436[iParam0] == 0 && Global_37890[iParam0] != 2))
  		{
  			bVar1 = true;
  		}
  	}
  	if (bVar1)
  	{
  		if (!Global_37417)
  		{
  		}
  		else
  		{
  			if (!unk_0x60C47897C07F44B1(Var0.f_5))
  			{
  				unk_0x6ADE529A7C2BA641(Var0.f_5, Var0.f_3, Var0, 0, 0, 0);
  			}
  			switch (iVar3)
  			{
  				case 1:
  					if (unk_0xCE990E643CD9D0E5(Var0.f_4, 3))
  					{
  						bVar7 = true;
  					}
  					else if (fVar4 > 3f || unk_0x0D77CDCF403AEBD2(unk_0x07773546A24F4560(Var0.f_5)) <= 0.015f)
  					{
  						iVar8 = unk_0x518D695E2DBA9DB8(unk_0x9B0761B4C3EB8BC7());
  						iVar9 = unk_0xD5C5CDCF5230F2BA(Var0);
  						if (iVar8 != iVar9 || iVar8 == 0)
  						{
  							bVar7 = true;
  						}
  					}
  					if (bVar7)
  					{
  						if (Var0.f_6 != 0f)
  						{
  							unk_0xF5F9F0152F398CDE(Var0.f_5, Var0.f_6, 0, 0);
  						}
  						unk_0xDC5C33A98881772F(Var0.f_5, iVar3, 0, 1);
  						bVar2 = true;
  					}
  					break;
  				
  				case 4:
  					if (Var0.f_6 != 0f)
  					{
  						unk_0xF5F9F0152F398CDE(Var0.f_5, Var0.f_6, 0, 0);
  					}
  					unk_0xDC5C33A98881772F(Var0.f_5, iVar3, 0, 1);
  					bVar2 = true;
  					break;
  				
  				case 2:
  					if (Var0.f_6 != 0f)
  					{
  						unk_0xF5F9F0152F398CDE(Var0.f_5, Var0.f_6, 0, 0);
  					}
  					unk_0xDC5C33A98881772F(Var0.f_5, iVar3, 0, 1);
  					bVar2 = true;
  					break;
  				
  				case 0:
  					if (Var0.f_6 != 0f)
  					{
  						unk_0xF5F9F0152F398CDE(Var0.f_5, Var0.f_6, 0, 1);
  					}
  					unk_0xDC5C33A98881772F(Var0.f_5, iVar3, 0, 1);
  					bVar2 = true;
  					break;
  				
  				case 3:
  					if (Var0.f_6 != 0f)
  					{
  						unk_0xF5F9F0152F398CDE(Var0.f_5, Var0.f_6, 0, 0);
  					}
  					unk_0xDC5C33A98881772F(Var0.f_5, 0, 0, 1);
  					bVar2 = true;
  					break;
  				
  				case 5:
  					if (Var0.f_6 != 0f)
  					{
  						unk_0xF5F9F0152F398CDE(Var0.f_5, Var0.f_6, 0, 0);
  					}
  					unk_0xDC5C33A98881772F(Var0.f_5, iVar3, 0, 1);
  					bVar2 = true;
  					break;
  				
  				case 6:
  					if (Var0.f_6 != 0f)
  					{
  						unk_0xF5F9F0152F398CDE(Var0.f_5, Var0.f_6, 0, 0);
  					}
  					unk_0xDC5C33A98881772F(Var0.f_5, iVar3, 0, 1);
  					bVar2 = true;
  					break;
  				
  				default:
  					if (Var0.f_6 != 0f)
  					{
  						unk_0xF5F9F0152F398CDE(Var0.f_5, Var0.f_6, 0, 0);
  					}
  					unk_0xDC5C33A98881772F(Var0.f_5, iVar3, 0, 1);
  					bVar2 = true;
  					break;
  				}
  		}
  		if (bVar2)
  		{
  			unk_0xD2459066EA58CE43(&(Global_37418[(iParam0 / 32)]), (iParam0 % 32));
  			Global_38117[iParam0] = iVar3;
  		}
  	}
  	if (unk_0xCE990E643CD9D0E5(Global_37427[(iParam0 / 32)], (iParam0 % 32)) && Global_37890[iParam0] != 2)
  	{
  		unk_0xBE20AB8238688965(&(Global_37418[(iParam0 / 32)]), (iParam0 % 32));
  		func_394(iParam0);
  		if (Global_37436[iParam0] < 2)
  		{
  			Global_37436[iParam0]++;
  		}
  	}
  }
  
  int func_396()
  {
  	if (unk_0x0F1E960B06B93848(unk_0x460153A63B9477BC(), 0))
  	{
  		return 0;
  	}
  	switch (func_105())
  	{
  		case 0:
  			if (Global_111858.f_9081.f_99.f_58[65])
  			{
  				return 1;
  			}
  			break;
  		
  		case 1:
  			if (Global_111858.f_9081.f_99.f_58[66])
  			{
  				return 1;
  			}
  			break;
  		
  		case 2:
  			if (Global_111858.f_9081.f_99.f_58[65])
  			{
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_397(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = func_105();
  	if (func_398(iParam0))
  	{
  		return 1;
  	}
  	if (iParam0 == 49)
  	{
  		if (iVar0 == 1)
  		{
  			if (unk_0xCE990E643CD9D0E5(Global_111858.f_7225[5], 0) || unk_0xCE990E643CD9D0E5(Global_111858.f_7225[6], 0))
  			{
  				return 0;
  			}
  		}
  		if (func_36(iVar0))
  		{
  			if (unk_0xCE990E643CD9D0E5(Global_93982[5], iVar0))
  			{
  				return 0;
  			}
  		}
  	}
  	switch (iParam0)
  	{
  		case 38:
  		case 39:
  		case 40:
  		case 41:
  		case 42:
  		case 43:
  		case 44:
  		case 45:
  		case 46:
  			if (iVar0 == 0)
  			{
  				if (unk_0xCE990E643CD9D0E5(Global_111858.f_7225[0], 0))
  				{
  					return 0;
  				}
  			}
  			if (func_36(iVar0))
  			{
  				if (unk_0xCE990E643CD9D0E5(Global_93982[0], iVar0))
  				{
  					if (iParam0 != 40)
  					{
  						return 0;
  					}
  					else
  					{
  						return 1;
  					}
  				}
  			}
  			break;
  		
  		case 47:
  		case 48:
  		case 49:
  			if (iVar0 == 1)
  			{
  				if (unk_0xCE990E643CD9D0E5(Global_111858.f_7225[5], 0))
  				{
  					return 0;
  				}
  			}
  			if (func_36(iVar0))
  			{
  				if (unk_0xCE990E643CD9D0E5(Global_93982[5], iVar0))
  				{
  					return 0;
  				}
  			}
  			break;
  		
  		case 50:
  			if (iVar0 == 1)
  			{
  				if (unk_0xCE990E643CD9D0E5(Global_111858.f_7225[6], 0))
  				{
  					return 0;
  				}
  			}
  			if (func_36(iVar0))
  			{
  				if (unk_0xCE990E643CD9D0E5(Global_93982[6], iVar0))
  				{
  					return 0;
  				}
  			}
  			break;
  		
  		case 51:
  		case 52:
  			if (iVar0 == 2)
  			{
  				if (unk_0xCE990E643CD9D0E5(Global_111858.f_7225[2], 0))
  				{
  					return 0;
  				}
  				if (func_36(iVar0))
  				{
  					if (unk_0xCE990E643CD9D0E5(Global_93982[2], iVar0))
  					{
  						return 0;
  					}
  				}
  			}
  			else if (iVar0 == 0)
  			{
  				if (unk_0xCE990E643CD9D0E5(Global_111858.f_7225[1], 0))
  				{
  					return 0;
  				}
  				if (func_36(iVar0))
  				{
  					if (unk_0xCE990E643CD9D0E5(Global_93982[1], iVar0))
  					{
  						return 0;
  					}
  				}
  			}
  			break;
  		
  		case 53:
  			if (iVar0 == 2)
  			{
  				if (unk_0xCE990E643CD9D0E5(Global_111858.f_7225[3], 0))
  				{
  					return 0;
  				}
  			}
  			if (func_36(iVar0))
  			{
  				if (unk_0xCE990E643CD9D0E5(Global_93982[3], iVar0))
  				{
  					return 0;
  				}
  			}
  			break;
  		
  		default:
  			return 0;
  			break;
  	}
  	return 1;
  }
  
  int func_398(int iParam0)
  {
  	int iVar0;
  	
  	if ((iParam0 == 40 || iParam0 == 49) || iParam0 == 52)
  	{
  		if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  		{
  			if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1))
  			{
  				iVar0 = unk_0x36FE6D3220816ADA(func_399(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 1)));
  				switch (iVar0)
  				{
  					case joaat("utillitruck"):
  					case joaat("monster"):
  						return 1;
  						break;
  					}
  				}
  			}
  	}
  	return 0;
  }
  
  var func_399(var uParam0)
  {
  	return uParam0;
  }
  
  void func_400(int iParam0, var uParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!unk_0xCE990E643CD9D0E5(uParam1->f_4, 2))
  	{
  		return;
  	}
  	iVar0 = func_94();
  	iVar1 = func_402(iVar0);
  	switch (iParam0)
  	{
  		case 133:
  		case 134:
  		case 201:
  		case 202:
  			if (func_401(iParam0))
  			{
  				if (iVar1 < 19)
  				{
  					if (iVar1 >= 7)
  					{
  						Global_111858.f_7257[iParam0] = 0;
  						unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  					}
  				}
  				else
  				{
  					return;
  				}
  			}
  			else if (iVar1 >= 19)
  			{
  				if (SYSTEM::VDIST(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), *uParam1) >= 12f)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			else if (iVar1 < 7)
  			{
  				if (SYSTEM::VDIST(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), *uParam1) >= 12f)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			break;
  		
  		case 199:
  		case 200:
  		case 203:
  		case 204:
  			if (func_401(iParam0))
  			{
  				if (iVar1 < 18)
  				{
  					if (iVar1 >= 7)
  					{
  						Global_111858.f_7257[iParam0] = 0;
  						unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  					}
  				}
  				else
  				{
  					return;
  				}
  			}
  			else if (iVar1 >= 18)
  			{
  				if (SYSTEM::VDIST(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), *uParam1) >= 12f)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			else if (iVar1 < 7)
  			{
  				if (SYSTEM::VDIST(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), *uParam1) >= 12f)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			break;
  		
  		case 141:
  		case 142:
  			if (func_401(iParam0))
  			{
  				if ((unk_0x7B70881748D166CD(joaat("jewelry_heist")) == 0 && unk_0x7B70881748D166CD(joaat("jewelry_setup1")) == 0) && !Global_111858.f_9081.f_99.f_58[4])
  				{
  					if (iVar1 < 21)
  					{
  						if (iVar1 >= 7)
  						{
  							Global_111858.f_7257[iParam0] = 0;
  							unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  						}
  					}
  					else
  					{
  						return;
  					}
  				}
  				else if (!Global_111858.f_9081.f_99.f_58[4])
  				{
  					Global_111858.f_7257[iParam0] = 0;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			else if (Global_111858.f_9081.f_99.f_58[4])
  			{
  				Global_111858.f_7257[iParam0] = 1;
  				unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  			}
  			else if (unk_0x7B70881748D166CD(joaat("jewelry_heist")) == 0 && unk_0x7B70881748D166CD(joaat("jewelry_setup1")) == 0)
  			{
  				if (iVar1 >= 21)
  				{
  					if (SYSTEM::VDIST(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), *uParam1) >= 18f)
  					{
  						Global_111858.f_7257[iParam0] = 1;
  						unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  					}
  				}
  				else if (iVar1 < 7)
  				{
  					if (SYSTEM::VDIST(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), *uParam1) >= 18f)
  					{
  						Global_111858.f_7257[iParam0] = 1;
  						unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  					}
  				}
  			}
  			break;
  		
  		case 145:
  		case 146:
  		case 143:
  		case 144:
  			if (func_401(iParam0))
  			{
  				if (iVar1 < 20)
  				{
  					if (iVar1 >= 9)
  					{
  						Global_111858.f_7257[iParam0] = 0;
  						unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  					}
  				}
  				else
  				{
  					return;
  				}
  			}
  			else if (iVar1 >= 20)
  			{
  				if (SYSTEM::VDIST(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), *uParam1) >= 40f)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			else if (iVar1 < 9)
  			{
  				if (SYSTEM::VDIST(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), *uParam1) >= 40f)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			break;
  		
  		case 147:
  		case 148:
  			if (!func_401(iParam0))
  			{
  				Global_111858.f_7257[iParam0] = 1;
  				unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  			}
  			break;
  		
  		case 152:
  		case 153:
  		case 154:
  		case 155:
  		case 156:
  		case 157:
  			if (!func_401(iParam0))
  			{
  				if (unk_0x7B70881748D166CD(joaat("assassin_valet")) == 0)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			else if (unk_0x7B70881748D166CD(joaat("assassin_valet")) > 0)
  			{
  				Global_111858.f_7257[iParam0] = 0;
  				unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  			}
  			break;
  		
  		case 158:
  		case 159:
  			if (unk_0x7B70881748D166CD(Global_89743[70 /*34*/].f_6) == 0)
  			{
  				if (!func_401(iParam0))
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			break;
  		
  		case 160:
  		case 161:
  			if (unk_0x7B70881748D166CD(joaat("omega2")) == 0)
  			{
  				if (!func_401(iParam0))
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			break;
  		
  		case 70:
  		case 71:
  		case 72:
  			if (!func_401(iParam0) && unk_0x7B70881748D166CD(Global_89743[26 /*34*/].f_6) == 0)
  			{
  				Global_111858.f_7257[iParam0] = 1;
  				unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  			}
  			else
  			{
  				return;
  			}
  			break;
  		
  		case 101:
  		case 102:
  		case 103:
  		case 104:
  			if (!func_401(iParam0))
  			{
  				if (unk_0x7B70881748D166CD(Global_89743[43 /*34*/].f_6) == 0)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			else
  			{
  				return;
  			}
  			break;
  		
  		case 190:
  		case 191:
  			if (!func_401(iParam0))
  			{
  				Global_111858.f_7257[iParam0] = 1;
  				unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  			}
  			break;
  		
  		case 193:
  			if (!func_401(iParam0))
  			{
  				if (unk_0x7B70881748D166CD(Global_89743[93 /*34*/].f_6) > 0)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			else
  			{
  				return;
  			}
  			break;
  		
  		case 198:
  			if (!func_401(iParam0))
  			{
  				Global_111858.f_7257[iParam0] = 1;
  				unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  			}
  			break;
  		
  		case 80:
  			if (!func_401(iParam0))
  			{
  				if (unk_0x7B70881748D166CD(Global_89743[8 /*34*/].f_6) == 0 && unk_0x7B70881748D166CD(Global_89743[10 /*34*/].f_6) == 0)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			else
  			{
  				return;
  			}
  			break;
  		
  		case 205:
  		case 206:
  			if (!func_401(iParam0))
  			{
  				if (unk_0x7B70881748D166CD(Global_89743[47 /*34*/].f_6) == 0)
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			else
  			{
  				return;
  			}
  			break;
  		
  		case 207:
  			if (unk_0x7B70881748D166CD(Global_89743[70 /*34*/].f_6) == 0)
  			{
  				if (!func_401(iParam0))
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			break;
  		
  		case 208:
  		case 209:
  		case 211:
  		case 210:
  		case 212:
  		case 213:
  		case 214:
  		case 215:
  			if (unk_0x7B70881748D166CD(Global_89743[48 /*34*/].f_6) == 0)
  			{
  				if (!func_401(iParam0))
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			break;
  		
  		case 99:
  		case 100:
  			if (unk_0x7B70881748D166CD(Global_89743[39 /*34*/].f_6) == 0)
  			{
  				if (!func_401(iParam0))
  				{
  					Global_111858.f_7257[iParam0] = 1;
  					unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  				}
  			}
  			break;
  		
  		case 216:
  			if (!func_401(iParam0))
  			{
  				Global_111858.f_7257[iParam0] = 1;
  				unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  			}
  			break;
  		
  		case 217:
  		case 218:
  			if (!func_401(iParam0))
  			{
  				Global_111858.f_7257[iParam0] = 1;
  				unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  			}
  			break;
  		
  		case 219:
  		case 220:
  		case 221:
  		case 222:
  			if (func_401(iParam0))
  			{
  				Global_111858.f_7257[iParam0] = 0;
  				unk_0xDC5C33A98881772F(uParam1->f_5, Global_111858.f_7257[iParam0], 1, 1);
  			}
  			break;
  	}
  }
  
  bool func_401(int iParam0)
  {
  	struct<7> Var0;
  	int iVar1;
  	
  	Var0 = { func_403(iParam0) };
  	iVar1 = unk_0x606DAD1002B048F0(Var0.f_5);
  	return ((iVar1 == 1 || iVar1 == 4) || iVar1 == 2);
  }
  
  int func_402(int iParam0)
  {
  	return SYSTEM::SHIFT_RIGHT(iParam0, 9) & 31;
  }
  
  struct<7> func_403(int iParam0)
  {
  	struct<7> Var0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			Var0.f_3 = joaat("v_ilev_bs_door");
  			Var0 = { 133f, -1711f, 29f };
  			Var0.f_5 = 1804701345;
  			break;
  		
  		case 1:
  			Var0.f_3 = joaat("v_ilev_bs_door");
  			Var0 = { -1287.857f, -1115.742f, 7.1401f };
  			Var0.f_5 = 1403601067;
  			break;
  		
  		case 2:
  			Var0.f_3 = joaat("v_ilev_bs_door");
  			Var0 = { 1932.952f, 3725.154f, 32.9944f };
  			Var0.f_5 = -2031139496;
  			break;
  		
  		case 3:
  			Var0.f_3 = joaat("v_ilev_bs_door");
  			Var0 = { 1207.873f, -470.063f, 66.358f };
  			Var0.f_5 = 1796834809;
  			break;
  		
  		case 4:
  			Var0.f_3 = joaat("v_ilev_bs_door");
  			Var0 = { -29.8692f, -148.1571f, 57.2265f };
  			Var0.f_5 = 96153298;
  			break;
  		
  		case 5:
  			Var0.f_3 = joaat("v_ilev_bs_door");
  			Var0 = { -280.7851f, 6232.782f, 31.8455f };
  			Var0.f_5 = -281080954;
  			break;
  		
  		case 6:
  			Var0.f_3 = joaat("v_ilev_hd_door_l");
  			Var0 = { -824f, -187f, 38f };
  			Var0 = { -823.2001f, -187.0831f, 37.819f };
  			Var0.f_5 = 183249434;
  			break;
  		
  		case 7:
  			Var0.f_3 = joaat("v_ilev_hd_door_r");
  			Var0 = { -823f, -188f, 38f };
  			Var0 = { -822.4442f, -188.3924f, 37.819f };
  			Var0.f_5 = 758345384;
  			break;
  		
  		case 8:
  			Var0.f_3 = joaat("v_ilev_cs_door01");
  			Var0 = { 82.3186f, -1392.752f, 29.5261f };
  			Var0.f_5 = -1069262641;
  			break;
  		
  		case 9:
  			Var0.f_3 = joaat("v_ilev_cs_door01_r");
  			Var0 = { 82.3186f, -1390.476f, 29.5261f };
  			Var0.f_5 = 1968521986;
  			break;
  		
  		case 10:
  			Var0.f_3 = joaat("v_ilev_cs_door01");
  			Var0 = { 1686.983f, 4821.741f, 42.2131f };
  			Var0.f_5 = -2143706301;
  			break;
  		
  		case 11:
  			Var0.f_3 = joaat("v_ilev_cs_door01_r");
  			Var0 = { 1687.282f, 4819.484f, 42.2131f };
  			Var0.f_5 = -1403421822;
  			break;
  		
  		case 12:
  			Var0.f_3 = joaat("v_ilev_cs_door01");
  			Var0 = { 418.637f, -806.457f, 29.6396f };
  			Var0.f_5 = -1950137670;
  			break;
  		
  		case 13:
  			Var0.f_3 = joaat("v_ilev_cs_door01_r");
  			Var0 = { 418.637f, -808.733f, 29.6396f };
  			Var0.f_5 = 1226259807;
  			break;
  		
  		case 14:
  			Var0.f_3 = joaat("v_ilev_cs_door01");
  			Var0 = { -1096.661f, 2705.446f, 19.2578f };
  			Var0.f_5 = 1090833557;
  			break;
  		
  		case 15:
  			Var0.f_3 = joaat("v_ilev_cs_door01_r");
  			Var0 = { -1094.965f, 2706.964f, 19.2578f };
  			Var0.f_5 = 897332612;
  			break;
  		
  		case 16:
  			Var0.f_3 = joaat("v_ilev_cs_door01");
  			Var0 = { 1196.825f, 2703.221f, 38.3726f };
  			Var0.f_5 = 1095946640;
  			break;
  		
  		case 17:
  			Var0.f_3 = joaat("v_ilev_cs_door01_r");
  			Var0 = { 1199.101f, 2703.221f, 38.3726f };
  			Var0.f_5 = 801975945;
  			break;
  		
  		case 18:
  			Var0.f_3 = joaat("v_ilev_cs_door01");
  			Var0 = { -818.7642f, -1079.544f, 11.4781f };
  			Var0.f_5 = -167996547;
  			break;
  		
  		case 19:
  			Var0.f_3 = joaat("v_ilev_cs_door01_r");
  			Var0 = { -816.7932f, -1078.406f, 11.4781f };
  			Var0.f_5 = -1935818563;
  			break;
  		
  		case 20:
  			Var0.f_3 = joaat("v_ilev_cs_door01");
  			Var0 = { -0.0564f, 6517.461f, 32.0278f };
  			Var0.f_5 = 1891185217;
  			break;
  		
  		case 21:
  			Var0.f_3 = joaat("v_ilev_cs_door01_r");
  			Var0 = { -1.7253f, 6515.914f, 32.0278f };
  			Var0.f_5 = 1236591681;
  			break;
  		
  		case 22:
  			Var0.f_3 = joaat("v_ilev_clothmiddoor");
  			Var0 = { -1201.435f, -776.8566f, 17.9918f };
  			Var0.f_5 = 1980808685;
  			break;
  		
  		case 23:
  			Var0.f_3 = joaat("v_ilev_clothmiddoor");
  			Var0 = { 617.2458f, 2751.022f, 42.7578f };
  			Var0.f_5 = 1352749757;
  			break;
  		
  		case 24:
  			Var0.f_3 = joaat("v_ilev_clothmiddoor");
  			Var0 = { 127.8201f, -211.8274f, 55.2275f };
  			Var0.f_5 = -566554453;
  			break;
  		
  		case 25:
  			Var0.f_3 = joaat("v_ilev_clothmiddoor");
  			Var0 = { -3167.75f, 1055.536f, 21.5329f };
  			Var0.f_5 = 1284749450;
  			break;
  		
  		case 26:
  			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
  			Var0 = { -716.6754f, -155.42f, 37.6749f };
  			Var0.f_5 = 261851994;
  			break;
  		
  		case 27:
  			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
  			Var0 = { -715.6154f, -157.2561f, 37.6749f };
  			Var0.f_5 = 217646625;
  			break;
  		
  		case 28:
  			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
  			Var0 = { -157.0924f, -306.4413f, 39.994f };
  			Var0.f_5 = 1801139578;
  			break;
  		
  		case 29:
  			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
  			Var0 = { -156.4022f, -304.4366f, 39.994f };
  			Var0.f_5 = -2123275866;
  			break;
  		
  		case 30:
  			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
  			Var0 = { -1454.782f, -231.7927f, 50.0565f };
  			Var0.f_5 = 1312689981;
  			break;
  		
  		case 31:
  			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
  			Var0 = { -1456.201f, -233.3682f, 50.0565f };
  			Var0.f_5 = -595055661;
  			break;
  		
  		case 32:
  			Var0.f_3 = joaat("v_ilev_ta_door");
  			Var0 = { 321.81f, 178.36f, 103.68f };
  			Var0.f_5 = -265260897;
  			break;
  		
  		case 33:
  			Var0.f_3 = joaat("v_ilev_ml_door1");
  			Var0 = { 1859.89f, 3749.79f, 33.18f };
  			Var0.f_5 = -1284867488;
  			break;
  		
  		case 34:
  			Var0.f_3 = joaat("v_ilev_ml_door1");
  			Var0 = { -289.1752f, 6199.112f, 31.637f };
  			Var0.f_5 = 302307081;
  			break;
  		
  		case 35:
  			Var0.f_3 = joaat("v_ilev_ta_door");
  			Var0 = { -1155.454f, -1424.008f, 5.0461f };
  			Var0.f_5 = -681886015;
  			break;
  		
  		case 36:
  			Var0.f_3 = joaat("v_ilev_ta_door");
  			Var0 = { 1321.286f, -1650.597f, 52.3663f };
  			Var0.f_5 = -2086556500;
  			break;
  		
  		case 37:
  			Var0.f_3 = joaat("v_ilev_ta_door");
  			Var0 = { -3167.789f, 1074.767f, 20.9209f };
  			Var0.f_5 = -1496386696;
  			break;
  		
  		case 38:
  			Var0.f_3 = joaat("v_ilev_mm_doorm_l");
  			Var0 = { -817f, 179f, 73f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = -2097039789;
  			break;
  		
  		case 39:
  			Var0.f_3 = joaat("v_ilev_mm_doorm_r");
  			Var0 = { -816f, 178f, 73f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = -2127416656;
  			break;
  		
  		case 40:
  			Var0.f_3 = joaat("prop_ld_garaged_01");
  			Var0 = { -815f, 186f, 73f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = -1986583853;
  			Var0.f_6 = 6.5f;
  			break;
  		
  		case 41:
  			Var0.f_3 = joaat("prop_bh1_48_backdoor_l");
  			Var0 = { -797f, 177f, 73f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = 776026812;
  			break;
  		
  		case 42:
  			Var0.f_3 = joaat("prop_bh1_48_backdoor_r");
  			Var0 = { -795f, 178f, 73f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = 698422331;
  			break;
  		
  		case 43:
  			Var0.f_3 = joaat("prop_bh1_48_backdoor_l");
  			Var0 = { -793f, 181f, 73f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = 535076355;
  			break;
  		
  		case 44:
  			Var0.f_3 = joaat("prop_bh1_48_backdoor_r");
  			Var0 = { -794f, 183f, 73f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = 474675599;
  			break;
  		
  		case 45:
  			Var0.f_3 = joaat("prop_bh1_48_gate_1");
  			Var0 = { -849f, 179f, 70f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = -1978427516;
  			break;
  		
  		case 46:
  			Var0.f_3 = joaat("v_ilev_mm_windowwc");
  			Var0 = { -802.7333f, 167.5041f, 77.5824f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = -1700375831;
  			break;
  		
  		case 47:
  			Var0.f_3 = joaat("v_ilev_fa_frontdoor");
  			Var0 = { -14f, -1441f, 31f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = 613961892;
  			break;
  		
  		case 48:
  			Var0.f_3 = joaat("v_ilev_fh_frntdoor");
  			Var0 = { -15f, -1427f, 31f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = -272570634;
  			break;
  		
  		case 49:
  			Var0.f_3 = joaat("prop_sc1_21_g_door_01");
  			Var0 = { -25.28f, -1431.06f, 30.84f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = -1040675994;
  			break;
  		
  		case 50:
  			Var0.f_3 = joaat("v_ilev_fh_frontdoor");
  			Var0 = { 7.52f, 539.53f, 176.18f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = 1201219326;
  			break;
  		
  		case 51:
  			Var0.f_3 = joaat("v_ilev_trevtraildr");
  			Var0 = { 1973f, 3815f, 34f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = 1736361794;
  			break;
  		
  		case 52:
  			Var0.f_3 = joaat("prop_cs4_10_tr_gd_01");
  			Var0 = { 1972.787f, 3824.554f, 32.5831f };
  			Var0.f_5 = 1113956670;
  			Var0.f_6 = 12f;
  			break;
  		
  		case 53:
  			Var0.f_3 = joaat("v_ilev_trev_doorfront");
  			Var0 = { -1150f, -1521f, 11f };
  			unk_0xBE20AB8238688965(&(Var0.f_4), 0);
  			Var0.f_5 = -1361617046;
  			break;
  	}
  	switch (iParam0)
  	{
  		case 54:
  			Var0.f_3 = joaat("prop_com_ls_door_01");
  			Var0 = { -1145.9f, -1991.14f, 14.18f };
  			Var0.f_5 = -1871080926;
  			Var0.f_6 = 25f;
  			break;
  		
  		case 55:
  			Var0.f_3 = joaat("prop_id2_11_gdoor");
  			Var0 = { 723.12f, -1088.83f, 23.28f };
  			Var0.f_5 = 1168079979;
  			Var0.f_6 = 25f;
  			break;
  		
  		case 56:
  			Var0.f_3 = joaat("prop_com_ls_door_01");
  			Var0 = { -356.09f, -134.77f, 40.01f };
  			Var0.f_5 = 1206354175;
  			Var0.f_6 = 25f;
  			break;
  		
  		case 57:
  			Var0.f_3 = joaat("v_ilev_carmod3door");
  			Var0 = { 108.8502f, 6617.876f, 32.673f };
  			Var0.f_5 = -1038180727;
  			Var0.f_6 = 25f;
  			break;
  		
  		case 58:
  			Var0.f_3 = joaat("v_ilev_carmod3door");
  			Var0 = { 114.3206f, 6623.226f, 32.7161f };
  			Var0.f_5 = 1200466273;
  			Var0.f_6 = 25f;
  			break;
  		
  		case 59:
  			Var0.f_3 = joaat("v_ilev_carmod3door");
  			Var0 = { 1182.305f, 2645.242f, 38.807f };
  			Var0.f_5 = 1391004277;
  			Var0.f_6 = 25f;
  			break;
  		
  		case 60:
  			Var0.f_3 = joaat("v_ilev_carmod3door");
  			Var0 = { 1174.654f, 2645.242f, 38.6826f };
  			Var0.f_5 = -459199009;
  			Var0.f_6 = 25f;
  			break;
  		
  		case 225:
  			Var0.f_3 = joaat("lr_prop_supermod_door_01");
  			Var0 = { -205.7007f, -1310.692f, 30.2957f };
  			Var0.f_5 = -288764223;
  			Var0.f_6 = 25f;
  			break;
  		
  		case 61:
  			Var0.f_3 = joaat("v_ilev_janitor_frontdoor");
  			Var0 = { -107.5401f, -9.0258f, 70.6696f };
  			Var0.f_5 = -252283844;
  			break;
  		
  		case 62:
  			Var0.f_3 = joaat("v_ilev_ss_door8");
  			Var0 = { 717f, -975f, 25f };
  			Var0.f_5 = -826072862;
  			break;
  		
  		case 63:
  			Var0.f_3 = joaat("v_ilev_ss_door7");
  			Var0 = { 719f, -975f, 25f };
  			Var0.f_5 = 763780711;
  			break;
  		
  		case 64:
  			Var0.f_3 = joaat("v_ilev_ss_door02");
  			Var0 = { 709.9813f, -963.5311f, 30.5453f };
  			Var0.f_5 = -874851305;
  			break;
  		
  		case 65:
  			Var0.f_3 = joaat("v_ilev_ss_door03");
  			Var0 = { 709.9894f, -960.6675f, 30.5453f };
  			Var0.f_5 = -1480820165;
  			break;
  		
  		case 66:
  			Var0.f_3 = joaat("v_ilev_store_door");
  			Var0 = { 707.8046f, -962.4564f, 30.5453f };
  			Var0.f_5 = 949391213;
  			break;
  		
  		case 67:
  			Var0.f_3 = joaat("v_ilev_ml_door1");
  			Var0 = { 1393f, 3599f, 35f };
  			Var0.f_5 = 212192855;
  			break;
  		
  		case 68:
  			Var0.f_3 = joaat("v_ilev_ml_door1");
  			Var0 = { 1395f, 3600f, 35f };
  			Var0.f_5 = -126474752;
  			break;
  		
  		case 69:
  			Var0.f_3 = joaat("v_ilev_ss_door04");
  			Var0 = { 1387f, 3614f, 39f };
  			Var0.f_5 = 1765671336;
  			break;
  		
  		case 70:
  			Var0.f_3 = joaat("prop_ron_door_01");
  			Var0 = { 1083.547f, -1975.435f, 31.6222f };
  			Var0.f_5 = 792295685;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 71:
  			Var0.f_3 = joaat("prop_ron_door_01");
  			Var0 = { 1065.237f, -2006.079f, 32.2329f };
  			Var0.f_5 = 563273144;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 72:
  			Var0.f_3 = joaat("prop_ron_door_01");
  			Var0 = { 1085.307f, -2018.561f, 41.6289f };
  			Var0.f_5 = -726993043;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 73:
  			Var0.f_3 = joaat("v_ilev_bank4door02");
  			Var0 = { -111f, 6464f, 32f };
  			Var0.f_5 = 178228075;
  			break;
  		
  		case 74:
  			Var0.f_3 = joaat("v_ilev_bank4door01");
  			Var0 = { -110f, 6462f, 32f };
  			Var0.f_5 = 1852297978;
  			break;
  		
  		case 75:
  			Var0.f_3 = joaat("v_ilev_lester_doorfront");
  			Var0 = { 1274f, -1721f, 55f };
  			Var0.f_5 = -565026078;
  			break;
  		
  		case 76:
  			Var0.f_3 = joaat("v_ilev_lester_doorveranda");
  			Var0 = { 1271.89f, -1707.57f, 53.79f };
  			Var0.f_5 = 1646172266;
  			break;
  		
  		case 77:
  			Var0.f_3 = joaat("v_ilev_lester_doorveranda");
  			Var0 = { 1270.77f, -1708.1f, 53.75f };
  			Var0.f_5 = 204467342;
  			break;
  		
  		case 78:
  			Var0.f_3 = joaat("v_ilev_deviantfrontdoor");
  			Var0 = { -127.5f, -1456.18f, 37.94f };
  			Var0.f_5 = 2047070410;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			Var0.f_3 = joaat("prop_com_gar_door_01");
  			Var0 = { 483.56f, -1316.08f, 32.18f };
  			Var0.f_5 = 1417775309;
  			break;
  		
  		case 80:
  			Var0.f_3 = joaat("v_ilev_cs_door");
  			Var0 = { 483f, -1312f, 29f };
  			Var0.f_5 = -106474626;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 81:
  			Var0.f_3 = joaat("prop_strip_door_01");
  			Var0 = { 128f, -1299f, 29f };
  			Var0.f_5 = 1840510598;
  			break;
  		
  		case 82:
  			Var0.f_3 = joaat("prop_magenta_door");
  			Var0 = { 96f, -1285f, 29f };
  			Var0.f_5 = 1382825971;
  			break;
  		
  		case 83:
  			Var0.f_3 = joaat("prop_motel_door_09");
  			Var0 = { 549f, -1773f, 34f };
  			Var0.f_5 = 232536303;
  			break;
  		
  		case 84:
  			Var0.f_3 = joaat("v_ilev_gangsafedoor");
  			Var0 = { 974f, -1839f, 36f };
  			Var0.f_5 = 1267246609;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 3);
  			break;
  		
  		case 85:
  			Var0.f_3 = joaat("v_ilev_gangsafedoor");
  			Var0 = { 977f, -105f, 75f };
  			Var0.f_5 = -1900237971;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 3);
  			break;
  		
  		case 86:
  			Var0.f_3 = joaat("v_ilev_ra_door1_l");
  			Var0 = { 1391f, 1163f, 114f };
  			Var0.f_5 = 2077901353;
  			break;
  		
  		case 87:
  			Var0.f_3 = joaat("v_ilev_ra_door1_r");
  			Var0 = { 1391f, 1161f, 114f };
  			Var0.f_5 = -2102079126;
  			break;
  		
  		case 88:
  			Var0.f_3 = joaat("prop_cs6_03_door_l");
  			Var0 = { 1396f, 1143f, 115f };
  			Var0.f_5 = -1905793212;
  			break;
  		
  		case 89:
  			Var0.f_3 = joaat("prop_cs6_03_door_r");
  			Var0 = { 1396f, 1141f, 115f };
  			Var0.f_5 = -1797032505;
  			break;
  		
  		case 90:
  			Var0.f_3 = joaat("v_ilev_ra_door1_l");
  			Var0 = { 1409f, 1146f, 114f };
  			Var0.f_5 = -62235167;
  			break;
  		
  		case 91:
  			Var0.f_3 = joaat("v_ilev_ra_door1_r");
  			Var0 = { 1409f, 1148f, 114f };
  			Var0.f_5 = -1727188163;
  			break;
  		
  		case 92:
  			Var0.f_3 = joaat("v_ilev_ra_door1_l");
  			Var0 = { 1408f, 1159f, 114f };
  			Var0.f_5 = -562748873;
  			break;
  		
  		case 93:
  			Var0.f_3 = joaat("v_ilev_ra_door1_r");
  			Var0 = { 1408f, 1161f, 114f };
  			Var0.f_5 = 1976429759;
  			break;
  		
  		case 94:
  			Var0.f_3 = joaat("prop_gar_door_01");
  			Var0 = { -1067f, -1666f, 5f };
  			Var0.f_5 = 1341041543;
  			break;
  		
  		case 95:
  			Var0.f_3 = joaat("prop_gar_door_02");
  			Var0 = { -1065f, -1669f, 5f };
  			Var0.f_5 = -1631467220;
  			break;
  		
  		case 96:
  			Var0.f_3 = joaat("prop_map_door_01");
  			Var0 = { -1104.66f, -1638.48f, 4.68f };
  			Var0.f_5 = -1788473129;
  			break;
  		
  		case 97:
  			Var0.f_3 = joaat("v_ilev_fib_door1");
  			Var0 = { -31.72f, -1101.85f, 26.57f };
  			Var0.f_5 = -1831288286;
  			break;
  		
  		case 98:
  			Var0.f_3 = joaat("v_ilev_tort_door");
  			Var0 = { 134.4f, -2204.1f, 7.52f };
  			Var0.f_5 = 963876966;
  			break;
  		
  		case 99:
  			Var0.f_3 = joaat("v_ilev_bl_shutter2");
  			Var0 = { 3628f, 3747f, 28f };
  			Var0.f_5 = 1773088812;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 100:
  			Var0.f_3 = joaat("v_ilev_bl_shutter2");
  			Var0 = { 3621f, 3752f, 28f };
  			Var0.f_5 = -1332101528;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 101:
  			Var0.f_3 = joaat("v_ilev_rc_door3_l");
  			Var0 = { -608.73f, -1610.32f, 27.16f };
  			Var0.f_5 = -1811763714;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 102:
  			Var0.f_3 = joaat("v_ilev_rc_door3_r");
  			Var0 = { -611.32f, -1610.09f, 27.16f };
  			Var0.f_5 = 1608500665;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 103:
  			Var0.f_3 = joaat("v_ilev_rc_door3_l");
  			Var0 = { -592.94f, -1631.58f, 27.16f };
  			Var0.f_5 = -1456048340;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 104:
  			Var0.f_3 = joaat("v_ilev_rc_door3_r");
  			Var0 = { -592.71f, -1628.99f, 27.16f };
  			Var0.f_5 = 943854909;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 105:
  			Var0.f_3 = joaat("v_ilev_ss_door04");
  			Var0 = { 1991f, 3053f, 47f };
  			Var0.f_5 = -89065356;
  			break;
  		
  		case 106:
  			Var0.f_3 = joaat("v_ilev_fh_door4");
  			Var0 = { 1988.353f, 3054.411f, 47.3204f };
  			Var0.f_5 = -925491840;
  			break;
  		
  		case 107:
  			Var0.f_3 = joaat("prop_epsilon_door_l");
  			Var0 = { -700.17f, 47.31f, 44.3f };
  			Var0.f_5 = 1999872275;
  			break;
  		
  		case 108:
  			Var0.f_3 = joaat("prop_epsilon_door_r");
  			Var0 = { -697.94f, 48.35f, 44.3f };
  			Var0.f_5 = 1999872275;
  			break;
  		
  		case 109:
  			Var0.f_3 = joaat("v_ilev_epsstoredoor");
  			Var0 = { 241.3574f, 361.0488f, 105.8963f };
  			Var0.f_5 = 1538555582;
  			break;
  		
  		case 110:
  			Var0.f_3 = joaat("prop_ch2_09c_garage_door");
  			Var0 = { -689.11f, 506.97f, 110.64f };
  			Var0.f_5 = -961994186;
  			break;
  		
  		case 111:
  			Var0.f_3 = joaat("v_ilev_door_orangesolid");
  			Var0 = { -1055.96f, -236.43f, 44.17f };
  			Var0.f_5 = -1772472848;
  			break;
  		
  		case 112:
  			Var0.f_3 = joaat("prop_magenta_door");
  			Var0 = { 29f, 3661f, 41f };
  			Var0.f_5 = -46374650;
  			break;
  		
  		case 113:
  			Var0.f_3 = joaat("prop_cs4_05_tdoor");
  			Var0 = { 32f, 3667f, 41f };
  			Var0.f_5 = -358302761;
  			break;
  		
  		case 114:
  			Var0.f_3 = joaat("v_ilev_housedoor1");
  			Var0 = { 87f, -1959f, 21f };
  			Var0.f_5 = -1237936041;
  			break;
  		
  		case 115:
  			Var0.f_3 = joaat("v_ilev_fh_frntdoor");
  			Var0 = { 0f, -1823f, 30f };
  			Var0.f_5 = 1487374207;
  			break;
  		
  		case 116:
  			Var0.f_3 = joaat("p_cut_door_03");
  			Var0 = { 23.34f, -1897.6f, 23.05f };
  			Var0.f_5 = -199126299;
  			break;
  		
  		case 117:
  			Var0.f_3 = joaat("p_cut_door_02");
  			Var0 = { 524.2f, 3081.14f, 41.16f };
  			Var0.f_5 = -897071863;
  			break;
  		
  		case 118:
  			Var0.f_3 = joaat("v_ilev_po_door");
  			Var0 = { -1910.58f, -576.01f, 19.25f };
  			Var0.f_5 = -864465775;
  			break;
  		
  		case 119:
  			Var0.f_3 = joaat("prop_ss1_10_door_l");
  			Var0 = { -720.39f, 256.86f, 80.29f };
  			Var0.f_5 = -208439480;
  			break;
  		
  		case 120:
  			Var0.f_3 = joaat("prop_ss1_10_door_r");
  			Var0 = { -718.42f, 257.79f, 80.29f };
  			Var0.f_5 = -1001088805;
  			break;
  		
  		case 121:
  			Var0.f_3 = joaat("v_ilev_fibl_door02");
  			Var0 = { 106.38f, -742.7f, 46.18f };
  			Var0.f_5 = 756894459;
  			break;
  		
  		case 122:
  			Var0.f_3 = joaat("v_ilev_fibl_door01");
  			Var0 = { 105.76f, -746.65f, 46.18f };
  			Var0.f_5 = 476981677;
  			break;
  		
  		case 123:
  			Var0.f_3 = joaat("v_ilev_ct_door01");
  			Var0 = { -2343.53f, 3265.37f, 32.96f };
  			Var0.f_5 = 2081647379;
  			break;
  		
  		case 124:
  			Var0.f_3 = joaat("v_ilev_ct_door01");
  			Var0 = { -2342.23f, 3267.62f, 32.96f };
  			Var0.f_5 = 2081647379;
  			break;
  		
  		case 125:
  			Var0.f_3 = joaat("ap1_02_door_l");
  			Var0 = { -1041.933f, -2748.167f, 22.0308f };
  			Var0.f_5 = 169965357;
  			break;
  		
  		case 126:
  			Var0.f_3 = joaat("ap1_02_door_r");
  			Var0 = { -1044.841f, -2746.489f, 22.0308f };
  			Var0.f_5 = 311232516;
  			break;
  		
  		case 128:
  			Var0.f_3 = joaat("v_ilev_fb_doorshortl");
  			Var0 = { -1045.12f, -232.004f, 39.4379f };
  			Var0.f_5 = -1563127729;
  			break;
  		
  		case 129:
  			Var0.f_3 = joaat("v_ilev_fb_doorshortr");
  			Var0 = { -1046.516f, -229.3581f, 39.4379f };
  			Var0.f_5 = 759145763;
  			break;
  		
  		case 130:
  			Var0.f_3 = joaat("v_ilev_fb_door01");
  			Var0 = { -1083.62f, -260.4167f, 38.1867f };
  			Var0.f_5 = -84399179;
  			break;
  		
  		case 131:
  			Var0.f_3 = joaat("v_ilev_fb_door02");
  			Var0 = { -1080.974f, -259.0204f, 38.1867f };
  			Var0.f_5 = -461898059;
  			break;
  		
  		case 127:
  			Var0.f_3 = joaat("v_ilev_gtdoor");
  			Var0 = { -1042.57f, -240.6f, 38.11f };
  			Var0.f_5 = 1259065971;
  			break;
  		
  		case 132:
  			Var0.f_3 = joaat("prop_damdoor_01");
  			Var0 = { 1385.258f, -2079.949f, 52.7638f };
  			Var0.f_5 = -884051216;
  			break;
  		
  		case 133:
  			Var0.f_3 = joaat("v_ilev_genbankdoor2");
  			Var0 = { 1656.57f, 4849.66f, 42.35f };
  			Var0.f_5 = 243782214;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 134:
  			Var0.f_3 = joaat("v_ilev_genbankdoor1");
  			Var0 = { 1656.25f, 4852.24f, 42.35f };
  			Var0.f_5 = 714115627;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 135:
  			Var0.f_3 = joaat("prop_sec_barrier_ld_01a");
  			Var0 = { -1051.402f, -474.6847f, 36.6199f };
  			Var0.f_5 = 1668106976;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 1);
  			break;
  		
  		case 136:
  			Var0.f_3 = joaat("prop_sec_barrier_ld_01a");
  			Var0 = { -1049.285f, -476.6376f, 36.7584f };
  			Var0.f_5 = 1382347031;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 1);
  			break;
  		
  		case 137:
  			Var0.f_3 = joaat("prop_sec_barrier_ld_02a");
  			Var0 = { -1210.957f, -580.8765f, 27.2373f };
  			Var0.f_5 = -966790948;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 1);
  			break;
  		
  		case 138:
  			Var0.f_3 = joaat("prop_sec_barrier_ld_02a");
  			Var0 = { -1212.445f, -578.4401f, 27.2373f };
  			Var0.f_5 = -2068750132;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 1);
  			break;
  		
  		case 139:
  			Var0.f_3 = joaat("v_ilev_roc_door4");
  			Var0 = { -565.1712f, 276.6259f, 83.2863f };
  			Var0.f_5 = -1716533184;
  			break;
  		
  		case 140:
  			Var0.f_3 = joaat("v_ilev_roc_door4");
  			Var0 = { -561.2863f, 293.5043f, 87.7771f };
  			Var0.f_5 = 2146505927;
  			break;
  		
  		case 141:
  			Var0.f_3 = joaat("p_jewel_door_l");
  			Var0 = { -631.96f, -236.33f, 38.21f };
  			Var0.f_5 = 1874948872;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 142:
  			Var0.f_3 = joaat("p_jewel_door_r1");
  			Var0 = { -630.43f, -238.44f, 38.21f };
  			Var0.f_5 = -1965020851;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 145:
  			Var0.f_3 = joaat("prop_ld_bankdoors_01");
  			Var0 = { 231.62f, 216.23f, 106.4f };
  			Var0.f_5 = 1951546856;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 146:
  			Var0.f_3 = joaat("prop_ld_bankdoors_01");
  			Var0 = { 232.72f, 213.88f, 106.4f };
  			Var0.f_5 = -431382051;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 143:
  			Var0.f_3 = joaat("hei_prop_hei_bankdoor_new");
  			Var0 = { 258.32f, 203.84f, 106.43f };
  			Var0.f_5 = -293975210;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 144:
  			Var0.f_3 = joaat("hei_prop_hei_bankdoor_new");
  			Var0 = { 260.76f, 202.95f, 106.43f };
  			Var0.f_5 = -785215289;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 148:
  			Var0.f_3 = joaat("hei_v_ilev_bk_gate_pris");
  			Var0 = { 256.31f, 220.66f, 106.43f };
  			Var0.f_5 = -366143778;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 147:
  			Var0.f_3 = joaat("v_ilev_bk_door");
  			Var0 = { 266.36f, 217.57f, 110.43f };
  			Var0.f_5 = 440819155;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 149:
  			Var0.f_3 = joaat("v_ilev_shrf2door");
  			Var0 = { -442.66f, 6015.222f, 31.8663f };
  			Var0.f_5 = -588495243;
  			break;
  		
  		case 150:
  			Var0.f_3 = joaat("v_ilev_shrf2door");
  			Var0 = { -444.4985f, 6017.06f, 31.8663f };
  			Var0.f_5 = 1815504139;
  			break;
  		
  		case 151:
  			Var0.f_3 = joaat("v_ilev_shrfdoor");
  			Var0 = { 1855.685f, 3683.93f, 34.5928f };
  			Var0.f_5 = 1344911780;
  			break;
  		
  		case 152:
  			Var0.f_3 = joaat("prop_bhhotel_door_l");
  			Var0 = { -1223.35f, -172.41f, 39.98f };
  			Var0.f_5 = -320891223;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 153:
  			Var0.f_3 = joaat("prop_bhhotel_door_r");
  			Var0 = { -1220.93f, -173.68f, 39.98f };
  			Var0.f_5 = 1511747875;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 154:
  			Var0.f_3 = joaat("prop_bhhotel_door_l");
  			Var0 = { -1211.99f, -190.57f, 39.98f };
  			Var0.f_5 = -1517722103;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 155:
  			Var0.f_3 = joaat("prop_bhhotel_door_r");
  			Var0 = { -1213.26f, -192.98f, 39.98f };
  			Var0.f_5 = -1093199712;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 156:
  			Var0.f_3 = joaat("prop_bhhotel_door_l");
  			Var0 = { -1217.77f, -201.54f, 39.98f };
  			Var0.f_5 = 1902048492;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 157:
  			Var0.f_3 = joaat("prop_bhhotel_door_r");
  			Var0 = { -1219.04f, -203.95f, 39.98f };
  			Var0.f_5 = -444768985;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 158:
  			Var0.f_3 = joaat("prop_ch3_04_door_01l");
  			Var0 = { 2514.32f, -317.34f, 93.32f };
  			Var0.f_5 = 404057594;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 159:
  			Var0.f_3 = joaat("prop_ch3_04_door_01r");
  			Var0 = { 2512.42f, -319.26f, 93.32f };
  			Var0.f_5 = -1417472813;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 160:
  			Var0.f_3 = joaat("prop_ch3_01_trlrdoor_l");
  			Var0 = { 2333.23f, 2574.97f, 47.03f };
  			Var0.f_5 = -1376084479;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 161:
  			Var0.f_3 = joaat("prop_ch3_01_trlrdoor_r");
  			Var0 = { 2329.65f, 2576.64f, 47.03f };
  			Var0.f_5 = 457472151;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 162:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { 16.1279f, -1114.605f, 29.9469f };
  			Var0.f_5 = 1071759151;
  			break;
  		
  		case 163:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { 18.572f, -1115.495f, 29.9469f };
  			Var0.f_5 = -2119023917;
  			break;
  		
  		case 165:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { 1698.176f, 3751.506f, 34.8553f };
  			Var0.f_5 = -1488490473;
  			break;
  		
  		case 166:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { 1699.937f, 3753.42f, 34.8553f };
  			Var0.f_5 = -511187813;
  			break;
  		
  		case 167:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { 244.7274f, -44.0791f, 70.91f };
  			Var0.f_5 = -248569395;
  			break;
  		
  		case 168:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { 243.8379f, -46.5232f, 70.91f };
  			Var0.f_5 = 989443413;
  			break;
  		
  		case 169:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { 845.3624f, -1024.539f, 28.3448f };
  			Var0.f_5 = 2022251829;
  			break;
  		
  		case 170:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { 842.7684f, -1024.539f, 23.3448f };
  			Var0.f_5 = 649820567;
  			break;
  		
  		case 171:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { -326.1122f, 6075.27f, 31.6047f };
  			Var0.f_5 = 537455378;
  			break;
  		
  		case 172:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { -324.273f, 6077.109f, 31.6047f };
  			Var0.f_5 = 1121431731;
  			break;
  		
  		case 173:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { -665.2424f, -944.3256f, 21.9792f };
  			Var0.f_5 = -1437380438;
  			break;
  		
  		case 174:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { -662.6414f, -944.3256f, 21.9792f };
  			Var0.f_5 = -946336965;
  			break;
  		
  		case 175:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { -1313.826f, -389.1259f, 36.8457f };
  			Var0.f_5 = 1893144650;
  			break;
  		
  		case 176:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { -1314.465f, -391.6472f, 36.8457f };
  			Var0.f_5 = 435841678;
  			break;
  		
  		case 177:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { -1114.009f, 2689.77f, 18.7041f };
  			Var0.f_5 = 948508314;
  			break;
  		
  		case 178:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { -1112.071f, 2691.505f, 18.7041f };
  			Var0.f_5 = -1796714665;
  			break;
  		
  		case 179:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { -3164.845f, 1081.392f, 20.9887f };
  			Var0.f_5 = -1155247245;
  			break;
  		
  		case 180:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { -3163.812f, 1083.778f, 20.9887f };
  			Var0.f_5 = 782482084;
  			break;
  		
  		case 181:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { 2570.905f, 303.3556f, 108.8848f };
  			Var0.f_5 = -1194470801;
  			break;
  		
  		case 182:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { 2568.304f, 303.3556f, 108.8848f };
  			Var0.f_5 = -2129698061;
  			break;
  		
  		case 183:
  			Var0.f_3 = joaat("v_ilev_gc_door04");
  			Var0 = { 813.1779f, -2148.27f, 29.7689f };
  			Var0.f_5 = 1071759151;
  			break;
  		
  		case 184:
  			Var0.f_3 = joaat("v_ilev_gc_door03");
  			Var0 = { 810.5769f, -2148.27f, 29.7689f };
  			Var0.f_5 = -2119023917;
  			break;
  		
  		case 164:
  			Var0.f_3 = joaat("v_ilev_gc_door01");
  			Var0 = { 6.8179f, -1098.209f, 29.9469f };
  			Var0.f_5 = 1487704245;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 3);
  			break;
  		
  		case 185:
  			Var0.f_3 = joaat("v_ilev_gc_door01");
  			Var0 = { 827.5342f, -2160.493f, 29.7688f };
  			Var0.f_5 = 1529812051;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 3);
  			break;
  		
  		case 186:
  			Var0.f_3 = joaat("prop_lrggate_01c_l");
  			Var0 = { -1107.01f, 289.38f, 64.76f };
  			Var0.f_5 = 904342475;
  			break;
  		
  		case 187:
  			Var0.f_3 = joaat("prop_lrggate_01c_r");
  			Var0 = { -1101.62f, 290.36f, 64.76f };
  			Var0.f_5 = -795418380;
  			break;
  		
  		case 188:
  			Var0.f_3 = joaat("prop_lrggate_01c_l");
  			Var0 = { -1138.64f, 300.82f, 67.18f };
  			Var0.f_5 = -1502457334;
  			break;
  		
  		case 189:
  			Var0.f_3 = joaat("prop_lrggate_01c_r");
  			Var0 = { -1137.05f, 295.59f, 67.18f };
  			Var0.f_5 = -1994188940;
  			break;
  		
  		case 190:
  			Var0.f_3 = joaat("v_ilev_bl_doorel_l");
  			Var0 = { -2053.16f, 3239.49f, 30.5f };
  			Var0.f_5 = -621770121;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 191:
  			Var0.f_3 = joaat("v_ilev_bl_doorel_r");
  			Var0 = { -2054.39f, 3237.23f, 30.5f };
  			Var0.f_5 = 1018580481;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 192:
  			Var0.f_3 = joaat("v_ilev_cbankcountdoor01");
  			Var0 = { -108.91f, 6469.11f, 31.91f };
  			Var0.f_5 = 421926217;
  			break;
  		
  		case 193:
  			Var0.f_3 = joaat("prop_fnclink_03gate5");
  			Var0 = { -182.91f, 6168.37f, 32.14f };
  			Var0.f_5 = -1331552374;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  	}
  	switch (iParam0)
  	{
  		case 196:
  			Var0.f_3 = joaat("v_ilev_csr_door_l");
  			Var0 = { -59.89f, -1092.95f, 26.88f };
  			Var0.f_5 = -293141277;
  			break;
  		
  		case 197:
  			Var0.f_3 = joaat("v_ilev_csr_door_r");
  			Var0 = { -60.55f, -1094.75f, 26.89f };
  			Var0.f_5 = 506750037;
  			break;
  		
  		case 194:
  			Var0.f_3 = joaat("v_ilev_csr_door_l");
  			Var0 = { -39.13f, -1108.22f, 26.72f };
  			Var0.f_5 = 1496005418;
  			break;
  		
  		case 195:
  			Var0.f_3 = joaat("v_ilev_csr_door_r");
  			Var0 = { -37.33f, -1108.87f, 26.72f };
  			Var0.f_5 = -1863079210;
  			break;
  		
  		case 198:
  			Var0.f_3 = joaat("prop_ron_door_01");
  			Var0 = { 1943.73f, 3803.63f, 32.31f };
  			Var0.f_5 = -2018911784;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 199:
  			Var0.f_3 = joaat("v_ilev_genbankdoor2");
  			Var0 = { 316.39f, -276.49f, 54.52f };
  			Var0.f_5 = -93934272;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 200:
  			Var0.f_3 = joaat("v_ilev_genbankdoor1");
  			Var0 = { 313.96f, -275.6f, 54.52f };
  			Var0.f_5 = 667682830;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 201:
  			Var0.f_3 = joaat("v_ilev_genbankdoor2");
  			Var0 = { -2965.71f, 484.22f, 16.05f };
  			Var0.f_5 = 1876735830;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 202:
  			Var0.f_3 = joaat("v_ilev_genbankdoor1");
  			Var0 = { -2965.82f, 481.63f, 16.05f };
  			Var0.f_5 = -2112857171;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 205:
  			Var0.f_3 = joaat("v_ilev_abbmaindoor");
  			Var0 = { 962.1f, -2183.83f, 31.06f };
  			Var0.f_5 = 2046930518;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 206:
  			Var0.f_3 = joaat("v_ilev_abbmaindoor2");
  			Var0 = { 961.79f, -2187.08f, 31.06f };
  			Var0.f_5 = 1208502884;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 207:
  			Var0.f_3 = joaat("prop_ch3_04_door_02");
  			Var0 = { 2508.43f, -336.63f, 115.76f };
  			Var0.f_5 = 1986432421;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 208:
  			Var0.f_3 = joaat("prop_ch1_07_door_01l");
  			Var0 = { -2255.19f, 322.26f, 184.93f };
  			Var0.f_5 = -722798986;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 209:
  			Var0.f_3 = joaat("prop_ch1_07_door_01r");
  			Var0 = { -2254.06f, 319.7f, 184.93f };
  			Var0.f_5 = 204301578;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 210:
  			Var0.f_3 = joaat("prop_ch1_07_door_01l");
  			Var0 = { -2301.13f, 336.91f, 184.93f };
  			Var0.f_5 = -320140460;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 211:
  			Var0.f_3 = joaat("prop_ch1_07_door_01r");
  			Var0 = { -2298.57f, 338.05f, 184.93f };
  			Var0.f_5 = 65222916;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 212:
  			Var0.f_3 = joaat("prop_ch1_07_door_01l");
  			Var0 = { -2222.32f, 305.86f, 184.93f };
  			Var0.f_5 = -920027322;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 213:
  			Var0.f_3 = joaat("prop_ch1_07_door_01r");
  			Var0 = { -2221.19f, 303.3f, 184.93f };
  			Var0.f_5 = -58432001;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 214:
  			Var0.f_3 = joaat("prop_ch1_07_door_01l");
  			Var0 = { -2280.6f, 265.43f, 184.93f };
  			Var0.f_5 = -2007378629;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 215:
  			Var0.f_3 = joaat("prop_ch1_07_door_01r");
  			Var0 = { -2278.04f, 266.57f, 184.93f };
  			Var0.f_5 = 418772613;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 216:
  			Var0.f_3 = joaat("prop_gar_door_04");
  			Var0 = { 778.31f, -1867.49f, 30.66f };
  			Var0.f_5 = 1679064921;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 217:
  			Var0.f_3 = joaat("prop_gate_tep_01_l");
  			Var0 = { -721.35f, 91.01f, 56.68f };
  			Var0.f_5 = 412198396;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 218:
  			Var0.f_3 = joaat("prop_gate_tep_01_r");
  			Var0 = { -728.84f, 88.64f, 56.68f };
  			Var0.f_5 = -1053755588;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 219:
  			Var0.f_3 = joaat("prop_artgallery_02_dr");
  			Var0 = { -2287.62f, 363.9f, 174.93f };
  			Var0.f_5 = -53446139;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 220:
  			Var0.f_3 = joaat("prop_artgallery_02_dl");
  			Var0 = { -2289.78f, 362.91f, 174.93f };
  			Var0.f_5 = 1333960556;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 221:
  			Var0.f_3 = joaat("prop_artgallery_02_dr");
  			Var0 = { -2289.86f, 362.88f, 174.93f };
  			Var0.f_5 = -41786493;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 222:
  			Var0.f_3 = joaat("prop_artgallery_02_dl");
  			Var0 = { -2292.01f, 361.89f, 174.93f };
  			Var0.f_5 = 1750120734;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 223:
  			Var0.f_3 = joaat("prop_fnclink_07gate1");
  			Var0 = { 1803.94f, 3929.01f, 33.72f };
  			Var0.f_5 = 1661506222;
  			break;
  		
  		case 203:
  			Var0.f_3 = joaat("v_ilev_genbankdoor2");
  			Var0 = { -348.81f, -47.26f, 49.39f };
  			Var0.f_5 = -2116116146;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 204:
  			Var0.f_3 = joaat("v_ilev_genbankdoor1");
  			Var0 = { -351.26f, -46.41f, 49.39f };
  			Var0.f_5 = -74083138;
  			unk_0xBE20AB8238688965(&(Var0.f_4), 2);
  			break;
  		
  		case 224:
  			Var0.f_3 = joaat("prop_abat_slide");
  			Var0 = { 962.9084f, -2105.814f, 34.6432f };
  			Var0.f_5 = -1670085357;
  			break;
  	}
  	return Var0;
  }
  
  int func_404()
  {
  	if ((func_74() == -1 || func_74() == 999) && !func_405() == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_405()
  {
  	return Global_30969;
  }
  
  void func_406(int iParam0, bool bParam1)
  {
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (bParam1)
  	{
  		if (!func_408(iParam0, 0))
  		{
  			func_407(iParam0, 1, 0);
  			func_407(iParam0, 2, 0);
  			func_407(iParam0, 3, 0);
  			func_407(iParam0, 4, 0);
  			func_407(iParam0, 0, 1);
  			Global_75654[iParam0] = 1;
  		}
  	}
  	else
  	{
  		func_407(iParam0, 0, 0);
  	}
  }
  
  void func_407(int iParam0, int iParam1, bool bParam2)
  {
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (bParam2)
  	{
  		unk_0xBE20AB8238688965(&(Global_111858.f_32745[iParam0]), iParam1);
  	}
  	else
  	{
  		unk_0xD2459066EA58CE43(&(Global_111858.f_32745[iParam0]), iParam1);
  	}
  }
  
  bool func_408(int iParam0, int iParam1)
  {
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	return unk_0xCE990E643CD9D0E5(Global_111858.f_32745[iParam0], iParam1);
  }
  
  void func_409()
  {
  	unk_0xEFBCE8F8316F89EA(5, uLocal_54, 1862763509);
  	if (func_342(unk_0x9B0761B4C3EB8BC7(), -726.45f, 33.33f, 43.23f, 1) <= func_342(unk_0x9B0761B4C3EB8BC7(), -666.55f, 49.19f, 42.08f, 1))
  	{
  		func_348(&uLocal_58, "EPS8AU", "EPS8_AMA1", 8, 0, 0, 0);
  	}
  	else
  	{
  		func_348(&uLocal_58, "EPS8AU", "EPS8_AMA2", 8, 0, 0, 0);
  	}
  }
  
  void func_410(int iParam0)
  {
  	int iVar0;
  	
  	if (func_391(unk_0x9B0761B4C3EB8BC7()))
  	{
  		iVar0 = 0;
  		while (iVar0 <= (iParam0->f_28 - 1))
  		{
  			if (func_126(iParam0->f_28[iVar0]))
  			{
  				unk_0x6673CC701BC8E9C1(iParam0->f_28[iVar0], 1, 0);
  				unk_0x4E65320BC9AD521C(iParam0->f_28[iVar0], 0);
  				unk_0xCBA6B2B569DCAFD8(iParam0->f_28[iVar0], 1);
  				unk_0x8FF9CE1C0F94F59A(iParam0->f_28[iVar0], unk_0x9B0761B4C3EB8BC7(), 0, 16);
  				unk_0x2481907DEE6B85EA(&(iParam0->f_28[iVar0]));
  			}
  			iVar0++;
  		}
  	}
  }
  
  int func_411(var uParam0, bool bParam1)
  {
  	struct<27> Var0;
  	
  	if (Global_76833)
  	{
  		func_494("IS_RC_FINE_AND_IN_RANGE(): The game is running Multiplayer [TERMINATING]");
  		return 0;
  	}
  	func_110(*uParam0, &Var0);
  	if ((func_430(*uParam0) || func_428(*uParam0)) || Global_77078 == 1)
  	{
  		return 1;
  	}
  	if (!unk_0x1116855A2A7A342C())
  	{
  		func_494("IS_RC_FINE_AND_IN_RANGE(): Player out of range [TERMINATING]");
  		return 0;
  	}
  	if (func_424(*uParam0))
  	{
  		if (*uParam0 == 19)
  		{
  			func_423(uParam0->f_28[0]);
  		}
  		func_494("IS_RC_FINE_AND_IN_RANGE(): Script denied by RC Controller [TERMINATING]");
  		return 0;
  	}
  	if (uParam0->f_25 == 1)
  	{
  		if (!func_420(uParam0, 1, 0))
  		{
  			return 0;
  		}
  	}
  	else if (uParam0->f_16 == 0)
  	{
  		if (!func_420(uParam0, 0, 0))
  		{
  			return 0;
  		}
  	}
  	if (((((*uParam0 == 16 || *uParam0 == 9) || *uParam0 == 18) || *uParam0 == 22) || *uParam0 == 32) || *uParam0 == 51)
  	{
  		if (!func_418(uParam0, 1, 1))
  		{
  			if (*uParam0 == 16)
  			{
  				func_410(uParam0);
  			}
  			else
  			{
  				func_416(uParam0);
  			}
  			return 0;
  		}
  	}
  	else if (*uParam0 == 24)
  	{
  		if (!func_418(uParam0, 0, 1))
  		{
  			func_416(uParam0);
  			return 0;
  		}
  	}
  	else if (*uParam0 == 6)
  	{
  		if (!func_418(uParam0, 0, 1))
  		{
  			return 0;
  		}
  	}
  	else if (uParam0->f_26 == 1)
  	{
  		if (!func_418(uParam0, 1, 0))
  		{
  			func_416(uParam0);
  			return 0;
  		}
  	}
  	else if (uParam0->f_16 == 2 || uParam0->f_16 == 1)
  	{
  		if (!func_418(uParam0, 0, 0))
  		{
  			func_416(uParam0);
  			return 0;
  		}
  	}
  	if (uParam0->f_16 == 2 || uParam0->f_16 == 1)
  	{
  		if (func_391(uParam0->f_35[0]))
  		{
  			if (!unk_0xC2169C00B643278B(uParam0->f_35[0], Var0.f_6, 8f, 8f, 8f, 0, 1, 0))
  			{
  				return 0;
  			}
  		}
  	}
  	if (*uParam0 == 10)
  	{
  		if (unk_0x3628D28B8671F14F(-1, uParam0->f_17[0 /*3*/], 8f))
  		{
  			func_494("IS_RC_FINE_AND_IN_RANGE(): Explosion near mission trigger [TERMINATING]");
  			return 0;
  		}
  	}
  	if (Var0.f_4 != 17)
  	{
  		if (!unk_0xCE990E643CD9D0E5(Var0.f_26, func_105()))
  		{
  			func_494("IS_RC_FINE_AND_IN_RANGE(): No longer a valid player character to launch mission");
  			return 0;
  		}
  	}
  	if (func_415(&(uParam0->f_48)) && bParam1)
  	{
  		func_412(uParam0->f_28[0], &(uParam0->f_48), *uParam0);
  	}
  	return 1;
  }
  
  void func_412(int iParam0, var uParam1, int iParam2)
  {
  	var uVar0;
  	var uVar1;
  	
  	if (func_391(iParam0))
  	{
  		switch (uParam1->f_3)
  		{
  			case 1:
  				if (func_415(uParam1))
  				{
  					if (unk_0xC614DDE265D18415(*uParam1))
  					{
  						unk_0x2BB0EF9DE445EA13(iParam0);
  						if (iParam2 != 21)
  						{
  							if (func_69(uParam1->f_5, 0f, 0f, 0f, 0))
  							{
  								unk_0x756D74A3EF0AB788(iParam0, *uParam1, uParam1->f_1, 8f, -8f, -1, 262153, 0, 0, 0, 0);
  							}
  							else
  							{
  								unk_0x9DC06E2A59C5AEBB(&uVar0);
  								if (func_414(uParam1))
  								{
  									unk_0x81DCDE42A0B23C21(0, *uParam1, uParam1->f_2, uParam1->f_5, uParam1->f_8, 1000f, -8f, -1, 262152, 0, 2, 0);
  								}
  								else
  								{
  									unk_0x81DCDE42A0B23C21(0, *uParam1, uParam1->f_1, uParam1->f_5, uParam1->f_8, 1000f, -8f, -1, 262152, 0, 2, 0);
  								}
  								unk_0x81DCDE42A0B23C21(0, *uParam1, uParam1->f_1, uParam1->f_5, uParam1->f_8, 8f, -8f, -1, 262153, 0, 2, 0);
  								unk_0x19F29730874AD6F1(uVar0);
  								unk_0x9B6EC2CECE1010EF(iParam0, uVar0);
  								unk_0x4F83FEE4454169D4(&uVar0);
  							}
  						}
  						else
  						{
  							unk_0x81DCDE42A0B23C21(iParam0, *uParam1, uParam1->f_1, uParam1->f_5, uParam1->f_8, 8f, -8f, -1, 262153, 0, 2, 3);
  						}
  						uParam1->f_3 = 2;
  					}
  					else
  					{
  						uParam1->f_3 = 0;
  					}
  				}
  				else
  				{
  					uParam1->f_3 = 0;
  				}
  				break;
  			
  			case 2:
  				if (!func_414(uParam1) || !unk_0x9934470AA0A08B57(iParam0, *uParam1, uParam1->f_2, 3))
  				{
  					if (func_413(iParam2) && !unk_0x04055E36623F131B(iParam0, unk_0x9B0761B4C3EB8BC7(), 25f))
  					{
  						unk_0xD08E9EAF091A1AAB(iParam0, unk_0x9B0761B4C3EB8BC7(), 0);
  						uParam1->f_3 = 5;
  					}
  					else if ((func_414(uParam1) && uParam1->f_4 == 0) && unk_0x272784C60C397DB6(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1), unk_0x3E4D3CCC220BDFB1(iParam0, 1), 1) < 20f)
  					{
  						uParam1->f_3 = 3;
  					}
  				}
  				break;
  			
  			case 3:
  				unk_0x9DC06E2A59C5AEBB(&uVar1);
  				if (func_69(uParam1->f_5, 0f, 0f, 0f, 0))
  				{
  					unk_0x756D74A3EF0AB788(0, *uParam1, uParam1->f_2, 4f, -4f, -1, 262144, 0, 0, 0, 0);
  					unk_0x756D74A3EF0AB788(0, *uParam1, uParam1->f_1, 8f, -8f, -1, 262153, 0, 0, 0, 0);
  				}
  				else
  				{
  					unk_0x81DCDE42A0B23C21(0, *uParam1, uParam1->f_2, uParam1->f_5, uParam1->f_8, 4f, -4f, -1, 262152, 0, 2, 0);
  					unk_0x81DCDE42A0B23C21(0, *uParam1, uParam1->f_1, uParam1->f_5, uParam1->f_8, 8f, -8f, -1, 262153, 0, 2, 0);
  				}
  				unk_0x19F29730874AD6F1(uVar1);
  				unk_0x9B6EC2CECE1010EF(iParam0, uVar1);
  				unk_0x4F83FEE4454169D4(&uVar1);
  				uParam1->f_4 = 1;
  				if (func_413(iParam2))
  				{
  					uParam1->f_3 = 2;
  				}
  				else
  				{
  					uParam1->f_3 = 0;
  				}
  				break;
  			
  			case 5:
  				if (!func_413(iParam2) || unk_0x04055E36623F131B(iParam0, unk_0x9B0761B4C3EB8BC7(), 10f))
  				{
  					if (func_69(uParam1->f_5, 0f, 0f, 0f, 0))
  					{
  						unk_0x756D74A3EF0AB788(iParam0, *uParam1, uParam1->f_1, 8f, -8f, -1, 262153, 0, 0, 0, 0);
  					}
  					else
  					{
  						unk_0x81DCDE42A0B23C21(iParam0, *uParam1, uParam1->f_1, uParam1->f_5, uParam1->f_8, 8f, -8f, -1, 262153, 0, 2, 0);
  					}
  					uParam1->f_3 = 2;
  				}
  				break;
  			}
  	}
  }
  
  int func_413(int iParam0)
  {
  	if (iParam0 == 17 || iParam0 == 20)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_414(var uParam0)
  {
  	if (unk_0x7BCC91F3C1CF24E8(uParam0->f_2))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_415(var uParam0)
  {
  	if (unk_0x7BCC91F3C1CF24E8(*uParam0) || unk_0x7BCC91F3C1CF24E8(uParam0->f_1))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  void func_416(var uParam0)
  {
  	int iVar0;
  	var uVar1;
  	
  	if (*uParam0 == 52)
  	{
  		func_417(&(uParam0->f_41[1]));
  		func_417(&(uParam0->f_41[2]));
  	}
  	if (func_391(unk_0x9B0761B4C3EB8BC7()))
  	{
  		iVar0 = 0;
  		while (iVar0 <= (uParam0->f_28 - 1))
  		{
  			if (func_126(uParam0->f_28[iVar0]))
  			{
  				if (!unk_0x47DBF174A0CB9D55(uParam0->f_28[iVar0], 0))
  				{
  					unk_0x58ADF88C51AAFDC5(uParam0->f_28[iVar0], 1, 0);
  					unk_0x6A8F948698B360B4(uParam0->f_28[0], 0);
  				}
  				unk_0xCBA6B2B569DCAFD8(uParam0->f_28[iVar0], 1);
  				if (*uParam0 == 34)
  				{
  					if (func_391(uParam0->f_41[0]))
  					{
  						unk_0x58ADF88C51AAFDC5(uParam0->f_41[0], 1, 0);
  						unk_0x6A8F948698B360B4(uParam0->f_41[0], 0);
  					}
  				}
  				switch (*uParam0)
  				{
  					case 19:
  						func_423(uParam0->f_28[iVar0]);
  						break;
  					
  					case 8:
  						unk_0x131ED02492676000("rcmcollect_paperleadinout@");
  						while (!unk_0xC614DDE265D18415("rcmcollect_paperleadinout@"))
  						{
  							SYSTEM::WAIT(0);
  						}
  						unk_0x9DC06E2A59C5AEBB(&uVar1);
  						unk_0x756D74A3EF0AB788(0, "rcmcollect_paperleadinout@", "meditate_getup", 8f, -8f, -1, 8, 0, 0, 0, 0);
  						unk_0x8B18A80E8EB15510(0, unk_0x9B0761B4C3EB8BC7(), 10000f, -1, 0, 0);
  						unk_0x19F29730874AD6F1(uVar1);
  						unk_0x9B6EC2CECE1010EF(uParam0->f_28[iVar0], uVar1);
  						unk_0x4F83FEE4454169D4(&uVar1);
  						break;
  					
  					case 0:
  					case 1:
  						unk_0x131ED02492676000("rcmabigail");
  						while (!unk_0xC614DDE265D18415("rcmabigail"))
  						{
  							SYSTEM::WAIT(0);
  						}
  						unk_0x9DC06E2A59C5AEBB(&uVar1);
  						unk_0x756D74A3EF0AB788(0, "rcmabigail", "breakout_base", 8f, -8f, -1, 8, 0, 0, 0, 0);
  						unk_0x8B18A80E8EB15510(0, unk_0x9B0761B4C3EB8BC7(), 10000f, -1, 0, 0);
  						unk_0x19F29730874AD6F1(uVar1);
  						unk_0x9B6EC2CECE1010EF(uParam0->f_28[iVar0], uVar1);
  						unk_0x4F83FEE4454169D4(&uVar1);
  						break;
  					
  					case 32:
  						unk_0x131ED02492676000("rcmminute1");
  						while (!unk_0xC614DDE265D18415("rcmminute1"))
  						{
  							SYSTEM::WAIT(0);
  						}
  						unk_0x9DC06E2A59C5AEBB(&uVar1);
  						if (iVar0 == 0)
  						{
  							unk_0x756D74A3EF0AB788(0, "rcmminute1", "base_to_idle_joe", 8f, -8f, -1, 32776, 0, 0, 0, 0);
  						}
  						else
  						{
  							unk_0x756D74A3EF0AB788(0, "rcmminute1", "base_to_idle_josef", 8f, -8f, -1, 32776, 0, 0, 0, 0);
  						}
  						unk_0x8B18A80E8EB15510(0, unk_0x9B0761B4C3EB8BC7(), 10000f, -1, 0, 0);
  						unk_0x19F29730874AD6F1(uVar1);
  						unk_0x9B6EC2CECE1010EF(uParam0->f_28[iVar0], uVar1);
  						unk_0x4F83FEE4454169D4(&uVar1);
  						break;
  					
  					case 24:
  						unk_0x131ED02492676000("special_ped@hao@base");
  						while (!unk_0xC614DDE265D18415("special_ped@hao@base"))
  						{
  							SYSTEM::WAIT(0);
  						}
  						unk_0x9DC06E2A59C5AEBB(&uVar1);
  						unk_0x756D74A3EF0AB788(0, "special_ped@hao@base", "hao_exit", 8f, -8f, -1, 520, 0, 0, 0, 0);
  						unk_0x8B18A80E8EB15510(0, unk_0x9B0761B4C3EB8BC7(), 10000f, -1, 0, 0);
  						unk_0x19F29730874AD6F1(uVar1);
  						unk_0x9B6EC2CECE1010EF(uParam0->f_28[iVar0], uVar1);
  						unk_0x4F83FEE4454169D4(&uVar1);
  						break;
  					
  					default:
  						unk_0x0C095242BA4786C7(uParam0->f_28[iVar0]);
  						unk_0x8B18A80E8EB15510(uParam0->f_28[iVar0], unk_0x9B0761B4C3EB8BC7(), 10000f, -1, 0, 0);
  						break;
  					}
  			}
  			iVar0++;
  		}
  	}
  }
  
  void func_417(var uParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(*uParam0))
  	{
  		if (unk_0x8E805E09B82CCE5F(*uParam0))
  		{
  			unk_0x1F8106DB8796859F(*uParam0, 1, 1);
  		}
  		unk_0x315F7D8C33F0AB37(uParam0);
  	}
  }
  
  int func_418(var uParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	int iVar1;
  	var uVar2;
  	int iVar3;
  	
  	if (bParam1)
  	{
  		iVar1 = (uParam0->f_35 - 1);
  	}
  	else
  	{
  		iVar1 = 0;
  	}
  	if (func_126(unk_0x9B0761B4C3EB8BC7()))
  	{
  		iVar0 = 0;
  		while (iVar0 <= iVar1)
  		{
  			if (unk_0xAE06B9E39EBDE049(uParam0->f_35[iVar0]))
  			{
  				if (unk_0xA59F96B50B97E63C(uParam0->f_35[iVar0], 0))
  				{
  					func_494("STEP_5_COMMON_RCfineAndInRange - CHECK_VEHICLES_OK() - Random character vehicle is dead [TERMINATING]");
  					return 0;
  				}
  				if (!unk_0x80FF6C016CDB0FAF(uParam0->f_35[iVar0], 0))
  				{
  					func_494("STEP_5_COMMON_RCfineAndInRange - CHECK_VEHICLES_OK() - Random character vehicle is not driveable [TERMINATING]");
  					return 0;
  				}
  				if (unk_0xCDF860E56BBCC6B4(uParam0->f_35[iVar0], unk_0x9B0761B4C3EB8BC7(), 0))
  				{
  					func_494("STEP_5_COMMON_RCfineAndInRange - CHECK_VEHICLES_OK() - Random character vehicle has been damaged by player [TERMINATING]");
  					return 0;
  				}
  				if (unk_0x4F5F2FB7AE0EB7AB(uParam0->f_35[iVar0]) < 850)
  				{
  					func_494("STEP_5_COMMON_RCfineAndInRange - CHECK_VEHICLES_OK() - Random character vehicle health is less than 850 [TERMINATING]");
  					return 0;
  				}
  				if (bParam2)
  				{
  					if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  					{
  						if (unk_0xA65352E7FEA59881(uParam0->f_35[iVar0], unk_0x9B0761B4C3EB8BC7()) && unk_0xF3A639BEE7AADF55(unk_0x9B0761B4C3EB8BC7()) > 5f)
  						{
  							func_494("STEP_5_COMMON_RCfineAndInRange - CHECK_VEHICLES_OK() - Random character vehicle has collided with the player vehicle at speed [TERMINATING]");
  							return 0;
  						}
  						uVar2 = unk_0xA5D3CD332CD10EE9();
  						if (func_327(uVar2))
  						{
  							if (unk_0x36FE6D3220816ADA(uVar2) == joaat("towtruck") || unk_0x36FE6D3220816ADA(iVar2) == joaat("towtruck2"))
  							{
  								if (func_327(uParam0->f_35[iVar0]))
  								{
  									if (unk_0xBA9474B1995C6AAD(iVar2, uParam0->f_35[iVar0]))
  									{
  										func_494("STEP_5_COMMON_RCfineAndInRange - CHECK_VEHICLES_OK() - Random character vehicle is being towed by player [TERMINATING]");
  										return 0;
  									}
  								}
  							}
  						}
  					}
  					else
  					{
  						iVar3 = unk_0xA5D3CD332CD10EE9();
  						if (func_327(iVar3))
  						{
  							if (unk_0xA65352E7FEA59881(uParam0->f_35[iVar0], iVar3) && unk_0xF3A639BEE7AADF55(iVar3) > 6f)
  							{
  								func_494("STEP_5_COMMON_RCfineAndInRange - CHECK_VEHICLES_OK() - Random character vehicle has collided with the player's last known vehicle at speed (player bailed out?) [TERMINATING]");
  								return 0;
  							}
  						}
  						if (*uParam0 == 16)
  						{
  							if (func_419(unk_0x9B0761B4C3EB8BC7(), uParam0->f_35[iVar0]))
  							{
  								func_494("STEP_5_COMMON_RCfineAndInRange - CHECK_VEHICLES_OK() - Player attempting to jack Epsilon vehicle [TERMINATING]");
  								return 0;
  							}
  						}
  					}
  				}
  			}
  			iVar0++;
  		}
  	}
  	return 1;
  }
  
  int func_419(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (!unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		if (unk_0x80FF6C016CDB0FAF(iParam1, 0))
  		{
  			iVar0 = unk_0xB0919F8F7C8097BD(iParam0);
  			if (iVar0 == iParam1)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_420(var uParam0, bool bParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (bParam1)
  	{
  		iVar1 = (uParam0->f_28 - 1);
  	}
  	else
  	{
  		iVar1 = 0;
  	}
  	if (*uParam0 == 16)
  	{
  		iParam2 = 1;
  	}
  	if (*uParam0 == 30)
  	{
  		iParam2 = 1;
  	}
  	if (func_126(unk_0x9B0761B4C3EB8BC7()))
  	{
  		iVar0 = 0;
  		while (iVar0 <= iVar1)
  		{
  			if (unk_0xAE06B9E39EBDE049(uParam0->f_28[iVar0]))
  			{
  				if (!unk_0x5AEB5DDFFAD43CA5(uParam0->f_28[iVar0]))
  				{
  					if (unk_0x6E0C5E7AAF8B6214(unk_0x9B0761B4C3EB8BC7()))
  					{
  						if (unk_0xA65352E7FEA59881(unk_0x9B0761B4C3EB8BC7(), uParam0->f_28[iVar0]))
  						{
  							if (iParam2 == 0)
  							{
  								func_416(uParam0);
  							}
  							else
  							{
  								func_410(uParam0);
  							}
  							if (func_363())
  							{
  								func_362();
  							}
  							func_494("STEP_5_COMMON_RCfineAndInRange - Random character is being pushed by car [TERMINATING]");
  							return 0;
  						}
  					}
  					if ((unk_0xB3770DEEECFB052B(uParam0->f_28[iVar0]) || unk_0x06C1E4CCB13F773B(uParam0->f_28[iVar0])) || unk_0x8F8BC946B0876552(uParam0->f_28[iVar0]))
  					{
  						if (iParam2 == 0)
  						{
  							func_416(uParam0);
  						}
  						else
  						{
  							func_410(uParam0);
  						}
  						func_494("STEP_5_COMMON_RCfineAndInRange - Random character has been damaged by something [TERMINATING]");
  						return 0;
  					}
  					if (unk_0xCED6B5226244381C(uParam0->f_28[iVar0]))
  					{
  						if (unk_0x910DFF8E55ABB8EC(uParam0->f_28[iVar0], unk_0x9B0761B4C3EB8BC7(), 3f, 3f, 3f, 0, 1, 0))
  						{
  							if (iParam2 == 0)
  							{
  								func_416(uParam0);
  							}
  							else
  							{
  								func_410(uParam0);
  							}
  							func_494("STEP_5_COMMON_RCfineAndInRange - Random character is in ragdoll [TERMINATING]");
  							return 0;
  						}
  					}
  					if (func_422(*uParam0))
  					{
  						if (!func_154(*uParam0))
  						{
  							if (func_385(uParam0->f_28[iVar0], 1, 0, 0, 0))
  							{
  								if (iParam2 == 0)
  								{
  									func_416(uParam0);
  								}
  								else
  								{
  									func_410(uParam0);
  								}
  								func_494("STEP_5_COMMON_RCfineAndInRange - Player is shooting near the Random Character [TERMINATING]");
  								return 0;
  							}
  						}
  						if (unk_0x3628D28B8671F14F(-1, unk_0x3E4D3CCC220BDFB1(uParam0->f_28[iVar0], 1), 15f))
  						{
  							if (iParam2 == 0)
  							{
  								func_416(uParam0);
  							}
  							else
  							{
  								func_410(uParam0);
  							}
  							func_494("STEP_5_COMMON_RCfineAndInRange - There was an explosion near the Random Character [TERMINATING]");
  							return 0;
  						}
  						if (func_372(uParam0->f_28[iVar0], 1126825984))
  						{
  							if (iParam2 == 0)
  							{
  								func_416(uParam0);
  							}
  							else
  							{
  								func_410(uParam0);
  							}
  							func_494("STEP_5_COMMON_RCfineAndInRange - Random character is in combat [TERMINATING]");
  							return 0;
  						}
  					}
  					if (!func_421(*uParam0))
  					{
  						if (unk_0x3628D28B8671F14F(-1, unk_0x3E4D3CCC220BDFB1(uParam0->f_28[iVar0], 1), 5f))
  						{
  							if (iParam2 == 0)
  							{
  								func_416(uParam0);
  							}
  							else
  							{
  								func_410(uParam0);
  							}
  							func_494("STEP_5_COMMON_RCfineAndInRange - There was an explosion near the Random Character [TERMINATING]");
  							return 0;
  						}
  						if (unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) > 0)
  						{
  							if (iParam2 == 0)
  							{
  								func_416(uParam0);
  							}
  							else
  							{
  								func_410(uParam0);
  							}
  							func_494("STEP_5_COMMON_RCfineAndInRange - Player has a wanted level [TERMINATING]");
  							return 0;
  						}
  					}
  				}
  				else
  				{
  					func_494("STEP_5_COMMON_RCfineAndInRange - Random character injured / dead [TERMINATING]");
  					if (*uParam0 == 34)
  					{
  						if (func_391(uParam0->f_41[0]))
  						{
  							unk_0x58ADF88C51AAFDC5(uParam0->f_41[0], 1, 0);
  							unk_0x6A8F948698B360B4(uParam0->f_41[0], 0);
  						}
  					}
  					return 0;
  				}
  			}
  			iVar0++;
  		}
  	}
  	return 1;
  }
  
  int func_421(int iParam0)
  {
  	if (((iParam0 == 2 || iParam0 == 3) || iParam0 == 52) || iParam0 == 53)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_422(int iParam0)
  {
  	if (((((iParam0 == 2 || iParam0 == 3) || iParam0 == 34) || iParam0 == 11) || iParam0 == 52) || iParam0 == 53)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  void func_423(int iParam0)
  {
  	var uVar0;
  	
  	if (func_391(unk_0x9B0761B4C3EB8BC7()) && func_391(uParam0))
  	{
  		unk_0x131ED02492676000("rcmextreme3");
  		while (!unk_0xC614DDE265D18415("rcmextreme3"))
  		{
  			SYSTEM::WAIT(0);
  		}
  		unk_0x9DC06E2A59C5AEBB(&uVar0);
  		unk_0x756D74A3EF0AB788(0, "rcmextreme3", "jump_fall", 1000f, -8f, -1, 8, 0, 0, 0, 0);
  		unk_0x3882AEDF87714AF1(0, 1);
  		unk_0xB962A2894382623D(0, 64.6f, -737.8f, 44.2f);
  		unk_0x8B18A80E8EB15510(0, unk_0x9B0761B4C3EB8BC7(), 10000f, -1, 0, 0);
  		unk_0x19F29730874AD6F1(uVar0);
  		unk_0x9B6EC2CECE1010EF(uParam0, uVar0);
  		unk_0x4F83FEE4454169D4(&uVar0);
  	}
  }
  
  int func_424(int iParam0)
  {
  	if (iParam0 == -1)
  	{
  		iParam0 = func_162();
  	}
  	if (iParam0 == -1)
  	{
  		return 1;
  	}
  	if (func_430(iParam0))
  	{
  		return 0;
  	}
  	if (!func_159(4))
  	{
  		if (func_428(iParam0))
  		{
  		}
  		else
  		{
  			return 1;
  		}
  	}
  	if (func_427() && !func_426())
  	{
  		return 1;
  	}
  	if (!func_425(iParam0))
  	{
  		if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  		{
  			if (unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) != 0)
  			{
  				return 1;
  			}
  		}
  	}
  	if (!unk_0xCE990E643CD9D0E5(Global_111858.f_18570[iParam0 /*6*/], 2))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_425(int iParam0)
  {
  	if ((((iParam0 == 5 || iParam0 == 6) || iParam0 == 41) || iParam0 == 60) || iParam0 == 61)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_426()
  {
  	if (unk_0xF8EDFF98A9C94C74())
  	{
  		if (unk_0xC047A11F7A99E6B4() == 1f)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_427()
  {
  	if (Global_95877 != -1)
  	{
  		return unk_0xCE990E643CD9D0E5(Global_89743[Global_95877 /*34*/].f_15, 20);
  	}
  	return 0;
  }
  
  int func_428(int iParam0)
  {
  	if ((func_429() && Global_98955.f_11 == 6) && iParam0 == func_163(&(Global_98955.f_3), 0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_429()
  {
  	if (((Global_98955 == 13 || Global_98955 == 10) || Global_98955 == 11) || Global_98955 == 12)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_430(int iParam0)
  {
  	if (func_108(0))
  	{
  		if (Global_77079.f_1 == 7)
  		{
  			if (Global_77079 == iParam0)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  void func_431()
  {
  	uLocal_228 = unk_0x5DEA4192B46CB99B("digiscanner");
  	while (!unk_0x95EF219D38B20CFF(uLocal_228))
  	{
  		SYSTEM::WAIT(0);
  	}
  	if (!unk_0xA9A353D835A7867C("digiscanner"))
  	{
  		unk_0x3FF471D4A18A5ED5("digiscanner", 0);
  	}
  	unk_0xC7DE5B846819A9B2(unk_0xB3A5FF195E1A8192(joaat("weapon_digiscanner")));
  	if (unk_0xA9A353D835A7867C("digiscanner"))
  	{
  		uLocal_229 = unk_0x2BC38EC678978375("digiscanner");
  	}
  	uLocal_231 = unk_0x5E54B0823F46079E();
  	iLocal_230 = unk_0x578C4EF320340AF7();
  }
  
  void func_432(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5)
  {
  	if ((uParam0[iParam1 /*10*/])->f_7 == 1)
  	{
  	}
  	(*uParam0)[iParam1 /*10*/] = uParam2;
  	StringCopy(&((uParam0[iParam1 /*10*/])->f_1), sParam3, 24);
  	(uParam0[iParam1 /*10*/])->f_7 = 1;
  	(uParam0[iParam1 /*10*/])->f_8 = iParam4;
  	(uParam0[iParam1 /*10*/])->f_9 = iParam5;
  	if (!Global_76833)
  	{
  		if (!unk_0x5AEB5DDFFAD43CA5(uParam2))
  		{
  			if ((uParam0[iParam1 /*10*/])->f_8 == 0)
  			{
  				unk_0x83BBFE5E96C64FBA(iParam2, 0);
  			}
  			else
  			{
  				unk_0x83BBFE5E96C64FBA(iParam2, 1);
  			}
  		}
  		if (!unk_0x5AEB5DDFFAD43CA5(iParam2))
  		{
  			if ((uParam0[iParam1 /*10*/])->f_9 == 0)
  			{
  				unk_0xE61672E3FEF081AC(iParam2, 0);
  			}
  			else
  			{
  				unk_0xE61672E3FEF081AC(iParam2, 1);
  			}
  		}
  	}
  }
  
  int func_433(int iParam0)
  {
  	switch (*iParam0)
  	{
  		case 9:
  			if (!func_464(iParam0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 10:
  			if (!func_455(iParam0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 11:
  			if (!func_453(iParam0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 12:
  			if (!func_451(iParam0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 13:
  			if (!func_445(iParam0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 14:
  			if (!func_444(iParam0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 15:
  			if (!func_443(iParam0))
  			{
  				return 0;
  			}
  			break;
  		
  		case 16:
  			if (!func_437(iParam0))
  			{
  				return 0;
  			}
  			break;
  	}
  	if (*iParam0 == 12)
  	{
  		uLocal_55 = func_436();
  	}
  	else if (*iParam0 == 15)
  	{
  		uLocal_55 = func_435();
  		unk_0x773B9DEB93E81B2F(538.45f, 3079.61f, 39.27f, 75f, 0);
  	}
  	else if (*iParam0 == 16)
  	{
  		uLocal_55 = func_434();
  	}
  	func_494("Created initial scene");
  	return 1;
  }
  
  var func_434()
  {
  	return unk_0xC08A186299DFDA0A(-722.7994f, 14.8417f, 37.4501f, -661.751f, 56.4227f, 42.8989f, 0, 1, 1, 1);
  }
  
  var func_435()
  {
  	return unk_0xC08A186299DFDA0A(529.7899f, 3067.578f, 37.8313f, 545.8693f, 3098.999f, 43.0209f, 0, 1, 1, 1);
  }
  
  var func_436()
  {
  	return unk_0xC08A186299DFDA0A(1789.2f, 4658f, 30.73f, 1871.87f, 4745.51f, 40.17f, 0, 1, 1, 1);
  }
  
  int func_437(var uParam0)
  {
  	int iVar0[3];
  	int iVar1;
  	
  	iVar0[0] = joaat("landstalker");
  	iVar0[1] = joaat("tailgater");
  	iVar0[2] = joaat("s_m_m_highsec_01");
  	switch (iLocal_51)
  	{
  		case 0:
  			uParam0->f_16 = 5;
  			uParam0->f_17[0 /*3*/] = { -670.9681f, 53.53062f, 40.04339f };
  			uParam0->f_17[1 /*3*/] = { -723.7632f, 34.0545f, 46.97017f };
  			uParam0->f_24 = 19.75f;
  			uParam0->f_27 = 1;
  			uParam0->f_26 = 1;
  			uParam0->f_25 = 1;
  			StringCopy(&(uParam0->f_9), "EP_8_RCM", 24);
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x78FCB2E22C41B9D5(iVar0[iVar1]);
  				iVar1++;
  			}
  			iLocal_51 = 1;
  			break;
  		
  		case 1:
  			if (!func_442(&iVar0))
  			{
  				return 0;
  			}
  			iLocal_51 = 2;
  			break;
  		
  		case 2:
  			func_440(&(uParam0->f_35[0]), iVar0[0], -686.5046f, 43.9098f, 42.2067f, 296.81f);
  			unk_0x5DC21979EC6C531F(uParam0->f_35[0], 3);
  			unk_0x38633C69DE516059(uParam0->f_35[0], 157, 157);
  			unk_0x88FCE2696F59472E(uParam0->f_35[0], 0, 0);
  			unk_0x756046956300306A(uParam0->f_35[0], 1);
  			unk_0xE704D9F37B4C2203(uParam0->f_35[0], 0);
  			func_440(&(uParam0->f_35[1]), iVar0[1], -697.3215f, 39.0406f, 42.86736f, -66.98854f);
  			unk_0x5DC21979EC6C531F(uParam0->f_35[1], 3);
  			unk_0xC29A9E1088D83B1B(uParam0->f_35[1], "K1FFL0M");
  			unk_0x38633C69DE516059(uParam0->f_35[1], 157, 157);
  			unk_0x88FCE2696F59472E(uParam0->f_35[1], 0, 0);
  			unk_0xE704D9F37B4C2203(uParam0->f_35[1], 0);
  			func_438(&(uParam0->f_28[0]), iVar0[2], -726.4555f, 33.33568f, 43.22695f, -147.8099f, 26);
  			unk_0x92BD213E6A0E666B(uParam0->f_28[0], joaat("weapon_smg"), -1, 0, 0);
  			unk_0xA785552633ED203B(uParam0->f_28[0], unk_0x9B0761B4C3EB8BC7(), -1, 0, 2);
  			unk_0x44079820D4080F82(uParam0->f_28[0], 2);
  			unk_0x3964C1CAAE858CB1(uParam0->f_28[0], "WORLD_HUMAN_GUARD_STAND", 0, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[0], 0, 1, 1, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[0], 3, 0, 1, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[0], 4, 0, 1, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[0], 8, 1, 0, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[0], 11, 1, 0, 0);
  			func_438(&(uParam0->f_28[1]), iVar0[2], -666.5512f, 49.19759f, 42.07154f, -171.6803f, 26);
  			unk_0x92BD213E6A0E666B(uParam0->f_28[1], joaat("weapon_smg"), -1, 0, 0);
  			unk_0xA785552633ED203B(uParam0->f_28[1], unk_0x9B0761B4C3EB8BC7(), -1, 0, 2);
  			unk_0x44079820D4080F82(uParam0->f_28[1], 2);
  			unk_0x3964C1CAAE858CB1(uParam0->f_28[1], "WORLD_HUMAN_GUARD_STAND", 0, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[1], 0, 0, 0, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[1], 3, 0, 1, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[1], 4, 0, 1, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[1], 8, 0, 0, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[1], 11, 0, 0, 0);
  			func_438(&(uParam0->f_28[2]), iVar0[2], -690f, 42f, 42f, 0f, 26);
  			func_438(&(uParam0->f_28[3]), iVar0[2], -690f, 42f, 43f, 0f, 26);
  			unk_0x13A4BD6CC31F7B8F(uParam0->f_28[2], uParam0->f_35[0], -1);
  			unk_0x13A4BD6CC31F7B8F(uParam0->f_28[3], uParam0->f_35[0], 0);
  			unk_0x92BD213E6A0E666B(uParam0->f_28[2], joaat("weapon_combatpistol"), -1, 0, 0);
  			unk_0x92BD213E6A0E666B(uParam0->f_28[3], joaat("weapon_microsmg"), -1, 0, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[2], 0, 0, 1, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[2], 3, 0, 1, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[2], 4, 0, 1, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[2], 8, 0, 0, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[2], 11, 0, 0, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[3], 0, 1, 0, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[3], 3, 0, 2, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[3], 4, 0, 2, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[3], 8, 1, 0, 0);
  			unk_0x45F588C0DD767737(uParam0->f_28[3], 11, 0, 1, 0);
  			unk_0xDE8F8016287F771F("gang", &uLocal_54);
  			unk_0xD3D9D7C84656DAE5(uParam0->f_28[0], uLocal_54);
  			unk_0xD3D9D7C84656DAE5(uParam0->f_28[1], uLocal_54);
  			unk_0xD3D9D7C84656DAE5(uParam0->f_28[2], uLocal_54);
  			unk_0xD3D9D7C84656DAE5(uParam0->f_28[3], uLocal_54);
  			unk_0x161DCD5F8BF8AA2B(uParam0->f_28[0], 0);
  			unk_0x161DCD5F8BF8AA2B(uParam0->f_28[1], 0);
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x74528AC0906CBABE(iVar0[iVar1]);
  				iVar1++;
  			}
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  void func_438(var uParam0, var uParam1, struct<3> Param2, float fParam3, int iParam4)
  {
  	func_439(uParam0);
  	*uParam0 = unk_0xB3116B49FE00E2F1(iParam4, uParam1, Param2, fParam3, 0, 0);
  }
  
  void func_439(var uParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(*uParam0))
  	{
  		if (!unk_0xA59F96B50B97E63C(*uParam0, 0))
  		{
  			unk_0xA5EAD2ACE2C8BBB2(*uParam0, 0, 1);
  		}
  		if (!unk_0x1758275D343D5BA3(*uParam0))
  		{
  			unk_0x4F3C4F457D44BB0F(*uParam0, 1, 0);
  		}
  		unk_0x586DDC617E714637(uParam0);
  	}
  }
  
  void func_440(var uParam0, var uParam1, struct<3> Param2, float fParam3)
  {
  	func_441(uParam0);
  	*uParam0 = unk_0xCE4780E24AFDFBF9(uParam1, Param2, fParam3, 1, 1, 0);
  	if (unk_0xAE06B9E39EBDE049(*uParam0))
  	{
  		unk_0xB11D151E210D4FAC(*uParam0, 1084227584);
  		unk_0x697DA7132EE43ABC(*uParam0, 1000, 0);
  	}
  }
  
  void func_441(var uParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(*uParam0))
  	{
  		if (!unk_0x1758275D343D5BA3(*uParam0))
  		{
  			unk_0x4F3C4F457D44BB0F(*uParam0, 1, 0);
  		}
  		if (func_327(*uParam0))
  		{
  			if (unk_0x1758275D343D5BA3(*uParam0) && unk_0x1D2A3118784C0272(*uParam0, 1))
  			{
  				if (func_391(unk_0x9B0761B4C3EB8BC7()))
  				{
  					if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), *uParam0, 0))
  					{
  						unk_0xE730EAF558C97567(uParam0);
  						return;
  					}
  				}
  				unk_0x03A2522C845CFAC6(uParam0);
  			}
  		}
  		else
  		{
  			if (func_391(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), *uParam0, 0))
  				{
  					unk_0xE730EAF558C97567(uParam0);
  					return;
  				}
  			}
  			unk_0x03A2522C845CFAC6(uParam0);
  		}
  	}
  }
  
  int func_442(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= (*iParam0 - 1))
  	{
  		if (!unk_0x7D167B9A0CCDA347((*iParam0)[iVar0]))
  		{
  			return 0;
  		}
  		iVar0++;
  	}
  	return 1;
  }
  
  int func_443(var uParam0)
  {
  	uParam0->f_16 = 5;
  	uParam0->f_17[0 /*3*/] = { 513.48f, 3081.22f, 38.84f };
  	uParam0->f_17[1 /*3*/] = { 530.53f, 3073f, 44.13f };
  	uParam0->f_24 = 9.25f;
  	uParam0->f_27 = 0;
  	StringCopy(&(uParam0->f_9), "EP_7_RCM", 24);
  	return 1;
  }
  
  int func_444(var uParam0)
  {
  	int iVar0[2];
  	int iVar1;
  	var uVar2;
  	char* sVar3;
  	bool bVar4;
  	var uVar5;
  	
  	sVar3 = "rcmepsilonism6";
  	iVar0[0] = joaat("velum");
  	iVar0[1] = joaat("ig_tomepsilon");
  	switch (iLocal_51)
  	{
  		case 0:
  			uParam0->f_16 = 5;
  			uParam0->f_17[0 /*3*/] = { -2869.424f, 3170.774f, 1.954f };
  			uParam0->f_17[1 /*3*/] = { -2918.701f, 3217.056f, 32.294f };
  			uParam0->f_24 = 94.5f;
  			uParam0->f_27 = 0;
  			uParam0->f_25 = 1;
  			uParam0->f_26 = 1;
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x78FCB2E22C41B9D5(iVar0[iVar1]);
  				iVar1++;
  			}
  			unk_0x131ED02492676000(sVar3);
  			iLocal_51 = 1;
  			break;
  		
  		case 1:
  			if (!func_442(&iVar0) || !unk_0xC614DDE265D18415(sVar3))
  			{
  				return 0;
  			}
  			iLocal_51 = 2;
  			break;
  		
  		case 2:
  			bVar4 = true;
  			if (!unk_0xAE06B9E39EBDE049(uParam0->f_35[0]))
  			{
  				uVar2 = unk_0x84F0027A508D7D7D(-2892.93f, 3192.37f, 11.66f, 11f, iVar0[0], 16390);
  				if (func_391(uVar2))
  				{
  					uParam0->f_35[0] = uVar2;
  					unk_0x4F3C4F457D44BB0F(uVar2, 1, 1);
  				}
  				else
  				{
  					unk_0xF27E737981AFB47D(-2892.93f, 3192.37f, 11.66f, 11f, 0, 0, 0, 0, 0, 0);
  					func_440(&(uParam0->f_35[0]), iVar0[0], -2892.93f, 3192.37f, 11.66f, -132.35f);
  				}
  			}
  			func_406(37, 0);
  			if (unk_0xAE06B9E39EBDE049(uParam0->f_35[0]))
  			{
  				unk_0x410A1E7AD7D5C774(iVar0[0], 1);
  				unk_0x7C4F70F41134C357(uParam0->f_35[0]);
  				unk_0x29897D845D2C290B(uParam0->f_35[0], 0);
  				unk_0x38633C69DE516059(uParam0->f_35[0], 157, 157);
  				unk_0x88FCE2696F59472E(uParam0->f_35[0], 157, 5);
  				unk_0xA6595E9B6170C788(uParam0->f_35[0], 3);
  				unk_0x78EC76714ECFCD96(uParam0->f_35[0], 0);
  				unk_0x494ACC4552B7881B(uParam0->f_35[0], 1);
  				unk_0x5DC21979EC6C531F(uParam0->f_35[0], 3);
  				if (Global_77078)
  				{
  					if (!unk_0xA59F96B50B97E63C(unk_0x9B0761B4C3EB8BC7(), 0))
  					{
  						unk_0x03D382CB0B44E2FC(unk_0x9B0761B4C3EB8BC7(), -2907.29f, 3215.91f, 9.86f, 1, 0, 0, 1);
  						unk_0xE922BAA80E8F9324(unk_0x9B0761B4C3EB8BC7(), 215.2149f);
  					}
  				}
  			}
  			else
  			{
  				bVar4 = false;
  			}
  			func_438(&(uParam0->f_28[0]), iVar0[1], -2881.755f, 3188.125f, 10.1136f, 254.1723f, 26);
  			if (func_391(uParam0->f_28[0]) && func_126(unk_0x9B0761B4C3EB8BC7()))
  			{
  				uVar5 = unk_0x86FB3A0D4870FE62(unk_0x9B0761B4C3EB8BC7());
  				unk_0x92BD213E6A0E666B(uParam0->f_28[0], joaat("weapon_digiscanner"), -1, 1, 1);
  				unk_0x6D2F52D05ED0E1F6(uParam0->f_28[0]);
  				unk_0x44EEDB6E2FB6904F(uParam0->f_28[0], 1);
  				unk_0x0DC39BE87E4C5599(uParam0->f_28[0], 0);
  				unk_0x694113444F21E39F(uParam0->f_28[0], 185, 1);
  				unk_0x694113444F21E39F(uParam0->f_28[0], 188, 1);
  				unk_0x694113444F21E39F(uParam0->f_28[0], 132, 1);
  				unk_0x44225B42FE388400(uParam0->f_28[0], 1);
  				unk_0xD3D9D7C84656DAE5(uParam0->f_28[0], uVar5);
  				unk_0x4E65320BC9AD521C(uParam0->f_28[0], 0);
  			}
  			else
  			{
  				bVar4 = false;
  			}
  			if (bVar4)
  			{
  				iLocal_51 = 3;
  			}
  			break;
  		
  		case 3:
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x74528AC0906CBABE(iVar0[iVar1]);
  				iVar1++;
  			}
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  int func_445(var uParam0)
  {
  	int iVar0[1];
  	int iVar1;
  	bool bVar2;
  	var uVar3;
  	
  	iVar0[0] = uLocal_52;
  	switch (iLocal_51)
  	{
  		case 0:
  			uParam0->f_16 = 5;
  			uParam0->f_17[0 /*3*/] = { 638.1478f, 106.1284f, 87.36301f };
  			uParam0->f_17[1 /*3*/] = { 646.6449f, 129.2266f, 93.14977f };
  			uParam0->f_24 = 12.5f;
  			uParam0->f_27 = 0;
  			uParam0->f_25 = 1;
  			StringCopy(&(uParam0->f_9), "EP_5_RCM", 24);
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x78FCB2E22C41B9D5(iVar0[iVar1]);
  				iVar1++;
  			}
  			func_450(&(uParam0->f_48), "rcm_epsilonism5", "ep_5_rcm_marnie_strokes_wall", 0);
  			iLocal_51 = 1;
  			break;
  		
  		case 1:
  			if (!func_442(&iVar0) || !func_449(&(uParam0->f_48)))
  			{
  				return 0;
  			}
  			iLocal_51 = 2;
  			break;
  		
  		case 2:
  			bVar2 = true;
  			if (!unk_0xAE06B9E39EBDE049(uParam0->f_28[0]))
  			{
  				if (func_446(&(uParam0->f_28[0]), 60, 636.58f, 119.68f, 90.56f, 80.62f, "EPSILON LAUNCHER RC", 1) && func_126(unk_0x9B0761B4C3EB8BC7()))
  				{
  					uVar3 = unk_0x86FB3A0D4870FE62(unk_0x9B0761B4C3EB8BC7());
  					unk_0xD3D9D7C84656DAE5(uParam0->f_28[0], uVar3);
  					unk_0x694113444F21E39F(uParam0->f_28[0], 132, 1);
  				}
  				else
  				{
  					bVar2 = false;
  				}
  			}
  			if (bVar2)
  			{
  				iLocal_51 = 3;
  			}
  			break;
  		
  		case 3:
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x74528AC0906CBABE(iVar0[iVar1]);
  				iVar1++;
  			}
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  int func_446(var uParam0, int iParam1, struct<3> Param2, float fParam3, char* sParam4, int iParam5)
  {
  	if (func_447(uParam0, iParam1, Param2, fParam3, 1))
  	{
  		if (unk_0xAE06B9E39EBDE049(*uParam0))
  		{
  			if (!unk_0xA59F96B50B97E63C(*uParam0, 0))
  			{
  				unk_0x4E65320BC9AD521C(*uParam0, 1);
  				unk_0x055A73D4AFD214F1(*uParam0, 0);
  				if (iParam5 == 1)
  				{
  					unk_0x0DC39BE87E4C5599(*uParam0, 0);
  				}
  			}
  			unk_0x14EFF93E9B692DAD(*uParam0, sParam4);
  		}
  		return 1;
  	}
  	return 0;
  }
  
  int func_447(var uParam0, int iParam1, struct<3> Param2, float fParam3, bool bParam4)
  {
  	int iVar0;
  	
  	if (!func_36(iParam1))
  	{
  		iVar0 = func_497(iParam1);
  		unk_0x78FCB2E22C41B9D5(iVar0);
  		if (unk_0x7D167B9A0CCDA347(iVar0))
  		{
  			if (unk_0xAE06B9E39EBDE049(*uParam0))
  			{
  				unk_0x586DDC617E714637(uParam0);
  			}
  			*uParam0 = unk_0xB3116B49FE00E2F1(26, iVar0, Param2, uParam3, 0, 0);
  			unk_0x6D2F52D05ED0E1F6(*uParam0);
  			if (iVar0 == joaat("ig_lamardavis"))
  			{
  				if (unk_0x3FB4D40A857CEA77(*uParam0, 3) == 0)
  				{
  					unk_0x45F588C0DD767737(*uParam0, 5, 2, 0, 0);
  				}
  			}
  			func_448(*uParam0, iParam1);
  			if (bParam4)
  			{
  				unk_0x74528AC0906CBABE(iVar0);
  			}
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_448(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 7;
  	if (iParam1 == 19)
  	{
  		iVar0 = 3;
  	}
  	else if (iParam1 == 14)
  	{
  		iVar0 = 4;
  	}
  	else if (iParam1 == 17)
  	{
  		iVar0 = 5;
  	}
  	else
  	{
  		iVar0 = 7;
  		return 0;
  	}
  	Global_94789[(iVar0 - 3)] = uParam0;
  	return 1;
  }
  
  int func_449(var uParam0)
  {
  	if (func_415(uParam0))
  	{
  		unk_0x131ED02492676000(*uParam0);
  		if (unk_0xC614DDE265D18415(*uParam0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_450(var uParam0, char* sParam1, char* sParam2, int iParam3)
  {
  	*uParam0 = sParam1;
  	uParam0->f_1 = sParam2;
  	uParam0->f_2 = iParam3;
  	unk_0x131ED02492676000(*uParam0);
  	uParam0->f_5 = { 0f, 0f, 0f };
  	uParam0->f_8 = { 0f, 0f, 0f };
  	uParam0->f_3 = 1;
  	uParam0->f_4 = 0;
  }
  
  int func_451(var uParam0)
  {
  	int iVar0[2];
  	int iVar1;
  	bool bVar2;
  	var uVar3;
  	
  	iVar0[0] = uLocal_52;
  	iVar0[1] = uLocal_53;
  	switch (iLocal_51)
  	{
  		case 0:
  			uParam0->f_16 = 0;
  			uParam0->f_15 = 11.5f;
  			uParam0->f_27 = 0;
  			uParam0->f_25 = 1;
  			StringCopy(&(uParam0->f_9), "EP_4_RCM_CONCAT", 24);
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x78FCB2E22C41B9D5(iVar0[iVar1]);
  				iVar1++;
  			}
  			func_450(&(uParam0->f_48), "rcm_epsilonism4", "ep_4_rcm_marnie_base_marnie", "ep_4_rcm_marnie_lookaround_marnie");
  			iLocal_51 = 1;
  			break;
  		
  		case 1:
  			if (!func_442(&iVar0) || !func_449(&(uParam0->f_48)))
  			{
  				return 0;
  			}
  			iLocal_51 = 2;
  			break;
  		
  		case 2:
  			bVar2 = true;
  			if (func_126(unk_0x9B0761B4C3EB8BC7()))
  			{
  				uVar3 = unk_0x86FB3A0D4870FE62(unk_0x9B0761B4C3EB8BC7());
  			}
  			if (!unk_0xAE06B9E39EBDE049(uParam0->f_28[0]))
  			{
  				if (func_446(&(uParam0->f_28[0]), 60, 1826.13f, 4698.88f, 38.92f, 21.63f, "EPSILON LAUNCHER RC - MARNIE", 1))
  				{
  					unk_0xD3D9D7C84656DAE5(uParam0->f_28[0], uVar3);
  					unk_0x694113444F21E39F(uParam0->f_28[0], 132, 1);
  				}
  				else
  				{
  					bVar2 = false;
  				}
  			}
  			if (!unk_0xAE06B9E39EBDE049(uParam0->f_28[1]))
  			{
  				if (func_446(&(uParam0->f_28[1]), 55, 1827.24f, 4699.76f, 39.09f, 57.09f, "EPSILON LAUNCHER RC - JIMMY", 1))
  				{
  					unk_0xD3D9D7C84656DAE5(uParam0->f_28[1], uVar3);
  					unk_0x694113444F21E39F(uParam0->f_28[1], 132, 1);
  					unk_0x78024EFD31A7FAD4(uParam0->f_28[1], 1, 0, 0, false);
  					unk_0x9B94F6169B0DAEFD(uParam0->f_28[1]);
  					unk_0x92BD213E6A0E666B(uParam0->f_28[1], joaat("weapon_digiscanner"), -1, 1, 1);
  					unk_0x756D74A3EF0AB788(uParam0->f_28[1], "rcm_epsilonism4", "ep_4_rcm_jimmyboston_base_jb", 8f, -8f, -1, 1, 0, 0, 0, 0);
  					func_452(uParam0->f_28[1], 1827.24f, 4699.76f, 39.09f, 57.09f, 1, 1);
  				}
  				else
  				{
  					bVar2 = false;
  				}
  			}
  			if (bVar2)
  			{
  				iLocal_51 = 3;
  			}
  			break;
  		
  		case 3:
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x74528AC0906CBABE(iVar0[iVar1]);
  				iVar1++;
  			}
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  int func_452(int iParam0, struct<3> Param1, float fParam2, bool bParam3, int iParam4)
  {
  	bool bVar0;
  	float fVar1;
  	
  	bVar0 = false;
  	if (func_391(uParam0))
  	{
  		if (bParam3 == 1)
  		{
  			fVar1 = 0f;
  			bVar0 = unk_0xE5CC8E2D904E42CE(Param1, &fVar1, 0, 0);
  			if (bVar0)
  			{
  				Param1.f_2 = fVar1;
  			}
  		}
  		unk_0x03D382CB0B44E2FC(uParam0, Param1, 1, 0, 0, iParam4);
  		unk_0xE922BAA80E8F9324(iParam0, fParam2);
  		if (bParam3)
  		{
  			return bVar0;
  		}
  		return 1;
  	}
  	return 0;
  }
  
  int func_453(var uParam0)
  {
  	int iVar0[1];
  	int iVar1;
  	struct<3> Var2;
  	var uVar3;
  	bool bVar4;
  	var uVar5;
  	
  	Var2 = { 1843.82f, 4705.74f, 38.8f };
  	uVar3 = func_454(1.99f);
  	iVar0[0] = uLocal_52;
  	switch (iLocal_51)
  	{
  		case 0:
  			uParam0->f_16 = 3;
  			uParam0->f_17[0 /*3*/] = { 1842.66f, 4704.65f, 37.81f };
  			uParam0->f_15 = 9f;
  			uParam0->f_25 = 1;
  			uParam0->f_27 = 0;
  			StringCopy(&(uParam0->f_9), "EP_3_RCM_ALT1", 24);
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x78FCB2E22C41B9D5(iVar0[iVar1]);
  				iVar1++;
  			}
  			func_450(&(uParam0->f_48), "rcmepsilonism3", "base_loop", 0);
  			iLocal_51 = 1;
  			break;
  		
  		case 1:
  			if (!func_442(&iVar0) || !func_449(&(uParam0->f_48)))
  			{
  				return 0;
  			}
  			iLocal_51 = 2;
  			break;
  		
  		case 2:
  			bVar4 = true;
  			unk_0x773B9DEB93E81B2F(Var2, 35f, 0);
  			if (!unk_0xAE06B9E39EBDE049(uParam0->f_28[0]))
  			{
  				if (func_446(&(uParam0->f_28[0]), 60, Var2, uVar3, "EPSILON LAUNCHER RC - MARNIE", 1))
  				{
  					if (unk_0xAE06B9E39EBDE049(uParam0->f_28[0]) && func_126(unk_0x9B0761B4C3EB8BC7()))
  					{
  						uVar5 = unk_0x86FB3A0D4870FE62(unk_0x9B0761B4C3EB8BC7());
  						unk_0x5A5A1DD32AC33C2B(uParam0->f_28[0], 0);
  						unk_0xD3D9D7C84656DAE5(uParam0->f_28[0], uVar5);
  						unk_0x694113444F21E39F(uParam0->f_28[0], 132, 1);
  						unk_0x756D74A3EF0AB788(uParam0->f_28[0], "rcmepsilonism3", "ep_3_rcm_marnie_meditating", 1000f, -8f, -1, 786433, 0, 0, 0, 0);
  					}
  					else
  					{
  						bVar4 = false;
  					}
  				}
  			}
  			if (bVar4)
  			{
  				iLocal_51 = 3;
  			}
  			break;
  		
  		case 3:
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x74528AC0906CBABE(iVar0[iVar1]);
  				iVar1++;
  			}
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  float func_454(float fParam0)
  {
  	return (fParam0 * 57.29578f);
  }
  
  int func_455(var uParam0)
  {
  	switch (iLocal_51)
  	{
  		case 0:
  			uParam0->f_16 = 5;
  			uParam0->f_17[0 /*3*/] = { 246.8182f, 374.0685f, 103.1233f };
  			uParam0->f_17[1 /*3*/] = { 241.9806f, 360.8724f, 108.8699f };
  			uParam0->f_24 = 9f;
  			uParam0->f_15 = 2f;
  			uParam0->f_27 = 0;
  			StringCopy(&(uParam0->f_9), "EP_2_RCM", 24);
  			if (Global_77078)
  			{
  				func_463(86, 1);
  			}
  			iLocal_51 = 1;
  			break;
  		
  		case 1:
  			if (!unk_0x8865B8E834909D76(241.3607f, 361.0345f, 105.8884f, 4f, joaat("v_ilev_epsstoredoor"), 0))
  			{
  				return 0;
  			}
  			iLocal_51 = 3;
  			break;
  		
  		case 3:
  			func_393(109, 0);
  			func_456(11, 0);
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  void func_456(int iParam0, bool bParam1)
  {
  	char* sVar0;
  	int iVar1;
  	
  	sVar0 = "NULL";
  	iVar1 = 0;
  	sVar0 = func_460(iParam0, &iVar1);
  	if (!unk_0xF005CCA4263DF67F("NONE", sVar0) && iVar1 != 0)
  	{
  		if (bParam1 && !unk_0xE00660AF52DFC40D(iVar1))
  		{
  			if (unk_0x518D695E2DBA9DB8(unk_0x9B0761B4C3EB8BC7()) == iVar1)
  			{
  				func_459(iParam0, 1);
  				return;
  			}
  			unk_0xA637F4053D6308EF(iVar1, 1);
  		}
  		else if (!bParam1 && unk_0xE00660AF52DFC40D(iVar1))
  		{
  			if (func_457(iParam0))
  			{
  				func_459(iParam0, 0);
  			}
  			unk_0xA637F4053D6308EF(iVar1, 0);
  		}
  		else if (!bParam1)
  		{
  			if (func_457(iParam0))
  			{
  				func_459(iParam0, 0);
  			}
  		}
  	}
  }
  
  int func_457(int iParam0)
  {
  	struct<2> Var0;
  	
  	Var0 = { func_458(iParam0) };
  	if (Var0.f_1 != -1 && unk_0xCE990E643CD9D0E5(Global_37400[Var0.f_1], Var0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  struct<2> func_458(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	struct<2> Var3;
  	
  	iVar0 = uParam0;
  	iVar1 = 0;
  	iVar2 = 0;
  	Var3 = -1;
  	Var3.f_1 = -1;
  	while (iVar1 < 7)
  	{
  		iVar2 += 32;
  		if (iVar0 < iVar2)
  		{
  			Var3.f_1 = iVar1;
  			Var3 = (iVar0 - Var3.f_1 * 32);
  			return Var3;
  		}
  		iVar1++;
  	}
  	return Var3;
  }
  
  void func_459(int iParam0, bool bParam1)
  {
  	struct<2> Var0;
  	
  	Var0 = { func_458(iParam0) };
  	if (Var0.f_1 == -1)
  	{
  		return;
  	}
  	if (bParam1)
  	{
  		unk_0xBE20AB8238688965(&(Global_37400[Var0.f_1]), Var0);
  	}
  	else
  	{
  		unk_0xD2459066EA58CE43(&(Global_37400[Var0.f_1]), Var0);
  	}
  }
  
  var func_460(int iParam0, int iParam1)
  {
  	struct<5> Var0;
  	
  	Var0 = { func_461(iParam0) };
  	*iParam1 = unk_0xC519B5898C2310B1(Var0, Var0.f_3);
  	return Var0.f_4;
  }
  
  struct<5> func_461(int iParam0)
  {
  	struct<5> Var0;
  	struct<3> Var1;
  	
  	switch (iParam0)
  	{
  		case 0:
  			Var0 = { -447.4833f, 280.3197f, 77.5215f };
  			Var0.f_3 = "v_comedy";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 1:
  			Var0 = { -1906.786f, -573.7576f, 19.0773f };
  			Var0.f_3 = "v_psycheoffice";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 2:
  			Var0 = { 1399.973f, 1148.756f, 113.3336f };
  			Var0.f_3 = "v_ranch";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 3:
  			Var0 = { -598.6379f, -1608.399f, 26.0108f };
  			Var0.f_3 = "v_recycle";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 4:
  			Var0 = { -556.5089f, 286.3181f, 81.1763f };
  			Var0.f_3 = "v_rockclub";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 5:
  			Var0 = { -111.7116f, -11.912f, 69.5196f };
  			Var0.f_3 = "v_janitor";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 6:
  			Var0 = { 1274.934f, -1714.726f, 53.7715f };
  			Var0.f_3 = "v_lesters";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 7:
  			Var0 = { 147.433f, -2201.37f, 3.688f };
  			Var0.f_3 = "v_torture";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 8:
  			Var0 = { 320.9934f, 265.2515f, 82.1221f };
  			Var0.f_3 = "v_cinema";
  			Var0.f_4 = "v_cinema (Vinewood)";
  			break;
  		
  		case 9:
  			Var0 = { -1425.564f, -244.3f, 15.8053f };
  			Var0.f_3 = "v_cinema";
  			Var0.f_4 = "v_cinema (Morningwood)";
  			break;
  		
  		case 10:
  			Var0 = { 377.153f, -717.567f, 10.0536f };
  			Var0.f_3 = "v_cinema";
  			Var0.f_4 = "v_cinema (Downtown)";
  			break;
  		
  		case 11:
  			Var0 = { 245.1564f, 370.211f, 104.7382f };
  			Var0.f_3 = "v_epsilonism";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 12:
  			Var0 = { 173.1176f, -1003.279f, -99.9999f };
  			Var0.f_3 = "v_garages";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 13:
  			Var0 = { 199.9715f, -999.6678f, -100f };
  			Var0.f_3 = "v_garagem";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 14:
  			Var0 = { 228.6058f, -992.0537f, -99.9999f };
  			Var0.f_3 = "v_garagel";
  			Var0.f_3 = "hei_dlc_garage_high_new";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 15:
  			Var0 = { 1854.254f, 3686.739f, 33.2671f };
  			Var0.f_3 = "v_sheriff";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 16:
  			Var0 = { -444.8907f, 6013.587f, 30.7164f };
  			Var0.f_3 = "v_sheriff2";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 17:
  			Var0 = { 3522.845f, 3707.965f, 19.9918f };
  			Var0.f_3 = "v_lab";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 18:
  			Var0 = { 717.2994f, -974.4271f, 23.9142f };
  			Var0.f_3 = "v_sweat";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 19:
  			Var0 = { 717.299f, -974.4271f, 23.9142f };
  			Var0.f_3 = "v_sweatempty";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 20:
  			Var0 = { 2449.785f, 4983.825f, 45.8106f };
  			Var0.f_3 = "v_farmhouse";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 22:
  			Var0 = { 1087.195f, -1988.445f, 28.649f };
  			Var0.f_3 = "v_foundry";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 23:
  			Var0 = { 982.233f, -2160.382f, 28.4761f };
  			Var0.f_3 = "v_abattoir";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 21:
  			Var0 = { 479.0568f, -1316.825f, 28.2038f };
  			Var0.f_3 = "v_chopshop";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 24:
  			Var0 = { -1005.663f, -478.3461f, 49.0265f };
  			Var0.f_3 = "v_58_sol_office";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 25:
  			Var1 = { func_462(1, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (1)";
  			break;
  		
  		case 26:
  			Var1 = { func_462(2, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (2)";
  			break;
  		
  		case 27:
  			Var1 = { func_462(3, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (3)";
  			break;
  		
  		case 28:
  			Var1 = { func_462(4, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (4)";
  			break;
  		
  		case 29:
  			Var1 = { func_462(5, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (5)";
  			break;
  		
  		case 30:
  			Var1 = { func_462(6, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (6)";
  			break;
  		
  		case 31:
  			Var1 = { func_462(7, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (7)";
  			break;
  		
  		case 32:
  			Var0 = { Global_1049924[34 /*1951*/].f_146.f_1517 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (8)";
  			break;
  		
  		case 33:
  			Var1 = { func_462(35, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (9)";
  			break;
  		
  		case 34:
  			Var1 = { func_462(36, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (10)";
  			break;
  		
  		case 35:
  			Var1 = { func_462(37, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (11)";
  			break;
  		
  		case 36:
  			Var1 = { func_462(38, 0) };
  			Var0 = { -20.1f, -580.8f, 91.3f };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (12)";
  			break;
  		
  		case 37:
  			Var1 = { func_462(39, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (13)";
  			break;
  		
  		case 38:
  			Var1 = { func_462(40, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (14)";
  			break;
  		
  		case 39:
  			Var1 = { func_462(41, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (15)";
  			break;
  		
  		case 40:
  			Var1 = { func_462(42, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (16)";
  			break;
  		
  		case 41:
  			Var1 = { func_462(43, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (17)";
  			break;
  		
  		case 42:
  			Var0 = { -470.3754f, -698.5207f, 51.5276f };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (18)";
  			break;
  		
  		case 43:
  			Var0 = { -460.6133f, -691.5562f, 69.9067f };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (19)";
  			break;
  		
  		case 44:
  			Var0 = { 300.633f, -997.4288f, -99.9727f };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = "hei_dlc_apart_high_new (20)";
  			break;
  		
  		case 49:
  			Var0 = { -171.3969f, 494.2671f, 134.4935f };
  			Var0.f_3 = "apa_v_mp_stilts_b";
  			Var0.f_4 = "apa_v_mp_stilts_b (1)";
  			break;
  		
  		case 50:
  			Var0 = { 339.4982f, 434.0887f, 146.2206f };
  			Var0.f_3 = "apa_v_mp_stilts_b";
  			Var0.f_4 = "apa_v_mp_stilts_b (2)";
  			break;
  		
  		case 51:
  			Var0 = { -761.3884f, 615.7333f, 140.9805f };
  			Var0.f_3 = "apa_v_mp_stilts_b";
  			Var0.f_4 = "apa_v_mp_stilts_b (3)";
  			break;
  		
  		case 52:
  			Var0 = { -678.1752f, 591.0076f, 142.2196f };
  			Var0.f_3 = "apa_v_mp_stilts_b";
  			Var0.f_4 = "apa_v_mp_stilts_b (4)";
  			break;
  		
  		case 53:
  			Var0 = { 120.0541f, 553.793f, 181.0943f };
  			Var0.f_3 = "apa_v_mp_stilts_a";
  			Var0.f_4 = "apa_v_mp_stilts_a (5)";
  			break;
  		
  		case 54:
  			Var0 = { -571.4039f, 655.2008f, 142.6293f };
  			Var0.f_3 = "apa_v_mp_stilts_a";
  			Var0.f_4 = "apa_v_mp_stilts_a (7)";
  			break;
  		
  		case 55:
  			Var0 = { -742.2565f, 587.6547f, 143.0577f };
  			Var0.f_3 = "apa_v_mp_stilts_a";
  			Var0.f_4 = "apa_v_mp_stilts_a (8)";
  			break;
  		
  		case 56:
  			Var0 = { -857.2222f, 685.051f, 149.6502f };
  			Var0.f_3 = "apa_v_mp_stilts_a";
  			Var0.f_4 = "apa_v_mp_stilts_a (10)";
  			break;
  		
  		case 57:
  			Var0 = { -1287.65f, 443.2707f, 94.6919f };
  			Var0.f_3 = "apa_v_mp_stilts_a";
  			Var0.f_4 = "apa_v_mp_stilts_a (12)";
  			break;
  		
  		case 58:
  			Var0 = { 374.2012f, 416.9688f, 142.5991f };
  			Var0.f_3 = "apa_v_mp_stilts_a";
  			Var0.f_4 = "apa_v_mp_stilts_a (13)";
  			break;
  		
  		case 45:
  			Var0 = { -16.29585f, -684.0385f, 33.50832f };
  			Var0.f_3 = "dt1_03_carpark";
  			Var0.f_4 = "dt1_03_carpark";
  			break;
  		
  		case 46:
  			Var0 = { 341.1f, -1000f, -99.2f };
  			Var0.f_3 = "v_apart_midspaz";
  			Var0.f_4 = "v_apart_midspaz";
  			break;
  		
  		case 47:
  			Var0 = { 199.9716f, -1018.954f, -100f };
  			Var0.f_3 = "v_garagem_sp";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 48:
  			Var0 = { -1388.001f, -618.4197f, 30.8196f };
  			Var0.f_3 = "v_bahama";
  			Var0.f_4 = Var0.f_3;
  			break;
  	}
  	switch (iParam0)
  	{
  		case 59:
  			Var0 = { -787.7805f, 334.9232f, 215.8384f };
  			Var0.f_3 = "apa_v_mp_h_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 60:
  			Var0 = { -787.7805f, 334.9232f, 215.8384f };
  			Var0.f_3 = "apa_v_mp_h_02";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 61:
  			Var0 = { -787.7805f, 334.9232f, 215.8384f };
  			Var0.f_3 = "apa_v_mp_h_03";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 62:
  			Var0 = { -787.7805f, 334.9232f, 215.8384f };
  			Var0.f_3 = "apa_v_mp_h_04";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 63:
  			Var0 = { -787.7805f, 334.9232f, 215.8384f };
  			Var0.f_3 = "apa_v_mp_h_05";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 64:
  			Var0 = { -787.7805f, 334.9232f, 215.8384f };
  			Var0.f_3 = "apa_v_mp_h_06";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 65:
  			Var0 = { -787.7805f, 334.9232f, 215.8384f };
  			Var0.f_3 = "apa_v_mp_h_07";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 66:
  			Var0 = { -787.7805f, 334.9232f, 215.8384f };
  			Var0.f_3 = "apa_v_mp_h_08";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 67:
  			Var0 = { -773.2258f, 322.8252f, 194.8862f };
  			Var0.f_3 = "apa_v_mp_h_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 68:
  			Var0 = { -773.2258f, 322.8252f, 194.8862f };
  			Var0.f_3 = "apa_v_mp_h_02";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 69:
  			Var0 = { -773.2258f, 322.8252f, 194.8862f };
  			Var0.f_3 = "apa_v_mp_h_03";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 70:
  			Var0 = { -773.2258f, 322.8252f, 194.8862f };
  			Var0.f_3 = "apa_v_mp_h_04";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 71:
  			Var0 = { -773.2258f, 322.8252f, 194.8862f };
  			Var0.f_3 = "apa_v_mp_h_05";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 72:
  			Var0 = { -773.2258f, 322.8252f, 194.8862f };
  			Var0.f_3 = "apa_v_mp_h_06";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 73:
  			Var0 = { -773.2258f, 322.8252f, 194.8862f };
  			Var0.f_3 = "apa_v_mp_h_07";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 74:
  			Var0 = { -773.2258f, 322.8252f, 194.8862f };
  			Var0.f_3 = "apa_v_mp_h_08";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 75:
  			Var0 = { -787.7805f, 334.9232f, 186.1134f };
  			Var0.f_3 = "apa_v_mp_h_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 76:
  			Var0 = { -787.7805f, 334.9232f, 186.1134f };
  			Var0.f_3 = "apa_v_mp_h_02";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 77:
  			Var0 = { -787.7805f, 334.9232f, 186.1134f };
  			Var0.f_3 = "apa_v_mp_h_03";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 78:
  			Var0 = { -787.7805f, 334.9232f, 186.1134f };
  			Var0.f_3 = "apa_v_mp_h_04";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			Var0 = { -787.7805f, 334.9232f, 186.1134f };
  			Var0.f_3 = "apa_v_mp_h_05";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 80:
  			Var0 = { -787.7805f, 334.9232f, 186.1134f };
  			Var0.f_3 = "apa_v_mp_h_06";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 81:
  			Var0 = { -787.7805f, 334.9232f, 186.1134f };
  			Var0.f_3 = "apa_v_mp_h_07";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 82:
  			Var0 = { -787.7805f, 334.9232f, 186.1134f };
  			Var0.f_3 = "apa_v_mp_h_08";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 83:
  			Var1 = { func_462(87, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 84:
  			Var1 = { func_462(87, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 85:
  			Var1 = { func_462(87, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 86:
  			Var1 = { func_462(87, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 87:
  			Var1 = { func_462(87, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 88:
  			Var1 = { func_462(87, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 89:
  			Var1 = { func_462(87, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 90:
  			Var1 = { func_462(87, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 91:
  			Var1 = { func_462(87, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 92:
  			Var1 = { func_462(88, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 93:
  			Var1 = { func_462(88, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 94:
  			Var1 = { func_462(88, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 95:
  			Var1 = { func_462(88, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 96:
  			Var1 = { func_462(88, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 97:
  			Var1 = { func_462(88, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 98:
  			Var1 = { func_462(88, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 99:
  			Var1 = { func_462(88, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 100:
  			Var1 = { func_462(88, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 101:
  			Var1 = { func_462(89, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 102:
  			Var1 = { func_462(89, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 103:
  			Var1 = { func_462(89, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 104:
  			Var1 = { func_462(89, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 105:
  			Var1 = { func_462(89, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 106:
  			Var1 = { func_462(89, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 107:
  			Var1 = { func_462(89, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 108:
  			Var1 = { func_462(89, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 109:
  			Var1 = { func_462(89, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 110:
  			Var1 = { func_462(90, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 111:
  			Var1 = { func_462(90, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 112:
  			Var1 = { func_462(90, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_01c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 113:
  			Var1 = { func_462(90, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 114:
  			Var1 = { func_462(90, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 115:
  			Var1 = { func_462(90, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_02c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 116:
  			Var1 = { func_462(90, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03a_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 117:
  			Var1 = { func_462(90, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03b_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 118:
  			Var1 = { func_462(90, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "ex_int_office_03c_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 119:
  			Var1 = { func_462(91, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "bkr_biker_dlc_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 120:
  			Var1 = { func_462(97, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "bkr_biker_dlc_int_02";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 121:
  			Var1 = { func_462(103, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 122:
  			Var1 = { func_462(104, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 123:
  			Var1 = { func_462(105, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 124:
  			Var1 = { func_462(106, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 125:
  			Var1 = { func_462(107, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 126:
  			Var1 = { func_462(108, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 127:
  			Var1 = { func_462(109, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 128:
  			Var1 = { func_462(110, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 129:
  			Var1 = { func_462(111, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 130:
  			Var1 = { func_462(112, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 131:
  			Var1 = { func_462(113, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 132:
  			Var1 = { func_462(114, 0) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_impexp_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 133:
  			Var1 = { func_462(103, 1) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_imptexp_mod_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 134:
  			Var1 = { func_462(106, 1) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_imptexp_mod_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 135:
  			Var1 = { func_462(109, 1) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_imptexp_mod_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 136:
  			Var1 = { func_462(112, 1) };
  			Var0 = { Var1 + Vector(1f, 0f, 0f) };
  			Var0.f_3 = "imp_imptexp_mod_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 137:
  			Var0 = { 938.3077f, -3196.112f, -100f };
  			Var0.f_3 = "gr_grdlc_int_02";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 138:
  			Var0 = { 512.5f, 4852f, -62.6f };
  			Var0.f_3 = "xm_x17dlc_int_sub";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 139:
  			Var0 = { 2047f, 2942f, -61.9f };
  			Var0.f_3 = "xm_x17dlc_int_facility";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 140:
  			Var0 = { -1047.6f, -232.3503f, 38.0135f };
  			Var0.f_3 = "v_faceoffice";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 22:
  			Var0 = { 1100f, -2004f, 37f };
  			Var0.f_3 = "v_foundry";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 141:
  			Var0 = { 361f, 6306f, -159f };
  			Var0.f_3 = "xm_x17dlc_int_silo_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 142:
  			Var0 = { 305f, 6298f, -160f };
  			Var0.f_3 = "xm_x17dlc_int_silo_02";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 143:
  			Var0 = { 244f, 6163f, -159f };
  			Var0.f_3 = "xm_x17dlc_int_lab";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 144:
  			Var0 = { 2168f, 2920f, -84f };
  			Var0.f_3 = "xm_x17dlc_int_facility2";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 145:
  			Var0 = { 446f, 5922f, -158f };
  			Var0.f_3 = "xm_x17dlc_int_bse_tun";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 146:
  			Var0 = { 252f, 5972f, -156f };
  			Var0.f_3 = "xm_x17dlc_int_base_loop";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 147:
  			Var0 = { 682f, 5959f, -152f };
  			Var0.f_3 = "xm_x17dlc_int_base_ent";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 148:
  			Var0 = { 551f, 5939f, -158f };
  			Var0.f_3 = "xm_x17dlc_int_base";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 149:
  			Var0 = { 520.0001f, 4750f, -70f };
  			Var0.f_3 = "xm_x17dlc_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 150:
  			Var0 = { -1266.802f, -3014.849f, -49.4903f };
  			Var0.f_3 = "sm_smugdlc_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 151:
  			Var0 = { 974.9203f, -3000.065f, -40.647f };
  			Var0.f_3 = "imp_impexp_intwaremed";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 152:
  			Var0 = { 969.5376f, -3000.411f, -48.647f };
  			Var0.f_3 = "imp_impexp_int_02";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 153:
  			Var0 = { 1094.997f, -3100.012f, -39.9999f };
  			Var0.f_3 = "ex_int_warehouse_s_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 154:
  			Var0 = { 1059.995f, -3100f, -39.9999f };
  			Var0.f_3 = "ex_int_warehouse_m_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 155:
  			Var0 = { 1010.008f, -3100f, -39.9999f };
  			Var0.f_3 = "ex_int_warehouse_l_dlc";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 156:
  			Var0 = { 372.6707f, 405.5235f, 144.5326f };
  			Var0.f_3 = "apa_v_mp_stilts_a";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 157:
  			Var0 = { -282.0588f, -955.17f, 85.3036f };
  			Var0.f_3 = "hei_dlc_apart_high_new";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 158:
  			Var0 = { 342.7946f, -997.4225f, -99.7444f };
  			Var0.f_3 = "v_apart_midspaz";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 159:
  			Var0 = { 260.3268f, -997.4298f, -100.0086f };
  			Var0.f_3 = "v_studio_lo";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 160:
  			Var0 = { 108.2369f, -753.5364f, 233.1523f };
  			Var0.f_3 = "v_fib01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 161:
  			Var0 = { 135.3226f, -746.3677f, 253.1523f };
  			Var0.f_3 = "v_fib03";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 162:
  			Var0 = { 108.2572f, -753.5342f, 44.7548f };
  			Var0.f_3 = "v_office_lobby";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 163:
  			Var0 = { 228.6161f, -992.053f, -99.9999f };
  			Var0.f_3 = "heist_dlc_garage_high_new";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 164:
  			Var0 = { 199.9716f, -999.6678f, -100f };
  			Var0.f_3 = "v_garagem";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 165:
  			Var0 = { 173.1165f, -1003.28f, -99.9999f };
  			Var0.f_3 = "v_garages";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 166:
  			Var0 = { 575f, 4750f, -60f };
  			Var0.f_3 = "xm_v_apart_midspaz";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 167:
  			Var0 = { 600f, 4750f, -60f };
  			Var0.f_3 = "xm_v_studio_lo";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 168:
  			Var0 = { 630f, 4750f, -60f };
  			Var0.f_3 = "xm_v_garagem";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 169:
  			Var0 = { 1257f, 4796.7f, -39.1f };
  			Var0.f_3 = "xm_x17dlc_int_tun_entry";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 170:
  			Var0 = { 694.4f, 5898.9f, -152.3f };
  			Var0.f_3 = "xm_x17dlc_int_tun_straight";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 171:
  			Var0 = { 1121.8f, 5516.3f, -101.3f };
  			Var0.f_3 = "xm_x17dlc_int_tun_straight";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 172:
  			Var0 = { 1279.6f, 5233.2f, -80.3f };
  			Var0.f_3 = "xm_x17dlc_int_tun_straight";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 173:
  			Var0 = { 1158.6f, 5467.1f, -101.3f };
  			Var0.f_3 = "xm_x17dlc_int_tun_slope_flat";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 174:
  			Var0 = { 705.9f, 5838.5f, -152.3f };
  			Var0.f_3 = "xm_x17dlc_int_tun_slope_flat";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 175:
  			Var0 = { 1316.5f, 5184f, -80.3f };
  			Var0.f_3 = "xm_x17dlc_int_tun_slope_flat";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 176:
  			Var0 = { 1248f, 5276.1f, -80.3f };
  			Var0.f_3 = "xm_x17dlc_int_tun_flat_slope";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 177:
  			Var0 = { 1090.2f, 5559.2f, -101.3f };
  			Var0.f_3 = "xm_x17dlc_int_tun_flat_slope";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 178:
  			Var0 = { 1261f, 4808.6f, -39.3f };
  			Var0.f_3 = "xm_x17dlc_int_tun_flat_slope";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 179:
  			Var0 = { 721.8f, 5781.4f, -146.7f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_r";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 180:
  			Var0 = { 780.8f, 5703.4f, -136.7f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_r";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 181:
  			Var0 = { 868.1f, 5659.2f, -126.7f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_r";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 182:
  			Var0 = { 1218.2f, 5321.2f, -85.7f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_r";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 183:
  			Var0 = { 1278.5f, 4859.7f, -44.7f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_r";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 184:
  			Var0 = { 1187.2f, 5419.8f, -96.4f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 185:
  			Var0 = { 1344.7f, 5136.4f, -75.4f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 186:
  			Var0 = { 1363.4f, 5039.5f, -65.4f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 187:
  			Var0 = { 1049.3f, 5602.1f, -107.4f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 188:
  			Var0 = { 1337.8f, 4944.3f, -55.4f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 189:
  			Var0 = { 961.5f, 5646.9f, -117.4f };
  			Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 190:
  			Var0 = { 345.0041f, 4842.001f, -59.9997f };
  			Var0.f_3 = "xm_x17dlc_int_02";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 191:
  			Var0 = { 279.9322f, -1337.49f, 23.7419f };
  			Var0.f_3 = "v_coroner";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 192:
  			Var0 = { -1604.664f, -3012.583f, -79.9999f };
  			Var0.f_3 = "ba_dlc_int_01_ba";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 193:
  			Var0 = { -1505.783f, -3012.587f, -79.9999f };
  			Var0.f_3 = "ba_dlc_int_02_ba";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 194:
  			Var0 = { -630.4205f, -236.7843f, 37.057f };
  			Var0.f_3 = "V_JEWEL2";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 195:
  			Var0 = { 2800f, -3800f, 100f };
  			Var0.f_3 = "xs_x18_int_01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 196:
  			Var0 = { 2800f, -3942f, 182.5f };
  			Var0.f_3 = "xs_arena_vip";
  			Var0.f_4 = Var0.f_3;
  			break;
  			break;
  		
  		case 197:
  			Var0 = { 1049.6f, -3196.6f, -38.5f };
  			Var0.f_3 = "bkr_biker_dlc_int_ware02";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 198:
  			Var0 = { 1093.6f, -3196.6f, -38.5f };
  			Var0.f_3 = "bkr_biker_dlc_int_ware03";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 199:
  			Var0 = { 1009.5f, -3196.6f, -38.5f };
  			Var0.f_3 = "bkr_biker_dlc_int_ware01";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 200:
  			Var0 = { 1100f, 245f, -49f };
  			Var0.f_3 = "vw_dlc_casino_main";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 201:
  			Var0 = { 1380f, 200f, -50f };
  			Var0.f_3 = "vw_dlc_casino_carpark";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 202:
  			Var0 = { 976.6364f, 70.29476f, 115.1641f };
  			Var0.f_3 = "vw_dlc_casino_apart";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 203:
  			Var0 = { 1295f, 230f, -50f };
  			Var0.f_3 = "vw_dlc_casino_garage";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 204:
  			Var0 = { 2479.3f, -273.9f, -58f };
  			Var0.f_3 = "ch_DLC_Casino_Heist";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 205:
  			Var0 = { 2730f, -380f, -49f };
  			Var0.f_3 = "ch_DLC_Arcade";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 206:
  			Var0 = { 2800f, -380f, -48.5f };
  			Var0.f_3 = "ch_DLC_Plan";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 207:
  			Var0 = { 2497.7f, -312.8f, -69.9f };
  			Var0.f_3 = "ch_DLC_Tunnel";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 208:
  			Var0 = { 2523.4f, -270f, -58.7f };
  			Var0.f_3 = "ch_DLC_Casino_Back";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 209:
  			Var0 = { 2504.4f, -257.2f, -39.1f };
  			Var0.f_3 = "ch_DLC_Casino_Hotel";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 210:
  			Var0 = { 2554f, -281.4f, -64.7f };
  			Var0.f_3 = "ch_DLC_Casino_Loading";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 211:
  			Var0 = { 2488.3f, -267.4f, -70.6f };
  			Var0.f_3 = "ch_DLC_Casino_Vault";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 212:
  			Var0 = { 2519.9f, -255.3f, -24.1f };
  			Var0.f_3 = "ch_DLC_Casino_Utility";
  			Var0.f_4 = Var0.f_3;
  			break;
  		
  		case 213:
  			Var0 = { 2572.9f, -253.4f, -64.7f };
  			Var0.f_3 = "ch_dlc_casino_shaft";
  			Var0.f_4 = Var0.f_3;
  			break;
  			return Var0;
  	}
  }
  
  struct<6> func_462(int iParam0, bool bParam1)
  {
  	struct<6> Var0;
  	
  	switch (iParam0)
  	{
  		case -1:
  			Var0 = { -794.9184f, 339.6266f, 200.4135f };
  			Var0.f_3 = { 0f, 0f, 180f };
  			break;
  		
  		case 1:
  			Var0 = { -794.9184f, 339.6266f, 200.4135f };
  			Var0.f_3 = { 0f, 0f, 180f };
  			break;
  		
  		case 2:
  			Var0 = { -761.0982f, 317.6259f, 169.5963f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 3:
  			Var0 = { -761.1888f, 317.6295f, 216.0503f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 4:
  			Var0 = { -795.3856f, 340.0188f, 152.7941f };
  			Var0.f_3 = { 0f, 0f, 180f };
  			break;
  		
  		case 61:
  			Var0 = { -778.5056f, 332.3779f, 212.1968f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 5:
  			Var0 = { -258.1807f, -950.6853f, 70.0239f };
  			Var0.f_3 = { 0f, 0f, 70f };
  			break;
  		
  		case 6:
  			Var0 = { -285.0051f, -957.6552f, 85.3035f };
  			Var0.f_3 = { 0f, 0f, -110f };
  			break;
  		
  		case 7:
  			Var0 = { -1471.882f, -530.7484f, 62.34918f };
  			Var0.f_3 = { 0f, 0f, -145f };
  			break;
  		
  		case 34:
  			Var0 = { -1471.882f, -530.7484f, 49.72156f };
  			Var0.f_3 = { 0f, 0f, -145f };
  			break;
  		
  		case 62:
  			Var0 = { -1463.15f, -540.2369f, 74.2439f };
  			Var0.f_3 = { 0f, 0f, -145f };
  			break;
  		
  		case 35:
  			Var0 = { -885.3702f, -451.4775f, 119.327f };
  			Var0.f_3 = { 0f, 0f, 27.55617f };
  			break;
  		
  		case 36:
  			Var0 = { -913.0385f, -438.4284f, 114.3997f };
  			Var0.f_3 = { 0f, 0f, -153.3093f };
  			break;
  		
  		case 37:
  			Var0 = { -892.5499f, -430.4789f, 88.25368f };
  			Var0.f_3 = { 0f, 0f, 116.9193f };
  			break;
  		
  		case 38:
  			Var0 = { -35.0462f, -576.317f, 82.90739f };
  			Var0.f_3 = { 0f, 0f, 160f };
  			break;
  		
  		case 39:
  			Var0 = { -10.3788f, -590.7431f, 93.02542f };
  			Var0.f_3 = { 0f, 0f, 70f };
  			break;
  		
  		case 65:
  			Var0 = { -22.2487f, -589.1461f, 80.2305f };
  			Var0.f_3 = { 0f, 0f, 69.88f };
  			break;
  		
  		case 40:
  			Var0 = { -900.6311f, -376.7462f, 78.27306f };
  			Var0.f_3 = { 0f, 0f, 26.92611f };
  			break;
  		
  		case 41:
  			Var0 = { -929.483f, -374.5104f, 102.2329f };
  			Var0.f_3 = { 0f, 0f, -152.5531f };
  			break;
  		
  		case 63:
  			Var0 = { -914.4202f, -375.8189f, 114.4743f };
  			Var0.f_3 = { 0f, 0f, -63f };
  			break;
  		
  		case 42:
  			Var0 = { -617.1647f, 64.6042f, 100.8196f };
  			Var0.f_3 = { 0f, 0f, 180f };
  			break;
  		
  		case 43:
  			Var0 = { -584.2015f, 42.7133f, 86.4187f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 64:
  			Var0 = { -609.5665f, 50.2203f, 98.3998f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 73:
  			Var0 = { -171.3969f, 494.2671f, 134.4935f };
  			Var0.f_3 = { 0f, 0f, 11f };
  			break;
  		
  		case 74:
  			Var0 = { 339.4982f, 434.0887f, 146.2206f };
  			Var0.f_3 = { 0f, 0f, -63.5f };
  			break;
  		
  		case 75:
  			Var0 = { -761.3884f, 615.7333f, 140.9805f };
  			Var0.f_3 = { 0f, 0f, -71.5f };
  			break;
  		
  		case 76:
  			Var0 = { -678.1752f, 591.0076f, 142.2196f };
  			Var0.f_3 = { 0f, 0f, 40.5f };
  			break;
  		
  		case 77:
  			Var0 = { 120.0541f, 553.793f, 181.0943f };
  			Var0.f_3 = { 0f, 0f, 6f };
  			break;
  		
  		case 78:
  			Var0 = { -571.4039f, 655.2008f, 142.6293f };
  			Var0.f_3 = { 0f, 0f, -14.5f };
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			Var0 = { -742.2565f, 587.6547f, 143.0577f };
  			Var0.f_3 = { 0f, 0f, -29f };
  			break;
  		
  		case 80:
  			Var0 = { -857.2222f, 685.051f, 149.6502f };
  			Var0.f_3 = { 0f, 0f, 4.5f };
  			break;
  		
  		case 81:
  			Var0 = { -1287.65f, 443.2707f, 94.6919f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 82:
  			Var0 = { 374.2012f, 416.9688f, 142.6977f };
  			Var0.f_3 = { 0f, 0f, -14f };
  			break;
  		
  		case 83:
  			Var0 = { -787.7805f, 334.9232f, 186.1134f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 84:
  			Var0 = { -787.7805f, 334.9232f, 215.8384f };
  			Var0.f_3 = { 0f, 0f, 90f };
  			break;
  		
  		case 85:
  			Var0 = { -773.2258f, 322.8252f, 194.8862f };
  			Var0.f_3 = { 0f, 0f, -90f };
  			break;
  		
  		case 86:
  			Var0 = { -1573.098f, -4085.806f, 9.7851f };
  			Var0.f_3 = { 0f, 0f, 162f };
  			break;
  		
  		case 8:
  		case 9:
  		case 10:
  		case 11:
  		case 12:
  		case 13:
  		case 14:
  		case 15:
  		case 16:
  		case 66:
  		case 67:
  		case 68:
  		case 69:
  			Var0 = { 342.8157f, -997.4288f, -100f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 17:
  		case 18:
  		case 19:
  		case 20:
  		case 21:
  		case 22:
  		case 23:
  		case 70:
  		case 71:
  		case 72:
  			Var0 = { 260.3297f, -997.4288f, -100f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 87:
  			Var0 = { -1572.187f, -570.8315f, 109.9879f };
  			Var0.f_3 = { 0f, 0f, -54f };
  			break;
  		
  		case 88:
  			Var0 = { -1383.954f, -476.7112f, 73.507f };
  			Var0.f_3 = { 0f, 0f, 8f };
  			break;
  		
  		case 89:
  			Var0 = { -138.0029f, -629.739f, 170.2854f };
  			Var0.f_3 = { 0f, 0f, -84f };
  			break;
  		
  		case 90:
  			Var0 = { -74.8895f, -817.6883f, 244.8508f };
  			Var0.f_3 = { 0f, 0f, 70f };
  			break;
  		
  		case 91:
  		case 92:
  		case 93:
  		case 94:
  		case 95:
  		case 96:
  			Var0 = { 1100.764f, -3159.384f, -34.9342f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 97:
  		case 98:
  		case 99:
  		case 100:
  		case 101:
  		case 102:
  			Var0 = { 1005.806f, -3157.67f, -36.0897f };
  			Var0.f_3 = { 0f, 0f, 0f };
  			break;
  		
  		case 103:
  			if (!bParam1)
  			{
  				Var0 = { -1576.571f, -569.7595f, 85.5f };
  				Var0.f_3 = { 0f, 0f, 36.1f };
  			}
  			else
  			{
  				Var0 = { -1578.022f, -576.4251f, 104.2f };
  				Var0.f_3 = { 0f, 0f, -144.04f };
  			}
  			break;
  		
  		case 104:
  			if (!bParam1)
  			{
  				Var0 = { -1571.254f, -566.5865f, 85.5f };
  				Var0.f_3 = { 0f, 0f, -53.9f };
  			}
  			else
  			{
  				Var0 = { -1578.022f, -576.4251f, 104.2f };
  				Var0.f_3 = { 0f, 0f, -144.04f };
  			}
  			break;
  		
  		case 105:
  			if (!bParam1)
  			{
  				Var0 = { -1568.098f, -571.9171f, 85.5f };
  				Var0.f_3 = { 0f, 0f, -143.9f };
  			}
  			else
  			{
  				Var0 = { -1578.022f, -576.4251f, 104.2f };
  				Var0.f_3 = { 0f, 0f, -144.04f };
  			}
  			break;
  		
  		case 106:
  			if (!bParam1)
  			{
  				Var0 = { -1384.518f, -475.8657f, 56.1f };
  				Var0.f_3 = { 0f, 0f, 98.7f };
  			}
  			else
  			{
  				Var0 = { -1391.245f, -473.9638f, 77.2f };
  				Var0.f_3 = { 0f, 0f, 98.86f };
  			}
  			break;
  		
  		case 107:
  			if (!bParam1)
  			{
  				Var0 = { -1384.538f, -475.8829f, 48.1f };
  				Var0.f_3 = { 0f, 0f, 98.7f };
  			}
  			else
  			{
  				Var0 = { -1391.245f, -473.9638f, 77.2f };
  				Var0.f_3 = { 0f, 0f, 98.86f };
  			}
  			break;
  		
  		case 108:
  			if (!bParam1)
  			{
  				Var0 = { -1378.994f, -477.2481f, 56.1f };
  				Var0.f_3 = { 0f, 0f, -81.1f };
  			}
  			else
  			{
  				Var0 = { -1391.245f, -473.9638f, 77.2f };
  				Var0.f_3 = { 0f, 0f, 98.86f };
  			}
  			break;
  		
  		case 109:
  			if (!bParam1)
  			{
  				Var0 = { -186.5683f, -576.4624f, 135f };
  				Var0.f_3 = { 0f, 0f, 96.16f };
  			}
  			else
  			{
  				Var0 = { -146.6167f, -596.6301f, 166f };
  				Var0.f_3 = { 0f, 0f, -140f };
  			}
  			break;
  		
  		case 110:
  			if (!bParam1)
  			{
  				Var0 = { -113.886f, -564.3862f, 135f };
  				Var0.f_3 = { 0f, 0f, 110.96f };
  			}
  			else
  			{
  				Var0 = { -146.6167f, -596.6301f, 166f };
  				Var0.f_3 = { 0f, 0f, -140f };
  			}
  			break;
  		
  		case 111:
  			if (!bParam1)
  			{
  				Var0 = { -134.6568f, -635.1774f, 135f };
  				Var0.f_3 = { 0f, 0f, -9.04f };
  			}
  			else
  			{
  				Var0 = { -146.6167f, -596.6301f, 166f };
  				Var0.f_3 = { 0f, 0f, -140f };
  			}
  			break;
  		
  		case 112:
  			if (!bParam1)
  			{
  				Var0 = { -79.0479f, -822.6393f, 221f };
  				Var0.f_3 = { 0f, 0f, 70f };
  			}
  			else
  			{
  				Var0 = { -73.904f, -821.6204f, 284f };
  				Var0.f_3 = { 0f, 0f, -110f };
  			}
  			break;
  		
  		case 113:
  			if (!bParam1)
  			{
  				Var0 = { -70.3086f, -819.5784f, 221f };
  				Var0.f_3 = { 0f, 0f, 160f };
  			}
  			else
  			{
  				Var0 = { -73.904f, -821.6204f, 284f };
  				Var0.f_3 = { 0f, 0f, -110f };
  			}
  			break;
  		
  		case 114:
  			if (!bParam1)
  			{
  				Var0 = { -79.9861f, -818.425f, 221f };
  				Var0.f_3 = { 0f, 0f, -20f };
  			}
  			else
  			{
  				Var0 = { -73.904f, -821.6204f, 284f };
  				Var0.f_3 = { 0f, 0f, -110f };
  			}
  			break;
  	}
  	return Var0;
  }
  
  void func_463(int iParam0, int iParam1)
  {
  	if (iParam0 == 146 || iParam0 == -1)
  	{
  		return;
  	}
  	if (Global_111858.f_9081.f_99.f_58[iParam0] == iParam1)
  	{
  		return;
  	}
  	Global_111858.f_9081.f_99.f_58[iParam0] = iParam1;
  }
  
  int func_464(var uParam0)
  {
  	int iVar0[1];
  	int iVar1;
  	bool bVar2;
  	
  	iVar0[0] = joaat("bison");
  	switch (iLocal_51)
  	{
  		case 0:
  			uParam0->f_16 = 3;
  			uParam0->f_17[0 /*3*/] = { -1626.97f, 4205.64f, 83.01f };
  			uParam0->f_15 = 17f;
  			uParam0->f_27 = 0;
  			uParam0->f_26 = 1;
  			StringCopy(&(uParam0->f_9), "EP_1_RCM_Concat", 24);
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x78FCB2E22C41B9D5(iVar0[iVar1]);
  				iVar1++;
  			}
  			iLocal_51 = 1;
  			break;
  		
  		case 1:
  			if (!func_442(&iVar0))
  			{
  				return 0;
  			}
  			iLocal_51 = 2;
  			break;
  		
  		case 2:
  			bVar2 = true;
  			if (!unk_0xAE06B9E39EBDE049(uParam0->f_35[0]))
  			{
  				func_440(&(uParam0->f_35[0]), iVar0[0], -1619.53f, 4204.1f, 83.3f, 77.92f);
  				if (unk_0xAE06B9E39EBDE049(uParam0->f_35[0]))
  				{
  					unk_0x5DC21979EC6C531F(uParam0->f_35[0], 2);
  					unk_0x38633C69DE516059(uParam0->f_35[0], 27, 27);
  					unk_0x410A1E7AD7D5C774(iVar0[0], 1);
  					unk_0xB11D151E210D4FAC(uParam0->f_35[0], 1084227584);
  				}
  				else
  				{
  					bVar2 = false;
  				}
  			}
  			if (bVar2)
  			{
  				iLocal_51 = 3;
  			}
  			break;
  		
  		case 3:
  			unk_0xAE69C36EF3578E39("AZ_EPSILONISM_01_HILLS", 1, 0);
  			iVar1 = 0;
  			while (iVar1 <= (iVar0 - 1))
  			{
  				unk_0x74528AC0906CBABE(iVar0[iVar1]);
  				iVar1++;
  			}
  			return 1;
  			break;
  	}
  	return 0;
  }
  
  int func_465(int iParam0)
  {
  	struct<27> Var0;
  	int iVar1;
  	
  	func_110(iParam0, &Var0);
  	iVar1 = func_105();
  	if (iVar1 == 145)
  	{
  		return 1;
  	}
  	else if ((iVar1 != 1 && iVar1 != 0) && iVar1 != 2)
  	{
  		return 1;
  	}
  	if (!unk_0xCE990E643CD9D0E5(Var0.f_26, iVar1))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_466(int iParam0)
  {
  	char* sVar0;
  	
  	if (Global_76833)
  	{
  		func_494("STEP_3_COMMON_CanRCLaunch - Script denied. Multiplayer is running [TERMINATING]");
  		return 0;
  	}
  	if (!Global_111858.f_9081 && !func_108(1))
  	{
  		func_494("STEP_3_COMMON_CanRCLaunch - Script denied, game flow is not active");
  		return 0;
  	}
  	if (!func_467(iParam0))
  	{
  		Global_110945[iParam0 /*10*/].f_1 = 1;
  		func_494("STEP_3_COMMON_CanRCLaunch - Script denied by RC Controller [TERMINATING]");
  		return 0;
  	}
  	if (Global_98955.f_11 == 6)
  	{
  		if (Global_98955 < 9)
  		{
  			func_110(iParam0, &sVar0);
  			if (unk_0xF005CCA4263DF67F(&(Global_98955.f_3), sVar0))
  			{
  				func_494("STEP_3_COMMON_CanRCLaunch - Script denied as a replay for this RC is being configured. [TERMINATING]");
  				return 0;
  			}
  		}
  	}
  	if (unk_0x7B70881748D166CD(joaat("candidate_controller")) == 0)
  	{
  		Global_110945[iParam0 /*10*/].f_1 = 1;
  		func_494("STEP_3_COMMON_CanRCLaunch - Script denied as candidate_controller is not running. [TERMINATING]");
  		return 0;
  	}
  	return 1;
  }
  
  int func_467(int iParam0)
  {
  	var uVar0;
  	
  	func_110(iParam0, &uVar0);
  	if (!func_159(4))
  	{
  		if (func_428(iParam0))
  		{
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	if (func_427() && !func_426())
  	{
  		return 0;
  	}
  	if (func_473(iParam0))
  	{
  		return 0;
  	}
  	if (iParam0 == -1)
  	{
  		iParam0 = func_162();
  	}
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	if (!func_430(iParam0))
  	{
  		if (!func_472(iParam0))
  		{
  			return 0;
  		}
  		if (!func_471(iParam0))
  		{
  			return 0;
  		}
  		if (func_470(iParam0))
  		{
  			return 0;
  		}
  	}
  	if (iParam0 == 58)
  	{
  		if (func_468(5))
  		{
  			Global_110945[iParam0 /*10*/].f_3 = 0;
  		}
  	}
  	if (Global_110945[iParam0 /*10*/].f_3 == 1)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_468(int iParam0)
  {
  	int iVar0;
  	char* sVar1;
  	int iVar2;
  	
  	if (Global_99007.f_349 == 0)
  	{
  		return 0;
  	}
  	if (iParam0 == 10)
  	{
  		iVar0 = 0;
  		while (iVar0 < 10)
  		{
  			if (func_468(iVar0))
  			{
  				return 1;
  			}
  			iVar0++;
  		}
  	}
  	else if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  	{
  		func_469(iParam0, &sVar1);
  		iVar2 = unk_0xC519B5898C2310B1(Global_93993[iParam0 /*10*/].f_3, &sVar1);
  		if (iVar2 != 0 && Global_99007.f_349 == iVar2)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  bool func_469(int iParam0, char* sParam1)
  {
  	StringCopy(sParam1, "", 32);
  	switch (iParam0)
  	{
  		case 0:
  			StringCopy(sParam1, "v_michael", 32);
  			break;
  		
  		case 5:
  			StringCopy(sParam1, "v_franklins", 32);
  			break;
  		
  		case 6:
  			StringCopy(sParam1, "v_franklinshouse", 32);
  			break;
  		
  		case 2:
  		case 1:
  			if (unk_0xF1E6A9807E4F24AD("TrevorsTrailer"))
  			{
  				StringCopy(sParam1, "v_trailer", 32);
  			}
  			else if (unk_0xF1E6A9807E4F24AD("TrevorsTrailerTidy"))
  			{
  				StringCopy(sParam1, "V_TrailerTIDY", 32);
  			}
  			else if (unk_0xF1E6A9807E4F24AD("TrevorsTrailerTrash"))
  			{
  				StringCopy(sParam1, "V_TrailerTRASH", 32);
  			}
  			break;
  		
  		case 3:
  			StringCopy(sParam1, "v_trevors", 32);
  			break;
  		
  		case 4:
  			StringCopy(sParam1, "v_strip3", 32);
  			break;
  		
  		case 8:
  		case 7:
  		case 9:
  			StringCopy(sParam1, "v_psycheoffice", 32);
  			break;
  	}
  	return !unk_0xF005CCA4263DF67F(sParam1, "");
  }
  
  bool func_470(int iParam0)
  {
  	if (iParam0 == 63 || iParam0 == -1)
  	{
  		return 0;
  	}
  	return unk_0xCE990E643CD9D0E5(Global_111858.f_18570[iParam0 /*6*/], 3);
  }
  
  bool func_471(int iParam0)
  {
  	if (iParam0 == 63 || iParam0 == -1)
  	{
  		return 0;
  	}
  	return unk_0xCE990E643CD9D0E5(Global_111858.f_18570[iParam0 /*6*/], 2);
  }
  
  bool func_472(int iParam0)
  {
  	if (iParam0 == 63 || iParam0 == -1)
  	{
  		return 0;
  	}
  	return unk_0xCE990E643CD9D0E5(Global_111858.f_18570[iParam0 /*6*/], 0);
  }
  
  int func_473(int iParam0)
  {
  	if (func_425(iParam0))
  	{
  		return 0;
  	}
  	else if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  	{
  		if (unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) != 0)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_474()
  {
  	func_494("Running end routines.");
  	Global_111576 = (Global_111576 - 1);
  }
  
  int func_475(int iParam0, int iParam1, struct<3> Param2, float fParam3)
  {
  	int iVar0;
  	
  	if (*iParam0 == 1)
  	{
  		if (func_476((*iParam0)[0], Param2, fParam3, iParam1))
  		{
  			return 1;
  		}
  	}
  	else
  	{
  		iVar0 = 0;
  		while (iVar0 < *iParam0)
  		{
  			if (func_476((*iParam0)[iVar0], Param2, fParam3, iParam1))
  			{
  				iVar0 = *iParam0;
  				return 1;
  			}
  			iVar0++;
  		}
  	}
  	func_494("DETERMINE_RC_TO_LAUNCH - Unable to find mission to launch [TERMINATING]");
  	return 0;
  }
  
  int func_476(int iParam0, struct<3> Param1, float fParam2, var uParam3)
  {
  	int iVar0;
  	struct<7> Var1;
  	
  	iVar0 = 0;
  	func_110(iParam0, &Var1);
  	if (func_477(Var1.f_6, Param1, fParam2, 0))
  	{
  		if (unk_0xCE990E643CD9D0E5(Global_111858.f_18570[iParam0 /*6*/], 0))
  		{
  			if (!unk_0xCE990E643CD9D0E5(Global_111858.f_18570[iParam0 /*6*/], 3))
  			{
  				iVar0 = 1;
  			}
  		}
  		if (func_430(iParam0))
  		{
  			iVar0 = 1;
  		}
  	}
  	if (iVar0 == 1)
  	{
  		*uParam3 = iParam0;
  		StringCopy(&(uParam3->f_1), Var1, 32);
  		return 1;
  	}
  	return 0;
  }
  
  int func_477(struct<3> Param0, struct<3> Param1, float fParam2, bool bParam3)
  {
  	if (fParam2 < 0f)
  	{
  		fParam2 = 0f;
  	}
  	if (!bParam3)
  	{
  		if (unk_0x0D77CDCF403AEBD2((Param0.x - Param1.x)) <= fParam2)
  		{
  			if (unk_0x0D77CDCF403AEBD2((Param0.f_1 - Param1.f_1)) <= fParam2)
  			{
  				if (unk_0x0D77CDCF403AEBD2((Param0.f_2 - Param1.f_2)) <= fParam2)
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	else if (unk_0x0D77CDCF403AEBD2((Param0.x - Param1.x)) <= fParam2)
  	{
  		if (unk_0x0D77CDCF403AEBD2((Param0.f_1 - Param1.f_1)) <= fParam2)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_478(int iParam0, bool bParam1)
  {
  	char* sVar0;
  	
  	if (bParam1)
  	{
  		func_494("Cleaning up launcher script entities [TERMINATING]");
  		func_483(iParam0, 0, 0, 0);
  	}
  	if (unk_0x8F678487EEBD8CE4(uLocal_226))
  	{
  		unk_0x93370FA10F15BE44(&uLocal_226);
  	}
  	if (iLocal_56 != -1)
  	{
  		func_494("SCRIPT TERMINATING: Ending off-mission cutscene request");
  		func_345(&iLocal_56);
  	}
  	if ((*iParam0 == 12 || *iParam0 == 15) || *iParam0 == 16)
  	{
  		unk_0x1E337EE68290597A(uLocal_55, 0);
  	}
  	func_482(&(iParam0->f_48));
  	switch (*iParam0)
  	{
  		case 9:
  			unk_0xAE69C36EF3578E39("AZ_EPSILONISM_01_HILLS", 0, 0);
  			break;
  		
  		case 14:
  			unk_0x1082C25039B168F8("rcmepsilonism6");
  			break;
  	}
  	switch (*iParam0)
  	{
  		case 11:
  			sVar0 = "EP3_RCM_L2";
  			break;
  		
  		case 12:
  			func_479("EPS4_AMBM");
  			sVar0 = "EPS4_AMBJ";
  			break;
  		
  		case 16:
  			func_479("EPS8_AMB1");
  			sVar0 = "EPS8_AMB2";
  			break;
  	}
  	func_479(sVar0);
  	if (bParam1)
  	{
  		func_346(*iParam0);
  	}
  	Global_7556 = 0;
  	func_474();
  	func_494("SCRIPT TERMINATED");
  	unk_0xD39E529EBE5DB04F();
  }
  
  void func_479(char* sParam0)
  {
  	if (!unk_0x7BCC91F3C1CF24E8(sParam0))
  	{
  		if (func_365(sParam0))
  		{
  			func_480();
  		}
  	}
  }
  
  void func_480()
  {
  	Global_19871 = 0;
  	func_481();
  }
  
  void func_481()
  {
  	unk_0x62B2C9892E3E142D();
  	Global_22016 = 0;
  	if (unk_0x6A5CC4A2C9D9ED8D())
  	{
  		unk_0xBE4122AC23440E7D(0);
  		Global_21005 = 6;
  	}
  }
  
  int func_482(var uParam0)
  {
  	if (func_415(uParam0))
  	{
  		if (unk_0xC614DDE265D18415(*uParam0))
  		{
  			unk_0x1082C25039B168F8(*uParam0);
  			*uParam0 = "";
  			uParam0->f_1 = "";
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_483(var uParam0, int iParam1, bool bParam2, bool bParam3)
  {
  	func_490(uParam0, iParam1);
  	func_487(uParam0, bParam2);
  	func_484(uParam0, bParam3);
  }
  
  void func_484(var uParam0, bool bParam1)
  {
  	func_485(&(uParam0->f_41), bParam1);
  }
  
  void func_485(var uParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 <= (*uParam0 - 1))
  	{
  		if (bParam1)
  		{
  			func_417(uParam0[iVar0]);
  		}
  		else
  		{
  			func_486(uParam0[iVar0], 0);
  		}
  		iVar0++;
  	}
  }
  
  void func_486(var uParam0, bool bParam1)
  {
  	if (unk_0xAE06B9E39EBDE049(*uParam0))
  	{
  		if (unk_0x8E805E09B82CCE5F(*uParam0))
  		{
  			unk_0x1F8106DB8796859F(*uParam0, 1, 1);
  		}
  		if (!bParam1)
  		{
  			unk_0x95178967C65CAD85(uParam0);
  		}
  		else
  		{
  			unk_0x274BB62CC228E22A(*uParam0);
  		}
  	}
  }
  
  void func_487(var uParam0, bool bParam1)
  {
  	func_488(&(uParam0->f_35), bParam1);
  }
  
  void func_488(var uParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 <= (*uParam0 - 1))
  	{
  		if (bParam1)
  		{
  			func_441(uParam0[iVar0]);
  		}
  		else
  		{
  			func_489(uParam0[iVar0]);
  		}
  		iVar0++;
  	}
  }
  
  void func_489(var uParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(*uParam0))
  	{
  		unk_0xA59F96B50B97E63C(*uParam0, 0);
  		if (unk_0x1758275D343D5BA3(*uParam0) && unk_0x1D2A3118784C0272(*uParam0, 1))
  		{
  			unk_0xE730EAF558C97567(uParam0);
  		}
  	}
  }
  
  void func_490(var uParam0, int iParam1)
  {
  	func_491(&(uParam0->f_28), iParam1);
  }
  
  void func_491(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 <= (*uParam0 - 1))
  	{
  		if (iParam1 == 1)
  		{
  			func_439(uParam0[iVar0]);
  		}
  		else
  		{
  			func_492(uParam0[iVar0], 0, 1, 0);
  		}
  		iVar0++;
  	}
  }
  
  void func_492(var uParam0, int iParam1, int iParam2, int iParam3)
  {
  	if (unk_0xAE06B9E39EBDE049(*uParam0))
  	{
  		if (!unk_0x5AEB5DDFFAD43CA5(*uParam0))
  		{
  			unk_0xA5EAD2ACE2C8BBB2(*uParam0, 0, 1);
  			if (iParam3 == 0)
  			{
  				unk_0x0C095242BA4786C7(*uParam0);
  			}
  			unk_0xCBA6B2B569DCAFD8(*uParam0, iParam1);
  			if (iParam2 == 1)
  			{
  				unk_0x4E65320BC9AD521C(*uParam0, 0);
  			}
  		}
  		unk_0x2481907DEE6B85EA(uParam0);
  	}
  }
  
  void func_493(var uParam0)
  {
  	if (*uParam0 == -1)
  	{
  		return;
  	}
  	if (!*uParam0 == Global_41593)
  	{
  		*uParam0 = -1;
  		return;
  	}
  	*uParam0 = -1;
  	Global_41592 = 0;
  	Global_41594 = 0;
  	Global_41631 = 15;
  	Global_61714 = 0;
  	Global_61715 = 0;
  }
  
  void func_494(char* sParam0)
  {
  	if (!unk_0x7BCC91F3C1CF24E8(sParam0))
  	{
  	}
  }
  
  void func_495(var uParam0)
  {
  	*uParam0 = -1;
  	StringCopy(&(uParam0->f_1), "", 32);
  	uParam0->f_15 = 12f;
  	uParam0->f_16 = 6;
  	uParam0->f_25 = 0;
  	uParam0->f_26 = 0;
  	uParam0->f_27 = 0;
  }
  
  void func_496()
  {
  	func_494("Running start routines.");
  	Global_111576++;
  }
  
  int func_497(int iParam0)
  {
  	if (!func_36(iParam0))
  	{
  		return func_47(iParam0);
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  