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;
  	struct<3> Local_22 = { 0, 0, 0 } ;
  	float fLocal_23 = 0f;
  	float fLocal_24 = 0f;
  	var uLocal_25 = 0;
  	var uLocal_26 = 0;
  	var uLocal_27 = 0;
  	float fLocal_28 = 0f;
  	float fLocal_29 = 0f;
  	float fLocal_30 = 0f;
  	var uLocal_31 = 0;
  	var uLocal_32 = 0;
  	int iLocal_33 = 0;
  	int iLocal_34 = 0;
  	struct<4> Local_35[10];
  	bool bLocal_36 = 0;
  	var uLocal_37 = 0;
  	var uLocal_38 = 0;
  	var uLocal_39 = 0;
  	int iLocal_40 = 0;
  	int iLocal_41 = 0;
  	var uLocal_42 = 0;
  	var uLocal_43 = 0;
  	var uLocal_44 = 0;
  	var uLocal_45 = 0;
  	var uLocal_46 = 0;
  	var uLocal_47 = 0;
  	var uLocal_48 = 0;
  	var uLocal_49 = 0;
  	var uLocal_50 = 0;
  	var uLocal_51 = 0;
  	var uLocal_52 = 0;
  	var uLocal_53 = 0;
  	struct<61> Local_54 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
  	int iLocal_55 = 0;
  	int iLocal_56 = 0;
  	int iLocal_57 = 0;
  	int iLocal_58 = 0;
  	int iLocal_59 = 0;
  	int iLocal_60 = 0;
  	int iLocal_61 = 0;
  	int iLocal_62 = 0;
  	struct<6> Local_63 = { 0, 0, 0, 0, 0, 0 } ;
  	var uLocal_64 = 0;
  	var uLocal_65 = 0;
  	int iLocal_66 = 0;
  	int iLocal_67 = 0;
  	int iLocal_68 = 0;
  	int iLocal_69 = 0;
  	int iLocal_70 = 0;
  	int iLocal_71 = 0;
  	char* sLocal_72 = NULL;
  	char* sLocal_73 = NULL;
  	int iLocal_74 = 0;
  	char* sLocal_75 = NULL;
  	int iLocal_76 = 0;
  	struct<3> Local_77 = { 0, 0, 0 } ;
  	struct<3> Local_78 = { 0, 0, 0 } ;
  	int iLocal_79 = 0;
  	int iLocal_80 = 0;
  	int iLocal_81 = 0;
  	int iLocal_82 = 0;
  	int iLocal_83 = 0;
  	struct<3> Local_84 = { 0, 0, 0 } ;
  	var uLocal_85[3] = { 0, 0, 0 };
  	struct<7> Local_86[3];
  	struct<3> Local_87 = { 0, 0, 0 } ;
  	float fLocal_88 = 0f;
  	float fLocal_89 = 0f;
  	var uLocal_90[2] = { 0, 0 };
  	struct<3> Local_91[4];
  	struct<3> Local_92[4];
  	var uLocal_93[2] = { 0, 0 };
  	struct<7> Local_94[2];
  	var uLocal_95[2] = { 0, 0 };
  	int iLocal_96 = 0;
  	int iLocal_97 = 0;
  	bool bLocal_98 = 0;
  	int iLocal_99 = 0;
  	char* sLocal_100 = NULL;
  	struct<3> Local_101 = { 0, 0, 0 } ;
  	struct<3> Local_102 = { 0, 0, 0 } ;
  	var uLocal_103 = 0;
  	var uLocal_104 = 0;
  	int iLocal_105 = 0;
  	int iLocal_106 = 0;
  	var uLocal_107 = 0;
  	struct<3> Local_108 = { 0, 0, 0 } ;
  	struct<8> Local_109 = { 2, 0, 0, 0, 0, 0, 0, 0 } ;
  	struct<8> Local_110 = { 2, 0, 0, 0, 0, 0, 0, 0 } ;
  	bool bLocal_111 = 0;
  	struct<8> Local_112[4];
  	int iLocal_113 = 0;
  	int iLocal_114 = 0;
  	var uLocal_115 = 16;
  	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;
  	var uLocal_223 = 0;
  	var uLocal_224 = 0;
  	var uLocal_225 = 0;
  	var uLocal_226 = 0;
  	var uLocal_227 = 0;
  	var uLocal_228 = 0;
  	var uLocal_229 = 0;
  	var uLocal_230 = 0;
  	var uLocal_231 = 0;
  	var uLocal_232 = 0;
  	var uLocal_233 = 0;
  	var uLocal_234 = 0;
  	var uLocal_235 = 0;
  	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 = 0;
  	var uLocal_252 = 0;
  	var uLocal_253 = 0;
  	var uLocal_254 = 0;
  	var uLocal_255 = 0;
  	var uLocal_256 = 0;
  	var uLocal_257 = 0;
  	var uLocal_258 = 0;
  	var uLocal_259 = 0;
  	var uLocal_260 = 0;
  	var uLocal_261 = 0;
  	var uLocal_262 = 0;
  	var uLocal_263 = 0;
  	var uLocal_264 = 0;
  	var uLocal_265 = 0;
  	var uLocal_266 = 0;
  	var uLocal_267 = 0;
  	var uLocal_268 = 0;
  	var uLocal_269 = 0;
  	var uLocal_270 = 0;
  	var uLocal_271 = 0;
  	var uLocal_272 = 0;
  	var uLocal_273 = 0;
  	var uLocal_274 = 0;
  	var uLocal_275 = 0;
  	var uLocal_276 = 0;
  	var uLocal_277 = 0;
  	var uLocal_278 = 0;
  	var uLocal_279 = 0;
  	int iLocal_280 = 0;
  	var uLocal_281 = 0;
  	int iLocal_282 = 0;
  	int iLocal_283 = 0;
  	int iLocal_284 = 0;
  	int iLocal_285 = 0;
  	int iLocal_286 = 0;
  	int iLocal_287 = 0;
  	int iLocal_288 = 0;
  	float fLocal_289 = 0f;
  	int iLocal_290 = 0;
  	int iLocal_291 = 0;
  	int iLocal_292 = 0;
  	int iLocal_293 = 0;
  	bool bLocal_294 = 0;
  	bool bLocal_295 = 0;
  	int iLocal_296 = 0;
  	int iLocal_297 = 0;
  	int iLocal_298 = 0;
  	bool bLocal_299 = 0;
  	int iLocal_300 = 0;
  	int iLocal_301 = 0;
  	int iLocal_302 = 0;
  	bool bLocal_303 = 0;
  	bool bLocal_304 = 0;
  	int iLocal_305 = 0;
  	int iLocal_306 = 0;
  	int iLocal_307 = 0;
  	struct<3> Local_308 = { 0, 0, 0 } ;
  	int iLocal_309 = 0;
  	bool bLocal_310 = 0;
  	var uLocal_311[4] = { 0, 0, 0, 0 };
  	int iLocal_312[2] = { 0, 0 };
  	float fLocal_313 = 0f;
  	struct<8> Local_314 = { 0, 0, 0, 0, 0, 0, 0, 0 } ;
  	int iLocal_315 = 0;
  	int iLocal_316 = 0;
  	int iLocal_317 = 0;
  	int iLocal_318 = 0;
  	struct<8> Local_319[3];
  	int iLocal_320 = 0;
  	int iLocal_321 = 0;
  	char* sLocal_322[6] = { NULL, NULL, NULL, NULL, NULL, NULL };
  	int iLocal_323 = 0;
  	var uLocal_324 = 0;
  	char* sLocal_325 = NULL;
  	var uLocal_326 = 0;
  	var uLocal_327 = 0;
  	var uLocal_328 = 0;
  	var uLocal_329 = 0;
  	var uLocal_330 = 0;
  	char[] cLocal_331[8] = 0;
  	var uLocal_332 = 0;
  	var uLocal_333 = 0;
  	var uLocal_334 = 0;
  	var uLocal_335 = 0;
  	var uLocal_336 = 0;
  	int iLocal_337 = 0;
  	bool bLocal_338 = 0;
  	int iLocal_339 = 0;
  	int iLocal_340 = 0;
  	int iLocal_341 = 0;
  	int iLocal_342 = 0;
  	int iLocal_343 = 0;
  	bool bLocal_344 = 0;
  	int iLocal_345 = 0;
  	int iLocal_346 = 0;
  	bool bLocal_347 = 0;
  	float fLocal_348 = 0f;
  	int iLocal_349 = 0;
  	int iLocal_350 = 0;
  	int iLocal_351 = 0;
  	bool bLocal_352 = 0;
  	var uLocal_353[2] = { 0, 0 };
  	var uLocal_354[2] = { 0, 0 };
  	var uLocal_355[2] = { 0, 0 };
  	bool bLocal_356[2] = { 0, 0 };
  	bool bLocal_357 = 0;
  	bool bLocal_358 = 0;
  	var uLocal_359 = 0;
  	var uLocal_360 = 0;
  	var uLocal_361 = 0;
  	var uLocal_362 = 0;
  	var uLocal_363 = -1;
  	var uLocal_364 = 0;
  	var uLocal_365 = 0;
  	var uLocal_366 = 0;
  	var uLocal_367 = 0;
  	var uLocal_368 = 0;
  	var uLocal_369 = 0;
  	var uLocal_370 = 1000;
  	var uLocal_371 = 1000;
  	var uLocal_372 = 0;
  	int iLocal_373 = 0;
  	var uLocal_374 = 0;
  	struct<8> Local_375[4];
  	int iLocal_376 = 0;
  	int iLocal_377 = 0;
  	char* sLocal_378 = NULL;
  	struct<61> Local_379 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
  #endregion
  
  void __EntryFunction__()
  {
  	int iVar0;
  	
  	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_23 = -0.0375f;
  	fLocal_24 = 0.17f;
  	fLocal_28 = 80f;
  	fLocal_29 = 140f;
  	fLocal_30 = 180f;
  	iLocal_33 = 3;
  	uLocal_38 = func_605(64);
  	uLocal_39 = func_605(63);
  	iLocal_40 = joaat("u_m_m_aldinapoli");
  	iLocal_41 = joaat("premier");
  	iLocal_58 = 1;
  	sLocal_72 = "rcmnigel3_idles";
  	sLocal_73 = "base_nig";
  	sLocal_75 = "base_mst";
  	Local_77 = { 0.198f, 0.074f, 0.358f };
  	Local_78 = { 12.24f, -173.52f, 130.32f };
  	Local_84 = { -44.75f, -1288.675f, 28.2104f };
  	Local_87 = { 0f, -2.2f, 0.5f };
  	fLocal_88 = 8f;
  	fLocal_89 = 9f;
  	sLocal_100 = "rcmnigel3_trunk";
  	iLocal_105 = joaat("p_banknote_s");
  	Local_108 = { 2611.021f, 1655.5f, 26.6356f };
  	bLocal_111 = true;
  	iLocal_318 = 1;
  	fLocal_348 = 300f;
  	iLocal_350 = 500;
  	Local_54 = { ScriptParam_379 };
  	func_603(&Local_54);
  	unk_0x227BB9ED71ECB6E8(1);
  	if (unk_0xED06FD5709A59F02(19))
  	{
  		func_602("Force cleanup [TERMINATING]");
  		func_586(1);
  		if (iLocal_55 == 9)
  		{
  			func_585(1, 1, 1, 0);
  		}
  		func_583();
  	}
  	if (unk_0xAE06B9E39EBDE049(Local_54.f_28[0]))
  	{
  		func_582(&iLocal_69, &(Local_54.f_28[0]));
  	}
  	func_581(&(Local_54.f_28[1]));
  	func_564();
  	if (func_563())
  	{
  		iVar0 = func_562();
  		if (Global_93132)
  		{
  			iVar0++;
  		}
  		switch (iVar0)
  		{
  			case 0:
  				func_557(1);
  				break;
  			
  			case 1:
  				func_555(1);
  				break;
  			
  			case 2:
  				func_547(1);
  				break;
  			
  			default:
  				break;
  			}
  	}
  	while (true)
  	{
  		unk_0xAEF7C45DAFB8E9B0("SF_VSTLA", 0);
  		func_531(Local_54.f_9, 0, 0, 0, 0, 0);
  		if (iLocal_55 == 13)
  		{
  			func_526();
  		}
  		else if (!func_524())
  		{
  			func_499();
  			func_498();
  			switch (iLocal_55)
  			{
  				case 0:
  					func_496();
  					break;
  				
  				case 1:
  					func_488();
  					break;
  				
  				case 2:
  					func_423();
  					break;
  				
  				case 3:
  					func_422();
  					break;
  				
  				case 4:
  					func_417();
  					break;
  				
  				case 11:
  					func_416();
  					break;
  				
  				case 5:
  					func_400();
  					break;
  				
  				case 6:
  					func_284();
  					break;
  				
  				case 7:
  					func_283();
  					break;
  				
  				case 8:
  					func_249();
  					break;
  				
  				case 9:
  					func_229();
  					break;
  				
  				case 10:
  					func_206();
  					break;
  				
  				case 12:
  					func_1();
  					break;
  				}
  		}
  		SYSTEM::WAIT(0);
  	}
  }
  
  void func_1()
  {
  	iLocal_297 = 0;
  	if (!unk_0xCE990E643CD9D0E5(Global_111858.f_18570.f_382, 5))
  	{
  		unk_0xBE20AB8238688965(&(Global_111858.f_18570.f_382), 5);
  	}
  	if (unk_0xAE06B9E39EBDE049(iLocal_69))
  	{
  		if (!unk_0xA38BFCB05DBE439D(iLocal_69) || unk_0x1D88F87079AF2FA7(iLocal_69))
  		{
  			func_581(&iLocal_69);
  		}
  	}
  	if (unk_0xAE06B9E39EBDE049(iLocal_70))
  	{
  		if (!unk_0xA38BFCB05DBE439D(iLocal_70) || unk_0x1D88F87079AF2FA7(iLocal_70))
  		{
  			func_205(&iLocal_71);
  			func_581(&iLocal_70);
  		}
  	}
  	func_2();
  }
  
  void func_2()
  {
  	if (!iLocal_297)
  	{
  		func_581(&iLocal_68);
  		func_204(101, 1);
  		unk_0xBD9D9E72ABB288E4(joaat("SP_KILLED_AL"), 1, 1);
  	}
  	if (!bLocal_111)
  	{
  		unk_0xD77467CC38DD0DE2(1);
  	}
  	if (unk_0xAE06B9E39EBDE049(Local_314))
  	{
  		func_203(&(Local_314.f_6), 1, 0, 1);
  		unk_0x5681E3BC93AA2666(&Local_314, 0);
  	}
  	func_3(101, 1);
  	func_583();
  }
  
  void func_3(int iParam0, bool bParam1)
  {
  	int iVar0;
  	var uVar1;
  	
  	iVar0 = func_201();
  	if (iVar0 == -1)
  	{
  		return;
  	}
  	if (!Global_110945[iVar0 /*10*/].f_4)
  	{
  		return;
  	}
  	if (Global_110945[iVar0 /*10*/].f_5)
  	{
  		return;
  	}
  	if (Global_110945[iVar0 /*10*/].f_6)
  	{
  		return;
  	}
  	func_172(iVar0, 0);
  	unk_0xBE20AB8238688965(&Global_77081, 1);
  	if (Global_110945[iVar0 /*10*/].f_9 == -1)
  	{
  	}
  	else
  	{
  		func_171(&(Global_110945[iVar0 /*10*/].f_9));
  	}
  	if (bParam1)
  	{
  		if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  		{
  			unk_0xCAD5C18968E57C30(unk_0x460153A63B9477BC(), 0, 0);
  			unk_0x4B86C627B5EABFBF(unk_0x460153A63B9477BC(), 0);
  			unk_0xD1A73960312CB3DD(5000);
  		}
  	}
  	func_159(iVar0, 1, 0, 0);
  	func_158(0, 0);
  	MemCopy(&uVar1, {func_156(iVar0)}, 4);
  	func_153(&uVar1, func_154());
  	func_31();
  	if (unk_0xCE990E643CD9D0E5(Global_111858.f_10012.f_25, 3))
  	{
  		func_30();
  	}
  	func_12();
  	if (iParam0 == 210 || iParam0 == 211)
  	{
  		func_6(iParam0, 406.38f, -1635.86f);
  	}
  	else if (iParam0 == 111)
  	{
  		func_6(iParam0, 1973.84f, 3814.89f);
  	}
  	else if (iParam0 != 322)
  	{
  		func_6(iParam0, 0, 0);
  	}
  	func_4();
  }
  
  int func_4()
  {
  	if (func_5(0))
  	{
  		return 0;
  	}
  	if (Global_98994.f_8)
  	{
  		if (Global_98994.f_10 > 0)
  		{
  			return 0;
  		}
  	}
  	else if (Global_98994.f_10 > 1)
  	{
  		return 0;
  	}
  	Global_98994.f_10++;
  	return 1;
  }
  
  bool func_5(bool bParam0)
  {
  	if (!bParam0 && unk_0x7B70881748D166CD(joaat("benchmark")) > 0)
  	{
  		return 1;
  	}
  	return unk_0xCE990E643CD9D0E5(Global_77081, 0);
  }
  
  void func_6(int iParam0, int iParam1, int iParam2)
  {
  	bool bVar0;
  	
  	if (iParam0 < 0)
  	{
  	}
  	if (iParam0 == 321 || iParam0 > 321)
  	{
  	}
  	else
  	{
  		func_10((891 + iParam0), 1, -1, 1);
  	}
  	bVar0 = true;
  	if (Global_111858.f_10190[iParam0 /*12*/].f_5 == 1)
  	{
  		if (Global_111858.f_10190[iParam0 /*12*/].f_6 == 11 || Global_111858.f_10190[iParam0 /*12*/].f_6 == 12)
  		{
  			bVar0 = false;
  		}
  	}
  	else
  	{
  		Global_111858.f_10190[iParam0 /*12*/].f_5 = 1;
  		Global_111858.f_10190[iParam0 /*12*/].f_10 = iParam1;
  		Global_111858.f_10190[iParam0 /*12*/].f_11 = iParam2;
  		if (iParam0 == 287)
  		{
  			unk_0xFB6CC2C6970D6917(joaat("NUM_HIDDEN_PACKAGES_0"), 50, 0);
  		}
  		if (iParam0 == 286)
  		{
  			unk_0xFB6CC2C6970D6917(joaat("NUM_HIDDEN_PACKAGES_1"), 50, 0);
  		}
  		if (iParam0 == 299)
  		{
  			unk_0xFB6CC2C6970D6917(joaat("NUM_HIDDEN_PACKAGES_3"), 50, 0);
  		}
  	}
  	if (bVar0)
  	{
  		func_7();
  	}
  }
  
  void func_7()
  {
  	int iVar0;
  	float fVar1;
  	float fVar2;
  	float fVar3;
  	float fVar4;
  	float fVar5;
  	float fVar6;
  	float fVar7;
  	float fVar8;
  	int iVar9;
  	
  	iVar0 = 0;
  	Global_111594 = 0;
  	Global_111595 = 0;
  	Global_111596 = 0;
  	Global_111597 = 0;
  	Global_111598 = 0;
  	Global_111599 = 0;
  	Global_111600 = 0;
  	fVar1 = 0f;
  	fVar2 = 0f;
  	fVar3 = 0f;
  	fVar4 = 0f;
  	fVar5 = 0f;
  	fVar6 = 0f;
  	fVar7 = 0f;
  	fVar8 = Global_111858.f_10190.f_3853;
  	Global_111858.f_10190.f_3853 = 0f;
  	while (iVar0 < 321)
  	{
  		if (Global_111858.f_10190[iVar0 /*12*/].f_5 == 1)
  		{
  			switch (Global_111858.f_10190[iVar0 /*12*/].f_6)
  			{
  				case 1:
  					Global_111594++;
  					fVar1 = (fVar1 + Global_111858.f_10190[iVar0 /*12*/].f_4);
  					break;
  				
  				case 3:
  					Global_111595++;
  					fVar2 = (fVar2 + Global_111858.f_10190[iVar0 /*12*/].f_4);
  					break;
  				
  				case 5:
  					Global_111596++;
  					fVar3 = (fVar3 + Global_111858.f_10190[iVar0 /*12*/].f_4);
  					break;
  				
  				case 7:
  					Global_111597++;
  					fVar4 = (fVar4 + Global_111858.f_10190[iVar0 /*12*/].f_4);
  					break;
  				
  				case 9:
  					Global_111598++;
  					fVar5 = (fVar5 + (Global_111858.f_10190[iVar0 /*12*/].f_4 * 4f));
  					break;
  				
  				case 11:
  					Global_111599++;
  					fVar6 = (fVar6 + Global_111858.f_10190[iVar0 /*12*/].f_4);
  					break;
  				
  				case 13:
  					Global_111600++;
  					fVar7 = (fVar7 + Global_111858.f_10190[iVar0 /*12*/].f_4);
  					break;
  				
  				default:
  					break;
  				}
  		}
  		iVar0++;
  	}
  	if (Global_111577 > 0)
  	{
  		if (Global_111594 == Global_111577)
  		{
  			fVar1 = 55f;
  		}
  	}
  	if (Global_111578 > 0)
  	{
  		if (Global_111595 == Global_111578)
  		{
  			fVar2 = 10f;
  		}
  	}
  	if (Global_111579 > 0)
  	{
  		if (Global_111596 == Global_111579)
  		{
  			fVar3 = 0f;
  		}
  	}
  	if (Global_111580 > 0)
  	{
  		if (Global_111597 == Global_111580)
  		{
  			fVar4 = 10f;
  		}
  	}
  	if (Global_111581 > 0)
  	{
  		if (((Global_111598 == Global_111581 || (Global_111581 * 10 / Global_111598) < 41) || Global_111598 > Global_111584) || Global_111598 == Global_111584)
  		{
  			if (!unk_0xCE990E643CD9D0E5(Global_111858.f_10190.f_3856, 14))
  			{
  				if (Global_111598 == Global_111581)
  				{
  					unk_0xFB6CC2C6970D6917(joaat("NUM_RNDEVENTS_COMPLETED"), Global_111581, 0);
  					unk_0xBE20AB8238688965(&(Global_111858.f_10190.f_3856), 14);
  				}
  			}
  			fVar5 = 5f;
  		}
  	}
  	if (Global_111582 > 0)
  	{
  		if (Global_111599 == Global_111582)
  		{
  			fVar6 = 15f;
  		}
  	}
  	if (Global_111583 > 0)
  	{
  		if (Global_111600 == Global_111583)
  		{
  			fVar7 = 5f;
  		}
  	}
  	Global_111858.f_10190.f_3853 = ((((((fVar1 + fVar2) + fVar3) + fVar4) + fVar5) + fVar6) + fVar7);
  	if (Global_111598 > Global_111584 || Global_111598 == Global_111584)
  	{
  		iVar9 = Global_111584;
  	}
  	else
  	{
  		iVar9 = Global_111598;
  	}
  	unk_0x6000E4684CB4330B(joaat("NUM_MISSIONS_COMPLETED"), Global_111594, 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_MISSIONS_AVAILABLE"), Global_111577, 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_MINIGAMES_COMPLETED"), Global_111595, 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_MINIGAMES_AVAILABLE"), Global_111578, 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_ODDJOBS_COMPLETED"), Global_111596, 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_ODDJOBS_AVAILABLE"), Global_111579, 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_RNDPEOPLE_COMPLETED"), Global_111597, 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_RNDPEOPLE_AVAILABLE"), Global_111580, 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_RNDEVENTS_COMPLETED"), iVar9, 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_RNDEVENTS_AVAILABLE"), Global_111584, 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_MISC_COMPLETED"), (Global_111600 + Global_111599), 1);
  	unk_0x6000E4684CB4330B(joaat("NUM_MISC_AVAILABLE"), (Global_111583 + Global_111582), 1);
  	Global_111601 = (Global_111594 * 100 / Global_111577);
  	Global_111603 = ((Global_111596 + Global_111595) * 100 / (Global_111579 + Global_111578));
  	Global_111602 = ((Global_111597 + iVar9) * 100 / (Global_111580 + Global_111584));
  	Global_111604 = ((Global_111599 + Global_111600) * 100 / (Global_111582 + Global_111583));
  	unk_0x3C2CA88D6219BB12(joaat("TOTAL_PROGRESS_MADE"), Global_111858.f_10190.f_3853, 1);
  	unk_0x6000E4684CB4330B(joaat("PERCENT_STORY_MISSIONS"), Global_111601, 1);
  	unk_0x6000E4684CB4330B(joaat("PERCENT_AMBIENT_MISSIONS"), Global_111602, 1);
  	unk_0x6000E4684CB4330B(joaat("PERCENT_ODDJOBS"), Global_111603, 1);
  	if (fVar8 > 0f && SYSTEM::FLOOR(fVar8) < SYSTEM::FLOOR(Global_111858.f_10190.f_3853))
  	{
  		func_9(13, SYSTEM::FLOOR(Global_111858.f_10190.f_3853));
  	}
  	if (!unk_0xC4A02490EB1F450B())
  	{
  		if (!Global_76833)
  		{
  			if (func_8() == 2 == 0 && !unk_0x25DDB354A40FFCDB())
  			{
  				if (unk_0x70E5C9630A26FB40())
  				{
  					Global_111592 = 0;
  				}
  				if (!Global_61717)
  				{
  					func_4();
  				}
  			}
  		}
  	}
  }
  
  int func_8()
  {
  	return Global_30968;
  }
  
  int func_9(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;
  }
  
  int func_10(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_11();
  	}
  	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;
  }
  
  int func_11()
  {
  	return Global_1312763;
  }
  
  void func_12()
  {
  	func_29();
  	func_21();
  	func_17();
  	func_16();
  	func_15();
  	func_14();
  	Global_98992 = 0;
  	Global_93130 = -1;
  	unk_0xD2459066EA58CE43(&(Global_98955.f_20), 17);
  	Global_98990 = 0;
  	unk_0x3A73329837AFF65B(0);
  	unk_0x2D683744B695AA81(0);
  	unk_0x0B5FDCC374F46B9E(1);
  	unk_0x076324DA2DE00927(1);
  	unk_0xA47631D02B6634DB(1);
  	func_13(0);
  }
  
  void func_13(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		unk_0xBE20AB8238688965(&(Global_98955.f_20), 13);
  	}
  	else
  	{
  		unk_0xD2459066EA58CE43(&(Global_98955.f_20), 13);
  	}
  }
  
  void func_14()
  {
  	Global_77073 = { 0f, 0f, 0f };
  	Global_77076 = 0f;
  	Global_98955.f_21 = 145;
  }
  
  void func_15()
  {
  	StringCopy(&Global_77065, "", 16);
  	StringCopy(&Global_77069, "", 16);
  }
  
  void func_16()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 6)
  	{
  		Global_98955.f_22[iVar0] = 0;
  		iVar0++;
  	}
  }
  
  void func_17()
  {
  	Global_98955 = 13;
  	Global_98955.f_1 = -1;
  	Global_98955.f_2 = 0;
  	Global_98955.f_30 = 0f;
  	unk_0xD2459066EA58CE43(&(Global_98955.f_20), 25);
  	Global_98989 = 0;
  	func_20(0);
  	func_19();
  	func_18();
  	Global_98955.f_18 = -1;
  	Global_98955.f_19 = -1;
  }
  
  void func_18()
  {
  	unk_0xD2459066EA58CE43(&(Global_98955.f_20), 22);
  	unk_0xD2459066EA58CE43(&(Global_98955.f_20), 8);
  }
  
  void func_19()
  {
  	if (Global_98955.f_16 != 0)
  	{
  		unk_0x2E352DDBBF674246(&(Global_98955.f_16));
  		Global_98955.f_16 = 0;
  	}
  	if (Global_98955.f_17 != 0)
  	{
  		unk_0x2E352DDBBF674246(&(Global_98955.f_17));
  		Global_98955.f_17 = 0;
  	}
  }
  
  void func_20(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		Global_42180 = 1;
  	}
  	else
  	{
  		Global_42180 = 0;
  	}
  }
  
  void func_21()
  {
  	func_22(&Global_105407);
  }
  
  void func_22(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	*uParam0 = 145;
  	func_28(&(uParam0->f_1));
  	uParam0->f_6 = -1;
  	uParam0->f_7 = -1;
  	uParam0->f_8 = 0f;
  	uParam0->f_2 = 0;
  	uParam0->f_3 = 0;
  	uParam0->f_4 = 0;
  	uParam0->f_5 = 145;
  	iVar1 = 0;
  	while (iVar1 < 3)
  	{
  		uParam0->f_9[iVar1] = -1;
  		uParam0->f_13[iVar1] = 0;
  		uParam0->f_17[iVar1] = 0;
  		uParam0->f_21[iVar1] = 0;
  		func_27(&(uParam0->f_25[0 /*295*/][iVar1 /*98*/]));
  		func_27(&(uParam0->f_25[1 /*295*/][iVar1 /*98*/]));
  		iVar0 = 0;
  		while (iVar0 < 12)
  		{
  			uParam0->f_616[iVar1 /*65*/][iVar0] = -1;
  			uParam0->f_616[iVar1 /*65*/].f_13[iVar0] = -1;
  			uParam0->f_616[iVar1 /*65*/].f_26[iVar0] = -1;
  			iVar0++;
  		}
  		uParam0->f_616[iVar1 /*65*/].f_59 = 0;
  		uParam0->f_616[iVar1 /*65*/].f_60 = -99;
  		uParam0->f_616[iVar1 /*65*/].f_61 = 2;
  		uParam0->f_616[iVar1 /*65*/].f_62 = 0;
  		uParam0->f_616[iVar1 /*65*/].f_63 = -99;
  		uParam0->f_616[iVar1 /*65*/].f_64 = 1;
  		iVar0 = 0;
  		while (iVar0 < 9)
  		{
  			uParam0->f_616[iVar1 /*65*/].f_39[iVar0] = -1;
  			uParam0->f_616[iVar1 /*65*/].f_49[iVar0] = -1;
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 44)
  		{
  			uParam0->f_812[iVar1 /*477*/][iVar0 /*5*/].f_1 = 0;
  			uParam0->f_812[iVar1 /*477*/][iVar0 /*5*/].f_2 = 0;
  			uParam0->f_812[iVar1 /*477*/][iVar0 /*5*/].f_3 = 0;
  			uParam0->f_812[iVar1 /*477*/][iVar0 /*5*/].f_4 = 0;
  			uParam0->f_812[iVar1 /*477*/][iVar0 /*5*/] = 0;
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 51)
  		{
  			uParam0->f_812[iVar1 /*477*/].f_221[iVar0 /*5*/].f_1 = 0;
  			uParam0->f_812[iVar1 /*477*/].f_221[iVar0 /*5*/].f_2 = 0;
  			uParam0->f_812[iVar1 /*477*/].f_221[iVar0 /*5*/].f_3 = 0;
  			uParam0->f_812[iVar1 /*477*/].f_221[iVar0 /*5*/].f_4 = 0;
  			uParam0->f_812[iVar1 /*477*/].f_221[iVar0 /*5*/] = 0;
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 4)
  		{
  			uParam0->f_2244[iVar1 /*32*/][iVar0] = 0;
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 10)
  		{
  			uParam0->f_2244[iVar1 /*32*/].f_5[iVar0] = 0;
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 15)
  		{
  			uParam0->f_2244[iVar1 /*32*/].f_16[iVar0] = 0;
  			iVar0++;
  		}
  		uParam0->f_2341[iVar1] = 0;
  		iVar0 = 0;
  		while (iVar0 <= 3)
  		{
  			uParam0->f_2838[iVar1 /*15*/][iVar0] = 0;
  			uParam0->f_2838[iVar1 /*15*/].f_5[iVar0] = 0;
  			uParam0->f_2838[iVar1 /*15*/].f_10[iVar0] = 0;
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			uParam0->f_2345[iVar1 /*164*/][iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_4[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_8[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_12[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_16[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_20[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_24[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_28[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_32[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_36[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_40[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_44[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_48[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_52[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_56[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_60[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_64[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_68[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_72[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_76[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_80[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_84[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_88[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_92[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_96[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_100[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_104[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_108[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_112[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_116[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_120[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_124[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_128[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_132[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_136[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_140[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_144[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_148[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_152[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_156[iVar0] = 0;
  			uParam0->f_2345[iVar1 /*164*/].f_160[iVar0] = 0;
  			iVar0++;
  		}
  		iVar1++;
  	}
  	func_26(&(uParam0->f_2884));
  	func_24(&(uParam0->f_2890));
  	func_23(&(uParam0->f_2980));
  }
  
  void func_23(var uParam0)
  {
  	*uParam0 = -1;
  	uParam0->f_1 = 0;
  	uParam0->f_2 = 0;
  	uParam0->f_3 = 0;
  }
  
  void func_24(var uParam0)
  {
  	func_25(&(uParam0->f_12));
  	*uParam0 = { 0f, 0f, 0f };
  	uParam0->f_3 = { 0f, 0f, 0f };
  	uParam0->f_6 = 0f;
  	uParam0->f_8 = 0;
  	uParam0->f_9 = 0;
  }
  
  void func_25(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;
  }
  
  void func_26(var uParam0)
  {
  	*uParam0 = { 0f, 0f, 0f };
  	uParam0->f_3 = 0f;
  	uParam0->f_4 = 0;
  	uParam0->f_5 = -1;
  }
  
  void func_27(var uParam0)
  {
  	int iVar0;
  	
  	*uParam0 = 0;
  	uParam0->f_1 = 0;
  	uParam0->f_2 = 0f;
  	uParam0->f_3 = 0;
  	uParam0->f_4 = 0;
  	uParam0->f_5 = 0;
  	uParam0->f_6 = 0;
  	uParam0->f_7 = 0;
  	uParam0->f_8 = 0;
  	uParam0->f_9 = 0;
  	uParam0->f_10 = 0;
  	iVar0 = 0;
  	while (iVar0 <= 11)
  	{
  		uParam0->f_11[iVar0] = 0;
  		iVar0++;
  	}
  	uParam0->f_24 = 0;
  	uParam0->f_25 = 0;
  	StringCopy(&(uParam0->f_27), "", 16);
  	iVar0 = 0;
  	while (iVar0 <= 48)
  	{
  		uParam0->f_31[iVar0] = 0;
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 <= 1)
  	{
  		uParam0->f_81[iVar0] = 0;
  		iVar0++;
  	}
  	uParam0->f_84 = 0;
  	uParam0->f_85 = 0;
  	uParam0->f_86 = 0;
  	uParam0->f_87 = 0;
  	uParam0->f_88 = 0;
  	uParam0->f_89 = 0;
  	uParam0->f_90 = 0;
  	uParam0->f_91 = 0;
  	uParam0->f_93 = 0;
  	uParam0->f_94 = 0;
  	uParam0->f_95 = 0;
  	uParam0->f_92 = 0;
  }
  
  void func_28(var uParam0)
  {
  	*uParam0 = -15;
  }
  
  void func_29()
  {
  	StringCopy(&Global_102415, "", 32);
  	func_22(&Global_102423);
  }
  
  void func_30()
  {
  	if (Global_8356[0 /*2811*/][0 /*281*/].f_259 == 0)
  	{
  		Global_8356[0 /*2811*/][0 /*281*/].f_259 = 2;
  	}
  	if (Global_8356[1 /*2811*/][0 /*281*/].f_259 == 0)
  	{
  		Global_8356[1 /*2811*/][0 /*281*/].f_259 = 2;
  	}
  	if (Global_8356[2 /*2811*/][0 /*281*/].f_259 == 0)
  	{
  		Global_8356[2 /*2811*/][0 /*281*/].f_259 = 2;
  	}
  	unk_0xBE20AB8238688965(&Global_7551, 25);
  	unk_0xBE20AB8238688965(&Global_7552, 11);
  }
  
  void func_31()
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar0 = 0;
  	while (iVar0 <= 8)
  	{
  		iVar1 = Global_96324[iVar0];
  		if (unk_0xAE06B9E39EBDE049(iVar1) && !unk_0x5AEB5DDFFAD43CA5(iVar1))
  		{
  			iVar3 = func_149(iVar1);
  			iVar2 = -99;
  			switch (iVar3)
  			{
  				case 0:
  					iVar2 = 112;
  					break;
  				
  				case 1:
  					iVar2 = 158;
  					break;
  				
  				case 2:
  					iVar2 = 154;
  					break;
  			}
  			if (iVar2 != -99)
  			{
  				if (func_148(iVar1, 14, iVar2))
  				{
  					func_32(iVar1, 14, iVar2);
  				}
  				if (Global_111858.f_2359.f_539[iVar3 /*65*/].f_39[2] == iVar2)
  				{
  					Global_111858.f_2359.f_539[iVar3 /*65*/].f_39[2] = -1;
  				}
  			}
  		}
  		iVar0++;
  	}
  }
  
  int func_32(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	var uVar2;
  	int iVar3;
  	int iVar4;
  	var uVar5;
  	var uVar6;
  	int iVar7;
  	
  	if (unk_0x5AEB5DDFFAD43CA5(iParam0) || iParam2 == -99)
  	{
  		return 0;
  	}
  	iVar0 = unk_0x36FE6D3220816ADA(iParam0);
  	Global_76647[1 /*14*/] = { func_83(iVar0, iParam1, iParam2, -1) };
  	if (!unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 0))
  	{
  		return 0;
  	}
  	if (!func_148(iParam0, iParam1, iParam2))
  	{
  		return 0;
  	}
  	if (iParam1 == 12)
  	{
  		uVar2 = { func_79(iVar0, iParam2) };
  		iVar1 = 0;
  		while (iVar1 <= 14)
  		{
  			if (uVar2[iVar1] != -99)
  			{
  				func_32(iParam0, iVar1, uVar2[iVar1]);
  			}
  			iVar1++;
  		}
  	}
  	else if (iParam1 == 13)
  	{
  		uVar5 = { func_76(iVar0, iParam2) };
  		iVar3 = 0;
  		while (iVar3 <= 8)
  		{
  			if (!func_32(iParam0, 14, uVar5[iVar3]))
  			{
  				iVar4 = 0;
  			}
  			iVar3++;
  		}
  		return iVar4;
  	}
  	else if (iParam1 == 14)
  	{
  		unk_0x4FCABD4082A6C808(iParam0, Global_76647[1 /*14*/].f_12);
  	}
  	else
  	{
  		uVar6 = { func_79(iVar0, 0) };
  		Global_76647[1 /*14*/] = { func_83(iVar0, iParam1, uVar6[iParam1], -1) };
  		if (unk_0xD6A0115FA2F3F0EC(iParam0, func_75(iParam1)) > 0 && unk_0x7CF1CA3F6DB5685F(iParam0, func_75(iParam1), Global_76647[1 /*14*/].f_3) > 0)
  		{
  			unk_0x45F588C0DD767737(iParam0, func_75(iParam1), Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4, 0);
  		}
  	}
  	if (func_74(iParam0, iVar0, &iVar7, 0))
  	{
  		func_35(iParam0, 2, iVar7, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  	}
  	if (func_33(iParam0, iVar0, &iVar7))
  	{
  		func_35(iParam0, 1, iVar7, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  	}
  	return 1;
  }
  
  int func_33(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	iVar0 = func_34(iParam1);
  	if (Global_111858.f_2359.f_539[iVar0 /*65*/].f_63 != -99)
  	{
  		if (!func_148(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_34(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;
  }
  
  int func_35(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_83(iVar10, iParam1, iParam2, -1) };
  		if (!func_73(iParam3))
  		{
  			Global_76645 = (Global_76645 - 1);
  			return 0;
  		}
  		func_66(iParam1);
  	}
  	if (iParam1 == 12)
  	{
  		if (iParam7 == 1)
  		{
  			if (iVar10 == joaat("player_one"))
  			{
  				iVar5 = func_64(iParam0, 8);
  				if (iVar5 != 9)
  				{
  					iVar5 = -99;
  				}
  			}
  			iVar6 = func_64(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_63(iParam0, 1);
  			if (!func_62(iVar10, 14, iVar7, -1))
  			{
  				iVar7 = -99;
  			}
  			iVar8 = func_63(iParam0, 0);
  			if (!func_61(iVar10, 14, iVar8, -1) && !func_60(iVar10, 14, iVar8, -1))
  			{
  				iVar8 = -99;
  			}
  			if (iVar10 == joaat("player_one"))
  			{
  				iVar9 = func_63(iParam0, 2);
  			}
  		}
  		unk_0x6BD562D713BA3F70(iParam0);
  		uVar11 = 15;
  		if (iParam5 == 1)
  		{
  			uVar11 = { Global_76690 };
  		}
  		else
  		{
  			uVar11 = { func_79(iVar10, iParam2) };
  		}
  		iVar0 = 0;
  		while (iVar0 <= 14)
  		{
  			if (uVar11[iVar0] != -99)
  			{
  				Global_76647[1 /*14*/] = { func_83(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_76(iVar10, uVar11[iVar0]) };
  						}
  						iVar1 = 0;
  						while (iVar1 <= 8)
  						{
  							Global_76647[1 /*14*/] = { func_83(iVar10, 14, uVar12[iVar1], -1) };
  							func_51(iParam0, Global_76647[1 /*14*/].f_12, Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4);
  							func_66(14);
  							if (Global_76645 == 1)
  							{
  								iVar2 = 0;
  								while (iVar2 < 15)
  								{
  									iVar3 = func_43(iParam0, iVar10, 14, uVar12[iVar1], iVar2, 0);
  									if (iVar3 != -99)
  									{
  										func_35(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_42(iVar10, 2, 20, &iVar4);
  						}
  						if (iParam4 == -1)
  						{
  							unk_0x45F588C0DD767737(iParam0, func_75(iVar0), Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4, unk_0xABAC9462CD887571(iParam0, func_75(iVar0)));
  						}
  						else
  						{
  							unk_0x45F588C0DD767737(iParam0, func_75(iVar0), Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4, iParam4);
  						}
  						func_66(iVar0);
  						if (Global_76645 == 1)
  						{
  							iVar2 = 0;
  							while (iVar2 < 15)
  							{
  								iVar3 = func_43(iParam0, iVar10, iVar0, uVar11[iVar0], iVar2, 0);
  								if (iVar3 != -99)
  								{
  									func_35(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_83(iVar10, iVar0, func_41(iParam0, iVar0, -1), -1) };
  				if (unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 3))
  				{
  					if (iVar0 == 2)
  					{
  						if (iVar10 == joaat("player_one"))
  						{
  							if (func_74(iParam0, iVar10, &iVar4, 1))
  							{
  								func_35(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  							}
  						}
  					}
  					else
  					{
  						uVar13 = { func_79(iVar10, 0) };
  						func_35(iParam0, iVar0, uVar13[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  				}
  			}
  			iVar0++;
  		}
  		if (iParam7 == 1)
  		{
  			Var14 = { func_83(iVar10, 8, iVar5, -1) };
  			if (iVar5 != -99)
  			{
  				if (func_39(iVar10, iParam2, 8, iVar5, &uVar11, &Var14))
  				{
  					func_35(iParam0, 8, iVar5, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var14 = { func_83(iVar10, 9, iVar6, -1) };
  			if (iVar6 != -99)
  			{
  				if (func_39(iVar10, iParam2, 9, iVar6, &uVar11, &Var14))
  				{
  					func_35(iParam0, 9, iVar6, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var14 = { func_83(iVar10, 14, iVar7, -1) };
  			if (iVar7 != -99)
  			{
  				if (func_39(iVar10, iParam2, 14, iVar7, &uVar11, &Var14))
  				{
  					func_35(iParam0, 14, iVar7, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var14 = { func_83(iVar10, 14, iVar8, -1) };
  			if (iVar8 != -99)
  			{
  				if (func_39(iVar10, iParam2, 14, iVar8, &uVar11, &Var14))
  				{
  					func_35(iParam0, 14, iVar8, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  			Var14 = { func_83(iVar10, 14, iVar9, -1) };
  			if (iVar9 != -99)
  			{
  				if (func_39(iVar10, iParam2, 14, iVar9, &uVar11, &Var14))
  				{
  					func_35(iParam0, 14, iVar9, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
  				}
  			}
  		}
  	}
  	else if (iParam1 == 13)
  	{
  		uVar15 = { func_76(iVar10, iParam2) };
  		iVar1 = 0;
  		while (iVar1 <= 8)
  		{
  			Global_76647[1 /*14*/] = { func_83(iVar10, 14, uVar15[iVar1], -1) };
  			func_51(iParam0, Global_76647[1 /*14*/].f_12, Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4);
  			func_66(14);
  			if (Global_76645 == 1)
  			{
  				iVar2 = 0;
  				while (iVar2 < 15)
  				{
  					iVar3 = func_43(iParam0, iVar10, 14, uVar15[iVar1], iVar2, 0);
  					if (iVar3 != -99)
  					{
  						func_35(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					iVar2++;
  				}
  			}
  			iVar1++;
  		}
  	}
  	else if (iParam1 == 14)
  	{
  		func_51(iParam0, Global_76647[1 /*14*/].f_12, Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4);
  		func_66(iParam1);
  		if (Global_76645 == 1)
  		{
  			iVar2 = 0;
  			while (iVar2 < 15)
  			{
  				iVar3 = func_43(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
  				if (iVar3 != -99)
  				{
  					func_35(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  				}
  				iVar2++;
  			}
  		}
  	}
  	else
  	{
  		if (iParam4 == -1)
  		{
  			unk_0x45F588C0DD767737(iParam0, func_75(iParam1), Global_76647[1 /*14*/].f_3, Global_76647[1 /*14*/].f_4, unk_0xABAC9462CD887571(iParam0, func_75(iParam1)));
  		}
  		else
  		{
  			unk_0x45F588C0DD767737(iParam0, func_75(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_43(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
  				if (iVar3 != -99)
  				{
  					func_35(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  				}
  				iVar2++;
  			}
  		}
  		if (iParam6 == 0)
  		{
  			func_36(iVar10, iParam1, iParam2);
  		}
  	}
  	if (Global_76645 == 1)
  	{
  		if (func_74(iParam0, iVar10, &iVar4, 0))
  		{
  			func_35(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  		}
  		if (func_33(iParam0, iVar10, &iVar4))
  		{
  			func_35(iParam0, 1, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  		}
  	}
  	Global_76645 = (Global_76645 - 1);
  	return 1;
  }
  
  void func_36(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_38(iParam0, 12, iVar0))
  	{
  		if (func_37(iParam0, iParam1, iParam2))
  		{
  			iVar1 = func_34(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_37(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_38(int iParam0, int iParam1, int iParam2)
  {
  	Global_76647[1 /*14*/] = { func_83(iParam0, iParam1, iParam2, -1) };
  	return unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 2);
  }
  
  int func_39(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_76(iParam0, (*uParam4)[13]) };
  		iVar1 = 0;
  		while (iVar1 <= 8)
  		{
  			if (uVar0[iVar1] == iParam3)
  			{
  				return 1;
  			}
  			iVar1++;
  		}
  	}
  	if (func_40(iParam0, iParam2, iParam3))
  	{
  		return 1;
  	}
  	if (iParam0 == joaat("player_zero"))
  	{
  		if (func_62(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_61(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_60(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_62(iParam0, iParam2, iParam3, -1))
  		{
  			if ((iParam1 == 3 || iParam1 == 5) || iParam1 == 7)
  			{
  				return 0;
  			}
  			return 1;
  		}
  		else if (func_61(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_60(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_62(iParam0, iParam2, iParam3, -1))
  		{
  			if (((((iParam1 == 1 || iParam1 == 2) || iParam1 == 6) || iParam1 == 8) || iParam1 == 45) || iParam1 == 12)
  			{
  				return 0;
  			}
  			return 1;
  		}
  		else if (func_61(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_60(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_40(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_41(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!unk_0x5AEB5DDFFAD43CA5(uParam0))
  	{
  		if (iParam1 == 12)
  		{
  			iVar0 = 0;
  			while (iVar0 <= 53)
  			{
  				if (func_148(iParam0, iParam1, iVar0))
  				{
  					return iVar0;
  				}
  				iVar0++;
  			}
  		}
  		else if (iParam1 == 13)
  		{
  			iVar1 = 0;
  			while (iVar1 <= 19)
  			{
  				if (func_148(iParam0, iParam1, iVar1))
  				{
  					return iVar1;
  				}
  				iVar1++;
  			}
  			return 31;
  		}
  		else if (iParam1 == 14)
  		{
  			if (iParam2 == -1)
  			{
  			}
  			else
  			{
  				return func_63(iParam0, iParam2);
  			}
  		}
  		else
  		{
  			return func_64(iParam0, iParam1);
  		}
  	}
  	return -99;
  }
  
  int func_42(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_34(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_43(var uParam0, 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_64(uParam0, 1);
  				iVar0 = func_50(iParam1, iParam3, iVar1);
  				break;
  			
  			case 1:
  				iVar2 = func_64(uParam0, 2);
  				iVar0 = func_50(iParam1, iVar2, iParam3);
  				break;
  		}
  	}
  	else if (iParam4 == 2)
  	{
  		func_42(iParam1, iParam2, iParam3, &iVar0);
  	}
  	else if (iParam4 == 1)
  	{
  		func_49(iParam1, iParam2, iParam3, &iVar0);
  	}
  	else if (iParam4 == 6)
  	{
  		if (iParam2 == 4)
  		{
  			if (func_48(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_47(uParam0, 3, 44, 59))
  									{
  										iVar0 = 44;
  									}
  								}
  								else if (((iParam3 >= 8 && iParam3 <= 17) || (iParam3 >= 18 && iParam3 <= 27)) || (iParam3 >= 28 && iParam3 <= 43))
  								{
  									if (!func_47(uParam0, 3, 135, 150))
  									{
  										iVar0 = func_46(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_47(uParam0, 3, 209, 222))
  									{
  										iVar0 = func_46(iParam1, 3, 209, 222);
  									}
  								}
  								else if ((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8))
  								{
  									if (!func_47(uParam0, 3, 243, 258))
  									{
  										if (iParam3 == 1 || iParam3 == 5)
  										{
  											iVar0 = func_46(iParam1, 3, 243, 246);
  										}
  										else if (iParam3 == 2 || iParam3 == 6)
  										{
  											iVar0 = func_46(iParam1, 3, 247, 250);
  										}
  										else if (iParam3 == 3 || iParam3 == 7)
  										{
  											iVar0 = func_46(iParam1, 3, 251, 254);
  										}
  										else if (iParam3 == 4 || iParam3 == 8)
  										{
  											iVar0 = func_46(iParam1, 3, 255, 258);
  										}
  									}
  								}
  								else if (iParam3 == 41 || iParam3 == 42)
  								{
  									if (!func_47(uParam0, 3, 176, 191) && !func_47(uParam0, 3, 227, 242))
  									{
  										iVar0 = func_46(iParam1, 3, 176, 191);
  									}
  								}
  								break;
  						}
  						break;
  					
  					case 8:
  						if (iParam2 == 11 || iParam2 == 3)
  						{
  							if (iParam2 == 11)
  							{
  								iVar5 = iParam3;
  								iVar4 = func_64(uParam0, 3);
  							}
  							else if (iParam2 == 3)
  							{
  								iVar4 = iParam3;
  								iVar5 = func_64(uParam0, 11);
  								iVar5 = func_45(iParam1, iVar4, iVar5, 0);
  							}
  							iVar3 = func_64(uParam0, 8);
  							if (((iVar5 >= 5 && iVar5 <= 8) || (iVar5 >= 25 && iVar5 <= 40)) || (iVar5 >= 42 && iVar5 <= 43))
  							{
  								if (!func_44(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_64(uParam0, 8);
  								iVar8 = func_64(uParam0, 11);
  								if (((iVar7 >= 27 && iVar7 <= 42) || (iVar7 >= 43 && iVar7 <= 58)) || (iVar7 >= 59 && iVar7 <= 74))
  								{
  									iVar0 = func_45(iParam1, iParam3, iVar8, 0);
  								}
  								else
  								{
  									iVar0 = func_45(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_64(uParam0, 11);
  								iVar0 = func_45(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_44(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_45(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_46(iParam0, 11, 9, 24);
  			}
  			else
  			{
  				iParam2 = func_46(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_46(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = iParam2;
  	while (iVar0 <= (iParam3 - 1))
  	{
  		iVar1 = iVar0;
  		if (func_38(iParam0, iParam1, iVar1))
  		{
  			return iVar1;
  		}
  		iVar0++;
  	}
  	return -99;
  }
  
  int func_47(var uParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_64(uParam0, iParam1);
  	if (iVar0 >= iParam2 && iVar0 <= iParam3)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_48(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_49(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_34(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_50(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_51(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	if (iParam2 == -1)
  	{
  		unk_0x4FCABD4082A6C808(uParam0, 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_56(iParam0, iParam2, iParam3, iParam1);
  			if (func_52(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_52(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_53(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_53(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_53(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_55(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_54(iParam0, func_75(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_75(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_54(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_55(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_56(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_59(iParam3);
  	}
  	iVar0 = unk_0x36FE6D3220816ADA(uParam0);
  	iVar1 = unk_0xEAF476EEF924D2C9(iParam0, iParam3, iParam1, iParam2);
  	if (iVar1 != -1 && iVar1 != 0)
  	{
  		if (iVar0 == joaat("mp_m_freemode_01"))
  		{
  			return func_58(unk_0x36FE6D3220816ADA(iParam0), iVar1, 14, 3);
  		}
  		else if (iVar0 == joaat("mp_f_freemode_01"))
  		{
  			return func_58(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_57(iParam0, iParam3));
  					return iVar3;
  				}
  				else
  				{
  					iVar3++;
  				}
  				iVar5++;
  			}
  		}
  		iVar4++;
  	}
  	return func_59(iParam3);
  }
  
  int func_57(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = unk_0x36FE6D3220816ADA(uParam0);
  	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_58(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_55(iParam0) + iVar0);
  		}
  	}
  	else
  	{
  		unk_0x21A524CB091C80DE(iParam3, 7, -1, 0, -1, func_75(iParam2));
  		iVar1 = unk_0x96E2929292A4DB77(iParam1);
  		if (iVar1 != -1)
  		{
  			return (func_54(iParam0, func_75(iParam2)) + iVar1);
  		}
  	}
  	return -99;
  }
  
  int func_59(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;
  }
  
  int func_60(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_53(iParam0, iParam2, 14, 3);
  						}
  						return (unk_0x4D0432E34C5996D9(iParam3, joaat("HAT"), 1) || unk_0x4D0432E34C5996D9(func_53(iParam0, iParam2, 14, 3), -1842686353, 1));
  					}
  					break;
  				
  				case 1:
  					if (iParam2 >= 26)
  					{
  						if (iParam3 == -1)
  						{
  							iParam3 = func_53(iParam0, iParam2, 1, 3);
  						}
  						return (unk_0x4D0432E34C5996D9(iParam3, joaat("HAT"), 0) || unk_0x4D0432E34C5996D9(func_53(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_53(iParam0, iParam2, 14, 4);
  						}
  						return (unk_0x4D0432E34C5996D9(iParam3, joaat("HAT"), 1) || unk_0x4D0432E34C5996D9(func_53(iParam0, iParam2, 14, 4), -1842686353, 1));
  					}
  					break;
  				
  				case 1:
  					if (iParam2 >= 26)
  					{
  						if (iParam3 == -1)
  						{
  							iParam3 = func_53(iParam0, iParam2, 1, 4);
  						}
  						return (unk_0x4D0432E34C5996D9(iParam3, joaat("HAT"), 0) || unk_0x4D0432E34C5996D9(func_53(iParam0, iParam2, 1, 4), -1842686353, 0));
  					}
  					break;
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_61(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_53(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_53(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_62(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_53(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_53(iParam0, iParam2, 14, 4);
  					}
  					return unk_0x4D0432E34C5996D9(iParam3, joaat("GLASSES"), 1);
  				}
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_63(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (unk_0x5AEB5DDFFAD43CA5(uParam0))
  	{
  		return -99;
  	}
  	iVar0 = unk_0xA98E0435012EAF07(iParam0, iParam1);
  	if (iVar0 == -1)
  	{
  		return func_59(iParam1);
  	}
  	iVar1 = unk_0x77A103B794FA7737(iParam0, iParam1);
  	return func_56(iParam0, iVar0, iVar1, iParam1);
  }
  
  int func_64(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (((iParam1 == 12 || iParam1 == 13) || iParam1 == 14) || unk_0x5AEB5DDFFAD43CA5(uParam0))
  	{
  		return -99;
  	}
  	iVar0 = func_75(iParam1);
  	iVar1 = unk_0x3FB4D40A857CEA77(iParam0, iVar0);
  	iVar2 = unk_0x79AFA009D186C4FB(iParam0, iVar0);
  	return func_65(iParam0, iVar1, iVar2, iParam1);
  }
  
  int func_65(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	
  	iVar0 = func_75(iParam3);
  	iVar1 = unk_0xD6A0115FA2F3F0EC(uParam0, 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_66(int iParam0)
  {
  	if (unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 1) && !unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 6))
  	{
  		func_72(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_67(Global_2621444, 2, 1, 1, -1);
  		}
  		else if (iParam0 == 13)
  		{
  		}
  		else if (iParam0 == 14)
  		{
  			func_67(Global_2621444, 2, 1, 1, -1);
  		}
  		else
  		{
  			func_67(Global_2621444, 2, 1, 1, -1);
  		}
  	}
  }
  
  void func_67(int iParam0, int iParam1, bool bParam2, bool bParam3, int iParam4)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	var uVar3;
  	
  	iVar0 = Global_76644;
  	if (iParam4 != -1)
  	{
  		iVar0 = iParam4;
  	}
  	if (func_71(iParam0, iParam1, &iVar2, &iVar1, bParam2, bParam3))
  	{
  		uVar3 = func_70(iVar2, iVar0, 0);
  		unk_0xBE20AB8238688965(&uVar3, iVar1);
  		func_68(iVar2, uVar3, iVar0, 1, 0);
  	}
  }
  
  void func_68(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4)
  {
  	int iVar0;
  	
  	if (bParam4)
  	{
  	}
  	iVar0 = Global_2551832[iParam0 /*3*/][func_69(iParam2)];
  	if (iVar0 != 0)
  	{
  		unk_0x6000E4684CB4330B(iVar0, iParam1, iParam3);
  	}
  }
  
  int func_69(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = uParam0;
  	if (iVar0 == -1)
  	{
  		iVar1 = func_11();
  		if (iVar1 > -1)
  		{
  			Global_2551544 = 0;
  			iVar0 = iVar1;
  		}
  		else
  		{
  			iVar0 = 0;
  			Global_2551544 = 1;
  		}
  	}
  	return iVar0;
  }
  
  int func_70(int iParam0, int iParam1, int iParam2)
  {
  	var uVar0;
  	var uVar1;
  	
  	if (iParam0 != 11771)
  	{
  		if (iParam2 == 0)
  		{
  		}
  		uVar0 = Global_2551832[iParam0 /*3*/][func_69(iParam1)];
  		if (unk_0xD2F202166691EDB2(uVar0, &uVar1, -1))
  		{
  			return uVar1;
  		}
  	}
  	return 0;
  }
  
  bool func_71(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_72(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_73(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;
  }
  
  int func_74(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_34(iParam1);
  	if (Global_111858.f_2359.f_539[iVar0 /*65*/].f_60 != -99)
  	{
  		if (!func_148(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_75(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;
  }
  
  struct<10> func_76(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_78(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_78(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_78(&Var1, 19, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_78(&Var1, 14, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_78(&Var1, 18, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_78(&Var1, 0, 59, 112, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_78(&Var1, 0, 60, 112, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_78(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_78(&Var1, 0, 60, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_78(&Var1, 55, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 9:
  					func_78(&Var1, 0, 1, 112, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_77(&Var1, iParam0, iParam1, 10);
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 31:
  					func_78(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_78(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_78(&Var1, 0, 82, 158, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_78(&Var1, 0, 1, 158, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_78(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_78(&Var1, 41, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_78(&Var1, 40, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_78(&Var1, 41, 95, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_78(&Var1, 0, 95, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_78(&Var1, 69, 95, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_77(&Var1, iParam0, iParam1, 9);
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 31:
  					func_78(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_78(&Var1, 11, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_78(&Var1, 17, 90, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_78(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_78(&Var1, 0, 88, 154, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_78(&Var1, 0, 1, 154, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_78(&Var1, 16, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_78(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_78(&Var1, 0, 123, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_78(&Var1, 69, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_77(&Var1, iParam0, iParam1, 9);
  					break;
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 31:
  					func_78(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_78(&Var1, 129, 167, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_78(&Var1, 90, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_78(&Var1, 23, 251, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_78(&Var1, 36, 262, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_78(&Var1, 88, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_78(&Var1, 125, 175, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_78(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_78(&Var1, 44, 208, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_78(&Var1, 52, 189, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 9:
  					func_78(&Var1, 0, 261, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 10:
  					func_78(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 11:
  					func_78(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 12:
  					func_78(&Var1, 0, 212, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 13:
  					func_78(&Var1, 64, 291, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 14:
  					func_78(&Var1, 61, 207, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 15:
  					func_78(&Var1, 0, 291, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 16:
  					func_78(&Var1, 0, 208, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 17:
  					func_78(&Var1, 0, 229, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 18:
  					func_78(&Var1, 36, 249, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 19:
  					func_78(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 20:
  					func_78(&Var1, 0, 174, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 21:
  					func_78(&Var1, 35, 180, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 22:
  					func_78(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 23:
  					func_78(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 24:
  					func_78(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_77(&Var1, iParam0, iParam1, 25);
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 31:
  					func_78(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 0:
  					func_78(&Var1, 35, 233, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 1:
  					func_78(&Var1, 36, 178, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 2:
  					func_78(&Var1, 53, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 3:
  					func_78(&Var1, 38, 170, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 4:
  					func_78(&Var1, 37, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 5:
  					func_78(&Var1, 113, 203, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 6:
  					func_78(&Var1, 114, 183, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 7:
  					func_78(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 8:
  					func_78(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 9:
  					func_78(&Var1, 0, 199, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 10:
  					func_78(&Var1, 0, 182, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 11:
  					func_78(&Var1, 0, 233, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 12:
  					func_78(&Var1, 107, 167, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 13:
  					func_78(&Var1, 109, 170, 2, 3, 4, 5, 323, 7, 8);
  					break;
  				
  				case 14:
  					func_78(&Var1, 119, 237, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 15:
  					func_78(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 16:
  					func_78(&Var1, 114, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 17:
  					func_78(&Var1, 35, 268, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 18:
  					func_78(&Var1, 0, 266, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 19:
  					func_78(&Var1, 42, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 20:
  					func_78(&Var1, 76, 1, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 21:
  					func_78(&Var1, 39, 235, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 22:
  					func_78(&Var1, 41, 183, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				case 23:
  					func_78(&Var1, 111, 194, 2, 3, 4, 5, 6, 7, 8);
  					break;
  				
  				default:
  					func_77(&Var1, iParam0, iParam1, 25);
  					break;
  			}
  			break;
  	}
  	return Var1;
  }
  
  void func_77(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_58(iParam1, Var2.x, 14, iVar0);
  					}
  					else if (Var2.f_1 != -1)
  					{
  						(*iParam0)[Var2.f_2] = Var2.f_1;
  					}
  				}
  				iVar3++;
  			}
  		}
  	}
  }
  
  void func_78(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_79(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_82(&Var1, -99, -99, 1, 1, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					}
  					else
  					{
  						func_82(&Var1, -99, -99, 0, 0, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					}
  					break;
  				
  				case 1:
  					func_82(&Var1, -99, -99, 16, 16, 6, 1, 1, 0, 1, -99, 0, 0, 0);
  					break;
  				
  				case 2:
  					func_82(&Var1, -99, -99, 36, 21, 6, 1, 5, 0, 0, -99, 0, 0, 8);
  					break;
  				
  				case 3:
  					func_82(&Var1, -99, -99, 65, 36, 6, 0, 2, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 4:
  					func_82(&Var1, -99, -99, 61, 32, 6, 0, 0, 7, 3, -99, 0, 0, 2);
  					break;
  				
  				case 5:
  					func_82(&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_82(&Var1, -99, -99, 92, 72, 7, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 7:
  					func_82(&Var1, -99, -99, 85, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 8:
  					func_82(&Var1, -99, -99, 170, 80, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 9:
  					func_82(&Var1, -99, -99, 171, 89, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 10:
  					func_82(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 4);
  					break;
  				
  				case 11:
  					func_82(&Var1, -99, -99, 33, 18, 17, 10, 4, 8, 0, -99, 0, 0, 5);
  					break;
  				
  				case 12:
  					func_82(&Var1, -99, -99, 35, 20, 9, 10, 23, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 13:
  					func_82(&Var1, -99, -99, 69, 40, 13, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 14:
  					func_82(&Var1, -99, -99, 62, 33, 38, 0, 8, 0, 0, -99, 0, 0, 6);
  					break;
  				
  				case 15:
  					func_82(&Var1, -99, -99, 63, 34, 6, 10, 0, 0, 4, -99, 0, 0, 31);
  					break;
  				
  				case 16:
  					func_82(&Var1, -99, -99, 174, 93, 18, 0, 18, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 17:
  					func_82(&Var1, -99, -99, 76, 46, 6, 10, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 18:
  					func_82(&Var1, -99, -99, 35, 20, 9, 10, 0, 4, 0, -99, 0, 0, 7);
  					break;
  				
  				case 19:
  					func_82(&Var1, -99, -99, 64, 35, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 20:
  					func_82(&Var1, -99, -99, 66, 37, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 21:
  					func_82(&Var1, -99, -99, 67, 38, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 22:
  					func_82(&Var1, -99, -99, 68, 39, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 23:
  					func_82(&Var1, -99, -99, 177, 94, 19, 9, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 24:
  					func_82(&Var1, -99, -99, 35, 20, 9, 10, 4, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 25:
  					func_82(&Var1, -99, -99, 97, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 26:
  					func_82(&Var1, -99, -99, 3, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 27:
  					func_82(&Var1, -99, -99, 129, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 28:
  					func_82(&Var1, -99, -99, 170, 80, 6, 0, 13, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 29:
  					func_82(&Var1, -99, -99, 2, 2, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 30:
  					func_82(&Var1, -99, -99, 161, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 31:
  					func_82(&Var1, -99, -99, 3, 3, 0, 12, 0, 0, 0, -99, 0, 1, 31);
  					break;
  				
  				case 32:
  					func_82(&Var1, -99, -99, 85, 55, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 33:
  					func_82(&Var1, -99, -99, 86, 4, 20, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 34:
  					func_82(&Var1, -99, -99, 44, 97, 6, 0, 0, 0, 0, -99, 0, 2, 31);
  					break;
  				
  				case 35:
  					func_82(&Var1, -99, -99, 85, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 36:
  					func_82(&Var1, -99, -99, 4, 4, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 37:
  					func_82(&Var1, -99, -99, 5, 5, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 38:
  					func_82(&Var1, -99, -99, 6, 6, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 39:
  					func_82(&Var1, -99, -99, 7, 7, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 40:
  					func_82(&Var1, -99, -99, 8, 8, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 41:
  					func_82(&Var1, -99, -99, 9, 9, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 42:
  					func_82(&Var1, -99, -99, 10, 10, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 43:
  					func_82(&Var1, -99, -99, 11, 11, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 44:
  					func_82(&Var1, -99, -99, 12, 12, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 45:
  					func_82(&Var1, -99, -99, 13, 13, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 46:
  					func_82(&Var1, -99, -99, 14, 14, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 47:
  					func_82(&Var1, -99, -99, 15, 15, 0, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 48:
  					func_82(&Var1, -99, -99, 91, 71, 14, 13, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 49:
  					func_82(&Var1, -99, -99, 35, 20, 9, 10, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 50:
  					func_82(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 9);
  					break;
  				
  				case 51:
  					func_82(&Var1, -99, -99, 169, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 52:
  					func_82(&Var1, -99, -99, 169, 72, 6, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				default:
  					func_80(&Var1, iParam0, iParam1, 53);
  					break;
  			}
  			break;
  		
  		case joaat("player_one"):
  			switch (iParam1)
  			{
  				case 0:
  					func_82(&Var1, -99, -99, 73, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 1:
  					func_82(&Var1, -99, -99, 22, 10, 64, 0, 24, 0, 0, -99, 0, 43, 31);
  					break;
  				
  				case 2:
  					func_82(&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_82(&Var1, -99, -99, 23, 11, 13, 5, 2, 4, 0, -99, 0, 0, 1);
  					break;
  				
  				case 4:
  					func_82(&Var1, -99, -99, 23, 11, 34, 5, 26, 0, 0, -99, 0, 0, 2);
  					break;
  				
  				case 5:
  					func_82(&Var1, -99, 20, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 6:
  					func_82(&Var1, -99, -99, 40, 13, 14, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 7:
  					func_82(&Var1, -99, -99, 90, 32, 17, 1, 8, 0, 1, -99, 0, 0, 3);
  					break;
  				
  				case 8:
  					func_82(&Var1, -99, -99, 17, 5, 12, 0, 26, 0, 2, -99, 0, 0, 5);
  					break;
  				
  				case 9:
  					func_82(&Var1, -99, -99, 16, 4, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 10:
  					func_82(&Var1, -99, -99, 208, 71, 17, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 11:
  					func_82(&Var1, -99, -99, 259, 10, 35, 0, 24, 0, 0, -99, 0, 43, 31);
  					break;
  				
  				case 12:
  					func_82(&Var1, -99, -99, 18, 6, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 13:
  					func_82(&Var1, -99, -99, 19, 7, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 14:
  					func_82(&Var1, -99, -99, 20, 8, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 15:
  					func_82(&Var1, -99, -99, 21, 9, 12, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 16:
  					func_82(&Var1, -99, -99, 135, 40, 0, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 17:
  					func_82(&Var1, -99, -99, 74, 24, 52, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 18:
  					func_82(&Var1, -99, -99, 176, 53, 26, 5, 26, 0, 0, -99, 0, 41, 31);
  					break;
  				
  				case 19:
  					func_82(&Var1, -99, -99, 125, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 20:
  					func_82(&Var1, -99, -99, 162, 24, 36, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 21:
  					func_82(&Var1, -99, -99, 75, 24, 36, 0, 26, 0, 0, -99, 0, 0, 4);
  					break;
  				
  				case 22:
  					func_82(&Var1, -99, -99, 227, 53, 25, 0, 27, 0, 0, -99, 0, 25, 31);
  					break;
  				
  				case 23:
  					func_82(&Var1, -99, -99, 228, 54, 25, 0, 28, 0, 0, -99, 0, 26, 31);
  					break;
  				
  				case 24:
  					func_82(&Var1, -99, -99, 229, 55, 25, 0, 29, 0, 0, -99, 0, 27, 31);
  					break;
  				
  				case 25:
  					func_82(&Var1, -99, -99, 230, 56, 25, 0, 30, 0, 0, -99, 0, 28, 31);
  					break;
  				
  				case 26:
  					func_82(&Var1, -99, -99, 231, 57, 25, 0, 31, 0, 0, -99, 0, 29, 31);
  					break;
  				
  				case 27:
  					func_82(&Var1, -99, -99, 232, 58, 25, 0, 32, 0, 0, -99, 0, 30, 31);
  					break;
  				
  				case 28:
  					func_82(&Var1, -99, -99, 233, 59, 25, 0, 33, 0, 0, -99, 0, 31, 31);
  					break;
  				
  				case 29:
  					func_82(&Var1, -99, -99, 234, 60, 25, 0, 34, 0, 0, -99, 0, 32, 31);
  					break;
  				
  				case 30:
  					func_82(&Var1, -99, -99, 235, 61, 25, 0, 35, 0, 0, -99, 0, 33, 31);
  					break;
  				
  				case 31:
  					func_82(&Var1, -99, -99, 236, 62, 25, 0, 36, 0, 0, -99, 0, 34, 31);
  					break;
  				
  				case 32:
  					func_82(&Var1, -99, -99, 237, 63, 25, 0, 37, 0, 0, -99, 0, 35, 31);
  					break;
  				
  				case 33:
  					func_82(&Var1, -99, -99, 238, 64, 25, 0, 38, 0, 0, -99, 0, 36, 31);
  					break;
  				
  				case 34:
  					func_82(&Var1, -99, -99, 239, 65, 25, 0, 39, 0, 0, -99, 0, 37, 31);
  					break;
  				
  				case 35:
  					func_82(&Var1, -99, -99, 240, 66, 25, 0, 40, 0, 0, -99, 0, 38, 31);
  					break;
  				
  				case 36:
  					func_82(&Var1, -99, -99, 241, 67, 25, 0, 41, 0, 0, -99, 0, 39, 31);
  					break;
  				
  				case 37:
  					func_82(&Var1, -99, -99, 242, 68, 25, 0, 42, 0, 0, -99, 0, 40, 31);
  					break;
  				
  				case 38:
  					func_82(&Var1, -99, -99, 260, 72, 17, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 39:
  					func_82(&Var1, -99, -99, 125, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 40:
  					func_82(&Var1, -99, -99, 123, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 41:
  					func_82(&Var1, -99, -99, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 42:
  					func_82(&Var1, -99, -99, 89, 22, 15, 6, 26, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 43:
  					func_82(&Var1, -99, -99, 317, 69, 17, 0, 0, 0, 51, -99, 0, 0, 6);
  					break;
  				
  				case 44:
  					func_82(&Var1, -99, -99, 30, 23, 16, 0, 0, 0, 0, -99, 0, 0, 7);
  					break;
  				
  				case 45:
  					func_82(&Var1, -99, -99, 106, 70, 17, 5, 26, 0, 0, -99, 0, 0, 8);
  					break;
  				
  				case 46:
  					func_82(&Var1, -99, -99, 117, 24, 20, 5, 26, 0, 52, -99, 0, 0, 31);
  					break;
  				
  				default:
  					func_80(&Var1, iParam0, iParam1, 47);
  					break;
  			}
  			break;
  		
  		case joaat("player_two"):
  			switch (iParam1)
  			{
  				case 0:
  					func_82(&Var1, -99, -99, 0, 91, 28, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 1:
  					func_82(&Var1, -99, -99, 17, 5, 8, 2, 3, 0, 0, -99, 0, 0, 8);
  					break;
  				
  				case 2:
  					func_82(&Var1, -99, -99, 43, 8, 12, 3, 5, 0, 0, -99, 0, 0, 1);
  					break;
  				
  				case 3:
  					func_82(&Var1, -99, -99, 50, 14, 8, 0, 15, 6, 3, -99, 0, 0, 2);
  					break;
  				
  				case 4:
  					func_82(&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_82(&Var1, -99, -99, 95, 33, 8, 0, 15, 0, 0, -99, 0, 0, 6);
  					break;
  				
  				case 6:
  					func_82(&Var1, -99, -99, 49, 13, 10, 4, 6, 0, 0, -99, 0, 0, 3);
  					break;
  				
  				case 7:
  					func_82(&Var1, -99, -99, 49, 13, 14, 4, 15, 0, 0, -99, 0, 0, 4);
  					break;
  				
  				case 8:
  					func_82(&Var1, -99, -99, 79, 32, 8, 5, 7, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 9:
  					func_82(&Var1, -99, -99, 53, 17, 11, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 10:
  					func_82(&Var1, -99, -99, 96, 81, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 11:
  					func_82(&Var1, -99, -99, 51, 15, 33, 0, 8, 0, 0, -99, 0, 0, 5);
  					break;
  				
  				case 12:
  					func_82(&Var1, -99, -99, 0, 93, 29, 0, 13, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 13:
  					func_82(&Var1, -99, -99, 52, 16, 30, 5, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 14:
  					func_82(&Var1, -99, -99, 241, 92, 16, 0, 12, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 15:
  					func_82(&Var1, -99, -99, 97, 34, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 16:
  					func_82(&Var1, -99, -99, 44, 9, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 17:
  					func_82(&Var1, -99, -99, 45, 10, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 18:
  					func_82(&Var1, -99, -99, 46, 11, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 19:
  					func_82(&Var1, -99, -99, 47, 12, 12, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 20:
  					func_82(&Var1, -99, -99, 161, 53, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 21:
  					func_82(&Var1, -99, -99, 0, 44, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 22:
  					func_82(&Var1, -99, -99, 98, 0, 28, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 23:
  					func_82(&Var1, -99, -99, 27, 0, 31, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 24:
  					func_82(&Var1, -99, -99, 190, 71, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 25:
  					func_82(&Var1, -99, -99, 191, 72, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 26:
  					func_82(&Var1, -99, -99, 192, 73, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 27:
  					func_82(&Var1, -99, -99, 193, 74, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 28:
  					func_82(&Var1, -99, -99, 194, 75, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 29:
  					func_82(&Var1, -99, -99, 195, 76, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 30:
  					func_82(&Var1, -99, -99, 196, 77, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 31:
  					func_82(&Var1, -99, -99, 197, 78, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 32:
  					func_82(&Var1, -99, -99, 198, 79, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 33:
  					func_82(&Var1, -99, -99, 199, 80, 8, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 34:
  					func_82(&Var1, -99, -99, 200, 62, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 35:
  					func_82(&Var1, -99, -99, 201, 63, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 36:
  					func_82(&Var1, -99, -99, 202, 64, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 37:
  					func_82(&Var1, -99, -99, 203, 65, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 38:
  					func_82(&Var1, -99, -99, 204, 66, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 39:
  					func_82(&Var1, -99, -99, 205, 67, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 40:
  					func_82(&Var1, -99, -99, 206, 68, 16, 0, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 41:
  					func_82(&Var1, -99, -99, 2, 43, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 42:
  					func_82(&Var1, -99, -99, 55, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 43:
  					func_82(&Var1, -99, -99, 0, 52, 8, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 44:
  					func_82(&Var1, -99, -99, 70, 30, 32, 6, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 45:
  					func_82(&Var1, -99, -99, 19, 91, 28, 0, 0, 0, 0, -99, 0, 0, 7);
  					break;
  				
  				case 46:
  					func_82(&Var1, -99, -99, 0, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				case 47:
  					func_82(&Var1, -99, -99, 79, 32, 8, 5, 15, 0, 0, -99, 0, 0, 31);
  					break;
  				
  				default:
  					func_80(&Var1, iParam0, iParam1, 48);
  					break;
  			}
  			break;
  		
  		case joaat("mp_m_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					func_82(&Var1, -99, -99, 0, 0, 10, -99, 0, -99, -99, 0, 0, 0, 31);
  					break;
  				
  				case 1:
  					func_82(&Var1, -99, -99, 1, 127, 38, -99, 2, 0, 0, 0, 0, 62, 0);
  					break;
  				
  				case 2:
  					func_82(&Var1, -99, -99, 0, 248, 45, -99, 240, 0, 0, 0, 0, 144, 1);
  					break;
  				
  				case 3:
  					func_82(&Var1, -99, -99, 4, 31, 25, -99, 240, 0, 0, 0, 0, 231, 2);
  					break;
  				
  				case 4:
  					func_82(&Var1, -99, -99, 1, 66, 10, -99, 21, 0, 0, 0, 0, 123, 3);
  					break;
  				
  				case 5:
  					func_82(&Var1, -99, -99, 1, 93, 141, -99, 3, 0, 0, 0, 0, 114, 4);
  					break;
  				
  				case 6:
  					func_82(&Var1, -99, -99, 1, 116, 113, -99, 7, 0, 0, 0, 0, 113, 5);
  					break;
  				
  				case 7:
  					func_82(&Var1, -99, -99, 1, 61, 136, -99, 27, 0, 0, 0, 0, 61, 6);
  					break;
  				
  				case 8:
  					func_82(&Var1, -99, -99, 0, 112, 10, -99, 240, 0, 0, 0, 0, 8, 7);
  					break;
  				
  				case 9:
  					func_82(&Var1, -99, -99, 4, 131, 24, -99, 240, 0, 0, 0, 0, 223, 8);
  					break;
  				
  				case 10:
  					func_82(&Var1, -99, -99, 1, 209, 188, -99, 208, 0, 0, 0, 0, 64, 9);
  					break;
  				
  				case 11:
  					func_82(&Var1, -99, -99, 1, 209, 160, -99, 211, 0, 0, 0, 43, 157, 10);
  					break;
  				
  				case 12:
  					func_82(&Var1, -99, -99, 1, 162, 174, -99, 201, 0, 0, 0, 0, 158, 11);
  					break;
  				
  				case 13:
  					func_82(&Var1, -99, -99, 1, 4, 240, -99, 34, 0, 0, 0, 0, 97, 12);
  					break;
  				
  				case 14:
  					func_82(&Var1, -99, -99, 1, 128, 232, -99, 43, 0, 0, 0, 0, 102, 13);
  					break;
  				
  				case 15:
  					func_82(&Var1, -99, -99, 1, 66, 65, -99, 224, 0, 0, 0, 0, 100, 14);
  					break;
  				
  				case 16:
  					func_82(&Var1, -99, -99, 1, 65, 172, -99, 202, 0, 0, 0, 0, 64, 15);
  					break;
  				
  				case 17:
  					func_82(&Var1, -99, -99, 1, 64, 10, -99, 1, 0, 0, 0, 0, 66, 16);
  					break;
  				
  				case 18:
  					func_82(&Var1, -99, -99, 5, 98, 80, -99, 240, 0, 0, 0, 0, 87, 17);
  					break;
  				
  				case 19:
  					func_82(&Var1, -99, -99, 5, 192, 96, -99, 240, 0, 0, 0, 0, 80, 18);
  					break;
  				
  				case 20:
  					func_82(&Var1, -99, -99, 1, 124, 96, -99, 11, 0, 0, 0, 0, 110, 19);
  					break;
  				
  				case 21:
  					func_82(&Var1, -99, -99, 0, 80, 114, -99, 240, 0, 0, 0, 0, 2, 20);
  					break;
  				
  				case 22:
  					func_82(&Var1, -99, -99, 6, 43, 112, -99, 82, 0, 0, 0, 0, 48, 21);
  					break;
  				
  				case 23:
  					func_82(&Var1, -99, -99, 1, 116, 144, -99, 2, 0, 0, 0, 0, 108, 22);
  					break;
  				
  				case 24:
  					func_82(&Var1, -99, -99, 1, 63, 38, -99, 3, 0, 0, 0, 0, 63, 23);
  					break;
  				
  				case 25:
  					func_82(&Var1, -99, -99, 2, 64, 10, -99, 240, 0, 0, 0, 0, 41, 24);
  					break;
  				
  				default:
  					func_80(&Var1, iParam0, iParam1, 26);
  					break;
  			}
  			break;
  		
  		case joaat("mp_f_freemode_01"):
  			switch (iParam1)
  			{
  				case 0:
  					func_82(&Var1, -99, -99, 0, 0, 0, -99, 0, -99, -99, 0, -99, 0, 31);
  					break;
  				
  				case 1:
  					func_82(&Var1, -99, -99, 5, 136, 241, -99, 47, 0, 0, 0, 0, 21, 31);
  					break;
  				
  				case 2:
  					func_82(&Var1, -99, -99, 4, 1, 96, -99, 32, 0, 0, 0, 7, 215, 0);
  					break;
  				
  				case 3:
  					func_82(&Var1, -99, -99, 1, 73, 241, -99, 3, 0, 0, 0, 0, 25, 1);
  					break;
  				
  				case 4:
  					func_82(&Var1, -99, -99, 2, 88, 217, -99, 32, 0, 0, 0, 0, 33, 2);
  					break;
  				
  				case 5:
  					func_82(&Var1, -99, -99, 9, 7, 98, -99, 32, 0, 0, 0, 7, 153, 3);
  					break;
  				
  				case 6:
  					func_82(&Var1, -99, -99, 1, 140, 241, -99, 7, 0, 0, 0, 31, 16, 4);
  					break;
  				
  				case 7:
  					func_82(&Var1, -99, -99, 4, 139, 112, -99, 32, 0, 0, 0, 49, 78, 5);
  					break;
  				
  				case 8:
  					func_82(&Var1, -99, -99, 1, 193, 48, -99, 108, 0, 0, 0, 0, 17, 6);
  					break;
  				
  				case 9:
  					func_82(&Var1, -99, -99, 5, 114, 97, -99, 103, 0, 0, 0, 0, 98, 7);
  					break;
  				
  				case 10:
  					func_82(&Var1, -99, -99, 9, 134, 239, -99, 32, 0, 0, 0, 2, 144, 8);
  					break;
  				
  				case 11:
  					func_82(&Var1, -99, -99, 5, 152, 96, -99, 10, 0, 0, 0, 31, 96, 9);
  					break;
  				
  				case 12:
  					func_82(&Var1, -99, -99, 6, 129, 1, -99, 96, 0, 0, 0, 5, 120, 10);
  					break;
  				
  				case 13:
  					func_82(&Var1, -99, -99, 5, 0, 0, -99, 10, 0, 0, 0, 0, 130, 31);
  					break;
  				
  				case 14:
  					func_82(&Var1, -99, -99, 4, 159, 96, -99, 32, 0, 0, 0, 22, 214, 11);
  					break;
  				
  				case 15:
  					func_82(&Var1, -99, -99, 9, 232, 213, -99, 32, 0, 0, 0, 22, 147, 12);
  					break;
  				
  				case 16:
  					func_82(&Var1, -99, -99, 2, 8, 98, -99, 32, 0, 0, 0, 33, 39, 13);
  					break;
  				
  				case 17:
  					func_82(&Var1, -99, -99, 5, 150, 235, -99, 106, 0, 0, 0, 0, 128, 14);
  					break;
  				
  				case 18:
  					func_82(&Var1, -99, -99, 6, 96, 97, -99, 7, 0, 0, 0, 32, 114, 15);
  					break;
  				
  				case 19:
  					func_82(&Var1, -99, -99, 4, 48, 64, -99, 32, 0, 0, 0, 0, 89, 16);
  					break;
  				
  				case 20:
  					func_82(&Var1, -99, -99, 4, 62, 64, -99, 32, 0, 0, 0, 0, 78, 17);
  					break;
  				
  				case 21:
  					func_82(&Var1, -99, -99, 4, 49, 65, -99, 32, 0, 0, 0, 8, 80, 31);
  					break;
  				
  				case 22:
  					func_82(&Var1, -99, -99, 3, 20, 16, -99, 32, 0, 0, 0, 0, 49, 18);
  					break;
  				
  				case 23:
  					func_82(&Var1, -99, -99, 0, 73, 178, -99, 32, 0, 0, 0, 38, 11, 19);
  					break;
  				
  				case 24:
  					func_82(&Var1, -99, -99, 5, 135, 53, -99, 9, 0, 0, 0, 29, 27, 20);
  					break;
  				
  				case 25:
  					func_82(&Var1, -99, -99, 7, 233, 176, -99, 120, 0, 0, 0, 11, 160, 21);
  					break;
  				
  				case 26:
  					func_82(&Var1, -99, -99, 4, 34, 179, -99, 32, 0, 0, 0, 0, 77, 22);
  					break;
  				
  				case 27:
  					func_82(&Var1, -99, -99, 15, 131, 93, -99, 32, 0, 0, 0, 0, 250, 23);
  					break;
  				
  				default:
  					func_80(&Var1, iParam0, iParam1, 28);
  					break;
  			}
  			break;
  	}
  	return Var1;
  }
  
  void func_80(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_81(Var2.f_2)] = Var2.x;
  						uParam0->f_16 = 1;
  					}
  					else
  					{
  						(*uParam0)[func_81(Var2.f_2)] = func_58(iParam1, Var2.x, func_81(Var2.f_2), iVar0);
  					}
  				}
  				else if (Var2.f_1 != -1)
  				{
  					(*uParam0)[func_81(Var2.f_2)] = Var2.f_1;
  				}
  			}
  			iVar4++;
  		}
  		if (Var1.f_3 == 0)
  		{
  			(*uParam0)[13] = -99;
  		}
  		else
  		{
  			(*uParam0)[13] = Var1.f_1;
  		}
  	}
  }
  
  int func_81(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_82(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;
  }
  
  struct<14> func_83(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	func_147();
  	if (iParam0 == joaat("player_zero"))
  	{
  		func_129(iParam1, iParam2);
  	}
  	else if (iParam0 == joaat("player_one"))
  	{
  		func_110(iParam1, iParam2);
  	}
  	else if (iParam0 == joaat("player_two"))
  	{
  		func_84(iParam1, iParam2);
  	}
  	return Global_76647[0 /*14*/];
  }
  
  void func_84(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_109(iParam1);
  			break;
  		
  		case 2:
  			func_108(iParam1);
  			break;
  		
  		case 3:
  			func_105(iParam1);
  			break;
  		
  		case 4:
  			func_104(iParam1);
  			break;
  		
  		case 6:
  			func_103(iParam1);
  			break;
  		
  		case 5:
  			func_102(iParam1);
  			break;
  		
  		case 8:
  			func_101(iParam1);
  			break;
  		
  		case 9:
  			func_100(iParam1);
  			break;
  		
  		case 10:
  			func_99(iParam1);
  			break;
  		
  		case 1:
  			func_98(iParam1);
  			break;
  		
  		case 7:
  			func_97(iParam1);
  			break;
  		
  		case 11:
  			func_96(iParam1);
  			break;
  		
  		case 12:
  			func_95(iParam1);
  			break;
  		
  		case 13:
  			func_94(iParam1);
  			break;
  		
  		case 14:
  			func_85(iParam1);
  			break;
  	}
  }
  
  void func_85(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_93(iVar7, iParam0, 155, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_86(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, int iParam6, bool bParam7, int iParam8, int iParam9, bool bParam10)
  {
  	var uVar0;
  	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_92(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_91(14))
  		{
  			return;
  		}
  		if (iParam1 == 1)
  		{
  			if (unk_0x4D0432E34C5996D9(Global_2621444, joaat("REBREATHER"), 0))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 7);
  			}
  		}
  		if (iParam1 == 12)
  		{
  			if (!func_90(Global_2621444, 1, 1, 1, -1))
  			{
  				unk_0xD2459066EA58CE43(&(uParam0->f_6), 2);
  			}
  			if (!func_90(Global_2621444, 2, 1, 1, -1))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 4);
  			}
  		}
  		else if (iParam1 == 13)
  		{
  		}
  		else if (iParam1 == 14)
  		{
  			if (!func_90(Global_2621444, 1, 1, 1, -1))
  			{
  				unk_0xD2459066EA58CE43(&(uParam0->f_6), 2);
  			}
  			if (!func_90(Global_2621444, 2, 1, 1, -1))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 4);
  			}
  		}
  		else
  		{
  			if (!func_90(Global_2621444, 1, 1, 1, -1))
  			{
  				unk_0xD2459066EA58CE43(&(uParam0->f_6), 2);
  			}
  			if (!func_90(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_72(iParam1, uParam0->f_5, uParam0->f_2, 0, uParam0->f_1, 0, 0))
  		{
  			unk_0xBE20AB8238688965(&(uParam0->f_6), 1);
  		}
  		if (func_72(iParam1, uParam0->f_5, uParam0->f_2, 1, uParam0->f_1, 0, 0))
  		{
  			unk_0xBE20AB8238688965(&(uParam0->f_6), 2);
  		}
  		if (!func_72(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_91(14))
  			{
  				return;
  			}
  			uVar0 = func_70(func_89(iParam1, uParam0->f_2), Global_76644, 0);
  			if (unk_0xCE990E643CD9D0E5(uVar0, uParam0->f_1))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 1);
  			}
  			iVar0 = func_70(func_88(iParam1, uParam0->f_2), Global_76644, 0);
  			if (unk_0xCE990E643CD9D0E5(iVar0, uParam0->f_1))
  			{
  				unk_0xBE20AB8238688965(&(uParam0->f_6), 2);
  			}
  			if (func_87(iParam1, uParam0->f_2, &iVar1))
  			{
  				iVar0 = func_70(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_87(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_88(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_89(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_90(int iParam0, int iParam1, bool bParam2, bool bParam3, int iParam4)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	var uVar3;
  	
  	iVar0 = Global_76644;
  	if (iParam4 != -1)
  	{
  		iVar0 = iParam4;
  	}
  	if (func_71(iParam0, iParam1, &iVar2, &iVar1, bParam2, bParam3))
  	{
  		uVar3 = func_70(iVar2, iVar0, 0);
  		return unk_0xCE990E643CD9D0E5(uVar3, iVar1);
  	}
  	return 0;
  }
  
  bool func_91(int iParam0)
  {
  	return Global_41631 == iParam0;
  }
  
  int func_92(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_93(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_86(&(Global_76647[0 /*14*/]), iParam0, iParam1, &(Var2.f_7), 0, 0, Var2.f_2, 0, -1, 2, 1);
  				return;
  			}
  		}
  	}
  	else if (iParam0 == 13)
  	{
  		func_86(&(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_86(&(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_86(&(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_75(iParam0));
  			if (iVar11 > iVar10)
  			{
  				unk_0x627AC3AC8991672C(iVar10, &Var9);
  				Global_2621444 = Var9.f_1;
  				Global_2621445 = Var9;
  				func_86(&(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_94(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_93(iVar7, iParam0, 9, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_95(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_93(iVar7, iParam0, 48, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_96(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_93(iVar7, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_97(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_93(iVar7, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_98(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_93(iVar7, iParam0, 6, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_99(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_93(iVar7, iParam0, 33, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_100(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_93(iVar7, iParam0, 17, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_101(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_93(iVar7, iParam0, 18, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_102(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_93(iVar7, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_103(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_93(iVar7, iParam0, 84, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_104(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_93(iVar7, iParam0, 104, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_105(int iParam0)
  {
  	if (iParam0 < 136)
  	{
  		func_107(iParam0);
  	}
  	else
  	{
  		func_106(iParam0);
  	}
  	if (Global_76647[0 /*14*/].f_2 == -1)
  	{
  		func_93(3, iParam0, 242, -1);
  	}
  }
  
  void func_106(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_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_107(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_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_108(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_93(iVar7, iParam0, 9, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_109(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_93(iVar7, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_110(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_128(iParam1);
  			break;
  		
  		case 2:
  			func_127(iParam1);
  			break;
  		
  		case 3:
  			func_123(iParam1);
  			break;
  		
  		case 4:
  			func_122(iParam1);
  			break;
  		
  		case 6:
  			func_121(iParam1);
  			break;
  		
  		case 5:
  			func_120(iParam1);
  			break;
  		
  		case 8:
  			func_119(iParam1);
  			break;
  		
  		case 9:
  			func_118(iParam1);
  			break;
  		
  		case 10:
  			func_117(iParam1);
  			break;
  		
  		case 1:
  			func_116(iParam1);
  			break;
  		
  		case 7:
  			func_115(iParam1);
  			break;
  		
  		case 11:
  			func_114(iParam1);
  			break;
  		
  		case 12:
  			func_113(iParam1);
  			break;
  		
  		case 13:
  			func_112(iParam1);
  			break;
  		
  		case 14:
  			func_111(iParam1);
  			break;
  	}
  }
  
  void func_111(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_93(iVar7, iParam0, 175, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_112(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_93(iVar7, iParam0, 9, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_113(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_93(iVar7, iParam0, 47, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_114(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_93(iVar7, iParam0, 63, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_115(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_93(iVar7, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_116(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_93(iVar7, iParam0, 5, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_117(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_93(iVar7, iParam0, 53, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_118(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_93(iVar7, iParam0, 12, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_119(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_93(iVar7, iParam0, 77, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_120(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_93(iVar7, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_121(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_93(iVar7, iParam0, 134, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_122(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_93(iVar7, iParam0, 117, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_123(int iParam0)
  {
  	if (iParam0 < 107)
  	{
  		func_126(iParam0);
  	}
  	else if (iParam0 < 227)
  	{
  		func_125(iParam0);
  	}
  	else
  	{
  		func_124(iParam0);
  	}
  	if (Global_76647[0 /*14*/].f_2 == -1)
  	{
  		func_93(3, iParam0, 318, -1);
  	}
  }
  
  void func_124(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_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_125(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_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_126(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_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_127(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_93(iVar7, iParam0, 21, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_128(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_93(iVar7, iParam0, 10, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_129(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_146(iParam1);
  			break;
  		
  		case 2:
  			func_145(iParam1);
  			break;
  		
  		case 3:
  			func_142(iParam1);
  			break;
  		
  		case 4:
  			func_141(iParam1);
  			break;
  		
  		case 6:
  			func_140(iParam1);
  			break;
  		
  		case 5:
  			func_139(iParam1);
  			break;
  		
  		case 8:
  			func_138(iParam1);
  			break;
  		
  		case 9:
  			func_137(iParam1);
  			break;
  		
  		case 10:
  			func_136(iParam1);
  			break;
  		
  		case 1:
  			func_135(iParam1);
  			break;
  		
  		case 7:
  			func_134(iParam1);
  			break;
  		
  		case 11:
  			func_133(iParam1);
  			break;
  		
  		case 12:
  			func_132(iParam1);
  			break;
  		
  		case 13:
  			func_131(iParam1);
  			break;
  		
  		case 14:
  			func_130(iParam1);
  			break;
  	}
  }
  
  void func_130(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_93(iVar7, iParam0, 113, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_131(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_93(iVar7, iParam0, 10, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_132(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_93(iVar7, iParam0, 53, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_133(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_93(iVar7, iParam0, 45, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_134(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_93(iVar7, iParam0, 1, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_135(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_93(iVar7, iParam0, 5, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_136(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_93(iVar7, iParam0, 48, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_137(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_93(iVar7, iParam0, 20, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_138(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_93(iVar7, iParam0, 24, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_139(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_93(iVar7, iParam0, 14, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_140(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_93(iVar7, iParam0, 99, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_141(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_93(iVar7, iParam0, 113, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_142(int iParam0)
  {
  	if (iParam0 < 60)
  	{
  		func_144(iParam0);
  	}
  	else
  	{
  		func_143(iParam0);
  	}
  	if (Global_76647[0 /*14*/].f_2 == -1)
  	{
  		func_93(3, iParam0, 181, -1);
  	}
  }
  
  void func_143(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_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_144(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_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_145(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_93(iVar7, iParam0, 6, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_146(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_93(iVar7, iParam0, 7, -1);
  			return;
  			break;
  	}
  	func_86(&(Global_76647[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
  }
  
  void func_147()
  {
  	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_148(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_83(iVar0, iParam1, iParam2, -1) };
  	if (!unk_0xCE990E643CD9D0E5(Global_76647[1 /*14*/].f_6, 0))
  	{
  		return 0;
  	}
  	if (iParam1 == 12)
  	{
  		uVar5 = { func_79(iVar0, iParam2) };
  		iVar2 = 0;
  		while (iVar2 <= 14)
  		{
  			if ((uVar5[iVar2] != -99 && iVar2 != 12) && iVar2 != 14)
  			{
  				if (!func_148(iParam0, iVar2, uVar5[iVar2]))
  				{
  					if (iVar2 == 13)
  					{
  						uVar6 = { func_76(iVar0, uVar5[iVar2]) };
  						iVar3 = 0;
  						while (iVar3 <= 8)
  						{
  							if (!func_148(iParam0, 14, uVar6[iVar3]))
  							{
  								iVar4 = 0;
  								while (iVar4 <= 19)
  								{
  									Global_76647[2 /*14*/] = { func_83(iVar0, 14, iVar4, -1) };
  									if (Global_76647[2 /*14*/].f_12 == iVar3)
  									{
  										if (func_148(iParam0, 14, iVar4))
  										{
  											if (!func_39(iVar0, iParam2, 14, iVar4, &uVar5, &(Global_76647[2 /*14*/])))
  											{
  												return 0;
  											}
  										}
  									}
  									iVar4++;
  								}
  							}
  							iVar3++;
  						}
  					}
  					else
  					{
  						iVar1 = func_64(iParam0, iVar2);
  						Global_76647[2 /*14*/] = { func_83(iVar0, iVar2, iVar1, -1) };
  						if (!func_39(iVar0, iParam2, iVar2, iVar1, &uVar5, &(Global_76647[2 /*14*/])))
  						{
  							return 0;
  						}
  					}
  				}
  			}
  			iVar2++;
  		}
  		return 1;
  	}
  	else if (iParam1 == 13)
  	{
  		uVar8 = { func_76(iVar0, iParam2) };
  		iVar7 = 0;
  		while (iVar7 <= 8)
  		{
  			if (!func_148(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_75(iParam1)) && Global_76647[1 /*14*/].f_4 == unk_0x79AFA009D186C4FB(iParam0, func_75(iParam1)))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_149(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (unk_0xAE06B9E39EBDE049(iParam0))
  	{
  		iVar1 = unk_0x36FE6D3220816ADA(iParam0);
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			if (func_150(iVar0) == iVar1)
  			{
  				return iVar0;
  			}
  			iVar0++;
  		}
  	}
  	return 145;
  }
  
  int func_150(int iParam0)
  {
  	if (func_152(iParam0))
  	{
  		return func_151(iParam0);
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  var func_151(int iParam0)
  {
  	return Global_1848[iParam0 /*29*/];
  }
  
  bool func_152(int iParam0)
  {
  	return iParam0 < 3;
  }
  
  void func_153(var uParam0, int iParam1)
  {
  	unk_0xBB595CEB66B13077(joaat("SP_LAST_MISSION_NAME"), uParam0, 1);
  	if (unk_0xCE990E643CD9D0E5(iParam1, 0))
  	{
  		unk_0xBB595CEB66B13077(joaat("SP0_LAST_MISSION_NAME"), uParam0, 1);
  	}
  	if (unk_0xCE990E643CD9D0E5(iParam1, 1))
  	{
  		unk_0xBB595CEB66B13077(joaat("SP1_LAST_MISSION_NAME"), uParam0, 1);
  	}
  	if (unk_0xCE990E643CD9D0E5(iParam1, 2))
  	{
  		unk_0xBB595CEB66B13077(joaat("SP2_LAST_MISSION_NAME"), uParam0, 1);
  	}
  }
  
  int func_154()
  {
  	func_155();
  	switch (Global_111858.f_2359.f_539.f_4321)
  	{
  		case 0:
  			return 1;
  			break;
  		
  		case 1:
  			return 2;
  			break;
  		
  		case 2:
  			return 4;
  			break;
  	}
  	return 0;
  }
  
  void func_155()
  {
  	int iVar0;
  	
  	if (unk_0xAE06B9E39EBDE049(unk_0x9B0761B4C3EB8BC7()))
  	{
  		if (func_150(Global_111858.f_2359.f_539.f_4321) != unk_0x36FE6D3220816ADA(unk_0x9B0761B4C3EB8BC7()))
  		{
  			iVar0 = func_149(unk_0x9B0761B4C3EB8BC7());
  			if (func_152(iVar0) && (!func_91(14) || Global_110809))
  			{
  				if (Global_111858.f_2359.f_539.f_4321 != iVar0 && func_152(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;
  }
  
  struct<2> func_156(int iParam0)
  {
  	struct<2> Var0;
  	char[] cVar1[8];
  	
  	StringCopy(&Var0, "", 8);
  	cVar1 = { func_157(iParam0) };
  	if (unk_0x7BCC91F3C1CF24E8(&cVar1))
  	{
  	}
  	else
  	{
  		StringCopy(&Var0, "RC_", 8);
  		StringConCat(&Var0, &cVar1, 8);
  	}
  	return Var0;
  }
  
  struct<2> func_157(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_158(int iParam0, int iParam1)
  {
  	Global_77101 = iParam1;
  	if (Global_61711)
  	{
  		return;
  	}
  	if (Global_61738)
  	{
  		Global_61738 = 0;
  		return;
  	}
  	if (unk_0x7B70881748D166CD(joaat("mission_stat_watcher")) > 0)
  	{
  		if (Global_61711)
  		{
  		}
  		Global_61737 = iParam0;
  		Global_61711 = 1;
  		Global_61722 = 1;
  	}
  }
  
  void func_159(int iParam0, int iParam1, int iParam2, int iParam3)
  {
  	if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  	{
  		unk_0x694113444F21E39F(unk_0x9B0761B4C3EB8BC7(), 32, 1);
  		unk_0x694113444F21E39F(unk_0x9B0761B4C3EB8BC7(), 250, 1);
  	}
  	unk_0xDDEDC06C88DA4E04(unk_0x460153A63B9477BC(), true, 0);
  	unk_0x34FEEAC2548C3789(1f);
  	unk_0x53797676AD34A9AA(5);
  	unk_0xAF3D0236D181BE08(unk_0x460153A63B9477BC(), 0);
  	unk_0x39B3FA55B5C6CFFE(unk_0x460153A63B9477BC(), 1f);
  	unk_0xE7D74FCE32F704E7(unk_0x460153A63B9477BC(), 1f);
  	unk_0x644F1D0C5427A242(1);
  	unk_0x8CFF639CEFF5CF16(1);
  	unk_0xD50CC9B03AAD56FF(0, 0);
  	unk_0x01BFF6CEF1167310(1f);
  	func_170();
  	func_169(1, 1);
  	func_168();
  	func_166();
  	func_165(30000);
  	if (iParam1 == 1)
  	{
  		func_160(iParam0, iParam2, iParam3);
  	}
  	unk_0x694F632EFD1F47D0(0, 0);
  }
  
  void func_160(int iParam0, int iParam1, int iParam2)
  {
  	struct<4> Var0;
  	var uVar1;
  	
  	if (iParam0 != -1)
  	{
  		func_162(iParam0, &Var0);
  		MemCopy(&uVar1, {func_157(iParam0)}, 4);
  		unk_0xB932BB0105405712(&uVar1, 0, Global_98992, 0);
  		func_161(&uVar1, Var0.f_3, Global_98992, iParam1, iParam2);
  	}
  }
  
  void func_161(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4)
  {
  	if (unk_0x7BCC91F3C1CF24E8(&Global_96025))
  	{
  		return;
  	}
  	if (unk_0xADBFE878606408EB(uParam0, &Global_96025, 0, -1) != 0)
  	{
  		return;
  	}
  	unk_0x0EBA6E775E8E6AF8(uParam0, uParam1, uParam2, uParam3, uParam4, Global_93132);
  	StringCopy(&Global_96025, "", 64);
  }
  
  void func_162(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			func_163(uParam1, "Abigail1", func_156(iParam0), 0, 0, 4, -1604.668f, 5239.1f, 3.01f, 66, "", 109, 0, "ambient_Diving", 0, 0, 1, 4, 1, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 1:
  			func_163(uParam1, "Abigail2", func_156(iParam0), 0, 0, 4, -1592.84f, 5214.04f, 3.01f, 400, "", 110, 0, "", 0, 0, -1, 4, 1, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 2:
  			func_163(uParam1, "Barry1", func_156(iParam0), 0, 1, 4, 190.26f, -956.35f, 29.63f, 381, "", 74, 0, "", 0, 1, -1, 4, 1, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 3:
  			func_163(uParam1, "Barry2", func_156(iParam0), 0, 1, 4, 190.26f, -956.35f, 29.63f, 381, "", -1, 0, "", 0, 1, -1, 4, 4, 0, 2359, func_164(iParam0), 1, 1);
  			break;
  		
  		case 4:
  			func_163(uParam1, "Barry3", func_156(iParam0), 0, 1, 4, 414f, -761f, 29f, 381, "", -1, 0, "", 164, 1, -1, 0, 2, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 5:
  			func_163(uParam1, "Barry3A", func_156(iParam0), 1, 1, 0, 1199.27f, -1255.63f, 34.23f, 381, "BARSTASH", 84, 0, "", 166, 0, 7, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 6:
  			func_163(uParam1, "Barry3C", func_156(iParam0), 3, 1, 0, -468.9f, -1713.06f, 18.21f, 381, "", 84, 0, "", 166, 0, 7, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 7:
  			func_163(uParam1, "Barry4", func_156(iParam0), 0, 1, 4, 237.65f, -385.41f, 44.4f, 381, "", 85, 0, "postRC_Barry4", 0, 0, -1, 4, 2, 800, 2000, func_164(iParam0), 0, 0);
  			break;
  		
  		case 8:
  			func_163(uParam1, "Dreyfuss1", func_156(iParam0), 0, 2, 4, -1458.97f, 485.99f, 115.38f, 66, "LETTERS_HINT", 106, 0, "", 0, 0, -1, 4, 2, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 9:
  			func_163(uParam1, "Epsilon1", func_156(iParam0), 0, 3, 4, -1622.89f, 4204.87f, 83.3f, 66, "", 86, 0, "", 0, 1, 10, 4, 1, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 10:
  			func_163(uParam1, "Epsilon2", func_156(iParam0), 0, 3, 4, 242.7f, 362.7f, 104.74f, 206, "", 87, 16, "", 0, 0, 11, 4, 1, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 11:
  			func_163(uParam1, "Epsilon3", func_156(iParam0), 0, 3, 4, 1835.53f, 4705.86f, 38.1f, 206, "", 88, 16, "epsCars", 0, 0, 12, 4, 1, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 12:
  			func_163(uParam1, "Epsilon4", func_156(iParam0), 0, 3, 4, 1826.13f, 4698.88f, 38.92f, 206, "", 90, 16, "postRC_Epsilon4", 0, 0, 13, 4, 1, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 13:
  			func_163(uParam1, "Epsilon5", func_156(iParam0), 0, 3, 4, 637.02f, 119.7093f, 89.5f, 206, "", 89, 16, "epsRobes", 0, 0, 14, 4, 1, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 14:
  			func_163(uParam1, "Epsilon6", func_156(iParam0), 0, 3, 4, -2892.93f, 3192.37f, 11.66f, 206, "", 93, 0, "", 0, 0, 15, 4, 1, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 15:
  			func_163(uParam1, "Epsilon7", func_156(iParam0), 0, 3, 4, 524.43f, 3079.82f, 39.48f, 206, "", -1, 16, "epsDesert", 0, 0, 16, 4, 1, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 16:
  			func_163(uParam1, "Epsilon8", func_156(iParam0), 0, 3, 4, -697.75f, 45.38f, 43.03f, 206, "", 94, 16, "epsilonTract", 0, 0, -1, 4, 1, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 17:
  			func_163(uParam1, "Extreme1", func_156(iParam0), 0, 4, 4, -188.22f, 1296.1f, 302.86f, 66, "", -1, 0, "", 4, 1, 18, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 18:
  			func_163(uParam1, "Extreme2", func_156(iParam0), 0, 4, 4, -954.19f, -2760.05f, 14.64f, 382, "", 96, 0, "", 171, 0, 19, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 19:
  			func_163(uParam1, "Extreme3", func_156(iParam0), 0, 4, 4, -63.8f, -809.5f, 321.8f, 382, "", 97, 0, "", 0, 0, 20, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 20:
  			func_163(uParam1, "Extreme4", func_156(iParam0), 0, 4, 4, 1731.41f, 96.96f, 170.39f, 382, "", 98, 16, "", 0, 0, -1, 4, 2, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 21:
  			func_163(uParam1, "Fanatic1", func_156(iParam0), 0, 5, 4, -1877.82f, -440.649f, 45.05f, 405, "", 74, 0, "", 0, 1, -1, 4, 1, 700, 2000, func_164(iParam0), 1, 0);
  			break;
  		
  		case 22:
  			func_163(uParam1, "Fanatic2", func_156(iParam0), 0, 5, 4, 809.66f, 1279.76f, 360.49f, 405, "", -1, 0, "", 0, 1, -1, 4, 4, 700, 2000, func_164(iParam0), 1, 0);
  			break;
  		
  		case 23:
  			func_163(uParam1, "Fanatic3", func_156(iParam0), 0, 5, 4, -915.6f, 6139.2f, 5.5f, 405, "", -1, 0, "", 0, 1, -1, 4, 2, 700, 2000, func_164(iParam0), 0, 1);
  			break;
  		
  		case 24:
  			func_163(uParam1, "Hao1", func_156(iParam0), 0, 6, 4, -72.29f, -1260.63f, 28.14f, 66, "", -1, 0, "controller_Races", 13, 1, -1, 4, 2, 2000, 500, func_164(iParam0), 0, 1);
  			break;
  		
  		case 25:
  			func_163(uParam1, "Hunting1", func_156(iParam0), 0, 7, 4, 1804.32f, 3931.33f, 32.82f, 66, "", -1, 0, "", 174, 1, 26, 4, 4, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 26:
  			func_163(uParam1, "Hunting2", func_156(iParam0), 0, 7, 4, -684.17f, 5839.16f, 16.09f, 384, "", 99, 0, "", 7, 0, -1, 4, 4, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 27:
  			func_163(uParam1, "Josh1", func_156(iParam0), 0, 8, 4, -1104.93f, 291.25f, 64.3f, 66, "", -1, 0, "forSaleSigns", 0, 1, 28, 4, 4, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 28:
  			func_163(uParam1, "Josh2", func_156(iParam0), 0, 8, 4, 565.39f, -1772.88f, 29.77f, 385, "", 105, 0, "", 0, 0, 29, 4, 4, 0, 2359, func_164(iParam0), 1, 1);
  			break;
  		
  		case 29:
  			func_163(uParam1, "Josh3", func_156(iParam0), 0, 8, 4, 565.39f, -1772.88f, 29.77f, 385, "", -1, 16, "", 0, 0, 30, 4, 4, 0, 2359, func_164(iParam0), 1, 1);
  			break;
  		
  		case 30:
  			func_163(uParam1, "Josh4", func_156(iParam0), 0, 8, 4, -1104.93f, 291.25f, 64.3f, 385, "", -1, 36, "", 0, 0, -1, 4, 4, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 31:
  			func_163(uParam1, "Maude1", func_156(iParam0), 0, 9, 4, 2726.1f, 4145f, 44.3f, 66, "", -1, 0, "BailBond_Launcher", 0, 1, -1, 4, 4, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 32:
  			func_163(uParam1, "Minute1", func_156(iParam0), 0, 10, 4, 327.85f, 3405.7f, 35.73f, 66, "", -1, 0, "", 0, 1, 33, 4, 4, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 33:
  			func_163(uParam1, "Minute2", func_156(iParam0), 0, 10, 4, 18f, 4527f, 105f, 386, "", -1, 10, "", 0, 0, 34, 4, 4, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 34:
  			func_163(uParam1, "Minute3", func_156(iParam0), 0, 10, 4, -303.82f, 6211.29f, 31.05f, 386, "", -1, 10, "", 0, 0, -1, 4, 4, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 35:
  			func_163(uParam1, "MrsPhilips1", func_156(iParam0), 0, 11, 4, 1972.59f, 3816.43f, 32.42f, 66, "", -1, 0, "ambient_MrsPhilips", 0, 1, -1, 4, 4, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 36:
  			func_163(uParam1, "MrsPhilips2", func_156(iParam0), 0, 11, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 0, 1, -1, 4, 4, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 37:
  			func_163(uParam1, "Nigel1", func_156(iParam0), 0, 12, 4, -1097.16f, 790.01f, 164.52f, 66, "", -1, 0, "", 177, 1, -1, 1, 4, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 38:
  			func_163(uParam1, "Nigel1A", func_156(iParam0), 0, 12, 1, -558.65f, 284.49f, 90.86f, 149, "NIGITEMS", 100, 0, "", 0, 0, 42, 4, 4, 0, 2359, func_164(iParam0), 1, 1);
  			break;
  		
  		case 39:
  			func_163(uParam1, "Nigel1B", func_156(iParam0), 0, 12, 1, -1034.15f, 366.08f, 80.11f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_164(iParam0), 1, 1);
  			break;
  		
  		case 40:
  			func_163(uParam1, "Nigel1C", func_156(iParam0), 0, 12, 1, -623.91f, -266.17f, 37.76f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_164(iParam0), 1, 1);
  			break;
  		
  		case 41:
  			func_163(uParam1, "Nigel1D", func_156(iParam0), 0, 12, 1, -1096.85f, 67.68f, 52.95f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_164(iParam0), 1, 1);
  			break;
  		
  		case 42:
  			func_163(uParam1, "Nigel2", func_156(iParam0), 0, 12, 4, -1310.7f, -640.22f, 26.54f, 149, "", -1, 8, "", 0, 0, 43, 4, 4, 0, 2359, func_164(iParam0), 1, 1);
  			break;
  		
  		case 43:
  			func_163(uParam1, "Nigel3", func_156(iParam0), 0, 12, 4, -44.75f, -1288.67f, 28.21f, 149, "", -1, 16, "postRC_Nigel3", 0, 0, -1, 4, 4, 0, 2359, func_164(iParam0), 1, 1);
  			break;
  		
  		case 44:
  			func_163(uParam1, "Omega1", func_156(iParam0), 0, 13, 4, 2468.51f, 3437.39f, 49.9f, 66, "", -1, 0, "spaceshipParts", 0, 1, 45, 4, 2, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 45:
  			func_163(uParam1, "Omega2", func_156(iParam0), 0, 13, 4, 2319.44f, 2583.58f, 46.76f, 387, "", 107, 0, "", 0, 0, -1, 4, 2, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 46:
  			func_163(uParam1, "Paparazzo1", func_156(iParam0), 0, 14, 4, -149.75f, 285.81f, 93.67f, 66, "", -1, 0, "", 0, 1, 47, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 47:
  			func_163(uParam1, "Paparazzo2", func_156(iParam0), 0, 14, 4, -70.71f, 301.43f, 106.79f, 389, "", -1, 8, "", 0, 0, 48, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 48:
  			func_163(uParam1, "Paparazzo3", func_156(iParam0), 0, 14, 4, -257.22f, 292.85f, 90.63f, 389, "", -1, 8, "", 183, 1, -1, 2, 2, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 49:
  			func_163(uParam1, "Paparazzo3A", func_156(iParam0), 0, 14, 2, 305.52f, 157.19f, 102.94f, 389, "PAPPHOTO", 102, 0, "", 0, 0, 51, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 50:
  			func_163(uParam1, "Paparazzo3B", func_156(iParam0), 0, 14, 2, 1040.96f, -534.42f, 60.17f, 389, "", 102, 0, "", 0, 0, 51, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 51:
  			func_163(uParam1, "Paparazzo4", func_156(iParam0), 0, 14, 4, -484.2f, 229.68f, 82.21f, 389, "", -1, 8, "", 0, 1, -1, 4, 2, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 52:
  			func_163(uParam1, "Rampage1", func_156(iParam0), 0, 15, 4, 908f, 3643.7f, 32.2f, 66, "", -1, 0, "", 0, 1, 54, 4, 4, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 54:
  			func_163(uParam1, "Rampage3", func_156(iParam0), 0, 15, 4, 465.1f, -1849.3f, 27.8f, 84, "", -1, 0, "", 0, 1, 55, 4, 4, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 55:
  			func_163(uParam1, "Rampage4", func_156(iParam0), 0, 15, 4, -161f, -1669.7f, 33f, 84, "", -1, 0, "", 0, 0, 56, 4, 4, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 56:
  			func_163(uParam1, "Rampage5", func_156(iParam0), 0, 15, 4, -1298.2f, 2504.14f, 21.09f, 84, "", -1, 0, "", 0, 0, 53, 4, 4, 0, 2359, func_164(iParam0), 0, 0);
  			break;
  		
  		case 53:
  			func_163(uParam1, "Rampage2", func_156(iParam0), 0, 15, 4, 1181.5f, -400.1f, 67.5f, 84, "", -1, 0, "rampage_controller", 0, 0, -1, 4, 4, 0, 2359, func_164(iParam0), 1, 0);
  			break;
  		
  		case 57:
  			func_163(uParam1, "TheLastOne", func_156(iParam0), 0, 16, 4, -1298.98f, 4640.16f, 105.67f, 66, "", 133, 1, "", 0, 1, -1, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 58:
  			func_163(uParam1, "Tonya1", func_156(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_164(iParam0), 0, 1);
  			break;
  		
  		case 59:
  			func_163(uParam1, "Tonya2", func_156(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 388, "", -1, 48, "ambient_Tonya", 185, 0, 60, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 60:
  			func_163(uParam1, "Tonya3", func_156(iParam0), 0, 17, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 187, 0, 61, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 61:
  			func_163(uParam1, "Tonya4", func_156(iParam0), 0, 17, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 0, 0, 62, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		case 62:
  			func_163(uParam1, "Tonya5", func_156(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 388, "", -1, 48, "", 0, 0, -1, 4, 2, 0, 2359, func_164(iParam0), 0, 1);
  			break;
  		
  		default:
  			break;
  	}
  }
  
  void func_163(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_164(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;
  }
  
  void func_165(int iParam0)
  {
  	Global_42182 = (unk_0x578C4EF320340AF7() + iParam0);
  }
  
  void func_166()
  {
  	if (Global_96267)
  	{
  		func_155();
  		unk_0x183EB4823933BCBD(func_167(Global_111858.f_2359.f_539.f_4321));
  	}
  	else
  	{
  		unk_0x183EB4823933BCBD("");
  	}
  }
  
  char* func_167(var uParam0)
  {
  	uParam0 = uParam0;
  	return "";
  }
  
  void func_168()
  {
  	char cVar0[24];
  	
  	if (unk_0x11E5DE894D6A8A5F() || unk_0xC6C08C02733D02C8())
  	{
  		unk_0xC4D6DAEA1F5E94FE(StackVal, 0, 0, 0);
  	}
  	else if (unk_0x59ED414969A48197() || unk_0xDCA0815D900F27F8())
  	{
  		StringCopy(&cVar0, "PRESENCE_0_STR", 24);
  		unk_0x0DB4750EF9385C97(0, &cVar0);
  	}
  }
  
  void func_169(int iParam0, int iParam1)
  {
  	Global_96262 = iParam0;
  	Global_96263 = iParam1;
  }
  
  void func_170()
  {
  	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_171(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_172(int iParam0, bool bParam1)
  {
  	struct<26> Var0;
  	int iVar1;
  	bool bVar2;
  	int iVar3;
  	struct<6> Var4;
  	int iVar5;
  	int iVar6;
  	struct<6> Var7;
  	int iVar8;
  	int iVar9;
  	
  	func_162(iParam0, &Var0);
  	if (!unk_0xF005CCA4263DF67F(&(Var0.f_16), ""))
  	{
  		while (!func_200(&(Var0.f_16)))
  		{
  			SYSTEM::WAIT(0);
  		}
  	}
  	if (Var0.f_22 != 0)
  	{
  		func_199(Var0.f_22, 0);
  	}
  	func_190(iParam0, Global_77102);
  	if (!bParam1)
  	{
  		iVar1 = func_189(iParam0);
  		if (iVar1 != 0)
  		{
  			if (!unk_0xC70C3EBDA0F2B9C2(iVar1))
  			{
  				unk_0x03E64CE7CB46657B(iVar1);
  			}
  		}
  	}
  	if (Var0.f_24 != -1)
  	{
  		bVar2 = true;
  		if (Var0.f_5 != 4)
  		{
  			iVar3 = 0;
  			while (iVar3 < 63)
  			{
  				iVar5 = iVar3;
  				if (iVar5 != iParam0)
  				{
  					func_162(iVar5, &Var4);
  					if (Var4.f_5 == Var0.f_5)
  					{
  						if (!unk_0xCE990E643CD9D0E5(Global_111858.f_18570[iVar5 /*6*/], 3))
  						{
  							bVar2 = false;
  						}
  						if (!unk_0xCE990E643CD9D0E5(Global_111858.f_18570[iVar5 /*6*/], 0))
  						{
  							func_177(iVar5);
  						}
  					}
  				}
  				iVar3++;
  			}
  		}
  		if (bVar2)
  		{
  			func_177(Var0.f_24);
  		}
  	}
  	else if (Var0.f_25 != 4)
  	{
  		iVar6 = 0;
  		while (iVar6 < 63)
  		{
  			iVar8 = iVar6;
  			if (iVar8 != iParam0)
  			{
  				func_162(iVar8, &Var7);
  				if (Var7.f_5 == Var0.f_25)
  				{
  					func_177(iVar8);
  				}
  			}
  			iVar6++;
  		}
  	}
  	if (!unk_0xCE990E643CD9D0E5(Global_111858.f_18570[iParam0 /*6*/], 3))
  	{
  		unk_0xBE20AB8238688965(&(Global_111858.f_18570[iParam0 /*6*/]), 3);
  		Global_110945[iParam0 /*10*/].f_5 = 1;
  		func_174(iParam0);
  		iVar9 = func_173(iParam0);
  		if (iVar9 != 322)
  		{
  			func_6(iVar9, 0, 0);
  		}
  	}
  }
  
  int func_173(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 109;
  			break;
  		
  		case 1:
  			return 322;
  			break;
  		
  		case 2:
  			return 69;
  			break;
  		
  		case 3:
  			return 70;
  			break;
  		
  		case 4:
  			return 322;
  			break;
  		
  		case 5:
  			return 71;
  			break;
  		
  		case 6:
  			return 71;
  			break;
  		
  		case 7:
  			return 72;
  			break;
  		
  		case 8:
  			return 68;
  			break;
  		
  		case 9:
  			return 73;
  			break;
  		
  		case 10:
  			return 74;
  			break;
  		
  		case 11:
  			return 75;
  			break;
  		
  		case 12:
  			return 76;
  			break;
  		
  		case 13:
  			return 77;
  			break;
  		
  		case 14:
  			return 78;
  			break;
  		
  		case 15:
  			return 79;
  			break;
  		
  		case 16:
  			return 80;
  			break;
  		
  		case 17:
  			return 81;
  			break;
  		
  		case 18:
  			return 82;
  			break;
  		
  		case 19:
  			return 83;
  			break;
  		
  		case 20:
  			return 84;
  			break;
  		
  		case 21:
  			return 85;
  			break;
  		
  		case 22:
  			return 86;
  			break;
  		
  		case 23:
  			return 87;
  			break;
  		
  		case 24:
  			return 106;
  			break;
  		
  		case 25:
  			return 178;
  			break;
  		
  		case 26:
  			return 179;
  			break;
  		
  		case 27:
  			return 88;
  			break;
  		
  		case 28:
  			return 89;
  			break;
  		
  		case 29:
  			return 90;
  			break;
  		
  		case 30:
  			return 91;
  			break;
  		
  		case 31:
  			return 107;
  			break;
  		
  		case 32:
  			return 92;
  			break;
  		
  		case 33:
  			return 93;
  			break;
  		
  		case 34:
  			return 94;
  			break;
  		
  		case 35:
  			return 110;
  			break;
  		
  		case 36:
  			return 111;
  			break;
  		
  		case 37:
  			return 95;
  			break;
  		
  		case 38:
  			return 96;
  			break;
  		
  		case 39:
  			return 97;
  			break;
  		
  		case 40:
  			return 98;
  			break;
  		
  		case 41:
  			return 99;
  			break;
  		
  		case 42:
  			return 100;
  			break;
  		
  		case 43:
  			return 101;
  			break;
  		
  		case 44:
  			return 66;
  			break;
  		
  		case 45:
  			return 67;
  			break;
  		
  		case 46:
  			return 102;
  			break;
  		
  		case 47:
  			return 103;
  			break;
  		
  		case 48:
  			return 322;
  			break;
  		
  		case 49:
  			return 104;
  			break;
  		
  		case 50:
  			return 104;
  			break;
  		
  		case 51:
  			return 105;
  			break;
  		
  		case 52:
  			return 194;
  			break;
  		
  		case 53:
  			return 195;
  			break;
  		
  		case 54:
  			return 196;
  			break;
  		
  		case 55:
  			return 197;
  			break;
  		
  		case 56:
  			return 198;
  			break;
  		
  		case 57:
  			return 108;
  			break;
  		
  		case 58:
  			return 208;
  			break;
  		
  		case 59:
  			return 209;
  			break;
  		
  		case 60:
  			return 210;
  			break;
  		
  		case 61:
  			return 211;
  			break;
  		
  		case 62:
  			return 212;
  			break;
  	}
  	return 322;
  }
  
  void func_174(int iParam0)
  {
  	func_176(iParam0, 1);
  	Global_111858.f_18570[iParam0 /*6*/].f_3 = func_175();
  	Global_111858.f_18570.f_380++;
  }
  
  int func_175()
  {
  	return (Global_111858.f_10012.f_21 + Global_111858.f_18570.f_380);
  }
  
  void func_176(var uParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	iVar0 = 55;
  	if (bParam1)
  	{
  		iVar1 = uParam0;
  		if (iVar1 == 46)
  		{
  			iVar0 = 35;
  		}
  		else if (iVar1 == 49)
  		{
  			iVar0 = 36;
  		}
  		else if (iVar1 == 50)
  		{
  			iVar0 = 37;
  		}
  		else if (iVar1 == 8)
  		{
  			iVar0 = 38;
  		}
  		else if (iVar1 == 16)
  		{
  			iVar0 = 39;
  		}
  		else if (iVar1 == 38)
  		{
  			iVar0 = 40;
  		}
  		else if (iVar1 == 39)
  		{
  			iVar0 = 41;
  		}
  		else if (iVar1 == 40)
  		{
  			iVar0 = 42;
  		}
  		else if (iVar1 == 41)
  		{
  			iVar0 = 43;
  		}
  		else if (iVar1 == 42)
  		{
  			iVar0 = 44;
  		}
  		else if (iVar1 == 43)
  		{
  			iVar0 = 45;
  		}
  		else if (iVar1 == 20)
  		{
  			iVar0 = 46;
  		}
  	}
  	else
  	{
  		iVar2 = uParam0;
  		if (iVar2 == 53)
  		{
  			iVar0 = 0;
  		}
  		else if (iVar2 == 1)
  		{
  			iVar0 = 1;
  		}
  		else if (iVar2 == 2)
  		{
  			iVar0 = 2;
  		}
  		else if (iVar2 == 17)
  		{
  			iVar0 = 3;
  		}
  		else if (iVar2 == 19)
  		{
  			iVar0 = 4;
  		}
  		else if (iVar2 == 43)
  		{
  			iVar0 = 5;
  		}
  		else if (iVar2 == 44)
  		{
  			iVar0 = 6;
  		}
  		else if (iVar2 == 63)
  		{
  			iVar0 = 8;
  		}
  		else if (iVar2 == 12)
  		{
  			iVar0 = 9;
  		}
  		else if (iVar2 == 13)
  		{
  			iVar0 = 10;
  		}
  		else if (iVar2 == 64)
  		{
  			iVar0 = 11;
  		}
  		else if (iVar2 == 20)
  		{
  			iVar0 = 12;
  		}
  		else if (iVar2 == 30)
  		{
  			iVar0 = 13;
  		}
  		else if (iVar2 == 31)
  		{
  			iVar0 = 14;
  		}
  		else if (iVar2 == 41)
  		{
  			iVar0 = 15;
  		}
  		else if (iVar2 == 38)
  		{
  			iVar0 = 16;
  		}
  		else if (iVar2 == 9)
  		{
  			iVar0 = 18;
  		}
  		else if (iVar2 == 59)
  		{
  			iVar0 = 19;
  		}
  		else if (iVar2 == 45)
  		{
  			iVar0 = 20;
  		}
  		else if (iVar2 == 10)
  		{
  			iVar0 = 21;
  		}
  		else if (iVar2 == 14)
  		{
  			iVar0 = 22;
  		}
  		else if (iVar2 == 16)
  		{
  			iVar0 = 24;
  		}
  		else if (iVar2 == 39)
  		{
  			iVar0 = 25;
  		}
  		else if (iVar2 == 46)
  		{
  			iVar0 = 26;
  		}
  		else if (iVar2 == 60)
  		{
  			iVar0 = 27;
  		}
  		else if (iVar2 == 22)
  		{
  			iVar0 = 28;
  		}
  		else if (iVar2 == 48)
  		{
  			iVar0 = 30;
  		}
  		else if (iVar2 == 61)
  		{
  			iVar0 = 31;
  		}
  		else if (iVar2 == 49)
  		{
  			iVar0 = 32;
  		}
  		else if (iVar2 == 27)
  		{
  			iVar0 = 34;
  		}
  		else if (iVar2 == 3)
  		{
  			iVar0 = 47;
  		}
  		else if (iVar2 == 4)
  		{
  			iVar0 = 48;
  		}
  		else if (iVar2 == 5)
  		{
  			iVar0 = 49;
  		}
  		else if (iVar2 == 6)
  		{
  			iVar0 = 50;
  		}
  		else if (iVar2 == 7)
  		{
  			iVar0 = 51;
  		}
  		else if (iVar2 == 58)
  		{
  			iVar0 = 53;
  		}
  		else if (iVar2 == 90)
  		{
  			iVar0 = 7;
  		}
  		else if (iVar2 == 74 || iVar2 == 75)
  		{
  			iVar0 = 17;
  		}
  		else if (iVar2 == 93)
  		{
  			iVar0 = 23;
  		}
  		else if (iVar2 == 69 || iVar2 == 70)
  		{
  			iVar0 = 29;
  		}
  		else if (iVar2 == 84 || iVar2 == 85)
  		{
  			iVar0 = 33;
  		}
  	}
  	if (iVar0 != 55)
  	{
  		Global_111858.f_20560.f_472 = iVar0;
  	}
  }
  
  void func_177(int iParam0)
  {
  	if (iParam0 == 63 || iParam0 == -1)
  	{
  		return;
  	}
  	func_178(iParam0);
  	unk_0xBE20AB8238688965(&(Global_111858.f_18570[iParam0 /*6*/]), 0);
  }
  
  void func_178(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 30:
  			func_182(22, 1, 0, 1, 0);
  			break;
  		
  		case 15:
  			func_179(37, 0);
  			break;
  		
  		default:
  			break;
  	}
  }
  
  void func_179(int iParam0, bool bParam1)
  {
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (bParam1)
  	{
  		if (!func_181(iParam0, 0))
  		{
  			func_180(iParam0, 1, 0);
  			func_180(iParam0, 2, 0);
  			func_180(iParam0, 3, 0);
  			func_180(iParam0, 4, 0);
  			func_180(iParam0, 0, 1);
  			Global_75654[iParam0] = 1;
  		}
  	}
  	else
  	{
  		func_180(iParam0, 0, 0);
  	}
  }
  
  void func_180(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_181(int iParam0, int iParam1)
  {
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	return unk_0xCE990E643CD9D0E5(Global_111858.f_32745[iParam0], iParam1);
  }
  
  void func_182(int iParam0, int iParam1, int iParam2, bool bParam3, int iParam4)
  {
  	if (iParam0 != 198)
  	{
  		if (Global_76833)
  		{
  			Global_2440049.f_75.f_227[iParam0] = iParam1;
  		}
  		else
  		{
  			Global_111858.f_7257.f_227[iParam0] = iParam1;
  		}
  		Global_38598[iParam0] = iParam2;
  		Global_38797[iParam0] = 1;
  		func_185(iParam0, bParam3, iParam4, 0);
  		func_183(iParam0, iParam1);
  	}
  }
  
  void func_183(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 12:
  			if (iParam1 == 0)
  			{
  				unk_0x09776C5FC01C59B2("AZ_PORT_OF_LS_UNDERWATER_CREAKS", 0, 0);
  			}
  			else
  			{
  				unk_0x09776C5FC01C59B2("AZ_PORT_OF_LS_UNDERWATER_CREAKS", 1, 0);
  			}
  			break;
  		
  		case 71:
  			if (iParam1 != 1)
  			{
  				unk_0x5A703C1142A4A342("HEIST_SWEATSHOP_ZONES", 0, 0);
  			}
  			else
  			{
  				unk_0x5A703C1142A4A342("HEIST_SWEATSHOP_ZONES", 1, 0);
  			}
  			break;
  		
  		case 65:
  			if (iParam1 == 1)
  			{
  				func_184(0, 0);
  			}
  			else
  			{
  				func_184(0, 1);
  			}
  			break;
  		
  		case 6:
  			if (iParam1 == 1)
  			{
  				unk_0x09776C5FC01C59B2("AZ_UNDERWATER_EXILE_01_PLANE_WRECK", 1, 0);
  			}
  			else
  			{
  				unk_0x09776C5FC01C59B2("AZ_UNDERWATER_EXILE_01_PLANE_WRECK", 0, 0);
  			}
  			break;
  		
  		case 174:
  			if (iParam1 == 2)
  			{
  				unk_0xA176478F3EBDDE69("V_CARSHOWROOM_PS_WINDOW_UNBROKEN");
  			}
  			break;
  		
  		case 37:
  			if (iParam1 == 1)
  			{
  				unk_0x309C0E6FCCD30F19("TREVOR1_TRAILER_PARK_MAIN_STAGE_RADIO", 0);
  				unk_0x309C0E6FCCD30F19("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_01", 0);
  				unk_0x309C0E6FCCD30F19("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_02", 0);
  				unk_0x309C0E6FCCD30F19("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_03", 0);
  			}
  			break;
  	}
  }
  
  void func_184(int iParam0, bool bParam1)
  {
  	if (bParam1)
  	{
  		unk_0xBE20AB8238688965(&Global_110496, iParam0);
  	}
  	else
  	{
  		unk_0xD2459066EA58CE43(&Global_110496, iParam0);
  	}
  	Global_110495 = 1;
  }
  
  bool func_185(int iParam0, bool bParam1, int iParam2, bool bParam3)
  {
  	bool bVar0;
  	int iVar1;
  	int iVar2;
  	struct<5> Var3;
  	var uVar4;
  	bool bVar5;
  	int iVar6;
  	
  	Global_1654379 = 1;
  	bVar0 = false;
  	Var3.f_4 = 3;
  	Var3.f_8 = 3;
  	Var3.f_64 = 3;
  	Var3.f_75 = 3;
  	Var3.f_91 = 3;
  	func_188(&Var3, iParam0);
  	if (func_186())
  	{
  		iVar1 = Global_111858.f_7257.f_227[iParam0];
  	}
  	else
  	{
  		iVar1 = Global_2440049.f_75.f_227[iParam0];
  	}
  	iVar2 = Global_38996[iParam0];
  	if (unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()) && !bParam3)
  	{
  		Global_1654379 = 1;
  	}
  	else
  	{
  		bVar5 = true;
  		if (unk_0x856D5567211886A2(unk_0x6C5C6B207AA78253()) != unk_0x856D5567211886A2("standard_global_reg"))
  		{
  			if (iParam2 == 0)
  			{
  				if (Global_38598[iParam0] && unk_0x272784C60C397DB6(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), Var3, 1) < 200f)
  				{
  					bVar5 = false;
  					Global_1654379 = 1;
  				}
  				if (!unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()) || unk_0x83D81979576E65F2(unk_0x9B0761B4C3EB8BC7()))
  				{
  					if (!unk_0x03DB5C6AABF8DA46())
  					{
  						bVar5 = false;
  						Global_1654379 = 1;
  					}
  				}
  			}
  		}
  		if (unk_0xE9159DB182CF0841() && (!unk_0x9CC4D06F5338CA6B() || unk_0x69222D599BA78994() != 5))
  		{
  			bVar5 = false;
  			Global_1654379 = 1;
  		}
  		if (bVar5)
  		{
  			switch (Var3.f_3)
  			{
  				case 0:
  					if (iVar1 == 2)
  					{
  					}
  					else
  					{
  						if (Var3.f_4[iVar1] != 0)
  						{
  							unk_0x6F9154B612B4F06F(Var3, 10f, Var3.f_4[iVar1], 0);
  						}
  						if (Var3.f_4[iVar2] != 0)
  						{
  							unk_0x4E32F872FFCBC513(Var3, 10f, Var3.f_4[iVar2], 1);
  						}
  						Global_40192[iParam0] = 1;
  					}
  					bVar0 = true;
  					break;
  				
  				case 1:
  					if (iVar1 == 0)
  					{
  						if (unk_0x856D5567211886A2(&(Var3.f_8[1 /*8*/])) != unk_0x856D5567211886A2("") && unk_0x856D5567211886A2(&(Var3.f_8[1 /*8*/])) != unk_0x856D5567211886A2(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xF1E6A9807E4F24AD(&(Var3.f_8[1 /*8*/])))
  							{
  								unk_0xC6371D262CF7DC77(&(Var3.f_8[1 /*8*/]));
  								Global_1654379 = 1;
  							}
  						}
  						if ((unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("") && unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("REMOVE_ALL_STATES")) && unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xF1E6A9807E4F24AD(&(Var3.f_8[2 /*8*/])))
  							{
  								unk_0xC6371D262CF7DC77(&(Var3.f_8[2 /*8*/]));
  								Global_1654379 = 1;
  							}
  						}
  						if (unk_0x856D5567211886A2(&(Var3.f_8[0 /*8*/])) != unk_0x856D5567211886A2(""))
  						{
  							if (!unk_0xF1E6A9807E4F24AD(&(Var3.f_8[0 /*8*/])))
  							{
  								unk_0x3C3BE9E8DD78E56B(&(Var3.f_8[0 /*8*/]));
  								Global_1654379 = 1;
  							}
  						}
  						if (unk_0x856D5567211886A2(&(Var3.f_34)) != unk_0x856D5567211886A2(""))
  						{
  							if (!unk_0xF1E6A9807E4F24AD(&(Var3.f_34)))
  							{
  								unk_0x3C3BE9E8DD78E56B(&(Var3.f_34));
  								Global_1654379 = 1;
  							}
  						}
  					}
  					else if (iVar1 == 1)
  					{
  						if (unk_0x856D5567211886A2(&(Var3.f_34)) != unk_0x856D5567211886A2(""))
  						{
  							if (unk_0xF1E6A9807E4F24AD(&(Var3.f_34)))
  							{
  								unk_0xC6371D262CF7DC77(&(Var3.f_34));
  							}
  						}
  						if (unk_0x856D5567211886A2(&(Var3.f_8[0 /*8*/])) != unk_0x856D5567211886A2("") && unk_0x856D5567211886A2(&(Var3.f_8[0 /*8*/])) != unk_0x856D5567211886A2(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xF1E6A9807E4F24AD(&(Var3.f_8[0 /*8*/])))
  							{
  								unk_0xC6371D262CF7DC77(&(Var3.f_8[0 /*8*/]));
  							}
  						}
  						if ((unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("") && unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("REMOVE_ALL_STATES")) && unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xF1E6A9807E4F24AD(&(Var3.f_8[2 /*8*/])))
  							{
  								unk_0xC6371D262CF7DC77(&(Var3.f_8[2 /*8*/]));
  							}
  						}
  						if (unk_0x856D5567211886A2(&(Var3.f_8[1 /*8*/])) != unk_0x856D5567211886A2(""))
  						{
  							if (!unk_0xF1E6A9807E4F24AD(&(Var3.f_8[1 /*8*/])))
  							{
  								unk_0x3C3BE9E8DD78E56B(&(Var3.f_8[1 /*8*/]));
  							}
  						}
  					}
  					else if (iVar1 == 2)
  					{
  						if (unk_0x856D5567211886A2(&(Var3.f_34)) != unk_0x856D5567211886A2(""))
  						{
  							if (unk_0xF1E6A9807E4F24AD(&(Var3.f_34)))
  							{
  								unk_0xC6371D262CF7DC77(&(Var3.f_34));
  							}
  						}
  						if (unk_0x856D5567211886A2(&(Var3.f_8[0 /*8*/])) != unk_0x856D5567211886A2("") && unk_0x856D5567211886A2(&(Var3.f_8[0 /*8*/])) != unk_0x856D5567211886A2(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xF1E6A9807E4F24AD(&(Var3.f_8[0 /*8*/])))
  							{
  								unk_0xC6371D262CF7DC77(&(Var3.f_8[0 /*8*/]));
  							}
  						}
  						if (unk_0x856D5567211886A2(&(Var3.f_8[1 /*8*/])) != unk_0x856D5567211886A2("") && unk_0x856D5567211886A2(&(Var3.f_8[1 /*8*/])) != unk_0x856D5567211886A2(&(Var3.f_8[iVar1 /*8*/])))
  						{
  							if (unk_0xF1E6A9807E4F24AD(&(Var3.f_8[1 /*8*/])))
  							{
  								unk_0xC6371D262CF7DC77(&(Var3.f_8[1 /*8*/]));
  							}
  						}
  						if (unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("") && unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("REMOVE_ALL_STATES"))
  						{
  							if (!unk_0xF1E6A9807E4F24AD(&(Var3.f_8[2 /*8*/])))
  							{
  								unk_0x3C3BE9E8DD78E56B(&(Var3.f_8[2 /*8*/]));
  							}
  						}
  					}
  					Global_39993[iParam0] = 1;
  					Global_40192[iParam0] = 1;
  					bVar0 = true;
  					break;
  				
  				case 2:
  					iVar6 = unk_0xC519B5898C2310B1(Var3, &(Var3.f_42));
  					if (iVar6 != 0)
  					{
  						if (unk_0x856D5567211886A2(&(Var3.f_50)) != unk_0x856D5567211886A2(""))
  						{
  							if (unk_0xE6D459F9FC002DFC(iVar6, &(Var3.f_50)))
  							{
  								unk_0xDA3C27C9E89E24EE(iVar6, &(Var3.f_50));
  							}
  						}
  						if (iVar1 == 0)
  						{
  							if (unk_0x856D5567211886A2(&(Var3.f_8[1 /*8*/])) != unk_0x856D5567211886A2(""))
  							{
  								if (unk_0xE6D459F9FC002DFC(iVar6, &(Var3.f_8[1 /*8*/])))
  								{
  									unk_0xDA3C27C9E89E24EE(iVar6, &(Var3.f_8[1 /*8*/]));
  								}
  							}
  							if ((unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("") && unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("REMOVE_ALL_STATES")) && unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2(&(Var3.f_8[iVar1 /*8*/])))
  							{
  								if (unk_0xE6D459F9FC002DFC(iVar6, &(Var3.f_8[2 /*8*/])))
  								{
  									unk_0xDA3C27C9E89E24EE(iVar6, &(Var3.f_8[2 /*8*/]));
  								}
  							}
  							if (unk_0x856D5567211886A2(&(Var3.f_8[0 /*8*/])) != unk_0x856D5567211886A2(""))
  							{
  								if (!unk_0xE6D459F9FC002DFC(iVar6, &(Var3.f_8[0 /*8*/])))
  								{
  									unk_0x705EA7257B991534(iVar6, &(Var3.f_8[0 /*8*/]));
  								}
  							}
  						}
  						else if (iVar1 == 1)
  						{
  							if (unk_0x856D5567211886A2(&(Var3.f_8[0 /*8*/])) != unk_0x856D5567211886A2(""))
  							{
  								if (unk_0xE6D459F9FC002DFC(iVar6, &(Var3.f_8[0 /*8*/])))
  								{
  									unk_0xDA3C27C9E89E24EE(iVar6, &(Var3.f_8[0 /*8*/]));
  								}
  							}
  							if ((unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("") && unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("REMOVE_ALL_STATES")) && unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2(&(Var3.f_8[iVar1 /*8*/])))
  							{
  								if (unk_0xE6D459F9FC002DFC(iVar6, &(Var3.f_8[2 /*8*/])))
  								{
  									unk_0xDA3C27C9E89E24EE(iVar6, &(Var3.f_8[2 /*8*/]));
  								}
  							}
  							if (unk_0x856D5567211886A2(&(Var3.f_8[1 /*8*/])) != unk_0x856D5567211886A2(""))
  							{
  								if (!unk_0xE6D459F9FC002DFC(iVar6, &(Var3.f_8[1 /*8*/])))
  								{
  									unk_0x705EA7257B991534(iVar6, &(Var3.f_8[1 /*8*/]));
  								}
  							}
  						}
  						else if (iVar1 == 2)
  						{
  							if (unk_0x856D5567211886A2(&(Var3.f_8[0 /*8*/])) != unk_0x856D5567211886A2(""))
  							{
  								if (unk_0xE6D459F9FC002DFC(iVar6, &(Var3.f_8[0 /*8*/])))
  								{
  									unk_0xDA3C27C9E89E24EE(iVar6, &(Var3.f_8[0 /*8*/]));
  								}
  							}
  							if (unk_0x856D5567211886A2(&(Var3.f_8[1 /*8*/])) != unk_0x856D5567211886A2(""))
  							{
  								if (unk_0xE6D459F9FC002DFC(iVar6, &(Var3.f_8[1 /*8*/])))
  								{
  									unk_0xDA3C27C9E89E24EE(iVar6, &(Var3.f_8[1 /*8*/]));
  								}
  							}
  							if (unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("") && unk_0x856D5567211886A2(&(Var3.f_8[2 /*8*/])) != unk_0x856D5567211886A2("REMOVE_ALL_STATES"))
  							{
  								if (!unk_0xE6D459F9FC002DFC(iVar6, &(Var3.f_8[2 /*8*/])))
  								{
  									unk_0x705EA7257B991534(iVar6, &(Var3.f_8[2 /*8*/]));
  								}
  							}
  						}
  						if (bParam1)
  						{
  							unk_0x35BA1F33F01303F1(iVar6);
  						}
  					}
  					Global_40192[iParam0] = 1;
  					Global_39993[iParam0] = 1;
  					bVar0 = true;
  					break;
  				
  				case 3:
  					if (unk_0x272784C60C397DB6(Var3, unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), 1) < 250f)
  					{
  						uVar4 = unk_0x451CA5F5FD323FAF(Var3, 25f, &(Var3.f_8[0 /*8*/]));
  						if (unk_0x3F704F9EED6AC9D7(uVar4))
  						{
  							if (iVar1 == 0)
  							{
  								unk_0x31FB4AAD80E34916(uVar4, 3);
  								Global_40192[iParam0] = 1;
  								bVar0 = true;
  							}
  							else if (iVar1 == 1)
  							{
  								if ((unk_0xE787A6EA2F6B60C4(uVar4) != 6 && unk_0xE787A6EA2F6B60C4(uVar4) != 7) && unk_0xE787A6EA2F6B60C4(uVar4) != 8)
  								{
  									unk_0x31FB4AAD80E34916(uVar4, 10);
  									Global_40192[iParam0] = 1;
  									bVar0 = true;
  								}
  							}
  							else if (iVar1 == 2)
  							{
  								bVar0 = true;
  							}
  						}
  					}
  					break;
  				
  				case 4:
  					if (iVar1 == 0)
  					{
  						unk_0xF2F9FB7A4A72BB29(Var3, 50f, Var3.f_4[1], Var3.f_4[0], 0);
  						unk_0xD2459066EA58CE43(&(Global_38344[(iParam0 / 32)]), (iParam0 % 32));
  					}
  					else if (iVar1 == 1)
  					{
  						unk_0x332075C0D52783B7(Var3, 50f, Var3.f_4[0], Var3.f_4[1], 1);
  						unk_0xBE20AB8238688965(&(Global_38344[(iParam0 / 32)]), (iParam0 % 32));
  					}
  					bVar0 = true;
  					break;
  			}
  			if (bVar0)
  			{
  				Global_38797[iParam0] = 0;
  				Global_38996[iParam0] = iVar1;
  				if (!func_186())
  				{
  					if (!Global_39593[iParam0])
  					{
  						Global_39593[iParam0] = 1;
  						Global_39792++;
  					}
  				}
  			}
  		}
  	}
  	return bVar0;
  }
  
  int func_186()
  {
  	if ((func_8() == -1 || func_8() == 999) && !func_187() == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_187()
  {
  	return Global_30969;
  }
  
  int func_188(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		uParam0->f_4[iVar0] = 0;
  		StringCopy(&(uParam0->f_8[iVar0 /*8*/]), "", 32);
  		uParam0->f_64[iVar0] = 0;
  		uParam0->f_75[iVar0] = 0;
  		uParam0->f_91[iVar0] = 0;
  		iVar0++;
  	}
  	*uParam0 = { 0f, 0f, 0f };
  	uParam0->f_3 = 0;
  	uParam0->f_33 = 0;
  	StringCopy(&(uParam0->f_34), "", 32);
  	StringCopy(&(uParam0->f_42), "", 32);
  	StringCopy(&(uParam0->f_50), "", 32);
  	uParam0->f_58 = { 0f, 0f, 0f };
  	uParam0->f_61 = { 0f, 0f, 0f };
  	uParam0->f_68 = { 0f, 0f, 0f };
  	uParam0->f_71 = { 0f, 0f, 0f };
  	uParam0->f_74 = 0f;
  	uParam0->f_79 = { 0f, 0f, 0f };
  	uParam0->f_82 = { 0f, 0f, 0f };
  	uParam0->f_85 = { 0f, 0f, 0f };
  	uParam0->f_88 = { 0f, 0f, 0f };
  	switch (iParam1)
  	{
  		case 3:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "TRV1_Trail_start", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "TRV1_Trail_end", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "TRV1_Trail_Finish", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { -24.685f, 3032.92f, 40.331f };
  			break;
  		
  		case 4:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "CS3_05_water_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS3_05_water_grp2", 32);
  			*uParam0 = { -24.685f, 3032.92f, 40.331f };
  			break;
  		
  		case 0:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "gasstation_ipl_group1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "gasstation_ipl_group2", 32);
  			*uParam0 = { -93.4f, 6410.9f, 36.8f };
  			break;
  		
  		case 1:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DES_Smash2_startimap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_Smash2_endimap", 32);
  			*uParam0 = { 890.3647f, -2367.289f, 28.10582f };
  			break;
  		
  		case 2:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DES_StiltHouse_imapstart", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_StiltHouse_imapend", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "des_stilthouse_rebuild", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -1020.5f, 663.41f, 154.75f };
  			uParam0->f_58 = { -1018.913f, 603.2904f, 105.6611f };
  			uParam0->f_61 = { -1038.913f, 639.2904f, 135.6611f };
  			uParam0->f_64[0] = 1;
  			uParam0->f_64[1] = 0;
  			break;
  		
  		case 5:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "bnkheist_apt_norm", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "bnkheist_apt_dest", 32);
  			break;
  		
  		case 196:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "bnkheist_apt_dest_vfx", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
  			uParam0->f_33 = 1;
  			break;
  		
  		case 6:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "crashed_cargoplane", 32);
  			break;
  		
  		case 7:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_jb700_covered", 32);
  			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
  			break;
  		
  		case 8:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_entityXF_covered", 32);
  			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
  			break;
  		
  		case 9:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_cheetah_covered", 32);
  			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
  			break;
  		
  		case 10:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_ztype_covered", 32);
  			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
  			break;
  		
  		case 11:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "BH1_48_Killed_Michael", 32);
  			break;
  		
  		case 12:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "cargoship", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "sunkcargoship", 32);
  			uParam0->f_68 = { -162.8918f, -2365.769f, 0f };
  			uParam0->f_71 = { 190.75f, 31.25f, 21f };
  			uParam0->f_74 = 0f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			break;
  		
  		case 13:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "ship_occ_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "ship_occ_grp2", 32);
  			break;
  		
  		case 14:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "smboat", 32);
  			break;
  		
  		case 15:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "gasparticle_grp2", 32);
  			*uParam0 = { -95.2f, 6411.3f, 31.5f };
  			break;
  		
  		case 16:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "CS1_02_cf_offmission", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission1", 32);
  			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
  			break;
  		
  		case 17:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission2", 32);
  			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
  			break;
  		
  		case 18:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission3", 32);
  			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
  			break;
  		
  		case 19:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission4", 32);
  			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
  			break;
  		
  		case 20:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "jetstealtunnel", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 801.7f, -1810.8f, 23.3f };
  			break;
  		
  		case 21:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "Jetsteal_ipl_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Jetsteal_ipl_grp2", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 787.3967f, -1808.858f, 29.8532f };
  			uParam0->f_58 = { 814f, -1750f, 20f };
  			uParam0->f_61 = { 790f, -1899f, 35f };
  			uParam0->f_64[0] = 1;
  			uParam0->f_64[1] = 0;
  			uParam0->f_64[2] = 0;
  			break;
  		
  		case 22:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "BH1_47_JoshHse_UnBurnt", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "BH1_47_JoshHse_Burnt", 32);
  			break;
  		
  		case 23:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "bh1_47_joshhse_firevfx", 32);
  			break;
  		
  		case 24:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_30_Keep_Closed", 32);
  			break;
  		
  		case 25:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "triathlon2_VBprops", 32);
  			break;
  		
  		case 26:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_REQUEST", 32);
  			*uParam0 = { 163.4f, -745.7f, 251f };
  			break;
  		
  		case 27:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "FBI_colPLUG", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 74.29f, -736.05f, 46.76f };
  			break;
  		
  		case 28:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "FBI_repair", 32);
  			*uParam0 = { 74.29f, -736.05f, 46.76f };
  			break;
  		
  		case 29:
  			uParam0->f_3 = 4;
  			uParam0->f_4[0] = joaat("dt1_05_build1_h");
  			uParam0->f_4[1] = joaat("dt1_05_build1_damage");
  			*uParam0 = { 136.004f, -749.287f, 153.302f };
  			break;
  		
  		case 30:
  			uParam0->f_3 = 4;
  			uParam0->f_4[0] = -112041596;
  			uParam0->f_4[1] = joaat("dt1_05_build1_damage_lod");
  			*uParam0 = { 136.004f, -749.287f, 153.302f };
  			break;
  		
  		case 31:
  			uParam0->f_3 = 4;
  			uParam0->f_4[0] = joaat("dt1_05_slod");
  			uParam0->f_4[1] = joaat("dt1_05_damage_slod");
  			*uParam0 = { 178.534f, -668.835f, 37.2113f };
  			break;
  		
  		case 32:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "FIB_heist_lights", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 136.004f, -749.287f, 153.302f };
  			break;
  		
  		case 33:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "FIB_heist_dmg", 32);
  			*uParam0 = { 136.004f, -749.287f, 153.302f };
  			break;
  		
  		case 34:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_rubble", 32);
  			*uParam0 = { 74.29f, -736.05f, 46.76f };
  			break;
  		
  		case 35:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "FIBlobbyfake", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "FIBlobby", 32);
  			*uParam0 = { 105.4557f, -745.4835f, 44.7548f };
  			break;
  		
  		case 36:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_05_HC_REMOVE", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_HC_REQ", 32);
  			*uParam0 = { 169f, -670.3f, 41.9f };
  			break;
  		
  		case 37:
  			uParam0->f_3 = 1;
  			*uParam0 = { 50.2f, 3743.9f, 40.9f };
  			uParam0->f_79 = { 16.9757f, 3614.307f, 30.0677f };
  			uParam0->f_82 = { 145.2451f, 3748.912f, 49.6958f };
  			uParam0->f_85 = { 16.9757f, 3614.307f, 30.0677f };
  			uParam0->f_88 = { 145.2451f, 3748.912f, 49.6958f };
  			uParam0->f_91[0] = 0;
  			uParam0->f_91[1] = 1;
  			break;
  		
  		case 38:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkA_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkA_grp2", 32);
  			*uParam0 = { 50.2f, 3743.9f, 40.9f };
  			break;
  		
  		case 39:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerA_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 50.2f, 3743.9f, 40.9f };
  			break;
  		
  		case 40:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkB_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkB_grp2", 32);
  			*uParam0 = { 106.7f, 3732.1f, 40.8f };
  			break;
  		
  		case 41:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerB_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 106.7f, 3732.1f, 40.8f };
  			break;
  		
  		case 42:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkC_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkC_grp2", 32);
  			*uParam0 = { 72.7f, 3695.4f, 42f };
  			break;
  		
  		case 43:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerC_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 72.7f, 3695.4f, 42f };
  			break;
  		
  		case 44:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkD_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkD_grp2", 32);
  			*uParam0 = { 43.8f, 3699.7f, 41.3f };
  			break;
  		
  		case 45:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerD_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 43.8f, 3699.7f, 41.3f };
  			break;
  		
  		case 46:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkE_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkE_grp2", 32);
  			*uParam0 = { 28.5f, 3668f, 40.4f };
  			break;
  		
  		case 47:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerE_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 28.5f, 3668f, 40.4f };
  			break;
  		
  		case 48:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_34), "des_methtrailer", 32);
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "methtrailer_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "methtrailer_grp2", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "methtrailer_grp3", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 29.4838f, 3735.593f, 38.688f };
  			uParam0->f_68 = { 31.134f, 3738.783f, 39.062f };
  			uParam0->f_71 = { 13.6f, 20f, 8.9f };
  			uParam0->f_74 = 48f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			uParam0->f_75[2] = 1;
  			break;
  		
  		case 49:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_meth_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 29.4838f, 3735.593f, 38.688f };
  			break;
  		
  		case 50:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhs_startimap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhs_endimap", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 2450.595f, 4959.929f, 44.2575f };
  			uParam0->f_79 = { 2383.756f, 4929.988f, 39.52461f };
  			uParam0->f_82 = { 2505.756f, 5023.988f, 67.52461f };
  			break;
  		
  		case 55:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhs_start_occl", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhs_end_occl", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			*uParam0 = { 2450.595f, 4959.929f, 44.2575f };
  			break;
  		
  		case 51:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "farm", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "farm", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "farm_burnt", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 2444.8f, 4976.4f, 50.5f };
  			break;
  		
  		case 52:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "farm_props", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "farm_burnt_props", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 2447.9f, 4973.4f, 47.7f };
  			break;
  		
  		case 53:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhouse", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhouse", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 2447.9f, 4973.4f, 47.7f };
  			break;
  		
  		case 54:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "farmint_cap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "farmint", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			*uParam0 = { 2447.9f, 4973.4f, 47.7f };
  			break;
  		
  		case 56:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "tankerexp_grp0", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp3", 32);
  			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
  			break;
  		
  		case 57:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp1", 32);
  			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
  			break;
  		
  		case 58:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp2", 32);
  			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
  			break;
  		
  		case 59:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_tankerexp", 32);
  			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
  			break;
  		
  		case 60:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "dockcrane1", 32);
  			*uParam0 = { 889.3f, -2910.9f, 40f };
  			break;
  		
  		case 61:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "CanyonRvrShallow", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CanyonRvrDeep", 32);
  			*uParam0 = { -1600.619f, 4443.457f, 0.725f };
  			break;
  		
  		case 62:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Garage_door_locked", 32);
  			*uParam0 = { 966.1f, -114.8f, 75.2f };
  			break;
  		
  		case 63:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "ch1_02_closed", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "ch1_02_open", 32);
  			*uParam0 = { -3086.428f, 339.2523f, 6.3717f };
  			break;
  		
  		case 64:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "ferris_finale_Anim", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { -1675.178f, -1143.605f, 12.0175f };
  			break;
  		
  		case 65:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "railing_start", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "railing_end", 32);
  			*uParam0 = { -532.1309f, 4526.187f, 88.7955f };
  			break;
  		
  		case 66:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "canyonriver01", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "canyonriver01_traincrash", 32);
  			*uParam0 = { -532.1309f, 4526.187f, 88.7955f };
  			break;
  		
  		case 67:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_05_WOFFM", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_FIB2_Mission", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "DT1_05_WOFFM", 32);
  			*uParam0 = { 131.29f, -631.22f, 261.85f };
  			break;
  		
  		case 68:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "coronertrash", 32);
  			*uParam0 = { 233.9f, -1355f, 30.3f };
  			break;
  		
  		case 69:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "Coroner_Int_off", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Coroner_Int_on", 32);
  			*uParam0 = { 234.4f, -1355.6f, 40.5f };
  			break;
  		
  		case 70:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "id2_14_pre_no_int", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 716.84f, -962.05f, 31.59f };
  			break;
  		
  		case 71:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_during1", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "id2_14_during2", 32);
  			*uParam0 = { 716.84f, -962.05f, 31.59f };
  			break;
  		
  		case 72:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_on_fire", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "id2_14_post_no_int", 32);
  			*uParam0 = { 716.84f, -962.05f, 31.59f };
  			break;
  		
  		case 73:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_during_door", 32);
  			*uParam0 = { 716.84f, -962.05f, 31.59f };
  			break;
  		
  		case 74:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "burnt_switch_off", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 716.84f, -962.05f, 31.59f };
  			break;
  		
  		case 75:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "RC12B_Default", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "RC12B_Destroyed", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "RC12B_Fixed", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
  			break;
  		
  		case 76:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "RC12B_HospitalInterior", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
  			break;
  		
  		case 105:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "SM_15_BldGRAF1", 32);
  			*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
  			break;
  		
  		case 106:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CH3_RD2_BishopsChickenGraffiti", 32);
  			*uParam0 = { 1861.28f, 2402.11f, 58.53f };
  			break;
  		
  		case 107:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "FruitBB", 32);
  			*uParam0 = { -1327.46f, -274.82f, 54.25f };
  			break;
  		
  		case 108:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS5_04_MazeBillboardGraffiti", 32);
  			*uParam0 = { 2697.32f, 3162.18f, 58.1f };
  			break;
  		
  		case 109:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS5_Roads_RonOilGraffiti", 32);
  			*uParam0 = { 2119.12f, 3058.21f, 53.25f };
  			break;
  		
  		case 110:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "ap1_03_bbrd_dcl", 32);
  			*uParam0 = { -804.25f, -2276.88f, 23.59f };
  			break;
  		
  		case 111:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "HW1_02_OldBill", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "HW1_02_NewBill", 32);
  			*uParam0 = { 296.5f, 173.3f, 100.4f };
  			break;
  		
  		case 112:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "HW1_Emissive_OldBill", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "HW1_Emissive_NewBill", 32);
  			*uParam0 = { 296.5f, 173.3f, 100.4f };
  			break;
  		
  		case 77:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 480.9554f, -1321.21f, 28.2037f };
  			uParam0->f_85 = { 508.3f, -1299.3f, 39.4f };
  			uParam0->f_88 = { 459.9f, -1363.2f, 21.4f };
  			uParam0->f_91[0] = 0;
  			uParam0->f_91[1] = 1;
  			uParam0->f_91[2] = 0;
  			break;
  		
  		case 78:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "TrevorsTrailer", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "TrevorsTrailerTrash", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "TrevorsTrailerTidy", 32);
  			*uParam0 = { 1973f, 3815f, 34f };
  			uParam0->f_33 = 0;
  			break;
  		
  		case joaat("MPSV_LP0_31"):
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "scafstartimap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "scafendimap", 32);
  			*uParam0 = { -1088.6f, -1650.6f, 6.4f };
  			break;
  		
  		case 80:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "chop_props", 32);
  			*uParam0 = { -13.83f, -1455.45f, 31.81f };
  			break;
  		
  		case 113:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "AP1_04_TriAf01", 32);
  			*uParam0 = { -1277.629f, -2030.913f, 1.2823f };
  			break;
  		
  		case 114:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS2_06_TriAf02", 32);
  			*uParam0 = { 2384.969f, 4277.583f, 30.379f };
  			break;
  		
  		case 115:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS4_04_TriAf03", 32);
  			*uParam0 = { 1577.881f, 3836.107f, 30.7717f };
  			break;
  		
  		case 87:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_21_prop_lift_on", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { -180.5771f, -1016.928f, 28.2893f };
  			break;
  		
  		case 88:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "jewel2fake", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "post_hiest_unload", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "bh1_16_refurb", 32);
  			*uParam0 = { -630.4205f, -236.7843f, 37.057f };
  			uParam0->f_79 = { (-623.6868f - 11f), (-231.935f - 11f), (40.30703f - 3.25f) };
  			uParam0->f_82 = { (-623.6868f + 11f), (-231.935f + 11f), (40.30703f + 3.25f) };
  			break;
  		
  		case 89:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "bh1_16_doors_shut", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "refit_unload", 32);
  			*uParam0 = { -583.1606f, -282.3967f, 35.394f };
  			break;
  		
  		case 90:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "v_tunnel_hole_swap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "v_tunnel_hole", 32);
  			*uParam0 = { -14.651f, -604.3639f, 25.1823f };
  			break;
  		
  		case 91:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "cs5_4_trains", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 2773.61f, 2835.327f, 35.1903f };
  			break;
  		
  		case 94:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "airfield", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 1743.682f, 3286.251f, 40.0875f };
  			break;
  		
  		case 95:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 1222.9f, 1877.9f, 79.9f };
  			uParam0->f_58 = { 1206.8f, 1803f, 43.9f };
  			uParam0->f_61 = { 1329f, 2060.4f, 143.9f };
  			uParam0->f_64[0] = 0;
  			uParam0->f_64[1] = 1;
  			uParam0->f_64[2] = 0;
  			break;
  		
  		case 104:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_01_OldBill", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "SC1_01_NewBill", 32);
  			*uParam0 = { -351f, -1324f, 44.02f };
  			break;
  		
  		case 103:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_17_OldBill", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_17_NewBill", 32);
  			*uParam0 = { 391.81f, -962.71f, 41.97f };
  			break;
  		
  		case 102:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_14_OldBill", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "SC1_14_NewBill", 32);
  			*uParam0 = { 424.2f, -1944.31f, 33.09f };
  			break;
  		
  		case 92:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "ld_rail_01_track", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 2626.374f, 2949.869f, 39.1409f };
  			break;
  		
  		case 93:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "ld_rail_02_track", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 2626.374f, 2949.869f, 39.1409f };
  			break;
  		
  		case 118:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_M_items", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_M_moved", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -811.2679f, 179.3344f, 75.7408f };
  			break;
  		
  		case 116:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_D_items", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_D_Moved", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -802.0311f, 172.9131f, 75.7408f };
  			break;
  		
  		case 117:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_S_items", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_S_items_swap", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -808.033f, 172.1309f, 75.7406f };
  			break;
  		
  		case 119:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_L_Items", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_L_Moved", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -808.033f, 172.1309f, 75.7406f };
  			break;
  		
  		case 120:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_M_items_swap", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -808.033f, 172.1309f, 75.7406f };
  			break;
  		
  		case 122:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_FameShame", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -802.0311f, 172.9131f, 75.7408f };
  			break;
  		
  		case 121:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_JewelHeist", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -813.3f, 177.5f, 75.76f };
  			break;
  		
  		case 123:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Michael_premier", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -813.3f, 177.5f, 75.76f };
  			break;
  		
  		case 124:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_plane_ticket", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -813.3f, 177.5f, 75.76f };
  			break;
  		
  		case 170:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "burgershot_yoga", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -813.3f, 177.5f, 75.76f };
  			break;
  		
  		case 171:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_Scuba", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael_Garage", 32);
  			*uParam0 = { -810.5301f, 187.7868f, 71.4786f };
  			break;
  		
  		case 125:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_bed_tidy", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_bed_Messy", 32);
  			StringCopy(&(uParam0->f_42), "V_Michael", 32);
  			*uParam0 = { -811.2679f, 179.3344f, 75.7408f };
  			break;
  		
  		case 164:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Jewel_Gasmasks", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 165:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_53_Agency _Overalls", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 166:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_53_Agency_Blueprint", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 167:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_KitBag", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 168:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_Body_Armour", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 169:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_Fireman", 32);
  			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
  			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
  			break;
  		
  		case 126:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet1", 32);
  			StringCopy(&(uParam0->f_42), "V_Trailer", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 127:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet3", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 128:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet2", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 129:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase1", 32);
  			StringCopy(&(uParam0->f_42), "V_Trailer", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 130:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase3", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 131:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase2", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 132:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay1", 32);
  			StringCopy(&(uParam0->f_42), "V_Trailer", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 133:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay3", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 134:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay2", 32);
  			StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
  			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
  			break;
  		
  		case 179:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "shutter_open", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "shutter_closed", 32);
  			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
  			*uParam0 = { -30.8793f, -1088.336f, 25.4221f };
  			uParam0->f_68 = { -29.3f, -1086.35f, 25.57f };
  			uParam0->f_71 = { 5.5f, 3f, 2f };
  			uParam0->f_74 = -10f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			break;
  		
  		case 174:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "csr_beforeMission", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "csr_afterMissionA", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "csr_afterMissionB", 32);
  			StringCopy(&(uParam0->f_50), "csr_inMission", 32);
  			uParam0->f_33 = 0;
  			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
  			*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
  			break;
  		
  		case 175:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
  			*uParam0 = { -49.21f, -1090.28f, 25.42f };
  			uParam0->f_68 = { -49.21f, -1090.28f, 25.42f };
  			uParam0->f_71 = { 2.5f, 3f, 3f };
  			uParam0->f_74 = 0f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			uParam0->f_75[2] = 0;
  			break;
  		
  		case 176:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
  			*uParam0 = { -49.28f, -1092.66f, 25.42f };
  			uParam0->f_68 = { -49.28f, -1092.66f, 25.42f };
  			uParam0->f_71 = { 3f, 1f, 3f };
  			uParam0->f_74 = 0f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			uParam0->f_75[2] = 0;
  			break;
  		
  		case 177:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
  			*uParam0 = { -53.07f, -1096.73f, 25.5f };
  			uParam0->f_68 = { -53.07f, -1096.73f, 25.5f };
  			uParam0->f_71 = { 1f, 3f, 2f };
  			uParam0->f_74 = -45f;
  			uParam0->f_75[0] = 0;
  			uParam0->f_75[1] = 1;
  			uParam0->f_75[2] = 0;
  			break;
  		
  		case 178:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "carshowroom_broken", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "carshowroom_boarded", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
  			break;
  		
  		case 173:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "shr_int", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "fakeint", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
  			break;
  		
  		case 180:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_03_Shutter", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "", 32);
  			*uParam0 = { 23.9346f, -669.7552f, 30.8853f };
  			break;
  		
  		case 181:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "Hospitaldoorsanim", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "Hospitaldoorsfixed", 32);
  			StringCopy(&(uParam0->f_42), "v_hospital", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 300.9423f, -586.1784f, 42.2919f };
  			break;
  		
  		case 135:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_clean_apt", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_A", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 136:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_B", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 137:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_C", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 138:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_sextoys_a", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 139:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_wade_shit", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 140:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_wade_sofa_A", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 141:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "layer_debra_pic", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 142:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_torture", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 143:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_sofa_A", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_sofa_B", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 144:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_whiskey", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 145:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_mrJam_A", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_mrJam_B", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 146:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_mrJam_C", 32);
  			StringCopy(&(uParam0->f_42), "v_trevors", 32);
  			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
  			break;
  		
  		case 147:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "vb_30_emissive", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "vb_30_murder", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -1150.039f, -1521.761f, 9.6331f };
  			break;
  		
  		case 148:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "vb_30_crimetape", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -1150.039f, -1521.761f, 9.6331f };
  			break;
  		
  		case 149:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "sheriff_cap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 1856.029f, 3682.998f, 33.2675f };
  			break;
  		
  		case 150:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "CS1_16_Sheriff_Cap", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -440.5073f, 6018.766f, 30.49f };
  			break;
  		
  		case 151:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "ufo", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 487.31f, 5588.386f, 793.0532f };
  			break;
  		
  		case 152:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "ufo_eye", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 487.31f, 5588.386f, 793.0532f };
  			break;
  		
  		case 153:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_57_FranklinStuff", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_Franklin_LEFT", 32);
  			StringCopy(&(uParam0->f_42), "v_franklins", 32);
  			*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
  			break;
  		
  		case 154:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_GangBandana", 32);
  			StringCopy(&(uParam0->f_42), "v_franklins", 32);
  			*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
  			break;
  		
  		case 155:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_Safari", 32);
  			StringCopy(&(uParam0->f_42), "v_franklins", 32);
  			*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
  			break;
  		
  		case 172:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_19_Trevor_Mess", 32);
  			StringCopy(&(uParam0->f_42), "v_strip3", 32);
  			*uParam0 = { 96.4811f, -1291.294f, 28.2688f };
  			break;
  		
  		case 182:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 139.5795f, -3092.962f, 8.64631f };
  			uParam0->f_79 = { Vector(8.64631f, -3092.962f, 139.5795f) - Vector(4.1875f, 24f, 33.3125f) };
  			uParam0->f_82 = { Vector(8.64631f, -3092.962f, 139.5795f) + Vector(4.1875f, 24f, 33.3125f) };
  			uParam0->f_85 = { Vector(8.64631f, -3092.962f, 139.5795f) - Vector(4.1875f, 24f, 33.3125f) };
  			uParam0->f_88 = { Vector(8.64631f, -3092.962f, 139.5795f) + Vector(4.1875f, 24f, 33.3125f) };
  			uParam0->f_91[0] = 0;
  			uParam0->f_91[1] = 1;
  			uParam0->f_91[2] = 1;
  			break;
  		
  		case 183:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 203.7784f, -3131.767f, 7.041344f };
  			uParam0->f_79 = { Vector(7.041344f, -3131.767f, 203.7784f) - Vector(2.5625f, 2.75f, 4.875f) };
  			uParam0->f_82 = { Vector(7.041344f, -3131.767f, 203.7784f) + Vector(2.5625f, 2.75f, 4.875f) };
  			break;
  		
  		case 184:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 144.7706f, -2982.659f, 7.952507f };
  			uParam0->f_79 = { Vector(7.952507f, -2982.659f, 144.7706f) - Vector(3.125f, 3.4375f, 5.3125f) };
  			uParam0->f_82 = { Vector(7.952507f, -2982.659f, 144.7706f) + Vector(3.125f, 3.4375f, 5.3125f) };
  			break;
  		
  		case 185:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { -1154.965f, -1520.983f, 9.132731f };
  			uParam0->f_79 = { -1154.965f, -1520.983f, 9.132731f };
  			uParam0->f_82 = { -1158.965f, -1524.983f, 11.63273f };
  			break;
  		
  		case 187:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { -1052.204f, 371.9537f, 67.914f };
  			uParam0->f_79 = { -1052.204f, 371.9537f, 67.914f };
  			uParam0->f_82 = { -1048.064f, 368.0221f, 70.9128f };
  			break;
  		
  		case 186:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { 1954.984f, 3792.991f, 30.3086f };
  			uParam0->f_79 = { 1954.984f, 3792.991f, 30.3086f };
  			uParam0->f_82 = { 1983.45f, 3830.78f, 36.2726f };
  			break;
  		
  		case 188:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 1;
  			*uParam0 = { -1122.202f, 48.5724f, 51.4652f };
  			uParam0->f_79 = { -1122.202f, 48.5724f, 51.4652f };
  			uParam0->f_82 = { -1076.233f, 92.1041f, 60.0617f };
  			break;
  		
  		case 81:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "KorizTempWalls", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -2199.138f, 223.4648f, 181.1118f };
  			break;
  		
  		case 82:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "mic3_chopper_debris", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { -2242.785f, 263.4779f, 173.6154f };
  			break;
  		
  		case 83:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "chemgrill_grp1", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 3832.9f, 3665.5f, -23.4f };
  			break;
  		
  		case 84:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Plane_crash_trench", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 2814.7f, 4758.5f, 47.9f };
  			break;
  		
  		case 85:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "golfflags", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { -1096.505f, 4.5754f, 49.8103f };
  			break;
  		
  		case 86:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "yogagame", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { -781.6566f, 186.8937f, 71.8352f };
  			break;
  		
  		case 189:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "Carwash_with_spinners", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "Carwash_without_spinners", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 55.7f, -1391.3f, 30.5f };
  			break;
  		
  		case 190:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "KT_CarWash", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "KT_CarWash_NoBrush", 32);
  			uParam0->f_33 = 0;
  			*uParam0 = { 700.091f, -933.641f, 20.308f };
  			break;
  		
  		case 191:
  			uParam0->f_3 = 1;
  			*uParam0 = { -1096.381f, -836.17f, 36.6755f };
  			uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
  			uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
  			uParam0->f_91[0] = 1;
  			uParam0->f_91[1] = 0;
  			break;
  		
  		case 192:
  			uParam0->f_3 = 1;
  			*uParam0 = { 449.6558f, -980.1375f, 42.6918f };
  			uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
  			uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
  			uParam0->f_91[0] = 1;
  			uParam0->f_91[1] = 0;
  			break;
  		
  		case 193:
  			uParam0->f_3 = 1;
  			*uParam0 = { 363.0175f, -1598.079f, 35.9502f };
  			uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
  			uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
  			uParam0->f_91[0] = 1;
  			uParam0->f_91[1] = 0;
  			break;
  		
  		case 194:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS3_07_MPGates", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
  			*uParam0 = { -1601.424f, 2808.213f, 16.2598f };
  			break;
  		
  		case 97:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_03_Gr_Closed", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
  			*uParam0 = { 23.7318f, -647.2123f, 37.9549f };
  			break;
  		
  		case 98:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "FINBANK", 32);
  			*uParam0 = { 12.9689f, -648.4698f, 9.7693f };
  			break;
  		
  		case 99:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "PAPER1_RCM_ALT", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "PAPER1_RCM", 32);
  			*uParam0 = { -1459.127f, 486.1281f, 115.2016f };
  			break;
  		
  		case 100:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "SP1_10_fake_interior", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "SP1_10_real_interior", 32);
  			*uParam0 = { -248.4916f, -2010.509f, 34.5743f };
  			break;
  		
  		case 101:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "facelobbyfake", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "facelobby", 32);
  			*uParam0 = { -1081.347f, -263.1502f, 38.7152f };
  			break;
  		
  		case 195:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "atriumglstatic", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "atriumglmission", 32);
  			StringCopy(&(uParam0->f_8[2 /*8*/]), "atriumglcut", 32);
  			*uParam0 = { 136.1795f, -750.701f, 262.0516f };
  			break;
  		
  		case 197:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "racetrack01", 32);
  			*uParam0 = { 2096f, 3168.7f, 42.9f };
  			break;
  	}
  	switch (iParam1)
  	{
  		case 156:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "showhome_only", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 157:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "franklin_unpacking", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 158:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "franklin_settled", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 163:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_tshirt", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 159:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "bong_and_wine", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 161:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_flyer", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 162:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_tux", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 160:
  			uParam0->f_3 = 2;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "locked", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "unlocked", 32);
  			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
  			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
  			break;
  		
  		case 96:
  			uParam0->f_3 = 1;
  			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
  			StringCopy(&(uParam0->f_8[1 /*8*/]), "chophillskennel", 32);
  			*uParam0 = { 19.0568f, 536.4818f, 169.6277f };
  			break;
  	}
  	return 1;
  }
  
  int func_189(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 46:
  			return 42;
  			break;
  		
  		case 47:
  			return 43;
  			break;
  		
  		case 49:
  			return 44;
  			break;
  		
  		case 50:
  			return 45;
  			break;
  		
  		case 8:
  			if (unk_0xCE990E643CD9D0E5(Global_111858.f_18570.f_382, 0))
  			{
  				return 46;
  			}
  			break;
  		
  		case 16:
  			return 47;
  			break;
  		
  		case 38:
  			return 48;
  			break;
  		
  		case 39:
  			return 49;
  			break;
  		
  		case 40:
  			return 50;
  			break;
  		
  		case 41:
  			return 51;
  			break;
  		
  		case 42:
  			return 52;
  			break;
  		
  		case 43:
  			if (Global_111858.f_9081.f_99.f_58[101])
  			{
  				return 53;
  			}
  			else
  			{
  				return 54;
  			}
  			break;
  		
  		case 20:
  			return 55;
  			break;
  	}
  	return 0;
  }
  
  void func_190(int iParam0, bool bParam1)
  {
  	switch (iParam0)
  	{
  		case 46:
  			func_191(4, bParam1);
  			break;
  		
  		case 16:
  			func_191(6, bParam1);
  			break;
  		
  		case 37:
  			func_191(17, bParam1);
  			break;
  		
  		case 31:
  			func_191(16, bParam1);
  			break;
  	}
  }
  
  void func_191(int iParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 >= 0 && iVar0 <= 31)
  	{
  		if (!func_198(iParam0))
  		{
  			unk_0xBE20AB8238688965(&(Global_111858.f_26430), iVar0);
  			if (!bParam1)
  			{
  				func_196(func_197(iParam0));
  				if (!func_195(68))
  				{
  					func_192("DI_HLP_STRY", 2, 0, 20000, 10000, 7, 0, 208, 0);
  				}
  			}
  		}
  	}
  }
  
  void func_192(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8)
  {
  	func_193(sParam0, "", iParam1, iParam2, iParam3, iParam4, iParam5, iParam6, iParam7, iParam8);
  }
  
  void func_193(char* sParam0, char* sParam1, var uParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, var uParam9)
  {
  	int iVar0;
  	
  	if (unk_0xF005CCA4263DF67F(sParam0, ""))
  	{
  		return;
  	}
  	if (iParam3 < 0)
  	{
  		return;
  	}
  	if (iParam5 < 500 && iParam5 != -1)
  	{
  		return;
  	}
  	if (iParam4 < 0 && iParam4 != -1)
  	{
  		return;
  	}
  	if (iParam6 < 1 || iParam6 > 7)
  	{
  		return;
  	}
  	if (iParam7 == 235)
  	{
  		return;
  	}
  	if (iParam8 == 235)
  	{
  		return;
  	}
  	iVar0 = 0;
  	while (iVar0 < Global_111858.f_20406.f_145)
  	{
  		if (unk_0xF005CCA4263DF67F(&(Global_111858.f_20406[iVar0 /*16*/]), sParam0))
  		{
  			return;
  		}
  		iVar0++;
  	}
  	if (Global_111858.f_20406.f_145 < 9)
  	{
  		StringCopy(&(Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/]), sParam0, 16);
  		StringCopy(&(Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/].f_4), sParam1, 16);
  		Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/].f_8 = (unk_0x578C4EF320340AF7() + iParam3);
  		Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/].f_9 = iParam5;
  		Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/].f_11 = iParam6;
  		Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/].f_12 = uParam2;
  		Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/].f_13 = iParam7;
  		Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/].f_14 = iParam8;
  		Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/].f_15 = uParam9;
  		if (iParam4 != -1)
  		{
  			Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/].f_10 = ((unk_0x578C4EF320340AF7() + iParam3) + iParam4);
  		}
  		else
  		{
  			Global_111858.f_20406[Global_111858.f_20406.f_145 /*16*/].f_10 = -1;
  		}
  		Global_111858.f_20406.f_145++;
  		func_194();
  	}
  }
  
  void func_194()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		Global_111858.f_20406.f_146[iVar0] = 0;
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < Global_111858.f_20406.f_145)
  	{
  		if (unk_0xCE990E643CD9D0E5(Global_111858.f_20406[iVar0 /*16*/].f_11, 0))
  		{
  			if (Global_111858.f_20406[iVar0 /*16*/].f_12 > Global_111858.f_20406.f_146[0])
  			{
  				Global_111858.f_20406.f_146[0] = Global_111858.f_20406[iVar0 /*16*/].f_12;
  			}
  		}
  		if (unk_0xCE990E643CD9D0E5(Global_111858.f_20406[iVar0 /*16*/].f_11, 1))
  		{
  			if (Global_111858.f_20406[iVar0 /*16*/].f_12 > Global_111858.f_20406.f_146[1])
  			{
  				Global_111858.f_20406.f_146[1] = Global_111858.f_20406[iVar0 /*16*/].f_12;
  			}
  		}
  		if (unk_0xCE990E643CD9D0E5(Global_111858.f_20406[iVar0 /*16*/].f_11, 2))
  		{
  			if (Global_111858.f_20406[iVar0 /*16*/].f_12 > Global_111858.f_20406.f_146[2])
  			{
  				Global_111858.f_20406.f_146[2] = Global_111858.f_20406[iVar0 /*16*/].f_12;
  			}
  		}
  		iVar0++;
  	}
  }
  
  int func_195(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = iParam0;
  	iVar1 = 0;
  	while (iVar0 > 31)
  	{
  		iVar0 = (iVar0 - 32);
  		iVar1++;
  	}
  	if (iVar1 < 3)
  	{
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_20406.f_150[iVar1], iVar0);
  	}
  	return 0;
  }
  
  void func_196(var uParam0)
  {
  	unk_0x5B8DD855EAFD33B5("");
  	unk_0x53CA123A6CDD8CF1("CHAR_ACTING_UP", "CHAR_ACTING_UP", 0, 0, "DI_FEED_CHAR", uParam0);
  }
  
  char* func_197(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return "CM_STOMIC";
  			break;
  		
  		case 1:
  			return "CM_STOFRA";
  			break;
  		
  		case 2:
  			return "CM_STOTRE";
  			break;
  		
  		case 3:
  			return "CM_STOAMA";
  			break;
  		
  		case 4:
  			return "CM_STOBEV";
  			break;
  		
  		case 5:
  			return "CM_STOBRA";
  			break;
  		
  		case 6:
  			return "CM_STOCHR";
  			break;
  		
  		case 7:
  			return "CM_STODAV";
  			break;
  		
  		case 8:
  			return "CM_STODEV";
  			break;
  		
  		case 9:
  			return "CM_STODRF";
  			break;
  		
  		case 10:
  			return "CM_STOFAB";
  			break;
  		
  		case 11:
  			return "CM_STOFLO";
  			break;
  		
  		case 12:
  			return "CM_STOJIM";
  			break;
  		
  		case 13:
  			return "CM_STOLAM";
  			break;
  		
  		case 14:
  			return "CM_STOLAZ";
  			break;
  		
  		case 15:
  			return "CM_STOLES";
  			break;
  		
  		case 16:
  			return "CM_STOMAU";
  			break;
  		
  		case 17:
  			return "CM_STOTHO";
  			break;
  		
  		case 18:
  			return "CM_STONER";
  			break;
  		
  		case 19:
  			return "CM_STOPAT";
  			break;
  		
  		case 20:
  			return "CM_STOSIM";
  			break;
  		
  		case 21:
  			return "CM_STOSOL";
  			break;
  		
  		case 22:
  			return "CM_STOSTE";
  			break;
  		
  		case 23:
  			return "CM_STOSTR";
  			break;
  		
  		case 24:
  			return "CM_STOTAN";
  			break;
  		
  		case 25:
  			return "CM_STOTAO";
  			break;
  		
  		case 26:
  			return "CM_STOTRA";
  			break;
  		
  		case 27:
  			return "CM_STOWAD";
  			break;
  	}
  	return "ERROR!";
  }
  
  int func_198(int iParam0)
  {
  	if (iParam0 != -1 && iParam0 != 28)
  	{
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_26430, iParam0);
  	}
  	return 0;
  }
  
  void func_199(int iParam0, int iParam1)
  {
  	if (iParam0 == 235 || iParam0 == 0)
  	{
  		return;
  	}
  	Global_111858.f_8609[iParam0] = 1;
  	Global_111858.f_8609.f_236[iParam0] = (unk_0x578C4EF320340AF7() + iParam1);
  }
  
  int func_200(char* sParam0)
  {
  	int iVar0;
  	
  	iVar0 = 1424;
  	if (!unk_0x55B9A76AF5A44EE2(sParam0))
  	{
  		return 1;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "controller_Races"))
  	{
  		if (unk_0x7B70881748D166CD(joaat("controller_races")) > 0)
  		{
  			return 1;
  		}
  		iVar0 = 128;
  	}
  	unk_0xBE9B3870B1B370E3(sParam0);
  	if (unk_0x8DC2EFD1CECAA468(sParam0))
  	{
  		SYSTEM::START_NEW_SCRIPT(sParam0, iVar0);
  		unk_0x5F82526B41A5EBCE(sParam0);
  		return 1;
  	}
  	return 0;
  }
  
  int func_201()
  {
  	return func_202(unk_0x6C5C6B207AA78253(), 0);
  }
  
  int func_202(char* sParam0, int iParam1)
  {
  	int iVar0;
  	var uVar1;
  	int iVar2;
  	int iVar3;
  	
  	iVar2 = unk_0x856D5567211886A2(sParam0);
  	iVar3 = 0;
  	iVar3 = 0;
  	while (iVar3 < 63)
  	{
  		iVar0 = iVar3;
  		func_162(iVar0, &uVar1);
  		if (unk_0x856D5567211886A2(uVar1) == iVar2)
  		{
  			return iVar0;
  		}
  		iVar3++;
  	}
  	if (iParam1 == 0)
  	{
  	}
  	return -1;
  }
  
  void func_203(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_204(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;
  }
  
  void func_205(int iParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(*iParam0))
  	{
  		if (unk_0x8E805E09B82CCE5F(*iParam0))
  		{
  			unk_0x1F8106DB8796859F(*iParam0, 1, 1);
  		}
  		unk_0x315F7D8C33F0AB37(iParam0);
  	}
  }
  
  void func_206()
  {
  	if (!iLocal_376)
  	{
  		func_228(&uLocal_115, 4, 0, "NIGEL", 0, 1);
  		iLocal_376 = 1;
  	}
  	switch (iLocal_56)
  	{
  		case 0:
  			if (((!unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7()) && !unk_0x12C99794D883929B(unk_0x9B0761B4C3EB8BC7())) && !unk_0x0922C2E075A5F18C(unk_0x9B0761B4C3EB8BC7())) && !unk_0xA16974805191D19C(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (func_211(&uLocal_115, 64, "NIGE3AU", "NIGEL3_ZA", 7, 1, 0, 0, 0))
  				{
  					iLocal_377 = -1;
  					iLocal_56 = 1;
  				}
  				unk_0x0C23023B6B6C6051(1);
  			}
  			break;
  		
  		case 1:
  			if (func_210())
  			{
  				if (unk_0x68CB238A579603D3() > iLocal_377)
  				{
  					iLocal_377 = unk_0x68CB238A579603D3();
  				}
  			}
  			else if (func_209())
  			{
  				if (func_208())
  				{
  					if (iLocal_377 >= 0)
  					{
  						iLocal_56 = 2;
  					}
  					else
  					{
  						iLocal_56 = 0;
  					}
  				}
  				else
  				{
  					iLocal_56 = 2;
  				}
  			}
  			break;
  		
  		case 2:
  			if (((!unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7()) && !unk_0x12C99794D883929B(unk_0x9B0761B4C3EB8BC7())) && !unk_0x0922C2E075A5F18C(unk_0x9B0761B4C3EB8BC7())) && !unk_0xA16974805191D19C(unk_0x9B0761B4C3EB8BC7()))
  			{
  				func_207(&Local_63);
  				iLocal_297 = 0;
  				func_2();
  			}
  			break;
  	}
  }
  
  void func_207(int iParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(*iParam0))
  	{
  		unk_0xA59F96B50B97E63C(*iParam0, 0);
  		if (unk_0x1758275D343D5BA3(*iParam0) && unk_0x1D2A3118784C0272(*iParam0, 1))
  		{
  			unk_0xE730EAF558C97567(iParam0);
  		}
  	}
  }
  
  int func_208()
  {
  	if (Global_19666)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_209()
  {
  	if (Global_21005 == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_210()
  {
  	if (Global_21005 != 0 || unk_0x6A5CC4A2C9D9ED8D())
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_211(var uParam0, int iParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6, int iParam7, bool bParam8)
  {
  	func_227(uParam0, iParam1, sParam2, iParam6, iParam7, 0);
  	Global_21053 = 0;
  	Global_21012 = 1;
  	Global_21019 = 0;
  	Global_21014 = 0;
  	Global_21996 = 0;
  	Global_21998 = 0;
  	Global_22002 = 0;
  	Global_21010 = 0;
  	Global_21057 = 0;
  	Global_21059 = 0;
  	if (iParam5 == 1)
  	{
  		Global_21017 = 1;
  	}
  	else
  	{
  		Global_21017 = 0;
  	}
  	Global_2621441 = 0;
  	return func_212(sParam3, iParam4, bParam8);
  }
  
  int func_212(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_226();
  					return 0;
  				}
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		if (unk_0x6A5CC4A2C9D9ED8D())
  		{
  			return 0;
  		}
  		if (func_225(8, -1))
  		{
  			return 0;
  		}
  		Global_21081 = { Global_21075 };
  		func_224();
  		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_222();
  				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_221())
  				{
  					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_220())
  			{
  				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_219();
  			Global_21015 = bParam2;
  		}
  		Global_21007 = iParam1;
  		StringCopy(&Global_20624, sParam0, 24);
  		Global_19871 = 0;
  		func_218();
  		func_213();
  		return 1;
  	}
  	if (Global_21005 == 5)
  	{
  		return 0;
  	}
  	if (iParam1 < Global_21007 || iParam1 == Global_21007)
  	{
  		return 0;
  	}
  	if (iParam1 == 2)
  	{
  	}
  	else
  	{
  		func_226();
  	}
  	return 0;
  }
  
  void func_213()
  {
  	if (!func_214())
  	{
  		return;
  	}
  	if (Global_21011)
  	{
  		MemCopy(&(Global_1703978.f_1), {Global_20624}, 4);
  		Global_1703978 = Global_6866;
  		Global_1703978.f_6 = Global_21015;
  	}
  }
  
  int func_214()
  {
  	if (!Global_262145.f_28160)
  	{
  		return 0;
  	}
  	if (!Global_76833)
  	{
  		return 0;
  	}
  	if (unk_0x460153A63B9477BC() == func_217())
  	{
  		return 0;
  	}
  	if (func_215(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_215(int iParam0)
  {
  	return func_216(iParam0, 20);
  }
  
  bool func_216(int iParam0, int iParam1)
  {
  	return unk_0xCE990E643CD9D0E5(Global_1630317[iParam0 /*595*/].f_11.f_4, iParam1);
  }
  
  int func_217()
  {
  	return -1;
  }
  
  void func_218()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 69)
  	{
  		StringCopy(&(Global_19873[iVar0 /*6*/]), "", 24);
  		iVar0++;
  	}
  	unk_0xBE4122AC23440E7D(0);
  	Global_21005 = 1;
  }
  
  void func_219()
  {
  	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_220()
  {
  	if (Global_19681.f_1 == 1 || Global_19681.f_1 == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_221()
  {
  	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_222()
  {
  	if (func_91(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_223();
  		if (Global_19681 == 145)
  		{
  			Global_19681 = 3;
  		}
  		if (Global_76833)
  		{
  			Global_19681 = 3;
  		}
  		if (Global_19681 > 3)
  		{
  			Global_19681 = 3;
  		}
  	}
  }
  
  int func_223()
  {
  	func_155();
  	return Global_111858.f_2359.f_539.f_4321;
  }
  
  void func_224()
  {
  	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 };
  }
  
  bool func_225(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);
  }
  
  void func_226()
  {
  	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_227(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_228(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5)
  {
  	if ((uParam0[iParam1 /*10*/])->f_7 == 1)
  	{
  	}
  	(*uParam0)[iParam1 /*10*/] = iParam2;
  	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(iParam2))
  		{
  			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);
  			}
  		}
  	}
  }
  
  void func_229()
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	var uVar2;
  	struct<3> Var3;
  	float fVar4;
  	
  	switch (iLocal_56)
  	{
  		case 0:
  			func_248(&uLocal_107);
  			func_236(0f, 0f, 0f, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
  			if (func_235(Local_314))
  			{
  				Var0 = { unk_0x7EC595B99EA7C4B1(Local_314, 0f, 8f, -4f) };
  				Var1 = { unk_0x7EC595B99EA7C4B1(Local_314, 0f, 60f, 10f) };
  				if (unk_0x1037B9D45CE6B788(unk_0x9B0761B4C3EB8BC7(), Var0, Var1, 3f, 0, 1, 0))
  				{
  					unk_0xDDEDC06C88DA4E04(unk_0x460153A63B9477BC(), false, 512);
  				}
  				uLocal_311[0] = unk_0x7CD2F129A4A837A8(26379945, 1);
  				unk_0xD64C2E5B5BA2D347(uLocal_311[0], 25.3209f);
  				unk_0x3B1D5D044BC72834(uLocal_311[0], Local_314, -3.4384f, 42.1476f, 0.1772f, 1);
  				unk_0x46FC5C9D2F1078AF(uLocal_311[0], Local_314, -2.9318f, 39.1938f, 0.3114f, 1);
  				unk_0x2311A669433389E8(uLocal_311[0], "HAND_SHAKE", 0.166f);
  				uLocal_311[1] = unk_0x7CD2F129A4A837A8(26379945, 1);
  				unk_0xD64C2E5B5BA2D347(uLocal_311[1], 25.3209f);
  				unk_0x3B1D5D044BC72834(uLocal_311[1], Local_314, -3.6622f, 13.9852f, -0.5222f, 1);
  				unk_0x46FC5C9D2F1078AF(uLocal_311[1], Local_314, -2.2737f, 11.3714f, -0.0324f, 1);
  				unk_0x2311A669433389E8(uLocal_311[1], "HAND_SHAKE", 0.166f);
  			}
  			iLocal_312[0] = 4000;
  			iLocal_312[1] = 3000;
  			fLocal_313 = 0f;
  			unk_0x40ECEB892E6BDDDB(3, 0);
  			if (func_235(Local_63))
  			{
  				if (unk_0x6167DCEE85C18365(Local_63) > -100f)
  				{
  					unk_0x4A9F6CA267EF14FE(Local_63, -100f);
  					Local_308 = { unk_0x3E4D3CCC220BDFB1(Local_63, 1) };
  				}
  			}
  			if (func_235(Local_314.f_6))
  			{
  				unk_0x0312E5501F93E5AB(Local_314.f_6, 1);
  			}
  			unk_0xF674D9B2033F5F86(uLocal_311[1], uLocal_311[0], iLocal_312[0], 0, 0);
  			unk_0x3ED9330214992278(1, 0, 3000, 1, 0, 0);
  			unk_0x182DD1CBC93CF936(1);
  			bLocal_303 = true;
  			bLocal_304 = false;
  			iLocal_305 = 0;
  			iLocal_306 = 0;
  			if (func_234())
  			{
  				iLocal_307 = 1;
  			}
  			else
  			{
  				iLocal_307 = 0;
  			}
  			iLocal_56 = 1;
  			break;
  		
  		case 1:
  			func_233();
  			if (fLocal_313 >= 7f)
  			{
  				bLocal_303 = false;
  			}
  			else if (!iLocal_305 && fLocal_313 >= 4f)
  			{
  				if (func_235(Local_314))
  				{
  					uLocal_311[2] = unk_0x7CD2F129A4A837A8(26379945, 1);
  					unk_0xD64C2E5B5BA2D347(uLocal_311[2], 38.4841f);
  					unk_0x8A3898631CCEC253(uLocal_311[2], unk_0x7EC595B99EA7C4B1(Local_314, -0.1473f, -9.8601f, 5.1181f));
  					unk_0x9D91F5D8F57ADC49(uLocal_311[2], unk_0x7EC595B99EA7C4B1(Local_314, -0.1893f, -6.9636f, 4.3379f));
  					uLocal_311[3] = unk_0x7CD2F129A4A837A8(26379945, 1);
  					unk_0xD64C2E5B5BA2D347(uLocal_311[3], 38.4841f);
  					unk_0x8A3898631CCEC253(uLocal_311[3], unk_0x7EC595B99EA7C4B1(Local_314, -0.1892f, -9.8601f, 6.0113f));
  					unk_0x9D91F5D8F57ADC49(uLocal_311[3], unk_0x7EC595B99EA7C4B1(Local_314, -0.2225f, -7.1434f, 5.779f));
  					unk_0xF674D9B2033F5F86(uLocal_311[3], uLocal_311[2], iLocal_312[1], 3, 3);
  					iLocal_305 = 1;
  					if (func_235(Local_314) && !unk_0x0922C2E075A5F18C(unk_0x9B0761B4C3EB8BC7()))
  					{
  						if ((unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7()) || unk_0x12C99794D883929B(unk_0x9B0761B4C3EB8BC7())) || unk_0xA16974805191D19C(unk_0x9B0761B4C3EB8BC7()))
  						{
  							Var3 = { unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1) };
  							Var3.f_2 = (Var3.f_2 + 1f);
  							if (unk_0xE5CC8E2D904E42CE(Var3, &uVar2, 0, 0))
  							{
  								Var3.f_2 = uVar2;
  								unk_0x03D382CB0B44E2FC(unk_0x9B0761B4C3EB8BC7(), Var3, 1, 0, 0, 1);
  								func_232(unk_0x9B0761B4C3EB8BC7(), unk_0x3E4D3CCC220BDFB1(Local_314, 1));
  								unk_0x1322CA891C5DF18A(unk_0x9B0761B4C3EB8BC7(), 0, 0);
  							}
  						}
  						else
  						{
  							func_232(unk_0x9B0761B4C3EB8BC7(), unk_0x3E4D3CCC220BDFB1(Local_314, 1));
  							unk_0x1322CA891C5DF18A(unk_0x9B0761B4C3EB8BC7(), 0, 0);
  						}
  					}
  				}
  			}
  			else if (!iLocal_306 && fLocal_313 >= 0.25f)
  			{
  				if (func_235(Local_63))
  				{
  					unk_0x2311A669433389E8(uLocal_311[0], "MEDIUM_EXPLOSION_SHAKE", 0.1666f);
  					unk_0x3745EABBD7DA5F51(Local_63, 1);
  					unk_0x2DB2D4C3CB88500D(uLocal_359, "CRASH", Local_63, "NIGEL_03_SOUNDSET", 0, 0);
  					iLocal_306 = 1;
  				}
  			}
  			if ((bLocal_303 && iLocal_307) && fLocal_313 >= 6.7f)
  			{
  				unk_0x0A794A8277A63161("CamPushInNeutral", 0, 0);
  				unk_0xC4CC25B68A91D144(-1, "1st_Person_Transition", "PLAYER_SWITCH_CUSTOM_SOUNDSET", 1);
  				iLocal_307 = 0;
  			}
  			if (func_230(1000) && bLocal_303)
  			{
  				bLocal_303 = false;
  				bLocal_304 = true;
  			}
  			if (!bLocal_303)
  			{
  				unk_0x01BFF6CEF1167310(1f);
  				iLocal_56 = 2;
  			}
  			break;
  		
  		case 2:
  			unk_0x62BA5ABF1BBE6186();
  			if (bLocal_304)
  			{
  				if (func_235(Local_63))
  				{
  					unk_0x3745EABBD7DA5F51(Local_63, 1);
  				}
  			}
  			unk_0xAE57C4C2D11A9FFF(1);
  			unk_0x3ED9330214992278(0, 0, 3000, 1, 0, 0);
  			func_585(1, 1, 1, 1);
  			unk_0x4C4FC7841A5FB983(0f);
  			iLocal_62 = 0;
  			while (iLocal_62 <= 3)
  			{
  				unk_0xB8B0F7C8C1548C5B(uLocal_311[iLocal_62], 0);
  				iLocal_62++;
  			}
  			if (unk_0xAE06B9E39EBDE049(Local_63))
  			{
  				if (unk_0x272784C60C397DB6(unk_0x3E4D3CCC220BDFB1(Local_63, 0), Local_308, 1) > 25f)
  				{
  					unk_0xCFF81C0C8D63E62E(Local_308, 20f);
  				}
  			}
  			if (unk_0x306BF588BD8151E8("NIGEL_03_MIX_SETTINGS"))
  			{
  				unk_0xFA07F8BEBDAAFBA8("NIGEL_03_MIX_SETTINGS");
  			}
  			fVar4 = (SYSTEM::TO_FLOAT((iLocal_312[0] + iLocal_312[1])) / 1000f);
  			if (bLocal_352)
  			{
  				unk_0xBE1CA603598C1441((fVar4 + 2.5f), 2f, 0);
  			}
  			else
  			{
  				unk_0xBE1CA603598C1441(fVar4, 2f, 0);
  			}
  			iLocal_56 = 0;
  			iLocal_55 = 10;
  			break;
  	}
  }
  
  int func_230(int iParam0)
  {
  	if (unk_0x87F0CB19476706C3())
  	{
  		if ((unk_0x578C4EF320340AF7() - Global_28) > iParam0)
  		{
  			Global_27 = unk_0x578C4EF320340AF7();
  		}
  		Global_28 = unk_0x578C4EF320340AF7();
  		if ((unk_0x578C4EF320340AF7() - Global_27) > iParam0)
  		{
  			if (func_231())
  			{
  				Global_27 = unk_0x578C4EF320340AF7();
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_231()
  {
  	if (unk_0xF0C12886E5C1B20E())
  	{
  		return 0;
  	}
  	if (unk_0x1BD7199394D7F19A(0, 18) || unk_0x1BD7199394D7F19A(2, 18))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_232(int iParam0, struct<2> Param1, float fParam2)
  {
  	struct<3> Var0;
  	float fVar1;
  	float fVar2;
  	float fVar3;
  	
  	Var0 = { unk_0x3E4D3CCC220BDFB1(iParam0, 1) };
  	fVar2 = (Param1 - Var0.x);
  	fVar3 = (Param1.f_1 - Var0.f_1);
  	if (fVar3 != 0f)
  	{
  		fVar1 = unk_0x8C91FF3D82E6FB27(fVar2, fVar3);
  	}
  	else if (fVar2 < 0f)
  	{
  		fVar1 = -90f;
  	}
  	else
  	{
  		fVar1 = 90f;
  	}
  	fVar1 = (fVar1 * -1f);
  	unk_0xE922BAA80E8F9324(iParam0, fVar1);
  }
  
  void func_233()
  {
  	float fVar0;
  	
  	fVar0 = 1f;
  	if (fLocal_313 < 0.225f)
  	{
  		fVar0 = 1f;
  	}
  	else if (fLocal_313 < 0.75f)
  	{
  		fVar0 = (1f - (0.8f * ((fLocal_313 - 0.225f) / (0.75f - 0.225f))));
  	}
  	else if (fLocal_313 < 3f)
  	{
  		fVar0 = 0.2f;
  	}
  	else if (fLocal_313 < 4f)
  	{
  		fVar0 = (0.2f + (0.8f * ((fLocal_313 - 3f) / (4f - 3f))));
  	}
  	fLocal_313 = (fLocal_313 + ((1f / fVar0) * SYSTEM::TIMESTEP()));
  	unk_0x01BFF6CEF1167310(fVar0);
  }
  
  int func_234()
  {
  	if (unk_0xF7B3A1430308F92B(unk_0xFA3A11B011BBD7F6()) == 4)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_235(int iParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(iParam0))
  	{
  		if (!unk_0xA59F96B50B97E63C(iParam0, 0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_236(struct<3> Param0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, bool bParam6, bool bParam7, bool bParam8, int iParam9, bool bParam10)
  {
  	var uVar0;
  	
  	uVar0 = unk_0x2639A2323BEA8CC6();
  	if (unk_0x5A228A6A51E757C8(uVar0))
  	{
  		func_239(0);
  		if (bParam7)
  		{
  			unk_0xB4AEEE4AF56F16D6(unk_0x2639A2323BEA8CC6(), 1);
  		}
  		if (bParam6)
  		{
  			switch (func_223())
  			{
  				case 0:
  					if (func_148(unk_0x9B0761B4C3EB8BC7(), 8, 15))
  					{
  						func_35(unk_0x9B0761B4C3EB8BC7(), 8, 0, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					if (func_148(unk_0x9B0761B4C3EB8BC7(), 9, 6))
  					{
  						func_35(unk_0x9B0761B4C3EB8BC7(), 9, 0, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					break;
  				
  				case 1:
  					if (func_148(unk_0x9B0761B4C3EB8BC7(), 8, 1) || func_148(unk_0x9B0761B4C3EB8BC7(), 8, 10))
  					{
  						func_35(unk_0x9B0761B4C3EB8BC7(), 8, 26, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					break;
  				
  				case 2:
  					if (func_148(unk_0x9B0761B4C3EB8BC7(), 8, 4))
  					{
  						func_35(unk_0x9B0761B4C3EB8BC7(), 8, 15, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
  					}
  					break;
  				}
  		}
  		if (iParam4 == 1)
  		{
  			unk_0x773B9DEB93E81B2F(func_238(unk_0x2639A2323BEA8CC6()), 50f, 0);
  		}
  		if (iParam5 == 1)
  		{
  			unk_0x4BAC0F0B99F7DCF9(Param0, 30f, 0);
  		}
  		if (bParam8)
  		{
  			unk_0xCFF81C0C8D63E62E(Param0, 30f);
  		}
  		unk_0x801B883D25479F23(Param0, 30f, 0);
  		unk_0xCAD5C18968E57C30(iVar0, 0, 0);
  		unk_0x4B86C627B5EABFBF(iVar0, 0);
  		unk_0xD28B53FDA67841A1(iVar0, 1);
  		if (bParam10)
  		{
  			unk_0x8CFF639CEFF5CF16(0);
  			unk_0x644F1D0C5427A242(0);
  		}
  		unk_0xB80B2936A29B2666();
  		if (iParam9 == 1)
  		{
  			unk_0xD289B55B6AADBA10(1);
  		}
  		if (iParam1 == 1)
  		{
  			unk_0xD50CC9B03AAD56FF(1, 0);
  		}
  		if (iParam2 == 1)
  		{
  			iLocal_34 = 0;
  			if (func_235(unk_0x9B0761B4C3EB8BC7()))
  			{
  				iLocal_34 = unk_0x3DE0937410CB9D4C(unk_0x9B0761B4C3EB8BC7());
  				unk_0x69C71C91F56D82B9(unk_0x9B0761B4C3EB8BC7(), joaat("weapon_unarmed"), 1);
  			}
  		}
  		if (iParam3 == 1)
  		{
  			func_237(500, 0);
  		}
  	}
  }
  
  void func_237(int iParam0, bool bParam1)
  {
  	if (unk_0x03DB5C6AABF8DA46() || unk_0x5DA78AD6801A0523())
  	{
  		if (!unk_0x5B772EFCB84373BE())
  		{
  			unk_0xFD45D90342D2A0CD(iParam0);
  		}
  	}
  	if (bParam1)
  	{
  		while (!unk_0x87F0CB19476706C3())
  		{
  			SYSTEM::WAIT(0);
  		}
  	}
  }
  
  Vector3 func_238(var uParam0)
  {
  	return unk_0x3E4D3CCC220BDFB1(unk_0x1FA7B77001D60F9D(uParam0), 0);
  }
  
  void func_239(bool bParam0)
  {
  	var uVar0;
  	
  	uVar0 = unk_0x2639A2323BEA8CC6();
  	if (!unk_0x252C34B7867FDDFA(uVar0))
  	{
  		if (bParam0)
  		{
  		}
  		unk_0xDDEDC06C88DA4E04(uVar0, bParam0, 16);
  		unk_0xDDEDC06C88DA4E04(iVar0, bParam0, 32);
  	}
  	func_240(1, 1, 0, 0, 0, 0, 0);
  }
  
  void func_240(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_247(1);
  		unk_0x86529CF5C6F9D6AE();
  		unk_0x6D3823E5CADC313B();
  		if (Global_19681.f_1 > 3 && !bParam6)
  		{
  			if (unk_0x6B12213471F330A3())
  			{
  				unk_0xBE4122AC23440E7D(0);
  			}
  			if (!func_220())
  			{
  				Global_19681.f_1 = 3;
  			}
  			Global_21005 = 5;
  		}
  		func_246(1, iParam3, iParam2, 0);
  		Global_61723 = 1;
  		Global_74033 = 1;
  		Global_76831 = 1;
  	}
  	else
  	{
  		func_247(0);
  		unk_0x51C14866CB8A57BF();
  		Global_61723 = 0;
  		if (bParam1)
  		{
  			unk_0x86A985A804621EB7();
  		}
  		unk_0xAF3D0236D181BE08(unk_0x460153A63B9477BC(), 0);
  		unk_0x23F7D177F71818C3(unk_0x460153A63B9477BC(), 0);
  		func_246(0, iParam3, iParam2, 0);
  		if (unk_0x25DDB354A40FFCDB())
  		{
  			if (((((!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()) && !func_244(unk_0x460153A63B9477BC())) && !func_242(unk_0x460153A63B9477BC(), 0)) && !func_241()) && !bParam4) && !bParam5)
  			{
  				unk_0x0312E5501F93E5AB(unk_0x9B0761B4C3EB8BC7(), 0);
  			}
  		}
  		else if (((!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()) && !func_244(unk_0x460153A63B9477BC())) && !bParam4) && !bParam5)
  		{
  			unk_0x0312E5501F93E5AB(unk_0x9B0761B4C3EB8BC7(), 0);
  		}
  		Global_76831 = 0;
  	}
  }
  
  bool func_241()
  {
  	return unk_0xCE990E643CD9D0E5(Global_1590682[unk_0x460153A63B9477BC() /*883*/].f_39.f_18, 14);
  }
  
  bool func_242(int iParam0, int iParam1)
  {
  	bool bVar0;
  	
  	if (iParam0 == unk_0x460153A63B9477BC())
  	{
  		bVar0 = func_243(-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_243(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar1 = iParam0;
  	if (iVar1 == -1)
  	{
  		iVar1 = func_11();
  	}
  	if (Global_1312876[iVar1] == 1)
  	{
  		if (bParam1)
  		{
  		}
  		iVar0 = 8;
  	}
  	else
  	{
  		iVar0 = Global_1312757[iVar1];
  		if (bParam1)
  		{
  		}
  	}
  	return iVar0;
  }
  
  int func_244(int iParam0)
  {
  	if (func_242(iParam0, 0))
  	{
  		return 1;
  	}
  	if (func_245())
  	{
  		if (iParam0 == unk_0x460153A63B9477BC())
  		{
  			return 1;
  		}
  	}
  	if (unk_0xCE990E643CD9D0E5(Global_2425869[iParam0 /*443*/].f_199, 2))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_245()
  {
  	return unk_0xCE990E643CD9D0E5(Global_2359302, 3);
  }
  
  int func_246(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;
  }
  
  void func_247(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		unk_0xBE20AB8238688965(&Global_7551, 13);
  	}
  	else
  	{
  		unk_0xD2459066EA58CE43(&Global_7551, 13);
  	}
  }
  
  void func_248(var uParam0)
  {
  	if (unk_0x8F678487EEBD8CE4(*uParam0))
  	{
  		unk_0x72BEFB9451782F60(*uParam0, 0);
  		unk_0x93370FA10F15BE44(uParam0);
  	}
  }
  
  void func_249()
  {
  	bool bVar0;
  	struct<3> Var1;
  	struct<3> Var2;
  	float fVar3;
  	float fVar4;
  	
  	switch (iLocal_56)
  	{
  		case 0:
  			unk_0x131ED02492676000(sLocal_100);
  			if (unk_0x0F0E6A09A9C90474(uLocal_90[0], &(uLocal_93[0]), &(Local_94[0 /*7*/][0 /*3*/]), &(Local_94[0 /*7*/][1 /*3*/]), &(uLocal_95[0])) != 1 && unk_0x0F0E6A09A9C90474(uLocal_90[1], &(uLocal_93[1]), &(Local_94[1 /*7*/][0 /*3*/]), &(Local_94[1 /*7*/][1 /*3*/]), &(uLocal_95[0])) != 1)
  			{
  				if (uLocal_93[0] == 1 || uLocal_93[1] == 1)
  				{
  					bLocal_310 = true;
  				}
  				else
  				{
  					bLocal_310 = false;
  				}
  			}
  			else
  			{
  				bLocal_310 = true;
  			}
  			if ((unk_0xC614DDE265D18415(sLocal_100) && unk_0x7D167B9A0CCDA347(iLocal_105)) && func_235(Local_63))
  			{
  				func_236(unk_0x3E4D3CCC220BDFB1(Local_63, 1), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
  				iLocal_309 = unk_0x578C4EF320340AF7();
  				if (func_235(unk_0x9B0761B4C3EB8BC7()) && func_235(iLocal_68))
  				{
  					unk_0x076EA622594A949E(0);
  					func_281();
  					unk_0x0A985DBE2A5EEE65(Local_63, 1);
  					unk_0x1F8106DB8796859F(iLocal_68, 0, 1);
  					unk_0x80250B8368A4E611(iLocal_68, 1, 0);
  					unk_0x6A8F948698B360B4(Local_63, 1);
  					Local_101 = { unk_0x3E4D3CCC220BDFB1(Local_63, 1) };
  					Local_102 = { unk_0x090239DEAF625B17(Local_63, 2) };
  					uLocal_103 = unk_0xF341A134A5B8D4F6(Local_101, Local_102, 2);
  					uLocal_104 = unk_0x68C2E3309DCAD71E("DEFAULT_ANIMATED_CAMERA", 0);
  					if (bLocal_310)
  					{
  						unk_0x00736EE41CC355ED(uLocal_104, uLocal_103, "out_trunk_cam_alt", sLocal_100);
  					}
  					else
  					{
  						unk_0x00736EE41CC355ED(uLocal_104, uLocal_103, "out_trunk_cam", sLocal_100);
  					}
  					unk_0x856549C07003344B(uLocal_104, 1);
  					unk_0x3ED9330214992278(1, 0, 3000, 1, 0, 0);
  					iLocal_106 = unk_0x79CC07752E7432A1(iLocal_105, Local_101, 1, 1, 0);
  					unk_0xDFDB9C533700BC17(unk_0x9B0761B4C3EB8BC7(), uLocal_103, sLocal_100, "out_trunk_trevor", 1000f, -2f, 2, 0, 1148846080, 0);
  					unk_0xDFDB9C533700BC17(iLocal_68, uLocal_103, sLocal_100, "out_trunk_al", 1000f, -2f, 0, 0, 1148846080, 0);
  					unk_0x1FEB07A1AF22700F(Local_63, uLocal_103, "out_trunk_car", sLocal_100, 1000f, 1090519040, 0, 1148846080);
  					unk_0x1FEB07A1AF22700F(iLocal_106, uLocal_103, "out_trunk_cash", sLocal_100, 1000f, 1090519040, 0, 1148846080);
  					unk_0x882281B10B0A5932(uLocal_103, 0);
  					unk_0xF27E737981AFB47D(unk_0x7EC595B99EA7C4B1(Local_63, 0f, -3f, -0.47f), 10f, 1, 0, 0, 0, 0, 0);
  					unk_0xF27E737981AFB47D(unk_0x3E4D3CCC220BDFB1(Local_63, 1), 10f, 1, 0, 0, 0, 0, 0);
  					if (bLocal_111)
  					{
  						unk_0xD77467CC38DD0DE2(0);
  						unk_0x6998E485C8721559();
  						bLocal_111 = false;
  					}
  					unk_0x182DD1CBC93CF936(1);
  					bLocal_98 = false;
  					iLocal_99 = 0;
  					iLocal_56 = 1;
  				}
  			}
  			break;
  		
  		case 1:
  			if (func_235(Local_63))
  			{
  				unk_0x0A985DBE2A5EEE65(Local_63, 1);
  			}
  			if (func_230(1000))
  			{
  				bLocal_98 = true;
  				if (func_210())
  				{
  					func_281();
  				}
  			}
  			if ((!iLocal_97 && (unk_0x578C4EF320340AF7() - iLocal_309) > 500) && !bLocal_98)
  			{
  				if (func_235(unk_0x9B0761B4C3EB8BC7()) && func_235(Local_63))
  				{
  					if (func_280(&uLocal_115, "NIGE3AU", "NIGEL3_R1", 7, 0, 0, 0))
  					{
  						iLocal_97 = 1;
  					}
  				}
  			}
  			if (unk_0x369E69441C066912(uLocal_103) >= 0.852f && !iLocal_99)
  			{
  				bVar0 = true;
  				Var1 = { unk_0xD7D25254A712E758(sLocal_100, "out_trunk_trevor", Local_101, Local_102, 0.852f, 2) };
  				Var2 = { unk_0xD7D25254A712E758(sLocal_100, "out_trunk_trevor", Local_101, Local_102, 1f, 2) };
  				if (unk_0xE5CC8E2D904E42CE(Var1, &fVar3, 0, 0) && unk_0xE5CC8E2D904E42CE(Var2, &fVar4, 0, 0))
  				{
  					if ((fVar3 - fVar4) > 0.25f)
  					{
  						unk_0x9B94F6169B0DAEFD(unk_0x9B0761B4C3EB8BC7());
  						bLocal_98 = false;
  						iLocal_56 = 2;
  						bVar0 = false;
  					}
  					Var1.f_2 = fVar3;
  				}
  				iLocal_99 = 1;
  				if (bVar0)
  				{
  					Var2 = { unk_0xD78F5800B90C4843(sLocal_100, "out_trunk_trevor", Local_101, Local_102, unk_0x369E69441C066912(uLocal_103), 2) };
  					unk_0x1CD098484842AE0B(unk_0x9B0761B4C3EB8BC7(), -1000f, 1);
  					unk_0xE922BAA80E8F9324(unk_0x9B0761B4C3EB8BC7(), Var2.f_2);
  					unk_0x03D382CB0B44E2FC(unk_0x9B0761B4C3EB8BC7(), Var1, 0, 0, 0, 1);
  					unk_0x756D74A3EF0AB788(unk_0x9B0761B4C3EB8BC7(), sLocal_100, "out_trunk_trevor", 1000f, -2f, -1, 0, unk_0x369E69441C066912(uLocal_103), 0, 0, 0);
  					unk_0x1322CA891C5DF18A(unk_0x9B0761B4C3EB8BC7(), 0, 0);
  				}
  				func_205(&iLocal_106);
  			}
  			else if (unk_0x369E69441C066912(uLocal_103) > 0.99f || bLocal_98)
  			{
  				iLocal_56 = 2;
  			}
  			break;
  		
  		case 2:
  			if ((func_235(unk_0x9B0761B4C3EB8BC7()) && func_235(iLocal_68)) && func_235(Local_63))
  			{
  				if (bLocal_98)
  				{
  					func_281();
  					if (unk_0x369E69441C066912(uLocal_103) < 0.99f)
  					{
  						unk_0x8430A80C3E4F5F98(uLocal_103, 0.99f);
  					}
  				}
  				unk_0x1CD098484842AE0B(Local_63, -1000f, 1);
  				unk_0x854FB153F2EA838B(unk_0x9B0761B4C3EB8BC7(), -1871534317, 1, 0, 1);
  				unk_0x7CC9C12947A9030C(Local_63, 5, 1);
  				unk_0x9B94F6169B0DAEFD(iLocal_68);
  				unk_0x8B18A80E8EB15510(iLocal_68, unk_0x9B0761B4C3EB8BC7(), 3000f, -1, 0, 0);
  				unk_0xCBA6B2B569DCAFD8(iLocal_68, 1);
  				unk_0x4E65320BC9AD521C(iLocal_68, 1);
  				if (unk_0x40397A9A17EEC1C5(uLocal_104))
  				{
  					unk_0x3ED9330214992278(0, 0, 3000, 1, 0, 0);
  					unk_0x856549C07003344B(uLocal_104, 0);
  					unk_0xB8B0F7C8C1548C5B(uLocal_104, 0);
  				}
  				if (bLocal_98)
  				{
  					unk_0x4C4FC7841A5FB983(0f);
  				}
  				else
  				{
  					unk_0x47012CDD5C524D7B(0, 0, 3, 0);
  				}
  				unk_0x9B94F6169B0DAEFD(unk_0x9B0761B4C3EB8BC7());
  				func_205(&iLocal_106);
  				if (bLocal_310)
  				{
  					func_581(&iLocal_68);
  				}
  				func_585(1, 1, 1, 1);
  				if (iLocal_114 == 0)
  				{
  					iLocal_114 = 1;
  				}
  				func_250(func_223(), 1, Local_112[(iLocal_114 - 1) /*8*/].f_7, 0, 0);
  				unk_0x62BA5ABF1BBE6186();
  				iLocal_297 = 1;
  				func_2();
  			}
  			break;
  	}
  }
  
  void func_250(int iParam0, int iParam1, int iParam2, bool bParam3, bool bParam4)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (func_279(iParam0) == 3)
  	{
  		return;
  	}
  	if (func_279(iParam0) == 4)
  	{
  		return;
  	}
  	func_251(func_279(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_251(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4)
  {
  	float fVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	
  	func_278();
  	if (iParam3 < 1)
  	{
  		return 0;
  	}
  	fVar0 = 1f;
  	switch (iParam1)
  	{
  		case 0:
  			switch (iParam0)
  			{
  				case 0:
  					func_277(99, 1);
  					func_276(joaat("SP0_MONEY_TOTAL_SPENT"), iParam3);
  					break;
  				
  				case 1:
  					func_276(joaat("SP1_MONEY_TOTAL_SPENT"), iParam3);
  					break;
  				
  				case 2:
  					func_276(joaat("SP2_MONEY_TOTAL_SPENT"), iParam3);
  					break;
  			}
  			func_262(0);
  			switch (iParam2)
  			{
  				case 127:
  				case 129:
  				case 125:
  				case 126:
  				case 128:
  					if (func_258(5))
  					{
  						fVar0 = 0.9f;
  						iVar1 = 5;
  					}
  					break;
  				
  				case 63:
  				case 64:
  				case 65:
  				case 66:
  				case 67:
  				case 68:
  					switch (iParam0)
  					{
  						case 0:
  							func_276(joaat("SP0_MONEY_SPENT_ON_TATTOOS"), iParam3);
  							break;
  						
  						case 1:
  							func_276(joaat("SP1_MONEY_SPENT_ON_TATTOOS"), iParam3);
  							break;
  						
  						case 2:
  							func_276(joaat("SP2_MONEY_SPENT_ON_TATTOOS"), iParam3);
  							break;
  					}
  					if (func_258(1))
  					{
  						fVar0 = 0f;
  						iVar1 = 1;
  					}
  					break;
  				
  				case 21:
  					switch (iParam0)
  					{
  						case 0:
  							func_276(joaat("SP0_MONEY_SPENT_ON_TAXIS"), iParam3);
  							break;
  						
  						case 1:
  							func_276(joaat("SP1_MONEY_SPENT_ON_TAXIS"), iParam3);
  							break;
  						
  						case 2:
  							func_276(joaat("SP2_MONEY_SPENT_ON_TAXIS"), iParam3);
  							break;
  					}
  					break;
  				
  				case 25:
  					switch (iParam0)
  					{
  						case 0:
  							func_276(joaat("SP0_MONEY_SPENT_IN_STRIP_CLUBS"), iParam3);
  							break;
  						
  						case 1:
  							func_276(joaat("SP1_MONEY_SPENT_IN_STRIP_CLUBS"), iParam3);
  							break;
  						
  						case 2:
  							func_276(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_276(joaat("SP0_MONEY_SPENT_PROPERTY"), iParam3);
  							break;
  						
  						case 1:
  							func_276(joaat("SP1_MONEY_SPENT_PROPERTY"), iParam3);
  							break;
  						
  						case 2:
  							func_276(joaat("SP2_MONEY_SPENT_PROPERTY"), iParam3);
  							break;
  					}
  					break;
  				
  				default:
  					switch (unk_0x02406178CDC27728())
  					{
  						case joaat("clothes_shop_sp"):
  							switch (iParam0)
  							{
  								case 0:
  									func_276(joaat("SP0_MONEY_SPENT_IN_CLOTHES"), iParam3);
  									break;
  								
  								case 1:
  									func_276(joaat("SP1_MONEY_SPENT_IN_CLOTHES"), iParam3);
  									break;
  								
  								case 2:
  									func_276(joaat("SP2_MONEY_SPENT_IN_CLOTHES"), iParam3);
  									break;
  							}
  							break;
  						
  						case joaat("hairdo_shop_sp"):
  							switch (iParam0)
  							{
  								case 0:
  									func_276(joaat("SP0_MONEY_SPENT_ON_HAIRDOS"), iParam3);
  									break;
  								
  								case 1:
  									func_276(joaat("SP1_MONEY_SPENT_ON_HAIRDOS"), iParam3);
  									break;
  								
  								case 2:
  									func_276(joaat("SP2_MONEY_SPENT_ON_HAIRDOS"), iParam3);
  									break;
  							}
  							if (func_258(0))
  							{
  								fVar0 = 0f;
  								iVar1 = 0;
  							}
  							break;
  						
  						case joaat("gunclub_shop"):
  							switch (iParam0)
  							{
  								case 0:
  									func_276(joaat("SP0_MONEY_SPENT_IN_BUYING_GUNS"), iParam3);
  									break;
  								
  								case 1:
  									func_276(joaat("SP1_MONEY_SPENT_IN_BUYING_GUNS"), iParam3);
  									break;
  								
  								case 2:
  									func_276(joaat("SP2_MONEY_SPENT_IN_BUYING_GUNS"), iParam3);
  									break;
  							}
  							break;
  						
  						case joaat("carmod_shop"):
  							switch (iParam0)
  							{
  								case 0:
  									func_276(joaat("SP0_MONEY_SPENT_CAR_MODS"), iParam3);
  									break;
  								
  								case 1:
  									func_276(joaat("SP1_MONEY_SPENT_CAR_MODS"), iParam3);
  									break;
  								
  								case 2:
  									func_276(joaat("SP2_MONEY_SPENT_CAR_MODS"), iParam3);
  									break;
  							}
  							func_257(iParam3);
  							break;
  					}
  					break;
  			}
  			break;
  		
  		case 1:
  			switch (iParam0)
  			{
  				case 0:
  					func_277(95, iParam3);
  					break;
  				
  				case 1:
  					func_277(97, iParam3);
  					break;
  				
  				case 2:
  					func_277(96, iParam3);
  					break;
  			}
  			func_277(98, iParam3);
  			break;
  	}
  	iVar2 = iParam0;
  	iParam3 = SYSTEM::FLOOR((fVar0 * SYSTEM::TO_FLOAT(iParam3)));
  	iVar3 = 0;
  	iVar4 = iParam3;
  	if (fVar0 == 0f)
  	{
  		func_254(iVar1);
  		return 1;
  	}
  	else if (fVar0 != 1f)
  	{
  		func_254(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_276(joaat("SP0_TOTAL_CASH_EARNED"), iParam3);
  					break;
  				
  				case 1:
  					func_276(joaat("SP1_TOTAL_CASH_EARNED"), iParam3);
  					break;
  				
  				case 2:
  					func_276(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_253(iParam0);
  	if (Global_41631 == 15)
  	{
  		func_252(0);
  	}
  	return 1;
  }
  
  void func_252(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_253(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_254(int iParam0)
  {
  	bool bVar0;
  	char cVar1[64];
  	
  	if (iParam0 == 8)
  	{
  		func_10(129, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 9)
  	{
  		func_10(135, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 10)
  	{
  		func_10(136, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 11)
  	{
  		func_10(137, 0, -1, 1);
  		return;
  	}
  	if (iParam0 == 12)
  	{
  		func_68(8270, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 13)
  	{
  		func_68(8271, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 14)
  	{
  		func_68(8272, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 15)
  	{
  		func_68(8273, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 16)
  	{
  		func_68(8274, 0, -1, 1, 0);
  		return;
  	}
  	if (iParam0 == 17)
  	{
  		func_68(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_256() /*10931*/].f_6175.f_10, iParam0))
  	{
  		bVar0 = true;
  		unk_0xD2459066EA58CE43(&(Global_111858.f_20560.f_471), iParam0);
  		unk_0xD2459066EA58CE43(&(Global_2097152[func_256() /*10931*/].f_6175.f_10), iParam0);
  	}
  	if (bVar0)
  	{
  		StringCopy(&cVar1, "CHAR_LIFEINVADER", 64);
  		unk_0x5B8DD855EAFD33B5("COUP_RED");
  		unk_0x6A826E35A3096ED0(func_255(iParam0));
  		unk_0x39E1440587355CC1(&cVar1, &cVar1, 1, 0, "", 0);
  	}
  }
  
  char* func_255(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_256()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	return iVar0;
  }
  
  void func_257(int iParam0)
  {
  	func_277(93, iParam0);
  	func_277(29, iParam0);
  	func_277(30, iParam0);
  }
  
  bool func_258(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_259(129, -1, -1);
  	}
  	if (iParam0 == 9)
  	{
  		return func_259(135, -1, -1);
  	}
  	if (iParam0 == 10)
  	{
  		return func_259(136, -1, -1);
  	}
  	if (iParam0 == 11)
  	{
  		return func_259(137, -1, -1);
  	}
  	if (iParam0 == 12)
  	{
  		iVar0 = unk_0x5A002C4821A13338();
  		iVar1 = func_70(8270, -1, 0);
  		if (iVar1 == 0 || iVar0 >= iVar1)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 13)
  	{
  		iVar2 = unk_0x5A002C4821A13338();
  		iVar3 = func_70(8271, -1, 0);
  		if (iVar3 == 0 || iVar2 >= iVar3)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 14)
  	{
  		iVar4 = unk_0x5A002C4821A13338();
  		iVar5 = func_70(8272, -1, 0);
  		if (iVar5 == 0 || iVar4 >= iVar5)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 15)
  	{
  		iVar6 = unk_0x5A002C4821A13338();
  		iVar7 = func_70(8273, -1, 0);
  		if (iVar7 == 0 || iVar6 >= iVar7)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 16)
  	{
  		iVar8 = unk_0x5A002C4821A13338();
  		iVar9 = func_70(8274, -1, 0);
  		if (iVar9 == 0 || iVar8 >= iVar9)
  		{
  			return 0;
  		}
  		return 1;
  	}
  	if (iParam0 == 17)
  	{
  		iVar10 = unk_0x5A002C4821A13338();
  		iVar11 = func_70(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_256() /*10931*/].f_6175.f_10, iParam0);
  }
  
  int func_259(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	var uVar2;
  	
  	iVar0 = 0;
  	if (iParam1 == -1)
  	{
  		iParam1 = func_11();
  	}
  	iVar1 = func_261(iParam0, iParam1);
  	uVar2 = func_260(iParam0);
  	if (0 != iVar1)
  	{
  		iVar0 = unk_0x9FD0AD883E4A7C1E(iVar1, uVar2, iParam2);
  	}
  	return iVar0;
  }
  
  int func_260(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_261(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (iParam1 == -1)
  	{
  		iParam1 = func_11();
  	}
  	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_262(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_9(27, iVar1);
  	}
  	if (iVar1 < 200000000)
  	{
  		return 0;
  	}
  	func_263(27, 1);
  	return 1;
  }
  
  int func_263(int iParam0, int iParam1)
  {
  	if (iParam0 >= 78)
  	{
  		return 0;
  	}
  	return func_264(iParam0, iParam1);
  }
  
  int func_264(int iParam0, int iParam1)
  {
  	if (func_91(14) && !func_275(iParam0))
  	{
  		return 0;
  	}
  	if (unk_0x027BA2E902FAC118(iParam0) && iParam1 == 1)
  	{
  		return 0;
  	}
  	if (Global_31217 != 0 && !Global_76833)
  	{
  		return 0;
  	}
  	if (func_274(&Global_4271324))
  	{
  		if (func_272(&Global_4271324, iParam0))
  		{
  			return 0;
  		}
  		if (func_265(&Global_4271324, iParam0))
  		{
  			return 1;
  		}
  	}
  	else
  	{
  		if (!unk_0x1C382E0E92F57545(iParam0))
  		{
  			return 0;
  		}
  		if (unk_0x027BA2E902FAC118(iParam0))
  		{
  			return 1;
  		}
  		return 0;
  	}
  	return 0;
  }
  
  int func_265(var uParam0, int iParam1)
  {
  	int iVar0;
  	var uVar1[78];
  	
  	if (unk_0x027BA2E902FAC118(iParam1))
  	{
  		return 0;
  	}
  	if (func_91(14) && !func_275(iParam1))
  	{
  		return 0;
  	}
  	if (func_272(uParam0, iParam1))
  	{
  		return 0;
  	}
  	if (func_271(uParam0) < 0f)
  	{
  		func_270(uParam0, 0);
  	}
  	func_268(&uVar1);
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < (*uParam0 - 1))
  	{
  		uVar1[iVar0 + 1] = (*uParam0)[iVar0];
  		iVar0++;
  	}
  	func_266(&uVar1, iParam1);
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		(*uParam0)[iVar0] = uVar1[iVar0];
  		iVar0++;
  	}
  	return 1;
  }
  
  int func_266(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (unk_0x027BA2E902FAC118(iParam1))
  	{
  		return 0;
  	}
  	if (func_91(14) && !func_275(iParam1))
  	{
  		return 0;
  	}
  	if (func_272(uParam0, iParam1))
  	{
  		return 0;
  	}
  	if (func_271(uParam0) < 0f)
  	{
  		func_270(uParam0, 0);
  	}
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if (func_267(uParam0, iVar0))
  		{
  			(*uParam0)[iVar0] = iParam1;
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  bool func_267(var uParam0, int iParam1)
  {
  	return (*uParam0)[iParam1] == 78;
  }
  
  void func_268(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		func_269(uParam0, iVar0);
  		iVar0++;
  	}
  	func_270(uParam0, (Global_4271323 - 0.5f));
  }
  
  void func_269(var uParam0, int iParam1)
  {
  	(*uParam0)[iParam1] = 78;
  }
  
  void func_270(var uParam0, float fParam1)
  {
  	if (fParam1 == 0f)
  	{
  		uParam0->f_80 = 0f;
  	}
  	else
  	{
  		uParam0->f_80 = fParam1;
  	}
  }
  
  float func_271(var uParam0)
  {
  	return uParam0->f_80;
  }
  
  bool func_272(var uParam0, int iParam1)
  {
  	return func_273(uParam0, iParam1) != -1;
  }
  
  int func_273(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < *uParam0)
  	{
  		if ((*uParam0)[iVar0] == iParam1)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  bool func_274(var uParam0)
  {
  	return uParam0->f_79 == 1;
  }
  
  int func_275(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;
  }
  
  void func_276(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	unk_0xD2F202166691EDB2(iParam0, &iVar0, -1);
  	iVar0 = (iVar0 + iParam1);
  	unk_0x6000E4684CB4330B(iParam0, iVar0, 1);
  }
  
  void func_277(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_278()
  {
  	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_279(int iParam0)
  {
  	return Global_1848[iParam0 /*29*/].f_17;
  }
  
  bool func_280(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6)
  {
  	func_227(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_212(sParam2, iParam3, 0);
  }
  
  void func_281()
  {
  	Global_19871 = 0;
  	func_282();
  }
  
  void func_282()
  {
  	unk_0x62B2C9892E3E142D();
  	Global_22016 = 0;
  	if (unk_0x6A5CC4A2C9D9ED8D())
  	{
  		unk_0xBE4122AC23440E7D(0);
  		Global_21005 = 6;
  	}
  }
  
  void func_283()
  {
  	switch (iLocal_56)
  	{
  		case 0:
  			if (unk_0x306BF588BD8151E8("NIGEL_03_MIX_SETTINGS"))
  			{
  				unk_0xFA07F8BEBDAAFBA8("NIGEL_03_MIX_SETTINGS");
  			}
  			if (bLocal_357)
  			{
  				if (!func_235(Local_63))
  				{
  					if (func_210())
  					{
  						func_281();
  					}
  					iLocal_56 = 0;
  					iLocal_55 = 10;
  				}
  				else if (bLocal_358)
  				{
  					if (func_280(&uLocal_115, "NIGE3AU", "NIGEL3_X1", 7, 0, 0, 0))
  					{
  						iLocal_56 = 1;
  					}
  				}
  				else if (func_280(&uLocal_115, "NIGE3AU", "NIGEL3_X2", 7, 0, 0, 0))
  				{
  					iLocal_56 = 1;
  				}
  			}
  			else if (func_280(&uLocal_115, "NIGE3AU", "NIGEL3_X3", 7, 0, 0, 0))
  			{
  				iLocal_56 = 1;
  			}
  			break;
  		
  		case 1:
  			if (!func_210())
  			{
  				iLocal_56 = 2;
  			}
  			break;
  		
  		case 2:
  			sLocal_378 = "N3FMISST";
  			iLocal_55 = 13;
  			iLocal_56 = 0;
  			break;
  	}
  }
  
  void func_284()
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	struct<3> Var2;
  	struct<3> Var3;
  	
  	switch (iLocal_56)
  	{
  		case 0:
  			if (!bLocal_338)
  			{
  				if (func_210())
  				{
  					func_398();
  				}
  				bLocal_338 = true;
  				iLocal_337 = 0;
  				iLocal_339 = 0;
  				iLocal_342 = 0;
  				func_323(1, "Train section", 1, 0, 0, 1);
  			}
  			if (iLocal_337)
  			{
  				if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  				{
  					unk_0xB80B2936A29B2666();
  					func_248(&uLocal_107);
  					iLocal_337 = 0;
  				}
  			}
  			else if (!unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  			{
  				unk_0xB80B2936A29B2666();
  				func_248(&uLocal_107);
  				uLocal_107 = func_322(Local_63, 1, 5);
  				if (!iLocal_60)
  				{
  					func_321("N3RTCAR", 7500, 1);
  					iLocal_60 = 1;
  				}
  				iLocal_337 = 1;
  			}
  			if (func_280(&uLocal_115, "NIGE3AU", "NIGEL3_CX", 7, 1, 0, 0))
  			{
  				func_248(&uLocal_107);
  				iLocal_339 = 1;
  				iLocal_340 = 0;
  			}
  			if (!iLocal_342 && func_320())
  			{
  				iLocal_342 = 1;
  			}
  			if (iLocal_339 && iLocal_342)
  			{
  				if (iLocal_337 == 0)
  				{
  					func_321("N3RAM", 7500, 1);
  					iLocal_346 = 1;
  					func_248(&uLocal_107);
  					iLocal_56 = 1;
  				}
  				unk_0xBE1CA603598C1441(10f, 6f, 1);
  				bLocal_357 = false;
  				iLocal_351 = 0;
  				iLocal_373 = 0;
  				iLocal_56 = 1;
  			}
  			break;
  		
  		case 1:
  			if (iLocal_337)
  			{
  				if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 1))
  				{
  					unk_0xB80B2936A29B2666();
  					func_248(&uLocal_107);
  					if (!iLocal_346)
  					{
  						func_321("N3RAM", 7500, 1);
  						iLocal_346 = 1;
  					}
  					iLocal_337 = 0;
  				}
  				else if (!func_319(unk_0x9B0761B4C3EB8BC7(), Local_63, 200f, 1))
  				{
  					iLocal_55 = 13;
  					iLocal_56 = 0;
  					sLocal_378 = "N3FLEFT";
  					break;
  				}
  			}
  			else if (!unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  			{
  				if (func_318("N3RAM", 0, 0))
  				{
  					unk_0xB80B2936A29B2666();
  				}
  				iLocal_337 = 1;
  			}
  			if (func_235(Local_314))
  			{
  				if (unk_0x306BF588BD8151E8("NIGEL_03_JOURNEY_MIX"))
  				{
  					unk_0xFA07F8BEBDAAFBA8("NIGEL_03_JOURNEY_MIX");
  				}
  				if (!unk_0x306BF588BD8151E8("NIGEL_03_MIX_SETTINGS"))
  				{
  					unk_0xD0C464B4E09878D6(Local_314, "NIGEL_03_MIX_GROUP", 0);
  					unk_0x17E478571720218F("NIGEL_03_MIX_SETTINGS");
  					unk_0x8B343DEB20722800(Local_314, 30000, unk_0x856D5567211886A2("HELDDOWN"), 0);
  					unk_0x2DB2D4C3CB88500D(uLocal_360, "TRAIN_COMING", Local_314, "NIGEL_03_SOUNDSET", 0, 0);
  				}
  				func_297(0);
  			}
  			if (unk_0x1037B9D45CE6B788(Local_63, Local_109[0 /*3*/], Local_109[1 /*3*/], Local_109.f_7, 0, 1, 0))
  			{
  				if ((func_296(Local_63, Local_314, 1) < 120f && !bLocal_347) && unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  				{
  					if (unk_0xF3A639BEE7AADF55(Local_63) > 0.25f)
  					{
  						func_321("N3BAIL", 7500, 1);
  					}
  					else
  					{
  						func_321("N3EXIT", 7500, 1);
  					}
  					bLocal_347 = true;
  				}
  			}
  			else if (bLocal_347)
  			{
  				unk_0x213AAAF3AB16731C("N3BAIL");
  				unk_0x213AAAF3AB16731C("N3EXIT");
  			}
  			if (bLocal_347 && unk_0xEEB37DB9533AA764(unk_0x9B0761B4C3EB8BC7()))
  			{
  				unk_0x213AAAF3AB16731C("N3BAIL");
  				unk_0x213AAAF3AB16731C("N3EXIT");
  			}
  			Var0 = { unk_0x98C2DEBE1069FD2E(Local_314, 0) };
  			Var1 = { unk_0x98C2DEBE1069FD2E(Local_63, 0) };
  			if (unk_0xA65352E7FEA59881(Local_63, Local_314))
  			{
  				if ((uLocal_353[0] + uLocal_354[0]) > 14f)
  				{
  					if (uLocal_355[1])
  					{
  						if (func_294())
  						{
  							if (unk_0xABF16D69A44D96A9(unk_0x460153A63B9477BC()))
  							{
  							}
  							else
  							{
  								func_293(797);
  								if (iLocal_351)
  								{
  									iLocal_349 = (unk_0x578C4EF320340AF7() - iLocal_349);
  									if (iLocal_349 < iLocal_350)
  									{
  										bLocal_352 = true;
  										func_293(796);
  									}
  								}
  							}
  							unk_0xB80B2936A29B2666();
  							func_248(&uLocal_107);
  							func_297(1);
  							unk_0x1515637D39F697C4(Local_63, 1);
  							iLocal_56 = 0;
  							iLocal_55 = 9;
  							break;
  						}
  						else
  						{
  							func_581(&iLocal_68);
  							if (unk_0x4C9EC9A10C274889(unk_0x460153A63B9477BC(), 0))
  							{
  								unk_0xD25321EB4A616B93(unk_0x460153A63B9477BC(), 0);
  							}
  							unk_0x369FC9C428863FC8(Local_63, 1, 0);
  							unk_0xD528E9BCD43ECDC3(unk_0x9B0761B4C3EB8BC7(), joaat("weapon_sniperrifle"));
  						}
  					}
  					else
  					{
  						unk_0xB80B2936A29B2666();
  						unk_0xD289B55B6AADBA10(1);
  						func_297(1);
  						func_248(&uLocal_107);
  						iLocal_55 = 7;
  						iLocal_56 = 0;
  						bLocal_357 = true;
  						if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 1))
  						{
  							bLocal_358 = true;
  						}
  						else
  						{
  							bLocal_358 = false;
  						}
  						if (unk_0xAE06B9E39EBDE049(Local_314))
  						{
  							unk_0x5681E3BC93AA2666(&Local_314, 0);
  						}
  					}
  				}
  			}
  			else
  			{
  				func_292();
  			}
  			func_290(-Var0.f_1, Var1.f_1);
  			if (unk_0xAE06B9E39EBDE049(Local_314))
  			{
  				Var2 = { unk_0x3E4D3CCC220BDFB1(Local_63, 1) };
  				Var3 = { unk_0x3E4D3CCC220BDFB1(Local_314, 0) };
  				if (Var2.f_1 > Var3.f_1)
  				{
  					unk_0xB80B2936A29B2666();
  					func_248(&uLocal_107);
  					iLocal_55 = 7;
  					iLocal_56 = 0;
  				}
  				else
  				{
  					func_289();
  				}
  			}
  			func_285();
  			break;
  		
  		case 2:
  			break;
  	}
  }
  
  void func_285()
  {
  	func_287();
  	switch (iLocal_340)
  	{
  		case 0:
  			if (iLocal_339 && !func_210())
  			{
  				iLocal_341 = unk_0x578C4EF320340AF7();
  				iLocal_340 = 1;
  			}
  			break;
  		
  		case 1:
  			if (func_235(iLocal_68) && unk_0x578C4EF320340AF7() > iLocal_341)
  			{
  				if (func_318("N3BAIL", 0, 0))
  				{
  					if (func_280(&uLocal_115, "NIGE3AU", "NIGEL3_PNC", 7, 1, 0, 0))
  					{
  						func_286();
  						iLocal_340 = 2;
  					}
  				}
  				else if (func_280(&uLocal_115, "NIGE3AU", "NIGEL3_PNC", 7, 0, 0, 0))
  				{
  					func_286();
  					iLocal_340 = 2;
  				}
  			}
  			break;
  		
  		case 2:
  			if (!func_210())
  			{
  				iLocal_341 = (unk_0x578C4EF320340AF7() + unk_0x344C570D6F8700DF(1000, 2500));
  				iLocal_340 = 1;
  			}
  			break;
  	}
  }
  
  void func_286()
  {
  	if (func_235(iLocal_68))
  	{
  		unk_0x2DB2D4C3CB88500D(uLocal_281, "TRUNK_THUMPS", iLocal_68, 0, 0, 0);
  		iLocal_283 = 0;
  	}
  }
  
  void func_287()
  {
  	if (func_235(Local_63))
  	{
  		switch (iLocal_283)
  		{
  			case 0:
  				if (unk_0xF3A639BEE7AADF55(Local_63) < 0.5f)
  				{
  					func_288();
  					unk_0x8B77B020136E915A(Local_63, 1, 0f, 0f, IntToFloat(iLocal_288), fLocal_289, -1.5f, 0f, 0, 1, 1, 0, 1, 1);
  				}
  				iLocal_284 = unk_0x344C570D6F8700DF(3, 7);
  				iLocal_285 = 1;
  				iLocal_286 = unk_0x578C4EF320340AF7();
  				iLocal_287 = unk_0x344C570D6F8700DF(100, 250);
  				iLocal_283 = 1;
  				break;
  			
  			case 1:
  				if (iLocal_285 < iLocal_284)
  				{
  					if ((unk_0x578C4EF320340AF7() - iLocal_286) > iLocal_287)
  					{
  						if (unk_0xF3A639BEE7AADF55(Local_63) < 0.5f)
  						{
  							func_288();
  							unk_0x8B77B020136E915A(Local_63, 1, 0f, 0f, IntToFloat(iLocal_288), fLocal_289, -1.5f, 0f, 0, 1, 1, 0, 1, 1);
  						}
  						iLocal_286 = unk_0x578C4EF320340AF7();
  						iLocal_287 = unk_0x344C570D6F8700DF(100, 250);
  						iLocal_285++;
  					}
  				}
  				else
  				{
  					iLocal_283 = 2;
  				}
  				break;
  			
  			case 2:
  				break;
  			}
  	}
  }
  
  void func_288()
  {
  	iLocal_288 = unk_0x344C570D6F8700DF(-220, -120);
  	fLocal_289 = (0.5f * SYSTEM::TO_FLOAT(unk_0x344C570D6F8700DF(-2, 3)));
  }
  
  void func_289()
  {
  	struct<3> Var0;
  	float fVar1;
  	float fVar2;
  	int iVar3;
  	
  	if (bLocal_338)
  	{
  		if (func_235(Local_314))
  		{
  			Var0 = { unk_0x3E4D3CCC220BDFB1(Local_314, 1) };
  			if (!bLocal_344)
  			{
  				if (Var0.f_1 < 1824.36f)
  				{
  					iLocal_345 = unk_0x578C4EF320340AF7();
  					bLocal_344 = true;
  				}
  				else if (unk_0xAE06B9E39EBDE049(Local_314.f_6) && unk_0xA59F96B50B97E63C(Local_314.f_6, 0))
  				{
  					iLocal_345 = unk_0x578C4EF320340AF7();
  					bLocal_344 = true;
  				}
  			}
  			if (bLocal_344)
  			{
  				fVar1 = (75f - 25f);
  				iVar3 = (unk_0x578C4EF320340AF7() - iLocal_345);
  				if (iVar3 < 11000)
  				{
  					fVar2 = (SYSTEM::TO_FLOAT(iVar3) / SYSTEM::TO_FLOAT(11000));
  				}
  				else
  				{
  					fVar2 = 1f;
  				}
  				unk_0x57EF31B180129B5C(Local_314, (25f + (fVar1 * fVar2)));
  			}
  			else
  			{
  				unk_0x57EF31B180129B5C(Local_314, 25f);
  			}
  		}
  	}
  }
  
  void func_290(float fParam0, var uParam1)
  {
  	uLocal_353[0] = uLocal_353[1];
  	uLocal_353[1] = fParam0;
  	uLocal_354[0] = uLocal_354[1];
  	uLocal_354[1] = uParam1;
  	uLocal_355[0] = uLocal_355[1];
  	uLocal_355[1] = func_291();
  	bLocal_356[0] = bLocal_356[1];
  	bLocal_356[1] = unk_0xA65352E7FEA59881(unk_0x9B0761B4C3EB8BC7(), Local_63);
  }
  
  int func_291()
  {
  	struct<3> Var0[2];
  	float fVar1;
  	float fVar2;
  	struct<3> Var3[4];
  	
  	if (func_235(Local_63) && func_235(Local_314))
  	{
  		if (unk_0x1037B9D45CE6B788(Local_63, Local_110[0 /*3*/], Local_110[1 /*3*/], Local_110.f_7, 0, 1, 0))
  		{
  			return 1;
  		}
  		Var0[0 /*3*/] = { unk_0x7EC595B99EA7C4B1(Local_314, 0f, 8f, -4f) };
  		Var0[1 /*3*/] = { unk_0x7EC595B99EA7C4B1(Local_314, 0f, 16f, 8f) };
  		if (unk_0x1037B9D45CE6B788(Local_63, Var0[0 /*3*/], Var0[1 /*3*/], Local_110.f_7, 0, 1, 0))
  		{
  			return 1;
  		}
  		fVar1 = 1.6f;
  		fVar2 = 4.2f;
  		Var3[0 /*3*/] = { unk_0x7EC595B99EA7C4B1(Local_63, (-fVar1 / 2f), (fVar2 / 2f), 0f) };
  		Var3[1 /*3*/] = { unk_0x7EC595B99EA7C4B1(Local_63, (fVar1 / 2f), (fVar2 / 2f), 0f) };
  		Var3[2 /*3*/] = { unk_0x7EC595B99EA7C4B1(Local_63, (-fVar1 / 2f), (-fVar2 / 2f), 0f) };
  		Var3[3 /*3*/] = { unk_0x7EC595B99EA7C4B1(Local_63, (fVar1 / 2f), (-fVar2 / 2f), 0f) };
  		iLocal_62 = 0;
  		while (iLocal_62 <= 3)
  		{
  			if (unk_0x3BC3A4E4A1827EEE(Var3[iLocal_62 /*3*/], Var0[0 /*3*/], Var0[1 /*3*/], Local_110.f_7, 0, 1))
  			{
  				return 1;
  			}
  			iLocal_62++;
  		}
  	}
  	return 0;
  }
  
  void func_292()
  {
  	float fVar0;
  	
  	if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  	{
  		if (unk_0xF3A639BEE7AADF55(Local_63) > 2f && func_291())
  		{
  			fVar0 = func_296(Local_63, Local_314, 1);
  			if (fVar0 < fLocal_348)
  			{
  				fLocal_348 = fVar0;
  			}
  		}
  	}
  	else if (!iLocal_351)
  	{
  		if (unk_0xF3A639BEE7AADF55(Local_63) > 2f && func_291())
  		{
  			iLocal_349 = unk_0x578C4EF320340AF7();
  			iLocal_351 = 1;
  		}
  	}
  }
  
  void func_293(int iParam0)
  {
  	bool bVar0;
  	int iVar1;
  	
  	Global_61718 = 0;
  	if (!Global_61942[iParam0 /*13*/] == 3)
  	{
  		return;
  	}
  	bVar0 = false;
  	iVar1 = 0;
  	iVar1 = 0;
  	while (iVar1 < Global_73812)
  	{
  		if (Global_73813[iVar1 /*9*/] == iParam0)
  		{
  			bVar0 = true;
  			Global_73813[iVar1 /*9*/].f_1 = 1;
  			Global_73813[iVar1 /*9*/].f_2 = 0f;
  			if (Global_73813[iVar1 /*9*/].f_3 == 2)
  			{
  			}
  		}
  		iVar1++;
  	}
  	if (!bVar0)
  	{
  	}
  }
  
  int func_294()
  {
  	if (unk_0xABF16D69A44D96A9(unk_0x460153A63B9477BC()))
  	{
  		return 1;
  	}
  	if (func_295())
  	{
  		return 0;
  	}
  	if (!unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 1) && !(iLocal_337 && bLocal_356[1]))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_295()
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	float fVar2;
  	
  	Var0 = { unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1) };
  	Var1 = { unk_0x3E4D3CCC220BDFB1(Local_63, 1) };
  	fVar2 = unk_0x272784C60C397DB6(Var1, Var0, 1);
  	if (unk_0xA65352E7FEA59881(Local_63, unk_0x9B0761B4C3EB8BC7()) && (Var0.f_2 - Var1.f_2) > 0.5f)
  	{
  		return 1;
  	}
  	if (fVar2 < 3f && (Var0.f_2 - Var1.f_2) > 0.5f)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  float func_296(int iParam0, int iParam1, int iParam2)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	
  	if (!unk_0xA59F96B50B97E63C(iParam0, 0))
  	{
  		Var0 = { unk_0x3E4D3CCC220BDFB1(iParam0, 1) };
  	}
  	else
  	{
  		Var0 = { unk_0x3E4D3CCC220BDFB1(iParam0, 0) };
  	}
  	if (!unk_0xA59F96B50B97E63C(iParam1, 0))
  	{
  		Var1 = { unk_0x3E4D3CCC220BDFB1(iParam1, 1) };
  	}
  	else
  	{
  		Var1 = { unk_0x3E4D3CCC220BDFB1(iParam1, 0) };
  	}
  	return unk_0x272784C60C397DB6(Var0, Var1, iParam2);
  }
  
  void func_297(bool bParam0)
  {
  	if (bParam0)
  	{
  		func_317();
  		unk_0xD289B55B6AADBA10(1);
  	}
  	else if (!unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  	{
  		if (iLocal_373 && unk_0xDABD547F0DF2906C())
  		{
  			unk_0xD289B55B6AADBA10(1);
  		}
  		func_317();
  	}
  	else if (func_319(Local_63, Local_314, 350f, 1))
  	{
  		if (((unk_0x1037B9D45CE6B788(Local_63, Local_375[0 /*8*/][0 /*3*/], Local_375[0 /*8*/][1 /*3*/], Local_375[0 /*8*/].f_7, 0, 1, 0) || unk_0x1037B9D45CE6B788(Local_63, Local_375[1 /*8*/][0 /*3*/], Local_375[1 /*8*/][1 /*3*/], Local_375[1 /*8*/].f_7, 0, 1, 0)) || unk_0x1037B9D45CE6B788(Local_63, Local_375[2 /*8*/][0 /*3*/], Local_375[2 /*8*/][1 /*3*/], Local_375[2 /*8*/].f_7, 0, 1, 0)) || unk_0x1037B9D45CE6B788(Local_63, Local_375[3 /*8*/][0 /*3*/], Local_375[3 /*8*/][1 /*3*/], Local_375[3 /*8*/].f_7, 0, 1, 0))
  		{
  			if (!iLocal_373)
  			{
  				func_316("N3TRAINCAM", -1);
  				iLocal_373 = 1;
  			}
  			if (func_299(&uLocal_361, 1, 1, 0))
  			{
  				func_298();
  				if (unk_0x40397A9A17EEC1C5(uLocal_374))
  				{
  					unk_0x46FC5C9D2F1078AF(uLocal_374, Local_63, 0f, 0f, 2f, 1);
  				}
  			}
  			else
  			{
  				func_317();
  			}
  		}
  	}
  	else
  	{
  		func_317();
  	}
  }
  
  void func_298()
  {
  	if (!unk_0x40397A9A17EEC1C5(uLocal_374))
  	{
  		uLocal_374 = unk_0x68C2E3309DCAD71E("DEFAULT_SCRIPTED_CAMERA", 0);
  		unk_0xD64C2E5B5BA2D347(uLocal_374, 40.68f);
  		unk_0x2311A669433389E8(uLocal_374, "HAND_SHAKE", 1f);
  		unk_0x3B1D5D044BC72834(uLocal_374, Local_314, 3.32f, -6.08f, 4.28f, 1);
  		unk_0x856549C07003344B(uLocal_374, 1);
  		unk_0x3ED9330214992278(1, 0, 3000, 1, 0, 0);
  	}
  }
  
  int func_299(var uParam0, bool bParam1, bool bParam2, bool bParam3)
  {
  	if (uParam0->f_1)
  	{
  		if (unk_0x578C4EF320340AF7() >= (uParam0->f_8 + uParam0->f_9))
  		{
  			uParam0->f_1 = 0;
  		}
  	}
  	switch (uParam0->f_5)
  	{
  		case 0:
  			uParam0->f_7 = 0;
  			if (uParam0->f_6 == 0)
  			{
  				if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1))
  				{
  					if (func_315(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_4 = unk_0x578C4EF320340AF7();
  						uParam0->f_5 = 1;
  						uParam0->f_7 = 1;
  					}
  				}
  				else if (func_314(bParam1, bParam2, bParam3))
  				{
  					uParam0->f_4 = unk_0x578C4EF320340AF7();
  					uParam0->f_5 = 1;
  					uParam0->f_7 = 1;
  				}
  			}
  			else if (uParam0->f_6 == 1)
  			{
  				if (func_314(bParam1, bParam2, bParam3))
  				{
  					uParam0->f_4 = unk_0x578C4EF320340AF7();
  					uParam0->f_5 = 1;
  					uParam0->f_7 = 1;
  				}
  			}
  			else if (uParam0->f_6 == 2)
  			{
  				if (func_315(bParam1, bParam2, bParam3))
  				{
  					uParam0->f_4 = unk_0x578C4EF320340AF7();
  					uParam0->f_5 = 1;
  					uParam0->f_7 = 1;
  				}
  			}
  			if (func_313(uParam0))
  			{
  				uParam0->f_7 = 1;
  				uParam0->f_5 = 4;
  			}
  			break;
  		
  		case 1:
  			if ((unk_0x578C4EF320340AF7() - uParam0->f_4) <= 500)
  			{
  				if (uParam0->f_6 == 0)
  				{
  					if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1))
  					{
  						if (!func_315(bParam1, bParam2, bParam3))
  						{
  							uParam0->f_4 = unk_0x578C4EF320340AF7();
  							uParam0->f_5 = 3;
  						}
  					}
  					else if (!func_314(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_4 = unk_0x578C4EF320340AF7();
  						uParam0->f_5 = 3;
  					}
  				}
  				else if (uParam0->f_6 == 1)
  				{
  					if (!func_314(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_4 = unk_0x578C4EF320340AF7();
  						uParam0->f_5 = 3;
  					}
  				}
  				else if (uParam0->f_6 == 2)
  				{
  					if (!func_315(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_4 = unk_0x578C4EF320340AF7();
  						uParam0->f_5 = 3;
  					}
  				}
  			}
  			else
  			{
  				uParam0->f_5 = 2;
  			}
  			break;
  		
  		case 2:
  			if (uParam0->f_6 == 0)
  			{
  				if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1))
  				{
  					if (!func_315(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_5 = 0;
  					}
  				}
  				else if (!func_314(bParam1, bParam2, bParam3))
  				{
  					uParam0->f_5 = 0;
  				}
  			}
  			else if (uParam0->f_6 == 1)
  			{
  				if (!func_314(bParam1, bParam2, bParam3) || unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1))
  				{
  					uParam0->f_5 = 0;
  				}
  			}
  			else if (uParam0->f_6 == 2)
  			{
  				if (!unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1) || unk_0xA4E17AE82A76F738(unk_0x9B0761B4C3EB8BC7(), 2))
  				{
  					uParam0->f_5 = 0;
  				}
  				else if (!func_315(bParam1, bParam2, bParam3))
  				{
  					uParam0->f_5 = 0;
  				}
  			}
  			break;
  		
  		case 3:
  			if ((unk_0x578C4EF320340AF7() - uParam0->f_4) > 500)
  			{
  				if (uParam0->f_6 == 0)
  				{
  					if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1))
  					{
  						if (func_312(bParam1, bParam2, bParam3))
  						{
  							uParam0->f_5 = 0;
  						}
  					}
  					else if (func_311(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_5 = 0;
  					}
  				}
  				else if (uParam0->f_6 == 1)
  				{
  					if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1) || func_311(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_5 = 0;
  					}
  				}
  				else if (uParam0->f_6 == 2)
  				{
  					if (!unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1) || unk_0xA4E17AE82A76F738(unk_0x9B0761B4C3EB8BC7(), 2))
  					{
  						uParam0->f_5 = 0;
  					}
  					else if (func_312(bParam1, bParam2, bParam3))
  					{
  						uParam0->f_5 = 0;
  					}
  				}
  			}
  			break;
  		
  		case 4:
  			if (!func_313(uParam0))
  			{
  				uParam0->f_5 = 0;
  			}
  			break;
  	}
  	if (!func_301(bParam1, bParam2, bParam3))
  	{
  		uParam0->f_5 = 0;
  		uParam0->f_7 = 0;
  	}
  	if (uParam0->f_7)
  	{
  		func_300();
  		return 1;
  	}
  	else
  	{
  		return 0;
  	}
  	return 0;
  }
  
  void func_300()
  {
  	unk_0xBE20AB8238688965(&Global_7552, 4);
  }
  
  int func_301(bool bParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (bParam0)
  	{
  		if (!unk_0x4DC4117F94CD5B84(unk_0x460153A63B9477BC()))
  		{
  			return 0;
  		}
  	}
  	if (bParam2)
  	{
  		return 1;
  	}
  	if (unk_0x9CC4D06F5338CA6B())
  	{
  		return 0;
  	}
  	if (func_310(0))
  	{
  		return 0;
  	}
  	if (func_309())
  	{
  		return 0;
  	}
  	if (unk_0xDFAB5E5CBE16E8B1())
  	{
  		return 0;
  	}
  	if (Global_74030)
  	{
  		return 0;
  	}
  	if (unk_0x7B70881748D166CD(joaat("appinternet")) > 0)
  	{
  		return 0;
  	}
  	if (Global_58898)
  	{
  		return 0;
  	}
  	if (bParam1)
  	{
  		if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 1))
  		{
  			if (unk_0xDF1110AC39C733FE(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0xF7B3A1430308F92B(3) == 3 || unk_0xF7B3A1430308F92B(3) == 4)
  				{
  					return 0;
  				}
  			}
  			else if (unk_0x94BF5C4EB0D40E9E(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0xF7B3A1430308F92B(6) == 3 || unk_0xF7B3A1430308F92B(6) == 4)
  				{
  					return 0;
  				}
  			}
  			else if (unk_0xAABDC18B9F6EC79D(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0xF7B3A1430308F92B(4) == 3 || unk_0xF7B3A1430308F92B(4) == 4)
  				{
  					return 0;
  				}
  			}
  			else if (unk_0xF1263D4D1D8024EF(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0xF7B3A1430308F92B(5) == 3 || unk_0xF7B3A1430308F92B(5) == 4)
  				{
  					return 0;
  				}
  			}
  			else if (unk_0xE4B70EFD14220305(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0xF7B3A1430308F92B(2) == 3 || unk_0xF7B3A1430308F92B(2) == 4)
  				{
  					return 0;
  				}
  			}
  			else if (unk_0x1075BD5031B0682E() == 3 || unk_0x1075BD5031B0682E() == 4)
  			{
  				return 0;
  			}
  			if (unk_0xB2E78D7FD7EFCFD1())
  			{
  				return 0;
  			}
  		}
  	}
  	if ((func_308() || func_307(Global_4456448.f_129348)) || func_306())
  	{
  		if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  		{
  			iVar0 = unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0);
  			iVar1 = func_305(unk_0x9B0761B4C3EB8BC7(), 0);
  			if (((unk_0x09F8284D2E03269D(iVar0, iVar1) || (unk_0x36FE6D3220816ADA(iVar0) == joaat("apc") && iVar1 != -1)) || (unk_0x36FE6D3220816ADA(iVar0) == joaat("akula") && iVar1 != -1)) || (((unk_0x36FE6D3220816ADA(iVar0) == joaat("riot2") && iVar1 == 0) && func_304(iVar0, 10)) && unk_0x7F8B14CBFB9813E5(iVar0, 10) != -1))
  			{
  				return 0;
  			}
  		}
  	}
  	if (Global_1688745)
  	{
  		return 0;
  	}
  	if (func_302(unk_0x460153A63B9477BC()))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_302(int iParam0)
  {
  	if (iParam0 != func_217())
  	{
  		if (func_303(iParam0, 1, 1))
  		{
  			return Global_2425869[iParam0 /*443*/].f_314.f_6 != -1;
  		}
  		else if ((Global_1312896 && iParam0 == unk_0x460153A63B9477BC()) && func_303(iParam0, 1, 0))
  		{
  			return Global_2425869[iParam0 /*443*/].f_314.f_6 != -1;
  		}
  	}
  	return 0;
  }
  
  int func_303(int iParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	
  	iVar0 = iParam0;
  	if (iVar0 != -1)
  	{
  		if (unk_0x166E920FB00B2DBB(iParam0))
  		{
  			if (bParam1)
  			{
  				if (!unk_0x5A228A6A51E757C8(iParam0))
  				{
  					return 0;
  				}
  			}
  			if (bParam2)
  			{
  				if (!Global_2440049.f_3[iVar0])
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_304(int iParam0, int iParam1)
  {
  	if (unk_0x80FF6C016CDB0FAF(iParam0, 0))
  	{
  		if (unk_0xC71761E30ACCF098(iParam0) > 0)
  		{
  			switch (iParam1)
  			{
  				case 17:
  				case 18:
  				case 19:
  				case 20:
  				case 21:
  				case 22:
  					return 1;
  					break;
  				
  				default:
  					if (unk_0xAB92DA7B6007DAAA(iParam0, iParam1) > 0)
  					{
  						return 1;
  					}
  					break;
  				}
  			}
  	}
  	return 0;
  }
  
  int func_305(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	if (!unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		if (unk_0x47DBF174A0CB9D55(iParam0, iParam1))
  		{
  			iVar0 = unk_0xA5D5B1042E8F47BD(iParam0, iParam1);
  			if (unk_0xAE06B9E39EBDE049(iVar0))
  			{
  				iVar1 = unk_0x112A81273D7187A5(unk_0x36FE6D3220816ADA(iVar0));
  				if (iVar1 == 1)
  				{
  					iVar3 = -1;
  					return iVar3;
  				}
  				iVar2 = 0;
  				while (iVar2 < iVar1)
  				{
  					iVar3 = (iVar2 - 1);
  					if (!unk_0xB064AF9925F5537B(iVar0, iVar3, 0))
  					{
  						if (unk_0x10D3F7E169A49C44(iVar0, iVar3, 0) == iParam0)
  						{
  							return iVar3;
  						}
  					}
  					iVar2++;
  				}
  			}
  		}
  	}
  	return iVar3;
  }
  
  var func_306()
  {
  	return Global_2451787.f_18;
  }
  
  bool func_307(int iParam0)
  {
  	return iParam0 == 51;
  }
  
  var func_308()
  {
  	return Global_2451787.f_17;
  }
  
  bool func_309()
  {
  	return unk_0x578C4EF320340AF7() <= Global_22550.f_5878 + 100;
  }
  
  int func_310(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;
  }
  
  int func_311(bool bParam0, bool bParam1, bool bParam2)
  {
  	if (!func_301(bParam0, bParam1, bParam2))
  	{
  		return 0;
  	}
  	if (!unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  	{
  		if (!unk_0x8B1FF66E0C62B7AE(unk_0x460153A63B9477BC()))
  		{
  			unk_0x779660A9E5364C4D(0, 140, 1);
  			unk_0x779660A9E5364C4D(0, 80, 1);
  			if (unk_0x275A6259432E6B3C(0, 80))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_312(bool bParam0, bool bParam1, bool bParam2)
  {
  	if (!func_301(bParam0, bParam1, bParam2))
  	{
  		return 0;
  	}
  	if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  	{
  		unk_0x779660A9E5364C4D(0, 80, 1);
  		if (unk_0xF86D3D6D2985D768())
  		{
  			if (unk_0x275A6259432E6B3C(0, 80))
  			{
  				unk_0x0C23023B6B6C6051(0);
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_313(var uParam0)
  {
  	int iVar0;
  	
  	if (uParam0->f_2 > 0)
  	{
  		iVar0 = (uParam0->f_10 / 2);
  		if (uParam0->f_2 + iVar0) > unk_0x578C4EF320340AF7()
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_314(bool bParam0, bool bParam1, bool bParam2)
  {
  	if (!func_301(bParam0, bParam1, bParam2))
  	{
  		return 0;
  	}
  	if (!unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  	{
  		if (!unk_0x8B1FF66E0C62B7AE(unk_0x460153A63B9477BC()))
  		{
  			unk_0x779660A9E5364C4D(0, 140, 1);
  			unk_0x779660A9E5364C4D(0, 80, 1);
  			if (unk_0xB9C0D9B37277621D(0, 80) && unk_0x578C4EF320340AF7() > Global_116)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_315(bool bParam0, bool bParam1, bool bParam2)
  {
  	if (!func_301(bParam0, bParam1, bParam2))
  	{
  		return 0;
  	}
  	if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  	{
  		unk_0x779660A9E5364C4D(0, 80, 1);
  		if (unk_0xF86D3D6D2985D768())
  		{
  			if (unk_0xB9C0D9B37277621D(0, 80) && unk_0x578C4EF320340AF7() > Global_116)
  			{
  				unk_0x0C23023B6B6C6051(0);
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  void func_316(char* sParam0, int iParam1)
  {
  	unk_0x17751E107423AFE9(sParam0);
  	unk_0x1A169149B3D18FCB(0, 0, 1, iParam1);
  }
  
  void func_317()
  {
  	if (unk_0x40397A9A17EEC1C5(uLocal_374))
  	{
  		if (unk_0xC516FEEB950FFD58(uLocal_374))
  		{
  			unk_0x856549C07003344B(uLocal_374, 0);
  			unk_0x3ED9330214992278(0, 0, 3000, 1, 0, 0);
  		}
  		unk_0xB8B0F7C8C1548C5B(uLocal_374, 0);
  	}
  }
  
  bool func_318(char* sParam0, int iParam1, int iParam2)
  {
  	unk_0xCD7691F7F3015C57(sParam0);
  	if (iParam1 == 1)
  	{
  		unk_0x6A826E35A3096ED0(iParam2);
  	}
  	return unk_0x5E0AC8AED85CE7CB();
  }
  
  bool func_319(int iParam0, int iParam1, float fParam2, int iParam3)
  {
  	return SYSTEM::VDIST2(unk_0x3E4D3CCC220BDFB1(iParam0, iParam3), unk_0x3E4D3CCC220BDFB1(iParam1, iParam3)) <= (fParam2 * fParam2);
  }
  
  int func_320()
  {
  	if (!iLocal_343)
  	{
  		unk_0x78FCB2E22C41B9D5(Local_314.f_1);
  		unk_0x78FCB2E22C41B9D5(joaat("freight"));
  		unk_0x78FCB2E22C41B9D5(joaat("freightcar"));
  		unk_0x78FCB2E22C41B9D5(joaat("freightcont1"));
  		unk_0x78FCB2E22C41B9D5(joaat("freightcont2"));
  		unk_0x78FCB2E22C41B9D5(Local_314.f_7);
  		iLocal_343 = 1;
  		return 0;
  	}
  	if (!unk_0xAE06B9E39EBDE049(Local_314))
  	{
  		if ((((unk_0x7D167B9A0CCDA347(Local_314.f_1) && unk_0x7D167B9A0CCDA347(joaat("freight"))) && unk_0x7D167B9A0CCDA347(joaat("freightcar"))) && unk_0x7D167B9A0CCDA347(joaat("freightcont1"))) && unk_0x7D167B9A0CCDA347(joaat("freightcont2")))
  		{
  			Local_314 = unk_0x02B6C3064645FBE8(10, Local_314.f_2, 1);
  			unk_0x0312E5501F93E5AB(Local_314, 1);
  			unk_0x57EF31B180129B5C(Local_314, 25f);
  			unk_0x74528AC0906CBABE(Local_314.f_1);
  			unk_0x74528AC0906CBABE(joaat("freight"));
  			unk_0x74528AC0906CBABE(joaat("freightcar"));
  			unk_0x74528AC0906CBABE(joaat("freightcont1"));
  			unk_0x74528AC0906CBABE(joaat("freightcont2"));
  		}
  		return 0;
  	}
  	if (!unk_0xAE06B9E39EBDE049(Local_314.f_6))
  	{
  		if (unk_0x7D167B9A0CCDA347(Local_314.f_7) && func_235(Local_314))
  		{
  			Local_314.f_6 = unk_0x6A7A2C83BD302BA4(Local_314, 26, Local_314.f_7, -1, 1, 1);
  			unk_0x45F588C0DD767737(Local_314.f_6, 3, 1, 0, 0);
  			unk_0x45F588C0DD767737(Local_314.f_6, 4, 0, 0, 0);
  			unk_0x45F588C0DD767737(Local_314.f_6, 10, 0, 0, 0);
  			unk_0x4E65320BC9AD521C(Local_314.f_6, 1);
  			unk_0x74528AC0906CBABE(joaat("s_m_m_trucker_01"));
  			return 1;
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	return 1;
  }
  
  void func_321(char* sParam0, int iParam1, int iParam2)
  {
  	iParam2 = iParam2;
  	unk_0xAEFB51FB8888AE0F(sParam0);
  	unk_0x823A1D66E6A4D141(iParam1, 1);
  }
  
  int func_322(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	if (func_235(iParam0))
  	{
  		iVar0 = unk_0x2BE000892D65EA2A(iParam0);
  		unk_0x3060C53EAE54BBE7(iVar0, iParam1);
  		unk_0xE346A71235BB8065(iVar0, iParam2);
  		unk_0xFA81E0FBD7F5ACA0(iVar0, 1f);
  	}
  	return iVar0;
  }
  
  void func_323(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	char[] cVar3[8];
  	int iVar4;
  	var uVar5;
  	int iVar6;
  	
  	if (iParam3 == 1)
  	{
  		if (!unk_0xF005CCA4263DF67F("FinaleC2", unk_0x6C5C6B207AA78253()))
  		{
  		}
  	}
  	iVar0 = 0;
  	if (iParam3 == 1)
  	{
  		if (iParam0 != Global_98992)
  		{
  			iVar0 = 1;
  		}
  	}
  	else if (iParam0 > Global_98992)
  	{
  		iVar0 = 1;
  	}
  	if (iVar0 == 1)
  	{
  		func_252(1);
  		if (iParam0 <= Global_98992)
  		{
  		}
  		iVar1 = func_396(unk_0x6C5C6B207AA78253(), 1);
  		if (iVar1 != -1 && iVar1 != 94)
  		{
  			Global_111858.f_9081.f_330[iVar1 /*6*/].f_1 = 0;
  			iVar2 = func_394(iVar1);
  			cVar3 = { Global_89743[iVar1 /*34*/].f_8 };
  			if (iVar1 == 90)
  			{
  				switch (Global_111858.f_9081.f_99.f_205[7])
  				{
  					case 1:
  						StringConCat(&cVar3, "A", 8);
  						break;
  					
  					case 2:
  						StringConCat(&cVar3, "B", 8);
  						break;
  					}
  			}
  			unk_0xB932BB0105405712(&cVar3, iVar2, Global_98992, iParam0);
  		}
  		else
  		{
  			iVar4 = func_202(unk_0x6C5C6B207AA78253(), 1);
  			if (iVar4 != -1)
  			{
  				Global_111858.f_18570[iVar4 /*6*/].f_4 = 0;
  				MemCopy(&uVar5, {func_157(iVar4)}, 4);
  				unk_0xB932BB0105405712(&uVar5, 0, Global_98992, iParam0);
  			}
  			else
  			{
  				iVar6 = func_393(&(Global_98955.f_3));
  				if (iVar6 > -1)
  				{
  					Global_111858.f_24982.f_4[iVar6] = 0;
  				}
  			}
  		}
  		Global_93133 = iParam2;
  		Global_98992 = iParam0;
  		func_324(iParam0, sParam1, iParam4, iParam5);
  		if (unk_0xF005CCA4263DF67F(sParam1, ""))
  		{
  		}
  	}
  	else if (iParam0 < Global_98992)
  	{
  	}
  }
  
  void func_324(int iParam0, var uParam1, int iParam2, int iParam3)
  {
  	func_325(&Global_105407, unk_0x6C5C6B207AA78253(), iParam0, uParam1, iParam3, iParam2);
  }
  
  void func_325(var uParam0, char* sParam1, var uParam2, var uParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	int iVar1;
  	
  	*uParam0 = func_223();
  	uParam0->f_1 = func_382();
  	unk_0x012D8A79244042A4(&(uParam0->f_6), &(uParam0->f_7), &(uParam0->f_8));
  	if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  	{
  		func_356(&(uParam0->f_2884), 0);
  		func_355(unk_0x9B0761B4C3EB8BC7());
  		func_348(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_347())
  		{
  			func_343(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_327(&(uParam0->f_2890), uParam0, iParam5, 1, 1, 0);
  	}
  	func_326(&(uParam0->f_2980));
  	uParam3 = uParam3;
  	uParam2 = uParam2;
  }
  
  int func_326(var uParam0)
  {
  	*uParam0 = Global_94804;
  	uParam0->f_1 = Global_94805;
  	uParam0->f_2 = 0;
  	uParam0->f_3 = 0;
  	return 1;
  }
  
  void func_327(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_149(iParam2);
  	}
  	if (func_340(iParam2, &iVar0, iParam3, iParam5))
  	{
  		func_328(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_328(uParam0, uParam1, iVar0, iParam4);
  			}
  		}
  	}
  }
  
  int func_328(var uParam0, var uParam1, int iParam2, int iParam3)
  {
  	if (unk_0x80FF6C016CDB0FAF(iParam2, 0))
  	{
  		func_330(uParam0, iParam2, iParam3);
  		uParam1->f_4 = iParam2;
  		if (func_329(iParam2))
  		{
  			uParam1->f_3 = 1;
  		}
  		else
  		{
  			uParam1->f_3 = 0;
  		}
  		return 1;
  	}
  	return 0;
  }
  
  int func_329(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 6)
  	{
  		if (Global_98955.f_22[iVar0] == iParam0)
  		{
  			return 1;
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  void func_330(var uParam0, int iParam1, int iParam2)
  {
  	func_336(iParam1, &(uParam0->f_12));
  	uParam0->f_7 = func_333(iParam1, 145, 0);
  	uParam0->f_11 = func_332(iParam1);
  	if (!uParam0->f_7)
  	{
  		if (!uParam0->f_10)
  		{
  			uParam0->f_10 = func_331(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_331(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_332(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_333(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_334(iParam1, iParam2))
  					{
  						return 1;
  					}
  				}
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_334(int iParam0, int iParam1)
  {
  	struct<82> Var0;
  	
  	if (func_152(iParam0))
  	{
  		Var0.f_11 = 12;
  		Var0.f_31 = 49;
  		Var0.f_81 = 2;
  		func_335(iParam0, &Var0, iParam1);
  		return Var0;
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  void func_335(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;
  	}
  }
  
  void func_336(int iParam0, var uParam1)
  {
  	int iVar0;
  	
  	if (unk_0x80FF6C016CDB0FAF(iParam0, 0))
  	{
  		func_25(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_339(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_338(&iParam0, &(uParam1->f_9), &(uParam1->f_59));
  		iVar0 = 0;
  		while (iVar0 <= 11)
  		{
  			if (unk_0xAACD889100BCBCFA(iParam0, iVar0 + 1))
  			{
  				unk_0xBE20AB8238688965(&(uParam1->f_77), func_337(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_337(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_338(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_339(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("granger"):
  		case joaat("visione"):
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  int func_340(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_341(*uParam1, func_223(), 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_341(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_342(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_342(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;
  }
  
  void func_343(int iParam0, var uParam1, int iParam2, int iParam3)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		iVar0 = func_149(iParam0);
  		iVar1 = 0;
  		while (iVar1 < 12)
  		{
  			func_346(iParam0, iVar1, &(uParam1->f_13[iVar1]), uParam1[iVar1], &(uParam1->f_26[iVar1]), iParam2, 145);
  			iVar1++;
  		}
  		iVar1 = 0;
  		while (iVar1 < 9)
  		{
  			func_345(iParam0, iVar1, &(uParam1->f_39[iVar1]), &(uParam1->f_49[iVar1]), iParam2, 145);
  			iVar1++;
  		}
  		if (func_152(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_344(161, iParam3))
  			{
  				uParam1->f_59 = func_70(2052, iParam3, 0);
  			}
  			else
  			{
  				uParam1->f_59 = func_70(752, iParam3, 0);
  			}
  			uParam1->f_60 = func_70(753, iParam3, 0);
  			uParam1->f_61 = func_70(754, iParam3, 0);
  		}
  		if (unk_0x25DDB354A40FFCDB() && iParam0 == unk_0x9B0761B4C3EB8BC7())
  		{
  			if (func_344(161, iParam3))
  			{
  				uParam1->f_59 = func_70(2052, iParam3, 0);
  			}
  			else
  			{
  				uParam1->f_59 = func_70(752, iParam3, 0);
  			}
  		}
  	}
  }
  
  int func_344(int iParam0, int iParam1)
  {
  	var uVar0;
  	var uVar1;
  	
  	uVar0 = Global_2587834[iParam0 /*3*/][func_69(iParam1)];
  	if (unk_0xB9112C701DE2A810(uVar0, &uVar1, -1))
  	{
  		return uVar1;
  	}
  	return 0;
  }
  
  void func_345(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)
  {
  	int iVar0;
  	
  	iVar0 = func_149(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_346(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, int iParam5, int iParam6)
  {
  	int iVar0;
  	
  	iVar0 = func_149(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_347()
  {
  	func_155();
  	return Global_111858.f_2359.f_539.f_4321;
  }
  
  void func_348(int iParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	var uVar3;
  	
  	iVar0 = func_149(iParam0);
  	if (func_152(iVar0) && !unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		if (iParam0 == unk_0x9B0761B4C3EB8BC7())
  		{
  			func_349(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(), &uVar3);
  			if (iVar0 == 0)
  			{
  				unk_0x6000E4684CB4330B(joaat("SP0_PARACHUTE_CURRENT_TINT"), uVar3, 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_349(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_354(iVar0);
  			if (iVar3 != 0)
  			{
  				Var4 = unk_0x285D770154CF7612(iParam0, func_354(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_352(Var4, iVar1);
  					while (iVar2 != 0)
  					{
  						if (unk_0x0BCEF4D1482DACD2(iParam0, Var4, iVar2))
  						{
  							unk_0xBE20AB8238688965(&(Var4.f_2), iVar1);
  						}
  						iVar1++;
  						iVar2 = func_352(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_351(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_350(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_350(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_351(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_352(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_353(iParam0, &uVar4);
  				if (iVar1 != -1)
  				{
  					iVar2 = 0;
  					while (iVar2 < unk_0x4C70B0C3D1E97438(iVar1))
  					{
  						if (unk_0xF4545E3991F419DA(iVar1, iVar2, &Var5))
  						{
  							if (!func_350(Var5.f_3))
  							{
  								if (iVar3 == iParam1)
  								{
  									return Var5.f_3;
  								}
  								iVar3++;
  							}
  						}
  						iVar2++;
  					}
  				}
  			}
  			break;
  	}
  	return iVar0;
  }
  
  int func_353(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_354(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_355(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = func_149(iParam0);
  	if (func_152(iVar0) && !unk_0x5AEB5DDFFAD43CA5(iParam0))
  	{
  		Global_111858.f_2359.f_539.f_294[iVar0] = unk_0x90F6D247913C41F9(iParam0);
  	}
  }
  
  void func_356(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_360(&iVar0))
  		{
  			if (func_358(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_223();
  			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_357(*uParam0, "v_hospital", 307.3065f, -589.9595f, 43.302f))
  		{
  			*uParam0 = { 279.4137f, -585.8815f, 43.2502f };
  			uParam0->f_3 = 48.8028f;
  		}
  	}
  }
  
  int func_357(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_358(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_359(*uParam1, 0f, 0f, 0f, 0);
  }
  
  bool func_359(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_360(var uParam0)
  {
  	if (!unk_0xA59F96B50B97E63C(unk_0x9B0761B4C3EB8BC7(), 0) && !unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  	{
  		if (func_381())
  		{
  			*uParam0 = func_365(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 0), 6, -1, 0, 1, -1);
  			if (func_364(*uParam0) && !func_361(*uParam0))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  bool func_361(int iParam0)
  {
  	return func_362(iParam0, 0, 1);
  }
  
  int func_362(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_8() == 0)
  		{
  			return unk_0xCE990E643CD9D0E5(func_70(func_363(iParam0), -1, 0), iParam1);
  		}
  	}
  	else
  	{
  		return unk_0xCE990E643CD9D0E5(Global_111858.f_668[iParam0], iParam1);
  	}
  	return 0;
  }
  
  int func_363(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_364(int iParam0)
  {
  	return func_362(iParam0, 5, 1);
  }
  
  int func_365(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_380(iVar0))
  		{
  			if (!bParam3 || func_379(iVar0))
  			{
  				fVar1 = unk_0x272784C60C397DB6(Param0, func_366(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_366(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_376(Global_101058);
  			break;
  		
  		case 46:
  			if (Global_1590519 != func_217())
  			{
  				if (func_375(Global_1590519))
  				{
  					return func_368(2, 2);
  				}
  				else if (func_367(Global_1590519))
  				{
  					return func_368(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_367(int iParam0)
  {
  	if (iParam0 != func_217())
  	{
  		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_368(int iParam0, int iParam1)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	
  	Var1 = { 1000000f, 1000000f, 1000000f };
  	if (Global_1590519 != func_217())
  	{
  		if (iParam1 == 3)
  		{
  			if (func_369(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_369(iParam0, 1, &Var0, 0, 0))
  				{
  					Var1 = { Var0 };
  				}
  			}
  			else if (unk_0xCE990E643CD9D0E5(Global_1590682[Global_1590519 /*883*/].f_274.f_259, 5))
  			{
  				if (func_369(iParam0, 2, &Var0, 0, 0))
  				{
  					Var1 = { Var0 };
  				}
  			}
  		}
  	}
  	return Var1;
  }
  
  int func_369(int iParam0, int iParam1, var uParam2, int iParam3, bool bParam4)
  {
  	struct<4> Var0;
  	struct<3> Var1;
  	struct<4> Var2;
  	struct<3> Var3;
  	
  	if (!func_374(iParam3, &Var0))
  	{
  		return 0;
  	}
  	if (!func_374(iParam1, &Var1))
  	{
  		return 0;
  	}
  	if (!bParam4)
  	{
  		Var2 = { func_372(iParam0) };
  	}
  	else
  	{
  		Var2 = { func_371(iParam0) };
  	}
  	Var3 = { Var2 - Var0 };
  	Var3 = { func_370(Var3, -Var0.f_3.f_2) };
  	Var3 = { func_370(Var3, Var1.f_3.f_2) };
  	*uParam2 = { unk_0x1BAE5C94E38E44FE(Var1, 0f, Var3) };
  	uParam2->f_3 = { Var2.f_3 };
  	return 1;
  }
  
  Vector3 func_370(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_371(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_372(int iParam0)
  {
  	return func_373(iParam0);
  }
  
  struct<6> func_373(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_374(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_375(int iParam0)
  {
  	if (iParam0 != func_217())
  	{
  		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;
  }
  
  Vector3 func_376(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_377() == 0)
  			{
  				return 205f, 5180f, -90f;
  			}
  			else
  			{
  				return 170f, 5190f, 10f;
  			}
  			break;
  		
  		default:
  			return 0f, 0f, -200f;
  			break;
  	}
  	return 0f, 0f, -200f;
  }
  
  int func_377()
  {
  	return func_378(unk_0x460153A63B9477BC());
  }
  
  var func_378(int iParam0)
  {
  	return unk_0x039D1DD18D3EA3F3(Global_2425869[iParam0 /*443*/].f_314.f_3, 28, 31);
  }
  
  int func_379(int iParam0)
  {
  	return func_362(iParam0, 0, 0);
  }
  
  int func_380(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_381()
  {
  	return Global_99007.f_351 > 0;
  }
  
  var func_382()
  {
  	var uVar0;
  	
  	func_392(&uVar0, unk_0x1D3A3697182AD8B3());
  	func_391(&uVar0, unk_0x81F2E25F8C019191());
  	func_390(&uVar0, unk_0x1F596C965B00E290());
  	func_385(&uVar0, unk_0x371CFD525753F70C());
  	func_384(&uVar0, unk_0xF225116F449A5CC6());
  	func_383(&uVar0, unk_0x2E48CFA70ABFC06A());
  	return uVar0;
  }
  
  void func_383(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_384(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 > 11)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 15);
  	*uParam0 = (*uParam0 || iParam1);
  }
  
  void func_385(var uParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = func_389(*uParam0);
  	iVar1 = func_387(*uParam0);
  	if (iParam1 < 1 || iParam1 > func_386(iVar0, iVar1))
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 496);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 4));
  }
  
  int func_386(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_387(int iParam0)
  {
  	return (SYSTEM::SHIFT_RIGHT(iParam0, 26) & 31 * func_388(unk_0xCE990E643CD9D0E5(iParam0, 31), -1, 1)) + 2011;
  }
  
  int func_388(bool bParam0, int iParam1, int iParam2)
  {
  	if (bParam0)
  	{
  		return iParam1;
  	}
  	return iParam2;
  }
  
  int func_389(var uParam0)
  {
  	return uParam0 & 15;
  }
  
  void func_390(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 > 24)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 15872);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 9));
  }
  
  void func_391(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 >= 60)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 1032192);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 14));
  }
  
  void func_392(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 >= 60)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 66060288);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 20));
  }
  
  int func_393(char* sParam0)
  {
  	if (unk_0xF005CCA4263DF67F("BailBond1", uParam0))
  	{
  		return 0;
  	}
  	else if (unk_0xF005CCA4263DF67F("BailBond2", sParam0))
  	{
  		return 1;
  	}
  	else if (unk_0xF005CCA4263DF67F("BailBond3", sParam0))
  	{
  		return 2;
  	}
  	else if (unk_0xF005CCA4263DF67F("BailBond4", sParam0))
  	{
  		return 3;
  	}
  	return -1;
  }
  
  int func_394(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 69:
  		case 70:
  			return func_395(Global_111858.f_9081.f_99.f_205[10]);
  			break;
  		
  		case 74:
  		case 75:
  			return func_395(Global_111858.f_9081.f_99.f_205[8]);
  			break;
  		
  		case 84:
  		case 85:
  			return func_395(Global_111858.f_9081.f_99.f_205[11]);
  			break;
  		
  		case 90:
  			return func_395(Global_111858.f_9081.f_99.f_205[7]);
  			break;
  		
  		case 93:
  			return func_395(Global_111858.f_9081.f_99.f_205[9]);
  			break;
  	}
  	return 0;
  }
  
  int func_395(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  		case 3:
  		case 5:
  		case 6:
  		case 8:
  			return 0;
  			break;
  		
  		case 2:
  		case 4:
  		case 7:
  		case 9:
  			return 1;
  			break;
  	}
  	return -1;
  }
  
  int func_396(char* sParam0, bool bParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = unk_0x856D5567211886A2(sParam0);
  	iVar1 = func_397(iVar0, 1);
  	if (iVar1 == -1 && !bParam1)
  	{
  	}
  	return iVar1;
  }
  
  int func_397(int iParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 94)
  	{
  		if (Global_89743[iVar0 /*34*/].f_6 == iParam0)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	if (!bParam1)
  	{
  	}
  	return -1;
  }
  
  void func_398()
  {
  	Global_19871 = 0;
  	func_399();
  }
  
  void func_399()
  {
  	if (unk_0x6A5CC4A2C9D9ED8D())
  	{
  		unk_0x62B2C9892E3E142D();
  		Global_22016 = 0;
  		unk_0xBE4122AC23440E7D(1);
  		Global_21005 = 6;
  		return;
  	}
  }
  
  void func_400()
  {
  	switch (iLocal_56)
  	{
  		case 0:
  			unk_0x131ED02492676000(sLocal_100);
  			unk_0x78FCB2E22C41B9D5(iLocal_105);
  			if (unk_0xF3A639BEE7AADF55(Local_63) >= 0.025f)
  			{
  				iLocal_96 = 4;
  				iLocal_56 = 1;
  			}
  			else
  			{
  				if (bLocal_295)
  				{
  					if (!iLocal_60)
  					{
  						iLocal_61 = unk_0x578C4EF320340AF7();
  					}
  				}
  				if (!unk_0x8F678487EEBD8CE4(uLocal_107))
  				{
  					uLocal_107 = func_322(Local_63, 1, 5);
  				}
  				if (!bLocal_294)
  				{
  					iLocal_96 = 0;
  					iLocal_56 = 1;
  				}
  				else if (bLocal_338)
  				{
  					iLocal_96 = 6;
  					iLocal_56 = 1;
  				}
  				else if (func_415())
  				{
  					func_316("N3NRCOP", -1);
  					iLocal_96 = 1;
  					iLocal_56 = 1;
  				}
  				else if (unk_0x0F0E6A09A9C90474(uLocal_90[0], &(uLocal_93[0]), &(Local_94[0 /*7*/][0 /*3*/]), &(Local_94[0 /*7*/][1 /*3*/]), &(uLocal_95[0])) != 1 && unk_0x0F0E6A09A9C90474(uLocal_90[1], &(uLocal_93[1]), &(Local_94[1 /*7*/][0 /*3*/]), &(Local_94[1 /*7*/][1 /*3*/]), &(uLocal_95[0])) != 1)
  				{
  					if (uLocal_93[0] == 1 || uLocal_93[1] == 1)
  					{
  						func_316("N3TRUNK", -1);
  						iLocal_96 = 2;
  						iLocal_56 = 1;
  					}
  					else if (func_413())
  					{
  						func_316("N3WONKY", -1);
  						iLocal_96 = 3;
  						iLocal_56 = 1;
  					}
  					else
  					{
  						if (!iLocal_296)
  						{
  							func_316("N3FTRUNK", -1);
  							iLocal_296 = 1;
  						}
  						iLocal_96 = 5;
  						iLocal_56 = 1;
  					}
  				}
  			}
  			func_287();
  			iLocal_290 = 0;
  			break;
  		
  		case 1:
  			func_412();
  			if (iLocal_58 == 4)
  			{
  				func_405();
  			}
  			func_404();
  			func_287();
  			if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  			{
  				iLocal_56 = 2;
  				iLocal_57 = 0;
  			}
  			else if (!func_319(unk_0x9B0761B4C3EB8BC7(), Local_63, 250f, 1))
  			{
  				iLocal_56 = 2;
  				iLocal_57 = 2;
  			}
  			else if (!func_319(unk_0x9B0761B4C3EB8BC7(), Local_63, 50f, 1) && !iLocal_293)
  			{
  				func_321("N3LEAVECAR", 7500, 1);
  				iLocal_293 = 1;
  			}
  			else
  			{
  				switch (iLocal_96)
  				{
  					case 0:
  						if (!iLocal_60)
  						{
  							func_321("N3RTCAR", 7500, 1);
  							iLocal_60 = 1;
  						}
  						if (bLocal_294)
  						{
  							func_403();
  							iLocal_56 = 0;
  						}
  						break;
  					
  					case 1:
  					case 2:
  					case 3:
  					case 6:
  						break;
  					
  					case 5:
  						if (!iLocal_60 && (unk_0x578C4EF320340AF7() - iLocal_61) > 5000)
  						{
  							func_321("N3RTCAR", 7500, 1);
  							func_402(&uLocal_324);
  							iLocal_60 = 1;
  						}
  						if ((func_401(unk_0x9B0761B4C3EB8BC7(), unk_0x7EC595B99EA7C4B1(Local_63, Local_87), 0.8f) && unk_0xEEB37DB9533AA764(unk_0x9B0761B4C3EB8BC7())) && !((unk_0xCED6B5226244381C(unk_0x9B0761B4C3EB8BC7()) || unk_0xEC787E1D3B804A72(unk_0x9B0761B4C3EB8BC7())) || unk_0x12C99794D883929B(unk_0x9B0761B4C3EB8BC7())))
  						{
  							iLocal_56 = 2;
  							iLocal_57 = 1;
  							iLocal_283 = 2;
  						}
  						unk_0x0A985DBE2A5EEE65(Local_63, 1);
  						break;
  					
  					case 4:
  						if (unk_0xF3A639BEE7AADF55(Local_63) < 0.025f)
  						{
  							func_403();
  							iLocal_56 = 0;
  						}
  						break;
  					}
  			}
  			break;
  		
  		case 2:
  			unk_0xB80B2936A29B2666();
  			unk_0xD289B55B6AADBA10(1);
  			func_248(&uLocal_107);
  			switch (iLocal_57)
  			{
  				case 0:
  					if (bLocal_338)
  					{
  						iLocal_55 = 6;
  					}
  					else if (unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) > 0)
  					{
  						iLocal_55 = 11;
  					}
  					else
  					{
  						iLocal_55 = 4;
  					}
  					break;
  				
  				case 1:
  					uLocal_90[0] = unk_0xA88F9D7900961C97(unk_0x7EC595B99EA7C4B1(Local_63, Local_91[2 /*3*/]), Local_92[2 /*3*/], unk_0x090239DEAF625B17(Local_63, 2), 2, 19, 0, 4);
  					uLocal_90[1] = unk_0xA88F9D7900961C97(unk_0x7EC595B99EA7C4B1(Local_63, Local_91[3 /*3*/]), Local_92[3 /*3*/], unk_0x090239DEAF625B17(Local_63, 2), 2, 19, 0, 4);
  					iLocal_55 = 8;
  					break;
  				
  				case 2:
  					sLocal_378 = "N3FLEFT";
  					iLocal_55 = 13;
  					break;
  			}
  			iLocal_56 = 0;
  			break;
  	}
  }
  
  bool func_401(int iParam0, struct<3> Param1, float fParam2)
  {
  	return SYSTEM::VDIST2(unk_0x3E4D3CCC220BDFB1(iParam0, 1), Param1) <= (fParam2 * fParam2);
  }
  
  void func_402(var uParam0)
  {
  	if ((unk_0xFCBF95335DD16537(203) != 0 && *uParam0 != 1) && unk_0x6A5CC4A2C9D9ED8D())
  	{
  		*uParam0 = 1;
  	}
  }
  
  void func_403()
  {
  	if (func_235(Local_63))
  	{
  		uLocal_90[0] = unk_0xA88F9D7900961C97(unk_0x7EC595B99EA7C4B1(Local_63, Local_91[0 /*3*/]), Local_92[0 /*3*/], unk_0x090239DEAF625B17(Local_63, 2), 2, 19, 0, 4);
  		uLocal_90[1] = unk_0xA88F9D7900961C97(unk_0x7EC595B99EA7C4B1(Local_63, Local_91[1 /*3*/]), Local_92[1 /*3*/], unk_0x090239DEAF625B17(Local_63, 2), 2, 19, 0, 4);
  	}
  }
  
  void func_404()
  {
  	if (func_235(iLocal_68))
  	{
  		if (!unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  		{
  			switch (iLocal_290)
  			{
  				case 0:
  					iLocal_291 = (unk_0x578C4EF320340AF7() + unk_0x344C570D6F8700DF(6000, 12000));
  					iLocal_290 = 1;
  					break;
  				
  				case 1:
  					if (unk_0x578C4EF320340AF7() > iLocal_291 && !func_210())
  					{
  						func_286();
  						iLocal_290 = 2;
  					}
  					break;
  				
  				case 2:
  					if (iLocal_283 == 2)
  					{
  						iLocal_290 = 0;
  					}
  					break;
  				}
  			}
  	}
  }
  
  void func_405()
  {
  	func_287();
  	switch (iLocal_58)
  	{
  		case 0:
  			if (func_235(Local_63))
  			{
  				if (!func_401(Local_63, Local_84, Local_112[iLocal_114 /*8*/].f_2) && !bLocal_299)
  				{
  					iLocal_58 = 3;
  					if (iLocal_114 < 3)
  					{
  						func_286();
  						iLocal_280 = 0;
  					}
  					else
  					{
  						iLocal_280 = 1;
  					}
  				}
  				else
  				{
  					func_411();
  				}
  			}
  			break;
  		
  		case 3:
  			if (iLocal_280 == 0)
  			{
  				iLocal_280 = unk_0x046706CBB367B768(uLocal_281);
  			}
  			if (iLocal_114 < 4 && iLocal_280)
  			{
  				if (!bLocal_299)
  				{
  					if (iLocal_114 == 3)
  					{
  						if (!func_401(unk_0x9B0761B4C3EB8BC7(), Local_108, 150f))
  						{
  							if (func_280(&uLocal_115, Local_112[iLocal_114 /*8*/], Local_112[iLocal_114 /*8*/].f_1, 7, 0, 0, 0))
  							{
  								if (unk_0xAE06B9E39EBDE049(iLocal_68))
  								{
  									unk_0x7507DD84B14B951A(5, iLocal_68, "DINAPOLI");
  								}
  								if (iLocal_114 == 0)
  								{
  									unk_0xBE1CA603598C1441(2f, 5f, 0);
  								}
  								iLocal_58 = 4;
  							}
  						}
  					}
  					else if (func_280(&uLocal_115, Local_112[iLocal_114 /*8*/], Local_112[iLocal_114 /*8*/].f_1, 7, 0, 0, 0))
  					{
  						if (unk_0xAE06B9E39EBDE049(iLocal_68))
  						{
  							unk_0x7507DD84B14B951A(5, iLocal_68, "DINAPOLI");
  						}
  						func_286();
  						iLocal_58 = 4;
  					}
  				}
  				else
  				{
  					func_411();
  				}
  			}
  			else if (iLocal_114 >= 4)
  			{
  				iLocal_58 = 6;
  			}
  			break;
  		
  		case 4:
  			if (func_235(Local_63))
  			{
  				if (!unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  				{
  					if (!func_319(unk_0x9B0761B4C3EB8BC7(), Local_63, 15f, 1))
  					{
  						func_281();
  					}
  				}
  				if (!func_210())
  				{
  					bLocal_294 = true;
  					if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  					{
  						iLocal_282 = unk_0x578C4EF320340AF7();
  						iLocal_58 = 5;
  						iLocal_114++;
  					}
  				}
  			}
  			func_406(&uLocal_324, &uLocal_115, "NIGE3AU", &sLocal_325, &cLocal_331);
  			break;
  		
  		case 5:
  			if ((unk_0x578C4EF320340AF7() - iLocal_282) < 7500)
  			{
  				if (!bLocal_295)
  				{
  					func_316("N3REL1", -1);
  					bLocal_295 = true;
  				}
  			}
  			else if ((unk_0x578C4EF320340AF7() - iLocal_282) > 10000)
  			{
  				if (iLocal_114 < 4)
  				{
  					iLocal_58 = 0;
  				}
  				else
  				{
  					iLocal_58 = 6;
  				}
  			}
  			else
  			{
  				func_411();
  			}
  			break;
  		
  		case 6:
  			func_411();
  			break;
  	}
  }
  
  void func_406(var uParam0, var uParam1, char* sParam2, char* sParam3, char* sParam4)
  {
  	switch (*uParam0)
  	{
  		case 0:
  			break;
  		
  		case 1:
  			if (unk_0x6A5CC4A2C9D9ED8D())
  			{
  				*sParam3 = { func_410() };
  				*sParam4 = { func_409() };
  				if (unk_0xF005CCA4263DF67F(sParam4, "") || unk_0xF005CCA4263DF67F(sParam4, "NULL"))
  				{
  					*uParam0 = 0;
  				}
  				else
  				{
  					func_408();
  					*uParam0 = 2;
  				}
  			}
  			break;
  		
  		case 2:
  			if (!unk_0x6A5CC4A2C9D9ED8D())
  			{
  				if (unk_0x2F80DB5A41D045E6())
  				{
  					if (func_407(uParam1, sParam2, sParam3, sParam4, 8, 1, 0))
  					{
  						*uParam0 = 3;
  					}
  				}
  				else
  				{
  					*uParam0 = 4;
  				}
  			}
  			break;
  		
  		case 3:
  			if (!unk_0x2F80DB5A41D045E6() && unk_0x6A5CC4A2C9D9ED8D())
  			{
  				*sParam3 = { func_410() };
  				*sParam4 = { func_409() };
  				if (unk_0xF005CCA4263DF67F(sParam4, "") || unk_0xF005CCA4263DF67F(sParam4, "NULL"))
  				{
  				}
  				else
  				{
  					func_408();
  					*uParam0 = 4;
  				}
  			}
  			break;
  		
  		case 4:
  			if (!unk_0x6A5CC4A2C9D9ED8D() && func_407(uParam1, sParam2, sParam3, sParam4, 8, 0, 0))
  			{
  				*uParam0 = 0;
  			}
  			break;
  	}
  }
  
  bool func_407(var uParam0, char* sParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6)
  {
  	func_227(uParam0, 145, sParam1, iParam5, iParam6, 0);
  	if (iParam4 > 7)
  	{
  		if (iParam4 < 12)
  		{
  			iParam4 = 7;
  		}
  	}
  	Global_21012 = 0;
  	Global_21019 = 0;
  	Global_21014 = 0;
  	Global_21996 = 0;
  	Global_21998 = 0;
  	Global_22002 = 1;
  	StringCopy(&Global_22009, sParam3, 24);
  	Global_2621441 = 0;
  	return func_212(sParam2, iParam4, 0);
  }
  
  void func_408()
  {
  	Global_19871 = 0;
  	func_226();
  }
  
  struct<6> func_409()
  {
  	struct<6> Var0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	
  	StringCopy(&Var0, "NULL", 24);
  	if (Global_21005 == 4)
  	{
  		iVar1 = unk_0x68CB238A579603D3();
  		iVar1 = (iVar1 + Global_22015);
  		iVar2 = iVar1 + 1;
  		if (iVar2 > -1 && iVar1 > -1)
  		{
  			if (unk_0x3030AE9FCF1BC243(&(Global_19873[iVar2 /*6*/])))
  			{
  				return Global_19873[iVar2 /*6*/];
  			}
  			else
  			{
  				iVar3 = iVar2;
  				while (iVar3 < 70)
  				{
  					if (unk_0x3030AE9FCF1BC243(&(Global_19873[iVar3 /*6*/])))
  					{
  						return Global_19873[iVar3 /*6*/];
  						iVar3 = 70;
  					}
  					iVar3++;
  				}
  				return Var0;
  			}
  			return Global_19873[iVar1 /*6*/];
  		}
  		else
  		{
  			return Var0;
  		}
  	}
  	return Var0;
  }
  
  struct<6> func_410()
  {
  	struct<6> Var0;
  	
  	StringCopy(&Var0, "NULL", 24);
  	if (Global_21005 == 4)
  	{
  		return Global_20624;
  	}
  	return Var0;
  }
  
  void func_411()
  {
  	if (func_235(Local_63))
  	{
  		if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  		{
  			switch (iLocal_298)
  			{
  				case 0:
  					if ((unk_0x4162501391EDB9BF(Local_63) && !func_318("N3NORTH", 0, 0)) && !func_318("N3RAM", 0, 0))
  					{
  						iLocal_298 = 1;
  					}
  					break;
  				
  				case 1:
  					if (func_280(&uLocal_115, "NIGE3AU", "NIGEL3_FRND", 7, 0, 0, 0))
  					{
  						func_286();
  						bLocal_299 = true;
  						iLocal_298 = 2;
  					}
  					break;
  				
  				case 2:
  					if (!unk_0x6A5CC4A2C9D9ED8D())
  					{
  						bLocal_299 = false;
  						iLocal_300 = unk_0x578C4EF320340AF7();
  						iLocal_298 = 3;
  					}
  					break;
  				
  				case 3:
  					if ((unk_0x578C4EF320340AF7() - iLocal_300) > 8000)
  					{
  						iLocal_298 = 0;
  					}
  					break;
  				}
  			}
  	}
  }
  
  void func_412()
  {
  	if (!unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  	{
  		switch (iLocal_301)
  		{
  			case 0:
  				if (unk_0xCDF860E56BBCC6B4(Local_63, unk_0x9B0761B4C3EB8BC7(), 1))
  				{
  					if (func_319(Local_63, unk_0x9B0761B4C3EB8BC7(), 20f, 1))
  					{
  						iLocal_301 = 1;
  						iLocal_290 = 0;
  					}
  					unk_0xBB7976F6FB9C9DD2(Local_63);
  				}
  				break;
  			
  			case 1:
  				if (func_280(&uLocal_115, "NIGE3AU", "NIGEL3_SCRND", 7, 0, 0, 0))
  				{
  					iLocal_290 = 0;
  					func_286();
  					iLocal_301 = 2;
  				}
  				break;
  			
  			case 2:
  				if (!func_210())
  				{
  					iLocal_302 = unk_0x578C4EF320340AF7() + 3000;
  					iLocal_290 = 0;
  					iLocal_301 = 3;
  				}
  				break;
  			
  			case 3:
  				if (unk_0x578C4EF320340AF7() > iLocal_302)
  				{
  					iLocal_301 = 0;
  					unk_0xBB7976F6FB9C9DD2(Local_63);
  				}
  				break;
  			}
  	}
  }
  
  int func_413()
  {
  	float fVar0;
  	float fVar1;
  	
  	if (func_235(Local_63))
  	{
  		fVar0 = func_414(unk_0xFC9EBC94A5D19088(Local_63), 0f, 360f);
  		fVar1 = func_414(unk_0x6C485D1B1ECD4264(Local_63), 0f, 360f);
  		if ((fVar0 > fLocal_88 && fVar0 < (360f - fLocal_88)) || (fVar1 > fLocal_89 && fVar1 < (360f - fLocal_89)))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  float func_414(float fParam0, float fParam1, float fParam2)
  {
  	float fVar0;
  	
  	if (fParam1 == fParam2)
  	{
  		return fParam1;
  	}
  	fVar0 = (fParam2 - fParam1);
  	fParam0 = (fParam0 - (IntToFloat(SYSTEM::ROUND(((fParam0 - fParam1) / fVar0))) * fVar0));
  	if (fParam0 < fParam1)
  	{
  		fParam0 = (fParam0 + fVar0);
  	}
  	return fParam0;
  }
  
  int func_415()
  {
  	if (unk_0x2975580CCA617F3B(unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1) - Vector(40f, 40f, 40f), unk_0x3E4D3CCC220BDFB1(unk_0x9B0761B4C3EB8BC7(), 1) + Vector(40f, 40f, 40f)) || unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) > 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_416()
  {
  	switch (iLocal_56)
  	{
  		case 0:
  			if (unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) > 0)
  			{
  				func_321("N3LOSEWANT", 7500, 1);
  				func_402(&uLocal_324);
  				iLocal_56 = 1;
  			}
  			else
  			{
  				iLocal_56 = 2;
  			}
  			break;
  		
  		case 1:
  			if (unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) < 1)
  			{
  				iLocal_56 = 2;
  			}
  			else if (!unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  			{
  				iLocal_56 = 2;
  			}
  			func_411();
  			if (iLocal_58 == 4)
  			{
  				func_405();
  			}
  			break;
  		
  		case 2:
  			unk_0xB80B2936A29B2666();
  			func_248(&uLocal_107);
  			if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  			{
  				iLocal_55 = 4;
  			}
  			else
  			{
  				func_403();
  				iLocal_55 = 5;
  			}
  			iLocal_56 = 0;
  			break;
  	}
  }
  
  void func_417()
  {
  	switch (iLocal_56)
  	{
  		case 0:
  			if (!unk_0xAE06B9E39EBDE049(iLocal_68))
  			{
  				func_421();
  			}
  			else if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  			{
  				func_248(&uLocal_107);
  				if (unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) < 1)
  				{
  					uLocal_107 = func_420(Local_108, 5, 1);
  				}
  				iLocal_56 = 1;
  			}
  			break;
  		
  		case 1:
  			if (iLocal_59 < 1)
  			{
  				func_321("N3DRIVE", 7500, 1);
  				func_402(&uLocal_324);
  				iLocal_59++;
  			}
  			func_405();
  			if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  			{
  				if (unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) > 0)
  				{
  					iLocal_56 = 2;
  				}
  				else if (unk_0xC2169C00B643278B(Local_63, Local_108, 6f, 6f, 2f, 1, 1, 0))
  				{
  					iLocal_56 = 2;
  				}
  				else if (bLocal_111)
  				{
  					if (func_401(Local_63, Local_108, 300f))
  					{
  						unk_0xD77467CC38DD0DE2(0);
  						bLocal_111 = false;
  					}
  				}
  			}
  			else
  			{
  				iLocal_56 = 2;
  			}
  			break;
  		
  		case 2:
  			unk_0xB80B2936A29B2666();
  			func_248(&uLocal_107);
  			if (!unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  			{
  				iLocal_55 = 5;
  				func_418();
  				func_403();
  				if (unk_0xCDF860E56BBCC6B4(Local_63, unk_0x9B0761B4C3EB8BC7(), 1))
  				{
  					unk_0xBB7976F6FB9C9DD2(Local_63);
  				}
  			}
  			else if (unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) > 0)
  			{
  				iLocal_55 = 11;
  			}
  			else if (unk_0xC2169C00B643278B(Local_63, Local_108, 6f, 6f, 2f, 0, 1, 0))
  			{
  				iLocal_55 = 6;
  				unk_0x78FCB2E22C41B9D5(joaat("freightcar"));
  				unk_0x78FCB2E22C41B9D5(joaat("freightcont1"));
  				unk_0x78FCB2E22C41B9D5(joaat("freightcont2"));
  				unk_0x78FCB2E22C41B9D5(joaat("s_m_m_trucker_01"));
  				unk_0x80250B8368A4E611(iLocal_68, 0, 0);
  			}
  			iLocal_56 = 0;
  			break;
  	}
  }
  
  void func_418()
  {
  	switch (iLocal_58)
  	{
  		case 0:
  			break;
  		
  		case 3:
  			if (unk_0x6A5CC4A2C9D9ED8D() && iLocal_113)
  			{
  				func_419(&uLocal_324);
  				func_398();
  			}
  			break;
  		
  		case 4:
  			if (unk_0x6A5CC4A2C9D9ED8D() && iLocal_113)
  			{
  				func_419(&uLocal_324);
  				func_398();
  			}
  			break;
  		
  		case 5:
  			break;
  		
  		case 6:
  			break;
  	}
  }
  
  void func_419(var uParam0)
  {
  	if (*uParam0 != 0)
  	{
  		*uParam0 = 0;
  	}
  }
  
  int func_420(struct<3> Param0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = unk_0x6820C712C1DD618A(Param0);
  	unk_0xE346A71235BB8065(iVar0, iParam1);
  	unk_0xFA81E0FBD7F5ACA0(iVar0, 1f);
  	unk_0x72BEFB9451782F60(iVar0, iParam2);
  	return iVar0;
  }
  
  void func_421()
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	float fVar2;
  	
  	if (unk_0x7D167B9A0CCDA347(joaat("u_m_m_aldinapoli")))
  	{
  		if (func_235(Local_63))
  		{
  			iLocal_68 = unk_0xB3116B49FE00E2F1(26, joaat("u_m_m_aldinapoli"), -59.7094f, -1330.129f, 32.1963f, 0, 1, 1);
  			unk_0x14EFF93E9B692DAD(iLocal_68, "NIGEL3_CELEB");
  			unk_0x45F588C0DD767737(iLocal_68, 4, 1, 0, 0);
  			unk_0x4E65320BC9AD521C(iLocal_68, 1);
  			Var0 = { unk_0x7EC595B99EA7C4B1(Local_63, -0.2f, -1.8f, -1f) };
  			fVar2 = (-90f + unk_0xEF7858F25585F853(Local_63));
  			Var1 = { 0f, 0f, fVar2 };
  			unk_0xCBF81D3222C77066(iLocal_68, Var0, 0, 0, 1);
  			unk_0xC82085403E46A869(iLocal_68, Var1, 2, 1);
  			unk_0xF8A652CE310FFC53(iLocal_68, Local_63, 0, 0.2f, -1.8f, 0f, 0f, 0f, 90f, 0, 0, 0, 0, 2, 1);
  			unk_0x80250B8368A4E611(iLocal_68, 0, 0);
  			func_228(&uLocal_115, 5, iLocal_68, "DINAPOLI", 0, 1);
  			iLocal_283 = 2;
  		}
  	}
  }
  
  void func_422()
  {
  	switch (iLocal_56)
  	{
  		case 0:
  			if (!unk_0xAE06B9E39EBDE049(iLocal_68))
  			{
  				func_421();
  			}
  			if (unk_0xF5EE205091CE6DB2(0))
  			{
  				if (!iLocal_292)
  				{
  					unk_0xBE1CA603598C1441(0f, 10f, 1);
  					func_321("N3GETCAR", 7500, 1);
  					iLocal_292 = 1;
  				}
  				func_248(&uLocal_107);
  				if (func_235(Local_63))
  				{
  					uLocal_107 = func_322(Local_63, 1, 5);
  				}
  				iLocal_290 = 0;
  				iLocal_56 = 1;
  			}
  			break;
  		
  		case 1:
  			if (!unk_0xAE06B9E39EBDE049(iLocal_68))
  			{
  				func_421();
  			}
  			else
  			{
  				func_404();
  				func_287();
  			}
  			if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  			{
  				iLocal_56 = 2;
  			}
  			else if (!func_319(unk_0x9B0761B4C3EB8BC7(), Local_63, 200f, 1))
  			{
  				iLocal_56 = 2;
  			}
  			else if (!func_319(unk_0x9B0761B4C3EB8BC7(), Local_63, 50f, 1))
  			{
  				if (!iLocal_293)
  				{
  					func_321("N3LEAVECAR", 7500, 1);
  					iLocal_293 = 1;
  				}
  			}
  			break;
  		
  		case 2:
  			unk_0xB80B2936A29B2666();
  			func_248(&uLocal_107);
  			if (!unk_0xAE06B9E39EBDE049(iLocal_68))
  			{
  				func_421();
  			}
  			if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), Local_63, 0))
  			{
  				unk_0x076EA622594A949E(2);
  				if (unk_0x1A3D0DF92BF7D8C4(unk_0x460153A63B9477BC()) > 0)
  				{
  					iLocal_55 = 11;
  				}
  				else
  				{
  					iLocal_55 = 4;
  				}
  			}
  			else if (!func_319(unk_0x9B0761B4C3EB8BC7(), Local_63, 200f, 1))
  			{
  				iLocal_55 = 13;
  				sLocal_378 = "N3FLEFT";
  			}
  			iLocal_56 = 0;
  			break;
  	}
  }
  
  void func_423()
  {
  	switch (iLocal_56)
  	{
  		case 0:
  			func_487("NMT_3_RCM", 0);
  			if (func_480(1, 1093140480, 0))
  			{
  				func_479(1);
  				if (func_5(0))
  				{
  					func_478(1, 1, 1);
  				}
  				if (func_235(iLocal_69))
  				{
  					unk_0xFA3AB7AE2A01375E(iLocal_69, "Nigel", 0, 0, 0);
  				}
  				else
  				{
  					unk_0xFA3AB7AE2A01375E(iLocal_69, "Nigel", 2, joaat("ig_nigel"), 0);
  				}
  				if (func_235(iLocal_70))
  				{
  					unk_0xFA3AB7AE2A01375E(iLocal_70, "MRS_Thornhill", 0, joaat("ig_mrs_thornhill"), 0);
  				}
  				else
  				{
  					unk_0xFA3AB7AE2A01375E(iLocal_70, "MRS_Thornhill", 2, joaat("ig_mrs_thornhill"), 0);
  				}
  				if (!unk_0xAE06B9E39EBDE049(iLocal_83))
  				{
  					iLocal_83 = unk_0x5BBA0055476D633A(-45.93f, -1290.67f, 29.67f, 10f, joaat("v_ilev_gc_door01"), 1, 0, 1);
  				}
  				func_477();
  				unk_0x182DD1CBC93CF936(1);
  				unk_0x6EEEEDB625F825CC(0);
  				SYSTEM::WAIT(0);
  				func_441();
  				func_236(-44.75f, -1288.67f, 28.21f, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
  				unk_0xF27E737981AFB47D(20.6534f, -1302.867f, 28.0513f, 15f, 0, 0, 0, 0, 0, 0);
  				if (unk_0xAE06B9E39EBDE049(Local_54.f_35[0]))
  				{
  					func_439(&(Local_54.f_35[0]));
  					unk_0xCFF81C0C8D63E62E(Local_63.f_2, 10f);
  				}
  				if (!unk_0xAE06B9E39EBDE049(Local_63))
  				{
  					func_435(Local_63.f_2, Local_63.f_5, 1);
  				}
  				unk_0x9D0409960877E14C(Local_63, 0);
  				if (func_235(iLocal_83))
  				{
  					unk_0x80250B8368A4E611(iLocal_83, 0, 0);
  				}
  				func_428(&Local_54, 0, 0, 0);
  				iLocal_56 = 1;
  			}
  			break;
  		
  		case 1:
  			if (!unk_0xAE06B9E39EBDE049(iLocal_70))
  			{
  				if (unk_0xAE06B9E39EBDE049(unk_0x0057F696C72889AD("MRS_Thornhill", 0)))
  				{
  					iLocal_70 = unk_0x9048E8838E822F21(unk_0x0057F696C72889AD("MRS_Thornhill", 0));
  				}
  			}
  			else if (iLocal_76 && unk_0xC614DDE265D18415(sLocal_72))
  			{
  				if (unk_0x10447A1CD8175FC0("MRS_Thornhill", joaat("ig_mrs_thornhill")))
  				{
  					func_427();
  				}
  			}
  			if (!unk_0xAE06B9E39EBDE049(iLocal_69))
  			{
  				if (unk_0xAE06B9E39EBDE049(unk_0x0057F696C72889AD("Nigel", 0)))
  				{
  					iLocal_69 = unk_0x9048E8838E822F21(unk_0x0057F696C72889AD("Nigel", 0));
  				}
  			}
  			else if (iLocal_74 && unk_0xC614DDE265D18415(sLocal_72))
  			{
  				if (unk_0x10447A1CD8175FC0("Nigel", joaat("ig_nigel")))
  				{
  					func_426();
  				}
  			}
  			if (unk_0xAE06B9E39EBDE049(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0x10447A1CD8175FC0("Trevor", joaat("player_two")))
  				{
  					unk_0x03D382CB0B44E2FC(unk_0x9B0761B4C3EB8BC7(), -43.6328f, -1289.294f, 28.0752f, 0, 0, 0, 1);
  				}
  			}
  			if (unk_0x59B0C38F9A3B22DB(0))
  			{
  				unk_0x62BA5ABF1BBE6186();
  				unk_0x7965943E39128B42(0f, 1065353216);
  				unk_0x4C4FC7841A5FB983(0f);
  			}
  			if (unk_0xB827EC2F70250BF7())
  			{
  				if (func_235(iLocal_83))
  				{
  					unk_0x80250B8368A4E611(iLocal_83, 1, 0);
  					func_425(&iLocal_83, 0);
  				}
  				func_585(1, 1, 1, 1);
  				func_424(&Local_54, 0, 1);
  				iLocal_56 = 2;
  			}
  			else if (func_235(iLocal_83) && unk_0x9BEEC39E5B3F1C3C() > 45000)
  			{
  				unk_0x80250B8368A4E611(iLocal_83, 1, 0);
  				func_425(&iLocal_83, 0);
  			}
  			break;
  		
  		case 2:
  			if (func_235(Local_63))
  			{
  				unk_0x5DC21979EC6C531F(Local_63, 1);
  				unk_0x7C4F70F41134C357(Local_63);
  			}
  			unk_0x74528AC0906CBABE(joaat("ig_nigel"));
  			unk_0x74528AC0906CBABE(joaat("ig_mrs_thornhill"));
  			iLocal_58 = 0;
  			iLocal_56 = 0;
  			iLocal_55 = 3;
  			func_479(0);
  			break;
  	}
  }
  
  void func_424(var uParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 6)
  	{
  		if (func_235(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_235(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_235(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);
  		}
  	}
  }
  
  void func_425(int iParam0, bool bParam1)
  {
  	if (unk_0xAE06B9E39EBDE049(*iParam0))
  	{
  		if (unk_0x8E805E09B82CCE5F(*iParam0))
  		{
  			unk_0x1F8106DB8796859F(*iParam0, 1, 1);
  		}
  		if (!bParam1)
  		{
  			unk_0x95178967C65CAD85(iParam0);
  		}
  		else
  		{
  			unk_0x274BB62CC228E22A(*iParam0);
  		}
  	}
  }
  
  void func_426()
  {
  	if (func_235(iLocal_69))
  	{
  		unk_0xCBF81D3222C77066(iLocal_69, -44.83f, -1289.11f, 29.17f, 0, 0, 1);
  		unk_0x756D74A3EF0AB788(iLocal_69, sLocal_72, sLocal_73, 1000f, -16f, -1, 1, 0, 0, 0, 0);
  		unk_0x1322CA891C5DF18A(iLocal_69, 1, 0);
  		unk_0xA785552633ED203B(iLocal_69, unk_0x9B0761B4C3EB8BC7(), -1, 0, 2);
  		unk_0xCBA6B2B569DCAFD8(iLocal_69, 1);
  		iLocal_74 = 0;
  	}
  }
  
  void func_427()
  {
  	if (func_235(iLocal_70))
  	{
  		unk_0xCBF81D3222C77066(iLocal_70, -45f, -1289.83f, 29.177f, 0, 0, 1);
  		unk_0x756D74A3EF0AB788(iLocal_70, sLocal_72, sLocal_75, 1000f, -16f, -1, 1, 0, 0, 0, 0);
  		unk_0x1322CA891C5DF18A(iLocal_70, 1, 0);
  		unk_0xA785552633ED203B(iLocal_70, unk_0x9B0761B4C3EB8BC7(), -1, 0, 2);
  		unk_0xCBA6B2B569DCAFD8(iLocal_70, 1);
  		iLocal_71 = unk_0x79CC07752E7432A1(joaat("prop_ld_handbag_s"), -45f, -1289.83f, 49.177f, 1, 1, 0);
  		unk_0xF8A652CE310FFC53(iLocal_71, iLocal_70, unk_0xE6B87C42793036AA(iLocal_70, 64729), Local_77, Local_78, 0, 0, 0, 0, 2, 1);
  		iLocal_76 = 0;
  	}
  }
  
  void func_428(var uParam0, int iParam1, bool bParam2, bool bParam3)
  {
  	func_433(uParam0, iParam1);
  	func_431(uParam0, bParam2);
  	func_429(uParam0, bParam3);
  }
  
  void func_429(var uParam0, bool bParam1)
  {
  	func_430(&(uParam0->f_41), bParam1);
  }
  
  void func_430(var uParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 <= (*uParam0 - 1))
  	{
  		if (bParam1)
  		{
  			func_205(uParam0[iVar0]);
  		}
  		else
  		{
  			func_425(uParam0[iVar0], 0);
  		}
  		iVar0++;
  	}
  }
  
  void func_431(var uParam0, bool bParam1)
  {
  	func_432(&(uParam0->f_35), bParam1);
  }
  
  void func_432(var uParam0, bool bParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 <= (*uParam0 - 1))
  	{
  		if (bParam1)
  		{
  			func_439(uParam0[iVar0]);
  		}
  		else
  		{
  			func_207(uParam0[iVar0]);
  		}
  		iVar0++;
  	}
  }
  
  void func_433(var uParam0, int iParam1)
  {
  	func_434(&(uParam0->f_28), iParam1);
  }
  
  void func_434(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 <= (*uParam0 - 1))
  	{
  		if (iParam1 == 1)
  		{
  			func_581(uParam0[iVar0]);
  		}
  		else
  		{
  			func_203(uParam0[iVar0], 0, 1, 0);
  		}
  		iVar0++;
  	}
  }
  
  void func_435(struct<3> Param0, float fParam1, int iParam2)
  {
  	if (unk_0x7D167B9A0CCDA347(Local_63.f_1))
  	{
  		func_437(&Local_63, Param0, fParam1, iParam2, 0);
  		unk_0xB11D151E210D4FAC(Local_63, 1084227584);
  		unk_0x410A1E7AD7D5C774(Local_63.f_1, 1);
  		unk_0x96189C0E26D4F3D3(Local_63, 0);
  		unk_0x430613D76B5175B8(Local_63, 0);
  		unk_0x494ACC4552B7881B(Local_63, 1);
  		unk_0x9D0409960877E14C(Local_63, 0);
  		func_436(Local_63, 0);
  	}
  }
  
  void func_436(var uParam0, int iParam1)
  {
  	Global_98955.f_22[iParam1] = uParam0;
  }
  
  int func_437(var uParam0, struct<3> Param1, var uParam2, int iParam3, int iParam4)
  {
  	unk_0x78FCB2E22C41B9D5(iLocal_41);
  	if (iParam4 == 1)
  	{
  		while (!unk_0x7D167B9A0CCDA347(iLocal_41))
  		{
  			SYSTEM::WAIT(0);
  		}
  	}
  	else if (!unk_0x7D167B9A0CCDA347(iLocal_41))
  	{
  		return 0;
  	}
  	func_438(uParam0, iLocal_41, Param1, uParam2);
  	if (func_235(*uParam0))
  	{
  		unk_0x38633C69DE516059(*uParam0, 65, 0);
  		unk_0x4C5D57B67B567ADC(*uParam0, 5, 0);
  		unk_0xC29A9E1088D83B1B(*uParam0, "28BNT310");
  		unk_0xE704D9F37B4C2203(*uParam0, 0);
  		if (iParam3 == 1)
  		{
  			unk_0x5DC21979EC6C531F(*uParam0, 10);
  		}
  	}
  	unk_0x74528AC0906CBABE(iLocal_41);
  	return 1;
  }
  
  void func_438(var uParam0, int iParam1, struct<3> Param2, var uParam3)
  {
  	func_439(uParam0);
  	*uParam0 = unk_0xCE4780E24AFDFBF9(iParam1, Param2, uParam3, 1, 1, 0);
  	if (unk_0xAE06B9E39EBDE049(*uParam0))
  	{
  		unk_0xB11D151E210D4FAC(*uParam0, 1084227584);
  		unk_0x697DA7132EE43ABC(*uParam0, 1000, 0);
  	}
  }
  
  void func_439(int iParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(*iParam0))
  	{
  		if (!unk_0x1758275D343D5BA3(*iParam0))
  		{
  			unk_0x4F3C4F457D44BB0F(*iParam0, 1, 0);
  		}
  		if (func_440(*iParam0))
  		{
  			if (unk_0x1758275D343D5BA3(*iParam0) && unk_0x1D2A3118784C0272(*iParam0, 1))
  			{
  				if (func_235(unk_0x9B0761B4C3EB8BC7()))
  				{
  					if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), *iParam0, 0))
  					{
  						unk_0xE730EAF558C97567(iParam0);
  						return;
  					}
  				}
  				unk_0x03A2522C845CFAC6(iParam0);
  			}
  		}
  		else
  		{
  			if (func_235(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), *iParam0, 0))
  				{
  					unk_0xE730EAF558C97567(iParam0);
  					return;
  				}
  			}
  			unk_0x03A2522C845CFAC6(iParam0);
  		}
  	}
  }
  
  int func_440(int iParam0)
  {
  	if (func_235(uParam0))
  	{
  		if (unk_0x80FF6C016CDB0FAF(uParam0, 0))
  		{
  			if (!unk_0x0922C2E075A5F18C(iParam0))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  void func_441()
  {
  	func_470(-40.74942f, -1294.584f, 27.25115f, -40.96418f, -1284.257f, 35.23348f, 9.5f, -49.09f, -1260.03f, 29.26f, -87.89f, 5f, 14f, 5f, 1, 1, 1, 0, 0);
  	func_470(-40.74942f, -1294.584f, 27.25115f, -40.68179f, -1302.86f, 35.00979f, 9.5f, -42.69f, -1314.36f, 28.06f, 0.9f, 5f, 14f, 5f, 1, 1, 1, 0, 0);
  	func_442(0f, 0f, 0f, 0f, 1, 2);
  	unk_0x773B9DEB93E81B2F(-39.5317f, -1257.184f, 28.2361f, 8f, 0);
  }
  
  void func_442(struct<3> Param0, float fParam1, int iParam2, int iParam3)
  {
  	struct<3> Var0;
  	var uVar1;
  	
  	if (unk_0xAE06B9E39EBDE049(Global_102423.f_4))
  	{
  		if (unk_0x80FF6C016CDB0FAF(Global_102423.f_4, 0))
  		{
  			if (func_469(24) != Global_102423.f_4)
  			{
  				if (iParam2 == 1)
  				{
  					if (func_466(unk_0x3E4D3CCC220BDFB1(Global_102423.f_4, 1), iParam3, &Var0, &uVar1))
  					{
  						Param0 = { Var0 };
  						fParam1 = uVar1;
  					}
  				}
  				func_443(Global_102423.f_4, Param0, fParam1, 24, 0);
  			}
  		}
  	}
  }
  
  void func_443(int iParam0, struct<3> Param1, float fParam2, int iParam3, bool bParam4)
  {
  	struct<60> Var0;
  	
  	if (unk_0xAE06B9E39EBDE049(iParam0) && unk_0x80FF6C016CDB0FAF(iParam0, 0))
  	{
  		if (iParam3 != 24 && iParam3 != 25)
  		{
  			return;
  		}
  		if (iParam3 == 24)
  		{
  			if (unk_0xAE06B9E39EBDE049(Global_75654.f_484[25]) && unk_0x80FF6C016CDB0FAF(Global_75654.f_484[25], 0))
  			{
  				if (Global_75654.f_484[25] == iParam0)
  				{
  					return;
  				}
  			}
  		}
  		if (!bParam4)
  		{
  			if ((unk_0x7A3E3E24F50F2AAB(iParam0) || unk_0x36FE6D3220816ADA(iParam0) == joaat("bus")) || unk_0x36FE6D3220816ADA(iParam0) == joaat("tourbus"))
  			{
  				return;
  			}
  		}
  		func_465(iParam3);
  		Var0.f_9 = 49;
  		Var0.f_59 = 2;
  		func_336(iParam0, &Var0);
  		if (func_359(Param1, 0f, 0f, 0f, 0))
  		{
  			Param1 = { unk_0x3E4D3CCC220BDFB1(iParam0, 1) };
  			fParam2 = unk_0xEF7858F25585F853(iParam0);
  		}
  		if (iParam3 == 24)
  		{
  			if (unk_0x856D5567211886A2(unk_0x6C5C6B207AA78253()) != joaat("vehicle_gen_controller"))
  			{
  				Global_76642 = unk_0x856D5567211886A2(unk_0x6C5C6B207AA78253());
  			}
  		}
  		func_462(iParam3, &Var0, Param1, fParam2, func_332(iParam0));
  		func_444(iParam3, iParam0, 0);
  	}
  }
  
  void func_444(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (!func_461(&(Global_75654.f_555[0 /*21*/]), iParam0))
  	{
  		return;
  	}
  	if (!unk_0xCE990E643CD9D0E5(Global_75654.f_555[0 /*21*/].f_9, 12) && !unk_0xCE990E643CD9D0E5(Global_75654.f_555[0 /*21*/].f_9, 10))
  	{
  		if (Global_75654.f_555[0 /*21*/].f_4 != unk_0x36FE6D3220816ADA(iParam1))
  		{
  			return;
  		}
  	}
  	if (Global_76561 != -1 && Global_76561 != iParam0)
  	{
  		return;
  	}
  	if (unk_0xAE06B9E39EBDE049(iParam1))
  	{
  		if (unk_0x80FF6C016CDB0FAF(iParam1, 0))
  		{
  			if (!unk_0x1758275D343D5BA3(iParam1))
  			{
  				unk_0x4F3C4F457D44BB0F(iParam1, 1, 1);
  			}
  			if (iParam0 == 24)
  			{
  				Global_111858.f_32745.f_4801 = func_382();
  			}
  			if (iParam1 != Global_75654.f_139[iParam0])
  			{
  				if (iParam0 == 24)
  				{
  					iVar0 = func_469(iParam0);
  					if ((unk_0xAE06B9E39EBDE049(iVar0) && unk_0x80FF6C016CDB0FAF(iVar0, 0)) && iParam1 != iVar0)
  					{
  						func_445(iVar0, 145);
  					}
  				}
  				Global_76560 = iParam1;
  				Global_76561 = iParam0;
  				Global_76562 = iParam2;
  			}
  		}
  	}
  }
  
  void func_445(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (!func_446(iParam0))
  	{
  		return;
  	}
  	if ((iParam1 != 0 && iParam1 != 1) && iParam1 != 2)
  	{
  		iVar0 = unk_0x10D3F7E169A49C44(iParam0, -1, 0);
  		if (!unk_0xAE06B9E39EBDE049(iVar0))
  		{
  			iVar0 = unk_0x37022B7FE1589189(iParam0, -1);
  		}
  		if (unk_0xAE06B9E39EBDE049(iVar0) && !unk_0x5AEB5DDFFAD43CA5(iVar0))
  		{
  			if (unk_0x36FE6D3220816ADA(iVar0) == joaat("player_zero"))
  			{
  				iParam1 = 0;
  			}
  			else if (unk_0x36FE6D3220816ADA(iVar0) == joaat("player_one"))
  			{
  				iParam1 = 1;
  			}
  			else if (unk_0x36FE6D3220816ADA(iVar0) == joaat("player_two"))
  			{
  				iParam1 = 2;
  			}
  		}
  		if ((iParam1 != 0 && iParam1 != 1) && iParam1 != 2)
  		{
  			iParam1 = Global_111858.f_2359.f_539.f_4321;
  		}
  	}
  	iVar1 = 0;
  	while (iVar1 < 3)
  	{
  		iVar2 = 0;
  		while (iVar2 < 2)
  		{
  			if (unk_0x36FE6D3220816ADA(iParam0) == Global_111858.f_32745.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_66)
  			{
  				if (!unk_0x7BCC91F3C1CF24E8(&(Global_111858.f_32745.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_1)))
  				{
  					if (unk_0xF005CCA4263DF67F(unk_0x6984AA4EC2FF9734(iParam0), &(Global_111858.f_32745.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_1)))
  					{
  						Global_111858.f_32745.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_66 = 0;
  						Global_111858.f_32745.f_5592[iVar1] = iVar2;
  					}
  				}
  			}
  			iVar2++;
  		}
  		iVar1++;
  	}
  	iVar1 = 0;
  	while (iVar1 < 3)
  	{
  		if (unk_0x36FE6D3220816ADA(iParam0) == Global_111858.f_32745.f_5600[iVar1 /*78*/].f_66)
  		{
  			if (!unk_0x7BCC91F3C1CF24E8(&(Global_111858.f_32745.f_5600[iVar1 /*78*/].f_1)))
  			{
  				if (unk_0xF005CCA4263DF67F(unk_0x6984AA4EC2FF9734(iParam0), &(Global_111858.f_32745.f_5600[iVar1 /*78*/].f_1)))
  				{
  					Global_111858.f_32745.f_5600[iVar1 /*78*/].f_66 = 0;
  				}
  			}
  		}
  		iVar1++;
  	}
  	Global_111858.f_32745.f_5590 = iParam1;
  	Global_76559 = iParam0;
  	Global_111858.f_32745.f_5588 = 1;
  	func_336(iParam0, &(Global_111858.f_32745.f_5510));
  }
  
  int func_446(int iParam0)
  {
  	if ((((((((((!unk_0xAE06B9E39EBDE049(iParam0) || !unk_0x80FF6C016CDB0FAF(iParam0, 0)) || func_341(iParam0, 0, 0)) || func_341(iParam0, 1, 0)) || func_341(iParam0, 2, 0)) || func_332(iParam0) != 145) || func_460(iParam0)) || func_459(iParam0)) || func_458(iParam0)) || func_457(iParam0)) || !func_447(unk_0x36FE6D3220816ADA(iParam0)))
  	{
  		if (func_459(iParam0))
  		{
  		}
  		if (func_459(iParam0))
  		{
  		}
  		if (func_341(iParam0, 0, 0))
  		{
  		}
  		if (func_341(iParam0, 1, 0))
  		{
  		}
  		if (func_341(iParam0, 2, 0))
  		{
  		}
  		if (func_332(iParam0) != 145)
  		{
  		}
  		return 0;
  	}
  	return 1;
  }
  
  int func_447(int iParam0)
  {
  	if (iParam0 == 0)
  	{
  		return 0;
  	}
  	if (!func_448(iParam0, 0))
  	{
  		return 0;
  	}
  	if (((unk_0x5874D60325749F00(iParam0) || unk_0xF9C3E2B9AA9E2294(iParam0)) || unk_0x442D6659150AF4B3(iParam0)) || unk_0xCA6AF782C906AC86(iParam0))
  	{
  		return 0;
  	}
  	switch (iParam0)
  	{
  		case joaat("bus"):
  		case joaat("stretch"):
  		case joaat("barracks"):
  		case joaat("armytanker"):
  		case joaat("rhino"):
  		case joaat("armytrailer"):
  		case joaat("barracks2"):
  		case joaat("flatbed"):
  		case joaat("ripley"):
  		case joaat("towtruck"):
  		case joaat("towtruck2"):
  		case joaat("airbus"):
  		case joaat("coach"):
  		case joaat("rentalbus"):
  		case joaat("tourbus"):
  		case joaat("firetruk"):
  		case joaat("pbus"):
  		case joaat("trash"):
  		case joaat("benson"):
  		case joaat("boattrailer"):
  		case joaat("biff"):
  		case joaat("hauler"):
  		case joaat("docktrailer"):
  		case joaat("phantom"):
  		case joaat("pounder"):
  		case joaat("tractor2"):
  		case joaat("bulldozer"):
  		case joaat("handler"):
  		case joaat("tiptruck"):
  		case joaat("cutter"):
  		case joaat("dump"):
  		case joaat("mixer"):
  		case joaat("mixer2"):
  		case joaat("rubble"):
  		case joaat("scrap"):
  		case joaat("tiptruck2"):
  		case joaat("camper"):
  		case joaat("taco"):
  		case joaat("boxville"):
  		case joaat("boxville2"):
  		case joaat("boxville3"):
  		case joaat("journey"):
  		case joaat("mule"):
  		case joaat("mule2"):
  		case joaat("police"):
  		case joaat("police2"):
  		case joaat("police3"):
  		case joaat("police4"):
  		case joaat("policeb"):
  		case joaat("policeold1"):
  		case joaat("policeold2"):
  		case joaat("policet"):
  		case joaat("taxi"):
  		case joaat("submersible"):
  		case joaat("submersible2"):
  		case joaat("monster"):
  			return 0;
  			break;
  	}
  	return 1;
  }
  
  int func_448(int iParam0, bool bParam1)
  {
  	int iVar0;
  	struct<2> Var1;
  	
  	if (iParam0 == 0)
  	{
  		return 0;
  	}
  	if (!unk_0x653AAFF7E08B7D39(iParam0))
  	{
  		return 0;
  	}
  	if (((((iParam0 == joaat("dominator2") && !unk_0x25DDB354A40FFCDB()) || (iParam0 == joaat("buffalo3") && !unk_0x25DDB354A40FFCDB())) || (iParam0 == joaat("gauntlet2") && !unk_0x25DDB354A40FFCDB())) || iParam0 == joaat("blimp2")) || (iParam0 == joaat("stalion2") && !unk_0x25DDB354A40FFCDB()))
  	{
  		if (!func_456())
  		{
  			return 0;
  		}
  	}
  	else
  	{
  		iVar0 = 0;
  		while (iVar0 < unk_0x81BDFC133086F533())
  		{
  			if (unk_0xA2F4B5E51CE10D19(iVar0, &Var1))
  			{
  				if (iParam0 == Var1.f_1)
  				{
  					if (unk_0x14AC70FD8926649E(Var1))
  					{
  						return 0;
  					}
  				}
  			}
  			iVar0++;
  		}
  	}
  	if (iParam0 == joaat("blimp"))
  	{
  		if ((((!func_455() && !func_454()) && !func_453()) && !func_452()) && !func_456())
  		{
  			return 0;
  		}
  	}
  	if ((iParam0 == joaat("hotknife") || iParam0 == joaat("carbonrs")) || iParam0 == joaat("khamelion"))
  	{
  		if ((unk_0xC6C08C02733D02C8() || unk_0xF8EDFF98A9C94C74()) || unk_0xDCA0815D900F27F8())
  		{
  		}
  		else if (!func_453())
  		{
  			return 0;
  		}
  	}
  	if (bParam1)
  	{
  		if (!func_451(iParam0))
  		{
  			return 0;
  		}
  	}
  	if (!func_449(iParam0))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_449(int iParam0)
  {
  	int iVar0;
  	var uVar1;
  	char cVar2[64];
  	
  	if (!func_450())
  	{
  		return 1;
  	}
  	unk_0x69DA2BD216554CB9(&iVar0, &uVar1);
  	if (iVar0 == 4)
  	{
  		return 1;
  	}
  	switch (iParam0)
  	{
  		case joaat("dune4"):
  			StringCopy(&cVar2, "VE_DUNE4_t0_v3", 64);
  			break;
  		
  		case joaat("voltic2"):
  			StringCopy(&cVar2, "VE_VOLTIC2_t0_v3", 64);
  			break;
  		
  		case joaat("ruiner2"):
  			StringCopy(&cVar2, "VE_RUINER2_t0_v3", 64);
  			break;
  		
  		case joaat("phantom2"):
  			StringCopy(&cVar2, "VE_PHANTOM2_t0_v3", 64);
  			break;
  		
  		case joaat("technical2"):
  			StringCopy(&cVar2, "VE_TECHNICAL2_t0_v3", 64);
  			break;
  		
  		case joaat("boxville5"):
  			StringCopy(&cVar2, "VE_BOXVILLE5_t0_v3", 64);
  			break;
  		
  		case joaat("wastelander"):
  			StringCopy(&cVar2, "VE_WASTELANDER_t0_v3", 64);
  			break;
  		
  		case joaat("blazer5"):
  			StringCopy(&cVar2, "VE_BLAZER5_t0_v3", 64);
  			break;
  		
  		default:
  			return 1;
  			break;
  	}
  	if (!unk_0x18A09013B66E9BB4(&cVar2))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_450()
  {
  	if (unk_0xF8EDFF98A9C94C74())
  	{
  		return unk_0xC5AA3415F982DC6C();
  	}
  	return 0;
  }
  
  int func_451(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (Global_2515213)
  	{
  		return 1;
  	}
  	iVar0 = 1;
  	iVar1 = unk_0x5A002C4821A13338();
  	if (iParam0 == joaat("btype3"))
  	{
  		if ((!Global_262145.f_6600 && !Global_262145.f_12930) && iVar1 < Global_262145.f_12931)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("faction3"))
  	{
  		if (!Global_262145.f_14230 && iVar1 < Global_262145.f_14242)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("virgo3") || iParam0 == joaat("virgo2"))
  	{
  		if (!Global_262145.f_14226 && iVar1 < Global_262145.f_14238)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sabregt2"))
  	{
  		if (!Global_262145.f_14227 && iVar1 < Global_262145.f_14239)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tornado5"))
  	{
  		if (!Global_262145.f_14228 && iVar1 < Global_262145.f_14240)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("minivan2"))
  	{
  		if (!Global_262145.f_14229 && iVar1 < Global_262145.f_14241)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("slamvan3"))
  	{
  		if (!Global_262145.f_14231 && iVar1 < Global_262145.f_14243)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("prototipo"))
  	{
  		if (!Global_262145.f_14232 && iVar1 < Global_262145.f_14235)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seven70"))
  	{
  		if (!Global_262145.f_14233 && iVar1 < Global_262145.f_14236)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pfister811"))
  	{
  		if (!Global_262145.f_14234 && iVar1 < Global_262145.f_14237)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("bf400"))
  	{
  		if (!Global_262145.f_16861 && iVar1 < Global_262145.f_16826)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("brioso"))
  	{
  		if (!Global_262145.f_16856 && iVar1 < Global_262145.f_16821)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cliffhanger"))
  	{
  		if (!Global_262145.f_16860 && iVar1 < Global_262145.f_16825)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("contender"))
  	{
  		if (!Global_262145.f_16859 && iVar1 < Global_262145.f_16824)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("le7b"))
  	{
  		if (!Global_262145.f_16853 && iVar1 < Global_262145.f_16818)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("omnis"))
  	{
  		if (!Global_262145.f_16854 && iVar1 < Global_262145.f_16819)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("trophytruck"))
  	{
  		if (!Global_262145.f_16857 && iVar1 < Global_262145.f_16822)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("trophytruck2"))
  	{
  		if (!Global_262145.f_16858 && iVar1 < Global_262145.f_16823)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tropos"))
  	{
  		if (!Global_262145.f_16855 && iVar1 < Global_262145.f_16820)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gargoyle"))
  	{
  		if (!Global_262145.f_16863 && iVar1 < Global_262145.f_16828)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rallytruck"))
  	{
  		if (!Global_262145.f_16864 && iVar1 < Global_262145.f_16829)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tampa2"))
  	{
  		if (!Global_262145.f_16852 && iVar1 < Global_262145.f_16817)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tyrus"))
  	{
  		if (!Global_262145.f_16851 && iVar1 < Global_262145.f_16816)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sheava"))
  	{
  		if (!Global_262145.f_16850 && iVar1 < Global_262145.f_16815)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("lynx"))
  	{
  		if (!Global_262145.f_16862 && iVar1 < Global_262145.f_16827)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stalion2"))
  	{
  		if (!Global_262145.f_16865 && iVar1 < Global_262145.f_16830)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet2"))
  	{
  		if (!Global_262145.f_16866 && iVar1 < Global_262145.f_16831)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dominator2"))
  	{
  		if (!Global_262145.f_16867 && iVar1 < Global_262145.f_16832)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("buffalo3"))
  	{
  		if (!Global_262145.f_16868 && iVar1 < Global_262145.f_16833)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("defiler"))
  	{
  		if (!Global_262145.f_17015 && iVar1 < Global_262145.f_17037)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nightblade"))
  	{
  		if (!Global_262145.f_17016 && iVar1 < Global_262145.f_17038)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zombiea"))
  	{
  		if (!Global_262145.f_17017 && iVar1 < Global_262145.f_17039)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("esskey"))
  	{
  		if (!Global_262145.f_17018 && iVar1 < Global_262145.f_17040)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("avarus"))
  	{
  		if (!Global_262145.f_17019 && iVar1 < Global_262145.f_17041)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zombieb"))
  	{
  		if (!Global_262145.f_17020 && iVar1 < Global_262145.f_17042)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hakuchou2"))
  	{
  		if (!Global_262145.f_17022 && iVar1 < Global_262145.f_17043)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vortex"))
  	{
  		if (!Global_262145.f_17023 && iVar1 < Global_262145.f_17044)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("shotaro"))
  	{
  		if (!Global_262145.f_17024 && iVar1 < Global_262145.f_17045)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("chimera"))
  	{
  		if (!Global_262145.f_17025 && iVar1 < Global_262145.f_17046)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("raptor"))
  	{
  		if (!Global_262145.f_17026 && iVar1 < Global_262145.f_17047)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("daemon2"))
  	{
  		if (!Global_262145.f_17027 && iVar1 < Global_262145.f_17048)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blazer4"))
  	{
  		if (!Global_262145.f_17028 && iVar1 < Global_262145.f_17049)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tornado6"))
  	{
  		if (!Global_262145.f_17034 && iVar1 < Global_262145.f_17056)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("youga2"))
  	{
  		if (!Global_262145.f_17031 && iVar1 < Global_262145.f_17052)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("wolfsbane"))
  	{
  		if (!Global_262145.f_17032 && iVar1 < Global_262145.f_17053)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("faggio3"))
  	{
  		if (!Global_262145.f_17033 && iVar1 < Global_262145.f_17054)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("faggio"))
  	{
  		if (!Global_262145.f_17021 && iVar1 < Global_262145.f_17055)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("bagger"))
  	{
  		if (!Global_262145.f_17035 && iVar1 < Global_262145.f_17057)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sanctus"))
  	{
  		if (!Global_262145.f_17029 && iVar1 < Global_262145.f_17050)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("manchez"))
  	{
  		if (!Global_262145.f_17030 && iVar1 < Global_262145.f_17051)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ratbike"))
  	{
  		if (!Global_262145.f_17036 && iVar1 < Global_262145.f_17058)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("voltic2"))
  	{
  		if (!Global_262145.f_18667 && iVar1 < Global_262145.f_18764)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ruiner2"))
  	{
  		if (!Global_262145.f_18668 && iVar1 < Global_262145.f_18765)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dune4"))
  	{
  		if (!Global_262145.f_18669 && iVar1 < Global_262145.f_18766)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dune5"))
  	{
  		if (!Global_262145.f_18670 && iVar1 < Global_262145.f_18767)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("phantom2"))
  	{
  		if (!Global_262145.f_18671 && iVar1 < Global_262145.f_18768)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("technical2"))
  	{
  		if (!Global_262145.f_18672 && iVar1 < Global_262145.f_18769)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("boxville5"))
  	{
  		if (!Global_262145.f_18673 && iVar1 < Global_262145.f_18770)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("wastelander"))
  	{
  		if (!Global_262145.f_18674 && iVar1 < Global_262145.f_18771)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blazer5"))
  	{
  		if (!Global_262145.f_18675 && iVar1 < Global_262145.f_18772)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet2"))
  	{
  		if (!Global_262145.f_18676 && iVar1 < Global_262145.f_18773)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet3"))
  	{
  		if (!Global_262145.f_18677 && iVar1 < Global_262145.f_18774)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("diablous"))
  	{
  		if (!Global_262145.f_18678 && iVar1 < Global_262145.f_18775)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("diablous2"))
  	{
  		if (!Global_262145.f_18679 && iVar1 < Global_262145.f_18776)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("elegy"))
  	{
  		if (!Global_262145.f_18680 && iVar1 < Global_262145.f_18777)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("elegy2"))
  	{
  		if (!Global_262145.f_18681 && iVar1 < Global_262145.f_18778)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("fcr"))
  	{
  		if (!Global_262145.f_18682 && iVar1 < Global_262145.f_18779)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("fcr2"))
  	{
  		if (!Global_262145.f_18683 && iVar1 < Global_262145.f_18780)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("italigtb"))
  	{
  		if (!Global_262145.f_18684 && iVar1 < Global_262145.f_18781)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("italigtb2"))
  	{
  		if (!Global_262145.f_18685 && iVar1 < Global_262145.f_18782)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nero"))
  	{
  		if (!Global_262145.f_18686 && iVar1 < Global_262145.f_18783)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nero2"))
  	{
  		if (!Global_262145.f_18687 && iVar1 < Global_262145.f_18784)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("penetrator"))
  	{
  		if (!Global_262145.f_18688 && iVar1 < Global_262145.f_18785)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("specter"))
  	{
  		if (!Global_262145.f_18689 && iVar1 < Global_262145.f_18786)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("specter2"))
  	{
  		if (!Global_262145.f_18690 && iVar1 < Global_262145.f_18787)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tempesta"))
  	{
  		if (!Global_262145.f_18691 && iVar1 < Global_262145.f_18788)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("gp1"))
  	{
  		if (!Global_262145.f_19748 && iVar1 < Global_262145.f_19744)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("infernus2"))
  	{
  		if (!Global_262145.f_19749 && iVar1 < Global_262145.f_19745)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ruston"))
  	{
  		if (!Global_262145.f_19750 && iVar1 < Global_262145.f_19746)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("turismo2"))
  	{
  		if (!Global_262145.f_19751 && iVar1 < Global_262145.f_19747)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("xa21"))
  	{
  		if (!Global_262145.f_20629 && iVar1 < Global_262145.f_20637)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cheetah2"))
  	{
  		if (!Global_262145.f_20630 && iVar1 < Global_262145.f_20638)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("torero"))
  	{
  		if (!Global_262145.f_20631 && iVar1 < Global_262145.f_20639)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vagner"))
  	{
  		if (!Global_262145.f_20632 && iVar1 < Global_262145.f_20640)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ardent"))
  	{
  		if (!Global_262145.f_20633 && iVar1 < Global_262145.f_20641)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nightshark"))
  	{
  		if (!Global_262145.f_20634 && iVar1 < Global_262145.f_20642)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("microlight"))
  	{
  		if (!Global_262145.f_21409 && iVar1 < Global_262145.f_21429)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("mogul"))
  	{
  		if (!Global_262145.f_21421 && iVar1 < Global_262145.f_21441)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rogue"))
  	{
  		if (!Global_262145.f_21412 && iVar1 < Global_262145.f_21432)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("starling"))
  	{
  		if (!Global_262145.f_21422 && iVar1 < Global_262145.f_21442)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seabreeze"))
  	{
  		if (!Global_262145.f_21410 && iVar1 < Global_262145.f_21430)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tula"))
  	{
  		if (!Global_262145.f_21426 && iVar1 < Global_262145.f_21446)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pyro"))
  	{
  		if (!Global_262145.f_21424 && iVar1 < Global_262145.f_21444)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("molotok"))
  	{
  		if (!Global_262145.f_21425 && iVar1 < Global_262145.f_21445)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nokota"))
  	{
  		if (!Global_262145.f_21420 && iVar1 < Global_262145.f_21440)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("bombushka"))
  	{
  		if (!Global_262145.f_21427 && iVar1 < Global_262145.f_21447)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hunter"))
  	{
  		if (!Global_262145.f_21423 && iVar1 < Global_262145.f_21443)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("havok"))
  	{
  		if (!Global_262145.f_21419 && iVar1 < Global_262145.f_21439)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("howard"))
  	{
  		if (!Global_262145.f_21411 && iVar1 < Global_262145.f_21431)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("alphaz1"))
  	{
  		if (!Global_262145.f_21413 && iVar1 < Global_262145.f_21433)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cyclone"))
  	{
  		if (!Global_262145.f_21414 && iVar1 < Global_262145.f_21434)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("visione"))
  	{
  		if (!Global_262145.f_21415 && iVar1 < Global_262145.f_21435)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vigilante"))
  	{
  		if (!Global_262145.f_21416 && iVar1 < Global_262145.f_21436)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("retinue"))
  	{
  		if (!Global_262145.f_21417 && iVar1 < Global_262145.f_21437)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rapidgt3"))
  	{
  		if (!Global_262145.f_21418 && iVar1 < Global_262145.f_21438)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("deluxo"))
  	{
  		if (!Global_262145.f_22370 && iVar1 < Global_262145.f_22398)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stromberg"))
  	{
  		if (!Global_262145.f_22371 && iVar1 < Global_262145.f_22399)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("riot2"))
  	{
  		if (!Global_262145.f_22372 && iVar1 < Global_262145.f_22400)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("chernobog"))
  	{
  		if (!Global_262145.f_22373 && iVar1 < Global_262145.f_22401)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("khanjali"))
  	{
  		if (!Global_262145.f_22374 && iVar1 < Global_262145.f_22402)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("akula"))
  	{
  		if (!Global_262145.f_22375 && iVar1 < Global_262145.f_22403)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("thruster"))
  	{
  		if (!Global_262145.f_22376 && iVar1 < Global_262145.f_22404)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("barrage"))
  	{
  		if (!Global_262145.f_22377 && iVar1 < Global_262145.f_22405)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("volatol"))
  	{
  		if (!Global_262145.f_22378 && iVar1 < Global_262145.f_22406)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet4"))
  	{
  		if (!Global_262145.f_22379 && iVar1 < Global_262145.f_22407)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("neon"))
  	{
  		if (!Global_262145.f_22380 && iVar1 < Global_262145.f_22408)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("streiter"))
  	{
  		if (!Global_262145.f_22381 && iVar1 < Global_262145.f_22409)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sentinel3"))
  	{
  		if (!Global_262145.f_22382 && iVar1 < Global_262145.f_22410)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("yosemite"))
  	{
  		if (!Global_262145.f_22383 && iVar1 < Global_262145.f_22411)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sc1"))
  	{
  		if (!Global_262145.f_22384 && iVar1 < Global_262145.f_22412)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("autarch"))
  	{
  		if (!Global_262145.f_22385 && iVar1 < Global_262145.f_22413)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gt500"))
  	{
  		if (!Global_262145.f_22386 && iVar1 < Global_262145.f_22414)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hustler"))
  	{
  		if (!Global_262145.f_22387 && iVar1 < Global_262145.f_22415)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("revolter"))
  	{
  		if (!Global_262145.f_22388 && iVar1 < Global_262145.f_22416)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pariah"))
  	{
  		if (!Global_262145.f_22389 && iVar1 < Global_262145.f_22417)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("raiden"))
  	{
  		if (!Global_262145.f_22390 && iVar1 < Global_262145.f_22418)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("savestra"))
  	{
  		if (!Global_262145.f_22391 && iVar1 < Global_262145.f_22419)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("riata"))
  	{
  		if (!Global_262145.f_22392 && iVar1 < Global_262145.f_22420)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hermes"))
  	{
  		if (!Global_262145.f_22393 && iVar1 < Global_262145.f_22421)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet5"))
  	{
  		if (!Global_262145.f_22394 && iVar1 < Global_262145.f_22422)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("z190"))
  	{
  		if (!Global_262145.f_22395 && iVar1 < Global_262145.f_22423)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("viseris"))
  	{
  		if (!Global_262145.f_22396 && iVar1 < Global_262145.f_22424)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("kamacho"))
  	{
  		if (!Global_262145.f_22397 && iVar1 < Global_262145.f_22425)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("gb200"))
  	{
  		if (!Global_262145.f_23586 && iVar1 < Global_262145.f_23602)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("fagaloa"))
  	{
  		if (!Global_262145.f_23587 && iVar1 < Global_262145.f_23603)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ellie"))
  	{
  		if (!Global_262145.f_23591 && iVar1 < Global_262145.f_23607)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("issi3"))
  	{
  		if (!Global_262145.f_23594 && iVar1 < Global_262145.f_23610)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("michelli"))
  	{
  		if (!Global_262145.f_23599 && iVar1 < Global_262145.f_23615)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("flashgt"))
  	{
  		if (!Global_262145.f_23593 && iVar1 < Global_262145.f_23609)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hotring"))
  	{
  		if (!Global_262145.f_23585 && iVar1 < Global_262145.f_23601)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tezeract"))
  	{
  		if (!Global_262145.f_23592 && iVar1 < Global_262145.f_23608)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tyrant"))
  	{
  		if (!Global_262145.f_23598 && iVar1 < Global_262145.f_23614)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dominator3"))
  	{
  		if (!Global_262145.f_23597 && iVar1 < Global_262145.f_23613)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("taipan"))
  	{
  		if (!Global_262145.f_23588 && iVar1 < Global_262145.f_23604)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("entity2"))
  	{
  		if (!Global_262145.f_23590 && iVar1 < Global_262145.f_23606)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("jester3"))
  	{
  		if (!Global_262145.f_23600 && iVar1 < Global_262145.f_23616)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cheburek"))
  	{
  		if (!Global_262145.f_23596 && iVar1 < Global_262145.f_23612)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("caracara"))
  	{
  		if (!Global_262145.f_23589 && iVar1 < Global_262145.f_23605)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seasparrow"))
  	{
  		if (!Global_262145.f_23595 && iVar1 < Global_262145.f_23611)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("terbyte"))
  	{
  		if (!Global_262145.f_23676 && iVar1 < Global_262145.f_23663)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pbus2"))
  	{
  		if (!Global_262145.f_23677 && iVar1 < Global_262145.f_23664)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("mule4"))
  	{
  		if (!Global_262145.f_23682 && iVar1 < Global_262145.f_23669)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pounder2"))
  	{
  		if (!Global_262145.f_23681 && iVar1 < Global_262145.f_23668)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("swinger"))
  	{
  		if (!Global_262145.f_23679 && iVar1 < Global_262145.f_23666)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("menacer"))
  	{
  		if (!Global_262145.f_23685 && iVar1 < Global_262145.f_23672)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("scramjet"))
  	{
  		if (!Global_262145.f_23687 && iVar1 < Global_262145.f_23674)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("strikeforce"))
  	{
  		if (!Global_262145.f_23688 && iVar1 < Global_262145.f_23675)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("oppressor2"))
  	{
  		if (!Global_262145.f_23686 && iVar1 < Global_262145.f_23673)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("patriot2"))
  	{
  		if (!Global_262145.f_23678 && iVar1 < Global_262145.f_23665)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stafford"))
  	{
  		if (!Global_262145.f_23680 && iVar1 < Global_262145.f_23667)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("freecrawler"))
  	{
  		if (!Global_262145.f_23684 && iVar1 < Global_262145.f_23671)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blimp3"))
  	{
  		if (!Global_262145.f_23683 && iVar1 < Global_262145.f_23670)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("monster3"))
  	{
  	}
  	else if (iParam0 == joaat("cerberus"))
  	{
  	}
  	else if (iParam0 == joaat("cerberus2"))
  	{
  	}
  	else if (iParam0 == joaat("cerberus3"))
  	{
  	}
  	else if (iParam0 == joaat("brutus"))
  	{
  	}
  	else if (iParam0 == joaat("brutus2"))
  	{
  	}
  	else if (iParam0 == joaat("brutus3"))
  	{
  	}
  	else if (iParam0 == joaat("scarab"))
  	{
  	}
  	else if (iParam0 == joaat("scarab2"))
  	{
  	}
  	else if (iParam0 == joaat("scarab3"))
  	{
  	}
  	else if (iParam0 == joaat("imperator"))
  	{
  	}
  	else if (iParam0 == joaat("imperator2"))
  	{
  	}
  	else if (iParam0 == joaat("imperator3"))
  	{
  	}
  	else if (iParam0 == joaat("zr380"))
  	{
  	}
  	else if (iParam0 == joaat("zr3802"))
  	{
  	}
  	else if (iParam0 == joaat("zr3803"))
  	{
  	}
  	else if (iParam0 == joaat("impaler"))
  	{
  	}
  	else if (iParam0 == joaat("deveste"))
  	{
  		if (!Global_262145.f_26051 && iVar1 < Global_262145.f_26053)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("toros"))
  	{
  		if (!Global_262145.f_25064 && iVar1 < Global_262145.f_25057)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("clique"))
  	{
  		if (!Global_262145.f_25065 && iVar1 < Global_262145.f_25058)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("italigto"))
  	{
  		if (!Global_262145.f_25066 && iVar1 < Global_262145.f_25059)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("deviant"))
  	{
  		if (!Global_262145.f_25067 && iVar1 < Global_262145.f_25060)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vamos"))
  	{
  		if (!Global_262145.f_26052 && iVar1 < Global_262145.f_26054)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tulip"))
  	{
  		if (!Global_262145.f_25068 && iVar1 < Global_262145.f_25061)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("schlagen"))
  	{
  		if (!Global_262145.f_25069 && iVar1 < Global_262145.f_25062)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rcbandito"))
  	{
  		if (!Global_262145.f_25070 && iVar1 < Global_262145.f_25063)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("thrax"))
  	{
  		if (!Global_262145.f_25075 && iVar1 < Global_262145.f_25096)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("drafter"))
  	{
  		if (!Global_262145.f_25076 && iVar1 < Global_262145.f_25097)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("locust"))
  	{
  		if (!Global_262145.f_25077 && iVar1 < Global_262145.f_25098)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("novak"))
  	{
  		if (!Global_262145.f_25078 && iVar1 < Global_262145.f_25099)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zorrusso"))
  	{
  		if (!Global_262145.f_25079 && iVar1 < Global_262145.f_25100)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet3"))
  	{
  		if (!Global_262145.f_25080 && iVar1 < Global_262145.f_25101)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("issi7"))
  	{
  		if (!Global_262145.f_25081 && iVar1 < Global_262145.f_25102)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zion3"))
  	{
  		if (!Global_262145.f_25082 && iVar1 < Global_262145.f_25103)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nebula"))
  	{
  		if (!Global_262145.f_25083 && iVar1 < Global_262145.f_25104)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hellion"))
  	{
  		if (!Global_262145.f_25084 && iVar1 < Global_262145.f_25105)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dynasty"))
  	{
  		if (!Global_262145.f_25085 && iVar1 < Global_262145.f_25106)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rrocket"))
  	{
  		if (!Global_262145.f_25086 && iVar1 < Global_262145.f_25107)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("peyote2"))
  	{
  		if (!Global_262145.f_25087 && iVar1 < Global_262145.f_25108)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet4"))
  	{
  		if (!Global_262145.f_25088 && iVar1 < Global_262145.f_25109)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("caracara2"))
  	{
  		if (!Global_262145.f_25089 && iVar1 < Global_262145.f_25110)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("jugular"))
  	{
  		if (!Global_262145.f_25090 && iVar1 < Global_262145.f_25111)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("s80"))
  	{
  		if (!Global_262145.f_25091 && iVar1 < Global_262145.f_25112)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("krieger"))
  	{
  		if (!Global_262145.f_25092 && iVar1 < Global_262145.f_25113)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("emerus"))
  	{
  		if (!Global_262145.f_25093 && iVar1 < Global_262145.f_25114)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("neo"))
  	{
  		if (!Global_262145.f_25094 && iVar1 < Global_262145.f_25115)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("paragon"))
  	{
  		if (!Global_262145.f_25095 && iVar1 < Global_262145.f_25116)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("asbo"))
  	{
  		if (!Global_262145.f_27895 && iVar1 < Global_262145.f_27916)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("kanjo"))
  	{
  		if (!Global_262145.f_27896 && iVar1 < Global_262145.f_27917)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("everon"))
  	{
  		if (!Global_262145.f_27897 && iVar1 < Global_262145.f_27918)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("retinue2"))
  	{
  		if (!Global_262145.f_27898 && iVar1 < Global_262145.f_27919)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("yosemite2"))
  	{
  		if (!Global_262145.f_27899 && iVar1 < Global_262145.f_27920)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sugoi"))
  	{
  		if (!Global_262145.f_27900 && iVar1 < Global_262145.f_27921)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sultan2"))
  	{
  		if (!Global_262145.f_27901 && iVar1 < Global_262145.f_27922)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("outlaw"))
  	{
  		if (!Global_262145.f_27902 && iVar1 < Global_262145.f_27923)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vagrant"))
  	{
  		if (!Global_262145.f_27903 && iVar1 < Global_262145.f_27924)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("komoda"))
  	{
  		if (!Global_262145.f_27904 && iVar1 < Global_262145.f_27925)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stryder"))
  	{
  		if (!Global_262145.f_27905 && iVar1 < Global_262145.f_27926)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("furia"))
  	{
  		if (!Global_262145.f_27906 && iVar1 < Global_262145.f_27927)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zhaba"))
  	{
  		if (!Global_262145.f_27907 && iVar1 < Global_262145.f_27928)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("jb7002"))
  	{
  		if (!Global_262145.f_27908 && iVar1 < Global_262145.f_27929)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("firetruk"))
  	{
  		if (!Global_262145.f_27909 && iVar1 < Global_262145.f_27930)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("burrito2"))
  	{
  		if (!Global_262145.f_27910 && iVar1 < Global_262145.f_27931)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("boxville"))
  	{
  		if (!Global_262145.f_27911 && iVar1 < Global_262145.f_27932)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stockade"))
  	{
  		if (!Global_262145.f_27912 && iVar1 < Global_262145.f_27933)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("minitank"))
  	{
  		if (!Global_262145.f_27913 && iVar1 < Global_262145.f_27934)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("lguard"))
  	{
  		if (!Global_262145.f_27914 && iVar1 < Global_262145.f_27935)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blazer2"))
  	{
  		if (!Global_262145.f_27915 && iVar1 < Global_262145.f_27936)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("formula"))
  	{
  		if ((!Global_262145.f_27938 && iVar1 < Global_262145.f_27939) && !Global_262145.f_27893)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("formula2"))
  	{
  		if ((!Global_262145.f_27941 && iVar1 < Global_262145.f_27942) && !Global_262145.f_27894)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("imorgon"))
  	{
  		if (!Global_262145.f_27946 && iVar1 < Global_262145.f_27949)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rebla"))
  	{
  		if (!Global_262145.f_27947 && iVar1 < Global_262145.f_27950)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vstr"))
  	{
  		if (!Global_262145.f_27948 && iVar1 < Global_262145.f_27951)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet5"))
  	{
  		if (!Global_262145.f_28950 && iVar1 < Global_262145.f_28615)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("club"))
  	{
  		if (!Global_262145.f_28601 && iVar1 < Global_262145.f_28622)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dukes3"))
  	{
  		if (!Global_262145.f_28602 && iVar1 < Global_262145.f_28608)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("yosemite3"))
  	{
  		if (!Global_262145.f_28948 && iVar1 < Global_262145.f_28616)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("peyote3"))
  	{
  		if (!Global_262145.f_28949 && iVar1 < Global_262145.f_28617)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("glendale2"))
  	{
  		if (!Global_262145.f_28595 && iVar1 < Global_262145.f_28614)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("penumbra2"))
  	{
  		if (!Global_262145.f_28596 && iVar1 < Global_262145.f_28623)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("landstalker2"))
  	{
  		if (!Global_262145.f_28597 && iVar1 < Global_262145.f_28613)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seminole2"))
  	{
  		if (!Global_262145.f_28598 && iVar1 < Global_262145.f_28611)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tigon"))
  	{
  		if (!Global_262145.f_28944 && iVar1 < Global_262145.f_28618)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("openwheel1"))
  	{
  		if (!Global_262145.f_28945 && iVar1 < Global_262145.f_28619)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("openwheel2"))
  	{
  		if (!Global_262145.f_28946 && iVar1 < Global_262145.f_28620)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("coquette4"))
  	{
  		if (!Global_262145.f_28947 && iVar1 < Global_262145.f_28621)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("manana2"))
  	{
  		if (!Global_262145.f_28599 && iVar1 < Global_262145.f_28610)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("youga3"))
  	{
  		if (!Global_262145.f_28600 && iVar1 < Global_262145.f_28612)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == 1455990255)
  	{
  		if (!Global_262145.f_29392 && iVar1 < Global_262145.f_29375)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == 295054921)
  	{
  		if (!Global_262145.f_29393 && iVar1 < Global_262145.f_29376)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == -365873403)
  	{
  		if (!Global_262145.f_29394 && iVar1 < Global_262145.f_29377)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == -276744698)
  	{
  		if (!Global_262145.f_29395 && iVar1 < Global_262145.f_29378)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == 1861786828)
  	{
  		if (!Global_262145.f_29396 && iVar1 < Global_262145.f_29379)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == -210308634)
  	{
  		if (!Global_262145.f_29397 && iVar1 < Global_262145.f_29380)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == -857356038)
  	{
  		if (!Global_262145.f_29398 && iVar1 < Global_262145.f_29381)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == -1492917079)
  	{
  		if (!Global_262145.f_29399 && iVar1 < Global_262145.f_29382)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == -1149725334)
  	{
  		if (!Global_262145.f_29400 && iVar1 < Global_262145.f_29383)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == 1644055914)
  	{
  		if (Global_262145.f_29409)
  		{
  		}
  		else if (!Global_262145.f_29401 && iVar1 < Global_262145.f_29384)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == 1086534307)
  	{
  		if (!Global_262145.f_29402 && iVar1 < Global_262145.f_29385)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == -1045911276)
  	{
  		if (!Global_262145.f_29403 && iVar1 < Global_262145.f_29386)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == 2014313426)
  	{
  		if (!Global_262145.f_29404 && iVar1 < Global_262145.f_29387)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == -102335483)
  	{
  		if (!Global_262145.f_29405 && iVar1 < Global_262145.f_29388)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == 1429622905)
  	{
  		if (Global_262145.f_29410)
  		{
  		}
  		else if (!Global_262145.f_29406 && iVar1 < Global_262145.f_29389)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == -980573366)
  	{
  		if (!Global_262145.f_29407 && iVar1 < Global_262145.f_29390)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == 298565713)
  	{
  		if (!Global_262145.f_29408 && iVar1 < Global_262145.f_29391)
  		{
  			iVar0 = 0;
  		}
  	}
  	return iVar0;
  }
  
  int func_452()
  {
  	return 0;
  }
  
  int func_453()
  {
  	return 1;
  }
  
  int func_454()
  {
  	return 1;
  }
  
  int func_455()
  {
  	if (unk_0x95C5B896CB42B20E(-1226939934))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_456()
  {
  	int iVar0;
  	
  	if (unk_0x011A67D2B195B6EB())
  	{
  		if (unk_0xB6E5F77B7062D58A())
  		{
  			if (unk_0xE06C56C6444527A6())
  			{
  				unk_0xD2F202166691EDB2(joaat("SP_UNLOCK_EXCLUS_CONTENT"), &iVar0, -1);
  				unk_0xBE20AB8238688965(&iVar0, 2);
  				unk_0xBE20AB8238688965(&iVar0, 4);
  				unk_0xBE20AB8238688965(&iVar0, 6);
  				unk_0xBE20AB8238688965(&Global_25, 2);
  				unk_0xBE20AB8238688965(&Global_25, 4);
  				unk_0xBE20AB8238688965(&Global_25, 6);
  				unk_0x6000E4684CB4330B(joaat("SP_UNLOCK_EXCLUS_CONTENT"), iVar0, 1);
  				if (unk_0x3D1E37C2BD9F339F())
  				{
  					iVar0 = unk_0xFCBF95335DD16537(866);
  					unk_0xBE20AB8238688965(&iVar0, 0);
  					unk_0xB2B72C9FCE371E70(iVar0);
  				}
  				return 1;
  			}
  		}
  	}
  	if (Global_150693 == 2)
  	{
  		return 1;
  	}
  	else if (Global_150693 == 3)
  	{
  		return 0;
  	}
  	if (unk_0x3D1E37C2BD9F339F())
  	{
  		if (unk_0xCE990E643CD9D0E5(unk_0xFCBF95335DD16537(866), 0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_457(int iParam0)
  {
  	int iVar0;
  	char* sVar1;
  	
  	iVar0 = unk_0x36FE6D3220816ADA(iParam0);
  	sVar1 = unk_0x6984AA4EC2FF9734(iParam0);
  	if (iVar0 == joaat("speedo") && unk_0xF005CCA4263DF67F(sVar1, "LAMAR G "))
  	{
  		return 1;
  	}
  	if (!func_448(iVar0, 0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_458(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		if (unk_0xAE06B9E39EBDE049(Global_96316[iVar0]))
  		{
  			if (Global_96316[iVar0] == iParam0)
  			{
  				return 1;
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_459(int iParam0)
  {
  	int iVar0;
  	
  	if (unk_0xAE06B9E39EBDE049(iParam0) && unk_0x80FF6C016CDB0FAF(iParam0, 0))
  	{
  		iVar0 = 0;
  		while (iVar0 < 9)
  		{
  			if (unk_0xAE06B9E39EBDE049(Global_96286[iVar0]) && unk_0x80FF6C016CDB0FAF(Global_96286[iVar0], 0))
  			{
  				if (Global_96286[iVar0] == iParam0 && unk_0x36FE6D3220816ADA(Global_96286[iVar0]) == unk_0x36FE6D3220816ADA(iParam0))
  				{
  					return 1;
  				}
  			}
  			iVar0++;
  		}
  	}
  	return 0;
  }
  
  int func_460(int iParam0)
  {
  	int iVar0;
  	
  	if (unk_0xAE06B9E39EBDE049(Global_75654.f_484[24]))
  	{
  		if (iParam0 == Global_75654.f_484[24])
  		{
  			return 0;
  		}
  	}
  	iVar0 = 0;
  	while (iVar0 < 68)
  	{
  		if (unk_0xAE06B9E39EBDE049(Global_75654.f_484[iVar0]))
  		{
  			if ((((((((((((iVar0 != 24 && iVar0 != 21) && iVar0 != 22) && iVar0 != 23) && iVar0 != 27) && iVar0 != 30) && iVar0 != 33) && iVar0 != 28) && iVar0 != 31) && iVar0 != 34) && iVar0 != 26) && iVar0 != 29) && iVar0 != 32)
  			{
  				if (iParam0 == Global_75654.f_484[iVar0])
  				{
  					return 1;
  				}
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_461(var uParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	*uParam0 = { 0f, 0f, 0f };
  	uParam0->f_3 = 0f;
  	uParam0->f_4 = 0;
  	StringCopy(&(uParam0->f_5), "", 16);
  	uParam0->f_9 = 0;
  	uParam0->f_10 = 0;
  	uParam0->f_11 = 0;
  	uParam0->f_12 = 145;
  	uParam0->f_13 = -1;
  	uParam0->f_14 = 0;
  	uParam0->f_15 = { 0f, 0f, 0f };
  	uParam0->f_18 = { 0f, 0f, 0f };
  	switch (iParam1)
  	{
  		case 0:
  			*uParam0 = { -831.8538f, 172.1154f, 69.9058f };
  			uParam0->f_3 = 157.5705f;
  			uParam0->f_4 = func_334(0, 1);
  			uParam0->f_12 = 0;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 20);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 1:
  			*uParam0 = { 1970.943f, 3801.684f, 31.1396f };
  			uParam0->f_3 = 301.3964f;
  			uParam0->f_4 = func_334(0, 1);
  			uParam0->f_12 = 0;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 20);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 2:
  			*uParam0 = { -22.6297f, -1439.137f, 29.6549f };
  			uParam0->f_3 = 180.0808f;
  			uParam0->f_4 = func_334(1, 1);
  			uParam0->f_12 = 1;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 20);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 3:
  			*uParam0 = { -22.5229f, -1434.699f, 29.6552f };
  			uParam0->f_3 = 141.6114f;
  			uParam0->f_4 = func_334(1, 2);
  			uParam0->f_12 = 1;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 19);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 4:
  			*uParam0 = { 10.9281f, 545.669f, 174.7951f };
  			uParam0->f_3 = 61.392f;
  			uParam0->f_4 = func_334(1, 1);
  			uParam0->f_12 = 1;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 20);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 5:
  			*uParam0 = { 6.1093f, 544.9742f, 174.2835f };
  			uParam0->f_3 = 92.1548f;
  			uParam0->f_4 = func_334(1, 2);
  			uParam0->f_12 = 1;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 19);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 6:
  			*uParam0 = { 1981.416f, 3808.131f, 31.1384f };
  			uParam0->f_3 = 117.2557f;
  			uParam0->f_4 = func_334(2, 1);
  			uParam0->f_12 = 2;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 20);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 7:
  			*uParam0 = { -1158.488f, -1529.367f, 3.8995f };
  			uParam0->f_3 = 35.7505f;
  			uParam0->f_4 = func_334(2, 1);
  			uParam0->f_12 = 2;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 20);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 8:
  			*uParam0 = { 148.2868f, -1270.569f, 28.2252f };
  			uParam0->f_3 = 208.4685f;
  			uParam0->f_4 = func_334(2, 1);
  			uParam0->f_12 = 2;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 20);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 9:
  			*uParam0 = { 1459.509f, -1380.45f, 78.3259f };
  			uParam0->f_3 = 99.6211f;
  			uParam0->f_4 = joaat("scorcher");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 10:
  			*uParam0 = { -1518.947f, -1387.865f, -0.5134f };
  			uParam0->f_3 = 98.3867f;
  			uParam0->f_4 = joaat("seashark");
  			iVar0 = 1;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			break;
  		
  		case 11:
  			*uParam0 = { 353.0926f, 3577.593f, 32.351f };
  			uParam0->f_3 = 16.6205f;
  			uParam0->f_4 = joaat("duster");
  			iVar0 = 1;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			break;
  		
  		case 12:
  			uParam0->f_14 = 0;
  			*uParam0 = { -1652.004f, -3142.348f, 12.9921f };
  			uParam0->f_3 = 329.1082f;
  			uParam0->f_12 = 0;
  			uParam0->f_13 = 359;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 13:
  			uParam0->f_14 = 1;
  			*uParam0 = { -1271.649f, -3380.685f, 12.9451f };
  			uParam0->f_3 = 329.5137f;
  			uParam0->f_12 = 1;
  			uParam0->f_13 = 359;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 14:
  			uParam0->f_14 = 2;
  			*uParam0 = { 1735.586f, 3294.531f, 40.1651f };
  			uParam0->f_3 = 194.9525f;
  			uParam0->f_12 = 2;
  			uParam0->f_13 = 359;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 15:
  			uParam0->f_14 = 3;
  			*uParam0 = { -846.27f, -1363.19f, 0.22f };
  			uParam0->f_3 = 108.78f;
  			uParam0->f_12 = 0;
  			uParam0->f_13 = 356;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 22);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 16:
  			uParam0->f_14 = 4;
  			*uParam0 = { -849.47f, -1354.99f, 0.24f };
  			uParam0->f_3 = 109.84f;
  			uParam0->f_12 = 1;
  			uParam0->f_13 = 356;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 22);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 17:
  			uParam0->f_14 = 5;
  			*uParam0 = { -852.47f, -1346.2f, 0.21f };
  			uParam0->f_3 = 108.76f;
  			uParam0->f_12 = 2;
  			uParam0->f_13 = 356;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 22);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 18:
  			uParam0->f_14 = 6;
  			*uParam0 = { -745.857f, -1433.904f, 4.0005f };
  			uParam0->f_12 = 0;
  			uParam0->f_13 = 360;
  			uParam0->f_15 = { -756.2952f, -1441.609f, 2.9184f };
  			uParam0->f_18 = { -738.0606f, -1423.068f, 8.2835f };
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 19:
  			uParam0->f_14 = 7;
  			*uParam0 = { -761.8486f, -1453.829f, 4.0005f };
  			uParam0->f_12 = 1;
  			uParam0->f_13 = 360;
  			uParam0->f_15 = { -772.8158f, -1459.957f, 3.2894f };
  			uParam0->f_18 = { -754.3353f, -1440.836f, 8.3334f };
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 20:
  			uParam0->f_14 = 8;
  			*uParam0 = { 1769.3f, 3244f, 41.1f };
  			uParam0->f_12 = 2;
  			uParam0->f_13 = 360;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 23);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 21:
  			uParam0->f_14 = 9;
  			*uParam0 = { 192.7897f, -1020.539f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = 0;
  			uParam0->f_13 = 357;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 24);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 22:
  			uParam0->f_14 = 10;
  			*uParam0 = { 192.7897f, -1020.539f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = 1;
  			uParam0->f_13 = 357;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 24);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 23:
  			uParam0->f_14 = 11;
  			*uParam0 = { 192.7897f, -1020.539f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = 2;
  			uParam0->f_13 = 357;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 14);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 24);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 28);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 26:
  		case 27:
  		case 28:
  			iVar1 = (iParam1 - 26);
  			uParam0->f_14 = (12 + iVar1);
  			*uParam0 = { 196.2794f, -1020.479f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = (0 + iVar1);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 27);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 24);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 29:
  		case 30:
  		case 31:
  			iVar1 = (iParam1 - 29);
  			uParam0->f_14 = (15 + iVar1);
  			*uParam0 = { 199.8872f, -1020.048f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = (0 + iVar1);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 27);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 24);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 32:
  		case 33:
  		case 34:
  			iVar1 = (iParam1 - 32);
  			uParam0->f_14 = (18 + iVar1);
  			*uParam0 = { 203.6006f, -1019.776f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = (0 + iVar1);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 7);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 27);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 24);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 24:
  			uParam0->f_14 = 21;
  			*uParam0 = { 0f, 0f, 0f };
  			uParam0->f_3 = 0f;
  			uParam0->f_4 = 0;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 11);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 13);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			iVar0 = 1;
  			break;
  		
  		case 25:
  			uParam0->f_14 = 22;
  			*uParam0 = { 723.2515f, -632.0496f, 27.1484f };
  			uParam0->f_3 = 12.9316f;
  			uParam0->f_4 = joaat("tailgater");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 10);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 11);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 13);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 12);
  			iVar0 = 1;
  			break;
  		
  		case 35:
  			*uParam0 = { -51.23f, 3111.9f, 24.95f };
  			uParam0->f_3 = 46.78f;
  			uParam0->f_4 = joaat("proptrailer");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 36:
  			*uParam0 = { -55.7984f, -1096.586f, 25.4223f };
  			uParam0->f_3 = 308.0596f;
  			uParam0->f_4 = joaat("bjxl");
  			uParam0->f_10 = 126;
  			uParam0->f_11 = 126;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 9);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 13);
  			iVar0 = 1;
  			break;
  		
  		case 37:
  			*uParam0 = { -2892.93f, 3192.37f, 11.66f };
  			uParam0->f_3 = -132.35f;
  			uParam0->f_4 = joaat("velum");
  			uParam0->f_10 = 157;
  			uParam0->f_11 = 157;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 9);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 23);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 13);
  			iVar0 = 1;
  			break;
  		
  		case 38:
  			*uParam0 = { 1744.308f, 3270.673f, 40.2076f };
  			uParam0->f_3 = 125f;
  			uParam0->f_4 = joaat("cargobob3");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 23);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 39:
  			*uParam0 = { 1751.44f, 3322.643f, 42.1855f };
  			uParam0->f_3 = 268.134f;
  			uParam0->f_4 = joaat("submersible");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 23);
  			iVar0 = 1;
  			break;
  		
  		case 41:
  			*uParam0 = { 1377.104f, -2076.2f, 52f };
  			uParam0->f_3 = 37.5f;
  			uParam0->f_4 = joaat("towtruck");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 40:
  			*uParam0 = { 1380.42f, -2072.77f, 51.7607f };
  			uParam0->f_3 = 37.5f;
  			uParam0->f_4 = joaat("trash");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 42:
  			*uParam0 = { 1359.389f, 3618.441f, 33.8907f };
  			uParam0->f_3 = 108.2337f;
  			uParam0->f_4 = joaat("barracks");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 43:
  			*uParam0 = { 693.1154f, -1018.155f, 21.6387f };
  			uParam0->f_3 = 177.6454f;
  			uParam0->f_4 = joaat("firetruk");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 23);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 44:
  			*uParam0 = { -73.6963f, 495.124f, 143.5226f };
  			uParam0->f_3 = 155.5994f;
  			uParam0->f_4 = joaat("vacca");
  			iVar0 = 1;
  			break;
  		
  		case 45:
  			*uParam0 = { -67.6314f, 891.8266f, 234.5348f };
  			uParam0->f_3 = 294.993f;
  			uParam0->f_4 = joaat("surano");
  			iVar0 = 1;
  			break;
  		
  		case 46:
  			*uParam0 = { 533.9048f, -169.2469f, 53.7005f };
  			uParam0->f_3 = 1.2998f;
  			uParam0->f_4 = joaat("tornado2");
  			iVar0 = 1;
  			break;
  		
  		case 47:
  			*uParam0 = { -726.8914f, -408.6952f, 34.0416f };
  			uParam0->f_3 = 267.7392f;
  			uParam0->f_4 = joaat("superd");
  			iVar0 = 1;
  			break;
  		
  		case 48:
  			*uParam0 = { -1321.519f, 261.3993f, 61.5709f };
  			uParam0->f_3 = 350.7697f;
  			uParam0->f_4 = joaat("double");
  			iVar0 = 1;
  			break;
  		
  		case 49:
  			*uParam0 = { -1267.999f, 451.6463f, 93.7071f };
  			uParam0->f_3 = 48.9311f;
  			uParam0->f_4 = joaat("double");
  			iVar0 = 1;
  			break;
  		
  		case 50:
  			*uParam0 = { -1062.076f, -226.7637f, 37.157f };
  			uParam0->f_3 = 234.2767f;
  			uParam0->f_4 = joaat("double");
  			iVar0 = 1;
  			break;
  		
  		case 51:
  			*uParam0 = { 68.16914f, -1558.958f, 29.46904f };
  			uParam0->f_3 = 49.90575f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 52:
  			*uParam0 = { 589.4399f, 2736.708f, 42.03316f };
  			uParam0->f_3 = -175.7105f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 53:
  			*uParam0 = { -488.774f, -344.5721f, 34.36356f };
  			uParam0->f_3 = 82.4042f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 54:
  			*uParam0 = { 288.8808f, -585.4728f, 43.15428f };
  			uParam0->f_3 = -20.80707f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 55:
  			*uParam0 = { 304.8294f, -1383.674f, 31.67744f };
  			uParam0->f_3 = -41.11603f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 56:
  			*uParam0 = { 1126.194f, -1481.486f, 34.7016f };
  			uParam0->f_3 = -91.43369f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 57:
  			*uParam0 = { -1598.36f, 5252.84f, 0f };
  			uParam0->f_3 = 28.14f;
  			uParam0->f_4 = joaat("submersible");
  			uParam0->f_13 = 308;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 2);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 30);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 58:
  			*uParam0 = { -1602.62f, 5260.37f, 0.86f };
  			uParam0->f_3 = 25.32f;
  			uParam0->f_4 = joaat("dinghy");
  			uParam0->f_13 = 404;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 2);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 22);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 59:
  			*uParam0 = { 2116.571f, 4763.279f, 40.1596f };
  			uParam0->f_3 = 198.723f;
  			uParam0->f_4 = joaat("bfinjection");
  			iVar0 = 1;
  			break;
  		
  		case 60:
  			*uParam0 = { 1133.21f, 120.2f, 80.9f };
  			uParam0->f_3 = 134.4f;
  			if (func_456())
  			{
  				uParam0->f_4 = joaat("blimp2");
  			}
  			else
  			{
  				uParam0->f_4 = joaat("blimp");
  			}
  			uParam0->f_13 = 401;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 13);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 2);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 1);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 23);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			iVar0 = 1;
  			break;
  		
  		case 61:
  			*uParam0 = { -806.31f, -2679.65f, 13.9f };
  			uParam0->f_3 = 150.54f;
  			if (func_456())
  			{
  				uParam0->f_4 = joaat("blimp2");
  			}
  			else
  			{
  				uParam0->f_4 = joaat("blimp");
  			}
  			uParam0->f_13 = 401;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 13);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 2);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 1);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 23);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			iVar0 = 1;
  			break;
  		
  		case 62:
  			*uParam0 = { 1985.85f, 3828.96f, 31.98f };
  			uParam0->f_3 = -16.58f;
  			uParam0->f_4 = joaat("blazer3");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 63:
  			*uParam0 = { 3870.75f, 4464.67f, 0f };
  			uParam0->f_3 = 0f;
  			uParam0->f_4 = joaat("submersible2");
  			uParam0->f_13 = 308;
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 0);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 21);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 23);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 30);
  			iVar0 = 1;
  			break;
  		
  		case 64:
  			*uParam0 = { 1257.729f, -2564.474f, 41.717f };
  			uParam0->f_3 = 284.5561f;
  			uParam0->f_4 = joaat("dukes2");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 65:
  			*uParam0 = { 643.2823f, 3014.152f, 42.2733f };
  			uParam0->f_3 = 128.0554f;
  			uParam0->f_4 = joaat("dukes2");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 66:
  			*uParam0 = { 38.9368f, 850.8677f, 196.3f };
  			uParam0->f_3 = 311.6813f;
  			uParam0->f_4 = joaat("dodo");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 30);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 23);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 67:
  			*uParam0 = { 1333.875f, 4262.226f, 30.78f };
  			uParam0->f_3 = 262.5293f;
  			uParam0->f_4 = joaat("dodo");
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 30);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 23);
  			unk_0xBE20AB8238688965(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  	}
  	if (unk_0xCE990E643CD9D0E5(uParam0->f_9, 10))
  	{
  		uParam0->f_4 = Global_111858.f_32745.f_69[uParam0->f_14 /*78*/].f_66;
  		if (iParam1 == 14)
  		{
  			if (((((uParam0->f_4 == joaat("miljet") || uParam0->f_4 == joaat("besra")) || uParam0->f_4 == joaat("luxor")) || uParam0->f_4 == joaat("shamal")) || uParam0->f_4 == joaat("titan")) || uParam0->f_4 == joaat("luxor2"))
  			{
  				*uParam0 = { 1678.8f, 3229.6f, 41.8f };
  				uParam0->f_3 = 106.0906f;
  			}
  		}
  		if (!func_359(Global_111858.f_32745.f_1864[uParam0->f_14 /*3*/], 0f, 0f, 0f, 0))
  		{
  			*uParam0 = { Global_111858.f_32745.f_1864[uParam0->f_14 /*3*/] };
  		}
  		if (Global_111858.f_32745.f_1934[uParam0->f_14] != -1f)
  		{
  			uParam0->f_3 = Global_111858.f_32745.f_1934[uParam0->f_14];
  		}
  	}
  	if (unk_0xCE990E643CD9D0E5(uParam0->f_9, 19))
  	{
  		if (!func_359(Global_111858.f_2359.f_539.f_3588[1 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
  		{
  			*uParam0 = { Global_111858.f_2359.f_539.f_3588[1 /*10*/][uParam0->f_12 /*3*/] };
  			uParam0->f_3 = Global_111858.f_2359.f_539.f_3609[1 /*4*/][uParam0->f_12];
  		}
  	}
  	else if (unk_0xCE990E643CD9D0E5(uParam0->f_9, 20))
  	{
  		if (!func_359(Global_111858.f_2359.f_539.f_3588[0 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
  		{
  			*uParam0 = { Global_111858.f_2359.f_539.f_3588[0 /*10*/][uParam0->f_12 /*3*/] };
  			uParam0->f_3 = Global_111858.f_2359.f_539.f_3609[0 /*4*/][uParam0->f_12];
  		}
  	}
  	return iVar0;
  }
  
  void func_462(int iParam0, var uParam1, struct<3> Param2, float fParam3, int iParam4)
  {
  	if (func_461(&(Global_75654.f_555[0 /*21*/]), iParam0))
  	{
  		if (unk_0xCE990E643CD9D0E5(Global_75654.f_555[0 /*21*/].f_9, 10))
  		{
  			func_464(iParam0);
  			func_463(uParam1, &(Global_111858.f_32745.f_69[Global_75654.f_555[0 /*21*/].f_14 /*78*/]));
  			if (unk_0xCE990E643CD9D0E5(Global_75654.f_555[0 /*21*/].f_9, 11))
  			{
  				Global_111858.f_32745.f_1864[Global_75654.f_555[0 /*21*/].f_14 /*3*/] = { Param2 };
  				Global_111858.f_32745.f_1934[Global_75654.f_555[0 /*21*/].f_14] = fParam3;
  			}
  			else
  			{
  				Global_111858.f_32745.f_1864[Global_75654.f_555[0 /*21*/].f_14 /*3*/] = { 0f, 0f, 0f };
  				Global_111858.f_32745.f_1934[Global_75654.f_555[0 /*21*/].f_14] = -1f;
  			}
  			Global_111858.f_32745.f_1958[Global_75654.f_555[0 /*21*/].f_14] = iParam4 + 1;
  			func_179(iParam0, 1);
  		}
  	}
  }
  
  void func_463(var uParam0, var uParam1)
  {
  	uParam1->f_66 = uParam0->f_66;
  	*uParam1 = *uParam0;
  	uParam1->f_1 = { uParam0->f_1 };
  	uParam1->f_5 = uParam0->f_5;
  	uParam1->f_6 = uParam0->f_6;
  	uParam1->f_7 = uParam0->f_7;
  	uParam1->f_8 = uParam0->f_8;
  	uParam1->f_9 = { uParam0->f_9 };
  	uParam1->f_59 = { uParam0->f_59 };
  	uParam1->f_62 = uParam0->f_62;
  	uParam1->f_63 = uParam0->f_63;
  	uParam1->f_64 = uParam0->f_64;
  	uParam1->f_65 = uParam0->f_65;
  	uParam1->f_77 = uParam0->f_77;
  	uParam1->f_67 = uParam0->f_67;
  	uParam1->f_69 = uParam0->f_69;
  	uParam1->f_68 = uParam0->f_68;
  	uParam1->f_71 = uParam0->f_71;
  	uParam1->f_72 = uParam0->f_72;
  	uParam1->f_73 = uParam0->f_73;
  	uParam1->f_74 = uParam0->f_74;
  	uParam1->f_75 = uParam0->f_75;
  	uParam1->f_76 = uParam0->f_76;
  }
  
  void func_464(int iParam0)
  {
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (func_461(&(Global_75654.f_555[0 /*21*/]), iParam0))
  	{
  		if (unk_0xAE06B9E39EBDE049(Global_75654.f_139[iParam0]))
  		{
  			unk_0x4F3C4F457D44BB0F(Global_75654.f_139[iParam0], 1, 1);
  			unk_0xE730EAF558C97567(&(Global_75654.f_139[iParam0]));
  			Global_75654.f_139[iParam0] = 0;
  		}
  		if (unk_0xCE990E643CD9D0E5(Global_75654.f_555[0 /*21*/].f_9, 13))
  		{
  			func_179(iParam0, 0);
  		}
  	}
  }
  
  void func_465(int iParam0)
  {
  	if (iParam0 != 24 && iParam0 != 25)
  	{
  	}
  	func_464(iParam0);
  	func_179(iParam0, 0);
  }
  
  int func_466(struct<3> Param0, int iParam1, var uParam2, var uParam3)
  {
  	int iVar0;
  	
  	iVar0 = func_467(Param0, iParam1, 1);
  	switch (iVar0)
  	{
  		case 0:
  			*uParam2 = { -827.351f, 157.785f, 68.2143f };
  			*uParam3 = 85.1509f;
  			return 1;
  			break;
  		
  		case 1:
  		case 2:
  			*uParam2 = { 1992.523f, 3813.916f, 31.1008f };
  			*uParam3 = 122.1498f;
  			return 1;
  			break;
  		
  		case 3:
  			*uParam2 = { -1184.258f, -1496.556f, 3.3895f };
  			*uParam3 = 303.2098f;
  			return 1;
  			break;
  		
  		case 4:
  			*uParam2 = { 118.1067f, -1325.906f, 28.3706f };
  			*uParam3 = 123.5016f;
  			return 1;
  			break;
  		
  		case 5:
  			*uParam2 = { -18.118f, -1455.126f, 29.5004f };
  			*uParam3 = 273.2822f;
  			return 1;
  			break;
  		
  		case 6:
  			*uParam2 = { 1.5947f, 543.4017f, 173.4644f };
  			*uParam3 = 310.7556f;
  			return 1;
  			break;
  		
  		default:
  			break;
  	}
  	return 0;
  }
  
  int func_467(struct<3> Param0, int iParam1, int iParam2)
  {
  	int iVar0;
  	float fVar1;
  	float fVar2;
  	int iVar3;
  	
  	fVar2 = 1000000f;
  	iVar3 = 10;
  	iVar0 = 0;
  	while (iVar0 <= (10 - 1))
  	{
  		if (Global_93993[iVar0 /*10*/].f_7 != 263)
  		{
  			if (Global_93993[iVar0 /*10*/].f_9 == iParam1 || iParam1 == 145)
  			{
  				if (func_468(iVar0) || iParam2 == 0)
  				{
  					fVar1 = unk_0x272784C60C397DB6(Param0, Global_93993[iVar0 /*10*/].f_3, 1);
  					if (fVar1 < fVar2)
  					{
  						fVar2 = fVar1;
  						iVar3 = iVar0;
  					}
  				}
  			}
  		}
  		iVar0++;
  	}
  	return iVar3;
  }
  
  bool func_468(int iParam0)
  {
  	return unk_0xCE990E643CD9D0E5(Global_111858.f_7225[iParam0], 0);
  }
  
  int func_469(int iParam0)
  {
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	return Global_75654.f_139[iParam0];
  }
  
  void func_470(struct<3> Param0, struct<3> Param1, float fParam2, struct<3> Param3, float fParam4, struct<3> Param5, bool bParam6, bool bParam7, bool bParam8, bool bParam9, bool bParam10)
  {
  	func_471(Param0, Param1, fParam2, Param3, fParam4, Param5, bParam6, bParam7, bParam8, bParam9, bParam10);
  }
  
  void func_471(struct<3> Param0, struct<3> Param1, float fParam2, struct<3> Param3, float fParam4, struct<3> Param5, bool bParam6, bool bParam7, bool bParam8, bool bParam9, bool bParam10)
  {
  	int iVar0;
  	bool bVar1;
  	bool bVar2;
  	int iVar3;
  	struct<3> Var4;
  	struct<3> Var5;
  	struct<3> Var6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	
  	if (bParam7)
  	{
  		bParam7 = false;
  	}
  	bVar2 = true;
  	iVar3 = 0;
  	iVar0 = unk_0xA5D3CD332CD10EE9();
  	if (unk_0xAE06B9E39EBDE049(iVar0))
  	{
  		if (!unk_0x1758275D343D5BA3(iVar0))
  		{
  			unk_0x4F3C4F457D44BB0F(iVar0, 1, 0);
  			iVar3 = 1;
  		}
  		if (unk_0x80FF6C016CDB0FAF(iVar0, 0))
  		{
  			if (bParam10)
  			{
  				func_476(iVar0);
  			}
  			if (unk_0x1037B9D45CE6B788(iVar0, Param0, Param1, fParam2, 0, 1, 0))
  			{
  				bVar1 = true;
  			}
  			else
  			{
  				Var6 = { unk_0x3E4D3CCC220BDFB1(iVar0, 1) };
  				if ((Var6.f_2 > Param0.f_2 && Var6.f_2 < Param1.f_2) || (Var6.f_2 > Param1.f_2 && Var6.f_2 < Param0.f_2))
  				{
  					if (func_473(iVar0, Param0, Param1, fParam2))
  					{
  						bVar1 = true;
  					}
  				}
  			}
  			if (unk_0x80FF6C016CDB0FAF(iVar0, 0))
  			{
  				if (unk_0x68AEFA37A65085FD(iVar0, joaat("taxi")))
  				{
  					if (unk_0x10D3F7E169A49C44(iVar0, -1, 0) != unk_0x9B0761B4C3EB8BC7() && unk_0x10D3F7E169A49C44(iVar0, -1, 0) != 0)
  					{
  						if (unk_0x272784C60C397DB6(Param0 + Param1 / Vector(2f, 2f, 2f), unk_0x3E4D3CCC220BDFB1(iVar0, 1), 1) < 20f)
  						{
  							bVar1 = true;
  							bVar2 = false;
  						}
  					}
  				}
  			}
  			if (bParam8)
  			{
  				if (func_341(iVar0, func_223(), 1))
  				{
  					bVar1 = false;
  				}
  			}
  			if (bVar1)
  			{
  				if (!func_472(Param5))
  				{
  					if (unk_0x80FF6C016CDB0FAF(iVar0, 0))
  					{
  						iVar7 = unk_0x36FE6D3220816ADA(iVar0);
  						unk_0x0CB04CEF35E9B77D(iVar0, &Var4, &Var5);
  						if (unk_0x442D6659150AF4B3(iVar7))
  						{
  							Param5.x = (Param5.x + 3f);
  							Param5.f_1 = (Param5.f_1 + 3f);
  						}
  						if (((iVar7 == joaat("zentorno") || iVar7 == joaat("btype")) || iVar7 == joaat("dubsta3")) || iVar7 == joaat("monster"))
  						{
  							Param5 = { Param5 * Vector(1.1f, 1.1f, 1.1f) };
  						}
  						else if (iVar7 == joaat("t20") || iVar7 == joaat("virgo"))
  						{
  							Param5 = { Param5 * Vector(1.2f, 1.2f, 1.2f) };
  						}
  						if ((Var5.x - Var4.x) > Param5.x)
  						{
  							bVar2 = false;
  						}
  						else if ((Var5.f_1 - Var4.f_1) > Param5.f_1)
  						{
  							bVar2 = false;
  						}
  						else if ((Var5.f_2 - Var4.f_2) > Param5.f_2)
  						{
  							bVar2 = false;
  						}
  					}
  				}
  				if (unk_0x80FF6C016CDB0FAF(iVar0, 0))
  				{
  					if (bVar2)
  					{
  						unk_0xF27E737981AFB47D(Param3, 5f, 0, 0, 0, 0, 0, 0);
  						unk_0xE922BAA80E8F9324(iVar0, fParam4);
  						unk_0x03D382CB0B44E2FC(iVar0, Param3, 1, 0, 0, 1);
  						unk_0xB11D151E210D4FAC(iVar0, 1084227584);
  						if (bParam9)
  						{
  							unk_0xC160551F55D6365A(iVar0, 0, 1, 0);
  							unk_0xFC34FFD7661206B7(iVar0, 1);
  						}
  					}
  					else
  					{
  						if (!unk_0x1758275D343D5BA3(iVar0) || !unk_0x1D2A3118784C0272(iVar0, 1))
  						{
  							unk_0x4F3C4F457D44BB0F(iVar0, 1, 1);
  						}
  						if (unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), iVar0, 0))
  						{
  							unk_0x03D382CB0B44E2FC(unk_0x9B0761B4C3EB8BC7(), unk_0x3E4D3CCC220BDFB1(iVar0, 1), 1, 0, 0, 1);
  						}
  						unk_0x03A2522C845CFAC6(&iVar0);
  					}
  				}
  			}
  			if (bParam6)
  			{
  				unk_0xEDEA748B8197B28A(Param0, Param1, fParam2, 0, 0, 0, 0, 0, 0);
  			}
  			if (iVar3 == 1)
  			{
  				if (unk_0xAE06B9E39EBDE049(iVar0))
  				{
  					if (unk_0x1758275D343D5BA3(iVar0))
  					{
  						unk_0xE730EAF558C97567(&iVar0);
  					}
  				}
  			}
  		}
  		else
  		{
  			if (!unk_0x1758275D343D5BA3(iVar0))
  			{
  				unk_0x4F3C4F457D44BB0F(iVar0, 1, 0);
  			}
  			iVar8 = unk_0x10D3F7E169A49C44(iVar0, -1, 0);
  			if (unk_0xAE06B9E39EBDE049(iVar8) && !unk_0x5AEB5DDFFAD43CA5(iVar8))
  			{
  				unk_0x03D382CB0B44E2FC(iVar8, unk_0x3E4D3CCC220BDFB1(iVar8, 1), 1, 0, 0, 1);
  			}
  			iVar9 = unk_0x112A81273D7187A5(unk_0x36FE6D3220816ADA(iVar0));
  			if (iVar9 <= 2)
  			{
  				iVar8 = unk_0x10D3F7E169A49C44(iVar0, 0, 0);
  				if (unk_0xAE06B9E39EBDE049(iVar8) && !unk_0x5AEB5DDFFAD43CA5(iVar8))
  				{
  					unk_0x03D382CB0B44E2FC(iVar8, unk_0x3E4D3CCC220BDFB1(iVar8, 1), 1, 0, 0, 1);
  				}
  			}
  			if (iVar9 <= 4)
  			{
  				iVar8 = unk_0x10D3F7E169A49C44(iVar0, 1, 0);
  				if (unk_0xAE06B9E39EBDE049(iVar8) && !unk_0x5AEB5DDFFAD43CA5(iVar8))
  				{
  					unk_0x03D382CB0B44E2FC(iVar8, unk_0x3E4D3CCC220BDFB1(iVar8, 1), 1, 0, 0, 1);
  				}
  				iVar8 = unk_0x10D3F7E169A49C44(iVar0, 2, 0);
  				if (unk_0xAE06B9E39EBDE049(iVar8) && !unk_0x5AEB5DDFFAD43CA5(iVar8))
  				{
  					unk_0x03D382CB0B44E2FC(iVar8, unk_0x3E4D3CCC220BDFB1(iVar8, 1), 1, 0, 0, 1);
  				}
  			}
  			unk_0x03A2522C845CFAC6(&iVar0);
  		}
  	}
  }
  
  int func_472(struct<3> Param0)
  {
  	if ((Param0.x == 0f && Param0.f_1 == 0f) && Param0.f_2 == 0f)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_473(int iParam0, struct<3> Param1, struct<3> Param2, float fParam3)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	struct<3> Var2;
  	struct<3> Var3;
  	struct<3> Var4;
  	struct<3> Var5;
  	struct<3> Var6[4];
  	struct<2> Var7;
  	struct<2> Var8;
  	
  	if (unk_0x80FF6C016CDB0FAF(iParam0, 0))
  	{
  		Param1.f_2 = Param2.f_2;
  		Var0 = { func_475(Param1 - Param2) };
  		Var1 = { Var0 };
  		Var0.x = -Var1.f_1;
  		Var0.f_1 = Var1.x;
  		Var0.f_2 = 0f;
  		Var2 = { Param1 - Var0 * FtoV((fParam3 / 2f)) };
  		Var3 = { Param1 + Var0 * FtoV((fParam3 / 2f)) };
  		Var4 = { Param2 - Var0 * FtoV((fParam3 / 2f)) };
  		Var5 = { Param2 + Var0 * FtoV((fParam3 / 2f)) };
  		unk_0x140662B520844E45(unk_0x36FE6D3220816ADA(iParam0), &Var7, &Var8);
  		Var6[0 /*3*/] = { unk_0x7EC595B99EA7C4B1(iParam0, Var7, Var7.f_1, 0f) };
  		Var6[1 /*3*/] = { unk_0x7EC595B99EA7C4B1(iParam0, Var7, Var8.f_1, 0f) };
  		Var6[2 /*3*/] = { unk_0x7EC595B99EA7C4B1(iParam0, Var8, Var7.f_1, 0f) };
  		Var6[3 /*3*/] = { unk_0x7EC595B99EA7C4B1(iParam0, Var8, Var8.f_1, 0f) };
  		if (((((((((((((((func_474(Var6[0 /*3*/], Var6[1 /*3*/], Var2, Var3) || func_474(Var6[0 /*3*/], Var6[1 /*3*/], Var3, Var5)) || func_474(Var6[0 /*3*/], Var6[1 /*3*/], Var4, Var5)) || func_474(Var6[0 /*3*/], Var6[1 /*3*/], Var2, Var4)) || func_474(Var6[1 /*3*/], Var6[3 /*3*/], Var2, Var3)) || func_474(Var6[1 /*3*/], Var6[3 /*3*/], Var3, Var5)) || func_474(Var6[1 /*3*/], Var6[3 /*3*/], Var4, Var5)) || func_474(Var6[1 /*3*/], Var6[3 /*3*/], Var2, Var4)) || func_474(Var6[3 /*3*/], Var6[2 /*3*/], Var2, Var3)) || func_474(Var6[3 /*3*/], Var6[2 /*3*/], Var3, Var5)) || func_474(Var6[3 /*3*/], Var6[2 /*3*/], Var4, Var5)) || func_474(Var6[3 /*3*/], Var6[2 /*3*/], Var2, Var4)) || func_474(Var6[2 /*3*/], Var6[0 /*3*/], Var2, Var3)) || func_474(Var6[2 /*3*/], Var6[0 /*3*/], Var3, Var5)) || func_474(Var6[2 /*3*/], Var6[0 /*3*/], Var4, Var5)) || func_474(Var6[2 /*3*/], Var6[0 /*3*/], Var2, Var4))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_474(struct<2> Param0, var uParam1, struct<2> Param2, var uParam3, struct<2> Param4, var uParam5, struct<2> Param6, var uParam7)
  {
  	float fVar0;
  	float fVar1;
  	float fVar2;
  	float fVar3;
  	float fVar4;
  	float fVar5;
  	float fVar6;
  	float fVar7;
  	float fVar8;
  	float fVar9;
  	float fVar10;
  	float fVar11;
  	float fVar12;
  	float fVar13;
  	
  	fVar0 = Param0;
  	fVar1 = Param0.f_1;
  	fVar2 = Param2;
  	fVar3 = Param2.f_1;
  	fVar4 = Param4;
  	fVar5 = Param4.f_1;
  	fVar6 = Param6;
  	fVar7 = Param6.f_1;
  	fVar8 = (fVar2 - fVar0);
  	fVar9 = (fVar3 - fVar1);
  	fVar10 = (fVar6 - fVar4);
  	fVar11 = (fVar7 - fVar5);
  	fVar12 = (((-fVar9 * (fVar0 - fVar4)) + (fVar8 * (fVar1 - fVar5))) / ((-fVar10 * fVar9) + (fVar8 * fVar11)));
  	fVar13 = (((fVar10 * (fVar1 - fVar5)) - (fVar11 * (fVar0 - fVar4))) / ((-fVar10 * fVar9) + (fVar8 * fVar11)));
  	if (((fVar12 >= 0f && fVar12 <= 1f) && fVar13 >= 0f) && fVar13 <= 1f)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  Vector3 func_475(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_476(int iParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(iParam0))
  	{
  		if (unk_0x80FF6C016CDB0FAF(iParam0, 0))
  		{
  			if (unk_0xDAD5E5518E960CD1(iParam0) <= 200f)
  			{
  				unk_0x0FC504FAF5EB94FB(iParam0, 500f);
  			}
  			if (unk_0x6167DCEE85C18365(iParam0) <= 700f)
  			{
  				unk_0x0FC504FAF5EB94FB(iParam0, 900f);
  			}
  			if (unk_0x4F5F2FB7AE0EB7AB(iParam0) < 200)
  			{
  				unk_0x0FC504FAF5EB94FB(iParam0, 500f);
  			}
  		}
  	}
  }
  
  void func_477()
  {
  	int iVar0;
  	
  	iVar0 = func_201();
  	if (iVar0 == -1)
  	{
  		return;
  	}
  	Global_110945[iVar0 /*10*/] = 1;
  }
  
  void func_478(int iParam0, int iParam1, int iParam2)
  {
  	func_585(0, 0, iParam2, 1);
  	if (iParam0 == 1)
  	{
  		unk_0x7965943E39128B42(0f, 1065353216);
  		unk_0x4C4FC7841A5FB983(0f);
  	}
  	if (iParam1 == 1)
  	{
  		func_237(500, 0);
  	}
  }
  
  void func_479(int iParam0)
  {
  	Global_77091 = iParam0;
  }
  
  int func_480(int iParam0, float fParam1, int iParam2)
  {
  	int iVar0;
  	
  	iVar0 = 1;
  	if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  	{
  		if ((!unk_0x94BF5C4EB0D40E9E(unk_0x9B0761B4C3EB8BC7()) && !unk_0xDF1110AC39C733FE(unk_0x9B0761B4C3EB8BC7())) && !unk_0xAABDC18B9F6EC79D(unk_0x9B0761B4C3EB8BC7()))
  		{
  			if (!func_485(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0), fParam1, 1, 1056964608, 0, 1, 0))
  			{
  				iVar0 = 0;
  			}
  			else if (iParam2 == 1)
  			{
  				iVar0 = 0;
  				if (!func_483(unk_0x9B0761B4C3EB8BC7(), -828834893))
  				{
  					unk_0x0AB756271BADC8DF(unk_0x9B0761B4C3EB8BC7(), 0, 0);
  				}
  			}
  			if (unk_0xA16974805191D19C(unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0)))
  			{
  				iVar0 = 0;
  			}
  		}
  	}
  	func_482();
  	if (func_210())
  	{
  		func_408();
  		iVar0 = 0;
  	}
  	if (iVar0 == 0)
  	{
  		return 0;
  	}
  	if (iParam0 == 1)
  	{
  		if (!func_481())
  		{
  			return 0;
  		}
  	}
  	if (unk_0x6A5CC4A2C9D9ED8D())
  	{
  		unk_0xBE4122AC23440E7D(0);
  	}
  	return 1;
  }
  
  bool func_481()
  {
  	bool bVar0;
  	
  	bVar0 = unk_0x9893D61ACB9FB52A();
  	if (!Global_76832)
  	{
  		if (!bVar0)
  		{
  			Global_76832 = 1;
  		}
  	}
  	return bVar0;
  }
  
  void func_482()
  {
  	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);
  }
  
  int func_483(int iParam0, int iParam1)
  {
  	if (func_484(iParam0))
  	{
  		if (unk_0x16BC17A8EDC701A2(iParam0, iParam1) == 1 || unk_0x16BC17A8EDC701A2(iParam0, iParam1) == 0)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_484(int iParam0)
  {
  	if (func_235(uParam0))
  	{
  		if (!unk_0x5AEB5DDFFAD43CA5(uParam0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_485(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_486(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_486(int iParam0)
  {
  	if (!unk_0xA59F96B50B97E63C(iParam0, 0))
  	{
  		if (unk_0xAADB7E66E4BD2B67(iParam0))
  		{
  			if (unk_0xC1067169688057A8(iParam0))
  			{
  				unk_0x348DC18FDCA78997(iParam0, 0);
  			}
  		}
  	}
  }
  
  void func_487(char* sParam0, bool bParam1)
  {
  	func_239(bParam1);
  	unk_0x85D9FC15836825C1(sParam0, 8);
  }
  
  void func_488()
  {
  	float fVar0;
  	
  	func_489();
  	if (func_235(iLocal_69))
  	{
  		if (unk_0x9934470AA0A08B57(iLocal_69, "rcmnigel3", "base", 3))
  		{
  			fVar0 = unk_0x4C06B15B376AA145(iLocal_69, "rcmnigel3", "base");
  			if (fVar0 > 0.97f || fVar0 < 0.03f)
  			{
  				iLocal_55 = 2;
  				iLocal_56 = 0;
  			}
  			else if (func_319(unk_0x9B0761B4C3EB8BC7(), iLocal_69, 2.5f, 1))
  			{
  				iLocal_55 = 2;
  				iLocal_56 = 0;
  			}
  		}
  		else if (func_319(unk_0x9B0761B4C3EB8BC7(), iLocal_69, 5f, 1))
  		{
  			iLocal_55 = 2;
  			iLocal_56 = 0;
  		}
  	}
  }
  
  void func_489()
  {
  	func_491(0);
  	func_482();
  	func_490();
  }
  
  void func_490()
  {
  	if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  	{
  		if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  		{
  			if (func_485(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);
  				}
  			}
  		}
  	}
  }
  
  void func_491(int iParam0)
  {
  	if (func_495())
  	{
  		return;
  	}
  	if (!Global_19681.f_1 == 1)
  	{
  		if (func_310(0))
  		{
  			func_492(iParam0);
  		}
  		unk_0xBE20AB8238688965(&Global_7552, 2);
  	}
  }
  
  void func_492(int iParam0)
  {
  	if (func_495())
  	{
  		return;
  	}
  	if (Global_19864)
  	{
  		if (func_494())
  		{
  			func_493(1, 1);
  		}
  		else
  		{
  			func_493(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_220())
  	{
  		Global_19681.f_1 = 3;
  	}
  }
  
  void func_493(bool bParam0, bool bParam1)
  {
  	if (bParam0)
  	{
  		if (func_310(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_494()
  {
  	return unk_0xCE990E643CD9D0E5(Global_1689730, 5);
  }
  
  bool func_495()
  {
  	return unk_0xCE990E643CD9D0E5(Global_1689730, 19);
  }
  
  void func_496()
  {
  	if (unk_0x306BF588BD8151E8("NIGEL_03_MIX_SETTINGS"))
  	{
  		unk_0xFA07F8BEBDAAFBA8("NIGEL_03_MIX_SETTINGS");
  	}
  	if (!unk_0x306BF588BD8151E8("NIGEL_03_JOURNEY_MIX"))
  	{
  		unk_0x17E478571720218F("NIGEL_03_JOURNEY_MIX");
  	}
  	func_497();
  	unk_0x85D9FC15836825C1("NMT_3_RCM", 8);
  	func_489();
  	iLocal_55 = 1;
  	iLocal_56 = 0;
  }
  
  void func_497()
  {
  	unk_0x131ED02492676000(sLocal_72);
  	iLocal_76 = 1;
  	iLocal_74 = 1;
  }
  
  void func_498()
  {
  }
  
  void func_499()
  {
  	if (iLocal_318 && iLocal_55 != 14)
  	{
  		switch (iLocal_316)
  		{
  			case 0:
  				if (iLocal_55 != 0 && iLocal_55 != 2)
  				{
  					if (func_235(iLocal_69) && func_235(iLocal_70))
  					{
  						func_228(&uLocal_115, 4, iLocal_69, "NIGEL", 0, 1);
  						unk_0x694113444F21E39F(iLocal_69, 185, 1);
  						unk_0x5A5A1DD32AC33C2B(iLocal_69, 0);
  						unk_0xA785552633ED203B(iLocal_69, unk_0x9B0761B4C3EB8BC7(), -1, 0, 2);
  						unk_0xCBA6B2B569DCAFD8(iLocal_69, 1);
  						func_228(&uLocal_115, 3, iLocal_70, "MRSTHORNHILL", 0, 1);
  						unk_0x694113444F21E39F(iLocal_70, 185, 1);
  						unk_0x5A5A1DD32AC33C2B(iLocal_70, 0);
  						iLocal_321 = unk_0x578C4EF320340AF7();
  						unk_0xDE8F8016287F771F("FRIENDLIES", &iLocal_81);
  						unk_0xEFBCE8F8316F89EA(1, iLocal_81, 1862763509);
  						unk_0xEFBCE8F8316F89EA(1, 1862763509, iLocal_81);
  						if (unk_0x7DA97DBB7F7D2DE5(iLocal_69))
  						{
  							unk_0x59478CBBF96AF7D1(iLocal_69);
  						}
  						unk_0xD3D9D7C84656DAE5(iLocal_69, iLocal_81);
  						if (unk_0x7DA97DBB7F7D2DE5(iLocal_70))
  						{
  							unk_0x59478CBBF96AF7D1(iLocal_70);
  						}
  						unk_0xD3D9D7C84656DAE5(iLocal_70, iLocal_81);
  						iLocal_82 = 1;
  						iLocal_320 = 0;
  						iLocal_323 = 0;
  						iLocal_316 = 1;
  					}
  				}
  				break;
  			
  			case 1:
  				if (!func_523())
  				{
  					iLocal_316 = 2;
  				}
  				else if (!func_319(unk_0x9B0761B4C3EB8BC7(), iLocal_69, 100f, 1) && !func_319(unk_0x9B0761B4C3EB8BC7(), iLocal_70, 100f, 1))
  				{
  					iLocal_317 = 0;
  					iLocal_316 = 2;
  				}
  				else if (!iLocal_79)
  				{
  					if (func_505(iLocal_69, 1, 1116471296, 1126825984, 0, 0, 0, 0) || func_505(iLocal_70, 1, 1116471296, 1126825984, 0, 0, 0, 0))
  					{
  						unk_0x9B94F6169B0DAEFD(iLocal_69);
  						unk_0x8B18A80E8EB15510(iLocal_69, unk_0x9B0761B4C3EB8BC7(), 120f, -1, 0, 0);
  						unk_0xCBA6B2B569DCAFD8(iLocal_69, 1);
  						unk_0x756D74A3EF0AB788(iLocal_70, sLocal_72, "Cower_Enter_MsT", 16f, -16f, -1, 0, 0, 0, 0, 0);
  						unk_0xCBA6B2B569DCAFD8(iLocal_70, 1);
  						if (iLocal_315 == 2 && func_210())
  						{
  							func_281();
  						}
  						iLocal_317 = 1;
  						iLocal_316 = 2;
  						iLocal_79 = 1;
  						break;
  					}
  					else if (unk_0xA65352E7FEA59881(iLocal_69, Local_63))
  					{
  						if (func_210())
  						{
  							if (func_503() == 3 || func_503() == 4)
  							{
  								func_281();
  							}
  							else
  							{
  								func_398();
  							}
  						}
  						unk_0xF3FE01181D2D2479(iLocal_69, 750, 2000, 1, 1, 1, 0);
  						unk_0x8B18A80E8EB15510(iLocal_69, unk_0x9B0761B4C3EB8BC7(), 120f, -1, 0, 0);
  						unk_0x8B18A80E8EB15510(iLocal_70, unk_0x9B0761B4C3EB8BC7(), 120f, -1, 0, 0);
  						iLocal_317 = 1;
  						iLocal_316 = 2;
  					}
  					else if (unk_0xA65352E7FEA59881(iLocal_70, Local_63))
  					{
  						if (func_210())
  						{
  							if (func_503() == 3 || func_503() == 4)
  							{
  								func_281();
  							}
  							else
  							{
  								func_398();
  							}
  						}
  						unk_0xF3FE01181D2D2479(iLocal_70, 750, 2000, 1, 1, 1, 0);
  						unk_0x8B18A80E8EB15510(iLocal_69, unk_0x9B0761B4C3EB8BC7(), 120f, -1, 0, 0);
  						unk_0x8B18A80E8EB15510(iLocal_70, unk_0x9B0761B4C3EB8BC7(), 120f, -1, 0, 0);
  						iLocal_317 = 1;
  						iLocal_316 = 2;
  					}
  					else
  					{
  						switch (iLocal_315)
  						{
  							case 0:
  								if (func_235(iLocal_70))
  								{
  									if (func_280(&uLocal_115, "NIGE3AU", "NIGEL3_N0", 7, 1, 0, 0))
  									{
  										iLocal_315 = 1;
  									}
  								}
  								break;
  							
  							case 1:
  								if (iLocal_320 < 3)
  								{
  									if (!func_210() && func_235(unk_0x9B0761B4C3EB8BC7()))
  									{
  										if ((unk_0x578C4EF320340AF7() - iLocal_321) > 20000 && func_401(unk_0x9B0761B4C3EB8BC7(), Local_84, 30f))
  										{
  											if (func_318("N3DRIVE", 0, 0) || func_318("N3RTCAR", 0, 0))
  											{
  												if (func_280(&uLocal_115, Local_319[iLocal_320 /*8*/], Local_319[iLocal_320 /*8*/].f_1, 7, 1, 0, 0))
  												{
  													iLocal_315 = 2;
  												}
  											}
  											else if (func_280(&uLocal_115, Local_319[iLocal_320 /*8*/], Local_319[iLocal_320 /*8*/].f_1, 7, 0, 0, 0))
  											{
  												iLocal_315 = 2;
  											}
  										}
  									}
  								}
  								else if (iLocal_323 < 6)
  								{
  									if (!func_210() && func_235(unk_0x9B0761B4C3EB8BC7()))
  									{
  										if (((unk_0x578C4EF320340AF7() - iLocal_321) > 20000 && func_401(unk_0x9B0761B4C3EB8BC7(), Local_84, 30f)) && (unk_0xFCBF95335DD16537(203) == 0 || !func_318("N3DRIVE", 0, 0)))
  										{
  											if (func_502(&uLocal_115, "NIGE3AU", "NIGEL3_DAWD", sLocal_322[iLocal_323], 7, 0, 0))
  											{
  												iLocal_323++;
  												iLocal_315 = 2;
  											}
  										}
  									}
  								}
  								else
  								{
  									iLocal_315 = 5;
  								}
  								break;
  							
  							case 2:
  								if (!func_401(unk_0x9B0761B4C3EB8BC7(), Local_84, 35f))
  								{
  									func_419(&uLocal_324);
  									func_398();
  									iLocal_315 = 4;
  								}
  								else
  								{
  									func_406(&uLocal_324, &uLocal_115, "NIGE3AU", &sLocal_325, &cLocal_331);
  								}
  								if (!func_210())
  								{
  									iLocal_315 = 4;
  								}
  								break;
  							
  							case 4:
  								iLocal_321 = unk_0x578C4EF320340AF7();
  								iLocal_320++;
  								iLocal_315 = 1;
  								break;
  							
  							case 5:
  								break;
  							}
  						}
  				}
  				break;
  			
  			case 2:
  				func_501();
  				switch (iLocal_317)
  				{
  					case 5:
  						sLocal_378 = "N3MRSTDEAD";
  						iLocal_55 = 13;
  						iLocal_56 = 0;
  						break;
  					
  					case 4:
  						sLocal_378 = "N3MRSTHURT";
  						iLocal_55 = 13;
  						iLocal_56 = 0;
  						break;
  					
  					case 3:
  						sLocal_378 = "N3NIGEDEAD";
  						iLocal_55 = 13;
  						iLocal_56 = 0;
  						break;
  					
  					case 2:
  						sLocal_378 = "N3NIGEHURT";
  						iLocal_55 = 13;
  						iLocal_56 = 0;
  						break;
  					
  					case 1:
  						sLocal_378 = "N3SCARED";
  						iLocal_55 = 13;
  						iLocal_56 = 0;
  						break;
  					
  					case 0:
  						if (!func_210() && iLocal_318)
  						{
  							iLocal_318 = 0;
  							func_500(&uLocal_115, 4);
  							func_500(&uLocal_115, 3);
  							if (iLocal_82)
  							{
  								unk_0xF4F95D084B662764(iLocal_81);
  								iLocal_82 = 0;
  							}
  							func_581(&iLocal_69);
  							func_205(&iLocal_71);
  							func_581(&iLocal_70);
  						}
  						break;
  				}
  				break;
  			}
  	}
  }
  
  void func_500(var uParam0, int iParam1)
  {
  	if ((uParam0[iParam1 /*10*/])->f_7 == 1)
  	{
  		(uParam0[iParam1 /*10*/])->f_7 = 0;
  	}
  }
  
  void func_501()
  {
  	unk_0x1082C25039B168F8(sLocal_72);
  }
  
  bool func_502(var uParam0, char* sParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6)
  {
  	func_227(uParam0, 145, sParam1, iParam5, iParam6, 0);
  	if (iParam4 > 7)
  	{
  		if (iParam4 < 12)
  		{
  			iParam4 = 7;
  		}
  	}
  	Global_21012 = 0;
  	Global_21019 = 0;
  	Global_21014 = 0;
  	Global_21996 = 1;
  	Global_21998 = 0;
  	Global_22002 = 0;
  	StringCopy(&Global_22009, sParam3, 24);
  	Global_2621441 = 0;
  	return func_212(sParam2, iParam4, 0);
  }
  
  int func_503()
  {
  	int iVar0;
  	char cVar1[24];
  	char* sVar2;
  	
  	if (Global_21005 == 4)
  	{
  		iVar0 = unk_0x68CB238A579603D3();
  		iVar0 = (iVar0 + Global_22015);
  		if (iVar0 > -1)
  		{
  			if (unk_0x3030AE9FCF1BC243(&(Global_19873[iVar0 /*6*/])))
  			{
  				cVar1 = { Global_20624 };
  				StringConCat(&cVar1, "SL", 24);
  				sVar2 = unk_0xFBDA18DDC065F747(unk_0x7C774D8CB8DC6FE3(&cVar1), iVar0 * 3, iVar0 * 3 + 1);
  				return func_504(sVar2);
  			}
  			else
  			{
  				return -1;
  			}
  		}
  		else
  		{
  			return -2;
  		}
  	}
  	return -3;
  }
  
  int func_504(char* sParam0)
  {
  	if (unk_0xF005CCA4263DF67F(sParam0, "0"))
  	{
  		return 0;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "1"))
  	{
  		return 1;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "2"))
  	{
  		return 2;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "3"))
  	{
  		return 3;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "4"))
  	{
  		return 4;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "5"))
  	{
  		return 5;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "6"))
  	{
  		return 6;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "7"))
  	{
  		return 7;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "8"))
  	{
  		return 8;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "9"))
  	{
  		return 9;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "A"))
  	{
  		return 10;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "B"))
  	{
  		return 11;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "C"))
  	{
  		return 12;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "D"))
  	{
  		return 13;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "E"))
  	{
  		return 14;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "F"))
  	{
  		return 15;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "G"))
  	{
  		return 16;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "H"))
  	{
  		return 17;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "I"))
  	{
  		return 18;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "J"))
  	{
  		return 19;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "K"))
  	{
  		return 20;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "L"))
  	{
  		return 21;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "M"))
  	{
  		return 22;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "N"))
  	{
  		return 23;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "O"))
  	{
  		return 24;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "P"))
  	{
  		return 25;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "Q"))
  	{
  		return 26;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "R"))
  	{
  		return 27;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "S"))
  	{
  		return 28;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "T"))
  	{
  		return 29;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "U"))
  	{
  		return 30;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "V"))
  	{
  		return 31;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "W"))
  	{
  		return 32;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "X"))
  	{
  		return 33;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "Y"))
  	{
  		return 34;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "Z"))
  	{
  		return 35;
  	}
  	if (unk_0xF005CCA4263DF67F(sParam0, "z"))
  	{
  		return -1;
  	}
  	return -1;
  }
  
  int func_505(int iParam0, bool bParam1, float fParam2, float fParam3, bool bParam4, bool bParam5, bool bParam6, bool bParam7)
  {
  	struct<3> Var0;
  	
  	if (func_235(unk_0x9B0761B4C3EB8BC7()) && func_235(iParam0))
  	{
  		if (unk_0xCDF860E56BBCC6B4(iParam0, unk_0x9B0761B4C3EB8BC7(), 1))
  		{
  			return 1;
  		}
  		if (func_518(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_517(unk_0x9B0761B4C3EB8BC7(), iParam0, fParam2);
  				}
  			}
  		}
  		if (bParam4)
  		{
  			return 0;
  		}
  		else if (func_506(iParam0, fParam3))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_506(int iParam0, float fParam1)
  {
  	float fVar0;
  	
  	if (func_235(unk_0x9B0761B4C3EB8BC7()) && func_235(iParam0))
  	{
  		if (func_516(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_507(iParam0, fParam1))
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  bool func_507(int iParam0, float fParam1)
  {
  	return func_508(iParam0, unk_0x9B0761B4C3EB8BC7(), fParam1, 1, 250, 7);
  }
  
  bool func_508(int iParam0, int iParam1, float fParam2, int iParam3, int iParam4, int iParam5)
  {
  	var uVar0;
  	struct<3> Var1;
  	int iVar2;
  	
  	iVar2 = func_515(iParam0, iParam1);
  	if (!func_235(iParam0) || !func_235(iParam1))
  	{
  		if (iVar2 != -1)
  		{
  			func_514(&(Local_35[iVar2 /*4*/]));
  		}
  		return 0;
  	}
  	if (!func_512(iParam0, iParam1, fParam2, iParam3))
  	{
  		return 0;
  	}
  	if (iVar2 == -1)
  	{
  		iVar2 = func_511();
  		if (iVar2 == -1)
  		{
  			return 0;
  		}
  		Local_35[iVar2 /*4*/].f_1 = iParam0;
  		Local_35[iVar2 /*4*/].f_2 = iParam1;
  	}
  	Var1 = { unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 0f, 0f) };
  	uVar0 = func_509(&(Local_35[iVar2 /*4*/]), Var1, iParam1, &(Local_35[iVar2 /*4*/].f_3), iParam0, iParam5);
  	return (uVar0 || (unk_0x578C4EF320340AF7() - Local_35[iVar2 /*4*/].f_3) < iParam4);
  }
  
  int func_509(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_235(iParam2))
  	{
  		*uParam0 = 0;
  		return 0;
  	}
  	if (*uParam0 == 0)
  	{
  		Var1 = { func_510(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_235(iVar3);
  		if (unk_0x9048E8838E822F21(iVar3) == iParam2)
  		{
  			if (bLocal_36)
  			{
  				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_235(iVar3);
  		if (unk_0x47DBF174A0CB9D55(iParam2, 0))
  		{
  			if (unk_0xEA90A5DC55A2F652(iVar3) == unk_0xA5D5B1042E8F47BD(iParam2, 0))
  			{
  				if (bLocal_36)
  				{
  					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_510(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_511()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < Local_35)
  	{
  		if ((Local_35[iVar0 /*4*/] == 0 && Local_35[iVar0 /*4*/].f_1 == 0) && Local_35[iVar0 /*4*/].f_2 == 0)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_512(int iParam0, int iParam1, float fParam2, int iParam3)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	float fVar2;
  	
  	Var0 = { func_475(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_475(unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 5f, 0f) - unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 0f, 0f)) };
  	}
  	fVar2 = func_513(Var1, Var0);
  	if (fVar2 <= SYSTEM::COS((fParam2 / 2f)))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  float func_513(struct<3> Param0, struct<3> Param1)
  {
  	return (((Param0.x * Param1.x) + (Param0.f_1 * Param1.f_1)) + (Param0.f_2 * Param1.f_2));
  }
  
  void func_514(var uParam0)
  {
  	*uParam0 = 0;
  	uParam0->f_1 = 0;
  	uParam0->f_2 = 0;
  	uParam0->f_3 = 0;
  }
  
  int func_515(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < Local_35)
  	{
  		if (Local_35[iVar0 /*4*/].f_1 == iParam0 && Local_35[iVar0 /*4*/].f_2 == iParam1)
  		{
  			return iVar0;
  		}
  		iVar0++;
  	}
  	return -1;
  }
  
  int func_516(int iParam0)
  {
  	if (unk_0x2311EB213A0CB707(unk_0x460153A63B9477BC(), iParam0) && unk_0xC0A3F78AF5448915(unk_0x9B0761B4C3EB8BC7(), 6))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_517(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_518(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_235(unk_0x9B0761B4C3EB8BC7()) && func_235(iParam0))
  	{
  		unk_0x1386E5E658CE3032(unk_0x9B0761B4C3EB8BC7(), &iVar2, 1);
  		if (iVar2 == joaat("weapon_petrolcan"))
  		{
  			fVar0 = 3f;
  			fVar1 = 3f;
  		}
  		if (!bParam2)
  		{
  			if (func_522(iParam0, bParam1, fVar0, fVar1))
  			{
  				return 1;
  			}
  			if (func_519(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_522(iParam0, bParam1, fVar0, fVar1))
  				{
  					return 1;
  				}
  			}
  			if (func_519(iParam0, fVar1, bParam3, bParam4))
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_519(int iParam0, float fParam1, bool bParam2, bool bParam3)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	
  	Var0 = { unk_0x3E4D3CCC220BDFB1(iParam0, 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_520(iParam0, fParam1))
  				{
  					return 1;
  				}
  				else
  				{
  					return 0;
  				}
  			}
  			return 1;
  		}
  	}
  	else
  	{
  		if (bParam3)
  		{
  			if (func_520(iParam0, fParam1))
  			{
  				return 1;
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		if (unk_0x5AC0C31BB5BC0343(Var0, Var1, 1))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_520(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_521(uParam0, Var1, 90f, 0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_521(int iParam0, struct<3> Param1, float fParam2, int iParam3)
  {
  	struct<3> Var0;
  	struct<3> Var1;
  	float fVar2;
  	
  	Var0 = { func_475(Param1 - unk_0x3E4D3CCC220BDFB1(uParam0, 1)) };
  	if (fParam2 < 0.1f || fParam2 > 360f)
  	{
  		return 1;
  	}
  	if (iParam3 == 0)
  	{
  		Var1 = { unk_0x2E6A35AC161797A7(iParam0) };
  	}
  	else
  	{
  		Var1 = { func_475(unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 5f, 0f) - unk_0x1D5C49FCA9BC5B02(iParam0, 31086, 0f, 0f, 0f)) };
  	}
  	fVar2 = func_513(Var1, Var0);
  	if (fVar2 <= SYSTEM::COS((fParam2 / 2f)))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_522(int iParam0, bool bParam1, float fParam2, float fParam3)
  {
  	if (bParam1)
  	{
  		if (unk_0x7922FF28ED63354A(unk_0x9B0761B4C3EB8BC7()))
  		{
  			if (unk_0x910DFF8E55ABB8EC(unk_0x9B0761B4C3EB8BC7(), iParam0, fParam3, fParam3, fParam3, 0, 1, 0))
  			{
  				return 1;
  			}
  		}
  	}
  	if (unk_0xC7EB33BFDB436C87(unk_0x3E4D3CCC220BDFB1(iParam0, 1), fParam2, 1))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_523()
  {
  	if (unk_0xAE06B9E39EBDE049(iLocal_69))
  	{
  		if (unk_0xA59F96B50B97E63C(iLocal_69, 0))
  		{
  			iLocal_317 = 3;
  			return 0;
  		}
  		else if (unk_0xCDF860E56BBCC6B4(iLocal_69, unk_0x9B0761B4C3EB8BC7(), 1))
  		{
  			iLocal_317 = 2;
  			return 0;
  		}
  	}
  	else
  	{
  		iLocal_317 = 2;
  		return 0;
  	}
  	if (unk_0xAE06B9E39EBDE049(iLocal_70))
  	{
  		if (unk_0xA59F96B50B97E63C(iLocal_70, 0))
  		{
  			iLocal_317 = 5;
  			return 0;
  		}
  		else if (unk_0xCDF860E56BBCC6B4(iLocal_70, unk_0x9B0761B4C3EB8BC7(), 1))
  		{
  			iLocal_317 = 4;
  			return 0;
  		}
  	}
  	else
  	{
  		iLocal_317 = 4;
  		return 0;
  	}
  	return 1;
  }
  
  int func_524()
  {
  	if (!func_235(unk_0x9B0761B4C3EB8BC7()))
  	{
  		sLocal_378 = "DEFAULT";
  		iLocal_55 = 13;
  		iLocal_56 = 0;
  		return 1;
  	}
  	if ((((((iLocal_55 != 0 && iLocal_55 != 1) && iLocal_55 != 2) && iLocal_55 != 9) && iLocal_55 != 7) && iLocal_55 != 10) && iLocal_55 != 14)
  	{
  		if (!func_235(Local_63))
  		{
  			iLocal_55 = 12;
  			iLocal_56 = 0;
  			return 0;
  		}
  		else if (unk_0xAE06B9E39EBDE049(iLocal_68) && !func_235(iLocal_68))
  		{
  			iLocal_55 = 12;
  			iLocal_56 = 0;
  			return 0;
  		}
  		else if (func_525())
  		{
  			sLocal_378 = "N3STUCK";
  			iLocal_55 = 13;
  			iLocal_56 = 0;
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_525()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	if (unk_0x1ADEE74BA60EE218(Local_63))
  	{
  		if (iLocal_66)
  		{
  			if ((unk_0x578C4EF320340AF7() - iLocal_67) > 7000)
  			{
  				iVar0 = 1;
  			}
  		}
  		else
  		{
  			iLocal_66 = 1;
  			iLocal_67 = unk_0x578C4EF320340AF7();
  		}
  	}
  	else
  	{
  		if (iLocal_66)
  		{
  		}
  		iLocal_66 = 0;
  	}
  	return iVar0;
  }
  
  void func_526()
  {
  	switch (iLocal_56)
  	{
  		case 0:
  			func_248(&uLocal_107);
  			unk_0xB80B2936A29B2666();
  			if (unk_0x7BCC91F3C1CF24E8(sLocal_378))
  			{
  				sLocal_378 = "DEFAULT";
  			}
  			if (unk_0xF005CCA4263DF67F(sLocal_378, "DEFAULT"))
  			{
  				func_586(1);
  			}
  			else
  			{
  				func_529(sLocal_378, 1);
  			}
  			iLocal_56 = 1;
  			break;
  		
  		case 1:
  			if (func_528())
  			{
  				if (bLocal_338)
  				{
  					func_527(2555.932f, 1645.358f, 27.9926f, 89f);
  				}
  				func_281();
  				func_581(&iLocal_68);
  				func_581(&iLocal_69);
  				func_205(&iLocal_71);
  				func_581(&iLocal_70);
  				if (unk_0xAE06B9E39EBDE049(Local_63))
  				{
  					unk_0x54123F77C25DD02B(Local_63);
  				}
  				func_439(&Local_63);
  				if (unk_0xAE06B9E39EBDE049(Local_314))
  				{
  					unk_0x456CF97E8766439B(&Local_314);
  				}
  				func_583();
  			}
  			break;
  	}
  }
  
  void func_527(struct<3> Param0, float fParam1)
  {
  	if (func_359(Global_77073, 0f, 0f, 0f, 0))
  	{
  		Global_77073 = { Param0 };
  		Global_77076 = fParam1;
  	}
  }
  
  int func_528()
  {
  	if (Global_3)
  	{
  		return 1;
  	}
  	if (Global_98955 == 7 || Global_98955 == 8)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_529(char* sParam0, bool bParam1)
  {
  	func_530(sParam0);
  	func_586(bParam1);
  }
  
  void func_530(char* sParam0)
  {
  	if (!unk_0x7BCC91F3C1CF24E8(sParam0))
  	{
  		if (unk_0x984EC4F65F95F1DF(sParam0) <= 16)
  		{
  			StringCopy(&Global_77065, sParam0, 16);
  			StringCopy(&Global_77069, "", 16);
  			if (unk_0xCF9EB097E33B913A())
  			{
  				unk_0xCC8906A635D85E47();
  			}
  		}
  	}
  }
  
  void func_531(struct<6> Param0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)
  {
  	float fVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	struct<2> Var4;
  	float fVar5;
  	float fVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	var uVar10;
  	int iVar11;
  	
  	if (Global_77087 != 6)
  	{
  		if (Global_77089 == -1)
  		{
  			if (func_542(1, Param0))
  			{
  				if (Global_77090 == 3)
  				{
  					fVar0 = 1.5f;
  				}
  				else
  				{
  					fVar0 = 2.5f;
  				}
  				if (fLocal_21 > fVar0)
  				{
  					Global_77089 = unk_0x578C4EF320340AF7();
  					Local_22 = { unk_0x56BEF121598EC49F(15) };
  					fLocal_21 = 0f;
  				}
  				else
  				{
  					fLocal_21 = (fLocal_21 + unk_0x9E3DAF75EFC49F5B());
  				}
  			}
  			else
  			{
  				fLocal_21 = 0f;
  			}
  		}
  		else
  		{
  			if (!func_542(0, Param0))
  			{
  				Global_77089 = (unk_0x578C4EF320340AF7() - 9000);
  			}
  			unk_0x4CB4237D8858ADA6(7);
  			unk_0x4CB4237D8858ADA6(6);
  			unk_0x4CB4237D8858ADA6(8);
  			unk_0x4CB4237D8858ADA6(9);
  			iVar1 = (unk_0x578C4EF320340AF7() - Global_77089);
  			if (iVar1 < 9000 && !unk_0x03DB5C6AABF8DA46())
  			{
  				iVar2 = 255;
  				if (iVar1 < 1000)
  				{
  					iVar2 = SYSTEM::CEIL(((SYSTEM::TO_FLOAT(iVar1) / 1000f) * 255f));
  				}
  				else
  				{
  					iVar3 = (9000 - iVar1);
  					if (iVar3 < 1000)
  					{
  						iVar2 = SYSTEM::CEIL(((SYSTEM::TO_FLOAT(iVar3) / 1000f) * 255f));
  					}
  				}
  				switch (Global_77087)
  				{
  					case 3:
  					case 5:
  						if (iParam1 == 1)
  						{
  							fVar5 = 0f;
  							fVar6 = -0.07f;
  						}
  						else if (iParam2 == 1)
  						{
  							fVar5 = 0f;
  							fVar6 = -0.077f;
  						}
  						else if (iParam3 == 1)
  						{
  							fVar5 = 0f;
  							fVar6 = -0.05f;
  						}
  						else if (iParam4 == 1)
  						{
  							fVar5 = 0f;
  							fVar6 = -0.035f;
  						}
  						else
  						{
  							fVar5 = 0f;
  							fVar6 = -0.014f;
  						}
  						break;
  					
  					default:
  						fVar5 = 0f;
  						fVar6 = -0.014f;
  						break;
  				}
  				unk_0xFCC7EAA298CE7AC2(82, 66);
  				unk_0xE9FEE5ECCAD48813(1);
  				unk_0xBC2BD09DB91678C5(2);
  				iVar11 = func_223();
  				if (Global_77090 == 1 && Global_77088 == 62)
  				{
  					iVar11 = Global_111858.f_2359.f_539.f_4322;
  				}
  				switch (iVar11)
  				{
  					case 0:
  						unk_0x28DD484BAEAF8437(143, &iVar7, &iVar8, &iVar9, &uVar10);
  						break;
  					
  					case 1:
  						unk_0x28DD484BAEAF8437(144, &iVar7, &iVar8, &iVar9, &uVar10);
  						break;
  					
  					case 2:
  						unk_0x28DD484BAEAF8437(145, &iVar7, &iVar8, &iVar9, &uVar10);
  						break;
  					
  					default:
  						iVar7 = 240;
  						iVar8 = 200;
  						iVar9 = 80;
  				}
  				unk_0xA11D279671F2289C(iVar7, iVar8, iVar9, iVar2);
  				unk_0x14A0E01B648A674B();
  				Var4 = { func_533(Global_77088, Global_77090, iParam5) };
  				if (fVar6 == -0.014f)
  				{
  				}
  				unk_0xFFA39C4568552522(fVar5, fVar6, 0f, 0.01f);
  				unk_0x151E2F6EE4A34CFE(0.67f, 0.67f);
  				if (!unk_0xE5EF21F14D0F9D25() && !unk_0xBFA6C798C56B6778())
  				{
  					fLocal_24 = 0.14f;
  				}
  				else
  				{
  					fLocal_24 = 0.17f;
  				}
  				if (fVar6 == -0.014f)
  				{
  					if (func_532(&Var4) > fLocal_24)
  					{
  						if (unk_0xD91913FA3B12A5C4(15))
  						{
  							unk_0x36FA9C099416853E(15, Local_22.x, (Local_22.f_1 + fLocal_23));
  							Global_77092 = 1;
  						}
  					}
  				}
  				unk_0x40A75E32D30C605F(&Var4);
  				unk_0xA434CC17B5517E4E(fVar5, fVar6, 0);
  				unk_0x5C64FD27DB62AF7A();
  				if (Global_77091 == 1)
  				{
  					func_170();
  					fLocal_21 = 0f;
  				}
  			}
  			else
  			{
  				func_170();
  				fLocal_21 = 0f;
  			}
  		}
  	}
  }
  
  float func_532(var uParam0)
  {
  	unk_0x456829A212A690D7(uParam0);
  	return unk_0x842CB5919E31EB1F(1);
  }
  
  struct<2> func_533(int iParam0, int iParam1, int iParam2)
  {
  	struct<2> Var0;
  	int iVar1;
  	
  	StringCopy(&Var0, "", 8);
  	switch (iParam1)
  	{
  		case 1:
  			Var0 = { func_541(iParam0) };
  			break;
  		
  		case 7:
  			Var0 = { func_156(iParam0) };
  			break;
  		
  		case 3:
  			iVar1 = iParam0;
  			switch (iVar1)
  			{
  				case 0:
  					Var0 = { func_540(iParam2) };
  					break;
  				
  				case 8:
  					Var0 = { func_539(iParam2) };
  					break;
  				
  				case 7:
  					Var0 = { func_538(iParam2) };
  					break;
  				
  				case 10:
  					Var0 = { func_537(iParam2) };
  					break;
  				
  				case 5:
  					Var0 = { func_536(iParam2) };
  					break;
  				
  				case 4:
  					Var0 = { func_535(iParam2) };
  					break;
  				
  				default:
  					StringCopy(&Var0, func_534(iVar1), 8);
  					break;
  			}
  			break;
  		
  		default:
  			break;
  	}
  	return Var0;
  }
  
  char* func_534(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return "MG_BJUM";
  			break;
  		
  		case 1:
  			return "MG_DART";
  			break;
  		
  		case 2:
  			return "MG_GOLF";
  			break;
  		
  		case 3:
  			return "MG_HUNT";
  			break;
  		
  		case 4:
  			return "MG_OFFR";
  			break;
  		
  		case 5:
  			return "MG_PILO";
  			break;
  		
  		case 6:
  			return "MG_RMPG";
  			break;
  		
  		case 7:
  			return "MG_SERA";
  			break;
  		
  		case 8:
  			return "MG_SRAC";
  			break;
  		
  		case 9:
  			return "MG_STRP";
  			break;
  		
  		case 10:
  			return "MG_STNT";
  			break;
  		
  		case 11:
  			return "MG_SHTR";
  			break;
  		
  		case 12:
  			return "MG_TAXI";
  			break;
  		
  		case 13:
  			return "MG_TENN";
  			break;
  		
  		case 14:
  			return "MG_TOWI";
  			break;
  		
  		case 15:
  			return "MG_TRFA";
  			break;
  		
  		case 16:
  			return "MG_TRFG";
  			break;
  		
  		case 17:
  			return "MG_TRIA";
  			break;
  		
  		case 18:
  			return "MG_YOGA";
  			break;
  		
  		case 19:
  			return "MG_CRCE";
  			break;
  	}
  	return "INVALID!";
  }
  
  struct<2> func_535(int iParam0)
  {
  	struct<2> Var0;
  	char[] cVar1[8];
  	
  	StringCopy(&Var0, "", 8);
  	IntToString(&cVar1, iParam0, 8);
  	if (unk_0x7BCC91F3C1CF24E8(&cVar1))
  	{
  	}
  	else
  	{
  		StringCopy(&Var0, "MGOR_", 8);
  		StringConCat(&Var0, &cVar1, 8);
  	}
  	return Var0;
  }
  
  struct<2> func_536(int iParam0)
  {
  	struct<2> Var0;
  	char[] cVar1[8];
  	
  	StringCopy(&Var0, "", 8);
  	IntToString(&cVar1, iParam0, 8);
  	if (unk_0x7BCC91F3C1CF24E8(&cVar1))
  	{
  	}
  	else
  	{
  		StringCopy(&Var0, "MGFS_", 8);
  		StringConCat(&Var0, &cVar1, 8);
  	}
  	return Var0;
  }
  
  struct<2> func_537(int iParam0)
  {
  	struct<2> Var0;
  	char[] cVar1[8];
  	
  	StringCopy(&Var0, "", 8);
  	IntToString(&cVar1, iParam0, 8);
  	if (unk_0x7BCC91F3C1CF24E8(&cVar1))
  	{
  	}
  	else
  	{
  		StringCopy(&Var0, "MGSP_", 8);
  		StringConCat(&Var0, &cVar1, 8);
  	}
  	return Var0;
  }
  
  struct<2> func_538(int iParam0)
  {
  	struct<2> Var0;
  	char[] cVar1[8];
  	
  	StringCopy(&Var0, "", 8);
  	IntToString(&cVar1, iParam0, 8);
  	if (unk_0x7BCC91F3C1CF24E8(&cVar1))
  	{
  	}
  	else
  	{
  		StringCopy(&Var0, "MGSR_", 8);
  		StringConCat(&Var0, &cVar1, 8);
  	}
  	return Var0;
  }
  
  struct<2> func_539(int iParam0)
  {
  	struct<2> Var0;
  	char[] cVar1[8];
  	
  	StringCopy(&Var0, "", 8);
  	IntToString(&cVar1, iParam0, 8);
  	if (unk_0x7BCC91F3C1CF24E8(&cVar1) || iParam0 == 3)
  	{
  	}
  	else
  	{
  		StringCopy(&Var0, "MGCR_", 8);
  		StringConCat(&Var0, &cVar1, 8);
  	}
  	return Var0;
  }
  
  struct<2> func_540(int iParam0)
  {
  	struct<2> Var0;
  	char[] cVar1[8];
  	
  	StringCopy(&Var0, "", 8);
  	IntToString(&cVar1, iParam0, 8);
  	if (unk_0x7BCC91F3C1CF24E8(&cVar1))
  	{
  	}
  	else
  	{
  		StringCopy(&Var0, "MGBJ_", 8);
  		StringConCat(&Var0, &cVar1, 8);
  	}
  	return Var0;
  }
  
  struct<2> func_541(int iParam0)
  {
  	struct<2> Var0;
  	
  	StringCopy(&Var0, "M_", 8);
  	StringConCat(&Var0, &(Global_89743[iParam0 /*34*/].f_8), 8);
  	if (iParam0 == 90)
  	{
  		switch (Global_111858.f_9081.f_99.f_205[7])
  		{
  			case 1:
  				StringConCat(&Var0, "A", 8);
  				break;
  			
  			case 2:
  				StringConCat(&Var0, "B", 8);
  				break;
  			
  			default:
  				StringConCat(&Var0, "A", 8);
  				break;
  			}
  	}
  	return Var0;
  }
  
  int func_542(int iParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6)
  {
  	if (((!func_544(0) || Global_77102) || Global_77091 == 1) || !unk_0x87F0CB19476706C3())
  	{
  		return 0;
  	}
  	switch (Global_77087)
  	{
  		case 0:
  			if (unk_0xF005CCA4263DF67F(&uParam1, "NONE") || unk_0x7BCC91F3C1CF24E8(&uParam1))
  			{
  				Global_77087 = 3;
  			}
  			else
  			{
  				Global_77087 = 1;
  			}
  			break;
  		
  		case 1:
  			if (unk_0x9893D61ACB9FB52A())
  			{
  				Global_77087 = 2;
  			}
  			break;
  		
  		case 2:
  			if (unk_0x3EBB66F936A3436E())
  			{
  				Global_77087 = 4;
  				return 1;
  			}
  			else if (!unk_0xFFDFD8490027DBA5())
  			{
  				Global_77087 = 3;
  			}
  			break;
  		
  		case 3:
  			if (unk_0x3EBB66F936A3436E())
  			{
  			}
  			else
  			{
  				Global_77087 = 5;
  				return 1;
  			}
  			break;
  		
  		case 4:
  			if (unk_0x3EBB66F936A3436E())
  			{
  				return 1;
  			}
  			else if (iParam0 == 1)
  			{
  				Global_77087 = 5;
  			}
  			break;
  		
  		case 5:
  			if ((unk_0x3EBB66F936A3436E() || func_310(0)) || func_543(1))
  			{
  			}
  			else
  			{
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  bool func_543(bool bParam0)
  {
  	if (bParam0)
  	{
  		return (Global_22411.f_4 && Global_22411.f_104 == 4);
  	}
  	return Global_22411.f_4;
  }
  
  int func_544(int iParam0)
  {
  	if (Global_41631 == 15)
  	{
  		return 0;
  	}
  	if (func_545(iParam0))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  bool func_545(int iParam0)
  {
  	return func_546(iParam0, Global_41631);
  }
  
  int func_546(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;
  }
  
  void func_547(bool bParam0)
  {
  	func_553(1, 1);
  	if (bParam0)
  	{
  		func_552(2605.444f, 1890.189f, 26.1751f, 196.5f, 1, 0);
  	}
  	else if (func_235(unk_0x9B0761B4C3EB8BC7()))
  	{
  		unk_0x03D382CB0B44E2FC(unk_0x9B0761B4C3EB8BC7(), 2605.444f, 1890.189f, 26.1751f, 1, 0, 0, 1);
  		unk_0xE922BAA80E8F9324(unk_0x9B0761B4C3EB8BC7(), 196.5f);
  	}
  	if (unk_0x306BF588BD8151E8("NIGEL_03_MIX_SETTINGS"))
  	{
  		unk_0xFA07F8BEBDAAFBA8("NIGEL_03_MIX_SETTINGS");
  	}
  	if (!unk_0x306BF588BD8151E8("NIGEL_03_JOURNEY_MIX"))
  	{
  		unk_0x17E478571720218F("NIGEL_03_JOURNEY_MIX");
  	}
  	unk_0x74528AC0906CBABE(joaat("ig_nigel"));
  	unk_0x74528AC0906CBABE(joaat("ig_mrs_thornhill"));
  	unk_0x78FCB2E22C41B9D5(Local_63.f_1);
  	while (!unk_0xAE06B9E39EBDE049(Local_63))
  	{
  		func_435(2621.299f, 1868.021f, 26.4687f, 60.4f, 0);
  		SYSTEM::WAIT(0);
  	}
  	if (func_235(Local_63))
  	{
  		unk_0x3745EABBD7DA5F51(Local_63, 1);
  	}
  	unk_0xD77467CC38DD0DE2(0);
  	func_581(&(Local_314.f_6));
  	unk_0x6998E485C8721559();
  	bLocal_111 = false;
  	iLocal_376 = 0;
  	iLocal_55 = 10;
  	iLocal_56 = 0;
  	if (bParam0)
  	{
  		while (!unk_0xF5EE205091CE6DB2(0))
  		{
  			SYSTEM::WAIT(0);
  		}
  		func_550(0, -1, 1);
  	}
  	else
  	{
  		func_548(2605.444f, 1890.189f, 26.1751f, 1112014848, 12, 5000, 0, 0);
  	}
  	SYSTEM::WAIT(1000);
  	func_478(1, 1, 1);
  }
  
  void func_548(struct<3> Param0, int iParam1, int iParam2, int iParam3, bool bParam4, bool bParam5)
  {
  	var uVar0;
  	int iVar1;
  	
  	uVar0 = unk_0x258EC7AE452957A6(Param0, iParam1, iParam2, 127);
  	if (unk_0x86F247DFAD57449B(uVar0))
  	{
  		iVar1 = (unk_0x578C4EF320340AF7() + iParam3);
  		while (!unk_0x5CDE9B2359B01CE1(uVar0) && unk_0x578C4EF320340AF7() < iVar1)
  		{
  			if (bParam5)
  			{
  				func_491(0);
  			}
  			if (bParam4)
  			{
  				func_549();
  			}
  			SYSTEM::WAIT(0);
  		}
  		if (unk_0x578C4EF320340AF7() < iVar1)
  		{
  		}
  		unk_0x53BA4C977A9AB012(uVar0);
  	}
  }
  
  void func_549()
  {
  	Global_22411.f_6 = 1;
  }
  
  void func_550(int iParam0, int iParam1, int iParam2)
  {
  	if (func_563() && func_551())
  	{
  		while (Global_98950 != 6)
  		{
  			SYSTEM::WAIT(0);
  		}
  		unk_0x73D73FA241EA4AB7(0);
  		if (unk_0xAE06B9E39EBDE049(unk_0x9B0761B4C3EB8BC7()))
  		{
  			if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  			{
  				unk_0x17C709475B6CA386(unk_0x9B0761B4C3EB8BC7());
  			}
  		}
  		if (iParam0 != 0)
  		{
  			if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0xAE06B9E39EBDE049(iParam0))
  				{
  					if (unk_0x80FF6C016CDB0FAF(iParam0, 0))
  					{
  						if (!unk_0xE0B3BC41DDA88DF0(unk_0x9B0761B4C3EB8BC7(), iParam0, 0))
  						{
  							unk_0x13A4BD6CC31F7B8F(unk_0x9B0761B4C3EB8BC7(), iParam0, iParam1);
  							unk_0x7965943E39128B42(0f, 1065353216);
  							unk_0x4C4FC7841A5FB983(0f);
  							SYSTEM::WAIT(0);
  						}
  					}
  				}
  			}
  		}
  		if (iParam2 == 1)
  		{
  			if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  			{
  				unk_0xDDEDC06C88DA4E04(unk_0x460153A63B9477BC(), true, 0);
  			}
  		}
  		unk_0x8249F4DC11CAA13C();
  		func_13(0);
  	}
  }
  
  bool func_551()
  {
  	return unk_0xCE990E643CD9D0E5(Global_98955.f_20, 13);
  }
  
  void func_552(struct<3> Param0, float fParam1, int iParam2, int iParam3)
  {
  	if (func_563())
  	{
  		unk_0x3A396632EB359434(0);
  		unk_0xD2459066EA58CE43(&(Global_98955.f_20), 2);
  		unk_0x73D73FA241EA4AB7(1);
  		if (unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  		{
  			unk_0xDDEDC06C88DA4E04(unk_0x460153A63B9477BC(), false, 0);
  		}
  		Global_98951 = { Param0 };
  		Global_98954 = fParam1;
  		Global_98950 = 1;
  		if (iParam2 == 1)
  		{
  			unk_0xBE20AB8238688965(&(Global_98955.f_20), 14);
  		}
  		else
  		{
  			unk_0xD2459066EA58CE43(&(Global_98955.f_20), 14);
  		}
  		if (iParam3 == 1)
  		{
  			unk_0xBE20AB8238688965(&(Global_98955.f_20), 24);
  		}
  		else
  		{
  			unk_0xD2459066EA58CE43(&(Global_98955.f_20), 24);
  		}
  		func_13(1);
  	}
  }
  
  void func_553(bool bParam0, bool bParam1)
  {
  	if (bParam0)
  	{
  		func_554(0, 1, 1);
  	}
  	if (!unk_0x03DB5C6AABF8DA46())
  	{
  		unk_0x1D40553EDD51A1B8(0);
  	}
  	func_236(0f, 0f, 0f, 0, 0, 0, 1, 1, 1, bParam1, 1, 1, 1);
  }
  
  void func_554(bool bParam0, int iParam1, int iParam2)
  {
  	bool bVar0;
  	
  	bVar0 = true;
  	if (unk_0xFFDFD8490027DBA5())
  	{
  		while (bVar0)
  		{
  			bVar0 = unk_0xFFDFD8490027DBA5();
  			if (unk_0x3EBB66F936A3436E())
  			{
  				unk_0xF43E5395F54BAF56(0);
  			}
  			if (unk_0x9893D61ACB9FB52A())
  			{
  				unk_0xA389D93286499741();
  			}
  			if (unk_0xFFDFD8490027DBA5() && !unk_0x3EBB66F936A3436E())
  			{
  				bVar0 = false;
  			}
  			SYSTEM::WAIT(0);
  		}
  		if (bParam0)
  		{
  			func_585(iParam1, iParam2, 1, 1);
  		}
  	}
  }
  
  void func_555(bool bParam0)
  {
  	func_553(1, 1);
  	func_581(&(Local_314.f_6));
  	if (unk_0xAE06B9E39EBDE049(Local_314))
  	{
  		unk_0x456CF97E8766439B(&Local_314);
  	}
  	unk_0xD77467CC38DD0DE2(0);
  	unk_0x6998E485C8721559();
  	bLocal_111 = false;
  	if (bParam0)
  	{
  		func_552(Local_108, 0f, 1, 0);
  	}
  	else if (func_235(unk_0x9B0761B4C3EB8BC7()))
  	{
  		unk_0x03D382CB0B44E2FC(unk_0x9B0761B4C3EB8BC7(), Local_108, 1, 0, 0, 1);
  	}
  	if (iLocal_82)
  	{
  		unk_0xF4F95D084B662764(iLocal_81);
  	}
  	func_433(&Local_54, 1);
  	func_581(&iLocal_69);
  	func_205(&iLocal_71);
  	func_581(&iLocal_70);
  	unk_0x74528AC0906CBABE(joaat("ig_nigel"));
  	unk_0x74528AC0906CBABE(joaat("ig_mrs_thornhill"));
  	iLocal_318 = 0;
  	func_581(&iLocal_68);
  	func_431(&Local_54, 1);
  	func_439(&Local_63);
  	unk_0x78FCB2E22C41B9D5(Local_63.f_1);
  	while (!unk_0xAE06B9E39EBDE049(Local_63))
  	{
  		func_435(Local_108, 0f, 0);
  		SYSTEM::WAIT(0);
  	}
  	if (func_235(Local_63))
  	{
  		unk_0x7C4F70F41134C357(Local_63);
  		unk_0xC160551F55D6365A(Local_63, 1, 1, 0);
  	}
  	while (!unk_0xAE06B9E39EBDE049(iLocal_68))
  	{
  		func_421();
  		SYSTEM::WAIT(0);
  	}
  	iLocal_343 = 0;
  	iLocal_114 = 2;
  	iLocal_58 = 6;
  	iLocal_292 = 1;
  	bLocal_338 = false;
  	bLocal_344 = false;
  	iLocal_346 = 0;
  	bLocal_347 = false;
  	iLocal_376 = 0;
  	iLocal_55 = 6;
  	iLocal_56 = 0;
  	if (bParam0)
  	{
  		while (!unk_0xF5EE205091CE6DB2(0))
  		{
  			SYSTEM::WAIT(0);
  		}
  		func_550(Local_63, -1, 0);
  	}
  	else
  	{
  		if (func_235(unk_0x9B0761B4C3EB8BC7()) && func_235(Local_63))
  		{
  			func_556(unk_0x9B0761B4C3EB8BC7(), Local_63, -1, 0);
  		}
  		func_548(Local_108, 1112014848, 12, 5000, 0, 0);
  	}
  	if (func_235(Local_63))
  	{
  		unk_0x316E0389ADF56E20(Local_63, 10f);
  	}
  	func_478(1, 1, 1);
  }
  
  void func_556(int iParam0, int iParam1, int iParam2, bool bParam3)
  {
  	if (func_484(iParam0))
  	{
  		if (func_235(iParam1))
  		{
  			if (unk_0xB77B1396EAA80D8F(iParam0))
  			{
  				if (bParam3)
  				{
  					if (unk_0xAA5B806352173DEA(unk_0x4C5D14F2B0FA4599(iParam0)))
  					{
  						unk_0x6A8F948698B360B4(unk_0x4C5D14F2B0FA4599(iParam0), 0);
  					}
  				}
  				else
  				{
  					unk_0x6A8F948698B360B4(unk_0x4C5D14F2B0FA4599(iParam0), 0);
  				}
  			}
  			else
  			{
  				unk_0x6A8F948698B360B4(iParam0, 0);
  			}
  			unk_0x13A4BD6CC31F7B8F(iParam0, iParam1, iParam2);
  		}
  	}
  }
  
  void func_557(bool bParam0)
  {
  	func_553(1, 1);
  	if (bParam0)
  	{
  		func_552(-43.6338f, -1289.323f, 28.0753f, 87.6522f, 1, 0);
  	}
  	else if (func_235(unk_0x9B0761B4C3EB8BC7()))
  	{
  		unk_0x03D382CB0B44E2FC(unk_0x9B0761B4C3EB8BC7(), -43.6338f, -1289.323f, 28.0753f, 1, 0, 0, 1);
  		unk_0xE922BAA80E8F9324(unk_0x9B0761B4C3EB8BC7(), 87.6522f);
  	}
  	unk_0x78FCB2E22C41B9D5(Local_63.f_1);
  	func_497();
  	iLocal_55 = 3;
  	iLocal_56 = 0;
  	iLocal_58 = 0;
  	iLocal_59 = 0;
  	iLocal_60 = 0;
  	if (unk_0x306BF588BD8151E8("NIGEL_03_MIX_SETTINGS"))
  	{
  		unk_0xFA07F8BEBDAAFBA8("NIGEL_03_MIX_SETTINGS");
  	}
  	if (!unk_0x306BF588BD8151E8("NIGEL_03_JOURNEY_MIX"))
  	{
  		unk_0x17E478571720218F("NIGEL_03_JOURNEY_MIX");
  	}
  	if (iLocal_82)
  	{
  		unk_0xF4F95D084B662764(iLocal_81);
  	}
  	func_433(&Local_54, 1);
  	if (!func_235(iLocal_69))
  	{
  		while (!func_559(&iLocal_69, 64, -44.76f, -1289.19f, 29.22f, -109.3f, "RC_NIGEL", 1))
  		{
  			SYSTEM::WAIT(0);
  		}
  	}
  	unk_0xCBF81D3222C77066(iLocal_69, -44.76f, -1289.19f, 29.22f, 0, 0, 1);
  	unk_0xE922BAA80E8F9324(iLocal_69, -109.3f);
  	if (!func_235(iLocal_70))
  	{
  		while (!func_559(&iLocal_70, 63, -45.11f, -1289.77f, 29.24f, -96.8f, "RC_MRS_THORNHILL", 1))
  		{
  			SYSTEM::WAIT(0);
  		}
  	}
  	unk_0xCBF81D3222C77066(iLocal_70, -45.11f, -1289.77f, 29.24f, 0, 0, 1);
  	unk_0xE922BAA80E8F9324(iLocal_70, -96.8f);
  	iLocal_79 = 0;
  	while (!func_558())
  	{
  		SYSTEM::WAIT(0);
  	}
  	if (func_235(iLocal_69) && func_235(iLocal_70))
  	{
  		func_426();
  		func_427();
  	}
  	func_431(&Local_54, 1);
  	func_581(&iLocal_68);
  	func_439(&Local_63);
  	while (!unk_0x7D167B9A0CCDA347(Local_63.f_1))
  	{
  		SYSTEM::WAIT(0);
  	}
  	while (!unk_0xAE06B9E39EBDE049(Local_63))
  	{
  		func_435(Local_63.f_2, Local_63.f_5, 0);
  	}
  	unk_0x7965943E39128B42(0f, 1065353216);
  	unk_0x4C4FC7841A5FB983(0f);
  	if (func_235(Local_63))
  	{
  		unk_0x7C4F70F41134C357(Local_63);
  	}
  	bLocal_111 = true;
  	iLocal_113 = 0;
  	iLocal_114 = 0;
  	iLocal_292 = 0;
  	iLocal_293 = 0;
  	bLocal_294 = false;
  	bLocal_295 = false;
  	iLocal_297 = 0;
  	iLocal_97 = 0;
  	bLocal_299 = false;
  	iLocal_315 = 0;
  	iLocal_316 = 0;
  	iLocal_317 = 0;
  	iLocal_318 = 1;
  	bLocal_338 = false;
  	bLocal_344 = false;
  	iLocal_346 = 0;
  	bLocal_347 = false;
  	iLocal_376 = 0;
  	SYSTEM::WAIT(0);
  	if (bParam0)
  	{
  		while (!unk_0xF5EE205091CE6DB2(0))
  		{
  			SYSTEM::WAIT(0);
  		}
  		func_550(0, -1, 1);
  	}
  	func_478(1, 1, 1);
  }
  
  int func_558()
  {
  	if (!unk_0xC614DDE265D18415(sLocal_72))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_559(var uParam0, int iParam1, struct<3> Param2, float fParam3, char* sParam4, int iParam5)
  {
  	if (func_560(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_560(var uParam0, int iParam1, struct<3> Param2, int iParam3, bool bParam4)
  {
  	int iVar0;
  	
  	if (!func_152(iParam1))
  	{
  		iVar0 = func_605(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_561(*uParam0, iParam1);
  			if (bParam4)
  			{
  				unk_0x74528AC0906CBABE(iVar0);
  			}
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_561(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_562()
  {
  	if (!Global_98955 == 10 && !Global_98955 == 9)
  	{
  		return 0;
  	}
  	return Global_98955.f_2;
  }
  
  int func_563()
  {
  	if (Global_98955 == 10 || Global_98955 == 9)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_564()
  {
  	func_579(&Local_63, func_580(), -39.9698f, -1285.97f, 28.8324f, -178.98f);
  	func_579(&Local_314, joaat("freight"), 2574.291f, 2173.551f, 31.4003f, 210.2f);
  	Local_314.f_7 = joaat("s_m_m_lsmetro_01");
  	unk_0x78FCB2E22C41B9D5(joaat("ig_nigel"));
  	unk_0x78FCB2E22C41B9D5(joaat("ig_mrs_thornhill"));
  	unk_0x78FCB2E22C41B9D5(Local_63.f_1);
  	unk_0x78FCB2E22C41B9D5(joaat("u_m_m_aldinapoli"));
  	unk_0x78FCB2E22C41B9D5(joaat("prop_ld_handbag_s"));
  	unk_0x5476B2D1DCA6FE9D(joaat("ig_nigel"), 1);
  	unk_0x5476B2D1DCA6FE9D(joaat("ig_mrs_thornhill"), 1);
  	unk_0x5476B2D1DCA6FE9D(joaat("u_m_m_aldinapoli"), 1);
  	unk_0xBAA4D421B8B8A744("NIGEL3", 0);
  	func_572(64, 2, 0);
  	unk_0xD2459066EA58CE43(&(Global_111858.f_18570.f_382), 5);
  	if (func_235(unk_0x9B0761B4C3EB8BC7()))
  	{
  		func_228(&uLocal_115, 2, unk_0x9B0761B4C3EB8BC7(), "TREVOR", 0, 1);
  	}
  	func_571();
  	func_570();
  	iLocal_114 = 0;
  	unk_0x8B917081F9836EDD("CAR_TRUNK_THUMPS", 0, -1);
  	uLocal_281 = unk_0x5E54B0823F46079E();
  	uLocal_359 = unk_0x5E54B0823F46079E();
  	uLocal_360 = unk_0x5E54B0823F46079E();
  	Local_86[0 /*7*/][0 /*3*/] = { -92f, -1271f, 25f };
  	Local_86[0 /*7*/][1 /*3*/] = { -27f, -1247f, 30f };
  	Local_86[1 /*7*/][0 /*3*/] = { 2649.08f, 1643.26f, 20f };
  	Local_86[1 /*7*/][1 /*3*/] = { 2688.73f, 1675.07f, 30f };
  	Local_86[2 /*7*/][0 /*3*/] = { 2649.08f, 1608.6f, 20f };
  	Local_86[2 /*7*/][1 /*3*/] = { 2692.73f, 1640.4f, 30f };
  	Local_109[0 /*3*/] = { 2611.25f, 1800.09f, 25.4f };
  	Local_109[1 /*3*/] = { 2611.25f, 1950.31f, 29.68f };
  	Local_109.f_7 = 3f;
  	Local_110[0 /*3*/] = { 2611f, 1630f, 24.61f };
  	Local_110[1 /*3*/] = { 2611.28f, 1856.65f, 30.73f };
  	Local_110.f_7 = 1.75f;
  	Local_375[0 /*8*/][0 /*3*/] = { 2611f, 1601.95f, 31.48f };
  	Local_375[0 /*8*/][1 /*3*/] = { 2611f, 2050f, 24.36f };
  	Local_375[0 /*8*/].f_7 = 6.5f;
  	Local_375[1 /*8*/][0 /*3*/] = { 2611f, 1786.85f, 34.44f };
  	Local_375[1 /*8*/][1 /*3*/] = { 2611f, 2050f, 22.22f };
  	Local_375[1 /*8*/].f_7 = 30f;
  	Local_375[2 /*8*/][0 /*3*/] = { 2625.47f, 1707.78f, 29.52f };
  	Local_375[2 /*8*/][1 /*3*/] = { 2611.65f, 1749.99f, 23.39f };
  	Local_375[2 /*8*/].f_7 = 8f;
  	Local_375[3 /*8*/][0 /*3*/] = { 2617.39f, 1709.61f, 29.56f };
  	Local_375[3 /*8*/][1 /*3*/] = { 2611.65f, 1749.99f, 23.39f };
  	Local_375[3 /*8*/].f_7 = 8f;
  	Local_91[0 /*3*/] = { 0f, -3.45f, 1.15f };
  	Local_91[1 /*3*/] = { 0f, -3.45f, 0.15f };
  	Local_92[0 /*3*/] = { 2f, 2f, 1.3f };
  	Local_92[1 /*3*/] = { 1.6f, 2f, 0.7f };
  	Local_91[2 /*3*/] = { 0f, -5.45f, 1.15f };
  	Local_91[3 /*3*/] = { 0f, -5.45f, 0.15f };
  	Local_92[2 /*3*/] = { 1.5f, 6f, 1.3f };
  	Local_92[3 /*3*/] = { 1.2f, 6f, 0.7f };
  	iLocal_80 = 0;
  	func_566(1);
  	func_565(1);
  	sLocal_378 = "DEFAULT";
  	iLocal_343 = 0;
  }
  
  void func_565(bool bParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		if (bParam0)
  		{
  			uLocal_85[iVar0] = unk_0xC08A186299DFDA0A(Local_86[iVar0 /*7*/][0 /*3*/], Local_86[iVar0 /*7*/][1 /*3*/], 0, 1, 1, 1);
  		}
  		else
  		{
  			unk_0x1E337EE68290597A(uLocal_85[iVar0], 0);
  		}
  		iVar0++;
  	}
  }
  
  void func_566(bool bParam0)
  {
  	func_567(39, bParam0);
  	func_567(40, bParam0);
  	func_567(41, bParam0);
  	func_567(42, bParam0);
  	func_567(43, bParam0);
  	func_567(44, bParam0);
  }
  
  void func_567(int iParam0, bool bParam1)
  {
  	if (bParam1)
  	{
  		if (!func_362(iParam0, 2, 1))
  		{
  			func_569(iParam0, 2, 1);
  		}
  	}
  	else if (func_362(iParam0, 2, 1))
  	{
  		func_568(iParam0, 2, 1);
  	}
  }
  
  void func_568(int iParam0, int iParam1, bool bParam2)
  {
  	var uVar0;
  	
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (bParam2)
  	{
  		unk_0xD2459066EA58CE43(&(Global_99007.f_1364[iParam0]), iParam1);
  	}
  	else if (unk_0x25DDB354A40FFCDB())
  	{
  		if (func_8() == 0)
  		{
  			uVar0 = func_70(func_363(iParam0), -1, 0);
  			unk_0xD2459066EA58CE43(&uVar0, iParam1);
  			func_68(func_363(iParam0), uVar0, -1, 1, 0);
  		}
  	}
  	else
  	{
  		unk_0xD2459066EA58CE43(&(Global_111858.f_668[iParam0]), iParam1);
  	}
  }
  
  void func_569(int iParam0, int iParam1, bool bParam2)
  {
  	var uVar0;
  	
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (bParam2)
  	{
  		unk_0xBE20AB8238688965(&(Global_99007.f_1364[iParam0]), iParam1);
  	}
  	else if (unk_0x25DDB354A40FFCDB())
  	{
  		if (func_8() == 0)
  		{
  			uVar0 = func_70(func_363(iParam0), -1, 0);
  			unk_0xBE20AB8238688965(&uVar0, iParam1);
  			func_68(func_363(iParam0), uVar0, -1, 1, 0);
  		}
  	}
  	else
  	{
  		unk_0xBE20AB8238688965(&(Global_111858.f_668[iParam0]), iParam1);
  	}
  }
  
  void func_570()
  {
  	Local_112[0 /*8*/] = "NIGE3AU";
  	Local_112[0 /*8*/].f_1 = "NIGEL3_C1";
  	Local_112[0 /*8*/].f_2 = 200f;
  	Local_112[0 /*8*/].f_7 = 3000;
  	Local_112[1 /*8*/] = "NIGE3AU";
  	Local_112[1 /*8*/].f_1 = "NIGEL3_C2";
  	Local_112[1 /*8*/].f_2 = 1000f;
  	Local_112[1 /*8*/].f_7 = 5000;
  	Local_112[2 /*8*/] = "NIGE3AU";
  	Local_112[2 /*8*/].f_1 = "NIGEL3_C3";
  	Local_112[2 /*8*/].f_2 = 1800f;
  	Local_112[2 /*8*/].f_7 = 10000;
  	Local_112[3 /*8*/] = "NIGE3AU";
  	Local_112[3 /*8*/].f_1 = "NIGEL3_C4";
  	Local_112[3 /*8*/].f_2 = 2250f;
  	Local_112[3 /*8*/].f_7 = 10000;
  	Local_112[0 /*8*/].f_3 = { 165.8198f, -1241.902f, 37.1128f };
  	Local_112[0 /*8*/].f_6 = 287.4437f;
  	Local_112[1 /*8*/].f_3 = { 997.1073f, -1193.715f, 53.655f };
  	Local_112[1 /*8*/].f_6 = 273.9958f;
  	Local_112[2 /*8*/].f_3 = { 1880.136f, -780.5549f, 80.6259f };
  	Local_112[2 /*8*/].f_6 = 304.6608f;
  	Local_112[3 /*8*/].f_3 = { 2483.936f, 946.1223f, 85.4867f };
  	Local_112[3 /*8*/].f_6 = 38.84f;
  }
  
  void func_571()
  {
  	Local_319[0 /*8*/] = "NIGE3AU";
  	Local_319[0 /*8*/].f_1 = "NIGEL3_N1";
  	Local_319[1 /*8*/] = "NIGE3AU";
  	Local_319[1 /*8*/].f_1 = "NIGEL3_N2";
  	Local_319[2 /*8*/] = "NIGE3AU";
  	Local_319[2 /*8*/].f_1 = "NIGEL3_N3";
  	sLocal_322[0] = "NIGEL3_DAWD_1";
  	sLocal_322[1] = "NIGEL3_DAWD_3";
  	sLocal_322[2] = "NIGEL3_DAWD_5";
  	sLocal_322[3] = "NIGEL3_DAWD_7";
  	sLocal_322[4] = "NIGEL3_DAWD_9";
  	sLocal_322[5] = "NIGEL3_DAWD_11";
  }
  
  void func_572(int iParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	
  	Global_8237 = iParam0;
  	if (Global_117[iParam0 /*10*/].f_8 != 154)
  	{
  		func_222();
  		if (iParam1 == 4)
  		{
  			func_578(iParam0, 0, 1);
  			func_578(iParam0, 1, 1);
  			func_578(iParam0, 2, 1);
  			func_577(iParam0, 0, 1);
  			func_577(iParam0, 1, 1);
  			func_577(iParam0, 2, 1);
  		}
  		else
  		{
  			if (func_576(iParam0, iParam1) == 1 && func_575(iParam0, iParam1) == 1)
  			{
  				bParam2 = false;
  			}
  			iVar0 = iParam1;
  			func_578(iParam0, iVar0, 1);
  			func_577(iParam0, iVar0, 1);
  		}
  		if (bParam2)
  		{
  			if (!Global_76833)
  			{
  				if (iParam1 != 4)
  				{
  					if (Global_19681 != iParam1)
  					{
  						Global_8210[iParam1 /*4*/] = { func_574(iParam0) };
  						Global_8227[iParam1] = 1;
  						Global_8232[iParam1] = iParam0;
  					}
  					else if (iParam0 == Global_19681)
  					{
  					}
  					else
  					{
  						Global_8161[1 /*6*/] = { func_574(iParam0) };
  						Global_8161[1 /*6*/].f_5 = iParam1;
  						func_573();
  					}
  				}
  				else
  				{
  					Global_8161[1 /*6*/] = { func_574(iParam0) };
  					Global_8161[1 /*6*/].f_5 = iParam1;
  					func_573();
  				}
  			}
  			else
  			{
  				Global_8161[1 /*6*/] = { func_574(iParam0) };
  				Global_8161[1 /*6*/].f_5 = iParam1;
  				func_573();
  			}
  		}
  	}
  }
  
  void func_573()
  {
  	char cVar0[64];
  	char cVar1[64];
  	char* sVar2;
  	
  	StringCopy(&cVar0, unk_0x7C774D8CB8DC6FE3(&(Global_1848[Global_8237 /*29*/].f_7)), 64);
  	if (Global_8256 == 0)
  	{
  		unk_0x5B8DD855EAFD33B5("");
  		StringCopy(&cVar1, unk_0x7C774D8CB8DC6FE3(&(Global_8161[1 /*6*/])), 64);
  		sVar2 = unk_0x7C774D8CB8DC6FE3("CELL_253");
  		unk_0x39E1440587355CC1(&cVar0, &cVar0, 0, 3, sVar2, &cVar1);
  	}
  	else
  	{
  		unk_0x5B8DD855EAFD33B5("CELL_255");
  		unk_0x6A826E35A3096ED0(&(Global_8161[1 /*6*/]));
  		unk_0x39E1440587355CC1(&cVar0, &cVar0, 0, 3, "", 0);
  	}
  	unk_0xD2459066EA58CE43(&Global_7551, 0);
  }
  
  struct<4> func_574(int iParam0)
  {
  	return Global_1848[iParam0 /*29*/].f_3;
  }
  
  int func_575(int iParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 > 4)
  	{
  		return 0;
  	}
  	return Global_1848[iParam0 /*29*/].f_24[iParam1];
  }
  
  int func_576(int iParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 > 4)
  	{
  		return 0;
  	}
  	return Global_1848[iParam0 /*29*/].f_12[iParam1];
  }
  
  void func_577(int iParam0, int iParam1, int iParam2)
  {
  	if (iParam1 < 0 || iParam1 > 4)
  	{
  		return;
  	}
  	Global_1848[iParam0 /*29*/].f_24[iParam1] = iParam2;
  	if (iParam0 < 162)
  	{
  		Global_111858.f_28046[iParam0 /*29*/].f_24[iParam1] = iParam2;
  	}
  }
  
  void func_578(int iParam0, int iParam1, int iParam2)
  {
  	if (iParam1 < 0 || iParam1 > 4)
  	{
  		return;
  	}
  	Global_1848[iParam0 /*29*/].f_12[iParam1] = iParam2;
  	if (iParam0 < 162)
  	{
  		Global_111858.f_28046[iParam0 /*29*/].f_12[iParam1] = iParam2;
  	}
  }
  
  void func_579(var uParam0, int iParam1, struct<3> Param2, float fParam3)
  {
  	uParam0->f_1 = iParam1;
  	uParam0->f_2 = { Param2 };
  	uParam0->f_5 = fParam3;
  }
  
  int func_580()
  {
  	return iLocal_41;
  }
  
  void func_581(int iParam0)
  {
  	if (unk_0xAE06B9E39EBDE049(*iParam0))
  	{
  		if (!unk_0xA59F96B50B97E63C(*iParam0, 0))
  		{
  			unk_0xA5EAD2ACE2C8BBB2(*iParam0, 0, 1);
  		}
  		if (!unk_0x1758275D343D5BA3(*iParam0))
  		{
  			unk_0x4F3C4F457D44BB0F(*iParam0, 1, 0);
  		}
  		unk_0x586DDC617E714637(iParam0);
  	}
  }
  
  void func_582(var uParam0, var uParam1)
  {
  	*uParam0 = *uParam1;
  	*uParam1 = 0;
  }
  
  void func_583()
  {
  	func_477();
  	if (func_584())
  	{
  	}
  	func_428(&Local_54, 1, 0, 0);
  	if (unk_0xAE06B9E39EBDE049(Local_63))
  	{
  		unk_0x54123F77C25DD02B(Local_63);
  		unk_0xE730EAF558C97567(&Local_63);
  	}
  	if (func_210())
  	{
  		unk_0xBE4122AC23440E7D(1);
  	}
  	unk_0xD77467CC38DD0DE2(1);
  	func_565(0);
  	func_248(&uLocal_107);
  	if (unk_0xAE06B9E39EBDE049(iLocal_68) && !iLocal_297)
  	{
  		func_581(&iLocal_68);
  	}
  	unk_0x5476B2D1DCA6FE9D(joaat("ig_nigel"), 0);
  	unk_0x5476B2D1DCA6FE9D(joaat("ig_mrs_thornhill"), 0);
  	unk_0x5476B2D1DCA6FE9D(joaat("u_m_m_aldinapoli"), 0);
  	if (iLocal_80)
  	{
  		unk_0x1082C25039B168F8("amb@world_human_stand_impatient@female@no_sign@idle_a");
  		unk_0x1082C25039B168F8("amb@world_human_stand_impatient@male@no_sign@idle_a");
  	}
  	func_425(&iLocal_83, 0);
  	unk_0x40ECEB892E6BDDDB(3, 1);
  	if (iLocal_82)
  	{
  		unk_0xF4F95D084B662764(iLocal_81);
  	}
  	func_566(0);
  	unk_0x0C23023B6B6C6051(1);
  	unk_0x076EA622594A949E(0);
  	unk_0xD39E529EBE5DB04F();
  }
  
  int func_584()
  {
  	int iVar0;
  	
  	iVar0 = func_201();
  	if (iVar0 == -1)
  	{
  		return 0;
  	}
  	if (!Global_110945[iVar0 /*10*/].f_4)
  	{
  		return 0;
  	}
  	Global_110945[iVar0 /*10*/].f_4 = 0;
  	unk_0x5D52AA94798846BB(0, 1);
  	unk_0x5D52AA94798846BB(3, 1);
  	unk_0x5D52AA94798846BB(2, 1);
  	if (!func_5(0))
  	{
  		if (Global_110945[iVar0 /*10*/].f_5 && Global_110945[iVar0 /*10*/].f_6)
  		{
  			Global_110945[iVar0 /*10*/].f_6 = 0;
  		}
  		if (!Global_110945[iVar0 /*10*/].f_6 && !Global_110945[iVar0 /*10*/].f_5)
  		{
  			Global_110945[iVar0 /*10*/].f_6 = 1;
  		}
  	}
  	return 1;
  }
  
  void func_585(int iParam0, int iParam1, int iParam2, bool bParam3)
  {
  	var uVar0;
  	
  	uVar0 = unk_0x2639A2323BEA8CC6();
  	unk_0xD28B53FDA67841A1(uVar0, 0);
  	unk_0xDDEDC06C88DA4E04(iVar0, iParam3, 0);
  	func_240(0, 1, 0, 0, 0, 0, 0);
  	if (iParam2 == 1)
  	{
  		unk_0x8CFF639CEFF5CF16(1);
  		unk_0x644F1D0C5427A242(1);
  	}
  	unk_0xD289B55B6AADBA10(1);
  	if (iParam0 == 1)
  	{
  		unk_0xD50CC9B03AAD56FF(0, 0);
  	}
  	if (iParam1 == 1)
  	{
  		if ((iLocal_34 != 0 && iLocal_34 != joaat("object")) && iLocal_34 != joaat("gadget_parachute"))
  		{
  			if (func_235(unk_0x9B0761B4C3EB8BC7()))
  			{
  				if (unk_0x15D88F65956DC2F6(unk_0x9B0761B4C3EB8BC7(), iLocal_34, 0))
  				{
  					unk_0x69C71C91F56D82B9(unk_0x9B0761B4C3EB8BC7(), iLocal_34, 0);
  				}
  			}
  		}
  	}
  	if (func_484(unk_0x9B0761B4C3EB8BC7()))
  	{
  		unk_0x912105796D275F9C(unk_0x9B0761B4C3EB8BC7(), 0, 0);
  	}
  }
  
  void func_586(bool bParam0)
  {
  	int iVar0;
  	
  	func_601();
  	if (!func_600())
  	{
  		iVar0 = func_201();
  		if (iVar0 == -1)
  		{
  			return;
  		}
  		if (!Global_110945[iVar0 /*10*/].f_4)
  		{
  			return;
  		}
  		if (Global_110945[iVar0 /*10*/].f_5)
  		{
  			return;
  		}
  		if (Global_110945[iVar0 /*10*/].f_6)
  		{
  			return;
  		}
  		if (Global_93130 == Global_98992)
  		{
  			Global_111858.f_18570[iVar0 /*6*/].f_4++;
  		}
  		Global_93130 = Global_98992;
  		if (bParam0)
  		{
  			func_160(iVar0, 1, 0);
  			func_587(unk_0x6C5C6B207AA78253(), iVar0);
  		}
  		else
  		{
  			if (Global_110945[iVar0 /*10*/].f_9 == -1)
  			{
  			}
  			else
  			{
  				func_171(&(Global_110945[iVar0 /*10*/].f_9));
  			}
  			func_159(iVar0, 1, 1, 0);
  		}
  		Global_110945[iVar0 /*10*/].f_6 = 1;
  	}
  }
  
  void func_587(char* sParam0, int iParam1)
  {
  	if (Global_98955 != 12)
  	{
  		if (func_588(sParam0, 6, iParam1))
  		{
  			Global_98955.f_1 = iParam1;
  		}
  	}
  }
  
  int func_588(char* sParam0, int iParam1, int iParam2)
  {
  	var uVar0;
  	struct<32> Var1;
  	int iVar2;
  	
  	func_17();
  	func_599();
  	Global_98955 = 0;
  	StringCopy(&(Global_98955.f_3), sParam0, 32);
  	Global_98955.f_11 = iParam1;
  	unk_0x3A73329837AFF65B(1);
  	unk_0x076324DA2DE00927(0);
  	unk_0xA47631D02B6634DB(0);
  	func_492(1);
  	func_597(1);
  	func_594(0);
  	func_593(1);
  	unk_0xD2459066EA58CE43(&(Global_98955.f_20), 9);
  	unk_0xD2459066EA58CE43(&(Global_98955.f_20), 6);
  	unk_0xD2459066EA58CE43(&(Global_98955.f_20), 20);
  	unk_0xD2459066EA58CE43(&(Global_98955.f_20), 21);
  	unk_0xD2459066EA58CE43(&(Global_98955.f_20), 5);
  	if (unk_0xAE06B9E39EBDE049(unk_0x9B0761B4C3EB8BC7()))
  	{
  		if (!unk_0x5AEB5DDFFAD43CA5(unk_0x9B0761B4C3EB8BC7()))
  		{
  			if (unk_0x47DBF174A0CB9D55(unk_0x9B0761B4C3EB8BC7(), 0))
  			{
  				uVar0 = unk_0xA5D5B1042E8F47BD(unk_0x9B0761B4C3EB8BC7(), 0);
  				if (unk_0x50F857464DE13ED2(uVar0))
  				{
  					unk_0xBE20AB8238688965(&(Global_98955.f_20), 5);
  				}
  			}
  		}
  	}
  	unk_0xD289B55B6AADBA10(1);
  	unk_0xB80B2936A29B2666();
  	func_592(0);
  	func_20(1);
  	Global_98955.f_2 = Global_98992;
  	if (func_591())
  	{
  		if (func_590())
  		{
  			if (Global_98992 >= func_589())
  			{
  				if (!unk_0xCE990E643CD9D0E5(Global_89743[iParam2 /*34*/].f_15, 16))
  				{
  					if (Global_111858.f_9081.f_330[iParam2 /*6*/].f_1 >= 2)
  					{
  						Global_93131 = 1;
  					}
  				}
  			}
  		}
  		else if (Global_98955.f_11 == 6)
  		{
  			func_162(iParam2, &Var1);
  			if (Var1.f_31 == 1)
  			{
  				if (Global_111858.f_18570[iParam2 /*6*/].f_4 >= 2)
  				{
  					Global_93131 = 1;
  				}
  			}
  		}
  		else
  		{
  			iVar2 = func_393(unk_0x6C5C6B207AA78253());
  			if (iVar2 > -1)
  			{
  				if (Global_111858.f_24982.f_4[iVar2] >= 2)
  				{
  					Global_93131 = 1;
  				}
  			}
  		}
  	}
  	return 1;
  }
  
  int func_589()
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = func_396(&(Global_98955.f_3), 0);
  	iVar1 = 0;
  	if (iVar0 == 53)
  	{
  		iVar1 = 1;
  	}
  	return iVar1;
  }
  
  int func_590()
  {
  	if ((((Global_98955.f_11 == 0 || Global_98955.f_11 == 1) || Global_98955.f_11 == 2) || Global_98955.f_11 == 3) || Global_98955.f_11 == 4)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_591()
  {
  	if ((((Global_98955.f_11 == 0 || Global_98955.f_11 == 1) || Global_98955.f_11 == 2) || Global_98955.f_11 == 6) || Global_98955.f_11 == 3)
  	{
  		return 1;
  	}
  	if (Global_98955.f_11 == 5)
  	{
  		if (func_393(&(Global_98955.f_3)) > -1)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_592(int iParam0)
  {
  	unk_0x644F1D0C5427A242(iParam0);
  	unk_0x8CFF639CEFF5CF16(iParam0);
  }
  
  void func_593(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		unk_0x6D3823E5CADC313B();
  		unk_0xBE20AB8238688965(&(Global_98955.f_20), 3);
  	}
  	else if (unk_0xCE990E643CD9D0E5(Global_98955.f_20, 3))
  	{
  		unk_0x51C14866CB8A57BF();
  		unk_0xD2459066EA58CE43(&(Global_98955.f_20), 3);
  	}
  }
  
  void func_594(int iParam0)
  {
  	if (iParam0 == 1)
  	{
  		if (unk_0xCE990E643CD9D0E5(Global_98955.f_20, 4))
  		{
  			func_596();
  			unk_0xD2459066EA58CE43(&(Global_98955.f_20), 4);
  		}
  	}
  	else
  	{
  		func_595();
  		unk_0xBE20AB8238688965(&(Global_98955.f_20), 4);
  	}
  }
  
  void func_595()
  {
  	Global_22411.f_5 = 1;
  }
  
  void func_596()
  {
  	Global_22411.f_5 = 0;
  }
  
  void func_597(bool bParam0)
  {
  	if (bParam0)
  	{
  		func_598();
  		if (Global_19681.f_1 == 10 || Global_19681.f_1 == 9)
  		{
  			unk_0xBE20AB8238688965(&Global_7552, 16);
  		}
  		Global_19681.f_1 = 1;
  		if (func_310(0))
  		{
  			func_492(0);
  		}
  	}
  	else if (Global_19681.f_1 == 1)
  	{
  		if (!Global_19681.f_1 == 0)
  		{
  			Global_19681.f_1 = 3;
  		}
  	}
  }
  
  void func_598()
  {
  	if (Global_19681.f_1 == 9 || Global_19681.f_1 == 10)
  	{
  		Global_21058 = 0;
  		Global_21054 = 1;
  	}
  }
  
  void func_599()
  {
  	Global_93131 = 0;
  	Global_93132 = 0;
  }
  
  int func_600()
  {
  	if (((Global_98955 == 13 || Global_98955 == 10) || Global_98955 == 11) || Global_98955 == 12)
  	{
  		return 0;
  	}
  	return 1;
  }
  
  void func_601()
  {
  	Global_98990 = 1;
  	if (unk_0xD5EAF42B1EAE828F(unk_0x460153A63B9477BC(), 1))
  	{
  		if (unk_0x7BCC91F3C1CF24E8(&Global_77065))
  		{
  			switch (func_223())
  			{
  				case 0:
  					StringCopy(&Global_77065, "CMN_MARRE", 16);
  					break;
  				
  				case 1:
  					StringCopy(&Global_77065, "CMN_FARRE", 16);
  					break;
  				
  				case 2:
  					StringCopy(&Global_77065, "CMN_TARRE", 16);
  					break;
  			}
  			StringCopy(&Global_77069, "", 16);
  		}
  		Global_98990 = 0;
  	}
  	else if (!unk_0x5A228A6A51E757C8(unk_0x460153A63B9477BC()))
  	{
  		if (unk_0x7BCC91F3C1CF24E8(&Global_77065))
  		{
  			switch (func_223())
  			{
  				case 0:
  					StringCopy(&Global_77065, "CMN_MDIED", 16);
  					break;
  				
  				case 1:
  					StringCopy(&Global_77065, "CMN_FDIED", 16);
  					break;
  				
  				case 2:
  					StringCopy(&Global_77065, "CMN_TDIED", 16);
  					break;
  			}
  			StringCopy(&Global_77069, "", 16);
  		}
  		Global_98990 = 0;
  		unk_0xBE20AB8238688965(&(Global_98955.f_20), 25);
  	}
  }
  
  void func_602(char* sParam0)
  {
  	if (!unk_0x7BCC91F3C1CF24E8(sParam0))
  	{
  	}
  }
  
  void func_603(var uParam0)
  {
  	func_604(&(uParam0->f_28));
  	func_604(&(uParam0->f_35));
  	func_604(&(uParam0->f_41));
  }
  
  void func_604(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	iVar0 = 0;
  	while (iVar0 <= (*uParam0 - 1))
  	{
  		if (unk_0xAE06B9E39EBDE049((*uParam0)[iVar0]))
  		{
  			unk_0x4F3C4F457D44BB0F((*uParam0)[iVar0], 0, 1);
  		}
  		iVar0++;
  	}
  }
  
  int func_605(int iParam0)
  {
  	if (!func_152(iParam0))
  	{
  		return func_151(iParam0);
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  