#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;
	char* sLocal_18 = NULL;
	var uLocal_19 = 0;
	var uLocal_20 = 0;
	var uLocal_21 = 0;
	var uLocal_22 = 0;
	float fLocal_23 = 0f;
	float fLocal_24 = 0f;
	float fLocal_25 = 0f;
	var uLocal_26 = 0;
	var uLocal_27 = 0;
	float fLocal_28 = 0f;
	var uLocal_29 = 0;
	var uLocal_30 = 0;
	var uLocal_31 = 0;
	float fLocal_32 = 0f;
	float fLocal_33 = 0f;
	var uLocal_34 = 0;
	var uLocal_35 = 0;
	int iLocal_36 = 0;
	var uLocal_37 = 0;
	var uLocal_38 = 0;
	var uLocal_39 = 0;
	int iLocal_40 = 0;
	int iLocal_41 = 0;
	int iLocal_42 = 0;
	int iLocal_43 = 0;
	var uLocal_44 = 0;
	var uLocal_45 = 0;
	var uLocal_46 = 0;
	float fLocal_47 = 0f;
	var uLocal_48 = 0;
	var uLocal_49 = 0;
	var uLocal_50 = 0;
	var uLocal_51 = 0;
	var uLocal_52 = 0;
	var uLocal_53 = 0;
	var uLocal_54 = 0;
	var uLocal_55 = 0;
	var uLocal_56 = 0;
	var uLocal_57 = 0;
	var uLocal_58 = 8;
	var uLocal_59 = 0;
	var uLocal_60 = 0;
	var uLocal_61 = 0;
	var uLocal_62 = 0;
	var uLocal_63 = 0;
	var uLocal_64 = 0;
	var uLocal_65 = 0;
	var uLocal_66 = 0;
	var uLocal_67 = 2;
	var uLocal_68 = 0;
	var uLocal_69 = 0;
	var uLocal_70 = 8;
	var uLocal_71 = 0;
	var uLocal_72 = 0;
	var uLocal_73 = 0;
	var uLocal_74 = 0;
	var uLocal_75 = 0;
	var uLocal_76 = 0;
	var uLocal_77 = 0;
	var uLocal_78 = 0;
	var uLocal_79 = 8;
	var uLocal_80 = 0;
	var uLocal_81 = 0;
	var uLocal_82 = 0;
	var uLocal_83 = 0;
	var uLocal_84 = 0;
	var uLocal_85 = 0;
	var uLocal_86 = 0;
	var uLocal_87 = 0;
	var uLocal_88 = 0;
	var uLocal_89 = 12;
	var uLocal_90 = 0;
	var uLocal_91 = 0;
	var uLocal_92 = 0;
	var uLocal_93 = 0;
	var uLocal_94 = 0;
	var uLocal_95 = 0;
	var uLocal_96 = 0;
	var uLocal_97 = 0;
	var uLocal_98 = 0;
	var uLocal_99 = 0;
	var uLocal_100 = 0;
	var uLocal_101 = 0;
	var uLocal_102 = 12;
	var uLocal_103 = 0;
	var uLocal_104 = 0;
	var uLocal_105 = 0;
	var uLocal_106 = 0;
	var uLocal_107 = 0;
	var uLocal_108 = 0;
	var uLocal_109 = 0;
	var uLocal_110 = 0;
	var uLocal_111 = 0;
	var uLocal_112 = 0;
	var uLocal_113 = 0;
	var uLocal_114 = 0;
	var uLocal_115 = 12;
	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 = 9;
	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 = 9;
	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 = 17;
	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 = 17;
	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;
	int iLocal_203 = 0;
	struct<2> Local_204 = { 0, 0 } ;
	var uLocal_206 = 0;
	var uLocal_207 = 0;
	struct<2> Local_208 = { 0, 0 } ;
	var uLocal_210 = 0;
	var uLocal_211 = 0;
	struct<2> Local_212 = { 0, 0 } ;
	var uLocal_214 = 0;
	var uLocal_215 = 0;
	struct<2> Local_216 = { 0, 0 } ;
	var uLocal_218 = 0;
	var uLocal_219 = 0;
	struct<2> Local_220 = { 0, 0 } ;
	var uLocal_222 = 0;
	var uLocal_223 = 0;
	struct<2> Local_224 = { 0, 0 } ;
	var uLocal_226 = 0;
	var uLocal_227 = 0;
	struct<2> Local_228 = { 0, 0 } ;
	var uLocal_230 = 0;
	var uLocal_231 = 0;
	struct<2> Local_232 = { 0, 0 } ;
	var uLocal_234 = 0;
	var uLocal_235 = 0;
	struct<2> Local_236 = { 0, 0 } ;
	var uLocal_238 = 0;
	var uLocal_239 = 0;
	struct<2> Local_240 = { 0, 0 } ;
	var uLocal_242 = 0;
	var uLocal_243 = 0;
	struct<2> Local_244 = { 0, 0 } ;
	var uLocal_246 = 0;
	var uLocal_247 = 0;
	char cLocal_248[16] = "";
	var uLocal_250 = 0;
	var uLocal_251 = 0;
	struct<2> Local_252 = { 0, 0 } ;
	var uLocal_254 = 0;
	var uLocal_255 = 0;
	struct<2> Local_256 = { 0, 0 } ;
	var uLocal_258 = 0;
	var uLocal_259 = 0;
	struct<2> Local_260 = { 0, 0 } ;
	var uLocal_262 = 0;
	var uLocal_263 = 0;
	struct<2> Local_264 = { 0, 0 } ;
	var uLocal_266 = 0;
	var uLocal_267 = 0;
	int iLocal_268 = 0;
	int iLocal_269 = 0;
	int iLocal_270 = 0;
	int iLocal_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;
	var uLocal_280 = 0;
	var uLocal_281 = 0;
	var uLocal_282 = 0;
	var uLocal_283 = 0;
	var uLocal_284 = 0;
	var uLocal_285 = 0;
	var uLocal_286 = 0;
	var uLocal_287 = 0;
	var uLocal_288 = 0;
	var uLocal_289 = 0;
	var uLocal_290 = 1;
	var uLocal_291 = 0;
	var uLocal_292 = 0;
	var uLocal_293 = 0;
	var uLocal_294 = -1;
	var uLocal_295 = -1;
	var uLocal_296 = 2;
	var uLocal_297 = 0;
	var uLocal_298 = 0;
	var uLocal_299 = 0;
	var uLocal_300 = 0;
	var uLocal_301 = 0;
	var uLocal_302 = 0;
	var uLocal_303 = 0;
	var uLocal_304 = 0;
	var uLocal_305 = 0;
	var uLocal_306 = 0;
	var uLocal_307 = 0;
	var uLocal_308 = 2;
	var uLocal_309 = 0;
	var uLocal_310 = 0;
	var uLocal_311 = 0;
	var uLocal_312 = 0;
	var uLocal_313 = 0;
	var uLocal_314 = 0;
	var uLocal_315 = 0;
	var uLocal_316 = 0;
	var uLocal_317 = 0;
	var uLocal_318 = 0;
	var uLocal_319 = 0;
	var uLocal_320 = 0;
	var uLocal_321 = 0;
	var uLocal_322 = 0;
	var uLocal_323 = 0;
	var uLocal_324 = 0;
	var uLocal_325 = 0;
	var uLocal_326 = 0;
	var uLocal_327 = 0;
	var uLocal_328 = 0;
	var uLocal_329 = 0;
	var uLocal_330 = 0;
	var uLocal_331 = 0;
	var uLocal_332 = 0;
	var uLocal_333 = 0;
	var uLocal_334 = 0;
	var uLocal_335 = 0;
	var uLocal_336 = 0;
	var uLocal_337 = 0;
	var uLocal_338 = 0;
	var uLocal_339 = 0;
	var uLocal_340 = 0;
	var uLocal_341 = 0;
	var uLocal_342 = 0;
	var uLocal_343 = 0;
	var uLocal_344 = 0;
	var uLocal_345 = 0;
	var uLocal_346 = 0;
	var uLocal_347 = 0;
	var uLocal_348 = 0;
	var uLocal_349 = 0;
	var uLocal_350 = 0;
	var uLocal_351 = 0;
	var uLocal_352 = 0;
	var uLocal_353 = 0;
	var uLocal_354 = 0;
	var uLocal_355 = 0;
	var uLocal_356 = 0;
	var uLocal_357 = 0;
	var uLocal_358 = 0;
	var uLocal_359 = 0;
	var uLocal_360 = 0;
	var uLocal_361 = 0;
	var uLocal_362 = 0;
	var uLocal_363 = 0;
	var uLocal_364 = 0;
	var uLocal_365 = 0;
	int iLocal_366 = 0;
	int iLocal_367 = 0;
	vector3 vLocal_368 = { 0f, 0f, 0f };
	var uLocal_371 = 0;
	var uLocal_372 = 0;
	var uLocal_373 = 0;
#endregion

void __EntryFunction__()//Position - 0x0
{
	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_18 = "NULL";
	fLocal_23 = 80f;
	fLocal_24 = 140f;
	fLocal_25 = 180f;
	fLocal_28 = 0f;
	fLocal_32 = -0.0375f;
	fLocal_33 = 0.17f;
	iLocal_36 = 3;
	iLocal_40 = 1;
	iLocal_41 = 65;
	iLocal_42 = 49;
	iLocal_43 = 64;
	fLocal_47 = ((0.05f + 0.275f) - 0.01f);
	StringCopy(&Local_204, "CELL_206", 16);
	StringCopy(&Local_208, "CELL_212", 16);
	StringCopy(&Local_212, "CELL_213", 16);
	StringCopy(&Local_216, "CELL_214", 16);
	StringCopy(&Local_220, "CELL_243", 16);
	StringCopy(&Local_224, "CELL_244", 16);
	StringCopy(&Local_228, "CELL_29", 16);
	StringCopy(&Local_232, "CELL_29", 16);
	StringCopy(&Local_236, "CELL_MP_500", 16);
	StringCopy(&Local_240, "CELL_246", 16);
	StringCopy(&Local_244, "CELL_249", 16);
	StringCopy(&cLocal_248, "CELL_MP_501", 16);
	StringCopy(&Local_252, "CELL_260", 16);
	StringCopy(&Local_256, "CELL_263", 16);
	StringCopy(&Local_260, "CELL_265", 16);
	StringCopy(&Local_264, "CELL_300", 16);
	StringCopy(&vLocal_368, "", 24);
	gameplay::network_set_script_is_safe_for_network_game();
	func_502(&iLocal_271);
	iLocal_269 = 0;
	iLocal_268 = 0;
	func_422(1, 0, 1);
	while (true)
	{
		system::wait(0);
		func_421("[MMM] Calling Reset_New_Invites_Indicator from AppMpJoblistNew");
		func_420();
		Global_2395255 = gameplay::get_game_timer() + 1500;
		Global_2391970.f_1 = 0;
		Global_1347417 = 0;
		func_419();
		if (!Global_14413.f_1 == 9 && Global_14413.f_1 > 3)
		{
			switch (iLocal_203)
			{
				case 0:
					func_411();
					break;
				
				case 1:
					func_408();
					Global_1347417 = 1;
					break;
				
				case 2:
					func_404();
					break;
				
				case 3:
					func_383();
					break;
				
				case 4:
					func_364();
					break;
				
				case 5:
					func_355();
					break;
				
				case 6:
					func_352();
					break;
				
				case 7:
					func_334();
					break;
				
				case 8:
					func_284();
					break;
				
				case 9:
					func_256();
					break;
				
				case 10:
					func_224();
					break;
				
				case 11:
					func_197();
					break;
				
				case 12:
					func_23(&uLocal_273);
					break;
				
				case 13:
					func_6();
					break;
				
				default:
					break;
			}
			if (Global_14413.f_1 != 8)
			{
				if (func_5())
				{
					func_3();
					func_2();
				}
			}
		}
		if (func_1())
		{
			func_3();
			func_2();
		}
	}
}

bool func_1()//Position - 0x252
{
	if (((Global_14413.f_1 == 1 || Global_14413.f_1 == 3) || Global_14413.f_1 == 0) || Global_14357 == 1)
	{
		Global_14400 = 1;
		return true;
	}
	return false;
}

void func_2()//Position - 0x295
{
	if (!Global_1572906)
	{
		Global_1347417 = 0;
		script::terminate_this_thread();
	}
}

void func_3()//Position - 0x2AE
{
	if (gameplay::is_string_null_or_empty(&vLocal_368))
	{
		return;
	}
	if (!func_4(&vLocal_368))
	{
		StringCopy(&vLocal_368, "", 24);
		return;
	}
	ui::clear_help(1);
	StringCopy(&vLocal_368, "", 24);
}

int func_4(char* sParam0)//Position - 0x2E6
{
	ui::_0x0A24DA3A41B718F5(sParam0);
	return ui::_0x10BDDBFC529428DD(0);
}

bool func_5()//Position - 0x2F9
{
	if (Global_2889 == 1 || Global_14413.f_1 < 7)
	{
		Global_14400 = 1;
		return true;
	}
	return false;
}

void func_6()//Position - 0x322
{
	int iVar0;
	
	if (func_22() == 0)
	{
		if (!func_19(player::player_id(), 1))
		{
			func_17();
			func_13(0);
		}
		return;
	}
	if (!Global_2391093[iLocal_268 /*73*/] == 1)
	{
		func_422(1, 1, 0);
		return;
	}
	iVar0 = Global_2391093[iLocal_268 /*73*/].f_2;
	if (func_7(player::player_id(), iVar0, Global_2391093[iLocal_268 /*73*/].f_4))
	{
		return;
	}
	func_422(1, 1, 0);
}

bool func_7(int iParam0, int iParam1, int iParam2)//Position - 0x393
{
	if (iParam1 == 0)
	{
		return false;
	}
	if (iParam0 == func_12())
	{
		return false;
	}
	if (func_11(iParam0) == iParam1)
	{
		if (func_8(iParam0) == iParam2)
		{
			return true;
		}
	}
	return false;
}

int func_8(int iParam0)//Position - 0x3CD
{
	if (func_10(iParam0, 0, 1))
	{
		if (!func_9(iParam0, 1))
		{
			return -1;
		}
		return Global_2418472[iParam0 /*313*/].f_1.f_16;
	}
	return -1;
}

int func_9(int iParam0, int iParam1)//Position - 0x400
{
	if (Global_1312447 != 0)
	{
		return func_11(iParam0) != 0;
	}
	return func_19(iParam0, iParam1);
}

bool func_10(int iParam0, int iParam1, int iParam2)//Position - 0x426
{
	var uVar0;
	
	uVar0 = iParam0;
	if (network::network_is_player_active(iParam0))
	{
		if (iParam1)
		{
			if (!player::is_player_playing(iParam0))
			{
				return false;
			}
		}
		if (iParam2)
		{
			if (!Global_2428492.f_3[uVar0])
			{
				return false;
			}
		}
		return true;
	}
	return false;
}

int func_11(int iParam0)//Position - 0x46A
{
	if (func_10(iParam0, 0, 1))
	{
		return Global_2418472[iParam0 /*313*/].f_1;
	}
	return 0;
}

int func_12()//Position - 0x48C
{
	return -1;
}

void func_13(int iParam0)//Position - 0x495
{
	if (Global_14571)
	{
		func_15(0, 0);
	}
	if (Global_14413.f_1 == 10 || Global_14413.f_1 == 9)
	{
		gameplay::set_bit(&Global_2284, 16);
	}
	if (audio::is_mobile_phone_call_ongoing())
	{
		audio::stop_scripted_conversation(false);
	}
	Global_15712 = 5;
	if (iParam0 == 1)
	{
		gameplay::set_bit(&Global_2283, 30);
	}
	else
	{
		gameplay::clear_bit(&Global_2283, 30);
	}
	if (!func_14())
	{
		Global_14413.f_1 = 3;
	}
}

bool func_14()//Position - 0x505
{
	if (Global_14413.f_1 == 1 || Global_14413.f_1 == 0)
	{
		return true;
	}
	return false;
}

void func_15(int iParam0, int iParam1)//Position - 0x52C
{
	if (iParam0)
	{
		if (func_16(0))
		{
			Global_14571 = 1;
			if (iParam1)
			{
				mobile::get_mobile_phone_position(&Global_14350);
			}
			Global_14341 = { Global_14359[Global_14358 /*3*/] };
			mobile::set_mobile_phone_position(Global_14341);
		}
	}
	else if (Global_14571 == 1)
	{
		Global_14571 = 0;
		Global_14341 = { Global_14366[Global_14358 /*3*/] };
		if (iParam1)
		{
			mobile::set_mobile_phone_position(Global_14350);
		}
		else
		{
			mobile::set_mobile_phone_position(Global_14341);
		}
	}
}

bool func_16(int iParam0)//Position - 0x5A0
{
	if (iParam0 == 1)
	{
		if (Global_14413.f_1 > 3)
		{
			if (gameplay::is_bit_set(Global_2283, 14))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		else
		{
			return false;
		}
	}
	if (script::_get_number_of_instances_of_streamed_script(joaat("cellphone_flashhand")) > 0)
	{
		return true;
	}
	if (Global_14413.f_1 > 3)
	{
		return true;
	}
	return false;
}

void func_17()//Position - 0x5FA
{
	if (func_18())
	{
		Global_2428492.f_2 = 0;
	}
}

var func_18()//Position - 0x610
{
	return Global_2428492.f_2;
}

bool func_19(int iParam0, int iParam1)//Position - 0x61E
{
	if (iParam1)
	{
		if (func_20(iParam0))
		{
			return true;
		}
	}
	if (Global_1587523[iParam0 /*444*/] == -1)
	{
		return false;
	}
	return true;
}

int func_20(int iParam0)//Position - 0x64A
{
	return func_21(iParam0);
}

int func_21(var uParam0)//Position - 0x658
{
	return gameplay::is_bit_set(Global_1587523[uParam0 /*444*/].f_13.f_1, 0);
}

var func_22()//Position - 0x672
{
	return Global_25120;
}

void func_23(var uParam0)//Position - 0x67D
{
	int iVar0;
	int iVar1;
	
	iVar0 = Global_2391093[iLocal_268 /*73*/].f_1;
	if (iVar0 == -1)
	{
		func_422(1, 1, 0);
		return;
	}
	iVar1 = false;
	if (Global_2391093[iLocal_268 /*73*/] == 3)
	{
		iVar1 = true;
	}
	if (iVar1)
	{
		if (!Global_2391093[iLocal_268 /*73*/].f_4 == Global_1587523[iVar0 /*444*/].f_13)
		{
			func_422(1, 1, 0);
			return;
		}
	}
	else if (!Global_2391093[iLocal_268 /*73*/].f_2 == Global_1587523[iVar0 /*444*/] || !Global_2391093[iLocal_268 /*73*/].f_4 == Global_1587523[iVar0 /*444*/].f_39.f_2)
	{
		func_422(1, 1, 0);
		return;
	}
	if (func_196(Global_2391093[iLocal_268 /*73*/].f_2))
	{
		if (!cam::is_screen_faded_out())
		{
			if (cam::is_screen_faded_in())
			{
				cam::do_screen_fade_out(500);
			}
			return;
		}
	}
	if (func_10(player::player_id(), 1, 1))
	{
		if (!func_24(uParam0, &(Global_1587523[iVar0 /*444*/].f_142), Global_1587523[iVar0 /*444*/].f_39.f_2, Global_1587523[iVar0 /*444*/].f_39.f_16, Global_1587523[iVar0 /*444*/].f_39.f_1, Global_1587523[iVar0 /*444*/], iVar0, &(Global_1587523[iVar0 /*444*/].f_136)))
		{
			return;
		}
	}
	func_13(0);
	gameplay::clear_bit(&(Global_1587523[player::player_id() /*444*/].f_39.f_18), 2);
	gameplay::clear_bit(&(Global_1587523[player::player_id() /*444*/].f_39.f_18), 3);
}

bool func_24(var uParam0, char* sParam1, var uParam2, var uParam3, var uParam4, var uParam5, int iParam6, char* sParam7)//Position - 0x7DF
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar3;
	struct<20> Var4;
	
	iVar0 = player::player_id();
	if (func_21(iParam6))
	{
		func_195(1);
		return true;
	}
	else
	{
		if (!gameplay::is_bit_set(Global_1587523[iVar0 /*444*/].f_39.f_18, 6))
		{
			Global_1609227[iVar0 /*34*/].f_18 = uParam4;
			Global_1609227[iVar0 /*34*/].f_21 = uParam5;
			Global_1587523[iVar0 /*444*/].f_2 = uParam2;
			gameplay::set_bit(&(Global_1587523[iVar0 /*444*/].f_39.f_18), 6);
		}
		if (func_33(uParam0, sParam1, &(Global_1587523[iVar0 /*444*/].f_39.f_18), Global_1609227[iVar0 /*34*/].f_21, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0))
		{
			iVar1 = Global_1617379;
			if (Global_1609227[iVar0 /*34*/].f_21 >= 10)
			{
				iVar1 = Global_1609227[iVar0 /*34*/].f_21;
			}
			sVar2 = func_31(iVar1);
			iVar3 = func_27(iVar1);
			Var4.f_1 = -1;
			Var4.f_2 = -1;
			Var4.f_9 = -1;
			Var4.f_16 = -1;
			Var4.f_19 = -1;
			Var4.f_2 = Global_1587523[iVar0 /*444*/].f_2;
			Var4.f_16 = uParam3;
			Var4.f_1 = uParam4;
			if (func_25(sVar2, iVar3, Var4, 1, 1, 1, 0, 1))
			{
				Global_1609227[iVar0 /*34*/].f_18 = -1;
				Global_1609227[iVar0 /*34*/].f_21 = -1;
				Global_1587523[iVar0 /*444*/].f_2 = -1;
				gameplay::clear_bit(&(Global_1587523[iVar0 /*444*/].f_39.f_18), 6);
				gameplay::clear_bit(&(Global_1609227[iVar0 /*34*/].f_12), 12);
				Global_1587523[iVar0 /*444*/].f_39.f_10 = { Global_1617379.f_61 };
				Global_1587523[iVar0 /*444*/].f_39.f_1 = uParam4;
				StringCopy(&(Global_1587523[iVar0 /*444*/].f_136), sParam7, 24);
				StringCopy(&(Global_1587523[iVar0 /*444*/].f_142), sParam1, 24);
				return true;
			}
		}
	}
	return false;
}

bool func_25(char* sParam0, int iParam1, struct<17> Param2, var uParam19, var uParam20, var uParam21, int iParam22, int iParam23, int iParam24, int iParam25, int iParam26)//Position - 0x98C
{
	if (script::does_script_exist(sParam0))
	{
		if (iParam23 && Param2.f_16 != -1)
		{
			gameplay::set_bit(&(Global_1587523[player::player_id() /*444*/].f_39.f_18), 4);
			Global_1587523[player::player_id() /*444*/].f_1 = Param2.f_16;
			player::set_player_control(player::player_id(), false, 256);
			if (iParam26)
			{
				ui::hide_hud_and_radar_this_frame();
			}
		}
		if (iParam22)
		{
			ui::set_frontend_active(0);
			if (!cam::is_screen_faded_out() && !cam::is_screen_fading_out())
			{
				cam::do_screen_fade_out(1000);
			}
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				entity::set_entity_invincible(player::player_ped_id(), true);
			}
		}
		script::request_script(sParam0);
		if (script::has_script_loaded(sParam0))
		{
			if (iParam22)
			{
				if (!cam::is_screen_faded_out())
				{
					return false;
				}
			}
			if (iParam1 <= 0)
			{
				iParam1 = 512;
			}
			system::start_new_script_with_args(sParam0, &Param2, 20, iParam1);
			script::set_script_as_no_longer_needed(sParam0);
			if (!iParam25)
			{
				gameplay::set_bit(&(Global_1587523[player::player_id() /*444*/].f_39.f_18), 0);
			}
			gameplay::clear_bit(&(Global_1587523[player::player_id() /*444*/].f_39.f_18), 4);
			if (iParam24)
			{
				if (player::get_player_wanted_level(player::player_id()) > 0)
				{
					func_26();
					player::clear_player_wanted_level(player::player_id());
				}
			}
			return true;
		}
	}
	return false;
}

void func_26()//Position - 0xAB0
{
	if (Global_2460486.f_3822 != 0)
	{
		Global_2460486.f_3822 = 5;
	}
}

int func_27(int iParam0)//Position - 0xACB
{
	switch (iParam0)
	{
		case 15:
		case 14:
		case 11:
		case 13:
		case 12:
		case 8:
		case 1:
		case 5:
		case 6:
		case 3:
		case 0:
		case 2:
		case 122:
		case 148:
			return func_28(func_30(iParam0));
		
		default:
	}
	return 33000;
}

int func_28(int iParam0)//Position - 0xB3F
{
	switch (iParam0)
	{
		case 91:
		case 98:
		case 92:
		case 96:
		case 99:
		case 100:
		case 93:
		case 101:
		case 102:
		case 94:
		case 103:
		case 95:
		case 105:
		case 97:
		case 49:
		case 64:
		case 62:
		case 70:
			return 33000;
		
		default:
	}
	if (func_29(iParam0) == 3)
	{
		return 8344;
	}
	else if (func_29(iParam0) == 7)
	{
		if ((((((iParam0 == 45 || iParam0 == 43) || iParam0 == 39) || iParam0 == 37) || iParam0 == 41) || iParam0 == 47) || iParam0 == 40)
		{
			return 8344;
		}
		return 3650;
	}
	else if (func_29(iParam0) == 0)
	{
		return 3650;
	}
	else if (func_29(iParam0) == 2)
	{
		return 3650;
	}
	else if (func_29(iParam0) == 6)
	{
		if ((((((((((((iParam0 == 18 || iParam0 == 22) || iParam0 == 24) || iParam0 == 17) || iParam0 == 87) || iParam0 == 88) || iParam0 == 60) || iParam0 == 79) || iParam0 == 65) || iParam0 == 71) || iParam0 == 66) || iParam0 == 67) || iParam0 == 68)
		{
			return 3650;
		}
		if (iParam0 == 77)
		{
			return 8344;
		}
		if ((((((((((iParam0 == 9 || iParam0 == 16) || iParam0 == 15) || iParam0 == 74) || iParam0 == 73) || iParam0 == 19) || iParam0 == 78) || iParam0 == 75) || iParam0 == 21) || iParam0 == 89) || iParam0 == 90)
		{
			return 2050;
		}
		if (iParam0 == 83)
		{
			return 2812;
		}
	}
	return 1424;
}

int func_29(int iParam0)//Position - 0xD92
{
	switch (iParam0)
	{
		case 3:
			return 7;
		
		case 1:
			return 7;
		
		case 2:
			return 7;
		
		case 32:
			return 7;
		
		case 33:
			return 7;
		
		case 34:
			return 7;
		
		case 35:
			return 7;
		
		case 36:
			return 7;
		
		case 37:
			return 7;
		
		case 38:
			return 7;
		
		case 39:
			return 7;
		
		case 40:
			return 7;
		
		case 41:
			return 7;
		
		case 42:
			return 7;
		
		case 43:
			return 7;
		
		case 44:
			return 7;
		
		case 45:
			return 7;
		
		case 46:
			return 7;
		
		case 47:
			return 7;
		
		case 48:
			return 6;
		
		case 49:
			return 6;
		
		case 50:
			return 6;
		
		case 51:
			return 6;
		
		case 52:
			return 6;
		
		case 53:
			return 6;
		
		case 54:
			return 6;
		
		case 55:
			return 6;
		
		case 56:
			return 6;
		
		case 57:
			return 6;
		
		case 58:
			return 6;
		
		case 59:
			return 6;
		
		case 60:
			return 6;
		
		case 61:
			return 6;
		
		case 62:
			return 6;
		
		case 63:
			return 6;
		
		case 64:
			return 6;
		
		case 65:
			return 6;
		
		case 66:
			return 6;
		
		case 67:
			return 6;
		
		case 68:
			return 6;
		
		case 69:
			return 6;
		
		case 70:
			return 6;
		
		case 71:
			return 6;
		
		case 72:
			return 6;
		
		case 104:
			return 6;
		
		case 16:
			return 6;
		
		case 18:
			return 6;
		
		case 28:
			return 6;
		
		case 26:
			return 6;
		
		case 27:
			return 6;
		
		case 29:
			return 6;
		
		case 30:
			return 6;
		
		case 31:
			return 6;
		
		case 17:
			return 6;
		
		case 73:
			return 6;
		
		case 74:
			return 6;
		
		case 19:
			return 6;
		
		case 22:
			return 6;
		
		case 23:
			return 6;
		
		case 24:
			return 6;
		
		case 25:
			return 6;
		
		case 77:
			return 6;
		
		case 87:
			return 6;
		
		case 88:
			return 6;
		
		case 89:
			return 6;
		
		case 90:
			return 6;
		
		case 12:
			return 6;
		
		case 4:
			return 6;
		
		case 13:
			return 6;
		
		case 5:
			return 6;
		
		case 6:
			return 6;
		
		case 8:
			return 6;
		
		case 9:
			return 6;
		
		case 7:
			return 6;
		
		case 10:
			return 6;
		
		case 11:
			return 6;
		
		case 15:
			return 6;
		
		case 21:
			return 6;
		
		case 85:
			return 6;
		
		case 86:
			return 6;
		
		case 75:
			return 6;
		
		case 78:
			return 6;
		
		case 79:
			return 6;
		
		case 76:
			return 6;
		
		case 80:
			return 6;
		
		case 83:
			return 6;
		
		case 84:
			return 6;
		
		case 91:
			return 6;
		
		case 98:
			return 0;
		
		case 92:
			return 6;
		
		case 99:
			return 0;
		
		case 97:
			return 0;
		
		case 100:
			return 0;
		
		case 93:
			return 6;
		
		case 101:
			return 0;
		
		case 96:
			return 6;
		
		case 102:
			return 0;
		
		case 94:
			return 6;
		
		case 103:
			return 0;
		
		case 95:
			return 6;
		
		case 81:
			return 6;
		
		case 82:
			return 6;
		
		case 105:
			return 6;
		
		default:
	}
	return 11;
}

int func_30(int iParam0)//Position - 0x11AC
{
	switch (iParam0)
	{
		case 15:
			return 91;
		
		case 14:
			return 92;
		
		case 122:
			return 96;
		
		case 11:
			return 93;
		
		case 13:
			return 94;
		
		case 12:
			return 95;
		
		case 8:
			return 98;
		
		case 1:
			return 99;
		
		case 5:
			return 97;
		
		case 6:
			return 100;
		
		case 3:
			return 103;
		
		case 0:
			return 101;
		
		case 2:
			return 102;
		
		case 148:
			return 49;
		
		case 151:
			return 52;
		
		case 152:
			return 53;
		
		case 157:
			return 54;
		
		case 153:
			return 55;
		
		case 154:
			return 56;
		
		case 155:
			return 57;
		
		case 159:
			return 58;
		
		case 162:
			return 51;
		
		case 142:
			return 60;
		
		case 160:
			return 62;
		
		case 164:
			return 63;
		
		case 163:
			return 64;
		
		case 166:
			return 65;
		
		case 167:
			return 66;
		
		case 168:
			return 67;
		
		case 169:
			return 68;
		
		case 170:
			return 69;
		
		case 171:
			return 70;
		
		case 172:
			return 71;
		
		case 173:
			return 72;
		
		default:
	}
	return 0;
}

char* func_31(int iParam0)//Position - 0x1332
{
	switch (iParam0)
	{
		case 15:
		case 14:
		case 11:
		case 13:
		case 12:
		case 8:
		case 1:
		case 5:
		case 6:
		case 3:
		case 0:
		case 2:
		case 122:
		case 148:
			return func_32(func_30(iParam0));
		
		default:
	}
	return "FM_Mission_Controller";
}

char* func_32(int iParam0)//Position - 0x13A5
{
	switch (iParam0)
	{
		case 1:
			return "AM_HOLD_UP";
		
		case 2:
			return "AM_CR_SecurityVan";
		
		case 32:
			return "AM_JOYRIDER";
		
		case 33:
			return "AM_PLANE_TAKEDOWN";
		
		case 34:
			return "AM_DISTRACT_COPS";
		
		case 35:
			return "AM_DESTROY_VEH";
		
		case 36:
			return "AM_HOT_TARGET";
		
		case 37:
			return "AM_KILL_LIST";
		
		case 38:
			return "AM_TIME_TRIAL";
		
		case 39:
			return "AM_CP_COLLECTION";
		
		case 40:
			return "AM_CHALLENGES";
		
		case 41:
			return "AM_PENNED_IN";
		
		case 42:
			return "AM_PASS_THE_PARCEL";
		
		case 43:
			return "AM_HOT_PROPERTY";
		
		case 44:
			return "AM_DEAD_DROP";
		
		case 45:
			return "AM_KING_OF_THE_CASTLE";
		
		case 46:
			return "AM_CRIMINAL_DAMAGE";
		
		case 47:
			return "AM_HUNT_THE_BEAST";
		
		case 48:
			return "GB_LIMO_ATTACK";
		
		case 49:
			return "GB_DEATHMATCH";
		
		case 50:
			return "GB_STEAL_VEH";
		
		case 51:
			return "GB_POINT_TO_POINT";
		
		case 52:
			return "GB_TERMINATE";
		
		case 53:
			return "GB_YACHT_ROB";
		
		case 54:
			return "GB_BELLYBEAST";
		
		case 55:
			return "GB_FIVESTAR";
		
		case 56:
			return "GB_ROB_SHOP";
		
		case 57:
			return "GB_COLLECT_MONEY";
		
		case 58:
			return "GB_ASSAULT";
		
		case 59:
			return "GB_VEH_SURV";
		
		case 60:
			return "GB_SIGHTSEER";
		
		case 61:
			return "GB_FLYING_IN_STYLE";
		
		case 62:
			return "GB_FINDERSKEEPERS";
		
		case 63:
			return "GB_HUNT_THE_BOSS";
		
		case 64:
			return "GB_CARJACKING";
		
		case 65:
			return "GB_HEADHUNTER";
		
		case 66:
			return "GB_CONTRABAND_BUY";
		
		case 67:
			return "GB_CONTRABAND_SELL";
		
		case 68:
			return "GB_CONTRABAND_DEFEND";
		
		case 69:
			return "GB_AIRFREIGHT";
		
		case 70:
			return "GB_CASHING_OUT";
		
		case 71:
			return "GB_SALVAGE";
		
		case 72:
			return "GB_FRAGILE_GOODS";
		
		case 104:
			return "dont_cross_the_line";
		
		case 3:
			return "AM_CR_SELL_DRUGS";
		
		case 12:
			return "AM_Safehouse";
		
		case 16:
			return "MG_RACE_TO_POINT";
		
		case 18:
			return "AM_CRATE_DROP";
		
		case 28:
			return "AM_AMMO_DROP";
		
		case 29:
			return "AM_VEHICLE_DROP";
		
		case 30:
			return "AM_BRU_BOX";
		
		case 31:
			return "AM_GA_PICKUPS";
		
		case 26:
			return "AM_backup_heli";
		
		case 27:
			return "AM_airstrike";
		
		case 17:
			return "AM_PI_MENU";
		
		case 73:
			return "AM_BOAT_TAXI";
		
		case 74:
			return "AM_HELI_TAXI";
		
		case 19:
			return "AM_IMP_EXP";
		
		case 22:
			return "AM_TAXI";
		
		case 23:
			return "AM_TAXI_LAUNCHER";
		
		case 24:
			return "AM_GANG_CALL";
		
		case 25:
			return "heli_gun";
		
		case 87:
			return "am_rollercoaster";
		
		case 88:
			return "am_ferriswheel";
		
		case 89:
			return "AM_LAUNCHER";
		
		case 90:
			return "AM_DAILY_OBJECTIVES";
		
		case 4:
			return "AM_STRIPPER";
		
		case 13:
			return "AM_Hitchhiker";
		
		case 5:
			return "stripclub_mp";
		
		case 6:
			return "AM_ArmWrestling";
		
		case 8:
			return "AM_Tennis";
		
		case 9:
			return "AM_Darts";
		
		case 7:
			return "AM_ImportExport";
		
		case 10:
			return "AM_FistFight";
		
		case 11:
			return "AM_DropOffHooker";
		
		case 15:
			return "AM_DOORS";
		
		case 20:
			return "FM_INTRO";
		
		case 21:
			return "AM_PROSTITUTE";
		
		case 75:
			return "fm_hold_up_tut";
		
		case 76:
			return "AM_CAR_MOD_TUT";
		
		case 77:
			return "AM_CONTACT_REQUESTS";
		
		case 78:
			return "am_mission_launch";
		
		case 79:
			return "am_npc_invites";
		
		case 80:
			return "am_lester_cut";
		
		case 83:
			return "AM_VEHICLE_SPAWN";
		
		case 84:
			return "am_ronTrevor_Cut";
		
		case 85:
			return "AM_ARMYBASE";
		
		case 86:
			return "AM_PRISON";
		
		case 91:
			return "AM_ArmWrestling";
		
		case 98:
			return "fm_Bj_race_controler";
		
		case 92:
			return "AM_Darts";
		
		case 99:
			return "fm_deathmatch_controler";
		
		case 97:
			return "FM_Impromptu_DM_Controler";
		
		case 100:
			return "fm_hideout_controler";
		
		case 93:
			return "golf_mp";
		
		case 96:
			return "Pilot_School_MP";
		
		case 101:
			return "FM_Mission_Controller";
		
		case 102:
			return "FM_Race_Controler";
		
		case 94:
			return "Range_Modern_MP";
		
		case 103:
			return "FM_Horde_Controler";
		
		case 95:
			return "tennis_network_mp";
		
		case 81:
			return "am_heist_int";
		
		case 82:
			return "am_lowrider_int";
		
		case 105:
			return "SCTV";
		
		case 0:
			return "";
		
		default:
	}
	return "";
}

bool func_33(var uParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)//Position - 0x190B
{
	if ((iParam3 > 10 && iParam3 <= 15) || iParam3 == 122)
	{
		*uParam0 = 1;
		gameplay::set_bit(iParam2, 3);
		if (!gameplay::is_bit_set(*iParam2, 2))
		{
		}
		gameplay::set_bit(iParam2, 2);
		return true;
	}
	if ((func_194() && func_193()) || func_192())
	{
		if (!gameplay::is_bit_set(*iParam2, 2))
		{
		}
		gameplay::set_bit(iParam2, 2);
		gameplay::set_bit(iParam2, 1);
		gameplay::set_bit(iParam2, 3);
		*uParam0 = 1;
		return true;
	}
	if (iParam7 == 1)
	{
		if (!gameplay::is_bit_set(*iParam2, 3))
		{
			gameplay::set_bit(iParam2, 3);
		}
		return true;
	}
	if (iParam4)
	{
		if (!func_191())
		{
			return false;
		}
	}
	uParam0->f_15 = 0;
	if (iParam8)
	{
		if (func_190())
		{
			if (gameplay::is_bit_set(*iParam2, 2))
			{
				gameplay::set_bit(iParam2, 3);
				return true;
			}
			else
			{
				return false;
			}
		}
	}
	if (iParam6)
	{
		if (func_189())
		{
			return false;
		}
	}
	if (!gameplay::is_bit_set(*iParam2, 2))
	{
		if (!gameplay::is_bit_set(*iParam2, 1))
		{
			if (!iParam12)
			{
				func_178(1, 1, iParam11);
			}
			gameplay::set_bit(iParam2, 1);
			func_177(uParam0, 1, 1);
			*uParam0 = 0;
		}
		if (func_48(uParam0, sParam1, 0, 1, 0, iParam5, 0, 0, 1, iParam9, iParam10, iParam11, 0, iParam12, iParam13))
		{
			if (((func_47() || Global_1617379 == 31) || Global_1617379 == 6) || Global_1617379 == 4)
			{
				if (Global_1617379.f_25 < 1)
				{
					Global_1617379.f_25 = 1;
				}
				if (Global_1617379.f_24 < 1)
				{
					Global_1617379.f_24 = 1;
				}
				if (!func_46())
				{
					func_45();
				}
			}
			else if (Global_1617379 == 1)
			{
				Global_1347825.f_4 = 99;
				Global_1347825.f_6 = Global_1617379.f_46;
				Global_1347825.f_7 = Global_1617379.f_41500;
				Global_1347825.f_9 = Global_1617379.f_34298;
				Global_1347825.f_11 = Global_1617379.f_47;
				Global_1347825.f_12 = Global_1617379.f_49;
				Global_1347825.f_13 = Global_1617379.f_51;
				Global_1347825.f_14 = Global_1617379.f_50;
				Global_1347825.f_16 = Global_1617379.f_22;
				Global_1347825.f_5 = Global_1617379.f_44;
				Global_1347825.f_10 = Global_1617379.f_57;
			}
			else if (func_44())
			{
				Global_2493533.f_7 = 9901;
				Global_2493533.f_8 = Global_1617379.f_33654 + 1;
				if (func_43(Global_1617379.f_29651))
				{
					Global_1617379.f_29651 = { Global_1617379.f_61 };
				}
			}
			gameplay::set_bit(iParam2, 2);
			gameplay::clear_bit(iParam2, 1);
			gameplay::set_bit(iParam2, 3);
			if (*uParam0)
			{
				func_42();
				func_41();
				if (func_40())
				{
					func_37(Global_1617379.f_20);
				}
				Global_1617379.f_71008 = 1;
			}
			else
			{
				func_36();
			}
			if (!func_35())
			{
				func_34();
			}
			return true;
		}
		else
		{
			uParam0->f_15 = 1;
		}
	}
	else
	{
		gameplay::set_bit(iParam2, 3);
		if (Global_1617379.f_71008)
		{
			*uParam0 = 1;
		}
		return true;
	}
	return false;
}

void func_34()//Position - 0x1C0C
{
	Global_2434762.f_27.f_49 = 1;
}

int func_35()//Position - 0x1C1D
{
	int iVar0;
	int iVar1;
	
	iVar0 = 1;
	iVar1 = 0;
	while (iVar1 < 2)
	{
		if (!gameplay::is_string_null_or_empty(&(Global_1617379.f_70658[iVar1 /*6*/])))
		{
			iVar0 = 0;
		}
		iVar1++;
	}
	return iVar0;
}

void func_36()//Position - 0x1C54
{
	gameplay::clear_bit(&Global_2434762, 4);
}

void func_37(int iParam0)//Position - 0x1C65
{
	if (!func_39())
	{
		network::_0x4811BBAC21C5FCD5(2);
		network::_0x5539C3EBF104A53A(1);
		if (iParam0 == 0)
		{
			iParam0 = 32;
		}
		network::_0x702BC4D605522539((iParam0 / 2));
		func_38();
	}
}

void func_38()//Position - 0x1C95
{
	gameplay::set_bit(&(Global_2434762.f_2), 3);
}

int func_39()//Position - 0x1CA8
{
	return gameplay::is_bit_set(Global_2434762.f_2, 3);
}

int func_40()//Position - 0x1CBB
{
	return gameplay::is_bit_set(Global_2435528.f_1.f_2808, 8);
}

void func_41()//Position - 0x1CD2
{
	gameplay::set_bit(&Global_2434762, 4);
}

void func_42()//Position - 0x1CE3
{
	gameplay::set_bit(&Global_2434762, 28);
}

bool func_43(vector3 vParam0)//Position - 0x1CF5
{
	if ((vParam0.x == 0f && vParam0.y == 0f) && vParam0.y == 0f)
	{
		return true;
	}
	return false;
}

bool func_44()//Position - 0x1D1F
{
	if (Global_1617379 == 2 || Global_1617379 == 8)
	{
		return true;
	}
	return false;
}

void func_45()//Position - 0x1D42
{
	Global_1706782.f_5 = 0;
	Global_1706782.f_11 = -1;
}

bool func_46()//Position - 0x1D58
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < Global_1617379.f_25)
	{
		iVar1 = 0;
		while (iVar1 < Global_1617379.f_25)
		{
			if (Global_1617379.f_32[iVar0] != Global_1617379.f_32[iVar1])
			{
				return false;
			}
			else if (Global_1617379.f_27[iVar0] != Global_1617379.f_27[iVar1])
			{
				return false;
			}
			iVar1++;
		}
		iVar0++;
	}
	return true;
}

bool func_47()//Position - 0x1DC8
{
	if ((((((Global_1617379 == 0 || Global_1617379 == 4) || Global_1617379 == 6) || Global_1617379 == 3) || Global_1617379 == 31) || Global_1617379.f_2 == 6) || Global_1617379.f_2 == 5)
	{
		return true;
	}
	return false;
}

bool func_48(var uParam0, char* sParam1, int iParam2, int iParam3, int iParam4, var uParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13, var uParam14)//Position - 0x1E2B
{
	var uVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	struct<16> Var17;
	int iVar33;
	
	if (uParam0->f_26 == 0)
	{
		if (func_189() && uParam0->f_4 == 0)
		{
			return false;
		}
	}
	if (!func_176() || (iParam2 != 0 && iParam2 != 1))
	{
		if (func_173())
		{
			*uParam0 = 0;
			return true;
		}
	}
	switch (uParam0->f_4)
	{
		case 0:
			*uParam0 = 0;
			uParam0->f_1 = 0;
			uParam0->f_28 = 0;
			uParam0->f_24 = func_172(1);
			uParam0->f_25 = func_170(1);
			if (func_169())
			{
				return false;
			}
			func_168();
			func_167();
			if (func_176() || iParam9)
			{
				network::_0xF98DDE0A8ED09323(1);
			}
			else
			{
				network::_0xF98DDE0A8ED09323(0);
			}
			func_165();
			if (iParam4)
			{
				func_164(uParam0, 11);
			}
			else
			{
				func_164(uParam0, 1);
			}
			break;
		
		case 1:
			if (func_176() || iParam9)
			{
				if (datafile::_load_ugc_file(sParam1))
				{
					if (iParam2 == 0)
					{
						Global_1617379.f_71015 = 1;
						if (!iParam9)
						{
							StringCopy(&(Global_1617379.f_70652), sParam1, 24);
						}
						func_92(-1, 1, 0, 0);
						uParam0->f_8 = 0;
						func_164(uParam0, 9);
						*uParam0 = 1;
						func_91();
						return true;
					}
					else if (iParam2 == 1)
					{
						if (uParam0->f_16)
						{
							StringCopy(&(Global_970889.f_42), sParam1, 24);
							Global_1587523[player::player_id() /*444*/].f_19 = { Global_970889.f_12 };
							func_90(&iVar1, &uVar0, &Global_970889);
							if (Global_970889.f_65 == 0)
							{
								func_177(uParam0, 1, 1);
								*uParam0 = 0;
								uParam0->f_28 = 1;
								func_167();
								func_91();
								return true;
							}
							uParam0->f_8 = 0;
						}
						else
						{
							StringCopy(&(Global_969327.f_42), sParam1, 24);
							Global_1587523[player::player_id() /*444*/].f_19 = { Global_969327.f_12 };
							func_90(&iVar1, &uVar0, &Global_969327);
							uParam0->f_8 = 0;
							if (Global_969327.f_65 == 0)
							{
								func_177(uParam0, 1, 1);
								*uParam0 = 0;
								uParam0->f_28 = 1;
								func_167();
								func_91();
								return true;
							}
						}
						func_167();
						network::_0x61A885D3F7CFEE9A();
						network::_0xF98DDE0A8ED09323(1);
						func_89(uParam0);
						func_164(uParam0, 13);
					}
					else
					{
						*uParam0 = 0;
						func_91();
						return true;
					}
				}
				else
				{
					*uParam0 = 0;
					func_91();
					func_167();
					return true;
				}
			}
			else if ((uParam0->f_21 != -1 && uParam0->f_22 != -1) && iParam2 == 0)
			{
				uParam0->f_5 = network::_0x7FD2990AF016795E(func_88(iParam2), sParam1, 0, uParam0->f_21, uParam0->f_22);
				datafile::_0xAD6875BBC0FC899C(uParam0->f_5);
				func_164(uParam0, 4);
			}
			else if (iParam10)
			{
				if (network::_0x158EC424F35EC469(sParam1, 1, func_88(iParam2)))
				{
					func_164(uParam0, 3);
				}
			}
			else if (network::set_balance_add_machine(sParam1, func_88(iParam2)))
			{
				func_164(uParam0, 3);
			}
			break;
		
		case 3:
			if (network::_0x02ADA21EA2F6918F())
			{
				uParam0->f_40 = network::_0xEDF7F927136C224B();
				if (network::_0x941E5306BCD7C2C7())
				{
				}
				else
				{
					func_177(uParam0, 1, 1);
					uParam0->f_40 = network::_0xEDF7F927136C224B();
					*uParam0 = 0;
					func_91();
					return true;
				}
				if (network::_0xE0A6138401BCB837() > 0)
				{
					if (!iParam12 && !func_86(uParam0->f_24, uParam0->f_25, network::_get_content_user_id(0), network::_get_content_category(0)))
					{
						func_177(uParam0, 1, 1);
						*uParam0 = 0;
						uParam0->f_27 = 1;
						func_91();
						return true;
					}
					if (iParam2 == 0)
					{
						uParam0->f_5 = network::_0x171DF6A0C07FB3DC(0, 0);
						datafile::_0xAD6875BBC0FC899C(uParam0->f_5);
						func_164(uParam0, 4);
					}
					else if (iParam2 == 1)
					{
						if (datafile::_0xA69AC4ADE82B57A4(0))
						{
							if (uParam0->f_16)
							{
								StringCopy(&(Global_970889.f_12), network::_0xBF09786A7FCAB582(0), 64);
								StringCopy(&(Global_970889.f_36), network::_get_content_id(0), 24);
								Global_970889.f_71 = network::_get_content_category(0);
								StringCopy(&(Global_970889.f_42), sParam1, 24);
								Global_1587523[player::player_id() /*444*/].f_19 = { Global_970889.f_12 };
								func_90(&iVar1, &uVar0, &Global_970889);
								uParam0->f_8 = 0;
							}
							else
							{
								StringCopy(&(Global_969327.f_12), network::_0xBF09786A7FCAB582(0), 64);
								StringCopy(&(Global_969327.f_36), network::_get_content_id(0), 24);
								Global_969327.f_71 = network::_get_content_category(0);
								StringCopy(&(Global_969327.f_42), sParam1, 24);
								Global_1587523[player::player_id() /*444*/].f_19 = { Global_969327.f_12 };
								func_90(&iVar1, &uVar0, &Global_969327);
								uParam0->f_8 = 0;
							}
							func_167();
							func_164(uParam0, 10);
						}
						else
						{
							func_177(uParam0, 1, 1);
							*uParam0 = 0;
							func_91();
							return true;
						}
					}
					else if (iParam2 == 4)
					{
						if (datafile::_0xA69AC4ADE82B57A4(0))
						{
							if (uParam0->f_16)
							{
								func_84(&iVar1, &uVar0, &Global_970889, iParam6);
								if (iParam6 == 1)
								{
									func_177(uParam0, 1, 1);
									*uParam0 = 1;
									func_91();
									return true;
								}
								StringCopy(&(Global_970889.f_12), network::_0xBF09786A7FCAB582(0), 64);
								StringCopy(&(Global_970889.f_36), network::_get_content_id(0), 24);
								StringCopy(&(Global_970889.f_42), sParam1, 24);
								Global_1587523[player::player_id() /*444*/].f_19 = { Global_970889.f_12 };
								uParam0->f_8 = 0;
							}
							else
							{
								func_84(&iVar1, &uVar0, &Global_969327, iParam6);
								if (iParam6 == 1)
								{
									func_177(uParam0, 1, 1);
									*uParam0 = 1;
									func_91();
									return true;
								}
								StringCopy(&(Global_969327.f_12), network::_0xBF09786A7FCAB582(0), 64);
								StringCopy(&(Global_969327.f_36), network::_get_content_id(0), 24);
								StringCopy(&(Global_969327.f_42), sParam1, 24);
								Global_1587523[player::player_id() /*444*/].f_19 = { Global_969327.f_12 };
								uParam0->f_8 = 0;
							}
							func_167();
							func_164(uParam0, 10);
						}
						else
						{
							func_177(uParam0, 1, 1);
							*uParam0 = 0;
							func_91();
							return true;
						}
					}
				}
				else
				{
					func_177(uParam0, 1, 1);
					*uParam0 = 0;
					func_91();
					return true;
				}
			}
			break;
		
		case 4:
			if (network::_0x4C61B39930D045DA(uParam0->f_5))
			{
				if (uParam0->f_2)
				{
					uParam0->f_2 = 0;
					ui::_remove_loading_prompt();
				}
				if (network::_0x3A3D5568AF297CD5(uParam0->f_5))
				{
					func_164(uParam0, 6);
				}
				else if (uParam0->f_22 != 1)
				{
					uParam0->f_22 = 1;
					uParam0->f_3 = 1;
					func_164(uParam0, 0);
					return false;
				}
				else
				{
					func_177(uParam0, 1, 1);
					*uParam0 = 0;
					func_91();
					return true;
				}
			}
			else if (func_83() || func_82() == 4)
			{
				if (uParam0->f_2 == 0)
				{
					uParam0->f_2 = 1;
					ui::_set_loading_prompt_text_entry("FMMC_DOWNLOAD");
					ui::_show_loading_prompt(5);
				}
			}
			break;
		
		case 6:
			if (iParam13 && !func_81())
			{
				return false;
			}
			if (datafile::_0x15FF52B809DB2353(uParam0->f_5))
			{
				if (datafile::_0x22DA66936E0FFF37(uParam0->f_5))
				{
					if (iParam3)
					{
						if (iParam13)
						{
							func_178(1, 1, iParam11);
						}
						if ((uParam0->f_21 != -1 && uParam0->f_22 != -1) && iParam2 == 0)
						{
							Global_1617379.f_71015 = 1;
							Global_1617379.f_71004 = 1;
							StringCopy(&(Global_1617379.f_70341), "", 64);
							StringCopy(&(Global_1617379.f_70388), "", 24);
							StringCopy(&(Global_1617379.f_70366), "RockStar", 24);
							if (iParam10)
							{
								StringCopy(&(Global_1617379.f_70652), sParam1, 24);
							}
							uParam0->f_34 = uParam0->f_22;
						}
						else
						{
							Global_1617379.f_70365 = gameplay::get_hash_key(network::_get_root_content_id(0));
							StringCopy(&(Global_1617379.f_70388), network::_get_content_user_id(0), 24);
							Global_1617379.f_71015 = network::_get_content_category(0);
							if (Global_1617379.f_71015 == 1 || Global_1617379.f_71015 == 2)
							{
								StringCopy(&(Global_1617379.f_70366), "RockStar", 24);
							}
							else
							{
								StringCopy(&(Global_1617379.f_70366), network::_get_content_user_id(0), 24);
							}
							if ((Global_1617379.f_71015 == 0 || Global_1617379.f_71015 == 3) && network::_0x8C8D2739BA44AF0F(0))
							{
								StringCopy(&(Global_1617379.f_70341), player::get_player_name(player::player_id()), 64);
							}
							else if ((gameplay::is_durango_version() && (Global_1617379.f_71015 == 0 || Global_1617379.f_71015 == 3)) && func_80(&iVar33, &(Global_1617379.f_70388)))
							{
								StringCopy(&(Global_1617379.f_70341), player::get_player_name(iVar33), 64);
							}
							else
							{
								StringCopy(&(Global_1617379.f_70341), network::_0x703F12425ECA8BF5(0), 64);
							}
							Global_1617379.f_70672 = network::_0x759299C5BB31D2A9(0, 0);
							Global_1617379.f_71006 = network::_0xAEAB987727C5A8A4(0);
							uParam0->f_23 = func_79(0);
							Global_1617379.f_84040 = uParam0->f_23;
							if (iParam10)
							{
								StringCopy(&(Global_1617379.f_70652), network::_get_content_id(0), 24);
							}
							if (Global_1617379.f_71015 == 0 || Global_1617379.f_71015 == 3)
							{
								if ((network::_0x584770794D758C18(0, &uVar4) && network::network_is_handle_valid(&uVar4, 13)) && network::network_is_friend(&uVar4))
								{
									Var17 = { Global_1617379.f_70341 };
									func_78(1, Var17);
								}
								else
								{
									func_78(0, Var17);
								}
							}
							else
							{
								func_78(0, Var17);
							}
							Global_1617379.f_8 = func_77(network::_0x1ACCFBA3D8DAB2EE(0, 0), network::_0x759299C5BB31D2A9(0, 0));
							if (network::_0x70EA8DA57840F9BE(uParam0->f_7))
							{
								Global_1617379.f_71005 = network::_0x993CBE59D350D225(0);
								Global_1617379.f_71007 = 1;
							}
							else
							{
								Global_1617379.f_71005 = 0;
								Global_1617379.f_71007 = 0;
							}
							Global_1617379.f_71004 = network::_0x3054F114121C21EA(0);
							uParam0->f_34 = network::_0x32DD916F3F7C9672(0);
							if (!func_176())
							{
								if (network::_0xF53E48461B71EECB(uParam0->f_34))
								{
									uParam0->f_30 = network::_get_content_description_hash(0);
								}
								else
								{
									uParam0->f_30 = -1;
								}
							}
							Global_1617379.f_70671 = uParam0->f_30;
							Global_2435528.f_4088.f_3 = network::_0x4E548C0D7AE39FF9(0, 0);
							Global_2435528.f_4088.f_2 = network::_0x87E5C46C187FE0AE(0, 0);
							if (Global_1617379.f_71015 == 1 || Global_1617379.f_71015 == 2)
							{
								StringCopy(&(Global_1617379.f_70341), func_76(), 64);
							}
						}
						if (!iParam10)
						{
							StringCopy(&(Global_1617379.f_70652), sParam1, 24);
						}
						uParam0->f_31 = 0;
						if (!func_176())
						{
							func_92(uParam0->f_34, iParam11, (iParam13 || uParam14), uParam0->f_31);
							if (iParam13 || uParam14)
							{
								func_164(uParam0, 5);
								return false;
							}
						}
						else
						{
							func_92(-1, iParam11, 0, 0);
						}
						if (func_73(uParam0, iParam2, iParam13, iParam9))
						{
							return true;
						}
					}
					else
					{
						iVar1 = datafile::_get_root_object();
						iVar2 = datafile::_object_value_get_object(iVar1, "mission");
						iVar3 = datafile::_object_value_get_object(iVar2, "gen");
						StringCopy(&(Global_2428492.f_3178), network::_0xBF09786A7FCAB582(0), 32);
						Global_2428492.f_3178.f_8 = datafile::_object_value_get_integer(iVar3, "type");
						uParam0->f_17 = network::_0x70EA8DA57840F9BE(0);
						*uParam0 = 1;
						func_91();
						datafile::_0x8F5EA1C01D65A100(uParam0->f_5);
						func_167();
						return true;
					}
					datafile::_0x8F5EA1C01D65A100(uParam0->f_5);
					func_167();
				}
				else if (iParam2 == 0)
				{
					func_177(uParam0, 1, 1);
					uParam0->f_41.f_3 = 0;
					*uParam0 = 0;
					uParam0->f_1 = 1;
					func_91();
					return true;
				}
				else
				{
					uParam0->f_8++;
					if (uParam0->f_8 > 1000)
					{
						func_177(uParam0, 1, 1);
						uParam0->f_41.f_3 = 0;
						*uParam0 = 0;
						func_91();
						return true;
					}
				}
			}
			break;
		
		case 5:
			func_92(uParam0->f_34, iParam11, (iParam13 || uParam14), uParam0->f_31);
			if (uParam0->f_31 >= 6)
			{
				if (func_73(uParam0, iParam2, (iParam13 || uParam14), iParam9))
				{
					return true;
				}
			}
			uParam0->f_31++;
			break;
		
		case 9:
			if (func_71(uParam0, 0, iParam3, 0))
			{
				func_164(uParam0, 0);
				func_167();
				if ((((func_65(Global_1617379.f_70365) && func_47()) && !iParam9) && !gameplay::is_string_null_or_empty(&(Global_1617379.f_70658[0 /*6*/]))) && (func_83() || (func_60() && !func_59())))
				{
					uParam0->f_8 = 0;
					func_164(uParam0, 19);
					return false;
				}
				if ((uParam5 || iParam7) && !iParam13)
				{
					if (iParam7 || uParam5)
					{
						uParam0->f_23 = func_79(0);
						uParam0->f_21 = network::_get_content_file_version(0, uParam0->f_23);
					}
					func_58(&(uParam0->f_41), 0);
					func_164(uParam0, 18);
				}
				else
				{
					uParam0->f_41.f_3 = 1;
					func_177(uParam0, 1, 0);
					func_91();
					return true;
				}
			}
			break;
		
		case 19:
			if (network::_0x158EC424F35EC469(&(Global_1617379.f_70658[0 /*6*/]), 1, func_88(iParam2)))
			{
				func_164(uParam0, 21);
			}
			break;
		
		case 21:
			if (network::_0x02ADA21EA2F6918F())
			{
				uParam0->f_40 = network::_0xEDF7F927136C224B();
				if (network::_0x941E5306BCD7C2C7())
				{
				}
				else
				{
					func_177(uParam0, 1, 1);
					uParam0->f_40 = network::_0xEDF7F927136C224B();
					*uParam0 = 0;
					func_91();
					return true;
				}
				if (network::_0xE0A6138401BCB837() > 0)
				{
					uParam0->f_5 = network::_0x171DF6A0C07FB3DC(0, 0);
					datafile::_0xAD6875BBC0FC899C(uParam0->f_5);
					func_164(uParam0, 22);
				}
				else
				{
					func_177(uParam0, 1, 1);
					*uParam0 = 0;
					func_91();
					return true;
				}
			}
			break;
		
		case 22:
			if (network::_0x4C61B39930D045DA(uParam0->f_5))
			{
				if (network::_0x3A3D5568AF297CD5(uParam0->f_5))
				{
					func_164(uParam0, 23);
				}
				else if (uParam0->f_22 != 1)
				{
					uParam0->f_22 = 1;
					uParam0->f_3 = 1;
					func_164(uParam0, 0);
					return false;
				}
				else
				{
					func_177(uParam0, 1, 1);
					*uParam0 = 0;
					func_91();
					return true;
				}
			}
			break;
		
		case 23:
			if (datafile::_0x15FF52B809DB2353(uParam0->f_5))
			{
				if (datafile::_0x22DA66936E0FFF37(uParam0->f_5))
				{
					func_55();
					func_177(uParam0, 1, 0);
					Global_1616134 = 1;
					func_91();
					*uParam0 = 1;
					return true;
				}
				else
				{
					func_177(uParam0, 1, 1);
					uParam0->f_41.f_3 = 0;
					*uParam0 = 0;
					uParam0->f_1 = 1;
					func_91();
					return true;
				}
			}
			break;
		
		case 18:
			if (gameplay::is_bit_set(Global_1617379.f_7, 0))
			{
				if (iParam7)
				{
					if (func_54(&(uParam0->f_41), sParam1, uParam0->f_21, uParam0->f_23))
					{
						func_177(uParam0, 1, 0);
						uParam0->f_41.f_3 = 1;
						uParam0->f_41.f_1 = 0;
						func_91();
						return true;
					}
				}
				else
				{
					StringCopy(&(uParam0->f_41.f_4), sParam1, 64);
					uParam0->f_41.f_3 = 1;
					func_177(uParam0, 1, 0);
					func_91();
					return true;
				}
			}
			else
			{
				uParam0->f_41.f_3 = 1;
				func_177(uParam0, 1, 1);
				func_91();
				return true;
			}
			break;
		
		case 10:
			if (func_71(uParam0, 0, iParam3, iParam2))
			{
				func_167();
				func_164(uParam0, 11);
			}
			break;
		
		case 11:
			if (uParam0->f_16)
			{
				if (network::set_balance_add_machines(&(Global_970889.f_1177), Global_970889.f_65, func_88(0)))
				{
					func_164(uParam0, 12);
				}
			}
			else if (network::set_balance_add_machines(&(Global_969327.f_1177), Global_969327.f_65, func_88(0)))
			{
				func_164(uParam0, 12);
			}
			break;
		
		case 12:
			if (network::_0x02ADA21EA2F6918F())
			{
				if (network::_0x941E5306BCD7C2C7())
				{
				}
				else
				{
					func_177(uParam0, 1, 1);
					uParam0->f_40 = network::_0xEDF7F927136C224B();
					*uParam0 = 0;
					func_91();
					return true;
				}
				if (network::_0xE0A6138401BCB837() > 0)
				{
					if (uParam0->f_16)
					{
						Global_970889.f_65 = network::_0xE0A6138401BCB837();
					}
					else
					{
						Global_969327.f_65 = network::_0xE0A6138401BCB837();
					}
					uParam0->f_8 = 0;
					func_177(uParam0, 0, iParam8);
					func_89(uParam0);
					func_164(uParam0, 13);
				}
				else
				{
					func_177(uParam0, 1, 1);
					*uParam0 = 0;
					func_91();
					return true;
				}
			}
			break;
		
		case 13:
			if (func_176())
			{
				if (uParam0->f_16)
				{
					uParam0->f_9 = 0;
					while (uParam0->f_9 <= (Global_970889.f_65 - 1))
					{
						if (datafile::_load_ugc_file(&(Global_970889.f_1177[uParam0->f_9 /*6*/])))
						{
							func_50(uParam0, &Global_970889);
							network::_0x61A885D3F7CFEE9A();
						}
						uParam0->f_9++;
					}
					func_91();
					return true;
				}
				else
				{
					uParam0->f_9 = 0;
					while (uParam0->f_9 <= (Global_969327.f_65 - 1))
					{
						if (datafile::_load_ugc_file(&(Global_969327.f_1177[uParam0->f_9 /*6*/])))
						{
							func_50(uParam0, &Global_969327);
							network::_0x61A885D3F7CFEE9A();
						}
						uParam0->f_9++;
					}
					func_91();
					return true;
				}
			}
			else if (uParam0->f_16)
			{
				if (func_49(uParam0, &Global_970889))
				{
					if (uParam0->f_27)
					{
						func_177(uParam0, 1, iParam8);
						*uParam0 = 0;
						uParam0->f_27 = 1;
						func_91();
						return true;
					}
					else
					{
						func_164(uParam0, 17);
						*uParam0 = 1;
					}
				}
			}
			else if (func_49(uParam0, &Global_969327))
			{
				if (uParam0->f_27)
				{
					func_177(uParam0, 1, 1);
					*uParam0 = 0;
					uParam0->f_27 = 1;
					func_91();
					return true;
				}
				else
				{
					func_164(uParam0, 17);
					*uParam0 = 1;
				}
			}
			break;
		
		case 17:
			func_164(uParam0, 0);
			func_167();
			func_177(uParam0, 1, iParam8);
			*uParam0 = 1;
			func_91();
			return true;
			break;
	}
	return false;
}

bool func_49(var uParam0, var uParam1)//Position - 0x2E91
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= (uParam1->f_65 - 1))
	{
		if (datafile::_0xA69AC4ADE82B57A4(uParam0->f_7))
		{
			if (!func_86(uParam0->f_24, uParam0->f_25, network::_get_content_user_id(0), network::_get_content_category(0)))
			{
				uParam0->f_27 = 1;
				return true;
			}
			func_50(uParam0, uParam1);
			uParam0->f_9++;
		}
		else
		{
			uParam0->f_8++;
		}
		if (uParam0->f_8 > 200)
		{
			func_167();
			uParam0->f_7++;
			uParam0->f_8 = 0;
		}
		if (uParam0->f_9 >= 31)
		{
			return true;
		}
		if (uParam0->f_7 >= uParam1->f_65)
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

void func_50(var uParam0, var uParam1)//Position - 0x2F36
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = datafile::_get_root_object();
	iVar1 = datafile::_object_value_get_object(iVar0, "mission");
	iVar2 = datafile::_object_value_get_object(iVar1, "gen");
	uParam1->f_72[uParam0->f_9 /*69*/].f_45 = { func_53(iVar2, "start") };
	if (func_176())
	{
		StringCopy(&(uParam1->f_72[uParam0->f_9 /*69*/].f_12), datafile::_object_value_get_string(iVar2, "nm"), 64);
	}
	else
	{
		StringCopy(&(uParam1->f_72[uParam0->f_9 /*69*/].f_12), network::_0xBF09786A7FCAB582(uParam0->f_7), 64);
	}
	if (!func_176())
	{
		uParam1->f_72[uParam0->f_9 /*69*/].f_44 = network::_get_content_description_hash(uParam0->f_7);
	}
	uParam1->f_72[uParam0->f_9 /*69*/].f_68 = network::_get_content_category(uParam0->f_7);
	uParam1->f_72[uParam0->f_9 /*69*/].f_56 = datafile::_object_value_get_integer(iVar2, "min");
	uParam1->f_72[uParam0->f_9 /*69*/].f_59 = datafile::_object_value_get_integer(iVar2, "tnum");
	uParam1->f_72[uParam0->f_9 /*69*/].f_60 = datafile::_object_value_get_integer(iVar2, "num");
	uParam1->f_72[uParam0->f_9 /*69*/].f_54 = datafile::_object_value_get_integer(iVar2, "type");
	uParam1->f_72[uParam0->f_9 /*69*/].f_55 = datafile::_object_value_get_integer(iVar2, "subtype");
	uParam1->f_72[uParam0->f_9 /*69*/].f_48 = { func_53(iVar2, "cam") };
	uParam1->f_72[uParam0->f_9 /*69*/].f_51 = { func_52(iVar2) };
	uParam1->f_72[uParam0->f_9 /*69*/].f_66 = datafile::_object_value_get_integer(iVar2, "adverm");
	uParam1->f_72[uParam0->f_9 /*69*/].f_57 = func_79(uParam0->f_7);
	StringCopy(&(uParam1->f_72[uParam0->f_9 /*69*/].f_6), network::_0x703F12425ECA8BF5(uParam0->f_7), 24);
	if (!func_176())
	{
		uParam1->f_72[uParam0->f_9 /*69*/].f_61 = func_77(network::_0x1ACCFBA3D8DAB2EE(uParam0->f_7, 0), network::_0x759299C5BB31D2A9(uParam0->f_7, 0));
	}
	if (func_22() != 2)
	{
		if (uParam1->f_72[uParam0->f_9 /*69*/].f_60 > Global_262145.f_4740)
		{
			uParam1->f_72[uParam0->f_9 /*69*/].f_60 = Global_262145.f_4740;
		}
		if (uParam1->f_72[uParam0->f_9 /*69*/].f_56 > Global_262145.f_4740)
		{
			uParam1->f_72[uParam0->f_9 /*69*/].f_56 = Global_262145.f_4740;
		}
	}
	uParam1->f_72[uParam0->f_9 /*69*/].f_58 = datafile::_object_value_get_integer(iVar2, "rank");
	func_51(uParam1->f_72[uParam0->f_9 /*69*/].f_54, &(uParam1->f_72[uParam0->f_9 /*69*/].f_60), &(uParam1->f_72[uParam0->f_9 /*69*/].f_56));
	if (uParam1->f_6 < uParam1->f_72[uParam0->f_9 /*69*/].f_56)
	{
		uParam1->f_6 = uParam1->f_72[uParam0->f_9 /*69*/].f_56;
	}
	if (uParam1->f_7 > uParam1->f_72[uParam0->f_9 /*69*/].f_60 || uParam1->f_7 == 0)
	{
		uParam1->f_7 = uParam1->f_72[uParam0->f_9 /*69*/].f_60;
	}
	uParam1->f_72[uParam0->f_9 /*69*/].f_67 = 1;
	gameplay::set_bit(&(uParam1->f_72[uParam0->f_9 /*69*/].f_64), 13);
	StringCopy(&(uParam1->f_72[uParam0->f_9 /*69*/]), network::_get_content_id(uParam0->f_9), 24);
	uParam0->f_8 = 0;
	uParam0->f_7++;
	if (datafile::_get_root_object() != 0)
	{
		datafile::datafile_delete();
	}
	if (!func_176())
	{
		StringCopy(&(uParam1->f_1177[uParam0->f_9 /*6*/]), network::_get_content_id(uParam0->f_9), 24);
		if (network::_0x70EA8DA57840F9BE(uParam0->f_9))
		{
			gameplay::set_bit(&(uParam1->f_72[uParam0->f_9 /*69*/].f_64), 14);
			if (datafile::_get_root_object() != 0)
			{
				datafile::datafile_delete();
			}
		}
	}
}

void func_51(int iParam0, var uParam1, var uParam2)//Position - 0x325F
{
	if (iParam0 == 1)
	{
		if (*uParam2 < 2)
		{
			*uParam2 = 2;
		}
	}
	else if (*uParam2 < 1)
	{
		*uParam2 = 1;
	}
	if (*uParam1 < *uParam2)
	{
		*uParam1 = *uParam2;
	}
}

Vector3 func_52(int iParam0)//Position - 0x3295
{
	vector3 vVar0;
	
	if (datafile::_object_value_get_type(iParam0, "camp") == 3)
	{
		vVar0.x = datafile::_object_value_get_float(iParam0, "camp");
	}
	else if (datafile::_object_value_get_type(iParam0, "camp") == 2)
	{
		vVar0.x = system::to_float(datafile::_object_value_get_integer(iParam0, "camp"));
	}
	if (datafile::_object_value_get_type(iParam0, "camh") == 3)
	{
		vVar0.z = datafile::_object_value_get_float(iParam0, "camh");
	}
	else if (datafile::_object_value_get_type(iParam0, "camh") == 2)
	{
		vVar0.z = system::to_float(datafile::_object_value_get_integer(iParam0, "camh"));
	}
	return vVar0;
}

Vector3 func_53(int iParam0, char* sParam1)//Position - 0x331B
{
	vector3 vVar0;
	int iVar3;
	
	if (datafile::_object_value_get_type(iParam0, sParam1) == 5)
	{
		vVar0 = { datafile::_object_value_get_vector3(iParam0, sParam1) };
	}
	else if (datafile::_object_value_get_type(iParam0, sParam1) == 6)
	{
		iVar3 = datafile::_object_value_get_object(iParam0, sParam1);
		if (datafile::_object_value_get_type(iVar3, "x") == 2)
		{
			vVar0.x = system::to_float(datafile::_object_value_get_integer(iVar3, "x"));
		}
		else
		{
			vVar0.x = datafile::_object_value_get_float(iVar3, "x");
		}
		if (datafile::_object_value_get_type(iVar3, "y") == 2)
		{
			vVar0.y = system::to_float(datafile::_object_value_get_integer(iVar3, "y"));
		}
		else
		{
			vVar0.y = datafile::_object_value_get_float(iVar3, "y");
		}
		if (datafile::_object_value_get_type(iVar3, "z") == 2)
		{
			vVar0.z = system::to_float(datafile::_object_value_get_integer(iVar3, "z"));
		}
		else
		{
			vVar0.z = datafile::_object_value_get_float(iVar3, "z");
		}
	}
	return vVar0;
}

bool func_54(var uParam0, char* sParam1, var uParam2, var uParam3)//Position - 0x33E7
{
	switch (uParam0->f_1)
	{
		case 0:
			if (*uParam0 != 0)
			{
				network::texture_download_release(*uParam0);
			}
			graphics::_0x0A46AF8A78DC5E0A();
			uParam0->f_1 = 1;
			break;
		
		case 1:
			if (graphics::_0x4862437A486F91B0(sParam1, uParam3, uParam2, 0))
			{
				uParam0->f_1 = 2;
			}
			break;
		
		case 2:
			switch (graphics::_0x1670F8D05056F257(network::_0xBAF6BABF9E7CCC13(0, uParam3)))
			{
				case 1:
					return false;
				
				case 0:
					uParam0->f_3 = 1;
					return true;
				
				case 2:
					uParam0->f_2++;
					if (uParam0->f_2 > 200)
					{
						if (*uParam0 != 0)
						{
							network::texture_download_release(*uParam0);
							*uParam0 = 0;
						}
						uParam0->f_3 = 0;
						return true;
					}
					break;
			}
			break;
	}
	return false;
}

void func_55()//Position - 0x349E
{
	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;
	char cVar16[16];
	var uVar20[4];
	var uVar25[4];
	var uVar30[4];
	var uVar35[4];
	var uVar40[4];
	var uVar45[4];
	var uVar50[4];
	var uVar55[4];
	var uVar60[4];
	var uVar65[4];
	var uVar70[4];
	var uVar75[4];
	int iVar80;
	int iVar81;
	int iVar82[8];
	int iVar91;
	int iVar92[8];
	struct<11> Var101;
	int iVar190;
	int iVar191;
	int iVar192;
	int iVar193;
	vector3 vVar194;
	
	iVar0 = datafile::_get_root_object();
	iVar1 = datafile::_object_value_get_object(iVar0, "mission");
	iVar2 = datafile::_object_value_get_object(iVar1, "endcon");
	iVar3 = datafile::_object_value_get_object(iVar1, "ene");
	iVar4 = datafile::_object_value_get_integer(iVar3, "no");
	iVar5 = datafile::_object_value_get_array(iVar3, "loc");
	iVar6 = datafile::_object_value_get_object(iVar1, "goto");
	iVar7 = datafile::_object_value_get_integer(iVar6, "no");
	iVar8 = datafile::_object_value_get_object(iVar1, "veh");
	iVar9 = datafile::_object_value_get_integer(iVar8, "no");
	iVar10 = datafile::_object_value_get_array(iVar8, "loc");
	iVar11 = datafile::_object_value_get_object(iVar1, "obj");
	iVar12 = datafile::_object_value_get_integer(iVar11, "no");
	iVar13 = datafile::_object_value_get_array(iVar11, "loc");
	iVar14 = 0;
	while (iVar14 <= (Global_1617379.f_25 - 1))
	{
		if (iVar14 < 4)
		{
			Global_1616134.f_1[iVar14] = datafile::_array_value_get_integer(datafile::_object_value_get_array(iVar2, "nrl"), iVar14);
			StringCopy(&cVar16, "txt", 16);
			StringIntConCat(&cVar16, iVar14, 16);
			uVar20[iVar14] = datafile::_object_value_get_array(iVar2, &cVar16);
			StringCopy(&cVar16, "irbs", 16);
			StringIntConCat(&cVar16, iVar14, 16);
			uVar25[iVar14] = datafile::_object_value_get_array(iVar2, &cVar16);
			StringCopy(&cVar16, "irbs2", 16);
			StringIntConCat(&cVar16, iVar14, 16);
			uVar30[iVar14] = datafile::_object_value_get_array(iVar2, &cVar16);
			iVar15 = 0;
			while (iVar15 <= (Global_1616134.f_1[iVar14] - 1))
			{
				Global_1616134.f_6[iVar14 /*18*/][iVar15] = datafile::_array_value_get_integer(uVar25[iVar14], iVar15);
				Global_1616134.f_79[iVar14 /*18*/][iVar15] = datafile::_array_value_get_integer(uVar30[iVar14], iVar15);
				if (uVar20[iVar14] != 0)
				{
					StringCopy(&(Global_1616134.f_152[iVar14 /*273*/][iVar15 /*16*/]), datafile::_array_value_get_string(uVar20[iVar14], iVar15), 64);
				}
				else
				{
					StringCopy(&(Global_1616134.f_152[iVar14 /*273*/][iVar15 /*16*/]), "", 64);
				}
				iVar15++;
			}
		}
		iVar14++;
	}
	Var101 = 8;
	Var101.f_1 = 10;
	Var101.f_1.f_11 = 10;
	Var101.f_1.f_11.f_11 = 10;
	Var101.f_1.f_11.f_11.f_11 = 10;
	Var101.f_1.f_11.f_11.f_11.f_11 = 10;
	Var101.f_1.f_11.f_11.f_11.f_11.f_11 = 10;
	Var101.f_1.f_11.f_11.f_11.f_11.f_11.f_11 = 10;
	Var101.f_1.f_11.f_11.f_11.f_11.f_11.f_11.f_11 = 10;
	iVar80 = 0;
	while (iVar80 <= (Global_1617379.f_25 - 1))
	{
		iVar91 = 0;
		iVar81 = 0;
		iVar190 = 0;
		iVar192 = 0;
		iVar14 = 0;
		while (iVar14 < 8)
		{
			iVar92[iVar14] = -1;
			iVar82[iVar14] = 0;
			iVar191 = 0;
			while (iVar191 < 10)
			{
				Var101[iVar14 /*11*/][iVar191] = 0;
				iVar191++;
			}
			iVar14++;
		}
		iVar14 = 0;
		while (iVar14 < Global_1616134.f_1[iVar80])
		{
			if ((!gameplay::is_bit_set(Global_1616134.f_6[iVar80 /*18*/][iVar14], 11) && !gameplay::is_bit_set(Global_1616134.f_79[iVar80 /*18*/][iVar14], 21)) && iVar81 < 8)
			{
				iVar92[iVar81] = iVar14;
				iVar81++;
			}
			iVar14++;
		}
		StringCopy(&cVar16, "rule", 16);
		StringIntConCat(&cVar16, iVar80, 16);
		uVar60[iVar80] = datafile::_object_value_get_array(iVar8, &cVar16);
		StringCopy(&cVar16, "pri", 16);
		StringIntConCat(&cVar16, iVar80, 16);
		uVar65[iVar80] = datafile::_object_value_get_array(iVar8, &cVar16);
		iVar14 = 0;
		while (iVar14 < iVar9)
		{
			iVar15 = datafile::_array_value_get_integer(uVar60[iVar80], iVar14);
			iVar193 = datafile::_array_value_get_integer(uVar65[iVar80], iVar14);
			if (((((iVar193 != -1 && iVar193 < 17) && iVar15 != 0) && iVar15 != 99999) && !gameplay::is_bit_set(Global_1616134.f_6[iVar80 /*18*/][iVar193], 11)) && !gameplay::is_bit_set(Global_1616134.f_79[iVar80 /*18*/][iVar193], 21))
			{
				iVar91 = func_57(&iVar92, iVar193, iVar81);
				if (iVar91 != -1 && iVar82[iVar91] < 10)
				{
					Global_1717830.f_407[iVar91 /*295*/].f_125[iVar80 /*31*/][iVar82[iVar91] /*3*/] = { datafile::_array_value_get_vector3(iVar10, iVar14) };
					Global_1717830.f_407[iVar91 /*295*/].f_250[iVar80 /*11*/][iVar82[iVar91]] = 1;
					Global_1717830.f_407[iVar91 /*295*/][iVar80 /*31*/][iVar82[iVar91] /*3*/] = { func_56(iVar15, 1) };
					iVar82[iVar91]++;
				}
			}
			iVar14++;
		}
		StringCopy(&cVar16, "rule", 16);
		StringIntConCat(&cVar16, iVar80, 16);
		uVar70[iVar80] = datafile::_object_value_get_array(iVar11, &cVar16);
		StringCopy(&cVar16, "pri", 16);
		StringIntConCat(&cVar16, iVar80, 16);
		uVar75[iVar80] = datafile::_object_value_get_array(iVar11, &cVar16);
		iVar14 = 0;
		while (iVar14 < iVar12)
		{
			iVar15 = datafile::_array_value_get_integer(uVar70[iVar80], iVar14);
			iVar193 = datafile::_array_value_get_integer(uVar75[iVar80], iVar14);
			if (((((iVar193 != -1 && iVar193 < 17) && iVar15 != 0) && iVar15 != 99999) && !gameplay::is_bit_set(Global_1616134.f_6[iVar80 /*18*/][iVar193], 11)) && !gameplay::is_bit_set(Global_1616134.f_79[iVar80 /*18*/][iVar193], 21))
			{
				iVar91 = func_57(&iVar92, iVar193, iVar81);
				if (iVar91 != -1 && iVar82[iVar91] < 10)
				{
					Global_1717830.f_407[iVar91 /*295*/].f_125[iVar80 /*31*/][iVar82[iVar91] /*3*/] = { datafile::_array_value_get_vector3(iVar13, iVar14) };
					Global_1717830.f_407[iVar91 /*295*/].f_250[iVar80 /*11*/][iVar82[iVar91]] = 1;
					Global_1717830.f_407[iVar91 /*295*/][iVar80 /*31*/][iVar82[iVar91] /*3*/] = { func_56(iVar15, 3) };
					iVar82[iVar91]++;
				}
			}
			iVar14++;
		}
		StringCopy(&cVar16, "rl", 16);
		StringIntConCat(&cVar16, iVar80, 16);
		uVar45[iVar80] = datafile::_object_value_get_array(iVar6, &cVar16);
		StringCopy(&cVar16, "pri", 16);
		StringIntConCat(&cVar16, iVar80, 16);
		uVar50[iVar80] = datafile::_object_value_get_array(iVar6, &cVar16);
		StringCopy(&cVar16, "loc", 16);
		StringIntConCat(&cVar16, iVar80, 16);
		uVar55[iVar80] = datafile::_object_value_get_array(iVar6, &cVar16);
		iVar14 = 0;
		while (iVar14 < iVar7)
		{
			iVar193 = datafile::_array_value_get_integer(uVar50[iVar80], iVar14);
			iVar15 = datafile::_array_value_get_integer(uVar45[iVar80], iVar14);
			if (((((iVar193 != -1 && iVar193 < 17) && iVar15 != 0) && iVar15 != 99999) && !gameplay::is_bit_set(Global_1616134.f_6[iVar80 /*18*/][iVar193], 11)) && !gameplay::is_bit_set(Global_1616134.f_79[iVar80 /*18*/][iVar193], 21))
			{
				iVar91 = func_57(&iVar92, iVar193, iVar81);
				if (iVar91 != -1 && iVar82[iVar91] < 10)
				{
					Global_1717830.f_407[iVar91 /*295*/].f_125[iVar80 /*31*/][iVar82[iVar91] /*3*/] = { datafile::_array_value_get_vector3(uVar55[iVar80], iVar14) };
					Global_1717830.f_407[iVar91 /*295*/].f_250[iVar80 /*11*/][iVar82[iVar91]] = 1;
					Global_1717830.f_407[iVar91 /*295*/][iVar80 /*31*/][iVar82[iVar91] /*3*/] = { func_56(iVar15, 4) };
					iVar82[iVar91]++;
				}
			}
			iVar14++;
		}
		StringCopy(&cVar16, "rule", 16);
		StringIntConCat(&cVar16, iVar80, 16);
		uVar35[iVar80] = datafile::_object_value_get_array(iVar3, &cVar16);
		StringCopy(&cVar16, "pri", 16);
		StringIntConCat(&cVar16, iVar80, 16);
		uVar40[iVar80] = datafile::_object_value_get_array(iVar3, &cVar16);
		iVar14 = 0;
		while (iVar14 < iVar4)
		{
			iVar193 = datafile::_array_value_get_integer(uVar40[iVar80], iVar14);
			iVar15 = datafile::_array_value_get_integer(uVar35[iVar80], iVar14);
			if (((((iVar193 != -1 && iVar193 < 17) && iVar15 != 0) && iVar15 != 99999) && !gameplay::is_bit_set(Global_1616134.f_6[iVar80 /*18*/][iVar193], 11)) && !gameplay::is_bit_set(Global_1616134.f_79[iVar80 /*18*/][iVar193], 21))
			{
				iVar91 = func_57(&iVar92, iVar193, iVar81);
				if (iVar91 != -1 && iVar82[iVar91] < 10)
				{
					iVar190 = iVar82[iVar91];
					iVar192 = 0;
					iVar191 = 0;
					while (iVar191 < 10)
					{
						if (iVar192 == 0 && Global_1717830.f_407[iVar91 /*295*/].f_250[iVar80 /*11*/][iVar191] == 2)
						{
							iVar190 = iVar191;
							iVar192 = 1;
						}
						iVar191++;
					}
					if (iVar192 == 0)
					{
						iVar82[iVar91]++;
					}
					vVar194 = { datafile::_array_value_get_vector3(iVar5, iVar14) };
					Global_1717830.f_407[iVar91 /*295*/].f_125[iVar80 /*31*/][iVar190 /*3*/] = vVar194.x;
					Global_1717830.f_407[iVar91 /*295*/].f_125[iVar80 /*31*/][iVar190 /*3*/].f_1 = vVar194.y;
					Var101[iVar91 /*11*/][iVar190]++;
					Global_1717830.f_407[iVar91 /*295*/].f_250[iVar80 /*11*/][iVar190] = 2;
					Global_1717830.f_407[iVar91 /*295*/][iVar80 /*31*/][iVar190 /*3*/] = { func_56(iVar15, 2) };
				}
			}
			iVar14++;
		}
		iVar14 = 0;
		while (iVar14 < 8)
		{
			iVar191 = 0;
			while (iVar191 < 10)
			{
				if (Global_1717830.f_407[iVar14 /*295*/].f_250[iVar80 /*11*/][iVar191] == 2)
				{
					Global_1717830.f_407[iVar14 /*295*/].f_125[iVar80 /*31*/][iVar191 /*3*/] = (Global_1717830.f_407[iVar14 /*295*/].f_125[iVar80 /*31*/][iVar191 /*3*/] / IntToFloat(Var101[iVar14 /*11*/][iVar191]));
					Global_1717830.f_407[iVar14 /*295*/].f_125[iVar80 /*31*/][iVar191 /*3*/].f_1 = (Global_1717830.f_407[iVar14 /*295*/].f_125[iVar80 /*31*/][iVar191 /*3*/].f_1 / IntToFloat(Var101[iVar14 /*11*/][iVar191]));
				}
				iVar191++;
			}
			iVar14++;
		}
		iVar80++;
	}
	if (datafile::_get_root_object() != 0)
	{
		datafile::datafile_delete();
	}
}

Vector3 func_56(int iParam0, int iParam1)//Position - 0x3E40
{
	vector3 vVar0;
	
	switch (iParam0)
	{
		case 1:
			if (iParam1 == 1 || iParam1 == 2)
			{
				vVar0.x = 70;
				vVar0.y = 70;
				vVar0.z = 255;
			}
			else if (iParam1 == 3)
			{
				vVar0.x = 70;
				vVar0.y = 255;
				vVar0.z = 70;
			}
			break;
		
		case 2:
			vVar0.x = 255;
			vVar0.y = 70;
			vVar0.z = 70;
			break;
		
		case 3:
			if (iParam1 == 1 || iParam1 == 2)
			{
				vVar0.x = 70;
				vVar0.y = 70;
				vVar0.z = 255;
			}
			else if (iParam1 == 3)
			{
				vVar0.x = 70;
				vVar0.y = 255;
				vVar0.z = 70;
			}
			break;
		
		case 4:
			if (iParam1 == 1 || iParam1 == 2)
			{
				vVar0.x = 70;
				vVar0.y = 70;
				vVar0.z = 255;
			}
			else if (iParam1 == 3)
			{
				vVar0.x = 70;
				vVar0.y = 255;
				vVar0.z = 70;
			}
			else if (iParam1 == 4)
			{
				vVar0.x = 200;
				vVar0.y = 200;
				vVar0.z = 50;
			}
			break;
		
		case 5:
			vVar0.x = 200;
			vVar0.y = 200;
			vVar0.z = 50;
			break;
		
		case 11:
			if (iParam1 == 1 || iParam1 == 2)
			{
				vVar0.x = 70;
				vVar0.y = 70;
				vVar0.z = 255;
			}
			else if (iParam1 == 3)
			{
				vVar0.x = 70;
				vVar0.y = 255;
				vVar0.z = 70;
			}
			break;
		
		case 12:
			if (iParam1 == 1 || iParam1 == 2)
			{
				vVar0.x = 70;
				vVar0.y = 70;
				vVar0.z = 255;
			}
			else if (iParam1 == 3)
			{
				vVar0.x = 70;
				vVar0.y = 255;
				vVar0.z = 70;
			}
			break;
		
		case 13:
			vVar0.x = 70;
			vVar0.y = 255;
			vVar0.z = 70;
			break;
		
		default:
			vVar0.x = 255;
			vVar0.y = 255;
			vVar0.z = 255;
			break;
	}
	return vVar0;
}

int func_57(int iParam0, int iParam1, int iParam2)//Position - 0x401A
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= (iParam2 - 1))
	{
		if ((*iParam0)[iVar0] == iParam1)
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

void func_58(var uParam0, int iParam1)//Position - 0x4048
{
	var uVar0;
	var uVar1;
	var uVar2;
	var uVar3;
	struct<6> Var4;
	struct<8> Var10;
	struct<16> Var18;
	
	if (*uParam0 != 0)
	{
		network::texture_download_release(*uParam0);
		*uParam0 = 0;
	}
	*uParam0 = uVar0;
	uParam0->f_1 = uVar1;
	uParam0->f_2 = uVar2;
	uParam0->f_3 = uVar3;
	MemCopy(&(uParam0->f_4), {Var4}, 16);
	if (iParam1)
	{
		MemCopy(&(uParam0->f_20), {Var10}, 16);
		uParam0->f_36 = { Var18 };
	}
}

var func_59()//Position - 0x40A3
{
	return Global_2434762.f_595;
}

bool func_60()//Position - 0x40B2
{
	if (((func_64() || func_63()) || func_62()) || func_61())
	{
		return true;
	}
	return false;
}

int func_61()//Position - 0x40E4
{
	return gameplay::is_bit_set(Global_2434762, 1);
}

int func_62()//Position - 0x40F5
{
	return gameplay::is_bit_set(Global_2434762, 2);
}

int func_63()//Position - 0x4106
{
	return gameplay::is_bit_set(Global_2434762, 20);
}

var func_64()//Position - 0x4118
{
	return Global_2434762.f_574;
}

bool func_65(int iParam0)//Position - 0x4127
{
	if ((((func_70(iParam0) || func_69(iParam0)) || func_68(iParam0)) || func_67(iParam0)) || func_66(iParam0))
	{
		return true;
	}
	return false;
}

int func_66(int iParam0)//Position - 0x416D
{
	return iParam0 == Global_262145.f_6942;
}

int func_67(int iParam0)//Position - 0x417F
{
	return iParam0 == Global_262145.f_6936;
}

int func_68(int iParam0)//Position - 0x4191
{
	return iParam0 == Global_262145.f_6930;
}

int func_69(int iParam0)//Position - 0x41A3
{
	return iParam0 == Global_262145.f_6923;
}

int func_70(int iParam0)//Position - 0x41B5
{
	return iParam0 == Global_262145.f_6918;
}

bool func_71(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0x41C7
{
	int iVar0;
	
	if (func_173())
	{
		uParam0->f_19 = 0;
		return true;
	}
	if (func_176())
	{
		return true;
	}
	if ((uParam0->f_21 != -1 && uParam0->f_22 != -1) && iParam3 == 0)
	{
		return true;
	}
	switch (uParam0->f_19)
	{
		case 0:
			func_167();
			func_72();
			Global_1706742.f_5 = 0;
			uParam0->f_8 = 0;
			if (iParam3 == 1)
			{
				Global_1706767.f_5 = 0;
				Global_1706767.f_4 = 0;
				Global_1706767.f_1 = 0;
				Global_1706767.f_2 = 0;
				return true;
			}
			else if (iParam3 == 4)
			{
				Global_1706767.f_5 = 0;
				uParam0->f_19 = 1;
				return false;
			}
			if (uParam0->f_18 == 0 || uParam0->f_18 == 1)
			{
				uParam0->f_19 = 1;
			}
			else if (uParam0->f_18 == 2)
			{
				uParam0->f_19 = 2;
			}
			break;
		
		case 1:
			if (datafile::_0x9CB0BFA7A9342C3D(iParam1, 1))
			{
				if (iParam3 == 4)
				{
					iVar0 = datafile::_get_root_object();
					Global_1706773 = datafile::_object_value_get_integer(iVar0, "pt");
					Global_1706773.f_1 = datafile::_object_value_get_integer(iVar0, "pu");
					Global_1706773.f_2 = datafile::_object_value_get_integer(iVar0, "ft");
					Global_1706773.f_3 = datafile::_object_value_get_integer(iVar0, "fu");
					Global_1706773.f_4 = datafile::_object_value_get_integer(iVar0, "qt");
					Global_1706773.f_5 = datafile::_object_value_get_integer(iVar0, "qu");
				}
				else
				{
					iVar0 = datafile::_get_root_object();
					Global_1706742.f_10 = system::to_float(datafile::_object_value_get_integer(iVar0, "dt"));
					Global_1706742.f_11 = system::to_float(datafile::_object_value_get_integer(iVar0, "du"));
					Global_1706742.f_9 = (Global_1706742.f_10 / Global_1706742.f_11);
					Global_1706742.f_13 = system::to_float(datafile::_object_value_get_integer(iVar0, "pt"));
					Global_1706742.f_14 = system::to_float(datafile::_object_value_get_integer(iVar0, "pu"));
					Global_977900 = system::round(Global_1706742.f_14);
					Global_1706742.f_12 = (Global_1706742.f_13 / Global_1706742.f_14);
					Global_1706742.f_15 = system::to_float(datafile::_object_value_get_integer(iVar0, "qt"));
					Global_1706742.f_17 = system::to_float(datafile::_object_value_get_integer(iVar0, "qu"));
					Global_1706742.f_16 = (Global_1706742.f_15 / Global_1706742.f_17);
				}
				if (datafile::_get_root_object() != 0)
				{
					datafile::datafile_delete();
				}
				if (uParam0->f_18 == 0)
				{
					uParam0->f_19 = 2;
				}
				else
				{
					uParam0->f_19 = 0;
					return true;
				}
			}
			else
			{
				uParam0->f_8++;
				if (uParam0->f_8 > 5)
				{
					uParam0->f_19 = 0;
					uParam0->f_8 = 0;
					return true;
				}
			}
			break;
		
		case 2:
			if (network::_0x70EA8DA57840F9BE(iParam1))
			{
				if (iParam2)
				{
					if (datafile::_0x52818819057F2B40(iParam1))
					{
						iVar0 = datafile::_get_root_object();
						if (iParam3 == 0)
						{
							Global_1706742 = datafile::_object_value_get_integer(iVar0, "quit");
							Global_1706742.f_2 = datafile::_object_value_get_integer(iVar0, "ply");
							Global_1706742.f_8 = datafile::_object_value_get_integer(iVar0, "fl");
							if (Global_1706742.f_2 > 0)
							{
								Global_1706742.f_5 = 1;
							}
							datafile::datafile_delete();
						}
						else if (iParam3 == 4)
						{
							Global_1706767.f_5 = datafile::_object_value_get_boolean(iVar0, "won");
							Global_1706767.f_4 = datafile::_object_value_get_integer(iVar0, "ply");
							Global_1706767.f_1 = datafile::_object_value_get_integer(iVar0, "quit");
							Global_1706767.f_2 = datafile::_object_value_get_integer(iVar0, "fl");
						}
						uParam0->f_19 = 0;
						return true;
					}
					else
					{
						uParam0->f_8++;
						if (uParam0->f_8 > 100)
						{
							uParam0->f_19 = 0;
							uParam0->f_8 = 0;
							return true;
						}
					}
				}
				else
				{
					uParam0->f_17 = 1;
				}
			}
			else
			{
				uParam0->f_19 = 0;
				return true;
			}
			break;
	}
	return false;
}

void func_72()//Position - 0x4521
{
	Global_1706742 = 0;
	Global_1706742.f_2 = 0;
	Global_1706742.f_8 = 0;
	Global_1706742.f_3 = 0;
	Global_1706742.f_6 = 0;
}

bool func_73(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0x454A
{
	if (!func_75() && !iParam2)
	{
		if (uParam0->f_21 == -1 || uParam0->f_22 == -1)
		{
			if ((!func_176() && iParam1 == 0) && !iParam3)
			{
				if (Global_1617379.f_71015 == 0)
				{
					if (Global_1617379 == 0)
					{
						if (((((Global_1617379.f_2 != 6 && !gameplay::is_bit_set(Global_1617379.f_4, 20)) && !gameplay::is_bit_set(Global_1617379.f_4, 21)) && !gameplay::is_bit_set(Global_1617379.f_4, 22)) && !gameplay::is_bit_set(Global_1617379.f_4, 23)) && Global_1617379.f_2 != 5)
						{
							func_177(uParam0, 1, 1);
							uParam0->f_41.f_3 = 0;
							*uParam0 = 0;
							func_91();
							datafile::_0x8F5EA1C01D65A100(uParam0->f_5);
							func_167();
							return true;
						}
					}
					else if (Global_1617379 != 2 && Global_1617379 != 1)
					{
						func_177(uParam0, 1, 1);
						uParam0->f_41.f_3 = 0;
						*uParam0 = 0;
						func_91();
						datafile::_0x8F5EA1C01D65A100(uParam0->f_5);
						func_167();
						return true;
					}
				}
			}
		}
	}
	if (Global_1617379 == 0 && Global_1617379.f_2 == 6)
	{
		if ((uParam0->f_21 == -1 && uParam0->f_22 == -1) && !func_176())
		{
			if (!network::_0xF53E48461B71EECB(network::_0x32DD916F3F7C9672(0)))
			{
				Global_1617379.f_71002 = 1;
			}
		}
	}
	uParam0->f_8 = 0;
	if (iParam2)
	{
		func_74();
	}
	func_164(uParam0, 9);
	*uParam0 = 1;
	return false;
}

void func_74()//Position - 0x46D4
{
	gameplay::set_bit(&(Global_2434762.f_27.f_3), 7);
}

int func_75()//Position - 0x46E9
{
	return dlc2::is_dlc_present(-1762644250);
}

char* func_76()//Position - 0x46FA
{
	return ui::_get_label_text("CREATOR_RSC");
}

int func_77(float fParam0, int iParam1)//Position - 0x470A
{
	int iVar0;
	
	if (iParam1 == 0)
	{
		return -1;
	}
	iVar0 = system::round((fParam0 * 100f));
	if (iVar0 < 0)
	{
		iVar0 = -1;
	}
	return iVar0;
}

void func_78(int iParam0, struct<16> Param1)//Position - 0x4735
{
	if (iParam0 == 0)
	{
		StringCopy(&Global_2445494, "", 64);
	}
	else
	{
		Global_2445494 = { Param1 };
	}
	Global_2445493 = iParam0;
}

int func_79(int iParam0)//Position - 0x4761
{
	if (network::_0x7FCC39C46C3C03BD(iParam0))
	{
		return 2;
	}
	else if (network::_0x1D610EB0FEA716D9(iParam0))
	{
		return 1;
	}
	return 1;
}

bool func_80(var uParam0, char* sParam1)//Position - 0x4787
{
	var uVar0;
	
	if (gameplay::is_string_null_or_empty(sParam1))
	{
		return false;
	}
	network::network_handle_from_member_id(sParam1, &uVar0, 13);
	if (network::network_is_handle_valid(&uVar0, 13) && network::network_is_gamer_in_my_session(&uVar0))
	{
		*uParam0 = network::network_get_player_from_gamer_handle(&uVar0);
		if (network::network_is_player_active(*uParam0))
		{
			return true;
		}
	}
	return false;
}

var func_81()//Position - 0x47D4
{
	return Global_2434762.f_27.f_47;
}

var func_82()//Position - 0x47E4
{
	return Global_2443499;
}

int func_83()//Position - 0x47F0
{
	return Global_1587523[player::player_id() /*444*/].f_180 != 0;
}

void func_84(var uParam0, var uParam1, var uParam2, int iParam3)//Position - 0x4807
{
	int iVar0;
	int iVar1;
	int iVar2;
	struct<13> Var3;
	struct<2> Var16;
	var uVar51[16];
	
	*uParam0 = datafile::_get_root_object();
	iVar1 = datafile::_object_value_get_object(*uParam0, "data");
	iVar2 = datafile::_object_value_get_object(iVar1, "trg");
	*uParam1 = datafile::_object_value_get_array(iVar2, "list");
	if (iParam3 == 1)
	{
		if (datafile::_object_value_get_type(*uParam0, "open") == 1)
		{
			uParam2->f_11 = datafile::_object_value_get_boolean(iVar1, "open");
		}
		return;
	}
	uParam2->f_11 = datafile::_object_value_get_boolean(iVar1, "open");
	Var3 = { func_85(network::_get_content_user_id(0)) };
	network::network_clan_player_get_desc(&Var16, 35, &Var3);
	uParam2->f_48 = { Var16.f_1 };
	uParam2->f_64 = Var16;
	uParam2->f_4 = datafile::_object_value_get_integer(iVar2, "scr");
	uParam2->f_5 = datafile::_object_value_get_integer(iVar2, "time");
	uParam2->f_1 = datafile::_object_value_get_integer(iVar1, "cash");
	uParam2->f_65 = datafile::_array_value_get_size(*uParam1);
	iVar0 = 0;
	while (iVar0 <= (uParam2->f_65 - 1))
	{
		uVar51[iVar0] = datafile::_array_value_get_object(*uParam1, iVar0);
		StringCopy(&(uParam2->f_1177[iVar0 /*6*/]), datafile::_object_value_get_string(uVar51[iVar0], "cid"), 24);
		uParam2->f_72[iVar0 /*69*/].f_62 = datafile::_object_value_get_integer(uVar51[iVar0], "scr");
		uParam2->f_72[iVar0 /*69*/].f_63 = datafile::_object_value_get_integer(uVar51[iVar0], "time");
		iVar0++;
	}
}

struct<13> func_85(char* sParam0)//Position - 0x494A
{
	struct<13> Var0;
	
	network::network_handle_from_user_id(sParam0, &Var0, 13);
	return Var0;
}

bool func_86(int iParam0, int iParam1, char* sParam2, int iParam3)//Position - 0x4961
{
	struct<13> Var0;
	struct<13> Var13;
	
	if (((iParam3 == 1 || iParam3 == 2) || iParam3 == 3) || iParam3 == 4)
	{
		return true;
	}
	if (iParam0 == 0)
	{
		Var0 = { func_85(sParam2) };
		Var13 = { func_87(player::player_id()) };
		if (iParam1)
		{
			if (network::network_are_handles_the_same(&Var13, &Var0))
			{
				return true;
			}
			else if (!network::network_is_friend(&Var0))
			{
				return false;
			}
		}
		else if (gameplay::is_durango_version())
		{
			if (network::network_are_handles_the_same(&Var13, &Var0))
			{
				return true;
			}
			else if (network::_0xCCA4318E1AB03F1F(&Var0) && network::_0xB57A49545BA53CE7(&Var0))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		else
		{
			Var13 = { func_87(player::player_id()) };
			if (!network::network_are_handles_the_same(&Var13, &Var0))
			{
				return false;
			}
		}
	}
	return true;
}

struct<13> func_87(int iParam0)//Position - 0x4A31
{
	struct<13> Var0;
	
	network::network_handle_from_player(iParam0, &Var0, 13);
	return Var0;
}

char* func_88(int iParam0)//Position - 0x4A48
{
	switch (iParam0)
	{
		case 0:
			return "gta5mission";
		
		case 1:
			return "playlist";
		
		case 2:
			return "lifeinvaderpost";
		
		case 3:
			return "photo";
		
		case 4:
			return "challenge";
		
		default:
	}
	return "gta5mission";
}

void func_89(var uParam0)//Position - 0x4A9C
{
	if (uParam0->f_16)
	{
		Global_970889.f_6 = 0;
		Global_970889.f_7 = 32;
	}
	else
	{
		Global_969327.f_6 = 0;
		Global_969327.f_7 = 32;
	}
}

void func_90(var uParam0, var uParam1, var uParam2)//Position - 0x4ACC
{
	int iVar0;
	var uVar1[16];
	
	*uParam0 = datafile::_get_root_object();
	if (*uParam0 == 0)
	{
	}
	*uParam1 = datafile::_object_value_get_array(*uParam0, "list");
	uParam2->f_10 = 1;
	uParam2->f_65 = datafile::_array_value_get_size(*uParam1);
	iVar0 = 0;
	while (iVar0 <= (uParam2->f_65 - 1))
	{
		uVar1[iVar0] = datafile::_array_value_get_object(*uParam1, iVar0);
		StringCopy(&(uParam2->f_1177[iVar0 /*6*/]), datafile::_object_value_get_string(uVar1[iVar0], "cid"), 24);
		iVar0++;
	}
	uParam2->f_10 = datafile::_object_value_get_boolean(*uParam0, "h2h");
	uParam2->f_9 = datafile::_object_value_get_boolean(*uParam0, "ch");
	if (func_176())
	{
		StringCopy(&(uParam2->f_12), datafile::_object_value_get_string(*uParam0, "name"), 64);
	}
}

void func_91()//Position - 0x4B7E
{
	Global_2441456.f_8 = 0;
	Global_2441456.f_7 = 0;
}

void func_92(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4B94
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = datafile::_get_root_object();
	iVar1 = datafile::_object_value_get_object(iVar0, "mission");
	iVar2 = datafile::_object_value_get_object(iVar1, "gen");
	Global_1617379.f_70975 = datafile::_object_value_get_integer(iVar0, "debugOnlyVersion");
	if (!iParam2 || iParam3 == 0)
	{
		func_158(iVar1, iParam0, iParam1);
		func_157(iVar1);
		func_156(&iVar1);
		func_155(&iVar1);
		func_154(&iVar1);
		if (iParam2)
		{
			return;
		}
	}
	if (func_47())
	{
		if (!iParam2 || iParam3 == 1)
		{
			func_153(iVar1);
			func_152(iVar1);
			func_151(iVar1);
			if (iParam2)
			{
				return;
			}
		}
		if (!iParam2 || iParam3 == 2)
		{
			func_150(iVar1);
			func_149(iVar2);
			func_148(iVar1);
			if (iParam2)
			{
				return;
			}
		}
		if (!iParam2 || iParam3 == 3)
		{
			func_147(iVar1);
			func_146(iVar1);
			func_145(iVar1);
			if (iParam2)
			{
				return;
			}
		}
	}
	else if (func_44())
	{
		func_143(iVar1);
	}
	if (!iParam2 || iParam3 == 4)
	{
		func_141(iVar1);
		func_140(iVar1);
		func_139(iVar1);
		func_138(iVar1);
		func_137(iVar1);
		if (iParam2)
		{
			return;
		}
	}
	if (!iParam2 || iParam3 == 5)
	{
		func_135(iVar1);
		func_134(iVar1);
		func_132(iVar1);
		func_128(iVar1);
		if (iParam2)
		{
			return;
		}
	}
	if (Global_1617379 == 1)
	{
		func_152(iVar1);
		func_127(iVar1);
	}
	else
	{
		func_122(iVar1);
	}
	if (gameplay::is_bit_set(Global_1617379.f_17, 19))
	{
		func_121(iVar1);
	}
	gameplay::clear_bit(&(Global_1617379.f_4), 15);
	gameplay::clear_bit(&(Global_1617379.f_4), 18);
	gameplay::clear_bit(&(Global_1617379.f_4), 19);
	gameplay::clear_bit(&(Global_1617379.f_4), 28);
	gameplay::clear_bit(&(Global_1617379.f_4), 27);
	if (func_120(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_4), 15);
	}
	else if (func_119(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_4), 18);
	}
	else if (func_118(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_4), 19);
	}
	else if (func_117(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_4), 28);
	}
	else if (func_116(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_4), 27);
	}
	else if (func_115(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 0);
	}
	else if (func_114(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 1);
	}
	else if (func_113(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 2);
	}
	else if (func_112(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 6);
	}
	else if (func_111(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 7);
	}
	else if (func_110(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 8);
	}
	else if (func_109(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 9);
	}
	else if (func_108(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 10);
	}
	else if (func_107(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 11);
	}
	else if (func_106(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 12);
	}
	else if (func_105(Global_1617379.f_88495))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 13);
	}
	else if (func_104(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 14);
	}
	else if (func_103(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 3);
	}
	else if (func_102(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 4);
	}
	else if (func_101(Global_1617379.f_88495))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 16);
	}
	else if (func_100(Global_1617379.f_88495))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 17);
	}
	else if (func_99(Global_1617379.f_88495))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 20);
	}
	else if (func_98(Global_1617379.f_88495))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 21);
	}
	else if (func_97(Global_1617379.f_70365))
	{
		gameplay::set_bit(&(Global_1617379.f_5), 5);
	}
	func_93(Global_1617379.f_70365);
}

void func_93(int iParam0)//Position - 0x5074
{
	int iVar0;
	vector3 vVar1;
	
	if (iParam0 == 0)
	{
		return;
	}
	iVar0 = 0;
	while (iVar0 < 8)
	{
		if (iParam0 == Global_262145.f_7347[iVar0] || iParam0 == Global_262145.f_7356[iVar0])
		{
			Global_1617379.f_61 = { func_96(0, iVar0) };
			Global_1617379.f_64 = { func_95(0, iVar0) };
			vVar1 = { func_94(0, iVar0) };
			Global_1617379.f_76 = vVar1.y;
			Global_1617379.f_1 = 0;
			Global_1617379.f_2 = 8;
			Global_1617379.f_70982 = 0;
			Global_1617379.f_70986 = 16777215;
		}
		iVar0++;
	}
}

Vector3 func_94(int iParam0, int iParam1)//Position - 0x5118
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 0:
					return -15.6168f, 0.1008f, -149.8604f;
				
				case 1:
					return 3.5927f, 0.1008f, 156.3615f;
				
				case 2:
					return 3.4157f, 0.112f, 16.4938f;
				
				case 3:
					return 5.3856f, 0f, 112.9827f;
				
				case 4:
					return 4.2705f, 0f, 19.1749f;
				
				case 5:
					return -5.2724f, 0f, 42.8827f;
				
				case 6:
					return 12.4243f, 0f, 57.4707f;
				
				case 7:
					return -15.6168f, 0.1008f, -149.8604f;
				
				default:
			}
			return 2.8273f, 0f, 0.0625f;
		
		default:
	}
	return 0f, 0f, 0f;
}

Vector3 func_95(int iParam0, int iParam1)//Position - 0x51F5
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 0:
					return -209.1766f, -1305.476f, 34.7404f;
				
				case 1:
					return -1601.532f, -1039.506f, 17.2286f;
				
				case 2:
					return -8.6889f, -1727.83f, 30.3896f;
				
				case 3:
					return 1997.496f, 3054.69f, 54.605f;
				
				case 4:
					return 967.5151f, -1735.46f, 32.0426f;
				
				case 5:
					return 779.6009f, -1424.604f, 32.9774f;
				
				case 6:
					return -331.129f, -1492.046f, 30.3228f;
				
				case 7:
					return -209.1766f, -1305.476f, 34.7404f;
				
				default:
			}
			return -61.784f, -1538.702f, 43.8935f;
		
		default:
	}
	return 0f, 0f, 0f;
}

Vector3 func_96(int iParam0, int iParam1)//Position - 0x52E6
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 0:
					return -210.4709f, -1306.318f, 30.336f;
				
				case 1:
					return -1598.327f, -1040.538f, 12.0183f;
				
				case 2:
					return -21.2711f, -1732.453f, 28.304f;
				
				case 3:
					return 1992.482f, 3058.078f, 46.0576f;
				
				case 4:
					return 960.3523f, -1745.844f, 30.2208f;
				
				case 5:
					return 775.7347f, -1367.343f, 25.5669f;
				
				case 6:
					return -321.3307f, -1495.598f, 29.6536f;
				
				case 7:
					return -210.4709f, -1306.318f, 30.336f;
				
				default:
			}
			return -210.4709f, -1306.318f, 30.336f;
		
		default:
	}
	return 0f, 0f, 0f;
}

bool func_97(int iParam0)//Position - 0x53D7
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7398[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_98(int iParam0)//Position - 0x5411
{
	return iParam0 == 1;
}

int func_99(int iParam0)//Position - 0x541D
{
	return iParam0 == 6;
}

int func_100(int iParam0)//Position - 0x5429
{
	return iParam0 == 4;
}

int func_101(int iParam0)//Position - 0x5435
{
	return iParam0 == 2;
}

bool func_102(int iParam0)//Position - 0x5441
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7420[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_103(int iParam0)//Position - 0x547B
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7409[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_104(int iParam0)//Position - 0x54B5
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7510[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_105(int iParam0)//Position - 0x54EF
{
	return iParam0 == 3;
}

bool func_106(int iParam0)//Position - 0x54FB
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7499[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_107(int iParam0)//Position - 0x5535
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7488[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_108(int iParam0)//Position - 0x556F
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7477[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_109(int iParam0)//Position - 0x55A9
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 11)
	{
		if (iParam0 == Global_262145.f_7464[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_110(int iParam0)//Position - 0x55E3
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7453[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_111(int iParam0)//Position - 0x561D
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7442[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_112(int iParam0)//Position - 0x5657
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7431[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_113(int iParam0)//Position - 0x5691
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7387[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_114(int iParam0)//Position - 0x56CB
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7376[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_115(int iParam0)//Position - 0x5705
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (iParam0 == Global_262145.f_7365[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_116(int iParam0)//Position - 0x573F
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 6)
	{
		if (iParam0 == Global_262145.f_7339[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_117(int iParam0)//Position - 0x5778
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 <= 6)
	{
		if (iParam0 == Global_262145.f_7331[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_118(int iParam0)//Position - 0x57B1
{
	if ((((iParam0 == Global_262145.f_7326 || iParam0 == Global_262145.f_7327) || iParam0 == Global_262145.f_7328) || iParam0 == Global_262145.f_7329) || iParam0 == Global_262145.f_7330)
	{
		return true;
	}
	return false;
}

bool func_119(int iParam0)//Position - 0x580B
{
	if ((((iParam0 == Global_262145.f_7321 || iParam0 == Global_262145.f_7322) || iParam0 == Global_262145.f_7323) || iParam0 == Global_262145.f_7324) || iParam0 == Global_262145.f_7325)
	{
		return true;
	}
	return false;
}

bool func_120(int iParam0)//Position - 0x5865
{
	if ((((((iParam0 == Global_262145.f_7314 || iParam0 == Global_262145.f_7315) || iParam0 == Global_262145.f_7316) || iParam0 == Global_262145.f_7317) || iParam0 == Global_262145.f_7318) || iParam0 == Global_262145.f_7319) || iParam0 == Global_262145.f_7320)
	{
		return true;
	}
	return false;
}

void func_121(int iParam0)//Position - 0x58DF
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar1 = datafile::_object_value_get_object(iParam0, "fsp");
	iVar2 = datafile::_object_value_get_array(iVar1, "loc");
	iVar3 = datafile::_object_value_get_array(iVar1, "head");
	iVar0 = 0;
	while (iVar0 < 60)
	{
		if (datafile::_array_value_get_type(iVar2, iVar0) == 5)
		{
			Global_1617379.f_66476[iVar0 /*5*/] = { datafile::_array_value_get_vector3(iVar2, iVar0) };
			Global_1617379.f_66476[iVar0 /*5*/].f_3 = datafile::_array_value_get_float(iVar3, iVar0);
		}
		else
		{
			Global_1617379.f_66476[iVar0 /*5*/] = { 0f, 0f, 0f };
			Global_1617379.f_66476[iVar0 /*5*/].f_3 = 0f;
		}
		iVar0++;
	}
}

void func_122(int iParam0)//Position - 0x597D
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	char[] cVar4[8];
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	var uVar14[4];
	int iVar19;
	int iVar20;
	int iVar21;
	int iVar22;
	int iVar23;
	int iVar24;
	int iVar25;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	int iVar44;
	int iVar45;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	int iVar50;
	var uVar51[4];
	var uVar56[4];
	var uVar61[4];
	var uVar66[4];
	var uVar71[4];
	var uVar76[4];
	var uVar81[4];
	var uVar86[4];
	var uVar91[4];
	var uVar96[4];
	int iVar101;
	int iVar102;
	int iVar103;
	int iVar104;
	int iVar105;
	int iVar106;
	int iVar107;
	int iVar108;
	int iVar109;
	int iVar110;
	int iVar111;
	int iVar112;
	int iVar113;
	int iVar114;
	int iVar115;
	int iVar116;
	int iVar117;
	int iVar118;
	int iVar119;
	int iVar120;
	int iVar121;
	int iVar122;
	int iVar123;
	int iVar124;
	int iVar125;
	int iVar126;
	int iVar127;
	int iVar128;
	int iVar129;
	int iVar130;
	int iVar131;
	int iVar132;
	int iVar133;
	int iVar134;
	int iVar135;
	int iVar136;
	int iVar137;
	int iVar138;
	int iVar139;
	int iVar140;
	int iVar141;
	int iVar142;
	int iVar143;
	int iVar144;
	int iVar145;
	int iVar146;
	int iVar147;
	int iVar148;
	int iVar149;
	int iVar150;
	int iVar151;
	int iVar152;
	int iVar153;
	int iVar154;
	int iVar155;
	int iVar156;
	int iVar157;
	int iVar158;
	int iVar159;
	var uVar160[5];
	var uVar166[5];
	var uVar172[5];
	var uVar178[5];
	var uVar184[5];
	var uVar190[5];
	var uVar196[5];
	var uVar202[5];
	int iVar208;
	int iVar209;
	int iVar210;
	int iVar211;
	int iVar212;
	int iVar213;
	int iVar214;
	int iVar215;
	int iVar216;
	int iVar217;
	int iVar218;
	int iVar219;
	int iVar220;
	int iVar221;
	int iVar222;
	int iVar223;
	int iVar224;
	int iVar225;
	int iVar226;
	int iVar227;
	int iVar228;
	int iVar229;
	int iVar230;
	int iVar231;
	int iVar232;
	int iVar233;
	int iVar234;
	int iVar235;
	int iVar236;
	int iVar237;
	var uVar238[2];
	var uVar241[2];
	
	iVar6 = datafile::_object_value_get_object(iParam0, "ene");
	Global_1617379.f_47405 = datafile::_object_value_get_integer(iVar6, "no");
	if (datafile::_object_value_get_type(iVar6, "spcap") == 2 && datafile::_object_value_get_integer(iVar6, "spcap") != 0)
	{
		Global_1617379.f_47406 = datafile::_object_value_get_integer(iVar6, "spcap");
	}
	else
	{
		Global_1617379.f_47406 = 50;
	}
	Global_1617379.f_47408 = datafile::_object_value_get_integer(iVar6, "time");
	Global_1617379.f_47409 = datafile::_object_value_get_integer(iVar6, "pal");
	iVar7 = datafile::_object_value_get_array(iVar6, "loc");
	iVar8 = datafile::_object_value_get_array(iVar6, "head");
	iVar9 = datafile::_object_value_get_array(iVar6, "rng");
	iVar10 = datafile::_object_value_get_array(iVar6, "model");
	iVar11 = datafile::_object_value_get_array(iVar6, "gun");
	iVar12 = datafile::_object_value_get_array(iVar6, "skill");
	iVar13 = datafile::_object_value_get_array(iVar6, "rsp");
	if (Global_1617379 == 1)
	{
		uVar14[0] = datafile::_object_value_get_array(iVar6, "team");
	}
	iVar19 = datafile::_object_value_get_array(iVar6, "wep");
	iVar20 = datafile::_object_value_get_array(iVar6, "hlt");
	iVar21 = datafile::_object_value_get_array(iVar6, "lghlt");
	iVar22 = datafile::_object_value_get_array(iVar6, "veh");
	iVar23 = datafile::_object_value_get_array(iVar6, "foll");
	iVar24 = datafile::_object_value_get_array(iVar6, "iaim");
	iVar25 = datafile::_object_value_get_array(iVar6, "iaimt");
	iVar26 = datafile::_object_value_get_array(iVar6, "iaimr");
	iVar27 = datafile::_object_value_get_array(iVar6, "sanim");
	iVar28 = datafile::_object_value_get_array(iVar6, "sat");
	iVar29 = datafile::_object_value_get_array(iVar6, "saru");
	iVar30 = datafile::_object_value_get_array(iVar6, "sara");
	iVar31 = datafile::_object_value_get_array(iVar6, "satt");
	iVar32 = datafile::_object_value_get_array(iVar6, "whost");
	iVar33 = datafile::_object_value_get_array(iVar6, "flee");
	iVar34 = datafile::_object_value_get_array(iVar6, "frr");
	iVar35 = datafile::_object_value_get_array(iVar6, "pfrmr");
	iVar36 = datafile::_object_value_get_array(iVar6, "psnt");
	iVar37 = datafile::_object_value_get_array(iVar6, "psnei");
	iVar38 = datafile::_object_value_get_array(iVar6, "p2sp");
	iVar39 = datafile::_object_value_get_array(iVar6, "p2sh");
	iVar40 = datafile::_object_value_get_array(iVar6, "accu");
	iVar41 = datafile::_object_value_get_array(iVar6, "lgacc");
	iVar42 = datafile::_object_value_get_array(iVar6, "cmsty");
	iVar43 = datafile::_object_value_get_array(iVar6, "pedbs");
	iVar44 = datafile::_object_value_get_array(iVar6, "pbstwo");
	iVar45 = datafile::_object_value_get_array(iVar6, "pbs3");
	iVar46 = datafile::_object_value_get_array(iVar6, "pbs4");
	iVar47 = datafile::_object_value_get_array(iVar6, "pbs5");
	iVar48 = datafile::_object_value_get_array(iVar6, "pbs6");
	iVar49 = datafile::_object_value_get_array(iVar6, "pbs7");
	iVar50 = datafile::_object_value_get_array(iVar6, "pbs8");
	if (func_47())
	{
		iVar3 = 0;
		while (iVar3 <= (Global_1617379.f_25 - 1))
		{
			if (iVar3 < 4)
			{
				StringCopy(&cVar4, "group", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar14[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "rule", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar51[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "pri", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar56[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "agr", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar61[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "tmflw", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar66[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "jtop", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar71[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "jtof", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar76[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "cblfr", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar81[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "cblto", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar86[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "gtcpr", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar91[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "pcrr", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar96[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
			}
			iVar3++;
		}
		iVar3 = 0;
		while (iVar3 <= 4)
		{
			StringCopy(&cVar4, "awt", 8);
			StringIntConCat(&cVar4, iVar3, 8);
			uVar160[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
			StringCopy(&cVar4, "awr", 8);
			StringIntConCat(&cVar4, iVar3, 8);
			uVar166[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
			StringCopy(&cVar4, "awl", 8);
			StringIntConCat(&cVar4, iVar3, 8);
			uVar172[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
			StringCopy(&cVar4, "awlr", 8);
			StringIntConCat(&cVar4, iVar3, 8);
			uVar178[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
			StringCopy(&cVar4, "aht", 8);
			StringIntConCat(&cVar4, iVar3, 8);
			uVar190[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
			StringCopy(&cVar4, "ags", 8);
			StringIntConCat(&cVar4, iVar3, 8);
			uVar184[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
			StringCopy(&cVar4, "agrd", 8);
			StringIntConCat(&cVar4, iVar3, 8);
			uVar196[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
			StringCopy(&cVar4, "agvr", 8);
			StringIntConCat(&cVar4, iVar3, 8);
			uVar202[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
			iVar3++;
		}
		iVar101 = datafile::_object_value_get_array(iVar6, "objt");
		iVar102 = datafile::_object_value_get_array(iVar6, "team");
		iVar103 = datafile::_object_value_get_array(iVar6, "spawn");
		iVar104 = datafile::_object_value_get_array(iVar6, "acts");
		iVar105 = datafile::_object_value_get_array(iVar6, "objt2");
		iVar106 = datafile::_object_value_get_array(iVar6, "team2");
		iVar107 = datafile::_object_value_get_array(iVar6, "spawn2");
		iVar108 = datafile::_object_value_get_array(iVar6, "acts2");
		iVar109 = datafile::_object_value_get_array(iVar6, "objt3");
		iVar110 = datafile::_object_value_get_array(iVar6, "team3");
		iVar111 = datafile::_object_value_get_array(iVar6, "spawn3");
		iVar112 = datafile::_object_value_get_array(iVar6, "acts3");
		iVar113 = datafile::_object_value_get_array(iVar6, "objt4");
		iVar114 = datafile::_object_value_get_array(iVar6, "team4");
		iVar115 = datafile::_object_value_get_array(iVar6, "spawn4");
		iVar116 = datafile::_object_value_get_array(iVar6, "acts4");
		iVar117 = datafile::_object_value_get_array(iVar6, "act");
		iVar118 = datafile::_object_value_get_array(iVar6, "pper");
		iVar119 = datafile::_object_value_get_array(iVar6, "infr");
		iVar120 = datafile::_object_value_get_array(iVar6, "cca");
		iVar121 = datafile::_object_value_get_array(iVar6, "ccid");
		iVar122 = datafile::_object_value_get_array(iVar6, "gfr");
		iVar123 = datafile::_object_value_get_array(iVar6, "msr");
		iVar124 = datafile::_object_value_get_array(iVar6, "bnr");
		iVar125 = datafile::_object_value_get_array(iVar6, "phor");
		iVar126 = datafile::_object_value_get_array(iVar6, "folr");
		iVar128 = datafile::_object_value_get_array(iVar6, "pcvl");
		iVar129 = datafile::_object_value_get_array(iVar6, "pcvr");
		iVar127 = datafile::_object_value_get_array(iVar6, "pdfw");
		iVar133 = datafile::_object_value_get_array(iVar6, "pvdp1");
		iVar134 = datafile::_object_value_get_array(iVar6, "pvdp2");
		iVar130 = datafile::_object_value_get_array(iVar6, "paaw");
		iVar131 = datafile::_object_value_get_array(iVar6, "paav1");
		iVar132 = datafile::_object_value_get_array(iVar6, "paav2");
		iVar135 = datafile::_object_value_get_array(iVar6, "dt");
		iVar136 = datafile::_object_value_get_array(iVar6, "do");
		iVar137 = datafile::_object_value_get_array(iVar6, "dtim");
		iVar138 = datafile::_object_value_get_array(iVar6, "dln");
		iVar139 = datafile::_object_value_get_array(iVar6, "pvsp");
		iVar145 = datafile::_object_value_get_array(iVar6, "drge");
		iVar146 = datafile::_object_value_get_array(iVar6, "agrot");
		iVar147 = datafile::_object_value_get_array(iVar6, "gtds");
		iVar148 = datafile::_object_value_get_array(iVar6, "pstat");
		iVar149 = datafile::_object_value_get_array(iVar6, "pstar");
		iVar150 = datafile::_object_value_get_array(iVar6, "dmv");
		iVar151 = datafile::_object_value_get_array(iVar6, "blkr");
		iVar152 = datafile::_object_value_get_array(iVar6, "let");
		iVar153 = datafile::_object_value_get_array(iVar6, "escr");
		iVar154 = datafile::_object_value_get_array(iVar6, "actr");
		iVar155 = datafile::_object_value_get_array(iVar6, "actv");
		iVar156 = datafile::_object_value_get_array(iVar6, "actv2");
		iVar157 = datafile::_object_value_get_array(iVar6, "actv3");
		iVar158 = datafile::_object_value_get_array(iVar6, "actv4");
		iVar159 = datafile::_object_value_get_array(iVar6, "actv5");
		iVar208 = datafile::_object_value_get_array(iVar6, "pedct");
		iVar210 = datafile::_object_value_get_array(iVar6, "pdcra");
		iVar209 = datafile::_object_value_get_array(iVar6, "pedcr");
		iVar211 = datafile::_object_value_get_array(iVar6, "pedcv");
		iVar212 = datafile::_object_value_get_array(iVar6, "pedbc");
		iVar213 = datafile::_object_value_get_array(iVar6, "pdbps");
		iVar214 = datafile::_object_value_get_array(iVar6, "avrad");
		iVar215 = datafile::_object_value_get_array(iVar6, "pedst");
		iVar216 = datafile::_object_value_get_array(iVar6, "gotor");
		iVar217 = datafile::_object_value_get_array(iVar6, "invbs");
		iVar218 = datafile::_object_value_get_array(iVar6, "gort");
		iVar219 = datafile::_object_value_get_array(iVar6, "gorr");
		iVar220 = datafile::_object_value_get_array(iVar6, "gorw");
		iVar221 = datafile::_object_value_get_array(iVar6, "cstnm");
		iVar222 = datafile::_object_value_get_array(iVar6, "pspdl");
		iVar223 = datafile::_object_value_get_array(iVar6, "psgr");
		iVar224 = datafile::_object_value_get_array(iVar6, "pssgr");
		iVar225 = datafile::_object_value_get_array(iVar6, "psctt");
		iVar226 = datafile::_object_value_get_array(iVar6, "pscto");
		iVar227 = datafile::_object_value_get_array(iVar6, "pscta");
		iVar228 = datafile::_object_value_get_array(iVar6, "psctac");
		iVar229 = datafile::_object_value_get_array(iVar6, "psctv");
		iVar230 = datafile::_object_value_get_array(iVar6, "pscth");
		iVar231 = datafile::_object_value_get_array(iVar6, "psctot");
		iVar232 = datafile::_object_value_get_array(iVar6, "psctoi");
		iVar233 = datafile::_object_value_get_array(iVar6, "pscatd");
		iVar234 = datafile::_object_value_get_array(iVar6, "cutsc");
		iVar235 = datafile::_object_value_get_array(iVar6, "cutsh");
		iVar236 = datafile::_object_value_get_array(iVar6, "nmpass");
		iVar237 = datafile::_object_value_get_array(iVar6, "nmfail");
		iVar140 = datafile::_object_value_get_array(iVar6, "pmcp");
		iVar141 = datafile::_object_value_get_array(iVar6, "pmcf");
		iVar142 = datafile::_object_value_get_array(iVar6, "pambv");
		iVar143 = datafile::_object_value_get_array(iVar6, "pwrpt");
		iVar144 = datafile::_object_value_get_array(iVar6, "pcash");
		iVar1 = 0;
		while (iVar1 <= 1)
		{
			StringCopy(&cVar4, "prstp", 8);
			if (iVar1 > 0)
			{
				StringIntConCat(&cVar4, iVar1, 8);
			}
			uVar238[iVar1] = datafile::_object_value_get_array(iVar6, &cVar4);
			StringCopy(&cVar4, "prsth", 8);
			if (iVar1 > 0)
			{
				StringIntConCat(&cVar4, iVar1, 8);
			}
			uVar241[iVar1] = datafile::_object_value_get_array(iVar6, &cVar4);
			iVar1++;
		}
	}
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_47405 - 1))
	{
		if (iVar0 < 59)
		{
			Global_1617379.f_47410[iVar0 /*286*/] = { datafile::_array_value_get_vector3(iVar7, iVar0) };
			Global_1617379.f_47410[iVar0 /*286*/].f_3 = datafile::_array_value_get_float(iVar8, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_4 = datafile::_array_value_get_float(iVar9, iVar0);
			if (Global_1617379.f_47410[iVar0 /*286*/].f_4 < 0.75f)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_4 = 0.75f;
			}
			iVar2 = datafile::_array_value_get_integer(iVar10, iVar0);
			if (iVar2 == joaat("mp_m_fibsec_01"))
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_14 = joaat("s_m_m_ciasec_01");
			}
			else if (iVar2 == joaat("ig_michelle"))
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_14 = -346957479;
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_14 = iVar2;
			}
			if (!func_44() && !func_126())
			{
				if (!streaming::is_model_valid(Global_1617379.f_47410[iVar0 /*286*/].f_14))
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_14 = joaat("s_m_y_cop_01");
				}
			}
			iVar2 = datafile::_array_value_get_integer(iVar11, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_15 = iVar2;
			iVar2 = datafile::_array_value_get_integer(iVar12, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_16 = iVar2;
			if (Global_1617379 == 1)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_17[0] = datafile::_array_value_get_integer(uVar14[0], iVar0);
			}
			Global_1617379.f_47410[iVar0 /*286*/].f_50 = datafile::_array_value_get_integer(iVar23, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_36 = datafile::_array_value_get_integer(iVar19, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_37 = datafile::_array_value_get_integer(iVar20, iVar0);
			if (datafile::_array_value_get_type(iVar21, iVar0) == 2)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_38 = datafile::_array_value_get_integer(iVar21, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_38 = -1;
			}
			Global_1617379.f_47410[iVar0 /*286*/].f_56 = datafile::_array_value_get_integer(iVar22, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_32 = datafile::_array_value_get_integer(iVar13, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_39 = datafile::_array_value_get_integer(iVar24, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_40 = datafile::_array_value_get_integer(iVar25, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_41 = datafile::_array_value_get_integer(iVar26, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_42 = datafile::_array_value_get_integer(iVar27, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_43 = datafile::_array_value_get_integer(iVar28, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_44 = datafile::_array_value_get_integer(iVar29, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_45 = datafile::_array_value_get_float(iVar30, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_46 = datafile::_array_value_get_integer(iVar31, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_49 = datafile::_array_value_get_integer(iVar32, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_47 = datafile::_array_value_get_integer(iVar33, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_5 = datafile::_array_value_get_float(iVar34, iVar0);
			if ((datafile::_array_value_get_type(iVar35, iVar0) == 3 && datafile::_array_value_get_type(iVar36, iVar0) == 2) && datafile::_array_value_get_type(iVar37, iVar0) == 2)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_6 = datafile::_array_value_get_float(iVar35, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_7 = datafile::_array_value_get_integer(iVar36, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_8 = datafile::_array_value_get_integer(iVar37, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_6 = 0f;
				Global_1617379.f_47410[iVar0 /*286*/].f_7 = 0;
				Global_1617379.f_47410[iVar0 /*286*/].f_8 = -1;
			}
			if (datafile::_array_value_get_type(iVar38, iVar0) == 5 && datafile::_array_value_get_type(iVar39, iVar0) == 3)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_9 = { datafile::_array_value_get_vector3(iVar38, iVar0) };
				Global_1617379.f_47410[iVar0 /*286*/].f_12 = datafile::_array_value_get_float(iVar39, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_9 = { 0f, 0f, 0f };
				Global_1617379.f_47410[iVar0 /*286*/].f_12 = 0f;
			}
			Global_1617379.f_47410[iVar0 /*286*/].f_34 = datafile::_array_value_get_integer(iVar40, iVar0);
			if (datafile::_array_value_get_type(iVar41, iVar0) == 2)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_35 = datafile::_array_value_get_integer(iVar41, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_35 = -1;
			}
			Global_1617379.f_47410[iVar0 /*286*/].f_48 = datafile::_array_value_get_integer(iVar42, iVar0);
			Global_1617379.f_47410[iVar0 /*286*/].f_188 = datafile::_array_value_get_integer(iVar43, iVar0);
			if (datafile::_array_value_get_type(iVar44, iVar0) == 2)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_189 = datafile::_array_value_get_integer(iVar44, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_189 = 0;
			}
			if (datafile::_array_value_get_type(iVar45, iVar0) == 2)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_190 = datafile::_array_value_get_integer(iVar45, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_190 = 0;
			}
			if (datafile::_array_value_get_type(iVar46, iVar0) == 2)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_191 = datafile::_array_value_get_integer(iVar46, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_191 = 0;
			}
			if (datafile::_array_value_get_type(iVar47, iVar0) == 2)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_192 = datafile::_array_value_get_integer(iVar47, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_192 = 0;
			}
			if (datafile::_array_value_get_type(iVar48, iVar0) == 2)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_193 = datafile::_array_value_get_integer(iVar48, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_193 = 0;
			}
			if (datafile::_array_value_get_type(iVar49, iVar0) == 2)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_194 = datafile::_array_value_get_integer(iVar49, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_194 = 0;
			}
			if (datafile::_array_value_get_type(iVar50, iVar0) == 2)
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_195 = datafile::_array_value_get_integer(iVar50, iVar0);
			}
			else
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_195 = 0;
			}
			if (func_47())
			{
				Global_1617379.f_47410[iVar0 /*286*/].f_57 = datafile::_array_value_get_integer(iVar101, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_58 = datafile::_array_value_get_integer(iVar102, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_59 = datafile::_array_value_get_integer(iVar103, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_63 = datafile::_array_value_get_integer(iVar104, iVar0);
				if (datafile::_array_value_get_type(iVar105, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_161 = datafile::_array_value_get_integer(iVar105, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_158 = datafile::_array_value_get_integer(iVar106, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_164 = datafile::_array_value_get_integer(iVar107, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_167 = datafile::_array_value_get_integer(iVar108, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_162 = datafile::_array_value_get_integer(iVar109, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_159 = datafile::_array_value_get_integer(iVar110, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_165 = datafile::_array_value_get_integer(iVar111, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_168 = datafile::_array_value_get_integer(iVar112, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_163 = datafile::_array_value_get_integer(iVar113, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_160 = datafile::_array_value_get_integer(iVar114, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_166 = datafile::_array_value_get_integer(iVar115, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_169 = datafile::_array_value_get_integer(iVar116, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_161 = -1;
					Global_1617379.f_47410[iVar0 /*286*/].f_158 = 0;
					Global_1617379.f_47410[iVar0 /*286*/].f_164 = 0;
					Global_1617379.f_47410[iVar0 /*286*/].f_167 = 0;
					Global_1617379.f_47410[iVar0 /*286*/].f_162 = -1;
					Global_1617379.f_47410[iVar0 /*286*/].f_159 = 0;
					Global_1617379.f_47410[iVar0 /*286*/].f_165 = 0;
					Global_1617379.f_47410[iVar0 /*286*/].f_168 = 0;
					Global_1617379.f_47410[iVar0 /*286*/].f_163 = -1;
					Global_1617379.f_47410[iVar0 /*286*/].f_160 = 0;
					Global_1617379.f_47410[iVar0 /*286*/].f_166 = 0;
					Global_1617379.f_47410[iVar0 /*286*/].f_169 = 0;
				}
				Global_1617379.f_47410[iVar0 /*286*/].f_62 = datafile::_array_value_get_integer(iVar117, iVar0);
				if (datafile::_array_value_get_type(iVar118, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_201 = datafile::_array_value_get_integer(iVar118, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_201 = 0;
				}
				if (datafile::_array_value_get_type(iVar119, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_202 = datafile::_array_value_get_integer(iVar119, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_202 = 250;
				}
				if (datafile::_array_value_get_type(iVar120, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_205 = datafile::_array_value_get_integer(iVar120, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_205 = 0;
				}
				if (datafile::_array_value_get_type(iVar121, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_206 = datafile::_array_value_get_integer(iVar121, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_206 = -1;
				}
				if (datafile::_array_value_get_type(iVar122, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_207 = datafile::_array_value_get_integer(iVar122, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_207 = 0;
				}
				if (datafile::_array_value_get_type(iVar123, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_203 = datafile::_array_value_get_integer(iVar123, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_203 = 0;
				}
				if (datafile::_array_value_get_type(iVar124, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_204 = datafile::_array_value_get_integer(iVar124, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_204 = -1;
				}
				if (datafile::_array_value_get_type(iVar125, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_266 = datafile::_array_value_get_integer(iVar125, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_266 = -1;
				}
				if (datafile::_array_value_get_type(iVar126, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_267 = datafile::_array_value_get_integer(iVar126, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_267 = -1;
				}
				if (datafile::_array_value_get_type(iVar128, iVar0) == 5)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_208 = { datafile::_array_value_get_vector3(iVar128, iVar0) };
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_208 = { 0f, 0f, 0f };
				}
				if (datafile::_array_value_get_type(iVar129, iVar0) == 5)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_211 = { datafile::_array_value_get_vector3(iVar129, iVar0) };
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_211 = { 0f, 0f, 0f };
				}
				if ((datafile::_array_value_get_type(iVar133, iVar0) == 5 && datafile::_array_value_get_type(iVar134, iVar0) == 5) && datafile::_array_value_get_type(iVar127, iVar0) == 3)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_219 = { datafile::_array_value_get_vector3(iVar133, iVar0) };
					Global_1617379.f_47410[iVar0 /*286*/].f_222 = { datafile::_array_value_get_vector3(iVar134, iVar0) };
					Global_1617379.f_47410[iVar0 /*286*/].f_225 = datafile::_array_value_get_float(iVar127, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_219 = { 0f, 0f, 0f };
					Global_1617379.f_47410[iVar0 /*286*/].f_222 = { 0f, 0f, 0f };
					Global_1617379.f_47410[iVar0 /*286*/].f_225 = 1f;
				}
				if ((datafile::_array_value_get_type(iVar130, iVar0) == 3 && datafile::_array_value_get_type(iVar131, iVar0) == 5) && datafile::_array_value_get_type(iVar132, iVar0) == 5)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_183 = datafile::_array_value_get_float(iVar130, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_177 = { datafile::_array_value_get_vector3(iVar131, iVar0) };
					Global_1617379.f_47410[iVar0 /*286*/].f_180 = { datafile::_array_value_get_vector3(iVar132, iVar0) };
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_183 = 0f;
					Global_1617379.f_47410[iVar0 /*286*/].f_177 = { 0f, 0f, 0f };
					Global_1617379.f_47410[iVar0 /*286*/].f_180 = { 0f, 0f, 0f };
				}
				if (datafile::_array_value_get_type(iVar139, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_237 = datafile::_array_value_get_integer(iVar139, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_237 = 0;
				}
				Global_1617379.f_47410[iVar0 /*286*/].f_215 = datafile::_array_value_get_integer(iVar135, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_214 = datafile::_array_value_get_integer(iVar136, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_216 = datafile::_array_value_get_integer(iVar137, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_217 = datafile::_array_value_get_integer(iVar138, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_218 = datafile::_array_value_get_integer(iVar145, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_226 = datafile::_array_value_get_integer(iVar146, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_184 = datafile::_array_value_get_integer(iVar147, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_33 = datafile::_array_value_get_integer(iVar150, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_13 = datafile::_array_value_get_float(iVar151, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_175 = datafile::_array_value_get_integer(iVar152, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_185 = datafile::_array_value_get_integer(iVar153, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_176 = datafile::_array_value_get_integer(iVar154, iVar0);
				Global_1617379.f_47410[iVar0 /*286*/].f_64 = { datafile::_array_value_get_vector3(iVar155, iVar0) };
				Global_1617379.f_47410[iVar0 /*286*/].f_64 = { datafile::_array_value_get_vector3(iVar155, iVar0) };
				if (datafile::_array_value_get_type(iVar156, iVar0) == 5)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_67[0 /*3*/] = { datafile::_array_value_get_vector3(iVar156, iVar0) };
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_67[0 /*3*/] = { 0f, 0f, 0f };
				}
				if (datafile::_array_value_get_type(iVar157, iVar0) == 5)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_67[1 /*3*/] = { datafile::_array_value_get_vector3(iVar157, iVar0) };
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_67[1 /*3*/] = { 0f, 0f, 0f };
				}
				if (datafile::_array_value_get_type(iVar158, iVar0) == 5)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_67[2 /*3*/] = { datafile::_array_value_get_vector3(iVar158, iVar0) };
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_67[2 /*3*/] = { 0f, 0f, 0f };
				}
				if (datafile::_array_value_get_type(iVar159, iVar0) == 5)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_67[3 /*3*/] = { datafile::_array_value_get_vector3(iVar159, iVar0) };
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_67[3 /*3*/] = { 0f, 0f, 0f };
				}
				if (datafile::_array_value_get_type(iVar148, iVar0) == 2 && datafile::_array_value_get_type(iVar149, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_186 = datafile::_array_value_get_integer(iVar148, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_187 = datafile::_array_value_get_integer(iVar149, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_186 = -1;
					Global_1617379.f_47410[iVar0 /*286*/].f_187 = -1;
				}
				iVar3 = 0;
				while (iVar3 <= 4)
				{
					if (datafile::_array_value_get_type(uVar160[iVar3], iVar0) == 2)
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_81[iVar3] = datafile::_array_value_get_integer(uVar160[iVar3], iVar0);
					}
					else
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_81[iVar3] = 0;
					}
					if (datafile::_array_value_get_type(uVar166[iVar3], iVar0) == 2)
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_87[iVar3] = datafile::_array_value_get_integer(uVar166[iVar3], iVar0);
					}
					else
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_87[iVar3] = 0;
					}
					if (datafile::_array_value_get_type(uVar172[iVar3], iVar0) == 5 && datafile::_array_value_get_type(uVar178[iVar3], iVar0) == 2)
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_93[iVar3 /*3*/] = { datafile::_array_value_get_vector3(uVar172[iVar3], iVar0) };
						Global_1617379.f_47410[iVar0 /*286*/].f_109[iVar3] = datafile::_array_value_get_integer(uVar178[iVar3], iVar0);
					}
					else
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_93[iVar3 /*3*/] = { 0f, 0f, 0f };
						Global_1617379.f_47410[iVar0 /*286*/].f_109[iVar3] = 3;
					}
					if (datafile::_array_value_get_type(uVar184[iVar3], iVar0) == 2)
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_127[iVar3] = datafile::_array_value_get_integer(uVar184[iVar3], iVar0);
					}
					else
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_127[iVar3] = -1;
					}
					if (datafile::_array_value_get_type(uVar190[iVar3], iVar0) == 3)
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_115[iVar3] = datafile::_array_value_get_float(uVar190[iVar3], iVar0);
					}
					else
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_115[iVar3] = 0f;
					}
					if (datafile::_array_value_get_type(uVar196[iVar3], iVar0) == 3)
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_121[iVar3] = datafile::_array_value_get_float(uVar196[iVar3], iVar0);
					}
					else
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_121[iVar3] = 0f;
					}
					if (datafile::_array_value_get_type(uVar202[iVar3], iVar0) == 3)
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_133[iVar3] = datafile::_array_value_get_float(uVar202[iVar3], iVar0);
					}
					else
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_133[iVar3] = 0f;
					}
					iVar3++;
				}
				if (datafile::_array_value_get_type(iVar209, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_227 = datafile::_array_value_get_integer(iVar209, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_227 = -1;
				}
				if (datafile::_array_value_get_type(iVar208, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_228 = datafile::_array_value_get_integer(iVar208, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_228 = -1;
				}
				if (datafile::_array_value_get_type(iVar211, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_230 = datafile::_array_value_get_integer(iVar211, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_230 = -1;
				}
				if (datafile::_array_value_get_type(iVar210, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_229 = datafile::_array_value_get_integer(iVar210, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_229 = -1;
				}
				if (datafile::_array_value_get_type(iVar215, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_236 = datafile::_array_value_get_integer(iVar215, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_236 = -3;
				}
				if (datafile::_array_value_get_type(iVar212, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_252 = datafile::_array_value_get_integer(iVar212, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_252 = 0;
				}
				if (datafile::_array_value_get_type(iVar213, iVar0) == 3)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_263 = datafile::_array_value_get_float(iVar213, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_263 = 1f;
				}
				if (datafile::_array_value_get_type(iVar214, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_80 = datafile::_array_value_get_integer(iVar214, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_80 = 0;
				}
				if (datafile::_array_value_get_type(iVar216, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_51 = datafile::_array_value_get_integer(iVar216, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_51 = 0;
				}
				if (datafile::_array_value_get_type(iVar217, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_52 = datafile::_array_value_get_integer(iVar217, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_52 = 0;
				}
				if (datafile::_array_value_get_type(iVar221, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_156 = datafile::_array_value_get_integer(iVar221, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_156 = -1;
				}
				if (datafile::_array_value_get_type(iVar222, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_157 = datafile::_array_value_get_integer(iVar222, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_157 = 0;
				}
				if (datafile::_array_value_get_type(iVar223, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_60 = datafile::_array_value_get_integer(iVar223, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_60 = 0;
				}
				if (datafile::_array_value_get_type(iVar224, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_61 = datafile::_array_value_get_integer(iVar224, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_61 = 0;
				}
				if (datafile::_array_value_get_type(iVar140, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_250 = datafile::_array_value_get_integer(iVar140, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_250 = -1;
				}
				if (datafile::_array_value_get_type(iVar141, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_251 = datafile::_array_value_get_integer(iVar141, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_251 = -1;
				}
				if (datafile::_array_value_get_type(iVar142, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_268 = datafile::_array_value_get_integer(iVar142, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_268 = -1;
				}
				if (datafile::_array_value_get_type(iVar143, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_274 = datafile::_array_value_get_integer(iVar143, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_274 = -1;
				}
				if (datafile::_array_value_get_type(iVar144, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_275 = datafile::_array_value_get_integer(iVar144, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_275 = -1;
				}
				if ((datafile::_array_value_get_type(iVar225, iVar0) == 2 && datafile::_array_value_get_type(iVar226, iVar0) == 2) && datafile::_array_value_get_type(iVar227, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_145 = datafile::_array_value_get_integer(iVar225, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_146 = datafile::_array_value_get_integer(iVar226, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_148 = datafile::_array_value_get_integer(iVar227, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_145 = -1;
					Global_1617379.f_47410[iVar0 /*286*/].f_146 = -1;
					Global_1617379.f_47410[iVar0 /*286*/].f_148 = 0;
				}
				if ((datafile::_array_value_get_type(iVar231, iVar0) == 2 && datafile::_array_value_get_type(iVar232, iVar0) == 2) && datafile::_array_value_get_type(iVar233, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_153 = datafile::_array_value_get_integer(iVar231, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_154 = datafile::_array_value_get_integer(iVar232, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_155 = datafile::_array_value_get_integer(iVar233, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_153 = 0;
					Global_1617379.f_47410[iVar0 /*286*/].f_154 = -1;
					Global_1617379.f_47410[iVar0 /*286*/].f_155 = -1;
				}
				if (datafile::_array_value_get_type(iVar228, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_147 = datafile::_array_value_get_integer(iVar228, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_147 = 0;
				}
				if (datafile::_array_value_get_type(iVar229, iVar0) == 5)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_149 = { datafile::_array_value_get_vector3(iVar229, iVar0) };
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_149 = { 0f, 0f, 0f };
				}
				if (datafile::_array_value_get_type(iVar230, iVar0) == 3)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_152 = datafile::_array_value_get_float(iVar230, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_152 = 0f;
				}
				if ((datafile::_array_value_get_type(iVar218, iVar0) == 2 && datafile::_array_value_get_type(iVar219, iVar0) == 2) && datafile::_array_value_get_type(iVar220, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_53 = datafile::_array_value_get_integer(iVar218, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_54 = datafile::_array_value_get_integer(iVar219, iVar0);
					Global_1617379.f_47410[iVar0 /*286*/].f_55 = datafile::_array_value_get_integer(iVar220, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_53 = -1;
					Global_1617379.f_47410[iVar0 /*286*/].f_54 = -1;
					Global_1617379.f_47410[iVar0 /*286*/].f_55 = joaat("weapon_pistol");
				}
				if (Global_1617379.f_2 != 6 && datafile::_array_value_get_type(iVar234, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_264 = datafile::_array_value_get_integer(iVar234, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_264 = -1;
				}
				if (datafile::_array_value_get_type(iVar236, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_248 = datafile::_array_value_get_integer(iVar236, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_248 = -1;
				}
				if (datafile::_array_value_get_type(iVar237, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_249 = datafile::_array_value_get_integer(iVar237, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_249 = -1;
				}
				if (Global_1617379.f_2 != 6 && datafile::_array_value_get_type(iVar235, iVar0) == 2)
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_265 = datafile::_array_value_get_integer(iVar235, iVar0);
				}
				else
				{
					Global_1617379.f_47410[iVar0 /*286*/].f_265 = 0;
				}
				iVar1 = 0;
				while (iVar1 <= 1)
				{
					if (datafile::_array_value_get_type(uVar238[iVar1], iVar0) == 5)
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_276[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar238[iVar1], iVar0) };
					}
					else
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_276[iVar1 /*3*/] = { 0f, 0f, 0f };
					}
					if (datafile::_array_value_get_type(uVar241[iVar1], iVar0) == 3)
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_283[iVar1] = datafile::_array_value_get_float(uVar241[iVar1], iVar0);
					}
					else
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_283[iVar1] = 0f;
					}
					iVar1++;
				}
				iVar3 = 0;
				while (iVar3 <= (Global_1617379.f_25 - 1))
				{
					if (iVar3 < 4)
					{
						Global_1617379.f_47410[iVar0 /*286*/].f_17[iVar3] = datafile::_array_value_get_integer(uVar14[iVar3], iVar0);
						Global_1617379.f_47410[iVar0 /*286*/].f_22[iVar3] = datafile::_array_value_get_integer(uVar51[iVar3], iVar0);
						Global_1617379.f_47410[iVar0 /*286*/].f_27[iVar3] = datafile::_array_value_get_integer(uVar56[iVar3], iVar0);
						if (Global_1617379.f_47410[iVar0 /*286*/].f_27[iVar3] == -1)
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_27[iVar3] = 99999;
						}
						if (datafile::_array_value_get_type(uVar61[iVar3], iVar0) == 2)
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_196[iVar3] = datafile::_array_value_get_integer(uVar61[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_196[iVar3] = -1;
						}
						if (datafile::_array_value_get_type(uVar66[iVar3], iVar0) == 2)
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_170[iVar3] = datafile::_array_value_get_integer(uVar66[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_170[iVar3] = 0;
						}
						if (datafile::_array_value_get_type(uVar71[iVar3], iVar0) == 2)
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_238[iVar3] = datafile::_array_value_get_integer(uVar71[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_238[iVar3] = 0;
						}
						if (datafile::_array_value_get_type(uVar76[iVar3], iVar0) == 2)
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_243[iVar3] = datafile::_array_value_get_integer(uVar76[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_243[iVar3] = 0;
						}
						if (datafile::_array_value_get_type(uVar81[iVar3], iVar0) == 2 && datafile::_array_value_get_type(uVar86[iVar3], iVar0) == 2)
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_253[iVar3] = datafile::_array_value_get_integer(uVar81[iVar3], iVar0);
							Global_1617379.f_47410[iVar0 /*286*/].f_258[iVar3] = datafile::_array_value_get_integer(uVar86[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_253[iVar3] = -1;
							Global_1617379.f_47410[iVar0 /*286*/].f_258[iVar3] = -1;
						}
						if (datafile::_array_value_get_type(uVar91[iVar3], iVar0) == 2)
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_269[iVar3] = datafile::_array_value_get_integer(uVar91[iVar3], iVar0);
						}
						else if (gameplay::is_bit_set(Global_1617379.f_28750[iVar3 /*3*/][func_125(iVar0)], func_124(iVar0)))
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_269[iVar3] = -1;
						}
						else
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_269[iVar3] = -2;
						}
						if (datafile::_array_value_get_type(uVar96[iVar3], iVar0) == 2)
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_231[iVar3] = datafile::_array_value_get_integer(uVar96[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_47410[iVar0 /*286*/].f_231[iVar3] = 0;
						}
					}
					iVar3++;
				}
			}
		}
		iVar0++;
	}
	func_123(&iVar6);
}

void func_123(int iParam0)//Position - 0x812F
{
	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;
	
	Global_1617379.f_64842[0] = datafile::_object_value_get_integer(*iParam0, "no0");
	iVar1 = datafile::_object_value_get_array(*iParam0, "loc0");
	iVar2 = datafile::_object_value_get_array(*iParam0, "head0");
	iVar3 = datafile::_object_value_get_array(*iParam0, "bit0");
	iVar4 = datafile::_object_value_get_array(*iParam0, "veh0");
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_64842[0] - 1))
	{
		Global_1617379.f_65389[0 /*262*/][iVar0 /*9*/] = { datafile::_array_value_get_vector3(iVar1, iVar0) };
		Global_1617379.f_65389[0 /*262*/][iVar0 /*9*/].f_3 = datafile::_array_value_get_float(iVar2, iVar0);
		Global_1617379.f_65389[0 /*262*/][iVar0 /*9*/].f_5 = datafile::_array_value_get_integer(iVar3, iVar0);
		if (datafile::_array_value_get_type(iVar4, iVar0) == 2)
		{
			Global_1617379.f_65389[0 /*262*/][iVar0 /*9*/].f_7 = datafile::_array_value_get_integer(iVar4, iVar0);
		}
		else
		{
			Global_1617379.f_65389[0 /*262*/][iVar0 /*9*/].f_7 = -1;
		}
		iVar0++;
	}
	Global_1617379.f_64842[1] = datafile::_object_value_get_integer(*iParam0, "no1");
	iVar5 = datafile::_object_value_get_array(*iParam0, "loc1");
	iVar6 = datafile::_object_value_get_array(*iParam0, "head1");
	iVar7 = datafile::_object_value_get_array(*iParam0, "bit1");
	iVar8 = datafile::_object_value_get_array(*iParam0, "veh1");
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_64842[1] - 1))
	{
		Global_1617379.f_65389[1 /*262*/][iVar0 /*9*/] = { datafile::_array_value_get_vector3(iVar5, iVar0) };
		Global_1617379.f_65389[1 /*262*/][iVar0 /*9*/].f_3 = datafile::_array_value_get_float(iVar6, iVar0);
		Global_1617379.f_65389[1 /*262*/][iVar0 /*9*/].f_5 = datafile::_array_value_get_integer(iVar7, iVar0);
		if (datafile::_array_value_get_type(iVar8, iVar0) == 2)
		{
			Global_1617379.f_65389[1 /*262*/][iVar0 /*9*/].f_7 = datafile::_array_value_get_integer(iVar8, iVar0);
		}
		else
		{
			Global_1617379.f_65389[1 /*262*/][iVar0 /*9*/].f_7 = -1;
		}
		iVar0++;
	}
	Global_1617379.f_64842[2] = datafile::_object_value_get_integer(*iParam0, "no2");
	iVar9 = datafile::_object_value_get_array(*iParam0, "loc2");
	iVar10 = datafile::_object_value_get_array(*iParam0, "head2");
	iVar11 = datafile::_object_value_get_array(*iParam0, "bit2");
	iVar12 = datafile::_object_value_get_array(*iParam0, "veh2");
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_64842[2] - 1))
	{
		Global_1617379.f_65389[2 /*262*/][iVar0 /*9*/] = { datafile::_array_value_get_vector3(iVar9, iVar0) };
		Global_1617379.f_65389[2 /*262*/][iVar0 /*9*/].f_3 = datafile::_array_value_get_float(iVar10, iVar0);
		Global_1617379.f_65389[2 /*262*/][iVar0 /*9*/].f_5 = datafile::_array_value_get_integer(iVar11, iVar0);
		if (datafile::_array_value_get_type(iVar12, iVar0) == 2)
		{
			Global_1617379.f_65389[2 /*262*/][iVar0 /*9*/].f_7 = datafile::_array_value_get_integer(iVar12, iVar0);
		}
		else
		{
			Global_1617379.f_65389[2 /*262*/][iVar0 /*9*/].f_7 = -1;
		}
		iVar0++;
	}
	Global_1617379.f_64842[3] = datafile::_object_value_get_integer(*iParam0, "no3");
	iVar13 = datafile::_object_value_get_array(*iParam0, "loc3");
	iVar14 = datafile::_object_value_get_array(*iParam0, "head3");
	iVar15 = datafile::_object_value_get_array(*iParam0, "bit3");
	iVar16 = datafile::_object_value_get_array(*iParam0, "veh3");
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_64842[3] - 1))
	{
		Global_1617379.f_65389[3 /*262*/][iVar0 /*9*/] = { datafile::_array_value_get_vector3(iVar13, iVar0) };
		Global_1617379.f_65389[3 /*262*/][iVar0 /*9*/].f_3 = datafile::_array_value_get_float(iVar14, iVar0);
		Global_1617379.f_65389[3 /*262*/][iVar0 /*9*/].f_5 = datafile::_array_value_get_integer(iVar15, iVar0);
		if (datafile::_array_value_get_type(iVar16, iVar0) == 2)
		{
			Global_1617379.f_65389[3 /*262*/][iVar0 /*9*/].f_7 = datafile::_array_value_get_integer(iVar16, iVar0);
		}
		else
		{
			Global_1617379.f_65389[3 /*262*/][iVar0 /*9*/].f_7 = -1;
		}
		iVar0++;
	}
}

int func_124(int iParam0)//Position - 0x851B
{
	if (iParam0 < 31)
	{
		return iParam0;
	}
	else if (iParam0 < 62)
	{
		return (iParam0 - 31);
	}
	return (iParam0 - func_125(iParam0) * 31);
}

int func_125(int iParam0)//Position - 0x854C
{
	if (iParam0 < 31)
	{
		return 0;
	}
	else if (iParam0 < 62)
	{
		return 1;
	}
	return (iParam0 / 31);
}

bool func_126()//Position - 0x8572
{
	if (Global_1617379 == 6)
	{
		return true;
	}
	return false;
}

void func_127(int iParam0)//Position - 0x8587
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	iVar1 = datafile::_object_value_get_object(iParam0, "ene");
	Global_1617379.f_64841 = datafile::_object_value_get_integer(iVar1, "no");
	Global_1617379.f_34248 = datafile::_object_value_get_integer(iVar1, "veh");
	iVar2 = datafile::_object_value_get_array(iVar1, "loc");
	iVar3 = datafile::_object_value_get_array(iVar1, "head");
	iVar4 = datafile::_object_value_get_array(iVar1, "team");
	if (Global_1617379.f_64841 > 60)
	{
		Global_1617379.f_64841 = 60;
	}
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_64841 - 1))
	{
		if (iVar0 < 60)
		{
			Global_1617379.f_64848[iVar0 /*9*/] = { datafile::_array_value_get_vector3(iVar2, iVar0) };
			Global_1617379.f_64848[iVar0 /*9*/].f_3 = datafile::_array_value_get_float(iVar3, iVar0);
			Global_1617379.f_64848[iVar0 /*9*/].f_4 = datafile::_array_value_get_integer(iVar4, iVar0);
		}
		iVar0++;
	}
	func_123(&iVar1);
}

void func_128(int iParam0)//Position - 0x8671
{
	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;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	
	iVar2 = datafile::_object_value_get_object(iParam0, "dprop");
	Global_1617379.f_40843 = func_131(datafile::_object_value_get_integer(iVar2, "no"), 0, 100);
	iVar3 = datafile::_object_value_get_array(iVar2, "loc");
	iVar4 = datafile::_object_value_get_array(iVar2, "vRot");
	iVar5 = datafile::_object_value_get_array(iVar2, "head");
	iVar6 = datafile::_object_value_get_array(iVar2, "model");
	iVar7 = datafile::_object_value_get_array(iVar2, "asst");
	iVar8 = datafile::_object_value_get_array(iVar2, "asso");
	iVar9 = datafile::_object_value_get_array(iVar2, "asss");
	iVar10 = datafile::_object_value_get_array(iVar2, "pasc");
	iVar11 = datafile::_object_value_get_array(iVar2, "asst2");
	iVar12 = datafile::_object_value_get_array(iVar2, "asso2");
	iVar13 = datafile::_object_value_get_array(iVar2, "asss2");
	iVar14 = datafile::_object_value_get_array(iVar2, "pasc2");
	iVar15 = datafile::_object_value_get_array(iVar2, "asst3");
	iVar16 = datafile::_object_value_get_array(iVar2, "asso3");
	iVar17 = datafile::_object_value_get_array(iVar2, "asss3");
	iVar18 = datafile::_object_value_get_array(iVar2, "pasc3");
	iVar19 = datafile::_object_value_get_array(iVar2, "asst4");
	iVar20 = datafile::_object_value_get_array(iVar2, "asso4");
	iVar21 = datafile::_object_value_get_array(iVar2, "asss4");
	iVar22 = datafile::_object_value_get_array(iVar2, "pasc4");
	iVar23 = datafile::_object_value_get_array(iVar2, "prpct");
	iVar24 = datafile::_object_value_get_array(iVar2, "prpcr");
	iVar25 = datafile::_object_value_get_array(iVar2, "prcra");
	iVar26 = datafile::_object_value_get_array(iVar2, "prpbs");
	iVar27 = datafile::_object_value_get_array(iVar2, "prpkt");
	iVar28 = datafile::_object_value_get_array(iVar2, "prpdclr");
	if (Global_1617379.f_40843 > 20)
	{
		Global_1617379.f_40843 = 20;
	}
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_40843 - 1))
	{
		Global_1617379.f_40845[iVar0 /*31*/] = { datafile::_array_value_get_vector3(iVar3, iVar0) };
		Global_1617379.f_40845[iVar0 /*31*/].f_3 = { datafile::_array_value_get_vector3(iVar4, iVar0) };
		Global_1617379.f_40845[iVar0 /*31*/].f_6 = datafile::_array_value_get_float(iVar5, iVar0);
		Global_1617379.f_40845[iVar0 /*31*/].f_8 = -1;
		iVar1 = datafile::_array_value_get_integer(iVar6, iVar0);
		Global_1617379.f_40845[iVar0 /*31*/].f_7 = func_130(iVar1);
		if (!streaming::is_model_valid(Global_1617379.f_40845[iVar0 /*31*/].f_7))
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_7 = -1344435013;
		}
		Global_1617379.f_40845[iVar0 /*31*/].f_12 = datafile::_array_value_get_integer(iVar7, iVar0);
		Global_1617379.f_40845[iVar0 /*31*/].f_11 = datafile::_array_value_get_integer(iVar8, iVar0);
		Global_1617379.f_40845[iVar0 /*31*/].f_13 = datafile::_array_value_get_integer(iVar9, iVar0);
		if (Global_1617379.f_40845[iVar0 /*31*/].f_13 == -1)
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_13 = 0;
		}
		if (datafile::_array_value_get_type(iVar11, iVar0) == 2)
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_19 = datafile::_array_value_get_integer(iVar11, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_22 = datafile::_array_value_get_integer(iVar12, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_25 = datafile::_array_value_get_integer(iVar13, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_20 = datafile::_array_value_get_integer(iVar15, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_23 = datafile::_array_value_get_integer(iVar16, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_26 = datafile::_array_value_get_integer(iVar17, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_21 = datafile::_array_value_get_integer(iVar19, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_24 = datafile::_array_value_get_integer(iVar20, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_27 = datafile::_array_value_get_integer(iVar21, iVar0);
		}
		else
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_22 = -1;
			Global_1617379.f_40845[iVar0 /*31*/].f_19 = 0;
			Global_1617379.f_40845[iVar0 /*31*/].f_25 = 0;
			Global_1617379.f_40845[iVar0 /*31*/].f_23 = -1;
			Global_1617379.f_40845[iVar0 /*31*/].f_20 = 0;
			Global_1617379.f_40845[iVar0 /*31*/].f_26 = 0;
			Global_1617379.f_40845[iVar0 /*31*/].f_24 = -1;
			Global_1617379.f_40845[iVar0 /*31*/].f_21 = 0;
			Global_1617379.f_40845[iVar0 /*31*/].f_27 = 0;
		}
		if (datafile::_array_value_get_type(iVar10, iVar0) == 2)
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_14 = datafile::_array_value_get_integer(iVar10, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_28 = datafile::_array_value_get_integer(iVar14, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_29 = datafile::_array_value_get_integer(iVar18, iVar0);
			Global_1617379.f_40845[iVar0 /*31*/].f_30 = datafile::_array_value_get_integer(iVar22, iVar0);
		}
		else
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_14 = 0;
			Global_1617379.f_40845[iVar0 /*31*/].f_28 = 0;
			Global_1617379.f_40845[iVar0 /*31*/].f_29 = 0;
			Global_1617379.f_40845[iVar0 /*31*/].f_30 = 0;
		}
		if (datafile::_array_value_get_type(iVar24, iVar0) == 2)
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_15 = datafile::_array_value_get_integer(iVar24, iVar0);
		}
		else
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_15 = -1;
		}
		if (datafile::_array_value_get_type(iVar23, iVar0) == 2)
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_16 = datafile::_array_value_get_integer(iVar23, iVar0);
		}
		else
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_16 = -1;
		}
		if (datafile::_array_value_get_type(iVar25, iVar0) == 2)
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_17 = datafile::_array_value_get_integer(iVar25, iVar0);
		}
		else
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_17 = -1;
		}
		if (datafile::_array_value_get_type(iVar26, iVar0) == 2)
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_18 = datafile::_array_value_get_integer(iVar26, iVar0);
		}
		else
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_18 = 0;
		}
		if (datafile::_array_value_get_type(iVar27, iVar0) == 2)
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_9 = datafile::_array_value_get_integer(iVar27, iVar0);
		}
		else
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_9 = 0;
		}
		if (datafile::_array_value_get_type(iVar28, iVar0) == 2)
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_10 = datafile::_array_value_get_integer(iVar28, iVar0);
		}
		else
		{
			Global_1617379.f_40845[iVar0 /*31*/].f_10 = 0;
		}
		iVar0++;
	}
	iVar29 = iVar0;
	if (func_129() || Global_1617379 == 1)
	{
		iVar0 = 0;
		while (iVar0 <= (Global_1617379.f_34300 - 1))
		{
			Global_1617379.f_40845[iVar29 /*31*/] = { Global_1617379.f_34303[iVar0 /*89*/] };
			Global_1617379.f_40845[iVar29 /*31*/].f_3 = { Global_1617379.f_34303[iVar0 /*89*/].f_4 };
			Global_1617379.f_40845[iVar29 /*31*/].f_6 = Global_1617379.f_34303[iVar0 /*89*/].f_3;
			Global_1617379.f_40845[iVar29 /*31*/].f_8 = iVar0;
			Global_1617379.f_40845[iVar29 /*31*/].f_7 = -699955605;
			iVar30 = 0;
			while (iVar30 <= 3)
			{
				Global_1617379.f_34303[iVar29 /*89*/].f_17[iVar30] = 0;
				Global_1617379.f_34303[iVar29 /*89*/].f_22[iVar30] = 99999;
				iVar30++;
			}
			Global_1617379.f_40844++;
			Global_1617379.f_40843++;
			iVar29++;
			iVar0++;
		}
	}
}

bool func_129()//Position - 0x8D9C
{
	if (Global_1617379 == 0 && Global_1617379.f_2 == 5)
	{
		return true;
	}
	return false;
}

int func_130(int iParam0)//Position - 0x8DBF
{
	if (iParam0 == joaat("prop_offroad_tyres01"))
	{
		return 1051213133;
	}
	else if (iParam0 == joaat("prop_elecbox_24"))
	{
		return 182048815;
	}
	else if (iParam0 == joaat("prop_elecbox_24b"))
	{
		return 19408745;
	}
	else if (iParam0 == 1212630005)
	{
		return -1359996601;
	}
	else if (iParam0 == -1135198622)
	{
		return -1061569318;
	}
	else if (iParam0 == 55777251)
	{
		return 1290523964;
	}
	else if (iParam0 == 662880068)
	{
		return 662880068;
	}
	else if (iParam0 == -1658282356)
	{
		return -1658282356;
	}
	if ((gameplay::is_orbis_version() || gameplay::is_durango_version()) || gameplay::is_pc_version())
	{
		if (iParam0 == -56302774)
		{
			return joaat("prop_tree_fallen_02");
		}
		if (iParam0 == -1924165356)
		{
			return -593160806;
		}
		if (iParam0 == 1837927001)
		{
			return 1566353027;
		}
		if (iParam0 == -960602868)
		{
			return 11906616;
		}
		if (iParam0 == -72825120)
		{
			return -1705943745;
		}
		if (iParam0 == -713058190)
		{
			return -1656246279;
		}
	}
	else if (gameplay::is_xbox360_version() || gameplay::is_ps3_version())
	{
		if (iParam0 == joaat("prop_tree_fallen_02"))
		{
			return -56302774;
		}
		if (iParam0 == -593160806)
		{
			return -1924165356;
		}
		if (iParam0 == 1566353027)
		{
			return 1837927001;
		}
		if (iParam0 == 11906616)
		{
			return -960602868;
		}
		if (iParam0 == -1705943745)
		{
			return -72825120;
		}
		if (iParam0 == -1656246279)
		{
			return -713058190;
		}
	}
	return iParam0;
}

int func_131(int iParam0, int iParam1, int iParam2)//Position - 0x8F73
{
	if (iParam0 > iParam2)
	{
		return iParam2;
	}
	else if (iParam0 < iParam1)
	{
		return iParam1;
	}
	return iParam0;
}

void func_132(int iParam0)//Position - 0x8F98
{
	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;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	
	iVar2 = datafile::_object_value_get_object(iParam0, "prop");
	Global_1617379.f_36498 = datafile::_object_value_get_integer(iVar2, "no");
	iVar3 = datafile::_object_value_get_array(iVar2, "loc");
	iVar4 = datafile::_object_value_get_array(iVar2, "vRot");
	iVar5 = datafile::_object_value_get_array(iVar2, "head");
	iVar6 = datafile::_object_value_get_array(iVar2, "model");
	iVar7 = datafile::_object_value_get_array(iVar2, "asst");
	iVar8 = datafile::_object_value_get_array(iVar2, "asso");
	iVar9 = datafile::_object_value_get_array(iVar2, "asss");
	iVar10 = datafile::_object_value_get_array(iVar2, "pasc");
	iVar11 = datafile::_object_value_get_array(iVar2, "asst2");
	iVar12 = datafile::_object_value_get_array(iVar2, "asso2");
	iVar13 = datafile::_object_value_get_array(iVar2, "asss2");
	iVar14 = datafile::_object_value_get_array(iVar2, "pasc2");
	iVar15 = datafile::_object_value_get_array(iVar2, "asst3");
	iVar16 = datafile::_object_value_get_array(iVar2, "asso3");
	iVar17 = datafile::_object_value_get_array(iVar2, "asss3");
	iVar18 = datafile::_object_value_get_array(iVar2, "pasc3");
	iVar19 = datafile::_object_value_get_array(iVar2, "asst4");
	iVar20 = datafile::_object_value_get_array(iVar2, "asso4");
	iVar21 = datafile::_object_value_get_array(iVar2, "asss4");
	iVar22 = datafile::_object_value_get_array(iVar2, "pasc4");
	iVar23 = datafile::_object_value_get_array(iVar2, "bpbid");
	iVar24 = datafile::_object_value_get_array(iVar2, "bpbip");
	iVar25 = datafile::_object_value_get_array(iVar2, "bpbpt");
	iVar26 = datafile::_object_value_get_array(iVar2, "aldel");
	iVar27 = datafile::_object_value_get_array(iVar2, "alsnd");
	iVar28 = datafile::_object_value_get_array(iVar2, "flvfx");
	iVar29 = datafile::_object_value_get_array(iVar2, "prpcl");
	iVar30 = datafile::_object_value_get_array(iVar2, "prplod");
	iVar31 = datafile::_object_value_get_array(iVar2, "prpatn");
	iVar32 = datafile::_object_value_get_array(iVar2, "prpasn");
	iVar33 = datafile::_object_value_get_array(iVar2, "prpclr");
	iVar34 = datafile::_object_value_get_array(iVar2, "prptsp");
	iVar35 = datafile::_object_value_get_array(iVar2, "prptds");
	iVar36 = datafile::_object_value_get_array(iVar2, "prpct");
	iVar37 = datafile::_object_value_get_array(iVar2, "prpcr");
	iVar38 = datafile::_object_value_get_array(iVar2, "prcra");
	iVar39 = datafile::_object_value_get_array(iVar2, "prpbs");
	iVar40 = datafile::_object_value_get_array(iVar2, "prers");
	if (Global_1617379.f_36498 > 100)
	{
		Global_1617379.f_36498 = 100;
	}
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_36498 - 1))
	{
		Global_1617379.f_36499[iVar0 /*43*/] = { datafile::_array_value_get_vector3(iVar3, iVar0) };
		Global_1617379.f_36499[iVar0 /*43*/].f_3 = { datafile::_array_value_get_vector3(iVar4, iVar0) };
		Global_1617379.f_36499[iVar0 /*43*/].f_6 = datafile::_array_value_get_float(iVar5, iVar0);
		iVar1 = datafile::_array_value_get_integer(iVar6, iVar0);
		Global_1617379.f_36499[iVar0 /*43*/].f_7 = func_130(iVar1);
		if (!streaming::is_model_valid(Global_1617379.f_36499[iVar0 /*43*/].f_7))
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_7 = joaat("prop_const_fence02b");
		}
		Global_1617379.f_36499[iVar0 /*43*/].f_9 = datafile::_array_value_get_integer(iVar7, iVar0);
		Global_1617379.f_36499[iVar0 /*43*/].f_8 = datafile::_array_value_get_integer(iVar8, iVar0);
		Global_1617379.f_36499[iVar0 /*43*/].f_10 = datafile::_array_value_get_integer(iVar9, iVar0);
		if (Global_1617379.f_36499[iVar0 /*43*/].f_10 == -1)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_10 = 0;
		}
		if (datafile::_array_value_get_type(iVar23, iVar0) == 1)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_40 = datafile::_array_value_get_boolean(iVar23, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_40 = 0;
		}
		if (datafile::_array_value_get_type(iVar24, iVar0) == 1)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_41 = datafile::_array_value_get_boolean(iVar24, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_41 = 0;
		}
		if (datafile::_array_value_get_type(iVar25, iVar0) == 2)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_42 = datafile::_array_value_get_integer(iVar25, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_42 = 0;
		}
		if (datafile::_array_value_get_type(iVar11, iVar0) == 2)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_27 = datafile::_array_value_get_integer(iVar11, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_30 = datafile::_array_value_get_integer(iVar12, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_33 = datafile::_array_value_get_integer(iVar13, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_28 = datafile::_array_value_get_integer(iVar15, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_31 = datafile::_array_value_get_integer(iVar16, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_34 = datafile::_array_value_get_integer(iVar17, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_29 = datafile::_array_value_get_integer(iVar19, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_32 = datafile::_array_value_get_integer(iVar20, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_35 = datafile::_array_value_get_integer(iVar21, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_30 = -1;
			Global_1617379.f_36499[iVar0 /*43*/].f_27 = 0;
			Global_1617379.f_36499[iVar0 /*43*/].f_33 = 0;
			Global_1617379.f_36499[iVar0 /*43*/].f_31 = -1;
			Global_1617379.f_36499[iVar0 /*43*/].f_28 = 0;
			Global_1617379.f_36499[iVar0 /*43*/].f_34 = 0;
			Global_1617379.f_36499[iVar0 /*43*/].f_32 = -1;
			Global_1617379.f_36499[iVar0 /*43*/].f_29 = 0;
			Global_1617379.f_36499[iVar0 /*43*/].f_35 = 0;
		}
		if (datafile::_array_value_get_type(iVar10, iVar0) == 2)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_11 = datafile::_array_value_get_integer(iVar10, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_36 = datafile::_array_value_get_integer(iVar14, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_37 = datafile::_array_value_get_integer(iVar18, iVar0);
			Global_1617379.f_36499[iVar0 /*43*/].f_38 = datafile::_array_value_get_integer(iVar22, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_11 = 0;
			Global_1617379.f_36499[iVar0 /*43*/].f_36 = 0;
			Global_1617379.f_36499[iVar0 /*43*/].f_37 = 0;
			Global_1617379.f_36499[iVar0 /*43*/].f_38 = 0;
		}
		Global_1617379.f_36499[iVar0 /*43*/].f_12 = datafile::_array_value_get_integer(iVar26, iVar0);
		if (Global_1617379.f_36499[iVar0 /*43*/].f_12 > 0 && Global_1617379.f_36499[iVar0 /*43*/].f_12 < 1000)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_12 = func_133(Global_1617379.f_36499[iVar0 /*43*/].f_12);
		}
		Global_1617379.f_36499[iVar0 /*43*/].f_13 = datafile::_array_value_get_integer(iVar27, iVar0);
		Global_1617379.f_36499[iVar0 /*43*/].f_14 = datafile::_array_value_get_integer(iVar28, iVar0);
		Global_1617379.f_36499[iVar0 /*43*/].f_15 = datafile::_array_value_get_integer(iVar29, iVar0);
		Global_1617379.f_36499[iVar0 /*43*/].f_25 = datafile::_array_value_get_float(iVar34, iVar0);
		Global_1617379.f_36499[iVar0 /*43*/].f_26 = datafile::_array_value_get_float(iVar35, iVar0);
		if (datafile::_array_value_get_type(iVar30, iVar0) == 2)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_21 = datafile::_array_value_get_integer(iVar30, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_21 = -1;
		}
		if (datafile::_array_value_get_type(iVar31, iVar0) == 2)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_22 = datafile::_array_value_get_integer(iVar31, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_22 = 0;
		}
		if (datafile::_array_value_get_type(iVar32, iVar0) == 2)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_23 = datafile::_array_value_get_integer(iVar32, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_23 = 0;
		}
		if (datafile::_array_value_get_type(iVar33, iVar0) == 2)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_24 = datafile::_array_value_get_integer(iVar33, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_24 = 0;
		}
		if (datafile::_array_value_get_type(iVar34, iVar0) == 3)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_25 = datafile::_array_value_get_float(iVar34, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_25 = 0f;
		}
		if (datafile::_array_value_get_type(iVar35, iVar0) == 3)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_26 = datafile::_array_value_get_float(iVar35, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_26 = 0f;
		}
		if (datafile::_array_value_get_type(iVar37, iVar0) == 2)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_16 = datafile::_array_value_get_integer(iVar37, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_16 = -1;
		}
		if (datafile::_array_value_get_type(iVar36, iVar0) == 2)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_17 = datafile::_array_value_get_integer(iVar36, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_17 = -1;
		}
		if (datafile::_array_value_get_type(iVar38, iVar0) == 2)
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_18 = datafile::_array_value_get_integer(iVar38, iVar0);
		}
		else
		{
			Global_1617379.f_36499[iVar0 /*43*/].f_18 = -1;
		}
		Global_1617379.f_36499[iVar0 /*43*/].f_19 = datafile::_array_value_get_integer(iVar39, iVar0);
		Global_1617379.f_36499[iVar0 /*43*/].f_20 = datafile::_array_value_get_integer(iVar40, iVar0);
		iVar0++;
	}
}

int func_133(int iParam0)//Position - 0x9860
{
	switch (iParam0)
	{
		case 0:
			return 0;
		
		case 1:
			return 5000;
		
		case 2:
			return 10000;
		
		case 3:
			return 20000;
		
		case 4:
			return 30000;
		
		case 5:
			return 45000;
		
		case 6:
			return 60000;
		
		default:
	}
	return 0;
}

void func_134(int iParam0)//Position - 0x98C4
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	char[] cVar4[8];
	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;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	int iVar44;
	int iVar45;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	int iVar50;
	int iVar51;
	int iVar52;
	int iVar53;
	int iVar54;
	int iVar55;
	int iVar56;
	int iVar57;
	int iVar58;
	int iVar59;
	int iVar60;
	int iVar61;
	int iVar62;
	int iVar63;
	int iVar64;
	int iVar65;
	int iVar66;
	int iVar67;
	var uVar68[4];
	var uVar73[4];
	var uVar78[4];
	var uVar83[4];
	var uVar88[4];
	var uVar93[4];
	var uVar98[4];
	var uVar103[4];
	var uVar108[2];
	var uVar111[2];
	int iVar114;
	int iVar115;
	int iVar116;
	int iVar117;
	int iVar118;
	
	iVar6 = datafile::_object_value_get_object(iParam0, "veh");
	Global_1617379.f_43061 = datafile::_object_value_get_integer(iVar6, "no");
	Global_1617379.f_43062 = datafile::_object_value_get_integer(iVar6, "time");
	Global_1617379.f_43063 = datafile::_object_value_get_integer(iVar6, "pal");
	iVar7 = datafile::_object_value_get_object(iParam0, "vhrls");
	if (iVar7 != 0)
	{
		iVar3 = 0;
		while (iVar3 <= (Global_1617379.f_25 - 1))
		{
			iVar0 = 0;
			while (iVar0 <= (Global_1617379.f_80[iVar3 /*6968*/].f_57 - 1))
			{
				StringCopy(&cVar4, "vhr", 8);
				StringIntConCat(&cVar4, iVar0, 8);
				StringIntConCat(&cVar4, iVar3, 8);
				Global_1617379.f_47257[iVar0 /*5*/][iVar3] = datafile::_object_value_get_integer(iVar7, &cVar4);
				StringCopy(&cVar4, "vrs", 8);
				StringIntConCat(&cVar4, iVar0, 8);
				StringIntConCat(&cVar4, iVar3, 8);
				Global_1617379.f_28046[iVar0 /*5*/][iVar3] = datafile::_object_value_get_integer(iVar7, &cVar4);
				StringCopy(&cVar4, "rkt", 8);
				StringIntConCat(&cVar4, iVar0, 8);
				StringIntConCat(&cVar4, iVar3, 8);
				if (datafile::_object_value_get_type(iVar7, &cVar4) == 2)
				{
					Global_1617379.f_28132[iVar0 /*5*/][iVar3] = datafile::_object_value_get_integer(iVar7, &cVar4);
				}
				else
				{
					Global_1617379.f_28132[iVar0 /*5*/][iVar3] = 0;
				}
				StringCopy(&cVar4, "bst", 8);
				StringIntConCat(&cVar4, iVar0, 8);
				StringIntConCat(&cVar4, iVar3, 8);
				if (datafile::_object_value_get_type(iVar7, &cVar4) == 2)
				{
					Global_1617379.f_28218[iVar0 /*5*/][iVar3] = datafile::_object_value_get_integer(iVar7, &cVar4);
				}
				else
				{
					Global_1617379.f_28218[iVar0 /*5*/][iVar3] = 0;
				}
				StringCopy(&cVar4, "rpr", 8);
				StringIntConCat(&cVar4, iVar0, 8);
				StringIntConCat(&cVar4, iVar3, 8);
				if (datafile::_object_value_get_type(iVar7, &cVar4) == 2)
				{
					Global_1617379.f_28304[iVar0 /*5*/][iVar3] = datafile::_object_value_get_integer(iVar7, &cVar4);
				}
				else
				{
					Global_1617379.f_28304[iVar0 /*5*/][iVar3] = 0;
				}
				StringCopy(&cVar4, "spk", 8);
				StringIntConCat(&cVar4, iVar0, 8);
				StringIntConCat(&cVar4, iVar3, 8);
				if (datafile::_object_value_get_type(iVar7, &cVar4) == 2)
				{
					Global_1617379.f_28390[iVar0 /*5*/][iVar3] = datafile::_object_value_get_integer(iVar7, &cVar4);
				}
				else
				{
					Global_1617379.f_28390[iVar0 /*5*/][iVar3] = 0;
				}
				StringCopy(&cVar4, "tmr", 8);
				StringIntConCat(&cVar4, iVar0, 8);
				StringIntConCat(&cVar4, iVar3, 8);
				if (datafile::_object_value_get_type(iVar7, &cVar4) == 2)
				{
					Global_1617379.f_28476[iVar0 /*5*/][iVar3] = datafile::_object_value_get_integer(iVar7, &cVar4);
				}
				else
				{
					Global_1617379.f_28476[iVar0 /*5*/][iVar3] = 1500;
				}
				StringCopy(&cVar4, "bsd", 8);
				StringIntConCat(&cVar4, iVar0, 8);
				StringIntConCat(&cVar4, iVar3, 8);
				if (datafile::_object_value_get_type(iVar7, &cVar4) == 2)
				{
					Global_1617379.f_28562[iVar0 /*5*/][iVar3] = datafile::_object_value_get_integer(iVar7, &cVar4);
				}
				else
				{
					Global_1617379.f_28562[iVar0 /*5*/][iVar3] = 1400;
				}
				StringCopy(&cVar4, "bss", 8);
				StringIntConCat(&cVar4, iVar0, 8);
				StringIntConCat(&cVar4, iVar3, 8);
				if (datafile::_object_value_get_type(iVar7, &cVar4) == 2)
				{
					Global_1617379.f_28648[iVar0 /*5*/][iVar3] = datafile::_object_value_get_integer(iVar7, &cVar4);
				}
				else
				{
					Global_1617379.f_28648[iVar0 /*5*/][iVar3] = 35;
				}
				iVar0++;
			}
			iVar3++;
		}
	}
	iVar8 = datafile::_object_value_get_array(iVar6, "loc");
	iVar9 = datafile::_object_value_get_array(iVar6, "head");
	iVar16 = datafile::_object_value_get_array(iVar6, "model");
	iVar17 = datafile::_object_value_get_array(iVar6, "col");
	iVar18 = datafile::_object_value_get_array(iVar6, "rsp");
	if (func_47())
	{
		iVar10 = datafile::_object_value_get_array(iVar6, "vrr");
		iVar11 = datafile::_object_value_get_array(iVar6, "vrmr");
		iVar12 = datafile::_object_value_get_array(iVar6, "vsnt");
		iVar13 = datafile::_object_value_get_array(iVar6, "vsnei");
		iVar14 = datafile::_object_value_get_array(iVar6, "v2sp");
		iVar15 = datafile::_object_value_get_array(iVar6, "v2sh");
		iVar19 = datafile::_object_value_get_array(iVar6, "objt");
		iVar20 = datafile::_object_value_get_array(iVar6, "team");
		iVar21 = datafile::_object_value_get_array(iVar6, "spwn");
		iVar22 = datafile::_object_value_get_array(iVar6, "objt2");
		iVar23 = datafile::_object_value_get_array(iVar6, "team2");
		iVar24 = datafile::_object_value_get_array(iVar6, "spwn2");
		iVar25 = datafile::_object_value_get_array(iVar6, "objt3");
		iVar26 = datafile::_object_value_get_array(iVar6, "team3");
		iVar27 = datafile::_object_value_get_array(iVar6, "spwn3");
		iVar28 = datafile::_object_value_get_array(iVar6, "objt4");
		iVar29 = datafile::_object_value_get_array(iVar6, "team4");
		iVar30 = datafile::_object_value_get_array(iVar6, "spwn4");
		Global_1617379.f_36497 = datafile::_object_value_get_integer(iVar6, "nocr");
		iVar31 = datafile::_object_value_get_array(iVar6, "crgdm");
		iVar32 = datafile::_object_value_get_array(iVar6, "liv");
		iVar33 = datafile::_object_value_get_array(iVar6, "modps");
		iVar34 = datafile::_object_value_get_array(iVar6, "colc");
		iVar35 = datafile::_object_value_get_array(iVar6, "col2");
		iVar36 = datafile::_object_value_get_array(iVar6, "col3");
		Global_1617379.f_43064 = datafile::_object_value_get_integer(iVar6, "burst");
		iVar37 = datafile::_object_value_get_array(iVar6, "hlth");
		iVar38 = datafile::_object_value_get_array(iVar6, "enghp");
		iVar39 = datafile::_object_value_get_array(iVar6, "ptrhp");
		iVar40 = datafile::_object_value_get_array(iVar6, "bdyhp");
		iVar41 = datafile::_object_value_get_array(iVar6, "drbs");
		iVar42 = datafile::_object_value_get_array(iVar6, "vbs2");
		iVar43 = datafile::_object_value_get_array(iVar6, "vbs3");
		iVar44 = datafile::_object_value_get_array(iVar6, "vbs4");
		iVar45 = datafile::_object_value_get_array(iVar6, "vebs");
		iVar46 = datafile::_object_value_get_array(iVar6, "vehct");
		iVar49 = datafile::_object_value_get_array(iVar6, "vhcra");
		iVar47 = datafile::_object_value_get_array(iVar6, "vehcr");
		iVar48 = datafile::_object_value_get_array(iVar6, "vehcv");
		iVar50 = datafile::_object_value_get_array(iVar6, "vehbc");
		iVar51 = datafile::_object_value_get_array(iVar6, "vehbr");
		iVar52 = datafile::_object_value_get_array(iVar6, "vspdl");
		iVar53 = datafile::_object_value_get_array(iVar6, "vsgr");
		iVar54 = datafile::_object_value_get_array(iVar6, "vssgr");
		iVar55 = datafile::_object_value_get_array(iVar6, "vcnm");
		iVar56 = datafile::_object_value_get_array(iVar6, "vehap");
		iVar57 = datafile::_object_value_get_array(iVar6, "vehat");
		iVar58 = datafile::_object_value_get_array(iVar6, "vehdu");
		iVar59 = datafile::_object_value_get_array(iVar6, "vldt");
		iVar60 = datafile::_object_value_get_array(iVar6, "vldr");
		iVar61 = datafile::_object_value_get_array(iVar6, "cutsc");
		iVar62 = datafile::_object_value_get_array(iVar6, "cutsh");
		iVar66 = datafile::_object_value_get_array(iVar6, "nmpass");
		iVar67 = datafile::_object_value_get_array(iVar6, "nmfail");
		iVar63 = datafile::_object_value_get_array(iVar6, "vmcp");
		iVar64 = datafile::_object_value_get_array(iVar6, "vmcf");
		iVar65 = datafile::_object_value_get_array(iVar6, "gotor");
		iVar115 = datafile::_object_value_get_array(iVar6, "vphrang");
		iVar116 = datafile::_object_value_get_array(iVar6, "vwpndmg");
		iVar117 = datafile::_object_value_get_array(iVar6, "vtmhrn");
		iVar118 = datafile::_object_value_get_array(iVar6, "vdrpovr");
		iVar1 = 0;
		while (iVar1 <= 1)
		{
			StringCopy(&cVar4, "vrstp", 8);
			if (iVar1 > 0)
			{
				StringIntConCat(&cVar4, iVar1, 8);
			}
			uVar108[iVar1] = datafile::_object_value_get_array(iVar6, &cVar4);
			StringCopy(&cVar4, "frsth", 8);
			if (iVar1 > 0)
			{
				StringIntConCat(&cVar4, iVar1, 8);
			}
			uVar111[iVar1] = datafile::_object_value_get_array(iVar6, &cVar4);
			iVar1++;
		}
		iVar114 = datafile::_object_value_get_array(iVar6, "ubrkdb");
		iVar3 = 0;
		while (iVar3 <= (Global_1617379.f_25 - 1))
		{
			if (iVar3 < 4)
			{
				StringCopy(&cVar4, "rule", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar68[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "pri", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar73[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "tsp", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar78[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "jtop", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar83[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "jtof", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar88[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "vcbf", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar93[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "vcbt", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar98[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
				StringCopy(&cVar4, "vcrr", 8);
				StringIntConCat(&cVar4, iVar3, 8);
				uVar103[iVar3] = datafile::_object_value_get_array(iVar6, &cVar4);
			}
			iVar3++;
		}
	}
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_43061 - 1))
	{
		if (iVar0 < 32)
		{
			Global_1617379.f_43065[iVar0 /*127*/] = { datafile::_array_value_get_vector3(iVar8, iVar0) };
			Global_1617379.f_43065[iVar0 /*127*/].f_3 = datafile::_array_value_get_float(iVar9, iVar0);
			iVar2 = datafile::_array_value_get_integer(iVar16, iVar0);
			Global_1617379.f_43065[iVar0 /*127*/].f_12 = iVar2;
			if (!func_44())
			{
				if (!streaming::is_model_valid(Global_1617379.f_43065[iVar0 /*127*/].f_12))
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_12 = joaat("baller");
				}
			}
			Global_1617379.f_43065[iVar0 /*127*/].f_23 = datafile::_array_value_get_integer(iVar17, iVar0);
			Global_1617379.f_43065[iVar0 /*127*/].f_29 = datafile::_array_value_get_integer(iVar18, iVar0);
			if (func_47())
			{
				if (((datafile::_array_value_get_type(iVar10, iVar0) == 3 && datafile::_array_value_get_type(iVar11, iVar0) == 3) && datafile::_array_value_get_type(iVar12, iVar0) == 2) && datafile::_array_value_get_type(iVar13, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_4 = datafile::_array_value_get_float(iVar10, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_5 = datafile::_array_value_get_float(iVar11, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_6 = datafile::_array_value_get_integer(iVar12, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_7 = datafile::_array_value_get_integer(iVar13, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_4 = 100f;
					Global_1617379.f_43065[iVar0 /*127*/].f_5 = 0f;
					Global_1617379.f_43065[iVar0 /*127*/].f_6 = 0;
					Global_1617379.f_43065[iVar0 /*127*/].f_7 = -1;
				}
				if (datafile::_array_value_get_type(iVar14, iVar0) == 5 && datafile::_array_value_get_type(iVar15, iVar0) == 3)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_8 = { datafile::_array_value_get_vector3(iVar14, iVar0) };
					Global_1617379.f_43065[iVar0 /*127*/].f_11 = datafile::_array_value_get_float(iVar15, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_8 = { 0f, 0f, 0f };
					Global_1617379.f_43065[iVar0 /*127*/].f_11 = 0f;
				}
				Global_1617379.f_43065[iVar0 /*127*/].f_36 = datafile::_array_value_get_integer(iVar19, iVar0);
				Global_1617379.f_43065[iVar0 /*127*/].f_37 = datafile::_array_value_get_integer(iVar20, iVar0);
				Global_1617379.f_43065[iVar0 /*127*/].f_38 = datafile::_array_value_get_integer(iVar21, iVar0);
				if (datafile::_array_value_get_type(iVar22, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_71 = datafile::_array_value_get_integer(iVar22, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_68 = datafile::_array_value_get_integer(iVar23, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_74 = datafile::_array_value_get_integer(iVar24, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_72 = datafile::_array_value_get_integer(iVar25, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_69 = datafile::_array_value_get_integer(iVar26, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_75 = datafile::_array_value_get_integer(iVar27, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_73 = datafile::_array_value_get_integer(iVar28, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_70 = datafile::_array_value_get_integer(iVar29, iVar0);
					Global_1617379.f_43065[iVar0 /*127*/].f_76 = datafile::_array_value_get_integer(iVar30, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_71 = -1;
					Global_1617379.f_43065[iVar0 /*127*/].f_68 = 0;
					Global_1617379.f_43065[iVar0 /*127*/].f_74 = 0;
					Global_1617379.f_43065[iVar0 /*127*/].f_72 = -1;
					Global_1617379.f_43065[iVar0 /*127*/].f_69 = 0;
					Global_1617379.f_43065[iVar0 /*127*/].f_75 = 0;
					Global_1617379.f_43065[iVar0 /*127*/].f_73 = -1;
					Global_1617379.f_43065[iVar0 /*127*/].f_70 = 0;
					Global_1617379.f_43065[iVar0 /*127*/].f_76 = 0;
				}
				Global_1617379.f_43065[iVar0 /*127*/].f_27 = datafile::_array_value_get_integer(iVar32, iVar0);
				if (datafile::_array_value_get_type(iVar33, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_28 = datafile::_array_value_get_integer(iVar33, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_28 = -1;
				}
				Global_1617379.f_43065[iVar0 /*127*/].f_30 = datafile::_array_value_get_integer(iVar37, iVar0);
				if (datafile::_array_value_get_type(iVar38, iVar0) == 3 && datafile::_array_value_get_float(iVar38, iVar0) > 0f)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_31 = datafile::_array_value_get_float(iVar38, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_31 = 1001f;
				}
				if (datafile::_array_value_get_type(iVar31, iVar0) == 3 && datafile::_array_value_get_float(iVar31, iVar0) >= 0f)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_34 = datafile::_array_value_get_float(iVar31, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_34 = 1.5f;
				}
				if (datafile::_array_value_get_type(iVar39, iVar0) == 3 && datafile::_array_value_get_float(iVar39, iVar0) > 0f)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_32 = datafile::_array_value_get_float(iVar39, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_32 = 1001f;
				}
				if (datafile::_array_value_get_type(iVar40, iVar0) == 3 && datafile::_array_value_get_float(iVar40, iVar0) > 0f)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_33 = datafile::_array_value_get_float(iVar40, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_33 = 1001f;
				}
				Global_1617379.f_43065[iVar0 /*127*/].f_41 = datafile::_array_value_get_integer(iVar41, iVar0);
				Global_1617379.f_43065[iVar0 /*127*/].f_42 = datafile::_array_value_get_integer(iVar42, iVar0);
				if (datafile::_array_value_get_type(iVar43, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_43 = datafile::_array_value_get_integer(iVar43, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_43 = 0;
				}
				if (datafile::_array_value_get_type(iVar44, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_44 = datafile::_array_value_get_integer(iVar44, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_44 = 0;
				}
				if (datafile::_array_value_get_type(iVar34, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_26 = datafile::_array_value_get_integer(iVar34, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_26 = -1;
				}
				if (datafile::_array_value_get_type(iVar35, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_24 = datafile::_array_value_get_integer(iVar35, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_24 = -1;
				}
				if (datafile::_array_value_get_type(iVar36, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_25 = datafile::_array_value_get_integer(iVar36, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_25 = -1;
				}
				Global_1617379.f_43065[iVar0 /*127*/].f_105 = datafile::_array_value_get_integer(iVar45, iVar0);
				if (datafile::_array_value_get_type(iVar47, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_58 = datafile::_array_value_get_integer(iVar47, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_58 = -1;
				}
				if (datafile::_array_value_get_type(iVar46, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_59 = datafile::_array_value_get_integer(iVar46, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_59 = -1;
				}
				if (datafile::_array_value_get_type(iVar49, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_60 = datafile::_array_value_get_integer(iVar49, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_60 = -1;
				}
				if (datafile::_array_value_get_type(iVar48, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_61 = datafile::_array_value_get_integer(iVar48, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_61 = -1;
				}
				if (datafile::_array_value_get_type(iVar52, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_67 = datafile::_array_value_get_integer(iVar52, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_67 = 0;
				}
				if (datafile::_array_value_get_type(iVar53, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_39 = datafile::_array_value_get_integer(iVar53, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_39 = 0;
				}
				if (datafile::_array_value_get_type(iVar54, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_40 = datafile::_array_value_get_integer(iVar54, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_40 = 0;
				}
				if (datafile::_array_value_get_type(iVar55, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_77 = datafile::_array_value_get_integer(iVar55, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_77 = -1;
				}
				if (datafile::_array_value_get_type(iVar63, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_95 = datafile::_array_value_get_integer(iVar63, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_95 = -1;
				}
				if (datafile::_array_value_get_type(iVar64, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_96 = datafile::_array_value_get_integer(iVar64, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_96 = -1;
				}
				if (datafile::_array_value_get_type(iVar56, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_78 = datafile::_array_value_get_integer(iVar56, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_78 = -1;
				}
				if (datafile::_array_value_get_type(iVar57, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_79 = datafile::_array_value_get_integer(iVar57, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_79 = 1;
				}
				if (datafile::_array_value_get_type(iVar58, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_92 = datafile::_array_value_get_integer(iVar58, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_92 = -1;
				}
				if (datafile::_array_value_get_type(iVar59, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_93 = datafile::_array_value_get_integer(iVar59, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_93 = -1;
				}
				if (datafile::_array_value_get_type(iVar60, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_94 = datafile::_array_value_get_integer(iVar60, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_94 = -1;
				}
				if (datafile::_array_value_get_type(iVar50, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_46 = datafile::_array_value_get_integer(iVar50, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_46 = 0;
				}
				if (datafile::_array_value_get_type(iVar51, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_47 = datafile::_array_value_get_integer(iVar51, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_47 = 0;
				}
				if (datafile::_array_value_get_type(iVar65, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_35 = datafile::_array_value_get_integer(iVar65, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_35 = 0;
				}
				if (Global_1617379.f_2 != 6 && datafile::_array_value_get_type(iVar61, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_103 = datafile::_array_value_get_integer(iVar61, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_103 = -1;
				}
				if (Global_1617379.f_2 != 6 && datafile::_array_value_get_type(iVar62, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_104 = datafile::_array_value_get_integer(iVar62, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_104 = -1;
				}
				if (datafile::_array_value_get_type(iVar66, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_90 = datafile::_array_value_get_integer(iVar66, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_90 = -1;
				}
				if (datafile::_array_value_get_type(iVar67, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_91 = datafile::_array_value_get_integer(iVar67, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_91 = -1;
				}
				iVar1 = 0;
				while (iVar1 <= 1)
				{
					if (datafile::_array_value_get_type(uVar108[iVar1], iVar0) == 5)
					{
						Global_1617379.f_43065[iVar0 /*127*/].f_107[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar108[iVar1], iVar0) };
					}
					else
					{
						Global_1617379.f_43065[iVar0 /*127*/].f_107[iVar1 /*3*/] = { 0f, 0f, 0f };
					}
					if (datafile::_array_value_get_type(uVar111[iVar1], iVar0) == 3)
					{
						Global_1617379.f_43065[iVar0 /*127*/].f_114[iVar1] = datafile::_array_value_get_float(uVar111[iVar1], iVar0);
					}
					else
					{
						Global_1617379.f_43065[iVar0 /*127*/].f_114[iVar1] = 0f;
					}
					iVar1++;
				}
				if (datafile::_array_value_get_type(iVar114, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_106 = datafile::_array_value_get_integer(iVar114, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_106 = 0;
				}
				if (datafile::_array_value_get_type(iVar115, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_117 = datafile::_array_value_get_integer(iVar115, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_117 = -1;
				}
				if (datafile::_array_value_get_type(iVar116, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_122 = datafile::_array_value_get_integer(iVar116, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_122 = -1;
				}
				if (datafile::_array_value_get_type(iVar117, iVar0) == 2)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_118 = datafile::_array_value_get_integer(iVar117, iVar0);
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_118 = -1;
				}
				if (datafile::_array_value_get_type(iVar118, iVar0) == 5)
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_119 = { datafile::_array_value_get_vector3(iVar118, iVar0) };
				}
				else
				{
					Global_1617379.f_43065[iVar0 /*127*/].f_119 = { 0f, 0f, 0f };
				}
				iVar3 = 0;
				while (iVar3 <= (Global_1617379.f_25 - 1))
				{
					if (iVar3 < 4)
					{
						Global_1617379.f_43065[iVar0 /*127*/].f_13[iVar3] = datafile::_array_value_get_integer(uVar68[iVar3], iVar0);
						Global_1617379.f_43065[iVar0 /*127*/].f_18[iVar3] = datafile::_array_value_get_integer(uVar73[iVar3], iVar0);
						if (Global_1617379.f_43065[iVar0 /*127*/].f_18[iVar3] == -1)
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_18[iVar3] = 99999;
						}
						if (datafile::_array_value_get_type(uVar78[iVar3], iVar0) == 2)
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_97[iVar3] = datafile::_array_value_get_integer(uVar78[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_97[iVar3] = 0;
						}
						if (datafile::_array_value_get_type(uVar83[iVar3], iVar0) == 2)
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_80[iVar3] = datafile::_array_value_get_integer(uVar83[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_80[iVar3] = 0;
						}
						if (datafile::_array_value_get_type(uVar88[iVar3], iVar0) == 2)
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_85[iVar3] = datafile::_array_value_get_integer(uVar88[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_85[iVar3] = 0;
						}
						if (datafile::_array_value_get_type(uVar93[iVar3], iVar0) == 2)
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_48[iVar3] = datafile::_array_value_get_integer(uVar93[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_48[iVar3] = -1;
						}
						if (datafile::_array_value_get_type(uVar98[iVar3], iVar0) == 2)
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_53[iVar3] = datafile::_array_value_get_integer(uVar98[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_53[iVar3] = -1;
						}
						if (datafile::_array_value_get_type(uVar103[iVar3], iVar0) == 2)
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_62[iVar3] = datafile::_array_value_get_integer(uVar103[iVar3], iVar0);
						}
						else
						{
							Global_1617379.f_43065[iVar0 /*127*/].f_62[iVar3] = 0;
						}
					}
					iVar3++;
				}
			}
		}
		iVar0++;
	}
}

void func_135(int iParam0)//Position - 0xAFE2
{
	int iVar0;
	int iVar1;
	int iVar2;
	char[] cVar3[8];
	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;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	
	iVar5 = datafile::_object_value_get_object(iParam0, "weap");
	Global_1617379.f_41497 = datafile::_object_value_get_integer(iVar5, "no");
	if (Global_1617379 == 0)
	{
		if (Global_1617379.f_41497 > 40)
		{
			Global_1617379.f_41497 = 40;
		}
	}
	else if (Global_1617379.f_41497 > 40)
	{
		Global_1617379.f_41497 = 40;
	}
	Global_1617379.f_41499 = datafile::_object_value_get_integer(iVar5, "time");
	Global_1617379.f_41500 = datafile::_object_value_get_integer(iVar5, "pal");
	Global_1617379.f_48 = datafile::_object_value_get_integer(iVar5, "blip");
	iVar6 = datafile::_object_value_get_array(iVar5, "loc");
	iVar7 = datafile::_object_value_get_array(iVar5, "head");
	iVar8 = datafile::_object_value_get_array(iVar5, "type");
	iVar9 = datafile::_object_value_get_array(iVar5, "sub");
	iVar10 = datafile::_object_value_get_array(iVar5, "bits");
	iVar11 = datafile::_object_value_get_array(iVar5, "clip");
	iVar12 = datafile::_object_value_get_array(iVar5, "brest1");
	iVar13 = datafile::_object_value_get_array(iVar5, "brest2");
	iVar14 = datafile::_object_value_get_array(iVar5, "brest3");
	iVar15 = datafile::_object_value_get_array(iVar5, "brest4");
	iVar16 = datafile::_object_value_get_array(iVar5, "dmgmult");
	iVar17 = datafile::_object_value_get_array(iVar5, "rput");
	iVar18 = datafile::_object_value_get_array(iVar5, "vasst");
	iVar19 = datafile::_object_value_get_array(iVar5, "vasso");
	iVar20 = datafile::_object_value_get_array(iVar5, "vasss");
	iVar21 = datafile::_object_value_get_array(iVar5, "vasst2");
	iVar22 = datafile::_object_value_get_array(iVar5, "vasso2");
	iVar23 = datafile::_object_value_get_array(iVar5, "vasss2");
	iVar24 = datafile::_object_value_get_array(iVar5, "vasst3");
	iVar25 = datafile::_object_value_get_array(iVar5, "vasso3");
	iVar26 = datafile::_object_value_get_array(iVar5, "vasss3");
	iVar27 = datafile::_object_value_get_array(iVar5, "vasst4");
	iVar28 = datafile::_object_value_get_array(iVar5, "vasso4");
	iVar29 = datafile::_object_value_get_array(iVar5, "vasss4");
	iVar30 = datafile::_object_value_get_array(iVar5, "vclnr");
	iVar31 = datafile::_object_value_get_array(iVar5, "vclnt");
	iVar32 = datafile::_object_value_get_array(iVar5, "vclnrl");
	Global_1617379.f_43060 = datafile::_object_value_get_boolean(iVar5, "randtyp");
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_41497 - 1))
	{
		if (iVar0 < 40)
		{
			Global_1617379.f_41501[iVar0 /*38*/] = { datafile::_array_value_get_vector3(iVar6, iVar0) };
			Global_1617379.f_41501[iVar0 /*38*/].f_3 = datafile::_array_value_get_float(iVar7, iVar0);
			iVar1 = datafile::_array_value_get_integer(iVar8, iVar0);
			Global_1617379.f_41501[iVar0 /*38*/].f_13 = iVar1;
			if (!func_136(Global_1617379.f_41501[iVar0 /*38*/].f_13))
			{
				if (Global_1617379.f_41501[iVar0 /*38*/].f_13 == 127042729)
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_13 = joaat("pickup_weapon_sniperrifle");
				}
				else
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_13 = joaat("pickup_weapon_pistol");
				}
			}
			Global_1617379.f_41501[iVar0 /*38*/].f_4 = datafile::_array_value_get_integer(iVar9, iVar0);
			Global_1617379.f_41501[iVar0 /*38*/].f_6 = datafile::_array_value_get_integer(iVar10, iVar0);
			Global_1617379.f_41501[iVar0 /*38*/].f_5 = datafile::_array_value_get_integer(iVar11, iVar0);
			Global_1617379.f_41501[iVar0 /*38*/].f_21 = datafile::_array_value_get_integer(iVar17, iVar0);
			if (datafile::_array_value_get_type(iVar12, iVar0) == 1)
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_8[0] = datafile::_array_value_get_boolean(iVar12, iVar0);
			}
			else
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_8[0] = 0;
			}
			if (datafile::_array_value_get_type(iVar13, iVar0) == 1)
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_8[1] = datafile::_array_value_get_boolean(iVar13, iVar0);
			}
			else
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_8[1] = 0;
			}
			if (datafile::_array_value_get_type(iVar14, iVar0) == 1)
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_8[2] = datafile::_array_value_get_boolean(iVar14, iVar0);
			}
			else
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_8[2] = 0;
			}
			if (datafile::_array_value_get_type(iVar15, iVar0) == 1)
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_8[3] = datafile::_array_value_get_boolean(iVar15, iVar0);
			}
			else
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_8[3] = 0;
			}
			if (datafile::_array_value_get_type(iVar16, iVar0) == 3)
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_7 = datafile::_array_value_get_float(iVar16, iVar0);
			}
			else
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_7 = 1f;
			}
			if (datafile::_array_value_get_type(iVar17, iVar0) == 2)
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_21 = datafile::_array_value_get_integer(iVar17, iVar0);
			}
			else
			{
				Global_1617379.f_41501[iVar0 /*38*/].f_21 = -1;
			}
			if (func_47())
			{
				if (datafile::_array_value_get_type(iVar32, iVar0) == 2)
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_26 = datafile::_array_value_get_integer(iVar32, iVar0);
				}
				else
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_26 = -1;
				}
				if (datafile::_array_value_get_type(iVar31, iVar0) == 2)
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_27 = datafile::_array_value_get_integer(iVar31, iVar0);
				}
				else
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_27 = -1;
				}
				if (datafile::_array_value_get_type(iVar30, iVar0) == 2)
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_28 = datafile::_array_value_get_integer(iVar30, iVar0);
				}
				else
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_28 = 0;
				}
				Global_1617379.f_41501[iVar0 /*38*/].f_23 = datafile::_array_value_get_integer(iVar18, iVar0);
				Global_1617379.f_41501[iVar0 /*38*/].f_24 = datafile::_array_value_get_integer(iVar19, iVar0);
				Global_1617379.f_41501[iVar0 /*38*/].f_25 = datafile::_array_value_get_integer(iVar20, iVar0);
				if (Global_1617379.f_41501[iVar0 /*38*/].f_25 == -1)
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_25 = 0;
				}
				if (datafile::_array_value_get_type(iVar22, iVar0) == 2)
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_32 = datafile::_array_value_get_integer(iVar21, iVar0);
					Global_1617379.f_41501[iVar0 /*38*/].f_29 = datafile::_array_value_get_integer(iVar22, iVar0);
					Global_1617379.f_41501[iVar0 /*38*/].f_35 = datafile::_array_value_get_integer(iVar23, iVar0);
					Global_1617379.f_41501[iVar0 /*38*/].f_33 = datafile::_array_value_get_integer(iVar24, iVar0);
					Global_1617379.f_41501[iVar0 /*38*/].f_30 = datafile::_array_value_get_integer(iVar25, iVar0);
					Global_1617379.f_41501[iVar0 /*38*/].f_36 = datafile::_array_value_get_integer(iVar26, iVar0);
					Global_1617379.f_41501[iVar0 /*38*/].f_34 = datafile::_array_value_get_integer(iVar27, iVar0);
					Global_1617379.f_41501[iVar0 /*38*/].f_31 = datafile::_array_value_get_integer(iVar28, iVar0);
					Global_1617379.f_41501[iVar0 /*38*/].f_37 = datafile::_array_value_get_integer(iVar29, iVar0);
				}
				else
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_32 = -1;
					Global_1617379.f_41501[iVar0 /*38*/].f_29 = 0;
					Global_1617379.f_41501[iVar0 /*38*/].f_35 = 0;
					Global_1617379.f_41501[iVar0 /*38*/].f_33 = -1;
					Global_1617379.f_41501[iVar0 /*38*/].f_30 = 0;
					Global_1617379.f_41501[iVar0 /*38*/].f_36 = 0;
					Global_1617379.f_41501[iVar0 /*38*/].f_34 = -1;
					Global_1617379.f_41501[iVar0 /*38*/].f_31 = 0;
					Global_1617379.f_41501[iVar0 /*38*/].f_37 = 0;
				}
			}
			StringCopy(&cVar3, "comps", 8);
			StringIntConCat(&cVar3, iVar0, 8);
			iVar33 = datafile::_object_value_get_array(iVar5, &cVar3);
			iVar2 = 0;
			while (iVar2 <= 5)
			{
				if (datafile::_array_value_get_type(iVar33, iVar2) == 2)
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_14[iVar2] = datafile::_array_value_get_integer(iVar33, iVar2);
				}
				else
				{
					Global_1617379.f_41501[iVar0 /*38*/].f_14[iVar2] = 0;
				}
				iVar2++;
			}
		}
		iVar0++;
	}
}

bool func_136(int iParam0)//Position - 0xB740
{
	switch (iParam0)
	{
		case joaat("pickup_health_standard"):
		case joaat("pickup_armour_standard"):
		case joaat("pickup_health_snack"):
		case joaat("pickup_money_variable"):
		case joaat("pickup_money_case"):
		case joaat("pickup_money_wallet"):
		case joaat("pickup_money_purse"):
		case joaat("pickup_money_dep_bag"):
		case joaat("pickup_money_med_bag"):
		case joaat("pickup_money_paper_bag"):
		case joaat("pickup_money_security_case"):
		case -512375144:
		case joaat("pickup_weapon_pistol"):
		case joaat("pickup_weapon_combatpistol"):
		case 1817941018:
		case joaat("pickup_weapon_appistol"):
		case joaat("pickup_weapon_microsmg"):
		case joaat("pickup_weapon_smg"):
		case 1948018762:
		case joaat("pickup_weapon_assaultrifle"):
		case joaat("pickup_weapon_carbinerifle"):
		case 1491498856:
		case joaat("pickup_weapon_advancedrifle"):
		case joaat("pickup_weapon_mg"):
		case joaat("pickup_weapon_combatmg"):
		case 975696266:
		case joaat("pickup_weapon_pumpshotgun"):
		case joaat("pickup_weapon_sawnoffshotgun"):
		case joaat("pickup_weapon_assaultshotgun"):
		case joaat("pickup_weapon_sniperrifle"):
		case 1061513000:
		case joaat("pickup_weapon_heavysniper"):
		case joaat("pickup_weapon_grenadelauncher"):
		case joaat("pickup_weapon_rpg"):
		case joaat("pickup_weapon_minigun"):
		case joaat("pickup_weapon_grenade"):
		case joaat("pickup_weapon_smokegrenade"):
		case joaat("pickup_weapon_stickybomb"):
		case joaat("pickup_weapon_molotov"):
		case -48884066:
		case -660082779:
		case -695202657:
		case joaat("pickup_weapon_fireextinguisher"):
		case joaat("pickup_weapon_petrolcan"):
		case joaat("pickup_weapon_loudhailer"):
		case joaat("pickup_weapon_knife"):
		case joaat("pickup_weapon_nightstick"):
		case joaat("pickup_weapon_hammer"):
		case joaat("pickup_weapon_bat"):
		case joaat("pickup_weapon_crowbar"):
		case joaat("pickup_weapon_golfclub"):
		case joaat("pickup_ammo_bullet_mp"):
		case joaat("pickup_ammo_missile_mp"):
		case -1541298894:
		case 544828034:
		case 292537574:
		case -457363514:
		case -564600653:
		case 2012476125:
			return true;
		
		default:
	}
	switch (iParam0)
	{
		case -1070796507:
		case -2011516760:
		case -2071756841:
		case -228982343:
		case 610630637:
		case -1883407879:
		case -535568356:
		case -114341780:
		case -1892342586:
		case 2001257022:
		case joaat("pickup_vehicle_health_standard"):
		case -34700440:
		case joaat("pickup_vehicle_armour_standard"):
		case joaat("pickup_vehicle_weapon_pistol"):
		case joaat("pickup_vehicle_weapon_combatpistol"):
		case -744254618:
		case joaat("pickup_vehicle_weapon_appistol"):
		case joaat("pickup_vehicle_weapon_microsmg"):
		case joaat("pickup_vehicle_weapon_smg"):
		case joaat("pickup_vehicle_weapon_sawnoff"):
		case 1751145014:
		case joaat("pickup_vehicle_weapon_grenade"):
		case joaat("pickup_vehicle_weapon_smokegrenade"):
		case joaat("pickup_vehicle_weapon_stickybomb"):
		case joaat("pickup_vehicle_weapon_molotov"):
		case joaat("pickup_vehicle_custom_script"):
		case 1104334678:
		case 1704231442:
		case joaat("pickup_portable_crate_unfixed"):
		case -1795552418:
		case joaat("pickup_portable_package"):
		case 837436873:
		case joaat("pickup_submarine"):
		case joaat("pickup_parachute"):
		case joaat("pickup_custom_script"):
		case joaat("pickup_handcuff_key"):
		case joaat("pickup_camera"):
		case -95310859:
		case 157823901:
		case -977852653:
		case -2124585240:
		case -1661912808:
		case -1074893765:
		case -336028321:
		case 1393009900:
		case 582047296:
		case 1983869217:
		case -1071729032:
		case 1649373715:
		case 1311775952:
		case -462548556:
		case -1118969278:
		case 1850631618:
		case -171582756:
		case -1965167499:
		case -1093374267:
		case 127042729:
		case 266812085:
		case -102572257:
		case -668632385:
		case -1112080475:
		case -40063266:
		case 2023061218:
		case -572254182:
		case 1632369836:
			return true;
		
		default:
	}
	return false;
}

void func_137(int iParam0)//Position - 0xBA47
{
	int iVar0;
	int iVar1;
	char[] cVar2[8];
	int iVar4;
	var uVar5[10];
	var uVar16[10];
	var uVar27[10];
	
	if (datafile::_object_value_get_object(iParam0, "ptemp") == 0)
	{
		return;
	}
	iVar4 = datafile::_object_value_get_object(iParam0, "ptemp");
	Global_1617379.f_88444 = datafile::_object_value_get_integer(iVar4, "no");
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_88444 - 1))
	{
		StringCopy(&cVar2, "pto", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar5[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "ptr", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar16[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "ptm", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar27[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		iVar1 = 0;
		while (iVar1 <= 29)
		{
			if (datafile::_array_value_get_type(uVar5[iVar0], iVar1) == 5)
			{
				Global_1617379.f_86313[iVar0 /*213*/][iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar5[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_86313[iVar0 /*213*/][iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar16[iVar0], iVar1) == 5)
			{
				Global_1617379.f_86313[iVar0 /*213*/].f_91[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar16[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_86313[iVar0 /*213*/].f_91[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar27[iVar0], iVar1) == 2)
			{
				Global_1617379.f_86313[iVar0 /*213*/].f_182[iVar1] = datafile::_array_value_get_integer(uVar27[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_86313[iVar0 /*213*/].f_182[iVar1] = 0;
			}
			iVar1++;
		}
		iVar0++;
	}
}

void func_138(int iParam0)//Position - 0xBBF0
{
	int iVar0;
	int iVar1;
	int iVar2;
	char[] cVar3[8];
	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;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	int iVar44;
	int iVar45;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	int iVar50;
	int iVar51;
	int iVar52;
	int iVar53;
	int iVar54;
	int iVar55;
	int iVar56;
	int iVar57;
	int iVar58;
	int iVar59;
	int iVar60;
	int iVar61;
	var uVar62[4];
	var uVar67[4];
	var uVar72[4];
	var uVar77[4];
	
	iVar5 = datafile::_object_value_get_object(iParam0, "obj");
	Global_1617379.f_34300 = datafile::_object_value_get_integer(iVar5, "no");
	Global_1617379.f_34301 = datafile::_object_value_get_integer(iVar5, "pal");
	Global_1617379.f_34302 = datafile::_object_value_get_integer(iVar5, "rtm");
	iVar6 = datafile::_object_value_get_array(iVar5, "loc");
	iVar7 = datafile::_object_value_get_array(iVar5, "head");
	iVar15 = datafile::_object_value_get_array(iVar5, "model");
	iVar16 = datafile::_object_value_get_array(iVar5, "ped");
	iVar17 = datafile::_object_value_get_array(iVar5, "rsp");
	iVar18 = datafile::_object_value_get_array(iVar5, "rot");
	iVar19 = datafile::_object_value_get_array(iVar5, "cont");
	iVar20 = datafile::_object_value_get_array(iVar5, "valu");
	iVar21 = datafile::_object_value_get_array(iVar5, "ammoforwep");
	iVar22 = datafile::_object_value_get_array(iVar5, "cpup");
	iVar23 = datafile::_object_value_get_array(iVar5, "cpupr");
	iVar24 = datafile::_object_value_get_array(iVar5, "cpupt");
	iVar25 = datafile::_object_value_get_array(iVar5, "bits");
	if (func_47())
	{
		iVar8 = datafile::_object_value_get_array(iVar5, "obrr");
		iVar9 = datafile::_object_value_get_array(iVar5, "obrmr");
		iVar10 = datafile::_object_value_get_array(iVar5, "osnt");
		iVar11 = datafile::_object_value_get_array(iVar5, "osnei");
		iVar14 = datafile::_object_value_get_array(iVar5, "objbr");
		iVar12 = datafile::_object_value_get_array(iVar5, "o2sp");
		iVar13 = datafile::_object_value_get_array(iVar5, "o2sh");
		iVar26 = datafile::_object_value_get_array(iVar5, "mgbs");
		iVar27 = datafile::_object_value_get_array(iVar5, "objct");
		iVar28 = datafile::_object_value_get_array(iVar5, "team");
		iVar29 = datafile::_object_value_get_array(iVar5, "spwn");
		iVar30 = datafile::_object_value_get_array(iVar5, "objct2");
		iVar31 = datafile::_object_value_get_array(iVar5, "team2");
		iVar32 = datafile::_object_value_get_array(iVar5, "spwn2");
		iVar33 = datafile::_object_value_get_array(iVar5, "objct3");
		iVar34 = datafile::_object_value_get_array(iVar5, "team3");
		iVar35 = datafile::_object_value_get_array(iVar5, "spwn3");
		iVar36 = datafile::_object_value_get_array(iVar5, "objct4");
		iVar37 = datafile::_object_value_get_array(iVar5, "team4");
		iVar38 = datafile::_object_value_get_array(iVar5, "spwn4");
		iVar39 = datafile::_object_value_get_array(iVar5, "hlt");
		iVar40 = datafile::_object_value_get_array(iVar5, "obb");
		iVar41 = datafile::_object_value_get_array(iVar5, "obbc");
		iVar42 = datafile::_object_value_get_array(iVar5, "objclt");
		iVar43 = datafile::_object_value_get_array(iVar5, "objcr");
		iVar44 = datafile::_object_value_get_array(iVar5, "obcra");
		iVar45 = datafile::_object_value_get_array(iVar5, "ospdl");
		iVar46 = datafile::_object_value_get_array(iVar5, "osgr");
		iVar47 = datafile::_object_value_get_array(iVar5, "ossgr");
		iVar48 = datafile::_object_value_get_array(iVar5, "objcnm");
		iVar49 = datafile::_object_value_get_array(iVar5, "objap");
		iVar50 = datafile::_object_value_get_array(iVar5, "objapt");
		iVar51 = datafile::_object_value_get_array(iVar5, "obint");
		iVar52 = datafile::_object_value_get_array(iVar5, "obrom");
		iVar53 = datafile::_object_value_get_array(iVar5, "inco");
		iVar54 = datafile::_object_value_get_array(iVar5, "inhsh");
		iVar55 = datafile::_object_value_get_array(iVar5, "vehpu");
		iVar56 = datafile::_object_value_get_array(iVar5, "airpu");
		iVar59 = datafile::_object_value_get_array(iVar5, "gotor");
		iVar60 = datafile::_object_value_get_array(iVar5, "nmpass");
		iVar61 = datafile::_object_value_get_array(iVar5, "nmfail");
		iVar57 = datafile::_object_value_get_array(iVar5, "omcp");
		iVar58 = datafile::_object_value_get_array(iVar5, "omcf");
		iVar2 = 0;
		while (iVar2 <= (Global_1617379.f_25 - 1))
		{
			if (iVar2 < 4)
			{
				StringCopy(&cVar3, "rule", 8);
				StringIntConCat(&cVar3, iVar2, 8);
				uVar62[iVar2] = datafile::_object_value_get_array(iVar5, &cVar3);
				StringCopy(&cVar3, "pri", 8);
				StringIntConCat(&cVar3, iVar2, 8);
				uVar67[iVar2] = datafile::_object_value_get_array(iVar5, &cVar3);
				StringCopy(&cVar3, "jtop", 8);
				StringIntConCat(&cVar3, iVar2, 8);
				uVar72[iVar2] = datafile::_object_value_get_array(iVar5, &cVar3);
				StringCopy(&cVar3, "jtof", 8);
				StringIntConCat(&cVar3, iVar2, 8);
				uVar77[iVar2] = datafile::_object_value_get_array(iVar5, &cVar3);
			}
			iVar2++;
		}
	}
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_34300 - 1))
	{
		if (iVar0 < 20)
		{
			Global_1617379.f_34303[iVar0 /*89*/] = { datafile::_array_value_get_vector3(iVar6, iVar0) };
			Global_1617379.f_34303[iVar0 /*89*/].f_3 = datafile::_array_value_get_float(iVar7, iVar0);
			iVar1 = datafile::_array_value_get_integer(iVar15, iVar0);
			Global_1617379.f_34303[iVar0 /*89*/].f_16 = iVar1;
			if (Global_1617379.f_34303[iVar0 /*89*/].f_16 == -1842407088)
			{
				Global_1617379.f_34303[iVar0 /*89*/].f_16 = -1007354661;
			}
			if (!streaming::is_model_valid(Global_1617379.f_34303[iVar0 /*89*/].f_16))
			{
				Global_1617379.f_34303[iVar0 /*89*/].f_16 = joaat("prop_drug_package");
			}
			if (Global_1617379.f_34303[iVar0 /*89*/].f_16 == 168901740)
			{
				Global_1617379.f_34303[iVar0 /*89*/].f_16 = -1007354661;
			}
			if (Global_1617379.f_34303[iVar0 /*89*/].f_16 == -1340405475)
			{
				Global_1617379.f_34303[iVar0 /*89*/].f_16 = -1842407088;
			}
			Global_1617379.f_34303[iVar0 /*89*/].f_27 = datafile::_array_value_get_integer(iVar17, iVar0);
			Global_1617379.f_34303[iVar0 /*89*/].f_4 = { datafile::_array_value_get_vector3(iVar18, iVar0) };
			Global_1617379.f_34303[iVar0 /*89*/].f_31 = datafile::_array_value_get_integer(iVar16, iVar0);
			Global_1617379.f_34303[iVar0 /*89*/].f_45 = datafile::_array_value_get_integer(iVar19, iVar0);
			Global_1617379.f_34303[iVar0 /*89*/].f_46 = datafile::_array_value_get_integer(iVar20, iVar0);
			Global_1617379.f_34303[iVar0 /*89*/].f_47 = datafile::_array_value_get_integer(iVar21, iVar0);
			Global_1617379.f_34303[iVar0 /*89*/].f_48 = datafile::_array_value_get_integer(iVar22, iVar0);
			Global_1617379.f_34303[iVar0 /*89*/].f_49 = datafile::_array_value_get_integer(iVar24, iVar0);
			Global_1617379.f_34303[iVar0 /*89*/].f_50 = datafile::_array_value_get_integer(iVar23, iVar0);
			Global_1617379.f_34303[iVar0 /*89*/].f_43 = datafile::_array_value_get_integer(iVar25, iVar0);
			if (datafile::_array_value_get_type(iVar56, iVar0) == 2)
			{
				if (datafile::_array_value_get_integer(iVar56, iVar0) == 1)
				{
					if (!gameplay::is_bit_set(Global_1617379.f_34303[iVar0 /*89*/].f_43, 4))
					{
						gameplay::set_bit(&(Global_1617379.f_34303[iVar0 /*89*/].f_43), 4);
					}
				}
			}
			if (func_47())
			{
				if (((datafile::_array_value_get_type(iVar8, iVar0) == 3 && datafile::_array_value_get_type(iVar9, iVar0) == 3) && datafile::_array_value_get_type(iVar10, iVar0) == 2) && datafile::_array_value_get_type(iVar11, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_7 = datafile::_array_value_get_float(iVar8, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_8 = datafile::_array_value_get_float(iVar9, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_9 = datafile::_array_value_get_integer(iVar10, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_10 = datafile::_array_value_get_integer(iVar11, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_7 = 50f;
					Global_1617379.f_34303[iVar0 /*89*/].f_8 = 0f;
					Global_1617379.f_34303[iVar0 /*89*/].f_9 = 0;
					Global_1617379.f_34303[iVar0 /*89*/].f_10 = -1;
				}
				if (datafile::_array_value_get_type(iVar14, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_15 = datafile::_array_value_get_integer(iVar14, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_15 = 0;
				}
				if (datafile::_array_value_get_type(iVar12, iVar0) == 5 && datafile::_array_value_get_type(iVar13, iVar0) == 3)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_11 = { datafile::_array_value_get_vector3(iVar12, iVar0) };
					Global_1617379.f_34303[iVar0 /*89*/].f_14 = datafile::_array_value_get_float(iVar13, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_11 = { 0f, 0f, 0f };
					Global_1617379.f_34303[iVar0 /*89*/].f_14 = 0f;
				}
				Global_1617379.f_34303[iVar0 /*89*/].f_44 = datafile::_array_value_get_integer(iVar26, iVar0);
				Global_1617379.f_34303[iVar0 /*89*/].f_32 = datafile::_array_value_get_integer(iVar27, iVar0);
				Global_1617379.f_34303[iVar0 /*89*/].f_33 = datafile::_array_value_get_integer(iVar28, iVar0);
				Global_1617379.f_34303[iVar0 /*89*/].f_34 = datafile::_array_value_get_integer(iVar29, iVar0);
				if (datafile::_array_value_get_type(iVar30, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_59 = datafile::_array_value_get_integer(iVar30, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_56 = datafile::_array_value_get_integer(iVar31, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_62 = datafile::_array_value_get_integer(iVar32, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_60 = datafile::_array_value_get_integer(iVar33, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_57 = datafile::_array_value_get_integer(iVar34, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_63 = datafile::_array_value_get_integer(iVar35, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_61 = datafile::_array_value_get_integer(iVar36, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_58 = datafile::_array_value_get_integer(iVar37, iVar0);
					Global_1617379.f_34303[iVar0 /*89*/].f_64 = datafile::_array_value_get_integer(iVar38, iVar0);
				}
				Global_1617379.f_34303[iVar0 /*89*/].f_28 = datafile::_array_value_get_integer(iVar39, iVar0);
				Global_1617379.f_34303[iVar0 /*89*/].f_29 = datafile::_array_value_get_integer(iVar40, iVar0);
				Global_1617379.f_34303[iVar0 /*89*/].f_37 = datafile::_array_value_get_integer(iVar55, iVar0);
				if (datafile::_array_value_get_type(iVar41, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_30 = datafile::_array_value_get_integer(iVar41, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_30 = 0;
				}
				if (datafile::_array_value_get_type(iVar43, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_51 = datafile::_array_value_get_integer(iVar43, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_51 = -1;
				}
				if (datafile::_array_value_get_type(iVar42, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_52 = datafile::_array_value_get_integer(iVar42, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_52 = -1;
				}
				if (datafile::_array_value_get_type(iVar44, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_53 = datafile::_array_value_get_integer(iVar44, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_53 = -1;
				}
				if (datafile::_array_value_get_type(iVar45, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_55 = datafile::_array_value_get_integer(iVar45, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_55 = -1;
				}
				if (datafile::_array_value_get_type(iVar46, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_35 = datafile::_array_value_get_integer(iVar46, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_35 = 0;
				}
				if (datafile::_array_value_get_type(iVar47, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_36 = datafile::_array_value_get_integer(iVar47, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_36 = 0;
				}
				if (datafile::_array_value_get_type(iVar48, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_80 = datafile::_array_value_get_integer(iVar48, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_80 = -1;
				}
				if (datafile::_array_value_get_type(iVar57, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_77 = datafile::_array_value_get_integer(iVar57, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_77 = -1;
				}
				if (datafile::_array_value_get_type(iVar58, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_78 = datafile::_array_value_get_integer(iVar58, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_78 = -1;
				}
				if (datafile::_array_value_get_type(iVar49, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_81 = datafile::_array_value_get_integer(iVar49, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_81 = -1;
				}
				if (datafile::_array_value_get_type(iVar50, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_82 = datafile::_array_value_get_integer(iVar50, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_82 = -1;
				}
				if (datafile::_array_value_get_type(iVar51, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_83 = datafile::_array_value_get_integer(iVar51, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_83 = -1;
				}
				if (datafile::_array_value_get_type(iVar52, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_84 = datafile::_array_value_get_integer(iVar52, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_84 = -1;
				}
				if (datafile::_array_value_get_type(iVar53, iVar0) == 5 && datafile::_array_value_get_type(iVar54, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_85 = { datafile::_array_value_get_vector3(iVar53, iVar0) };
					Global_1617379.f_34303[iVar0 /*89*/].f_88 = datafile::_array_value_get_integer(iVar54, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_85 = { 0f, 0f, 0f };
					Global_1617379.f_34303[iVar0 /*89*/].f_88 = 0;
				}
				if (datafile::_array_value_get_type(iVar59, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_54 = datafile::_array_value_get_integer(iVar59, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_54 = 0;
				}
				if (datafile::_array_value_get_type(iVar60, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_75 = datafile::_array_value_get_integer(iVar60, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_75 = -1;
				}
				if (datafile::_array_value_get_type(iVar61, iVar0) == 2)
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_76 = datafile::_array_value_get_integer(iVar61, iVar0);
				}
				else
				{
					Global_1617379.f_34303[iVar0 /*89*/].f_76 = -1;
				}
				iVar2 = 0;
				while (iVar2 <= (Global_1617379.f_25 - 1))
				{
					if (iVar2 < 4)
					{
						Global_1617379.f_34303[iVar0 /*89*/].f_17[iVar2] = datafile::_array_value_get_integer(uVar62[iVar2], iVar0);
						Global_1617379.f_34303[iVar0 /*89*/].f_22[iVar2] = datafile::_array_value_get_integer(uVar67[iVar2], iVar0);
						if (Global_1617379.f_34303[iVar0 /*89*/].f_22[iVar2] == -1)
						{
							Global_1617379.f_34303[iVar0 /*89*/].f_22[iVar2] = 99999;
						}
						if (datafile::_array_value_get_type(uVar72[iVar2], iVar0) == 2)
						{
							Global_1617379.f_34303[iVar0 /*89*/].f_65[iVar2] = datafile::_array_value_get_integer(uVar72[iVar2], iVar0);
						}
						else
						{
							Global_1617379.f_34303[iVar0 /*89*/].f_65[iVar2] = 0;
						}
						if (datafile::_array_value_get_type(uVar77[iVar2], iVar0) == 2)
						{
							Global_1617379.f_34303[iVar0 /*89*/].f_70[iVar2] = datafile::_array_value_get_integer(uVar77[iVar2], iVar0);
						}
						else
						{
							Global_1617379.f_34303[iVar0 /*89*/].f_70[iVar2] = 0;
						}
					}
					iVar2++;
				}
			}
		}
		iVar0++;
	}
}

void func_139(int iParam0)//Position - 0xCA02
{
	int iVar0;
	int iVar1;
	char cVar2[16];
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	var uVar10[4];
	var uVar15[4];
	int iVar20;
	int iVar21;
	int iVar22;
	int iVar23;
	int iVar24;
	int iVar25;
	
	iVar6 = datafile::_object_value_get_object(iParam0, "zone");
	Global_1617379.f_70673 = datafile::_object_value_get_integer(iVar6, "no");
	iVar7 = datafile::_object_value_get_array(iVar6, "vto");
	iVar8 = datafile::_object_value_get_array(iVar6, "vld");
	iVar9 = datafile::_object_value_get_array(iVar6, "zntp");
	iVar20 = datafile::_object_value_get_array(iVar6, "znbs");
	iVar21 = datafile::_object_value_get_array(iVar6, "znwd");
	iVar22 = datafile::_object_value_get_array(iVar6, "znwvd");
	iVar23 = datafile::_object_value_get_array(iVar6, "znatp");
	iVar24 = datafile::_object_value_get_array(iVar6, "znwid");
	iVar25 = datafile::_object_value_get_array(iVar6, "zndel");
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		StringCopy(&cVar2, "znpr", 16);
		StringIntConCat(&cVar2, iVar0, 16);
		uVar10[iVar0] = datafile::_object_value_get_array(iVar6, &cVar2);
		StringCopy(&cVar2, "znepr", 16);
		StringIntConCat(&cVar2, iVar0, 16);
		uVar15[iVar0] = datafile::_object_value_get_array(iVar6, &cVar2);
		iVar0++;
	}
	if (Global_1617379.f_70673 > 10)
	{
		Global_1617379.f_70673 = 10;
	}
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_70673 - 1))
	{
		Global_1617379.f_70696[iVar0 /*26*/][0 /*3*/] = { datafile::_array_value_get_vector3(iVar7, iVar0) };
		Global_1617379.f_70696[iVar0 /*26*/][1 /*3*/] = { datafile::_array_value_get_vector3(iVar8, iVar0) };
		Global_1617379.f_70696[iVar0 /*26*/].f_9 = datafile::_array_value_get_integer(iVar9, iVar0);
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			if (datafile::_array_value_get_type(uVar10[iVar1], iVar0) == 2)
			{
				Global_1617379.f_70696[iVar0 /*26*/].f_10[iVar1] = datafile::_array_value_get_integer(uVar10[iVar1], iVar0);
			}
			else
			{
				Global_1617379.f_70696[iVar0 /*26*/].f_10[iVar1] = -1;
			}
			if (datafile::_array_value_get_type(uVar15[iVar1], iVar0) == 2)
			{
				Global_1617379.f_70696[iVar0 /*26*/].f_15[iVar1] = datafile::_array_value_get_integer(uVar15[iVar1], iVar0);
			}
			else
			{
				Global_1617379.f_70696[iVar0 /*26*/].f_15[iVar1] = 99999;
			}
			iVar1++;
		}
		if (datafile::_array_value_get_type(iVar20, iVar0) == 2)
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_20 = datafile::_array_value_get_integer(iVar20, iVar0);
		}
		else
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_20 = 0;
		}
		if (datafile::_array_value_get_type(iVar21, iVar0) == 3)
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_22 = datafile::_array_value_get_float(iVar21, iVar0);
		}
		else
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_22 = 0f;
		}
		if (datafile::_array_value_get_type(iVar22, iVar0) == 3)
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_23 = datafile::_array_value_get_float(iVar22, iVar0);
		}
		else
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_23 = 0f;
		}
		if (datafile::_array_value_get_type(iVar23, iVar0) == 2)
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_8 = datafile::_array_value_get_integer(iVar23, iVar0);
		}
		else
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_8 = 0;
		}
		if (datafile::_array_value_get_type(iVar24, iVar0) == 3)
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_7 = datafile::_array_value_get_float(iVar24, iVar0);
		}
		else
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_7 = 0f;
		}
		if (datafile::_array_value_get_type(iVar25, iVar0) == 2)
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_21 = datafile::_array_value_get_integer(iVar25, iVar0);
		}
		else
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_21 = 0;
		}
		iVar0++;
	}
}

void func_140(int iParam0)//Position - 0xCD52
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	iVar1 = datafile::_object_value_get_object(iParam0, "usj");
	Global_1617379.f_69939 = datafile::_object_value_get_integer(iVar1, "no");
	iVar2 = datafile::_object_value_get_array(iVar1, "vto");
	iVar3 = datafile::_object_value_get_array(iVar1, "vld");
	iVar4 = datafile::_object_value_get_array(iVar1, "vcm");
	if (Global_1617379.f_69939 > 10)
	{
		Global_1617379.f_69939 = 10;
	}
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_69939 - 1))
	{
		Global_1617379.f_69940[iVar0 /*9*/] = { datafile::_array_value_get_vector3(iVar2, iVar0) };
		Global_1617379.f_69940[iVar0 /*9*/].f_3 = { datafile::_array_value_get_vector3(iVar3, iVar0) };
		Global_1617379.f_69940[iVar0 /*9*/].f_6 = { datafile::_array_value_get_vector3(iVar4, iVar0) };
		iVar0++;
	}
}

void func_141(int iParam0)//Position - 0xCE1F
{
	int iVar0;
	int iVar1;
	char[] cVar2[8];
	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;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	var uVar30[4];
	int iVar35;
	
	if (datafile::_object_value_get_object(iParam0, "ddtrig") == 0)
	{
		return;
	}
	iVar4 = datafile::_object_value_get_object(iParam0, "ddtrig");
	Global_1617379.f_74348 = datafile::_object_value_get_integer(iVar4, "no");
	iVar5 = datafile::_object_value_get_array(iVar4, "id");
	iVar6 = datafile::_object_value_get_array(iVar4, "fid");
	iVar7 = datafile::_object_value_get_array(iVar4, "rule");
	iVar8 = datafile::_object_value_get_array(iVar4, "team");
	iVar9 = datafile::_object_value_get_array(iVar4, "pos");
	iVar10 = datafile::_object_value_get_array(iVar4, "rad");
	iVar11 = datafile::_object_value_get_array(iVar4, "tdel");
	iVar12 = datafile::_object_value_get_array(iVar4, "tpnt");
	iVar13 = datafile::_object_value_get_array(iVar4, "crkls");
	iVar14 = datafile::_object_value_get_array(iVar4, "spveh");
	iVar15 = datafile::_object_value_get_array(iVar4, "skprs");
	iVar16 = datafile::_object_value_get_array(iVar4, "fcsped");
	iVar17 = datafile::_object_value_get_array(iVar4, "prty");
	iVar18 = datafile::_object_value_get_array(iVar4, "dbs");
	iVar19 = datafile::_object_value_get_array(iVar4, "dbs2");
	iVar20 = datafile::_object_value_get_array(iVar4, "drole");
	iVar21 = datafile::_object_value_get_array(iVar4, "dspk");
	iVar22 = datafile::_object_value_get_array(iVar4, "dspk2");
	iVar23 = datafile::_object_value_get_array(iVar4, "panim");
	iVar24 = datafile::_object_value_get_array(iVar4, "blok");
	iVar25 = datafile::_object_value_get_array(iVar4, "root");
	iVar26 = datafile::_object_value_get_array(iVar4, "mgveh");
	iVar27 = datafile::_object_value_get_array(iVar4, "vehtg");
	iVar28 = datafile::_object_value_get_array(iVar4, "prerq");
	iVar29 = datafile::_object_value_get_array(iVar4, "vehdm");
	iVar35 = datafile::_object_value_get_array(iVar4, "dwsg");
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		StringCopy(&cVar2, "trl", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar30[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		iVar0++;
	}
	if (Global_1617379.f_74348 > 69)
	{
		Global_1617379.f_74348 = 69;
	}
	if (datafile::_array_value_get_type(iVar8, 0) == 2)
	{
		iVar0 = 0;
		while (iVar0 <= (Global_1617379.f_74348 - 1))
		{
			if (datafile::_array_value_get_type(iVar8, iVar0) == 2)
			{
				func_142(&(Global_1617379.f_71018[iVar0 /*44*/]), iVar0);
				if (iVar6 != 0 && datafile::_array_value_get_type(iVar6, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_1 = datafile::_array_value_get_integer(iVar6, iVar0);
				}
				if (iVar5 != 0)
				{
					Global_1617379.f_71018[iVar0 /*44*/] = datafile::_array_value_get_integer(iVar5, iVar0);
				}
				if (iVar7 != 0)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_2 = datafile::_array_value_get_integer(iVar7, iVar0);
				}
				if (iVar8 != 0)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_3 = datafile::_array_value_get_integer(iVar8, iVar0);
				}
				if (iVar9 != 0)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_6 = { datafile::_array_value_get_vector3(iVar9, iVar0) };
				}
				if (iVar10 != 0)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_9 = datafile::_array_value_get_float(iVar10, iVar0);
				}
				if (iVar11 != 0)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_5 = datafile::_array_value_get_integer(iVar11, iVar0);
				}
				if (iVar12 != 0)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_12 = datafile::_array_value_get_integer(iVar12, iVar0);
				}
				if (iVar17 != 0)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_13 = datafile::_array_value_get_integer(iVar17, iVar0);
				}
				if (iVar18 != 0)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_10 = datafile::_array_value_get_integer(iVar18, iVar0);
				}
				if (iVar19 != 0)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_11 = datafile::_array_value_get_integer(iVar19, iVar0);
				}
				if (iVar20 != 0 && datafile::_array_value_get_type(iVar20, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_4 = datafile::_array_value_get_integer(iVar20, iVar0);
				}
				else
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_4 = 0;
				}
				if (iVar26 != 0 && datafile::_array_value_get_type(iVar26, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_17 = datafile::_array_value_get_integer(iVar26, iVar0);
				}
				if (iVar13 != 0 && datafile::_array_value_get_type(iVar13, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_21 = datafile::_array_value_get_integer(iVar13, iVar0);
				}
				if (iVar14 != 0 && datafile::_array_value_get_type(iVar14, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_28 = datafile::_array_value_get_integer(iVar14, iVar0);
				}
				if (iVar15 != 0 && datafile::_array_value_get_type(iVar15, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_29 = datafile::_array_value_get_integer(iVar15, iVar0);
				}
				if (iVar16 != 0 && datafile::_array_value_get_type(iVar16, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_22 = datafile::_array_value_get_integer(iVar16, iVar0);
				}
				if (iVar21 != 0 && datafile::_array_value_get_type(iVar21, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_14 = datafile::_array_value_get_integer(iVar21, iVar0);
				}
				if (iVar22 != 0 && datafile::_array_value_get_type(iVar22, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_15 = datafile::_array_value_get_integer(iVar22, iVar0);
				}
				if (iVar23 != 0 && datafile::_array_value_get_type(iVar23, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_16 = datafile::_array_value_get_integer(iVar23, iVar0);
				}
				if (iVar27 != 0 && datafile::_array_value_get_type(iVar27, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_18 = datafile::_array_value_get_integer(iVar27, iVar0);
				}
				if (iVar28 != 0 && datafile::_array_value_get_type(iVar28, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_19 = datafile::_array_value_get_integer(iVar28, iVar0);
				}
				if (iVar29 != 0 && datafile::_array_value_get_type(iVar29, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_20 = datafile::_array_value_get_integer(iVar29, iVar0);
				}
				iVar1 = 0;
				while (iVar1 <= 3)
				{
					if (uVar30[iVar1] != 0 && datafile::_array_value_get_type(uVar30[iVar1], iVar0) == 2)
					{
						Global_1617379.f_71018[iVar0 /*44*/].f_23[iVar1] = datafile::_array_value_get_integer(uVar30[iVar1], iVar0);
					}
					iVar1++;
				}
				if (iVar35 != 0 && datafile::_array_value_get_type(iVar35, iVar0) == 2)
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_42 = datafile::_array_value_get_integer(iVar35, iVar0);
				}
				else
				{
					Global_1617379.f_71018[iVar0 /*44*/].f_42 = 0;
				}
				if (iVar24 != 0)
				{
					StringCopy(&(Global_1617379.f_71018[iVar0 /*44*/].f_30), datafile::_array_value_get_string(iVar24, iVar0), 24);
				}
				if (iVar25 != 0)
				{
					StringCopy(&(Global_1617379.f_71018[iVar0 /*44*/].f_36), datafile::_array_value_get_string(iVar25, iVar0), 24);
				}
			}
			iVar0++;
		}
	}
	else
	{
		iVar0 = 0;
		while (iVar0 <= (Global_1617379.f_74348 - 1))
		{
			Global_1617379.f_71018[iVar0 /*44*/] = 0;
			Global_1617379.f_71018[iVar0 /*44*/].f_2 = -1;
			Global_1617379.f_71018[iVar0 /*44*/].f_3 = -1;
			Global_1617379.f_71018[iVar0 /*44*/].f_6 = { 0f, 0f, 0f };
			Global_1617379.f_71018[iVar0 /*44*/].f_9 = 3f;
			Global_1617379.f_71018[iVar0 /*44*/].f_5 = 0;
			Global_1617379.f_71018[iVar0 /*44*/].f_12 = -1;
			Global_1617379.f_71018[iVar0 /*44*/].f_21 = 0;
			Global_1617379.f_71018[iVar0 /*44*/].f_28 = -1;
			Global_1617379.f_71018[iVar0 /*44*/].f_29 = 0;
			Global_1617379.f_71018[iVar0 /*44*/].f_13 = 0;
			Global_1617379.f_71018[iVar0 /*44*/].f_10 = 0;
			Global_1617379.f_71018[iVar0 /*44*/].f_11 = 0;
			Global_1617379.f_71018[iVar0 /*44*/].f_4 = 0;
			Global_1617379.f_71018[iVar0 /*44*/].f_14 = -1;
			Global_1617379.f_71018[iVar0 /*44*/].f_15 = -1;
			Global_1617379.f_71018[iVar0 /*44*/].f_16 = 0;
			StringCopy(&(Global_1617379.f_71018[iVar0 /*44*/].f_30), "", 24);
			StringCopy(&(Global_1617379.f_71018[iVar0 /*44*/].f_36), "", 24);
			Global_1617379.f_71018[iVar0 /*44*/].f_17 = -1;
			Global_1617379.f_71018[iVar0 /*44*/].f_18 = -1;
			Global_1617379.f_71018[iVar0 /*44*/].f_19 = -1;
			Global_1617379.f_71018[iVar0 /*44*/].f_20 = 0;
			Global_1617379.f_71018[iVar0 /*44*/].f_42 = 0;
			iVar0++;
		}
	}
	if (datafile::_object_value_get_type(iParam0, "dtmp") == 2)
	{
		Global_1617379.f_74344[0] = datafile::_object_value_get_integer(iParam0, "dtmp");
	}
	else
	{
		Global_1617379.f_74344[0] = 0;
	}
	if (datafile::_object_value_get_type(iParam0, "dtmp2") == 2)
	{
		Global_1617379.f_74344[1] = datafile::_object_value_get_integer(iParam0, "dtmp2");
	}
	else
	{
		Global_1617379.f_74344[1] = 0;
	}
	if (datafile::_object_value_get_type(iParam0, "dtmp3") == 2)
	{
		Global_1617379.f_74344[2] = datafile::_object_value_get_integer(iParam0, "dtmp3");
	}
	else
	{
		Global_1617379.f_74344[2] = 0;
	}
}

void func_142(var uParam0, int iParam1)//Position - 0xD6B6
{
	int iVar0;
	
	*uParam0 = -1;
	uParam0->f_1 = -1;
	uParam0->f_2 = -1;
	uParam0->f_3 = -1;
	uParam0->f_4 = 0;
	uParam0->f_5 = 0;
	uParam0->f_6 = { 0f, 0f, 0f };
	uParam0->f_9 = 3f;
	uParam0->f_10 = 0;
	uParam0->f_11 = 0;
	uParam0->f_12 = -1;
	uParam0->f_13 = 0;
	uParam0->f_14 = -1;
	uParam0->f_15 = -1;
	uParam0->f_16 = 0;
	uParam0->f_17 = -1;
	uParam0->f_19 = -1;
	uParam0->f_18 = -1;
	uParam0->f_20 = 0;
	uParam0->f_21 = 0;
	uParam0->f_28 = -1;
	uParam0->f_29 = 0;
	uParam0->f_22 = -1;
	StringCopy(&(uParam0->f_30), "", 24);
	StringCopy(&(uParam0->f_36), "", 24);
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		uParam0->f_23[iVar0] = -1;
		iVar0++;
	}
	uParam0->f_42 = 0;
	if (iParam1 != -1)
	{
		gameplay::clear_bit(&(Global_1617379.f_74344[(iParam1 / 32)]), (iParam1 % 32));
	}
	if (ui::does_blip_exist(uParam0->f_43))
	{
		ui::remove_blip(&(uParam0->f_43));
	}
}

void func_143(int iParam0)//Position - 0xD798
{
	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;
	var uVar16[3];
	int iVar20;
	char[] cVar21[8];
	
	iVar2 = datafile::_object_value_get_object(iParam0, "race");
	Global_1617379.f_33653 = datafile::_object_value_get_integer(iVar2, "chp");
	iVar3 = (Global_1617379.f_33653 - 1);
	Global_1617379.f_33654 = datafile::_object_value_get_integer(iVar2, "lap");
	Global_1617379.f_33655 = datafile::_object_value_get_integer(iVar2, "type");
	if (func_22() == 2)
	{
		if (Global_1617379.f_33655 == 6)
		{
			Global_1617379.f_33655 = 0;
		}
		else if (Global_1617379.f_33655 == 7)
		{
			Global_1617379.f_33655 = 1;
		}
	}
	Global_1617379.f_33656 = datafile::_object_value_get_integer(iVar2, "gtar");
	Global_1617379.f_34241 = datafile::_object_value_get_float(iVar2, "head");
	Global_1617379.f_34242 = datafile::_object_value_get_float(iVar2, "lrgs");
	Global_1617379.f_34243 = datafile::_object_value_get_float(iVar2, "udgs");
	Global_1617379.f_34244 = datafile::_object_value_get_float(iVar2, "gw");
	Global_1617379.f_34245 = datafile::_object_value_get_float(iVar2, "gl");
	Global_1617379.f_34246 = datafile::_object_value_get_integer(iVar2, "lanes");
	Global_1617379.f_29651 = { datafile::_object_value_get_vector3(iVar2, "grid") };
	Global_1617379.f_33658 = datafile::_object_value_get_integer(iVar2, "icv");
	Global_1617379.f_33660 = datafile::_object_value_get_integer(iVar2, "tri1");
	Global_1617379.f_33661 = datafile::_object_value_get_integer(iVar2, "tri2");
	Global_1617379.f_33662 = datafile::_object_value_get_integer(iVar2, "clbs");
	Global_1617379.f_34240 = datafile::_object_value_get_integer(iVar2, "ptp");
	Global_1617379.f_34238 = datafile::_object_value_get_integer(iVar2, "strtg");
	Global_1617379.f_34239 = datafile::_object_value_get_integer(iVar2, "rcdam");
	Global_1617379.f_31274 = datafile::_object_value_get_float(iVar2, "rdis");
	Global_1617379.f_34236 = datafile::_object_value_get_integer(iVar2, "gridty");
	iVar4 = datafile::_object_value_get_array(iVar2, "chh");
	iVar5 = datafile::_object_value_get_array(iVar2, "chs");
	iVar6 = datafile::_object_value_get_array(iVar2, "chl");
	iVar7 = datafile::_object_value_get_array(iVar2, "rsp");
	iVar8 = datafile::_object_value_get_array(iVar2, "sndchk");
	iVar9 = datafile::_object_value_get_array(iVar2, "sndrsp");
	iVar10 = datafile::_object_value_get_array(iVar2, "rndchk");
	iVar11 = datafile::_object_value_get_array(iVar2, "rndchks");
	if (Global_1617379.f_33655 == 8)
	{
		Global_1617379.f_33653 = 0;
		iVar0 = 0;
		while (iVar0 <= 69)
		{
			if (!func_43(datafile::_array_value_get_vector3(iVar6, iVar0)))
			{
				Global_1617379.f_33653++;
			}
			iVar0++;
		}
		iVar3 = Global_1617379.f_33653;
	}
	iVar12 = 0;
	iVar0 = 0;
	while (iVar0 <= iVar3)
	{
		if (iVar0 < 70)
		{
			if (Global_1617379.f_33655 == 8)
			{
				iVar12 = func_144(iVar6, iVar12);
			}
			else
			{
				iVar12 = iVar0;
			}
			Global_1617379.f_30355[iVar0 /*3*/] = { datafile::_array_value_get_vector3(iVar6, iVar12) };
			Global_1617379.f_30990[iVar0] = datafile::_array_value_get_float(iVar4, iVar12);
			if (datafile::_array_value_get_type(iVar5, iVar12) == 3)
			{
				Global_1617379.f_31203[iVar0] = datafile::_array_value_get_float(iVar5, iVar12);
			}
			else
			{
				Global_1617379.f_31203[iVar0] = 1f;
			}
			if (Global_1617379.f_31203[iVar0] < 1f)
			{
				Global_1617379.f_31203[iVar0] = 1f;
			}
			Global_1617379.f_30777[iVar0] = datafile::_array_value_get_boolean(iVar7, iVar12);
			Global_1617379.f_30848[iVar0] = datafile::_array_value_get_boolean(iVar10, iVar12);
			Global_1617379.f_30566[iVar0 /*3*/] = { datafile::_array_value_get_vector3(iVar8, iVar12) };
			Global_1617379.f_31061[iVar0] = datafile::_array_value_get_float(iVar9, iVar12);
			Global_1617379.f_30919[iVar0] = datafile::_array_value_get_boolean(iVar11, iVar12);
			iVar12++;
		}
		iVar0++;
	}
	iVar13 = datafile::_object_value_get_array(iVar2, "vta");
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_20 - 1))
	{
		if (iVar0 < 32)
		{
			iVar1 = datafile::_array_value_get_integer(iVar13, iVar0);
			Global_1617379.f_34249[iVar0] = iVar1;
		}
		iVar0++;
	}
	iVar14 = datafile::_object_value_get_array(iVar2, "aveh");
	iVar15 = datafile::_object_value_get_array(iVar2, "adlc");
	iVar0 = 0;
	while (iVar0 <= 14)
	{
		iVar1 = datafile::_array_value_get_integer(iVar14, iVar0);
		Global_1617379.f_33663[iVar0] = iVar1;
		Global_1617379.f_33679[iVar0] = 0;
		Global_1617379.f_33679[iVar0] = datafile::_array_value_get_integer(iVar15, iVar0);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 2)
	{
		StringCopy(&cVar21, "vspn", 8);
		StringIntConCat(&cVar21, iVar0, 8);
		uVar16[iVar0] = datafile::_object_value_get_array(iVar2, &cVar21);
		iVar20 = 0;
		while (iVar20 <= iVar3)
		{
			Global_1617379.f_29654[iVar20 /*10*/][iVar0 /*3*/] = { datafile::_array_value_get_vector3(uVar16[iVar0], iVar20) };
			iVar20++;
		}
		iVar0++;
	}
}

int func_144(int iParam0, int iParam1)//Position - 0xDC67
{
	int iVar0;
	
	iVar0 = iParam1;
	while (iVar0 <= 69)
	{
		if (!func_43(datafile::_array_value_get_vector3(iParam0, iVar0)))
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

void func_145(int iParam0)//Position - 0xDC99
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (datafile::_object_value_get_object(iParam0, "dhprop") == 0)
	{
		return;
	}
	iVar1 = datafile::_object_value_get_object(iParam0, "dhprop");
	Global_1617379.f_84039 = datafile::_object_value_get_integer(iVar1, "no");
	iVar2 = datafile::_object_value_get_array(iVar1, "pos");
	iVar3 = datafile::_object_value_get_array(iVar1, "mn");
	if (Global_1617379.f_84039 > 25)
	{
		Global_1617379.f_84039 = 25;
	}
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_84039 - 1))
	{
		if (datafile::_array_value_get_type(iVar2, iVar0) == 5)
		{
			Global_1617379.f_83938[iVar0 /*4*/] = { datafile::_array_value_get_vector3(iVar2, iVar0) };
			Global_1617379.f_83938[iVar0 /*4*/].f_3 = datafile::_array_value_get_integer(iVar3, iVar0);
		}
		iVar0++;
	}
}

void func_146(int iParam0)//Position - 0xDD5C
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	
	if (datafile::_object_value_get_object(iParam0, "ddblip") == 0)
	{
		return;
	}
	iVar1 = datafile::_object_value_get_object(iParam0, "ddblip");
	Global_1617379.f_83937 = datafile::_object_value_get_integer(iVar1, "no");
	iVar2 = datafile::_object_value_get_array(iVar1, "pos");
	iVar3 = datafile::_object_value_get_array(iVar1, "rule");
	iVar4 = datafile::_object_value_get_array(iVar1, "team");
	iVar5 = datafile::_object_value_get_array(iVar1, "type");
	iVar6 = datafile::_object_value_get_array(iVar1, "size");
	iVar7 = datafile::_object_value_get_array(iVar1, "veh");
	iVar8 = datafile::_object_value_get_array(iVar1, "clr");
	iVar9 = datafile::_object_value_get_array(iVar1, "bits");
	if (Global_1617379.f_83937 > 10)
	{
		Global_1617379.f_83937 = 10;
	}
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_83937 - 1))
	{
		if (datafile::_array_value_get_type(iVar2, iVar0) == 5)
		{
			Global_1617379.f_83836[iVar0 /*10*/] = { datafile::_array_value_get_vector3(iVar2, iVar0) };
			Global_1617379.f_83836[iVar0 /*10*/].f_3 = datafile::_array_value_get_integer(iVar3, iVar0);
			Global_1617379.f_83836[iVar0 /*10*/].f_4 = datafile::_array_value_get_integer(iVar4, iVar0);
			Global_1617379.f_83836[iVar0 /*10*/].f_8 = datafile::_array_value_get_integer(iVar8, iVar0);
			Global_1617379.f_83836[iVar0 /*10*/].f_9 = datafile::_array_value_get_integer(iVar9, iVar0);
		}
		if (datafile::_array_value_get_type(iVar5, iVar0) == 2)
		{
			Global_1617379.f_83836[iVar0 /*10*/].f_6 = datafile::_array_value_get_integer(iVar5, iVar0);
		}
		else
		{
			Global_1617379.f_83836[iVar0 /*10*/].f_6 = 0;
		}
		if (datafile::_array_value_get_type(iVar6, iVar0) == 2)
		{
			Global_1617379.f_83836[iVar0 /*10*/].f_5 = datafile::_array_value_get_integer(iVar6, iVar0);
		}
		else
		{
			Global_1617379.f_83836[iVar0 /*10*/].f_5 = 4;
		}
		if (datafile::_array_value_get_type(iVar7, iVar0) == 2)
		{
			Global_1617379.f_83836[iVar0 /*10*/].f_7 = datafile::_array_value_get_integer(iVar7, iVar0);
		}
		else
		{
			Global_1617379.f_83836[iVar0 /*10*/].f_7 = -1;
		}
		iVar0++;
	}
}

void func_147(int iParam0)//Position - 0xDF4E
{
	int iVar0;
	int iVar1;
	int iVar2;
	char[] cVar3[8];
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	var uVar14[5];
	var uVar20[5];
	var uVar26[5];
	var uVar32[5];
	var uVar38[5];
	var uVar44[5];
	var uVar50[5];
	var uVar56[5];
	int iVar62;
	var uVar63[5];
	var uVar69[5];
	var uVar75[5];
	
	if (datafile::_object_value_get_object(iParam0, "mocap") == 0)
	{
		return;
	}
	iVar5 = datafile::_object_value_get_object(iParam0, "mocap");
	iVar6 = datafile::_object_value_get_array(iVar5, "name");
	iVar7 = datafile::_object_value_get_array(iVar5, "bits");
	iVar8 = datafile::_object_value_get_array(iVar5, "bits2");
	iVar9 = datafile::_object_value_get_array(iVar5, "timer");
	iVar10 = datafile::_object_value_get_array(iVar5, "rng");
	iVar11 = datafile::_object_value_get_array(iVar5, "ccp");
	iVar12 = datafile::_object_value_get_array(iVar5, "ccr");
	iVar13 = datafile::_object_value_get_array(iVar5, "ccs");
	iVar62 = datafile::_object_value_get_array(iVar5, "pcvid");
	iVar0 = 0;
	while (iVar0 <= 4)
	{
		if (datafile::_array_value_get_type(iVar6, iVar0) == 4)
		{
			StringCopy(&(Global_1617379.f_80856[iVar0 /*434*/]), datafile::_array_value_get_string(iVar6, iVar0), 64);
		}
		else
		{
			StringCopy(&(Global_1617379.f_80856[iVar0 /*434*/]), "", 64);
		}
		if (datafile::_array_value_get_type(iVar7, iVar0) == 2)
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_16 = datafile::_array_value_get_integer(iVar7, iVar0);
		}
		else
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_16 = 0;
		}
		if (datafile::_array_value_get_type(iVar8, iVar0) == 2)
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_17 = datafile::_array_value_get_integer(iVar8, iVar0);
		}
		else
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_17 = 0;
		}
		if (datafile::_array_value_get_type(iVar62, iVar0) == 2)
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_424 = datafile::_array_value_get_integer(iVar62, iVar0);
		}
		else
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_424 = -1;
		}
		if (datafile::_array_value_get_type(iVar9, iVar0) == 2)
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_61 = datafile::_array_value_get_integer(iVar9, iVar0);
		}
		else
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_61 = 0;
		}
		if (datafile::_array_value_get_type(iVar10, iVar0) == 2)
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_62 = datafile::_array_value_get_integer(iVar10, iVar0);
		}
		else
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_62 = 0;
		}
		if (datafile::_array_value_get_type(iVar11, iVar0) == 5)
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_54 = { datafile::_array_value_get_vector3(iVar11, iVar0) };
		}
		else
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_54 = { 0f, 0f, 0f };
		}
		if (datafile::_array_value_get_type(iVar12, iVar0) == 3)
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_60 = datafile::_array_value_get_float(iVar12, iVar0);
		}
		else
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_60 = 0f;
		}
		if (datafile::_array_value_get_type(iVar13, iVar0) == 5)
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_57 = { datafile::_array_value_get_vector3(iVar13, iVar0) };
		}
		else
		{
			Global_1617379.f_80856[iVar0 /*434*/].f_57 = { 0f, 0f, 0f };
		}
		StringCopy(&cVar3, "pstr", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar3, iVar0, 8);
		}
		uVar14[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		StringCopy(&cVar3, "pend", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar3, iVar0, 8);
		}
		uVar20[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		StringCopy(&cVar3, "strh", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar3, iVar0, 8);
		}
		uVar26[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		StringCopy(&cVar3, "endh", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar3, iVar0, 8);
		}
		uVar32[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		StringCopy(&cVar3, "mcei", 8);
		StringIntConCat(&cVar3, iVar0, 8);
		uVar38[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		StringCopy(&cVar3, "mcet", 8);
		StringIntConCat(&cVar3, iVar0, 8);
		uVar44[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		StringCopy(&cVar3, "mcebs", 8);
		StringIntConCat(&cVar3, iVar0, 8);
		uVar50[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		StringCopy(&cVar3, "mceh", 8);
		StringIntConCat(&cVar3, iVar0, 8);
		uVar56[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		StringCopy(&cVar3, "pvpls", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar3, iVar0, 8);
		}
		uVar63[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		StringCopy(&cVar3, "pvpds", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar3, iVar0, 8);
		}
		uVar69[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		StringCopy(&cVar3, "pvpdi", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar3, iVar0, 8);
		}
		uVar75[iVar0] = datafile::_object_value_get_array(iVar5, &cVar3);
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			if (datafile::_array_value_get_type(uVar14[iVar0], iVar1) == 5)
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_18[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar14[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_18[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar20[iVar0], iVar1) == 5)
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_31[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar20[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_31[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar26[iVar0], iVar1) == 3)
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_44[iVar1] = datafile::_array_value_get_float(uVar26[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_44[iVar1] = 0f;
			}
			if (datafile::_array_value_get_type(uVar32[iVar0], iVar1) == 3)
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_49[iVar1] = datafile::_array_value_get_float(uVar32[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_49[iVar1] = 0f;
			}
			iVar1++;
		}
		iVar2 = 0;
		while (iVar2 <= 3)
		{
			if (datafile::_array_value_get_type(uVar63[iVar0], iVar2) == 2)
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_425[iVar2] = datafile::_array_value_get_integer(uVar63[iVar0], iVar2);
			}
			else
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_425[iVar2] = 0;
			}
			iVar2++;
		}
		iVar2 = 0;
		while (iVar2 <= 0)
		{
			if (datafile::_array_value_get_type(uVar69[iVar0], iVar2) == 2)
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_430[iVar2] = datafile::_array_value_get_integer(uVar69[iVar0], iVar2);
			}
			else
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_430[iVar2] = 0;
			}
			if (datafile::_array_value_get_type(uVar75[iVar0], iVar2) == 2)
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_432[iVar2] = datafile::_array_value_get_integer(uVar75[iVar0], iVar2);
			}
			else
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_432[iVar2] = 0;
			}
			iVar2++;
		}
		iVar1 = 0;
		while (iVar1 <= 29)
		{
			if (datafile::_array_value_get_type(uVar38[iVar0], iVar1) == 2)
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_63[iVar1 /*12*/].f_1 = datafile::_array_value_get_integer(uVar38[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_63[iVar1 /*12*/].f_1 = -1;
			}
			if (datafile::_array_value_get_type(uVar44[iVar0], iVar1) == 2)
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_63[iVar1 /*12*/] = datafile::_array_value_get_integer(uVar44[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_63[iVar1 /*12*/] = -1;
			}
			if (datafile::_array_value_get_type(uVar50[iVar0], iVar1) == 2)
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_63[iVar1 /*12*/].f_2 = datafile::_array_value_get_integer(uVar44[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_80856[iVar0 /*434*/].f_63[iVar1 /*12*/].f_2 = 0;
			}
			if (datafile::_array_value_get_type(uVar56[iVar0], iVar1) == 4)
			{
				StringCopy(&(Global_1617379.f_80856[iVar0 /*434*/].f_63[iVar1 /*12*/].f_4), datafile::_array_value_get_string(uVar56[iVar0], iVar1), 32);
			}
			else
			{
				StringCopy(&(Global_1617379.f_80856[iVar0 /*434*/].f_63[iVar1 /*12*/].f_4), "", 32);
			}
			iVar1++;
		}
		iVar0++;
	}
}

void func_148(int iParam0)//Position - 0xE713
{
	int iVar0;
	int iVar1;
	char[] cVar2[8];
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	var uVar11[5];
	var uVar17[5];
	var uVar23[5];
	var uVar29[5];
	var uVar35[5];
	var uVar41[5];
	var uVar47[5];
	var uVar53[5];
	var uVar59[5];
	var uVar65[5];
	var uVar71[5];
	var uVar77[5];
	var uVar83[5];
	var uVar89[5];
	var uVar95[5];
	var uVar101[5];
	var uVar107[5];
	var uVar113[5];
	var uVar119[5];
	var uVar125[5];
	var uVar131[5];
	var uVar137[5];
	var uVar143[5];
	var uVar149[5];
	var uVar155[5];
	int iVar161;
	int iVar162;
	int iVar163;
	int iVar164;
	int iVar165;
	int iVar166;
	int iVar167;
	
	if (datafile::_object_value_get_object(iParam0, "cuts") == 0)
	{
		return;
	}
	iVar4 = datafile::_object_value_get_object(iParam0, "cuts");
	iVar5 = datafile::_object_value_get_array(iVar4, "name");
	iVar6 = datafile::_object_value_get_array(iVar4, "bits");
	iVar7 = datafile::_object_value_get_array(iVar4, "shot");
	iVar8 = datafile::_object_value_get_array(iVar4, "anim");
	iVar9 = datafile::_object_value_get_array(iVar4, "midp");
	iVar10 = datafile::_object_value_get_array(iVar4, "rng");
	iVar161 = datafile::_object_value_get_array(iVar4, "train");
	iVar162 = datafile::_object_value_get_array(iVar4, "trahl");
	iVar163 = datafile::_object_value_get_array(iVar4, "traou");
	iVar164 = datafile::_object_value_get_array(iVar4, "trapo");
	iVar165 = datafile::_object_value_get_array(iVar4, "ccp");
	iVar166 = datafile::_object_value_get_array(iVar4, "ccr");
	iVar167 = datafile::_object_value_get_array(iVar4, "ccs");
	iVar0 = 0;
	while (iVar0 <= 4)
	{
		if (datafile::_array_value_get_type(iVar5, iVar0) == 4)
		{
			StringCopy(&(Global_1617379.f_74510[iVar0 /*1269*/]), datafile::_array_value_get_string(iVar5, iVar0), 16);
		}
		else
		{
			StringCopy(&(Global_1617379.f_74510[iVar0 /*1269*/]), "", 16);
		}
		if (datafile::_array_value_get_type(iVar6, iVar0) == 2)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_4 = datafile::_array_value_get_integer(iVar6, iVar0);
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_4 = 0;
		}
		if (datafile::_array_value_get_type(iVar6, iVar0) == 2)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_5 = datafile::_array_value_get_integer(iVar6, iVar0);
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_5 = 0;
		}
		if (datafile::_array_value_get_type(iVar7, iVar0) == 2)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_43 = datafile::_array_value_get_integer(iVar7, iVar0);
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_43 = 0;
		}
		if (datafile::_array_value_get_type(iVar8, iVar0) == 2)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_42 = datafile::_array_value_get_integer(iVar8, iVar0);
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_42 = 0;
		}
		if (datafile::_array_value_get_type(iVar9, iVar0) == 2)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_44 = datafile::_array_value_get_integer(iVar9, iVar0);
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_44 = 0;
		}
		if (datafile::_array_value_get_type(iVar10, iVar0) == 2)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_735 = datafile::_array_value_get_integer(iVar10, iVar0);
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_735 = 0;
		}
		if (datafile::_array_value_get_type(iVar165, iVar0) == 5)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_728 = { datafile::_array_value_get_vector3(iVar165, iVar0) };
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_728 = { 0f, 0f, 0f };
		}
		if (datafile::_array_value_get_type(iVar166, iVar0) == 3)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_731 = datafile::_array_value_get_float(iVar166, iVar0);
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_731 = 0f;
		}
		if (datafile::_array_value_get_type(iVar167, iVar0) == 5)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_732 = { datafile::_array_value_get_vector3(iVar167, iVar0) };
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_732 = { 0f, 0f, 0f };
		}
		if (datafile::_array_value_get_type(iVar161, iVar0) == 2)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_436 = datafile::_array_value_get_integer(iVar161, iVar0);
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_436 = 0;
		}
		if (datafile::_array_value_get_type(iVar162, iVar0) == 2)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_438 = datafile::_array_value_get_integer(iVar162, iVar0);
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_438 = 0;
		}
		if (datafile::_array_value_get_type(iVar163, iVar0) == 2)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_437 = datafile::_array_value_get_integer(iVar163, iVar0);
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_437 = 0;
		}
		if (datafile::_array_value_get_type(iVar164, iVar0) == 5)
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_439 = { datafile::_array_value_get_vector3(iVar164, iVar0) };
		}
		else
		{
			Global_1617379.f_74510[iVar0 /*1269*/].f_439 = { 0f, 0f, 0f };
		}
		StringCopy(&cVar2, "int", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar11[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "ctp", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar17[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "sps", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar23[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "eps", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar29[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "srt", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar35[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "ert", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar41[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "sfv", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar47[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "efv", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar53[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "ati", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar113[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "ato", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar119[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "atr", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar125[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "ala", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar131[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "csp", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar137[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "csr", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar143[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "cssbs", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar71[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "skt", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar77[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "skm", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar83[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "eind", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar59[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "etyp", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar65[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "pstr", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar2, iVar0, 8);
		}
		uVar95[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "pend", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar2, iVar0, 8);
		}
		uVar101[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "strh", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar2, iVar0, 8);
		}
		uVar89[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "endh", 8);
		if (iVar0 > 0)
		{
			StringIntConCat(&cVar2, iVar0, 8);
		}
		uVar107[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "camnm", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar149[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		StringCopy(&cVar2, "locnm", 8);
		StringIntConCat(&cVar2, iVar0, 8);
		uVar155[iVar0] = datafile::_object_value_get_array(iVar4, &cVar2);
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			if (datafile::_array_value_get_type(uVar95[iVar0], iVar1) == 5)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_6[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar95[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_6[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar101[iVar0], iVar1) == 5)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_19[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar101[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_19[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar89[iVar0], iVar1) == 3)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_32[iVar1] = datafile::_array_value_get_float(uVar89[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_32[iVar1] = 0f;
			}
			if (datafile::_array_value_get_type(uVar107[iVar0], iVar1) == 3)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_37[iVar1] = datafile::_array_value_get_float(uVar107[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_37[iVar1] = 0f;
			}
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 <= 19)
		{
			if (datafile::_array_value_get_type(uVar11[iVar0], iVar1) == 2)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_45[iVar1] = datafile::_array_value_get_integer(uVar11[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_45[iVar1] = 0;
			}
			if (datafile::_array_value_get_type(uVar17[iVar0], iVar1) == 2)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_66[iVar1] = datafile::_array_value_get_integer(uVar17[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_66[iVar1] = 0;
			}
			if (datafile::_array_value_get_type(uVar23[iVar0], iVar1) == 5)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_87[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar23[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_87[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar29[iVar0], iVar1) == 5)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_148[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar29[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_148[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar35[iVar0], iVar1) == 5)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_209[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar35[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_209[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar41[iVar0], iVar1) == 5)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_270[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar41[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_270[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar47[iVar0], iVar1) == 3)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_331[iVar1] = datafile::_array_value_get_float(uVar47[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_331[iVar1] = 0f;
			}
			if (datafile::_array_value_get_type(uVar53[iVar0], iVar1) == 3)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_352[iVar1] = datafile::_array_value_get_float(uVar53[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_352[iVar1] = 0f;
			}
			if (datafile::_array_value_get_type(uVar71[iVar0], iVar1) == 2)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_373[iVar1] = datafile::_array_value_get_integer(uVar71[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_373[iVar1] = 0;
			}
			if (datafile::_array_value_get_type(uVar77[iVar0], iVar1) == 2)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_394[iVar1] = datafile::_array_value_get_integer(uVar77[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_394[iVar1] = 0;
			}
			if (datafile::_array_value_get_type(uVar83[iVar0], iVar1) == 3)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_415[iVar1] = datafile::_array_value_get_float(uVar83[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_415[iVar1] = 0f;
			}
			if (datafile::_array_value_get_type(uVar113[iVar0], iVar1) == 2)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_524[iVar1] = datafile::_array_value_get_integer(uVar113[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_524[iVar1] = 0;
			}
			if (datafile::_array_value_get_type(uVar119[iVar0], iVar1) == 5)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_545[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar119[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_545[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar125[iVar0], iVar1) == 5)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_606[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar125[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_606[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar131[iVar0], iVar1) == 5)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_667[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar131[iVar0], iVar1) };
				Global_1617379.f_84083[iVar1] = Global_1617379.f_74510[iVar0 /*1269*/].f_667[iVar1 /*3*/];
				Global_1617379.f_84104[iVar1] = Global_1617379.f_74510[iVar0 /*1269*/].f_667[iVar1 /*3*/].f_1;
				Global_1617379.f_84125[iVar1] = Global_1617379.f_74510[iVar0 /*1269*/].f_667[iVar1 /*3*/].f_2;
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_667[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar137[iVar0], iVar1) == 5)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_442[iVar1 /*3*/] = { datafile::_array_value_get_vector3(uVar137[iVar0], iVar1) };
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_442[iVar1 /*3*/] = { 0f, 0f, 0f };
			}
			if (datafile::_array_value_get_type(uVar143[iVar0], iVar1) == 3)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_503[iVar1] = datafile::_array_value_get_float(uVar143[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_503[iVar1] = 0f;
			}
			if (datafile::_array_value_get_type(uVar149[iVar0], iVar1) == 4)
			{
				StringCopy(&(Global_1617379.f_74510[iVar0 /*1269*/].f_1107[iVar1 /*4*/]), datafile::_array_value_get_string(uVar149[iVar0], iVar1), 16);
			}
			else
			{
				StringCopy(&(Global_1617379.f_74510[iVar0 /*1269*/].f_1107[iVar1 /*4*/]), "", 16);
			}
			if (datafile::_array_value_get_type(uVar155[iVar0], iVar1) == 4)
			{
				StringCopy(&(Global_1617379.f_74510[iVar0 /*1269*/].f_1188[iVar1 /*4*/]), datafile::_array_value_get_string(uVar155[iVar0], iVar1), 16);
			}
			else
			{
				StringCopy(&(Global_1617379.f_74510[iVar0 /*1269*/].f_1188[iVar1 /*4*/]), "", 16);
			}
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 <= 29)
		{
			if (datafile::_array_value_get_type(uVar59[iVar0], iVar1) == 2)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_736[iVar1 /*12*/].f_1 = datafile::_array_value_get_integer(uVar59[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_736[iVar1 /*12*/].f_1 = -1;
			}
			if (datafile::_array_value_get_type(uVar65[iVar0], iVar1) == 2)
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_736[iVar1 /*12*/] = datafile::_array_value_get_integer(uVar65[iVar0], iVar1);
			}
			else
			{
				Global_1617379.f_74510[iVar0 /*1269*/].f_736[iVar1 /*12*/] = -1;
			}
			iVar1++;
		}
		iVar0++;
	}
}

void func_149(int iParam0)//Position - 0xF681
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	char cVar4[16];
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	
	if (datafile::_object_value_get_object(iParam0, "eoir") == 0 || datafile::_object_value_get_object(iParam0, "eoep") == 0)
	{
		return;
	}
	iVar8 = datafile::_object_value_get_array(iParam0, "eoid");
	iVar9 = datafile::_object_value_get_array(iParam0, "eoet");
	iVar10 = datafile::_object_value_get_object(iParam0, "eoir");
	iVar11 = datafile::_object_value_get_object(iParam0, "eoep");
	iVar0 = 0;
	while (iVar0 <= 29)
	{
		if (datafile::_array_value_get_type(iVar8, iVar0) == 2)
		{
			Global_1617379.f_66813[iVar0] = datafile::_array_value_get_integer(iVar8, iVar0);
		}
		else
		{
			Global_1617379.f_66813[iVar0] = -1;
		}
		if (datafile::_array_value_get_type(iVar9, iVar0) == 2)
		{
			Global_1617379.f_66782[iVar0] = datafile::_array_value_get_integer(iVar9, iVar0);
		}
		else
		{
			Global_1617379.f_66782[iVar0] = -1;
		}
		iVar1 = 0;
		while (iVar1 <= 9)
		{
			iVar2 = 0;
			while (iVar2 <= 3)
			{
				StringCopy(&cVar4, "eor", 16);
				StringIntConCat(&cVar4, iVar0, 16);
				StringIntConCat(&cVar4, iVar1, 16);
				StringIntConCat(&cVar4, iVar2, 16);
				if (datafile::_object_value_get_type(iVar10, &cVar4) == 2)
				{
					Global_1617379.f_66844[iVar0 /*51*/][iVar1 /*5*/][iVar2] = datafile::_object_value_get_integer(iVar10, &cVar4);
				}
				else
				{
					Global_1617379.f_66844[iVar0 /*51*/][iVar1 /*5*/][iVar2] = -1;
				}
				StringCopy(&cVar4, "eop", 16);
				StringIntConCat(&cVar4, iVar0, 16);
				StringIntConCat(&cVar4, iVar1, 16);
				StringIntConCat(&cVar4, iVar2, 16);
				if (datafile::_object_value_get_type(iVar11, &cVar4) == 2)
				{
					Global_1617379.f_68375[iVar0 /*51*/][iVar1 /*5*/][iVar2] = datafile::_object_value_get_integer(iVar11, &cVar4);
				}
				else
				{
					Global_1617379.f_66844[iVar0 /*51*/][iVar1 /*5*/][iVar2] = -1;
				}
				iVar2++;
			}
			iVar1++;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 29)
	{
		iVar12 = Global_1617379.f_66813[iVar0];
		iVar13 = Global_1617379.f_66782[iVar0];
		if (iVar12 != -1 && iVar13 != -1)
		{
			iVar3 = 0;
			while (iVar3 <= 29)
			{
				if ((iVar3 != iVar0 && Global_1617379.f_66813[iVar3] == iVar12) && Global_1617379.f_66782[iVar3] == iVar13)
				{
					Global_1617379.f_66782[iVar3] = -1;
					Global_1617379.f_66813[iVar3] = -1;
					iVar1 = 0;
					while (iVar1 <= 9)
					{
						iVar2 = 0;
						while (iVar2 <= 3)
						{
							Global_1617379.f_66844[iVar3 /*51*/][iVar1 /*5*/][iVar2] = -1;
							Global_1617379.f_68375[iVar3 /*51*/][iVar1 /*5*/][iVar2] = -1;
							iVar2++;
						}
						iVar1++;
					}
				}
				iVar3++;
			}
		}
		iVar0++;
	}
}

void func_150(int iParam0)//Position - 0xF924
{
	int iVar0;
	int iVar1;
	char[] cVar2[8];
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	var uVar8[4];
	var uVar13[4];
	var uVar18[4];
	var uVar23[4];
	var uVar28[4];
	
	iVar4 = datafile::_object_value_get_object(iParam0, "kill");
	iVar5 = datafile::_object_value_get_array(iVar4, "no");
	iVar6 = datafile::_object_value_get_array(iVar4, "mcp");
	iVar7 = datafile::_object_value_get_array(iVar4, "mcf");
	iVar1 = 0;
	while (iVar1 <= (Global_1617379.f_25 - 1))
	{
		if (iVar1 < 4)
		{
			Global_1617379.f_33642[iVar1] = datafile::_array_value_get_integer(iVar5, iVar1);
			StringCopy(&cVar2, "rul", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar8[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "pri", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar13[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "lim", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar18[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "jtop", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar23[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "jtof", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar28[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			iVar0 = 0;
			while (iVar0 <= (Global_1617379.f_33642[iVar1] - 1))
			{
				if (iVar0 < 17)
				{
					Global_1617379.f_33148[iVar0 /*29*/][iVar1] = datafile::_array_value_get_integer(uVar8[iVar1], iVar0);
					Global_1617379.f_33148[iVar0 /*29*/].f_5[iVar1] = datafile::_array_value_get_integer(uVar13[iVar1], iVar0);
					if (Global_1617379.f_33148[iVar0 /*29*/].f_5[iVar1] == -1)
					{
						Global_1617379.f_33148[iVar0 /*29*/].f_5[iVar1] = 99999;
					}
					Global_1617379.f_33148[iVar0 /*29*/].f_10[iVar1] = datafile::_array_value_get_integer(uVar18[iVar1], iVar0);
					if (datafile::_array_value_get_type(uVar23[iVar1], iVar0) == 2)
					{
						Global_1617379.f_33148[iVar0 /*29*/].f_15[iVar1] = datafile::_array_value_get_integer(uVar23[iVar1], iVar0);
					}
					else
					{
						Global_1617379.f_33148[iVar0 /*29*/].f_15[iVar1] = 0;
					}
					if (datafile::_array_value_get_type(uVar28[iVar1], iVar0) == 2)
					{
						Global_1617379.f_33148[iVar0 /*29*/].f_20[iVar1] = datafile::_array_value_get_integer(uVar28[iVar1], iVar0);
					}
					else
					{
						Global_1617379.f_33148[iVar0 /*29*/].f_20[iVar1] = 0;
					}
					if (datafile::_array_value_get_type(iVar6, iVar0) == 2)
					{
						Global_1617379.f_33148[iVar0 /*29*/].f_28 = datafile::_array_value_get_integer(iVar6, iVar0);
					}
					else
					{
						Global_1617379.f_33148[iVar0 /*29*/].f_28 = -1;
					}
					if (datafile::_array_value_get_type(iVar7, iVar0) == 2)
					{
						Global_1617379.f_33148[iVar0 /*29*/].f_27 = datafile::_array_value_get_integer(iVar7, iVar0);
					}
					else
					{
						Global_1617379.f_33148[iVar0 /*29*/].f_27 = -1;
					}
				}
				iVar0++;
			}
		}
		iVar1++;
	}
}

void func_151(int iParam0)//Position - 0xFBDD
{
	int iVar0;
	int iVar1;
	char[] cVar2[8];
	int iVar4;
	var uVar5[4];
	var uVar10[4];
	var uVar15[4];
	var uVar20[4];
	var uVar25[4];
	var uVar30[4];
	var uVar35[4];
	var uVar40[4];
	var uVar45[4];
	var uVar50[4];
	var uVar55[4];
	var uVar60[4];
	var uVar65[4];
	var uVar70[4];
	var uVar75[4];
	int iVar80;
	int iVar81;
	int iVar82;
	int iVar83;
	int iVar84;
	int iVar85;
	int iVar86;
	int iVar87;
	int iVar88;
	int iVar89;
	int iVar90;
	int iVar91;
	int iVar92;
	int iVar93;
	int iVar94;
	int iVar95;
	int iVar96;
	int iVar97;
	int iVar98;
	int iVar99;
	int iVar100;
	int iVar101;
	int iVar102;
	int iVar103;
	
	iVar4 = datafile::_object_value_get_object(iParam0, "goto");
	Global_1617379.f_33648[0] = datafile::_object_value_get_integer(iVar4, "no");
	Global_1617379.f_6 = datafile::_object_value_get_integer(iVar4, "atrig");
	iVar80 = datafile::_object_value_get_array(iVar4, "lmcp");
	iVar81 = datafile::_object_value_get_array(iVar4, "lmcf");
	iVar1 = 0;
	while (iVar1 <= (Global_1617379.f_25 - 1))
	{
		if (iVar1 < 4)
		{
			StringCopy(&cVar2, "loc", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar5[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "sz", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar10[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "rl", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar15[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "pri", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar20[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "wtm", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar25[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "gps", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar40[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "smc", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar45[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "lbs", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar50[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "rcptp", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar60[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "cmp", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar30[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "air", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar35[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "veh", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar65[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "dir", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar55[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "jtop", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar70[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			StringCopy(&cVar2, "jtof", 8);
			StringIntConCat(&cVar2, iVar1, 8);
			uVar75[iVar1] = datafile::_object_value_get_array(iVar4, &cVar2);
			iVar0 = 0;
			while (iVar0 <= (Global_1617379.f_33648[0] - 1))
			{
				Global_1617379.f_31275[iVar0 /*104*/].f_1[0 /*3*/] = { datafile::_array_value_get_vector3(uVar5[iVar1], iVar0) };
				Global_1617379.f_31275[iVar0 /*104*/].f_14[0] = datafile::_array_value_get_float(uVar10[iVar1], iVar0);
				Global_1617379.f_31275[iVar0 /*104*/].f_62[iVar1] = datafile::_array_value_get_integer(uVar15[iVar1], iVar0);
				Global_1617379.f_31275[iVar0 /*104*/].f_67[iVar1] = datafile::_array_value_get_integer(uVar20[iVar1], iVar0);
				if (Global_1617379.f_31275[iVar0 /*104*/].f_67[iVar1] == -1)
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_67[iVar1] = 99999;
				}
				Global_1617379.f_31275[iVar0 /*104*/].f_72[iVar1] = datafile::_array_value_get_integer(uVar25[iVar1], iVar0);
				Global_1617379.f_31275[iVar0 /*104*/].f_48[iVar1] = datafile::_array_value_get_float(uVar60[iVar1], iVar0);
				Global_1617379.f_31275[iVar0 /*104*/].f_77[iVar1] = datafile::_array_value_get_integer(uVar30[iVar1], iVar0);
				Global_1617379.f_31275[iVar0 /*104*/].f_36[iVar1] = datafile::_array_value_get_integer(uVar35[iVar1], iVar0);
				Global_1617379.f_31275[iVar0 /*104*/].f_53 = datafile::_array_value_get_integer(uVar50[iVar1], iVar0);
				Global_1617379.f_31275[iVar0 /*104*/].f_31[0] = datafile::_array_value_get_integer(uVar40[iVar1], iVar0);
				Global_1617379.f_31275[iVar0 /*104*/].f_41[0] = datafile::_array_value_get_integer(uVar45[iVar1], iVar0);
				Global_1617379.f_31275[iVar0 /*104*/].f_98 = datafile::_array_value_get_float(uVar55[iVar1], iVar0);
				if (datafile::_array_value_get_type(iVar80, iVar0) == 2)
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_94 = datafile::_array_value_get_integer(iVar80, iVar0);
				}
				else
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_94 = -1;
				}
				if (datafile::_array_value_get_type(iVar81, iVar0) == 2)
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_95 = datafile::_array_value_get_integer(iVar81, iVar0);
				}
				else
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_95 = -1;
				}
				if (datafile::_array_value_get_type(uVar65[iVar1], iVar0) == 2)
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_57[iVar1] = datafile::_array_value_get_integer(uVar65[iVar1], iVar0);
				}
				else
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_57[iVar1] = 0;
				}
				if (datafile::_array_value_get_type(uVar70[iVar1], iVar0) == 2)
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_82[iVar1] = datafile::_array_value_get_integer(uVar70[iVar1], iVar0);
				}
				else
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_82[iVar1] = 0;
				}
				if (datafile::_array_value_get_type(uVar75[iVar1], iVar0) == 2)
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_87[iVar1] = datafile::_array_value_get_integer(uVar75[iVar1], iVar0);
				}
				else
				{
					Global_1617379.f_31275[iVar0 /*104*/].f_87[iVar1] = 0;
				}
				iVar0++;
			}
		}
		iVar1++;
	}
	iVar82 = datafile::_object_value_get_array(iVar4, "locbc");
	iVar83 = datafile::_object_value_get_array(iVar4, "loc2rd");
	iVar84 = datafile::_object_value_get_array(iVar4, "loclbr");
	iVar85 = datafile::_object_value_get_array(iVar4, "locdir");
	iVar86 = datafile::_object_value_get_array(iVar4, "loctol");
	iVar87 = datafile::_object_value_get_array(iVar4, "lochgt");
	iVar88 = datafile::_object_value_get_array(iVar4, "locart");
	iVar89 = datafile::_object_value_get_array(iVar4, "locaa1");
	iVar90 = datafile::_object_value_get_array(iVar4, "locaa2");
	iVar91 = datafile::_object_value_get_array(iVar4, "locaaw");
	iVar92 = datafile::_object_value_get_array(iVar4, "nmpass");
	iVar93 = datafile::_object_value_get_array(iVar4, "nmfail");
	iVar94 = datafile::_object_value_get_array(iVar4, "locstd");
	iVar95 = datafile::_object_value_get_array(iVar4, "locstm");
	iVar96 = datafile::_object_value_get_array(iVar4, "lcbs2");
	iVar97 = datafile::_object_value_get_array(iVar4, "locti");
	iVar98 = datafile::_object_value_get_array(iVar4, "locgc");
	iVar99 = datafile::_object_value_get_array(iVar4, "loclto");
	iVar100 = datafile::_object_value_get_array(iVar4, "locloo");
	iVar101 = datafile::_object_value_get_array(iVar4, "loccors");
	iVar102 = datafile::_object_value_get_array(iVar4, "lochght");
	iVar103 = datafile::_object_value_get_array(iVar4, "locdpth");
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_33648[0] - 1))
	{
		if (datafile::_array_value_get_type(iVar82, iVar0) == 2)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_46 = datafile::_array_value_get_integer(iVar82, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_46 = 0;
		}
		if (datafile::_array_value_get_type(iVar83, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_20 = datafile::_array_value_get_float(iVar83, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_20 = 0f;
		}
		if (datafile::_array_value_get_type(iVar84, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_19 = datafile::_array_value_get_float(iVar84, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_19 = 1f;
		}
		if (datafile::_array_value_get_type(iVar85, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_28 = datafile::_array_value_get_float(iVar85, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_28 = 0f;
		}
		if (datafile::_array_value_get_type(iVar86, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_29 = datafile::_array_value_get_float(iVar86, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_29 = 0f;
		}
		if (datafile::_array_value_get_type(iVar87, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_30 = datafile::_array_value_get_float(iVar87, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_30 = 0f;
		}
		if (datafile::_array_value_get_type(iVar97, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_55 = datafile::_array_value_get_float(iVar97, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_55 = 0f;
		}
		if (datafile::_array_value_get_type(iVar98, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_56 = datafile::_array_value_get_float(iVar98, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_56 = 0f;
		}
		if (datafile::_array_value_get_type(iVar88, iVar0) == 2)
		{
			Global_1617379.f_31275[iVar0 /*104*/] = datafile::_array_value_get_integer(iVar88, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/] = 0;
		}
		if (datafile::_array_value_get_type(iVar92, iVar0) == 2)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_92 = datafile::_array_value_get_integer(iVar92, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_92 = -1;
		}
		if (datafile::_array_value_get_type(iVar93, iVar0) == 2)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_93 = datafile::_array_value_get_integer(iVar93, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_93 = -1;
		}
		if (datafile::_array_value_get_type(iVar94, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_97 = datafile::_array_value_get_float(iVar94, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_97 = 10.5f;
		}
		if (datafile::_array_value_get_type(iVar102, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_99 = datafile::_array_value_get_float(iVar102, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_99 = 1f;
		}
		if (datafile::_array_value_get_type(iVar103, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_100 = datafile::_array_value_get_float(iVar103, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_100 = 0f;
		}
		if (datafile::_array_value_get_type(iVar95, iVar0) == 2)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_96 = datafile::_array_value_get_integer(iVar95, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_96 = 0;
		}
		if (datafile::_array_value_get_type(iVar96, iVar0) == 2)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_54 = datafile::_array_value_get_integer(iVar96, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_54 = 0;
		}
		if (datafile::_array_value_get_type(iVar100, iVar0) == 2)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_101 = datafile::_array_value_get_integer(iVar100, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_101 = 0;
		}
		if (datafile::_array_value_get_type(iVar101, iVar0) == 2)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_47 = datafile::_array_value_get_integer(iVar101, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_47 = 0;
		}
		if (datafile::_array_value_get_type(iVar99, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_102 = datafile::_array_value_get_float(iVar99, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_102 = 0f;
		}
		if ((datafile::_array_value_get_type(iVar89, iVar0) == 5 && datafile::_array_value_get_type(iVar90, iVar0) == 5) && datafile::_array_value_get_type(iVar91, iVar0) == 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_21 = { datafile::_array_value_get_vector3(iVar89, iVar0) };
			Global_1617379.f_31275[iVar0 /*104*/].f_24 = { datafile::_array_value_get_vector3(iVar90, iVar0) };
			Global_1617379.f_31275[iVar0 /*104*/].f_27 = datafile::_array_value_get_float(iVar91, iVar0);
		}
		else
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_21 = { 0f, 0f, 0f };
			Global_1617379.f_31275[iVar0 /*104*/].f_24 = { 0f, 0f, 0f };
			Global_1617379.f_31275[iVar0 /*104*/].f_27 = 1f;
		}
		iVar0++;
	}
}

void func_152(int iParam0)//Position - 0x10684
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (datafile::_object_value_get_type(iParam0, "cover") == 6)
	{
		iVar1 = datafile::_object_value_get_object(iParam0, "cover");
		Global_1617379.f_36460 = datafile::_object_value_get_integer(iVar1, "no");
		iVar2 = datafile::_object_value_get_array(iVar1, "loc");
		iVar3 = datafile::_object_value_get_array(iVar1, "dir");
		iVar4 = datafile::_object_value_get_array(iVar1, "use");
		iVar5 = datafile::_object_value_get_array(iVar1, "high");
		iVar6 = datafile::_object_value_get_array(iVar1, "arc");
		iVar0 = 0;
		while (iVar0 <= (Global_1617379.f_36460 - 1))
		{
			Global_1617379.f_36461[iVar0 /*7*/] = { datafile::_array_value_get_vector3(iVar2, iVar0) };
			Global_1617379.f_36461[iVar0 /*7*/].f_3 = datafile::_array_value_get_float(iVar3, iVar0);
			Global_1617379.f_36461[iVar0 /*7*/].f_4 = datafile::_array_value_get_integer(iVar4, iVar0);
			Global_1617379.f_36461[iVar0 /*7*/].f_5 = datafile::_array_value_get_integer(iVar5, iVar0);
			Global_1617379.f_36461[iVar0 /*7*/].f_6 = datafile::_array_value_get_integer(iVar6, iVar0);
			iVar0++;
		}
	}
}

void func_153(int iParam0)//Position - 0x10786
{
	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;
	
	iVar2 = datafile::_object_value_get_object(iParam0, "door");
	Global_1617379.f_36173 = datafile::_object_value_get_integer(iVar2, "no");
	iVar3 = datafile::_object_value_get_array(iVar2, "loc");
	iVar4 = datafile::_object_value_get_array(iVar2, "fopen");
	iVar5 = datafile::_object_value_get_array(iVar2, "model");
	iVar6 = datafile::_object_value_get_array(iVar2, "lock");
	iVar7 = datafile::_object_value_get_array(iVar2, "swing");
	iVar8 = datafile::_object_value_get_array(iVar2, "udrle");
	iVar9 = datafile::_object_value_get_array(iVar2, "udtem");
	iVar10 = datafile::_object_value_get_array(iVar2, "udrat");
	iVar11 = datafile::_object_value_get_array(iVar2, "swingu");
	iVar12 = datafile::_object_value_get_array(iVar2, "audst");
	iVar13 = datafile::_object_value_get_array(iVar2, "aurt");
	iVar14 = datafile::_object_value_get_array(iVar2, "uaudst");
	iVar15 = datafile::_object_value_get_array(iVar2, "uaurt");
	iVar16 = datafile::_object_value_get_array(iVar2, "lfp");
	iVar17 = datafile::_object_value_get_array(iVar2, "dtime");
	iVar18 = datafile::_object_value_get_array(iVar2, "mid");
	iVar19 = datafile::_object_value_get_array(iVar2, "dbs");
	iVar0 = 0;
	while (iVar0 <= (Global_1617379.f_36173 - 1))
	{
		if (iVar0 < 15)
		{
			Global_1617379.f_36174[iVar0 /*19*/] = { datafile::_array_value_get_vector3(iVar3, iVar0) };
			Global_1617379.f_36174[iVar0 /*19*/].f_3 = datafile::_array_value_get_float(iVar4, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_14 = datafile::_array_value_get_boolean(iVar6, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_15 = datafile::_array_value_get_boolean(iVar7, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_5 = datafile::_array_value_get_integer(iVar8, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_6 = datafile::_array_value_get_integer(iVar9, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_13 = datafile::_array_value_get_float(iVar10, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_16 = datafile::_array_value_get_boolean(iVar11, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_8 = datafile::_array_value_get_float(iVar13, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_9 = datafile::_array_value_get_float(iVar12, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_10 = datafile::_array_value_get_float(iVar15, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_11 = datafile::_array_value_get_float(iVar14, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_12 = datafile::_array_value_get_boolean(iVar16, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_18 = datafile::_array_value_get_integer(iVar19, iVar0);
			iVar1 = datafile::_array_value_get_integer(iVar5, iVar0);
			Global_1617379.f_36174[iVar0 /*19*/].f_4 = iVar1;
			if (datafile::_array_value_get_type(iVar17, iVar0) == 2)
			{
				Global_1617379.f_36174[iVar0 /*19*/].f_7 = datafile::_array_value_get_integer(iVar17, iVar0);
			}
			else
			{
				Global_1617379.f_36174[iVar0 /*19*/].f_7 = 0;
			}
			Global_1617379.f_36174[iVar0 /*19*/].f_17 = datafile::_array_value_get_boolean(iVar18, iVar0);
		}
		iVar0++;
	}
}

void func_154(int iParam0)//Position - 0x10A48
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	char cVar4[16];
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	var uVar15[4];
	var uVar20[4];
	var uVar25[4];
	var uVar30[4];
	var uVar35[4];
	var uVar40[4];
	var uVar45[4];
	var uVar50[4];
	var uVar55[4];
	var uVar60[4];
	var uVar65[4];
	var uVar70[4];
	var uVar75[4];
	var uVar80[4];
	var uVar85[4];
	var uVar90[4];
	var uVar95[4];
	var uVar100[4];
	var uVar105[4];
	var uVar110[4];
	var uVar115[4];
	var uVar120[4];
	var uVar125[4];
	var uVar130[4];
	var uVar135[4];
	var uVar140[4];
	var uVar145[4];
	var uVar150[4];
	var uVar155[4];
	var uVar160[4];
	var uVar165[4];
	var uVar170[4];
	var uVar175[4];
	var uVar180[4];
	var uVar185[4];
	var uVar190[4];
	var uVar195[4];
	var uVar200[4];
	var uVar205[4];
	var uVar210[4];
	var uVar215[4];
	var uVar220[4];
	var uVar225[4];
	var uVar230[4];
	var uVar235[4];
	var uVar240[4];
	var uVar245[4];
	var uVar250[4];
	var uVar255[4];
	var uVar260[4];
	var uVar265[4];
	var uVar270[4];
	var uVar275[4];
	var uVar280[4];
	var uVar285[4];
	var uVar290[4];
	var uVar295[4];
	var uVar300[4];
	var uVar305[4];
	var uVar310[4];
	var uVar315[4];
	var uVar320[4];
	var uVar325[4];
	var uVar330[4];
	struct<5> Var335;
	var uVar356[4];
	var uVar361[4];
	var uVar366[4];
	var uVar371[4];
	var uVar376[4];
	var uVar381[4];
	var uVar386[4];
	var uVar391[4];
	var uVar396[4];
	var uVar401[4];
	var uVar406[4];
	var uVar411[4];
	var uVar416[4];
	var uVar421[4];
	var uVar426[4];
	var uVar431[4];
	var uVar436[4];
	var uVar441[4];
	var uVar446[4];
	var uVar451[4];
	var uVar456[4];
	var uVar461[4];
	var uVar466[4];
	var uVar471[4];
	var uVar476[4];
	var uVar481[4];
	var uVar486[4];
	var uVar491[4];
	var uVar496[4];
	var uVar501[4];
	var uVar506[4];
	var uVar511[4];
	var uVar516[4];
	var uVar521[4];
	var uVar526[4];
	var uVar531[4];
	var uVar536[4];
	var uVar541[4];
	var uVar546[4];
	var uVar551[4];
	var uVar556[4];
	var uVar561[4];
	var uVar566[4];
	var uVar571[4];
	var uVar576[4];
	var uVar581[4];
	var uVar586[4];
	var uVar591[4];
	var uVar596[4];
	var uVar601[4];
	var uVar606[4];
	var uVar611[4];
	var uVar616[4];
	var uVar621[4];
	var uVar626[4];
	var uVar631[4];
	var uVar636[4];
	var uVar641[4];
	var uVar646[4];
	var uVar651[4];
	var uVar656[4];
	var uVar661[4];
	var uVar666[4];
	var uVar671[4];
	var uVar676[4];
	var uVar681[4];
	var uVar686[4];
	var uVar691[4];
	var uVar696[4];
	var uVar701[4];
	var uVar706[4];
	var uVar711[4];
	var uVar716[4];
	var uVar721[4];
	var uVar726[4];
	var uVar731[4];
	var uVar736[4];
	var uVar741[4];
	var uVar746[4];
	var uVar751[4];
	var uVar756[4];
	var uVar761[4];
	var uVar766[4];
	var uVar771[4];
	var uVar776[4];
	var uVar781[4];
	var uVar786[4];
	var uVar791[4];
	var uVar796[4];
	var uVar801[4];
	var uVar806[4];
	var uVar811[4];
	var uVar816[4];
	var uVar821[4];
	var uVar826[4];
	var uVar831[4];
	var uVar836[4];
	var uVar841[4];
	var uVar846[4];
	var uVar851[4];
	var uVar856[4];
	var uVar861[4];
	var uVar866[4];
	var uVar871[4];
	var uVar876[4];
	var uVar881[4];
	var uVar886[4];
	var uVar891[4];
	var uVar896[4];
	var uVar901[4];
	var uVar906[4];
	var uVar911[4];
	var uVar916[4];
	var uVar921[4];
	var uVar926[4];
	var uVar931[4];
	var uVar936[4];
	var uVar941[4];
	var uVar946[4];
	var uVar951[4];
	var uVar956[4];
	var uVar961[4];
	var uVar966[4];
	var uVar971[4];
	var uVar976[4];
	var uVar981[4];
	var uVar986[4];
	var uVar991[4];
	var uVar996[4];
	var uVar1001[4];
	int iVar1006;
	int iVar1007;
	int iVar1008;
	int iVar1009;
	int iVar1010;
	
	iVar0 = datafile::_object_value_get_object(*iParam0, "endcon");
	Var335 = 4;
	Var335.f_1 = 4;
	Var335.f_1.f_5 = 4;
	Var335.f_1.f_5.f_5 = 4;
	Var335.f_1.f_5.f_5.f_5 = 4;
	iVar1 = 0;
	while (iVar1 <= (Global_1617379.f_25 - 1))
	{
		if (iVar1 < 4)
		{
			StringCopy(&cVar4, "tmt", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar15[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "sudtm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar20[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "tms", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar25[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "txt", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar30[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "tak", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar35[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "cap", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar40[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "rloft", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar766[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "diagwf", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar831[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "twpptd", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar836[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mnvhhl", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar841[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mnvhsi", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar846[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mnvhsd", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar851[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "blolt", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar856[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mxhth", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar861[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "cbmanr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar866[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "rgnd", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar871[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "rgnr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar876[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "rgnm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar881[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drnn", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar886[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drnr1", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar891[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drnr2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar896[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drnr3", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar901[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drnr4", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar906[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drnpl", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar911[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drnp", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar916[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drnv", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar921[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drno", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar926[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drnRt", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar931[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bmmxh", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar971[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bmspm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar976[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bmhrgn", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar1001[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bmsjd", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar981[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bmhok", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar986[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bmstd", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar991[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bmmph", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar996[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "minspd", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar771[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mspdlp", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar776[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "pribt", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar781[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bosth", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar786[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bosti", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar791[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mspdmx", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar796[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "prmg", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar801[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "traf", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar806[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "pden", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar811[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "shdtxt", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar816[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "hitsnd", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar821[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "lnkdr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar45[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "lnkdr2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar50[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "hscr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar55[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "rsiv", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar60[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "wprs", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar65[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "wfrc", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar75[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "wchg", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar70[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "fkwl", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar80[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "wdly", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar85[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "ttlc", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar90[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "swtod", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar95[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "swtok", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar100[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "fsdtmr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar300[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mpftmr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar295[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "artlit", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar105[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mrtl", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar110[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bmbtm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar115[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gpsdp", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar120[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "dcont", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar125[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "critw", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar130[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "rdel", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar826[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "diswp", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar135[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "frndf", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar140[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "dsosui", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar145[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "dpos", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar150[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "txt1", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar155[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "dpos2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar160[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "dpost", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar165[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "dotim", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar170[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "dov", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar175[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "dost", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar180[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "dops", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar185[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "pl2an", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar190[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "lvbs", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar195[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "ovwty", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar200[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "ovwid", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar205[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "wldbs", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar210[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "drpr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar215[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbtp", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar220[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "irbs", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar225[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "irbs2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar230[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "irbs3", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar235[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "irbs4", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar240[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "irbs5", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar245[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "irbs6", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar250[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "irbs7", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar255[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "irfbs", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar260[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "plvrl", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar265[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bdprt", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar325[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bdpst", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar330[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			iVar8 = false;
			iVar9 = false;
			iVar10 = false;
			iVar11 = false;
			iVar12 = false;
			iVar13 = false;
			iVar14 = false;
			StringCopy(&cVar4, "opl0", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			if (datafile::_object_value_get_type(iVar0, &cVar4) == 7)
			{
				iVar8 = true;
				uVar270[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			}
			StringCopy(&cVar4, "opl1", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			if (datafile::_object_value_get_type(iVar0, &cVar4) == 7)
			{
				iVar9 = true;
				uVar275[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			}
			StringCopy(&cVar4, "opl2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			if (datafile::_object_value_get_type(iVar0, &cVar4) == 7)
			{
				iVar10 = true;
				uVar280[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			}
			StringCopy(&cVar4, "opl3", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			if (datafile::_object_value_get_type(iVar0, &cVar4) == 7)
			{
				iVar11 = true;
				uVar285[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			}
			StringCopy(&cVar4, "oplbs", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar290[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mpot0", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			if (datafile::_object_value_get_type(iVar0, &cVar4) == 7)
			{
				iVar12 = true;
				uVar305[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			}
			StringCopy(&cVar4, "mpot1", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			if (datafile::_object_value_get_type(iVar0, &cVar4) == 7)
			{
				iVar13 = true;
				uVar310[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			}
			StringCopy(&cVar4, "mpot2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			if (datafile::_object_value_get_type(iVar0, &cVar4) == 7)
			{
				iVar14 = true;
				uVar315[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			}
			StringCopy(&cVar4, "rnrbs", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar320[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbnum", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar366[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbngn", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar371[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gblgn", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar376[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbcol", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar381[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbdel", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar386[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mcstr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar391[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mcsrm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar396[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mcmp", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar411[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "aumx", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar401[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mpaumx", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar406[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "filtlh", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar416[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbmax", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar421[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbngm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar426[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gblgm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar431[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbvhl", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar436[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbaie", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar361[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gacc", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar441[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gfld", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar446[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbat", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar451[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbv1", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar456[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbv2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar461[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbaw", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar466[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "gbfnr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar471[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "txt2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar476[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "txt3", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar481[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "txt4", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar486[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "txt5", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar491[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "fail", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar496[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bfm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar511[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "wwm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar501[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "vss", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar506[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "tsc", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar516[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mcry", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar521[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "destv", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar526[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "destr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar531[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "destv1", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar536[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "destv2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar541[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "destw", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar546[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bd2t", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar641[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bd2v", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar646[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bd2v1", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar651[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bd2v2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar656[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bd2r", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar661[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "bd2w", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar666[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "out2wg", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar676[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "out2iv", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar681[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "out2io", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar686[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "out2bs", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar691[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "out2mm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar696[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "out2fp", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar701[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "out2et", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar706[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "out2id", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar711[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "out2hv", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar671[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outbt", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar551[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outb", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar556[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar561[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outhv", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar581[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outb1v", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar566[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outb2v", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar571[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outw", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar576[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outwtg", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar586[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outiwv", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar591[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outiwo", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar596[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outbs", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar601[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outclo", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar611[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outclr", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar616[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outclp", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar621[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outmm", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar606[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outfp", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar626[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outety", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar631[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "outeid", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar636[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "sia", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar716[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "stiam", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar721[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mmiam2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar726[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "sim", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar731[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mmim", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar736[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "mmi2m", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar741[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "uacp1", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar746[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "uacp2", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar751[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "fleer", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar761[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "fleev", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar756[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			iVar3 = 0;
			while (iVar3 <= 3)
			{
				StringCopy(&cVar4, "rlbs", 16);
				StringIntConCat(&cVar4, iVar1, 16);
				StringConCat(&cVar4, "-", 16);
				StringIntConCat(&cVar4, iVar3, 16);
				Var335[iVar1 /*5*/][iVar3] = datafile::_object_value_get_array(iVar0, &cVar4);
				StringCopy(&cVar4, "rlnm", 16);
				StringIntConCat(&cVar4, iVar3, 16);
				uVar356[iVar3] = datafile::_object_value_get_array(iVar0, &cVar4);
				iVar3++;
			}
			StringCopy(&cVar4, "grtug", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar936[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "grwep", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar941[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "grclp", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar946[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "grkil", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar951[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "lbred", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar956[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "lbgre", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar961[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			StringCopy(&cVar4, "lbblu", 16);
			StringIntConCat(&cVar4, iVar1, 16);
			uVar966[iVar1] = datafile::_object_value_get_array(iVar0, &cVar4);
			iVar1006 = datafile::_object_value_get_array(iVar0, "tlimt");
			iVar2 = 0;
			while (iVar2 <= (Global_1617379.f_80[iVar1 /*6968*/].f_57 - 1))
			{
				if (uVar15[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_484[iVar2] = datafile::_array_value_get_integer(uVar15[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_484[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar20[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_502[iVar2] = datafile::_array_value_get_integer(uVar20[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_502[iVar2] = 0;
				}
				if (uVar25[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2879[iVar2] = datafile::_array_value_get_integer(uVar25[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2879[iVar2] = 0;
				}
				if (uVar35[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2951[iVar2] = datafile::_array_value_get_integer(uVar35[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2951[iVar2] = 0;
				}
				if (uVar40[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2969[iVar2] = datafile::_array_value_get_integer(uVar40[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2969[iVar2] = 0;
				}
				if (uVar30[iVar1] != 0)
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_4200[iVar2 /*16*/]), datafile::_array_value_get_string(uVar30[iVar1], iVar2), 64);
				}
				else
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_4200[iVar2 /*16*/]), "", 64);
				}
				if (uVar45[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_428[iVar2] = datafile::_array_value_get_integer(uVar45[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_428[iVar2] = 0;
				}
				if (uVar50[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_446[iVar2] = datafile::_array_value_get_integer(uVar50[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_446[iVar2] = 0;
				}
				if (uVar766[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6698[iVar2] = datafile::_array_value_get_integer(uVar766[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6698[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar771[iVar1], iVar2) == 2 && Global_1617379.f_2 != 6)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6716[iVar2] = datafile::_array_value_get_integer(uVar771[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6716[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar776[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6734[iVar2] = datafile::_array_value_get_integer(uVar776[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6734[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar781[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6914[iVar2] = datafile::_array_value_get_integer(uVar781[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6914[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar786[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6932[iVar2] = datafile::_array_value_get_integer(uVar786[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6932[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar791[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6950[iVar2] = datafile::_array_value_get_integer(uVar791[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6950[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar831[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2731[iVar2] = datafile::_array_value_get_integer(uVar831[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2731[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar836[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2803[iVar2] = datafile::_array_value_get_integer(uVar836[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2803[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar841[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2749[iVar2] = datafile::_array_value_get_integer(uVar841[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2749[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar846[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2767[iVar2] = datafile::_array_value_get_integer(uVar846[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2767[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar851[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2785[iVar2] = datafile::_array_value_get_integer(uVar851[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2785[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar856[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2821[iVar2] = datafile::_array_value_get_integer(uVar856[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2821[iVar2] = 4;
				}
				if (datafile::_array_value_get_type(uVar861[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2839[iVar2] = datafile::_array_value_get_integer(uVar861[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2839[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar866[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2857[iVar2] = datafile::_array_value_get_integer(uVar866[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2857[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar871[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2548[iVar2 /*3*/] = datafile::_array_value_get_float(uVar871[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2548[iVar2 /*3*/] = 0f;
				}
				if (datafile::_array_value_get_type(uVar876[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2548[iVar2 /*3*/].f_1 = datafile::_array_value_get_integer(uVar876[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2548[iVar2 /*3*/].f_1 = 1;
				}
				if (datafile::_array_value_get_type(uVar881[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2548[iVar2 /*3*/].f_2 = datafile::_array_value_get_integer(uVar881[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2548[iVar2 /*3*/].f_2 = 50;
				}
				if (datafile::_array_value_get_type(uVar886[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/] = datafile::_array_value_get_float(uVar886[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/] = 0f;
				}
				if (datafile::_array_value_get_type(uVar891[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_1[0] = datafile::_array_value_get_float(uVar891[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_1[0] = 0f;
				}
				if (datafile::_array_value_get_type(uVar896[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_1[1] = datafile::_array_value_get_float(uVar896[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_1[1] = 0f;
				}
				if (datafile::_array_value_get_type(uVar901[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_1[2] = datafile::_array_value_get_float(uVar901[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_1[2] = 0f;
				}
				if (datafile::_array_value_get_type(uVar906[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_1[3] = datafile::_array_value_get_float(uVar906[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_1[3] = 0f;
				}
				if (datafile::_array_value_get_type(uVar911[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_6 = datafile::_array_value_get_float(uVar911[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_6 = 0f;
				}
				if (datafile::_array_value_get_type(uVar916[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_7 = datafile::_array_value_get_float(uVar916[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_7 = 0f;
				}
				if (datafile::_array_value_get_type(uVar921[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_8 = datafile::_array_value_get_float(uVar921[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_8 = 0f;
				}
				if (datafile::_array_value_get_type(uVar926[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_9 = datafile::_array_value_get_float(uVar926[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_9 = 0f;
				}
				if (datafile::_array_value_get_type(uVar931[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_10 = datafile::_array_value_get_float(uVar931[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2360[iVar2 /*11*/].f_10 = 0f;
				}
				if (datafile::_array_value_get_type(uVar971[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/] = datafile::_array_value_get_integer(uVar971[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/] = 1000;
				}
				if (datafile::_array_value_get_type(uVar976[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_1 = datafile::_array_value_get_float(uVar976[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_1 = 1.15f;
				}
				if (datafile::_array_value_get_type(uVar1001[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_6 = datafile::_array_value_get_float(uVar1001[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_6 = 10f;
				}
				if (datafile::_array_value_get_type(uVar981[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_2 = datafile::_array_value_get_integer(uVar981[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_2 = 25;
				}
				if (datafile::_array_value_get_type(uVar986[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_7 = datafile::_array_value_get_integer(uVar986[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_7 = 0;
				}
				if (datafile::_array_value_get_type(uVar991[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_3 = datafile::_array_value_get_integer(uVar991[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_3 = 1;
				}
				if (datafile::_array_value_get_type(uVar996[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_5 = datafile::_array_value_get_integer(uVar996[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2223[iVar2 /*8*/].f_5 = 25;
				}
				if (datafile::_array_value_get_type(uVar796[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6752[iVar2] = datafile::_array_value_get_integer(uVar796[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6752[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar801[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6770[iVar2] = datafile::_array_value_get_integer(uVar801[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6770[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar806[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6824[iVar2] = datafile::_array_value_get_integer(uVar806[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6824[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar811[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6842[iVar2] = datafile::_array_value_get_integer(uVar811[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6842[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar816[iVar1], iVar2) == 2)
				{
					iVar1007 = datafile::_array_value_get_integer(uVar816[iVar1], iVar2);
					if (iVar1007 > 0)
					{
						Global_1617379.f_80[iVar1 /*6968*/].f_6788[iVar2] = iVar1007;
					}
					else
					{
						Global_1617379.f_80[iVar1 /*6968*/].f_6788[iVar2] = 0;
					}
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6788[iVar2] = 0;
				}
				if (uVar821[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6806[iVar2] = datafile::_array_value_get_integer(uVar821[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6806[iVar2] = 0;
				}
				if (Global_1617379.f_80[iVar1 /*6968*/].f_446[iVar2] == 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_446[iVar2] = -1;
				}
				if (uVar55[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_466[iVar2] = datafile::_array_value_get_integer(uVar55[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_466[iVar2] = 0;
				}
				if (uVar75[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3005[iVar2] = datafile::_array_value_get_integer(uVar75[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3005[iVar2] = 0;
				}
				if (uVar70[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2987[iVar2] = datafile::_array_value_get_integer(uVar70[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2987[iVar2] = 0;
				}
				if (uVar80[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3027[iVar2] = datafile::_array_value_get_integer(uVar80[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3027[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar85[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3047[iVar2] = datafile::_array_value_get_integer(uVar85[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3047[iVar2] = 10000;
				}
				if (datafile::_array_value_get_type(uVar90[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3083[iVar2] = datafile::_array_value_get_integer(uVar90[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3083[iVar2] = -1;
				}
				if (uVar60[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_556[iVar2] = datafile::_array_value_get_integer(uVar60[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_556[iVar2] = 0;
				}
				if (uVar65[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_574[iVar2] = datafile::_array_value_get_integer(uVar65[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_574[iVar2] = 0;
				}
				if (uVar140[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_628[iVar2] = datafile::_array_value_get_integer(uVar140[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_628[iVar2] = 0;
				}
				if (uVar145[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_646[iVar2] = datafile::_array_value_get_integer(uVar145[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_646[iVar2] = 0;
				}
				if (uVar95[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_592[iVar2] = datafile::_array_value_get_integer(uVar95[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_592[iVar2] = -1;
				}
				if (uVar100[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_610[iVar2] = datafile::_array_value_get_integer(uVar100[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_610[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar110[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3065[iVar2] = datafile::_array_value_get_integer(uVar110[iVar1], iVar2);
				}
				else if (datafile::_array_value_get_type(iVar1006, iVar1) == 2 && iVar1006 != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3065[iVar2] = datafile::_array_value_get_integer(iVar1006, iVar1);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3065[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar105[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_682[iVar2] = datafile::_array_value_get_integer(uVar105[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_682[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar300[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_538[iVar2] = datafile::_array_value_get_integer(uVar300[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_538[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar295[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_520[iVar2] = datafile::_array_value_get_integer(uVar295[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_520[iVar2] = 0;
				}
				if (uVar115[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_664[iVar2] = datafile::_array_value_get_integer(uVar115[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_664[iVar2] = 0;
				}
				if (uVar120[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_700[iVar2] = datafile::_array_value_get_integer(uVar120[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_700[iVar2] = 0;
				}
				if (uVar125[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6644[iVar2] = datafile::_array_value_get_integer(uVar125[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6644[iVar2] = 0;
				}
				if (uVar130[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6662[iVar2] = datafile::_array_value_get_integer(uVar130[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6662[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar135[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6680[iVar2] = datafile::_array_value_get_integer(uVar135[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6680[iVar2] = 0;
				}
				if (uVar150[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3494[iVar2 /*3*/] = { datafile::_array_value_get_vector3(uVar150[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3494[iVar2 /*3*/] = { 0f, 0f, 0f };
				}
				if (!func_129())
				{
					if (uVar155[iVar1] != 0)
					{
						StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_4473[iVar2 /*16*/]), datafile::_array_value_get_string(uVar155[iVar1], iVar2), 64);
					}
					else
					{
						StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_4473[iVar2 /*16*/]), "", 64);
					}
				}
				if (uVar160[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3546[iVar2 /*3*/] = { datafile::_array_value_get_vector3(uVar160[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3546[iVar2 /*3*/] = { 0f, 0f, 0f };
				}
				if (uVar165[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3616[iVar2] = datafile::_array_value_get_integer(uVar165[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3616[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar170[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3652[iVar2] = datafile::_array_value_get_integer(uVar170[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3652[iVar2] = 0;
				}
				if (uVar220[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3101[iVar2] = datafile::_array_value_get_integer(uVar220[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3101[iVar2] = 0;
				}
				if (uVar215[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3598[iVar2] = datafile::_array_value_get_float(uVar215[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3598[iVar2] = 0f;
				}
				if (uVar225[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3852[iVar2] = datafile::_array_value_get_integer(uVar225[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3852[iVar2] = 0;
				}
				if (uVar230[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3870[iVar2] = datafile::_array_value_get_integer(uVar230[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3870[iVar2] = 0;
				}
				if (uVar235[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3888[iVar2] = datafile::_array_value_get_integer(uVar235[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3888[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar240[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3906[iVar2] = datafile::_array_value_get_integer(uVar240[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3906[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar245[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3924[iVar2] = datafile::_array_value_get_integer(uVar245[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3924[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar250[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3942[iVar2] = datafile::_array_value_get_integer(uVar250[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3942[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar255[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3960[iVar2] = datafile::_array_value_get_integer(uVar255[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3960[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar260[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3978[iVar2] = datafile::_array_value_get_integer(uVar260[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3978[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar265[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_37[iVar2] = datafile::_array_value_get_integer(uVar265[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_37[iVar2] = -1;
				}
				iVar3 = 0;
				while (iVar3 <= 3)
				{
					if (datafile::_array_value_get_type(Var335[iVar1 /*5*/][iVar3], iVar2) == 2)
					{
						Global_1617379.f_80[iVar1 /*6968*/].f_4034[iVar2 /*5*/][iVar3] = datafile::_array_value_get_integer(Var335[iVar1 /*5*/][iVar3], iVar2);
					}
					else
					{
						Global_1617379.f_80[iVar1 /*6968*/].f_4034[iVar2 /*5*/][iVar3] = 0;
					}
					if (datafile::_array_value_get_type(uVar356[iVar3], 0) == 4)
					{
						StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_4120[iVar3 /*16*/]), datafile::_array_value_get_string(uVar356[iVar3], 0), 64);
					}
					else
					{
						StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_4120[iVar3 /*16*/]), "", 64);
					}
					iVar3++;
				}
				if (datafile::_array_value_get_type(uVar325[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3998[iVar2] = datafile::_array_value_get_integer(uVar325[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3998[iVar2] = Global_1617379.f_80[iVar1 /*6968*/].f_2723;
				}
				if (datafile::_array_value_get_type(uVar330[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_4016[iVar2] = datafile::_array_value_get_integer(uVar330[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_4016[iVar2] = Global_1617379.f_80[iVar1 /*6968*/].f_2877;
				}
				if (iVar8)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6453[iVar2 /*5*/][0] = datafile::_array_value_get_integer(uVar270[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6453[iVar2 /*5*/][0] = -1;
				}
				if (iVar9)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6453[iVar2 /*5*/][1] = datafile::_array_value_get_integer(uVar275[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6453[iVar2 /*5*/][1] = -1;
				}
				if (iVar10)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6453[iVar2 /*5*/][2] = datafile::_array_value_get_integer(uVar280[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6453[iVar2 /*5*/][2] = -1;
				}
				if (iVar11)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6453[iVar2 /*5*/][3] = datafile::_array_value_get_integer(uVar285[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6453[iVar2 /*5*/][3] = -1;
				}
				if (iVar12)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6557[iVar2 /*4*/][0] = datafile::_array_value_get_integer(uVar305[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6557[iVar2 /*4*/][0] = -1;
				}
				if (iVar13)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6557[iVar2 /*4*/][1] = datafile::_array_value_get_integer(uVar310[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6557[iVar2 /*4*/][1] = -1;
				}
				if (iVar14)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6557[iVar2 /*4*/][2] = datafile::_array_value_get_integer(uVar315[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6557[iVar2 /*4*/][2] = -1;
				}
				if (datafile::_array_value_get_type(uVar320[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6626[iVar2] = datafile::_array_value_get_integer(uVar320[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6626[iVar2] = 0;
				}
				iVar1008 = Global_1617379.f_80[iVar1 /*6968*/].f_57;
				while (iVar1008 <= 31)
				{
					if (gameplay::is_bit_set(Global_1617379.f_80[iVar1 /*6968*/].f_6626[iVar2], iVar1008))
					{
						gameplay::clear_bit(&(Global_1617379.f_80[iVar1 /*6968*/].f_6626[iVar2]), iVar1008);
					}
					iVar1008++;
				}
				if (datafile::_array_value_get_type(uVar175[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3634[iVar2] = datafile::_array_value_get_integer(uVar175[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3634[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar180[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3670[iVar2] = datafile::_array_value_get_float(uVar180[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3670[iVar2] = -1f;
				}
				if (datafile::_array_value_get_type(uVar185[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3688[iVar2] = datafile::_array_value_get_float(uVar185[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3688[iVar2] = -1f;
				}
				if (datafile::_array_value_get_type(uVar190[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3726[iVar2] = datafile::_array_value_get_integer(uVar190[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3726[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar195[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3708[iVar2] = datafile::_array_value_get_integer(uVar195[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3708[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar200[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6860[iVar2] = datafile::_array_value_get_integer(uVar200[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6860[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar205[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6878[iVar2] = datafile::_array_value_get_integer(uVar205[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6878[iVar2] = -1;
				}
				if (datafile::_array_value_get_type(uVar210[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6896[iVar2] = datafile::_array_value_get_integer(uVar210[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6896[iVar2] = 0;
				}
				if (uVar290[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6539[iVar2] = datafile::_array_value_get_integer(uVar290[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_6539[iVar2] = 0;
				}
				if (uVar366[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3120[iVar2] = datafile::_array_value_get_integer(uVar366[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3120[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar371[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3404[iVar2] = datafile::_array_value_get_integer(uVar371[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3404[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar376[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3440[iVar2] = datafile::_array_value_get_integer(uVar376[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3440[iVar2] = 0;
				}
				if (uVar381[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3156[iVar2] = datafile::_array_value_get_integer(uVar381[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3156[iVar2] = 0;
				}
				if (uVar386[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3138[iVar2] = datafile::_array_value_get_integer(uVar386[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3138[iVar2] = 0;
				}
				if (uVar391[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3744[iVar2] = datafile::_array_value_get_integer(uVar391[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3744[iVar2] = 0;
				}
				if (uVar396[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3816[iVar2] = datafile::_array_value_get_integer(uVar396[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3816[iVar2] = -1;
				}
				if (uVar401[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3780[iVar2] = datafile::_array_value_get_integer(uVar401[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3780[iVar2] = 0;
				}
				if (uVar406[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3798[iVar2] = datafile::_array_value_get_integer(uVar406[iVar1], iVar2);
				}
				else if (Global_1617379.f_80[iVar1 /*6968*/].f_3780[iVar2] != 0 && gameplay::is_bit_set(Global_1617379.f_80[iVar1 /*6968*/].f_3888[iVar2], 8))
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3798[iVar2] = Global_1617379.f_80[iVar1 /*6968*/].f_3780[iVar2];
					Global_1617379.f_80[iVar1 /*6968*/].f_3780[iVar2] = 0;
					gameplay::clear_bit(&(Global_1617379.f_80[iVar1 /*6968*/].f_3888[iVar2]), 8);
				}
				if (uVar411[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3762[iVar2] = datafile::_array_value_get_integer(uVar411[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3762[iVar2] = 0;
				}
				if (uVar416[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3834[iVar2] = datafile::_array_value_get_integer(uVar416[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3834[iVar2] = 0;
				}
				if (uVar421[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3296[iVar2] = datafile::_array_value_get_integer(uVar421[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3296[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar426[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3422[iVar2] = datafile::_array_value_get_integer(uVar426[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3422[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar431[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3458[iVar2] = datafile::_array_value_get_integer(uVar431[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3458[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar471[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3476[iVar2] = datafile::_array_value_get_float(uVar471[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3476[iVar2] = -1f;
				}
				if (uVar361[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3386[iVar2] = datafile::_array_value_get_integer(uVar361[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3386[iVar2] = 0;
				}
				if (uVar436[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3314[iVar2] = datafile::_array_value_get_integer(uVar436[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3314[iVar2] = 100;
				}
				if (uVar441[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3350[iVar2] = datafile::_array_value_get_integer(uVar441[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3350[iVar2] = 0;
				}
				if (uVar446[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3368[iVar2] = datafile::_array_value_get_integer(uVar446[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3368[iVar2] = 0;
				}
				if (uVar451[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3332[iVar2] = datafile::_array_value_get_integer(uVar451[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3332[iVar2] = 0;
				}
				if (uVar456[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3174[iVar2 /*3*/] = { datafile::_array_value_get_vector3(uVar456[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3174[iVar2 /*3*/] = { 0f, 0f, 0f };
				}
				if (uVar461[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3226[iVar2 /*3*/] = { datafile::_array_value_get_vector3(uVar461[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3226[iVar2 /*3*/] = { 0f, 0f, 0f };
				}
				if (uVar466[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3278[iVar2] = datafile::_array_value_get_float(uVar466[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_3278[iVar2] = 0f;
				}
				if (uVar476[iVar1] != 0)
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_4746[iVar2 /*16*/]), datafile::_array_value_get_string(uVar476[iVar1], iVar2), 64);
				}
				else
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_4746[iVar2 /*16*/]), "", 64);
				}
				if (!func_129())
				{
					if (uVar481[iVar1] != 0)
					{
						StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5225[iVar2 /*6*/]), datafile::_array_value_get_string(uVar481[iVar1], iVar2), 24);
					}
					else
					{
						StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5225[iVar2 /*6*/]), "", 24);
					}
					if (uVar486[iVar1] != 0)
					{
						StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5019[iVar2 /*6*/]), datafile::_array_value_get_string(uVar486[iVar1], iVar2), 24);
					}
					else
					{
						StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5019[iVar2 /*6*/]), "", 24);
					}
					if (uVar491[iVar1] != 0)
					{
						StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5122[iVar2 /*6*/]), datafile::_array_value_get_string(uVar491[iVar1], iVar2), 24);
					}
					else
					{
						StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5122[iVar2 /*6*/]), "", 24);
					}
				}
				if (uVar496[iVar1] != 0)
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5328[iVar2 /*16*/]), datafile::_array_value_get_string(uVar496[iVar1], iVar2), 64);
				}
				else
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5328[iVar2 /*16*/]), "", 64);
				}
				if (uVar511[iVar1] != 0)
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5601[iVar2 /*16*/]), datafile::_array_value_get_string(uVar511[iVar1], iVar2), 64);
				}
				else
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5601[iVar2 /*16*/]), "", 64);
				}
				if (uVar501[iVar1] != 0)
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5874[iVar2 /*16*/]), datafile::_array_value_get_string(uVar501[iVar1], iVar2), 64);
				}
				else
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_5874[iVar2 /*16*/]), "", 64);
				}
				if (uVar506[iVar1] != 0)
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_6147[iVar2 /*16*/]), datafile::_array_value_get_string(uVar506[iVar1], iVar2), 64);
				}
				else
				{
					StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_6147[iVar2 /*16*/]), "", 64);
				}
				if (uVar516[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2897[iVar2] = datafile::_array_value_get_integer(uVar516[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2897[iVar2] = 0;
				}
				if (datafile::_array_value_get_type(uVar826[iVar1], iVar2) == 2)
				{
					if (datafile::_array_value_get_integer(uVar826[iVar1], iVar2) > 1)
					{
						Global_1617379.f_80[iVar1 /*6968*/].f_2933[iVar2] = datafile::_array_value_get_integer(uVar826[iVar1], iVar2);
					}
					else
					{
						Global_1617379.f_80[iVar1 /*6968*/].f_2933[iVar2] = 1;
					}
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2933[iVar2] = 1;
				}
				if (uVar521[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2915[iVar2] = datafile::_array_value_get_integer(uVar521[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2915[iVar2] = 0;
				}
				if (uVar566[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_3 = { datafile::_array_value_get_vector3(uVar566[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_3 = { 0f, 0f, 0f };
				}
				if (uVar571[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_6 = { datafile::_array_value_get_vector3(uVar571[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_6 = { 0f, 0f, 0f };
				}
				if (uVar576[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_10 = datafile::_array_value_get_float(uVar576[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_10 = 0f;
				}
				if (uVar581[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_13 = { datafile::_array_value_get_vector3(uVar581[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_13 = { 0f, 0f, 0f };
				}
				if (uVar556[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/] = { datafile::_array_value_get_vector3(uVar556[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/] = { 0f, 0f, 0f };
				}
				if (datafile::_array_value_get_type(uVar561[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_9 = datafile::_array_value_get_float(uVar561[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_9 = 0f;
				}
				if (uVar551[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_16 = datafile::_array_value_get_integer(uVar551[iVar1], iVar2);
				}
				if (uVar671[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_13 = { datafile::_array_value_get_vector3(uVar671[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_13 = { 0f, 0f, 0f };
				}
				if (uVar646[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/] = { datafile::_array_value_get_vector3(uVar646[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/] = { 0f, 0f, 0f };
				}
				if (uVar656[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_3 = { datafile::_array_value_get_vector3(uVar656[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_3 = { 0f, 0f, 0f };
				}
				if (uVar651[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_6 = { datafile::_array_value_get_vector3(uVar651[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_6 = { 0f, 0f, 0f };
				}
				if (uVar666[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_10 = datafile::_array_value_get_float(uVar666[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_10 = 0f;
				}
				if (datafile::_array_value_get_type(uVar661[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_9 = datafile::_array_value_get_float(uVar661[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_9 = 0f;
				}
				if (uVar641[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_16 = datafile::_array_value_get_integer(uVar641[iVar1], iVar2);
				}
				if (uVar536[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1676[iVar2 /*28*/].f_3 = { datafile::_array_value_get_vector3(uVar536[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1676[iVar2 /*28*/].f_3 = { 0f, 0f, 0f };
				}
				if (uVar541[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1676[iVar2 /*28*/].f_6 = { datafile::_array_value_get_vector3(uVar541[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1676[iVar2 /*28*/].f_6 = { 0f, 0f, 0f };
				}
				if (uVar546[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1676[iVar2 /*28*/].f_10 = datafile::_array_value_get_float(uVar546[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1676[iVar2 /*28*/].f_10 = 0f;
				}
				if (uVar526[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1676[iVar2 /*28*/] = { datafile::_array_value_get_vector3(uVar526[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1676[iVar2 /*28*/] = { 0f, 0f, 0f };
				}
				if (uVar531[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1676[iVar2 /*28*/].f_9 = datafile::_array_value_get_float(uVar531[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1676[iVar2 /*28*/].f_9 = 0f;
				}
				if (uVar756[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2153[iVar2 /*3*/] = { datafile::_array_value_get_vector3(uVar756[iVar1], iVar2) };
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2153[iVar2 /*3*/] = { 0f, 0f, 0f };
				}
				if (uVar761[iVar1] != 0)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2205[iVar2] = datafile::_array_value_get_float(uVar761[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2205[iVar2] = 0f;
				}
				if (datafile::_array_value_get_type(uVar586[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_19 = datafile::_array_value_get_integer(uVar586[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_19 = -1;
				}
				if (datafile::_array_value_get_type(uVar591[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_17 = datafile::_array_value_get_integer(uVar591[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_17 = 0;
				}
				if (datafile::_array_value_get_type(uVar596[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_18 = datafile::_array_value_get_integer(uVar596[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_18 = -1;
				}
				if (datafile::_array_value_get_type(uVar601[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_20 = datafile::_array_value_get_integer(uVar601[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_20 = 0;
				}
				if (datafile::_array_value_get_type(uVar606[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_23 = datafile::_array_value_get_integer(uVar606[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_23 = 120;
				}
				if (datafile::_array_value_get_type(uVar611[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_24 = datafile::_array_value_get_float(uVar611[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_24 = 5f;
				}
				if (datafile::_array_value_get_type(uVar616[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_25 = datafile::_array_value_get_float(uVar616[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_25 = 10f;
				}
				if (datafile::_array_value_get_type(uVar621[iVar1], iVar2) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_26 = datafile::_array_value_get_float(uVar621[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_26 = 30f;
				}
				if (datafile::_array_value_get_type(uVar626[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_27 = datafile::_array_value_get_integer(uVar626[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_27 = 0;
				}
				if (datafile::_array_value_get_type(uVar631[iVar1], iVar2) == 2 && datafile::_array_value_get_type(uVar636[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_21 = datafile::_array_value_get_integer(uVar631[iVar1], iVar2);
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_22 = datafile::_array_value_get_integer(uVar636[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_21 = 0;
					Global_1617379.f_80[iVar1 /*6968*/].f_722[iVar2 /*28*/].f_22 = -1;
				}
				if (datafile::_array_value_get_type(uVar676[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_19 = datafile::_array_value_get_integer(uVar676[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_19 = -1;
				}
				if (datafile::_array_value_get_type(uVar681[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_17 = datafile::_array_value_get_integer(uVar681[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_17 = 0;
				}
				if (datafile::_array_value_get_type(uVar686[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_18 = datafile::_array_value_get_integer(uVar686[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_18 = -1;
				}
				if (datafile::_array_value_get_type(uVar691[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_20 = datafile::_array_value_get_integer(uVar691[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_20 = 0;
				}
				if (datafile::_array_value_get_type(uVar696[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_23 = datafile::_array_value_get_integer(uVar696[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_23 = 120;
				}
				if (datafile::_array_value_get_type(uVar701[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_27 = datafile::_array_value_get_integer(uVar701[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_27 = 0;
				}
				if (datafile::_array_value_get_type(uVar706[iVar1], iVar2) == 2 && datafile::_array_value_get_type(uVar711[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_21 = datafile::_array_value_get_integer(uVar706[iVar1], iVar2);
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_22 = datafile::_array_value_get_integer(uVar711[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_21 = 0;
					Global_1617379.f_80[iVar1 /*6968*/].f_1199[iVar2 /*28*/].f_22 = -1;
				}
				if (datafile::_array_value_get_type(uVar936[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2600[iVar2 /*4*/] = datafile::_array_value_get_integer(uVar936[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2600[iVar2 /*4*/] = -1;
				}
				if (datafile::_array_value_get_type(uVar941[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2600[iVar2 /*4*/].f_1 = datafile::_array_value_get_integer(uVar941[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2600[iVar2 /*4*/].f_1 = -1;
				}
				if (datafile::_array_value_get_type(uVar946[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2600[iVar2 /*4*/].f_2 = datafile::_array_value_get_integer(uVar946[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2600[iVar2 /*4*/].f_2 = 0;
				}
				if (datafile::_array_value_get_type(uVar951[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2600[iVar2 /*4*/].f_3 = datafile::_array_value_get_integer(uVar951[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2600[iVar2 /*4*/].f_3 = 0;
				}
				if (datafile::_array_value_get_type(uVar956[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2669[iVar2 /*3*/] = datafile::_array_value_get_integer(uVar956[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2669[iVar2 /*3*/] = 0;
				}
				if (datafile::_array_value_get_type(uVar966[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2669[iVar2 /*3*/].f_2 = datafile::_array_value_get_integer(uVar966[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2669[iVar2 /*3*/].f_2 = 0;
				}
				if (datafile::_array_value_get_type(uVar961[iVar1], iVar2) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2669[iVar2 /*3*/].f_1 = datafile::_array_value_get_integer(uVar961[iVar1], iVar2);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_2669[iVar2 /*3*/].f_1 = 0;
				}
				iVar2++;
			}
			iVar1009 = 0;
			while (iVar1009 <= 56)
			{
				if (datafile::_array_value_get_type(uVar716[iVar1], iVar1009) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_61[iVar1009] = datafile::_array_value_get_integer(uVar716[iVar1], iVar1009);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_61[iVar1009] = 0;
				}
				if (datafile::_array_value_get_type(uVar721[iVar1], iVar1009) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_180[iVar1009] = datafile::_array_value_get_integer(uVar721[iVar1], iVar1009);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_180[iVar1009] = 0;
				}
				if (datafile::_array_value_get_type(uVar726[iVar1], iVar1009) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_300[iVar1009] = datafile::_array_value_get_integer(uVar726[iVar1], iVar1009);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_300[iVar1009] = 0;
				}
				if (datafile::_array_value_get_type(uVar731[iVar1], iVar1009) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_119[iVar1009] = datafile::_array_value_get_float(uVar731[iVar1], iVar1009);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_119[iVar1009] = 1f;
				}
				if (datafile::_array_value_get_type(uVar736[iVar1], iVar1009) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_238[iVar1009] = datafile::_array_value_get_float(uVar736[iVar1], iVar1009);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_238[iVar1009] = 1f;
				}
				if (datafile::_array_value_get_type(uVar741[iVar1], iVar1009) == 3)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_358[iVar1009] = datafile::_array_value_get_float(uVar741[iVar1], iVar1009);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_358[iVar1009] = 1f;
				}
				iVar1009++;
			}
			iVar1010 = 0;
			while (iVar1010 <= 3)
			{
				if (datafile::_array_value_get_type(uVar746[iVar1], iVar1010) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_418[iVar1010] = datafile::_array_value_get_integer(uVar746[iVar1], iVar1010);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_418[iVar1010] = -1;
				}
				if (datafile::_array_value_get_type(uVar751[iVar1], iVar1010) == 2)
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_423[iVar1010] = datafile::_array_value_get_integer(uVar751[iVar1], iVar1010);
				}
				else
				{
					Global_1617379.f_80[iVar1 /*6968*/].f_423[iVar1010] = -1;
				}
				iVar1010++;
			}
		}
		iVar1++;
	}
}

void func_155(int iParam0)//Position - 0x15C27
{
	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;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	int iVar44;
	int iVar45;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	int iVar50;
	int iVar51;
	int iVar52;
	int iVar53;
	var uVar54[10];
	
	iVar0 = datafile::_object_value_get_object(*iParam0, "endcon");
	iVar3 = datafile::_object_value_get_array(iVar0, "numpt");
	iVar4 = datafile::_object_value_get_array(iVar0, "ptint");
	iVar5 = datafile::_object_value_get_array(iVar0, "pptint");
	iVar7 = true;
	if (datafile::_object_value_get_type(iVar0, "mnumpt") != 2)
	{
		iVar7 = false;
		iVar6 = datafile::_object_value_get_array(iVar0, "mnumpt");
	}
	iVar8 = datafile::_object_value_get_array(iVar0, "tcp");
	iVar9 = datafile::_object_value_get_array(iVar0, "tcr");
	iVar10 = datafile::_object_value_get_array(iVar0, "abits");
	iVar11 = datafile::_object_value_get_array(iVar0, "sdobs");
	iVar12 = datafile::_object_value_get_array(iVar0, "edobs");
	iVar13 = datafile::_object_value_get_array(iVar0, "dogps");
	iVar14 = datafile::_object_value_get_array(iVar0, "teamv");
	iVar15 = datafile::_object_value_get_array(iVar0, "teamrvc");
	iVar16 = datafile::_object_value_get_array(iVar0, "mcvbs");
	iVar17 = datafile::_object_value_get_array(iVar0, "mcobs");
	iVar18 = datafile::_object_value_get_array(iVar0, "mcpbs");
	iVar19 = datafile::_object_value_get_array(iVar0, "mcgbs");
	iVar20 = datafile::_object_value_get_array(iVar0, "rpgbs");
	iVar21 = datafile::_object_value_get_array(iVar0, "mcpbs1");
	iVar22 = datafile::_object_value_get_array(iVar0, "mcpbs2");
	iVar23 = datafile::_object_value_get_array(iVar0, "mcgbs1");
	iVar24 = datafile::_object_value_get_array(iVar0, "mcgbs2");
	iVar25 = datafile::_object_value_get_array(iVar0, "rpgbs1");
	iVar26 = datafile::_object_value_get_array(iVar0, "rpgbs2");
	iVar27 = datafile::_object_value_get_array(iVar0, "inpts");
	iVar28 = datafile::_object_value_get_array(iVar0, "ldsf1");
	iVar29 = datafile::_object_value_get_array(iVar0, "ldsf2");
	iVar30 = 1;
	if (datafile::_object_value_get_type(iVar0, "tehlh") == 7)
	{
		iVar31 = datafile::_object_value_get_array(iVar0, "tehlh");
		iVar30 = 1;
	}
	else
	{
		iVar30 = 0;
	}
	iVar32 = datafile::_object_value_get_array(iVar0, "tehrn");
	iVar33 = datafile::_object_value_get_array(iVar0, "spsy1");
	iVar34 = datafile::_object_value_get_array(iVar0, "spsy2");
	iVar35 = datafile::_object_value_get_array(iVar0, "tenms");
	iVar36 = datafile::_object_value_get_array(iVar0, "csttn");
	iVar37 = datafile::_object_value_get_array(iVar0, "cstrn");
	iVar38 = datafile::_object_value_get_array(iVar0, "nrl");
	iVar39 = datafile::_object_value_get_array(iVar0, "tstrt");
	iVar40 = datafile::_object_value_get_array(iVar0, "tstop");
	iVar41 = datafile::_object_value_get_array(iVar0, "sms");
	iVar42 = datafile::_object_value_get_array(iVar0, "tblpv1");
	iVar43 = datafile::_object_value_get_array(iVar0, "tblpv2");
	iVar44 = datafile::_object_value_get_array(iVar0, "tblpv3");
	iVar45 = datafile::_object_value_get_array(iVar0, "tblpv4");
	iVar46 = datafile::_object_value_get_array(iVar0, "thudv1");
	iVar47 = datafile::_object_value_get_array(iVar0, "thudv2");
	iVar48 = datafile::_object_value_get_array(iVar0, "thudv3");
	iVar49 = datafile::_object_value_get_array(iVar0, "thudv4");
	iVar50 = datafile::_object_value_get_array(iVar0, "rcst1q");
	iVar51 = datafile::_object_value_get_array(iVar0, "rcst2q");
	iVar52 = datafile::_object_value_get_array(iVar0, "rcst3q");
	iVar53 = datafile::_object_value_get_array(iVar0, "rcst4q");
	iVar1 = 0;
	while (iVar1 <= (datafile::_array_value_get_size(iVar41) - 1))
	{
		uVar54[iVar1] = datafile::_array_value_get_object(iVar41, iVar1);
		Global_1617379.f_28799[iVar1 /*38*/] = datafile::_object_value_get_integer(uVar54[iVar1], "team");
		Global_1617379.f_28799[iVar1 /*38*/].f_1 = datafile::_object_value_get_integer(uVar54[iVar1], "rule");
		Global_1617379.f_28799[iVar1 /*38*/].f_2 = datafile::_object_value_get_integer(uVar54[iVar1], "time");
		StringCopy(&(Global_1617379.f_28799[iVar1 /*38*/].f_4[0 /*16*/]), datafile::_object_value_get_string(uVar54[iVar1], "txt0"), 64);
		StringCopy(&(Global_1617379.f_28799[iVar1 /*38*/].f_4[1 /*16*/]), datafile::_object_value_get_string(uVar54[iVar1], "txt1"), 64);
		Global_1617379.f_28799[iVar1 /*38*/].f_3 = datafile::_object_value_get_integer(uVar54[iVar1], "delay");
		Global_1617379.f_28799[iVar1 /*38*/].f_37 = datafile::_object_value_get_integer(uVar54[iVar1], "sndall");
		iVar1++;
	}
	iVar1 = 0;
	while (iVar1 <= (Global_1617379.f_25 - 1))
	{
		if (iVar1 < 4)
		{
			if (iVar14 != 0)
			{
				iVar2 = datafile::_array_value_get_integer(iVar14, iVar1);
				Global_1617379.f_34249[iVar1] = iVar2;
			}
			else
			{
				Global_1617379.f_34249[iVar1] = 0;
			}
			if (iVar15 != 0)
			{
				Global_1617379.f_34287[iVar1] = datafile::_array_value_get_integer(iVar15, iVar1);
			}
			else
			{
				Global_1617379.f_34287[iVar1] = -1;
			}
			if (iVar3 != 0)
			{
				Global_1617379.f_27[iVar1] = datafile::_array_value_get_integer(iVar3, iVar1);
			}
			if (Global_1617379.f_27[iVar1] < 1)
			{
				Global_1617379.f_27[iVar1] = 1;
			}
			if (iVar4 != 0)
			{
				Global_1617379.f_29641[iVar1] = datafile::_array_value_get_integer(iVar4, iVar1);
			}
			else
			{
				Global_1617379.f_29641[iVar1] = -1;
			}
			if (iVar5 != 0)
			{
				Global_1617379.f_29646[iVar1] = datafile::_array_value_get_integer(iVar5, iVar1);
			}
			else
			{
				Global_1617379.f_29646[iVar1] = -1;
			}
			if (iVar7)
			{
				Global_1617379.f_32[iVar1] = 0;
			}
			else
			{
				if (iVar6 != 0)
				{
					Global_1617379.f_32[iVar1] = datafile::_array_value_get_integer(iVar6, iVar1);
				}
				if (Global_1617379.f_32[iVar1] < 0)
				{
					Global_1617379.f_32[iVar1] = 0;
				}
			}
			if (iVar8 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4 = { datafile::_array_value_get_vector3(iVar8, iVar1) };
			}
			if (iVar9 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_7 = { datafile::_array_value_get_vector3(iVar9, iVar1) };
			}
			if (iVar10 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_718 = datafile::_array_value_get_integer(iVar10, iVar1);
			}
			if (iVar11 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_719 = datafile::_array_value_get_integer(iVar11, iVar1);
			}
			if (iVar12 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_720 = datafile::_array_value_get_integer(iVar12, iVar1);
			}
			if (iVar13 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_721 = datafile::_array_value_get_integer(iVar13, iVar1);
			}
			if (datafile::_array_value_get_type(iVar28, iVar1) == 2 && iVar28 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_464 = datafile::_array_value_get_integer(iVar28, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_464 = 0;
			}
			if (datafile::_array_value_get_type(iVar29, iVar1) == 2 && iVar29 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_465 = datafile::_array_value_get_integer(iVar29, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_465 = 0;
			}
			if (iVar16 != 0)
			{
				Global_1617379.f_28789[iVar1] = datafile::_array_value_get_integer(iVar16, iVar1);
			}
			if (datafile::_array_value_get_type(iVar17, iVar1) == 2)
			{
				Global_1617379.f_28794[iVar1] = datafile::_array_value_get_integer(iVar17, iVar1);
			}
			else
			{
				Global_1617379.f_28794[iVar1] = 0;
			}
			if (iVar18 != 0)
			{
				Global_1617379.f_28745[iVar1] = datafile::_array_value_get_integer(iVar18, iVar1);
			}
			if (iVar21 != 0)
			{
				Global_1617379.f_28776[iVar1 /*3*/][0] = datafile::_array_value_get_integer(iVar21, iVar1);
			}
			if (iVar22 != 0)
			{
				Global_1617379.f_28776[iVar1 /*3*/][1] = datafile::_array_value_get_integer(iVar22, iVar1);
			}
			if (Global_1617379.f_28745[iVar1] != 0 && Global_1617379.f_28776[iVar1 /*3*/][0] == 0)
			{
				Global_1617379.f_28776[iVar1 /*3*/][0] = Global_1617379.f_28745[iVar1];
			}
			if (iVar19 != 0)
			{
				Global_1617379.f_28740[iVar1] = datafile::_array_value_get_integer(iVar19, iVar1);
			}
			if (iVar23 != 0)
			{
				Global_1617379.f_28763[iVar1 /*3*/][0] = datafile::_array_value_get_integer(iVar23, iVar1);
			}
			if (iVar24 != 0)
			{
				Global_1617379.f_28763[iVar1 /*3*/][1] = datafile::_array_value_get_integer(iVar24, iVar1);
			}
			if (Global_1617379.f_28740[iVar1] != 0 && Global_1617379.f_28763[iVar1 /*3*/][0] == 0)
			{
				Global_1617379.f_28763[iVar1 /*3*/][0] = Global_1617379.f_28740[iVar1];
			}
			if (iVar20 != 0)
			{
				Global_1617379.f_28735[iVar1] = datafile::_array_value_get_integer(iVar20, iVar1);
			}
			if (iVar25 != 0)
			{
				Global_1617379.f_28750[iVar1 /*3*/][0] = datafile::_array_value_get_integer(iVar25, iVar1);
			}
			if (iVar26 != 0)
			{
				Global_1617379.f_28750[iVar1 /*3*/][1] = datafile::_array_value_get_integer(iVar26, iVar1);
			}
			if (Global_1617379.f_28735[iVar1] != 0 && Global_1617379.f_28750[iVar1 /*3*/][0] == 0)
			{
				Global_1617379.f_28750[iVar1 /*3*/][0] = Global_1617379.f_28735[iVar1];
			}
			if (iVar27 != 0)
			{
				Global_1617379.f_28004[iVar1] = datafile::_array_value_get_integer(iVar27, iVar1);
			}
			if (iVar30 && iVar31 != 0)
			{
				Global_1617379.f_28036[iVar1] = datafile::_array_value_get_integer(iVar31, iVar1);
			}
			else
			{
				Global_1617379.f_28036[iVar1] = 3;
			}
			if (datafile::_array_value_get_type(iVar32, iVar1) == 2)
			{
				Global_1617379.f_28041[iVar1] = datafile::_array_value_get_integer(iVar32, iVar1);
			}
			if (iVar33 != 0)
			{
				StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_6420[0 /*16*/]), datafile::_array_value_get_string(iVar33, iVar1), 64);
			}
			if (iVar34 != 0)
			{
				StringCopy(&(Global_1617379.f_80[iVar1 /*6968*/].f_6420[1 /*16*/]), datafile::_array_value_get_string(iVar34, iVar1), 64);
			}
			if (iVar35 != 0)
			{
				Global_1617379.f_28009[iVar1] = datafile::_array_value_get_integer(iVar35, iVar1);
			}
			if (iVar36 != 0)
			{
				StringCopy(&(Global_1617379.f_28014[iVar1 /*4*/]), datafile::_array_value_get_string(iVar36, iVar1), 16);
			}
			if (iVar37 != 0)
			{
				Global_1617379.f_28031[iVar1] = datafile::_array_value_get_integer(iVar37, iVar1);
			}
			if (datafile::_array_value_get_type(iVar39, iVar1) == 2 && iVar39 != 0)
			{
				Global_1617379.f_74350[iVar1] = datafile::_array_value_get_integer(iVar39, iVar1);
			}
			if (datafile::_array_value_get_type(iVar40, iVar1) == 2 && iVar40 != 0)
			{
				Global_1617379.f_74355[iVar1] = datafile::_array_value_get_integer(iVar40, iVar1);
			}
			if (iVar38 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_57 = datafile::_array_value_get_integer(iVar38, iVar1);
			}
			if (datafile::_array_value_get_type(iVar42, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4185 = datafile::_array_value_get_integer(iVar42, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4185 = 0;
			}
			if (datafile::_array_value_get_type(iVar43, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4186 = datafile::_array_value_get_integer(iVar43, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4186 = 0;
			}
			if (datafile::_array_value_get_type(iVar44, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4187 = datafile::_array_value_get_integer(iVar44, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4187 = 0;
			}
			if (datafile::_array_value_get_type(iVar45, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4188 = datafile::_array_value_get_integer(iVar45, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4188 = 0;
			}
			if (datafile::_array_value_get_type(iVar46, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4189 = datafile::_array_value_get_integer(iVar46, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4189 = 0;
			}
			if (datafile::_array_value_get_type(iVar47, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4190 = datafile::_array_value_get_integer(iVar47, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4190 = 0;
			}
			if (datafile::_array_value_get_type(iVar48, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4191 = datafile::_array_value_get_integer(iVar48, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4191 = 0;
			}
			if (datafile::_array_value_get_type(iVar49, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4192 = datafile::_array_value_get_integer(iVar49, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4192 = 0;
			}
			if (datafile::_array_value_get_type(iVar50, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4193 = datafile::_array_value_get_integer(iVar50, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4193 = 0;
			}
			if (datafile::_array_value_get_type(iVar51, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4194 = datafile::_array_value_get_integer(iVar51, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4194 = 0;
			}
			if (datafile::_array_value_get_type(iVar52, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4195 = datafile::_array_value_get_integer(iVar52, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4195 = 0;
			}
			if (datafile::_array_value_get_type(iVar53, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4196 = datafile::_array_value_get_integer(iVar53, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4196 = 0;
			}
		}
		iVar1++;
	}
}

void func_156(int iParam0)//Position - 0x167DD
{
	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;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	int iVar44;
	int iVar45;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	int iVar50;
	int iVar51;
	int iVar52;
	int iVar53;
	int iVar54;
	int iVar55;
	int iVar56;
	int iVar57;
	int iVar58;
	int iVar59;
	int iVar60;
	int iVar61;
	int iVar62;
	int iVar63;
	int iVar64;
	int iVar65;
	
	iVar0 = datafile::_object_value_get_object(*iParam0, "endcon");
	iVar2 = datafile::_object_value_get_array(iVar0, "stpos");
	iVar3 = datafile::_object_value_get_array(iVar0, "delr");
	iVar4 = datafile::_object_value_get_array(iVar0, "epos");
	iVar5 = datafile::_object_value_get_array(iVar0, "endr");
	iVar6 = datafile::_object_value_get_array(iVar0, "vareapos");
	iVar7 = datafile::_object_value_get_array(iVar0, "arear");
	iVar8 = datafile::_object_value_get_array(iVar0, "time");
	iVar9 = datafile::_object_value_get_array(iVar0, "plkr");
	iVar10 = datafile::_object_value_get_array(iVar0, "pekr");
	iVar11 = datafile::_object_value_get_array(iVar0, "vhkr");
	iVar12 = datafile::_object_value_get_array(iVar0, "obkr");
	iVar13 = datafile::_object_value_get_array(iVar0, "dr");
	iVar14 = datafile::_object_value_get_array(iVar0, "pedr");
	iVar15 = datafile::_object_value_get_array(iVar0, "vedr");
	iVar16 = datafile::_object_value_get_array(iVar0, "obdr");
	iVar17 = datafile::_object_value_get_array(iVar0, "lwmbs");
	iVar18 = datafile::_object_value_get_array(iVar0, "flmbs");
	iVar19 = datafile::_object_value_get_array(iVar0, "vdoibs");
	iVar20 = datafile::_object_value_get_array(iVar0, "vdohu");
	iVar21 = datafile::_object_value_get_array(iVar0, "tmbts");
	iVar22 = datafile::_object_value_get_array(iVar0, "tmbt2");
	iVar23 = datafile::_object_value_get_array(iVar0, "swmbs");
	iVar24 = datafile::_object_value_get_array(iVar0, "gbmbs");
	iVar25 = datafile::_object_value_get_array(iVar0, "pcbd");
	iVar26 = datafile::_object_value_get_array(iVar0, "lwbs");
	iVar27 = datafile::_object_value_get_array(iVar0, "wodia");
	iVar28 = datafile::_object_value_get_array(iVar0, "repcr");
	iVar29 = datafile::_object_value_get_array(iVar0, "woabs");
	iVar30 = datafile::_object_value_get_array(iVar0, "fwoabs");
	iVar31 = datafile::_object_value_get_array(iVar0, "fail");
	iVar32 = datafile::_object_value_get_array(iVar0, "vehrsp");
	iVar33 = datafile::_object_value_get_array(iVar0, "mtlr");
	iVar34 = datafile::_object_value_get_array(iVar0, "mslr");
	iVar35 = datafile::_object_value_get_array(iVar0, "mlpl");
	iVar36 = datafile::_object_value_get_array(iVar0, "plyl");
	iVar37 = datafile::_object_value_get_array(iVar0, "shd");
	iVar38 = datafile::_object_value_get_array(iVar0, "spar");
	iVar39 = datafile::_object_value_get_array(iVar0, "2spar");
	iVar40 = datafile::_object_value_get_array(iVar0, "boud");
	iVar41 = datafile::_object_value_get_array(iVar0, "bla");
	iVar42 = datafile::_object_value_get_array(iVar0, "wla");
	iVar43 = datafile::_object_value_get_array(iVar0, "patm");
	iVar44 = datafile::_object_value_get_array(iVar0, "bnd2");
	iVar45 = datafile::_object_value_get_array(iVar0, "bla2");
	iVar46 = datafile::_object_value_get_array(iVar0, "wla2");
	iVar47 = datafile::_object_value_get_array(iVar0, "pat2");
	iVar48 = datafile::_object_value_get_array(iVar0, "inv");
	iVar49 = datafile::_object_value_get_array(iVar0, "inv2");
	iVar50 = datafile::_object_value_get_array(iVar0, "invsw");
	iVar51 = datafile::_object_value_get_array(iVar0, "invtm");
	iVar52 = datafile::_object_value_get_array(iVar0, "invrl");
	iVar53 = datafile::_object_value_get_array(iVar0, "inv2tm");
	iVar54 = datafile::_object_value_get_array(iVar0, "inv2rl");
	iVar55 = datafile::_object_value_get_array(iVar0, "sinv");
	iVar56 = datafile::_object_value_get_array(iVar0, "sinv2");
	iVar57 = datafile::_object_value_get_array(iVar0, "minv");
	iVar58 = datafile::_object_value_get_array(iVar0, "minv2");
	iVar59 = datafile::_object_value_get_array(iVar0, "ppk");
	iVar60 = datafile::_object_value_get_array(iVar0, "mts");
	iVar61 = datafile::_object_value_get_array(iVar0, "spwia");
	iVar62 = datafile::_object_value_get_array(iVar0, "2spwia");
	iVar63 = datafile::_object_value_get_array(iVar0, "pcl");
	iVar64 = datafile::_object_value_get_array(iVar0, "ocl");
	iVar65 = datafile::_object_value_get_array(iVar0, "arrt");
	iVar1 = 0;
	while (iVar1 <= (Global_1617379.f_25 - 1))
	{
		if (iVar1 < 4)
		{
			if (iVar2 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/] = { datafile::_array_value_get_vector3(iVar2, iVar1) };
			}
			if (iVar17 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3024 = datafile::_array_value_get_integer(iVar17, iVar1);
			}
			if (iVar18 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3045 = datafile::_array_value_get_integer(iVar18, iVar1);
			}
			if (iVar19 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3706 = datafile::_array_value_get_integer(iVar19, iVar1);
			}
			if (datafile::_array_value_get_type(iVar20, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3707 = datafile::_array_value_get_integer(iVar20, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3707 = 0;
			}
			if (iVar21 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3996 = datafile::_array_value_get_integer(iVar21, iVar1);
			}
			if (iVar22 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3997 = datafile::_array_value_get_integer(iVar22, iVar1);
			}
			if (iVar23 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3026 = datafile::_array_value_get_integer(iVar23, iVar1);
			}
			if (iVar24 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3119 = datafile::_array_value_get_integer(iVar24, iVar1);
			}
			if (iVar25 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4197 = datafile::_array_value_get_integer(iVar25, iVar1);
			}
			if (iVar26 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3023 = datafile::_array_value_get_integer(iVar26, iVar1);
			}
			if (iVar29 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3025 = datafile::_array_value_get_integer(iVar29, iVar1);
			}
			if (iVar27 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2729 = datafile::_array_value_get_integer(iVar27, iVar1);
			}
			if (iVar28 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2730 = datafile::_array_value_get_integer(iVar28, iVar1);
			}
			if (iVar30 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3046 = datafile::_array_value_get_integer(iVar30, iVar1);
			}
			if (iVar31 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4198 = datafile::_array_value_get_integer(iVar31, iVar1);
			}
			if (iVar32 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_4199 = datafile::_array_value_get_integer(iVar32, iVar1);
			}
			if (iVar33 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_32 = datafile::_array_value_get_integer(iVar33, iVar1);
			}
			if (iVar34 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_33 = datafile::_array_value_get_integer(iVar34, iVar1);
			}
			if (datafile::_array_value_get_type(iVar35, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_34 = datafile::_array_value_get_integer(iVar35, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_34 = 0;
			}
			if (iVar36 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_36 = datafile::_array_value_get_integer(iVar36, iVar1);
			}
			if (iVar38 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2724 = datafile::_array_value_get_integer(iVar38, iVar1);
			}
			if (iVar39 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2726 = datafile::_array_value_get_integer(iVar39, iVar1);
			}
			if (iVar40 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2722 = datafile::_array_value_get_integer(iVar40, iVar1);
			}
			if (iVar41 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2721 = datafile::_array_value_get_integer(iVar41, iVar1);
			}
			if (datafile::_array_value_get_type(iVar43, iVar1) == 2 && iVar43 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2723 = datafile::_array_value_get_integer(iVar43, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2723 = 60000;
			}
			if (datafile::_array_value_get_type(iVar44, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2876 = datafile::_array_value_get_integer(iVar44, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2876 = 0;
			}
			if (datafile::_array_value_get_type(iVar45, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2875 = datafile::_array_value_get_integer(iVar45, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2875 = 0;
			}
			if (datafile::_array_value_get_type(iVar47, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2877 = datafile::_array_value_get_integer(iVar47, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2877 = 60000;
			}
			if (datafile::_array_value_get_type(iVar46, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2878 = datafile::_array_value_get_integer(iVar46, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2878 = 0;
			}
			if (iVar48 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_59 = datafile::_array_value_get_integer(iVar48, iVar1);
			}
			if (iVar49 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_60 = datafile::_array_value_get_integer(iVar49, iVar1);
			}
			if (datafile::_array_value_get_type(iVar50, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_177 = datafile::_array_value_get_integer(iVar50, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_177 = -1;
			}
			if (datafile::_array_value_get_type(iVar51, iVar1) == 2 && datafile::_array_value_get_type(iVar52, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_296 = datafile::_array_value_get_integer(iVar51, iVar1);
				Global_1617379.f_80[iVar1 /*6968*/].f_297 = datafile::_array_value_get_integer(iVar52, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_296 = -1;
				Global_1617379.f_80[iVar1 /*6968*/].f_297 = -1;
			}
			if (iVar55 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_178 = datafile::_array_value_get_integer(iVar55, iVar1);
			}
			if (iVar56 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_179 = datafile::_array_value_get_integer(iVar56, iVar1);
			}
			if (datafile::_array_value_get_type(iVar53, iVar1) == 2 && datafile::_array_value_get_type(iVar54, iVar1) == 2)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_416 = datafile::_array_value_get_integer(iVar53, iVar1);
				Global_1617379.f_80[iVar1 /*6968*/].f_417 = datafile::_array_value_get_integer(iVar54, iVar1);
			}
			else
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_416 = -1;
				Global_1617379.f_80[iVar1 /*6968*/].f_417 = -1;
			}
			if (iVar57 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_298 = datafile::_array_value_get_integer(iVar57, iVar1);
			}
			if (iVar58 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_299 = datafile::_array_value_get_integer(iVar58, iVar1);
			}
			if (iVar59 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_55 = datafile::_array_value_get_integer(iVar59, iVar1);
			}
			if (iVar60 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_56 = datafile::_array_value_get_integer(iVar60, iVar1);
			}
			if (iVar61 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2725 = datafile::_array_value_get_integer(iVar61, iVar1);
			}
			if (iVar62 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2727 = datafile::_array_value_get_integer(iVar62, iVar1);
			}
			if (iVar42 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_2728 = datafile::_array_value_get_integer(iVar42, iVar1);
			}
			if (iVar37 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_3 = datafile::_array_value_get_float(iVar37, iVar1);
			}
			if (iVar63 != 0)
			{
				Global_1617379.f_27953[iVar1] = datafile::_array_value_get_integer(iVar63, iVar1);
			}
			if (iVar64 != 0)
			{
				Global_1617379.f_27958[iVar1] = datafile::_array_value_get_integer(iVar64, iVar1);
			}
			if (iVar65 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_35 = datafile::_array_value_get_integer(iVar65, iVar1);
			}
			if (iVar3 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_14 = datafile::_array_value_get_integer(iVar3, iVar1);
			}
			if (iVar4 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_15 = { datafile::_array_value_get_vector3(iVar4, iVar1) };
			}
			if (iVar5 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_18 = datafile::_array_value_get_integer(iVar5, iVar1);
			}
			if (iVar6 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_19 = { datafile::_array_value_get_vector3(iVar6, iVar1) };
			}
			if (iVar7 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_22 = datafile::_array_value_get_integer(iVar7, iVar1);
			}
			if (iVar8 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_23 = datafile::_array_value_get_integer(iVar8, iVar1);
			}
			if (iVar9 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_24 = datafile::_array_value_get_integer(iVar9, iVar1);
			}
			if (iVar10 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_25 = datafile::_array_value_get_integer(iVar10, iVar1);
			}
			if (iVar11 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_26 = datafile::_array_value_get_integer(iVar11, iVar1);
			}
			if (iVar12 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_27 = datafile::_array_value_get_integer(iVar12, iVar1);
			}
			if (iVar13 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_28 = datafile::_array_value_get_integer(iVar13, iVar1);
			}
			if (iVar14 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_29 = datafile::_array_value_get_integer(iVar14, iVar1);
			}
			if (iVar15 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_30 = datafile::_array_value_get_integer(iVar15, iVar1);
			}
			if (iVar16 != 0)
			{
				Global_1617379.f_80[iVar1 /*6968*/].f_31 = datafile::_array_value_get_integer(iVar16, iVar1);
			}
		}
		iVar1++;
	}
}

void func_157(int iParam0)//Position - 0x17323
{
	int iVar0;
	
	iVar0 = datafile::_object_value_get_object(iParam0, "rule");
	Global_1617379.f_44 = datafile::_object_value_get_integer(iVar0, "time");
	Global_1617379.f_46 = datafile::_object_value_get_integer(iVar0, "score");
	Global_1617379.f_57 = datafile::_object_value_get_integer(iVar0, "prule");
	Global_1617379.f_41498 = datafile::_object_value_get_integer(iVar0, "ptyp");
	Global_1617379.f_47 = datafile::_object_value_get_integer(iVar0, "blip");
	Global_1617379.f_49 = datafile::_object_value_get_integer(iVar0, "tag");
	Global_1617379.f_50 = datafile::_object_value_get_integer(iVar0, "voice");
	Global_1617379.f_51 = datafile::_object_value_get_integer(iVar0, "radio");
	Global_1617379.f_52 = datafile::_object_value_get_integer(iVar0, "aim");
	Global_1617379.f_34298 = datafile::_object_value_get_integer(iVar0, "pol");
	Global_1617379.f_40 = datafile::_object_value_get_integer(iVar0, "liv");
	Global_1617379.f_33657 = datafile::_object_value_get_integer(iVar0, "traf");
	Global_1617379.f_70978 = datafile::_object_value_get_integer(iVar0, "tod");
	Global_1617379.f_70963 = datafile::_object_value_get_integer(iVar0, "weth");
	Global_1617379.f_70980 = datafile::_object_value_get_integer(iVar0, "apeds");
	Global_1617379.f_70979 = datafile::_object_value_get_integer(iVar0, "vehd");
	Global_1617379.f_55 = datafile::_object_value_get_integer(iVar0, "vdm");
	Global_1617379.f_53 = datafile::_object_value_get_integer(iVar0, "tdm");
	Global_1617379.f_27953[0] = datafile::_object_value_get_integer(iVar0, "pcr");
	Global_1617379.f_27958[0] = datafile::_object_value_get_integer(iVar0, "ocr");
}

void func_158(int iParam0, int iParam1, int iParam2)//Position - 0x1749B
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	char cVar4[16];
	int iVar8;
	char[] cVar9[8];
	char cVar11[16];
	int iVar15;
	int iVar16;
	char cVar17[16];
	int iVar21;
	int iVar22;
	int iVar23;
	int iVar24;
	int iVar25;
	int iVar26;
	char* sVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	char cVar31[16];
	char cVar35[16];
	int iVar39;
	int iVar40;
	int iVar41;
	
	iVar0 = datafile::_object_value_get_object(iParam0, "gen");
	Global_1617379 = datafile::_object_value_get_integer(iVar0, "type");
	Global_1617379.f_9 = datafile::_object_value_get_boolean(iVar0, "ngjob");
	gameplay::is_bit_set(Global_1617379.f_7, 0);
	iVar1 = datafile::_object_value_get_boolean(iVar0, "photo");
	if (iVar1)
	{
		gameplay::set_bit(&(Global_1617379.f_7), 0);
	}
	else
	{
		gameplay::clear_bit(&(Global_1617379.f_7), 0);
	}
	if (datafile::_object_value_get_type(iVar0, "ivm") == 2)
	{
		Global_1617379.f_34248 = datafile::_object_value_get_integer(iVar0, "ivm");
	}
	if (datafile::_object_value_get_type(iVar0, "fixcam") == 2)
	{
		Global_1617379.f_74363 = datafile::_object_value_get_integer(iVar0, "fixcam");
	}
	else
	{
		Global_1617379.f_74363 = 0;
	}
	Global_1617379.f_4 = datafile::_object_value_get_integer(iVar0, "optbs");
	Global_1617379.f_70 = { datafile::_object_value_get_vector3(iVar0, "camo") };
	Global_1617379.f_73 = { datafile::_object_value_get_vector3(iVar0, "camro") };
	Global_1617379.f_64 = { datafile::_object_value_get_vector3(iVar0, "cam") };
	Global_1617379.f_76 = datafile::_object_value_get_float(iVar0, "camh");
	Global_1617379.f_70340 = datafile::_object_value_get_float(iVar0, "dmbds");
	Global_1617379.f_58 = { datafile::_object_value_get_vector3(iVar0, "phpo") };
	StringCopy(&(Global_1617379.f_70523[0 /*16*/]), datafile::_object_value_get_string(iVar0, "szTag"), 64);
	StringCopy(&cVar4, "nrcid", 16);
	if (iParam2)
	{
		iVar2 = 0;
		while (iVar2 <= 1)
		{
			StringCopy(&cVar4, "nrcid", 16);
			StringIntConCat(&cVar4, iVar2, 16);
			StringCopy(&(Global_1617379.f_70658[iVar2 /*6*/]), datafile::_object_value_get_string(iVar0, &cVar4), 24);
			iVar2++;
		}
	}
	if (func_47())
	{
		Global_1617379.f_2 = datafile::_object_value_get_integer(iVar0, "subtype");
		Global_1617379.f_88495 = datafile::_object_value_get_integer(iVar0, "adverm");
		Global_1617379.f_74360 = datafile::_object_value_get_integer(iVar0, "testcomplete");
		if (((Global_1617379.f_2 == 6 || Global_1617379.f_2 == 5) || Global_1617379.f_2 == 4) || Global_1617379.f_2 == 9)
		{
			if (datafile::_object_value_get_type(iVar0, "teamBal") == 2)
			{
				Global_1617379.f_74362 = datafile::_object_value_get_integer(iVar0, "numRounds");
			}
			else
			{
				Global_1617379.f_74362 = 1;
			}
			if (Global_1617379.f_74362 < 1)
			{
				Global_1617379.f_74362 = 1;
			}
		}
		if (datafile::_object_value_get_type(iVar0, "teamBal") == 2)
		{
			Global_1617379.f_74364 = datafile::_object_value_get_integer(iVar0, "teamBal");
		}
		else
		{
			Global_1617379.f_74364 = 5;
		}
	}
	Global_1617379.f_74361 = datafile::_object_value_get_integer(iVar0, "testcomplete");
	Global_1617379.f_45 = datafile::_object_value_get_integer(iVar0, "endtype");
	Global_1617379.f_11 = datafile::_object_value_get_integer(iVar0, "menubs");
	if (datafile::_object_value_get_type(iVar0, "ovrpc") == 2)
	{
		Global_1617379.f_47407 = datafile::_object_value_get_integer(iVar0, "ovrpc");
	}
	else
	{
		Global_1617379.f_47407 = -1;
	}
	Global_1617379.f_12 = datafile::_object_value_get_integer(iVar0, "menubs2");
	if (datafile::_object_value_get_type(iVar0, "menubs3") == 2)
	{
		Global_1617379.f_13 = datafile::_object_value_get_integer(iVar0, "menubs3");
	}
	else
	{
		Global_1617379.f_13 = 0;
	}
	Global_1617379.f_14 = datafile::_object_value_get_integer(iVar0, "menubs4");
	Global_1617379.f_15 = datafile::_object_value_get_integer(iVar0, "menubs5");
	Global_1617379.f_16 = datafile::_object_value_get_integer(iVar0, "menubs6");
	Global_1617379.f_17 = datafile::_object_value_get_integer(iVar0, "menubs7");
	Global_1617379.f_18 = datafile::_object_value_get_integer(iVar0, "menubs8");
	if (gameplay::is_bit_set(Global_1617379.f_15, 31))
	{
	}
	Global_1617379.f_16 = datafile::_object_value_get_integer(iVar0, "menubs6");
	if (gameplay::is_bit_set(Global_1617379.f_16, 16))
	{
	}
	if (datafile::_object_value_get_type(iVar0, "hptfb") == 2)
	{
		Global_1617379.f_79 = datafile::_object_value_get_integer(iVar0, "hptfb");
	}
	else
	{
		Global_1617379.f_79 = 0;
	}
	Global_1617379.f_34297 = datafile::_object_value_get_integer(iVar0, "teamvbs");
	Global_1617379.f_19 = datafile::_object_value_get_integer(iVar0, "cncmbs");
	Global_1617379.f_85850 = datafile::_object_value_get_integer(iVar0, "todhr");
	Global_1617379.f_85851 = datafile::_object_value_get_integer(iVar0, "todmn");
	Global_1617379.f_10 = datafile::_object_value_get_integer(iVar0, "cmpts");
	Global_1617379.f_43 = datafile::_object_value_get_integer(iVar0, "rank");
	Global_1617379.f_43 = datafile::_object_value_get_integer(iVar0, "rank");
	Global_1617379.f_70982 = datafile::_object_value_get_integer(iVar0, "charcon");
	Global_1617379.f_70982 = datafile::_object_value_get_integer(iVar0, "char");
	Global_1617379.f_70984 = datafile::_object_value_get_integer(iVar0, "xpr");
	Global_1617379.f_70985 = datafile::_object_value_get_integer(iVar0, "cshr");
	Global_1617379.f_70989 = datafile::_object_value_get_integer(iVar0, "ctsc");
	if (datafile::_object_value_get_type(iVar0, "ecsbs") == 2)
	{
		Global_1617379.f_83027.f_16 = datafile::_object_value_get_integer(iVar0, "ecsbs");
	}
	else
	{
		Global_1617379.f_83027.f_16 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ecsbs2") == 2)
	{
		Global_1617379.f_83027.f_17 = datafile::_object_value_get_integer(iVar0, "ecsbs2");
	}
	else
	{
		Global_1617379.f_83027.f_17 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ecsrng") == 2)
	{
		Global_1617379.f_83027.f_62 = datafile::_object_value_get_integer(iVar0, "ecsrng");
	}
	else
	{
		Global_1617379.f_83027.f_62 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ecscp") == 5)
	{
		Global_1617379.f_83027.f_54 = { datafile::_object_value_get_vector3(iVar0, "ecscp") };
	}
	else
	{
		Global_1617379.f_83027.f_54 = { 0f, 0f, 0f };
	}
	if (datafile::_object_value_get_type(iVar0, "ecscr") == 3)
	{
		Global_1617379.f_83027.f_60 = datafile::_object_value_get_float(iVar0, "ecscr");
	}
	else
	{
		Global_1617379.f_83027.f_60 = 0f;
	}
	if (datafile::_object_value_get_type(iVar0, "ecscs") == 5)
	{
		Global_1617379.f_83027.f_57 = { datafile::_object_value_get_vector3(iVar0, "ecscs") };
	}
	else
	{
		Global_1617379.f_83027.f_57 = { 0f, 0f, 0f };
	}
	iVar8 = 0;
	while (iVar8 <= 29)
	{
		StringCopy(&cVar9, "ecein", 8);
		StringIntConCat(&cVar9, iVar8, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_83027.f_63[iVar8 /*12*/].f_1 = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_83027.f_63[iVar8 /*12*/].f_1 = -1;
		}
		StringCopy(&cVar9, "ecetp", 8);
		StringIntConCat(&cVar9, iVar8, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_83027.f_63[iVar8 /*12*/] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_83027.f_63[iVar8 /*12*/] = -1;
		}
		StringCopy(&cVar9, "ecebs", 8);
		StringIntConCat(&cVar9, iVar8, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_83027.f_63[iVar8 /*12*/].f_2 = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_83027.f_63[iVar8 /*12*/].f_2 = 0;
		}
		StringCopy(&cVar9, "ecehn", 8);
		StringIntConCat(&cVar9, iVar8, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_83027.f_63[iVar8 /*12*/].f_4), datafile::_object_value_get_string(iVar0, &cVar9), 32);
		}
		else
		{
			StringCopy(&(Global_1617379.f_83027.f_63[iVar8 /*12*/].f_4), "", 32);
		}
		iVar8++;
	}
	if (datafile::_object_value_get_type(iVar0, "clbscr") == 2)
	{
		Global_1617379.f_84041 = datafile::_object_value_get_integer(iVar0, "clbscr");
	}
	else
	{
		Global_1617379.f_84041 = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "disar") == 2)
	{
		Global_1617379.f_84042 = datafile::_object_value_get_integer(iVar0, "disar");
	}
	else
	{
		Global_1617379.f_84042 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "rlopt") == 2)
	{
		Global_1617379.f_83830 = datafile::_object_value_get_integer(iVar0, "rlopt");
	}
	else
	{
		Global_1617379.f_83830 = 0;
	}
	iVar15 = datafile::_object_value_get_integer(iVar0, "gpmn");
	Global_1617379.f_78 = iVar15;
	iVar16 = datafile::_object_value_get_integer(iVar0, "musx");
	if (iVar16 != -1)
	{
		Global_1617379.f_70977 = iVar16;
	}
	else
	{
		Global_1617379.f_70977 = -1;
	}
	Global_1617379.f_70976 = datafile::_object_value_get_integer(iVar0, "ausc");
	Global_1617379.f_21 = datafile::_object_value_get_integer(iVar0, "minNu");
	Global_1617379.f_20 = datafile::_object_value_get_integer(iVar0, "num");
	if (Global_1617379.f_20 == -1)
	{
		Global_1617379.f_20 = 30;
	}
	Global_1617379.f_22 = datafile::_object_value_get_integer(iVar0, "time");
	Global_1617379.f_61 = { datafile::_object_value_get_vector3(iVar0, "start") };
	StringCopy(&cVar17, "apart", 16);
	Global_1617379.f_83461 = { datafile::_object_value_get_vector3(iVar0, &cVar17) };
	Global_1617379.f_83475 = datafile::_object_value_get_integer(iVar0, "apwbs");
	Global_1617379.f_83464 = datafile::_object_value_get_integer(iVar0, "wrploc");
	Global_1617379.f_83478 = datafile::_object_value_get_integer(iVar0, "twrst");
	Global_1617379.f_83476 = datafile::_object_value_get_integer(iVar0, "iplop");
	Global_1617379.f_83477 = datafile::_object_value_get_integer(iVar0, "intop");
	if (datafile::_object_value_get_type(iVar0, "copteam") == 2)
	{
		Global_1617379.f_34299 = datafile::_object_value_get_integer(iVar0, "copteam");
	}
	else
	{
		Global_1617379.f_34299 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "pttl") == 4)
	{
		StringCopy(&(Global_1617379.f_70674), datafile::_object_value_get_string(iVar0, "pttl"), 64);
	}
	else
	{
		StringCopy(&(Global_1617379.f_70674), "", 64);
	}
	iVar21 = 0;
	while (iVar21 <= 21)
	{
		StringCopy(&cVar9, "dmvft", 8);
		StringIntConCat(&cVar9, iVar21, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_34213[iVar21] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_34213[iVar21] = 0;
		}
		iVar21++;
	}
	iVar15 = 0;
	while (iVar15 <= 3)
	{
		iVar22 = 0;
		while (iVar22 <= 1)
		{
			StringCopy(&cVar9, "t", 8);
			StringIntConCat(&cVar9, iVar15, 8);
			StringConCat(&cVar9, "fs", 8);
			StringIntConCat(&cVar9, iVar22, 8);
			if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
			{
				StringCopy(&(Global_1617379.f_86074[iVar15 /*33*/][iVar22 /*16*/]), datafile::_object_value_get_string(iVar0, &cVar9), 64);
			}
			else
			{
				StringCopy(&(Global_1617379.f_86074[iVar15 /*33*/][iVar22 /*16*/]), "", 64);
			}
			iVar22++;
		}
		iVar22 = 0;
		while (iVar22 <= 21)
		{
			StringCopy(&cVar9, "t", 8);
			StringIntConCat(&cVar9, iVar15, 8);
			StringConCat(&cVar9, "vl", 8);
			StringIntConCat(&cVar9, iVar22, 8);
			if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
			{
				Global_1617379.f_33695[iVar15 /*23*/][iVar22] = datafile::_object_value_get_integer(iVar0, &cVar9);
			}
			else
			{
				Global_1617379.f_33695[iVar15 /*23*/][iVar22] = 0;
			}
			iVar22++;
		}
		StringCopy(&cVar9, "t", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		StringConCat(&cVar9, "dvl", 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_34161[iVar15] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_34161[iVar15] = 0;
		}
		StringCopy(&cVar9, "t", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		StringConCat(&cVar9, "dv", 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_34166[iVar15] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_34166[iVar15] = 0;
		}
		iVar23 = 0;
		while (iVar23 <= 3)
		{
			iVar22 = 0;
			while (iVar22 <= 21)
			{
				StringCopy(&cVar9, "t", 8);
				StringIntConCat(&cVar9, iVar15, 8);
				StringIntConCat(&cVar9, iVar23, 8);
				StringConCat(&cVar9, "rv", 8);
				StringIntConCat(&cVar9, iVar22, 8);
				if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
				{
					Global_1617379.f_33788[iVar15 /*93*/][iVar23 /*23*/][iVar22] = datafile::_object_value_get_integer(iVar0, &cVar9);
				}
				else
				{
					Global_1617379.f_33788[iVar15 /*93*/][iVar23 /*23*/][iVar22] = 0;
				}
				iVar22++;
			}
			StringCopy(&cVar9, "t", 8);
			StringIntConCat(&cVar9, iVar15, 8);
			StringIntConCat(&cVar9, iVar23, 8);
			StringConCat(&cVar9, "dvl", 8);
			if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
			{
				Global_1617379.f_34171[iVar15 /*5*/][iVar23] = datafile::_object_value_get_integer(iVar0, &cVar9);
			}
			else
			{
				Global_1617379.f_34171[iVar15 /*5*/][iVar23] = 0;
			}
			StringCopy(&cVar9, "t", 8);
			StringIntConCat(&cVar9, iVar15, 8);
			StringIntConCat(&cVar9, iVar23, 8);
			StringConCat(&cVar9, "dv", 8);
			if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
			{
				Global_1617379.f_34192[iVar15 /*5*/][iVar23] = datafile::_object_value_get_integer(iVar0, &cVar9);
			}
			else
			{
				Global_1617379.f_34192[iVar15 /*5*/][iVar23] = 0;
			}
			iVar23++;
		}
		StringCopy(&cVar9, "dmaskg", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_70968[iVar15] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_70968[iVar15] = 0;
		}
		StringCopy(&cVar9, "ofovr", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_74505[iVar15] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_74505[iVar15] = -1;
		}
		StringCopy(&cVar9, "tmrfs", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_86009[iVar15 /*16*/]), datafile::_object_value_get_string(iVar0, &cVar9), 64);
		}
		else
		{
			StringCopy(&(Global_1617379.f_86009[iVar15 /*16*/]), "", 64);
		}
		StringCopy(&cVar9, "tmtss", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_86207[iVar15 /*6*/]), datafile::_object_value_get_string(iVar0, &cVar9), 24);
		}
		else
		{
			StringCopy(&(Global_1617379.f_86207[iVar15 /*6*/]), "", 24);
		}
		StringCopy(&cVar9, "tmrph", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_86232[iVar15 /*6*/]), datafile::_object_value_get_string(iVar0, &cVar9), 24);
		}
		else
		{
			StringCopy(&(Global_1617379.f_86232[iVar15 /*6*/]), "", 24);
		}
		StringCopy(&cVar9, "tmtsr", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_86257[iVar15] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_86257[iVar15] = 0;
		}
		StringCopy(&cVar9, "pmscid", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_84043[iVar15] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_84043[iVar15] = -1;
		}
		StringCopy(&cVar9, "qran", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_70990[iVar15] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_70990[iVar15] = -1;
		}
		StringCopy(&cVar9, "cwtit", 8);
		if (iVar15 > 0)
		{
			StringIntConCat(&cVar9, iVar15, 8);
		}
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_88456[iVar15 /*4*/]), datafile::_object_value_get_string(iVar0, &cVar9), 16);
		}
		else
		{
			StringCopy(&(Global_1617379.f_88456[iVar15 /*4*/]), "", 16);
		}
		StringCopy(&cVar9, "cwstr", 8);
		if (iVar15 > 0)
		{
			StringIntConCat(&cVar9, iVar15, 8);
		}
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_88473[iVar15 /*4*/]), datafile::_object_value_get_string(iVar0, &cVar9), 16);
		}
		else
		{
			StringCopy(&(Global_1617379.f_88473[iVar15 /*4*/]), "", 16);
		}
		StringCopy(&cVar9, "cwspre", 8);
		if (iVar15 > 0)
		{
			StringIntConCat(&cVar9, iVar15, 8);
		}
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_88490[iVar15] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_88490[iVar15] = -1;
		}
		StringCopy(&cVar9, "rtveft", 8);
		StringIntConCat(&cVar9, iVar15, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_88499[iVar15] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_88499[iVar15] = 0;
		}
		iVar15++;
	}
	if (datafile::_object_value_get_type(iVar0, "ctmrs") == 4)
	{
		StringCopy(&(Global_1617379.f_70690), datafile::_object_value_get_string(iVar0, "ctmrs"), 24);
	}
	else
	{
		StringCopy(&(Global_1617379.f_70690), "", 24);
	}
	iVar2 = 0;
	while (iVar2 < 6)
	{
		StringCopy(&cVar9, "avss", 8);
		StringIntConCat(&cVar9, iVar2, 8);
		Global_1617379.f_74451[iVar2] = datafile::_object_value_get_integer(iVar0, &cVar9);
		iVar3 = func_163(iVar2);
		while (iVar3 <= 31)
		{
			gameplay::clear_bit(&(Global_1617379.f_74451[iVar2]), iVar3);
			iVar3++;
		}
		iVar2++;
	}
	if (datafile::_object_value_get_type(iVar0, "vsclout") == 2)
	{
		Global_1617379.f_74458[0] = datafile::_object_value_get_integer(iVar0, "vsclout");
	}
	else
	{
		Global_1617379.f_74458[0] = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "vsthout") == 2)
	{
		Global_1617379.f_74458[1] = datafile::_object_value_get_integer(iVar0, "vsthout");
	}
	else
	{
		Global_1617379.f_74458[1] = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "vshwout") == 2)
	{
		Global_1617379.f_74458[3] = datafile::_object_value_get_integer(iVar0, "vshwout");
	}
	else
	{
		Global_1617379.f_74458[3] = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "vsenout") == 2)
	{
		Global_1617379.f_74458[2] = datafile::_object_value_get_integer(iVar0, "vsenout");
	}
	else
	{
		Global_1617379.f_74458[2] = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "vstgout") == 2)
	{
		Global_1617379.f_74458[4] = datafile::_object_value_get_integer(iVar0, "vstgout");
	}
	else
	{
		Global_1617379.f_74458[4] = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "vsbsout") == 2)
	{
		Global_1617379.f_74458[5] = datafile::_object_value_get_integer(iVar0, "vsbsout");
	}
	else
	{
		Global_1617379.f_74458[5] = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "alfutvs") == 2)
	{
		Global_1617379.f_74465 = datafile::_object_value_get_integer(iVar0, "alfutvs");
	}
	else
	{
		Global_1617379.f_74465 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "vsdfstc") == 2)
	{
		Global_1617379.f_74466 = datafile::_object_value_get_integer(iVar0, "vsdfstc");
	}
	else if (((!gameplay::is_bit_set(Global_1617379.f_12, 23) && !gameplay::is_bit_set(Global_1617379.f_12, 24)) && !gameplay::is_bit_set(Global_1617379.f_13, 31)) && !gameplay::is_bit_set(Global_1617379.f_14, 8))
	{
		Global_1617379.f_74466 = -1;
	}
	else if (((!gameplay::is_bit_set(Global_1617379.f_12, 23) && gameplay::is_bit_set(Global_1617379.f_12, 24)) && !gameplay::is_bit_set(Global_1617379.f_13, 31)) && !gameplay::is_bit_set(Global_1617379.f_14, 8))
	{
		Global_1617379.f_74466 = 0;
	}
	else if (((gameplay::is_bit_set(Global_1617379.f_12, 23) && !gameplay::is_bit_set(Global_1617379.f_12, 24)) && !gameplay::is_bit_set(Global_1617379.f_13, 31)) && !gameplay::is_bit_set(Global_1617379.f_14, 8))
	{
		Global_1617379.f_74466 = 1;
	}
	else if (((!gameplay::is_bit_set(Global_1617379.f_12, 23) && !gameplay::is_bit_set(Global_1617379.f_12, 24)) && gameplay::is_bit_set(Global_1617379.f_13, 31)) && !gameplay::is_bit_set(Global_1617379.f_14, 8))
	{
		Global_1617379.f_74466 = 2;
	}
	else if (((!gameplay::is_bit_set(Global_1617379.f_12, 23) && !gameplay::is_bit_set(Global_1617379.f_12, 24)) && !gameplay::is_bit_set(Global_1617379.f_13, 31)) && gameplay::is_bit_set(Global_1617379.f_14, 8))
	{
		Global_1617379.f_74466 = 3;
	}
	if (datafile::_object_value_get_type(iVar0, "dspteam") == 2)
	{
		Global_1617379.f_84066 = datafile::_object_value_get_integer(iVar0, "dspteam");
	}
	else
	{
		Global_1617379.f_84066 = -1;
	}
	if (!func_176() && !func_162())
	{
		if (network::_0xF53E48461B71EECB(iParam1))
		{
			StringCopy(&(Global_1617379.f_70372), datafile::_object_value_get_string(iVar0, "nm"), 64);
		}
		else
		{
			StringCopy(&(Global_1617379.f_70372), func_161(), 64);
		}
	}
	else
	{
		StringCopy(&(Global_1617379.f_70372), datafile::_object_value_get_string(iVar0, "nm"), 64);
	}
	Global_1617379.f_71016 = datafile::_object_value_get_integer(iVar0, "mgrk");
	Global_1617379.f_71017 = datafile::_object_value_get_integer(iVar0, "mght");
	StringCopy(&(Global_1617379.f_70394[0 /*16*/]), "", 64);
	StringCopy(&(Global_1617379.f_70394[1 /*16*/]), "", 64);
	StringCopy(&(Global_1617379.f_70394[2 /*16*/]), "", 64);
	StringCopy(&(Global_1617379.f_70394[3 /*16*/]), "", 64);
	StringCopy(&(Global_1617379.f_70394[4 /*16*/]), "", 64);
	StringCopy(&(Global_1617379.f_70394[5 /*16*/]), "", 64);
	StringCopy(&(Global_1617379.f_70394[6 /*16*/]), "", 64);
	StringCopy(&(Global_1617379.f_70394[7 /*16*/]), "", 64);
	iVar24 = datafile::_object_value_get_array(iVar0, "dec");
	iVar25 = ui::_0x43E4111189E54F0E(datafile::_array_value_get_string(iVar24, 0));
	if (iParam1 == -1 || network::_0xF53E48461B71EECB(iParam1))
	{
		if (iVar25 <= 63)
		{
			iVar2 = 0;
			while (iVar2 <= (datafile::_array_value_get_size(iVar24) - 1))
			{
				StringCopy(&(Global_1617379.f_70394[iVar2 /*16*/]), datafile::_array_value_get_string(iVar24, iVar2), 64);
				iVar2++;
			}
		}
		else
		{
			sVar27 = datafile::_array_value_get_string(iVar24, 0);
			iVar2 = 0;
			while (iVar2 <= 7)
			{
				if (iVar25 > (63 * iVar2))
				{
					if (iVar25 > (63 * iVar2) + 63)
					{
						iVar26 = (63 * iVar2) + 63;
					}
					else
					{
						iVar26 = iVar25;
					}
					StringCopy(&(Global_1617379.f_70394[iVar2 /*16*/]), ui::_get_text_substring_slice(sVar27, (63 * iVar2), iVar26), 64);
				}
				iVar2++;
			}
		}
	}
	else
	{
		StringCopy(&(Global_1617379.f_70394[0 /*16*/]), func_161(), 64);
	}
	Global_1617379.f_25 = datafile::_object_value_get_integer(iVar0, "tnum");
	Global_1617379.f_26 = datafile::_object_value_get_integer(iVar0, "mtnum");
	if (!func_160())
	{
		if (!gameplay::is_bit_set(Global_1617379.f_15, 14))
		{
			Global_1617379.f_24 = Global_1617379.f_25;
		}
		else if (datafile::_object_value_get_type(iVar0, "dtn") == 2)
		{
			Global_1617379.f_24 = datafile::_object_value_get_integer(iVar0, "dtn");
		}
		else
		{
			Global_1617379.f_24 = Global_1617379.f_25;
		}
	}
	else
	{
		Global_1617379.f_24 = Global_1617379.f_25;
	}
	if ((Global_1617379 == 0 && Global_2434762.f_546.f_11 != 0) && Global_1617379.f_25 != Global_2434762.f_546.f_11)
	{
		Global_1617379.f_25 = Global_2434762.f_546.f_11;
		Global_1617379.f_24 = Global_1617379.f_25;
	}
	if (Global_1617379 == 1)
	{
		if (Global_1617379.f_25 > 4)
		{
			Global_1617379.f_25 = 4;
		}
	}
	else if (Global_1617379.f_25 > 4)
	{
		Global_1617379.f_25 = 4;
	}
	Global_1617379.f_64847 = datafile::_object_value_get_integer(iVar0, "atmdm");
	Global_1617379.f_39 = datafile::_object_value_get_integer(iVar0, "trel");
	Global_1617379.f_70986 = datafile::_object_value_get_integer(iVar0, "ltm");
	Global_1617379.f_67 = { datafile::_object_value_get_vector3(iVar0, "vcpr") };
	if (datafile::_object_value_get_type(iVar0, "hstat") == 2)
	{
		Global_1617379.f_70957 = datafile::_object_value_get_integer(iVar0, "hstat");
	}
	else
	{
		Global_1617379.f_70957 = 0;
	}
	iVar28 = 0;
	while (iVar28 <= 19)
	{
		StringCopy(&cVar9, "rzpos", 8);
		StringIntConCat(&cVar9, iVar28, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 5)
		{
			Global_1617379.f_47343[iVar28 /*3*/] = { datafile::_object_value_get_vector3(iVar0, &cVar9) };
		}
		else
		{
			Global_1617379.f_47343[iVar28 /*3*/] = { 0f, 0f, 0f };
		}
		iVar28++;
	}
	if (datafile::_object_value_get_type(iVar0, "numzr") == 2)
	{
		Global_1617379.f_47404 = datafile::_object_value_get_integer(iVar0, "numzr");
	}
	else
	{
		Global_1617379.f_47404 = 0;
	}
	iVar29 = datafile::_object_value_get_object(iParam0, "ene");
	iVar30 = datafile::_object_value_get_integer(iVar29, "no");
	iVar2 = 0;
	while (iVar2 < 5)
	{
		StringCopy(&cVar9, "hpped", 8);
		if (iVar2 > 0)
		{
			StringIntConCat(&cVar9, iVar2 + 1, 8);
		}
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2 && iVar30 > datafile::_object_value_get_integer(iVar0, &cVar9))
		{
			Global_1617379.f_64718[iVar2] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_64718[iVar2] = -1;
		}
		iVar2++;
	}
	if (datafile::_object_value_get_type(iVar0, "rsgmx") == 2 && datafile::_object_value_get_type(iVar0, "rsgnu") == 2)
	{
		Global_1617379.f_64724 = datafile::_object_value_get_integer(iVar0, "rsgmx");
		Global_1617379.f_64725 = datafile::_object_value_get_integer(iVar0, "rsgnu");
		Global_1617379.f_64726 = datafile::_object_value_get_integer(iVar0, "rsgbs");
		if (Global_1617379.f_64724 > 0 && Global_1617379.f_64725 != 0)
		{
			iVar2 = 0;
			while (iVar2 <= (Global_1617379.f_64724 - 1))
			{
				if (iVar2 < 10)
				{
					StringCopy(&cVar9, "rsg", 8);
					StringIntConCat(&cVar9, iVar2, 8);
					MemCopy(&cVar31, {cVar9}, 4);
					StringConCat(&cVar31, "mx", 16);
					MemCopy(&cVar35, {cVar9}, 4);
					StringConCat(&cVar35, "nu", 16);
					if (datafile::_object_value_get_type(iVar0, &cVar31) == 2 && datafile::_object_value_get_type(iVar0, &cVar35) == 2)
					{
						Global_1617379.f_64727[iVar2] = datafile::_object_value_get_integer(iVar0, &cVar31);
						Global_1617379.f_64738[iVar2] = datafile::_object_value_get_integer(iVar0, &cVar35);
						MemCopy(&cVar31, {cVar9}, 4);
						StringConCat(&cVar31, "bs", 16);
						Global_1617379.f_64749[iVar2] = datafile::_object_value_get_integer(iVar0, &cVar31);
					}
				}
				iVar2++;
			}
		}
	}
	if (datafile::_object_value_get_type(iVar0, "tshd") == 2)
	{
		Global_1617379.f_71009 = datafile::_object_value_get_integer(iVar0, "tshd");
	}
	else
	{
		Global_1617379.f_71009 = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "mrd") == 2)
	{
		Global_1617379.f_71010 = datafile::_object_value_get_integer(iVar0, "mrd");
	}
	else
	{
		Global_1617379.f_71010 = 15;
	}
	if (datafile::_object_value_get_type(iVar0, "srct") == 2)
	{
		Global_1617379.f_71011 = datafile::_object_value_get_integer(iVar0, "srct");
	}
	else
	{
		Global_1617379.f_71011 = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "tptbd") == 2)
	{
		Global_1617379.f_71012 = datafile::_object_value_get_integer(iVar0, "tptbd");
	}
	else
	{
		Global_1617379.f_71012 = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "tptba") == 2)
	{
		Global_1617379.f_71013 = datafile::_object_value_get_integer(iVar0, "tptba");
	}
	else
	{
		Global_1617379.f_71013 = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "atspos") == 5)
	{
		Global_1617379.f_85907 = { datafile::_object_value_get_vector3(iVar0, "atspos") };
	}
	else
	{
		Global_1617379.f_85907 = { 0f, 0f, 0f };
	}
	if (datafile::_object_value_get_type(iVar0, "atscmp") == 5)
	{
		Global_1617379.f_85901 = { datafile::_object_value_get_vector3(iVar0, "atscmp") };
	}
	else
	{
		Global_1617379.f_85901 = { 0f, 0f, 0f };
	}
	if (datafile::_object_value_get_type(iVar0, "atscmr") == 5)
	{
		Global_1617379.f_85904 = { datafile::_object_value_get_vector3(iVar0, "atscmr") };
	}
	else
	{
		Global_1617379.f_85904 = { 0f, 0f, 0f };
	}
	if (datafile::_object_value_get_type(iVar0, "atsfov") == 3)
	{
		Global_1617379.f_85910 = datafile::_object_value_get_float(iVar0, "atsfov");
	}
	else
	{
		Global_1617379.f_85910 = 45f;
	}
	if (datafile::_object_value_get_type(iVar0, "atshed") == 3)
	{
		Global_1617379.f_85911 = datafile::_object_value_get_float(iVar0, "atshed");
	}
	else
	{
		Global_1617379.f_85911 = 0f;
	}
	if (datafile::_object_value_get_type(iVar0, "atsveh") == 2)
	{
		Global_1617379.f_85912 = datafile::_object_value_get_integer(iVar0, "atsveh");
	}
	else
	{
		Global_1617379.f_85912 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "hpdt1") == 2)
	{
		Global_1617379.f_70958[0] = datafile::_object_value_get_integer(iVar0, "hpdt1");
	}
	else
	{
		Global_1617379.f_70958[0] = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "hpdt2") == 2)
	{
		Global_1617379.f_70958[1] = datafile::_object_value_get_integer(iVar0, "hpdt2");
	}
	else
	{
		Global_1617379.f_70958[1] = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "vdt") == 2)
	{
		Global_1617379.f_70961 = datafile::_object_value_get_integer(iVar0, "vdt");
	}
	else
	{
		Global_1617379.f_70961 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "hbrbs") == 2)
	{
		Global_1617379.f_84048 = datafile::_object_value_get_integer(iVar0, "hbrbs");
	}
	else
	{
		Global_1617379.f_84048 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "hbrtt") == 2)
	{
		Global_1617379.f_84049 = datafile::_object_value_get_integer(iVar0, "hbrtt");
	}
	else
	{
		Global_1617379.f_84049 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "hbrttm") == 2)
	{
		Global_1617379.f_84050 = datafile::_object_value_get_integer(iVar0, "hbrttm");
	}
	else
	{
		Global_1617379.f_84050 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "hbrtrl") == 2)
	{
		Global_1617379.f_84051 = datafile::_object_value_get_integer(iVar0, "hbrtrl");
	}
	else
	{
		Global_1617379.f_84051 = -1;
	}
	if (datafile::_object_value_get_type(iVar0, "hbrpdt") == 2)
	{
		Global_1617379.f_84053 = datafile::_object_value_get_integer(iVar0, "hbrpdt");
	}
	else
	{
		Global_1617379.f_84053 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "hbrvdt") == 2)
	{
		Global_1617379.f_84055 = datafile::_object_value_get_integer(iVar0, "hbrvdt");
	}
	else
	{
		Global_1617379.f_84055 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "hbrkt") == 2)
	{
		Global_1617379.f_84057 = datafile::_object_value_get_integer(iVar0, "hbrkt");
	}
	else
	{
		Global_1617379.f_84057 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "hbrph") == 2)
	{
		Global_1617379.f_84060 = datafile::_object_value_get_integer(iVar0, "hbrph");
	}
	else
	{
		Global_1617379.f_84060 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "hecam") == 2)
	{
		Global_1617379.f_84061 = datafile::_object_value_get_integer(iVar0, "hecam");
	}
	else
	{
		Global_1617379.f_84061 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "sdrvm") == 2)
	{
		Global_1617379.f_86275 = datafile::_object_value_get_integer(iVar0, "sdrvm");
	}
	else
	{
		Global_1617379.f_86275 = 10000;
	}
	if (datafile::_object_value_get_type(iVar0, "mdmgm") == 3)
	{
		Global_1617379.f_86276 = datafile::_object_value_get_float(iVar0, "mdmgm");
	}
	else
	{
		Global_1617379.f_86276 = 1f;
	}
	if (datafile::_object_value_get_type(iVar0, "vdt") == 2)
	{
		Global_1617379.f_88496 = datafile::_object_value_get_integer(iVar0, "sphft");
	}
	else
	{
		Global_1617379.f_88496 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "vdt") == 2)
	{
		Global_1617379.f_88497 = datafile::_object_value_get_integer(iVar0, "cmxdftms");
	}
	else
	{
		Global_1617379.f_88497 = 0;
	}
	if (((datafile::_object_value_get_type(iVar0, "hmmtt") == 2 && datafile::_object_value_get_type(iVar0, "hmmts") == 2) && datafile::_object_value_get_type(iVar0, "hmmte") == 2) && datafile::_object_value_get_type(iVar0, "hmmth") == 2)
	{
		Global_1617379.f_84062 = datafile::_object_value_get_integer(iVar0, "hmmtt");
		Global_1617379.f_84063 = datafile::_object_value_get_integer(iVar0, "hmmts");
		Global_1617379.f_84064 = datafile::_object_value_get_integer(iVar0, "hmmte");
		Global_1617379.f_84065 = datafile::_object_value_get_integer(iVar0, "hmmth");
	}
	else
	{
		Global_1617379.f_84062 = 0;
		Global_1617379.f_84063 = 0;
		Global_1617379.f_84064 = 0;
		Global_1617379.f_84065 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "tstrm") == 2)
	{
		Global_1617379.f_85849 = datafile::_object_value_get_integer(iVar0, "tstrm");
	}
	else
	{
		Global_1617379.f_85849 = 0;
	}
	iVar2 = 0;
	while (iVar2 <= 35)
	{
		StringCopy(&cVar9, "dtspk", 8);
		StringIntConCat(&cVar9, iVar2, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_74055[iVar2 /*8*/]), datafile::_object_value_get_string(iVar0, &cVar9), 32);
		}
		else
		{
			StringCopy(&(Global_1617379.f_74055[iVar2 /*8*/]), "", 32);
		}
		iVar2++;
	}
	iVar2 = 0;
	while (iVar2 <= 2)
	{
		StringCopy(&cVar9, "cspnm", 8);
		StringIntConCat(&cVar9, iVar2, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_64571[iVar2 /*16*/]), datafile::_object_value_get_string(iVar0, &cVar9), 64);
		}
		else
		{
			StringCopy(&(Global_1617379.f_64571[iVar2 /*16*/]), "", 64);
		}
		StringCopy(&cVar9, "csvnm", 8);
		StringIntConCat(&cVar9, iVar2, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_64620[iVar2 /*16*/]), datafile::_object_value_get_string(iVar0, &cVar9), 64);
		}
		else
		{
			StringCopy(&(Global_1617379.f_64620[iVar2 /*16*/]), "", 64);
		}
		StringCopy(&cVar9, "csonm", 8);
		StringIntConCat(&cVar9, iVar2, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_64669[iVar2 /*16*/]), datafile::_object_value_get_string(iVar0, &cVar9), 64);
		}
		else
		{
			StringCopy(&(Global_1617379.f_64669[iVar2 /*16*/]), "", 64);
		}
		iVar2++;
	}
	iVar2 = 0;
	while (iVar2 <= 4)
	{
		StringCopy(&cVar9, "otxsgo", 8);
		StringIntConCat(&cVar9, iVar2, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_64760[iVar2 /*16*/]), datafile::_object_value_get_string(iVar0, &cVar9), 64);
		}
		else
		{
			StringCopy(&(Global_1617379.f_64760[iVar2 /*16*/]), "", 64);
		}
		iVar2++;
	}
	iVar39 = 0;
	while (iVar39 <= 3)
	{
		iVar3 = 0;
		while (iVar3 <= 12)
		{
			StringCopy(&cVar9, "ofit", 8);
			StringIntConCat(&cVar9, iVar3 + 1, 8);
			StringIntConCat(&cVar9, iVar39, 8);
			if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
			{
				Global_1617379.f_74389[iVar39 /*14*/][iVar3] = datafile::_object_value_get_integer(iVar0, &cVar9);
			}
			iVar3++;
		}
		StringCopy(&cVar9, "ofs1", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_74482[iVar39 /*2*/][0] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_74482[iVar39 /*2*/][0] = 0;
		}
		StringCopy(&cVar9, "mask1", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_74496[iVar39 /*2*/][0] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_74496[iVar39 /*2*/][0] = 0;
		}
		StringCopy(&cVar9, "gear", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_74467[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_74467[iVar39] = 0;
		}
		StringCopy(&cVar9, "geard", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_74472[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_74472[iVar39] = -1;
		}
		StringCopy(&cVar9, "apwfr", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_83465[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_83465[iVar39] = -1;
		}
		StringCopy(&cVar9, "apwlr", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_83470[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_83470[iVar39] = -1;
		}
		StringCopy(&cVar9, "tcmin", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2 && !func_129())
		{
			Global_1617379.f_83804[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_83804[iVar39] = 0;
		}
		iVar3 = 0;
		while (iVar3 <= 3)
		{
			StringCopy(&cVar9, "trcmn", 8);
			StringIntConCat(&cVar9, iVar3, 8);
			StringIntConCat(&cVar9, iVar39, 8);
			if (datafile::_object_value_get_type(iVar0, &cVar9) == 2 && !func_129())
			{
				Global_1617379.f_83809[iVar39 /*5*/][iVar3] = datafile::_object_value_get_integer(iVar0, &cVar9);
			}
			else
			{
				Global_1617379.f_83809[iVar39 /*5*/][iVar3] = 0;
			}
			iVar3++;
		}
		StringCopy(&cVar9, "tmrsp", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_83831[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_83831[iVar39] = 0;
		}
		StringCopy(&cVar9, "tmvhp", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_34282[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_34282[iVar39] = 100;
		}
		StringCopy(&cVar9, "tblty", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_34292[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_34292[iVar39] = 0;
		}
		StringCopy(&cVar9, "pmpos", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 5)
		{
			Global_1617379.f_69906[iVar39 /*3*/] = { datafile::_object_value_get_vector3(iVar0, &cVar9) };
		}
		else
		{
			Global_1617379.f_69906[iVar39 /*3*/] = { 0f, 0f, 0f };
		}
		StringCopy(&cVar9, "pmpoi", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 5)
		{
			Global_1617379.f_69919[iVar39 /*3*/] = { datafile::_object_value_get_vector3(iVar0, &cVar9) };
		}
		else
		{
			Global_1617379.f_69919[iVar39 /*3*/] = { 0f, 0f, 0f };
		}
		StringCopy(&cVar9, "pmrad", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 3)
		{
			Global_1617379.f_69932[iVar39] = datafile::_object_value_get_float(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_69932[iVar39] = 0f;
		}
		StringCopy(&cVar9, "dfofit", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_74446[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_74446[iVar39] = -1;
		}
		StringCopy(&cVar9, "dfstyl", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_74491[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_74491[iVar39] = -1;
		}
		StringCopy(&cVar9, "clrovr", 8);
		StringIntConCat(&cVar9, iVar39, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_66777[iVar39] = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_66777[iVar39] = -1;
		}
		iVar40 = 0;
		while (iVar40 <= 1)
		{
			StringCopy(&cVar11, "trstp", 16);
			StringIntConCat(&cVar11, iVar39, 16);
			if (iVar40 > 0)
			{
				StringIntConCat(&cVar11, iVar40, 16);
			}
			if (datafile::_object_value_get_type(iVar0, &cVar11) == 5)
			{
				Global_1617379.f_70031[iVar39 /*27*/][iVar40 /*13*/][0 /*3*/] = { datafile::_object_value_get_vector3(iVar0, &cVar11) };
			}
			else
			{
				Global_1617379.f_70031[iVar39 /*27*/][iVar40 /*13*/][0 /*3*/] = { 0f, 0f, 0f };
			}
			StringCopy(&cVar11, "trstf", 16);
			StringIntConCat(&cVar11, iVar39, 16);
			if (iVar40 > 0)
			{
				StringIntConCat(&cVar11, iVar40, 16);
			}
			if (datafile::_object_value_get_type(iVar0, &cVar11) == 5)
			{
				Global_1617379.f_70185[iVar39 /*27*/][iVar40 /*13*/][0 /*3*/] = { datafile::_object_value_get_vector3(iVar0, &cVar11) };
			}
			else
			{
				Global_1617379.f_70185[iVar39 /*27*/][iVar40 /*13*/][0 /*3*/] = { 0f, 0f, 0f };
			}
			StringCopy(&cVar11, "trsth", 16);
			StringIntConCat(&cVar11, iVar39, 16);
			if (iVar40 > 0)
			{
				StringIntConCat(&cVar11, iVar40, 16);
			}
			if (datafile::_object_value_get_type(iVar0, &cVar11) == 3)
			{
				Global_1617379.f_70140[iVar39 /*11*/][iVar40 /*5*/][0] = datafile::_object_value_get_float(iVar0, &cVar11);
			}
			else
			{
				Global_1617379.f_70140[iVar39 /*11*/][iVar40 /*5*/][0] = 0f;
			}
			iVar41 = 0;
			while (iVar41 <= 3)
			{
				StringCopy(&cVar11, "trstp", 16);
				StringIntConCat(&cVar11, iVar39, 16);
				StringIntConCat(&cVar11, iVar40, 16);
				StringConCat(&cVar11, "n", 16);
				StringIntConCat(&cVar11, iVar41, 16);
				if (datafile::_object_value_get_type(iVar0, &cVar11) == 5)
				{
					Global_1617379.f_70031[iVar39 /*27*/][iVar40 /*13*/][iVar41 /*3*/] = { datafile::_object_value_get_vector3(iVar0, &cVar11) };
				}
				else
				{
					Global_1617379.f_70031[iVar39 /*27*/][iVar40 /*13*/][iVar41 /*3*/] = { 0f, 0f, 0f };
				}
				StringCopy(&cVar11, "trsth", 16);
				StringIntConCat(&cVar11, iVar39, 16);
				StringIntConCat(&cVar11, iVar40, 16);
				StringConCat(&cVar11, "n", 16);
				StringIntConCat(&cVar11, iVar41, 16);
				if (datafile::_object_value_get_type(iVar0, &cVar11) == 3)
				{
					Global_1617379.f_70140[iVar39 /*11*/][iVar40 /*5*/][iVar41] = datafile::_object_value_get_float(iVar0, &cVar11);
				}
				else
				{
					Global_1617379.f_70140[iVar39 /*11*/][iVar40 /*5*/][iVar41] = 0f;
				}
				iVar41++;
			}
			StringCopy(&cVar9, "trsrl", 8);
			StringIntConCat(&cVar9, iVar39, 8);
			StringIntConCat(&cVar9, iVar40, 8);
			if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
			{
				Global_1617379.f_86262[iVar39 /*3*/][iVar40] = datafile::_object_value_get_integer(iVar0, &cVar9);
			}
			else
			{
				Global_1617379.f_86262[iVar39 /*3*/][iVar40] = 0;
			}
			iVar40++;
		}
		iVar40 = 0;
		while (iVar40 <= 3)
		{
			StringCopy(&cVar9, "pvp", 8);
			StringIntConCat(&cVar9, iVar39, 8);
			if (iVar40 > 0)
			{
				StringIntConCat(&cVar9, iVar40, 8);
			}
			if (datafile::_object_value_get_type(iVar0, &cVar9) == 5)
			{
				Global_1617379.f_85914[iVar39 /*13*/][iVar40 /*3*/] = { datafile::_object_value_get_vector3(iVar0, &cVar9) };
			}
			else
			{
				Global_1617379.f_85914[iVar39 /*13*/][iVar40 /*3*/] = { 0f, 0f, 0f };
			}
			StringCopy(&cVar9, "pvh", 8);
			StringIntConCat(&cVar9, iVar39, 8);
			if (iVar40 > 0)
			{
				StringIntConCat(&cVar9, iVar40, 8);
			}
			if (datafile::_object_value_get_type(iVar0, &cVar9) == 3)
			{
				Global_1617379.f_85967[iVar39 /*5*/][iVar40] = datafile::_object_value_get_float(iVar0, &cVar9);
			}
			else
			{
				Global_1617379.f_85967[iVar39 /*5*/][iVar40] = -1f;
			}
			iVar40++;
		}
		StringCopy(&cVar9, "tscpos", 8);
		if (iVar39 > 0)
		{
			StringIntConCat(&cVar9, iVar39, 8);
		}
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 5)
		{
			Global_1617379.f_85852[iVar39 /*3*/] = { datafile::_object_value_get_vector3(iVar0, &cVar9) };
		}
		else
		{
			Global_1617379.f_85852[iVar39 /*3*/] = { 0f, 0f, 0f };
		}
		StringCopy(&cVar9, "tscrot", 8);
		if (iVar39 > 0)
		{
			StringIntConCat(&cVar9, iVar39, 8);
		}
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 5)
		{
			Global_1617379.f_85865[iVar39 /*3*/] = { datafile::_object_value_get_vector3(iVar0, &cVar9) };
		}
		else
		{
			Global_1617379.f_85865[iVar39 /*3*/] = { 0f, 0f, 0f };
		}
		StringCopy(&cVar9, "tspos", 8);
		if (iVar39 > 0)
		{
			StringIntConCat(&cVar9, iVar39, 8);
		}
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 5)
		{
			Global_1617379.f_85878[iVar39 /*3*/] = { datafile::_object_value_get_vector3(iVar0, &cVar9) };
		}
		else
		{
			Global_1617379.f_85878[iVar39 /*3*/] = { 0f, 0f, 0f };
		}
		StringCopy(&cVar9, "tscfov", 8);
		if (iVar39 > 0)
		{
			StringIntConCat(&cVar9, iVar39, 8);
		}
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 3)
		{
			Global_1617379.f_85891[iVar39] = datafile::_object_value_get_float(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_85891[iVar39] = 45f;
		}
		StringCopy(&cVar9, "tshead", 8);
		if (iVar39 > 0)
		{
			StringIntConCat(&cVar9, iVar39, 8);
		}
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 3)
		{
			Global_1617379.f_85896[iVar39] = datafile::_object_value_get_float(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_85896[iVar39] = 0f;
		}
		iVar39++;
	}
	iVar2 = 0;
	while (iVar2 <= 17)
	{
		StringCopy(&cVar9, "pnid", 8);
		StringIntConCat(&cVar9, iVar2, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 4)
		{
			StringCopy(&(Global_1617379.f_83479[iVar2 /*18*/]), datafile::_object_value_get_string(iVar0, &cVar9), 64);
		}
		else
		{
			StringCopy(&(Global_1617379.f_83479[iVar2 /*18*/]), "", 64);
		}
		StringCopy(&cVar9, "pnlv", 8);
		StringIntConCat(&cVar9, iVar2, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2)
		{
			Global_1617379.f_83479[iVar2 /*18*/].f_16 = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_83479[iVar2 /*18*/].f_16 = 0;
		}
		StringCopy(&cVar9, "pnvr", 8);
		StringIntConCat(&cVar9, iVar2, 8);
		if (datafile::_object_value_get_type(iVar0, &cVar9) == 2 && !gameplay::is_string_null_or_empty(&(Global_1617379.f_83479[iVar2 /*18*/])))
		{
			Global_1617379.f_83479[iVar2 /*18*/].f_17 = datafile::_object_value_get_integer(iVar0, &cVar9);
		}
		else
		{
			Global_1617379.f_83479[iVar2 /*18*/].f_17 = -1;
		}
		iVar2++;
	}
	if (datafile::_object_value_get_type(iVar0, "cposr") == 3)
	{
		Global_1617379.f_86288 = datafile::_object_value_get_float(iVar0, "cposr");
	}
	else
	{
		Global_1617379.f_86288 = 60f;
	}
	if (datafile::_object_value_get_type(iVar0, "cporv") == 3)
	{
		Global_1617379.f_86291 = datafile::_object_value_get_float(iVar0, "cporv");
	}
	else
	{
		Global_1617379.f_86291 = -1f;
	}
	if (datafile::_object_value_get_type(iVar0, "bmber") == 2)
	{
		Global_1617379.f_86279 = datafile::_object_value_get_integer(iVar0, "bmber");
	}
	else
	{
		Global_1617379.f_86279 = 2;
	}
	if (datafile::_object_value_get_type(iVar0, "bmbet") == 2)
	{
		Global_1617379.f_86280 = datafile::_object_value_get_integer(iVar0, "bmbet");
	}
	else
	{
		Global_1617379.f_86280 = 3000;
	}
	if (datafile::_object_value_get_type(iVar0, "bmbsi") == 2)
	{
		Global_1617379.f_86281 = datafile::_object_value_get_integer(iVar0, "bmbsi");
	}
	else
	{
		Global_1617379.f_86281 = 150;
	}
	if (datafile::_object_value_get_type(iVar0, "bmbdi") == 3)
	{
		Global_1617379.f_86282 = datafile::_object_value_get_float(iVar0, "bmbdi");
	}
	else
	{
		Global_1617379.f_86282 = 3f;
	}
	if (datafile::_object_value_get_type(iVar0, "bmbio") == 3)
	{
		Global_1617379.f_86283 = datafile::_object_value_get_float(iVar0, "bmbio");
	}
	else
	{
		Global_1617379.f_86283 = 1f;
	}
	if (datafile::_object_value_get_type(iVar0, "fvjhdt") == 2)
	{
		Global_1617379.f_86284 = datafile::_object_value_get_integer(iVar0, "fvjhdt");
	}
	else
	{
		Global_1617379.f_86284 = 25;
	}
	if (datafile::_object_value_get_type(iVar0, "fvjhmd") == 2)
	{
		Global_1617379.f_86285 = datafile::_object_value_get_integer(iVar0, "fvjhmd");
	}
	else
	{
		Global_1617379.f_86285 = 5;
	}
	if (datafile::_object_value_get_type(iVar0, "fvjfvd") == 2)
	{
		Global_1617379.f_86286 = datafile::_object_value_get_integer(iVar0, "fvjfvd");
	}
	else
	{
		Global_1617379.f_86286 = 5;
	}
	if (datafile::_object_value_get_type(iVar0, "fvjfvc") == 2)
	{
		Global_1617379.f_86287 = datafile::_object_value_get_integer(iVar0, "fvjfvc");
	}
	else
	{
		Global_1617379.f_86287 = 2;
	}
	if (datafile::_object_value_get_type(iVar0, "cpopr") == 3)
	{
		Global_1617379.f_86289 = datafile::_object_value_get_float(iVar0, "cpopr");
	}
	else
	{
		Global_1617379.f_86289 = 5f;
	}
	if (datafile::_object_value_get_type(iVar0, "cpohr") == 3)
	{
		Global_1617379.f_86290 = datafile::_object_value_get_float(iVar0, "cpohr");
	}
	else
	{
		Global_1617379.f_86290 = 60f;
	}
	if (datafile::_object_value_get_type(iVar0, "ratc0") == 2)
	{
		Global_1617379.f_86292 = datafile::_object_value_get_integer(iVar0, "ratc0");
	}
	else
	{
		Global_1617379.f_86292 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ratc1") == 2)
	{
		Global_1617379.f_86293 = datafile::_object_value_get_integer(iVar0, "ratc1");
	}
	else
	{
		Global_1617379.f_86293 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ratc2") == 2)
	{
		Global_1617379.f_86294 = datafile::_object_value_get_integer(iVar0, "ratc2");
	}
	else
	{
		Global_1617379.f_86294 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ratc3") == 2)
	{
		Global_1617379.f_86295 = datafile::_object_value_get_integer(iVar0, "ratc3");
	}
	else
	{
		Global_1617379.f_86295 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ratc4") == 2)
	{
		Global_1617379.f_86296 = datafile::_object_value_get_integer(iVar0, "ratc4");
	}
	else
	{
		Global_1617379.f_86296 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ratc5") == 2)
	{
		Global_1617379.f_86297 = datafile::_object_value_get_integer(iVar0, "ratc5");
	}
	else
	{
		Global_1617379.f_86297 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ratc6") == 2)
	{
		Global_1617379.f_86298 = datafile::_object_value_get_integer(iVar0, "ratc6");
	}
	else
	{
		Global_1617379.f_86298 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ratc9") == 2)
	{
		Global_1617379.f_86302 = datafile::_object_value_get_integer(iVar0, "ratc9");
	}
	else
	{
		Global_1617379.f_86302 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ratc7") == 2)
	{
		Global_1617379.f_86300 = datafile::_object_value_get_integer(iVar0, "ratc7");
	}
	else
	{
		Global_1617379.f_86300 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ratc8") == 2)
	{
		Global_1617379.f_86301 = datafile::_object_value_get_integer(iVar0, "ratc8");
	}
	else
	{
		Global_1617379.f_86301 = 0;
	}
	if (datafile::_object_value_get_type(iVar0, "ratcm") == 3)
	{
		Global_1617379.f_86299 = datafile::_object_value_get_float(iVar0, "ratcm");
	}
	else
	{
		Global_1617379.f_86299 = -1f;
	}
	if (datafile::_object_value_get_type(iVar0, "cdrt") == 3)
	{
		Global_1617379.f_86304 = datafile::_object_value_get_float(iVar0, "cdrt");
	}
	else
	{
		Global_1617379.f_86304 = -1f;
	}
	if (datafile::_object_value_get_type(iVar0, "csttl") == 4)
	{
		StringCopy(&(Global_1617379.f_86305), datafile::_object_value_get_string(iVar0, "csttl"), 16);
	}
	else
	{
		StringCopy(&(Global_1617379.f_86305), "", 16);
	}
	if (datafile::_object_value_get_type(iVar0, "csstl") == 4)
	{
		StringCopy(&(Global_1617379.f_86309), datafile::_object_value_get_string(iVar0, "csstl"), 16);
	}
	else
	{
		StringCopy(&(Global_1617379.f_86309), "", 16);
	}
	func_159();
	if (datafile::_object_value_get_type(iVar0, "ssdsp") == 5)
	{
		Global_1617379.f_88449 = { datafile::_object_value_get_vector3(iVar0, "ssdsp") };
	}
	if (datafile::_object_value_get_type(iVar0, "ssdsr") == 3)
	{
		Global_1617379.f_88452 = datafile::_object_value_get_float(iVar0, "ssdsr");
	}
	if (datafile::_object_value_get_type(iVar0, "ssder") == 3)
	{
		Global_1617379.f_88453 = datafile::_object_value_get_float(iVar0, "ssder");
	}
	if (datafile::_object_value_get_type(iVar0, "ssdst") == 2)
	{
		Global_1617379.f_88454 = datafile::_object_value_get_integer(iVar0, "ssdst");
	}
	if (datafile::_object_value_get_type(iVar0, "ssdtg") == 2)
	{
		Global_1617379.f_88455 = datafile::_object_value_get_integer(iVar0, "ssdtg");
	}
}

void func_159()//Position - 0x1A583
{
	Global_1617379.f_88449 = { 0f, 0f, 0f };
	Global_1617379.f_88452 = 30f;
	Global_1617379.f_88453 = 5f;
	Global_1617379.f_88454 = 30000;
	Global_1617379.f_88455 = 15000;
}

int func_160()//Position - 0x1A5CD
{
	return gameplay::is_bit_set(Global_2434762.f_546.f_1, 0);
}

char* func_161()//Position - 0x1A5E3
{
	return ui::_get_label_text("CREATOR_NO_T");
}

int func_162()//Position - 0x1A5F3
{
	return gameplay::is_bit_set(Global_1587523[player::player_id() /*444*/].f_131, 0);
}

int func_163(int iParam0)//Position - 0x1A60D
{
	switch (iParam0)
	{
		case 0:
			return 13;
		
		case 1:
			return 13;
		
		case 3:
			return 6;
		
		case 2:
			return 2;
		
		case 4:
			return 12;
		
		case 5:
			return 17;
		
		default:
	}
	return 0;
}

void func_164(var uParam0, int iParam1)//Position - 0x1A65D
{
	uParam0->f_4 = iParam1;
}

void func_165()//Position - 0x1A66B
{
	if (func_166())
	{
		Global_2441456.f_8 = 1;
	}
	Global_2441456.f_7 = 1;
}

int func_166()//Position - 0x1A688
{
	return gameplay::is_bit_set(Global_2434762.f_2, 11);
}

void func_167()//Position - 0x1A69C
{
	if (datafile::_get_root_object() != 0)
	{
		datafile::datafile_delete();
	}
}

void func_168()//Position - 0x1A6B0
{
	if (func_176())
	{
		network::_0x61A885D3F7CFEE9A();
	}
	else
	{
		network::_0xBA96394A0EECFA65();
	}
}

bool func_169()//Position - 0x1A6CA
{
	if (network::_0x9FEDF86898F100E9())
	{
		return true;
	}
	else if (network::_0xD53ACDBEF24A46E8())
	{
		return true;
	}
	else if (network::_0x45E816772E93A9DB())
	{
		return true;
	}
	return false;
}

bool func_170(int iParam0)//Position - 0x1A6FA
{
	if (gameplay::is_ps3_version() || (gameplay::is_orbis_version() && iParam0 == 0))
	{
		if (network::_0x72D918C99BCACC54(1) == 0 || network::_0xAEEF48CDF5B6CE7C(1, -1) == 0)
		{
			return false;
		}
	}
	else if (network::_0x72D918C99BCACC54(1) == 0)
	{
		return false;
	}
	if (func_171() == 0)
	{
		return false;
	}
	return true;
}

bool func_171()//Position - 0x1A755
{
	if (gameplay::is_ps3_version() && network::network_have_online_privileges())
	{
		return true;
	}
	if (gameplay::is_xbox360_version() && network::network_have_online_privileges())
	{
		return true;
	}
	if ((gameplay::is_orbis_version() && network::_0x1353F87E89946207() == 0) && network::network_have_online_privileges())
	{
		return true;
	}
	if (gameplay::is_durango_version() && network::network_have_online_privileges())
	{
		return true;
	}
	if (gameplay::is_pc_version() && network::network_have_online_privileges())
	{
		return true;
	}
	return false;
}

bool func_172(int iParam0)//Position - 0x1A7CD
{
	if (gameplay::is_ps3_version() || (gameplay::is_orbis_version() && iParam0 == 0))
	{
		if (network::_0x72D918C99BCACC54(0) == 0 || network::_0xAEEF48CDF5B6CE7C(0, -1) == 0)
		{
			return false;
		}
	}
	else if (network::_0x72D918C99BCACC54(0) == 0)
	{
		return false;
	}
	if (func_171() == 0)
	{
		return false;
	}
	return true;
}

bool func_173()//Position - 0x1A828
{
	if (!func_174())
	{
		return true;
	}
	return false;
}

bool func_174()//Position - 0x1A83D
{
	if (func_175())
	{
		return false;
	}
	if (network::network_is_cloud_available() == 0)
	{
		return false;
	}
	return true;
}

var func_175()//Position - 0x1A85D
{
	return Global_2443548;
}

var func_176()//Position - 0x1A869
{
	return Global_1572867.f_4;
}

void func_177(var uParam0, int iParam1, int iParam2)//Position - 0x1A877
{
	struct<52> Var0;
	
	uParam0->f_5 = 0;
	uParam0->f_6 = 0;
	uParam0->f_7 = 0;
	uParam0->f_8 = 0;
	uParam0->f_9 = 0;
	uParam0->f_12 = 0;
	uParam0->f_31 = 0;
	uParam0->f_13 = 0;
	uParam0->f_14 = 0;
	uParam0->f_15 = 0;
	uParam0->f_17 = 1;
	uParam0->f_17 = 1;
	uParam0->f_18 = 0;
	uParam0->f_19 = 0;
	uParam0->f_20 = 0;
	uParam0->f_21 = -1;
	uParam0->f_3 = 0;
	uParam0->f_28 = 0;
	uParam0->f_29 = 0;
	Global_1572884[0] = 0;
	Global_1572884[1] = 0;
	uParam0->f_40 = 0;
	if (iParam2)
	{
		uParam0->f_41 = { Var0 };
	}
	if (iParam1)
	{
		func_164(uParam0, 0);
	}
}

void func_178(int iParam0, int iParam1, int iParam2)//Position - 0x1A910
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	Global_1617379.f_71005 = 0;
	if (iParam0)
	{
		Global_1617379.f_47407 = -1;
		Global_1617379.f_11 = 0;
		Global_1617379.f_12 = 0;
		Global_1617379.f_13 = 0;
		Global_1617379.f_14 = 0;
		Global_1617379.f_15 = 0;
		Global_1617379.f_16 = 0;
		Global_1617379.f_17 = 0;
		Global_1617379.f_18 = 0;
		Global_1617379.f_79 = 0;
		Global_1617379.f_83830 = 0;
		Global_1617379.f_10 = 0;
		Global_1617379.f_20 = 0;
		Global_1617379.f_45 = 0;
		Global_1617379.f_22 = 0;
		Global_1617379.f_44 = 0;
		Global_1617379.f_46 = 0;
		Global_1617379.f_47 = 0;
		Global_1617379.f_49 = 0;
		Global_1617379.f_50 = 0;
		Global_1617379.f_51 = 0;
		Global_1617379.f_52 = 0;
		Global_1617379.f_24 = 0;
		Global_1617379.f_25 = 1;
		Global_1617379.f_6 = 0;
		Global_1617379.f_40 = 0;
		Global_1617379.f_43 = 1;
		Global_1617379.f_21 = 0;
		Global_1617379.f_70982 = 0;
		Global_1617379.f_70985 = 0;
		Global_1617379.f_70984 = 0;
		Global_1617379.f_70981 = 0;
		if (iParam1)
		{
			Global_1617379.f_4 = 0;
			Global_1617379.f_5 = 0;
		}
		Global_1617379.f_3 = 0;
		iVar0 = 0;
		while (iVar0 <= 9)
		{
			Global_1617379.f_28799[iVar0 /*38*/] = -1;
			Global_1617379.f_28799[iVar0 /*38*/].f_1 = -1;
			Global_1617379.f_28799[iVar0 /*38*/].f_2 = 0;
			Global_1617379.f_28799[iVar0 /*38*/].f_3 = 0;
			iVar0++;
		}
		Global_1617379.f_70986 = 0;
		Global_1617379.f_70987 = 0;
		Global_1617379.f_70988 = 0;
		Global_1617379.f_70977 = -1;
		Global_1617379.f_70976 = 0;
		Global_1617379.f_56 = 0;
		Global_1617379.f_64 = { 0f, 0f, 0f };
		Global_1617379.f_67 = { 0f, 0f, 0f };
		Global_1617379.f_70 = { 0f, 0f, 0f };
		Global_1617379.f_73 = { 0f, 0f, 0f };
		Global_1617379.f_76 = 0f;
		Global_1617379.f_70340 = 0f;
		Global_1617379.f_78 = 0;
		Global_1617379.f_71004 = 0;
		Global_1617379.f_84042 = 0;
		iVar0 = 0;
		while (iVar0 <= 13)
		{
			Global_1617379.f_33679[iVar0] = 0;
			Global_1617379.f_33663[iVar0] = 0;
			iVar0++;
		}
	}
	iVar0 = 0;
	while (iVar0 < 6)
	{
		Global_1617379.f_74451[iVar0] = 0;
		Global_1617379.f_74458[iVar0] = -1;
		iVar0++;
	}
	Global_1617379.f_74465 = 0;
	Global_1617379.f_74466 = -1;
	Global_1617379.f_1 = -1;
	StringCopy(&(Global_1617379.f_70690), "", 24);
	iVar0 = 0;
	while (iVar0 <= 35)
	{
		StringCopy(&(Global_1617379.f_74055[iVar0 /*8*/]), "", 32);
		iVar0++;
	}
	Global_1617379.f_85849 = 0;
	Global_1617379.f_39 = 0;
	Global_1617379.f_58 = { 0f, 0f, 0f };
	Global_1617379.f_84041 = -1;
	Global_1617379.f_70983 = 0f;
	StringCopy(&(Global_1617379.f_70372), "", 64);
	StringCopy(&(Global_1617379.f_70674), "", 64);
	if (iParam2)
	{
		iVar0 = 0;
		while (iVar0 <= 1)
		{
			StringCopy(&(Global_1617379.f_70658[iVar0 /*6*/]), "", 24);
			iVar0++;
		}
	}
	iVar0 = 0;
	while (iVar0 <= 7)
	{
		StringCopy(&(Global_1617379.f_70394[iVar0 /*16*/]), "", 64);
		iVar0++;
	}
	func_188();
	iVar0 = 0;
	while (iVar0 <= 1)
	{
		StringCopy(&(Global_1617379.f_28799[0 /*38*/].f_4[iVar0 /*16*/]), "", 64);
		iVar0++;
	}
	func_187();
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		Global_1617379.f_32[iVar0] = 0;
		Global_1617379.f_83804[iVar0] = 0;
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			Global_1617379.f_83809[iVar0 /*5*/][iVar1] = 0;
			iVar1++;
		}
		Global_1617379.f_27[iVar0] = 1;
		Global_1617379.f_69906[iVar0 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_69919[iVar0 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_69932[iVar0] = 0f;
		Global_1617379.f_85852[iVar0 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_85865[iVar0 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_85878[iVar0 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_85891[iVar0] = 45f;
		Global_1617379.f_85896[iVar0] = 0f;
		Global_1617379.f_66777[iVar0] = -1;
		StringCopy(&(Global_1617379.f_86207[iVar0 /*6*/]), "", 24);
		StringCopy(&(Global_1617379.f_86232[iVar0 /*6*/]), "", 24);
		Global_1617379.f_86257[iVar0] = 0;
		StringCopy(&(Global_1617379.f_86009[iVar0 /*16*/]), "", 64);
		Global_1617379.f_74505[iVar0] = -1;
		iVar1 = 0;
		while (iVar1 <= 1)
		{
			StringCopy(&(Global_1617379.f_86074[iVar0 /*33*/][iVar1 /*16*/]), "", 64);
			iVar1++;
		}
		Global_1617379.f_29641[iVar0] = -1;
		Global_1617379.f_29646[iVar0] = -1;
		StringCopy(&(Global_1617379.f_88456[iVar0 /*4*/]), "", 16);
		StringCopy(&(Global_1617379.f_88473[iVar0 /*4*/]), "", 16);
		Global_1617379.f_88490[iVar0] = 0;
		Global_1617379.f_88499[iVar0] = 0;
		iVar0++;
	}
	Global_1617379.f_85901 = { 0f, 0f, 0f };
	Global_1617379.f_85904 = { 0f, 0f, 0f };
	Global_1617379.f_85907 = { 0f, 0f, 0f };
	Global_1617379.f_85910 = 45f;
	Global_1617379.f_85911 = 0f;
	Global_1617379.f_85912 = 0;
	Global_1617379.f_86275 = 10000;
	Global_1617379.f_86276 = 1f;
	Global_1617379.f_86288 = 60f;
	Global_1617379.f_86289 = 5f;
	Global_1617379.f_86290 = 60f;
	Global_1617379.f_86291 = -1f;
	Global_1617379.f_86278 = 2;
	Global_1617379.f_86279 = 2;
	Global_1617379.f_86280 = 3000;
	Global_1617379.f_86281 = 150;
	Global_1617379.f_86282 = 3f;
	Global_1617379.f_86283 = 1f;
	Global_1617379.f_86284 = 25;
	Global_1617379.f_86285 = 5;
	Global_1617379.f_86286 = 5;
	Global_1617379.f_86287 = 2000;
	Global_1617379.f_86304 = -1f;
	StringCopy(&(Global_1617379.f_86305), "", 16);
	StringCopy(&(Global_1617379.f_86309), "", 16);
	Global_1617379.f_86292 = 0;
	Global_1617379.f_86301 = 0;
	Global_1617379.f_86293 = 0;
	Global_1617379.f_86294 = 0;
	Global_1617379.f_86295 = 0;
	Global_1617379.f_86296 = 0;
	Global_1617379.f_86297 = 0;
	Global_1617379.f_86298 = 0;
	Global_1617379.f_86302 = 0;
	Global_1617379.f_86299 = -1f;
	Global_1617379.f_86300 = 0;
	Global_1617379.f_86303 = 0;
	iVar0 = 0;
	while (iVar0 <= 2)
	{
		StringCopy(&(Global_1617379.f_64571[iVar0 /*16*/]), "", 64);
		StringCopy(&(Global_1617379.f_64620[iVar0 /*16*/]), "", 64);
		StringCopy(&(Global_1617379.f_64669[iVar0 /*16*/]), "", 64);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 4)
	{
		StringCopy(&(Global_1617379.f_64760[iVar0 /*16*/]), "", 64);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 4)
	{
		func_185(&(Global_1617379.f_74510[iVar0 /*1269*/]));
		func_183(&(Global_1617379.f_80856[iVar0 /*434*/]));
		iVar0++;
	}
	func_183(&(Global_1617379.f_83027));
	iVar0 = 0;
	while (iVar0 <= 24)
	{
		Global_1617379.f_83938[iVar0 /*4*/].f_3 = 0;
		Global_1617379.f_83938[iVar0 /*4*/] = { 0f, 0f, 0f };
		iVar0++;
	}
	Global_1617379.f_84039 = 0;
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		Global_1617379.f_47343[iVar0 /*3*/] = { 0f, 0f, 0f };
		iVar0++;
	}
	Global_1617379.f_47404 = 0;
	iVar0 = 0;
	while (iVar0 <= 68)
	{
		func_142(&(Global_1617379.f_71018[iVar0 /*44*/]), iVar0);
		iVar0++;
	}
	Global_1617379.f_74344[0] = 0;
	Global_1617379.f_74344[1] = 0;
	Global_1617379.f_74348 = 0;
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		func_182(&(Global_1617379.f_83836[iVar0 /*10*/]));
		iVar0++;
	}
	Global_1617379.f_88495 = 0;
	Global_1617379.f_2 = 0;
	Global_1617379.f_70957 = 0;
	Global_1617379.f_83830 = 0;
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		Global_1617379.f_70990[iVar0] = -1;
		Global_1617379.f_84043[iVar0] = -1;
		iVar0++;
	}
	Global_1617379.f_88496 = 0;
	Global_1617379.f_88497 = 0;
	Global_1617379.f_71016 = 0;
	Global_1617379.f_71017 = 0;
	Global_1617379.f_84082 = 0.5f;
	Global_1617379.f_74362 = 1;
	Global_1617379.f_74364 = 5;
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		Global_1617379.f_84083[iVar0] = 0f;
		Global_1617379.f_84104[iVar0] = 0f;
		Global_1617379.f_84125[iVar0] = 0f;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		Global_1617379.f_34249[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		Global_1617379.f_34287[iVar0] = -1;
		iVar0++;
	}
	Global_1616134 = 0;
	Global_1617379.f_7 = 0;
	Global_1617379.f_70963 = 0;
	Global_1617379.f_28003 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1617379.f_66476)
	{
		Global_1617379.f_66476[iVar0 /*5*/] = { 0f, 0f, 0f };
		Global_1617379.f_66476[iVar0 /*5*/].f_3 = 0f;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		Global_1617379.f_28763[iVar0 /*3*/][0] = 0;
		Global_1617379.f_28763[iVar0 /*3*/][1] = 0;
		Global_1617379.f_28750[iVar0 /*3*/][0] = 0;
		Global_1617379.f_28750[iVar0 /*3*/][1] = 0;
		Global_1617379.f_28776[iVar0 /*3*/][0] = 0;
		Global_1617379.f_28776[iVar0 /*3*/][1] = 0;
		Global_1617379.f_28789[iVar0] = 0;
		Global_1617379.f_28794[iVar0] = 0;
		iVar1 = 0;
		while (iVar1 <= 12)
		{
			Global_1617379.f_74389[iVar0 /*14*/][iVar1] = 0;
			iVar1++;
		}
		Global_1617379.f_74482[iVar0 /*2*/][0] = 0;
		Global_1617379.f_74496[iVar0 /*2*/][0] = 0;
		Global_1617379.f_80[iVar0 /*6968*/] = { 0f, 0f, 0f };
		Global_1617379.f_80[iVar0 /*6968*/].f_4 = { 0f, 0f, 0f };
		Global_1617379.f_80[iVar0 /*6968*/].f_7 = { 0f, 0f, 0f };
		Global_1617379.f_80[iVar0 /*6968*/].f_11 = { 0f, 0f, 0f };
		Global_1617379.f_80[iVar0 /*6968*/].f_14 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_15 = { 0f, 0f, 0f };
		Global_1617379.f_80[iVar0 /*6968*/].f_18 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_19 = { 0f, 0f, 0f };
		Global_1617379.f_80[iVar0 /*6968*/].f_22 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_23 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_36 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_24 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_25 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_26 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_27 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_28 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_29 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_30 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_31 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_32 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_33 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_34 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_57 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_3023 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_3025 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_3046 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_3119 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4197 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_3024 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_3026 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4198 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_59 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_60 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_178 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_179 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_298 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_299 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4199 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_55 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_56 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2723 = 60000;
		Global_1617379.f_80[iVar0 /*6968*/].f_2877 = 60000;
		Global_1617379.f_80[iVar0 /*6968*/].f_3706 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_464 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_465 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2729 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2730 = 0;
		iVar1 = 0;
		while (iVar1 <= 16)
		{
			Global_1617379.f_80[iVar0 /*6968*/].f_2731[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_2749[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2767[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_2785[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2821[iVar1] = 4;
			Global_1617379.f_80[iVar0 /*6968*/].f_2839[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2857[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2803[iVar1] = -1;
			iVar1++;
		}
		Global_1617379.f_27953[iVar0] = 0;
		Global_1617379.f_27958[iVar0] = 0;
		Global_1617379.f_27963[iVar0] = -1;
		Global_1617379.f_28009[iVar0] = 0;
		StringCopy(&(Global_1617379.f_28014[iVar0 /*4*/]), "", 16);
		Global_1617379.f_28036[iVar0] = 3;
		Global_1617379.f_28041[iVar0] = -1;
		Global_1617379.f_28004[iVar0] = 0;
		Global_1617379.f_28031[iVar0] = 0;
		Global_1617379.f_74350[iVar0] = 0;
		Global_1617379.f_74355[iVar0] = 0;
		Global_1617379.f_34282[iVar0] = 100;
		Global_1617379.f_34292[iVar0] = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_3996 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_3997 = 0;
		Global_1616134.f_1[iVar0] = 0;
		Global_1617379.f_74467[iVar0] = 0;
		Global_1617379.f_74472[iVar0] = -1;
		iVar1 = 0;
		while (iVar1 <= 1)
		{
			iVar2 = 0;
			while (iVar2 <= 3)
			{
				Global_1617379.f_70031[iVar0 /*27*/][iVar1 /*13*/][iVar2 /*3*/] = { 0f, 0f, 0f };
				Global_1617379.f_70140[iVar0 /*11*/][iVar1 /*5*/][iVar2] = 0f;
				Global_1617379.f_70185[iVar0 /*27*/][iVar1 /*13*/][iVar2 /*3*/] = { 0f, 0f, 0f };
				iVar2++;
			}
			Global_1617379.f_86262[iVar0 /*3*/][iVar1] = 0;
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 <= 21)
		{
			Global_1617379.f_33695[iVar0 /*23*/][iVar1] = 0;
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 <= 21)
		{
			Global_1617379.f_33788[iVar0 /*93*/][0 /*23*/][iVar1] = 0;
			Global_1617379.f_33788[iVar0 /*93*/][1 /*23*/][iVar1] = 0;
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			Global_1617379.f_85914[iVar0 /*13*/][iVar1 /*3*/] = { 0f, 0f, 0f };
			Global_1617379.f_85967[iVar0 /*5*/][iVar1] = 0f;
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 <= 56)
		{
			Global_1617379.f_80[iVar0 /*6968*/].f_61[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_180[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_300[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_119[iVar1] = 1f;
			Global_1617379.f_80[iVar0 /*6968*/].f_238[iVar1] = 1f;
			Global_1617379.f_80[iVar0 /*6968*/].f_358[iVar1] = 1f;
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			Global_1617379.f_80[iVar0 /*6968*/].f_418[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_423[iVar1] = -1;
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 <= 16)
		{
			Global_1617379.f_29180[iVar1 /*27*/] = 0;
			Global_1617379.f_29180[iVar1 /*27*/].f_1 = { 0f, 0f, 0f };
			Global_1617379.f_29180[iVar1 /*27*/].f_4 = { 0f, 0f, 0f };
			Global_1617379.f_29180[iVar1 /*27*/].f_25 = 0f;
			Global_1617379.f_29180[iVar1 /*27*/].f_26 = 0;
			iVar2 = 0;
			while (iVar2 <= 4)
			{
				Global_1617379.f_29180[iVar1 /*27*/].f_7[iVar2] = 0;
				Global_1617379.f_29180[iVar1 /*27*/].f_13[iVar2] = 0;
				Global_1617379.f_29180[iVar1 /*27*/].f_19[iVar2] = 0;
				iVar2++;
			}
			Global_1617379.f_80[iVar0 /*6968*/].f_3852[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3870[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3888[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3906[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3924[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3942[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3960[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3978[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_37[iVar1] = -1;
			Global_1617379.f_47257[iVar1 /*5*/][iVar0] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3998[iVar1] = 60000;
			Global_1617379.f_80[iVar0 /*6968*/].f_4016[iVar1] = 60000;
			iVar2 = 0;
			while (iVar2 <= 3)
			{
				StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_4120[iVar2 /*16*/]), "", 64);
				Global_1617379.f_80[iVar0 /*6968*/].f_4034[iVar1 /*5*/][iVar2] = 0;
				iVar2++;
			}
			Global_1617379.f_28046[iVar1 /*5*/][iVar0] = -1;
			Global_1617379.f_28132[iVar1 /*5*/][iVar0] = 0;
			Global_1617379.f_28218[iVar1 /*5*/][iVar0] = 0;
			Global_1617379.f_28304[iVar1 /*5*/][iVar0] = 0;
			Global_1617379.f_28390[iVar1 /*5*/][iVar0] = 0;
			Global_1617379.f_28476[iVar1 /*5*/][iVar0] = 1500;
			Global_1617379.f_28562[iVar1 /*5*/][iVar0] = 1400;
			Global_1617379.f_28648[iVar1 /*5*/][iVar0] = 35;
			StringCopy(&(Global_1616134.f_152[iVar0 /*273*/][iVar1 /*16*/]), "", 64);
			Global_1616134.f_6[iVar0 /*18*/][iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_484[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_502[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2879[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2897[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2915[iVar1] = 1;
			Global_1617379.f_80[iVar0 /*6968*/].f_2987[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3005[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3047[iVar1] = 10000;
			Global_1617379.f_80[iVar0 /*6968*/].f_3027[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3083[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_2933[iVar1] = 1;
			Global_1617379.f_80[iVar0 /*6968*/].f_3101[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3120[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3404[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3440[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3156[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3138[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3296[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3422[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3458[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3350[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3368[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3314[iVar1] = 100;
			Global_1617379.f_80[iVar0 /*6968*/].f_3174[iVar1 /*3*/] = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_3226[iVar1 /*3*/] = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_3278[iVar1] = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_3332[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3386[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3476[iVar1] = -1f;
			Global_1617379.f_80[iVar0 /*6968*/].f_592[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_610[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_628[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_646[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_682[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_520[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_538[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_664[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_700[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6644[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6662[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6680[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6698[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6716[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6734[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6914[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6752[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6770[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6788[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6806[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6824[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6842[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_3744[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3762[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3780[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3798[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_3816[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_556[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_574[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2951[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2969[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_428[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_446[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_466[iVar1] = 0;
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_4200[iVar1 /*16*/]), "", 64);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_4473[iVar1 /*16*/]), "", 64);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_4746[iVar1 /*16*/]), "", 64);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_5225[iVar1 /*6*/]), "", 24);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_5019[iVar1 /*6*/]), "", 24);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_5122[iVar1 /*6*/]), "", 24);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_6420[0 /*16*/]), "", 64);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_6420[1 /*16*/]), "", 64);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_5328[iVar1 /*16*/]), "", 64);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_5601[iVar1 /*16*/]), "", 64);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_5874[iVar1 /*16*/]), "", 64);
			StringCopy(&(Global_1617379.f_80[iVar0 /*6968*/].f_6147[iVar1 /*16*/]), "", 64);
			Global_1617379.f_80[iVar0 /*6968*/].f_3616[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3652[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3634[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_3494[iVar1 /*3*/] = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_3546[iVar1 /*3*/] = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_16 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/] = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_3 = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_6 = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_9 = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_10 = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_19 = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_17 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_13 = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_18 = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_20 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_21 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_22 = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_722[iVar1 /*28*/].f_23 = 120;
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_16 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/] = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_3 = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_6 = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_9 = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_10 = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_19 = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_17 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_13 = { 0f, 0f, 0f };
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_18 = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_20 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_21 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_22 = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_1199[iVar1 /*28*/].f_23 = 120;
			Global_1617379.f_80[iVar0 /*6968*/].f_3598[iVar1] = 3f;
			Global_1617379.f_80[iVar0 /*6968*/].f_3065[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3670[iVar1] = 10.5f;
			Global_1617379.f_80[iVar0 /*6968*/].f_3688[iVar1] = 1f;
			Global_1617379.f_80[iVar0 /*6968*/].f_3834[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2223[iVar1 /*8*/] = 1000;
			Global_1617379.f_80[iVar0 /*6968*/].f_2223[iVar1 /*8*/].f_1 = 1.15f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2223[iVar1 /*8*/].f_2 = 25;
			Global_1617379.f_80[iVar0 /*6968*/].f_2223[iVar1 /*8*/].f_7 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2223[iVar1 /*8*/].f_3 = 1;
			Global_1617379.f_80[iVar0 /*6968*/].f_2223[iVar1 /*8*/].f_5 = 25;
			Global_1617379.f_80[iVar0 /*6968*/].f_2223[iVar1 /*8*/].f_6 = 10f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2548[iVar1 /*3*/] = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2548[iVar1 /*3*/].f_1 = 1;
			Global_1617379.f_80[iVar0 /*6968*/].f_2548[iVar1 /*3*/].f_2 = 50;
			Global_1617379.f_80[iVar0 /*6968*/].f_2360[iVar1 /*11*/] = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2360[iVar1 /*11*/].f_1[0] = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2360[iVar1 /*11*/].f_1[1] = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2360[iVar1 /*11*/].f_1[2] = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2360[iVar1 /*11*/].f_1[3] = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2360[iVar1 /*11*/].f_6 = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2360[iVar1 /*11*/].f_7 = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2360[iVar1 /*11*/].f_8 = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2360[iVar1 /*11*/].f_9 = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2360[iVar1 /*11*/].f_10 = 0f;
			Global_1617379.f_80[iVar0 /*6968*/].f_2669[iVar1 /*3*/] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2669[iVar1 /*3*/].f_1 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_2669[iVar1 /*3*/].f_2 = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6453[iVar1 /*5*/][0] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6453[iVar1 /*5*/][1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6453[iVar1 /*5*/][2] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6453[iVar1 /*5*/][3] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6539[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6557[iVar1 /*4*/][0] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6557[iVar1 /*4*/][1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6557[iVar1 /*4*/][2] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6626[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_3708[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6860[iVar1] = 0;
			Global_1617379.f_80[iVar0 /*6968*/].f_6878[iVar1] = -1;
			Global_1617379.f_80[iVar0 /*6968*/].f_6896[iVar1] = 0;
			func_181(&(Global_1617379.f_80[iVar0 /*6968*/].f_2600[iVar1 /*4*/]));
			iVar1++;
		}
		Global_1617379.f_80[iVar0 /*6968*/].f_2722 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2876 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2721 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2875 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2724 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2725 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2726 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2727 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2728 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_2878 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_718 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_719 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_296 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_297 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_416 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_417 = -1;
		Global_1617379.f_80[iVar0 /*6968*/].f_4185 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4186 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4187 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4188 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4189 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4190 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4191 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4192 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4193 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4194 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4195 = 0;
		Global_1617379.f_80[iVar0 /*6968*/].f_4196 = 0;
		iVar0++;
	}
	Global_1617379.f_64724 = 0;
	Global_1617379.f_64725 = 0;
	Global_1617379.f_64726 = 0;
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		Global_1617379.f_64727[iVar0] = 0;
		Global_1617379.f_64738[iVar0] = 0;
		Global_1617379.f_64749[iVar0] = 0;
		iVar0++;
	}
	Global_1617379.f_61 = { 0f, 0f, 0f };
	Global_1617379.f_29651 = { 0f, 0f, 0f };
	Global_1617379.f_77 = 0f;
	Global_1617379.f_83461 = { 0f, 0f, 0f };
	Global_1617379.f_88496 = 0;
	Global_1617379.f_88497 = 0;
	Global_1617379.f_70958[0] = 0;
	Global_1617379.f_70958[1] = 0;
	Global_1617379.f_70961 = 0;
	Global_1617379.f_70957 = 0;
	Global_1617379.f_84048 = 0;
	Global_1617379.f_84049 = 0;
	Global_1617379.f_84050 = 0;
	Global_1617379.f_84051 = 0;
	Global_1617379.f_84053 = 0;
	Global_1617379.f_84055 = 0;
	Global_1617379.f_84057 = 0;
	Global_1617379.f_84060 = 0;
	Global_1617379.f_84061 = 0;
	Global_1617379.f_84062 = 0;
	Global_1617379.f_84063 = 0;
	Global_1617379.f_84064 = 0;
	Global_1617379.f_84065 = 0;
	Global_1617379.f_84071 = -1;
	Global_1617379.f_84072 = -1;
	Global_1617379.f_84073 = -1;
	Global_1617379.f_84074 = -1;
	Global_1617379.f_84075 = -1;
	Global_1617379.f_84076 = -1;
	Global_1617379.f_84077 = -1;
	Global_1617379.f_84078 = -1;
	Global_1617379.f_84079 = -1;
	Global_1617379.f_84080 = -1;
	Global_1617379.f_84081 = 1.5f;
	iVar0 = 0;
	while (iVar0 <= 69)
	{
		Global_1617379.f_30355[iVar0 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_29654[iVar0 /*10*/][0 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_29654[iVar0 /*10*/][1 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_29654[iVar0 /*10*/][2 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_30990[iVar0] = 0f;
		Global_1617379.f_31203[iVar0] = 1f;
		Global_1617379.f_30848[iVar0] = 0;
		Global_1617379.f_30566[iVar0 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_31061[iVar0] = 0f;
		Global_1617379.f_30919[iVar0] = 0;
		iVar0++;
	}
	Global_1617379.f_33653 = 0;
	if (iParam0)
	{
		Global_1617379.f_33654 = 0;
		Global_1617379.f_33662 = 0;
	}
	Global_1617379.f_33660 = 0;
	Global_1617379.f_33661 = 0;
	Global_1617379.f_34241 = 0f;
	Global_1617379.f_36498 = 0;
	iVar0 = 0;
	while (iVar0 <= 99)
	{
		Global_1617379.f_36499[iVar0 /*43*/] = { 0f, 0f, 0f };
		Global_1617379.f_36499[iVar0 /*43*/].f_6 = 0f;
		Global_1617379.f_36499[iVar0 /*43*/].f_7 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_9 = -1;
		Global_1617379.f_36499[iVar0 /*43*/].f_8 = -1;
		Global_1617379.f_36499[iVar0 /*43*/].f_10 = 1;
		Global_1617379.f_36499[iVar0 /*43*/].f_19 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_12 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_13 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_14 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_15 = -1;
		Global_1617379.f_36499[iVar0 /*43*/].f_11 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_36 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_37 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_38 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_16 = -1;
		Global_1617379.f_36499[iVar0 /*43*/].f_17 = -1;
		Global_1617379.f_36499[iVar0 /*43*/].f_18 = -1;
		Global_1617379.f_36499[iVar0 /*43*/].f_20 = -1;
		Global_1617379.f_36499[iVar0 /*43*/].f_39 = -1;
		Global_1617379.f_36499[iVar0 /*43*/].f_21 = -1;
		Global_1617379.f_36499[iVar0 /*43*/].f_22 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_23 = 0;
		Global_1617379.f_36499[iVar0 /*43*/].f_24 = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		func_180(&(Global_1617379.f_86313[iVar0 /*213*/]));
		iVar0++;
	}
	Global_1617379.f_88444 = 0;
	Global_1617379.f_40843 = 0;
	Global_1617379.f_40844 = 0;
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		Global_1617379.f_40845[iVar0 /*31*/] = { 0f, 0f, 0f };
		Global_1617379.f_40845[iVar0 /*31*/].f_6 = 0f;
		Global_1617379.f_40845[iVar0 /*31*/].f_7 = 0;
		Global_1617379.f_40845[iVar0 /*31*/].f_8 = -1;
		Global_1617379.f_40845[iVar0 /*31*/].f_12 = -1;
		Global_1617379.f_40845[iVar0 /*31*/].f_11 = -1;
		Global_1617379.f_40845[iVar0 /*31*/].f_13 = 1;
		Global_1617379.f_40845[iVar0 /*31*/].f_18 = 0;
		Global_1617379.f_40845[iVar0 /*31*/].f_14 = 0;
		Global_1617379.f_40845[iVar0 /*31*/].f_28 = 0;
		Global_1617379.f_40845[iVar0 /*31*/].f_29 = 0;
		Global_1617379.f_40845[iVar0 /*31*/].f_30 = 0;
		Global_1617379.f_40845[iVar0 /*31*/].f_15 = -1;
		Global_1617379.f_40845[iVar0 /*31*/].f_16 = -1;
		Global_1617379.f_40845[iVar0 /*31*/].f_17 = -1;
		Global_1617379.f_40845[iVar0 /*31*/].f_9 = 0;
		Global_1617379.f_40845[iVar0 /*31*/].f_10 = 0;
		iVar0++;
	}
	Global_1617379.f_36173 = 0;
	iVar0 = 0;
	while (iVar0 <= 14)
	{
		Global_1617379.f_36174[iVar0 /*19*/] = { 0f, 0f, 0f };
		Global_1617379.f_36174[iVar0 /*19*/].f_3 = 0f;
		Global_1617379.f_36174[iVar0 /*19*/].f_4 = 0;
		Global_1617379.f_36174[iVar0 /*19*/].f_14 = 0;
		Global_1617379.f_36174[iVar0 /*19*/].f_12 = 0;
		Global_1617379.f_36174[iVar0 /*19*/].f_15 = 0;
		Global_1617379.f_36174[iVar0 /*19*/].f_16 = 0;
		Global_1617379.f_36174[iVar0 /*19*/].f_6 = -1;
		Global_1617379.f_36174[iVar0 /*19*/].f_5 = -1;
		Global_1617379.f_36174[iVar0 /*19*/].f_13 = 0f;
		Global_1617379.f_36174[iVar0 /*19*/].f_8 = 0f;
		Global_1617379.f_36174[iVar0 /*19*/].f_9 = 0f;
		Global_1617379.f_36174[iVar0 /*19*/].f_10 = 0f;
		Global_1617379.f_36174[iVar0 /*19*/].f_11 = 0f;
		Global_1617379.f_36174[iVar0 /*19*/].f_7 = 0;
		Global_1617379.f_36174[iVar0 /*19*/].f_17 = 0;
		Global_1617379.f_36174[iVar0 /*19*/].f_18 = 0;
		iVar0++;
	}
	Global_1617379.f_36460 = 0;
	iVar0 = 0;
	while (iVar0 <= 4)
	{
		Global_1617379.f_36461[iVar0 /*7*/] = { 0f, 0f, 0f };
		Global_1617379.f_36461[iVar0 /*7*/].f_3 = 0f;
		Global_1617379.f_36461[iVar0 /*7*/].f_4 = 0;
		Global_1617379.f_36461[iVar0 /*7*/].f_5 = 0;
		Global_1617379.f_36461[iVar0 /*7*/].f_6 = 0;
		iVar0++;
	}
	if (iParam0)
	{
		Global_1617379.f_34242 = 3.5f;
		Global_1617379.f_34243 = 7f;
		Global_1617379.f_34244 = 0f;
		Global_1617379.f_34245 = 0f;
		iVar0 = 0;
		while (iVar0 <= 31)
		{
			Global_1617379.f_34249[iVar0] = 0;
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 <= 3)
		{
			Global_1617379.f_34287[iVar0] = -1;
			iVar0++;
		}
	}
	Global_1617379.f_70995 = -1;
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		Global_1617379.f_33642[iVar0] = 0;
		Global_1617379.f_74446[iVar0] = -1;
		Global_1617379.f_74491[iVar0] = -1;
		iVar1 = 0;
		while (iVar1 <= 16)
		{
			Global_1617379.f_33148[iVar1 /*29*/][iVar0] = 0;
			Global_1617379.f_33148[iVar1 /*29*/].f_5[iVar0] = 99999;
			Global_1617379.f_33148[iVar1 /*29*/].f_10[iVar0] = 0;
			Global_1617379.f_33148[iVar1 /*29*/].f_15[iVar0] = 0;
			Global_1617379.f_33148[iVar1 /*29*/].f_20[iVar0] = 0;
			iVar1++;
		}
		Global_1617379.f_83831[iVar0] = 0;
		iVar0++;
	}
	if (iParam0)
	{
		Global_1617379.f_34298 = 1;
	}
	Global_1617379.f_34300 = 0;
	Global_1617379.f_34301 = 0;
	Global_1617379.f_34302 = 0;
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		Global_1617379.f_34303[iVar0 /*89*/] = { 0f, 0f, 0f };
		Global_1617379.f_34303[iVar0 /*89*/].f_4 = { 0f, 0f, 0f };
		Global_1617379.f_34303[iVar0 /*89*/].f_3 = 0f;
		Global_1617379.f_34303[iVar0 /*89*/].f_7 = 50f;
		Global_1617379.f_34303[iVar0 /*89*/].f_8 = 0f;
		Global_1617379.f_34303[iVar0 /*89*/].f_9 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_10 = -1;
		Global_1617379.f_34303[iVar0 /*89*/].f_11 = { 0f, 0f, 0f };
		Global_1617379.f_34303[iVar0 /*89*/].f_14 = 0f;
		Global_1617379.f_34303[iVar0 /*89*/].f_15 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_16 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_27 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_29 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_30 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_31 = -1;
		Global_1617379.f_34303[iVar0 /*89*/].f_44 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_43 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_45 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_46 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_47 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_48 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_49 = 60;
		Global_1617379.f_34303[iVar0 /*89*/].f_50 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_37 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_32 = -1;
		Global_1617379.f_34303[iVar0 /*89*/].f_33 = -1;
		Global_1617379.f_34303[iVar0 /*89*/].f_34 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_55 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_35 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_51 = -1;
		Global_1617379.f_34303[iVar0 /*89*/].f_52 = -1;
		Global_1617379.f_34303[iVar0 /*89*/].f_53 = -1;
		Global_1617379.f_34303[iVar0 /*89*/].f_83 = -1;
		Global_1617379.f_34303[iVar0 /*89*/].f_84 = -1;
		Global_1617379.f_34303[iVar0 /*89*/].f_85 = { 0f, 0f, 0f };
		Global_1617379.f_34303[iVar0 /*89*/].f_88 = 0;
		Global_1617379.f_34303[iVar0 /*89*/].f_81 = -1;
		Global_1617379.f_34303[iVar0 /*89*/].f_82 = -1;
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			Global_1617379.f_34303[iVar0 /*89*/].f_17[iVar1] = 0;
			Global_1617379.f_34303[iVar0 /*89*/].f_22[iVar1] = 99999;
			Global_1617379.f_34303[iVar0 /*89*/].f_65[iVar1] = 0;
			Global_1617379.f_34303[iVar0 /*89*/].f_70[iVar1] = 0;
			iVar1++;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 17)
	{
		StringCopy(&(Global_1617379.f_83479[iVar0 /*18*/]), "", 64);
		Global_1617379.f_83479[iVar0 /*18*/].f_16 = 0;
		Global_1617379.f_83479[iVar0 /*18*/].f_17 = -1;
		iVar0++;
	}
	Global_1617379.f_41497 = 0;
	Global_1617379.f_41498 = 0;
	if (iParam0)
	{
		if (func_47() && !func_129())
		{
			Global_1617379.f_41499 = -1;
		}
		else
		{
			Global_1617379.f_41499 = 0;
		}
	}
	Global_1617379.f_41500 = 0;
	iVar0 = 0;
	while (iVar0 <= 39)
	{
		Global_1617379.f_41501[iVar0 /*38*/] = { 0f, 0f, 0f };
		Global_1617379.f_41501[iVar0 /*38*/].f_3 = 0f;
		Global_1617379.f_41501[iVar0 /*38*/].f_13 = 77;
		Global_1617379.f_41501[iVar0 /*38*/].f_4 = 0;
		Global_1617379.f_41501[iVar0 /*38*/].f_5 = 0;
		Global_1617379.f_41501[iVar0 /*38*/].f_21 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_7 = 1f;
		Global_1617379.f_41501[iVar0 /*38*/].f_23 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_24 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_25 = 0;
		Global_1617379.f_41501[iVar0 /*38*/].f_32 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_29 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_35 = 0;
		Global_1617379.f_41501[iVar0 /*38*/].f_33 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_30 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_36 = 0;
		Global_1617379.f_41501[iVar0 /*38*/].f_34 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_31 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_37 = 0;
		Global_1617379.f_41501[iVar0 /*38*/].f_26 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_27 = -1;
		Global_1617379.f_41501[iVar0 /*38*/].f_28 = 0;
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			Global_1617379.f_41501[iVar0 /*38*/].f_8[iVar1] = 0;
			iVar1++;
		}
		iVar0++;
	}
	func_179();
	iVar0 = 0;
	while (iVar0 < 5)
	{
		Global_1617379.f_64718[iVar0] = -1;
		iVar0++;
	}
	Global_1617379.f_71009 = -1;
	Global_1617379.f_71010 = 15;
	Global_1617379.f_71011 = -1;
	Global_1617379.f_71012 = -1;
	Global_1617379.f_71013 = 0;
	Global_1617379.f_43061 = 0;
	Global_1617379.f_36497 = 0;
	if (iParam0)
	{
		Global_1617379.f_34248 = -1;
		Global_1617379.f_33658 = -1;
	}
	Global_1617379.f_43062 = 0;
	Global_1617379.f_43063 = 0;
	Global_1617379.f_43064 = 0;
	iVar0 = 0;
	while (iVar0 <= 31)
	{
		Global_1617379.f_43065[iVar0 /*127*/] = { 0f, 0f, 0f };
		Global_1617379.f_43065[iVar0 /*127*/].f_3 = 0f;
		Global_1617379.f_43065[iVar0 /*127*/].f_4 = 50f;
		Global_1617379.f_43065[iVar0 /*127*/].f_5 = 0f;
		Global_1617379.f_43065[iVar0 /*127*/].f_6 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_7 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_8 = { 0f, 0f, 0f };
		Global_1617379.f_43065[iVar0 /*127*/].f_11 = 0f;
		Global_1617379.f_43065[iVar0 /*127*/].f_12 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_23 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_24 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_25 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_26 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_29 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_30 = 100;
		Global_1617379.f_43065[iVar0 /*127*/].f_31 = 1001f;
		Global_1617379.f_43065[iVar0 /*127*/].f_32 = 1001f;
		Global_1617379.f_43065[iVar0 /*127*/].f_34 = 1.5f;
		Global_1617379.f_43065[iVar0 /*127*/].f_41 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_106 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_42 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_43 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_27 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_28 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_46 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_36 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_37 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_38 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_58 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_59 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_61 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_104 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_103 = -1;
		iVar1 = 0;
		while (iVar1 <= 1)
		{
			Global_1617379.f_43065[iVar0 /*127*/].f_107[iVar1 /*3*/] = { 0f, 0f, 0f };
			Global_1617379.f_43065[iVar0 /*127*/].f_114[iVar1] = 0f;
			iVar1++;
		}
		Global_1617379.f_43065[iVar0 /*127*/].f_60 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_67 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_39 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_117 = 0;
		Global_1617379.f_43065[iVar0 /*127*/].f_118 = -1;
		Global_1617379.f_43065[iVar0 /*127*/].f_119 = { 0f, 0f, 0f };
		Global_1617379.f_43065[iVar0 /*127*/].f_122 = -1;
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			Global_1617379.f_43065[iVar0 /*127*/].f_13[iVar1] = 0;
			Global_1617379.f_43065[iVar0 /*127*/].f_18[iVar1] = 99999;
			Global_1617379.f_43065[iVar0 /*127*/].f_97[iVar1] = 0;
			Global_1617379.f_43065[iVar0 /*127*/].f_80[iVar1] = 0;
			Global_1617379.f_43065[iVar0 /*127*/].f_85[iVar1] = 0;
			Global_1617379.f_43065[iVar0 /*127*/].f_48[iVar1] = -1;
			Global_1617379.f_43065[iVar0 /*127*/].f_53[iVar1] = -1;
			Global_1617379.f_43065[iVar0 /*127*/].f_62[iVar1] = 0;
			iVar1++;
		}
		iVar0++;
	}
	Global_1617379.f_69939 = 0;
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		Global_1617379.f_69940[iVar0 /*9*/] = { 0f, 0f, 0f };
		Global_1617379.f_69940[iVar0 /*9*/].f_3 = { 0f, 0f, 0f };
		Global_1617379.f_69940[iVar0 /*9*/].f_6 = { 0f, 0f, 0f };
		iVar0++;
	}
	Global_1617379.f_64841 = 0;
	iVar0 = 0;
	while (iVar0 <= 59)
	{
		Global_1617379.f_64848[iVar0 /*9*/] = { 0f, 0f, 0f };
		Global_1617379.f_64848[iVar0 /*9*/].f_3 = 0f;
		Global_1617379.f_64848[iVar0 /*9*/].f_4 = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		Global_1617379.f_64842[iVar0] = 0;
		iVar1 = 0;
		while (iVar1 <= 28)
		{
			Global_1617379.f_65389[iVar0 /*262*/][iVar1 /*9*/] = { 0f, 0f, 0f };
			Global_1617379.f_65389[iVar0 /*262*/][iVar1 /*9*/].f_3 = 0f;
			Global_1617379.f_65389[iVar0 /*262*/][iVar1 /*9*/].f_4 = 0;
			Global_1617379.f_65389[iVar0 /*262*/][iVar1 /*9*/].f_5 = 0;
			Global_1617379.f_65389[iVar0 /*262*/][iVar1 /*9*/].f_7 = -1;
			Global_1617379.f_65389[iVar0 /*262*/][iVar1 /*9*/].f_8 = 0;
			iVar1++;
		}
		iVar0++;
	}
	Global_1617379.f_47405 = 0;
	Global_1617379.f_47408 = 0;
	Global_1617379.f_47409 = 0;
	Global_1617379.f_47406 = 50;
	iVar0 = 0;
	while (iVar0 <= 58)
	{
		Global_1617379.f_47410[iVar0 /*286*/].f_39 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_49 = 0;
		Global_1617379.f_47410[iVar0 /*286*/] = { 0f, 0f, 0f };
		Global_1617379.f_47410[iVar0 /*286*/].f_3 = 0f;
		Global_1617379.f_47410[iVar0 /*286*/].f_4 = 0.75f;
		Global_1617379.f_47410[iVar0 /*286*/].f_14 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_15 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_16 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_32 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_36 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_37 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_38 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_215 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_214 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_216 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_217 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_218 = 20;
		Global_1617379.f_47410[iVar0 /*286*/].f_226 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_56 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_47 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_34 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_35 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_48 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_188 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_189 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_190 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_191 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_192 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_193 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_194 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_195 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_33 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_13 = 0f;
		Global_1617379.f_47410[iVar0 /*286*/].f_5 = 50f;
		Global_1617379.f_47410[iVar0 /*286*/].f_6 = 0f;
		Global_1617379.f_47410[iVar0 /*286*/].f_7 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_8 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_9 = { 0f, 0f, 0f };
		Global_1617379.f_47410[iVar0 /*286*/].f_12 = 0f;
		Global_1617379.f_47410[iVar0 /*286*/].f_175 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_63 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_167 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_168 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_169 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_175 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_185 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_176 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_184 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_64 = { 0f, 0f, 0f };
		Global_1617379.f_47410[iVar0 /*286*/].f_57 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_58 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_62 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_59 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_252 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_263 = 1f;
		Global_1617379.f_47410[iVar0 /*286*/].f_80 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_201 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_52 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_202 = 250;
		Global_1617379.f_47410[iVar0 /*286*/].f_205 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_206 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_266 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_207 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_267 = 4;
		Global_1617379.f_47410[iVar0 /*286*/].f_237 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_153 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_154 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_155 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_227 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_228 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_229 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_230 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_265 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_264 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_156 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_157 = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_60 = 0;
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			Global_1617379.f_47410[iVar0 /*286*/].f_17[iVar1] = 0;
			Global_1617379.f_47410[iVar0 /*286*/].f_22[iVar1] = 2;
			Global_1617379.f_47410[iVar0 /*286*/].f_27[iVar1] = 99999;
			Global_1617379.f_47410[iVar0 /*286*/].f_196[iVar1] = -1;
			Global_1617379.f_47410[iVar0 /*286*/].f_238[iVar1] = 0;
			Global_1617379.f_47410[iVar0 /*286*/].f_243[iVar1] = 0;
			Global_1617379.f_47410[iVar0 /*286*/].f_253[iVar1] = -1;
			Global_1617379.f_47410[iVar0 /*286*/].f_258[iVar1] = -1;
			Global_1617379.f_47410[iVar0 /*286*/].f_269[iVar1] = -2;
			Global_1617379.f_47410[iVar0 /*286*/].f_170[iVar1] = 0;
			Global_1617379.f_47410[iVar0 /*286*/].f_231[iVar1] = 0;
			iVar1++;
		}
		Global_1617379.f_47410[iVar0 /*286*/].f_115[0] = 0f;
		Global_1617379.f_47410[iVar0 /*286*/].f_121[0] = 0f;
		Global_1617379.f_47410[iVar0 /*286*/].f_133[0] = 0f;
		Global_1617379.f_47410[iVar0 /*286*/].f_81[0] = 0;
		Global_1617379.f_47410[iVar0 /*286*/].f_87[0] = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_93[0 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_47410[iVar0 /*286*/].f_109[0] = 3;
		Global_1617379.f_47410[iVar0 /*286*/].f_127[0] = -1;
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			Global_1617379.f_47410[iVar0 /*286*/].f_67[iVar1 /*3*/] = { 0f, 0f, 0f };
			Global_1617379.f_47410[iVar0 /*286*/].f_81[iVar1 + 1] = 0;
			Global_1617379.f_47410[iVar0 /*286*/].f_115[iVar1 + 1] = 0f;
			Global_1617379.f_47410[iVar0 /*286*/].f_121[iVar1 + 1] = 0f;
			Global_1617379.f_47410[iVar0 /*286*/].f_133[iVar1 + 1] = 0f;
			Global_1617379.f_47410[iVar0 /*286*/].f_87[iVar1 + 1] = -1;
			Global_1617379.f_47410[iVar0 /*286*/].f_93[iVar1 + 1 /*3*/] = { 0f, 0f, 0f };
			Global_1617379.f_47410[iVar0 /*286*/].f_109[iVar1 + 1] = 3;
			Global_1617379.f_47410[iVar0 /*286*/].f_127[iVar1 + 1] = -1;
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 <= 4)
		{
			Global_1617379.f_47410[iVar0 /*286*/].f_139[iVar1] = 0f;
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 <= 1)
		{
			Global_1617379.f_47410[iVar0 /*286*/].f_276[iVar1 /*3*/] = { 0f, 0f, 0f };
			Global_1617379.f_47410[iVar0 /*286*/].f_283[iVar1] = 0f;
			iVar1++;
		}
		Global_1617379.f_47410[iVar0 /*286*/].f_186 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_187 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_268 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_274 = -1;
		Global_1617379.f_47410[iVar0 /*286*/].f_275 = -1;
		iVar0++;
	}
	Global_1617379.f_64841 = 0;
	iVar0 = 0;
	while (iVar0 <= 59)
	{
		Global_1617379.f_64848[iVar0 /*9*/] = { 0f, 0f, 0f };
		Global_1617379.f_64848[iVar0 /*9*/].f_3 = 0f;
		Global_1617379.f_64848[iVar0 /*9*/].f_4 = 0;
		iVar0++;
	}
	iVar1 = 0;
	while (iVar1 <= 3)
	{
		Global_1617379.f_33648[iVar1] = 0;
		iVar1++;
	}
	iVar0 = 0;
	while (iVar0 <= 14)
	{
		Global_1617379.f_31275[iVar0 /*104*/].f_53 = 0;
		Global_1617379.f_31275[iVar0 /*104*/].f_46 = 0;
		Global_1617379.f_31275[iVar0 /*104*/].f_20 = 0f;
		Global_1617379.f_31275[iVar0 /*104*/].f_28 = 0f;
		Global_1617379.f_31275[iVar0 /*104*/].f_29 = 0f;
		Global_1617379.f_31275[iVar0 /*104*/].f_30 = 0f;
		Global_1617379.f_31275[iVar0 /*104*/].f_55 = 0f;
		Global_1617379.f_31275[iVar0 /*104*/].f_56 = 0f;
		Global_1617379.f_31275[iVar0 /*104*/] = 0;
		Global_1617379.f_31275[iVar0 /*104*/].f_21 = { 0f, 0f, 0f };
		Global_1617379.f_31275[iVar0 /*104*/].f_24 = { 0f, 0f, 0f };
		Global_1617379.f_31275[iVar0 /*104*/].f_27 = 1f;
		Global_1617379.f_31275[iVar0 /*104*/].f_97 = 10.5f;
		Global_1617379.f_31275[iVar0 /*104*/].f_99 = 1f;
		Global_1617379.f_31275[iVar0 /*104*/].f_100 = 0f;
		Global_1617379.f_31275[iVar0 /*104*/].f_96 = 0;
		Global_1617379.f_31275[iVar0 /*104*/].f_54 = 0;
		Global_1617379.f_31275[iVar0 /*104*/].f_19 = 1f;
		Global_1617379.f_31275[iVar0 /*104*/].f_101 = -1;
		Global_1617379.f_31275[iVar0 /*104*/].f_102 = -1f;
		Global_1617379.f_31275[iVar0 /*104*/].f_47 = 0;
		if (Global_1617379.f_31275[iVar0 /*104*/].f_103 != 0)
		{
			graphics::delete_checkpoint(Global_1617379.f_31275[iVar0 /*104*/].f_103);
			Global_1617379.f_31275[iVar0 /*104*/].f_103 = 0;
		}
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			Global_1617379.f_31275[iVar0 /*104*/].f_1[iVar1 /*3*/] = { 0f, 0f, 0f };
			Global_1617379.f_31275[iVar0 /*104*/].f_14[iVar1] = 0f;
			Global_1617379.f_31275[iVar0 /*104*/].f_36[iVar1] = 0;
			Global_1617379.f_31275[iVar0 /*104*/].f_41[iVar1] = 0;
			Global_1617379.f_31275[iVar0 /*104*/].f_31[iVar1] = 0;
			Global_1617379.f_31275[iVar0 /*104*/].f_62[iVar1] = 0;
			Global_1617379.f_31275[iVar0 /*104*/].f_67[iVar1] = 99999;
			Global_1617379.f_31275[iVar0 /*104*/].f_72[iVar1] = 0;
			Global_1617379.f_31275[iVar0 /*104*/].f_77[iVar1] = 0;
			Global_1617379.f_31275[iVar0 /*104*/].f_57[iVar1] = 0;
			Global_1617379.f_31275[iVar0 /*104*/].f_82[iVar1] = 0;
			Global_1617379.f_31275[iVar0 /*104*/].f_87[iVar1] = 0;
			iVar1++;
		}
		iVar0++;
	}
	Global_1617379.f_69937 = 0;
	Global_1617379.f_38 = 0;
	Global_1617379.f_85850 = 12;
	Global_1617379.f_85851 = 0;
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		Global_1617379.f_83465[iVar0] = -1;
		Global_1617379.f_83470[iVar0] = -1;
		iVar0++;
	}
	Global_1617379.f_34299 = 0;
	Global_1617379.f_84066 = -1;
	Global_1617379.f_83475 = 0;
	Global_1617379.f_83464 = 0;
	Global_1617379.f_83477 = 0;
	Global_1617379.f_83476 = 0;
	Global_1617379.f_83478 = 0;
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		Global_1617379.f_70968[iVar0] = 0;
		iVar0++;
	}
	iVar3 = 0;
	while (iVar3 <= 29)
	{
		Global_1617379.f_66813[iVar3] = -1;
		Global_1617379.f_66782[iVar3] = -1;
		iVar4 = 0;
		while (iVar4 <= 9)
		{
			iVar5 = 0;
			while (iVar5 <= 3)
			{
				Global_1617379.f_66844[iVar3 /*51*/][iVar4 /*5*/][iVar5] = -1;
				Global_1617379.f_68375[iVar3 /*51*/][iVar4 /*5*/][iVar5] = -1;
				iVar5++;
			}
			iVar4++;
		}
		iVar3++;
	}
	func_159();
}

void func_179()//Position - 0x1EAD6
{
	int iVar0;
	int iVar1;
	
	Global_1617379.f_70673 = 0;
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		Global_1617379.f_70696[iVar0 /*26*/][0 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_70696[iVar0 /*26*/][1 /*3*/] = { 0f, 0f, 0f };
		Global_1617379.f_70696[iVar0 /*26*/].f_9 = 0;
		Global_1617379.f_70696[iVar0 /*26*/].f_20 = 0;
		Global_1617379.f_70696[iVar0 /*26*/].f_22 = 0f;
		Global_1617379.f_70696[iVar0 /*26*/].f_23 = 0f;
		Global_1617379.f_70696[iVar0 /*26*/].f_21 = 0;
		Global_1617379.f_70696[iVar0 /*26*/].f_7 = 0f;
		Global_1617379.f_70696[iVar0 /*26*/].f_8 = 0;
		iVar1 = 0;
		while (iVar1 <= 3)
		{
			Global_1617379.f_70696[iVar0 /*26*/].f_10[iVar1] = -1;
			iVar1++;
		}
		iVar0++;
	}
}

void func_180(var uParam0)//Position - 0x1EBBC
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 29)
	{
		*(uParam0[iVar0 /*3*/]) = { 0f, 0f, 0f };
		uParam0->f_91[iVar0 /*3*/] = { 0f, 0f, 0f };
		uParam0->f_182[iVar0] = 0;
		iVar0++;
	}
}

void func_181(var uParam0)//Position - 0x1EBF8
{
	uParam0->f_1 = -1;
	uParam0->f_2 = 0;
	uParam0->f_3 = 0;
}

void func_182(var uParam0)//Position - 0x1EC0F
{
	uParam0->f_4 = -1;
	uParam0->f_3 = -1;
	uParam0->f_6 = 0;
	uParam0->f_5 = 0;
	uParam0->f_7 = -1;
	uParam0->f_8 = 0;
	uParam0->f_9 = 0;
	*uParam0 = { 0f, 0f, 0f };
}

void func_183(char* sParam0)//Position - 0x1EC41
{
	int iVar0;
	
	StringCopy(sParam0, "", 64);
	sParam0->f_16 = 0;
	sParam0->f_17 = 0;
	sParam0->f_54 = { 0f, 0f, 0f };
	sParam0->f_60 = 0f;
	sParam0->f_57 = { 0f, 0f, 0f };
	sParam0->f_61 = 0;
	sParam0->f_62 = 0;
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		sParam0->f_18[iVar0 /*3*/] = { 0f, 0f, 0f };
		sParam0->f_31[iVar0 /*3*/] = { 0f, 0f, 0f };
		sParam0->f_44[iVar0] = 0f;
		sParam0->f_49[iVar0] = 0f;
		iVar0++;
	}
	sParam0->f_424 = -1;
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		sParam0->f_425[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 0)
	{
		sParam0->f_430[iVar0] = 0;
		sParam0->f_432[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 29)
	{
		func_184(&(sParam0->f_63[iVar0 /*12*/]));
		iVar0++;
	}
}

void func_184(var uParam0)//Position - 0x1ED20
{
	*uParam0 = -1;
	uParam0->f_1 = -1;
	uParam0->f_2 = 0;
	uParam0->f_3 = 0;
	StringCopy(&(uParam0->f_4), "", 32);
}

void func_185(char* sParam0)//Position - 0x1ED44
{
	int iVar0;
	
	StringCopy(sParam0, "", 16);
	sParam0->f_4 = 0;
	sParam0->f_5 = 0;
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		sParam0->f_6[iVar0 /*3*/] = { 0f, 0f, 0f };
		sParam0->f_19[iVar0 /*3*/] = { 0f, 0f, 0f };
		sParam0->f_32[iVar0] = 0f;
		sParam0->f_37[iVar0] = 0f;
		iVar0++;
	}
	sParam0->f_1097 = -1;
	iVar0 = 0;
	while (iVar0 <= 3)
	{
		sParam0->f_1098[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 0)
	{
		sParam0->f_1103[iVar0] = 0;
		sParam0->f_1105[iVar0] = 0;
		iVar0++;
	}
	sParam0->f_43 = 0;
	sParam0->f_42 = 0;
	sParam0->f_44 = 0;
	sParam0->f_735 = 0;
	sParam0->f_436 = 0;
	sParam0->f_437 = 0;
	sParam0->f_438 = 0;
	sParam0->f_439 = { 0f, 0f, 0f };
	sParam0->f_728 = { 0f, 0f, 0f };
	sParam0->f_731 = 0f;
	sParam0->f_732 = { 0f, 0f, 0f };
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		func_186(sParam0, iVar0);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 29)
	{
		func_184(&(sParam0->f_736[iVar0 /*12*/]));
		iVar0++;
	}
}

void func_186(char* sParam0, int iParam1)//Position - 0x1EE69
{
	if (iParam1 >= 0 && iParam1 < 20)
	{
		sParam0->f_45[iParam1] = 0;
		sParam0->f_66[iParam1] = 0;
		sParam0->f_87[iParam1 /*3*/] = { 0f, 0f, 0f };
		sParam0->f_148[iParam1 /*3*/] = { 0f, 0f, 0f };
		sParam0->f_209[iParam1 /*3*/] = { 0f, 0f, 0f };
		sParam0->f_270[iParam1 /*3*/] = { 0f, 0f, 0f };
		sParam0->f_331[iParam1] = 0f;
		sParam0->f_352[iParam1] = 0f;
		sParam0->f_373[iParam1] = 0;
		sParam0->f_394[iParam1] = -1;
		sParam0->f_415[iParam1] = 0f;
		sParam0->f_442[iParam1 /*3*/] = { 0f, 0f, 0f };
		sParam0->f_503[iParam1] = 0f;
		StringCopy(&(sParam0->f_1107[iParam1 /*4*/]), "", 16);
		StringCopy(&(sParam0->f_1188[iParam1 /*4*/]), "", 16);
	}
}

void func_187()//Position - 0x1EF2F
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 21)
	{
		Global_1617379.f_34213[iVar0] = 0;
		iVar0++;
	}
}

void func_188()//Position - 0x1EF58
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 7)
	{
		StringCopy(&(Global_1617379.f_70523[iVar0 /*16*/]), "", 64);
		iVar0++;
	}
}

var func_189()//Position - 0x1EF84
{
	return Global_2441456.f_4;
}

bool func_190()//Position - 0x1EF92
{
	if (ui::is_pause_menu_active())
	{
		if (Global_1312432)
		{
			return true;
		}
	}
	else if (Global_1312432)
	{
		Global_1312432 = 0;
	}
	return false;
}

int func_191()//Position - 0x1EFBC
{
	return gameplay::is_bit_set(Global_969327.f_8, 0);
}

int func_192()//Position - 0x1EFCF
{
	return gameplay::is_bit_set(Global_2434762, 4);
}

int func_193()//Position - 0x1EFE0
{
	return gameplay::is_bit_set(Global_2434762, 28);
}

var func_194()//Position - 0x1EFF2
{
	return Global_2434762.f_568;
}

void func_195(int iParam0)//Position - 0x1F001
{
	if (iParam0)
	{
		gameplay::set_bit(&(Global_1587523[player::player_id() /*444*/].f_13.f_1), 0);
	}
	else
	{
		gameplay::clear_bit(&(Global_1587523[player::player_id() /*444*/].f_13.f_1), 0);
	}
}

bool func_196(int iParam0)//Position - 0x1F039
{
	switch (iParam0)
	{
		case 6:
			return false;
		
		default:
	}
	return true;
}

void func_197()//Position - 0x1F053
{
	if (func_223())
	{
		func_422(1, 1, 0);
		return;
	}
	if (!func_220())
	{
		if (iLocal_366)
		{
			if (gameplay::get_game_timer() > iLocal_367)
			{
				iLocal_367 = 0;
				iLocal_366 = 0;
				func_198();
			}
		}
		return;
	}
	if (Global_1347390 != 145)
	{
		Global_1347390.f_9 = 1;
	}
	func_13(0);
}

void func_198()//Position - 0x1F0A8
{
	char cVar0[16];
	int iVar4;
	char cVar5[64];
	char cVar21[64];
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	char cVar43[32];
	char* sVar47;
	
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	StringCopy(&cVar0, "", 16);
	iVar4 = 0;
	StringCopy(&cVar5, "", 64);
	StringCopy(&cVar21, "", 64);
	iVar37 = 0;
	iVar38 = func_12();
	iVar39 = 145;
	iVar40 = gameplay::is_bit_set(Global_2391093[iLocal_268 /*73*/].f_5, 4);
	iVar41 = true;
	iVar42 = false;
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(7);
	graphics::_push_scaleform_movie_function_parameter_int(iVar4);
	StringCopy(&cVar0, func_215(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3, Global_2391093[iLocal_268 /*73*/].f_72), 16);
	if (iVar40)
	{
		iVar38 = player::int_to_playerindex(Global_2391093[iLocal_268 /*73*/].f_1);
		iVar41 = func_10(iVar38, 0, 1);
	}
	else
	{
		iVar39 = Global_2391093[iLocal_268 /*73*/].f_1;
		iVar41 = true;
	}
	if (iVar41)
	{
		if (iVar40)
		{
			StringCopy(&cVar21, player::get_player_name(iVar38), 64);
		}
		else
		{
			cVar43 = { func_214(iVar39) };
			sVar47 = func_213(&cVar43);
			StringCopy(&cVar21, ui::_get_label_text(sVar47), 64);
		}
		graphics::_begin_text_component("STRING");
		ui::add_text_component_substring_player_name(&cVar21);
		graphics::_end_text_component();
		iVar42 = true;
	}
	else
	{
		graphics::_begin_text_component(&cVar0);
		graphics::_end_text_component();
		iVar42 = false;
	}
	graphics::_begin_text_component("WAIT_RESERVE");
	graphics::_end_text_component();
	if (iVar42)
	{
		if (iVar40)
		{
			iVar37 = func_207(iVar38);
			if (iVar37 == 0)
			{
				iVar42 = false;
			}
			else
			{
				StringCopy(&cVar5, ped::get_pedheadshot_txd_string(iVar37), 64);
			}
		}
		else
		{
			StringCopy(&cVar5, ui::_get_label_text(func_206(iVar39)), 64);
		}
	}
	if (iVar42)
	{
		graphics::_push_scaleform_movie_function_parameter_string(&cVar5);
	}
	else
	{
		func_205(&Local_264);
	}
	graphics::_pop_scaleform_movie_function_void();
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	func_203(&Local_260);
	func_199(1, "", 1, "", 1, "", &iLocal_271);
}

void func_199(int iParam0, char* sParam1, int iParam2, char* sParam3, int iParam4, char* sParam5, int iParam6)//Position - 0x1F278
{
	func_200(2, iParam0, sParam1, 0, iParam6, -1);
	func_200(1, iParam2, sParam3, 1, iParam6, 17);
	func_200(3, iParam4, sParam5, 2, iParam6, -1);
}

void func_200(int iParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5)//Position - 0x1F2A8
{
	if (iParam1 == 1)
	{
		func_202(Global_14394, "SET_SOFT_KEYS", system::to_float(iParam0), 0f, system::to_float(iParam1), -1f, -1f, 0, 0, 0, 0, 0);
		gameplay::clear_bit(iParam4, iParam3);
		func_201(iParam5, 0);
		return;
	}
	if (Global_14401)
	{
		func_202(Global_14394, "SET_SOFT_KEYS", system::to_float(iParam0), 1f, system::to_float(iParam1), -1f, -1f, sParam2, 0, 0, 0, 0);
		gameplay::set_bit(iParam4, iParam3);
		func_201(iParam5, 1);
		return;
	}
	func_202(Global_14394, "SET_SOFT_KEYS", system::to_float(iParam0), 1f, system::to_float(iParam1), -1f, -1f, 0, 0, 0, 0, 0);
	gameplay::set_bit(iParam4, iParam3);
	func_201(iParam5, 1);
}

void func_201(int iParam0, int iParam1)//Position - 0x1F34D
{
	if (iParam0 == -1)
	{
		return;
	}
	if (iParam1)
	{
		gameplay::set_bit(&Global_2283, iParam0);
		return;
	}
	gameplay::clear_bit(&Global_2283, iParam0);
}

void func_202(int iParam0, char* sParam1, float fParam2, float fParam3, float fParam4, float fParam5, float fParam6, char* sParam7, char* sParam8, char* sParam9, char* sParam10, char* sParam11)//Position - 0x1F378
{
	graphics::_push_scaleform_movie_function(iParam0, sParam1);
	graphics::_push_scaleform_movie_function_parameter_int(system::round(fParam2));
	if (fParam3 != -1f)
	{
		graphics::_push_scaleform_movie_function_parameter_int(system::round(fParam3));
	}
	if (fParam4 != -1f)
	{
		graphics::_push_scaleform_movie_function_parameter_int(system::round(fParam4));
	}
	if (fParam5 != -1f)
	{
		graphics::_push_scaleform_movie_function_parameter_int(system::round(fParam5));
	}
	if (fParam6 != -1f)
	{
		graphics::_push_scaleform_movie_function_parameter_int(system::round(fParam6));
	}
	if (!gameplay::is_string_null_or_empty(sParam7))
	{
		func_205(sParam7);
	}
	if (!gameplay::is_string_null_or_empty(sParam8))
	{
		func_205(sParam8);
	}
	if (!gameplay::is_string_null_or_empty(sParam9))
	{
		func_205(sParam9);
	}
	if (!gameplay::is_string_null_or_empty(sParam10))
	{
		func_205(sParam10);
	}
	if (!gameplay::is_string_null_or_empty(sParam11))
	{
		func_205(sParam11);
	}
	graphics::_pop_scaleform_movie_function_void();
}

void func_203(char* sParam0)//Position - 0x1F42B
{
	func_204(Global_14394, "SET_HEADER", sParam0, 0, 0, 0, 0);
}

void func_204(int iParam0, char* sParam1, char* sParam2, char* sParam3, char* sParam4, char* sParam5, char* sParam6)//Position - 0x1F444
{
	graphics::_push_scaleform_movie_function(iParam0, sParam1);
	func_205(sParam2);
	if (!gameplay::is_string_null_or_empty(sParam3))
	{
		func_205(sParam3);
	}
	if (!gameplay::is_string_null_or_empty(sParam4))
	{
		func_205(sParam4);
	}
	if (!gameplay::is_string_null_or_empty(sParam5))
	{
		func_205(sParam5);
	}
	if (!gameplay::is_string_null_or_empty(sParam6))
	{
		func_205(sParam6);
	}
	graphics::_pop_scaleform_movie_function_void();
}

void func_205(char* sParam0)//Position - 0x1F49F
{
	graphics::_begin_text_component(sParam0);
	graphics::_end_text_component();
}

var func_206(int iParam0)//Position - 0x1F4B1
{
	return func_213(&(Global_101154.f_32575[iParam0 /*29*/].f_7));
}

int func_207(int iParam0)//Position - 0x1F4CA
{
	int iVar0;
	
	iVar0 = func_210(iParam0);
	if (iVar0 == -1)
	{
		func_208(iParam0, 1);
		return 0;
	}
	Global_1348553[iVar0 /*5*/].f_4 = 1;
	return Global_1348553[iVar0 /*5*/].f_2;
}

void func_208(int iParam0, int iParam1)//Position - 0x1F500
{
	if (!func_10(iParam0, 0, 1))
	{
		return;
	}
	if (func_210(iParam0) != -1)
	{
		return;
	}
	if (Global_1348716)
	{
		if (iParam0 == Global_1348716.f_1)
		{
			return;
		}
	}
	if (func_209(iParam0))
	{
		return;
	}
	if (Global_1348754 >= 32)
	{
		return;
	}
	Global_1348721[Global_1348754] = iParam0;
	Global_1348754++;
	if (iParam1)
	{
	}
}

bool func_209(int iParam0)//Position - 0x1F56C
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1348754)
	{
		if (Global_1348721[iVar0] == iParam0)
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_210(int iParam0)//Position - 0x1F59E
{
	int iVar0;
	
	if (!func_10(iParam0, 0, 1))
	{
		return -1;
	}
	if (Global_1348714 == 0)
	{
		return -1;
	}
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1348714)
	{
		if (Global_1348553[iVar0 /*5*/].f_1 == iParam0)
		{
			if (ped::is_pedheadshot_valid(Global_1348553[iVar0 /*5*/].f_2) && ped::is_pedheadshot_ready(Global_1348553[iVar0 /*5*/].f_2))
			{
				return iVar0;
			}
			func_211(iVar0);
			return -1;
		}
		iVar0++;
	}
	return -1;
}

void func_211(int iParam0)//Position - 0x1F61D
{
	char cVar0[64];
	char cVar16[64];
	int iVar32;
	int iVar33;
	
	if (iParam0 >= Global_1348714)
	{
		return;
	}
	if (ped::is_pedheadshot_valid(Global_1348553[iParam0 /*5*/].f_2))
	{
		StringCopy(&cVar0, "CHAR_DEFAULT", 64);
		if (Global_1348553[iParam0 /*5*/].f_2 != 0)
		{
			StringCopy(&cVar16, ped::get_pedheadshot_txd_string(Global_1348553[iParam0 /*5*/].f_2), 64);
			ui::_0x317EBA71D7543F52(&cVar16, &cVar16, &cVar0, &cVar0);
		}
		ped::unregister_pedheadshot(Global_1348553[iParam0 /*5*/].f_2);
	}
	iVar32 = iParam0;
	iVar33 = iVar32 + 1;
	while (iVar33 < Global_1348714)
	{
		Global_1348553[iVar32 /*5*/] = { Global_1348553[iVar33 /*5*/] };
		iVar32++;
		iVar33++;
	}
	func_212(&(Global_1348553[iVar32 /*5*/]));
	Global_1348714 = (Global_1348714 - 1);
}

void func_212(var uParam0)//Position - 0x1F6D3
{
	*uParam0 = 0;
	uParam0->f_1 = func_12();
	uParam0->f_2 = 0;
	uParam0->f_4 = 0;
	if (network::network_is_game_in_progress())
	{
		uParam0->f_3 = network::get_network_time();
	}
}

var func_213(char[4] cParam0)//Position - 0x1F700
{
	return cParam0;
}

struct<4> func_214(int iParam0)//Position - 0x1F70A
{
	return Global_101154.f_32575[iParam0 /*29*/].f_3;
}

char* func_215(int iParam0, int iParam1, int iParam2)//Position - 0x1F721
{
	var uVar0;
	char cVar1[64];
	
	switch (iParam0)
	{
		case 3:
			return "CELL_2613";
		
		case 5:
			return "CELL_2615";
		
		case 6:
			return "CELL_2616";
		
		case 8:
			return "CELL_2618";
		
		case 11:
			return "CELL_2620";
		
		case 122:
			return "CELL_PILOTS";
		
		case 12:
			return "CELL_2621";
		
		case 13:
			return "CELL_2622";
		
		case 14:
			return "CELL_2623";
		
		case 15:
			return "CELL_2624";
		
		case 56:
			return "CELL_2625";
		
		case 30:
			return "CELL_2627";
		
		case 32:
			return "CELL_2628";
		
		case 117:
			if (iParam2 == 1)
			{
				return "BLIP_455";
			}
			else if (iParam2 == 2)
			{
				return "PM_SPAWN_OFFICE";
			}
			return "CELL_2630";
		
		case 68:
			return "CELL_2630Q";
		
		case 116:
			return "CELL_2629";
		
		case 134:
			return "CELL_2631";
		
		case 148:
			return "CELL_BOSSVBOSS";
		
		case 123:
		case 145:
		case 0:
		case 1:
		case 2:
			break;
		
		default:
			return "CELL_250";
	}
	StringCopy(&cVar1, "", 64);
	switch (iParam0)
	{
		case 123:
			if (iParam1 == 7)
			{
				return "FMMC_RSTAR_HP";
			}
			return "FMMC_RSTAR_MHST";
		
		case 145:
			return "FMMC_RSTAR_MSL";
		
		case 0:
			if (iParam1 >= 0)
			{
				MemCopy(&cVar1, {func_218(iParam1, 1, 0, 0)}, 16);
				uVar0 = func_213(&cVar1);
				return uVar0;
			}
			return "CELL_2610";
		
		case 1:
			if (iParam1 >= 0)
			{
				MemCopy(&cVar1, {func_217(iParam1, 1, 0)}, 16);
				uVar0 = func_213(&cVar1);
				return uVar0;
			}
			return "CELL_2611";
		
		case 2:
			if (iParam1 >= 0)
			{
				MemCopy(&cVar1, {func_216(iParam1, 1, 0)}, 16);
				uVar0 = func_213(&cVar1);
				return uVar0;
			}
			return "CELL_2612";
		
		default:
	}
	return "CELL_250";
}

struct<6> func_216(int iParam0, int iParam1, int iParam2)//Position - 0x1F923
{
	struct<6> Var0;
	
	StringCopy(&Var0, "", 24);
	switch (iParam0)
	{
		case 0:
		case 1:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_LR", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_LR", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_LR", 24);
			return Var0;
		
		case 10:
		case 11:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_OFR", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_OFR", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_OFR", 24);
			return Var0;
		
		case 12:
		case 13:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_BR", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_BR", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_BR", 24);
			return Var0;
		
		case 6:
		case 7:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_SR", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_STR", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_SR", 24);
			return Var0;
		
		case 2:
		case 3:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_WR", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_WR", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_WR", 24);
			return Var0;
		
		case 4:
		case 5:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_AR", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_AR", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_AR", 24);
			return Var0;
		
		default:
	}
	StringCopy(&Var0, "FMMC_RSTAR_LR", 24);
	return Var0;
}

struct<6> func_217(int iParam0, int iParam1, int iParam2)//Position - 0x1FAD7
{
	struct<6> Var0;
	
	StringCopy(&Var0, "", 24);
	switch (iParam0)
	{
		case 0:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_DM", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_DM", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_DM", 24);
			return Var0;
		
		case 1:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_TDM", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_TDM", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_TDM", 24);
			return Var0;
		
		case 2:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_VDM", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_VDM", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_VDM", 24);
			return Var0;
		
		default:
	}
	StringCopy(&Var0, "FMMC_RSTAR_DM", 24);
	return Var0;
}

struct<6> func_218(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x1FBB0
{
	struct<6> Var0;
	
	StringCopy(&Var0, "", 24);
	switch (iParam0)
	{
		case 1:
			StringCopy(&Var0, "FMMC_RSTAR_MHST", 24);
			return Var0;
		
		case 7:
			StringCopy(&Var0, "FMMC_RSTAR_HP", 24);
			return Var0;
		
		case 5:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_LTS", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_MLTS", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_LTS", 24);
			return Var0;
		
		case 6:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_CTF", 24);
				return Var0;
			}
			if (iParam1)
			{
				StringCopy(&Var0, "FMMC_RSTAR_MCTF", 24);
				return Var0;
			}
			StringCopy(&Var0, "FMMC_PL_CTF", 24);
			return Var0;
		
		case 8:
			if (iParam3 == 0)
			{
				StringCopy(&Var0, "FMMC_RSTAR_MSL", 24);
			}
			else
			{
				StringCopy(&Var0, "FMMC_RSTAR_MS", 24);
			}
			return Var0;
		
		case 129:
			StringCopy(&Var0, "FMMC_RSTAR_MSA", 24);
			return Var0;
		
		case 2:
		case 3:
		case 0:
		case 4:
		case 9:
			if (iParam2)
			{
				StringCopy(&Var0, "FMMC_BM_MISS", 24);
			}
			else
			{
				StringCopy(&Var0, "FMMC_RSTAR_MS", 24);
			}
			return Var0;
		
		default:
	}
	StringCopy(&Var0, "FMMC_RSTAR_MS", 24);
	return Var0;
}

void func_219(int iParam0, char* sParam1, float fParam2, float fParam3, float fParam4, float fParam5, float fParam6)//Position - 0x1FCEE
{
	graphics::_push_scaleform_movie_function(iParam0, sParam1);
	graphics::_push_scaleform_movie_function_parameter_int(system::round(fParam2));
	if (fParam3 != -1f)
	{
		graphics::_push_scaleform_movie_function_parameter_int(system::round(fParam3));
	}
	if (fParam4 != -1f)
	{
		graphics::_push_scaleform_movie_function_parameter_int(system::round(fParam4));
	}
	if (fParam5 != -1f)
	{
		graphics::_push_scaleform_movie_function_parameter_int(system::round(fParam5));
	}
	if (fParam6 != -1f)
	{
		graphics::_push_scaleform_movie_function_parameter_int(system::round(fParam6));
	}
	graphics::_pop_scaleform_movie_function_void();
}

bool func_220()//Position - 0x1FD51
{
	if (!func_222())
	{
		return false;
	}
	if (func_221())
	{
		return false;
	}
	if (func_223())
	{
		return false;
	}
	return true;
}

int func_221()//Position - 0x1FD7C
{
	return Global_2394645.f_1 != 0;
}

var func_222()//Position - 0x1FD8C
{
	return Global_2394645;
}

var func_223()//Position - 0x1FD98
{
	return Global_2394645.f_20;
}

void func_224()//Position - 0x1FDA6
{
	struct<13> Var0;
	int iVar13;
	var uVar14;
	int iVar15;
	int iVar16;
	int iVar17;
	int iVar18;
	
	if (func_254(&iLocal_271))
	{
		func_250();
		return;
	}
	if (player::get_player_wanted_level(player::player_id()) == 0)
	{
		func_249("FMMC_LOST_WANTED_LEVEL", -1);
		func_250();
		return;
	}
	if (!func_245(&iLocal_271))
	{
		return;
	}
	Var0 = { func_87(player::player_id()) };
	iVar13 = func_242(20);
	if (func_241())
	{
		func_231(-180141073, iVar13, &uVar14, 0, 1, 0);
		Global_2558146[uVar14 /*73*/].f_8.f_3 = { Var0 };
	}
	else
	{
		networkcash::network_spent_buy_wantedlevel(iVar13, &Var0, false, true);
	}
	if (func_10(player::player_id(), 0, 0))
	{
		if (player::is_player_wanted_level_greater(player::player_id(), 0))
		{
			player::clear_player_wanted_level(player::player_id());
			Global_2460486.f_4409 = 1;
			func_230(0);
		}
	}
	iVar15 = -1;
	iVar16 = gameplay::is_bit_set(Global_2391093[iLocal_268 /*73*/].f_5, 4);
	if (iVar16)
	{
		iVar17 = player::int_to_playerindex(Global_2391093[iLocal_268 /*73*/].f_1);
		iVar15 = func_229(iVar17);
	}
	else
	{
		iVar18 = Global_2391093[iLocal_268 /*73*/].f_1;
		iVar15 = func_228(iVar18);
	}
	func_225(iVar15);
	func_13(0);
}

void func_225(int iParam0)//Position - 0x1FEBA
{
	if (iParam0 >= Global_1347402)
	{
		return;
	}
	if (Global_2394116[iParam0 /*44*/].f_1)
	{
		return;
	}
	Global_2394116[iParam0 /*44*/].f_1 = 1;
	ui::_remove_notification(Global_2394116[iParam0 /*44*/].f_25);
	func_227();
	func_226();
}

void func_226()//Position - 0x1FEFF
{
	Global_16774 = 0;
}

void func_227()//Position - 0x1FF0B
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1347372)
	{
		if (Global_2391978[iVar0 /*80*/].f_53 != -1)
		{
			ui::_remove_notification(Global_2391978[iVar0 /*80*/].f_53);
			Global_2391978[iVar0 /*80*/].f_53 = -1;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_1347400)
	{
		if (Global_2392939[iVar0 /*98*/].f_91 != -1)
		{
			ui::_remove_notification(Global_2392939[iVar0 /*98*/].f_91);
			Global_2392939[iVar0 /*98*/].f_91 = -1;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_1347402)
	{
		if (Global_2394116[iVar0 /*44*/].f_25 != -1)
		{
			ui::_remove_notification(Global_2394116[iVar0 /*44*/].f_25);
			Global_2394116[iVar0 /*44*/].f_25 = -1;
		}
		iVar0++;
	}
}

int func_228(int iParam0)//Position - 0x1FFCA
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1347402)
	{
		if (!Global_2394116[iVar0 /*44*/].f_6)
		{
			if (Global_2394116[iVar0 /*44*/].f_5 == iParam0)
			{
				return iVar0;
			}
		}
		iVar0++;
	}
	return -1;
}

int func_229(int iParam0)//Position - 0x2000D
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1347402)
	{
		if (Global_2394116[iVar0 /*44*/].f_6)
		{
			if (Global_2394116[iVar0 /*44*/].f_4 == iParam0)
			{
				return iVar0;
			}
		}
		iVar0++;
	}
	return -1;
}

void func_230(int iParam0)//Position - 0x2004F
{
	int iVar0;
	
	iVar0 = 3000;
	if (iParam0)
	{
		iVar0 = 10000;
	}
	Global_2391020.f_9 = (gameplay::get_game_timer() + iVar0);
}

void func_231(int iParam0, int iParam1, var uParam2, int iParam3, int iParam4, int iParam5)//Position - 0x20073
{
	int iVar0;
	
	if (!func_241())
	{
		return;
	}
	iVar0 = 1;
	if (iParam4)
	{
		iVar0 = 4;
	}
	else if (iParam3)
	{
		iVar0 = 2;
	}
	else if (iParam5)
	{
		iVar0 = 8;
	}
	switch (iParam0)
	{
		case -1645229221:
		case -585718395:
		case -1359375127:
		case 454359403:
		case -982394051:
		case 1643659499:
		case -2072289654:
		case 650665123:
		case 1654961868:
		case -876847842:
		case 68030260:
		case -2122299283:
		case 366672791:
		case 283351220:
		case 291576838:
		case 1182673174:
		case -516219046:
		case 1036455748:
		case 277665518:
		case 2043854386:
		case 1839532116:
		case 1022400740:
		case 1940862352:
		case -1389227906:
		case 711665950:
		case 1704445500:
		case 1515774909:
		case 1173654533:
		case -899802304:
		case -663944335:
		case 1208553146:
		case -613221010:
		case -671062876:
		case -407201236:
		case -754024203:
		case -1885444887:
		case 1931729587:
		case 1064954035:
		case -180141073:
		case 2131324797:
		case 1612072658:
		case -517447402:
		case 1948102096:
		case 1108628223:
		case -1834046564:
		case -1239008812:
		case -222363842:
		case -1276678868:
		case 1564537328:
		case -96593501:
		case 742499889:
		case 2050093329:
		case -1752488069:
		case 634375935:
		case 1850983186:
		case 763367758:
		case 1941570214:
		case 665109499:
		case -1330755006:
			if (iParam1 > 0)
			{
				func_232(uParam2, -1135378931, 537254313, 1474183246, iParam0, iParam1, iVar0, 7);
			}
			break;
		
		case -31156877:
		case -1027218631:
		case -1398318418:
		case 1652884147:
		case -57868256:
		case -1216489292:
		case -46622315:
		case -352356931:
		case -990286235:
		case 563463121:
		case 1734805203:
		case 941287179:
		case -1186079845:
		case -1985150258:
		case -1127021384:
		case -109201286:
		case 312105838:
		case 1982688246:
		case -661030418:
		case 1301046174:
		case -1586170317:
		case 393059668:
		case 23796958:
		case -1077156170:
		case 1780666425:
		case -2043695058:
		case -1922554349:
		case 1287308202:
		case 691372038:
		case 1480707108:
		case 1512499951:
		case 562283735:
		case -154732333:
		case -1362660491:
		case 645708827:
		case 767907967:
		case -1970151306:
		case 718859568:
		case -1955564771:
		case 892388724:
		case 1349151477:
		case 1620609399:
		case 1961641934:
		case 210955503:
		case -59668082:
		case 1736933716:
		case -1468524125:
		case 111573502:
		case 1525644423:
		case 968073639:
		case 1577781788:
		case -934465332:
		case -1194253122:
		case -212607085:
		case -815546555:
		case 1048226110:
		case 569170531:
		case -856006867:
		case 848090538:
			func_232(uParam2, -1135378931, 1445302971, 1474183246, iParam0, iParam1, iVar0, 7);
			break;
	}
}

bool func_232(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x203B9
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	iVar0 = false;
	if (!func_241())
	{
		iVar0 = true;
	}
	if (!iVar0)
	{
		if (!unk3::_0xB24F0944DA203D9E(func_240()) || unk3::_0x810E8431C0614BF9())
		{
			Global_2558637 = 1;
			return false;
		}
		if (Global_2444207)
		{
			if (iParam3 == 1067618600 || iParam3 == -1303831698)
			{
				Global_2558638 = 1;
				return false;
			}
		}
	}
	iVar2 = false;
	iVar1 = 0;
	while (iVar1 < 5)
	{
		if (Global_2558146[iVar1 /*73*/].f_2 == 0)
		{
			iVar2 = true;
		}
		iVar1++;
	}
	if (!iVar2)
	{
		return false;
	}
	*uParam0 = 5;
	iVar3 = 2147483647;
	if (iVar0 || unk3::_network_shop_begin_service(&iVar3, iParam3, iParam4, iParam2, iParam5, iParam6))
	{
		if (iVar0 || unk3::_network_shop_checkout_start(iVar3))
		{
			*uParam0 = func_239(iVar3, iParam1, iParam4, iParam2, iParam3, iParam5, 0, iParam6, iParam7);
			if (iVar0)
			{
				if (*uParam0 != -1)
				{
					Global_2558146[*uParam0 /*73*/].f_66 = 1;
				}
			}
			Global_2558628 = 1;
			return true;
		}
	}
	else
	{
		if (iParam7 & 2 != 0)
		{
			Global_2558636 = 1;
			Global_2558639 = iParam4;
			Global_2558641 = iParam3;
			Global_2558642 = 1;
			Global_2558640 = iParam5;
		}
		if (iParam7 & 8 != 0)
		{
			Global_2558639 = iParam4;
			Global_2558641 = iParam3;
			Global_2558642 = 1;
			Global_2558640 = iParam5;
		}
		iVar4 = false;
		if (iVar4)
		{
			func_238(1, iParam4);
			Global_2558636 = 0;
		}
		if (iParam7 & 4 != 0)
		{
			func_233(-1, iParam4, iParam6, iParam5, -1);
		}
	}
	return false;
}

void func_233(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x2052D
{
	switch (iParam1)
	{
		case 1704445500:
			gameplay::set_bit(&(Global_2418472[player::player_id() /*313*/].f_121.f_71), 0);
			break;
	}
	if (iParam0 != -1)
	{
		func_234(iParam0);
	}
}

void func_234(int iParam0)//Position - 0x20565
{
	int iVar0;
	
	iVar0 = false;
	if (!func_241())
	{
		iVar0 = true;
	}
	if (iParam0 != -1)
	{
		if (func_237(iParam0))
		{
			if (!iVar0)
			{
				unk_0xFA336E7F40C0A0D0();
			}
		}
		else if (!iVar0)
		{
			unk3::_network_shop_end_service(Global_2558146[iParam0 /*73*/]);
		}
		func_235(&(Global_2558146[iParam0 /*73*/]));
	}
}

void func_235(var uParam0)//Position - 0x205B7
{
	*uParam0 = 0;
	*uParam0 = 2147483647;
	uParam0->f_1 = 0;
	uParam0->f_2 = 0;
	uParam0->f_3 = -1593119440;
	uParam0->f_4 = -2085313189;
	uParam0->f_5 = 0;
	uParam0->f_6 = 1227573907;
	uParam0->f_7 = -1161833819;
	uParam0->f_8 = 0;
	uParam0->f_8.f_1 = 0;
	uParam0->f_8.f_2 = 0;
	func_236(&(uParam0->f_8.f_3));
	func_236(&(uParam0->f_8.f_16));
	StringCopy(&(uParam0->f_8.f_29), "", 32);
	StringCopy(&(uParam0->f_8.f_37), "", 24);
	StringCopy(&(uParam0->f_8.f_43), "", 16);
	StringCopy(&(uParam0->f_8.f_47), "", 16);
	uParam0->f_8.f_51 = 0;
	uParam0->f_8.f_52 = 0;
	uParam0->f_8.f_53 = 0;
	uParam0->f_8.f_54 = 0;
	uParam0->f_8.f_55 = 0;
	uParam0->f_8.f_56 = 0;
	uParam0->f_66 = 0;
	uParam0->f_67 = 0;
	uParam0->f_68 = 0;
	uParam0->f_69 = 0;
	uParam0->f_70 = 0;
	uParam0->f_71 = 0;
	uParam0->f_72 = 0;
}

void func_236(var uParam0)//Position - 0x2069E
{
	*uParam0 = 0;
	uParam0->f_1 = 0;
	uParam0->f_2 = 0;
	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;
	uParam0->f_11 = 0;
	uParam0->f_12 = 0;
}

int func_237(int iParam0)//Position - 0x206E6
{
	if (iParam0 >= 0 && iParam0 < 5)
	{
		return Global_2558146[iParam0 /*73*/].f_5 == 1;
	}
	return false;
}

void func_238(int iParam0, int iParam1)//Position - 0x2070E
{
	Global_2445534 = iParam1;
	Global_2445533 = iParam0;
}

int func_239(int iParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, var uParam8)//Position - 0x20722
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 5)
	{
		if (Global_2558146[iVar0 /*73*/].f_2 == 0)
		{
			if (!func_241())
			{
				iParam0 = iVar0 + 900;
			}
			Global_2558146[iVar0 /*73*/].f_2 = 1;
			Global_2558146[iVar0 /*73*/].f_1 = iParam5;
			Global_2558146[iVar0 /*73*/].f_3 = uParam1;
			Global_2558146[iVar0 /*73*/].f_4 = iParam2;
			Global_2558146[iVar0 /*73*/].f_7 = iParam3;
			Global_2558146[iVar0 /*73*/].f_5 = 0;
			Global_2558146[iVar0 /*73*/] = iParam0;
			Global_2558146[iVar0 /*73*/].f_6 = iParam4;
			Global_2558146[iVar0 /*73*/].f_69 = uParam8;
			Global_2558146[iVar0 /*73*/].f_68 = iParam7;
			Global_2558146[iVar0 /*73*/].f_72 = 0;
			Global_2558628 = 0;
			if (iParam6)
			{
				Global_2558146[iVar0 /*73*/].f_5 = 1;
			}
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

var func_240()//Position - 0x207F6
{
	return Global_1312747;
}

bool func_241()//Position - 0x20802
{
	if (gameplay::is_pc_version())
	{
		return true;
	}
	return false;
}

int func_242(int iParam0)//Position - 0x20816
{
	int iVar0;
	
	iVar0 = 0;
	if (func_244(iParam0) >= 0)
	{
		iVar0 = func_244(iParam0);
	}
	else
	{
		iVar0 = func_243(iParam0);
	}
	return iVar0;
}

int func_243(int iParam0)//Position - 0x20840
{
	switch (iParam0)
	{
		case 1:
			return 1000;
			break;
		
		case 10:
			return 5000;
			break;
		
		case 11:
			return 8000;
			break;
		
		case 8:
			return 1000;
			break;
		
		case 0:
			return 500;
			break;
		
		case 9:
			return 250;
			break;
		
		case 13:
			return 1000;
			break;
		
		case 12:
			return 7500;
			break;
		
		case 2:
			return 1000;
			break;
		
		case 14:
			return 500;
			break;
		
		case 20:
			if (player::get_player_wanted_level(player::player_id()) == 1)
			{
				return 200;
			}
			else if (player::get_player_wanted_level(player::player_id()) == 2)
			{
				return 400;
			}
			else if (player::get_player_wanted_level(player::player_id()) == 3)
			{
				return 600;
			}
			else if (player::get_player_wanted_level(player::player_id()) == 4)
			{
				return 800;
			}
			else if (player::get_player_wanted_level(player::player_id()) == 5)
			{
				return 1000;
			}
			break;
		
		case 6:
			return 500;
			break;
		
		case 22:
			return 200;
			break;
		
		case 23:
			return 400;
			break;
		
		case 24:
			return 700;
			break;
		
		case 25:
			return 100;
			break;
		
		case 26:
			return 1000;
			break;
		
		case 35:
			return 5000;
			break;
		
		case 15:
			return 0;
			break;
		
		case 17:
			return 0;
			break;
		
		case 18:
			return 0;
			break;
		
		case 19:
			return 0;
			break;
		
		case 21:
			return 0;
			break;
		
		case 36:
			return 0;
			break;
		
		case 39:
			return 200;
			break;
		
		case 40:
			return 1000;
		
		case 41:
			return 750;
		
		case 42:
			return 0;
	}
	return 0;
}

int func_244(int iParam0)//Position - 0x20A38
{
	switch (iParam0)
	{
		case 1:
			return Global_262145.f_5049;
			break;
		
		case 10:
			return Global_262145.f_4111;
			break;
		
		case 11:
			return Global_262145.f_4112;
			break;
		
		case 8:
			return Global_262145.f_4109;
			break;
		
		case 0:
			return Global_262145.f_4095;
			break;
		
		case 9:
			return Global_262145.f_4110;
			break;
		
		case 13:
			return Global_262145.f_4114;
			break;
		
		case 12:
			return Global_262145.f_4113;
			break;
		
		case 2:
			return Global_262145.f_4105;
			break;
		
		case 14:
			return Global_262145.f_4115;
			break;
		
		case 20:
			if (player::get_player_wanted_level(player::player_id()) == 1)
			{
				return Global_262145.f_5056;
			}
			else if (player::get_player_wanted_level(player::player_id()) == 2)
			{
				return Global_262145.f_5057;
			}
			else if (player::get_player_wanted_level(player::player_id()) == 3)
			{
				return Global_262145.f_5058;
			}
			else if (player::get_player_wanted_level(player::player_id()) == 4)
			{
				return Global_262145.f_5059;
			}
			else if (player::get_player_wanted_level(player::player_id()) == 5)
			{
				return Global_262145.f_5060;
			}
			break;
		
		case 6:
			return Global_262145.f_4108;
			break;
		
		case 22:
			return Global_262145.f_4121;
			break;
		
		case 23:
			return Global_262145.f_4122;
			break;
		
		case 24:
			return Global_262145.f_4123;
			break;
		
		case 25:
			return Global_262145.f_4124;
			break;
		
		case 26:
			return Global_262145.f_4125;
			break;
		
		case 35:
			return Global_262145.f_5625;
			break;
		
		case 15:
			return Global_262145.f_5050;
			break;
		
		case 17:
			return Global_262145.f_5050;
			break;
		
		case 18:
			return Global_262145.f_5050;
			break;
		
		case 19:
			return Global_262145.f_5050;
			break;
		
		case 21:
			return Global_262145.f_5050;
			break;
		
		case 36:
			return Global_262145.f_6090;
			break;
		
		case 39:
			return -1;
			break;
		
		case 40:
			return Global_262145.f_10811;
			break;
		
		case 41:
			return Global_262145.f_10812;
			break;
		
		case 42:
			return Global_262145.f_10813;
			break;
		
		case 43:
			return Global_262145.f_12809;
			break;
		
		case 44:
			return Global_262145.f_12811;
			break;
	}
	return 0;
}

bool func_245(int iParam0)//Position - 0x20CEC
{
	if (!gameplay::is_bit_set(*iParam0, 0))
	{
		return false;
	}
	if (Global_14391)
	{
		return false;
	}
	if (!cam::is_screen_faded_in())
	{
		return false;
	}
	if (!controls::is_control_just_pressed(2, Global_14382))
	{
		return false;
	}
	func_246();
	Global_14391 = 1;
	return true;
}

void func_246()//Position - 0x20D33
{
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		audio::play_sound_frontend(-1, "Menu_Accept", &Global_14402, 1);
		func_247();
	}
}

void func_247()//Position - 0x20D59
{
	if (func_248())
	{
		mobile::_move_finger(5);
	}
}

bool func_248()//Position - 0x20D6D
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (Global_69489)
	{
		return false;
	}
	iVar2 = 0;
	iVar0 = cam::_0x19CAFA3C87F7C2FF();
	iVar1 = cam::_0xEE778F8C7E1142E2(iVar0);
	if (iVar1 == 4)
	{
		iVar2 = 1;
	}
	if (Global_2563611 || iVar2)
	{
		return true;
	}
	return true;
}

void func_249(char* sParam0, int iParam1)//Position - 0x20DB4
{
	ui::_set_text_component_format(sParam0);
	ui::_display_help_text_from_string_label(0, 0, true, iParam1);
}

void func_250()//Position - 0x20DCB
{
	char cVar0[16];
	int iVar4;
	char cVar5[64];
	char cVar21[64];
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	vector3 vVar44[24];
	char cVar50[32];
	char* sVar54;
	int iVar55;
	int iVar56;
	int iVar57;
	int iVar58;
	
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	StringCopy(&cVar0, "", 16);
	iVar4 = 0;
	StringCopy(&cVar5, "", 64);
	StringCopy(&cVar21, "", 64);
	iVar37 = 0;
	iVar38 = func_12();
	iVar39 = 145;
	iVar40 = gameplay::is_bit_set(Global_2391093[iLocal_268 /*73*/].f_5, 4);
	iVar41 = true;
	iVar42 = false;
	iVar43 = false;
	StringCopy(&cVar44, "", 24);
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(7);
	graphics::_push_scaleform_movie_function_parameter_int(iVar4);
	StringCopy(&cVar0, func_215(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3, Global_2391093[iLocal_268 /*73*/].f_72), 16);
	if (iVar40)
	{
		iVar38 = player::int_to_playerindex(Global_2391093[iLocal_268 /*73*/].f_1);
		iVar41 = func_10(iVar38, 0, 1);
	}
	else
	{
		iVar39 = Global_2391093[iLocal_268 /*73*/].f_1;
		iVar41 = true;
	}
	if (iVar41)
	{
		if (iVar40)
		{
			StringCopy(&cVar21, player::get_player_name(iVar38), 64);
		}
		else
		{
			cVar50 = { func_214(iVar39) };
			sVar54 = func_213(&cVar50);
			StringCopy(&cVar21, ui::_get_label_text(sVar54), 64);
		}
		graphics::_begin_text_component("STRING");
		ui::add_text_component_substring_player_name(&cVar21);
		graphics::_end_text_component();
		iVar42 = true;
	}
	else
	{
		graphics::_begin_text_component(&cVar0);
		graphics::_end_text_component();
		iVar42 = false;
	}
	iVar43 = true;
	if (gameplay::is_string_null_or_empty(&(Global_2391093[iLocal_268 /*73*/].f_25)))
	{
		iVar43 = false;
	}
	StringCopy(&cVar44, "STRING", 24);
	iVar55 = false;
	if (Global_2391093[iLocal_268 /*73*/].f_2 == 32)
	{
		if ((!gameplay::is_string_null_or_empty(&(Global_2391093[iLocal_268 /*73*/].f_41)) && Global_2391093[iLocal_268 /*73*/].f_57 != -1) && Global_2391093[iLocal_268 /*73*/].f_4 != -1)
		{
			StringCopy(&cVar44, "JL_IMP_RACE", 24);
			iVar55 = true;
		}
	}
	iVar56 = false;
	if (Global_2391093[iLocal_268 /*73*/].f_2 == 5 || Global_2391093[iLocal_268 /*73*/].f_2 == 148)
	{
		if (Global_2391093[iLocal_268 /*73*/].f_57 != -1)
		{
			StringCopy(&cVar44, "JL_1ON1_DM", 24);
			iVar56 = true;
		}
	}
	iVar57 = false;
	if (Global_2391093[iLocal_268 /*73*/].f_2 == 117)
	{
		if (!gameplay::is_string_null_or_empty(&(Global_2391093[iLocal_268 /*73*/].f_41)))
		{
			StringCopy(&cVar44, "TWOSTRINGSNL", 24);
			iVar57 = true;
		}
	}
	iVar58 = true;
	if (Global_2391093[iLocal_268 /*73*/].f_2 == 123)
	{
		if (Global_2391093[iLocal_268 /*73*/].f_3 == 7)
		{
			StringCopy(&cVar44, "CELL_268_PREP_DETAIL", 24);
			iVar58 = false;
			iVar43 = false;
		}
		else
		{
			StringCopy(&cVar44, "CELL_268_HEIST_DETAIL", 24);
		}
	}
	graphics::_begin_text_component(&cVar44);
	if (iVar43)
	{
		ui::_0x5F68520888E69014(&(Global_2391093[iLocal_268 /*73*/].f_25));
	}
	else if (iVar58)
	{
		ui::_add_text_component_item_string(&cVar0);
	}
	if (iVar55)
	{
		ui::_add_text_component_item_string(&(Global_2391093[iLocal_268 /*73*/].f_41));
		ui::add_text_component_integer(Global_2391093[iLocal_268 /*73*/].f_57);
		ui::add_text_component_integer(Global_2391093[iLocal_268 /*73*/].f_4);
	}
	if (iVar56)
	{
		ui::add_text_component_integer(Global_2391093[iLocal_268 /*73*/].f_57);
	}
	if (iVar57)
	{
		ui::_add_text_component_item_string(&(Global_2391093[iLocal_268 /*73*/].f_41));
	}
	graphics::_end_text_component();
	if (iVar42)
	{
		if (iVar40)
		{
			iVar37 = func_207(iVar38);
			if (iVar37 == 0)
			{
				iVar42 = false;
			}
			else
			{
				StringCopy(&cVar5, ped::get_pedheadshot_txd_string(iVar37), 64);
			}
		}
		else
		{
			StringCopy(&cVar5, ui::_get_label_text(func_206(iVar39)), 64);
		}
	}
	if (iVar42)
	{
		graphics::_push_scaleform_movie_function_parameter_string(&cVar5);
	}
	else
	{
		func_205(&Local_264);
	}
	func_251(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3, Global_2391093[iLocal_268 /*73*/].f_64, Global_2391093[iLocal_268 /*73*/].f_65);
	graphics::_pop_scaleform_movie_function_void();
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	func_203(&Local_260);
	func_199(13, &Local_220, 1, "", 4, &Local_204, &iLocal_271);
	iLocal_203 = 5;
}

void func_251(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x21173
{
	int iVar0;
	
	iVar0 = 0;
	if (iParam0 == 0 || iParam0 == 123)
	{
		if ((iParam1 == 1 || iParam1 == 7) || iParam0 == 123)
		{
			iVar0 = 1;
		}
		else if (iParam1 == 8)
		{
			iVar0 = 3;
		}
		else if (Global_262145.f_9533)
		{
			if (func_252(iParam2, iParam3))
			{
				iVar0 = 2;
			}
		}
	}
	graphics::_push_scaleform_movie_function_parameter_int(iVar0);
}

bool func_252(int iParam0, int iParam1)//Position - 0x211DD
{
	if (iParam0 != 0)
	{
		if (func_118(iParam0))
		{
			if (Global_262145.f_10112)
			{
				return false;
			}
			return true;
		}
		else if (func_120(iParam0))
		{
			if (Global_262145.f_10113)
			{
				return false;
			}
			return true;
		}
		else if (func_119(iParam0))
		{
			if (Global_262145.f_10114)
			{
				return false;
			}
			return true;
		}
		else if (func_116(iParam0))
		{
			if (Global_262145.f_10115)
			{
				return false;
			}
			return true;
		}
		else if (func_117(iParam0))
		{
			if (Global_262145.f_10116)
			{
				return false;
			}
			return true;
		}
		else if (func_115(iParam0))
		{
			if (Global_262145.f_10117)
			{
				return false;
			}
			return true;
		}
		else if (func_114(iParam0))
		{
			if (Global_262145.f_10118)
			{
				return false;
			}
			return true;
		}
		else if (func_113(iParam0))
		{
			if (Global_262145.f_10119)
			{
				return false;
			}
			return true;
		}
		else if (func_102(iParam0))
		{
			if (Global_262145.f_10120)
			{
				return false;
			}
			return true;
		}
		else if (func_103(iParam0))
		{
			if (Global_262145.f_10121)
			{
				return false;
			}
			return true;
		}
		else if (func_97(iParam0))
		{
			if (Global_262145.f_10122)
			{
				return false;
			}
			return true;
		}
		if (func_253(iParam0, iParam1))
		{
			return true;
		}
	}
	return false;
}

bool func_253(int iParam0, int iParam1)//Position - 0x21342
{
	if (iParam1 > 0)
	{
		return true;
	}
	if ((((((((((((((((((func_120(iParam0) || func_119(iParam0)) || func_118(iParam0)) || func_116(iParam0)) || func_117(iParam0)) || func_115(iParam0)) || func_114(iParam0)) || func_113(iParam0)) || func_103(iParam0)) || func_102(iParam0)) || func_97(iParam0)) || func_112(iParam0)) || func_111(iParam0)) || func_110(iParam0)) || func_109(iParam0)) || func_107(iParam0)) || func_106(iParam0)) || func_104(iParam0)) || func_108(iParam0))
	{
		return true;
	}
	return false;
}

bool func_254(int iParam0)//Position - 0x2143A
{
	if (!gameplay::is_bit_set(*iParam0, 2))
	{
		return false;
	}
	if (Global_14391)
	{
		return false;
	}
	if (!cam::is_screen_faded_in())
	{
		return false;
	}
	if (!controls::is_control_just_pressed(2, Global_14383))
	{
		return false;
	}
	func_255();
	Global_14391 = 1;
	return true;
}

void func_255()//Position - 0x21481
{
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		audio::play_sound_frontend(-1, "Menu_Back", &Global_14402, 1);
	}
}

void func_256()//Position - 0x214A3
{
	struct<13> Var0;
	int iVar13;
	var uVar14;
	struct<16> Var15;
	int iVar31;
	
	if (func_254(&iLocal_271))
	{
		func_271();
		return;
	}
	if (player::get_player_wanted_level(player::player_id()) == 0)
	{
		func_249("FMMC_LOST_WANTED_LEVEL", -1);
		func_271();
		return;
	}
	if (!func_245(&iLocal_271))
	{
		return;
	}
	Var0 = { func_87(player::player_id()) };
	iVar13 = func_242(20);
	if (func_241())
	{
		func_231(-180141073, iVar13, &uVar14, 0, 1, 0);
		Global_2558146[uVar14 /*73*/].f_8.f_3 = { Var0 };
	}
	else
	{
		networkcash::network_spent_buy_wantedlevel(iVar13, &Var0, false, true);
	}
	Var15 = { Global_2391093[iLocal_268 /*73*/].f_9 };
	iVar31 = func_269(Var15);
	func_257(iVar31);
}

void func_257(int iParam0)//Position - 0x21557
{
	int iVar0;
	
	iVar0 = network::_0x742B58F723233ED9(Global_2391093[iLocal_268 /*73*/].f_1);
	if (func_268())
	{
		Global_1315924 = network::_0x742B58F723233ED9(Global_2391093[iLocal_268 /*73*/].f_1);
		if (network::network_is_game_in_progress())
		{
			if (func_10(player::player_id(), 0, 0))
			{
				if (player::is_player_wanted_level_greater(player::player_id(), 0))
				{
					player::clear_player_wanted_level(player::player_id());
					Global_2460486.f_4409 = 1;
					func_230(1);
				}
			}
		}
		func_267(1);
		func_266(1);
		func_265(0);
	}
	else if (iVar0 >= 0)
	{
		network::network_accept_presence_invite(iVar0);
		if (network::network_is_game_in_progress())
		{
			if (func_10(player::player_id(), 0, 0))
			{
				if (player::is_player_wanted_level_greater(player::player_id(), 0))
				{
					player::clear_player_wanted_level(player::player_id());
					Global_2460486.f_4409 = 1;
					func_230(1);
				}
			}
			func_263(Global_2392939[iParam0 /*98*/].f_49, &(Global_2392939[iParam0 /*98*/].f_56), Global_2392939[iParam0 /*98*/].f_50);
			func_262();
		}
	}
	if (Global_2392939[iParam0 /*98*/].f_91 != -1)
	{
		ui::_remove_notification(Global_2392939[iParam0 /*98*/].f_91);
		func_227();
	}
	func_258(iParam0);
	func_13(0);
}

void func_258(int iParam0)//Position - 0x21664
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam0 >= Global_1347400)
	{
		return;
	}
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 <= 11)
	{
		if (gameplay::get_game_timer() > Global_2395202[iVar0 /*4*/].f_2 || Global_2395202[iVar0 /*4*/].f_2 == 0)
		{
			if (network::_0xCEFA968912D0F78D() > 0 && Global_2392939[iParam0 /*98*/].f_90 < network::_0xCEFA968912D0F78D())
			{
				Global_2395202[iVar0 /*4*/].f_3 = network::_0x26E1CD96B0903D60(Global_2392939[iParam0 /*98*/].f_90);
				Global_2395202[iVar0 /*4*/].f_2 = gameplay::get_game_timer() + 30000;
				iVar0 = 12;
			}
		}
		iVar0++;
	}
	if (Global_2392939[iParam0 /*98*/].f_91 != -1)
	{
		ui::_remove_notification(Global_2392939[iParam0 /*98*/].f_91);
	}
	if (!Global_2392939[iParam0 /*98*/].f_55)
	{
		if (Global_2392939[iParam0 /*98*/].f_51 != 0)
		{
			network::_0x5A34CD9C3C5BEC44(Global_2392939[iParam0 /*98*/].f_51);
		}
	}
	func_261(Global_2392939[iParam0 /*98*/].f_90);
	iVar1 = iParam0;
	iVar2 = iVar1 + 1;
	while (iVar2 < Global_1347400)
	{
		Global_2392939[iVar1 /*98*/] = { Global_2392939[iVar2 /*98*/] };
		iVar1++;
		iVar2++;
	}
	func_260(iVar1);
	Global_1347400 = (Global_1347400 - 1);
	if (Global_1347373)
	{
		if (Global_1347371 > 0)
		{
			func_259();
		}
	}
}

void func_259()//Position - 0x217AC
{
	Global_1347373 = 0;
}

void func_260(int iParam0)//Position - 0x217B9
{
	Global_2392939[iParam0 /*98*/] = 0;
	Global_2392939[iParam0 /*98*/].f_1 = 0;
	Global_2392939[iParam0 /*98*/].f_5 = 0;
	StringCopy(&(Global_2392939[iParam0 /*98*/].f_14), "", 64);
	StringCopy(&(Global_2392939[iParam0 /*98*/].f_30), "", 64);
	Global_2392939[iParam0 /*98*/].f_46 = -1;
	Global_2392939[iParam0 /*98*/].f_47 = gameplay::get_game_timer();
	Global_2392939[iParam0 /*98*/].f_48 = -1;
	Global_2392939[iParam0 /*98*/].f_49 = -1;
	Global_2392939[iParam0 /*98*/].f_50 = -1;
	Global_2392939[iParam0 /*98*/].f_51 = 0;
	Global_2392939[iParam0 /*98*/].f_52 = 0;
	Global_2392939[iParam0 /*98*/].f_52.f_1 = 0;
	Global_2392939[iParam0 /*98*/].f_52.f_2 = 0;
	Global_2392939[iParam0 /*98*/].f_55 = 0;
	StringCopy(&(Global_2392939[iParam0 /*98*/].f_56), "", 64);
	StringCopy(&(Global_2392939[iParam0 /*98*/].f_72), "", 64);
	Global_2392939[iParam0 /*98*/].f_88 = 0;
	Global_2392939[iParam0 /*98*/].f_89 = 0;
	Global_2392939[iParam0 /*98*/].f_90 = -1;
	Global_2392939[iParam0 /*98*/].f_91 = -1;
	Global_2392939[iParam0 /*98*/].f_92 = 0;
	Global_2392939[iParam0 /*98*/].f_93 = -1;
	Global_2392939[iParam0 /*98*/].f_94 = 0;
	Global_2392939[iParam0 /*98*/].f_95 = 0;
	Global_2392939[iParam0 /*98*/].f_96 = 0;
	Global_2392939[iParam0 /*98*/].f_97 = 0;
}

void func_261(int iParam0)//Position - 0x218FF
{
	int iVar0;
	
	iVar0 = network::_0x742B58F723233ED9(iParam0);
	if (iVar0 < 0 || iVar0 >= network::_0xCEFA968912D0F78D())
	{
		return;
	}
	if (network::network_remove_presence_invite(iVar0))
	{
		return;
	}
}

void func_262()//Position - 0x21932
{
	Global_2394718 = gameplay::get_game_timer() + 5000;
}

void func_263(var uParam0, char* sParam1, var uParam2)//Position - 0x21945
{
	struct<20> Var0;
	int iVar20;
	int iVar21;
	
	if (!network::network_is_game_in_progress())
	{
		return;
	}
	if (func_10(player::player_id(), 1, 1))
	{
		if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
		{
			iVar21 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 1);
			if (vehicle::is_vehicle_driveable(iVar21, 0))
			{
				iVar20 = func_264(iVar21, 0, 0);
				Var0 = 196;
				Var0.f_1 = player::player_id();
				StringCopy(&(Var0.f_2), sParam1, 64);
				Var0.f_18 = uParam0;
				Var0.f_19 = uParam2;
				if (iVar20 != 0)
				{
					script::trigger_script_event(1, &Var0, 20, iVar20);
				}
				return;
			}
		}
	}
}

var func_264(int iParam0, int iParam1, int iParam2)//Position - 0x219C4
{
	var uVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar1 = 0;
	while (iVar1 < 32)
	{
		iVar3 = player::int_to_playerindex(iVar1);
		if (func_10(iVar3, 1, 0))
		{
			if (ped::is_ped_in_any_vehicle(player::get_player_ped(iVar3), 0))
			{
				iVar2 = ped::get_vehicle_ped_is_in(player::get_player_ped(iVar3), 0);
				if (iVar2 == iParam0)
				{
					if (player::get_player_team(iVar3) == player::get_player_team(player::player_id()) || !iParam2)
					{
						if (iVar3 != player::player_id() || iParam1)
						{
							gameplay::set_bit(&uVar0, iVar1);
						}
					}
				}
			}
		}
		iVar1++;
	}
	return uVar0;
}

void func_265(int iParam0)//Position - 0x21A4B
{
	Global_25121 = iParam0;
}

void func_266(int iParam0)//Position - 0x21A58
{
	Global_1315880 = iParam0;
}

void func_267(int iParam0)//Position - 0x21A66
{
	Global_1315882 = iParam0;
}

var func_268()//Position - 0x21A74
{
	return Global_1315909;
}

int func_269(struct<16> Param0)//Position - 0x21A80
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1347400)
	{
		if (gameplay::are_strings_equal(&Param0, &(Global_2392939[iVar0 /*98*/].f_30)))
		{
			return iVar0;
		}
		iVar0++;
	}
	return func_270(Param0);
}

int func_270(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, var uParam7, var uParam8, var uParam9, var uParam10, var uParam11, var uParam12, var uParam13, var uParam14, var uParam15)//Position - 0x21AC1
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1347400)
	{
		if (gameplay::are_strings_equal(&uParam0, &(Global_2392939[iVar0 /*98*/].f_14)))
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

void func_271()//Position - 0x21AFA
{
	char cVar0[16];
	int iVar4;
	char cVar5[64];
	int iVar21;
	int iVar22;
	char cVar23[16];
	struct<16> Var27[8];
	int iVar156;
	
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	StringCopy(&cVar0, "", 16);
	iVar4 = 0;
	StringCopy(&cVar5, "", 64);
	iVar21 = false;
	iVar22 = false;
	StringCopy(&cVar23, "", 16);
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(7);
	graphics::_push_scaleform_movie_function_parameter_int(iVar4);
	StringCopy(&cVar0, func_215(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3, Global_2391093[iLocal_268 /*73*/].f_72), 16);
	graphics::_begin_text_component("STRING");
	StringCopy(&cVar5, "<C>", 64);
	StringConCat(&cVar5, &(Global_2391093[iLocal_268 /*73*/].f_9), 64);
	StringConCat(&cVar5, "</C>", 64);
	ui::add_text_component_substring_player_name(&cVar5);
	graphics::_end_text_component();
	iVar21 = true;
	if (gameplay::is_string_null_or_empty(&(Global_2391093[iLocal_268 /*73*/].f_25)))
	{
		iVar21 = false;
	}
	if (iVar21)
	{
		if (Global_2391093[iLocal_268 /*73*/].f_57 != 0)
		{
			func_281(Global_2391093[iLocal_268 /*73*/].f_57, &Var27);
			iVar22 = true;
		}
		else if (Global_2391093[iLocal_268 /*73*/].f_2 == 0 && Global_2391093[iLocal_268 /*73*/].f_3 == 7)
		{
			func_279(Global_2391093[iLocal_268 /*73*/].f_58, &Var27);
			iVar22 = true;
		}
	}
	if (iVar21)
	{
		if (iVar22)
		{
			StringCopy(&cVar23, "STRINGNLDESC8", 16);
		}
		else
		{
			StringCopy(&cVar23, "TWOSTRINGSNL", 16);
		}
	}
	else
	{
		StringCopy(&cVar23, "STRING", 16);
	}
	graphics::_begin_text_component(&cVar23);
	if (iVar21)
	{
		ui::_0x5F68520888E69014(&(Global_2391093[iLocal_268 /*73*/].f_25));
		if (iVar22)
		{
			iVar156 = 0;
			iVar156 = 0;
			while (iVar156 < 8)
			{
				ui::_0x5F68520888E69014(&(Var27[iVar156 /*16*/]));
				iVar156++;
			}
		}
		else
		{
			ui::_0x5F68520888E69014(&(Global_2391093[iLocal_268 /*73*/].f_41));
		}
	}
	else
	{
		ui::_add_text_component_item_string(&cVar0);
	}
	graphics::_end_text_component();
	func_205(&Local_264);
	func_251(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3, Global_2391093[iLocal_268 /*73*/].f_64, Global_2391093[iLocal_268 /*73*/].f_65);
	graphics::_pop_scaleform_movie_function_void();
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	func_203(&Local_260);
	func_199(13, &Local_220, 12, &Local_224, 4, &Local_204, &iLocal_271);
	func_272();
	iLocal_203 = 4;
}

void func_272()//Position - 0x21D3D
{
	int iVar0;
	
	iVar0 = false;
	if (func_277(player::player_id()))
	{
		StringCopy(&vLocal_368, "PHINVQUITBB", 24);
		iVar0 = true;
	}
	else if (func_276(player::player_id()))
	{
		StringCopy(&vLocal_368, "PHINVQUITB", 24);
		iVar0 = true;
	}
	if (func_273())
	{
		StringCopy(&vLocal_368, "PHINVQUIT", 24);
		iVar0 = true;
	}
	if (iVar0)
	{
	}
	func_249(&vLocal_368, -1);
}

bool func_273()//Position - 0x21D99
{
	if (func_274(player::player_id(), 131) || func_274(player::player_id(), 129))
	{
		return true;
	}
	return false;
}

int func_274(int iParam0, int iParam1)//Position - 0x21DC3
{
	if (Global_1610316[iParam0 /*174*/] == iParam1)
	{
		return func_275(iParam0);
	}
	return false;
}

int func_275(var uParam0)//Position - 0x21DE2
{
	int iVar0;
	
	iVar0 = uParam0;
	if (iVar0 != -1)
	{
		return gameplay::is_bit_set(Global_1610316[iVar0 /*174*/].f_1, 0);
	}
	return false;
}

bool func_276(int iParam0)//Position - 0x21E07
{
	if (func_275(iParam0))
	{
		return true;
	}
	if (func_277(iParam0))
	{
		return true;
	}
	return false;
}

int func_277(int iParam0)//Position - 0x21E2A
{
	int iVar0;
	
	iVar0 = iParam0;
	if (iVar0 != -1)
	{
		return func_278(iParam0, 9);
	}
	return false;
}

int func_278(var uParam0, int iParam1)//Position - 0x21E48
{
	return gameplay::is_bit_set(Global_1610316[uParam0 /*174*/].f_10.f_4, iParam1);
}

void func_279(struct<6> Param0, var uParam6)//Position - 0x21E62
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 8)
	{
		StringCopy(uParam6[iVar0 /*16*/], "", 64);
		iVar0++;
	}
	iVar1 = func_280(Param0);
	if (iVar1 == -1)
	{
		return;
	}
	iVar0 = 0;
	while (iVar0 < 8)
	{
		*(uParam6[iVar0 /*16*/]) = { Global_786484.f_3503[iVar1 /*132*/][iVar0 /*16*/] };
		iVar0++;
	}
}

int func_280(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5)//Position - 0x21ECC
{
	int iVar0;
	int iVar1;
	
	if (Global_262145.f_3763)
	{
		return -1;
	}
	if (!network::network_is_game_in_progress())
	{
		return -1;
	}
	if (Global_786484 == 0)
	{
		return -1;
	}
	if (gameplay::is_string_null_or_empty(&uParam0))
	{
		return -1;
	}
	iVar0 = gameplay::get_hash_key(&uParam0);
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 < Global_786484)
	{
		if (Global_786484.f_3082[iVar1 /*12*/].f_2 == iVar0)
		{
			return iVar1;
		}
		iVar1++;
	}
	return -1;
}

void func_281(int iParam0, var uParam1)//Position - 0x21F3F
{
	char* sVar0;
	
	sVar0 = func_283(iParam0, 500);
	func_282(sVar0, uParam1);
}

void func_282(char* sParam0, var uParam1)//Position - 0x21F5A
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 8)
	{
		StringCopy(uParam1[iVar0 /*16*/], "", 64);
		iVar0++;
	}
	if (gameplay::is_string_null_or_empty(sParam0))
	{
		return;
	}
	iVar1 = ui::_0x43E4111189E54F0E(sParam0);
	iVar2 = 0;
	iVar3 = 63;
	iVar0 = 0;
	if (iVar1 > 0)
	{
		while (iVar1 >= iVar3 && iVar0 < 8)
		{
			StringCopy(uParam1[iVar0 /*16*/], ui::_get_text_substring_slice(sParam0, iVar2, iVar3), 64);
			iVar0++;
			iVar2 = iVar3;
			iVar3 += 63;
		}
		if (iVar0 < 8)
		{
			if (iVar1 > iVar2 && iVar1 < iVar3)
			{
				StringCopy(uParam1[iVar0 /*16*/], ui::_get_text_substring_slice(sParam0, iVar2, iVar1), 64);
				iVar0++;
			}
		}
	}
}

var func_283(int iParam0, int iParam1)//Position - 0x2200F
{
	if (iParam0 == -1)
	{
		return func_161();
	}
	return network::_0x40F7E66472DF3E5C(iParam0, iParam1);
}

void func_284()//Position - 0x2202F
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	struct<16> Var4;
	int iVar20;
	struct<13> Var21;
	int iVar34;
	var uVar35;
	
	if (func_254(&iLocal_271))
	{
		func_325();
		return;
	}
	if (player::get_player_wanted_level(player::player_id()) == 0)
	{
		func_249("FMMC_LOST_WANTED_LEVEL", -1);
		func_325();
		return;
	}
	Global_2395255 = gameplay::get_game_timer() + 1500;
	if (!func_245(&iLocal_271))
	{
		return;
	}
	iVar0 = -1;
	iVar1 = gameplay::is_bit_set(Global_2391093[iLocal_268 /*73*/].f_5, 4);
	if (iVar1)
	{
		iVar2 = player::int_to_playerindex(Global_2391093[iLocal_268 /*73*/].f_1);
		iVar0 = func_324(iVar2);
	}
	else
	{
		iVar3 = Global_2391093[iLocal_268 /*73*/].f_1;
		Var4 = { Global_2391093[iLocal_268 /*73*/].f_25 };
		iVar20 = true;
		iVar0 = func_323(iVar3, &Var4, iVar20);
	}
	if (iVar0 == -1)
	{
		func_422(1, 1, 0);
		return;
	}
	Var21 = { func_87(player::player_id()) };
	iVar34 = func_242(20);
	if (func_241())
	{
		func_231(-180141073, iVar34, &uVar35, 0, 1, 0);
		Global_2558146[uVar35 /*73*/].f_8.f_3 = { Var21 };
	}
	else
	{
		networkcash::network_spent_buy_wantedlevel(iVar34, &Var21, false, true);
	}
	func_285(iVar0);
}

void func_285(int iParam0)//Position - 0x22145
{
	var uVar0;
	int iVar1;
	
	if (!func_10(player::player_id(), 0, 0))
	{
		func_422(1, 1, 0);
		return;
	}
	if (player::is_player_wanted_level_greater(player::player_id(), 0))
	{
		func_322(func_242(20));
		if ((Global_2391978[iParam0 /*80*/].f_12 == 0 && Global_2391978[iParam0 /*80*/].f_13 == 2) && ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
		{
		}
		else
		{
			player::clear_player_wanted_level(player::player_id());
		}
		Global_2460486.f_4409 = 1;
		func_230(0);
	}
	if (!player::is_player_playing(player::player_id()))
	{
		func_422(1, 1, 0);
		return;
	}
	uVar0 = Global_2391978[iParam0 /*80*/].f_53;
	if (!func_290(uVar0))
	{
		func_422(1, 1, 0);
		return;
	}
	iLocal_366 = 1;
	iLocal_367 = gameplay::get_game_timer() + 5000;
	iVar1 = gameplay::is_bit_set(Global_2391093[iLocal_268 /*73*/].f_5, 4);
	if (iVar1)
	{
		func_289(16);
	}
	else
	{
		func_289(2);
	}
	func_286();
	iLocal_203 = 11;
}

void func_286()//Position - 0x22232
{
	if (func_166() || func_288())
	{
		func_287();
	}
}

void func_287()//Position - 0x2224F
{
	Global_2434762.f_631 = 1;
}

var func_288()//Position - 0x2225F
{
	return Global_2434762.f_610;
}

void func_289(int iParam0)//Position - 0x2226E
{
	Global_978143 = iParam0;
}

bool func_290(var uParam0)//Position - 0x2227C
{
	int iVar0;
	vector3 vVar1;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	struct<20> Var8;
	int iVar28;
	int iVar29;
	var uVar30;
	struct<16> Var31;
	
	iVar0 = 0;
	vVar1 = { Global_2391093[iLocal_268 /*73*/].f_6 };
	iVar4 = gameplay::is_bit_set(Global_2391093[iLocal_268 /*73*/].f_5, 4);
	iVar5 = func_12();
	iVar6 = -1;
	iVar7 = 0;
	Var8.f_1 = -1;
	Var8.f_2 = -1;
	Var8.f_9 = -1;
	Var8.f_16 = -1;
	Var8.f_19 = -1;
	Var8 = func_30(Global_2391093[iLocal_268 /*73*/].f_2);
	Var8.f_2 = Global_2391093[iLocal_268 /*73*/].f_4;
	Var8.f_3 = { Global_2391093[iLocal_268 /*73*/].f_58 };
	Var8.f_1 = func_319(Var8.f_3);
	iVar7 = func_316(Var8.f_3);
	iVar28 = 2;
	if (!iVar4)
	{
		iVar28 = 5;
	}
	if (iVar4)
	{
		iVar5 = player::int_to_playerindex(Global_2391093[iLocal_268 /*73*/].f_1);
		if (func_10(iVar5, 0, 1))
		{
			iVar6 = iVar5;
		}
		else
		{
			iVar5 = func_12();
			iVar6 = -1;
		}
	}
	iVar0 = func_303(iVar28, Var8, iVar7, 0, -1, -1, iVar6, 0);
	if (iVar0 == 0)
	{
		func_296();
		return false;
	}
	if (iVar4)
	{
		if (func_10(iVar5, 0, 1))
		{
			Global_1347376 = Global_1587523[iVar5 /*444*/].f_250.f_9;
			network::network_handle_from_player(iVar5, &(Global_1347376.f_1), 13);
		}
	}
	if (!iVar4)
	{
		Global_1347390 = Global_2391093[iLocal_268 /*73*/].f_1;
		MemCopy(&(Global_1347390.f_1), {Var8.f_3}, 8);
		Global_1347390.f_9 = 0;
	}
	else
	{
		Global_1347390 = 145;
		StringCopy(&(Global_1347390.f_1), "", 32);
		Global_1347390.f_9 = 0;
	}
	iVar29 = Global_2391093[iLocal_268 /*73*/].f_2;
	uVar30 = Global_2391093[iLocal_268 /*73*/].f_3;
	StringCopy(&Var31, "", 64);
	if (!gameplay::is_string_null_or_empty(&(Global_2391093[iLocal_268 /*73*/].f_25)))
	{
		Var31 = { Global_2391093[iLocal_268 /*73*/].f_25 };
	}
	func_294(iVar0, vVar1, iVar29, uVar30, Var31, uParam0, &(Var8.f_3), Global_1347376, iVar5);
	func_292();
	if (iVar4)
	{
		if (iVar29 == 0)
		{
			if (Global_2391093[iLocal_268 /*73*/].f_3 == 1 || Global_2391093[iLocal_268 /*73*/].f_3 == 7)
			{
				if (func_10(iVar5, 0, 1))
				{
					Global_2394703 = { func_87(iVar5) };
					func_291(iVar5, &Global_2394703);
					Global_2394703.f_13 = Global_2391093[iLocal_268 /*73*/].f_69;
				}
			}
		}
	}
	return true;
}

void func_291(int iParam0, var uParam1)//Position - 0x224C8
{
	*uParam1 = { Global_1587523[iParam0 /*444*/].f_250.f_45 };
}

void func_292()//Position - 0x224E5
{
	func_293(&Global_2394703);
	Global_2394703.f_13 = 0;
	Global_2394717 = 0;
}

void func_293(var uParam0)//Position - 0x22501
{
	*uParam0 = 0;
	uParam0->f_1 = 0;
	uParam0->f_2 = 0;
	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;
	uParam0->f_11 = 0;
	uParam0->f_12 = 0;
}

void func_294(int iParam0, vector3 vParam1, var uParam4, var uParam5, struct<16> Param6, var uParam22, char* sParam23, var uParam24, int iParam25)//Position - 0x22549
{
	if (func_222())
	{
		return;
	}
	if (iParam0 == 0)
	{
		Global_2394645.f_20 = 1;
		return;
	}
	func_295();
	Global_2394645 = 1;
	Global_2394645.f_1 = iParam0;
	Global_2394645.f_18 = uParam4;
	Global_2394645.f_19 = uParam5;
	Global_2394645.f_2 = { Param6 };
	Global_2394645.f_20 = 0;
	Global_2394645.f_21 = { vParam1 };
	Global_2394645.f_24 = uParam22;
	StringCopy(&(Global_2394645.f_26), sParam23, 24);
	Global_2394645.f_32 = uParam24;
	Global_2394645.f_33 = iParam25;
	Global_2394645.f_25 = gameplay::get_game_timer() + 30000;
}

void func_295()//Position - 0x225DC
{
	struct<34> Var0;
	
	Var0.f_18 = -1;
	Var0.f_19 = -1;
	Var0.f_24 = -1;
	Global_2394645 = { Var0 };
	Global_2394645.f_21 = { 0f, 0f, 0f };
	Global_2394645.f_25 = gameplay::get_game_timer();
}

void func_296()//Position - 0x2261A
{
	if (Global_2391035 == 0)
	{
		func_302();
		return;
	}
	if (!func_10(player::player_id(), 1, 1))
	{
		func_302();
	}
	if (func_301(player::player_id(), 1, 0))
	{
		func_302();
		return;
	}
	if (!func_301(player::player_id(), 1, 0))
	{
		player::set_player_wanted_level_no_drop(player::player_id(), Global_2391035, 0);
		player::set_player_wanted_level_now(player::player_id(), 0);
		func_298(Global_2391036, 8, 3, 0);
		func_297("RESTORE_WANTED", Global_2391036, -1);
		func_302();
	}
}

void func_297(char* sParam0, int iParam1, int iParam2)//Position - 0x22698
{
	ui::_set_text_component_format(sParam0);
	ui::add_text_component_integer(iParam1);
	ui::_display_help_text_from_string_label(0, 0, true, iParam2);
}

void func_298(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x226B5
{
	struct<4> Var0;
	struct<4> Var4;
	int iVar8;
	var uVar9;
	
	StringCopy(&Var0, func_300(iParam1), 16);
	StringCopy(&Var4, func_299(iParam2), 16);
	switch (iParam1)
	{
		case 0:
			iVar8 = 1287308202;
			break;
		
		case 1:
			iVar8 = 691372038;
			break;
		
		case 2:
			iVar8 = 1480707108;
			break;
		
		case 3:
			iVar8 = 1512499951;
			break;
		
		case 4:
			iVar8 = 562283735;
			break;
		
		case 5:
			iVar8 = -154732333;
			break;
		
		case 6:
			iVar8 = -1362660491;
			break;
		
		case 7:
			iVar8 = 645708827;
			break;
		
		case 8:
			iVar8 = 767907967;
			break;
		
		case 9:
			iVar8 = -1970151306;
			break;
		
		case 10:
			iVar8 = 718859568;
			break;
		
		case 11:
			iVar8 = -1955564771;
			break;
		
		case 12:
			iVar8 = 892388724;
			break;
	}
	if (func_241())
	{
		func_231(iVar8, iParam0, &uVar9, iParam3, iParam3, 0);
		Global_2558146[uVar9 /*73*/].f_8.f_43 = { Var0 };
		Global_2558146[uVar9 /*73*/].f_8.f_47 = { Var4 };
	}
	else
	{
		networkcash::network_refund_cash(iParam0, &Var0, &Var4, iParam3);
	}
}

char* func_299(int iParam0)//Position - 0x227F1
{
	switch (iParam0)
	{
		case 0:
			return "NOTREACHTARGET";
			break;
		
		case 1:
			return "TARGET_ESCAPE";
			break;
		
		case 2:
			return "DELIVERY_FAIL";
			break;
		
		case 3:
			return "NOT_USED";
			break;
		
		case 4:
			return "TEAM_QUIT";
			break;
		
		case 5:
			return "SERVER_ERROR";
			break;
		
		case 6:
			return "RECEIVE_LJ_L";
			break;
		
		case 8:
			return "CHALLENGE_PLAYER_LEFT";
			break;
	}
	return "DEFAULT";
}

char* func_300(int iParam0)//Position - 0x22884
{
	switch (iParam0)
	{
		case 0:
			return "BACKUP_VAGOS";
		
		case 1:
			return "BACKUP_LOST";
		
		case 2:
			return "BACKUP_FAMILIES";
		
		case 3:
			return "HIRE_MUGGER";
		
		case 4:
			return "HIRE_MERCENARY";
		
		case 5:
			return "BUY_CARDROPOFF";
		
		case 6:
			return "HELI_PICKUP";
		
		case 7:
			return "BOAT_PICKUP";
		
		case 8:
			return "CLEAR_WANTED";
		
		case 9:
			return "HEAD_2_HEAD";
		
		case 10:
			return "CHALLENGE";
		
		case 11:
			return "SHARE_LAST_JOB";
		
		default:
	}
	return "DEFAULT";
}

bool func_301(int iParam0, int iParam1, int iParam2)//Position - 0x22933
{
	if (iParam0 == func_12())
	{
		return false;
	}
	if (gameplay::is_bit_set(Global_1587523[iParam0 /*444*/].f_250.f_7, 0))
	{
		return true;
	}
	if (iParam1)
	{
		if (gameplay::is_bit_set(Global_1587523[iParam0 /*444*/].f_250.f_7, 1))
		{
			return true;
		}
	}
	if (iParam2)
	{
		if (Global_2418472[iParam0 /*313*/].f_305.f_1 != -1)
		{
			return true;
		}
	}
	return false;
}

void func_302()//Position - 0x2299B
{
	if (Global_2391035 == 0 && Global_2391036 == 0)
	{
		return;
	}
	Global_2391035 = 0;
	Global_2391036 = 0;
}

int func_303(int iParam0, struct<10> Param1, var uParam11, var uParam12, var uParam13, var uParam14, var uParam15, var uParam16, var uParam17, var uParam18, var uParam19, var uParam20, int iParam21, int iParam22, int iParam23, int iParam24, int iParam25, int iParam26)//Position - 0x229C4
{
	int iVar0;
	int iVar1;
	int iVar2;
	struct<20> Var3;
	
	if (func_314(player::player_id(), 0))
	{
		return 0;
	}
	if (Param1 == 0)
	{
		return 0;
	}
	iVar0 = player::get_player_team(player::player_id());
	if (!iParam23 == -1)
	{
		if (!iVar0 == iParam23)
		{
			return 0;
		}
	}
	iVar1 = func_12();
	if (iParam25 != -1)
	{
		iVar1 = player::int_to_playerindex(iParam25);
	}
	iVar2 = func_312();
	Var3.f_4.f_1 = -1;
	Var3.f_4.f_2 = -1;
	Var3.f_4.f_9 = -1;
	Var3 = 188;
	Var3.f_1 = player::player_id();
	Var3.f_2 = iVar0;
	Var3.f_3 = iParam0;
	Var3.f_4 = { Param1 };
	Var3.f_14 = iParam21;
	Var3.f_15 = iParam22;
	Var3.f_16 = iParam24;
	Var3.f_17 = iVar1;
	Var3.f_18 = iParam26;
	Var3.f_19 = iVar2;
	script::trigger_script_event(1, &Var3, 20, func_309());
	func_304(188, iVar2, Param1, Param1.f_1);
	return iVar2;
}

void func_304(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x22A9D
{
	int iVar0;
	
	func_308(1);
	iVar0 = func_307(iParam0);
	if (iVar0 == 12)
	{
		return;
	}
	if (func_306(iVar0, iParam1, iParam2, iParam3))
	{
		return;
	}
	if (Global_1310964 >= 12)
	{
		return;
	}
	Global_1310891[Global_1310964 /*6*/] = iVar0;
	Global_1310891[Global_1310964 /*6*/].f_1 = iParam1;
	Global_1310891[Global_1310964 /*6*/].f_2 = iParam2;
	Global_1310891[Global_1310964 /*6*/].f_3 = iParam3;
	Global_1310891[Global_1310964 /*6*/].f_4 = func_305();
	Global_1310891[Global_1310964 /*6*/].f_5 = 0;
	Global_1310964++;
}

int func_305()//Position - 0x22B37
{
	int iVar0;
	
	iVar0 = network::get_time_offset(network::get_network_time(), 70000);
	return iVar0;
}

bool func_306(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x22B4F
{
	int iVar0;
	int iVar1;
	struct<6> Var2;
	int iVar8;
	int iVar9;
	
	iVar0 = false;
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 < Global_1310964)
	{
		iVar0 = false;
		if (Global_1310891[iVar1 /*6*/] == iParam0)
		{
			iVar0 = true;
			switch (iParam0)
			{
				case 2:
				case 5:
				case 6:
				case 9:
				case 10:
				case 11:
				case 8:
					if (!Global_1310891[iVar1 /*6*/].f_1 == iParam1)
					{
						iVar0 = false;
					}
					break;
				
				case 1:
				case 7:
					break;
				
				case 0:
				case 3:
				case 4:
					if (!Global_1310891[iVar1 /*6*/].f_2 == iParam2 || !Global_1310891[iVar1 /*6*/].f_3 == iParam3)
					{
						iVar0 = false;
					}
					break;
				
				default:
					iVar0 = false;
					break;
			}
			if (iVar0)
			{
				Global_1310891[iVar1 /*6*/].f_4 = func_305();
				Global_1310891[iVar1 /*6*/].f_5 = 0;
				Global_1310891[iVar1 /*6*/].f_1 = iParam1;
				switch (iParam0)
				{
					case 8:
						Global_1310891[iVar1 /*6*/].f_2 = iParam2;
						Global_1310891[iVar1 /*6*/].f_3 = iParam3;
						break;
				}
				Var2 = { Global_1310891[iVar1 /*6*/] };
				iVar8 = iVar1;
				iVar9 = iVar8 + 1;
				while (iVar9 < Global_1310964)
				{
					Global_1310891[iVar8 /*6*/] = { Global_1310891[iVar9 /*6*/] };
					iVar8++;
					iVar9++;
				}
				Global_1310891[iVar8 /*6*/] = { Var2 };
				return true;
			}
		}
		iVar1++;
	}
	return false;
}

int func_307(int iParam0)//Position - 0x22CC8
{
	switch (iParam0)
	{
		case 186:
			return 0;
		
		case 185:
			return 1;
		
		case 187:
			return 2;
		
		case 188:
			return 3;
		
		case 189:
			return 4;
		
		case 192:
			return 5;
		
		case 193:
			return 6;
		
		case 191:
			return 7;
		
		case 194:
			return 8;
		
		case 209:
			return 9;
		
		case 210:
			return 10;
		
		case 211:
			return 11;
		
		default:
	}
	return 12;
}

void func_308(int iParam0)//Position - 0x22D55
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	struct<6> Var4;
	
	if (Global_1310964 == 0)
	{
		return;
	}
	if (Global_1310882.f_8)
	{
		return;
	}
	iVar0 = network::get_network_time();
	iVar1 = 0;
	iVar2 = 0;
	if (!iParam0)
	{
		iVar3 = true;
		while (iVar3)
		{
			iVar3 = false;
			if (iVar1 < Global_1310964)
			{
				if (Global_1310891[iVar1 /*6*/].f_5)
				{
					iVar1++;
					iVar2++;
					iVar3 = true;
				}
			}
		}
	}
	while (iVar1 < Global_1310964)
	{
		if (network::is_time_less_than(iVar0, Global_1310891[iVar1 /*6*/].f_4))
		{
			if (!iVar1 == iVar2)
			{
				Global_1310891[iVar2 /*6*/] = { Global_1310891[iVar1 /*6*/] };
			}
			iVar2++;
		}
		iVar1++;
	}
	Global_1310964 = iVar2;
	Var4 = 12;
	Var4.f_3 = -1;
	while (iVar2 < iVar1)
	{
		Global_1310891[iVar2 /*6*/] = { Var4 };
		iVar2++;
	}
}

var func_309()//Position - 0x22E33
{
	if (func_10(Global_2415926.f_1, 0, 1))
	{
		return func_311(Global_2415926.f_1);
	}
	return func_310(1, 1);
}

var func_310(int iParam0, int iParam1)//Position - 0x22E5D
{
	var uVar0;
	int iVar1;
	int iVar2;
	
	iVar1 = 0;
	while (iVar1 < 32)
	{
		iVar2 = player::int_to_playerindex(iVar1);
		if (func_10(iVar2, 0, 0))
		{
			if (iVar2 != player::player_id() || iParam0)
			{
				if (iParam1)
				{
					gameplay::set_bit(&uVar0, iVar1);
				}
				else if (!func_314(iVar2, 0))
				{
					gameplay::set_bit(&uVar0, iVar1);
				}
			}
		}
		iVar1++;
	}
	return uVar0;
}

var func_311(int iParam0)//Position - 0x22EC2
{
	var uVar0;
	
	gameplay::set_bit(&uVar0, iParam0);
	return uVar0;
}

int func_312()//Position - 0x22ED4
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = gameplay::get_random_int_in_range(100, 10000000);
	iVar1 = false;
	iVar2 = false;
	iVar3 = 0;
	while (iVar2)
	{
		iVar3 = 0;
		iVar1 = false;
		iVar3 = 0;
		while (iVar3 < 16)
		{
			if (iVar2)
			{
				if (!func_313(iVar3))
				{
					if (Global_2416118[iVar3 /*40*/].f_3.f_17 == iVar0)
					{
						iVar2 = false;
						iVar1 = true;
					}
				}
			}
			iVar3++;
		}
		iVar2 = false;
		if (iVar1)
		{
			iVar0++;
			iVar2 = true;
		}
	}
	return iVar0;
}

int func_313(int iParam0)//Position - 0x22F4B
{
	return Global_2416118[iParam0 /*40*/] == 5;
}

int func_314(int iParam0, int iParam1)//Position - 0x22F5D
{
	int iVar0;
	
	if (iParam0 == player::player_id())
	{
		iVar0 = func_315(-1, 0) == 8;
	}
	else
	{
		iVar0 = Global_1587523[iParam0 /*444*/].f_195 == 8;
	}
	if (iParam1 == 1)
	{
		if (network::network_is_player_active(iParam0))
		{
			iVar0 = player::get_player_team(iParam0) == 8;
		}
	}
	return iVar0;
}

int func_315(int iParam0, int iParam1)//Position - 0x22FA8
{
	int iVar0;
	int iVar1;
	
	iVar1 = iParam0;
	if (iVar1 == -1)
	{
		iVar1 = func_240();
	}
	if (Global_1315891[iVar1] == 1)
	{
		if (iParam1)
		{
		}
		iVar0 = 8;
	}
	else
	{
		iVar0 = Global_1312741[iVar1];
		if (iParam1)
		{
		}
	}
	return iVar0;
}

int func_316(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5)//Position - 0x22FE9
{
	int iVar0;
	int iVar1;
	
	if (gameplay::is_string_null_or_empty(&uParam0))
	{
		return 0;
	}
	iVar0 = 0;
	iVar1 = gameplay::get_hash_key(&uParam0);
	iVar0 = 0;
	while (iVar0 < Global_1311741)
	{
		if (Global_2359718[iVar0 /*26*/].f_25 == iVar1)
		{
			func_318(iVar0);
			return func_317(iVar0);
		}
		iVar0++;
	}
	return 0;
}

int func_317(int iParam0)//Position - 0x2303D
{
	return gameplay::is_bit_set(Global_2359718[iParam0 /*26*/].f_12, 0);
}

void func_318(int iParam0)//Position - 0x23054
{
	if (iParam0 == iParam0)
	{
	}
}

int func_319(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5)//Position - 0x23063
{
	int iVar0;
	int iVar1;
	
	if (gameplay::is_string_null_or_empty(&uParam0))
	{
		return -1;
	}
	iVar0 = 0;
	iVar1 = gameplay::get_hash_key(&uParam0);
	iVar0 = 0;
	while (iVar0 < Global_1311741)
	{
		if (Global_2359718[iVar0 /*26*/].f_25 == iVar1)
		{
			func_321(iVar0);
			return func_320(iVar0);
		}
		iVar0++;
	}
	return -1;
}

var func_320(int iParam0)//Position - 0x230B7
{
	return Global_2359718[iParam0 /*26*/].f_15.f_1;
}

void func_321(int iParam0)//Position - 0x230CB
{
	if (iParam0 == iParam0)
	{
	}
}

void func_322(var uParam0)//Position - 0x230DA
{
	Global_2391035 = player::get_player_wanted_level(player::player_id());
	Global_2391036 = uParam0;
}

int func_323(int iParam0, char* sParam1, int iParam2)//Position - 0x230F4
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1347372)
	{
		if (!Global_2391978[iVar0 /*80*/].f_10)
		{
			if (Global_2391978[iVar0 /*80*/].f_9 == iParam0)
			{
				if (!iParam2)
				{
					return iVar0;
				}
				if (gameplay::is_string_null_or_empty(sParam1))
				{
					return iVar0;
				}
				if (gameplay::are_strings_equal(sParam1, &(Global_2391978[iVar0 /*80*/].f_20)))
				{
					return iVar0;
				}
			}
		}
		iVar0++;
	}
	return -1;
}

int func_324(int iParam0)//Position - 0x23163
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1347372)
	{
		if (Global_2391978[iVar0 /*80*/].f_10)
		{
			if (Global_2391978[iVar0 /*80*/].f_8 == iParam0)
			{
				return iVar0;
			}
		}
		iVar0++;
	}
	return -1;
}

void func_325()//Position - 0x231A5
{
	char cVar0[16];
	int iVar4;
	char cVar5[64];
	char cVar21[64];
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	int iVar44;
	char cVar45[16];
	struct<16> Var49[8];
	int iVar178;
	int iVar179;
	int iVar180;
	int iVar181;
	int iVar182;
	int iVar183;
	int iVar184;
	int iVar185;
	char cVar186[32];
	char* sVar190;
	char* sVar191;
	int iVar192;
	char cVar193[16];
	char* sVar197;
	int iVar198;
	int iVar199;
	
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	StringCopy(&cVar0, "", 16);
	iVar4 = 0;
	StringCopy(&cVar5, "", 64);
	StringCopy(&cVar21, "", 64);
	iVar37 = 0;
	iVar38 = func_12();
	iVar39 = 145;
	iVar40 = gameplay::is_bit_set(Global_2391093[iLocal_268 /*73*/].f_5, 4);
	iVar41 = true;
	iVar42 = false;
	iVar43 = false;
	iVar44 = false;
	StringCopy(&cVar45, "", 16);
	iVar178 = Global_2391093[iLocal_268 /*73*/].f_66;
	iVar179 = Global_2391093[iLocal_268 /*73*/].f_67;
	iVar180 = false;
	iVar181 = 0;
	iVar182 = true;
	iVar183 = false;
	iVar184 = 0;
	iVar185 = 0;
	if (iVar178 == iVar179)
	{
		iVar180 = true;
	}
	if (func_10(player::player_id(), 1, 1))
	{
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			iVar181 = system::round(gameplay::get_distance_between_coords(func_333(player::player_id()), Global_2391093[iLocal_268 /*73*/].f_6, 1));
		}
	}
	if (Global_2391093[iLocal_268 /*73*/].f_4 < 32)
	{
		iVar182 = false;
		if (Global_2391093[iLocal_268 /*73*/].f_2 == 0)
		{
			if (Global_2391093[iLocal_268 /*73*/].f_3 == 1 || Global_2391093[iLocal_268 /*73*/].f_3 == 7)
			{
				iVar182 = true;
			}
		}
	}
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(7);
	graphics::_push_scaleform_movie_function_parameter_int(iVar4);
	StringCopy(&cVar0, func_215(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3, Global_2391093[iLocal_268 /*73*/].f_72), 16);
	if (iVar40)
	{
		iVar38 = player::int_to_playerindex(Global_2391093[iLocal_268 /*73*/].f_1);
		iVar41 = func_10(iVar38, 0, 1);
		iVar183 = func_20(iVar38);
		iVar184 = Global_1609227[iVar38 /*34*/].f_23;
		iVar185 = Global_1587523[iVar38 /*444*/].f_13.f_4;
	}
	else
	{
		iVar39 = Global_2391093[iLocal_268 /*73*/].f_1;
		iVar41 = true;
	}
	if (iVar41)
	{
		if (iVar40)
		{
			StringCopy(&cVar21, player::get_player_name(iVar38), 64);
		}
		else
		{
			cVar186 = { func_214(iVar39) };
			sVar190 = func_213(&cVar186);
			StringCopy(&cVar21, ui::_get_label_text(sVar190), 64);
		}
		graphics::_begin_text_component("STRING");
		ui::add_text_component_substring_player_name(&cVar21);
		graphics::_end_text_component();
		iVar42 = true;
	}
	else
	{
		graphics::_begin_text_component(&cVar0);
		graphics::_end_text_component();
		iVar42 = false;
	}
	iVar43 = true;
	if (gameplay::is_string_null_or_empty(&(Global_2391093[iLocal_268 /*73*/].f_25)))
	{
		iVar43 = false;
	}
	if (iVar43)
	{
		if (Global_2391093[iLocal_268 /*73*/].f_57 != 0)
		{
			func_281(Global_2391093[iLocal_268 /*73*/].f_57, &Var49);
			iVar44 = true;
		}
		else if (Global_2391093[iLocal_268 /*73*/].f_2 == 0 && Global_2391093[iLocal_268 /*73*/].f_3 == 7)
		{
			func_279(Global_2391093[iLocal_268 /*73*/].f_58, &Var49);
			iVar44 = true;
		}
		if (!iVar40 && !gameplay::is_string_null_or_empty(&(Global_2391093[iLocal_268 /*73*/].f_41)))
		{
			sVar191 = ui::_get_label_text(&(Global_2391093[iLocal_268 /*73*/].f_41));
			func_282(sVar191, &Var49);
			iVar44 = true;
		}
		if (iVar40)
		{
			if (!gameplay::is_string_null_or_empty(&(Global_2391093[iLocal_268 /*73*/].f_41)))
			{
				if (gameplay::are_strings_equal(&(Global_2391093[iLocal_268 /*73*/].f_41), "[HEIST PREP CUTSCENE]"))
				{
					iVar192 = func_327(Global_2391093[iLocal_268 /*73*/].f_58);
					if (iVar192 != 0)
					{
						StringCopy(&cVar193, func_326(iVar192), 16);
						if (!gameplay::is_string_null_or_empty(&cVar193))
						{
							sVar197 = ui::_get_label_text(&cVar193);
							func_282(sVar197, &Var49);
							iVar44 = true;
						}
					}
				}
			}
		}
	}
	if (iVar43)
	{
		if (iVar183)
		{
			StringCopy(&cVar45, "JLI_PP_PLR", 16);
		}
		else if (iVar180)
		{
			if (iVar182)
			{
				StringCopy(&cVar45, "JLI_P_NDD", 16);
			}
			else
			{
				StringCopy(&cVar45, "JLI_P_NDDNR", 16);
			}
		}
		else if (iVar182)
		{
			StringCopy(&cVar45, "JLI_PP_NDD", 16);
		}
		else
		{
			StringCopy(&cVar45, "JLI_PP_NDDNR", 16);
		}
	}
	else
	{
		StringCopy(&cVar45, "STRING", 16);
	}
	graphics::_begin_text_component(&cVar45);
	if (iVar43)
	{
		if (iVar183)
		{
			ui::add_text_component_integer(iVar184);
			ui::add_text_component_integer(iVar185);
		}
		else
		{
			ui::add_text_component_integer(iVar178);
			if (!iVar180)
			{
				ui::add_text_component_integer(iVar179);
			}
		}
		ui::_0x5F68520888E69014(&(Global_2391093[iLocal_268 /*73*/].f_25));
		ui::add_text_component_integer(iVar181);
		if (iVar44)
		{
			iVar198 = 0;
			iVar198 = 0;
			while (iVar198 < 8)
			{
				ui::_0x5F68520888E69014(&(Var49[iVar198 /*16*/]));
				iVar198++;
			}
		}
		else
		{
			iVar199 = 0;
			iVar199 = 0;
			while (iVar199 < 8)
			{
				if (iVar199 == 0)
				{
					ui::_0x5F68520888E69014(&(Global_2391093[iLocal_268 /*73*/].f_41));
				}
				else
				{
					ui::_0x5F68520888E69014("");
				}
				iVar199++;
			}
		}
	}
	else
	{
		ui::_add_text_component_item_string(&cVar0);
	}
	graphics::_end_text_component();
	if (iVar42)
	{
		if (iVar40)
		{
			iVar37 = func_207(iVar38);
			if (iVar37 == 0)
			{
				iVar42 = false;
			}
			else
			{
				StringCopy(&cVar5, ped::get_pedheadshot_txd_string(iVar37), 64);
			}
		}
		else
		{
			StringCopy(&cVar5, ui::_get_label_text(func_206(iVar39)), 64);
		}
	}
	if (iVar42)
	{
		graphics::_push_scaleform_movie_function_parameter_string(&cVar5);
	}
	else
	{
		func_205(&Local_264);
	}
	func_251(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3, Global_2391093[iLocal_268 /*73*/].f_64, Global_2391093[iLocal_268 /*73*/].f_65);
	graphics::_pop_scaleform_movie_function_void();
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	func_203(&Local_260);
	func_199(13, &Local_220, 12, &Local_224, 4, &Local_204, &iLocal_271);
	func_272();
	iLocal_203 = 3;
}

char* func_326(int iParam0)//Position - 0x236B6
{
	if (iParam0 == Global_262145.f_6918)
	{
		return "HEI_G_HD0";
	}
	else if (iParam0 == Global_262145.f_6923)
	{
		return "HEI_G_HD1";
	}
	else if (iParam0 == Global_262145.f_6930)
	{
		return "HEI_G_HD2";
	}
	else if (iParam0 == Global_262145.f_6936)
	{
		return "HEI_G_HD3";
	}
	else if (iParam0 == Global_262145.f_6942)
	{
		return "HEI_G_HD4";
	}
	return "";
}

int func_327(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5)//Position - 0x2372C
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_2404518)
	{
		if (gameplay::are_strings_equal(&uParam0, &(Global_2404167[iVar0 /*14*/].f_2.f_3)))
		{
			return func_328(&(Global_2404167[iVar0 /*14*/].f_2));
		}
		iVar0++;
	}
	return 0;
}

int func_328(var uParam0)//Position - 0x23773
{
	struct<12> Var0;
	int iVar12;
	int iVar13;
	
	Var0.f_4 = -1;
	Var0.f_5 = -1;
	Var0.f_11 = -1;
	iVar12 = 0;
	iVar13 = func_330(uParam0);
	if (iVar13 == -1)
	{
		return iVar12;
	}
	switch (uParam0->f_2)
	{
		case 63:
			Var0 = { func_329(uParam0) };
			return Var0.f_1;
		
		case 62:
			return iVar12;
		
		default:
	}
	return iVar12;
}

struct<12> func_329(var uParam0)//Position - 0x237D4
{
	struct<12> Var0;
	int iVar12;
	
	Var0.f_4 = -1;
	Var0.f_5 = -1;
	Var0.f_11 = -1;
	iVar12 = func_330(uParam0);
	if (iVar12 == -1)
	{
		return Var0;
	}
	switch (uParam0->f_2)
	{
		case 63:
			return Global_794608.f_98389[iVar12 /*12*/];
		
		case 62:
			return Global_906487.f_18805[iVar12 /*12*/];
		
		default:
	}
	return Var0;
}

int func_330(var uParam0)//Position - 0x23845
{
	int iVar0;
	
	if (gameplay::is_string_null_or_empty(&(uParam0->f_3)))
	{
		return -1;
	}
	if (func_332(uParam0->f_1))
	{
		if (func_331(uParam0))
		{
			return 9999;
		}
		return -1;
	}
	iVar0 = 0;
	switch (uParam0->f_2)
	{
		case 63:
			if (gameplay::is_bit_set(Global_794608.f_4[uParam0->f_1 /*88*/].f_76, 13))
			{
				if (gameplay::are_strings_equal(&(Global_794608.f_4[uParam0->f_1 /*88*/]), &(uParam0->f_3)))
				{
					return uParam0->f_1;
				}
			}
			if (!gameplay::is_bit_set(Global_794608.f_4[uParam0->f_1 /*88*/].f_76, 13))
			{
				if (Global_1310987.f_5)
				{
					return -1;
				}
			}
			iVar0 = 0;
			while (iVar0 < 1118)
			{
				if (gameplay::is_bit_set(Global_794608.f_4[iVar0 /*88*/].f_76, 13))
				{
					if (gameplay::are_strings_equal(&(Global_794608.f_4[iVar0 /*88*/]), &(uParam0->f_3)))
					{
						uParam0->f_1 = iVar0;
						return iVar0;
					}
				}
				iVar0++;
			}
			return -1;
		
		case 62:
			if (gameplay::is_bit_set(Global_906487.f_1204[uParam0->f_1 /*88*/].f_76, 13))
			{
				if (gameplay::are_strings_equal(&(Global_906487.f_1204[uParam0->f_1 /*88*/]), &(uParam0->f_3)))
				{
					return uParam0->f_1;
				}
			}
			if (!gameplay::is_bit_set(Global_906487.f_1204[uParam0->f_1 /*88*/].f_76, 13))
			{
				if (Global_1310987.f_5)
				{
					return -1;
				}
			}
			iVar0 = 0;
			while (iVar0 < 200)
			{
				if (gameplay::is_bit_set(Global_906487.f_1204[iVar0 /*88*/].f_76, 13))
				{
					if (gameplay::are_strings_equal(&(Global_906487.f_1204[iVar0 /*88*/]), &(uParam0->f_3)))
					{
						uParam0->f_1 = iVar0;
						return iVar0;
					}
				}
				iVar0++;
			}
			return -1;
		
		case 40:
			return uParam0->f_1;
		
		default:
	}
	if (uParam0->f_2 == player::player_id())
	{
		if (gameplay::is_bit_set(Global_949333.f_5[uParam0->f_1 /*88*/].f_76, 13))
		{
			if (gameplay::are_strings_equal(&(Global_949333.f_5[uParam0->f_1 /*88*/]), &(uParam0->f_3)))
			{
				return uParam0->f_1;
			}
		}
		if (gameplay::is_bit_set(Global_949333.f_5[uParam0->f_1 /*88*/].f_76, 13))
		{
			if (Global_1310987.f_5)
			{
				return -1;
			}
		}
		iVar0 = 0;
		while (iVar0 < 62)
		{
			if (gameplay::is_bit_set(Global_949333.f_5[iVar0 /*88*/].f_76, 13))
			{
				if (gameplay::are_strings_equal(&(Global_949333.f_5[iVar0 /*88*/]), &(uParam0->f_3)))
				{
					uParam0->f_1 = iVar0;
					return iVar0;
				}
			}
			iVar0++;
		}
		return -1;
	}
	else if (uParam0->f_2 < 32)
	{
		return -1;
	}
	return -1;
}

bool func_331(var uParam0)//Position - 0x23AB5
{
	if (Global_2398013)
	{
		if (gameplay::are_strings_equal(&(Global_2398013.f_1), &(uParam0->f_3)))
		{
			return true;
		}
	}
	return false;
}

int func_332(int iParam0)//Position - 0x23ADA
{
	return iParam0 == 9999;
}

Vector3 func_333(int iParam0)//Position - 0x23AE8
{
	return entity::get_entity_coords(player::get_player_ped(iParam0), 0);
}

void func_334()//Position - 0x23AFB
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (func_254(&iLocal_271))
	{
		func_341();
		return;
	}
	if (func_245(&iLocal_271))
	{
		if (!Global_2391093[iLocal_268 /*73*/] == 1)
		{
			func_422(1, 1, 0);
			return;
		}
		if (func_22() == 0)
		{
			if (Global_2391093[iLocal_268 /*73*/].f_2 == 134)
			{
				if (!func_18())
				{
					Global_2428492.f_2 = 1;
					func_340();
				}
				return;
			}
			if (!func_19(player::player_id(), 1))
			{
				func_422(1, 1, 0);
				return;
			}
			iVar0 = player::player_id();
			iVar1 = Global_1587523[iVar0 /*444*/];
			iVar2 = Global_1587523[iVar0 /*444*/].f_39.f_2;
			if (!Global_2391093[iLocal_268 /*73*/].f_2 == iVar1 || !Global_2391093[iLocal_268 /*73*/].f_4 == iVar2)
			{
				func_422(1, 1, 0);
				return;
			}
			if (func_339(player::player_id()) || func_338(player::player_id()))
			{
				Global_1572906 = 1;
			}
			if (!Global_1572906)
			{
				func_337();
			}
			return;
		}
		iVar3 = Global_2391093[iLocal_268 /*73*/].f_2;
		func_335(iVar3, Global_2391093[iLocal_268 /*73*/].f_4);
		func_340();
		return;
	}
}

void func_335(int iParam0, int iParam1)//Position - 0x23C1F
{
	if (iParam0 == 0)
	{
		return;
	}
	if (!func_7(player::player_id(), iParam0, iParam1))
	{
		return;
	}
	func_336();
}

void func_336()//Position - 0x23C47
{
	if (!func_18())
	{
		if (!func_9(player::player_id(), 1))
		{
			return;
		}
		Global_2428492.f_2 = 1;
	}
}

void func_337()//Position - 0x23C6E
{
	int iVar0;
	
	iVar0 = player::player_id();
	func_336();
	Global_1318743 = 1;
	Global_1587523[iVar0 /*444*/].f_348 = 1;
	func_340();
}

int func_338(int iParam0)//Position - 0x23C96
{
	return Global_2418472[iParam0 /*313*/].f_114 == 7;
}

int func_339(int iParam0)//Position - 0x23CAB
{
	return Global_2418472[iParam0 /*313*/].f_114 == 2;
}

void func_340()//Position - 0x23CC0
{
	func_199(1, "", 1, "", 1, "", &iLocal_271);
	iLocal_203 = 13;
}

void func_341()//Position - 0x23CDF
{
	if (!Global_14413.f_1 == 7)
	{
		Global_14413.f_1 = 7;
	}
	if (func_22() == 0)
	{
		func_345();
	}
	else
	{
		func_342();
	}
	func_203(&Local_252);
	func_199(1, "", 12, &Local_224, 4, &Local_204, &iLocal_271);
	iLocal_203 = 1;
}

void func_342()//Position - 0x23D26
{
	int iVar0;
	int iVar1;
	
	if ((func_22() == 0 || func_22() == -1) || !network::network_is_game_in_progress())
	{
		func_344();
		return;
	}
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	iVar0 = 72;
	iVar1 = Global_2391093[iLocal_268 /*73*/].f_2;
	func_202(Global_14394, "SET_DATA_SLOT", system::to_float(7), system::to_float(0), -1f, -1f, -1f, &(Global_101154.f_32575[iVar0 /*29*/].f_3), func_343(iVar1, player::get_player_team(player::player_id())), &(Global_101154.f_32575[iVar0 /*29*/].f_7), 0, 0);
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
}

char* func_343(int iParam0, int iParam1)//Position - 0x23DF0
{
	switch (iParam0)
	{
		case 3:
			return "MN_21";
		
		case 1:
			return "MN_22";
		
		case 2:
			return "MN_43";
		
		case 4:
			return "MN_STPC";
		
		case 5:
			return "MN_STPC";
		
		case 6:
			return "MN_WRST";
		
		case 8:
			return "MN_TENN";
		
		case 9:
			return "MN_DART";
		
		case 7:
			return "MN_IMEX";
		
		case 10:
			return "MN_FGHT";
		
		case 11:
			return "MN_HOOK";
		
		case 15:
			return "";
		
		case 91:
			return "FMMC_MPM_TY10";
		
		case 98:
			return "FMMC_MPM_TY8";
		
		case 92:
			return "FMMC_MPM_TY11";
		
		case 99:
			return "FMMC_MPM_TY1";
		
		case 97:
			return "FMMC_MPM_TY17";
		
		case 100:
			return "FMMC_MPM_TY5";
		
		case 96:
			return "FMMC_MPM_TY122";
		
		case 93:
			return "FMMC_MPM_TY13";
		
		case 101:
			return "FMMC_MPM_TY0";
		
		case 102:
			return "FMMC_MPM_TY2";
		
		case 94:
			return "FMMC_MPM_TY12";
		
		case 103:
			return "FMMC_MPM_TY4";
		
		case 95:
			return "FMMC_MPM_TY9";
		
		case 18:
			return "FMMC_MPM_TY16";
		
		case 49:
			return "BIGM_BOSSVBOSS";
		
		default:
	}
	if (iParam1 == 0)
	{
	}
	return "";
}

void func_344()//Position - 0x23F66
{
	char cVar0[64];
	char cVar16[16];
	vector3 vVar20[24];
	int iVar26;
	int iVar27;
	int iVar28;
	var uVar29;
	vector3 vVar30;
	int iVar33;
	int iVar34;
	
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	StringCopy(&cVar0, "", 64);
	StringCopy(&cVar16, "", 16);
	StringCopy(&cVar20, "", 24);
	iVar26 = 0;
	iVar27 = 0;
	uVar29 = Global_2391093[iLocal_268 /*73*/].f_1;
	vVar30 = { Global_1587523[uVar29 /*444*/].f_39.f_10 };
	iVar33 = false;
	iVar34 = false;
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(7);
	graphics::_push_scaleform_movie_function_parameter_int(iVar27);
	StringCopy(&cVar16, func_215(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3, Global_2391093[iLocal_268 /*73*/].f_72), 16);
	iVar34 = false;
	if (Global_2391093[iLocal_268 /*73*/] == 3)
	{
		iVar34 = true;
	}
	if (iVar34)
	{
		iVar26 = 63;
	}
	else
	{
		iVar26 = Global_2391093[iLocal_268 /*73*/].f_4;
	}
	if (((iVar26 == 63 || iVar26 == 61) || iVar26 == 62) || iVar26 == 40)
	{
		graphics::_begin_text_component("CELL_266");
		graphics::_end_text_component();
	}
	else
	{
		iVar28 = player::int_to_playerindex(iVar26);
		if (func_10(iVar28, 0, 1))
		{
			StringCopy(&cVar0, player::get_player_name(iVar28), 64);
			graphics::_begin_text_component("STRING");
			ui::add_text_component_substring_player_name(&cVar0);
			graphics::_end_text_component();
		}
		else
		{
			graphics::_begin_text_component(&cVar16);
			graphics::_end_text_component();
		}
	}
	iVar33 = false;
	if (!gameplay::is_string_null_or_empty(&(Global_2391093[iLocal_268 /*73*/].f_25)))
	{
		iVar33 = true;
	}
	if (iVar34)
	{
		StringCopy(&cVar20, "THREESTRINGSNL", 24);
	}
	else
	{
		StringCopy(&cVar20, "TWOSTRINGSNL", 24);
	}
	graphics::_begin_text_component(&cVar20);
	if (iVar33)
	{
		ui::_0x5F68520888E69014(&(Global_2391093[iLocal_268 /*73*/].f_25));
	}
	else
	{
		ui::_add_text_component_item_string(zone::get_name_of_zone(vVar30));
	}
	if (iVar34)
	{
		ui::_add_text_component_item_string("CELL_261");
	}
	ui::_add_text_component_item_string(&cVar16);
	graphics::_end_text_component();
	func_205(&Local_264);
	graphics::_pop_scaleform_movie_function_void();
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
}

void func_345()//Position - 0x24156
{
	char cVar0[64];
	char cVar16[16];
	vector3 vVar20[24];
	struct<16> Var26;
	int iVar42;
	int iVar43;
	int iVar44;
	int iVar45;
	int iVar46;
	char cVar47[64];
	struct<16> Var63[8];
	struct<10> Var192;
	int iVar202;
	
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	StringCopy(&cVar0, "", 64);
	StringCopy(&cVar16, "", 16);
	StringCopy(&cVar20, "", 24);
	StringCopy(&Var26, "", 64);
	iVar42 = 0;
	iVar43 = false;
	iVar44 = false;
	iVar45 = false;
	iVar46 = 0;
	StringCopy(&cVar47, "", 64);
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(7);
	graphics::_push_scaleform_movie_function_parameter_int(iVar42);
	StringCopy(&cVar16, func_215(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3, Global_2391093[iLocal_268 /*73*/].f_72), 16);
	if (func_10(player::player_id(), 0, 1))
	{
		StringCopy(&cVar0, player::get_player_name(player::player_id()), 64);
		graphics::_begin_text_component("STRING");
		ui::add_text_component_substring_player_name(&cVar0);
		graphics::_end_text_component();
		iVar45 = true;
	}
	else
	{
		graphics::_begin_text_component(&cVar16);
		graphics::_end_text_component();
		iVar45 = false;
	}
	iVar43 = true;
	if (!func_351())
	{
		iVar43 = false;
	}
	Var192.f_1 = -1;
	Var192.f_2 = -1;
	Var192.f_9 = -1;
	if (iVar43)
	{
		Var192 = { func_348(func_349()) };
		Var26 = { func_346(&Var192, 0) };
	}
	if (iVar43 && Global_2391093[iLocal_268 /*73*/].f_57 != 0)
	{
		func_281(Global_2391093[iLocal_268 /*73*/].f_57, &Var63);
		iVar44 = true;
	}
	if (iVar43)
	{
		if (iVar44)
		{
			StringCopy(&cVar20, "STRINGNLDESC8", 24);
		}
		else
		{
			StringCopy(&cVar20, "TWOSTRINGSNL", 24);
		}
	}
	else
	{
		StringCopy(&cVar20, "STRING", 24);
	}
	graphics::_begin_text_component(&cVar20);
	if (iVar43)
	{
		ui::_0x5F68520888E69014(&Var26);
		if (iVar44)
		{
			iVar202 = 0;
			iVar202 = 0;
			while (iVar202 < 8)
			{
				ui::_0x5F68520888E69014(&(Var63[iVar202 /*16*/]));
				iVar202++;
			}
		}
		else
		{
			ui::_add_text_component_item_string("NDESCRIPT");
		}
	}
	else
	{
		ui::_add_text_component_item_string(&cVar16);
	}
	graphics::_end_text_component();
	if (iVar45)
	{
		iVar46 = func_207(player::player_id());
		if (iVar46 == 0)
		{
			iVar45 = false;
		}
		else
		{
			StringCopy(&cVar47, ped::get_pedheadshot_txd_string(iVar46), 64);
		}
	}
	if (iVar45)
	{
		graphics::_push_scaleform_movie_function_parameter_string(&cVar47);
	}
	else
	{
		func_205(&Local_264);
	}
	func_251(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3, Global_2391093[iLocal_268 /*73*/].f_64, Global_2391093[iLocal_268 /*73*/].f_65);
	graphics::_pop_scaleform_movie_function_void();
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
}

struct<16> func_346(var uParam0, int iParam1)//Position - 0x243AE
{
	struct<16> Var0;
	int iVar16;
	
	StringCopy(&Var0, "UNKNOWN", 64);
	if (iParam1)
	{
		StringCopy(&Var0, "", 64);
	}
	if (!iParam1)
	{
		if (func_347(uParam0))
		{
			if (gameplay::is_bit_set(Global_1311772.f_1[uParam0->f_9 /*2*/], 0))
			{
				return Global_2398147[uParam0->f_9 /*16*/];
			}
			return Global_2395256.f_356[uParam0->f_9 /*75*/].f_10.f_12;
		}
	}
	if (func_332(uParam0->f_1))
	{
		if (func_331(uParam0))
		{
			return Global_2398013.f_1.f_12;
		}
		return Var0;
	}
	iVar16 = func_330(uParam0);
	if (iVar16 == -1)
	{
		return Var0;
	}
	switch (uParam0->f_2)
	{
		case 63:
			return Global_794608.f_4[iVar16 /*88*/].f_22;
		
		case 62:
			return Global_906487.f_1204[iVar16 /*88*/].f_22;
		
		case 40:
			return Var0;
		
		default:
	}
	if (uParam0->f_2 == player::player_id())
	{
		return Global_949333.f_5[iVar16 /*88*/].f_22;
	}
	else if (uParam0->f_2 < 32)
	{
		return Var0;
	}
	return Var0;
}

bool func_347(var uParam0)//Position - 0x244D5
{
	int iVar0;
	
	iVar0 = uParam0->f_9;
	if (iVar0 == -1)
	{
		return false;
	}
	if (!Global_2395256.f_356[iVar0 /*75*/])
	{
		return false;
	}
	if (!gameplay::are_strings_equal(&(Global_2395256.f_356[iVar0 /*75*/].f_10), &(uParam0->f_3)))
	{
		return false;
	}
	if (!gameplay::is_bit_set(Global_2395256.f_356[iVar0 /*75*/].f_5, 3))
	{
		return false;
	}
	return true;
}

struct<10> func_348(var uParam0)//Position - 0x24538
{
	return Global_2359718[uParam0 /*26*/].f_15;
}

var func_349()//Position - 0x2454D
{
	return func_350(0);
}

var func_350(int iParam0)//Position - 0x2455A
{
	return Global_1311716[iParam0 /*4*/].f_1;
}

int func_351()//Position - 0x2456C
{
	return Global_1311716[0 /*4*/] > 0;
}

void func_352()//Position - 0x2457D
{
	if (func_254(&iLocal_271))
	{
		func_422(1, 1, 0);
		return;
	}
	if (!func_245(&iLocal_271))
	{
		return;
	}
	func_353();
	func_13(0);
}

void func_353()//Position - 0x245B0
{
	if (!func_354())
	{
		return;
	}
	if (Global_1347404.f_1)
	{
		return;
	}
	Global_1347404.f_1 = 1;
	ui::_remove_notification(Global_1347404.f_12);
	func_226();
}

var func_354()//Position - 0x245E4
{
	return Global_1347404;
}

void func_355()//Position - 0x245F0
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = -1;
	iVar1 = gameplay::is_bit_set(Global_2391093[iLocal_268 /*73*/].f_5, 4);
	if (iVar1)
	{
		iVar2 = player::int_to_playerindex(Global_2391093[iLocal_268 /*73*/].f_1);
		iVar0 = func_229(iVar2);
	}
	else
	{
		iVar3 = Global_2391093[iLocal_268 /*73*/].f_1;
		iVar0 = func_228(iVar3);
	}
	if (iVar0 == -1)
	{
		func_422(1, 1, 0);
		return;
	}
	if (!func_363(iVar0))
	{
		func_422(1, 1, 0);
		return;
	}
	if (Global_2391093[iVar0 /*73*/].f_2 == 123)
	{
		func_361(iVar0);
	}
	if (func_254(&iLocal_271))
	{
		func_422(1, 1, 0);
		return;
	}
	if (!func_245(&iLocal_271))
	{
		return;
	}
	if (Global_2391093[iLocal_268 /*73*/].f_2 == 117 || Global_2391093[iLocal_268 /*73*/].f_2 == 123)
	{
		if (player::get_player_wanted_level(player::player_id()) > 0)
		{
			if (!func_359())
			{
				func_358();
				func_422(1, 1, 0);
				return;
			}
			func_356();
			return;
		}
	}
	func_225(iVar0);
	func_13(0);
}

void func_356()//Position - 0x246F7
{
	func_357();
	iLocal_203 = 10;
}

void func_357()//Position - 0x24707
{
	int iVar0;
	struct<4> Var1;
	char cVar5[64];
	
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(7);
	graphics::_push_scaleform_movie_function_parameter_int(0);
	iVar0 = 12;
	Var1 = { func_214(iVar0) };
	graphics::_begin_text_component("STRING");
	ui::_add_text_component_item_string(&Var1);
	graphics::_end_text_component();
	graphics::_begin_text_component(&cLocal_248);
	ui::add_text_component_integer(func_242(20));
	graphics::_end_text_component();
	StringCopy(&cVar5, ui::_get_label_text(func_206(iVar0)), 64);
	graphics::_push_scaleform_movie_function_parameter_string(&cVar5);
	graphics::_pop_scaleform_movie_function_void();
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	func_199(13, &Local_208, 1, "", 14, &Local_212, &iLocal_271);
	func_203(&Local_236);
}

void func_358()//Position - 0x247D2
{
	int iVar0;
	
	iVar0 = func_242(20);
	if (!ui::is_help_message_being_displayed())
	{
		if (gameplay::is_xbox360_version() || gameplay::is_durango_version())
		{
			func_297("FMMC_WL_COST_X", iVar0, -1);
		}
		else if (gameplay::is_ps3_version() || gameplay::is_orbis_version())
		{
			func_297("FMMC_WL_COST_P", iVar0, -1);
		}
		else
		{
			func_297("FMMC_WL_COST", iVar0, -1);
		}
	}
}

int func_359()//Position - 0x24833
{
	return func_360() >= func_242(20);
}

int func_360()//Position - 0x24846
{
	return (networkcash::_0xA40F9C2623F6A8B5(-1) + networkcash::_0x76EF28DA05EA395A());
}

void func_361(int iParam0)//Position - 0x24858
{
	int iVar0;
	
	if (Global_2391093[0 /*73*/] != 1 && Global_1347371 > 0)
	{
		if (network::network_is_game_in_progress())
		{
			iVar0 = false;
			if (Global_2391093[iParam0 /*73*/].f_2 == 123)
			{
				iVar0 = true;
			}
			if (iVar0)
			{
				if (!iLocal_269)
				{
					iLocal_269 = 1;
					if (Global_2391093[iParam0 /*73*/].f_3 == 7)
					{
						func_249("FMMC_JOIN_PREP_HELP", -1);
					}
					else
					{
						func_362("FMMC_JOIN_HEIST_HELP", &(Global_2391093[iParam0 /*73*/].f_25), 1, -1);
					}
				}
			}
		}
		else if (iLocal_269 == 1)
		{
			ui::clear_help(1);
			iLocal_269 = 0;
		}
	}
}

void func_362(char* sParam0, char* sParam1, int iParam2, int iParam3)//Position - 0x248E4
{
	ui::_set_text_component_format(sParam0);
	if (!iParam2 == 0)
	{
		ui::_0x39BBF623FC803EAC(iParam2);
	}
	ui::add_text_component_substring_player_name(sParam1);
	ui::_display_help_text_from_string_label(0, 0, true, iParam3);
}

var func_363(int iParam0)//Position - 0x2490F
{
	return Global_2394116[iParam0 /*44*/].f_2;
}

void func_364()//Position - 0x24921
{
	struct<16> Var0;
	int iVar16;
	
	Var0 = { Global_2391093[iLocal_268 /*73*/].f_9 };
	iVar16 = func_269(Var0);
	if (iVar16 == -1)
	{
		func_422(1, 1, 0);
		return;
	}
	if (!func_382(iVar16))
	{
		func_422(1, 1, 0);
		return;
	}
	func_381();
	func_376(&iLocal_271);
	if (func_254(&iLocal_271))
	{
		func_422(1, 1, 0);
		return;
	}
	if (func_375(&iLocal_271))
	{
		func_258(iVar16);
		func_422(1, 1, 0);
		return;
	}
	Global_2395255 = gameplay::get_game_timer() + 1500;
	if (!func_245(&iLocal_271))
	{
		return;
	}
	if (!func_374(Global_2391093[iLocal_268 /*73*/].f_68))
	{
		func_373(Global_2391093[iLocal_268 /*73*/].f_68);
		func_422(1, 1, 0);
		return;
	}
	if (player::get_player_wanted_level(player::player_id()) > 0)
	{
		if (network::network_is_game_in_progress())
		{
			if (!func_372(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3))
			{
				func_366(func_367(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3));
				func_422(1, 1, 0);
				return;
			}
			func_3();
			func_365();
			return;
		}
	}
	func_3();
	func_257(iVar16);
}

void func_365()//Position - 0x24A57
{
	func_357();
	iLocal_203 = 9;
}

void func_366(int iParam0)//Position - 0x24A67
{
	int iVar0;
	
	iVar0 = false;
	if (Global_2391093[iLocal_268 /*73*/].f_2 == 0)
	{
		if (Global_2391093[iLocal_268 /*73*/].f_3 == 1 || Global_2391093[iLocal_268 /*73*/].f_3 == 7)
		{
			iVar0 = true;
		}
	}
	if (!ui::is_help_message_being_displayed())
	{
		if (gameplay::is_xbox360_version() || gameplay::is_durango_version())
		{
			if (iVar0)
			{
				func_297("FMMC_NAECASH_HEIST_X", iParam0, -1);
			}
			else
			{
				func_297("FMMC_NAECASH_X", iParam0, -1);
			}
		}
		else if (gameplay::is_ps3_version() || gameplay::is_orbis_version())
		{
			if (iVar0)
			{
				func_297("FMMC_NAECASH_HEIST_P", iParam0, -1);
			}
			else
			{
				func_297("FMMC_NAECASH_P", iParam0, -1);
			}
		}
		else if (iVar0)
		{
			func_297("FMMC_NAECASH_HEIST", iParam0, -1);
		}
		else
		{
			func_297("FMMC_NAE_CASH", iParam0, -1);
		}
	}
}

int func_367(int iParam0, int iParam1)//Position - 0x24B31
{
	int iVar0;
	
	iVar0 = 0;
	if (!network::network_is_game_in_progress())
	{
		return 0;
	}
	if (Global_2391002)
	{
		return iVar0;
	}
	if (player::get_player_wanted_level(player::player_id()) > 0)
	{
		iVar0 = (iVar0 + func_242(20));
	}
	if (!func_369(iParam0, iParam1))
	{
		return iVar0;
	}
	iVar0 = (iVar0 + func_368(iParam0, iParam1, 0, -1));
	return iVar0;
}

int func_368(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x24B8D
{
	if (Global_2391002 && !iParam2)
	{
		return 0;
	}
	if (func_20(player::player_id()))
	{
		return Global_262145.f_5053;
	}
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 5:
					return Global_262145.f_4435;
				
				case 6:
					return Global_262145.f_4436;
				
				case 4:
					return Global_262145.f_4437;
				
				case 9:
					return Global_262145.f_4438;
				
				default:
			}
			return 0;
		
		case 1:
			return Global_262145.f_4433;
		
		case 3:
			return Global_262145.f_4432;
		
		case 6:
			return 500;
		
		case 8:
			if (iParam3 == 1)
			{
				return 0;
			}
			else
			{
				return Global_262145.f_4434;
			}
			break;
		
		case 2:
			if (iParam3 == 1)
			{
				return Global_262145.f_2340;
			}
			else
			{
				switch (Global_1617379.f_33655)
				{
					case 4:
					case 5:
						return (Global_262145.f_4429 + Global_262145.f_2340);
					
					case 2:
					case 3:
						return (Global_262145.f_4430 + Global_262145.f_2340);
					
					case 12:
					case 13:
						return (Global_262145.f_4431 + Global_262145.f_2340);
					
					default:
				}
				return (Global_262145.f_4428 + Global_262145.f_2340);
			}
			break;
	}
	return 0;
}

bool func_369(int iParam0, int iParam1)//Position - 0x24CF9
{
	if (Global_2391002)
	{
		return false;
	}
	if (func_371() || func_370())
	{
		return false;
	}
	if (iParam0 == 0)
	{
		if (((iParam1 == 5 || iParam1 == 6) || iParam1 == 9) || iParam1 == 4)
		{
			return true;
		}
		return false;
	}
	if (iParam0 != 6 && iParam0 < 10)
	{
		return true;
	}
	return false;
}

var func_370()//Position - 0x24D6B
{
	return Global_1715845;
}

int func_371()//Position - 0x24D77
{
	return gameplay::is_bit_set(Global_1587523[player::player_id() /*444*/].f_131, 2);
}

bool func_372(int iParam0, int iParam1)//Position - 0x24D91
{
	int iVar0;
	
	if (!network::network_is_game_in_progress())
	{
		return true;
	}
	iVar0 = func_367(iParam0, iParam1);
	if (func_360() >= iVar0)
	{
		return true;
	}
	return false;
}

void func_373(int iParam0)//Position - 0x24DBD
{
	if (!ui::is_help_message_being_displayed())
	{
		if (gameplay::is_xbox360_version())
		{
			func_297("FMMC_NOWAGER_X", iParam0, -1);
		}
		else if (gameplay::is_ps3_version())
		{
			func_297("FMMC_NOWAGER_P", iParam0, -1);
		}
		else
		{
			func_297("FMMC_NO_WAGER", iParam0, -1);
		}
	}
}

bool func_374(int iParam0)//Position - 0x24E02
{
	if (!network::network_is_game_in_progress())
	{
		return true;
	}
	if (iParam0 < 0)
	{
		return true;
	}
	if ((networkcash::_0xA40F9C2623F6A8B5(-1) + networkcash::_0x76EF28DA05EA395A()) >= iParam0)
	{
		return true;
	}
	return false;
}

bool func_375(int iParam0)//Position - 0x24E34
{
	if (!gameplay::is_bit_set(*iParam0, 1))
	{
		return false;
	}
	if (Global_14391)
	{
		return false;
	}
	if (!cam::is_screen_faded_in())
	{
		return false;
	}
	if (!controls::is_control_just_pressed(2, Global_14385))
	{
		return false;
	}
	func_246();
	Global_14391 = 1;
	return true;
}

void func_376(int iParam0)//Position - 0x24E7B
{
	if (gameplay::get_game_timer() < iParam0->f_1)
	{
		return;
	}
	if (!cam::is_screen_faded_in())
	{
		return;
	}
	if (controls::is_control_just_pressed(2, Global_14389) || controls::is_control_just_pressed(2, 181))
	{
		func_379();
		iParam0->f_1 = gameplay::get_game_timer() + 50;
	}
	if (controls::is_control_just_pressed(2, Global_14390) || controls::is_control_just_pressed(2, 180))
	{
		func_377();
		iParam0->f_1 = gameplay::get_game_timer() + 50;
	}
}

void func_377()//Position - 0x24EE8
{
	func_219(Global_14394, "SET_INPUT_EVENT", system::to_float(3), -1082130432, -1082130432, -1082130432, -1082130432);
	audio::play_sound_frontend(-1, "Menu_Navigate", &Global_14402, 1);
	func_378();
}

void func_378()//Position - 0x24F25
{
	if (func_248())
	{
		if (Global_14576 == 0)
		{
			mobile::_move_finger(2);
		}
		else
		{
			mobile::_move_finger(1);
		}
	}
}

void func_379()//Position - 0x24F48
{
	func_219(Global_14394, "SET_INPUT_EVENT", system::to_float(1), -1082130432, -1082130432, -1082130432, -1082130432);
	audio::play_sound_frontend(-1, "Menu_Navigate", &Global_14402, 1);
	func_380();
}

void func_380()//Position - 0x24F85
{
	if (func_248())
	{
		if (Global_14576 == 0)
		{
			mobile::_move_finger(1);
		}
		else
		{
			mobile::_move_finger(2);
		}
	}
}

void func_381()//Position - 0x24FA8
{
	int iVar0;
	int iVar1;
	
	if (Global_2391093[0 /*73*/] != 1 && Global_1347371 > 0)
	{
		if (player::get_player_wanted_level(player::player_id()) > 0)
		{
			if (network::network_is_game_in_progress())
			{
				iVar0 = false;
				iVar1 = 0;
				iVar1 = 0;
				while (iVar1 < Global_1347371)
				{
					if (!iVar0)
					{
						if (Global_2391093[iVar1 /*73*/] == 4 || Global_2391093[iVar1 /*73*/] == 5)
						{
							iVar0 = true;
						}
						if (Global_2391093[iVar1 /*73*/] == 6)
						{
							if (Global_2391093[iVar1 /*73*/].f_2 == 117)
							{
								iVar0 = true;
							}
						}
					}
					iVar1++;
				}
				if (iVar0)
				{
					if (!iLocal_269)
					{
						iLocal_269 = 1;
						func_297("FMMC_PAY_TO_LOSE_WL_THIS", func_242(20), -1);
					}
				}
			}
		}
		else if (iLocal_269 == 1)
		{
			ui::clear_help(1);
			iLocal_269 = 0;
		}
	}
}

var func_382(int iParam0)//Position - 0x2506B
{
	return Global_2392939[iParam0 /*98*/].f_1;
}

void func_383()//Position - 0x2507D
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	struct<16> Var4;
	int iVar20;
	int iVar21;
	struct<16> Var22;
	
	iVar0 = -1;
	iVar1 = gameplay::is_bit_set(Global_2391093[iLocal_268 /*73*/].f_5, 4);
	iVar2 = func_12();
	if (iVar1)
	{
		iVar2 = player::int_to_playerindex(Global_2391093[iLocal_268 /*73*/].f_1);
		iVar0 = func_324(iVar2);
	}
	else
	{
		iVar3 = Global_2391093[iLocal_268 /*73*/].f_1;
		Var4 = { Global_2391093[iLocal_268 /*73*/].f_25 };
		iVar20 = true;
		iVar0 = func_323(iVar3, &Var4, iVar20);
	}
	if (iVar0 == -1)
	{
		func_422(1, 1, 0);
		return;
	}
	if (!func_403(iVar0))
	{
		func_422(1, 1, 0);
		return;
	}
	if (func_402(player::player_id(), 0))
	{
		func_401();
	}
	else
	{
		func_381();
	}
	func_376(&iLocal_271);
	if (func_254(&iLocal_271))
	{
		func_422(1, 1, 0);
		if (iLocal_270 == 1)
		{
			ui::clear_help(1);
			iLocal_270 = 0;
		}
		return;
	}
	if (func_375(&iLocal_271))
	{
		if (!iVar1)
		{
			iVar21 = Global_2391093[iLocal_268 /*73*/].f_1;
			Var22 = { Global_2391093[iLocal_268 /*73*/].f_25 };
			func_396(iVar21, Var22);
		}
		else
		{
			func_394(iVar2, 0, 1, 0);
		}
		func_392(iVar0, 1);
		func_422(1, 1, 0);
		return;
	}
	if (!func_245(&iLocal_271))
	{
		return;
	}
	if ((func_402(player::player_id(), 0) && Global_2391093[iLocal_268 /*73*/].f_2 == 0) && Global_2391093[iLocal_268 /*73*/].f_3 == 2)
	{
		func_422(1, 1, 0);
		return;
	}
	if (iVar2 != func_12())
	{
		if (func_385(player::player_id(), func_390(iVar2)))
		{
			func_249("FMMC_EXCLUDED_INVITE", -1);
			func_422(1, 1, 0);
			func_394(iVar2, 1, 0, 0);
			func_392(iVar0, 1);
			return;
		}
	}
	if (system::vdist(Global_2391093[iLocal_268 /*73*/].f_6, Global_2391978[iVar0 /*80*/].f_5) > 0.3f)
	{
		func_422(1, 1, 0);
		return;
	}
	if (!func_374(Global_2391093[iLocal_268 /*73*/].f_68))
	{
		func_373(Global_2391093[iLocal_268 /*73*/].f_68);
		func_422(1, 1, 0);
		return;
	}
	if (player::get_player_wanted_level(player::player_id()) > 0)
	{
		if (!func_372(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3))
		{
			func_366(func_367(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3));
			func_422(1, 1, 0);
			return;
		}
		func_3();
		func_384();
		return;
	}
	func_3();
	func_285(iVar0);
}

void func_384()//Position - 0x252F6
{
	func_357();
	iLocal_203 = 8;
}

bool func_385(int iParam0, int iParam1)//Position - 0x25306
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = func_387(iParam1);
	iVar1 = 0;
	if (iVar0 == -1)
	{
		return false;
	}
	iVar2 = func_386(iVar0);
	iVar3 = iParam0;
	if (gameplay::is_bit_set(iVar2, iVar3))
	{
		return true;
	}
	return false;
}

var func_386(int iParam0)//Position - 0x2533F
{
	return Global_2416118[iParam0 /*40*/].f_37;
}

int func_387(int iParam0)//Position - 0x25351
{
	int iVar0;
	struct<20> Var1;
	
	iVar0 = 0;
	Var1.f_1 = -1;
	Var1.f_2 = -1;
	Var1.f_9 = -1;
	Var1.f_16 = -1;
	Var1.f_19 = -1;
	iVar0 = 0;
	while (iVar0 < 16)
	{
		if (!func_389(iVar0))
		{
			Var1 = { func_388(iVar0) };
			if (iParam0 == Var1.f_17)
			{
				return iVar0;
			}
		}
		iVar0++;
	}
	return -1;
}

struct<20> func_388(int iParam0)//Position - 0x253B6
{
	return Global_2416118[iParam0 /*40*/].f_3;
}

int func_389(int iParam0)//Position - 0x253CB
{
	return func_313(iParam0);
}

int func_390(int iParam0)//Position - 0x253D9
{
	var uVar0;
	int iVar1;
	
	uVar0 = iParam0;
	if (Global_2415926.f_4[uVar0 /*2*/] == 3)
	{
		return 0;
	}
	iVar1 = Global_2415926.f_4[uVar0 /*2*/].f_1;
	if (iVar1 == -1)
	{
		return 0;
	}
	return func_391(iVar1);
}

var func_391(int iParam0)//Position - 0x25415
{
	return Global_2416118[iParam0 /*40*/].f_3.f_17;
}

void func_392(int iParam0, int iParam1)//Position - 0x25429
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam0 >= Global_1347372)
	{
		return;
	}
	if (iParam1)
	{
		if (func_403(iParam0))
		{
			iVar0 = 0;
			iVar0 = 0;
			while (iVar0 <= 11)
			{
				if (Global_2391978[iParam0 /*80*/].f_10)
				{
					if (gameplay::get_game_timer() > Global_2395202[iVar0 /*4*/].f_2 || Global_2395202[iVar0 /*4*/].f_2 == 0)
					{
						if (Global_2391978[iParam0 /*80*/].f_1)
						{
							Global_2395202[iVar0 /*4*/] = Global_2391978[iParam0 /*80*/].f_8;
							Global_2395202[iVar0 /*4*/].f_1 = gameplay::get_hash_key(&(Global_2391978[iParam0 /*80*/].f_55));
							Global_2395202[iVar0 /*4*/].f_2 = gameplay::get_game_timer() + 30000;
							iVar0 = 12;
						}
					}
				}
				iVar0++;
			}
		}
	}
	if (Global_2391978[iParam0 /*80*/].f_53 != -1)
	{
		ui::_remove_notification(Global_2391978[iParam0 /*80*/].f_53);
	}
	if (!Global_2391978[iParam0 /*80*/].f_18)
	{
		if (Global_2391978[iParam0 /*80*/].f_14 != 0)
		{
			network::_0x5A34CD9C3C5BEC44(Global_2391978[iParam0 /*80*/].f_14);
		}
	}
	iVar1 = iParam0;
	iVar2 = iVar1 + 1;
	while (iVar2 < Global_1347372)
	{
		Global_2391978[iVar1 /*80*/] = { Global_2391978[iVar2 /*80*/] };
		iVar1++;
		iVar2++;
	}
	func_393(iVar1);
	Global_1347372 = (Global_1347372 - 1);
	if (Global_1347373)
	{
		if (Global_1347371 > 0)
		{
			func_259();
		}
	}
}

void func_393(int iParam0)//Position - 0x25580
{
	Global_2391978[iParam0 /*80*/] = 0;
	Global_2391978[iParam0 /*80*/].f_1 = 0;
	Global_2391978[iParam0 /*80*/].f_2 = 0;
	Global_2391978[iParam0 /*80*/].f_3 = 0;
	Global_2391978[iParam0 /*80*/].f_4 = 0;
	Global_2391978[iParam0 /*80*/].f_5 = { 0f, 0f, 0f };
	Global_2391978[iParam0 /*80*/].f_8 = func_12();
	Global_2391978[iParam0 /*80*/].f_9 = 145;
	Global_2391978[iParam0 /*80*/].f_10 = 1;
	Global_2391978[iParam0 /*80*/].f_11 = 0;
	Global_2391978[iParam0 /*80*/].f_12 = -1;
	Global_2391978[iParam0 /*80*/].f_13 = -1;
	Global_2391978[iParam0 /*80*/].f_14 = 0;
	Global_2391978[iParam0 /*80*/].f_15 = 0;
	Global_2391978[iParam0 /*80*/].f_15.f_1 = 0;
	Global_2391978[iParam0 /*80*/].f_15.f_2 = 0;
	Global_2391978[iParam0 /*80*/].f_18 = 0;
	Global_2391978[iParam0 /*80*/].f_19 = 0;
	StringCopy(&(Global_2391978[iParam0 /*80*/].f_20), "", 64);
	StringCopy(&(Global_2391978[iParam0 /*80*/].f_36), "", 64);
	Global_2391978[iParam0 /*80*/].f_53 = -1;
	Global_2391978[iParam0 /*80*/].f_63 = 16777215;
	Global_2391978[iParam0 /*80*/].f_64 = 0;
	Global_2391978[iParam0 /*80*/].f_65 = 0;
	Global_2391978[iParam0 /*80*/].f_66 = 0;
	Global_2391978[iParam0 /*80*/].f_67 = 0;
	Global_2391978[iParam0 /*80*/].f_68 = 0;
	Global_2391978[iParam0 /*80*/].f_69 = -1;
	Global_2391978[iParam0 /*80*/].f_70 = 0;
	Global_2391978[iParam0 /*80*/].f_71 = 0;
	Global_2391978[iParam0 /*80*/].f_72 = -1;
	Global_2391978[iParam0 /*80*/].f_73 = 0;
	Global_2391978[iParam0 /*80*/].f_74 = 0;
	Global_2391978[iParam0 /*80*/].f_75 = 0;
	Global_2391978[iParam0 /*80*/].f_76 = 0;
	Global_2391978[iParam0 /*80*/].f_77 = 0;
	Global_2391978[iParam0 /*80*/].f_78 = 0;
	Global_2391978[iParam0 /*80*/].f_79 = 0;
	if (network::network_is_game_in_progress())
	{
		Global_2391978[iParam0 /*80*/].f_52 = network::get_network_time();
		Global_2391978[iParam0 /*80*/].f_54 = network::get_network_time();
	}
}

void func_394(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x25762
{
	vector3 vVar0;
	struct<13> Var23;
	int iVar36;
	int iVar37;
	int iVar38;
	
	if (!func_10(iParam0, 0, 1))
	{
		return;
	}
	vVar0.x = 344;
	vVar0.y = player::player_id();
	network::network_get_local_handle(&Var23, 13);
	vVar0.f_2 = { Var23 };
	if (iParam1)
	{
		iVar36 = 0;
		gameplay::set_bit(&iVar36, 6);
		vVar0.f_2.f_13 = iVar36;
		vVar0.f_2.f_19 = 0;
		vVar0.f_2.f_20 = 0;
	}
	if (iParam2)
	{
		iVar37 = 0;
		gameplay::set_bit(&iVar37, 0);
		vVar0.f_2.f_13 = iVar37;
		vVar0.f_2.f_19 = 1;
		vVar0.f_2.f_20 = 0;
	}
	if (iParam3)
	{
		iVar38 = 0;
		gameplay::set_bit(&iVar38, 0);
		vVar0.f_2.f_13 = iVar38;
		vVar0.f_2.f_19 = 1;
		vVar0.f_2.f_20 = 1;
	}
	vVar0.f_2.f_14 = func_395(player::player_id());
	StringCopy(&(vVar0.f_2.f_15), "", 16);
	script::trigger_script_event(1, &vVar0, 23, func_311(iParam0));
}

var func_395(int iParam0)//Position - 0x25831
{
	return Global_1587523[iParam0 /*444*/].f_195.f_6;
}

void func_396(int iParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, var uParam7, var uParam8, var uParam9, var uParam10, var uParam11, var uParam12, var uParam13, var uParam14, var uParam15, var uParam16)//Position - 0x25846
{
	int iVar0;
	struct<4> Var1;
	struct<16> Var9;
	struct<10> Var25;
	int iVar35;
	
	if (iParam0 == 145)
	{
		return;
	}
	if (gameplay::is_string_null_or_empty(&uParam1))
	{
		return;
	}
	iVar0 = 0;
	StringCopy(&Var1, "", 32);
	StringCopy(&Var9, "", 64);
	Var25.f_1 = -1;
	Var25.f_2 = -1;
	Var25.f_9 = -1;
	iVar35 = 9;
	iVar0 = 0;
	while (iVar0 < 3)
	{
		if (Global_2403910[iVar0 /*13*/] != 9)
		{
			iVar35 = func_400(iParam0);
			if (iVar35 == Global_2403910[iVar0 /*13*/])
			{
				Var25 = { Global_2403910[iVar0 /*13*/].f_1 };
				Var9 = { func_346(&Var25, 0) };
				if (!gameplay::is_string_null_or_empty(&Var9))
				{
					if (gameplay::are_strings_equal(&Var9, &uParam1))
					{
						MemCopy(&Var1, {Var25.f_3}, 8);
						func_397(&Var1);
						return;
					}
				}
			}
		}
		iVar0++;
	}
}

void func_397(char* sParam0)//Position - 0x2590A
{
	int iVar0;
	int iVar1;
	
	if (gameplay::is_string_null_or_empty(sParam0))
	{
		return;
	}
	iVar0 = 0;
	iVar1 = 0;
	while (iVar1 < 3)
	{
		if (Global_2403910[iVar1 /*13*/] != 9)
		{
			if (gameplay::are_strings_equal(sParam0, &(Global_2403910[iVar1 /*13*/].f_1.f_3)))
			{
			}
			else
			{
				if (iVar0 != iVar1)
				{
					Global_2403910[iVar0 /*13*/] = Global_2403910[iVar1 /*13*/];
					Global_2403910[iVar0 /*13*/].f_1 = { Global_2403910[iVar1 /*13*/].f_1 };
					Global_2403910[iVar0 /*13*/].f_11 = Global_2403910[iVar1 /*13*/].f_11;
					Global_2403910[iVar0 /*13*/].f_12 = Global_2403910[iVar1 /*13*/].f_12;
				}
				iVar0++;
			}
		}
		iVar1++;
	}
	while (iVar0 < 3)
	{
		Global_2403910[iVar0 /*13*/] = 9;
		func_399(&(Global_2403910[iVar0 /*13*/].f_1));
		Global_2403910[iVar0 /*13*/].f_11 = 0;
		Global_2403910[iVar0 /*13*/].f_12 = 0;
		iVar0++;
	}
	func_398();
}

void func_398()//Position - 0x259F8
{
	int iVar0;
	int iVar1;
	struct<6> Var2;
	
	iVar0 = 0;
	iVar1 = 0;
	StringCopy(&Var2, "", 24);
	iVar0 = 0;
	while (iVar0 < 3)
	{
		Var2 = { Global_2403910[iVar0 /*13*/].f_1.f_3 };
		iVar1 = 0;
		if (!gameplay::is_string_null_or_empty(&Var2))
		{
			iVar1 = gameplay::get_hash_key(&Var2);
		}
		Global_2418472[player::player_id() /*313*/].f_73.f_23.f_14[iVar0] = iVar1;
		iVar0++;
	}
}

void func_399(var uParam0)//Position - 0x25A5D
{
	*uParam0 = 0;
	uParam0->f_1 = -1;
	uParam0->f_2 = -1;
	StringCopy(&(uParam0->f_3), "", 24);
	uParam0->f_9 = -1;
}

int func_400(int iParam0)//Position - 0x25A81
{
	switch (iParam0)
	{
		case 86:
			return 0;
		
		case 19:
			return 1;
		
		case 12:
			return 2;
		
		case 31:
			return 3;
		
		case 20:
			return 4;
		
		case 18:
			return 5;
		
		case 2:
			return 6;
		
		case 76:
			return 7;
		
		default:
	}
	return 1;
}

void func_401()//Position - 0x25AE1
{
	int iVar0;
	
	if (Global_2391093[0 /*73*/] != 1 && Global_1347371 > 0)
	{
		if (network::network_is_game_in_progress())
		{
			iVar0 = false;
			if (!iVar0)
			{
				if (((Global_2391093[iLocal_268 /*73*/] == 4 && Global_2391093[iLocal_268 /*73*/].f_2 == 0) && Global_2391093[iLocal_268 /*73*/].f_3 == 2) && func_402(player::player_id(), 0))
				{
					iVar0 = true;
				}
			}
			if (iVar0)
			{
				if (!iLocal_270)
				{
					iLocal_270 = 1;
					func_249("FMMC_CANT_JOIN_FROM_HERE", -1);
				}
			}
		}
	}
}

int func_402(int iParam0, int iParam1)//Position - 0x25B6C
{
	return gameplay::is_bit_set(Global_2418472[iParam0 /*313*/].f_206, iParam1);
}

var func_403(int iParam0)//Position - 0x25B85
{
	return Global_2391978[iParam0 /*80*/].f_1;
}

void func_404()//Position - 0x25B97
{
	if (func_254(&iLocal_271))
	{
		func_422(1, 1, 0);
		return;
	}
	if (func_245(&iLocal_271))
	{
		if (!Global_2391093[iLocal_268 /*73*/] == 2 && !Global_2391093[iLocal_268 /*73*/] == 3)
		{
			func_422(1, 1, 0);
			return;
		}
		if (func_22() == 0)
		{
			iLocal_203 = 12;
			return;
		}
		if (func_407(player::player_id()))
		{
			func_406();
		}
		func_405(Global_2391093[iLocal_268 /*73*/].f_1, 1);
		func_13(0);
		return;
	}
}

void func_405(int iParam0, int iParam1)//Position - 0x25C1D
{
	struct<4> Var0;
	
	if (iParam0 == 0)
	{
		return;
	}
	Var0 = 187;
	Var0.f_1 = player::player_id();
	Var0.f_2 = iParam0;
	Var0.f_3 = iParam1;
	script::trigger_script_event(1, &Var0, 4, func_309());
	func_304(187, iParam0, 0, -1);
}

void func_406()//Position - 0x25C5C
{
	gameplay::clear_bit(&(Global_1587523[player::player_id() /*444*/].f_39.f_18), 15);
}

int func_407(int iParam0)//Position - 0x25C79
{
	return gameplay::is_bit_set(Global_1587523[iParam0 /*444*/].f_39.f_18, 15);
}

void func_408()//Position - 0x25C94
{
	func_376(&iLocal_271);
	if (Global_14413.f_1 == 8)
	{
		if (func_254(&iLocal_271))
		{
			func_422(1, 1, 0);
			return;
		}
	}
	if (func_375(&iLocal_271))
	{
		func_409();
		Global_14413.f_1 = 8;
		return;
	}
}

void func_409()//Position - 0x25CD9
{
	func_410();
	func_203(&Local_240);
	iLocal_203 = 7;
}

void func_410()//Position - 0x25CEE
{
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(13), -1082130432, -1082130432, -1082130432, -1082130432);
	func_202(Global_14394, "SET_DATA_SLOT", system::to_float(13), system::to_float(0), system::to_float(12), -1f, -1f, &Local_244, 0, 0, 0, 0);
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(13), -1082130432, -1082130432, -1082130432, -1082130432);
	func_199(13, &Local_208, 1, "", 14, &Local_212, &iLocal_271);
}

void func_411()//Position - 0x25D77
{
	var uVar0;
	var uVar1;
	int iVar2;
	
	if (Global_1347371 > 1)
	{
		func_376(&iLocal_271);
	}
	if (func_245(&iLocal_271))
	{
		if (func_222())
		{
			return;
		}
		graphics::_push_scaleform_movie_function(Global_14394, "GET_CURRENT_SELECTION");
		uVar0 = graphics::_pop_scaleform_movie_function();
		while (!graphics::_0x768FF8961BA904D6(uVar0))
		{
			system::wait(0);
		}
		iLocal_268 = graphics::_0x2DE7EFA66B906036(uVar0);
		if (func_354())
		{
			func_418();
			Global_14413.f_1 = 8;
			return;
		}
		if (gameplay::is_bit_set(Global_2391093[iLocal_268 /*73*/].f_5, 3))
		{
			if (!func_4("FMMC_JOB_CLOSED"))
			{
				func_249("FMMC_JOB_CLOSED", -1);
			}
			return;
		}
		if (Global_2391093[iLocal_268 /*73*/].f_68 > 0)
		{
			if (!func_374(Global_2391093[iLocal_268 /*73*/].f_68))
			{
				func_373(Global_2391093[iLocal_268 /*73*/].f_68);
				return;
			}
		}
		if (Global_2391093[iLocal_268 /*73*/] == 2 || Global_2391093[iLocal_268 /*73*/] == 4)
		{
			if (!func_372(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3))
			{
				func_366(func_367(Global_2391093[iLocal_268 /*73*/].f_2, Global_2391093[iLocal_268 /*73*/].f_3));
				return;
			}
		}
		if (Global_2391093[iLocal_268 /*73*/].f_2 == 117)
		{
			if (player::get_player_wanted_level(player::player_id()) > 0)
			{
				if (!func_359())
				{
					func_358();
					return;
				}
			}
		}
		switch (Global_2391093[iLocal_268 /*73*/])
		{
			case 0:
				return;
			
			case 1:
			case 2:
			case 3:
			case 4:
			case 5:
			case 6:
				break;
			
			default:
				return;
		}
		switch (Global_2391093[iLocal_268 /*73*/])
		{
			case 1:
				func_341();
				break;
			
			case 2:
			case 3:
				func_417();
				break;
			
			case 4:
				func_325();
				break;
			
			case 5:
				func_271();
				break;
			
			case 6:
				func_250();
				break;
		}
		Global_14413.f_1 = 8;
		return;
	}
	if (func_375(&iLocal_271))
	{
		if (func_222())
		{
			return;
		}
		graphics::_push_scaleform_movie_function(Global_14394, "GET_CURRENT_SELECTION");
		uVar1 = graphics::_pop_scaleform_movie_function();
		while (!graphics::_0x768FF8961BA904D6(uVar1))
		{
			system::wait(0);
		}
		iLocal_268 = graphics::_0x2DE7EFA66B906036(uVar1);
		switch (Global_2391093[iLocal_268 /*73*/])
		{
			case 0:
				return;
			
			case 1:
			case 2:
			case 3:
				return;
			
			case 4:
				func_416(iLocal_268);
				return;
			
			case 5:
				func_415(iLocal_268);
				return;
			
			case 6:
				func_412(iLocal_268);
				return;
			
			default:
		}
		return;
		return;
	}
	Global_2391970.f_1 = 1;
	if (Global_2391970)
	{
		iVar2 = false;
		func_422(iVar2, 0, 0);
	}
}

void func_412(int iParam0)//Position - 0x26028
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (!gameplay::is_bit_set(Global_2391093[iParam0 /*73*/].f_5, 5))
	{
		if (!func_4("NO_DEL_RVINVITE"))
		{
			func_249("NO_DEL_RVINVITE", -1);
		}
		func_422(1, 1, 0);
		return;
	}
	if (func_4("NO_DEL_RVINVITE"))
	{
		ui::clear_help(1);
	}
	iVar0 = -1;
	iVar1 = gameplay::is_bit_set(Global_2391093[iParam0 /*73*/].f_5, 4);
	if (iVar1)
	{
		iVar2 = player::int_to_playerindex(Global_2391093[iParam0 /*73*/].f_1);
		iVar0 = func_229(iVar2);
	}
	else
	{
		iVar3 = Global_2391093[iParam0 /*73*/].f_1;
		iVar0 = func_228(iVar3);
	}
	if (iVar0 == -1)
	{
		func_422(1, 1, 0);
		return;
	}
	if (!func_363(iVar0))
	{
		func_422(1, 1, 0);
		return;
	}
	func_413(iVar0);
	func_422(1, 1, 0);
}

void func_413(int iParam0)//Position - 0x260EB
{
	int iVar0;
	int iVar1;
	
	if (iParam0 >= Global_1347402)
	{
		return;
	}
	if (Global_2394116[iParam0 /*44*/].f_25 != -1)
	{
		ui::_remove_notification(Global_2394116[iParam0 /*44*/].f_25);
	}
	iVar0 = iParam0;
	iVar1 = iVar0 + 1;
	while (iVar1 < Global_1347402)
	{
		Global_2394116[iVar0 /*44*/] = { Global_2394116[iVar1 /*44*/] };
		Global_2394116[iVar0 /*44*/] = { Global_2394116[iVar1 /*44*/] };
		iVar0++;
		iVar1++;
	}
	func_414(iVar0);
	Global_1347402 = (Global_1347402 - 1);
	if (Global_1347373)
	{
		if (Global_1347371 > 0)
		{
			func_259();
		}
	}
}

void func_414(int iParam0)//Position - 0x2618C
{
	Global_2394116[iParam0 /*44*/] = 0;
	Global_2394116[iParam0 /*44*/].f_1 = 0;
	Global_2394116[iParam0 /*44*/].f_2 = 0;
	Global_2394116[iParam0 /*44*/].f_3 = 0;
	Global_2394116[iParam0 /*44*/].f_4 = func_12();
	Global_2394116[iParam0 /*44*/].f_5 = 145;
	Global_2394116[iParam0 /*44*/].f_6 = 1;
	Global_2394116[iParam0 /*44*/].f_7 = -1;
	Global_2394116[iParam0 /*44*/].f_8 = -1;
	StringCopy(&(Global_2394116[iParam0 /*44*/].f_9), "", 64);
	Global_2394116[iParam0 /*44*/].f_25 = -1;
	StringCopy(&(Global_2394116[iParam0 /*44*/].f_26), "", 32);
	Global_2394116[iParam0 /*44*/].f_34 = -1;
	Global_2394116[iParam0 /*44*/].f_35 = -1;
	Global_2394116[iParam0 /*44*/].f_36 = 0;
	Global_2394116[iParam0 /*44*/].f_38 = 0;
	Global_2394116[iParam0 /*44*/].f_39 = -1;
	Global_2394116[iParam0 /*44*/].f_40 = 0;
	Global_2394116[iParam0 /*44*/].f_41 = 0;
	Global_2394116[iParam0 /*44*/].f_42 = 0;
	if (network::network_is_game_in_progress())
	{
		Global_2394116[iParam0 /*44*/].f_37 = network::get_network_time();
	}
}

void func_415(int iParam0)//Position - 0x2628F
{
	struct<16> Var0;
	int iVar16;
	
	Var0 = { Global_2391093[iParam0 /*73*/].f_9 };
	iVar16 = func_269(Var0);
	if (iVar16 == -1)
	{
		func_422(1, 1, 0);
		return;
	}
	if (!func_382(iVar16))
	{
		func_422(1, 1, 0);
		return;
	}
	func_258(iVar16);
	func_422(1, 1, 0);
}

void func_416(int iParam0)//Position - 0x262E5
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	struct<16> Var4;
	int iVar20;
	int iVar21;
	struct<16> Var22;
	
	iVar0 = -1;
	iVar1 = gameplay::is_bit_set(Global_2391093[iParam0 /*73*/].f_5, 4);
	iVar2 = func_12();
	if (iVar1)
	{
		iVar2 = player::int_to_playerindex(Global_2391093[iParam0 /*73*/].f_1);
		iVar0 = func_324(iVar2);
	}
	else
	{
		iVar3 = Global_2391093[iParam0 /*73*/].f_1;
		Var4 = { Global_2391093[iParam0 /*73*/].f_25 };
		iVar20 = true;
		iVar0 = func_323(iVar3, &Var4, iVar20);
	}
	if (iVar0 == -1)
	{
		func_422(1, 1, 0);
		return;
	}
	if (!iVar1)
	{
		iVar21 = Global_2391093[iParam0 /*73*/].f_1;
		Var22 = { Global_2391093[iParam0 /*73*/].f_25 };
		func_396(iVar21, Var22);
	}
	else
	{
		func_394(iVar2, 0, 1, 0);
	}
	func_392(iVar0, 1);
	func_422(1, 1, 0);
}

void func_417()//Position - 0x263AD
{
	func_342();
	func_203(&Local_256);
	func_199(13, &Local_220, 1, "", 4, &Local_204, &iLocal_271);
	iLocal_203 = 2;
}

void func_418()//Position - 0x263D5
{
	char cVar0[16];
	int iVar4;
	var uVar5;
	char* sVar21;
	
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	StringCopy(&cVar0, "", 16);
	iVar4 = 0;
	MemCopy(&uVar5, {Global_101154.f_32575[Global_1347404.f_2 /*29*/].f_3}, 16);
	sVar21 = ui::_get_label_text(&(Global_101154.f_32575[Global_1347404.f_2 /*29*/].f_7));
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(7);
	graphics::_push_scaleform_movie_function_parameter_int(iVar4);
	StringCopy(&cVar0, func_215(Global_1347404.f_3, -1, -1), 16);
	graphics::_begin_text_component(&uVar5);
	graphics::_end_text_component();
	graphics::_begin_text_component("THREESTRINGSNL");
	ui::_add_text_component_item_string("CELL_266");
	ui::_add_text_component_item_string(&cVar0);
	ui::_0x5F68520888E69014(&(Global_1347404.f_4));
	graphics::_end_text_component();
	graphics::_push_scaleform_movie_function_parameter_string(sVar21);
	graphics::_pop_scaleform_movie_function_void();
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(7), -1082130432, -1082130432, -1082130432, -1082130432);
	func_203(&Local_260);
	func_199(13, &Local_220, 1, "", 4, &Local_204, &iLocal_271);
	iLocal_203 = 6;
}

void func_419()//Position - 0x264DA
{
	int iVar0;
	int iVar1;
	
	if (Global_1572906)
	{
		ui::_set_warning_message_2("HUD_CONNPROB", "HEIST_QUITWARNING", 36, "CONT_SURE", 0, -1, 0, 0, 1);
		if (controls::is_control_just_released(2, 201))
		{
			iVar0 = true;
		}
		else if (controls::is_control_just_released(2, 202))
		{
			iVar1 = true;
		}
		if (iVar0)
		{
			Global_1572906 = 0;
			func_337();
			return;
		}
		else if (iVar1)
		{
			Global_1572906 = 0;
			return;
		}
	}
}

void func_420()//Position - 0x2653E
{
	controls::set_input_exclusive(0, 176);
	controls::set_input_exclusive(0, 177);
}

void func_421(char* sParam0)//Position - 0x26554
{
	if (Global_16775 != 0)
	{
		if (!gameplay::is_string_null_or_empty(sParam0))
		{
		}
		Global_16775 = 0;
	}
}

void func_422(int iParam0, int iParam1, int iParam2)//Position - 0x26571
{
	int iVar0;
	int iVar1;
	
	func_3();
	if (!Global_14413.f_1 == 7)
	{
		Global_14413.f_1 = 7;
	}
	iVar0 = 0;
	if (iParam1)
	{
		iVar0 = iLocal_268;
	}
	if (iParam0)
	{
		if (func_444())
		{
			iVar0 = 0;
		}
	}
	if (iVar0 >= Global_1347371)
	{
		iVar0 = 0;
	}
	if (Global_1347371 == 1 && Global_2391093[0 /*73*/] == 1)
	{
		func_341();
		return;
	}
	if (iLocal_269 == 1)
	{
		ui::clear_help(1);
		iLocal_269 = 0;
	}
	if (iParam2)
	{
		iLocal_268 = 0;
		if (func_443(iLocal_268))
		{
			return;
		}
	}
	func_423();
	func_219(Global_14394, "DISPLAY_VIEW", system::to_float(20), system::to_float(iVar0), -1082130432, -1082130432, -1082130432);
	if (func_22() == 0 || !network::network_is_game_in_progress())
	{
		func_203(&Local_232);
	}
	else
	{
		func_203(&Local_228);
	}
	iVar1 = false;
	if (Global_1347371 > 0)
	{
		iVar1 = true;
	}
	if (!iVar1)
	{
		if (func_354() && !Global_1347404.f_1)
		{
			iVar1 = true;
		}
	}
	if (iVar1)
	{
		func_199(13, &Local_216, 12, &Local_224, 4, &Local_204, &iLocal_271);
	}
	else
	{
		func_199(1, "", 1, "", 4, &Local_204, &iLocal_271);
	}
	iLocal_203 = 0;
}

void func_423()//Position - 0x266A0
{
	struct<2> Var0;
	char cVar4[16];
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	
	if ((func_22() == 0 || func_22() == -1) || !network::network_is_game_in_progress())
	{
		func_425();
		return;
	}
	StringCopy(&Var0, "", 16);
	StringCopy(&cVar4, "", 16);
	iVar8 = 0;
	iVar9 = player::get_player_team(player::player_id());
	iVar10 = 0;
	iVar11 = false;
	iVar12 = 0;
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(20), -1082130432, -1082130432, -1082130432, -1082130432);
	iVar12 = 0;
	while (iVar12 < 12)
	{
		iVar11 = false;
		if (!Global_2391093[iVar12 /*73*/] == 0)
		{
			iVar8 = Global_2391093[iVar12 /*73*/].f_2;
			switch (Global_2391093[iVar12 /*73*/])
			{
				case 1:
					StringCopy(&Var0, "CELL_260", 16);
					StringCopy(&cVar4, func_343(iVar8, iVar9), 16);
					iVar11 = true;
					break;
				
				case 2:
					StringCopy(&Var0, "CELL_263", 16);
					StringCopy(&cVar4, func_343(iVar8, iVar9), 16);
					iVar11 = true;
					break;
				
				case 4:
					StringCopy(&Var0, "CELL_265", 16);
					StringCopy(&cVar4, func_343(iVar8, iVar9), 16);
					iVar11 = true;
					break;
				
				default:
					break;
				}
		}
		if (iVar11)
		{
			func_202(Global_14394, "SET_DATA_SLOT", system::to_float(20), system::to_float(iVar10), -1f, -1f, -1f, &Var0, &cVar4, 0, 0, 0);
			iVar10++;
		}
		iVar12++;
	}
	if (iVar10 > 0)
	{
		return;
	}
	func_424();
}

void func_424()//Position - 0x267EE
{
	int iVar0;
	
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(20);
	graphics::_push_scaleform_movie_function_parameter_int(0);
	func_205("CELL_240");
	func_205("CELL_241");
	graphics::_push_scaleform_movie_function_parameter_int(-1);
	graphics::_push_scaleform_movie_function_parameter_bool(false);
	iVar0 = network::network_is_game_in_progress();
	graphics::_push_scaleform_movie_function_parameter_bool(iVar0);
	graphics::_pop_scaleform_movie_function_void();
}

void func_425()//Position - 0x26837
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	iVar1 = 0;
	func_219(Global_14394, "SET_DATA_SLOT_EMPTY", system::to_float(20), -1082130432, -1082130432, -1082130432, -1082130432);
	if (func_354())
	{
		func_442();
		return;
	}
	iVar0 = 0;
	while (iVar0 < 12)
	{
		switch (Global_2391093[iVar0 /*73*/])
		{
			case 0:
				break;
			
			case 1:
			case 2:
			case 3:
				func_441(iVar1, iVar0);
				iVar1++;
				break;
			
			case 4:
				func_437(iVar1, iVar0);
				iVar1++;
				break;
			
			case 5:
				func_432(iVar1, iVar0);
				iVar1++;
				break;
			
			case 6:
				func_426(iVar1, iVar0);
				iVar1++;
				break;
			
			default:
				break;
		}
		iVar0++;
	}
	if (iVar1 > 0)
	{
		return;
	}
	func_424();
}

void func_426(int iParam0, int iParam1)//Position - 0x26919
{
	int iVar0;
	int iVar1;
	int iVar2;
	char cVar3[64];
	int iVar19;
	int iVar20;
	char cVar21[16];
	int iVar25;
	int iVar26;
	vector3 vVar27[24];
	char cVar33[32];
	char* sVar37;
	int iVar38;
	char* sVar39;
	
	iVar0 = func_12();
	iVar1 = 145;
	iVar2 = gameplay::is_bit_set(Global_2391093[iParam1 /*73*/].f_5, 4);
	StringCopy(&cVar3, "", 64);
	iVar19 = true;
	iVar20 = -1;
	StringCopy(&cVar21, "", 16);
	iVar25 = gameplay::is_bit_set(Global_2391093[iParam1 /*73*/].f_5, 3);
	iVar26 = false;
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(20);
	graphics::_push_scaleform_movie_function_parameter_int(iParam0);
	if (iVar2)
	{
		iVar0 = player::int_to_playerindex(Global_2391093[iParam1 /*73*/].f_1);
		iVar19 = func_10(iVar0, 0, 1);
		if (iVar19)
		{
			iVar20 = func_395(iVar0);
		}
	}
	else
	{
		iVar1 = Global_2391093[iParam1 /*73*/].f_1;
		iVar19 = true;
	}
	if (iVar19)
	{
		StringCopy(&cVar27, "STRING", 24);
		if (iVar2)
		{
			StringCopy(&cVar3, "<C>", 64);
			StringConCat(&cVar3, player::get_player_name(iVar0), 64);
			StringConCat(&cVar3, "</C>", 64);
			if (iVar20 > 0)
			{
				StringCopy(&cVar27, "CELL_MP_279", 24);
			}
		}
		else
		{
			cVar33 = { func_214(iVar1) };
			sVar37 = func_213(&cVar33);
			StringCopy(&cVar3, ui::_get_label_text(sVar37), 64);
		}
		graphics::_begin_text_component(&cVar27);
		ui::add_text_component_substring_player_name(&cVar3);
		if (iVar2 && iVar20 > 0)
		{
			ui::add_text_component_integer(iVar20);
		}
		graphics::_end_text_component();
	}
	else
	{
		graphics::_begin_text_component("CELL_265");
		graphics::_end_text_component();
	}
	StringCopy(&cVar21, func_215(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3, Global_2391093[iParam1 /*73*/].f_72), 16);
	iVar26 = true;
	if (gameplay::is_string_null_or_empty(&(Global_2391093[iParam1 /*73*/].f_25)))
	{
		iVar26 = false;
	}
	if (iVar25)
	{
		graphics::_begin_text_component("CELL_262");
		ui::_add_text_component_item_string(&cVar21);
		graphics::_end_text_component();
	}
	else
	{
		iVar38 = true;
		sVar39 = "CELL_268";
		if (Global_2391093[iParam1 /*73*/].f_2 == 123)
		{
			if (Global_2391093[iParam1 /*73*/].f_3 == 7)
			{
				sVar39 = "CELL_268_PREP_DETAIL";
				iVar38 = false;
				iVar26 = false;
			}
			else
			{
				sVar39 = "CELL_268_HEIST_DETAIL";
			}
		}
		graphics::_begin_text_component(sVar39);
		if (iVar26)
		{
			ui::_0x5F68520888E69014(&(Global_2391093[iParam1 /*73*/].f_25));
		}
		else if (iVar38)
		{
			ui::_add_text_component_item_string(&cVar21);
		}
		graphics::_end_text_component();
	}
	func_427(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3, Global_2391093[iParam1 /*73*/].f_64, Global_2391093[iParam1 /*73*/].f_65);
	graphics::_pop_scaleform_movie_function_void();
}

void func_427(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x26B32
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_428(iParam0, iParam1);
	graphics::_push_scaleform_movie_function_parameter_int(iVar0);
	func_251(iParam0, iParam1, iParam2, iParam3);
	iVar1 = network::network_is_game_in_progress();
	graphics::_push_scaleform_movie_function_parameter_bool(iVar1);
}

int func_428(int iParam0, int iParam1)//Position - 0x26B62
{
	switch (iParam0)
	{
		case 3:
			return 305;
		
		case 8:
			return 94;
		
		case 123:
		case 0:
		case 1:
		case 2:
		case 145:
			break;
		
		case 11:
		case 12:
		case 13:
		case 14:
		case 15:
		case 117:
		case 5:
		case 6:
		case 122:
		case 32:
			return -1;
		
		default:
			return -1;
	}
	switch (iParam0)
	{
		case 123:
			if (iParam1 == 7)
			{
				return 363;
			}
			return 59;
		
		case 145:
			return 445;
		
		case 0:
			if (iParam1 >= 0)
			{
				return func_431(iParam1, 0);
			}
			return 59;
		
		case 1:
			if (iParam1 >= 0)
			{
				return func_430(iParam1);
			}
			return 59;
		
		case 2:
			if (iParam1 >= 0)
			{
				return func_429(iParam1);
			}
			return 59;
		
		default:
	}
	return -1;
}

int func_429(int iParam0)//Position - 0x26C67
{
	switch (iParam0)
	{
		case 0:
		case 1:
			return 315;
		
		case 6:
		case 7:
			return 435;
		
		case 10:
		case 11:
			return 379;
		
		case 12:
		case 13:
			return 376;
		
		case 2:
		case 3:
			return 316;
		
		case 4:
		case 5:
			return 314;
		
		default:
	}
	return 309;
}

int func_430(int iParam0)//Position - 0x26CE5
{
	switch (iParam0)
	{
		case 0:
			return 310;
		
		case 1:
			return 378;
		
		case 2:
			return 380;
		
		default:
	}
	return 310;
}

int func_431(int iParam0, int iParam1)//Position - 0x26D1B
{
	switch (iParam0)
	{
		case 1:
			return 59;
		
		case 7:
			return 59;
		
		case 5:
			return 409;
		
		case 6:
			return 408;
		
		case 2:
		case 3:
		case 0:
		case 4:
		case 9:
		case 129:
			return 304;
		
		case 8:
			if (iParam1 == 0)
			{
				return 445;
			}
			else
			{
				return 304;
			}
			break;
	}
	return 304;
}

void func_432(int iParam0, int iParam1)//Position - 0x26DA3
{
	char cVar0[64];
	char cVar16[16];
	int iVar20;
	int iVar21;
	int iVar22;
	int iVar23;
	int iVar24;
	vector3 vVar25[24];
	vector3 vVar31[24];
	char cVar37[64];
	
	StringCopy(&cVar0, "", 64);
	StringCopy(&cVar16, "", 16);
	iVar20 = gameplay::is_bit_set(Global_2391093[iParam1 /*73*/].f_5, 3);
	iVar21 = true;
	iVar22 = true;
	iVar23 = false;
	iVar24 = Global_2391093[iParam1 /*73*/].f_68;
	if (iVar24 >= 0)
	{
		iVar23 = true;
	}
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(20);
	graphics::_push_scaleform_movie_function_parameter_int(iParam0);
	graphics::_begin_text_component("STRING");
	StringCopy(&cVar0, "<C>", 64);
	StringConCat(&cVar0, &(Global_2391093[iParam1 /*73*/].f_9), 64);
	StringConCat(&cVar0, "</C>", 64);
	ui::add_text_component_substring_player_name(&cVar0);
	graphics::_end_text_component();
	StringCopy(&cVar16, func_215(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3, Global_2391093[iParam1 /*73*/].f_72), 16);
	iVar21 = func_372(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3);
	if (iVar23)
	{
		iVar22 = func_374(iVar24);
	}
	if (iVar20)
	{
		graphics::_begin_text_component("CELL_262");
		ui::_add_text_component_item_string(&cVar16);
		graphics::_end_text_component();
	}
	else if (!iVar22)
	{
		graphics::_begin_text_component("CELL_259_BET");
		ui::add_text_component_integer(iVar24);
		graphics::_end_text_component();
	}
	else if (!iVar21)
	{
		graphics::_begin_text_component("CELL_259");
		ui::_add_text_component_item_string(&cVar16);
		ui::add_text_component_integer(func_367(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3));
		graphics::_end_text_component();
	}
	else if (iVar23)
	{
		StringCopy(&cVar25, "CELL_MP_H2H", 24);
		graphics::_begin_text_component(&cVar25);
		ui::add_text_component_integer(iVar24);
		graphics::_end_text_component();
	}
	else
	{
		StringCopy(&cVar31, "CELL_268", 24);
		if (Global_2391093[iParam1 /*73*/].f_2 == 123)
		{
			StringCopy(&cVar31, "CELL_268_HEIST", 24);
		}
		graphics::_begin_text_component(&cVar31);
		StringCopy(&cVar37, ui::_get_label_text(&cVar16), 64);
		StringConCat(&cVar37, func_433(gameplay::get_hash_key(&(Global_2391093[iParam1 /*73*/].f_58)), Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3, Global_2391093[iParam1 /*73*/].f_71, Global_2391093[iParam1 /*73*/].f_64, Global_2391093[iParam1 /*73*/].f_65), 64);
		ui::_0x5F68520888E69014(&cVar37);
		graphics::_0xAE4E8157D9ECF087();
	}
	func_427(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3, Global_2391093[iParam1 /*73*/].f_64, Global_2391093[iParam1 /*73*/].f_65);
	graphics::_pop_scaleform_movie_function_void();
}

var func_433(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x26FBA
{
	float fVar0;
	float fVar1;
	char cVar2[64];
	
	if (Global_262145.f_6479)
	{
		return func_213("");
	}
	if (iParam1 == 0 && iParam2 == 8)
	{
		return func_213("");
	}
	fVar0 = 0f;
	fVar1 = 0f;
	StringCopy(&cVar2, "", 64);
	func_435(&fVar0, &fVar1, iParam0, iParam1, iParam2, iParam3, func_253(iParam4, iParam5));
	if (fVar1 > 1f && fVar0 > 1f)
	{
		StringCopy(&cVar2, " ", 64);
		StringConCat(&cVar2, func_434(fVar0), 64);
		StringConCat(&cVar2, "x ~BLIP_RP~ ", 64);
		StringConCat(&cVar2, func_434(fVar1), 64);
		StringConCat(&cVar2, "x ~BLIP_CASH~", 64);
	}
	else if (fVar1 > 1f)
	{
		StringCopy(&cVar2, " ", 64);
		StringConCat(&cVar2, func_434(fVar1), 64);
		StringConCat(&cVar2, "x ~BLIP_CASH~", 64);
	}
	else if (fVar0 > 1f)
	{
		StringCopy(&cVar2, " ", 64);
		StringConCat(&cVar2, func_434(fVar0), 64);
		StringConCat(&cVar2, "x ~BLIP_RP~", 64);
	}
	else
	{
		StringCopy(&cVar2, "", 64);
	}
	return func_213(&cVar2);
}

var func_434(float fParam0)//Position - 0x270AA
{
	int iVar0;
	int iVar1;
	char cVar2[0];
	
	iVar0 = system::floor(fParam0);
	iVar1 = system::floor(((fParam0 - IntToFloat(iVar0)) * 10f));
	IntToString(&cVar2, iVar0, 4);
	if (iVar1 > 0)
	{
		StringConCat(&cVar2, ".", 4);
		StringIntConCat(&cVar2, iVar1, 4);
	}
	return func_213(&cVar2);
}

void func_435(float fParam0, float fParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x270EC
{
	struct<16> Var0;
	int iVar16;
	struct<16> Var17;
	
	StringCopy(&Var0, "", 64);
	if (iParam3 == 0 && iParam4 == 8)
	{
		return;
	}
	iVar16 = network::_get_tunables_content_modifier_id(iParam2);
	StringCopy(&Var17, "XP_MULTIPLIER", 64);
	Var0 = { func_436(iParam3, iParam4, iVar16, Var17, iParam5, iParam6) };
	if (!gameplay::is_string_null_or_empty(&Var0))
	{
		if (network::network_access_tunable_float(&Var0, &Var17, fParam0))
		{
		}
	}
	StringCopy(&Var17, "CASH_MULTIPLIER", 64);
	Var0 = { func_436(iParam3, iParam4, iVar16, Var17, iParam5, iParam6) };
	if (!gameplay::is_string_null_or_empty(&Var0))
	{
		if (network::network_access_tunable_float(&Var0, &Var17, fParam1))
		{
		}
	}
}

struct<16> func_436(int iParam0, int iParam1, int iParam2, char[4] cParam3, char[4] cParam4, char[4] cParam5, char[4] cParam6, char[4] cParam7, char[4] cParam8, char[4] cParam9, char[4] cParam10, char[4] cParam11, char[4] cParam12, char[4] cParam13, char[4] cParam14, char[4] cParam15, char[4] cParam16, char[4] cParam17, char[4] cParam18, int iParam19, int iParam20)//Position - 0x27191
{
	struct<16> Var0;
	
	StringCopy(&Var0, "", 64);
	if (iParam2 > -1)
	{
		StringCopy(&Var0, "CONTENT_MODIFIER_", 64);
		StringIntConCat(&Var0, iParam2, 64);
		if (network::network_does_tunable_exist(&Var0, &cParam3))
		{
			return Var0;
		}
	}
	switch (iParam0)
	{
		case 2:
			StringCopy(&Var0, "MP_FM_RACES", 64);
			switch (iParam1)
			{
				case 0:
				case 1:
					StringCopy(&Var0, "MP_FM_RACES_CAR", 64);
					break;
				
				case 2:
				case 3:
					StringCopy(&Var0, "MP_FM_RACES_SEA", 64);
					break;
				
				case 6:
				case 7:
					StringCopy(&Var0, "MP_FM_RACES_CAR", 64);
					break;
				
				case 4:
				case 5:
					StringCopy(&Var0, "MP_FM_RACES_AIR", 64);
					break;
				
				case 8:
				case 9:
					StringCopy(&Var0, "MP_FM_BASEJUMP", 64);
					break;
				
				case 12:
				case 13:
					if (iParam19)
					{
						StringCopy(&Var0, "MP_FM_RACES_CYCLE", 64);
					}
					else
					{
						StringCopy(&Var0, "MP_FM_RACES_BIKE", 64);
					}
					break;
			}
			if (!network::network_does_tunable_exist(&Var0, &cParam3))
			{
				StringCopy(&Var0, "MP_FM_RACES", 64);
			}
			break;
		
		case 0:
			StringCopy(&Var0, "MP_FM_MISSIONS", 64);
			if (iParam20)
			{
				StringCopy(&Var0, "MP_FMADVERSARY", 64);
			}
			else
			{
				switch (iParam1)
				{
					case 0:
						StringCopy(&Var0, "MP_FM_MISSIONS", 64);
						break;
					
					case 2:
						StringCopy(&Var0, "MP_FM_CONTACT", 64);
						break;
					
					case 3:
						StringCopy(&Var0, "MP_FM_RANDOM", 64);
						break;
					
					case 4:
						StringCopy(&Var0, "MP_FM_VERSUS", 64);
						break;
					
					case 9:
						StringCopy(&Var0, "FMMC_RSTAR_MVS", 64);
						break;
					
					case 5:
						StringCopy(&Var0, "MP_FM_LTS", 64);
						break;
					
					case 6:
						StringCopy(&Var0, "MP_FM_CAPTURE", 64);
						break;
					}
			}
			if (!network::network_does_tunable_exist(&Var0, &cParam3))
			{
				StringCopy(&Var0, "MP_FM_MISSIONS", 64);
			}
			break;
		
		case 1:
			StringCopy(&Var0, "MP_FM_DM", 64);
			break;
		
		case 3:
			StringCopy(&Var0, "MP_FM_SURVIVAL", 64);
			break;
		
		case 6:
			StringCopy(&Var0, "MP_FM_GANG_ATTACK", 64);
			break;
		
		case 8:
			StringCopy(&Var0, "MP_FM_BASEJUMP", 64);
			break;
	}
	return Var0;
}

void func_437(int iParam0, int iParam1)//Position - 0x27393
{
	int iVar0;
	int iVar1;
	int iVar2;
	char cVar3[64];
	int iVar19;
	int iVar20;
	char cVar21[16];
	int iVar25;
	int iVar26;
	int iVar27;
	int iVar28;
	char cVar29[32];
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	vector3 vVar43[24];
	char cVar49[32];
	char* sVar53;
	int iVar54;
	int iVar55;
	int iVar56;
	vector3 vVar57[24];
	int iVar63;
	vector3 vVar64;
	
	iVar0 = func_12();
	iVar1 = 145;
	iVar2 = gameplay::is_bit_set(Global_2391093[iParam1 /*73*/].f_5, 4);
	StringCopy(&cVar3, "", 64);
	iVar19 = true;
	iVar20 = -1;
	StringCopy(&cVar21, "", 16);
	iVar25 = gameplay::is_bit_set(Global_2391093[iParam1 /*73*/].f_5, 3);
	iVar26 = true;
	iVar27 = true;
	iVar28 = false;
	StringCopy(&cVar29, "", 32);
	iVar37 = false;
	iVar38 = false;
	iVar39 = 0;
	iVar40 = 0;
	iVar41 = false;
	iVar42 = Global_2391093[iParam1 /*73*/].f_68;
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(20);
	graphics::_push_scaleform_movie_function_parameter_int(iParam0);
	if (iVar2)
	{
		iVar0 = player::int_to_playerindex(Global_2391093[iParam1 /*73*/].f_1);
		iVar19 = func_10(iVar0, 0, 1);
		if (iVar19)
		{
			iVar20 = func_395(iVar0);
			iVar28 = func_20(iVar0);
			if (iVar28)
			{
				iVar39 = Global_1609227[iVar0 /*34*/].f_23;
				iVar40 = Global_1587523[iVar0 /*444*/].f_13.f_4;
				MemCopy(&cVar29, {Global_1587523[iVar0 /*444*/].f_19}, 8);
				if (iVar42 >= 0)
				{
					iVar41 = true;
				}
				else if ((func_440(iVar0) || func_439(iVar0)) || func_438(iVar0))
				{
					iVar37 = true;
				}
			}
		}
	}
	else
	{
		iVar1 = Global_2391093[iParam1 /*73*/].f_1;
		iVar19 = true;
	}
	if (iVar19)
	{
		StringCopy(&cVar43, "STRING", 24);
		if (iVar2)
		{
			StringCopy(&cVar3, "<C>", 64);
			StringConCat(&cVar3, player::get_player_name(iVar0), 64);
			StringConCat(&cVar3, "</C>", 64);
			if (iVar20 > 0)
			{
				StringCopy(&cVar43, "CELL_MP_279", 24);
			}
		}
		else
		{
			cVar49 = { func_214(iVar1) };
			sVar53 = func_213(&cVar49);
			StringCopy(&cVar3, ui::_get_label_text(sVar53), 64);
		}
		graphics::_begin_text_component(&cVar43);
		ui::add_text_component_substring_player_name(&cVar3);
		if (iVar2 && iVar20 > 0)
		{
			ui::add_text_component_integer(iVar20);
		}
		graphics::_end_text_component();
	}
	else
	{
		graphics::_begin_text_component("CELL_265");
		graphics::_end_text_component();
	}
	StringCopy(&cVar21, func_215(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3, Global_2391093[iParam1 /*73*/].f_72), 16);
	iVar38 = true;
	if (gameplay::is_string_null_or_empty(&(Global_2391093[iParam1 /*73*/].f_25)))
	{
		iVar38 = false;
	}
	iVar26 = func_372(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3);
	if (iVar41)
	{
		iVar27 = func_374(iVar42);
	}
	if (iVar25)
	{
		graphics::_begin_text_component("CELL_262");
		ui::_add_text_component_item_string(&cVar21);
		graphics::_end_text_component();
	}
	else if (!iVar27)
	{
		graphics::_begin_text_component("CELL_259_BET");
		ui::add_text_component_integer(iVar42);
		graphics::_end_text_component();
	}
	else if (!iVar26)
	{
		graphics::_begin_text_component("CELL_259");
		ui::_add_text_component_item_string(&cVar21);
		ui::add_text_component_integer(func_367(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3));
		graphics::_end_text_component();
	}
	else if (iVar19)
	{
		iVar54 = Global_2391093[iParam1 /*73*/].f_66;
		iVar55 = Global_2391093[iParam1 /*73*/].f_67;
		iVar56 = false;
		if (iVar54 == iVar55)
		{
			iVar56 = true;
		}
		StringCopy(&cVar57, "CELL_MP_304_PP", 24);
		if (iVar28)
		{
			if (iVar37)
			{
				StringCopy(&cVar57, "CELL_MP_305", 24);
			}
			else if (iVar41)
			{
				StringCopy(&cVar57, "CELL_MP_H2H_M", 24);
			}
			else
			{
				StringCopy(&cVar57, "CELL_MP_303_TU", 24);
			}
		}
		else if (iVar56)
		{
			StringCopy(&cVar57, "CELL_MP_304_P", 24);
		}
		else
		{
			StringCopy(&cVar57, "CELL_MP_304_PP", 24);
		}
		iVar63 = 0;
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			vVar64 = { func_333(player::player_id()) };
			iVar63 = system::round(gameplay::get_distance_between_coords(vVar64, Global_2391093[iParam1 /*73*/].f_6, 1));
		}
		if (iVar37)
		{
			graphics::_begin_text_component(&cVar57);
			ui::add_text_component_integer(iVar40);
			ui::_0x5F68520888E69014(&cVar29);
			graphics::_end_text_component();
		}
		else if (iVar41)
		{
			graphics::_begin_text_component(&cVar57);
			ui::add_text_component_integer(iVar40);
			ui::add_text_component_integer(iVar42);
			ui::_0x5F68520888E69014(&cVar29);
			graphics::_end_text_component();
		}
		else if (iVar28)
		{
			graphics::_begin_text_component(&cVar57);
			ui::_0x5F68520888E69014(&cVar29);
			ui::add_text_component_integer(iVar63);
			ui::add_text_component_integer(iVar39);
			ui::add_text_component_integer(iVar40);
			graphics::_end_text_component();
		}
		else
		{
			graphics::_begin_text_component(&cVar57);
			if (iVar38)
			{
				ui::_0x5F68520888E69014(&(Global_2391093[iParam1 /*73*/].f_25));
			}
			else
			{
				ui::_add_text_component_item_string(&cVar21);
			}
			ui::add_text_component_integer(iVar63);
			ui::add_text_component_integer(iVar54);
			if (!iVar56)
			{
				ui::add_text_component_integer(iVar55);
			}
			ui::_0x5F68520888E69014(func_433(gameplay::get_hash_key(&(Global_2391093[iParam1 /*73*/].f_58)), Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3, Global_2391093[iParam1 /*73*/].f_71, Global_2391093[iParam1 /*73*/].f_64, Global_2391093[iParam1 /*73*/].f_65));
			graphics::_0xAE4E8157D9ECF087();
		}
	}
	else
	{
		graphics::_begin_text_component(&cVar21);
		graphics::_end_text_component();
	}
	func_427(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3, Global_2391093[iParam1 /*73*/].f_64, Global_2391093[iParam1 /*73*/].f_65);
	graphics::_pop_scaleform_movie_function_void();
}

int func_438(int iParam0)//Position - 0x27802
{
	return gameplay::is_bit_set(Global_1587523[iParam0 /*444*/].f_13.f_1, 1);
}

int func_439(int iParam0)//Position - 0x2781C
{
	return gameplay::is_bit_set(Global_1587523[iParam0 /*444*/].f_13.f_1, 3);
}

int func_440(int iParam0)//Position - 0x27836
{
	return gameplay::is_bit_set(Global_1587523[iParam0 /*444*/].f_13.f_1, 2);
}

void func_441(int iParam0, int iParam1)//Position - 0x27850
{
	char cVar0[64];
	char cVar16[16];
	vector3 vVar20[24];
	int iVar26;
	int iVar27;
	vector3 vVar28;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	
	StringCopy(&cVar0, "", 64);
	StringCopy(&cVar16, "", 16);
	StringCopy(&cVar20, "", 24);
	iVar26 = 0;
	iVar27 = -1;
	vVar28 = { 0f, 0f, 0f };
	iVar31 = false;
	iVar32 = false;
	iVar33 = false;
	iVar34 = false;
	iVar35 = false;
	iVar36 = false;
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(20);
	graphics::_push_scaleform_movie_function_parameter_int(iParam0);
	iVar27 = Global_2391093[iParam1 /*73*/].f_1;
	vVar28 = { Global_1587523[iVar27 /*444*/].f_39.f_10 };
	iVar31 = false;
	if (!gameplay::is_string_null_or_empty(&(Global_2391093[iParam1 /*73*/].f_25)))
	{
		iVar31 = true;
	}
	iVar34 = false;
	if (Global_2391093[iParam1 /*73*/] == 3)
	{
		iVar34 = true;
		if (Global_2391093[iParam1 /*73*/].f_2 == 56)
		{
			iVar35 = true;
		}
	}
	if (iVar35)
	{
		graphics::_begin_text_component("CELL_261");
		graphics::_end_text_component();
	}
	else if (gameplay::is_bit_set(Global_2391093[iParam1 /*73*/].f_5, 1) && Global_2391093[iParam1 /*73*/] == 2)
	{
		graphics::_begin_text_component("TWOSTRINGS");
		ui::_add_text_component_item_string("BB_JOBLIST");
		if (iVar31)
		{
			ui::_0x5F68520888E69014(&(Global_2391093[iParam1 /*73*/].f_25));
		}
		else
		{
			ui::_add_text_component_item_string(zone::get_name_of_zone(vVar28));
		}
		graphics::_end_text_component();
	}
	else
	{
		graphics::_begin_text_component("STRING");
		if (iVar31)
		{
			ui::_0x5F68520888E69014(&(Global_2391093[iParam1 /*73*/].f_25));
		}
		else
		{
			ui::_add_text_component_item_string(zone::get_name_of_zone(vVar28));
		}
		graphics::_end_text_component();
	}
	StringCopy(&cVar16, func_215(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3, Global_2391093[iParam1 /*73*/].f_72), 16);
	iVar36 = true;
	if (Global_2391093[iParam1 /*73*/] == 2)
	{
		iVar36 = func_372(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3);
	}
	iVar32 = false;
	iVar33 = false;
	if (!iVar36)
	{
		graphics::_begin_text_component("CELL_259");
		ui::_add_text_component_item_string(&cVar16);
		ui::add_text_component_integer(func_367(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3));
		graphics::_end_text_component();
	}
	else
	{
		if (!iVar34)
		{
			iVar26 = Global_2391093[iParam1 /*73*/].f_4;
			switch (iVar26)
			{
				case 63:
				case 61:
				case 62:
					iVar33 = true;
					break;
				
				case 40:
					break;
				
				default:
					if (iVar26 >= 0 && iVar26 < 32)
					{
						iVar32 = true;
					}
					break;
				}
		}
		if (iVar33)
		{
			graphics::_begin_text_component("TWOSTRINGS");
			ui::_add_text_component_item_string("CELL_266");
			ui::_add_text_component_item_string(&cVar16);
			graphics::_end_text_component();
		}
		else
		{
			if (iVar32)
			{
				iVar37 = player::int_to_playerindex(iVar26);
				if (func_10(iVar37, 0, 1))
				{
					StringCopy(&cVar0, player::get_player_name(iVar37), 64);
					graphics::_begin_text_component("TWOSTRINGS");
					ui::add_text_component_substring_player_name(&cVar0);
					ui::_add_text_component_item_string(&cVar16);
					graphics::_end_text_component();
				}
				else
				{
					iVar32 = false;
				}
			}
			if (!iVar32)
			{
				if (iVar34)
				{
					if (iVar35)
					{
						StringCopy(&cVar20, "STRING", 24);
					}
					else
					{
						StringCopy(&cVar20, "TWOSTRINGS", 24);
					}
					graphics::_begin_text_component(&cVar20);
					if (!iVar35)
					{
						ui::_add_text_component_item_string("CELL_261");
					}
					ui::_add_text_component_item_string(&cVar16);
					graphics::_end_text_component();
				}
				else
				{
					graphics::_begin_text_component(&cVar16);
					graphics::_end_text_component();
				}
			}
		}
	}
	func_427(Global_2391093[iParam1 /*73*/].f_2, Global_2391093[iParam1 /*73*/].f_3, Global_2391093[iParam1 /*73*/].f_64, Global_2391093[iParam1 /*73*/].f_65);
	graphics::_pop_scaleform_movie_function_void();
}

void func_442()//Position - 0x27B5B
{
	char cVar0[16];
	int iVar4;
	var uVar5;
	char* sVar21;
	
	if (Global_1347404.f_1)
	{
		func_424();
		return;
	}
	StringCopy(&cVar0, "", 16);
	iVar4 = 0;
	MemCopy(&uVar5, {Global_101154.f_32575[Global_1347404.f_2 /*29*/].f_3}, 16);
	graphics::_push_scaleform_movie_function(Global_14394, "SET_DATA_SLOT");
	graphics::_push_scaleform_movie_function_parameter_int(20);
	graphics::_push_scaleform_movie_function_parameter_int(iVar4);
	graphics::_begin_text_component(&uVar5);
	graphics::_end_text_component();
	sVar21 = "CELL_268";
	StringCopy(&cVar0, func_215(Global_1347404.f_3, -1, -1), 16);
	graphics::_begin_text_component(sVar21);
	ui::_add_text_component_item_string(&cVar0);
	graphics::_end_text_component();
	graphics::_pop_scaleform_movie_function_void();
}

bool func_443(int iParam0)//Position - 0x27BE2
{
	if (!Global_16772)
	{
		return false;
	}
	Global_16772 = 0;
	if (Global_1347371 == 0)
	{
		return false;
	}
	switch (Global_2391093[iParam0 /*73*/])
	{
		case 0:
			return false;
		
		case 1:
			return false;
		
		case 2:
		case 3:
			return false;
		
		case 4:
			if (!func_372(Global_2391093[iParam0 /*73*/].f_2, Global_2391093[iParam0 /*73*/].f_3))
			{
				return false;
			}
			if (gameplay::is_bit_set(Global_2391093[iParam0 /*73*/].f_5, 3))
			{
				return false;
			}
			func_325();
			break;
		
		case 5:
			if (network::network_is_game_in_progress())
			{
				if (!func_372(Global_2391093[iParam0 /*73*/].f_2, Global_2391093[iParam0 /*73*/].f_3))
				{
					return false;
				}
			}
			if (gameplay::is_bit_set(Global_2391093[iParam0 /*73*/].f_5, 3))
			{
				return false;
			}
			func_271();
			break;
		
		case 6:
			if (Global_2391093[iParam0 /*73*/].f_2 == 117)
			{
				if (player::get_player_wanted_level(player::player_id()) > 0)
				{
					if (!func_359())
					{
						return false;
					}
				}
			}
			if (gameplay::is_bit_set(Global_2391093[iParam0 /*73*/].f_5, 3))
			{
				return false;
			}
			func_250();
			break;
		
		default:
			return false;
	}
	Global_14413.f_1 = 8;
	return true;
}

bool func_444()//Position - 0x27D19
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	struct<878> Var6;
	int iVar884;
	int iVar885;
	int iVar886;
	
	iVar0 = true;
	iVar1 = 0;
	iVar2 = 0;
	iVar3 = 0;
	iVar4 = 0;
	iVar5 = false;
	if (!network::network_is_game_in_progress() || func_22() == 0)
	{
		iVar5 = true;
	}
	if (!iVar5)
	{
		return false;
	}
	Var6 = 12;
	iVar884 = 0;
	iVar884 = 0;
	while (iVar884 < 12)
	{
		Var6[iVar884 /*73*/] = { Global_2391093[iVar884 /*73*/] };
		iVar884++;
	}
	Var6.f_877 = Global_1347371;
	func_501();
	if (network::network_is_game_in_progress())
	{
		if (!func_500(player::player_id()))
		{
			if (func_499(&Var6))
			{
				return true;
			}
			return false;
		}
	}
	if (func_498())
	{
		if (func_499(&Var6))
		{
			return true;
		}
		return false;
	}
	if (!iVar0)
	{
		iVar885 = func_494();
		if (func_492(iVar885))
		{
			if (func_499(&Var6))
			{
				return true;
			}
			return false;
		}
		if (!iVar885 == -1)
		{
			if (func_499(&Var6))
			{
				return true;
			}
			return false;
		}
		if (func_465())
		{
			if (func_499(&Var6))
			{
				return true;
			}
			return false;
		}
	}
	if (iVar0)
	{
		if (network::network_is_game_in_progress())
		{
			if (!func_460())
			{
				if (func_499(&Var6))
				{
					return true;
				}
				return false;
			}
		}
		if (network::network_is_game_in_progress())
		{
			iVar886 = true;
			if (func_453(&iVar886))
			{
				if (iVar886)
				{
					func_452(-1);
				}
				if (func_499(&Var6))
				{
					return true;
				}
				return false;
			}
		}
		if (func_451())
		{
			if (func_499(&Var6))
			{
				return true;
			}
			return false;
		}
		if (network::network_is_game_in_progress())
		{
			iVar2 = func_452(-1);
			iVar3 = func_449(-1);
			iVar4 = func_447(-1);
			func_445();
		}
		else
		{
			iVar4 = func_447(-1);
		}
		if (((iVar2 || iVar1) || iVar3) || iVar4)
		{
			if (func_499(&Var6))
			{
				return true;
			}
			return false;
		}
	}
	if (func_499(&Var6))
	{
		return true;
	}
	return false;
}

void func_445()//Position - 0x27F05
{
	int iVar0;
	int iVar1;
	
	iVar0 = true;
	while (iVar0)
	{
		iVar0 = false;
		iVar1 = 0;
		iVar1 = 0;
		while (iVar1 <= 11)
		{
			if (Global_2391093[iVar1 /*73*/].f_70 != -1 && Global_2391093[iVar1 /*73*/] != 0)
			{
				if (((iVar1 - 1) > 0 && Global_2391093[iVar1 /*73*/].f_70 > Global_2391093[(iVar1 - 1) /*73*/].f_70) && Global_2391093[(iVar1 - 1) /*73*/] != 0)
				{
					func_446(iVar1, (iVar1 - 1));
					iVar0 = true;
				}
				else if ((iVar1 + 1 < 12 && Global_2391093[iVar1 /*73*/].f_70 < Global_2391093[iVar1 + 1 /*73*/].f_70) && Global_2391093[iVar1 + 1 /*73*/] != 0)
				{
					func_446(iVar1, iVar1 + 1);
					iVar0 = true;
				}
			}
			iVar1++;
		}
	}
}

void func_446(int iParam0, int iParam1)//Position - 0x27FD9
{
	struct<73> Var0;
	
	Var0 = { Global_2391093[iParam0 /*73*/] };
	Global_2391093[iParam0 /*73*/] = { Global_2391093[iParam1 /*73*/] };
	Global_2391093[iParam1 /*73*/] = { Var0 };
}

int func_447(int iParam0)//Position - 0x2801A
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	iVar1 = 0;
	iVar2 = false;
	iVar1 = 0;
	while (iVar1 < Global_1347400)
	{
		if (Global_1347371 >= 12)
		{
			return iVar0;
		}
		if (Global_2392939[iVar1 /*98*/])
		{
			iVar2 = false;
			if (iParam0 == -1)
			{
				iVar2 = true;
			}
			if (!iVar2)
			{
				if (iParam0 == Global_2392939[iVar1 /*98*/].f_91)
				{
					iVar2 = true;
				}
			}
			if (iVar2)
			{
				Global_2391093[Global_1347371 /*73*/].f_5 = 0;
				Global_2391093[Global_1347371 /*73*/] = 5;
				Global_2391093[Global_1347371 /*73*/].f_2 = Global_2392939[iVar1 /*98*/].f_49;
				Global_2391093[Global_1347371 /*73*/].f_3 = Global_2392939[iVar1 /*98*/].f_50;
				Global_2391093[Global_1347371 /*73*/].f_4 = Global_2392939[iVar1 /*98*/].f_48;
				Global_2391093[Global_1347371 /*73*/].f_9 = { func_448(iVar1) };
				Global_2391093[Global_1347371 /*73*/].f_25 = { Global_2392939[iVar1 /*98*/].f_56 };
				Global_2391093[Global_1347371 /*73*/].f_41 = { Global_2392939[iVar1 /*98*/].f_72 };
				Global_2391093[Global_1347371 /*73*/].f_57 = Global_2392939[iVar1 /*98*/].f_51;
				Global_2391093[Global_1347371 /*73*/].f_1 = Global_2392939[iVar1 /*98*/].f_90;
				Global_2391093[Global_1347371 /*73*/].f_58 = { Global_2392939[iVar1 /*98*/].f_6 };
				Global_2391093[Global_1347371 /*73*/].f_64 = Global_2392939[iVar1 /*98*/].f_12;
				Global_2391093[Global_1347371 /*73*/].f_65 = Global_2392939[iVar1 /*98*/].f_13;
				Global_2391093[Global_1347371 /*73*/].f_70 = Global_2392939[iVar1 /*98*/].f_93;
				Global_2391093[Global_1347371 /*73*/].f_71 = Global_2392939[iVar1 /*98*/].f_94;
				if (Global_2392939[iVar1 /*98*/].f_88 >= 10000 && !Global_2392939[iVar1 /*98*/].f_88 >= 100000)
				{
					Global_2391093[Global_1347371 /*73*/].f_68 = (Global_2392939[iVar1 /*98*/].f_88 - 10000);
				}
				else
				{
					Global_2391093[Global_1347371 /*73*/].f_68 = -1;
				}
				if (!func_382(iVar1))
				{
					gameplay::set_bit(&(Global_2391093[Global_1347371 /*73*/].f_5), 3);
				}
				gameplay::set_bit(&(Global_2391093[Global_1347371 /*73*/].f_5), 4);
				Global_2391093[Global_1347371 /*73*/].f_69 = 0;
				Global_1347371++;
				iVar0 = 1;
			}
		}
		iVar1++;
	}
	return iVar0;
}

struct<16> func_448(int iParam0)//Position - 0x2825F
{
	struct<16> Var0;
	
	if (gameplay::is_durango_version())
	{
		if (!gameplay::is_string_null_or_empty(&(Global_2392939[iParam0 /*98*/].f_30)))
		{
			return Global_2392939[iParam0 /*98*/].f_30;
		}
	}
	Var0 = { Global_2392939[iParam0 /*98*/].f_14 };
	return Var0;
}

int func_449(int iParam0)//Position - 0x282A7
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	iVar1 = 0;
	iVar2 = false;
	iVar1 = 0;
	while (iVar1 < Global_1347372)
	{
		if (Global_1347371 >= 12)
		{
			return iVar0;
		}
		if (Global_2391978[iVar1 /*80*/])
		{
			iVar2 = false;
			if (iParam0 == -1)
			{
				iVar2 = true;
			}
			if (!iVar2)
			{
				if (iParam0 == Global_2391978[iVar1 /*80*/].f_53)
				{
					iVar2 = true;
				}
			}
			if (iVar2)
			{
				if (!func_450(iVar1))
				{
					Global_2391093[Global_1347371 /*73*/].f_5 = 0;
					Global_2391093[Global_1347371 /*73*/] = 4;
					if (Global_2391978[iVar1 /*80*/].f_10)
					{
						Global_2391093[Global_1347371 /*73*/].f_1 = Global_2391978[iVar1 /*80*/].f_8;
						gameplay::set_bit(&(Global_2391093[Global_1347371 /*73*/].f_5), 4);
					}
					else
					{
						Global_2391093[Global_1347371 /*73*/].f_1 = Global_2391978[iVar1 /*80*/].f_9;
					}
					Global_2391093[Global_1347371 /*73*/].f_2 = Global_2391978[iVar1 /*80*/].f_12;
					Global_2391093[Global_1347371 /*73*/].f_3 = Global_2391978[iVar1 /*80*/].f_13;
					Global_2391093[Global_1347371 /*73*/].f_4 = Global_2391978[iVar1 /*80*/].f_11;
					Global_2391093[Global_1347371 /*73*/].f_6 = { Global_2391978[iVar1 /*80*/].f_5 };
					Global_2391093[Global_1347371 /*73*/].f_25 = { Global_2391978[iVar1 /*80*/].f_20 };
					Global_2391093[Global_1347371 /*73*/].f_41 = { Global_2391978[iVar1 /*80*/].f_36 };
					Global_2391093[Global_1347371 /*73*/].f_57 = Global_2391978[iVar1 /*80*/].f_14;
					Global_2391093[Global_1347371 /*73*/].f_64 = Global_2391978[iVar1 /*80*/].f_61;
					Global_2391093[Global_1347371 /*73*/].f_65 = Global_2391978[iVar1 /*80*/].f_62;
					Global_2391093[Global_1347371 /*73*/].f_58 = { Global_2391978[iVar1 /*80*/].f_55 };
					Global_2391093[Global_1347371 /*73*/].f_66 = Global_2391978[iVar1 /*80*/].f_67;
					Global_2391093[Global_1347371 /*73*/].f_67 = Global_2391978[iVar1 /*80*/].f_68;
					Global_2391093[Global_1347371 /*73*/].f_68 = Global_2391978[iVar1 /*80*/].f_69;
					Global_2391093[Global_1347371 /*73*/].f_69 = Global_2391978[iVar1 /*80*/].f_71;
					Global_2391093[Global_1347371 /*73*/].f_70 = Global_2391978[iVar1 /*80*/].f_72;
					Global_2391093[Global_1347371 /*73*/].f_71 = Global_2391978[iVar1 /*80*/].f_73;
					if (!func_403(iVar1))
					{
						gameplay::set_bit(&(Global_2391093[Global_1347371 /*73*/].f_5), 3);
					}
					Global_1347371++;
					iVar0 = 1;
				}
			}
		}
		iVar1++;
	}
	return iVar0;
}

var func_450(int iParam0)//Position - 0x2851C
{
	return Global_2391978[iParam0 /*80*/].f_2;
}

bool func_451()//Position - 0x2852E
{
	if (!Global_16772)
	{
		return false;
	}
	if (Global_16770 != 2)
	{
		return false;
	}
	if (ui::_get_current_notification() < 0)
	{
		return false;
	}
	if (func_449(Global_16769))
	{
		return true;
	}
	if (func_447(Global_16769))
	{
		return true;
	}
	if (func_452(Global_16769))
	{
		return true;
	}
	return false;
}

int func_452(int iParam0)//Position - 0x28583
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	iVar1 = false;
	iVar2 = 0;
	iVar2 = 0;
	while (iVar2 < Global_1347402)
	{
		if (Global_1347371 >= 12)
		{
			return iVar0;
		}
		if (Global_2394116[iVar2 /*44*/])
		{
			iVar1 = false;
			if (iParam0 == -1)
			{
				iVar1 = true;
			}
			if (!iVar1)
			{
				if (iParam0 == Global_2392939[iVar2 /*98*/].f_91)
				{
					iVar1 = true;
				}
			}
			if (iVar1)
			{
				if (Global_2394116[iVar2 /*44*/].f_7 == 123)
				{
					if (!func_363(iVar2))
					{
						iVar1 = false;
					}
				}
			}
			if (iVar1)
			{
				Global_2391093[Global_1347371 /*73*/].f_5 = 0;
				Global_2391093[Global_1347371 /*73*/] = 6;
				if (Global_2394116[iVar2 /*44*/].f_6)
				{
					Global_2391093[Global_1347371 /*73*/].f_1 = Global_2394116[iVar2 /*44*/].f_4;
					gameplay::set_bit(&(Global_2391093[Global_1347371 /*73*/].f_5), 4);
				}
				else
				{
					Global_2391093[Global_1347371 /*73*/].f_1 = Global_2394116[iVar2 /*44*/].f_5;
				}
				Global_2391093[Global_1347371 /*73*/].f_2 = Global_2394116[iVar2 /*44*/].f_7;
				Global_2391093[Global_1347371 /*73*/].f_3 = Global_2394116[iVar2 /*44*/].f_8;
				Global_2391093[Global_1347371 /*73*/].f_25 = { Global_2394116[iVar2 /*44*/].f_9 };
				StringCopy(&(Global_2391093[Global_1347371 /*73*/].f_58), "", 24);
				Global_2391093[Global_1347371 /*73*/].f_68 = -1;
				Global_2391093[Global_1347371 /*73*/].f_69 = 0;
				if (!func_363(iVar2))
				{
					gameplay::set_bit(&(Global_2391093[Global_1347371 /*73*/].f_5), 3);
				}
				if (Global_2394116[iVar2 /*44*/].f_38)
				{
					gameplay::set_bit(&(Global_2391093[Global_1347371 /*73*/].f_5), 5);
				}
				MemCopy(&(Global_2391093[Global_1347371 /*73*/].f_41), {Global_2394116[iVar2 /*44*/].f_26}, 16);
				Global_2391093[Global_1347371 /*73*/].f_57 = Global_2394116[iVar2 /*44*/].f_34;
				Global_2391093[Global_1347371 /*73*/].f_4 = Global_2394116[iVar2 /*44*/].f_35;
				Global_2391093[Global_1347371 /*73*/].f_70 = Global_2394116[iVar2 /*44*/].f_39;
				Global_2391093[Global_1347371 /*73*/].f_72 = Global_2394116[iVar2 /*44*/].f_43;
				Global_1347371++;
				iVar0 = 1;
			}
		}
		iVar2++;
	}
	return iVar0;
}

bool func_453(int iParam0)//Position - 0x287A1
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	*iParam0 = 1;
	if (((!func_19(player::player_id(), 1) && !func_458()) && !func_402(player::player_id(), 1)) && !func_402(player::player_id(), 21))
	{
		return false;
	}
	if (!func_10(player::player_id(), 1, 1))
	{
		return true;
	}
	if (!func_500(player::player_id()))
	{
		return true;
	}
	iVar0 = player::player_id();
	iVar1 = Global_1587523[iVar0 /*444*/];
	iVar2 = player::player_id();
	if (!func_457(iVar1))
	{
		return true;
	}
	if (func_402(player::player_id(), 21))
	{
		func_454(1, iVar2, iVar0, 134);
		*iParam0 = 0;
		return true;
	}
	func_454(1, iVar2, iVar0, iVar1);
	return true;
}

bool func_454(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2885C
{
	int iVar0;
	var uVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	iVar0 = Global_1587523[iParam2 /*444*/].f_39.f_2;
	uVar1 = Global_1587523[iParam2 /*444*/].f_13;
	if (iParam3 == 134)
	{
		iVar0 = 40;
	}
	iParam1 = iParam1;
	iVar2 = false;
	iVar3 = iParam0 == 3;
	if (iVar3)
	{
		if (func_456(iParam2))
		{
			return false;
		}
	}
	else if (func_455(iParam2, iParam3, iVar0, iVar2))
	{
		return false;
	}
	if (Global_1347371 >= 12)
	{
		return false;
	}
	if (iVar3)
	{
		Global_2391093[Global_1347371 /*73*/] = iParam0;
		Global_2391093[Global_1347371 /*73*/].f_1 = iParam2;
		Global_2391093[Global_1347371 /*73*/].f_2 = iParam3;
		Global_2391093[Global_1347371 /*73*/].f_3 = -1;
		Global_2391093[Global_1347371 /*73*/].f_4 = uVar1;
		Global_2391093[Global_1347371 /*73*/].f_25 = { Global_1601732[iParam2 /*16*/] };
		if (iParam3 == 56)
		{
			gameplay::set_bit(&(Global_2391093[Global_1347371 /*73*/].f_5), 2);
		}
	}
	else
	{
		Global_2391093[Global_1347371 /*73*/] = iParam0;
		Global_2391093[Global_1347371 /*73*/].f_1 = iParam2;
		Global_2391093[Global_1347371 /*73*/].f_2 = iParam3;
		Global_2391093[Global_1347371 /*73*/].f_4 = iVar0;
		Global_2391093[Global_1347371 /*73*/].f_57 = Global_2395196.f_2;
		iVar4 = -1;
		if (iParam0 == 1)
		{
			if (func_458())
			{
				if (Global_1587523[iParam2 /*444*/] == 0)
				{
					iVar4 = Global_1617379.f_2;
				}
			}
		}
		Global_2391093[Global_1347371 /*73*/].f_3 = iVar4;
		if (iVar0 != 40 && !gameplay::is_string_null_or_empty(&(Global_2391053.f_4.f_3)))
		{
			Global_2391093[Global_1347371 /*73*/].f_25 = { func_346(&(Global_2391053.f_4), 0) };
		}
		if (iVar2)
		{
			gameplay::set_bit(&(Global_2391093[Global_1347371 /*73*/].f_5), 1);
		}
		if (gameplay::is_bit_set(Global_1587523[iParam2 /*444*/].f_39.f_18, 7))
		{
			gameplay::set_bit(&(Global_2391093[Global_1347371 /*73*/].f_5), 0);
		}
	}
	Global_1347371++;
	return true;
}

bool func_455(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0x28A40
{
	int iVar0;
	int iVar1;
	vector3 vVar2;
	vector3 vVar5;
	
	iVar0 = 0;
	iVar1 = -1;
	vVar2 = { Global_1587523[uParam0 /*444*/].f_39.f_10 };
	iVar0 = 0;
	while (iVar0 < Global_1347371)
	{
		iVar1 = Global_2391093[iVar0 /*73*/].f_1;
		if (Global_2391093[iVar0 /*73*/].f_2 == iParam1 && Global_2391093[iVar0 /*73*/].f_4 == iParam2)
		{
			vVar5 = { Global_1587523[iVar1 /*444*/].f_39.f_10 };
			if (gameplay::get_distance_between_coords(vVar2, vVar5, 1) <= 0.3f)
			{
				if (iParam3)
				{
					gameplay::set_bit(&(Global_2391093[iVar0 /*73*/].f_5), 1);
				}
				if (gameplay::is_bit_set(Global_1587523[uParam0 /*444*/].f_39.f_18, 7))
				{
					gameplay::set_bit(&(Global_2391093[iVar0 /*73*/].f_5), 0);
				}
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

bool func_456(var uParam0)//Position - 0x28B0A
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	iVar1 = Global_1587523[uParam0 /*444*/].f_13;
	iVar2 = 0;
	iVar0 = 0;
	while (iVar0 < Global_1347371)
	{
		iVar2 = Global_2391093[iVar0 /*73*/].f_4;
		if (iVar1 == iVar2)
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

bool func_457(int iParam0)//Position - 0x28B52
{
	switch (iParam0)
	{
		case 6:
			return false;
		
		default:
	}
	return true;
}

bool func_458()//Position - 0x28B6C
{
	if (func_459())
	{
		return false;
	}
	return true;
}

int func_459()//Position - 0x28B80
{
	return Global_2391053 == 0;
}

int func_460()//Position - 0x28B8E
{
	if (Global_1312446)
	{
		return 1;
	}
	if (func_464())
	{
		return 1;
	}
	if (func_463())
	{
		return 1;
	}
	return func_461(124, -1);
}

int func_461(int iParam0, int iParam1)//Position - 0x28BBE
{
	int iVar0;
	var uVar1;
	
	iVar0 = Global_2490231[iParam0 /*5*/][func_462(iParam1)];
	if (stats::stat_get_bool(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0;
}

int func_462(var uParam0)//Position - 0x28BEA
{
	int iVar0;
	int iVar1;
	
	iVar0 = uParam0;
	if (iVar0 == -1)
	{
		iVar1 = func_240();
		if (iVar1 > -1)
		{
			Global_2469052 = 0;
			iVar0 = iVar1;
		}
		else
		{
			iVar0 = 0;
			Global_2469052 = 1;
		}
	}
	return iVar0;
}

var func_463()//Position - 0x28C1E
{
	return Global_1315901;
}

var func_464()//Position - 0x28C2A
{
	return Global_1315903;
}

int func_465()//Position - 0x28C36
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	iVar0 = 0;
	iVar1 = 0;
	iVar2 = 0;
	iVar3 = 0;
	iVar4 = player::get_player_team(player::player_id());
	iVar5 = 5;
	iVar6 = false;
	iVar3 = 0;
	while (iVar3 < 16)
	{
		iVar5 = func_491(iVar3);
		iVar6 = false;
		switch (iVar5)
		{
			case 0:
			case 1:
				iVar6 = true;
				break;
			
			case 2:
			case 3:
			case 4:
			case 5:
				iVar6 = false;
				break;
			
			default:
				iVar6 = false;
				break;
		}
		if (iVar6)
		{
			if (!func_490(iVar3, player::player_id()))
			{
				if (func_488(iVar3, iVar4) || func_487(iVar3))
				{
					if (!func_468(iVar3, iVar4))
					{
						iVar0 = func_467(iVar3);
						iVar1 = func_391(iVar3);
						if (func_466(2, iVar1, iVar0))
						{
							iVar2 = 1;
						}
					}
				}
			}
		}
		iVar3++;
	}
	return iVar2;
}

bool func_466(int iParam0, int iParam1, int iParam2)//Position - 0x28D0C
{
	if (Global_1347371 >= 12)
	{
		return false;
	}
	if (iParam2 == 0)
	{
		return false;
	}
	if (iParam1 == 0)
	{
		return false;
	}
	Global_2391093[Global_1347371 /*73*/] = iParam0;
	Global_2391093[Global_1347371 /*73*/].f_2 = iParam2;
	Global_2391093[Global_1347371 /*73*/].f_3 = -1;
	Global_2391093[Global_1347371 /*73*/].f_1 = iParam1;
	Global_1347371++;
	return true;
}

var func_467(int iParam0)//Position - 0x28D75
{
	return Global_2416118[iParam0 /*40*/].f_3;
}

bool func_468(int iParam0, int iParam1)//Position - 0x28D87
{
	var uVar0;
	int iVar1;
	struct<10> Var2;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	int iVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	
	uVar0 = func_467(iParam0);
	iVar1 = func_486(uVar0);
	Var2 = { func_485(iParam0) };
	iVar12 = func_477(&Var2);
	iVar13 = func_471(&Var2, iParam1);
	iVar14 = -1;
	iVar15 = 0;
	iVar16 = 0;
	iVar17 = 0;
	iVar19 = func_470(iParam0);
	iVar20 = func_469(iParam0);
	iVar17 = 0;
	while (iVar17 < 32)
	{
		iVar18 = player::int_to_playerindex(iVar17);
		if (func_10(iVar18, 0, 1))
		{
			if (gameplay::is_bit_set(iVar19, iVar17) || gameplay::is_bit_set(iVar20, iVar17))
			{
				iVar15++;
				if (iVar15 >= iVar12)
				{
					return true;
				}
				if (iVar1)
				{
					iVar14 = player::get_player_team(iVar18);
					if (iVar14 == iParam1)
					{
						iVar16++;
						if (iVar16 >= iVar13)
						{
							return true;
						}
					}
				}
			}
		}
		iVar17++;
	}
	return false;
}

var func_469(var uParam0)//Position - 0x28E4E
{
	return Global_2416118[uParam0 /*40*/].f_31;
}

var func_470(var uParam0)//Position - 0x28E60
{
	return Global_2416118[uParam0 /*40*/].f_30;
}

int func_471(var uParam0, int iParam1)//Position - 0x28E72
{
	if (iParam1 == -1)
	{
		return func_477(uParam0);
	}
	if (func_476(iParam1))
	{
		return func_475(*uParam0);
	}
	if (func_474(iParam1))
	{
		return func_472(*uParam0, iParam1, uParam0->f_1);
	}
	return 0;
}

int func_472(var uParam0, int iParam1, var uParam2)//Position - 0x28EB6
{
	int iVar0;
	
	iVar0 = func_473(uParam0, uParam2);
	if (iVar0 > 4)
	{
		return 4;
	}
	return iVar0;
}

int func_473(var uParam0, var uParam1)//Position - 0x28ED4
{
	return 16;
}

bool func_474(int iParam0)//Position - 0x28EDE
{
	if (iParam0 == -1)
	{
		return false;
	}
	return false;
}

int func_475(var uParam0)//Position - 0x28EF1
{
	return 4;
}

bool func_476(int iParam0)//Position - 0x28EFA
{
	if (iParam0 == -1)
	{
		return false;
	}
	return false;
}

int func_477(var uParam0)//Position - 0x28F0D
{
	if (func_483(player::player_id()))
	{
		return Global_969327.f_7;
	}
	if (func_480(*uParam0, uParam0->f_1))
	{
		return func_479(uParam0);
	}
	return func_478(*uParam0);
}

int func_478(int iParam0)//Position - 0x28F47
{
	switch (iParam0)
	{
		case 3:
			return 2;
		
		case 1:
			return 32;
		
		case 2:
			return 32;
		
		case 32:
			return 32;
		
		case 33:
			return 32;
		
		case 34:
			return 32;
		
		case 35:
			return 32;
		
		case 36:
			return 32;
		
		case 37:
			return 32;
		
		case 38:
			return 32;
		
		case 39:
			return 32;
		
		case 40:
			return 32;
		
		case 41:
			return 32;
		
		case 42:
			return 32;
		
		case 43:
			return 32;
		
		case 44:
			return 32;
		
		case 45:
			return 32;
		
		case 46:
			return 32;
		
		case 47:
			return 32;
		
		case 48:
			return 32;
		
		case 49:
			return 32;
		
		case 50:
			return 4;
		
		case 51:
			return 32;
		
		case 52:
			return 32;
		
		case 53:
			return 32;
		
		case 54:
			return 32;
		
		case 55:
			return 32;
		
		case 56:
			return 32;
		
		case 57:
			return 32;
		
		case 58:
			return 32;
		
		case 59:
			return 32;
		
		case 60:
			return 32;
		
		case 61:
			return 32;
		
		case 62:
			return 32;
		
		case 63:
			return 32;
		
		case 64:
			return 4;
		
		case 65:
			return 32;
		
		case 66:
			return 4;
		
		case 67:
			return 4;
		
		case 68:
			return 32;
		
		case 69:
			return 32;
		
		case 70:
			return 4;
		
		case 71:
			return 32;
		
		case 72:
			return 32;
		
		case 12:
			return 32;
		
		case 4:
			return 16;
		
		case 13:
			return 32;
		
		case 5:
			return 16;
		
		case 6:
			return 2;
		
		case 8:
			return 2;
		
		case 9:
			return 2;
		
		case 7:
			return 16;
		
		case 10:
			return 2;
		
		case 11:
			return 4;
		
		case 15:
			return 32;
		
		case 16:
			return 32;
		
		case 27:
			return 2;
		
		case 25:
			return 2;
		
		case 26:
			return 2;
		
		case 18:
			return 32;
		
		case 28:
			return 32;
		
		case 29:
			return 2;
		
		case 30:
			return 32;
		
		case 31:
			return 32;
		
		case 17:
			return 2;
		
		case 73:
			return 32;
		
		case 74:
			return 32;
		
		case 19:
			return 32;
		
		case 22:
			return 32;
		
		case 23:
			return 32;
		
		case 24:
			return 32;
		
		case 20:
			return 2;
		
		case 0:
			return 0;
		
		case 21:
			return 32;
		
		case 85:
			return 32;
		
		case 86:
			return 32;
		
		case 75:
			return 32;
		
		case 76:
			return 32;
		
		case 80:
			return 32;
		
		case 78:
			return 32;
		
		case 79:
			return 32;
		
		case 83:
			return 32;
		
		case 84:
			return 32;
		
		case 81:
			return 32;
		
		case 82:
			return 32;
		
		case 87:
			return 32;
		
		case 88:
			return 32;
		
		case 89:
			return 32;
		
		case 90:
			return 32;
		
		case 91:
			return 2;
		
		case 96:
			return 1;
		
		case 92:
			return 2;
		
		case 93:
			return 4;
		
		case 94:
			return 2;
		
		case 95:
			return 2;
		
		case 77:
			return 1;
		
		case 97:
			return 2;
		
		case 98:
		case 99:
		case 100:
		case 101:
		case 102:
		case 103:
			return 0;
		
		case 105:
			return 1;
		
		case 104:
			return 4;
		
		default:
	}
	return 0;
}

int func_479(var uParam0)//Position - 0x293A7
{
	int iVar0;
	int iVar1;
	
	iVar0 = 32;
	if (func_347(uParam0))
	{
		return Global_2395256.f_356[uParam0->f_9 /*75*/].f_10.f_58;
	}
	if (func_332(uParam0->f_1))
	{
		if (func_331(uParam0))
		{
			return Global_2398013.f_1.f_58;
		}
		return iVar0;
	}
	iVar1 = func_330(uParam0);
	if (iVar1 == -1)
	{
		return iVar0;
	}
	switch (uParam0->f_2)
	{
		case 63:
			return Global_794608.f_4[iVar1 /*88*/].f_71;
		
		case 62:
			return Global_906487.f_1204[iVar1 /*88*/].f_71;
		
		default:
	}
	if (uParam0->f_2 == player::player_id())
	{
		return Global_949333.f_5[iVar1 /*88*/].f_71;
	}
	else if (uParam0->f_2 < 32)
	{
		return iVar0;
	}
	return iVar0;
}

int func_480(var uParam0, int iParam1)//Position - 0x2946B
{
	return func_481(3, uParam0, iParam1);
}

int func_481(int iParam0, var uParam1, int iParam2)//Position - 0x2947C
{
	int iVar0;
	
	iVar0 = func_482(uParam1, iParam2);
	if (iVar0 == -1)
	{
		return false;
	}
	return gameplay::is_bit_set(Global_1332906[iVar0 /*6*/], iParam0);
}

int func_482(var uParam0, int iParam1)//Position - 0x294A6
{
	if (iParam1 == -1)
	{
		iParam1 = 0;
	}
	else if (iParam1 < 0)
	{
		return Global_1333688[uParam0 /*6*/].f_2;
	}
	else if (iParam1 >= Global_1333688[uParam0 /*6*/].f_1)
	{
		return Global_1333688[uParam0 /*6*/].f_2;
	}
	return (Global_1333688[uParam0 /*6*/].f_2 + iParam1);
}

int func_483(int iParam0)//Position - 0x294F9
{
	return func_484(iParam0);
}

int func_484(var uParam0)//Position - 0x29507
{
	return gameplay::is_bit_set(Global_1587523[uParam0 /*444*/].f_13.f_1, 0);
}

struct<10> func_485(var uParam0)//Position - 0x29521
{
	return Global_2416118[uParam0 /*40*/].f_3;
}

var func_486(var uParam0)//Position - 0x29536
{
	return Global_1333688[uParam0 /*6*/];
}

int func_487(int iParam0)//Position - 0x29546
{
	return gameplay::is_bit_set(Global_2416118[iParam0 /*40*/].f_39, 2);
}

int func_488(int iParam0, int iParam1)//Position - 0x2955D
{
	int iVar0;
	
	iVar0 = func_489(iParam0);
	return gameplay::is_bit_set(iVar0, iParam1);
}

var func_489(var uParam0)//Position - 0x29575
{
	return Global_2416118[uParam0 /*40*/].f_29;
}

int func_490(int iParam0, int iParam1)//Position - 0x29587
{
	int iVar0;
	
	iVar0 = iParam1;
	return gameplay::is_bit_set(Global_2416118[iParam0 /*40*/].f_37, iVar0);
}

var func_491(int iParam0)//Position - 0x295A3
{
	return Global_2416118[iParam0 /*40*/];
}

bool func_492(int iParam0)//Position - 0x295B3
{
	if (iParam0 == -1)
	{
		return false;
	}
	if (func_493(iParam0, player::player_id()))
	{
		return true;
	}
	return false;
}

int func_493(int iParam0, int iParam1)//Position - 0x295D7
{
	int iVar0;
	
	iVar0 = iParam1;
	return gameplay::is_bit_set(Global_2416118[iParam0 /*40*/].f_30, iVar0);
}

int func_494()//Position - 0x295F3
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 16)
	{
		if (!func_389(iVar0))
		{
			if (((func_497(iVar0, player::player_id()) || func_493(iVar0, player::player_id())) || func_496(iVar0, player::player_id())) || func_495(iVar0, player::player_id()))
			{
				return iVar0;
			}
		}
		iVar0++;
	}
	return -1;
}

int func_495(int iParam0, int iParam1)//Position - 0x2965E
{
	int iVar0;
	
	iVar0 = iParam1;
	return gameplay::is_bit_set(Global_2416118[iParam0 /*40*/].f_32, iVar0);
}

int func_496(int iParam0, int iParam1)//Position - 0x2967A
{
	int iVar0;
	
	iVar0 = iParam1;
	return gameplay::is_bit_set(Global_2416118[iParam0 /*40*/].f_31, iVar0);
}

int func_497(int iParam0, int iParam1)//Position - 0x29696
{
	int iVar0;
	
	iVar0 = iParam1;
	return gameplay::is_bit_set(Global_2416118[iParam0 /*40*/].f_36, iVar0);
}

bool func_498()//Position - 0x296B2
{
	return false;
}

bool func_499(var uParam0)//Position - 0x296BB
{
	int iVar0;
	
	if (!uParam0->f_877 == Global_1347371)
	{
		return true;
	}
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 12)
	{
		if (!(uParam0[iVar0 /*73*/])->f_1 == Global_2391093[iVar0 /*73*/].f_1 || !(uParam0[iVar0 /*73*/])->f_5 == Global_2391093[iVar0 /*73*/].f_5)
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_500(int iParam0)//Position - 0x29721
{
	if (iParam0 == -1)
	{
		return false;
	}
	else
	{
		return gameplay::is_bit_set(Global_2428492.f_1, iParam0);
	}
	return true;
}

void func_501()//Position - 0x29746
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 12)
	{
		Global_2391093[iVar0 /*73*/] = 0;
		Global_2391093[iVar0 /*73*/].f_1 = 0;
		Global_2391093[iVar0 /*73*/].f_2 = 0;
		Global_2391093[iVar0 /*73*/].f_3 = -1;
		Global_2391093[iVar0 /*73*/].f_4 = -1;
		Global_2391093[iVar0 /*73*/].f_5 = 0;
		Global_2391093[iVar0 /*73*/].f_6 = { 0f, 0f, 0f };
		StringCopy(&(Global_2391093[iVar0 /*73*/].f_9), "", 64);
		StringCopy(&(Global_2391093[iVar0 /*73*/].f_25), "", 64);
		StringCopy(&(Global_2391093[iVar0 /*73*/].f_41), "", 64);
		Global_2391093[iVar0 /*73*/].f_57 = 0;
		Global_2391093[iVar0 /*73*/].f_66 = 0;
		Global_2391093[iVar0 /*73*/].f_67 = 0;
		Global_2391093[iVar0 /*73*/].f_68 = -1;
		Global_2391093[iVar0 /*73*/].f_69 = 0;
		Global_2391093[iVar0 /*73*/].f_70 = -1;
		Global_2391093[iVar0 /*73*/].f_71 = 0;
		Global_2391093[iVar0 /*73*/].f_72 = 0;
		iVar0++;
	}
	Global_1347371 = 0;
}

void func_502(var uParam0)//Position - 0x2983D
{
	*uParam0 = 0;
}

