#region Local Var
	var uLocal_0 = 0;
	var uLocal_1 = 0;
	int iLocal_2 = 0;
	int iLocal_3 = 0;
	int iLocal_4 = 0;
	int iLocal_5 = 0;
	int iLocal_6 = 0;
	int iLocal_7 = 0;
	int iLocal_8 = 0;
	int iLocal_9 = 0;
	int iLocal_10 = 0;
	int iLocal_11 = 0;
	var uLocal_12 = 0;
	var uLocal_13 = 0;
	float fLocal_14 = 0f;
	var uLocal_15 = 0;
	var uLocal_16 = 0;
	int iLocal_17 = 0;
	var uLocal_18 = 0;
	var uLocal_19 = 0;
	char* sLocal_20 = NULL;
	float fLocal_21 = 0f;
	var uLocal_22 = 0;
	var uLocal_23 = 0;
	var uLocal_24 = 0;
	float fLocal_25 = 0f;
	float fLocal_26 = 0f;
	var uLocal_27 = 0;
	var uLocal_28 = 0;
	var uLocal_29 = 0;
	var uLocal_30 = 0;
	var uLocal_31 = 0;
	var uLocal_32 = 0;
	var uLocal_33 = 0;
	var uLocal_34 = 0;
	var uLocal_35 = 0;
	var uLocal_36 = 0;
	var uLocal_37 = 0;
	var uLocal_38 = 0;
	var uLocal_39 = 0;
	var uLocal_40 = 0;
	var uLocal_41 = 0;
	var uLocal_42 = 0;
	var uLocal_43 = 0;
	var uLocal_44 = 0;
	var uLocal_45 = 0;
	char* sLocal_46 = NULL;
	int iLocal_47 = 0;
	int iLocal_48 = 0;
	int iLocal_49 = 0;
	vector3 vLocal_50[20] = {{ 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f } };
	int iLocal_111 = 0;
	int iLocal_112 = 0;
	int iLocal_113 = 0;
	int iLocal_114 = 0;
	struct<6> Local_115 = { 0, 0, 0, 0, 0, 0 } ;
	struct<6> Local_121 = { 0, 0, 0, 0, 0, 0 } ;
	vector3 vLocal_127[24] = "";
	var uLocal_130 = 0;
	var uLocal_131 = 0;
	var uLocal_132 = 0;
	vector3 vLocal_133 = { 0f, 0f, 0f };
	var uLocal_136 = 0;
	var uLocal_137 = 0;
	var uLocal_138 = 0;
	int iLocal_139 = 0;
	struct<6> Local_140[25];
	float fLocal_291 = 0f;
	struct<4> Local_292[8];
	struct<10> Local_325[36];
	int iLocal_686 = 0;
	int iLocal_687 = 0;
	struct<7> Local_688[49];
	int iLocal_1032 = 0;
	int iLocal_1033 = 0;
	int iLocal_1034 = 0;
	int iLocal_1035 = 0;
	int iLocal_1036 = 0;
	int iLocal_1037[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_1048 = 0;
	int iLocal_1049[4] = { 0, 0, 0, 0 };
	int iLocal_1054 = 0;
	int iLocal_1055[2] = { 0, 0 };
	int iLocal_1058 = 0;
	int iLocal_1059 = 0;
	int iLocal_1060 = 0;
	int iLocal_1061 = 0;
	int iLocal_1062 = 0;
	int iLocal_1063 = 0;
	int iLocal_1064 = 0;
	int iLocal_1065 = 0;
	int iLocal_1066 = 0;
	int iLocal_1067 = 0;
	vector3 vLocal_1068 = { 0f, 0f, 0f };
	struct<14> Local_1071[27];
	struct<2> Local_1450[10];
	int iLocal_1471 = 0;
	int iLocal_1472 = 0;
	int iLocal_1473 = 0;
	int iLocal_1474 = 0;
	int iLocal_1475 = 0;
	int iLocal_1476 = 0;
	struct<10> Local_1477[16];
	var uLocal_1638 = 0;
	var uLocal_1639 = 0;
	var uLocal_1640 = 0;
	var uLocal_1641 = 0;
	char[] cLocal_1642[8] = 0;
	var uLocal_1643 = 0;
	var uLocal_1644 = 0;
	int iLocal_1645 = 0;
	struct<12> Local_1646[5];
	var uLocal_1707 = 0;
	struct<6> Local_1708[20];
	int iLocal_1829 = 0;
	char* sLocal_1830 = NULL;
	var uLocal_1831 = 4;
	var uLocal_1832 = 0;
	var uLocal_1833 = 0;
	var uLocal_1834 = 0;
	var uLocal_1835 = 0;
	var uLocal_1836 = 0;
	var uLocal_1837 = 0;
	var uLocal_1838 = 0;
	var uLocal_1839 = 4;
	var uLocal_1840 = 0;
	var uLocal_1841 = 0;
	var uLocal_1842 = 0;
	var uLocal_1843 = 0;
	var uLocal_1844 = 4;
	var uLocal_1845 = 0;
	var uLocal_1846 = 0;
	var uLocal_1847 = 0;
	var uLocal_1848 = 0;
	var uLocal_1849 = 4;
	var uLocal_1850 = 0;
	var uLocal_1851 = 0;
	var uLocal_1852 = 0;
	var uLocal_1853 = 0;
	var uLocal_1854 = 0;
	var uLocal_1855 = 4;
	var uLocal_1856 = 0;
	var uLocal_1857 = 0;
	var uLocal_1858 = 0;
	var uLocal_1859 = 0;
	var uLocal_1860 = 4;
	var uLocal_1861 = 0;
	var uLocal_1862 = 0;
	var uLocal_1863 = 0;
	var uLocal_1864 = 0;
	var uLocal_1865 = 4;
	var uLocal_1866 = 0;
	var uLocal_1867 = 0;
	var uLocal_1868 = 0;
	var uLocal_1869 = 0;
	var uLocal_1870 = 0;
	var uLocal_1871 = 0;
	var uLocal_1872 = 0;
	var uLocal_1873 = 0;
	var uLocal_1874 = 0;
	var uLocal_1875 = 8;
	var uLocal_1876 = 0;
	var uLocal_1877 = 0;
	var uLocal_1878 = 0;
	var uLocal_1879 = 0;
	var uLocal_1880 = 0;
	var uLocal_1881 = 0;
	var uLocal_1882 = 0;
	var uLocal_1883 = 0;
	var uLocal_1884 = 0;
	var uLocal_1885 = 0;
	var uLocal_1886 = 0;
	var uLocal_1887 = 0;
	var uLocal_1888 = 0;
	var uLocal_1889 = 0;
	var uLocal_1890 = 0;
	var uLocal_1891 = 0;
	var uLocal_1892 = 0;
	var uLocal_1893 = 0;
	var uLocal_1894 = 0;
	var uLocal_1895 = 0;
	var uLocal_1896 = 0;
	var uLocal_1897 = 0;
	var uLocal_1898 = 0;
	var uLocal_1899 = 0;
	var uLocal_1900 = 0;
	var uLocal_1901 = 0;
	var uLocal_1902 = 0;
	var uLocal_1903 = 0;
	var uLocal_1904 = 0;
	var uLocal_1905 = 0;
	var uLocal_1906 = 0;
	var uLocal_1907 = 0;
	var uLocal_1908 = 0;
	var uLocal_1909 = 0;
	int iLocal_1910 = 0;
	int iLocal_1911 = 0;
	int iLocal_1912 = 0;
	int iLocal_1913 = 0;
	int iLocal_1914 = 0;
	int iLocal_1915 = 0;
	int iLocal_1916 = 0;
	int iLocal_1917 = 0;
	int iLocal_1918 = 0;
	int iLocal_1919 = 0;
	vector3 vLocal_1920[9] = {{ 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f } };
	var uLocal_1948 = 0;
	int iLocal_1949 = 0;
	int iLocal_1950 = 0;
	int iLocal_1951 = 0;
	int iLocal_1952 = 0;
	int iLocal_1953 = 0;
	int iLocal_1954 = 0;
	char* sLocal_1955 = NULL;
	struct<14> Local_1956 = { 0, 3, 0, 0, 0, 0, 0, 1092616192, 1101004800, 0, 0, 0, 0, 0 } ;
	var uLocal_1970 = 0;
	var uLocal_1971 = 0;
	var uLocal_1972 = 0;
	var uLocal_1973 = 3;
	var uLocal_1974 = 0;
	var uLocal_1975 = 0;
	var uLocal_1976 = 0;
	var uLocal_1977 = 0;
	var uLocal_1978 = 0;
	var uLocal_1979 = 0;
	var uLocal_1980 = 0;
	int iLocal_1981 = 0;
	int iLocal_1982 = 0;
	var uLocal_1983 = 0;
	var uLocal_1984 = 0;
	var uLocal_1985 = 0;
	var uLocal_1986 = 0;
	var uLocal_1987 = 0;
	var uLocal_1988 = 0;
	var uLocal_1989 = 0;
	var uLocal_1990 = 21;
	var uLocal_1991 = 6;
	var uLocal_1992 = 0;
	var uLocal_1993 = 0;
	var uLocal_1994 = 0;
	var uLocal_1995[25] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_2021[5] = { 0, 0, 0, 0, 0 };
	int iLocal_2027 = 0;
	int iLocal_2028 = 0;
	int iLocal_2029 = 0;
	int iLocal_2030 = 0;
	int iLocal_2031 = 0;
	int iLocal_2032 = 0;
	int iLocal_2033 = 0;
	int iLocal_2034 = 0;
	vector3 vLocal_2035[10] = {{ 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f } };
	int iLocal_2066 = 0;
	int iLocal_2067 = 0;
	int iLocal_2068 = 0;
	struct<7> Local_2069[3];
	vector3 vLocal_2091[31] = {{ 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f } };
	int iLocal_2185[31] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	char* sLocal_2217 = NULL;
	int iLocal_2218 = 0;
	int iLocal_2219 = 0;
	int iLocal_2220 = 0;
	int iLocal_2221 = 0;
	int iLocal_2222 = 0;
	int iLocal_2223 = 0;
	int iLocal_2224 = 0;
	int iLocal_2225 = 0;
	int iLocal_2226 = 0;
	int iLocal_2227 = 0;
	float fLocal_2228 = 0f;
	int iLocal_2229 = 0;
	var uLocal_2230 = 0;
	var uLocal_2231 = 0;
	var uLocal_2232 = -1;
	var uLocal_2233 = 0;
	var uLocal_2234 = 0;
	var uLocal_2235 = 0;
	var uLocal_2236 = 0;
	var uLocal_2237 = 0;
	var uLocal_2238 = 0;
	var uLocal_2239 = 1000;
	var uLocal_2240 = 1000;
	var uLocal_2241 = 0;
	vector3 vLocal_2242 = { 0f, 0f, 0f };
	float fLocal_2245 = 0f;
	float fLocal_2246 = 0f;
	int iLocal_2247 = 0;
	int iLocal_2248 = 0;
	int iLocal_2249 = 0;
	char* sLocal_2250 = NULL;
	char* sLocal_2251 = NULL;
	int iLocal_2252[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	char* sLocal_2263 = NULL;
	int iLocal_2264 = 0;
	int iLocal_2265 = 0;
	int iLocal_2266 = 0;
	int iLocal_2267 = 0;
	int iLocal_2268 = 0;
	int iLocal_2269 = 0;
	int iLocal_2270 = 0;
	int iLocal_2271 = 0;
	int iLocal_2272 = 0;
	int iLocal_2273 = 0;
	int iLocal_2274 = 0;
	float fLocal_2275 = 0f;
	int iLocal_2276 = 0;
	int iLocal_2277 = 0;
#endregion

void __EntryFunction__()//Position - 0x0
{
	int iVar0;
	int iVar1;
	
	iLocal_2 = 1;
	iLocal_3 = 134;
	iLocal_4 = 134;
	iLocal_5 = 1;
	iLocal_6 = 1;
	iLocal_7 = 1;
	iLocal_8 = 134;
	iLocal_9 = 1;
	iLocal_10 = 12;
	iLocal_11 = 12;
	fLocal_14 = 0.001f;
	iLocal_17 = -1;
	sLocal_20 = "NULL";
	fLocal_21 = 0f;
	fLocal_25 = -0.0375f;
	fLocal_26 = 0.17f;
	fLocal_291 = 0.45f;
	iLocal_1048 = -1;
	iLocal_1063 = 1;
	vLocal_1068 = { 0f, 0f, 0f };
	iLocal_1645 = -1;
	iLocal_2225 = -1;
	vLocal_2242 = { -1110.31f, -1603.043f, 3.6765f };
	fLocal_2245 = 95f;
	fLocal_2246 = 0.27f;
	iLocal_2268 = -1;
	gameplay::set_mission_flag(1);
	if (player::has_force_cleanup_occurred(3))
	{
		func_602();
		func_601(2);
	}
	gameplay::_set_weather_type_over_time("EXTRASUNNY", 45f);
	iLocal_1067 = 0;
	func_598();
	func_596();
	if (func_595())
	{
		iVar1 = func_594();
		while (!ui::has_additional_text_loaded(0))
		{
			system::wait(0);
		}
		if (Global_85916 == 1)
		{
			iVar1++;
		}
		switch (iVar1)
		{
			case 0:
				iLocal_1067 = 1;
				func_546(1, 1, 0);
				break;
			
			case 1:
				iLocal_1067 = 2;
				func_546(1, 1, 0);
				break;
			
			case 2:
				if (Global_85916)
				{
					iVar0 = true;
					iLocal_1067 = 6;
				}
				else
				{
					iLocal_1067 = 7;
				}
				func_546(1, 1, 0);
				break;
			
			case 3:
				iLocal_1067 = 9;
				func_546(1, 1, 0);
				break;
			
			case 4:
				if (Global_85916)
				{
					iVar0 = true;
				}
				iLocal_1067 = 11;
				func_546(1, 1, 0);
				break;
		}
	}
	else if (func_545(0))
	{
		while (!ui::has_additional_text_loaded(0))
		{
			system::wait(0);
		}
		iLocal_1067 = 0;
		func_546(1, 0, 1);
		iVar0 = true;
	}
	else
	{
		func_543(0);
	}
	if (!iVar0)
	{
		if (cam::is_screen_faded_out())
		{
			cam::do_screen_fade_in(500);
		}
	}
	while (true)
	{
		player::set_all_random_peds_flee_this_frame(player::player_id());
		if (!func_542(138))
		{
			if (cam::_0xEE778F8C7E1142E2(1) == 4 || cam::_0xEE778F8C7E1142E2(0) == 4)
			{
				func_541(138, 1);
			}
		}
		func_539();
		func_536();
		func_110();
		func_35();
		func_34();
		func_24();
		func_23();
		func_22();
		unk1::_0x208784099002BC30("m_Repossession", 0);
		if (iLocal_1033 > gameplay::get_game_timer())
		{
			unk1::_0xAF66DCEE6609B148();
		}
		func_21(player::player_ped_id(), 17);
		if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
		{
			func_21(ped::get_vehicle_ped_is_in(player::player_ped_id(), 0), 12);
			func_20(ped::get_vehicle_ped_is_in(player::player_ped_id(), 0), 16);
		}
		else
		{
			func_21(0, 12);
			func_20(0, 16);
		}
		if (iLocal_1829)
		{
			func_1(sLocal_1830, iLocal_1062);
		}
		system::wait(0);
	}
}

void func_1(char* sParam0, int iParam1)//Position - 0x282
{
	int iVar0;
	
	while (!audio::trigger_music_event("ARM2_MISSION_FAIL"))
	{
		func_19(21, 0);
	}
	if (gameplay::is_string_null(sParam0))
	{
		sParam0 = "ARM2_FAIL";
	}
	iVar0 = (gameplay::get_game_timer() + iParam1);
	if (iParam1 > 0)
	{
		while (gameplay::get_game_timer() < iVar0)
		{
			system::wait(0);
		}
	}
	func_3(sParam0);
	while (!func_2())
	{
		system::wait(0);
	}
	func_601(1);
}

bool func_2()//Position - 0x2E8
{
	if (Global_3)
	{
		return true;
	}
	if (Global_91406 == 7 || Global_91406 == 8)
	{
		return true;
	}
	return false;
}

void func_3(char* sParam0)//Position - 0x315
{
	func_18(sParam0);
	func_4(0);
}

void func_4(int iParam0)//Position - 0x328
{
	int iVar0;
	
	if (Global_101553.f_7940 || func_545(0))
	{
		iVar0 = func_17();
		if (!func_5(iVar0))
		{
			return;
		}
		gameplay::set_bit(&(Global_82491[iVar0 /*5*/].f_1), 5);
		Global_91442 = iParam0;
	}
}

bool func_5(int iParam0)//Position - 0x36D
{
	var uVar0;
	int iVar1;
	
	func_10();
	if (player::is_player_playing(player::player_id()))
	{
		player::start_firing_amnesty(5000);
	}
	uVar0 = Global_82491[iParam0 /*5*/];
	iVar1 = Global_69886.f_109[uVar0 /*4*/];
	func_9(iVar1, 1);
	player::_0xC9A763D8FE87436A(player::player_id());
	player::special_ability_deactivate(player::player_id());
	func_6(&(Global_101553.f_1991.f_539), iVar1);
	if (Global_85914 == Global_91443)
	{
		Global_101553.f_7940.f_330[iVar1 /*6*/].f_1++;
	}
	if (!gameplay::is_bit_set(Global_82527[iVar1 /*34*/].f_15, 1))
	{
		if (!player::is_player_playing(player::player_id()))
		{
			gameplay::set_fade_in_after_death_arrest(0);
		}
	}
	Global_101553.f_7940.f_330[iVar1 /*6*/].f_2++;
	Global_85914 = Global_91443;
	if (iParam0 == -1)
	{
		if (Global_101553.f_7940)
		{
		}
		return false;
	}
	if (gameplay::is_bit_set(Global_82491[iParam0 /*5*/].f_1, 4))
	{
		return false;
	}
	if (gameplay::is_bit_set(Global_82491[iParam0 /*5*/].f_1, 5))
	{
		return false;
	}
	return true;
}

void func_6(var uParam0, int iParam1)//Position - 0x484
{
	int iVar0;
	int iVar1;
	vector3 vVar2;
	float fVar5;
	
	if (iParam1 == 94)
	{
		return;
	}
	iVar0 = 0;
	while (iVar0 < 3)
	{
		iVar1 = Global_101553.f_17388[iVar0];
		if ((((iVar1 == 8 || iVar1 == 9) || iVar1 == 10) || (((iVar1 == 11 || iVar1 == 34) || iVar1 == 72) || iVar1 == 73)) && !gameplay::is_bit_set(Global_101553.f_7940.f_99.f_219[0], 9))
		{
		}
		else
		{
			vVar2 = { 0f, 0f, 0f };
			fVar5 = 0f;
			if (!func_8(Global_101553.f_17388[iVar0], &vVar2, &fVar5))
			{
				Global_101553.f_17388[iVar0] = 318;
				func_7(&(uParam0->f_1524[iVar0]));
				uParam0->f_1528[iVar0 /*3*/] = { 0f, 0f, 0f };
				uParam0->f_1538[iVar0] = 0f;
				uParam0->f_1542[iVar0] = 0;
				uParam0->f_1546[iVar0 /*3*/] = { 0f, 0f, 0f };
				uParam0->f_1556[iVar0] = 0;
				Global_89129[iVar0 /*29*/] = { 0f, 0f, 0f };
				Global_89129[iVar0 /*29*/].f_9 = 0f;
				Global_89129[iVar0 /*29*/].f_12 = 0f;
				Global_89129[iVar0 /*29*/].f_3 = { 0f, 0f, 0f };
				Global_89129[iVar0 /*29*/].f_10 = 0f;
				Global_89129[iVar0 /*29*/].f_13 = 0f;
				Global_89129[iVar0 /*29*/].f_6 = { 0f, 0f, 0f };
				Global_89129[iVar0 /*29*/].f_11 = 0f;
				Global_89129[iVar0 /*29*/].f_14 = 0f;
				Global_89129[iVar0 /*29*/].f_17 = { 0f, 0f, 0f };
				Global_89129[iVar0 /*29*/].f_26 = 0f;
				Global_89129[iVar0 /*29*/].f_20 = { 0f, 0f, 0f };
				Global_89129[iVar0 /*29*/].f_27 = 0f;
				Global_89129[iVar0 /*29*/].f_23 = { 0f, 0f, 0f };
				Global_89129[iVar0 /*29*/].f_28 = 0f;
			}
		}
		iVar0++;
	}
}

void func_7(var uParam0)//Position - 0x64D
{
	*uParam0 = -15;
}

int func_8(int iParam0, var uParam1, float fParam2)//Position - 0x65B
{
	switch (iParam0)
	{
		case 11:
			*uParam1 = { 115.1569f, -1286.684f, 28.2613f };
			*fParam2 = 111f;
			return 1;
			break;
		
		case 8:
			*uParam1 = { -90.0089f, -1324.195f, 28.3203f };
			*fParam2 = 194.1887f;
			return 1;
			break;
		
		case 9:
			return func_8(8, uParam1, fParam2);
			break;
		
		case 10:
			return func_8(8, uParam1, fParam2);
			break;
		
		case 13:
			*uParam1 = { -807.2979f, -48.4004f, 36.8173f };
			*fParam2 = 201.6328f;
			return 1;
			break;
		
		case 14:
			*uParam1 = { 1432.34f, -1887.383f, 70.5768f };
			*fParam2 = 350.0509f;
			return 1;
			break;
		
		case 15:
			*uParam1 = { 1666.204f, 1967.25f, 143.3213f };
			*fParam2 = 0.7896f;
			return 1;
			break;
		
		case 12:
			*uParam1 = { -1440.22f, -127.02f, 50f };
			*fParam2 = 42f;
			return 1;
			break;
		
		case 16:
			*uParam1 = { 135.055f, -1759.64f, 27.8957f };
			*fParam2 = -129f;
			return 1;
			break;
		
		case 17:
			*uParam1 = { 687.6992f, -1744.03f, 28.3624f };
			*fParam2 = 267.1409f;
			return 1;
			break;
		
		case 18:
			*uParam1 = { 56.5117f, -744.6122f, 43.1356f };
			*fParam2 = 340.0526f;
			return 1;
			break;
		
		case 19:
			*uParam1 = { 506.485f, -1884.967f, 24.764f };
			*fParam2 = 22.9566f;
			return 1;
			break;
		
		case 20:
			*uParam1 = { 1555.958f, 953.6136f, 77.2063f };
			*fParam2 = 152.8118f;
			return 1;
			break;
		
		case 21:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 22:
			*uParam1 = { 220.72f, -64.4177f, 68.2922f };
			*fParam2 = (250.4535f - 360f);
			return 1;
			break;
		
		case 74:
			*uParam1 = { 2048.07f, 3840.84f, 34.2238f };
			*fParam2 = 119.603f;
			return 1;
			break;
		
		case 23:
			*uParam1 = { -464.22f, -1592.98f, 38.73f };
			*fParam2 = 168f;
			return 1;
			break;
		
		case 24:
			*uParam1 = { (744.79f + 0.0186f), (-465.86f - 0.0114f), 36.6399f };
			*fParam2 = 51.7279f;
			return 1;
			break;
		
		case 67:
			*uParam1 = { -9f, 508.1f, 173.6278f };
			*fParam2 = 151.2504f;
			return 1;
			break;
		
		case 25:
			*uParam1 = { 72.2278f, -1464.68f, 28.2915f };
			*fParam2 = 156.8827f;
			return 1;
			break;
		
		case 27:
			*uParam1 = { 763f, -906f, 24.2312f };
			*fParam2 = 7.2736f;
			return 1;
			break;
		
		case 26:
			*uParam1 = { 257.9167f, -1120.786f, 28.3684f };
			*fParam2 = 97.2736f;
			return 1;
			break;
		
		case 28:
			*uParam1 = { 422.5858f, -978.6332f, 69.7073f };
			*fParam2 = 4f;
			return 1;
			break;
		
		case 29:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 30:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 31:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 32:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 33:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 34:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 35:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 36:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 37:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 58:
			*uParam1 = { 294.8521f, 882.9366f, 197.8527f };
			*fParam2 = 162.693f;
			return 1;
			break;
		
		case 59:
			*uParam1 = { -1771.802f, 794.4316f, 138.4211f };
			*fParam2 = 128.9946f;
			return 1;
			break;
		
		case 60:
			*uParam1 = { 1495.595f, -1848.821f, 70.2075f };
			*fParam2 = 32.2721f;
			return 1;
			break;
		
		case 38:
			*uParam1 = { 2897.554f, 4032.241f, 50.1419f };
			*fParam2 = 192.8091f;
			return 1;
			break;
		
		case 39:
			*uParam1 = { 1973.355f, 3818.204f, 32.005f };
			*fParam2 = 32f;
			return 1;
			break;
		
		case 40:
			*uParam1 = { 1973.355f, 3818.204f, 32.005f };
			*fParam2 = 32f;
			return 1;
			break;
		
		case 41:
			*uParam1 = { 1397f, 3725.8f, 33.0673f };
			*fParam2 = -3.7534f;
			return 1;
			break;
		
		case 42:
			*uParam1 = { Vector(4.0205f, -2975.341f, 798.4536f) + Vector(1f, 0f, 0f) };
			*fParam2 = 90f;
			return 1;
			break;
		
		case 43:
			*uParam1 = { 709.0244f, -2916.479f, 5.0589f };
			*fParam2 = 355.326f;
			return 1;
			break;
		
		case 44:
			*uParam1 = { 643.5248f, -2917.325f, 5.1337f };
			*fParam2 = 334.1068f;
			return 1;
			break;
		
		case 45:
			*uParam1 = { 595.2742f, -2819.183f, 5.0559f };
			*fParam2 = 46.8853f;
			return 1;
			break;
		
		case 46:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 47:
			*uParam1 = { 314.4171f, 965.207f, 208.4024f };
			*fParam2 = 165.9421f;
			return 1;
			break;
		
		case 49:
			*uParam1 = { 3321.537f, 4975.455f, 25.9097f };
			*fParam2 = 221.228f;
			return 1;
			break;
		
		case 48:
			*uParam1 = { -111.1318f, 6316.479f, 30.4904f };
			*fParam2 = (42f + 180f);
			return 1;
			break;
		
		case 50:
			*uParam1 = { -731.3261f, 106.68f, 54.7169f };
			*fParam2 = 98.9764f;
			return 1;
			break;
		
		case 51:
			*uParam1 = { -1257.5f, -526.9999f, 30.2361f };
			*fParam2 = 220.9554f;
			return 1;
			break;
		
		case 52:
			*uParam1 = { 736.9869f, -2050.678f, 28.2718f };
			*fParam2 = 83.9922f;
			return 1;
			break;
		
		case 66:
			*uParam1 = { 262.5499f, -2540.15f, 4.8433f };
			*fParam2 = -64.1366f;
			return 1;
			break;
		
		case 53:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 55:
			*uParam1 = { -315.7789f, 6201.355f, 30.4322f };
			*fParam2 = 127.7547f;
			return 1;
			break;
		
		case 56:
			*uParam1 = { 118.0988f, -1264.916f, 32.3637f };
			*fParam2 = -63f;
			return 1;
			break;
		
		case 57:
			*uParam1 = { 37.5988f, -1351.52f, 28.2954f };
			*fParam2 = 90.0339f;
			return 1;
			break;
		
		case 61:
			*uParam1 = { -558.2693f, 261.1167f, 82.07f };
			*fParam2 = 84.6231f;
			return 1;
			break;
		
		case 62:
			*uParam1 = { -196.9999f, 507.9999f, 132.477f };
			*fParam2 = 99.6049f;
			return 1;
			break;
		
		case 63:
			*uParam1 = { 1312.01f, -1645.87f, 51.2f };
			*fParam2 = 120f;
			return 1;
			break;
		
		case 68:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 69:
			*uParam1 = { -818.7374f, 6.4824f, 41.2432f };
			*fParam2 = 211.8223f;
			return 1;
			break;
		
		case 64:
			*uParam1 = { 2091.258f, 4714.852f, 40.1936f };
			*fParam2 = 136.0867f;
			return 1;
			break;
		
		case 54:
			*uParam1 = { 1762.59f, 3247.212f, 40.735f };
			*fParam2 = 27.0648f;
			return 1;
			break;
		
		case 65:
			*uParam1 = { 1764.013f, 3252.902f, 40.735f };
			*fParam2 = 27.0648f;
			return 1;
			break;
		
		case 70:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 71:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 72:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		case 73:
			*uParam1 = { 0f, 0f, 0f };
			*fParam2 = 0f;
			return 1;
			break;
		
		default:
			break;
	}
	return 0;
}

void func_9(int iParam0, int iParam1)//Position - 0xFCA
{
	if (iParam1)
	{
		if ((iParam0 != 88 && iParam0 != 89) && iParam0 != 92)
		{
			Global_85724[iParam0 /*2*/] = 1;
		}
	}
	else
	{
		Global_85724[iParam0 /*2*/] = 0;
	}
}

void func_10()//Position - 0x1008
{
	Global_91441 = 1;
	if (player::is_player_being_arrested(player::player_id(), 1))
	{
		if (gameplay::is_string_null_or_empty(&Global_69849))
		{
			switch (func_11())
			{
				case 0:
					StringCopy(&Global_69849, "CMN_MARRE", 16);
					break;
				
				case 1:
					StringCopy(&Global_69849, "CMN_FARRE", 16);
					break;
				
				case 2:
					StringCopy(&Global_69849, "CMN_TARRE", 16);
					break;
			}
			StringCopy(&Global_69853, "", 16);
		}
		Global_91441 = 0;
	}
	else if (!player::is_player_playing(player::player_id()))
	{
		if (gameplay::is_string_null_or_empty(&Global_69849))
		{
			switch (func_11())
			{
				case 0:
					StringCopy(&Global_69849, "CMN_MDIED", 16);
					break;
				
				case 1:
					StringCopy(&Global_69849, "CMN_FDIED", 16);
					break;
				
				case 2:
					StringCopy(&Global_69849, "CMN_TDIED", 16);
					break;
			}
			StringCopy(&Global_69853, "", 16);
		}
		Global_91441 = 0;
		gameplay::set_bit(&(Global_91406.f_20), 25);
	}
}

var func_11()//Position - 0x10EF
{
	func_12();
	return Global_101553.f_1991.f_539.f_3549;
}

void func_12()//Position - 0x1108
{
	int iVar0;
	
	if (entity::does_entity_exist(player::player_ped_id()))
	{
		if (func_16(Global_101553.f_1991.f_539.f_3549) != entity::get_entity_model(player::player_ped_id()))
		{
			iVar0 = func_15(player::player_ped_id());
			if (func_14(iVar0) && (!func_13(14) || Global_100505))
			{
				if (Global_101553.f_1991.f_539.f_3549 != iVar0 && func_14(Global_101553.f_1991.f_539.f_3549))
				{
					Global_101553.f_1991.f_539.f_3550 = Global_101553.f_1991.f_539.f_3549;
				}
				Global_101553.f_1991.f_539.f_3551 = iVar0;
				Global_101553.f_1991.f_539.f_3549 = iVar0;
				return;
			}
		}
		else
		{
			if (Global_101553.f_1991.f_539.f_3549 != 145)
			{
				Global_101553.f_1991.f_539.f_3551 = Global_101553.f_1991.f_539.f_3549;
			}
			return;
		}
	}
	Global_101553.f_1991.f_539.f_3549 = 145;
}

int func_13(int iParam0)//Position - 0x1205
{
	return Global_35775 == iParam0;
}

int func_14(int iParam0)//Position - 0x1213
{
	return iParam0 < 3;
}

int func_15(int iParam0)//Position - 0x121F
{
	int iVar0;
	int iVar1;
	
	if (entity::does_entity_exist(iParam0))
	{
		iVar1 = entity::get_entity_model(iParam0);
		iVar0 = 0;
		while (iVar0 <= 2)
		{
			if (func_16(iVar0) == iVar1)
			{
				return iVar0;
			}
			iVar0++;
		}
	}
	return 145;
}

int func_16(int iParam0)//Position - 0x125C
{
	if (func_14(iParam0))
	{
		return Global_101553.f_32740[iParam0 /*29*/];
	}
	else if (iParam0 != 145)
	{
	}
	return 0;
}

int func_17()//Position - 0x1286
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 7)
	{
		if (gameplay::is_bit_set(Global_82491[iVar0 /*5*/].f_1, 2))
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

void func_18(char* sParam0)//Position - 0x12BB
{
	if (!gameplay::is_string_null_or_empty(sParam0))
	{
		if (ui::get_length_of_literal_string(sParam0) <= 16)
		{
			StringCopy(&Global_69849, sParam0, 16);
			StringCopy(&Global_69853, "", 16);
			if (unk1::_is_recording())
			{
				unk1::_stop_recording_and_save_clip();
			}
		}
	}
}

void func_19(int iParam0, int iParam1)//Position - 0x12FA
{
	iParam0 = iParam0;
	system::wait(iParam1);
}

void func_20(int iParam0, int iParam1)//Position - 0x130C
{
	Global_55827 = iParam0;
	Global_55828 = iParam1;
}

void func_21(int iParam0, int iParam1)//Position - 0x131E
{
	int iVar0;
	
	Global_55829 = iParam0;
	iVar0 = 0;
	while (iVar0 < Global_67911)
	{
		if (iParam1 == -1 || Global_67912[iVar0 /*9*/] == iParam1)
		{
			if (Global_67912[iVar0 /*9*/].f_6 != iParam0)
			{
				Global_67912[iVar0 /*9*/].f_6 = iParam0;
				Global_67912[iVar0 /*9*/].f_7 = 1;
				Global_67912[iVar0 /*9*/].f_8 = 0;
			}
		}
		iVar0++;
	}
}

void func_22()//Position - 0x1389
{
	if (iLocal_2247)
	{
		if (iLocal_2248)
		{
			if (audio::prepare_music_event(sLocal_2250))
			{
				if (audio::trigger_music_event(sLocal_2250))
				{
					iLocal_2247 = 0;
					iLocal_2248 = 0;
				}
			}
		}
		else if (audio::trigger_music_event(sLocal_2250))
		{
			iLocal_2247 = 0;
		}
	}
	else if (iLocal_2249)
	{
		if (audio::prepare_music_event(sLocal_2251))
		{
			iLocal_2249 = 0;
		}
	}
}

void func_23()//Position - 0x13E1
{
	var uVar0;
	
	switch (iLocal_2273)
	{
		case 0:
			object::add_door_to_system(-913931260, joaat("prop_arm_gate_l"), -1127.1f, -1586.96f, 5.09f, 0, 1, 0);
			object::add_door_to_system(-2077066915, joaat("prop_arm_gate_l"), -1131.99f, -1590.4f, 5.09f, 0, 1, 0);
			iLocal_2273 = 1;
			break;
		
		case 2:
			if (object::_does_door_exist(-913931260) && object::_does_door_exist(-2077066915))
			{
				object::_set_door_ajar_angle(-913931260, 0f, 0, 0);
				object::_set_door_acceleration_limit(-913931260, 4, 0, 1);
				object::_set_door_ajar_angle(-2077066915, 0f, 0, 0);
				object::_set_door_acceleration_limit(-2077066915, 4, 0, 1);
				iLocal_2273 = 1;
			}
			else
			{
				if (!object::_does_door_exist(-913931260))
				{
					object::add_door_to_system(-913931260, joaat("prop_arm_gate_l"), -1127.1f, -1586.96f, 5.09f, 0, 1, 0);
				}
				if (!object::_does_door_exist(-2077066915))
				{
					object::add_door_to_system(-2077066915, joaat("prop_arm_gate_l"), -1131.99f, -1590.4f, 5.09f, 0, 1, 0);
				}
			}
			break;
		
		case 3:
			object::_set_door_acceleration_limit(-913931260, 0, 0, 1);
			object::_set_door_acceleration_limit(-2077066915, 0, 0, 1);
			iLocal_2273 = 1;
			break;
		
		case 5:
			switch (iLocal_2274)
			{
				case 0:
					fLocal_2275 = 1f;
					iLocal_2274 = 1;
					break;
				
				case 1:
					if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
					{
						if (!entity::is_entity_in_angled_area(Local_1071[4 /*14*/], -1133.818f, -1583.41f, 2.790712f, -1123.055f, -1598.921f, 5.836129f, 7.625f, 0, true, 0))
						{
							iLocal_2274 = 2;
						}
					}
					break;
				
				case 2:
					fLocal_2275 = (fLocal_2275 + (-0.13f * system::timestep()));
					if (fLocal_2275 <= 0f)
					{
						fLocal_2275 = 0f;
						iLocal_2273 = 1;
					}
					object::_set_door_ajar_angle(-913931260, fLocal_2275, 0, 1);
					object::_set_door_ajar_angle(-2077066915, (fLocal_2275 * -1f), 0, 1);
					break;
			}
			break;
		
		case 4:
			if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
			{
				switch (iLocal_2274)
				{
					case 0:
						fLocal_2275 = 0f;
						iLocal_2274 = 1;
						break;
					
					case 1:
						if (entity::is_entity_in_angled_area(Local_1071[4 /*14*/], -1129.023f, -1590.408f, 2.9455f, -1123.055f, -1598.921f, 5.836129f, 7.625f, 0, true, 0))
						{
							fLocal_2275 = (fLocal_2275 + (0.13f * system::timestep()));
							if (fLocal_2275 >= 1f)
							{
								fLocal_2275 = 1f;
								iLocal_2273 = 5;
							}
							object::_set_door_ajar_angle(-913931260, fLocal_2275, 0, 1);
							object::_set_door_ajar_angle(-2077066915, (fLocal_2275 * -1f), 0, 1);
						}
						break;
					}
			}
			break;
		
		case 6:
			object::_set_door_ajar_angle(-913931260, 0f, 0, 0);
			object::_set_door_acceleration_limit(-913931260, 0, 0, 1);
			object::_set_door_ajar_angle(-2077066915, 0f, 0, 0);
			object::_set_door_acceleration_limit(-2077066915, 0, 0, 1);
			iLocal_2273 = 1;
			break;
		
		case 7:
			object::_set_door_acceleration_limit(-913931260, 0, 0, 1);
			object::_set_door_acceleration_limit(-2077066915, 0, 0, 1);
			iLocal_2273 = 1;
			break;
		
		case 8:
		case 9:
		case 1:
			if (entity::does_entity_exist(Local_1071[4 /*14*/]))
			{
				if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
				{
					if (entity::is_entity_in_angled_area(Local_1071[4 /*14*/], -1129.023f, -1590.408f, 2.9455f, -1123.055f, -1598.921f, 5.836129f, 7.625f, 0, true, 0))
					{
						iLocal_2273 = 4;
					}
				}
			}
			if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
			{
				if (entity::get_entity_speed(ped::get_vehicle_ped_is_in(player::player_ped_id(), 0)) > 7f)
				{
					if (iLocal_2273 != 8 && iLocal_2273 != 9)
					{
						iLocal_2273 = 8;
						object::_set_door_acceleration_limit(-913931260, 0, 0, 1);
						object::_set_door_acceleration_limit(-2077066915, 0, 0, 1);
					}
				}
				else if (iLocal_2273 == 8 && iLocal_2273 != 9)
				{
					iLocal_2273 = 2;
				}
			}
			else if (iLocal_2273 == 8 && iLocal_2273 != 9)
			{
				iLocal_2273 = 2;
			}
			if ((iLocal_2273 == 8 || iLocal_2273 == 1) || iLocal_2273 == 2)
			{
				uVar0 = uVar0;
				if (gameplay::get_game_timer() > iLocal_1032)
				{
					object::get_state_of_closest_door_of_type(joaat("prop_arm_gate_l"), -1131.99f, -1590.4f, 5.09f, &uVar0, &fLocal_2275);
					if (gameplay::absf(fLocal_2275) > 0.02f)
					{
						iLocal_2273 = 9;
					}
					object::get_state_of_closest_door_of_type(joaat("prop_arm_gate_l"), -1127f, -1587f, 5f, &uVar0, &fLocal_2275);
					if (gameplay::absf(fLocal_2275) > 0.02f)
					{
						iLocal_2273 = 9;
					}
					iLocal_1032 = gameplay::get_game_timer() + 200;
				}
			}
			break;
	}
}

void func_24()//Position - 0x185F
{
	var uVar0;
	
	if (ui::is_help_message_being_displayed() || func_28())
	{
		if (!ui::is_help_message_being_displayed())
		{
			iLocal_2272 = 0;
		}
		else if (iLocal_2272 == 0)
		{
			iLocal_2272 = gameplay::get_game_timer() + 3000;
		}
		if (func_27("ARM2_HLP09"))
		{
			if (player::is_player_playing(player::player_id()))
			{
				if (ped::is_ped_in_cover(player::player_ped_id(), 0))
				{
					if (controls::is_control_pressed(0, 25))
					{
						ui::clear_help(0);
						if (weapon::is_ped_armed(player::player_ped_id(), 4))
						{
							func_26("ARM2_HLP19", 12000);
						}
					}
				}
				else
				{
					ui::clear_help(1);
				}
			}
		}
		if (func_27("ARM2_HLP19"))
		{
			if (player::is_player_playing(player::player_id()) && gameplay::get_game_timer() > iLocal_2272)
			{
				weapon::get_current_ped_weapon(player::player_ped_id(), &uVar0, 1);
				if (((controls::is_control_pressed(0, 25) && weapon::is_ped_armed(player::player_ped_id(), 4)) && cam::_0x74BD83EA840F6BC9()) || entity::is_entity_in_angled_area(player::player_ped_id(), -1091.086f, -1671.047f, 3.0388f, -1069.428f, -1653.939f, 6.0045f, 9.625f, 0, true, 0))
				{
					ui::clear_help(1);
				}
			}
		}
		if (func_27("ARM2_HLP16"))
		{
			if (func_25(3) || (entity::is_entity_dead(Local_1071[13 /*14*/], 0) && entity::is_entity_dead(Local_1071[14 /*14*/], 0)))
			{
				if (gameplay::get_game_timer() > iLocal_2272)
				{
					ui::clear_help(1);
				}
			}
		}
		if (func_27("ARM2_HLP13"))
		{
			if (fire::get_number_of_fires_in_range(-1100.541f, -1634.196f, 3.5236f, 20f) > 2)
			{
				if (entity::does_entity_exist(iLocal_1950))
				{
					object::delete_object(&iLocal_1950);
				}
			}
		}
	}
}

bool func_25(int iParam0)//Position - 0x19E9
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		if (Local_1708[iVar0 /*6*/] == iParam0)
		{
			if (Local_1708[iVar0 /*6*/].f_1 == 1)
			{
				return false;
			}
		}
		iVar0++;
	}
	return true;
}

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

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

bool func_28()//Position - 0x1A4C
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_100207)
	{
		if (func_29(iVar0))
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_29(int iParam0)//Position - 0x1A7A
{
	int iVar0;
	
	iVar0 = iParam0;
	if (!gameplay::are_strings_equal(&(Global_100207[iParam0 /*28*/]), "") && !gameplay::is_string_null(&(Global_100207[iParam0 /*28*/])))
	{
		if (gameplay::is_bit_set(Global_100207[iParam0 /*28*/].f_27, 1))
		{
			if (gameplay::is_bit_set(Global_100207[iParam0 /*28*/].f_27, 2))
			{
				return func_33(iVar0, &(Global_100207[iParam0 /*28*/]), &(Global_100207[iParam0 /*28*/].f_4), Global_100207[iParam0 /*28*/].f_20);
			}
			else
			{
				return func_32(iVar0, &(Global_100207[iParam0 /*28*/]), &(Global_100207[iParam0 /*28*/].f_4));
			}
		}
		else if (gameplay::is_bit_set(Global_100207[iParam0 /*28*/].f_27, 2))
		{
			return func_31(iVar0, &(Global_100207[iParam0 /*28*/]), Global_100207[iParam0 /*28*/].f_20);
		}
		else
		{
			return func_30(iVar0, &(Global_100207[iParam0 /*28*/]));
		}
	}
	return 0;
}

int func_30(int iParam0, char* sParam1)//Position - 0x1B57
{
	ui::_0x0A24DA3A41B718F5(sParam1);
	return ui::_0x10BDDBFC529428DD((1 + iParam0));
}

int func_31(int iParam0, char* sParam1, int iParam2)//Position - 0x1B6D
{
	ui::_0x0A24DA3A41B718F5(sParam1);
	ui::add_text_component_integer(iParam2);
	return ui::_0x10BDDBFC529428DD((1 + iParam0));
}

int func_32(int iParam0, char* sParam1, char* sParam2)//Position - 0x1B89
{
	ui::_0x0A24DA3A41B718F5(sParam1);
	ui::_add_text_component_item_string(sParam2);
	return ui::_0x10BDDBFC529428DD((1 + iParam0));
}

int func_33(int iParam0, char* sParam1, char* sParam2, int iParam3)//Position - 0x1BA5
{
	ui::_0x0A24DA3A41B718F5(sParam1);
	ui::_add_text_component_item_string(sParam2);
	ui::add_text_component_integer(iParam3);
	return ui::_0x10BDDBFC529428DD((1 + iParam0));
}

void func_34()//Position - 0x1BC7
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Local_1071)
	{
		if (ui::does_blip_exist(Local_1071[iVar0 /*14*/].f_1))
		{
			if (entity::does_entity_exist(Local_1071[iVar0 /*14*/]))
			{
				if (ped::is_ped_injured(Local_1071[iVar0 /*14*/]))
				{
					ui::remove_blip(&(Local_1071[iVar0 /*14*/].f_1));
				}
			}
			else
			{
				ui::remove_blip(&(Local_1071[iVar0 /*14*/].f_1));
			}
		}
		iVar0++;
	}
}

void func_35()//Position - 0x1C2C
{
	switch (iLocal_2277)
	{
		case 0:
			if (iLocal_1067 >= 2)
			{
				func_36(1, "Follow Lemar down the alley", 0, 0, 0, 1);
				iLocal_2277++;
			}
			break;
		
		case 1:
			if (iLocal_1067 >= 7)
			{
				func_36(2, "Alleyway shootout", 0, 0, 0, 1);
				iLocal_2277++;
			}
			break;
		
		case 2:
			if (iLocal_1067 >= 9)
			{
				func_36(3, "Chase bike", 1, 0, 0, 1);
				iLocal_2277++;
			}
			break;
	}
}

void func_36(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x1CA9
{
	int iVar0;
	int iVar1;
	int iVar2;
	char[] cVar3[8];
	int iVar5;
	var uVar6;
	int iVar10;
	
	if (iParam3 == 1)
	{
		if (!gameplay::are_strings_equal("FinaleC2", script::get_this_script_name()))
		{
		}
	}
	iVar0 = 0;
	if (iParam3 == 1)
	{
		if (iParam0 != Global_91443)
		{
			iVar0 = 1;
		}
	}
	else if (iParam0 > Global_91443)
	{
		iVar0 = 1;
	}
	if (iVar0 == 1)
	{
		func_109(1);
		if (iParam0 <= Global_91443)
		{
		}
		iVar1 = func_107(script::get_this_script_name(), 1);
		if (iVar1 != -1 && iVar1 != 94)
		{
			Global_101553.f_7940.f_330[iVar1 /*6*/].f_1 = 0;
			iVar2 = func_105(iVar1);
			cVar3 = { Global_82527[iVar1 /*34*/].f_8 };
			if (iVar1 == 90)
			{
				switch (Global_101553.f_7940.f_99.f_205[7])
				{
					case 1:
						StringConCat(&cVar3, "A", 8);
						break;
					
					case 2:
						StringConCat(&cVar3, "B", 8);
						break;
					}
			}
			stats::playstats_mission_checkpoint(&cVar3, iVar2, Global_91443, iParam0);
		}
		else
		{
			iVar5 = func_100(script::get_this_script_name(), 1);
			if (iVar5 != -1)
			{
				Global_101553.f_17429[iVar5 /*6*/].f_4 = 0;
				MemCopy(&uVar6, {func_99(iVar5)}, 4);
				stats::playstats_mission_checkpoint(&uVar6, 0, Global_91443, iParam0);
			}
			else
			{
				iVar10 = func_98(&(Global_91406.f_3));
				if (iVar10 > -1)
				{
					Global_101553.f_29676.f_4[iVar10] = 0;
				}
			}
		}
		Global_85917 = iParam2;
		Global_91443 = iParam0;
		func_37(iParam0, sParam1, iParam4, iParam5);
		if (gameplay::are_strings_equal(sParam1, ""))
		{
		}
	}
	else if (iParam0 < Global_91443)
	{
	}
}

void func_37(int iParam0, var uParam1, int iParam2, int iParam3)//Position - 0x1E1B
{
	func_38(&Global_95894, script::get_this_script_name(), iParam0, uParam1, iParam3, iParam2);
}

void func_38(var uParam0, char* sParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0x1E37
{
	int iVar0;
	int iVar1;
	
	*uParam0 = func_11();
	uParam0->f_1 = func_87();
	gameplay::_get_weather_type_transition(&(uParam0->f_6), &(uParam0->f_7), &(uParam0->f_8));
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		func_71(&(uParam0->f_2305), 0);
		func_70(player::player_ped_id());
		func_64(player::player_ped_id(), 0);
		weapon::get_current_ped_weapon(player::player_ped_id(), &(uParam0->f_2), 1);
		if (uParam0->f_2 == 0 || uParam0->f_2 == joaat("object"))
		{
			uParam0->f_2 = joaat("weapon_unarmed");
		}
	}
	iVar1 = 0;
	while (iVar1 < 3)
	{
		uParam0->f_17[iVar1] = Global_101553.f_1991.f_539.f_294[iVar1];
		if (iVar1 == func_63())
		{
			func_56(player::player_ped_id(), &(uParam0->f_616[iVar1 /*65*/]), 1);
		}
		else
		{
			iVar0 = 0;
			while (iVar0 < 12)
			{
				uParam0->f_616[iVar1 /*65*/][iVar0] = Global_91196[iVar1 /*65*/][iVar0];
				uParam0->f_616[iVar1 /*65*/].f_13[iVar0] = Global_91196[iVar1 /*65*/].f_13[iVar0];
				iVar0++;
			}
			uParam0->f_616[iVar1 /*65*/].f_59 = Global_91196[iVar1 /*65*/].f_59;
			uParam0->f_616[iVar1 /*65*/].f_60 = Global_91196[iVar1 /*65*/].f_60;
			uParam0->f_616[iVar1 /*65*/].f_61 = Global_91196[iVar1 /*65*/].f_61;
			uParam0->f_616[iVar1 /*65*/].f_62 = Global_91196[iVar1 /*65*/].f_62;
			uParam0->f_616[iVar1 /*65*/].f_63 = Global_91196[iVar1 /*65*/].f_63;
			uParam0->f_616[iVar1 /*65*/].f_64 = Global_91196[iVar1 /*65*/].f_64;
			iVar0 = 0;
			while (iVar0 < 9)
			{
				uParam0->f_616[iVar1 /*65*/].f_39[iVar0] = Global_91196[iVar1 /*65*/].f_39[iVar0];
				uParam0->f_616[iVar1 /*65*/].f_49[iVar0] = Global_91196[iVar1 /*65*/].f_49[iVar0];
				iVar0++;
			}
		}
		iVar0 = 0;
		while (iVar0 < 44)
		{
			uParam0->f_812[iVar1 /*284*/][iVar0 /*3*/] = { Global_101553.f_1991.f_539.f_298[iVar1 /*284*/][iVar0 /*3*/] };
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 50)
		{
			uParam0->f_812[iVar1 /*284*/].f_133[iVar0 /*3*/] = { Global_101553.f_1991.f_539.f_298[iVar1 /*284*/].f_133[iVar0 /*3*/] };
			iVar0++;
		}
		switch (iVar1)
		{
			case 0:
				stats::stat_get_int(joaat("sp0_weap_purch_0"), &(uParam0->f_1665[iVar1 /*32*/][0]), -1);
				stats::stat_get_int(joaat("sp0_weap_purch_1"), &(uParam0->f_1665[iVar1 /*32*/][1]), -1);
				stats::stat_get_int(joaat("sp0_weap_addon_purch_0"), &(uParam0->f_1665[iVar1 /*32*/].f_5[0]), -1);
				stats::stat_get_int(joaat("sp0_weap_addon_purch_1"), &(uParam0->f_1665[iVar1 /*32*/].f_5[1]), -1);
				stats::stat_get_int(joaat("sp0_weap_addon_purch_2"), &(uParam0->f_1665[iVar1 /*32*/].f_5[2]), -1);
				stats::stat_get_int(joaat("sp0_weap_addon_purch_3"), &(uParam0->f_1665[iVar1 /*32*/].f_5[3]), -1);
				stats::stat_get_int(joaat("sp0_weap_addon_purch_4"), &(uParam0->f_1665[iVar1 /*32*/].f_5[4]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_0"), &(uParam0->f_1665[iVar1 /*32*/].f_16[0]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_1"), &(uParam0->f_1665[iVar1 /*32*/].f_16[1]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_2"), &(uParam0->f_1665[iVar1 /*32*/].f_16[2]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_3"), &(uParam0->f_1665[iVar1 /*32*/].f_16[3]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_4"), &(uParam0->f_1665[iVar1 /*32*/].f_16[4]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_5"), &(uParam0->f_1665[iVar1 /*32*/].f_16[5]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_6"), &(uParam0->f_1665[iVar1 /*32*/].f_16[6]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_7"), &(uParam0->f_1665[iVar1 /*32*/].f_16[7]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_8"), &(uParam0->f_1665[iVar1 /*32*/].f_16[8]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_9"), &(uParam0->f_1665[iVar1 /*32*/].f_16[9]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_10"), &(uParam0->f_1665[iVar1 /*32*/].f_16[10]), -1);
				stats::stat_get_int(joaat("sp0_weap_tint_purch_11"), &(uParam0->f_1665[iVar1 /*32*/].f_16[11]), -1);
				break;
			
			case 1:
				stats::stat_get_int(joaat("sp1_weap_purch_0"), &(uParam0->f_1665[iVar1 /*32*/][0]), -1);
				stats::stat_get_int(joaat("sp1_weap_purch_1"), &(uParam0->f_1665[iVar1 /*32*/][1]), -1);
				stats::stat_get_int(joaat("sp1_weap_addon_purch_0"), &(uParam0->f_1665[iVar1 /*32*/].f_5[0]), -1);
				stats::stat_get_int(joaat("sp1_weap_addon_purch_1"), &(uParam0->f_1665[iVar1 /*32*/].f_5[1]), -1);
				stats::stat_get_int(joaat("sp1_weap_addon_purch_2"), &(uParam0->f_1665[iVar1 /*32*/].f_5[2]), -1);
				stats::stat_get_int(joaat("sp1_weap_addon_purch_3"), &(uParam0->f_1665[iVar1 /*32*/].f_5[3]), -1);
				stats::stat_get_int(joaat("sp1_weap_addon_purch_4"), &(uParam0->f_1665[iVar1 /*32*/].f_5[4]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_0"), &(uParam0->f_1665[iVar1 /*32*/].f_16[0]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_1"), &(uParam0->f_1665[iVar1 /*32*/].f_16[1]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_2"), &(uParam0->f_1665[iVar1 /*32*/].f_16[2]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_3"), &(uParam0->f_1665[iVar1 /*32*/].f_16[3]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_4"), &(uParam0->f_1665[iVar1 /*32*/].f_16[4]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_5"), &(uParam0->f_1665[iVar1 /*32*/].f_16[5]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_6"), &(uParam0->f_1665[iVar1 /*32*/].f_16[6]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_7"), &(uParam0->f_1665[iVar1 /*32*/].f_16[7]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_8"), &(uParam0->f_1665[iVar1 /*32*/].f_16[8]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_9"), &(uParam0->f_1665[iVar1 /*32*/].f_16[9]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_10"), &(uParam0->f_1665[iVar1 /*32*/].f_16[10]), -1);
				stats::stat_get_int(joaat("sp1_weap_tint_purch_11"), &(uParam0->f_1665[iVar1 /*32*/].f_16[11]), -1);
				break;
			
			case 2:
				stats::stat_get_int(joaat("sp2_weap_purch_0"), &(uParam0->f_1665[iVar1 /*32*/][0]), -1);
				stats::stat_get_int(joaat("sp2_weap_purch_1"), &(uParam0->f_1665[iVar1 /*32*/][1]), -1);
				stats::stat_get_int(joaat("sp2_weap_addon_purch_0"), &(uParam0->f_1665[iVar1 /*32*/].f_5[0]), -1);
				stats::stat_get_int(joaat("sp2_weap_addon_purch_1"), &(uParam0->f_1665[iVar1 /*32*/].f_5[1]), -1);
				stats::stat_get_int(joaat("sp2_weap_addon_purch_2"), &(uParam0->f_1665[iVar1 /*32*/].f_5[2]), -1);
				stats::stat_get_int(joaat("sp2_weap_addon_purch_3"), &(uParam0->f_1665[iVar1 /*32*/].f_5[3]), -1);
				stats::stat_get_int(joaat("sp2_weap_addon_purch_4"), &(uParam0->f_1665[iVar1 /*32*/].f_5[4]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_0"), &(uParam0->f_1665[iVar1 /*32*/].f_16[0]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_1"), &(uParam0->f_1665[iVar1 /*32*/].f_16[1]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_2"), &(uParam0->f_1665[iVar1 /*32*/].f_16[2]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_3"), &(uParam0->f_1665[iVar1 /*32*/].f_16[3]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_4"), &(uParam0->f_1665[iVar1 /*32*/].f_16[4]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_5"), &(uParam0->f_1665[iVar1 /*32*/].f_16[5]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_6"), &(uParam0->f_1665[iVar1 /*32*/].f_16[6]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_7"), &(uParam0->f_1665[iVar1 /*32*/].f_16[7]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_8"), &(uParam0->f_1665[iVar1 /*32*/].f_16[8]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_9"), &(uParam0->f_1665[iVar1 /*32*/].f_16[9]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_10"), &(uParam0->f_1665[iVar1 /*32*/].f_16[10]), -1);
				stats::stat_get_int(joaat("sp2_weap_tint_purch_11"), &(uParam0->f_1665[iVar1 /*32*/].f_16[11]), -1);
				break;
		}
		uParam0->f_9[iVar1] = Global_101553.f_25254.f_233[iVar1 /*69*/].f_1;
		uParam0->f_13[iVar1] = Global_52990[iVar1];
		uParam0->f_25[0 /*295*/][iVar1 /*98*/] = { Global_101553.f_1991.f_539.f_1635[0 /*295*/][iVar1 /*98*/] };
		uParam0->f_25[1 /*295*/][iVar1 /*98*/] = { Global_101553.f_1991.f_539.f_1635[1 /*295*/][iVar1 /*98*/] };
		iVar0 = 0;
		while (iVar0 <= 3)
		{
			uParam0->f_2259[iVar1 /*15*/][iVar0] = Global_101553.f_1991.f_493[iVar1 /*15*/][iVar0];
			uParam0->f_2259[iVar1 /*15*/].f_5[iVar0] = Global_101553.f_1991.f_493[iVar1 /*15*/].f_5[iVar0];
			uParam0->f_2259[iVar1 /*15*/].f_10[iVar0] = Global_101553.f_1991.f_493[iVar1 /*15*/].f_10[iVar0];
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 <= 2)
		{
			uParam0->f_1766[iVar1 /*164*/][iVar0] = Global_101553.f_1991[iVar1 /*164*/][iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_4[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_4[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_8[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_8[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_12[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_12[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_16[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_16[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_20[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_20[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_24[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_24[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_28[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_28[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_32[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_32[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_36[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_36[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_40[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_40[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_44[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_44[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_48[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_48[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_52[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_52[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_56[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_56[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_60[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_60[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_64[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_64[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_68[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_68[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_72[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_72[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_76[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_76[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_80[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_80[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_84[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_84[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_88[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_88[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_92[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_92[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_96[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_96[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_100[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_100[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_104[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_104[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_108[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_108[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_112[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_112[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_116[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_116[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_120[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_120[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_124[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_124[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_128[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_128[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_132[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_132[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_136[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_136[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_140[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_140[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_144[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_144[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_148[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_148[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_152[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_152[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_156[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_156[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_160[iVar0] = Global_101553.f_1991[iVar1 /*164*/].f_160[iVar0];
			iVar0++;
		}
		iVar1++;
	}
	stats::stat_get_int(joaat("sp0_special_ability"), &(uParam0->f_1762[0]), -1);
	stats::stat_get_int(joaat("sp1_special_ability"), &(uParam0->f_1762[1]), -1);
	stats::stat_get_int(joaat("sp2_special_ability"), &(uParam0->f_1762[2]), -1);
	uParam0->f_5 = 145;
	if (iParam4 == 1)
	{
		func_40(&(uParam0->f_2311), uParam0, iParam5, 1, 1, 0);
	}
	func_39(&(uParam0->f_2401));
	uParam3 = uParam3;
	uParam2 = uParam2;
}

bool func_39(var uParam0)//Position - 0x2CBF
{
	*uParam0 = Global_87588;
	uParam0->f_1 = Global_87589;
	uParam0->f_2 = 0;
	uParam0->f_3 = 0;
	return true;
}

void func_40(var uParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x2CE1
{
	int iVar0;
	
	if (iParam2 == 0)
	{
		iParam2 = player::player_ped_id();
	}
	if (entity::does_entity_exist(iParam2))
	{
		uParam1->f_5 = func_15(iParam2);
	}
	if (func_53(iParam2, &iVar0, iParam3, iParam5))
	{
		func_41(uParam0, uParam1, iVar0, iParam4);
	}
	else if (entity::does_entity_exist(iVar0))
	{
		if (!entity::is_entity_dead(iVar0, 0))
		{
			if (vehicle::is_vehicle_model(iVar0, joaat("skylift")) && ped::is_ped_in_vehicle(player::player_ped_id(), iVar0, 0))
			{
				func_41(uParam0, uParam1, iVar0, iParam4);
			}
		}
	}
}

bool func_41(var uParam0, var uParam1, int iParam2, int iParam3)//Position - 0x2D69
{
	if (vehicle::is_vehicle_driveable(iParam2, 0))
	{
		func_43(uParam0, iParam2, iParam3);
		uParam1->f_4 = iParam2;
		if (func_42(iParam2))
		{
			uParam1->f_3 = 1;
		}
		else
		{
			uParam1->f_3 = 0;
		}
		return true;
	}
	return false;
}

bool func_42(int iParam0)//Position - 0x2DA9
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 6)
	{
		if (Global_91406.f_22[iVar0] == iParam0)
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

void func_43(var uParam0, int iParam1, int iParam2)//Position - 0x2DD7
{
	func_49(iParam1, &(uParam0->f_12));
	uParam0->f_7 = func_46(iParam1, 145, 0);
	uParam0->f_11 = func_45(iParam1);
	if (!uParam0->f_7)
	{
		if (!uParam0->f_10)
		{
			uParam0->f_10 = func_44(iParam1);
		}
	}
	if (iParam2 == 1)
	{
		*uParam0 = { entity::get_entity_coords(iParam1, 1) };
		uParam0->f_6 = entity::get_entity_heading(iParam1);
		uParam0->f_3 = { entity::get_entity_velocity(iParam1) };
		if (entity::is_entity_in_angled_area(iParam1, -1154.326f, -1523.871f, 3.262189f, -1158.453f, -1517.75f, 6.374244f, 13f, 0, true, 0))
		{
			*uParam0 = { -1160.095f, -1515.407f, 3.1496f };
			uParam0->f_6 = 305.6424f;
		}
		if (Global_69351 == iParam1)
		{
			uParam0->f_9 = 1;
		}
	}
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		uParam0->f_8 = 1;
	}
	else
	{
		uParam0->f_8 = 0;
	}
}

bool func_44(int iParam0)//Position - 0x2EB3
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 68)
	{
		if (entity::does_entity_exist(Global_68446.f_484[iVar0]))
		{
			if (iParam0 == Global_68446.f_484[iVar0])
			{
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

int func_45(int iParam0)//Position - 0x2EF5
{
	int iVar0;
	
	if (!entity::does_entity_exist(iParam0))
	{
		return 145;
	}
	if (!vehicle::is_vehicle_driveable(iParam0, 0))
	{
		return 145;
	}
	iVar0 = 0;
	while (iVar0 < 9)
	{
		if (entity::does_entity_exist(Global_89070[iVar0]))
		{
			if (Global_89070[iVar0] == iParam0)
			{
				return Global_89080[iVar0];
			}
		}
		iVar0++;
	}
	return 145;
}

bool func_46(int iParam0, int iParam1, int iParam2)//Position - 0x2F58
{
	int iVar0;
	
	if (!entity::does_entity_exist(iParam0))
	{
		return false;
	}
	if (!vehicle::is_vehicle_driveable(iParam0, 0))
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 < 9)
	{
		if (entity::does_entity_exist(Global_89070[iVar0]))
		{
			if (Global_89070[iVar0] == iParam0)
			{
				if (iParam1 == 145 || iParam1 == Global_89080[iVar0])
				{
					if (iParam2 == 0 || entity::get_entity_model(iParam0) == func_47(iParam1, iParam2))
					{
						return true;
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

int func_47(int iParam0, int iParam1)//Position - 0x2FE6
{
	struct<82> Var0;
	
	if (func_14(iParam0))
	{
		Var0.f_11 = 12;
		Var0.f_31 = 49;
		Var0.f_81 = 2;
		func_48(iParam0, &Var0, iParam1);
		return Var0;
	}
	else if (iParam0 != 145)
	{
	}
	return 0;
}

void func_48(int iParam0, var uParam1, int iParam2)//Position - 0x3028
{
	int iVar0;
	
	uParam1->f_88 = 1;
	uParam1->f_84 = 255;
	uParam1->f_85 = 255;
	uParam1->f_86 = 255;
	uParam1->f_97 = 1;
	uParam1->f_3 = 1000;
	uParam1->f_1 = 0;
	switch (iParam0)
	{
		case 0:
			iVar0 = joaat("tailgater");
			if (Global_101553.f_7940.f_99.f_58[128] && !Global_101553.f_7940.f_99.f_58[131])
			{
				iVar0 = joaat("premier");
			}
			switch (iVar0)
			{
				case joaat("tailgater"):
					*uParam1 = iVar0;
					uParam1->f_2 = 3f;
					uParam1->f_4 = 0;
					uParam1->f_9 = 1;
					uParam1->f_11[0] = 1;
					StringCopy(&(uParam1->f_27), "5MDS003", 16);
					break;
				
				case joaat("premier"):
					*uParam1 = iVar0;
					uParam1->f_2 = 14.9f;
					uParam1->f_5 = 43;
					uParam1->f_6 = 43;
					uParam1->f_7 = 0;
					uParam1->f_8 = 156;
					uParam1->f_9 = 0;
					StringCopy(&(uParam1->f_27), "880HS955", 16);
					break;
			}
			break;
		
		case 2:
			iVar0 = joaat("bodhi2");
			switch (iVar0)
			{
				case joaat("bodhi2"):
					*uParam1 = iVar0;
					uParam1->f_2 = 14f;
					uParam1->f_5 = 32;
					uParam1->f_6 = 0;
					uParam1->f_7 = 0;
					uParam1->f_8 = 156;
					StringCopy(&(uParam1->f_27), "BETTY 32", 16);
					if (Global_101553.f_7940.f_99.f_58[119])
					{
						uParam1->f_11[1] = 1;
					}
					break;
			}
			break;
		
		case 1:
			if (iParam2 == 1)
			{
				iVar0 = joaat("buffalo2");
			}
			else if (iParam2 == 2)
			{
				iVar0 = joaat("bagger");
			}
			else if (Global_101553.f_7940.f_99.f_58[118])
			{
				iVar0 = joaat("bagger");
			}
			else
			{
				iVar0 = joaat("buffalo2");
			}
			switch (iVar0)
			{
				case joaat("bagger"):
					*uParam1 = iVar0;
					uParam1->f_2 = 6f;
					uParam1->f_5 = 53;
					uParam1->f_6 = 0;
					uParam1->f_7 = 59;
					uParam1->f_8 = 156;
					StringCopy(&(uParam1->f_27), "FC88", 16);
					break;
				
				case joaat("buffalo2"):
					*uParam1 = iVar0;
					uParam1->f_2 = 0f;
					uParam1->f_5 = 111;
					uParam1->f_6 = 111;
					uParam1->f_7 = 0;
					uParam1->f_8 = 156;
					uParam1->f_10 = 1;
					StringCopy(&(uParam1->f_27), "FC1988", 16);
					uParam1->f_11[0] = 1;
					uParam1->f_11[1] = 1;
					uParam1->f_11[2] = 1;
					uParam1->f_11[3] = 1;
					uParam1->f_11[4] = 1;
					uParam1->f_11[5] = 1;
					uParam1->f_11[6] = 1;
					uParam1->f_11[7] = 1;
					uParam1->f_11[8] = 1;
					break;
			}
			break;
		
		default:
			break;
	}
}

void func_49(int iParam0, var uParam1)//Position - 0x3281
{
	int iVar0;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		func_52(uParam1);
		uParam1->f_66 = entity::get_entity_model(iParam0);
		StringCopy(&(uParam1->f_1), vehicle::get_vehicle_number_plate_text(iParam0), 16);
		*uParam1 = vehicle::get_vehicle_number_plate_text_index(iParam0);
		vehicle::get_vehicle_colours(iParam0, &(uParam1->f_5), &(uParam1->f_6));
		vehicle::get_vehicle_extra_colours(iParam0, &(uParam1->f_7), &(uParam1->f_8));
		vehicle::get_vehicle_tyre_smoke_color(iParam0, &(uParam1->f_62), &(uParam1->f_63), &(uParam1->f_64));
		uParam1->f_65 = vehicle::get_vehicle_window_tint(iParam0);
		uParam1->f_67 = vehicle::get_vehicle_livery(iParam0);
		uParam1->f_69 = vehicle::get_vehicle_wheel_type(iParam0);
		uParam1->f_70 = vehicle::get_vehicle_door_lock_status(iParam0);
		vehicle::get_vehicle_custom_secondary_colour(iParam0, &(uParam1->f_71), &(uParam1->f_72), &(uParam1->f_73));
		vehicle::_get_vehicle_neon_lights_colour(iParam0, &(uParam1->f_74), &(uParam1->f_75), &(uParam1->f_76));
		if (vehicle::_is_vehicle_neon_light_enabled(iParam0, 2))
		{
			gameplay::set_bit(&(uParam1->f_77), 28);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(iParam0, 3))
		{
			gameplay::set_bit(&(uParam1->f_77), 29);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(iParam0, 0))
		{
			gameplay::set_bit(&(uParam1->f_77), 30);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(iParam0, 1))
		{
			gameplay::set_bit(&(uParam1->f_77), 31);
		}
		if (uParam1->f_65 == -1 && uParam1->f_66 != joaat("granger"))
		{
			uParam1->f_65 = 0;
		}
		if (vehicle::is_vehicle_a_convertible(iParam0, 0))
		{
			uParam1->f_68 = vehicle::get_convertible_roof_state(iParam0);
		}
		if (vehicle::is_this_model_a_plane(uParam1->f_66))
		{
			if (vehicle::_0x4198AB0022B15F87(iParam0))
			{
				switch (vehicle::get_landing_gear_state(iParam0))
				{
					case 2:
					case 0:
						gameplay::clear_bit(&(uParam1->f_77), 23);
						gameplay::set_bit(&(uParam1->f_77), 22);
						break;
					
					case 3:
					case 1:
						gameplay::clear_bit(&(uParam1->f_77), 23);
						gameplay::clear_bit(&(uParam1->f_77), 22);
						break;
					
					case 4:
						gameplay::set_bit(&(uParam1->f_77), 23);
						break;
				}
			}
			else
			{
				gameplay::set_bit(&(uParam1->f_77), 23);
			}
		}
		if (!vehicle::get_vehicle_tyres_can_burst(iParam0))
		{
			gameplay::set_bit(&(uParam1->f_77), 9);
		}
		if (vehicle::is_vehicle_stolen(iParam0))
		{
			gameplay::set_bit(&(uParam1->f_77), 10);
		}
		if (vehicle::get_is_vehicle_primary_colour_custom(iParam0))
		{
			gameplay::set_bit(&(uParam1->f_77), 13);
			vehicle::get_vehicle_custom_primary_colour(iParam0, &(uParam1->f_71), &(uParam1->f_72), &(uParam1->f_73));
		}
		if (vehicle::get_is_vehicle_secondary_colour_custom(iParam0))
		{
			gameplay::set_bit(&(uParam1->f_77), 12);
		}
		func_51(&iParam0, &(uParam1->f_9), &(uParam1->f_59));
		iVar0 = 0;
		while (iVar0 <= 11)
		{
			if (vehicle::is_vehicle_extra_turned_on(iParam0, iVar0 + 1))
			{
				gameplay::set_bit(&(uParam1->f_77), func_50(iVar0 + 1));
			}
			iVar0++;
		}
		if (graphics::_does_vehicle_have_decal(iParam0, 0))
		{
			gameplay::set_bit(&(uParam1->f_77), 11);
		}
		else
		{
			gameplay::clear_bit(&(uParam1->f_77), 11);
		}
		if (decorator::decor_exist_on(iParam0, "IgnoredByQuickSave") && decorator::decor_get_bool(iParam0, "IgnoredByQuickSave"))
		{
			gameplay::set_bit(&(uParam1->f_77), 27);
		}
		else
		{
			gameplay::clear_bit(&(uParam1->f_77), 27);
		}
	}
}

int func_50(int iParam0)//Position - 0x352D
{
	switch (iParam0)
	{
		case 1:
			return 0;
			break;
		
		case 2:
			return 1;
			break;
		
		case 3:
			return 2;
			break;
		
		case 4:
			return 3;
			break;
		
		case 5:
			return 4;
			break;
		
		case 6:
			return 5;
			break;
		
		case 7:
			return 6;
			break;
		
		case 8:
			return 7;
			break;
		
		case 9:
			return 8;
			break;
		
		case 10:
			return 24;
			break;
		
		case 11:
			return 25;
			break;
		
		case 12:
			return 26;
			break;
	}
	return 0;
}

bool func_51(int iParam0, var uParam1, var uParam2)//Position - 0x35DD
{
	int iVar0;
	int iVar1;
	
	if (!vehicle::is_vehicle_driveable(*iParam0, 0))
	{
		return false;
	}
	if (vehicle::get_num_mod_kits(*iParam0) == 0)
	{
		return false;
	}
	iVar0 = 0;
	while (iVar0 < *uParam1)
	{
		iVar1 = iVar0;
		if (((((iVar1 == 17 || iVar1 == 18) || iVar1 == 19) || iVar1 == 20) || iVar1 == 21) || iVar1 == 22)
		{
			(*uParam1)[iVar0] = 0;
			if (vehicle::is_toggle_mod_on(*iParam0, iVar1))
			{
				(*uParam1)[iVar0] = 1;
			}
		}
		else
		{
			(*uParam1)[iVar0] = vehicle::get_vehicle_mod(*iParam0, iVar0) + 1;
			if (iVar0 == 23)
			{
				(*uParam2)[0] = vehicle::get_vehicle_mod_variation(*iParam0, iVar0);
			}
			else if (iVar0 == 24)
			{
				(*uParam2)[1] = vehicle::get_vehicle_mod_variation(*iParam0, iVar0);
			}
		}
		iVar0++;
	}
	return true;
}

void func_52(var uParam0)//Position - 0x36B7
{
	int iVar0;
	
	uParam0->f_66 = 0;
	uParam0->f_77 = 0;
	uParam0->f_65 = 0;
	uParam0->f_62 = 0;
	uParam0->f_63 = 0;
	uParam0->f_64 = 0;
	uParam0->f_74 = 0;
	uParam0->f_75 = 0;
	uParam0->f_76 = 0;
	*uParam0 = 0;
	StringCopy(&(uParam0->f_1), "", 16);
	uParam0->f_5 = 0;
	uParam0->f_6 = 0;
	uParam0->f_7 = 0;
	uParam0->f_8 = 0;
	iVar0 = 0;
	while (iVar0 < 49)
	{
		uParam0->f_9[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 2)
	{
		uParam0->f_59[iVar0] = 0;
		iVar0++;
	}
	uParam0->f_67 = 0;
	uParam0->f_68 = 0;
	uParam0->f_69 = 0;
	uParam0->f_70 = 1;
	uParam0->f_71 = 0;
	uParam0->f_72 = 0;
	uParam0->f_73 = 0;
}

bool func_53(int iParam0, var uParam1, int iParam2, int iParam3)//Position - 0x3767
{
	char* sVar0;
	
	if (entity::does_entity_exist(iParam0))
	{
		if (!ped::is_ped_injured(iParam0))
		{
			if (iParam0 == player::player_ped_id())
			{
				*uParam1 = player::get_players_last_vehicle();
			}
			else
			{
				*uParam1 = ped::get_vehicle_ped_is_in(iParam0, 1);
			}
			if (entity::does_entity_exist(*uParam1))
			{
				if (vehicle::is_vehicle_driveable(*uParam1, 0))
				{
					if (iParam2 == 0 || gameplay::get_distance_between_coords(entity::get_entity_coords(*uParam1, 1), entity::get_entity_coords(iParam0, 1), 1) < 100f)
					{
						if (vehicle::is_vehicle_model(*uParam1, joaat("taxi")))
						{
							if (vehicle::get_ped_in_vehicle_seat(*uParam1, -1, 0) != iParam0 && vehicle::get_ped_in_vehicle_seat(*uParam1, -1, 0) != 0)
							{
								return false;
							}
						}
						if (func_54(*uParam1, func_11(), 1))
						{
							sVar0 = script::get_this_script_name();
							if (!gameplay::are_strings_equal(sVar0, "save_anywhere"))
							{
								return false;
							}
							else if (!ped::is_ped_in_any_vehicle(iParam0, 1))
							{
								return false;
							}
						}
						if (iParam3 == 1)
						{
							if (decorator::decor_exist_on(*uParam1, "IgnoredByQuickSave"))
							{
								if (decorator::decor_get_bool(*uParam1, "IgnoredByQuickSave"))
								{
									return false;
								}
							}
						}
						else if (vehicle::is_vehicle_model(*uParam1, joaat("blimp")))
						{
							return false;
						}
						return true;
					}
				}
			}
		}
	}
	return false;
}

bool func_54(int iParam0, int iParam1, int iParam2)//Position - 0x3896
{
	int iVar0;
	char* sVar1;
	var uVar9;
	
	if (!entity::does_entity_exist(iParam0) || !vehicle::is_vehicle_driveable(iParam0, 0))
	{
		return false;
	}
	iVar0 = 0;
	while (func_55(iParam1, iVar0, &sVar1, &uVar9))
	{
		if (!iParam2 || gameplay::is_bit_set(Global_101553.f_6084[uVar9], 0))
		{
			if (vehicle::is_vehicle_in_garage_area(&sVar1, iParam0))
			{
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

bool func_55(int iParam0, int iParam1, char* sParam2, var uParam3)//Position - 0x3907
{
	StringCopy(sParam2, "", 32);
	switch (iParam0)
	{
		case 0:
			if (iParam1 == 0)
			{
				StringCopy(sParam2, "Michael - Beverly Hills", 32);
				*uParam3 = 0;
				return true;
			}
			else if (iParam1 == 1)
			{
				StringCopy(sParam2, "Trevor - Countryside", 32);
				*uParam3 = 1;
				return true;
			}
			break;
		
		case 1:
			if (iParam1 == 0)
			{
				StringCopy(sParam2, "Franklin - Aunt", 32);
				*uParam3 = 5;
				return true;
			}
			else if (iParam1 == 1)
			{
				StringCopy(sParam2, "Franklin - Hills", 32);
				*uParam3 = 6;
				return true;
			}
			break;
		
		case 2:
			if (iParam1 == 0)
			{
				StringCopy(sParam2, "Trevor - Countryside", 32);
				*uParam3 = 2;
				return true;
			}
			else if (iParam1 == 1)
			{
				StringCopy(sParam2, "Trevor - City", 32);
				*uParam3 = 3;
				return true;
			}
			else if (iParam1 == 2)
			{
				StringCopy(sParam2, "Trevor - Stripclub", 32);
				*uParam3 = 4;
				return true;
			}
			break;
	}
	return false;
}

void func_56(int iParam0, var uParam1, int iParam2)//Position - 0x39DF
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_15(iParam0);
		iVar1 = 0;
		while (iVar1 < 12)
		{
			func_62(iParam0, iVar1, &(uParam1->f_13[iVar1]), uParam1[iVar1], &(uParam1->f_26[iVar1]), iParam2, 145);
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < 9)
		{
			func_61(iParam0, iVar1, &(uParam1->f_39[iVar1]), &(uParam1->f_49[iVar1]), iParam2, 145);
			iVar1++;
		}
		if (func_14(iVar0))
		{
			uParam1->f_59 = Global_101553.f_1991.f_539[iVar0 /*65*/].f_59;
			uParam1->f_60 = Global_101553.f_1991.f_539[iVar0 /*65*/].f_60;
			uParam1->f_61 = Global_101553.f_1991.f_539[iVar0 /*65*/].f_61;
			uParam1->f_62 = Global_101553.f_1991.f_539[iVar0 /*65*/].f_62;
			uParam1->f_63 = Global_101553.f_1991.f_539[iVar0 /*65*/].f_63;
			uParam1->f_64 = Global_101553.f_1991.f_539[iVar0 /*65*/].f_64;
		}
		else if (network::network_is_game_in_progress() && entity::get_entity_model(iParam0) == entity::get_entity_model(player::player_ped_id()))
		{
			if (func_60(161, -1))
			{
				uParam1->f_59 = func_57(2043, Global_69436, 0);
			}
			else
			{
				uParam1->f_59 = func_57(745, Global_69436, 0);
			}
			uParam1->f_60 = func_57(746, Global_69436, 0);
			uParam1->f_61 = func_57(747, Global_69436, 0);
		}
		if (network::network_is_game_in_progress() && iParam0 == player::player_ped_id())
		{
			if (func_60(161, -1))
			{
				uParam1->f_59 = func_57(2043, Global_69436, 0);
			}
			else
			{
				uParam1->f_59 = func_57(745, Global_69436, 0);
			}
		}
	}
}

int func_57(int iParam0, int iParam1, int iParam2)//Position - 0x3B89
{
	int iVar0;
	var uVar1;
	
	if (iParam2 == 0)
	{
	}
	iVar0 = Global_2491469[iParam0 /*3*/][func_58(iParam1)];
	if (stats::stat_get_int(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0;
}

int func_58(var uParam0)//Position - 0x3BBB
{
	int iVar0;
	int iVar1;
	
	iVar0 = uParam0;
	if (iVar0 == -1)
	{
		iVar1 = func_59();
		if (iVar1 > -1)
		{
			Global_2491182 = 0;
			iVar0 = iVar1;
		}
		else
		{
			iVar0 = 0;
			Global_2491182 = 1;
		}
	}
	return iVar0;
}

var func_59()//Position - 0x3BEF
{
	return Global_1312731;
}

int func_60(int iParam0, int iParam1)//Position - 0x3BFB
{
	int iVar0;
	var uVar1;
	
	iVar0 = Global_2506009[iParam0 /*3*/][func_58(iParam1)];
	if (stats::stat_get_bool(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0;
}

void func_61(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0x3C27
{
	int iVar0;
	
	iVar0 = func_15(iParam0);
	if (iParam0 != 0)
	{
		*uParam2 = ped::get_ped_prop_index(iParam0, iParam1);
		*uParam3 = ped::get_ped_prop_texture_index(iParam0, iParam1);
	}
	else
	{
		iVar0 = iParam5;
	}
	if (iParam4 == 0)
	{
		return;
	}
	if (iParam1 == 0)
	{
		if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
		{
			if (iParam0 != 0)
			{
				if (ped::is_ped_wearing_helmet(iParam0) && ped::_0x451294E859ECC018(iParam0) != -1)
				{
					*uParam2 = ped::_0x451294E859ECC018(iParam0);
					*uParam3 = ped::_0x9D728C1E12BF5518(iParam0);
				}
			}
		}
	}
	switch (iVar0)
	{
		case 0:
			if (iParam1 == 0)
			{
				if (*uParam2 == 7)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 11)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 21)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 16 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 23)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 27)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 28)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 >= 14 && *uParam2 <= 20)
				{
					if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
			}
			else if (iParam1 == 1)
			{
				if (*uParam2 == 1)
				{
					if (iParam4 & 2 != 0 || iParam4 & 64 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
			}
			break;
		
		case 1:
			if (iParam1 == 0)
			{
				if (*uParam2 == 2)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 4)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 16 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 6)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 17)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 20)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 21)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 >= 8 && *uParam2 <= 14)
				{
					if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
			}
			break;
		
		case 2:
			if (iParam1 == 0)
			{
				if (*uParam2 == 9)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 11)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 12)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 21)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 23)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if (*uParam2 == 27)
				{
					if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
				else if ((*uParam2 >= 14 && *uParam2 <= 20) || *uParam2 == 2)
				{
					if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
					{
						*uParam2 = -1;
						*uParam3 = -1;
					}
				}
			}
			break;
	}
}

void func_62(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, int iParam5, int iParam6)//Position - 0x4170
{
	int iVar0;
	
	iVar0 = func_15(iParam0);
	if (iParam0 != 0)
	{
		*uParam2 = ped::get_ped_drawable_variation(iParam0, iParam1);
		*uParam3 = ped::get_ped_texture_variation(iParam0, iParam1);
		*uParam4 = ped::get_ped_palette_variation(iParam0, iParam1);
	}
	else
	{
		iVar0 = iParam6;
	}
	if (iParam5 == 0)
	{
		return;
	}
	switch (iVar0)
	{
		case 0:
			if (iParam1 == 8)
			{
				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
				{
					if (*uParam2 == 15)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
				if (iParam5 & 2 != 0 || iParam5 & 64 != 0)
				{
					if (*uParam2 == 3 || *uParam2 == 22)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
			}
			else if (iParam1 == 9)
			{
				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
				{
					if (*uParam2 == 5)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
				if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
				{
					if (*uParam2 == 8)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
			}
			break;
		
		case 1:
			if (iParam1 == 8)
			{
				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
				{
					if (*uParam2 == 1 || *uParam2 == 10)
					{
						*uParam2 = 14;
						*uParam3 = 0;
					}
				}
				if (iParam5 & 2 != 0 || iParam5 & 64 != 0)
				{
					if (*uParam2 == 19)
					{
						*uParam2 = 14;
						*uParam3 = 0;
					}
				}
			}
			else if (iParam1 == 9)
			{
				if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
				{
					if (*uParam2 == 5)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
			}
			break;
		
		case 2:
			if (iParam1 == 8)
			{
				if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
				{
					if (*uParam2 == 3)
					{
						*uParam2 = 14;
						*uParam3 = 0;
					}
				}
			}
			else if (iParam1 == 9)
			{
				if (*uParam2 >= 5 && *uParam2 <= 7)
				{
					if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
					{
						*uParam2 = 0;
						*uParam3 = 0;
					}
				}
			}
			break;
	}
}

var func_63()//Position - 0x43B1
{
	func_12();
	return Global_101553.f_1991.f_539.f_3549;
}

void func_64(int iParam0, int iParam1)//Position - 0x43CA
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = func_15(iParam0);
	if (func_14(iVar0) && !ped::is_ped_injured(iParam0))
	{
		if (iParam0 == player::player_ped_id())
		{
			func_65(iParam0, &(Global_101553.f_1991.f_539.f_298[iVar0 /*284*/]));
			iVar2 = 0;
			while (iVar2 <= (8 - 1))
			{
				Global_101553.f_1991.f_539.f_1151[iVar2 /*4*/][iVar0] = ui::_0xA13E93403F26C812(iVar2);
				if (iParam1)
				{
					iVar1 = ui::_0xA48931185F0536FE();
					if (Global_101553.f_1991.f_539.f_1151[iVar2 /*4*/][iVar0] == iVar1)
					{
						Global_101553.f_1991.f_539.f_1184 = iVar2;
					}
				}
				iVar2++;
			}
			player::get_player_parachute_pack_tint_index(player::player_id(), &iVar3);
			if (iVar0 == 0)
			{
				stats::stat_set_int(joaat("sp0_parachute_current_tint"), iVar3, 1);
			}
			else if (iVar0 == 1)
			{
				stats::stat_set_int(joaat("sp1_parachute_current_tint"), iVar3, 1);
			}
			else if (iVar0 == 2)
			{
				stats::stat_set_int(joaat("sp2_parachute_current_tint"), iVar3, 1);
			}
		}
	}
}

void func_65(int iParam0, var uParam1)//Position - 0x44BD
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	vector3 vVar4;
	int iVar7;
	int iVar8;
	struct<2> Var9;
	struct<4> Var48;
	int iVar70;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = 0;
		while (iVar0 <= (44 - 1))
		{
			(uParam1[iVar0 /*3*/])->f_1 = 0;
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 <= (44 - 1))
		{
			iVar3 = func_69(iVar0);
			if (iVar3 != 0)
			{
				vVar4.x = weapon::get_ped_weapontype_in_slot(iParam0, func_69(iVar0));
				vVar4.y = 0;
				vVar4.z = 0;
				if (vVar4.x != 0 && vVar4.x != joaat("weapon_unarmed"))
				{
					vVar4.y = weapon::get_ammo_in_ped_weapon(iParam0, vVar4.x);
					if (vVar4.x == joaat("gadget_parachute"))
					{
						vVar4.y = 1;
					}
					gameplay::set_bit(&(vVar4.f_2), (20 + weapon::get_ped_weapon_tint_index(iParam0, vVar4.x)));
					if (vVar4.y == -1)
					{
						if (!weapon::get_max_ammo(iParam0, vVar4.x, &(vVar4.f_1)))
						{
							vVar4.y = 0;
						}
					}
					(uParam1[iVar0 /*3*/])->f_1 = vVar4.y;
					iVar1 = 0;
					iVar2 = func_67(vVar4.x, iVar1);
					while (iVar2 != 0)
					{
						if (weapon::has_ped_got_weapon_component(iParam0, vVar4.x, iVar2))
						{
							gameplay::set_bit(&(vVar4.f_2), iVar1);
						}
						iVar1++;
						iVar2 = func_67(vVar4.x, iVar1);
					}
				}
				*(uParam1[iVar0 /*3*/]) = { vVar4 };
			}
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 <= (50 - 1))
		{
			uParam1->f_133[iVar0 /*3*/].f_1 = 0;
			iVar0++;
		}
		iVar8 = dlc1::get_num_dlc_weapons();
		iVar7 = 0;
		while (iVar7 < iVar8)
		{
			if ((dlc1::get_dlc_weapon_data(iVar7, &Var9) && !func_66(Var9.f_1)) && iVar70 < 50)
			{
				if (!dlc1::_is_dlc_data_empty(Var9))
				{
					vVar4.x = Var9.f_1;
					vVar4.y = 0;
					vVar4.z = 0;
					vVar4.y = weapon::get_ammo_in_ped_weapon(iParam0, vVar4.x);
					if (weapon::has_ped_got_weapon(iParam0, vVar4.x, 0))
					{
						gameplay::set_bit(&(vVar4.f_2), (20 + weapon::get_ped_weapon_tint_index(iParam0, vVar4.x)));
					}
					else
					{
						gameplay::set_bit(&(vVar4.f_2), 20);
					}
					if (vVar4.y == -1)
					{
						if (!weapon::get_max_ammo(iParam0, vVar4.x, &(vVar4.f_1)))
						{
							vVar4.y = 0;
						}
					}
					uParam1->f_133[iVar70 /*3*/].f_1 = vVar4.y;
					iVar1 = 0;
					while (iVar1 < dlc1::get_num_dlc_weapon_components(iVar7))
					{
						if (dlc1::get_dlc_weapon_component_data(iVar7, iVar1, &Var48))
						{
							if (weapon::has_ped_got_weapon_component(iParam0, vVar4.x, Var48.f_3))
							{
								gameplay::set_bit(&(vVar4.f_2), iVar1);
							}
						}
						iVar1++;
					}
				}
				if (vVar4.x != 0)
				{
					if (!weapon::has_ped_got_weapon(iParam0, vVar4.x, 0))
					{
						vVar4.x = 0;
						vVar4.y = 0;
					}
				}
				uParam1->f_133[iVar70 /*3*/] = { vVar4 };
				iVar70++;
			}
			iVar7++;
		}
	}
}

bool func_66(int iParam0)//Position - 0x4721
{
	if (network::network_is_game_in_progress())
	{
	}
	else
	{
		switch (iParam0)
		{
			case joaat("weapon_pistol50"):
			case joaat("weapon_bullpupshotgun"):
			case joaat("weapon_assaultsmg"):
				return false;
				break;
			
			case joaat("weapon_bottle"):
			case joaat("weapon_snspistol"):
			case joaat("weapon_gusenberg"):
				return false;
				break;
			
			case joaat("weapon_heavypistol"):
			case joaat("weapon_specialcarbine"):
				return false;
				break;
			
			case joaat("weapon_bullpuprifle"):
				return false;
				break;
			
			case joaat("weapon_dagger"):
			case joaat("weapon_vintagepistol"):
				return false;
				break;
			
			case joaat("weapon_firework"):
			case joaat("weapon_musket"):
				return false;
				break;
			
			case joaat("weapon_heavyshotgun"):
			case joaat("weapon_marksmanrifle"):
				return false;
				break;
			
			case joaat("weapon_hominglauncher"):
			case joaat("weapon_proxmine"):
				return false;
				break;
			
			case joaat("weapon_combatpdw"):
			case joaat("weapon_knuckle"):
			case joaat("weapon_marksmanpistol"):
				return false;
				break;
			
			case -947031628:
			case -572349828:
			case 392730790:
			case -1523701417:
			case -2112826155:
			case -664359727:
			case -1887867191:
			case -837150131:
			case -344484024:
			case joaat("weapon_flaregun"):
			case joaat("weapon_handcuffs"):
			case joaat("weapon_snowball"):
			case joaat("weapon_garbagebag"):
			case joaat("weapon_flashlight"):
			case joaat("weapon_switchblade"):
			case joaat("weapon_revolver"):
			case joaat("weapon_dbshotgun"):
			case joaat("weapon_compactrifle"):
			case 317205821:
			case -1121678507:
			case 125959754:
			case -853065399:
			case -1169823560:
			case -1810795771:
			case 419712736:
				return true;
				break;
			}
	}
	return false;
}

int func_67(int iParam0, int iParam1)//Position - 0x488F
{
	int iVar0;
	int iVar1;
	var uVar2;
	struct<4> Var41;
	
	iVar0 = 0;
	switch (iParam0)
	{
		case joaat("weapon_pistol"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_pistol_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_pistol_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_pi_flsh");
					break;
				
				case 3:
					iVar0 = joaat("component_at_pi_supp_02");
					break;
				
				case 4:
					iVar0 = joaat("component_pistol_varmod_luxe");
					break;
			}
			break;
		
		case joaat("weapon_combatpistol"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_combatpistol_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_combatpistol_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_pi_flsh");
					break;
				
				case 3:
					iVar0 = joaat("component_at_pi_supp");
					break;
				
				case 4:
					iVar0 = joaat("component_combatpistol_varmod_lowrider");
					break;
			}
			break;
		
		case joaat("weapon_appistol"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_appistol_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_appistol_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_pi_flsh");
					break;
				
				case 3:
					iVar0 = joaat("component_at_pi_supp");
					break;
				
				case 4:
					iVar0 = joaat("component_appistol_varmod_luxe");
					break;
			}
			break;
		
		case joaat("weapon_microsmg"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_microsmg_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_microsmg_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_pi_flsh");
					break;
				
				case 3:
					iVar0 = joaat("component_at_scope_macro");
					break;
				
				case 4:
					iVar0 = joaat("component_at_ar_supp_02");
					break;
				
				case 5:
					iVar0 = joaat("component_microsmg_varmod_luxe");
					break;
			}
			break;
		
		case joaat("weapon_smg"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_smg_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_smg_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_smg_clip_03");
					break;
				
				case 3:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 4:
					iVar0 = joaat("component_at_pi_supp");
					break;
				
				case 5:
					iVar0 = joaat("component_at_scope_macro_02");
					break;
				
				case 6:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
				
				case 7:
					iVar0 = joaat("component_smg_varmod_luxe");
					break;
			}
			break;
		
		case joaat("weapon_assaultrifle"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_assaultrifle_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_assaultrifle_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_assaultrifle_clip_03");
					break;
				
				case 3:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
				
				case 4:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 5:
					iVar0 = joaat("component_at_scope_macro");
					break;
				
				case 6:
					iVar0 = joaat("component_at_ar_supp_02");
					break;
				
				case 7:
					iVar0 = joaat("component_assaultrifle_varmod_luxe");
					break;
			}
			break;
		
		case joaat("weapon_carbinerifle"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_carbinerifle_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_carbinerifle_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_carbinerifle_clip_03");
					break;
				
				case 3:
					iVar0 = joaat("component_at_railcover_01");
					break;
				
				case 4:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
				
				case 5:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 6:
					iVar0 = joaat("component_at_scope_medium");
					break;
				
				case 7:
					iVar0 = joaat("component_at_ar_supp");
					break;
				
				case 8:
					iVar0 = joaat("component_carbinerifle_varmod_luxe");
					break;
			}
			break;
		
		case joaat("weapon_advancedrifle"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_advancedrifle_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_advancedrifle_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 3:
					iVar0 = joaat("component_at_scope_small");
					break;
				
				case 4:
					iVar0 = joaat("component_at_ar_supp");
					break;
				
				case 5:
					iVar0 = joaat("component_advancedrifle_varmod_luxe");
					break;
			}
			break;
		
		case joaat("weapon_mg"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_mg_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_mg_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_scope_small_02");
					break;
				
				case 3:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
				
				case 4:
					iVar0 = joaat("component_mg_varmod_lowrider");
					break;
			}
			break;
		
		case joaat("weapon_combatmg"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_combatmg_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_combatmg_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
				
				case 3:
					iVar0 = joaat("component_at_scope_medium");
					break;
				
				case 4:
					iVar0 = joaat("component_combatmg_varmod_lowrider");
					break;
			}
			break;
		
		case joaat("weapon_pumpshotgun"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_at_sr_supp");
					break;
				
				case 1:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 2:
					iVar0 = joaat("component_pumpshotgun_varmod_lowrider");
					break;
			}
			break;
		
		case joaat("weapon_assaultshotgun"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_assaultshotgun_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_assaultshotgun_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
				
				case 3:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 4:
					iVar0 = joaat("component_at_ar_supp");
					break;
			}
			break;
		
		case joaat("weapon_sniperrifle"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_sniperrifle_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_at_scope_large");
					break;
				
				case 2:
					iVar0 = joaat("component_at_scope_max");
					break;
				
				case 3:
					iVar0 = joaat("component_at_ar_supp_02");
					break;
				
				case 4:
					iVar0 = joaat("component_sniperrifle_varmod_luxe");
					break;
			}
			break;
		
		case joaat("weapon_heavysniper"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_heavysniper_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_at_scope_large");
					break;
				
				case 2:
					iVar0 = joaat("component_at_scope_max");
					break;
			}
			break;
		
		case joaat("weapon_grenadelauncher"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
				
				case 1:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 2:
					iVar0 = joaat("component_at_scope_small");
					break;
			}
			break;
		
		case joaat("weapon_minigun"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_minigun_clip_01");
					break;
			}
			break;
		
		case joaat("weapon_assaultsmg"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_assaultsmg_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_assaultsmg_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 3:
					iVar0 = joaat("component_at_scope_macro");
					break;
				
				case 4:
					iVar0 = joaat("component_at_ar_supp_02");
					break;
				
				case 5:
					iVar0 = joaat("component_assaultsmg_varmod_lowrider");
					break;
			}
			break;
		
		case joaat("weapon_bullpupshotgun"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
				
				case 1:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 2:
					iVar0 = joaat("component_at_ar_supp_02");
					break;
			}
			break;
		
		case joaat("weapon_pistol50"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_pistol50_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_pistol50_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_pi_flsh");
					break;
				
				case 3:
					iVar0 = joaat("component_at_ar_supp_02");
					break;
				
				case 4:
					iVar0 = joaat("component_pistol50_varmod_luxe");
					break;
			}
			break;
		
		case joaat("weapon_combatpdw"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_combatpdw_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_combatpdw_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_combatpdw_clip_03");
					break;
				
				case 3:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 4:
					iVar0 = joaat("component_at_scope_small");
					break;
				
				case 5:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
			}
			break;
		
		case joaat("weapon_sawnoffshotgun"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_sawnoffshotgun_varmod_luxe");
					break;
			}
			break;
		
		case joaat("weapon_bullpuprifle"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_bullpuprifle_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_bullpuprifle_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 3:
					iVar0 = joaat("component_at_scope_small");
					break;
				
				case 4:
					iVar0 = joaat("component_at_ar_supp");
					break;
				
				case 5:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
				
				case 6:
					iVar0 = joaat("component_bullpuprifle_varmod_low");
					break;
			}
			break;
		
		case joaat("weapon_snspistol"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_snspistol_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_snspistol_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_snspistol_varmod_lowrider");
					break;
			}
			break;
		
		case joaat("weapon_specialcarbine"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_specialcarbine_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_specialcarbine_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_specialcarbine_clip_03");
					break;
				
				case 3:
					iVar0 = joaat("component_at_ar_flsh");
					break;
				
				case 4:
					iVar0 = joaat("component_at_scope_medium");
					break;
				
				case 5:
					iVar0 = joaat("component_at_ar_supp_02");
					break;
				
				case 6:
					iVar0 = joaat("component_at_ar_afgrip");
					break;
				
				case 7:
					iVar0 = joaat("component_specialcarbine_varmod_lowrider");
					break;
			}
			break;
		
		case joaat("weapon_knuckle"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_knuckle_varmod_pimp");
					break;
				
				case 1:
					iVar0 = joaat("component_knuckle_varmod_ballas");
					break;
				
				case 2:
					iVar0 = joaat("component_knuckle_varmod_dollar");
					break;
				
				case 3:
					iVar0 = joaat("component_knuckle_varmod_diamond");
					break;
				
				case 4:
					iVar0 = joaat("component_knuckle_varmod_hate");
					break;
				
				case 5:
					iVar0 = joaat("component_knuckle_varmod_love");
					break;
				
				case 6:
					iVar0 = joaat("component_knuckle_varmod_player");
					break;
				
				case 7:
					iVar0 = joaat("component_knuckle_varmod_king");
					break;
				
				case 8:
					iVar0 = joaat("component_knuckle_varmod_vagos");
					break;
			}
			break;
		
		case joaat("weapon_machinepistol"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_machinepistol_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_machinepistol_clip_02");
					break;
				
				case 2:
					iVar0 = joaat("component_machinepistol_clip_03");
					break;
				
				case 3:
					iVar0 = joaat("component_at_pi_supp");
					break;
			}
			break;
		
		case joaat("weapon_switchblade"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_switchblade_varmod_var1");
					break;
				
				case 1:
					iVar0 = joaat("component_switchblade_varmod_var2");
					break;
			}
			break;
		
		case joaat("weapon_revolver"):
			switch (iParam1)
			{
				case 0:
					iVar0 = joaat("component_revolver_clip_01");
					break;
				
				case 1:
					iVar0 = joaat("component_revolver_varmod_boss");
					break;
				
				case 2:
					iVar0 = joaat("component_revolver_varmod_goon");
					break;
			}
			break;
		
		case -1121678507:
			switch (iParam1)
			{
				case 0:
					iVar0 = -2067221805;
					break;
				
				case 1:
					iVar0 = -1820405577;
					break;
			}
			break;
		
		default:
			if (iParam0 != 0)
			{
				iVar1 = func_68(iParam0, &uVar2);
				if (iVar1 != -1)
				{
					if (iParam1 < dlc1::get_num_dlc_weapon_components(iVar1))
					{
						if (dlc1::get_dlc_weapon_component_data(iVar1, iParam1, &Var41))
						{
							return Var41.f_3;
						}
					}
				}
			}
			break;
	}
	return iVar0;
}

int func_68(int iParam0, var uParam1)//Position - 0x537B
{
	int iVar0;
	int iVar1;
	
	iVar1 = dlc1::get_num_dlc_weapons();
	iVar0 = 0;
	while (iVar0 < iVar1)
	{
		if (dlc1::get_dlc_weapon_data(iVar0, uParam1))
		{
			if (uParam1->f_1 == iParam0)
			{
				return iVar0;
			}
		}
		iVar0++;
	}
	return -1;
}

int func_69(int iParam0)//Position - 0x53B6
{
	int iVar0;
	
	iVar0 = 0;
	switch (iParam0)
	{
		case 0:
			iVar0 = 1993361168;
			break;
		
		case 1:
			iVar0 = 1277010230;
			break;
		
		case 2:
			iVar0 = 932043479;
			break;
		
		case 3:
			iVar0 = -690654591;
			break;
		
		case 4:
			iVar0 = -1459198205;
			break;
		
		case 5:
			iVar0 = 195782970;
			break;
		
		case 6:
			iVar0 = -438797331;
			break;
		
		case 7:
			iVar0 = 896793492;
			break;
		
		case 8:
			iVar0 = 495159329;
			break;
		
		case 9:
			iVar0 = -1155528315;
			break;
		
		case 10:
			iVar0 = -515636489;
			break;
		
		case 11:
			iVar0 = -871913299;
			break;
		
		case 12:
			iVar0 = -1352759032;
			break;
		
		case 13:
			iVar0 = -542958961;
			break;
		
		case 14:
			iVar0 = 1682645887;
			break;
		
		case 15:
			iVar0 = -859470162;
			break;
		
		case 16:
			iVar0 = -2125426402;
			break;
		
		case 17:
			iVar0 = 2067210266;
			break;
		
		case 18:
			iVar0 = -538172856;
			break;
		
		case 19:
			iVar0 = 1783244476;
			break;
		
		case 20:
			iVar0 = 439844898;
			break;
		
		case 21:
			iVar0 = -24829327;
			break;
		
		case 22:
			iVar0 = 1949306232;
			break;
		
		case 23:
			iVar0 = -1941230881;
			break;
		
		case 24:
			iVar0 = -1033554448;
			break;
		
		case 25:
			iVar0 = 320513715;
			break;
		
		case 26:
			iVar0 = -695165975;
			break;
		
		case 27:
			iVar0 = -281028447;
			break;
		
		case 28:
			iVar0 = -686713772;
			break;
		
		case 29:
			iVar0 = 347509793;
			break;
		
		case 30:
			iVar0 = 1769089473;
			break;
		
		case 31:
			iVar0 = 189935548;
			break;
		
		case 33:
			iVar0 = 248801358;
			break;
		
		case 34:
			iVar0 = 386596758;
			break;
		
		case 35:
			iVar0 = -157212362;
			break;
		
		case 36:
			iVar0 = 436985596;
			break;
		
		case 37:
			iVar0 = -47957369;
			break;
		
		case 38:
			iVar0 = 575938238;
			break;
	}
	return iVar0;
}

void func_70(int iParam0)//Position - 0x562A
{
	int iVar0;
	
	iVar0 = func_15(iParam0);
	if (func_14(iVar0) && !ped::is_ped_injured(iParam0))
	{
		Global_101553.f_1991.f_539.f_294[iVar0] = ped::get_ped_armour(iParam0);
	}
}

void func_71(var uParam0, int iParam1)//Position - 0x5666
{
	int iVar0;
	vector3 vVar1;
	var uVar4;
	int iVar5;
	
	*uParam0 = { entity::get_entity_coords(player::player_ped_id(), 1) };
	uParam0->f_3 = entity::get_entity_heading(player::player_ped_id());
	uParam0->f_5 = ped::get_ped_parachute_state(player::player_ped_id());
	if (player::is_player_playing(player::player_id()))
	{
		uParam0->f_4 = player::get_player_wanted_level(player::player_id());
	}
	if (system::vdist(*uParam0, 320.9934f, 265.2515f, 82.1221f) < 10f)
	{
		*uParam0 = { 301.2162f, 202.1357f, 103.3797f };
		uParam0->f_3 = 156.5144f;
	}
	else if (system::vdist(*uParam0, 377.153f, -717.567f, 10.0536f) < 10f)
	{
		*uParam0 = { 394.2567f, -713.5439f, 28.2853f };
		uParam0->f_3 = 276.6273f;
	}
	else if (system::vdist(*uParam0, -1425.564f, -244.3f, 15.8053f) < 10f)
	{
		*uParam0 = { -1423.472f, -214.2539f, 45.5004f };
		uParam0->f_3 = 353.8757f;
	}
	else if (script::_get_number_of_instances_of_streamed_script(joaat("finale_choice")) > 0)
	{
		*uParam0 = { 4.2587f, 525.0214f, 173.6281f };
		uParam0->f_3 = 203.6746f;
	}
	else if (gameplay::is_bit_set(Global_69865, 4))
	{
		*uParam0 = { 452.0255f, 5571.85f, 780.1859f };
		uParam0->f_3 = 78.9858f;
	}
	else if (gameplay::is_bit_set(Global_69865, 5))
	{
		*uParam0 = { -745.4462f, 5595.146f, 40.6594f };
		uParam0->f_3 = 261.747f;
	}
	else if (gameplay::is_bit_set(Global_69865, 6))
	{
		*uParam0 = { -1675.521f, -1125.59f, 12.091f };
		uParam0->f_3 = 271.8208f;
	}
	else if (gameplay::is_bit_set(Global_69865, 7))
	{
		*uParam0 = { -1631.219f, -1112.805f, 12.0212f };
		uParam0->f_3 = 316.8879f;
	}
	else if (interior::get_interior_from_entity(player::player_ped_id()) == interior::get_interior_at_coords_with_type(1272.659f, -1715.467f, 53.7715f, "v_lesters"))
	{
		*uParam0 = { 1276.956f, -1725.189f, 53.6551f };
		uParam0->f_3 = 204.1703f;
	}
	else if (entity::is_entity_in_angled_area(player::player_ped_id(), -415.4365f, 2068.289f, 113.3002f, -564.9516f, 1884.703f, 134.0403f, 258.75f, 0, true, 0) || entity::is_entity_in_angled_area(player::player_ped_id(), -596.4706f, 2089.921f, 125.4128f, -581.2134f, 2036.256f, 136.2836f, 9.5f, 0, true, 0))
	{
		*uParam0 = { -601.59f, 2099.197f, 128.8928f };
		uParam0->f_3 = 204.7498f;
	}
	else if (system::vdist(*uParam0, -1007.393f, -477.9584f, 52.5357f) < 8f)
	{
		*uParam0 = { -1018.376f, -483.9436f, 36.0964f };
		uParam0->f_3 = 114.7664f;
	}
	else if (system::vdist(*uParam0, 480.6662f, -1317.808f, 28.20303f) < 15f)
	{
		*uParam0 = { 497.7238f, -1310.932f, 28.2372f };
		uParam0->f_3 = 289.3663f;
	}
	else if (system::vdist(*uParam0, 2329.527f, 2571.311f, 45.6779f) < 5f)
	{
		*uParam0 = { 2316.93f, 2594.153f, 45.7199f };
		uParam0->f_3 = 348.1325f;
	}
	if (iParam1 == 1)
	{
		if (func_75(&iVar0))
		{
			if (func_73(iVar0, &vVar1, &uVar4))
			{
				vVar1.z = (vVar1.y + 1f);
				*uParam0 = { vVar1 };
				uParam0->f_3 = uVar4;
			}
		}
		else if (entity::is_entity_in_angled_area(player::player_ped_id(), 207.4336f, -1019.795f, -100.4728f, 189.9338f, -1019.623f, -95.56883f, 17.1875f, 0, true, 0))
		{
			iVar5 = func_11();
			if (iVar5 == 0)
			{
				*uParam0 = { -65.1234f, 81.2517f, 70.5644f };
				uParam0->f_3 = 71.6237f;
			}
			else if (iVar5 == 1)
			{
				*uParam0 = { -68.5531f, -1824.377f, 25.9424f };
				uParam0->f_3 = 215.8295f;
			}
			else if (iVar5 == 2)
			{
				*uParam0 = { -220.8189f, -1162.302f, 22.0242f };
				uParam0->f_3 = 70.2711f;
			}
		}
		else if (entity::is_entity_in_angled_area(player::player_ped_id(), 483.7175f, -1326.63f, 28.2135f, 474.9644f, -1307.998f, 34.49498f, 12f, 0, true, 0))
		{
			*uParam0 = { 495.4108f, -1306.08f, 29.2883f };
			uParam0->f_3 = 213.6273f;
		}
		else if (entity::is_entity_in_angled_area(player::player_ped_id(), -1146.77f, -1534.22f, 3.37f, -1158.453f, -1517.75f, 6.374244f, 13f, 0, true, 0))
		{
			*uParam0 = { -1160.095f, -1515.407f, 3.1496f };
			uParam0->f_3 = 305.6424f;
		}
		else if (entity::is_entity_in_angled_area(player::player_ped_id(), 439.5432f, -996.9769f, 24.88307f, 428.2935f, -997.0192f, 28.57458f, 8.5f, 0, true, 0))
		{
			*uParam0 = { 431.8853f, -1013.133f, 28.7907f };
			uParam0->f_3 = 186.6814f;
		}
		else if (func_72(*uParam0, "v_hospital", 307.3065f, -589.9595f, 43.302f))
		{
			*uParam0 = { 279.4137f, -585.8815f, 43.2502f };
			uParam0->f_3 = 48.8028f;
		}
	}
}

bool func_72(vector3 vParam0, char* sParam3, vector3 vParam4)//Position - 0x5BC1
{
	int iVar0;
	int iVar1;
	
	if (!interior::_are_coords_colliding_with_exterior(vParam0))
	{
		iVar0 = interior::get_interior_at_coords_with_type(vParam4, sParam3);
		if (!interior::is_valid_interior(iVar0))
		{
			return false;
		}
		iVar1 = interior::get_interior_from_collision(vParam0);
		if (iVar1 == iVar0)
		{
			return true;
		}
	}
	return false;
}

int func_73(int iParam0, var uParam1, var uParam2)//Position - 0x5C05
{
	*uParam1 = { 0f, 0f, 0f };
	*uParam2 = 0f;
	switch (iParam0)
	{
		case 0:
			*uParam1 = { -829.842f, -191.7454f, 36.4386f };
			*uParam2 = 29.5061f;
			break;
		
		case 1:
			*uParam1 = { 129.8484f, -1716.528f, 28.0702f };
			*uParam2 = 50.3483f;
			break;
		
		case 2:
			*uParam1 = { -1296.913f, -1120.999f, 5.3951f };
			*uParam2 = 0.9933f;
			break;
		
		case 3:
			*uParam1 = { 1938.028f, 3718.736f, 31.3154f };
			*uParam2 = 118.2305f;
			break;
		
		case 4:
			*uParam1 = { 1197.866f, -469.3809f, 65.0885f };
			*uParam2 = 346.4477f;
			break;
		
		case 5:
			*uParam1 = { -32.2161f, -135.8212f, 56.0532f };
			*uParam2 = 186.0052f;
			break;
		
		case 6:
			*uParam1 = { -287.7696f, 6238.081f, 30.2902f };
			*uParam2 = 316.1349f;
			break;
		
		case 7:
			*uParam1 = { 99.2876f, -1395.16f, 28.2759f };
			*uParam2 = 320.2739f;
			break;
		
		case 8:
			*uParam1 = { 1679.445f, 4819.056f, 41.0035f };
			*uParam2 = 4.6192f;
			break;
		
		case 9:
			*uParam1 = { 411.3063f, -809.1863f, 28.1554f };
			*uParam2 = 1.8972f;
			break;
		
		case 10:
			*uParam1 = { -1088.054f, 2699.167f, 19.2748f };
			*uParam2 = 129.7382f;
			break;
		
		case 11:
			*uParam1 = { 1194.163f, 2695.644f, 36.9225f };
			*uParam2 = 1.1454f;
			break;
		
		case 12:
			*uParam1 = { -821.2829f, -1088.027f, 10.0499f };
			*uParam2 = 120.5883f;
			break;
		
		case 13:
			*uParam1 = { -3.3416f, 6521.303f, 30.2961f };
			*uParam2 = 316.4451f;
			break;
		
		case 14:
			*uParam1 = { -1208.417f, -785.9635f, 16.0139f };
			*uParam2 = 36.3181f;
			break;
		
		case 15:
			*uParam1 = { 623.1845f, 2739.191f, 40.9588f };
			*uParam2 = 3.5411f;
			break;
		
		case 16:
			*uParam1 = { 130.9555f, -198.2084f, 53.41f };
			*uParam2 = 251.3506f;
			break;
		
		case 17:
			*uParam1 = { -3164.065f, 1067.317f, 19.6778f };
			*uParam2 = 101.2229f;
			break;
		
		case 18:
			*uParam1 = { -713.2797f, -174.2767f, 35.8962f };
			*uParam2 = 29.8138f;
			break;
		
		case 19:
			*uParam1 = { -147.0616f, -306.4322f, 37.7912f };
			*uParam2 = 160.4526f;
			break;
		
		case 20:
			*uParam1 = { -1461.355f, -230.6092f, 48.3064f };
			*uParam2 = 318.7851f;
			break;
		
		case 21:
			*uParam1 = { -1347.739f, -1278.573f, 3.8952f };
			*uParam2 = 17.9365f;
			break;
		
		case 22:
			*uParam1 = { 325.6833f, 164.3263f, 102.4425f };
			*uParam2 = 68.6407f;
			break;
		
		case 23:
			*uParam1 = { 1858.774f, 3742.393f, 32.0779f };
			*uParam2 = 301.2329f;
			break;
		
		case 24:
			*uParam1 = { -286.3272f, 6202.802f, 30.3323f };
			*uParam2 = 225.1334f;
			break;
		
		case 25:
			*uParam1 = { -1161.596f, -1417.7f, 3.712f };
			*uParam2 = 246.9161f;
			break;
		
		case 26:
			*uParam1 = { 1308.952f, -1660.611f, 50.2362f };
			*uParam2 = 163.5456f;
			break;
		
		case 27:
			*uParam1 = { -3161.585f, 1074.214f, 19.6847f };
			*uParam2 = 98.6092f;
			break;
		
		case 28:
			*uParam1 = { 28.423f, -1110.814f, 28.2848f };
			*uParam2 = 85.2495f;
			break;
		
		case 29:
			*uParam1 = { 1704.966f, 3749.709f, 33.0188f };
			*uParam2 = 45.6778f;
			break;
		
		case 30:
			*uParam1 = { 223.949f, -38.7894f, 68.6483f };
			*uParam2 = 159.4265f;
			break;
		
		case 31:
			*uParam1 = { 837.7854f, -1017.963f, 26.3045f };
			*uParam2 = 181.0445f;
			break;
		
		case 32:
			*uParam1 = { -313.1914f, 6093.351f, 30.4625f };
			*uParam2 = 315.8405f;
			break;
		
		case 33:
			*uParam1 = { -663.4631f, -952.8069f, 20.3143f };
			*uParam2 = 92.6796f;
			break;
		
		case 34:
			*uParam1 = { -1323.06f, -392.8577f, 35.4596f };
			*uParam2 = 210.7398f;
			break;
		
		case 35:
			*uParam1 = { -1106.102f, 2684.35f, 18.0953f };
			*uParam2 = 127.0383f;
			break;
		
		case 36:
			*uParam1 = { -3157.932f, 1081.309f, 19.6953f };
			*uParam2 = 100.2942f;
			break;
		
		case 37:
			*uParam1 = { 2562.882f, 312.8641f, 107.4612f };
			*uParam2 = 179.205f;
			break;
		
		case 38:
			*uParam1 = { 822.48f, -2142.875f, 27.8496f };
			*uParam2 = 355.0598f;
			break;
		
		case 39:
			*uParam1 = { -1137.053f, -1993.916f, 12.1677f };
			*uParam2 = 43.1213f;
			break;
		
		case 40:
			*uParam1 = { 717.8107f, -1084.081f, 21.3094f };
			*uParam2 = 93.2649f;
			break;
		
		case 41:
			*uParam1 = { -387.6789f, -128.2568f, 37.6796f };
			*uParam2 = 119.1085f;
			break;
		
		case 42:
			*uParam1 = { 117.8835f, 6599.415f, 31.0134f };
			*uParam2 = 90.7225f;
			break;
		
		case 43:
			*uParam1 = { 1201.709f, 2664.813f, 36.8102f };
			*uParam2 = 133.9002f;
			break;
		
		case 44:
			*uParam1 = { -200.1521f, -1297.502f, 30.296f };
			*uParam2 = 269.0687f;
			break;
		
		case 45:
			*uParam1 = { 0f, 0f, 0f };
			*uParam2 = 0f;
			break;
	}
	return !func_74(*uParam1, 0f, 0f, 0f, 0);
}

int func_74(vector3 vParam0, vector3 vParam3, int iParam6)//Position - 0x6294
{
	if (iParam6)
	{
		return (vParam0.x == vParam3.x && vParam0.y == vParam3.y);
	}
	return ((vParam0.x == vParam3.x && vParam0.y == vParam3.y) && vParam0.y == vParam3.y);
}

bool func_75(var uParam0)//Position - 0x62DB
{
	if (!entity::is_entity_dead(player::player_ped_id(), 0) && !ped::is_ped_injured(player::player_ped_id()))
	{
		if (func_86())
		{
			*uParam0 = func_81(entity::get_entity_coords(player::player_ped_id(), 0), 6, -1, 0, 1, -1);
			if (func_80(*uParam0) && !func_76(*uParam0))
			{
				return true;
			}
		}
	}
	return false;
}

int func_76(int iParam0)//Position - 0x6336
{
	return func_77(iParam0, 0, 1);
}

int func_77(int iParam0, int iParam1, int iParam2)//Position - 0x6346
{
	if (iParam2)
	{
		return gameplay::is_bit_set(Global_91458.f_1308[iParam0], iParam1);
	}
	else if (network::network_is_game_in_progress())
	{
		if (func_79() == 0)
		{
			return gameplay::is_bit_set(func_57(func_78(iParam0), -1, 0), iParam1);
		}
	}
	else
	{
		return gameplay::is_bit_set(Global_101553.f_668[iParam0], iParam1);
	}
	return false;
}

int func_78(int iParam0)//Position - 0x63A6
{
	switch (iParam0)
	{
		case 0:
			return 820;
			break;
		
		case 1:
			return 821;
			break;
		
		case 2:
			return 822;
			break;
		
		case 3:
			return 823;
			break;
		
		case 4:
			return 824;
			break;
		
		case 5:
			return 825;
			break;
		
		case 6:
			return 826;
			break;
		
		case 7:
			return 827;
			break;
		
		case 8:
			return 828;
			break;
		
		case 9:
			return 829;
			break;
		
		case 10:
			return 830;
			break;
		
		case 11:
			return 831;
			break;
		
		case 12:
			return 832;
			break;
		
		case 13:
			return 833;
			break;
		
		case 14:
			return 834;
			break;
		
		case 15:
			return 836;
			break;
		
		case 16:
			return 837;
			break;
		
		case 17:
			return 838;
			break;
		
		case 18:
			return 839;
			break;
		
		case 19:
			return 840;
			break;
		
		case 20:
			return 841;
			break;
		
		case 21:
			return 842;
			break;
		
		case 22:
			return 843;
			break;
		
		case 23:
			return 844;
			break;
		
		case 24:
			return 845;
			break;
		
		case 25:
			return 846;
			break;
		
		case 26:
			return 847;
			break;
		
		case 27:
			return 848;
			break;
		
		case 28:
			return 849;
			break;
		
		case 29:
			return 850;
			break;
		
		case 30:
			return 851;
			break;
		
		case 31:
			return 852;
			break;
		
		case 32:
			return 853;
			break;
		
		case 33:
			return 854;
			break;
		
		case 34:
			return 855;
			break;
		
		case 35:
			return 856;
			break;
		
		case 36:
			return 857;
			break;
		
		case 37:
			return 858;
			break;
		
		case 38:
			return 859;
			break;
		
		case 39:
			return 860;
			break;
		
		case 40:
			return 864;
			break;
		
		case 41:
			return 865;
			break;
		
		case 42:
			return 866;
			break;
		
		case 43:
			return 867;
			break;
		
		case 44:
			return 4442;
			break;
		
		case 45:
			return 3776;
			break;
		
		default:
			break;
	}
	return 4617;
}

var func_79()//Position - 0x666D
{
	return Global_25185;
}

int func_80(int iParam0)//Position - 0x6678
{
	return func_77(iParam0, 5, 1);
}

int func_81(vector3 vParam0, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x6688
{
	int iVar0;
	float fVar1;
	float fVar2;
	int iVar3;
	
	fVar2 = 1000000f;
	iVar3 = -1;
	iVar0 = 0;
	while (iVar0 <= 45)
	{
		if (iParam3 == 6 || iParam3 == func_85(iVar0))
		{
			if (!iParam5 || func_84(iVar0))
			{
				fVar1 = gameplay::get_distance_between_coords(vParam0, func_82(iVar0, 0), 1);
				if (((fVar1 < fVar2 && (fVar1 <= IntToFloat(iParam4) || iParam4 == -1)) && (iParam6 || iVar0 != 21)) && iVar0 != iParam7)
				{
					fVar2 = fVar1;
					iVar3 = iVar0;
				}
			}
		}
		iVar0++;
	}
	return iVar3;
}

Vector3 func_82(int iParam0, int iParam1)//Position - 0x672A
{
	switch (iParam0)
	{
		case -1:
			return 0f, 0f, 0f;
			break;
		
		case 0:
			return -821.9946f, -187.1776f, 36.5689f;
			break;
		
		case 1:
			return 133.5702f, -1710.918f, 28.2916f;
			break;
		
		case 2:
			return -1287.082f, -1116.558f, 5.9901f;
			break;
		
		case 3:
			return 1933.119f, 3726.079f, 31.8444f;
			break;
		
		case 4:
			return 1208.333f, -470.917f, 65.208f;
			break;
		
		case 5:
			return -30.7448f, -148.4921f, 56.0765f;
			break;
		
		case 6:
			return -280.8165f, 6231.771f, 30.6955f;
			break;
		
		case 7:
			return 80.665f, -1391.669f, 28.3761f;
			break;
		
		case 8:
			return 1687.881f, 4820.55f, 41.0096f;
			break;
		
		case 9:
			return 419.531f, -807.5787f, 28.4896f;
			break;
		
		case 10:
			return -1094.049f, 2704.171f, 18.0873f;
			break;
		
		case 11:
			return 1197.972f, 2704.22f, 37.1572f;
			break;
		
		case 12:
			return -818.6218f, -1077.533f, 10.3282f;
			break;
		
		case 13:
			return -0.2361f, 6516.045f, 30.8684f;
			break;
		
		case 14:
			return -1199.809f, -776.6886f, 16.3237f;
			break;
		
		case 15:
			return 618.1857f, 2752.567f, 41.0881f;
			break;
		
		case 16:
			return 126.6853f, -212.5027f, 53.5578f;
			break;
		
		case 17:
			return -3168.966f, 1055.287f, 19.8632f;
			break;
		
		case 18:
			return -715.3598f, -155.7742f, 36.4105f;
			break;
		
		case 19:
			return -158.2199f, -304.9663f, 38.735f;
			break;
		
		case 20:
			return -1455.005f, -233.1862f, 48.7936f;
			break;
		
		case 21:
			return -1335.973f, -1278.555f, 3.8598f;
			break;
		
		case 22:
			return 321.6098f, 179.4165f, 102.5865f;
			break;
		
		case 23:
			return 1861.685f, 3750.08f, 32.0318f;
			break;
		
		case 24:
			return -290.1603f, 6199.095f, 30.4871f;
			break;
		
		case 25:
			return -1153.948f, -1425.019f, 3.9544f;
			break;
		
		case 26:
			return 1322.455f, -1651.125f, 51.1885f;
			break;
		
		case 27:
			return -3169.42f, 1074.727f, 19.8343f;
			break;
		
		case 28:
			return 17.6804f, -1114.288f, 28.797f;
			break;
		
		case 29:
			return 1697.979f, 3753.2f, 33.7053f;
			break;
		
		case 30:
			return 245.2711f, -45.8126f, 68.941f;
			break;
		
		case 31:
			return 844.1248f, -1025.571f, 27.1948f;
			break;
		
		case 32:
			return -325.8904f, 6077.026f, 30.4548f;
			break;
		
		case 33:
			return -664.2178f, -943.3646f, 20.8292f;
			break;
		
		case 34:
			return -1313.948f, -390.9637f, 35.592f;
			break;
		
		case 35:
			return -1111.238f, 2688.463f, 17.6131f;
			break;
		
		case 36:
			return -3165.231f, 1082.855f, 19.8438f;
			break;
		
		case 37:
			return 2569.612f, 302.576f, 107.7349f;
			break;
		
		case 38:
			return 811.8699f, -2149.102f, 28.6363f;
			break;
		
		case 39:
			return -1147.314f, -1992.434f, 12.1803f;
			break;
		
		case 40:
			return 724.524f, -1089.081f, 21.1692f;
			break;
		
		case 41:
			return -354.5272f, -135.4011f, 38.185f;
			break;
		
		case 42:
			return 113.2615f, 6624.28f, 30.7871f;
			break;
		
		case 43:
			return 1174.707f, 2644.45f, 36.7552f;
			break;
		
		case 44:
			if (iParam1)
			{
				return -211.5f, -1324.2f, 30.296f;
			}
			else
			{
				return -205.6654f, -1311.113f, 30.296f;
			}
			break;
		
		case 45:
			return func_83(Global_92918);
			break;
	}
	return 1000000f, 1000000f, 1000000f;
}

Vector3 func_83(int iParam0)//Position - 0x6C44
{
	switch (iParam0)
	{
		case 1:
			return 1060f, -2990f, -35f;
			break;
		
		case 2:
			return 1060f, -2990f, -35f;
			break;
		
		case 3:
			return 1060f, -2990f, -35f;
			break;
		
		case 4:
			return 1102.515f, -3158.888f, -38.5186f;
			break;
		
		case 5:
			return 1005.861f, -3156.162f, -39.907f;
			break;
		
		default:
			return 0f, 0f, -200f;
			break;
	}
	return 0f, 0f, -200f;
}

int func_84(int iParam0)//Position - 0x6CEE
{
	return func_77(iParam0, 0, 0);
}

int func_85(int iParam0)//Position - 0x6CFE
{
	switch (iParam0)
	{
		case -1:
			return 6;
			break;
		
		case 0:
			return 0;
			break;
		
		case 1:
			return 0;
			break;
		
		case 2:
			return 0;
			break;
		
		case 3:
			return 0;
			break;
		
		case 4:
			return 0;
			break;
		
		case 5:
			return 0;
			break;
		
		case 6:
			return 0;
			break;
		
		case 7:
			return 1;
			break;
		
		case 8:
			return 1;
			break;
		
		case 9:
			return 1;
			break;
		
		case 10:
			return 1;
			break;
		
		case 11:
			return 1;
			break;
		
		case 12:
			return 1;
			break;
		
		case 13:
			return 1;
			break;
		
		case 14:
			return 1;
			break;
		
		case 15:
			return 1;
			break;
		
		case 16:
			return 1;
			break;
		
		case 17:
			return 1;
			break;
		
		case 18:
			return 1;
			break;
		
		case 19:
			return 1;
			break;
		
		case 20:
			return 1;
			break;
		
		case 21:
			return 1;
			break;
		
		case 22:
			return 2;
			break;
		
		case 23:
			return 2;
			break;
		
		case 24:
			return 2;
			break;
		
		case 25:
			return 2;
			break;
		
		case 26:
			return 2;
			break;
		
		case 27:
			return 2;
			break;
		
		case 28:
			return 3;
			break;
		
		case 29:
			return 3;
			break;
		
		case 30:
			return 3;
			break;
		
		case 31:
			return 3;
			break;
		
		case 32:
			return 3;
			break;
		
		case 33:
			return 3;
			break;
		
		case 34:
			return 3;
			break;
		
		case 35:
			return 3;
			break;
		
		case 36:
			return 3;
			break;
		
		case 37:
			return 3;
			break;
		
		case 38:
			return 3;
			break;
		
		case 39:
			return 4;
			break;
		
		case 40:
			return 4;
			break;
		
		case 41:
			return 4;
			break;
		
		case 42:
			return 4;
			break;
		
		case 43:
			return 4;
			break;
		
		case 44:
			return 4;
			break;
		
		case 45:
			return 5;
			break;
	}
	return 6;
}

int func_86()//Position - 0x6F71
{
	return Global_91458.f_303 > 0;
}

var func_87()//Position - 0x6F82
{
	var uVar0;
	
	func_97(&uVar0, time::get_clock_seconds());
	func_96(&uVar0, time::get_clock_minutes());
	func_95(&uVar0, time::get_clock_hours());
	func_90(&uVar0, time::get_clock_day_of_month());
	func_89(&uVar0, time::get_clock_month());
	func_88(&uVar0, time::get_clock_year());
	return uVar0;
}

void func_88(var uParam0, int iParam1)//Position - 0x6FC8
{
	if (iParam1 <= 0)
	{
		return;
	}
	if (iParam1 > 2043 || iParam1 < 1979)
	{
		return;
	}
	*uParam0 = (*uParam0 - *uParam0 & 2080374784);
	if (iParam1 < 2011)
	{
		*uParam0 = (*uParam0 || system::shift_left((2011 - iParam1), 26));
		*uParam0 |= -2147483648;
	}
	else
	{
		*uParam0 = (*uParam0 || system::shift_left((iParam1 - 2011), 26));
		*uParam0 = (*uParam0 - *uParam0 & -2147483648);
	}
}

void func_89(var uParam0, int iParam1)//Position - 0x704E
{
	if (iParam1 < 0 || iParam1 > 11)
	{
		return;
	}
	*uParam0 = (*uParam0 - *uParam0 & 15);
	*uParam0 = (*uParam0 || iParam1);
}

void func_90(var uParam0, int iParam1)//Position - 0x7081
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_94(*uParam0);
	iVar1 = func_92(*uParam0);
	if (iParam1 < 1 || iParam1 > func_91(iVar0, iVar1))
	{
		return;
	}
	*uParam0 = (*uParam0 - *uParam0 & 496);
	*uParam0 = (*uParam0 || system::shift_left(iParam1, 4));
}

int func_91(int iParam0, int iParam1)//Position - 0x70D2
{
	if (iParam1 < 0)
	{
		iParam1 = 0;
	}
	switch (iParam0)
	{
		case 0:
		case 2:
		case 4:
		case 6:
		case 7:
		case 9:
		case 11:
			return 31;
			break;
		
		case 3:
		case 5:
		case 8:
		case 10:
			return 30;
			break;
		
		case 1:
			if ((iParam1 % 4) == 0)
			{
				if ((iParam1 % 100) != 0)
				{
					return 29;
				}
				else if ((iParam1 % 400) == 0)
				{
					return 29;
				}
			}
			return 28;
			break;
	}
	return 30;
}

var func_92(int iParam0)//Position - 0x7174
{
	return (system::shift_right(iParam0, 26) & 31 * func_93(gameplay::is_bit_set(iParam0, 31), -1, 1)) + 2011;
}

int func_93(int iParam0, int iParam1, int iParam2)//Position - 0x7199
{
	if (iParam0)
	{
		return iParam1;
	}
	return iParam2;
}

int func_94(var uParam0)//Position - 0x71B0
{
	return uParam0 & 15;
}

void func_95(var uParam0, int iParam1)//Position - 0x71BD
{
	if (iParam1 < 0 || iParam1 > 24)
	{
		return;
	}
	*uParam0 = (*uParam0 - *uParam0 & 15872);
	*uParam0 = (*uParam0 || system::shift_left(iParam1, 9));
}

void func_96(var uParam0, int iParam1)//Position - 0x71F7
{
	if (iParam1 < 0 || iParam1 >= 60)
	{
		return;
	}
	*uParam0 = (*uParam0 - *uParam0 & 1032192);
	*uParam0 = (*uParam0 || system::shift_left(iParam1, 14));
}

void func_97(var uParam0, int iParam1)//Position - 0x7232
{
	if (iParam1 < 0 || iParam1 >= 60)
	{
		return;
	}
	*uParam0 = (*uParam0 - *uParam0 & 66060288);
	*uParam0 = (*uParam0 || system::shift_left(iParam1, 20));
}

int func_98(char* sParam0)//Position - 0x726E
{
	if (gameplay::are_strings_equal("BailBond1", sParam0))
	{
		return 0;
	}
	else if (gameplay::are_strings_equal("BailBond2", sParam0))
	{
		return 1;
	}
	else if (gameplay::are_strings_equal("BailBond3", sParam0))
	{
		return 2;
	}
	else if (gameplay::are_strings_equal("BailBond4", sParam0))
	{
		return 3;
	}
	return -1;
}

struct<2> func_99(int iParam0)//Position - 0x72C4
{
	struct<2> Var0;
	
	StringCopy(&Var0, "", 8);
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var0, "ABI1", 8);
			break;
		
		case 1:
			StringCopy(&Var0, "ABI2", 8);
			break;
		
		case 2:
			StringCopy(&Var0, "BA1", 8);
			break;
		
		case 3:
			StringCopy(&Var0, "BA2", 8);
			break;
		
		case 4:
			StringCopy(&Var0, "BA3", 8);
			break;
		
		case 5:
			StringCopy(&Var0, "BA3A", 8);
			break;
		
		case 6:
			StringCopy(&Var0, "BA3C", 8);
			break;
		
		case 7:
			StringCopy(&Var0, "BA4", 8);
			break;
		
		case 8:
			StringCopy(&Var0, "DRE1", 8);
			break;
		
		case 9:
			StringCopy(&Var0, "EPS1", 8);
			break;
		
		case 10:
			StringCopy(&Var0, "EPS2", 8);
			break;
		
		case 11:
			StringCopy(&Var0, "EPS3", 8);
			break;
		
		case 12:
			StringCopy(&Var0, "EPS4", 8);
			break;
		
		case 13:
			StringCopy(&Var0, "EPS5", 8);
			break;
		
		case 14:
			StringCopy(&Var0, "EPS6", 8);
			break;
		
		case 15:
			StringCopy(&Var0, "EPS7", 8);
			break;
		
		case 16:
			StringCopy(&Var0, "EPS8", 8);
			break;
		
		case 17:
			StringCopy(&Var0, "EXT1", 8);
			break;
		
		case 18:
			StringCopy(&Var0, "EXT2", 8);
			break;
		
		case 19:
			StringCopy(&Var0, "EXT3", 8);
			break;
		
		case 20:
			StringCopy(&Var0, "EXT4", 8);
			break;
		
		case 21:
			StringCopy(&Var0, "FAN1", 8);
			break;
		
		case 22:
			StringCopy(&Var0, "FAN2", 8);
			break;
		
		case 23:
			StringCopy(&Var0, "FAN3", 8);
			break;
		
		case 24:
			StringCopy(&Var0, "HAO1", 8);
			break;
		
		case 25:
			StringCopy(&Var0, "HUN1", 8);
			break;
		
		case 26:
			StringCopy(&Var0, "HUN2", 8);
			break;
		
		case 27:
			StringCopy(&Var0, "JOS1", 8);
			break;
		
		case 28:
			StringCopy(&Var0, "JOS2", 8);
			break;
		
		case 29:
			StringCopy(&Var0, "JOS3", 8);
			break;
		
		case 30:
			StringCopy(&Var0, "JOS4", 8);
			break;
		
		case 31:
			StringCopy(&Var0, "MAU1", 8);
			break;
		
		case 32:
			StringCopy(&Var0, "MIN1", 8);
			break;
		
		case 33:
			StringCopy(&Var0, "MIN2", 8);
			break;
		
		case 34:
			StringCopy(&Var0, "MIN3", 8);
			break;
		
		case 35:
			StringCopy(&Var0, "MRS1", 8);
			break;
		
		case 36:
			StringCopy(&Var0, "MRS2", 8);
			break;
		
		case 37:
			StringCopy(&Var0, "NI1", 8);
			break;
		
		case 38:
			StringCopy(&Var0, "NI1A", 8);
			break;
		
		case 39:
			StringCopy(&Var0, "NI1B", 8);
			break;
		
		case 40:
			StringCopy(&Var0, "NI1C", 8);
			break;
		
		case 41:
			StringCopy(&Var0, "NI1D", 8);
			break;
		
		case 42:
			StringCopy(&Var0, "NI2", 8);
			break;
		
		case 43:
			StringCopy(&Var0, "NI3", 8);
			break;
		
		case 44:
			StringCopy(&Var0, "OME1", 8);
			break;
		
		case 45:
			StringCopy(&Var0, "OME2", 8);
			break;
		
		case 46:
			StringCopy(&Var0, "PA1", 8);
			break;
		
		case 47:
			StringCopy(&Var0, "PA2", 8);
			break;
		
		case 48:
			StringCopy(&Var0, "PA3", 8);
			break;
		
		case 49:
			StringCopy(&Var0, "PA3A", 8);
			break;
		
		case 50:
			StringCopy(&Var0, "PA3B", 8);
			break;
		
		case 51:
			StringCopy(&Var0, "PA4", 8);
			break;
		
		case 52:
			StringCopy(&Var0, "RAM1", 8);
			break;
		
		case 53:
			StringCopy(&Var0, "RAM2", 8);
			break;
		
		case 54:
			StringCopy(&Var0, "RAM3", 8);
			break;
		
		case 55:
			StringCopy(&Var0, "RAM4", 8);
			break;
		
		case 56:
			StringCopy(&Var0, "RAM5", 8);
			break;
		
		case 57:
			StringCopy(&Var0, "SAS1", 8);
			break;
		
		case 58:
			StringCopy(&Var0, "TON1", 8);
			break;
		
		case 59:
			StringCopy(&Var0, "TON2", 8);
			break;
		
		case 60:
			StringCopy(&Var0, "TON3", 8);
			break;
		
		case 61:
			StringCopy(&Var0, "TON4", 8);
			break;
		
		case 62:
			StringCopy(&Var0, "TON5", 8);
			break;
		
		default:
			break;
	}
	return Var0;
}

int func_100(char* sParam0, int iParam1)//Position - 0x7710
{
	int iVar0;
	char* sVar1;
	int iVar33;
	int iVar34;
	
	iVar33 = gameplay::get_hash_key(sParam0);
	iVar34 = 0;
	iVar34 = 0;
	while (iVar34 < 63)
	{
		iVar0 = iVar34;
		func_101(iVar0, &sVar1);
		if (gameplay::get_hash_key(sVar1) == iVar33)
		{
			return iVar0;
		}
		iVar34++;
	}
	if (iParam1 == 0)
	{
	}
	return -1;
}

void func_101(int iParam0, var uParam1)//Position - 0x7759
{
	switch (iParam0)
	{
		case 0:
			func_102(uParam1, "Abigail1", func_104(iParam0), 0, 0, 4, -1604.668f, 5239.1f, 3.01f, 66, "", 109, 0, "ambient_Diving", 0, 0, 1, 4, 1, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 1:
			func_102(uParam1, "Abigail2", func_104(iParam0), 0, 0, 4, -1592.84f, 5214.04f, 3.01f, 400, "", 110, 0, "", 0, 0, -1, 4, 1, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 2:
			func_102(uParam1, "Barry1", func_104(iParam0), 0, 1, 4, 190.26f, -956.35f, 29.63f, 381, "", 74, 0, "", 0, 1, -1, 4, 1, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 3:
			func_102(uParam1, "Barry2", func_104(iParam0), 0, 1, 4, 190.26f, -956.35f, 29.63f, 381, "", -1, 0, "", 0, 1, -1, 4, 4, 0, 2359, func_103(iParam0), 1, 1);
			break;
		
		case 4:
			func_102(uParam1, "Barry3", func_104(iParam0), 0, 1, 4, 414f, -761f, 29f, 381, "", -1, 0, "", 164, 1, -1, 0, 2, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 5:
			func_102(uParam1, "Barry3A", func_104(iParam0), 1, 1, 0, 1199.27f, -1255.63f, 34.23f, 381, "BARSTASH", 84, 0, "", 166, 0, 7, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 6:
			func_102(uParam1, "Barry3C", func_104(iParam0), 3, 1, 0, -468.9f, -1713.06f, 18.21f, 381, "", 84, 0, "", 166, 0, 7, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 7:
			func_102(uParam1, "Barry4", func_104(iParam0), 0, 1, 4, 237.65f, -385.41f, 44.4f, 381, "", 85, 0, "postRC_Barry4", 0, 0, -1, 4, 2, 800, 2000, func_103(iParam0), 0, 0);
			break;
		
		case 8:
			func_102(uParam1, "Dreyfuss1", func_104(iParam0), 0, 2, 4, -1458.97f, 485.99f, 115.38f, 66, "LETTERS_HINT", 106, 0, "", 0, 0, -1, 4, 2, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 9:
			func_102(uParam1, "Epsilon1", func_104(iParam0), 0, 3, 4, -1622.89f, 4204.87f, 83.3f, 66, "", 86, 0, "", 0, 1, 10, 4, 1, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 10:
			func_102(uParam1, "Epsilon2", func_104(iParam0), 0, 3, 4, 242.7f, 362.7f, 104.74f, 206, "", 87, 16, "", 0, 0, 11, 4, 1, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 11:
			func_102(uParam1, "Epsilon3", func_104(iParam0), 0, 3, 4, 1835.53f, 4705.86f, 38.1f, 206, "", 88, 16, "epsCars", 0, 0, 12, 4, 1, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 12:
			func_102(uParam1, "Epsilon4", func_104(iParam0), 0, 3, 4, 1826.13f, 4698.88f, 38.92f, 206, "", 90, 16, "postRC_Epsilon4", 0, 0, 13, 4, 1, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 13:
			func_102(uParam1, "Epsilon5", func_104(iParam0), 0, 3, 4, 637.02f, 119.7093f, 89.5f, 206, "", 89, 16, "epsRobes", 0, 0, 14, 4, 1, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 14:
			func_102(uParam1, "Epsilon6", func_104(iParam0), 0, 3, 4, -2892.93f, 3192.37f, 11.66f, 206, "", 93, 0, "", 0, 0, 15, 4, 1, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 15:
			func_102(uParam1, "Epsilon7", func_104(iParam0), 0, 3, 4, 524.43f, 3079.82f, 39.48f, 206, "", -1, 16, "epsDesert", 0, 0, 16, 4, 1, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 16:
			func_102(uParam1, "Epsilon8", func_104(iParam0), 0, 3, 4, -697.75f, 45.38f, 43.03f, 206, "", 94, 16, "epsilonTract", 0, 0, -1, 4, 1, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 17:
			func_102(uParam1, "Extreme1", func_104(iParam0), 0, 4, 4, -188.22f, 1296.1f, 302.86f, 66, "", -1, 0, "", 4, 1, 18, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 18:
			func_102(uParam1, "Extreme2", func_104(iParam0), 0, 4, 4, -954.19f, -2760.05f, 14.64f, 382, "", 96, 0, "", 171, 0, 19, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 19:
			func_102(uParam1, "Extreme3", func_104(iParam0), 0, 4, 4, -63.8f, -809.5f, 321.8f, 382, "", 97, 0, "", 0, 0, 20, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 20:
			func_102(uParam1, "Extreme4", func_104(iParam0), 0, 4, 4, 1731.41f, 96.96f, 170.39f, 382, "", 98, 16, "", 0, 0, -1, 4, 2, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 21:
			func_102(uParam1, "Fanatic1", func_104(iParam0), 0, 5, 4, -1877.82f, -440.649f, 45.05f, 405, "", 74, 0, "", 0, 1, -1, 4, 1, 700, 2000, func_103(iParam0), 1, 0);
			break;
		
		case 22:
			func_102(uParam1, "Fanatic2", func_104(iParam0), 0, 5, 4, 809.66f, 1279.76f, 360.49f, 405, "", -1, 0, "", 0, 1, -1, 4, 4, 700, 2000, func_103(iParam0), 1, 0);
			break;
		
		case 23:
			func_102(uParam1, "Fanatic3", func_104(iParam0), 0, 5, 4, -915.6f, 6139.2f, 5.5f, 405, "", -1, 0, "", 0, 1, -1, 4, 2, 700, 2000, func_103(iParam0), 0, 1);
			break;
		
		case 24:
			func_102(uParam1, "Hao1", func_104(iParam0), 0, 6, 4, -72.29f, -1260.63f, 28.14f, 66, "", -1, 0, "controller_Races", 13, 1, -1, 4, 2, 2000, 500, func_103(iParam0), 0, 1);
			break;
		
		case 25:
			func_102(uParam1, "Hunting1", func_104(iParam0), 0, 7, 4, 1804.32f, 3931.33f, 32.82f, 66, "", -1, 0, "", 174, 1, 26, 4, 4, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 26:
			func_102(uParam1, "Hunting2", func_104(iParam0), 0, 7, 4, -684.17f, 5839.16f, 16.09f, 384, "", 99, 0, "", 7, 0, -1, 4, 4, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 27:
			func_102(uParam1, "Josh1", func_104(iParam0), 0, 8, 4, -1104.93f, 291.25f, 64.3f, 66, "", -1, 0, "forSaleSigns", 0, 1, 28, 4, 4, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 28:
			func_102(uParam1, "Josh2", func_104(iParam0), 0, 8, 4, 565.39f, -1772.88f, 29.77f, 385, "", 105, 0, "", 0, 0, 29, 4, 4, 0, 2359, func_103(iParam0), 1, 1);
			break;
		
		case 29:
			func_102(uParam1, "Josh3", func_104(iParam0), 0, 8, 4, 565.39f, -1772.88f, 29.77f, 385, "", -1, 16, "", 0, 0, 30, 4, 4, 0, 2359, func_103(iParam0), 1, 1);
			break;
		
		case 30:
			func_102(uParam1, "Josh4", func_104(iParam0), 0, 8, 4, -1104.93f, 291.25f, 64.3f, 385, "", -1, 36, "", 0, 0, -1, 4, 4, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 31:
			func_102(uParam1, "Maude1", func_104(iParam0), 0, 9, 4, 2726.1f, 4145f, 44.3f, 66, "", -1, 0, "BailBond_Launcher", 0, 1, -1, 4, 4, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 32:
			func_102(uParam1, "Minute1", func_104(iParam0), 0, 10, 4, 327.85f, 3405.7f, 35.73f, 66, "", -1, 0, "", 0, 1, 33, 4, 4, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 33:
			func_102(uParam1, "Minute2", func_104(iParam0), 0, 10, 4, 18f, 4527f, 105f, 386, "", -1, 10, "", 0, 0, 34, 4, 4, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 34:
			func_102(uParam1, "Minute3", func_104(iParam0), 0, 10, 4, -303.82f, 6211.29f, 31.05f, 386, "", -1, 10, "", 0, 0, -1, 4, 4, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 35:
			func_102(uParam1, "MrsPhilips1", func_104(iParam0), 0, 11, 4, 1972.59f, 3816.43f, 32.42f, 66, "", -1, 0, "ambient_MrsPhilips", 0, 1, -1, 4, 4, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 36:
			func_102(uParam1, "MrsPhilips2", func_104(iParam0), 0, 11, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 0, 1, -1, 4, 4, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 37:
			func_102(uParam1, "Nigel1", func_104(iParam0), 0, 12, 4, -1097.16f, 790.01f, 164.52f, 66, "", -1, 0, "", 177, 1, -1, 1, 4, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 38:
			func_102(uParam1, "Nigel1A", func_104(iParam0), 0, 12, 1, -558.65f, 284.49f, 90.86f, 149, "NIGITEMS", 100, 0, "", 0, 0, 42, 4, 4, 0, 2359, func_103(iParam0), 1, 1);
			break;
		
		case 39:
			func_102(uParam1, "Nigel1B", func_104(iParam0), 0, 12, 1, -1034.15f, 366.08f, 80.11f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_103(iParam0), 1, 1);
			break;
		
		case 40:
			func_102(uParam1, "Nigel1C", func_104(iParam0), 0, 12, 1, -623.91f, -266.17f, 37.76f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_103(iParam0), 1, 1);
			break;
		
		case 41:
			func_102(uParam1, "Nigel1D", func_104(iParam0), 0, 12, 1, -1096.85f, 67.68f, 52.95f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_103(iParam0), 1, 1);
			break;
		
		case 42:
			func_102(uParam1, "Nigel2", func_104(iParam0), 0, 12, 4, -1310.7f, -640.22f, 26.54f, 149, "", -1, 8, "", 0, 0, 43, 4, 4, 0, 2359, func_103(iParam0), 1, 1);
			break;
		
		case 43:
			func_102(uParam1, "Nigel3", func_104(iParam0), 0, 12, 4, -44.75f, -1288.67f, 28.21f, 149, "", -1, 16, "postRC_Nigel3", 0, 0, -1, 4, 4, 0, 2359, func_103(iParam0), 1, 1);
			break;
		
		case 44:
			func_102(uParam1, "Omega1", func_104(iParam0), 0, 13, 4, 2468.51f, 3437.39f, 49.9f, 66, "", -1, 0, "spaceshipParts", 0, 1, 45, 4, 2, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 45:
			func_102(uParam1, "Omega2", func_104(iParam0), 0, 13, 4, 2319.44f, 2583.58f, 46.76f, 387, "", 107, 0, "", 0, 0, -1, 4, 2, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 46:
			func_102(uParam1, "Paparazzo1", func_104(iParam0), 0, 14, 4, -149.75f, 285.81f, 93.67f, 66, "", -1, 0, "", 0, 1, 47, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 47:
			func_102(uParam1, "Paparazzo2", func_104(iParam0), 0, 14, 4, -70.71f, 301.43f, 106.79f, 389, "", -1, 8, "", 0, 0, 48, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 48:
			func_102(uParam1, "Paparazzo3", func_104(iParam0), 0, 14, 4, -257.22f, 292.85f, 90.63f, 389, "", -1, 8, "", 183, 1, -1, 2, 2, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 49:
			func_102(uParam1, "Paparazzo3A", func_104(iParam0), 0, 14, 2, 305.52f, 157.19f, 102.94f, 389, "PAPPHOTO", 102, 0, "", 0, 0, 51, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 50:
			func_102(uParam1, "Paparazzo3B", func_104(iParam0), 0, 14, 2, 1040.96f, -534.42f, 60.17f, 389, "", 102, 0, "", 0, 0, 51, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 51:
			func_102(uParam1, "Paparazzo4", func_104(iParam0), 0, 14, 4, -484.2f, 229.68f, 82.21f, 389, "", -1, 8, "", 0, 1, -1, 4, 2, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 52:
			func_102(uParam1, "Rampage1", func_104(iParam0), 0, 15, 4, 908f, 3643.7f, 32.2f, 66, "", -1, 0, "", 0, 1, 54, 4, 4, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 54:
			func_102(uParam1, "Rampage3", func_104(iParam0), 0, 15, 4, 465.1f, -1849.3f, 27.8f, 84, "", -1, 0, "", 0, 1, 55, 4, 4, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 55:
			func_102(uParam1, "Rampage4", func_104(iParam0), 0, 15, 4, -161f, -1669.7f, 33f, 84, "", -1, 0, "", 0, 0, 56, 4, 4, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 56:
			func_102(uParam1, "Rampage5", func_104(iParam0), 0, 15, 4, -1298.2f, 2504.14f, 21.09f, 84, "", -1, 0, "", 0, 0, 53, 4, 4, 0, 2359, func_103(iParam0), 0, 0);
			break;
		
		case 53:
			func_102(uParam1, "Rampage2", func_104(iParam0), 0, 15, 4, 1181.5f, -400.1f, 67.5f, 84, "", -1, 0, "rampage_controller", 0, 0, -1, 4, 4, 0, 2359, func_103(iParam0), 1, 0);
			break;
		
		case 57:
			func_102(uParam1, "TheLastOne", func_104(iParam0), 0, 16, 4, -1298.98f, 4640.16f, 105.67f, 66, "", 133, 1, "", 0, 1, -1, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 58:
			func_102(uParam1, "Tonya1", func_104(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 66, "AM_H_RCFS", -1, 0, "ambient_TonyaCall", 24, 1, 59, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 59:
			func_102(uParam1, "Tonya2", func_104(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 388, "", -1, 48, "ambient_Tonya", 185, 0, 60, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 60:
			func_102(uParam1, "Tonya3", func_104(iParam0), 0, 17, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 187, 0, 61, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 61:
			func_102(uParam1, "Tonya4", func_104(iParam0), 0, 17, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 0, 0, 62, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		case 62:
			func_102(uParam1, "Tonya5", func_104(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 388, "", -1, 48, "", 0, 0, -1, 4, 2, 0, 2359, func_103(iParam0), 0, 1);
			break;
		
		default:
			break;
	}
}

void func_102(var uParam0, char* sParam1, struct<2> Param2, int iParam4, int iParam5, int iParam6, vector3 vParam7, int iParam10, char* sParam11, int iParam12, int iParam13, char* sParam14, int iParam15, int iParam16, int iParam17, int iParam18, int iParam19, int iParam20, int iParam21, var uParam22, int iParam23, int iParam24)//Position - 0x8911
{
	uParam0->f_4 = iParam5;
	*uParam0 = sParam1;
	uParam0->f_1 = { Param2 };
	uParam0->f_3 = iParam4;
	uParam0->f_5 = iParam6;
	uParam0->f_6 = { vParam7 };
	uParam0->f_9 = iParam10;
	StringCopy(&(uParam0->f_10), sParam11, 16);
	uParam0->f_14 = iParam12;
	uParam0->f_15 = iParam13;
	StringCopy(&(uParam0->f_16), sParam14, 24);
	uParam0->f_22 = iParam15;
	uParam0->f_23 = iParam16;
	uParam0->f_24 = iParam17;
	uParam0->f_25 = iParam18;
	uParam0->f_26 = iParam19;
	uParam0->f_27 = iParam20;
	uParam0->f_28 = iParam21;
	uParam0->f_29 = uParam22;
	uParam0->f_30 = iParam23;
	uParam0->f_31 = iParam24;
}

bool func_103(int iParam0)//Position - 0x89A2
{
	switch (iParam0)
	{
		case 0:
			return false;
			break;
		
		case 1:
			return false;
			break;
		
		case 2:
			return true;
			break;
		
		case 3:
			return true;
			break;
		
		case 4:
			return false;
			break;
		
		case 5:
			return true;
			break;
		
		case 6:
			return true;
			break;
		
		case 7:
			return false;
			break;
		
		case 8:
			return true;
			break;
		
		case 9:
			return false;
			break;
		
		case 10:
			return false;
			break;
		
		case 11:
			return false;
			break;
		
		case 12:
			return true;
			break;
		
		case 13:
			return false;
			break;
		
		case 14:
			return true;
			break;
		
		case 15:
			return false;
			break;
		
		case 16:
			return true;
			break;
		
		case 17:
			return true;
			break;
		
		case 18:
			return true;
			break;
		
		case 19:
			return true;
			break;
		
		case 20:
			return true;
			break;
		
		case 21:
			return true;
			break;
		
		case 22:
			return true;
			break;
		
		case 23:
			return true;
			break;
		
		case 24:
			return true;
			break;
		
		case 25:
			return true;
			break;
		
		case 26:
			return true;
			break;
		
		case 27:
			return false;
			break;
		
		case 28:
			return true;
			break;
		
		case 29:
			return true;
			break;
		
		case 30:
			return true;
			break;
		
		case 31:
			return false;
			break;
		
		case 32:
			return true;
			break;
		
		case 33:
			return true;
			break;
		
		case 34:
			return true;
			break;
		
		case 35:
			return false;
			break;
		
		case 36:
			return false;
			break;
		
		case 37:
			return false;
			break;
		
		case 38:
			return true;
			break;
		
		case 39:
			return true;
			break;
		
		case 40:
			return true;
			break;
		
		case 41:
			return true;
			break;
		
		case 42:
			return true;
			break;
		
		case 43:
			return true;
			break;
		
		case 44:
			return false;
			break;
		
		case 45:
			return false;
			break;
		
		case 46:
			return true;
			break;
		
		case 47:
			return true;
			break;
		
		case 48:
			return false;
			break;
		
		case 49:
			return true;
			break;
		
		case 50:
			return true;
			break;
		
		case 51:
			return true;
			break;
		
		case 52:
			return true;
			break;
		
		case 54:
			return true;
			break;
		
		case 55:
			return true;
			break;
		
		case 56:
			return true;
			break;
		
		case 53:
			return true;
			break;
		
		case 57:
			return true;
			break;
		
		case 58:
			return true;
			break;
		
		case 59:
			return true;
			break;
		
		case 60:
			return true;
			break;
		
		case 61:
			return true;
			break;
		
		case 62:
			return true;
			break;
		
		default:
			break;
	}
	return false;
}

struct<2> func_104(int iParam0)//Position - 0x8CE8
{
	struct<2> Var0;
	char[] cVar2[8];
	
	StringCopy(&Var0, "", 8);
	cVar2 = { func_99(iParam0) };
	if (gameplay::is_string_null_or_empty(&cVar2))
	{
	}
	else
	{
		StringCopy(&Var0, "RC_", 8);
		StringConCat(&Var0, &cVar2, 8);
	}
	return Var0;
}

int func_105(int iParam0)//Position - 0x8D1F
{
	switch (iParam0)
	{
		case 69:
		case 70:
			return func_106(Global_101553.f_7940.f_99.f_205[10]);
			break;
		
		case 74:
		case 75:
			return func_106(Global_101553.f_7940.f_99.f_205[8]);
			break;
		
		case 84:
		case 85:
			return func_106(Global_101553.f_7940.f_99.f_205[11]);
			break;
		
		case 90:
			return func_106(Global_101553.f_7940.f_99.f_205[7]);
			break;
		
		case 93:
			return func_106(Global_101553.f_7940.f_99.f_205[9]);
			break;
	}
	return 0;
}

int func_106(int iParam0)//Position - 0x8DDB
{
	switch (iParam0)
	{
		case 1:
		case 3:
		case 5:
		case 6:
		case 8:
			return 0;
			break;
		
		case 2:
		case 4:
		case 7:
		case 9:
			return 1;
			break;
	}
	return -1;
}

int func_107(char* sParam0, int iParam1)//Position - 0x8E2F
{
	int iVar0;
	int iVar1;
	
	iVar0 = gameplay::get_hash_key(sParam0);
	iVar1 = func_108(iVar0, 1);
	if (iVar1 == -1 && !iParam1)
	{
	}
	return iVar1;
}

int func_108(int iParam0, int iParam1)//Position - 0x8E59
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 94)
	{
		if (Global_82527[iVar0 /*34*/].f_6 == iParam0)
		{
			return iVar0;
		}
		iVar0++;
	}
	if (!iParam1)
	{
	}
	return -1;
}

void func_109(int iParam0)//Position - 0x8E8F
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	iVar1 = 0;
	iVar0 = 0;
	while (iVar0 < 3)
	{
		iVar1 = 0;
		while (iVar1 < 11)
		{
			Global_101553.f_25254.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_3 = Global_101553.f_25254.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/];
			Global_101553.f_25254.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_4 = Global_101553.f_25254.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_1;
			Global_101553.f_25254.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_5 = Global_101553.f_25254.f_233[iVar0 /*69*/].f_2[iVar1 /*6*/].f_2;
			iVar1++;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 10)
	{
		Global_52998[iVar0 /*3*/][0] = Global_101553.f_25254[iVar0];
		Global_52998.f_31[iVar0 /*3*/][0] = Global_101553.f_25254.f_11[iVar0];
		Global_52998.f_62[iVar0 /*3*/][0] = Global_101553.f_25254.f_22[iVar0];
		Global_52998.f_93[iVar0 /*3*/][0] = Global_101553.f_25254.f_33[iVar0];
		Global_52998.f_124[iVar0 /*3*/][0] = Global_101553.f_25254.f_44[iVar0];
		Global_52998.f_155[iVar0 /*3*/][0] = Global_101553.f_25254.f_55[iVar0];
		Global_52998.f_186[iVar0 /*3*/][0] = Global_101553.f_25254.f_66[iVar0];
		Global_52998.f_217[iVar0 /*3*/][0] = Global_101553.f_25254.f_77[iVar0];
		Global_52998.f_248[iVar0 /*3*/][0] = Global_101553.f_25254.f_88[iVar0];
		if (!iParam0)
		{
			Global_52998[iVar0 /*3*/][1] = Global_101553.f_25254[iVar0];
			Global_52998.f_31[iVar0 /*3*/][1] = Global_101553.f_25254.f_11[iVar0];
			Global_52998.f_62[iVar0 /*3*/][1] = Global_101553.f_25254.f_22[iVar0];
			Global_52998.f_93[iVar0 /*3*/][1] = Global_101553.f_25254.f_33[iVar0];
			Global_52998.f_124[iVar0 /*3*/][1] = Global_101553.f_25254.f_44[iVar0];
			Global_52998.f_155[iVar0 /*3*/][1] = Global_101553.f_25254.f_55[iVar0];
			Global_52998.f_186[iVar0 /*3*/][1] = Global_101553.f_25254.f_66[iVar0];
			Global_52998.f_217[iVar0 /*3*/][1] = Global_101553.f_25254.f_77[iVar0];
			Global_52998.f_248[iVar0 /*3*/][1] = Global_101553.f_25254.f_88[iVar0];
		}
		iVar0++;
	}
}

void func_110()//Position - 0x9111
{
	switch (iLocal_1067)
	{
		case 0:
			if (func_531())
			{
				func_526(14);
			}
			break;
		
		case 1:
			if (func_525())
			{
				func_526(14);
			}
			break;
		
		case 2:
			if (func_524())
			{
				func_526(14);
			}
			break;
		
		case 3:
			if (func_524())
			{
				func_526(14);
			}
			break;
		
		case 4:
			if (func_524())
			{
				func_526(14);
			}
			break;
		
		case 5:
			if (func_524())
			{
				func_526(14);
			}
			break;
		
		case 6:
			if (func_519())
			{
				func_526(14);
			}
			break;
		
		case 7:
			if (func_516())
			{
				func_526(14);
			}
			break;
		
		case 8:
			if (func_516())
			{
				func_526(14);
			}
			break;
		
		case 9:
			if (func_515())
			{
				func_526(14);
			}
			break;
		
		case 10:
			if (func_247())
			{
				func_526(14);
			}
			break;
		
		case 11:
			if (func_152())
			{
				func_526(14);
			}
			break;
		
		case 12:
			func_149();
			break;
	}
	gameplay::_0xDC0F817884CDD856(3, false);
	gameplay::_0xDC0F817884CDD856(5, false);
	func_148();
	func_111(0);
}

void func_111(int iParam0)//Position - 0x924B
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	iVar1 = 0;
	iVar2 = 19;
	if (iParam0 != 0)
	{
		iVar0 = 0;
		while (iVar0 <= 19)
		{
			if (Local_1708[iVar0 /*6*/] == iParam0)
			{
				iVar1 = iVar0;
				iVar2 = iVar0;
			}
			iVar0++;
		}
	}
	if (player::is_player_playing(player::player_id()))
	{
		iVar0 = iVar1;
		while (iVar0 <= iVar2)
		{
			if (Local_1708[iVar0 /*6*/].f_1 == 1)
			{
				if (iLocal_1067 >= Local_1708[iVar0 /*6*/].f_5)
				{
					Local_1708[iVar0 /*6*/].f_2 = 99;
				}
				switch (Local_1708[iVar0 /*6*/])
				{
					case 1:
						switch (Local_1708[iVar0 /*6*/].f_2)
						{
							case 0:
								if (iLocal_1067 == 1)
								{
									if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), -1139.074f, -1575.961f, 3.3289f, 1) < 200f)
									{
										func_543(2);
										Local_1708[iVar0 /*6*/].f_2++;
									}
								}
								else
								{
									if (iLocal_111 < 2)
									{
										func_543(2);
									}
									Local_1708[iVar0 /*6*/].f_2++;
								}
								break;
							
							case 1:
								if (!iLocal_112)
								{
									gameplay::clear_area(-1101.813f, -1618.129f, 3.5544f, 3f, 1, 0, 0, false);
									func_147(3, 12, 0);
									pathfind::set_ped_paths_in_area(Vector(3.943655f, -1586.096f, -1131.871f) - Vector(1.125f, 6.6875f, 5.5625f), Vector(3.943655f, -1586.096f, -1131.871f) + Vector(1.125f, 6.6875f, 5.5625f), false, 0);
									pathfind::set_ped_paths_in_area(Vector(4.110459f, -1656.14f, -1090.723f) - Vector(1f, 2.125f, 2.125f), Vector(4.110459f, -1656.14f, -1090.723f) + Vector(1f, 2.125f, 2.125f), false, 0);
									if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
									{
										entity::set_entity_load_collision_flag(Local_1071[2 /*14*/], true);
									}
									ped::add_scenario_blocking_area(Vector(4.7285f, -1719.19f, -1078.01f) - Vector(20f, 50f, 50f), Vector(4.7285f, -1719.19f, -1078.01f) + Vector(20f, 50f, 50f), 0, 1, 1, 1);
									ped::add_scenario_blocking_area(Vector(4.712814f, -1595.976f, -1077.122f) - Vector(20f, 50f, 50f), Vector(4.712814f, -1595.976f, -1077.122f) + Vector(20f, 50f, 50f), 0, 1, 1, 1);
									ped::add_scenario_blocking_area(Vector(4.623703f, -1649.837f, -1144.853f) - Vector(20f, 50f, 50f), Vector(4.623703f, -1649.837f, -1144.853f) + Vector(20f, 50f, 50f), 0, 1, 1, 1);
									ped::add_scenario_blocking_area(Vector(4.776398f, -1654.28f, -1018.07f) - Vector(20f, 50f, 50f), Vector(4.776398f, -1654.28f, -1018.07f) + Vector(20f, 50f, 50f), 0, 1, 1, 1);
									ped::add_scenario_blocking_area(-2000f, -1846f, 68f, -1120f, -580f, 83f, 0, 1, 1, 1);
									gameplay::clear_area(-1090.982f, -1632.927f, 3.7328f, 2f, 1, 0, 0, false);
									gameplay::clear_area(-1100.893f, -1618.562f, 3.7723f, 5f, 1, 0, 0, false);
									if (iLocal_1067 <= 4)
									{
										func_146(1, joaat("bison"), -1090.038f, -1634.969f, 4.1764f, 125.6f, -1027080192);
										entity::_0x3910051CCECDB00C(Local_1450[1 /*2*/], true);
										vehicle::set_vehicle_colours(Local_1450[1 /*2*/], 58, 63);
										Local_1071[4 /*14*/] = ped::create_ped_inside_vehicle(Local_1450[1 /*2*/], 26, iLocal_2219, -1, 1, true);
										Local_1071[5 /*14*/] = ped::create_ped_inside_vehicle(Local_1450[1 /*2*/], 26, iLocal_2219, 0, 1, true);
										ped::set_ped_combat_attributes(Local_1071[4 /*14*/], 3, false);
										ped::set_ped_combat_attributes(Local_1071[5 /*14*/], 3, false);
										vehicle::set_vehicle_lights(Local_1450[1 /*2*/], 1);
										vehicle::set_vehicle_engine_on(Local_1450[1 /*2*/], false, 1, 0);
										vehicle::set_vehicle_doors_locked(Local_1450[1 /*2*/], 3);
										ped::set_ped_combat_attributes(Local_1071[4 /*14*/], 14, false);
										ped::set_ped_combat_attributes(Local_1071[5 /*14*/], 14, false);
									}
									object::add_door_to_system(-967780114, joaat("prop_gar_door_03_ld"), -1074.65f, -1676.13f, 4.66f, 0, 1, 0);
									func_146(2, joaat("bison"), -1078.228f, -1651.632f, 4.192808f, -56.0181f, -1027080192);
									vehicle::set_vehicle_colours(Local_1450[2 /*2*/], 124, 124);
									vehicle::set_vehicle_doors_locked(Local_1450[2 /*2*/], 7);
									vehicle::set_vehicle_alarm(Local_1450[2 /*2*/], 1);
									if (iLocal_1067 <= 8)
									{
										func_146(6, joaat("penumbra"), -1090.608f, -1631.216f, 3.7328f, 307.1f, -1027080192);
										vehicle::set_disable_vehicle_petrol_tank_fires(Local_1450[6 /*2*/], 1);
										vehicle::set_vehicle_colours(Local_1450[6 /*2*/], 73, 73);
										vehicle::set_vehicle_doors_locked(Local_1450[6 /*2*/], 7);
										vehicle::set_vehicle_alarm(Local_1450[6 /*2*/], 1);
										entity::freeze_entity_position(Local_1450[6 /*2*/], true);
									}
									iLocal_1034 = pathfind::add_navmesh_blocking_object(-1090.411f, -1648.12f, 3.507f, 2.225f, 3.1754f, 1f, func_145(36f), 0, 7);
									iLocal_1035 = pathfind::add_navmesh_blocking_object(-1095f, -1655f, 4f, 14.648f, 8.071f, 2f, func_145(33.48f), 0, 7);
									func_134(94, 4);
									func_134(95, 4);
									if (object::does_pickup_exist(iLocal_1036))
									{
										object::remove_pickup(iLocal_1036);
									}
									iLocal_2223 = 0;
									gameplay::set_bit(&iLocal_2223, 1);
									iLocal_1036 = object::create_pickup_rotate(joaat("pickup_armour_standard"), -1064.439f, -1664.484f, 3.6409f, -90f, 0f, 83.88f, iLocal_2223, -1, 2, 1, 0);
									Local_1708[iVar0 /*6*/].f_2++;
								}
								break;
							
							case 2:
								if (!entity::does_entity_exist(iLocal_1951))
								{
									iLocal_1951 = object::get_closest_object_of_type(-1067f, -1665.61f, 4.79f, 1f, joaat("prop_gar_door_01"), 1, 0, 1);
								}
								if (!entity::does_entity_exist(iLocal_1952))
								{
									iLocal_1952 = object::get_closest_object_of_type(-1064.76f, -1668.76f, 4.79f, 1f, joaat("prop_gar_door_02"), 1, 0, 1);
								}
								if (entity::does_entity_exist(iLocal_1951) && entity::does_entity_exist(iLocal_1952))
								{
									entity::set_entity_invincible(iLocal_1951, true);
									entity::set_entity_invincible(iLocal_1952, true);
									Local_1708[iVar0 /*6*/].f_1 = 0;
								}
								break;
						}
						break;
					
					case 2:
						iVar3 = joaat("weapon_unarmed");
						switch (Local_1708[iVar0 /*6*/].f_2)
						{
							case 0:
								Local_1708[iVar0 /*6*/].f_2++;
								break;
							
							case 1:
								weapon::get_current_ped_weapon(player::player_ped_id(), &iVar3, 1);
								if (iVar3 != joaat("weapon_unarmed"))
								{
									Local_1708[iVar0 /*6*/].f_2++;
								}
								break;
							
							case 2:
								if (gameplay::get_game_timer() > Local_1708[iVar0 /*6*/].f_3 + 3000 || !ui::is_help_message_being_displayed())
								{
									if (controls::_0x0F70731BACCFBB96())
									{
										func_26("ARM2_HLP18ALT", 12000);
									}
									else
									{
										func_26("ARM2_HLP18", 12000);
									}
									Local_1708[iVar0 /*6*/].f_2++;
								}
								break;
							
							case 3:
								if (ped::is_ped_shooting(player::player_ped_id()) || ped::is_ped_injured(Local_1071[8 /*14*/]))
								{
									Local_1708[iVar0 /*6*/].f_2++;
									Local_1708[iVar0 /*6*/].f_3 = gameplay::get_game_timer() + 1000;
								}
								break;
							
							case 4:
								if (gameplay::get_game_timer() > Local_1708[iVar0 /*6*/].f_3)
								{
									if (func_27("ARM2_HLP18") || func_27("ARM2_HLP18ALT"))
									{
										ui::clear_help(1);
									}
									Local_1708[iVar0 /*6*/].f_1 = 0;
								}
								break;
						}
						break;
					
					case 4:
						if (entity::does_entity_exist(iLocal_1060))
						{
							if ((object::_0x52AF537A0C5B8AAD(uLocal_1948) && object::_0x899BA936634A322E(uLocal_1948) == 10) || iLocal_1067 == 9)
							{
								rope::_0xCC6E963682533882(iLocal_1060);
								Local_1708[iVar0 /*6*/].f_1 = 0;
							}
						}
						break;
					
					case 3:
						switch (Local_1708[iVar0 /*6*/].f_2)
						{
							case 0:
								if (iLocal_1067 > 1)
								{
									uLocal_1948 = object::_0xB48FCED898292E52(-1093.4f, -1653.1f, 3f, 10f, "DES_Scaffolding");
									if (object::_0x52AF537A0C5B8AAD(uLocal_1948))
									{
										object::_0x5C29F698D404C5E1(uLocal_1948, 2);
										func_127(79, 0, 0, 1, 0);
										Local_1708[iVar0 /*6*/].f_2++;
									}
								}
								break;
							
							case 1:
								if (object::_0x52AF537A0C5B8AAD(uLocal_1948))
								{
									if (object::_0x899BA936634A322E(uLocal_1948) == 3)
									{
										object::_0x5C29F698D404C5E1(uLocal_1948, 4);
									}
								}
								if (object::_0x52AF537A0C5B8AAD(uLocal_1948))
								{
									if (object::_0x899BA936634A322E(uLocal_1948) == 5)
									{
										Local_1708[iVar0 /*6*/].f_2 = 2;
									}
								}
								break;
							
							case 2:
								if (object::_0x52AF537A0C5B8AAD(uLocal_1948))
								{
									if (object::_0x899BA936634A322E(uLocal_1948) == 5)
									{
										if (gameplay::is_bullet_in_angled_area(-1087.801f, -1655.349f, 6.6f, -1089.401f, -1654.464f, 7.555488f, 1f, 1))
										{
											iLocal_1060 = object::get_closest_object_of_type(-1081.018f, -1647.606f, 4.1603f, 0.5f, -1268884662, 1, 0, 1);
											if (entity::does_entity_exist(iLocal_1060))
											{
												if (!entity::is_entity_dead(iLocal_1060, 0))
												{
													rope::set_disable_breaking(iLocal_1060, 1);
												}
											}
											Local_1708[iVar0 /*6*/].f_3 = gameplay::get_game_timer() + 250;
											Local_1708[iVar0 /*6*/].f_2 = 3;
										}
										if (fire::is_explosion_in_angled_area(-1, -1087.801f, -1655.349f, 6.691953f, -1089.401f, -1654.464f, 7.555488f, 1f))
										{
											if (((fire::is_explosion_in_angled_area(0, -1087.801f, -1655.349f, 6.691953f, -1089.401f, -1654.464f, 7.555488f, 1f) || fire::is_explosion_in_angled_area(4, -1087.801f, -1655.349f, 6.691953f, -1089.401f, -1654.464f, 7.555488f, 1f)) || fire::is_explosion_in_angled_area(1, -1087.801f, -1655.349f, 6.691953f, -1089.401f, -1654.464f, 7.555488f, 1f)) || fire::is_explosion_in_angled_area(2, -1087.801f, -1655.349f, 6.691953f, -1089.401f, -1654.464f, 7.555488f, 1f))
											{
												iLocal_1060 = object::get_closest_object_of_type(-1081.018f, -1647.606f, 4.1603f, 0.5f, -1268884662, 1, 0, 1);
												if (entity::does_entity_exist(iLocal_1060))
												{
													if (!entity::is_entity_dead(iLocal_1060, 0))
													{
														rope::set_disable_breaking(iLocal_1060, 1);
													}
												}
												Local_1708[iVar0 /*6*/].f_3 = gameplay::get_game_timer() + 250;
												Local_1708[iVar0 /*6*/].f_2 = 3;
											}
										}
										if (Local_1708[iVar0 /*6*/].f_2 == 3)
										{
											unk1::_0x48621C9FCA3EBD28(3);
										}
									}
									else
									{
										Local_1708[iVar0 /*6*/].f_2 = 0;
									}
								}
								break;
							
							case 3:
								if (gameplay::get_game_timer() > Local_1708[iVar0 /*6*/].f_3)
								{
									if (entity::does_entity_exist(iLocal_1949))
									{
										if (entity::does_entity_have_drawable(iLocal_1949))
										{
											object::set_object_targettable(iLocal_1949, 0);
											object::delete_object(&iLocal_1949);
										}
										else
										{
											object::set_object_targettable(iLocal_1949, 0);
											entity::set_object_as_no_longer_needed(&iLocal_1949);
										}
									}
									func_126(101, 1);
									if (!ped::is_ped_injured(Local_1071[13 /*14*/]))
									{
										func_124(33, 87, 1);
									}
									Local_1708[iVar0 /*6*/].f_2 = 4;
								}
								break;
							
							case 4:
								if (object::_0x52AF537A0C5B8AAD(uLocal_1948))
								{
									if (object::_0x899BA936634A322E(uLocal_1948) == 5)
									{
										object::_0x5C29F698D404C5E1(uLocal_1948, 6);
										audio::start_audio_scene("ARM_2_RAYFIRE");
										Local_1708[iVar0 /*6*/].f_2++;
									}
								}
								break;
							
							case 5:
								if (gameplay::get_game_timer() > Local_1708[iVar0 /*6*/].f_3)
								{
									if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
									{
										entity::set_entity_proofs(Local_1071[2 /*14*/], false, true, true, true, false, false, 0, false);
									}
									if (vehicle::is_vehicle_driveable(Local_1450[2 /*2*/], 0))
									{
										entity::set_entity_proofs(Local_1450[2 /*2*/], false, false, true, false, false, false, 0, false);
									}
									if (func_123(player::player_ped_id(), -1090.74f, -1654.78f, 3.4f, 1) > 4.875f)
									{
										entity::set_entity_proofs(player::player_ped_id(), false, false, true, false, false, false, 0, false);
									}
									fire::add_explosion(-1091.245f, -1653.531f, 7.07065f, 34, 4f, 0, 1, 1f);
									fire::add_explosion(-1088.896f, -1654.399f, 4.2178f, 34, 3.5f, 0, 1, 1f);
									audio::play_sound_from_coord(-1, "Gas_Explosion", -1088.801f, -1655.546f, 7.3146f, "ARM_2_REPO_SOUNDS", 0, 0, 0);
									iLocal_1033 = gameplay::get_game_timer() + 1500;
									if (!ped::is_ped_injured(Local_1071[13 /*14*/]))
									{
										if (func_123(Local_1071[13 /*14*/], -1091.245f, -1653.531f, 7.07065f, 1) < 4f)
										{
											ped::set_ped_to_ragdoll(Local_1071[13 /*14*/], 5000, 5000, 0, 1, 1, 0);
											entity::set_entity_health(Local_1071[13 /*14*/], 0);
											fire::start_entity_fire(Local_1071[13 /*14*/]);
										}
									}
									Local_1708[iVar0 /*6*/].f_3 = gameplay::get_game_timer() + 1000;
									Local_1708[iVar0 /*6*/].f_2++;
								}
								break;
							
							case 6:
								if (gameplay::get_game_timer() > Local_1708[iVar0 /*6*/].f_3)
								{
									entity::set_entity_proofs(player::player_ped_id(), false, false, false, false, false, false, 0, false);
									if (vehicle::is_vehicle_driveable(Local_1450[2 /*2*/], 0))
									{
										entity::set_entity_proofs(Local_1450[2 /*2*/], false, false, false, false, false, false, 0, false);
									}
									Local_1708[iVar0 /*6*/].f_1 = 0;
								}
								break;
						}
						break;
					
					case 5:
						if (iLocal_1067 >= 2)
						{
							switch (Local_1708[iVar0 /*6*/].f_2)
							{
								case 0:
									streaming::request_anim_set("ANIM_GROUP_MOVE_LEMAR_ALLEY");
									Local_1708[iVar0 /*6*/].f_2++;
									break;
								
								case 1:
									if (streaming::has_anim_set_loaded("ANIM_GROUP_MOVE_LEMAR_ALLEY"))
									{
										if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
										{
											ped::set_ped_movement_clipset(Local_1071[2 /*14*/], "ANIM_GROUP_MOVE_LEMAR_ALLEY", 1048576000);
											Local_1708[iVar0 /*6*/].f_1 = 0;
										}
									}
									break;
								}
						}
						break;
					
					case 6:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							switch (Local_1708[iVar0 /*6*/].f_2)
							{
								case 0:
									if (cutscene::is_cutscene_playing())
									{
										Local_1708[iVar0 /*6*/].f_2++;
									}
									break;
								
								case 1:
									if (cutscene::can_set_exit_state_for_registered_entity("Lamar", entity::get_entity_model(Local_1071[2 /*14*/])) || cutscene::has_cutscene_finished())
									{
										if (cutscene::has_cutscene_finished())
										{
											ped::force_ped_motion_state(Local_1071[2 /*14*/], -530524, false, 0, 0);
										}
										else
										{
											ped::force_ped_motion_state(Local_1071[2 /*14*/], -530524, false, 1, 0);
										}
										ped::set_ped_min_move_blend_ratio(Local_1071[2 /*14*/], 2f);
										ai::_0x88E32DB8C1A4AA4B(Local_1071[2 /*14*/], 0.1f);
										if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
										{
											func_122();
											ai::task_follow_nav_mesh_to_coord(0, -1130.321f, -1589.826f, 3.3891f, 2f, 20000, 0.25f, 0, 39f);
											ai::task_climb(0, 1);
											func_121(Local_1071[2 /*14*/], 0);
										}
										Local_1708[iVar0 /*6*/].f_2 = 2;
										Local_1708[iVar0 /*6*/].f_3 = gameplay::get_game_timer() + 2000;
									}
									break;
								
								case 2:
									if (gameplay::get_game_timer() < Local_1708[iVar0 /*6*/].f_3)
									{
										ped::set_ped_min_move_blend_ratio(Local_1071[2 /*14*/], 2f);
									}
									else
									{
										Local_1708[iVar0 /*6*/].f_1 = 0;
									}
									break;
								}
						}
						break;
					
					case 7:
						switch (Local_1708[iVar0 /*6*/].f_2)
						{
							case 0:
								if (cutscene::is_cutscene_playing())
								{
									Local_1708[iVar0 /*6*/].f_2++;
								}
								break;
							
							case 1:
								if (cutscene::can_set_exit_state_for_registered_entity("Franklin", 0) || cutscene::has_cutscene_finished())
								{
									if (!cutscene::is_cutscene_playing())
									{
										ped::force_ped_motion_state(player::player_ped_id(), -530524, false, 0, 0);
									}
									else
									{
										ped::force_ped_motion_state(player::player_ped_id(), -530524, false, 1, 0);
									}
									ped::set_ped_min_move_blend_ratio(player::player_ped_id(), 2f);
									Local_1708[iVar0 /*6*/].f_2 = 2;
									Local_1708[iVar0 /*6*/].f_3 = gameplay::get_game_timer() + 2000;
								}
								break;
							
							case 2:
								if (gameplay::get_game_timer() < Local_1708[iVar0 /*6*/].f_3)
								{
									ped::set_ped_min_move_blend_ratio(player::player_ped_id(), 2f);
								}
								else
								{
									Local_1708[iVar0 /*6*/].f_1 = 0;
								}
								break;
						}
						break;
					
					case 8:
						if (entity::does_entity_exist(Local_1450[4 /*2*/]))
						{
							if (!vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
							{
								func_120("ARM2_F03");
							}
							else if ((vehicle::is_vehicle_stuck_timer_up(Local_1450[4 /*2*/], 3, 30000) || vehicle::is_vehicle_stuck_timer_up(Local_1450[4 /*2*/], 2, 30000)) || vehicle::is_vehicle_stuck_timer_up(Local_1450[4 /*2*/], 0, 7000))
							{
								func_120("ARM2_F03");
							}
						}
						if (iLocal_1067 >= 2 && iLocal_1067 < 9)
						{
							if (player::get_player_wanted_level(player::player_id()) > 0)
							{
								func_120("ARM2_F04");
							}
						}
						break;
					
					case 9:
						if (Local_1708[iVar0 /*6*/].f_2 == 0)
						{
							ped::set_ped_density_multiplier_this_frame(1f);
							vehicle::set_vehicle_density_multiplier_this_frame(1f);
							ped::set_scenario_ped_density_multiplier_this_frame(1f, 1f);
							if (entity::is_entity_in_angled_area(player::player_ped_id(), -1121.811f, -1599.719f, 1.023538f, -1066.708f, -1676.495f, 11.54423f, 34.4375f, 0, true, 0))
							{
								Local_1708[iVar0 /*6*/].f_2 = 1;
							}
						}
						else if (Local_1708[iVar0 /*6*/].f_2 == 1)
						{
							ped::set_ped_density_multiplier_this_frame(0f);
							vehicle::set_vehicle_density_multiplier_this_frame(0f);
							ped::set_scenario_ped_density_multiplier_this_frame(0f, 0f);
							if (!entity::is_entity_in_angled_area(player::player_ped_id(), -1121.811f, -1599.719f, 1.023538f, -1066.708f, -1676.495f, 11.54423f, 34.4375f, 0, true, 0))
							{
								Local_1708[iVar0 /*6*/].f_2 = 0;
							}
						}
						break;
					
					case 10:
						if (Local_1708[iVar0 /*6*/].f_2 == 0)
						{
							if (cutscene::is_cutscene_playing())
							{
								func_113(-19.28961f, -1085.295f, 25.31096f, -35.2638f, -1079.359f, 30.06847f, 12.625f, -27.3711f, -1082.111f, 25.589f, 249.7235f, 4f, 20f, 10f, 1, 1, 1, 0, 0);
								func_113(-29.77057f, -1086.7f, 24.11305f, -33.11995f, -1094.056f, 29.0473f, 6.3125f, -27.3711f, -1082.111f, 25.589f, 249.7235f, 4f, 20f, 10f, 1, 1, 1, 0, 0);
								func_113(-31.77917f, -1094.77f, 25.10984f, -35.30418f, -1104.367f, 28.23484f, 5.9375f, -27.3711f, -1082.111f, 25.589f, 249.7235f, 4f, 20f, 10f, 1, 1, 1, 0, 0);
								func_113(-20.76915f, -1077.899f, 24.25114f, -4.940775f, -1083.379f, 29.29708f, 5.8125f, -14.9697f, -1085.401f, 25.6721f, 238.037f, 6f, 10f, 10f, 1, 1, 1, 0, 0);
								Local_1450[0 /*2*/] = player::get_players_last_vehicle();
								if (entity::does_entity_exist(Local_1450[0 /*2*/]))
								{
									if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
									{
										entity::set_entity_as_mission_entity(Local_1450[0 /*2*/], true, 1);
										entity::set_entity_health(Local_1450[0 /*2*/], 1800);
									}
								}
								gameplay::clear_area(-12.8803f, -1080.609f, 25.6721f, 20f, 1, 0, 0, false);
								Local_1708[iVar0 /*6*/].f_1 = 0;
							}
						}
						break;
					
					case 11:
						switch (Local_1708[iVar0 /*6*/].f_2)
						{
							case 0:
								if (cutscene::is_cutscene_playing())
								{
									Local_1708[iVar0 /*6*/].f_2++;
								}
								break;
							
							case 1:
								if (cutscene::can_set_exit_state_for_registered_entity("Franklin", 0) || cutscene::has_cutscene_finished())
								{
									if (func_112())
									{
										ped::force_ped_motion_state(player::player_ped_id(), 1063765679, true, 0, 0);
										player::simulate_player_input_gait(player::player_id(), 1f, 2000, 0, 1, 0);
									}
									else
									{
										ped::force_ped_motion_state(player::player_ped_id(), -668482597, true, 0, 0);
										player::simulate_player_input_gait(player::player_id(), 1f, 1000, 0, 1, 0);
									}
									Local_1708[iVar0 /*6*/].f_2 = 2;
									Local_1708[iVar0 /*6*/].f_3 = gameplay::get_game_timer() + 1000;
								}
								break;
							
							case 2:
								if (gameplay::get_game_timer() < Local_1708[iVar0 /*6*/].f_3)
								{
								}
								else
								{
									Local_1708[iVar0 /*6*/].f_1 = 0;
								}
								break;
						}
						break;
					
					case 12:
						if (func_123(player::player_ped_id(), -39.62799f, -1099.24f, 25.25259f, 1) < 150.5f)
						{
							if (gameplay::has_bullet_impacted_in_area(-39.62799f, -1099.24f, 25.25259f, 26.5f, 1, 1))
							{
								func_120("ARM2_F07");
							}
							if (fire::is_explosion_in_sphere(-1, -39.62799f, -1099.24f, 25.25259f, 26.5f))
							{
								func_120("ARM2_F07");
							}
							if (func_123(player::player_ped_id(), -39.62799f, -1099.24f, 25.25259f, 1) < 26.5f)
							{
								if (ped::is_ped_shooting(player::player_ped_id()))
								{
									iVar4 = joaat("weapon_unarmed");
									weapon::get_current_ped_weapon(player::player_ped_id(), &iVar4, 1);
									switch (iVar4)
									{
										case joaat("weapon_bat"):
										case joaat("weapon_crowbar"):
										case joaat("weapon_hammer"):
										case joaat("weapon_knife"):
										case joaat("weapon_nightstick"):
										case joaat("weapon_petrolcan"):
										case joaat("weapon_stickybomb"):
										case joaat("weapon_grenade"):
										case joaat("weapon_bottle"):
											break;
										
										default:
											func_120("ARM2_F07");
											break;
										}
									}
								}
						}
						break;
				}
				if (Local_1708[iVar0 /*6*/].f_2 == 99)
				{
					Local_1708[iVar0 /*6*/].f_1 = 0;
				}
			}
			iVar0++;
		}
	}
}

bool func_112()//Position - 0xA6D4
{
	if (cam::_0xEE778F8C7E1142E2(cam::_0x19CAFA3C87F7C2FF()) == 4)
	{
		return true;
	}
	return false;
}

void func_113(vector3 vParam0, vector3 vParam3, float fParam6, vector3 vParam7, float fParam10, vector3 vParam11, int iParam14, int iParam15, int iParam16, int iParam17, int iParam18)//Position - 0xA6ED
{
	func_114(vParam0, vParam3, fParam6, vParam7, fParam10, vParam11, iParam14, iParam15, iParam16, iParam17, iParam18);
}

void func_114(vector3 vParam0, vector3 vParam3, float fParam6, vector3 vParam7, float fParam10, vector3 vParam11, int iParam14, int iParam15, int iParam16, int iParam17, int iParam18)//Position - 0xA717
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	vector3 vVar4;
	vector3 vVar7;
	vector3 vVar10;
	int iVar13;
	int iVar14;
	int iVar15;
	
	if (iParam15)
	{
		iParam15 = false;
	}
	iVar2 = true;
	iVar3 = 0;
	iVar0 = player::get_players_last_vehicle();
	if (entity::does_entity_exist(iVar0))
	{
		if (!entity::is_entity_a_mission_entity(iVar0))
		{
			entity::set_entity_as_mission_entity(iVar0, true, 0);
			iVar3 = 1;
		}
		if (vehicle::is_vehicle_driveable(iVar0, 0))
		{
			if (iParam18)
			{
				func_119(iVar0);
			}
			if (entity::is_entity_in_angled_area(iVar0, vParam0, vParam3, fParam6, 0, true, 0))
			{
				iVar1 = true;
			}
			else
			{
				vVar10 = { entity::get_entity_coords(iVar0, 1) };
				if ((vVar10.y > vParam0.y && vVar10.y < vParam3.y) || (vVar10.y > vParam3.y && vVar10.y < vParam0.y))
				{
					if (func_116(iVar0, vParam0, vParam3, fParam6))
					{
						iVar1 = true;
					}
				}
			}
			if (vehicle::is_vehicle_driveable(iVar0, 0))
			{
				if (vehicle::is_vehicle_model(iVar0, joaat("taxi")))
				{
					if (vehicle::get_ped_in_vehicle_seat(iVar0, -1, 0) != player::player_ped_id() && vehicle::get_ped_in_vehicle_seat(iVar0, -1, 0) != 0)
					{
						if (gameplay::get_distance_between_coords(vParam0 + vParam3 / Vector(2f, 2f, 2f), entity::get_entity_coords(iVar0, 1), 1) < 20f)
						{
							iVar1 = true;
							iVar2 = false;
						}
					}
				}
			}
			if (iParam16)
			{
				if (func_54(iVar0, func_11(), 1))
				{
					iVar1 = false;
				}
			}
			if (iVar1)
			{
				if (!func_115(vParam11))
				{
					if (vehicle::is_vehicle_driveable(iVar0, 0))
					{
						iVar13 = entity::get_entity_model(iVar0);
						vehicle::_0xDF7E3EEB29642C38(iVar0, &vVar4, &vVar7);
						if (vehicle::is_this_model_a_heli(iVar13))
						{
							vParam11.x = (vParam11.x + 3f);
							vParam11.y = (vParam11.y + 3f);
						}
						if (((iVar13 == joaat("zentorno") || iVar13 == joaat("btype")) || iVar13 == joaat("dubsta3")) || iVar13 == joaat("monster"))
						{
							vParam11 = { vParam11 * Vector(1.1f, 1.1f, 1.1f) };
						}
						else if (iVar13 == joaat("t20") || iVar13 == joaat("virgo"))
						{
							vParam11 = { vParam11 * Vector(1.2f, 1.2f, 1.2f) };
						}
						if ((vVar7.x - vVar4.x) > vParam11.x)
						{
							iVar2 = false;
						}
						else if ((vVar7.y - vVar4.y) > vParam11.y)
						{
							iVar2 = false;
						}
						else if ((vVar7.y - vVar4.y) > vParam11.y)
						{
							iVar2 = false;
						}
					}
				}
				if (vehicle::is_vehicle_driveable(iVar0, 0))
				{
					if (iVar2)
					{
						gameplay::clear_area_of_vehicles(vParam7, 5f, 0, 0, 0, 0, false);
						entity::set_entity_heading(iVar0, fParam10);
						entity::set_entity_coords(iVar0, vParam7, 1, false, 0, 1);
						vehicle::set_vehicle_on_ground_properly(iVar0);
						if (iParam17)
						{
							vehicle::set_vehicle_engine_on(iVar0, false, 1, 0);
							vehicle::set_vehicle_doors_shut(iVar0, 1);
						}
					}
					else
					{
						if (!entity::is_entity_a_mission_entity(iVar0) || !entity::does_entity_belong_to_this_script(iVar0, 1))
						{
							entity::set_entity_as_mission_entity(iVar0, true, 1);
						}
						if (ped::is_ped_in_vehicle(player::player_ped_id(), iVar0, 0))
						{
							entity::set_entity_coords(player::player_ped_id(), entity::get_entity_coords(iVar0, 1), 1, false, 0, 1);
						}
						vehicle::delete_vehicle(&iVar0);
					}
				}
			}
			if (iParam14)
			{
				gameplay::clear_angled_area_of_vehicles(vParam0, vParam3, fParam6, 0, 0, 0, 0, 0);
			}
			if (iVar3 == 1)
			{
				if (entity::does_entity_exist(iVar0))
				{
					if (entity::is_entity_a_mission_entity(iVar0))
					{
						entity::set_vehicle_as_no_longer_needed(&iVar0);
					}
				}
			}
		}
		else
		{
			if (!entity::is_entity_a_mission_entity(iVar0))
			{
				entity::set_entity_as_mission_entity(iVar0, true, 0);
			}
			iVar14 = vehicle::get_ped_in_vehicle_seat(iVar0, -1, 0);
			if (entity::does_entity_exist(iVar14) && !ped::is_ped_injured(iVar14))
			{
				entity::set_entity_coords(iVar14, entity::get_entity_coords(iVar14, 1), 1, false, 0, 1);
			}
			iVar15 = vehicle::_get_vehicle_model_max_number_of_passengers(entity::get_entity_model(iVar0));
			if (iVar15 <= 2)
			{
				iVar14 = vehicle::get_ped_in_vehicle_seat(iVar0, 0, 0);
				if (entity::does_entity_exist(iVar14) && !ped::is_ped_injured(iVar14))
				{
					entity::set_entity_coords(iVar14, entity::get_entity_coords(iVar14, 1), 1, false, 0, 1);
				}
			}
			if (iVar15 <= 4)
			{
				iVar14 = vehicle::get_ped_in_vehicle_seat(iVar0, 1, 0);
				if (entity::does_entity_exist(iVar14) && !ped::is_ped_injured(iVar14))
				{
					entity::set_entity_coords(iVar14, entity::get_entity_coords(iVar14, 1), 1, false, 0, 1);
				}
				iVar14 = vehicle::get_ped_in_vehicle_seat(iVar0, 2, 0);
				if (entity::does_entity_exist(iVar14) && !ped::is_ped_injured(iVar14))
				{
					entity::set_entity_coords(iVar14, entity::get_entity_coords(iVar14, 1), 1, false, 0, 1);
				}
			}
			vehicle::delete_vehicle(&iVar0);
		}
	}
}

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

bool func_116(int iParam0, vector3 vParam1, vector3 vParam4, float fParam7)//Position - 0xAB2E
{
	vector3 vVar0;
	vector3 vVar3;
	vector3 vVar6;
	vector3 vVar9;
	vector3 vVar12;
	vector3 vVar15;
	vector3 vVar18[4];
	struct<2> Var31;
	struct<2> Var34;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		vParam1.z = vParam4.y;
		vVar0 = { func_118(vParam1 - vParam4) };
		vVar3 = { vVar0 };
		vVar0.x = -vVar3.y;
		vVar0.y = vVar3.x;
		vVar0.z = 0f;
		vVar6 = { vParam1 - vVar0 * FtoV((fParam7 / 2f)) };
		vVar9 = { vParam1 + vVar0 * FtoV((fParam7 / 2f)) };
		vVar12 = { vParam4 - vVar0 * FtoV((fParam7 / 2f)) };
		vVar15 = { vParam4 + vVar0 * FtoV((fParam7 / 2f)) };
		gameplay::get_model_dimensions(entity::get_entity_model(iParam0), &Var31, &Var34);
		vVar18[0 /*3*/] = { entity::get_offset_from_entity_in_world_coords(iParam0, Var31, Var31.f_1, 0f) };
		vVar18[1 /*3*/] = { entity::get_offset_from_entity_in_world_coords(iParam0, Var31, Var34.f_1, 0f) };
		vVar18[2 /*3*/] = { entity::get_offset_from_entity_in_world_coords(iParam0, Var34, Var31.f_1, 0f) };
		vVar18[3 /*3*/] = { entity::get_offset_from_entity_in_world_coords(iParam0, Var34, Var34.f_1, 0f) };
		if (((((((((((((((func_117(vVar18[0 /*3*/], vVar18[1 /*3*/], vVar6, vVar9) || func_117(vVar18[0 /*3*/], vVar18[1 /*3*/], vVar9, vVar15)) || func_117(vVar18[0 /*3*/], vVar18[1 /*3*/], vVar12, vVar15)) || func_117(vVar18[0 /*3*/], vVar18[1 /*3*/], vVar6, vVar12)) || func_117(vVar18[1 /*3*/], vVar18[3 /*3*/], vVar6, vVar9)) || func_117(vVar18[1 /*3*/], vVar18[3 /*3*/], vVar9, vVar15)) || func_117(vVar18[1 /*3*/], vVar18[3 /*3*/], vVar12, vVar15)) || func_117(vVar18[1 /*3*/], vVar18[3 /*3*/], vVar6, vVar12)) || func_117(vVar18[3 /*3*/], vVar18[2 /*3*/], vVar6, vVar9)) || func_117(vVar18[3 /*3*/], vVar18[2 /*3*/], vVar9, vVar15)) || func_117(vVar18[3 /*3*/], vVar18[2 /*3*/], vVar12, vVar15)) || func_117(vVar18[3 /*3*/], vVar18[2 /*3*/], vVar6, vVar12)) || func_117(vVar18[2 /*3*/], vVar18[0 /*3*/], vVar6, vVar9)) || func_117(vVar18[2 /*3*/], vVar18[0 /*3*/], vVar9, vVar15)) || func_117(vVar18[2 /*3*/], vVar18[0 /*3*/], vVar12, vVar15)) || func_117(vVar18[2 /*3*/], vVar18[0 /*3*/], vVar6, vVar12))
		{
			return true;
		}
	}
	return false;
}

bool func_117(struct<2> Param0, var uParam2, struct<2> Param3, var uParam5, struct<2> Param6, var uParam8, struct<2> Param9, var uParam11)//Position - 0xAE24
{
	float fVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	float fVar4;
	float fVar5;
	float fVar6;
	float fVar7;
	float fVar8;
	float fVar9;
	float fVar10;
	float fVar11;
	float fVar12;
	float fVar13;
	
	fVar0 = Param0;
	fVar1 = Param0.f_1;
	fVar2 = Param3;
	fVar3 = Param3.f_1;
	fVar4 = Param6;
	fVar5 = Param6.f_1;
	fVar6 = Param9;
	fVar7 = Param9.f_1;
	fVar8 = (fVar2 - fVar0);
	fVar9 = (fVar3 - fVar1);
	fVar10 = (fVar6 - fVar4);
	fVar11 = (fVar7 - fVar5);
	fVar12 = (((-fVar9 * (fVar0 - fVar4)) + (fVar8 * (fVar1 - fVar5))) / ((-fVar10 * fVar9) + (fVar8 * fVar11)));
	fVar13 = (((fVar10 * (fVar1 - fVar5)) - (fVar11 * (fVar0 - fVar4))) / ((-fVar10 * fVar9) + (fVar8 * fVar11)));
	if (((fVar12 >= 0f && fVar12 <= 1f) && fVar13 >= 0f) && fVar13 <= 1f)
	{
		return true;
	}
	return false;
}

Vector3 func_118(vector3 vParam0)//Position - 0xAED8
{
	float fVar0;
	float fVar1;
	
	fVar0 = system::vmag(vParam0);
	if (fVar0 != 0f)
	{
		fVar1 = (1f / fVar0);
		vParam0 = { vParam0 * Vector(fVar1, fVar1, fVar1) };
	}
	else
	{
		vParam0.x = 0f;
		vParam0.y = 0f;
		vParam0.z = 0f;
	}
	return vParam0;
}

void func_119(int iParam0)//Position - 0xAF17
{
	if (entity::does_entity_exist(iParam0))
	{
		if (vehicle::is_vehicle_driveable(iParam0, 0))
		{
			if (vehicle::get_vehicle_engine_health(iParam0) <= 200f)
			{
				vehicle::set_vehicle_engine_health(iParam0, 500f);
			}
			if (vehicle::get_vehicle_petrol_tank_health(iParam0) <= 700f)
			{
				vehicle::set_vehicle_engine_health(iParam0, 900f);
			}
			if (entity::get_entity_health(iParam0) < 200)
			{
				vehicle::set_vehicle_engine_health(iParam0, 500f);
			}
		}
	}
}

void func_120(char* sParam0)//Position - 0xAF7C
{
	iLocal_1829 = true;
	iLocal_1829 = iLocal_1829;
	sLocal_1830 = sLocal_1830;
	sLocal_1830 = sParam0;
}

void func_121(int iParam0, int iParam1)//Position - 0xAF99
{
	if (iParam1)
	{
		ai::set_sequence_to_repeat(iLocal_2270, 1);
	}
	ai::close_sequence_task(iLocal_2270);
	if (!ped::is_ped_injured(iParam0))
	{
		ai::task_perform_sequence(iParam0, iLocal_2270);
	}
	ai::clear_sequence_task(&iLocal_2270);
}

void func_122()//Position - 0xAFCF
{
	ai::open_sequence_task(&iLocal_2270);
}

float func_123(int iParam0, vector3 vParam1, int iParam4)//Position - 0xAFDE
{
	vector3 vVar0;
	
	if (!entity::is_entity_dead(iParam0, 0))
	{
		vVar0 = { entity::get_entity_coords(iParam0, 1) };
	}
	else
	{
		vVar0 = { entity::get_entity_coords(iParam0, 0) };
	}
	return gameplay::get_distance_between_coords(vVar0, vParam1, iParam4);
}

void func_124(int iParam0, int iParam1, int iParam2)//Position - 0xB018
{
	char cVar0[64];
	
	if (Local_325[iParam0 /*10*/] == iParam1)
	{
		Local_325[iParam0 /*10*/].f_6 = iParam2;
	}
	else
	{
		StringCopy(&cVar0, "", 64);
		StringConCat(&cVar0, "SET_ACTION_FLAG() fail:", 64);
		StringConCat(&cVar0, func_125(iParam1), 64);
	}
}

char* func_125(int iParam0)//Position - 0xB053
{
	char* sVar0;
	
	switch (iParam0)
	{
		case 0:
			sVar0 = "	ACT_NULL	 ";
			break;
		
		case 1:
			sVar0 = "	ACT_LAMAR_RUNS_UP_TO_CAR	 ";
			break;
		
		case 2:
			sVar0 = "	ACT_LAMAR_FOLLOWS_PLAYER	 ";
			break;
		
		case 3:
			sVar0 = "	ACT_SET_GARAGE_DOORS_LOCKED	 ";
			break;
		
		case 4:
			sVar0 = "	ACT_STOP_FOLLOWING_LAMAR_DOWN_ALLEY	 ";
			break;
		
		case 5:
			sVar0 = "	ACT_GET_PLAYER_CAR	 ";
			break;
		
		case 6:
			sVar0 = "	ACT_GPS_CUSTOM_ROUTE	 ";
			break;
		
		case 7:
			sVar0 = "	ACT_SIMEON	 ";
			break;
		
		case 8:
			sVar0 = "	ACT_SET_PLAYER_THROUGH_DRIVER_DOOR	 ";
			break;
		
		case 9:
			sVar0 = "	ACT_TURN_ON_CAR_RADIO	 ";
			break;
		
		case 10:
			sVar0 = "	ACT_LOCK_SHOWROOM_CARS	 ";
			break;
		
		case 11:
			sVar0 = "	ACT_AUDIO_SCENE_ARM_2_DRIVE_TO_ALLEY	 ";
			break;
		
		case 12:
			sVar0 = "	ACT_SET_GARAGE_VEHICLES_AS_NO_LONGER_NEEDED	 ";
			break;
		
		case 13:
			sVar0 = "	ACT_RELEASE_MISSION_TRIGGER	 ";
			break;
		
		case 14:
			sVar0 = "	ACT_SPAWN_FAIL_RESPONSE_ELSALVS	 ";
			break;
		
		case 15:
			sVar0 = "	ACT_BUDDY_HEAD_TRACKING	 ";
			break;
		
		case 16:
			sVar0 = "	ACT_LEMAR_EXITS_CAR	 ";
			break;
		
		case 17:
			sVar0 = "	action_LEMAR_APPROACHES_GATE	 ";
			break;
		
		case 18:
			sVar0 = "	action_player_exits_car	 ";
			break;
		
		case 19:
			sVar0 = "	ACTION_BUM_STAGGERS_FROM_GARAGE	 ";
			break;
		
		case 20:
			sVar0 = "	ACTION_LEMAR_WALKS_TOWARDS_BUM	 ";
			break;
		
		case 21:
			sVar0 = "	ACTION_LEMAR_INTERRACTS_WITH_BUM	 ";
			break;
		
		case 22:
			sVar0 = "	ACTION_LEMAR_IGNORES_BUM_IF_HIT	 ";
			break;
		
		case 23:
			sVar0 = "	ACTION_BUM_RETURNS_TO_GARAGE	 ";
			break;
		
		case 24:
			sVar0 = "	ACTION_WAIT_FOR_PLAYER_TO_CLIMB_GATE	 ";
			break;
		
		case 25:
			sVar0 = "	ACTION_VEHICLE_DRIVES_OFF	 ";
			break;
		
		case 26:
			sVar0 = "	ACTION_PLAYER_LOOK_ABOUT	 ";
			break;
		
		case 27:
			sVar0 = "	ACTION_LEMAR_LOOKS_AT_PASSING_CAR	 ";
			break;
		
		case 28:
			sVar0 = "	ACTION_DRUNK_GETS_UP_AFTER_LEMAR_INTERACTION	 ";
			break;
		
		case 29:
			sVar0 = "	ACTION_VEHICLE_BLOCKED_BY_PLAYER	 ";
			break;
		
		case 30:
			sVar0 = "	ACTION_VEHICLE_CONTINUES_DRIVING	 ";
			break;
		
		case 31:
			sVar0 = "	ACTION_LEMAR_REACTS_TO_PLAYER_BLOCKING_ELSAL	 ";
			break;
		
		case 32:
			sVar0 = "	ACTION_LEMAR_WAITS_FOR_PLAYER	 ";
			break;
		
		case 33:
			sVar0 = "	ACTION_LEMAR_RESUMES_WALK_DOWN_ALLEY	 ";
			break;
		
		case 34:
			sVar0 = "	ACTION_LEMAR_FOLLOWS_PLAYER_AT_GARAGES	 ";
			break;
		
		case 35:
			sVar0 = "	ACTION_PLAY_IDLES	 ";
			break;
		
		case 37:
			sVar0 = "	ACTION_LOAD_CUTSCENE	 ";
			break;
		
		case 38:
			sVar0 = "	ACTION_OPEN_GARAGE_1	 ";
			break;
		
		case 39:
			sVar0 = "	ACTION_OPEN_GARAGE_2	 ";
			break;
		
		case 40:
			sVar0 = "	ACTION_OPEN_GARAGE_3	 ";
			break;
		
		case 41:
			sVar0 = "	ACTION_LOCK_GARAGE_3	 ";
			break;
		
		case 42:
			sVar0 = "	ACTION_MUSIC_AT_BUM	 ";
			break;
		
		case 43:
			sVar0 = "	ACTION_INITIALISE_DRIVEOFF_VEHICLE	 ";
			break;
		
		case 44:
			sVar0 = "	ACT_UNFREEZE_DRIVEOFF_CAR	 ";
			break;
		
		case 45:
			sVar0 = "	ACT_LAMAR_LOOK_AT_GARAGES_ON_APPROACH	 ";
			break;
		
		case 46:
			sVar0 = "	ACT_REDUCE_PLAYER_SPEED	 ";
			break;
		
		case 47:
			sVar0 = "	ACT_ADUIO_END_ARM_2_DRIVE_TO_ALLEY	 ";
			break;
		
		case 48:
			sVar0 = "	ACTION_UPDATE_LAMAR_PROGRESS	 ";
			break;
		
		case 49:
			sVar0 = "	ACT_DRIVERS_LOOK_AT_PLAYER	 ";
			break;
		
		case 50:
			sVar0 = "	ACTION_LOCK_OPEN_GARAGE_3	 ";
			break;
		
		case 52:
			sVar0 = "	ACTION_LEMAR_EXITS_GARAGE	 ";
			break;
		
		case 53:
			sVar0 = "	ACTION_LEMAR_ADVANCES_TO_POST	 ";
			break;
		
		case 54:
			sVar0 = "	ACTION_MAKE_LAMAR_INVINCIBLE	 ";
			break;
		
		case 55:
			sVar0 = "	ACTION_LEMAR_ADVANCES_TO_PORTALOO	 ";
			break;
		
		case 56:
			sVar0 = "	ACTION_LEMAR_DIVERTS_TO_BISON	 ";
			break;
		
		case 58:
			sVar0 = "	ACTION_LEMAR_REACTS_TO_GUNFIRE	 ";
			break;
		
		case 59:
			sVar0 = "	ACTION_LEMAR_ADVANCES_AFTER_PORTALOO	 ";
			break;
		
		case 60:
			sVar0 = "	ACTION_LEMAR_MOVES_TO_COVER	 ";
			break;
		
		case 61:
			sVar0 = "	ACTION_LAMAR_SHOOTS_CAR	 ";
			break;
		
		case 62:
			sVar0 = "	acTION_lemar_RUN_TOWARDS_GATE	 ";
			break;
		
		case 63:
			sVar0 = "	ACTION_FORCE_GARAGE	 ";
			break;
		
		case 64:
			sVar0 = "	action_make_balcony_destructible	 ";
			break;
		
		case 65:
			sVar0 = "	ACTION_MAKE_CAR_TYRE_BURST	 ";
			break;
		
		case 66:
			sVar0 = "	ACTION_SET_STAGE_STUFF	 ";
			break;
		
		case 67:
			sVar0 = "	ACTION_ENEMY_BACKS_OFF	 ";
			break;
		
		case 68:
			sVar0 = "	ACTION_ENEMY_BY_BISON	 ";
			break;
		
		case 69:
			sVar0 = "	ACTION_ENEMY_FROM_LEFT	 ";
			break;
		
		case 70:
			sVar0 = "	ACTION_ENEMY_FROM_SKIP	 ";
			break;
		
		case 71:
			sVar0 = "	ACTION_ENEMY_FROM_SCAFFOLD	 ";
			break;
		
		case 72:
			sVar0 = "	ACTION_SCAFFOLD_PED_DROPS	 ";
			break;
		
		case 73:
			sVar0 = "	ACTION_ENEMY_AFTER_SCAFFOLD	 ";
			break;
		
		case 74:
			sVar0 = "	ACTION_ENEMY_ON_VERANDA	 ";
			break;
		
		case 75:
			sVar0 = "	ACTION_ENEMY_ON_BALCONY	 ";
			break;
		
		case 76:
			sVar0 = "	ACTION_ENEMY_FROM_DOOR	 ";
			break;
		
		case 77:
			sVar0 = "	ACTION_DRIVER_RUNS_TO_CAR	 ";
			break;
		
		case 78:
			sVar0 = "	ACTION_DRIVER_DRIVES_OFF	 ";
			break;
		
		case 79:
			sVar0 = "	ACTION_FLEEING_CAR_DAMAGE	 ";
			break;
		
		case 80:
			sVar0 = "	ACTION_PETROL_TRAIL	 ";
			break;
		
		case 81:
			sVar0 = "	ACTION_EXPLODE_CAR	 ";
			break;
		
		case 82:
			sVar0 = "	ACTION_LOCK_ON_TO_GAS	 ";
			break;
		
		case 83:
			sVar0 = "	ACTION_LOCK_ON_TO_GAS_TRAIL	 ";
			break;
		
		case 84:
		case 85:
			sVar0 = "	ACTION_MUSIC_SHOOTOUT	 ";
			break;
		
		case 86:
			sVar0 = "	ACTION_UNFREEZE_FLEE_CAR_IF_ENTERED 	 ";
			break;
		
		case 87:
			sVar0 = "	ACT_STAT_PROPANE 	 ";
			break;
		
		case 91:
		case 92:
			sVar0 = "	ACTION_REMOVE_ALLEYWAY_ASSETS	 ";
			break;
		
		case 93:
			sVar0 = "	ACTION_PREP_CHASE_STAGE	 ";
			break;
		
		case 94:
			sVar0 = "	ACTION_DEAL_WITH_STUCK_BIKER	 ";
			break;
		
		case 95:
			sVar0 = "	ACTION_BIKER_FLEES	 ";
			break;
		
		case 96:
			sVar0 = "	ACTION_LEMAR_FOLLOW_PLAYER	 ";
			break;
		
		case 97:
			sVar0 = "	ACTION_BIKER_REACTS_TO_PLAYER_CLOSING_IN	 ";
			break;
		
		case 98:
			sVar0 = "	ACTION_BIKER_REACTS_TO_BEING_JACKED	 ";
			break;
		
		case 99:
			sVar0 = "	ACTION_BIKER_REACTS_TO_COMING_OFF_BIKE	 ";
			break;
		
		case 100:
			sVar0 = "	ACTION_MUSIC_CHASE	 ";
			break;
		
		case 101:
			sVar0 = "	ACTION_MUSIC_IN_CAR	 ";
			break;
		
		case 102:
			sVar0 = "	ACTION_MUSIC_BIKER_DOWN	 ";
			break;
		
		case 103:
			sVar0 = "	ACTION_ENSURE_LAMAR_CLIMBS_GATE	 ";
			break;
		
		case 104:
			sVar0 = "	ACTION_LAMAR_GETS_IN_PLAYER_CAR	 ";
			break;
		
		case 108:
			sVar0 = "	ACT_SET_LAMAR_FOR_STAGE	 ";
			break;
		
		case 109:
			sVar0 = "	ACT_LAMAR_GETS_IN_DRIVER_SEAT	 ";
			break;
		
		case 110:
			sVar0 = "	ACT_LAMAR_HEADS_BACK_HOME	 ";
			break;
		
		case 112:
			sVar0 = "	ACT_LAMAR_DRIVES_BACK_TO_HOME	 ";
			break;
		
		case 113:
			sVar0 = "	ACT_LAMAR_EXITS_UNDRIVEABLE_CAR	 ";
			break;
		
		case 114:
			sVar0 = "	ACT_LAMAR_GETS_IN_ANY_CAR	 ";
			break;
		
		case 116:
			sVar0 = "	ACT_STUCK_BIKE_CHECK	 ";
			break;
		
		case 117:
			sVar0 = "	ACT_LOAD_CUTSENE	 ";
			break;
		
		case 118:
			sVar0 = "	ACT_WARP_LAMAR_BACK	 ";
			break;
		
		case 119:
			sVar0 = "	ACT_STAT_BIKE_DAMAGE	 ";
			break;
		
		case 120:
			sVar0 = "	ACT_DO_HINT_CAM	 ";
			break;
		
		case 121:
			sVar0 = "	ACT_CUTSCENE_LEAD_IN	 ";
			break;
		
		default:
			sVar0 = " -NOT DEFINED-";
			break;
	}
	return sVar0;
}

bool func_126(int iParam0, int iParam1)//Position - 0xB6DC
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Local_688)
	{
		if (iParam0 == Local_688[iVar0 /*7*/])
		{
			if (iParam1 == 1)
			{
				Local_688[iVar0 /*7*/].f_2 = 1;
			}
			else
			{
				Local_688[iVar0 /*7*/].f_2 = 0;
			}
			return true;
		}
		iVar0++;
	}
	return false;
}

void func_127(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0xB726
{
	if (iParam0 != 198)
	{
		if (Global_69617)
		{
			Global_2432628.f_74.f_227[iParam0] = iParam1;
		}
		else
		{
			Global_101553.f_6116.f_227[iParam0] = iParam1;
		}
		Global_32743[iParam0] = iParam2;
		Global_32942[iParam0] = 1;
		func_130(iParam0, iParam3, iParam4, 0);
		func_128(iParam0, iParam1);
	}
}

void func_128(int iParam0, int iParam1)//Position - 0xB781
{
	switch (iParam0)
	{
		case 12:
			if (iParam1 == 0)
			{
				audio::set_ambient_zone_state_persistent("AZ_PORT_OF_LS_UNDERWATER_CREAKS", 0, 0);
			}
			else
			{
				audio::set_ambient_zone_state_persistent("AZ_PORT_OF_LS_UNDERWATER_CREAKS", 1, 0);
			}
			break;
		
		case 71:
			if (iParam1 != 1)
			{
				audio::set_ambient_zone_list_state_persistent("HEIST_SWEATSHOP_ZONES", 0, 0);
			}
			else
			{
				audio::set_ambient_zone_list_state_persistent("HEIST_SWEATSHOP_ZONES", 1, 0);
			}
			break;
		
		case 65:
			if (iParam1 == 1)
			{
				func_129(0, 0);
			}
			else
			{
				func_129(0, 1);
			}
			break;
		
		case 6:
			if (iParam1 == 1)
			{
				audio::set_ambient_zone_state_persistent("AZ_UNDERWATER_EXILE_01_PLANE_WRECK", 1, 0);
			}
			else
			{
				audio::set_ambient_zone_state_persistent("AZ_UNDERWATER_EXILE_01_PLANE_WRECK", 0, 0);
			}
			break;
		
		case 174:
			if (iParam1 == 2)
			{
				audio::_0xB4BBFD9CD8B3922B("V_CARSHOWROOM_PS_WINDOW_UNBROKEN");
			}
			break;
		
		case 37:
			if (iParam1 == 1)
			{
				audio::set_static_emitter_enabled("TREVOR1_TRAILER_PARK_MAIN_STAGE_RADIO", false);
				audio::set_static_emitter_enabled("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_01", false);
				audio::set_static_emitter_enabled("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_02", false);
				audio::set_static_emitter_enabled("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_03", false);
			}
			break;
	}
}

void func_129(int iParam0, int iParam1)//Position - 0xB86A
{
	if (iParam1)
	{
		gameplay::set_bit(&Global_100193, iParam0);
	}
	else
	{
		gameplay::clear_bit(&Global_100193, iParam0);
	}
	Global_100192 = 1;
}

int func_130(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0xB893
{
	int iVar0;
	int iVar1;
	var uVar2;
	struct<5> Var3;
	var uVar98;
	int iVar99;
	int iVar100;
	
	iVar0 = false;
	Var3.f_4 = 3;
	Var3.f_8 = 3;
	Var3.f_64 = 3;
	Var3.f_75 = 3;
	Var3.f_91 = 3;
	func_133(&Var3, iParam0);
	if (func_131())
	{
		iVar1 = Global_101553.f_6116.f_227[iParam0];
	}
	else
	{
		iVar1 = Global_2432628.f_74.f_227[iParam0];
	}
	uVar2 = Global_33141[iParam0];
	if (ped::is_ped_injured(player::player_ped_id()) && !iParam3)
	{
	}
	else
	{
		iVar99 = true;
		if (gameplay::get_hash_key(script::get_this_script_name()) != gameplay::get_hash_key("standard_global_reg"))
		{
			if (iParam2 == 0)
			{
				if (Global_32743[iParam0] && gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 0), Var3, 1) < 200f)
				{
					iVar99 = false;
				}
				if (!player::is_player_playing(player::player_id()) || ai::is_ped_being_arrested(player::player_ped_id()))
				{
					if (!cam::is_screen_faded_out())
					{
						iVar99 = false;
					}
				}
			}
		}
		if (streaming::is_new_load_scene_active() && (!streaming::is_player_switch_in_progress() || streaming::get_player_switch_state() != 5))
		{
			iVar99 = false;
		}
		if (iVar99)
		{
			switch (Var3.f_3)
			{
				case 0:
					if (iVar1 == 2)
					{
					}
					else
					{
						if (Var3.f_4[iVar1] != 0)
						{
							entity::remove_model_hide(Var3, 10f, Var3.f_4[iVar1], false);
						}
						if (Var3.f_4[uVar2] != 0)
						{
							entity::create_model_hide(Var3, 10f, Var3.f_4[uVar2], 1);
						}
						Global_34337[iParam0] = 1;
					}
					iVar0 = true;
					break;
				
				case 1:
					if (iVar1 == 0)
					{
						if (gameplay::get_hash_key(&(Var3.f_8[1 /*8*/])) != gameplay::get_hash_key("") && gameplay::get_hash_key(&(Var3.f_8[1 /*8*/])) != gameplay::get_hash_key(&(Var3.f_8[iVar1 /*8*/])))
						{
							if (streaming::is_ipl_active(&(Var3.f_8[1 /*8*/])))
							{
								streaming::remove_ipl(&(Var3.f_8[1 /*8*/]));
							}
						}
						if ((gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("") && gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("REMOVE_ALL_STATES")) && gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key(&(Var3.f_8[iVar1 /*8*/])))
						{
							if (streaming::is_ipl_active(&(Var3.f_8[2 /*8*/])))
							{
								streaming::remove_ipl(&(Var3.f_8[2 /*8*/]));
							}
						}
						if (gameplay::get_hash_key(&(Var3.f_8[0 /*8*/])) != gameplay::get_hash_key(""))
						{
							if (!streaming::is_ipl_active(&(Var3.f_8[0 /*8*/])))
							{
								streaming::request_ipl(&(Var3.f_8[0 /*8*/]));
							}
						}
						if (gameplay::get_hash_key(&(Var3.f_34)) != gameplay::get_hash_key(""))
						{
							if (!streaming::is_ipl_active(&(Var3.f_34)))
							{
								streaming::request_ipl(&(Var3.f_34));
							}
						}
					}
					else if (iVar1 == 1)
					{
						if (gameplay::get_hash_key(&(Var3.f_34)) != gameplay::get_hash_key(""))
						{
							if (streaming::is_ipl_active(&(Var3.f_34)))
							{
								streaming::remove_ipl(&(Var3.f_34));
							}
						}
						if (gameplay::get_hash_key(&(Var3.f_8[0 /*8*/])) != gameplay::get_hash_key("") && gameplay::get_hash_key(&(Var3.f_8[0 /*8*/])) != gameplay::get_hash_key(&(Var3.f_8[iVar1 /*8*/])))
						{
							if (streaming::is_ipl_active(&(Var3.f_8[0 /*8*/])))
							{
								streaming::remove_ipl(&(Var3.f_8[0 /*8*/]));
							}
						}
						if ((gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("") && gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("REMOVE_ALL_STATES")) && gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key(&(Var3.f_8[iVar1 /*8*/])))
						{
							if (streaming::is_ipl_active(&(Var3.f_8[2 /*8*/])))
							{
								streaming::remove_ipl(&(Var3.f_8[2 /*8*/]));
							}
						}
						if (gameplay::get_hash_key(&(Var3.f_8[1 /*8*/])) != gameplay::get_hash_key(""))
						{
							if (!streaming::is_ipl_active(&(Var3.f_8[1 /*8*/])))
							{
								streaming::request_ipl(&(Var3.f_8[1 /*8*/]));
							}
						}
					}
					else if (iVar1 == 2)
					{
						if (gameplay::get_hash_key(&(Var3.f_34)) != gameplay::get_hash_key(""))
						{
							if (streaming::is_ipl_active(&(Var3.f_34)))
							{
								streaming::remove_ipl(&(Var3.f_34));
							}
						}
						if (gameplay::get_hash_key(&(Var3.f_8[0 /*8*/])) != gameplay::get_hash_key("") && gameplay::get_hash_key(&(Var3.f_8[0 /*8*/])) != gameplay::get_hash_key(&(Var3.f_8[iVar1 /*8*/])))
						{
							if (streaming::is_ipl_active(&(Var3.f_8[0 /*8*/])))
							{
								streaming::remove_ipl(&(Var3.f_8[0 /*8*/]));
							}
						}
						if (gameplay::get_hash_key(&(Var3.f_8[1 /*8*/])) != gameplay::get_hash_key("") && gameplay::get_hash_key(&(Var3.f_8[1 /*8*/])) != gameplay::get_hash_key(&(Var3.f_8[iVar1 /*8*/])))
						{
							if (streaming::is_ipl_active(&(Var3.f_8[1 /*8*/])))
							{
								streaming::remove_ipl(&(Var3.f_8[1 /*8*/]));
							}
						}
						if (gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("") && gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("REMOVE_ALL_STATES"))
						{
							if (!streaming::is_ipl_active(&(Var3.f_8[2 /*8*/])))
							{
								streaming::request_ipl(&(Var3.f_8[2 /*8*/]));
							}
						}
					}
					Global_34138[iParam0] = 1;
					Global_34337[iParam0] = 1;
					iVar0 = true;
					break;
				
				case 2:
					iVar100 = interior::get_interior_at_coords_with_type(Var3, &(Var3.f_42));
					if (iVar100 != 0)
					{
						if (gameplay::get_hash_key(&(Var3.f_50)) != gameplay::get_hash_key(""))
						{
							if (interior::_is_interior_prop_enabled(iVar100, &(Var3.f_50)))
							{
								interior::_disable_interior_prop(iVar100, &(Var3.f_50));
							}
						}
						if (iVar1 == 0)
						{
							if (gameplay::get_hash_key(&(Var3.f_8[1 /*8*/])) != gameplay::get_hash_key(""))
							{
								if (interior::_is_interior_prop_enabled(iVar100, &(Var3.f_8[1 /*8*/])))
								{
									interior::_disable_interior_prop(iVar100, &(Var3.f_8[1 /*8*/]));
								}
							}
							if ((gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("") && gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("REMOVE_ALL_STATES")) && gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key(&(Var3.f_8[iVar1 /*8*/])))
							{
								if (interior::_is_interior_prop_enabled(iVar100, &(Var3.f_8[2 /*8*/])))
								{
									interior::_disable_interior_prop(iVar100, &(Var3.f_8[2 /*8*/]));
								}
							}
							if (gameplay::get_hash_key(&(Var3.f_8[0 /*8*/])) != gameplay::get_hash_key(""))
							{
								if (!interior::_is_interior_prop_enabled(iVar100, &(Var3.f_8[0 /*8*/])))
								{
									interior::_enable_interior_prop(iVar100, &(Var3.f_8[0 /*8*/]));
								}
							}
						}
						else if (iVar1 == 1)
						{
							if (gameplay::get_hash_key(&(Var3.f_8[0 /*8*/])) != gameplay::get_hash_key(""))
							{
								if (interior::_is_interior_prop_enabled(iVar100, &(Var3.f_8[0 /*8*/])))
								{
									interior::_disable_interior_prop(iVar100, &(Var3.f_8[0 /*8*/]));
								}
							}
							if ((gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("") && gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("REMOVE_ALL_STATES")) && gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key(&(Var3.f_8[iVar1 /*8*/])))
							{
								if (interior::_is_interior_prop_enabled(iVar100, &(Var3.f_8[2 /*8*/])))
								{
									interior::_disable_interior_prop(iVar100, &(Var3.f_8[2 /*8*/]));
								}
							}
							if (gameplay::get_hash_key(&(Var3.f_8[1 /*8*/])) != gameplay::get_hash_key(""))
							{
								if (!interior::_is_interior_prop_enabled(iVar100, &(Var3.f_8[1 /*8*/])))
								{
									interior::_enable_interior_prop(iVar100, &(Var3.f_8[1 /*8*/]));
								}
							}
						}
						else if (iVar1 == 2)
						{
							if (gameplay::get_hash_key(&(Var3.f_8[0 /*8*/])) != gameplay::get_hash_key(""))
							{
								if (interior::_is_interior_prop_enabled(iVar100, &(Var3.f_8[0 /*8*/])))
								{
									interior::_disable_interior_prop(iVar100, &(Var3.f_8[0 /*8*/]));
								}
							}
							if (gameplay::get_hash_key(&(Var3.f_8[1 /*8*/])) != gameplay::get_hash_key(""))
							{
								if (interior::_is_interior_prop_enabled(iVar100, &(Var3.f_8[1 /*8*/])))
								{
									interior::_disable_interior_prop(iVar100, &(Var3.f_8[1 /*8*/]));
								}
							}
							if (gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("") && gameplay::get_hash_key(&(Var3.f_8[2 /*8*/])) != gameplay::get_hash_key("REMOVE_ALL_STATES"))
							{
								if (!interior::_is_interior_prop_enabled(iVar100, &(Var3.f_8[2 /*8*/])))
								{
									interior::_enable_interior_prop(iVar100, &(Var3.f_8[2 /*8*/]));
								}
							}
						}
						if (iParam1)
						{
							interior::refresh_interior(iVar100);
						}
					}
					Global_34337[iParam0] = 1;
					Global_34138[iParam0] = 1;
					iVar0 = true;
					break;
				
				case 3:
					if (gameplay::get_distance_between_coords(Var3, entity::get_entity_coords(player::player_ped_id(), 0), 1) < 250f)
					{
						uVar98 = object::_0xB48FCED898292E52(Var3, 25f, &(Var3.f_8[0 /*8*/]));
						if (object::_0x52AF537A0C5B8AAD(uVar98))
						{
							if (iVar1 == 0)
							{
								object::_0x5C29F698D404C5E1(uVar98, 3);
								Global_34337[iParam0] = 1;
								iVar0 = true;
							}
							else if (iVar1 == 1)
							{
								if ((object::_0x899BA936634A322E(uVar98) != 6 && object::_0x899BA936634A322E(uVar98) != 7) && object::_0x899BA936634A322E(uVar98) != 8)
								{
									object::_0x5C29F698D404C5E1(uVar98, 10);
									Global_34337[iParam0] = 1;
									iVar0 = true;
								}
							}
							else if (iVar1 == 2)
							{
								iVar0 = true;
							}
						}
					}
					break;
				
				case 4:
					if (iVar1 == 0)
					{
						entity::remove_model_swap(Var3, 50f, Var3.f_4[1], Var3.f_4[0], 0);
						gameplay::clear_bit(&(Global_32489[(iParam0 / 32)]), (iParam0 % 32));
					}
					else if (iVar1 == 1)
					{
						entity::create_model_swap(Var3, 50f, Var3.f_4[0], Var3.f_4[1], 1);
						gameplay::set_bit(&(Global_32489[(iParam0 / 32)]), (iParam0 % 32));
					}
					iVar0 = true;
					break;
			}
			if (iVar0)
			{
				Global_32942[iParam0] = 0;
				Global_33141[iParam0] = iVar1;
				if (!func_131())
				{
					if (!Global_33738[iParam0])
					{
						Global_33738[iParam0] = 1;
						Global_33937++;
					}
				}
			}
		}
	}
	return iVar0;
}

bool func_131()//Position - 0xC1BA
{
	if ((func_79() == -1 || func_79() == 999) && !func_132() == 0)
	{
		return true;
	}
	return false;
}

var func_132()//Position - 0xC1EA
{
	return Global_25186;
}

bool func_133(var uParam0, int iParam1)//Position - 0xC1F5
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 3)
	{
		uParam0->f_4[iVar0] = 0;
		StringCopy(&(uParam0->f_8[iVar0 /*8*/]), "", 32);
		uParam0->f_64[iVar0] = 0;
		uParam0->f_75[iVar0] = 0;
		uParam0->f_91[iVar0] = 0;
		iVar0++;
	}
	*uParam0 = { 0f, 0f, 0f };
	uParam0->f_3 = 0;
	uParam0->f_33 = 0;
	StringCopy(&(uParam0->f_34), "", 32);
	StringCopy(&(uParam0->f_42), "", 32);
	StringCopy(&(uParam0->f_50), "", 32);
	uParam0->f_58 = { 0f, 0f, 0f };
	uParam0->f_61 = { 0f, 0f, 0f };
	uParam0->f_68 = { 0f, 0f, 0f };
	uParam0->f_71 = { 0f, 0f, 0f };
	uParam0->f_74 = 0f;
	uParam0->f_79 = { 0f, 0f, 0f };
	uParam0->f_82 = { 0f, 0f, 0f };
	uParam0->f_85 = { 0f, 0f, 0f };
	uParam0->f_88 = { 0f, 0f, 0f };
	switch (iParam1)
	{
		case 3:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "TRV1_Trail_start", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "TRV1_Trail_end", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "TRV1_Trail_Finish", 32);
			uParam0->f_33 = 1;
			*uParam0 = { -24.685f, 3032.92f, 40.331f };
			break;
		
		case 4:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "CS3_05_water_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS3_05_water_grp2", 32);
			*uParam0 = { -24.685f, 3032.92f, 40.331f };
			break;
		
		case 0:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "gasstation_ipl_group1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "gasstation_ipl_group2", 32);
			*uParam0 = { -93.4f, 6410.9f, 36.8f };
			break;
		
		case 1:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "DES_Smash2_startimap", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_Smash2_endimap", 32);
			*uParam0 = { 890.3647f, -2367.289f, 28.10582f };
			break;
		
		case 2:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "DES_StiltHouse_imapstart", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_StiltHouse_imapend", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "des_stilthouse_rebuild", 32);
			uParam0->f_33 = 0;
			*uParam0 = { -1020.5f, 663.41f, 154.75f };
			uParam0->f_58 = { -1018.913f, 603.2904f, 105.6611f };
			uParam0->f_61 = { -1038.913f, 639.2904f, 135.6611f };
			uParam0->f_64[0] = 1;
			uParam0->f_64[1] = 0;
			break;
		
		case 5:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "bnkheist_apt_norm", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "bnkheist_apt_dest", 32);
			break;
		
		case 196:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "bnkheist_apt_dest_vfx", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
			uParam0->f_33 = 1;
			break;
		
		case 6:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "crashed_cargoplane", 32);
			break;
		
		case 7:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_jb700_covered", 32);
			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
			break;
		
		case 8:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_entityXF_covered", 32);
			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
			break;
		
		case 9:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_cheetah_covered", 32);
			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
			break;
		
		case 10:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_ztype_covered", 32);
			*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
			break;
		
		case 11:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "BH1_48_Killed_Michael", 32);
			break;
		
		case 12:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "cargoship", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "sunkcargoship", 32);
			uParam0->f_68 = { -162.8918f, -2365.769f, 0f };
			uParam0->f_71 = { 190.75f, 31.25f, 21f };
			uParam0->f_74 = 0f;
			uParam0->f_75[0] = 0;
			uParam0->f_75[1] = 1;
			break;
		
		case 13:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "ship_occ_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "ship_occ_grp2", 32);
			break;
		
		case 14:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "smboat", 32);
			break;
		
		case 15:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "gasparticle_grp2", 32);
			*uParam0 = { -95.2f, 6411.3f, 31.5f };
			break;
		
		case 16:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "CS1_02_cf_offmission", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission1", 32);
			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
			break;
		
		case 17:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission2", 32);
			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
			break;
		
		case 18:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission3", 32);
			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
			break;
		
		case 19:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission4", 32);
			*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
			break;
		
		case 20:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "jetstealtunnel", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 801.7f, -1810.8f, 23.3f };
			break;
		
		case 21:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "Jetsteal_ipl_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "Jetsteal_ipl_grp2", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
			uParam0->f_33 = 1;
			*uParam0 = { 787.3967f, -1808.858f, 29.8532f };
			uParam0->f_58 = { 814f, -1750f, 20f };
			uParam0->f_61 = { 790f, -1899f, 35f };
			uParam0->f_64[0] = 1;
			uParam0->f_64[1] = 0;
			uParam0->f_64[2] = 0;
			break;
		
		case 22:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "BH1_47_JoshHse_UnBurnt", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "BH1_47_JoshHse_Burnt", 32);
			break;
		
		case 23:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "bh1_47_joshhse_firevfx", 32);
			break;
		
		case 24:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_30_Keep_Closed", 32);
			break;
		
		case 25:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "triathlon2_VBprops", 32);
			break;
		
		case 26:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_REQUEST", 32);
			*uParam0 = { 163.4f, -745.7f, 251f };
			break;
		
		case 27:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "FBI_colPLUG", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 74.29f, -736.05f, 46.76f };
			break;
		
		case 28:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "FBI_repair", 32);
			*uParam0 = { 74.29f, -736.05f, 46.76f };
			break;
		
		case 29:
			uParam0->f_3 = 4;
			uParam0->f_4[0] = joaat("dt1_05_build1_h");
			uParam0->f_4[1] = joaat("dt1_05_build1_damage");
			*uParam0 = { 136.004f, -749.287f, 153.302f };
			break;
		
		case 30:
			uParam0->f_3 = 4;
			uParam0->f_4[0] = -112041596;
			uParam0->f_4[1] = joaat("dt1_05_build1_damage_lod");
			*uParam0 = { 136.004f, -749.287f, 153.302f };
			break;
		
		case 31:
			uParam0->f_3 = 4;
			uParam0->f_4[0] = -186270611;
			uParam0->f_4[1] = joaat("dt1_05_damage_slod");
			*uParam0 = { 178.534f, -668.835f, 37.2113f };
			break;
		
		case 32:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "FIB_heist_lights", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 136.004f, -749.287f, 153.302f };
			break;
		
		case 33:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "FIB_heist_dmg", 32);
			*uParam0 = { 136.004f, -749.287f, 153.302f };
			break;
		
		case 34:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_rubble", 32);
			*uParam0 = { 74.29f, -736.05f, 46.76f };
			break;
		
		case 35:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "FIBlobbyfake", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "FIBlobby", 32);
			*uParam0 = { 105.4557f, -745.4835f, 44.7548f };
			break;
		
		case 36:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_05_HC_REMOVE", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_HC_REQ", 32);
			*uParam0 = { 169f, -670.3f, 41.9f };
			break;
		
		case 37:
			uParam0->f_3 = 1;
			*uParam0 = { 50.2f, 3743.9f, 40.9f };
			uParam0->f_79 = { 16.9757f, 3614.307f, 30.0677f };
			uParam0->f_82 = { 145.2451f, 3748.912f, 49.6958f };
			uParam0->f_85 = { 16.9757f, 3614.307f, 30.0677f };
			uParam0->f_88 = { 145.2451f, 3748.912f, 49.6958f };
			uParam0->f_91[0] = 0;
			uParam0->f_91[1] = 1;
			break;
		
		case 38:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkA_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkA_grp2", 32);
			*uParam0 = { 50.2f, 3743.9f, 40.9f };
			break;
		
		case 39:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerA_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 50.2f, 3743.9f, 40.9f };
			break;
		
		case 40:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkB_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkB_grp2", 32);
			*uParam0 = { 106.7f, 3732.1f, 40.8f };
			break;
		
		case 41:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerB_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 106.7f, 3732.1f, 40.8f };
			break;
		
		case 42:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkC_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkC_grp2", 32);
			*uParam0 = { 72.7f, 3695.4f, 42f };
			break;
		
		case 43:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerC_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 72.7f, 3695.4f, 42f };
			break;
		
		case 44:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkD_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkD_grp2", 32);
			*uParam0 = { 43.8f, 3699.7f, 41.3f };
			break;
		
		case 45:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerD_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 43.8f, 3699.7f, 41.3f };
			break;
		
		case 46:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkE_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkE_grp2", 32);
			*uParam0 = { 28.5f, 3668f, 40.4f };
			break;
		
		case 47:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerE_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 28.5f, 3668f, 40.4f };
			break;
		
		case 48:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_34), "des_methtrailer", 32);
			StringCopy(&(uParam0->f_8[0 /*8*/]), "methtrailer_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "methtrailer_grp2", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "methtrailer_grp3", 32);
			uParam0->f_33 = 1;
			*uParam0 = { 29.4838f, 3735.593f, 38.688f };
			uParam0->f_68 = { 31.134f, 3738.783f, 39.062f };
			uParam0->f_71 = { 13.6f, 20f, 8.9f };
			uParam0->f_74 = 48f;
			uParam0->f_75[0] = 0;
			uParam0->f_75[1] = 1;
			uParam0->f_75[2] = 1;
			break;
		
		case 49:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_meth_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 29.4838f, 3735.593f, 38.688f };
			break;
		
		case 50:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhs_startimap", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhs_endimap", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
			uParam0->f_33 = 1;
			*uParam0 = { 2450.595f, 4959.929f, 44.2575f };
			uParam0->f_79 = { 2383.756f, 4929.988f, 39.52461f };
			uParam0->f_82 = { 2505.756f, 5023.988f, 67.52461f };
			break;
		
		case 55:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhs_start_occl", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhs_end_occl", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			*uParam0 = { 2450.595f, 4959.929f, 44.2575f };
			break;
		
		case 51:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "farm", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "farm", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "farm_burnt", 32);
			uParam0->f_33 = 1;
			*uParam0 = { 2444.8f, 4976.4f, 50.5f };
			break;
		
		case 52:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "farm_props", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "farm_burnt_props", 32);
			uParam0->f_33 = 1;
			*uParam0 = { 2447.9f, 4973.4f, 47.7f };
			break;
		
		case 53:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhouse", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhouse", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
			uParam0->f_33 = 1;
			*uParam0 = { 2447.9f, 4973.4f, 47.7f };
			break;
		
		case 54:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "farmint_cap", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "farmint", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			*uParam0 = { 2447.9f, 4973.4f, 47.7f };
			break;
		
		case 56:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "tankerexp_grp0", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp3", 32);
			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
			break;
		
		case 57:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp1", 32);
			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
			break;
		
		case 58:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp2", 32);
			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
			break;
		
		case 59:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_tankerexp", 32);
			*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
			break;
		
		case 60:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "dockcrane1", 32);
			*uParam0 = { 889.3f, -2910.9f, 40f };
			break;
		
		case 61:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "CanyonRvrShallow", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CanyonRvrDeep", 32);
			*uParam0 = { -1600.619f, 4443.457f, 0.725f };
			break;
		
		case 62:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "Garage_door_locked", 32);
			*uParam0 = { 966.1f, -114.8f, 75.2f };
			break;
		
		case 63:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "ch1_02_closed", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "ch1_02_open", 32);
			*uParam0 = { -3086.428f, 339.2523f, 6.3717f };
			break;
		
		case 64:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "ferris_finale_Anim", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { -1675.178f, -1143.605f, 12.0175f };
			break;
		
		case 65:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "railing_start", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "railing_end", 32);
			*uParam0 = { -532.1309f, 4526.187f, 88.7955f };
			break;
		
		case 66:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "canyonriver01", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "canyonriver01_traincrash", 32);
			*uParam0 = { -532.1309f, 4526.187f, 88.7955f };
			break;
		
		case 67:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_05_WOFFM", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_FIB2_Mission", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "DT1_05_WOFFM", 32);
			*uParam0 = { 131.29f, -631.22f, 261.85f };
			break;
		
		case 68:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "coronertrash", 32);
			*uParam0 = { 233.9f, -1355f, 30.3f };
			break;
		
		case 69:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "Coroner_Int_off", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "Coroner_Int_on", 32);
			*uParam0 = { 234.4f, -1355.6f, 40.5f };
			break;
		
		case 70:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "id2_14_pre_no_int", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 716.84f, -962.05f, 31.59f };
			break;
		
		case 71:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_during1", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "id2_14_during2", 32);
			*uParam0 = { 716.84f, -962.05f, 31.59f };
			break;
		
		case 72:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_on_fire", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "id2_14_post_no_int", 32);
			*uParam0 = { 716.84f, -962.05f, 31.59f };
			break;
		
		case 73:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_during_door", 32);
			*uParam0 = { 716.84f, -962.05f, 31.59f };
			break;
		
		case 74:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "burnt_switch_off", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 716.84f, -962.05f, 31.59f };
			break;
		
		case 75:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "RC12B_Default", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "RC12B_Destroyed", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "RC12B_Fixed", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
			break;
		
		case 76:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "RC12B_HospitalInterior", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
			break;
		
		case 105:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "SM_15_BldGRAF1", 32);
			*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
			break;
		
		case 106:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CH3_RD2_BishopsChickenGraffiti", 32);
			*uParam0 = { 1861.28f, 2402.11f, 58.53f };
			break;
		
		case 107:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "FruitBB", 32);
			*uParam0 = { -1327.46f, -274.82f, 54.25f };
			break;
		
		case 108:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS5_04_MazeBillboardGraffiti", 32);
			*uParam0 = { 2697.32f, 3162.18f, 58.1f };
			break;
		
		case 109:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS5_Roads_RonOilGraffiti", 32);
			*uParam0 = { 2119.12f, 3058.21f, 53.25f };
			break;
		
		case 110:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "ap1_03_bbrd_dcl", 32);
			*uParam0 = { -804.25f, -2276.88f, 23.59f };
			break;
		
		case 111:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "HW1_02_OldBill", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "HW1_02_NewBill", 32);
			*uParam0 = { 296.5f, 173.3f, 100.4f };
			break;
		
		case 112:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "HW1_Emissive_OldBill", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "HW1_Emissive_NewBill", 32);
			*uParam0 = { 296.5f, 173.3f, 100.4f };
			break;
		
		case 77:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 1;
			*uParam0 = { 480.9554f, -1321.21f, 28.2037f };
			uParam0->f_85 = { 508.3f, -1299.3f, 39.4f };
			uParam0->f_88 = { 459.9f, -1363.2f, 21.4f };
			uParam0->f_91[0] = 0;
			uParam0->f_91[1] = 1;
			uParam0->f_91[2] = 0;
			break;
		
		case 78:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "TrevorsTrailer", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "TrevorsTrailerTrash", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "TrevorsTrailerTidy", 32);
			*uParam0 = { 1973f, 3815f, 34f };
			uParam0->f_33 = 0;
			break;
		
		case 79:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "scafstartimap", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "scafendimap", 32);
			*uParam0 = { -1088.6f, -1650.6f, 6.4f };
			break;
		
		case 80:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "chop_props", 32);
			*uParam0 = { -13.83f, -1455.45f, 31.81f };
			break;
		
		case 113:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "AP1_04_TriAf01", 32);
			*uParam0 = { -1277.629f, -2030.913f, 1.2823f };
			break;
		
		case 114:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS2_06_TriAf02", 32);
			*uParam0 = { 2384.969f, 4277.583f, 30.379f };
			break;
		
		case 115:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS4_04_TriAf03", 32);
			*uParam0 = { 1577.881f, 3836.107f, 30.7717f };
			break;
		
		case 87:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_21_prop_lift_on", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { -180.5771f, -1016.928f, 28.2893f };
			break;
		
		case 88:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "jewel2fake", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "post_hiest_unload", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "bh1_16_refurb", 32);
			*uParam0 = { -630.4205f, -236.7843f, 37.057f };
			uParam0->f_79 = { (-623.6868f - 11f), (-231.935f - 11f), (40.30703f - 3.25f) };
			uParam0->f_82 = { (-623.6868f + 11f), (-231.935f + 11f), (40.30703f + 3.25f) };
			break;
		
		case 89:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "bh1_16_doors_shut", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "refit_unload", 32);
			*uParam0 = { -583.1606f, -282.3967f, 35.394f };
			break;
		
		case 90:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "v_tunnel_hole_swap", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "v_tunnel_hole", 32);
			*uParam0 = { -14.651f, -604.3639f, 25.1823f };
			break;
		
		case 91:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "cs5_4_trains", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 2773.61f, 2835.327f, 35.1903f };
			break;
		
		case 94:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "airfield", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 1743.682f, 3286.251f, 40.0875f };
			break;
		
		case 95:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
			uParam0->f_33 = 1;
			*uParam0 = { 1222.9f, 1877.9f, 79.9f };
			uParam0->f_58 = { 1206.8f, 1803f, 43.9f };
			uParam0->f_61 = { 1329f, 2060.4f, 143.9f };
			uParam0->f_64[0] = 0;
			uParam0->f_64[1] = 1;
			uParam0->f_64[2] = 0;
			break;
		
		case 104:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_01_OldBill", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "SC1_01_NewBill", 32);
			*uParam0 = { -351f, -1324f, 44.02f };
			break;
		
		case 103:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_17_OldBill", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_17_NewBill", 32);
			*uParam0 = { 391.81f, -962.71f, 41.97f };
			break;
		
		case 102:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_14_OldBill", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "SC1_14_NewBill", 32);
			*uParam0 = { 424.2f, -1944.31f, 33.09f };
			break;
		
		case 92:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "ld_rail_01_track", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 2626.374f, 2949.869f, 39.1409f };
			break;
		
		case 93:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "ld_rail_02_track", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 2626.374f, 2949.869f, 39.1409f };
			break;
		
		case 118:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_M_items", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_M_moved", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -811.2679f, 179.3344f, 75.7408f };
			break;
		
		case 116:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_D_items", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_D_Moved", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -802.0311f, 172.9131f, 75.7408f };
			break;
		
		case 117:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_S_items", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_S_items_swap", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -808.033f, 172.1309f, 75.7406f };
			break;
		
		case 119:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_L_Items", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_L_Moved", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -808.033f, 172.1309f, 75.7406f };
			break;
		
		case 120:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_M_items_swap", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -808.033f, 172.1309f, 75.7406f };
			break;
		
		case 122:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_FameShame", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -802.0311f, 172.9131f, 75.7408f };
			break;
		
		case 121:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_JewelHeist", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -813.3f, 177.5f, 75.76f };
			break;
		
		case 123:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "Michael_premier", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -813.3f, 177.5f, 75.76f };
			break;
		
		case 124:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_plane_ticket", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -813.3f, 177.5f, 75.76f };
			break;
		
		case 170:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "burgershot_yoga", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -813.3f, 177.5f, 75.76f };
			break;
		
		case 171:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_Scuba", 32);
			StringCopy(&(uParam0->f_42), "V_Michael_Garage", 32);
			*uParam0 = { -810.5301f, 187.7868f, 71.4786f };
			break;
		
		case 125:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_bed_tidy", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_bed_Messy", 32);
			StringCopy(&(uParam0->f_42), "V_Michael", 32);
			*uParam0 = { -811.2679f, 179.3344f, 75.7408f };
			break;
		
		case 164:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "Jewel_Gasmasks", 32);
			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
			break;
		
		case 165:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_53_Agency _Overalls", 32);
			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
			break;
		
		case 166:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_53_Agency_Blueprint", 32);
			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
			break;
		
		case 167:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_KitBag", 32);
			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
			break;
		
		case 168:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_Body_Armour", 32);
			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
			break;
		
		case 169:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_Fireman", 32);
			StringCopy(&(uParam0->f_42), "V_Sweat", 32);
			*uParam0 = { 707.2563f, -965.147f, 29.4179f };
			break;
		
		case 126:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet1", 32);
			StringCopy(&(uParam0->f_42), "V_Trailer", 32);
			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
			break;
		
		case 127:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet3", 32);
			StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
			break;
		
		case 128:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet2", 32);
			StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
			break;
		
		case 129:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase1", 32);
			StringCopy(&(uParam0->f_42), "V_Trailer", 32);
			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
			break;
		
		case 130:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase3", 32);
			StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
			break;
		
		case 131:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase2", 32);
			StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
			break;
		
		case 132:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay1", 32);
			StringCopy(&(uParam0->f_42), "V_Trailer", 32);
			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
			break;
		
		case 133:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay3", 32);
			StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
			break;
		
		case 134:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay2", 32);
			StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
			*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
			break;
		
		case 179:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "shutter_open", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "shutter_closed", 32);
			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
			*uParam0 = { -30.8793f, -1088.336f, 25.4221f };
			uParam0->f_68 = { -29.3f, -1086.35f, 25.57f };
			uParam0->f_71 = { 5.5f, 3f, 2f };
			uParam0->f_74 = -10f;
			uParam0->f_75[0] = 0;
			uParam0->f_75[1] = 1;
			break;
		
		case 174:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "csr_beforeMission", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "csr_afterMissionA", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "csr_afterMissionB", 32);
			StringCopy(&(uParam0->f_50), "csr_inMission", 32);
			uParam0->f_33 = 0;
			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
			*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
			break;
		
		case 175:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
			*uParam0 = { -49.21f, -1090.28f, 25.42f };
			uParam0->f_68 = { -49.21f, -1090.28f, 25.42f };
			uParam0->f_71 = { 2.5f, 3f, 3f };
			uParam0->f_74 = 0f;
			uParam0->f_75[0] = 0;
			uParam0->f_75[1] = 1;
			uParam0->f_75[2] = 0;
			break;
		
		case 176:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
			*uParam0 = { -49.28f, -1092.66f, 25.42f };
			uParam0->f_68 = { -49.28f, -1092.66f, 25.42f };
			uParam0->f_71 = { 3f, 1f, 3f };
			uParam0->f_74 = 0f;
			uParam0->f_75[0] = 0;
			uParam0->f_75[1] = 1;
			uParam0->f_75[2] = 0;
			break;
		
		case 177:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
			*uParam0 = { -53.07f, -1096.73f, 25.5f };
			uParam0->f_68 = { -53.07f, -1096.73f, 25.5f };
			uParam0->f_71 = { 1f, 3f, 2f };
			uParam0->f_74 = -45f;
			uParam0->f_75[0] = 0;
			uParam0->f_75[1] = 1;
			uParam0->f_75[2] = 0;
			break;
		
		case 178:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "carshowroom_broken", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "carshowroom_boarded", 32);
			uParam0->f_33 = 0;
			*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
			break;
		
		case 173:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "shr_int", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "fakeint", 32);
			uParam0->f_33 = 0;
			*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
			break;
		
		case 180:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_03_Shutter", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_42), "", 32);
			*uParam0 = { 23.9346f, -669.7552f, 30.8853f };
			break;
		
		case 181:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "Hospitaldoorsanim", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "Hospitaldoorsfixed", 32);
			StringCopy(&(uParam0->f_42), "v_hospital", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 300.9423f, -586.1784f, 42.2919f };
			break;
		
		case 135:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_clean_apt", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_A", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 136:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_B", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 137:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_C", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 138:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_sextoys_a", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 139:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_wade_shit", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 140:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_wade_sofa_A", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 141:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "layer_debra_pic", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 142:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_torture", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 143:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_sofa_A", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_sofa_B", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 144:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_whiskey", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 145:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_mrJam_A", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_mrJam_B", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 146:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_mrJam_C", 32);
			StringCopy(&(uParam0->f_42), "v_trevors", 32);
			*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
			break;
		
		case 147:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "vb_30_emissive", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "vb_30_murder", 32);
			uParam0->f_33 = 0;
			*uParam0 = { -1150.039f, -1521.761f, 9.6331f };
			break;
		
		case 148:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "vb_30_crimetape", 32);
			uParam0->f_33 = 0;
			*uParam0 = { -1150.039f, -1521.761f, 9.6331f };
			break;
		
		case 149:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "sheriff_cap", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 1856.029f, 3682.998f, 33.2675f };
			break;
		
		case 150:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "CS1_16_Sheriff_Cap", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			uParam0->f_33 = 0;
			*uParam0 = { -440.5073f, 6018.766f, 30.49f };
			break;
		
		case 151:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "ufo", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 487.31f, 5588.386f, 793.0532f };
			break;
		
		case 152:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "ufo_eye", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 487.31f, 5588.386f, 793.0532f };
			break;
		
		case 153:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "V_57_FranklinStuff", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_Franklin_LEFT", 32);
			StringCopy(&(uParam0->f_42), "v_franklins", 32);
			*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
			break;
		
		case 154:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_GangBandana", 32);
			StringCopy(&(uParam0->f_42), "v_franklins", 32);
			*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
			break;
		
		case 155:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_Safari", 32);
			StringCopy(&(uParam0->f_42), "v_franklins", 32);
			*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
			break;
		
		case 172:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "V_19_Trevor_Mess", 32);
			StringCopy(&(uParam0->f_42), "v_strip3", 32);
			*uParam0 = { 96.4811f, -1291.294f, 28.2688f };
			break;
		
		case 182:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 139.5795f, -3092.962f, 8.64631f };
			uParam0->f_79 = { Vector(8.64631f, -3092.962f, 139.5795f) - Vector(4.1875f, 24f, 33.3125f) };
			uParam0->f_82 = { Vector(8.64631f, -3092.962f, 139.5795f) + Vector(4.1875f, 24f, 33.3125f) };
			uParam0->f_85 = { Vector(8.64631f, -3092.962f, 139.5795f) - Vector(4.1875f, 24f, 33.3125f) };
			uParam0->f_88 = { Vector(8.64631f, -3092.962f, 139.5795f) + Vector(4.1875f, 24f, 33.3125f) };
			uParam0->f_91[0] = 0;
			uParam0->f_91[1] = 1;
			uParam0->f_91[2] = 1;
			break;
		
		case 183:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 203.7784f, -3131.767f, 7.041344f };
			uParam0->f_79 = { Vector(7.041344f, -3131.767f, 203.7784f) - Vector(2.5625f, 2.75f, 4.875f) };
			uParam0->f_82 = { Vector(7.041344f, -3131.767f, 203.7784f) + Vector(2.5625f, 2.75f, 4.875f) };
			break;
		
		case 184:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 144.7706f, -2982.659f, 7.952507f };
			uParam0->f_79 = { Vector(7.952507f, -2982.659f, 144.7706f) - Vector(3.125f, 3.4375f, 5.3125f) };
			uParam0->f_82 = { Vector(7.952507f, -2982.659f, 144.7706f) + Vector(3.125f, 3.4375f, 5.3125f) };
			break;
		
		case 185:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 1;
			*uParam0 = { -1154.965f, -1520.983f, 9.132731f };
			uParam0->f_79 = { -1154.965f, -1520.983f, 9.132731f };
			uParam0->f_82 = { -1158.965f, -1524.983f, 11.63273f };
			break;
		
		case 187:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 1;
			*uParam0 = { -1052.204f, 371.9537f, 67.914f };
			uParam0->f_79 = { -1052.204f, 371.9537f, 67.914f };
			uParam0->f_82 = { -1048.064f, 368.0221f, 70.9128f };
			break;
		
		case 186:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 1;
			*uParam0 = { 1954.984f, 3792.991f, 30.3086f };
			uParam0->f_79 = { 1954.984f, 3792.991f, 30.3086f };
			uParam0->f_82 = { 1983.45f, 3830.78f, 36.2726f };
			break;
		
		case 188:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 1;
			*uParam0 = { -1122.202f, 48.5724f, 51.4652f };
			uParam0->f_79 = { -1122.202f, 48.5724f, 51.4652f };
			uParam0->f_82 = { -1076.233f, 92.1041f, 60.0617f };
			break;
		
		case 81:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "KorizTempWalls", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 0;
			*uParam0 = { -2199.138f, 223.4648f, 181.1118f };
			break;
		
		case 82:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "mic3_chopper_debris", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 0;
			*uParam0 = { -2242.785f, 263.4779f, 173.6154f };
			break;
		
		case 83:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "chemgrill_grp1", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 3832.9f, 3665.5f, -23.4f };
			break;
		
		case 84:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "Plane_crash_trench", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 2814.7f, 4758.5f, 47.9f };
			break;
		
		case 85:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "golfflags", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { -1096.505f, 4.5754f, 49.8103f };
			break;
		
		case 86:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "yogagame", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { -781.6566f, 186.8937f, 71.8352f };
			break;
		
		case 189:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "Carwash_with_spinners", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "Carwash_without_spinners", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 55.7f, -1391.3f, 30.5f };
			break;
		
		case 190:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "KT_CarWash", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "KT_CarWash_NoBrush", 32);
			uParam0->f_33 = 0;
			*uParam0 = { 700.091f, -933.641f, 20.308f };
			break;
		
		case 191:
			uParam0->f_3 = 1;
			*uParam0 = { -1096.381f, -836.17f, 36.6755f };
			uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
			uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
			uParam0->f_91[0] = 1;
			uParam0->f_91[1] = 0;
			break;
		
		case 192:
			uParam0->f_3 = 1;
			*uParam0 = { 449.6558f, -980.1375f, 42.6918f };
			uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
			uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
			uParam0->f_91[0] = 1;
			uParam0->f_91[1] = 0;
			break;
		
		case 193:
			uParam0->f_3 = 1;
			*uParam0 = { 363.0175f, -1598.079f, 35.9502f };
			uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
			uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
			uParam0->f_91[0] = 1;
			uParam0->f_91[1] = 0;
			break;
		
		case 194:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "CS3_07_MPGates", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
			*uParam0 = { -1601.424f, 2808.213f, 16.2598f };
			break;
		
		case 97:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_03_Gr_Closed", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
			*uParam0 = { 23.7318f, -647.2123f, 37.9549f };
			break;
		
		case 98:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "FINBANK", 32);
			*uParam0 = { 12.9689f, -648.4698f, 9.7693f };
			break;
		
		case 99:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "PAPER1_RCM_ALT", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "PAPER1_RCM", 32);
			*uParam0 = { -1459.127f, 486.1281f, 115.2016f };
			break;
		
		case 100:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "SP1_10_fake_interior", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "SP1_10_real_interior", 32);
			*uParam0 = { -248.4916f, -2010.509f, 34.5743f };
			break;
		
		case 101:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "facelobbyfake", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "facelobby", 32);
			*uParam0 = { -1081.347f, -263.1502f, 38.7152f };
			break;
		
		case 195:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "atriumglstatic", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "atriumglmission", 32);
			StringCopy(&(uParam0->f_8[2 /*8*/]), "atriumglcut", 32);
			*uParam0 = { 136.1795f, -750.701f, 262.0516f };
			break;
		
		case 197:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "racetrack01", 32);
			*uParam0 = { 2096f, 3168.7f, 42.9f };
			break;
	}
	switch (iParam1)
	{
		case 156:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "showhome_only", 32);
			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
			break;
		
		case 157:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "franklin_unpacking", 32);
			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
			break;
		
		case 158:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "franklin_settled", 32);
			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
			break;
		
		case 163:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_tshirt", 32);
			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
			break;
		
		case 159:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "bong_and_wine", 32);
			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
			break;
		
		case 161:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_flyer", 32);
			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
			break;
		
		case 162:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_tux", 32);
			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
			break;
		
		case 160:
			uParam0->f_3 = 2;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "locked", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "unlocked", 32);
			StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
			*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
			break;
		
		case 96:
			uParam0->f_3 = 1;
			StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
			StringCopy(&(uParam0->f_8[1 /*8*/]), "chophillskennel", 32);
			*uParam0 = { 19.0568f, 536.4818f, 169.6277f };
			break;
	}
	return true;
}

void func_134(int iParam0, int iParam1)//Position - 0xF98F
{
	int iVar0;
	
	if (iParam0 != 226)
	{
		if (Global_69617)
		{
			iVar0 = Global_2432628.f_74[iParam0];
		}
		else
		{
			iVar0 = Global_101553.f_6116[iParam0];
		}
		if (iVar0 != iParam1 || gameplay::is_bit_set(Global_31563[(iParam0 / 32)], (iParam0 % 32)))
		{
			if ((((iParam1 == 4 || iParam1 == 3) || iParam1 == 5) || iParam1 == 6) || iParam1 == 2)
			{
				gameplay::set_bit(&(Global_31572[(iParam0 / 32)]), (iParam0 % 32));
				Global_32035[iParam0] = iParam1;
			}
			else if (Global_69617)
			{
				Global_2432628.f_74[iParam0] = iParam1;
			}
			else
			{
				Global_101553.f_6116[iParam0] = iParam1;
			}
			gameplay::set_bit(&(Global_31563[(iParam0 / 32)]), (iParam0 % 32));
			func_136(iParam0);
			if (gameplay::is_bit_set(Global_31563[(iParam0 / 32)], (iParam0 % 32)))
			{
				func_135(iParam0);
			}
		}
	}
}

void func_135(int iParam0)//Position - 0xFA88
{
	if (!gameplay::is_bit_set(Global_32506.f_228[(iParam0 / 32)], (iParam0 % 23)))
	{
		gameplay::set_bit(&(Global_32506.f_228[(iParam0 / 32)]), (iParam0 % 23));
		Global_32506[Global_32506.f_227] = iParam0;
		Global_32506.f_227++;
	}
}

void func_136(int iParam0)//Position - 0xFAD6
{
	struct<7> Var0;
	int iVar7;
	int iVar8;
	int iVar9;
	float fVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	if (!func_131())
	{
		return;
	}
	if (ped::is_ped_injured(player::player_ped_id()))
	{
		return;
	}
	Var0 = { func_144(iParam0) };
	if (gameplay::is_bit_set(Var0.f_4, 2))
	{
		func_141(iParam0, &Var0);
	}
	if (!object::_does_door_exist(Var0.f_5))
	{
		if (cutscene::is_cutscene_playing())
		{
			return;
		}
	}
	iVar7 = false;
	iVar8 = false;
	fVar10 = gameplay::get_distance_between_coords(Var0, entity::get_entity_coords(player::player_ped_id(), 1), 1);
	if ((gameplay::is_bit_set(Global_31572[(iParam0 / 32)], (iParam0 % 32)) && Global_32035[iParam0] == 2) && fVar10 > 210f)
	{
		gameplay::clear_bit(&(Global_31572[(iParam0 / 32)]), (iParam0 % 32));
		Global_31581[iParam0] = 0;
	}
	if (script::_get_number_of_instances_of_streamed_script(joaat("startup_positioning")) == 0)
	{
		if (gameplay::is_bit_set(Global_31808[(iParam0 / 32)], (iParam0 % 32)))
		{
			if (fVar10 < 25f)
			{
				if (Global_91458.f_301 == 0)
				{
					if (!entity::is_entity_dead(player::player_ped_id(), 0))
					{
						Global_91458.f_301 = interior::get_interior_from_entity(player::player_ped_id());
					}
				}
				iVar11 = Global_91458.f_301;
				iVar12 = interior::get_interior_at_coords(Var0);
				if (iVar11 == iVar12 && iVar11 != 0)
				{
					gameplay::set_bit(&(Global_31572[(iParam0 / 32)]), (iParam0 % 32));
					Global_32035[iParam0] = 3;
					gameplay::set_bit(&(Global_31563[(iParam0 / 32)]), (iParam0 % 32));
				}
			}
			gameplay::clear_bit(&(Global_31808[(iParam0 / 32)]), (iParam0 % 32));
		}
	}
	if (gameplay::is_bit_set(Global_31572[(iParam0 / 32)], (iParam0 % 32)))
	{
		iVar9 = Global_32035[iParam0];
	}
	else if (gameplay::is_bit_set(Var0.f_4, 0))
	{
		if (Global_101553.f_7940)
		{
			iVar9 = func_138(iParam0);
		}
		else
		{
			iVar9 = 0;
		}
		if (func_13(14))
		{
			iVar9 = 0;
		}
	}
	else if (gameplay::is_bit_set(Var0.f_4, 1) && script::_get_number_of_instances_of_streamed_script(joaat("ambient_solomon")) == 0)
	{
		if (func_137())
		{
			iVar9 = 0;
		}
		else
		{
			iVar9 = 1;
		}
	}
	else
	{
		iVar9 = Global_101553.f_6116[iParam0];
	}
	if (Global_32262[iParam0] != iVar9)
	{
		iVar7 = true;
	}
	if (gameplay::is_bit_set(Global_31563[(iParam0 / 32)], (iParam0 % 32)))
	{
		if (!gameplay::is_bit_set(Global_31572[(iParam0 / 32)], (iParam0 % 32)) || (Global_31581[iParam0] == 0 && Global_32035[iParam0] != 2))
		{
			iVar7 = true;
		}
	}
	if (iVar7)
	{
		if (!Global_31562)
		{
		}
		else
		{
			if (!object::_does_door_exist(Var0.f_5))
			{
				object::add_door_to_system(Var0.f_5, Var0.f_3, Var0, 0, 0, 0);
			}
			switch (iVar9)
			{
				case 1:
					if (gameplay::is_bit_set(Var0.f_4, 3))
					{
						iVar13 = true;
					}
					else if (fVar10 > 3f || gameplay::absf(object::_0x65499865FCA6E5EC(Var0.f_5)) <= 0.015f)
					{
						iVar14 = interior::get_interior_from_entity(player::player_ped_id());
						iVar15 = interior::get_interior_at_coords(Var0);
						if (iVar14 != iVar15 || iVar14 == 0)
						{
							iVar13 = true;
						}
					}
					if (iVar13)
					{
						if (Var0.f_6 != 0f)
						{
							object::_0x9BA001CB45CBF627(Var0.f_5, Var0.f_6, 0, 0);
						}
						object::_set_door_acceleration_limit(Var0.f_5, iVar9, 0, 1);
						iVar8 = true;
					}
					break;
				
				case 4:
					if (Var0.f_6 != 0f)
					{
						object::_0x9BA001CB45CBF627(Var0.f_5, Var0.f_6, 0, 0);
					}
					object::_set_door_acceleration_limit(Var0.f_5, iVar9, 0, 1);
					iVar8 = true;
					break;
				
				case 2:
					if (Var0.f_6 != 0f)
					{
						object::_0x9BA001CB45CBF627(Var0.f_5, Var0.f_6, 0, 0);
					}
					object::_set_door_acceleration_limit(Var0.f_5, iVar9, 0, 1);
					iVar8 = true;
					break;
				
				case 0:
					if (Var0.f_6 != 0f)
					{
						object::_0x9BA001CB45CBF627(Var0.f_5, Var0.f_6, 0, 1);
					}
					object::_set_door_acceleration_limit(Var0.f_5, iVar9, 0, 1);
					iVar8 = true;
					break;
				
				case 3:
					if (Var0.f_6 != 0f)
					{
						object::_0x9BA001CB45CBF627(Var0.f_5, Var0.f_6, 0, 0);
					}
					object::_set_door_acceleration_limit(Var0.f_5, 0, 0, 1);
					iVar8 = true;
					break;
				
				case 5:
					if (Var0.f_6 != 0f)
					{
						object::_0x9BA001CB45CBF627(Var0.f_5, Var0.f_6, 0, 0);
					}
					object::_set_door_acceleration_limit(Var0.f_5, iVar9, 0, 1);
					iVar8 = true;
					break;
				
				case 6:
					if (Var0.f_6 != 0f)
					{
						object::_0x9BA001CB45CBF627(Var0.f_5, Var0.f_6, 0, 0);
					}
					object::_set_door_acceleration_limit(Var0.f_5, iVar9, 0, 1);
					iVar8 = true;
					break;
				
				default:
					if (Var0.f_6 != 0f)
					{
						object::_0x9BA001CB45CBF627(Var0.f_5, Var0.f_6, 0, 0);
					}
					object::_set_door_acceleration_limit(Var0.f_5, iVar9, 0, 1);
					iVar8 = true;
					break;
				}
		}
		if (iVar8)
		{
			gameplay::clear_bit(&(Global_31563[(iParam0 / 32)]), (iParam0 % 32));
			Global_32262[iParam0] = iVar9;
		}
	}
	if (gameplay::is_bit_set(Global_31572[(iParam0 / 32)], (iParam0 % 32)) && Global_32035[iParam0] != 2)
	{
		gameplay::set_bit(&(Global_31563[(iParam0 / 32)]), (iParam0 % 32));
		func_135(iParam0);
		if (Global_31581[iParam0] < 2)
		{
			Global_31581[iParam0]++;
		}
	}
}

bool func_137()//Position - 0xFFB9
{
	if (player::is_player_wanted_level_greater(player::player_id(), 0))
	{
		return false;
	}
	switch (func_11())
	{
		case 0:
			if (Global_101553.f_7940.f_99.f_58[65])
			{
				return true;
			}
			break;
		
		case 1:
			if (Global_101553.f_7940.f_99.f_58[66])
			{
				return true;
			}
			break;
		
		case 2:
			if (Global_101553.f_7940.f_99.f_58[65])
			{
				return true;
			}
			break;
	}
	return false;
}

bool func_138(int iParam0)//Position - 0x10039
{
	int iVar0;
	
	iVar0 = func_11();
	if (func_139(iParam0))
	{
		return true;
	}
	if (iParam0 == 49)
	{
		if (iVar0 == 1)
		{
			if (gameplay::is_bit_set(Global_101553.f_6084[5], 0) || gameplay::is_bit_set(Global_101553.f_6084[6], 0))
			{
				return false;
			}
		}
		if (func_14(iVar0))
		{
			if (gameplay::is_bit_set(Global_86766[5], iVar0))
			{
				return false;
			}
		}
	}
	switch (iParam0)
	{
		case 38:
		case 39:
		case 40:
		case 41:
		case 42:
		case 43:
		case 44:
		case 45:
		case 46:
			if (iVar0 == 0)
			{
				if (gameplay::is_bit_set(Global_101553.f_6084[0], 0))
				{
					return false;
				}
			}
			if (func_14(iVar0))
			{
				if (gameplay::is_bit_set(Global_86766[0], iVar0))
				{
					if (iParam0 != 40)
					{
						return false;
					}
					else
					{
						return true;
					}
				}
			}
			break;
		
		case 47:
		case 48:
		case 49:
			if (iVar0 == 1)
			{
				if (gameplay::is_bit_set(Global_101553.f_6084[5], 0))
				{
					return false;
				}
			}
			if (func_14(iVar0))
			{
				if (gameplay::is_bit_set(Global_86766[5], iVar0))
				{
					return false;
				}
			}
			break;
		
		case 50:
			if (iVar0 == 1)
			{
				if (gameplay::is_bit_set(Global_101553.f_6084[6], 0))
				{
					return false;
				}
			}
			if (func_14(iVar0))
			{
				if (gameplay::is_bit_set(Global_86766[6], iVar0))
				{
					return false;
				}
			}
			break;
		
		case 51:
		case 52:
			if (iVar0 == 2)
			{
				if (gameplay::is_bit_set(Global_101553.f_6084[2], 0))
				{
					return false;
				}
				if (func_14(iVar0))
				{
					if (gameplay::is_bit_set(Global_86766[2], iVar0))
					{
						return false;
					}
				}
			}
			else if (iVar0 == 0)
			{
				if (gameplay::is_bit_set(Global_101553.f_6084[1], 0))
				{
					return false;
				}
				if (func_14(iVar0))
				{
					if (gameplay::is_bit_set(Global_86766[1], iVar0))
					{
						return false;
					}
				}
			}
			break;
		
		case 53:
			if (iVar0 == 2)
			{
				if (gameplay::is_bit_set(Global_101553.f_6084[3], 0))
				{
					return false;
				}
			}
			if (func_14(iVar0))
			{
				if (gameplay::is_bit_set(Global_86766[3], iVar0))
				{
					return false;
				}
			}
			break;
		
		default:
			return false;
			break;
	}
	return true;
}

bool func_139(int iParam0)//Position - 0x1028E
{
	int iVar0;
	
	if ((iParam0 == 40 || iParam0 == 49) || iParam0 == 52)
	{
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
			{
				iVar0 = entity::get_entity_model(func_140(ped::get_vehicle_ped_is_in(player::player_ped_id(), 1)));
				switch (iVar0)
				{
					case joaat("utillitruck"):
					case joaat("monster"):
						return true;
						break;
					}
				}
			}
	}
	return false;
}

int func_140(int iParam0)//Position - 0x102FA
{
	return iParam0;
}

void func_141(int iParam0, var uParam1)//Position - 0x10304
{
	int iVar0;
	int iVar1;
	
	if (!gameplay::is_bit_set(uParam1->f_4, 2))
	{
		return;
	}
	iVar0 = func_87();
	iVar1 = func_143(iVar0);
	switch (iParam0)
	{
		case 133:
		case 134:
		case 201:
		case 202:
			if (func_142(iParam0))
			{
				if (iVar1 < 19)
				{
					if (iVar1 >= 7)
					{
						Global_101553.f_6116[iParam0] = 0;
						object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
					}
				}
				else
				{
					return;
				}
			}
			else if (iVar1 >= 19)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 12f)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			else if (iVar1 < 7)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 12f)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			break;
		
		case 199:
		case 200:
		case 203:
		case 204:
			if (func_142(iParam0))
			{
				if (iVar1 < 18)
				{
					if (iVar1 >= 7)
					{
						Global_101553.f_6116[iParam0] = 0;
						object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
					}
				}
				else
				{
					return;
				}
			}
			else if (iVar1 >= 18)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 12f)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			else if (iVar1 < 7)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 12f)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			break;
		
		case 141:
		case 142:
			if (func_142(iParam0))
			{
				if ((script::_get_number_of_instances_of_streamed_script(joaat("jewelry_heist")) == 0 && script::_get_number_of_instances_of_streamed_script(joaat("jewelry_setup1")) == 0) && !Global_101553.f_7940.f_99.f_58[4])
				{
					if (iVar1 < 21)
					{
						if (iVar1 >= 7)
						{
							Global_101553.f_6116[iParam0] = 0;
							object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
						}
					}
					else
					{
						return;
					}
				}
				else if (!Global_101553.f_7940.f_99.f_58[4])
				{
					Global_101553.f_6116[iParam0] = 0;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			else if (Global_101553.f_7940.f_99.f_58[4])
			{
				Global_101553.f_6116[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
			}
			else if (script::_get_number_of_instances_of_streamed_script(joaat("jewelry_heist")) == 0 && script::_get_number_of_instances_of_streamed_script(joaat("jewelry_setup1")) == 0)
			{
				if (iVar1 >= 21)
				{
					if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 18f)
					{
						Global_101553.f_6116[iParam0] = 1;
						object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
					}
				}
				else if (iVar1 < 7)
				{
					if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 18f)
					{
						Global_101553.f_6116[iParam0] = 1;
						object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
					}
				}
			}
			break;
		
		case 145:
		case 146:
		case 143:
		case 144:
			if (func_142(iParam0))
			{
				if (iVar1 < 20)
				{
					if (iVar1 >= 9)
					{
						Global_101553.f_6116[iParam0] = 0;
						object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
					}
				}
				else
				{
					return;
				}
			}
			else if (iVar1 >= 20)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 40f)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			else if (iVar1 < 9)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 40f)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			break;
		
		case 147:
		case 148:
			if (!func_142(iParam0))
			{
				Global_101553.f_6116[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
			}
			break;
		
		case 152:
		case 153:
		case 154:
		case 155:
		case 156:
		case 157:
			if (!func_142(iParam0))
			{
				if (script::_get_number_of_instances_of_streamed_script(joaat("assassin_valet")) == 0)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			else if (script::_get_number_of_instances_of_streamed_script(joaat("assassin_valet")) > 0)
			{
				Global_101553.f_6116[iParam0] = 0;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
			}
			break;
		
		case 158:
		case 159:
			if (script::_get_number_of_instances_of_streamed_script(Global_82527[70 /*34*/].f_6) == 0)
			{
				if (!func_142(iParam0))
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			break;
		
		case 160:
		case 161:
			if (script::_get_number_of_instances_of_streamed_script(joaat("omega2")) == 0)
			{
				if (!func_142(iParam0))
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			break;
		
		case 70:
		case 71:
		case 72:
			if (!func_142(iParam0) && script::_get_number_of_instances_of_streamed_script(Global_82527[26 /*34*/].f_6) == 0)
			{
				Global_101553.f_6116[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
			}
			else
			{
				return;
			}
			break;
		
		case 101:
		case 102:
		case 103:
		case 104:
			if (!func_142(iParam0))
			{
				if (script::_get_number_of_instances_of_streamed_script(Global_82527[43 /*34*/].f_6) == 0)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			else
			{
				return;
			}
			break;
		
		case 190:
		case 191:
			if (!func_142(iParam0))
			{
				Global_101553.f_6116[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
			}
			break;
		
		case 193:
			if (!func_142(iParam0))
			{
				if (script::_get_number_of_instances_of_streamed_script(Global_82527[93 /*34*/].f_6) > 0)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			else
			{
				return;
			}
			break;
		
		case 198:
			if (!func_142(iParam0))
			{
				Global_101553.f_6116[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
			}
			break;
		
		case 80:
			if (!func_142(iParam0))
			{
				if (script::_get_number_of_instances_of_streamed_script(Global_82527[8 /*34*/].f_6) == 0 && script::_get_number_of_instances_of_streamed_script(Global_82527[10 /*34*/].f_6) == 0)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			else
			{
				return;
			}
			break;
		
		case 205:
		case 206:
			if (!func_142(iParam0))
			{
				if (script::_get_number_of_instances_of_streamed_script(Global_82527[47 /*34*/].f_6) == 0)
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			else
			{
				return;
			}
			break;
		
		case 207:
			if (script::_get_number_of_instances_of_streamed_script(Global_82527[70 /*34*/].f_6) == 0)
			{
				if (!func_142(iParam0))
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			break;
		
		case 208:
		case 209:
		case 211:
		case 210:
		case 212:
		case 213:
		case 214:
		case 215:
			if (script::_get_number_of_instances_of_streamed_script(Global_82527[48 /*34*/].f_6) == 0)
			{
				if (!func_142(iParam0))
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			break;
		
		case 99:
		case 100:
			if (script::_get_number_of_instances_of_streamed_script(Global_82527[39 /*34*/].f_6) == 0)
			{
				if (!func_142(iParam0))
				{
					Global_101553.f_6116[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
				}
			}
			break;
		
		case 216:
			if (!func_142(iParam0))
			{
				Global_101553.f_6116[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
			}
			break;
		
		case 217:
		case 218:
			if (!func_142(iParam0))
			{
				Global_101553.f_6116[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
			}
			break;
		
		case 219:
		case 220:
		case 221:
		case 222:
			if (func_142(iParam0))
			{
				Global_101553.f_6116[iParam0] = 0;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101553.f_6116[iParam0], 1, 1);
			}
			break;
	}
}

int func_142(int iParam0)//Position - 0x10C9F
{
	struct<7> Var0;
	int iVar7;
	
	Var0 = { func_144(iParam0) };
	iVar7 = object::_0x160AA1B32F6139B8(Var0.f_5);
	return ((iVar7 == 1 || iVar7 == 4) || iVar7 == 2);
}

int func_143(int iParam0)//Position - 0x10CD3
{
	return system::shift_right(iParam0, 9) & 31;
}

struct<7> func_144(int iParam0)//Position - 0x10CE6
{
	struct<7> Var0;
	
	switch (iParam0)
	{
		case 0:
			Var0.f_3 = joaat("v_ilev_bs_door");
			Var0 = { 133f, -1711f, 29f };
			Var0.f_5 = 1804701345;
			break;
		
		case 1:
			Var0.f_3 = joaat("v_ilev_bs_door");
			Var0 = { -1287.857f, -1115.742f, 7.1401f };
			Var0.f_5 = 1403601067;
			break;
		
		case 2:
			Var0.f_3 = joaat("v_ilev_bs_door");
			Var0 = { 1932.952f, 3725.154f, 32.9944f };
			Var0.f_5 = -2031139496;
			break;
		
		case 3:
			Var0.f_3 = joaat("v_ilev_bs_door");
			Var0 = { 1207.873f, -470.063f, 66.358f };
			Var0.f_5 = 1796834809;
			break;
		
		case 4:
			Var0.f_3 = joaat("v_ilev_bs_door");
			Var0 = { -29.8692f, -148.1571f, 57.2265f };
			Var0.f_5 = 96153298;
			break;
		
		case 5:
			Var0.f_3 = joaat("v_ilev_bs_door");
			Var0 = { -280.7851f, 6232.782f, 31.8455f };
			Var0.f_5 = -281080954;
			break;
		
		case 6:
			Var0.f_3 = joaat("v_ilev_hd_door_l");
			Var0 = { -824f, -187f, 38f };
			Var0 = { -823.2001f, -187.0831f, 37.819f };
			Var0.f_5 = 183249434;
			break;
		
		case 7:
			Var0.f_3 = joaat("v_ilev_hd_door_r");
			Var0 = { -823f, -188f, 38f };
			Var0 = { -822.4442f, -188.3924f, 37.819f };
			Var0.f_5 = 758345384;
			break;
		
		case 8:
			Var0.f_3 = joaat("v_ilev_cs_door01");
			Var0 = { 82.3186f, -1392.752f, 29.5261f };
			Var0.f_5 = -1069262641;
			break;
		
		case 9:
			Var0.f_3 = joaat("v_ilev_cs_door01_r");
			Var0 = { 82.3186f, -1390.476f, 29.5261f };
			Var0.f_5 = 1968521986;
			break;
		
		case 10:
			Var0.f_3 = joaat("v_ilev_cs_door01");
			Var0 = { 1686.983f, 4821.741f, 42.2131f };
			Var0.f_5 = -2143706301;
			break;
		
		case 11:
			Var0.f_3 = joaat("v_ilev_cs_door01_r");
			Var0 = { 1687.282f, 4819.484f, 42.2131f };
			Var0.f_5 = -1403421822;
			break;
		
		case 12:
			Var0.f_3 = joaat("v_ilev_cs_door01");
			Var0 = { 418.637f, -806.457f, 29.6396f };
			Var0.f_5 = -1950137670;
			break;
		
		case 13:
			Var0.f_3 = joaat("v_ilev_cs_door01_r");
			Var0 = { 418.637f, -808.733f, 29.6396f };
			Var0.f_5 = 1226259807;
			break;
		
		case 14:
			Var0.f_3 = joaat("v_ilev_cs_door01");
			Var0 = { -1096.661f, 2705.446f, 19.2578f };
			Var0.f_5 = 1090833557;
			break;
		
		case 15:
			Var0.f_3 = joaat("v_ilev_cs_door01_r");
			Var0 = { -1094.965f, 2706.964f, 19.2578f };
			Var0.f_5 = 897332612;
			break;
		
		case 16:
			Var0.f_3 = joaat("v_ilev_cs_door01");
			Var0 = { 1196.825f, 2703.221f, 38.3726f };
			Var0.f_5 = 1095946640;
			break;
		
		case 17:
			Var0.f_3 = joaat("v_ilev_cs_door01_r");
			Var0 = { 1199.101f, 2703.221f, 38.3726f };
			Var0.f_5 = 801975945;
			break;
		
		case 18:
			Var0.f_3 = joaat("v_ilev_cs_door01");
			Var0 = { -818.7642f, -1079.544f, 11.4781f };
			Var0.f_5 = -167996547;
			break;
		
		case 19:
			Var0.f_3 = joaat("v_ilev_cs_door01_r");
			Var0 = { -816.7932f, -1078.406f, 11.4781f };
			Var0.f_5 = -1935818563;
			break;
		
		case 20:
			Var0.f_3 = joaat("v_ilev_cs_door01");
			Var0 = { -0.0564f, 6517.461f, 32.0278f };
			Var0.f_5 = 1891185217;
			break;
		
		case 21:
			Var0.f_3 = joaat("v_ilev_cs_door01_r");
			Var0 = { -1.7253f, 6515.914f, 32.0278f };
			Var0.f_5 = 1236591681;
			break;
		
		case 22:
			Var0.f_3 = joaat("v_ilev_clothmiddoor");
			Var0 = { -1201.435f, -776.8566f, 17.9918f };
			Var0.f_5 = 1980808685;
			break;
		
		case 23:
			Var0.f_3 = joaat("v_ilev_clothmiddoor");
			Var0 = { 617.2458f, 2751.022f, 42.7578f };
			Var0.f_5 = 1352749757;
			break;
		
		case 24:
			Var0.f_3 = joaat("v_ilev_clothmiddoor");
			Var0 = { 127.8201f, -211.8274f, 55.2275f };
			Var0.f_5 = -566554453;
			break;
		
		case 25:
			Var0.f_3 = joaat("v_ilev_clothmiddoor");
			Var0 = { -3167.75f, 1055.536f, 21.5329f };
			Var0.f_5 = 1284749450;
			break;
		
		case 26:
			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
			Var0 = { -716.6754f, -155.42f, 37.6749f };
			Var0.f_5 = 261851994;
			break;
		
		case 27:
			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
			Var0 = { -715.6154f, -157.2561f, 37.6749f };
			Var0.f_5 = 217646625;
			break;
		
		case 28:
			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
			Var0 = { -157.0924f, -306.4413f, 39.994f };
			Var0.f_5 = 1801139578;
			break;
		
		case 29:
			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
			Var0 = { -156.4022f, -304.4366f, 39.994f };
			Var0.f_5 = -2123275866;
			break;
		
		case 30:
			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
			Var0 = { -1454.782f, -231.7927f, 50.0565f };
			Var0.f_5 = 1312689981;
			break;
		
		case 31:
			Var0.f_3 = joaat("v_ilev_ch_glassdoor");
			Var0 = { -1456.201f, -233.3682f, 50.0565f };
			Var0.f_5 = -595055661;
			break;
		
		case 32:
			Var0.f_3 = joaat("v_ilev_ta_door");
			Var0 = { 321.81f, 178.36f, 103.68f };
			Var0.f_5 = -265260897;
			break;
		
		case 33:
			Var0.f_3 = -1212951353;
			Var0 = { 1859.89f, 3749.79f, 33.18f };
			Var0.f_5 = -1284867488;
			break;
		
		case 34:
			Var0.f_3 = -1212951353;
			Var0 = { -289.1752f, 6199.112f, 31.637f };
			Var0.f_5 = 302307081;
			break;
		
		case 35:
			Var0.f_3 = joaat("v_ilev_ta_door");
			Var0 = { -1155.454f, -1424.008f, 5.0461f };
			Var0.f_5 = -681886015;
			break;
		
		case 36:
			Var0.f_3 = joaat("v_ilev_ta_door");
			Var0 = { 1321.286f, -1650.597f, 52.3663f };
			Var0.f_5 = -2086556500;
			break;
		
		case 37:
			Var0.f_3 = joaat("v_ilev_ta_door");
			Var0 = { -3167.789f, 1074.767f, 20.9209f };
			Var0.f_5 = -1496386696;
			break;
		
		case 38:
			Var0.f_3 = joaat("v_ilev_mm_doorm_l");
			Var0 = { -817f, 179f, 73f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = -2097039789;
			break;
		
		case 39:
			Var0.f_3 = joaat("v_ilev_mm_doorm_r");
			Var0 = { -816f, 178f, 73f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = -2127416656;
			break;
		
		case 40:
			Var0.f_3 = joaat("prop_ld_garaged_01");
			Var0 = { -815f, 186f, 73f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = -1986583853;
			Var0.f_6 = 6.5f;
			break;
		
		case 41:
			Var0.f_3 = joaat("prop_bh1_48_backdoor_l");
			Var0 = { -797f, 177f, 73f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = 776026812;
			break;
		
		case 42:
			Var0.f_3 = joaat("prop_bh1_48_backdoor_r");
			Var0 = { -795f, 178f, 73f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = 698422331;
			break;
		
		case 43:
			Var0.f_3 = joaat("prop_bh1_48_backdoor_l");
			Var0 = { -793f, 181f, 73f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = 535076355;
			break;
		
		case 44:
			Var0.f_3 = joaat("prop_bh1_48_backdoor_r");
			Var0 = { -794f, 183f, 73f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = 474675599;
			break;
		
		case 45:
			Var0.f_3 = joaat("prop_bh1_48_gate_1");
			Var0 = { -849f, 179f, 70f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = -1978427516;
			break;
		
		case 46:
			Var0.f_3 = joaat("v_ilev_mm_windowwc");
			Var0 = { -802.7333f, 167.5041f, 77.5824f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = -1700375831;
			break;
		
		case 47:
			Var0.f_3 = joaat("v_ilev_fa_frontdoor");
			Var0 = { -14f, -1441f, 31f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = 613961892;
			break;
		
		case 48:
			Var0.f_3 = joaat("v_ilev_fh_frntdoor");
			Var0 = { -15f, -1427f, 31f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = -272570634;
			break;
		
		case 49:
			Var0.f_3 = joaat("prop_sc1_21_g_door_01");
			Var0 = { -25.28f, -1431.06f, 30.84f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = -1040675994;
			break;
		
		case 50:
			Var0.f_3 = joaat("v_ilev_fh_frontdoor");
			Var0 = { 7.52f, 539.53f, 176.18f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = 1201219326;
			break;
		
		case 51:
			Var0.f_3 = joaat("v_ilev_trevtraildr");
			Var0 = { 1973f, 3815f, 34f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = 1736361794;
			break;
		
		case 52:
			Var0.f_3 = joaat("prop_cs4_10_tr_gd_01");
			Var0 = { 1972.787f, 3824.554f, 32.5831f };
			Var0.f_5 = 1113956670;
			Var0.f_6 = 12f;
			break;
		
		case 53:
			Var0.f_3 = joaat("v_ilev_trev_doorfront");
			Var0 = { -1150f, -1521f, 11f };
			gameplay::set_bit(&(Var0.f_4), 0);
			Var0.f_5 = -1361617046;
			break;
	}
	switch (iParam0)
	{
		case 54:
			Var0.f_3 = joaat("prop_com_ls_door_01");
			Var0 = { -1145.9f, -1991.14f, 14.18f };
			Var0.f_5 = -1871080926;
			Var0.f_6 = 25f;
			break;
		
		case 55:
			Var0.f_3 = joaat("prop_id2_11_gdoor");
			Var0 = { 723.12f, -1088.83f, 23.28f };
			Var0.f_5 = 1168079979;
			Var0.f_6 = 25f;
			break;
		
		case 56:
			Var0.f_3 = joaat("prop_com_ls_door_01");
			Var0 = { -356.09f, -134.77f, 40.01f };
			Var0.f_5 = 1206354175;
			Var0.f_6 = 25f;
			break;
		
		case 57:
			Var0.f_3 = joaat("v_ilev_carmod3door");
			Var0 = { 108.8502f, 6617.876f, 32.673f };
			Var0.f_5 = -1038180727;
			Var0.f_6 = 25f;
			break;
		
		case 58:
			Var0.f_3 = joaat("v_ilev_carmod3door");
			Var0 = { 114.3206f, 6623.226f, 32.7161f };
			Var0.f_5 = 1200466273;
			Var0.f_6 = 25f;
			break;
		
		case 59:
			Var0.f_3 = joaat("v_ilev_carmod3door");
			Var0 = { 1182.305f, 2645.242f, 38.807f };
			Var0.f_5 = 1391004277;
			Var0.f_6 = 25f;
			break;
		
		case 60:
			Var0.f_3 = joaat("v_ilev_carmod3door");
			Var0 = { 1174.654f, 2645.242f, 38.6826f };
			Var0.f_5 = -459199009;
			Var0.f_6 = 25f;
			break;
		
		case 225:
			Var0.f_3 = -427498890;
			Var0 = { -205.7007f, -1310.692f, 30.2957f };
			Var0.f_5 = -288764223;
			Var0.f_6 = 25f;
			break;
		
		case 61:
			Var0.f_3 = joaat("v_ilev_janitor_frontdoor");
			Var0 = { -107.5401f, -9.0258f, 70.6696f };
			Var0.f_5 = -252283844;
			break;
		
		case 62:
			Var0.f_3 = joaat("v_ilev_ss_door8");
			Var0 = { 717f, -975f, 25f };
			Var0.f_5 = -826072862;
			break;
		
		case 63:
			Var0.f_3 = joaat("v_ilev_ss_door7");
			Var0 = { 719f, -975f, 25f };
			Var0.f_5 = 763780711;
			break;
		
		case 64:
			Var0.f_3 = joaat("v_ilev_ss_door02");
			Var0 = { 709.9813f, -963.5311f, 30.5453f };
			Var0.f_5 = -874851305;
			break;
		
		case 65:
			Var0.f_3 = joaat("v_ilev_ss_door03");
			Var0 = { 709.9894f, -960.6675f, 30.5453f };
			Var0.f_5 = -1480820165;
			break;
		
		case 66:
			Var0.f_3 = joaat("v_ilev_store_door");
			Var0 = { 707.8046f, -962.4564f, 30.5453f };
			Var0.f_5 = 949391213;
			break;
		
		case 67:
			Var0.f_3 = -1212951353;
			Var0 = { 1393f, 3599f, 35f };
			Var0.f_5 = 212192855;
			break;
		
		case 68:
			Var0.f_3 = -1212951353;
			Var0 = { 1395f, 3600f, 35f };
			Var0.f_5 = -126474752;
			break;
		
		case 69:
			Var0.f_3 = joaat("v_ilev_ss_door04");
			Var0 = { 1387f, 3614f, 39f };
			Var0.f_5 = 1765671336;
			break;
		
		case 70:
			Var0.f_3 = joaat("prop_ron_door_01");
			Var0 = { 1083.547f, -1975.435f, 31.6222f };
			Var0.f_5 = 792295685;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 71:
			Var0.f_3 = joaat("prop_ron_door_01");
			Var0 = { 1065.237f, -2006.079f, 32.2329f };
			Var0.f_5 = 563273144;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 72:
			Var0.f_3 = joaat("prop_ron_door_01");
			Var0 = { 1085.307f, -2018.561f, 41.6289f };
			Var0.f_5 = -726993043;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 73:
			Var0.f_3 = joaat("v_ilev_bank4door02");
			Var0 = { -111f, 6464f, 32f };
			Var0.f_5 = 178228075;
			break;
		
		case 74:
			Var0.f_3 = joaat("v_ilev_bank4door01");
			Var0 = { -110f, 6462f, 32f };
			Var0.f_5 = 1852297978;
			break;
		
		case 75:
			Var0.f_3 = joaat("v_ilev_lester_doorfront");
			Var0 = { 1274f, -1721f, 55f };
			Var0.f_5 = -565026078;
			break;
		
		case 76:
			Var0.f_3 = joaat("v_ilev_lester_doorveranda");
			Var0 = { 1271.89f, -1707.57f, 53.79f };
			Var0.f_5 = 1646172266;
			break;
		
		case 77:
			Var0.f_3 = joaat("v_ilev_lester_doorveranda");
			Var0 = { 1270.77f, -1708.1f, 53.75f };
			Var0.f_5 = 204467342;
			break;
		
		case 78:
			Var0.f_3 = joaat("v_ilev_deviantfrontdoor");
			Var0 = { -127.5f, -1456.18f, 37.94f };
			Var0.f_5 = 2047070410;
			break;
		
		case 79:
			Var0.f_3 = joaat("prop_com_gar_door_01");
			Var0 = { 483.56f, -1316.08f, 32.18f };
			Var0.f_5 = 1417775309;
			break;
		
		case 80:
			Var0.f_3 = joaat("v_ilev_cs_door");
			Var0 = { 483f, -1312f, 29f };
			Var0.f_5 = -106474626;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 81:
			Var0.f_3 = joaat("prop_strip_door_01");
			Var0 = { 128f, -1299f, 29f };
			Var0.f_5 = 1840510598;
			break;
		
		case 82:
			Var0.f_3 = joaat("prop_magenta_door");
			Var0 = { 96f, -1285f, 29f };
			Var0.f_5 = 1382825971;
			break;
		
		case 83:
			Var0.f_3 = joaat("prop_motel_door_09");
			Var0 = { 549f, -1773f, 34f };
			Var0.f_5 = 232536303;
			break;
		
		case 84:
			Var0.f_3 = joaat("v_ilev_gangsafedoor");
			Var0 = { 974f, -1839f, 36f };
			Var0.f_5 = 1267246609;
			gameplay::set_bit(&(Var0.f_4), 3);
			break;
		
		case 85:
			Var0.f_3 = joaat("v_ilev_gangsafedoor");
			Var0 = { 977f, -105f, 75f };
			Var0.f_5 = -1900237971;
			gameplay::set_bit(&(Var0.f_4), 3);
			break;
		
		case 86:
			Var0.f_3 = joaat("v_ilev_ra_door1_l");
			Var0 = { 1391f, 1163f, 114f };
			Var0.f_5 = 2077901353;
			break;
		
		case 87:
			Var0.f_3 = joaat("v_ilev_ra_door1_r");
			Var0 = { 1391f, 1161f, 114f };
			Var0.f_5 = -2102079126;
			break;
		
		case 88:
			Var0.f_3 = joaat("prop_cs6_03_door_l");
			Var0 = { 1396f, 1143f, 115f };
			Var0.f_5 = -1905793212;
			break;
		
		case 89:
			Var0.f_3 = joaat("prop_cs6_03_door_r");
			Var0 = { 1396f, 1141f, 115f };
			Var0.f_5 = -1797032505;
			break;
		
		case 90:
			Var0.f_3 = joaat("v_ilev_ra_door1_l");
			Var0 = { 1409f, 1146f, 114f };
			Var0.f_5 = -62235167;
			break;
		
		case 91:
			Var0.f_3 = joaat("v_ilev_ra_door1_r");
			Var0 = { 1409f, 1148f, 114f };
			Var0.f_5 = -1727188163;
			break;
		
		case 92:
			Var0.f_3 = joaat("v_ilev_ra_door1_l");
			Var0 = { 1408f, 1159f, 114f };
			Var0.f_5 = -562748873;
			break;
		
		case 93:
			Var0.f_3 = joaat("v_ilev_ra_door1_r");
			Var0 = { 1408f, 1161f, 114f };
			Var0.f_5 = 1976429759;
			break;
		
		case 94:
			Var0.f_3 = joaat("prop_gar_door_01");
			Var0 = { -1067f, -1666f, 5f };
			Var0.f_5 = 1341041543;
			break;
		
		case 95:
			Var0.f_3 = joaat("prop_gar_door_02");
			Var0 = { -1065f, -1669f, 5f };
			Var0.f_5 = -1631467220;
			break;
		
		case 96:
			Var0.f_3 = joaat("prop_map_door_01");
			Var0 = { -1104.66f, -1638.48f, 4.68f };
			Var0.f_5 = -1788473129;
			break;
		
		case 97:
			Var0.f_3 = joaat("v_ilev_fib_door1");
			Var0 = { -31.72f, -1101.85f, 26.57f };
			Var0.f_5 = -1831288286;
			break;
		
		case 98:
			Var0.f_3 = joaat("v_ilev_tort_door");
			Var0 = { 134.4f, -2204.1f, 7.52f };
			Var0.f_5 = 963876966;
			break;
		
		case 99:
			Var0.f_3 = joaat("v_ilev_bl_shutter2");
			Var0 = { 3628f, 3747f, 28f };
			Var0.f_5 = 1773088812;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 100:
			Var0.f_3 = joaat("v_ilev_bl_shutter2");
			Var0 = { 3621f, 3752f, 28f };
			Var0.f_5 = -1332101528;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 101:
			Var0.f_3 = joaat("v_ilev_rc_door3_l");
			Var0 = { -608.73f, -1610.32f, 27.16f };
			Var0.f_5 = -1811763714;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 102:
			Var0.f_3 = joaat("v_ilev_rc_door3_r");
			Var0 = { -611.32f, -1610.09f, 27.16f };
			Var0.f_5 = 1608500665;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 103:
			Var0.f_3 = joaat("v_ilev_rc_door3_l");
			Var0 = { -592.94f, -1631.58f, 27.16f };
			Var0.f_5 = -1456048340;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 104:
			Var0.f_3 = joaat("v_ilev_rc_door3_r");
			Var0 = { -592.71f, -1628.99f, 27.16f };
			Var0.f_5 = 943854909;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 105:
			Var0.f_3 = joaat("v_ilev_ss_door04");
			Var0 = { 1991f, 3053f, 47f };
			Var0.f_5 = -89065356;
			break;
		
		case 106:
			Var0.f_3 = 479144380;
			Var0 = { 1988.353f, 3054.411f, 47.3204f };
			Var0.f_5 = -925491840;
			break;
		
		case 107:
			Var0.f_3 = joaat("prop_epsilon_door_l");
			Var0 = { -700.17f, 47.31f, 44.3f };
			Var0.f_5 = 1999872275;
			break;
		
		case 108:
			Var0.f_3 = joaat("prop_epsilon_door_r");
			Var0 = { -697.94f, 48.35f, 44.3f };
			Var0.f_5 = 1999872275;
			break;
		
		case 109:
			Var0.f_3 = -1230442770;
			Var0 = { 241.3574f, 361.0488f, 105.8963f };
			Var0.f_5 = 1538555582;
			break;
		
		case 110:
			Var0.f_3 = joaat("prop_ch2_09c_garage_door");
			Var0 = { -689.11f, 506.97f, 110.64f };
			Var0.f_5 = -961994186;
			break;
		
		case 111:
			Var0.f_3 = joaat("v_ilev_door_orangesolid");
			Var0 = { -1055.96f, -236.43f, 44.17f };
			Var0.f_5 = -1772472848;
			break;
		
		case 112:
			Var0.f_3 = joaat("prop_magenta_door");
			Var0 = { 29f, 3661f, 41f };
			Var0.f_5 = -46374650;
			break;
		
		case 113:
			Var0.f_3 = joaat("prop_cs4_05_tdoor");
			Var0 = { 32f, 3667f, 41f };
			Var0.f_5 = -358302761;
			break;
		
		case 114:
			Var0.f_3 = joaat("v_ilev_housedoor1");
			Var0 = { 87f, -1959f, 21f };
			Var0.f_5 = -1237936041;
			break;
		
		case 115:
			Var0.f_3 = joaat("v_ilev_fh_frntdoor");
			Var0 = { 0f, -1823f, 30f };
			Var0.f_5 = 1487374207;
			break;
		
		case 116:
			Var0.f_3 = joaat("p_cut_door_03");
			Var0 = { 23.34f, -1897.6f, 23.05f };
			Var0.f_5 = -199126299;
			break;
		
		case 117:
			Var0.f_3 = joaat("p_cut_door_02");
			Var0 = { 524.2f, 3081.14f, 41.16f };
			Var0.f_5 = -897071863;
			break;
		
		case 118:
			Var0.f_3 = joaat("v_ilev_po_door");
			Var0 = { -1910.58f, -576.01f, 19.25f };
			Var0.f_5 = -864465775;
			break;
		
		case 119:
			Var0.f_3 = joaat("prop_ss1_10_door_l");
			Var0 = { -720.39f, 256.86f, 80.29f };
			Var0.f_5 = -208439480;
			break;
		
		case 120:
			Var0.f_3 = joaat("prop_ss1_10_door_r");
			Var0 = { -718.42f, 257.79f, 80.29f };
			Var0.f_5 = -1001088805;
			break;
		
		case 121:
			Var0.f_3 = joaat("v_ilev_fibl_door02");
			Var0 = { 106.38f, -742.7f, 46.18f };
			Var0.f_5 = 756894459;
			break;
		
		case 122:
			Var0.f_3 = joaat("v_ilev_fibl_door01");
			Var0 = { 105.76f, -746.65f, 46.18f };
			Var0.f_5 = 476981677;
			break;
		
		case 123:
			Var0.f_3 = joaat("v_ilev_ct_door01");
			Var0 = { -2343.53f, 3265.37f, 32.96f };
			Var0.f_5 = 2081647379;
			break;
		
		case 124:
			Var0.f_3 = joaat("v_ilev_ct_door01");
			Var0 = { -2342.23f, 3267.62f, 32.96f };
			Var0.f_5 = 2081647379;
			break;
		
		case 125:
			Var0.f_3 = joaat("ap1_02_door_l");
			Var0 = { -1041.933f, -2748.167f, 22.0308f };
			Var0.f_5 = 169965357;
			break;
		
		case 126:
			Var0.f_3 = joaat("ap1_02_door_r");
			Var0 = { -1044.841f, -2746.489f, 22.0308f };
			Var0.f_5 = 311232516;
			break;
		
		case 128:
			Var0.f_3 = joaat("v_ilev_fb_doorshortl");
			Var0 = { -1045.12f, -232.004f, 39.4379f };
			Var0.f_5 = -1563127729;
			break;
		
		case 129:
			Var0.f_3 = joaat("v_ilev_fb_doorshortr");
			Var0 = { -1046.516f, -229.3581f, 39.4379f };
			Var0.f_5 = 759145763;
			break;
		
		case 130:
			Var0.f_3 = joaat("v_ilev_fb_door01");
			Var0 = { -1083.62f, -260.4167f, 38.1867f };
			Var0.f_5 = -84399179;
			break;
		
		case 131:
			Var0.f_3 = joaat("v_ilev_fb_door02");
			Var0 = { -1080.974f, -259.0204f, 38.1867f };
			Var0.f_5 = -461898059;
			break;
		
		case 127:
			Var0.f_3 = joaat("v_ilev_gtdoor");
			Var0 = { -1042.57f, -240.6f, 38.11f };
			Var0.f_5 = 1259065971;
			break;
		
		case 132:
			Var0.f_3 = joaat("prop_damdoor_01");
			Var0 = { 1385.258f, -2079.949f, 52.7638f };
			Var0.f_5 = -884051216;
			break;
		
		case 133:
			Var0.f_3 = joaat("v_ilev_genbankdoor2");
			Var0 = { 1656.57f, 4849.66f, 42.35f };
			Var0.f_5 = 243782214;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 134:
			Var0.f_3 = joaat("v_ilev_genbankdoor1");
			Var0 = { 1656.25f, 4852.24f, 42.35f };
			Var0.f_5 = 714115627;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 135:
			Var0.f_3 = -1184516519;
			Var0 = { -1051.402f, -474.6847f, 36.6199f };
			Var0.f_5 = 1668106976;
			gameplay::set_bit(&(Var0.f_4), 1);
			break;
		
		case 136:
			Var0.f_3 = -1184516519;
			Var0 = { -1049.285f, -476.6376f, 36.7584f };
			Var0.f_5 = 1382347031;
			gameplay::set_bit(&(Var0.f_4), 1);
			break;
		
		case 137:
			Var0.f_3 = 1230099731;
			Var0 = { -1210.957f, -580.8765f, 27.2373f };
			Var0.f_5 = -966790948;
			gameplay::set_bit(&(Var0.f_4), 1);
			break;
		
		case 138:
			Var0.f_3 = 1230099731;
			Var0 = { -1212.445f, -578.4401f, 27.2373f };
			Var0.f_5 = -2068750132;
			gameplay::set_bit(&(Var0.f_4), 1);
			break;
		
		case 139:
			Var0.f_3 = joaat("v_ilev_roc_door4");
			Var0 = { -565.1712f, 276.6259f, 83.2863f };
			Var0.f_5 = -1716533184;
			break;
		
		case 140:
			Var0.f_3 = joaat("v_ilev_roc_door4");
			Var0 = { -561.2863f, 293.5043f, 87.7771f };
			Var0.f_5 = 2146505927;
			break;
		
		case 141:
			Var0.f_3 = joaat("p_jewel_door_l");
			Var0 = { -631.96f, -236.33f, 38.21f };
			Var0.f_5 = 1874948872;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 142:
			Var0.f_3 = joaat("p_jewel_door_r1");
			Var0 = { -630.43f, -238.44f, 38.21f };
			Var0.f_5 = -1965020851;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 145:
			Var0.f_3 = -1743257725;
			Var0 = { 231.62f, 216.23f, 106.4f };
			Var0.f_5 = 1951546856;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 146:
			Var0.f_3 = -1743257725;
			Var0 = { 232.72f, 213.88f, 106.4f };
			Var0.f_5 = -431382051;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 143:
			Var0.f_3 = 110411286;
			Var0 = { 258.32f, 203.84f, 106.43f };
			Var0.f_5 = -293975210;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 144:
			Var0.f_3 = 110411286;
			Var0 = { 260.76f, 202.95f, 106.43f };
			Var0.f_5 = -785215289;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 148:
			Var0.f_3 = -222270721;
			Var0 = { 256.31f, 220.66f, 106.43f };
			Var0.f_5 = -366143778;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 147:
			Var0.f_3 = joaat("v_ilev_bk_door");
			Var0 = { 266.36f, 217.57f, 110.43f };
			Var0.f_5 = 440819155;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 149:
			Var0.f_3 = joaat("v_ilev_shrf2door");
			Var0 = { -442.66f, 6015.222f, 31.8663f };
			Var0.f_5 = -588495243;
			break;
		
		case 150:
			Var0.f_3 = joaat("v_ilev_shrf2door");
			Var0 = { -444.4985f, 6017.06f, 31.8663f };
			Var0.f_5 = 1815504139;
			break;
		
		case 151:
			Var0.f_3 = joaat("v_ilev_shrfdoor");
			Var0 = { 1855.685f, 3683.93f, 34.5928f };
			Var0.f_5 = 1344911780;
			break;
		
		case 152:
			Var0.f_3 = joaat("prop_bhhotel_door_l");
			Var0 = { -1223.35f, -172.41f, 39.98f };
			Var0.f_5 = -320891223;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 153:
			Var0.f_3 = joaat("prop_bhhotel_door_r");
			Var0 = { -1220.93f, -173.68f, 39.98f };
			Var0.f_5 = 1511747875;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 154:
			Var0.f_3 = joaat("prop_bhhotel_door_l");
			Var0 = { -1211.99f, -190.57f, 39.98f };
			Var0.f_5 = -1517722103;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 155:
			Var0.f_3 = joaat("prop_bhhotel_door_r");
			Var0 = { -1213.26f, -192.98f, 39.98f };
			Var0.f_5 = -1093199712;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 156:
			Var0.f_3 = joaat("prop_bhhotel_door_l");
			Var0 = { -1217.77f, -201.54f, 39.98f };
			Var0.f_5 = 1902048492;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 157:
			Var0.f_3 = joaat("prop_bhhotel_door_r");
			Var0 = { -1219.04f, -203.95f, 39.98f };
			Var0.f_5 = -444768985;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 158:
			Var0.f_3 = joaat("prop_ch3_04_door_01l");
			Var0 = { 2514.32f, -317.34f, 93.32f };
			Var0.f_5 = 404057594;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 159:
			Var0.f_3 = joaat("prop_ch3_04_door_01r");
			Var0 = { 2512.42f, -319.26f, 93.32f };
			Var0.f_5 = -1417472813;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 160:
			Var0.f_3 = joaat("prop_ch3_01_trlrdoor_l");
			Var0 = { 2333.23f, 2574.97f, 47.03f };
			Var0.f_5 = -1376084479;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 161:
			Var0.f_3 = joaat("prop_ch3_01_trlrdoor_r");
			Var0 = { 2329.65f, 2576.64f, 47.03f };
			Var0.f_5 = 457472151;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 162:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { 16.1279f, -1114.605f, 29.9469f };
			Var0.f_5 = 1071759151;
			break;
		
		case 163:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { 18.572f, -1115.495f, 29.9469f };
			Var0.f_5 = -2119023917;
			break;
		
		case 165:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { 1698.176f, 3751.506f, 34.8553f };
			Var0.f_5 = -1488490473;
			break;
		
		case 166:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { 1699.937f, 3753.42f, 34.8553f };
			Var0.f_5 = -511187813;
			break;
		
		case 167:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { 244.7274f, -44.0791f, 70.91f };
			Var0.f_5 = -248569395;
			break;
		
		case 168:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { 243.8379f, -46.5232f, 70.91f };
			Var0.f_5 = 989443413;
			break;
		
		case 169:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { 845.3624f, -1024.539f, 28.3448f };
			Var0.f_5 = 2022251829;
			break;
		
		case 170:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { 842.7684f, -1024.539f, 23.3448f };
			Var0.f_5 = 649820567;
			break;
		
		case 171:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { -326.1122f, 6075.27f, 31.6047f };
			Var0.f_5 = 537455378;
			break;
		
		case 172:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { -324.273f, 6077.109f, 31.6047f };
			Var0.f_5 = 1121431731;
			break;
		
		case 173:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { -665.2424f, -944.3256f, 21.9792f };
			Var0.f_5 = -1437380438;
			break;
		
		case 174:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { -662.6414f, -944.3256f, 21.9792f };
			Var0.f_5 = -946336965;
			break;
		
		case 175:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { -1313.826f, -389.1259f, 36.8457f };
			Var0.f_5 = 1893144650;
			break;
		
		case 176:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { -1314.465f, -391.6472f, 36.8457f };
			Var0.f_5 = 435841678;
			break;
		
		case 177:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { -1114.009f, 2689.77f, 18.7041f };
			Var0.f_5 = 948508314;
			break;
		
		case 178:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { -1112.071f, 2691.505f, 18.7041f };
			Var0.f_5 = -1796714665;
			break;
		
		case 179:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { -3164.845f, 1081.392f, 20.9887f };
			Var0.f_5 = -1155247245;
			break;
		
		case 180:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { -3163.812f, 1083.778f, 20.9887f };
			Var0.f_5 = 782482084;
			break;
		
		case 181:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { 2570.905f, 303.3556f, 108.8848f };
			Var0.f_5 = -1194470801;
			break;
		
		case 182:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { 2568.304f, 303.3556f, 108.8848f };
			Var0.f_5 = -2129698061;
			break;
		
		case 183:
			Var0.f_3 = joaat("v_ilev_gc_door04");
			Var0 = { 813.1779f, -2148.27f, 29.7689f };
			Var0.f_5 = 1071759151;
			break;
		
		case 184:
			Var0.f_3 = joaat("v_ilev_gc_door03");
			Var0 = { 810.5769f, -2148.27f, 29.7689f };
			Var0.f_5 = -2119023917;
			break;
		
		case 164:
			Var0.f_3 = joaat("v_ilev_gc_door01");
			Var0 = { 6.8179f, -1098.209f, 29.9469f };
			Var0.f_5 = 1487704245;
			gameplay::set_bit(&(Var0.f_4), 3);
			break;
		
		case 185:
			Var0.f_3 = joaat("v_ilev_gc_door01");
			Var0 = { 827.5342f, -2160.493f, 29.7688f };
			Var0.f_5 = 1529812051;
			gameplay::set_bit(&(Var0.f_4), 3);
			break;
		
		case 186:
			Var0.f_3 = joaat("prop_lrggate_01c_l");
			Var0 = { -1107.01f, 289.38f, 64.76f };
			Var0.f_5 = 904342475;
			break;
		
		case 187:
			Var0.f_3 = joaat("prop_lrggate_01c_r");
			Var0 = { -1101.62f, 290.36f, 64.76f };
			Var0.f_5 = -795418380;
			break;
		
		case 188:
			Var0.f_3 = joaat("prop_lrggate_01c_l");
			Var0 = { -1138.64f, 300.82f, 67.18f };
			Var0.f_5 = -1502457334;
			break;
		
		case 189:
			Var0.f_3 = joaat("prop_lrggate_01c_r");
			Var0 = { -1137.05f, 295.59f, 67.18f };
			Var0.f_5 = -1994188940;
			break;
		
		case 190:
			Var0.f_3 = joaat("v_ilev_bl_doorel_l");
			Var0 = { -2053.16f, 3239.49f, 30.5f };
			Var0.f_5 = -621770121;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 191:
			Var0.f_3 = joaat("v_ilev_bl_doorel_r");
			Var0 = { -2054.39f, 3237.23f, 30.5f };
			Var0.f_5 = 1018580481;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 192:
			Var0.f_3 = joaat("v_ilev_cbankcountdoor01");
			Var0 = { -108.91f, 6469.11f, 31.91f };
			Var0.f_5 = 421926217;
			break;
		
		case 193:
			Var0.f_3 = joaat("prop_fnclink_03gate5");
			Var0 = { -182.91f, 6168.37f, 32.14f };
			Var0.f_5 = -1331552374;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
	}
	switch (iParam0)
	{
		case 196:
			Var0.f_3 = joaat("v_ilev_csr_door_l");
			Var0 = { -59.89f, -1092.95f, 26.88f };
			Var0.f_5 = -293141277;
			break;
		
		case 197:
			Var0.f_3 = joaat("v_ilev_csr_door_r");
			Var0 = { -60.55f, -1094.75f, 26.89f };
			Var0.f_5 = 506750037;
			break;
		
		case 194:
			Var0.f_3 = joaat("v_ilev_csr_door_l");
			Var0 = { -39.13f, -1108.22f, 26.72f };
			Var0.f_5 = 1496005418;
			break;
		
		case 195:
			Var0.f_3 = joaat("v_ilev_csr_door_r");
			Var0 = { -37.33f, -1108.87f, 26.72f };
			Var0.f_5 = -1863079210;
			break;
		
		case 198:
			Var0.f_3 = joaat("prop_ron_door_01");
			Var0 = { 1943.73f, 3803.63f, 32.31f };
			Var0.f_5 = -2018911784;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 199:
			Var0.f_3 = joaat("v_ilev_genbankdoor2");
			Var0 = { 316.39f, -276.49f, 54.52f };
			Var0.f_5 = -93934272;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 200:
			Var0.f_3 = joaat("v_ilev_genbankdoor1");
			Var0 = { 313.96f, -275.6f, 54.52f };
			Var0.f_5 = 667682830;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 201:
			Var0.f_3 = joaat("v_ilev_genbankdoor2");
			Var0 = { -2965.71f, 484.22f, 16.05f };
			Var0.f_5 = 1876735830;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 202:
			Var0.f_3 = joaat("v_ilev_genbankdoor1");
			Var0 = { -2965.82f, 481.63f, 16.05f };
			Var0.f_5 = -2112857171;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 205:
			Var0.f_3 = joaat("v_ilev_abbmaindoor");
			Var0 = { 962.1f, -2183.83f, 31.06f };
			Var0.f_5 = 2046930518;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 206:
			Var0.f_3 = joaat("v_ilev_abbmaindoor2");
			Var0 = { 961.79f, -2187.08f, 31.06f };
			Var0.f_5 = 1208502884;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 207:
			Var0.f_3 = joaat("prop_ch3_04_door_02");
			Var0 = { 2508.43f, -336.63f, 115.76f };
			Var0.f_5 = 1986432421;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 208:
			Var0.f_3 = joaat("prop_ch1_07_door_01l");
			Var0 = { -2255.19f, 322.26f, 184.93f };
			Var0.f_5 = -722798986;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 209:
			Var0.f_3 = joaat("prop_ch1_07_door_01r");
			Var0 = { -2254.06f, 319.7f, 184.93f };
			Var0.f_5 = 204301578;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 210:
			Var0.f_3 = joaat("prop_ch1_07_door_01l");
			Var0 = { -2301.13f, 336.91f, 184.93f };
			Var0.f_5 = -320140460;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 211:
			Var0.f_3 = joaat("prop_ch1_07_door_01r");
			Var0 = { -2298.57f, 338.05f, 184.93f };
			Var0.f_5 = 65222916;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 212:
			Var0.f_3 = joaat("prop_ch1_07_door_01l");
			Var0 = { -2222.32f, 305.86f, 184.93f };
			Var0.f_5 = -920027322;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 213:
			Var0.f_3 = joaat("prop_ch1_07_door_01r");
			Var0 = { -2221.19f, 303.3f, 184.93f };
			Var0.f_5 = -58432001;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 214:
			Var0.f_3 = joaat("prop_ch1_07_door_01l");
			Var0 = { -2280.6f, 265.43f, 184.93f };
			Var0.f_5 = -2007378629;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 215:
			Var0.f_3 = joaat("prop_ch1_07_door_01r");
			Var0 = { -2278.04f, 266.57f, 184.93f };
			Var0.f_5 = 418772613;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 216:
			Var0.f_3 = joaat("prop_gar_door_04");
			Var0 = { 778.31f, -1867.49f, 30.66f };
			Var0.f_5 = 1679064921;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 217:
			Var0.f_3 = joaat("prop_gate_tep_01_l");
			Var0 = { -721.35f, 91.01f, 56.68f };
			Var0.f_5 = 412198396;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 218:
			Var0.f_3 = joaat("prop_gate_tep_01_r");
			Var0 = { -728.84f, 88.64f, 56.68f };
			Var0.f_5 = -1053755588;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 219:
			Var0.f_3 = joaat("prop_artgallery_02_dr");
			Var0 = { -2287.62f, 363.9f, 174.93f };
			Var0.f_5 = -53446139;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 220:
			Var0.f_3 = joaat("prop_artgallery_02_dl");
			Var0 = { -2289.78f, 362.91f, 174.93f };
			Var0.f_5 = 1333960556;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 221:
			Var0.f_3 = joaat("prop_artgallery_02_dr");
			Var0 = { -2289.86f, 362.88f, 174.93f };
			Var0.f_5 = -41786493;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 222:
			Var0.f_3 = joaat("prop_artgallery_02_dl");
			Var0 = { -2292.01f, 361.89f, 174.93f };
			Var0.f_5 = 1750120734;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 223:
			Var0.f_3 = joaat("prop_fnclink_07gate1");
			Var0 = { 1803.94f, 3929.01f, 33.72f };
			Var0.f_5 = 1661506222;
			break;
		
		case 203:
			Var0.f_3 = joaat("v_ilev_genbankdoor2");
			Var0 = { -348.81f, -47.26f, 49.39f };
			Var0.f_5 = -2116116146;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 204:
			Var0.f_3 = joaat("v_ilev_genbankdoor1");
			Var0 = { -351.26f, -46.41f, 49.39f };
			Var0.f_5 = -74083138;
			gameplay::set_bit(&(Var0.f_4), 2);
			break;
		
		case 224:
			Var0.f_3 = joaat("prop_abat_slide");
			Var0 = { 962.9084f, -2105.814f, 34.6432f };
			Var0.f_5 = -1670085357;
			break;
	}
	return Var0;
}

float func_145(float fParam0)//Position - 0x138EF
{
	return (fParam0 * 0.01745329f);
}

void func_146(int iParam0, int iParam1, vector3 vParam2, float fParam5, float fParam6)//Position - 0x138FF
{
	if (iParam0 == -1 || iParam0 >= 10)
	{
	}
	if (vehicle::is_vehicle_driveable(Local_1450[iParam0 /*2*/], 0))
	{
		if (entity::get_entity_model(Local_1450[iParam0 /*2*/]) != iParam1 && iParam1 != 0)
		{
			vehicle::delete_vehicle(&(Local_1450[iParam0 /*2*/]));
		}
	}
	if (!entity::does_entity_exist(Local_1450[iParam0 /*2*/]))
	{
		Local_1450[iParam0 /*2*/] = vehicle::create_vehicle(iParam1, vParam2, fParam5, 1, true);
	}
	else if (!entity::is_entity_dead(Local_1450[iParam0 /*2*/], 0))
	{
		entity::set_entity_coords(Local_1450[iParam0 /*2*/], vParam2, 1, false, 0, 1);
		entity::set_entity_heading(Local_1450[iParam0 /*2*/], fParam5);
	}
	else
	{
		entity::set_vehicle_as_no_longer_needed(&(Local_1450[iParam0 /*2*/]));
		Local_1450[iParam0 /*2*/] = vehicle::create_vehicle(iParam1, vParam2, fParam5, 1, true);
	}
	if (vehicle::is_vehicle_driveable(Local_1450[iParam0 /*2*/], 0))
	{
		if (fParam6 != -100f)
		{
			vehicle::set_vehicle_forward_speed(Local_1450[iParam0 /*2*/], fParam6);
		}
		if (entity::is_entity_a_mission_entity(Local_1450[iParam0 /*2*/]))
		{
			vehicle::_0x51BB2D88D31A914B(Local_1450[iParam0 /*2*/], false);
			vehicle::_0x192547247864DFDD(Local_1450[iParam0 /*2*/], false);
		}
	}
}

bool func_147(int iParam0, int iParam1, int iParam2)//Position - 0x13A14
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		if (Local_1708[iVar0 /*6*/].f_1 == 1)
		{
			if (Local_1708[iVar0 /*6*/] == iParam0)
			{
				return false;
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		if (Local_1708[iVar0 /*6*/].f_1 == 0)
		{
			Local_1708[iVar0 /*6*/].f_1 = 1;
			Local_1708[iVar0 /*6*/] = iParam0;
			Local_1708[iVar0 /*6*/].f_2 = 0;
			Local_1708[iVar0 /*6*/].f_4 = iParam2;
			Local_1708[iVar0 /*6*/].f_5 = iParam1;
			return true;
		}
		iVar0++;
	}
	return false;
}

void func_148()//Position - 0x13AA4
{
	if (iLocal_2221 == 1)
	{
		graphics::draw_light_with_range(-1089.766f, -1631.065f, 8.9467f, 255, 255, 200, 7f, 1f);
	}
	if (iLocal_2222 == 1)
	{
		graphics::draw_light_with_range(-1085.957f, -1662.724f, 8.6111f, 255, 255, 200, 7f, 1f);
	}
}

void func_149()//Position - 0x13AEC
{
	weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), false);
	ui::clear_prints();
	func_150(0, 0);
	func_601(0);
}

void func_150(int iParam0, int iParam1)//Position - 0x13B11
{
	int iVar0;
	var uVar1;
	var uVar2;
	
	if (!Global_55818)
	{
		Global_55818 = iParam1;
	}
	if (iParam0)
	{
		if ((func_545(0) && Global_69863.f_1 == 1) && func_151(Global_69863))
		{
		}
		else
		{
			Global_55816 = 1;
		}
	}
	if (Global_101553.f_7940 || func_545(0))
	{
		iVar0 = func_17();
		uVar1 = Global_82491[iVar0 /*5*/];
		uVar2 = Global_69886.f_109[uVar1 /*4*/];
		if (iVar0 == -1)
		{
			if (Global_101553.f_7940)
			{
			}
			return;
		}
		if (gameplay::is_bit_set(Global_82491[iVar0 /*5*/].f_1, 4))
		{
			return;
		}
		if (gameplay::is_bit_set(Global_82491[iVar0 /*5*/].f_1, 5))
		{
			return;
		}
		gameplay::set_bit(&(Global_82491[iVar0 /*5*/].f_1), 4);
		gameplay::set_bit(&Global_69865, 1);
		Global_69881 = uVar2;
		Global_69882 = gameplay::get_game_timer();
	}
}

bool func_151(int iParam0)//Position - 0x13BE7
{
	switch (iParam0)
	{
		case 71:
			return true;
			break;
		
		case 86:
			return true;
			break;
		
		case 91:
			return true;
			break;
		
		default:
			return false;
			break;
	}
	return false;
}

bool func_152()//Position - 0x13C25
{
	ped::set_ped_density_multiplier_this_frame(0.2f);
	vehicle::set_vehicle_density_multiplier_this_frame(0.2f);
	if (cutscene::was_cutscene_skipped())
	{
		weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), false);
		iLocal_1471 = 3;
	}
	switch (iLocal_1471)
	{
		case 0:
			sLocal_1955 = "Armenian_2_mcs_6";
			func_244();
			cutscene::request_cutscene(sLocal_1955, 8);
			iLocal_1471 = 1;
			break;
		
		case 1:
			if (cutscene::_0xB56BBBCC2955D9CB())
			{
				func_163("Franklin", player::player_ped_id(), 0, 2);
				if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
				{
					cutscene::set_cutscene_ped_component_variation("LAMAR", 0, 0, 0, 0);
					cutscene::set_cutscene_ped_component_variation("LAMAR", 1, 0, 0, 0);
					cutscene::set_cutscene_ped_component_variation("LAMAR", 2, 2, 0, 0);
					cutscene::set_cutscene_ped_component_variation("LAMAR", 3, 2, 0, 0);
					cutscene::set_cutscene_ped_component_variation("LAMAR", 4, 3, 0, 0);
					cutscene::set_cutscene_ped_component_variation("LAMAR", 5, 0, 0, 0);
					cutscene::set_cutscene_ped_component_variation("LAMAR", 7, 0, 0, 0);
					cutscene::set_cutscene_ped_component_variation("LAMAR", 8, 0, 0, 0);
					cutscene::set_cutscene_ped_component_variation("LAMAR", 9, 0, 0, 0);
				}
			}
			if (func_162())
			{
				func_543(11);
				func_153(1, 1, 1, 0);
				if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
				{
					entity::set_entity_invincible(Local_1450[4 /*2*/], true);
					cutscene::register_entity_for_cutscene(Local_1450[4 /*2*/], "Armenian_bike", 1, joaat("bagger"), 0);
				}
				if (entity::does_entity_exist(Local_1071[2 /*14*/]))
				{
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						cutscene::register_entity_for_cutscene(Local_1071[2 /*14*/], "Lamar", 1, joaat("ig_lamardavis"), 3);
					}
				}
				if (entity::does_entity_exist(iLocal_1953))
				{
					object::delete_object(&iLocal_1953);
				}
				if (audio::is_audio_scene_active("ARM_2_RIDE_BIKE_BACK"))
				{
					audio::stop_audio_scene("ARM_2_RIDE_BIKE_BACK");
				}
				cutscene::start_cutscene(0);
				ped::remove_scenario_blocking_areas();
				ped::add_scenario_blocking_area(-21.8129f, -1454.343f, 20.7942f, -17.8129f, -1450.343f, 40.7942f, 0, 1, 1, 1);
				pathfind::set_ped_paths_in_area(-21.8129f, -1454.343f, 20.7942f, -17.8129f, -1450.343f, 40.7942f, false, 0);
				ped::set_scenario_peds_spawn_in_sphere_area(-12.5851f, -1471.319f, 30.9463f, 6f, 1);
				unk1::_0x48621C9FCA3EBD28(4);
				iLocal_1471 = 2;
			}
			break;
		
		case 2:
			if (cutscene::is_cutscene_active())
			{
				if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
				{
					func_113(-9.370698f, -1402.745f, 26.9317f, -9.507262f, -1386.303f, 32.58361f, 270.39f, -17.2307f, -1412.02f, 28.3117f, 0f, 6f, 20f, 10f, 1, 1, 1, 0, 0);
					if (func_123(Local_1450[0 /*2*/], -5.3f, -1396f, 29f, 1) < 7f)
					{
						gameplay::clear_area(-17.347f, -1401.371f, 28.3343f, 3f, 1, 0, 0, false);
						entity::set_entity_coords(Local_1450[0 /*2*/], -17.347f, -1401.371f, 28.3343f, 1, false, 0, 1);
						entity::set_entity_heading(Local_1450[0 /*2*/], 270f);
					}
				}
				gameplay::clear_area(-5.3f, -1396f, 29f, 5f, 1, 0, 0, false);
				if (cam::is_screen_faded_out())
				{
					cam::do_screen_fade_in(500);
				}
				cam::stop_gameplay_hint(1);
				weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), false);
				gameplay::clear_area_of_projectiles(-17.0167f, -1456.231f, 29.6774f, 40f, 0);
				gameplay::clear_area_of_vehicles(-17.0167f, -1456.231f, 29.6774f, 40f, 0, 0, 0, 0, false);
				gameplay::clear_area_of_peds(-17.0167f, -1456.231f, 29.6774f, 8f, 0);
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					ped::set_ped_using_action_mode(player::player_ped_id(), false, -1, 0);
				}
				iLocal_1471 = 3;
			}
			break;
		
		case 3:
			if (cam::is_screen_faded_out())
			{
				player::set_player_control(player::player_id(), true, 0);
				cam::set_gameplay_cam_relative_heading(0f);
				cam::set_gameplay_cam_relative_pitch(-10f, 1065353216);
			}
			if (cutscene::has_cutscene_finished())
			{
				func_153(0, 1, 1, 0);
				unk1::_0x81CBAE94390F9F89();
				return true;
			}
			break;
	}
	return false;
}

void func_153(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x13FD4
{
	if (iParam0)
	{
		player::special_ability_deactivate_fast(player::player_id());
		player::set_all_random_peds_flee(player::player_id(), 1);
		player::set_police_ignore_player(player::player_id(), 1);
		func_161(1);
		ui::_0xA8FDB297A8D25FBA();
		ui::_0xFDB423997FA30340();
		if (Global_14443.f_1 > 3)
		{
			if (audio::is_mobile_phone_call_ongoing())
			{
				audio::stop_scripted_conversation(false);
			}
			if (!func_160())
			{
				Global_14443.f_1 = 3;
			}
			Global_15745 = 5;
		}
		func_159(1, iParam3, iParam2, 0);
		Global_55822 = 1;
		Global_68128 = 1;
		Global_69615 = 1;
	}
	else
	{
		func_161(0);
		ui::_0xE1CD1E48E025E661();
		Global_55822 = 0;
		if (iParam1)
		{
			graphics::_0x03FC694AE06C5A20();
		}
		player::set_all_random_peds_flee(player::player_id(), 0);
		player::set_police_ignore_player(player::player_id(), 0);
		func_159(0, iParam3, iParam2, 0);
		if (network::network_is_game_in_progress())
		{
			if (((!ped::is_ped_injured(player::player_ped_id()) && !func_157(player::player_id())) && !func_155(player::player_id(), 0)) && !func_154())
			{
				entity::set_entity_invincible(player::player_ped_id(), false);
			}
		}
		else if (!ped::is_ped_injured(player::player_ped_id()) && !func_157(player::player_id()))
		{
			entity::set_entity_invincible(player::player_ped_id(), false);
		}
		Global_69615 = 0;
	}
}

int func_154()//Position - 0x140F0
{
	return gameplay::is_bit_set(Global_1588660[player::player_id() /*532*/].f_39.f_18, 14);
}

int func_155(int iParam0, int iParam1)//Position - 0x1410D
{
	int iVar0;
	
	if (iParam0 == player::player_id())
	{
		iVar0 = func_156(-1, 0) == 8;
	}
	else
	{
		iVar0 = Global_1588660[iParam0 /*532*/].f_201 == 8;
	}
	if (iParam1 == 1)
	{
		if (network::network_is_player_active(iParam0))
		{
			iVar0 = player::get_player_team(iParam0) == 8;
		}
	}
	return iVar0;
}

int func_156(int iParam0, int iParam1)//Position - 0x14158
{
	int iVar0;
	int iVar1;
	
	iVar1 = iParam0;
	if (iVar1 == -1)
	{
		iVar1 = func_59();
	}
	if (Global_1315209[iVar1] == 1)
	{
		if (iParam1)
		{
		}
		iVar0 = 8;
	}
	else
	{
		iVar0 = Global_1312725[iVar1];
		if (iParam1)
		{
		}
	}
	return iVar0;
}

bool func_157(int iParam0)//Position - 0x14199
{
	if (func_155(iParam0, 0))
	{
		return true;
	}
	if (func_158())
	{
		if (iParam0 == player::player_id())
		{
			return true;
		}
	}
	if (gameplay::is_bit_set(Global_2421327[iParam0 /*353*/].f_196, 2))
	{
		return true;
	}
	return false;
}

int func_158()//Position - 0x141DB
{
	return gameplay::is_bit_set(Global_2359301, 3);
}

int func_159(int iParam0, int iParam1, var uParam2, int iParam3)//Position - 0x141EC
{
	int iVar0;
	
	iVar0 = 0;
	if (gameplay::is_pc_version())
	{
		if (cutscene::_0xA0FE76168A189DDB() != iParam0 && uParam2)
		{
			cutscene::_0x20746F7B1032A3C7(iParam0, iParam1, 1, iParam3);
			iVar0 = 1;
		}
	}
	return iVar0;
}

bool func_160()//Position - 0x1421F
{
	if (Global_14443.f_1 == 1 || Global_14443.f_1 == 0)
	{
		return true;
	}
	return false;
}

void func_161(int iParam0)//Position - 0x14246
{
	if (iParam0 == 1)
	{
		gameplay::set_bit(&Global_2313, 13);
	}
	else
	{
		gameplay::clear_bit(&Global_2313, 13);
	}
}

int func_162()//Position - 0x14269
{
	int iVar0;
	
	iVar0 = cutscene::has_cutscene_loaded();
	if (!Global_69616)
	{
		if (!iVar0)
		{
			Global_69616 = 1;
		}
	}
	return iVar0;
}

void func_163(char* sParam0, int iParam1, int iParam2, int iParam3)//Position - 0x1428C
{
	struct<50> Var0;
	int iVar65;
	
	Var0 = 12;
	Var0.f_13 = 12;
	Var0.f_26 = 12;
	Var0.f_39 = 9;
	Var0.f_49 = 9;
	func_164(iParam1, &Var0, iParam3);
	iVar65 = 0;
	while (iVar65 < 12)
	{
		cutscene::set_cutscene_ped_component_variation(sParam0, iVar65, Var0.f_13[iVar65], Var0[iVar65], iParam2);
		iVar65++;
	}
	iVar65 = 0;
	while (iVar65 < 9)
	{
		if (Var0.f_39[iVar65] == -1 || Var0.f_39[iVar65] == 255)
		{
			cutscene::set_cutscene_ped_prop_variation(sParam0, iVar65, -1, 0, iParam2);
		}
		else
		{
			cutscene::set_cutscene_ped_prop_variation(sParam0, iVar65, Var0.f_39[iVar65], Var0.f_49[iVar65], iParam2);
		}
		iVar65++;
	}
}

void func_164(int iParam0, var uParam1, int iParam2)//Position - 0x14347
{
	int iVar0;
	int iVar1;
	struct<50> Var2;
	struct<14> Var67;
	int iVar81;
	int iVar82;
	int iVar83;
	int iVar84;
	int iVar85;
	int iVar86;
	
	Var2 = 12;
	Var2.f_13 = 12;
	Var2.f_26 = 12;
	Var2.f_39 = 9;
	Var2.f_49 = 9;
	iVar81 = entity::get_entity_model(iParam0);
	func_56(iParam0, &Var2, 0);
	func_56(iParam0, uParam1, iParam2);
	iVar82 = 0;
	iVar83 = 0;
	iVar0 = 0;
	while (iVar0 < 12)
	{
		if (uParam1->f_13[iVar0] != Var2.f_13[iVar0] || (*uParam1)[iVar0] != Var2[iVar0])
		{
			if (func_241(iVar81, func_243(iVar0), func_242(iParam0, Var2.f_13[iVar0], Var2[iVar0], func_243(iVar0)), &iVar1))
			{
				Var67 = { func_175(iVar81, 2, uParam1->f_59) };
				uParam1->f_13[2] = Var67.f_3;
				(*uParam1)[2] = Var67.f_4;
				iVar82 = 1;
			}
			if (func_173(iVar81, func_243(iVar0), func_242(iParam0, Var2.f_13[iVar0], Var2[iVar0], func_243(iVar0)), &iVar1))
			{
				Var67 = { func_175(iVar81, 1, uParam1->f_62) };
				uParam1->f_13[1] = Var67.f_3;
				(*uParam1)[1] = Var67.f_4;
				iVar83 = 1;
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 9)
	{
		if (uParam1->f_39[iVar0] != Var2.f_39[iVar0] || uParam1->f_49[iVar0] != Var2.f_49[iVar0])
		{
			if (func_241(iVar81, 14, func_166(iParam0, Var2.f_39[iVar0], Var2.f_49[iVar0], iVar0), &iVar1))
			{
				Var67 = { func_175(iVar81, 2, uParam1->f_59) };
				uParam1->f_13[2] = Var67.f_3;
				(*uParam1)[2] = Var67.f_4;
				iVar82 = 1;
			}
			if (func_173(iVar81, 14, func_166(iParam0, Var2.f_39[iVar0], Var2.f_49[iVar0], iVar0), &iVar1))
			{
				Var67 = { func_175(iVar81, 1, uParam1->f_62) };
				uParam1->f_13[1] = Var67.f_3;
				(*uParam1)[1] = Var67.f_4;
				iVar83 = 1;
			}
		}
		iVar0++;
	}
	if (iVar83 || iVar82)
	{
		iVar84 = func_242(iParam0, uParam1->f_13[1], (*uParam1)[1], 1);
		iVar85 = func_242(iParam0, uParam1->f_13[2], (*uParam1)[2], 2);
		iVar86 = func_165(iVar81, iVar85, iVar84);
		if (iVar86 != -99)
		{
			Var67 = { func_175(iVar81, 0, iVar86) };
			uParam1->f_13[0] = Var67.f_3;
			(*uParam1)[0] = Var67.f_4;
		}
	}
}

int func_165(int iParam0, int iParam1, int iParam2)//Position - 0x145B5
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			if (iParam1 == 1)
			{
				if (iParam2 == 0)
				{
					return 1;
				}
				else if (iParam2 == 4)
				{
					return 5;
				}
				else
				{
					return 3;
				}
			}
			else if (iParam2 == 0)
			{
				return 0;
			}
			else if (iParam2 == 4)
			{
				return 4;
			}
			else
			{
				return 2;
			}
			break;
		
		case joaat("player_one"):
			if (iParam1 >= 0 && iParam1 <= 15)
			{
				if (iParam2 == 0)
				{
					return 0;
				}
				else
				{
					return 3;
				}
			}
			else if (iParam1 >= 16 && iParam1 <= 17)
			{
				if (iParam2 == 0)
				{
					return 2;
				}
				else
				{
					return 5;
				}
			}
			else if (iParam1 == 18)
			{
				if (iParam2 == 0)
				{
					return 6;
				}
				else
				{
					return 7;
				}
			}
			else if (iParam1 == 19)
			{
				if (iParam2 == 0)
				{
					return 1;
				}
				else
				{
					return 4;
				}
			}
			else if (iParam2 == 0)
			{
				return 1;
			}
			else
			{
				return 4;
			}
			break;
		
		case joaat("player_two"):
			if (iParam1 == 2)
			{
				if (iParam2 == 0)
				{
					return 2;
				}
				else
				{
					return 3;
				}
			}
			else if (iParam1 == 3)
			{
				if (iParam2 == 0)
				{
					return 4;
				}
				else
				{
					return 6;
				}
			}
			else if (iParam1 == 8)
			{
				return 5;
			}
			else if (iParam2 == 0)
			{
				return 0;
			}
			else
			{
				return 1;
			}
			break;
	}
	return -99;
}

int func_166(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x1470C
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (iParam1 == -1)
	{
		return func_172(iParam3);
	}
	iVar0 = entity::get_entity_model(iParam0);
	iVar1 = dlc1::get_hash_name_for_prop(iParam0, iParam3, iParam1, iParam2);
	if (iVar1 != -1 && iVar1 != 0)
	{
		if (iVar0 == joaat("mp_m_freemode_01"))
		{
			return func_168(entity::get_entity_model(iParam0), iVar1, 14, 3);
		}
		else if (iVar0 == joaat("mp_f_freemode_01"))
		{
			return func_168(entity::get_entity_model(iParam0), iVar1, 14, 4);
		}
	}
	iVar2 = ped::get_number_of_ped_prop_drawable_variations(iParam0, iParam3);
	iVar4 = 0;
	while (iVar4 <= (iVar2 - 1))
	{
		iVar6 = ped::get_number_of_ped_prop_texture_variations(iParam0, iParam3, iVar4);
		if (iVar4 != iParam1)
		{
			iVar3 = (iVar3 + iVar6);
		}
		else
		{
			iVar5 = 0;
			while (iVar5 <= (iVar6 - 1))
			{
				if (iVar4 == iParam1 && iVar5 == iParam2)
				{
					iVar3 = (iVar3 + func_167(iParam0, iParam3));
					return iVar3;
				}
				else
				{
					iVar3++;
				}
				iVar5++;
			}
		}
		iVar4++;
	}
	return func_172(iParam3);
}

int func_167(int iParam0, int iParam1)//Position - 0x14808
{
	int iVar0;
	
	iVar0 = entity::get_entity_model(iParam0);
	switch (iVar0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 58;
					break;
				
				case 2:
					return 112;
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 82;
					break;
				
				case 2:
					return 158;
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 88;
					break;
				
				case 2:
					return 154;
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 155;
					break;
				
				case 6:
					return 319;
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 155;
					break;
				
				case 6:
					return 319;
					break;
			}
			break;
	}
	return -99;
}

int func_168(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x14946
{
	struct<2> Var0;
	int iVar17;
	int iVar18;
	int iVar19;
	struct<2> Var20;
	int iVar37;
	int iVar38;
	int iVar39;
	
	if (iParam2 == 12)
	{
	}
	else if (iParam2 == 13)
	{
	}
	else if (iParam2 == 14)
	{
		dlc1::init_shop_ped_prop(&Var0);
		iVar18 = 0;
		iVar19 = dlc1::_get_num_props_from_outfit(iParam3, 6, -1, 1, -1, -1);
		iVar17 = 0;
		while (iVar17 < iVar19)
		{
			dlc1::get_shop_ped_query_prop(iVar17, &Var0);
			if (!dlc1::_is_dlc_data_empty(Var0))
			{
				if (iParam1 == Var0.f_1)
				{
					return (func_171(iParam0) + iVar18);
				}
				iVar18++;
			}
			iVar17++;
		}
	}
	else
	{
		dlc1::init_shop_ped_component(&Var20);
		iVar38 = 0;
		iVar39 = dlc1::_get_num_props_from_outfit(iParam3, 6, -1, 0, -1, func_170(iParam2));
		iVar37 = 0;
		while (iVar37 < iVar39)
		{
			dlc1::get_shop_ped_query_component(iVar37, &Var20);
			if (!dlc1::_is_dlc_data_empty(Var20))
			{
				if (iParam1 == Var20.f_1)
				{
					return (func_169(iParam0, func_170(iParam2)) + iVar38);
				}
				iVar38++;
			}
			iVar37++;
		}
	}
	return -99;
}

int func_169(int iParam0, int iParam1)//Position - 0x14A26
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 0:
					return 7;
					break;
				
				case 1:
					return 5;
					break;
				
				case 2:
					return 6;
					break;
				
				case 3:
					return 181;
					break;
				
				case 4:
					return 113;
					break;
				
				case 5:
					return 14;
					break;
				
				case 6:
					return 99;
					break;
				
				case 7:
					return 1;
					break;
				
				case 8:
					return 24;
					break;
				
				case 9:
					return 20;
					break;
				
				case 10:
					return 48;
					break;
				
				case 11:
					return 45;
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 0:
					return 10;
					break;
				
				case 1:
					return 5;
					break;
				
				case 2:
					return 21;
					break;
				
				case 3:
					return 318;
					break;
				
				case 4:
					return 117;
					break;
				
				case 5:
					return 7;
					break;
				
				case 6:
					return 134;
					break;
				
				case 7:
					return 1;
					break;
				
				case 8:
					return 77;
					break;
				
				case 9:
					return 12;
					break;
				
				case 10:
					return 53;
					break;
				
				case 11:
					return 63;
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 0:
					return 7;
					break;
				
				case 1:
					return 6;
					break;
				
				case 2:
					return 9;
					break;
				
				case 3:
					return 242;
					break;
				
				case 4:
					return 104;
					break;
				
				case 5:
					return 7;
					break;
				
				case 6:
					return 84;
					break;
				
				case 7:
					return 1;
					break;
				
				case 8:
					return 18;
					break;
				
				case 9:
					return 17;
					break;
				
				case 10:
					return 33;
					break;
				
				case 11:
					return 1;
					break;
			}
			break;
	}
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 1:
					return 26;
					break;
				
				case 2:
					return 91;
					break;
				
				case 3:
					return 16;
					break;
				
				case 4:
					return 256;
					break;
				
				case 5:
					return 9;
					break;
				
				case 6:
					return 256;
					break;
				
				case 7:
					return 92;
					break;
				
				case 8:
					return 241;
					break;
				
				case 9:
					return 46;
					break;
				
				case 10:
					return 7;
					break;
				
				case 11:
					return 237;
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 1:
					return 26;
					break;
				
				case 2:
					return 92;
					break;
				
				case 3:
					return 16;
					break;
				
				case 4:
					return 256;
					break;
				
				case 5:
					return 9;
					break;
				
				case 6:
					return 256;
					break;
				
				case 7:
					return 55;
					break;
				
				case 8:
					return 136;
					break;
				
				case 9:
					return 36;
					break;
				
				case 10:
					return 6;
					break;
				
				case 11:
					return 256;
					break;
			}
			break;
	}
	return -99;
}

int func_170(int iParam0)//Position - 0x14DCD
{
	switch (iParam0)
	{
		case 0:
			return 0;
			break;
		
		case 2:
			return 2;
			break;
		
		case 3:
			return 3;
			break;
		
		case 4:
			return 4;
			break;
		
		case 6:
			return 6;
			break;
		
		case 5:
			return 5;
			break;
		
		case 8:
			return 8;
			break;
		
		case 9:
			return 9;
			break;
		
		case 10:
			return 10;
			break;
		
		case 1:
			return 1;
			break;
		
		case 7:
			return 7;
			break;
		
		case 11:
			return 11;
			break;
	}
	return 0;
}

int func_171(int iParam0)//Position - 0x14E7D
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			return 113;
			break;
		
		case joaat("player_one"):
			return 175;
			break;
		
		case joaat("player_two"):
			return 155;
			break;
	}
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			return 327;
			break;
		
		case joaat("mp_f_freemode_01"):
			return 327;
			break;
	}
	return -99;
}

int func_172(int iParam0)//Position - 0x14EDE
{
	switch (iParam0)
	{
		case 0:
			return 0;
			break;
		
		case 1:
			return 1;
			break;
		
		case 2:
			return 2;
			break;
		
		case 3:
			return 3;
			break;
		
		case 4:
			return 4;
			break;
		
		case 5:
			return 5;
			break;
		
		case 6:
			return 6;
			break;
		
		case 7:
			return 7;
			break;
		
		case 8:
			return 8;
			break;
	}
	return 0;
}

bool func_173(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x14F64
{
	var uVar0;
	
	*iParam3 = -99;
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 10:
					if (iParam2 >= 44 && iParam2 <= 47)
					{
						*iParam3 = 0;
					}
					break;
				
				case 14:
					if (((((((iParam2 >= 31 && iParam2 <= 32) || (iParam2 >= 33 && iParam2 <= 34)) || (iParam2 >= 35 && iParam2 <= 36)) || iParam2 == 37) || (iParam2 >= 38 && iParam2 <= 39)) || (iParam2 >= 40 && iParam2 <= 41)) || (iParam2 >= 42 && iParam2 <= 44))
					{
						*iParam3 = 0;
					}
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 10:
					if (iParam2 >= 47 && iParam2 <= 50)
					{
						*iParam3 = 0;
					}
					break;
				
				case 14:
					if (((((iParam2 >= 26 && iParam2 <= 27) || (iParam2 >= 28 && iParam2 <= 29)) || (iParam2 >= 30 && iParam2 <= 31)) || iParam2 == 32) || (iParam2 >= 35 && iParam2 <= 36))
					{
						*iParam3 = 0;
					}
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 9:
					if (iParam2 >= 15 && iParam2 <= 16)
					{
						*iParam3 = 0;
					}
					break;
				
				case 10:
					if (iParam2 >= 29 && iParam2 <= 32)
					{
						*iParam3 = 0;
					}
					break;
				
				case 14:
					if (((((((iParam2 >= 47 && iParam2 <= 48) || (iParam2 >= 49 && iParam2 <= 50)) || (iParam2 >= 51 && iParam2 <= 52)) || iParam2 == 53) || (iParam2 >= 54 && iParam2 <= 55)) || (iParam2 >= 56 && iParam2 <= 57)) || (iParam2 >= 58 && iParam2 <= 60))
					{
						*iParam3 = 0;
					}
					break;
			}
			break;
	}
	if (*iParam3 != -99)
	{
		uVar0 = func_174(iParam0);
		Global_101553.f_1991.f_539[uVar0 /*65*/].f_63 = iParam2;
		Global_101553.f_1991.f_539[uVar0 /*65*/].f_64 = iParam1;
		return true;
	}
	return false;
}

int func_174(int iParam0)//Position - 0x151EE
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			return 0;
			break;
		
		case joaat("player_one"):
			return 1;
			break;
		
		case joaat("player_two"):
			return 2;
			break;
		
		default:
			break;
	}
	return 145;
}

struct<14> func_175(int iParam0, int iParam1, int iParam2)//Position - 0x15229
{
	func_240();
	if (iParam0 == joaat("player_zero"))
	{
		func_222(iParam1, iParam2);
	}
	else if (iParam0 == joaat("player_one"))
	{
		func_203(iParam1, iParam2);
	}
	else if (iParam0 == joaat("player_two"))
	{
		func_176(iParam1, iParam2);
	}
	return Global_69438[0 /*14*/];
}

void func_176(int iParam0, int iParam1)//Position - 0x1527B
{
	switch (iParam0)
	{
		case 0:
			func_202(iParam1);
			break;
		
		case 2:
			func_201(iParam1);
			break;
		
		case 3:
			func_198(iParam1);
			break;
		
		case 4:
			func_197(iParam1);
			break;
		
		case 6:
			func_196(iParam1);
			break;
		
		case 5:
			func_195(iParam1);
			break;
		
		case 8:
			func_194(iParam1);
			break;
		
		case 9:
			func_193(iParam1);
			break;
		
		case 10:
			func_192(iParam1);
			break;
		
		case 1:
			func_191(iParam1);
			break;
		
		case 7:
			func_190(iParam1);
			break;
		
		case 11:
			func_189(iParam1);
			break;
		
		case 12:
			func_188(iParam1);
			break;
		
		case 13:
			func_187(iParam1);
			break;
		
		case 14:
			func_177(iParam1);
			break;
	}
}

void func_177(int iParam0)//Position - 0x1536B
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 14;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 8;
			break;
		
		case 154:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 2;
			break;
		
		case 88:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 10;
			break;
		
		case 89:
			StringCopy(&Var2, "PROPS_P2_E1", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 45;
			iVar8 = 10;
			break;
		
		case 90:
			StringCopy(&Var2, "PROPS_P2_E2", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 91:
			StringCopy(&Var2, "PROPS_P2_E2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 10;
			break;
		
		case 92:
			StringCopy(&Var2, "PROPS_P2_E2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 93:
			StringCopy(&Var2, "PROPS_P2_E2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 52;
			iVar8 = 10;
			break;
		
		case 94:
			StringCopy(&Var2, "PROPS_P2_E2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 54;
			iVar8 = 10;
			break;
		
		case 95:
			StringCopy(&Var2, "PROPS_P2_E2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 54;
			iVar8 = 10;
			break;
		
		case 96:
			StringCopy(&Var2, "PROPS_P2_E2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 97:
			StringCopy(&Var2, "PROPS_P2_E2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 98:
			StringCopy(&Var2, "PROPS_P2_E2_8", 16);
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 99:
			StringCopy(&Var2, "PROPS_P2_E2_9", 16);
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 100:
			StringCopy(&Var2, "PROPS_P2_E3", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 101:
			StringCopy(&Var2, "PROPS_P2_E3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 102:
			StringCopy(&Var2, "PROPS_P2_E3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 103:
			StringCopy(&Var2, "PROPS_P2_E3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 104:
			StringCopy(&Var2, "PROPS_P2_E3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 105:
			StringCopy(&Var2, "PROPS_P2_E3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 106:
			StringCopy(&Var2, "PROPS_P2_E3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 107:
			StringCopy(&Var2, "PROPS_P2_E3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 108:
			StringCopy(&Var2, "PROPS_P2_E3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 109:
			StringCopy(&Var2, "PROPS_P2_E3_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 110:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 111:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 112:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 113:
			StringCopy(&Var2, "PROPS_P2_E7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 60;
			iVar8 = 10;
			break;
		
		case 114:
			StringCopy(&Var2, "PROPS_P2_E7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 10;
			break;
		
		case 115:
			StringCopy(&Var2, "PROPS_P2_E7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 50;
			iVar8 = 10;
			break;
		
		case 116:
			StringCopy(&Var2, "PROPS_P2_E7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 59;
			iVar8 = 10;
			break;
		
		case 117:
			StringCopy(&Var2, "PROPS_P2_E7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 118:
			StringCopy(&Var2, "PROPS_P2_E7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 119:
			StringCopy(&Var2, "PROPS_P2_E7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 120:
			StringCopy(&Var2, "PROPS_P2_E7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 59;
			iVar8 = 10;
			break;
		
		case 121:
			StringCopy(&Var2, "PROPS_P2_E7_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 79;
			iVar8 = 10;
			break;
		
		case 122:
			StringCopy(&Var2, "PROPS_P2_E7_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 79;
			iVar8 = 10;
			break;
		
		case 123:
			StringCopy(&Var2, "PROPS_P2_E8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 150;
			iVar8 = 10;
			break;
		
		case 124:
			StringCopy(&Var2, "PROPS_P2_E8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 150;
			iVar8 = 10;
			break;
		
		case 125:
			StringCopy(&Var2, "PROPS_P2_E8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 170;
			iVar8 = 10;
			break;
		
		case 126:
			StringCopy(&Var2, "PROPS_P2_E8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 127:
			StringCopy(&Var2, "PROPS_P2_E8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 180;
			iVar8 = 10;
			break;
		
		case 128:
			StringCopy(&Var2, "PROPS_P2_E8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 185;
			iVar8 = 10;
			break;
		
		case 129:
			StringCopy(&Var2, "PROPS_P2_E8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 189;
			iVar8 = 10;
			break;
		
		case 130:
			StringCopy(&Var2, "PROPS_P2_E8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 195;
			iVar8 = 10;
			break;
		
		case 131:
			StringCopy(&Var2, "PROPS_P2_E8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 210;
			iVar8 = 10;
			break;
		
		case 132:
			StringCopy(&Var2, "PROPS_P2_E8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 215;
			iVar8 = 10;
			break;
		
		case 133:
			StringCopy(&Var2, "PROPS_P2_E9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 165;
			iVar8 = 10;
			break;
		
		case 134:
			StringCopy(&Var2, "PROPS_P2_E9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 165;
			iVar8 = 10;
			break;
		
		case 135:
			StringCopy(&Var2, "PROPS_P2_E9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 169;
			iVar8 = 10;
			break;
		
		case 136:
			StringCopy(&Var2, "PROPS_P2_E9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 169;
			iVar8 = 10;
			break;
		
		case 137:
			StringCopy(&Var2, "PROPS_P2_E9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 138:
			StringCopy(&Var2, "PROPS_P2_E9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 139:
			StringCopy(&Var2, "PROPS_P2_E9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 140:
			StringCopy(&Var2, "PROPS_P2_E9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 189;
			iVar8 = 10;
			break;
		
		case 141:
			StringCopy(&Var2, "PROPS_P2_E9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 195;
			iVar8 = 10;
			break;
		
		case 142:
			StringCopy(&Var2, "PROPS_P2_E9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 195;
			iVar8 = 10;
			break;
		
		case 143:
			StringCopy(&Var2, "PROPS_P2_E10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 49;
			iVar8 = 10;
			break;
		
		case 144:
			StringCopy(&Var2, "PROPS_P2_E10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 10;
			break;
		
		case 145:
			StringCopy(&Var2, "PROPS_P2_E10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 52;
			iVar8 = 10;
			break;
		
		case 146:
			StringCopy(&Var2, "PROPS_P2_E10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 147:
			StringCopy(&Var2, "PROPS_P2_E10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 60;
			iVar8 = 10;
			break;
		
		case 148:
			StringCopy(&Var2, "PROPS_P2_E10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 149:
			StringCopy(&Var2, "PROPS_P2_E10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 60;
			iVar8 = 10;
			break;
		
		case 150:
			StringCopy(&Var2, "PROPS_P2_E10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 63;
			iVar8 = 10;
			break;
		
		case 151:
			StringCopy(&Var2, "PROPS_P2_E10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 152:
			StringCopy(&Var2, "PROPS_P2_E10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 68;
			iVar8 = 10;
			break;
		
		case 153:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 100;
			iVar8 = 10;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "PROPS_P2_H2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 320;
			iVar8 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "PROPS_P2_H7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "PROPS_P2_H7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar8 = 0;
			break;
		
		case 27:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar8 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar8 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar8 = 0;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 10;
			iVar8 = 0;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 11;
			iVar8 = 0;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 12;
			iVar8 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 13;
			iVar8 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 14;
			iVar8 = 0;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 15;
			iVar8 = 0;
			break;
		
		case 36:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 37:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 38:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 39:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 40:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 41:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar8 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar8 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 47:
			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 49:
			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 50:
			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 51:
			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 52:
			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 53:
			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 450;
			iVar8 = 0;
			break;
		
		case 54:
			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 55:
			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 56:
			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 57:
			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 58:
			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 59:
			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 60:
			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 61:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 62:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 63:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 64:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 65:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 66:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 67:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 68:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 69:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 70:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 71:
			StringCopy(&Var2, "PROPS_P1_H26_0", 16);
			iVar6 = 26;
			iVar7 = 0;
			iVar1 = 20;
			iVar8 = 0;
			break;
		
		case 72:
			StringCopy(&Var2, "PROPS_P1_H26_1", 16);
			iVar6 = 26;
			iVar7 = 1;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 73:
			StringCopy(&Var2, "PROPS_P1_H26_2", 16);
			iVar6 = 26;
			iVar7 = 2;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 74:
			StringCopy(&Var2, "PROPS_P1_H26_3", 16);
			iVar6 = 26;
			iVar7 = 3;
			iVar1 = 22;
			iVar8 = 0;
			break;
		
		case 75:
			StringCopy(&Var2, "PROPS_P1_H26_4", 16);
			iVar6 = 26;
			iVar7 = 4;
			iVar1 = 20;
			iVar8 = 0;
			break;
		
		case 76:
			StringCopy(&Var2, "PROPS_P1_H26_5", 16);
			iVar6 = 26;
			iVar7 = 5;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 77:
			StringCopy(&Var2, "PROPS_P1_H26_6", 16);
			iVar6 = 26;
			iVar7 = 6;
			iVar1 = 28;
			iVar8 = 0;
			break;
		
		case 78:
			StringCopy(&Var2, "PROPS_P1_H26_7", 16);
			iVar6 = 26;
			iVar7 = 7;
			iVar1 = 24;
			iVar8 = 0;
			break;
		
		case 79:
			StringCopy(&Var2, "PROPS_P1_H26_8", 16);
			iVar6 = 26;
			iVar7 = 8;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 80:
			StringCopy(&Var2, "PROPS_P1_H26_9", 16);
			iVar6 = 26;
			iVar7 = 9;
			iVar1 = 22;
			iVar8 = 0;
			break;
		
		case 81:
			StringCopy(&Var2, "PROPS_P1_H26_10", 16);
			iVar6 = 26;
			iVar7 = 10;
			iVar1 = 18;
			iVar8 = 0;
			break;
		
		case 82:
			StringCopy(&Var2, "PROPS_P1_H26_11", 16);
			iVar6 = 26;
			iVar7 = 11;
			iVar1 = 20;
			iVar8 = 0;
			break;
		
		case 83:
			StringCopy(&Var2, "PROPS_P1_H26_12", 16);
			iVar6 = 26;
			iVar7 = 12;
			iVar1 = 24;
			iVar8 = 0;
			break;
		
		case 84:
			StringCopy(&Var2, "PROPS_P1_H26_13", 16);
			iVar6 = 26;
			iVar7 = 13;
			iVar1 = 22;
			iVar8 = 0;
			break;
		
		case 85:
			StringCopy(&Var2, "PROPS_P1_H26_14", 16);
			iVar6 = 26;
			iVar7 = 14;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 86:
			StringCopy(&Var2, "PROPS_P1_H26_15", 16);
			iVar6 = 26;
			iVar7 = 15;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 87:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 27;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 155);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_178(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10)//Position - 0x165E1
{
	int iVar0;
	var uVar1;
	
	uParam0->f_6 = 0;
	*uParam0 = iParam9;
	uParam0->f_1 = (iParam2 % 32);
	uParam0->f_2 = (iParam2 / 32);
	uParam0->f_3 = iParam4;
	uParam0->f_4 = iParam5;
	uParam0->f_7 = iParam6;
	StringCopy(&(uParam0->f_8), sParam3, 16);
	uParam0->f_13 = iParam8;
	uParam0->f_12 = func_185(iParam8);
	if ((uParam0->f_2 >= 10 && uParam0->f_5 >= 0) && uParam0->f_5 < 3)
	{
		if (!iParam10)
		{
		}
		uParam0->f_2 = 0;
	}
	if (gameplay::get_hash_key(sParam3) != gameplay::get_hash_key("NO_LABEL"))
	{
	}
	if (iParam7)
	{
		gameplay::set_bit(&(uParam0->f_6), 3);
	}
	if (iParam10)
	{
		gameplay::set_bit(&(uParam0->f_6), 0);
		if (uParam0->f_5 >= 0 && uParam0->f_5 < 3)
		{
			gameplay::set_bit(&(uParam0->f_6), 5);
		}
		gameplay::set_bit(&(uParam0->f_6), 1);
		gameplay::set_bit(&(uParam0->f_6), 2);
		gameplay::set_bit(&(uParam0->f_6), 6);
		if (func_13(14))
		{
			return;
		}
		if (iParam1 == 1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 1827025211, 0))
			{
				gameplay::set_bit(&(uParam0->f_6), 7);
			}
		}
		if (iParam1 == 12)
		{
			if (!func_183(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_183(Global_2621444, 2, 1, 1, -1))
			{
				gameplay::set_bit(&(uParam0->f_6), 4);
			}
		}
		else if (iParam1 == 13)
		{
		}
		else if (iParam1 == 14)
		{
			if (!func_183(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_183(Global_2621444, 2, 1, 1, -1))
			{
				gameplay::set_bit(&(uParam0->f_6), 4);
			}
		}
		else
		{
			if (!func_183(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_183(Global_2621444, 2, 1, 1, -1))
			{
				gameplay::set_bit(&(uParam0->f_6), 4);
			}
		}
	}
	else if (uParam0->f_5 >= 0 && uParam0->f_5 < 3)
	{
		gameplay::set_bit(&(uParam0->f_6), 0);
		gameplay::set_bit(&(uParam0->f_6), 5);
		if (func_182(iParam1, uParam0->f_5, uParam0->f_2, 0, uParam0->f_1, 0, 0))
		{
			gameplay::set_bit(&(uParam0->f_6), 1);
		}
		if (func_182(iParam1, uParam0->f_5, uParam0->f_2, 1, uParam0->f_1, 0, 0))
		{
			gameplay::set_bit(&(uParam0->f_6), 2);
		}
		if (!func_182(iParam1, uParam0->f_5, uParam0->f_2, 2, uParam0->f_1, 0, 0))
		{
			gameplay::set_bit(&(uParam0->f_6), 4);
		}
	}
	else
	{
		gameplay::set_bit(&(uParam0->f_6), 0);
		if ((((((((((iParam1 == 11 || iParam1 == 4) || iParam1 == 6) || iParam1 == 1) || iParam1 == 14) || iParam1 == 2) || iParam1 == 8) || iParam1 == 9) || iParam1 == 10) || iParam1 == 7) || iParam1 == 12)
		{
			if (func_13(14))
			{
				return;
			}
			iVar0 = func_57(func_181(iParam1, uParam0->f_2), Global_69436, 0);
			if (gameplay::is_bit_set(iVar0, uParam0->f_1))
			{
				gameplay::set_bit(&(uParam0->f_6), 1);
			}
			iVar0 = func_57(func_180(iParam1, uParam0->f_2), Global_69436, 0);
			if (gameplay::is_bit_set(iVar0, uParam0->f_1))
			{
				gameplay::set_bit(&(uParam0->f_6), 2);
			}
			if (func_179(iParam1, uParam0->f_2, &uVar1))
			{
				iVar0 = func_57(uVar1, Global_69436, 0);
				if (!gameplay::is_bit_set(iVar0, uParam0->f_1))
				{
					gameplay::set_bit(&(uParam0->f_6), 4);
				}
			}
		}
		else
		{
			gameplay::set_bit(&(uParam0->f_6), 1);
			gameplay::set_bit(&(uParam0->f_6), 2);
		}
	}
	if (iParam1 == 14)
	{
		if (iParam4 == -1)
		{
			gameplay::set_bit(&(uParam0->f_6), 1);
			gameplay::set_bit(&(uParam0->f_6), 2);
		}
	}
}

int func_179(int iParam0, int iParam1, var uParam2)//Position - 0x16972
{
	*uParam2 = 971;
	switch (iParam1)
	{
		case 0:
			switch (iParam0)
			{
				case 2:
					*uParam2 = 972;
					break;
				
				case 3:
					*uParam2 = 1422;
					break;
				
				case 4:
					*uParam2 = 988;
					break;
				
				case 6:
					*uParam2 = 996;
					break;
				
				case 8:
					*uParam2 = 1423;
					break;
				
				case 9:
					*uParam2 = 1431;
					break;
				
				case 10:
					*uParam2 = 1433;
					break;
				
				case 1:
					*uParam2 = 1004;
					break;
				
				case 7:
					*uParam2 = 1434;
					break;
				
				case 11:
					*uParam2 = 980;
					break;
				
				case 14:
					*uParam2 = 1012;
					break;
				
				case 12:
					*uParam2 = 1023;
					break;
			}
			break;
		
		case 1:
			switch (iParam0)
			{
				case 2:
					*uParam2 = 973;
					break;
				
				case 4:
					*uParam2 = 989;
					break;
				
				case 6:
					*uParam2 = 997;
					break;
				
				case 8:
					*uParam2 = 1424;
					break;
				
				case 9:
					*uParam2 = 1432;
					break;
				
				case 7:
					*uParam2 = 1435;
					break;
				
				case 11:
					*uParam2 = 981;
					break;
				
				case 14:
					*uParam2 = 1013;
					break;
			}
			break;
		
		case 2:
			switch (iParam0)
			{
				case 2:
					*uParam2 = 974;
					break;
				
				case 4:
					*uParam2 = 990;
					break;
				
				case 6:
					*uParam2 = 998;
					break;
				
				case 8:
					*uParam2 = 1425;
					break;
				
				case 7:
					*uParam2 = 1436;
					break;
				
				case 11:
					*uParam2 = 982;
					break;
				
				case 14:
					*uParam2 = 1014;
					break;
			}
			break;
		
		case 3:
			switch (iParam0)
			{
				case 4:
					*uParam2 = 991;
					break;
				
				case 6:
					*uParam2 = 999;
					break;
				
				case 8:
					*uParam2 = 1426;
					break;
				
				case 11:
					*uParam2 = 983;
					break;
				
				case 14:
					*uParam2 = 1015;
					break;
			}
			break;
		
		case 4:
			switch (iParam0)
			{
				case 4:
					*uParam2 = 992;
					break;
				
				case 6:
					*uParam2 = 1000;
					break;
				
				case 8:
					*uParam2 = 1427;
					break;
				
				case 11:
					*uParam2 = 984;
					break;
				
				case 14:
					*uParam2 = 1016;
					break;
			}
			break;
		
		case 5:
			switch (iParam0)
			{
				case 4:
					*uParam2 = 993;
					break;
				
				case 6:
					*uParam2 = 1001;
					break;
				
				case 8:
					*uParam2 = 1428;
					break;
				
				case 11:
					*uParam2 = 985;
					break;
				
				case 14:
					*uParam2 = 1017;
					break;
			}
			break;
		
		case 6:
			switch (iParam0)
			{
				case 4:
					*uParam2 = 994;
					break;
				
				case 6:
					*uParam2 = 1002;
					break;
				
				case 8:
					*uParam2 = 1429;
					break;
				
				case 11:
					*uParam2 = 986;
					break;
				
				case 14:
					*uParam2 = 1018;
					break;
			}
			break;
		
		case 7:
			switch (iParam0)
			{
				case 4:
					*uParam2 = 995;
					break;
				
				case 6:
					*uParam2 = 1003;
					break;
				
				case 8:
					*uParam2 = 1430;
					break;
				
				case 11:
					*uParam2 = 987;
					break;
				
				case 14:
					*uParam2 = 1019;
					break;
			}
			break;
		
		case 8:
			switch (iParam0)
			{
				case 14:
					*uParam2 = 1020;
					break;
			}
			break;
		
		case 9:
			switch (iParam0)
			{
				case 14:
					*uParam2 = 1021;
					break;
			}
			break;
		
		case 10:
			switch (iParam0)
			{
				case 14:
					*uParam2 = 1022;
					break;
			}
			break;
	}
	return *uParam2 != 971;
}

int func_180(int iParam0, int iParam1)//Position - 0x16D77
{
	switch (iParam1)
	{
		case 0:
			switch (iParam0)
			{
				case 2:
					return 920;
					break;
				
				case 3:
					return 1407;
					break;
				
				case 4:
					return 936;
					break;
				
				case 6:
					return 944;
					break;
				
				case 8:
					return 1408;
					break;
				
				case 9:
					return 1416;
					break;
				
				case 10:
					return 1418;
					break;
				
				case 1:
					return 952;
					break;
				
				case 7:
					return 1419;
					break;
				
				case 11:
					return 928;
					break;
				
				case 14:
					return 960;
					break;
				
				case 12:
					return 971;
					break;
			}
			break;
		
		case 1:
			switch (iParam0)
			{
				case 2:
					return 921;
					break;
				
				case 4:
					return 937;
					break;
				
				case 6:
					return 945;
					break;
				
				case 8:
					return 1409;
					break;
				
				case 9:
					return 1417;
					break;
				
				case 7:
					return 1420;
					break;
				
				case 11:
					return 929;
					break;
				
				case 14:
					return 961;
					break;
			}
			break;
		
		case 2:
			switch (iParam0)
			{
				case 2:
					return 922;
					break;
				
				case 4:
					return 938;
					break;
				
				case 6:
					return 946;
					break;
				
				case 8:
					return 1410;
					break;
				
				case 7:
					return 1421;
					break;
				
				case 11:
					return 930;
					break;
				
				case 14:
					return 962;
					break;
			}
			break;
		
		case 3:
			switch (iParam0)
			{
				case 4:
					return 939;
					break;
				
				case 6:
					return 947;
					break;
				
				case 8:
					return 1411;
					break;
				
				case 11:
					return 931;
					break;
				
				case 14:
					return 963;
					break;
			}
			break;
		
		case 4:
			switch (iParam0)
			{
				case 4:
					return 940;
					break;
				
				case 6:
					return 948;
					break;
				
				case 8:
					return 1412;
					break;
				
				case 11:
					return 932;
					break;
				
				case 14:
					return 964;
					break;
			}
			break;
		
		case 5:
			switch (iParam0)
			{
				case 4:
					return 941;
					break;
				
				case 6:
					return 949;
					break;
				
				case 8:
					return 1413;
					break;
				
				case 11:
					return 933;
					break;
				
				case 14:
					return 965;
					break;
			}
			break;
		
		case 6:
			switch (iParam0)
			{
				case 4:
					return 942;
					break;
				
				case 6:
					return 950;
					break;
				
				case 8:
					return 1414;
					break;
				
				case 11:
					return 934;
					break;
				
				case 14:
					return 966;
					break;
			}
			break;
		
		case 7:
			switch (iParam0)
			{
				case 4:
					return 943;
					break;
				
				case 6:
					return 951;
					break;
				
				case 8:
					return 1415;
					break;
				
				case 11:
					return 935;
					break;
				
				case 14:
					return 967;
					break;
			}
			break;
		
		case 8:
			switch (iParam0)
			{
				case 14:
					return 968;
					break;
			}
			break;
		
		case 9:
			switch (iParam0)
			{
				case 14:
					return 969;
					break;
			}
			break;
		
		case 10:
			switch (iParam0)
			{
				case 14:
					return 970;
					break;
			}
			break;
	}
	return 928;
}

int func_181(int iParam0, int iParam1)//Position - 0x17172
{
	switch (iParam1)
	{
		case 0:
			switch (iParam0)
			{
				case 2:
					return 868;
					break;
				
				case 3:
					return 1392;
					break;
				
				case 4:
					return 884;
					break;
				
				case 6:
					return 892;
					break;
				
				case 8:
					return 1393;
					break;
				
				case 9:
					return 1401;
					break;
				
				case 10:
					return 1403;
					break;
				
				case 1:
					return 900;
					break;
				
				case 7:
					return 1404;
					break;
				
				case 11:
					return 876;
					break;
				
				case 14:
					return 908;
					break;
				
				case 12:
					return 919;
					break;
			}
			break;
		
		case 1:
			switch (iParam0)
			{
				case 2:
					return 869;
					break;
				
				case 4:
					return 885;
					break;
				
				case 6:
					return 893;
					break;
				
				case 8:
					return 1394;
					break;
				
				case 9:
					return 1402;
					break;
				
				case 7:
					return 1405;
					break;
				
				case 11:
					return 877;
					break;
				
				case 14:
					return 909;
					break;
			}
			break;
		
		case 2:
			switch (iParam0)
			{
				case 2:
					return 870;
					break;
				
				case 4:
					return 886;
					break;
				
				case 6:
					return 894;
					break;
				
				case 8:
					return 1395;
					break;
				
				case 7:
					return 1406;
					break;
				
				case 11:
					return 878;
					break;
				
				case 14:
					return 910;
					break;
			}
			break;
		
		case 3:
			switch (iParam0)
			{
				case 4:
					return 887;
					break;
				
				case 6:
					return 895;
					break;
				
				case 8:
					return 1396;
					break;
				
				case 11:
					return 879;
					break;
				
				case 14:
					return 911;
					break;
			}
			break;
		
		case 4:
			switch (iParam0)
			{
				case 4:
					return 888;
					break;
				
				case 6:
					return 896;
					break;
				
				case 8:
					return 1397;
					break;
				
				case 11:
					return 880;
					break;
				
				case 14:
					return 912;
					break;
			}
			break;
		
		case 5:
			switch (iParam0)
			{
				case 4:
					return 889;
					break;
				
				case 6:
					return 897;
					break;
				
				case 8:
					return 1398;
					break;
				
				case 11:
					return 881;
					break;
				
				case 14:
					return 913;
					break;
			}
			break;
		
		case 6:
			switch (iParam0)
			{
				case 4:
					return 890;
					break;
				
				case 6:
					return 898;
					break;
				
				case 8:
					return 1399;
					break;
				
				case 11:
					return 882;
					break;
				
				case 14:
					return 914;
					break;
			}
			break;
		
		case 7:
			switch (iParam0)
			{
				case 4:
					return 891;
					break;
				
				case 6:
					return 899;
					break;
				
				case 8:
					return 1400;
					break;
				
				case 11:
					return 883;
					break;
				
				case 14:
					return 915;
					break;
			}
			break;
		
		case 8:
			switch (iParam0)
			{
				case 14:
					return 916;
					break;
			}
			break;
		
		case 9:
			switch (iParam0)
			{
				case 14:
					return 917;
					break;
			}
			break;
		
		case 10:
			switch (iParam0)
			{
				case 14:
					return 918;
					break;
			}
			break;
	}
	return 876;
}

int func_182(int iParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x1756D
{
	if (iParam0 == 0)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/][iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/][iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/][iParam3], iParam4);
	}
	else if (iParam0 == 1)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_4[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_4[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_4[iParam3], iParam4);
	}
	else if (iParam0 == 2)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_8[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_8[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_8[iParam3], iParam4);
	}
	else if (iParam0 == 3)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_12[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_12[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_12[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_16[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_16[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_16[iParam3], iParam4);
		}
		else if (iParam2 == 2)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_20[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_20[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_20[iParam3], iParam4);
		}
		else if (iParam2 == 3)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_24[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_24[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_24[iParam3], iParam4);
		}
		else if (iParam2 == 4)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_28[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_28[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_28[iParam3], iParam4);
		}
		else if (iParam2 == 5)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_32[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_32[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_32[iParam3], iParam4);
		}
		else if (iParam2 == 6)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_36[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_36[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_36[iParam3], iParam4);
		}
		else if (iParam2 == 7)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_40[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_40[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_40[iParam3], iParam4);
		}
		else if (iParam2 == 8)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_44[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_44[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_44[iParam3], iParam4);
		}
		else if (iParam2 == 9)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_48[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_48[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_48[iParam3], iParam4);
		}
	}
	else if (iParam0 == 4)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_52[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_52[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_52[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_56[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_56[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_56[iParam3], iParam4);
		}
		else if (iParam2 == 2)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_60[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_60[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_60[iParam3], iParam4);
		}
		else if (iParam2 == 3)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_64[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_64[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_64[iParam3], iParam4);
		}
	}
	else if (iParam0 == 5)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_68[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_68[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_68[iParam3], iParam4);
	}
	else if (iParam0 == 6)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_72[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_72[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_72[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_76[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_76[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_76[iParam3], iParam4);
		}
		else if (iParam2 == 2)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_80[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_80[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_80[iParam3], iParam4);
		}
		else if (iParam2 == 3)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_84[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_84[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_84[iParam3], iParam4);
		}
		else if (iParam2 == 4)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_88[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_88[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_88[iParam3], iParam4);
		}
	}
	else if (iParam0 == 7)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_92[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_92[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_92[iParam3], iParam4);
	}
	else if (iParam0 == 8)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_96[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_96[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_96[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_100[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_100[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_100[iParam3], iParam4);
		}
		else if (iParam2 == 2)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_104[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_104[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_104[iParam3], iParam4);
		}
	}
	else if (iParam0 == 9)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_108[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_108[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_108[iParam3], iParam4);
	}
	else if (iParam0 == 10)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_112[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_112[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_112[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_116[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_116[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_116[iParam3], iParam4);
		}
	}
	else if (iParam0 == 11)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_120[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_120[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_120[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_124[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_124[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_124[iParam3], iParam4);
		}
	}
	else if (iParam0 == 12)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_128[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_128[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_128[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_132[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_132[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_132[iParam3], iParam4);
		}
	}
	else if (iParam0 == 13)
	{
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_136[iParam3]), iParam4);
		}
		if (iParam6 == 1)
		{
			gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_136[iParam3]), iParam4);
		}
		return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_136[iParam3], iParam4);
	}
	else if (iParam0 == 14)
	{
		if (iParam2 == 0)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_140[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_140[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_140[iParam3], iParam4);
		}
		else if (iParam2 == 1)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_144[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_144[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_144[iParam3], iParam4);
		}
		else if (iParam2 == 2)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_148[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_148[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_148[iParam3], iParam4);
		}
		else if (iParam2 == 3)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_152[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_152[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_152[iParam3], iParam4);
		}
		else if (iParam2 == 4)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_156[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_156[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_156[iParam3], iParam4);
		}
		else if (iParam2 == 5)
		{
			if (iParam5 == 1)
			{
				gameplay::set_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_160[iParam3]), iParam4);
			}
			if (iParam6 == 1)
			{
				gameplay::clear_bit(&(Global_101553.f_1991[uParam1 /*164*/].f_160[iParam3]), iParam4);
			}
			return gameplay::is_bit_set(Global_101553.f_1991[uParam1 /*164*/].f_160[iParam3], iParam4);
		}
	}
	return false;
}

int func_183(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x1848C
{
	int iVar0;
	int iVar1;
	var uVar2;
	int iVar3;
	
	iVar0 = Global_69436;
	if (iParam4 != -1)
	{
		iVar0 = iParam4;
	}
	if (func_184(iParam0, iParam1, &uVar2, &iVar1, iParam2, iParam3))
	{
		iVar3 = func_57(uVar2, iVar0, 0);
		return gameplay::is_bit_set(iVar3, iVar1);
	}
	return false;
}

int func_184(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0x184CE
{
	int iVar0;
	
	*uParam2 = 4617;
	if ((iParam4 && Global_2575497) || (!iParam4 && iParam5))
	{
		switch (iParam1)
		{
			case 1:
				switch (iParam0)
				{
					case 8886212:
					case -969630947:
						*uParam2 = 964;
						*uParam3 = 19;
						return true;
						break;
					
					case 1857811503:
					case -1198063650:
						*uParam2 = 964;
						*uParam3 = 20;
						return true;
						break;
					
					case 552556691:
					case -1596927918:
						*uParam2 = 964;
						*uParam3 = 21;
						return true;
						break;
					
					case 328711652:
					case 2093516866:
						*uParam2 = 964;
						*uParam3 = 22;
						return true;
						break;
					
					case 1194403102:
					case 1863511255:
						*uParam2 = 964;
						*uParam3 = 23;
						return true;
						break;
					
					case 1107630790:
					case 1503248869:
						*uParam2 = 964;
						*uParam3 = 24;
						return true;
						break;
					
					case 1807937089:
					case 1263478096:
						*uParam2 = 964;
						*uParam3 = 25;
						return true;
						break;
					
					case 1453442047:
					case 745170819:
						*uParam2 = 964;
						*uParam3 = 26;
						return true;
						break;
					
					case -1071423629:
					case -1382822784:
					case 385813134:
						*uParam2 = 928;
						*uParam3 = 0;
						return true;
						break;
					
					case -833094692:
					case -1731353868:
					case 675392787:
						*uParam2 = 928;
						*uParam3 = 1;
						return true;
						break;
					
					case -1836153782:
					case -1960638561:
					case -238272479:
						*uParam2 = 928;
						*uParam3 = 2;
						return true;
						break;
					
					case -1598414687:
					case 147161830:
					case 67757212:
						*uParam2 = 928;
						*uParam3 = 3;
						return true;
						break;
					
					case 123661793:
					case -92608943:
					case -536372072:
						*uParam2 = 928;
						*uParam3 = 4;
						return true;
						break;
					
					case 330958487:
					case -162931217:
					case -247578875:
						*uParam2 = 928;
						*uParam3 = 5;
						return true;
						break;
					
					case -142717408:
					case 1665087452:
					case -854821214:
						*uParam2 = 928;
						*uParam3 = 7;
						return true;
						break;
					
					case 1290696959:
					case 1012984348:
					case -1458295118:
						*uParam2 = 928;
						*uParam3 = 8;
						return true;
						break;
					
					case 2059568454:
					case 933072050:
					case -1454802604:
						*uParam2 = 928;
						*uParam3 = 11;
						return true;
						break;
				}
				break;
			
			case 2:
				switch (iParam0)
				{
					case 8886212:
					case -969630947:
						*uParam2 = 1016;
						*uParam3 = 19;
						return true;
						break;
					
					case 1857811503:
					case -1198063650:
						*uParam2 = 1016;
						*uParam3 = 20;
						return true;
						break;
					
					case 552556691:
					case -1596927918:
						*uParam2 = 1016;
						*uParam3 = 21;
						return true;
						break;
					
					case 328711652:
					case 2093516866:
						*uParam2 = 1016;
						*uParam3 = 22;
						return true;
						break;
					
					case 1194403102:
					case 1863511255:
						*uParam2 = 1016;
						*uParam3 = 23;
						return true;
						break;
					
					case 1107630790:
					case 1503248869:
						*uParam2 = 1016;
						*uParam3 = 24;
						return true;
						break;
					
					case 1807937089:
					case 1263478096:
						*uParam2 = 1016;
						*uParam3 = 25;
						return true;
						break;
					
					case 1453442047:
					case 745170819:
						*uParam2 = 1016;
						*uParam3 = 26;
						return true;
						break;
				}
				break;
		}
	}
	else
	{
		switch (iParam1)
		{
			case 1:
				switch (iParam0)
				{
					case -1795774903:
					case -379046860:
						*uParam2 = 964;
						*uParam3 = 19;
						return true;
						break;
					
					case 1655095722:
					case 472553912:
						*uParam2 = 964;
						*uParam3 = 20;
						return true;
						break;
					
					case -1951624263:
					case 147288818:
						*uParam2 = 964;
						*uParam3 = 21;
						return true;
						break;
					
					case -1586249913:
					case 1027988462:
						*uParam2 = 964;
						*uParam3 = 22;
						return true;
						break;
					
					case -1472181024:
					case 788217689:
						*uParam2 = 964;
						*uParam3 = 23;
						return true;
						break;
					
					case -1116178608:
					case 1338147047:
						*uParam2 = 964;
						*uParam3 = 24;
						return true;
						break;
					
					case -1028914761:
					case 1095820292:
						*uParam2 = 964;
						*uParam3 = 25;
						return true;
						break;
					
					case -654496167:
					case -1989217217:
						*uParam2 = 964;
						*uParam3 = 26;
						return true;
						break;
				}
				break;
			
			case 2:
				switch (iParam0)
				{
					case -1795774903:
					case -379046860:
						*uParam2 = 1016;
						*uParam3 = 19;
						return true;
						break;
					
					case 1655095722:
					case 472553912:
						*uParam2 = 1016;
						*uParam3 = 20;
						return true;
						break;
					
					case -1951624263:
					case 147288818:
						*uParam2 = 1016;
						*uParam3 = 21;
						return true;
						break;
					
					case -1586249913:
					case 1027988462:
						*uParam2 = 1016;
						*uParam3 = 22;
						return true;
						break;
					
					case -1472181024:
					case 788217689:
						*uParam2 = 1016;
						*uParam3 = 23;
						return true;
						break;
					
					case -1116178608:
					case 1338147047:
						*uParam2 = 1016;
						*uParam3 = 24;
						return true;
						break;
					
					case -1028914761:
					case 1095820292:
						*uParam2 = 1016;
						*uParam3 = 25;
						return true;
						break;
					
					case -654496167:
					case -1989217217:
						*uParam2 = 1016;
						*uParam3 = 26;
						return true;
						break;
				}
				break;
			}
	}
	iVar0 = -1;
	if (iParam4)
	{
		if (Global_2575497)
		{
			iVar0 = ped::_0x1E77FA7A62EE6C4C(iParam0);
		}
		else
		{
			iVar0 = ped::_0xF033419D1B81FAE8(iParam0);
		}
	}
	else if (iParam5)
	{
		iVar0 = ped::_0x1E77FA7A62EE6C4C(iParam0);
	}
	else
	{
		iVar0 = ped::_0xF033419D1B81FAE8(iParam0);
	}
	if (iVar0 == -1)
	{
		return false;
	}
	switch (iParam1)
	{
		case 1:
			switch (system::floor((system::to_float(iVar0) / 32f)))
			{
				case 0:
					*uParam2 = 1751;
					break;
				
				case 1:
					*uParam2 = 1752;
					break;
				
				case 2:
					*uParam2 = 1753;
					break;
				
				case 3:
					*uParam2 = 1754;
					break;
				
				case 4:
					*uParam2 = 1755;
					break;
				
				case 5:
					*uParam2 = 1756;
					break;
				
				case 6:
					*uParam2 = 1763;
					break;
				
				case 7:
					*uParam2 = 1764;
					break;
				
				case 8:
					*uParam2 = 1765;
					break;
				
				case 9:
					*uParam2 = 1766;
					break;
				
				case 10:
					*uParam2 = 1767;
					break;
				
				case 11:
					*uParam2 = 1768;
					break;
				
				case 12:
					*uParam2 = 1769;
					break;
				
				case 13:
					*uParam2 = 1777;
					break;
				
				case 14:
					*uParam2 = 1778;
					break;
				
				case 15:
					*uParam2 = 1879;
					break;
				
				case 16:
					*uParam2 = 1880;
					break;
				
				case 17:
					*uParam2 = 1911;
					break;
				
				case 18:
					*uParam2 = 1925;
					break;
				
				case 19:
					*uParam2 = 1926;
					break;
				
				case 20:
					*uParam2 = 1927;
					break;
				
				case 21:
					*uParam2 = 1928;
					break;
				
				case 22:
					*uParam2 = 1929;
					break;
				
				case 23:
					*uParam2 = 2033;
					break;
				
				case 24:
					*uParam2 = 2034;
					break;
				
				case 25:
					*uParam2 = 2060;
					break;
				
				case 26:
					*uParam2 = 2061;
					break;
				
				case 27:
					*uParam2 = 2062;
					break;
				
				case 28:
					*uParam2 = 2063;
					break;
				
				case 29:
					*uParam2 = 2064;
					break;
				
				case 30:
					*uParam2 = 2065;
					break;
				
				case 31:
					*uParam2 = 2066;
					break;
				
				case 32:
					*uParam2 = 2067;
					break;
				
				case 33:
					*uParam2 = 2068;
					break;
				
				case 34:
					*uParam2 = 2069;
					break;
				
				case 35:
					*uParam2 = 2316;
					break;
				
				case 36:
					*uParam2 = 2317;
					break;
				
				case 37:
					*uParam2 = 2369;
					break;
				
				case 38:
					*uParam2 = 2370;
					break;
				
				case 39:
					*uParam2 = 2371;
					break;
				
				case 40:
					*uParam2 = 2372;
					break;
				
				case 41:
					*uParam2 = 2431;
					break;
				
				case 42:
					*uParam2 = 2432;
					break;
				
				case 43:
					*uParam2 = 2433;
					break;
				
				case 44:
					*uParam2 = 2434;
					break;
				
				case 45:
					*uParam2 = 2435;
					break;
				
				case 46:
					*uParam2 = 2436;
					break;
				
				case 47:
					*uParam2 = 2437;
					break;
				
				case 48:
					*uParam2 = 2438;
					break;
				
				case 49:
					*uParam2 = 2439;
					break;
				
				case 50:
					*uParam2 = 2440;
					break;
				
				case 51:
					*uParam2 = 2569;
					break;
				
				case 52:
					*uParam2 = 2570;
					break;
				
				case 53:
					*uParam2 = 2571;
					break;
				
				case 54:
					*uParam2 = 2572;
					break;
				
				case 55:
					*uParam2 = 2573;
					break;
				
				case 56:
					*uParam2 = 2574;
					break;
				
				case 57:
					*uParam2 = 2575;
					break;
				
				case 58:
					*uParam2 = 2576;
					break;
				
				case 59:
					*uParam2 = 2577;
					break;
				
				case 60:
					*uParam2 = 2578;
					break;
				
				case 61:
					*uParam2 = 2579;
					break;
				
				case 62:
					*uParam2 = 3176;
					break;
				
				case 63:
					*uParam2 = 3177;
					break;
				
				case 64:
					*uParam2 = 3178;
					break;
				
				case 65:
					*uParam2 = 3179;
					break;
				
				case 66:
					*uParam2 = 3180;
					break;
				
				case 67:
					*uParam2 = 3181;
					break;
				
				case 68:
					*uParam2 = 3649;
					break;
				
				case 69:
					*uParam2 = 3650;
					break;
				
				case 70:
					*uParam2 = 3651;
					break;
				
				case 71:
					*uParam2 = 3652;
					break;
				
				case 72:
					*uParam2 = 3653;
					break;
				
				case 73:
					*uParam2 = 3654;
					break;
				
				case 74:
					*uParam2 = 3655;
					break;
				
				case 75:
					*uParam2 = 3656;
					break;
				
				case 76:
					*uParam2 = 3657;
					break;
				
				case 77:
					*uParam2 = 3658;
					break;
				
				case 78:
					*uParam2 = 3760;
					break;
				
				case 79:
					*uParam2 = 3761;
					break;
				
				case 80:
					*uParam2 = 3762;
					break;
				
				case 81:
					*uParam2 = 3763;
					break;
				
				case 82:
					*uParam2 = 3764;
					break;
				
				case 83:
					*uParam2 = 3765;
					break;
				
				case 84:
					*uParam2 = 3766;
					break;
				
				case 85:
					*uParam2 = 3767;
					break;
				
				case 86:
					*uParam2 = 3870;
					break;
				
				case 87:
					*uParam2 = 3871;
					break;
				
				case 88:
					*uParam2 = 3872;
					break;
				
				default:
					break;
			}
			break;
		
		case 2:
			switch (system::floor((system::to_float(iVar0) / 32f)))
			{
				case 0:
					*uParam2 = 1757;
					break;
				
				case 1:
					*uParam2 = 1758;
					break;
				
				case 2:
					*uParam2 = 1759;
					break;
				
				case 3:
					*uParam2 = 1760;
					break;
				
				case 4:
					*uParam2 = 1761;
					break;
				
				case 5:
					*uParam2 = 1762;
					break;
				
				case 6:
					*uParam2 = 1770;
					break;
				
				case 7:
					*uParam2 = 1771;
					break;
				
				case 8:
					*uParam2 = 1772;
					break;
				
				case 9:
					*uParam2 = 1773;
					break;
				
				case 10:
					*uParam2 = 1774;
					break;
				
				case 11:
					*uParam2 = 1775;
					break;
				
				case 12:
					*uParam2 = 1776;
					break;
				
				case 13:
					*uParam2 = 1779;
					break;
				
				case 14:
					*uParam2 = 1780;
					break;
				
				case 15:
					*uParam2 = 1881;
					break;
				
				case 16:
					*uParam2 = 1882;
					break;
				
				case 17:
					*uParam2 = 1912;
					break;
				
				case 18:
					*uParam2 = 1930;
					break;
				
				case 19:
					*uParam2 = 1931;
					break;
				
				case 20:
					*uParam2 = 1932;
					break;
				
				case 21:
					*uParam2 = 1933;
					break;
				
				case 22:
					*uParam2 = 1934;
					break;
				
				case 23:
					*uParam2 = 2035;
					break;
				
				case 24:
					*uParam2 = 2036;
					break;
				
				case 25:
					*uParam2 = 2070;
					break;
				
				case 26:
					*uParam2 = 2071;
					break;
				
				case 27:
					*uParam2 = 2072;
					break;
				
				case 28:
					*uParam2 = 2073;
					break;
				
				case 29:
					*uParam2 = 2074;
					break;
				
				case 30:
					*uParam2 = 2075;
					break;
				
				case 31:
					*uParam2 = 2076;
					break;
				
				case 32:
					*uParam2 = 2077;
					break;
				
				case 33:
					*uParam2 = 2078;
					break;
				
				case 34:
					*uParam2 = 2079;
					break;
				
				case 35:
					*uParam2 = 2318;
					break;
				
				case 36:
					*uParam2 = 2319;
					break;
				
				case 37:
					*uParam2 = 2373;
					break;
				
				case 38:
					*uParam2 = 2374;
					break;
				
				case 39:
					*uParam2 = 2375;
					break;
				
				case 40:
					*uParam2 = 2376;
					break;
				
				case 41:
					*uParam2 = 2441;
					break;
				
				case 42:
					*uParam2 = 2442;
					break;
				
				case 43:
					*uParam2 = 2443;
					break;
				
				case 44:
					*uParam2 = 2444;
					break;
				
				case 45:
					*uParam2 = 2445;
					break;
				
				case 46:
					*uParam2 = 2446;
					break;
				
				case 47:
					*uParam2 = 2447;
					break;
				
				case 48:
					*uParam2 = 2448;
					break;
				
				case 49:
					*uParam2 = 2449;
					break;
				
				case 50:
					*uParam2 = 2450;
					break;
				
				case 51:
					*uParam2 = 2580;
					break;
				
				case 52:
					*uParam2 = 2581;
					break;
				
				case 53:
					*uParam2 = 2582;
					break;
				
				case 54:
					*uParam2 = 2583;
					break;
				
				case 55:
					*uParam2 = 2584;
					break;
				
				case 56:
					*uParam2 = 2585;
					break;
				
				case 57:
					*uParam2 = 2586;
					break;
				
				case 58:
					*uParam2 = 2587;
					break;
				
				case 59:
					*uParam2 = 2588;
					break;
				
				case 60:
					*uParam2 = 2589;
					break;
				
				case 61:
					*uParam2 = 2590;
					break;
				
				case 62:
					*uParam2 = 3182;
					break;
				
				case 63:
					*uParam2 = 3183;
					break;
				
				case 64:
					*uParam2 = 3184;
					break;
				
				case 65:
					*uParam2 = 3185;
					break;
				
				case 66:
					*uParam2 = 3186;
					break;
				
				case 67:
					*uParam2 = 3187;
					break;
				
				case 68:
					*uParam2 = 3659;
					break;
				
				case 69:
					*uParam2 = 3660;
					break;
				
				case 70:
					*uParam2 = 3661;
					break;
				
				case 71:
					*uParam2 = 3662;
					break;
				
				case 72:
					*uParam2 = 3663;
					break;
				
				case 73:
					*uParam2 = 3664;
					break;
				
				case 74:
					*uParam2 = 3665;
					break;
				
				case 75:
					*uParam2 = 3666;
					break;
				
				case 76:
					*uParam2 = 3667;
					break;
				
				case 77:
					*uParam2 = 3668;
					break;
				
				case 78:
					*uParam2 = 3768;
					break;
				
				case 79:
					*uParam2 = 3769;
					break;
				
				case 80:
					*uParam2 = 3770;
					break;
				
				case 81:
					*uParam2 = 3771;
					break;
				
				case 82:
					*uParam2 = 3772;
					break;
				
				case 83:
					*uParam2 = 3773;
					break;
				
				case 84:
					*uParam2 = 3774;
					break;
				
				case 85:
					*uParam2 = 3775;
					break;
				
				case 86:
					*uParam2 = 3873;
					break;
				
				case 87:
					*uParam2 = 3874;
					break;
				
				case 88:
					*uParam2 = 3875;
					break;
				
				default:
					break;
			}
			break;
	}
	*uParam3 = (iVar0 % 32);
	return *uParam2 != 4617;
}

int func_185(int iParam0)//Position - 0x19555
{
	switch (iParam0)
	{
		case -1:
			return 0;
			break;
		
		case 0:
			return 0;
			break;
		
		case 1:
			return 1;
			break;
		
		case 2:
			return 2;
			break;
		
		case 3:
			return 3;
			break;
		
		case 4:
			return 4;
			break;
		
		case 5:
			return 5;
			break;
		
		case 6:
			return 6;
			break;
		
		case 7:
			return 7;
			break;
		
		case 8:
			return 8;
			break;
		
		case 9:
			return 0;
			break;
		
		case 10:
			return 1;
			break;
		
		case 11:
			return 0;
			break;
		
		case 12:
			return 0;
			break;
		
		case 13:
			return 0;
			break;
	}
	return 0;
}

void func_186(int iParam0, int iParam1, int iParam2)//Position - 0x19629
{
	int iVar0;
	int iVar1;
	struct<8> Var2;
	int iVar17;
	int iVar18;
	int iVar19;
	struct<10> Var20;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	struct<10> Var41;
	int iVar58;
	int iVar59;
	int iVar60;
	
	iVar0 = (iParam1 - iParam2);
	iVar0 = iVar0;
	if (iVar0 < 0)
	{
		return;
	}
	iVar1 = Global_69438[0 /*14*/].f_5;
	if (iParam0 == 12)
	{
		iVar18 = 0;
		iVar19 = dlc1::_0xF3FBE2D50A6A8C28(iVar1, 0);
		iVar17 = 0;
		while (iVar17 < iVar19)
		{
			dlc1::get_shop_ped_query_outfit(iVar17, &Var2);
			if (!dlc1::_is_dlc_data_empty(Var2))
			{
				if (iVar18 == (iParam1 - iParam2))
				{
					Global_2621444 = Var2.f_1;
					Global_2621445 = Var2;
					func_178(&(Global_69438[0 /*14*/]), iParam0, iParam1, &(Var2.f_7), 0, 0, Var2.f_2, 0, -1, 2, 1);
					return;
				}
				iVar18++;
			}
			iVar17++;
		}
	}
	else if (iParam0 == 13)
	{
		func_178(&(Global_69438[0 /*14*/]), iParam0, iParam1, "NO_LABEL", 0, 0, 0, 1, -1, 2, 1);
	}
	else if (iParam0 == 14)
	{
		dlc1::init_shop_ped_prop(&Var20);
		iVar39 = 0;
		iVar40 = dlc1::_get_num_props_from_outfit(iVar1, 6, -1, 1, -1, -1);
		iVar38 = 0;
		while (iVar38 < iVar40)
		{
			dlc1::get_shop_ped_query_prop(iVar38, &Var20);
			if (!dlc1::_is_dlc_data_empty(Var20))
			{
				if (iVar39 == (iParam1 - iParam2))
				{
					if (Var20.f_6 == 0)
					{
						iVar37 = 9;
					}
					else if (Var20.f_6 == 1)
					{
						iVar37 = 10;
					}
					else if (Var20.f_6 == 2)
					{
						iVar37 = 2;
					}
					else if (Var20.f_6 == 3)
					{
						iVar37 = 3;
					}
					else if (Var20.f_6 == 4)
					{
						iVar37 = 4;
					}
					else if (Var20.f_6 == 5)
					{
						iVar37 = 5;
					}
					else if (Var20.f_6 == 6)
					{
						iVar37 = 6;
					}
					else if (Var20.f_6 == 7)
					{
						iVar37 = 7;
					}
					else if (Var20.f_6 == 8)
					{
						iVar37 = 8;
					}
					else
					{
						iVar37 = -1;
					}
					Global_2621444 = Var20.f_1;
					Global_2621445 = Var20;
					func_178(&(Global_69438[0 /*14*/]), iParam0, iParam1, &(Var20.f_9), Var20.f_3, Var20.f_4, Var20.f_5, dlc1::_0x341DE7ED1D2A1BFD(Var20.f_1, -2050632586, 0), iVar37, 2, Var20.f_1 != 0);
					return;
				}
				iVar39++;
			}
			iVar38++;
		}
	}
	else
	{
		dlc1::init_shop_ped_component(&Var41);
		iVar59 = 0;
		iVar60 = dlc1::_get_num_props_from_outfit(iVar1, 6, -1, 0, -1, func_170(iParam0));
		iVar58 = 0;
		while (iVar58 < iVar60)
		{
			dlc1::get_shop_ped_query_component(iVar58, &Var41);
			if (!dlc1::_is_dlc_data_empty(Var41))
			{
				if (iVar59 == (iParam1 - iParam2))
				{
					Global_2621444 = Var41.f_1;
					Global_2621445 = Var41;
					func_178(&(Global_69438[0 /*14*/]), iParam0, iParam1, &(Var41.f_9), Var41.f_3, Var41.f_4, Var41.f_5, dlc1::_0x341DE7ED1D2A1BFD(Var41.f_1, -2050632586, 0), -1, 2, Var41.f_1 != 0);
					return;
				}
				iVar59++;
			}
			iVar58++;
		}
	}
}

void func_187(int iParam0)//Position - 0x198A4
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 13;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_186(iVar10, iParam0, 9);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_188(int iParam0)//Position - 0x199FA
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 12;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "OUTFIT_P2_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "OUTFIT_P2_5", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "OUTFIT_P2_6", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "OUTFIT_P2_7", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "OUTFIT_P2_8", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "OUTFIT_P2_9", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "OUTFIT_P2_10", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "OUTFIT_P2_12", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 9:
			StringCopy(&Var2, "OUTFIT_P2_13", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "OUTFIT_P2_14", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "OUTFIT_P2_15", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "OUTFIT_P2_16", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "OUTFIT_P2_17", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 14:
			StringCopy(&Var2, "OUTFIT_P2_18", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 15:
			StringCopy(&Var2, "OUTFIT_P2_19", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "OUTFIT_P2_20", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "OUTFIT_P2_21", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 18:
			StringCopy(&Var2, "OUTFIT_P2_22", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 19:
			StringCopy(&Var2, "OUTFIT_P2_23", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 20:
			StringCopy(&Var2, "OUTFIT_P2_24", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "OUTFIT_P2_25", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "OUTFIT_P2_26", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 23:
			StringCopy(&Var2, "OUTFIT_P2_27", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 24:
			StringCopy(&Var2, "OUTFIT_P2_28", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 119;
			break;
		
		case 25:
			StringCopy(&Var2, "OUTFIT_P2_29", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 99;
			break;
		
		case 26:
			StringCopy(&Var2, "OUTFIT_P2_30", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 129;
			break;
		
		case 27:
			StringCopy(&Var2, "OUTFIT_P2_44", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 125;
			break;
		
		case 28:
			StringCopy(&Var2, "OUTFIT_P2_45", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 120;
			break;
		
		case 29:
			StringCopy(&Var2, "OUTFIT_P2_46", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 139;
			break;
		
		case 30:
			StringCopy(&Var2, "OUTFIT_P2_47", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 149;
			break;
		
		case 31:
			StringCopy(&Var2, "OUTFIT_P2_48", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 145;
			break;
		
		case 32:
			StringCopy(&Var2, "OUTFIT_P2_49", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 140;
			break;
		
		case 33:
			StringCopy(&Var2, "OUTFIT_P2_50", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 135;
			break;
		
		case 34:
			StringCopy(&Var2, "OUTFIT_P2_31", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4900;
			break;
		
		case 35:
			StringCopy(&Var2, "OUTFIT_P2_32", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 36:
			StringCopy(&Var2, "OUTFIT_P2_33", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4500;
			break;
		
		case 37:
			StringCopy(&Var2, "OUTFIT_P2_34", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4900;
			break;
		
		case 38:
			StringCopy(&Var2, "OUTFIT_P2_35", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4500;
			break;
		
		case 39:
			StringCopy(&Var2, "OUTFIT_P2_36", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 40:
			StringCopy(&Var2, "OUTFIT_P2_37", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5500;
			break;
		
		case 41:
			StringCopy(&Var2, "OUTFIT_P2_38", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "OUTFIT_P2_39", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "OUTFIT_P2_40", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "OUTFIT_P2_41", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "OUTFIT_P2_42", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "OUTFIT_P2_43", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 47:
			StringCopy(&Var2, "OUTFIT_P2_12", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 48);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_189(int iParam0)//Position - 0x19F07
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 11;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 1);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_190(int iParam0)//Position - 0x19F7B
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 7;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 1);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_191(int iParam0)//Position - 0x19FEE
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 1;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "BERD_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "BERD_P2_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "BERD_P2_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "BERD_P2_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "BERD_P2_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "BERD_P2_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 6);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_192(int iParam0)//Position - 0x1A0D4
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 10;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 1;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 2;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 3;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 4;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 5;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 1;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 2;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 3;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 4;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 5;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 6;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 7;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 8;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 9;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 1;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 2;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 3;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 4;
			break;
		
		case 27:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 5;
			break;
		
		case 28:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 6;
			break;
		
		case 29:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 1;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 2;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 3;
			break;
		
		default:
			func_186(iVar10, iParam0, 33);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_193(int iParam0)//Position - 0x1A436
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 9;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 1;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 2;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 3;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 125;
			break;
		
		case 10:
			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 150;
			break;
		
		case 11:
			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 175;
			break;
		
		case 12:
			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 85;
			break;
		
		case 13:
			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 14:
			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 175;
			break;
		
		case 15:
			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 270;
			break;
		
		case 16:
			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 270;
			break;
		
		default:
			func_186(iVar10, iParam0, 17);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_194(int iParam0)//Position - 0x1A646
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 8;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "SPEC_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "SPEC_P2_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_186(iVar10, iParam0, 18);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_195(int iParam0)//Position - 0x1A875
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 5;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_186(iVar10, iParam0, 7);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_196(int iParam0)//Position - 0x1A984
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 6;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "FEET_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "FEET_P2_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 22;
			break;
		
		case 2:
			StringCopy(&Var2, "FEET_P2_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 45;
			break;
		
		case 3:
			StringCopy(&Var2, "FEET_P2_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 65;
			break;
		
		case 4:
			StringCopy(&Var2, "FEET_P2_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 58;
			break;
		
		case 5:
			StringCopy(&Var2, "FEET_P2_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 72;
			break;
		
		case 6:
			StringCopy(&Var2, "FEET_P2_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 68;
			break;
		
		case 7:
			StringCopy(&Var2, "FEET_P2_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 60;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "FEET_P2_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "FEET_P2_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "FEET_P2_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "FEET_P2_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 680;
			break;
		
		case 18:
			StringCopy(&Var2, "FEET_P2_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 650;
			break;
		
		case 19:
			StringCopy(&Var2, "FEET_P2_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 670;
			break;
		
		case 20:
			StringCopy(&Var2, "FEET_P2_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 700;
			break;
		
		case 21:
			StringCopy(&Var2, "FEET_P2_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 680;
			break;
		
		case 22:
			StringCopy(&Var2, "FEET_P2_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 720;
			break;
		
		case 23:
			StringCopy(&Var2, "FEET_P2_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 740;
			break;
		
		case 24:
			StringCopy(&Var2, "FEET_P2_9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 760;
			break;
		
		case 25:
			StringCopy(&Var2, "FEET_P2_9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 780;
			break;
		
		case 26:
			StringCopy(&Var2, "FEET_P2_9_10", 16);
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 750;
			break;
		
		case 27:
			StringCopy(&Var2, "FEET_P2_9_11", 16);
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 700;
			break;
		
		case 28:
			StringCopy(&Var2, "FEET_P2_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			break;
		
		case 36:
			StringCopy(&Var2, "FEET_P2_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 790;
			break;
		
		case 37:
			StringCopy(&Var2, "FEET_P2_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 750;
			break;
		
		case 38:
			StringCopy(&Var2, "FEET_P2_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 860;
			break;
		
		case 39:
			StringCopy(&Var2, "FEET_P2_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 750;
			break;
		
		case 40:
			StringCopy(&Var2, "FEET_P2_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 790;
			break;
		
		case 41:
			StringCopy(&Var2, "FEET_P2_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 42:
			StringCopy(&Var2, "FEET_P2_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 820;
			break;
		
		case 43:
			StringCopy(&Var2, "FEET_P2_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 800;
			break;
		
		case 44:
			StringCopy(&Var2, "FEET_P2_18_8", 16);
			iVar6 = 18;
			iVar7 = 8;
			iVar1 = 850;
			break;
		
		case 45:
			StringCopy(&Var2, "FEET_P2_18_9", 16);
			iVar6 = 18;
			iVar7 = 9;
			iVar1 = 870;
			break;
		
		case 46:
			StringCopy(&Var2, "FEET_P2_18_10", 16);
			iVar6 = 18;
			iVar7 = 10;
			iVar1 = 720;
			break;
		
		case 47:
			StringCopy(&Var2, "FEET_P2_18_11", 16);
			iVar6 = 18;
			iVar7 = 11;
			iVar1 = 740;
			break;
		
		case 48:
			StringCopy(&Var2, "FEET_P2_18_12", 16);
			iVar6 = 18;
			iVar7 = 12;
			iVar1 = 800;
			break;
		
		case 49:
			StringCopy(&Var2, "FEET_P2_18_13", 16);
			iVar6 = 18;
			iVar7 = 13;
			iVar1 = 750;
			break;
		
		case 50:
			StringCopy(&Var2, "FEET_P2_18_14", 16);
			iVar6 = 18;
			iVar7 = 14;
			iVar1 = 770;
			break;
		
		case 51:
			StringCopy(&Var2, "FEET_P2_18_15", 16);
			iVar6 = 18;
			iVar7 = 15;
			iVar1 = 860;
			break;
		
		case 52:
			StringCopy(&Var2, "FEET_P2_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 850;
			break;
		
		case 53:
			StringCopy(&Var2, "FEET_P2_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 800;
			break;
		
		case 54:
			StringCopy(&Var2, "FEET_P2_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 780;
			break;
		
		case 55:
			StringCopy(&Var2, "FEET_P2_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 890;
			break;
		
		case 56:
			StringCopy(&Var2, "FEET_P2_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 820;
			break;
		
		case 57:
			StringCopy(&Var2, "FEET_P2_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 58:
			StringCopy(&Var2, "FEET_P2_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 870;
			break;
		
		case 59:
			StringCopy(&Var2, "FEET_P2_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 930;
			break;
		
		case 60:
			StringCopy(&Var2, "FEET_P2_19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 880;
			break;
		
		case 61:
			StringCopy(&Var2, "FEET_P2_19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 900;
			break;
		
		case 62:
			StringCopy(&Var2, "FEET_P2_19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 920;
			break;
		
		case 63:
			StringCopy(&Var2, "FEET_P2_19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 970;
			break;
		
		case 64:
			StringCopy(&Var2, "FEET_P2_19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 990;
			break;
		
		case 65:
			StringCopy(&Var2, "FEET_P2_19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 960;
			break;
		
		case 66:
			StringCopy(&Var2, "FEET_P2_19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 980;
			break;
		
		case 67:
			StringCopy(&Var2, "FEET_P2_19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 950;
			break;
		
		case 68:
			StringCopy(&Var2, "FEET_P2_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 110;
			break;
		
		case 69:
			StringCopy(&Var2, "FEET_P2_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 70:
			StringCopy(&Var2, "FEET_P2_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 120;
			break;
		
		case 71:
			StringCopy(&Var2, "FEET_P2_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 72:
			StringCopy(&Var2, "FEET_P2_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			iVar1 = 125;
			break;
		
		case 73:
			StringCopy(&Var2, "FEET_P2_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 128;
			break;
		
		case 74:
			StringCopy(&Var2, "FEET_P2_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 135;
			break;
		
		case 75:
			StringCopy(&Var2, "FEET_P2_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 76:
			StringCopy(&Var2, "FEET_P2_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 145;
			break;
		
		case 77:
			StringCopy(&Var2, "FEET_P2_20_9", 16);
			iVar6 = 20;
			iVar7 = 9;
			iVar1 = 110;
			break;
		
		case 78:
			StringCopy(&Var2, "FEET_P2_20_10", 16);
			iVar6 = 20;
			iVar7 = 10;
			iVar1 = 120;
			break;
		
		case 79:
			StringCopy(&Var2, "FEET_P2_20_11", 16);
			iVar6 = 20;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 80:
			StringCopy(&Var2, "FEET_P2_20_12", 16);
			iVar6 = 20;
			iVar7 = 12;
			iVar1 = 125;
			break;
		
		case 81:
			StringCopy(&Var2, "FEET_P2_20_13", 16);
			iVar6 = 20;
			iVar7 = 13;
			iVar1 = 120;
			break;
		
		case 82:
			StringCopy(&Var2, "FEET_P2_20_14", 16);
			iVar6 = 20;
			iVar7 = 14;
			iVar1 = 130;
			break;
		
		case 83:
			StringCopy(&Var2, "FEET_P2_20_15", 16);
			iVar6 = 20;
			iVar7 = 15;
			iVar1 = 110;
			break;
		
		default:
			func_186(iVar10, iParam0, 84);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_197(int iParam0)//Position - 0x1B322
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 4;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "LEGS_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "LEGS_P2_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 2:
			StringCopy(&Var2, "LEGS_P2_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 129;
			break;
		
		case 3:
			StringCopy(&Var2, "LEGS_P2_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 115;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "LEGS_P2_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "LEGS_P2_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 750;
			break;
		
		case 20:
			StringCopy(&Var2, "LEGS_P2_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 650;
			break;
		
		case 21:
			StringCopy(&Var2, "LEGS_P2_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 850;
			break;
		
		case 22:
			StringCopy(&Var2, "LEGS_P2_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 850;
			break;
		
		case 23:
			StringCopy(&Var2, "LEGS_P2_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 750;
			break;
		
		case 24:
			StringCopy(&Var2, "LEGS_P2_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 690;
			break;
		
		case 25:
			StringCopy(&Var2, "LEGS_P2_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 820;
			break;
		
		case 26:
			StringCopy(&Var2, "LEGS_P2_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 650;
			break;
		
		case 27:
			StringCopy(&Var2, "LEGS_P2_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 690;
			break;
		
		case 28:
			StringCopy(&Var2, "LEGS_P2_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 690;
			break;
		
		case 29:
			StringCopy(&Var2, "LEGS_P2_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 820;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "LEGS_P2_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "LEGS_P2_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "LEGS_P2_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "LEGS_P2_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 58;
			break;
		
		case 36:
			StringCopy(&Var2, "LEGS_P2_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar1 = 68;
			break;
		
		case 37:
			StringCopy(&Var2, "LEGS_P2_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			iVar1 = 65;
			break;
		
		case 38:
			StringCopy(&Var2, "LEGS_P2_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 60;
			break;
		
		case 39:
			StringCopy(&Var2, "LEGS_P2_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 65;
			break;
		
		case 40:
			StringCopy(&Var2, "LEGS_P2_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 63;
			break;
		
		case 41:
			StringCopy(&Var2, "LEGS_P2_17_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			iVar1 = 60;
			break;
		
		case 42:
			StringCopy(&Var2, "LEGS_P2_17_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			iVar1 = 58;
			break;
		
		case 43:
			StringCopy(&Var2, "LEGS_P2_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "LEGS_P2_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			break;
		
		case 45:
			StringCopy(&Var2, "LEGS_P2_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 99;
			break;
		
		case 46:
			StringCopy(&Var2, "LEGS_P2_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 105;
			break;
		
		case 47:
			StringCopy(&Var2, "LEGS_P2_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 110;
			break;
		
		case 48:
			StringCopy(&Var2, "LEGS_P2_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 110;
			break;
		
		case 49:
			StringCopy(&Var2, "LEGS_P2_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 99;
			break;
		
		case 50:
			StringCopy(&Var2, "LEGS_P2_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 110;
			break;
		
		case 51:
			StringCopy(&Var2, "LEGS_P2_18_8", 16);
			iVar6 = 18;
			iVar7 = 8;
			iVar1 = 110;
			break;
		
		case 52:
			StringCopy(&Var2, "LEGS_P2_18_9", 16);
			iVar6 = 18;
			iVar7 = 9;
			iVar1 = 105;
			break;
		
		case 53:
			StringCopy(&Var2, "LEGS_P2_18_10", 16);
			iVar6 = 18;
			iVar7 = 10;
			iVar1 = 105;
			break;
		
		case 54:
			StringCopy(&Var2, "LEGS_P2_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 15;
			break;
		
		case 55:
			StringCopy(&Var2, "LEGS_P2_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 15;
			break;
		
		case 56:
			StringCopy(&Var2, "LEGS_P2_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 15;
			break;
		
		case 57:
			StringCopy(&Var2, "LEGS_P2_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 15;
			break;
		
		case 58:
			StringCopy(&Var2, "LEGS_P2_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 15;
			break;
		
		case 59:
			StringCopy(&Var2, "LEGS_P2_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 15;
			break;
		
		case 60:
			StringCopy(&Var2, "LEGS_P2_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 15;
			break;
		
		case 61:
			StringCopy(&Var2, "LEGS_P2_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 15;
			break;
		
		case 62:
			StringCopy(&Var2, "LEGS_P2_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 600;
			break;
		
		case 63:
			StringCopy(&Var2, "LEGS_P2_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 600;
			break;
		
		case 64:
			StringCopy(&Var2, "LEGS_P2_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 600;
			break;
		
		case 65:
			StringCopy(&Var2, "LEGS_P2_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 600;
			break;
		
		case 66:
			StringCopy(&Var2, "LEGS_P2_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			iVar1 = 600;
			break;
		
		case 67:
			StringCopy(&Var2, "LEGS_P2_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 600;
			break;
		
		case 68:
			StringCopy(&Var2, "LEGS_P2_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 600;
			break;
		
		case 69:
			StringCopy(&Var2, "LEGS_P2_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 600;
			break;
		
		case 70:
			StringCopy(&Var2, "LEGS_P2_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 600;
			break;
		
		case 71:
			StringCopy(&Var2, "LEGS_P2_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 80;
			break;
		
		case 72:
			StringCopy(&Var2, "LEGS_P2_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 80;
			break;
		
		case 73:
			StringCopy(&Var2, "LEGS_P2_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 80;
			break;
		
		case 74:
			StringCopy(&Var2, "LEGS_P2_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 80;
			break;
		
		case 75:
			StringCopy(&Var2, "LEGS_P2_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 80;
			break;
		
		case 76:
			StringCopy(&Var2, "LEGS_P2_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 80;
			break;
		
		case 77:
			StringCopy(&Var2, "LEGS_P2_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 80;
			break;
		
		case 78:
			StringCopy(&Var2, "LEGS_P2_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 80;
			break;
		
		case 79:
			StringCopy(&Var2, "LEGS_P2_21_8", 16);
			iVar6 = 21;
			iVar7 = 8;
			iVar1 = 80;
			break;
		
		case 80:
			StringCopy(&Var2, "LEGS_P2_21_9", 16);
			iVar6 = 21;
			iVar7 = 9;
			iVar1 = 80;
			break;
		
		case 81:
			StringCopy(&Var2, "LEGS_P2_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			break;
		
		case 82:
			StringCopy(&Var2, "LEGS_P2_22_1", 16);
			iVar6 = 22;
			iVar7 = 1;
			iVar1 = 12;
			break;
		
		case 83:
			StringCopy(&Var2, "LEGS_P2_22_2", 16);
			iVar6 = 22;
			iVar7 = 2;
			iVar1 = 12;
			break;
		
		case 84:
			StringCopy(&Var2, "LEGS_P2_22_3", 16);
			iVar6 = 22;
			iVar7 = 3;
			iVar1 = 22;
			break;
		
		case 85:
			StringCopy(&Var2, "LEGS_P2_22_4", 16);
			iVar6 = 22;
			iVar7 = 4;
			iVar1 = 18;
			break;
		
		case 86:
			StringCopy(&Var2, "LEGS_P2_22_5", 16);
			iVar6 = 22;
			iVar7 = 5;
			iVar1 = 20;
			break;
		
		case 87:
			StringCopy(&Var2, "LEGS_P2_22_6", 16);
			iVar6 = 22;
			iVar7 = 6;
			iVar1 = 30;
			break;
		
		case 88:
			StringCopy(&Var2, "LEGS_P2_22_7", 16);
			iVar6 = 22;
			iVar7 = 7;
			iVar1 = 30;
			break;
		
		case 89:
			StringCopy(&Var2, "LEGS_P2_22_8", 16);
			iVar6 = 22;
			iVar7 = 8;
			iVar1 = 30;
			break;
		
		case 90:
			StringCopy(&Var2, "LEGS_P2_22_9", 16);
			iVar6 = 22;
			iVar7 = 9;
			iVar1 = 30;
			break;
		
		case 91:
			StringCopy(&Var2, "LEGS_P2_23_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			break;
		
		case 92:
			StringCopy(&Var2, "LEGS_P2_24_0", 16);
			iVar6 = 24;
			iVar7 = 0;
			break;
		
		case 93:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 0;
			break;
		
		case 95:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 1;
			break;
		
		case 96:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 2;
			break;
		
		case 97:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 3;
			break;
		
		case 98:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 4;
			break;
		
		case 99:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 5;
			break;
		
		case 100:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 6;
			break;
		
		case 101:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 7;
			break;
		
		case 102:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 8;
			break;
		
		case 103:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 9;
			break;
		
		default:
			func_186(iVar10, iParam0, 104);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_198(int iParam0)//Position - 0x1BE94
{
	if (iParam0 < 136)
	{
		func_200(iParam0);
	}
	else
	{
		func_199(iParam0);
	}
	if (Global_69438[0 /*14*/].f_2 == -1)
	{
		func_186(3, iParam0, 242);
	}
}

void func_199(int iParam0)//Position - 0x1BEC8
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 136:
			StringCopy(&Var2, "TORSO_P2_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 32;
			break;
		
		case 137:
			StringCopy(&Var2, "TORSO_P2_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 39;
			break;
		
		case 138:
			StringCopy(&Var2, "TORSO_P2_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 40;
			break;
		
		case 139:
			StringCopy(&Var2, "TORSO_P2_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 42;
			break;
		
		case 140:
			StringCopy(&Var2, "TORSO_P2_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 45;
			break;
		
		case 141:
			StringCopy(&Var2, "TORSO_P2_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 48;
			break;
		
		case 142:
			StringCopy(&Var2, "TORSO_P2_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 52;
			break;
		
		case 143:
			StringCopy(&Var2, "TORSO_P2_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 55;
			break;
		
		case 144:
			StringCopy(&Var2, "TORSO_P2_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar1 = 390;
			break;
		
		case 145:
			StringCopy(&Var2, "TORSO_P2_22_1", 16);
			iVar6 = 22;
			iVar7 = 1;
			iVar1 = 390;
			break;
		
		case 146:
			StringCopy(&Var2, "TORSO_P2_22_2", 16);
			iVar6 = 22;
			iVar7 = 2;
			iVar1 = 560;
			break;
		
		case 147:
			StringCopy(&Var2, "TORSO_P2_22_3", 16);
			iVar6 = 22;
			iVar7 = 3;
			iVar1 = 390;
			break;
		
		case 148:
			StringCopy(&Var2, "TORSO_P2_22_4", 16);
			iVar6 = 22;
			iVar7 = 4;
			iVar1 = 390;
			break;
		
		case 149:
			StringCopy(&Var2, "TORSO_P2_22_5", 16);
			iVar6 = 22;
			iVar7 = 5;
			iVar1 = 390;
			break;
		
		case 150:
			StringCopy(&Var2, "TORSO_P2_22_6", 16);
			iVar6 = 22;
			iVar7 = 6;
			iVar1 = 560;
			break;
		
		case 151:
			StringCopy(&Var2, "TORSO_P2_22_7", 16);
			iVar6 = 22;
			iVar7 = 7;
			iVar1 = 390;
			break;
		
		case 152:
			StringCopy(&Var2, "TORSO_P2_22_8", 16);
			iVar6 = 22;
			iVar7 = 8;
			iVar1 = 390;
			break;
		
		case 153:
			StringCopy(&Var2, "TORSO_P2_22_9", 16);
			iVar6 = 22;
			iVar7 = 9;
			iVar1 = 390;
			break;
		
		case 154:
			StringCopy(&Var2, "TORSO_P2_22_10", 16);
			iVar6 = 22;
			iVar7 = 10;
			iVar1 = 390;
			break;
		
		case 155:
			StringCopy(&Var2, "TORSO_P2_22_11", 16);
			iVar6 = 22;
			iVar7 = 11;
			iVar1 = 3950;
			break;
		
		case 156:
			StringCopy(&Var2, "TORSO_P2_23_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar1 = 150;
			break;
		
		case 157:
			StringCopy(&Var2, "TORSO_P2_23_1", 16);
			iVar6 = 23;
			iVar7 = 1;
			break;
		
		case 158:
			StringCopy(&Var2, "TORSO_P2_23_2", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar1 = 150;
			break;
		
		case 159:
			StringCopy(&Var2, "TORSO_P2_23_3", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 160:
			StringCopy(&Var2, "TORSO_P2_23_4", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar1 = 160;
			break;
		
		case 161:
			StringCopy(&Var2, "TORSO_P2_23_5", 16);
			iVar6 = 23;
			iVar7 = 5;
			break;
		
		case 162:
			StringCopy(&Var2, "TORSO_P2_24_0", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar1 = 19;
			break;
		
		case 163:
			StringCopy(&Var2, "TORSO_P2_24_1", 16);
			iVar6 = 24;
			iVar7 = 1;
			iVar1 = 20;
			break;
		
		case 164:
			StringCopy(&Var2, "TORSO_P2_24_2", 16);
			iVar6 = 24;
			iVar7 = 2;
			iVar1 = 19;
			break;
		
		case 165:
			StringCopy(&Var2, "TORSO_P2_24_3", 16);
			iVar6 = 24;
			iVar7 = 3;
			iVar1 = 22;
			break;
		
		case 166:
			StringCopy(&Var2, "TORSO_P2_24_4", 16);
			iVar6 = 24;
			iVar7 = 4;
			iVar1 = 20;
			break;
		
		case 167:
			StringCopy(&Var2, "TORSO_P2_24_5", 16);
			iVar6 = 24;
			iVar7 = 5;
			iVar1 = 28;
			break;
		
		case 168:
			StringCopy(&Var2, "TORSO_P2_24_6", 16);
			iVar6 = 24;
			iVar7 = 6;
			iVar1 = 28;
			break;
		
		case 169:
			StringCopy(&Var2, "TORSO_P2_24_7", 16);
			iVar6 = 24;
			iVar7 = 7;
			iVar1 = 25;
			break;
		
		case 170:
			StringCopy(&Var2, "TORSO_P2_24_8", 16);
			iVar6 = 24;
			iVar7 = 8;
			iVar1 = 22;
			break;
		
		case 171:
			StringCopy(&Var2, "TORSO_P2_24_9", 16);
			iVar6 = 24;
			iVar7 = 9;
			iVar1 = 19;
			break;
		
		case 172:
			StringCopy(&Var2, "TORSO_P2_24_10", 16);
			iVar6 = 24;
			iVar7 = 10;
			iVar1 = 22;
			break;
		
		case 173:
			StringCopy(&Var2, "TORSO_P2_24_11", 16);
			iVar6 = 24;
			iVar7 = 11;
			iVar1 = 19;
			break;
		
		case 174:
			StringCopy(&Var2, "TORSO_P2_24_12", 16);
			iVar6 = 24;
			iVar7 = 12;
			iVar1 = 20;
			break;
		
		case 175:
			StringCopy(&Var2, "TORSO_P2_24_13", 16);
			iVar6 = 24;
			iVar7 = 13;
			iVar1 = 25;
			break;
		
		case 176:
			StringCopy(&Var2, "TORSO_P2_24_14", 16);
			iVar6 = 24;
			iVar7 = 14;
			iVar1 = 20;
			break;
		
		case 177:
			StringCopy(&Var2, "TORSO_P2_24_15", 16);
			iVar6 = 24;
			iVar7 = 15;
			iVar1 = 28;
			break;
		
		case 178:
			StringCopy(&Var2, "TORSO_P2_25_0", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar1 = 35;
			break;
		
		case 179:
			StringCopy(&Var2, "TORSO_P2_25_1", 16);
			iVar6 = 25;
			iVar7 = 1;
			iVar1 = 40;
			break;
		
		case 180:
			StringCopy(&Var2, "TORSO_P2_25_2", 16);
			iVar6 = 25;
			iVar7 = 2;
			iVar1 = 45;
			break;
		
		case 181:
			StringCopy(&Var2, "TORSO_P2_25_3", 16);
			iVar6 = 25;
			iVar7 = 3;
			iVar1 = 45;
			break;
		
		case 182:
			StringCopy(&Var2, "TORSO_P2_25_4", 16);
			iVar6 = 25;
			iVar7 = 4;
			iVar1 = 49;
			break;
		
		case 183:
			StringCopy(&Var2, "TORSO_P2_25_5", 16);
			iVar6 = 25;
			iVar7 = 5;
			iVar1 = 820;
			break;
		
		case 184:
			StringCopy(&Var2, "TORSO_P2_25_6", 16);
			iVar6 = 25;
			iVar7 = 6;
			iVar1 = 790;
			break;
		
		case 185:
			StringCopy(&Var2, "TORSO_P2_25_7", 16);
			iVar6 = 25;
			iVar7 = 7;
			iVar1 = 820;
			break;
		
		case 186:
			StringCopy(&Var2, "TORSO_P2_25_8", 16);
			iVar6 = 25;
			iVar7 = 8;
			iVar1 = 929;
			break;
		
		case 187:
			StringCopy(&Var2, "TORSO_P2_25_9", 16);
			iVar6 = 25;
			iVar7 = 9;
			iVar1 = 40;
			break;
		
		case 188:
			StringCopy(&Var2, "TORSO_P2_25_10", 16);
			iVar6 = 25;
			iVar7 = 10;
			iVar1 = 850;
			break;
		
		case 189:
			StringCopy(&Var2, "TORSO_P2_25_11", 16);
			iVar6 = 25;
			iVar7 = 11;
			iVar1 = 790;
			break;
		
		case 190:
			StringCopy(&Var2, "TORSO_P2_26_0", 16);
			iVar6 = 26;
			iVar7 = 0;
			break;
		
		case 191:
			StringCopy(&Var2, "TORSO_P2_26_1", 16);
			iVar6 = 26;
			iVar7 = 1;
			break;
		
		case 192:
			StringCopy(&Var2, "TORSO_P2_26_2", 16);
			iVar6 = 26;
			iVar7 = 2;
			break;
		
		case 193:
			StringCopy(&Var2, "TORSO_P2_26_3", 16);
			iVar6 = 26;
			iVar7 = 3;
			break;
		
		case 194:
			StringCopy(&Var2, "TORSO_P2_26_4", 16);
			iVar6 = 26;
			iVar7 = 4;
			break;
		
		case 195:
			StringCopy(&Var2, "TORSO_P2_26_5", 16);
			iVar6 = 26;
			iVar7 = 5;
			break;
		
		case 196:
			StringCopy(&Var2, "TORSO_P2_26_6", 16);
			iVar6 = 26;
			iVar7 = 6;
			break;
		
		case 197:
			StringCopy(&Var2, "TORSO_P2_26_7", 16);
			iVar6 = 26;
			iVar7 = 7;
			break;
		
		case 198:
			StringCopy(&Var2, "TORSO_P2_26_8", 16);
			iVar6 = 26;
			iVar7 = 8;
			break;
		
		case 199:
			StringCopy(&Var2, "TORSO_P2_26_9", 16);
			iVar6 = 26;
			iVar7 = 9;
			break;
		
		case 200:
			StringCopy(&Var2, "TORSO_P2_27_0", 16);
			iVar6 = 27;
			iVar7 = 0;
			iVar1 = 2200;
			break;
		
		case 201:
			StringCopy(&Var2, "TORSO_P2_27_1", 16);
			iVar6 = 27;
			iVar7 = 1;
			iVar1 = 2500;
			break;
		
		case 202:
			StringCopy(&Var2, "TORSO_P2_27_2", 16);
			iVar6 = 27;
			iVar7 = 2;
			iVar1 = 2500;
			break;
		
		case 203:
			StringCopy(&Var2, "TORSO_P2_27_3", 16);
			iVar6 = 27;
			iVar7 = 3;
			iVar1 = 2200;
			break;
		
		case 204:
			StringCopy(&Var2, "TORSO_P2_27_4", 16);
			iVar6 = 27;
			iVar7 = 4;
			iVar1 = 2500;
			break;
		
		case 205:
			StringCopy(&Var2, "TORSO_P2_27_5", 16);
			iVar6 = 27;
			iVar7 = 5;
			iVar1 = 2500;
			break;
		
		case 206:
			StringCopy(&Var2, "TORSO_P2_27_6", 16);
			iVar6 = 27;
			iVar7 = 6;
			iVar1 = 2200;
			break;
		
		case 207:
			StringCopy(&Var2, "TORSO_P2_28_0", 16);
			iVar6 = 28;
			iVar7 = 0;
			iVar1 = 1100;
			break;
		
		case 208:
			StringCopy(&Var2, "TORSO_P2_28_1", 16);
			iVar6 = 28;
			iVar7 = 1;
			iVar1 = 1200;
			break;
		
		case 209:
			StringCopy(&Var2, "TORSO_P2_28_2", 16);
			iVar6 = 28;
			iVar7 = 2;
			iVar1 = 1220;
			break;
		
		case 210:
			StringCopy(&Var2, "TORSO_P2_28_3", 16);
			iVar6 = 28;
			iVar7 = 3;
			iVar1 = 1250;
			break;
		
		case 211:
			StringCopy(&Var2, "TORSO_P2_28_4", 16);
			iVar6 = 28;
			iVar7 = 4;
			iVar1 = 1300;
			break;
		
		case 212:
			StringCopy(&Var2, "TORSO_P2_28_5", 16);
			iVar6 = 28;
			iVar7 = 5;
			iVar1 = 1360;
			break;
		
		case 213:
			StringCopy(&Var2, "TORSO_P2_28_6", 16);
			iVar6 = 28;
			iVar7 = 6;
			iVar1 = 35;
			break;
		
		case 214:
			StringCopy(&Var2, "TORSO_P2_28_7", 16);
			iVar6 = 28;
			iVar7 = 7;
			iVar1 = 38;
			break;
		
		case 215:
			StringCopy(&Var2, "TORSO_P2_28_8", 16);
			iVar6 = 28;
			iVar7 = 8;
			iVar1 = 40;
			break;
		
		case 216:
			StringCopy(&Var2, "TORSO_P2_28_9", 16);
			iVar6 = 28;
			iVar7 = 9;
			iVar1 = 42;
			break;
		
		case 217:
			StringCopy(&Var2, "TORSO_P2_28_10", 16);
			iVar6 = 28;
			iVar7 = 10;
			iVar1 = 50;
			break;
		
		case 218:
			StringCopy(&Var2, "TORSO_P2_28_11", 16);
			iVar6 = 28;
			iVar7 = 11;
			iVar1 = 45;
			break;
		
		case 219:
			StringCopy(&Var2, "TORSO_P2_28_12", 16);
			iVar6 = 28;
			iVar7 = 12;
			iVar1 = 45;
			break;
		
		case 220:
			StringCopy(&Var2, "TORSO_P2_28_13", 16);
			iVar6 = 28;
			iVar7 = 13;
			iVar1 = 44;
			break;
		
		case 221:
			StringCopy(&Var2, "TORSO_P2_28_14", 16);
			iVar6 = 28;
			iVar7 = 14;
			iVar1 = 46;
			break;
		
		case 222:
			StringCopy(&Var2, "TORSO_P2_28_15", 16);
			iVar6 = 28;
			iVar7 = 15;
			iVar1 = 52;
			break;
		
		case 223:
			StringCopy(&Var2, "TORSO_P2_29_0", 16);
			iVar6 = 29;
			iVar7 = 0;
			iVar1 = 3200;
			break;
		
		case 224:
			StringCopy(&Var2, "TORSO_P2_29_1", 16);
			iVar6 = 29;
			iVar7 = 1;
			iVar1 = 3200;
			break;
		
		case 225:
			StringCopy(&Var2, "TORSO_P2_29_2", 16);
			iVar6 = 29;
			iVar7 = 2;
			iVar1 = 2550;
			break;
		
		case 226:
			StringCopy(&Var2, "TORSO_P2_29_3", 16);
			iVar6 = 29;
			iVar7 = 3;
			iVar1 = 2750;
			break;
		
		case 227:
			StringCopy(&Var2, "TORSO_P2_29_4", 16);
			iVar6 = 29;
			iVar7 = 4;
			iVar1 = 2590;
			break;
		
		case 228:
			StringCopy(&Var2, "TORSO_P2_29_5", 16);
			iVar6 = 29;
			iVar7 = 5;
			iVar1 = 2750;
			break;
		
		case 229:
			StringCopy(&Var2, "TORSO_P2_29_6", 16);
			iVar6 = 29;
			iVar7 = 6;
			iVar1 = 2550;
			break;
		
		case 230:
			StringCopy(&Var2, "TORSO_P2_29_7", 16);
			iVar6 = 29;
			iVar7 = 7;
			iVar1 = 2590;
			break;
		
		case 231:
			StringCopy(&Var2, "TORSO_P2_29_8", 16);
			iVar6 = 29;
			iVar7 = 8;
			iVar1 = 2720;
			break;
		
		case 232:
			StringCopy(&Var2, "TORSO_P2_29_9", 16);
			iVar6 = 29;
			iVar7 = 9;
			iVar1 = 2750;
			break;
		
		case 233:
			StringCopy(&Var2, "TORSO_P2_30_0", 16);
			iVar6 = 30;
			iVar7 = 0;
			iVar1 = 3250;
			break;
		
		case 234:
			StringCopy(&Var2, "TORSO_P2_30_1", 16);
			iVar6 = 30;
			iVar7 = 1;
			iVar1 = 2950;
			break;
		
		case 235:
			StringCopy(&Var2, "TORSO_P2_30_2", 16);
			iVar6 = 30;
			iVar7 = 2;
			iVar1 = 3100;
			break;
		
		case 236:
			StringCopy(&Var2, "TORSO_P2_30_3", 16);
			iVar6 = 30;
			iVar7 = 3;
			iVar1 = 3150;
			break;
		
		case 237:
			StringCopy(&Var2, "TORSO_P2_30_4", 16);
			iVar6 = 30;
			iVar7 = 4;
			iVar1 = 3240;
			break;
		
		case 238:
			StringCopy(&Var2, "TORSO_P2_30_5", 16);
			iVar6 = 30;
			iVar7 = 5;
			iVar1 = 3350;
			break;
		
		case 239:
			StringCopy(&Var2, "TORSO_P2_30_6", 16);
			iVar6 = 30;
			iVar7 = 6;
			iVar1 = 3400;
			break;
		
		case 240:
			StringCopy(&Var2, "TORSO_P2_30_7", 16);
			iVar6 = 30;
			iVar7 = 7;
			iVar1 = 3280;
			break;
		
		case 241:
			StringCopy(&Var2, "TORSO_P2_31_0", 16);
			iVar6 = 31;
			iVar7 = 0;
			break;
		
		default:
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_200(int iParam0)//Position - 0x1CBDD
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "TORSO_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "TORSO_P2_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 25;
			break;
		
		case 2:
			StringCopy(&Var2, "TORSO_P2_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "TORSO_P2_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 15;
			break;
		
		case 4:
			StringCopy(&Var2, "TORSO_P2_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 25;
			break;
		
		case 5:
			StringCopy(&Var2, "TORSO_P2_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 25;
			break;
		
		case 6:
			StringCopy(&Var2, "TORSO_P2_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 22;
			break;
		
		case 7:
			StringCopy(&Var2, "TORSO_P2_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 22;
			break;
		
		case 8:
			StringCopy(&Var2, "TORSO_P2_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 20;
			break;
		
		case 9:
			StringCopy(&Var2, "TORSO_P2_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 20;
			break;
		
		case 10:
			StringCopy(&Var2, "TORSO_P2_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 24;
			break;
		
		case 11:
			StringCopy(&Var2, "TORSO_P2_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 26;
			break;
		
		case 12:
			StringCopy(&Var2, "TORSO_P2_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 28;
			break;
		
		case 13:
			StringCopy(&Var2, "TORSO_P2_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 29;
			break;
		
		case 14:
			StringCopy(&Var2, "TORSO_P2_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 22;
			break;
		
		case 15:
			StringCopy(&Var2, "TORSO_P2_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 20;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "TORSO_P2_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 35;
			break;
		
		case 19:
			StringCopy(&Var2, "TORSO_P2_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 22;
			break;
		
		case 20:
			StringCopy(&Var2, "TORSO_P2_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 25;
			break;
		
		case 21:
			StringCopy(&Var2, "TORSO_P2_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 38;
			break;
		
		case 22:
			StringCopy(&Var2, "TORSO_P2_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 40;
			break;
		
		case 23:
			StringCopy(&Var2, "TORSO_P2_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 40;
			break;
		
		case 24:
			StringCopy(&Var2, "TORSO_P2_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 40;
			break;
		
		case 25:
			StringCopy(&Var2, "TORSO_P2_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 40;
			break;
		
		case 26:
			StringCopy(&Var2, "TORSO_P2_3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 40;
			break;
		
		case 27:
			StringCopy(&Var2, "TORSO_P2_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "TORSO_P2_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 500;
			break;
		
		case 29:
			StringCopy(&Var2, "TORSO_P2_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 560;
			break;
		
		case 30:
			StringCopy(&Var2, "TORSO_P2_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 600;
			break;
		
		case 31:
			StringCopy(&Var2, "TORSO_P2_4_4tu", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 650;
			break;
		
		case 32:
			StringCopy(&Var2, "TORSO_P2_4_5tu", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 500;
			break;
		
		case 33:
			StringCopy(&Var2, "TORSO_P2_4_6tu", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 560;
			break;
		
		case 34:
			StringCopy(&Var2, "TORSO_P2_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 500;
			break;
		
		case 35:
			StringCopy(&Var2, "TORSO_P2_4_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 650;
			break;
		
		case 36:
			StringCopy(&Var2, "TORSO_P2_4_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 540;
			break;
		
		case 37:
			StringCopy(&Var2, "TORSO_P2_4_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 690;
			break;
		
		case 38:
			StringCopy(&Var2, "TORSO_P2_4_11", 16);
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 560;
			break;
		
		case 39:
			StringCopy(&Var2, "TORSO_P2_4_12", 16);
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 590;
			break;
		
		case 40:
			StringCopy(&Var2, "TORSO_P2_4_13", 16);
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 690;
			break;
		
		case 41:
			StringCopy(&Var2, "TORSO_P2_4_14", 16);
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 540;
			break;
		
		case 42:
			StringCopy(&Var2, "TORSO_P2_4_15", 16);
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 500;
			break;
		
		case 43:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 44:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 45:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 47:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 48:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 49:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 50:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 51:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 52:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 53:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 54:
			StringCopy(&Var2, "TORSO_P2_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 55:
			StringCopy(&Var2, "TORSO_P2_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			break;
		
		case 56:
			StringCopy(&Var2, "TORSO_P2_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 25;
			break;
		
		case 57:
			StringCopy(&Var2, "TORSO_P2_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 27;
			break;
		
		case 58:
			StringCopy(&Var2, "TORSO_P2_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 22;
			break;
		
		case 59:
			StringCopy(&Var2, "TORSO_P2_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 350;
			break;
		
		case 60:
			StringCopy(&Var2, "TORSO_P2_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 27;
			break;
		
		case 61:
			StringCopy(&Var2, "TORSO_P2_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 370;
			break;
		
		case 62:
			StringCopy(&Var2, "TORSO_P2_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 25;
			break;
		
		case 63:
			StringCopy(&Var2, "TORSO_P2_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 22;
			break;
		
		case 64:
			StringCopy(&Var2, "TORSO_P2_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 25;
			break;
		
		case 65:
			StringCopy(&Var2, "TORSO_P2_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			break;
		
		case 66:
			StringCopy(&Var2, "TORSO_P2_11_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 22;
			break;
		
		case 67:
			StringCopy(&Var2, "TORSO_P2_11_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 27;
			break;
		
		case 68:
			StringCopy(&Var2, "TORSO_P2_11_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 25;
			break;
		
		case 69:
			StringCopy(&Var2, "TORSO_P2_11_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 27;
			break;
		
		case 70:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 1;
			break;
		
		case 71:
			StringCopy(&Var2, "TORSO_P2_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 72:
			StringCopy(&Var2, "TORSO_P2_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 39;
			break;
		
		case 73:
			StringCopy(&Var2, "TORSO_P2_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 42;
			break;
		
		case 74:
			StringCopy(&Var2, "TORSO_P2_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 49;
			break;
		
		case 75:
			StringCopy(&Var2, "TORSO_P2_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 35;
			break;
		
		case 76:
			StringCopy(&Var2, "TORSO_P2_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 50;
			break;
		
		case 77:
			StringCopy(&Var2, "TORSO_P2_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 50;
			break;
		
		case 78:
			StringCopy(&Var2, "TORSO_P2_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 50;
			break;
		
		case 79:
			StringCopy(&Var2, "TORSO_P2_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 80:
			StringCopy(&Var2, "TORSO_P2_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 88;
			break;
		
		case 81:
			StringCopy(&Var2, "TORSO_P2_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 60;
			break;
		
		case 82:
			StringCopy(&Var2, "TORSO_P2_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 80;
			break;
		
		case 83:
			StringCopy(&Var2, "TORSO_P2_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 70;
			break;
		
		case 84:
			StringCopy(&Var2, "TORSO_P2_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 80;
			break;
		
		case 85:
			StringCopy(&Var2, "TORSO_P2_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 70;
			break;
		
		case 86:
			StringCopy(&Var2, "TORSO_P2_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 90;
			break;
		
		case 87:
			StringCopy(&Var2, "TORSO_P2_14_8", 16);
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 95;
			break;
		
		case 88:
			StringCopy(&Var2, "TORSO_P2_14_9", 16);
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 105;
			break;
		
		case 89:
			StringCopy(&Var2, "TORSO_P2_14_10", 16);
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 95;
			break;
		
		case 90:
			StringCopy(&Var2, "TORSO_P2_14_11", 16);
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 110;
			break;
		
		case 91:
			StringCopy(&Var2, "TORSO_P2_14_12", 16);
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 98;
			break;
		
		case 92:
			StringCopy(&Var2, "TORSO_P2_14_13", 16);
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 88;
			break;
		
		case 93:
			StringCopy(&Var2, "TORSO_P2_14_14", 16);
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 98;
			break;
		
		case 94:
			StringCopy(&Var2, "TORSO_P2_14_15", 16);
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 110;
			break;
		
		case 95:
			StringCopy(&Var2, "TORSO_P2_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 96:
			StringCopy(&Var2, "TORSO_P2_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 97:
			StringCopy(&Var2, "TORSO_P2_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 98:
			StringCopy(&Var2, "TORSO_P2_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			break;
		
		case 99:
			StringCopy(&Var2, "TORSO_P2_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 520;
			break;
		
		case 100:
			StringCopy(&Var2, "TORSO_P2_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 490;
			break;
		
		case 101:
			StringCopy(&Var2, "TORSO_P2_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 450;
			break;
		
		case 102:
			StringCopy(&Var2, "TORSO_P2_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 420;
			break;
		
		case 103:
			StringCopy(&Var2, "TORSO_P2_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 420;
			break;
		
		case 104:
			StringCopy(&Var2, "TORSO_P2_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 85;
			break;
		
		case 105:
			StringCopy(&Var2, "TORSO_P2_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 85;
			break;
		
		case 106:
			StringCopy(&Var2, "TORSO_P2_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 75;
			break;
		
		case 107:
			StringCopy(&Var2, "TORSO_P2_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 68;
			break;
		
		case 108:
			StringCopy(&Var2, "TORSO_P2_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 68;
			break;
		
		case 109:
			StringCopy(&Var2, "TORSO_P2_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 78;
			break;
		
		case 110:
			StringCopy(&Var2, "TORSO_P2_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 85;
			break;
		
		case 111:
			StringCopy(&Var2, "TORSO_P2_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 68;
			break;
		
		case 112:
			StringCopy(&Var2, "TORSO_P2_19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 75;
			break;
		
		case 113:
			StringCopy(&Var2, "TORSO_P2_19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 75;
			break;
		
		case 114:
			StringCopy(&Var2, "TORSO_P2_19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 78;
			break;
		
		case 115:
			StringCopy(&Var2, "TORSO_P2_19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 75;
			break;
		
		case 116:
			StringCopy(&Var2, "TORSO_P2_19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 75;
			break;
		
		case 117:
			StringCopy(&Var2, "TORSO_P2_19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 75;
			break;
		
		case 118:
			StringCopy(&Var2, "TORSO_P2_19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 78;
			break;
		
		case 119:
			StringCopy(&Var2, "TORSO_P2_19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 78;
			break;
		
		case 120:
			StringCopy(&Var2, "TORSO_P2_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 40;
			break;
		
		case 121:
			StringCopy(&Var2, "TORSO_P2_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 32;
			break;
		
		case 122:
			StringCopy(&Var2, "TORSO_P2_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 32;
			break;
		
		case 123:
			StringCopy(&Var2, "TORSO_P2_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 32;
			break;
		
		case 124:
			StringCopy(&Var2, "TORSO_P2_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			break;
		
		case 125:
			StringCopy(&Var2, "TORSO_P2_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 38;
			break;
		
		case 126:
			StringCopy(&Var2, "TORSO_P2_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 35;
			break;
		
		case 127:
			StringCopy(&Var2, "TORSO_P2_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 38;
			break;
		
		case 128:
			StringCopy(&Var2, "TORSO_P2_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 29;
			break;
		
		case 129:
			StringCopy(&Var2, "TORSO_P2_20_9", 16);
			iVar6 = 20;
			iVar7 = 9;
			iVar1 = 32;
			break;
		
		case 130:
			StringCopy(&Var2, "TORSO_P2_20_10", 16);
			iVar6 = 20;
			iVar7 = 10;
			iVar1 = 29;
			break;
		
		case 131:
			StringCopy(&Var2, "TORSO_P2_20_11", 16);
			iVar6 = 20;
			iVar7 = 11;
			iVar1 = 35;
			break;
		
		case 132:
			StringCopy(&Var2, "TORSO_P2_20_12", 16);
			iVar6 = 20;
			iVar7 = 12;
			iVar1 = 32;
			break;
		
		case 133:
			StringCopy(&Var2, "TORSO_P2_20_13", 16);
			iVar6 = 20;
			iVar7 = 13;
			iVar1 = 35;
			break;
		
		case 134:
			StringCopy(&Var2, "TORSO_P2_20_14", 16);
			iVar6 = 20;
			iVar7 = 14;
			iVar1 = 32;
			break;
		
		case 135:
			StringCopy(&Var2, "TORSO_P2_20_15", 16);
			iVar6 = 20;
			iVar7 = 15;
			iVar1 = 40;
			break;
		
		default:
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_201(int iParam0)//Position - 0x1DAEB
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 2;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "HAIR_P2_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "HAIR_P2_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "HAIR_P2_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "HAIR_P2_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "HAIR_P2_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "HAIR_P2_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "HAIR_P2_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "HAIR_P2_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "HAIR_P2_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 9);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_202(int iParam0)//Position - 0x1DC17
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 0;
	Global_69438[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 6;
			break;
		
		default:
			func_186(iVar10, iParam0, 7);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_203(int iParam0, int iParam1)//Position - 0x1DD14
{
	switch (iParam0)
	{
		case 0:
			func_221(iParam1);
			break;
		
		case 2:
			func_220(iParam1);
			break;
		
		case 3:
			func_216(iParam1);
			break;
		
		case 4:
			func_215(iParam1);
			break;
		
		case 6:
			func_214(iParam1);
			break;
		
		case 5:
			func_213(iParam1);
			break;
		
		case 8:
			func_212(iParam1);
			break;
		
		case 9:
			func_211(iParam1);
			break;
		
		case 10:
			func_210(iParam1);
			break;
		
		case 1:
			func_209(iParam1);
			break;
		
		case 7:
			func_208(iParam1);
			break;
		
		case 11:
			func_207(iParam1);
			break;
		
		case 12:
			func_206(iParam1);
			break;
		
		case 13:
			func_205(iParam1);
			break;
		
		case 14:
			func_204(iParam1);
			break;
	}
}

void func_204(int iParam0)//Position - 0x1DE04
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 14;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 8;
			break;
		
		case 158:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 2;
			break;
		
		case 159:
			StringCopy(&Var2, "PROPS_P1_EA1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 4590;
			iVar8 = 2;
			break;
		
		case 160:
			StringCopy(&Var2, "PROPS_P1_EA1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 4100;
			iVar8 = 2;
			break;
		
		case 161:
			StringCopy(&Var2, "PROPS_P1_EA1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 3850;
			iVar8 = 2;
			break;
		
		case 162:
			StringCopy(&Var2, "PROPS_P1_EA1_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 1850;
			iVar8 = 2;
			break;
		
		case 163:
			StringCopy(&Var2, "PROPS_P1_EA1_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 5250;
			iVar8 = 2;
			break;
		
		case 164:
			StringCopy(&Var2, "PROPS_P1_EA1_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 2700;
			iVar8 = 2;
			break;
		
		case 165:
			StringCopy(&Var2, "PROPS_P1_EA1_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 3100;
			iVar8 = 2;
			break;
		
		case 166:
			StringCopy(&Var2, "PROPS_P1_EA1_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 5050;
			iVar8 = 2;
			break;
		
		case 167:
			StringCopy(&Var2, "PROPS_P1_EA2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 2500;
			iVar8 = 2;
			break;
		
		case 168:
			StringCopy(&Var2, "PROPS_P1_EA2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 1950;
			iVar8 = 2;
			break;
		
		case 169:
			StringCopy(&Var2, "PROPS_P1_EA2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 3900;
			iVar8 = 2;
			break;
		
		case 170:
			StringCopy(&Var2, "PROPS_P1_EA2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 3550;
			iVar8 = 2;
			break;
		
		case 171:
			StringCopy(&Var2, "PROPS_P1_EA2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 4500;
			iVar8 = 2;
			break;
		
		case 172:
			StringCopy(&Var2, "PROPS_P1_EA2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 2700;
			iVar8 = 2;
			break;
		
		case 173:
			StringCopy(&Var2, "PROPS_P1_EA2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 3100;
			iVar8 = 2;
			break;
		
		case 174:
			StringCopy(&Var2, "PROPS_P1_EA2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 2950;
			iVar8 = 2;
			break;
		
		case 82:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 10;
			break;
		
		case 83:
			StringCopy(&Var2, "PROPS_P1_E1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 84:
			StringCopy(&Var2, "PROPS_P1_E1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 85:
			StringCopy(&Var2, "PROPS_P1_E1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 86:
			StringCopy(&Var2, "PROPS_P1_E1_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 87:
			StringCopy(&Var2, "PROPS_P1_E1_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 88:
			StringCopy(&Var2, "PROPS_P1_E1_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 89:
			StringCopy(&Var2, "PROPS_P1_E1_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 90:
			StringCopy(&Var2, "PROPS_P1_E1_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 91:
			StringCopy(&Var2, "PROPS_P1_E1_8", 16);
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 92:
			StringCopy(&Var2, "PROPS_P1_E1_9", 16);
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 75;
			iVar8 = 10;
			break;
		
		case 93:
			StringCopy(&Var2, "PROPS_P1_E2", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 94:
			StringCopy(&Var2, "PROPS_P1_E3", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 110;
			iVar8 = 10;
			break;
		
		case 95:
			StringCopy(&Var2, "PROPS_P1_E4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 120;
			iVar8 = 10;
			break;
		
		case 96:
			StringCopy(&Var2, "PROPS_P1_E4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 128;
			iVar8 = 10;
			break;
		
		case 97:
			StringCopy(&Var2, "PROPS_P1_E4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 130;
			iVar8 = 10;
			break;
		
		case 98:
			StringCopy(&Var2, "PROPS_P1_E4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 140;
			iVar8 = 10;
			break;
		
		case 99:
			StringCopy(&Var2, "PROPS_P1_E4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 145;
			iVar8 = 10;
			break;
		
		case 100:
			StringCopy(&Var2, "PROPS_P1_E4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 135;
			iVar8 = 10;
			break;
		
		case 101:
			StringCopy(&Var2, "PROPS_P1_E4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 138;
			iVar8 = 10;
			break;
		
		case 102:
			StringCopy(&Var2, "PROPS_P1_E5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 110;
			iVar8 = 10;
			break;
		
		case 103:
			StringCopy(&Var2, "PROPS_P1_E5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 112;
			iVar8 = 10;
			break;
		
		case 104:
			StringCopy(&Var2, "PROPS_P1_E5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 115;
			iVar8 = 10;
			break;
		
		case 105:
			StringCopy(&Var2, "PROPS_P1_E5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 118;
			iVar8 = 10;
			break;
		
		case 106:
			StringCopy(&Var2, "PROPS_P1_E5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 120;
			iVar8 = 10;
			break;
		
		case 107:
			StringCopy(&Var2, "PROPS_P1_E5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 125;
			iVar8 = 10;
			break;
		
		case 108:
			StringCopy(&Var2, "PROPS_P1_E5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 128;
			iVar8 = 10;
			break;
		
		case 109:
			StringCopy(&Var2, "PROPS_P1_E5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 138;
			iVar8 = 10;
			break;
		
		case 110:
			StringCopy(&Var2, "PROPS_P1_E5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 140;
			iVar8 = 10;
			break;
		
		case 111:
			StringCopy(&Var2, "PROPS_P1_E5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 155;
			iVar8 = 10;
			break;
		
		case 112:
			StringCopy(&Var2, "PROPS_P1_E6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 113:
			StringCopy(&Var2, "PROPS_P1_E6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 114:
			StringCopy(&Var2, "PROPS_P1_E6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 115:
			StringCopy(&Var2, "PROPS_P1_E6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 116:
			StringCopy(&Var2, "PROPS_P1_E6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 60;
			iVar8 = 10;
			break;
		
		case 117:
			StringCopy(&Var2, "PROPS_P1_E6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 62;
			iVar8 = 10;
			break;
		
		case 118:
			StringCopy(&Var2, "PROPS_P1_E6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 119:
			StringCopy(&Var2, "PROPS_P1_E6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 68;
			iVar8 = 10;
			break;
		
		case 120:
			StringCopy(&Var2, "PROPS_P1_E6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 68;
			iVar8 = 10;
			break;
		
		case 121:
			StringCopy(&Var2, "PROPS_P1_E6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 72;
			iVar8 = 10;
			break;
		
		case 122:
			StringCopy(&Var2, "PROPS_P1_E7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 145;
			iVar8 = 10;
			break;
		
		case 123:
			StringCopy(&Var2, "PROPS_P1_E7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 149;
			iVar8 = 10;
			break;
		
		case 124:
			StringCopy(&Var2, "PROPS_P1_E7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 139;
			iVar8 = 10;
			break;
		
		case 125:
			StringCopy(&Var2, "PROPS_P1_E7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 149;
			iVar8 = 10;
			break;
		
		case 126:
			StringCopy(&Var2, "PROPS_P1_E7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 135;
			iVar8 = 10;
			break;
		
		case 127:
			StringCopy(&Var2, "PROPS_P1_E7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 138;
			iVar8 = 10;
			break;
		
		case 128:
			StringCopy(&Var2, "PROPS_P1_E7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 10;
			break;
		
		case 129:
			StringCopy(&Var2, "PROPS_P1_E7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 145;
			iVar8 = 10;
			break;
		
		case 130:
			StringCopy(&Var2, "PROPS_P1_E7_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 159;
			iVar8 = 10;
			break;
		
		case 131:
			StringCopy(&Var2, "PROPS_P1_E7_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 155;
			iVar8 = 10;
			break;
		
		case 132:
			StringCopy(&Var2, "PROPS_P1_E8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 198;
			iVar8 = 10;
			break;
		
		case 133:
			StringCopy(&Var2, "PROPS_P1_E8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 210;
			iVar8 = 10;
			break;
		
		case 134:
			StringCopy(&Var2, "PROPS_P1_E8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 185;
			iVar8 = 10;
			break;
		
		case 135:
			StringCopy(&Var2, "PROPS_P1_E8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 220;
			iVar8 = 10;
			break;
		
		case 136:
			StringCopy(&Var2, "PROPS_P1_E8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 190;
			iVar8 = 10;
			break;
		
		case 137:
			StringCopy(&Var2, "PROPS_P1_E8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 200;
			iVar8 = 10;
			break;
		
		case 138:
			StringCopy(&Var2, "PROPS_P1_E8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 208;
			iVar8 = 10;
			break;
		
		case 139:
			StringCopy(&Var2, "PROPS_P1_E8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 210;
			iVar8 = 10;
			break;
		
		case 140:
			StringCopy(&Var2, "PROPS_P1_E9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 165;
			iVar8 = 10;
			break;
		
		case 141:
			StringCopy(&Var2, "PROPS_P1_E9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 185;
			iVar8 = 10;
			break;
		
		case 142:
			StringCopy(&Var2, "PROPS_P1_E9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 190;
			iVar8 = 10;
			break;
		
		case 143:
			StringCopy(&Var2, "PROPS_P1_E9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 178;
			iVar8 = 10;
			break;
		
		case 144:
			StringCopy(&Var2, "PROPS_P1_E9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 180;
			iVar8 = 10;
			break;
		
		case 145:
			StringCopy(&Var2, "PROPS_P1_E9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 168;
			iVar8 = 10;
			break;
		
		case 146:
			StringCopy(&Var2, "PROPS_P1_E9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 170;
			iVar8 = 10;
			break;
		
		case 147:
			StringCopy(&Var2, "PROPS_P1_E9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 148:
			StringCopy(&Var2, "PROPS_P1_E9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 170;
			iVar8 = 10;
			break;
		
		case 149:
			StringCopy(&Var2, "PROPS_P1_E9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 178;
			iVar8 = 10;
			break;
		
		case 150:
			StringCopy(&Var2, "PROPS_P1_E10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 140;
			iVar8 = 10;
			break;
		
		case 151:
			StringCopy(&Var2, "PROPS_P1_E10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 145;
			iVar8 = 10;
			break;
		
		case 152:
			StringCopy(&Var2, "PROPS_P1_E10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 150;
			iVar8 = 10;
			break;
		
		case 153:
			StringCopy(&Var2, "PROPS_P1_E10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 165;
			iVar8 = 10;
			break;
		
		case 154:
			StringCopy(&Var2, "PROPS_P1_E10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 168;
			iVar8 = 10;
			break;
		
		case 155:
			StringCopy(&Var2, "PROPS_P1_E10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 178;
			iVar8 = 10;
			break;
		
		case 156:
			StringCopy(&Var2, "PROPS_P1_E10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 160;
			iVar8 = 10;
			break;
		
		case 157:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 100;
			iVar8 = 10;
			break;
		
		case 10:
			StringCopy(&Var2, "PROPS_P1_H0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 320;
			iVar8 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "PROPS_P1_H3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar8 = 0;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar8 = 0;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 8;
			iVar8 = 0;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 26:
			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 27:
			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 30:
			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 31:
			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 32:
			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 450;
			iVar8 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 35:
			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 36:
			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 37:
			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 38:
			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 39:
			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 40:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 41:
			StringCopy(&Var2, "PROPS_P1_H19_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "PROPS_P1_H19_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "PROPS_P1_H19_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "PROPS_P1_H19_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "PROPS_P1_H19_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "PROPS_P1_H19_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 47:
			StringCopy(&Var2, "PROPS_P1_H19_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar8 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "PROPS_P1_H19_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar8 = 0;
			break;
		
		case 49:
			StringCopy(&Var2, "PROPS_P1_H19_8", 16);
			iVar6 = 16;
			iVar7 = 8;
			iVar8 = 0;
			break;
		
		case 50:
			StringCopy(&Var2, "PROPS_P1_H19_9", 16);
			iVar6 = 16;
			iVar7 = 9;
			iVar8 = 0;
			break;
		
		case 51:
			StringCopy(&Var2, "PROPS_P1_H19_10", 16);
			iVar6 = 16;
			iVar7 = 10;
			iVar8 = 0;
			break;
		
		case 52:
			StringCopy(&Var2, "PROPS_P1_H19_11", 16);
			iVar6 = 16;
			iVar7 = 11;
			iVar8 = 0;
			break;
		
		case 53:
			StringCopy(&Var2, "PROPS_P1_H19_12", 16);
			iVar6 = 16;
			iVar7 = 12;
			iVar8 = 0;
			break;
		
		case 54:
			StringCopy(&Var2, "PROPS_P1_H19_13", 16);
			iVar6 = 16;
			iVar7 = 13;
			iVar8 = 0;
			break;
		
		case 55:
			StringCopy(&Var2, "PROPS_P1_H19_14", 16);
			iVar6 = 16;
			iVar7 = 14;
			iVar8 = 0;
			break;
		
		case 56:
			StringCopy(&Var2, "PROPS_P1_H19_15", 16);
			iVar6 = 16;
			iVar7 = 15;
			iVar8 = 0;
			break;
		
		case 57:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 58:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 59:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 60:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 61:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 62:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 63:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 64:
			StringCopy(&Var2, "PROPS_P1_H19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 30;
			iVar8 = 0;
			break;
		
		case 65:
			StringCopy(&Var2, "PROPS_P1_H19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 30;
			iVar8 = 0;
			break;
		
		case 66:
			StringCopy(&Var2, "PROPS_P1_H19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 32;
			iVar8 = 0;
			break;
		
		case 67:
			StringCopy(&Var2, "PROPS_P1_H19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 35;
			iVar8 = 0;
			break;
		
		case 68:
			StringCopy(&Var2, "PROPS_P1_H19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 38;
			iVar8 = 0;
			break;
		
		case 69:
			StringCopy(&Var2, "PROPS_P1_H19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 42;
			iVar8 = 0;
			break;
		
		case 70:
			StringCopy(&Var2, "PROPS_P1_H19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 42;
			iVar8 = 0;
			break;
		
		case 71:
			StringCopy(&Var2, "PROPS_P1_H19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 40;
			iVar8 = 0;
			break;
		
		case 72:
			StringCopy(&Var2, "PROPS_P1_H19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 45;
			iVar8 = 0;
			break;
		
		case 73:
			StringCopy(&Var2, "PROPS_P1_H19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 48;
			iVar8 = 0;
			break;
		
		case 74:
			StringCopy(&Var2, "PROPS_P1_H19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 75:
			StringCopy(&Var2, "PROPS_P1_H19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 25;
			iVar8 = 0;
			break;
		
		case 76:
			StringCopy(&Var2, "PROPS_P1_H19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 28;
			iVar8 = 0;
			break;
		
		case 77:
			StringCopy(&Var2, "PROPS_P1_H19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 28;
			iVar8 = 0;
			break;
		
		case 78:
			StringCopy(&Var2, "PROPS_P1_H19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 30;
			iVar8 = 0;
			break;
		
		case 79:
			StringCopy(&Var2, "PROPS_P1_H19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 35;
			iVar8 = 0;
			break;
		
		case 80:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 81:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 175);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_205(int iParam0)//Position - 0x1F2F4
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 13;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 9);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_206(int iParam0)//Position - 0x1F444
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 12;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "OUTFIT_P1_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			StringCopy(&Var2, "OUTFIT_P1_2", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "OUTFIT_P1_4", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "OUTFIT_P1_7", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "OUTFIT_P1_10", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "OUTFIT_P1_11", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "OUTFIT_P1_12", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "OUTFIT_P1_13", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 9:
			StringCopy(&Var2, "OUTFIT_P1_15", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "OUTFIT_P1_16", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "OUTFIT_P1_17", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 12:
			StringCopy(&Var2, "OUTFIT_P1_18", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "OUTFIT_P1_19", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 14:
			StringCopy(&Var2, "OUTFIT_P1_20", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 15:
			StringCopy(&Var2, "OUTFIT_P1_21", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 16:
			StringCopy(&Var2, "OUTFIT_P1_22", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "OUTFIT_P1_23", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "OUTFIT_P1_24", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "OUTFIT_P1_25", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "OUTFIT_P1_26", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "OUTFIT_P1_27", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "OUTFIT_P1_28", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4000;
			break;
		
		case 23:
			StringCopy(&Var2, "OUTFIT_P1_29", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4500;
			break;
		
		case 24:
			StringCopy(&Var2, "OUTFIT_P1_30", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4500;
			break;
		
		case 25:
			StringCopy(&Var2, "OUTFIT_P1_31", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4650;
			break;
		
		case 26:
			StringCopy(&Var2, "OUTFIT_P1_32", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4900;
			break;
		
		case 27:
			StringCopy(&Var2, "OUTFIT_P1_33", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 28:
			StringCopy(&Var2, "OUTFIT_P1_34", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4750;
			break;
		
		case 29:
			StringCopy(&Var2, "OUTFIT_P1_35", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4750;
			break;
		
		case 30:
			StringCopy(&Var2, "OUTFIT_P1_36", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5200;
			break;
		
		case 31:
			StringCopy(&Var2, "OUTFIT_P1_37", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5200;
			break;
		
		case 32:
			StringCopy(&Var2, "OUTFIT_P1_38", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5500;
			break;
		
		case 33:
			StringCopy(&Var2, "OUTFIT_P1_39", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 34:
			StringCopy(&Var2, "OUTFIT_P1_40", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 35:
			StringCopy(&Var2, "OUTFIT_P1_41", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 36:
			StringCopy(&Var2, "OUTFIT_P1_42", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 37:
			StringCopy(&Var2, "OUTFIT_P1_43", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 38:
			StringCopy(&Var2, "OUTFIT_P1_47", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 3000;
			break;
		
		case 39:
			StringCopy(&Var2, "OUTFIT_P1_48", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 3000;
			break;
		
		case 40:
			StringCopy(&Var2, "OUTFIT_P1_49", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 3000;
			break;
		
		case 41:
			StringCopy(&Var2, "OUTFIT_P1_10", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "OUTFIT_P1_50", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "OUTFIT_P1_51", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "OUTFIT_P1_52", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "OUTFIT_P1_53", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "OUTFIT_P1_54", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 47);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_207(int iParam0)//Position - 0x1F94E
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 11;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 1;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 2;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 3;
			break;
		
		case 5:
			StringCopy(&Var2, "JBIB_P1_1_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "JBIB_P1_1_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			break;
		
		case 7:
			StringCopy(&Var2, "JBIB_P1_1_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			break;
		
		case 8:
			StringCopy(&Var2, "JBIB_P1_1_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			break;
		
		case 9:
			StringCopy(&Var2, "JBIB_P1_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "JBIB_P1_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			break;
		
		case 11:
			StringCopy(&Var2, "JBIB_P1_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			break;
		
		case 12:
			StringCopy(&Var2, "JBIB_P1_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			break;
		
		case 13:
			StringCopy(&Var2, "JBIB_P1_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			break;
		
		case 14:
			StringCopy(&Var2, "JBIB_P1_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			break;
		
		case 15:
			StringCopy(&Var2, "JBIB_P1_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			break;
		
		case 16:
			StringCopy(&Var2, "JBIB_P1_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			break;
		
		case 17:
			StringCopy(&Var2, "JBIB_P1_3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			break;
		
		case 18:
			StringCopy(&Var2, "JBIB_P1_3_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			break;
		
		case 19:
			StringCopy(&Var2, "JBIB_P1_3_10", 16);
			iVar6 = 3;
			iVar7 = 10;
			break;
		
		case 20:
			StringCopy(&Var2, "JBIB_P1_3_11", 16);
			iVar6 = 3;
			iVar7 = 11;
			break;
		
		case 21:
			StringCopy(&Var2, "JBIB_P1_3_12", 16);
			iVar6 = 3;
			iVar7 = 12;
			break;
		
		case 22:
			StringCopy(&Var2, "JBIB_P1_3_13", 16);
			iVar6 = 3;
			iVar7 = 13;
			break;
		
		case 23:
			StringCopy(&Var2, "JBIB_P1_3_14", 16);
			iVar6 = 3;
			iVar7 = 14;
			break;
		
		case 24:
			StringCopy(&Var2, "JBIB_P1_3_15", 16);
			iVar6 = 3;
			iVar7 = 15;
			break;
		
		case 25:
			StringCopy(&Var2, "JBIB_P1_3_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 26:
			StringCopy(&Var2, "JBIB_P1_3_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			break;
		
		case 27:
			StringCopy(&Var2, "JBIB_P1_3_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			break;
		
		case 28:
			StringCopy(&Var2, "JBIB_P1_3_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			break;
		
		case 29:
			StringCopy(&Var2, "JBIB_P1_3_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			break;
		
		case 30:
			StringCopy(&Var2, "JBIB_P1_3_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			break;
		
		case 31:
			StringCopy(&Var2, "JBIB_P1_3_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			break;
		
		case 32:
			StringCopy(&Var2, "JBIB_P1_3_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			break;
		
		case 33:
			StringCopy(&Var2, "JBIB_P1_3_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			break;
		
		case 34:
			StringCopy(&Var2, "JBIB_P1_3_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			break;
		
		case 35:
			StringCopy(&Var2, "JBIB_P1_3_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			break;
		
		case 36:
			StringCopy(&Var2, "JBIB_P1_3_11", 16);
			iVar6 = 4;
			iVar7 = 11;
			break;
		
		case 37:
			StringCopy(&Var2, "JBIB_P1_3_12", 16);
			iVar6 = 4;
			iVar7 = 12;
			break;
		
		case 38:
			StringCopy(&Var2, "JBIB_P1_3_13", 16);
			iVar6 = 4;
			iVar7 = 13;
			break;
		
		case 39:
			StringCopy(&Var2, "JBIB_P1_3_14", 16);
			iVar6 = 4;
			iVar7 = 14;
			break;
		
		case 40:
			StringCopy(&Var2, "JBIB_P1_3_15", 16);
			iVar6 = 4;
			iVar7 = 15;
			break;
		
		case 41:
			StringCopy(&Var2, "JBIB_P1_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "JBIB_P1_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "JBIB_P1_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			break;
		
		case 44:
			StringCopy(&Var2, "JBIB_P1_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "JBIB_P1_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "JBIB_P1_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 47:
			StringCopy(&Var2, "JBIB_P1_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "JBIB_P1_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 48;
			break;
		
		case 49:
			StringCopy(&Var2, "JBIB_P1_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 35;
			break;
		
		case 50:
			StringCopy(&Var2, "JBIB_P1_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 32;
			break;
		
		case 51:
			StringCopy(&Var2, "JBIB_P1_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 35;
			break;
		
		case 52:
			StringCopy(&Var2, "JBIB_P1_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 48;
			break;
		
		case 53:
			StringCopy(&Var2, "JBIB_P1_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 52;
			break;
		
		case 54:
			StringCopy(&Var2, "JBIB_P1_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 38;
			break;
		
		case 55:
			StringCopy(&Var2, "JBIB_P1_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 42;
			break;
		
		case 56:
			StringCopy(&Var2, "JBIB_P1_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 38;
			break;
		
		case 57:
			StringCopy(&Var2, "JBIB_P1_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 35;
			break;
		
		case 58:
			StringCopy(&Var2, "JBIB_P1_10_11", 16);
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 48;
			break;
		
		case 59:
			StringCopy(&Var2, "JBIB_P1_10_12", 16);
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 42;
			break;
		
		case 60:
			StringCopy(&Var2, "JBIB_P1_10_13", 16);
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 45;
			break;
		
		case 61:
			StringCopy(&Var2, "JBIB_P1_10_14", 16);
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 62:
			StringCopy(&Var2, "JBIB_P1_10_15", 16);
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 49;
			break;
		
		default:
			func_186(iVar10, iParam0, 63);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_208(int iParam0)//Position - 0x1FFBB
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 7;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 1);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_209(int iParam0)//Position - 0x20030
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 1;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "BERD_P1_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "BERD_P1_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "BERD_P1_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "BERD_P1_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "BERD_P1_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 5);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_210(int iParam0)//Position - 0x200FF
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 10;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 1;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 2;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 3;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 4;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 5;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 1;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 2;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 3;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 4;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 5;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 6;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 1;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 2;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 3;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 4;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 5;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 6;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 7;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 8;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 9;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 10;
			break;
		
		case 27:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 11;
			break;
		
		case 28:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 12;
			break;
		
		case 29:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 13;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 14;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 15;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 1;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 2;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 3;
			break;
		
		case 36:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 4;
			break;
		
		case 37:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 5;
			break;
		
		case 38:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 6;
			break;
		
		case 39:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 40:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 1;
			break;
		
		case 41:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 2;
			break;
		
		case 42:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 3;
			break;
		
		case 43:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 4;
			break;
		
		case 44:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 5;
			break;
		
		case 45:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 6;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 7;
			break;
		
		case 47:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 1;
			break;
		
		case 49:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 2;
			break;
		
		case 50:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 3;
			break;
		
		case 51:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 52:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 53);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_211(int iParam0)//Position - 0x2062E
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 9;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 125;
			break;
		
		case 6:
			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 150;
			break;
		
		case 7:
			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 175;
			break;
		
		case 8:
			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 85;
			break;
		
		case 9:
			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 10:
			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 175;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 12);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_212(int iParam0)//Position - 0x207C4
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 8;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "SPEC_P1_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "SPEC_P1_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 195;
			break;
		
		case 12:
			StringCopy(&Var2, "SPEC_P1_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 195;
			break;
		
		case 13:
			StringCopy(&Var2, "SPEC_P1_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 195;
			break;
		
		case 14:
			StringCopy(&Var2, "SPEC_P1_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 250;
			break;
		
		case 15:
			StringCopy(&Var2, "SPEC_P1_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 250;
			break;
		
		case 16:
			StringCopy(&Var2, "SPEC_P1_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 250;
			break;
		
		case 17:
			StringCopy(&Var2, "SPEC_P1_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 195;
			break;
		
		case 18:
			StringCopy(&Var2, "SPEC_P1_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 250;
			break;
		
		case 19:
			StringCopy(&Var2, "SPEC_P1_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 250;
			break;
		
		case 20:
			StringCopy(&Var2, "SPEC_P1_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 250;
			break;
		
		case 21:
			StringCopy(&Var2, "SPEC_P1_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 250;
			break;
		
		case 22:
			StringCopy(&Var2, "SPEC_P1_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 195;
			break;
		
		case 23:
			StringCopy(&Var2, "SPEC_P1_11_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 250;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 27:
			StringCopy(&Var2, "SPEC_P1_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "SPEC_P1_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			break;
		
		case 29:
			StringCopy(&Var2, "SPEC_P1_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			break;
		
		case 30:
			StringCopy(&Var2, "SPEC_P1_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			break;
		
		case 31:
			StringCopy(&Var2, "SPEC_P1_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			break;
		
		case 32:
			StringCopy(&Var2, "SPEC_P1_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			break;
		
		case 33:
			StringCopy(&Var2, "SPEC_P1_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			break;
		
		case 34:
			StringCopy(&Var2, "SPEC_P1_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			break;
		
		case 35:
			StringCopy(&Var2, "SPEC_P1_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			break;
		
		case 36:
			StringCopy(&Var2, "SPEC_P1_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			break;
		
		case 37:
			StringCopy(&Var2, "SPEC_P1_15_10", 16);
			iVar6 = 15;
			iVar7 = 10;
			break;
		
		case 38:
			StringCopy(&Var2, "SPEC_P1_15_11", 16);
			iVar6 = 15;
			iVar7 = 11;
			break;
		
		case 39:
			StringCopy(&Var2, "SPEC_P1_15_12", 16);
			iVar6 = 15;
			iVar7 = 12;
			break;
		
		case 40:
			StringCopy(&Var2, "SPEC_P1_15_13", 16);
			iVar6 = 15;
			iVar7 = 13;
			break;
		
		case 41:
			StringCopy(&Var2, "SPEC_P1_15_14", 16);
			iVar6 = 15;
			iVar7 = 14;
			break;
		
		case 42:
			StringCopy(&Var2, "SPEC_P1_15_15", 16);
			iVar6 = 15;
			iVar7 = 15;
			break;
		
		case 43:
			StringCopy(&Var2, "SPEC_P1_15_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "SPEC_P1_15_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			break;
		
		case 45:
			StringCopy(&Var2, "SPEC_P1_15_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			break;
		
		case 46:
			StringCopy(&Var2, "SPEC_P1_15_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			break;
		
		case 47:
			StringCopy(&Var2, "SPEC_P1_15_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			break;
		
		case 48:
			StringCopy(&Var2, "SPEC_P1_15_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			break;
		
		case 49:
			StringCopy(&Var2, "SPEC_P1_15_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			break;
		
		case 50:
			StringCopy(&Var2, "SPEC_P1_15_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			break;
		
		case 51:
			StringCopy(&Var2, "SPEC_P1_15_8", 16);
			iVar6 = 16;
			iVar7 = 8;
			break;
		
		case 52:
			StringCopy(&Var2, "SPEC_P1_15_9", 16);
			iVar6 = 16;
			iVar7 = 9;
			break;
		
		case 53:
			StringCopy(&Var2, "SPEC_P1_15_10", 16);
			iVar6 = 16;
			iVar7 = 10;
			break;
		
		case 54:
			StringCopy(&Var2, "SPEC_P1_15_11", 16);
			iVar6 = 16;
			iVar7 = 11;
			break;
		
		case 55:
			StringCopy(&Var2, "SPEC_P1_15_12", 16);
			iVar6 = 16;
			iVar7 = 12;
			break;
		
		case 56:
			StringCopy(&Var2, "SPEC_P1_15_13", 16);
			iVar6 = 16;
			iVar7 = 13;
			break;
		
		case 57:
			StringCopy(&Var2, "SPEC_P1_15_14", 16);
			iVar6 = 16;
			iVar7 = 14;
			break;
		
		case 58:
			StringCopy(&Var2, "SPEC_P1_15_15", 16);
			iVar6 = 16;
			iVar7 = 15;
			break;
		
		case 59:
			StringCopy(&Var2, "SPEC_P1_15_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			break;
		
		case 60:
			StringCopy(&Var2, "SPEC_P1_15_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			break;
		
		case 61:
			StringCopy(&Var2, "SPEC_P1_15_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			break;
		
		case 62:
			StringCopy(&Var2, "SPEC_P1_15_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			break;
		
		case 63:
			StringCopy(&Var2, "SPEC_P1_15_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			break;
		
		case 64:
			StringCopy(&Var2, "SPEC_P1_15_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			break;
		
		case 65:
			StringCopy(&Var2, "SPEC_P1_15_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			break;
		
		case 66:
			StringCopy(&Var2, "SPEC_P1_15_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			break;
		
		case 67:
			StringCopy(&Var2, "SPEC_P1_15_8", 16);
			iVar6 = 17;
			iVar7 = 8;
			break;
		
		case 68:
			StringCopy(&Var2, "SPEC_P1_15_9", 16);
			iVar6 = 17;
			iVar7 = 9;
			break;
		
		case 69:
			StringCopy(&Var2, "SPEC_P1_15_10", 16);
			iVar6 = 17;
			iVar7 = 10;
			break;
		
		case 70:
			StringCopy(&Var2, "SPEC_P1_15_11", 16);
			iVar6 = 17;
			iVar7 = 11;
			break;
		
		case 71:
			StringCopy(&Var2, "SPEC_P1_15_12", 16);
			iVar6 = 17;
			iVar7 = 12;
			break;
		
		case 72:
			StringCopy(&Var2, "SPEC_P1_15_13", 16);
			iVar6 = 17;
			iVar7 = 13;
			break;
		
		case 73:
			StringCopy(&Var2, "SPEC_P1_15_14", 16);
			iVar6 = 17;
			iVar7 = 14;
			break;
		
		case 74:
			StringCopy(&Var2, "SPEC_P1_15_15", 16);
			iVar6 = 17;
			iVar7 = 15;
			break;
		
		case 75:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 18;
			iVar7 = 0;
			break;
		
		case 76:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 19;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 77);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_213(int iParam0)//Position - 0x20FC1
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 5;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_186(iVar10, iParam0, 7);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_214(int iParam0)//Position - 0x210D0
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 6;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "FEET_P1_00_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "FEET_P1_00_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 80;
			break;
		
		case 2:
			StringCopy(&Var2, "FEET_P1_00_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 80;
			break;
		
		case 3:
			StringCopy(&Var2, "FEET_P1_00_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 89;
			break;
		
		case 4:
			StringCopy(&Var2, "FEET_P1_00_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 45;
			break;
		
		case 5:
			StringCopy(&Var2, "FEET_P1_00_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 35;
			break;
		
		case 6:
			StringCopy(&Var2, "FEET_P1_00_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 89;
			break;
		
		case 7:
			StringCopy(&Var2, "FEET_P1_00_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 95;
			break;
		
		case 8:
			StringCopy(&Var2, "FEET_P1_00_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 115;
			break;
		
		case 9:
			StringCopy(&Var2, "FEET_P1_00_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 40;
			break;
		
		case 10:
			StringCopy(&Var2, "FEET_P1_00_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 145;
			break;
		
		case 11:
			StringCopy(&Var2, "FEET_P1_00_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 145;
			break;
		
		case 12:
			StringCopy(&Var2, "FEET_P1_01_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "FEET_P1_06_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "FEET_P1_06_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 180;
			break;
		
		case 20:
			StringCopy(&Var2, "FEET_P1_06_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 80;
			break;
		
		case 21:
			StringCopy(&Var2, "FEET_P1_06_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 200;
			break;
		
		case 22:
			StringCopy(&Var2, "FEET_P1_06_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 220;
			break;
		
		case 23:
			StringCopy(&Var2, "FEET_P1_06_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 235;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 25:
			StringCopy(&Var2, "FEET_P1_08_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 870;
			break;
		
		case 26:
			StringCopy(&Var2, "FEET_P1_08_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 870;
			break;
		
		case 27:
			StringCopy(&Var2, "FEET_P1_08_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 870;
			break;
		
		case 28:
			StringCopy(&Var2, "FEET_P1_08_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 1275;
			break;
		
		case 29:
			StringCopy(&Var2, "FEET_P1_08_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 1275;
			break;
		
		case 30:
			StringCopy(&Var2, "FEET_P1_08_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 1275;
			break;
		
		case 31:
			StringCopy(&Var2, "FEET_P1_08_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 1275;
			break;
		
		case 32:
			StringCopy(&Var2, "FEET_P1_08_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 1275;
			break;
		
		case 33:
			StringCopy(&Var2, "FEET_P1_08_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 1275;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "FEET_P1_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 36:
			StringCopy(&Var2, "FEET_P1_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 37:
			StringCopy(&Var2, "FEET_P1_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 50;
			break;
		
		case 38:
			StringCopy(&Var2, "FEET_P1_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 39:
			StringCopy(&Var2, "FEET_P1_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 50;
			break;
		
		case 40:
			StringCopy(&Var2, "FEET_P1_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 50;
			break;
		
		case 41:
			StringCopy(&Var2, "FEET_P1_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 50;
			break;
		
		case 42:
			StringCopy(&Var2, "FEET_P1_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 50;
			break;
		
		case 43:
			StringCopy(&Var2, "FEET_P1_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 50;
			break;
		
		case 44:
			StringCopy(&Var2, "FEET_P1_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 50;
			break;
		
		case 45:
			StringCopy(&Var2, "FEET_P1_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 50;
			break;
		
		case 46:
			StringCopy(&Var2, "FEET_P1_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 50;
			break;
		
		case 47:
			StringCopy(&Var2, "FEET_P1_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 50;
			break;
		
		case 48:
			StringCopy(&Var2, "FEET_P1_11_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 50;
			break;
		
		case 49:
			StringCopy(&Var2, "FEET_P1_11_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 50;
			break;
		
		case 50:
			StringCopy(&Var2, "FEET_P1_11_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 50;
			break;
		
		case 51:
			StringCopy(&Var2, "FEET_P1_11_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 50;
			break;
		
		case 52:
			StringCopy(&Var2, "FEET_P1_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			break;
		
		case 53:
			StringCopy(&Var2, "FEET_P1_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 25;
			break;
		
		case 54:
			StringCopy(&Var2, "FEET_P1_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 20;
			break;
		
		case 55:
			StringCopy(&Var2, "FEET_P1_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 24;
			break;
		
		case 56:
			StringCopy(&Var2, "FEET_P1_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 25;
			break;
		
		case 57:
			StringCopy(&Var2, "FEET_P1_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 27;
			break;
		
		case 58:
			StringCopy(&Var2, "FEET_P1_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 29;
			break;
		
		case 59:
			StringCopy(&Var2, "FEET_P1_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 27;
			break;
		
		case 60:
			StringCopy(&Var2, "FEET_P1_12_8", 16);
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 25;
			break;
		
		case 61:
			StringCopy(&Var2, "FEET_P1_12_9", 16);
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 30;
			break;
		
		case 62:
			StringCopy(&Var2, "FEET_P1_12_10", 16);
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 28;
			break;
		
		case 63:
			StringCopy(&Var2, "FEET_P1_12_11", 16);
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 30;
			break;
		
		case 64:
			StringCopy(&Var2, "FEET_P1_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 65:
			StringCopy(&Var2, "FEET_P1_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 155;
			break;
		
		case 66:
			StringCopy(&Var2, "FEET_P1_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 155;
			break;
		
		case 67:
			StringCopy(&Var2, "FEET_P1_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 165;
			break;
		
		case 68:
			StringCopy(&Var2, "FEET_P1_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 170;
			break;
		
		case 69:
			StringCopy(&Var2, "FEET_P1_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 160;
			break;
		
		case 70:
			StringCopy(&Var2, "FEET_P1_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 165;
			break;
		
		case 71:
			StringCopy(&Var2, "FEET_P1_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 170;
			break;
		
		case 72:
			StringCopy(&Var2, "FEET_P1_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 160;
			break;
		
		case 73:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 74:
			StringCopy(&Var2, "FEET_P1_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 720;
			break;
		
		case 75:
			StringCopy(&Var2, "FEET_P1_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 680;
			break;
		
		case 76:
			StringCopy(&Var2, "FEET_P1_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 650;
			break;
		
		case 77:
			StringCopy(&Var2, "FEET_P1_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 670;
			break;
		
		case 78:
			StringCopy(&Var2, "FEET_P1_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 700;
			break;
		
		case 79:
			StringCopy(&Var2, "FEET_P1_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 680;
			break;
		
		case 80:
			StringCopy(&Var2, "FEET_P1_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 720;
			break;
		
		case 81:
			StringCopy(&Var2, "FEET_P1_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 740;
			break;
		
		case 82:
			StringCopy(&Var2, "FEET_P1_16_8", 16);
			iVar6 = 16;
			iVar7 = 8;
			iVar1 = 760;
			break;
		
		case 83:
			StringCopy(&Var2, "FEET_P1_16_9", 16);
			iVar6 = 16;
			iVar7 = 9;
			iVar1 = 780;
			break;
		
		case 84:
			StringCopy(&Var2, "FEET_P1_16_10", 16);
			iVar6 = 16;
			iVar7 = 10;
			iVar1 = 750;
			break;
		
		case 85:
			StringCopy(&Var2, "FEET_P1_16_11", 16);
			iVar6 = 16;
			iVar7 = 11;
			iVar1 = 700;
			break;
		
		case 86:
			StringCopy(&Var2, "FEET_P1_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 790;
			break;
		
		case 87:
			StringCopy(&Var2, "FEET_P1_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar1 = 750;
			break;
		
		case 88:
			StringCopy(&Var2, "FEET_P1_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			iVar1 = 860;
			break;
		
		case 89:
			StringCopy(&Var2, "FEET_P1_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 750;
			break;
		
		case 90:
			StringCopy(&Var2, "FEET_P1_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 790;
			break;
		
		case 91:
			StringCopy(&Var2, "FEET_P1_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 92:
			StringCopy(&Var2, "FEET_P1_17_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			iVar1 = 820;
			break;
		
		case 93:
			StringCopy(&Var2, "FEET_P1_17_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			iVar1 = 800;
			break;
		
		case 94:
			StringCopy(&Var2, "FEET_P1_17_8", 16);
			iVar6 = 17;
			iVar7 = 8;
			iVar1 = 850;
			break;
		
		case 95:
			StringCopy(&Var2, "FEET_P1_17_9", 16);
			iVar6 = 17;
			iVar7 = 9;
			iVar1 = 870;
			break;
		
		case 96:
			StringCopy(&Var2, "FEET_P1_17_10", 16);
			iVar6 = 17;
			iVar7 = 10;
			iVar1 = 720;
			break;
		
		case 97:
			StringCopy(&Var2, "FEET_P1_17_11", 16);
			iVar6 = 17;
			iVar7 = 11;
			iVar1 = 740;
			break;
		
		case 98:
			StringCopy(&Var2, "FEET_P1_17_12", 16);
			iVar6 = 17;
			iVar7 = 12;
			iVar1 = 800;
			break;
		
		case 99:
			StringCopy(&Var2, "FEET_P1_17_13", 16);
			iVar6 = 17;
			iVar7 = 13;
			iVar1 = 750;
			break;
		
		case 100:
			StringCopy(&Var2, "FEET_P1_17_14", 16);
			iVar6 = 17;
			iVar7 = 14;
			iVar1 = 770;
			break;
		
		case 101:
			StringCopy(&Var2, "FEET_P1_17_15", 16);
			iVar6 = 17;
			iVar7 = 15;
			iVar1 = 860;
			break;
		
		case 102:
			StringCopy(&Var2, "FEET_P1_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 850;
			break;
		
		case 103:
			StringCopy(&Var2, "FEET_P1_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 800;
			break;
		
		case 104:
			StringCopy(&Var2, "FEET_P1_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 780;
			break;
		
		case 105:
			StringCopy(&Var2, "FEET_P1_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 890;
			break;
		
		case 106:
			StringCopy(&Var2, "FEET_P1_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 820;
			break;
		
		case 107:
			StringCopy(&Var2, "FEET_P1_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 108:
			StringCopy(&Var2, "FEET_P1_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 870;
			break;
		
		case 109:
			StringCopy(&Var2, "FEET_P1_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 930;
			break;
		
		case 110:
			StringCopy(&Var2, "FEET_P1_18_8", 16);
			iVar6 = 18;
			iVar7 = 8;
			iVar1 = 880;
			break;
		
		case 111:
			StringCopy(&Var2, "FEET_P1_18_9", 16);
			iVar6 = 18;
			iVar7 = 9;
			iVar1 = 900;
			break;
		
		case 112:
			StringCopy(&Var2, "FEET_P1_18_10", 16);
			iVar6 = 18;
			iVar7 = 10;
			iVar1 = 920;
			break;
		
		case 113:
			StringCopy(&Var2, "FEET_P1_18_11", 16);
			iVar6 = 18;
			iVar7 = 11;
			iVar1 = 970;
			break;
		
		case 114:
			StringCopy(&Var2, "FEET_P1_18_12", 16);
			iVar6 = 18;
			iVar7 = 12;
			iVar1 = 990;
			break;
		
		case 115:
			StringCopy(&Var2, "FEET_P1_18_13", 16);
			iVar6 = 18;
			iVar7 = 13;
			iVar1 = 960;
			break;
		
		case 116:
			StringCopy(&Var2, "FEET_P1_18_14", 16);
			iVar6 = 18;
			iVar7 = 14;
			iVar1 = 980;
			break;
		
		case 117:
			StringCopy(&Var2, "FEET_P1_18_15", 16);
			iVar6 = 18;
			iVar7 = 15;
			iVar1 = 950;
			break;
		
		case 118:
			StringCopy(&Var2, "FEET_P1_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 110;
			break;
		
		case 119:
			StringCopy(&Var2, "FEET_P1_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 120:
			StringCopy(&Var2, "FEET_P1_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 120;
			break;
		
		case 121:
			StringCopy(&Var2, "FEET_P1_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 122:
			StringCopy(&Var2, "FEET_P1_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 125;
			break;
		
		case 123:
			StringCopy(&Var2, "FEET_P1_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 128;
			break;
		
		case 124:
			StringCopy(&Var2, "FEET_P1_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 135;
			break;
		
		case 125:
			StringCopy(&Var2, "FEET_P1_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 126:
			StringCopy(&Var2, "FEET_P1_19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 145;
			break;
		
		case 127:
			StringCopy(&Var2, "FEET_P1_19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 110;
			break;
		
		case 128:
			StringCopy(&Var2, "FEET_P1_19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 120;
			break;
		
		case 129:
			StringCopy(&Var2, "FEET_P1_19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 130:
			StringCopy(&Var2, "FEET_P1_19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 125;
			break;
		
		case 131:
			StringCopy(&Var2, "FEET_P1_19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 120;
			break;
		
		case 132:
			StringCopy(&Var2, "FEET_P1_19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 130;
			break;
		
		case 133:
			StringCopy(&Var2, "FEET_P1_19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 110;
			break;
		
		default:
			func_186(iVar10, iParam0, 134);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_215(int iParam0)//Position - 0x21FFA
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 4;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "LEGS_P1_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "LEGS_P1_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 32;
			break;
		
		case 2:
			StringCopy(&Var2, "LEGS_P1_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 38;
			break;
		
		case 3:
			StringCopy(&Var2, "LEGS_P1_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 44;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "LEGS_P1_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "LEGS_P1_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 15:
			StringCopy(&Var2, "LEGS_P1_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 690;
			break;
		
		case 16:
			StringCopy(&Var2, "LEGS_P1_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 720;
			break;
		
		case 17:
			StringCopy(&Var2, "LEGS_P1_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 850;
			break;
		
		case 18:
			StringCopy(&Var2, "LEGS_P1_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 850;
			break;
		
		case 19:
			StringCopy(&Var2, "LEGS_P1_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 740;
			break;
		
		case 20:
			StringCopy(&Var2, "LEGS_P1_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 750;
			break;
		
		case 21:
			StringCopy(&Var2, "LEGS_P1_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 790;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 24:
			StringCopy(&Var2, "LEGS_P1_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 25:
			StringCopy(&Var2, "LEGS_P1_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 145;
			break;
		
		case 26:
			StringCopy(&Var2, "LEGS_P1_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 140;
			break;
		
		case 27:
			StringCopy(&Var2, "LEGS_P1_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 148;
			break;
		
		case 28:
			StringCopy(&Var2, "LEGS_P1_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 29:
			StringCopy(&Var2, "LEGS_P1_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 154;
			break;
		
		case 30:
			StringCopy(&Var2, "LEGS_P1_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 158;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 33:
			StringCopy(&Var2, "LEGS_P1_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 820;
			break;
		
		case 34:
			StringCopy(&Var2, "LEGS_P1_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 820;
			break;
		
		case 35:
			StringCopy(&Var2, "LEGS_P1_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 850;
			break;
		
		case 36:
			StringCopy(&Var2, "LEGS_P1_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 850;
			break;
		
		case 37:
			StringCopy(&Var2, "LEGS_P1_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 920;
			break;
		
		case 38:
			StringCopy(&Var2, "LEGS_P1_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 950;
			break;
		
		case 39:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			break;
		
		case 40:
			StringCopy(&Var2, "LEGS_P1_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 41:
			StringCopy(&Var2, "LEGS_P1_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 45;
			break;
		
		case 42:
			StringCopy(&Var2, "LEGS_P1_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 48;
			break;
		
		case 43:
			StringCopy(&Var2, "LEGS_P1_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 45;
			break;
		
		case 44:
			StringCopy(&Var2, "LEGS_P1_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 48;
			break;
		
		case 45:
			StringCopy(&Var2, "LEGS_P1_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 52;
			break;
		
		case 46:
			StringCopy(&Var2, "LEGS_P1_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 55;
			break;
		
		case 47:
			StringCopy(&Var2, "LEGS_P1_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 58;
			break;
		
		case 48:
			StringCopy(&Var2, "LEGS_P1_13_8", 16);
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 60;
			break;
		
		case 49:
			StringCopy(&Var2, "LEGS_P1_13_9", 16);
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 58;
			break;
		
		case 50:
			StringCopy(&Var2, "LEGS_P1_13_10", 16);
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 62;
			break;
		
		case 51:
			StringCopy(&Var2, "LEGS_P1_13_11", 16);
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 65;
			break;
		
		case 52:
			StringCopy(&Var2, "LEGS_P1_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 53:
			StringCopy(&Var2, "LEGS_P1_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 54:
			StringCopy(&Var2, "LEGS_P1_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			break;
		
		case 55:
			StringCopy(&Var2, "LEGS_P1_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			break;
		
		case 56:
			StringCopy(&Var2, "LEGS_P1_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			break;
		
		case 57:
			StringCopy(&Var2, "LEGS_P1_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			break;
		
		case 58:
			StringCopy(&Var2, "LEGS_P1_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			break;
		
		case 59:
			StringCopy(&Var2, "LEGS_P1_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			break;
		
		case 60:
			StringCopy(&Var2, "LEGS_P1_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			break;
		
		case 61:
			StringCopy(&Var2, "LEGS_P1_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			break;
		
		case 62:
			StringCopy(&Var2, "LEGS_P1_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			break;
		
		case 63:
			StringCopy(&Var2, "LEGS_P1_15_10", 16);
			iVar6 = 15;
			iVar7 = 10;
			break;
		
		case 64:
			StringCopy(&Var2, "LEGS_P1_15_11", 16);
			iVar6 = 15;
			iVar7 = 11;
			break;
		
		case 65:
			StringCopy(&Var2, "LEGS_P1_15_12", 16);
			iVar6 = 15;
			iVar7 = 12;
			break;
		
		case 66:
			StringCopy(&Var2, "LEGS_P1_15_13", 16);
			iVar6 = 15;
			iVar7 = 13;
			break;
		
		case 67:
			StringCopy(&Var2, "LEGS_P1_15_14", 16);
			iVar6 = 15;
			iVar7 = 14;
			break;
		
		case 68:
			StringCopy(&Var2, "LEGS_P1_15_15", 16);
			iVar6 = 15;
			iVar7 = 15;
			break;
		
		case 69:
			StringCopy(&Var2, "LEGS_P1_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 70:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 71:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 72:
			StringCopy(&Var2, "LEGS_P1_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			break;
		
		case 73:
			StringCopy(&Var2, "LEGS_P1_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 160;
			break;
		
		case 74:
			StringCopy(&Var2, "LEGS_P1_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 180;
			break;
		
		case 75:
			StringCopy(&Var2, "LEGS_P1_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 180;
			break;
		
		case 76:
			StringCopy(&Var2, "LEGS_P1_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			break;
		
		case 77:
			StringCopy(&Var2, "LEGS_P1_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			break;
		
		case 78:
			StringCopy(&Var2, "LEGS_P1_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 79:
			StringCopy(&Var2, "LEGS_P1_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 118;
			break;
		
		case 80:
			StringCopy(&Var2, "LEGS_P1_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 120;
			break;
		
		case 81:
			StringCopy(&Var2, "LEGS_P1_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 128;
			break;
		
		case 82:
			StringCopy(&Var2, "LEGS_P1_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 128;
			break;
		
		case 83:
			StringCopy(&Var2, "LEGS_P1_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			iVar1 = 130;
			break;
		
		case 84:
			StringCopy(&Var2, "LEGS_P1_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 145;
			break;
		
		case 85:
			StringCopy(&Var2, "LEGS_P1_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 138;
			break;
		
		case 86:
			StringCopy(&Var2, "LEGS_P1_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 132;
			break;
		
		case 87:
			StringCopy(&Var2, "LEGS_P1_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 148;
			break;
		
		case 88:
			StringCopy(&Var2, "LEGS_P1_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 118;
			break;
		
		case 89:
			StringCopy(&Var2, "LEGS_P1_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 118;
			break;
		
		case 90:
			StringCopy(&Var2, "LEGS_P1_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 118;
			break;
		
		case 91:
			StringCopy(&Var2, "LEGS_P1_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 129;
			break;
		
		case 92:
			StringCopy(&Var2, "LEGS_P1_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 135;
			break;
		
		case 93:
			StringCopy(&Var2, "LEGS_P1_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 135;
			break;
		
		case 94:
			StringCopy(&Var2, "LEGS_P1_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 118;
			break;
		
		case 95:
			StringCopy(&Var2, "LEGS_P1_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 118;
			break;
		
		case 96:
			StringCopy(&Var2, "LEGS_P1_21_8", 16);
			iVar6 = 21;
			iVar7 = 8;
			iVar1 = 118;
			break;
		
		case 97:
			StringCopy(&Var2, "LEGS_P1_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar1 = 55;
			break;
		
		case 98:
			StringCopy(&Var2, "LEGS_P1_22_1", 16);
			iVar6 = 22;
			iVar7 = 1;
			iVar1 = 55;
			break;
		
		case 99:
			StringCopy(&Var2, "LEGS_P1_22_2", 16);
			iVar6 = 22;
			iVar7 = 2;
			iVar1 = 59;
			break;
		
		case 100:
			StringCopy(&Var2, "LEGS_P1_22_3", 16);
			iVar6 = 22;
			iVar7 = 3;
			iVar1 = 59;
			break;
		
		case 101:
			StringCopy(&Var2, "LEGS_P1_22_4", 16);
			iVar6 = 22;
			iVar7 = 4;
			iVar1 = 65;
			break;
		
		case 102:
			StringCopy(&Var2, "LEGS_P1_22_5", 16);
			iVar6 = 22;
			iVar7 = 5;
			iVar1 = 65;
			break;
		
		case 103:
			StringCopy(&Var2, "LEGS_P1_22_6", 16);
			iVar6 = 22;
			iVar7 = 6;
			iVar1 = 69;
			break;
		
		case 104:
			StringCopy(&Var2, "LEGS_P1_22_7", 16);
			iVar6 = 22;
			iVar7 = 7;
			iVar1 = 69;
			break;
		
		case 105:
			StringCopy(&Var2, "LEGS_P1_22_8", 16);
			iVar6 = 22;
			iVar7 = 8;
			iVar1 = 75;
			break;
		
		case 106:
			StringCopy(&Var2, "LEGS_P1_22_9", 16);
			iVar6 = 22;
			iVar7 = 9;
			iVar1 = 75;
			break;
		
		case 107:
			StringCopy(&Var2, "LEGS_P1_22_10", 16);
			iVar6 = 22;
			iVar7 = 10;
			iVar1 = 65;
			break;
		
		case 108:
			StringCopy(&Var2, "LEGS_P1_22_11", 16);
			iVar6 = 22;
			iVar7 = 11;
			iVar1 = 65;
			break;
		
		case 109:
			StringCopy(&Var2, "LEGS_P1_22_12", 16);
			iVar6 = 22;
			iVar7 = 12;
			iVar1 = 65;
			break;
		
		case 110:
			StringCopy(&Var2, "LEGS_P1_22_13", 16);
			iVar6 = 22;
			iVar7 = 13;
			iVar1 = 65;
			break;
		
		case 111:
			StringCopy(&Var2, "LEGS_P1_23_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar1 = 38;
			break;
		
		case 112:
			StringCopy(&Var2, "LEGS_P1_23_1", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar1 = 38;
			break;
		
		case 113:
			StringCopy(&Var2, "LEGS_P1_23_2", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar1 = 28;
			break;
		
		case 114:
			StringCopy(&Var2, "LEGS_P1_23_3", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar1 = 34;
			break;
		
		case 115:
			StringCopy(&Var2, "LEGS_P1_23_4", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar1 = 36;
			break;
		
		case 116:
			StringCopy(&Var2, "LEGS_P1_23_5", 16);
			iVar6 = 23;
			iVar7 = 5;
			iVar1 = 32;
			break;
		
		default:
			func_186(iVar10, iParam0, 117);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_216(int iParam0)//Position - 0x22CB6
{
	if (iParam0 < 107)
	{
		func_219(iParam0);
	}
	else if (iParam0 < 227)
	{
		func_218(iParam0);
	}
	else
	{
		func_217(iParam0);
	}
	if (Global_69438[0 /*14*/].f_2 == -1)
	{
		func_186(3, iParam0, 318);
	}
}

void func_217(int iParam0)//Position - 0x22CFB
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 227:
			StringCopy(&Var2, "TORSO_P1_18_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 228:
			StringCopy(&Var2, "TORSO_P1_18_1", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar9 = 3;
			break;
		
		case 229:
			StringCopy(&Var2, "TORSO_P1_18_2", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar9 = 3;
			break;
		
		case 230:
			StringCopy(&Var2, "TORSO_P1_18_3", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar9 = 3;
			break;
		
		case 231:
			StringCopy(&Var2, "TORSO_P1_18_4", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar9 = 3;
			break;
		
		case 232:
			StringCopy(&Var2, "TORSO_P1_18_5", 16);
			iVar6 = 23;
			iVar7 = 5;
			iVar9 = 3;
			break;
		
		case 233:
			StringCopy(&Var2, "TORSO_P1_18_6", 16);
			iVar6 = 23;
			iVar7 = 6;
			iVar9 = 3;
			break;
		
		case 234:
			StringCopy(&Var2, "TORSO_P1_18_7", 16);
			iVar6 = 23;
			iVar7 = 7;
			iVar9 = 3;
			break;
		
		case 235:
			StringCopy(&Var2, "TORSO_P1_18_8", 16);
			iVar6 = 23;
			iVar7 = 8;
			iVar9 = 3;
			break;
		
		case 236:
			StringCopy(&Var2, "TORSO_P1_18_9", 16);
			iVar6 = 23;
			iVar7 = 9;
			iVar9 = 3;
			break;
		
		case 237:
			StringCopy(&Var2, "TORSO_P1_18_10", 16);
			iVar6 = 23;
			iVar7 = 10;
			iVar9 = 3;
			break;
		
		case 238:
			StringCopy(&Var2, "TORSO_P1_18_11", 16);
			iVar6 = 23;
			iVar7 = 11;
			iVar9 = 3;
			break;
		
		case 239:
			StringCopy(&Var2, "TORSO_P1_18_12", 16);
			iVar6 = 23;
			iVar7 = 12;
			iVar9 = 3;
			break;
		
		case 240:
			StringCopy(&Var2, "TORSO_P1_18_13", 16);
			iVar6 = 23;
			iVar7 = 13;
			iVar9 = 3;
			break;
		
		case 241:
			StringCopy(&Var2, "TORSO_P1_18_14", 16);
			iVar6 = 23;
			iVar7 = 14;
			iVar9 = 3;
			break;
		
		case 242:
			StringCopy(&Var2, "TORSO_P1_18_15", 16);
			iVar6 = 23;
			iVar7 = 15;
			iVar9 = 3;
			break;
		
		case 243:
			StringCopy(&Var2, "TORSO_P1_24_0", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 244:
			StringCopy(&Var2, "TORSO_P1_24_1", 16);
			iVar6 = 24;
			iVar7 = 1;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 245:
			StringCopy(&Var2, "TORSO_P1_24_2", 16);
			iVar6 = 24;
			iVar7 = 2;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 246:
			StringCopy(&Var2, "TORSO_P1_24_3", 16);
			iVar6 = 24;
			iVar7 = 3;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 247:
			StringCopy(&Var2, "TORSO_P1_24_4", 16);
			iVar6 = 24;
			iVar7 = 4;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 248:
			StringCopy(&Var2, "TORSO_P1_24_5", 16);
			iVar6 = 24;
			iVar7 = 5;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 249:
			StringCopy(&Var2, "TORSO_P1_24_6", 16);
			iVar6 = 24;
			iVar7 = 6;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 250:
			StringCopy(&Var2, "TORSO_P1_24_7", 16);
			iVar6 = 24;
			iVar7 = 7;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 251:
			StringCopy(&Var2, "TORSO_P1_24_8", 16);
			iVar6 = 24;
			iVar7 = 8;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 252:
			StringCopy(&Var2, "TORSO_P1_24_9", 16);
			iVar6 = 24;
			iVar7 = 9;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 253:
			StringCopy(&Var2, "TORSO_P1_24_10", 16);
			iVar6 = 24;
			iVar7 = 10;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 254:
			StringCopy(&Var2, "TORSO_P1_24_11", 16);
			iVar6 = 24;
			iVar7 = 11;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 255:
			StringCopy(&Var2, "TORSO_P1_24_12", 16);
			iVar6 = 24;
			iVar7 = 12;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 256:
			StringCopy(&Var2, "TORSO_P1_24_13", 16);
			iVar6 = 24;
			iVar7 = 13;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 257:
			StringCopy(&Var2, "TORSO_P1_24_14", 16);
			iVar6 = 24;
			iVar7 = 14;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 258:
			StringCopy(&Var2, "TORSO_P1_24_15", 16);
			iVar6 = 24;
			iVar7 = 15;
			iVar1 = 2200;
			iVar9 = 3;
			break;
		
		case 259:
			StringCopy(&Var2, "TORSO_P1_25_0", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 3;
			break;
		
		case 260:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 0;
			iVar9 = 1;
			break;
		
		case 261:
			StringCopy(&Var2, "TORSO_P1_27_0", 16);
			iVar6 = 27;
			iVar7 = 0;
			iVar1 = 150;
			break;
		
		case 262:
			StringCopy(&Var2, "TORSO_P1_27_1", 16);
			iVar6 = 27;
			iVar7 = 1;
			iVar1 = 160;
			break;
		
		case 263:
			StringCopy(&Var2, "TORSO_P1_27_2", 16);
			iVar6 = 27;
			iVar7 = 2;
			iVar1 = 150;
			break;
		
		case 264:
			StringCopy(&Var2, "TORSO_P1_27_3", 16);
			iVar6 = 27;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 265:
			StringCopy(&Var2, "TORSO_P1_27_4", 16);
			iVar6 = 27;
			iVar7 = 4;
			iVar1 = 160;
			break;
		
		case 266:
			StringCopy(&Var2, "TORSO_P1_27_5", 16);
			iVar6 = 27;
			iVar7 = 5;
			iVar1 = 160;
			break;
		
		case 267:
			StringCopy(&Var2, "TORSO_P1_28_0", 16);
			iVar6 = 28;
			iVar7 = 0;
			iVar1 = 88;
			break;
		
		case 268:
			StringCopy(&Var2, "TORSO_P1_28_1", 16);
			iVar6 = 28;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 269:
			StringCopy(&Var2, "TORSO_P1_28_2", 16);
			iVar6 = 28;
			iVar7 = 2;
			iVar1 = 70;
			break;
		
		case 270:
			StringCopy(&Var2, "TORSO_P1_28_3", 16);
			iVar6 = 28;
			iVar7 = 3;
			iVar1 = 80;
			break;
		
		case 271:
			StringCopy(&Var2, "TORSO_P1_28_4", 16);
			iVar6 = 28;
			iVar7 = 4;
			iVar1 = 90;
			break;
		
		case 272:
			StringCopy(&Var2, "TORSO_P1_28_5", 16);
			iVar6 = 28;
			iVar7 = 5;
			iVar1 = 80;
			break;
		
		case 273:
			StringCopy(&Var2, "TORSO_P1_28_6", 16);
			iVar6 = 28;
			iVar7 = 6;
			iVar1 = 70;
			break;
		
		case 274:
			StringCopy(&Var2, "TORSO_P1_28_7", 16);
			iVar6 = 28;
			iVar7 = 7;
			iVar1 = 95;
			break;
		
		case 275:
			StringCopy(&Var2, "TORSO_P1_28_8", 16);
			iVar6 = 28;
			iVar7 = 8;
			iVar1 = 105;
			break;
		
		case 276:
			StringCopy(&Var2, "TORSO_P1_28_9", 16);
			iVar6 = 28;
			iVar7 = 9;
			iVar1 = 95;
			break;
		
		case 277:
			StringCopy(&Var2, "TORSO_P1_28_10", 16);
			iVar6 = 28;
			iVar7 = 10;
			iVar1 = 110;
			break;
		
		case 278:
			StringCopy(&Var2, "TORSO_P1_28_11", 16);
			iVar6 = 28;
			iVar7 = 11;
			iVar1 = 98;
			break;
		
		case 279:
			StringCopy(&Var2, "TORSO_P1_28_12", 16);
			iVar6 = 28;
			iVar7 = 12;
			iVar1 = 88;
			break;
		
		case 280:
			StringCopy(&Var2, "TORSO_P1_28_13", 16);
			iVar6 = 28;
			iVar7 = 13;
			iVar1 = 98;
			break;
		
		case 281:
			StringCopy(&Var2, "TORSO_P1_28_14", 16);
			iVar6 = 28;
			iVar7 = 14;
			iVar1 = 110;
			break;
		
		case 282:
			StringCopy(&Var2, "TORSO_P1_28_15", 16);
			iVar6 = 28;
			iVar7 = 15;
			iVar1 = 98;
			break;
		
		case 283:
			StringCopy(&Var2, "TORSO_P1_29_0", 16);
			iVar6 = 29;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 284:
			StringCopy(&Var2, "TORSO_P1_29_1", 16);
			iVar6 = 29;
			iVar7 = 1;
			iVar1 = 270;
			break;
		
		case 285:
			StringCopy(&Var2, "TORSO_P1_29_2", 16);
			iVar6 = 29;
			iVar7 = 2;
			iVar1 = 280;
			break;
		
		case 286:
			StringCopy(&Var2, "TORSO_P1_29_3", 16);
			iVar6 = 29;
			iVar7 = 3;
			iVar1 = 275;
			break;
		
		case 287:
			StringCopy(&Var2, "TORSO_P1_29_4", 16);
			iVar6 = 29;
			iVar7 = 4;
			iVar1 = 290;
			break;
		
		case 288:
			StringCopy(&Var2, "TORSO_P1_29_5", 16);
			iVar6 = 29;
			iVar7 = 5;
			iVar1 = 35;
			break;
		
		case 289:
			StringCopy(&Var2, "TORSO_P1_29_6", 16);
			iVar6 = 29;
			iVar7 = 6;
			iVar1 = 35;
			break;
		
		case 290:
			StringCopy(&Var2, "TORSO_P1_29_7", 16);
			iVar6 = 29;
			iVar7 = 7;
			iVar1 = 35;
			break;
		
		case 291:
			StringCopy(&Var2, "TORSO_P1_29_8", 16);
			iVar6 = 29;
			iVar7 = 8;
			iVar1 = 295;
			break;
		
		case 292:
			StringCopy(&Var2, "TORSO_P1_29_9", 16);
			iVar6 = 29;
			iVar7 = 9;
			iVar1 = 35;
			break;
		
		case 293:
			StringCopy(&Var2, "TORSO_P1_29_10", 16);
			iVar6 = 29;
			iVar7 = 10;
			iVar1 = 35;
			break;
		
		case 294:
			StringCopy(&Var2, "TORSO_P1_29_11", 16);
			iVar6 = 29;
			iVar7 = 11;
			iVar1 = 35;
			break;
		
		case 295:
			StringCopy(&Var2, "TORSO_P1_29_12", 16);
			iVar6 = 29;
			iVar7 = 12;
			break;
		
		case 296:
			StringCopy(&Var2, "TORSO_P1_30_0", 16);
			iVar6 = 30;
			iVar7 = 0;
			iVar1 = 1750;
			break;
		
		case 297:
			StringCopy(&Var2, "TORSO_P1_30_1", 16);
			iVar6 = 30;
			iVar7 = 1;
			iVar1 = 1920;
			break;
		
		case 298:
			StringCopy(&Var2, "TORSO_P1_30_2", 16);
			iVar6 = 30;
			iVar7 = 2;
			iVar1 = 1890;
			break;
		
		case 299:
			StringCopy(&Var2, "TORSO_P1_30_3", 16);
			iVar6 = 30;
			iVar7 = 3;
			iVar1 = 1850;
			break;
		
		case 300:
			StringCopy(&Var2, "TORSO_P1_30_4", 16);
			iVar6 = 30;
			iVar7 = 4;
			iVar1 = 1750;
			break;
		
		case 301:
			StringCopy(&Var2, "TORSO_P1_30_5", 16);
			iVar6 = 30;
			iVar7 = 5;
			iVar1 = 1990;
			break;
		
		case 302:
			StringCopy(&Var2, "TORSO_P1_30_6", 16);
			iVar6 = 30;
			iVar7 = 6;
			iVar1 = 1820;
			break;
		
		case 303:
			StringCopy(&Var2, "TORSO_P1_30_7", 16);
			iVar6 = 30;
			iVar7 = 7;
			iVar1 = 1990;
			break;
		
		case 304:
			StringCopy(&Var2, "TORSO_P1_30_8", 16);
			iVar6 = 30;
			iVar7 = 8;
			iVar1 = 1920;
			break;
		
		case 305:
			StringCopy(&Var2, "TORSO_P1_30_9", 16);
			iVar6 = 30;
			iVar7 = 9;
			iVar1 = 1850;
			break;
		
		case 306:
			StringCopy(&Var2, "TORSO_P1_30_10", 16);
			iVar6 = 30;
			iVar7 = 10;
			iVar1 = 1990;
			break;
		
		case 307:
			StringCopy(&Var2, "TORSO_P1_30_11", 16);
			iVar6 = 30;
			iVar7 = 11;
			iVar1 = 1790;
			break;
		
		case 308:
			StringCopy(&Var2, "TORSO_P1_30_12", 16);
			iVar6 = 30;
			iVar7 = 12;
			iVar1 = 1790;
			break;
		
		case 309:
			StringCopy(&Var2, "TORSO_P1_31_0", 16);
			iVar6 = 31;
			iVar7 = 0;
			iVar1 = 69;
			break;
		
		case 310:
			StringCopy(&Var2, "TORSO_P1_31_1", 16);
			iVar6 = 31;
			iVar7 = 1;
			iVar1 = 75;
			break;
		
		case 311:
			StringCopy(&Var2, "TORSO_P1_31_2", 16);
			iVar6 = 31;
			iVar7 = 2;
			iVar1 = 75;
			break;
		
		case 312:
			StringCopy(&Var2, "TORSO_P1_31_3", 16);
			iVar6 = 31;
			iVar7 = 3;
			iVar1 = 79;
			break;
		
		case 313:
			StringCopy(&Var2, "TORSO_P1_31_4", 16);
			iVar6 = 31;
			iVar7 = 4;
			iVar1 = 79;
			break;
		
		case 314:
			StringCopy(&Var2, "TORSO_P1_31_5", 16);
			iVar6 = 31;
			iVar7 = 5;
			iVar1 = 89;
			break;
		
		case 315:
			StringCopy(&Var2, "TORSO_P1_31_6", 16);
			iVar6 = 31;
			iVar7 = 6;
			iVar1 = 85;
			break;
		
		case 316:
			StringCopy(&Var2, "TORSO_P1_31_7", 16);
			iVar6 = 31;
			iVar7 = 7;
			iVar1 = 85;
			break;
		
		case 317:
			StringCopy(&Var2, "TORSO_P1_31_8", 16);
			iVar6 = 31;
			iVar7 = 8;
			break;
		
		default:
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_218(int iParam0)//Position - 0x237A0
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 107:
			StringCopy(&Var2, "TORSO_P1_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 195;
			break;
		
		case 108:
			StringCopy(&Var2, "TORSO_P1_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 420;
			break;
		
		case 109:
			StringCopy(&Var2, "TORSO_P1_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 390;
			break;
		
		case 110:
			StringCopy(&Var2, "TORSO_P1_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 450;
			break;
		
		case 111:
			StringCopy(&Var2, "TORSO_P1_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 400;
			break;
		
		case 112:
			StringCopy(&Var2, "TORSO_P1_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 390;
			break;
		
		case 113:
			StringCopy(&Var2, "TORSO_P1_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 570;
			break;
		
		case 114:
			StringCopy(&Var2, "TORSO_P1_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 390;
			break;
		
		case 115:
			StringCopy(&Var2, "TORSO_P1_12_8", 16);
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 470;
			break;
		
		case 116:
			StringCopy(&Var2, "TORSO_P1_12_9", 16);
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 390;
			break;
		
		case 117:
			StringCopy(&Var2, "TORSO_P1_12_10", 16);
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 520;
			break;
		
		case 118:
			StringCopy(&Var2, "TORSO_P1_12_11", 16);
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 490;
			break;
		
		case 119:
			StringCopy(&Var2, "TORSO_P1_12_12", 16);
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 490;
			break;
		
		case 120:
			StringCopy(&Var2, "TORSO_P1_12_13", 16);
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 590;
			break;
		
		case 121:
			StringCopy(&Var2, "TORSO_P1_12_14", 16);
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 560;
			break;
		
		case 122:
			StringCopy(&Var2, "TORSO_P1_12_15", 16);
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 520;
			break;
		
		case 123:
			StringCopy(&Var2, "TORSO_P1_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 124:
			StringCopy(&Var2, "TORSO_P1_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			break;
		
		case 125:
			StringCopy(&Var2, "TORSO_P1_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			break;
		
		case 126:
			StringCopy(&Var2, "TORSO_P1_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 127:
			StringCopy(&Var2, "TORSO_P1_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 85;
			break;
		
		case 128:
			StringCopy(&Var2, "TORSO_P1_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 45;
			break;
		
		case 129:
			StringCopy(&Var2, "TORSO_P1_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 90;
			break;
		
		case 130:
			StringCopy(&Var2, "TORSO_P1_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 47;
			break;
		
		case 131:
			StringCopy(&Var2, "TORSO_P1_13_8", 16);
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 45;
			break;
		
		case 132:
			StringCopy(&Var2, "TORSO_P1_13_9", 16);
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 48;
			break;
		
		case 133:
			StringCopy(&Var2, "TORSO_P1_13_10", 16);
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 45;
			break;
		
		case 134:
			StringCopy(&Var2, "TORSO_P1_13_11", 16);
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 85;
			break;
		
		case 135:
			StringCopy(&Var2, "TORSO_P1_13_12", 16);
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 45;
			break;
		
		case 136:
			StringCopy(&Var2, "TORSO_P1_13_13", 16);
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 47;
			break;
		
		case 137:
			StringCopy(&Var2, "TORSO_P1_13_14", 16);
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 138:
			StringCopy(&Var2, "TORSO_P1_13_15", 16);
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 48;
			break;
		
		case 139:
			StringCopy(&Var2, "TORSO_P1_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 290;
			break;
		
		case 140:
			StringCopy(&Var2, "TORSO_P1_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 290;
			break;
		
		case 141:
			StringCopy(&Var2, "TORSO_P1_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 290;
			break;
		
		case 142:
			StringCopy(&Var2, "TORSO_P1_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 290;
			break;
		
		case 143:
			StringCopy(&Var2, "TORSO_P1_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 290;
			break;
		
		case 144:
			StringCopy(&Var2, "TORSO_P1_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 290;
			break;
		
		case 145:
			StringCopy(&Var2, "TORSO_P1_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 65;
			break;
		
		case 146:
			StringCopy(&Var2, "TORSO_P1_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 65;
			break;
		
		case 147:
			StringCopy(&Var2, "TORSO_P1_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 200;
			break;
		
		case 148:
			StringCopy(&Var2, "TORSO_P1_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 220;
			break;
		
		case 149:
			StringCopy(&Var2, "TORSO_P1_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 220;
			break;
		
		case 150:
			StringCopy(&Var2, "TORSO_P1_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 240;
			break;
		
		case 151:
			StringCopy(&Var2, "TORSO_P1_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			break;
		
		case 152:
			StringCopy(&Var2, "TORSO_P1_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 250;
			break;
		
		case 153:
			StringCopy(&Var2, "TORSO_P1_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 260;
			break;
		
		case 154:
			StringCopy(&Var2, "TORSO_P1_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 40;
			break;
		
		case 155:
			StringCopy(&Var2, "TORSO_P1_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 50;
			break;
		
		case 156:
			StringCopy(&Var2, "TORSO_P1_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 45;
			break;
		
		case 157:
			StringCopy(&Var2, "TORSO_P1_15_10", 16);
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 40;
			break;
		
		case 158:
			StringCopy(&Var2, "TORSO_P1_15_11", 16);
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 55;
			break;
		
		case 159:
			StringCopy(&Var2, "TORSO_P1_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 160:
			StringCopy(&Var2, "TORSO_P1_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 40;
			break;
		
		case 161:
			StringCopy(&Var2, "TORSO_P1_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar1 = 50;
			break;
		
		case 162:
			StringCopy(&Var2, "TORSO_P1_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			break;
		
		case 163:
			StringCopy(&Var2, "TORSO_P1_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 50;
			break;
		
		case 164:
			StringCopy(&Var2, "TORSO_P1_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 50;
			break;
		
		case 165:
			StringCopy(&Var2, "TORSO_P1_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 50;
			break;
		
		case 166:
			StringCopy(&Var2, "TORSO_P1_17_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			iVar1 = 50;
			break;
		
		case 167:
			StringCopy(&Var2, "TORSO_P1_17_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			iVar1 = 50;
			break;
		
		case 168:
			StringCopy(&Var2, "TORSO_P1_17_8", 16);
			iVar6 = 17;
			iVar7 = 8;
			iVar1 = 50;
			break;
		
		case 169:
			StringCopy(&Var2, "TORSO_P1_17_9", 16);
			iVar6 = 17;
			iVar7 = 9;
			iVar1 = 50;
			break;
		
		case 170:
			StringCopy(&Var2, "TORSO_P1_17_10", 16);
			iVar6 = 17;
			iVar7 = 10;
			iVar1 = 50;
			break;
		
		case 171:
			StringCopy(&Var2, "TORSO_P1_17_11", 16);
			iVar6 = 17;
			iVar7 = 11;
			iVar1 = 50;
			break;
		
		case 172:
			StringCopy(&Var2, "TORSO_P1_17_12", 16);
			iVar6 = 17;
			iVar7 = 12;
			iVar1 = 50;
			break;
		
		case 173:
			StringCopy(&Var2, "TORSO_P1_17_13", 16);
			iVar6 = 17;
			iVar7 = 13;
			iVar1 = 50;
			break;
		
		case 174:
			StringCopy(&Var2, "TORSO_P1_17_14", 16);
			iVar6 = 17;
			iVar7 = 14;
			iVar1 = 50;
			break;
		
		case 175:
			StringCopy(&Var2, "TORSO_P1_17_15", 16);
			iVar6 = 17;
			iVar7 = 15;
			iVar1 = 50;
			break;
		
		case 176:
			StringCopy(&Var2, "TORSO_P1_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 177:
			StringCopy(&Var2, "TORSO_P1_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar9 = 3;
			break;
		
		case 178:
			StringCopy(&Var2, "TORSO_P1_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar9 = 3;
			break;
		
		case 179:
			StringCopy(&Var2, "TORSO_P1_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar9 = 3;
			break;
		
		case 180:
			StringCopy(&Var2, "TORSO_P1_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar9 = 3;
			break;
		
		case 181:
			StringCopy(&Var2, "TORSO_P1_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar9 = 3;
			break;
		
		case 182:
			StringCopy(&Var2, "TORSO_P1_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar9 = 3;
			break;
		
		case 183:
			StringCopy(&Var2, "TORSO_P1_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar9 = 3;
			break;
		
		case 184:
			StringCopy(&Var2, "TORSO_P1_18_8", 16);
			iVar6 = 18;
			iVar7 = 8;
			iVar9 = 3;
			break;
		
		case 185:
			StringCopy(&Var2, "TORSO_P1_18_9", 16);
			iVar6 = 18;
			iVar7 = 9;
			iVar9 = 3;
			break;
		
		case 186:
			StringCopy(&Var2, "TORSO_P1_18_10", 16);
			iVar6 = 18;
			iVar7 = 10;
			iVar9 = 3;
			break;
		
		case 187:
			StringCopy(&Var2, "TORSO_P1_18_11", 16);
			iVar6 = 18;
			iVar7 = 11;
			iVar9 = 3;
			break;
		
		case 188:
			StringCopy(&Var2, "TORSO_P1_18_12", 16);
			iVar6 = 18;
			iVar7 = 12;
			iVar9 = 3;
			break;
		
		case 189:
			StringCopy(&Var2, "TORSO_P1_18_13", 16);
			iVar6 = 18;
			iVar7 = 13;
			iVar9 = 3;
			break;
		
		case 190:
			StringCopy(&Var2, "TORSO_P1_18_14", 16);
			iVar6 = 18;
			iVar7 = 14;
			iVar9 = 3;
			break;
		
		case 191:
			StringCopy(&Var2, "TORSO_P1_18_15", 16);
			iVar6 = 18;
			iVar7 = 15;
			iVar9 = 3;
			break;
		
		case 192:
			StringCopy(&Var2, "TORSO_P1_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 193:
			StringCopy(&Var2, "TORSO_P1_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 440;
			iVar9 = 3;
			break;
		
		case 194:
			StringCopy(&Var2, "TORSO_P1_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 440;
			iVar9 = 3;
			break;
		
		case 195:
			StringCopy(&Var2, "TORSO_P1_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 520;
			iVar9 = 3;
			break;
		
		case 196:
			StringCopy(&Var2, "TORSO_P1_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 440;
			iVar9 = 3;
			break;
		
		case 197:
			StringCopy(&Var2, "TORSO_P1_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 440;
			iVar9 = 3;
			break;
		
		case 198:
			StringCopy(&Var2, "TORSO_P1_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 199:
			StringCopy(&Var2, "TORSO_P1_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 200:
			StringCopy(&Var2, "TORSO_P1_19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 201:
			StringCopy(&Var2, "TORSO_P1_19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 202:
			StringCopy(&Var2, "TORSO_P1_19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 203:
			StringCopy(&Var2, "TORSO_P1_19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 480;
			iVar9 = 3;
			break;
		
		case 204:
			StringCopy(&Var2, "TORSO_P1_19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 520;
			iVar9 = 3;
			break;
		
		case 205:
			StringCopy(&Var2, "TORSO_P1_19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 520;
			iVar9 = 3;
			break;
		
		case 206:
			StringCopy(&Var2, "TORSO_P1_19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 520;
			iVar9 = 3;
			break;
		
		case 207:
			StringCopy(&Var2, "TORSO_P1_19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 440;
			iVar9 = 3;
			break;
		
		case 208:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 209:
			StringCopy(&Var2, "TORSO_P1_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 220;
			break;
		
		case 210:
			StringCopy(&Var2, "TORSO_P1_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 200;
			break;
		
		case 211:
			StringCopy(&Var2, "TORSO_P1_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 240;
			break;
		
		case 212:
			StringCopy(&Var2, "TORSO_P1_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 240;
			break;
		
		case 213:
			StringCopy(&Var2, "TORSO_P1_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 260;
			break;
		
		case 214:
			StringCopy(&Var2, "TORSO_P1_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 275;
			break;
		
		case 215:
			StringCopy(&Var2, "TORSO_P1_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 275;
			break;
		
		case 216:
			StringCopy(&Var2, "TORSO_P1_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 280;
			break;
		
		case 217:
			StringCopy(&Var2, "TORSO_P1_21_8", 16);
			iVar6 = 21;
			iVar7 = 8;
			iVar1 = 280;
			break;
		
		case 218:
			StringCopy(&Var2, "TORSO_P1_21_9", 16);
			iVar6 = 21;
			iVar7 = 9;
			iVar1 = 280;
			break;
		
		case 219:
			StringCopy(&Var2, "TORSO_P1_21_10", 16);
			iVar6 = 21;
			iVar7 = 10;
			iVar1 = 280;
			break;
		
		case 220:
			StringCopy(&Var2, "TORSO_P1_21_11", 16);
			iVar6 = 21;
			iVar7 = 11;
			iVar1 = 280;
			break;
		
		case 221:
			StringCopy(&Var2, "TORSO_P1_21_12", 16);
			iVar6 = 21;
			iVar7 = 12;
			iVar1 = 280;
			break;
		
		case 222:
			StringCopy(&Var2, "TORSO_P1_21_13", 16);
			iVar6 = 21;
			iVar7 = 13;
			iVar1 = 280;
			break;
		
		case 223:
			StringCopy(&Var2, "TORSO_P1_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar1 = 3100;
			iVar9 = 3;
			break;
		
		case 224:
			StringCopy(&Var2, "TORSO_P1_22_1", 16);
			iVar6 = 22;
			iVar7 = 1;
			iVar1 = 2800;
			iVar9 = 3;
			break;
		
		case 225:
			StringCopy(&Var2, "TORSO_P1_22_2", 16);
			iVar6 = 22;
			iVar7 = 2;
			iVar1 = 2500;
			iVar9 = 3;
			break;
		
		case 226:
			StringCopy(&Var2, "TORSO_P1_22_3", 16);
			iVar6 = 22;
			iVar7 = 3;
			iVar1 = 3000;
			iVar9 = 3;
			break;
		
		default:
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_219(int iParam0)//Position - 0x24591
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "TORSO_P1_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "TORSO_P1_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "TORSO_P1_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 180;
			break;
		
		case 3:
			StringCopy(&Var2, "TORSO_P1_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 22;
			break;
		
		case 4:
			StringCopy(&Var2, "TORSO_P1_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 20;
			break;
		
		case 5:
			StringCopy(&Var2, "TORSO_P1_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 18;
			break;
		
		case 6:
			StringCopy(&Var2, "TORSO_P1_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 19;
			break;
		
		case 7:
			StringCopy(&Var2, "TORSO_P1_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 22;
			break;
		
		case 8:
			StringCopy(&Var2, "TORSO_P1_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 20;
			break;
		
		case 9:
			StringCopy(&Var2, "TORSO_P1_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 19;
			break;
		
		case 10:
			StringCopy(&Var2, "TORSO_P1_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 19;
			break;
		
		case 11:
			StringCopy(&Var2, "TORSO_P1_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 18;
			break;
		
		case 12:
			StringCopy(&Var2, "TORSO_P1_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 20;
			break;
		
		case 13:
			StringCopy(&Var2, "TORSO_P1_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 22;
			break;
		
		case 14:
			StringCopy(&Var2, "TORSO_P1_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 19;
			break;
		
		case 15:
			StringCopy(&Var2, "TORSO_P1_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 22;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 22:
			StringCopy(&Var2, "TORSO_P1_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 3;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 1;
			break;
		
		case 24:
			StringCopy(&Var2, "TORSO_P1_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 20;
			iVar9 = 2;
			break;
		
		case 25:
			StringCopy(&Var2, "TORSO_P1_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 22;
			iVar9 = 2;
			break;
		
		case 26:
			StringCopy(&Var2, "TORSO_P1_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 20;
			iVar9 = 2;
			break;
		
		case 27:
			StringCopy(&Var2, "TORSO_P1_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 25;
			iVar9 = 2;
			break;
		
		case 28:
			StringCopy(&Var2, "TORSO_P1_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 23;
			iVar9 = 2;
			break;
		
		case 29:
			StringCopy(&Var2, "TORSO_P1_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 25;
			iVar9 = 2;
			break;
		
		case 30:
			StringCopy(&Var2, "TORSO_P1_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 28;
			iVar9 = 2;
			break;
		
		case 31:
			StringCopy(&Var2, "TORSO_P1_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 26;
			iVar9 = 2;
			break;
		
		case 32:
			StringCopy(&Var2, "TORSO_P1_4_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 24;
			iVar9 = 2;
			break;
		
		case 33:
			StringCopy(&Var2, "TORSO_P1_4_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 27;
			iVar9 = 2;
			break;
		
		case 34:
			StringCopy(&Var2, "TORSO_P1_4_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 29;
			iVar9 = 2;
			break;
		
		case 35:
			StringCopy(&Var2, "TORSO_P1_4_11", 16);
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 28;
			iVar9 = 2;
			break;
		
		case 36:
			StringCopy(&Var2, "TORSO_P1_4_12", 16);
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 25;
			iVar9 = 2;
			break;
		
		case 37:
			StringCopy(&Var2, "TORSO_P1_4_13", 16);
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 22;
			iVar9 = 2;
			break;
		
		case 38:
			StringCopy(&Var2, "TORSO_P1_4_14", 16);
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 27;
			iVar9 = 2;
			break;
		
		case 39:
			StringCopy(&Var2, "TORSO_P1_4_15", 16);
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 29;
			iVar9 = 2;
			break;
		
		case 40:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			iVar9 = 4;
			break;
		
		case 41:
			StringCopy(&Var2, "TORSO_P1_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 42:
			StringCopy(&Var2, "TORSO_P1_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 1270;
			iVar9 = 3;
			break;
		
		case 43:
			StringCopy(&Var2, "TORSO_P1_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 1270;
			iVar9 = 3;
			break;
		
		case 44:
			StringCopy(&Var2, "TORSO_P1_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 1270;
			iVar9 = 3;
			break;
		
		case 45:
			StringCopy(&Var2, "TORSO_P1_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 1090;
			iVar9 = 3;
			break;
		
		case 46:
			StringCopy(&Var2, "TORSO_P1_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 1090;
			iVar9 = 3;
			break;
		
		case 47:
			StringCopy(&Var2, "TORSO_P1_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 1120;
			iVar9 = 3;
			break;
		
		case 48:
			StringCopy(&Var2, "TORSO_P1_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 1120;
			iVar9 = 3;
			break;
		
		case 49:
			StringCopy(&Var2, "TORSO_P1_6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 1290;
			iVar9 = 3;
			break;
		
		case 50:
			StringCopy(&Var2, "TORSO_P1_6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 1290;
			iVar9 = 3;
			break;
		
		case 51:
			StringCopy(&Var2, "TORSO_P1_6_10", 16);
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 1320;
			iVar9 = 3;
			break;
		
		case 52:
			StringCopy(&Var2, "TORSO_P1_6_11", 16);
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 1320;
			iVar9 = 3;
			break;
		
		case 53:
			StringCopy(&Var2, "TORSO_P1_6_12", 16);
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 1590;
			iVar9 = 3;
			break;
		
		case 54:
			StringCopy(&Var2, "TORSO_P1_6_13", 16);
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 1590;
			iVar9 = 3;
			break;
		
		case 55:
			StringCopy(&Var2, "TORSO_P1_6_14", 16);
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 1590;
			iVar9 = 3;
			break;
		
		case 56:
			StringCopy(&Var2, "TORSO_P1_6_15", 16);
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 1320;
			iVar9 = 3;
			break;
		
		case 57:
			StringCopy(&Var2, "TORSO_P1_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 98;
			break;
		
		case 58:
			StringCopy(&Var2, "TORSO_P1_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 98;
			break;
		
		case 59:
			StringCopy(&Var2, "TORSO_P1_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 110;
			break;
		
		case 60:
			StringCopy(&Var2, "TORSO_P1_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 61:
			StringCopy(&Var2, "TORSO_P1_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 118;
			break;
		
		case 62:
			StringCopy(&Var2, "TORSO_P1_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 120;
			break;
		
		case 63:
			StringCopy(&Var2, "TORSO_P1_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 120;
			break;
		
		case 64:
			StringCopy(&Var2, "TORSO_P1_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 129;
			break;
		
		case 65:
			StringCopy(&Var2, "TORSO_P1_7_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 125;
			break;
		
		case 66:
			StringCopy(&Var2, "TORSO_P1_7_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 125;
			break;
		
		case 67:
			StringCopy(&Var2, "TORSO_P1_7_10", 16);
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 129;
			break;
		
		case 68:
			StringCopy(&Var2, "TORSO_P1_7_11", 16);
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 129;
			break;
		
		case 69:
			StringCopy(&Var2, "TORSO_P1_7_12", 16);
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 135;
			break;
		
		case 70:
			StringCopy(&Var2, "TORSO_P1_7_13", 16);
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 139;
			break;
		
		case 71:
			StringCopy(&Var2, "TORSO_P1_7_14", 16);
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 145;
			break;
		
		case 72:
			StringCopy(&Var2, "TORSO_P1_7_15", 16);
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 145;
			break;
		
		case 73:
			StringCopy(&Var2, "TORSO_P1_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 74:
			StringCopy(&Var2, "TORSO_P1_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			break;
		
		case 75:
			StringCopy(&Var2, "TORSO_P1_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			break;
		
		case 76:
			StringCopy(&Var2, "TORSO_P1_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			break;
		
		case 77:
			StringCopy(&Var2, "TORSO_P1_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 30;
			break;
		
		case 78:
			StringCopy(&Var2, "TORSO_P1_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 38;
			break;
		
		case 79:
			StringCopy(&Var2, "TORSO_P1_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 32;
			break;
		
		case 80:
			StringCopy(&Var2, "TORSO_P1_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 30;
			break;
		
		case 81:
			StringCopy(&Var2, "TORSO_P1_8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 33;
			break;
		
		case 82:
			StringCopy(&Var2, "TORSO_P1_8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 35;
			break;
		
		case 83:
			StringCopy(&Var2, "TORSO_P1_8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 35;
			break;
		
		case 84:
			StringCopy(&Var2, "TORSO_P1_8_11", 16);
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 38;
			break;
		
		case 85:
			StringCopy(&Var2, "TORSO_P1_8_12", 16);
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 33;
			break;
		
		case 86:
			StringCopy(&Var2, "TORSO_P1_8_13", 16);
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 35;
			break;
		
		case 87:
			StringCopy(&Var2, "TORSO_P1_8_14", 16);
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 38;
			break;
		
		case 88:
			StringCopy(&Var2, "TORSO_P1_8_15", 16);
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 32;
			break;
		
		case 89:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 90:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 91:
			StringCopy(&Var2, "TORSO_P1_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 92:
			StringCopy(&Var2, "TORSO_P1_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 59;
			break;
		
		case 93:
			StringCopy(&Var2, "TORSO_P1_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			break;
		
		case 94:
			StringCopy(&Var2, "TORSO_P1_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 25;
			break;
		
		case 95:
			StringCopy(&Var2, "TORSO_P1_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 29;
			break;
		
		case 96:
			StringCopy(&Var2, "TORSO_P1_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 27;
			break;
		
		case 97:
			StringCopy(&Var2, "TORSO_P1_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 25;
			break;
		
		case 98:
			StringCopy(&Var2, "TORSO_P1_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 27;
			break;
		
		case 99:
			StringCopy(&Var2, "TORSO_P1_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 28;
			break;
		
		case 100:
			StringCopy(&Var2, "TORSO_P1_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 30;
			break;
		
		case 101:
			StringCopy(&Var2, "TORSO_P1_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 29;
			break;
		
		case 102:
			StringCopy(&Var2, "TORSO_P1_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 27;
			break;
		
		case 103:
			StringCopy(&Var2, "TORSO_P1_11_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 29;
			break;
		
		case 104:
			StringCopy(&Var2, "TORSO_P1_11_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 32;
			break;
		
		case 105:
			StringCopy(&Var2, "TORSO_P1_11_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 30;
			break;
		
		case 106:
			StringCopy(&Var2, "TORSO_P1_11_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 28;
			break;
		
		default:
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_220(int iParam0)//Position - 0x251DA
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 2;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "HAIR_P1_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "HAIR_P1_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "HAIR_P1_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "HAIR_P1_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar9 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "HAIR_P1_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar9 = 3;
			break;
		
		case 5:
			StringCopy(&Var2, "HAIR_P1_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar9 = 3;
			break;
		
		case 6:
			StringCopy(&Var2, "HAIR_P1_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar9 = 3;
			break;
		
		case 7:
			StringCopy(&Var2, "HAIR_P1_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar9 = 3;
			break;
		
		case 8:
			StringCopy(&Var2, "HAIR_P1_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar9 = 3;
			break;
		
		case 9:
			StringCopy(&Var2, "HAIR_P1_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar9 = 3;
			break;
		
		case 10:
			StringCopy(&Var2, "HAIR_P1_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar9 = 3;
			break;
		
		case 11:
			StringCopy(&Var2, "HAIR_P1_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar9 = 3;
			break;
		
		case 12:
			StringCopy(&Var2, "HAIR_P1_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			iVar9 = 3;
			break;
		
		case 13:
			StringCopy(&Var2, "HAIR_P1_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			break;
		
		case 14:
			StringCopy(&Var2, "HAIR_P1_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			iVar9 = 3;
			break;
		
		case 15:
			StringCopy(&Var2, "HAIR_P1_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			iVar9 = 3;
			break;
		
		case 16:
			StringCopy(&Var2, "HAIR_P1_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 17:
			StringCopy(&Var2, "HAIR_P1_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 18:
			StringCopy(&Var2, "HAIR_P1_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar9 = 3;
			break;
		
		case 19:
			StringCopy(&Var2, "HAIR_P1_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_186(iVar10, iParam0, 21);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_221(int iParam0)//Position - 0x25452
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 0;
	Global_69438[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 8;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 9;
			break;
		
		default:
			func_186(iVar10, iParam0, 10);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_222(int iParam0, int iParam1)//Position - 0x25597
{
	switch (iParam0)
	{
		case 0:
			func_239(iParam1);
			break;
		
		case 2:
			func_238(iParam1);
			break;
		
		case 3:
			func_235(iParam1);
			break;
		
		case 4:
			func_234(iParam1);
			break;
		
		case 6:
			func_233(iParam1);
			break;
		
		case 5:
			func_232(iParam1);
			break;
		
		case 8:
			func_231(iParam1);
			break;
		
		case 9:
			func_230(iParam1);
			break;
		
		case 10:
			func_229(iParam1);
			break;
		
		case 1:
			func_228(iParam1);
			break;
		
		case 7:
			func_227(iParam1);
			break;
		
		case 11:
			func_226(iParam1);
			break;
		
		case 12:
			func_225(iParam1);
			break;
		
		case 13:
			func_224(iParam1);
			break;
		
		case 14:
			func_223(iParam1);
			break;
	}
}

void func_223(int iParam0)//Position - 0x25687
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 14;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 8;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "PROPS_P0_H1", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "PROPS_P0_H2", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 320;
			iVar8 = 11;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 27:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar8 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar8 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "PROPS_P0_H12", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 31:
			StringCopy(&Var2, "PROPS_P1_H8_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 32:
			StringCopy(&Var2, "PROPS_P1_H8_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 270;
			iVar8 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "PROPS_P1_H9_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "PROPS_P1_H9_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 200;
			iVar8 = 0;
			break;
		
		case 35:
			StringCopy(&Var2, "PROPS_P1_H10_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 36:
			StringCopy(&Var2, "PROPS_P1_H10_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 350;
			iVar8 = 0;
			break;
		
		case 37:
			StringCopy(&Var2, "PROPS_P1_H11_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 450;
			iVar8 = 0;
			break;
		
		case 38:
			StringCopy(&Var2, "PROPS_P1_H12_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 39:
			StringCopy(&Var2, "PROPS_P1_H12_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 500;
			iVar8 = 0;
			break;
		
		case 40:
			StringCopy(&Var2, "PROPS_P1_H13_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 41:
			StringCopy(&Var2, "PROPS_P1_H13_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 50;
			iVar8 = 0;
			break;
		
		case 42:
			StringCopy(&Var2, "PROPS_P1_H14_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 43:
			StringCopy(&Var2, "PROPS_P1_H14_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 44:
			StringCopy(&Var2, "PROPS_P1_H14_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 99;
			iVar8 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 47:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar8 = 0;
			break;
		
		case 49:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar8 = 0;
			break;
		
		case 50:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar8 = 0;
			break;
		
		case 51:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar8 = 0;
			break;
		
		case 52:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 5;
			iVar8 = 0;
			break;
		
		case 53:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 54:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 55:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 56:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 27;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 57:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 28;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 58:
			StringCopy(&Var2, "PROPS_P0_E0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 45;
			iVar8 = 10;
			break;
		
		case 59:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 10;
			break;
		
		case 60:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 10;
			break;
		
		case 61:
			StringCopy(&Var2, "PROPS_P0_E3", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 55;
			iVar8 = 10;
			break;
		
		case 62:
			StringCopy(&Var2, "PROPS_P0_E4", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 58;
			iVar8 = 10;
			break;
		
		case 63:
			StringCopy(&Var2, "PROPS_P0_E4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 56;
			iVar8 = 10;
			break;
		
		case 64:
			StringCopy(&Var2, "PROPS_P0_E4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 60;
			iVar8 = 10;
			break;
		
		case 65:
			StringCopy(&Var2, "PROPS_P0_E4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 66:
			StringCopy(&Var2, "PROPS_P0_E4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 62;
			iVar8 = 10;
			break;
		
		case 67:
			StringCopy(&Var2, "PROPS_P0_E4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 68:
			StringCopy(&Var2, "PROPS_P0_E4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 68;
			iVar8 = 10;
			break;
		
		case 69:
			StringCopy(&Var2, "PROPS_P0_E4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 68;
			iVar8 = 10;
			break;
		
		case 70:
			StringCopy(&Var2, "PROPS_P0_E5", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 65;
			iVar8 = 10;
			break;
		
		case 71:
			StringCopy(&Var2, "PROPS_P0_E5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 72:
			StringCopy(&Var2, "PROPS_P0_E5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 72;
			iVar8 = 10;
			break;
		
		case 73:
			StringCopy(&Var2, "PROPS_P0_E5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 70;
			iVar8 = 10;
			break;
		
		case 74:
			StringCopy(&Var2, "PROPS_P0_E5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 74;
			iVar8 = 10;
			break;
		
		case 75:
			StringCopy(&Var2, "PROPS_P0_E5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 78;
			iVar8 = 10;
			break;
		
		case 76:
			StringCopy(&Var2, "PROPS_P0_E5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 82;
			iVar8 = 10;
			break;
		
		case 77:
			StringCopy(&Var2, "PROPS_P0_E5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 85;
			iVar8 = 10;
			break;
		
		case 78:
			StringCopy(&Var2, "PROPS_P0_E5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 85;
			iVar8 = 10;
			break;
		
		case 79:
			StringCopy(&Var2, "PROPS_P0_E5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar8 = 10;
			break;
		
		case 80:
			StringCopy(&Var2, "PROPS_P0_E6", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 81:
			StringCopy(&Var2, "PROPS_P0_E6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 82:
			StringCopy(&Var2, "PROPS_P0_E6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 83:
			StringCopy(&Var2, "PROPS_P0_E6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 84:
			StringCopy(&Var2, "PROPS_P0_E6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 85:
			StringCopy(&Var2, "PROPS_P0_E6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 86:
			StringCopy(&Var2, "PROPS_P0_E6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 87:
			StringCopy(&Var2, "PROPS_P0_E6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 88:
			StringCopy(&Var2, "PROPS_P0_E6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 89:
			StringCopy(&Var2, "PROPS_P0_E6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 69;
			iVar8 = 10;
			break;
		
		case 90:
			StringCopy(&Var2, "PROPS_P0_E7", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar8 = 10;
			break;
		
		case 91:
			StringCopy(&Var2, "PROPS_P0_E8", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 170;
			iVar8 = 10;
			break;
		
		case 92:
			StringCopy(&Var2, "PROPS_P0_E8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 93:
			StringCopy(&Var2, "PROPS_P0_E8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 180;
			iVar8 = 10;
			break;
		
		case 94:
			StringCopy(&Var2, "PROPS_P0_E8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 185;
			iVar8 = 10;
			break;
		
		case 95:
			StringCopy(&Var2, "PROPS_P0_E8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 189;
			iVar8 = 10;
			break;
		
		case 96:
			StringCopy(&Var2, "PROPS_P0_E8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 195;
			iVar8 = 10;
			break;
		
		case 97:
			StringCopy(&Var2, "PROPS_P0_E8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 235;
			iVar8 = 10;
			break;
		
		case 98:
			StringCopy(&Var2, "PROPS_P0_E8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 245;
			iVar8 = 10;
			break;
		
		case 99:
			StringCopy(&Var2, "PROPS_P0_E8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 250;
			iVar8 = 10;
			break;
		
		case 100:
			StringCopy(&Var2, "PROPS_P0_E8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 275;
			iVar8 = 10;
			break;
		
		case 101:
			StringCopy(&Var2, "PROPS_P0_E8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 280;
			iVar8 = 10;
			break;
		
		case 102:
			StringCopy(&Var2, "PROPS_P0_E8_11", 16);
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 295;
			iVar8 = 10;
			break;
		
		case 103:
			StringCopy(&Var2, "PROPS_P0_E9", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 179;
			iVar8 = 10;
			break;
		
		case 104:
			StringCopy(&Var2, "PROPS_P0_E9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 159;
			iVar8 = 10;
			break;
		
		case 105:
			StringCopy(&Var2, "PROPS_P0_E9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 165;
			iVar8 = 10;
			break;
		
		case 106:
			StringCopy(&Var2, "PROPS_P0_E9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 155;
			iVar8 = 10;
			break;
		
		case 107:
			StringCopy(&Var2, "PROPS_P0_E9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 175;
			iVar8 = 10;
			break;
		
		case 108:
			StringCopy(&Var2, "PROPS_P0_E9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 185;
			iVar8 = 10;
			break;
		
		case 109:
			StringCopy(&Var2, "PROPS_P0_E9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 189;
			iVar8 = 10;
			break;
		
		case 110:
			StringCopy(&Var2, "PROPS_P0_E9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 225;
			iVar8 = 10;
			break;
		
		case 111:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 100;
			iVar8 = 10;
			break;
		
		case 112:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			iVar8 = 2;
			break;
		
		default:
			func_186(iVar10, iParam0, 113);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_224(int iParam0)//Position - 0x26410
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 13;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_186(iVar10, iParam0, 10);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_225(int iParam0)//Position - 0x26589
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 12;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "OUTFIT_P0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			StringCopy(&Var2, "OUTFIT_P0_1", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "OUTFIT_P0_4", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "OUTFIT_P0_7", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "OUTFIT_P0_8", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "OUTFIT_P0_9", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "OUTFIT_P0_11", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 9:
			StringCopy(&Var2, "OUTFIT_P0_12", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "OUTFIT_P0_14", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 12:
			StringCopy(&Var2, "OUTFIT_P0_17", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 13:
			StringCopy(&Var2, "OUTFIT_P0_18", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 14:
			StringCopy(&Var2, "OUTFIT_P0_19", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 15:
			StringCopy(&Var2, "OUTFIT_P0_20", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "OUTFIT_P0_22", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 17:
			StringCopy(&Var2, "OUTFIT_P0_23", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 18:
			StringCopy(&Var2, "OUTFIT_P0_24", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "OUTFIT_P0_26", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 20:
			StringCopy(&Var2, "OUTFIT_P0_28", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 21:
			StringCopy(&Var2, "OUTFIT_P0_29", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 22:
			StringCopy(&Var2, "OUTFIT_P0_30", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 105;
			break;
		
		case 23:
			StringCopy(&Var2, "OUTFIT_P0_31", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 24:
			StringCopy(&Var2, "OUTFIT_P0_32", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 25:
			StringCopy(&Var2, "OUTFIT_P0_33", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 26:
			StringCopy(&Var2, "OUTFIT_P0_34", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 27:
			StringCopy(&Var2, "OUTFIT_P0_35", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 28:
			StringCopy(&Var2, "OUTFIT_P0_11", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "OUTFIT_P0_36", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4900;
			break;
		
		case 30:
			StringCopy(&Var2, "OUTFIT_P0_37", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 840;
			break;
		
		case 31:
			StringCopy(&Var2, "OUTFIT_P0_38", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 32:
			StringCopy(&Var2, "OUTFIT_P0_39", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 33:
			StringCopy(&Var2, "OUTFIT_P0_40", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "OUTFIT_P0_41", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 35:
			StringCopy(&Var2, "OUTFIT_P0_42", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 36:
			StringCopy(&Var2, "OUTFIT_P0_43", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 37:
			StringCopy(&Var2, "OUTFIT_P0_44", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 3900;
			break;
		
		case 38:
			StringCopy(&Var2, "OUTFIT_P0_45", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4000;
			break;
		
		case 39:
			StringCopy(&Var2, "OUTFIT_P0_46", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 40:
			StringCopy(&Var2, "OUTFIT_P0_47", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4600;
			break;
		
		case 41:
			StringCopy(&Var2, "OUTFIT_P0_48", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5500;
			break;
		
		case 42:
			StringCopy(&Var2, "OUTFIT_P0_49", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4400;
			break;
		
		case 43:
			StringCopy(&Var2, "OUTFIT_P0_50", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4400;
			break;
		
		case 44:
			StringCopy(&Var2, "OUTFIT_P0_51", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4900;
			break;
		
		case 45:
			StringCopy(&Var2, "OUTFIT_P0_52", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5500;
			break;
		
		case 46:
			StringCopy(&Var2, "OUTFIT_P0_53", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 4500;
			break;
		
		case 47:
			StringCopy(&Var2, "OUTFIT_P0_54", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5900;
			break;
		
		case 48:
			StringCopy(&Var2, "OUTFIT_P0_55", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 49:
			StringCopy(&Var2, "OUTFIT_P0_17", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 50:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 51:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 52:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 53);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_226(int iParam0)//Position - 0x26AFF
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 11;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "JBIB_P0_02_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "JBIB_P0_02_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			break;
		
		case 4:
			StringCopy(&Var2, "JBIB_P0_02_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			break;
		
		case 5:
			StringCopy(&Var2, "JBIB_P0_02_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			break;
		
		case 6:
			StringCopy(&Var2, "JBIB_P0_02_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			break;
		
		case 7:
			StringCopy(&Var2, "JBIB_P0_02_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			break;
		
		case 8:
			StringCopy(&Var2, "JBIB_P0_03_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 390;
			break;
		
		case 9:
			StringCopy(&Var2, "JBIB_P0_03_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 390;
			break;
		
		case 10:
			StringCopy(&Var2, "JBIB_P0_03_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 420;
			break;
		
		case 11:
			StringCopy(&Var2, "JBIB_P0_03_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 420;
			break;
		
		case 12:
			StringCopy(&Var2, "JBIB_P0_03_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 490;
			break;
		
		case 13:
			StringCopy(&Var2, "JBIB_P0_03_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 490;
			break;
		
		case 14:
			StringCopy(&Var2, "JBIB_P0_03_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 540;
			break;
		
		case 15:
			StringCopy(&Var2, "JBIB_P0_03_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 540;
			break;
		
		case 16:
			StringCopy(&Var2, "JBIB_P0_03_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 550;
			break;
		
		case 17:
			StringCopy(&Var2, "JBIB_P0_03_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 540;
			break;
		
		case 18:
			StringCopy(&Var2, "JBIB_P0_04_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 850;
			break;
		
		case 19:
			StringCopy(&Var2, "JBIB_P0_04_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 850;
			break;
		
		case 20:
			StringCopy(&Var2, "JBIB_P0_04_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 890;
			break;
		
		case 21:
			StringCopy(&Var2, "JBIB_P0_04_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 890;
			break;
		
		case 22:
			StringCopy(&Var2, "JBIB_P0_04_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 920;
			break;
		
		case 23:
			StringCopy(&Var2, "JBIB_P0_04_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 920;
			break;
		
		case 24:
			StringCopy(&Var2, "JBIB_P0_04_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 950;
			break;
		
		case 25:
			StringCopy(&Var2, "JBIB_P0_04_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 980;
			break;
		
		case 26:
			StringCopy(&Var2, "JBIB_P0_04_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 1050;
			break;
		
		case 27:
			StringCopy(&Var2, "JBIB_P0_04_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 1100;
			break;
		
		case 28:
			StringCopy(&Var2, "JBIB_P0_05_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 1890;
			break;
		
		case 29:
			StringCopy(&Var2, "JBIB_P0_05_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 1820;
			break;
		
		case 30:
			StringCopy(&Var2, "JBIB_P0_05_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 1820;
			break;
		
		case 31:
			StringCopy(&Var2, "JBIB_P0_05_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 1850;
			break;
		
		case 32:
			StringCopy(&Var2, "JBIB_P0_05_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 1850;
			break;
		
		case 33:
			StringCopy(&Var2, "JBIB_P0_05_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 1900;
			break;
		
		case 34:
			StringCopy(&Var2, "JBIB_P0_05_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 1920;
			break;
		
		case 35:
			StringCopy(&Var2, "JBIB_P0_05_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 1980;
			break;
		
		case 36:
			StringCopy(&Var2, "JBIB_P0_05_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 2100;
			break;
		
		case 37:
			StringCopy(&Var2, "JBIB_P0_05_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 2120;
			break;
		
		case 38:
			StringCopy(&Var2, "JBIB_P0_05_10", 16);
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 2000;
			break;
		
		case 39:
			StringCopy(&Var2, "JBIB_P0_05_11", 16);
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 2200;
			break;
		
		case 40:
			StringCopy(&Var2, "JBIB_P0_05_12", 16);
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 2280;
			break;
		
		case 41:
			StringCopy(&Var2, "JBIB_P0_05_13", 16);
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 2300;
			break;
		
		case 42:
			StringCopy(&Var2, "JBIB_P0_05_14", 16);
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 2350;
			break;
		
		case 43:
			StringCopy(&Var2, "JBIB_P0_05_15", 16);
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 2280;
			break;
		
		case 44:
			StringCopy(&Var2, "JBIB_P0_06_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 45);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_227(int iParam0)//Position - 0x27028
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 7;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 1);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_228(int iParam0)//Position - 0x2709B
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 1;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "BERD_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "BERD_P0_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "BERD_P0_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "BERD_P0_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "BERD_P0_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 5);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_229(int iParam0)//Position - 0x2716A
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 10;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 1;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 2;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 3;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 4;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 5;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 6;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 7;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 1;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 2;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 3;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 4;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 5;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 1;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 2;
			break;
		
		case 24:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 3;
			break;
		
		case 25:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 4;
			break;
		
		case 26:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 5;
			break;
		
		case 27:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 6;
			break;
		
		case 28:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 29:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 1;
			break;
		
		case 30:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 2;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 3;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 4;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 5;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 6;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 7;
			break;
		
		case 36:
			StringCopy(&Var2, "DECL_P0_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			break;
		
		case 37:
			StringCopy(&Var2, "DECL_P0_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			break;
		
		case 38:
			StringCopy(&Var2, "DECL_P0_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			break;
		
		case 39:
			StringCopy(&Var2, "DECL_P0_10_11", 16);
			iVar6 = 10;
			iVar7 = 11;
			break;
		
		case 40:
			StringCopy(&Var2, "DECL_P0_10_12", 16);
			iVar6 = 10;
			iVar7 = 12;
			break;
		
		case 41:
			StringCopy(&Var2, "DECL_P0_10_13", 16);
			iVar6 = 10;
			iVar7 = 13;
			break;
		
		case 42:
			StringCopy(&Var2, "DECL_P0_10_14", 16);
			iVar6 = 10;
			iVar7 = 14;
			break;
		
		case 43:
			StringCopy(&Var2, "DECL_P0_10_15", 16);
			iVar6 = 10;
			iVar7 = 15;
			break;
		
		case 44:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 1;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 2;
			break;
		
		case 47:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 3;
			break;
		
		default:
			func_186(iVar10, iParam0, 48);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_230(int iParam0)//Position - 0x27641
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 9;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 1;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "SPEC2_P0_08_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 125;
			break;
		
		case 10:
			StringCopy(&Var2, "SPEC2_P0_08_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 150;
			break;
		
		case 11:
			StringCopy(&Var2, "SPEC2_P0_08_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 175;
			break;
		
		case 12:
			StringCopy(&Var2, "SPEC2_P0_08_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 85;
			break;
		
		case 13:
			StringCopy(&Var2, "SPEC2_P0_08_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 14:
			StringCopy(&Var2, "SPEC2_P0_08_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 175;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_186(iVar10, iParam0, 20);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_231(int iParam0)//Position - 0x278A9
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 8;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "SPEC_P0_10", 16);
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "SPEC_P0_16", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 23:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_186(iVar10, iParam0, 24);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_232(int iParam0)//Position - 0x27B7E
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 5;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		default:
			func_186(iVar10, iParam0, 14);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_233(int iParam0)//Position - 0x27D46
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 6;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "FEET_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "FEET_P0_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 665;
			break;
		
		case 2:
			StringCopy(&Var2, "FEET_P0_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 620;
			break;
		
		case 3:
			StringCopy(&Var2, "FEET_P0_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 540;
			break;
		
		case 4:
			StringCopy(&Var2, "FEET_P0_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 580;
			break;
		
		case 5:
			StringCopy(&Var2, "FEET_P0_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 650;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 7:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 8:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 9:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 12:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "FEET_P0_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 20:
			StringCopy(&Var2, "FEET_P0_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 21:
			StringCopy(&Var2, "FEET_P0_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 64;
			break;
		
		case 22:
			StringCopy(&Var2, "FEET_P0_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 56;
			break;
		
		case 23:
			StringCopy(&Var2, "FEET_P0_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 69;
			break;
		
		case 24:
			StringCopy(&Var2, "FEET_P0_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 59;
			break;
		
		case 25:
			StringCopy(&Var2, "FEET_P0_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 62;
			break;
		
		case 26:
			StringCopy(&Var2, "FEET_P0_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 74;
			break;
		
		case 27:
			StringCopy(&Var2, "FEET_P0_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 68;
			break;
		
		case 28:
			StringCopy(&Var2, "FEET_P0_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 72;
			break;
		
		case 29:
			StringCopy(&Var2, "FEET_P0_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 70;
			break;
		
		case 30:
			StringCopy(&Var2, "FEET_P0_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 48;
			break;
		
		case 31:
			StringCopy(&Var2, "FEET_P0_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 48;
			break;
		
		case 32:
			StringCopy(&Var2, "FEET_P0_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 55;
			break;
		
		case 33:
			StringCopy(&Var2, "FEET_P0_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 75;
			break;
		
		case 34:
			StringCopy(&Var2, "FEET_P0_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 65;
			break;
		
		case 35:
			StringCopy(&Var2, "FEET_P0_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 68;
			break;
		
		case 36:
			StringCopy(&Var2, "FEET_P0_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 58;
			break;
		
		case 37:
			StringCopy(&Var2, "FEET_P0_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 68;
			break;
		
		case 38:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 39:
			StringCopy(&Var2, "FEET_P0_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 790;
			break;
		
		case 40:
			StringCopy(&Var2, "FEET_P0_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 750;
			break;
		
		case 41:
			StringCopy(&Var2, "FEET_P0_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 860;
			break;
		
		case 42:
			StringCopy(&Var2, "FEET_P0_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 750;
			break;
		
		case 43:
			StringCopy(&Var2, "FEET_P0_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 790;
			break;
		
		case 44:
			StringCopy(&Var2, "FEET_P0_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 45:
			StringCopy(&Var2, "FEET_P0_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 820;
			break;
		
		case 46:
			StringCopy(&Var2, "FEET_P0_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 800;
			break;
		
		case 47:
			StringCopy(&Var2, "FEET_P0_18_8", 16);
			iVar6 = 18;
			iVar7 = 8;
			iVar1 = 850;
			break;
		
		case 48:
			StringCopy(&Var2, "FEET_P0_18_9", 16);
			iVar6 = 18;
			iVar7 = 9;
			iVar1 = 870;
			break;
		
		case 49:
			StringCopy(&Var2, "FEET_P0_18_10", 16);
			iVar6 = 18;
			iVar7 = 10;
			iVar1 = 720;
			break;
		
		case 50:
			StringCopy(&Var2, "FEET_P0_18_11", 16);
			iVar6 = 18;
			iVar7 = 11;
			iVar1 = 740;
			break;
		
		case 51:
			StringCopy(&Var2, "FEET_P0_18_12", 16);
			iVar6 = 18;
			iVar7 = 12;
			iVar1 = 800;
			break;
		
		case 52:
			StringCopy(&Var2, "FEET_P0_18_13", 16);
			iVar6 = 18;
			iVar7 = 13;
			iVar1 = 750;
			break;
		
		case 53:
			StringCopy(&Var2, "FEET_P0_18_14", 16);
			iVar6 = 18;
			iVar7 = 14;
			iVar1 = 770;
			break;
		
		case 54:
			StringCopy(&Var2, "FEET_P0_18_15", 16);
			iVar6 = 18;
			iVar7 = 15;
			iVar1 = 860;
			break;
		
		case 55:
			StringCopy(&Var2, "FEET_P0_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar1 = 850;
			break;
		
		case 56:
			StringCopy(&Var2, "FEET_P0_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 800;
			break;
		
		case 57:
			StringCopy(&Var2, "FEET_P0_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 780;
			break;
		
		case 58:
			StringCopy(&Var2, "FEET_P0_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 890;
			break;
		
		case 59:
			StringCopy(&Var2, "FEET_P0_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 820;
			break;
		
		case 60:
			StringCopy(&Var2, "FEET_P0_19_5", 16);
			iVar6 = 19;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 61:
			StringCopy(&Var2, "FEET_P0_19_6", 16);
			iVar6 = 19;
			iVar7 = 6;
			iVar1 = 870;
			break;
		
		case 62:
			StringCopy(&Var2, "FEET_P0_19_7", 16);
			iVar6 = 19;
			iVar7 = 7;
			iVar1 = 930;
			break;
		
		case 63:
			StringCopy(&Var2, "FEET_P0_19_8", 16);
			iVar6 = 19;
			iVar7 = 8;
			iVar1 = 880;
			break;
		
		case 64:
			StringCopy(&Var2, "FEET_P0_19_9", 16);
			iVar6 = 19;
			iVar7 = 9;
			iVar1 = 900;
			break;
		
		case 65:
			StringCopy(&Var2, "FEET_P0_19_10", 16);
			iVar6 = 19;
			iVar7 = 10;
			iVar1 = 920;
			break;
		
		case 66:
			StringCopy(&Var2, "FEET_P0_19_11", 16);
			iVar6 = 19;
			iVar7 = 11;
			iVar1 = 970;
			break;
		
		case 67:
			StringCopy(&Var2, "FEET_P0_19_12", 16);
			iVar6 = 19;
			iVar7 = 12;
			iVar1 = 990;
			break;
		
		case 68:
			StringCopy(&Var2, "FEET_P0_19_13", 16);
			iVar6 = 19;
			iVar7 = 13;
			iVar1 = 960;
			break;
		
		case 69:
			StringCopy(&Var2, "FEET_P0_19_14", 16);
			iVar6 = 19;
			iVar7 = 14;
			iVar1 = 980;
			break;
		
		case 70:
			StringCopy(&Var2, "FEET_P0_19_15", 16);
			iVar6 = 19;
			iVar7 = 15;
			iVar1 = 950;
			break;
		
		case 71:
			StringCopy(&Var2, "FEET_P0_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			iVar1 = 110;
			break;
		
		case 72:
			StringCopy(&Var2, "FEET_P0_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 73:
			StringCopy(&Var2, "FEET_P0_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 120;
			break;
		
		case 74:
			StringCopy(&Var2, "FEET_P0_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 75:
			StringCopy(&Var2, "FEET_P0_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			iVar1 = 125;
			break;
		
		case 76:
			StringCopy(&Var2, "FEET_P0_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 128;
			break;
		
		case 77:
			StringCopy(&Var2, "FEET_P0_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 135;
			break;
		
		case 78:
			StringCopy(&Var2, "FEET_P0_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 79:
			StringCopy(&Var2, "FEET_P0_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 145;
			break;
		
		case 80:
			StringCopy(&Var2, "FEET_P0_20_9", 16);
			iVar6 = 20;
			iVar7 = 9;
			iVar1 = 110;
			break;
		
		case 81:
			StringCopy(&Var2, "FEET_P0_20_10", 16);
			iVar6 = 20;
			iVar7 = 10;
			iVar1 = 120;
			break;
		
		case 82:
			StringCopy(&Var2, "FEET_P0_20_11", 16);
			iVar6 = 20;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 83:
			StringCopy(&Var2, "FEET_P0_20_12", 16);
			iVar6 = 20;
			iVar7 = 12;
			iVar1 = 125;
			break;
		
		case 84:
			StringCopy(&Var2, "FEET_P0_20_13", 16);
			iVar6 = 20;
			iVar7 = 13;
			iVar1 = 120;
			break;
		
		case 85:
			StringCopy(&Var2, "FEET_P0_20_14", 16);
			iVar6 = 20;
			iVar7 = 14;
			iVar1 = 130;
			break;
		
		case 86:
			StringCopy(&Var2, "FEET_P0_20_15", 16);
			iVar6 = 20;
			iVar7 = 15;
			iVar1 = 110;
			break;
		
		case 87:
			StringCopy(&Var2, "FEET_P0_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 720;
			break;
		
		case 88:
			StringCopy(&Var2, "FEET_P0_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 680;
			break;
		
		case 89:
			StringCopy(&Var2, "FEET_P0_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 650;
			break;
		
		case 90:
			StringCopy(&Var2, "FEET_P0_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 670;
			break;
		
		case 91:
			StringCopy(&Var2, "FEET_P0_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 700;
			break;
		
		case 92:
			StringCopy(&Var2, "FEET_P0_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 680;
			break;
		
		case 93:
			StringCopy(&Var2, "FEET_P0_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 720;
			break;
		
		case 94:
			StringCopy(&Var2, "FEET_P0_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 740;
			break;
		
		case 95:
			StringCopy(&Var2, "FEET_P0_21_8", 16);
			iVar6 = 21;
			iVar7 = 8;
			iVar1 = 760;
			break;
		
		case 96:
			StringCopy(&Var2, "FEET_P0_21_9", 16);
			iVar6 = 21;
			iVar7 = 9;
			iVar1 = 780;
			break;
		
		case 97:
			StringCopy(&Var2, "FEET_P0_21_10", 16);
			iVar6 = 21;
			iVar7 = 10;
			iVar1 = 750;
			break;
		
		case 98:
			StringCopy(&Var2, "FEET_P0_21_11", 16);
			iVar6 = 21;
			iVar7 = 11;
			iVar1 = 700;
			break;
		
		default:
			func_186(iVar10, iParam0, 99);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_234(int iParam0)//Position - 0x2889B
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 4;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "LEGS_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "LEGS_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "LEGS_P0_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "LEGS_P0_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "LEGS_P0_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "LEGS_P0_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "LEGS_P0_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "LEGS_P0_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "LEGS_P0_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			break;
		
		case 9:
			StringCopy(&Var2, "LEGS_P0_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			break;
		
		case 10:
			StringCopy(&Var2, "LEGS_P0_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			break;
		
		case 11:
			StringCopy(&Var2, "LEGS_P0_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			break;
		
		case 12:
			StringCopy(&Var2, "LEGS_P0_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			break;
		
		case 13:
			StringCopy(&Var2, "LEGS_P0_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			break;
		
		case 14:
			StringCopy(&Var2, "LEGS_P0_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			break;
		
		case 15:
			StringCopy(&Var2, "LEGS_P0_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 21:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 22:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 23:
			StringCopy(&Var2, "LEGS_P0_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 24:
			StringCopy(&Var2, "LEGS_P0_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 25:
			StringCopy(&Var2, "LEGS_P0_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 128;
			break;
		
		case 26:
			StringCopy(&Var2, "LEGS_P0_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 118;
			break;
		
		case 27:
			StringCopy(&Var2, "LEGS_P0_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 125;
			break;
		
		case 28:
			StringCopy(&Var2, "LEGS_P0_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 128;
			break;
		
		case 29:
			StringCopy(&Var2, "LEGS_P0_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 128;
			break;
		
		case 30:
			StringCopy(&Var2, "LEGS_P0_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 125;
			break;
		
		case 31:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 36:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 37:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 38:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 39:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 40:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 41:
			StringCopy(&Var2, "LEGS_P0_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 68;
			break;
		
		case 42:
			StringCopy(&Var2, "LEGS_P0_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 68;
			break;
		
		case 43:
			StringCopy(&Var2, "LEGS_P0_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 68;
			break;
		
		case 44:
			StringCopy(&Var2, "LEGS_P0_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 68;
			break;
		
		case 45:
			StringCopy(&Var2, "LEGS_P0_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 68;
			break;
		
		case 46:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 47:
			StringCopy(&Var2, "LEGS_P0_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		case 48:
			StringCopy(&Var2, "LEGS_P0_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 550;
			break;
		
		case 49:
			StringCopy(&Var2, "LEGS_P0_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 650;
			break;
		
		case 50:
			StringCopy(&Var2, "LEGS_P0_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 875;
			break;
		
		case 51:
			StringCopy(&Var2, "LEGS_P0_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 820;
			break;
		
		case 52:
			StringCopy(&Var2, "LEGS_P0_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 720;
			break;
		
		case 53:
			StringCopy(&Var2, "LEGS_P0_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 750;
			break;
		
		case 54:
			StringCopy(&Var2, "LEGS_P0_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 850;
			break;
		
		case 55:
			StringCopy(&Var2, "LEGS_P0_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 56:
			StringCopy(&Var2, "LEGS_P0_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 48;
			break;
		
		case 57:
			StringCopy(&Var2, "LEGS_P0_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 48;
			break;
		
		case 58:
			StringCopy(&Var2, "LEGS_P0_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 38;
			break;
		
		case 59:
			StringCopy(&Var2, "LEGS_P0_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 38;
			break;
		
		case 60:
			StringCopy(&Var2, "LEGS_P0_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 42;
			break;
		
		case 61:
			StringCopy(&Var2, "LEGS_P0_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 58;
			break;
		
		case 62:
			StringCopy(&Var2, "LEGS_P0_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 46;
			break;
		
		case 63:
			StringCopy(&Var2, "LEGS_P0_16_8", 16);
			iVar6 = 16;
			iVar7 = 8;
			iVar1 = 46;
			break;
		
		case 64:
			StringCopy(&Var2, "LEGS_P0_16_9", 16);
			iVar6 = 16;
			iVar7 = 9;
			iVar1 = 46;
			break;
		
		case 65:
			StringCopy(&Var2, "LEGS_P0_16_10", 16);
			iVar6 = 16;
			iVar7 = 10;
			iVar1 = 68;
			break;
		
		case 66:
			StringCopy(&Var2, "LEGS_P0_16_11", 16);
			iVar6 = 16;
			iVar7 = 11;
			iVar1 = 58;
			break;
		
		case 67:
			StringCopy(&Var2, "LEGS_P0_16_12", 16);
			iVar6 = 16;
			iVar7 = 12;
			iVar1 = 50;
			break;
		
		case 68:
			StringCopy(&Var2, "LEGS_P0_16_13", 16);
			iVar6 = 16;
			iVar7 = 13;
			iVar1 = 68;
			break;
		
		case 69:
			StringCopy(&Var2, "LEGS_P0_16_14", 16);
			iVar6 = 16;
			iVar7 = 14;
			iVar1 = 68;
			break;
		
		case 70:
			StringCopy(&Var2, "LEGS_P0_16_15", 16);
			iVar6 = 16;
			iVar7 = 15;
			iVar1 = 42;
			break;
		
		case 71:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 72:
			StringCopy(&Var2, "LEGS_P0_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			break;
		
		case 73:
			StringCopy(&Var2, "LEGS_P0_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 250;
			break;
		
		case 74:
			StringCopy(&Var2, "LEGS_P0_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 250;
			break;
		
		case 75:
			StringCopy(&Var2, "LEGS_P0_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 290;
			break;
		
		case 76:
			StringCopy(&Var2, "LEGS_P0_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 270;
			break;
		
		case 77:
			StringCopy(&Var2, "LEGS_P0_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 270;
			break;
		
		case 78:
			StringCopy(&Var2, "LEGS_P0_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 15;
			break;
		
		case 79:
			StringCopy(&Var2, "LEGS_P0_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 12;
			break;
		
		case 80:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 19;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 81:
			StringCopy(&Var2, "LEGS_P0_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			break;
		
		case 82:
			StringCopy(&Var2, "LEGS_P0_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 118;
			break;
		
		case 83:
			StringCopy(&Var2, "LEGS_P0_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 110;
			break;
		
		case 84:
			StringCopy(&Var2, "LEGS_P0_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 88;
			break;
		
		case 85:
			StringCopy(&Var2, "LEGS_P0_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 86:
			StringCopy(&Var2, "LEGS_P0_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 95;
			break;
		
		case 87:
			StringCopy(&Var2, "LEGS_P0_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 98;
			break;
		
		case 88:
			StringCopy(&Var2, "LEGS_P0_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			iVar1 = 140;
			break;
		
		case 89:
			StringCopy(&Var2, "LEGS_P0_23_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			break;
		
		case 90:
			StringCopy(&Var2, "LEGS_P0_23_1", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar1 = 150;
			break;
		
		case 91:
			StringCopy(&Var2, "LEGS_P0_23_2", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar1 = 130;
			break;
		
		case 92:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 93:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 26;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 95:
			StringCopy(&Var2, "LEGS_P0_27_0", 16);
			iVar6 = 27;
			iVar7 = 0;
			break;
		
		case 96:
			StringCopy(&Var2, "LEGS_P0_28_0", 16);
			iVar6 = 28;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 97:
			StringCopy(&Var2, "LEGS_P0_28_1", 16);
			iVar6 = 28;
			iVar7 = 1;
			iVar1 = 48;
			break;
		
		case 98:
			StringCopy(&Var2, "LEGS_P0_28_2", 16);
			iVar6 = 28;
			iVar7 = 2;
			iVar1 = 48;
			break;
		
		case 99:
			StringCopy(&Var2, "LEGS_P0_28_3", 16);
			iVar6 = 28;
			iVar7 = 3;
			iVar1 = 52;
			break;
		
		case 100:
			StringCopy(&Var2, "LEGS_P0_28_4", 16);
			iVar6 = 28;
			iVar7 = 4;
			iVar1 = 52;
			break;
		
		case 101:
			StringCopy(&Var2, "LEGS_P0_28_5", 16);
			iVar6 = 28;
			iVar7 = 5;
			iVar1 = 55;
			break;
		
		case 102:
			StringCopy(&Var2, "LEGS_P0_28_6", 16);
			iVar6 = 28;
			iVar7 = 6;
			iVar1 = 55;
			break;
		
		case 103:
			StringCopy(&Var2, "LEGS_P0_28_7", 16);
			iVar6 = 28;
			iVar7 = 7;
			iVar1 = 55;
			break;
		
		case 104:
			StringCopy(&Var2, "LEGS_P0_28_8", 16);
			iVar6 = 28;
			iVar7 = 8;
			iVar1 = 58;
			break;
		
		case 105:
			StringCopy(&Var2, "LEGS_P0_28_9", 16);
			iVar6 = 28;
			iVar7 = 9;
			iVar1 = 58;
			break;
		
		case 106:
			StringCopy(&Var2, "LEGS_P0_28_10", 16);
			iVar6 = 28;
			iVar7 = 10;
			iVar1 = 60;
			break;
		
		case 107:
			StringCopy(&Var2, "LEGS_P0_28_11", 16);
			iVar6 = 28;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 108:
			StringCopy(&Var2, "LEGS_P0_28_12", 16);
			iVar6 = 28;
			iVar7 = 12;
			iVar1 = 62;
			break;
		
		case 109:
			StringCopy(&Var2, "LEGS_P0_28_13", 16);
			iVar6 = 28;
			iVar7 = 13;
			iVar1 = 62;
			break;
		
		case 110:
			StringCopy(&Var2, "LEGS_P0_28_14", 16);
			iVar6 = 28;
			iVar7 = 14;
			iVar1 = 65;
			break;
		
		case 111:
			StringCopy(&Var2, "LEGS_P0_28_15", 16);
			iVar6 = 28;
			iVar7 = 15;
			iVar1 = 65;
			break;
		
		case 112:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 29;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 113);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_235(int iParam0)//Position - 0x294E4
{
	if (iParam0 < 60)
	{
		func_237(iParam0);
	}
	else
	{
		func_236(iParam0);
	}
	if (Global_69438[0 /*14*/].f_2 == -1)
	{
		func_186(3, iParam0, 181);
	}
}

void func_236(int iParam0)//Position - 0x29518
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 60:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 61:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 62:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 63:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 64:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 65:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 66:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 67:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 68:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 69:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 70:
			StringCopy(&Var2, "TORSO_P0_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 120;
			break;
		
		case 71:
			StringCopy(&Var2, "TORSO_P0_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 120;
			break;
		
		case 72:
			StringCopy(&Var2, "TORSO_P0_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 120;
			break;
		
		case 73:
			StringCopy(&Var2, "TORSO_P0_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 120;
			break;
		
		case 74:
			StringCopy(&Var2, "TORSO_P0_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 120;
			break;
		
		case 75:
			StringCopy(&Var2, "TORSO_P0_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 120;
			break;
		
		case 76:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 77:
			StringCopy(&Var2, "TORSO_P0_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			break;
		
		case 78:
			StringCopy(&Var2, "TORSO_P0_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 20;
			break;
		
		case 79:
			StringCopy(&Var2, "TORSO_P0_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 24;
			break;
		
		case 80:
			StringCopy(&Var2, "TORSO_P0_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 22;
			break;
		
		case 81:
			StringCopy(&Var2, "TORSO_P0_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 25;
			break;
		
		case 82:
			StringCopy(&Var2, "TORSO_P0_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 25;
			break;
		
		case 83:
			StringCopy(&Var2, "TORSO_P0_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 22;
			break;
		
		case 84:
			StringCopy(&Var2, "TORSO_P0_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 27;
			break;
		
		case 85:
			StringCopy(&Var2, "TORSO_P0_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			break;
		
		case 86:
			StringCopy(&Var2, "TORSO_P0_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			break;
		
		case 87:
			StringCopy(&Var2, "TORSO_P0_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			break;
		
		case 88:
			StringCopy(&Var2, "TORSO_P0_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 48;
			break;
		
		case 89:
			StringCopy(&Var2, "TORSO_P0_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 40;
			break;
		
		case 90:
			StringCopy(&Var2, "TORSO_P0_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 45;
			break;
		
		case 91:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 92:
			StringCopy(&Var2, "TORSO_P0_19_0", 16);
			iVar6 = 19;
			iVar7 = 0;
			break;
		
		case 93:
			StringCopy(&Var2, "TORSO_P0_19_1", 16);
			iVar6 = 19;
			iVar7 = 1;
			iVar1 = 190;
			break;
		
		case 94:
			StringCopy(&Var2, "TORSO_P0_19_2", 16);
			iVar6 = 19;
			iVar7 = 2;
			iVar1 = 190;
			break;
		
		case 95:
			StringCopy(&Var2, "TORSO_P0_19_3", 16);
			iVar6 = 19;
			iVar7 = 3;
			iVar1 = 190;
			break;
		
		case 96:
			StringCopy(&Var2, "TORSO_P0_19_4", 16);
			iVar6 = 19;
			iVar7 = 4;
			iVar1 = 210;
			break;
		
		case 97:
			StringCopy(&Var2, "TORSO_P0_20_0", 16);
			iVar6 = 20;
			iVar7 = 0;
			break;
		
		case 98:
			StringCopy(&Var2, "TORSO_P0_20_1", 16);
			iVar6 = 20;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 99:
			StringCopy(&Var2, "TORSO_P0_20_2", 16);
			iVar6 = 20;
			iVar7 = 2;
			iVar1 = 55;
			break;
		
		case 100:
			StringCopy(&Var2, "TORSO_P0_20_3", 16);
			iVar6 = 20;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 101:
			StringCopy(&Var2, "TORSO_P0_20_4", 16);
			iVar6 = 20;
			iVar7 = 4;
			iVar1 = 99;
			break;
		
		case 102:
			StringCopy(&Var2, "TORSO_P0_20_5", 16);
			iVar6 = 20;
			iVar7 = 5;
			iVar1 = 49;
			break;
		
		case 103:
			StringCopy(&Var2, "TORSO_P0_20_6", 16);
			iVar6 = 20;
			iVar7 = 6;
			iVar1 = 120;
			break;
		
		case 104:
			StringCopy(&Var2, "TORSO_P0_20_7", 16);
			iVar6 = 20;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 105:
			StringCopy(&Var2, "TORSO_P0_20_8", 16);
			iVar6 = 20;
			iVar7 = 8;
			iVar1 = 115;
			break;
		
		case 106:
			StringCopy(&Var2, "TORSO_P0_20_9", 16);
			iVar6 = 20;
			iVar7 = 9;
			iVar1 = 105;
			break;
		
		case 107:
			StringCopy(&Var2, "TORSO_P0_20_10", 16);
			iVar6 = 20;
			iVar7 = 10;
			iVar1 = 90;
			break;
		
		case 108:
			StringCopy(&Var2, "TORSO_P0_20_11", 16);
			iVar6 = 20;
			iVar7 = 11;
			iVar1 = 95;
			break;
		
		case 109:
			StringCopy(&Var2, "TORSO_P0_20_12", 16);
			iVar6 = 20;
			iVar7 = 12;
			iVar1 = 39;
			break;
		
		case 110:
			StringCopy(&Var2, "TORSO_P0_20_13", 16);
			iVar6 = 20;
			iVar7 = 13;
			iVar1 = 95;
			break;
		
		case 111:
			StringCopy(&Var2, "TORSO_P0_20_14", 16);
			iVar6 = 20;
			iVar7 = 14;
			iVar1 = 35;
			break;
		
		case 112:
			StringCopy(&Var2, "TORSO_P0_20_15", 16);
			iVar6 = 20;
			iVar7 = 15;
			iVar1 = 95;
			break;
		
		case 113:
			StringCopy(&Var2, "TORSO_P0_21_0", 16);
			iVar6 = 21;
			iVar7 = 0;
			iVar1 = 88;
			break;
		
		case 114:
			StringCopy(&Var2, "TORSO_P0_21_1", 16);
			iVar6 = 21;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 115:
			StringCopy(&Var2, "TORSO_P0_21_2", 16);
			iVar6 = 21;
			iVar7 = 2;
			iVar1 = 70;
			break;
		
		case 116:
			StringCopy(&Var2, "TORSO_P0_21_3", 16);
			iVar6 = 21;
			iVar7 = 3;
			iVar1 = 80;
			break;
		
		case 117:
			StringCopy(&Var2, "TORSO_P0_21_4", 16);
			iVar6 = 21;
			iVar7 = 4;
			iVar1 = 90;
			break;
		
		case 118:
			StringCopy(&Var2, "TORSO_P0_21_5", 16);
			iVar6 = 21;
			iVar7 = 5;
			iVar1 = 80;
			break;
		
		case 119:
			StringCopy(&Var2, "TORSO_P0_21_6", 16);
			iVar6 = 21;
			iVar7 = 6;
			iVar1 = 70;
			break;
		
		case 120:
			StringCopy(&Var2, "TORSO_P0_21_7", 16);
			iVar6 = 21;
			iVar7 = 7;
			iVar1 = 95;
			break;
		
		case 121:
			StringCopy(&Var2, "TORSO_P0_21_8", 16);
			iVar6 = 21;
			iVar7 = 8;
			iVar1 = 105;
			break;
		
		case 122:
			StringCopy(&Var2, "TORSO_P0_21_9", 16);
			iVar6 = 21;
			iVar7 = 9;
			iVar1 = 95;
			break;
		
		case 123:
			StringCopy(&Var2, "TORSO_P0_21_10", 16);
			iVar6 = 21;
			iVar7 = 10;
			iVar1 = 110;
			break;
		
		case 124:
			StringCopy(&Var2, "TORSO_P0_21_11", 16);
			iVar6 = 21;
			iVar7 = 11;
			iVar1 = 98;
			break;
		
		case 125:
			StringCopy(&Var2, "TORSO_P0_21_12", 16);
			iVar6 = 21;
			iVar7 = 12;
			iVar1 = 88;
			break;
		
		case 126:
			StringCopy(&Var2, "TORSO_P0_21_13", 16);
			iVar6 = 21;
			iVar7 = 13;
			iVar1 = 98;
			break;
		
		case 127:
			StringCopy(&Var2, "TORSO_P0_21_14", 16);
			iVar6 = 21;
			iVar7 = 14;
			iVar1 = 110;
			break;
		
		case 128:
			StringCopy(&Var2, "TORSO_P0_21_15", 16);
			iVar6 = 21;
			iVar7 = 15;
			iVar1 = 98;
			break;
		
		case 129:
			StringCopy(&Var2, "TORSO_P0_22_0", 16);
			iVar6 = 22;
			iVar7 = 0;
			break;
		
		case 130:
			StringCopy(&Var2, "TORSO_P0_22_1", 16);
			iVar6 = 22;
			iVar7 = 1;
			iVar1 = 4950;
			break;
		
		case 131:
			StringCopy(&Var2, "TORSO_P0_22_2", 16);
			iVar6 = 22;
			iVar7 = 2;
			iVar1 = 4195;
			break;
		
		case 132:
			StringCopy(&Var2, "TORSO_P0_22_3", 16);
			iVar6 = 22;
			iVar7 = 3;
			iVar1 = 3195;
			break;
		
		case 133:
			StringCopy(&Var2, "TORSO_P0_22_4", 16);
			iVar6 = 22;
			iVar7 = 4;
			iVar1 = 2950;
			break;
		
		case 134:
			StringCopy(&Var2, "TORSO_P0_22_5", 16);
			iVar6 = 22;
			iVar7 = 5;
			iVar1 = 3950;
			break;
		
		case 135:
			StringCopy(&Var2, "TORSO_P0_23_0", 16);
			iVar6 = 23;
			iVar7 = 0;
			iVar1 = 3200;
			break;
		
		case 136:
			StringCopy(&Var2, "TORSO_P0_23_1", 16);
			iVar6 = 23;
			iVar7 = 1;
			iVar1 = 3200;
			break;
		
		case 137:
			StringCopy(&Var2, "TORSO_P0_23_2", 16);
			iVar6 = 23;
			iVar7 = 2;
			iVar1 = 3200;
			break;
		
		case 138:
			StringCopy(&Var2, "TORSO_P0_23_3", 16);
			iVar6 = 23;
			iVar7 = 3;
			iVar1 = 3200;
			break;
		
		case 139:
			StringCopy(&Var2, "TORSO_P0_23_4", 16);
			iVar6 = 23;
			iVar7 = 4;
			iVar1 = 3200;
			break;
		
		case 140:
			StringCopy(&Var2, "TORSO_P0_23_5", 16);
			iVar6 = 23;
			iVar7 = 5;
			iVar1 = 3200;
			break;
		
		case 141:
			StringCopy(&Var2, "TORSO_P0_23_6", 16);
			iVar6 = 23;
			iVar7 = 6;
			iVar1 = 3200;
			break;
		
		case 142:
			StringCopy(&Var2, "TORSO_P0_23_7", 16);
			iVar6 = 23;
			iVar7 = 7;
			iVar1 = 3200;
			break;
		
		case 143:
			StringCopy(&Var2, "TORSO_P0_23_8", 16);
			iVar6 = 23;
			iVar7 = 8;
			iVar1 = 3200;
			break;
		
		case 144:
			StringCopy(&Var2, "TORSO_P0_23_9", 16);
			iVar6 = 23;
			iVar7 = 9;
			iVar1 = 3200;
			break;
		
		case 145:
			StringCopy(&Var2, "TORSO_P0_23_10", 16);
			iVar6 = 23;
			iVar7 = 10;
			iVar1 = 3200;
			break;
		
		case 146:
			StringCopy(&Var2, "TORSO_P0_23_11", 16);
			iVar6 = 23;
			iVar7 = 11;
			iVar1 = 3200;
			break;
		
		case 147:
			StringCopy(&Var2, "TORSO_P0_23_12", 16);
			iVar6 = 23;
			iVar7 = 12;
			iVar1 = 3200;
			break;
		
		case 148:
			StringCopy(&Var2, "TORSO_P0_23_13", 16);
			iVar6 = 23;
			iVar7 = 13;
			iVar1 = 3200;
			break;
		
		case 149:
			StringCopy(&Var2, "TORSO_P0_23_14", 16);
			iVar6 = 23;
			iVar7 = 14;
			iVar1 = 3200;
			break;
		
		case 150:
			StringCopy(&Var2, "TORSO_P0_23_15", 16);
			iVar6 = 23;
			iVar7 = 15;
			iVar1 = 3200;
			break;
		
		case 151:
			StringCopy(&Var2, "TORSO_P0_24_0", 16);
			iVar6 = 24;
			iVar7 = 0;
			iVar1 = 1350;
			break;
		
		case 152:
			StringCopy(&Var2, "TORSO_P0_24_1", 16);
			iVar6 = 24;
			iVar7 = 1;
			iVar1 = 1400;
			break;
		
		case 153:
			StringCopy(&Var2, "TORSO_P0_24_2", 16);
			iVar6 = 24;
			iVar7 = 2;
			iVar1 = 1200;
			break;
		
		case 154:
			StringCopy(&Var2, "TORSO_P0_24_3", 16);
			iVar6 = 24;
			iVar7 = 3;
			iVar1 = 1250;
			break;
		
		case 155:
			StringCopy(&Var2, "TORSO_P0_24_4", 16);
			iVar6 = 24;
			iVar7 = 4;
			iVar1 = 1350;
			break;
		
		case 156:
			StringCopy(&Var2, "TORSO_P0_24_5", 16);
			iVar6 = 24;
			iVar7 = 5;
			iVar1 = 1300;
			break;
		
		case 157:
			StringCopy(&Var2, "TORSO_P0_24_6", 16);
			iVar6 = 24;
			iVar7 = 6;
			iVar1 = 1380;
			break;
		
		case 158:
			StringCopy(&Var2, "TORSO_P0_24_7", 16);
			iVar6 = 24;
			iVar7 = 7;
			iVar1 = 1340;
			break;
		
		case 159:
			StringCopy(&Var2, "TORSO_P0_24_8", 16);
			iVar6 = 24;
			iVar7 = 8;
			iVar1 = 1380;
			break;
		
		case 160:
			StringCopy(&Var2, "TORSO_P0_24_9", 16);
			iVar6 = 24;
			iVar7 = 9;
			iVar1 = 1250;
			break;
		
		case 161:
			StringCopy(&Var2, "TORSO_P0_25_0", 16);
			iVar6 = 25;
			iVar7 = 0;
			iVar1 = 840;
			break;
		
		case 162:
			StringCopy(&Var2, "TORSO_P0_25_1", 16);
			iVar6 = 25;
			iVar7 = 1;
			iVar1 = 840;
			break;
		
		case 163:
			StringCopy(&Var2, "TORSO_P0_25_2", 16);
			iVar6 = 25;
			iVar7 = 2;
			iVar1 = 840;
			break;
		
		case 164:
			StringCopy(&Var2, "TORSO_P0_25_3", 16);
			iVar6 = 25;
			iVar7 = 3;
			iVar1 = 840;
			break;
		
		case 165:
			StringCopy(&Var2, "TORSO_P0_25_4", 16);
			iVar6 = 25;
			iVar7 = 4;
			iVar1 = 840;
			break;
		
		case 166:
			StringCopy(&Var2, "TORSO_P0_25_5", 16);
			iVar6 = 25;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 167:
			StringCopy(&Var2, "TORSO_P0_25_6", 16);
			iVar6 = 25;
			iVar7 = 6;
			iVar1 = 840;
			break;
		
		case 168:
			StringCopy(&Var2, "TORSO_P0_25_7", 16);
			iVar6 = 25;
			iVar7 = 7;
			iVar1 = 840;
			break;
		
		case 169:
			StringCopy(&Var2, "TORSO_P0_26_0", 16);
			iVar6 = 26;
			iVar7 = 0;
			break;
		
		case 170:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 27;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 171:
			StringCopy(&Var2, "TORSO_P0_28_0", 16);
			iVar6 = 28;
			iVar7 = 0;
			break;
		
		case 172:
			StringCopy(&Var2, "TORSO_P0_28_1", 16);
			iVar6 = 28;
			iVar7 = 1;
			iVar1 = 130;
			break;
		
		case 173:
			StringCopy(&Var2, "TORSO_P0_28_2", 16);
			iVar6 = 28;
			iVar7 = 2;
			iVar1 = 110;
			break;
		
		case 174:
			StringCopy(&Var2, "TORSO_P0_29_0", 16);
			iVar6 = 29;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 175:
			StringCopy(&Var2, "TORSO_P0_30_0", 16);
			iVar6 = 30;
			iVar7 = 0;
			iVar1 = 290;
			break;
		
		case 176:
			StringCopy(&Var2, "TORSO_P0_30_1", 16);
			iVar6 = 30;
			iVar7 = 1;
			iVar1 = 320;
			break;
		
		case 177:
			StringCopy(&Var2, "TORSO_P0_31_0", 16);
			iVar6 = 31;
			iVar7 = 0;
			iVar1 = 59;
			break;
		
		case 178:
			StringCopy(&Var2, "TORSO_P0_31_1", 16);
			iVar6 = 31;
			iVar7 = 1;
			iVar1 = 55;
			break;
		
		case 179:
			StringCopy(&Var2, "TORSO_P0_31_2", 16);
			iVar6 = 31;
			iVar7 = 2;
			iVar1 = 59;
			break;
		
		case 180:
			StringCopy(&Var2, "TORSO_P0_31_3", 16);
			iVar6 = 31;
			iVar7 = 3;
			iVar1 = 49;
			break;
		
		default:
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_237(int iParam0)//Position - 0x2A2EA
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "TORSO_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "TORSO_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "TORSO_P0_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 3500;
			break;
		
		case 3:
			StringCopy(&Var2, "TORSO_P0_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "TORSO_P0_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "TORSO_P0_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "TORSO_P0_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			break;
		
		case 7:
			StringCopy(&Var2, "TORSO_P0_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			break;
		
		case 8:
			StringCopy(&Var2, "TORSO_P0_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			break;
		
		case 9:
			StringCopy(&Var2, "TORSO_P0_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			break;
		
		case 10:
			StringCopy(&Var2, "TORSO_P0_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			break;
		
		case 11:
			StringCopy(&Var2, "TORSO_P0_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			break;
		
		case 12:
			StringCopy(&Var2, "TORSO_P0_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			break;
		
		case 13:
			StringCopy(&Var2, "TORSO_P0_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			break;
		
		case 14:
			StringCopy(&Var2, "TORSO_P0_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			break;
		
		case 15:
			StringCopy(&Var2, "TORSO_P0_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			break;
		
		case 16:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 17:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 20;
			break;
		
		case 18:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 18;
			break;
		
		case 19:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 22;
			break;
		
		case 20:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 25;
			break;
		
		case 21:
			StringCopy(&Var2, "TORSO_P0_2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 19;
			break;
		
		case 22:
			StringCopy(&Var2, "TORSO_P0_2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 20;
			break;
		
		case 23:
			StringCopy(&Var2, "TORSO_P0_2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 22;
			break;
		
		case 24:
			StringCopy(&Var2, "TORSO_P0_2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 18;
			break;
		
		case 25:
			StringCopy(&Var2, "TORSO_P0_2_8", 16);
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 39;
			break;
		
		case 26:
			StringCopy(&Var2, "TORSO_P0_2_9", 16);
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 32;
			break;
		
		case 27:
			StringCopy(&Var2, "TORSO_P0_2_10", 16);
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 35;
			break;
		
		case 28:
			StringCopy(&Var2, "TORSO_P0_2_11", 16);
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 35;
			break;
		
		case 29:
			StringCopy(&Var2, "TORSO_P0_2_12", 16);
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 210;
			break;
		
		case 30:
			StringCopy(&Var2, "TORSO_P0_2_13", 16);
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 250;
			break;
		
		case 31:
			StringCopy(&Var2, "TORSO_P0_2_14", 16);
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 290;
			break;
		
		case 32:
			StringCopy(&Var2, "TORSO_P0_2_15", 16);
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 310;
			break;
		
		case 33:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 34:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 36:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 37:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 38:
			StringCopy(&Var2, "TORSO_P0_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 150;
			break;
		
		case 39:
			StringCopy(&Var2, "TORSO_P0_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 160;
			break;
		
		case 40:
			StringCopy(&Var2, "TORSO_P0_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 150;
			break;
		
		case 41:
			StringCopy(&Var2, "TORSO_P0_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 42:
			StringCopy(&Var2, "TORSO_P0_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 160;
			break;
		
		case 43:
			StringCopy(&Var2, "TORSO_P0_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 160;
			break;
		
		case 44:
			StringCopy(&Var2, "TORSO_P0_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 45:
			StringCopy(&Var2, "TORSO_P0_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 52;
			break;
		
		case 46:
			StringCopy(&Var2, "TORSO_P0_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 52;
			break;
		
		case 47:
			StringCopy(&Var2, "TORSO_P0_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 55;
			break;
		
		case 48:
			StringCopy(&Var2, "TORSO_P0_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 55;
			break;
		
		case 49:
			StringCopy(&Var2, "TORSO_P0_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 58;
			break;
		
		case 50:
			StringCopy(&Var2, "TORSO_P0_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 58;
			break;
		
		case 51:
			StringCopy(&Var2, "TORSO_P0_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 62;
			break;
		
		case 52:
			StringCopy(&Var2, "TORSO_P0_8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 65;
			break;
		
		case 53:
			StringCopy(&Var2, "TORSO_P0_8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 65;
			break;
		
		case 54:
			StringCopy(&Var2, "TORSO_P0_8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 68;
			break;
		
		case 55:
			StringCopy(&Var2, "TORSO_P0_8_11", 16);
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 68;
			break;
		
		case 56:
			StringCopy(&Var2, "TORSO_P0_8_12", 16);
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 55;
			break;
		
		case 57:
			StringCopy(&Var2, "TORSO_P0_8_13", 16);
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 62;
			break;
		
		case 58:
			StringCopy(&Var2, "TORSO_P0_8_14", 16);
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 58;
			break;
		
		case 59:
			StringCopy(&Var2, "TORSO_P0_8_15", 16);
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 58;
			break;
		
		default:
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_238(int iParam0)//Position - 0x2A9A8
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 2;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "HAIR_P0_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "HAIR_P0_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			StringCopy(&Var2, "HAIR_P0_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			StringCopy(&Var2, "HAIR_P0_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			StringCopy(&Var2, "HAIR_P0_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		default:
			func_186(iVar10, iParam0, 6);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_239(int iParam0)//Position - 0x2AA93
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 0;
	Global_69438[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 1;
			break;
		
		case 2:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 2;
			break;
		
		case 3:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 3;
			break;
		
		case 4:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 4;
			break;
		
		case 5:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 5;
			break;
		
		case 6:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 6;
			break;
		
		default:
			func_186(iVar10, iParam0, 7);
			return;
			break;
	}
	func_178(&(Global_69438[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_240()//Position - 0x2AB90
{
	Global_69438[0 /*14*/].f_1 = -1;
	Global_69438[0 /*14*/].f_2 = -1;
	Global_69438[0 /*14*/].f_5 = -1;
	Global_69438[0 /*14*/].f_3 = -1;
	Global_69438[0 /*14*/].f_4 = -1;
	Global_69438[0 /*14*/].f_7 = 0;
	Global_69438[0 /*14*/].f_6 = 0;
	Global_69438[0 /*14*/].f_13 = -1;
	Global_69438[0 /*14*/].f_12 = 0;
	Global_69438[0 /*14*/] = 0;
	StringCopy(&(Global_69438[0 /*14*/].f_8), "NO_LABEL", 16);
}

bool func_241(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2AC09
{
	var uVar0;
	
	*iParam3 = -99;
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 8:
					if (iParam2 == 7 || iParam2 == 23)
					{
						*iParam3 = 1;
					}
					break;
				
				case 9:
					if (iParam2 == 8 || (iParam2 >= 9 && iParam2 <= 14))
					{
						*iParam3 = 1;
					}
					break;
				
				case 10:
					if (iParam2 >= 44 && iParam2 <= 47)
					{
						*iParam3 = 1;
					}
					break;
				
				case 14:
					if ((((((iParam2 >= 31 && iParam2 <= 32) || (iParam2 >= 33 && iParam2 <= 34)) || (iParam2 >= 35 && iParam2 <= 36)) || iParam2 == 37) || (iParam2 >= 40 && iParam2 <= 41)) || iParam2 == 46)
					{
						*iParam3 = 1;
					}
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 2:
					if (iParam2 == 20)
					{
						*iParam3 = 20;
					}
					break;
				
				case 8:
					if (iParam2 == 4)
					{
						*iParam3 = 19;
					}
					break;
				
				case 9:
					if (iParam2 >= 5 && iParam2 <= 10)
					{
						*iParam3 = 19;
					}
					break;
				
				case 10:
					if (iParam2 >= 47 && iParam2 <= 50)
					{
						*iParam3 = 19;
					}
					break;
				
				case 14:
					if (((((iParam2 >= 26 && iParam2 <= 27) || (iParam2 >= 28 && iParam2 <= 29)) || (iParam2 >= 30 && iParam2 <= 31)) || iParam2 == 32) || (iParam2 >= 35 && iParam2 <= 36))
					{
						*iParam3 = 19;
					}
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 8:
					if (iParam2 == 7)
					{
						*iParam3 = 2;
					}
					break;
				
				case 9:
					if ((iParam2 >= 9 && iParam2 <= 14) || (iParam2 >= 15 && iParam2 <= 16))
					{
						*iParam3 = 2;
					}
					break;
				
				case 10:
					if (iParam2 >= 29 && iParam2 <= 32)
					{
						*iParam3 = 2;
					}
					break;
				
				case 14:
					if ((((((iParam2 >= 47 && iParam2 <= 48) || (iParam2 >= 49 && iParam2 <= 50)) || (iParam2 >= 51 && iParam2 <= 52)) || iParam2 == 53) || (iParam2 >= 56 && iParam2 <= 57)) || iParam2 == 62)
					{
						*iParam3 = 2;
					}
					break;
			}
			break;
	}
	if (*iParam3 != -99)
	{
		uVar0 = func_174(iParam0);
		Global_101553.f_1991.f_539[uVar0 /*65*/].f_60 = iParam2;
		Global_101553.f_1991.f_539[uVar0 /*65*/].f_61 = iParam1;
		return true;
	}
	return false;
}

int func_242(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2AF10
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	iVar0 = func_170(iParam3);
	iVar1 = ped::get_number_of_ped_drawable_variations(iParam0, iVar0);
	iVar3 = 0;
	while (iVar3 <= (iVar1 - 1))
	{
		iVar5 = ped::get_number_of_ped_texture_variations(iParam0, iVar0, iVar3);
		if (iVar3 != iParam1)
		{
			iVar2 = (iVar2 + iVar5);
		}
		else
		{
			iVar4 = 0;
			while (iVar4 <= (iVar5 - 1))
			{
				if (iVar3 == iParam1 && iVar4 == iParam2)
				{
					return iVar2;
				}
				else
				{
					iVar2++;
				}
				iVar4++;
			}
		}
		iVar3++;
	}
	return -99;
}

int func_243(int iParam0)//Position - 0x2AF94
{
	switch (iParam0)
	{
		case 0:
			return 0;
			break;
		
		case 2:
			return 2;
			break;
		
		case 3:
			return 3;
			break;
		
		case 4:
			return 4;
			break;
		
		case 6:
			return 6;
			break;
		
		case 5:
			return 5;
			break;
		
		case 8:
			return 8;
			break;
		
		case 9:
			return 9;
			break;
		
		case 10:
			return 10;
			break;
		
		case 1:
			return 1;
			break;
		
		case 7:
			return 7;
			break;
		
		case 11:
			return 11;
			break;
	}
	return 0;
}

void func_244()//Position - 0x2B044
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= (Local_1646 - 1))
	{
		Local_1646[iVar0 /*12*/] = 0;
		Local_1646[iVar0 /*12*/].f_1 = -1;
		Local_1646[iVar0 /*12*/].f_2 = -1;
		Local_1646[iVar0 /*12*/].f_3 = 0;
		Local_1646[iVar0 /*12*/].f_5 = -1;
		Local_1646[iVar0 /*12*/].f_10 = 0;
		iVar0++;
	}
	ui::clear_help(1);
	func_245(1);
}

void func_245(int iParam0)//Position - 0x2B0A6
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_100207)
	{
		ui::clear_floating_help(iVar0, iParam0);
		func_246(iVar0);
		iVar0++;
	}
}

void func_246(int iParam0)//Position - 0x2B0D4
{
	Global_100207[iParam0 /*28*/].f_21 = 0;
	StringCopy(&(Global_100207[iParam0 /*28*/]), "", 16);
	StringCopy(&(Global_100207[iParam0 /*28*/].f_4), "", 64);
	Global_100207[iParam0 /*28*/].f_23 = 0;
	Global_100207[iParam0 /*28*/].f_24 = { 0f, 0f, 0f };
	Global_100207[iParam0 /*28*/].f_27 = 0;
	Global_100207[iParam0 /*28*/].f_20 = 0;
	Global_100207[iParam0 /*28*/].f_22 = 0;
}

bool func_247()//Position - 0x2B13E
{
	func_506(137, 156);
	player::set_all_random_peds_flee_this_frame(player::player_id());
	func_433(0, 25, 2, 145, 1, 0, 1, 0);
	func_433(1, 26, 2, 145, 1, 0, 1, 0);
	func_433(2, 27, 3, 145, 1, 0, 1, 0);
	func_330(0, 108, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(1, 109, 1, 2, 139, 5, 140, 4, 144, 1, 0, 1, 0);
	func_330(2, 110, 0, 2, 143, 5, 140, 1, 0, 1, 0, 1, 0);
	func_330(3, 114, 1, 3, 141, 4, 144, 5, 140, 1, 0, 1, 0);
	func_330(14, 115, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(4, 113, 1, 2, 141, 4, 142, 5, 140, 1, 0, 1, 0);
	func_330(7, 118, 0, 2, 150, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(6, 117, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(8, 119, 0, 2, 145, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(9, 121, 0, 2, 151, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(10, 120, 0, 2, 151, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(5, 116, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(11, 92, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(12, 105, 1, 2, 153, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(13, 107, 0, 2, 145, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(15, 106, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_288(0, 69, 0, 0, 1, 0, 1, 0, 1, 0);
	func_286(1, 70, 0, 69, 2, 143, 6, 149, 1, 0, 1, 0);
	func_286(2, 71, 0, 69, 2, 152, 1, 0, 1, 0, 1, 0);
	func_288(3, 72, 2, 153, 5, 154, 5, 155, 1, 0);
	func_288(4, 73, 2, 153, 4, 155, 1, 0, 1, 0);
	func_249(7, 0, 0, 1, 0);
	func_249(9, 0, 0, 1, 0);
	if (func_248(9, 121))
	{
		return true;
	}
	return false;
}

bool func_248(int iParam0, int iParam1)//Position - 0x2B32B
{
	if (Local_325[iParam0 /*10*/] == iParam1)
	{
		if (Local_325[iParam0 /*10*/].f_3 == 1)
		{
			return true;
		}
	}
	return false;
}

void func_249(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x2B351
{
	if (func_280(iParam1, iParam2, iParam3, iParam4, 1, 0, 1, 0, 1, 0))
	{
		switch (iParam0)
		{
			case 1:
				if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
				{
					weapon::give_weapon_to_ped(Local_1071[4 /*14*/], joaat("weapon_pistol"), -1, true, true);
					func_122();
					ai::task_leave_any_vehicle(0, 0, 0);
					ai::task_combat_ped(0, player::player_ped_id(), 0, 16);
					func_121(Local_1071[4 /*14*/], 0);
				}
				if (!ped::is_ped_injured(Local_1071[5 /*14*/]))
				{
					weapon::give_weapon_to_ped(Local_1071[5 /*14*/], joaat("weapon_pistol"), -1, true, true);
					func_122();
					ai::task_leave_any_vehicle(0, 0, 0);
					ai::task_combat_ped(0, player::player_ped_id(), 0, 16);
					func_121(Local_1071[5 /*14*/], 0);
				}
				func_1("ARM2_F01", 2000);
				break;
			
			case 2:
				if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
				{
					weapon::give_weapon_to_ped(Local_1071[4 /*14*/], joaat("weapon_pistol"), -1, true, true);
					ped::set_ped_combat_attributes(Local_1071[4 /*14*/], 2, true);
					func_122();
					if (func_123(player::player_ped_id(), ped::get_ped_bone_coords(Local_1071[4 /*14*/], 0, 0f, 0f, 0f), 1) > 1.4f)
					{
						ai::task_leave_any_vehicle(0, 0, 0);
					}
					ai::task_combat_ped(0, player::player_ped_id(), 0, 16);
					func_121(Local_1071[4 /*14*/], 0);
				}
				if (!ped::is_ped_injured(Local_1071[5 /*14*/]))
				{
					weapon::give_weapon_to_ped(Local_1071[5 /*14*/], joaat("weapon_pistol"), -1, true, true);
					ped::set_ped_combat_attributes(Local_1071[5 /*14*/], 2, true);
					func_122();
					if (func_123(player::player_ped_id(), ped::get_ped_bone_coords(Local_1071[5 /*14*/], 0, 0f, 0f, 0f), 1) > 1.4f)
					{
						ai::task_leave_any_vehicle(0, 0, 0);
					}
					ai::task_combat_ped(0, player::player_ped_id(), 0, 16);
					func_121(Local_1071[5 /*14*/], 0);
				}
				func_1("ARM2_F01", 1500);
				break;
			
			case 14:
				func_1("ARM2_F01", 2000);
				break;
			
			case 15:
				if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
				{
					if (vehicle::is_playback_going_on_for_vehicle(Local_1450[1 /*2*/]))
					{
						if (iLocal_2273 == 4 && fLocal_2275 == 1f)
						{
							if (!func_279(Local_1071[2 /*14*/], -1133.037f, -1583.803f, 2.556583f, -1129.521f, -1588.63f, 6.842f, 5.125f))
							{
								if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
								{
									weapon::give_weapon_to_ped(Local_1071[4 /*14*/], joaat("weapon_pistol"), -1, true, true);
									func_122();
									ai::task_leave_any_vehicle(0, 0, 0);
									ai::task_combat_ped(0, player::player_ped_id(), 0, 16);
									func_121(Local_1071[4 /*14*/], 0);
								}
								if (!ped::is_ped_injured(Local_1071[5 /*14*/]))
								{
									weapon::give_weapon_to_ped(Local_1071[5 /*14*/], joaat("weapon_pistol"), -1, true, true);
									func_122();
									ai::task_leave_any_vehicle(0, 0, 0);
									ai::task_combat_ped(0, player::player_ped_id(), 0, 16);
									func_121(Local_1071[5 /*14*/], 0);
								}
								while (!func_263("AR2_BLOCK2", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
								{
									system::wait(0);
								}
								func_1("ARM2_F01", 2000);
							}
						}
					}
				}
				break;
			
			case 3:
				func_1("ARM2_F01", 2000);
				break;
			
			case 4:
				if (iLocal_2273 == 9)
				{
					func_261(22, -1128.141f, -1605.52f, 3.3985f, 341.9648f, joaat("weapon_pistol"), 0, 0, -1);
					func_261(23, -1127.131f, -1607.135f, 3.3985f, 2.1088f, joaat("weapon_pistol"), 0, 0, -1);
					ped::set_relationship_between_groups(5, ped::get_ped_relationship_group_hash(player::player_ped_id()), iLocal_1473);
					ped::set_relationship_between_groups(5, iLocal_1473, ped::get_ped_relationship_group_hash(player::player_ped_id()));
					ped::set_ped_target_loss_response(Local_1071[22 /*14*/], 1);
					ped::set_ped_target_loss_response(Local_1071[23 /*14*/], 1);
					ai::task_combat_hated_targets_around_ped(Local_1071[22 /*14*/], 150f, 0);
					ai::task_combat_hated_targets_around_ped(Local_1071[23 /*14*/], 150f, 0);
					ped::set_combat_float(Local_1071[22 /*14*/], 2, 6f);
					ped::set_combat_float(Local_1071[22 /*14*/], 13, 5f);
					ped::set_combat_float(Local_1071[23 /*14*/], 2, 6f);
					ped::set_combat_float(Local_1071[23 /*14*/], 13, 5f);
					ped::set_ped_combat_attributes(Local_1071[22 /*14*/], 50, true);
					ped::set_ped_combat_attributes(Local_1071[23 /*14*/], 50, true);
					func_258(Local_1071[22 /*14*/], 1, 145);
					func_258(Local_1071[23 /*14*/], 1, 145);
					func_256();
					ui::clear_prints();
					while (!func_263("ARM2_GET4", 8, Local_1071[22 /*14*/], "ARM2VAGOS4", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
					{
						system::wait(0);
					}
					func_1("ARM2_F11", 2000);
				}
				break;
			
			case 6:
				if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
				{
					if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 100f && !func_86())
					{
						func_1("ARM2_F05", 0);
					}
					if (iLocal_1067 < 9 && iLocal_1067 >= 7)
					{
						if (entity::is_entity_in_angled_area(player::player_ped_id(), -1136.172f, -1579.05f, 2.68122f, -1129.543f, -1588.645f, 7.067074f, 56.75f, 0, true, 0))
						{
							func_1("ARM2_F05", 0);
						}
					}
				}
				break;
			
			case 8:
				if (entity::does_entity_exist(Local_1450[4 /*2*/]))
				{
					if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
					{
						if (func_255(player::player_ped_id(), Local_1450[4 /*2*/], 1) > 500f)
						{
							func_250("ARM2_F06", "ARM2_LOSEB");
						}
					}
				}
				break;
			
			case 7:
				if (entity::does_entity_exist(Local_1450[4 /*2*/]))
				{
					if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
					{
						if (func_255(player::player_ped_id(), Local_1450[4 /*2*/], 1) > 500f)
						{
							func_1("ARM2_F09", 0);
						}
					}
				}
				break;
			
			case 5:
				func_1("ARM2_F07", 0);
				break;
			
			case 9:
				if (entity::does_entity_exist(Local_1071[2 /*14*/]))
				{
					if (ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						func_1("ARM2_F02", 0);
					}
				}
				break;
			
			case 10:
				if (entity::does_entity_exist(Local_1071[3 /*14*/]))
				{
					if (ped::is_ped_injured(Local_1071[3 /*14*/]))
					{
						func_1("ARM2_F10", 0);
					}
				}
				break;
			
			case 11:
				break;
			
			case 12:
				if (iLocal_2276 > 0)
				{
					if (!entity::does_entity_exist(Local_1071[22 /*14*/]))
					{
						iLocal_2276 = -1;
					}
				}
				if (iLocal_2276 == 0)
				{
					iLocal_2276 = gameplay::get_game_timer() + 4000;
				}
				if (gameplay::get_game_timer() > iLocal_2276)
				{
					func_1("ARM2_F01", 0);
				}
				break;
			
			case 13:
				if (ped::is_ped_shooting(player::player_ped_id()))
				{
					func_1("ARM2_F01", 0);
				}
				break;
			}
	}
}

void func_250(char* sParam0, char* sParam1)//Position - 0x2B9A9
{
	func_253();
	while (!func_263(sParam1, 0, player::player_ped_id(), "Franklin", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
	{
		func_19(18, 0);
	}
	while (!func_251(sParam1))
	{
		func_19(19, 0);
	}
	while (func_251(sParam1))
	{
		func_19(20, 0);
	}
	while (!audio::trigger_music_event("ARM2_MISSION_FAIL"))
	{
		func_19(21, 0);
	}
	func_3(sParam0);
	while (!func_2())
	{
		system::wait(0);
	}
	func_601(1);
}

bool func_251(char* sParam0)//Position - 0x2BA3C
{
	struct<6> Var0;
	
	Var0 = { func_252() };
	if (gameplay::are_strings_equal(&Var0, sParam0))
	{
		return true;
	}
	return false;
}

struct<6> func_252()//Position - 0x2BA5C
{
	struct<6> Var0;
	
	StringCopy(&Var0, "NULL", 24);
	if (Global_15745 == 4)
	{
		return Global_15364;
	}
	return Var0;
}

void func_253()//Position - 0x2BA80
{
	Global_14611 = 0;
	func_254();
}

void func_254()//Position - 0x2BA90
{
	if (audio::is_scripted_conversation_ongoing())
	{
		audio::restart_scripted_conversation();
		Global_16756 = 0;
		audio::stop_scripted_conversation(true);
		Global_15745 = 6;
		return;
	}
}

float func_255(int iParam0, int iParam1, int iParam2)//Position - 0x2BAB4
{
	vector3 vVar0;
	vector3 vVar3;
	
	if (!entity::is_entity_dead(iParam0, 0))
	{
		vVar0 = { entity::get_entity_coords(iParam0, 1) };
	}
	else
	{
		vVar0 = { entity::get_entity_coords(iParam0, 0) };
	}
	if (!entity::is_entity_dead(iParam1, 0))
	{
		vVar3 = { entity::get_entity_coords(iParam1, 1) };
	}
	else
	{
		vVar3 = { entity::get_entity_coords(iParam1, 0) };
	}
	return gameplay::get_distance_between_coords(vVar0, vVar3, iParam2);
}

void func_256()//Position - 0x2BB12
{
	Global_14611 = 0;
	func_257();
}

void func_257()//Position - 0x2BB22
{
	audio::restart_scripted_conversation();
	Global_16756 = 0;
	if (audio::is_scripted_conversation_ongoing())
	{
		audio::stop_scripted_conversation(false);
		Global_15745 = 6;
	}
}

int func_258(int iParam0, int iParam1, int iParam2)//Position - 0x2BB43
{
	int iVar0;
	
	iVar0 = func_259(iParam0, !iParam1, 0);
	if ((iParam2 != 145 && ui::does_blip_exist(iVar0)) && ui::does_text_label_exist(&(Global_101553.f_32740[iParam2 /*29*/].f_3)))
	{
		ui::set_blip_name_from_text_file(iVar0, &(Global_101553.f_32740[iParam2 /*29*/].f_3));
	}
	return iVar0;
}

int func_259(int iParam0, int iParam1, int iParam2)//Position - 0x2BB95
{
	int iVar0;
	
	if (!entity::does_entity_exist(iParam0))
	{
		return 0;
	}
	iVar0 = ui::add_blip_for_entity(iParam0);
	if (entity::is_entity_a_vehicle(iParam0))
	{
		ui::set_blip_scale(iVar0, func_260(network::network_is_game_in_progress(), 1f, 1f));
		if (!iParam2)
		{
			ui::set_blip_as_friendly(iVar0, iParam1);
		}
		else
		{
			ui::set_blip_colour(iVar0, 2);
		}
	}
	else if (entity::is_entity_a_ped(iParam0))
	{
		ui::set_blip_scale(iVar0, func_260(network::network_is_game_in_progress(), 0.7f, 0.7f));
		ui::set_blip_as_friendly(iVar0, iParam1);
	}
	else if (entity::is_entity_an_object(iParam0))
	{
		ui::set_blip_scale(iVar0, func_260(network::network_is_game_in_progress(), 0.7f, 0.7f));
	}
	return iVar0;
}

float func_260(int iParam0, float fParam1, float fParam2)//Position - 0x2BC39
{
	if (iParam0)
	{
		return fParam1;
	}
	return fParam2;
}

bool func_261(int iParam0, vector3 vParam1, float fParam4, int iParam5, int iParam6, int iParam7, int iParam8)//Position - 0x2BC50
{
	int iVar0;
	
	if (gameplay::get_random_int_in_range(0, 2) == 0)
	{
		iVar0 = iLocal_2219;
	}
	else
	{
		iVar0 = iLocal_2220;
	}
	if (entity::does_entity_exist(Local_1071[iParam0 /*14*/]))
	{
		entity::set_ped_as_no_longer_needed(&(Local_1071[iParam0 /*14*/]));
	}
	if (iParam7 == 0)
	{
		Local_1071[iParam0 /*14*/] = ped::create_ped(26, iVar0, vParam1, fParam4, 1, true);
	}
	else if (!entity::is_entity_dead(iParam7, 0))
	{
		if (vehicle::is_vehicle_seat_free(iParam7, iParam8, 0))
		{
			Local_1071[iParam0 /*14*/] = ped::create_ped_inside_vehicle(iParam7, 26, iVar0, iParam8, 1, true);
		}
	}
	weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], iParam5, 1000, true, true);
	ped::set_ped_relationship_group_hash(Local_1071[iParam0 /*14*/], iLocal_1473);
	if (iParam6 == 1)
	{
	}
	else
	{
		ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 8, false);
		ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 9, false);
		ped::set_ped_config_flag(Local_1071[iParam0 /*14*/], 118, false);
	}
	ped::set_ped_dies_when_injured(Local_1071[iParam0 /*14*/], true);
	entity::set_entity_health(Local_1071[iParam0 /*14*/], 130);
	ped::set_ped_max_health(Local_1071[iParam0 /*14*/], 130);
	ped::register_hated_targets_around_ped(Local_1071[iParam0 /*14*/], 100f);
	ped::set_ped_target_loss_response(Local_1071[iParam0 /*14*/], 1);
	ped::set_ped_accuracy(Local_1071[iParam0 /*14*/], 30);
	func_262(Local_1071[iParam0 /*14*/], 0);
	if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
	{
		ped::register_hated_targets_around_ped(Local_1071[2 /*14*/], 100f);
	}
	iLocal_1033 = gameplay::get_game_timer() + 1000;
	return true;
}

void func_262(int iParam0, int iParam1)//Position - 0x2BDAA
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	if (iParam1)
	{
		iVar0 = 0;
		while (iVar0 < 64)
		{
			if (Global_55846[iVar0 /*2*/] != 0)
			{
				if (Global_55846[iVar0 /*2*/] == iParam0)
				{
					return;
				}
			}
			iVar0++;
		}
	}
	if (64 == Global_55845)
	{
		return;
	}
	iVar1 = -1;
	iVar2 = 0;
	while (iVar1 == -1 && iVar2 != 64)
	{
		if (Global_55846[iVar2 /*2*/] == 0)
		{
			iVar1 = iVar2;
		}
		iVar2++;
	}
	if (iVar1 == -1)
	{
		return;
	}
	Global_55846[iVar1 /*2*/] = iParam0;
	Global_55846[iVar1 /*2*/].f_1 = 7;
	Global_55845++;
}

bool func_263(char* sParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, char* sParam6, int iParam7, int iParam8, char* sParam9, int iParam10, int iParam11, char* sParam12, int iParam13)//Position - 0x2BE45
{
	if (!func_278())
	{
		func_277(sParam0, iParam1, iParam4, iParam7, iParam10);
		func_274(iParam1, iParam2, sParam3);
		if (iParam4 != -1)
		{
			func_274(iParam4, iParam5, sParam6);
		}
		if (iParam7 != -1)
		{
			func_274(iParam7, iParam8, sParam9);
		}
		if (iParam10 != -1)
		{
			func_274(iParam10, iParam11, sParam12);
		}
		if (ui::is_message_being_displayed() && ui::is_subtitle_preference_switched_on())
		{
			if (func_264(&Local_1477, cLocal_1642, sParam0, iParam13, 1, 0, 0))
			{
				iLocal_49 = true;
				return true;
			}
		}
		else if (func_264(&Local_1477, cLocal_1642, sParam0, iParam13, 0, 0, 0))
		{
			iLocal_49 = false;
			return true;
		}
	}
	return false;
}

int func_264(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x2BEE7
{
	func_273(uParam0, 145, sParam1, iParam4, iParam5, iParam6);
	if (iParam3 > 7)
	{
		if (iParam3 < 12)
		{
			iParam3 = 7;
		}
	}
	Global_15752 = 0;
	Global_15754 = 0;
	Global_15759 = 0;
	Global_16736 = 0;
	Global_16738 = 0;
	Global_16742 = 0;
	Global_2621441 = 0;
	return func_265(sParam2, iParam3, 0);
}

bool func_265(char* sParam0, int iParam1, int iParam2)//Position - 0x2BF35
{
	Global_15746 = 0;
	if (Global_15745 == 0 || Global_15747 == 2)
	{
		if (Global_15745 != 0)
		{
			if (iParam1 > Global_15747)
			{
				if (Global_15752 == 0)
				{
					audio::stop_scripted_conversation(false);
					Global_14443.f_1 = 3;
					Global_15745 = 0;
					Global_15746 = 1;
					Global_15798 = 0;
					Global_15741 = 0;
					Global_15742 = 0;
					Global_15756 = 0;
					Global_15755 = 0;
					Global_14442 = 0;
				}
				else
				{
					func_272();
					return false;
				}
			}
			else
			{
				return false;
			}
		}
		if (audio::is_scripted_conversation_ongoing())
		{
			return false;
		}
		if (func_271(8, -1))
		{
			return false;
		}
		Global_15821 = { Global_15815 };
		func_270();
		Global_15034 = { Global_15199 };
		Global_15751 = Global_15752;
		Global_15758 = Global_15759;
		Global_2621442 = Global_2621441;
		Global_15760 = { Global_15776 };
		Global_15753 = Global_15754;
		Global_16735 = Global_16736;
		Global_16743 = { Global_16749 };
		Global_16737 = Global_16738;
		Global_16739 = Global_16740;
		Global_16741 = Global_16742;
		Global_15364.f_370 = Global_16734;
		Global_15364.f_368 = Global_16732;
		Global_15364.f_369 = Global_16733;
		Global_15741 = Global_15742;
		if (Global_15751)
		{
			gameplay::clear_bit(&Global_2313, 20);
			gameplay::clear_bit(&Global_2314, 17);
			gameplay::clear_bit(&Global_2315, 0);
			if (iParam2)
			{
				func_269();
				if (Global_3118[Global_14443 /*2811*/][0 /*281*/].f_259 == 2)
				{
					if (iParam1 == 13)
					{
					}
					else
					{
						return false;
					}
				}
				if (Global_14443.f_1 > 3)
				{
					return false;
				}
			}
			if (Global_14409 == 1)
			{
				return false;
			}
			if (player::is_player_playing(player::player_id()))
			{
				if (ped::is_ped_in_melee_combat(player::player_ped_id()))
				{
					return false;
				}
				if (func_268())
				{
					return false;
				}
				if (ai::is_ped_sprinting(player::player_ped_id()))
				{
					return false;
				}
				if (ped::is_ped_ragdoll(player::player_ped_id()))
				{
					return false;
				}
				if (ped::is_ped_in_parachute_free_fall(player::player_ped_id()))
				{
					return false;
				}
				if (weapon::get_is_ped_gadget_equipped(player::player_ped_id(), joaat("gadget_parachute")))
				{
					return false;
				}
				if (!Global_69617)
				{
					if (entity::is_entity_in_water(player::player_ped_id()))
					{
						return false;
					}
					if (player::is_player_climbing(player::player_id()))
					{
						return false;
					}
					if (ped::is_ped_planting_bomb(player::player_ped_id()))
					{
						return false;
					}
					if (player::is_special_ability_active(player::player_id()))
					{
						return false;
					}
				}
			}
			if (func_160())
			{
				return false;
			}
			else
			{
				switch (Global_14443.f_1)
				{
					case 7:
						return false;
						break;
					
					case 8:
						return false;
						break;
					
					case 9:
						break;
					
					case 10:
						break;
					
					default:
						break;
				}
				if (gameplay::is_bit_set(Global_2313, 9))
				{
					return false;
				}
			}
			func_267();
			Global_15755 = iParam2;
		}
		Global_15747 = iParam1;
		StringCopy(&Global_15364, sParam0, 24);
		Global_14611 = 0;
		func_266();
		return true;
	}
	if (Global_15745 == 5)
	{
		return false;
	}
	if (iParam1 < Global_15747 || iParam1 == Global_15747)
	{
		return false;
	}
	if (iParam1 == 2)
	{
	}
	else
	{
		func_272();
	}
	return false;
}

void func_266()//Position - 0x2C203
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 69)
	{
		StringCopy(&(Global_14613[iVar0 /*6*/]), "", 24);
		iVar0++;
	}
	audio::stop_scripted_conversation(false);
	Global_15745 = 1;
}

void func_267()//Position - 0x2C234
{
	Global_15798 = Global_15797;
	Global_15792 = Global_15793;
	Global_15839 = { Global_15827 };
	Global_15845 = { Global_15833 };
	Global_15800 = Global_15799;
	Global_15869 = { Global_15851 };
	Global_15875 = { Global_15857 };
	Global_15881 = { Global_15863 };
	Global_15887 = { Global_15893 };
	Global_1628 = Global_1629;
	Global_1630 = Global_1631;
	Global_15756 = Global_15757;
	Global_15758 = Global_15759;
	Global_15760 = { Global_15776 };
	Global_15749 = Global_15750;
	Global_16761 = 0;
	Global_15794 = 0;
	Global_15795 = 0;
	gameplay::clear_bit(&Global_2314, 16);
}

bool func_268()//Position - 0x2C2C9
{
	int iVar0;
	int iVar1;
	
	if (Global_69617)
	{
		iVar0 = 0;
		weapon::get_current_ped_weapon(player::player_ped_id(), &iVar1, 1);
		if (player::is_player_playing(player::player_id()))
		{
			if ((iVar1 == joaat("weapon_sniperrifle") || iVar1 == joaat("weapon_heavysniper")) || iVar1 == joaat("weapon_remotesniper"))
			{
				iVar0 = 1;
			}
		}
		if (cam::is_aim_cam_active() && iVar0 == 1)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	if (player::is_player_playing(player::player_id()))
	{
		if (ped::get_ped_config_flag(player::player_ped_id(), 78, 1))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	return true;
}

void func_269()//Position - 0x2C362
{
	if (func_13(14))
	{
		if (!entity::is_entity_dead(player::player_ped_id(), 0))
		{
			if (entity::get_entity_model(player::player_ped_id()) == Global_101553.f_32740[0 /*29*/])
			{
				Global_14443 = 0;
			}
			else if (entity::get_entity_model(player::player_ped_id()) == Global_101553.f_32740[1 /*29*/])
			{
				Global_14443 = 1;
			}
			else if (entity::get_entity_model(player::player_ped_id()) == Global_101553.f_32740[2 /*29*/])
			{
				Global_14443 = 2;
			}
			else
			{
				Global_14443 = 0;
			}
		}
	}
	else
	{
		Global_14443 = func_11();
		if (Global_14443 == 145)
		{
			Global_14443 = 3;
		}
		if (Global_69617)
		{
			Global_14443 = 3;
		}
		if (Global_14443 > 3)
		{
			Global_14443 = 3;
		}
	}
}

void func_270()//Position - 0x2C404
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 15)
	{
		Global_15034[iVar0 /*10*/] = 0;
		StringCopy(&(Global_15034[iVar0 /*10*/].f_1), "", 24);
		Global_15034[iVar0 /*10*/].f_7 = 0;
		Global_15034[iVar0 /*10*/].f_8 = 0;
		iVar0++;
	}
	Global_15034.f_161 = -99;
	Global_15034.f_162 = { 0f, 0f, 0f };
}

int func_271(int iParam0, int iParam1)//Position - 0x2C45B
{
	switch (iParam0)
	{
		case 5:
			if (iParam1 > -1)
			{
				return Global_1342783.f_203[iParam1];
			}
			break;
	}
	return gameplay::is_bit_set(Global_1342783.f_982, iParam0);
}

void func_272()//Position - 0x2C496
{
	audio::restart_scripted_conversation();
	Global_16756 = 0;
	if ((audio::is_mobile_phone_call_ongoing() || Global_14443.f_1 == 9) || Global_14442 == 1)
	{
		audio::stop_scripted_conversation(false);
		Global_15745 = 6;
		Global_14443.f_1 = 3;
		return;
	}
	if (audio::is_scripted_conversation_ongoing())
	{
		audio::stop_scripted_conversation(true);
		Global_15745 = 6;
		return;
	}
}

void func_273(var uParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5)//Position - 0x2C4ED
{
	Global_15199 = { *uParam0 };
	Global_1629 = iParam1;
	StringCopy(&Global_15815, sParam2, 24);
	Global_16734 = iParam5;
	if (iParam3 == 0)
	{
		Global_16732 = 1;
		Global_16730 = 0;
	}
	else
	{
		Global_16732 = 0;
		Global_16730 = 1;
	}
	if (iParam4 == 0)
	{
		Global_16733 = 1;
		Global_16731 = 0;
	}
	else
	{
		Global_16733 = 0;
		Global_16731 = 1;
	}
}

void func_274(int iParam0, int iParam1, char* sParam2)//Position - 0x2C543
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < iLocal_2252)
	{
		if (iLocal_2252[iVar0] == iParam1)
		{
			func_276(&Local_1477, iVar0);
			iLocal_2252[iVar0] = 0;
		}
		iVar0++;
	}
	if (iLocal_2252[iParam0] != 0)
	{
		func_276(&Local_1477, iParam0);
	}
	func_275(&Local_1477, iParam0, iParam1, sParam2, 0, 1);
	iLocal_2252[iParam0] = iParam1;
}

void func_275(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5)//Position - 0x2C5A8
{
	if ((uParam0[iParam1 /*10*/])->f_7 == 1)
	{
	}
	(*uParam0)[iParam1 /*10*/] = iParam2;
	StringCopy(&((uParam0[iParam1 /*10*/])->f_1), sParam3, 24);
	(uParam0[iParam1 /*10*/])->f_7 = 1;
	(uParam0[iParam1 /*10*/])->f_8 = iParam4;
	(uParam0[iParam1 /*10*/])->f_9 = iParam5;
	if (!Global_69617)
	{
		if (!ped::is_ped_injured(iParam2))
		{
			if ((uParam0[iParam1 /*10*/])->f_8 == 0)
			{
				ped::set_ped_can_play_ambient_anims(iParam2, 0);
			}
			else
			{
				ped::set_ped_can_play_ambient_anims(iParam2, 1);
			}
		}
		if (!ped::is_ped_injured(iParam2))
		{
			if ((uParam0[iParam1 /*10*/])->f_9 == 0)
			{
				ped::set_ped_can_use_auto_conversation_lookat(iParam2, 0);
			}
			else
			{
				ped::set_ped_can_use_auto_conversation_lookat(iParam2, 1);
			}
		}
	}
}

void func_276(var uParam0, int iParam1)//Position - 0x2C643
{
	if ((uParam0[iParam1 /*10*/])->f_7 == 1)
	{
		(uParam0[iParam1 /*10*/])->f_7 = 0;
	}
}

void func_277(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x2C660
{
	int iVar0;
	
	if (gameplay::is_string_null_or_empty(sLocal_2263) || !gameplay::are_strings_equal(sLocal_2263, sParam0))
	{
		sLocal_2263 = sParam0;
		iVar0 = 0;
		while (iVar0 <= 15)
		{
			if (Local_1477[iVar0 /*10*/].f_7)
			{
				if (((iVar0 != iParam1 && iVar0 != iParam2) && iVar0 != iParam3) && iVar0 != iParam4)
				{
					func_276(&Local_1477, iVar0);
				}
			}
			iVar0++;
		}
	}
}

bool func_278()//Position - 0x2C6D5
{
	if (Global_15745 != 0 || audio::is_scripted_conversation_ongoing())
	{
		return true;
	}
	return false;
}

bool func_279(int iParam0, vector3 vParam1, vector3 vParam4, float fParam7)//Position - 0x2C6F7
{
	var uVar0[20];
	int iVar21;
	int iVar22;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar21 = ped::get_ped_nearby_vehicles(iParam0, &uVar0);
		iVar22 = 0;
		while (iVar22 <= (iVar21 - 1))
		{
			if (vehicle::is_vehicle_driveable(uVar0[iVar22], 0))
			{
				if (func_116(uVar0[iVar22], vParam1, vParam4, fParam7))
				{
					return false;
				}
			}
			iVar22++;
		}
	}
	return true;
}

bool func_280(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)//Position - 0x2C758
{
	iLocal_686 = false;
	iLocal_687 = 0;
	if (func_281(&iLocal_686, &iLocal_687, iParam0, iParam1))
	{
		if (func_281(&iLocal_686, &iLocal_687, iParam2, iParam3))
		{
			if (func_281(&iLocal_686, &iLocal_687, iParam4, iParam5))
			{
				if (func_281(&iLocal_686, &iLocal_687, iParam6, iParam7))
				{
					if (func_281(&iLocal_686, &iLocal_687, iParam8, iParam9))
					{
					}
				}
			}
		}
	}
	if (iLocal_686)
	{
		return true;
	}
	return false;
}

bool func_281(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2C7C8
{
	switch (iParam2)
	{
		case 0:
			*iParam0 = 1;
			break;
		
		case 1:
			return false;
			break;
		
		case 2:
			if (iParam3 == 0 || (iParam3 != 0 && func_285(iParam3)))
			{
				*iParam0 = 1;
			}
			break;
		
		case 3:
			if (iParam3 == 0 || (iParam3 != 0 && func_284(iParam3)))
			{
				*iParam0 = 1;
			}
			break;
		
		case 6:
			if (iParam3 == 0 || (iParam3 != 0 && func_285(iParam3)))
			{
				*iParam0 = 1;
			}
			break;
		
		case 8:
			if (*iParam0)
			{
				return false;
			}
			else
			{
				*iParam1 = 1;
				if (iParam3 == 0 || (iParam3 != 0 && func_285(iParam3)))
				{
					*iParam0 = 1;
				}
			}
			break;
		
		case 4:
			if (iParam3 != 0 && func_284(iParam3))
			{
				*iParam0 = 0;
			}
			break;
		
		case 5:
			if (iParam3 != 0 && func_285(iParam3))
			{
				*iParam0 = 0;
			}
			break;
		
		case 7:
			if (func_283(iParam3))
			{
				if (func_284(iParam3))
				{
					*iParam0 = 1;
				}
				else
				{
					*iParam0 = 0;
				}
			}
			else
			{
				if (func_285(iParam3))
				{
					func_282(iParam3);
				}
				*iParam0 = 0;
			}
			break;
	}
	return true;
}

void func_282(int iParam0)//Position - 0x2C921
{
	int iVar0;
	
	iVar0 = (iParam0 - Local_688[0 /*7*/]);
	if (Local_688[iVar0 /*7*/] == iParam0)
	{
		Local_688[iVar0 /*7*/].f_3 = 1;
	}
}

bool func_283(int iParam0)//Position - 0x2C94D
{
	int iVar0;
	
	iVar0 = (iParam0 - Local_688[0 /*7*/]);
	if (Local_688[iVar0 /*7*/] == iParam0)
	{
		if (Local_688[iVar0 /*7*/].f_1 && Local_688[iVar0 /*7*/].f_3)
		{
			return true;
		}
	}
	return false;
}

bool func_284(int iParam0)//Position - 0x2C98E
{
	int iVar0;
	
	iVar0 = (iParam0 - Local_688[0 /*7*/]);
	if (Local_688[iVar0 /*7*/] == iParam0)
	{
		if (Local_688[iVar0 /*7*/].f_1 && !Local_688[iVar0 /*7*/].f_2)
		{
			return true;
		}
	}
	return false;
}

bool func_285(int iParam0)//Position - 0x2C9D0
{
	int iVar0;
	
	iVar0 = (iParam0 - Local_688[0 /*7*/]);
	if (Local_688[iVar0 /*7*/] == iParam0)
	{
		if (Local_688[iVar0 /*7*/].f_1 && Local_688[iVar0 /*7*/].f_2)
		{
			return true;
		}
	}
	return false;
}

void func_286(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11)//Position - 0x2CA11
{
	if (!Local_140[iParam0 /*6*/].f_1)
	{
		if (func_287(iParam2, iParam3))
		{
			func_288(iParam0, iParam1, iParam4, iParam5, iParam6, iParam7, iParam8, iParam9, iParam10, iParam11);
		}
	}
}

bool func_287(int iParam0, int iParam1)//Position - 0x2CA48
{
	if (Local_140[iParam0 /*6*/] == iParam1)
	{
		if (Local_140[iParam0 /*6*/].f_1)
		{
			return true;
		}
	}
	else if (Local_140[iParam0 /*6*/] != 0)
	{
	}
	return false;
}

void func_288(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)//Position - 0x2CA78
{
	vector3 vVar0;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	
	if (Local_140[iParam0 /*6*/] != iParam1)
	{
		Local_140[iParam0 /*6*/].f_1 = 0;
		Local_140[iParam0 /*6*/] = iParam1;
	}
	if (!Local_140[iParam0 /*6*/].f_1)
	{
		if (func_280(iParam2, iParam3, iParam4, iParam5, iParam6, iParam7, iParam8, iParam9, 1, 0) && !iLocal_1829)
		{
			if (!Local_140[iParam0 /*6*/].f_2)
			{
				Local_140[iParam0 /*6*/].f_2 = 1;
			}
			switch (Local_140[iParam0 /*6*/])
			{
				case 0:
					break;
				
				case 1:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (iLocal_49)
							{
								if (audio::is_scripted_conversation_ongoing())
								{
									if (!ui::is_message_being_displayed())
									{
										cLocal_127 = { func_329() };
										if (!func_328(&cLocal_127))
										{
											vLocal_133 = { func_252() };
										}
										func_253();
										Local_140[iParam0 /*6*/].f_3++;
									}
								}
							}
							break;
						
						case 1:
							if (!audio::is_scripted_conversation_ongoing())
							{
								Local_140[iParam0 /*6*/].f_3 = 0;
							}
							break;
					}
					break;
				
				case 2:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_263("AR2_BU01b", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
								Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 3000;
							}
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								if (func_327(6, 0))
								{
									if (func_327(6, 1))
									{
										iLocal_2229 = func_309(player::player_ped_id(), 2);
										if (iLocal_2229 == 3)
										{
											if (func_263("AR2_BU27", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
											{
												iLocal_48 = 1;
												func_308(6, 0, 0);
												Local_140[iParam0 /*6*/].f_3++;
											}
										}
										if (iLocal_2229 == 1)
										{
											if (func_263("AR2_BU27b", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
											{
												iLocal_48 = 1;
												func_308(6, 0, 0);
												Local_140[iParam0 /*6*/].f_3++;
											}
										}
										if (iLocal_2229 == 2)
										{
											if (func_263("AR2_BU27", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
											{
												iLocal_48 = 1;
												func_308(6, 0, 0);
												Local_140[iParam0 /*6*/].f_3++;
											}
										}
										if (iLocal_2229 == 4)
										{
											if (func_263("AR2_BU27b", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
											{
												iLocal_48 = 1;
												func_308(6, 0, 0);
												Local_140[iParam0 /*6*/].f_3++;
											}
										}
									}
									else if (func_263("AR2_BU31", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
									{
										iLocal_48 = 1;
										Local_140[iParam0 /*6*/].f_3++;
									}
								}
							}
							break;
						
						case 2:
							if (!func_278())
							{
								Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 3000;
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 3:
							if (func_285(6) || ped::is_ped_getting_into_a_vehicle(player::player_ped_id()))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							else if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
							{
								if (func_263("inCar", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_3++;
									Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 9000;
								}
							}
							else if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								if (func_263("get_wheels", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_3++;
									Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 11000;
								}
							}
							break;
						
						case 4:
							if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							else if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								if (func_263("ARM2_NODRIVE", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_4 = (gameplay::get_game_timer() + 10000 + Local_140[iParam0 /*6*/].f_5 * 7000);
									Local_140[iParam0 /*6*/].f_5++;
									if (Local_140[iParam0 /*6*/].f_5 == 3)
									{
										Local_140[iParam0 /*6*/].f_1 = 1;
									}
								}
							}
							break;
					}
					break;
				
				case 10:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
							{
								if (func_123(player::player_ped_id(), -31.3082f, -1102.691f, 25.4223f, 1) < 3.25f)
								{
									if (func_263("AR2_SIEMON", 5, Local_1071[3 /*14*/], "SIMEON", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_3++;
										Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 10000;
										Local_140[iParam0 /*6*/].f_5++;
									}
								}
							}
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								if (Local_140[iParam0 /*6*/].f_5 == 3)
								{
									Local_140[iParam0 /*6*/].f_1 = 1;
								}
								else
								{
									Local_140[iParam0 /*6*/].f_3 = 0;
								}
							}
							break;
					}
					break;
				
				case 11:
					if (func_263("AR2_MESS", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 12:
					if (!ped::is_ped_injured(Local_1071[22 /*14*/]))
					{
						ui::clear_prints();
						func_256();
						if (!ui::is_message_being_displayed())
						{
							if (func_263("ARM2_GET4", 8, Local_1071[22 /*14*/], "ARM2VAGOS4", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
						}
					}
					break;
				
				case 5:
					if (Local_140[iParam0 /*6*/].f_4 < 2)
					{
						if (func_263("ARM2_WANT", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
						{
							func_126(18, 0);
							Local_140[iParam0 /*6*/].f_4++;
						}
					}
					else if (Local_140[iParam0 /*6*/].f_4 < 6)
					{
						if (func_263("ARM2_WANTb", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
						{
							func_126(18, 0);
							Local_140[iParam0 /*6*/].f_4++;
						}
					}
					break;
				
				case 6:
					if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
					{
						if (vehicle::is_this_model_a_bike(entity::get_entity_model(Local_1450[0 /*2*/])))
						{
							if (Local_140[iParam0 /*6*/].f_5 < 2)
							{
								if (func_263("AR2_GETON", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
								{
									func_126(15, 0);
									Local_140[iParam0 /*6*/].f_5++;
								}
							}
						}
						else if (Local_140[iParam0 /*6*/].f_4 < 5)
						{
							if (func_263("ARM2_OUTCAR", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								func_126(15, 0);
								Local_140[iParam0 /*6*/].f_4++;
							}
						}
					}
					break;
				
				case 68:
					if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
					{
						if (vehicle::is_this_model_a_bike(entity::get_entity_model(Local_1450[0 /*2*/])))
						{
							if (Local_140[iParam0 /*6*/].f_5 < 2)
							{
								if (func_263("AR2_GETON", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
								{
									func_126(15, 0);
									Local_140[iParam0 /*6*/].f_5++;
								}
							}
						}
						else if (Local_140[iParam0 /*6*/].f_4 < 5)
						{
							if (func_263("ARM2_BACKCH", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								func_126(15, 0);
								Local_140[iParam0 /*6*/].f_4++;
							}
						}
					}
					break;
				
				case 7:
					if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
					{
						if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) < 10f)
						{
							if (Local_140[iParam0 /*6*/].f_4 < 5)
							{
								if (func_263("ARM2_OUTCARB", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
								{
									func_126(17, 0);
									Local_140[iParam0 /*6*/].f_4++;
								}
							}
						}
					}
					break;
				
				case 8:
					if (Local_140[iParam0 /*6*/].f_4 < 5)
					{
						if (func_263("ARM2_BACKIN", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
						{
							func_126(16, 0);
							Local_140[iParam0 /*6*/].f_4++;
						}
					}
					break;
				
				case 64:
					if (Local_140[iParam0 /*6*/].f_4 < 5)
					{
						func_126(16, 0);
					}
					break;
				
				case 3:
					if (func_285(2) && !gameplay::is_string_null_or_empty(&vLocal_133))
					{
						if (func_306(&vLocal_133, &cLocal_127, 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, 8))
						{
							iLocal_48 = 1;
							StringCopy(&vLocal_133, "", 24);
							StringCopy(&cLocal_127, "", 24);
							func_126(2, 0);
						}
					}
					else if (func_123(player::player_ped_id(), -1134.2f, -1574.5f, 5.1f, 1) > 60f)
					{
						switch (Local_140[iParam0 /*6*/].f_3)
						{
							case 0:
								if (func_305(43))
								{
									if (func_263("AR2_BU02d", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
									{
										iLocal_48 = 1;
										Local_140[iParam0 /*6*/].f_3 = 4;
									}
								}
								else if (func_305(40))
								{
									if (func_263("AR2_BU02c", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
									{
										iLocal_48 = 1;
										Local_140[iParam0 /*6*/].f_3 = 4;
									}
								}
								else if (func_263("AR2_BU02", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
								{
									iLocal_48 = 1;
									Local_140[iParam0 /*6*/].f_3 = 3;
								}
								break;
							
							case 3:
								if (func_263("AR2_BU02b", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
								{
									iLocal_48 = 1;
									Local_140[iParam0 /*6*/].f_3++;
								}
								break;
							
							case 4:
								if (func_278())
								{
									Local_140[iParam0 /*6*/].f_3 = 7;
								}
								break;
							
							case 7:
								if (func_263("driveBant", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
								{
									iLocal_48 = 1;
									Local_140[iParam0 /*6*/].f_3++;
								}
								break;
							
							case 9:
								if (func_278())
								{
									func_253();
									Local_140[iParam0 /*6*/].f_3++;
								}
								break;
							
							case 10:
								if (func_263("DriveApp1", 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, -1, 0, 0, 8))
								{
									iLocal_48 = 1;
									Local_140[iParam0 /*6*/].f_3++;
								}
								break;
						}
					}
					else
					{
						func_253();
						iLocal_48 = 0;
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 14:
					if (func_263("AR2_BU04", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 13:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							func_253();
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (func_263("AR2_BU03", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 2:
							if (!func_251("AR2_BU03"))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 15:
					if (func_263("AR2_AN04", 3, Local_1071[2 /*14*/], "Lamar", 1, Local_1071[3 /*14*/], "Arm2bum", -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 16:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_303("AR2_AN04b", "AR2_AN04b_1", 3, Local_1071[2 /*14*/], "Lamar", 1, Local_1071[3 /*14*/], "Arm2bum", -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (func_303("AR2_AN04b", "AR2_AN04b_2", 3, Local_1071[2 /*14*/], "Lamar", 1, Local_1071[3 /*14*/], "Arm2bum", -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 17:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 1000;
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								if (func_303("AR2_AN04b", "AR2_AN04b_4", 3, Local_1071[2 /*14*/], "Lamar", 1, Local_1071[3 /*14*/], "Arm2bum", -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_1 = 1;
								}
							}
							break;
						
						case 2:
							if (!func_251("AR2_AN04b"))
							{
								audio::_play_ambient_speech_with_voice(Local_1071[3 /*14*/], "AR2_DFAH", "ARM2bum", "SPEECH_PARAMS_FORCE_SHOUTED", 0);
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 18:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							func_253();
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (func_263("AR2_AN04d", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 20:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 1000;
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								if (func_263("AR2_see", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_1 = 1;
								}
							}
							break;
					}
					break;
				
				case 39:
					if (!func_285(64))
					{
						if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
						{
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								switch (Local_140[iParam0 /*6*/].f_3)
								{
									case 0:
										if (func_255(Local_1450[1 /*2*/], Local_1071[2 /*14*/], 1) < 6f)
										{
											Local_140[iParam0 /*6*/].f_3++;
										}
										break;
									
									case 1:
										if (func_263("AR2_AN05", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
										{
											Local_140[iParam0 /*6*/].f_1 = 1;
										}
										break;
									}
								}
						}
					}
					else
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 21:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_263("ARM2_OUT", 4, Local_1071[4 /*14*/], "arm2VAGOSCAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (func_251("move"))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 2:
							if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
							{
								if (entity::get_entity_speed(Local_1450[1 /*2*/]) > 1f)
								{
									if (func_263("ARM2_OUT2", 4, Local_1071[4 /*14*/], "arm2VAGOSCAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_3++;
									}
								}
								else if (func_303("ARM2_OUT2", "ARM2_OUT2_2", 4, Local_1071[4 /*14*/], "arm2VAGOSCAR", -1, 0, 0, -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_3++;
								}
							}
							break;
						
						case 3:
							if (func_263("ARM2_OUT3", 4, Local_1071[4 /*14*/], "arm2VAGOSCAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 4:
							if (func_263("ARM2_OUT4", 4, Local_1071[4 /*14*/], "arm2VAGOSCAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 23:
					if (func_263("ARM2_GET4", 8, Local_1071[4 /*14*/], "arm2VAGOS4", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
					{
						if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
						{
							weapon::give_weapon_to_ped(Local_1071[4 /*14*/], joaat("weapon_pistol"), -1, true, true);
							func_122();
							ai::task_leave_any_vehicle(0, 0, 0);
							ai::task_combat_ped(0, player::player_ped_id(), 0, 16);
							func_121(Local_1071[4 /*14*/], 0);
						}
						if (!ped::is_ped_injured(Local_1071[5 /*14*/]))
						{
							weapon::give_weapon_to_ped(Local_1071[5 /*14*/], joaat("weapon_pistol"), -1, true, true);
							func_122();
							ai::task_leave_any_vehicle(0, 0, 0);
							ai::task_combat_ped(0, player::player_ped_id(), 0, 16);
							func_121(Local_1071[5 /*14*/], 0);
						}
						if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
						{
							if (vehicle::is_playback_going_on_for_vehicle(Local_1450[1 /*2*/]))
							{
								vVar0 = { entity::get_entity_velocity(Local_1450[1 /*2*/]) };
								vehicle::stop_playback_recorded_vehicle(Local_1450[1 /*2*/]);
								entity::set_entity_velocity(Local_1450[1 /*2*/], vVar0);
							}
						}
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 22:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_251("ARM2_OUT"))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (func_263("move", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 24:
					if (func_263("AR2_BU12", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 25:
					if (!ped::is_ped_injured(Local_1071[4 /*14*/]) && !ped::is_ped_injured(Local_1071[5 /*14*/]))
					{
						if (!audio::is_ambient_speech_disabled(Local_1071[5 /*14*/]))
						{
							audio::stop_ped_speaking(Local_1071[5 /*14*/], 1);
						}
						if (!audio::is_ambient_speech_disabled(Local_1071[4 /*14*/]))
						{
							audio::stop_ped_speaking(Local_1071[4 /*14*/], 1);
						}
						switch (Local_140[iParam0 /*6*/].f_3)
						{
							case 0:
								if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
								{
									if (func_255(player::player_ped_id(), Local_1071[4 /*14*/], 1) < 15f)
									{
										if (gameplay::get_random_int_in_range(0, 2) == 0)
										{
											audio::_play_ambient_speech1(Local_1071[4 /*14*/], "CHAT_STATE", "SPEECH_PARAMS_FORCE", 1);
											Local_140[iParam0 /*6*/].f_3 = 2;
										}
										else
										{
											audio::_play_ambient_speech1(Local_1071[5 /*14*/], "CHAT_STATE", "SPEECH_PARAMS_FORCE", 1);
											Local_140[iParam0 /*6*/].f_3 = 3;
										}
									}
								}
								break;
							
							case 2:
								if (!audio::is_ambient_speech_playing(Local_1071[4 /*14*/]))
								{
									audio::_play_ambient_speech1(Local_1071[5 /*14*/], "CHAT_RESP", "SPEECH_PARAMS_FORCE", 1);
									Local_140[iParam0 /*6*/].f_3 = 4;
								}
								break;
							
							case 3:
								if (!audio::is_ambient_speech_playing(Local_1071[5 /*14*/]))
								{
									audio::_play_ambient_speech1(Local_1071[4 /*14*/], "CHAT_RESP", "SPEECH_PARAMS_FORCE", 1);
									Local_140[iParam0 /*6*/].f_3 = 4;
								}
								break;
							
							case 4:
								if (!audio::is_ambient_speech_playing(Local_1071[4 /*14*/]) && !audio::is_ambient_speech_playing(Local_1071[5 /*14*/]))
								{
									Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 9000;
									Local_140[iParam0 /*6*/].f_3 = 0;
								}
								break;
							}
					}
					break;
				
				case 26:
					if (func_263("AR2_BU12", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 27:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 10000;
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) < 15f)
							{
								if (func_263("AR2_BU07", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_1 = 1;
								}
							}
							else if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 28:
					if (func_263("ARM2_adoor", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 29:
					if (func_263("ARM2_nextone", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 30:
					if (func_263("ARM2_last", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 31:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_302("ARM2_INS07", 0, 0))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (Local_140[iParam0 /*6*/].f_4 < 3)
							{
								if (func_263("WaitAtGar", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_3++;
									Local_140[iParam0 /*6*/].f_4++;
									Local_140[iParam0 /*6*/].f_3 = gameplay::get_game_timer() + 4000;
									if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
									{
										func_301(Local_1071[2 /*14*/]);
										ai::task_look_at_entity(Local_1071[2 /*14*/], player::player_ped_id(), 4000, 0, 2);
									}
								}
							}
							else
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
						
						default:
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_3)
							{
								func_300(Local_1071[2 /*14*/], 1);
								Local_140[iParam0 /*6*/].f_3 = 1;
							}
							break;
					}
					break;
				
				case 19:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_299(14, 32) > 0)
							{
								if (!func_285(55))
								{
									if (func_263("AR2_BU12", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_3 = 1;
									}
								}
								else if (entity::is_entity_in_angled_area(player::player_ped_id(), entity::get_entity_coords(Local_1071[2 /*14*/], 1) - Vector(5f, 0f, 0f), -1065.555f, -1675.355f, 24.1932f, 150f, 0, true, 0))
								{
									if (func_263("AR2_LEAVE2", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_3 = 1;
									}
								}
								else if (func_263("AR2_LEAVE1", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_3 = 1;
								}
							}
							break;
						
						case 1:
							if (func_299(14, 32) == 0)
							{
								Local_140[iParam0 /*6*/].f_3 = 0;
							}
							break;
					}
					break;
				
				case 33:
					if (func_263("ARM2_UPTO", 4, Local_1071[4 /*14*/], "ARM2VAGOSCAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_4++;
					}
					if (Local_140[iParam0 /*6*/].f_4 >= 5)
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 34:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 3000;
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							if (func_263("frank_hit", 0, player::player_ped_id(), "FRANKLIN", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 36:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 10000;
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (func_278())
							{
								Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 10000;
							}
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 2:
							if (func_298("ARM2_HURRY", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
								Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 12000;
							}
							break;
						
						case 3:
							if (func_278())
							{
								Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 10000;
							}
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 4:
							if (func_298("openit", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3 = 1;
								Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 12000;
								Local_140[iParam0 /*6*/].f_5++;
								if (Local_140[iParam0 /*6*/].f_5 == 2)
								{
									Local_140[iParam0 /*6*/].f_1 = 1;
								}
							}
							break;
					}
					break;
				
				case 37:
					if (Local_140[iParam0 /*6*/].f_5 < 6)
					{
						if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
						{
							if (func_263("AR2_MESS", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								func_126(87, 0);
								Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 5000;
								Local_140[iParam0 /*6*/].f_5++;
							}
						}
					}
					else
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 38:
					if (Local_140[iParam0 /*6*/].f_5 < 2)
					{
						if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
						{
							if (func_263("AR2_BLOCK", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								func_126(86, 0);
								Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 8000;
								Local_140[iParam0 /*6*/].f_5++;
							}
						}
					}
					else
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 40:
					if (func_263("ARM2_GET", 5, Local_1071[9 /*14*/], "ARM2VAGOS1", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 41:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_297("ARM2_ATTACK", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, 7))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (func_303("ARM2_COVER", "ARM2_COVER_1", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 43:
					if (func_297("AR2_MCS_4_LO", 0, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, 7))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 42:
					if (func_263("AR2_HELP", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 44:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 3000;
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (!ped::is_ped_injured(Local_1071[11 /*14*/]) && gameplay::get_game_timer() < Local_140[iParam0 /*6*/].f_4)
							{
								if (func_263("AR2_BU40", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_1 = 1;
								}
							}
							else
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 45:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_263("ARM2_MORE", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (func_263("AR2_BU18", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								func_26("ARM2_HLP15", 12000);
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 46:
					if (func_263("AR2_BU37", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
					{
						func_126(130, 1);
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 47:
					if (!ped::is_ped_injured(Local_1071[13 /*14*/]))
					{
						if (func_303("AR2_BU37b", "AR2_BU37b_2", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, 8))
						{
							func_126(130, 1);
							Local_140[iParam0 /*6*/].f_1 = 1;
						}
					}
					else
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 48:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (!func_278())
							{
								Local_140[iParam0 /*6*/].f_4 = (gameplay::get_game_timer() + gameplay::get_random_int_in_range(8000, 14000));
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							else if (func_278())
							{
								Local_140[iParam0 /*6*/].f_3 = 0;
							}
							break;
						
						case 2:
							iVar3 = 0;
							if (iLocal_1037[0] < 8 && iLocal_1048 != 0)
							{
								iLocal_1049[0] = 0;
								iVar3++;
							}
							if (((iLocal_1037[1] == 0 || iLocal_1037[2] == 0) || iLocal_1037[3] == 0) || iLocal_1037[4] == 0)
							{
								if (iLocal_1048 != 1)
								{
									iLocal_1049[iVar3] = 1;
									iVar3++;
								}
							}
							if (((iLocal_1037[5] < 3 || iLocal_1037[6] < 3) || iLocal_1037[7] < 3) || iLocal_1037[8] < 3)
							{
								if (iLocal_1048 != 2)
								{
									iLocal_1049[iVar3] = 2;
									iVar3++;
								}
							}
							if (iLocal_1037[9] < 8 && iLocal_1048 != 3)
							{
								iLocal_1049[iVar3] = 3;
								iVar3++;
							}
							if (iVar3 > 0)
							{
								Local_140[iParam0 /*6*/].f_4 = iLocal_1049[gameplay::get_random_int_in_range(0, iVar3)];
								Local_140[iParam0 /*6*/].f_3++;
							}
							else if (iLocal_1048 == -1)
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							iLocal_1048 = -1;
							break;
						
						case 3:
							if (!func_278())
							{
								switch (Local_140[iParam0 /*6*/].f_4)
								{
									case 0:
										if (func_263("ARM2_SHOUT", 0, player::player_ped_id(), "FRANKLIN", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
										{
											Local_140[iParam0 /*6*/].f_3 = 0;
											iLocal_1037[0]++;
											iLocal_1048 = 0;
										}
										break;
									
									case 1:
										iVar4 = gameplay::get_random_int_in_range(0, 12);
										while (iVar4 > 0)
										{
											switch ((iVar4 % 4))
											{
												case 0:
													if (iLocal_1037[1] == 0)
													{
														iVar5 = 0;
													}
													break;
												
												case 1:
													if (iLocal_1037[2] == 0)
													{
														iVar5 = 1;
													}
													break;
												
												case 2:
													if (iLocal_1037[3] == 0)
													{
														iVar5 = 2;
													}
													break;
												
												case 3:
													if (iLocal_1037[4] == 0)
													{
														iVar5 = 3;
													}
													break;
											}
											iVar4 = (iVar4 - 1);
										}
										Local_140[iParam0 /*6*/].f_3 = 4;
										iLocal_1048 = 1;
										Local_140[iParam0 /*6*/].f_4 = iVar5;
										break;
									
									case 2:
										iVar8 = 0;
										iVar7 = -1;
										iVar6 = gameplay::get_random_int_in_range(0, 4);
										while (iVar7 == -1)
										{
											iVar8++;
											switch (iVar6)
											{
												case 0:
													if (iLocal_1037[5] < 3)
													{
														iVar7 = 0;
													}
													else
													{
														iVar6++;
													}
													break;
												
												case 1:
													if (iLocal_1037[6] < 3)
													{
														iVar7 = 1;
													}
													else
													{
														iVar6++;
													}
													break;
												
												case 2:
													if (iLocal_1037[7] < 3)
													{
														iVar7 = 2;
													}
													else
													{
														iVar6++;
													}
													break;
												
												case 3:
													if (iLocal_1037[8] < 3)
													{
														iVar7 = 3;
													}
													else
													{
														iVar6 = 0;
													}
													break;
											}
											if (iVar8 == 5)
											{
												iVar7 = 10;
											}
										}
										if (iVar7 != 10)
										{
											Local_140[iParam0 /*6*/].f_3 = 5;
											iLocal_1048 = 2;
											Local_140[iParam0 /*6*/].f_4 = iVar7;
										}
										else
										{
											Local_140[iParam0 /*6*/].f_3 = 0;
										}
										break;
									
									case 3:
										if (func_263("AR2_tnt", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
										{
											Local_140[iParam0 /*6*/].f_3 = 0;
											iLocal_1037[9]++;
											iLocal_1048 = 3;
										}
										break;
								}
							}
							else
							{
								Local_140[iParam0 /*6*/].f_3 = 0;
							}
							break;
						
						case 4:
							switch (Local_140[iParam0 /*6*/].f_4)
							{
								case 0:
									if (func_263("shtchat1", 0, player::player_ped_id(), "FRANKLIN", 2, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_3 = 0;
										iLocal_1037[1] = 1;
									}
									break;
								
								case 1:
									if (func_263("shtchat2", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_3 = 0;
										iLocal_1037[2] = 1;
									}
									break;
								
								case 2:
									if (func_263("shtchat3", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_3 = 0;
										iLocal_1037[3] = 1;
									}
									break;
								
								case 3:
									if (func_263("shtchat4", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_3 = 0;
										iLocal_1037[4] = 1;
									}
									break;
							}
							break;
						
						case 5:
							iVar9 = func_296();
							if (iVar9 != -1)
							{
								switch (Local_140[iParam0 /*6*/].f_4)
								{
									case 0:
										if (func_263("ARM2_GET", 5, Local_1071[iVar9 /*14*/], "ARM2VAGOS1", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
										{
											Local_140[iParam0 /*6*/].f_3 = 0;
											iLocal_1037[5]++;
										}
										break;
									
									case 1:
										if (gameplay::get_random_int_in_range(0, 2) == 0)
										{
											if (func_263("ARM2_GET2", 6, Local_1071[iVar9 /*14*/], "ARM2VAGOS2", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
											{
												Local_140[iParam0 /*6*/].f_3 = 0;
												iLocal_1037[6]++;
											}
										}
										else if (func_263("ARM2_NOGO", 5, Local_1071[iVar9 /*14*/], "ARM2VAGOS1", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
										{
											Local_140[iParam0 /*6*/].f_3 = 0;
											iLocal_1037[6]++;
										}
										break;
									
									case 2:
										if (func_263("ARM2_GET3", 7, Local_1071[iVar9 /*14*/], "ARM2VAGOS3", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
										{
											Local_140[iParam0 /*6*/].f_3 = 0;
											iLocal_1037[7]++;
										}
										break;
									
									case 3:
										if (func_263("ARM2_GET4", 8, Local_1071[iVar9 /*14*/], "ARM2VAGOS4", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
										{
											Local_140[iParam0 /*6*/].f_3 = 0;
											iLocal_1037[8]++;
										}
										break;
									}
							}
							break;
					}
					break;
				
				case 49:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_251("AR2_BU37"))
							{
								func_256();
							}
							if (func_263("AR2_BLOWUP", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 670;
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							else if (func_263("AR2_BLOWUP", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 50:
					if (func_285(101))
					{
						if (func_263("AR2_godst", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
						{
							Local_140[iParam0 /*6*/].f_1 = 1;
						}
					}
					else if (func_303("AR2_godst", "AR2_godst_3", 1, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 51:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_263("AR2_BU19", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (func_263("AR2_BU19b", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 52:
					if (entity::does_entity_exist(Local_1071[18 /*14*/]))
					{
						if (!ped::is_ped_injured(Local_1071[18 /*14*/]))
						{
							if (func_263("ARM2_BALCON", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
						}
						else
						{
							Local_140[iParam0 /*6*/].f_1 = 1;
						}
					}
					break;
				
				case 53:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (!func_278())
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (entity::does_entity_exist(Local_1071[19 /*14*/]))
							{
								if (!ped::is_ped_injured(Local_1071[19 /*14*/]))
								{
									if (func_303("AR2_BU20b", "AR2_BU20b_1", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_1 = 1;
									}
								}
								else
								{
									Local_140[iParam0 /*6*/].f_1 = 1;
								}
							}
							break;
					}
					break;
				
				case 54:
					if (entity::does_entity_exist(Local_1071[21 /*14*/]))
					{
						if (!ped::is_ped_injured(Local_1071[21 /*14*/]))
						{
							if (func_263("AR2_DOOR", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
						}
						else
						{
							Local_140[iParam0 /*6*/].f_1 = 1;
						}
					}
					break;
				
				case 55:
					if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
					{
						if (vehicle::is_playback_going_on_for_vehicle(Local_1450[6 /*2*/]))
						{
							if (func_263("AR2_BU26", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
						}
						else
						{
							Local_140[iParam0 /*6*/].f_1 = 1;
						}
					}
					else
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 57:
					if (iLocal_1066)
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					else if (func_263("AR2_BU36", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 56:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_263("ARM2_MORE2", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (func_263("ARM2_MORE2", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 58:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 500;
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								if (func_263("AR2_safe", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
								{
									Local_140[iParam0 /*6*/].f_1 = 1;
								}
							}
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4 + 4000)
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 59:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
							{
								if (entity::is_entity_in_angled_area(Local_1450[4 /*2*/], -1129.596f, -1588.691f, -0.139362f, -1141.044f, -1572.93f, 7.562129f, 25.25f, 0, true, 0))
								{
									Local_140[iParam0 /*6*/].f_3++;
								}
							}
							break;
						
						case 1:
							if (func_263("AR2_MCS5_LI", 0, player::player_ped_id(), "FRANKLIN", 1, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 63:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							if (func_263("AR2_BU23", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 1:
							if (func_263("ARM2_GOBIKE", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3++;
							}
							break;
						
						case 2:
							if (func_285(30))
							{
								if (func_284(33))
								{
									if (func_263("get_wheels", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_1 = 1;
									}
								}
								else
								{
									Local_140[iParam0 /*6*/].f_1 = 1;
								}
							}
							break;
					}
					break;
				
				case 60:
					if (func_263("ARM2_burn", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 61:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 4500;
							Local_140[iParam0 /*6*/].f_3++;
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
							{
								if (func_284(101) && func_284(110))
								{
									if (func_263("AR2_BU24", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
									{
										Local_140[iParam0 /*6*/].f_1 = 1;
									}
								}
								else
								{
									Local_140[iParam0 /*6*/].f_1 = 1;
								}
							}
							break;
					}
					break;
				
				case 62:
					if (func_263("AR2_LEAVE3", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 65:
					if (func_285(31) && !gameplay::is_string_null_or_empty(&vLocal_133))
					{
						if (func_306(&vLocal_133, &cLocal_127, 3, Local_1071[2 /*14*/], "Lamar", 0, Local_1071[0 /*14*/], "Franklin", -1, 0, 0, 8))
						{
							iLocal_48 = 1;
							StringCopy(&vLocal_133, "", 24);
							StringCopy(&cLocal_127, "", 24);
							func_126(31, 0);
						}
					}
					else
					{
						switch (Local_140[iParam0 /*6*/].f_3)
						{
							case 0:
								func_294(1);
								Local_140[iParam0 /*6*/].f_3++;
								break;
							
							case 1:
								func_294(0);
								break;
							}
					}
					break;
				
				case 66:
					if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
					{
						if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
						{
							if (func_255(player::player_ped_id(), Local_1071[8 /*14*/], 1) < 40f)
							{
								audio::set_ambient_voice_name(Local_1071[8 /*14*/], "G_M_Y_SalvaGoon_02_SALVADORIAN_MINI_02");
								func_292(Local_1071[8 /*14*/], "GENERIC_INSULT_HIGH", 10);
								Local_140[iParam0 /*6*/].f_3++;
								Local_140[iParam0 /*6*/].f_4 = (gameplay::get_game_timer() + gameplay::get_random_int_in_range(2500, 4000));
							}
						}
					}
					break;
				
				case 67:
					if (func_263("ARM2_GETIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 69:
					switch (Local_140[iParam0 /*6*/].f_3)
					{
						case 0:
							func_256();
							Local_140[iParam0 /*6*/].f_3 = 100;
							break;
						
						case 100:
							if (func_263("AR2_AN14", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_3 = 1;
							}
							break;
						
						case 1:
							if (func_263("AR2_BU34", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								Local_140[iParam0 /*6*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 70:
					if (func_263("AR2_bye", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 71:
					if (func_263("AR2_FINDCAR", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 72:
					if (Local_140[iParam0 /*6*/].f_5 < 3)
					{
						if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
						{
							if (func_291(6, 117) == 2)
							{
								func_290();
							}
							if (func_263("AR2_BRING", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								func_289(6, 117, 0);
								Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 8000;
								Local_140[iParam0 /*6*/].f_5++;
							}
						}
					}
					else
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				
				case 73:
					if (Local_140[iParam0 /*6*/].f_5 < 3)
					{
						if (gameplay::get_game_timer() > Local_140[iParam0 /*6*/].f_4)
						{
							if (func_291(6, 117) == 2)
							{
								func_290();
							}
							if (func_263("AR2_NOBIKE", 3, Local_1071[2 /*14*/], "LAMAR", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
							{
								func_289(6, 117, 0);
								Local_140[iParam0 /*6*/].f_4 = gameplay::get_game_timer() + 8000;
								Local_140[iParam0 /*6*/].f_5++;
							}
						}
					}
					else
					{
						Local_140[iParam0 /*6*/].f_1 = 1;
					}
					break;
				}
			}
	}
	if (audio::is_scripted_conversation_ongoing())
	{
		Local_115 = { func_252() };
	}
	else
	{
		Local_121 = { Local_115 };
		Local_121 = { Local_121 };
	}
}

void func_289(int iParam0, int iParam1, int iParam2)//Position - 0x2FB17
{
	if (Local_325[iParam0 /*10*/] == iParam1)
	{
		Local_325[iParam0 /*10*/].f_8 = iParam2;
	}
}

void func_290()//Position - 0x2FB39
{
	Global_14611 = 0;
	func_272();
}

int func_291(int iParam0, int iParam1)//Position - 0x2FB49
{
	if (Local_325[iParam0 /*10*/] == iParam1)
	{
		return Local_325[iParam0 /*10*/].f_8;
	}
	return -1;
}

void func_292(int iParam0, char* sParam1, int iParam2)//Position - 0x2FB6D
{
	audio::_play_ambient_speech1(iParam0, sParam1, func_293(iParam2), 1);
}

int func_293(int iParam0)//Position - 0x2FB84
{
	int iVar0;
	
	switch (iParam0)
	{
		case 0:
			return "SPEECH_PARAMS_STANDARD";
		
		case 1:
			return "SPEECH_PARAMS_ALLOW_REPEAT";
		
		case 2:
			return "SPEECH_PARAMS_BEAT";
		
		case 3:
			return "SPEECH_PARAMS_FORCE";
		
		case 4:
			return "SPEECH_PARAMS_FORCE_FRONTEND";
		
		case 5:
			return "SPEECH_PARAMS_FORCE_NO_REPEAT_FRONTEND";
		
		case 6:
			return "SPEECH_PARAMS_FORCE_NORMAL";
		
		case 7:
			return "SPEECH_PARAMS_FORCE_NORMAL_CLEAR";
		
		case 8:
			return "SPEECH_PARAMS_FORCE_NORMAL_CRITICAL";
		
		case 9:
			return "SPEECH_PARAMS_FORCE_SHOUTED";
		
		case 10:
			return "SPEECH_PARAMS_FORCE_SHOUTED_CLEAR";
		
		case 11:
			return "SPEECH_PARAMS_FORCE_SHOUTED_CRITICAL";
		
		case 12:
			return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY";
		
		case 13:
			return "SPEECH_PARAMS_MEGAPHONE";
		
		case 14:
			return "SPEECH_PARAMS_HELI";
		
		case 15:
			return "SPEECH_PARAMS_FORCE_MEGAPHONE";
		
		case 16:
			return "SPEECH_PARAMS_FORCE_HELI";
		
		case 17:
			return "SPEECH_PARAMS_INTERRUPT";
		
		case 18:
			return "SPEECH_PARAMS_INTERRUPT_SHOUTED";
		
		case 19:
			return "SPEECH_PARAMS_INTERRUPT_SHOUTED_CLEAR";
		
		case 20:
			return "SPEECH_PARAMS_INTERRUPT_SHOUTED_CRITICAL";
		
		case 21:
			return "SPEECH_PARAMS_INTERRUPT_NO_FORCE";
		
		case 22:
			return "SPEECH_PARAMS_INTERRUPT_FRONTEND";
		
		case 23:
			return "SPEECH_PARAMS_INTERRUPT_NO_FORCE_FRONTEND";
		
		case 24:
			return "SPEECH_PARAMS_ADD_BLIP";
		
		case 25:
			return "SPEECH_PARAMS_ADD_BLIP_ALLOW_REPEAT";
		
		case 26:
			return "SPEECH_PARAMS_ADD_BLIP_FORCE";
		
		case 27:
			return "SPEECH_PARAMS_ADD_BLIP_SHOUTED";
		
		case 28:
			return "SPEECH_PARAMS_ADD_BLIP_SHOUTED_FORCE";
		
		case 29:
			return "SPEECH_PARAMS_ADD_BLIP_INTERRUPT";
		
		case 30:
			return "SPEECH_PARAMS_ADD_BLIP_INTERRUPT_FORCE";
		
		case 31:
			return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY_SHOUTED";
		
		case 32:
			return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY_SHOUTED_CLEAR";
		
		case 33:
			return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY_SHOUTED_CRITICAL";
		
		case 34:
			return "SPEECH_PARAMS_SHOUTED";
		
		case 35:
			return "SPEECH_PARAMS_SHOUTED_CLEAR";
		
		case 36:
			return "SPEECH_PARAMS_SHOUTED_CRITICAL";
		
		default:
	}
	iVar0 = 0;
	return iVar0;
}

void func_294(int iParam0)//Position - 0x2FD9E
{
	if (iParam0 == 1)
	{
		iLocal_2266 = 1;
		iLocal_2265 = 0;
		iLocal_2264 = 1;
		iLocal_2267 = 10;
		iLocal_1061 = 0;
	}
	else if (!ped::is_ped_injured(Local_1071[8 /*14*/]) && vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
	{
		if (entity::is_entity_at_entity(player::player_ped_id(), Local_1450[4 /*2*/], (entity::get_entity_speed(Local_1450[0 /*2*/]) * 3.5f), (entity::get_entity_speed(Local_1450[0 /*2*/]) * 3.5f), 20f, 0, 1, 0))
		{
			if (iLocal_2264 == 1)
			{
				iLocal_2266 = 3;
				func_253();
			}
		}
		switch (iLocal_2266)
		{
			case 2:
				if (iLocal_2268 == -1)
				{
					iLocal_2268 = gameplay::get_random_int_in_range(0, 2);
				}
				if (iLocal_2268 == 0)
				{
					if (func_263("AR2_AN09", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						iLocal_2268 = -1;
						iLocal_2266 = 4;
					}
				}
				else if (func_263("ARM2_BIKE", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
				{
					iLocal_2268 = -1;
					iLocal_2266 = 4;
				}
				break;
			
			case 4:
				if (!gameplay::is_string_null_or_empty(sLocal_2217))
				{
					if (func_263(sLocal_2217, 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						sLocal_2217 = "";
					}
				}
				else if (!func_278())
				{
					iLocal_2265 = (gameplay::get_game_timer() + gameplay::get_random_int_in_range(4000, 6000));
					iLocal_2266 = 5;
				}
				break;
			
			case 5:
				if (gameplay::get_game_timer() > iLocal_2265)
				{
					if (func_255(player::player_ped_id(), Local_1071[8 /*14*/], 1) < 50f)
					{
						iLocal_2267 = 11;
						iLocal_2266 = 4;
						sLocal_2217 = "AR2_AN13";
					}
					else if (func_255(player::player_ped_id(), Local_1071[8 /*14*/], 1) > 100f)
					{
						if (iLocal_2267 == 11)
						{
							if (func_263("AR2_lost", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
							{
								iLocal_2266 = 4;
								iLocal_2267 = 10;
							}
						}
						else
						{
							if (!gameplay::is_string_null_or_empty(sLocal_2217))
							{
							}
							else if (func_295(&iLocal_2224, &iLocal_1061, 0, 2, 0, 0))
							{
								if (iLocal_2224 == 0)
								{
									sLocal_2217 = "AR2_AN10";
								}
								else if (iLocal_2224 == 1)
								{
									sLocal_2217 = "AR2_AN11";
								}
								else if (iLocal_2224 == 2)
								{
									sLocal_2217 = "AR2_AN12";
								}
								iLocal_2266 = 4;
							}
							iLocal_2267 = 10;
						}
					}
				}
				break;
			
			case 3:
				iLocal_2264 = 0;
				if (weapon::get_best_ped_weapon(player::player_ped_id(), 0) != joaat("weapon_unarmed"))
				{
					if (func_263("AR2_AN15", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
					{
						iLocal_2266 = 7;
					}
				}
				else if (func_263("AR2_AN15b", 0, player::player_ped_id(), "FRANKLIN", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, 8))
				{
					iLocal_2266 = 9;
				}
				break;
			
			case 7:
				if (!func_278())
				{
					func_147(2, 12, 0);
					iLocal_2266 = 5;
				}
				break;
			
			case 8:
				iLocal_2266 = 5;
				break;
			
			case 9:
				if (!func_278())
				{
					iLocal_2266 = 5;
				}
				break;
			
			case 1:
				if (!func_278())
				{
					iLocal_2266 = 2;
				}
				break;
			}
	}
}

bool func_295(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x300DF
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar1 = 0;
	iVar0 = iParam2;
	while (iVar0 <= iParam3)
	{
		if (!gameplay::is_bit_set(*iParam1, iVar0))
		{
			iVar1++;
		}
		iVar0++;
	}
	iVar2 = gameplay::get_random_int_in_range(0, iVar1);
	iVar0 = iParam2;
	while (iVar0 <= iParam3)
	{
		if (!gameplay::is_bit_set(*iParam1, iVar0))
		{
			if (iVar2 == 0)
			{
				if (iParam4 == 1)
				{
					*iParam1 = 0;
				}
				gameplay::set_bit(iParam1, iVar0);
				*uParam0 = iVar0;
				return true;
			}
			else
			{
				iVar2 = (iVar2 - 1);
			}
		}
		iVar0++;
	}
	if (iParam5 == 1)
	{
		*iParam1 = 0;
		*uParam0 = gameplay::get_random_int_in_range(0, iVar1);
		gameplay::set_bit(iParam1, *uParam0);
		return true;
	}
	return false;
}

int func_296()//Position - 0x30187
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Local_1071)
	{
		if (!ped::is_ped_injured(Local_1071[iVar0 /*14*/]))
		{
			if (ped::get_ped_relationship_group_hash(Local_1071[iVar0 /*14*/]) == iLocal_1473)
			{
				return iVar0;
			}
		}
		iVar0++;
	}
	return -1;
}

bool func_297(char* sParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, char* sParam6, int iParam7, int iParam8, char* sParam9, int iParam10)//Position - 0x301C9
{
	func_277(sParam0, iParam1, iParam4, iParam7, -1);
	func_274(iParam1, iParam2, sParam3);
	if (iParam4 != -1)
	{
		func_274(iParam4, iParam5, sParam6);
	}
	if (iParam7 != -1)
	{
		func_274(iParam7, iParam8, sParam9);
	}
	if (func_264(&Local_1477, cLocal_1642, sParam0, iParam10, 1, 0, 0))
	{
		return true;
	}
	return false;
}

bool func_298(char* sParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, char* sParam6, int iParam7, int iParam8, char* sParam9, int iParam10, int iParam11, char* sParam12, int iParam13)//Position - 0x30221
{
	if (!ui::is_message_being_displayed())
	{
		if (func_263(sParam0, iParam1, iParam2, sParam3, iParam4, iParam5, sParam6, iParam7, iParam8, sParam9, iParam10, iParam11, sParam12, iParam13))
		{
			return true;
		}
	}
	return false;
}

int func_299(int iParam0, int iParam1)//Position - 0x30259
{
	if (Local_325[iParam0 /*10*/] == iParam1)
	{
		return Local_325[iParam0 /*10*/].f_6;
	}
	return -1;
}

void func_300(int iParam0, int iParam1)//Position - 0x3027A
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = false;
		if (iParam1)
		{
			if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()) && ped::is_ped_sitting_in_any_vehicle(iParam0))
			{
				if (ped::get_vehicle_ped_is_in(player::player_ped_id(), 0) == ped::get_vehicle_ped_is_in(iParam0, 0))
				{
					iVar0 = true;
				}
			}
		}
		else
		{
			iVar0 = false;
		}
		if (!ped::is_ped_headtracking_entity(iParam0, player::player_ped_id()))
		{
			if (!iVar0)
			{
				ai::task_look_at_entity(iParam0, player::player_ped_id(), -1, 2049, 2);
			}
		}
		else if (iVar0)
		{
			if (!audio::is_ped_in_current_conversation(iParam0))
			{
				ai::task_clear_look_at(iParam0);
			}
		}
	}
}

void func_301(int iParam0)//Position - 0x30301
{
	if (!ped::is_ped_injured(iParam0))
	{
		if (ped::is_ped_headtracking_entity(iParam0, player::player_ped_id()))
		{
			ai::task_clear_look_at(iParam0);
		}
	}
}

var func_302(char* sParam0, int iParam1, char* sParam2)//Position - 0x30326
{
	ui::_0x853648FD1063A213(sParam0);
	if (iParam1 == 1)
	{
		ui::_add_text_component_item_string(sParam2);
	}
	return ui::_0x8A9BA1AB3E237613();
}

bool func_303(char* sParam0, char* sParam1, int iParam2, int iParam3, char* sParam4, int iParam5, int iParam6, char* sParam7, int iParam8, int iParam9, char* sParam10, int iParam11)//Position - 0x30344
{
	if (!ui::is_message_being_displayed() || !ui::is_subtitle_preference_switched_on())
	{
		func_277(sParam0, iParam2, iParam5, iParam8, -1);
		func_274(iParam2, iParam3, sParam4);
		if (iParam5 != -1)
		{
			func_274(iParam5, iParam6, sParam7);
		}
		if (iParam8 != -1)
		{
			func_274(iParam8, iParam9, sParam10);
		}
		if (func_304(&Local_1477, cLocal_1642, sParam0, sParam1, iParam11, 0, 0))
		{
			return true;
		}
	}
	return false;
}

int func_304(var uParam0, char* sParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6)//Position - 0x303B0
{
	func_273(uParam0, 145, sParam1, iParam5, iParam6, 0);
	if (iParam4 > 7)
	{
		if (iParam4 < 12)
		{
			iParam4 = 7;
		}
	}
	Global_15752 = 0;
	Global_15759 = 0;
	Global_15754 = 0;
	Global_16736 = 1;
	Global_16738 = 0;
	Global_16742 = 0;
	StringCopy(&Global_16749, sParam3, 24);
	Global_2621441 = 0;
	return func_265(sParam2, iParam4, 0);
}

int func_305(int iParam0)//Position - 0x30404
{
	if (iParam0 == 94 || iParam0 == -1)
	{
		return 0;
	}
	return Global_101553.f_7940.f_330[iParam0 /*6*/];
}

bool func_306(char* sParam0, char* sParam1, int iParam2, int iParam3, char* sParam4, int iParam5, int iParam6, char* sParam7, int iParam8, int iParam9, char* sParam10, int iParam11)//Position - 0x30430
{
	if (!ui::is_message_being_displayed() || !ui::is_subtitle_preference_switched_on())
	{
		func_277(sParam0, iParam2, iParam5, iParam8, -1);
		func_274(iParam2, iParam3, sParam4);
		if (iParam5 != -1)
		{
			func_274(iParam5, iParam6, sParam7);
		}
		if (iParam8 != -1)
		{
			func_274(iParam8, iParam9, sParam10);
		}
		if (func_307(&Local_1477, cLocal_1642, sParam0, sParam1, iParam11, 0, 0))
		{
			return true;
		}
	}
	return false;
}

int func_307(var uParam0, char* sParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6)//Position - 0x3049C
{
	func_273(uParam0, 145, sParam1, iParam5, iParam6, 0);
	if (iParam4 > 7)
	{
		if (iParam4 < 12)
		{
			iParam4 = 7;
		}
	}
	Global_15752 = 0;
	Global_15759 = 0;
	Global_15754 = 0;
	Global_16736 = 0;
	Global_16738 = 0;
	Global_16742 = 1;
	StringCopy(&Global_16749, sParam3, 24);
	Global_2621441 = 0;
	return func_265(sParam2, iParam4, 0);
}

void func_308(int iParam0, int iParam1, int iParam2)//Position - 0x304F0
{
	int iVar0;
	
	if (iParam0 == 11 || iParam0 == -1)
	{
		return;
	}
	if (iParam1 < 0 || iParam1 >= 32)
	{
		return;
	}
	iVar0 = gameplay::is_bit_set(Global_101553.f_7940.f_99.f_219[iParam0], iParam1);
	if (iVar0 == iParam2)
	{
		return;
	}
	if (iParam2)
	{
		gameplay::set_bit(&(Global_101553.f_7940.f_99.f_219[iParam0]), iParam1);
	}
	else
	{
		gameplay::clear_bit(&(Global_101553.f_7940.f_99.f_219[iParam0]), iParam1);
	}
}

int func_309(int iParam0, int iParam1)//Position - 0x30575
{
	int iVar0;
	int iVar1;
	
	iVar0 = entity::get_entity_model(iParam0);
	if (!func_326(iVar0, 0))
	{
		return 2;
	}
	iVar1 = func_310(iParam0, iParam1, -1);
	if (iVar1 == -99)
	{
		return 0;
	}
	Global_69438[1 /*14*/] = { func_175(entity::get_entity_model(iParam0), iParam1, iVar1) };
	return Global_69438[1 /*14*/];
}

int func_310(int iParam0, int iParam1, int iParam2)//Position - 0x305CA
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 == 12)
		{
			iVar0 = 0;
			while (iVar0 <= 53)
			{
				if (func_313(iParam0, iParam1, iVar0))
				{
					return iVar0;
				}
				iVar0++;
			}
		}
		else if (iParam1 == 13)
		{
			iVar1 = 0;
			while (iVar1 <= 19)
			{
				if (func_313(iParam0, iParam1, iVar1))
				{
					return iVar1;
				}
				iVar1++;
			}
			return 31;
		}
		else if (iParam1 == 14)
		{
			if (iParam2 == -1)
			{
			}
			else
			{
				return func_312(iParam0, iParam2);
			}
		}
		else
		{
			return func_311(iParam0, iParam1);
		}
	}
	return -99;
}

int func_311(int iParam0, int iParam1)//Position - 0x3066B
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (((iParam1 == 12 || iParam1 == 13) || iParam1 == 14) || ped::is_ped_injured(iParam0))
	{
		return -99;
	}
	iVar0 = func_170(iParam1);
	iVar1 = ped::get_ped_drawable_variation(iParam0, iVar0);
	iVar2 = ped::get_ped_texture_variation(iParam0, iVar0);
	return func_242(iParam0, iVar1, iVar2, iParam1);
}

int func_312(int iParam0, int iParam1)//Position - 0x306CB
{
	int iVar0;
	int iVar1;
	
	if (ped::is_ped_injured(iParam0))
	{
		return -99;
	}
	iVar0 = ped::get_ped_prop_index(iParam0, iParam1);
	if (iVar0 == -1)
	{
		return func_172(iParam1);
	}
	iVar1 = ped::get_ped_prop_texture_index(iParam0, iParam1);
	return func_166(iParam0, iVar0, iVar1, iParam1);
}

bool func_313(int iParam0, int iParam1, int iParam2)//Position - 0x30711
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	var uVar5;
	var uVar22;
	int iVar32;
	var uVar33;
	
	if (ped::is_ped_injured(iParam0))
	{
		return false;
	}
	iVar0 = entity::get_entity_model(iParam0);
	Global_69438[1 /*14*/] = { func_175(iVar0, iParam1, iParam2) };
	if (!gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 0))
	{
		return false;
	}
	if (iParam1 == 12)
	{
		uVar5 = { func_323(iVar0, iParam2) };
		iVar2 = 0;
		while (iVar2 <= 14)
		{
			if ((uVar5[iVar2] != -99 && iVar2 != 12) && iVar2 != 14)
			{
				if (!func_313(iParam0, iVar2, uVar5[iVar2]))
				{
					if (iVar2 == 13)
					{
						uVar22 = { func_320(iVar0, uVar5[iVar2]) };
						iVar3 = 0;
						while (iVar3 <= 8)
						{
							if (!func_313(iParam0, 14, uVar22[iVar3]))
							{
								iVar4 = 0;
								while (iVar4 <= 19)
								{
									Global_69438[2 /*14*/] = { func_175(iVar0, 14, iVar4) };
									if (Global_69438[2 /*14*/].f_12 == iVar3)
									{
										if (func_313(iParam0, 14, iVar4))
										{
											if (!func_314(iVar0, iParam2, 14, iVar4, &uVar5, &(Global_69438[2 /*14*/])))
											{
												return false;
											}
										}
									}
									iVar4++;
								}
							}
							iVar3++;
						}
					}
					else
					{
						iVar1 = func_311(iParam0, iVar2);
						Global_69438[2 /*14*/] = { func_175(iVar0, iVar2, iVar1) };
						if (!func_314(iVar0, iParam2, iVar2, iVar1, &uVar5, &(Global_69438[2 /*14*/])))
						{
							return false;
						}
					}
				}
			}
			iVar2++;
		}
		return true;
	}
	else if (iParam1 == 13)
	{
		uVar33 = { func_320(iVar0, iParam2) };
		iVar32 = 0;
		while (iVar32 <= 8)
		{
			if (!func_313(iParam0, 14, uVar33[iVar32]))
			{
				return false;
			}
			iVar32++;
		}
		return true;
	}
	else if (iParam1 == 14)
	{
		if (ped::get_ped_prop_index(iParam0, Global_69438[1 /*14*/].f_12) == Global_69438[1 /*14*/].f_3 && (ped::get_ped_prop_texture_index(iParam0, Global_69438[1 /*14*/].f_12) == Global_69438[1 /*14*/].f_4 || Global_69438[1 /*14*/].f_3 == -1))
		{
			return true;
		}
	}
	else if (Global_69438[1 /*14*/].f_3 == ped::get_ped_drawable_variation(iParam0, func_170(iParam1)) && Global_69438[1 /*14*/].f_4 == ped::get_ped_texture_variation(iParam0, func_170(iParam1)))
	{
		return true;
	}
	return false;
}

bool func_314(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4, var uParam5)//Position - 0x30969
{
	var uVar0;
	int iVar10;
	
	if ((*uParam4)[iParam2] == iParam3)
	{
		return true;
	}
	if (((*uParam4)[iParam2] == -99 && iParam2 != 14) && iParam2 != 13)
	{
		return true;
	}
	if (iParam2 == 13 || (iParam2 == 14 && (*uParam4)[13] == 31))
	{
		if ((((((((iParam3 == 0 || iParam3 == 1) || iParam3 == 2) || iParam3 == 3) || iParam3 == 4) || iParam3 == 5) || iParam3 == 6) || iParam3 == 7) || iParam3 == 8)
		{
			return true;
		}
	}
	if (iParam3 == -99 || uParam5->f_1 == -1)
	{
		return true;
	}
	if (iParam2 == 14)
	{
		uVar0 = { func_320(iParam0, (*uParam4)[13]) };
		iVar10 = 0;
		while (iVar10 <= 8)
		{
			if (uVar0[iVar10] == iParam3)
			{
				return true;
			}
			iVar10++;
		}
	}
	if (func_319(iParam0, iParam2, iParam3))
	{
		return true;
	}
	if (iParam0 == joaat("player_zero"))
	{
		if (func_318(iParam0, iParam2, iParam3))
		{
			if ((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 18) || iParam1 == 50)
			{
				return false;
			}
			return true;
		}
		else if (func_317(iParam0, iParam2, iParam3))
		{
			if (((((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 4) || iParam1 == 5) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 14) || iParam1 == 18) || iParam1 == 50)
			{
				return false;
			}
			if (iParam2 == 8)
			{
				if ((*uParam4)[8] != 0)
				{
					return false;
				}
			}
			else if (iParam2 == 9)
			{
				if ((*uParam4)[9] != 0)
				{
					return false;
				}
			}
			return true;
		}
		else if (func_315(iParam0, iParam2, iParam3))
		{
			if (((((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 4) || iParam1 == 5) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 14) || iParam1 == 18) || iParam1 == 50)
			{
				return false;
			}
			return true;
		}
	}
	else if (iParam0 == joaat("player_one"))
	{
		if (func_318(iParam0, iParam2, iParam3))
		{
			if ((iParam1 == 3 || iParam1 == 5) || iParam1 == 7)
			{
				return false;
			}
			return true;
		}
		else if (func_317(iParam0, iParam2, iParam3))
		{
			if ((((iParam1 == 3 || iParam1 == 5) || iParam1 == 7) || iParam1 == 8) || iParam1 == 21)
			{
				if (iParam2 == 8)
				{
					if (iParam3 == 9)
					{
						if (iParam1 == 8 || iParam1 == 21)
						{
							return true;
						}
					}
					else
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			if (iParam2 == 8)
			{
				if ((*uParam4)[8] != 26)
				{
					return false;
				}
			}
			else if (iParam2 == 9)
			{
				if ((*uParam4)[9] != 0)
				{
					return false;
				}
				if (((iParam1 == 43 || iParam1 == 44) || iParam1 == 45) || iParam1 == 46)
				{
					if (iParam3 >= 5 && iParam3 <= 10)
					{
						return false;
					}
				}
			}
			else if (iParam2 == 14)
			{
				if (((iParam1 == 43 || iParam1 == 44) || iParam1 == 45) || iParam1 == 46)
				{
					if (iParam3 >= 26 && iParam3 <= 39)
					{
						return false;
					}
				}
			}
			return true;
		}
		else if (func_315(iParam0, iParam2, iParam3))
		{
			if (((((iParam1 == 3 || iParam1 == 3) || iParam1 == 5) || iParam1 == 7) || iParam1 == 8) || iParam1 == 21)
			{
				return false;
			}
			return true;
		}
		else if (iParam2 == 14)
		{
			if (iParam3 >= 159 && iParam3 <= 174)
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_two"))
	{
		if (iParam1 == 2)
		{
			if (iParam2 == 14 && iParam3 == 0)
			{
				return true;
			}
		}
		if (func_318(iParam0, iParam2, iParam3))
		{
			if (((((iParam1 == 1 || iParam1 == 2) || iParam1 == 6) || iParam1 == 8) || iParam1 == 45) || iParam1 == 12)
			{
				return false;
			}
			return true;
		}
		else if (func_317(iParam0, iParam2, iParam3))
		{
			if (((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 3) || iParam1 == 6) || iParam1 == 8) || iParam1 == 11) || iParam1 == 45) || iParam1 == 12)
			{
				return false;
			}
			if (iParam2 == 8)
			{
				if ((*uParam4)[8] != 15)
				{
					return false;
				}
			}
			else if (iParam2 == 9)
			{
				if ((*uParam4)[9] != 0)
				{
					return false;
				}
			}
			return true;
		}
		else if (func_315(iParam0, iParam2, iParam3))
		{
			if ((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 3) || iParam1 == 6) || iParam1 == 8) || iParam1 == 11) || iParam1 == 12)
			{
				return false;
			}
			return true;
		}
	}
	return false;
}

int func_315(int iParam0, int iParam1, int iParam2)//Position - 0x30F64
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 14:
					if (iParam2 == 16)
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 14:
					if ((iParam2 == 40 || (iParam2 >= 41 && iParam2 <= 56)) || (iParam2 >= 64 && iParam2 <= 79))
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 14:
					if ((iParam2 >= 17 && iParam2 <= 18) || (iParam2 >= 71 && iParam2 <= 86))
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 14:
					if (iParam2 >= 18 && iParam2 <= 130)
					{
						return true;
					}
					else if (iParam2 >= 10 && iParam2 <= 17)
					{
						return true;
					}
					else if (iParam2 >= 327)
					{
						return (dlc1::_0x341DE7ED1D2A1BFD(func_316(iParam0, iParam2, 14, 3), -1757550583, 1) || dlc1::_0x341DE7ED1D2A1BFD(func_316(iParam0, iParam2, 14, 3), -1842686353, 1));
					}
					break;
				
				case 1:
					if (iParam2 >= 26)
					{
						return (dlc1::_0x341DE7ED1D2A1BFD(func_316(iParam0, iParam2, 1, 3), -1757550583, 0) || dlc1::_0x341DE7ED1D2A1BFD(func_316(iParam0, iParam2, 1, 3), -1842686353, 0));
					}
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 14:
					if (iParam2 >= 18 && iParam2 <= 130)
					{
						return true;
					}
					else if (iParam2 >= 10 && iParam2 <= 17)
					{
						return true;
					}
					else if (iParam2 >= 327)
					{
						return (dlc1::_0x341DE7ED1D2A1BFD(func_316(iParam0, iParam2, 14, 4), -1757550583, 1) || dlc1::_0x341DE7ED1D2A1BFD(func_316(iParam0, iParam2, 14, 4), -1842686353, 1));
					}
					break;
				
				case 1:
					if (iParam2 >= 26)
					{
						return (dlc1::_0x341DE7ED1D2A1BFD(func_316(iParam0, iParam2, 1, 4), -1757550583, 0) || dlc1::_0x341DE7ED1D2A1BFD(func_316(iParam0, iParam2, 1, 4), -1842686353, 0));
					}
					break;
			}
			break;
	}
	return false;
}

int func_316(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x311B9
{
	struct<2> Var0;
	int iVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	struct<2> Var21;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	
	if (iParam2 == 12)
	{
	}
	else if (iParam2 == 13)
	{
	}
	else if (iParam2 == 14)
	{
		dlc1::init_shop_ped_prop(&Var0);
		iVar18 = 0;
		iVar19 = (iParam1 - func_171(iParam0));
		if (iVar19 < 0)
		{
			return -1;
		}
		iVar20 = dlc1::_get_num_props_from_outfit(iParam3, 6, -1, 1, -1, -1);
		iVar17 = 0;
		while (iVar17 < iVar20)
		{
			dlc1::get_shop_ped_query_prop(iVar17, &Var0);
			if (!dlc1::_is_dlc_data_empty(Var0))
			{
				if (iVar18 == iVar19)
				{
					return Var0.f_1;
				}
				iVar18++;
			}
			iVar17++;
		}
	}
	else
	{
		dlc1::init_shop_ped_component(&Var21);
		iVar39 = 0;
		iVar40 = (iParam1 - func_169(iParam0, func_170(iParam2)));
		if (iVar40 < 0)
		{
			return -1;
		}
		if ((iParam0 == Global_69560.f_26[iParam2] && iParam1 == Global_69560[iParam2]) && Global_69560.f_13[iParam2] != 0)
		{
			return Global_69560.f_13[iParam2];
		}
		iVar41 = dlc1::_get_num_props_from_outfit(iParam3, 6, -1, 0, -1, func_170(iParam2));
		iVar38 = 0;
		while (iVar38 < iVar41)
		{
			dlc1::get_shop_ped_query_component(iVar38, &Var21);
			if (!dlc1::_is_dlc_data_empty(Var21))
			{
				if (iVar39 == iVar40)
				{
					Global_69560.f_13[iParam2] = Var21.f_1;
					Global_69560[iParam2] = iParam1;
					Global_69560.f_26[iParam2] = iParam0;
					return Var21.f_1;
				}
				iVar39++;
			}
			iVar38++;
		}
	}
	return -1;
}

bool func_317(int iParam0, int iParam1, int iParam2)//Position - 0x31315
{
	int iVar0;
	int iVar1;
	
	if (iParam0 == joaat("player_zero"))
	{
		if (iParam1 == 6)
		{
			if (iParam2 == 10)
			{
				return true;
			}
		}
		else if (iParam1 == 8)
		{
			if ((iParam2 == 9 || iParam2 == 7) || iParam2 == 23)
			{
				return true;
			}
		}
		else if (iParam1 == 9)
		{
			if (iParam2 >= 9 && iParam2 <= 14)
			{
				return true;
			}
		}
		else if (iParam1 == 14)
		{
			if ((((((((((((((((iParam2 == 12 || iParam2 == 59) || iParam2 == 60) || iParam2 == 31) || iParam2 == 32) || iParam2 == 33) || iParam2 == 34) || iParam2 == 35) || iParam2 == 36) || iParam2 == 37) || iParam2 == 38) || iParam2 == 39) || iParam2 == 40) || iParam2 == 41) || (iParam2 >= 42 && iParam2 <= 44)) || iParam2 == 54) || iParam2 == 55)
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_one"))
	{
		if (iParam1 == 2)
		{
			if (iParam2 == 20)
			{
				return true;
			}
		}
		else if (iParam1 == 8)
		{
			if ((iParam2 == 3 || iParam2 == 5) || iParam2 == 9)
			{
				return true;
			}
		}
		else if (iParam1 == 9)
		{
			if (iParam2 >= 5 && iParam2 <= 10)
			{
				return true;
			}
		}
		else if (iParam1 == 14)
		{
			if (((((((((((((iParam2 == 82 || iParam2 == 10) || iParam2 == 26) || iParam2 == 27) || iParam2 == 28) || iParam2 == 29) || iParam2 == 30) || iParam2 == 31) || iParam2 == 32) || iParam2 == 33) || iParam2 == 34) || iParam2 == 35) || iParam2 == 36) || (iParam2 >= 37 && iParam2 <= 39))
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_two"))
	{
		if (iParam1 == 8)
		{
			if (iParam2 == 14 || iParam2 == 7)
			{
				return true;
			}
		}
		else if (iParam1 == 9)
		{
			if (((iParam2 == 8 || (iParam2 >= 9 && iParam2 <= 14)) || iParam2 == 15) || iParam2 == 16)
			{
				return true;
			}
		}
		else if (iParam1 == 14)
		{
			if (((((((((((((iParam2 == 88 || iParam2 == 12) || iParam2 == 47) || iParam2 == 48) || iParam2 == 49) || iParam2 == 50) || iParam2 == 51) || iParam2 == 52) || iParam2 == 53) || iParam2 == 54) || iParam2 == 55) || iParam2 == 56) || iParam2 == 57) || (iParam2 >= 58 && iParam2 <= 60))
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("mp_m_freemode_01"))
	{
		if (iParam1 == 1)
		{
			if (iParam2 > 0)
			{
				if (iParam2 >= 26)
				{
					iVar0 = func_316(iParam0, iParam2, 1, 3);
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1757550583, 0))
					{
						return false;
					}
				}
				return true;
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		if (iParam1 == 1)
		{
			if (iParam2 > 0)
			{
				if (iParam2 >= 26)
				{
					iVar1 = func_316(iParam0, iParam2, 1, 4);
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1757550583, 0))
					{
						return false;
					}
				}
				return true;
			}
		}
	}
	return false;
}

int func_318(int iParam0, int iParam1, int iParam2)//Position - 0x3170A
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			if (iParam1 == 14)
			{
				if ((((((((iParam2 == 58 || iParam2 == 61) || (iParam2 >= 62 && iParam2 <= 69)) || (iParam2 >= 70 && iParam2 <= 79)) || (iParam2 >= 80 && iParam2 <= 89)) || iParam2 == 90) || (iParam2 >= 91 && iParam2 <= 102)) || (iParam2 >= 103 && iParam2 <= 110)) || iParam2 == 111)
				{
					return true;
				}
			}
			break;
		
		case joaat("player_one"):
			if (iParam1 == 14)
			{
				if (((((((((((iParam2 >= 83 && iParam2 <= 92) || iParam2 == 93) || iParam2 == 94) || (iParam2 >= 95 && iParam2 <= 101)) || (iParam2 >= 102 && iParam2 <= 111)) || (iParam2 >= 112 && iParam2 <= 121)) || (iParam2 >= 122 && iParam2 <= 131)) || (iParam2 >= 132 && iParam2 <= 139)) || (iParam2 >= 140 && iParam2 <= 149)) || (iParam2 >= 150 && iParam2 <= 156)) || iParam2 == 157)
				{
					return true;
				}
			}
			break;
		
		case joaat("player_two"):
			if (iParam1 == 14)
			{
				if (((((((((iParam2 == 89 || (iParam2 >= 90 && iParam2 <= 99)) || (iParam2 >= 100 && iParam2 <= 109)) || iParam2 == 111) || iParam2 == 112) || (iParam2 >= 113 && iParam2 <= 122)) || (iParam2 >= 123 && iParam2 <= 132)) || (iParam2 >= 133 && iParam2 <= 142)) || (iParam2 >= 143 && iParam2 <= 152)) || iParam2 == 153)
				{
					return true;
				}
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			if (iParam1 == 14)
			{
				if (iParam2 >= 155 && iParam2 <= 318)
				{
					return true;
				}
				else if (iParam2 >= 327)
				{
					return dlc1::_0x341DE7ED1D2A1BFD(func_316(iParam0, iParam2, 14, 3), 97230661, 1);
				}
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			if (iParam1 == 14)
			{
				if (iParam2 >= 155 && iParam2 <= 318)
				{
					return true;
				}
				else if (iParam2 >= 327)
				{
					return dlc1::_0x341DE7ED1D2A1BFD(func_316(iParam0, iParam2, 14, 4), 97230661, 1);
				}
			}
			break;
	}
	return false;
}

bool func_319(int iParam0, int iParam1, int iParam2)//Position - 0x319E9
{
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 8:
					if (iParam2 == 15)
					{
						return true;
					}
					break;
				
				case 9:
					if (iParam2 == 6)
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 8:
					if (iParam2 == 1 || iParam2 == 10)
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 8:
					if (iParam2 == 4)
					{
						return true;
					}
					break;
			}
			break;
	}
	return false;
}

struct<10> func_320(int iParam0, int iParam1)//Position - 0x31A82
{
	int iVar0;
	struct<10> Var1;
	
	Var1 = 9;
	iVar0 = 0;
	while (iVar0 <= 8)
	{
		Var1[iVar0] = -99;
		iVar0++;
	}
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 31:
					func_322(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 0:
					func_322(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 1:
					func_322(&Var1, 19, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 2:
					func_322(&Var1, 14, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 3:
					func_322(&Var1, 18, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 4:
					func_322(&Var1, 0, 59, 112, 3, 4, 5, 6, 7, 8);
					break;
				
				case 5:
					func_322(&Var1, 0, 60, 112, 3, 4, 5, 6, 7, 8);
					break;
				
				case 6:
					func_322(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 7:
					func_322(&Var1, 0, 60, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 8:
					func_322(&Var1, 55, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 9:
					func_322(&Var1, 0, 1, 112, 3, 4, 5, 6, 7, 8);
					break;
				
				default:
					func_321(&Var1, iParam0, iParam1, 10);
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 31:
					func_322(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 0:
					func_322(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 1:
					func_322(&Var1, 0, 82, 158, 3, 4, 5, 6, 7, 8);
					break;
				
				case 2:
					func_322(&Var1, 0, 1, 158, 3, 4, 5, 6, 7, 8);
					break;
				
				case 3:
					func_322(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 4:
					func_322(&Var1, 41, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 5:
					func_322(&Var1, 40, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 6:
					func_322(&Var1, 41, 95, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 7:
					func_322(&Var1, 0, 95, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 8:
					func_322(&Var1, 69, 95, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				default:
					func_321(&Var1, iParam0, iParam1, 9);
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 31:
					func_322(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 0:
					func_322(&Var1, 11, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 1:
					func_322(&Var1, 17, 90, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 2:
					func_322(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 3:
					func_322(&Var1, 0, 88, 154, 3, 4, 5, 6, 7, 8);
					break;
				
				case 4:
					func_322(&Var1, 0, 1, 154, 3, 4, 5, 6, 7, 8);
					break;
				
				case 5:
					func_322(&Var1, 16, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 6:
					func_322(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 7:
					func_322(&Var1, 0, 123, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 8:
					func_322(&Var1, 69, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				default:
					func_321(&Var1, iParam0, iParam1, 9);
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 31:
					func_322(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 0:
					func_322(&Var1, 129, 167, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 1:
					func_322(&Var1, 90, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 2:
					func_322(&Var1, 23, 251, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 3:
					func_322(&Var1, 36, 262, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 4:
					func_322(&Var1, 88, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 5:
					func_322(&Var1, 125, 175, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 6:
					func_322(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 7:
					func_322(&Var1, 44, 208, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 8:
					func_322(&Var1, 52, 189, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 9:
					func_322(&Var1, 0, 261, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 10:
					func_322(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 11:
					func_322(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 12:
					func_322(&Var1, 0, 212, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 13:
					func_322(&Var1, 64, 291, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 14:
					func_322(&Var1, 61, 207, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 15:
					func_322(&Var1, 0, 291, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 16:
					func_322(&Var1, 0, 208, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 17:
					func_322(&Var1, 0, 229, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 18:
					func_322(&Var1, 36, 249, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 19:
					func_322(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 20:
					func_322(&Var1, 0, 174, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 21:
					func_322(&Var1, 35, 180, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 22:
					func_322(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 23:
					func_322(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 24:
					func_322(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				default:
					func_321(&Var1, iParam0, iParam1, 25);
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 31:
					func_322(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 0:
					func_322(&Var1, 35, 233, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 1:
					func_322(&Var1, 36, 178, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 2:
					func_322(&Var1, 53, 221, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 3:
					func_322(&Var1, 38, 170, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 4:
					func_322(&Var1, 37, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 5:
					func_322(&Var1, 113, 203, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 6:
					func_322(&Var1, 114, 183, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 7:
					func_322(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 8:
					func_322(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 9:
					func_322(&Var1, 0, 199, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 10:
					func_322(&Var1, 0, 182, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 11:
					func_322(&Var1, 0, 233, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 12:
					func_322(&Var1, 107, 167, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 13:
					func_322(&Var1, 109, 170, 2, 3, 4, 5, 323, 7, 8);
					break;
				
				case 14:
					func_322(&Var1, 119, 237, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 15:
					func_322(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 16:
					func_322(&Var1, 114, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 17:
					func_322(&Var1, 35, 268, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 18:
					func_322(&Var1, 0, 266, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 19:
					func_322(&Var1, 42, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 20:
					func_322(&Var1, 76, 1, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 21:
					func_322(&Var1, 39, 235, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 22:
					func_322(&Var1, 41, 183, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				case 23:
					func_322(&Var1, 111, 194, 2, 3, 4, 5, 6, 7, 8);
					break;
				
				default:
					func_321(&Var1, iParam0, iParam1, 25);
					break;
			}
			break;
	}
	return Var1;
}

void func_321(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x323B1
{
	int iVar0;
	struct<4> Var1;
	vector3 vVar16;
	int iVar19;
	
	if (iParam2 != 0 && iParam2 != -99)
	{
		(*iParam0)[0] = 0;
		(*iParam0)[1] = 1;
		(*iParam0)[2] = 2;
		(*iParam0)[3] = 3;
		(*iParam0)[4] = 4;
		(*iParam0)[5] = 5;
		(*iParam0)[6] = 6;
		(*iParam0)[7] = 7;
		(*iParam0)[8] = 8;
		iVar0 = 0;
		if (iParam1 == joaat("player_zero"))
		{
			iVar0 = 0;
		}
		else if (iParam1 == joaat("player_one"))
		{
			iVar0 = 1;
		}
		else if (iParam1 == joaat("player_two"))
		{
			iVar0 = 2;
		}
		else if (iParam1 == joaat("mp_m_freemode_01"))
		{
			iVar0 = 3;
		}
		else if (iParam1 == joaat("mp_f_freemode_01"))
		{
			iVar0 = 4;
		}
		dlc1::get_shop_ped_outfit(iParam2, &Var1);
		if (!dlc1::_is_dlc_data_empty(Var1))
		{
			iVar19 = 0;
			while (iVar19 < Var1.f_3)
			{
				if (dlc1::_0xA9F9C2E0FDE11CBB(Var1.f_1, iVar19, &vVar16) && vVar16.y != -1)
				{
					if ((vVar16.x != 0 && vVar16.x != -1) && vVar16.x != 1849449579)
					{
						(*iParam0)[vVar16.y] = func_168(iParam1, vVar16.x, 14, iVar0);
					}
					else if (vVar16.y != -1)
					{
						(*iParam0)[vVar16.y] = vVar16.y;
					}
				}
				iVar19++;
			}
		}
	}
}

void func_322(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)//Position - 0x324DB
{
	(*iParam0)[0] = iParam1;
	(*iParam0)[1] = iParam2;
	(*iParam0)[2] = iParam3;
	(*iParam0)[3] = iParam4;
	(*iParam0)[4] = iParam5;
	(*iParam0)[5] = iParam6;
	(*iParam0)[6] = iParam7;
	(*iParam0)[7] = iParam8;
	(*iParam0)[8] = iParam9;
}

struct<17> func_323(int iParam0, int iParam1)//Position - 0x32523
{
	int iVar0;
	struct<17> Var1;
	
	Var1 = 15;
	iVar0 = 0;
	while (iVar0 <= 14)
	{
		Var1[iVar0] = -99;
		iVar0++;
	}
	Var1.f_16 = 0;
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 0:
					if (Global_101553.f_7940.f_99.f_58[120])
					{
						func_325(&Var1, -99, -99, 1, 1, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					}
					else
					{
						func_325(&Var1, -99, -99, 0, 0, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					}
					break;
				
				case 1:
					func_325(&Var1, -99, -99, 16, 16, 6, 1, 1, 0, 1, -99, 0, 0, 0);
					break;
				
				case 2:
					func_325(&Var1, -99, -99, 36, 21, 6, 1, 5, 0, 0, -99, 0, 0, 8);
					break;
				
				case 3:
					func_325(&Var1, -99, -99, 65, 36, 6, 0, 2, 0, 0, -99, 0, 0, 31);
					break;
				
				case 4:
					func_325(&Var1, -99, -99, 61, 32, 6, 0, 0, 7, 3, -99, 0, 0, 2);
					break;
				
				case 5:
					func_325(&Var1, -99, -99, Global_101553.f_1991.f_539.f_196[0], Global_101553.f_1991.f_539.f_200[0], 6, 3, 0, 0, 0, -99, 0, 0, 3);
					break;
				
				case 6:
					func_325(&Var1, -99, -99, 92, 72, 7, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 7:
					func_325(&Var1, -99, -99, 85, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 8:
					func_325(&Var1, -99, -99, 170, 80, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 9:
					func_325(&Var1, -99, -99, 171, 89, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 10:
					func_325(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 4);
					break;
				
				case 11:
					func_325(&Var1, -99, -99, 33, 18, 17, 10, 4, 8, 0, -99, 0, 0, 5);
					break;
				
				case 12:
					func_325(&Var1, -99, -99, 35, 20, 9, 10, 23, 0, 0, -99, 0, 0, 31);
					break;
				
				case 13:
					func_325(&Var1, -99, -99, 69, 40, 13, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 14:
					func_325(&Var1, -99, -99, 62, 33, 38, 0, 8, 0, 0, -99, 0, 0, 6);
					break;
				
				case 15:
					func_325(&Var1, -99, -99, 63, 34, 6, 10, 0, 0, 4, -99, 0, 0, 31);
					break;
				
				case 16:
					func_325(&Var1, -99, -99, 174, 93, 18, 0, 18, 0, 0, -99, 0, 0, 31);
					break;
				
				case 17:
					func_325(&Var1, -99, -99, 76, 46, 6, 10, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 18:
					func_325(&Var1, -99, -99, 35, 20, 9, 10, 0, 4, 0, -99, 0, 0, 7);
					break;
				
				case 19:
					func_325(&Var1, -99, -99, 64, 35, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 20:
					func_325(&Var1, -99, -99, 66, 37, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 21:
					func_325(&Var1, -99, -99, 67, 38, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 22:
					func_325(&Var1, -99, -99, 68, 39, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 23:
					func_325(&Var1, -99, -99, 177, 94, 19, 9, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 24:
					func_325(&Var1, -99, -99, 35, 20, 9, 10, 4, 0, 0, -99, 0, 0, 31);
					break;
				
				case 25:
					func_325(&Var1, -99, -99, 97, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 26:
					func_325(&Var1, -99, -99, 3, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 27:
					func_325(&Var1, -99, -99, 129, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 28:
					func_325(&Var1, -99, -99, 170, 80, 6, 0, 13, 0, 0, -99, 0, 0, 31);
					break;
				
				case 29:
					func_325(&Var1, -99, -99, 2, 2, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 30:
					func_325(&Var1, -99, -99, 161, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 31:
					func_325(&Var1, -99, -99, 3, 3, 0, 12, 0, 0, 0, -99, 0, 1, 31);
					break;
				
				case 32:
					func_325(&Var1, -99, -99, 85, 55, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 33:
					func_325(&Var1, -99, -99, 86, 4, 20, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 34:
					func_325(&Var1, -99, -99, 44, 97, 6, 0, 0, 0, 0, -99, 0, 2, 31);
					break;
				
				case 35:
					func_325(&Var1, -99, -99, 85, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 36:
					func_325(&Var1, -99, -99, 4, 4, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 37:
					func_325(&Var1, -99, -99, 5, 5, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 38:
					func_325(&Var1, -99, -99, 6, 6, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 39:
					func_325(&Var1, -99, -99, 7, 7, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 40:
					func_325(&Var1, -99, -99, 8, 8, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 41:
					func_325(&Var1, -99, -99, 9, 9, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 42:
					func_325(&Var1, -99, -99, 10, 10, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 43:
					func_325(&Var1, -99, -99, 11, 11, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 44:
					func_325(&Var1, -99, -99, 12, 12, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 45:
					func_325(&Var1, -99, -99, 13, 13, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 46:
					func_325(&Var1, -99, -99, 14, 14, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 47:
					func_325(&Var1, -99, -99, 15, 15, 0, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 48:
					func_325(&Var1, -99, -99, 91, 71, 14, 13, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 49:
					func_325(&Var1, -99, -99, 35, 20, 9, 10, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 50:
					func_325(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 9);
					break;
				
				case 51:
					func_325(&Var1, -99, -99, 169, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 52:
					func_325(&Var1, -99, -99, 169, 72, 6, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				default:
					func_324(&Var1, iParam0, iParam1, 53);
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 0:
					func_325(&Var1, -99, -99, 73, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 1:
					func_325(&Var1, -99, -99, 22, 10, 64, 0, 24, 0, 0, -99, 0, 43, 31);
					break;
				
				case 2:
					func_325(&Var1, -99, -99, Global_101553.f_1991.f_539.f_196[1], Global_101553.f_1991.f_539.f_200[1], 17, 2, 26, 0, 0, -99, 0, 45, 31);
					break;
				
				case 3:
					func_325(&Var1, -99, -99, 23, 11, 13, 5, 2, 4, 0, -99, 0, 0, 1);
					break;
				
				case 4:
					func_325(&Var1, -99, -99, 23, 11, 34, 5, 26, 0, 0, -99, 0, 0, 2);
					break;
				
				case 5:
					func_325(&Var1, -99, 20, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 6:
					func_325(&Var1, -99, -99, 40, 13, 14, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 7:
					func_325(&Var1, -99, -99, 90, 32, 17, 1, 8, 0, 1, -99, 0, 0, 3);
					break;
				
				case 8:
					func_325(&Var1, -99, -99, 17, 5, 12, 0, 26, 0, 2, -99, 0, 0, 5);
					break;
				
				case 9:
					func_325(&Var1, -99, -99, 16, 4, 12, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 10:
					func_325(&Var1, -99, -99, 208, 71, 17, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 11:
					func_325(&Var1, -99, -99, 259, 10, 35, 0, 24, 0, 0, -99, 0, 43, 31);
					break;
				
				case 12:
					func_325(&Var1, -99, -99, 18, 6, 12, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 13:
					func_325(&Var1, -99, -99, 19, 7, 12, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 14:
					func_325(&Var1, -99, -99, 20, 8, 12, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 15:
					func_325(&Var1, -99, -99, 21, 9, 12, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 16:
					func_325(&Var1, -99, -99, 135, 40, 0, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 17:
					func_325(&Var1, -99, -99, 74, 24, 52, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 18:
					func_325(&Var1, -99, -99, 176, 53, 26, 5, 26, 0, 0, -99, 0, 41, 31);
					break;
				
				case 19:
					func_325(&Var1, -99, -99, 125, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 20:
					func_325(&Var1, -99, -99, 162, 24, 36, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 21:
					func_325(&Var1, -99, -99, 75, 24, 36, 0, 26, 0, 0, -99, 0, 0, 4);
					break;
				
				case 22:
					func_325(&Var1, -99, -99, 227, 53, 25, 0, 27, 0, 0, -99, 0, 25, 31);
					break;
				
				case 23:
					func_325(&Var1, -99, -99, 228, 54, 25, 0, 28, 0, 0, -99, 0, 26, 31);
					break;
				
				case 24:
					func_325(&Var1, -99, -99, 229, 55, 25, 0, 29, 0, 0, -99, 0, 27, 31);
					break;
				
				case 25:
					func_325(&Var1, -99, -99, 230, 56, 25, 0, 30, 0, 0, -99, 0, 28, 31);
					break;
				
				case 26:
					func_325(&Var1, -99, -99, 231, 57, 25, 0, 31, 0, 0, -99, 0, 29, 31);
					break;
				
				case 27:
					func_325(&Var1, -99, -99, 232, 58, 25, 0, 32, 0, 0, -99, 0, 30, 31);
					break;
				
				case 28:
					func_325(&Var1, -99, -99, 233, 59, 25, 0, 33, 0, 0, -99, 0, 31, 31);
					break;
				
				case 29:
					func_325(&Var1, -99, -99, 234, 60, 25, 0, 34, 0, 0, -99, 0, 32, 31);
					break;
				
				case 30:
					func_325(&Var1, -99, -99, 235, 61, 25, 0, 35, 0, 0, -99, 0, 33, 31);
					break;
				
				case 31:
					func_325(&Var1, -99, -99, 236, 62, 25, 0, 36, 0, 0, -99, 0, 34, 31);
					break;
				
				case 32:
					func_325(&Var1, -99, -99, 237, 63, 25, 0, 37, 0, 0, -99, 0, 35, 31);
					break;
				
				case 33:
					func_325(&Var1, -99, -99, 238, 64, 25, 0, 38, 0, 0, -99, 0, 36, 31);
					break;
				
				case 34:
					func_325(&Var1, -99, -99, 239, 65, 25, 0, 39, 0, 0, -99, 0, 37, 31);
					break;
				
				case 35:
					func_325(&Var1, -99, -99, 240, 66, 25, 0, 40, 0, 0, -99, 0, 38, 31);
					break;
				
				case 36:
					func_325(&Var1, -99, -99, 241, 67, 25, 0, 41, 0, 0, -99, 0, 39, 31);
					break;
				
				case 37:
					func_325(&Var1, -99, -99, 242, 68, 25, 0, 42, 0, 0, -99, 0, 40, 31);
					break;
				
				case 38:
					func_325(&Var1, -99, -99, 260, 72, 17, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 39:
					func_325(&Var1, -99, -99, 125, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 40:
					func_325(&Var1, -99, -99, 123, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 41:
					func_325(&Var1, -99, -99, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 42:
					func_325(&Var1, -99, -99, 89, 22, 15, 6, 26, 0, 0, -99, 0, 0, 31);
					break;
				
				case 43:
					func_325(&Var1, -99, -99, 317, 69, 17, 0, 0, 0, 51, -99, 0, 0, 6);
					break;
				
				case 44:
					func_325(&Var1, -99, -99, 30, 23, 16, 0, 0, 0, 0, -99, 0, 0, 7);
					break;
				
				case 45:
					func_325(&Var1, -99, -99, 106, 70, 17, 5, 26, 0, 0, -99, 0, 0, 8);
					break;
				
				case 46:
					func_325(&Var1, -99, -99, 117, 24, 20, 5, 26, 0, 52, -99, 0, 0, 31);
					break;
				
				default:
					func_324(&Var1, iParam0, iParam1, 47);
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 0:
					func_325(&Var1, -99, -99, 0, 91, 28, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 1:
					func_325(&Var1, -99, -99, 17, 5, 8, 2, 3, 0, 0, -99, 0, 0, 8);
					break;
				
				case 2:
					func_325(&Var1, -99, -99, 43, 8, 12, 3, 5, 0, 0, -99, 0, 0, 1);
					break;
				
				case 3:
					func_325(&Var1, -99, -99, 50, 14, 8, 0, 15, 6, 3, -99, 0, 0, 2);
					break;
				
				case 4:
					func_325(&Var1, -99, -99, Global_101553.f_1991.f_539.f_196[2], Global_101553.f_1991.f_539.f_200[2], 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 5:
					func_325(&Var1, -99, -99, 95, 33, 8, 0, 15, 0, 0, -99, 0, 0, 6);
					break;
				
				case 6:
					func_325(&Var1, -99, -99, 49, 13, 10, 4, 6, 0, 0, -99, 0, 0, 3);
					break;
				
				case 7:
					func_325(&Var1, -99, -99, 49, 13, 14, 4, 15, 0, 0, -99, 0, 0, 4);
					break;
				
				case 8:
					func_325(&Var1, -99, -99, 79, 32, 8, 5, 7, 0, 0, -99, 0, 0, 31);
					break;
				
				case 9:
					func_325(&Var1, -99, -99, 53, 17, 11, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 10:
					func_325(&Var1, -99, -99, 96, 81, 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 11:
					func_325(&Var1, -99, -99, 51, 15, 33, 0, 8, 0, 0, -99, 0, 0, 5);
					break;
				
				case 12:
					func_325(&Var1, -99, -99, 0, 93, 29, 0, 13, 0, 0, -99, 0, 0, 31);
					break;
				
				case 13:
					func_325(&Var1, -99, -99, 52, 16, 30, 5, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 14:
					func_325(&Var1, -99, -99, 241, 92, 16, 0, 12, 0, 0, -99, 0, 0, 31);
					break;
				
				case 15:
					func_325(&Var1, -99, -99, 97, 34, 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 16:
					func_325(&Var1, -99, -99, 44, 9, 12, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 17:
					func_325(&Var1, -99, -99, 45, 10, 12, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 18:
					func_325(&Var1, -99, -99, 46, 11, 12, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 19:
					func_325(&Var1, -99, -99, 47, 12, 12, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 20:
					func_325(&Var1, -99, -99, 161, 53, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 21:
					func_325(&Var1, -99, -99, 0, 44, 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 22:
					func_325(&Var1, -99, -99, 98, 0, 28, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 23:
					func_325(&Var1, -99, -99, 27, 0, 31, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 24:
					func_325(&Var1, -99, -99, 190, 71, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 25:
					func_325(&Var1, -99, -99, 191, 72, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 26:
					func_325(&Var1, -99, -99, 192, 73, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 27:
					func_325(&Var1, -99, -99, 193, 74, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 28:
					func_325(&Var1, -99, -99, 194, 75, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 29:
					func_325(&Var1, -99, -99, 195, 76, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 30:
					func_325(&Var1, -99, -99, 196, 77, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 31:
					func_325(&Var1, -99, -99, 197, 78, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 32:
					func_325(&Var1, -99, -99, 198, 79, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 33:
					func_325(&Var1, -99, -99, 199, 80, 8, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 34:
					func_325(&Var1, -99, -99, 200, 62, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 35:
					func_325(&Var1, -99, -99, 201, 63, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 36:
					func_325(&Var1, -99, -99, 202, 64, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 37:
					func_325(&Var1, -99, -99, 203, 65, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 38:
					func_325(&Var1, -99, -99, 204, 66, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 39:
					func_325(&Var1, -99, -99, 205, 67, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 40:
					func_325(&Var1, -99, -99, 206, 68, 16, 0, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 41:
					func_325(&Var1, -99, -99, 2, 43, 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 42:
					func_325(&Var1, -99, -99, 55, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 43:
					func_325(&Var1, -99, -99, 0, 52, 8, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 44:
					func_325(&Var1, -99, -99, 70, 30, 32, 6, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				case 45:
					func_325(&Var1, -99, -99, 19, 91, 28, 0, 0, 0, 0, -99, 0, 0, 7);
					break;
				
				case 46:
					func_325(&Var1, -99, -99, 0, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
					break;
				
				case 47:
					func_325(&Var1, -99, -99, 79, 32, 8, 5, 15, 0, 0, -99, 0, 0, 31);
					break;
				
				default:
					func_324(&Var1, iParam0, iParam1, 48);
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 0:
					func_325(&Var1, -99, -99, 0, 0, 10, -99, 0, -99, -99, 0, 0, 0, 31);
					break;
				
				case 1:
					func_325(&Var1, -99, -99, 1, 127, 38, -99, 2, 0, 0, 0, 0, 62, 0);
					break;
				
				case 2:
					func_325(&Var1, -99, -99, 0, 248, 45, -99, 240, 0, 0, 0, 0, 144, 1);
					break;
				
				case 3:
					func_325(&Var1, -99, -99, 4, 31, 25, -99, 240, 0, 0, 0, 0, 231, 2);
					break;
				
				case 4:
					func_325(&Var1, -99, -99, 1, 66, 10, -99, 21, 0, 0, 0, 0, 123, 3);
					break;
				
				case 5:
					func_325(&Var1, -99, -99, 1, 93, 141, -99, 3, 0, 0, 0, 0, 114, 4);
					break;
				
				case 6:
					func_325(&Var1, -99, -99, 1, 116, 113, -99, 7, 0, 0, 0, 0, 113, 5);
					break;
				
				case 7:
					func_325(&Var1, -99, -99, 1, 61, 136, -99, 27, 0, 0, 0, 0, 61, 6);
					break;
				
				case 8:
					func_325(&Var1, -99, -99, 0, 112, 10, -99, 240, 0, 0, 0, 0, 8, 7);
					break;
				
				case 9:
					func_325(&Var1, -99, -99, 4, 131, 24, -99, 240, 0, 0, 0, 0, 223, 8);
					break;
				
				case 10:
					func_325(&Var1, -99, -99, 1, 209, 188, -99, 208, 0, 0, 0, 0, 64, 9);
					break;
				
				case 11:
					func_325(&Var1, -99, -99, 1, 209, 160, -99, 211, 0, 0, 0, 43, 157, 10);
					break;
				
				case 12:
					func_325(&Var1, -99, -99, 1, 162, 174, -99, 201, 0, 0, 0, 0, 158, 11);
					break;
				
				case 13:
					func_325(&Var1, -99, -99, 1, 4, 240, -99, 34, 0, 0, 0, 0, 97, 12);
					break;
				
				case 14:
					func_325(&Var1, -99, -99, 1, 128, 232, -99, 43, 0, 0, 0, 0, 102, 13);
					break;
				
				case 15:
					func_325(&Var1, -99, -99, 1, 66, 65, -99, 224, 0, 0, 0, 0, 100, 14);
					break;
				
				case 16:
					func_325(&Var1, -99, -99, 1, 65, 172, -99, 202, 0, 0, 0, 0, 64, 15);
					break;
				
				case 17:
					func_325(&Var1, -99, -99, 1, 64, 10, -99, 1, 0, 0, 0, 0, 66, 16);
					break;
				
				case 18:
					func_325(&Var1, -99, -99, 5, 98, 80, -99, 240, 0, 0, 0, 0, 87, 17);
					break;
				
				case 19:
					func_325(&Var1, -99, -99, 5, 192, 96, -99, 240, 0, 0, 0, 0, 80, 18);
					break;
				
				case 20:
					func_325(&Var1, -99, -99, 1, 124, 96, -99, 11, 0, 0, 0, 0, 110, 19);
					break;
				
				case 21:
					func_325(&Var1, -99, -99, 0, 80, 114, -99, 240, 0, 0, 0, 0, 2, 20);
					break;
				
				case 22:
					func_325(&Var1, -99, -99, 6, 43, 112, -99, 82, 0, 0, 0, 0, 48, 21);
					break;
				
				case 23:
					func_325(&Var1, -99, -99, 1, 116, 144, -99, 2, 0, 0, 0, 0, 108, 22);
					break;
				
				case 24:
					func_325(&Var1, -99, -99, 1, 63, 38, -99, 3, 0, 0, 0, 0, 63, 23);
					break;
				
				case 25:
					func_325(&Var1, -99, -99, 2, 64, 10, -99, 240, 0, 0, 0, 0, 41, 24);
					break;
				
				default:
					func_324(&Var1, iParam0, iParam1, 26);
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 0:
					func_325(&Var1, -99, -99, 0, 0, 0, -99, 0, -99, -99, 0, -99, 0, 31);
					break;
				
				case 1:
					func_325(&Var1, -99, -99, 5, 136, 241, -99, 47, 0, 0, 0, 0, 21, 31);
					break;
				
				case 2:
					func_325(&Var1, -99, -99, 4, 1, 96, -99, 32, 0, 0, 0, 7, 215, 0);
					break;
				
				case 3:
					func_325(&Var1, -99, -99, 1, 73, 241, -99, 3, 0, 0, 0, 0, 25, 1);
					break;
				
				case 4:
					func_325(&Var1, -99, -99, 2, 88, 217, -99, 32, 0, 0, 0, 0, 33, 2);
					break;
				
				case 5:
					func_325(&Var1, -99, -99, 9, 7, 98, -99, 32, 0, 0, 0, 7, 153, 3);
					break;
				
				case 6:
					func_325(&Var1, -99, -99, 1, 140, 241, -99, 7, 0, 0, 0, 31, 16, 4);
					break;
				
				case 7:
					func_325(&Var1, -99, -99, 4, 139, 112, -99, 32, 0, 0, 0, 49, 78, 5);
					break;
				
				case 8:
					func_325(&Var1, -99, -99, 1, 193, 48, -99, 108, 0, 0, 0, 0, 17, 6);
					break;
				
				case 9:
					func_325(&Var1, -99, -99, 5, 114, 97, -99, 103, 0, 0, 0, 0, 98, 7);
					break;
				
				case 10:
					func_325(&Var1, -99, -99, 9, 134, 239, -99, 32, 0, 0, 0, 2, 144, 8);
					break;
				
				case 11:
					func_325(&Var1, -99, -99, 5, 152, 96, -99, 10, 0, 0, 0, 31, 96, 9);
					break;
				
				case 12:
					func_325(&Var1, -99, -99, 6, 129, 1, -99, 96, 0, 0, 0, 5, 120, 10);
					break;
				
				case 13:
					func_325(&Var1, -99, -99, 5, 0, 0, -99, 10, 0, 0, 0, 0, 130, 31);
					break;
				
				case 14:
					func_325(&Var1, -99, -99, 4, 159, 96, -99, 32, 0, 0, 0, 22, 214, 11);
					break;
				
				case 15:
					func_325(&Var1, -99, -99, 9, 232, 213, -99, 32, 0, 0, 0, 22, 147, 12);
					break;
				
				case 16:
					func_325(&Var1, -99, -99, 2, 8, 98, -99, 32, 0, 0, 0, 33, 39, 13);
					break;
				
				case 17:
					func_325(&Var1, -99, -99, 5, 150, 235, -99, 106, 0, 0, 0, 0, 128, 14);
					break;
				
				case 18:
					func_325(&Var1, -99, -99, 6, 96, 97, -99, 7, 0, 0, 0, 32, 114, 15);
					break;
				
				case 19:
					func_325(&Var1, -99, -99, 4, 48, 64, -99, 32, 0, 0, 0, 0, 89, 16);
					break;
				
				case 20:
					func_325(&Var1, -99, -99, 4, 62, 64, -99, 32, 0, 0, 0, 0, 78, 17);
					break;
				
				case 21:
					func_325(&Var1, -99, -99, 4, 49, 65, -99, 32, 0, 0, 0, 8, 80, 31);
					break;
				
				case 22:
					func_325(&Var1, -99, -99, 3, 20, 16, -99, 32, 0, 0, 0, 0, 49, 18);
					break;
				
				case 23:
					func_325(&Var1, -99, -99, 0, 73, 178, -99, 32, 0, 0, 0, 38, 11, 19);
					break;
				
				case 24:
					func_325(&Var1, -99, -99, 5, 135, 53, -99, 9, 0, 0, 0, 29, 27, 20);
					break;
				
				case 25:
					func_325(&Var1, -99, -99, 7, 233, 176, -99, 120, 0, 0, 0, 11, 160, 21);
					break;
				
				case 26:
					func_325(&Var1, -99, -99, 4, 34, 179, -99, 32, 0, 0, 0, 0, 77, 22);
					break;
				
				case 27:
					func_325(&Var1, -99, -99, 15, 131, 93, -99, 32, 0, 0, 0, 0, 250, 23);
					break;
				
				default:
					func_324(&Var1, iParam0, iParam1, 28);
					break;
			}
			break;
	}
	return Var1;
}

void func_324(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0x3436D
{
	int iVar0;
	struct<5> Var1;
	vector3 vVar16;
	struct<2> Var19;
	int iVar36;
	
	(*uParam0)[0] = 0;
	(*uParam0)[2] = -99;
	(*uParam0)[3] = 0;
	(*uParam0)[4] = 0;
	(*uParam0)[6] = 0;
	(*uParam0)[5] = 0;
	(*uParam0)[8] = 0;
	(*uParam0)[9] = 0;
	(*uParam0)[10] = 0;
	(*uParam0)[1] = 0;
	(*uParam0)[7] = 0;
	(*uParam0)[11] = 0;
	(*uParam0)[13] = -99;
	(*uParam0)[14] = -99;
	uParam0->f_16 = 0;
	iVar0 = 0;
	if (iParam1 == joaat("player_zero"))
	{
		iVar0 = 0;
		(*uParam0)[13] = (10 + (iParam2 - iParam3));
	}
	else if (iParam1 == joaat("player_one"))
	{
		iVar0 = 1;
		(*uParam0)[13] = (9 + (iParam2 - iParam3));
	}
	else if (iParam1 == joaat("player_two"))
	{
		iVar0 = 2;
		(*uParam0)[13] = (9 + (iParam2 - iParam3));
	}
	else if (iParam1 == joaat("mp_m_freemode_01"))
	{
		iVar0 = 3;
	}
	else if (iParam1 == joaat("mp_f_freemode_01"))
	{
		iVar0 = 4;
	}
	dlc1::_0xF3FBE2D50A6A8C28(iVar0, 0);
	dlc1::get_shop_ped_query_outfit((iParam2 - iParam3), &Var1);
	if (!dlc1::_is_dlc_data_empty(Var1))
	{
		iVar36 = 0;
		while (iVar36 < Var1.f_4)
		{
			if (dlc1::_get_prop_from_outfit(Var1.f_1, iVar36, &vVar16))
			{
				if ((vVar16.x != 0 && vVar16.x != -1) && vVar16.x != 1849449579)
				{
					if (vVar16.y == 10)
					{
						dlc1::init_shop_ped_component(&Var19);
						dlc1::get_shop_ped_component(vVar16.x, &Var19);
						if (vVar16.x != Var19.f_1)
						{
							uParam0->f_16 = 1;
						}
					}
					if (vVar16.y == 10 && uParam0->f_16)
					{
						(*uParam0)[func_243(vVar16.y)] = vVar16.x;
						uParam0->f_16 = 1;
					}
					else
					{
						(*uParam0)[func_243(vVar16.y)] = func_168(iParam1, vVar16.x, func_243(vVar16.y), iVar0);
					}
				}
				else if (vVar16.y != -1)
				{
					(*uParam0)[func_243(vVar16.y)] = vVar16.y;
				}
			}
			iVar36++;
		}
		if (Var1.f_3 == 0)
		{
			(*uParam0)[13] = -99;
		}
		else
		{
			(*uParam0)[13] = Var1.f_1;
		}
	}
}

void func_325(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)//Position - 0x34557
{
	(*uParam0)[0] = iParam1;
	(*uParam0)[2] = iParam2;
	(*uParam0)[3] = iParam3;
	(*uParam0)[4] = iParam4;
	(*uParam0)[6] = iParam5;
	(*uParam0)[5] = iParam6;
	(*uParam0)[8] = iParam7;
	(*uParam0)[9] = iParam8;
	(*uParam0)[10] = iParam9;
	(*uParam0)[1] = iParam10;
	(*uParam0)[7] = iParam11;
	(*uParam0)[11] = iParam12;
	(*uParam0)[13] = iParam13;
	(*uParam0)[14] = -99;
}

bool func_326(int iParam0, int iParam1)//Position - 0x345C8
{
	if (iParam1)
	{
		if ((iParam0 == joaat("player_zero") || iParam0 == joaat("player_one")) || iParam0 == joaat("player_two"))
		{
			return true;
		}
	}
	else if ((((iParam0 == joaat("player_zero") || iParam0 == joaat("player_one")) || iParam0 == joaat("player_two")) || iParam0 == joaat("mp_m_freemode_01")) || iParam0 == joaat("mp_f_freemode_01"))
	{
		return true;
	}
	return false;
}

int func_327(int iParam0, int iParam1)//Position - 0x3464B
{
	int iVar0;
	
	if (iParam0 == 11 || iParam0 == -1)
	{
		return false;
	}
	if (iParam1 < 0 || iParam1 >= 32)
	{
		return false;
	}
	iVar0 = gameplay::is_bit_set(Global_101553.f_7940.f_99.f_219[iParam0], iParam1);
	return iVar0;
}

bool func_328(char* sParam0)//Position - 0x34698
{
	if (gameplay::is_string_null(sParam0))
	{
		return true;
	}
	if (ui::get_length_of_literal_string(sParam0) <= 0)
	{
		return true;
	}
	if (gameplay::are_strings_equal(sParam0, "NULL"))
	{
		return true;
	}
	return false;
}

struct<6> func_329()//Position - 0x346CB
{
	struct<6> Var0;
	int iVar6;
	int iVar7;
	int iVar8;
	
	StringCopy(&Var0, "NULL", 24);
	if (Global_15745 == 4)
	{
		iVar6 = audio::get_current_scripted_conversation_line();
		iVar6 = (iVar6 + Global_16755);
		iVar7 = iVar6 + 1;
		if (iVar7 > -1 && iVar6 > -1)
		{
			if (ui::does_text_label_exist(&(Global_14613[iVar7 /*6*/])))
			{
				return Global_14613[iVar7 /*6*/];
			}
			else
			{
				iVar8 = iVar7;
				while (iVar8 < 70)
				{
					if (ui::does_text_label_exist(&(Global_14613[iVar8 /*6*/])))
					{
						return Global_14613[iVar8 /*6*/];
						iVar8 = 70;
					}
					iVar8++;
				}
				return Var0;
			}
			return Global_14613[iVar6 /*6*/];
		}
		else
		{
			return Var0;
		}
	}
	return Var0;
}

void func_330(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12)//Position - 0x34777
{
	int iVar0;
	int iVar1;
	float fVar2;
	float fVar3;
	int iVar4;
	int iVar5;
	vector3 vVar6;
	vector3 vVar9;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	int iVar16;
	int iVar17;
	vector3 vVar18;
	vector3 vVar21;
	vector3 vVar24;
	float fVar27;
	float fVar28;
	vector3 vVar29;
	vector3 vVar32;
	float fVar35;
	float fVar36;
	vector3 vVar37;
	vector3 vVar40;
	vector3 vVar43;
	vector3 vVar46;
	int iVar49;
	float fVar50;
	float fVar51;
	int iVar52;
	vector3 vVar53;
	vector3 vVar56;
	int iVar59;
	int iVar60;
	vector3 vVar61;
	int iVar64;
	int iVar65;
	int iVar66;
	int iVar67;
	int iVar68;
	int iVar69;
	int iVar70;
	int iVar71;
	
	if (Local_325[iParam0 /*10*/] != iParam1 || Local_325[iParam0 /*10*/].f_1 == 0)
	{
		Local_325[iParam0 /*10*/] = iParam1;
		Local_325[iParam0 /*10*/].f_1 = 1;
		Local_325[iParam0 /*10*/].f_3 = 0;
		Local_325[iParam0 /*10*/].f_6 = 0;
		Local_325[iParam0 /*10*/].f_4 = 0;
		Local_325[iParam0 /*10*/].f_7 = 0;
		Local_325[iParam0 /*10*/].f_8 = 0;
		Local_325[iParam0 /*10*/].f_9 = 0f;
	}
	if (Local_325[iParam0 /*10*/].f_2 && iParam2 == 0)
	{
		iVar0 = true;
	}
	else
	{
		iVar0 = func_280(iParam3, iParam4, iParam5, iParam6, iParam7, iParam8, iParam9, iParam10, iParam11, iParam12);
	}
	if (iParam2 == 1 && !iVar0)
	{
		Local_325[iParam0 /*10*/].f_2 = 0;
	}
	if (!iLocal_1829 || Local_325[iParam0 /*10*/].f_6 == 99)
	{
		if (Local_325[iParam0 /*10*/].f_3 == 0 || Local_325[iParam0 /*10*/].f_6 == 99)
		{
			if (iVar0 == 1)
			{
				if (!Local_325[iParam0 /*10*/].f_2)
				{
					Local_325[iParam0 /*10*/].f_2 = 1;
				}
				switch (Local_325[iParam0 /*10*/])
				{
					case 2:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (!ped::is_ped_in_group(Local_1071[2 /*14*/]))
							{
								if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) < 50f)
								{
									ped::set_ped_as_group_member(Local_1071[2 /*14*/], ped::get_ped_group_index(player::player_ped_id()));
									ped::set_group_separation_range(ped::get_ped_group_index(player::player_ped_id()), 100f);
								}
							}
						}
						break;
					
					case 3:
						if (object::_does_door_exist(-967780114))
						{
							object::_set_door_ajar_angle(-967780114, 0f, 0, 1);
							object::_set_door_acceleration_limit(-967780114, 4, 0, 1);
							Local_325[iParam0 /*10*/].f_3 = 0;
						}
						break;
					
					case 4:
						Local_325[1 /*10*/].f_2 = 0;
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (ped::is_ped_in_group(Local_1071[2 /*14*/]))
							{
								ped::remove_ped_from_group(Local_1071[2 /*14*/]);
							}
						}
						break;
					
					case 1:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
								{
									if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
									{
										ai::task_enter_vehicle(Local_1071[2 /*14*/], Local_1450[0 /*2*/], 20000, -1, 2f, 1, 0);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								else
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
							
							case 1:
								if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0) && !ped::is_ped_injured(Local_1071[2 /*14*/]))
								{
									if (ped::is_ped_in_vehicle(Local_1071[2 /*14*/], Local_1450[0 /*2*/], 0))
									{
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 5:
						if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
						{
							if (ped::get_vehicle_ped_is_using(player::player_ped_id()) != Local_1450[0 /*2*/])
							{
								if (entity::does_entity_exist(Local_1450[0 /*2*/]))
								{
									entity::set_vehicle_as_no_longer_needed(&(Local_1450[0 /*2*/]));
								}
								Local_1450[0 /*2*/] = ped::get_vehicle_ped_is_using(player::player_ped_id());
								entity::set_entity_as_mission_entity(Local_1450[0 /*2*/], true, 1);
							}
						}
						break;
					
					case 11:
						if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
						{
							audio::start_audio_scene("ARM_2_DRIVE_TO_ALLEY");
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 12:
						iVar1 = 0;
						while (iVar1 < iLocal_2021)
						{
							if (entity::does_entity_exist(iLocal_2021[iVar1]))
							{
								if (vehicle::is_vehicle_driveable(iLocal_2021[iVar1], 0))
								{
									if (Local_1450[0 /*2*/] != iLocal_2021[iVar1])
									{
										entity::set_vehicle_as_no_longer_needed(&(iLocal_2021[iVar1]));
									}
								}
							}
							iVar1++;
						}
						vehicle::set_all_vehicle_generators_active_in_area(Vector(25.85983f, -1098.932f, -43.78194f) - Vector(2.5625f, 6.75f, 9.75f), Vector(25.85983f, -1098.932f, -43.78194f) + Vector(2.5625f, 6.75f, 9.75f), true, 1);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 13:
						func_432(1);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 14:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								fVar3 = 1000f;
								iVar5 = 0;
								while (iVar5 < vLocal_2035.x)
								{
									if (!cam::is_sphere_visible(vLocal_2035[iVar5 /*3*/], 2f))
									{
										fVar2 = func_123(player::player_ped_id(), vLocal_2035[iVar5 /*3*/], 1);
										if (fVar2 < fVar3 && fVar2 > 10f)
										{
											fVar3 = fVar2;
											iVar4 = iVar5;
										}
									}
									iVar5++;
								}
								if (fVar3 != 1000f)
								{
									func_261(22, vLocal_2035[iVar4 /*3*/] - Vector(0f, 0.5f, 0.5f), func_431(vLocal_2035[iVar4 /*3*/], entity::get_entity_coords(player::player_ped_id(), 1), 1), joaat("weapon_pistol"), 0, 0, -1);
									func_261(23, vLocal_2035[iVar4 /*3*/] - Vector(0f, 0.5f, 0.5f), func_431(vLocal_2035[iVar4 /*3*/], entity::get_entity_coords(player::player_ped_id(), 1), 1), joaat("weapon_pistol"), 0, 0, -1);
									ped::set_relationship_between_groups(5, ped::get_ped_relationship_group_hash(player::player_ped_id()), iLocal_1473);
									ped::set_relationship_between_groups(5, iLocal_1473, ped::get_ped_relationship_group_hash(player::player_ped_id()));
									ped::set_ped_target_loss_response(Local_1071[22 /*14*/], 1);
									ped::set_ped_target_loss_response(Local_1071[23 /*14*/], 1);
									ai::task_combat_hated_targets_around_ped(Local_1071[22 /*14*/], 150f, 0);
									ai::task_combat_hated_targets_around_ped(Local_1071[23 /*14*/], 150f, 0);
									ped::set_combat_float(Local_1071[22 /*14*/], 2, 6f);
									ped::set_combat_float(Local_1071[22 /*14*/], 13, 5f);
									ped::set_combat_float(Local_1071[23 /*14*/], 2, 6f);
									ped::set_combat_float(Local_1071[23 /*14*/], 13, 5f);
									ped::set_ped_combat_attributes(Local_1071[22 /*14*/], 50, true);
									ped::set_ped_combat_attributes(Local_1071[23 /*14*/], 50, true);
									if (ui::does_blip_exist(iLocal_2029))
									{
										ui::remove_blip(&iLocal_2029);
									}
									Local_325[iParam0 /*10*/].f_6++;
									Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 1500;
								}
								else
								{
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
								{
									if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
									{
										ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], false);
										weapon::give_weapon_to_ped(Local_1071[2 /*14*/], joaat("weapon_microsmg"), 2000, true, true);
										ai::clear_ped_tasks(Local_1071[2 /*14*/]);
										ai::task_combat_hated_targets_around_ped(Local_1071[2 /*14*/], 150f, 0);
										Local_325[iParam0 /*10*/].f_6++;
										Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 1500;
									}
								}
								break;
							
							case 2:
								if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
								{
									if (!ped::is_ped_injured(Local_1071[22 /*14*/]))
									{
										ped::set_combat_float(Local_1071[22 /*14*/], 2, 100f);
									}
									if (!ped::is_ped_injured(Local_1071[23 /*14*/]))
									{
										ped::set_combat_float(Local_1071[23 /*14*/], 2, 100f);
									}
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
					
					case 6:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (ui::does_blip_exist(iLocal_2029))
								{
									vVar6 = { ui::get_blip_info_id_coord(iLocal_2029) };
									if (func_74(vVar6, -1141.093f, -1576.759f, 3.3048f, 0))
									{
										if (entity::is_entity_in_angled_area(player::player_ped_id(), -39.15905f, -1078.176f, 23.77321f, -3.364391f, -1091.281f, 40.83922f, 23.8125f, 0, true, 0))
										{
											ui::_0x3D3D15AF7BCAAF83(156, 1, 0);
											ui::_0x311438A071DD9B1A(-13.445f, -1090.946f, 25.6721f);
											ui::_0x311438A071DD9B1A(-23.5158f, -1119.839f, 25.8719f);
											ui::_0x311438A071DD9B1A(-1141.093f, -1576.759f, 3.3048f);
											ui::_0x3DDA37128DD1ACA8(1);
											ui::set_blip_route(iLocal_2029, false);
											Local_325[iParam0 /*10*/].f_6++;
										}
										else
										{
											Local_325[iParam0 /*10*/].f_6++;
										}
									}
								}
								break;
							
							case 1:
								if (ui::does_blip_exist(iLocal_2029))
								{
									vVar9 = { ui::get_blip_info_id_coord(iLocal_2029) };
									if (!func_74(vVar9, -1141.093f, -1576.759f, 3.3048f, 0))
									{
										Local_325[iParam0 /*10*/].f_6 = 0;
									}
									else if (!entity::is_entity_in_angled_area(player::player_ped_id(), -39.15905f, -1078.176f, 23.77321f, -3.364391f, -1091.281f, 40.83922f, 23.8125f, 0, true, 0))
									{
										ui::_0x3DDA37128DD1ACA8(0);
										ui::set_blip_route(iLocal_2029, true);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 7:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (func_430(17))
								{
									if (!entity::does_entity_exist(Local_1071[3 /*14*/]))
									{
										Local_1071[3 /*14*/] = ped::create_ped(26, joaat("ig_siemonyetarian"), -31.4785f, -1107.098f, 25.4223f, 7.5788f, 1, true);
										ped::set_ped_default_component_variation(Local_1071[3 /*14*/]);
										ped::set_ped_component_variation(Local_1071[3 /*14*/], 0, 0, 0, 0);
										ped::set_ped_component_variation(Local_1071[3 /*14*/], 3, 0, 1, 0);
										ped::set_ped_component_variation(Local_1071[3 /*14*/], 4, 0, 0, 0);
										ped::set_ped_component_variation(Local_1071[3 /*14*/], 5, 0, 0, 0);
										ped::set_ped_component_variation(Local_1071[3 /*14*/], 7, 0, 0, 0);
									}
									if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
									{
										entity::set_entity_coords(Local_1071[3 /*14*/], -31.4785f, -1107.098f, 25.4223f, 1, false, 0, 1);
										entity::set_entity_heading(Local_1071[3 /*14*/], 7f);
										ai::task_start_scenario_in_place(Local_1071[3 /*14*/], "WORLD_HUMAN_STAND_MOBILE", 0, 0);
										if (object::does_object_of_type_exist_at_coords(-31.72f, -1101.85f, 26.57f, 1f, joaat("v_ilev_fib_door1"), 0))
										{
											iVar12 = object::get_closest_object_of_type(-31.72f, -1101.85f, 26.57f, 1f, joaat("v_ilev_fib_door1"), 0, 0, 1);
											if (iVar12 != 0)
											{
												if (entity::does_entity_have_drawable(iVar12))
												{
													entity::stop_synchronized_map_entity_anim(-31.72f, -1101.85f, 26.57f, 1f, joaat("v_ilev_fib_door1"), -1000f);
												}
											}
										}
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 1:
								if (gameplay::absf(object::_0x65499865FCA6E5EC(-1831288286)) < 0.05f && !entity::is_entity_in_angled_area(player::player_ped_id(), -32.47615f, -1104.299f, 25.4438f, -27.75145f, -1106f, 27.92234f, 6f, 0, true, 0))
								{
									func_134(97, 2);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 2:
								if (func_255(Local_1071[3 /*14*/], player::player_ped_id(), 1) > 200f)
								{
									if (entity::does_entity_exist(Local_1071[3 /*14*/]))
									{
										ped::delete_ped(&(Local_1071[3 /*14*/]));
										streaming::set_model_as_no_longer_needed(joaat("ig_siemonyetarian"));
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 8:
						ped::set_ped_reset_flag(player::player_ped_id(), 96, true);
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (iLocal_1067 == 9)
							{
								ped::set_ped_reset_flag(Local_1071[2 /*14*/], 96, true);
							}
						}
						break;
					
					case 9:
						if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
						{
							if (ped::is_ped_in_vehicle(player::player_ped_id(), Local_1450[0 /*2*/], 0))
							{
								audio::set_vehicle_radio_enabled(Local_1450[0 /*2*/], true);
								Local_325[iParam0 /*10*/].f_3 = 1;
							}
						}
						break;
					
					case 10:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								iLocal_139 = interior::get_interior_at_coords_with_type(-41.3822f, -1101.637f, 26.6294f, "v_carshowroom");
								if (interior::is_interior_ready(iLocal_139))
								{
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (iLocal_139 != 0)
								{
									if (interior::get_interior_from_entity(player::player_ped_id()) == iLocal_139)
									{
										if (!gameplay::is_bit_set(Local_325[iParam0 /*10*/].f_7, 0))
										{
											iVar13 = vehicle::get_closest_vehicle(-36.5853f, -1101.474f, 26.3444f, 5f, joaat("bjxl"), 4);
											if (vehicle::is_vehicle_driveable(iVar13, 0))
											{
												vehicle::set_vehicle_doors_locked(iVar13, 10);
												vehicle::set_vehicle_is_considered_by_player(iVar13, 0);
												gameplay::set_bit(&(Local_325[iParam0 /*10*/].f_7), 0);
											}
										}
										if (!gameplay::is_bit_set(Local_325[iParam0 /*10*/].f_7, 1))
										{
											iVar13 = vehicle::get_closest_vehicle(-46.2594f, -1097.839f, 26.3444f, 5f, joaat("bjxl"), 4);
											if (vehicle::is_vehicle_driveable(iVar13, 0))
											{
												vehicle::set_vehicle_doors_locked(iVar13, 10);
												vehicle::set_vehicle_is_considered_by_player(iVar13, 0);
												gameplay::set_bit(&(Local_325[iParam0 /*10*/].f_7), 1);
											}
										}
										if (!gameplay::is_bit_set(Local_325[iParam0 /*10*/].f_7, 2))
										{
											iVar13 = vehicle::get_closest_vehicle(-50.08f, -1094.463f, 26.0671f, 5f, joaat("tailgater"), 4);
											if (vehicle::is_vehicle_driveable(iVar13, 0))
											{
												vehicle::set_vehicle_doors_locked(iVar13, 10);
												vehicle::set_vehicle_is_considered_by_player(iVar13, 0);
												gameplay::set_bit(&(Local_325[iParam0 /*10*/].f_7), 2);
											}
										}
										if (!gameplay::is_bit_set(Local_325[iParam0 /*10*/].f_7, 3))
										{
											iVar13 = vehicle::get_closest_vehicle(-37.4128f, -1088.562f, 26.0671f, 5f, joaat("tailgater"), 4);
											if (vehicle::is_vehicle_driveable(iVar13, 0))
											{
												vehicle::set_vehicle_doors_locked(iVar13, 10);
												vehicle::set_vehicle_is_considered_by_player(iVar13, 0);
												gameplay::set_bit(&(Local_325[iParam0 /*10*/].f_7), 3);
											}
										}
										if (!gameplay::is_bit_set(Local_325[iParam0 /*10*/].f_7, 4))
										{
											iVar13 = vehicle::get_closest_vehicle(-41.4259f, -1099.648f, 26.0534f, 5f, joaat("tailgater"), 4);
											if (vehicle::is_vehicle_driveable(iVar13, 0))
											{
												vehicle::set_vehicle_doors_locked(iVar13, 10);
												vehicle::set_vehicle_is_considered_by_player(iVar13, 0);
												gameplay::set_bit(&(Local_325[iParam0 /*10*/].f_7), 4);
											}
										}
									}
								}
								break;
						}
						break;
					
					case 15:
						func_429();
						break;
					
					case 18:
						if (player::is_player_playing(player::player_id()))
						{
							func_122();
							ai::task_leave_any_vehicle(0, 0, 0);
							ai::task_look_at_coord(0, -1129.619f, -1588.344f, 4.7752f, 5000, 0, 2);
							iVar14 = player::player_ped_id();
							func_121(iVar14, 0);
							Local_325[iParam0 /*10*/].f_3 = 1;
							unk1::_0x293220DA1B46CEBC(2f, 2f, 4);
						}
						break;
					
					case 16:
						ai::task_leave_any_vehicle(Local_1071[2 /*14*/], 0, 0);
						func_301(Local_1071[2 /*14*/]);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 17:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (!ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0))
							{
								if (!func_279(Local_1071[2 /*14*/], -1128.192f, -1587.6f, 3.26637f, -1128.882f, -1584.653f, 5.953067f, 1.25f))
								{
									iVar15 = true;
								}
								if (!func_279(Local_1071[2 /*14*/], -1131.293f, -1590.194f, 3.252203f, -1134.276f, -1587.549f, 5.917865f, 1.25f))
								{
									iVar16 = true;
								}
								if (iVar15 || iVar16)
								{
									func_126(86, 1);
								}
								else
								{
									func_126(86, 0);
								}
								switch (Local_325[iParam0 /*10*/].f_6)
								{
									case 0:
										if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 1.5f)
										{
											if (!entity::is_entity_in_angled_area(player::player_ped_id(), -1129.458f, -1585.963f, 3.079151f, -1125.517f, -1591.644f, 7.022579f, 3.0625f, 0, true, 0) && !iVar15)
											{
												ai::task_follow_nav_mesh_to_coord(Local_1071[2 /*14*/], -1128.417f, -1587.442f, 3.3875f, 1f, 20000, 0.2f, 0, 221f);
												Local_325[iParam0 /*10*/].f_6 = 2;
											}
											else if (!entity::is_entity_in_angled_area(player::player_ped_id(), -1132.342f, -1587.769f, 3.071801f, -1127.968f, -1593.953f, 6.90706f, 3.0625f, 0, true, 0) && !iVar16)
											{
												ai::task_follow_nav_mesh_to_coord(Local_1071[2 /*14*/], -1131.704f, -1589.453f, 3.3934f, 1f, 20000, 0.2f, 0, 221f);
												Local_325[iParam0 /*10*/].f_6 = 3;
											}
											else
											{
												Local_325[iParam0 /*10*/].f_6 = 5;
												ai::task_turn_ped_to_face_entity(Local_1071[2 /*14*/], player::player_ped_id(), -1);
											}
										}
										else if (func_123(player::player_ped_id(), -1131.704f, -1589.453f, 4.3934f, 1) > func_123(player::player_ped_id(), -1128.417f, -1587.442f, 3.3875f, 1))
										{
											ai::task_follow_nav_mesh_to_coord(Local_1071[2 /*14*/], -1131.704f, -1589.453f, 3.3934f, 1f, 20000, 0.2f, 0, 221f);
											Local_325[iParam0 /*10*/].f_6 = 3;
										}
										else
										{
											Local_325[iParam0 /*10*/].f_6 = 2;
											ai::task_follow_nav_mesh_to_coord(Local_1071[2 /*14*/], -1128.417f, -1587.442f, 3.3875f, 1f, 20000, 0.2f, 0, 221f);
										}
										break;
									
									case 2:
									case 3:
										if (((Local_325[iParam0 /*10*/].f_6 == 2 && !iVar15) && !entity::is_entity_in_angled_area(player::player_ped_id(), -1129.458f, -1585.963f, 3.079151f, -1125.517f, -1591.644f, 7.022579f, 3.0625f, 0, true, 0)) || ((Local_325[iParam0 /*10*/].f_6 == 3 && !iVar16) && !entity::is_entity_in_angled_area(player::player_ped_id(), -1132.342f, -1587.769f, 3.071801f, -1127.968f, -1593.953f, 6.90706f, 3.0625f, 0, true, 0)))
										{
											if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1132.485f, -1590.005f, 2.394994f, -1127.201f, -1586.46f, 6.384637f, 1.5f, 0, true, 0))
											{
												if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 1.5f)
												{
													fLocal_2228 = gameplay::absf(func_428((entity::get_entity_heading(Local_1071[2 /*14*/]) - 221f), -1020002304, 1127481344));
													if (fLocal_2228 < 20f)
													{
														ai::task_climb(Local_1071[2 /*14*/], 0);
														Local_325[iParam0 /*10*/].f_6 = 4;
													}
													else
													{
														func_122();
														ai::task_achieve_heading(0, 221f, 0);
														func_121(Local_1071[2 /*14*/], 0);
													}
												}
												else if (ai::get_script_task_status(Local_1071[2 /*14*/], 713668775) == 7)
												{
													func_126(87, 1);
													Local_325[iParam0 /*10*/].f_6 = 0;
													ai::clear_ped_tasks(Local_1071[2 /*14*/]);
												}
											}
											else if (ai::get_script_task_status(Local_1071[2 /*14*/], 713668775) == 7)
											{
												Local_325[iParam0 /*10*/].f_6 = 0;
											}
										}
										else
										{
											Local_325[iParam0 /*10*/].f_6 = 0;
											ai::clear_ped_tasks(Local_1071[2 /*14*/]);
										}
										break;
									
									case 4:
										if (ai::get_script_task_status(Local_1071[2 /*14*/], -1207763510) == 2)
										{
											if (!func_285(49))
											{
												Local_325[iParam0 /*10*/].f_6 = 0;
											}
											else
											{
												Local_325[iParam0 /*10*/].f_3 = 1;
											}
										}
										else if (ai::get_script_task_status(Local_1071[2 /*14*/], -1207763510) == 7)
										{
											if (func_285(49))
											{
												unk1::_0x293220DA1B46CEBC(3f, 6f, 4);
												Local_325[iParam0 /*10*/].f_3 = 1;
											}
											else
											{
												Local_325[iParam0 /*10*/].f_6 = 0;
											}
										}
										break;
									
									case 5:
										if (!iVar15 || !iVar16)
										{
											ai::task_follow_nav_mesh_to_coord(Local_1071[2 /*14*/], -1128.417f, -1587.442f, 3.3875f, 1f, 20000, 0.2f, 0, 221f);
											Local_325[iParam0 /*10*/].f_6 = 0;
										}
										break;
									}
								}
						}
						break;
					
					case 20:
						if (!func_285(50))
						{
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								if (!entity::is_entity_in_air(Local_1071[2 /*14*/]))
								{
									func_122();
									ai::task_follow_nav_mesh_to_coord(0, -1116.379f, -1603.855f, 4.439f, 1f, 20000, 0.25f, 1, 1193033728);
									func_121(Local_1071[2 /*14*/], 0);
									Local_325[iParam0 /*10*/].f_3 = 1;
									Local_325[iParam0 /*10*/].f_6++;
								}
							}
						}
						else
						{
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 21:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]) && !ped::is_ped_injured(Local_1071[3 /*14*/]))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									if (!entity::is_entity_attached(Local_1071[2 /*14*/]) && !entity::is_entity_attached(Local_1071[3 /*14*/]))
									{
										entity::set_entity_heading(Local_1071[2 /*14*/], 220f);
										ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2", "fake_punch_walk_by_lamar", 1.5f, -1.5f, -1, 49152, 0f, 0, 0, 0);
										ai::task_play_anim(Local_1071[3 /*14*/], "missarmenian2", "PUNCH_REACTION_&_FALL_DRUNK", 4f, -4f, -1, 8, 0f, 0, 0, 0);
										Local_325[iParam0 /*10*/].f_6++;
									}
									break;
								
								case 1:
									ped::set_ped_min_move_blend_ratio(Local_1071[2 /*14*/], 1f);
									if (entity::has_anim_event_fired(Local_1071[2 /*14*/], gameplay::get_hash_key("Alternate_Walk_Finished")))
									{
										iVar17 = true;
									}
									if (!entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2", "fake_punch_walk_by_lamar", 3))
									{
										iVar17 = true;
									}
									if (iVar17)
									{
										ped::force_ped_motion_state(Local_1071[2 /*14*/], -668482597, true, 0, 0);
										func_122();
										ai::task_follow_waypoint_recording(0, "arm2", 0, 8, -1);
										func_121(Local_1071[2 /*14*/], 0);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
									break;
								}
						}
						break;
					
					case 22:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							ai::clear_ped_tasks(Local_1071[2 /*14*/]);
							func_122();
							ai::task_follow_waypoint_recording(0, "arm2", 0, 12, -1);
							func_121(Local_1071[2 /*14*/], 0);
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 19:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								func_543(3);
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								unk1::_0xAF66DCEE6609B148();
								if (func_427(3))
								{
									if (streaming::has_model_loaded(iLocal_2218))
									{
									}
									func_426(3, iLocal_2218, vLocal_2242, fLocal_2245, 4, 0, 0);
									ped::set_ped_config_flag(Local_1071[3 /*14*/], 42, true);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 2:
								unk1::_0xAF66DCEE6609B148();
								if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
								{
									if (!ped::is_ped_falling(Local_1071[3 /*14*/]))
									{
										entity::set_entity_heading(Local_1071[3 /*14*/], fLocal_2245);
										ped::set_ped_can_be_targetted(Local_1071[3 /*14*/], true);
										ped::set_ped_config_flag(Local_1071[3 /*14*/], 122, true);
										audio::stop_ped_speaking(Local_1071[3 /*14*/], 1);
										func_122();
										ai::task_play_anim(0, "missarmenian2", "exit_garage_drunk", 8f, -8f, -1, 0, 0f, 0, 0, 0);
										ai::task_play_anim(0, "missarmenian2", "standing_idle_loop_drunk", 8f, -8f, -1, 1, 0f, 0, 0, 0);
										func_121(Local_1071[3 /*14*/], 0);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 3:
								if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
								{
									if (entity::is_entity_playing_anim(Local_1071[3 /*14*/], "missarmenian2", "exit_garage_drunk", 3))
									{
										entity::set_entity_anim_current_time(Local_1071[3 /*14*/], "missarmenian2", "exit_garage_drunk", fLocal_2246);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 4:
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]) && !ped::is_ped_injured(Local_1071[3 /*14*/]))
								{
									if (entity::is_entity_playing_anim(Local_1071[3 /*14*/], "missarmenian2", "PUNCH_REACTION_&_FALL_DRUNK", 3))
									{
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 5:
								if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
								{
									if (entity::is_entity_playing_anim(Local_1071[3 /*14*/], "missarmenian2", "PUNCH_REACTION_&_FALL_DRUNK", 3))
									{
										if (entity::get_entity_anim_current_time(Local_1071[3 /*14*/], "missarmenian2", "PUNCH_REACTION_&_FALL_DRUNK") > 0.155f)
										{
											ai::clear_ped_tasks(Local_1071[3 /*14*/]);
											ai::set_high_fall_task(Local_1071[3 /*14*/], 13000, 15000, 4);
											Local_325[iParam0 /*10*/].f_3 = 1;
										}
									}
								}
								break;
						}
						break;
					
					case 23:
						if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
						{
							if (!ped::is_ped_ragdoll(Local_1071[3 /*14*/]))
							{
								func_421(Local_1071[3 /*14*/]);
								ped::set_blocking_of_non_temporary_events(Local_1071[3 /*14*/], true);
								func_122();
								ai::task_follow_nav_mesh_to_coord(0, -1105.912f, -1601.903f, 3.6709f, 1f, 20000, 1048576000, 0, 1193033728);
								ai::task_follow_nav_mesh_to_coord(0, -1105.28f, -1601.131f, 3.6709f, 1f, 20000, 1048576000, 0, 1193033728);
								ai::task_follow_nav_mesh_to_coord(0, -1106.231f, -1601.962f, 3.6709f, 1f, 20000, 1048576000, 0, 1193033728);
								ai::task_follow_nav_mesh_to_coord(0, -1108.15f, -1601.985f, 3.668f, 1f, 20000, 1048576000, 0, 1193033728);
								ai::task_follow_nav_mesh_to_coord(0, -1107.381f, -1603.752f, 3.6879f, 1f, 20000, 1048576000, 0, 1193033728);
								ai::task_follow_nav_mesh_to_coord(0, -1104.652f, -1601.999f, 3.6709f, 1f, 20000, 1048576000, 0, 1193033728);
								func_121(Local_1071[3 /*14*/], 1);
								Local_325[iParam0 /*10*/].f_3 = 1;
							}
						}
						break;
					
					case 24:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (func_251("AR2_BU12"))
							{
								if (ai::get_script_task_status(Local_1071[2 /*14*/], -2017877118) != 1)
								{
									ai::task_play_anim(Local_1071[2 /*14*/], "MISSARMENIAN2", "lamar_impatient_c", 8f, -8f, -1, 0, 0f, 0, 0, 0);
								}
							}
							else
							{
								ai::task_turn_ped_to_face_entity(Local_1071[2 /*14*/], player::player_ped_id(), 0);
								if (func_285(55))
								{
									if (func_285(53))
									{
										func_122();
										ai::task_follow_waypoint_recording(0, "arm2", 0, 12, -1);
										func_121(Local_1071[2 /*14*/], 0);
									}
									else
									{
										func_122();
										ai::task_follow_nav_mesh_to_coord(0, -1117.739f, -1601.903f, 3.39776f, 1f, 20000, 0.25f, 1, 1193033728);
										ai::task_follow_nav_mesh_to_coord(0, -1115.415f, -1605.237f, 3.44196f, 1f, 20000, 0.25f, 1, 1193033728);
										func_121(Local_1071[2 /*14*/], 0);
									}
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
							}
						}
						break;
					
					case 25:
						if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									func_543(4);
									Local_325[iParam0 /*10*/].f_6++;
									break;
								
								case 1:
									if (func_427(4))
									{
										if (!entity::is_entity_dead(Local_1450[1 /*2*/], 0))
										{
											if (!ped::is_ped_injured(Local_1071[4 /*14*/]) && !ped::is_ped_injured(Local_1071[5 /*14*/]))
											{
												vehicle::set_vehicle_lights(Local_1450[1 /*2*/], 2);
												vehicle::set_vehicle_engine_on(Local_1450[1 /*2*/], true, 1, 0);
												audio::set_vehicle_radio_enabled(Local_1450[1 /*2*/], true);
												audio::set_vehicle_radio_loud(Local_1450[1 /*2*/], 1);
												vehicle::unpause_playback_recorded_vehicle(Local_1450[1 /*2*/]);
												if (!ped::is_ped_injured(Local_1071[4 /*14*/]) && !ped::is_ped_injured(Local_1071[5 /*14*/]))
												{
													ai::task_play_anim(Local_1071[4 /*14*/], "missarmenian2", "car_react_gang_ds", 1f, -8f, -1, 0, 0f, 0, 0, 0);
													ai::task_play_anim(Local_1071[5 /*14*/], "missarmenian2", "car_react_gang_ps", 1f, -8f, -1, 0, 0f, 0, 0, 0);
												}
												audio::start_audio_scene("ARM_2_GANG_DRIVE_PAST");
												audio::set_veh_radio_station(Local_1450[1 /*2*/], "RADIO_03_HIPHOP_NEW");
												audio::_0x153973AB99FE8980(Local_1450[1 /*2*/], "ARM_2_GANG_CAR_GROUP", 0f);
												func_420(1);
												Local_325[iParam0 /*10*/].f_6++;
											}
										}
									}
									break;
								
								case 2:
									if (func_285(86))
									{
										if (!func_419(-1133.978f, -1581.576f, 5.2445f, 20f, 150f))
										{
											if (Local_325[iParam0 /*10*/].f_7 == 0)
											{
												Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 7000;
											}
											else if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
											{
												if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
												{
													entity::set_entity_coords(Local_1450[0 /*2*/], -1139.01f, -1575.648f, 3.3153f, 1, false, 0, 1);
													entity::set_entity_heading(Local_1450[0 /*2*/], 304f);
												}
											}
										}
										else
										{
											Local_325[iParam0 /*10*/].f_7 = 0;
										}
									}
									if (!entity::is_entity_dead(Local_1450[1 /*2*/], 0))
									{
										if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
										{
											if (!vehicle::is_playback_going_on_for_vehicle(Local_1450[1 /*2*/]))
											{
												if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
												{
													ai::task_vehicle_drive_to_coord(Local_1071[4 /*14*/], Local_1450[1 /*2*/], -1114.8f, -1567.425f, 3.3492f, 7f, 0, 0, 786469, 5f, 5f);
												}
												Local_325[iParam0 /*10*/].f_6++;
												if (audio::is_audio_scene_active("ARM_2_GANG_DRIVE_PAST"))
												{
													audio::stop_audio_scene("ARM_2_GANG_DRIVE_PAST");
													audio::_0x18EB48CFC41F2EA0(Local_1450[1 /*2*/], 0f);
												}
											}
										}
									}
									break;
								
								case 3:
									if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
									{
										if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
										{
											if (ai::get_script_task_status(Local_1071[4 /*14*/], -1817882002) != 1)
											{
												ai::task_vehicle_drive_wander(Local_1071[4 /*14*/], Local_1450[1 /*2*/], 15f, 786599);
												ped::set_ped_keep_task(Local_1071[4 /*14*/], true);
												entity::set_vehicle_as_no_longer_needed(&(Local_1450[1 /*2*/]));
												entity::set_ped_as_no_longer_needed(&(Local_1071[4 /*14*/]));
												if (!ped::is_ped_injured(Local_1071[5 /*14*/]))
												{
													ai::task_pause(Local_1071[5 /*14*/], -1);
													ped::set_ped_keep_task(Local_1071[5 /*14*/], true);
													entity::set_ped_as_no_longer_needed(&(Local_1071[5 /*14*/]));
												}
												Local_325[iParam0 /*10*/].f_6++;
											}
										}
									}
									break;
								}
						}
						break;
					
					case 26:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]) && !ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
								{
									ai::task_look_at_entity(player::player_ped_id(), Local_1071[2 /*14*/], 5000, 0, 2);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (func_285(57))
								{
									if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
									{
										ai::task_look_at_entity(player::player_ped_id(), Local_1071[3 /*14*/], 9000, 0, 2);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 2:
								if (func_285(52))
								{
									if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
									{
										ai::task_look_at_entity(player::player_ped_id(), Local_1071[3 /*14*/], 15000, 0, 2);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 3:
								if (func_285(61))
								{
									if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
									{
										ai::task_look_at_entity(player::player_ped_id(), Local_1071[4 /*14*/], 10000, 0, 2);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
						}
						break;
					
					case 27:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									ped::set_ped_alternate_walk_anim(Local_1071[2 /*14*/], "missarmenian2", "car_react", 1f, 0);
									Local_325[iParam0 /*10*/].f_6++;
									Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 10000;
									break;
								
								case 1:
									if (entity::has_anim_event_fired(Local_1071[2 /*14*/], gameplay::get_hash_key("Alternate_Walk_Finished")))
									{
										ped::clear_ped_alternate_walk_anim(Local_1071[2 /*14*/], -1056964608);
									}
									break;
								}
						}
						break;
					
					case 28:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
								{
									vVar18 = { ped::get_anim_initial_offset_position("missarmenian2", "drunk_getup", entity::get_entity_coords(Local_1071[3 /*14*/], 1), 0f, 0f, entity::get_entity_heading(Local_1071[3 /*14*/]), 0f, 2) };
									vVar21 = { ped::get_anim_initial_offset_rotation("missarmenian2", "drunk_getup", entity::get_entity_coords(Local_1071[3 /*14*/], 1), 0f, 0f, entity::get_entity_heading(Local_1071[3 /*14*/]), 0f, 2) };
									iLocal_2227 = ped::create_synchronized_scene(vVar18, vVar21, 2);
									ai::task_synchronized_scene(Local_1071[3 /*14*/], iLocal_2227, "missarmenian2", "drunk_getup", 4f, -4f, 1, 0, 1148846080, 0);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (ped::is_synchronized_scene_running(iLocal_2227))
								{
									if (ped::get_synchronized_scene_phase(iLocal_2227) >= 1f)
									{
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 29:
						if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									Local_325[iParam0 /*10*/].f_9 = 1f;
									Local_325[iParam0 /*10*/].f_6++;
									break;
								
								case 1:
									Local_325[iParam0 /*10*/].f_9 = (Local_325[iParam0 /*10*/].f_9 - system::timestep());
									if (Local_325[iParam0 /*10*/].f_9 < 0f)
									{
										Local_325[iParam0 /*10*/].f_9 = 0f;
										Local_325[iParam0 /*10*/].f_3 = 1;
										func_418(12, 30);
									}
									if (vehicle::is_playback_going_on_for_vehicle(Local_1450[1 /*2*/]))
									{
										vehicle::set_playback_speed(Local_1450[1 /*2*/], Local_325[iParam0 /*10*/].f_9);
									}
									break;
								}
						}
						break;
					
					case 30:
						if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									Local_325[iParam0 /*10*/].f_9 = 0f;
									Local_325[iParam0 /*10*/].f_6++;
									break;
								
								case 1:
									Local_325[iParam0 /*10*/].f_9 = (Local_325[iParam0 /*10*/].f_9 + system::timestep());
									if (Local_325[iParam0 /*10*/].f_9 >= 1f)
									{
										Local_325[iParam0 /*10*/].f_9 = 1f;
										Local_325[iParam0 /*10*/].f_3 = 1;
										func_418(11, 29);
									}
									if (vehicle::is_playback_going_on_for_vehicle(Local_1450[1 /*2*/]))
									{
										vehicle::set_playback_speed(Local_1450[1 /*2*/], Local_325[iParam0 /*10*/].f_9);
									}
									break;
								}
						}
						break;
					
					case 31:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									ped::clear_ped_alternate_walk_anim(Local_1071[2 /*14*/], -1056964608);
									func_417(9, 27, 1, 0);
									ai::task_turn_ped_to_face_entity(Local_1071[2 /*14*/], player::player_ped_id(), 4000);
									if (func_251("move"))
									{
										Local_325[iParam0 /*10*/].f_6++;
									}
									if (func_251("AR2_BU12"))
									{
										Local_325[iParam0 /*10*/].f_6 = 3;
									}
									break;
								
								case 1:
									ai::task_play_anim(Local_1071[2 /*14*/], "MISSARMENIAN2", "lamar_impatient_c", 8f, -8f, -1, 48, 0f, 0, 0, 0);
									Local_325[iParam0 /*10*/].f_6++;
									break;
								
								case 2:
									if (func_251("AR2_BU12"))
									{
										ai::task_follow_waypoint_recording(Local_1071[2 /*14*/], "arm2", 0, 8, -1);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
									break;
								
								case 3:
									ai::task_follow_waypoint_recording(Local_1071[2 /*14*/], "arm2", 0, 8, -1);
									Local_325[iParam0 /*10*/].f_3 = 1;
									break;
								}
						}
						break;
					
					case 32:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if ((iLocal_47 == 5 || iLocal_47 == 7) || iLocal_47 == 3)
								{
									if (func_285(71))
									{
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 1:
								if (func_285(71))
								{
									if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
									{
										if ((ai::get_script_task_status(Local_1071[2 /*14*/], -875674219) == 1 || ai::get_script_task_status(Local_1071[2 /*14*/], -875674219) == 2) || ai::get_script_task_status(Local_1071[2 /*14*/], -875674219) == 0)
										{
											ai::task_turn_ped_to_face_entity(Local_1071[2 /*14*/], player::player_ped_id(), 1000);
										}
										else
										{
											ai::clear_ped_tasks(Local_1071[2 /*14*/]);
											ped::clear_ped_alternate_walk_anim(Local_1071[2 /*14*/], -1056964608);
											func_417(9, 27, 1, 0);
											ai::task_turn_ped_to_face_entity(Local_1071[2 /*14*/], player::player_ped_id(), 1000);
										}
									}
								}
								else
								{
									switch (iLocal_47)
									{
										case 3:
											vVar24 = { entity::get_entity_coords(Local_1071[2 /*14*/], 1) };
											if (vVar24.y < -1601.903f)
											{
												func_122();
												ai::task_follow_nav_mesh_to_coord(0, -1115.415f, -1605.237f, 3.44196f, 1f, 20000, 0.25f, 1, 1193033728);
												func_121(Local_1071[2 /*14*/], 0);
											}
											else
											{
												func_122();
												ai::task_follow_nav_mesh_to_coord(0, -1117.739f, -1601.903f, 3.39776f, 1f, 20000, 0.25f, 1, 1193033728);
												ai::task_follow_nav_mesh_to_coord(0, -1115.415f, -1605.237f, 3.44196f, 1f, 20000, 0.25f, 1, 1193033728);
												func_121(Local_1071[2 /*14*/], 0);
											}
											Local_325[iParam0 /*10*/].f_6 = 0;
											break;
										
										case 5:
										case 7:
											func_122();
											ai::task_follow_waypoint_recording(0, "arm2", 0, 8, -1);
											func_121(Local_1071[2 /*14*/], 0);
											Local_325[iParam0 /*10*/].f_6 = 0;
											break;
										}
								}
								break;
						}
						break;
					
					case 33:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							ai::task_follow_waypoint_recording(Local_1071[2 /*14*/], "arm2", 0, 8, -1);
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 34:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									if (entity::is_entity_in_angled_area(player::player_ped_id(), -1065.348f, -1667.966f, 2.260047f, -1074.575f, -1676.186f, 6.517583f, 11.875f, 0, true, 0) && !ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
									{
										ped::set_ped_as_group_member(Local_1071[2 /*14*/], ped::get_ped_group_index(player::player_ped_id()));
										Local_325[iParam0 /*10*/].f_6++;
									}
									break;
								
								case 1:
									if (!entity::is_entity_in_angled_area(player::player_ped_id(), -1065.348f, -1667.966f, 2.260047f, -1074.575f, -1676.186f, 6.517583f, 11.875f, 0, true, 0) || ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
									{
										ai::task_turn_ped_to_face_entity(Local_1071[2 /*14*/], player::player_ped_id(), 3000);
										ped::remove_ped_from_group(Local_1071[2 /*14*/]);
										Local_325[iParam0 /*10*/].f_6 = 0;
									}
									break;
								}
						}
						break;
					
					case 38:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 99:
								break;
							
							case 0:
								streaming::request_model(joaat("prop_gar_door_plug"));
								if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
								{
									player::set_player_control(player::player_id(), false, 256);
									Local_1071[0 /*14*/] = player::player_ped_id();
									func_122();
									ai::task_follow_nav_mesh_to_coord(0, Vector(3.55f, -1665.66f, -1067.02f) + Vector(0f, -0.78f, -0.63f), 1f, 20000, 0.1f, 4608, -55f);
									ai::task_swap_weapon(0, 0);
									ai::task_play_anim(0, "MISSARMENIAN2", "open_garage_franklin", 4f, 2f, -1, 0, 0f, 0, 0, 0);
									func_121(Local_1071[0 /*14*/], 0);
									Local_325[iParam0 /*10*/].f_6++;
									streaming::request_model(joaat("prop_gar_door_plug"));
									unk1::_0x293220DA1B46CEBC(3f, 3f, 3);
								}
								break;
							
							case 1:
								if (entity::is_entity_playing_anim(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin", 3))
								{
									fVar27 = entity::get_entity_anim_current_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin");
									fVar27 = (fVar27 / entity::get_entity_anim_total_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin"));
									if (fVar27 < 0f || fVar27 > 1f)
									{
										fVar27 = 0f;
									}
									entity::play_entity_anim(iLocal_1951, "open_garage_door", "MISSARMENIAN2", 16f, false, 1, 0, 0f, 0);
									entity::set_entity_collision(iLocal_1951, false, 0);
									ped::set_ped_using_action_mode(player::player_ped_id(), false, -1, 0);
									iLocal_1055[0] = object::create_object(joaat("prop_gar_door_plug"), -1066.72f, -1665.41f, 4.5f, 1, true, false);
									entity::set_entity_rotation(iLocal_1055[0], -90f, 0f, -55.93f, 2, 1);
									entity::set_entity_visible(iLocal_1055[0], false, 0);
									entity::freeze_entity_position(iLocal_1055[0], true);
									unk1::_0x293220DA1B46CEBC(3f, 3f, 3);
									Local_325[iParam0 /*10*/].f_6 = 2;
								}
								break;
							
							case 2:
								if (entity::is_entity_playing_anim(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin", 3))
								{
									fVar28 = entity::get_entity_anim_current_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin");
									fVar28 = (fVar28 / entity::get_entity_anim_total_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin"));
									if (fVar28 < 0f || fVar28 > 1f)
									{
										fVar28 = 0f;
									}
									if (!entity::is_entity_dead(iLocal_1951, 0))
									{
										if (entity::is_entity_playing_anim(iLocal_1951, "MISSARMENIAN2", "open_garage_door", 3))
										{
											entity::set_entity_anim_current_time(iLocal_1951, "MISSARMENIAN2", "open_garage_door", fVar28);
										}
									}
									Local_325[iParam0 /*10*/].f_6 = 3;
								}
								break;
							
							case 3:
								if (!entity::is_entity_dead(iLocal_1055[0], 0) && !entity::is_entity_dead(iLocal_1952, 0))
								{
									entity::set_entity_coords(iLocal_1055[0], entity::get_entity_coords(iLocal_1951, 1), 1, false, 0, 1);
									entity::set_entity_rotation(iLocal_1055[0], entity::get_entity_rotation(iLocal_1951, 2), 2, 1);
									vVar29 = { entity::get_entity_coords(iLocal_1951, 1) };
									vVar32 = { entity::get_entity_rotation(iLocal_1951, 2) };
								}
								if (entity::is_entity_playing_anim(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin", 3))
								{
									if (entity::get_entity_anim_current_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin") > 0.22f)
									{
										audio::play_sound_from_coord(-1, "Garage_Open_01", -1066.949f, -1665.65f, 4.7981f, "ARM_2_REPO_SOUNDS", 0, 0, 0);
										Local_325[iParam0 /*10*/].f_6 = 4;
									}
								}
								break;
							
							case 4:
								if (streaming::has_model_loaded(joaat("prop_gar_door_plug")))
								{
									if (entity::is_entity_playing_anim(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin", 3))
									{
										if (entity::get_entity_anim_current_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin") > 0.77f)
										{
											ai::clear_ped_tasks(player::player_ped_id());
											if (ui::does_blip_exist(iLocal_2031))
											{
												ui::remove_blip(&iLocal_2031);
											}
											player::set_player_control(player::player_id(), true, 0);
											ai::task_look_at_coord(player::player_ped_id(), -1064.049f, -1663.417f, 4.8837f, 3000, 0, 2);
											if (!entity::is_entity_dead(iLocal_1055[0], 0))
											{
												entity::set_entity_coords(iLocal_1055[0], -1066.72f, -1665.41f, 5.73f, 1, false, 0, 1);
												entity::set_entity_rotation(iLocal_1055[0], -90f, 0f, -55.93f, 2, 1);
											}
											iLocal_1054++;
											Local_325[iParam0 /*10*/].f_3 = 1;
										}
									}
								}
								break;
						}
						break;
					
					case 39:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 99:
								break;
							
							case 0:
								if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
								{
									streaming::request_model(joaat("prop_gar_door_plug"));
									player::set_player_control(player::player_id(), false, 256);
									Local_1071[0 /*14*/] = player::player_ped_id();
									func_122();
									ai::task_follow_nav_mesh_to_coord(0, Vector(3.55f, -1668.82f, -1064.81f) + Vector(0f, -0.78f, -0.63f), 1f, 20000, 0.1f, 4608, -55f);
									ai::task_swap_weapon(0, 0);
									ai::task_play_anim(0, "MISSARMENIAN2", "open_garage_franklin", 4f, -8f, -1, 0, 0f, 0, 0, 0);
									func_121(Local_1071[0 /*14*/], 0);
									unk1::_0x293220DA1B46CEBC(2.5f, 3.5f, 4);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (entity::is_entity_playing_anim(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin", 3))
								{
									fVar35 = entity::get_entity_anim_current_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin");
									fVar35 = (fVar35 / entity::get_entity_anim_total_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin"));
									if (fVar35 < 0f || fVar35 > 1f)
									{
										fVar35 = 0f;
									}
									entity::play_entity_anim(iLocal_1952, "open_garage_door", "MISSARMENIAN2", 16f, false, 1, 0, 0f, 0);
									entity::set_entity_collision(iLocal_1952, false, 0);
									ped::set_ped_using_action_mode(player::player_ped_id(), false, -1, 0);
									Local_325[iParam0 /*10*/].f_6 = 2;
								}
								break;
							
							case 2:
								if (entity::is_entity_playing_anim(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin", 3))
								{
									fVar36 = entity::get_entity_anim_current_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin");
									fVar36 = (fVar36 / entity::get_entity_anim_total_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin"));
									if (fVar36 < 0f || fVar36 > 1f)
									{
										fVar36 = 0f;
									}
									if (!entity::is_entity_dead(iLocal_1952, 0))
									{
										if (entity::is_entity_playing_anim(iLocal_1952, "MISSARMENIAN2", "open_garage_door", 3))
										{
											entity::set_entity_anim_current_time(iLocal_1952, "MISSARMENIAN2", "open_garage_door", fVar36);
										}
									}
									if (streaming::has_model_loaded(joaat("prop_gar_door_plug")))
									{
										iLocal_1055[1] = object::create_object(joaat("prop_gar_door_plug"), -1064.45f, -1668.56f, 4.5f, 1, true, false);
										entity::set_entity_rotation(iLocal_1055[1], -90f, 0f, -55.93f, 2, 1);
										entity::set_entity_visible(iLocal_1055[1], false, 0);
										entity::freeze_entity_position(iLocal_1055[1], true);
									}
									Local_325[iParam0 /*10*/].f_6 = 3;
								}
								break;
							
							case 3:
								if (!entity::is_entity_dead(iLocal_1055[1], 0) && !entity::is_entity_dead(iLocal_1952, 0))
								{
									entity::set_entity_coords(iLocal_1055[1], entity::get_entity_coords(iLocal_1952, 1), 1, false, 0, 1);
									entity::set_entity_rotation(iLocal_1055[1], entity::get_entity_rotation(iLocal_1952, 2), 2, 1);
									vVar37 = { entity::get_entity_coords(iLocal_1952, 1) };
									vVar40 = { entity::get_entity_rotation(iLocal_1952, 2) };
								}
								if (entity::is_entity_playing_anim(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin", 3))
								{
									if (entity::get_entity_anim_current_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin") > 0.25f)
									{
										audio::play_sound_from_coord(-1, "Garage_Open_02", -1064.632f, -1668.981f, 4.8996f, "ARM_2_REPO_SOUNDS", 0, 0, 0);
										Local_325[iParam0 /*10*/].f_6 = 4;
									}
								}
								break;
							
							case 4:
								if (entity::is_entity_playing_anim(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin", 3))
								{
									if (entity::get_entity_anim_current_time(player::player_ped_id(), "MISSARMENIAN2", "open_garage_franklin") > 0.77f)
									{
										ai::clear_ped_tasks(player::player_ped_id());
										if (ui::does_blip_exist(iLocal_2032))
										{
											ui::remove_blip(&iLocal_2032);
										}
										player::set_player_control(player::player_id(), true, 0);
										iLocal_1054++;
										ai::task_look_at_coord(player::player_ped_id(), -1063.143f, -1667.331f, 4.9339f, 3000, 0, 2);
										if (!entity::is_entity_dead(iLocal_1055[1], 0) && !entity::is_entity_dead(iLocal_1952, 0))
										{
											entity::set_entity_coords(iLocal_1055[1], -1064.45f, -1668.56f, 5.73f, 1, false, 0, 1);
											entity::set_entity_rotation(iLocal_1055[1], -90f, 0f, -55.93f, 2, 1);
										}
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 40:
						if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
						{
							vVar43 = { 0f, 0f, 0f };
							if (func_415(&vVar43, -1076.163f, -1673.723f, 3.61753f, -1073.07f, -1678.339f, 3.59893f, func_118(1.41f, -2f, 0f), entity::get_entity_coords(player::player_ped_id(), 1)))
							{
								Local_325[iParam0 /*10*/].f_3 = 1;
							}
						}
						break;
					
					case 41:
						if (object::_does_door_exist(-967780114))
						{
							object::_set_door_ajar_angle(-967780114, 0f, 0, 1);
							object::_set_door_acceleration_limit(-967780114, 4, 0, 1);
						}
						break;
					
					case 50:
						if (object::_does_door_exist(-967780114))
						{
							object::_set_door_ajar_angle(-967780114, 1f, 0, 1);
							object::_set_door_acceleration_limit(-967780114, 4, 0, 1);
						}
						break;
					
					case 51:
						if (cutscene::is_cutscene_playing())
						{
							if (cutscene::get_cutscene_time() > 16757)
							{
								if (!ped::is_ped_injured(iLocal_1917))
								{
									ped::apply_ped_blood_specific(iLocal_1917, 0, 0.875f, 0.758f, 279.331f, 1f, 6, 0f, "BulletLarge");
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
							}
						}
						break;
					
					case 42:
						func_414("ARM2_MISSION_START", 0, "ARM2_FIGHT_START");
						audio::start_audio_scene("ARM_2_SEARCH_FOR_BIKE");
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 43:
						if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									if (func_430(9))
									{
										vehicle::start_playback_recorded_vehicle(Local_1450[1 /*2*/], 1, "ARM2", 1);
										Local_325[iParam0 /*10*/].f_6++;
									}
									break;
								
								case 1:
									if (vehicle::is_playback_going_on_for_vehicle(Local_1450[1 /*2*/]))
									{
										vehicle::pause_playback_recorded_vehicle(Local_1450[1 /*2*/]);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
									break;
								}
						}
						break;
					
					case 44:
						if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									if (ped::set_exclusive_phone_relationships(player::player_ped_id()) == Local_1450[6 /*2*/] || ped::get_vehicle_ped_is_using(player::player_ped_id()) == Local_1450[6 /*2*/])
									{
										entity::freeze_entity_position(Local_1450[6 /*2*/], false);
										Local_325[iParam0 /*10*/].f_6++;
									}
									break;
								
								case 1:
									if (!ped::is_ped_getting_into_a_vehicle(player::player_ped_id()) && !ped::is_ped_in_vehicle(player::player_ped_id(), Local_1450[6 /*2*/], 0))
									{
										entity::freeze_entity_position(Local_1450[6 /*2*/], true);
										Local_325[iParam0 /*10*/].f_6 = 0;
									}
									break;
								}
						}
						break;
					
					case 47:
						if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
						{
							if (audio::is_audio_scene_active("ARM_2_DRIVE_TO_ALLEY"))
							{
								audio::stop_audio_scene("ARM_2_DRIVE_TO_ALLEY");
								Local_325[iParam0 /*10*/].f_3 = 1;
							}
							else
							{
								Local_325[iParam0 /*10*/].f_3 = 1;
							}
						}
						break;
					
					case 49:
						if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
						{
							if (!ped::is_ped_injured(Local_1071[4 /*14*/]) && !ped::is_ped_injured(Local_1071[5 /*14*/]))
							{
								if (func_255(player::player_ped_id(), Local_1071[4 /*14*/], 1) < 15f)
								{
									ai::task_look_at_entity(Local_1071[4 /*14*/], player::player_ped_id(), 15000, 0, 2);
									ai::task_look_at_entity(Local_1071[5 /*14*/], player::player_ped_id(), 15000, 0, 2);
									Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 15000;
								}
							}
						}
						break;
					
					case 48:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								iLocal_47 = 1;
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								if (func_285(49))
								{
									iLocal_47 = 3;
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 2:
								vVar46 = { entity::get_entity_coords(Local_1071[2 /*14*/], 1) };
								if ((entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2", "fake_punch_walk_by_lamar", 3) || vVar46.y < -1601f) || func_413(4, 17) > 0)
								{
									iLocal_47 = 4;
									Local_325[iParam0 /*10*/].f_6++;
								}
								else if (func_285(53))
								{
									Local_325[iParam0 /*10*/].f_6 = 4;
									iLocal_47 = 5;
								}
								break;
							
							case 3:
								if (func_285(53) || func_248(3, 21))
								{
									Local_325[iParam0 /*10*/].f_6 = 4;
									iLocal_47 = 5;
								}
								break;
							
							case 4:
								if (func_285(62) && !func_285(64))
								{
									Local_325[iParam0 /*10*/].f_6 = 5;
									iLocal_47 = 6;
								}
								break;
							
							case 5:
								if (func_285(64) || func_248(9, 27))
								{
									Local_325[iParam0 /*10*/].f_6 = 6;
									iLocal_47 = 7;
								}
								break;
						}
						break;
					
					case 45:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									ai::task_look_at_coord(Local_1071[2 /*14*/], -1074.437f, -1674.698f, 5.0856f, 3000, 0, 2);
									Local_325[iParam0 /*10*/].f_6++;
									Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 3000;
									break;
								
								case 1:
									if (gameplay::get_game_timer() > 3000)
									{
										ai::task_look_at_coord(Local_1071[2 /*14*/], -1068.423f, -1665.641f, 4.9303f, 3000, 0, 2);
										Local_325[iParam0 /*10*/].f_6++;
										Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 3000;
									}
									break;
								
								case 2:
									if (gameplay::get_game_timer() > 3000)
									{
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
									break;
								}
						}
						break;
					
					case 46:
						if (entity::is_entity_in_angled_area(player::player_ped_id(), -1066.288f, -1675.862f, 2.403591f, -1074.154f, -1664.753f, 8.428232f, 13.4375f, 0, true, 0))
						{
							iVar49 = true;
							ped::set_ped_max_move_blend_ratio(player::player_ped_id(), 1f);
						}
						if (iLocal_1067 > 1 && iLocal_1067 < 6)
						{
							if (!ped::is_ped_in_combat(player::player_ped_id(), 0) && ((!ped::is_ped_injured(Local_1071[2 /*14*/]) && entity::is_entity_in_angled_area(player::player_ped_id(), entity::get_entity_coords(Local_1071[2 /*14*/], 0) - Vector(2f, 0f, 0f), -1064.003f, -1679.903f, 7.516632f, 52.5f, 0, true, 0)) || iLocal_2226))
							{
								ped::set_ped_max_move_blend_ratio(player::player_ped_id(), 1f);
								if (cam::get_follow_ped_cam_view_mode() == 4)
								{
									iLocal_2226 = 1;
								}
								iVar49 = true;
							}
						}
						if (iLocal_2226)
						{
							fVar50 = gameplay::get_distance_between_coords(entity::get_entity_coords(Local_1071[2 /*14*/], 1), -1064.003f, -1679.903f, 7.516632f, 0);
							fVar51 = gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), -1064.003f, -1679.903f, 7.516632f, 0);
							if (fVar51 > (fVar50 + 3f) || cam::get_follow_ped_cam_view_mode() != 4)
							{
								iLocal_2226 = 0;
							}
						}
						if (!iVar49)
						{
							ped::set_ped_max_move_blend_ratio(player::player_ped_id(), 3f);
							iLocal_2226 = 0;
						}
						break;
					
					case 35:
						Local_325[iParam0 /*10*/].f_6 = 2;
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
								{
									ai::task_go_straight_to_coord(Local_1071[2 /*14*/], -1074.48f, -1673.231f, 3.4137f, 1f, 20000, 1193033728, 1056964608);
									if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
									{
										ped::set_ped_alternate_walk_anim(Local_1071[2 /*14*/], "missarmenian2", "LEMAR_INDICATE_GARAGE", 8f, 1);
									}
									if (ui::does_blip_exist(iLocal_2029))
									{
										ui::remove_blip(&iLocal_2029);
									}
									iLocal_2029 = func_412(-1073.575f, -1675.605f, 3.4401f, 0);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (ai::get_script_task_status(Local_1071[2 /*14*/], 2106541073) == 7)
								{
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 2:
								if (func_430(15))
								{
									if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) < 5f && !ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
									{
										if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
										{
											if (!ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0) && !ped::is_ped_getting_into_a_vehicle(Local_1071[2 /*14*/]))
											{
												if (ped::is_ped_stopped(Local_1071[2 /*14*/]))
												{
													if (!entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2", "GARAGE_POINT_lemar", 3))
													{
														func_411(&(Local_325[iParam0 /*10*/].f_8), &(Local_325[iParam0 /*10*/].f_7));
													}
												}
											}
										}
									}
									else if (ai::get_script_task_status(Local_1071[2 /*14*/], -2017877118) == 1)
									{
										ai::clear_ped_tasks(Local_1071[2 /*14*/]);
									}
								}
								break;
						}
						break;
					
					case 36:
						if (func_285(13))
						{
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						else
						{
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								ai::clear_ped_tasks(Local_1071[2 /*14*/]);
								if (ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0))
								{
									ai::task_leave_any_vehicle(Local_1071[2 /*14*/], 0, 0);
								}
							}
							gameplay::clear_bit(&(Local_1956.f_13), 26);
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 37:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								func_543(5);
								cutscene::request_cutscene("Arm_2_mcs_4", 8);
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								if (cutscene::_0xB56BBBCC2955D9CB())
								{
									cutscene::_0x2A56C06EBEF2B0D9("Franklin", player::player_ped_id(), 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 0, 0, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 1, 0, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 2, 2, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 3, 2, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 4, 3, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 5, 0, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 6, 1, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 7, 0, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 8, 0, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 9, 0, 0, 0);
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
					
					case 66:
						if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
						{
							ped::delete_ped(&(Local_1071[3 /*14*/]));
						}
						if (player::is_player_playing(player::player_id()))
						{
							player::set_wanted_level_multiplier(0f);
							player::set_max_wanted_level(0);
							player::set_player_wanted_level(player::player_id(), 0, 0);
						}
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							ped::set_relationship_between_groups(5, ped::get_ped_relationship_group_hash(player::player_ped_id()), iLocal_1473);
							ped::set_relationship_between_groups(5, iLocal_1473, ped::get_ped_relationship_group_hash(player::player_ped_id()));
							ped::set_ped_accuracy(Local_1071[2 /*14*/], 15);
							ped::remove_ped_from_group(Local_1071[2 /*14*/]);
						}
						if (player::is_player_playing(player::player_id()) && !ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (player::is_player_playing(player::player_id()) && !ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								ped::set_ped_relationship_group_hash(Local_1071[2 /*14*/], ped::get_ped_relationship_group_hash(player::player_ped_id()));
							}
						}
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (!ui::does_blip_exist(Local_1071[2 /*14*/].f_1))
							{
								Local_1071[2 /*14*/].f_1 = func_258(Local_1071[2 /*14*/], 0, 145);
							}
						}
						gameplay::_set_unk_map_flag(1);
						ped::set_ped_using_action_mode(player::player_ped_id(), true, -1, 0);
						iLocal_2223 = 0;
						gameplay::set_bit(&iLocal_2223, 3);
						gameplay::set_bit(&iLocal_2223, 4);
						iLocal_1981 = object::create_pickup(joaat("pickup_weapon_pumpshotgun"), -1082.852f, -1651.92f, 3.3987f, iLocal_2223, 40, 1, 0);
						iLocal_1911 = ai::add_cover_point(-1071.326f, -1663.061f, 3.4888f, 27f, 1, 0, 1, 1);
						iLocal_1912 = ai::add_cover_point(-1082.397f, -1649.098f, 3.5038f, 27f, 1, 0, 1, 1);
						iLocal_1913 = ai::add_cover_point(-1089.433f, -1639.457f, 3.4724f, 27f, 1, 0, 1, 1);
						iLocal_1915 = ai::add_cover_point(-1073.505f, -1657.754f, 3.394f, 226.1309f, 0, 2, 0, 1);
						iLocal_1914 = ai::add_cover_point(-1079.18f, -1653.95f, 3.4f, 27f, 1, 0, 1, 1);
						audio::start_audio_scene("ARM_2_SHOOTOUT");
						func_300(Local_1071[2 /*14*/], 1);
						func_147(4, 12, 0);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 65:
						if (vehicle::is_vehicle_driveable(Local_1450[2 /*2*/], 0))
						{
							if (entity::has_entity_been_damaged_by_entity(Local_1450[2 /*2*/], player::player_ped_id(), 1))
							{
								if (entity::get_entity_health(Local_1450[2 /*2*/]) < 950)
								{
									vehicle::set_vehicle_tyre_burst(Local_1450[2 /*2*/], 5, 0, 1148846080);
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
							}
						}
						break;
					
					case 54:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
								{
									entity::set_entity_only_damaged_by_player(Local_1071[2 /*14*/], true);
									Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 9000;
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
								{
									if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
									{
										entity::set_entity_only_damaged_by_player(Local_1071[2 /*14*/], false);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 64:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								streaming::request_model(-1926582578);
								Local_325[iParam0 /*10*/].f_6 = 1;
								break;
							
							case 1:
								if (streaming::has_model_loaded(-1926582578))
								{
									entity::create_model_hide(-1089.8f, -1637.8f, 7.3f, 1f, joaat("prop_ld_balcfnc_02a"), 1);
									iVar52 = object::create_object_no_offset(-1926582578, -1089.83f, -1637.81f, 7.35f, 1, true, false);
									entity::set_entity_rotation(iVar52, 0f, 0f, 32.65f, 2, 1);
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
					
					case 52:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								weapon::set_current_ped_weapon(Local_1071[2 /*14*/], weapon::get_best_ped_weapon(Local_1071[2 /*14*/], 0), false);
								iLocal_1910 = ai::add_cover_point(Vector(3.429f, -1671.302f, -1076.674f) + Vector(0.03f, -0.29f, -0.1f), 31f, 0, 0, 1, 0);
								ped::set_ped_sphere_defensive_area(Local_1071[2 /*14*/], -1076.667f, -1671.331f, 3.4299f, 2f, 0, 0);
								func_122();
								ai::task_seek_cover_to_cover_point(0, iLocal_1910, -1087.844f, -1645.891f, 3.3987f, 30000, 1);
								ai::task_combat_hated_targets_around_ped(0, 50f, 0);
								func_121(Local_1071[2 /*14*/], 0);
								Local_325[iParam0 /*10*/].f_3 = 1;
								break;
						}
						break;
					
					case 53:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
								{
									ai::remove_cover_point(iLocal_1910);
									iLocal_1910 = ai::add_cover_point(-1081.219f, -1667.344f, 3.8438f, 16f, 0, 2, 3, 0);
									ped::set_ped_sphere_defensive_area(Local_1071[2 /*14*/], -1082.511f, -1666.637f, 3.483845f, 2.437f, 0, 0);
									ped::set_ped_combat_attributes(Local_1071[2 /*14*/], 29, true);
									ai::task_seek_cover_to_cover_point(Local_1071[2 /*14*/], iLocal_1910, -1085.314f, -1653.031f, 4.7843f, -1, 1);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (func_123(Local_1071[2 /*14*/], -1083.49f, -1667.09f, 3.71f, 1) < 2.8f)
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
					
					case 55:
						if (func_284(110))
						{
							if (func_248(7, 53))
							{
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
								{
									switch (Local_325[iParam0 /*10*/].f_6)
									{
										case 0:
											ai::remove_cover_point(iLocal_1910);
											iLocal_1910 = ai::add_cover_point(-1085.27f, -1655.59f, 3.4f, 16f, 1, 2, 4, 0);
											ped::set_ped_sphere_defensive_area(Local_1071[2 /*14*/], -1084.75f, -1656.766f, 3.398659f, 6f, 0, 0);
											ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], true);
											func_122();
											ai::task_seek_cover_to_cover_point(0, iLocal_1910, -1085.27f, -1655.59f, 3.4f, -1, 0);
											ai::task_stay_in_cover(0);
											func_121(Local_1071[2 /*14*/], 0);
											Local_325[iParam0 /*10*/].f_6++;
											break;
										
										case 1:
											if (func_123(Local_1071[2 /*14*/], -1084.75f, -1656.766f, 3.398659f, 1) < 3f)
											{
												if (!ped::is_ped_injured(Local_1071[13 /*14*/]))
												{
													if (ai::does_scripted_cover_point_exist_at_coords(-1085.27f, -1655.59f, 3.4f))
													{
														Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 1000;
													}
												}
												Local_325[iParam0 /*10*/].f_6++;
											}
											break;
										
										case 2:
											if (ai::does_scripted_cover_point_exist_at_coords(-1085.27f, -1655.59f, 3.4f))
											{
												entity::is_entity_dead(Local_1071[13 /*14*/], 0);
												if (((entity::does_entity_exist(Local_1071[13 /*14*/]) && entity::has_entity_been_damaged_by_any_ped(Local_1071[13 /*14*/])) || func_285(109)) || func_285(101))
												{
													ai::remove_cover_point(iLocal_1910);
													ai::clear_ped_tasks(Local_1071[2 /*14*/]);
													func_122();
													ai::task_go_to_coord_while_aiming_at_coord(0, -1084.219f, -1657.146f, 3.3987f, -1088.602f, -1655.998f, 6.9797f, 1f, false, 0.5f, 4f, true, 0, 0, -957453492);
													ai::task_set_blocking_of_non_temporary_events(0, 0);
													ai::task_combat_hated_targets_around_ped(0, 100f, 0);
													func_121(Local_1071[2 /*14*/], 0);
													func_417(12, 58, 1, 0);
													Local_325[iParam0 /*10*/].f_3 = 1;
												}
											}
											else
											{
												ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], false);
												ai::clear_ped_tasks(Local_1071[2 /*14*/]);
												func_122();
												ai::task_go_to_coord_while_aiming_at_coord(0, -1084.219f, -1657.146f, 3.3987f, -1088.602f, -1655.998f, 6.9797f, 1f, false, 0.5f, 4f, true, 0, 0, -957453492);
												ai::task_set_blocking_of_non_temporary_events(0, 0);
												ai::task_combat_hated_targets_around_ped(0, 100f, 0);
												func_121(Local_1071[2 /*14*/], 0);
												func_417(12, 58, 1, 0);
												Local_325[iParam0 /*10*/].f_3 = 1;
											}
											break;
										}
									}
							}
						}
						else
						{
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 56:
						ai::clear_ped_tasks(Local_1071[2 /*14*/]);
						ped::set_ped_sphere_defensive_area(Local_1071[2 /*14*/], -1085.27f, -1655.59f, 3.4f, 3f, 0, 0);
						ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], false);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 57:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (func_123(Local_1071[2 /*14*/], -1089.2f, -1655.05f, 3.42f, 0) < 6.375f)
								{
									func_417(3, 52, 1, 0);
									func_417(7, 53, 1, 0);
									func_417(10, 55, 1, 0);
									func_417(12, 58, 1, 0);
									func_417(13, 56, 1, 0);
									ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], true);
									ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_in_cover", "lamar_explosion_react", 8f, -1f, -1, 131080, 0f, 0, 0, 0);
									unk1::_0x293220DA1B46CEBC(3f, 4f, 4);
									Local_325[iParam0 /*10*/].f_6++;
								}
								else
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
							
							case 1:
								if (ai::get_script_task_status(Local_1071[2 /*14*/], -2017877118) == 7 || (ai::get_script_task_status(Local_1071[2 /*14*/], -2017877118) == 1 && entity::get_entity_anim_current_time(Local_1071[2 /*14*/], "missarmenian2lamar_in_cover", "lamar_explosion_react") > 0.78f))
								{
									ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], false);
									ai::task_combat_hated_targets_around_ped(Local_1071[2 /*14*/], 100f, 0);
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
					
					case 58:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									func_122();
									ai::task_play_anim(0, "missarmenian2lamar_in_cover", "lamar_cover_intro", 4f, -4f, -1, 0, 0f, 0, 0, 0);
									ai::task_play_anim(0, "missarmenian2lamar_in_cover", "lamar_cover_idle_a", 4f, -4f, -1, 0, 0f, 0, 0, 0);
									ai::task_play_anim(0, "missarmenian2lamar_in_cover", "lamar_cover_loop", 4f, -4f, -1, 1, 0f, 0, 0, 0);
									func_121(Local_1071[2 /*14*/], 0);
									Local_325[iParam0 /*10*/].f_7 = (gameplay::get_game_timer() + gameplay::get_random_int_in_range(800, 2800));
									Local_325[iParam0 /*10*/].f_8 = (gameplay::get_game_timer() + gameplay::get_random_int_in_range(3800, 6800));
									unk1::_0x293220DA1B46CEBC(3f, 1f, 4);
									ped::set_combat_float(Local_1071[2 /*14*/], 5, 1f);
									Local_325[iParam0 /*10*/].f_6++;
									break;
								
								case 1:
									if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
									{
										if (func_248(14, 59))
										{
											Local_325[iParam0 /*10*/].f_3 = 1;
										}
										else if (func_284(102))
										{
											if (!func_410(14, 59))
											{
												if (!ped::is_ped_in_cover(Local_1071[2 /*14*/], 0) || (ped::is_ped_in_cover(Local_1071[2 /*14*/], 0) && func_123(Local_1071[2 /*14*/], -1085.27f, -1655.59f, 3.4f, 1) > 1f))
												{
													if (ai::does_scripted_cover_point_exist_at_coords(-1085.27f, -1655.59f, 3.4f))
													{
														ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], false);
														ai::task_seek_cover_to_cover_point(Local_1071[2 /*14*/], iLocal_1910, -1085.27f, -1655.59f, 3.4f, -1, 0);
													}
												}
											}
											Local_325[iParam0 /*10*/].f_3 = 1;
										}
									}
									if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_8)
									{
										if (!func_410(14, 59) && !func_248(14, 59))
										{
											func_122();
											if (gameplay::get_random_int_in_range(0, 2) == 0)
											{
												ai::task_play_anim(0, "missarmenian2lamar_in_cover", "lamar_cover_idle_a", 4f, -4f, -1, 0, 0f, 0, 0, 0);
											}
											else
											{
												ai::task_play_anim(0, "missarmenian2lamar_in_cover", "lamar_cover_idle_b", 4f, -4f, -1, 0, 0f, 0, 0, 0);
											}
											ai::task_play_anim(0, "missarmenian2lamar_in_cover", "lamar_cover_loop", 4f, -4f, -1, 1, 0f, 0, 0, 0);
											func_121(Local_1071[2 /*14*/], 0);
											Local_325[iParam0 /*10*/].f_8 = (gameplay::get_game_timer() + gameplay::get_random_int_in_range(3800, 6800));
										}
										else
										{
											Local_325[iParam0 /*10*/].f_3 = 1;
										}
									}
									break;
								}
						}
						break;
					
					case 59:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (!func_410(35, 57))
							{
								func_417(3, 52, 1, 0);
								func_417(7, 53, 1, 0);
								func_417(10, 55, 1, 0);
								func_417(12, 58, 1, 0);
								func_417(13, 56, 1, 0);
								ai::remove_cover_point(iLocal_1910);
								iLocal_1910 = ai::add_cover_point(-1086.16f, -1651.64f, 3.4f, 40f, 0, 2, 1, 0);
								ped::set_combat_float(Local_1071[2 /*14*/], 3, 0.5f);
								ped::set_combat_float(Local_1071[2 /*14*/], 4, 1000f);
								ped::set_combat_float(Local_1071[2 /*14*/], 0, 0f);
								ped::set_ped_sphere_defensive_area(Local_1071[2 /*14*/], -1086.11f, -1651.8f, 3.4f, 3f, 0, 0);
								func_122();
								if (entity::is_entity_at_coord(Local_1071[2 /*14*/], -1085.515f, -1656.071f, 4.39866f, 0.75f, 0.8125f, 1f, false, true, 0))
								{
									ai::task_set_blocking_of_non_temporary_events(0, 1);
									ai::task_go_to_coord_while_aiming_at_coord(0, -1084.219f, -1657.146f, 3.3987f, -1087.149f, -1646.533f, 4.662f, 1f, false, 0.5f, 4f, true, 0, 0, -957453492);
								}
								ai::task_set_blocking_of_non_temporary_events(0, 0);
								ai::task_combat_hated_targets_around_ped(0, 50f, 0);
								func_121(Local_1071[2 /*14*/], 0);
								Local_325[iParam0 /*10*/].f_3 = 1;
							}
						}
						break;
					
					case 63:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (object::_does_door_exist(-967780114))
								{
									object::_set_door_ajar_angle(-967780114, 1f, 0, 1);
									object::_set_door_acceleration_limit(-967780114, 4, 0, 1);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (object::_does_door_exist(-967780114))
								{
									if (object::_0x65499865FCA6E5EC(-967780114) > 0.8f)
									{
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 67:
						func_261(9, -1075.848f, -1663.647f, 3.3987f, 175.1524f, joaat("weapon_pistol"), 0, 0, -1);
						ped::set_ped_sphere_defensive_area(Local_1071[9 /*14*/], -1073.721f, -1657.576f, 3.401901f, 3f, 0, 0);
						ped::set_ped_combat_attributes(Local_1071[9 /*14*/], 11, true);
						func_122();
						ai::task_set_blocking_of_non_temporary_events(0, 1);
						ai::task_shoot_at_coord(0, -1075.513f, -1679.814f, 4.9952f, 1500, -687903391);
						ai::task_set_blocking_of_non_temporary_events(0, 0);
						ai::task_combat_hated_targets_around_ped(0, 50f, 0);
						func_121(Local_1071[9 /*14*/], 0);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 68:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								func_261(10, -1080.693f, -1650.787f, 3.4234f, 196f, joaat("weapon_pistol"), 0, 0, -1);
								ped::set_combat_float(Local_1071[10 /*14*/], 3, 0.5f);
								ped::set_combat_float(Local_1071[10 /*14*/], 4, 1000f);
								ped::set_combat_float(Local_1071[10 /*14*/], 0, 0f);
								ped::set_ped_config_flag(Local_1071[10 /*14*/], 188, true);
								ped::set_ped_combat_attributes(Local_1071[10 /*14*/], 12, false);
								ped::set_ped_combat_attributes(Local_1071[10 /*14*/], 8, false);
								ped::set_ped_pinned_down(Local_1071[10 /*14*/], 0, -1);
								ped::set_ped_combat_attributes(Local_1071[10 /*14*/], 34, false);
								ped::set_ped_combat_attributes(Local_1071[10 /*14*/], 50, true);
								ai::task_combat_hated_targets_around_ped(Local_1071[10 /*14*/], 50f, 0);
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								if (entity::does_entity_exist(Local_1071[12 /*14*/]) && ped::is_ped_injured(Local_1071[12 /*14*/]))
								{
									if (!ped::is_ped_injured(Local_1071[10 /*14*/]))
									{
										ped::set_ped_sphere_defensive_area(Local_1071[10 /*14*/], -1084.321f, -1648.257f, 3.3987f, 2f, 0, 0);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 69:
						func_261(11, -1092.917f, -1660.434f, 3.5354f, 296f, joaat("weapon_pistol"), 0, 0, -1);
						ped::set_ped_sphere_defensive_area(Local_1071[11 /*14*/], -1081.759f, -1657.341f, 3.398672f, 2.25f, 0, 0);
						ped::set_ped_combat_attributes(Local_1071[11 /*14*/], 50, true);
						ped::set_ped_combat_movement(Local_1071[11 /*14*/], 1);
						ped::set_ped_combat_attributes(Local_1071[11 /*14*/], 51, true);
						ai::task_combat_hated_targets_around_ped(Local_1071[11 /*14*/], 50f, 0);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 70:
						vVar56 = { Vector(4.47f, -1649.87f, -1088.97f) - entity::get_entity_coords(player::player_ped_id(), 1) };
						vVar56 = { func_118(vVar56) };
						vVar56 = { vVar56 * Vector(4.48f, 4.48f, 4.48f) };
						vVar53 = { Vector(3.4f, -1649.87f, -1088.97f) + Vector(0f, vVar56.y, vVar56.x) };
						iLocal_1916 = ai::add_cover_point(vVar53, -148f, 2, 0, 0, 0);
						func_261(12, vVar53, 222f, joaat("weapon_pistol"), 0, 0, -1);
						ped::set_ped_combat_attributes(Local_1071[12 /*14*/], 29, true);
						ped::set_ped_sphere_defensive_area(Local_1071[12 /*14*/], -1085.302f, -1653.68f, 3.469686f, 2.125f, 0, 0);
						ped::set_ped_combat_attributes(Local_1071[12 /*14*/], 50, true);
						ped::set_ped_combat_movement(Local_1071[12 /*14*/], 1);
						ped::set_ped_combat_attributes(Local_1071[12 /*14*/], 51, true);
						func_122();
						ai::task_put_ped_directly_into_cover(0, -1089.061f, -1648.209f, 3.3985f, 500, false, -1f, true, 0, iLocal_1916, 0);
						ai::task_combat_hated_targets_around_ped(0, 50f, 0);
						func_121(Local_1071[12 /*14*/], 0);
						ped::_0x2208438012482A1A(Local_1071[12 /*14*/], 1, 0);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 71:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
								{
									if (object::_0x52AF537A0C5B8AAD(uLocal_1948))
									{
										if (object::_0x899BA936634A322E(uLocal_1948) == 7)
										{
											func_261(13, -1104.981f, -1665.011f, 6.3488f, 307f, joaat("weapon_microsmg"), 0, 0, -1);
										}
										else
										{
											func_261(13, -1098.214f, -1660.421f, 6.2581f, 307f, joaat("weapon_microsmg"), 0, 0, -1);
										}
									}
									else
									{
										func_261(13, -1098.214f, -1660.421f, 6.2581f, 307f, joaat("weapon_microsmg"), 0, 0, -1);
									}
									ped::set_ped_accuracy(Local_1071[13 /*14*/], 0);
									ped::set_ped_sphere_defensive_area(Local_1071[13 /*14*/], -1089.65f, -1655.94f, 6.36f, 1.875f, 0, 0);
									if (func_285(101))
									{
										func_122();
										ai::task_set_blocking_of_non_temporary_events(0, 1);
										ai::task_follow_nav_mesh_to_coord(0, -1089.705f, -1656.506f, 6.3482f, 2f, 20000, 1048576000, 0, 1193033728);
										ai::task_set_blocking_of_non_temporary_events(0, 0);
										ai::task_shoot_at_entity(0, Local_1071[2 /*14*/], -1, -957453492);
										func_121(Local_1071[13 /*14*/], 0);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
									else
									{
										ped::set_ped_accuracy(Local_1071[13 /*14*/], 0);
										func_122();
										ai::task_set_blocking_of_non_temporary_events(0, 1);
										ai::task_go_to_coord_while_aiming_at_entity(0, -1089.705f, -1656.506f, 6.3482f, Local_1071[2 /*14*/], 2f, true, 0.25f, 1082130432, true, 0, 0, -957453492, 20000);
										ai::task_shoot_at_entity(0, Local_1071[2 /*14*/], -1, -957453492);
										func_121(Local_1071[13 /*14*/], 0);
										ped::set_ped_min_move_blend_ratio(Local_1071[13 /*14*/], 2f);
									}
									ped::force_ped_motion_state(Local_1071[13 /*14*/], -530524, false, 0, 0);
									unk1::_0x293220DA1B46CEBC(1f, 3f, 3);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (ped::is_ped_injured(Local_1071[13 /*14*/]))
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								else if (func_123(player::player_ped_id(), -1089.865f, -1656.486f, 6.202436f, 1) < 4.625f || entity::has_entity_been_damaged_by_any_ped(Local_1071[13 /*14*/]))
								{
									ped::set_blocking_of_non_temporary_events(Local_1071[13 /*14*/], false);
									ai::task_combat_hated_targets_around_ped(Local_1071[13 /*14*/], 70f, 0);
									ped::set_ped_accuracy(Local_1071[13 /*14*/], 30);
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
							
							case 2:
								if (ped::is_ped_injured(Local_1071[13 /*14*/]))
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								else if (func_123(player::player_ped_id(), -1089.865f, -1656.486f, 6.202436f, 1) < 4.625f || entity::has_entity_been_damaged_by_any_ped(Local_1071[13 /*14*/]))
								{
									ped::set_blocking_of_non_temporary_events(Local_1071[13 /*14*/], false);
									ai::task_combat_hated_targets_around_ped(Local_1071[13 /*14*/], 70f, 0);
									ped::set_ped_accuracy(Local_1071[13 /*14*/], 30);
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
					
					case 72:
						if (!ped::is_ped_injured(Local_1071[13 /*14*/]))
						{
							ped::set_ped_sphere_defensive_area(Local_1071[13 /*14*/], entity::get_entity_coords(Local_1071[13 /*14*/], 1), 5.25f, 0, 0);
							ai::task_combat_hated_targets_around_ped(Local_1071[13 /*14*/], 50f, 0);
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 73:
						func_261(16, -1108.89f, -1637.478f, 3.6162f, 300f, joaat("weapon_pistol"), 0, 0, -1);
						ped::set_ped_sphere_defensive_area(Local_1071[16 /*14*/], -1098.419f, -1629.159f, 3.3987f, 2.5f, 0, 0);
						ped::set_ped_combat_movement(Local_1071[16 /*14*/], 1);
						ped::set_ped_combat_attributes(Local_1071[16 /*14*/], 51, true);
						ped::set_ped_combat_attributes(Local_1071[16 /*14*/], 50, true);
						ai::task_combat_hated_targets_around_ped(Local_1071[16 /*14*/], 100f, 0);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 74:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								func_261(18, -1090.482f, -1635.052f, 6.7641f, 167f, joaat("weapon_pistol"), 0, 0, -1);
								ped::set_combat_float(Local_1071[18 /*14*/], 4, 10f);
								ped::set_ped_target_loss_response(Local_1071[18 /*14*/], 1);
								ped::set_ped_config_flag(Local_1071[18 /*14*/], 188, true);
								entity::set_entity_only_damaged_by_player(Local_1071[18 /*14*/], false);
								ped::set_ped_sphere_defensive_area(Local_1071[18 /*14*/], -1090.146f, -1636.204f, 6.716715f, 2.375f, 0, 0);
								entity::set_entity_health(Local_1071[18 /*14*/], 350);
								ped::set_ped_max_health(Local_1071[18 /*14*/], 350);
								ped::force_ped_motion_state(Local_1071[18 /*14*/], -530524, true, 0, 0);
								ped::register_hated_targets_around_ped(Local_1071[18 /*14*/], 150f);
								func_122();
								ai::task_set_blocking_of_non_temporary_events(0, 1);
								ai::task_follow_nav_mesh_to_coord(0, -1090.276f, -1637.367f, 6.7641f, 2f, 20000, 0.4f, 0, 1193033728);
								ai::task_set_blocking_of_non_temporary_events(0, 0);
								ai::task_combat_hated_targets_around_ped(0, 150f, 0);
								func_121(Local_1071[18 /*14*/], 0);
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								if (!ped::is_ped_injured(Local_1071[18 /*14*/]))
								{
									if (ped::is_ped_ragdoll(Local_1071[18 /*14*/]))
									{
										entity::set_entity_health(Local_1071[18 /*14*/], 0);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
									else if (ai::get_script_task_status(Local_1071[18 /*14*/], 1435919172) != 1)
									{
										ai::task_combat_hated_targets_around_ped(Local_1071[18 /*14*/], 150f, 0);
									}
								}
								else
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								if (Local_325[iParam0 /*10*/].f_7 == 0)
								{
									if (func_285(97))
									{
										if (!ped::is_ped_injured(Local_1071[18 /*14*/]))
										{
											ped::set_ped_allowed_to_duck(Local_1071[18 /*14*/], 0);
											ped::set_ped_combat_attributes(Local_1071[18 /*14*/], 12, false);
											ped::set_ped_combat_attributes(Local_1071[18 /*14*/], 0, false);
										}
										Local_325[iParam0 /*10*/].f_7 = 1;
									}
								}
								else if (func_284(97))
								{
									if (!ped::is_ped_injured(Local_1071[18 /*14*/]))
									{
										ped::set_ped_allowed_to_duck(Local_1071[18 /*14*/], 1);
										ped::set_ped_combat_attributes(Local_1071[18 /*14*/], 12, true);
										ped::set_ped_combat_attributes(Local_1071[18 /*14*/], 0, true);
									}
									Local_325[iParam0 /*10*/].f_7 = 0;
								}
								break;
						}
						break;
					
					case 75:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								func_261(19, -1098.691f, -1626.716f, 9.9315f, 209.2257f, joaat("weapon_pistol"), 0, 0, -1);
								weapon::set_current_ped_vehicle_weapon(Local_1071[19 /*14*/], weapon::get_best_ped_weapon(Local_1071[19 /*14*/], 0));
								ped::set_ped_angled_defensive_area(Local_1071[19 /*14*/], -1095.918f, -1630.074f, 9.936975f, -1097.003f, -1630.831f, 10.91186f, 1f, 0, 0);
								ped::force_ped_motion_state(Local_1071[19 /*14*/], -530524, true, 0, 0);
								ped::set_ped_config_flag(Local_1071[19 /*14*/], 188, true);
								entity::set_entity_only_damaged_by_player(Local_1071[19 /*14*/], true);
								ped::set_ped_allowed_to_duck(Local_1071[19 /*14*/], 0);
								ped::set_ped_combat_attributes(Local_1071[19 /*14*/], 12, false);
								ped::set_ped_combat_attributes(Local_1071[19 /*14*/], 0, false);
								ped::set_ped_combat_attributes(Local_1071[19 /*14*/], 29, false);
								ped::_set_ped_ragdoll_flag(Local_1071[19 /*14*/], 1);
								ai::task_combat_hated_targets_around_ped(Local_1071[19 /*14*/], 150f, 0);
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								if (!ped::is_ped_injured(Local_1071[19 /*14*/]))
								{
									if (entity::is_entity_in_angled_area(Local_1071[19 /*14*/], -1095.918f, -1630.074f, 9.936975f, -1097.003f, -1630.831f, 10.91186f, 1f, 0, true, 0))
									{
										if (ped::get_ped_combat_movement(Local_1071[19 /*14*/]) != 0)
										{
											ped::set_ped_combat_movement(Local_1071[19 /*14*/], 0);
										}
									}
									if (ped::is_ped_ragdoll(Local_1071[19 /*14*/]))
									{
										entity::set_entity_health(Local_1071[19 /*14*/], 0);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								else
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
					
					case 76:
						if (entity::does_entity_exist(Local_1071[21 /*14*/]))
						{
							if (ped::is_ped_injured(Local_1071[21 /*14*/]))
							{
								ai::remove_waypoint_recording("arm2_15");
								Local_325[iParam0 /*10*/].f_3 = 1;
							}
						}
						Local_325[iParam0 /*10*/].f_9 = (Local_325[iParam0 /*10*/].f_9 + (-2f * system::timestep()));
						if (Local_325[iParam0 /*10*/].f_9 <= -1f)
						{
							Local_325[iParam0 /*10*/].f_9 = -1f;
						}
						func_409(joaat("prop_map_door_01"), -1104.657f, -1638.481f, 4.6754f, 1, Local_325[iParam0 /*10*/].f_9);
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 99:
								break;
							
							case 0:
								ai::request_waypoint_recording("arm2_15");
								Local_325[iParam0 /*10*/].f_6++;
								Local_325[iParam0 /*10*/].f_4 = 1;
								break;
							
							case 1:
								if (ai::get_is_waypoint_recording_loaded("arm2_15"))
								{
									func_261(21, -1106.876f, -1638.7f, 3.6407f, 288.3654f, joaat("weapon_pistol"), 0, 0, -1);
									ped::set_ped_sphere_defensive_area(Local_1071[21 /*14*/], -1100.477f, -1641.042f, 3.616217f, 2.75f, 0, 0);
									ped::set_ped_combat_attributes(Local_1071[21 /*14*/], 29, false);
									ped::set_ped_combat_movement(Local_1071[21 /*14*/], 1);
									ped::set_ped_combat_attributes(Local_1071[21 /*14*/], 51, true);
									ped::set_ped_combat_attributes(Local_1071[21 /*14*/], 50, true);
									ai::task_combat_hated_targets_around_ped(Local_1071[21 /*14*/], 100f, 0);
									audio::play_sound_from_coord(-1, "ARM_2_REPO_DOOR_KICK_OPEN", -1104.359f, -1637.575f, 2.366156f, 0, 0, 0, 0);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 2:
								break;
							
							case 3:
								if (!ped::is_ped_injured(Local_1071[21 /*14*/]))
								{
									ped::set_ped_capsule(Local_1071[21 /*14*/], 1f);
									if (ai::is_waypoint_playback_going_on_for_ped(Local_1071[21 /*14*/]))
									{
										ai::waypoint_playback_start_aiming_at_ped(Local_1071[21 /*14*/], player::player_ped_id(), 0);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 4:
								if (!ped::is_ped_injured(Local_1071[21 /*14*/]))
								{
									ped::set_ped_capsule(Local_1071[21 /*14*/], 1f);
									if (entity::is_entity_in_angled_area(Local_1071[21 /*14*/], -1104.359f, -1637.575f, 2.366156f, -1105.299f, -1638.249f, 6.828245f, 1.5625f, 0, true, 0))
									{
										audio::play_sound_from_coord(-1, "ARM_2_REPO_DOOR_KICK_OPEN", -1104.359f, -1637.575f, 2.366156f, 0, 0, 0, 0);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 5:
								if (!ped::is_ped_injured(Local_1071[21 /*14*/]))
								{
									ped::set_ped_capsule(Local_1071[21 /*14*/], 1f);
									if (entity::is_entity_in_angled_area(Local_1071[21 /*14*/], -1103.139f, -1638.565f, 2.803717f, -1104.735f, -1636.18f, 4.803716f, 1.375f, 0, true, 0))
									{
										ped::set_blocking_of_non_temporary_events(Local_1071[21 /*14*/], false);
										ai::task_combat_hated_targets_around_ped(Local_1071[21 /*14*/], 100f, 0);
										func_134(96, 4);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 60:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							ped::set_ped_angled_defensive_area(Local_1071[2 /*14*/], -1100.694f, -1647.66f, 2.457902f, -1092.784f, -1647.704f, 5.39866f, 2.375f, 0, 0);
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 77:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
								{
									Local_1071[20 /*14*/] = ped::create_ped(26, iLocal_2219, -1084.383f, -1633.023f, 3.7424f, 81f, 1, true);
									ped::set_ped_can_be_targetted(Local_1071[20 /*14*/], false);
									vehicle::set_vehicle_doors_locked(Local_1450[6 /*2*/], 1);
									vehicle::set_vehicle_alarm(Local_1450[6 /*2*/], 0);
									ped::set_blocking_of_non_temporary_events(Local_1071[20 /*14*/], true);
									ai::task_enter_vehicle(Local_1071[20 /*14*/], Local_1450[6 /*2*/], 20000, -1, 2f, 262144, 0);
									entity::freeze_entity_position(Local_1450[6 /*2*/], false);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
								{
									if (!ped::is_ped_injured(Local_1071[20 /*14*/]))
									{
										if (ped::is_ped_sitting_in_vehicle(Local_1071[20 /*14*/], Local_1450[6 /*2*/]))
										{
											ai::task_play_anim(Local_1071[20 /*14*/], "missarmenian2", "In_Car_Nervous", 8f, -8f, -1, 1, 0f, 0, 0, 0);
											Local_325[iParam0 /*10*/].f_6++;
										}
										else if (ai::get_script_task_status(Local_1071[20 /*14*/], -1794415470) == 7)
										{
											ai::task_enter_vehicle(Local_1071[20 /*14*/], Local_1450[6 /*2*/], 20000, -1, 2f, 262144, 0);
										}
									}
								}
								break;
							
							case 2:
								if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
								{
									if (!ped::is_ped_injured(Local_1071[20 /*14*/]))
									{
										if (!ped::is_ped_sitting_in_vehicle(Local_1071[20 /*14*/], Local_1450[6 /*2*/]))
										{
											ai::task_smart_flee_ped(Local_1071[20 /*14*/], player::player_ped_id(), 70f, -1, 0, 0);
											ped::set_ped_keep_task(Local_1071[20 /*14*/], true);
											entity::set_ped_as_no_longer_needed(&(Local_1071[20 /*14*/]));
											Local_325[iParam0 /*10*/].f_3 = 1;
										}
									}
									else
									{
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 78:
						if (!ped::is_ped_injured(Local_1071[20 /*14*/]))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
									{
										if (ped::is_ped_sitting_in_vehicle(Local_1071[20 /*14*/], Local_1450[6 /*2*/]))
										{
											if (gameplay::absf((entity::get_entity_heading(Local_1450[6 /*2*/]) - 307.1f)) < 0.5f)
											{
												ped::set_ped_combat_attributes(Local_1071[20 /*14*/], 3, false);
												entity::set_entity_proofs(Local_1071[20 /*14*/], true, false, false, false, false, false, 0, false);
												ped::set_ped_relationship_group_hash(Local_1071[20 /*14*/], iLocal_1473);
												ped::set_ped_config_flag(Local_1071[20 /*14*/], 116, false);
												entity::freeze_entity_position(Local_1450[6 /*2*/], false);
												vehicle::start_playback_recorded_vehicle(Local_1450[6 /*2*/], 6, "ARM2", 1);
												audio::_0x2BE4BC731D039D5A(Local_1450[6 /*2*/], 0);
												ped::set_blocking_of_non_temporary_events(Local_1071[20 /*14*/], true);
												audio::start_audio_scene("ARM_2_GAS_TRAIL");
												audio::_0x153973AB99FE8980(Local_1450[6 /*2*/], "ARM_2_GAS_TRAIL_CAR_GROUP", 0f);
												unk1::_0x293220DA1B46CEBC(2f, 7f, 4);
												Local_325[iParam0 /*10*/].f_6++;
											}
											else
											{
												ai::task_smart_flee_ped(Local_1071[20 /*14*/], player::player_ped_id(), 100f, 100000, 0, 0);
												ped::set_ped_keep_task(Local_1071[20 /*14*/], true);
												entity::set_ped_as_no_longer_needed(&(Local_1071[20 /*14*/]));
												Local_325[iParam0 /*10*/].f_3 = 1;
											}
										}
										else
										{
											ai::task_smart_flee_ped(Local_1071[20 /*14*/], player::player_ped_id(), 100f, 100000, 0, 0);
											ped::set_ped_keep_task(Local_1071[20 /*14*/], true);
											entity::set_ped_as_no_longer_needed(&(Local_1071[20 /*14*/]));
											Local_325[iParam0 /*10*/].f_3 = 1;
										}
									}
									else
									{
										ai::task_smart_flee_ped(Local_1071[20 /*14*/], player::player_ped_id(), 100f, 100000, 0, 0);
										ped::set_ped_keep_task(Local_1071[20 /*14*/], true);
										entity::set_ped_as_no_longer_needed(&(Local_1071[20 /*14*/]));
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
									break;
								
								case 1:
									if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
									{
										if (!vehicle::is_playback_going_on_for_vehicle(Local_1450[6 /*2*/]))
										{
											entity::set_entity_invincible(Local_1071[20 /*14*/], false);
											entity::set_entity_health(Local_1071[20 /*14*/], 0);
											Local_325[iParam0 /*10*/].f_3 = 1;
										}
									}
									break;
								}
						}
						break;
					
					case 79:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer();
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
								{
									if (entity::get_entity_health(Local_1450[6 /*2*/]) < 300)
									{
										entity::set_entity_health(Local_1450[6 /*2*/], 300);
									}
									if (vehicle::get_vehicle_engine_health(Local_1450[6 /*2*/]) < 200f)
									{
										vehicle::set_vehicle_engine_health(Local_1450[6 /*2*/], 200f);
									}
									if (vehicle::get_vehicle_petrol_tank_health(Local_1450[6 /*2*/]) < 150f)
									{
										vehicle::set_vehicle_petrol_tank_health(Local_1450[6 /*2*/], 150f);
									}
									Local_325[iParam0 /*10*/].f_8 = (gameplay::get_game_timer() - Local_325[iParam0 /*10*/].f_7);
									iVar59 = 0;
									iVar59 = 0;
									while (iVar59 <= 8)
									{
										if (Local_325[iParam0 /*10*/].f_8 > vLocal_1920[iVar59 /*3*/])
										{
											if (vLocal_1920[iVar59 /*3*/].f_1 == 0)
											{
												vLocal_1920[iVar59 /*3*/].f_1 = 1;
												switch (vLocal_1920[iVar59 /*3*/].f_2)
												{
													case 0:
														vehicle::_detach_vehicle_windscreen(Local_1450[6 /*2*/]);
														break;
													
													case 1:
														vehicle::smash_vehicle_window(Local_1450[6 /*2*/], 3);
														break;
													
													case 2:
														vehicle::set_vehicle_tyre_burst(Local_1450[6 /*2*/], 1, 0, 1148846080);
														break;
													
													case 3:
														vehicle::_0x192547247864DFDD(Local_1450[6 /*2*/], true);
														vehicle::set_vehicle_engine_health(Local_1450[6 /*2*/], 200f);
														vehicle::set_vehicle_petrol_tank_health(Local_1450[6 /*2*/], 150f);
														vehicle::set_vehicle_doors_locked(Local_1450[6 /*2*/], 2);
														break;
													
													case 4:
														vehicle::smash_vehicle_window(Local_1450[6 /*2*/], 1);
														break;
													
													case 5:
														vehicle::set_vehicle_door_latched(Local_1450[6 /*2*/], 5, 0, 0, 1);
														vehicle::set_vehicle_door_control(Local_1450[6 /*2*/], 5, 3, 0.25f);
														break;
													
													case 7:
														vehicle::set_vehicle_door_broken(Local_1450[6 /*2*/], 2, 0);
														Local_325[iParam0 /*10*/].f_3 = 1;
														break;
													
													case 6:
														vehicle::set_vehicle_door_broken(Local_1450[6 /*2*/], 3, 0);
														break;
													
													case 8:
														vehicle::set_vehicle_damage(Local_1450[6 /*2*/], 0f, -2f, 0f, 5f, 0.3f, 1);
														if (!ped::is_ped_injured(Local_1071[20 /*14*/]))
														{
															ped::set_ped_plays_head_on_horn_anim_when_dies_in_vehicle(Local_1071[20 /*14*/], 1);
															entity::set_entity_health(Local_1071[20 /*14*/], 0);
														}
														break;
													}
												}
										}
										iVar59++;
									}
								}
								break;
						}
						break;
					
					case 84:
						func_261(22, -1117.177f, -1625.52f, 3.4419f, 289.343f, joaat("weapon_pistol"), 0, 0, -1);
						ped::set_ped_combat_attributes(Local_1071[22 /*14*/], 29, true);
						ped::set_ped_combat_attributes(Local_1071[22 /*14*/], 51, true);
						ped::set_ped_sphere_defensive_area(Local_1071[22 /*14*/], -1105.623f, -1627.569f, 3.4014f, 3f, 0, 0);
						ped::register_hated_targets_around_ped(Local_1071[22 /*14*/], 200f);
						ped::set_ped_target_loss_response(Local_1071[22 /*14*/], 1);
						ai::task_combat_hated_targets_around_ped(Local_1071[22 /*14*/], 100f, 0);
						func_261(24, -1100.041f, -1619.929f, 3.7226f, 115.4267f, joaat("weapon_pistol"), 0, 0, -1);
						ped::set_ped_combat_attributes(Local_1071[24 /*14*/], 29, true);
						ped::set_ped_combat_attributes(Local_1071[24 /*14*/], 51, true);
						ped::set_ped_sphere_defensive_area(Local_1071[24 /*14*/], -1107.335f, -1630.705f, 3.5958f, 3f, 0, 0);
						ped::register_hated_targets_around_ped(Local_1071[24 /*14*/], 200f);
						ped::set_ped_target_loss_response(Local_1071[24 /*14*/], 1);
						ai::task_combat_hated_targets_around_ped(Local_1071[24 /*14*/], 100f, 0);
						func_543(7);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 85:
						func_414("ARM2_FIGHT_START", 1, "ARM2_CAR");
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 86:
						if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
						{
							entity::freeze_entity_position(Local_1450[6 /*2*/], false);
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 87:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								break;
							
							case 1:
								if (!ped::is_ped_injured(Local_1071[13 /*14*/]))
								{
									Local_325[iParam0 /*10*/].f_6++;
									Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 500;
								}
								else
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
							
							case 2:
								if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								else if (ped::is_ped_injured(Local_1071[13 /*14*/]))
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
					
					case 88:
						if (entity::does_entity_exist(Local_1071[8 /*14*/]))
						{
							if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
							{
								if (!weapon::has_ped_been_damaged_by_weapon(Local_1071[8 /*14*/], 0, 2))
								{
									func_408(19);
								}
							}
							else if (ped::get_ped_cause_of_death(Local_1071[8 /*14*/]) == 0)
							{
								func_408(19);
							}
						}
						unk1::_0x293220DA1B46CEBC(3f, 5f, 4);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 89:
						func_414("ARM2_GATE", 0, "ARM2_CHASE_START");
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 90:
						if (cam::is_gameplay_hint_active() && func_285(6))
						{
							if (Local_325[iParam0 /*10*/].f_7 == 0)
							{
								if (audio::start_audio_scene("ARM_2_FOCUS_ON_BIKE"))
								{
									Local_325[iParam0 /*10*/].f_7 = 1;
								}
							}
						}
						else if (Local_325[iParam0 /*10*/].f_7 == 1)
						{
							if (audio::is_audio_scene_active("ARM_2_FOCUS_ON_BIKE"))
							{
								audio::stop_audio_scene("ARM_2_FOCUS_ON_BIKE");
							}
							Local_325[iParam0 /*10*/].f_7 = 0;
						}
						break;
					
					case 91:
						if (object::_0x52AF537A0C5B8AAD(uLocal_1948))
						{
							if (object::_0x899BA936634A322E(uLocal_1948) == 10)
							{
								if (audio::is_audio_scene_active("ARM_2_RAYFIRE"))
								{
									audio::stop_audio_scene("ARM_2_RAYFIRE");
								}
								else
								{
									unk1::_0x81CBAE94390F9F89();
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
							}
						}
						break;
					
					case 80:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								func_407(&(Local_2069[0 /*7*/]), 0f, -1095.341f, -1643.916f, 3.4784f, -1.0505f, 2.4131f, 0f);
								func_407(&(Local_2069[1 /*7*/]), 1f, -1097.301f, -1637.029f, 3.463f, 0.0203f, 2.7398f, 0f);
								func_407(&(Local_2069[2 /*7*/]), 2f, -1104.442f, -1629.705f, 3.4128f, -4.9086f, 2.179f, 0f);
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								if (func_404(&iLocal_1066))
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								if (iLocal_1066)
								{
									func_408(10);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 2:
								if (func_404(&iLocal_1066))
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
					
					case 81:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 2200;
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
								{
									if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
									{
										if (audio::is_audio_scene_active("ARM_2_GAS_TRAIL"))
										{
											audio::stop_audio_scene("ARM_2_GAS_TRAIL");
											audio::_0x18EB48CFC41F2EA0(Local_1450[6 /*2*/], 0f);
										}
										vehicle::start_playback_recorded_vehicle_with_flags(Local_1450[6 /*2*/], 11, "ARM2", 16, 0, 786603);
										network::network_explode_vehicle(Local_1450[6 /*2*/], 1, 0, -1);
										unk1::_0x293220DA1B46CEBC(3f, 4f, 4);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 2:
								func_414("ARM2_CAR", 1, "ARM2_CHASE_START");
								Local_325[iParam0 /*10*/].f_3 = 1;
								break;
						}
						break;
					
					case 61:
						func_122();
						ai::task_set_blocking_of_non_temporary_events(0, 1);
						ai::task_shoot_at_entity(0, Local_1450[6 /*2*/], 4000, -957453492);
						ai::task_set_blocking_of_non_temporary_events(0, 0);
						ai::task_combat_hated_targets_around_ped(0, 60f, 0);
						func_121(Local_1071[2 /*14*/], 0);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 62:
						func_383(iParam0);
						break;
					
					case 82:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								iLocal_1949 = object::create_object_no_offset(joaat("prop_ld_test_01"), -1087.825f, -1655.361f, 7.1638f, 1, true, false);
								entity::set_entity_visible(iLocal_1949, false, 0);
								entity::freeze_entity_position(iLocal_1949, true);
								entity::set_entity_proofs(iLocal_1949, true, true, true, true, true, false, 0, false);
								entity::set_entity_invincible(iLocal_1949, true);
								entity::set_entity_only_damaged_by_player(iLocal_1949, true);
								entity::set_entity_collision(iLocal_1949, false, 0);
								object::set_object_targettable(iLocal_1949, 1);
								entity::set_entity_is_target_priority(iLocal_1949, 1, 30f);
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								if (func_285(110))
								{
									if (entity::does_entity_exist(iLocal_1949))
									{
										object::delete_object(&iLocal_1949);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 83:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								iLocal_1950 = object::create_object_no_offset(joaat("prop_ld_test_01"), -1097.36f, -1636.76f, 3.4f, 1, true, false);
								entity::set_entity_visible(iLocal_1950, false, 0);
								entity::freeze_entity_position(iLocal_1950, true);
								entity::set_entity_proofs(iLocal_1950, true, true, true, true, true, false, 0, false);
								entity::set_entity_invincible(iLocal_1950, true);
								entity::set_entity_only_damaged_by_player(iLocal_1950, true);
								entity::set_entity_collision(iLocal_1950, false, 0);
								object::set_object_targettable(iLocal_1950, 1);
								entity::set_entity_is_target_priority(iLocal_1950, 1, 30f);
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 1:
								if (func_285(121) || iLocal_1066)
								{
									if (entity::does_entity_exist(iLocal_1950))
									{
										object::delete_object(&iLocal_1950);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								break;
						}
						break;
					
					case 92:
						if (func_123(player::player_ped_id(), -1106.28f, -1624.36f, 3.4f, 1) > 70f)
						{
							iVar60 = 0;
							while (iVar60 < Local_1071)
							{
								if ((iVar60 != 2 && iVar60 != 0) && iVar60 != 8)
								{
									if (entity::does_entity_exist(Local_1071[iVar60 /*14*/]))
									{
										if (entity::does_entity_belong_to_this_script(Local_1071[iVar60 /*14*/], 0))
										{
											entity::set_ped_as_no_longer_needed(&(Local_1071[iVar60 /*14*/]));
										}
									}
								}
								iVar60++;
							}
							iVar60 = 0;
							while (iVar60 < Local_1450)
							{
								if (iVar60 != 0 && iVar60 != 4)
								{
									if (entity::does_entity_exist(Local_1450[iVar60 /*2*/]))
									{
										if (entity::is_entity_a_mission_entity(Local_1450[iVar60 /*2*/]))
										{
											if (entity::does_entity_belong_to_this_script(Local_1450[iVar60 /*2*/], 0))
											{
												entity::set_vehicle_as_no_longer_needed(&(Local_1450[iVar60 /*2*/]));
											}
										}
									}
								}
								iVar60++;
							}
							streaming::set_model_as_no_longer_needed(-1426008804);
							streaming::set_model_as_no_longer_needed(joaat("g_m_y_mexgoon_01"));
							streaming::set_model_as_no_longer_needed(joaat("g_m_y_mexgoon_03"));
							streaming::set_model_as_no_longer_needed(joaat("bison"));
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 93:
						if (!vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
						{
							Local_1450[7 /*2*/] = vehicle::create_vehicle(joaat("bison"), -1149.332f, -1593.024f, 3.2546f, 307.5245f, 1, true);
							entity::set_vehicle_as_no_longer_needed(&(Local_1450[7 /*2*/]));
						}
						else if (func_123(Local_1450[0 /*2*/], -1139.456f, -1579.801f, 3.365427f, 1) > 32.8f)
						{
							if (!entity::does_entity_belong_to_this_script(Local_1450[0 /*2*/], 1))
							{
								entity::set_entity_as_mission_entity(Local_1450[0 /*2*/], true, 0);
								vehicle::delete_vehicle(&(Local_1450[0 /*2*/]));
							}
							Local_1450[7 /*2*/] = vehicle::create_vehicle(joaat("bison"), -1149.332f, -1593.024f, 3.2546f, 307.5245f, 1, true);
						}
						gameplay::_set_unk_map_flag(2);
						weapon::hide_ped_weapon_for_scripted_cutscene(player::player_ped_id(), false);
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							weapon::hide_ped_weapon_for_scripted_cutscene(Local_1071[2 /*14*/], false);
						}
						ped::set_create_random_cops(true);
						if (!entity::does_entity_exist(Local_1450[4 /*2*/]))
						{
							while (!func_367(&(Local_1450[4 /*2*/]), 1, -1134.078f, -1582.068f, 3.2928f, 300f, 1, 2))
							{
								func_19(2, 0);
							}
						}
						if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
						{
							entity::set_entity_load_collision_flag(Local_1450[4 /*2*/], true);
						}
						pathfind::set_roads_in_angled_area(-966.1594f, -1187.304f, -0.770555f, -1094.655f, -964.7231f, 15.13055f, 10.3125f, 0, false, 1);
						if (ui::does_blip_exist(Local_1071[2 /*14*/].f_1))
						{
							ui::remove_blip(&(Local_1071[2 /*14*/].f_1));
						}
						if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
						{
							Local_1450[4 /*2*/].f_1 = func_366(Local_1450[4 /*2*/], 0, 0);
						}
						if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
						{
							audio::start_audio_scene("ARM_2_GET_TO_THE_CAR");
							audio::_0x153973AB99FE8980(Local_1450[4 /*2*/], "ARM_2_BAGGER_GROUP", 0f);
						}
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], true);
						}
						if (audio::is_audio_scene_active("ARM_2_GAS_TRAIL"))
						{
							audio::stop_audio_scene("ARM_2_GAS_TRAIL");
							audio::_0x18EB48CFC41F2EA0(Local_1450[6 /*2*/], 0f);
						}
						func_543(8);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 94:
						break;
					
					case 95:
						pathfind::_0x07FB139B592FA687(-1549f, -1712f, -950f, -100f);
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (pathfind::_0xF7B79A50B905A30D(-1549f, -1712f, -950f, -100f))
								{
									func_122();
									ai::task_set_blocking_of_non_temporary_events(0, 1);
									ai::task_vehicle_drive_to_coord(0, Local_1450[4 /*2*/], -1082.167f, -1544.527f, 3.5825f, 25f, 1, 0, 571211828, 10f, 5f);
									ai::task_vehicle_drive_to_coord(0, Local_1450[4 /*2*/], -1068.112f, -1535.106f, 3.8693f, 25f, 1, 0, 571211828, 10f, 5f);
									ai::task_vehicle_drive_to_coord(0, Local_1450[4 /*2*/], -1106.441f, -943.8071f, 1.5151f, 25f, 1, 0, 571211828, 10f, 5f);
									ai::task_vehicle_drive_to_coord(0, Local_1450[4 /*2*/], -1188.955f, -728.5704f, 19.7766f, 25f, 1, 0, 571211828, 10f, 5f);
									ai::task_vehicle_drive_to_coord(0, Local_1450[4 /*2*/], -1322.462f, -579.8076f, 28.4281f, 25f, 1, 0, 571211828, 10f, 5f);
									ai::task_vehicle_drive_wander(0, Local_1450[4 /*2*/], 25f, 537657381);
									func_121(Local_1071[8 /*14*/], 0);
									if (!entity::is_entity_dead(Local_1450[4 /*2*/], 0))
									{
										vehicle::set_vehicle_tyres_can_burst(Local_1450[4 /*2*/], false);
										vehicle::set_vehicle_forward_speed(Local_1450[4 /*2*/], 5f);
									}
									if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
									{
										entity::set_entity_health(Local_1071[8 /*14*/], 100);
										ped::set_ped_can_be_targetted(Local_1071[8 /*14*/], true);
										entity::set_entity_proofs(Local_1071[8 /*14*/], false, false, false, false, false, false, 0, false);
									}
									unk1::_0x293220DA1B46CEBC(4f, 5f, 4);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
						}
						break;
					
					case 96:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (!ped::is_ped_group_member(Local_1071[2 /*14*/], ped::get_ped_group_index(player::player_ped_id())))
							{
								if (func_255(Local_1071[2 /*14*/], player::player_ped_id(), 1) < 30f)
								{
									ped::set_ped_as_group_member(Local_1071[2 /*14*/], ped::get_ped_group_index(player::player_ped_id()));
									ped::set_group_separation_range(ped::get_ped_group_index(player::player_ped_id()), 45f);
									ped::set_ped_can_teleport_to_group_leader(Local_1071[2 /*14*/], ped::get_ped_group_index(player::player_ped_id()), 1);
									ped::set_ped_group_member_passenger_index(Local_1071[2 /*14*/], 0);
									ped::set_ped_config_flag(Local_1071[2 /*14*/], 268, true);
								}
							}
						}
						break;
					
					case 97:
						if (pathfind::_0xF7B79A50B905A30D(-1549f, -1712f, -950f, -100f))
						{
							if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
							{
								if (ai::get_script_task_status(Local_1071[8 /*14*/], 242628503) == 1)
								{
									func_122();
									if (ai::get_sequence_progress(Local_1071[8 /*14*/]) <= 0)
									{
										ai::task_vehicle_drive_to_coord(0, Local_1450[4 /*2*/], -1061.849f, -1530.716f, 4.0065f, 30f, 1, 0, 571211828, 5f, 5f);
									}
									if (ai::get_sequence_progress(Local_1071[8 /*14*/]) <= 1)
									{
										ai::task_vehicle_drive_to_coord(0, Local_1450[4 /*2*/], -1068.112f, -1535.106f, 3.8693f, 30f, 1, 0, 571211828, 5f, 5f);
									}
									if (ai::get_sequence_progress(Local_1071[8 /*14*/]) <= 2)
									{
										ai::task_vehicle_drive_to_coord(0, Local_1450[4 /*2*/], -1106.441f, -943.8071f, 1.5151f, 30f, 1, 0, 571211828, 5f, 5f);
									}
									if (ai::get_sequence_progress(Local_1071[8 /*14*/]) <= 3)
									{
										ai::task_vehicle_drive_to_coord(0, Local_1450[4 /*2*/], -1188.955f, -728.5704f, 19.7766f, 30f, 1, 0, 571211828, 5f, 5f);
									}
									if (ai::get_sequence_progress(Local_1071[8 /*14*/]) <= 4)
									{
										ai::task_vehicle_drive_to_coord(0, Local_1450[4 /*2*/], -1322.462f, -579.8076f, 28.4281f, 30f, 1, 0, 571211828, 5f, 5f);
									}
									ai::task_vehicle_mission_ped_target(0, ped::get_vehicle_ped_is_using(Local_1071[8 /*14*/]), player::player_ped_id(), 8, 25f, 537657380, 10f, 15f, 1);
									func_121(Local_1071[8 /*14*/], 0);
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								else
								{
									ai::task_vehicle_mission_ped_target(Local_1071[8 /*14*/], ped::get_vehicle_ped_is_using(Local_1071[8 /*14*/]), player::player_ped_id(), 8, 25f, 571211828, 10f, 15f, 1);
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
							}
						}
						break;
					
					case 98:
						if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
						{
							if (ped::is_ped_being_jacked(Local_1071[8 /*14*/]))
							{
								ai::task_smart_flee_ped(Local_1071[8 /*14*/], player::player_ped_id(), 100f, 100000, 0, 0);
								ped::set_blocking_of_non_temporary_events(Local_1071[8 /*14*/], false);
								ped::set_ped_keep_task(Local_1071[8 /*14*/], true);
								entity::set_ped_as_no_longer_needed(&(Local_1071[8 /*14*/]));
								ped::set_ped_can_be_targetted(Local_1071[8 /*14*/], true);
								Local_325[iParam0 /*10*/].f_3 = 1;
							}
						}
						break;
					
					case 99:
						if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
						{
							ai::task_smart_flee_ped(Local_1071[8 /*14*/], player::player_ped_id(), 100f, 100000, 0, 0);
							ped::set_blocking_of_non_temporary_events(Local_1071[8 /*14*/], false);
							ped::set_ped_keep_task(Local_1071[8 /*14*/], true);
							ped::set_ped_can_be_targetted(Local_1071[8 /*14*/], true);
							entity::set_ped_as_no_longer_needed(&(Local_1071[8 /*14*/]));
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 100:
						func_414("ARM2_CHASE_START", 0, "ARM2_CHASE_MID");
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 101:
						func_414("ARM2_CHASE_MID", 1, "ARM2_STOP_TRACK");
						if (audio::is_audio_scene_active("ARM_2_GET_TO_THE_CAR"))
						{
							audio::stop_audio_scene("ARM_2_GET_TO_THE_CAR");
						}
						audio::start_audio_scene("ARM_2_CHASE_THE_BIKE");
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 102:
						if (!iLocal_2249)
						{
							func_414("ARM2_STOP_TRACK", 1, "");
							if (audio::is_audio_scene_active("ARM_2_CHASE_THE_BIKE"))
							{
								audio::stop_audio_scene("ARM_2_CHASE_THE_BIKE");
							}
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 103:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (ai::get_script_task_status(Local_1071[2 /*14*/], 242628503) == 7)
							{
								func_122();
								ai::task_follow_nav_mesh_to_coord(0, -1130.321f, -1589.826f, 3.3891f, 2f, 20000, 0.25f, 0, 39f);
								ai::task_climb(0, 1);
								func_121(Local_1071[2 /*14*/], 0);
							}
						}
						break;
					
					case 104:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (!ped::is_ped_in_group(Local_1071[2 /*14*/]))
							{
								if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
								{
									ai::task_enter_vehicle(Local_1071[2 /*14*/], Local_1450[0 /*2*/], -1, 0, 2f, 1, 0);
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
							}
						}
						break;
					
					case 105:
						if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
						{
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								ai::task_look_at_entity(Local_1071[2 /*14*/], player::player_ped_id(), 3000, 0, 2);
								Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 2500;
							}
						}
						break;
					
					case 106:
						vVar61 = { entity::get_entity_coords(player::player_ped_id(), 1) };
						if (vVar61.x > -77f && vVar61.y > -1107.376f)
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									streaming::request_model(joaat("prop_employee_month_02"));
									Local_325[iParam0 /*10*/].f_6++;
									break;
								
								case 1:
									if (streaming::has_model_loaded(joaat("prop_employee_month_02")))
									{
										iLocal_1058 = object::get_closest_object_of_type(-29.13f, -1102.377f, 27.26f, 0.5f, joaat("prop_employee_month_01"), 1, 0, 1);
										if (entity::does_entity_exist(iLocal_1058))
										{
											if (entity::is_entity_visible(iLocal_1058))
											{
												entity::set_entity_visible(iLocal_1058, false, 0);
												iLocal_1059 = object::create_object_no_offset(joaat("prop_employee_month_02"), entity::get_entity_coords(iLocal_1058, 1), 1, true, false);
												entity::set_entity_rotation(iLocal_1059, 0f, 0f, -20f, 2, 1);
												Local_325[iParam0 /*10*/].f_6++;
											}
										}
									}
									break;
							}
						}
						else
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 1:
									streaming::set_model_as_no_longer_needed(joaat("prop_employee_month_02"));
									Local_325[iParam0 /*10*/].f_6 = 0;
									break;
								
								case 2:
									if (entity::does_entity_exist(iLocal_1059))
									{
										object::delete_object(&iLocal_1059);
										streaming::set_model_as_no_longer_needed(joaat("prop_employee_month_02"));
									}
									if (entity::does_entity_exist(iLocal_1058))
									{
										entity::set_entity_visible(iLocal_1058, true, 0);
										entity::set_object_as_no_longer_needed(&iLocal_1058);
									}
									Local_325[iParam0 /*10*/].f_6 = 0;
									break;
								}
						}
						break;
					
					case 107:
						player::set_wanted_level_multiplier(1f);
						player::set_max_wanted_level(6);
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 108:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (ped::is_ped_in_group(Local_1071[2 /*14*/]))
							{
								ped::remove_ped_from_group(Local_1071[2 /*14*/]);
								ped::set_ped_get_out_upside_down_vehicle(Local_1071[2 /*14*/], 1);
								ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], true);
								Local_325[iParam0 /*10*/].f_3 = 1;
							}
						}
						break;
					
					case 109:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
								{
									if (ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0))
									{
										iVar64 = ped::get_vehicle_ped_is_using(Local_1071[2 /*14*/]);
										if (ped::is_ped_sitting_in_vehicle(Local_1071[2 /*14*/], iVar64))
										{
											if (func_365(Local_1071[2 /*14*/], iVar64) == 0)
											{
												if (vehicle::is_vehicle_seat_free(iVar64, -1, 0))
												{
													Local_325[iParam0 /*10*/].f_6++;
													Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 1000;
												}
											}
										}
									}
								}
								break;
							
							case 1:
								if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
								{
									iVar65 = ped::get_vehicle_ped_is_using(Local_1071[2 /*14*/]);
									if (vehicle::is_vehicle_seat_free(iVar65, -1, 0) && !ped::is_ped_getting_into_a_vehicle(player::player_ped_id()))
									{
										if ((!vehicle::is_this_model_a_plane(entity::get_entity_model(iVar65)) && !vehicle::is_this_model_a_heli(entity::get_entity_model(iVar65))) && entity::get_entity_model(iVar65) != joaat("bus"))
										{
											if (vehicle::can_shuffle_seat(iVar65, 0))
											{
												ai::task_shuffle_to_next_vehicle_seat(Local_1071[2 /*14*/], iVar65);
												Local_325[iParam0 /*10*/].f_3 = 1;
											}
											else
											{
												ai::task_enter_vehicle(Local_1071[2 /*14*/], iVar65, 20000, -1, 2f, 1, 0);
												Local_325[iParam0 /*10*/].f_3 = 1;
											}
										}
										else if (!entity::is_entity_in_air(iVar65))
										{
											ai::task_leave_any_vehicle(Local_1071[2 /*14*/], 0, 0);
											Local_325[iParam0 /*10*/].f_3 = 1;
										}
									}
								}
								break;
						}
						break;
					
					case 110:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									if (func_285(144))
									{
										if (ped::is_ped_sitting_in_any_vehicle(Local_1071[2 /*14*/]))
										{
											iVar66 = ped::get_vehicle_ped_is_in(Local_1071[2 /*14*/], 0);
											Local_1450[8 /*2*/] = iVar66;
											if (vehicle::is_vehicle_driveable(iVar66, 0))
											{
												if (func_365(Local_1071[2 /*14*/], iVar66) == -1)
												{
													ai::task_vehicle_drive_wander(Local_1071[2 /*14*/], iVar66, 10f, 786619);
													Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 5000;
													Local_325[iParam0 /*10*/].f_6++;
												}
											}
										}
									}
									break;
								
								case 1:
									if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_7)
									{
										if (ped::is_ped_sitting_in_any_vehicle(Local_1071[2 /*14*/]))
										{
											iVar67 = ped::get_vehicle_ped_is_in(Local_1071[2 /*14*/], 0);
											if (vehicle::is_vehicle_driveable(iVar67, 0))
											{
												if (func_365(Local_1071[2 /*14*/], iVar67) == -1)
												{
													if (player::get_player_wanted_level(player::player_id()) > 0)
													{
														func_122();
														ai::task_vehicle_drive_to_coord_longrange(0, iVar67, -230.4853f, -888.2496f, 28.985f, 20f, 786484, 5f);
														ai::task_vehicle_drive_to_coord_longrange(0, iVar67, -472.5658f, -1092.59f, 25.8562f, 20f, 786484, 5f);
														func_121(Local_1071[2 /*14*/], 1);
														Local_325[iParam0 /*10*/].f_6 = 3;
													}
													else
													{
														func_122();
														ai::task_vehicle_drive_to_coord_longrange(0, iVar67, -230.4853f, -888.2496f, 28.985f, 12f, 786603, 5f);
														ai::task_vehicle_drive_to_coord_longrange(0, iVar67, -472.5658f, -1092.59f, 25.8562f, 12f, 786603, 5f);
														func_121(Local_1071[2 /*14*/], 1);
														Local_325[iParam0 /*10*/].f_6++;
													}
												}
											}
										}
									}
									break;
								
								case 2:
									if (ped::is_ped_sitting_in_any_vehicle(Local_1071[2 /*14*/]))
									{
										iVar68 = ped::get_vehicle_ped_is_in(Local_1071[2 /*14*/], 0);
										if (vehicle::is_vehicle_driveable(iVar68, 0))
										{
											if (func_365(Local_1071[2 /*14*/], iVar68) == -1)
											{
												if (player::get_player_wanted_level(player::player_id()) > 0)
												{
													func_122();
													ai::task_vehicle_drive_to_coord_longrange(0, iVar68, -230.4853f, -888.2496f, 28.985f, 20f, 786468, 5f);
													ai::task_vehicle_drive_to_coord_longrange(0, iVar68, -472.5658f, -1092.59f, 25.8562f, 20f, 786468, 5f);
													func_121(Local_1071[2 /*14*/], 1);
													Local_325[iParam0 /*10*/].f_6 = 3;
												}
											}
										}
									}
									break;
								}
						}
						break;
					
					case 113:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (ai::get_script_task_status(Local_1071[2 /*14*/], -828834893) == 7)
							{
								if (!entity::is_entity_in_air(Local_1071[2 /*14*/]))
								{
									ai::task_leave_any_vehicle(Local_1071[2 /*14*/], 0, 0);
								}
							}
						}
						break;
					
					case 116:
						Local_325[iParam0 /*10*/].f_3 = 1;
						break;
					
					case 114:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							iVar69 = func_361();
							if (vehicle::is_vehicle_driveable(iVar69, 0))
							{
								func_126(152, 1);
								vehicle::set_vehicle_is_considered_by_player(iVar69, 0);
								ai::task_enter_vehicle(Local_1071[2 /*14*/], iVar69, -1, -1, 2f, 9, 0);
								func_124(2, 110, 0);
								Local_1450[8 /*2*/] = iVar69;
							}
							else if ((ai::get_script_task_status(Local_1071[2 /*14*/], 1435919172) != 1 && ai::get_script_task_status(Local_1071[2 /*14*/], 1435919172) != 0) && ai::get_script_task_status(Local_1071[2 /*14*/], 1435919172) != 2)
							{
								ai::task_wander_standard(Local_1071[2 /*14*/], 1193033728, 0);
								ped::set_ped_min_move_blend_ratio(Local_1071[2 /*14*/], 2f);
							}
						}
						break;
					
					case 115:
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							switch (Local_325[iParam0 /*10*/].f_6)
							{
								case 0:
									if (ped::is_ped_in_combat(Local_1071[2 /*14*/], 0))
									{
										Local_325[iParam0 /*10*/].f_6++;
										Local_325[iParam0 /*10*/].f_7 = gameplay::get_game_timer() + 5000;
									}
									if (ai::get_script_task_status(Local_1071[2 /*14*/], -1794415470) == 1)
									{
										if (gameplay::get_game_timer() > Local_325[iParam0 /*10*/].f_8)
										{
											Local_325[iParam0 /*10*/].f_8 = gameplay::get_game_timer() + 5000;
											iVar70 = func_361();
											if (iVar70 != ped::set_exclusive_phone_relationships(Local_1071[2 /*14*/]))
											{
												ai::clear_ped_tasks(Local_1071[2 /*14*/]);
											}
										}
									}
									break;
								
								case 1:
									ai::clear_ped_tasks(Local_1071[2 /*14*/]);
									Local_325[iParam0 /*10*/].f_6 = 0;
									break;
								}
						}
						break;
					
					case 117:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (func_123(player::player_ped_id(), -19.0794f, -1452.704f, 29.524f, 1) < (100f + 100f))
								{
									streaming::request_anim_dict("MISSARMENIAN2LeadInOutMCS_6");
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (func_123(player::player_ped_id(), -19.0794f, -1452.704f, 29.524f, 1) < 100f && !func_360())
								{
									cutscene::request_cutscene("Armenian_2_mcs_6", 8);
									func_543(10);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 2:
								if (cutscene::_0xB56BBBCC2955D9CB())
								{
									func_163("Franklin", player::player_ped_id(), 0, 2);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 0, 0, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 1, 0, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 2, 2, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 3, 2, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 4, 3, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 5, 0, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 6, 1, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 7, 0, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 8, 0, 0, 0);
									cutscene::set_cutscene_ped_component_variation("LAMAR", 9, 0, 0, 0);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 3:
								if (Local_325[iParam0 /*10*/].f_8 == 0)
								{
									func_276(&Local_1477, 1);
									func_274(1, player::player_ped_id(), "Franklin");
									Local_325[iParam0 /*10*/].f_8 = 1;
								}
								else if (Local_325[iParam0 /*10*/].f_8 == 1)
								{
									if (func_359(&Local_1477, "AR2AUD", "AR2_MCS6_LI", 7, 0, 0, 0, 0))
									{
										Local_325[iParam0 /*10*/].f_8 = 2;
									}
								}
								if (func_123(player::player_ped_id(), -19.0794f, -1452.704f, 29.524f, 1) > (100f + 100f) || func_360())
								{
									cutscene::remove_cutscene();
									Local_325[iParam0 /*10*/].f_6 = 1;
								}
								break;
						}
						break;
					
					case 118:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (iLocal_2225 < 0)
								{
									iLocal_2225 = gameplay::get_game_timer();
								}
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
								{
									if (!entity::is_entity_on_screen(Local_1071[2 /*14*/]) && ((ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0) || gameplay::get_game_timer() >= iLocal_2225 + 15000) || entity::is_entity_at_coord(player::player_ped_id(), -4.03f, -1401.22f, 28.28f, 200f, 200f, 200f, false, false, 0)))
									{
										gameplay::clear_area_of_vehicles(-17.2737f, -1401.285f, 28.3354f, 5f, 0, 0, 0, 0, false);
										if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
										{
											if (!ped::is_ped_in_vehicle(player::player_ped_id(), Local_1450[0 /*2*/], 0))
											{
												if (func_46(Local_1450[0 /*2*/], 145, 0) && entity::get_entity_model(Local_1450[0 /*2*/]) == func_47(1, 1))
												{
													entity::set_entity_coords(Local_1450[0 /*2*/], -17.347f, -1401.371f, 28.3343f, 1, false, 0, 1);
													entity::set_entity_heading(Local_1450[0 /*2*/], 270f);
													func_334(Local_1450[0 /*2*/], -17.347f, -1401.371f, 28.3343f, 270f, 24, 0);
													entity::set_entity_load_collision_flag(Local_1450[0 /*2*/], true);
													entity::_0x3910051CCECDB00C(Local_1450[0 /*2*/], true);
													vehicle::set_vehicle_is_considered_by_player(Local_1450[0 /*2*/], 1);
												}
												else if (ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0))
												{
													iVar71 = ped::get_vehicle_ped_is_in(Local_1071[2 /*14*/], 0);
													if (iVar71 == Local_1450[0 /*2*/])
													{
														if (!vehicle::is_this_model_a_plane(entity::get_entity_model(Local_1450[0 /*2*/])) && !vehicle::is_this_model_a_heli(entity::get_entity_model(Local_1450[0 /*2*/])))
														{
															entity::set_entity_as_mission_entity(Local_1450[0 /*2*/], true, 0);
															entity::set_entity_coords(Local_1450[0 /*2*/], -17.347f, -1401.371f, 28.3343f, 1, false, 0, 1);
															entity::set_entity_heading(Local_1450[0 /*2*/], 270f);
															entity::set_entity_load_collision_flag(Local_1450[0 /*2*/], true);
															entity::_0x3910051CCECDB00C(Local_1450[0 /*2*/], true);
														}
														vehicle::set_vehicle_is_considered_by_player(Local_1450[0 /*2*/], 1);
														func_334(Local_1450[0 /*2*/], 0f, 0f, 0f, 0f, 24, 0);
													}
													else
													{
														if (!vehicle::is_this_model_a_plane(entity::get_entity_model(Local_1450[0 /*2*/])) && !vehicle::is_this_model_a_heli(entity::get_entity_model(Local_1450[0 /*2*/])))
														{
															entity::set_entity_as_mission_entity(Local_1450[0 /*2*/], true, 0);
														}
														func_334(Local_1450[0 /*2*/], 0f, 0f, 0f, 0f, 24, 0);
														if (vehicle::is_vehicle_driveable(iVar71, 0))
														{
															entity::set_entity_as_mission_entity(iVar71, true, 1);
															entity::set_entity_coords(iVar71, -17.347f, -1401.371f, 28.3343f, 1, false, 0, 1);
															entity::set_entity_heading(iVar71, 270f);
															entity::set_entity_load_collision_flag(iVar71, true);
															entity::_0x3910051CCECDB00C(iVar71, true);
															vehicle::set_vehicle_is_considered_by_player(iVar71, 1);
														}
													}
												}
											}
										}
										entity::set_entity_coords(Local_1071[2 /*14*/], -4.03f, -1401.22f, 28.28f, 1, false, 0, 1);
										entity::set_entity_heading(Local_1071[2 /*14*/], 77.9221f);
										func_333(0);
										ai::clear_ped_tasks_immediately(Local_1071[2 /*14*/]);
										func_417(1, 109, 1, 0);
										func_417(2, 110, 1, 0);
										func_417(3, 112, 1, 0);
										func_417(4, 113, 1, 0);
										func_417(5, 114, 1, 0);
										ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], true);
										func_126(140, 1);
										ped::add_scenario_blocking_area(Vector(28.5742f, -1391.944f, 25.3192f) - Vector(20f, 40f, 40f), Vector(28.5742f, -1391.944f, 25.3192f) + Vector(20f, 40f, 40f), 0, 1, 1, 1);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 1:
								func_113(-9.370698f, -1402.745f, 26.9317f, -9.507262f, -1386.303f, 32.58361f, 9.9375f, -17.384f, -1406.261f, 28.3184f, 0f, 6f, 20f, 10f, 1, 1, 1, 0, 0);
								streaming::request_model(joaat("prop_npc_phone"));
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 2:
								if (streaming::has_model_loaded(joaat("prop_npc_phone")))
								{
									if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
									{
										iLocal_1953 = object::create_object(joaat("prop_npc_phone"), -4.7755f, -1402.027f, 28.2746f, 1, true, false);
										entity::attach_entity_to_entity(iLocal_1953, Local_1071[2 /*14*/], ped::get_ped_bone_index(Local_1071[2 /*14*/], 60309), vLocal_1068, vLocal_1068, 0, 0, 0, 0, 2, 1);
										ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2", "lamar_texting", 8f, -8f, -1, 262145, 0f, 0, 0, 0);
									}
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 3:
								if (ai::get_script_task_status(Local_1071[2 /*14*/], -2017877118) == 7 && ai::get_script_task_status(Local_1071[2 /*14*/], 242628503) == 7)
								{
									if (func_123(Local_1071[2 /*14*/], -4.03f, -1401.22f, 28.28f, 0) <= 0.5f)
									{
										ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2", "lamar_texting", 8f, -8f, -1, 1, 0f, 0, 0, 0);
									}
								}
								if (func_123(Local_1071[2 /*14*/], -4.03f, -1401.22f, 28.28f, 0) > 0.5f)
								{
									if (ai::get_script_task_status(Local_1071[2 /*14*/], 242628503) == 7)
									{
										func_122();
										ai::task_follow_nav_mesh_to_coord(0, -4.03f, -1401.22f, 28.28f, 1f, 20000, 1048576000, 0, 1193033728);
										ai::task_achieve_heading(0, 77.9221f, 0);
										func_121(Local_1071[2 /*14*/], 0);
									}
								}
								break;
						}
						break;
					
					case 119:
						if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
						{
							Local_325[iParam0 /*10*/].f_3 = 1;
						}
						break;
					
					case 120:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]) && cam::_0xEE778F8C7E1142E2(2) != 4)
								{
									cam::set_gameplay_coord_hint(entity::get_entity_coords(Local_1071[2 /*14*/], 1), -1, 5000, 2000, 0);
									cam::_0xF8BDBF3D573049A1(0.51f);
									cam::_0x5D7B620DAE436138(0.4f);
									cam::_0xC92717EF615B6704(-0.925f);
									cam::set_gameplay_hint_fov(30f);
									Local_325[iParam0 /*10*/].f_6++;
								}
								break;
							
							case 1:
								if (cam::is_gameplay_hint_active())
								{
									if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
									{
										cam::stop_gameplay_hint(0);
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								else
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
					
					case 121:
						switch (Local_325[iParam0 /*10*/].f_6)
						{
							case 0:
								player::set_player_control(player::player_id(), false, 256);
								if (func_332(Local_1450[4 /*2*/], 4f, 2, 1056964608, 0, 1, 0))
								{
									if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
									{
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
									else if (streaming::has_anim_dict_loaded("MISSARMENIAN2LeadInOutMCS_6"))
									{
										func_122();
										ai::task_look_at_entity(0, Local_1071[2 /*14*/], 12000, 0, 2);
										ai::task_play_anim(0, "MISSARMENIAN2LeadInOutMCS_6", "_leadin_fra", 8f, -8f, -1, 2, 0f, 0, 0, 0);
										func_121(player::player_ped_id(), 0);
										Local_325[iParam0 /*10*/].f_6 = 2;
									}
									else
									{
										streaming::request_anim_dict("MISSARMENIAN2LeadInOutMCS_6");
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 1:
								if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								else if (streaming::has_anim_dict_loaded("MISSARMENIAN2LeadInOutMCS_6"))
								{
									if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
									{
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
									else
									{
										func_122();
										ai::task_look_at_entity(0, Local_1071[2 /*14*/], 12000, 0, 2);
										ai::task_play_anim(0, "MISSARMENIAN2LeadInOutMCS_6", "_leadin_fra", 8f, -8f, -1, 2, 0f, 0, 0, 0);
										func_121(player::player_ped_id(), 0);
										Local_325[iParam0 /*10*/].f_6++;
									}
								}
								break;
							
							case 2:
								func_331();
								Local_325[iParam0 /*10*/].f_6++;
								break;
							
							case 3:
								if (entity::is_entity_playing_anim(player::player_ped_id(), "MISSARMENIAN2LeadInOutMCS_6", "_leadin_fra", 3))
								{
									if (entity::get_entity_anim_current_time(player::player_ped_id(), "MISSARMENIAN2LeadInOutMCS_6", "_leadin_fra") == 1f)
									{
										Local_325[iParam0 /*10*/].f_3 = 1;
									}
								}
								else
								{
									Local_325[iParam0 /*10*/].f_3 = 1;
								}
								break;
						}
						break;
				}
				if (Local_325[iParam0 /*10*/].f_6 == 99)
				{
					Local_325[iParam0 /*10*/].f_3 = 1;
					Local_325[iParam0 /*10*/].f_6 = 0;
					Local_325[iParam0 /*10*/].f_1 = 0;
				}
			}
		}
	}
}

void func_331()//Position - 0x3C43D
{
	audio::start_preloaded_conversation();
	Global_16737 = 0;
}

bool func_332(int iParam0, float fParam1, int iParam2, float fParam3, int iParam4, int iParam5, int iParam6)//Position - 0x3C44D
{
	controls::disable_control_action(0, 71, 1);
	controls::disable_control_action(0, 72, 1);
	controls::disable_control_action(0, 76, 1);
	controls::disable_control_action(0, 73, 1);
	controls::disable_control_action(0, 59, 1);
	controls::disable_control_action(0, 60, 1);
	if (iParam5)
	{
		controls::disable_control_action(0, 75, 1);
	}
	controls::disable_control_action(0, 80, 1);
	if (!iParam6)
	{
		controls::disable_control_action(0, 69, 1);
		controls::disable_control_action(0, 70, 1);
		controls::disable_control_action(0, 68, 1);
	}
	controls::disable_control_action(0, 74, 1);
	controls::disable_control_action(0, 86, 1);
	controls::disable_control_action(0, 81, 1);
	controls::disable_control_action(0, 82, 1);
	controls::disable_control_action(0, 138, 1);
	controls::disable_control_action(0, 136, 1);
	controls::disable_control_action(0, 114, 1);
	controls::disable_control_action(0, 107, 1);
	controls::disable_control_action(0, 110, 1);
	controls::disable_control_action(0, 89, 1);
	controls::disable_control_action(0, 89, 1);
	controls::disable_control_action(0, 87, 1);
	controls::disable_control_action(0, 88, 1);
	controls::disable_control_action(0, 113, 1);
	controls::disable_control_action(0, 115, 1);
	controls::disable_control_action(0, 116, 1);
	controls::disable_control_action(0, 117, 1);
	controls::disable_control_action(0, 118, 1);
	controls::disable_control_action(0, 119, 1);
	controls::disable_control_action(0, 131, 1);
	controls::disable_control_action(0, 132, 1);
	controls::disable_control_action(0, 123, 1);
	controls::disable_control_action(0, 126, 1);
	controls::disable_control_action(0, 129, 1);
	controls::disable_control_action(0, 130, 1);
	controls::disable_control_action(0, 133, 1);
	controls::disable_control_action(0, 134, 1);
	cam::_0x17FCA7199A530203();
	if ((gameplay::get_game_timer() - Global_29) > 500)
	{
		vehicle::_set_vehicle_halt(iParam0, fParam1, iParam2, iParam4);
	}
	Global_29 = gameplay::get_game_timer();
	if (!entity::is_entity_dead(iParam0, 0))
	{
		if (gameplay::absf(entity::get_entity_speed(iParam0)) <= fParam3)
		{
			return true;
		}
	}
	return false;
}

void func_333(int iParam0)//Position - 0x3C5D6
{
	if (!ped::is_ped_dead_or_dying(Local_1071[2 /*14*/], 1))
	{
		ped::set_ped_can_be_targetted(Local_1071[2 /*14*/], false);
		ped::set_ped_relationship_group_hash(Local_1071[2 /*14*/], ped::get_ped_relationship_group_hash(player::player_ped_id()));
		ped::set_ped_combat_attributes(Local_1071[2 /*14*/], 8, false);
		ped::set_ped_combat_attributes(Local_1071[2 /*14*/], 29, true);
		ped::set_combat_float(Local_1071[2 /*14*/], 12, 3f);
		ped::set_ped_combat_range(Local_1071[2 /*14*/], 2);
		ped::set_ped_hearing_range(Local_1071[2 /*14*/], 50f);
		ped::set_ped_seeing_range(Local_1071[2 /*14*/], 50f);
		ped::set_ped_max_health(Local_1071[2 /*14*/], 500);
		entity::set_entity_health(Local_1071[2 /*14*/], 500);
		ped::set_ped_suffers_critical_hits(Local_1071[2 /*14*/], 0);
		ped::_set_ped_ragdoll_flag(Local_1071[2 /*14*/], 17);
		ped::set_ped_config_flag(Local_1071[2 /*14*/], 188, true);
		ped::set_ped_config_flag(Local_1071[2 /*14*/], 182, true);
		ped::set_ped_reset_flag(Local_1071[2 /*14*/], 64, true);
		func_300(Local_1071[2 /*14*/], 1);
		if (iLocal_1067 <= 9)
		{
			func_147(5, 10, 0);
		}
		ped::set_ped_accuracy(Local_1071[2 /*14*/], 15);
		if (iParam0)
		{
			if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
			{
				while (!ped::_0x7350823473013C02(Local_1071[2 /*14*/]))
				{
					func_19(1, 0);
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
					}
				}
				if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
				{
					ped::set_ped_default_component_variation(Local_1071[2 /*14*/]);
					ped::set_ped_component_variation(Local_1071[2 /*14*/], 0, 0, 0, 0);
					ped::set_ped_component_variation(Local_1071[2 /*14*/], 1, 1, 0, 0);
					ped::set_ped_component_variation(Local_1071[2 /*14*/], 2, 2, 0, 0);
					ped::set_ped_component_variation(Local_1071[2 /*14*/], 3, 2, 0, 0);
					ped::set_ped_component_variation(Local_1071[2 /*14*/], 4, 3, 0, 0);
					ped::set_ped_component_variation(Local_1071[2 /*14*/], 5, 0, 0, 0);
					ped::set_ped_component_variation(Local_1071[2 /*14*/], 6, 1, 0, 0);
					ped::set_ped_component_variation(Local_1071[2 /*14*/], 7, 0, 0, 0);
					ped::set_ped_component_variation(Local_1071[2 /*14*/], 8, 0, 0, 0);
					ped::set_ped_component_variation(Local_1071[2 /*14*/], 9, 0, 0, 0);
				}
			}
		}
		ped::set_ped_config_flag(Local_1071[2 /*14*/], 118, false);
		ped::set_ped_config_flag(Local_1071[2 /*14*/], 32, false);
		ped::set_ped_config_flag(Local_1071[2 /*14*/], 185, true);
		ped::set_ped_target_loss_response(Local_1071[2 /*14*/], 1);
		ped::set_ped_config_flag(Local_1071[2 /*14*/], 118, false);
		ped::set_ped_combat_attributes(Local_1071[2 /*14*/], 26, true);
		ped::set_ped_group_member_passenger_index(Local_1071[2 /*14*/], 0);
		entity::set_entity_proofs(Local_1071[2 /*14*/], false, true, false, false, false, false, 0, false);
		ped::_0x733C87D4CE22BEA2(Local_1071[2 /*14*/]);
		ped::set_ped_can_be_targetted(Local_1071[2 /*14*/], false);
	}
}

void func_334(int iParam0, vector3 vParam1, float fParam4, int iParam5, int iParam6)//Position - 0x3C836
{
	struct<60> Var0;
	
	if (entity::does_entity_exist(iParam0) && vehicle::is_vehicle_driveable(iParam0, 0))
	{
		if (iParam5 != 24 && iParam5 != 25)
		{
			return;
		}
		if (iParam5 == 24)
		{
			if (entity::does_entity_exist(Global_68446.f_484[25]) && vehicle::is_vehicle_driveable(Global_68446.f_484[25], 0))
			{
				if (Global_68446.f_484[25] == iParam0)
				{
					return;
				}
			}
		}
		if (!iParam6)
		{
			if ((vehicle::is_big_vehicle(iParam0) || entity::get_entity_model(iParam0) == joaat("bus")) || entity::get_entity_model(iParam0) == joaat("tourbus"))
			{
				return;
			}
		}
		func_358(iParam5);
		Var0.f_9 = 49;
		Var0.f_59 = 2;
		func_49(iParam0, &Var0);
		if (func_74(vParam1, 0f, 0f, 0f, 0))
		{
			vParam1 = { entity::get_entity_coords(iParam0, 1) };
			fParam4 = entity::get_entity_heading(iParam0);
		}
		if (iParam5 == 24)
		{
			if (gameplay::get_hash_key(script::get_this_script_name()) != joaat("vehicle_gen_controller"))
			{
				Global_69434 = gameplay::get_hash_key(script::get_this_script_name());
			}
		}
		func_352(iParam5, &Var0, vParam1, fParam4, func_45(iParam0));
		func_335(iParam5, iParam0, 0);
	}
}

void func_335(int iParam0, int iParam1, int iParam2)//Position - 0x3C95F
{
	int iVar0;
	
	if (iParam0 == -1)
	{
		return;
	}
	if (!func_351(&(Global_68446.f_555[0 /*21*/]), iParam0))
	{
		return;
	}
	if (!gameplay::is_bit_set(Global_68446.f_555[0 /*21*/].f_9, 12) && !gameplay::is_bit_set(Global_68446.f_555[0 /*21*/].f_9, 10))
	{
		if (Global_68446.f_555[0 /*21*/].f_4 != entity::get_entity_model(iParam1))
		{
			return;
		}
	}
	if (Global_69353 != -1 && Global_69353 != iParam0)
	{
		return;
	}
	if (entity::does_entity_exist(iParam1))
	{
		if (vehicle::is_vehicle_driveable(iParam1, 0))
		{
			if (!entity::is_entity_a_mission_entity(iParam1))
			{
				entity::set_entity_as_mission_entity(iParam1, true, 1);
			}
			if (iParam0 == 24)
			{
				Global_101553.f_18972.f_4801 = func_87();
			}
			if (iParam1 != Global_68446.f_139[iParam0])
			{
				if (iParam0 == 24)
				{
					iVar0 = func_350(iParam0);
					if ((entity::does_entity_exist(iVar0) && vehicle::is_vehicle_driveable(iVar0, 0)) && iParam1 != iVar0)
					{
						func_336(iVar0, 145);
					}
				}
				Global_69352 = iParam1;
				Global_69353 = iParam0;
				Global_69354 = iParam2;
			}
		}
	}
}

void func_336(int iParam0, int iParam1)//Position - 0x3CA7C
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (!func_337(iParam0))
	{
		return;
	}
	if ((iParam1 != 0 && iParam1 != 1) && iParam1 != 2)
	{
		iVar0 = vehicle::get_ped_in_vehicle_seat(iParam0, -1, 0);
		if (!entity::does_entity_exist(iVar0))
		{
			iVar0 = vehicle::get_last_ped_in_vehicle_seat(iParam0, -1);
		}
		if (entity::does_entity_exist(iVar0) && !ped::is_ped_injured(iVar0))
		{
			if (entity::get_entity_model(iVar0) == joaat("player_zero"))
			{
				iParam1 = 0;
			}
			else if (entity::get_entity_model(iVar0) == joaat("player_one"))
			{
				iParam1 = 1;
			}
			else if (entity::get_entity_model(iVar0) == joaat("player_two"))
			{
				iParam1 = 2;
			}
		}
		if ((iParam1 != 0 && iParam1 != 1) && iParam1 != 2)
		{
			iParam1 = Global_101553.f_1991.f_539.f_3549;
		}
	}
	iVar1 = 0;
	while (iVar1 < 3)
	{
		iVar2 = 0;
		while (iVar2 < 2)
		{
			if (entity::get_entity_model(iParam0) == Global_101553.f_18972.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_66)
			{
				if (!gameplay::is_string_null_or_empty(&(Global_101553.f_18972.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_1)))
				{
					if (gameplay::are_strings_equal(vehicle::get_vehicle_number_plate_text(iParam0), &(Global_101553.f_18972.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_1)))
					{
						Global_101553.f_18972.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_66 = 0;
						Global_101553.f_18972.f_5592[iVar1] = iVar2;
					}
				}
			}
			iVar2++;
		}
		iVar1++;
	}
	iVar1 = 0;
	while (iVar1 < 3)
	{
		if (entity::get_entity_model(iParam0) == Global_101553.f_18972.f_5600[iVar1 /*78*/].f_66)
		{
			if (!gameplay::is_string_null_or_empty(&(Global_101553.f_18972.f_5600[iVar1 /*78*/].f_1)))
			{
				if (gameplay::are_strings_equal(vehicle::get_vehicle_number_plate_text(iParam0), &(Global_101553.f_18972.f_5600[iVar1 /*78*/].f_1)))
				{
					Global_101553.f_18972.f_5600[iVar1 /*78*/].f_66 = 0;
				}
			}
		}
		iVar1++;
	}
	Global_101553.f_18972.f_5590 = iParam1;
	Global_69351 = iParam0;
	Global_101553.f_18972.f_5588 = 1;
	func_49(iParam0, &(Global_101553.f_18972.f_5510));
}

bool func_337(int iParam0)//Position - 0x3CC7E
{
	if ((((((((((!entity::does_entity_exist(iParam0) || !vehicle::is_vehicle_driveable(iParam0, 0)) || func_54(iParam0, 0, 0)) || func_54(iParam0, 1, 0)) || func_54(iParam0, 2, 0)) || func_45(iParam0) != 145) || func_349(iParam0)) || func_348(iParam0)) || func_347(iParam0)) || func_346(iParam0)) || !func_338(entity::get_entity_model(iParam0)))
	{
		if (func_348(iParam0))
		{
		}
		if (func_348(iParam0))
		{
		}
		if (func_54(iParam0, 0, 0))
		{
		}
		if (func_54(iParam0, 1, 0))
		{
		}
		if (func_54(iParam0, 2, 0))
		{
		}
		if (func_45(iParam0) != 145)
		{
		}
		return false;
	}
	return true;
}

bool func_338(int iParam0)//Position - 0x3CD5B
{
	if (iParam0 == 0)
	{
		return false;
	}
	if (!func_339(iParam0, 0))
	{
		return false;
	}
	if (((vehicle::is_this_model_a_boat(iParam0) || vehicle::is_this_model_a_plane(iParam0)) || vehicle::is_this_model_a_heli(iParam0)) || vehicle::is_this_model_a_train(iParam0))
	{
		return false;
	}
	switch (iParam0)
	{
		case joaat("bus"):
		case joaat("stretch"):
		case joaat("barracks"):
		case joaat("armytanker"):
		case joaat("rhino"):
		case joaat("armytrailer"):
		case joaat("barracks2"):
		case joaat("flatbed"):
		case joaat("ripley"):
		case joaat("towtruck"):
		case joaat("towtruck2"):
		case joaat("airbus"):
		case joaat("coach"):
		case joaat("rentalbus"):
		case joaat("tourbus"):
		case 1938952078:
		case joaat("pbus"):
		case joaat("trash"):
		case joaat("benson"):
		case joaat("boattrailer"):
		case joaat("biff"):
		case joaat("hauler"):
		case joaat("docktrailer"):
		case joaat("phantom"):
		case joaat("pounder"):
		case joaat("tractor2"):
		case joaat("bulldozer"):
		case joaat("handler"):
		case joaat("tiptruck"):
		case joaat("cutter"):
		case joaat("dump"):
		case joaat("mixer"):
		case joaat("mixer2"):
		case joaat("rubble"):
		case joaat("scrap"):
		case joaat("tiptruck2"):
		case joaat("camper"):
		case joaat("taco"):
		case joaat("boxville"):
		case joaat("boxville2"):
		case joaat("boxville3"):
		case joaat("journey"):
		case joaat("mule"):
		case joaat("mule2"):
		case joaat("police"):
		case joaat("police2"):
		case joaat("police3"):
		case joaat("police4"):
		case joaat("policeb"):
		case joaat("policeold1"):
		case joaat("policeold2"):
		case joaat("policet"):
		case joaat("taxi"):
		case joaat("submersible"):
		case joaat("submersible2"):
		case joaat("monster"):
			return false;
			break;
	}
	return true;
}

bool func_339(int iParam0, int iParam1)//Position - 0x3CF0C
{
	int iVar0;
	struct<2> Var1;
	
	if (iParam0 == 0)
	{
		return false;
	}
	if (!streaming::is_model_a_vehicle(iParam0))
	{
		return false;
	}
	if ((((((((((((iParam0 == joaat("dodo") || iParam0 == joaat("dukes")) || iParam0 == joaat("dukes2")) || (iParam0 == joaat("dominator2") && !network::network_is_game_in_progress())) || (iParam0 == joaat("buffalo3") && !network::network_is_game_in_progress())) || (iParam0 == joaat("gauntlet2") && !network::network_is_game_in_progress())) || iParam0 == joaat("blimp2")) || iParam0 == joaat("stalion")) || (iParam0 == joaat("stalion2") && !network::network_is_game_in_progress())) || iParam0 == joaat("submersible2")) || iParam0 == joaat("marshall")) || iParam0 == joaat("blista2")) || iParam0 == joaat("blista3"))
	{
		if (!func_345())
		{
			return false;
		}
	}
	else
	{
		iVar0 = 0;
		while (iVar0 < dlc1::get_num_dlc_vehicles())
		{
			if (dlc1::get_dlc_vehicle_data(iVar0, &Var1))
			{
				if (iParam0 == Var1.f_1)
				{
					if (dlc1::_is_dlc_data_empty(Var1))
					{
						return false;
					}
				}
			}
			iVar0++;
		}
	}
	if (iParam0 == joaat("blimp"))
	{
		if ((((!func_344() && !func_343()) && !func_342()) && !func_341()) && !func_345())
		{
			return false;
		}
	}
	if ((iParam0 == joaat("hotknife") || iParam0 == joaat("carbonrs")) || iParam0 == joaat("khamelion"))
	{
		if ((gameplay::is_durango_version() || gameplay::is_pc_version()) || gameplay::is_orbis_version())
		{
		}
		else if (!func_342())
		{
			return false;
		}
	}
	if (iParam1)
	{
		if (!func_340(iParam0))
		{
			return false;
		}
	}
	return true;
}

int func_340(int iParam0)//Position - 0x3D0EE
{
	int iVar0;
	int iVar1;
	
	if (Global_2471234)
	{
		return 1;
	}
	iVar0 = 1;
	iVar1 = network::_get_posix_time();
	if (iParam0 == joaat("btype3"))
	{
		if ((!Global_262145.f_5415 && !Global_262145.f_11342) && iVar1 < Global_262145.f_11343)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("faction3"))
	{
		if (!Global_262145.f_12154 && iVar1 < Global_262145.f_12166)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("virgo3") || iParam0 == joaat("virgo2"))
	{
		if (!Global_262145.f_12150 && iVar1 < Global_262145.f_12162)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("sabregt2"))
	{
		if (!Global_262145.f_12151 && iVar1 < Global_262145.f_12163)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tornado5"))
	{
		if (!Global_262145.f_12152 && iVar1 < Global_262145.f_12164)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("minivan2"))
	{
		if (!Global_262145.f_12153 && iVar1 < Global_262145.f_12165)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("slamvan3"))
	{
		if (!Global_262145.f_12155 && iVar1 < Global_262145.f_12167)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("prototipo"))
	{
		if (!Global_262145.f_12156 && iVar1 < Global_262145.f_12159)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("seven70"))
	{
		if (!Global_262145.f_12157 && iVar1 < Global_262145.f_12160)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("pfister811"))
	{
		if (!Global_262145.f_12158 && iVar1 < Global_262145.f_12161)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("bf400"))
	{
		if (!Global_262145.f_14731 && iVar1 < Global_262145.f_14696)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("brioso"))
	{
		if (!Global_262145.f_14726 && iVar1 < Global_262145.f_14691)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("cliffhanger"))
	{
		if (!Global_262145.f_14730 && iVar1 < Global_262145.f_14695)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("contender"))
	{
		if (!Global_262145.f_14729 && iVar1 < Global_262145.f_14694)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("le7b"))
	{
		if (!Global_262145.f_14723 && iVar1 < Global_262145.f_14688)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("omnis"))
	{
		if (!Global_262145.f_14724 && iVar1 < Global_262145.f_14689)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("trophytruck"))
	{
		if (!Global_262145.f_14727 && iVar1 < Global_262145.f_14692)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("trophytruck2"))
	{
		if (!Global_262145.f_14728 && iVar1 < Global_262145.f_14693)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tropos"))
	{
		if (!Global_262145.f_14725 && iVar1 < Global_262145.f_14690)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("gargoyle"))
	{
		if (!Global_262145.f_14733 && iVar1 < Global_262145.f_14698)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("rallytruck"))
	{
		if (!Global_262145.f_14734 && iVar1 < Global_262145.f_14699)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tampa2"))
	{
		if (!Global_262145.f_14722 && iVar1 < Global_262145.f_14687)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tyrus"))
	{
		if (!Global_262145.f_14721 && iVar1 < Global_262145.f_14686)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("sheava"))
	{
		if (!Global_262145.f_14720 && iVar1 < Global_262145.f_14685)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("lynx"))
	{
		if (!Global_262145.f_14732 && iVar1 < Global_262145.f_14697)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("stalion2"))
	{
		if (!Global_262145.f_14735 && iVar1 < Global_262145.f_14700)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("gauntlet2"))
	{
		if (!Global_262145.f_14736 && iVar1 < Global_262145.f_14701)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("dominator2"))
	{
		if (!Global_262145.f_14737 && iVar1 < Global_262145.f_14702)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("buffalo3"))
	{
		if (!Global_262145.f_14738 && iVar1 < Global_262145.f_14703)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("defiler"))
	{
		if (!Global_262145.f_14884 && iVar1 < Global_262145.f_14906)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("nightblade"))
	{
		if (!Global_262145.f_14885 && iVar1 < Global_262145.f_14907)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("zombiea"))
	{
		if (!Global_262145.f_14886 && iVar1 < Global_262145.f_14908)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("esskey"))
	{
		if (!Global_262145.f_14888 && iVar1 < Global_262145.f_14909)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("avarus"))
	{
		if (!Global_262145.f_14889 && iVar1 < Global_262145.f_14910)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("zombieb"))
	{
		if (!Global_262145.f_14890 && iVar1 < Global_262145.f_14911)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("hakuchou2"))
	{
		if (!Global_262145.f_14891 && iVar1 < Global_262145.f_14912)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("vortex"))
	{
		if (!Global_262145.f_14892 && iVar1 < Global_262145.f_14913)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("shotaro"))
	{
		if (!Global_262145.f_14893 && iVar1 < Global_262145.f_14914)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("chimera"))
	{
		if (!Global_262145.f_14894 && iVar1 < Global_262145.f_14915)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("raptor"))
	{
		if (!Global_262145.f_14895 && iVar1 < Global_262145.f_14916)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("daemon2"))
	{
		if (!Global_262145.f_14896 && iVar1 < Global_262145.f_14917)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("blazer4"))
	{
		if (!Global_262145.f_14897 && iVar1 < Global_262145.f_14918)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tornado6"))
	{
		if (!Global_262145.f_14903 && iVar1 < Global_262145.f_14925)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("youga2"))
	{
		if (!Global_262145.f_14900 && iVar1 < Global_262145.f_14921)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("wolfsbane"))
	{
		if (!Global_262145.f_14901 && iVar1 < Global_262145.f_14922)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("faggio3"))
	{
		if (!Global_262145.f_14902 && iVar1 < Global_262145.f_14923)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("faggio"))
	{
		if (!Global_262145.f_14887 && iVar1 < Global_262145.f_14924)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("bagger"))
	{
		if (!Global_262145.f_14904 && iVar1 < Global_262145.f_14926)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("sanctus"))
	{
		if (!Global_262145.f_14898 && iVar1 < Global_262145.f_14919)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("manchez"))
	{
		if (!Global_262145.f_14899 && iVar1 < Global_262145.f_14920)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("ratbike"))
	{
		if (!Global_262145.f_14905 && iVar1 < Global_262145.f_14927)
		{
			iVar0 = 0;
		}
	}
	return iVar0;
}

bool func_341()//Position - 0x3D975
{
	return false;
}

bool func_342()//Position - 0x3D97E
{
	return true;
}

bool func_343()//Position - 0x3D987
{
	return true;
}

bool func_344()//Position - 0x3D990
{
	if (dlc2::is_dlc_present(-1226939934))
	{
		return true;
	}
	return false;
}

bool func_345()//Position - 0x3D9A9
{
	int iVar0;
	
	if (network::network_is_signed_in())
	{
		if (network::_network_are_ros_available())
		{
			if (network::_0x593570C289A77688())
			{
				stats::stat_get_int(joaat("sp_unlock_exclus_content"), &iVar0, -1);
				gameplay::set_bit(&iVar0, 2);
				gameplay::set_bit(&iVar0, 4);
				gameplay::set_bit(&iVar0, 6);
				gameplay::set_bit(&Global_25, 2);
				gameplay::set_bit(&Global_25, 4);
				gameplay::set_bit(&Global_25, 6);
				stats::stat_set_int(joaat("sp_unlock_exclus_content"), iVar0, 1);
				if (gameplay::_0x5AA3BEFA29F03AD4())
				{
					iVar0 = gameplay::get_profile_setting(866);
					gameplay::set_bit(&iVar0, 0);
					stats::_0xDAC073C7901F9E15(iVar0);
				}
				return true;
			}
		}
	}
	if (Global_138925 == 2)
	{
		return true;
	}
	else if (Global_138925 == 3)
	{
		return false;
	}
	if (gameplay::_0x5AA3BEFA29F03AD4())
	{
		if (gameplay::is_bit_set(gameplay::get_profile_setting(866), 0))
		{
			return true;
		}
	}
	return false;
}

bool func_346(int iParam0)//Position - 0x3DA64
{
	int iVar0;
	char* sVar1;
	
	iVar0 = entity::get_entity_model(iParam0);
	sVar1 = vehicle::get_vehicle_number_plate_text(iParam0);
	if (iVar0 == joaat("speedo") && gameplay::are_strings_equal(sVar1, "LAMAR G "))
	{
		return true;
	}
	if (!func_339(iVar0, 0))
	{
		return true;
	}
	return false;
}

bool func_347(int iParam0)//Position - 0x3DAAB
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 3)
	{
		if (entity::does_entity_exist(Global_89100[iVar0]))
		{
			if (Global_89100[iVar0] == iParam0)
			{
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

bool func_348(int iParam0)//Position - 0x3DAE6
{
	int iVar0;
	
	if (entity::does_entity_exist(iParam0) && vehicle::is_vehicle_driveable(iParam0, 0))
	{
		iVar0 = 0;
		while (iVar0 < 9)
		{
			if (entity::does_entity_exist(Global_89070[iVar0]) && vehicle::is_vehicle_driveable(Global_89070[iVar0], 0))
			{
				if (Global_89070[iVar0] == iParam0 && entity::get_entity_model(Global_89070[iVar0]) == entity::get_entity_model(iParam0))
				{
					return true;
				}
			}
			iVar0++;
		}
	}
	return false;
}

bool func_349(int iParam0)//Position - 0x3DB62
{
	int iVar0;
	
	if (entity::does_entity_exist(Global_68446.f_484[24]))
	{
		if (iParam0 == Global_68446.f_484[24])
		{
			return false;
		}
	}
	iVar0 = 0;
	while (iVar0 < 68)
	{
		if (entity::does_entity_exist(Global_68446.f_484[iVar0]))
		{
			if ((((((((((((iVar0 != 24 && iVar0 != 21) && iVar0 != 22) && iVar0 != 23) && iVar0 != 27) && iVar0 != 30) && iVar0 != 33) && iVar0 != 28) && iVar0 != 31) && iVar0 != 34) && iVar0 != 26) && iVar0 != 29) && iVar0 != 32)
			{
				if (iParam0 == Global_68446.f_484[iVar0])
				{
					return true;
				}
			}
		}
		iVar0++;
	}
	return false;
}

int func_350(int iParam0)//Position - 0x3DC4A
{
	if (iParam0 == -1)
	{
		return 0;
	}
	return Global_68446.f_139[iParam0];
}

int func_351(var uParam0, int iParam1)//Position - 0x3DC66
{
	int iVar0;
	int iVar1;
	
	*uParam0 = { 0f, 0f, 0f };
	uParam0->f_3 = 0f;
	uParam0->f_4 = 0;
	StringCopy(&(uParam0->f_5), "", 16);
	uParam0->f_9 = 0;
	uParam0->f_10 = 0;
	uParam0->f_11 = 0;
	uParam0->f_12 = 145;
	uParam0->f_13 = -1;
	uParam0->f_14 = 0;
	uParam0->f_15 = { 0f, 0f, 0f };
	uParam0->f_18 = { 0f, 0f, 0f };
	switch (iParam1)
	{
		case 0:
			*uParam0 = { -831.8538f, 172.1154f, 69.9058f };
			uParam0->f_3 = 157.5705f;
			uParam0->f_4 = func_47(0, 1);
			uParam0->f_12 = 0;
			gameplay::set_bit(&(uParam0->f_9), 20);
			gameplay::set_bit(&(uParam0->f_9), 7);
			iVar0 = 1;
			break;
		
		case 1:
			*uParam0 = { 1970.943f, 3801.684f, 31.1396f };
			uParam0->f_3 = 301.3964f;
			uParam0->f_4 = func_47(0, 1);
			uParam0->f_12 = 0;
			gameplay::set_bit(&(uParam0->f_9), 20);
			gameplay::set_bit(&(uParam0->f_9), 7);
			iVar0 = 1;
			break;
		
		case 2:
			*uParam0 = { -22.6297f, -1439.137f, 29.6549f };
			uParam0->f_3 = 180.0808f;
			uParam0->f_4 = func_47(1, 1);
			uParam0->f_12 = 1;
			gameplay::set_bit(&(uParam0->f_9), 20);
			gameplay::set_bit(&(uParam0->f_9), 7);
			iVar0 = 1;
			break;
		
		case 3:
			*uParam0 = { -22.5229f, -1434.699f, 29.6552f };
			uParam0->f_3 = 141.6114f;
			uParam0->f_4 = func_47(1, 2);
			uParam0->f_12 = 1;
			gameplay::set_bit(&(uParam0->f_9), 19);
			gameplay::set_bit(&(uParam0->f_9), 7);
			iVar0 = 1;
			break;
		
		case 4:
			*uParam0 = { 10.9281f, 545.669f, 174.7951f };
			uParam0->f_3 = 61.392f;
			uParam0->f_4 = func_47(1, 1);
			uParam0->f_12 = 1;
			gameplay::set_bit(&(uParam0->f_9), 20);
			gameplay::set_bit(&(uParam0->f_9), 7);
			iVar0 = 1;
			break;
		
		case 5:
			*uParam0 = { 6.1093f, 544.9742f, 174.2835f };
			uParam0->f_3 = 92.1548f;
			uParam0->f_4 = func_47(1, 2);
			uParam0->f_12 = 1;
			gameplay::set_bit(&(uParam0->f_9), 19);
			gameplay::set_bit(&(uParam0->f_9), 7);
			iVar0 = 1;
			break;
		
		case 6:
			*uParam0 = { 1981.416f, 3808.131f, 31.1384f };
			uParam0->f_3 = 117.2557f;
			uParam0->f_4 = func_47(2, 1);
			uParam0->f_12 = 2;
			gameplay::set_bit(&(uParam0->f_9), 20);
			gameplay::set_bit(&(uParam0->f_9), 7);
			iVar0 = 1;
			break;
		
		case 7:
			*uParam0 = { -1158.488f, -1529.367f, 3.8995f };
			uParam0->f_3 = 35.7505f;
			uParam0->f_4 = func_47(2, 1);
			uParam0->f_12 = 2;
			gameplay::set_bit(&(uParam0->f_9), 20);
			gameplay::set_bit(&(uParam0->f_9), 7);
			iVar0 = 1;
			break;
		
		case 8:
			*uParam0 = { 148.2868f, -1270.569f, 28.2252f };
			uParam0->f_3 = 208.4685f;
			uParam0->f_4 = func_47(2, 1);
			uParam0->f_12 = 2;
			gameplay::set_bit(&(uParam0->f_9), 20);
			gameplay::set_bit(&(uParam0->f_9), 7);
			iVar0 = 1;
			break;
		
		case 9:
			*uParam0 = { 1459.509f, -1380.45f, 78.3259f };
			uParam0->f_3 = 99.6211f;
			uParam0->f_4 = joaat("scorcher");
			gameplay::set_bit(&(uParam0->f_9), 6);
			iVar0 = 1;
			break;
		
		case 10:
			*uParam0 = { -1518.947f, -1387.865f, -0.5134f };
			uParam0->f_3 = 98.3867f;
			uParam0->f_4 = joaat("seashark");
			iVar0 = 1;
			gameplay::set_bit(&(uParam0->f_9), 6);
			break;
		
		case 11:
			*uParam0 = { 353.0926f, 3577.593f, 32.351f };
			uParam0->f_3 = 16.6205f;
			uParam0->f_4 = joaat("duster");
			iVar0 = 1;
			gameplay::set_bit(&(uParam0->f_9), 6);
			break;
		
		case 12:
			uParam0->f_14 = 0;
			*uParam0 = { -1652.004f, -3142.348f, 12.9921f };
			uParam0->f_3 = 329.1082f;
			uParam0->f_12 = 0;
			uParam0->f_13 = 359;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 28);
			iVar0 = 1;
			break;
		
		case 13:
			uParam0->f_14 = 1;
			*uParam0 = { -1271.649f, -3380.685f, 12.9451f };
			uParam0->f_3 = 329.5137f;
			uParam0->f_12 = 1;
			uParam0->f_13 = 359;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 28);
			iVar0 = 1;
			break;
		
		case 14:
			uParam0->f_14 = 2;
			*uParam0 = { 1735.586f, 3294.531f, 40.1651f };
			uParam0->f_3 = 194.9525f;
			uParam0->f_12 = 2;
			uParam0->f_13 = 359;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 28);
			iVar0 = 1;
			break;
		
		case 15:
			uParam0->f_14 = 3;
			*uParam0 = { -846.27f, -1363.19f, 0.22f };
			uParam0->f_3 = 108.78f;
			uParam0->f_12 = 0;
			uParam0->f_13 = 356;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 22);
			gameplay::set_bit(&(uParam0->f_9), 28);
			iVar0 = 1;
			break;
		
		case 16:
			uParam0->f_14 = 4;
			*uParam0 = { -849.47f, -1354.99f, 0.24f };
			uParam0->f_3 = 109.84f;
			uParam0->f_12 = 1;
			uParam0->f_13 = 356;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 22);
			gameplay::set_bit(&(uParam0->f_9), 28);
			iVar0 = 1;
			break;
		
		case 17:
			uParam0->f_14 = 5;
			*uParam0 = { -852.47f, -1346.2f, 0.21f };
			uParam0->f_3 = 108.76f;
			uParam0->f_12 = 2;
			uParam0->f_13 = 356;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 22);
			gameplay::set_bit(&(uParam0->f_9), 28);
			iVar0 = 1;
			break;
		
		case 18:
			uParam0->f_14 = 6;
			*uParam0 = { -745.857f, -1433.904f, 4.0005f };
			uParam0->f_12 = 0;
			uParam0->f_13 = 360;
			uParam0->f_15 = { -756.2952f, -1441.609f, 2.9184f };
			uParam0->f_18 = { -738.0606f, -1423.068f, 8.2835f };
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 28);
			iVar0 = 1;
			break;
		
		case 19:
			uParam0->f_14 = 7;
			*uParam0 = { -761.8486f, -1453.829f, 4.0005f };
			uParam0->f_12 = 1;
			uParam0->f_13 = 360;
			uParam0->f_15 = { -772.8158f, -1459.957f, 3.2894f };
			uParam0->f_18 = { -754.3353f, -1440.836f, 8.3334f };
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 28);
			iVar0 = 1;
			break;
		
		case 20:
			uParam0->f_14 = 8;
			*uParam0 = { 1769.3f, 3244f, 41.1f };
			uParam0->f_12 = 2;
			uParam0->f_13 = 360;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 23);
			gameplay::set_bit(&(uParam0->f_9), 28);
			iVar0 = 1;
			break;
		
		case 21:
			uParam0->f_14 = 9;
			*uParam0 = { 192.7897f, -1020.539f, -99.98f };
			uParam0->f_3 = 180f;
			uParam0->f_4 = 0;
			uParam0->f_12 = 0;
			uParam0->f_13 = 357;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 24);
			gameplay::set_bit(&(uParam0->f_9), 28);
			gameplay::set_bit(&(uParam0->f_9), 29);
			iVar0 = 1;
			break;
		
		case 22:
			uParam0->f_14 = 10;
			*uParam0 = { 192.7897f, -1020.539f, -99.98f };
			uParam0->f_3 = 180f;
			uParam0->f_4 = 0;
			uParam0->f_12 = 1;
			uParam0->f_13 = 357;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 24);
			gameplay::set_bit(&(uParam0->f_9), 28);
			gameplay::set_bit(&(uParam0->f_9), 29);
			iVar0 = 1;
			break;
		
		case 23:
			uParam0->f_14 = 11;
			*uParam0 = { 192.7897f, -1020.539f, -99.98f };
			uParam0->f_3 = 180f;
			uParam0->f_4 = 0;
			uParam0->f_12 = 2;
			uParam0->f_13 = 357;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 14);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 24);
			gameplay::set_bit(&(uParam0->f_9), 28);
			gameplay::set_bit(&(uParam0->f_9), 29);
			iVar0 = 1;
			break;
		
		case 26:
		case 27:
		case 28:
			iVar1 = (iParam1 - 26);
			uParam0->f_14 = (12 + iVar1);
			*uParam0 = { 196.2794f, -1020.479f, -99.98f };
			uParam0->f_3 = 180f;
			uParam0->f_4 = 0;
			uParam0->f_12 = (0 + iVar1);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 27);
			gameplay::set_bit(&(uParam0->f_9), 24);
			gameplay::set_bit(&(uParam0->f_9), 29);
			iVar0 = 1;
			break;
		
		case 29:
		case 30:
		case 31:
			iVar1 = (iParam1 - 29);
			uParam0->f_14 = (15 + iVar1);
			*uParam0 = { 199.8872f, -1020.048f, -99.98f };
			uParam0->f_3 = 180f;
			uParam0->f_4 = 0;
			uParam0->f_12 = (0 + iVar1);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 27);
			gameplay::set_bit(&(uParam0->f_9), 24);
			gameplay::set_bit(&(uParam0->f_9), 29);
			iVar0 = 1;
			break;
		
		case 32:
		case 33:
		case 34:
			iVar1 = (iParam1 - 32);
			uParam0->f_14 = (18 + iVar1);
			*uParam0 = { 203.6006f, -1019.776f, -99.98f };
			uParam0->f_3 = 180f;
			uParam0->f_4 = 0;
			uParam0->f_12 = (0 + iVar1);
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 12);
			gameplay::set_bit(&(uParam0->f_9), 7);
			gameplay::set_bit(&(uParam0->f_9), 27);
			gameplay::set_bit(&(uParam0->f_9), 24);
			gameplay::set_bit(&(uParam0->f_9), 29);
			iVar0 = 1;
			break;
		
		case 24:
			uParam0->f_14 = 21;
			*uParam0 = { 0f, 0f, 0f };
			uParam0->f_3 = 0f;
			uParam0->f_4 = 0;
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 11);
			gameplay::set_bit(&(uParam0->f_9), 13);
			gameplay::set_bit(&(uParam0->f_9), 12);
			iVar0 = 1;
			break;
		
		case 25:
			uParam0->f_14 = 22;
			*uParam0 = { 723.2515f, -632.0496f, 27.1484f };
			uParam0->f_3 = 12.9316f;
			uParam0->f_4 = joaat("tailgater");
			gameplay::set_bit(&(uParam0->f_9), 10);
			gameplay::set_bit(&(uParam0->f_9), 11);
			gameplay::set_bit(&(uParam0->f_9), 13);
			gameplay::set_bit(&(uParam0->f_9), 12);
			iVar0 = 1;
			break;
		
		case 35:
			*uParam0 = { -51.23f, 3111.9f, 24.95f };
			uParam0->f_3 = 46.78f;
			uParam0->f_4 = joaat("proptrailer");
			gameplay::set_bit(&(uParam0->f_9), 8);
			iVar0 = 1;
			break;
		
		case 36:
			*uParam0 = { -55.7984f, -1096.586f, 25.4223f };
			uParam0->f_3 = 308.0596f;
			uParam0->f_4 = joaat("bjxl");
			uParam0->f_10 = 126;
			uParam0->f_11 = 126;
			gameplay::set_bit(&(uParam0->f_9), 9);
			gameplay::set_bit(&(uParam0->f_9), 13);
			iVar0 = 1;
			break;
		
		case 37:
			*uParam0 = { -2892.93f, 3192.37f, 11.66f };
			uParam0->f_3 = -132.35f;
			uParam0->f_4 = joaat("velum");
			uParam0->f_10 = 157;
			uParam0->f_11 = 157;
			gameplay::set_bit(&(uParam0->f_9), 9);
			gameplay::set_bit(&(uParam0->f_9), 23);
			gameplay::set_bit(&(uParam0->f_9), 13);
			iVar0 = 1;
			break;
		
		case 38:
			*uParam0 = { 1744.308f, 3270.673f, 40.2076f };
			uParam0->f_3 = 125f;
			uParam0->f_4 = joaat("cargobob3");
			gameplay::set_bit(&(uParam0->f_9), 23);
			gameplay::set_bit(&(uParam0->f_9), 8);
			iVar0 = 1;
			break;
		
		case 39:
			*uParam0 = { 1751.44f, 3322.643f, 42.1855f };
			uParam0->f_3 = 268.134f;
			uParam0->f_4 = joaat("submersible");
			gameplay::set_bit(&(uParam0->f_9), 23);
			iVar0 = 1;
			break;
		
		case 41:
			*uParam0 = { 1377.104f, -2076.2f, 52f };
			uParam0->f_3 = 37.5f;
			uParam0->f_4 = joaat("towtruck");
			gameplay::set_bit(&(uParam0->f_9), 8);
			iVar0 = 1;
			break;
		
		case 40:
			*uParam0 = { 1380.42f, -2072.77f, 51.7607f };
			uParam0->f_3 = 37.5f;
			uParam0->f_4 = joaat("trash");
			gameplay::set_bit(&(uParam0->f_9), 8);
			iVar0 = 1;
			break;
		
		case 42:
			*uParam0 = { 1359.389f, 3618.441f, 33.8907f };
			uParam0->f_3 = 108.2337f;
			uParam0->f_4 = joaat("barracks");
			gameplay::set_bit(&(uParam0->f_9), 8);
			iVar0 = 1;
			break;
		
		case 43:
			*uParam0 = { 693.1154f, -1018.155f, 21.6387f };
			uParam0->f_3 = 177.6454f;
			uParam0->f_4 = 1938952078;
			gameplay::set_bit(&(uParam0->f_9), 23);
			gameplay::set_bit(&(uParam0->f_9), 8);
			iVar0 = 1;
			break;
		
		case 44:
			*uParam0 = { -73.6963f, 495.124f, 143.5226f };
			uParam0->f_3 = 155.5994f;
			uParam0->f_4 = joaat("vacca");
			iVar0 = 1;
			break;
		
		case 45:
			*uParam0 = { -67.6314f, 891.8266f, 234.5348f };
			uParam0->f_3 = 294.993f;
			uParam0->f_4 = joaat("surano");
			iVar0 = 1;
			break;
		
		case 46:
			*uParam0 = { 533.9048f, -169.2469f, 53.7005f };
			uParam0->f_3 = 1.2998f;
			uParam0->f_4 = joaat("tornado2");
			iVar0 = 1;
			break;
		
		case 47:
			*uParam0 = { -726.8914f, -408.6952f, 34.0416f };
			uParam0->f_3 = 267.7392f;
			uParam0->f_4 = joaat("superd");
			iVar0 = 1;
			break;
		
		case 48:
			*uParam0 = { -1321.519f, 261.3993f, 61.5709f };
			uParam0->f_3 = 350.7697f;
			uParam0->f_4 = joaat("double");
			iVar0 = 1;
			break;
		
		case 49:
			*uParam0 = { -1267.999f, 451.6463f, 93.7071f };
			uParam0->f_3 = 48.9311f;
			uParam0->f_4 = joaat("double");
			iVar0 = 1;
			break;
		
		case 50:
			*uParam0 = { -1062.076f, -226.7637f, 37.157f };
			uParam0->f_3 = 234.2767f;
			uParam0->f_4 = joaat("double");
			iVar0 = 1;
			break;
		
		case 51:
			*uParam0 = { 68.16914f, -1558.958f, 29.46904f };
			uParam0->f_3 = 49.90575f;
			uParam0->f_4 = joaat("rumpo2");
			uParam0->f_12 = 2;
			gameplay::set_bit(&(uParam0->f_9), 26);
			iVar0 = 1;
			break;
		
		case 52:
			*uParam0 = { 589.4399f, 2736.708f, 42.03316f };
			uParam0->f_3 = -175.7105f;
			uParam0->f_4 = joaat("rumpo2");
			uParam0->f_12 = 2;
			gameplay::set_bit(&(uParam0->f_9), 26);
			iVar0 = 1;
			break;
		
		case 53:
			*uParam0 = { -488.774f, -344.5721f, 34.36356f };
			uParam0->f_3 = 82.4042f;
			uParam0->f_4 = joaat("rumpo2");
			uParam0->f_12 = 2;
			gameplay::set_bit(&(uParam0->f_9), 26);
			iVar0 = 1;
			break;
		
		case 54:
			*uParam0 = { 288.8808f, -585.4728f, 43.15428f };
			uParam0->f_3 = -20.80707f;
			uParam0->f_4 = joaat("rumpo2");
			uParam0->f_12 = 2;
			gameplay::set_bit(&(uParam0->f_9), 26);
			iVar0 = 1;
			break;
		
		case 55:
			*uParam0 = { 304.8294f, -1383.674f, 31.67744f };
			uParam0->f_3 = -41.11603f;
			uParam0->f_4 = joaat("rumpo2");
			uParam0->f_12 = 2;
			gameplay::set_bit(&(uParam0->f_9), 26);
			iVar0 = 1;
			break;
		
		case 56:
			*uParam0 = { 1126.194f, -1481.486f, 34.7016f };
			uParam0->f_3 = -91.43369f;
			uParam0->f_4 = joaat("rumpo2");
			uParam0->f_12 = 2;
			gameplay::set_bit(&(uParam0->f_9), 26);
			iVar0 = 1;
			break;
		
		case 57:
			*uParam0 = { -1598.36f, 5252.84f, 0f };
			uParam0->f_3 = 28.14f;
			uParam0->f_4 = joaat("submersible");
			uParam0->f_13 = 308;
			gameplay::set_bit(&(uParam0->f_9), 2);
			gameplay::set_bit(&(uParam0->f_9), 30);
			gameplay::set_bit(&(uParam0->f_9), 6);
			iVar0 = 1;
			break;
		
		case 58:
			*uParam0 = { -1602.62f, 5260.37f, 0.86f };
			uParam0->f_3 = 25.32f;
			uParam0->f_4 = joaat("dinghy");
			uParam0->f_13 = 404;
			gameplay::set_bit(&(uParam0->f_9), 2);
			gameplay::set_bit(&(uParam0->f_9), 22);
			gameplay::set_bit(&(uParam0->f_9), 6);
			iVar0 = 1;
			break;
		
		case 59:
			*uParam0 = { 2116.571f, 4763.279f, 40.1596f };
			uParam0->f_3 = 198.723f;
			uParam0->f_4 = joaat("bfinjection");
			iVar0 = 1;
			break;
		
		case 60:
			*uParam0 = { 1133.21f, 120.2f, 80.9f };
			uParam0->f_3 = 134.4f;
			if (func_345())
			{
				uParam0->f_4 = joaat("blimp2");
			}
			else
			{
				uParam0->f_4 = joaat("blimp");
			}
			uParam0->f_13 = 401;
			gameplay::set_bit(&(uParam0->f_9), 13);
			gameplay::set_bit(&(uParam0->f_9), 2);
			gameplay::set_bit(&(uParam0->f_9), 1);
			gameplay::set_bit(&(uParam0->f_9), 23);
			gameplay::set_bit(&(uParam0->f_9), 21);
			iVar0 = 1;
			break;
		
		case 61:
			*uParam0 = { -806.31f, -2679.65f, 13.9f };
			uParam0->f_3 = 150.54f;
			if (func_345())
			{
				uParam0->f_4 = joaat("blimp2");
			}
			else
			{
				uParam0->f_4 = joaat("blimp");
			}
			uParam0->f_13 = 401;
			gameplay::set_bit(&(uParam0->f_9), 13);
			gameplay::set_bit(&(uParam0->f_9), 2);
			gameplay::set_bit(&(uParam0->f_9), 1);
			gameplay::set_bit(&(uParam0->f_9), 23);
			gameplay::set_bit(&(uParam0->f_9), 21);
			iVar0 = 1;
			break;
		
		case 62:
			*uParam0 = { 1985.85f, 3828.96f, 31.98f };
			uParam0->f_3 = -16.58f;
			uParam0->f_4 = joaat("blazer3");
			gameplay::set_bit(&(uParam0->f_9), 6);
			iVar0 = 1;
			break;
		
		case 63:
			*uParam0 = { 3870.75f, 4464.67f, 0f };
			uParam0->f_3 = 0f;
			uParam0->f_4 = joaat("submersible2");
			uParam0->f_13 = 308;
			gameplay::set_bit(&(uParam0->f_9), 0);
			gameplay::set_bit(&(uParam0->f_9), 21);
			gameplay::set_bit(&(uParam0->f_9), 23);
			gameplay::set_bit(&(uParam0->f_9), 6);
			gameplay::set_bit(&(uParam0->f_9), 30);
			iVar0 = 1;
			break;
		
		case 64:
			*uParam0 = { 1257.729f, -2564.474f, 41.717f };
			uParam0->f_3 = 284.5561f;
			uParam0->f_4 = joaat("dukes2");
			gameplay::set_bit(&(uParam0->f_9), 6);
			iVar0 = 1;
			break;
		
		case 65:
			*uParam0 = { 643.2823f, 3014.152f, 42.2733f };
			uParam0->f_3 = 128.0554f;
			uParam0->f_4 = joaat("dukes2");
			gameplay::set_bit(&(uParam0->f_9), 6);
			iVar0 = 1;
			break;
		
		case 66:
			*uParam0 = { 38.9368f, 850.8677f, 196.3f };
			uParam0->f_3 = 311.6813f;
			uParam0->f_4 = joaat("dodo");
			gameplay::set_bit(&(uParam0->f_9), 30);
			gameplay::set_bit(&(uParam0->f_9), 23);
			gameplay::set_bit(&(uParam0->f_9), 6);
			iVar0 = 1;
			break;
		
		case 67:
			*uParam0 = { 1333.875f, 4262.226f, 30.78f };
			uParam0->f_3 = 262.5293f;
			uParam0->f_4 = joaat("dodo");
			gameplay::set_bit(&(uParam0->f_9), 30);
			gameplay::set_bit(&(uParam0->f_9), 23);
			gameplay::set_bit(&(uParam0->f_9), 6);
			iVar0 = 1;
			break;
	}
	if (gameplay::is_bit_set(uParam0->f_9, 10))
	{
		uParam0->f_4 = Global_101553.f_18972.f_69[uParam0->f_14 /*78*/].f_66;
		if (iParam1 == 14)
		{
			if (((((uParam0->f_4 == joaat("miljet") || uParam0->f_4 == joaat("besra")) || uParam0->f_4 == joaat("luxor")) || uParam0->f_4 == joaat("shamal")) || uParam0->f_4 == joaat("titan")) || uParam0->f_4 == joaat("luxor2"))
			{
				*uParam0 = { 1678.8f, 3229.6f, 41.8f };
				uParam0->f_3 = 106.0906f;
			}
		}
		if (!func_74(Global_101553.f_18972.f_1864[uParam0->f_14 /*3*/], 0f, 0f, 0f, 0))
		{
			*uParam0 = { Global_101553.f_18972.f_1864[uParam0->f_14 /*3*/] };
		}
		if (Global_101553.f_18972.f_1934[uParam0->f_14] != -1f)
		{
			uParam0->f_3 = Global_101553.f_18972.f_1934[uParam0->f_14];
		}
	}
	if (gameplay::is_bit_set(uParam0->f_9, 19))
	{
		if (!func_74(Global_101553.f_1991.f_539.f_2816[1 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
		{
			*uParam0 = { Global_101553.f_1991.f_539.f_2816[1 /*10*/][uParam0->f_12 /*3*/] };
			uParam0->f_3 = Global_101553.f_1991.f_539.f_2837[1 /*4*/][uParam0->f_12];
		}
	}
	else if (gameplay::is_bit_set(uParam0->f_9, 20))
	{
		if (!func_74(Global_101553.f_1991.f_539.f_2816[0 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
		{
			*uParam0 = { Global_101553.f_1991.f_539.f_2816[0 /*10*/][uParam0->f_12 /*3*/] };
			uParam0->f_3 = Global_101553.f_1991.f_539.f_2837[0 /*4*/][uParam0->f_12];
		}
	}
	return iVar0;
}

void func_352(int iParam0, var uParam1, vector3 vParam2, float fParam5, int iParam6)//Position - 0x3F35D
{
	if (func_351(&(Global_68446.f_555[0 /*21*/]), iParam0))
	{
		if (gameplay::is_bit_set(Global_68446.f_555[0 /*21*/].f_9, 10))
		{
			func_357(iParam0);
			func_356(uParam1, &(Global_101553.f_18972.f_69[Global_68446.f_555[0 /*21*/].f_14 /*78*/]));
			if (gameplay::is_bit_set(Global_68446.f_555[0 /*21*/].f_9, 11))
			{
				Global_101553.f_18972.f_1864[Global_68446.f_555[0 /*21*/].f_14 /*3*/] = { vParam2 };
				Global_101553.f_18972.f_1934[Global_68446.f_555[0 /*21*/].f_14] = fParam5;
			}
			else
			{
				Global_101553.f_18972.f_1864[Global_68446.f_555[0 /*21*/].f_14 /*3*/] = { 0f, 0f, 0f };
				Global_101553.f_18972.f_1934[Global_68446.f_555[0 /*21*/].f_14] = -1f;
			}
			Global_101553.f_18972.f_1958[Global_68446.f_555[0 /*21*/].f_14] = iParam6 + 1;
			func_353(iParam0, 1);
		}
	}
}

void func_353(int iParam0, int iParam1)//Position - 0x3F45C
{
	if (iParam0 == -1)
	{
		return;
	}
	if (iParam1)
	{
		if (!func_355(iParam0, 0))
		{
			func_354(iParam0, 1, 0);
			func_354(iParam0, 2, 0);
			func_354(iParam0, 3, 0);
			func_354(iParam0, 4, 0);
			func_354(iParam0, 0, 1);
			Global_68446[iParam0] = 1;
		}
	}
	else
	{
		func_354(iParam0, 0, 0);
	}
}

void func_354(int iParam0, int iParam1, int iParam2)//Position - 0x3F4B9
{
	if (iParam0 == -1)
	{
		return;
	}
	if (iParam2)
	{
		gameplay::set_bit(&(Global_101553.f_18972[iParam0]), iParam1);
	}
	else
	{
		gameplay::clear_bit(&(Global_101553.f_18972[iParam0]), iParam1);
	}
}

int func_355(int iParam0, int iParam1)//Position - 0x3F4F4
{
	if (iParam0 == -1)
	{
		return false;
	}
	return gameplay::is_bit_set(Global_101553.f_18972[iParam0], iParam1);
}

void func_356(var uParam0, var uParam1)//Position - 0x3F517
{
	uParam1->f_66 = uParam0->f_66;
	*uParam1 = *uParam0;
	uParam1->f_1 = { uParam0->f_1 };
	uParam1->f_5 = uParam0->f_5;
	uParam1->f_6 = uParam0->f_6;
	uParam1->f_7 = uParam0->f_7;
	uParam1->f_8 = uParam0->f_8;
	uParam1->f_9 = { uParam0->f_9 };
	uParam1->f_59 = { uParam0->f_59 };
	uParam1->f_62 = uParam0->f_62;
	uParam1->f_63 = uParam0->f_63;
	uParam1->f_64 = uParam0->f_64;
	uParam1->f_65 = uParam0->f_65;
	uParam1->f_77 = uParam0->f_77;
	uParam1->f_67 = uParam0->f_67;
	uParam1->f_69 = uParam0->f_69;
	uParam1->f_68 = uParam0->f_68;
	uParam1->f_71 = uParam0->f_71;
	uParam1->f_72 = uParam0->f_72;
	uParam1->f_73 = uParam0->f_73;
	uParam1->f_74 = uParam0->f_74;
	uParam1->f_75 = uParam0->f_75;
	uParam1->f_76 = uParam0->f_76;
}

void func_357(int iParam0)//Position - 0x3F5E3
{
	if (iParam0 == -1)
	{
		return;
	}
	if (func_351(&(Global_68446.f_555[0 /*21*/]), iParam0))
	{
		if (entity::does_entity_exist(Global_68446.f_139[iParam0]))
		{
			entity::set_entity_as_mission_entity(Global_68446.f_139[iParam0], true, 1);
			entity::set_vehicle_as_no_longer_needed(&(Global_68446.f_139[iParam0]));
			Global_68446.f_139[iParam0] = 0;
		}
		if (gameplay::is_bit_set(Global_68446.f_555[0 /*21*/].f_9, 13))
		{
			func_353(iParam0, 0);
		}
	}
}

void func_358(int iParam0)//Position - 0x3F65D
{
	if (iParam0 != 24 && iParam0 != 25)
	{
	}
	func_357(iParam0);
	func_353(iParam0, 0);
}

int func_359(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x3F684
{
	func_273(uParam0, 145, sParam1, iParam4, iParam5, iParam6);
	if (iParam3 > 7)
	{
		if (iParam3 < 12)
		{
			iParam3 = 7;
		}
	}
	Global_15752 = 0;
	Global_15754 = 0;
	Global_15759 = 0;
	Global_16736 = 0;
	Global_16738 = 1;
	Global_16742 = 0;
	Global_16740 = iParam7;
	Global_2621441 = 0;
	return func_265(sParam2, iParam3, 0);
}

var func_360()//Position - 0x3F6D7
{
	return Global_89048;
}

int func_361()//Position - 0x3F6E3
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	float fVar4;
	float fVar5;
	
	iVar2 = ped::get_ped_nearby_vehicles(Local_1071[2 /*14*/], &uLocal_1995);
	fVar4 = 1000f;
	iVar3 = 0;
	while (iVar3 <= (iVar2 - 1))
	{
		if (entity::does_entity_exist(uLocal_1995[iVar3]))
		{
			if ((vehicle::is_vehicle_driveable(uLocal_1995[iVar3], 0) && !entity::is_entity_upsidedown(uLocal_1995[iVar3])) && !fire::is_entity_on_fire(uLocal_1995[iVar3]))
			{
				if ((((!vehicle::is_this_model_a_plane(entity::get_entity_model(uLocal_1995[iVar3])) && !vehicle::is_this_model_a_heli(entity::get_entity_model(uLocal_1995[iVar3]))) && !ped::is_ped_in_vehicle(player::player_ped_id(), uLocal_1995[iVar3], 1)) && !func_364(entity::get_entity_model(uLocal_1995[iVar3]))) && uLocal_1995[iVar3] != Local_1450[4 /*2*/])
				{
					fVar5 = func_255(Local_1071[2 /*14*/], uLocal_1995[iVar3], 1);
					if (func_362(uLocal_1995[iVar3], 0, 0, 0, 0, 0, 1, 0))
					{
						if (fVar5 < fVar4)
						{
							fVar4 = fVar5;
							iVar0 = uLocal_1995[iVar3];
						}
					}
					else if (fVar5 < fVar4)
					{
						fVar4 = fVar5;
						iVar1 = uLocal_1995[iVar3];
					}
				}
			}
		}
		iVar3++;
	}
	if (vehicle::is_vehicle_driveable(iVar0, 0))
	{
		return iVar0;
	}
	if (vehicle::is_vehicle_driveable(iVar1, 0))
	{
		return iVar1;
	}
	return 0;
}

bool func_362(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x3F836
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar1 = vehicle::get_vehicle_max_number_of_passengers(iParam0) + 1;
	if (iParam4 || !entity::is_entity_dead(iParam0, 0))
	{
		iVar0 = 0;
		while (iVar0 < iVar1)
		{
			iVar2 = func_363(iParam0, (iVar0 - 1), iParam6, iParam7);
			if (entity::does_entity_exist(iVar2))
			{
				if (iParam3 && iVar2 == player::player_ped_id())
				{
				}
				else if (iParam2)
				{
					if (!ped::is_ped_injured(iVar2))
					{
						if (ped::is_ped_a_player(iVar2))
						{
							if (player::get_player_wanted_level(network::_network_get_ped_player(iVar2)) == 0)
							{
								if (!iParam5)
								{
									return false;
								}
							}
							else
							{
								return false;
							}
						}
					}
					else if (iParam1 == 0)
					{
						return false;
					}
				}
				else if (iParam1 == 0)
				{
					return false;
				}
				else if (!ped::is_ped_injured(iVar2))
				{
					return false;
				}
			}
			iVar0++;
		}
	}
	return true;
}

int func_363(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x3F8FE
{
	int iVar0;
	
	if (!vehicle::is_vehicle_seat_free(iParam0, iParam1, iParam3))
	{
		iVar0 = vehicle::get_ped_in_vehicle_seat(iParam0, iParam1, iParam3);
	}
	if (iParam2)
	{
		if (!entity::does_entity_exist(iVar0) && !entity::is_entity_dead(iParam0, 0))
		{
			iVar0 = vehicle::get_last_ped_in_vehicle_seat(iParam0, iParam1);
			if (!entity::is_entity_dead(iVar0, 0))
			{
				if (ai::get_script_task_status(iVar0, 451360105) == 1 || ai::get_script_task_status(iVar0, -828834893) == 1)
				{
					if (system::vdist(entity::get_entity_coords(iParam0, 0), entity::get_entity_coords(iVar0, 0)) < 10f)
					{
						return iVar0;
					}
				}
			}
			iVar0 = -1;
		}
	}
	return iVar0;
}

bool func_364(int iParam0)//Position - 0x3F999
{
	if (((((((((((((((iParam0 == joaat("police") || iParam0 == joaat("policeold1")) || iParam0 == joaat("policeold2")) || iParam0 == joaat("police2")) || iParam0 == joaat("police3")) || iParam0 == joaat("police4")) || iParam0 == joaat("fbi")) || iParam0 == joaat("fbi2")) || iParam0 == joaat("polmav")) || iParam0 == joaat("policeb")) || iParam0 == joaat("policet")) || iParam0 == joaat("riot")) || iParam0 == joaat("sheriff")) || iParam0 == joaat("sheriff2")) || iParam0 == joaat("pranger")) || iParam0 == joaat("policet"))
	{
		return true;
	}
	return false;
}

int func_365(int iParam0, int iParam1)//Position - 0x3FA83
{
	if (!entity::is_entity_dead(iParam0, 0) && !entity::is_entity_dead(iParam1, 0))
	{
		if (ped::is_ped_sitting_in_vehicle(iParam0, iParam1))
		{
			if (vehicle::get_ped_in_vehicle_seat(iParam1, -1, 0) == iParam0)
			{
				return -1;
			}
			if (vehicle::get_ped_in_vehicle_seat(iParam1, 0, 0) == iParam0)
			{
				return 0;
			}
			if (vehicle::get_ped_in_vehicle_seat(iParam1, 1, 0) == iParam0)
			{
				return 1;
			}
			if (vehicle::get_ped_in_vehicle_seat(iParam1, 2, 0) == iParam0)
			{
				return 2;
			}
		}
	}
	return -2;
}

int func_366(int iParam0, int iParam1, int iParam2)//Position - 0x3FAF5
{
	return func_259(iParam0, !iParam1, iParam2);
}

bool func_367(int iParam0, int iParam1, vector3 vParam2, float fParam5, int iParam6, int iParam7)//Position - 0x3FB08
{
	int iVar0;
	var uVar1;
	struct<97> Var5;
	int iVar103;
	int iVar104;
	int iVar105;
	char cVar106[16];
	int iVar110;
	
	if (func_14(iParam1))
	{
		Var5.f_11 = 12;
		Var5.f_31 = 49;
		Var5.f_81 = 2;
		func_48(iParam1, &Var5, iParam7);
		if (Var5 == 0)
		{
			return true;
		}
		if (entity::does_entity_exist(*iParam0))
		{
			if (entity::get_entity_model(*iParam0) != Var5)
			{
			}
			return true;
		}
		if ((iParam1 == 0 && !Global_101553.f_1991.f_539.f_3544) && Global_101553.f_7940.f_99.f_58[131])
		{
			Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/] = 0;
		}
		if (Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/] == Var5)
		{
			streaming::request_model(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/]);
			if (streaming::has_model_loaded(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/]))
			{
				*iParam0 = vehicle::create_vehicle(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/], vParam2, fParam5, 0, false);
				vehicle::set_vehicle_on_ground_properly(*iParam0);
				vehicle::_0xAB04325045427AAE(*iParam0, 0);
				vehicle::_0x428BACCDF5E26EAD(*iParam0, false);
				vehicle::set_vehicle_has_strong_axles(*iParam0, true);
				entity::set_entity_health(*iParam0, 1250);
				vehicle::set_vehicle_engine_health(*iParam0, 1250f);
				vehicle::set_vehicle_petrol_tank_health(*iParam0, 1250f);
				Var5.f_3 = 1250;
				vehicle::set_vehicle_colours(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_5, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_6);
				vehicle::set_vehicle_extra_colours(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_7, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_8);
				vehicle::set_vehicle_dirt_level(*iParam0, Var5.f_2);
				iVar103 = 0;
				while (iVar103 < 12)
				{
					vehicle::set_vehicle_extra(*iParam0, iVar103 + 1, !Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_11[iVar103]);
					iVar103++;
				}
				if (Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_24)
				{
					vehicle::set_convertible_roof(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_24);
				}
				if (func_382(&uVar1, &iVar0))
				{
					vehicle::set_vehicle_number_plate_text(*iParam0, &uVar1);
					vehicle::set_vehicle_number_plate_text_index(*iParam0, iVar0);
				}
				else
				{
					vehicle::set_vehicle_number_plate_text(*iParam0, &(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_27));
					if (Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_26 >= 0 && Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_26 < vehicle::get_number_of_vehicle_number_plates())
					{
						vehicle::set_vehicle_number_plate_text_index(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_26);
					}
				}
				vehicle::set_vehicle_tyre_smoke_color(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_84, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_85, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_86);
				vehicle::set_vehicle_tyres_can_burst(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_88);
				vehicle::set_vehicle_window_tint(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_87);
				vehicle::_set_vehicle_neon_lights_colour(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_93, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_94, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_95);
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 2, gameplay::is_bit_set(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_92, 28));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 3, gameplay::is_bit_set(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_92, 29));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 0, gameplay::is_bit_set(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_92, 30));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 1, gameplay::is_bit_set(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_92, 31));
				if (vehicle::get_vehicle_livery_count(*iParam0) > 1 && Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_89 >= 0)
				{
					vehicle::set_vehicle_livery(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_89);
				}
				if (Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_90 > -1)
				{
					if (!vehicle::is_this_model_a_bicycle(entity::get_entity_model(*iParam0)))
					{
						if (vehicle::is_this_model_a_bike(entity::get_entity_model(*iParam0)))
						{
							if (Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_90 == 6)
							{
								vehicle::set_vehicle_wheel_type(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_90);
							}
						}
						else
						{
							vehicle::set_vehicle_wheel_type(*iParam0, Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_90);
						}
					}
				}
				func_378(iParam0, &(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_31), &(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_81));
				vehicle::_set_vehicle_paint_fade(*iParam0, Var5.f_96);
				if (iParam1 == 2)
				{
					if (entity::get_entity_model(*iParam0) == joaat("bodhi2"))
					{
						func_376(iParam0);
					}
				}
				if (iParam6)
				{
					streaming::set_model_as_no_longer_needed(Global_101553.f_1991.f_539.f_1635[0 /*295*/][iParam1 /*98*/]);
				}
				func_375(*iParam0, iParam1);
				return true;
			}
		}
		else if (Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/] == Var5)
		{
			streaming::request_model(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/]);
			if (streaming::has_model_loaded(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/]))
			{
				*iParam0 = vehicle::create_vehicle(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/], vParam2, fParam5, 0, false);
				vehicle::set_vehicle_on_ground_properly(*iParam0);
				vehicle::_0xAB04325045427AAE(*iParam0, 0);
				vehicle::_0x428BACCDF5E26EAD(*iParam0, false);
				vehicle::set_vehicle_has_strong_axles(*iParam0, true);
				entity::set_entity_health(*iParam0, 1250);
				vehicle::set_vehicle_engine_health(*iParam0, 1250f);
				vehicle::set_vehicle_petrol_tank_health(*iParam0, 1250f);
				Var5.f_3 = 1250;
				vehicle::set_vehicle_colours(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_5, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_6);
				vehicle::set_vehicle_extra_colours(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_7, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_8);
				vehicle::set_vehicle_dirt_level(*iParam0, Var5.f_2);
				iVar104 = 0;
				while (iVar104 < 12)
				{
					vehicle::set_vehicle_extra(*iParam0, iVar104 + 1, !Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_11[iVar104]);
					iVar104++;
				}
				if (Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_24)
				{
					vehicle::set_convertible_roof(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_24);
				}
				if (func_382(&uVar1, &iVar0))
				{
					vehicle::set_vehicle_number_plate_text(*iParam0, &uVar1);
					vehicle::set_vehicle_number_plate_text_index(*iParam0, iVar0);
				}
				else
				{
					vehicle::set_vehicle_number_plate_text(*iParam0, &(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_27));
					if (Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_26 >= 0 && Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_26 < vehicle::get_number_of_vehicle_number_plates())
					{
						vehicle::set_vehicle_number_plate_text_index(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_26);
					}
				}
				vehicle::set_vehicle_tyre_smoke_color(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_84, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_85, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_86);
				vehicle::set_vehicle_tyres_can_burst(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_88);
				vehicle::set_vehicle_window_tint(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_87);
				vehicle::_set_vehicle_neon_lights_colour(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_93, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_94, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_95);
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 2, gameplay::is_bit_set(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_92, 28));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 3, gameplay::is_bit_set(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_92, 29));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 0, gameplay::is_bit_set(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_92, 30));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 1, gameplay::is_bit_set(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_92, 31));
				if (vehicle::get_vehicle_livery_count(*iParam0) > 1 && Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_89 >= 0)
				{
					vehicle::set_vehicle_livery(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_89);
				}
				if (Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_90 > -1)
				{
					if (!vehicle::is_this_model_a_bicycle(entity::get_entity_model(*iParam0)))
					{
						if (vehicle::is_this_model_a_bike(entity::get_entity_model(*iParam0)))
						{
							if (Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_90 == 6)
							{
								vehicle::set_vehicle_wheel_type(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_90);
							}
						}
						else
						{
							vehicle::set_vehicle_wheel_type(*iParam0, Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_90);
						}
					}
				}
				func_378(iParam0, &(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_31), &(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_81));
				vehicle::_set_vehicle_paint_fade(*iParam0, Var5.f_96);
				if (iParam1 == 2)
				{
					if (entity::get_entity_model(*iParam0) == joaat("bodhi2"))
					{
						func_376(iParam0);
					}
				}
				if (iParam6)
				{
					streaming::set_model_as_no_longer_needed(Global_101553.f_1991.f_539.f_1635[1 /*295*/][iParam1 /*98*/]);
				}
				func_375(*iParam0, iParam1);
				return true;
			}
		}
		else
		{
			streaming::request_model(Var5);
			if (streaming::has_model_loaded(Var5))
			{
				iVar105 = true;
				*iParam0 = vehicle::create_vehicle(Var5, vParam2, fParam5, 1, true);
				vehicle::set_vehicle_on_ground_properly(*iParam0);
				vehicle::_0xAB04325045427AAE(*iParam0, 0);
				vehicle::_0x428BACCDF5E26EAD(*iParam0, false);
				vehicle::set_vehicle_has_strong_axles(*iParam0, true);
				StringCopy(&cVar106, vehicle::get_vehicle_number_plate_text(*iParam0), 16);
				entity::set_entity_health(*iParam0, 1250);
				vehicle::set_vehicle_engine_health(*iParam0, 1250f);
				vehicle::set_vehicle_petrol_tank_health(*iParam0, 1250f);
				Var5.f_3 = 1250;
				vehicle::set_vehicle_colours(*iParam0, Var5.f_5, Var5.f_6);
				vehicle::set_vehicle_extra_colours(*iParam0, Var5.f_7, Var5.f_8);
				vehicle::set_vehicle_dirt_level(*iParam0, Var5.f_2);
				iVar110 = 0;
				while (iVar110 < 12)
				{
					vehicle::set_vehicle_extra(*iParam0, iVar110 + 1, !Var5.f_11[iVar110]);
					iVar110++;
				}
				if (Var5.f_24)
				{
					vehicle::set_convertible_roof(*iParam0, Var5.f_24);
				}
				if (func_382(&uVar1, &iVar0))
				{
					vehicle::set_vehicle_number_plate_text(*iParam0, &uVar1);
					vehicle::set_vehicle_number_plate_text_index(*iParam0, iVar0);
				}
				else
				{
					vehicle::set_vehicle_number_plate_text(*iParam0, &(Var5.f_27));
					if (Var5.f_26 >= 0 && Var5.f_26 < vehicle::get_number_of_vehicle_number_plates())
					{
						vehicle::set_vehicle_number_plate_text_index(*iParam0, Var5.f_26);
					}
				}
				vehicle::set_vehicle_tyre_smoke_color(*iParam0, Var5.f_84, Var5.f_85, Var5.f_86);
				vehicle::set_vehicle_tyres_can_burst(*iParam0, Var5.f_88);
				vehicle::set_vehicle_window_tint(*iParam0, Var5.f_87);
				vehicle::_set_vehicle_neon_lights_colour(*iParam0, Var5.f_93, Var5.f_94, Var5.f_95);
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 2, gameplay::is_bit_set(Var5.f_92, 28));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 3, gameplay::is_bit_set(Var5.f_92, 29));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 0, gameplay::is_bit_set(Var5.f_92, 30));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 1, gameplay::is_bit_set(Var5.f_92, 31));
				if (vehicle::get_vehicle_livery_count(*iParam0) > 1 && Var5.f_89 >= 0)
				{
					vehicle::set_vehicle_livery(*iParam0, Var5.f_89);
				}
				if (Var5.f_90 > -1)
				{
					if (!vehicle::is_this_model_a_bicycle(entity::get_entity_model(*iParam0)))
					{
						if (vehicle::is_this_model_a_bike(entity::get_entity_model(*iParam0)))
						{
							if (Var5.f_90 == 6)
							{
								vehicle::set_vehicle_wheel_type(*iParam0, Var5.f_90);
							}
						}
						else
						{
							vehicle::set_vehicle_wheel_type(*iParam0, Var5.f_90);
						}
					}
				}
				func_378(iParam0, &(Var5.f_31), &(Var5.f_81));
				vehicle::_set_vehicle_paint_fade(*iParam0, Var5.f_96);
				if (iParam1 == 1)
				{
					if (entity::get_entity_model(*iParam0) == joaat("bagger") && !Global_101553.f_7940.f_99.f_58[118])
					{
						vehicle::set_vehicle_number_plate_text(*iParam0, &cVar106);
						iVar105 = false;
					}
				}
				else if (iParam1 == 2)
				{
					if (entity::get_entity_model(*iParam0) == joaat("bodhi2"))
					{
						func_376(iParam0);
					}
				}
				else if (((iParam1 == 0 && !Global_101553.f_1991.f_539.f_3544) && Global_101553.f_7940.f_99.f_58[131]) && entity::get_entity_model(*iParam0) == joaat("tailgater"))
				{
					vehicle::set_vehicle_mod(*iParam0, 6, 1, false);
					vehicle::set_vehicle_mod(*iParam0, 14, 7, false);
					vehicle::set_vehicle_mod(*iParam0, 11, 2, false);
					vehicle::set_vehicle_mod(*iParam0, 2, 3, false);
					vehicle::set_vehicle_mod(*iParam0, 7, 5, false);
					vehicle::set_vehicle_mod(*iParam0, 0, 0, false);
					vehicle::set_vehicle_mod(*iParam0, 3, 3, false);
					vehicle::set_vehicle_mod(*iParam0, 13, 1, false);
					vehicle::set_vehicle_mod(*iParam0, 4, 3, false);
					vehicle::set_vehicle_mod(*iParam0, 12, 2, false);
					vehicle::toggle_vehicle_mod(*iParam0, 22, true);
					vehicle::set_vehicle_wheel_type(*iParam0, 2);
					vehicle::set_vehicle_mod(*iParam0, 23, 11, false);
					vehicle::set_vehicle_window_tint(*iParam0, 2);
					Global_101553.f_1991.f_539.f_3544 = 1;
					func_368(iParam1, iParam0, 0, 1);
				}
				if (iParam6)
				{
					streaming::set_model_as_no_longer_needed(Var5);
				}
				if (iVar105)
				{
					func_375(*iParam0, iParam1);
				}
				return true;
			}
		}
	}
	return false;
}

void func_368(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x40938
{
	var uVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	var uVar5;
	var uVar6;
	
	if ((func_14(iParam0) && entity::does_entity_exist(*iParam1)) && vehicle::is_vehicle_driveable(*iParam1, 0))
	{
		if (iParam2 > Global_101553.f_1991.f_539.f_1635)
		{
			return;
		}
		if (iParam2 == 0)
		{
		}
		else if (iParam2 == 1)
		{
		}
		else if (iParam2 == 2)
		{
		}
		else if (iParam2 == 3)
		{
			func_336(*iParam1, iParam0);
		}
		if (vehicle::get_num_mod_kits(*iParam1) != 0)
		{
			vehicle::set_vehicle_mod_kit(*iParam1, 0);
		}
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/] = entity::get_entity_model(*iParam1);
		if (vehicle::get_vehicle_trailer_vehicle(*iParam1, &iVar1))
		{
			Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_1 = entity::get_entity_model(iVar1);
		}
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_2 = vehicle::get_vehicle_dirt_level(*iParam1);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_3 = entity::get_entity_health(*iParam1);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[0] = vehicle::is_vehicle_extra_turned_on(*iParam1, 1);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[1] = vehicle::is_vehicle_extra_turned_on(*iParam1, 2);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[2] = vehicle::is_vehicle_extra_turned_on(*iParam1, 3);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[3] = vehicle::is_vehicle_extra_turned_on(*iParam1, 4);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[4] = vehicle::is_vehicle_extra_turned_on(*iParam1, 5);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[5] = vehicle::is_vehicle_extra_turned_on(*iParam1, 6);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[6] = vehicle::is_vehicle_extra_turned_on(*iParam1, 7);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[7] = vehicle::is_vehicle_extra_turned_on(*iParam1, 8);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[8] = vehicle::is_vehicle_extra_turned_on(*iParam1, 9);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[9] = vehicle::is_vehicle_extra_turned_on(*iParam1, 10);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[10] = vehicle::is_vehicle_extra_turned_on(*iParam1, 11);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_11[11] = vehicle::is_vehicle_extra_turned_on(*iParam1, 12);
		if (vehicle::is_vehicle_a_convertible(*iParam1, 0))
		{
			iVar2 = vehicle::get_convertible_roof_state(*iParam1);
			if (iVar2 == 0 || iVar2 == 5)
			{
				Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_24 = 1;
			}
			else
			{
				Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_24 = 0;
			}
		}
		else
		{
			Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_24 = 0;
		}
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_25 = audio::get_player_radio_station_index();
		StringCopy(&(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_27), vehicle::get_vehicle_number_plate_text(*iParam1), 16);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_26 = vehicle::get_vehicle_number_plate_text_index(*iParam1);
		vehicle::get_vehicle_colours(*iParam1, &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_5), &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_6));
		vehicle::get_vehicle_extra_colours(*iParam1, &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_7), &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_8));
		vehicle::get_vehicle_tyre_smoke_color(*iParam1, &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_84), &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_85), &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_86));
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_88 = vehicle::get_vehicle_tyres_can_burst(*iParam1);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_87 = vehicle::get_vehicle_window_tint(*iParam1);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_89 = vehicle::get_vehicle_livery(*iParam1);
		Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_90 = vehicle::get_vehicle_wheel_type(*iParam1);
		vehicle::_get_vehicle_neon_lights_colour(*iParam1, &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_93), &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_94), &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_95));
		if (vehicle::_is_vehicle_neon_light_enabled(*iParam1, 2))
		{
			gameplay::set_bit(&(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_92), 28);
		}
		else
		{
			gameplay::clear_bit(&(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_92), 28);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(*iParam1, 3))
		{
			gameplay::set_bit(&(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_92), 29);
		}
		else
		{
			gameplay::clear_bit(&(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_92), 29);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(*iParam1, 0))
		{
			gameplay::set_bit(&(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_92), 30);
		}
		else
		{
			gameplay::clear_bit(&(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_92), 30);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(*iParam1, 1))
		{
			gameplay::set_bit(&(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_92), 31);
		}
		else
		{
			gameplay::clear_bit(&(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_92), 31);
		}
		Global_101553.f_1991.f_539.f_3545[iParam0] = 10;
		if ((vehicle::get_vehicle_mod_kit(*iParam1) >= 0 && vehicle::get_vehicle_mod_kit(*iParam1) < 255) && func_372(*iParam1, 0, &uVar0))
		{
			func_51(iParam1, &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31), &(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_81));
			if (iParam3)
			{
				Global_101553.f_24808[iParam0 /*43*/].f_40 = 1;
				Global_101553.f_24808[iParam0 /*43*/] = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/];
				Global_101553.f_24808[iParam0 /*43*/].f_3 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_87;
				Global_101553.f_24808[iParam0 /*43*/].f_4 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_84;
				Global_101553.f_24808[iParam0 /*43*/].f_5 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_85;
				Global_101553.f_24808[iParam0 /*43*/].f_6 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_86;
				Global_101553.f_24808[iParam0 /*43*/].f_10 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_90;
				Global_101553.f_24808[iParam0 /*43*/].f_16 = !Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_88;
				Global_101553.f_24808[iParam0 /*43*/].f_19 = { Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_27 };
				Global_101553.f_24808[iParam0 /*43*/].f_23 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_26;
				Global_101553.f_24808[iParam0 /*43*/].f_7 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31[11];
				Global_101553.f_24808[iParam0 /*43*/].f_8 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31[12];
				Global_101553.f_24808[iParam0 /*43*/].f_9 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31[23];
				Global_101553.f_24808[iParam0 /*43*/].f_11 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31[4];
				Global_101553.f_24808[iParam0 /*43*/].f_12 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31[15];
				Global_101553.f_24808[iParam0 /*43*/].f_13 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31[16];
				Global_101553.f_24808[iParam0 /*43*/].f_14 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31[14];
				Global_101553.f_24808[iParam0 /*43*/].f_15 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31[22];
				Global_101553.f_24808[iParam0 /*43*/].f_18 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31[20];
				Global_101553.f_24808[iParam0 /*43*/].f_17 = Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_31[18];
				Global_101553.f_24808[iParam0 /*43*/].f_24 = vehicle::get_num_vehicle_mods(*iParam1, 11) + 1;
				Global_101553.f_24808[iParam0 /*43*/].f_25 = vehicle::get_num_vehicle_mods(*iParam1, 12) + 1;
				Global_101553.f_24808[iParam0 /*43*/].f_26 = vehicle::get_num_vehicle_mods(*iParam1, 4) + 1;
				Global_101553.f_24808[iParam0 /*43*/].f_27 = vehicle::get_num_vehicle_mods(*iParam1, 23) + 1;
				Global_101553.f_24808[iParam0 /*43*/].f_28 = vehicle::get_num_vehicle_mods(*iParam1, 14) + 1;
				Global_101553.f_24808[iParam0 /*43*/].f_29 = vehicle::get_num_vehicle_mods(*iParam1, 16) + 1;
				Global_101553.f_24808[iParam0 /*43*/].f_30 = vehicle::get_num_vehicle_mods(*iParam1, 15) + 1;
				Global_101553.f_24808[iParam0 /*43*/].f_32 = vehicle::_0xEEBFC7A7EFDC35B4(*iParam1);
				Global_101553.f_24808[iParam0 /*43*/].f_33[0] = audio::get_vehicle_default_horn(*iParam1);
				Global_101553.f_24808[iParam0 /*43*/].f_33[1] = vehicle::get_vehicle_mod_modifier_value(*iParam1, 14, 0);
				Global_101553.f_24808[iParam0 /*43*/].f_33[2] = vehicle::get_vehicle_mod_modifier_value(*iParam1, 14, 1);
				Global_101553.f_24808[iParam0 /*43*/].f_33[3] = vehicle::get_vehicle_mod_modifier_value(*iParam1, 14, 2);
				Global_101553.f_24808[iParam0 /*43*/].f_33[4] = vehicle::get_vehicle_mod_modifier_value(*iParam1, 14, 3);
				Global_101553.f_24808[iParam0 /*43*/].f_39 = vehicle::get_vehicle_mod_kit_type(*iParam1);
				Global_101553.f_24808[iParam0 /*43*/].f_31 = func_371(*iParam1);
				Global_101553.f_24808[iParam0 /*43*/].f_33[0] = audio::_0xACB5DCCA1EC76840(*iParam1);
				vehicle::get_vehicle_mod_color_1(*iParam1, &iVar4, &uVar5, &uVar6);
				if (iVar4 == 0)
				{
					iVar3 = 0;
				}
				else if (iVar4 == 1)
				{
					iVar3 = 1;
				}
				else if (iVar4 == 3)
				{
					iVar3 = 2;
				}
				else if (iVar4 == 4)
				{
					iVar3 = 3;
				}
				else if (iVar4 == 5)
				{
					iVar3 = 4;
				}
				else
				{
					iVar3 = -1;
				}
				func_369(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_5, Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_7, iVar3, 1, &(Global_101553.f_24808[iParam0 /*43*/].f_1));
				vehicle::get_vehicle_mod_color_2(*iParam1, &iVar4, &uVar5);
				if (iVar4 == 0)
				{
					iVar3 = 0;
				}
				else if (iVar4 == 1)
				{
					iVar3 = 1;
				}
				else if (iVar4 == 3)
				{
					iVar3 = 2;
				}
				else if (iVar4 == 4)
				{
					iVar3 = 3;
				}
				else if (iVar4 == 5)
				{
					iVar3 = 4;
				}
				else
				{
					iVar3 = -1;
				}
				func_369(Global_101553.f_1991.f_539.f_1635[iParam2 /*295*/][iParam0 /*98*/].f_6, -1, iVar3, 0, &(Global_101553.f_24808[iParam0 /*43*/].f_2));
			}
		}
	}
}

bool func_369(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4)//Position - 0x4155B
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	
	iVar0 = 0;
	while (func_370(iVar0, &sVar2, &iVar1, &iVar6, &iVar7))
	{
		if ((iParam0 == iVar6 && (!iParam3 || iParam1 == iVar7)) && ((iParam2 == iVar1 || iParam2 == -1) || iParam2 == 255))
		{
			*uParam4 = iVar0;
			return true;
		}
		iVar0++;
	}
	iParam0 = -1;
	iParam1 = -1;
	*uParam4 = -1;
	return false;
}

int func_370(int iParam0, char* sParam1, var uParam2, var uParam3, var uParam4)//Position - 0x415CE
{
	*uParam2 = -1;
	*uParam3 = -1;
	*uParam4 = -1;
	switch (iParam0)
	{
		case 0:
			StringCopy(sParam1, "BR BLACK_STEEL", 16);
			*uParam2 = 3;
			*uParam3 = 118;
			*uParam4 = 3;
			break;
		
		case 1:
			StringCopy(sParam1, "BLACK_GRAPHITE", 16);
			*uParam2 = 0;
			*uParam3 = 147;
			*uParam4 = 4;
			break;
		
		case 2:
			StringCopy(sParam1, "CHOCOLATE_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 96;
			*uParam4 = 0;
			break;
		
		case 3:
			StringCopy(sParam1, "PURPLE", 16);
			*uParam2 = 0;
			*uParam3 = 71;
			*uParam4 = 145;
			break;
		
		case 4:
			StringCopy(sParam1, "HOT PINK", 16);
			*uParam2 = 0;
			*uParam3 = 135;
			*uParam4 = 135;
			break;
		
		case 5:
			StringCopy(sParam1, "FORMULA_RED", 16);
			*uParam2 = 0;
			*uParam3 = 29;
			*uParam4 = 28;
			break;
		
		case 6:
			StringCopy(sParam1, "BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 64;
			*uParam4 = 68;
			break;
		
		case 7:
			StringCopy(sParam1, "ULTRA_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 70;
			*uParam4 = 0;
			break;
		
		case 8:
			StringCopy(sParam1, "RACING_GREEN", 16);
			*uParam2 = 1;
			*uParam3 = 50;
			*uParam4 = 0;
			break;
		
		case 9:
			StringCopy(sParam1, "LIME_GREEN", 16);
			*uParam2 = 2;
			*uParam3 = 55;
			*uParam4 = 0;
			break;
		
		case 10:
			StringCopy(sParam1, "RACE_YELLOW", 16);
			*uParam2 = 1;
			*uParam3 = 89;
			*uParam4 = 0;
			break;
		
		case 11:
			StringCopy(sParam1, "ORANGE", 16);
			*uParam2 = 1;
			*uParam3 = 38;
			*uParam4 = 0;
			break;
		
		case 12:
			StringCopy(sParam1, "GOLD", 16);
			*uParam2 = 0;
			*uParam3 = 37;
			*uParam4 = 106;
			break;
		
		case 13:
			StringCopy(sParam1, "SILVER", 16);
			*uParam2 = 0;
			*uParam3 = 4;
			*uParam4 = 111;
			break;
		
		case 14:
			StringCopy(sParam1, "CHROME", 16);
			*uParam2 = 4;
			*uParam3 = 120;
			*uParam4 = 0;
			break;
		
		case 15:
			StringCopy(sParam1, "WHITE", 16);
			*uParam2 = 1;
			*uParam3 = 111;
			*uParam4 = 0;
			break;
		
		case 16:
			StringCopy(sParam1, "BLACK", 16);
			*uParam2 = 0;
			*uParam3 = 0;
			*uParam4 = 10;
			break;
		
		case 17:
			StringCopy(sParam1, "GRAPHITE", 16);
			*uParam2 = 0;
			*uParam3 = 1;
			*uParam4 = 5;
			break;
		
		case 18:
			StringCopy(sParam1, "ANTHR_BLACK", 16);
			*uParam2 = 0;
			*uParam3 = 11;
			*uParam4 = 2;
			break;
		
		case 19:
			StringCopy(sParam1, "BLACK_STEEL", 16);
			*uParam2 = 0;
			*uParam3 = 2;
			*uParam4 = 5;
			break;
		
		case 20:
			StringCopy(sParam1, "DARK_SILVER", 16);
			*uParam2 = 0;
			*uParam3 = 3;
			*uParam4 = 6;
			break;
		
		case 21:
			StringCopy(sParam1, "BLUE_SILVER", 16);
			*uParam2 = 0;
			*uParam3 = 5;
			*uParam4 = 111;
			break;
		
		case 22:
			StringCopy(sParam1, "ROLLED_STEEL", 16);
			*uParam2 = 0;
			*uParam3 = 6;
			*uParam4 = 4;
			break;
		
		case 23:
			StringCopy(sParam1, "SHADOW_SILVER", 16);
			*uParam2 = 0;
			*uParam3 = 7;
			*uParam4 = 5;
			break;
		
		case 24:
			StringCopy(sParam1, "STONE_SILVER", 16);
			*uParam2 = 0;
			*uParam3 = 8;
			*uParam4 = 5;
			break;
		
		case 25:
			StringCopy(sParam1, "MIDNIGHT_SILVER", 16);
			*uParam2 = 0;
			*uParam3 = 9;
			*uParam4 = 7;
			break;
		
		case 26:
			StringCopy(sParam1, "CAST_IRON_SIL", 16);
			*uParam2 = 0;
			*uParam3 = 10;
			*uParam4 = 7;
			break;
		
		case 27:
			StringCopy(sParam1, "RED", 16);
			*uParam2 = 0;
			*uParam3 = 27;
			*uParam4 = 36;
			break;
		
		case 28:
			StringCopy(sParam1, "TORINO_RED", 16);
			*uParam2 = 0;
			*uParam3 = 28;
			*uParam4 = 28;
			break;
		
		case 29:
			StringCopy(sParam1, "LAVA_RED", 16);
			*uParam2 = 0;
			*uParam3 = 150;
			*uParam4 = 42;
			break;
		
		case 30:
			StringCopy(sParam1, "BLAZE_RED", 16);
			*uParam2 = 0;
			*uParam3 = 30;
			*uParam4 = 36;
			break;
		
		case 31:
			StringCopy(sParam1, "GRACE_RED", 16);
			*uParam2 = 0;
			*uParam3 = 31;
			*uParam4 = 27;
			break;
		
		case 32:
			StringCopy(sParam1, "GARNET_RED", 16);
			*uParam2 = 0;
			*uParam3 = 32;
			*uParam4 = 25;
			break;
		
		case 33:
			StringCopy(sParam1, "SUNSET_RED", 16);
			*uParam2 = 0;
			*uParam3 = 33;
			*uParam4 = 47;
			break;
		
		case 34:
			StringCopy(sParam1, "CABERNET_RED", 16);
			*uParam2 = 0;
			*uParam3 = 34;
			*uParam4 = 47;
			break;
		
		case 35:
			StringCopy(sParam1, "WINE_RED", 16);
			*uParam2 = 0;
			*uParam3 = 143;
			*uParam4 = 31;
			break;
		
		case 36:
			StringCopy(sParam1, "CANDY_RED", 16);
			*uParam2 = 0;
			*uParam3 = 35;
			*uParam4 = 25;
			break;
		
		case 37:
			StringCopy(sParam1, "PINK", 16);
			*uParam2 = 0;
			*uParam3 = 137;
			*uParam4 = 3;
			break;
		
		case 38:
			StringCopy(sParam1, "SALMON_PINK", 16);
			*uParam2 = 0;
			*uParam3 = 136;
			*uParam4 = 5;
			break;
		
		case 39:
			StringCopy(sParam1, "SUNRISE_ORANGE", 16);
			*uParam2 = 0;
			*uParam3 = 36;
			*uParam4 = 26;
			break;
		
		case 40:
			StringCopy(sParam1, "ORANGE", 16);
			*uParam2 = 0;
			*uParam3 = 38;
			*uParam4 = 37;
			break;
		
		case 41:
			StringCopy(sParam1, "BRIGHT_ORANGE", 16);
			*uParam2 = 0;
			*uParam3 = 138;
			*uParam4 = 89;
			break;
		
		case 42:
			StringCopy(sParam1, "BRONZE", 16);
			*uParam2 = 0;
			*uParam3 = 90;
			*uParam4 = 102;
			break;
		
		case 43:
			StringCopy(sParam1, "YELLOW", 16);
			*uParam2 = 0;
			*uParam3 = 88;
			*uParam4 = 88;
			break;
		
		case 44:
			StringCopy(sParam1, "RACE_YELLOW", 16);
			*uParam2 = 0;
			*uParam3 = 89;
			*uParam4 = 88;
			break;
		
		case 45:
			StringCopy(sParam1, "FLUR_YELLOW", 16);
			*uParam2 = 0;
			*uParam3 = 91;
			*uParam4 = 91;
			break;
		
		case 46:
			StringCopy(sParam1, "DARK_GREEN", 16);
			*uParam2 = 0;
			*uParam3 = 49;
			*uParam4 = 52;
			break;
		
		case 47:
			StringCopy(sParam1, "RACING_GREEN", 16);
			*uParam2 = 0;
			*uParam3 = 50;
			*uParam4 = 53;
			break;
		
		case 48:
			StringCopy(sParam1, "SEA_GREEN", 16);
			*uParam2 = 0;
			*uParam3 = 51;
			*uParam4 = 66;
			break;
		
		case 49:
			StringCopy(sParam1, "OLIVE_GREEN", 16);
			*uParam2 = 0;
			*uParam3 = 52;
			*uParam4 = 59;
			break;
		
		case 50:
			StringCopy(sParam1, "BRIGHT_GREEN", 16);
			*uParam2 = 0;
			*uParam3 = 53;
			*uParam4 = 59;
			break;
		
		case 51:
			StringCopy(sParam1, "PETROL_GREEN", 16);
			*uParam2 = 0;
			*uParam3 = 54;
			*uParam4 = 60;
			break;
		
		case 52:
			StringCopy(sParam1, "LIME_GREEN", 16);
			*uParam2 = 0;
			*uParam3 = 92;
			*uParam4 = 92;
			break;
		
		case 53:
			StringCopy(sParam1, "MIDNIGHT_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 141;
			*uParam4 = 73;
			break;
		
		case 54:
			StringCopy(sParam1, "GALAXY_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 61;
			*uParam4 = 63;
			break;
		
		case 55:
			StringCopy(sParam1, "DARK_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 62;
			*uParam4 = 68;
			break;
		
		case 56:
			StringCopy(sParam1, "SAXON_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 63;
			*uParam4 = 87;
			break;
		
		case 57:
			StringCopy(sParam1, "MARINER_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 65;
			*uParam4 = 87;
			break;
		
		case 58:
			StringCopy(sParam1, "HARBOR_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 66;
			*uParam4 = 60;
			break;
		
		case 59:
			StringCopy(sParam1, "DIAMOND_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 67;
			*uParam4 = 67;
			break;
		
		case 60:
			StringCopy(sParam1, "SURF_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 68;
			*uParam4 = 68;
			break;
		
		case 61:
			StringCopy(sParam1, "NAUTICAL_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 69;
			*uParam4 = 74;
			break;
		
		case 62:
			StringCopy(sParam1, "RACING_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 73;
			*uParam4 = 73;
			break;
		
		case 63:
			StringCopy(sParam1, "ULTRA_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 70;
			*uParam4 = 70;
			break;
		
		case 64:
			StringCopy(sParam1, "LIGHT_BLUE", 16);
			*uParam2 = 0;
			*uParam3 = 74;
			*uParam4 = 74;
			break;
		
		case 65:
			StringCopy(sParam1, "CHOCOLATE_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 96;
			*uParam4 = 95;
			break;
		
		case 66:
			StringCopy(sParam1, "BISON_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 101;
			*uParam4 = 95;
			break;
		
		case 67:
			StringCopy(sParam1, "CREEK_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 95;
			*uParam4 = 97;
			break;
		
		case 68:
			StringCopy(sParam1, "UMBER_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 94;
			*uParam4 = 104;
			break;
		
		case 69:
			StringCopy(sParam1, "MAPLE_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 97;
			*uParam4 = 98;
			break;
		
		case 70:
			StringCopy(sParam1, "BEECHWOOD_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 103;
			*uParam4 = 104;
			break;
		
		case 71:
			StringCopy(sParam1, "SIENNA_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 104;
			*uParam4 = 104;
			break;
		
		case 72:
			StringCopy(sParam1, "SADDLE_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 98;
			*uParam4 = 95;
			break;
		
		case 73:
			StringCopy(sParam1, "MOSS_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 100;
			*uParam4 = 100;
			break;
		
		case 74:
			StringCopy(sParam1, "WOODBEECH_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 102;
			*uParam4 = 105;
			break;
		
		case 75:
			StringCopy(sParam1, "STRAW_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 99;
			*uParam4 = 106;
			break;
		
		case 76:
			StringCopy(sParam1, "SANDY_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 105;
			*uParam4 = 105;
			break;
		
		case 77:
			StringCopy(sParam1, "BLEECHED_BROWN", 16);
			*uParam2 = 0;
			*uParam3 = 106;
			*uParam4 = 106;
			break;
		
		case 78:
			StringCopy(sParam1, "SPIN_PURPLE", 16);
			*uParam2 = 0;
			*uParam3 = 72;
			*uParam4 = 64;
			break;
		
		case 79:
			StringCopy(sParam1, "MIGHT_PURPLE", 16);
			*uParam2 = 0;
			*uParam3 = 146;
			*uParam4 = 145;
			break;
		
		case 80:
			StringCopy(sParam1, "BRIGHT_PURPLE", 16);
			*uParam2 = 0;
			*uParam3 = 145;
			*uParam4 = 74;
			break;
		
		case 81:
			StringCopy(sParam1, "CREAM", 16);
			*uParam2 = 0;
			*uParam3 = 107;
			*uParam4 = 107;
			break;
		
		case 82:
			StringCopy(sParam1, "WHITE", 16);
			*uParam2 = 0;
			*uParam3 = 111;
			*uParam4 = 0;
			break;
		
		case 83:
			StringCopy(sParam1, "FROST_WHITE", 16);
			*uParam2 = 0;
			*uParam3 = 112;
			*uParam4 = 0;
			break;
		
		case 84:
			StringCopy(sParam1, "BLACK", 16);
			*uParam2 = 1;
			*uParam3 = 0;
			*uParam4 = 0;
			break;
		
		case 85:
			StringCopy(sParam1, "BLACK_GRAPHITE", 16);
			*uParam2 = 1;
			*uParam3 = 147;
			*uParam4 = 0;
			break;
		
		case 86:
			StringCopy(sParam1, "GRAPHITE", 16);
			*uParam2 = 1;
			*uParam3 = 1;
			*uParam4 = 0;
			break;
		
		case 87:
			StringCopy(sParam1, "ANTHR_BLACK", 16);
			*uParam2 = 1;
			*uParam3 = 11;
			*uParam4 = 0;
			break;
		
		case 88:
			StringCopy(sParam1, "BLACK_STEEL", 16);
			*uParam2 = 1;
			*uParam3 = 2;
			*uParam4 = 0;
			break;
		
		case 89:
			StringCopy(sParam1, "DARK_SILVER", 16);
			*uParam2 = 1;
			*uParam3 = 3;
			*uParam4 = 2;
			break;
		
		case 90:
			StringCopy(sParam1, "SILVER", 16);
			*uParam2 = 1;
			*uParam3 = 4;
			*uParam4 = 4;
			break;
		
		case 91:
			StringCopy(sParam1, "BLUE_SILVER", 16);
			*uParam2 = 1;
			*uParam3 = 5;
			*uParam4 = 5;
			break;
		
		case 92:
			StringCopy(sParam1, "ROLLED_STEEL", 16);
			*uParam2 = 1;
			*uParam3 = 6;
			*uParam4 = 0;
			break;
		
		case 93:
			StringCopy(sParam1, "SHADOW_SILVER", 16);
			*uParam2 = 1;
			*uParam3 = 7;
			*uParam4 = 0;
			break;
		
		case 94:
			StringCopy(sParam1, "STONE_SILVER", 16);
			*uParam2 = 1;
			*uParam3 = 8;
			*uParam4 = 0;
			break;
		
		case 95:
			StringCopy(sParam1, "MIDNIGHT_SILVER", 16);
			*uParam2 = 1;
			*uParam3 = 9;
			*uParam4 = 0;
			break;
		
		case 96:
			StringCopy(sParam1, "CAST_IRON_SIL", 16);
			*uParam2 = 1;
			*uParam3 = 10;
			*uParam4 = 0;
			break;
		
		case 97:
			StringCopy(sParam1, "RED", 16);
			*uParam2 = 1;
			*uParam3 = 27;
			*uParam4 = 0;
			break;
		
		case 98:
			StringCopy(sParam1, "TORINO_RED", 16);
			*uParam2 = 1;
			*uParam3 = 28;
			*uParam4 = 0;
			break;
		
		case 99:
			StringCopy(sParam1, "FORMULA_RED", 16);
			*uParam2 = 1;
			*uParam3 = 29;
			*uParam4 = 0;
			break;
		
		case 100:
			StringCopy(sParam1, "LAVA_RED", 16);
			*uParam2 = 1;
			*uParam3 = 150;
			*uParam4 = 0;
			break;
		
		case 101:
			StringCopy(sParam1, "BLAZE_RED", 16);
			*uParam2 = 1;
			*uParam3 = 30;
			*uParam4 = 0;
			break;
		
		case 102:
			StringCopy(sParam1, "GRACE_RED", 16);
			*uParam2 = 1;
			*uParam3 = 31;
			*uParam4 = 0;
			break;
		
		case 103:
			StringCopy(sParam1, "GARNET_RED", 16);
			*uParam2 = 1;
			*uParam3 = 32;
			*uParam4 = 0;
			break;
		
		case 104:
			StringCopy(sParam1, "SUNSET_RED", 16);
			*uParam2 = 1;
			*uParam3 = 33;
			*uParam4 = 0;
			break;
		
		case 105:
			StringCopy(sParam1, "CABERNET_RED", 16);
			*uParam2 = 1;
			*uParam3 = 34;
			*uParam4 = 0;
			break;
		
		case 106:
			StringCopy(sParam1, "WINE_RED", 16);
			*uParam2 = 1;
			*uParam3 = 143;
			*uParam4 = 0;
			break;
		
		case 107:
			StringCopy(sParam1, "CANDY_RED", 16);
			*uParam2 = 1;
			*uParam3 = 35;
			*uParam4 = 0;
			break;
		
		case 108:
			StringCopy(sParam1, "HOT PINK", 16);
			*uParam2 = 1;
			*uParam3 = 135;
			*uParam4 = 0;
			break;
		
		case 109:
			StringCopy(sParam1, "PINK", 16);
			*uParam2 = 1;
			*uParam3 = 137;
			*uParam4 = 0;
			break;
		
		case 110:
			StringCopy(sParam1, "SALMON_PINK", 16);
			*uParam2 = 1;
			*uParam3 = 136;
			*uParam4 = 0;
			break;
		
		case 111:
			StringCopy(sParam1, "SUNRISE_ORANGE", 16);
			*uParam2 = 1;
			*uParam3 = 36;
			*uParam4 = 0;
			break;
		
		case 112:
			StringCopy(sParam1, "BRIGHT_ORANGE", 16);
			*uParam2 = 1;
			*uParam3 = 138;
			*uParam4 = 0;
			break;
		
		case 113:
			StringCopy(sParam1, "GOLD", 16);
			*uParam2 = 1;
			*uParam3 = 99;
			*uParam4 = 99;
			break;
		
		case 114:
			StringCopy(sParam1, "BRONZE", 16);
			*uParam2 = 1;
			*uParam3 = 90;
			*uParam4 = 102;
			break;
		
		case 115:
			StringCopy(sParam1, "YELLOW", 16);
			*uParam2 = 1;
			*uParam3 = 88;
			*uParam4 = 0;
			break;
		
		case 116:
			StringCopy(sParam1, "FLUR_YELLOW", 16);
			*uParam2 = 1;
			*uParam3 = 91;
			*uParam4 = 0;
			break;
		
		case 117:
			StringCopy(sParam1, "DARK_GREEN", 16);
			*uParam2 = 1;
			*uParam3 = 49;
			*uParam4 = 0;
			break;
		
		case 118:
			StringCopy(sParam1, "SEA_GREEN", 16);
			*uParam2 = 1;
			*uParam3 = 51;
			*uParam4 = 0;
			break;
		
		case 119:
			StringCopy(sParam1, "OLIVE_GREEN", 16);
			*uParam2 = 1;
			*uParam3 = 52;
			*uParam4 = 0;
			break;
		
		case 120:
			StringCopy(sParam1, "BRIGHT_GREEN", 16);
			*uParam2 = 1;
			*uParam3 = 53;
			*uParam4 = 0;
			break;
		
		case 121:
			StringCopy(sParam1, "PETROL_GREEN", 16);
			*uParam2 = 1;
			*uParam3 = 54;
			*uParam4 = 0;
			break;
		
		case 122:
			StringCopy(sParam1, "LIME_GREEN", 16);
			*uParam2 = 1;
			*uParam3 = 92;
			*uParam4 = 0;
			break;
		
		case 123:
			StringCopy(sParam1, "MIDNIGHT_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 141;
			*uParam4 = 0;
			break;
		
		case 124:
			StringCopy(sParam1, "GALAXY_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 61;
			*uParam4 = 0;
			break;
		
		case 125:
			StringCopy(sParam1, "DARK_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 62;
			*uParam4 = 0;
			break;
		
		case 126:
			StringCopy(sParam1, "SAXON_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 63;
			*uParam4 = 0;
			break;
		
		case 127:
			StringCopy(sParam1, "BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 64;
			*uParam4 = 0;
			break;
		
		case 128:
			StringCopy(sParam1, "MARINER_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 65;
			*uParam4 = 0;
			break;
		
		case 129:
			StringCopy(sParam1, "HARBOR_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 66;
			*uParam4 = 0;
			break;
		
		case 130:
			StringCopy(sParam1, "DIAMOND_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 67;
			*uParam4 = 0;
			break;
		
		case 131:
			StringCopy(sParam1, "SURF_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 68;
			*uParam4 = 0;
			break;
		
		case 132:
			StringCopy(sParam1, "NAUTICAL_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 69;
			*uParam4 = 0;
			break;
		
		case 133:
			StringCopy(sParam1, "RACING_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 73;
			*uParam4 = 0;
			break;
		
		case 134:
			StringCopy(sParam1, "LIGHT_BLUE", 16);
			*uParam2 = 1;
			*uParam3 = 74;
			*uParam4 = 0;
			break;
		
		case 135:
			StringCopy(sParam1, "BISON_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 101;
			*uParam4 = 0;
			break;
		
		case 136:
			StringCopy(sParam1, "CREEK_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 95;
			*uParam4 = 0;
			break;
		
		case 137:
			StringCopy(sParam1, "UMBER_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 94;
			*uParam4 = 0;
			break;
		
		case 138:
			StringCopy(sParam1, "MAPLE_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 97;
			*uParam4 = 0;
			break;
		
		case 139:
			StringCopy(sParam1, "BEECHWOOD_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 103;
			*uParam4 = 0;
			break;
		
		case 140:
			StringCopy(sParam1, "SIENNA_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 104;
			*uParam4 = 0;
			break;
		
		case 141:
			StringCopy(sParam1, "SADDLE_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 98;
			*uParam4 = 0;
			break;
		
		case 142:
			StringCopy(sParam1, "MOSS_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 100;
			*uParam4 = 0;
			break;
		
		case 143:
			StringCopy(sParam1, "WOODBEECH_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 102;
			*uParam4 = 0;
			break;
		
		case 144:
			StringCopy(sParam1, "STRAW_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 99;
			*uParam4 = 0;
			break;
		
		case 145:
			StringCopy(sParam1, "SANDY_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 105;
			*uParam4 = 0;
			break;
		
		case 146:
			StringCopy(sParam1, "BLEECHED_BROWN", 16);
			*uParam2 = 1;
			*uParam3 = 106;
			*uParam4 = 0;
			break;
		
		case 147:
			StringCopy(sParam1, "PURPLE", 16);
			*uParam2 = 1;
			*uParam3 = 71;
			*uParam4 = 0;
			break;
		
		case 148:
			StringCopy(sParam1, "SPIN_PURPLE", 16);
			*uParam2 = 1;
			*uParam3 = 72;
			*uParam4 = 0;
			break;
		
		case 149:
			StringCopy(sParam1, "MIGHT_PURPLE", 16);
			*uParam2 = 1;
			*uParam3 = 142;
			*uParam4 = 0;
			break;
		
		case 150:
			StringCopy(sParam1, "BRIGHT_PURPLE", 16);
			*uParam2 = 1;
			*uParam3 = 145;
			*uParam4 = 0;
			break;
		
		case 151:
			StringCopy(sParam1, "CREAM", 16);
			*uParam2 = 1;
			*uParam3 = 107;
			*uParam4 = 0;
			break;
		
		case 152:
			StringCopy(sParam1, "FROST_WHITE", 16);
			*uParam2 = 1;
			*uParam3 = 112;
			*uParam4 = 0;
			break;
		
		case 153:
			StringCopy(sParam1, "BLACK", 16);
			*uParam2 = 2;
			*uParam3 = 12;
			*uParam4 = 0;
			break;
		
		case 154:
			StringCopy(sParam1, "GREY", 16);
			*uParam2 = 2;
			*uParam3 = 13;
			*uParam4 = 0;
			break;
		
		case 155:
			StringCopy(sParam1, "LIGHT_GREY", 16);
			*uParam2 = 2;
			*uParam3 = 14;
			*uParam4 = 0;
			break;
		
		case 156:
			StringCopy(sParam1, "WHITE", 16);
			*uParam2 = 2;
			*uParam3 = 131;
			*uParam4 = 0;
			break;
		
		case 157:
			StringCopy(sParam1, "BLUE", 16);
			*uParam2 = 2;
			*uParam3 = 83;
			*uParam4 = 0;
			break;
		
		case 158:
			StringCopy(sParam1, "DARK_BLUE", 16);
			*uParam2 = 2;
			*uParam3 = 82;
			*uParam4 = 0;
			break;
		
		case 159:
			StringCopy(sParam1, "MIDNIGHT_BLUE", 16);
			*uParam2 = 2;
			*uParam3 = 84;
			*uParam4 = 0;
			break;
		
		case 160:
			StringCopy(sParam1, "MIGHT_PURPLE", 16);
			*uParam2 = 2;
			*uParam3 = 149;
			*uParam4 = 0;
			break;
		
		case 161:
			StringCopy(sParam1, "Purple", 16);
			*uParam2 = 2;
			*uParam3 = 148;
			*uParam4 = 0;
			break;
		
		case 162:
			StringCopy(sParam1, "RED", 16);
			*uParam2 = 2;
			*uParam3 = 39;
			*uParam4 = 0;
			break;
		
		case 163:
			StringCopy(sParam1, "DARK_RED", 16);
			*uParam2 = 2;
			*uParam3 = 40;
			*uParam4 = 0;
			break;
		
		case 164:
			StringCopy(sParam1, "ORANGE", 16);
			*uParam2 = 2;
			*uParam3 = 41;
			*uParam4 = 0;
			break;
		
		case 165:
			StringCopy(sParam1, "YELLOW", 16);
			*uParam2 = 2;
			*uParam3 = 42;
			*uParam4 = 0;
			break;
		
		case 166:
			StringCopy(sParam1, "GREEN", 16);
			*uParam2 = 2;
			*uParam3 = 128;
			*uParam4 = 0;
			break;
		
		case 167:
			StringCopy(sParam1, "MATTE_FOR", 16);
			*uParam2 = 2;
			*uParam3 = 151;
			*uParam4 = 0;
			break;
		
		case 168:
			StringCopy(sParam1, "MATTE_FOIL", 16);
			*uParam2 = 2;
			*uParam3 = 155;
			*uParam4 = 0;
			break;
		
		case 169:
			StringCopy(sParam1, "MATTE_OD", 16);
			*uParam2 = 2;
			*uParam3 = 152;
			*uParam4 = 0;
			break;
		
		case 170:
			StringCopy(sParam1, "MATTE_DIRT", 16);
			*uParam2 = 2;
			*uParam3 = 153;
			*uParam4 = 0;
			break;
		
		case 171:
			StringCopy(sParam1, "MATTE_DESERT", 16);
			*uParam2 = 2;
			*uParam3 = 154;
			*uParam4 = 0;
			break;
		
		case 172:
			StringCopy(sParam1, "BR_STEEL", 16);
			*uParam2 = 3;
			*uParam3 = 117;
			*uParam4 = 18;
			break;
		
		case 173:
			StringCopy(sParam1, "BR_ALUMINIUM", 16);
			*uParam2 = 3;
			*uParam3 = 119;
			*uParam4 = 5;
			break;
		
		case 174:
			StringCopy(sParam1, "GOLD_P", 16);
			*uParam2 = 3;
			*uParam3 = 158;
			*uParam4 = 160;
			break;
		
		case 175:
			StringCopy(sParam1, "GOLD_S", 16);
			*uParam2 = 3;
			*uParam3 = 159;
			*uParam4 = 160;
			break;
	}
	return *uParam2 != -1;
}

float func_371(int iParam0)//Position - 0x42B70
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	float fVar6;
	
	iVar0 = 100000;
	iVar1 = 65000;
	iVar2 = 50000;
	iVar3 = 20000;
	iVar4 = 20000;
	iVar5 = iVar4;
	if (((entity::does_entity_exist(iParam0) && vehicle::is_vehicle_driveable(iParam0, 0)) && vehicle::get_vehicle_mod_kit(iParam0) >= 0) && vehicle::get_vehicle_mod_kit(iParam0) < 255)
	{
		if (vehicle::get_vehicle_mod_kit_type(iParam0) == 3)
		{
			iVar5 = iVar0;
		}
		else if (vehicle::get_vehicle_mod_kit_type(iParam0) == 1)
		{
			iVar5 = iVar1;
		}
		else if (vehicle::get_vehicle_mod_kit_type(iParam0) == 2)
		{
			iVar5 = iVar2;
		}
		else if (vehicle::get_vehicle_mod_kit_type(iParam0) == 0)
		{
			if (vehicle::is_this_model_a_bike(entity::get_entity_model(iParam0)))
			{
				iVar5 = iVar3;
			}
			else
			{
				iVar5 = iVar4;
			}
		}
	}
	fVar6 = (system::to_float(iVar5) / system::to_float(iVar4));
	return fVar6;
}

bool func_372(int iParam0, int iParam1, var uParam2)//Position - 0x42C2E
{
	int iVar0;
	
	*uParam2 = 0;
	if (!entity::does_entity_exist(iParam0))
	{
		return false;
	}
	if (!vehicle::is_vehicle_driveable(iParam0, 0))
	{
		return false;
	}
	if (!streaming::is_model_a_vehicle(entity::get_entity_model(iParam0)))
	{
		return false;
	}
	iVar0 = entity::get_entity_model(iParam0);
	if (!func_373(iVar0, iParam1, uParam2))
	{
		return false;
	}
	if (vehicle::is_big_vehicle(iParam0))
	{
		*uParam2 = 2;
		return false;
	}
	if (!network::network_is_game_in_progress())
	{
		if ((func_347(iParam0) && entity::get_entity_model(iParam0) != joaat("sentinel2")) && entity::get_entity_model(iParam0) != joaat("issi2"))
		{
			*uParam2 = 2;
			return false;
		}
	}
	return true;
}

bool func_373(int iParam0, int iParam1, var uParam2)//Position - 0x42CD0
{
	if (!iParam1)
	{
		if ((((((((((((((iParam0 == joaat("police") || iParam0 == joaat("policeold1")) || iParam0 == joaat("policeold2")) || iParam0 == joaat("police2")) || iParam0 == joaat("police3")) || iParam0 == joaat("police4")) || iParam0 == joaat("fbi")) || iParam0 == joaat("fbi2")) || iParam0 == joaat("polmav")) || iParam0 == joaat("policeb")) || iParam0 == joaat("policet")) || iParam0 == joaat("riot")) || iParam0 == joaat("sheriff")) || iParam0 == joaat("pranger")) || iParam0 == joaat("sheriff2"))
		{
			*uParam2 = 1;
			return false;
		}
	}
	if (((((((iParam0 == joaat("ambulance") || iParam0 == 1938952078) || iParam0 == joaat("taxi")) || iParam0 == joaat("lguard")) || iParam0 == joaat("ripley")) || iParam0 == joaat("dilettante2")) || iParam0 == joaat("airbus")) || iParam0 == joaat("airtug"))
	{
		*uParam2 = 2;
		return false;
	}
	if (((iParam0 == joaat("burrito") || iParam0 == joaat("rumpo2")) || iParam0 == joaat("speedo")) || iParam0 == joaat("speedo2"))
	{
		*uParam2 = 2;
		return false;
	}
	if (((iParam0 == joaat("scorcher") || iParam0 == joaat("bmx")) || iParam0 == joaat("cruiser")) || iParam0 == joaat("fixter"))
	{
		*uParam2 = 2;
		return false;
	}
	if (((((((((((((((((((iParam0 == joaat("caddy") || iParam0 == joaat("forklift")) || iParam0 == joaat("caddy2")) || iParam0 == joaat("crusader")) || iParam0 == joaat("tribike")) || iParam0 == joaat("tribike2")) || iParam0 == joaat("tribike3")) || iParam0 == joaat("tractor")) || iParam0 == joaat("tractor2")) || iParam0 == joaat("mower")) || iParam0 == joaat("tornado4")) || iParam0 == joaat("docktug")) || iParam0 == joaat("stretch")) || iParam0 == joaat("bison2")) || iParam0 == joaat("bison3")) || iParam0 == joaat("benson")) || iParam0 == joaat("pounder")) || iParam0 == joaat("submersible")) || iParam0 == joaat("emperor3")) || iParam0 == joaat("dune2"))
	{
		*uParam2 = 2;
		return false;
	}
	if (((((!vehicle::is_this_model_a_car(iParam0) && !vehicle::is_this_model_a_bike(iParam0)) && iParam0 != joaat("blazer")) && iParam0 != joaat("blazer3")) && iParam0 != joaat("blazer4")) && iParam0 != joaat("chimera"))
	{
		*uParam2 = 2;
		return false;
	}
	if (iParam0 == joaat("monster"))
	{
		*uParam2 = 2;
		return false;
	}
	if ((iParam0 == joaat("insurgent") || iParam0 == joaat("technical")) || iParam0 == joaat("limo2"))
	{
		*uParam2 = 2;
		return false;
	}
	if (network::network_is_game_in_progress())
	{
		if (func_374(iParam0))
		{
			*uParam2 = 2;
			return false;
		}
	}
	if (!network::network_is_game_in_progress())
	{
		if (iParam0 == joaat("insurgent") || iParam0 == joaat("insurgent2"))
		{
			*uParam2 = 2;
		}
	}
	return true;
}

bool func_374(int iParam0)//Position - 0x43091
{
	switch (iParam0)
	{
		case joaat("towtruck"):
		case joaat("towtruck2"):
		case joaat("forklift"):
			return true;
			break;
	}
	return false;
}

void func_375(int iParam0, int iParam1)//Position - 0x430BA
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 9)
	{
		if (!entity::does_entity_exist(Global_89070[iVar0]))
		{
			Global_89070[iVar0] = iParam0;
			Global_89080[iVar0] = iParam1;
			Global_89090[iVar0] = entity::get_entity_model(iParam0);
			if (vehicle::is_this_model_a_car(Global_89090[iVar0]))
			{
				Global_89118[iParam1 /*3*/][0] = -1;
			}
			else
			{
				Global_89118[iParam1 /*3*/][1] = -1;
			}
			iVar0 = 9;
		}
		if (iVar0 == 8)
		{
		}
		iVar0++;
	}
}

void func_376(var uParam0)//Position - 0x4313C
{
	if (!func_377(*uParam0))
	{
		vehicle::set_vehicle_extra(*uParam0, 5, !Global_101553.f_7940.f_99.f_58[119]);
	}
}

int func_377(int iParam0)//Position - 0x43167
{
	return vehicle::is_vehicle_extra_turned_on(iParam0, 5);
}

bool func_378(int iParam0, var uParam1, var uParam2)//Position - 0x43176
{
	int iVar0;
	int iVar1;
	
	if (!vehicle::is_vehicle_driveable(*iParam0, 0))
	{
		return false;
	}
	if (vehicle::get_num_mod_kits(*iParam0) == 0)
	{
		return false;
	}
	vehicle::set_vehicle_mod_kit(*iParam0, 0);
	iVar0 = 0;
	while (iVar0 < *uParam1)
	{
		iVar1 = iVar0;
		if (((((iVar1 == 17 || iVar1 == 18) || iVar1 == 19) || iVar1 == 20) || iVar1 == 21) || iVar1 == 22)
		{
			vehicle::toggle_vehicle_mod(*iParam0, iVar1, (*uParam1)[iVar0] > 0);
		}
		else if (vehicle::get_vehicle_mod(*iParam0, iVar1) != ((*uParam1)[iVar0] - 1))
		{
			vehicle::remove_vehicle_mod(*iParam0, iVar1);
			if ((*uParam1)[iVar0] > 0)
			{
				if (iVar0 == 23)
				{
					vehicle::set_vehicle_mod(*iParam0, iVar1, ((*uParam1)[iVar0] - 1), (*uParam2)[0] > 0);
				}
				else if (iVar0 == 24)
				{
					vehicle::set_vehicle_mod(*iParam0, iVar1, ((*uParam1)[iVar0] - 1), (*uParam2)[1] > 0);
				}
				else
				{
					vehicle::set_vehicle_mod(*iParam0, iVar1, ((*uParam1)[iVar0] - 1), false);
				}
			}
		}
		iVar0++;
	}
	if (func_381(entity::get_entity_model(*iParam0), 1) && vehicle::get_vehicle_mod(*iParam0, 24) != func_380(*iParam0, ((*uParam1)[38] - 1)))
	{
		vehicle::set_vehicle_mod(*iParam0, 24, func_380(*iParam0, ((*uParam1)[38] - 1)), false);
	}
	if (func_379(*iParam0))
	{
		vehicle::set_vehicle_strong(*iParam0, true);
		vehicle::set_vehicle_has_strong_axles(*iParam0, true);
	}
	return true;
}

bool func_379(int iParam0)//Position - 0x432EE
{
	int iVar0;
	int iVar1;
	int iVar2;
	char cVar3[16];
	
	if ((entity::does_entity_exist(iParam0) && vehicle::is_vehicle_driveable(iParam0, 0)) && vehicle::get_num_mod_kits(iParam0) > 0)
	{
		vehicle::set_vehicle_mod_kit(iParam0, 0);
		iVar0 = 0;
		while (iVar0 < 49)
		{
			iVar1 = iVar0;
			if (((((iVar1 == 17 || iVar1 == 18) || iVar1 == 19) || iVar1 == 20) || iVar1 == 21) || iVar1 == 22)
			{
			}
			else if (vehicle::get_vehicle_mod(iParam0, iVar1) != -1)
			{
				StringCopy(&cVar3, vehicle::get_mod_text_label(iParam0, iVar1, vehicle::get_vehicle_mod(iParam0, iVar1)), 16);
				iVar2 = gameplay::get_hash_key(&cVar3);
				if (iVar2 != 0)
				{
					if (iVar2 == gameplay::get_hash_key("MNU_CAGE") || iVar2 == gameplay::get_hash_key("SABRE_CAG"))
					{
						return true;
					}
				}
			}
			iVar0++;
		}
	}
	return false;
}

int func_380(int iParam0, int iParam1)//Position - 0x433CC
{
	int iVar0;
	int iVar1;
	float fVar2;
	int iVar3;
	
	if (entity::does_entity_exist(iParam0) && vehicle::is_vehicle_driveable(iParam0, 0))
	{
		switch (entity::get_entity_model(iParam0))
		{
			case joaat("tornado5"):
				switch (iParam1)
				{
					case 0:
						return 0;
						break;
					
					case 1:
						return 1;
						break;
					
					case 2:
						return 2;
						break;
					
					case 3:
						return 3;
						break;
					
					case 4:
						return 4;
						break;
					
					case 5:
						return 4;
						break;
				}
				break;
			
			case joaat("faction3"):
				return 3;
				break;
		}
		iVar0 = vehicle::get_num_vehicle_mods(iParam0, 38);
		iVar1 = vehicle::get_num_vehicle_mods(iParam0, 24);
		fVar2 = (system::to_float(iParam1 + 1) / system::to_float(iVar0));
		iVar3 = (system::floor((system::to_float(iVar1) * fVar2)) - 1);
		if (iVar3 < 0)
		{
			iVar3 = 0;
		}
		if (iVar3 >= iVar0)
		{
			iVar3 = (iVar0 - 1);
		}
		return iVar3;
	}
	return 0;
}

bool func_381(int iParam0, int iParam1)//Position - 0x434B1
{
	switch (iParam0)
	{
		case joaat("faction2"):
		case joaat("buccaneer2"):
		case joaat("chino2"):
		case joaat("moonbeam2"):
		case joaat("primo2"):
		case joaat("voodoo"):
			return true;
			break;
		
		case joaat("sabregt2"):
			if (!Global_262145.f_12151)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("tornado5"):
			if (!Global_262145.f_12152)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("virgo2"):
			if (!Global_262145.f_12150)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("minivan2"):
			if (!Global_262145.f_12153)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("slamvan3"):
			if (!Global_262145.f_12155)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("faction3"):
			if (!Global_262145.f_12154)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("sultanrs"):
		case joaat("banshee2"):
			if (iParam1 & 1 != 0)
			{
				return false;
			}
			return true;
			break;
	}
	return false;
}

bool func_382(var uParam0, int iParam1)//Position - 0x435C5
{
	if (network::network_is_game_in_progress())
	{
	}
	else if (Global_101553.f_24808.f_261)
	{
		*uParam0 = { Global_101553.f_24808.f_267 };
		*iParam1 = Global_101553.f_24808.f_271;
		return true;
	}
	return false;
}

void func_383(var uParam0)//Position - 0x43606
{
	switch (Local_325[uParam0 /*10*/].f_6)
	{
		case 0:
			if ((vehicle::is_playback_going_on_for_vehicle(Local_1450[6 /*2*/]) && vehicle::get_time_position_in_recording(Local_1450[6 /*2*/]) > 1600f) || !vehicle::is_playback_going_on_for_vehicle(Local_1450[6 /*2*/]))
			{
				ai::set_ped_path_avoid_fire(Local_1071[2 /*14*/], 0);
				func_417(14, 59, 1, 0);
				func_417(20, 60, 1, 0);
				func_417(30, 61, 1, 0);
				if (!func_287(17, 58))
				{
					func_122();
					ai::task_go_to_coord_while_aiming_at_coord(0, -1094.154f, -1640.431f, 3.3985f, -1112.198f, -1614.296f, 5.2204f, 1f, false, 0.5f, 4f, true, 0, 0, -957453492);
					ai::task_aim_gun_at_coord(0, -1094.154f, -1640.431f, 3.3985f, 3000, 0, 0);
					ai::task_go_to_coord_while_aiming_at_coord(0, -1095.362f, -1640.829f, 3.3985f, -1090.002f, -1625.818f, 5.072f, 1f, false, 0.5f, 4f, true, 0, 0, -957453492);
					ai::task_aim_gun_at_coord(0, -1090.002f, -1625.818f, 5.072f, 4000, 0, 0);
					ai::task_go_to_coord_while_aiming_at_coord(0, -1095.362f, -1640.829f, 3.3985f, -1090.002f, -1625.818f, 5.072f, 1f, false, 0.5f, 4f, true, 0, 0, -957453492);
					ai::task_aim_gun_at_coord(0, -1090.002f, -1625.818f, 5.072f, 3000, 0, 0);
					func_121(Local_1071[2 /*14*/], 1);
				}
				Local_325[uParam0 /*10*/].f_6++;
			}
			break;
		
		case 1:
			if (func_287(17, 58))
			{
				Local_325[uParam0 /*10*/].f_6 = 3;
				weapon::set_current_ped_weapon(Local_1071[2 /*14*/], joaat("weapon_unarmed"), true);
				func_122();
				ai::task_follow_waypoint_recording(0, "arm2_fire", 0, 0, -1);
				ai::task_follow_nav_mesh_to_coord(0, -1114.053f, -1612.679f, 3.2403f, 2f, 20000, 0.25f, 1, 1193033728);
				ped::set_ped_max_move_blend_ratio(Local_1071[2 /*14*/], 2f);
				func_121(Local_1071[2 /*14*/], 0);
				Local_325[uParam0 /*10*/].f_7 = gameplay::get_game_timer() + 4800;
				Local_325[uParam0 /*10*/].f_8 = 0;
			}
			break;
		
		case 3:
			if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
			{
				if (Local_325[uParam0 /*10*/].f_8 == 0)
				{
					ped::set_ped_max_move_blend_ratio(Local_1071[2 /*14*/], 2f);
					if (ai::is_waypoint_playback_going_on_for_ped(Local_1071[2 /*14*/]))
					{
						if (ai::get_ped_waypoint_progress(Local_1071[2 /*14*/]) > 8)
						{
							ai::task_follow_nav_mesh_to_coord(Local_1071[2 /*14*/], -1114.053f, -1612.679f, 3.2403f, 2f, 20000, 0.25f, 1, 1193033728);
							ped::set_ped_min_move_blend_ratio(Local_1071[2 /*14*/], 2f);
							Local_325[uParam0 /*10*/].f_8 = 1;
						}
					}
				}
				else
				{
					ped::set_ped_min_move_blend_ratio(Local_1071[2 /*14*/], 2f);
					ped::set_ped_max_move_blend_ratio(Local_1071[2 /*14*/], 2f);
				}
			}
			if (gameplay::get_game_timer() > Local_325[uParam0 /*10*/].f_7 && streaming::has_model_loaded(joaat("bagger")))
			{
				if (func_367(&(Local_1450[4 /*2*/]), 1, -1126.017f, -1575.357f, 3.3486f, 301f, 1, 2))
				{
					vehicle::set_vehicle_tyres_can_burst(Local_1450[4 /*2*/], false);
					func_384(8, iLocal_2220, vLocal_1068, 0f, Local_1450[4 /*2*/], -1, 0, 0, 0, 0);
					ped::set_ped_component_variation(Local_1071[8 /*14*/], 0, 1, 2, 0);
					ped::set_ped_money(Local_1071[8 /*14*/], 80);
					ped::set_blocking_of_non_temporary_events(Local_1071[8 /*14*/], true);
					Local_325[uParam0 /*10*/].f_7 = ped::create_synchronized_scene(-1126.46f, -1584.626f, 3.437f, 0f, 0f, -139.68f, 2);
					ped::_0x394B9CD12435C981(Local_325[uParam0 /*10*/].f_7, true);
					ai::task_synchronized_scene(Local_1071[8 /*14*/], Local_325[uParam0 /*10*/].f_7, "missarmenian2_mcs_5", "_rider", 1000f, -1000f, 0, 0, 1148846080, 0);
					entity::play_synchronized_entity_anim(Local_1450[4 /*2*/], Local_325[uParam0 /*10*/].f_7, "_bike", "missarmenian2_mcs_5", 1000f, 8f, 0, 1148846080);
					entity::set_entity_health(Local_1071[8 /*14*/], 1000);
					ped::set_ped_can_be_targetted(Local_1071[8 /*14*/], false);
					Local_325[uParam0 /*10*/].f_6++;
				}
			}
			break;
		
		case 4:
			if (!ped::is_ped_injured(Local_1071[2 /*14*/]) && vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
			{
				ped::set_ped_max_move_blend_ratio(Local_1071[2 /*14*/], 2f);
				if (entity::is_entity_in_angled_area(Local_1450[4 /*2*/], -1129.596f, -1588.691f, -0.139362f, -1141.044f, -1572.93f, 7.562129f, 9.25f, 0, true, 0))
				{
					ped::set_ped_can_ragdoll_from_player_impact(Local_1071[2 /*14*/], 0);
					func_414("ARM2_FIGHT_END", 0, "ARM2_CHASE_START");
					if (audio::is_audio_scene_active("ARM_2_SHOOTOUT"))
					{
						audio::stop_audio_scene("ARM_2_SHOOTOUT");
					}
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						ped::clear_ped_alternate_walk_anim(Local_1071[2 /*14*/], -1056964608);
						ped::reset_ped_movement_clipset(Local_1071[2 /*14*/], 1048576000);
					}
					unk1::_0x293220DA1B46CEBC(2f, 7.5f, 4);
					func_122();
					ai::task_pause(0, 500);
					ai::task_look_at_entity(0, player::player_ped_id(), 5000, 1028, 2);
					ai::task_play_anim(0, "reaction@points@", "loop_0", 4f, -1.5f, 3500, 49168, 0f, 0, 0, 0);
					ai::task_pause(0, 100);
					ai::task_follow_nav_mesh_to_coord(0, -1130.321f, -1589.826f, 3.3891f, 2f, -1, 0.25f, 0, 39f);
					ai::task_climb(0, 1);
					func_121(Local_1071[2 /*14*/], 0);
					Local_325[uParam0 /*10*/].f_8 = 0;
					Local_325[uParam0 /*10*/].f_6++;
				}
			}
			break;
		
		case 5:
			if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
			{
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "reaction@points@", "loop_0", 3))
				{
					if (entity::get_entity_heading(Local_1071[2 /*14*/]) < 20f || entity::get_entity_heading(Local_1071[2 /*14*/]) > 40f)
					{
						ai::stop_anim_task(Local_1071[2 /*14*/], "reaction@points@", "loop_0", -16f);
					}
				}
			}
			if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
			{
				if (!ped::is_synchronized_scene_running(Local_325[uParam0 /*10*/].f_7) || (ped::is_synchronized_scene_running(Local_325[uParam0 /*10*/].f_7) && ped::get_synchronized_scene_phase(Local_325[uParam0 /*10*/].f_7) >= 0.811f))
				{
					if (ped::is_synchronized_scene_running(Local_325[uParam0 /*10*/].f_7))
					{
						entity::stop_synchronized_entity_anim(Local_1450[4 /*2*/], 1000f, 1);
					}
					if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
					{
						ai::clear_ped_tasks_immediately(Local_1071[8 /*14*/]);
						ped::set_ped_into_vehicle(Local_1071[8 /*14*/], Local_1450[4 /*2*/], -1);
						entity::set_entity_heading(Local_1450[4 /*2*/], 302f);
						vehicle::set_vehicle_forward_speed(Local_1450[4 /*2*/], 10f);
					}
					Local_325[uParam0 /*10*/].f_3 = 1;
				}
			}
			if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
			{
				if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
				{
					if (!ped::is_ped_in_any_vehicle(Local_1071[8 /*14*/], 1))
					{
						if (ai::get_script_task_status(Local_1071[8 /*14*/], 1785177548) != 1)
						{
							if (ped::is_synchronized_scene_running(Local_325[uParam0 /*10*/].f_7))
							{
								entity::stop_synchronized_entity_anim(Local_1450[4 /*2*/], 2f, 1);
								Local_325[uParam0 /*10*/].f_3 = 1;
							}
						}
					}
				}
				else if (ped::is_synchronized_scene_running(Local_325[uParam0 /*10*/].f_7))
				{
					entity::stop_synchronized_entity_anim(Local_1450[4 /*2*/], 2f, 1);
					Local_325[uParam0 /*10*/].f_3 = 1;
				}
			}
			if (Local_325[uParam0 /*10*/].f_8 == 0)
			{
				if (ped::is_synchronized_scene_running(Local_325[uParam0 /*10*/].f_7))
				{
					if (ped::get_synchronized_scene_phase(Local_325[uParam0 /*10*/].f_7) >= fLocal_291)
					{
						audio::play_sound_from_coord(-1, "Biker_Ride_Off", -1130.702f, -1584.584f, 4.1201f, "ARM_2_REPO_SOUNDS", 0, 0, 0);
						Local_325[uParam0 /*10*/].f_8 = 1;
					}
				}
			}
			break;
	}
	if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
	{
		fire::stop_entity_fire(Local_1071[2 /*14*/]);
		entity::set_entity_proofs(Local_1071[2 /*14*/], false, true, false, false, false, false, 0, false);
	}
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		fire::stop_entity_fire(player::player_ped_id());
	}
}

void func_384(int iParam0, int iParam1, vector3 vParam2, float fParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11)//Position - 0x43DD5
{
	vector3 vVar0;
	
	if (iParam0 == -1 || iParam0 >= 27)
	{
	}
	if (iParam0 != 0)
	{
		if (ped::is_ped_injured(Local_1071[iParam0 /*14*/]))
		{
			entity::set_ped_as_no_longer_needed(&(Local_1071[iParam0 /*14*/]));
		}
		else if (Local_1071[iParam0 /*14*/] == player::player_ped_id())
		{
			if (entity::get_entity_model(Local_1071[iParam0 /*14*/]) != entity::get_entity_model(player::player_ped_id()))
			{
				Local_1071[iParam0 /*14*/] = 0;
			}
		}
		else if (entity::get_entity_model(Local_1071[iParam0 /*14*/]) != iParam1 && iParam1 != 0)
		{
			ped::delete_ped(&(Local_1071[iParam0 /*14*/]));
			Local_1071[iParam0 /*14*/] = 0;
		}
	}
	iLocal_1471 = iLocal_1471;
	if (iParam6 == 0)
	{
		if (!entity::does_entity_exist(Local_1071[iParam0 /*14*/]) && iParam0 != 0)
		{
			if (iParam1 == 0)
			{
				if (ped::can_create_random_ped(0))
				{
					Local_1071[iParam0 /*14*/] = ped::create_random_ped(vParam2);
					entity::set_entity_heading(Local_1071[iParam0 /*14*/], fParam5);
				}
			}
			else
			{
				Local_1071[iParam0 /*14*/] = ped::create_ped(26, iParam1, vParam2, fParam5, 1, true);
				if (iParam11 == 1)
				{
					entity::set_entity_coords_no_offset(Local_1071[iParam0 /*14*/], vParam2, 0, 0, 1);
				}
			}
		}
		else if (!func_115(vParam2))
		{
			if (iParam0 == 0)
			{
				entity::set_entity_coords(player::player_ped_id(), vParam2, 1, false, 0, 1);
				entity::set_entity_heading(player::player_ped_id(), fParam5);
			}
			else if (!ped::is_ped_injured(Local_1071[iParam0 /*14*/]))
			{
				if (iParam11 == 1)
				{
					entity::set_entity_coords_no_offset(Local_1071[iParam0 /*14*/], vParam2, 0, 0, 1);
				}
				else
				{
					entity::set_entity_coords(Local_1071[iParam0 /*14*/], vParam2, 1, false, 0, 1);
				}
				entity::set_entity_heading(Local_1071[iParam0 /*14*/], fParam5);
			}
		}
	}
	else if (!entity::does_entity_exist(Local_1071[iParam0 /*14*/]) && iParam0 != 0)
	{
		if (vehicle::is_vehicle_driveable(iParam6, 0))
		{
			Local_1071[iParam0 /*14*/] = ped::create_ped_inside_vehicle(iParam6, 26, iParam1, iParam7, 1, true);
		}
	}
	else
	{
		if (!ped::is_ped_injured(Local_1071[iParam0 /*14*/]))
		{
			vVar0 = { entity::get_entity_coords(Local_1071[iParam0 /*14*/], 1) };
		}
		if (vehicle::is_vehicle_driveable(iParam6, 0))
		{
			if (iParam0 == 0)
			{
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					ped::set_ped_into_vehicle(player::player_ped_id(), iParam6, iParam7);
				}
			}
			else if (!ped::is_ped_injured(Local_1071[iParam0 /*14*/]))
			{
				ped::set_ped_into_vehicle(Local_1071[iParam0 /*14*/], iParam6, iParam7);
			}
		}
	}
	if (Local_1071[iParam0 /*14*/] != player::player_ped_id())
	{
		if (!ped::is_ped_injured(Local_1071[iParam0 /*14*/]))
		{
			entity::set_entity_only_damaged_by_player(Local_1071[iParam0 /*14*/], true);
			if (iParam10)
			{
				ped::set_ped_random_component_variation(Local_1071[iParam0 /*14*/], 0);
			}
			else
			{
				ped::set_ped_default_component_variation(Local_1071[iParam0 /*14*/]);
			}
		}
	}
	if (iParam8 != 0)
	{
		if (!ped::is_ped_injured(Local_1071[iParam0 /*14*/]))
		{
			switch (iParam8)
			{
				case 1:
					ped::set_ped_relationship_group_hash(Local_1071[iParam0 /*14*/], iLocal_1473);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 13, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 12, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 14, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 3, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 0, true);
					if (iParam9 != 0)
					{
						if (!weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], iParam9, 0))
						{
							weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], iParam9, 500, true, true);
						}
					}
					else if (!weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], joaat("weapon_pistol"), 0))
					{
						weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], joaat("weapon_pistol"), 500, true, true);
					}
					if (!ui::does_blip_exist(Local_1071[iParam0 /*14*/].f_1))
					{
						Local_1071[iParam0 /*14*/].f_1 = func_403(Local_1071[iParam0 /*14*/], 1, 0);
					}
					break;
				
				case 3:
					ped::set_ped_relationship_group_hash(Local_1071[iParam0 /*14*/], iLocal_1472);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 13, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 12, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 14, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 3, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 0, true);
					ped::set_ped_can_be_targetted(Local_1071[iParam0 /*14*/], false);
					if (iParam9 != joaat("weapon_unarmed"))
					{
						if (!weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], iParam9, 0))
						{
							weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], iParam9, 500, true, true);
						}
					}
					else if (!weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], joaat("weapon_pistol"), 0))
					{
						weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], joaat("weapon_pistol"), 500, true, true);
					}
					break;
				
				case 5:
					ped::set_ped_relationship_group_hash(Local_1071[iParam0 /*14*/], iLocal_1473);
					if (iParam9 != 0)
					{
						if (!weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], iParam9, 0))
						{
							weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], iParam9, 500, true, true);
						}
					}
					else if (!weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], joaat("weapon_pumpshotgun"), 0) && !weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], joaat("weapon_pistol"), 0))
					{
						if (gameplay::get_random_int_in_range(0, 3) == 0)
						{
							weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], joaat("weapon_pumpshotgun"), 500, true, true);
						}
						else
						{
							weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], joaat("weapon_pistol"), 500, true, true);
						}
					}
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 13, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 12, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 14, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 3, true);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 0, true);
					if (!ui::does_blip_exist(Local_1071[iParam0 /*14*/].f_1))
					{
						Local_1071[iParam0 /*14*/].f_1 = func_403(Local_1071[iParam0 /*14*/], 1, 0);
					}
					break;
				
				case 6:
					ped::set_blocking_of_non_temporary_events(Local_1071[iParam0 /*14*/], true);
					if (iParam9 != 0 && iParam9 != joaat("weapon_unarmed"))
					{
						if (!weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], iParam9, 0))
						{
							weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], iParam9, 500, true, true);
						}
					}
					ped::set_ped_relationship_group_hash(Local_1071[iParam0 /*14*/], iLocal_1474);
					if (!ui::does_blip_exist(Local_1071[iParam0 /*14*/].f_1))
					{
						Local_1071[iParam0 /*14*/].f_1 = func_403(Local_1071[iParam0 /*14*/], 1, 0);
					}
					break;
				
				case 8:
					ped::set_blocking_of_non_temporary_events(Local_1071[iParam0 /*14*/], true);
					if (iParam9 != 0 && iParam9 != joaat("weapon_unarmed"))
					{
						if (!weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], iParam9, 0))
						{
							weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], iParam9, 500, true, true);
						}
					}
					ped::set_ped_can_be_targetted(Local_1071[iParam0 /*14*/], true);
					ped::set_ped_relationship_group_hash(Local_1071[iParam0 /*14*/], iLocal_1474);
					break;
				
				case 4:
					ped::set_blocking_of_non_temporary_events(Local_1071[iParam0 /*14*/], true);
					if (iParam9 != 0 && iParam9 != joaat("weapon_unarmed"))
					{
						if (!weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], iParam9, 0))
						{
							weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], iParam9, 500, true, true);
						}
					}
					ped::set_ped_can_be_targetted(Local_1071[iParam0 /*14*/], false);
					ped::set_ped_relationship_group_hash(Local_1071[iParam0 /*14*/], iLocal_1474);
					break;
				
				case 2:
					ped::set_blocking_of_non_temporary_events(Local_1071[iParam0 /*14*/], true);
					if (iParam9 != 0 && iParam9 != joaat("weapon_unarmed"))
					{
						if (!weapon::has_ped_got_weapon(Local_1071[iParam0 /*14*/], iParam9, 0))
						{
							weapon::give_weapon_to_ped(Local_1071[iParam0 /*14*/], iParam9, 500, true, true);
						}
					}
					ped::set_ped_can_be_targetted(Local_1071[iParam0 /*14*/], false);
					ped::set_ped_combat_attributes(Local_1071[iParam0 /*14*/], 17, true);
					break;
				
				case 7:
					ped::set_ped_relationship_group_hash(Local_1071[iParam0 /*14*/], iLocal_1475);
					break;
				}
			}
	}
	if (iLocal_1476 == 1)
	{
		if (!ped::is_ped_injured(Local_1071[iParam0 /*14*/]))
		{
			if (entity::get_entity_model(Local_1071[iParam0 /*14*/]) == func_16(1))
			{
				func_385(Local_1071[iParam0 /*14*/], 14, 158, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
			}
			if (entity::get_entity_model(Local_1071[iParam0 /*14*/]) == func_16(2))
			{
				func_385(Local_1071[iParam0 /*14*/], 14, 154, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
			}
			if (entity::get_entity_model(Local_1071[iParam0 /*14*/]) == func_16(0))
			{
				func_385(Local_1071[iParam0 /*14*/], 14, 112, 1, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
			}
		}
	}
}

bool func_385(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)//Position - 0x4458C
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	var uVar11;
	var uVar28;
	var uVar38;
	struct<14> Var55;
	var uVar69;
	
	if (ped::is_ped_injured(iParam0) || iParam2 == -99)
	{
		return false;
	}
	Global_69437++;
	iVar5 = -99;
	iVar6 = -99;
	iVar7 = -99;
	iVar8 = -99;
	iVar9 = -99;
	iVar10 = entity::get_entity_model(iParam0);
	if (iParam5 == 0)
	{
		Global_69438[1 /*14*/] = { func_175(iVar10, iParam1, iParam2) };
		if (!func_402(iParam3))
		{
			Global_69437 = (Global_69437 - 1);
			return false;
		}
		func_399(iParam1);
	}
	if (iParam1 == 12)
	{
		if (iParam7 == 1)
		{
			if (iVar10 == joaat("player_one"))
			{
				iVar5 = func_311(iParam0, 8);
				if (iVar5 != 9)
				{
					iVar5 = -99;
				}
			}
			iVar6 = func_311(iParam0, 9);
			if (iVar10 == joaat("player_zero"))
			{
				if (iVar6 >= 9 && iVar6 <= 14)
				{
				}
				else
				{
					iVar6 = -99;
				}
			}
			else if (iVar10 == joaat("player_one"))
			{
				if (iVar6 >= 5 && iVar6 <= 10)
				{
				}
				else
				{
					iVar6 = -99;
				}
			}
			else if (iVar10 == joaat("player_two"))
			{
				if ((iVar6 >= 9 && iVar6 <= 14) || (iVar6 >= 15 && iVar6 <= 16))
				{
				}
				else
				{
					iVar6 = -99;
				}
			}
			iVar7 = func_312(iParam0, 1);
			if (!func_318(iVar10, 14, iVar7))
			{
				iVar7 = -99;
			}
			iVar8 = func_312(iParam0, 0);
			if (!func_317(iVar10, 14, iVar8) && !func_315(iVar10, 14, iVar8))
			{
				iVar8 = -99;
			}
			if (iVar10 == joaat("player_one"))
			{
				iVar9 = func_312(iParam0, 2);
			}
		}
		ped::clear_all_ped_props(iParam0);
		uVar11 = 15;
		if (iParam5 == 1)
		{
			uVar11 = { Global_69481 };
		}
		else
		{
			uVar11 = { func_323(iVar10, iParam2) };
		}
		iVar0 = 0;
		while (iVar0 <= 14)
		{
			if (uVar11[iVar0] != -99)
			{
				Global_69438[1 /*14*/] = { func_175(iVar10, iVar0, uVar11[iVar0]) };
				if (gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 0))
				{
					if (iVar0 == 13)
					{
						uVar28 = 9;
						if (iParam5 == 1)
						{
							uVar28 = { Global_69498 };
						}
						else
						{
							uVar28 = { func_320(iVar10, uVar11[iVar0]) };
						}
						iVar1 = 0;
						while (iVar1 <= 8)
						{
							Global_69438[1 /*14*/] = { func_175(iVar10, 14, uVar28[iVar1]) };
							func_397(iParam0, Global_69438[1 /*14*/].f_12, Global_69438[1 /*14*/].f_3, Global_69438[1 /*14*/].f_4);
							func_399(14);
							if (Global_69437 == 1)
							{
								iVar2 = 0;
								while (iVar2 < 15)
								{
									iVar3 = func_391(iParam0, iVar10, 14, uVar28[iVar1], iVar2, 0);
									if (iVar3 != -99)
									{
										func_385(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
									}
									iVar2++;
								}
							}
							iVar1++;
						}
					}
					else if (iVar0 != 14 && iVar0 != 12)
					{
						if ((iVar10 == joaat("player_one") && iVar0 == 2) && uVar11[iVar0] == 20)
						{
							func_241(iVar10, 2, 20, &iVar4);
						}
						if (iParam4 == -1)
						{
							ped::set_ped_component_variation(iParam0, func_170(iVar0), Global_69438[1 /*14*/].f_3, Global_69438[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_170(iVar0)));
						}
						else
						{
							ped::set_ped_component_variation(iParam0, func_170(iVar0), Global_69438[1 /*14*/].f_3, Global_69438[1 /*14*/].f_4, iParam4);
						}
						func_399(iVar0);
						if (Global_69437 == 1)
						{
							iVar2 = 0;
							while (iVar2 < 15)
							{
								iVar3 = func_391(iParam0, iVar10, iVar0, uVar11[iVar0], iVar2, 0);
								if (iVar3 != -99)
								{
									func_385(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
								}
								iVar2++;
							}
						}
					}
				}
			}
			else if (iVar0 != 12 && iVar0 != 14)
			{
				Global_69438[1 /*14*/] = { func_175(iVar10, iVar0, func_310(iParam0, iVar0, -1)) };
				if (gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 3))
				{
					if (iVar0 == 2)
					{
						if (iVar10 == joaat("player_one"))
						{
							if (func_390(iParam0, iVar10, &iVar4, 1))
							{
								func_385(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
							}
						}
					}
					else
					{
						uVar38 = { func_323(iVar10, 0) };
						func_385(iParam0, iVar0, uVar38[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
				}
			}
			iVar0++;
		}
		if (iParam7 == 1)
		{
			Var55 = { func_175(iVar10, 8, iVar5) };
			if (iVar5 != -99)
			{
				if (func_314(iVar10, iParam2, 8, iVar5, &uVar11, &Var55))
				{
					func_385(iParam0, 8, iVar5, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
				}
			}
			Var55 = { func_175(iVar10, 9, iVar6) };
			if (iVar6 != -99)
			{
				if (func_314(iVar10, iParam2, 9, iVar6, &uVar11, &Var55))
				{
					func_385(iParam0, 9, iVar6, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
				}
			}
			Var55 = { func_175(iVar10, 14, iVar7) };
			if (iVar7 != -99)
			{
				if (func_314(iVar10, iParam2, 14, iVar7, &uVar11, &Var55))
				{
					func_385(iParam0, 14, iVar7, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
				}
			}
			Var55 = { func_175(iVar10, 14, iVar8) };
			if (iVar8 != -99)
			{
				if (func_314(iVar10, iParam2, 14, iVar8, &uVar11, &Var55))
				{
					func_385(iParam0, 14, iVar8, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
				}
			}
			Var55 = { func_175(iVar10, 14, iVar9) };
			if (iVar9 != -99)
			{
				if (func_314(iVar10, iParam2, 14, iVar9, &uVar11, &Var55))
				{
					func_385(iParam0, 14, iVar9, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
				}
			}
		}
	}
	else if (iParam1 == 13)
	{
		uVar69 = { func_320(iVar10, iParam2) };
		iVar1 = 0;
		while (iVar1 <= 8)
		{
			Global_69438[1 /*14*/] = { func_175(iVar10, 14, uVar69[iVar1]) };
			func_397(iParam0, Global_69438[1 /*14*/].f_12, Global_69438[1 /*14*/].f_3, Global_69438[1 /*14*/].f_4);
			func_399(14);
			if (Global_69437 == 1)
			{
				iVar2 = 0;
				while (iVar2 < 15)
				{
					iVar3 = func_391(iParam0, iVar10, 14, uVar69[iVar1], iVar2, 0);
					if (iVar3 != -99)
					{
						func_385(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
					}
					iVar2++;
				}
			}
			iVar1++;
		}
	}
	else if (iParam1 == 14)
	{
		func_397(iParam0, Global_69438[1 /*14*/].f_12, Global_69438[1 /*14*/].f_3, Global_69438[1 /*14*/].f_4);
		func_399(iParam1);
		if (Global_69437 == 1)
		{
			iVar2 = 0;
			while (iVar2 < 15)
			{
				iVar3 = func_391(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
				if (iVar3 != -99)
				{
					func_385(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
				}
				iVar2++;
			}
		}
	}
	else
	{
		if (iParam4 == -1)
		{
			ped::set_ped_component_variation(iParam0, func_170(iParam1), Global_69438[1 /*14*/].f_3, Global_69438[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_170(iParam1)));
		}
		else
		{
			ped::set_ped_component_variation(iParam0, func_170(iParam1), Global_69438[1 /*14*/].f_3, Global_69438[1 /*14*/].f_4, iParam4);
		}
		if (Global_69437 == 1)
		{
			iVar2 = 0;
			while (iVar2 < 15)
			{
				iVar3 = func_391(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
				if (iVar3 != -99)
				{
					func_385(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
				}
				iVar2++;
			}
		}
		if (iParam6 == 0)
		{
			func_387(iVar10, iParam1, iParam2);
		}
	}
	if (Global_69437 == 1)
	{
		if (func_390(iParam0, iVar10, &iVar4, 0))
		{
			func_385(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
		}
		if (func_386(iParam0, iVar10, &iVar4))
		{
			func_385(iParam0, 1, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
		}
	}
	Global_69437 = (Global_69437 - 1);
	return true;
}

bool func_386(int iParam0, int iParam1, int iParam2)//Position - 0x44D95
{
	var uVar0;
	
	uVar0 = func_174(iParam1);
	if (Global_101553.f_1991.f_539[uVar0 /*65*/].f_63 != -99)
	{
		if (!func_313(iParam0, Global_101553.f_1991.f_539[uVar0 /*65*/].f_64, Global_101553.f_1991.f_539[uVar0 /*65*/].f_63))
		{
			*iParam2 = Global_101553.f_1991.f_539[uVar0 /*65*/].f_62;
			Global_101553.f_1991.f_539[uVar0 /*65*/].f_63 = -99;
			Global_101553.f_1991.f_539[uVar0 /*65*/].f_64 = 1;
			return true;
		}
	}
	return false;
}

void func_387(int iParam0, int iParam1, int iParam2)//Position - 0x44E21
{
	int iVar0;
	var uVar1;
	
	if (iParam0 == joaat("player_zero"))
	{
		iVar0 = 5;
	}
	else if (iParam0 == joaat("player_one"))
	{
		iVar0 = 2;
	}
	else if (iParam0 == joaat("player_two"))
	{
		iVar0 = 4;
	}
	if (func_389(iParam0, 12, iVar0))
	{
		if (func_388(iParam0, iParam1, iParam2))
		{
			uVar1 = func_174(iParam0);
			if (iParam1 == 3)
			{
				Global_101553.f_1991.f_539.f_196[uVar1] = iParam2;
			}
			else if (iParam1 == 4)
			{
				Global_101553.f_1991.f_539.f_200[uVar1] = iParam2;
			}
		}
	}
}

bool func_388(int iParam0, int iParam1, int iParam2)//Position - 0x44EAB
{
	if (iParam0 == joaat("player_zero"))
	{
		if (iParam1 == 4)
		{
			if (iParam2 >= 47 && iParam2 <= 54)
			{
				return true;
			}
		}
		else if (iParam1 == 3)
		{
			if (iParam2 >= 77 && iParam2 <= 84)
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_one"))
	{
		if (iParam1 == 4)
		{
			if (iParam2 >= 14 && iParam2 <= 21)
			{
				return true;
			}
		}
		else if (iParam1 == 3)
		{
			if (iParam2 >= 41 && iParam2 <= 56)
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_two"))
	{
		if (iParam1 == 4)
		{
			if (iParam2 >= 18 && iParam2 <= 29)
			{
				return true;
			}
		}
		else if (iParam1 == 3)
		{
			if (iParam2 >= 54 && iParam2 <= 69)
			{
				return true;
			}
		}
	}
	return false;
}

int func_389(int iParam0, int iParam1, int iParam2)//Position - 0x44F89
{
	Global_69438[1 /*14*/] = { func_175(iParam0, iParam1, iParam2) };
	return gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 2);
}

bool func_390(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x44FB3
{
	var uVar0;
	
	uVar0 = func_174(iParam1);
	if (Global_101553.f_1991.f_539[uVar0 /*65*/].f_60 != -99)
	{
		if (!func_313(iParam0, Global_101553.f_1991.f_539[uVar0 /*65*/].f_61, Global_101553.f_1991.f_539[uVar0 /*65*/].f_60) || iParam3 == 1)
		{
			*iParam2 = Global_101553.f_1991.f_539[uVar0 /*65*/].f_59;
			Global_101553.f_1991.f_539[uVar0 /*65*/].f_60 = -99;
			Global_101553.f_1991.f_539[uVar0 /*65*/].f_61 = 2;
			return true;
		}
	}
	return false;
}

int func_391(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x45049
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	
	iVar0 = -99;
	if (iParam4 == 0)
	{
		switch (iParam2)
		{
			case 2:
				iVar1 = func_311(iParam0, 1);
				iVar0 = func_165(iParam1, iParam3, iVar1);
				break;
			
			case 1:
				iVar2 = func_311(iParam0, 2);
				iVar0 = func_165(iParam1, iVar2, iParam3);
				break;
		}
	}
	else if (iParam4 == 2)
	{
		func_241(iParam1, iParam2, iParam3, &iVar0);
	}
	else if (iParam4 == 1)
	{
		func_173(iParam1, iParam2, iParam3, &iVar0);
	}
	else if (iParam4 == 6)
	{
		if (iParam2 == 4)
		{
			if (func_396(iParam1, iParam3, &iVar0))
			{
			}
		}
	}
	else
	{
		switch (iParam1)
		{
			case joaat("player_zero"):
				switch (iParam4)
				{
					case 3:
						switch (iParam2)
						{
							case 10:
								switch (iParam3)
								{
									case 36:
										iVar0 = 17;
										break;
									
									case 37:
										iVar0 = 17;
										break;
									
									case 38:
										iVar0 = 18;
										break;
									
									case 39:
										iVar0 = 18;
										break;
									
									case 40:
										iVar0 = 19;
										break;
									
									case 41:
										iVar0 = 19;
										break;
									
									case 42:
										iVar0 = 20;
										break;
									
									case 43:
										iVar0 = 20;
										break;
								}
								break;
							
							case 11:
								if (iParam3 >= 2 && iParam3 <= 7)
								{
									if (!func_395(iParam0, 3, 44, 59))
									{
										iVar0 = 44;
									}
								}
								else if (((iParam3 >= 8 && iParam3 <= 17) || (iParam3 >= 18 && iParam3 <= 27)) || (iParam3 >= 28 && iParam3 <= 43))
								{
									if (!func_395(iParam0, 3, 135, 150))
									{
										iVar0 = func_394(iParam1, 3, 135, 150);
									}
								}
								break;
						}
						break;
					
					case 10:
						switch (iParam2)
						{
							case 3:
								switch (iParam3)
								{
									case 63:
										iVar0 = 4;
										break;
									
									case 61:
										iVar0 = 3;
										break;
									
									case 16:
										iVar0 = 1;
										break;
									
									case 114:
										iVar0 = 15;
										break;
									
									case 115:
										iVar0 = 17;
										break;
									
									case 116:
										iVar0 = 16;
										break;
									
									case 117:
										iVar0 = 18;
										break;
									
									case 118:
										iVar0 = 20;
										break;
									
									case 119:
										iVar0 = 19;
										break;
									
									case 125:
										iVar0 = 21;
										break;
									
									case 120:
										iVar0 = 22;
										break;
									
									case 124:
										iVar0 = 23;
										break;
									
									case 126:
										iVar0 = 24;
										break;
									
									case 121:
										iVar0 = 25;
										break;
									
									case 127:
										iVar0 = 26;
										break;
									
									case 128:
										iVar0 = 27;
										break;
									
									case 85:
										iVar0 = 6;
										break;
									
									case 77:
										iVar0 = 7;
										break;
									
									case 78:
										iVar0 = 8;
										break;
									
									case 79:
										iVar0 = 9;
										break;
									
									case 80:
										iVar0 = 10;
										break;
									
									case 81:
										iVar0 = 11;
										break;
									
									case 82:
										iVar0 = 12;
										break;
									
									case 83:
										iVar0 = 13;
										break;
									
									case 84:
										iVar0 = 14;
										break;
									
									case 21:
										iVar0 = 31;
										break;
									
									case 22:
										iVar0 = 30;
										break;
									
									case 23:
										iVar0 = 29;
										break;
									
									case 24:
										iVar0 = 28;
										break;
									
									case 25:
										iVar0 = 33;
										break;
									
									case 26:
										iVar0 = 35;
										break;
									
									case 27:
										iVar0 = 34;
										break;
									
									case 28:
										iVar0 = 32;
										break;
									
									default:
										if (iParam3 >= 17 && iParam3 <= 20)
										{
										}
										else
										{
											iVar0 = 0;
										}
										break;
								}
								break;
							
							case 11:
								if (iParam3 != 0)
								{
									iVar0 = 0;
								}
								break;
						}
						break;
					
					case 11:
						if (iParam2 == 3)
						{
							if ((iParam3 >= 44 && iParam3 <= 59) || (iParam3 >= 135 && iParam3 <= 150))
							{
							}
							else
							{
								iVar0 = 0;
							}
						}
						else if (iParam2 == 10)
						{
							if (iParam3 >= 36 && iParam3 <= 43)
							{
								iVar0 = 0;
							}
						}
						break;
				}
				break;
			
			case joaat("player_one"):
				switch (iParam4)
				{
					case 10:
						switch (iParam2)
						{
							case 3:
								switch (iParam3)
								{
									case 17:
										iVar0 = 2;
										break;
									
									case 90:
										iVar0 = 1;
										break;
									
									case 268:
										iVar0 = 3;
										break;
									
									case 269:
										iVar0 = 5;
										break;
									
									case 270:
										iVar0 = 4;
										break;
									
									case 271:
										iVar0 = 6;
										break;
									
									case 272:
										iVar0 = 8;
										break;
									
									case 273:
										iVar0 = 7;
										break;
									
									case 279:
										iVar0 = 9;
										break;
									
									case 274:
										iVar0 = 10;
										break;
									
									case 278:
										iVar0 = 11;
										break;
									
									case 280:
										iVar0 = 12;
										break;
									
									case 275:
										iVar0 = 13;
										break;
									
									case 281:
										iVar0 = 14;
										break;
									
									case 282:
										iVar0 = 15;
										break;
									
									case 107:
										iVar0 = 16;
										break;
									
									case 108:
										iVar0 = 17;
										break;
									
									case 109:
										iVar0 = 18;
										break;
									
									case 110:
										iVar0 = 19;
										break;
									
									case 111:
										iVar0 = 20;
										break;
									
									case 112:
										iVar0 = 21;
										break;
									
									case 113:
										iVar0 = 22;
										break;
									
									case 114:
										iVar0 = 23;
										break;
									
									case 115:
										iVar0 = 24;
										break;
									
									case 116:
										iVar0 = 25;
										break;
									
									case 117:
										iVar0 = 52;
										break;
									
									case 118:
										iVar0 = 27;
										break;
									
									case 119:
										iVar0 = 28;
										break;
									
									case 120:
										iVar0 = 29;
										break;
									
									case 121:
										iVar0 = 30;
										break;
									
									case 122:
										iVar0 = 31;
										break;
									
									case 296:
										iVar0 = 32;
										break;
									
									case 297:
										iVar0 = 33;
										break;
									
									case 298:
										iVar0 = 34;
										break;
									
									case 299:
										iVar0 = 35;
										break;
									
									case 300:
										iVar0 = 36;
										break;
									
									case 301:
										iVar0 = 37;
										break;
									
									case 302:
										iVar0 = 38;
										break;
									
									case 309:
										iVar0 = 39;
										break;
									
									case 310:
										iVar0 = 40;
										break;
									
									case 311:
										iVar0 = 41;
										break;
									
									case 312:
										iVar0 = 42;
										break;
									
									case 313:
										iVar0 = 43;
										break;
									
									case 314:
										iVar0 = 44;
										break;
									
									case 315:
										iVar0 = 45;
										break;
									
									case 316:
										iVar0 = 46;
										break;
									
									case 317:
										iVar0 = 51;
										break;
									
									default:
										iVar0 = 0;
										break;
								}
								break;
							
							case 11:
								if (iParam3 != 0)
								{
									iVar0 = 0;
								}
								break;
						}
						break;
					
					case 3:
						switch (iParam2)
						{
							case 11:
								if (iParam3 >= 47 && iParam3 <= 62)
								{
									if (!func_395(iParam0, 3, 209, 222))
									{
										iVar0 = func_394(iParam1, 3, 209, 222);
									}
								}
								else if ((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8))
								{
									if (!func_395(iParam0, 3, 243, 258))
									{
										if (iParam3 == 1 || iParam3 == 5)
										{
											iVar0 = func_394(iParam1, 3, 243, 246);
										}
										else if (iParam3 == 2 || iParam3 == 6)
										{
											iVar0 = func_394(iParam1, 3, 247, 250);
										}
										else if (iParam3 == 3 || iParam3 == 7)
										{
											iVar0 = func_394(iParam1, 3, 251, 254);
										}
										else if (iParam3 == 4 || iParam3 == 8)
										{
											iVar0 = func_394(iParam1, 3, 255, 258);
										}
									}
								}
								else if (iParam3 == 41 || iParam3 == 42)
								{
									if (!func_395(iParam0, 3, 176, 191) && !func_395(iParam0, 3, 227, 242))
									{
										iVar0 = func_394(iParam1, 3, 176, 191);
									}
								}
								break;
						}
						break;
					
					case 8:
						if (iParam2 == 11 || iParam2 == 3)
						{
							if (iParam2 == 11)
							{
								iVar5 = iParam3;
								iVar4 = func_311(iParam0, 3);
							}
							else if (iParam2 == 3)
							{
								iVar4 = iParam3;
								iVar5 = func_311(iParam0, 11);
								iVar5 = func_393(iParam1, iVar4, iVar5, 0);
							}
							iVar3 = func_311(iParam0, 8);
							if (((iVar5 >= 5 && iVar5 <= 8) || (iVar5 >= 25 && iVar5 <= 40)) || (iVar5 >= 42 && iVar5 <= 43))
							{
								if (!func_392(joaat("player_one"), iVar3, iVar5, iVar4, &iVar6))
								{
									if (iVar6 != -99)
									{
										iVar0 = iVar6;
									}
								}
							}
							else if (((iVar3 >= 27 && iVar3 <= 42) || (iVar3 >= 43 && iVar3 <= 58)) || (iVar3 >= 59 && iVar3 <= 74))
							{
								iVar0 = 26;
							}
						}
						break;
					
					case 11:
						if (iParam2 == 3)
						{
							if (iParam3 >= 209 && iParam3 <= 222)
							{
							}
							else if (((iParam3 >= 176 && iParam3 <= 191) || (iParam3 >= 227 && iParam3 <= 242)) || (iParam3 >= 243 && iParam3 <= 258))
							{
								iVar7 = func_311(iParam0, 8);
								iVar8 = func_311(iParam0, 11);
								if (((iVar7 >= 27 && iVar7 <= 42) || (iVar7 >= 43 && iVar7 <= 58)) || (iVar7 >= 59 && iVar7 <= 74))
								{
									iVar0 = func_393(iParam1, iParam3, iVar8, 0);
								}
								else
								{
									iVar0 = func_393(iParam1, iParam3, iVar8, 1);
								}
							}
							else if (iParam3 >= 41 && iParam3 <= 56)
							{
								iVar0 = 45;
							}
							else if (iParam3 >= 223 && iParam3 <= 226)
							{
								iVar0 = 44;
							}
							else
							{
								iVar0 = 0;
							}
						}
						else if (iParam2 == 8)
						{
							if (((iParam3 >= 27 && iParam3 <= 42) || (iParam3 >= 43 && iParam3 <= 58)) || (iParam3 >= 59 && iParam3 <= 74))
							{
								iVar9 = func_311(iParam0, 11);
								iVar0 = func_393(iParam1, -99, iVar9, 0);
							}
						}
						break;
				}
				break;
			
			case joaat("player_two"):
				switch (iParam4)
				{
					case 10:
						switch (iParam2)
						{
							case 3:
								switch (iParam3)
								{
									case 50:
										iVar0 = 3;
										break;
									
									case 81:
										iVar0 = 5;
										break;
									
									case 82:
										iVar0 = 6;
										break;
									
									case 83:
										iVar0 = 7;
										break;
									
									case 84:
										iVar0 = 10;
										break;
									
									case 85:
										iVar0 = 9;
										break;
									
									case 86:
										iVar0 = 8;
										break;
									
									case 92:
										iVar0 = 22;
										break;
									
									case 87:
										iVar0 = 23;
										break;
									
									case 91:
										iVar0 = 24;
										break;
									
									case 93:
										iVar0 = 25;
										break;
									
									case 88:
										iVar0 = 26;
										break;
									
									case 94:
										iVar0 = 27;
										break;
									
									case 120:
										iVar0 = 11;
										break;
									
									case 121:
										iVar0 = 13;
										break;
									
									case 122:
										iVar0 = 14;
										break;
									
									case 124:
										iVar0 = 12;
										break;
									
									case 126:
										iVar0 = 18;
										break;
									
									case 128:
										iVar0 = 17;
										break;
									
									case 130:
										iVar0 = 19;
										break;
									
									case 131:
										iVar0 = 16;
										break;
									
									case 134:
										iVar0 = 15;
										break;
									
									case 135:
										iVar0 = 20;
										break;
									
									default:
										iVar0 = 0;
										break;
								}
								break;
						}
						break;
				}
				break;
			}
	}
	return iVar0;
}

bool func_392(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4)//Position - 0x45BFC
{
	int iVar0;
	
	switch (iParam0)
	{
		case joaat("player_zero"):
			break;
		
		case joaat("player_one"):
			*uParam4 = 0;
			if (iParam1 >= 27 && iParam1 <= 42)
			{
				if (iParam2 != -99)
				{
					if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
					{
					}
					else
					{
						if (iParam2 >= 42 && iParam2 <= 43)
						{
							if (iParam3 >= 176 && iParam3 <= 191)
							{
								iVar0 = (iParam1 - 27);
								*uParam4 = (59 + iVar0);
							}
							else if (iParam3 >= 227 && iParam3 <= 242)
							{
								iVar0 = (iParam1 - 27);
								*uParam4 = (43 + iVar0);
							}
						}
						return false;
					}
				}
				if (iParam3 != -99)
				{
					if (((iParam3 >= 227 && iParam3 <= 242) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 243 && iParam3 <= 258))
					{
					}
					else
					{
						return false;
					}
				}
			}
			else if (iParam1 >= 43 && iParam1 <= 58)
			{
				if (iParam2 != -99)
				{
					if (iParam2 >= 42 && iParam2 <= 43)
					{
					}
					else
					{
						if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
						{
							iVar0 = (iParam1 - 43);
							*uParam4 = (27 + iVar0);
						}
						return false;
					}
				}
				if (iParam3 != -99)
				{
					if (iParam3 >= 227 && iParam3 <= 242)
					{
					}
					else
					{
						if (iParam3 >= 176 && iParam3 <= 191)
						{
							if (iParam2 >= 42 && iParam2 <= 43)
							{
								iVar0 = (iParam1 - 43);
								*uParam4 = (59 + iVar0);
							}
						}
						return false;
					}
				}
			}
			else if (iParam1 >= 59 && iParam1 <= 74)
			{
				if (iParam2 != -99)
				{
					if (iParam2 >= 42 && iParam2 <= 43)
					{
					}
					else
					{
						if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
						{
							iVar0 = (iParam1 - 59);
							*uParam4 = (27 + iVar0);
						}
						return false;
					}
				}
				if (iParam3 != -99)
				{
					if (iParam3 >= 176 && iParam3 <= 191)
					{
					}
					else
					{
						if (iParam3 >= 227 && iParam3 <= 242)
						{
							if (iParam2 >= 42 && iParam2 <= 43)
							{
								iVar0 = (iParam1 - 59);
								*uParam4 = (43 + iVar0);
							}
						}
						else if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
						{
							iVar0 = (iParam1 - 59);
							*uParam4 = (27 + iVar0);
						}
						return false;
					}
				}
			}
			break;
		
		case joaat("player_two"):
			if (iParam1 == 12)
			{
				if (iParam3 != 241)
				{
					return false;
				}
			}
			break;
	}
	return true;
}

int func_393(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x45EE0
{
	int iVar0;
	
	if (iParam1 >= 243 && iParam1 <= 246)
	{
		if (iParam3 == 1)
		{
			return 1;
		}
		else
		{
			return 5;
		}
	}
	else if (iParam1 >= 247 && iParam1 <= 250)
	{
		if (iParam3 == 1)
		{
			return 2;
		}
		else
		{
			return 6;
		}
	}
	else if (iParam1 >= 251 && iParam1 <= 254)
	{
		if (iParam3 == 1)
		{
			return 3;
		}
		else
		{
			return 7;
		}
	}
	else if (iParam1 >= 255 && iParam1 <= 258)
	{
		if (iParam3 == 1)
		{
			return 4;
		}
		else
		{
			return 8;
		}
	}
	else if (iParam1 >= 255 && iParam1 <= 258)
	{
		if (iParam3 == 1)
		{
			return 4;
		}
		else
		{
			return 8;
		}
	}
	else if ((iParam1 >= 176 && iParam1 <= 191) || (iParam1 >= 227 && iParam1 <= 242))
	{
		if (iParam2 >= 9 && iParam2 <= 24)
		{
			if (iParam3 == 1)
			{
				return iParam2;
			}
			else
			{
				iVar0 = (iParam2 - 9);
				iParam2 = (25 + iVar0);
				return iParam2;
			}
		}
		else if (iParam2 >= 25 && iParam2 <= 40)
		{
			if (iParam3 == 1)
			{
				iVar0 = (iParam2 - 25);
				iParam2 = (9 + iVar0);
				return iParam2;
			}
			else
			{
				return iParam2;
			}
		}
		else if (iParam2 == 41 || iParam2 == 42)
		{
			if (iParam3 == 1)
			{
				return 41;
			}
			else
			{
				return 42;
			}
		}
		else
		{
			if (iParam3 == 1)
			{
				iParam2 = func_394(iParam0, 11, 9, 24);
			}
			else
			{
				iParam2 = func_394(iParam0, 11, 25, 40);
			}
			if (iParam2 == -99)
			{
				if (iParam3 == 1)
				{
					return 41;
				}
				else
				{
					return 42;
				}
			}
			else
			{
				return iParam2;
			}
		}
	}
	else if (iParam2 >= 1 && iParam2 <= 4)
	{
		if (iParam3 == 1)
		{
			return iParam2;
		}
		else
		{
			iVar0 = (iParam2 - 1);
			iParam2 = (5 + iVar0);
			return iParam2;
		}
	}
	else if (iParam2 >= 5 && iParam2 <= 8)
	{
		if (iParam3 == 1)
		{
			iVar0 = (iParam2 - 5);
			iParam2 = (1 + iVar0);
			return iParam2;
		}
		else
		{
			return iParam2;
		}
	}
	else if (iParam2 >= 9 && iParam2 <= 24)
	{
		if (iParam3 == 1)
		{
			return iParam2;
		}
		else
		{
			iVar0 = (iParam2 - 9);
			iParam2 = (25 + iVar0);
			return iParam2;
		}
	}
	else if (iParam2 >= 25 && iParam2 <= 40)
	{
		if (iParam3 == 1)
		{
			iVar0 = (iParam2 - 25);
			iParam2 = (9 + iVar0);
			return iParam2;
		}
		else
		{
			return iParam2;
		}
	}
	else if (iParam2 == 41 || iParam2 == 42)
	{
		if (iParam3 == 1)
		{
			return 41;
		}
		else
		{
			return 42;
		}
	}
	return -99;
}

int func_394(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x461A7
{
	int iVar0;
	int iVar1;
	
	iVar0 = iParam2;
	while (iVar0 <= (iParam3 - 1))
	{
		iVar1 = iVar0;
		if (func_389(iParam0, iParam1, iVar1))
		{
			return iVar1;
		}
		iVar0++;
	}
	return -99;
}

bool func_395(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x461DE
{
	int iVar0;
	
	iVar0 = func_311(iParam0, iParam1);
	if (iVar0 >= iParam2 && iVar0 <= iParam3)
	{
		return true;
	}
	return false;
}

bool func_396(int iParam0, int iParam1, int iParam2)//Position - 0x46207
{
	*iParam2 = -99;
	switch (iParam0)
	{
		case joaat("player_zero"):
			if ((((((((((((((((((iParam1 == 16 || iParam1 == 17) || iParam1 == 21) || iParam1 == 22) || iParam1 == 32) || (iParam1 >= 34 && iParam1 <= 39)) || (iParam1 >= 41 && iParam1 <= 45)) || iParam1 == 46) || (iParam1 >= 47 && iParam1 <= 54)) || (iParam1 >= 55 && iParam1 <= 70)) || (iParam1 >= 72 && iParam1 <= 79)) || iParam1 == 80) || (iParam1 >= 81 && iParam1 <= 83)) || (iParam1 >= 84 && iParam1 <= 87)) || iParam1 == 88) || (iParam1 >= 89 && iParam1 <= 91)) || iParam1 == 95) || (iParam1 >= 96 && iParam1 <= 111)) || iParam1 == 112)
			{
				*iParam2 = 6;
				return true;
			}
			break;
		
		case joaat("player_one"):
			if ((((((iParam1 == 12 || (iParam1 >= 14 && iParam1 <= 21)) || iParam1 == 32) || iParam1 == 52) || (iParam1 >= 69 && iParam1 <= 70)) || iParam1 == 71) || (iParam1 >= 72 && iParam1 <= 77))
			{
				*iParam2 = 17;
				return true;
			}
			break;
		
		case joaat("player_two"):
			if (((((((((((((((iParam1 == 4 || iParam1 == 5) || iParam1 == 6) || iParam1 == 7) || iParam1 == 14) || (iParam1 >= 18 && iParam1 <= 29)) || iParam1 == 31) || iParam1 == 32) || iParam1 == 33) || iParam1 == 34) || (iParam1 >= 35 && iParam1 <= 42)) || (iParam1 >= 43 && iParam1 <= 53)) || (iParam1 >= 54 && iParam1 <= 61)) || (iParam1 >= 71 && iParam1 <= 80)) || (iParam1 >= 81 && iParam1 <= 90)) || (iParam1 >= 94 && iParam1 <= 103))
			{
				*iParam2 = 8;
				return true;
			}
			break;
	}
	return false;
}

void func_397(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x464D1
{
	int iVar0;
	
	if (iParam2 == -1)
	{
		ped::clear_ped_prop(iParam0, iParam1);
		if (iParam1 == 0)
		{
			ped::set_ped_config_flag(iParam0, 34, false);
			ped::set_ped_config_flag(iParam0, 36, false);
		}
	}
	else
	{
		ped::set_ped_prop_index(iParam0, iParam1, iParam2, iParam3, network::network_is_game_in_progress());
		if (iParam1 == 0)
		{
			iVar0 = func_166(iParam0, iParam2, iParam3, iParam1);
			if (func_398(entity::get_entity_model(iParam0), 14, iVar0, dlc1::get_hash_name_for_prop(iParam0, 0, iParam2, iParam3)))
			{
				ped::set_ped_config_flag(iParam0, 34, true);
				ped::set_ped_config_flag(iParam0, 36, true);
			}
		}
	}
}

bool func_398(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x46554
{
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 14:
					if (iParam3 == -1)
					{
						iParam3 = func_316(iParam0, iParam2, 14, 3);
					}
					if ((iParam2 >= 131 && iParam2 <= 154) || (iParam2 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1033433901, 1)))
					{
						return true;
					}
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 14:
					if (iParam3 == -1)
					{
						iParam3 = func_316(iParam0, iParam2, 14, 4);
					}
					if ((iParam2 >= 131 && iParam2 <= 154) || (iParam2 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(iParam3, -1033433901, 1)))
					{
						return true;
					}
					break;
			}
			break;
	}
	return false;
}

void func_399(int iParam0)//Position - 0x46622
{
	if (gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 1) && !gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 6))
	{
		func_182(iParam0, Global_69438[1 /*14*/].f_5, Global_69438[1 /*14*/].f_2, 2, Global_69438[1 /*14*/].f_1, 1, 0);
	}
	if (gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 1) && gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 6))
	{
		if (iParam0 == 12)
		{
			func_400(Global_2621444, 2, 1, 1, -1);
		}
		else if (iParam0 == 13)
		{
		}
		else if (iParam0 == 14)
		{
			func_400(Global_2621444, 2, 1, 1, -1);
		}
		else
		{
			func_400(Global_2621444, 2, 1, 1, -1);
		}
	}
}

void func_400(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x466DA
{
	int iVar0;
	int iVar1;
	var uVar2;
	int iVar3;
	
	iVar0 = Global_69436;
	if (iParam4 != -1)
	{
		iVar0 = iParam4;
	}
	if (func_184(iParam0, iParam1, &uVar2, &iVar1, iParam2, iParam3))
	{
		iVar3 = func_57(uVar2, iVar0, 0);
		gameplay::set_bit(&iVar3, iVar1);
		func_401(uVar2, iVar3, iVar0, 1, 0);
	}
}

void func_401(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x46724
{
	int iVar0;
	
	if (iParam4)
	{
	}
	iVar0 = Global_2491469[uParam0 /*3*/][func_58(iParam2)];
	if (iVar0 != 0)
	{
		stats::stat_set_int(iVar0, iParam1, iParam3);
	}
}

bool func_402(int iParam0)//Position - 0x46754
{
	if (!gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 0))
	{
		return false;
	}
	if (iParam0 == 1)
	{
		if (!gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 1))
		{
			return false;
		}
		if (!gameplay::is_bit_set(Global_69438[1 /*14*/].f_6, 2))
		{
			return false;
		}
	}
	return true;
}

int func_403(int iParam0, int iParam1, int iParam2)//Position - 0x467A5
{
	return func_259(iParam0, !iParam1, iParam2);
}

bool func_404(int iParam0)//Position - 0x467B8
{
	int iVar0;
	int iVar1;
	float fVar2;
	int iVar3;
	vector3 vVar4;
	float fVar7;
	int iVar8;
	
	iLocal_1066 = false;
	iVar0 = 0;
	fVar2 = 0f;
	if (iLocal_2068 == 0)
	{
		if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
		{
			if (vehicle::is_playback_going_on_for_vehicle(Local_1450[6 /*2*/]))
			{
				fVar7 = ((vehicle::get_time_position_in_recording(Local_1450[6 /*2*/]) - 4255f) / 2300f);
				if (fVar7 < 0f)
				{
					fVar7 = 0f;
				}
				if (fVar7 > 1f)
				{
					fVar7 = 1f;
				}
				fVar7 = (fVar7 * 2f);
			}
		}
		else
		{
			fVar7 = 2f;
		}
	}
	if (fVar7 >= 1.9f || iLocal_2068 == 1)
	{
		fVar7 = 2f;
		iLocal_2068 = 1;
	}
	switch (iLocal_2068)
	{
		case 0:
		case 1:
			while (fVar2 <= 2f)
			{
				if (fVar2 < fVar7)
				{
					iVar0 = system::floor(fVar2);
					func_405(fVar2, Local_2069[func_406(iVar0, 0, 2) /*7*/], Local_2069[func_406(iVar0 + 1, 0, 2) /*7*/], &vVar4);
					if (gameplay::is_bullet_in_area(vVar4, 0.4f, 1))
					{
						iLocal_2067 = system::floor((fVar2 * 15f));
						iVar1 = 0;
						while (iVar1 <= 30)
						{
							vLocal_2091[iVar1 /*3*/].f_2 = (gameplay::get_game_timer() + (100 * gameplay::absi((iVar1 - iLocal_2067))));
							iVar1++;
						}
						iLocal_2068 = 2;
						*iParam0 = 1;
						iVar8 = audio::get_sound_id();
						audio::play_sound_from_coord(-1, "ARM_2_Repo_Ignite_Petrol", -1099.07f, -1636.112f, 3.7352f, 0, 0, 0, 0);
						audio::set_variable_on_sound(iVar8, "TargetPan", func_431(entity::get_entity_coords(player::player_ped_id(), 1), -1105.971f, -1628.793f, 3.8508f, 0));
						fVar2 = 5f;
					}
					fVar2 = (fVar2 + 0.1f);
				}
				else
				{
					fVar2 = 5f;
				}
			}
			break;
		
		case 2:
			*iParam0 = 1;
			iVar3 = 1;
			iVar1 = 0;
			while (iVar1 <= 30)
			{
				if (vLocal_2091[iVar1 /*3*/].f_1 == 0)
				{
					if (gameplay::get_game_timer() > vLocal_2091[iVar1 /*3*/].f_2 && (gameplay::get_game_timer() - vLocal_2091[iVar1 /*3*/].f_2) < 1000)
					{
						iVar0 = system::floor((system::to_float(iVar1) / 15f));
						func_405((system::to_float(iVar1) / 15f), Local_2069[func_406(iVar0, 0, 2) /*7*/], Local_2069[func_406(iVar0 + 1, 0, 2) /*7*/], &vVar4);
						if (!graphics::does_particle_fx_looped_exist(vLocal_2091[iVar1 /*3*/]))
						{
							iLocal_2185[iVar1] = fire::start_script_fire(vVar4, 0, 1);
						}
						graphics::fade_decals_in_range(vVar4, 1f, 1f);
						vLocal_2091[iVar1 /*3*/].f_1 = 1;
					}
				}
				if (vLocal_2091[iVar1 /*3*/].f_1 == 1)
				{
					iVar3 = 0;
					iLocal_2066 = (gameplay::get_game_timer() - vLocal_2091[iVar1 /*3*/].f_2);
					if (iLocal_2066 > 2000)
					{
						fire::remove_script_fire(iLocal_2185[iVar1]);
						vLocal_2091[iVar1 /*3*/] = 0;
						vLocal_2091[iVar1 /*3*/].f_1 = 0;
					}
				}
				iVar1++;
			}
			if (iVar3 == 1)
			{
				return true;
			}
			break;
	}
	return false;
}

void func_405(float fParam0, struct<5> Param1, var uParam6, var uParam7, struct<5> Param8, var uParam13, var uParam14, var uParam15)//Position - 0x46A70
{
	vector3 vVar0;
	vector3 vVar3;
	vector3 vVar6;
	vector3 vVar9;
	vector3 vVar12;
	float fVar15;
	
	fVar15 = (fParam0 - system::to_float(system::floor(fParam0)));
	if (!func_74(Param1.f_4, Param8.f_4, 0))
	{
		vVar0 = { Param1.f_4 };
		vVar3 = { Param1.f_4 + Param1.f_1 };
		vVar6 = { Param8.f_4 - Param8.f_1 };
		vVar9 = { Param8.f_4 };
		vVar12.x = (((((((1f - fVar15) * (1f - fVar15)) * (1f - fVar15)) * vVar0.x) + (((3f * ((1f - fVar15) * (1f - fVar15))) * fVar15) * vVar3.x)) + (((3f * (1f - fVar15)) * (fVar15 * fVar15)) * vVar6.x)) + (((fVar15 * fVar15) * fVar15) * vVar9.x));
		vVar12.y = (((((((1f - fVar15) * (1f - fVar15)) * (1f - fVar15)) * vVar0.y) + (((3f * ((1f - fVar15) * (1f - fVar15))) * fVar15) * vVar3.y)) + (((3f * (1f - fVar15)) * (fVar15 * fVar15)) * vVar6.y)) + (((fVar15 * fVar15) * fVar15) * vVar9.y));
		vVar12.z = (((((((1f - fVar15) * (1f - fVar15)) * (1f - fVar15)) * vVar0.y) + (((3f * ((1f - fVar15) * (1f - fVar15))) * fVar15) * vVar3.y)) + (((3f * (1f - fVar15)) * (fVar15 * fVar15)) * vVar6.y)) + (((fVar15 * fVar15) * fVar15) * vVar9.y));
		*uParam15 = { vVar12 };
	}
	else
	{
		*uParam15 = { Param1.f_4 };
	}
}

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

void func_407(var uParam0, float fParam1, vector3 vParam2, vector3 vParam5)//Position - 0x46BE3
{
	*uParam0 = fParam1;
	uParam0->f_4 = { vParam2 };
	uParam0->f_1 = { vParam5 };
}

void func_408(int iParam0)//Position - 0x46C04
{
	int iVar0;
	int iVar1;
	
	Global_55817 = 0;
	if (!Global_56041[iParam0 /*13*/] == 3)
	{
		return;
	}
	iVar0 = false;
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 < Global_67911)
	{
		if (Global_67912[iVar1 /*9*/] == iParam0)
		{
			iVar0 = true;
			Global_67912[iVar1 /*9*/].f_1 = 1;
			Global_67912[iVar1 /*9*/].f_2 = 0f;
			if (Global_67912[iVar1 /*9*/].f_3 == 2)
			{
			}
		}
		iVar1++;
	}
	if (!iVar0)
	{
	}
}

bool func_409(int iParam0, vector3 vParam1, int iParam4, float fParam5)//Position - 0x46C75
{
	var uVar0;
	float fVar1;
	float fVar2;
	int iVar3;
	
	if (object::does_object_of_type_exist_at_coords(vParam1, 5f, iParam0, 0))
	{
		if (fParam5 != -2f)
		{
			object::set_state_of_closest_door_of_type(iParam0, vParam1, iParam4, fParam5, 0);
			object::get_state_of_closest_door_of_type(iParam0, vParam1, &iVar3, &fVar2);
			if (iVar3 == iParam4 && fVar2 == fParam5)
			{
				return true;
			}
		}
		else
		{
			object::get_state_of_closest_door_of_type(iParam0, vParam1, &uVar0, &fVar1);
			object::set_state_of_closest_door_of_type(iParam0, vParam1, iParam4, fVar1, 0);
			return true;
		}
	}
	return false;
}

bool func_410(int iParam0, int iParam1)//Position - 0x46CEF
{
	if (Local_325[iParam0 /*10*/] == iParam1)
	{
		if (Local_325[iParam0 /*10*/].f_1 == 1 && Local_325[iParam0 /*10*/].f_2 == 1)
		{
			if (Local_325[iParam0 /*10*/].f_3 == 0)
			{
				return true;
			}
		}
	}
	return false;
}

void func_411(int iParam0, var uParam1)//Position - 0x46D33
{
	int iVar0;
	
	if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
	{
		switch (iLocal_2269)
		{
			case 0:
				if (!func_295(&iVar0, iParam0, 0, 5, 0, 0))
				{
					*iParam0 = 0;
				}
				else
				{
					switch (iVar0)
					{
						case 0:
							ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_behind_left", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
							iLocal_2269 = 1;
							break;
						
						case 1:
							ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_behind_right", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
							iLocal_2269 = 1;
							break;
						
						case 2:
							switch (gameplay::get_random_int_in_range(0, 2))
							{
								case 0:
									ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_left", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
									iLocal_2269 = 1;
									break;
								
								case 1:
									ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_right", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
									iLocal_2269 = 1;
									break;
							}
							break;
						
						case 3:
							ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_a", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
							iLocal_2269 = 1;
							break;
						
						case 4:
							ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_b", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
							iLocal_2269 = 1;
							break;
						
						case 5:
							ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_c", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
							iLocal_2269 = 1;
							break;
						
						case 6:
							ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_d", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
							iLocal_2269 = 1;
							break;
						
						case 7:
							ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_e", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
							iLocal_2269 = 1;
							break;
						
						case 8:
							ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_f", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
							iLocal_2269 = 1;
							break;
						
						case 9:
							if (entity::is_entity_in_angled_area(player::player_ped_id(), -1079.229f, -1659.552f, 1.961159f, -1103.881f, -1626.432f, 10.14866f, 11.75f, 0, true, 0))
							{
								ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2", "arm2_lamar_idle_02", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
								iLocal_2269 = 1;
							}
							else
							{
								iLocal_2269 = 0;
							}
							break;
						
						case 10:
							if (entity::is_entity_in_angled_area(player::player_ped_id(), -1079.229f, -1659.552f, 1.961159f, -1103.881f, -1626.432f, 10.14866f, 11.75f, 0, true, 0))
							{
								ai::task_play_anim(Local_1071[2 /*14*/], "missarmenian2", "arm2_lamar_idle_03", 4f, -4f, -1, 262144, 0f, 0, 0, 0);
								iLocal_2269 = 1;
							}
							else
							{
								iLocal_2269 = 0;
							}
							break;
						}
				}
				break;
			
			case 1:
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_a", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_a")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_b", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_b")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_c", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_c")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_d", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_d")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_e", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_e")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_f", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_f")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_behind_left", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_behind_left")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_behind_right", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_behind_right")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_left", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_left")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_right", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2lamar_idles", "idle_look_right")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2", "arm2_lamar_idle_02", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2", "arm2_lamar_idle_02")));
					iLocal_2269 = 2;
				}
				if (entity::is_entity_playing_anim(Local_1071[2 /*14*/], "missarmenian2", "arm2_lamar_idle_03", 3))
				{
					*uParam1 = (gameplay::get_game_timer() + 500 + system::floor(entity::get_entity_anim_total_time(Local_1071[2 /*14*/], "missarmenian2", "arm2_lamar_idle_03")));
					iLocal_2269 = 2;
				}
				break;
			
			case 2:
				if (gameplay::get_game_timer() > *uParam1)
				{
					iLocal_2269 = 0;
				}
				break;
			}
	}
}

int func_412(vector3 vParam0, int iParam3)//Position - 0x47350
{
	int iVar0;
	
	iVar0 = ui::add_blip_for_coord(vParam0);
	ui::set_blip_scale(iVar0, func_260(network::network_is_game_in_progress(), 1f, 1f));
	ui::set_blip_route(iVar0, iParam3);
	return iVar0;
}

int func_413(int iParam0, int iParam1)//Position - 0x4737C
{
	if (Local_140[iParam0 /*6*/] == iParam1)
	{
		return Local_140[iParam0 /*6*/].f_3;
	}
	return 0;
}

void func_414(char* sParam0, int iParam1, char* sParam2)//Position - 0x4739B
{
	iLocal_2247 = 1;
	iLocal_2248 = iParam1;
	sLocal_2250 = sParam0;
	sLocal_2251 = sParam2;
}

bool func_415(var uParam0, vector3 vParam1, vector3 vParam4, vector3 vParam7, vector3 vParam10)//Position - 0x473B6
{
	vector3 vVar0;
	vector3 vVar3;
	float fVar6;
	float fVar7;
	float fVar8;
	
	vVar0 = { vParam4 - vParam1 };
	vVar3 = { vParam1 - vParam10 };
	fVar6 = func_416(vParam7, vVar0);
	fVar7 = -func_416(vParam7, vVar3);
	if (gameplay::absf(fVar6) < 1E-08f)
	{
		return false;
	}
	fVar8 = (fVar7 / fVar6);
	*uParam0 = { vParam1 + Vector(fVar8, fVar8, fVar8) * vVar0 };
	if (fVar8 < 0f || fVar8 > 1f)
	{
		return false;
	}
	return true;
}

float func_416(vector3 vParam0, vector3 vParam3)//Position - 0x47436
{
	return (((vParam0.x * vParam3.x) + (vParam0.y * vParam3.y)) + (vParam0.y * vParam3.y));
}

void func_417(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x47457
{
	Local_325[iParam0 /*10*/] = iParam1;
	Local_325[iParam0 /*10*/].f_1 = 1;
	Local_325[iParam0 /*10*/].f_3 = iParam2;
	Local_325[iParam0 /*10*/].f_2 = iParam3;
	Local_325[iParam0 /*10*/].f_6 = 0;
	Local_325[iParam0 /*10*/].f_4 = 0;
	Local_325[iParam0 /*10*/].f_7 = 0;
	Local_325[iParam0 /*10*/].f_8 = 0;
	Local_325[iParam0 /*10*/].f_9 = 0f;
}

void func_418(int iParam0, int iParam1)//Position - 0x474BA
{
	if (Local_325[iParam0 /*10*/] == iParam1)
	{
		if (Local_325[iParam0 /*10*/].f_1 == 1)
		{
			Local_325[iParam0 /*10*/].f_3 = 0;
			Local_325[iParam0 /*10*/].f_2 = 0;
			Local_325[iParam0 /*10*/].f_6 = 0;
			Local_325[iParam0 /*10*/].f_7 = 0;
			Local_325[iParam0 /*10*/].f_8 = 0;
			Local_325[iParam0 /*10*/].f_9 = 0f;
			Local_325[iParam0 /*10*/].f_5 = 0;
		}
	}
}

bool func_419(vector3 vParam0, float fParam3, float fParam4)//Position - 0x47524
{
	if (cam::is_sphere_visible(vParam0, fParam3))
	{
		if (!entity::is_entity_at_coord(player::player_ped_id(), vParam0, fParam4, fParam4, fParam4, false, false, 0))
		{
			return false;
		}
		else if (cam::is_screen_faded_out())
		{
			return false;
		}
		else
		{
			return true;
		}
	}
	return false;
}

void func_420(int iParam0)//Position - 0x4756C
{
	iLocal_2273 = iParam0;
	iLocal_2274 = 0;
}

int func_421(int iParam0)//Position - 0x4757D
{
	return func_422(iParam0, -1, 1);
}

bool func_422(int iParam0, int iParam1, int iParam2)//Position - 0x4758D
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam0 == 0)
	{
		return false;
	}
	if (!entity::does_entity_exist(iParam0))
	{
		return false;
	}
	iVar0 = func_425(iParam0);
	if (!iVar0 == -1)
	{
		return true;
	}
	iVar1 = func_424(iParam0);
	if (!iVar1 == -1)
	{
		return true;
	}
	if (!iParam2)
	{
		if (iParam1 == 0 || iParam1 < 0)
		{
			return false;
		}
	}
	iVar2 = func_423();
	if (iVar2 == -1)
	{
		return false;
	}
	Global_36683[iVar2 /*5*/] = 0;
	Global_36683[iVar2 /*5*/].f_1 = iParam0;
	Global_36683[iVar2 /*5*/].f_2 = iParam1;
	Global_36683[iVar2 /*5*/].f_3 = iParam1;
	Global_36683[iVar2 /*5*/].f_4 = 0;
	if (iParam0 == player::player_ped_id())
	{
		Global_36904 = 1;
	}
	Global_36682++;
	return true;
}

int func_423()//Position - 0x47649
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 5)
	{
		if (Global_36683[iVar0 /*5*/] == 13)
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

int func_424(int iParam0)//Position - 0x47678
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 5)
	{
		if (Global_36683[iVar0 /*5*/].f_1 == iParam0)
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

int func_425(int iParam0)//Position - 0x476A9
{
	int iVar0;
	
	if (iParam0 == 0)
	{
		return -1;
	}
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 16)
	{
		if (iParam0 == Global_36709[iVar0 /*5*/].f_1)
		{
			return Global_36709[iVar0 /*5*/];
		}
		iVar0++;
	}
	return -1;
}

void func_426(int iParam0, int iParam1, vector3 vParam2, float fParam5, int iParam6, int iParam7, int iParam8)//Position - 0x476EA
{
	func_384(iParam0, iParam1, vParam2, fParam5, 0, -1, iParam6, iParam7, iParam8, 0);
}

bool func_427(int iParam0)//Position - 0x47709
{
	if (!iLocal_112 && iLocal_111 == iParam0)
	{
		return true;
	}
	return false;
}

float func_428(float fParam0, float fParam1, float fParam2)//Position - 0x47726
{
	while (fParam0 < fParam1)
	{
		fParam0 = (fParam0 + 360f);
	}
	while (fParam0 > fParam2)
	{
		fParam0 = (fParam0 - 360f);
	}
	return fParam0;
}

void func_429()//Position - 0x4775A
{
	int iVar0;
	int iVar1;
	
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
	{
		iVar0 = ped::set_exclusive_phone_relationships(player::player_ped_id());
		if (vehicle::is_vehicle_driveable(iVar0, 0))
		{
			iVar1 = vehicle::get_ped_in_vehicle_seat(iVar0, 0, 0);
			if (!ped::is_ped_injured(iVar1))
			{
				if (iVar1 != player::player_ped_id())
				{
					if (entity::is_entity_a_mission_entity(iVar1))
					{
						if (!ped::is_ped_headtracking_entity(iVar1, player::player_ped_id()))
						{
							ai::task_look_at_entity(iVar1, player::player_ped_id(), 2000, 2048, 2);
						}
					}
				}
			}
		}
	}
}

bool func_430(int iParam0)//Position - 0x477C7
{
	int iVar0;
	
	iVar0 = iParam0;
	if (vLocal_50[iVar0 /*3*/].f_2 == 2 || vLocal_50[iVar0 /*3*/].f_2 == 3)
	{
		switch (iVar0)
		{
			case 0:
				if (streaming::has_model_loaded(iLocal_2034))
				{
					return true;
				}
				break;
			
			case 1:
				if (streaming::has_model_loaded(iLocal_2219))
				{
					return true;
				}
				break;
			
			case 2:
				if ((weapon::has_weapon_asset_loaded(joaat("weapon_pistol")) && weapon::has_weapon_asset_loaded(joaat("weapon_microsmg"))) && weapon::has_weapon_asset_loaded(joaat("weapon_pumpshotgun")))
				{
					return true;
				}
				break;
			
			case 3:
				if (streaming::has_model_loaded(iLocal_2218))
				{
					return true;
				}
				break;
			
			case 4:
				if (streaming::has_model_loaded(joaat("bagger")))
				{
					return true;
				}
				break;
			
			case 5:
				if (streaming::has_anim_dict_loaded("MISSARMENIAN2"))
				{
					return true;
				}
				break;
			
			case 6:
				if (streaming::has_anim_dict_loaded("missarmenian2_mcs_5") && streaming::has_anim_dict_loaded("reaction@points@"))
				{
					return true;
				}
				break;
			
			case 7:
				if (streaming::has_model_loaded(joaat("bison")))
				{
					return true;
				}
				break;
			
			case 8:
				if (streaming::has_model_loaded(joaat("penumbra")))
				{
					return true;
				}
				break;
			
			case 9:
				if (vehicle::has_vehicle_recording_been_loaded(1, sLocal_46))
				{
					return true;
				}
				break;
			
			case 10:
				if (vehicle::has_vehicle_recording_been_loaded(6, sLocal_46) && vehicle::has_vehicle_recording_been_loaded(11, sLocal_46))
				{
					return true;
				}
				break;
			
			case 11:
				if (ai::get_is_waypoint_recording_loaded("arm2_15"))
				{
					return true;
				}
				break;
			
			case 12:
				if (streaming::has_model_loaded(joaat("prop_ld_test_01")))
				{
					return true;
				}
				break;
			
			case 13:
				if (ai::get_is_waypoint_recording_loaded("ARM2"))
				{
					return true;
				}
				break;
			
			case 14:
				if (ai::get_is_waypoint_recording_loaded("ARM2_FIRE"))
				{
					return true;
				}
				break;
			
			case 15:
				if (streaming::has_anim_dict_loaded("missarmenian2lamar_idles"))
				{
					return true;
				}
				break;
			
			case 16:
				if (((audio::request_script_audio_bank("ARM_2_REPO_01", false, -1) && audio::request_script_audio_bank("ARM_2_GAS_EXPLOSION", false, -1)) && audio::request_script_audio_bank("ARM_2_GARAGE_DOORS", false, -1)) && audio::request_script_audio_bank("ARM_2_BIKER_DRIVE_OFF", false, -1))
				{
					return true;
				}
				break;
			
			case 17:
				if (streaming::has_model_loaded(joaat("ig_siemonyetarian")))
				{
					return true;
				}
				break;
			
			case 18:
				if (streaming::has_anim_dict_loaded("missarmenian2lamar_in_cover"))
				{
					return true;
				}
				break;
			
			case 19:
				if (streaming::has_model_loaded(joaat("prop_arm_gate_l")))
				{
					return true;
				}
				break;
			}
	}
	return false;
}

float func_431(struct<2> Param0, float fParam2, struct<2> Param3, float fParam5, int iParam6)//Position - 0x47A4B
{
	float fVar0;
	float fVar1;
	float fVar2;
	
	fVar1 = (Param3 - Param0);
	fVar2 = (Param3.f_1 - Param0.f_1);
	if (fVar2 != 0f)
	{
		fVar0 = gameplay::atan2(fVar1, fVar2);
	}
	else if (fVar1 < 0f)
	{
		fVar0 = -90f;
	}
	else
	{
		fVar0 = 90f;
	}
	if (iParam6 == 1)
	{
		fVar0 = (fVar0 * -1f);
		if (fVar0 < 0f)
		{
			fVar0 = (fVar0 + 360f);
		}
	}
	return fVar0;
}

void func_432(int iParam0)//Position - 0x47AB0
{
	if (Global_88661 != -1)
	{
		if (iParam0 == Global_88661)
		{
			Global_88665 = 1;
			return;
		}
	}
}

void func_433(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x47AD4
{
	vector3 vVar0;
	int iVar3;
	
	if (Local_292[iParam0 /*4*/] != iParam1)
	{
		Local_292[iParam0 /*4*/].f_1 = 0;
		Local_292[iParam0 /*4*/] = iParam1;
	}
	if (!Local_292[iParam0 /*4*/].f_1)
	{
		if (func_280(iParam2, iParam3, iParam4, iParam5, iParam6, iParam7, 1, 0, 1, 0))
		{
			switch (Local_292[iParam0 /*4*/])
			{
				case 1:
					if (ui::does_blip_exist(iLocal_2029))
					{
						ui::remove_blip(&iLocal_2029);
					}
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
							{
								func_505(&Local_1956, Local_1450[0 /*2*/]);
							}
							Local_292[iParam0 /*4*/].f_2++;
							break;
						
						case 1:
							if (func_503(&Local_1956, -1141.093f, -1576.759f, 3.3048f, Global_19, 1, Local_1071[2 /*14*/], "ARM2_INS02", "ARM2_INS18", 0, 1, 1, -1))
							{
								func_501(&Local_1956, 1, 0);
								func_500(&Local_1956);
								Local_292[iParam0 /*4*/].f_2++;
							}
							break;
						
						case 2:
							if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0) && ped::is_ped_in_vehicle(player::player_ped_id(), Local_1450[0 /*2*/], 0))
							{
								if (func_332(Local_1450[0 /*2*/], 4f, 1, 1056964608, 0, 1, 0))
								{
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
							}
							else
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 2:
					if (!ui::does_blip_exist(iLocal_2029))
					{
						if (!entity::does_entity_exist(Local_1071[22 /*14*/]))
						{
							func_501(&Local_1956, 1, 0);
							func_500(&Local_1956);
							if (!func_302("ARM2_INS18", 0, 0))
							{
								func_499("ARM2_INS18", 7500, 1);
							}
							iLocal_2029 = func_403(Local_1071[2 /*14*/], 0, 0);
						}
					}
					break;
				
				case 5:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
							{
								Local_292[iParam0 /*4*/].f_2++;
								Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 10000;
							}
							break;
						
						case 1:
							if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
							{
								if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
								{
									func_26("ARM2_HLP29", 12000);
									Local_292[iParam0 /*4*/].f_2++;
								}
							}
							break;
						
						case 2:
							if (func_27("ARM2_HLP29"))
							{
								if (controls::is_control_just_pressed(0, 0))
								{
									ui::clear_help(1);
								}
							}
							else
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 3:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							func_498("LOSE_WANTED", 7500, 1);
							if (ui::does_blip_exist(iLocal_2029))
							{
								ui::remove_blip(&iLocal_2029);
							}
							Local_292[iParam0 /*4*/].f_2++;
							break;
						
						case 1:
							if (ui::does_blip_exist(iLocal_2029))
							{
								ui::remove_blip(&iLocal_2029);
							}
							break;
					}
					break;
				
				case 4:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (!ui::is_message_being_displayed())
							{
								if (ui::does_blip_exist(iLocal_2029))
								{
									ui::remove_blip(&iLocal_2029);
								}
								ui::_0x3DDA37128DD1ACA8(0);
								iLocal_2029 = func_403(Local_1071[2 /*14*/], 0, 0);
								func_499("ARM2_INS18", 7500, 1);
								Local_292[iParam0 /*4*/].f_2++;
							}
							break;
						
						case 1:
							vVar0 = { ui::get_blip_info_id_coord(iLocal_2029) };
							if (func_74(vVar0, -1141.093f, -1576.759f, 3.3048f, 0))
							{
								if (ui::does_blip_exist(iLocal_2029))
								{
									ui::remove_blip(&iLocal_2029);
								}
								iLocal_2029 = func_403(Local_1071[2 /*14*/], 0, 0);
							}
							break;
					}
					break;
				
				case 6:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							func_498("ARM2_INS03", 3000, 1);
							if (ui::does_blip_exist(iLocal_2029))
							{
								ui::remove_blip(&iLocal_2029);
							}
							iLocal_2029 = func_403(Local_1071[2 /*14*/], 0, 0);
							Local_292[iParam0 /*4*/].f_2++;
							break;
						
						case 1:
							if (func_285(55))
							{
								if (func_27("ARM2_INS05"))
								{
									ui::clear_help(1);
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
								else
								{
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
							}
							break;
						
						case 2:
							func_26("ARM2_HLP22", 12000);
							Local_292[iParam0 /*4*/].f_1 = 1;
							break;
					}
					break;
				
				case 7:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (!func_278())
							{
								func_498("ARM2_INS07b", 7500, 1);
								iLocal_2031 = func_412(-1067.498f, -1665.769f, 3.5431f, 0);
								iLocal_2032 = func_412(-1064.832f, -1669.313f, 3.5348f, 0);
								iLocal_2033 = func_412(-1073.839f, -1675.472f, 3.5162f, 0);
								if (ui::does_blip_exist(iLocal_2029))
								{
									ui::remove_blip(&iLocal_2029);
								}
								if (ui::does_blip_exist(Local_1071[2 /*14*/].f_1))
								{
									ui::remove_blip(&(Local_1071[2 /*14*/].f_1));
								}
								Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 2000;
								Local_292[iParam0 /*4*/].f_2++;
							}
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 8:
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						switch (Local_292[iParam0 /*4*/].f_2)
						{
							case 0:
								if ((func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 70f || ((iLocal_1067 == 2 && func_299(14, 32) > 0) && !func_285(73))) || (iLocal_1067 >= 7 && func_285(133)))
								{
									if (!func_278())
									{
										Local_292[iParam0 /*4*/].f_3 = 0;
										if (ui::does_blip_exist(iLocal_2031))
										{
											gameplay::set_bit(&(Local_292[iParam0 /*4*/].f_3), 0);
											ui::remove_blip(&iLocal_2031);
										}
										if (ui::does_blip_exist(iLocal_2032))
										{
											gameplay::set_bit(&(Local_292[iParam0 /*4*/].f_3), 1);
											ui::remove_blip(&iLocal_2032);
										}
										if (ui::does_blip_exist(iLocal_2033))
										{
											gameplay::set_bit(&(Local_292[iParam0 /*4*/].f_3), 2);
											ui::remove_blip(&iLocal_2033);
										}
										if (Local_292[iParam0 /*4*/].f_3 != 0)
										{
											iLocal_2029 = func_403(Local_1071[2 /*14*/], 0, 0);
										}
										func_499("CMN_LLEAVE", -1, 1);
										Local_292[iParam0 /*4*/].f_2++;
									}
								}
								break;
							
							case 1:
								if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) < 30f)
								{
									if (((iLocal_1067 >= 2 && iLocal_1067 < 6) && func_299(14, 32) == 0) || (iLocal_1067 >= 7 && !func_285(133)))
									{
										if (gameplay::is_bit_set(Local_292[iParam0 /*4*/].f_3, 0))
										{
											if (ui::does_blip_exist(iLocal_2029))
											{
												ui::remove_blip(&iLocal_2029);
											}
											iLocal_2031 = func_412(-1067.498f, -1665.769f, 3.5431f, 0);
										}
										if (gameplay::is_bit_set(Local_292[iParam0 /*4*/].f_3, 1))
										{
											iLocal_2032 = func_412(-1064.832f, -1669.313f, 3.5348f, 0);
										}
										if (gameplay::is_bit_set(Local_292[iParam0 /*4*/].f_3, 2))
										{
											iLocal_2033 = func_412(-1073.839f, -1675.472f, 3.5162f, 0);
										}
										ui::clear_prints();
										Local_292[iParam0 /*4*/].f_2 = 0;
									}
								}
								break;
							}
					}
					break;
				
				case 9:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (!ped::is_ped_injured(player::player_ped_id()))
							{
								if (func_302("ARM2_INS03", 0, 0))
								{
									Local_292[iParam0 /*4*/].f_2++;
								}
								if (func_285(59))
								{
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
							}
							break;
						
						case 1:
							if (entity::is_entity_in_angled_area(player::player_ped_id(), -1126.573f, -1581.504f, 2.723826f, -1137.804f, -1589.277f, 6.146455f, 10.625f, 0, true, 0))
							{
								func_26("ARM2_INS05", 12000);
								Local_292[iParam0 /*4*/].f_2++;
								Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 2000;
							}
							break;
						
						case 2:
							if (func_27("ARM2_INS05"))
							{
								if (func_285(55) || player::is_player_climbing(player::player_id()))
								{
									if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
									{
										ui::clear_help(1);
										Local_292[iParam0 /*4*/].f_1 = 1;
									}
								}
							}
							else
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 10:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (!player::is_player_climbing(player::player_id()))
							{
								if (!func_542(138))
								{
									if (!ui::is_help_message_being_displayed())
									{
										func_26("CMN_FPSHELP", 10000);
										Local_292[iParam0 /*4*/].f_2++;
									}
								}
								else
								{
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
							}
							break;
						
						case 1:
							if (func_542(138))
							{
								if (func_27("CMN_FPSHELP"))
								{
									ui::clear_help(1);
								}
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 12:
					ui::clear_prints();
					func_499("ARM2_INS09", 3000, 1);
					Local_292[iParam0 /*4*/].f_1 = 1;
					break;
				
				case 11:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (!func_285(94))
							{
								if (func_251("AR2_MCS_4_LO"))
								{
									func_26("ARM2_HLP06", 12000);
									func_499("ARM2_INS08", 7500, 1);
									Local_292[iParam0 /*4*/].f_2++;
								}
							}
							break;
						
						case 1:
							if (func_302("ARM2_INS08", 0, 0))
							{
								if (object::does_pickup_exist(iLocal_1982))
								{
									if (object::has_pickup_been_collected(iLocal_1982))
									{
										Global_88174 = 1;
										Local_292[iParam0 /*4*/].f_1 = 1;
										ui::clear_prints();
										if (func_27("ARM2_HLP06"))
										{
											ui::clear_help(1);
										}
									}
								}
							}
							else
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 13:
					if (!func_285(125))
					{
						switch (Local_292[iParam0 /*4*/].f_2)
						{
							case 0:
								Local_292[iParam0 /*4*/].f_2++;
								break;
							
							case 1:
								if (!func_27("PU_QS_HLP"))
								{
									if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
									{
										ui::clear_help(1);
										func_26("ARM2_HLP07", 12000);
										Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 1500;
										Local_292[iParam0 /*4*/].f_2++;
									}
								}
								break;
							
							case 2:
								if (func_27("ARM2_HLP07"))
								{
									if (controls::is_control_pressed(0, 37))
									{
										Local_292[iParam0 /*4*/].f_2++;
									}
								}
								else
								{
									func_26("ARM2_HLP07b", 12000);
									Local_292[iParam0 /*4*/].f_2++;
								}
								break;
							
							case 3:
								if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
								{
									ui::clear_help(1);
									func_26("ARM2_HLP07b", 12000);
									Local_292[iParam0 /*4*/].f_2++;
								}
								break;
							
							case 4:
								if (func_27("ARM2_HLP07b"))
								{
									if (controls::is_control_pressed(0, 37))
									{
										Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 3000;
										Local_292[iParam0 /*4*/].f_2++;
									}
								}
								else
								{
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
								break;
							
							case 5:
								if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
								{
									if (func_27("ARM2_HLP07b"))
									{
										ui::clear_help(1);
									}
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
								break;
						}
					}
					else if (func_27("ARM2_HLP07") || func_27("ARM2_HLP07b"))
					{
						ui::clear_help(1);
						Local_292[iParam0 /*4*/].f_1 = 1;
					}
					break;
				
				case 15:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (func_27("ARM2_HLP08"))
							{
								ui::clear_help(1);
							}
							if (!ui::is_help_message_being_displayed())
							{
								func_26("ARM2_HLP14", 12000);
								Local_292[iParam0 /*4*/].f_2++;
							}
							break;
						
						case 1:
							if (func_27("ARM2_HLP14"))
							{
								if (controls::is_control_pressed(0, 24) && !controls::is_control_pressed(0, 25))
								{
									ui::clear_help(1);
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
							}
							else
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 16:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 1500;
							Local_292[iParam0 /*4*/].f_2++;
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
							{
								if (iLocal_1066)
								{
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
								else
								{
									ui::clear_help(1);
									func_26("ARM2_HLP13", 12000);
								}
								Local_292[iParam0 /*4*/].f_2++;
								Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer();
							}
							else if (iLocal_1066)
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
						
						case 2:
							if (func_27("ARM2_HLP13"))
							{
								if (iLocal_1066)
								{
									if ((gameplay::get_game_timer() - Local_292[iParam0 /*4*/].f_3) > 2000)
									{
										ui::clear_help(1);
										Local_292[iParam0 /*4*/].f_1 = 1;
									}
								}
							}
							else
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
						
						case 3:
							if (func_27("ARM2_HLP13"))
							{
								if ((gameplay::get_game_timer() - Local_292[iParam0 /*4*/].f_3) > 2000)
								{
									ui::clear_help(1);
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
							}
							else
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 17:
					func_26("ARM2_HLP07b", 12000);
					Local_292[iParam0 /*4*/].f_1 = 1;
					break;
				
				case 19:
					func_498("ARM2_INS12", 5000, 1);
					Local_292[iParam0 /*4*/].f_1 = 1;
					break;
				
				case 20:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (Global_101553.f_8904.f_100 >= 3)
							{
								Global_101553.f_8904.f_100 = 2;
							}
							Local_292[iParam0 /*4*/].f_2++;
							break;
						
						case 1:
							if (func_285(6))
							{
								if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
								{
									func_477(&uLocal_2230, Local_1071[8 /*14*/], 0, 0, 1, 1, 1);
								}
								else
								{
									func_476(&uLocal_2230, 0, 0);
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
							}
							else
							{
								func_476(&uLocal_2230, 0, 0);
								Local_292[iParam0 /*4*/].f_2++;
							}
							break;
						
						case 2:
							if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
							{
								if (func_285(6))
								{
									Local_292[iParam0 /*4*/].f_2 = 1;
								}
							}
							else
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 21:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (!ui::is_help_message_being_displayed())
							{
								Local_292[iParam0 /*4*/].f_3 = (Local_292[iParam0 /*4*/].f_3 + system::floor((system::timestep() * 1000f)));
								if (Local_292[iParam0 /*4*/].f_3 > 5000)
								{
									func_26("ARM2_HLP27", 12000);
									Local_292[iParam0 /*4*/].f_2++;
								}
							}
							else
							{
								Local_292[iParam0 /*4*/].f_3 = 0;
							}
							break;
						
						case 1:
							if (func_27("ARM2_HLP27"))
							{
								if (controls::is_control_pressed(0, 48))
								{
									ui::clear_help(1);
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
							}
							else
							{
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 22:
					func_26("ARM2_HLP30", 12000);
					Local_292[iParam0 /*4*/].f_1 = 1;
					break;
				
				case 23:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (func_285(32))
							{
								ui::clear_prints();
								func_498("ARM2_INS22", 5000, 1);
								Local_1071[2 /*14*/].f_1 = func_403(Local_1071[2 /*14*/], 0, 0);
								if (ui::does_blip_exist(Local_1450[4 /*2*/].f_1))
								{
									ui::remove_blip(&(Local_1450[4 /*2*/].f_1));
								}
								Local_292[iParam0 /*4*/].f_2++;
							}
							break;
						
						case 1:
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]) && vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
							{
								if (ped::is_ped_in_group(Local_1071[2 /*14*/]))
								{
									if (ui::does_blip_exist(Local_1071[2 /*14*/].f_1))
									{
										ui::remove_blip(&(Local_1071[2 /*14*/].f_1));
										Local_1450[4 /*2*/].f_1 = func_403(Local_1450[4 /*2*/], 0, 0);
										Local_292[iParam0 /*4*/].f_2 = 0;
									}
								}
							}
							break;
					}
					break;
				
				case 24:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
							{
								iVar3 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]) && vehicle::is_vehicle_driveable(iVar3, 0))
								{
									if (ped::is_ped_in_vehicle(Local_1071[2 /*14*/], iVar3, 0))
									{
										Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 30000;
										Local_292[iParam0 /*4*/].f_2++;
									}
								}
							}
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
							{
								if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
								{
									if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
									{
										if (ped::is_ped_in_vehicle(Local_1071[8 /*14*/], Local_1450[4 /*2*/], 0))
										{
											if (func_263("drive_good", 3, Local_1071[2 /*14*/], "Lamar", -1, 0, 0, -1, 0, 0, -1, 0, 0, 8))
											{
												if (controls::_is_input_disabled(0))
												{
													func_26("ARM2_HLP21_KM", 9500);
												}
												else
												{
													func_26("ARM2_HLP21", 9500);
												}
												Local_292[iParam0 /*4*/].f_1 = 1;
											}
										}
									}
								}
							}
							break;
					}
					break;
				
				case 25:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 2000;
							Local_292[iParam0 /*4*/].f_2++;
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
							{
								func_26("ARM2_HLP24", 12000);
								Local_292[iParam0 /*4*/].f_2++;
							}
							break;
						
						case 2:
							if (!func_27("ARM2_HLP24"))
							{
								Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 500;
								Local_292[iParam0 /*4*/].f_2++;
							}
							break;
						
						case 3:
							if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
							{
								func_26("ARM2_HLP25", 12000);
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 26:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (ui::does_blip_exist(Local_1450[4 /*2*/].f_1))
							{
								ui::remove_blip(&(Local_1450[4 /*2*/].f_1));
							}
							audio::start_audio_scene("ARM_2_RIDE_BIKE_BACK");
							Local_292[iParam0 /*4*/].f_2++;
							break;
						
						case 1:
							func_475(&Local_1956);
							if (func_436(&Local_1956, -6.62f, -1393.36f, 28.32f, 4f, 4f, 2f, 1, Local_1450[4 /*2*/], "ARM2_INS13", "CMN_GENGETINBK", "CMN_GENGETBCKBK", 1, 0, 1, -1))
							{
								player::set_player_control(player::player_id(), false, 256);
								Local_292[iParam0 /*4*/].f_1 = 1;
							}
							break;
					}
					break;
				
				case 27:
					switch (Local_292[iParam0 /*4*/].f_2)
					{
						case 0:
							if (func_435(69))
							{
								if (!ui::is_message_being_displayed() && !func_278())
								{
									func_498("ARM2_INS14", 5000, 1);
									Local_292[iParam0 /*4*/].f_2++;
									Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 2000;
								}
							}
							break;
						
						case 1:
							if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
							{
								if (ped::is_ped_in_vehicle(player::player_ped_id(), Local_1450[4 /*2*/], 0))
								{
									if (func_302("ARM2_INS14", 0, 0))
									{
										if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
										{
											ui::clear_prints();
											Local_292[iParam0 /*4*/].f_1 = 1;
										}
									}
									else
									{
										Local_292[iParam0 /*4*/].f_1 = 1;
									}
								}
							}
							break;
					}
					break;
				
				case 14:
					if (!func_434(7, 17))
					{
						switch (Local_292[iParam0 /*4*/].f_2)
						{
							case 0:
								Local_292[iParam0 /*4*/].f_3 = gameplay::get_game_timer() + 1500;
								Local_292[iParam0 /*4*/].f_2++;
								break;
							
							case 1:
								if (gameplay::get_game_timer() > Local_292[iParam0 /*4*/].f_3)
								{
									if (!ui::is_help_message_being_displayed())
									{
										func_26("ARM2_HLP08", 12000);
										Local_292[iParam0 /*4*/].f_2++;
									}
								}
								break;
							
							case 2:
								if (func_27("ARM2_HLP08"))
								{
									if (ped::is_ped_in_cover(player::player_ped_id(), 0))
									{
										ui::clear_help(1);
									}
								}
								else
								{
									Local_292[iParam0 /*4*/].f_1 = 1;
								}
								break;
						}
					}
					else
					{
						Local_292[iParam0 /*4*/].f_1 = 1;
					}
					break;
				}
			}
	}
}

bool func_434(int iParam0, int iParam1)//Position - 0x48FF9
{
	if (Local_292[iParam0 /*4*/] == iParam1)
	{
		if (Local_292[iParam0 /*4*/].f_1 == 1)
		{
			return true;
		}
	}
	return false;
}

bool func_435(int iParam0)//Position - 0x4901F
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Local_140)
	{
		if (Local_140[iVar0 /*6*/] == iParam0)
		{
			if (Local_140[iVar0 /*6*/].f_1)
			{
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

int func_436(int iParam0, vector3 vParam1, vector3 vParam4, int iParam7, int iParam8, char* sParam9, char* sParam10, char* sParam11, int iParam12, int iParam13, int iParam14, int iParam15)//Position - 0x49055
{
	return func_437(iParam0, vParam1, vParam4, func_474(), func_474(), iParam7, 5, 0, 0, 0, iParam8, sParam9, func_473(), func_473(), func_473(), func_473(), sParam10, 0, iParam12, sParam11, 0, iParam13, iParam14, iParam15, 0, 0, 0, 1, 1065353216);
}

bool func_437(int iParam0, vector3 vParam1, vector3 vParam4, vector3 vParam7, vector3 vParam10, int iParam13, int iParam14, int iParam15, int iParam16, int iParam17, int iParam18, char* sParam19, char* sParam20, char* sParam21, char* sParam22, char* sParam23, char* sParam24, int iParam25, int iParam26, char* sParam27, int iParam28, int iParam29, int iParam30, int iParam31, int iParam32, int iParam33, int iParam34, int iParam35, float fParam36)//Position - 0x490A4
{
	int iVar0;
	int iVar1;
	int iVar2;
	vector3 vVar3;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	
	vVar3 = { vParam1 + Vector(1f, 0f, 0f) };
	iParam0->f_17[0] = iParam15;
	iParam0->f_17[1] = iParam16;
	iParam0->f_17[2] = iParam17;
	iParam0->f_16 = iParam15;
	func_472(iParam0);
	func_471(iParam0);
	func_429();
	if (func_454(iParam0, iParam0->f_17[0], iParam0->f_17[1], iParam0->f_17[2], sParam20, sParam21, sParam22, sParam23, iParam0->f_8, iParam25, iParam18, 0, 0, iParam32, iParam33, iParam34, iParam14, iParam26))
	{
		func_453(sParam20);
		func_453(sParam21);
		func_453(sParam22);
		func_453(sParam23);
		if (cam::is_screen_faded_in())
		{
			iVar1 = false;
			if (vehicle::is_vehicle_driveable(iParam18, 0))
			{
				if (ped::is_ped_in_vehicle(player::player_ped_id(), iParam18, 0))
				{
					gameplay::set_bit(&(iParam0->f_13), 3);
					if (!gameplay::is_bit_set(iParam0->f_13, 9))
					{
						gameplay::clear_bit(&(iParam0->f_13), 4);
					}
					if (gameplay::is_bit_set(iParam0->f_13, 23))
					{
						gameplay::clear_bit(&(iParam0->f_13), 23);
					}
					gameplay::set_bit(&(iParam0->f_13), 9);
					iVar1 = true;
				}
			}
			else if (iParam14 == 4 || iParam14 == 5)
			{
				if (func_451(iParam0, iParam29))
				{
					gameplay::set_bit(&(iParam0->f_13), 3);
					if (!gameplay::is_bit_set(iParam0->f_13, 9))
					{
						gameplay::clear_bit(&(iParam0->f_13), 4);
					}
					gameplay::set_bit(&(iParam0->f_13), 9);
					iVar1 = true;
				}
			}
			else
			{
				iVar1 = true;
			}
			if (iVar1)
			{
				func_453(sParam24);
				func_453(sParam27);
				func_453("MORE_SEATS");
				if (iParam26 && player::is_player_wanted_level_greater(player::player_id(), 0))
				{
					if (ui::does_blip_exist(iParam0->f_5))
					{
						ui::remove_blip(&(iParam0->f_5));
						func_453(sParam19);
					}
					if (ui::does_blip_exist(*iParam0))
					{
						ui::remove_blip(iParam0);
					}
					if ((!func_448(iParam0, 1) && !func_447(iParam0)) && !gameplay::is_bit_set(iParam0->f_13, 0))
					{
						if (iParam30)
						{
							func_446(iParam0, "LOSE_WANTED", 0);
							if (!ped::is_ped_injured(iParam0->f_17[0]))
							{
								func_292(iParam0->f_17[0], "VEHICLE_POLICE_PURSUIT", 3);
							}
						}
						gameplay::set_bit(&(iParam0->f_13), 0);
						gameplay::clear_bit(&(iParam0->f_13), 1);
					}
				}
				else
				{
					if (gameplay::is_bit_set(iParam0->f_13, 0))
					{
						func_453("LOSE_WANTED");
						gameplay::clear_bit(&(iParam0->f_13), 0);
						gameplay::set_bit(&(iParam0->f_13), 1);
					}
					if (gameplay::is_bit_set(iParam0->f_13, 1))
					{
						if (!func_448(iParam0, 1))
						{
							if (!ped::is_ped_injured(iParam0->f_17[0]))
							{
								func_292(iParam0->f_17[0], "LOSE_WANTED_LEVEL", 3);
							}
							gameplay::clear_bit(&(iParam0->f_13), 1);
						}
					}
					if (!ui::does_blip_exist(iParam0->f_5))
					{
						if (ui::does_blip_exist(*iParam0))
						{
							ui::remove_blip(iParam0);
						}
						iParam0->f_5 = func_412(vVar3, 0);
						if (!iParam31 == -1)
						{
							ui::set_blip_sprite(iParam0->f_5, iParam31);
						}
						if (iParam35)
						{
							func_445(iParam0->f_5, iParam0);
						}
					}
					else if (!func_444(vVar3, ui::get_blip_coords(iParam0->f_5), 0.1f, 0))
					{
						ui::set_blip_coords(iParam0->f_5, vVar3);
						if (iParam35)
						{
							func_445(iParam0->f_5, iParam0);
						}
					}
					if (!func_448(iParam0, 2))
					{
						if (!gameplay::is_bit_set(iParam0->f_13, 2))
						{
							func_446(iParam0, sParam19, 0);
							gameplay::set_bit(&(iParam0->f_13), 2);
						}
					}
					if (iParam14 == 4 || iParam14 == 5)
					{
						if (gameplay::is_bit_set(iParam0->f_13, 13))
						{
							iParam13 = false;
						}
					}
					iVar1 = false;
					iVar6 = false;
					iVar7 = 0;
					if ((iParam14 == 1 || iParam14 == 3) || iParam14 == 5)
					{
						iVar6 = true;
					}
					if (iParam14 == 2 || iParam14 == 3)
					{
						iVar7 = 1;
					}
					else if (iParam14 == 4 || iParam14 == 5)
					{
						iVar7 = 2;
					}
					if (iParam28)
					{
						entity::is_entity_at_coord(player::player_ped_id(), vParam1, vParam4, iParam13, iVar6, iVar7);
						if (entity::is_entity_in_angled_area(player::player_ped_id(), vParam7, vParam10, fParam36, 0, iVar6, iVar7))
						{
							iVar1 = true;
						}
					}
					else if (entity::is_entity_at_coord(player::player_ped_id(), vParam1, vParam4, iParam13, iVar6, iVar7))
					{
						iVar1 = true;
					}
					if (iVar1)
					{
						iVar1 = true;
						iVar2 = 0;
						while (iVar2 < 3)
						{
							if (!ped::is_ped_injured(iParam0->f_17[iVar2]))
							{
								if (iParam14 == 4 || iParam14 == 5)
								{
									iVar0 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
									if (!ped::is_ped_in_vehicle(iParam0->f_17[iVar2], iVar0, 0))
									{
										iVar1 = false;
									}
								}
								else if (iParam18 != 0)
								{
									if (!ped::is_ped_in_vehicle(iParam0->f_17[iVar2], iParam18, 0))
									{
										iVar1 = false;
									}
								}
								else if (!ped::is_ped_group_member(iParam0->f_17[iVar2], func_443()) || !func_441(iParam0->f_17[iVar2], 1))
								{
									iVar1 = false;
								}
							}
							iVar2++;
						}
						if (iVar1)
						{
							if (func_438(iParam0))
							{
								func_453(sParam19);
								func_453(sParam24);
								func_453(sParam20);
								func_453(sParam21);
								func_453(sParam22);
								func_453(sParam23);
								func_453("LOSE_WANTED");
								func_453("MORE_SEATS");
								func_453(sParam27);
								func_501(iParam0, 1, 0);
								return true;
							}
						}
					}
				}
			}
			else if (entity::does_entity_exist(iParam18))
			{
				if ((iParam26 && player::is_player_wanted_level_greater(player::player_id(), 0)) && (!gameplay::is_bit_set(iParam0->f_13, 9) && !gameplay::is_bit_set(iParam0->f_13, 22)))
				{
					func_453(sParam24);
					func_453(sParam27);
					if (ui::does_blip_exist(iParam0->f_5) || ui::does_blip_exist(*iParam0))
					{
						ui::remove_blip(&(iParam0->f_5));
						ui::remove_blip(iParam0);
						func_453(sParam19);
					}
					if ((!func_448(iParam0, 1) && !func_447(iParam0)) && !gameplay::is_bit_set(iParam0->f_13, 0))
					{
						if (iParam30)
						{
							func_446(iParam0, "LOSE_WANTED", 0);
							if (!ped::is_ped_injured(iParam0->f_17[0]))
							{
								func_292(iParam0->f_17[0], "VEHICLE_POLICE_PURSUIT", 3);
							}
						}
						gameplay::set_bit(&(iParam0->f_13), 0);
						gameplay::clear_bit(&(iParam0->f_13), 1);
					}
				}
				else
				{
					if (gameplay::is_bit_set(iParam0->f_13, 0))
					{
						func_453("LOSE_WANTED");
						gameplay::clear_bit(&(iParam0->f_13), 0);
						gameplay::set_bit(&(iParam0->f_13), 1);
					}
					if (gameplay::is_bit_set(iParam0->f_13, 1))
					{
						if (!func_448(iParam0, 1))
						{
							if (!ped::is_ped_injured(iParam0->f_17[0]))
							{
								func_292(iParam0->f_17[0], "LOSE_WANTED_LEVEL", 3);
							}
							gameplay::clear_bit(&(iParam0->f_13), 1);
						}
					}
					if (vehicle::is_vehicle_driveable(iParam18, 0))
					{
						if (!ui::does_blip_exist(*iParam0))
						{
							if (ui::does_blip_exist(iParam0->f_5))
							{
								ui::remove_blip(&(iParam0->f_5));
								func_453(sParam19);
							}
							*iParam0 = func_403(iParam18, 0, 0);
							ui::set_blip_display(*iParam0, 2);
							if (!gameplay::is_bit_set(iParam0->f_13, 4))
							{
								func_445(*iParam0, iParam0);
							}
						}
						if (!func_448(iParam0, 2))
						{
							if (!gameplay::is_bit_set(iParam0->f_13, 3))
							{
								func_446(iParam0, sParam24, 0);
								gameplay::set_bit(&(iParam0->f_13), 3);
								gameplay::clear_bit(&(iParam0->f_13), 4);
							}
							else if (gameplay::is_bit_set(iParam0->f_13, 9))
							{
								if (!gameplay::is_string_null(sParam27))
								{
									if (!gameplay::is_bit_set(iParam0->f_13, 4))
									{
										func_446(iParam0, sParam27, 0);
										gameplay::set_bit(&(iParam0->f_13), 4);
									}
								}
								else if (!gameplay::is_bit_set(iParam0->f_13, 4))
								{
									func_446(iParam0, sParam24, 0);
									gameplay::set_bit(&(iParam0->f_13), 4);
								}
								if (!gameplay::is_bit_set(iParam0->f_13, 23))
								{
									if (!ped::is_ped_injured(iParam0->f_17[0]))
									{
										func_292(iParam0->f_17[0], "GET_IN_CAR", 3);
									}
									gameplay::set_bit(&(iParam0->f_13), 23);
								}
							}
						}
					}
				}
			}
			else
			{
				if (ui::does_blip_exist(iParam0->f_5))
				{
					ui::remove_blip(&(iParam0->f_5));
					func_453(sParam19);
				}
				if (iParam14 == 4 || iParam14 == 5)
				{
					if (iParam29 > 0)
					{
						if (!func_448(iParam0, 2))
						{
							if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
							{
								if (!gameplay::is_bit_set(iParam0->f_13, 13))
								{
									iVar8 = 0;
									iVar9 = 0;
									iVar2 = 0;
									while (iVar2 < 3)
									{
										if (!ped::is_ped_injured(iParam0->f_17[iVar2]))
										{
											iVar8++;
										}
										iVar2++;
									}
									iVar9 = gameplay::get_random_int_in_range(0, iVar8);
									if (!ped::is_ped_injured(iParam0->f_17[iVar9]))
									{
										func_292(iParam0->f_17[iVar9], "NEED_A_BIGGER_VEHICLE", 3);
									}
									func_446(iParam0, "MORE_SEATS", 0);
									gameplay::set_bit(&(iParam0->f_13), 13);
								}
							}
							else if (!gameplay::is_bit_set(iParam0->f_13, 3))
							{
								func_446(iParam0, sParam24, 0);
								gameplay::set_bit(&(iParam0->f_13), 3);
								gameplay::clear_bit(&(iParam0->f_13), 4);
							}
							else if (!gameplay::is_bit_set(iParam0->f_13, 4))
							{
								if (gameplay::is_bit_set(iParam0->f_13, 9))
								{
									func_446(iParam0, sParam27, 0);
									gameplay::set_bit(&(iParam0->f_13), 4);
								}
							}
						}
					}
					else if (!func_448(iParam0, 2))
					{
						if (!gameplay::is_bit_set(iParam0->f_13, 3))
						{
							func_446(iParam0, sParam24, 0);
							gameplay::set_bit(&(iParam0->f_13), 3);
							gameplay::clear_bit(&(iParam0->f_13), 4);
						}
						else if (gameplay::is_bit_set(iParam0->f_13, 9))
						{
							if (!gameplay::is_string_null(sParam27))
							{
								if (!gameplay::is_bit_set(iParam0->f_13, 4))
								{
									func_446(iParam0, sParam27, 0);
									gameplay::set_bit(&(iParam0->f_13), 4);
								}
							}
							else if (!gameplay::is_bit_set(iParam0->f_13, 4))
							{
								func_446(iParam0, sParam24, 0);
								gameplay::set_bit(&(iParam0->f_13), 4);
							}
						}
					}
				}
			}
		}
	}
	else
	{
		if (gameplay::is_bit_set(iParam0->f_13, 0))
		{
			gameplay::clear_bit(&(iParam0->f_13), 0);
		}
		func_453(sParam19);
		func_453(sParam24);
		func_453(sParam27);
		func_453(sParam24);
		func_453("LOSE_WANTED");
		if (ui::does_blip_exist(iParam0->f_5))
		{
			ui::remove_blip(&(iParam0->f_5));
		}
		if (ui::does_blip_exist(*iParam0))
		{
			ui::remove_blip(iParam0);
		}
	}
	gameplay::clear_bit(&(iParam0->f_13), 11);
	gameplay::clear_bit(&(iParam0->f_13), 12);
	return false;
}

bool func_438(int iParam0)//Position - 0x49A1B
{
	if (gameplay::is_bit_set(iParam0->f_13, 12))
	{
		if (func_440(player::player_ped_id()))
		{
			if (func_439(1, 0, 1) || gameplay::is_bit_set(iParam0->f_13, 7))
			{
				return true;
			}
		}
	}
	else if (func_439(1, 0, 1) || gameplay::is_bit_set(iParam0->f_13, 7))
	{
		return true;
	}
	return false;
}

bool func_439(int iParam0, int iParam1, int iParam2)//Position - 0x49A79
{
	int iVar0;
	
	if (gameplay::is_minigame_in_progress())
	{
		return false;
	}
	if (iParam0)
	{
		if (entity::is_entity_dead(player::player_ped_id(), 0))
		{
			return false;
		}
	}
	iVar0 = 0;
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		if (!ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
		{
			return false;
		}
		iVar0 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
		if (iParam0)
		{
			if (entity::is_entity_dead(iVar0, 0))
			{
				return false;
			}
		}
		if (iParam2)
		{
			if (!entity::is_entity_dead(iVar0, 0))
			{
				if (vehicle::get_ped_in_vehicle_seat(iVar0, -1, 0) != player::player_ped_id())
				{
					return false;
				}
			}
		}
		if (!entity::is_entity_dead(iVar0, 0))
		{
			if (entity::get_entity_upright_value(iVar0) < 0.95f || entity::get_entity_upright_value(iVar0) > 1.011f)
			{
				return false;
			}
		}
	}
	else if (iParam1)
	{
		return false;
	}
	if (!player::is_player_ready_for_cutscene(player::player_id()))
	{
		return false;
	}
	if (!player::can_player_start_mission(player::player_id()))
	{
		return false;
	}
	return true;
}

bool func_440(int iParam0)//Position - 0x49B5E
{
	float fVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		fVar0 = entity::get_entity_speed(iParam0);
		if (fVar0 > -0.5f && fVar0 < 0.5f)
		{
			return true;
		}
	}
	return false;
}

bool func_441(int iParam0, int iParam1)//Position - 0x49B95
{
	if (!ped::is_ped_injured(iParam0))
	{
		if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()) && iParam1)
		{
			if (func_442(player::player_ped_id(), iParam0))
			{
				ped::set_group_separation_range(func_443(), 50f);
				return true;
			}
		}
		else if (ped::is_ped_group_member(iParam0, func_443()))
		{
			ped::set_group_separation_range(func_443(), 50f);
			return true;
		}
	}
	else
	{
		return true;
	}
	return false;
}

bool func_442(int iParam0, int iParam1)//Position - 0x49C00
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (ped::is_ped_sitting_in_any_vehicle(iParam0))
		{
			iVar0 = ped::get_vehicle_ped_is_in(iParam0, 0);
			if (vehicle::is_vehicle_driveable(iVar0, 0))
			{
				if (!ped::is_ped_injured(iParam1))
				{
					if (ped::is_ped_sitting_in_vehicle(iParam1, iVar0))
					{
						return true;
					}
				}
			}
		}
	}
	return false;
}

int func_443()//Position - 0x49C48
{
	return player::get_player_group(player::get_player_index());
}

bool func_444(vector3 vParam0, vector3 vParam3, float fParam6, int iParam7)//Position - 0x49C58
{
	if (fParam6 < 0f)
	{
		fParam6 = 0f;
	}
	if (!iParam7)
	{
		if (gameplay::absf((vParam0.x - vParam3.x)) <= fParam6)
		{
			if (gameplay::absf((vParam0.y - vParam3.y)) <= fParam6)
			{
				if (gameplay::absf((vParam0.y - vParam3.y)) <= fParam6)
				{
					return true;
				}
			}
		}
	}
	else if (gameplay::absf((vParam0.x - vParam3.x)) <= fParam6)
	{
		if (gameplay::absf((vParam0.y - vParam3.y)) <= fParam6)
		{
			return true;
		}
	}
	return false;
}

void func_445(int iParam0, int iParam1)//Position - 0x49CD3
{
	if (ui::does_blip_exist(iParam0))
	{
		if (ui::does_blip_exist(iParam1->f_6))
		{
			ui::set_blip_route(iParam1->f_6, false);
		}
		ui::_0x3DDA37128DD1ACA8(0);
		ui::_0x67EEDEA1B9BAFD94();
		iParam1->f_6 = iParam0;
		ui::set_blip_route(iParam0, true);
	}
}

void func_446(int iParam0, char* sParam1, int iParam2)//Position - 0x49D0E
{
	if (!iParam2)
	{
		if (!gameplay::is_string_null(sParam1))
		{
			if (!gameplay::are_strings_equal(sParam1, ""))
			{
				func_498(sParam1, 7500, 1);
			}
		}
	}
	iParam0->f_10 = gameplay::get_game_timer();
}

bool func_447(int iParam0)//Position - 0x49D45
{
	if (!ped::is_ped_injured(iParam0->f_16))
	{
		if (audio::is_ambient_speech_playing(iParam0->f_16))
		{
			return true;
		}
	}
	return false;
}

bool func_448(int iParam0, int iParam1)//Position - 0x49D69
{
	if (iParam1 != 1 || ui::is_subtitle_preference_switched_on())
	{
		if (ui::is_message_being_displayed())
		{
			return true;
		}
		if (func_450(iParam0))
		{
			return true;
		}
	}
	if (iParam1 != 2 || ui::is_subtitle_preference_switched_on())
	{
		if (func_278() && !func_449())
		{
			return true;
		}
	}
	return false;
}

bool func_449()//Position - 0x49DC1
{
	if (Global_16756 == 1)
	{
		return true;
	}
	return false;
}

bool func_450(var uParam0)//Position - 0x49DD8
{
	int iVar0;
	int iVar1;
	
	iVar1 = gameplay::get_game_timer();
	iVar0 = (iVar1 - uParam0->f_10);
	if (iVar0 < 35)
	{
		return true;
	}
	return false;
}

bool func_451(var uParam0, int iParam1)//Position - 0x49DFB
{
	int iVar0;
	
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		iVar0 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
		if (func_452(iVar0, uParam0, iParam1))
		{
			return true;
		}
	}
	return false;
}

bool func_452(int iParam0, var uParam1, int iParam2)//Position - 0x49E2C
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		iVar0 = 0;
		iVar2 = 0;
		while (iVar2 < 3)
		{
			if (entity::does_entity_exist(uParam1->f_17[iVar2]))
			{
				iVar0++;
			}
			iVar2++;
		}
		iVar1 = vehicle::get_vehicle_max_number_of_passengers(iParam0);
		if (iParam2 > 0)
		{
			if (iVar1 >= iParam2)
			{
				if (iParam2 > 1)
				{
					if (!vehicle::_0xF7F203E31F96F6A1(iParam0, 1))
					{
						return true;
					}
				}
				else
				{
					return true;
				}
			}
		}
		else if (iVar1 >= iVar0)
		{
			if (iVar0 > 1)
			{
				if (!vehicle::_0xF7F203E31F96F6A1(iParam0, 1))
				{
					return true;
				}
			}
			else
			{
				return true;
			}
		}
	}
	return false;
}

void func_453(char* sParam0)//Position - 0x49EC0
{
	if (!gameplay::is_string_null(sParam0))
	{
		ui::clear_this_print(sParam0);
	}
}

bool func_454(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, char* sParam7, float fParam8, int iParam9, int iParam10, int iParam11, int iParam12, var uParam13, var uParam14, var uParam15, int iParam16, int iParam17)//Position - 0x49ED8
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7[3];
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	var uVar15[3];
	var uVar19[3];
	int iVar23;
	int iVar24;
	int iVar25;
	int iVar26;
	int iVar27;
	vector3 vVar28;
	int iVar31;
	int iVar32;
	
	iVar4 = 0;
	uParam0->f_17[0] = uParam1;
	uParam0->f_17[1] = uParam2;
	uParam0->f_17[2] = uParam3;
	uParam0->f_16 = uParam1;
	uVar15[0] = uParam4;
	uVar15[1] = uParam5;
	uVar15[2] = uParam6;
	uVar19[0] = uParam13;
	uVar19[1] = uParam14;
	uVar19[2] = uParam15;
	iVar6 = 1;
	iVar1 = 0;
	iVar2 = 0;
	iVar3 = 0;
	iVar7[0] = 0;
	iVar7[1] = 0;
	iVar7[2] = 0;
	iVar0 = 0;
	while (iVar0 < 3)
	{
		if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
		{
			iVar3++;
		}
		if (player::is_player_wanted_level_greater(player::player_id(), 0))
		{
			if (!gameplay::is_bit_set(uParam0->f_13, 29) && !gameplay::is_bit_set(uParam0->f_13, 28))
			{
				if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
				{
					ped::set_ped_using_action_mode(uParam0->f_17[iVar0], true, -1, 0);
				}
				if (iVar0 == 2)
				{
					gameplay::set_bit(&(uParam0->f_13), 28);
				}
			}
		}
		else if (!gameplay::is_bit_set(uParam0->f_13, 29) && gameplay::is_bit_set(uParam0->f_13, 28))
		{
			if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
			{
				ped::set_ped_using_action_mode(uParam0->f_17[iVar0], false, -1, 0);
			}
			if (iVar0 == 2)
			{
				gameplay::clear_bit(&(uParam0->f_13), 28);
			}
		}
		iVar0++;
	}
	if (iVar3 == 0)
	{
		return true;
	}
	if (gameplay::is_bit_set(uParam0->f_13, 26))
	{
		iVar23 = false;
		if (!entity::does_entity_exist(uParam0->f_21))
		{
			iVar25 = 64;
			iVar25 |= 65536;
			iVar25 |= 2048;
			iVar25 |= 1;
			iVar25 |= 2;
			iVar25 |= 4;
			iVar25 |= 32;
			iVar25 |= 16;
			iVar25 |= 8;
			iVar24 = vehicle::get_closest_vehicle(entity::get_entity_coords(player::player_ped_id(), 1), 50f, 0, iVar25);
			if (vehicle::is_vehicle_driveable(iVar24, 0))
			{
				uParam0->f_21 = iVar24;
			}
		}
		if (vehicle::is_vehicle_driveable(uParam0->f_21, 0))
		{
			if (system::vdist2(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(uParam0->f_21, 1)) < 400f)
			{
				if (!ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
				{
					if (!player::is_player_wanted_level_greater(player::player_id(), 0) || !iParam17)
					{
						if (func_452(uParam0->f_21, uParam0, iVar3))
						{
							iVar0 = 0;
							while (iVar0 < 3)
							{
								if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
								{
									ped::set_ped_max_move_blend_ratio(uParam0->f_17[iVar0], 1f);
									if (ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()))
									{
										ped::remove_ped_from_group(uParam0->f_17[iVar0]);
									}
									if (ai::get_script_task_status(uParam0->f_17[iVar0], -1794415470) == 7 && !func_470(uParam0->f_17[iVar0], uParam0->f_21))
									{
										if (!ped::is_ped_ragdoll(uParam0->f_17[iVar0]) && !ai::is_ped_getting_up(uParam0->f_17[iVar0]))
										{
											ped::set_blocking_of_non_temporary_events(uParam0->f_17[iVar0], true);
											ai::task_enter_vehicle(uParam0->f_17[iVar0], uParam0->f_21, 60000, iVar0, 1f, 1, 0);
											ped::set_ped_group_member_passenger_index(uParam0->f_17[iVar0], iVar0);
										}
									}
								}
								iVar0++;
							}
							return true;
						}
						else
						{
							iVar23 = true;
						}
					}
					else
					{
						iVar23 = true;
					}
				}
				else
				{
					iVar23 = true;
				}
			}
			else
			{
				iVar23 = true;
			}
		}
		else
		{
			iVar23 = true;
		}
		if (iVar23)
		{
			gameplay::clear_bit(&(uParam0->f_13), 26);
			iVar0 = 0;
			while (iVar0 < 3)
			{
				if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
				{
					if (!ped::is_ped_getting_into_a_vehicle(uParam0->f_17[iVar0]) && !uParam0->f_15)
					{
						ai::clear_ped_tasks(uParam0->f_17[iVar0]);
					}
					if (!ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()))
					{
						if (func_468(uParam0, uParam0->f_17[iVar0], fParam8, 1))
						{
							ped::set_ped_as_group_member(uParam0->f_17[iVar0], func_443());
						}
					}
				}
				iVar0++;
			}
		}
	}
	if (!gameplay::is_bit_set(uParam0->f_13, 26))
	{
		if ((!func_467(uParam0) && ped::is_ped_sitting_in_any_vehicle(player::player_ped_id())) && !entity::does_entity_exist(iParam10))
		{
			iVar13 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
			if (vehicle::is_vehicle_driveable(iVar13, 0))
			{
				if (!gameplay::is_bit_set(uParam0->f_13, 13))
				{
					if (iParam16 == 4 || iParam16 == 5)
					{
					}
					if (!func_448(uParam0, 2))
					{
						iVar26 = 0;
						iVar27 = 0;
						iVar0 = 0;
						while (iVar0 < 3)
						{
							if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
							{
								iVar26++;
							}
							iVar0++;
						}
						iVar27 = gameplay::get_random_int_in_range(0, iVar26);
						if (!ped::is_ped_injured(uParam0->f_17[iVar27]))
						{
							func_292(uParam0->f_17[iVar27], "NEED_A_BIGGER_VEHICLE", 3);
						}
						func_446(uParam0, "MORE_SEATS", 0);
						gameplay::set_bit(&(uParam0->f_13), 13);
					}
				}
				iVar12 = true;
			}
		}
		else
		{
			iVar12 = false;
			gameplay::clear_bit(&(uParam0->f_13), 13);
			func_453("MORE_SEATS");
		}
		if (!entity::does_entity_exist(iParam10))
		{
			if ((!ped::is_ped_injured(uParam0->f_17[0]) || !ped::is_ped_injured(uParam0->f_17[1])) || !ped::is_ped_injured(uParam0->f_17[2]))
			{
				if (!gameplay::is_bit_set(uParam0->f_13, 31))
				{
					if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()) && !func_448(uParam0, 2))
					{
						iVar13 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
						if (func_466(iVar13, uParam0))
						{
							func_446(uParam0, "CMN_VEHSUIT", 0);
							gameplay::set_bit(&(uParam0->f_13), 31);
						}
					}
				}
				else if (!ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
				{
					gameplay::clear_bit(&(uParam0->f_13), 31);
					func_453("CMN_VEHSUIT");
				}
			}
		}
		if (vehicle::is_vehicle_driveable(iParam10, 0))
		{
			if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), iParam10))
			{
				if (controls::is_control_just_pressed(0, 75))
				{
					gameplay::set_bit(&(uParam0->f_13), 21);
				}
			}
			else if (gameplay::is_bit_set(uParam0->f_13, 21))
			{
				gameplay::clear_bit(&(uParam0->f_13), 21);
			}
		}
		iVar0 = 0;
		while (iVar0 < 3)
		{
			if (entity::does_entity_exist(uParam0->f_17[iVar0]))
			{
				if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
				{
					if (!ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()))
					{
						ped::set_ped_dies_in_water(uParam0->f_17[iVar0], 1);
					}
					else
					{
						ped::set_ped_dies_in_water(uParam0->f_17[iVar0], 0);
					}
					if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
					{
						iVar13 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
						if (vehicle::is_vehicle_driveable(iVar13, 0))
						{
							if (ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()))
							{
								if (!func_467(uParam0) && ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
								{
									if (!func_465(uParam0->f_17[iVar0]))
									{
										ped::remove_ped_from_group(uParam0->f_17[iVar0]);
									}
								}
							}
						}
						if (iVar13 != iParam10 && !entity::is_entity_dead(iVar13, 0))
						{
							if (ped::is_ped_sitting_in_vehicle(uParam0->f_17[iVar0], iVar13))
							{
								if (entity::is_entity_in_water(iVar13) && !vehicle::is_vehicle_on_all_wheels(iVar13))
								{
									vVar28 = { entity::get_entity_coords(iVar13, 1) };
									if (vVar28.y < -1f)
									{
										ai::task_leave_vehicle(uParam0->f_17[iVar0], iVar13, 64);
									}
								}
							}
						}
					}
					iVar11 = true;
					if (!ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()))
					{
						if (ped::is_ped_sitting_in_any_vehicle(uParam0->f_17[iVar0]))
						{
							iVar13 = ped::get_vehicle_ped_is_in(uParam0->f_17[iVar0], 0);
							if (!entity::is_entity_dead(iVar13, 0))
							{
								if (vehicle::is_vehicle_driveable(iParam10, 0))
								{
									if (iVar13 != iParam10)
									{
										if (!ped::is_ped_sitting_in_vehicle(player::player_ped_id(), iVar13))
										{
											if (entity::get_entity_speed(iVar13) > 5f)
											{
												ai::task_leave_vehicle(uParam0->f_17[iVar0], iVar13, 4160);
											}
											else
											{
												ai::task_leave_vehicle(uParam0->f_17[iVar0], iVar13, 64);
											}
											iVar11 = false;
										}
									}
								}
								else
								{
									if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
									{
										iVar31 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
									}
									if (vehicle::is_vehicle_driveable(iVar31, 0))
									{
										if (iVar13 != iVar31)
										{
											if (entity::get_entity_speed(iVar13) > 5f)
											{
												ai::task_leave_vehicle(uParam0->f_17[iVar0], iVar13, 4160);
											}
											else
											{
												ai::task_leave_vehicle(uParam0->f_17[iVar0], iVar13, 64);
											}
											iVar11 = false;
										}
									}
								}
							}
						}
					}
					if (ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()))
					{
						iVar32 = ped::get_vehicle_ped_is_using(player::player_ped_id());
						if (entity::does_entity_exist(iVar32))
						{
							if (func_452(iVar32, uParam0, 0))
							{
								if (func_464(iVar0, uParam0) || !gameplay::is_bit_set(uParam0->f_13, 27))
								{
									ped::set_ped_group_member_passenger_index(uParam0->f_17[iVar0], iVar0);
									func_463(iVar0, uParam0);
									iVar4++;
									if (iVar4 >= iVar3)
									{
										gameplay::set_bit(&(uParam0->f_13), 27);
									}
								}
							}
							else if (!func_464(iVar0, uParam0))
							{
								if (entity::get_entity_model(iVar32) == joaat("sentinel2"))
								{
									ped::set_ped_group_member_passenger_index(uParam0->f_17[iVar0], 4);
								}
								else
								{
									ped::set_ped_group_member_passenger_index(uParam0->f_17[iVar0], 2);
								}
								func_462(iVar0, uParam0);
							}
						}
					}
					if ((!ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()) && !func_461(uParam0->f_17[iVar0], iParam10)) && !func_460(uParam0->f_17[iVar0], iParam10))
					{
						if (func_468(uParam0, uParam0->f_17[iVar0], fParam8, iParam11))
						{
							if (!ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()))
							{
								if (((!ped::is_ped_ragdoll(uParam0->f_17[iVar0]) && !ai::is_ped_getting_up(uParam0->f_17[iVar0])) && !ped::is_ped_jumping_out_of_vehicle(uParam0->f_17[iVar0])) && !ped::is_ped_getting_into_a_vehicle(uParam0->f_17[iVar0]))
								{
									iVar14 = ai::get_script_task_status(uParam0->f_17[iVar0], -1794415470);
									if (iVar14 == 7)
									{
										ai::clear_ped_tasks(uParam0->f_17[iVar0]);
									}
									ped::set_ped_as_group_member(uParam0->f_17[iVar0], func_443());
									iVar11 = false;
								}
							}
						}
						if (iVar11)
						{
							if (!ui::does_blip_exist(uParam0->f_1[iVar0]))
							{
								uParam0->f_11 = gameplay::get_game_timer();
								uParam0->f_1[iVar0] = func_403(uParam0->f_17[iVar0], 0, 0);
								ui::set_blip_display(uParam0->f_1[iVar0], 2);
								if (iParam9)
								{
									func_445(uParam0->f_1[iVar0], uParam0);
								}
							}
						}
						iVar6 = 0;
					}
					else if (ui::does_blip_exist(uParam0->f_1[iVar0]))
					{
						if (((func_441(uParam0->f_17[iVar0], 1) || func_461(uParam0->f_17[iVar0], iParam10)) || iParam12) || (vehicle::is_vehicle_driveable(iParam10, 0) && !ped::is_ped_in_vehicle(player::player_ped_id(), iParam10, 0)))
						{
							if (ui::does_blip_exist(uParam0->f_1[iVar0]))
							{
								ui::remove_blip(&(uParam0->f_1[iVar0]));
								func_453(uVar15[iVar0]);
							}
						}
						else
						{
							if (iParam9)
							{
								func_445(uParam0->f_1[iVar0], uParam0);
							}
							iVar6 = 0;
						}
					}
					else if (vehicle::is_vehicle_driveable(iParam10, 0))
					{
						if (!ped::is_ped_sitting_in_vehicle(uParam0->f_17[iVar0], iParam10))
						{
							if ((entity::is_entity_at_entity(uParam0->f_17[iVar0], iParam10, 20f, 20f, 5f, 0, 1, 0) && !gameplay::is_bit_set(uParam0->f_13, 11)) && !((iParam17 && player::is_player_wanted_level_greater(player::player_id(), 0)) && !ped::is_ped_in_vehicle(player::player_ped_id(), iParam10, 0)))
							{
								if (ped::is_ped_sitting_in_any_vehicle(uParam0->f_17[iVar0]))
								{
									if (!ped::is_ped_in_vehicle(uParam0->f_17[iVar0], iParam10, 0))
									{
										if (!func_441(uParam0->f_17[iVar0], 1))
										{
											if (func_440(uParam0->f_17[iVar0]))
											{
												iVar14 = ai::get_script_task_status(uParam0->f_17[iVar0], 451360105);
												if (iVar14 == 7)
												{
													ai::task_leave_any_vehicle(uParam0->f_17[iVar0], 0, 0);
												}
											}
										}
									}
								}
								else
								{
									if (ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()))
									{
										if ((((!ped::is_ped_jumping_out_of_vehicle(uParam0->f_17[iVar0]) && !ped::is_ped_ragdoll(uParam0->f_17[iVar0])) && !ai::is_ped_getting_up(uParam0->f_17[iVar0])) && !ped::is_ped_getting_into_a_vehicle(uParam0->f_17[iVar0])) && !fire::is_entity_on_fire(iParam10))
										{
											ped::remove_ped_from_group(uParam0->f_17[iVar0]);
										}
									}
									iVar14 = ai::get_script_task_status(uParam0->f_17[iVar0], -1794415470);
									if (iVar14 == 7 && !func_470(uParam0->f_17[iVar0], iParam10))
									{
										if (((((!ped::is_ped_jumping_out_of_vehicle(uParam0->f_17[iVar0]) && !ped::is_ped_jumping_out_of_vehicle(player::player_ped_id())) && !func_459(uParam0->f_17[iVar0], 2f)) && !ped::is_ped_ragdoll(uParam0->f_17[iVar0])) && !ai::is_ped_getting_up(uParam0->f_17[iVar0])) && !fire::is_entity_on_fire(iParam10))
										{
											ped::set_blocking_of_non_temporary_events(uParam0->f_17[iVar0], true);
											if (gameplay::is_bit_set(uParam0->f_13, 10))
											{
												ped::set_ped_max_move_blend_ratio(uParam0->f_17[iVar0], 1f);
											}
											ai::task_enter_vehicle(uParam0->f_17[iVar0], iParam10, 60000, iVar0, 2f, 1, 0);
											ped::set_ped_get_out_upside_down_vehicle(uParam0->f_17[iVar0], 0);
										}
									}
									else if (ped::is_ped_in_vehicle(player::player_ped_id(), iParam10, 0))
									{
										uParam0->f_1[iVar0] = func_403(uParam0->f_17[iVar0], 0, 0);
										ui::set_blip_display(uParam0->f_1[iVar0], 2);
										iVar6 = 0;
									}
								}
							}
							else if (!ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()))
							{
								if (func_468(uParam0, uParam0->f_17[iVar0], fParam8, iParam11))
								{
									if (!ped::is_ped_ragdoll(uParam0->f_17[iVar0]) && !ai::is_ped_getting_up(uParam0->f_17[iVar0]))
									{
										iVar14 = ai::get_script_task_status(uParam0->f_17[iVar0], -1794415470);
										if (iVar14 == 7)
										{
											ai::clear_ped_tasks(uParam0->f_17[iVar0]);
										}
										ped::set_blocking_of_non_temporary_events(uParam0->f_17[iVar0], false);
										ped::set_ped_as_group_member(uParam0->f_17[iVar0], func_443());
									}
								}
							}
						}
						else if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), iParam10))
						{
							if (!ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()))
							{
								if (!gameplay::is_bit_set(uParam0->f_13, 21))
								{
									ped::set_ped_as_group_member(uParam0->f_17[iVar0], func_443());
								}
							}
							else if (gameplay::is_bit_set(uParam0->f_13, 21))
							{
								ped::remove_ped_from_group(uParam0->f_17[iVar0]);
								gameplay::set_bit(&(uParam0->f_13), 21);
							}
						}
						else if (ped::is_ped_group_member(uParam0->f_17[iVar0], func_443()) && !fire::is_entity_on_fire(iParam10))
						{
							ped::remove_ped_from_group(uParam0->f_17[iVar0]);
						}
					}
				}
				else if (ui::does_blip_exist(uParam0->f_1[iVar0]))
				{
					ui::remove_blip(&(uParam0->f_1[iVar0]));
					func_453(uVar15[iVar0]);
				}
			}
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 3)
		{
			if (ui::does_blip_exist(uParam0->f_1[iVar0]))
			{
				iVar7[iVar0] = 1;
				iVar1++;
			}
			iVar0++;
		}
		if (!func_448(uParam0, 2))
		{
			if (iVar1 > 0)
			{
				iVar0 = 0;
				while (iVar0 < 3)
				{
					if (iVar7[iVar0])
					{
						if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
						{
							if (func_465(uParam0->f_17[iVar0]) || entity::is_entity_at_entity(uParam0->f_17[iVar0], player::player_ped_id(), uParam0->f_8, uParam0->f_8, uParam0->f_8, 0, 1, 0))
							{
								iVar1 = (iVar1 - 1);
								iVar7[iVar0] = 0;
							}
						}
					}
					else if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
					{
						if (!entity::is_entity_at_entity(uParam0->f_17[iVar0], player::player_ped_id(), (uParam0->f_8 * 0.85f), (uParam0->f_8 * 0.85f), uParam0->f_8, 0, 1, 0) && !func_465(uParam0->f_17[iVar0]))
						{
						}
					}
					iVar0++;
				}
			}
			iVar5 = gameplay::get_game_timer();
			if ((iVar5 - uParam0->f_11) > 1500 || iVar3 == 1)
			{
				if (iVar1 > 0)
				{
					if (uParam0->f_12 < iVar1)
					{
						if ((iVar1 == iVar3 || (iVar2 + iVar1) == iVar3) && iVar3 > 1)
						{
							if (!gameplay::is_bit_set(uParam0->f_13, 5))
							{
								func_446(uParam0, sParam7, 0);
								gameplay::set_bit(&(uParam0->f_13), 5);
								uParam0->f_12 = iVar1;
							}
							else
							{
								uParam0->f_12 = iVar1;
							}
						}
						else
						{
							iVar0 = 0;
							while (iVar0 < 3)
							{
								if (iVar7[iVar0])
								{
									if (!func_458(iVar0, uParam0))
									{
										if (!gameplay::is_string_null(uVar19[iVar0]))
										{
											if (!gameplay::are_strings_equal(uVar19[iVar0], ""))
											{
												func_456(uParam0, uVar15[iVar0], uVar19[iVar0], 0);
												func_455(iVar0, uParam0);
												uParam0->f_12 = iVar1;
											}
										}
										if (!func_458(iVar0, uParam0))
										{
											func_446(uParam0, uVar15[iVar0], 0);
											func_455(iVar0, uParam0);
											uParam0->f_12 = iVar1;
										}
									}
									else
									{
										uParam0->f_12 = iVar1;
									}
								}
								iVar0++;
							}
						}
					}
				}
				else
				{
					uParam0->f_12 = 0;
				}
			}
		}
		gameplay::clear_bit(&(uParam0->f_13), 10);
		if (iVar6 && !iVar12)
		{
			iVar0 = 0;
			while (iVar0 < 3)
			{
				if (ui::does_blip_exist(uParam0->f_1[iVar0]))
				{
					ui::remove_blip(&(uParam0->f_1[iVar0]));
					func_453(uVar15[iVar0]);
				}
				iVar0++;
			}
			func_453("MORE_SEATS");
			return true;
		}
	}
	return false;
}

void func_455(int iParam0, var uParam1)//Position - 0x4AF52
{
	switch (iParam0)
	{
		case 0:
			gameplay::set_bit(&(uParam1->f_13), 14);
			break;
		
		case 1:
			gameplay::set_bit(&(uParam1->f_13), 15);
			break;
		
		case 2:
			gameplay::set_bit(&(uParam1->f_13), 16);
			break;
	}
}

void func_456(var uParam0, char* sParam1, char* sParam2, int iParam3)//Position - 0x4AF9A
{
	if (!iParam3)
	{
		if (!gameplay::is_string_null(sParam1))
		{
			if (!gameplay::are_strings_equal(sParam1, ""))
			{
				func_457(sParam1, sParam2, 7500, 1);
			}
		}
	}
	uParam0->f_10 = gameplay::get_game_timer();
}

void func_457(char* sParam0, char* sParam1, int iParam2, int iParam3)//Position - 0x4AFD3
{
	iParam3 = iParam3;
	ui::_set_text_entry_2(sParam0);
	ui::_add_text_component_item_string(sParam1);
	ui::_draw_subtitle_timed(iParam2, 1);
}

int func_458(int iParam0, var uParam1)//Position - 0x4AFF2
{
	switch (iParam0)
	{
		case 0:
			return gameplay::is_bit_set(uParam1->f_13, 14);
		
		case 1:
			return gameplay::is_bit_set(uParam1->f_13, 15);
		
		case 2:
			return gameplay::is_bit_set(uParam1->f_13, 16);
		
		default:
	}
	return false;
}

bool func_459(int iParam0, float fParam1)//Position - 0x4B03B
{
	int iVar0;
	
	if (ped::is_ped_in_any_vehicle(iParam0, 0))
	{
		iVar0 = ped::get_vehicle_ped_is_in(iParam0, 0);
		if (!entity::is_entity_dead(iVar0, 0))
		{
			if (entity::get_entity_speed(iVar0) > fParam1)
			{
				return true;
			}
		}
	}
	return false;
}

bool func_460(int iParam0, int iParam1)//Position - 0x4B072
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (!ped::is_ped_group_member(iParam0, func_443()))
		{
			iVar0 = ped::set_exclusive_phone_relationships(iParam0);
			if (vehicle::is_vehicle_driveable(iParam1, 0))
			{
				if (entity::is_entity_at_entity(iParam0, iParam1, (20f + 10f), (20f + 10f), 10f, 0, 1, 0))
				{
					if (iVar0 == iParam1)
					{
						return true;
					}
				}
			}
		}
	}
	return false;
}

bool func_461(int iParam0, int iParam1)//Position - 0x4B0D9
{
	if (!ped::is_ped_injured(iParam0))
	{
		if (entity::does_entity_exist(iParam1))
		{
			if (vehicle::is_vehicle_driveable(iParam1, 0))
			{
				if (ped::is_ped_sitting_in_vehicle(iParam0, iParam1))
				{
					return true;
				}
			}
		}
	}
	return false;
}

void func_462(int iParam0, var uParam1)//Position - 0x4B10E
{
	switch (iParam0)
	{
		case 0:
			gameplay::set_bit(&(uParam1->f_13), 17);
			break;
		
		case 1:
			gameplay::set_bit(&(uParam1->f_13), 18);
			break;
		
		case 2:
			gameplay::set_bit(&(uParam1->f_13), 19);
			break;
	}
}

void func_463(int iParam0, var uParam1)//Position - 0x4B156
{
	switch (iParam0)
	{
		case 0:
			gameplay::clear_bit(&(uParam1->f_13), 17);
			break;
		
		case 1:
			gameplay::clear_bit(&(uParam1->f_13), 18);
			break;
		
		case 2:
			gameplay::clear_bit(&(uParam1->f_13), 19);
			break;
	}
}

int func_464(int iParam0, var uParam1)//Position - 0x4B19E
{
	switch (iParam0)
	{
		case 0:
			return gameplay::is_bit_set(uParam1->f_13, 17);
		
		case 1:
			return gameplay::is_bit_set(uParam1->f_13, 18);
		
		case 2:
			return gameplay::is_bit_set(uParam1->f_13, 19);
		
		default:
	}
	return false;
}

bool func_465(int iParam0)//Position - 0x4B1E7
{
	int iVar0;
	int iVar1;
	
	if (player::is_player_playing(player::player_id()))
	{
		iVar0 = ped::get_vehicle_ped_is_using(player::player_ped_id());
		if (vehicle::is_vehicle_driveable(iVar0, 0))
		{
			if (!ped::is_ped_injured(iParam0))
			{
				iVar1 = ped::get_vehicle_ped_is_using(iParam0);
				if (vehicle::is_vehicle_driveable(iVar1, 0))
				{
					if (iVar0 == iVar1)
					{
						if (entity::is_entity_at_entity(player::player_ped_id(), iParam0, 20f, 20f, 20f, 0, 1, 0) && entity::is_entity_at_entity(iParam0, iVar1, 20f, 20f, 20f, 0, 1, 0))
						{
							return true;
						}
					}
				}
			}
		}
	}
	return false;
}

bool func_466(int iParam0, var uParam1)//Position - 0x4B274
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		if (entity::get_entity_model(iParam0) == joaat("bus") || entity::get_entity_model(iParam0) == joaat("coach"))
		{
			iVar0 = 0;
			iVar1 = 0;
			iVar2 = 0;
			iVar2 = 0;
			while (iVar2 < 3)
			{
				if (!ped::is_ped_injured(uParam1->f_17[iVar2]))
				{
					iVar0++;
				}
				iVar2++;
			}
			iVar3 = vehicle::get_ped_in_vehicle_seat(iParam0, 0, 0);
			if (!ped::is_ped_injured(iVar3))
			{
				if ((iVar3 == uParam1->f_17[0] || iVar3 == uParam1->f_17[1]) || iVar3 == uParam1->f_17[2])
				{
					iVar1++;
				}
			}
			else
			{
				iVar1++;
			}
			iVar4 = vehicle::get_ped_in_vehicle_seat(iParam0, 1, 0);
			if (!ped::is_ped_injured(iVar4))
			{
				if ((iVar4 == uParam1->f_17[0] || iVar4 == uParam1->f_17[1]) || iVar4 == uParam1->f_17[2])
				{
					iVar1++;
				}
			}
			else
			{
				iVar1++;
			}
			iVar5 = vehicle::get_ped_in_vehicle_seat(iParam0, 2, 0);
			if (!ped::is_ped_injured(iVar5))
			{
				if ((iVar5 == uParam1->f_17[0] || iVar5 == uParam1->f_17[1]) || iVar5 == uParam1->f_17[2])
				{
					iVar1++;
				}
			}
			else
			{
				iVar1++;
			}
			if (iVar1 < iVar0)
			{
				return true;
			}
		}
	}
	return false;
}

bool func_467(var uParam0)//Position - 0x4B3D4
{
	int iVar0;
	
	if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
	{
		iVar0 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
		if (func_452(iVar0, uParam0, 0))
		{
			return true;
		}
	}
	return false;
}

bool func_468(var uParam0, int iParam1, float fParam2, int iParam3)//Position - 0x4B403
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam1))
	{
		if (ped::is_ped_sitting_in_any_vehicle(iParam1))
		{
			iVar0 = ped::get_vehicle_ped_is_in(iParam1, 0);
			if (!entity::is_entity_dead(iVar0, 0))
			{
				if (vehicle::is_vehicle_driveable(iVar0, 0))
				{
					if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), iVar0))
					{
						if (func_467(uParam0))
						{
							return true;
						}
					}
					else if (iParam3)
					{
						return true;
					}
				}
				else if (entity::is_entity_at_entity(player::player_ped_id(), iParam1, fParam2, fParam2, 3f, 0, 1, 0))
				{
					return true;
				}
			}
		}
		else if (entity::is_entity_at_entity(player::player_ped_id(), iParam1, fParam2, fParam2, 3f, 0, 1, 0))
		{
			if (!iParam3)
			{
				iVar0 = ped::get_vehicle_ped_is_using(player::player_ped_id());
				if (entity::does_entity_exist(iVar0))
				{
					if (func_452(iVar0, uParam0, 0))
					{
						if (vehicle::is_vehicle_driveable(iVar0, 0))
						{
							if (func_469(iVar0))
							{
								return true;
							}
						}
					}
				}
				else
				{
					return true;
				}
			}
			else
			{
				return true;
			}
		}
	}
	return false;
}

bool func_469(int iParam0)//Position - 0x4B4E1
{
	float fVar0;
	
	if (!entity::is_entity_dead(iParam0, 0))
	{
		fVar0 = entity::get_entity_speed(iParam0);
		if (fVar0 > -0.5f && fVar0 < 0.5f)
		{
			return true;
		}
	}
	return false;
}

bool func_470(int iParam0, int iParam1)//Position - 0x4B519
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (vehicle::is_vehicle_driveable(iParam1, 0))
		{
			iVar0 = ped::get_vehicle_ped_is_using(iParam0);
			if (iVar0 == iParam1)
			{
				return true;
			}
		}
	}
	return false;
}

void func_471(var uParam0)//Position - 0x4B549
{
	int iVar0;
	
	if (!gameplay::is_bit_set(uParam0->f_13, 25))
	{
		if (player::is_player_playing(player::player_id()))
		{
			ped::set_ped_config_flag(player::player_ped_id(), 32, false);
		}
		iVar0 = 0;
		while (iVar0 < 3)
		{
			if (entity::does_entity_exist(uParam0->f_17[iVar0]))
			{
				if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
				{
					ped::set_ped_config_flag(uParam0->f_17[iVar0], 32, false);
					ped::set_ped_config_flag(uParam0->f_17[iVar0], 305, true);
					ped::set_ped_config_flag(uParam0->f_17[iVar0], 268, true);
					ped::set_ped_get_out_upside_down_vehicle(uParam0->f_17[iVar0], 0);
				}
			}
			iVar0++;
		}
		gameplay::set_bit(&(uParam0->f_13), 25);
	}
}

void func_472(var uParam0)//Position - 0x4B5EC
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 3)
	{
		if (entity::does_entity_exist(uParam0->f_17[iVar0]))
		{
			if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
			{
				if (ped::is_ped_sitting_in_any_vehicle(uParam0->f_17[iVar0]))
				{
					ped::set_ped_can_play_ambient_anims(uParam0->f_17[iVar0], 0);
					ped::set_ped_can_play_ambient_base_anims(uParam0->f_17[iVar0], 0);
				}
			}
		}
		iVar0++;
	}
	if (player::is_player_playing(player::player_id()))
	{
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
			{
				ped::set_ped_can_play_ambient_anims(player::player_ped_id(), 0);
				ped::set_ped_can_play_ambient_base_anims(player::player_ped_id(), 0);
			}
		}
	}
}

var func_473()//Position - 0x4B682
{
	var uVar0;
	
	return uVar0;
}

Vector3 func_474()//Position - 0x4B68C
{
	vector3 vVar0;
	
	return vVar0;
}

void func_475(int iParam0)//Position - 0x4B698
{
	gameplay::set_bit(&(iParam0->f_13), 7);
}

void func_476(var uParam0, int iParam1, int iParam2)//Position - 0x4B6A9
{
	char* sVar0;
	
	if (network::network_is_game_in_progress())
	{
		if (gameplay::is_bit_set(Global_2482149.f_4442, 26))
		{
			return;
		}
	}
	if (cam::is_gameplay_hint_active())
	{
		cam::stop_gameplay_hint(iParam2);
		graphics::_stop_screen_effect("FocusIn");
		audio::stop_audio_scene("HINT_CAM_SCENE");
		if (uParam0->f_11)
		{
			graphics::_start_screen_effect("FocusOut", 0, 0);
			audio::play_sound_frontend(-1, "FocusOut", "HintCamSounds", 1);
			uParam0->f_11 = 0;
		}
	}
	cam::set_cinematic_button_active(true);
	uParam0->f_1 = 0;
	*uParam0 = 0;
	uParam0->f_2 = -1;
	uParam0->f_8 = 0;
	uParam0->f_5 = 0;
	uParam0->f_6 = 0;
	sVar0 = iParam1;
	if (gameplay::is_string_null(sVar0))
	{
		if (!network::network_is_game_in_progress())
		{
			sVar0 = "CMN_HINT";
		}
		else
		{
			sVar0 = "FM_IHELP_HNT";
		}
	}
	if (!gameplay::is_string_null(uParam0->f_3))
	{
		if (func_27(uParam0->f_3))
		{
			ui::clear_help(1);
		}
	}
	if (!gameplay::is_string_null(sVar0))
	{
		if (func_27(sVar0))
		{
			ui::clear_help(1);
		}
	}
}

void func_477(var uParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x4B78D
{
	func_478(uParam0, iParam1, sParam2, iParam3, iParam4, iParam5, iParam6);
}

void func_478(var uParam0, int iParam1, char* sParam2, int iParam3, int iParam4, var uParam5, int iParam6)//Position - 0x4B7A7
{
	func_479(uParam0, iParam1, 0f, 0f, 0f, sParam2, iParam3, iParam4, uParam5, iParam6);
}

void func_479(var uParam0, int iParam1, vector3 vParam2, char* sParam5, int iParam6, int iParam7, var uParam8, int iParam9)//Position - 0x4B7C4
{
	if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
	{
		func_476(uParam0, 0, 0);
	}
	uParam0->f_6 = 2;
	func_480(uParam0, iParam1, vParam2, sParam5, iParam6, iParam7, uParam8, iParam9);
}

void func_480(var uParam0, int iParam1, vector3 vParam2, char* sParam5, int iParam6, int iParam7, var uParam8, int iParam9)//Position - 0x4B7FC
{
	int iVar0;
	int iVar1;
	
	if (uParam0->f_1 && cam::is_gameplay_hint_active())
	{
		if (gameplay::get_game_timer() >= (uParam0->f_8 + uParam0->f_9))
		{
			uParam0->f_1 = 0;
		}
	}
	iVar0 = sParam5;
	if (gameplay::is_string_null(iVar0))
	{
		if (!network::network_is_game_in_progress())
		{
			iVar0 = "CMN_HINT";
		}
		else
		{
			iVar0 = "FM_IHELP_HNT";
		}
	}
	if (func_27(iVar0))
	{
		func_497();
	}
	if (func_496(iParam1) && entity::is_entity_visible(iParam1))
	{
		iVar1 = 0;
		if (entity::is_entity_a_ped(iParam1))
		{
			ped::_0x7D7A2E43E74E2EB8(entity::get_ped_index_from_entity_index(iParam1));
			ped::get_ped_flood_invincibility(entity::get_ped_index_from_entity_index(iParam1), 1);
			if (ped::is_tracked_ped_visible(entity::get_ped_index_from_entity_index(iParam1)))
			{
				iVar1 = 1;
			}
		}
		else if (entity::is_entity_a_vehicle(iParam1))
		{
			vehicle::track_vehicle_visibility(entity::get_vehicle_index_from_entity_index(iParam1));
			if (vehicle::is_vehicle_visible(entity::get_vehicle_index_from_entity_index(iParam1)))
			{
				iVar1 = 1;
			}
		}
		else if (entity::is_entity_an_object(iParam1))
		{
			object::track_object_visibility(entity::get_object_index_from_entity_index(iParam1));
			if (object::is_object_visible(entity::get_object_index_from_entity_index(iParam1)))
			{
				iVar1 = 1;
			}
		}
		if (!cam::is_gameplay_hint_active())
		{
			if (func_491(uParam0, iParam7, iParam9, 0))
			{
				func_488(uParam0, iParam1, vParam2, iParam6);
			}
			if (*uParam0)
			{
				*uParam0 = 0;
			}
			else if (uParam0->f_6 == 2)
			{
				if (func_484(iVar0))
				{
					if ((gameplay::is_string_null(uParam0->f_3) && !gameplay::is_string_null(iVar0)) && ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
					{
						if ((iVar1 && !ui::is_help_message_being_displayed()) && uParam8)
						{
							if (!func_27(iVar0))
							{
								func_26(iVar0, -1);
								uParam0->f_3 = iVar0;
								if (gameplay::are_strings_equal("CMN_HINT", iVar0))
								{
									func_483(1);
								}
							}
						}
					}
				}
			}
			else if (func_484(iVar0))
			{
				if (gameplay::is_string_null(uParam0->f_3) && !gameplay::is_string_null(iVar0))
				{
					if (((entity::is_entity_on_screen(iParam1) && iVar1) && !ui::is_help_message_being_displayed()) && uParam8)
					{
						if (!func_27(iVar0))
						{
							func_26(iVar0, -1);
							uParam0->f_3 = iVar0;
							if (gameplay::are_strings_equal("CMN_HINT", iVar0))
							{
								func_483(1);
							}
						}
					}
				}
			}
		}
		else
		{
			if (!gameplay::is_string_null(sParam5))
			{
				if (func_27(sParam5))
				{
					ui::clear_help(1);
				}
			}
			if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
			{
				if (ped::is_ped_in_any_boat(player::player_ped_id()))
				{
					if (cam::_0xEE778F8C7E1142E2(3) == 3 || cam::_0xEE778F8C7E1142E2(3) == 4)
					{
						func_476(uParam0, iVar0, 1);
					}
				}
				else if (ped::is_ped_in_any_heli(player::player_ped_id()))
				{
					if (cam::_0xEE778F8C7E1142E2(6) == 3 || cam::_0xEE778F8C7E1142E2(6) == 4)
					{
						func_476(uParam0, iVar0, 1);
					}
				}
				else if (ped::is_ped_in_any_plane(player::player_ped_id()))
				{
					if (cam::_0xEE778F8C7E1142E2(4) == 3 || cam::_0xEE778F8C7E1142E2(4) == 4)
					{
						func_476(uParam0, iVar0, 1);
					}
				}
				else if (ped::is_ped_in_any_sub(player::player_ped_id()))
				{
					if (cam::_0xEE778F8C7E1142E2(5) == 3 || cam::_0xEE778F8C7E1142E2(5) == 4)
					{
						func_476(uParam0, iVar0, 1);
					}
				}
				else if (ped::is_ped_on_any_bike(player::player_ped_id()))
				{
					if (cam::_0xEE778F8C7E1142E2(2) == 3 || cam::_0xEE778F8C7E1142E2(2) == 4)
					{
						func_476(uParam0, iVar0, 1);
					}
				}
				else if (cam::get_follow_vehicle_cam_view_mode() == 3 || cam::get_follow_vehicle_cam_view_mode() == 4)
				{
					func_476(uParam0, iVar0, 1);
				}
			}
			if (!func_491(uParam0, iParam7, iParam9, 0))
			{
				if ((!*uParam0 && !uParam0->f_1) && !func_482(uParam0))
				{
					func_481(uParam0);
				}
			}
		}
	}
	else
	{
		func_476(uParam0, iVar0, 0);
	}
}

void func_481(var uParam0)//Position - 0x4BB6D
{
	if (func_496(player::player_ped_id()))
	{
		ai::task_clear_look_at(player::player_ped_id());
	}
	if (cam::is_gameplay_hint_active())
	{
		cam::set_cinematic_button_active(true);
		cam::stop_gameplay_hint(0);
		audio::stop_audio_scene("HINT_CAM_SCENE");
		graphics::_stop_screen_effect("FocusIn");
		if (uParam0->f_11)
		{
			graphics::_start_screen_effect("FocusOut", 0, 0);
			audio::play_sound_frontend(-1, "FocusOut", "HintCamSounds", 1);
			uParam0->f_11 = 0;
		}
	}
	uParam0->f_2 = -1;
	*uParam0 = 1;
}

bool func_482(var uParam0)//Position - 0x4BBDB
{
	int iVar0;
	
	if (uParam0->f_2 > 0)
	{
		iVar0 = (uParam0->f_10 / 2);
		if (uParam0->f_2 + iVar0) > gameplay::get_game_timer()
		{
			return true;
		}
	}
	return false;
}

int func_483(int iParam0)//Position - 0x4BC06
{
	switch (Global_35775)
	{
		case 0:
		case 3:
			if (iParam0)
			{
				Global_101553.f_8904.f_100++;
			}
			return Global_101553.f_8904.f_100;
			break;
		
		case 4:
			if (iParam0)
			{
				Global_101553.f_8904.f_101++;
			}
			return Global_101553.f_8904.f_101;
			break;
		
		case 5:
		case 15:
			if (iParam0)
			{
				Global_101553.f_8904.f_102++;
			}
			return Global_101553.f_8904.f_102;
			break;
		
		default:
			break;
	}
	return 3;
}

bool func_484(char* sParam0)//Position - 0x4BCB0
{
	if (!func_485(1, 1, 0))
	{
		if ((!gameplay::is_string_null_or_empty(sParam0) && func_27(sParam0)) || func_27("CMN_HINT"))
		{
			ui::clear_help(1);
		}
		return false;
	}
	switch (Global_35775)
	{
		case 0:
		case 3:
			if (func_483(0) < 3)
			{
				return true;
			}
			break;
		
		case 4:
			if (func_483(0) < 1)
			{
				return true;
			}
			break;
		
		case 5:
		case 15:
			if (func_483(0) < 1)
			{
				return true;
			}
			break;
		
		default:
			break;
	}
	return false;
}

bool func_485(int iParam0, int iParam1, int iParam2)//Position - 0x4BD4A
{
	if (iParam0)
	{
		if (!player::is_player_control_on(player::player_id()))
		{
			return false;
		}
	}
	if (iParam2)
	{
		return true;
	}
	if (streaming::is_player_switch_in_progress())
	{
		return false;
	}
	if (func_487(0))
	{
		return false;
	}
	if (func_486())
	{
		return false;
	}
	if (network::_network_is_text_chat_active())
	{
		return false;
	}
	if (Global_68125)
	{
		return false;
	}
	if (script::_get_number_of_instances_of_streamed_script(joaat("appinternet")) > 0)
	{
		return false;
	}
	if (Global_52997)
	{
		return false;
	}
	if (iParam1)
	{
		if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
		{
			if (ped::is_ped_in_any_boat(player::player_ped_id()))
			{
				if (cam::_0xEE778F8C7E1142E2(3) == 3 || cam::_0xEE778F8C7E1142E2(3) == 4)
				{
					return false;
				}
			}
			else if (ped::is_ped_in_any_heli(player::player_ped_id()))
			{
				if (cam::_0xEE778F8C7E1142E2(6) == 3 || cam::_0xEE778F8C7E1142E2(6) == 4)
				{
					return false;
				}
			}
			else if (ped::is_ped_in_any_plane(player::player_ped_id()))
			{
				if (cam::_0xEE778F8C7E1142E2(4) == 3 || cam::_0xEE778F8C7E1142E2(4) == 4)
				{
					return false;
				}
			}
			else if (ped::is_ped_in_any_sub(player::player_ped_id()))
			{
				if (cam::_0xEE778F8C7E1142E2(5) == 3 || cam::_0xEE778F8C7E1142E2(5) == 4)
				{
					return false;
				}
			}
			else if (ped::is_ped_on_any_bike(player::player_ped_id()))
			{
				if (cam::_0xEE778F8C7E1142E2(2) == 3 || cam::_0xEE778F8C7E1142E2(2) == 4)
				{
					return false;
				}
			}
			else if (cam::get_follow_vehicle_cam_view_mode() == 3 || cam::get_follow_vehicle_cam_view_mode() == 4)
			{
				return false;
			}
			if (cam::is_gameplay_cam_looking_behind())
			{
				return false;
			}
		}
	}
	return true;
}

int func_486()//Position - 0x4BEC6
{
	return gameplay::get_game_timer() <= Global_17290.f_5745 + 100;
}

bool func_487(int iParam0)//Position - 0x4BEDB
{
	if (iParam0 == 1)
	{
		if (Global_14443.f_1 > 3)
		{
			if (gameplay::is_bit_set(Global_2313, 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_14443.f_1 > 3)
	{
		return true;
	}
	return false;
}

void func_488(var uParam0, int iParam1, vector3 vParam2, int iParam5)//Position - 0x4BF35
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	if (entity::is_entity_dead(iParam1, 0))
	{
		func_476(uParam0, 0, 0);
	}
	if (func_74(vParam2, 0f, 0f, 0f, 0))
	{
		if (entity::is_entity_a_ped(iParam1))
		{
			iVar0 = entity::get_ped_index_from_entity_index(iParam1);
			if (!ped::is_ped_in_any_vehicle(iVar0, 0))
			{
				if (ped::is_ped_a_player(iVar0))
				{
					if (!func_489())
					{
						vParam2 = { 0f, 0f, 1f };
					}
				}
				else if (ped::is_ped_male(iVar0))
				{
					vParam2 = { 0f, 0f, 1f };
				}
			}
		}
	}
	cam::set_cinematic_button_active(false);
	iVar1 = uParam0->f_9;
	iVar2 = uParam0->f_10;
	if (iParam5 == 1726668277)
	{
		if (iVar1 < 1500)
		{
			iVar1 = 1500;
		}
		if (iVar2 < 1500)
		{
			iVar2 = 1500;
		}
	}
	cam::set_gameplay_entity_hint(iParam1, vParam2, 1, -1, iVar1, iVar2, iParam5);
	iVar3 = 2048;
	iVar4 = 3;
	ai::task_look_at_entity(player::player_ped_id(), iParam1, -1, iVar3, iVar4);
	graphics::_start_screen_effect("FocusIn", 0, 0);
	audio::start_audio_scene("HINT_CAM_SCENE");
	audio::play_sound_frontend(-1, "FocusIn", "HintCamSounds", 1);
	uParam0->f_11 = 1;
	uParam0->f_8 = gameplay::get_game_timer();
	uParam0->f_1 = 1;
	*uParam0 = 0;
}

int func_489()//Position - 0x4C042
{
	return func_490(player::player_id());
}

bool func_490(int iParam0)//Position - 0x4C052
{
	if (entity::get_entity_model(player::get_player_ped(iParam0)) == joaat("mp_f_freemode_01"))
	{
		return true;
	}
	return false;
}

bool func_491(var uParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4C071
{
	if (uParam0->f_1)
	{
		if (gameplay::get_game_timer() >= (uParam0->f_8 + uParam0->f_9))
		{
			uParam0->f_1 = 0;
		}
	}
	switch (uParam0->f_5)
	{
		case 0:
			uParam0->f_7 = 0;
			if (uParam0->f_6 == 0)
			{
				if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
				{
					if (func_495(iParam1, iParam2, iParam3))
					{
						uParam0->f_4 = gameplay::get_game_timer();
						uParam0->f_5 = 1;
						uParam0->f_7 = 1;
					}
				}
				else if (func_494(iParam1, iParam2, iParam3))
				{
					uParam0->f_4 = gameplay::get_game_timer();
					uParam0->f_5 = 1;
					uParam0->f_7 = 1;
				}
			}
			else if (uParam0->f_6 == 1)
			{
				if (func_494(iParam1, iParam2, iParam3))
				{
					uParam0->f_4 = gameplay::get_game_timer();
					uParam0->f_5 = 1;
					uParam0->f_7 = 1;
				}
			}
			else if (uParam0->f_6 == 2)
			{
				if (func_495(iParam1, iParam2, iParam3))
				{
					uParam0->f_4 = gameplay::get_game_timer();
					uParam0->f_5 = 1;
					uParam0->f_7 = 1;
				}
			}
			if (func_482(uParam0))
			{
				uParam0->f_7 = 1;
				uParam0->f_5 = 4;
			}
			break;
		
		case 1:
			if ((gameplay::get_game_timer() - uParam0->f_4) <= 500)
			{
				if (uParam0->f_6 == 0)
				{
					if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
					{
						if (!func_495(iParam1, iParam2, iParam3))
						{
							uParam0->f_4 = gameplay::get_game_timer();
							uParam0->f_5 = 3;
						}
					}
					else if (!func_494(iParam1, iParam2, iParam3))
					{
						uParam0->f_4 = gameplay::get_game_timer();
						uParam0->f_5 = 3;
					}
				}
				else if (uParam0->f_6 == 1)
				{
					if (!func_494(iParam1, iParam2, iParam3))
					{
						uParam0->f_4 = gameplay::get_game_timer();
						uParam0->f_5 = 3;
					}
				}
				else if (uParam0->f_6 == 2)
				{
					if (!func_495(iParam1, iParam2, iParam3))
					{
						uParam0->f_4 = gameplay::get_game_timer();
						uParam0->f_5 = 3;
					}
				}
			}
			else
			{
				uParam0->f_5 = 2;
			}
			break;
		
		case 2:
			if (uParam0->f_6 == 0)
			{
				if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
				{
					if (!func_495(iParam1, iParam2, iParam3))
					{
						uParam0->f_5 = 0;
					}
				}
				else if (!func_494(iParam1, iParam2, iParam3))
				{
					uParam0->f_5 = 0;
				}
			}
			else if (uParam0->f_6 == 1)
			{
				if (!func_494(iParam1, iParam2, iParam3) || ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
				{
					uParam0->f_5 = 0;
				}
			}
			else if (uParam0->f_6 == 2)
			{
				if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 1) || ai::get_is_task_active(player::player_ped_id(), 2))
				{
					uParam0->f_5 = 0;
				}
				else if (!func_495(iParam1, iParam2, iParam3))
				{
					uParam0->f_5 = 0;
				}
			}
			break;
		
		case 3:
			if ((gameplay::get_game_timer() - uParam0->f_4) > 500)
			{
				if (uParam0->f_6 == 0)
				{
					if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
					{
						if (func_493(iParam1, iParam2, iParam3))
						{
							uParam0->f_5 = 0;
						}
					}
					else if (func_492(iParam1, iParam2, iParam3))
					{
						uParam0->f_5 = 0;
					}
				}
				else if (uParam0->f_6 == 1)
				{
					if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1) || func_492(iParam1, iParam2, iParam3))
					{
						uParam0->f_5 = 0;
					}
				}
				else if (uParam0->f_6 == 2)
				{
					if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 1) || ai::get_is_task_active(player::player_ped_id(), 2))
					{
						uParam0->f_5 = 0;
					}
					else if (func_493(iParam1, iParam2, iParam3))
					{
						uParam0->f_5 = 0;
					}
				}
			}
			break;
		
		case 4:
			if (!func_482(uParam0))
			{
				uParam0->f_5 = 0;
			}
			break;
	}
	if (!func_485(iParam1, iParam2, iParam3))
	{
		uParam0->f_5 = 0;
		uParam0->f_7 = 0;
	}
	if (uParam0->f_7)
	{
		func_497();
		return true;
	}
	else
	{
		return false;
	}
	return false;
}

bool func_492(int iParam0, int iParam1, int iParam2)//Position - 0x4C3DD
{
	if (!func_485(iParam0, iParam1, iParam2))
	{
		return false;
	}
	if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		if (!player::is_player_targetting_anything(player::player_id()))
		{
			controls::disable_control_action(0, 140, 1);
			controls::disable_control_action(0, 80, 1);
			if (controls::is_disabled_control_just_released(0, 80))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_493(int iParam0, int iParam1, int iParam2)//Position - 0x4C42F
{
	if (!func_485(iParam0, iParam1, iParam2))
	{
		return false;
	}
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		controls::disable_control_action(0, 80, 1);
		if (cam::is_follow_vehicle_cam_active())
		{
			if (controls::is_disabled_control_just_released(0, 80))
			{
				cam::set_cinematic_button_active(false);
				return true;
			}
		}
	}
	return false;
}

bool func_494(int iParam0, int iParam1, int iParam2)//Position - 0x4C478
{
	if (!func_485(iParam0, iParam1, iParam2))
	{
		return false;
	}
	if (!ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		if (!player::is_player_targetting_anything(player::player_id()))
		{
			controls::disable_control_action(0, 140, 1);
			controls::disable_control_action(0, 80, 1);
			if (controls::is_disabled_control_pressed(0, 80) && gameplay::get_game_timer() > Global_116)
			{
				return true;
			}
		}
	}
	return false;
}

bool func_495(int iParam0, int iParam1, int iParam2)//Position - 0x4C4D7
{
	if (!func_485(iParam0, iParam1, iParam2))
	{
		return false;
	}
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		controls::disable_control_action(0, 80, 1);
		if (cam::is_follow_vehicle_cam_active())
		{
			if (controls::is_disabled_control_pressed(0, 80) && gameplay::get_game_timer() > Global_116)
			{
				cam::set_cinematic_button_active(false);
				return true;
			}
		}
	}
	return false;
}

bool func_496(int iParam0)//Position - 0x4C52D
{
	if (entity::does_entity_exist(iParam0))
	{
		if (entity::is_entity_a_vehicle(iParam0))
		{
			if (vehicle::is_vehicle_driveable(entity::get_vehicle_index_from_entity_index(iParam0), 0))
			{
				return true;
			}
		}
		else if (entity::is_entity_a_ped(iParam0))
		{
			if (!ped::is_ped_injured(entity::get_ped_index_from_entity_index(iParam0)))
			{
				return true;
			}
		}
		else if (entity::is_entity_an_object(iParam0))
		{
			return true;
		}
	}
	return false;
}

void func_497()//Position - 0x4C588
{
	gameplay::set_bit(&Global_2314, 4);
}

void func_498(char* sParam0, int iParam1, int iParam2)//Position - 0x4C598
{
	iParam2 = iParam2;
	ui::_set_text_entry_2(sParam0);
	ui::_draw_subtitle_timed(iParam1, 1);
}

void func_499(char* sParam0, int iParam1, int iParam2)//Position - 0x4C5B1
{
	iParam2 = iParam2;
	ui::_set_text_entry_2(sParam0);
	ui::_draw_subtitle_timed(iParam1, 0);
}

void func_500(int iParam0)//Position - 0x4C5CA
{
	if (ui::does_blip_exist(iParam0->f_5))
	{
		ui::remove_blip(&(iParam0->f_5));
	}
}

void func_501(int iParam0, int iParam1, int iParam2)//Position - 0x4C5E5
{
	int iVar0;
	
	if (gameplay::is_bit_set(iParam0->f_13, 30))
	{
		iParam1 = true;
	}
	func_500(iParam0);
	iVar0 = 0;
	while (iVar0 < 3)
	{
		if (ui::does_blip_exist(iParam0->f_1[iVar0]))
		{
			ui::remove_blip(&(iParam0->f_1[iVar0]));
		}
		func_502(iVar0, iParam0);
		func_463(iVar0, iParam0);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 31)
	{
		if (iVar0 != 8)
		{
			gameplay::clear_bit(&(iParam0->f_13), iVar0);
			gameplay::clear_bit(&(iParam0->f_14), iVar0);
		}
		iVar0++;
	}
	if (ui::does_blip_exist(*iParam0))
	{
		ui::remove_blip(iParam0);
	}
	iParam0->f_6 = 0;
	iParam0->f_12 = 0;
	iParam0->f_15 = 0;
	iVar0 = 0;
	while (iVar0 < 3)
	{
		if (!ped::is_ped_injured(iParam0->f_17[iVar0]))
		{
			ped::set_ped_can_play_ambient_anims(iParam0->f_17[iVar0], 1);
			ped::set_ped_can_play_ambient_base_anims(iParam0->f_17[iVar0], 1);
			if (iParam2)
			{
				ped::set_ped_config_flag(iParam0->f_17[iVar0], 32, true);
				ped::set_ped_config_flag(iParam0->f_17[iVar0], 305, false);
			}
			ped::set_ped_config_flag(iParam0->f_17[iVar0], 268, false);
			if (iParam1)
			{
				if (ped::is_ped_group_member(iParam0->f_17[iVar0], func_443()) && iParam0->f_17[iVar0] != player::player_ped_id())
				{
					ped::remove_ped_from_group(iParam0->f_17[iVar0]);
				}
			}
			if (!gameplay::is_bit_set(iParam0->f_13, 29))
			{
				ped::set_ped_using_action_mode(iParam0->f_17[iVar0], false, -1, 0);
			}
			iParam0->f_17[iVar0] = 0;
		}
		iVar0++;
	}
	if (player::is_player_playing(player::player_id()))
	{
		ped::set_ped_can_play_ambient_anims(player::player_ped_id(), 1);
		ped::set_ped_can_play_ambient_base_anims(player::player_ped_id(), 1);
	}
	if (player::is_player_playing(player::player_id()))
	{
		if (iParam2)
		{
			ped::set_ped_config_flag(player::player_ped_id(), 32, true);
		}
	}
	iParam0->f_21 = 0;
}

void func_502(int iParam0, var uParam1)//Position - 0x4C796
{
	switch (iParam0)
	{
		case 0:
			gameplay::clear_bit(&(uParam1->f_13), 14);
			break;
		
		case 1:
			gameplay::clear_bit(&(uParam1->f_13), 15);
			break;
		
		case 2:
			gameplay::clear_bit(&(uParam1->f_13), 16);
			break;
	}
}

int func_503(int iParam0, vector3 vParam1, vector3 vParam4, int iParam7, var uParam8, char* sParam9, char* sParam10, int iParam11, int iParam12, int iParam13, int iParam14)//Position - 0x4C7DE
{
	return func_504(iParam0, vParam1, vParam4, iParam7, uParam8, 0, 0, sParam9, sParam10, sParam10, sParam10, sParam10, iParam11, iParam12, iParam13, iParam14);
}

int func_504(int iParam0, vector3 vParam1, vector3 vParam4, int iParam7, var uParam8, int iParam9, int iParam10, char* sParam11, char* sParam12, char* sParam13, char* sParam14, char* sParam15, int iParam16, int iParam17, int iParam18, int iParam19)//Position - 0x4C80C
{
	return func_437(iParam0, vParam1, vParam4, func_474(), func_474(), iParam7, 1, uParam8, iParam9, iParam10, 0, sParam11, sParam12, sParam13, sParam14, sParam15, func_473(), iParam16, iParam17, func_473(), 0, 0, iParam18, iParam19, 0, 0, 0, 1, 1065353216);
}

void func_505(int iParam0, var uParam1)//Position - 0x4C859
{
	iParam0->f_21 = uParam1;
	if (!gameplay::is_bit_set(iParam0->f_13, 26))
	{
		gameplay::set_bit(&(iParam0->f_13), 26);
	}
}

void func_506(int iParam0, int iParam1)//Position - 0x4C87F
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	float fVar8;
	float fVar9;
	float fVar10;
	float fVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	vector3 vVar16;
	vector3 vVar19;
	int iVar22;
	vector3 vVar23;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	
	iVar0 = (iParam1 - iParam0);
	if (Local_688[0 /*7*/] != iParam0 && Local_688[iVar0 /*7*/] != iParam1)
	{
		iVar2 = 0;
		iVar1 = 0;
		while (iVar1 < Local_688)
		{
			if (iVar1 <= iVar0)
			{
				Local_688[iVar1 /*7*/] = (iParam0 + iVar2);
				Local_688[iVar1 /*7*/].f_1 = 1;
				Local_688[iVar1 /*7*/].f_2 = 0;
				Local_688[iVar1 /*7*/].f_3 = 0;
				Local_688[iVar1 /*7*/].f_4 = 0;
				Local_688[iVar1 /*7*/].f_5 = 0;
				Local_688[iVar1 /*7*/].f_6 = 0f;
				iVar2++;
			}
			else
			{
				Local_688[iVar1 /*7*/].f_1 = 0;
			}
			iVar1++;
		}
	}
	iVar3 = 0;
	while (iVar3 < Local_688)
	{
		if (Local_688[iVar3 /*7*/].f_1)
		{
			switch (Local_688[iVar3 /*7*/])
			{
				case 6:
					if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 1))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					else
					{
						Local_688[iVar3 /*7*/].f_2 = 0;
					}
					break;
				
				case 8:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 30f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 7:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (player::get_player_wanted_level(player::player_id()) != 0)
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 9:
					if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0) && !ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (ped::is_ped_in_vehicle(Local_1071[2 /*14*/], Local_1450[0 /*2*/], 0) || ped::is_ped_getting_into_a_vehicle(Local_1071[2 /*14*/]))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
						else
						{
							Local_688[iVar3 /*7*/].f_2 = 0;
						}
					}
					break;
				
				case 10:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
							{
								if (func_255(player::player_ped_id(), Local_1450[0 /*2*/], 1) < 8f)
								{
									Local_688[iVar3 /*7*/].f_4++;
								}
							}
							break;
						
						case 1:
							Local_688[iVar3 /*7*/].f_2 = 0;
							if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
							{
								if (func_255(player::player_ped_id(), Local_1450[0 /*2*/], 1) > 12f)
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
							break;
					}
					break;
				
				case 11:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (func_285(6) && !func_285(9))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 12:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0) && ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
						{
							if (ped::get_vehicle_ped_is_using(player::player_ped_id()) != ped::get_vehicle_ped_is_using(Local_1071[2 /*14*/]))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 13:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0) && ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
						{
							if (ped::get_vehicle_ped_is_using(player::player_ped_id()) == ped::get_vehicle_ped_is_using(Local_1071[2 /*14*/]))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 14:
					if (!vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					else
					{
						Local_688[iVar3 /*7*/].f_2 = 0;
					}
					break;
				
				case 15:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (func_285(13))
							{
								Local_688[iVar3 /*7*/].f_2 = 0;
								Local_688[iVar3 /*7*/].f_4++;
							}
							break;
						
						case 1:
							if (func_284(13))
							{
								Local_688[iVar3 /*7*/].f_4 = 0;
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
							break;
					}
					break;
				
				case 16:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (func_285(13))
							{
								Local_688[iVar3 /*7*/].f_4++;
							}
							break;
						
						case 1:
							if (func_284(13))
							{
								Local_688[iVar3 /*7*/].f_4++;
								Local_688[iVar3 /*7*/].f_2 = 0;
							}
							break;
						
						case 2:
							if (func_285(13))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
								Local_688[iVar3 /*7*/].f_4 = 1;
							}
							break;
					}
					break;
				
				case 17:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (func_285(10) || func_285(12))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
								Local_688[iVar3 /*7*/].f_4++;
							}
							break;
						
						case 1:
							if (func_284(10) && func_284(12))
							{
								Local_688[iVar3 /*7*/].f_2 = 0;
								Local_688[iVar3 /*7*/].f_4 = 0;
							}
							break;
					}
					break;
				
				case 18:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (func_285(7))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
								Local_688[iVar3 /*7*/].f_4++;
							}
							break;
						
						case 1:
							if (func_284(7))
							{
								Local_688[iVar3 /*7*/].f_2 = 0;
								Local_688[iVar3 /*7*/].f_4 = 0;
							}
							break;
					}
					break;
				
				case 3:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (func_284(7))
							{
								if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
								{
									if (entity::is_entity_at_coord(player::player_ped_id(), -1141.093f, -1576.759f, 3.3048f, Global_19, true, true, 0) && entity::is_entity_at_coord(Local_1071[2 /*14*/], -1141.093f, -1576.759f, 3.3048f, Global_19, false, true, 0))
									{
										if (func_285(13))
										{
											Local_688[iVar3 /*7*/].f_4 = 1;
										}
										else
										{
											Local_688[iVar3 /*7*/].f_2 = 1;
											Local_688[iVar3 /*7*/].f_4 = 2;
										}
									}
								}
							}
							break;
						
						case 1:
							if (func_284(7))
							{
								if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
								{
									if (func_332(Local_1450[0 /*2*/], 4f, 1, 1056964608, 0, 1, 0))
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
								}
							}
							else
							{
								player::set_player_control(player::player_id(), true, 0);
								Local_688[iVar3 /*7*/].f_4 = 0;
							}
							break;
					}
					break;
				
				case 4:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_123(player::player_ped_id(), -17.2f, -1083.98f, 25.66f, 1) < 6f || func_123(player::player_ped_id(), -39.38f, -1078.51f, 25.65f, 1) < 6f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 103:
					if (func_285(132))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					else
					{
						Local_688[iVar3 /*7*/].f_2 = 0;
					}
					break;
				
				case 19:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (!ped::is_ped_in_group(Local_1071[2 /*14*/]))
						{
							if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 4f)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 20:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_123(player::player_ped_id(), -58.0408f, -1114.981f, 25.4358f, 1) > 200f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 21:
					Local_688[iVar3 /*7*/].f_4 = Local_688[iVar3 /*7*/].f_5;
					Local_688[iVar3 /*7*/].f_5 = 0;
					iVar4 = vehicle::get_closest_vehicle(-36.5853f, -1101.474f, 26.3444f, 5f, joaat("bjxl"), 4);
					if (vehicle::is_vehicle_driveable(iVar4, 0))
					{
						Local_688[iVar3 /*7*/].f_5 = (Local_688[iVar3 /*7*/].f_5 + entity::get_entity_health(iVar4));
					}
					iVar4 = vehicle::get_closest_vehicle(-46.2594f, -1097.839f, 26.3444f, 5f, joaat("schwarzer"), 2);
					if (vehicle::is_vehicle_driveable(iVar4, 0))
					{
						Local_688[iVar3 /*7*/].f_5 = (Local_688[iVar3 /*7*/].f_5 + entity::get_entity_health(iVar4));
					}
					iVar4 = vehicle::get_closest_vehicle(-50.08f, -1094.463f, 26.0671f, 5f, joaat("tailgater"), 4);
					if (vehicle::is_vehicle_driveable(iVar4, 0))
					{
						Local_688[iVar3 /*7*/].f_5 = (Local_688[iVar3 /*7*/].f_5 + entity::get_entity_health(iVar4));
					}
					iVar4 = vehicle::get_closest_vehicle(-37.4128f, -1088.562f, 26.0671f, 5f, joaat("tailgater"), 4);
					if (vehicle::is_vehicle_driveable(iVar4, 0))
					{
						Local_688[iVar3 /*7*/].f_5 = (Local_688[iVar3 /*7*/].f_5 + entity::get_entity_health(iVar4));
					}
					iVar4 = vehicle::get_closest_vehicle(-41.4259f, -1099.648f, 26.0534f, 5f, joaat("baller"), 2);
					if (vehicle::is_vehicle_driveable(iVar4, 0))
					{
						Local_688[iVar3 /*7*/].f_5 = (Local_688[iVar3 /*7*/].f_5 + entity::get_entity_health(iVar4));
					}
					if (ped::get_ped_reset_flag(player::player_ped_id(), 316))
					{
						if (entity::is_entity_in_angled_area(player::player_ped_id(), -59.3578f, -1092.62f, 24.91771f, -27.43074f, -1104.519f, 28.7117f, 16.25f, 0, true, 0))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					if (entity::does_entity_exist(Local_1071[3 /*14*/]))
					{
						if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
						{
							if (ai::get_script_task_status(Local_1071[3 /*14*/], 993674639) == 2)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					if (func_123(player::player_ped_id(), -39.62799f, -1099.24f, 25.25259f, 1) < 150.5f)
					{
						if (gameplay::has_bullet_impacted_in_area(-39.62799f, -1099.24f, 25.25259f, 26.5f, 1, 1))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
						if (fire::is_explosion_in_sphere(-1, -39.62799f, -1099.24f, 25.25259f, 26.5f))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
						if (func_123(player::player_ped_id(), -39.62799f, -1099.24f, 25.25259f, 1) < 26.5f)
						{
							if (ped::is_ped_shooting(player::player_ped_id()))
							{
								iVar5 = joaat("weapon_unarmed");
								weapon::get_current_ped_weapon(player::player_ped_id(), &iVar5, 1);
								switch (iVar5)
								{
									case joaat("weapon_bat"):
									case joaat("weapon_crowbar"):
									case joaat("weapon_hammer"):
									case joaat("weapon_knife"):
									case joaat("weapon_nightstick"):
									case joaat("weapon_petrolcan"):
									case joaat("weapon_stickybomb"):
									case joaat("weapon_grenade"):
									case joaat("weapon_bottle"):
										break;
									
									default:
										Local_688[iVar3 /*7*/].f_2 = 1;
										break;
									}
								}
							}
					}
					if (Local_688[iVar3 /*7*/].f_4 != 0)
					{
						if (gameplay::absi((Local_688[iVar3 /*7*/].f_4 - Local_688[iVar3 /*7*/].f_5)) < 200 && gameplay::absi((Local_688[iVar3 /*7*/].f_4 - Local_688[iVar3 /*7*/].f_5)) > 10)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 22:
					if (func_248(0, 1))
					{
						Local_688[iVar3 /*7*/].f_2 = 0;
						if ((((func_285(12) || func_285(10)) || func_285(13)) || func_285(11)) || func_285(19))
						{
							if (func_284(23))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 23:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (entity::is_entity_in_angled_area(player::player_ped_id(), -1073.54f, -1666.452f, 3.12654f, -1120.646f, -1599.496f, 21.71115f, 51f, 0, true, 0) || entity::is_entity_in_angled_area(player::player_ped_id(), -1061.875f, -1671.454f, 1.990468f, -1073.057f, -1659.667f, 21.70061f, 40.0625f, 0, true, 0))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 24:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_285(23))
						{
							if (Local_688[iVar3 /*7*/].f_5 == 0)
							{
								Local_688[iVar3 /*7*/].f_5 = gameplay::get_game_timer() + 4000;
							}
							else if (gameplay::get_game_timer() > Local_688[iVar3 /*7*/].f_5)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
						else
						{
							Local_688[iVar3 /*7*/].f_5 = 0;
						}
					}
					break;
				
				case 26:
					if (!ped::is_ped_injured(Local_1071[22 /*14*/]))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 25:
					iVar6 = vehicle::_0xB2D06FAEDE65B577();
					if (entity::does_entity_exist(iVar6))
					{
						if (vehicle::is_vehicle_driveable(iVar6, 0))
						{
							if (entity::is_entity_in_angled_area(iVar6, -1130.124f, -1589.143f, 2.21117f, -1067.226f, -1677.451f, 9.856807f, 33.0625f, 0, true, 0) || entity::is_entity_in_angled_area(iVar6, -1127f, -1586.847f, 2.961027f, -1132.134f, -1590.443f, 7.032865f, 1.4375f, 0, true, 0))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 27:
					if (func_248(12, 14))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 2:
					if (((func_285(15) || func_285(16)) || func_285(17)) || func_285(18))
					{
						if (iLocal_48)
						{
							if (func_278())
							{
								cLocal_127 = { func_329() };
								if (!func_328(&cLocal_127))
								{
									vLocal_133 = { func_252() };
								}
								func_253();
								iLocal_48 = 1;
							}
							iLocal_48 = 0;
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
						else
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 31:
					if (((func_285(15) || func_285(16)) || func_285(17)) || func_285(18))
					{
						if (iLocal_48)
						{
							if (func_278())
							{
								cLocal_127 = { func_329() };
								if (!func_328(&cLocal_127))
								{
									vLocal_133 = { func_252() };
								}
								func_253();
								iLocal_48 = 1;
							}
							iLocal_48 = 0;
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
						else
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 47:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0))
							{
								iVar7 = ped::get_vehicle_ped_is_in(Local_1071[2 /*14*/], 0);
								if (vehicle::is_vehicle_driveable(iVar7, 0))
								{
									if (entity::get_entity_speed(iVar7) < 1f)
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
								}
							}
						}
					}
					break;
				
				case 48:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1127.09f, -1586.754f, 4.648631f, -1132.246f, -1590.347f, 6.931557f, 1.875f, 0, true, 0) || entity::is_entity_in_angled_area(player::player_ped_id(), -1129.465f, -1588.787f, 2.398673f, -1109.243f, -1619.052f, 5.773672f, 25.75f, 0, true, 0))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 49:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1129.465f, -1588.787f, 2.398673f, -1109.243f, -1619.052f, 5.773672f, 25.75f, 0, true, 0))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 50:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1112.394f, -1602.36f, 2.913989f, -1119.863f, -1607.588f, 6.320321f, 2.1875f, 0, true, 0))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 51:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						switch (Local_688[iVar3 /*7*/].f_4)
						{
							case 0:
								if (entity::does_entity_exist(Local_1071[3 /*14*/]))
								{
									if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
									{
										if (ai::get_script_task_status(Local_1071[3 /*14*/], 242628503) == 1)
										{
											Local_688[iVar3 /*7*/].f_4++;
										}
									}
									else
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
								}
								break;
							
							case 1:
								if (!ped::is_ped_injured(Local_1071[3 /*14*/]))
								{
									if (entity::has_entity_been_damaged_by_entity(Local_1071[3 /*14*/], player::player_ped_id(), 1) || ai::get_script_task_status(Local_1071[3 /*14*/], 242628503) == 2)
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
								}
								else
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								break;
							}
					}
					break;
				
				case 53:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if ((func_285(51) || ai::get_script_task_status(Local_1071[2 /*14*/], -2017877118) == 2) || (func_285(50) && ped::is_ped_ragdoll(Local_1071[2 /*14*/])))
							{
								if (!func_248(1, 19))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					break;
				
				case 52:
					if (func_410(3, 21))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 54:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1127.827f, -1584.665f, 1.898767f, -1133.975f, -1589.041f, 5.765991f, 4.25f, 0, true, 0))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 55:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (entity::is_entity_in_angled_area(player::player_ped_id(), -1130.124f, -1589.143f, 2.21117f, -1067.226f, -1677.451f, 9.856807f, 33.0625f, 0, true, 0) || (entity::is_entity_in_angled_area(player::player_ped_id(), -1127f, -1586.847f, 2.961027f, -1132.134f, -1590.443f, 7.032865f, 1.4375f, 0, true, 0) && player::is_player_climbing(player::player_id())))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 56:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						switch (Local_688[iVar3 /*7*/].f_4)
						{
							case 0:
								if (func_251("AR2_BU03"))
								{
									unk1::_0x293220DA1B46CEBC(0.5f, 4f, 3);
									Local_688[iVar3 /*7*/].f_4++;
								}
								break;
							
							case 1:
								if (!func_251("AR2_BU03"))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								break;
							}
					}
					break;
				
				case 57:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_251("AR2_AN04"))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 58:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1125.593f, -1595.336f, 3.075586f, -1117.488f, -1606.94f, 7.334638f, 6.875f, 0, true, 0))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 59:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (entity::is_entity_in_angled_area(player::player_ped_id(), -1129.233f, -1587.624f, 4.697088f, -1128.406f, -1588.807f, 7.398672f, 6.875f, 0, true, 0))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 60:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) < 50f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 61:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1111.919f, -1608.71f, 2.749123f, -1107.077f, -1615.715f, 6.152816f, 22.4375f, 0, true, 0))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 62:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0) && !ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (func_255(Local_1450[1 /*2*/], Local_1071[2 /*14*/], 1) < 20f)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 63:
					if (func_410(9, 27) && !func_248(9, 27))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					else
					{
						Local_688[iVar3 /*7*/].f_2 = 0;
					}
					break;
				
				case 64:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
					{
						switch (Local_688[iVar3 /*7*/].f_4)
						{
							case 0:
								if (vehicle::is_playback_going_on_for_vehicle(Local_1450[1 /*2*/]))
								{
									Local_688[iVar3 /*7*/].f_4++;
								}
								break;
							
							case 1:
								if (func_514(Local_1450[1 /*2*/], player::player_ped_id(), &fLocal_2228, 15f, 2.4f, 0f) && entity::is_entity_in_angled_area(player::player_ped_id(), -1131.669f, -1587.066f, 0.197111f, -1083.117f, -1654.017f, 6.711177f, 18.4375f, 0, true, 0))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								break;
							}
					}
					break;
				
				case 77:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
					{
						if (entity::get_entity_speed(Local_1450[1 /*2*/]) < 1f)
						{
							if (func_255(Local_1450[1 /*2*/], player::player_ped_id(), 1) < 3f)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					else
					{
						Local_688[iVar3 /*7*/].f_1 = 0;
					}
					break;
				
				case 78:
					if (func_285(82))
					{
						if (!func_285(78))
						{
							fVar8 = gameplay::absf((entity::get_entity_heading(player::player_ped_id()) - func_431(entity::get_entity_coords(player::player_ped_id(), 1), -1067.156f, -1665.472f, 3.55f, 1)));
							if (fVar8 > 180f)
							{
								fVar8 = gameplay::absf((fVar8 - 360f));
							}
							fVar9 = (60f - fVar8);
							if (fVar9 < 0f)
							{
								fVar9 = 0f;
							}
							fVar9 = (fVar9 * 0.0433f);
							if (entity::is_entity_in_angled_area(player::player_ped_id(), -1068.671f, -1664.627f, 3.04523f, -1066.667f, -1667.668f, 5.714818f, (1.4f + fVar9), 0, true, 0) && fVar8 < 90f)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 79:
					if (func_285(82))
					{
						if (!func_285(79))
						{
							fVar10 = gameplay::absf((entity::get_entity_heading(player::player_ped_id()) - func_431(entity::get_entity_coords(player::player_ped_id(), 1), -1064.92f, -1668.621f, 3.546325f, 1)));
							if (fVar10 > 180f)
							{
								fVar10 = gameplay::absf((fVar10 - 360f));
							}
							fVar11 = (60f - fVar10);
							if (fVar11 < 0f)
							{
								fVar11 = 0f;
							}
							fVar11 = (fVar11 * 0.0433f);
							if (entity::is_entity_in_angled_area(player::player_ped_id(), -1064.56f, -1670.807f, 3.018936f, -1066.667f, -1667.668f, 5.714818f, (1.4f + fVar11), 0, true, 0) && fVar10 < 90f)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 80:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (func_285(72))
					{
						if (entity::is_entity_in_angled_area(player::player_ped_id(), -1071.81f, -1677.795f, 1.909934f, -1075.768f, -1672.886f, 5.900661f, 3.25f, 0, true, 0))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 81:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_285(61))
						{
							if (ped::is_ped_ragdoll(player::player_ped_id()))
							{
								if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
								{
									if (func_255(player::player_ped_id(), Local_1450[1 /*2*/], 1) < 5f)
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
								}
							}
						}
					}
					break;
				
				case 65:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_248(13, 31))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 66:
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (func_285(53) || func_248(3, 21))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 67:
					if (func_248(1, 19))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 68:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
					{
						if (vehicle::is_playback_going_on_for_vehicle(Local_1450[1 /*2*/]))
						{
							if (func_248(11, 29))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 84:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (func_251("ARM2_OUT4") || func_435(33))
							{
								Local_688[iVar3 /*7*/].f_4++;
							}
							break;
						
						case 1:
							if (func_435(21) || func_435(33))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
							break;
					}
					break;
				
				case 69:
					if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
					{
						if (vehicle::is_vehicle_alarm_activated(Local_1450[6 /*2*/]))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					if (vehicle::is_vehicle_driveable(Local_1450[2 /*2*/], 0))
					{
						if (vehicle::is_vehicle_alarm_activated(Local_1450[2 /*2*/]))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 70:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1098.358f, -1632.922f, -0.601469f, -1065.555f, -1675.355f, 24.1932f, 19.75f, 0, true, 0))
								{
									if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 20f)
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
										Local_688[iVar3 /*7*/].f_4++;
									}
								}
							}
							break;
						
						case 1:
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) < 15f)
								{
									Local_688[iVar3 /*7*/].f_2 = 0;
									Local_688[iVar3 /*7*/].f_4 = 0;
								}
							}
							break;
					}
					break;
				
				case 71:
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (!Local_688[iVar3 /*7*/].f_2)
						{
							if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 20f)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
						else if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) < 15f)
						{
							Local_688[iVar3 /*7*/].f_2 = 0;
						}
					}
					break;
				
				case 72:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (func_123(Local_1071[2 /*14*/], -1071.49f, -1672.068f, 3.709275f, 1) < 48.75f)
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 73:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (func_123(Local_1071[2 /*14*/], -1073.109f, -1670.528f, 3.468073f, 1) < 12.8125f)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 74:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
						{
							if (vehicle::is_playback_going_on_for_vehicle(Local_1450[1 /*2*/]))
							{
								if (vehicle::get_time_position_in_recording(Local_1450[1 /*2*/]) > 5000f)
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					break;
				
				case 82:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						switch (Local_688[iVar3 /*7*/].f_4)
						{
							case 0:
								if (func_285(73))
								{
									if (func_302("ARM2_INS07b", 0, 0))
									{
										Local_688[iVar3 /*7*/].f_5 = gameplay::get_game_timer() + 1000;
										Local_688[iVar3 /*7*/].f_4++;
									}
								}
								break;
							
							case 1:
								if (gameplay::get_game_timer() > Local_688[iVar3 /*7*/].f_5)
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								break;
							}
					}
					break;
				
				case 83:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (func_285(73))
							{
								Local_688[iVar3 /*7*/].f_5 = gameplay::get_game_timer() + 12000;
								Local_688[iVar3 /*7*/].f_4++;
							}
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_688[iVar3 /*7*/].f_5)
							{
								if (!func_285(75) && !func_285(76))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								else
								{
									Local_688[iVar3 /*7*/].f_2 = 0;
								}
							}
							break;
					}
					break;
				
				case 44:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (ai::get_script_task_status(Local_1071[2 /*14*/], 1435919172) == 7 || ai::get_script_task_status(Local_1071[2 /*14*/], 1435919172) == 3)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 43:
					if (entity::does_entity_exist(Local_1450[1 /*2*/]))
					{
						if (entity::does_entity_exist(Local_1071[4 /*14*/]))
						{
							if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
							{
								if (entity::has_entity_been_damaged_by_entity(Local_1071[4 /*14*/], player::player_ped_id(), 1))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								if (!entity::is_entity_dead(Local_1450[1 /*2*/], 0))
								{
									if (ped::get_vehicle_ped_is_using(player::player_ped_id()) == Local_1450[1 /*2*/])
									{
										if (((vehicle::get_vehicle_door_angle_ratio(Local_1450[1 /*2*/], 1) > 0f || vehicle::get_vehicle_door_angle_ratio(Local_1450[1 /*2*/], 0) > 0f) || vehicle::get_vehicle_door_angle_ratio(Local_1450[1 /*2*/], 2) > 0f) || vehicle::get_vehicle_door_angle_ratio(Local_1450[1 /*2*/], 3) > 0f)
										{
											Local_688[iVar3 /*7*/].f_2 = 1;
										}
									}
								}
								if (ped::is_ped_in_combat(Local_1071[4 /*14*/], player::player_ped_id()))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
							else
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
						if (iLocal_1067 < 7)
						{
							if (entity::does_entity_exist(Local_1071[5 /*14*/]))
							{
								if (!ped::is_ped_injured(Local_1071[5 /*14*/]))
								{
									if (entity::has_entity_been_damaged_by_entity(Local_1071[5 /*14*/], player::player_ped_id(), 1))
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
									if (!entity::is_entity_dead(Local_1450[1 /*2*/], 0))
									{
										if (!ped::is_ped_in_vehicle(Local_1071[5 /*14*/], Local_1450[1 /*2*/], 0))
										{
											if (func_255(player::player_ped_id(), Local_1071[5 /*14*/], 1) < 10f)
											{
												Local_688[iVar3 /*7*/].f_2 = 1;
											}
										}
									}
									if (ped::is_ped_in_combat(Local_1071[5 /*14*/], player::player_ped_id()))
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
								}
								else
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
						if (!entity::is_entity_dead(Local_1450[1 /*2*/], 0))
						{
							if (entity::has_entity_been_damaged_by_entity(Local_1450[1 /*2*/], player::player_ped_id(), 1))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
							if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
							{
								if (ped::is_ped_on_specific_vehicle(player::player_ped_id(), Local_1450[1 /*2*/]) || entity::is_entity_touching_entity(player::player_ped_id(), Local_1450[1 /*2*/]))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					break;
				
				case 28:
					if (entity::does_entity_exist(Local_1450[1 /*2*/]))
					{
						if (entity::does_entity_exist(Local_1071[4 /*14*/]))
						{
							if (!ped::is_ped_injured(Local_1071[4 /*14*/]))
							{
								if (entity::has_entity_been_damaged_by_entity(Local_1071[4 /*14*/], player::player_ped_id(), 1))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								if (!entity::is_entity_dead(Local_1450[1 /*2*/], 0))
								{
									if (ped::get_vehicle_ped_is_using(player::player_ped_id()) == Local_1450[1 /*2*/])
									{
										if (((vehicle::get_vehicle_door_angle_ratio(Local_1450[1 /*2*/], 1) > 0f || vehicle::get_vehicle_door_angle_ratio(Local_1450[1 /*2*/], 0) > 0f) || vehicle::get_vehicle_door_angle_ratio(Local_1450[1 /*2*/], 2) > 0f) || vehicle::get_vehicle_door_angle_ratio(Local_1450[1 /*2*/], 3) > 0f)
										{
											Local_688[iVar3 /*7*/].f_2 = 1;
										}
									}
								}
								if (ped::is_ped_in_combat(Local_1071[4 /*14*/], player::player_ped_id()))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
							else
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
						if (iLocal_1067 < 7)
						{
							if (entity::does_entity_exist(Local_1071[5 /*14*/]))
							{
								if (!ped::is_ped_injured(Local_1071[5 /*14*/]))
								{
									if (entity::has_entity_been_damaged_by_entity(Local_1071[5 /*14*/], player::player_ped_id(), 1))
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
									if (!entity::is_entity_dead(Local_1450[1 /*2*/], 0))
									{
										if (!ped::is_ped_in_vehicle(Local_1071[5 /*14*/], Local_1450[1 /*2*/], 0))
										{
											if (func_255(player::player_ped_id(), Local_1071[5 /*14*/], 1) < 10f)
											{
												Local_688[iVar3 /*7*/].f_2 = 1;
											}
										}
									}
									if (ped::is_ped_in_combat(Local_1071[5 /*14*/], player::player_ped_id()))
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
								}
								else
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
						if (!entity::is_entity_dead(Local_1450[1 /*2*/], 0))
						{
							if (entity::has_entity_been_damaged_by_entity(Local_1450[1 /*2*/], player::player_ped_id(), 1))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
							if (vehicle::is_vehicle_driveable(Local_1450[1 /*2*/], 0))
							{
								if (ped::is_ped_on_specific_vehicle(player::player_ped_id(), Local_1450[1 /*2*/]))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					break;
				
				case 85:
					if (func_285(43))
					{
						if (Local_688[iVar3 /*7*/].f_5 == 0)
						{
							Local_688[iVar3 /*7*/].f_5 = gameplay::get_game_timer() + 4000;
						}
						else if (gameplay::get_game_timer() > Local_688[iVar3 /*7*/].f_5)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 88:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1123.673f, -1597.103f, 3.37023f, -1118.749f, -1604.27f, 6.259631f, 10.25f, 0, true, 0))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 46:
					iVar12 = vehicle::_0xB2D06FAEDE65B577();
					if (entity::does_entity_exist(iVar12))
					{
						if (vehicle::is_vehicle_driveable(iVar12, 0))
						{
							if (entity::is_entity_in_angled_area(iVar12, -1130.124f, -1589.143f, 2.21117f, -1067.226f, -1677.451f, 9.856807f, 33.0625f, 0, true, 0) || entity::is_entity_in_angled_area(iVar12, -1127f, -1586.847f, 2.961027f, -1132.134f, -1590.443f, 7.032865f, 1.4375f, 0, true, 0))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					if (ped::is_ped_shooting(player::player_ped_id()))
					{
						if (func_285(55))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
						else if (gameplay::is_bullet_in_angled_area(-1067.56f, -1677.333f, 1.841916f, -1130.009f, -1588.986f, 11.97924f, 33.125f, 1))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					iVar13 = 0;
					if (player::get_player_target_entity(player::player_id(), &iVar13))
					{
						if (entity::is_entity_a_ped(iVar13))
						{
							iVar14 = entity::get_ped_index_from_entity_index(iVar13);
							if (!ped::is_ped_injured(iVar14))
							{
								if (iVar14 == Local_1071[4 /*14*/] || iVar14 == Local_1071[5 /*14*/])
								{
									if (gameplay::absf(func_512(iVar14, player::player_ped_id())) < 70f)
									{
										if (func_255(iVar14, player::player_ped_id(), 1) < 30f)
										{
											Local_688[iVar3 /*7*/].f_2 = 1;
										}
									}
								}
							}
						}
					}
					if (player::get_entity_player_is_free_aiming_at(player::player_id(), &iVar13))
					{
						if (entity::is_entity_a_ped(iVar13))
						{
							iVar15 = entity::get_ped_index_from_entity_index(iVar13);
							if (!ped::is_ped_injured(iVar15))
							{
								if (iVar15 == Local_1071[4 /*14*/] || iVar15 == Local_1071[5 /*14*/])
								{
									if (gameplay::absf(func_512(iVar15, player::player_ped_id())) < 70f)
									{
										if (func_255(iVar15, player::player_ped_id(), 1) < 30f)
										{
											Local_688[iVar3 /*7*/].f_2 = 1;
										}
									}
								}
							}
						}
					}
					break;
				
				case 75:
					if (iLocal_1054 == 1)
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 76:
					if (iLocal_1054 == 2)
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 91:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_251("ARM2_GET"))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 92:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						switch (Local_688[iVar3 /*7*/].f_4)
						{
							case 0:
								if (func_251("ARM2_ATTACK"))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								break;
							
							case 1:
								if (!func_251("ARM2_ATTACK"))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								break;
							}
					}
					break;
				
				case 94:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!object::does_pickup_exist(iLocal_1982) || func_510(player::player_ped_id(), 0))
						{
							if (object::does_pickup_exist(iLocal_1982))
							{
								ui::remove_blip(&iLocal_2030);
							}
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 93:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!entity::is_entity_in_angled_area(player::player_ped_id(), -1074.78f, -1676.197f, 3.137903f, -1080.753f, -1680.328f, 5.637903f, 7f, 0, true, 0))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 95:
					if (!Local_688[iVar3 /*7*/].f_2 == 1)
					{
						switch (Local_688[iVar3 /*7*/].f_4)
						{
							case 0:
								if (func_302("ARM2_INS09", 0, 0))
								{
									Local_688[iVar3 /*7*/].f_4++;
								}
								break;
							
							case 1:
								if (!func_302("ARM2_INS09", 0, 0))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								break;
							}
					}
					break;
				
				case 96:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!entity::is_entity_in_angled_area(player::player_ped_id(), -1066.281f, -1677.048f, -0.401059f, -1076.836f, -1663.628f, 5.898672f, 27.8125f, 0, true, 0))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 97:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (func_509() <= 1)
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 98:
					if (!ped::is_ped_injured(Local_1071[11 /*14*/]))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 99:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (func_509() == 0)
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 100:
					if ((((entity::does_entity_exist(Local_1071[9 /*14*/]) && ped::is_ped_injured(Local_1071[9 /*14*/])) && (entity::does_entity_exist(Local_1071[9 /*14*/]) && ped::is_ped_injured(Local_1071[10 /*14*/]))) && (entity::does_entity_exist(Local_1071[9 /*14*/]) && ped::is_ped_injured(Local_1071[11 /*14*/]))) && (entity::does_entity_exist(Local_1071[9 /*14*/]) && ped::is_ped_injured(Local_1071[12 /*14*/])))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 101:
					break;
				
				case 102:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[13 /*14*/]))
						{
							switch (Local_688[iVar3 /*7*/].f_4)
							{
								case 0:
									if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
									{
										if (ped::is_ped_shooting(Local_1071[13 /*14*/]))
										{
											Local_688[iVar3 /*7*/].f_2 = 1;
										}
									}
									break;
							}
						}
						else if (entity::does_entity_exist(Local_1071[13 /*14*/]))
						{
							Local_688[iVar3 /*7*/].f_2 = 0;
						}
					}
					else if (ped::is_ped_injured(Local_1071[13 /*14*/]))
					{
						Local_688[iVar3 /*7*/].f_2 = 0;
					}
					break;
				
				case 108:
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (ped::is_ped_in_cover(Local_1071[2 /*14*/], 0))
						{
							if (func_123(Local_1071[2 /*14*/], -1085.646f, -1655.878f, 3.687f, 1) < 3f)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 105:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (entity::does_entity_exist(Local_1071[13 /*14*/]))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 107:
					if (func_410(10, 55))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 106:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (func_285(107))
					{
						if (func_123(player::player_ped_id(), -1085.263f, -1656.034f, 3.3987f, 1) < 1.5f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 104:
					if (func_410(12, 58))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 109:
					if (!ped::is_ped_injured(Local_1071[13 /*14*/]))
					{
						vVar16 = { entity::get_entity_coords(Local_1071[13 /*14*/], 1) };
						if (vVar16.y < 6.6f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 110:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_285(105))
						{
							if ((((ped::is_ped_injured(Local_1071[13 /*14*/]) && ped::is_ped_injured(Local_1071[9 /*14*/])) && ped::is_ped_injured(Local_1071[10 /*14*/])) && ped::is_ped_injured(Local_1071[11 /*14*/])) && ped::is_ped_injured(Local_1071[12 /*14*/]))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 111:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						vVar19 = { entity::get_entity_coords(player::player_ped_id(), 1) };
						if (!entity::is_entity_in_angled_area(player::player_ped_id(), -1062.196f, -1672.283f, 2.088862f, -1090.901f, -1644.2f, 17.33617f, 48.3125f, 0, true, 0) || vVar19.y > 6f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 112:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_285(110))
						{
							if (entity::does_entity_exist(Local_1071[16 /*14*/]))
							{
								if (ped::is_ped_injured(Local_1071[16 /*14*/]))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					break;
				
				case 113:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_285(110))
						{
							if (entity::does_entity_exist(Local_1071[18 /*14*/]))
							{
								if (ped::is_ped_injured(Local_1071[18 /*14*/]))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					break;
				
				case 114:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_285(110))
						{
							if (entity::does_entity_exist(Local_1071[19 /*14*/]))
							{
								if (ped::is_ped_injured(Local_1071[19 /*14*/]))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					break;
				
				case 115:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (((entity::does_entity_exist(Local_1071[21 /*14*/]) && entity::does_entity_exist(Local_1071[18 /*14*/])) && entity::does_entity_exist(Local_1071[19 /*14*/])) && entity::does_entity_exist(Local_1071[16 /*14*/]))
						{
							if (((ped::is_ped_injured(Local_1071[21 /*14*/]) && ped::is_ped_injured(Local_1071[18 /*14*/])) && ped::is_ped_injured(Local_1071[19 /*14*/])) && ped::is_ped_injured(Local_1071[16 /*14*/]))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 121:
					if (func_285(110) && func_285(115))
					{
						if (entity::does_entity_exist(Local_1071[22 /*14*/]) && entity::does_entity_exist(Local_1071[24 /*14*/]))
						{
							if (ped::is_ped_injured(Local_1071[22 /*14*/]) && ped::is_ped_injured(Local_1071[24 /*14*/]))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 122:
					if (entity::does_entity_exist(Local_1071[22 /*14*/]) && entity::does_entity_exist(Local_1071[24 /*14*/]))
					{
						iVar22 = Local_688[iVar3 /*7*/].f_5;
						Local_688[iVar3 /*7*/].f_5 = 0;
						if (!ped::is_ped_injured(Local_1071[22 /*14*/]))
						{
							Local_688[iVar3 /*7*/].f_5++;
						}
						if (!ped::is_ped_injured(Local_1071[24 /*14*/]))
						{
							Local_688[iVar3 /*7*/].f_5++;
						}
						if (Local_688[iVar3 /*7*/].f_5 < iVar22)
						{
							if (Local_688[iVar3 /*7*/].f_4 != 0)
							{
								if ((gameplay::get_game_timer() - Local_688[iVar3 /*7*/].f_4) < 400)
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
						if (fire::is_explosion_in_sphere(-1, -1107.71f, -1629.62f, 3.57f, 5f))
						{
							Local_688[iVar3 /*7*/].f_4 = gameplay::get_game_timer();
						}
					}
					break;
				
				case 116:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_285(110))
						{
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1083.303f, -1651.25f, 1.586172f, -1086.857f, -1646.736f, 6.398672f, 5.625f, 0, true, 0))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					break;
				
				case 117:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
							{
								if (vehicle::is_playback_going_on_for_vehicle(Local_1450[6 /*2*/]))
								{
									Local_688[iVar3 /*7*/].f_5 = gameplay::get_game_timer() + 1000;
									Local_688[iVar3 /*7*/].f_4++;
								}
							}
							break;
						
						case 1:
							if (gameplay::get_game_timer() > Local_688[iVar3 /*7*/].f_5)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
								Local_688[iVar3 /*7*/].f_4++;
							}
							break;
					}
					break;
				
				case 118:
					if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0) && !ped::is_ped_injured(Local_1071[20 /*14*/]))
					{
						if (func_508(Local_1071[20 /*14*/], Local_1450[6 /*2*/], -1))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					else
					{
						Local_688[iVar3 /*7*/].f_2 = 0;
					}
					break;
				
				case 119:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						switch (Local_688[iVar3 /*7*/].f_4)
						{
							case 0:
								if (func_285(111))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								else if (func_285(115))
								{
									if (func_285(118))
									{
										if (func_285(117))
										{
											Local_688[iVar3 /*7*/].f_4++;
											Local_688[iVar3 /*7*/].f_5 = gameplay::get_game_timer() + 2000;
										}
									}
									else
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
								}
								break;
							
							case 1:
								if (gameplay::get_game_timer() > Local_688[iVar3 /*7*/].f_5)
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								break;
							}
					}
					break;
				
				case 120:
					if (func_285(115))
					{
						if (func_435(56))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 135:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_287(17, 58))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 134:
				case 41:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (iLocal_1067 == 9)
							{
								Local_688[iVar3 /*7*/].f_4++;
							}
							else if (func_285(117))
							{
								Local_688[iVar3 /*7*/].f_4++;
							}
							break;
						
						case 1:
							if (iLocal_1066)
							{
								if (Local_688[iVar3 /*7*/].f_5 != 0)
								{
									if (gameplay::get_game_timer() > Local_688[iVar3 /*7*/].f_5)
									{
										if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
										{
											if (!vehicle::is_playback_going_on_for_vehicle(Local_1450[6 /*2*/]))
											{
												Local_688[iVar3 /*7*/].f_2 = 1;
											}
										}
									}
								}
							}
							if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
							{
								if (!vehicle::is_playback_going_on_for_vehicle(Local_1450[6 /*2*/]))
								{
									vVar23 = { 0f, 0f, 0f };
									fire::get_closest_fire_pos(&vVar23, entity::get_entity_coords(Local_1450[6 /*2*/], 1));
									if (func_123(Local_1450[6 /*2*/], vVar23, 1) < 3f)
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
								}
								else if (Local_688[iVar3 /*7*/].f_5 == 0)
								{
									Local_688[iVar3 /*7*/].f_5 = gameplay::get_game_timer() + 7000;
								}
							}
							break;
					}
					break;
				
				case 123:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1119.603f, -1625.578f, 3.098616f, -1101.016f, -1613.749f, 11.68734f, 7.5f, 0, true, 0) || !entity::is_entity_in_angled_area(player::player_ped_id(), -1105.941f, -1627.412f, 2.648617f, -1083.993f, -1658.702f, 7.711175f, 25.9375f, 0, true, 0))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 124:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_507(6, 46))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 125:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						iVar26 = joaat("weapon_unarmed");
						if (weapon::get_current_ped_weapon(player::player_ped_id(), &iVar26, 1))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 126:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (ped::is_ped_in_cover(player::player_ped_id(), 0))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 127:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
						{
							if (vehicle::is_playback_going_on_for_vehicle(Local_1450[6 /*2*/]))
							{
								if (vehicle::get_time_position_in_recording(Local_1450[6 /*2*/]) > 4503f)
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					break;
				
				case 128:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (vehicle::is_vehicle_driveable(Local_1450[6 /*2*/], 0))
						{
							if (ped::is_ped_in_vehicle(player::player_ped_id(), Local_1450[6 /*2*/], 1))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
						else
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 129:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (object::does_pickup_exist(iLocal_1981))
							{
								Local_688[iVar3 /*7*/].f_4++;
							}
							break;
						
						case 1:
							if (object::has_pickup_been_collected(iLocal_1981))
							{
								Local_688[iVar3 /*7*/].f_4++;
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
							break;
					}
					break;
				
				case 131:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (object::does_pickup_exist(iLocal_1981))
					{
						if (func_123(player::player_ped_id(), object::get_pickup_coords(iLocal_1981), 1) < 10f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 132:
					if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 40f)
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 133:
					if (func_285(121))
					{
						Local_688[iVar3 /*7*/].f_2 = 0;
						if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 17f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 30:
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (entity::is_entity_in_angled_area(Local_1071[2 /*14*/], -1126.621f, -1585.546f, 2.137227f, -1132.657f, -1589.75f, 15.00997f, 1.625f, 0, true, 0))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 32:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								if (ped::is_ped_in_group(Local_1071[2 /*14*/]))
								{
									Local_688[iVar3 /*7*/].f_4++;
									Local_688[iVar3 /*7*/].f_2 = 0;
								}
							}
							break;
						
						case 1:
							if (!ped::is_ped_in_group(Local_1071[2 /*14*/]))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
								Local_688[iVar3 /*7*/].f_4 = 0;
							}
							break;
					}
					break;
				
				case 33:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
						{
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) < 25f)
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					break;
				
				case 34:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (player::is_player_playing(player::player_id()) && vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
					{
						if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
						{
							if (entity::is_entity_at_entity(player::player_ped_id(), Local_1450[4 /*2*/], (entity::get_entity_speed(player::player_ped_id()) * 4.5f), (entity::get_entity_speed(player::player_ped_id()) * 4.5f), 20f, 0, 1, 0))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 35:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
						{
							if (ped::is_ped_being_jacked(Local_1071[8 /*14*/]))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 36:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) > 20f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 38:
					if (!entity::is_entity_in_angled_area(player::player_ped_id(), -1068.804f, -1672.535f, 1.794577f, -1129.459f, -1588.839f, 18.69813f, 42.9375f, 0, true, 0))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 39:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							Local_688[iVar3 /*7*/].f_5 = gameplay::get_game_timer() + 15000;
							Local_688[iVar3 /*7*/].f_4++;
							break;
						
						case 1:
							if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
							{
								Local_688[iVar3 /*7*/].f_4++;
							}
							else if (gameplay::get_game_timer() > Local_688[iVar3 /*7*/].f_5)
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
							break;
					}
					break;
				
				case 40:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (func_285(30) && func_285(38))
						{
							if (((func_285(13) || func_285(14)) || func_285(36)) || func_285(12))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 37:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (!ped::is_ped_injured(Local_1071[8 /*14*/]))
						{
							if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
							{
								if (!ped::is_ped_in_vehicle(Local_1071[8 /*14*/], Local_1450[4 /*2*/], 0))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
						else
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 145:
					if (!Local_688[iVar3 /*7*/].f_2)
					{
						if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
						{
							if (ped::is_ped_in_vehicle(player::player_ped_id(), Local_1450[4 /*2*/], 0))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 154:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
					{
						if (ped::is_ped_in_vehicle(player::player_ped_id(), Local_1450[4 /*2*/], 0))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 155:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
					{
						if (func_123(Local_1450[4 /*2*/], -12.81f, -1402.07f, 28.32f, 1) > 18f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 138:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0))
						{
							iVar27 = ped::get_vehicle_ped_is_using(Local_1071[2 /*14*/]);
							if (ped::is_ped_sitting_in_vehicle(Local_1071[2 /*14*/], iVar27))
							{
								if (func_365(Local_1071[2 /*14*/], iVar27) != -1)
								{
									if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), iVar27))
									{
										if (func_365(player::player_ped_id(), iVar27) == -1)
										{
											Local_688[iVar3 /*7*/].f_2 = 1;
										}
									}
								}
							}
						}
					}
					break;
				
				case 139:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0))
						{
							iVar28 = ped::get_vehicle_ped_is_using(Local_1071[2 /*14*/]);
							if (ped::is_ped_sitting_in_vehicle(Local_1071[2 /*14*/], iVar28))
							{
								if (func_365(Local_1071[2 /*14*/], iVar28) != -1)
								{
									if (!ped::is_ped_in_vehicle(player::player_ped_id(), iVar28, 0))
									{
										Local_688[iVar3 /*7*/].f_2 = 1;
									}
								}
							}
						}
					}
					break;
				
				case 141:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 1))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 143:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (ped::is_ped_in_any_vehicle(Local_1071[2 /*14*/], 0))
						{
							iVar29 = ped::get_vehicle_ped_is_in(Local_1071[2 /*14*/], 0);
							if (ped::is_ped_sitting_in_vehicle(Local_1071[2 /*14*/], iVar29))
							{
								if (func_365(Local_1071[2 /*14*/], iVar29) == -1)
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
							if (Local_1450[8 /*2*/] != iVar29)
							{
								if (entity::does_entity_exist(Local_1450[8 /*2*/]))
								{
									if (!entity::is_entity_a_mission_entity(Local_1450[8 /*2*/]) || !entity::does_entity_belong_to_this_script(Local_1450[8 /*2*/], 0))
									{
										entity::set_entity_as_mission_entity(Local_1450[8 /*2*/], true, 1);
									}
									entity::set_vehicle_as_no_longer_needed(&(Local_1450[8 /*2*/]));
								}
								Local_1450[8 /*2*/] = iVar29;
								if (vehicle::is_vehicle_driveable(Local_1450[8 /*2*/], 0))
								{
									if (!entity::is_entity_a_mission_entity(Local_1450[8 /*2*/]) || !entity::does_entity_belong_to_this_script(Local_1450[8 /*2*/], 0))
									{
										entity::set_entity_as_mission_entity(Local_1450[8 /*2*/], true, 1);
									}
									vehicle::_0xBE5C1255A1830FF5(Local_1450[8 /*2*/], 1);
								}
							}
						}
					}
					break;
				
				case 146:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (ped::is_ped_getting_into_a_vehicle(Local_1071[2 /*14*/]))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
						if (((ai::get_script_task_status(Local_1071[2 /*14*/], 355471868) == 1 || ai::get_script_task_status(Local_1071[2 /*14*/], 355471868) == 2) || ai::get_script_task_status(Local_1071[2 /*14*/], -1794415470) == 1) || ai::get_script_task_status(Local_1071[2 /*14*/], -1794415470) == 2)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 144:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if ((ai::get_script_task_status(Local_1071[2 /*14*/], 1435919172) == 7 || ai::get_script_task_status(Local_1071[2 /*14*/], 1435919172) == 3) || ai::get_script_task_status(Local_1071[2 /*14*/], -1146898486) == 1)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 142:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (entity::does_entity_exist(Local_1450[8 /*2*/]))
					{
						if (!vehicle::is_vehicle_driveable(Local_1450[8 /*2*/], 0) || func_248(7, 118))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
						else if (entity::is_entity_upsidedown(Local_1450[8 /*2*/]))
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
						if (vehicle::is_vehicle_driveable(Local_1450[8 /*2*/], 0))
						{
							iVar30 = entity::get_entity_model(Local_1450[8 /*2*/]);
							if (vehicle::is_this_model_a_plane(iVar30) || vehicle::is_this_model_a_heli(iVar30))
							{
								Local_688[iVar3 /*7*/].f_2 = 1;
							}
						}
					}
					break;
				
				case 147:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						iVar31 = ped::get_vehicle_ped_is_trying_to_enter(Local_1071[2 /*14*/]);
					}
					iVar32 = iVar31;
					if (vehicle::is_vehicle_driveable(iVar32, 0))
					{
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							if (Local_688[iVar3 /*7*/].f_6 == 0f)
							{
								Local_688[iVar3 /*7*/].f_6 = func_255(Local_1071[2 /*14*/], iVar32, 1);
							}
							else
							{
								if (func_255(Local_1071[2 /*14*/], iVar32, 1) > Local_688[iVar3 /*7*/].f_6)
								{
									Local_688[iVar3 /*7*/].f_5 = (Local_688[iVar3 /*7*/].f_5 + system::floor((system::timestep() * 1000f)));
									Local_688[iVar3 /*7*/].f_6 = func_255(Local_1071[2 /*14*/], iVar32, 1);
								}
								else
								{
									Local_688[iVar3 /*7*/].f_6 = func_255(Local_1071[2 /*14*/], iVar32, 1);
									Local_688[iVar3 /*7*/].f_5 = 0;
								}
								if (Local_688[iVar3 /*7*/].f_5 > 4000)
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
						}
					}
					else
					{
						Local_688[iVar3 /*7*/].f_6 = 0f;
						Local_688[iVar3 /*7*/].f_5 = 0;
					}
					break;
				
				case 148:
					if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
					{
						switch (Local_688[iVar3 /*7*/].f_4)
						{
							case 0:
								vehicle::add_vehicle_upsidedown_check(Local_1450[4 /*2*/]);
								Local_688[iVar3 /*7*/].f_4++;
								break;
							
							case 1:
								if (entity::is_entity_upsidedown(Local_1450[4 /*2*/]))
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
								break;
							}
					}
					break;
				
				case 149:
					Local_688[iVar3 /*7*/].f_2 = 0;
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (func_255(Local_1071[2 /*14*/], player::player_ped_id(), 1) > 10f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 150:
					if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
					{
						if (func_255(Local_1071[2 /*14*/], player::player_ped_id(), 1) > 100f)
						{
							Local_688[iVar3 /*7*/].f_2 = 1;
						}
					}
					break;
				
				case 151:
					if (func_434(1, 26))
					{
						Local_688[iVar3 /*7*/].f_2 = 1;
					}
					break;
				
				case 153:
					switch (Local_688[iVar3 /*7*/].f_4)
					{
						case 0:
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								if (func_123(Local_1071[2 /*14*/], -4.03f, -1401.22f, 28.28f, 1) < 5f)
								{
									Local_688[iVar3 /*7*/].f_4++;
								}
							}
							break;
						
						case 1:
							if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
							{
								Local_688[iVar3 /*7*/].f_2 = 0;
								if (func_255(player::player_ped_id(), Local_1071[2 /*14*/], 1) < 8f)
								{
									Local_688[iVar3 /*7*/].f_2 = 1;
								}
							}
							break;
					}
					break;
				}
		}
		iVar3++;
	}
}

bool func_507(int iParam0, int iParam1)//Position - 0x505A1
{
	if (Local_140[iParam0 /*6*/] == iParam1)
	{
		if (Local_140[iParam0 /*6*/].f_2 == 1)
		{
			return true;
		}
	}
	return false;
}

bool func_508(int iParam0, int iParam1, int iParam2)//Position - 0x505C5
{
	if (!entity::is_entity_dead(iParam0, 0) && !entity::is_entity_dead(iParam1, 0))
	{
		if (ped::is_ped_sitting_in_vehicle(iParam0, iParam1))
		{
			if (vehicle::get_ped_in_vehicle_seat(iParam1, iParam2, 0) == iParam0)
			{
				return true;
			}
		}
	}
	return false;
}

int func_509()//Position - 0x50603
{
	int iVar0;
	
	if (iLocal_1063)
	{
		iLocal_1063 = 0;
		iLocal_1064 = 0;
		iVar0 = 0;
		while (iVar0 < Local_1071)
		{
			if (!ped::is_ped_injured(Local_1071[iVar0 /*14*/]))
			{
				if (ped::get_ped_relationship_group_hash(Local_1071[iVar0 /*14*/]) == iLocal_1473)
				{
					iLocal_1064++;
				}
			}
			iVar0++;
		}
	}
	return iLocal_1064;
}

bool func_510(int iParam0, int iParam1)//Position - 0x50658
{
	if (ped::is_ped_injured(iParam0))
	{
		return false;
	}
	if (((((((((((((((((((((((((((((((((((((((((((((func_511(iParam0, joaat("weapon_pistol")) || func_511(iParam0, joaat("weapon_combatpistol"))) || func_511(iParam0, joaat("weapon_appistol"))) || func_511(iParam0, joaat("weapon_snspistol"))) || func_511(iParam0, joaat("weapon_heavypistol"))) || func_511(iParam0, joaat("weapon_marksmanpistol"))) || func_511(iParam0, joaat("weapon_machinepistol"))) || func_511(iParam0, joaat("weapon_microsmg"))) || func_511(iParam0, joaat("weapon_smg"))) || func_511(iParam0, joaat("weapon_combatpdw"))) || func_511(iParam0, joaat("weapon_assaultrifle"))) || func_511(iParam0, joaat("weapon_carbinerifle"))) || func_511(iParam0, joaat("weapon_specialcarbine"))) || func_511(iParam0, joaat("weapon_advancedrifle"))) || func_511(iParam0, joaat("weapon_bullpuprifle"))) || func_511(iParam0, joaat("weapon_gusenberg"))) || func_511(iParam0, joaat("weapon_musket"))) || func_511(iParam0, joaat("weapon_compactrifle"))) || func_511(iParam0, joaat("weapon_mg"))) || func_511(iParam0, joaat("weapon_combatmg"))) || func_511(iParam0, joaat("weapon_pumpshotgun"))) || func_511(iParam0, joaat("weapon_sawnoffshotgun"))) || func_511(iParam0, joaat("weapon_assaultshotgun"))) || func_511(iParam0, joaat("weapon_heavyshotgun"))) || func_511(iParam0, joaat("weapon_dbshotgun"))) || func_511(iParam0, joaat("weapon_sniperrifle"))) || func_511(iParam0, joaat("weapon_heavysniper"))) || func_511(iParam0, joaat("weapon_remotesniper"))) || func_511(iParam0, joaat("weapon_marksmanrifle"))) || func_511(iParam0, joaat("weapon_grenadelauncher"))) || func_511(iParam0, joaat("weapon_grenadelauncher_smoke"))) || func_511(iParam0, joaat("weapon_rpg"))) || func_511(iParam0, joaat("weapon_minigun"))) || func_511(iParam0, joaat("weapon_hominglauncher"))) || func_511(iParam0, joaat("weapon_stungun"))) || func_511(iParam0, joaat("weapon_petrolcan"))) || func_511(iParam0, joaat("weapon_digiscanner"))) || func_511(iParam0, joaat("weapon_firework"))) || func_511(iParam0, joaat("weapon_flaregun"))) || func_511(iParam0, -1810795771)) || func_511(iParam0, 419712736)) || func_511(iParam0, -853065399)) || func_511(iParam0, 125959754)) || func_511(iParam0, 317205821)) || func_511(iParam0, -1121678507)) || func_511(iParam0, -1169823560))
	{
		return true;
	}
	if (iParam1)
	{
		if ((((func_511(iParam0, joaat("weapon_grenade")) || func_511(iParam0, joaat("weapon_smokegrenade"))) || func_511(iParam0, joaat("weapon_stickybomb"))) || func_511(iParam0, joaat("weapon_molotov"))) || func_511(iParam0, joaat("weapon_proxmine")))
		{
			return true;
		}
	}
	return false;
}

bool func_511(int iParam0, int iParam1)//Position - 0x509D8
{
	if (!ped::is_ped_injured(iParam0))
	{
		if (weapon::is_weapon_valid(iParam1))
		{
			if (weapon::has_ped_got_weapon(iParam0, iParam1, 0))
			{
				if (weapon::get_ammo_in_ped_weapon(iParam0, iParam1) > 0)
				{
					return true;
				}
			}
		}
	}
	return false;
}

float func_512(int iParam0, int iParam1)//Position - 0x50A10
{
	if (entity::does_entity_exist(iParam0) && entity::does_entity_exist(iParam1))
	{
		return func_513(iParam0, entity::get_entity_coords(iParam1, 0));
	}
	return 0f;
}

float func_513(int iParam0, vector3 vParam1)//Position - 0x50A3D
{
	float fVar0;
	
	if (entity::does_entity_exist(iParam0))
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			fVar0 = func_431(entity::get_entity_coords(iParam0, 0), vParam1, 1);
			return (fVar0 - entity::get_entity_heading(iParam0));
		}
	}
	return 0f;
}

bool func_514(int iParam0, int iParam1, float fParam2, float fParam3, float fParam4, float fParam5)//Position - 0x50A7B
{
	vector3 vVar0;
	float fVar3;
	
	if (!entity::is_entity_dead(iParam0, 0) && !entity::is_entity_dead(iParam1, 0))
	{
		vVar0 = { entity::get_entity_forward_vector(iParam0) };
		vVar0 = { func_118(vVar0) };
		vVar0 = { vVar0 * Vector(fParam3, fParam3, fParam3) };
		if (entity::is_entity_in_angled_area(iParam1, entity::get_entity_coords(iParam0, 1), entity::get_entity_coords(iParam0, 1) + vVar0, fParam4, 0, false, 0))
		{
			fVar3 = func_255(iParam0, iParam1, 1);
			if ((fVar3 / entity::get_entity_speed(iParam0)) < fParam5 || fParam5 <= 0f)
			{
				return true;
			}
		}
	}
	return false;
}

bool func_515()//Position - 0x50B07
{
	func_506(5, 45);
	unk1::_0xAF66DCEE6609B148();
	func_330(0, 92, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(1, 93, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(2, 94, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(3, 95, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(4, 96, 0, 2, 40, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(5, 98, 0, 2, 35, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(6, 99, 0, 2, 37, 5, 35, 1, 0, 1, 0, 1, 0);
	func_330(7, 100, 0, 3, 37, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(8, 101, 0, 2, 6, 5, 37, 1, 0, 1, 0, 1, 0);
	func_330(9, 102, 0, 2, 37, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(10, 103, 1, 3, 30, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(11, 104, 0, 2, 30, 5, 36, 4, 33, 1, 0, 1, 0);
	func_330(12, 97, 0, 2, 34, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(13, 15, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(14, 8, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(15, 81, 0, 2, 41, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(16, 88, 0, 2, 37, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(17, 89, 0, 2, 38, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(18, 90, 0, 2, 6, 1, 0, 1, 0, 1, 0, 1, 0);
	func_433(0, 19, 0, 0, 1, 0, 1, 0);
	func_433(1, 23, 0, 0, 1, 0, 1, 0);
	func_433(2, 20, 0, 0, 1, 0, 1, 0);
	func_433(3, 21, 2, 6, 1, 0, 1, 0);
	func_433(4, 22, 3, 6, 1, 0, 1, 0);
	func_288(0, 63, 0, 0, 1, 0, 1, 0, 1, 0);
	func_288(1, 1, 0, 0, 1, 0, 1, 0, 1, 0);
	func_288(2, 68, 2, 15, 4, 31, 1, 0, 1, 0);
	func_288(3, 7, 2, 17, 6, 12, 4, 31, 1, 0);
	func_288(4, 64, 2, 16, 4, 31, 1, 0, 1, 0);
	func_288(5, 65, 2, 13, 5, 7, 1, 0, 1, 0);
	func_288(6, 66, 0, 0, 1, 0, 1, 0, 1, 0);
	func_288(7, 67, 2, 39, 1, 0, 1, 0, 1, 0);
	func_249(8, 0, 0, 1, 0);
	func_249(6, 0, 0, 1, 0);
	func_249(9, 0, 0, 1, 0);
	if (func_285(37))
	{
		func_543(9);
		func_476(&uLocal_2230, 0, 0);
		return true;
	}
	return false;
}

bool func_516()//Position - 0x50D79
{
	iLocal_1063 = 1;
	func_506(90, 136);
	func_330(0, 66, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(1, 65, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(2, 54, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(8, 63, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(28, 82, 0, 2, 124, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(29, 83, 0, 2, 117, 4, 120, 4, 127, 1, 0, 1, 0);
	func_330(31, 85, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(32, 86, 0, 2, 128, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(33, 87, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(34, 91, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(3, 52, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_518(7, 53, 3, 52, 2, 98, 1, 0, 1, 0);
	func_518(10, 55, 7, 53, 2, 98, 4, 99, 6, 96);
	func_330(12, 58, 0, 2, 102, 4, 108, 1, 0, 1, 0, 1, 0);
	func_330(13, 56, 0, 2, 106, 4, 107, 1, 0, 1, 0, 1, 0);
	func_330(35, 57, 0, 2, 101, 5, 110, 1, 0, 1, 0, 1, 0);
	func_330(14, 59, 0, 2, 110, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(20, 60, 0, 2, 110, 4, 113, 1, 0, 1, 0, 1, 0);
	func_330(30, 61, 0, 2, 117, 5, 121, 1, 0, 1, 0, 1, 0);
	func_330(27, 62, 0, 2, 121, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(4, 67, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(5, 68, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(6, 69, 0, 2, 92, 4, 97, 6, 96, 1, 0, 1, 0);
	func_330(9, 70, 0, 2, 98, 4, 97, 6, 96, 1, 0, 1, 0);
	func_330(11, 71, 0, 2, 98, 4, 99, 6, 96, 1, 0, 1, 0);
	func_330(15, 72, 0, 2, 109, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(16, 73, 0, 2, 110, 6, 111, 1, 0, 1, 0, 1, 0);
	func_330(17, 74, 0, 2, 110, 4, 112, 6, 111, 1, 0, 1, 0);
	func_330(18, 75, 0, 2, 110, 4, 113, 6, 111, 1, 0, 1, 0);
	func_330(19, 76, 0, 2, 110, 4, 114, 6, 111, 1, 0, 1, 0);
	func_330(21, 77, 0, 2, 110, 6, 111, 1, 0, 1, 0, 1, 0);
	func_330(22, 78, 0, 2, 110, 4, 118, 4, 115, 8, 119, 4, 118);
	func_330(23, 84, 0, 2, 119, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(24, 79, 0, 2, 117, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(25, 80, 0, 2, 118, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(26, 81, 0, 2, 134, 1, 0, 1, 0, 1, 0, 1, 0);
	func_288(2, 43, 3, 94, 1, 0, 1, 0, 1, 0);
	func_288(0, 40, 0, 0, 1, 0, 1, 0, 1, 0);
	func_288(1, 41, 2, 91, 4, 94, 1, 0, 1, 0);
	func_288(3, 42, 2, 94, 5, 93, 4, 95, 1, 0);
	func_288(4, 44, 2, 98, 1, 0, 1, 0, 1, 0);
	func_288(5, 48, 2, 92, 5, 103, 5, 121, 1, 0);
	func_288(6, 46, 2, 104, 5, 101, 5, 109, 5, 130);
	func_288(7, 47, 2, 101, 5, 109, 5, 130, 1, 0);
	func_288(8, 45, 2, 105, 5, 96, 5, 101, 5, 110);
	func_288(9, 49, 2, 101, 4, 108, 1, 0, 1, 0);
	func_288(23, 50, 2, 110, 1, 0, 1, 0, 1, 0);
	func_288(10, 51, 2, 110, 4, 116, 1, 0, 1, 0);
	func_288(11, 52, 2, 112, 5, 113, 1, 0, 1, 0);
	func_288(12, 53, 2, 113, 5, 114, 1, 0, 1, 0);
	func_288(13, 54, 2, 114, 5, 115, 1, 0, 1, 0);
	func_288(14, 55, 2, 117, 1, 0, 1, 0, 1, 0);
	func_288(15, 56, 2, 119, 1, 0, 1, 0, 1, 0);
	func_288(16, 57, 2, 127, 5, 121, 1, 0, 1, 0);
	func_288(17, 58, 2, 121, 5, 133, 1, 0, 1, 0);
	func_288(18, 60, 2, 122, 1, 0, 1, 0, 1, 0);
	func_288(19, 61, 2, 131, 4, 130, 1, 0, 1, 0);
	func_288(20, 62, 2, 132, 5, 121, 1, 0, 1, 0);
	func_288(21, 62, 2, 133, 4, 121, 5, 135, 1, 0);
	func_286(22, 59, 17, 58, 0, 0, 1, 0, 1, 0, 1, 0);
	func_433(0, 11, 0, 0, 1, 0, 1, 0);
	func_433(1, 12, 2, 92, 4, 94, 1, 0);
	func_433(2, 13, 2, 94, 1, 0, 1, 0);
	func_433(3, 15, 2, 125, 4, 126, 1, 0);
	func_433(4, 16, 2, 127, 1, 0, 1, 0);
	func_517(5, 14, 2, 13, 3, 126, 1, 0, 1, 0);
	func_433(6, 8, 3, 135, 1, 0, 1, 0);
	func_433(7, 17, 2, 129, 1, 0, 1, 0);
	func_249(6, 0, 0, 1, 0);
	func_249(9, 0, 0, 1, 0);
	if (func_248(27, 62))
	{
		return true;
	}
	return false;
}

void func_517(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)//Position - 0x51273
{
	if (Local_292[iParam0 /*4*/] != iParam1)
	{
		Local_292[iParam0 /*4*/] = iParam1;
		Local_292[iParam0 /*4*/].f_1 = 0;
		Local_292[iParam0 /*4*/].f_2 = 0;
		Local_292[iParam0 /*4*/].f_3 = 0;
	}
	if (Local_292[iParam0 /*4*/].f_1 == 0)
	{
		if (Local_292[iParam2 /*4*/].f_1)
		{
			iParam3 = iParam3;
			func_433(iParam0, iParam1, iParam4, iParam5, iParam6, iParam7, iParam8, iParam9);
		}
	}
}

void func_518(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)//Position - 0x512DF
{
	if (Local_325[iParam0 /*10*/] != iParam1 || Local_325[iParam0 /*10*/].f_1 == 0)
	{
		Local_325[iParam0 /*10*/] = iParam1;
		Local_325[iParam0 /*10*/].f_1 = 1;
		Local_325[iParam0 /*10*/].f_2 = 0;
		Local_325[iParam0 /*10*/].f_3 = 0;
		Local_325[iParam0 /*10*/].f_6 = 0;
		Local_325[iParam0 /*10*/].f_4 = 0;
		Local_325[iParam0 /*10*/].f_7 = 0;
		Local_325[iParam0 /*10*/].f_8 = 0;
		Local_325[iParam0 /*10*/].f_9 = 0f;
	}
	if (Local_325[iParam0 /*10*/].f_3 == 0)
	{
		if (Local_325[iParam2 /*10*/].f_3)
		{
			iParam3 = iParam3;
			func_330(iParam0, iParam1, 0, iParam4, iParam5, iParam6, iParam7, iParam8, iParam9, 1, 0, 1, 0);
		}
	}
}

bool func_519()//Position - 0x51394
{
	func_330(1, 51, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	switch (iLocal_1471)
	{
		case 0:
			func_543(6);
			ped::set_create_random_cops(false);
			func_244();
			if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
			{
				ped::clear_ped_alternate_walk_anim(Local_1071[2 /*14*/], -1056964608);
			}
			if (!cutscene::has_cutscene_loaded())
			{
				cutscene::request_cutscene("Arm_2_mcs_4", 8);
			}
			iLocal_1471 = 1;
			break;
		
		case 1:
			if (cutscene::_0xB56BBBCC2955D9CB())
			{
				cutscene::_0x2A56C06EBEF2B0D9("Franklin", player::player_ped_id(), 0);
				cutscene::set_cutscene_ped_component_variation("LAMAR", 0, 0, 0, 0);
				cutscene::set_cutscene_ped_component_variation("LAMAR", 1, 0, 0, 0);
				cutscene::set_cutscene_ped_component_variation("LAMAR", 2, 2, 0, 0);
				cutscene::set_cutscene_ped_component_variation("LAMAR", 3, 2, 0, 0);
				cutscene::set_cutscene_ped_component_variation("LAMAR", 4, 3, 0, 0);
				cutscene::set_cutscene_ped_component_variation("LAMAR", 5, 0, 0, 0);
				cutscene::set_cutscene_ped_component_variation("LAMAR", 6, 1, 0, 0);
				cutscene::set_cutscene_ped_component_variation("LAMAR", 7, 0, 0, 0);
				cutscene::set_cutscene_ped_component_variation("LAMAR", 8, 0, 0, 0);
				cutscene::set_cutscene_ped_component_variation("LAMAR", 9, 0, 0, 0);
			}
			if (func_162())
			{
				func_414("ARM2_OPEN_DOOR", 0, "ARM2_FIGHT_START");
				iLocal_1471 = 2;
			}
			break;
		
		case 2:
			if (func_162())
			{
				func_153(1, 1, 1, 0);
				if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
				{
				}
				if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
				{
					weapon::give_weapon_to_ped(Local_1071[2 /*14*/], joaat("weapon_microsmg"), 2000, true, true);
					weapon::set_current_ped_weapon(Local_1071[2 /*14*/], joaat("weapon_microsmg"), true);
					iLocal_1954 = func_521(Local_1071[2 /*14*/], 1, 0, 0, 0, 0);
				}
				cutscene::register_entity_for_cutscene(0, "Franklins_weapon", 2, weapon::get_weapontype_model(joaat("weapon_pistol")), 0);
				cutscene::register_entity_for_cutscene(iLocal_1954, "Lamars_weapon", 0, 0, 0);
				cutscene::register_entity_for_cutscene(0, "Mexgoon_1", 2, joaat("g_m_y_mexgoon_01"), 0);
				cutscene::register_entity_for_cutscene(Local_1071[2 /*14*/], "Lamar", 0, 0, 0);
				if (audio::is_audio_scene_active("ARM_2_SEARCH_FOR_BIKE"))
				{
					audio::stop_audio_scene("ARM_2_SEARCH_FOR_BIKE");
				}
				cutscene::start_cutscene(16);
				iLocal_114 = joaat("weapon_unarmed");
				weapon::get_current_ped_weapon(player::player_ped_id(), &iLocal_114, 1);
				if (ui::does_blip_exist(iLocal_2033))
				{
					ui::remove_blip(&iLocal_2033);
				}
				ped::set_ped_using_action_mode(player::player_ped_id(), true, -1, 0);
				unk1::_0x48621C9FCA3EBD28(4);
				iLocal_1471 = 3;
			}
			break;
		
		case 3:
		case 4:
			if (!entity::does_entity_exist(iLocal_1917))
			{
				if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("Mexgoon_1", 0)))
				{
					iLocal_1917 = entity::get_ped_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("Mexgoon_1", 0));
				}
			}
			if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
			{
				if (cutscene::can_set_exit_state_for_registered_entity("Lamar", 0))
				{
					weapon::set_current_ped_weapon(Local_1071[2 /*14*/], joaat("weapon_microsmg"), true);
				}
			}
			if (cutscene::can_set_exit_state_for_registered_entity("Lamars_weapon", 0))
			{
				if (entity::does_entity_exist(iLocal_1954))
				{
					object::delete_object(&iLocal_1954);
				}
				weapon::set_current_ped_weapon(Local_1071[2 /*14*/], weapon::get_best_ped_weapon(Local_1071[2 /*14*/], 0), false);
			}
			if (!ped::is_ped_injured(iLocal_1917))
			{
				if (cutscene::can_set_exit_state_for_registered_entity("Mexgoon_1", joaat("g_m_y_mexgoon_01")))
				{
					entity::set_entity_health(iLocal_1917, 0);
				}
			}
			if (cutscene::can_set_exit_state_for_registered_entity("Franklins_weapon", 0))
			{
				iLocal_2223 = 0;
				iLocal_1982 = object::create_pickup_rotate(joaat("pickup_weapon_pistol"), -1075.798f, -1675.717f, 3.5903f, -90f, 0f, -15f, 0, 145, 2, 1, 0);
				if (!func_510(player::player_ped_id(), 0))
				{
					iLocal_2030 = func_520(iLocal_1982);
				}
			}
			if (cutscene::can_set_exit_state_for_registered_entity("Franklin", 0))
			{
				ai::task_follow_nav_mesh_to_coord(player::player_ped_id(), -1077.508f, -1677.057f, 3.5752f, 1f, 20000, 0.25f, 1, 1193033728);
			}
			func_330(0, 50, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
			if (!cutscene::was_cutscene_skipped())
			{
				if (cam::is_screen_faded_out() && !cam::is_screen_fading_in())
				{
					cam::do_screen_fade_in(500);
				}
			}
			else
			{
				iLocal_1471 = 4;
			}
			if (cutscene::can_set_exit_state_for_camera(0))
			{
				cam::set_gameplay_cam_relative_heading(0f);
			}
			if (cutscene::has_cutscene_finished())
			{
				unk1::_0x81CBAE94390F9F89();
				if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
				{
					ped::remove_ped_from_group(Local_1071[2 /*14*/]);
				}
				func_153(0, 1, 1, 0);
				gameplay::clear_area_of_vehicles(-1069.323f, -1668.118f, 3.055831f, 8.5f, 0, 0, 0, 0, false);
				cutscene::remove_cutscene();
				weapon::set_current_ped_weapon(player::player_ped_id(), iLocal_114, false);
				return true;
			}
			break;
	}
	return false;
}

int func_520(int iParam0)//Position - 0x5179B
{
	int iVar0;
	
	if (!object::does_pickup_exist(iParam0))
	{
		return 0;
	}
	iVar0 = ui::add_blip_for_pickup(iParam0);
	ui::set_blip_scale(iVar0, func_260(network::network_is_game_in_progress(), 0.7f, 0.7f));
	return iVar0;
}

int func_521(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x517D3
{
	int iVar0;
	
	weapon::get_current_ped_weapon(iParam0, &iVar0, 1);
	return func_522(iParam0, iVar0, iParam1, iParam2, iParam3, iParam4, iParam5, 0, 0);
}

int func_522(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4, var uParam5, var uParam6, int iParam7, int iParam8)//Position - 0x517F9
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	vector3 vVar5;
	int iVar8;
	int iVar9;
	
	iVar0 = 0;
	iVar2 = iParam1;
	if (!weapon::has_ped_got_weapon(iParam0, iParam1, 0))
	{
		iVar0 = 1;
	}
	if (iVar2 == joaat("weapon_unarmed"))
	{
		return 0;
	}
	iVar3 = 0;
	if (iParam2 == 1)
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			iVar3 = weapon::get_ammo_in_ped_weapon(iParam0, iVar2);
		}
		if (iVar3 == -1)
		{
			iVar4 = weapon::get_weapon_clip_size(iVar2);
			if (iVar4 > 0)
			{
				iVar3 = iVar4;
			}
			else
			{
				weapon::get_max_ammo(iParam0, iVar2, &iVar3);
			}
		}
	}
	vVar5 = { entity::get_entity_coords(iParam0, 0) - Vector(10f, 0f, 0f) };
	if (iParam3)
	{
		vVar5 = { uParam4, uParam5, uParam6 };
	}
	while (func_67(iVar2, iVar8) != 0)
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			if (weapon::has_ped_got_weapon_component(iParam0, iVar2, func_67(iVar2, iVar8)))
			{
				if (func_523(func_67(iVar2, iVar8)))
				{
					iVar9 = weapon::get_weapon_component_type_model(func_67(iVar2, iVar8));
				}
			}
		}
		iVar8++;
	}
	iVar1 = weapon::create_weapon_object(iVar2, iVar3, vVar5, iVar0, 1065353216, iVar9, iParam7, iParam8);
	while (func_67(iVar2, iVar8) != 0)
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			if (weapon::has_ped_got_weapon_component(iParam0, iVar2, func_67(iVar2, iVar8)))
			{
				weapon::give_weapon_component_to_weapon_object(iVar1, func_67(iVar2, iVar8));
			}
		}
		iVar8++;
	}
	if (!entity::is_entity_dead(iParam0, 0))
	{
		if (weapon::has_ped_got_weapon(iParam0, iVar2, 0))
		{
			weapon::set_weapon_object_tint_index(iVar1, weapon::get_ped_weapon_tint_index(iParam0, iVar2));
		}
	}
	return iVar1;
}

bool func_523(int iParam0)//Position - 0x5195F
{
	if (((((((((((((((((((((((((((((((iParam0 == joaat("component_pistol_varmod_luxe") || iParam0 == joaat("component_combatpistol_varmod_lowrider")) || iParam0 == joaat("component_appistol_varmod_luxe")) || iParam0 == joaat("component_microsmg_varmod_luxe")) || iParam0 == joaat("component_smg_varmod_luxe")) || iParam0 == joaat("component_assaultrifle_varmod_luxe")) || iParam0 == joaat("component_carbinerifle_varmod_luxe")) || iParam0 == joaat("component_advancedrifle_varmod_luxe")) || iParam0 == joaat("component_mg_varmod_lowrider")) || iParam0 == joaat("component_combatmg_varmod_lowrider")) || iParam0 == joaat("component_pumpshotgun_varmod_lowrider")) || iParam0 == joaat("component_sniperrifle_varmod_luxe")) || iParam0 == joaat("component_assaultsmg_varmod_lowrider")) || iParam0 == joaat("component_pistol50_varmod_luxe")) || iParam0 == joaat("component_sawnoffshotgun_varmod_luxe")) || iParam0 == joaat("component_bullpuprifle_varmod_low")) || iParam0 == joaat("component_snspistol_varmod_lowrider")) || iParam0 == joaat("component_specialcarbine_varmod_lowrider")) || iParam0 == joaat("component_sawnoffshotgun_varmod_luxe")) || iParam0 == joaat("component_knuckle_varmod_pimp")) || iParam0 == joaat("component_knuckle_varmod_ballas")) || iParam0 == joaat("component_knuckle_varmod_dollar")) || iParam0 == joaat("component_knuckle_varmod_diamond")) || iParam0 == joaat("component_knuckle_varmod_hate")) || iParam0 == joaat("component_knuckle_varmod_love")) || iParam0 == joaat("component_knuckle_varmod_player")) || iParam0 == joaat("component_knuckle_varmod_king")) || iParam0 == joaat("component_knuckle_varmod_vagos")) || iParam0 == joaat("component_switchblade_varmod_var1")) || iParam0 == joaat("component_switchblade_varmod_var2")) || iParam0 == joaat("component_revolver_varmod_boss")) || iParam0 == joaat("component_revolver_varmod_goon"))
	{
		return true;
	}
	return false;
}

bool func_524()//Position - 0x51B29
{
	func_506(42, 89);
	if (iLocal_2276 == 0)
	{
		func_330(0, 17, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(26, 16, 0, 2, 47, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(1, 19, 0, 2, 48, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(2, 20, 1, 2, 49, 5, 53, 1, 0, 1, 0, 1, 0);
		func_330(3, 21, 0, 2, 50, 5, 53, 5, 64, 1, 0, 1, 0);
		func_330(4, 22, 0, 2, 53, 4, 49, 1, 0, 1, 0, 1, 0);
		func_330(5, 23, 0, 2, 53, 6, 67, 1, 0, 1, 0, 1, 0);
		func_330(6, 24, 0, 2, 58, 5, 55, 5, 52, 1, 0, 1, 0);
		func_330(7, 25, 0, 2, 61, 5, 71, 1, 0, 1, 0, 1, 0);
		func_330(8, 26, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(9, 27, 0, 2, 62, 5, 64, 1, 0, 1, 0, 1, 0);
		func_330(11, 29, 0, 2, 64, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(12, 30, 0, 2, 68, 5, 64, 1, 0, 1, 0, 1, 0);
		func_330(13, 31, 0, 2, 64, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(14, 32, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(16, 35, 0, 2, 73, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(17, 37, 0, 2, 72, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(18, 49, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(20, 34, 0, 2, 73, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(21, 38, 0, 2, 78, 4, 82, 1, 0, 1, 0, 1, 0);
		func_330(22, 39, 0, 2, 79, 4, 82, 1, 0, 1, 0, 1, 0);
		func_330(23, 41, 1, 3, 80, 3, 82, 1, 0, 1, 0, 1, 0);
		func_330(24, 42, 0, 2, 66, 6, 51, 1, 0, 1, 0, 1, 0);
		func_330(25, 40, 0, 2, 80, 4, 82, 1, 0, 1, 0, 1, 0);
		func_330(27, 43, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(28, 44, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(29, 47, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(30, 45, 0, 2, 73, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(31, 46, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
		func_330(10, 48, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
		func_288(0, 13, 0, 0, 1, 0, 1, 0, 1, 0);
		func_286(1, 14, 0, 13, 2, 54, 5, 55, 5, 49, 5, 59);
		func_288(2, 15, 2, 48, 1, 0, 1, 0, 1, 0);
		func_288(3, 16, 2, 57, 5, 53, 4, 88, 1, 0);
		func_288(4, 17, 2, 52, 5, 53, 1, 0, 1, 0);
		func_288(5, 18, 2, 53, 5, 61, 1, 0, 1, 0);
		func_288(6, 19, 0, 0, 1, 0, 1, 0, 1, 0);
		func_288(7, 20, 2, 61, 5, 71, 5, 74, 1, 0);
		func_286(23, 39, 7, 20, 0, 0, 1, 0, 1, 0, 1, 0);
		func_288(8, 21, 2, 64, 1, 0, 1, 0, 1, 0);
		func_288(9, 22, 2, 64, 1, 0, 1, 0, 1, 0);
		func_288(10, 24, 7, 64, 1, 0, 1, 0, 1, 0);
		func_288(11, 25, 3, 61, 5, 64, 1, 0, 1, 0);
		func_288(12, 27, 2, 72, 5, 70, 5, 64, 1, 0);
		func_288(13, 28, 2, 73, 5, 71, 1, 0, 1, 0);
		func_288(14, 29, 2, 75, 1, 0, 1, 0, 1, 0);
		func_288(15, 30, 2, 76, 1, 0, 1, 0, 1, 0);
		func_288(17, 33, 2, 77, 1, 0, 1, 0, 1, 0);
		func_288(18, 34, 2, 81, 1, 0, 1, 0, 1, 0);
		func_288(20, 36, 2, 73, 1, 0, 1, 0, 1, 0);
		func_288(21, 23, 2, 43, 1, 0, 1, 0, 1, 0);
		func_288(22, 37, 2, 87, 1, 0, 1, 0, 1, 0);
		func_288(24, 38, 2, 86, 1, 0, 1, 0, 1, 0);
		func_433(0, 6, 2, 56, 1, 0, 1, 0);
		func_433(1, 7, 2, 73, 1, 0, 1, 0);
		func_433(2, 9, 0, 0, 1, 0, 1, 0);
		func_433(3, 8, 0, 0, 1, 0, 1, 0);
		func_433(4, 10, 2, 55, 5, 59, 1, 0);
	}
	else
	{
		func_330(15, 14, 0, 2, 46, 1, 0, 1, 0, 1, 0, 1, 0);
		func_288(16, 12, 2, 46, 1, 0, 1, 0, 1, 0);
	}
	func_249(1, 2, 84, 1, 0);
	func_249(3, 2, 69, 1, 0);
	func_249(4, 0, 0, 1, 0);
	func_249(6, 0, 0, 1, 0);
	func_249(2, 2, 43, 1, 0);
	func_249(9, 0, 0, 1, 0);
	func_249(12, 2, 46, 1, 0);
	func_249(15, 0, 0, 1, 0);
	if (func_248(25, 40))
	{
		if (ui::does_blip_exist(iLocal_2029))
		{
			ui::remove_blip(&iLocal_2029);
		}
		if (ui::does_blip_exist(iLocal_2031))
		{
			ui::remove_blip(&iLocal_2031);
		}
		if (ui::does_blip_exist(iLocal_2033))
		{
			ui::remove_blip(&iLocal_2033);
		}
		if (ui::does_blip_exist(iLocal_2032))
		{
			ui::remove_blip(&iLocal_2032);
		}
		func_290();
		ui::clear_prints();
		func_244();
		return true;
	}
	return false;
}

bool func_525()//Position - 0x52016
{
	func_506(1, 29);
	func_433(0, 1, 3, 26, 1, 0, 1, 0);
	func_433(1, 5, 0, 0, 1, 0, 1, 0);
	func_330(0, 3, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(11, 4, 1, 2, 23, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(2, 5, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(3, 6, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(4, 7, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(5, 8, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(6, 9, 0, 2, 11, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(7, 10, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(8, 15, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(9, 11, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(10, 12, 0, 2, 20, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(1, 13, 0, 2, 20, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(12, 14, 0, 2, 24, 6, 25, 1, 0, 1, 0, 1, 0);
	func_330(13, 49, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(14, 35, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
	func_330(15, 36, 0, 2, 4, 1, 0, 1, 0, 1, 0, 1, 0);
	func_288(0, 2, 0, 0, 1, 0, 1, 0, 1, 0);
	func_288(1, 1, 0, 0, 1, 0, 1, 0, 1, 0);
	func_288(2, 10, 0, 0, 1, 0, 1, 0, 1, 0);
	func_288(3, 5, 2, 18, 4, 2, 1, 0, 1, 0);
	func_288(4, 6, 2, 15, 4, 2, 1, 0, 1, 0);
	func_288(5, 7, 2, 17, 6, 12, 4, 2, 1, 0);
	func_288(6, 8, 2, 16, 4, 2, 1, 0, 1, 0);
	func_288(8, 3, 2, 13, 5, 7, 1, 0, 1, 0);
	func_288(9, 11, 2, 23, 1, 0, 1, 0, 1, 0);
	func_288(10, 12, 2, 24, 6, 25, 1, 0, 1, 0);
	func_249(6, 0, 0, 1, 0);
	func_249(5, 2, 21, 1, 0);
	func_249(9, 0, 0, 1, 0);
	func_249(10, 0, 0, 1, 0);
	func_249(14, 2, 27, 1, 0);
	func_249(12, 2, 25, 1, 0);
	func_249(2, 2, 28, 1, 0);
	if (func_434(0, 1))
	{
		if (ui::does_blip_exist(iLocal_2029))
		{
			ui::_0x67EEDEA1B9BAFD94();
			ui::remove_blip(&iLocal_2029);
		}
		func_500(&Local_1956);
		func_501(&Local_1956, 1, 0);
		iLocal_2029 = func_403(Local_1071[2 /*14*/], 0, 0);
		if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
		{
			ped::remove_ped_from_group(Local_1071[2 /*14*/]);
		}
		func_290();
		return true;
	}
	return false;
}

void func_526(int iParam0)//Position - 0x5229F
{
	int iVar0;
	
	if (iLocal_1067 >= 2 && iLocal_1067 < 6)
	{
		iParam0 = 6;
	}
	else if (iLocal_1067 >= 7 && iLocal_1067 <= 8)
	{
		iParam0 = 9;
	}
	else
	{
		iVar0 = iLocal_1067;
		iVar0++;
	}
	if (iParam0 == 14)
	{
		iLocal_1067 = iVar0;
	}
	else
	{
		iLocal_1067 = iParam0;
	}
	func_530();
	func_529();
	func_528();
	func_527();
	iLocal_1471 = 0;
}

void func_527()//Position - 0x5230C
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Local_140)
	{
		Local_140[iVar0 /*6*/] = 0;
		Local_140[iVar0 /*6*/].f_1 = 0;
		Local_140[iVar0 /*6*/].f_3 = 0;
		Local_140[iVar0 /*6*/].f_2 = 0;
		iVar0++;
	}
}

void func_528()//Position - 0x52349
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Local_292)
	{
		Local_292[iVar0 /*4*/] = 0;
		Local_292[iVar0 /*4*/].f_1 = 0;
		Local_292[iVar0 /*4*/].f_2 = 0;
		Local_292[iVar0 /*4*/].f_3 = 0;
		iVar0++;
	}
}

void func_529()//Position - 0x5238B
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Local_325)
	{
		if (Local_325[iVar0 /*10*/].f_4)
		{
			Local_325[iVar0 /*10*/].f_1 = 1;
			Local_325[iVar0 /*10*/].f_6 = 99;
			func_330(iVar0, Local_325[iVar0 /*10*/], 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
		}
		Local_325[iVar0 /*10*/] = 0;
		Local_325[iVar0 /*10*/].f_1 = 0;
		Local_325[iVar0 /*10*/].f_2 = 0;
		Local_325[iVar0 /*10*/].f_3 = 0;
		Local_325[iVar0 /*10*/].f_6 = 0;
		Local_325[iVar0 /*10*/].f_4 = 0;
		Local_325[iVar0 /*10*/].f_5 = 0;
		Local_325[iVar0 /*10*/].f_7 = 0;
		iVar0++;
	}
}

void func_530()//Position - 0x5242E
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Local_688)
	{
		Local_688[iVar0 /*7*/] = 0;
		Local_688[iVar0 /*7*/].f_1 = 0;
		Local_688[iVar0 /*7*/].f_2 = 0;
		Local_688[iVar0 /*7*/].f_3 = 0;
		Local_688[iVar0 /*7*/].f_4 = 0;
		iVar0++;
	}
}

bool func_531()//Position - 0x5247A
{
	switch (iLocal_1471)
	{
		case 0:
			sLocal_1955 = "Armenian_2_int";
			func_244();
			cutscene::request_cutscene(sLocal_1955, 8);
			iLocal_1471 = 1002;
			break;
		
		case 1002:
			if (func_162())
			{
				func_147(10, 2, 0);
				func_111(10);
				func_147(11, 12, 0);
				if (entity::does_entity_exist(Global_88236.f_9[0]))
				{
					Local_1071[3 /*14*/] = Global_88236.f_9[0];
					entity::set_entity_as_mission_entity(Local_1071[3 /*14*/], true, 1);
					cutscene::register_entity_for_cutscene(Local_1071[3 /*14*/], "Siemon", 0, joaat("ig_siemonyetarian"), 0);
				}
				else
				{
					cutscene::register_entity_for_cutscene(0, "Siemon", 2, joaat("ig_siemonyetarian"), 0);
				}
				cutscene::register_entity_for_cutscene(0, "Lamar", 2, iLocal_2034, 0);
				func_134(97, 0);
				func_153(1, 1, 1, 0);
				cutscene::start_cutscene(0);
				unk1::_0x48621C9FCA3EBD28(4);
				if (Global_88659)
				{
					func_534();
				}
				func_543(1);
				weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), false);
				system::settimerb(0);
				cutscene::_0x41FAA8FB2ECE8720(0);
				if (func_545(0))
				{
					if (cam::is_screen_faded_out() && !cam::is_screen_fading_in())
					{
						cam::do_screen_fade_in(500);
					}
				}
				iLocal_1471 = 1005;
			}
			break;
		
		case 1004:
			if (func_25(10) && func_427(1))
			{
				cam::stop_gameplay_hint(1);
				iLocal_1471++;
			}
			break;
		
		case 1005:
			cutscene::_0x41FAA8FB2ECE8720(1);
			if (!entity::does_entity_exist(Local_1071[2 /*14*/]))
			{
				if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("Lamar", 0)))
				{
					Local_1071[2 /*14*/] = entity::get_ped_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("Lamar", 0));
				}
			}
			if (!entity::does_entity_exist(Local_1071[3 /*14*/]))
			{
				if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("Siemon", 0)))
				{
					Local_1071[3 /*14*/] = entity::get_ped_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("Siemon", 0));
				}
			}
			if (cutscene::can_set_exit_state_for_camera(0))
			{
				unk1::_0x81CBAE94390F9F89();
				cam::set_gameplay_cam_relative_heading(0f);
			}
			if (entity::does_entity_exist(Local_1071[2 /*14*/]))
			{
				if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
				{
					if (cutscene::can_set_exit_state_for_registered_entity("Lamar", 0))
					{
						func_532(&uLocal_1983, 0, 0, 2000, 0, 0, 0, 1);
						if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
						{
							ai::task_follow_nav_mesh_to_coord(Local_1071[2 /*14*/], -25.945f, -1084.278f, 25.5736f, 1f, 20000, 0.1f, 8192, 1193033728);
						}
						if (!ped::is_ped_injured(Local_1071[2 /*14*/]))
						{
							ped::force_ped_motion_state(Local_1071[2 /*14*/], -668482597, false, 1, 0);
						}
						ped::set_ped_component_variation(Local_1071[2 /*14*/], 1, 1, 0, 0);
						func_333(0);
						ped::set_blocking_of_non_temporary_events(Local_1071[2 /*14*/], false);
						iLocal_1471++;
					}
				}
			}
			break;
		
		case 1006:
			if (!cutscene::is_cutscene_active())
			{
				func_153(0, 1, 1, 0);
				if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
				{
					vehicle::set_vehicle_engine_on(Local_1450[0 /*2*/], true, 1, 0);
				}
				ped::remove_scenario_blocking_areas();
				func_147(1, 9, 0);
				vehicle::set_all_vehicle_generators_active_in_area(Vector(25.85983f, -1098.932f, -43.78194f) - Vector(2.5625f, 6.75f, 9.75f), Vector(25.85983f, -1098.932f, -43.78194f) + Vector(2.5625f, 6.75f, 9.75f), true, 1);
				return true;
			}
			break;
	}
	return false;
}

void func_532(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x5278C
{
	int iVar0;
	
	if (iParam4 == 1)
	{
		player::set_player_control(player::player_id(), player::is_player_control_on(player::player_id()), 64);
	}
	if (!cutscene::is_cutscene_playing())
	{
		player::set_player_control(player::player_id(), !iParam1, 0);
	}
	if (iParam7)
	{
		if (!entity::is_entity_dead(player::player_ped_id(), 0))
		{
			ped::remove_ped_helmet(player::player_ped_id(), 1);
		}
	}
	if (!iParam1 && iParam6)
	{
		cam::_0xC819F3CBB62BF692(0, 0, 3, 0);
	}
	else
	{
		cam::render_script_cams(iParam1, iParam2, iParam3, 1, 0, 0);
	}
	if (iParam1)
	{
		ui::clear_help(1);
	}
	else
	{
		if (cam::does_cam_exist(uParam0->f_4))
		{
			if (cam::is_cam_active(uParam0->f_4))
			{
				cam::set_cam_active(uParam0->f_4, false);
			}
			cam::destroy_cam(uParam0->f_4, 1);
		}
		if (!entity::is_entity_dead(player::player_ped_id(), 0))
		{
			entity::set_entity_visible(player::player_ped_id(), true, 0);
		}
		iVar0 = player::get_players_last_vehicle();
		if (entity::does_entity_exist(iVar0))
		{
			entity::set_entity_visible(iVar0, true, 0);
		}
		audio::release_named_script_audio_bank("TIME_LAPSE");
		if (audio::is_audio_scene_active("TOD_SHIFT_SCENE"))
		{
			audio::stop_sound(uParam0->f_10);
			audio::release_named_script_audio_bank("TIME_LAPSE");
			audio::stop_audio_scene("TOD_SHIFT_SCENE");
		}
	}
	func_153(iParam1, 1, 0, 0);
	func_533();
	if (!iParam1 && iParam5)
	{
		if (uParam0->f_5)
		{
			time::set_clock_time(uParam0->f_7, 0, 0);
		}
		else
		{
			time::set_clock_time(uParam0->f_8, 0, 0);
		}
	}
	if (!iParam1)
	{
		if (cam::is_screen_faded_out())
		{
			cam::do_screen_fade_in(250);
		}
	}
	if (!iParam1)
	{
		if (Global_101553.f_18972.f_4801 != -15)
		{
			Global_101553.f_18972.f_4801 = func_87();
		}
	}
}

void func_533()//Position - 0x52901
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 35)
	{
		ui::_remove_notification(Global_101553.f_12996[iVar0 /*104*/].f_16);
		iVar0++;
	}
}

void func_534()//Position - 0x5292D
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 8)
	{
		if (entity::does_entity_exist(Global_88236[iVar0]))
		{
			if (!entity::is_entity_dead(Global_88236[iVar0], 0))
			{
				entity::set_entity_proofs(Global_88236[iVar0], false, false, false, false, false, false, 0, false);
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 18)
	{
		if (entity::does_entity_exist(Global_88236.f_9[iVar0]))
		{
			if (!entity::is_entity_dead(Global_88236.f_9[iVar0], 0))
			{
				entity::set_entity_proofs(Global_88236.f_9[iVar0], false, false, false, false, false, false, 0, false);
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 8)
	{
		if (entity::does_entity_exist(Global_88236.f_28[iVar0]))
		{
			if (!entity::is_entity_dead(Global_88236.f_28[iVar0], 0))
			{
				entity::set_entity_proofs(Global_88236.f_28[iVar0], false, false, false, false, false, false, 0, false);
			}
		}
		iVar0++;
	}
	func_535();
	Global_88659 = 0;
}

void func_535()//Position - 0x52A1F
{
	int iVar0;
	
	if (!entity::is_entity_dead(player::player_ped_id(), 0))
	{
		entity::set_entity_proofs(player::player_ped_id(), false, false, false, false, false, false, 0, false);
		ped::set_ped_config_flag(player::player_ped_id(), 157, true);
		entity::set_entity_invincible(player::player_ped_id(), false);
	}
	iVar0 = 0;
	while (iVar0 < 9)
	{
		if (entity::does_entity_exist(Global_89108[iVar0]))
		{
			if (!entity::is_entity_dead(Global_89108[iVar0], 0))
			{
				entity::set_entity_proofs(Global_89108[iVar0], false, false, false, false, false, false, 0, false);
				entity::set_entity_invincible(Global_89108[iVar0], false);
			}
		}
		iVar0++;
	}
	if ((Global_35775 != 0 && Global_35775 != 3) && Global_35775 != 2)
	{
		player::set_max_wanted_level(5);
		player::set_wanted_level_multiplier(1f);
	}
}

void func_536()//Position - 0x52AD2
{
	int iVar0;
	
	if (iLocal_1067 >= 1 && iLocal_1067 <= 8)
	{
		iVar0 = 0;
		while (iVar0 < Local_1071)
		{
			if (entity::does_entity_exist(Local_1071[iVar0 /*14*/]))
			{
				if (ped::get_ped_relationship_group_hash(Local_1071[iVar0 /*14*/]) == iLocal_1473)
				{
					if (ped::is_ped_injured(Local_1071[iVar0 /*14*/]))
					{
						if (!Local_1071[iVar0 /*14*/].f_13)
						{
							Local_1071[iVar0 /*14*/].f_13 = 1;
							func_538(15, 1, 0);
						}
					}
					if (iLocal_1067 < 7)
					{
						func_537(Local_1071[iVar0 /*14*/], &(Local_1071[iVar0 /*14*/].f_5), -1, 0, 1, 0, -1082130432, 0, -1, -1, 1);
					}
					else
					{
						func_537(Local_1071[iVar0 /*14*/], &(Local_1071[iVar0 /*14*/].f_5), -1, 0, 0, 0, -1082130432, 0, -1, -1, 1);
					}
				}
			}
			iVar0++;
		}
	}
}

bool func_537(int iParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5, float fParam6, char* sParam7, int iParam8, int iParam9, int iParam10)//Position - 0x52B9B
{
	if (iParam3 == 0)
	{
		iParam3 = player::get_player_index();
	}
	if (fParam6 < 0f)
	{
		fParam6 = 100f;
	}
	if (!ped::is_ped_injured(iParam0))
	{
		if (!ui::does_ped_have_ai_blip(iParam0))
		{
			if (iParam8 == -1)
			{
				ui::_0xD30C50DF888D58B5(iParam0, 1);
			}
			else
			{
				unk_0xB13DCB4C6FAAD238(iParam0, 1, iParam8);
			}
			uParam1->f_7 = iParam0;
			ui::_0xE52B8E7F85D39A08(iParam0, iParam2);
			ui::_0x97C65887D4B37FA9(iParam0, fParam6);
			if (ui::does_blip_exist(*uParam1))
			{
				ui::set_blip_priority(*uParam1, 7);
			}
		}
		if (!iParam9 == -1)
		{
			unk_0xFCFACD0DB9D7A57D(iParam0, iParam9);
		}
		ui::_0x0C4BBF625CA98C4E(iParam0, iParam4);
		ui::hide_special_ability_lockon_operation(iParam0, iParam5);
		*uParam1 = ui::_0x7CD934010E115C2C(iParam0);
		if (!iParam9 == -1)
		{
			if (ui::does_blip_exist(*uParam1))
			{
				if (!iParam8 == -1)
				{
					ui::set_blip_colour(*uParam1, iParam8);
				}
				ui::begin_text_command_set_blip_name("STRING");
				if (iParam10)
				{
					ui::add_text_component_substring_player_name(sParam7);
				}
				else
				{
					ui::_add_text_component_item_string(sParam7);
				}
				ui::end_text_command_set_blip_name(*uParam1);
				ui::set_blip_priority(*uParam1, 7);
			}
		}
		if (!gameplay::is_bit_set(uParam1->f_6, 2))
		{
			if (ui::does_blip_exist(*uParam1))
			{
				if (!gameplay::is_string_null_or_empty(sParam7))
				{
					ui::begin_text_command_set_blip_name("STRING");
					if (iParam10)
					{
						ui::add_text_component_substring_player_name(sParam7);
					}
					else
					{
						ui::_add_text_component_item_string(sParam7);
					}
					ui::end_text_command_set_blip_name(*uParam1);
				}
				gameplay::set_bit(&(uParam1->f_6), 2);
			}
		}
		if (ped::is_ped_in_any_vehicle(iParam0, 0))
		{
			uParam1->f_1 = ui::_0x56176892826A4FE8(iParam0);
			if (!gameplay::is_bit_set(uParam1->f_6, 3))
			{
				if (ui::does_blip_exist(uParam1->f_1))
				{
					ui::set_blip_priority(uParam1->f_1, 7);
					gameplay::set_bit(&(uParam1->f_6), 3);
				}
			}
		}
		else if (ui::does_blip_exist(uParam1->f_1))
		{
			uParam1->f_1 = 0;
			gameplay::clear_bit(&(uParam1->f_6), 3);
		}
	}
	else
	{
		return true;
	}
	return false;
}

void func_538(int iParam0, int iParam1, int iParam2)//Position - 0x52D3A
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_67911)
	{
		if (Global_67912[iVar0 /*9*/] == iParam0)
		{
			if (iParam2)
			{
				Global_67912[iVar0 /*9*/].f_1 = iParam1;
			}
			else
			{
				Global_67912[iVar0 /*9*/].f_1 = (Global_67912[iVar0 /*9*/].f_1 + iParam1);
			}
			return;
		}
		iVar0++;
	}
	if (Global_67912[iVar0 /*9*/] != -1)
	{
		if (Global_56041[Global_67912[iVar0 /*9*/] /*13*/] == 3)
		{
			if (Global_67912[iVar0 /*9*/].f_1 > 1)
			{
				Global_67912[iVar0 /*9*/].f_1 = 1;
			}
			if (Global_67912[iVar0 /*9*/].f_1 < 0)
			{
				Global_67912[iVar0 /*9*/].f_1 = 0;
			}
		}
	}
}

bool func_539()//Position - 0x52DE4
{
	if (iLocal_112)
	{
		if (func_540())
		{
			iLocal_112 = 0;
			return true;
		}
		else
		{
			return false;
		}
	}
	return false;
}

bool func_540()//Position - 0x52E07
{
	int iVar0;
	
	iLocal_112 = 0;
	iVar0 = 0;
	while (iVar0 < vLocal_50.x)
	{
		if (vLocal_50[iVar0 /*3*/].f_2 == 2)
		{
			if (func_430(iVar0))
			{
				vLocal_50[iVar0 /*3*/].f_2 = 3;
				iLocal_113 = 0;
			}
		}
		else if (vLocal_50[iVar0 /*3*/].f_2 == 1 && !iLocal_113)
		{
			switch (iVar0)
			{
				case 0:
					streaming::request_model(iLocal_2034);
					break;
				
				case 1:
					streaming::request_model(iLocal_2219);
					streaming::request_model(iLocal_2220);
					break;
				
				case 2:
					weapon::request_weapon_asset(joaat("weapon_pistol"), 31, 0);
					weapon::request_weapon_asset(joaat("weapon_microsmg"), 31, 0);
					weapon::request_weapon_asset(joaat("weapon_pumpshotgun"), 31, 0);
					break;
				
				case 3:
					streaming::request_model(iLocal_2218);
					break;
				
				case 4:
					streaming::request_model(joaat("bagger"));
					break;
				
				case 5:
					streaming::request_anim_dict("MISSARMENIAN2");
					break;
				
				case 6:
					streaming::request_anim_dict("missarmenian2_mcs_5");
					streaming::request_anim_dict("reaction@points@");
					break;
				
				case 7:
					streaming::request_model(joaat("bison"));
					break;
				
				case 8:
					streaming::request_model(joaat("penumbra"));
					break;
				
				case 9:
					vehicle::request_vehicle_recording(1, sLocal_46);
					break;
				
				case 10:
					vehicle::request_vehicle_recording(6, sLocal_46);
					vehicle::request_vehicle_recording(11, sLocal_46);
					break;
				
				case 11:
					ai::request_waypoint_recording("arm2_15");
					break;
				
				case 12:
					streaming::request_model(joaat("prop_ld_test_01"));
					break;
				
				case 13:
					ai::request_waypoint_recording("ARM2");
					break;
				
				case 14:
					ai::request_waypoint_recording("ARM2_FIRE");
					break;
				
				case 15:
					streaming::request_anim_dict("missarmenian2lamar_idles");
					break;
				
				case 16:
					break;
				
				case 17:
					streaming::request_model(joaat("ig_siemonyetarian"));
					break;
				
				case 18:
					streaming::request_anim_dict("missarmenian2lamar_in_cover");
					break;
				
				case 19:
					streaming::request_model(joaat("prop_arm_gate_l"));
					break;
			}
			vLocal_50[iVar0 /*3*/].f_2 = 2;
			iLocal_113 = 1;
		}
		if (vLocal_50[iVar0 /*3*/].f_2 == 2 || vLocal_50[iVar0 /*3*/].f_2 == 1)
		{
			iLocal_112 = 1;
		}
		iVar0++;
	}
	if (!iLocal_112)
	{
		return true;
	}
	return false;
}

void func_541(int iParam0, int iParam1)//Position - 0x53024
{
	if (iParam0 == 146 || iParam0 == -1)
	{
		return;
	}
	if (Global_101553.f_7940.f_99.f_58[iParam0] == iParam1)
	{
		return;
	}
	Global_101553.f_7940.f_99.f_58[iParam0] = iParam1;
}

int func_542(int iParam0)//Position - 0x53069
{
	if (iParam0 == 146 || iParam0 == -1)
	{
		return 0;
	}
	return Global_101553.f_7940.f_99.f_58[iParam0];
}

void func_543(int iParam0)//Position - 0x53096
{
	iLocal_112 = 1;
	iLocal_113 = 0;
	iLocal_111 = iParam0;
	func_544(iParam0);
}

void func_544(int iParam0)//Position - 0x530AE
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < vLocal_50.x)
	{
		if (iParam0 >= vLocal_50[iVar0 /*3*/] && iParam0 < vLocal_50[iVar0 /*3*/].f_1)
		{
			vLocal_50[iVar0 /*3*/].f_2 = 1;
		}
		else if (vLocal_50[iVar0 /*3*/].f_2 == 2 || vLocal_50[iVar0 /*3*/].f_2 == 3)
		{
			switch (iVar0)
			{
				case 0:
					streaming::set_model_as_no_longer_needed(iLocal_2034);
					break;
				
				case 1:
					streaming::set_model_as_no_longer_needed(iLocal_2219);
					break;
				
				case 2:
					weapon::remove_weapon_asset(joaat("weapon_pistol"));
					weapon::remove_weapon_asset(joaat("weapon_microsmg"));
					weapon::remove_weapon_asset(joaat("weapon_pumpshotgun"));
					break;
				
				case 3:
					streaming::set_model_as_no_longer_needed(iLocal_2218);
					break;
				
				case 4:
					streaming::set_model_as_no_longer_needed(joaat("bagger"));
					break;
				
				case 5:
					streaming::remove_anim_dict("MISSARMENIAN2");
					break;
				
				case 6:
					streaming::remove_anim_dict("missarmenian2_mcs_5");
					streaming::remove_anim_dict("reaction@points@");
					break;
				
				case 7:
					streaming::set_model_as_no_longer_needed(joaat("bison"));
					break;
				
				case 8:
					streaming::set_model_as_no_longer_needed(joaat("penumbra"));
					break;
				
				case 9:
					vehicle::remove_vehicle_recording(1, sLocal_46);
					break;
				
				case 10:
					vehicle::remove_vehicle_recording(6, sLocal_46);
					vehicle::remove_vehicle_recording(11, sLocal_46);
					break;
				
				case 11:
					ai::remove_waypoint_recording("arm2_15");
					break;
				
				case 12:
					streaming::set_model_as_no_longer_needed(joaat("prop_ld_test_01"));
					break;
				
				case 13:
					ai::remove_waypoint_recording("ARM2");
					break;
				
				case 14:
					ai::remove_waypoint_recording("ARM2_FIRE");
					break;
				
				case 15:
					streaming::remove_anim_dict("missarmenian2lamar_idles");
					break;
				
				case 16:
					audio::release_script_audio_bank();
					break;
				
				case 17:
					streaming::set_model_as_no_longer_needed(joaat("ig_siemonyetarian"));
					break;
				
				case 18:
					streaming::remove_anim_dict("missarmenian2lamar_in_cover");
					break;
				
				case 19:
					streaming::set_model_as_no_longer_needed(joaat("prop_arm_gate_l"));
					break;
			}
			vLocal_50[iVar0 /*3*/].f_2 = 0;
		}
		iVar0++;
	}
}

int func_545(int iParam0)//Position - 0x5329A
{
	if (!iParam0 && script::_get_number_of_instances_of_streamed_script(joaat("benchmark")) > 0)
	{
		return true;
	}
	return gameplay::is_bit_set(Global_69865, 0);
}

void func_546(int iParam0, int iParam1, int iParam2)//Position - 0x532C5
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (iParam0 == 1)
	{
		func_588(3);
		gameplay::set_weather_type_now_persist("EXTRASUNNY");
		switch (iLocal_1067)
		{
			case 0:
				gameplay::clear_area(-36.769f, -1097.209f, 25.643f, 100f, 1, 0, 0, false);
				vehicle::set_all_vehicle_generators_active_in_area(Vector(25.85983f, -1098.932f, -43.78194f) - Vector(2.5625f, 6.75f, 9.75f), Vector(25.85983f, -1098.932f, -43.78194f) + Vector(2.5625f, 6.75f, 9.75f), false, 1);
				func_587(0);
				cutscene::request_cutscene("Armenian_2_int", 8);
				while (!cutscene::has_cutscene_loaded())
				{
					func_19(57, 0);
				}
				func_420(2);
				if (player::is_player_playing(player::player_id()))
				{
					entity::set_entity_coords(player::player_ped_id(), -32.5669f, -1094.297f, 25.4223f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 141f);
				}
				if (func_545(0))
				{
					streaming::request_model(joaat("baller"));
					streaming::request_model(joaat("schwarzer"));
					streaming::request_model(joaat("bullet"));
					streaming::request_model(joaat("prop_employee_month_02"));
					while ((!streaming::has_model_loaded(joaat("baller")) || !streaming::has_model_loaded(joaat("schwarzer"))) || !streaming::has_model_loaded(joaat("bullet")))
					{
						func_19(65, 0);
					}
					gameplay::clear_area_of_vehicles(-11.3885f, -1080.687f, 25.6721f, 8f, 0, 0, 0, 0, false);
					iLocal_2021[0] = vehicle::create_vehicle(joaat("baller"), -7.6801f, -1082.437f, 25.6721f, 159.3786f, 1, true);
					vehicle::set_vehicle_colours(iLocal_2021[0], 3, 1);
					iLocal_2021[1] = vehicle::create_vehicle(joaat("schwarzer"), -11.3885f, -1080.687f, 25.6721f, 160.6359f, 1, true);
					vehicle::set_vehicle_colours(iLocal_2021[1], 37, 37);
					iLocal_2021[2] = vehicle::create_vehicle(joaat("bullet"), -17.3168f, -1079.296f, 25.6721f, 204.3207f, 1, true);
					vehicle::set_vehicle_colours(iLocal_2021[2], 52, 10);
					gameplay::clear_area_of_vehicles(-41.4259f, -1099.648f, 26.0534f, 4f, 0, 0, 0, 0, false);
					gameplay::clear_area_of_vehicles(-46.2594f, -1097.839f, 26.3444f, 4f, 0, 0, 0, 0, false);
					iLocal_2021[3] = vehicle::create_vehicle(joaat("baller"), -41.4259f, -1099.648f, 26.0534f, 132.3786f, 1, true);
					vehicle::set_vehicle_doors_locked(iLocal_2021[3], 10);
					vehicle::set_vehicle_is_considered_by_player(iLocal_2021[3], 0);
					vehicle::set_vehicle_colours(iLocal_2021[3], 25, 16);
					iLocal_2021[4] = vehicle::create_vehicle(joaat("schwarzer"), -46.2594f, -1097.839f, 26.3444f, 113.3786f, 1, true);
					vehicle::set_vehicle_doors_locked(iLocal_2021[4], 10);
					vehicle::set_vehicle_is_considered_by_player(iLocal_2021[4], 0);
					vehicle::set_vehicle_colours(iLocal_2021[4], 32, 17);
					streaming::set_model_as_no_longer_needed(joaat("baller"));
					streaming::set_model_as_no_longer_needed(joaat("schwarzer"));
					streaming::set_model_as_no_longer_needed(joaat("bullet"));
				}
				if (iParam2 || iParam1)
				{
					iLocal_1058 = object::get_closest_object_of_type(-29.13f, -1102.377f, 27.26f, 0.5f, joaat("prop_employee_month_01"), 1, 0, 1);
					if (entity::does_entity_exist(iLocal_1058))
					{
						entity::set_entity_visible(iLocal_1058, false, 0);
						iLocal_1059 = object::create_object_no_offset(joaat("prop_employee_month_02"), entity::get_entity_coords(iLocal_1058, 1), 1, true, false);
						entity::set_entity_rotation(iLocal_1059, 0f, 0f, -20f, 2, 1);
						streaming::set_model_as_no_longer_needed(joaat("prop_employee_month_02"));
					}
				}
				break;
			
			case 1:
				if (iParam1)
				{
					func_586(-27.8988f, -1083.528f, 25.5772f, 284f, 1, 0);
				}
				vehicle::set_all_vehicle_generators_active_in_area(Vector(25.85983f, -1098.932f, -43.78194f) - Vector(2.5625f, 6.75f, 9.75f), Vector(25.85983f, -1098.932f, -43.78194f) + Vector(2.5625f, 6.75f, 9.75f), false, 1);
				func_587(1);
				gameplay::clear_area_of_peds(-11.3885f, -1080.687f, 25.6721f, 100f, 0);
				func_147(1, 9, 0);
				streaming::request_model(joaat("baller"));
				streaming::request_model(joaat("schwarzer"));
				streaming::request_model(joaat("bullet"));
				streaming::request_model(joaat("prop_employee_month_02"));
				while (((!streaming::has_model_loaded(joaat("baller")) || !streaming::has_model_loaded(joaat("schwarzer"))) || !streaming::has_model_loaded(joaat("bullet"))) || !streaming::has_model_loaded(joaat("prop_employee_month_02")))
				{
					func_19(65, 0);
				}
				func_564(&(Local_1450[0 /*2*/]), -23.2436f, -1083.242f, 25.5872f, 250.0066f, 0, 0, 0, 0, 0, joaat("asterope"), 0, 145, 0);
				if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
				{
					entity::set_entity_health(Local_1450[0 /*2*/], 1600);
					if (vehicle::_get_vehicle_model_max_number_of_passengers(entity::get_entity_model(Local_1450[0 /*2*/])) > 1)
					{
						while (!func_563(&(Local_1071[2 /*14*/]), 19, Local_1450[0 /*2*/], 0, 1))
						{
							func_19(5, 0);
						}
						ped::set_ped_into_vehicle(player::player_ped_id(), Local_1450[0 /*2*/], -1);
					}
					else
					{
						while (!func_560(&(Local_1071[2 /*14*/]), 19, -27.3368f, -1084.988f, 25.5727f, 275.7097f, 1))
						{
							func_19(6, 0);
						}
					}
				}
				else
				{
					while (!func_560(&(Local_1071[2 /*14*/]), 19, -27.3368f, -1084.988f, 25.5727f, 275.7097f, 1))
					{
						func_19(6, 0);
					}
					if (!iParam1)
					{
						entity::set_entity_coords(player::player_ped_id(), -27.8988f, -1083.528f, 25.5772f, 1, false, 0, 1);
						entity::set_entity_heading(player::player_ped_id(), 284f);
					}
				}
				func_333(1);
				func_420(2);
				if (iParam1)
				{
					func_557(0, -1, 1);
				}
				gameplay::clear_area_of_vehicles(-11.3885f, -1080.687f, 25.6721f, 8f, 0, 0, 0, 0, false);
				iVar0 = vehicle::create_vehicle(joaat("baller"), -7.6801f, -1082.437f, 25.6721f, 159.3786f, 1, true);
				vehicle::set_vehicle_colours(iVar0, 3, 1);
				entity::set_vehicle_as_no_longer_needed(&iVar0);
				iVar0 = vehicle::create_vehicle(joaat("schwarzer"), -11.3885f, -1080.687f, 25.6721f, 160.6359f, 1, true);
				vehicle::set_vehicle_colours(iVar0, 37, 37);
				entity::set_vehicle_as_no_longer_needed(&iVar0);
				iVar0 = vehicle::create_vehicle(joaat("bullet"), -17.3168f, -1079.296f, 25.6721f, 204.3207f, 1, true);
				vehicle::set_vehicle_colours(iVar0, 52, 10);
				entity::set_vehicle_as_no_longer_needed(&iVar0);
				gameplay::clear_area_of_vehicles(-41.4259f, -1099.648f, 26.0534f, 4f, 0, 0, 0, 0, false);
				gameplay::clear_area_of_vehicles(-46.2594f, -1097.839f, 26.3444f, 4f, 0, 0, 0, 0, false);
				iVar0 = vehicle::create_vehicle(joaat("baller"), -41.4259f, -1099.648f, 26.0534f, 132.3786f, 1, true);
				vehicle::set_vehicle_doors_locked(iVar0, 10);
				vehicle::set_vehicle_is_considered_by_player(iVar0, 0);
				vehicle::set_vehicle_colours(iVar0, 25, 16);
				entity::set_vehicle_as_no_longer_needed(&iVar0);
				iVar0 = vehicle::create_vehicle(joaat("schwarzer"), -46.2594f, -1097.839f, 26.3444f, 113.3786f, 1, true);
				vehicle::set_vehicle_doors_locked(iVar0, 10);
				vehicle::set_vehicle_is_considered_by_player(iVar0, 0);
				vehicle::set_vehicle_colours(iVar0, 32, 17);
				entity::set_vehicle_as_no_longer_needed(&iVar0);
				streaming::set_model_as_no_longer_needed(joaat("baller"));
				streaming::set_model_as_no_longer_needed(joaat("schwarzer"));
				streaming::set_model_as_no_longer_needed(joaat("bullet"));
				if (iParam2 || iParam1)
				{
					iLocal_1058 = object::get_closest_object_of_type(-29.13f, -1102.377f, 27.26f, 0.5f, joaat("prop_employee_month_01"), 1, 0, 1);
					if (entity::does_entity_exist(iLocal_1058))
					{
						entity::set_entity_visible(iLocal_1058, false, 0);
						iLocal_1059 = object::create_object_no_offset(joaat("prop_employee_month_02"), entity::get_entity_coords(iLocal_1058, 1), 1, true, false);
						entity::set_entity_rotation(iLocal_1059, 0f, 0f, -20f, 2, 1);
						streaming::set_model_as_no_longer_needed(joaat("prop_employee_month_02"));
					}
				}
				break;
			
			case 2:
				if (iParam1)
				{
					func_586(-1133.841f, -1578.529f, 3.4006f, 198f, 1, 0);
				}
				else
				{
					entity::set_entity_coords(player::player_ped_id(), -1133.841f, -1578.529f, 3.4006f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 198f);
					streaming::load_scene(-1133.041f, -1574.603f, 3.3957f);
					system::wait(10);
				}
				func_147(1, 9, 0);
				gameplay::clear_area(-1133.041f, -1574.603f, 3.3957f, 120f, 1, 0, 0, false);
				func_587(2);
				func_553();
				entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
				{
					vehicle::request_vehicle_asset(entity::get_entity_model(Local_1450[0 /*2*/]), 3);
					while (!vehicle::has_vehicle_asset_loaded(entity::get_entity_model(Local_1450[0 /*2*/])))
					{
						system::wait(0);
					}
				}
				if (func_551())
				{
					if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
					{
						ped::set_ped_into_vehicle(player::player_ped_id(), Local_1450[0 /*2*/], -1);
						vehicle::set_vehicle_engine_on(Local_1450[0 /*2*/], true, 1, 0);
						while (!func_563(&(Local_1071[2 /*14*/]), 19, Local_1450[0 /*2*/], 0, 1))
						{
							func_19(7, 0);
						}
					}
				}
				else
				{
					while (!func_560(&(Local_1071[2 /*14*/]), 19, -1136.033f, -1579.871f, 3.3956f, 187f, 1))
					{
						func_19(8, 0);
					}
				}
				func_333(1);
				func_301(Local_1071[2 /*14*/]);
				func_420(2);
				while (iLocal_2273 != 1)
				{
					func_23();
					func_19(9, 0);
				}
				if (iParam1)
				{
					func_557(0, -1, 1);
				}
				break;
			
			case 3:
				func_147(1, 9, 0);
				func_553();
				entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				if (player::is_player_playing(player::player_id()))
				{
					entity::set_entity_coords(player::player_ped_id(), -1125.629f, -1593.48f, 3.355f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 189f);
					gameplay::clear_area(-1125.629f, -1593.48f, 3.355f, 120f, 1, 0, 0, false);
					system::wait(1);
				}
				func_587(3);
				while (!func_560(&(Local_1071[2 /*14*/]), 19, -1129.541f, -1590.574f, 3.3645f, 201f, 1))
				{
					func_19(7, 0);
				}
				func_333(1);
				if (!ui::does_blip_exist(Local_1071[2 /*14*/].f_1))
				{
					Local_1071[2 /*14*/].f_1 = func_258(Local_1071[2 /*14*/], 0, 145);
				}
				func_420(2);
				func_506(42, 89);
				func_126(57, 1);
				func_126(49, 1);
				func_417(0, 17, 1, 0);
				func_417(1, 19, 0, 1);
				func_417(6, 24, 1, 0);
				func_417(10, 48, 0, 1);
				func_124(10, 48, 1);
				func_550(0, 13, 1);
				func_550(1, 14, 1);
				func_550(2, 15, 1);
				func_126(57, 1);
				func_301(Local_1071[2 /*14*/]);
				break;
			
			case 4:
				func_147(1, 9, 0);
				func_587(4);
				func_553();
				entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				if (player::is_player_playing(player::player_id()))
				{
					entity::set_entity_coords(player::player_ped_id(), -1115.074f, -1604.652f, 3.4684f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 208f);
					gameplay::clear_area(-1115.074f, -1604.652f, 3.4684f, 120f, 1, 0, 0, false);
					streaming::load_scene(-1115.074f, -1604.652f, 3.4684f);
					system::wait(10);
				}
				while (!func_560(&(Local_1071[2 /*14*/]), 19, -1109.832f, -1610.525f, 3.5653f, 215f, 1))
				{
					func_19(7, 0);
				}
				func_333(1);
				func_122();
				ai::task_follow_waypoint_recording(0, "arm2", 0, 0, -1);
				func_121(Local_1071[2 /*14*/], 0);
				if (!ui::does_blip_exist(Local_1071[2 /*14*/].f_1))
				{
					Local_1071[2 /*14*/].f_1 = func_258(Local_1071[2 /*14*/], 0, 145);
				}
				func_420(2);
				func_506(42, 89);
				func_126(57, 1);
				func_126(67, 1);
				func_417(0, 17, 1, 0);
				func_417(1, 19, 1, 0);
				func_417(2, 20, 1, 0);
				func_417(3, 21, 1, 0);
				func_417(4, 22, 1, 0);
				func_417(6, 24, 1, 0);
				func_417(24, 42, 1, 0);
				func_550(0, 13, 1);
				func_550(1, 14, 1);
				func_550(2, 15, 1);
				func_550(3, 16, 1);
				func_550(4, 17, 1);
				func_550(5, 18, 1);
				func_550(6, 19, 1);
				func_417(10, 48, 0, 1);
				func_124(10, 48, 4);
				iLocal_47 = 5;
				func_414("ARM2_DRIVE_RESTART", 0, "ARM2_FIGHT_START");
				func_301(Local_1071[2 /*14*/]);
				break;
			
			case 5:
				func_147(1, 9, 0);
				func_587(5);
				func_553();
				entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				if (player::is_player_playing(player::player_id()))
				{
					entity::set_entity_coords(player::player_ped_id(), -1078.004f, -1661.689f, 3.3987f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 204.7912f);
					gameplay::clear_area(-1077.496f, -1679.384f, 3.5754f, 120f, 1, 0, 0, false);
					streaming::load_scene(-1078.004f, -1661.689f, 3.3987f);
					system::wait(1);
				}
				while (!func_560(&(Local_1071[2 /*14*/]), 19, -1074.568f, -1666.3f, 3.4449f, 218.3193f, 1))
				{
					func_19(7, 0);
				}
				func_333(1);
				if (!ui::does_blip_exist(Local_1071[2 /*14*/].f_1))
				{
					Local_1071[2 /*14*/].f_1 = func_258(Local_1071[2 /*14*/], 0, 145);
				}
				func_420(2);
				func_506(42, 89);
				func_126(57, 1);
				func_126(67, 1);
				func_417(0, 17, 1, 0);
				func_417(1, 19, 1, 0);
				func_417(2, 20, 1, 0);
				func_417(3, 21, 1, 0);
				func_417(4, 22, 1, 0);
				func_417(6, 24, 1, 0);
				func_417(7, 25, 1, 0);
				func_417(9, 27, 1, 0);
				func_417(10, 28, 1, 0);
				func_417(11, 29, 1, 0);
				func_417(12, 30, 1, 0);
				func_417(13, 31, 1, 0);
				func_417(15, 33, 1, 0);
				func_417(18, 32, 1, 0);
				func_417(19, 33, 1, 0);
				func_550(0, 13, 1);
				func_550(1, 14, 1);
				func_550(2, 15, 1);
				func_550(3, 16, 1);
				func_550(4, 17, 1);
				func_550(5, 18, 1);
				func_550(6, 19, 1);
				func_550(7, 20, 1);
				func_550(8, 21, 1);
				func_550(9, 22, 1);
				func_550(10, 24, 1);
				func_550(11, 26, 1);
				func_550(12, 27, 1);
				func_550(16, 32, 1);
				func_417(24, 42, 1, 0);
				func_417(10, 48, 0, 1);
				func_124(10, 48, 6);
				iLocal_47 = 7;
				func_414("ARM2_GARAGES_RESTART", 0, "ARM2_FIGHT_START");
				func_301(Local_1071[2 /*14*/]);
				break;
			
			case 6:
				if (iParam1)
				{
					func_586(-1072.456f, -1675.523f, 3.4485f, 113f, 1, 0);
				}
				else if (player::is_player_playing(player::player_id()))
				{
					entity::set_entity_coords(player::player_ped_id(), -1072.456f, -1675.523f, 3.4485f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 113f);
					streaming::load_scene(-1072.456f, -1675.523f, 3.4485f);
					system::wait(10);
				}
				gameplay::clear_area(-1077.496f, -1679.384f, 3.5754f, 120f, 1, 0, 0, false);
				func_147(1, 9, 0);
				func_553();
				entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				func_587(5);
				while (!func_560(&(Local_1071[2 /*14*/]), 19, -1074.48f, -1673.231f, 3.4137f, 130f, 1))
				{
					func_19(7, 0);
				}
				func_333(1);
				if (!ui::does_blip_exist(Local_1071[2 /*14*/].f_1))
				{
					Local_1071[2 /*14*/].f_1 = func_258(Local_1071[2 /*14*/], 0, 145);
				}
				func_420(2);
				func_414("ARM2_DOOR_RESTART", 0, "ARM2_FIGHT_START");
				func_301(Local_1071[2 /*14*/]);
				if (iParam1)
				{
					func_557(0, -1, 1);
				}
				break;
			
			case 7:
				if (iParam1)
				{
					func_586(-1077.851f, -1678.9f, 3.5754f, 346f, 1, 0);
				}
				else
				{
					entity::set_entity_coords(player::player_ped_id(), -1077.851f, -1678.9f, 3.5754f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 346.6853f);
					cam::set_gameplay_cam_relative_heading(0f);
					cam::set_gameplay_cam_relative_pitch(-10f, 1065353216);
					streaming::load_scene(-1077.496f, -1679.384f, 3.5754f);
					system::wait(10);
				}
				gameplay::clear_area_of_peds(-1077.851f, -1678.9f, 3.5754f, 100f, 0);
				ped::set_create_random_cops(false);
				func_549(1, 9, 0);
				func_553();
				if (!Global_88174)
				{
					iLocal_1982 = object::create_pickup_rotate(joaat("pickup_weapon_pistol"), -1075.798f, -1675.717f, 3.5903f, -90f, 0f, -15f, 0, 145, 2, 1, 0);
					if (!func_510(player::player_ped_id(), 0))
					{
						iLocal_2030 = func_520(iLocal_1982);
					}
				}
				entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				if (player::is_player_playing(player::player_id()))
				{
					if (Global_88174)
					{
						if (weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_pistol"), 0))
						{
							iVar1 = (75 - weapon::get_ammo_in_ped_weapon(player::player_ped_id(), joaat("weapon_pistol")));
						}
						else
						{
							iVar1 = 75;
						}
						if (iVar1 > 0)
						{
							weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_pistol"), iVar1, true, true);
						}
						weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_pistol"), true);
					}
					gameplay::clear_area(-1077.496f, -1679.384f, 3.5754f, 120f, 1, 0, 0, false);
				}
				func_587(6);
				while (!object::_does_door_exist(-967780114))
				{
					func_111(1);
					func_19(10, 0);
				}
				func_330(8, 63, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
				while (!func_248(8, 63))
				{
					func_330(8, 63, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0);
					func_19(11, 0);
				}
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					ped::set_ped_using_action_mode(player::player_ped_id(), true, -1, 0);
				}
				streaming::request_anim_dict("DEAD");
				while (!streaming::has_anim_dict_loaded("DEAD"))
				{
					func_19(17, 0);
				}
				iLocal_1917 = ped::create_ped(26, iLocal_2219, -1070.169f, -1672.87f, 3.4807f, 121f, 1, true);
				audio::disable_ped_pain_audio(iLocal_1917, 1);
				ped::set_ped_default_component_variation(iLocal_1917);
				ai::task_play_anim(iLocal_1917, "dead", "dead_a", 1000f, -1000f, -1, 1, 0f, 0, 0, 0);
				ped::_0x2208438012482A1A(iLocal_1917, 1, 0);
				func_19(12, 0);
				if (!ped::is_ped_dead_or_dying(iLocal_1917, 1))
				{
					entity::set_entity_health(iLocal_1917, 0);
				}
				streaming::remove_anim_dict("DEAD");
				while (!func_560(&(Local_1071[2 /*14*/]), 19, -1077.802f, -1677.212f, 3.5754f, 312.619f, 1))
				{
					func_19(13, 0);
				}
				func_333(1);
				ped::force_ped_motion_state(Local_1071[2 /*14*/], -530524, false, 0, 0);
				ped::_0x2208438012482A1A(Local_1071[2 /*14*/], 0, 0);
				weapon::give_weapon_to_ped(Local_1071[2 /*14*/], joaat("weapon_microsmg"), 2000, true, true);
				if (!ui::does_blip_exist(Local_1071[2 /*14*/].f_1))
				{
					Local_1071[2 /*14*/].f_1 = func_258(Local_1071[2 /*14*/], 0, 145);
				}
				func_417(31, 85, 1, 0);
				if (Global_88174)
				{
					func_548(2, 13, 1);
				}
				func_414("ARM2_FIGHT_RESTART", 0, "ARM2_CAR");
				if (iParam1)
				{
					func_557(0, -1, 1);
				}
				break;
			
			case 8:
				ped::set_create_random_cops(false);
				func_147(1, 9, 0);
				func_553();
				entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				if (player::is_player_playing(player::player_id()))
				{
					entity::set_entity_coords(player::player_ped_id(), -1085.542f, -1647.488f, 3.3985f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 51.1491f);
					gameplay::clear_area(-1077.496f, -1679.384f, 3.5754f, 120f, 1, 0, 0, false);
					streaming::load_scene(-1089.814f, -1649.056f, 3.3986f);
					system::wait(10);
					if (!iParam1)
					{
						if (!weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_pistol"), 0))
						{
							weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_pistol"), 200, false, true);
						}
						if (!weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_pumpshotgun"), 0))
						{
							weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_pumpshotgun"), 200, false, true);
						}
					}
				}
				func_587(6);
				if (player::is_player_playing(player::player_id()))
				{
					player::set_wanted_level_multiplier(0f);
					player::set_max_wanted_level(0);
					player::set_player_wanted_level(player::player_id(), 0, 0);
				}
				while (!func_560(&(Local_1071[2 /*14*/]), 19, -1086.467f, -1649.203f, 3.3985f, 51.1439f, 1))
				{
					func_19(7, 0);
				}
				func_333(1);
				if (!ped::is_ped_injured(player::player_ped_id()))
				{
					ped::set_ped_using_action_mode(player::player_ped_id(), true, -1, 0);
				}
				weapon::give_weapon_to_ped(Local_1071[2 /*14*/], joaat("weapon_microsmg"), 2000, true, true);
				ped::set_ped_ducking(Local_1071[2 /*14*/], 1);
				if (ui::does_blip_exist(iLocal_2029))
				{
					ui::remove_blip(&iLocal_2029);
				}
				if (!ui::does_blip_exist(Local_1071[2 /*14*/].f_1))
				{
					Local_1071[2 /*14*/].f_1 = func_258(Local_1071[2 /*14*/], 0, 145);
				}
				if (weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_pistol"), 0))
				{
					iVar2 = (75 - weapon::get_ammo_in_ped_weapon(player::player_ped_id(), joaat("weapon_pistol")));
				}
				else
				{
					iVar2 = 75;
				}
				if (iVar2 > 0)
				{
					weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_pistol"), iVar2, true, true);
				}
				iLocal_2221 = 1;
				func_506(90, 136);
				func_126(110, 1);
				func_126(91, 1);
				func_126(92, 1);
				func_126(93, 1);
				func_126(94, 1);
				func_126(95, 1);
				func_126(96, 1);
				func_126(98, 1);
				func_126(107, 1);
				func_126(110, 1);
				func_126(124, 1);
				func_126(125, 1);
				func_126(132, 0);
				func_417(3, 52, 1, 0);
				func_417(7, 53, 1, 0);
				func_417(10, 55, 1, 0);
				func_417(12, 58, 1, 0);
				func_417(13, 56, 1, 0);
				func_417(4, 67, 1, 0);
				func_417(5, 68, 1, 0);
				func_417(6, 69, 1, 0);
				func_417(9, 70, 1, 0);
				func_417(11, 71, 1, 0);
				func_417(15, 72, 1, 0);
				func_550(0, 40, 1);
				func_550(1, 41, 1);
				func_550(2, 43, 1);
				func_550(3, 42, 1);
				func_550(4, 44, 1);
				func_550(6, 46, 1);
				func_550(7, 47, 1);
				func_550(8, 45, 1);
				func_550(9, 49, 1);
				func_550(23, 50, 1);
				func_548(0, 11, 1);
				func_548(1, 12, 1);
				func_548(2, 13, 1);
				func_548(3, 15, 1);
				func_420(2);
				func_414("ARM2_SKIP_RESTART", 1, "ARM2_CAR");
				break;
			
			case 9:
				if (iParam1)
				{
					func_586(-1118.205f, -1602.761f, 3.3986f, 30f, 1, 0);
				}
				else if (player::is_player_playing(player::player_id()))
				{
					entity::set_entity_coords(player::player_ped_id(), -1118.205f, -1602.761f, 3.3986f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 30f);
					streaming::load_scene(-1118.205f, -1602.761f, 3.3986f);
					player::set_player_control(player::player_id(), false, 0);
					system::wait(10);
				}
				func_420(2);
				func_147(1, 10, 0);
				gameplay::clear_area(-1118.205f, -1602.761f, 3.3986f, 100f, 1, 0, 0, false);
				func_587(7);
				func_420(2);
				func_553();
				entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				while (!func_367(&(Local_1450[4 /*2*/]), 1, -1126.017f, -1575.357f, 3.3486f, 301f, 1, 2))
				{
					func_19(14, 0);
				}
				streaming::request_model(iLocal_2219);
				while (!func_560(&(Local_1071[2 /*14*/]), 19, -1121.57f, -1603.136f, 3.3986f, 38f, 1))
				{
					func_19(7, 0);
				}
				func_333(1);
				ai::clear_ped_tasks_immediately(Local_1071[2 /*14*/]);
				weapon::give_weapon_to_ped(Local_1071[2 /*14*/], joaat("weapon_microsmg"), 2000, true, true);
				func_147(6, 12, 0);
				func_147(7, 12, 0);
				func_547(6, 1);
				func_547(7, 1);
				func_111(6);
				func_111(7);
				if (vehicle::is_vehicle_driveable(Local_1450[4 /*2*/], 0))
				{
					while (!streaming::has_model_loaded(iLocal_2219))
					{
						func_19(16, 0);
					}
					func_384(8, iLocal_2220, vLocal_1068, 0f, Local_1450[4 /*2*/], -1, 0, 0, 0, 0);
					entity::set_entity_health(Local_1071[8 /*14*/], 100);
					ped::set_blocking_of_non_temporary_events(Local_1071[8 /*14*/], true);
					ped::set_ped_money(Local_1071[8 /*14*/], 80);
				}
				if (!entity::is_entity_dead(Local_1450[4 /*2*/], 0))
				{
					vehicle::set_vehicle_tyres_can_burst(Local_1450[4 /*2*/], false);
				}
				if (weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_pistol"), 0))
				{
					iVar3 = (75 - weapon::get_ammo_in_ped_weapon(player::player_ped_id(), joaat("weapon_pistol")));
				}
				else
				{
					iVar3 = 75;
				}
				if (iVar3 > 0)
				{
					weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_pistol"), iVar3, true, true);
				}
				func_417(7, 100, 1, 0);
				func_414("ARM2_FIGHT_END_RESTART", 0, "ARM2_CHASE_START");
				if (iParam1)
				{
					func_557(0, -1, 1);
				}
				else
				{
					player::set_player_control(player::player_id(), true, 0);
				}
				break;
			
			case 10:
				if (iParam1)
				{
					func_586(-1002.029f, -1263.15f, 4.881f, 113f, 1, 0);
				}
				gameplay::clear_area(-1002.029f, -1263.15f, 4.881f, 100f, 1, 0, 0, false);
				func_420(2);
				func_564(&(Local_1450[0 /*2*/]), -1000.029f, -1263.15f, 4.881f, 301f, 0, 0, 1, 0, 1, joaat("asterope"), 0, 145, 1);
				entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				while (!func_367(&(Local_1450[4 /*2*/]), 1, -991.7125f, -1257.027f, 4.7688f, 281f, 1, 2))
				{
					system::wait(0);
				}
				func_587(9);
				if (!entity::is_entity_dead(Local_1450[4 /*2*/], 0))
				{
					vehicle::set_vehicle_tyres_can_burst(Local_1450[4 /*2*/], false);
					Local_1450[4 /*2*/].f_1 = func_403(Local_1450[4 /*2*/], 0, 0);
				}
				if (!entity::is_entity_dead(Local_1450[0 /*2*/], 0))
				{
					if (player::is_player_playing(player::player_id()))
					{
						ped::set_ped_into_vehicle(player::player_ped_id(), Local_1450[0 /*2*/], -1);
					}
					while (!func_563(&(Local_1071[2 /*14*/]), 19, Local_1450[0 /*2*/], 0, 1))
					{
						func_19(7, 0);
					}
					func_333(1);
				}
				if (iParam1)
				{
					func_557(0, -1, 1);
				}
				break;
			
			case 11:
				if (iParam1)
				{
					func_586(-19.0893f, -1404.932f, 28.3219f, 113f, 1, 0);
				}
				else
				{
					entity::set_entity_coords(player::player_ped_id(), -19.0893f, -1404.932f, 28.3219f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 113f);
					streaming::load_scene(-17.0893f, -1404.932f, 28.3219f);
					system::wait(10);
				}
				gameplay::clear_area(-19.0893f, -1404.932f, 28.3219f, 100f, 1, 0, 0, false);
				func_420(2);
				while (!func_367(&(Local_1450[0 /*2*/]), 1, -17.0893f, -1404.932f, 28.3219f, 270f, 1, 0))
				{
					system::wait(0);
				}
				while (!func_367(&(Local_1450[4 /*2*/]), 1, -5.8908f, -1391.768f, 28.3421f, 185.974f, 1, 2))
				{
					system::wait(0);
				}
				func_587(10);
				if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
				{
					entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				}
				if (!entity::is_entity_dead(Local_1450[4 /*2*/], 0))
				{
					vehicle::set_vehicle_tyres_can_burst(Local_1450[4 /*2*/], false);
					if (player::is_player_playing(player::player_id()))
					{
						ped::set_ped_into_vehicle(player::player_ped_id(), Local_1450[4 /*2*/], -1);
					}
				}
				if (iParam1)
				{
					func_557(0, -1, 1);
				}
				break;
			
			case 12:
				if (player::is_player_playing(player::player_id()))
				{
					entity::set_entity_coords(player::player_ped_id(), -19.9686f, -1454.151f, 29.5843f, 1, false, 0, 1);
					entity::set_entity_heading(player::player_ped_id(), 231.0765f);
				}
				while (!func_367(&(Local_1450[0 /*2*/]), 1, -17.0893f, -1404.932f, 28.3219f, 270.1911f, 1, 0))
				{
					system::wait(0);
				}
				if (vehicle::is_vehicle_driveable(Local_1450[0 /*2*/], 0))
				{
					entity::set_entity_health(Local_1450[0 /*2*/], 1600);
				}
				func_587(11);
				entity::set_vehicle_as_no_longer_needed(&(Local_1450[0 /*2*/]));
				streaming::load_scene(-19.9686f, -1454.151f, 29.5843f);
				system::wait(10);
				break;
		}
		gameplay::clear_area_of_peds(entity::get_entity_coords(player::player_ped_id(), 1), 200f, 0);
		system::wait(0);
		cam::set_gameplay_cam_relative_heading(0f);
		cam::set_gameplay_cam_relative_pitch(-10f, 1065353216);
	}
}

bool func_547(int iParam0, int iParam1)//Position - 0x54E7A
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		if (Local_1708[iVar0 /*6*/] == iParam0)
		{
			if (Local_1708[iVar0 /*6*/].f_1 == 1)
			{
				Local_1708[iVar0 /*6*/].f_2 = iParam1;
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

void func_548(int iParam0, int iParam1, int iParam2)//Position - 0x54EBE
{
	Local_292[iParam0 /*4*/].f_1 = iParam2;
	Local_292[iParam0 /*4*/] = iParam1;
}

void func_549(int iParam0, int iParam1, int iParam2)//Position - 0x54EDA
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		if (Local_1708[iVar0 /*6*/] == iParam0)
		{
			Local_1708[iVar0 /*6*/].f_1 = 1;
			Local_1708[iVar0 /*6*/].f_2 = 0;
			Local_1708[iVar0 /*6*/].f_3 = 0;
			Local_1708[iVar0 /*6*/].f_4 = iParam2;
			Local_1708[iVar0 /*6*/].f_5 = iParam1;
			iVar1 = true;
		}
		iVar0++;
	}
	if (!iVar1)
	{
		func_147(iParam0, iParam1, iParam2);
	}
}

void func_550(int iParam0, int iParam1, int iParam2)//Position - 0x54F49
{
	Local_140[iParam0 /*6*/].f_1 = iParam2;
	Local_140[iParam0 /*6*/] = iParam1;
}

int func_551()//Position - 0x54F63
{
	return func_552(&(Global_95894.f_2311));
}

bool func_552(var uParam0)//Position - 0x54F76
{
	if (uParam0->f_12.f_66 == 0)
	{
		return false;
	}
	if (!func_339(uParam0->f_12.f_66, 0))
	{
		return false;
	}
	if (uParam0->f_12.f_66 == joaat("stunt") && func_444(*uParam0, 1694.62f, 3276.27f, 41.31f, 1056964608, 0))
	{
		return false;
	}
	return true;
}

void func_553()//Position - 0x54FD5
{
	int iVar0;
	var uVar1;
	var uVar4;
	
	if (func_551())
	{
		if (!func_554(func_556(), 13f, 30f, 20f, 1))
		{
			iVar0 = true;
		}
	}
	if (iVar0)
	{
		func_564(&(Local_1450[0 /*2*/]), -1149.331f, -1587.637f, 3.4344f, 305f, 0, 0, 1, 0, 1, joaat("asterope"), 0, 145, 1);
	}
	else
	{
		func_564(&(Local_1450[0 /*2*/]), -1133.479f, -1574.017f, 3.3788f, 300f, 0, 0, 1, 0, 1, joaat("asterope"), 0, 145, 1);
	}
	vehicle::_0xDF7E3EEB29642C38(Local_1450[0 /*2*/], &uVar1, &uVar4);
}

bool func_554(int iParam0, vector3 vParam1, int iParam4)//Position - 0x55071
{
	vector3 vVar0;
	vector3 vVar3;
	
	if (iParam0 == 0)
	{
		return false;
	}
	if (iParam4 == 1)
	{
		vParam1 = { func_555() };
	}
	gameplay::get_model_dimensions(iParam0, &vVar0, &vVar3);
	if ((vVar3.x - vVar0.x) > vParam1.x)
	{
		return false;
	}
	else if ((vVar3.y - vVar0.y) > vParam1.y)
	{
		return false;
	}
	else if ((vVar3.y - vVar0.y) > vParam1.y)
	{
		return false;
	}
	return true;
}

Vector3 func_555()//Position - 0x550DB
{
	return 2.55f, 5.665f, 2.55f;
}

var func_556()//Position - 0x550F2
{
	return Global_95894.f_2311.f_12.f_66;
}

void func_557(int iParam0, int iParam1, int iParam2)//Position - 0x55105
{
	if (func_595() && func_559())
	{
		while (Global_91401 != 6)
		{
			system::wait(0);
		}
		gameplay::set_game_paused(false);
		if (entity::does_entity_exist(player::player_ped_id()))
		{
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				ped::clear_ped_wetness(player::player_ped_id());
			}
		}
		if (iParam0 != 0)
		{
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				if (entity::does_entity_exist(iParam0))
				{
					if (vehicle::is_vehicle_driveable(iParam0, 0))
					{
						if (!ped::is_ped_in_vehicle(player::player_ped_id(), iParam0, 0))
						{
							ped::set_ped_into_vehicle(player::player_ped_id(), iParam0, iParam1);
							cam::set_gameplay_cam_relative_pitch(0f, 1065353216);
							cam::set_gameplay_cam_relative_heading(0f);
							system::wait(0);
						}
					}
				}
			}
		}
		if (iParam2 == 1)
		{
			if (player::is_player_playing(player::player_id()))
			{
				player::set_player_control(player::player_id(), true, 0);
			}
		}
		graphics::_stop_all_screen_effects();
		func_558(0);
	}
}

void func_558(int iParam0)//Position - 0x551C9
{
	if (iParam0 == 1)
	{
		gameplay::set_bit(&(Global_91406.f_20), 13);
	}
	else
	{
		gameplay::clear_bit(&(Global_91406.f_20), 13);
	}
}

int func_559()//Position - 0x551F2
{
	return gameplay::is_bit_set(Global_91406.f_20, 13);
}

bool func_560(int iParam0, int iParam1, vector3 vParam2, float fParam5, int iParam6)//Position - 0x55206
{
	int iVar0;
	
	if (!func_14(iParam1))
	{
		iVar0 = func_562(iParam1);
		streaming::request_model(iVar0);
		if (streaming::has_model_loaded(iVar0))
		{
			if (entity::does_entity_exist(*iParam0))
			{
				ped::delete_ped(iParam0);
			}
			*iParam0 = ped::create_ped(26, iVar0, vParam2, fParam5, 0, false);
			ped::set_ped_default_component_variation(*iParam0);
			if (iVar0 == joaat("ig_lamardavis"))
			{
				if (ped::get_ped_drawable_variation(*iParam0, 3) == 0)
				{
					ped::set_ped_component_variation(*iParam0, 5, 2, 0, 0);
				}
			}
			func_561(*iParam0, iParam1);
			if (iParam6)
			{
				streaming::set_model_as_no_longer_needed(iVar0);
			}
			return true;
		}
	}
	return false;
}

bool func_561(var uParam0, int iParam1)//Position - 0x55294
{
	int iVar0;
	
	iVar0 = 7;
	if (iParam1 == 19)
	{
		iVar0 = 3;
	}
	else if (iParam1 == 14)
	{
		iVar0 = 4;
	}
	else if (iParam1 == 17)
	{
		iVar0 = 5;
	}
	else
	{
		iVar0 = 7;
		return false;
	}
	Global_87573[(iVar0 - 3)] = uParam0;
	return true;
}

int func_562(int iParam0)//Position - 0x552DA
{
	if (!func_14(iParam0))
	{
		return Global_101553.f_32740[iParam0 /*29*/];
	}
	else if (iParam0 != 145)
	{
	}
	return 0;
}

bool func_563(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x55305
{
	int iVar0;
	
	if (!func_14(iParam1))
	{
		iVar0 = func_562(iParam1);
		streaming::request_model(iVar0);
		if (streaming::has_model_loaded(iVar0))
		{
			if (entity::does_entity_exist(*iParam0))
			{
				ped::delete_ped(iParam0);
			}
			if (entity::does_entity_exist(iParam2) && vehicle::is_vehicle_driveable(iParam2, 0))
			{
				*iParam0 = ped::create_ped_inside_vehicle(iParam2, 26, iVar0, iParam3, 0, false);
				ped::set_ped_default_component_variation(*iParam0);
				func_561(*iParam0, iParam1);
				if (iParam4)
				{
					streaming::set_model_as_no_longer_needed(iVar0);
				}
			}
			return true;
		}
	}
	return false;
}

void func_564(int iParam0, vector3 vParam1, float fParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)//Position - 0x55385
{
	int iVar0;
	
	iVar0 = 1;
	if (!func_595() || !func_551())
	{
		iVar0 = 0;
	}
	if (iVar0 == 1)
	{
		if (!func_583(iParam6, iParam7, iParam8, iParam13))
		{
			iVar0 = 0;
		}
	}
	if (iVar0 == 1)
	{
		func_581();
		while (!func_580())
		{
			system::wait(0);
		}
		*iParam0 = func_570(vParam1, fParam4);
	}
	else if (iParam9 == 1)
	{
		if (func_74(vParam1, 0f, 0f, 0f, 0))
		{
			vParam1 = { Global_95894.f_2311 };
			fParam4 = Global_95894.f_2311.f_6;
		}
		gameplay::clear_area(vParam1, 5f, 1, 0, 0, false);
		func_566(vParam1, 5f, 0);
		if (func_14(iParam12))
		{
			func_565(iParam12, 0);
			while (!func_367(iParam0, iParam12, vParam1, fParam4, 1, 0))
			{
				system::wait(0);
			}
		}
		else
		{
			streaming::request_model(iParam10);
			while (!streaming::has_model_loaded(iParam10))
			{
				system::wait(0);
			}
			*iParam0 = vehicle::create_vehicle(iParam10, vParam1, fParam4, 1, true);
			if (entity::does_entity_exist(*iParam0) && !entity::is_entity_dead(*iParam0, 0))
			{
				if (iParam11 == 0)
				{
					vehicle::set_vehicle_colour_combination(*iParam0, 0);
				}
				else if (iParam11 > 0)
				{
					vehicle::set_vehicle_colours(*iParam0, iParam11, iParam11);
				}
			}
			streaming::set_model_as_no_longer_needed(iParam10);
		}
	}
	if (iParam5 == 1)
	{
		if (((entity::does_entity_exist(*iParam0) && !entity::is_entity_dead(*iParam0, 0)) && entity::does_entity_exist(player::player_ped_id())) && !entity::is_entity_dead(player::player_ped_id(), 0))
		{
			ped::set_ped_into_vehicle(player::player_ped_id(), *iParam0, -1);
			vehicle::set_vehicle_on_ground_properly(*iParam0);
		}
	}
}

void func_565(int iParam0, int iParam1)//Position - 0x55513
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 9)
	{
		if (entity::does_entity_exist(Global_89070[iVar0]))
		{
			if (iParam0 == 145 || Global_89080[iVar0] == iParam0)
			{
				if (iParam1 == 0 || entity::get_entity_model(Global_89070[iVar0]) == func_47(iParam0, iParam1))
				{
					if (!ped::is_ped_in_vehicle(player::player_ped_id(), Global_89070[iVar0], 0))
					{
						entity::set_entity_as_mission_entity(Global_89070[iVar0], false, 1);
						vehicle::delete_vehicle(&(Global_89070[iVar0]));
						Global_89080[iVar0] = 145;
					}
				}
			}
		}
		iVar0++;
	}
}

void func_566(vector3 vParam0, float fParam3, int iParam4)//Position - 0x555B1
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 68)
	{
		if (func_351(&(Global_68446.f_555[0 /*21*/]), iVar0))
		{
			if (gameplay::get_distance_between_coords(vParam0, Global_68446.f_555[0 /*21*/], iParam4) <= fParam3)
			{
				func_567(iVar0);
			}
		}
		iVar0++;
	}
}

void func_567(int iParam0)//Position - 0x55601
{
	int iVar0;
	
	if (iParam0 == -1)
	{
		return;
	}
	if (func_351(&(Global_68446.f_555[0 /*21*/]), iParam0))
	{
		if (entity::does_entity_exist(Global_68446.f_139[iParam0]))
		{
			iVar0 = true;
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				if (vehicle::is_vehicle_driveable(Global_68446.f_139[iParam0], 0))
				{
					if (ped::is_ped_in_vehicle(player::player_ped_id(), Global_68446.f_139[iParam0], 0))
					{
						iVar0 = false;
					}
				}
			}
			if (iVar0)
			{
				entity::set_entity_as_mission_entity(Global_68446.f_139[iParam0], true, 1);
				vehicle::delete_vehicle(&(Global_68446.f_139[iParam0]));
			}
		}
		Global_68446[iParam0] = 1;
		if (gameplay::is_bit_set(Global_68446.f_555[0 /*21*/].f_9, 13))
		{
			if (((((iParam0 == 24 && func_355(iParam0, 0)) && Global_69355.f_66 == 0) && Global_101553.f_18972.f_1958[Global_68446.f_555[0 /*21*/].f_14] != 0) && Global_101553.f_18972.f_1958[Global_68446.f_555[0 /*21*/].f_14] > 3) && (!func_568(0, Global_68446.f_555[0 /*21*/].f_12) || !func_568(1, Global_68446.f_555[0 /*21*/].f_12)))
			{
				func_356(&(Global_101553.f_18972.f_69[Global_68446.f_555[0 /*21*/].f_14 /*78*/]), &Global_69355);
				Global_69433 = Global_101553.f_18972.f_5591;
			}
			func_353(iParam0, 0);
		}
	}
}

int func_568(int iParam0, int iParam1)//Position - 0x55773
{
	int iVar0;
	
	switch (iParam1)
	{
		case 0:
			iVar0 = 0;
			break;
		
		case 1:
			iVar0 = 1;
			break;
		
		case 2:
			iVar0 = 2;
			break;
	}
	if (iParam0 < 0 || iParam0 >= func_569(&(Global_101553.f_18972.f_5038[iVar0 /*157*/])))
	{
		return 0;
	}
	return func_339(Global_101553.f_18972.f_5038[iVar0 /*157*/][iParam0 /*78*/].f_66, 0);
}

var func_569(var uParam0)//Position - 0x557E5
{
	return *uParam0;
}

int func_570(vector3 vParam0, float fParam3)//Position - 0x557F0
{
	return func_571(&(Global_95894.f_2311), vParam0, fParam3, 0);
}

int func_571(var uParam0, vector3 vParam1, float fParam4, int iParam5)//Position - 0x5580A
{
	int iVar0;
	vector3 vVar1;
	int iVar4;
	var uVar5;
	int iVar8;
	
	if (func_552(uParam0))
	{
		if (func_74(vParam1, 0f, 0f, 0f, 0))
		{
			vParam1 = { *uParam0 };
			fParam4 = uParam0->f_6;
		}
		if (uParam0->f_12.f_66 == joaat("monster") || uParam0->f_12.f_66 == joaat("marshall"))
		{
			if (object::is_point_in_angled_area(vParam1, -816.8716f, 185.6238f, 71.40275f, -807.4894f, 189.3762f, 75.27323f, 6.5f, 0, true))
			{
				vParam1 = { -850.93f, 158.82f, 65.7f };
				fParam4 = 89.5f;
			}
		}
		if (func_579(uParam0))
		{
			gameplay::clear_area(vParam1, 5f, 1, 0, 0, false);
			func_566(vParam1, 5f, 0);
			iVar0 = vehicle::create_vehicle(uParam0->f_12.f_66, vParam1, fParam4, 1, true);
			if (entity::does_entity_exist(iVar0))
			{
				vVar1 = { entity::get_entity_coords(iVar0, 1) };
				if (system::vdist2(vVar1, -1151.15f, -1530.32f, 7.48925f) <= 3f)
				{
					entity::set_entity_coords_no_offset(iVar0, vParam1, 0, 0, 1);
				}
				func_575(iVar0, &(uParam0->f_12), 0, 1);
				iVar4 = true;
				if (vehicle::is_this_model_a_boat(uParam0->f_12.f_66) || vehicle::_is_this_model_an_emergency_boat(uParam0->f_12.f_66))
				{
					if (!water::test_probe_against_water(vParam1.x, vParam1.y, (vParam1.y + 30f), vParam1.x, vParam1.y, (vParam1.y - 30f), &uVar5))
					{
						iVar4 = false;
					}
				}
				if (iVar4)
				{
					vehicle::set_vehicle_on_ground_properly(iVar0);
				}
				if (uParam0->f_7 == 1)
				{
					if (iParam5)
					{
						if (vehicle::is_this_model_a_car(entity::get_entity_model(iVar0)))
						{
							func_565(uParam0->f_11, 1);
						}
						else if (vehicle::is_this_model_a_bike(entity::get_entity_model(iVar0)))
						{
							func_565(uParam0->f_11, 2);
						}
					}
					vehicle::_0xAB04325045427AAE(iVar0, 0);
					vehicle::_0x428BACCDF5E26EAD(iVar0, false);
					vehicle::set_vehicle_has_strong_axles(iVar0, true);
					func_375(iVar0, uParam0->f_11);
				}
				else if ((!func_573(iVar0, uParam0->f_3, uParam0->f_8) && uParam0->f_10) && gameplay::are_strings_equal(script::get_this_script_name(), "startup_positioning"))
				{
					iVar8 = func_572(iVar0);
					if (iVar8 == -1)
					{
						uParam0->f_10 = 0;
					}
					else
					{
						func_567(iVar8);
					}
				}
				if (((Global_91406 != 13 && Global_91406 != 10) && Global_91406 != 11) && Global_91406 != 12)
				{
					if (gameplay::get_hash_key(&(Global_91406.f_3)) == Global_69434)
					{
						if (uParam0->f_12.f_66 == Global_101553.f_18972.f_69[21 /*78*/].f_66)
						{
							func_353(24, 0);
							func_567(24);
						}
					}
				}
				if (uParam0->f_9 == 1)
				{
					func_336(iVar0, uParam0->f_11);
				}
				streaming::set_model_as_no_longer_needed(uParam0->f_12.f_66);
				vVar1 = { entity::get_entity_coords(iVar0, 1) };
			}
			return iVar0;
		}
	}
	return iVar0;
}

int func_572(int iParam0)//Position - 0x55AB7
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	iVar0 = 0;
	while (iVar0 < 68)
	{
		if ((entity::does_entity_exist(Global_68446.f_484[iVar0]) && !entity::is_entity_dead(Global_68446.f_484[iVar0], 0)) && vehicle::is_vehicle_driveable(Global_68446.f_484[iVar0], 0))
		{
			vehicle::get_vehicle_colours(iParam0, &iVar1, &iVar2);
			vehicle::get_vehicle_colours(Global_68446.f_484[iVar0], &iVar3, &iVar4);
			if (((entity::get_entity_model(iParam0) == entity::get_entity_model(Global_68446.f_484[iVar0]) && vehicle::get_vehicle_livery(iParam0) == vehicle::get_vehicle_livery(Global_68446.f_484[iVar0])) && iVar1 == iVar2) && iVar3 == iVar4)
			{
				return iVar0;
			}
		}
		iVar0++;
	}
	return -1;
}

bool func_573(int iParam0, vector3 vParam1, int iParam4)//Position - 0x55B7A
{
	int iVar0;
	var uVar1[3];
	int iVar5;
	int iVar6;
	
	iVar0 = entity::get_entity_model(iParam0);
	switch (iVar0)
	{
		case joaat("cargobob"):
			if (func_574(iParam0, Global_68446.f_139[38], 0))
			{
				func_567(38);
				return true;
			}
			break;
		
		case 1938952078:
			if (func_574(iParam0, Global_68446.f_139[43], 1))
			{
				func_567(43);
				return true;
			}
			break;
		
		case joaat("cuban800"):
			iVar5 = ped::get_ped_nearby_vehicles(player::player_ped_id(), &uVar1);
			iVar6 = 0;
			while (iVar6 <= (iVar5 - 1))
			{
				if (func_574(iParam0, uVar1[iVar6], 1) && func_444(entity::get_entity_coords(uVar1[iVar6], 1), 2136.133f, 4780.563f, 39.9702f, 5f, 0))
				{
					if ((!iParam4 || func_74(vParam1, 0f, 0f, 0f, 0)) || gameplay::get_distance_between_coords(entity::get_entity_coords(iParam0, 1), entity::get_entity_coords(uVar1[iVar6], 1), 1) < 10f)
					{
						vehicle::delete_vehicle(&iParam0);
						return true;
					}
					else
					{
						return false;
					}
				}
				iVar6++;
			}
			break;
		
		case joaat("luxor2"):
			if ((entity::does_entity_exist(Global_68446.f_484[14]) && vehicle::is_vehicle_driveable(iParam0, 0)) && vehicle::is_vehicle_driveable(Global_68446.f_484[14], 0))
			{
				if (entity::get_entity_model(Global_68446.f_484[14]) == joaat("luxor2") && vehicle::get_vehicle_livery(iParam0) == vehicle::get_vehicle_livery(Global_68446.f_484[14]))
				{
					func_567(14);
					return true;
				}
			}
			break;
		
		case joaat("swift2"):
			if ((entity::does_entity_exist(Global_68446.f_484[20]) && vehicle::is_vehicle_driveable(iParam0, 0)) && vehicle::is_vehicle_driveable(Global_68446.f_484[20], 0))
			{
				if (entity::get_entity_model(Global_68446.f_484[20]) == joaat("swift2") && vehicle::get_vehicle_livery(iParam0) == vehicle::get_vehicle_livery(Global_68446.f_484[20]))
				{
					func_567(20);
					return true;
				}
			}
			break;
	}
	return false;
}

bool func_574(int iParam0, int iParam1, int iParam2)//Position - 0x55D82
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if ((entity::does_entity_exist(iParam1) && !entity::is_entity_dead(iParam1, 0)) && vehicle::is_vehicle_driveable(iParam1, 0))
	{
		if (iParam2)
		{
			vehicle::get_vehicle_colours(iParam0, &iVar0, &iVar1);
			vehicle::get_vehicle_colours(iParam1, &iVar2, &iVar3);
			if (iVar0 == iVar2 && iVar1 == iVar3)
			{
				return true;
			}
		}
		else
		{
			return true;
		}
	}
	return false;
}

void func_575(int iParam0, var uParam1, int iParam2, int iParam3)//Position - 0x55DE3
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		if (gameplay::get_hash_key(&(uParam1->f_1)) != 0)
		{
			vehicle::set_vehicle_number_plate_text(iParam0, &(uParam1->f_1));
		}
		if (*uParam1 >= 0 && *uParam1 < vehicle::get_number_of_vehicle_number_plates())
		{
			vehicle::set_vehicle_number_plate_text_index(iParam0, *uParam1);
		}
		if (uParam1->f_66 == joaat("sovereign"))
		{
			uParam1->f_5 = 111;
			uParam1->f_6 = 111;
			uParam1->f_7 = 111;
		}
		else if (uParam1->f_66 == joaat("casco"))
		{
			iVar0 = 1;
			if (gameplay::is_bit_set(uParam1->f_77, func_50(iVar0 + 1)))
			{
			}
			else
			{
				gameplay::set_bit(&(uParam1->f_77), func_50(iVar0 + 1));
			}
		}
		else if (uParam1->f_66 == joaat("sandking") || uParam1->f_66 == joaat("sandking2"))
		{
			iVar1 = 1;
			if (gameplay::is_bit_set(uParam1->f_77, func_50(iVar1 + 1)))
			{
			}
			else
			{
				gameplay::set_bit(&(uParam1->f_77), func_50(iVar1 + 1));
			}
		}
		if (gameplay::is_bit_set(uParam1->f_77, 13))
		{
			vehicle::set_vehicle_custom_primary_colour(iParam0, uParam1->f_71, uParam1->f_72, uParam1->f_73);
		}
		else
		{
			vehicle::clear_vehicle_custom_primary_colour(iParam0);
		}
		if (gameplay::is_bit_set(uParam1->f_77, 12))
		{
			vehicle::set_vehicle_custom_secondary_colour(iParam0, uParam1->f_71, uParam1->f_72, uParam1->f_73);
		}
		else
		{
			vehicle::clear_vehicle_custom_secondary_colour(iParam0);
		}
		vehicle::set_vehicle_colours(iParam0, uParam1->f_5, uParam1->f_6);
		if (uParam1->f_7 < 0)
		{
			uParam1->f_7 = 0;
		}
		if (uParam1->f_8 < 0)
		{
			uParam1->f_8 = 0;
		}
		vehicle::set_vehicle_extra_colours(iParam0, uParam1->f_7, uParam1->f_8);
		if (((gameplay::is_bit_set(uParam1->f_77, 15) || func_578(iParam0)) || (((uParam1->f_62 == 0 && uParam1->f_63 == 0) && uParam1->f_64 == 0) && uParam1->f_9[20] > 0)) && func_577())
		{
			uParam1->f_62 = 0;
			uParam1->f_63 = 0;
			uParam1->f_64 = 0;
		}
		else if ((uParam1->f_62 == 0 && uParam1->f_63 == 0) && uParam1->f_64 == 0)
		{
			uParam1->f_62 = 255;
			uParam1->f_63 = 255;
			uParam1->f_64 = 255;
		}
		vehicle::set_vehicle_tyre_smoke_color(iParam0, uParam1->f_62, uParam1->f_63, uParam1->f_64);
		if (uParam1->f_65 == -1 && uParam1->f_66 != joaat("granger"))
		{
			vehicle::set_vehicle_window_tint(iParam0, 0);
		}
		else
		{
			vehicle::set_vehicle_window_tint(iParam0, 0);
			vehicle::set_vehicle_window_tint(iParam0, uParam1->f_65);
		}
		vehicle::set_vehicle_tyres_can_burst(iParam0, !gameplay::is_bit_set(uParam1->f_77, 9));
		if (iParam2)
		{
			vehicle::set_vehicle_doors_locked(iParam0, uParam1->f_70);
		}
		vehicle::_set_vehicle_neon_lights_colour(iParam0, uParam1->f_74, uParam1->f_75, uParam1->f_76);
		vehicle::_set_vehicle_neon_light_enabled(iParam0, 2, gameplay::is_bit_set(uParam1->f_77, 28));
		vehicle::_set_vehicle_neon_light_enabled(iParam0, 3, gameplay::is_bit_set(uParam1->f_77, 29));
		vehicle::_set_vehicle_neon_light_enabled(iParam0, 0, gameplay::is_bit_set(uParam1->f_77, 30));
		vehicle::_set_vehicle_neon_light_enabled(iParam0, 1, gameplay::is_bit_set(uParam1->f_77, 31));
		vehicle::set_vehicle_is_stolen(iParam0, gameplay::is_bit_set(uParam1->f_77, 10));
		if (vehicle::get_vehicle_livery_count(iParam0) > 1 && uParam1->f_67 >= 0)
		{
			vehicle::set_vehicle_livery(iParam0, uParam1->f_67);
		}
		if (uParam1->f_69 > -1 && uParam1->f_69 < 255)
		{
			if (!vehicle::is_this_model_a_bicycle(entity::get_entity_model(iParam0)))
			{
				if (vehicle::is_this_model_a_bike(entity::get_entity_model(iParam0)))
				{
					if (uParam1->f_69 == 6)
					{
						func_576(iParam0, uParam1->f_69);
					}
				}
				else
				{
					func_576(iParam0, uParam1->f_69);
				}
			}
		}
		if (vehicle::is_vehicle_a_convertible(iParam0, 0))
		{
			if ((uParam1->f_68 == 0 || uParam1->f_68 == 3) || uParam1->f_68 == 5)
			{
				vehicle::raise_convertible_roof(iParam0, 1);
			}
			else
			{
				vehicle::lower_convertible_roof(iParam0, 1);
			}
		}
		if (iParam3)
		{
			func_378(&iParam0, &(uParam1->f_9), &(uParam1->f_59));
		}
		if (!vehicle::is_this_model_a_heli(uParam1->f_66) && !vehicle::is_this_model_a_boat(uParam1->f_66))
		{
			iVar2 = 0;
			while (iVar2 <= 11)
			{
				if (gameplay::is_bit_set(uParam1->f_77, func_50(iVar2 + 1)))
				{
					if (!vehicle::is_vehicle_extra_turned_on(iParam0, iVar2 + 1))
					{
						vehicle::set_vehicle_extra(iParam0, iVar2 + 1, false);
					}
				}
				else if (vehicle::is_vehicle_extra_turned_on(iParam0, iVar2 + 1))
				{
					vehicle::set_vehicle_extra(iParam0, iVar2 + 1, true);
				}
				iVar2++;
			}
		}
		if ((entity::get_entity_model(iParam0) == joaat("sheava") || entity::get_entity_model(iParam0) == joaat("omnis")) || entity::get_entity_model(iParam0) == joaat("le7b"))
		{
			if (vehicle::get_vehicle_mod(iParam0, 0) == -1)
			{
				vehicle::set_vehicle_extra(iParam0, 1, false);
			}
		}
		if (vehicle::is_this_model_a_plane(uParam1->f_66))
		{
			if (!gameplay::is_bit_set(uParam1->f_77, 23))
			{
				if (gameplay::is_bit_set(uParam1->f_77, 22))
				{
					vehicle::_set_vehicle_landing_gear(iParam0, 2);
				}
				else
				{
					vehicle::_set_vehicle_landing_gear(iParam0, 3);
				}
			}
			else
			{
				vehicle::_set_vehicle_landing_gear(iParam0, 4);
			}
		}
		if (gameplay::is_bit_set(uParam1->f_77, 27))
		{
			decorator::decor_set_bool(iParam0, "IgnoredByQuickSave", 1);
		}
		else
		{
			decorator::decor_set_bool(iParam0, "IgnoredByQuickSave", 0);
		}
	}
}

void func_576(int iParam0, int iParam1)//Position - 0x56291
{
	int iVar0;
	int iVar1;
	
	if (vehicle::get_num_mod_kits(iParam0) > 0)
	{
		vehicle::set_vehicle_mod_kit(iParam0, 0);
		iVar0 = vehicle::get_vehicle_mod(iParam0, 24);
		iVar1 = vehicle::get_vehicle_mod_variation(iParam0, 24);
		vehicle::set_vehicle_wheel_type(iParam0, iParam1);
		if (entity::get_entity_model(iParam0) == joaat("tornado6"))
		{
			return;
		}
		if (iVar0 == -1)
		{
			vehicle::remove_vehicle_mod(iParam0, 24);
		}
		else
		{
			vehicle::set_vehicle_mod(iParam0, 24, iVar0, iVar1 == 1);
		}
	}
}

int func_577()//Position - 0x562F6
{
	return dlc2::is_dlc_present(-1691188696);
}

int func_578(int iParam0)//Position - 0x56307
{
	int iVar0;
	
	if (entity::does_entity_exist(iParam0))
	{
		if (vehicle::is_vehicle_driveable(iParam0, 0))
		{
			if (decorator::decor_is_registered_as_type("MPBitset", 3))
			{
				if (decorator::decor_exist_on(iParam0, "MPBitset"))
				{
					iVar0 = decorator::decor_get_int(iParam0, "MPBitset");
				}
				return gameplay::is_bit_set(iVar0, 4);
			}
		}
	}
	return false;
}

bool func_579(var uParam0)//Position - 0x56355
{
	if (func_552(uParam0))
	{
		if (streaming::has_model_loaded(uParam0->f_12.f_66))
		{
			return true;
		}
		else
		{
			return false;
		}
		return true;
	}
	else
	{
		return false;
	}
	return true;
}

int func_580()//Position - 0x5638A
{
	return func_579(&(Global_95894.f_2311));
}

void func_581()//Position - 0x5639D
{
	func_582(&(Global_95894.f_2311));
}

void func_582(var uParam0)//Position - 0x563B0
{
	if (func_552(uParam0))
	{
		streaming::request_model(uParam0->f_12.f_66);
	}
}

bool func_583(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x563CE
{
	if (vehicle::is_this_model_a_boat(Global_95894.f_2311.f_12.f_66))
	{
		return false;
	}
	if (iParam1 == 0 && vehicle::is_this_model_a_heli(Global_95894.f_2311.f_12.f_66))
	{
		return false;
	}
	if (iParam2 == 0 && func_585(Global_95894.f_2311.f_12.f_66))
	{
		return false;
	}
	if (iParam3 == 0 && vehicle::is_this_model_a_plane(Global_95894.f_2311.f_12.f_66))
	{
		return false;
	}
	if (iParam0 == 1)
	{
		if (!func_584())
		{
			return false;
		}
	}
	return true;
}

bool func_584()//Position - 0x5645C
{
	float fVar0;
	
	if (!func_551())
	{
		return false;
	}
	if ((vehicle::is_this_model_a_boat(Global_95894.f_2311.f_12.f_66) || vehicle::is_this_model_a_plane(Global_95894.f_2311.f_12.f_66)) || vehicle::is_this_model_a_train(Global_95894.f_2311.f_12.f_66))
	{
		return false;
	}
	fVar0 = vehicle::_get_vehicle_model_max_speed(Global_95894.f_2311.f_12.f_66);
	if (fVar0 < 37f)
	{
		return false;
	}
	return true;
}

bool func_585(int iParam0)//Position - 0x564D1
{
	switch (iParam0)
	{
		case joaat("police"):
		case joaat("police2"):
		case joaat("police3"):
		case joaat("police4"):
		case joaat("polmav"):
		case joaat("policeb"):
		case joaat("policet"):
		case joaat("policeold2"):
		case joaat("policeold1"):
		case joaat("sheriff"):
		case joaat("sheriff2"):
			return true;
			break;
	}
	return false;
}

void func_586(vector3 vParam0, float fParam3, int iParam4, int iParam5)//Position - 0x5652A
{
	if (func_595())
	{
		gameplay::set_this_script_can_be_paused(0);
		gameplay::clear_bit(&(Global_91406.f_20), 2);
		gameplay::set_game_paused(true);
		if (player::is_player_playing(player::player_id()))
		{
			player::set_player_control(player::player_id(), false, 0);
		}
		Global_91402 = { vParam0 };
		Global_91405 = fParam3;
		Global_91401 = 1;
		if (iParam4 == 1)
		{
			gameplay::set_bit(&(Global_91406.f_20), 14);
		}
		else
		{
			gameplay::clear_bit(&(Global_91406.f_20), 14);
		}
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_91406.f_20), 24);
		}
		else
		{
			gameplay::clear_bit(&(Global_91406.f_20), 24);
		}
		func_558(1);
	}
}

void func_587(int iParam0)//Position - 0x565BF
{
	iLocal_112 = 1;
	iLocal_113 = 0;
	iLocal_111 = iParam0;
	func_544(iParam0);
	while (iLocal_112)
	{
		func_539();
		func_19(0, 0);
	}
}

void func_588(int iParam0)//Position - 0x565EA
{
	int iVar0;
	int iVar1;
	int iVar2;
	vector3 vVar3;
	
	func_432(1);
	if (iParam0 != 0)
	{
		while (!audio::trigger_music_event("ARM2_MISSION_FAIL"))
		{
			func_19(4, 0);
		}
	}
	func_530();
	func_529();
	func_528();
	func_527();
	while (cutscene::is_cutscene_active())
	{
		if (cutscene::is_cutscene_playing())
		{
			cutscene::stop_cutscene(1);
		}
		else
		{
			cutscene::remove_cutscene();
		}
		func_19(3, 0);
	}
	gameplay::clear_weather_type_persist();
	if (iParam0 != 3)
	{
		vehicle::set_all_vehicle_generators_active();
		vehicle::set_vehicle_model_is_suppressed(joaat("bagger"), false);
	}
	audio::stop_stream();
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		entity::set_entity_proofs(player::player_ped_id(), false, false, false, false, false, false, 0, false);
	}
	if (iParam0 != 3)
	{
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			ped::set_ped_helmet(player::player_ped_id(), 1);
		}
	}
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (entity::is_entity_playing_anim(player::player_ped_id(), "MISSARMENIAN2LeadInOutMCS_6", "_leadin_fra", 3))
		{
			ai::clear_ped_tasks(player::player_ped_id());
		}
	}
	iLocal_2247 = 0;
	iLocal_2248 = 0;
	iLocal_2249 = 0;
	sLocal_2250 = "";
	sLocal_2251 = "";
	iLocal_47 = 0;
	if (object::does_pickup_exist(iLocal_1036))
	{
		object::remove_pickup(iLocal_1036);
	}
	func_153(0, 1, 1, 0);
	player::set_player_control(player::player_id(), true, 0);
	cam::render_script_cams(false, false, 3000, 1, 0, 0);
	cam::destroy_all_cams(0);
	ui::display_radar(true);
	ui::display_hud(true);
	func_256();
	func_290();
	audio::stop_scripted_conversation(true);
	iLocal_48 = 0;
	iLocal_49 = false;
	iLocal_1065 = 0;
	iLocal_1065 = iLocal_1065;
	iLocal_1066 = false;
	func_244();
	ui::clear_prints();
	func_593(1);
	func_111(0);
	if (iParam0 != 3)
	{
		ai::remove_all_cover_blocking_areas();
		ped::_0xF2BEBCDFAFDAA19E(1);
		if (entity::does_entity_exist(iLocal_1951))
		{
			entity::set_entity_invincible(iLocal_1951, false);
		}
		if (entity::does_entity_exist(iLocal_1952))
		{
			entity::set_entity_invincible(iLocal_1952, false);
		}
	}
	if (player::is_player_playing(player::player_id()))
	{
		func_134(96, 6);
		func_409(joaat("prop_map_door_01"), -1104.657f, -1638.481f, 4.6754f, 1, 0f);
	}
	else
	{
		func_592(0);
	}
	ped::remove_scenario_blocking_areas();
	gameplay::_set_unk_map_flag(0);
	if (pathfind::_0x0EAEB0DB4B132399(iLocal_1034))
	{
		pathfind::remove_navmesh_blocking_object(iLocal_1034);
	}
	if (pathfind::_0x0EAEB0DB4B132399(iLocal_1035))
	{
		pathfind::remove_navmesh_blocking_object(iLocal_1035);
	}
	func_476(&uLocal_2230, 0, 0);
	iVar0 = 0;
	while (iVar0 <= 9)
	{
		if (entity::does_entity_exist(Local_1450[iVar0 /*2*/]))
		{
			if (vehicle::is_vehicle_driveable(Local_1450[iVar0 /*2*/], 0))
			{
				entity::freeze_entity_position(Local_1450[iVar0 /*2*/], false);
			}
			if (iParam0 == 3)
			{
				if (ui::does_blip_exist(Local_1450[iVar0 /*2*/].f_1))
				{
					ui::remove_blip(&(Local_1450[iVar0 /*2*/].f_1));
				}
				if (vehicle::is_vehicle_driveable(Local_1450[iVar0 /*2*/], 0))
				{
					if (!entity::does_entity_belong_to_this_script(Local_1450[iVar0 /*2*/], 1))
					{
						entity::set_entity_as_mission_entity(Local_1450[iVar0 /*2*/], true, 1);
					}
					vehicle::delete_vehicle(&(Local_1450[iVar0 /*2*/]));
				}
				else if (entity::does_entity_exist(Local_1450[iVar0 /*2*/]))
				{
					vehicle::delete_vehicle(&(Local_1450[iVar0 /*2*/]));
				}
			}
		}
		iVar0++;
	}
	iVar1 = 0;
	while (iVar1 < iLocal_2021)
	{
		if (entity::does_entity_exist(iLocal_2021[iVar1]))
		{
			if (vehicle::is_vehicle_driveable(iLocal_2021[iVar1], 0))
			{
				vehicle::delete_vehicle(&(iLocal_2021[iVar1]));
			}
		}
		iVar1++;
	}
	func_591();
	func_590();
	iVar0 = 0;
	while (iVar0 < vLocal_1920.x)
	{
		vLocal_1920[iVar0 /*3*/].f_1 = 0;
		iVar0++;
	}
	iVar0 = 1;
	while (iVar0 <= 26)
	{
		if (entity::does_entity_exist(Local_1071[iVar0 /*14*/]))
		{
			if (iParam0 == 2)
			{
				if (!ped::is_ped_injured(Local_1071[iVar0 /*14*/]))
				{
					if (ped::is_ped_in_group(Local_1071[iVar0 /*14*/]))
					{
						ped::remove_ped_from_group(Local_1071[iVar0 /*14*/]);
					}
					ped::set_ped_keep_task(Local_1071[iVar0 /*14*/], true);
				}
				entity::set_ped_as_no_longer_needed(&(Local_1071[iVar0 /*14*/]));
			}
			else
			{
				ped::delete_ped(&(Local_1071[iVar0 /*14*/]));
			}
		}
		iVar0++;
	}
	if (entity::does_entity_exist(iLocal_1917))
	{
		ped::delete_ped(&iLocal_1917);
	}
	if (entity::does_entity_exist(iLocal_1918))
	{
		ped::delete_ped(&iLocal_1918);
	}
	if (entity::does_entity_exist(iLocal_1919))
	{
		ped::delete_ped(&iLocal_1919);
	}
	if (entity::does_entity_exist(iLocal_1949))
	{
		object::set_object_targettable(iLocal_1949, 0);
		object::delete_object(&iLocal_1949);
	}
	if (ui::does_blip_exist(iLocal_2030))
	{
		ui::remove_blip(&iLocal_2030);
	}
	if (ui::does_blip_exist(iLocal_2031))
	{
		ui::remove_blip(&iLocal_2031);
	}
	if (ui::does_blip_exist(iLocal_2032))
	{
		ui::remove_blip(&iLocal_2032);
	}
	if (ui::does_blip_exist(iLocal_2029))
	{
		ui::remove_blip(&iLocal_2029);
	}
	if (ui::does_blip_exist(iLocal_2033))
	{
		ui::remove_blip(&iLocal_2033);
	}
	if (entity::does_entity_exist(iLocal_1950))
	{
		object::delete_object(&iLocal_1950);
	}
	if (entity::does_entity_exist(iLocal_1055[0]))
	{
		object::delete_object(&(iLocal_1055[0]));
	}
	if (entity::does_entity_exist(iLocal_1055[1]))
	{
		object::delete_object(&(iLocal_1055[1]));
	}
	if (entity::does_entity_exist(iLocal_1058))
	{
		entity::set_entity_visible(iLocal_1058, true, 0);
	}
	if (entity::does_entity_exist(iLocal_1059))
	{
		object::delete_object(&iLocal_1059);
	}
	streaming::set_model_as_no_longer_needed(joaat("prop_gar_door_plug"));
	ped::set_create_random_cops(true);
	iLocal_1061 = 0;
	iLocal_1054 = 0;
	sLocal_2217 = "";
	iLocal_2068 = 0;
	iLocal_2271 = 0;
	if (object::does_pickup_exist(iLocal_1982))
	{
		object::remove_pickup(iLocal_1982);
	}
	if (object::does_pickup_exist(iLocal_1981))
	{
		object::remove_pickup(iLocal_1981);
	}
	object::remove_all_pickups_of_type(joaat("pickup_weapon_pistol"));
	func_501(&Local_1956, 1, 0);
	ui::_0x67EEDEA1B9BAFD94();
	if (iParam0 == 3)
	{
		func_134(94, 4);
		func_134(95, 4);
		func_134(94, 6);
		func_134(95, 6);
	}
	else if (iParam0 == 0)
	{
		func_134(94, 0);
		func_134(95, 0);
	}
	else
	{
		func_134(94, 4);
		func_134(95, 4);
	}
	if (object::_does_door_exist(-967780114))
	{
		object::remove_door_from_system(-967780114);
	}
	ai::remove_cover_point(iLocal_1910);
	ai::remove_cover_point(iLocal_2027);
	ai::remove_cover_point(iLocal_2028);
	ai::remove_cover_point(iLocal_1911);
	ai::remove_cover_point(iLocal_1912);
	ai::remove_cover_point(iLocal_1913);
	ai::remove_cover_point(iLocal_1914);
	ai::remove_cover_point(iLocal_1915);
	ai::remove_cover_point(iLocal_1916);
	if (audio::is_audio_scene_active("ARM_2_DRIVE_TO_ALLEY"))
	{
		audio::stop_audio_scene("ARM_2_DRIVE_TO_ALLEY");
	}
	if (audio::is_audio_scene_active("ARM_2_SEARCH_FOR_BIKE"))
	{
		audio::stop_audio_scene("ARM_2_SEARCH_FOR_BIKE");
	}
	if (audio::is_audio_scene_active("ARM_2_GANG_DRIVE_PAST"))
	{
		audio::stop_audio_scene("ARM_2_GANG_DRIVE_PAST");
	}
	if (audio::is_audio_scene_active("ARM_2_SHOOTOUT"))
	{
		audio::stop_audio_scene("ARM_2_SHOOTOUT");
	}
	if (audio::is_audio_scene_active("ARM_2_RAYFIRE"))
	{
		audio::stop_audio_scene("ARM_2_RAYFIRE");
	}
	if (audio::is_audio_scene_active("ARM_2_GAS_TRAIL"))
	{
		audio::stop_audio_scene("ARM_2_GAS_TRAIL");
	}
	if (audio::is_audio_scene_active("ARM_2_GET_TO_THE_CAR"))
	{
		audio::stop_audio_scene("ARM_2_GET_TO_THE_CAR");
	}
	if (audio::is_audio_scene_active("ARM_2_CHASE_THE_BIKE"))
	{
		audio::stop_audio_scene("ARM_2_CHASE_THE_BIKE");
	}
	if (audio::is_audio_scene_active("ARM_2_RIDE_BIKE_BACK"))
	{
		audio::stop_audio_scene("ARM_2_RIDE_BIKE_BACK");
	}
	iVar2 = 0;
	while (iVar2 <= 30)
	{
		if (vLocal_2091[iVar2 /*3*/] != 0)
		{
			graphics::remove_particle_fx(vLocal_2091[iVar2 /*3*/], 0);
		}
		vLocal_2091[iVar2 /*3*/].f_1 = 0;
		vLocal_2091[iVar2 /*3*/].f_2 = 0;
		vLocal_2091[iVar2 /*3*/] = 0;
		iVar2++;
	}
	iLocal_1471 = 0;
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		ped::set_ped_using_action_mode(player::player_ped_id(), false, -1, 0);
	}
	if (iParam0 == 3)
	{
		gameplay::clear_angled_area_of_vehicles(-1061.554f, -1683.209f, 3.436779f, -1141.414f, -1572.998f, 8.292084f, 66.75f, 0, 0, 0, 0, 0);
		gameplay::clear_angled_area_of_vehicles(-17.6177f, -958.4838f, 11.38287f, -90.49478f, -1259.338f, 76.55168f, 250f, 0, 0, 0, 0, 0);
		gameplay::clear_area_of_peds(entity::get_entity_coords(player::player_ped_id(), 1), 100f, 0);
		gameplay::clear_area_of_objects(-1094.151f, -1641.675f, 3.4598f, 80f, 0);
		gameplay::clear_area(entity::get_entity_coords(player::player_ped_id(), 1), 200f, 1, 0, 0, false);
		func_420(2);
	}
	else
	{
		func_420(7);
	}
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		ped::set_ped_using_action_mode(player::player_ped_id(), false, -1, 0);
	}
	controls::enable_control_action(0, 140, 1);
	controls::enable_control_action(0, 141, 1);
	if (iParam0 != 3)
	{
		pathfind::set_roads_in_area(12.0272f, -1443.624f, 33.436f, -58.0394f, -1501.268f, 29.8437f, true, 1);
		pathfind::set_roads_in_area(-1159.587f, -1594.754f, 0.2391f, -1119.587f, -1554.754f, 13.2391f, true, 1);
		pathfind::set_roads_back_to_original_in_angled_area(-966.1594f, -1187.304f, -0.770555f, -1094.655f, -964.7231f, 15.13055f, 10.3125f, 1);
		pathfind::set_ped_paths_back_to_original(-21.8129f, -1454.343f, 20.7942f, -17.8129f, -1450.343f, 40.7942f, 0);
		pathfind::set_ped_paths_back_to_original(Vector(3.943655f, -1586.096f, -1131.871f) - Vector(1.125f, 6.6875f, 5.5625f), Vector(3.943655f, -1586.096f, -1131.871f) + Vector(1.125f, 6.6875f, 5.5625f), 0);
		pathfind::set_ped_paths_back_to_original(Vector(4.110459f, -1656.14f, -1090.723f) - Vector(1f, 2.125f, 2.125f), Vector(4.110459f, -1656.14f, -1090.723f) + Vector(1f, 2.125f, 2.125f), 0);
		ped::clear_ped_non_creation_area();
		gameplay::_0xDC0F817884CDD856(3, true);
		gameplay::_0xDC0F817884CDD856(5, true);
		player::set_wanted_level_multiplier(1f);
		player::set_max_wanted_level(6);
		vehicle::set_vehicle_model_is_suppressed(joaat("tailgater"), false);
		entity::remove_model_hide(-1089.8f, -1637.8f, 7.3f, 1f, joaat("prop_ld_balcfnc_02a"), true);
		Global_25334 = 0;
	}
	vehicle::remove_vehicle_asset(joaat("burrito"));
	if (iParam0 != 3)
	{
	}
	if (iParam0 == 3)
	{
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			entity::set_entity_coords(player::player_ped_id(), entity::get_entity_coords(player::player_ped_id(), 1), 1, false, 0, 1);
		}
	}
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		if (entity::is_entity_in_angled_area(player::player_ped_id(), -1062.002f, -1662.213f, 3.562896f, -1066.942f, -1665.529f, 6.366508f, 3.3125f, 0, true, 0))
		{
			entity::set_entity_coords(player::player_ped_id(), -1072.008f, -1670.024f, 3.4501f, 1, false, 0, 1);
			entity::set_entity_heading(player::player_ped_id(), 32.8933f);
		}
		if (entity::is_entity_in_angled_area(player::player_ped_id(), -1065.118f, -1668.928f, 6.39261f, -1058.99f, -1664.484f, 3.43099f, 4f, 0, true, 0))
		{
			entity::set_entity_coords(player::player_ped_id(), -1072.008f, -1670.024f, 3.4501f, 1, false, 0, 1);
			entity::set_entity_heading(player::player_ped_id(), 32.8933f);
		}
		if (entity::is_entity_in_angled_area(player::player_ped_id(), -1104.535f, -1638.888f, 3.640529f, -1109.648f, -1642.475f, 6.45303f, 4.875f, 0, true, 0))
		{
			entity::set_entity_coords(player::player_ped_id(), -1102.954f, -1636.665f, 3.5846f, 1, false, 0, 1);
			entity::set_entity_heading(player::player_ped_id(), 7.4969f);
		}
	}
	if (iParam0 == 1)
	{
		if (cam::is_screen_faded_out())
		{
			if (func_589())
			{
				if (pathfind::get_safe_coord_for_ped(entity::get_entity_coords(player::player_ped_id(), 1), 1, &vVar3, 0))
				{
					entity::set_entity_coords(player::player_ped_id(), vVar3, 1, false, 0, 1);
				}
			}
		}
	}
	ai::set_scenario_group_enabled("ARMENIAN_CATS", false);
	vehicle::set_all_vehicle_generators_active_in_area(Vector(25.85983f, -1098.932f, -43.78194f) - Vector(2.5625f, 6.75f, 9.75f), Vector(25.85983f, -1098.932f, -43.78194f) + Vector(2.5625f, 6.75f, 9.75f), true, 1);
}

int func_589()//Position - 0x57086
{
	return gameplay::is_bit_set(Global_2482149.f_743, 2);
}

void func_590()//Position - 0x5709A
{
	int iVar0;
	
	Global_55845 = 0;
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 64)
	{
		Global_55846[iVar0 /*2*/] = 0;
		iVar0++;
	}
}

void func_591()//Position - 0x570C4
{
	if (!entity::is_entity_dead(iLocal_1951, 0))
	{
		if (entity::is_entity_playing_anim(iLocal_1951, "MISSARMENIAN2", "open_garage_door", 3))
		{
			entity::stop_entity_anim(iLocal_1951, "open_garage_door", "MISSARMENIAN2", -1f);
		}
		entity::set_entity_collision(iLocal_1951, true, 0);
		entity::set_object_as_no_longer_needed(&iLocal_1951);
	}
	if (!entity::is_entity_dead(iLocal_1952, 0))
	{
		if (entity::is_entity_playing_anim(iLocal_1952, "MISSARMENIAN2", "open_garage_door", 3))
		{
			entity::stop_entity_anim(iLocal_1952, "open_garage_door", "MISSARMENIAN2", -1f);
		}
		entity::set_entity_collision(iLocal_1952, true, 0);
		entity::set_object_as_no_longer_needed(&iLocal_1952);
	}
	if (entity::does_entity_exist(iLocal_1953))
	{
		object::delete_object(&iLocal_1953);
	}
}

void func_592(int iParam0)//Position - 0x57165
{
	if (iParam0 != -1)
	{
		if (Global_91444 == -1)
		{
			Global_91444 = iParam0;
		}
	}
}

void func_593(int iParam0)//Position - 0x57187
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 19)
	{
		if (Local_1708[iVar0 /*6*/].f_1 == 1)
		{
			if (Local_1708[iVar0 /*6*/].f_4 == 0 || (Local_1708[iVar0 /*6*/].f_4 == 1 && iParam0 == 0))
			{
				Local_1708[iVar0 /*6*/].f_2 = 99;
				Local_1708[iVar0 /*6*/].f_3 = 0;
			}
		}
		iVar0++;
	}
}

int func_594()//Position - 0x571EC
{
	if (!Global_91406 == 10 && !Global_91406 == 9)
	{
		return 0;
	}
	return Global_91406.f_2;
}

bool func_595()//Position - 0x57216
{
	if (Global_91406 == 10 || Global_91406 == 9)
	{
		return true;
	}
	return false;
}

bool func_596()//Position - 0x5723A
{
	vehicle::set_vehicle_model_is_suppressed(joaat("bagger"), true);
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		ped::set_ped_helmet(player::player_ped_id(), 0);
	}
	ped::set_ped_non_creation_area(Vector(9.711103f, -1633.074f, -1099.032f) - Vector(7.8125f, 63.25f, 46.375f), Vector(9.711103f, -1633.074f, -1099.032f) + Vector(7.8125f, 63.25f, 46.375f));
	func_420(2);
	Global_101553.f_1991.f_4091 = func_597(player::player_ped_id());
	gameplay::clear_area(-60.8903f, -1111.104f, 25.4353f, 5f, 1, 1, 0, false);
	gameplay::clear_area(-1098.662f, -1634.21f, 3.5739f, 100f, 1, 1, 0, false);
	gameplay::_0xDC0F817884CDD856(3, false);
	gameplay::_0xDC0F817884CDD856(5, false);
	ui::request_additional_text("ARM2", 0);
	vehicle::set_all_vehicle_generators_active_in_area(Vector(4.7111f, -1657.686f, -1081.547f) - Vector(4f, 10f, 11f), Vector(4.7111f, -1657.686f, -1081.547f) + Vector(4f, 10f, 11f), false, 1);
	vehicle::set_all_vehicle_generators_active_in_area(Vector(3.5395f, -1615.618f, -1113.897f) - Vector(2f, 1.8f, 1.6f), Vector(3.5395f, -1615.618f, -1113.897f) + Vector(2f, 1.8f, 1.6f), false, 1);
	vehicle::set_all_vehicle_generators_active_in_area(Vector(5.211141f, -1671.848f, -1070.388f) - Vector(2.125f, 8.9375f, 9.25f), Vector(5.211141f, -1671.848f, -1070.388f) + Vector(2.125f, 8.9375f, 9.25f), false, 1);
	pathfind::set_roads_in_area(-1159.587f, -1594.754f, 0.2391f, -1119.587f, -1554.754f, 13.2391f, false, 1);
	ai::add_cover_blocking_area(Vector(3.4f, -1654.1f, -1079f) - Vector(1f, 1f, 1f), Vector(3.4f, -1654.1f, -1079f) + Vector(1f, 1f, 1f), 1, 1, 1, 0);
	ai::set_scenario_group_enabled("ARMENIAN_CATS", true);
	vLocal_1920[0 /*3*/] = 1000;
	vLocal_1920[0 /*3*/].f_1 = 0;
	vLocal_1920[0 /*3*/].f_2 = 0;
	vLocal_1920[1 /*3*/] = 1600;
	vLocal_1920[1 /*3*/].f_1 = 0;
	vLocal_1920[1 /*3*/].f_2 = 1;
	vLocal_1920[2 /*3*/] = 2200;
	vLocal_1920[2 /*3*/].f_1 = 0;
	vLocal_1920[2 /*3*/].f_2 = 2;
	vLocal_1920[3 /*3*/] = 2700;
	vLocal_1920[3 /*3*/].f_1 = 0;
	vLocal_1920[3 /*3*/].f_2 = 3;
	vLocal_1920[4 /*3*/] = 3000;
	vLocal_1920[4 /*3*/].f_1 = 0;
	vLocal_1920[4 /*3*/].f_2 = 5;
	vLocal_1920[5 /*3*/] = 3400;
	vLocal_1920[5 /*3*/].f_1 = 0;
	vLocal_1920[5 /*3*/].f_2 = 4;
	vLocal_1920[6 /*3*/] = 4000;
	vLocal_1920[6 /*3*/].f_1 = 0;
	vLocal_1920[6 /*3*/].f_2 = 6;
	vLocal_1920[7 /*3*/] = 6500;
	vLocal_1920[7 /*3*/].f_1 = 0;
	vLocal_1920[7 /*3*/].f_2 = 7;
	vLocal_2035[0 /*3*/] = { -1118.997f, -1591.681f, 3.576f };
	vLocal_2035[1 /*3*/] = { -1128.41f, -1608.989f, 3.3985f };
	vLocal_2035[2 /*3*/] = { -1104.139f, -1613.417f, 3.7148f };
	vLocal_2035[3 /*3*/] = { -1108.571f, -1632.442f, 3.6161f };
	vLocal_2035[4 /*3*/] = { -1088.913f, -1632.338f, 3.7329f };
	vLocal_2035[5 /*3*/] = { -1095.361f, -1648.256f, 3.3985f };
	vLocal_2035[6 /*3*/] = { -1076.712f, -1651.317f, 3.5013f };
	vLocal_2035[7 /*3*/] = { -1083.716f, -1672.549f, 3.7051f };
	vLocal_2035[8 /*3*/] = { -1067.681f, -1662.176f, 3.6078f };
	vLocal_2035[9 /*3*/] = { -1067.064f, -1670.28f, 3.4729f };
	func_147(8, 12, 1);
	func_147(9, 12, 1);
	vehicle::set_vehicle_model_is_suppressed(func_47(1, 0), true);
	return true;
}

int func_597(int iParam0)//Position - 0x575FA
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_310(iParam0, 3, -1);
	iVar1 = func_310(iParam0, 4, -1);
	return (iVar0 + iVar1 * 100);
}

void func_598()//Position - 0x5761D
{
	func_600();
	sLocal_46 = "ARM2";
	cLocal_1642 = "AR2AUD";
	iLocal_2218 = joaat("u_m_o_tramp_01");
	iLocal_2219 = joaat("g_m_y_mexgoon_01");
	iLocal_2220 = joaat("g_m_y_mexgoon_03");
	iLocal_2034 = joaat("ig_lamardavis");
	Local_1071[0 /*14*/] = player::player_ped_id();
	func_599(17, 0, 2);
	func_599(0, 0, 11);
	func_599(1, 2, 9);
	func_599(2, 2, 8);
	func_599(3, 3, 4);
	func_599(4, 7, 10);
	func_599(5, 0, 11);
	func_599(6, 7, 8);
	func_599(7, 2, 9);
	func_599(8, 2, 8);
	func_599(9, 2, 6);
	func_599(10, 6, 8);
	func_599(11, 6, 8);
	func_599(12, 2, 8);
	func_599(13, 2, 6);
	func_599(14, 6, 8);
	func_599(15, 0, 6);
	func_599(16, 4, 8);
	func_599(18, 6, 8);
	func_599(19, 2, 6);
	ped::_0xF2BEBCDFAFDAA19E(0);
}

void func_599(int iParam0, int iParam1, int iParam2)//Position - 0x5770D
{
	vLocal_50[iParam0 /*3*/] = iParam1;
	vLocal_50[iParam0 /*3*/].f_1 = iParam2;
}

void func_600()//Position - 0x57727
{
	vLocal_1068 = { vLocal_1068 };
	ped::add_relationship_group("MYFRIEND", &iLocal_1472);
	ped::add_relationship_group("FOE", &iLocal_1473);
	ped::add_relationship_group("WARY", &iLocal_1475);
	ped::add_relationship_group("IGNORE", &iLocal_1474);
	ped::set_relationship_between_groups(5, iLocal_1472, iLocal_1473);
	ped::set_relationship_between_groups(5, iLocal_1473, iLocal_1472);
	ped::set_relationship_between_groups(2, iLocal_1472, iLocal_1474);
	ped::set_relationship_between_groups(2, iLocal_1473, iLocal_1474);
	ped::set_relationship_between_groups(2, iLocal_1473, iLocal_1475);
	ped::set_relationship_between_groups(2, iLocal_1474, iLocal_1472);
	ped::set_relationship_between_groups(2, iLocal_1474, iLocal_1473);
	ped::set_relationship_between_groups(3, iLocal_1475, iLocal_1472);
	ped::set_relationship_between_groups(2, iLocal_1475, iLocal_1474);
}

void func_601(int iParam0)//Position - 0x577D0
{
	func_588(iParam0);
	script::terminate_this_thread();
}

void func_602()//Position - 0x577E2
{
	int iVar0;
	
	if (script::has_script_loaded("buddyDeathResponse"))
	{
		system::start_new_script("buddyDeathResponse", 1424);
	}
	if (Global_101553.f_7940 || func_545(0))
	{
		if (!func_603())
		{
			iVar0 = func_17();
			if (iVar0 != -1)
			{
				if (!func_5(iVar0))
				{
					return;
				}
				gameplay::set_bit(&(Global_82491[iVar0 /*5*/].f_1), 5);
				return;
			}
		}
		else
		{
			func_10();
		}
	}
}

bool func_603()//Position - 0x57855
{
	if (((Global_91406 == 13 || Global_91406 == 10) || Global_91406 == 11) || Global_91406 == 12)
	{
		return false;
	}
	return true;
}

