#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;
	int iLocal_28 = 0;
	int iLocal_29 = 0;
	int iLocal_30 = 0;
	int iLocal_31 = 0;
	int iLocal_32 = 0;
	int iLocal_33 = 0;
	int iLocal_34 = 0;
	int iLocal_35 = 0;
	int iLocal_36 = 0;
	int iLocal_37 = 0;
	int iLocal_38 = 0;
	int iLocal_39 = 0;
	int iLocal_40 = 0;
	int iLocal_41 = 0;
	int iLocal_42 = 0;
	int iLocal_43 = 0;
	int iLocal_44 = 0;
	int iLocal_45 = 0;
	int iLocal_46 = 0;
	int iLocal_47 = 0;
	int iLocal_48 = 0;
	int iLocal_49 = 0;
	int iLocal_50 = 0;
	var uLocal_51 = 0;
	int iLocal_52 = 0;
	int iLocal_53 = 0;
	int iLocal_54 = 0;
	int iLocal_55 = 0;
	int iLocal_56 = 0;
	int iLocal_57 = 0;
	int iLocal_58 = 0;
	int iLocal_59 = 0;
	int iLocal_60 = 0;
	int iLocal_61 = 0;
	float fLocal_62[40] = { 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 };
	float fLocal_103[40] = { 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 };
	float fLocal_144[40] = { 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 };
	float fLocal_185[40] = { 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 };
	float fLocal_226[40] = { 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 };
	float fLocal_267 = 0f;
	float fLocal_268 = 0f;
	float fLocal_269 = 0f;
	float fLocal_270 = 0f;
	float fLocal_271[22] = { 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f };
	float fLocal_294[22] = { 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f };
	float fLocal_317[22] = { 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f };
	float fLocal_340[22] = { 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f };
	float fLocal_363[22] = { 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f };
	float fLocal_386[22] = { 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f };
	float fLocal_409[4] = { 0f, 0f, 0f, 0f };
	float fLocal_414[4] = { 0f, 0f, 0f, 0f };
	float fLocal_419[4] = { 0f, 0f, 0f, 0f };
	float fLocal_424[4] = { 0f, 0f, 0f, 0f };
	float fLocal_429 = 0f;
	float fLocal_430 = 0f;
	float fLocal_431 = 0f;
	float fLocal_432 = 0f;
	float fLocal_433 = 0f;
	float fLocal_434 = 0f;
	float fLocal_435 = 0f;
	float fLocal_436 = 0f;
	float fLocal_437 = 0f;
	float fLocal_438 = 0f;
	float fLocal_439 = 0f;
	float fLocal_440 = 0f;
	float fLocal_441 = 0f;
	float fLocal_442 = 0f;
	float fLocal_443 = 0f;
	float fLocal_444 = 0f;
	float fLocal_445 = 0f;
	float fLocal_446 = 0f;
	float fLocal_447 = 0f;
	float fLocal_448 = 0f;
	float fLocal_449 = 0f;
	int iLocal_450[40] = { 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_491[40] = { 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_532[40] = { 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_573[22] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_596[22] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_619[22] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_642[4] = { 0, 0, 0, 0 };
	int iLocal_647 = 0;
	int iLocal_648 = 0;
	int iLocal_649 = 0;
	int iLocal_650 = 0;
	int iLocal_651 = 0;
	int iLocal_652 = 0;
	int iLocal_653 = 0;
	int iLocal_654 = 0;
	int iLocal_655 = 0;
	int iLocal_656 = 0;
	int iLocal_657 = 0;
	int iLocal_658 = 0;
	int iLocal_659 = 0;
	int iLocal_660 = 0;
	int iLocal_661 = 0;
	int iLocal_662 = 0;
	int iLocal_663 = 0;
	vector3 vLocal_664[40] = {{ 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 }, { 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 } };
	vector3 vLocal_785[4] = {{ 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f }, { 0f, 0f, 0f } };
	vector3 vLocal_798[22] = {{ 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 } };
	vector3 vLocal_865 = { 0f, 0f, 0f };
	vector3 vLocal_868 = { 0f, 0f, 0f };
	vector3 vLocal_871 = { 0f, 0f, 0f };
	var uLocal_874 = 0;
	var uLocal_875 = 0;
	var uLocal_876 = 0;
	var uLocal_877 = 0;
	var uLocal_878 = 0;
	var uLocal_879 = 0;
	vector3 vLocal_880 = { 0f, 0f, 0f };
	vector3 vLocal_883 = { 0f, 0f, 0f };
	vector3 vLocal_886 = { 0f, 0f, 0f };
	vector3 vLocal_889 = { 0f, 0f, 0f };
	char cLocal_892[64] = "";
	var uLocal_900 = 0;
	var uLocal_901 = 0;
	var uLocal_902 = 0;
	var uLocal_903 = 0;
	var uLocal_904 = 0;
	var uLocal_905 = 0;
	var uLocal_906 = 0;
	var uLocal_907 = 0;
	int iLocal_908 = 0;
	int iLocal_909[40] = { 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_950[4] = { 0, 0, 0, 0 };
	int iLocal_955[22] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_978 = 0;
	int iLocal_979 = 0;
	int iLocal_980 = 0;
	int iLocal_981[40] = { 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_1022[14] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_1037[4] = { 0, 0, 0, 0 };
	int iLocal_1042[22] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_1065[4] = { 0, 0, 0, 0 };
	int iLocal_1070 = 0;
	int iLocal_1071 = 0;
	int iLocal_1072 = 0;
	var uLocal_1073 = 14;
	var uLocal_1074 = 0;
	var uLocal_1075 = 0;
	var uLocal_1076 = 0;
	var uLocal_1077 = 0;
	var uLocal_1078 = 0;
	var uLocal_1079 = 0;
	var uLocal_1080 = 0;
	var uLocal_1081 = 0;
	var uLocal_1082 = 0;
	var uLocal_1083 = 0;
	var uLocal_1084 = 0;
	var uLocal_1085 = 0;
	var uLocal_1086 = 0;
	var uLocal_1087 = 0;
	int iLocal_1088 = 0;
	var uLocal_1089 = 0;
	var uLocal_1090 = 0;
	float fLocal_1091 = 0f;
	float fLocal_1092 = 0f;
	float fLocal_1093 = 0f;
	var uLocal_1094 = 0;
	var uLocal_1095 = 0;
	var uLocal_1096 = 0;
	var uLocal_1097 = 0;
	var uLocal_1098 = 0;
	int iLocal_1099 = 0;
	int iLocal_1100 = 0;
	int iLocal_1101 = 0;
	int iLocal_1102 = 0;
	var uLocal_1103 = 0;
	var uLocal_1104 = 0;
	var uLocal_1105 = 0;
	var uLocal_1106 = 0;
	var uLocal_1107 = 0;
	var uLocal_1108 = 0;
	var uLocal_1109 = 0;
	var uLocal_1110 = 0;
	var uLocal_1111 = 0;
	var uLocal_1112 = 0;
	var uLocal_1113 = 0;
	var uLocal_1114 = 0;
	var uLocal_1115 = 0;
	var uLocal_1116 = 0;
	vector3 vLocal_1117 = { 0f, 0f, 0f };
	vector3 vLocal_1120 = { 0f, 0f, 0f };
	int iLocal_1123 = 0;
	var uLocal_1124 = 0;
	float fLocal_1125 = 0f;
	int iLocal_1126 = 0;
	int iLocal_1127[36] = { 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, 0, 0, 0, 0, 0 };
	int iLocal_1164[3] = { 0, 0, 0 };
	int iLocal_1168[3] = { 0, 0, 0 };
	int iLocal_1172[4] = { 0, 0, 0, 0 };
	struct<7> Local_1177 = { 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1184 = 0;
	var uLocal_1185 = 0;
	var uLocal_1186 = 0;
	var uLocal_1187 = 0;
	var uLocal_1188 = 0;
	var uLocal_1189 = 0;
	var uLocal_1190 = 0;
	var uLocal_1191 = 0;
	struct<10> Local_1192 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1202 = 0;
	var uLocal_1203 = 0;
	var uLocal_1204 = 0;
	var uLocal_1205 = 0;
	var uLocal_1206 = 0;
	struct<7> Local_1207 = { 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1214 = 0;
	var uLocal_1215 = 0;
	var uLocal_1216 = 0;
	var uLocal_1217 = 0;
	var uLocal_1218 = 0;
	var uLocal_1219 = 0;
	var uLocal_1220 = 0;
	var uLocal_1221 = 0;
	struct<15> Local_1222[14];
	struct<15> Local_1433[2];
	struct<14> Local_1464 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1478 = 0;
	struct<8> Local_1479 = { 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1487 = 0;
	var uLocal_1488 = 0;
	var uLocal_1489 = 0;
	var uLocal_1490 = 0;
	var uLocal_1491 = 0;
	var uLocal_1492 = 0;
	var uLocal_1493 = 0;
	struct<15> Local_1494[8];
	struct<14> Local_1615 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1629 = 0;
	struct<7> Local_1630 = { 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1637 = 0;
	var uLocal_1638 = 0;
	var uLocal_1639 = 0;
	var uLocal_1640 = 0;
	var uLocal_1641 = 0;
	var uLocal_1642 = 0;
	var uLocal_1643 = 0;
	var uLocal_1644 = 0;
	struct<15> Local_1645 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1660 = 0;
	var uLocal_1661 = 0;
	var uLocal_1662 = 0;
	var uLocal_1663 = 0;
	var uLocal_1664 = 0;
	struct<15> Local_1665 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1680 = 0;
	var uLocal_1681 = 0;
	var uLocal_1682 = 0;
	var uLocal_1683 = 0;
	var uLocal_1684 = 0;
	struct<17> Local_1685 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1702 = 0;
	var uLocal_1703 = 0;
	var uLocal_1704 = 0;
	struct<17> Local_1705 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_1722 = 0;
	var uLocal_1723 = 0;
	var uLocal_1724 = 0;
	struct<20> Local_1725[36];
	struct<20> Local_2446[4];
	struct<20> Local_2527[2];
	struct<15> Local_2568 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_2583 = 0;
	var uLocal_2584 = 0;
	var uLocal_2585 = 0;
	var uLocal_2586 = 0;
	var uLocal_2587 = 0;
	struct<11> Local_2588 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_2599 = 0;
	var uLocal_2600 = 0;
	var uLocal_2601 = 0;
	var uLocal_2602 = 0;
	var uLocal_2603 = 0;
	var uLocal_2604 = 0;
	var uLocal_2605 = 0;
	var uLocal_2606 = 0;
	var uLocal_2607 = 0;
	struct<11> Local_2608 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_2619 = 0;
	var uLocal_2620 = 0;
	var uLocal_2621 = 0;
	var uLocal_2622 = 0;
	var uLocal_2623 = 0;
	var uLocal_2624 = 0;
	var uLocal_2625 = 0;
	var uLocal_2626 = 0;
	var uLocal_2627 = 0;
	struct<16> Local_2628 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_2644 = 0;
	var uLocal_2645 = 0;
	var uLocal_2646 = 0;
	var uLocal_2647 = 0;
	struct<20> Local_2648[3];
	struct<20> Local_2709[3];
	struct<20> Local_2770[2];
	int iLocal_2811 = 0;
	struct<5> Local_2812[24];
	struct<21> Local_2933 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_2954 = 0;
	var uLocal_2955 = 0;
	var uLocal_2956 = 0;
	vector3 vLocal_2957 = { 0f, 0f, 0f };
	var uLocal_2960 = 0;
	var uLocal_2961 = 0;
	var uLocal_2962 = 0;
	var uLocal_2963 = 0;
	var uLocal_2964 = 0;
	var uLocal_2965 = 0;
	var uLocal_2966 = 0;
	var uLocal_2967 = 0;
	var uLocal_2968 = 0;
	var uLocal_2969 = 0;
	var uLocal_2970 = 0;
	var uLocal_2971 = 0;
	var uLocal_2972 = 0;
	var uLocal_2973 = 0;
	var uLocal_2974 = 0;
	var uLocal_2975 = 0;
	var uLocal_2976 = 0;
	var uLocal_2977 = 0;
	var uLocal_2978 = 0;
	var uLocal_2979 = 0;
	var uLocal_2980 = 0;
	struct<13> Local_2981 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_2994 = 0;
	var uLocal_2995 = 0;
	var uLocal_2996 = 0;
	var uLocal_2997 = 0;
	var uLocal_2998 = 0;
	var uLocal_2999 = 0;
	var uLocal_3000 = 0;
	var uLocal_3001 = 0;
	var uLocal_3002 = 0;
	var uLocal_3003 = 0;
	var uLocal_3004 = 0;
	vector3 vLocal_3005 = { 0f, 0f, 0f };
	var uLocal_3008 = 0;
	var uLocal_3009 = 0;
	var uLocal_3010 = 0;
	var uLocal_3011 = 0;
	var uLocal_3012 = 0;
	var uLocal_3013 = 0;
	var uLocal_3014 = 0;
	var uLocal_3015 = 0;
	var uLocal_3016 = 0;
	var uLocal_3017 = 0;
	var uLocal_3018 = 0;
	var uLocal_3019 = 0;
	var uLocal_3020 = 0;
	var uLocal_3021 = 0;
	var uLocal_3022 = 0;
	var uLocal_3023 = 0;
	var uLocal_3024 = 0;
	var uLocal_3025 = 0;
	var uLocal_3026 = 0;
	var uLocal_3027 = 0;
	var uLocal_3028 = 0;
	struct<13> Local_3029 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_3042 = 0;
	var uLocal_3043 = 0;
	var uLocal_3044 = 0;
	var uLocal_3045 = 0;
	var uLocal_3046 = 0;
	var uLocal_3047 = 0;
	var uLocal_3048 = 0;
	var uLocal_3049 = 0;
	var uLocal_3050 = 0;
	var uLocal_3051 = 0;
	var uLocal_3052 = 0;
	struct<10> Local_3053[2];
	struct<6> Local_3074 = { 0, 3, 0, 0, 0, 0 } ;
	var uLocal_3080 = 0;
	var uLocal_3081 = 1092616192;
	var uLocal_3082 = 1101004800;
	var uLocal_3083 = 0;
	var uLocal_3084 = 0;
	var uLocal_3085 = 0;
	var uLocal_3086 = 0;
	var uLocal_3087 = 0;
	var uLocal_3088 = 0;
	var uLocal_3089 = 0;
	var uLocal_3090 = 0;
	var uLocal_3091 = 3;
	var uLocal_3092 = 0;
	var uLocal_3093 = 0;
	var uLocal_3094 = 0;
	var uLocal_3095 = 0;
	var uLocal_3096 = 0;
	var uLocal_3097 = 0;
	var uLocal_3098 = 0;
	int iLocal_3099 = 4;
	var uLocal_3100 = 0;
	var uLocal_3101 = 0;
	var uLocal_3102 = 0;
	var uLocal_3103 = 0;
	var uLocal_3104 = 0;
	var uLocal_3105 = 0;
	var uLocal_3106 = 0;
	var uLocal_3107 = 4;
	var uLocal_3108 = 0;
	var uLocal_3109 = 0;
	var uLocal_3110 = 0;
	var uLocal_3111 = 0;
	var uLocal_3112 = 4;
	var uLocal_3113 = 0;
	var uLocal_3114 = 0;
	var uLocal_3115 = 0;
	var uLocal_3116 = 0;
	var uLocal_3117 = 4;
	var uLocal_3118 = 0;
	var uLocal_3119 = 0;
	var uLocal_3120 = 0;
	var uLocal_3121 = 0;
	var uLocal_3122 = 0;
	var uLocal_3123 = 4;
	var uLocal_3124 = 0;
	var uLocal_3125 = 0;
	var uLocal_3126 = 0;
	var uLocal_3127 = 0;
	var uLocal_3128 = 4;
	var uLocal_3129 = 0;
	var uLocal_3130 = 0;
	var uLocal_3131 = 0;
	var uLocal_3132 = 0;
	var uLocal_3133 = 4;
	var uLocal_3134 = 0;
	var uLocal_3135 = 0;
	var uLocal_3136 = 0;
	var uLocal_3137 = 0;
	var uLocal_3138 = 0;
	var uLocal_3139 = 0;
	var uLocal_3140 = 0;
	var uLocal_3141 = 0;
	var uLocal_3142 = 0;
	struct<20> Local_3143 = { 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ;
	var uLocal_3163 = 0;
	var uLocal_3164 = 0;
	var uLocal_3165 = 0;
	var uLocal_3166 = 0;
	var uLocal_3167 = 0;
	var uLocal_3168 = 0;
	var uLocal_3169 = 0;
	var uLocal_3170 = 0;
	var uLocal_3171 = 0;
	var uLocal_3172 = 0;
	var uLocal_3173 = 0;
	var uLocal_3174 = 0;
	var uLocal_3175 = 0;
	var uLocal_3176 = 0;
	int iLocal_3177 = 0;
	int iLocal_3178 = 0;
	int iLocal_3179 = 0;
	int iLocal_3180 = 0;
	int iLocal_3181 = 0;
	int iLocal_3182 = 0;
	int iLocal_3183 = 0;
	int iLocal_3184 = 0;
	int iLocal_3185 = 0;
	int iLocal_3186 = 0;
	int iLocal_3187 = 0;
	int iLocal_3188 = 0;
	int iLocal_3189 = 0;
	int iLocal_3190 = 0;
	int iLocal_3191 = 0;
	int iLocal_3192 = 0;
	int iLocal_3193 = 0;
	int iLocal_3194 = 0;
	int iLocal_3195 = 0;
	int iLocal_3196 = 0;
	int iLocal_3197 = 0;
	int iLocal_3198 = 0;
	int iLocal_3199 = 0;
	int iLocal_3200 = 0;
	int iLocal_3201 = 0;
	int iLocal_3202 = 0;
	int iLocal_3203 = 0;
	int iLocal_3204 = 0;
	int iLocal_3205 = 0;
	int iLocal_3206 = 0;
	int iLocal_3207 = 0;
	int iLocal_3208 = 0;
	int iLocal_3209 = 0;
	int iLocal_3210 = 0;
	int iLocal_3211 = 0;
	int iLocal_3212 = 0;
	int iLocal_3213 = 0;
	int iLocal_3214 = 0;
	int iLocal_3215 = 0;
	int iLocal_3216 = 0;
	int iLocal_3217 = 0;
	int iLocal_3218 = 0;
	int iLocal_3219 = 0;
	int iLocal_3220 = 0;
	int iLocal_3221 = 0;
	int iLocal_3222 = 0;
	int iLocal_3223 = 0;
	int iLocal_3224 = 0;
	int iLocal_3225 = 0;
	int iLocal_3226 = 0;
	int iLocal_3227 = 0;
	int iLocal_3228 = 0;
	int iLocal_3229 = 0;
	int iLocal_3230 = 0;
	int iLocal_3231 = 0;
	int iLocal_3232 = 0;
	int iLocal_3233 = 0;
	int iLocal_3234 = 0;
	int iLocal_3235 = 0;
	int iLocal_3236 = 0;
	int iLocal_3237 = 0;
	int iLocal_3238 = 0;
	int iLocal_3239 = 0;
	int iLocal_3240 = 0;
	int iLocal_3241 = 0;
	int iLocal_3242 = 0;
	int iLocal_3243 = 0;
	int iLocal_3244 = 0;
	int iLocal_3245 = 0;
	int iLocal_3246 = 0;
	int iLocal_3247 = 0;
	int iLocal_3248 = 0;
	int iLocal_3249 = 0;
	int iLocal_3250 = 0;
	int iLocal_3251 = 0;
	int iLocal_3252 = 0;
	int iLocal_3253 = 0;
	int iLocal_3254 = 0;
	int iLocal_3255 = 0;
	int iLocal_3256 = 0;
	int iLocal_3257 = 0;
	int iLocal_3258 = 0;
	int iLocal_3259 = 0;
	int iLocal_3260 = 0;
	int iLocal_3261[20] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
	int iLocal_3282 = 0;
	int iLocal_3283 = 0;
	int iLocal_3284 = 0;
	int iLocal_3285 = 0;
	int iLocal_3286 = 0;
	int iLocal_3287 = 0;
	int iLocal_3288 = 0;
	int iLocal_3289 = 0;
	int iLocal_3290 = 0;
	int iLocal_3291 = 0;
	int iLocal_3292 = 0;
	int iLocal_3293 = 0;
	int iLocal_3294 = 0;
	int iLocal_3295 = 0;
	int iLocal_3296 = 0;
	int iLocal_3297 = 0;
	int iLocal_3298 = 0;
	var uLocal_3299 = 0;
	int iLocal_3300 = 0;
	int iLocal_3301 = 0;
	int iLocal_3302 = 0;
	int iLocal_3303 = 0;
	var uLocal_3304 = 0;
	int iLocal_3305 = 0;
	int iLocal_3306 = 0;
	int iLocal_3307 = 0;
	int iLocal_3308 = 0;
	int iLocal_3309 = 0;
	int iLocal_3310 = 0;
	int iLocal_3311 = 0;
	int iLocal_3312 = 0;
	int iLocal_3313 = 0;
	int iLocal_3314 = 0;
	int iLocal_3315 = 0;
	int iLocal_3316 = 0;
	int iLocal_3317 = 0;
	int iLocal_3318[36] = { 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, 0, 0, 0, 0, 0 };
	int iLocal_3355 = 0;
	int iLocal_3356 = 0;
	int iLocal_3357 = 0;
	int iLocal_3358 = 0;
	int iLocal_3359 = 0;
	int iLocal_3360 = 0;
	int iLocal_3361 = 0;
	int iLocal_3362 = 0;
	int iLocal_3363 = 0;
	int iLocal_3364 = 0;
	int iLocal_3365 = 0;
	int iLocal_3366 = 0;
	int iLocal_3367 = 0;
	int iLocal_3368[2] = { 0, 0 };
	int iLocal_3371 = 0;
	int iLocal_3372 = 0;
	int iLocal_3373 = 0;
	int iLocal_3374 = 0;
	int iLocal_3375 = 0;
	int iLocal_3376 = 0;
	int iLocal_3377 = 0;
	int iLocal_3378 = 0;
	int iLocal_3379 = 0;
	int iLocal_3380 = 0;
	int iLocal_3381 = 0;
	int iLocal_3382 = 0;
	int iLocal_3383 = 0;
	int iLocal_3384 = 0;
	int iLocal_3385 = 0;
	int iLocal_3386 = 0;
	int iLocal_3387 = 0;
	int iLocal_3388 = 0;
	int iLocal_3389 = 0;
	int iLocal_3390 = 0;
	int iLocal_3391 = 0;
	int iLocal_3392 = 0;
	int iLocal_3393 = 0;
	int iLocal_3394 = 0;
	int iLocal_3395 = 0;
	int iLocal_3396 = 0;
	int iLocal_3397 = 0;
	int iLocal_3398 = 0;
	int iLocal_3399 = 0;
	int iLocal_3400 = 0;
	int iLocal_3401 = 0;
	int iLocal_3402[2] = { 0, 0 };
	int iLocal_3405 = 0;
	int iLocal_3406 = 0;
	int iLocal_3407 = 0;
	int iLocal_3408 = 0;
	int iLocal_3409 = 0;
	int iLocal_3410 = 0;
	int iLocal_3411 = 0;
	vector3 vLocal_3412 = { 0f, 0f, 0f };
	vector3 vLocal_3415 = { 0f, 0f, 0f };
	vector3 vLocal_3418 = { 0f, 0f, 0f };
	vector3 vLocal_3421 = { 0f, 0f, 0f };
	var uLocal_3424 = 0;
	var uLocal_3425 = 0;
	var uLocal_3426 = 0;
	vector3 vLocal_3427 = { 0f, 0f, 0f };
	var uLocal_3430 = 0;
	var uLocal_3431 = 0;
	var uLocal_3432 = 0;
	vector3 vLocal_3433 = { 0f, 0f, 0f };
	vector3 vLocal_3436[2] = {{ 0f, 0f, 0f }, { 0f, 0f, 0f } };
	float fLocal_3443 = 0f;
	float fLocal_3444 = 0f;
	float fLocal_3445 = 0f;
	float fLocal_3446 = 0f;
	char* sLocal_3447 = NULL;
	char* sLocal_3448 = NULL;
	int iLocal_3449 = 0;
	int iLocal_3450 = 0;
	int iLocal_3451 = 0;
	int iLocal_3452 = 0;
	int iLocal_3453 = 0;
	int iLocal_3454 = 0;
	int iLocal_3455 = 0;
	int iLocal_3456 = 0;
	int iLocal_3457 = 0;
	int iLocal_3458 = 0;
	int iLocal_3459 = 0;
	int iLocal_3460 = 0;
	int iLocal_3461 = 0;
	int iLocal_3462 = 0;
	var uLocal_3463 = 0;
	int iLocal_3464 = 0;
	int iLocal_3465 = 0;
	int iLocal_3466 = 0;
	int iLocal_3467 = 0;
	int iLocal_3468 = 0;
	int iLocal_3469 = 0;
	int iLocal_3470 = 0;
	int iLocal_3471 = 0;
	int iLocal_3472 = 0;
	struct<165> Local_3473[2];
	var uLocal_3804 = 0;
	int iLocal_3805 = 0;
	int iLocal_3806 = 0;
	int iLocal_3807 = 0;
	vector3 vLocal_3808 = { 0f, 0f, 0f };
	var uLocal_3811 = 0;
	var uLocal_3812 = 0;
	var uLocal_3813 = 0;
	var uLocal_3814 = 0;
	var uLocal_3815 = 0;
	var uLocal_3816 = 0;
	var uLocal_3817 = 0;
	var uLocal_3818 = 0;
	var uLocal_3819 = 0;
	var uLocal_3820 = 0;
	var uLocal_3821 = 0;
	var uLocal_3822 = 0;
	var uLocal_3823 = 0;
	var uLocal_3824 = 0;
	var uLocal_3825 = 0;
	var uLocal_3826 = 0;
	var uLocal_3827 = 0;
	var uLocal_3828 = 0;
	int iLocal_3829 = 0;
	int iLocal_3830 = 0;
	int iLocal_3831 = 0;
	int iLocal_3832 = 0;
	int iLocal_3833 = 0;
	int iLocal_3834 = 0;
	int iLocal_3835 = 0;
	int iLocal_3836 = 0;
	float fLocal_3837 = 0f;
	int iLocal_3838 = 0;
	var uLocal_3839 = 0;
	var uLocal_3840 = 0;
	var uLocal_3841 = 0;
	var uLocal_3842 = 0;
	var uLocal_3843 = 2;
	var uLocal_3844 = 0;
	var uLocal_3845 = 0;
	var uLocal_3846 = 2;
	var uLocal_3847 = 0;
	var uLocal_3848 = 0;
	var uLocal_3849 = 20;
	var uLocal_3850 = 0;
	var uLocal_3851 = 0;
	var uLocal_3852 = 0;
	var uLocal_3853 = -1;
	var uLocal_3854 = 0;
	var uLocal_3855 = 0;
	var uLocal_3856 = 0;
	var uLocal_3857 = 0;
	var uLocal_3858 = 0;
	var uLocal_3859 = 0;
	var uLocal_3860 = 0;
	var uLocal_3861 = 0;
	var uLocal_3862 = 0;
	var uLocal_3863 = 0;
	var uLocal_3864 = 0;
	var uLocal_3865 = 0;
	var uLocal_3866 = 0;
	var uLocal_3867 = 0;
	var uLocal_3868 = 0;
	var uLocal_3869 = 0;
	var uLocal_3870 = 0;
	var uLocal_3871 = 0;
	var uLocal_3872 = 0;
	var uLocal_3873 = 0;
	var uLocal_3874 = 0;
	var uLocal_3875 = 0;
	var uLocal_3876 = 0;
	var uLocal_3877 = 0;
	var uLocal_3878 = 0;
	var uLocal_3879 = 0;
	var uLocal_3880 = 0;
	var uLocal_3881 = 0;
	var uLocal_3882 = 0;
	var uLocal_3883 = 1065353216;
	var uLocal_3884 = 0;
	var uLocal_3885 = 0;
	var uLocal_3886 = 0;
	var uLocal_3887 = 0;
	var uLocal_3888 = 0;
	var uLocal_3889 = 0;
	var uLocal_3890 = 0;
	var uLocal_3891 = 0;
	var uLocal_3892 = 0;
	var uLocal_3893 = 0;
	var uLocal_3894 = 0;
	var uLocal_3895 = 0;
	var uLocal_3896 = 0;
	var uLocal_3897 = 0;
	var uLocal_3898 = 0;
	var uLocal_3899 = 0;
	var uLocal_3900 = 0;
	var uLocal_3901 = 0;
	var uLocal_3902 = 0;
	var uLocal_3903 = 0;
	var uLocal_3904 = 0;
	var uLocal_3905 = 0;
	var uLocal_3906 = 0;
	var uLocal_3907 = 0;
	var uLocal_3908 = 0;
	var uLocal_3909 = 0;
	var uLocal_3910 = -1;
	var uLocal_3911 = 0;
	var uLocal_3912 = 0;
	var uLocal_3913 = 0;
	var uLocal_3914 = 0;
	var uLocal_3915 = 0;
	var uLocal_3916 = 0;
	var uLocal_3917 = 0;
	var uLocal_3918 = 0;
	var uLocal_3919 = 0;
	var uLocal_3920 = 0;
	var uLocal_3921 = 0;
	var uLocal_3922 = 0;
	var uLocal_3923 = 0;
	var uLocal_3924 = 0;
	var uLocal_3925 = 0;
	var uLocal_3926 = 0;
	var uLocal_3927 = 0;
	var uLocal_3928 = 0;
	var uLocal_3929 = 0;
	var uLocal_3930 = 0;
	var uLocal_3931 = 0;
	var uLocal_3932 = 0;
	var uLocal_3933 = 0;
	var uLocal_3934 = 0;
	var uLocal_3935 = 0;
	var uLocal_3936 = 0;
	var uLocal_3937 = 0;
	var uLocal_3938 = 0;
	var uLocal_3939 = 0;
	var uLocal_3940 = 1065353216;
	var uLocal_3941 = 0;
	var uLocal_3942 = 0;
	var uLocal_3943 = 0;
	var uLocal_3944 = 0;
	var uLocal_3945 = 0;
	var uLocal_3946 = 0;
	var uLocal_3947 = 0;
	var uLocal_3948 = 0;
	var uLocal_3949 = 0;
	var uLocal_3950 = 0;
	var uLocal_3951 = 0;
	var uLocal_3952 = 0;
	var uLocal_3953 = 0;
	var uLocal_3954 = 0;
	var uLocal_3955 = 0;
	var uLocal_3956 = 0;
	var uLocal_3957 = 0;
	var uLocal_3958 = 0;
	var uLocal_3959 = 0;
	var uLocal_3960 = 0;
	var uLocal_3961 = 0;
	var uLocal_3962 = 0;
	var uLocal_3963 = 0;
	var uLocal_3964 = 0;
	var uLocal_3965 = 0;
	var uLocal_3966 = 0;
	var uLocal_3967 = -1;
	var uLocal_3968 = 0;
	var uLocal_3969 = 0;
	var uLocal_3970 = 0;
	var uLocal_3971 = 0;
	var uLocal_3972 = 0;
	var uLocal_3973 = 0;
	var uLocal_3974 = 0;
	var uLocal_3975 = 0;
	var uLocal_3976 = 0;
	var uLocal_3977 = 0;
	var uLocal_3978 = 0;
	var uLocal_3979 = 0;
	var uLocal_3980 = 0;
	var uLocal_3981 = 0;
	var uLocal_3982 = 0;
	var uLocal_3983 = 0;
	var uLocal_3984 = 0;
	var uLocal_3985 = 0;
	var uLocal_3986 = 0;
	var uLocal_3987 = 0;
	var uLocal_3988 = 0;
	var uLocal_3989 = 0;
	var uLocal_3990 = 0;
	var uLocal_3991 = 0;
	var uLocal_3992 = 0;
	var uLocal_3993 = 0;
	var uLocal_3994 = 0;
	var uLocal_3995 = 0;
	var uLocal_3996 = 0;
	var uLocal_3997 = 1065353216;
	var uLocal_3998 = 0;
	var uLocal_3999 = 0;
	var uLocal_4000 = 0;
	var uLocal_4001 = 0;
	var uLocal_4002 = 0;
	var uLocal_4003 = 0;
	var uLocal_4004 = 0;
	var uLocal_4005 = 0;
	var uLocal_4006 = 0;
	var uLocal_4007 = 0;
	var uLocal_4008 = 0;
	var uLocal_4009 = 0;
	var uLocal_4010 = 0;
	var uLocal_4011 = 0;
	var uLocal_4012 = 0;
	var uLocal_4013 = 0;
	var uLocal_4014 = 0;
	var uLocal_4015 = 0;
	var uLocal_4016 = 0;
	var uLocal_4017 = 0;
	var uLocal_4018 = 0;
	var uLocal_4019 = 0;
	var uLocal_4020 = 0;
	var uLocal_4021 = 0;
	var uLocal_4022 = 0;
	var uLocal_4023 = 0;
	var uLocal_4024 = -1;
	var uLocal_4025 = 0;
	var uLocal_4026 = 0;
	var uLocal_4027 = 0;
	var uLocal_4028 = 0;
	var uLocal_4029 = 0;
	var uLocal_4030 = 0;
	var uLocal_4031 = 0;
	var uLocal_4032 = 0;
	var uLocal_4033 = 0;
	var uLocal_4034 = 0;
	var uLocal_4035 = 0;
	var uLocal_4036 = 0;
	var uLocal_4037 = 0;
	var uLocal_4038 = 0;
	var uLocal_4039 = 0;
	var uLocal_4040 = 0;
	var uLocal_4041 = 0;
	var uLocal_4042 = 0;
	var uLocal_4043 = 0;
	var uLocal_4044 = 0;
	var uLocal_4045 = 0;
	var uLocal_4046 = 0;
	var uLocal_4047 = 0;
	var uLocal_4048 = 0;
	var uLocal_4049 = 0;
	var uLocal_4050 = 0;
	var uLocal_4051 = 0;
	var uLocal_4052 = 0;
	var uLocal_4053 = 0;
	var uLocal_4054 = 1065353216;
	var uLocal_4055 = 0;
	var uLocal_4056 = 0;
	var uLocal_4057 = 0;
	var uLocal_4058 = 0;
	var uLocal_4059 = 0;
	var uLocal_4060 = 0;
	var uLocal_4061 = 0;
	var uLocal_4062 = 0;
	var uLocal_4063 = 0;
	var uLocal_4064 = 0;
	var uLocal_4065 = 0;
	var uLocal_4066 = 0;
	var uLocal_4067 = 0;
	var uLocal_4068 = 0;
	var uLocal_4069 = 0;
	var uLocal_4070 = 0;
	var uLocal_4071 = 0;
	var uLocal_4072 = 0;
	var uLocal_4073 = 0;
	var uLocal_4074 = 0;
	var uLocal_4075 = 0;
	var uLocal_4076 = 0;
	var uLocal_4077 = 0;
	var uLocal_4078 = 0;
	var uLocal_4079 = 0;
	var uLocal_4080 = 0;
	var uLocal_4081 = -1;
	var uLocal_4082 = 0;
	var uLocal_4083 = 0;
	var uLocal_4084 = 0;
	var uLocal_4085 = 0;
	var uLocal_4086 = 0;
	var uLocal_4087 = 0;
	var uLocal_4088 = 0;
	var uLocal_4089 = 0;
	var uLocal_4090 = 0;
	var uLocal_4091 = 0;
	var uLocal_4092 = 0;
	var uLocal_4093 = 0;
	var uLocal_4094 = 0;
	var uLocal_4095 = 0;
	var uLocal_4096 = 0;
	var uLocal_4097 = 0;
	var uLocal_4098 = 0;
	var uLocal_4099 = 0;
	var uLocal_4100 = 0;
	var uLocal_4101 = 0;
	var uLocal_4102 = 0;
	var uLocal_4103 = 0;
	var uLocal_4104 = 0;
	var uLocal_4105 = 0;
	var uLocal_4106 = 0;
	var uLocal_4107 = 0;
	var uLocal_4108 = 0;
	var uLocal_4109 = 0;
	var uLocal_4110 = 0;
	var uLocal_4111 = 1065353216;
	var uLocal_4112 = 0;
	var uLocal_4113 = 0;
	var uLocal_4114 = 0;
	var uLocal_4115 = 0;
	var uLocal_4116 = 0;
	var uLocal_4117 = 0;
	var uLocal_4118 = 0;
	var uLocal_4119 = 0;
	var uLocal_4120 = 0;
	var uLocal_4121 = 0;
	var uLocal_4122 = 0;
	var uLocal_4123 = 0;
	var uLocal_4124 = 0;
	var uLocal_4125 = 0;
	var uLocal_4126 = 0;
	var uLocal_4127 = 0;
	var uLocal_4128 = 0;
	var uLocal_4129 = 0;
	var uLocal_4130 = 0;
	var uLocal_4131 = 0;
	var uLocal_4132 = 0;
	var uLocal_4133 = 0;
	var uLocal_4134 = 0;
	var uLocal_4135 = 0;
	var uLocal_4136 = 0;
	var uLocal_4137 = 0;
	var uLocal_4138 = -1;
	var uLocal_4139 = 0;
	var uLocal_4140 = 0;
	var uLocal_4141 = 0;
	var uLocal_4142 = 0;
	var uLocal_4143 = 0;
	var uLocal_4144 = 0;
	var uLocal_4145 = 0;
	var uLocal_4146 = 0;
	var uLocal_4147 = 0;
	var uLocal_4148 = 0;
	var uLocal_4149 = 0;
	var uLocal_4150 = 0;
	var uLocal_4151 = 0;
	var uLocal_4152 = 0;
	var uLocal_4153 = 0;
	var uLocal_4154 = 0;
	var uLocal_4155 = 0;
	var uLocal_4156 = 0;
	var uLocal_4157 = 0;
	var uLocal_4158 = 0;
	var uLocal_4159 = 0;
	var uLocal_4160 = 0;
	var uLocal_4161 = 0;
	var uLocal_4162 = 0;
	var uLocal_4163 = 0;
	var uLocal_4164 = 0;
	var uLocal_4165 = 0;
	var uLocal_4166 = 0;
	var uLocal_4167 = 0;
	var uLocal_4168 = 1065353216;
	var uLocal_4169 = 0;
	var uLocal_4170 = 0;
	var uLocal_4171 = 0;
	var uLocal_4172 = 0;
	var uLocal_4173 = 0;
	var uLocal_4174 = 0;
	var uLocal_4175 = 0;
	var uLocal_4176 = 0;
	var uLocal_4177 = 0;
	var uLocal_4178 = 0;
	var uLocal_4179 = 0;
	var uLocal_4180 = 0;
	var uLocal_4181 = 0;
	var uLocal_4182 = 0;
	var uLocal_4183 = 0;
	var uLocal_4184 = 0;
	var uLocal_4185 = 0;
	var uLocal_4186 = 0;
	var uLocal_4187 = 0;
	var uLocal_4188 = 0;
	var uLocal_4189 = 0;
	var uLocal_4190 = 0;
	var uLocal_4191 = 0;
	var uLocal_4192 = 0;
	var uLocal_4193 = 0;
	var uLocal_4194 = 0;
	var uLocal_4195 = -1;
	var uLocal_4196 = 0;
	var uLocal_4197 = 0;
	var uLocal_4198 = 0;
	var uLocal_4199 = 0;
	var uLocal_4200 = 0;
	var uLocal_4201 = 0;
	var uLocal_4202 = 0;
	var uLocal_4203 = 0;
	var uLocal_4204 = 0;
	var uLocal_4205 = 0;
	var uLocal_4206 = 0;
	var uLocal_4207 = 0;
	var uLocal_4208 = 0;
	var uLocal_4209 = 0;
	var uLocal_4210 = 0;
	var uLocal_4211 = 0;
	var uLocal_4212 = 0;
	var uLocal_4213 = 0;
	var uLocal_4214 = 0;
	var uLocal_4215 = 0;
	var uLocal_4216 = 0;
	var uLocal_4217 = 0;
	var uLocal_4218 = 0;
	var uLocal_4219 = 0;
	var uLocal_4220 = 0;
	var uLocal_4221 = 0;
	var uLocal_4222 = 0;
	var uLocal_4223 = 0;
	var uLocal_4224 = 0;
	var uLocal_4225 = 1065353216;
	var uLocal_4226 = 0;
	var uLocal_4227 = 0;
	var uLocal_4228 = 0;
	var uLocal_4229 = 0;
	var uLocal_4230 = 0;
	var uLocal_4231 = 0;
	var uLocal_4232 = 0;
	var uLocal_4233 = 0;
	var uLocal_4234 = 0;
	var uLocal_4235 = 0;
	var uLocal_4236 = 0;
	var uLocal_4237 = 0;
	var uLocal_4238 = 0;
	var uLocal_4239 = 0;
	var uLocal_4240 = 0;
	var uLocal_4241 = 0;
	var uLocal_4242 = 0;
	var uLocal_4243 = 0;
	var uLocal_4244 = 0;
	var uLocal_4245 = 0;
	var uLocal_4246 = 0;
	var uLocal_4247 = 0;
	var uLocal_4248 = 0;
	var uLocal_4249 = 0;
	var uLocal_4250 = 0;
	var uLocal_4251 = 0;
	var uLocal_4252 = -1;
	var uLocal_4253 = 0;
	var uLocal_4254 = 0;
	var uLocal_4255 = 0;
	var uLocal_4256 = 0;
	var uLocal_4257 = 0;
	var uLocal_4258 = 0;
	var uLocal_4259 = 0;
	var uLocal_4260 = 0;
	var uLocal_4261 = 0;
	var uLocal_4262 = 0;
	var uLocal_4263 = 0;
	var uLocal_4264 = 0;
	var uLocal_4265 = 0;
	var uLocal_4266 = 0;
	var uLocal_4267 = 0;
	var uLocal_4268 = 0;
	var uLocal_4269 = 0;
	var uLocal_4270 = 0;
	var uLocal_4271 = 0;
	var uLocal_4272 = 0;
	var uLocal_4273 = 0;
	var uLocal_4274 = 0;
	var uLocal_4275 = 0;
	var uLocal_4276 = 0;
	var uLocal_4277 = 0;
	var uLocal_4278 = 0;
	var uLocal_4279 = 0;
	var uLocal_4280 = 0;
	var uLocal_4281 = 0;
	var uLocal_4282 = 1065353216;
	var uLocal_4283 = 0;
	var uLocal_4284 = 0;
	var uLocal_4285 = 0;
	var uLocal_4286 = 0;
	var uLocal_4287 = 0;
	var uLocal_4288 = 0;
	var uLocal_4289 = 0;
	var uLocal_4290 = 0;
	var uLocal_4291 = 0;
	var uLocal_4292 = 0;
	var uLocal_4293 = 0;
	var uLocal_4294 = 0;
	var uLocal_4295 = 0;
	var uLocal_4296 = 0;
	var uLocal_4297 = 0;
	var uLocal_4298 = 0;
	var uLocal_4299 = 0;
	var uLocal_4300 = 0;
	var uLocal_4301 = 0;
	var uLocal_4302 = 0;
	var uLocal_4303 = 0;
	var uLocal_4304 = 0;
	var uLocal_4305 = 0;
	var uLocal_4306 = 0;
	var uLocal_4307 = 0;
	var uLocal_4308 = 0;
	var uLocal_4309 = -1;
	var uLocal_4310 = 0;
	var uLocal_4311 = 0;
	var uLocal_4312 = 0;
	var uLocal_4313 = 0;
	var uLocal_4314 = 0;
	var uLocal_4315 = 0;
	var uLocal_4316 = 0;
	var uLocal_4317 = 0;
	var uLocal_4318 = 0;
	var uLocal_4319 = 0;
	var uLocal_4320 = 0;
	var uLocal_4321 = 0;
	var uLocal_4322 = 0;
	var uLocal_4323 = 0;
	var uLocal_4324 = 0;
	var uLocal_4325 = 0;
	var uLocal_4326 = 0;
	var uLocal_4327 = 0;
	var uLocal_4328 = 0;
	var uLocal_4329 = 0;
	var uLocal_4330 = 0;
	var uLocal_4331 = 0;
	var uLocal_4332 = 0;
	var uLocal_4333 = 0;
	var uLocal_4334 = 0;
	var uLocal_4335 = 0;
	var uLocal_4336 = 0;
	var uLocal_4337 = 0;
	var uLocal_4338 = 0;
	var uLocal_4339 = 1065353216;
	var uLocal_4340 = 0;
	var uLocal_4341 = 0;
	var uLocal_4342 = 0;
	var uLocal_4343 = 0;
	var uLocal_4344 = 0;
	var uLocal_4345 = 0;
	var uLocal_4346 = 0;
	var uLocal_4347 = 0;
	var uLocal_4348 = 0;
	var uLocal_4349 = 0;
	var uLocal_4350 = 0;
	var uLocal_4351 = 0;
	var uLocal_4352 = 0;
	var uLocal_4353 = 0;
	var uLocal_4354 = 0;
	var uLocal_4355 = 0;
	var uLocal_4356 = 0;
	var uLocal_4357 = 0;
	var uLocal_4358 = 0;
	var uLocal_4359 = 0;
	var uLocal_4360 = 0;
	var uLocal_4361 = 0;
	var uLocal_4362 = 0;
	var uLocal_4363 = 0;
	var uLocal_4364 = 0;
	var uLocal_4365 = 0;
	var uLocal_4366 = -1;
	var uLocal_4367 = 0;
	var uLocal_4368 = 0;
	var uLocal_4369 = 0;
	var uLocal_4370 = 0;
	var uLocal_4371 = 0;
	var uLocal_4372 = 0;
	var uLocal_4373 = 0;
	var uLocal_4374 = 0;
	var uLocal_4375 = 0;
	var uLocal_4376 = 0;
	var uLocal_4377 = 0;
	var uLocal_4378 = 0;
	var uLocal_4379 = 0;
	var uLocal_4380 = 0;
	var uLocal_4381 = 0;
	var uLocal_4382 = 0;
	var uLocal_4383 = 0;
	var uLocal_4384 = 0;
	var uLocal_4385 = 0;
	var uLocal_4386 = 0;
	var uLocal_4387 = 0;
	var uLocal_4388 = 0;
	var uLocal_4389 = 0;
	var uLocal_4390 = 0;
	var uLocal_4391 = 0;
	var uLocal_4392 = 0;
	var uLocal_4393 = 0;
	var uLocal_4394 = 0;
	var uLocal_4395 = 0;
	var uLocal_4396 = 1065353216;
	var uLocal_4397 = 0;
	var uLocal_4398 = 0;
	var uLocal_4399 = 0;
	var uLocal_4400 = 0;
	var uLocal_4401 = 0;
	var uLocal_4402 = 0;
	var uLocal_4403 = 0;
	var uLocal_4404 = 0;
	var uLocal_4405 = 0;
	var uLocal_4406 = 0;
	var uLocal_4407 = 0;
	var uLocal_4408 = 0;
	var uLocal_4409 = 0;
	var uLocal_4410 = 0;
	var uLocal_4411 = 0;
	var uLocal_4412 = 0;
	var uLocal_4413 = 0;
	var uLocal_4414 = 0;
	var uLocal_4415 = 0;
	var uLocal_4416 = 0;
	var uLocal_4417 = 0;
	var uLocal_4418 = 0;
	var uLocal_4419 = 0;
	var uLocal_4420 = 0;
	var uLocal_4421 = 0;
	var uLocal_4422 = 0;
	var uLocal_4423 = -1;
	var uLocal_4424 = 0;
	var uLocal_4425 = 0;
	var uLocal_4426 = 0;
	var uLocal_4427 = 0;
	var uLocal_4428 = 0;
	var uLocal_4429 = 0;
	var uLocal_4430 = 0;
	var uLocal_4431 = 0;
	var uLocal_4432 = 0;
	var uLocal_4433 = 0;
	var uLocal_4434 = 0;
	var uLocal_4435 = 0;
	var uLocal_4436 = 0;
	var uLocal_4437 = 0;
	var uLocal_4438 = 0;
	var uLocal_4439 = 0;
	var uLocal_4440 = 0;
	var uLocal_4441 = 0;
	var uLocal_4442 = 0;
	var uLocal_4443 = 0;
	var uLocal_4444 = 0;
	var uLocal_4445 = 0;
	var uLocal_4446 = 0;
	var uLocal_4447 = 0;
	var uLocal_4448 = 0;
	var uLocal_4449 = 0;
	var uLocal_4450 = 0;
	var uLocal_4451 = 0;
	var uLocal_4452 = 0;
	var uLocal_4453 = 1065353216;
	var uLocal_4454 = 0;
	var uLocal_4455 = 0;
	var uLocal_4456 = 0;
	var uLocal_4457 = 0;
	var uLocal_4458 = 0;
	var uLocal_4459 = 0;
	var uLocal_4460 = 0;
	var uLocal_4461 = 0;
	var uLocal_4462 = 0;
	var uLocal_4463 = 0;
	var uLocal_4464 = 0;
	var uLocal_4465 = 0;
	var uLocal_4466 = 0;
	var uLocal_4467 = 0;
	var uLocal_4468 = 0;
	var uLocal_4469 = 0;
	var uLocal_4470 = 0;
	var uLocal_4471 = 0;
	var uLocal_4472 = 0;
	var uLocal_4473 = 0;
	var uLocal_4474 = 0;
	var uLocal_4475 = 0;
	var uLocal_4476 = 0;
	var uLocal_4477 = 0;
	var uLocal_4478 = 0;
	var uLocal_4479 = 0;
	var uLocal_4480 = -1;
	var uLocal_4481 = 0;
	var uLocal_4482 = 0;
	var uLocal_4483 = 0;
	var uLocal_4484 = 0;
	var uLocal_4485 = 0;
	var uLocal_4486 = 0;
	var uLocal_4487 = 0;
	var uLocal_4488 = 0;
	var uLocal_4489 = 0;
	var uLocal_4490 = 0;
	var uLocal_4491 = 0;
	var uLocal_4492 = 0;
	var uLocal_4493 = 0;
	var uLocal_4494 = 0;
	var uLocal_4495 = 0;
	var uLocal_4496 = 0;
	var uLocal_4497 = 0;
	var uLocal_4498 = 0;
	var uLocal_4499 = 0;
	var uLocal_4500 = 0;
	var uLocal_4501 = 0;
	var uLocal_4502 = 0;
	var uLocal_4503 = 0;
	var uLocal_4504 = 0;
	var uLocal_4505 = 0;
	var uLocal_4506 = 0;
	var uLocal_4507 = 0;
	var uLocal_4508 = 0;
	var uLocal_4509 = 0;
	var uLocal_4510 = 1065353216;
	var uLocal_4511 = 0;
	var uLocal_4512 = 0;
	var uLocal_4513 = 0;
	var uLocal_4514 = 0;
	var uLocal_4515 = 0;
	var uLocal_4516 = 0;
	var uLocal_4517 = 0;
	var uLocal_4518 = 0;
	var uLocal_4519 = 0;
	var uLocal_4520 = 0;
	var uLocal_4521 = 0;
	var uLocal_4522 = 0;
	var uLocal_4523 = 0;
	var uLocal_4524 = 0;
	var uLocal_4525 = 0;
	var uLocal_4526 = 0;
	var uLocal_4527 = 0;
	var uLocal_4528 = 0;
	var uLocal_4529 = 0;
	var uLocal_4530 = 0;
	var uLocal_4531 = 0;
	var uLocal_4532 = 0;
	var uLocal_4533 = 0;
	var uLocal_4534 = 0;
	var uLocal_4535 = 0;
	var uLocal_4536 = 0;
	var uLocal_4537 = -1;
	var uLocal_4538 = 0;
	var uLocal_4539 = 0;
	var uLocal_4540 = 0;
	var uLocal_4541 = 0;
	var uLocal_4542 = 0;
	var uLocal_4543 = 0;
	var uLocal_4544 = 0;
	var uLocal_4545 = 0;
	var uLocal_4546 = 0;
	var uLocal_4547 = 0;
	var uLocal_4548 = 0;
	var uLocal_4549 = 0;
	var uLocal_4550 = 0;
	var uLocal_4551 = 0;
	var uLocal_4552 = 0;
	var uLocal_4553 = 0;
	var uLocal_4554 = 0;
	var uLocal_4555 = 0;
	var uLocal_4556 = 0;
	var uLocal_4557 = 0;
	var uLocal_4558 = 0;
	var uLocal_4559 = 0;
	var uLocal_4560 = 0;
	var uLocal_4561 = 0;
	var uLocal_4562 = 0;
	var uLocal_4563 = 0;
	var uLocal_4564 = 0;
	var uLocal_4565 = 0;
	var uLocal_4566 = 0;
	var uLocal_4567 = 1065353216;
	var uLocal_4568 = 0;
	var uLocal_4569 = 0;
	var uLocal_4570 = 0;
	var uLocal_4571 = 0;
	var uLocal_4572 = 0;
	var uLocal_4573 = 0;
	var uLocal_4574 = 0;
	var uLocal_4575 = 0;
	var uLocal_4576 = 0;
	var uLocal_4577 = 0;
	var uLocal_4578 = 0;
	var uLocal_4579 = 0;
	var uLocal_4580 = 0;
	var uLocal_4581 = 0;
	var uLocal_4582 = 0;
	var uLocal_4583 = 0;
	var uLocal_4584 = 0;
	var uLocal_4585 = 0;
	var uLocal_4586 = 0;
	var uLocal_4587 = 0;
	var uLocal_4588 = 0;
	var uLocal_4589 = 0;
	var uLocal_4590 = 0;
	var uLocal_4591 = 0;
	var uLocal_4592 = 0;
	var uLocal_4593 = 0;
	var uLocal_4594 = -1;
	var uLocal_4595 = 0;
	var uLocal_4596 = 0;
	var uLocal_4597 = 0;
	var uLocal_4598 = 0;
	var uLocal_4599 = 0;
	var uLocal_4600 = 0;
	var uLocal_4601 = 0;
	var uLocal_4602 = 0;
	var uLocal_4603 = 0;
	var uLocal_4604 = 0;
	var uLocal_4605 = 0;
	var uLocal_4606 = 0;
	var uLocal_4607 = 0;
	var uLocal_4608 = 0;
	var uLocal_4609 = 0;
	var uLocal_4610 = 0;
	var uLocal_4611 = 0;
	var uLocal_4612 = 0;
	var uLocal_4613 = 0;
	var uLocal_4614 = 0;
	var uLocal_4615 = 0;
	var uLocal_4616 = 0;
	var uLocal_4617 = 0;
	var uLocal_4618 = 0;
	var uLocal_4619 = 0;
	var uLocal_4620 = 0;
	var uLocal_4621 = 0;
	var uLocal_4622 = 0;
	var uLocal_4623 = 0;
	var uLocal_4624 = 1065353216;
	var uLocal_4625 = 0;
	var uLocal_4626 = 0;
	var uLocal_4627 = 0;
	var uLocal_4628 = 0;
	var uLocal_4629 = 0;
	var uLocal_4630 = 0;
	var uLocal_4631 = 0;
	var uLocal_4632 = 0;
	var uLocal_4633 = 0;
	var uLocal_4634 = 0;
	var uLocal_4635 = 0;
	var uLocal_4636 = 0;
	var uLocal_4637 = 0;
	var uLocal_4638 = 0;
	var uLocal_4639 = 0;
	var uLocal_4640 = 0;
	var uLocal_4641 = 0;
	var uLocal_4642 = 0;
	var uLocal_4643 = 0;
	var uLocal_4644 = 0;
	var uLocal_4645 = 0;
	var uLocal_4646 = 0;
	var uLocal_4647 = 0;
	var uLocal_4648 = 0;
	var uLocal_4649 = 0;
	var uLocal_4650 = 0;
	var uLocal_4651 = -1;
	var uLocal_4652 = 0;
	var uLocal_4653 = 0;
	var uLocal_4654 = 0;
	var uLocal_4655 = 0;
	var uLocal_4656 = 0;
	var uLocal_4657 = 0;
	var uLocal_4658 = 0;
	var uLocal_4659 = 0;
	var uLocal_4660 = 0;
	var uLocal_4661 = 0;
	var uLocal_4662 = 0;
	var uLocal_4663 = 0;
	var uLocal_4664 = 0;
	var uLocal_4665 = 0;
	var uLocal_4666 = 0;
	var uLocal_4667 = 0;
	var uLocal_4668 = 0;
	var uLocal_4669 = 0;
	var uLocal_4670 = 0;
	var uLocal_4671 = 0;
	var uLocal_4672 = 0;
	var uLocal_4673 = 0;
	var uLocal_4674 = 0;
	var uLocal_4675 = 0;
	var uLocal_4676 = 0;
	var uLocal_4677 = 0;
	var uLocal_4678 = 0;
	var uLocal_4679 = 0;
	var uLocal_4680 = 0;
	var uLocal_4681 = 1065353216;
	var uLocal_4682 = 0;
	var uLocal_4683 = 0;
	var uLocal_4684 = 0;
	var uLocal_4685 = 0;
	var uLocal_4686 = 0;
	var uLocal_4687 = 0;
	var uLocal_4688 = 0;
	var uLocal_4689 = 0;
	var uLocal_4690 = 0;
	var uLocal_4691 = 0;
	var uLocal_4692 = 0;
	var uLocal_4693 = 0;
	var uLocal_4694 = 0;
	var uLocal_4695 = 0;
	var uLocal_4696 = 0;
	var uLocal_4697 = 0;
	var uLocal_4698 = 0;
	var uLocal_4699 = 0;
	var uLocal_4700 = 0;
	var uLocal_4701 = 0;
	var uLocal_4702 = 0;
	var uLocal_4703 = 0;
	var uLocal_4704 = 0;
	var uLocal_4705 = 0;
	var uLocal_4706 = 0;
	var uLocal_4707 = 0;
	var uLocal_4708 = -1;
	var uLocal_4709 = 0;
	var uLocal_4710 = 0;
	var uLocal_4711 = 0;
	var uLocal_4712 = 0;
	var uLocal_4713 = 0;
	var uLocal_4714 = 0;
	var uLocal_4715 = 0;
	var uLocal_4716 = 0;
	var uLocal_4717 = 0;
	var uLocal_4718 = 0;
	var uLocal_4719 = 0;
	var uLocal_4720 = 0;
	var uLocal_4721 = 0;
	var uLocal_4722 = 0;
	var uLocal_4723 = 0;
	var uLocal_4724 = 0;
	var uLocal_4725 = 0;
	var uLocal_4726 = 0;
	var uLocal_4727 = 0;
	var uLocal_4728 = 0;
	var uLocal_4729 = 0;
	var uLocal_4730 = 0;
	var uLocal_4731 = 0;
	var uLocal_4732 = 0;
	var uLocal_4733 = 0;
	var uLocal_4734 = 0;
	var uLocal_4735 = 0;
	var uLocal_4736 = 0;
	var uLocal_4737 = 0;
	var uLocal_4738 = 1065353216;
	var uLocal_4739 = 0;
	var uLocal_4740 = 0;
	var uLocal_4741 = 0;
	var uLocal_4742 = 0;
	var uLocal_4743 = 0;
	var uLocal_4744 = 0;
	var uLocal_4745 = 0;
	var uLocal_4746 = 0;
	var uLocal_4747 = 0;
	var uLocal_4748 = 0;
	var uLocal_4749 = 0;
	var uLocal_4750 = 0;
	var uLocal_4751 = 0;
	var uLocal_4752 = 0;
	var uLocal_4753 = 0;
	var uLocal_4754 = 0;
	var uLocal_4755 = 0;
	var uLocal_4756 = 0;
	var uLocal_4757 = 0;
	var uLocal_4758 = 0;
	var uLocal_4759 = 0;
	var uLocal_4760 = 0;
	var uLocal_4761 = 0;
	var uLocal_4762 = 0;
	var uLocal_4763 = 0;
	var uLocal_4764 = 0;
	var uLocal_4765 = -1;
	var uLocal_4766 = 0;
	var uLocal_4767 = 0;
	var uLocal_4768 = 0;
	var uLocal_4769 = 0;
	var uLocal_4770 = 0;
	var uLocal_4771 = 0;
	var uLocal_4772 = 0;
	var uLocal_4773 = 0;
	var uLocal_4774 = 0;
	var uLocal_4775 = 0;
	var uLocal_4776 = 0;
	var uLocal_4777 = 0;
	var uLocal_4778 = 0;
	var uLocal_4779 = 0;
	var uLocal_4780 = 0;
	var uLocal_4781 = 0;
	var uLocal_4782 = 0;
	var uLocal_4783 = 0;
	var uLocal_4784 = 0;
	var uLocal_4785 = 0;
	var uLocal_4786 = 0;
	var uLocal_4787 = 0;
	var uLocal_4788 = 0;
	var uLocal_4789 = 0;
	var uLocal_4790 = 0;
	var uLocal_4791 = 0;
	var uLocal_4792 = 0;
	var uLocal_4793 = 0;
	var uLocal_4794 = 0;
	var uLocal_4795 = 1065353216;
	var uLocal_4796 = 0;
	var uLocal_4797 = 0;
	var uLocal_4798 = 0;
	var uLocal_4799 = 0;
	var uLocal_4800 = 0;
	var uLocal_4801 = 0;
	var uLocal_4802 = 0;
	var uLocal_4803 = 0;
	var uLocal_4804 = 0;
	var uLocal_4805 = 0;
	var uLocal_4806 = 0;
	var uLocal_4807 = 0;
	var uLocal_4808 = 0;
	var uLocal_4809 = 0;
	var uLocal_4810 = 0;
	var uLocal_4811 = 0;
	var uLocal_4812 = 0;
	var uLocal_4813 = 0;
	var uLocal_4814 = 0;
	var uLocal_4815 = 0;
	var uLocal_4816 = 0;
	var uLocal_4817 = 0;
	var uLocal_4818 = 0;
	var uLocal_4819 = 0;
	var uLocal_4820 = 0;
	var uLocal_4821 = 0;
	var uLocal_4822 = -1;
	var uLocal_4823 = 0;
	var uLocal_4824 = 0;
	var uLocal_4825 = 0;
	var uLocal_4826 = 0;
	var uLocal_4827 = 0;
	var uLocal_4828 = 0;
	var uLocal_4829 = 0;
	var uLocal_4830 = 0;
	var uLocal_4831 = 0;
	var uLocal_4832 = 0;
	var uLocal_4833 = 0;
	var uLocal_4834 = 0;
	var uLocal_4835 = 0;
	var uLocal_4836 = 0;
	var uLocal_4837 = 0;
	var uLocal_4838 = 0;
	var uLocal_4839 = 0;
	var uLocal_4840 = 0;
	var uLocal_4841 = 0;
	var uLocal_4842 = 0;
	var uLocal_4843 = 0;
	var uLocal_4844 = 0;
	var uLocal_4845 = 0;
	var uLocal_4846 = 0;
	var uLocal_4847 = 0;
	var uLocal_4848 = 0;
	var uLocal_4849 = 0;
	var uLocal_4850 = 0;
	var uLocal_4851 = 0;
	var uLocal_4852 = 1065353216;
	var uLocal_4853 = 0;
	var uLocal_4854 = 0;
	var uLocal_4855 = 0;
	var uLocal_4856 = 0;
	var uLocal_4857 = 0;
	var uLocal_4858 = 0;
	var uLocal_4859 = 0;
	var uLocal_4860 = 0;
	var uLocal_4861 = 0;
	var uLocal_4862 = 0;
	var uLocal_4863 = 0;
	var uLocal_4864 = 0;
	var uLocal_4865 = 0;
	var uLocal_4866 = 0;
	var uLocal_4867 = 0;
	var uLocal_4868 = 0;
	var uLocal_4869 = 0;
	var uLocal_4870 = 0;
	var uLocal_4871 = 0;
	var uLocal_4872 = 0;
	var uLocal_4873 = 0;
	var uLocal_4874 = 0;
	var uLocal_4875 = 0;
	var uLocal_4876 = 0;
	var uLocal_4877 = 0;
	var uLocal_4878 = 0;
	var uLocal_4879 = -1;
	var uLocal_4880 = 0;
	var uLocal_4881 = 0;
	var uLocal_4882 = 0;
	var uLocal_4883 = 0;
	var uLocal_4884 = 0;
	var uLocal_4885 = 0;
	var uLocal_4886 = 0;
	var uLocal_4887 = 0;
	var uLocal_4888 = 0;
	var uLocal_4889 = 0;
	var uLocal_4890 = 0;
	var uLocal_4891 = 0;
	var uLocal_4892 = 0;
	var uLocal_4893 = 0;
	var uLocal_4894 = 0;
	var uLocal_4895 = 0;
	var uLocal_4896 = 0;
	var uLocal_4897 = 0;
	var uLocal_4898 = 0;
	var uLocal_4899 = 0;
	var uLocal_4900 = 0;
	var uLocal_4901 = 0;
	var uLocal_4902 = 0;
	var uLocal_4903 = 0;
	var uLocal_4904 = 0;
	var uLocal_4905 = 0;
	var uLocal_4906 = 0;
	var uLocal_4907 = 0;
	var uLocal_4908 = 0;
	var uLocal_4909 = 1065353216;
	var uLocal_4910 = 0;
	var uLocal_4911 = 0;
	var uLocal_4912 = 0;
	var uLocal_4913 = 0;
	var uLocal_4914 = 0;
	var uLocal_4915 = 0;
	var uLocal_4916 = 0;
	var uLocal_4917 = 0;
	var uLocal_4918 = 0;
	var uLocal_4919 = 0;
	var uLocal_4920 = 0;
	var uLocal_4921 = 0;
	var uLocal_4922 = 0;
	var uLocal_4923 = 0;
	var uLocal_4924 = 0;
	var uLocal_4925 = 0;
	var uLocal_4926 = 0;
	var uLocal_4927 = 0;
	var uLocal_4928 = 0;
	var uLocal_4929 = 0;
	var uLocal_4930 = 0;
	var uLocal_4931 = 0;
	var uLocal_4932 = 0;
	var uLocal_4933 = 0;
	var uLocal_4934 = 0;
	var uLocal_4935 = 0;
	var uLocal_4936 = -1;
	var uLocal_4937 = 0;
	var uLocal_4938 = 0;
	var uLocal_4939 = 0;
	var uLocal_4940 = 0;
	var uLocal_4941 = 0;
	var uLocal_4942 = 0;
	var uLocal_4943 = 0;
	var uLocal_4944 = 0;
	var uLocal_4945 = 0;
	var uLocal_4946 = 0;
	var uLocal_4947 = 0;
	var uLocal_4948 = 0;
	var uLocal_4949 = 0;
	var uLocal_4950 = 0;
	var uLocal_4951 = 0;
	var uLocal_4952 = 0;
	var uLocal_4953 = 0;
	var uLocal_4954 = 0;
	var uLocal_4955 = 0;
	var uLocal_4956 = 0;
	var uLocal_4957 = 0;
	var uLocal_4958 = 0;
	var uLocal_4959 = 0;
	var uLocal_4960 = 0;
	var uLocal_4961 = 0;
	var uLocal_4962 = 0;
	var uLocal_4963 = 0;
	var uLocal_4964 = 0;
	var uLocal_4965 = 0;
	var uLocal_4966 = 1065353216;
	var uLocal_4967 = 0;
	var uLocal_4968 = 0;
	var uLocal_4969 = 0;
	var uLocal_4970 = 0;
	var uLocal_4971 = 0;
	var uLocal_4972 = 0;
	var uLocal_4973 = 0;
	var uLocal_4974 = 0;
	var uLocal_4975 = 0;
	var uLocal_4976 = 0;
	var uLocal_4977 = 0;
	var uLocal_4978 = 0;
	var uLocal_4979 = 0;
	var uLocal_4980 = 0;
	var uLocal_4981 = 0;
	var uLocal_4982 = 0;
	var uLocal_4983 = 0;
	var uLocal_4984 = 0;
	var uLocal_4985 = 0;
	var uLocal_4986 = 0;
	var uLocal_4987 = 0;
	var uLocal_4988 = 0;
	var uLocal_4989 = 0;
	var uLocal_4990 = 16;
	var uLocal_4991 = 0;
	var uLocal_4992 = -1082130432;
	var uLocal_4993 = 0;
	var uLocal_4994 = -1082130432;
	var uLocal_4995 = 0;
	var uLocal_4996 = -1082130432;
	var uLocal_4997 = 0;
	var uLocal_4998 = -1082130432;
	var uLocal_4999 = 0;
	var uLocal_5000 = -1082130432;
	var uLocal_5001 = 0;
	var uLocal_5002 = -1082130432;
	var uLocal_5003 = 0;
	var uLocal_5004 = -1082130432;
	var uLocal_5005 = 0;
	var uLocal_5006 = -1082130432;
	var uLocal_5007 = 0;
	var uLocal_5008 = -1082130432;
	var uLocal_5009 = 0;
	var uLocal_5010 = -1082130432;
	var uLocal_5011 = 0;
	var uLocal_5012 = -1082130432;
	var uLocal_5013 = 0;
	var uLocal_5014 = -1082130432;
	var uLocal_5015 = 0;
	var uLocal_5016 = -1082130432;
	var uLocal_5017 = 0;
	var uLocal_5018 = -1082130432;
	var uLocal_5019 = 0;
	var uLocal_5020 = -1082130432;
	var uLocal_5021 = 0;
	var uLocal_5022 = -1082130432;
	var uLocal_5023 = 16;
	var uLocal_5024 = 0;
	var uLocal_5025 = -1082130432;
	var uLocal_5026 = 0;
	var uLocal_5027 = -1082130432;
	var uLocal_5028 = 0;
	var uLocal_5029 = -1082130432;
	var uLocal_5030 = 0;
	var uLocal_5031 = -1082130432;
	var uLocal_5032 = 0;
	var uLocal_5033 = -1082130432;
	var uLocal_5034 = 0;
	var uLocal_5035 = -1082130432;
	var uLocal_5036 = 0;
	var uLocal_5037 = -1082130432;
	var uLocal_5038 = 0;
	var uLocal_5039 = -1082130432;
	var uLocal_5040 = 0;
	var uLocal_5041 = -1082130432;
	var uLocal_5042 = 0;
	var uLocal_5043 = -1082130432;
	var uLocal_5044 = 0;
	var uLocal_5045 = -1082130432;
	var uLocal_5046 = 0;
	var uLocal_5047 = -1082130432;
	var uLocal_5048 = 0;
	var uLocal_5049 = -1082130432;
	var uLocal_5050 = 0;
	var uLocal_5051 = -1082130432;
	var uLocal_5052 = 0;
	var uLocal_5053 = -1082130432;
	var uLocal_5054 = 0;
	var uLocal_5055 = -1082130432;
	var uLocal_5056 = 0;
	var uLocal_5057 = 0;
	var uLocal_5058 = 0;
	var uLocal_5059 = 0;
	var uLocal_5060 = 0;
	var uLocal_5061 = 0;
	var uLocal_5062 = 0;
	var uLocal_5063 = 0;
	var uLocal_5064 = 0;
	var uLocal_5065 = 0;
	var uLocal_5066 = 0;
	var uLocal_5067 = 0;
	var uLocal_5068 = 0;
	var uLocal_5069 = 0;
	var uLocal_5070 = 0;
	var uLocal_5071 = 0;
	var uLocal_5072 = -1082130432;
	var uLocal_5073 = -1082130432;
	var uLocal_5074 = 1;
	var uLocal_5075 = 1;
	var uLocal_5076 = 1;
	var uLocal_5077 = -1;
	var uLocal_5078 = -1;
	var uLocal_5079 = -1;
	var uLocal_5080 = 0;
	var uLocal_5081 = 0;
	var uLocal_5082 = 0;
	var uLocal_5083 = 0;
	var uLocal_5084 = 2;
	var uLocal_5085 = 0;
	var uLocal_5086 = 0;
	var uLocal_5087 = 2;
	var uLocal_5088 = 0;
	var uLocal_5089 = 0;
	var uLocal_5090 = 20;
	var uLocal_5091 = 0;
	var uLocal_5092 = 0;
	var uLocal_5093 = 0;
	var uLocal_5094 = -1;
	var uLocal_5095 = 0;
	var uLocal_5096 = 0;
	var uLocal_5097 = 0;
	var uLocal_5098 = 0;
	var uLocal_5099 = 0;
	var uLocal_5100 = 0;
	var uLocal_5101 = 0;
	var uLocal_5102 = 0;
	var uLocal_5103 = 0;
	var uLocal_5104 = 0;
	var uLocal_5105 = 0;
	var uLocal_5106 = 0;
	var uLocal_5107 = 0;
	var uLocal_5108 = 0;
	var uLocal_5109 = 0;
	var uLocal_5110 = 0;
	var uLocal_5111 = 0;
	var uLocal_5112 = 0;
	var uLocal_5113 = 0;
	var uLocal_5114 = 0;
	var uLocal_5115 = 0;
	var uLocal_5116 = 0;
	var uLocal_5117 = 0;
	var uLocal_5118 = 0;
	var uLocal_5119 = 0;
	var uLocal_5120 = 0;
	var uLocal_5121 = 0;
	var uLocal_5122 = 0;
	var uLocal_5123 = 0;
	var uLocal_5124 = 1065353216;
	var uLocal_5125 = 0;
	var uLocal_5126 = 0;
	var uLocal_5127 = 0;
	var uLocal_5128 = 0;
	var uLocal_5129 = 0;
	var uLocal_5130 = 0;
	var uLocal_5131 = 0;
	var uLocal_5132 = 0;
	var uLocal_5133 = 0;
	var uLocal_5134 = 0;
	var uLocal_5135 = 0;
	var uLocal_5136 = 0;
	var uLocal_5137 = 0;
	var uLocal_5138 = 0;
	var uLocal_5139 = 0;
	var uLocal_5140 = 0;
	var uLocal_5141 = 0;
	var uLocal_5142 = 0;
	var uLocal_5143 = 0;
	var uLocal_5144 = 0;
	var uLocal_5145 = 0;
	var uLocal_5146 = 0;
	var uLocal_5147 = 0;
	var uLocal_5148 = 0;
	var uLocal_5149 = 0;
	var uLocal_5150 = 0;
	var uLocal_5151 = -1;
	var uLocal_5152 = 0;
	var uLocal_5153 = 0;
	var uLocal_5154 = 0;
	var uLocal_5155 = 0;
	var uLocal_5156 = 0;
	var uLocal_5157 = 0;
	var uLocal_5158 = 0;
	var uLocal_5159 = 0;
	var uLocal_5160 = 0;
	var uLocal_5161 = 0;
	var uLocal_5162 = 0;
	var uLocal_5163 = 0;
	var uLocal_5164 = 0;
	var uLocal_5165 = 0;
	var uLocal_5166 = 0;
	var uLocal_5167 = 0;
	var uLocal_5168 = 0;
	var uLocal_5169 = 0;
	var uLocal_5170 = 0;
	var uLocal_5171 = 0;
	var uLocal_5172 = 0;
	var uLocal_5173 = 0;
	var uLocal_5174 = 0;
	var uLocal_5175 = 0;
	var uLocal_5176 = 0;
	var uLocal_5177 = 0;
	var uLocal_5178 = 0;
	var uLocal_5179 = 0;
	var uLocal_5180 = 0;
	var uLocal_5181 = 1065353216;
	var uLocal_5182 = 0;
	var uLocal_5183 = 0;
	var uLocal_5184 = 0;
	var uLocal_5185 = 0;
	var uLocal_5186 = 0;
	var uLocal_5187 = 0;
	var uLocal_5188 = 0;
	var uLocal_5189 = 0;
	var uLocal_5190 = 0;
	var uLocal_5191 = 0;
	var uLocal_5192 = 0;
	var uLocal_5193 = 0;
	var uLocal_5194 = 0;
	var uLocal_5195 = 0;
	var uLocal_5196 = 0;
	var uLocal_5197 = 0;
	var uLocal_5198 = 0;
	var uLocal_5199 = 0;
	var uLocal_5200 = 0;
	var uLocal_5201 = 0;
	var uLocal_5202 = 0;
	var uLocal_5203 = 0;
	var uLocal_5204 = 0;
	var uLocal_5205 = 0;
	var uLocal_5206 = 0;
	var uLocal_5207 = 0;
	var uLocal_5208 = -1;
	var uLocal_5209 = 0;
	var uLocal_5210 = 0;
	var uLocal_5211 = 0;
	var uLocal_5212 = 0;
	var uLocal_5213 = 0;
	var uLocal_5214 = 0;
	var uLocal_5215 = 0;
	var uLocal_5216 = 0;
	var uLocal_5217 = 0;
	var uLocal_5218 = 0;
	var uLocal_5219 = 0;
	var uLocal_5220 = 0;
	var uLocal_5221 = 0;
	var uLocal_5222 = 0;
	var uLocal_5223 = 0;
	var uLocal_5224 = 0;
	var uLocal_5225 = 0;
	var uLocal_5226 = 0;
	var uLocal_5227 = 0;
	var uLocal_5228 = 0;
	var uLocal_5229 = 0;
	var uLocal_5230 = 0;
	var uLocal_5231 = 0;
	var uLocal_5232 = 0;
	var uLocal_5233 = 0;
	var uLocal_5234 = 0;
	var uLocal_5235 = 0;
	var uLocal_5236 = 0;
	var uLocal_5237 = 0;
	var uLocal_5238 = 1065353216;
	var uLocal_5239 = 0;
	var uLocal_5240 = 0;
	var uLocal_5241 = 0;
	var uLocal_5242 = 0;
	var uLocal_5243 = 0;
	var uLocal_5244 = 0;
	var uLocal_5245 = 0;
	var uLocal_5246 = 0;
	var uLocal_5247 = 0;
	var uLocal_5248 = 0;
	var uLocal_5249 = 0;
	var uLocal_5250 = 0;
	var uLocal_5251 = 0;
	var uLocal_5252 = 0;
	var uLocal_5253 = 0;
	var uLocal_5254 = 0;
	var uLocal_5255 = 0;
	var uLocal_5256 = 0;
	var uLocal_5257 = 0;
	var uLocal_5258 = 0;
	var uLocal_5259 = 0;
	var uLocal_5260 = 0;
	var uLocal_5261 = 0;
	var uLocal_5262 = 0;
	var uLocal_5263 = 0;
	var uLocal_5264 = 0;
	var uLocal_5265 = -1;
	var uLocal_5266 = 0;
	var uLocal_5267 = 0;
	var uLocal_5268 = 0;
	var uLocal_5269 = 0;
	var uLocal_5270 = 0;
	var uLocal_5271 = 0;
	var uLocal_5272 = 0;
	var uLocal_5273 = 0;
	var uLocal_5274 = 0;
	var uLocal_5275 = 0;
	var uLocal_5276 = 0;
	var uLocal_5277 = 0;
	var uLocal_5278 = 0;
	var uLocal_5279 = 0;
	var uLocal_5280 = 0;
	var uLocal_5281 = 0;
	var uLocal_5282 = 0;
	var uLocal_5283 = 0;
	var uLocal_5284 = 0;
	var uLocal_5285 = 0;
	var uLocal_5286 = 0;
	var uLocal_5287 = 0;
	var uLocal_5288 = 0;
	var uLocal_5289 = 0;
	var uLocal_5290 = 0;
	var uLocal_5291 = 0;
	var uLocal_5292 = 0;
	var uLocal_5293 = 0;
	var uLocal_5294 = 0;
	var uLocal_5295 = 1065353216;
	var uLocal_5296 = 0;
	var uLocal_5297 = 0;
	var uLocal_5298 = 0;
	var uLocal_5299 = 0;
	var uLocal_5300 = 0;
	var uLocal_5301 = 0;
	var uLocal_5302 = 0;
	var uLocal_5303 = 0;
	var uLocal_5304 = 0;
	var uLocal_5305 = 0;
	var uLocal_5306 = 0;
	var uLocal_5307 = 0;
	var uLocal_5308 = 0;
	var uLocal_5309 = 0;
	var uLocal_5310 = 0;
	var uLocal_5311 = 0;
	var uLocal_5312 = 0;
	var uLocal_5313 = 0;
	var uLocal_5314 = 0;
	var uLocal_5315 = 0;
	var uLocal_5316 = 0;
	var uLocal_5317 = 0;
	var uLocal_5318 = 0;
	var uLocal_5319 = 0;
	var uLocal_5320 = 0;
	var uLocal_5321 = 0;
	var uLocal_5322 = -1;
	var uLocal_5323 = 0;
	var uLocal_5324 = 0;
	var uLocal_5325 = 0;
	var uLocal_5326 = 0;
	var uLocal_5327 = 0;
	var uLocal_5328 = 0;
	var uLocal_5329 = 0;
	var uLocal_5330 = 0;
	var uLocal_5331 = 0;
	var uLocal_5332 = 0;
	var uLocal_5333 = 0;
	var uLocal_5334 = 0;
	var uLocal_5335 = 0;
	var uLocal_5336 = 0;
	var uLocal_5337 = 0;
	var uLocal_5338 = 0;
	var uLocal_5339 = 0;
	var uLocal_5340 = 0;
	var uLocal_5341 = 0;
	var uLocal_5342 = 0;
	var uLocal_5343 = 0;
	var uLocal_5344 = 0;
	var uLocal_5345 = 0;
	var uLocal_5346 = 0;
	var uLocal_5347 = 0;
	var uLocal_5348 = 0;
	var uLocal_5349 = 0;
	var uLocal_5350 = 0;
	var uLocal_5351 = 0;
	var uLocal_5352 = 1065353216;
	var uLocal_5353 = 0;
	var uLocal_5354 = 0;
	var uLocal_5355 = 0;
	var uLocal_5356 = 0;
	var uLocal_5357 = 0;
	var uLocal_5358 = 0;
	var uLocal_5359 = 0;
	var uLocal_5360 = 0;
	var uLocal_5361 = 0;
	var uLocal_5362 = 0;
	var uLocal_5363 = 0;
	var uLocal_5364 = 0;
	var uLocal_5365 = 0;
	var uLocal_5366 = 0;
	var uLocal_5367 = 0;
	var uLocal_5368 = 0;
	var uLocal_5369 = 0;
	var uLocal_5370 = 0;
	var uLocal_5371 = 0;
	var uLocal_5372 = 0;
	var uLocal_5373 = 0;
	var uLocal_5374 = 0;
	var uLocal_5375 = 0;
	var uLocal_5376 = 0;
	var uLocal_5377 = 0;
	var uLocal_5378 = 0;
	var uLocal_5379 = -1;
	var uLocal_5380 = 0;
	var uLocal_5381 = 0;
	var uLocal_5382 = 0;
	var uLocal_5383 = 0;
	var uLocal_5384 = 0;
	var uLocal_5385 = 0;
	var uLocal_5386 = 0;
	var uLocal_5387 = 0;
	var uLocal_5388 = 0;
	var uLocal_5389 = 0;
	var uLocal_5390 = 0;
	var uLocal_5391 = 0;
	var uLocal_5392 = 0;
	var uLocal_5393 = 0;
	var uLocal_5394 = 0;
	var uLocal_5395 = 0;
	var uLocal_5396 = 0;
	var uLocal_5397 = 0;
	var uLocal_5398 = 0;
	var uLocal_5399 = 0;
	var uLocal_5400 = 0;
	var uLocal_5401 = 0;
	var uLocal_5402 = 0;
	var uLocal_5403 = 0;
	var uLocal_5404 = 0;
	var uLocal_5405 = 0;
	var uLocal_5406 = 0;
	var uLocal_5407 = 0;
	var uLocal_5408 = 0;
	var uLocal_5409 = 1065353216;
	var uLocal_5410 = 0;
	var uLocal_5411 = 0;
	var uLocal_5412 = 0;
	var uLocal_5413 = 0;
	var uLocal_5414 = 0;
	var uLocal_5415 = 0;
	var uLocal_5416 = 0;
	var uLocal_5417 = 0;
	var uLocal_5418 = 0;
	var uLocal_5419 = 0;
	var uLocal_5420 = 0;
	var uLocal_5421 = 0;
	var uLocal_5422 = 0;
	var uLocal_5423 = 0;
	var uLocal_5424 = 0;
	var uLocal_5425 = 0;
	var uLocal_5426 = 0;
	var uLocal_5427 = 0;
	var uLocal_5428 = 0;
	var uLocal_5429 = 0;
	var uLocal_5430 = 0;
	var uLocal_5431 = 0;
	var uLocal_5432 = 0;
	var uLocal_5433 = 0;
	var uLocal_5434 = 0;
	var uLocal_5435 = 0;
	var uLocal_5436 = -1;
	var uLocal_5437 = 0;
	var uLocal_5438 = 0;
	var uLocal_5439 = 0;
	var uLocal_5440 = 0;
	var uLocal_5441 = 0;
	var uLocal_5442 = 0;
	var uLocal_5443 = 0;
	var uLocal_5444 = 0;
	var uLocal_5445 = 0;
	var uLocal_5446 = 0;
	var uLocal_5447 = 0;
	var uLocal_5448 = 0;
	var uLocal_5449 = 0;
	var uLocal_5450 = 0;
	var uLocal_5451 = 0;
	var uLocal_5452 = 0;
	var uLocal_5453 = 0;
	var uLocal_5454 = 0;
	var uLocal_5455 = 0;
	var uLocal_5456 = 0;
	var uLocal_5457 = 0;
	var uLocal_5458 = 0;
	var uLocal_5459 = 0;
	var uLocal_5460 = 0;
	var uLocal_5461 = 0;
	var uLocal_5462 = 0;
	var uLocal_5463 = 0;
	var uLocal_5464 = 0;
	var uLocal_5465 = 0;
	var uLocal_5466 = 1065353216;
	var uLocal_5467 = 0;
	var uLocal_5468 = 0;
	var uLocal_5469 = 0;
	var uLocal_5470 = 0;
	var uLocal_5471 = 0;
	var uLocal_5472 = 0;
	var uLocal_5473 = 0;
	var uLocal_5474 = 0;
	var uLocal_5475 = 0;
	var uLocal_5476 = 0;
	var uLocal_5477 = 0;
	var uLocal_5478 = 0;
	var uLocal_5479 = 0;
	var uLocal_5480 = 0;
	var uLocal_5481 = 0;
	var uLocal_5482 = 0;
	var uLocal_5483 = 0;
	var uLocal_5484 = 0;
	var uLocal_5485 = 0;
	var uLocal_5486 = 0;
	var uLocal_5487 = 0;
	var uLocal_5488 = 0;
	var uLocal_5489 = 0;
	var uLocal_5490 = 0;
	var uLocal_5491 = 0;
	var uLocal_5492 = 0;
	var uLocal_5493 = -1;
	var uLocal_5494 = 0;
	var uLocal_5495 = 0;
	var uLocal_5496 = 0;
	var uLocal_5497 = 0;
	var uLocal_5498 = 0;
	var uLocal_5499 = 0;
	var uLocal_5500 = 0;
	var uLocal_5501 = 0;
	var uLocal_5502 = 0;
	var uLocal_5503 = 0;
	var uLocal_5504 = 0;
	var uLocal_5505 = 0;
	var uLocal_5506 = 0;
	var uLocal_5507 = 0;
	var uLocal_5508 = 0;
	var uLocal_5509 = 0;
	var uLocal_5510 = 0;
	var uLocal_5511 = 0;
	var uLocal_5512 = 0;
	var uLocal_5513 = 0;
	var uLocal_5514 = 0;
	var uLocal_5515 = 0;
	var uLocal_5516 = 0;
	var uLocal_5517 = 0;
	var uLocal_5518 = 0;
	var uLocal_5519 = 0;
	var uLocal_5520 = 0;
	var uLocal_5521 = 0;
	var uLocal_5522 = 0;
	var uLocal_5523 = 1065353216;
	var uLocal_5524 = 0;
	var uLocal_5525 = 0;
	var uLocal_5526 = 0;
	var uLocal_5527 = 0;
	var uLocal_5528 = 0;
	var uLocal_5529 = 0;
	var uLocal_5530 = 0;
	var uLocal_5531 = 0;
	var uLocal_5532 = 0;
	var uLocal_5533 = 0;
	var uLocal_5534 = 0;
	var uLocal_5535 = 0;
	var uLocal_5536 = 0;
	var uLocal_5537 = 0;
	var uLocal_5538 = 0;
	var uLocal_5539 = 0;
	var uLocal_5540 = 0;
	var uLocal_5541 = 0;
	var uLocal_5542 = 0;
	var uLocal_5543 = 0;
	var uLocal_5544 = 0;
	var uLocal_5545 = 0;
	var uLocal_5546 = 0;
	var uLocal_5547 = 0;
	var uLocal_5548 = 0;
	var uLocal_5549 = 0;
	var uLocal_5550 = -1;
	var uLocal_5551 = 0;
	var uLocal_5552 = 0;
	var uLocal_5553 = 0;
	var uLocal_5554 = 0;
	var uLocal_5555 = 0;
	var uLocal_5556 = 0;
	var uLocal_5557 = 0;
	var uLocal_5558 = 0;
	var uLocal_5559 = 0;
	var uLocal_5560 = 0;
	var uLocal_5561 = 0;
	var uLocal_5562 = 0;
	var uLocal_5563 = 0;
	var uLocal_5564 = 0;
	var uLocal_5565 = 0;
	var uLocal_5566 = 0;
	var uLocal_5567 = 0;
	var uLocal_5568 = 0;
	var uLocal_5569 = 0;
	var uLocal_5570 = 0;
	var uLocal_5571 = 0;
	var uLocal_5572 = 0;
	var uLocal_5573 = 0;
	var uLocal_5574 = 0;
	var uLocal_5575 = 0;
	var uLocal_5576 = 0;
	var uLocal_5577 = 0;
	var uLocal_5578 = 0;
	var uLocal_5579 = 0;
	var uLocal_5580 = 1065353216;
	var uLocal_5581 = 0;
	var uLocal_5582 = 0;
	var uLocal_5583 = 0;
	var uLocal_5584 = 0;
	var uLocal_5585 = 0;
	var uLocal_5586 = 0;
	var uLocal_5587 = 0;
	var uLocal_5588 = 0;
	var uLocal_5589 = 0;
	var uLocal_5590 = 0;
	var uLocal_5591 = 0;
	var uLocal_5592 = 0;
	var uLocal_5593 = 0;
	var uLocal_5594 = 0;
	var uLocal_5595 = 0;
	var uLocal_5596 = 0;
	var uLocal_5597 = 0;
	var uLocal_5598 = 0;
	var uLocal_5599 = 0;
	var uLocal_5600 = 0;
	var uLocal_5601 = 0;
	var uLocal_5602 = 0;
	var uLocal_5603 = 0;
	var uLocal_5604 = 0;
	var uLocal_5605 = 0;
	var uLocal_5606 = 0;
	var uLocal_5607 = -1;
	var uLocal_5608 = 0;
	var uLocal_5609 = 0;
	var uLocal_5610 = 0;
	var uLocal_5611 = 0;
	var uLocal_5612 = 0;
	var uLocal_5613 = 0;
	var uLocal_5614 = 0;
	var uLocal_5615 = 0;
	var uLocal_5616 = 0;
	var uLocal_5617 = 0;
	var uLocal_5618 = 0;
	var uLocal_5619 = 0;
	var uLocal_5620 = 0;
	var uLocal_5621 = 0;
	var uLocal_5622 = 0;
	var uLocal_5623 = 0;
	var uLocal_5624 = 0;
	var uLocal_5625 = 0;
	var uLocal_5626 = 0;
	var uLocal_5627 = 0;
	var uLocal_5628 = 0;
	var uLocal_5629 = 0;
	var uLocal_5630 = 0;
	var uLocal_5631 = 0;
	var uLocal_5632 = 0;
	var uLocal_5633 = 0;
	var uLocal_5634 = 0;
	var uLocal_5635 = 0;
	var uLocal_5636 = 0;
	var uLocal_5637 = 1065353216;
	var uLocal_5638 = 0;
	var uLocal_5639 = 0;
	var uLocal_5640 = 0;
	var uLocal_5641 = 0;
	var uLocal_5642 = 0;
	var uLocal_5643 = 0;
	var uLocal_5644 = 0;
	var uLocal_5645 = 0;
	var uLocal_5646 = 0;
	var uLocal_5647 = 0;
	var uLocal_5648 = 0;
	var uLocal_5649 = 0;
	var uLocal_5650 = 0;
	var uLocal_5651 = 0;
	var uLocal_5652 = 0;
	var uLocal_5653 = 0;
	var uLocal_5654 = 0;
	var uLocal_5655 = 0;
	var uLocal_5656 = 0;
	var uLocal_5657 = 0;
	var uLocal_5658 = 0;
	var uLocal_5659 = 0;
	var uLocal_5660 = 0;
	var uLocal_5661 = 0;
	var uLocal_5662 = 0;
	var uLocal_5663 = 0;
	var uLocal_5664 = -1;
	var uLocal_5665 = 0;
	var uLocal_5666 = 0;
	var uLocal_5667 = 0;
	var uLocal_5668 = 0;
	var uLocal_5669 = 0;
	var uLocal_5670 = 0;
	var uLocal_5671 = 0;
	var uLocal_5672 = 0;
	var uLocal_5673 = 0;
	var uLocal_5674 = 0;
	var uLocal_5675 = 0;
	var uLocal_5676 = 0;
	var uLocal_5677 = 0;
	var uLocal_5678 = 0;
	var uLocal_5679 = 0;
	var uLocal_5680 = 0;
	var uLocal_5681 = 0;
	var uLocal_5682 = 0;
	var uLocal_5683 = 0;
	var uLocal_5684 = 0;
	var uLocal_5685 = 0;
	var uLocal_5686 = 0;
	var uLocal_5687 = 0;
	var uLocal_5688 = 0;
	var uLocal_5689 = 0;
	var uLocal_5690 = 0;
	var uLocal_5691 = 0;
	var uLocal_5692 = 0;
	var uLocal_5693 = 0;
	var uLocal_5694 = 1065353216;
	var uLocal_5695 = 0;
	var uLocal_5696 = 0;
	var uLocal_5697 = 0;
	var uLocal_5698 = 0;
	var uLocal_5699 = 0;
	var uLocal_5700 = 0;
	var uLocal_5701 = 0;
	var uLocal_5702 = 0;
	var uLocal_5703 = 0;
	var uLocal_5704 = 0;
	var uLocal_5705 = 0;
	var uLocal_5706 = 0;
	var uLocal_5707 = 0;
	var uLocal_5708 = 0;
	var uLocal_5709 = 0;
	var uLocal_5710 = 0;
	var uLocal_5711 = 0;
	var uLocal_5712 = 0;
	var uLocal_5713 = 0;
	var uLocal_5714 = 0;
	var uLocal_5715 = 0;
	var uLocal_5716 = 0;
	var uLocal_5717 = 0;
	var uLocal_5718 = 0;
	var uLocal_5719 = 0;
	var uLocal_5720 = 0;
	var uLocal_5721 = -1;
	var uLocal_5722 = 0;
	var uLocal_5723 = 0;
	var uLocal_5724 = 0;
	var uLocal_5725 = 0;
	var uLocal_5726 = 0;
	var uLocal_5727 = 0;
	var uLocal_5728 = 0;
	var uLocal_5729 = 0;
	var uLocal_5730 = 0;
	var uLocal_5731 = 0;
	var uLocal_5732 = 0;
	var uLocal_5733 = 0;
	var uLocal_5734 = 0;
	var uLocal_5735 = 0;
	var uLocal_5736 = 0;
	var uLocal_5737 = 0;
	var uLocal_5738 = 0;
	var uLocal_5739 = 0;
	var uLocal_5740 = 0;
	var uLocal_5741 = 0;
	var uLocal_5742 = 0;
	var uLocal_5743 = 0;
	var uLocal_5744 = 0;
	var uLocal_5745 = 0;
	var uLocal_5746 = 0;
	var uLocal_5747 = 0;
	var uLocal_5748 = 0;
	var uLocal_5749 = 0;
	var uLocal_5750 = 0;
	var uLocal_5751 = 1065353216;
	var uLocal_5752 = 0;
	var uLocal_5753 = 0;
	var uLocal_5754 = 0;
	var uLocal_5755 = 0;
	var uLocal_5756 = 0;
	var uLocal_5757 = 0;
	var uLocal_5758 = 0;
	var uLocal_5759 = 0;
	var uLocal_5760 = 0;
	var uLocal_5761 = 0;
	var uLocal_5762 = 0;
	var uLocal_5763 = 0;
	var uLocal_5764 = 0;
	var uLocal_5765 = 0;
	var uLocal_5766 = 0;
	var uLocal_5767 = 0;
	var uLocal_5768 = 0;
	var uLocal_5769 = 0;
	var uLocal_5770 = 0;
	var uLocal_5771 = 0;
	var uLocal_5772 = 0;
	var uLocal_5773 = 0;
	var uLocal_5774 = 0;
	var uLocal_5775 = 0;
	var uLocal_5776 = 0;
	var uLocal_5777 = 0;
	var uLocal_5778 = -1;
	var uLocal_5779 = 0;
	var uLocal_5780 = 0;
	var uLocal_5781 = 0;
	var uLocal_5782 = 0;
	var uLocal_5783 = 0;
	var uLocal_5784 = 0;
	var uLocal_5785 = 0;
	var uLocal_5786 = 0;
	var uLocal_5787 = 0;
	var uLocal_5788 = 0;
	var uLocal_5789 = 0;
	var uLocal_5790 = 0;
	var uLocal_5791 = 0;
	var uLocal_5792 = 0;
	var uLocal_5793 = 0;
	var uLocal_5794 = 0;
	var uLocal_5795 = 0;
	var uLocal_5796 = 0;
	var uLocal_5797 = 0;
	var uLocal_5798 = 0;
	var uLocal_5799 = 0;
	var uLocal_5800 = 0;
	var uLocal_5801 = 0;
	var uLocal_5802 = 0;
	var uLocal_5803 = 0;
	var uLocal_5804 = 0;
	var uLocal_5805 = 0;
	var uLocal_5806 = 0;
	var uLocal_5807 = 0;
	var uLocal_5808 = 1065353216;
	var uLocal_5809 = 0;
	var uLocal_5810 = 0;
	var uLocal_5811 = 0;
	var uLocal_5812 = 0;
	var uLocal_5813 = 0;
	var uLocal_5814 = 0;
	var uLocal_5815 = 0;
	var uLocal_5816 = 0;
	var uLocal_5817 = 0;
	var uLocal_5818 = 0;
	var uLocal_5819 = 0;
	var uLocal_5820 = 0;
	var uLocal_5821 = 0;
	var uLocal_5822 = 0;
	var uLocal_5823 = 0;
	var uLocal_5824 = 0;
	var uLocal_5825 = 0;
	var uLocal_5826 = 0;
	var uLocal_5827 = 0;
	var uLocal_5828 = 0;
	var uLocal_5829 = 0;
	var uLocal_5830 = 0;
	var uLocal_5831 = 0;
	var uLocal_5832 = 0;
	var uLocal_5833 = 0;
	var uLocal_5834 = 0;
	var uLocal_5835 = -1;
	var uLocal_5836 = 0;
	var uLocal_5837 = 0;
	var uLocal_5838 = 0;
	var uLocal_5839 = 0;
	var uLocal_5840 = 0;
	var uLocal_5841 = 0;
	var uLocal_5842 = 0;
	var uLocal_5843 = 0;
	var uLocal_5844 = 0;
	var uLocal_5845 = 0;
	var uLocal_5846 = 0;
	var uLocal_5847 = 0;
	var uLocal_5848 = 0;
	var uLocal_5849 = 0;
	var uLocal_5850 = 0;
	var uLocal_5851 = 0;
	var uLocal_5852 = 0;
	var uLocal_5853 = 0;
	var uLocal_5854 = 0;
	var uLocal_5855 = 0;
	var uLocal_5856 = 0;
	var uLocal_5857 = 0;
	var uLocal_5858 = 0;
	var uLocal_5859 = 0;
	var uLocal_5860 = 0;
	var uLocal_5861 = 0;
	var uLocal_5862 = 0;
	var uLocal_5863 = 0;
	var uLocal_5864 = 0;
	var uLocal_5865 = 1065353216;
	var uLocal_5866 = 0;
	var uLocal_5867 = 0;
	var uLocal_5868 = 0;
	var uLocal_5869 = 0;
	var uLocal_5870 = 0;
	var uLocal_5871 = 0;
	var uLocal_5872 = 0;
	var uLocal_5873 = 0;
	var uLocal_5874 = 0;
	var uLocal_5875 = 0;
	var uLocal_5876 = 0;
	var uLocal_5877 = 0;
	var uLocal_5878 = 0;
	var uLocal_5879 = 0;
	var uLocal_5880 = 0;
	var uLocal_5881 = 0;
	var uLocal_5882 = 0;
	var uLocal_5883 = 0;
	var uLocal_5884 = 0;
	var uLocal_5885 = 0;
	var uLocal_5886 = 0;
	var uLocal_5887 = 0;
	var uLocal_5888 = 0;
	var uLocal_5889 = 0;
	var uLocal_5890 = 0;
	var uLocal_5891 = 0;
	var uLocal_5892 = -1;
	var uLocal_5893 = 0;
	var uLocal_5894 = 0;
	var uLocal_5895 = 0;
	var uLocal_5896 = 0;
	var uLocal_5897 = 0;
	var uLocal_5898 = 0;
	var uLocal_5899 = 0;
	var uLocal_5900 = 0;
	var uLocal_5901 = 0;
	var uLocal_5902 = 0;
	var uLocal_5903 = 0;
	var uLocal_5904 = 0;
	var uLocal_5905 = 0;
	var uLocal_5906 = 0;
	var uLocal_5907 = 0;
	var uLocal_5908 = 0;
	var uLocal_5909 = 0;
	var uLocal_5910 = 0;
	var uLocal_5911 = 0;
	var uLocal_5912 = 0;
	var uLocal_5913 = 0;
	var uLocal_5914 = 0;
	var uLocal_5915 = 0;
	var uLocal_5916 = 0;
	var uLocal_5917 = 0;
	var uLocal_5918 = 0;
	var uLocal_5919 = 0;
	var uLocal_5920 = 0;
	var uLocal_5921 = 0;
	var uLocal_5922 = 1065353216;
	var uLocal_5923 = 0;
	var uLocal_5924 = 0;
	var uLocal_5925 = 0;
	var uLocal_5926 = 0;
	var uLocal_5927 = 0;
	var uLocal_5928 = 0;
	var uLocal_5929 = 0;
	var uLocal_5930 = 0;
	var uLocal_5931 = 0;
	var uLocal_5932 = 0;
	var uLocal_5933 = 0;
	var uLocal_5934 = 0;
	var uLocal_5935 = 0;
	var uLocal_5936 = 0;
	var uLocal_5937 = 0;
	var uLocal_5938 = 0;
	var uLocal_5939 = 0;
	var uLocal_5940 = 0;
	var uLocal_5941 = 0;
	var uLocal_5942 = 0;
	var uLocal_5943 = 0;
	var uLocal_5944 = 0;
	var uLocal_5945 = 0;
	var uLocal_5946 = 0;
	var uLocal_5947 = 0;
	var uLocal_5948 = 0;
	var uLocal_5949 = -1;
	var uLocal_5950 = 0;
	var uLocal_5951 = 0;
	var uLocal_5952 = 0;
	var uLocal_5953 = 0;
	var uLocal_5954 = 0;
	var uLocal_5955 = 0;
	var uLocal_5956 = 0;
	var uLocal_5957 = 0;
	var uLocal_5958 = 0;
	var uLocal_5959 = 0;
	var uLocal_5960 = 0;
	var uLocal_5961 = 0;
	var uLocal_5962 = 0;
	var uLocal_5963 = 0;
	var uLocal_5964 = 0;
	var uLocal_5965 = 0;
	var uLocal_5966 = 0;
	var uLocal_5967 = 0;
	var uLocal_5968 = 0;
	var uLocal_5969 = 0;
	var uLocal_5970 = 0;
	var uLocal_5971 = 0;
	var uLocal_5972 = 0;
	var uLocal_5973 = 0;
	var uLocal_5974 = 0;
	var uLocal_5975 = 0;
	var uLocal_5976 = 0;
	var uLocal_5977 = 0;
	var uLocal_5978 = 0;
	var uLocal_5979 = 1065353216;
	var uLocal_5980 = 0;
	var uLocal_5981 = 0;
	var uLocal_5982 = 0;
	var uLocal_5983 = 0;
	var uLocal_5984 = 0;
	var uLocal_5985 = 0;
	var uLocal_5986 = 0;
	var uLocal_5987 = 0;
	var uLocal_5988 = 0;
	var uLocal_5989 = 0;
	var uLocal_5990 = 0;
	var uLocal_5991 = 0;
	var uLocal_5992 = 0;
	var uLocal_5993 = 0;
	var uLocal_5994 = 0;
	var uLocal_5995 = 0;
	var uLocal_5996 = 0;
	var uLocal_5997 = 0;
	var uLocal_5998 = 0;
	var uLocal_5999 = 0;
	var uLocal_6000 = 0;
	var uLocal_6001 = 0;
	var uLocal_6002 = 0;
	var uLocal_6003 = 0;
	var uLocal_6004 = 0;
	var uLocal_6005 = 0;
	var uLocal_6006 = -1;
	var uLocal_6007 = 0;
	var uLocal_6008 = 0;
	var uLocal_6009 = 0;
	var uLocal_6010 = 0;
	var uLocal_6011 = 0;
	var uLocal_6012 = 0;
	var uLocal_6013 = 0;
	var uLocal_6014 = 0;
	var uLocal_6015 = 0;
	var uLocal_6016 = 0;
	var uLocal_6017 = 0;
	var uLocal_6018 = 0;
	var uLocal_6019 = 0;
	var uLocal_6020 = 0;
	var uLocal_6021 = 0;
	var uLocal_6022 = 0;
	var uLocal_6023 = 0;
	var uLocal_6024 = 0;
	var uLocal_6025 = 0;
	var uLocal_6026 = 0;
	var uLocal_6027 = 0;
	var uLocal_6028 = 0;
	var uLocal_6029 = 0;
	var uLocal_6030 = 0;
	var uLocal_6031 = 0;
	var uLocal_6032 = 0;
	var uLocal_6033 = 0;
	var uLocal_6034 = 0;
	var uLocal_6035 = 0;
	var uLocal_6036 = 1065353216;
	var uLocal_6037 = 0;
	var uLocal_6038 = 0;
	var uLocal_6039 = 0;
	var uLocal_6040 = 0;
	var uLocal_6041 = 0;
	var uLocal_6042 = 0;
	var uLocal_6043 = 0;
	var uLocal_6044 = 0;
	var uLocal_6045 = 0;
	var uLocal_6046 = 0;
	var uLocal_6047 = 0;
	var uLocal_6048 = 0;
	var uLocal_6049 = 0;
	var uLocal_6050 = 0;
	var uLocal_6051 = 0;
	var uLocal_6052 = 0;
	var uLocal_6053 = 0;
	var uLocal_6054 = 0;
	var uLocal_6055 = 0;
	var uLocal_6056 = 0;
	var uLocal_6057 = 0;
	var uLocal_6058 = 0;
	var uLocal_6059 = 0;
	var uLocal_6060 = 0;
	var uLocal_6061 = 0;
	var uLocal_6062 = 0;
	var uLocal_6063 = -1;
	var uLocal_6064 = 0;
	var uLocal_6065 = 0;
	var uLocal_6066 = 0;
	var uLocal_6067 = 0;
	var uLocal_6068 = 0;
	var uLocal_6069 = 0;
	var uLocal_6070 = 0;
	var uLocal_6071 = 0;
	var uLocal_6072 = 0;
	var uLocal_6073 = 0;
	var uLocal_6074 = 0;
	var uLocal_6075 = 0;
	var uLocal_6076 = 0;
	var uLocal_6077 = 0;
	var uLocal_6078 = 0;
	var uLocal_6079 = 0;
	var uLocal_6080 = 0;
	var uLocal_6081 = 0;
	var uLocal_6082 = 0;
	var uLocal_6083 = 0;
	var uLocal_6084 = 0;
	var uLocal_6085 = 0;
	var uLocal_6086 = 0;
	var uLocal_6087 = 0;
	var uLocal_6088 = 0;
	var uLocal_6089 = 0;
	var uLocal_6090 = 0;
	var uLocal_6091 = 0;
	var uLocal_6092 = 0;
	var uLocal_6093 = 1065353216;
	var uLocal_6094 = 0;
	var uLocal_6095 = 0;
	var uLocal_6096 = 0;
	var uLocal_6097 = 0;
	var uLocal_6098 = 0;
	var uLocal_6099 = 0;
	var uLocal_6100 = 0;
	var uLocal_6101 = 0;
	var uLocal_6102 = 0;
	var uLocal_6103 = 0;
	var uLocal_6104 = 0;
	var uLocal_6105 = 0;
	var uLocal_6106 = 0;
	var uLocal_6107 = 0;
	var uLocal_6108 = 0;
	var uLocal_6109 = 0;
	var uLocal_6110 = 0;
	var uLocal_6111 = 0;
	var uLocal_6112 = 0;
	var uLocal_6113 = 0;
	var uLocal_6114 = 0;
	var uLocal_6115 = 0;
	var uLocal_6116 = 0;
	var uLocal_6117 = 0;
	var uLocal_6118 = 0;
	var uLocal_6119 = 0;
	var uLocal_6120 = -1;
	var uLocal_6121 = 0;
	var uLocal_6122 = 0;
	var uLocal_6123 = 0;
	var uLocal_6124 = 0;
	var uLocal_6125 = 0;
	var uLocal_6126 = 0;
	var uLocal_6127 = 0;
	var uLocal_6128 = 0;
	var uLocal_6129 = 0;
	var uLocal_6130 = 0;
	var uLocal_6131 = 0;
	var uLocal_6132 = 0;
	var uLocal_6133 = 0;
	var uLocal_6134 = 0;
	var uLocal_6135 = 0;
	var uLocal_6136 = 0;
	var uLocal_6137 = 0;
	var uLocal_6138 = 0;
	var uLocal_6139 = 0;
	var uLocal_6140 = 0;
	var uLocal_6141 = 0;
	var uLocal_6142 = 0;
	var uLocal_6143 = 0;
	var uLocal_6144 = 0;
	var uLocal_6145 = 0;
	var uLocal_6146 = 0;
	var uLocal_6147 = 0;
	var uLocal_6148 = 0;
	var uLocal_6149 = 0;
	var uLocal_6150 = 1065353216;
	var uLocal_6151 = 0;
	var uLocal_6152 = 0;
	var uLocal_6153 = 0;
	var uLocal_6154 = 0;
	var uLocal_6155 = 0;
	var uLocal_6156 = 0;
	var uLocal_6157 = 0;
	var uLocal_6158 = 0;
	var uLocal_6159 = 0;
	var uLocal_6160 = 0;
	var uLocal_6161 = 0;
	var uLocal_6162 = 0;
	var uLocal_6163 = 0;
	var uLocal_6164 = 0;
	var uLocal_6165 = 0;
	var uLocal_6166 = 0;
	var uLocal_6167 = 0;
	var uLocal_6168 = 0;
	var uLocal_6169 = 0;
	var uLocal_6170 = 0;
	var uLocal_6171 = 0;
	var uLocal_6172 = 0;
	var uLocal_6173 = 0;
	var uLocal_6174 = 0;
	var uLocal_6175 = 0;
	var uLocal_6176 = 0;
	var uLocal_6177 = -1;
	var uLocal_6178 = 0;
	var uLocal_6179 = 0;
	var uLocal_6180 = 0;
	var uLocal_6181 = 0;
	var uLocal_6182 = 0;
	var uLocal_6183 = 0;
	var uLocal_6184 = 0;
	var uLocal_6185 = 0;
	var uLocal_6186 = 0;
	var uLocal_6187 = 0;
	var uLocal_6188 = 0;
	var uLocal_6189 = 0;
	var uLocal_6190 = 0;
	var uLocal_6191 = 0;
	var uLocal_6192 = 0;
	var uLocal_6193 = 0;
	var uLocal_6194 = 0;
	var uLocal_6195 = 0;
	var uLocal_6196 = 0;
	var uLocal_6197 = 0;
	var uLocal_6198 = 0;
	var uLocal_6199 = 0;
	var uLocal_6200 = 0;
	var uLocal_6201 = 0;
	var uLocal_6202 = 0;
	var uLocal_6203 = 0;
	var uLocal_6204 = 0;
	var uLocal_6205 = 0;
	var uLocal_6206 = 0;
	var uLocal_6207 = 1065353216;
	var uLocal_6208 = 0;
	var uLocal_6209 = 0;
	var uLocal_6210 = 0;
	var uLocal_6211 = 0;
	var uLocal_6212 = 0;
	var uLocal_6213 = 0;
	var uLocal_6214 = 0;
	var uLocal_6215 = 0;
	var uLocal_6216 = 0;
	var uLocal_6217 = 0;
	var uLocal_6218 = 0;
	var uLocal_6219 = 0;
	var uLocal_6220 = 0;
	var uLocal_6221 = 0;
	var uLocal_6222 = 0;
	var uLocal_6223 = 0;
	var uLocal_6224 = 0;
	var uLocal_6225 = 0;
	var uLocal_6226 = 0;
	var uLocal_6227 = 0;
	var uLocal_6228 = 0;
	var uLocal_6229 = 0;
	var uLocal_6230 = 0;
	var uLocal_6231 = 16;
	var uLocal_6232 = 0;
	var uLocal_6233 = -1082130432;
	var uLocal_6234 = 0;
	var uLocal_6235 = -1082130432;
	var uLocal_6236 = 0;
	var uLocal_6237 = -1082130432;
	var uLocal_6238 = 0;
	var uLocal_6239 = -1082130432;
	var uLocal_6240 = 0;
	var uLocal_6241 = -1082130432;
	var uLocal_6242 = 0;
	var uLocal_6243 = -1082130432;
	var uLocal_6244 = 0;
	var uLocal_6245 = -1082130432;
	var uLocal_6246 = 0;
	var uLocal_6247 = -1082130432;
	var uLocal_6248 = 0;
	var uLocal_6249 = -1082130432;
	var uLocal_6250 = 0;
	var uLocal_6251 = -1082130432;
	var uLocal_6252 = 0;
	var uLocal_6253 = -1082130432;
	var uLocal_6254 = 0;
	var uLocal_6255 = -1082130432;
	var uLocal_6256 = 0;
	var uLocal_6257 = -1082130432;
	var uLocal_6258 = 0;
	var uLocal_6259 = -1082130432;
	var uLocal_6260 = 0;
	var uLocal_6261 = -1082130432;
	var uLocal_6262 = 0;
	var uLocal_6263 = -1082130432;
	var uLocal_6264 = 16;
	var uLocal_6265 = 0;
	var uLocal_6266 = -1082130432;
	var uLocal_6267 = 0;
	var uLocal_6268 = -1082130432;
	var uLocal_6269 = 0;
	var uLocal_6270 = -1082130432;
	var uLocal_6271 = 0;
	var uLocal_6272 = -1082130432;
	var uLocal_6273 = 0;
	var uLocal_6274 = -1082130432;
	var uLocal_6275 = 0;
	var uLocal_6276 = -1082130432;
	var uLocal_6277 = 0;
	var uLocal_6278 = -1082130432;
	var uLocal_6279 = 0;
	var uLocal_6280 = -1082130432;
	var uLocal_6281 = 0;
	var uLocal_6282 = -1082130432;
	var uLocal_6283 = 0;
	var uLocal_6284 = -1082130432;
	var uLocal_6285 = 0;
	var uLocal_6286 = -1082130432;
	var uLocal_6287 = 0;
	var uLocal_6288 = -1082130432;
	var uLocal_6289 = 0;
	var uLocal_6290 = -1082130432;
	var uLocal_6291 = 0;
	var uLocal_6292 = -1082130432;
	var uLocal_6293 = 0;
	var uLocal_6294 = -1082130432;
	var uLocal_6295 = 0;
	var uLocal_6296 = -1082130432;
	var uLocal_6297 = 0;
	var uLocal_6298 = 0;
	var uLocal_6299 = 0;
	var uLocal_6300 = 0;
	var uLocal_6301 = 0;
	var uLocal_6302 = 0;
	var uLocal_6303 = 0;
	var uLocal_6304 = 0;
	var uLocal_6305 = 0;
	var uLocal_6306 = 0;
	var uLocal_6307 = 0;
	var uLocal_6308 = 0;
	var uLocal_6309 = 0;
	var uLocal_6310 = 0;
	var uLocal_6311 = 0;
	var uLocal_6312 = 0;
	var uLocal_6313 = -1082130432;
	var uLocal_6314 = -1082130432;
	var uLocal_6315 = 1;
	var uLocal_6316 = 1;
	var uLocal_6317 = 1;
	var uLocal_6318 = -1;
	var uLocal_6319 = -1;
	var uLocal_6320 = -1;
	var uLocal_6321 = 0;
	var uLocal_6322 = 0;
	var uLocal_6323 = 0;
	var uLocal_6324 = 0;
	var uLocal_6325 = 2;
	var uLocal_6326 = 0;
	var uLocal_6327 = 0;
	var uLocal_6328 = 2;
	var uLocal_6329 = 0;
	var uLocal_6330 = 0;
	var uLocal_6331 = 20;
	var uLocal_6332 = 0;
	var uLocal_6333 = 0;
	var uLocal_6334 = 0;
	var uLocal_6335 = -1;
	var uLocal_6336 = 0;
	var uLocal_6337 = 0;
	var uLocal_6338 = 0;
	var uLocal_6339 = 0;
	var uLocal_6340 = 0;
	var uLocal_6341 = 0;
	var uLocal_6342 = 0;
	var uLocal_6343 = 0;
	var uLocal_6344 = 0;
	var uLocal_6345 = 0;
	var uLocal_6346 = 0;
	var uLocal_6347 = 0;
	var uLocal_6348 = 0;
	var uLocal_6349 = 0;
	var uLocal_6350 = 0;
	var uLocal_6351 = 0;
	var uLocal_6352 = 0;
	var uLocal_6353 = 0;
	var uLocal_6354 = 0;
	var uLocal_6355 = 0;
	var uLocal_6356 = 0;
	var uLocal_6357 = 0;
	var uLocal_6358 = 0;
	var uLocal_6359 = 0;
	var uLocal_6360 = 0;
	var uLocal_6361 = 0;
	var uLocal_6362 = 0;
	var uLocal_6363 = 0;
	var uLocal_6364 = 0;
	var uLocal_6365 = 1065353216;
	var uLocal_6366 = 0;
	var uLocal_6367 = 0;
	var uLocal_6368 = 0;
	var uLocal_6369 = 0;
	var uLocal_6370 = 0;
	var uLocal_6371 = 0;
	var uLocal_6372 = 0;
	var uLocal_6373 = 0;
	var uLocal_6374 = 0;
	var uLocal_6375 = 0;
	var uLocal_6376 = 0;
	var uLocal_6377 = 0;
	var uLocal_6378 = 0;
	var uLocal_6379 = 0;
	var uLocal_6380 = 0;
	var uLocal_6381 = 0;
	var uLocal_6382 = 0;
	var uLocal_6383 = 0;
	var uLocal_6384 = 0;
	var uLocal_6385 = 0;
	var uLocal_6386 = 0;
	var uLocal_6387 = 0;
	var uLocal_6388 = 0;
	var uLocal_6389 = 0;
	var uLocal_6390 = 0;
	var uLocal_6391 = 0;
	var uLocal_6392 = -1;
	var uLocal_6393 = 0;
	var uLocal_6394 = 0;
	var uLocal_6395 = 0;
	var uLocal_6396 = 0;
	var uLocal_6397 = 0;
	var uLocal_6398 = 0;
	var uLocal_6399 = 0;
	var uLocal_6400 = 0;
	var uLocal_6401 = 0;
	var uLocal_6402 = 0;
	var uLocal_6403 = 0;
	var uLocal_6404 = 0;
	var uLocal_6405 = 0;
	var uLocal_6406 = 0;
	var uLocal_6407 = 0;
	var uLocal_6408 = 0;
	var uLocal_6409 = 0;
	var uLocal_6410 = 0;
	var uLocal_6411 = 0;
	var uLocal_6412 = 0;
	var uLocal_6413 = 0;
	var uLocal_6414 = 0;
	var uLocal_6415 = 0;
	var uLocal_6416 = 0;
	var uLocal_6417 = 0;
	var uLocal_6418 = 0;
	var uLocal_6419 = 0;
	var uLocal_6420 = 0;
	var uLocal_6421 = 0;
	var uLocal_6422 = 1065353216;
	var uLocal_6423 = 0;
	var uLocal_6424 = 0;
	var uLocal_6425 = 0;
	var uLocal_6426 = 0;
	var uLocal_6427 = 0;
	var uLocal_6428 = 0;
	var uLocal_6429 = 0;
	var uLocal_6430 = 0;
	var uLocal_6431 = 0;
	var uLocal_6432 = 0;
	var uLocal_6433 = 0;
	var uLocal_6434 = 0;
	var uLocal_6435 = 0;
	var uLocal_6436 = 0;
	var uLocal_6437 = 0;
	var uLocal_6438 = 0;
	var uLocal_6439 = 0;
	var uLocal_6440 = 0;
	var uLocal_6441 = 0;
	var uLocal_6442 = 0;
	var uLocal_6443 = 0;
	var uLocal_6444 = 0;
	var uLocal_6445 = 0;
	var uLocal_6446 = 0;
	var uLocal_6447 = 0;
	var uLocal_6448 = 0;
	var uLocal_6449 = -1;
	var uLocal_6450 = 0;
	var uLocal_6451 = 0;
	var uLocal_6452 = 0;
	var uLocal_6453 = 0;
	var uLocal_6454 = 0;
	var uLocal_6455 = 0;
	var uLocal_6456 = 0;
	var uLocal_6457 = 0;
	var uLocal_6458 = 0;
	var uLocal_6459 = 0;
	var uLocal_6460 = 0;
	var uLocal_6461 = 0;
	var uLocal_6462 = 0;
	var uLocal_6463 = 0;
	var uLocal_6464 = 0;
	var uLocal_6465 = 0;
	var uLocal_6466 = 0;
	var uLocal_6467 = 0;
	var uLocal_6468 = 0;
	var uLocal_6469 = 0;
	var uLocal_6470 = 0;
	var uLocal_6471 = 0;
	var uLocal_6472 = 0;
	var uLocal_6473 = 0;
	var uLocal_6474 = 0;
	var uLocal_6475 = 0;
	var uLocal_6476 = 0;
	var uLocal_6477 = 0;
	var uLocal_6478 = 0;
	var uLocal_6479 = 1065353216;
	var uLocal_6480 = 0;
	var uLocal_6481 = 0;
	var uLocal_6482 = 0;
	var uLocal_6483 = 0;
	var uLocal_6484 = 0;
	var uLocal_6485 = 0;
	var uLocal_6486 = 0;
	var uLocal_6487 = 0;
	var uLocal_6488 = 0;
	var uLocal_6489 = 0;
	var uLocal_6490 = 0;
	var uLocal_6491 = 0;
	var uLocal_6492 = 0;
	var uLocal_6493 = 0;
	var uLocal_6494 = 0;
	var uLocal_6495 = 0;
	var uLocal_6496 = 0;
	var uLocal_6497 = 0;
	var uLocal_6498 = 0;
	var uLocal_6499 = 0;
	var uLocal_6500 = 0;
	var uLocal_6501 = 0;
	var uLocal_6502 = 0;
	var uLocal_6503 = 0;
	var uLocal_6504 = 0;
	var uLocal_6505 = 0;
	var uLocal_6506 = -1;
	var uLocal_6507 = 0;
	var uLocal_6508 = 0;
	var uLocal_6509 = 0;
	var uLocal_6510 = 0;
	var uLocal_6511 = 0;
	var uLocal_6512 = 0;
	var uLocal_6513 = 0;
	var uLocal_6514 = 0;
	var uLocal_6515 = 0;
	var uLocal_6516 = 0;
	var uLocal_6517 = 0;
	var uLocal_6518 = 0;
	var uLocal_6519 = 0;
	var uLocal_6520 = 0;
	var uLocal_6521 = 0;
	var uLocal_6522 = 0;
	var uLocal_6523 = 0;
	var uLocal_6524 = 0;
	var uLocal_6525 = 0;
	var uLocal_6526 = 0;
	var uLocal_6527 = 0;
	var uLocal_6528 = 0;
	var uLocal_6529 = 0;
	var uLocal_6530 = 0;
	var uLocal_6531 = 0;
	var uLocal_6532 = 0;
	var uLocal_6533 = 0;
	var uLocal_6534 = 0;
	var uLocal_6535 = 0;
	var uLocal_6536 = 1065353216;
	var uLocal_6537 = 0;
	var uLocal_6538 = 0;
	var uLocal_6539 = 0;
	var uLocal_6540 = 0;
	var uLocal_6541 = 0;
	var uLocal_6542 = 0;
	var uLocal_6543 = 0;
	var uLocal_6544 = 0;
	var uLocal_6545 = 0;
	var uLocal_6546 = 0;
	var uLocal_6547 = 0;
	var uLocal_6548 = 0;
	var uLocal_6549 = 0;
	var uLocal_6550 = 0;
	var uLocal_6551 = 0;
	var uLocal_6552 = 0;
	var uLocal_6553 = 0;
	var uLocal_6554 = 0;
	var uLocal_6555 = 0;
	var uLocal_6556 = 0;
	var uLocal_6557 = 0;
	var uLocal_6558 = 0;
	var uLocal_6559 = 0;
	var uLocal_6560 = 0;
	var uLocal_6561 = 0;
	var uLocal_6562 = 0;
	var uLocal_6563 = -1;
	var uLocal_6564 = 0;
	var uLocal_6565 = 0;
	var uLocal_6566 = 0;
	var uLocal_6567 = 0;
	var uLocal_6568 = 0;
	var uLocal_6569 = 0;
	var uLocal_6570 = 0;
	var uLocal_6571 = 0;
	var uLocal_6572 = 0;
	var uLocal_6573 = 0;
	var uLocal_6574 = 0;
	var uLocal_6575 = 0;
	var uLocal_6576 = 0;
	var uLocal_6577 = 0;
	var uLocal_6578 = 0;
	var uLocal_6579 = 0;
	var uLocal_6580 = 0;
	var uLocal_6581 = 0;
	var uLocal_6582 = 0;
	var uLocal_6583 = 0;
	var uLocal_6584 = 0;
	var uLocal_6585 = 0;
	var uLocal_6586 = 0;
	var uLocal_6587 = 0;
	var uLocal_6588 = 0;
	var uLocal_6589 = 0;
	var uLocal_6590 = 0;
	var uLocal_6591 = 0;
	var uLocal_6592 = 0;
	var uLocal_6593 = 1065353216;
	var uLocal_6594 = 0;
	var uLocal_6595 = 0;
	var uLocal_6596 = 0;
	var uLocal_6597 = 0;
	var uLocal_6598 = 0;
	var uLocal_6599 = 0;
	var uLocal_6600 = 0;
	var uLocal_6601 = 0;
	var uLocal_6602 = 0;
	var uLocal_6603 = 0;
	var uLocal_6604 = 0;
	var uLocal_6605 = 0;
	var uLocal_6606 = 0;
	var uLocal_6607 = 0;
	var uLocal_6608 = 0;
	var uLocal_6609 = 0;
	var uLocal_6610 = 0;
	var uLocal_6611 = 0;
	var uLocal_6612 = 0;
	var uLocal_6613 = 0;
	var uLocal_6614 = 0;
	var uLocal_6615 = 0;
	var uLocal_6616 = 0;
	var uLocal_6617 = 0;
	var uLocal_6618 = 0;
	var uLocal_6619 = 0;
	var uLocal_6620 = -1;
	var uLocal_6621 = 0;
	var uLocal_6622 = 0;
	var uLocal_6623 = 0;
	var uLocal_6624 = 0;
	var uLocal_6625 = 0;
	var uLocal_6626 = 0;
	var uLocal_6627 = 0;
	var uLocal_6628 = 0;
	var uLocal_6629 = 0;
	var uLocal_6630 = 0;
	var uLocal_6631 = 0;
	var uLocal_6632 = 0;
	var uLocal_6633 = 0;
	var uLocal_6634 = 0;
	var uLocal_6635 = 0;
	var uLocal_6636 = 0;
	var uLocal_6637 = 0;
	var uLocal_6638 = 0;
	var uLocal_6639 = 0;
	var uLocal_6640 = 0;
	var uLocal_6641 = 0;
	var uLocal_6642 = 0;
	var uLocal_6643 = 0;
	var uLocal_6644 = 0;
	var uLocal_6645 = 0;
	var uLocal_6646 = 0;
	var uLocal_6647 = 0;
	var uLocal_6648 = 0;
	var uLocal_6649 = 0;
	var uLocal_6650 = 1065353216;
	var uLocal_6651 = 0;
	var uLocal_6652 = 0;
	var uLocal_6653 = 0;
	var uLocal_6654 = 0;
	var uLocal_6655 = 0;
	var uLocal_6656 = 0;
	var uLocal_6657 = 0;
	var uLocal_6658 = 0;
	var uLocal_6659 = 0;
	var uLocal_6660 = 0;
	var uLocal_6661 = 0;
	var uLocal_6662 = 0;
	var uLocal_6663 = 0;
	var uLocal_6664 = 0;
	var uLocal_6665 = 0;
	var uLocal_6666 = 0;
	var uLocal_6667 = 0;
	var uLocal_6668 = 0;
	var uLocal_6669 = 0;
	var uLocal_6670 = 0;
	var uLocal_6671 = 0;
	var uLocal_6672 = 0;
	var uLocal_6673 = 0;
	var uLocal_6674 = 0;
	var uLocal_6675 = 0;
	var uLocal_6676 = 0;
	var uLocal_6677 = -1;
	var uLocal_6678 = 0;
	var uLocal_6679 = 0;
	var uLocal_6680 = 0;
	var uLocal_6681 = 0;
	var uLocal_6682 = 0;
	var uLocal_6683 = 0;
	var uLocal_6684 = 0;
	var uLocal_6685 = 0;
	var uLocal_6686 = 0;
	var uLocal_6687 = 0;
	var uLocal_6688 = 0;
	var uLocal_6689 = 0;
	var uLocal_6690 = 0;
	var uLocal_6691 = 0;
	var uLocal_6692 = 0;
	var uLocal_6693 = 0;
	var uLocal_6694 = 0;
	var uLocal_6695 = 0;
	var uLocal_6696 = 0;
	var uLocal_6697 = 0;
	var uLocal_6698 = 0;
	var uLocal_6699 = 0;
	var uLocal_6700 = 0;
	var uLocal_6701 = 0;
	var uLocal_6702 = 0;
	var uLocal_6703 = 0;
	var uLocal_6704 = 0;
	var uLocal_6705 = 0;
	var uLocal_6706 = 0;
	var uLocal_6707 = 1065353216;
	var uLocal_6708 = 0;
	var uLocal_6709 = 0;
	var uLocal_6710 = 0;
	var uLocal_6711 = 0;
	var uLocal_6712 = 0;
	var uLocal_6713 = 0;
	var uLocal_6714 = 0;
	var uLocal_6715 = 0;
	var uLocal_6716 = 0;
	var uLocal_6717 = 0;
	var uLocal_6718 = 0;
	var uLocal_6719 = 0;
	var uLocal_6720 = 0;
	var uLocal_6721 = 0;
	var uLocal_6722 = 0;
	var uLocal_6723 = 0;
	var uLocal_6724 = 0;
	var uLocal_6725 = 0;
	var uLocal_6726 = 0;
	var uLocal_6727 = 0;
	var uLocal_6728 = 0;
	var uLocal_6729 = 0;
	var uLocal_6730 = 0;
	var uLocal_6731 = 0;
	var uLocal_6732 = 0;
	var uLocal_6733 = 0;
	var uLocal_6734 = -1;
	var uLocal_6735 = 0;
	var uLocal_6736 = 0;
	var uLocal_6737 = 0;
	var uLocal_6738 = 0;
	var uLocal_6739 = 0;
	var uLocal_6740 = 0;
	var uLocal_6741 = 0;
	var uLocal_6742 = 0;
	var uLocal_6743 = 0;
	var uLocal_6744 = 0;
	var uLocal_6745 = 0;
	var uLocal_6746 = 0;
	var uLocal_6747 = 0;
	var uLocal_6748 = 0;
	var uLocal_6749 = 0;
	var uLocal_6750 = 0;
	var uLocal_6751 = 0;
	var uLocal_6752 = 0;
	var uLocal_6753 = 0;
	var uLocal_6754 = 0;
	var uLocal_6755 = 0;
	var uLocal_6756 = 0;
	var uLocal_6757 = 0;
	var uLocal_6758 = 0;
	var uLocal_6759 = 0;
	var uLocal_6760 = 0;
	var uLocal_6761 = 0;
	var uLocal_6762 = 0;
	var uLocal_6763 = 0;
	var uLocal_6764 = 1065353216;
	var uLocal_6765 = 0;
	var uLocal_6766 = 0;
	var uLocal_6767 = 0;
	var uLocal_6768 = 0;
	var uLocal_6769 = 0;
	var uLocal_6770 = 0;
	var uLocal_6771 = 0;
	var uLocal_6772 = 0;
	var uLocal_6773 = 0;
	var uLocal_6774 = 0;
	var uLocal_6775 = 0;
	var uLocal_6776 = 0;
	var uLocal_6777 = 0;
	var uLocal_6778 = 0;
	var uLocal_6779 = 0;
	var uLocal_6780 = 0;
	var uLocal_6781 = 0;
	var uLocal_6782 = 0;
	var uLocal_6783 = 0;
	var uLocal_6784 = 0;
	var uLocal_6785 = 0;
	var uLocal_6786 = 0;
	var uLocal_6787 = 0;
	var uLocal_6788 = 0;
	var uLocal_6789 = 0;
	var uLocal_6790 = 0;
	var uLocal_6791 = -1;
	var uLocal_6792 = 0;
	var uLocal_6793 = 0;
	var uLocal_6794 = 0;
	var uLocal_6795 = 0;
	var uLocal_6796 = 0;
	var uLocal_6797 = 0;
	var uLocal_6798 = 0;
	var uLocal_6799 = 0;
	var uLocal_6800 = 0;
	var uLocal_6801 = 0;
	var uLocal_6802 = 0;
	var uLocal_6803 = 0;
	var uLocal_6804 = 0;
	var uLocal_6805 = 0;
	var uLocal_6806 = 0;
	var uLocal_6807 = 0;
	var uLocal_6808 = 0;
	var uLocal_6809 = 0;
	var uLocal_6810 = 0;
	var uLocal_6811 = 0;
	var uLocal_6812 = 0;
	var uLocal_6813 = 0;
	var uLocal_6814 = 0;
	var uLocal_6815 = 0;
	var uLocal_6816 = 0;
	var uLocal_6817 = 0;
	var uLocal_6818 = 0;
	var uLocal_6819 = 0;
	var uLocal_6820 = 0;
	var uLocal_6821 = 1065353216;
	var uLocal_6822 = 0;
	var uLocal_6823 = 0;
	var uLocal_6824 = 0;
	var uLocal_6825 = 0;
	var uLocal_6826 = 0;
	var uLocal_6827 = 0;
	var uLocal_6828 = 0;
	var uLocal_6829 = 0;
	var uLocal_6830 = 0;
	var uLocal_6831 = 0;
	var uLocal_6832 = 0;
	var uLocal_6833 = 0;
	var uLocal_6834 = 0;
	var uLocal_6835 = 0;
	var uLocal_6836 = 0;
	var uLocal_6837 = 0;
	var uLocal_6838 = 0;
	var uLocal_6839 = 0;
	var uLocal_6840 = 0;
	var uLocal_6841 = 0;
	var uLocal_6842 = 0;
	var uLocal_6843 = 0;
	var uLocal_6844 = 0;
	var uLocal_6845 = 0;
	var uLocal_6846 = 0;
	var uLocal_6847 = 0;
	var uLocal_6848 = -1;
	var uLocal_6849 = 0;
	var uLocal_6850 = 0;
	var uLocal_6851 = 0;
	var uLocal_6852 = 0;
	var uLocal_6853 = 0;
	var uLocal_6854 = 0;
	var uLocal_6855 = 0;
	var uLocal_6856 = 0;
	var uLocal_6857 = 0;
	var uLocal_6858 = 0;
	var uLocal_6859 = 0;
	var uLocal_6860 = 0;
	var uLocal_6861 = 0;
	var uLocal_6862 = 0;
	var uLocal_6863 = 0;
	var uLocal_6864 = 0;
	var uLocal_6865 = 0;
	var uLocal_6866 = 0;
	var uLocal_6867 = 0;
	var uLocal_6868 = 0;
	var uLocal_6869 = 0;
	var uLocal_6870 = 0;
	var uLocal_6871 = 0;
	var uLocal_6872 = 0;
	var uLocal_6873 = 0;
	var uLocal_6874 = 0;
	var uLocal_6875 = 0;
	var uLocal_6876 = 0;
	var uLocal_6877 = 0;
	var uLocal_6878 = 1065353216;
	var uLocal_6879 = 0;
	var uLocal_6880 = 0;
	var uLocal_6881 = 0;
	var uLocal_6882 = 0;
	var uLocal_6883 = 0;
	var uLocal_6884 = 0;
	var uLocal_6885 = 0;
	var uLocal_6886 = 0;
	var uLocal_6887 = 0;
	var uLocal_6888 = 0;
	var uLocal_6889 = 0;
	var uLocal_6890 = 0;
	var uLocal_6891 = 0;
	var uLocal_6892 = 0;
	var uLocal_6893 = 0;
	var uLocal_6894 = 0;
	var uLocal_6895 = 0;
	var uLocal_6896 = 0;
	var uLocal_6897 = 0;
	var uLocal_6898 = 0;
	var uLocal_6899 = 0;
	var uLocal_6900 = 0;
	var uLocal_6901 = 0;
	var uLocal_6902 = 0;
	var uLocal_6903 = 0;
	var uLocal_6904 = 0;
	var uLocal_6905 = -1;
	var uLocal_6906 = 0;
	var uLocal_6907 = 0;
	var uLocal_6908 = 0;
	var uLocal_6909 = 0;
	var uLocal_6910 = 0;
	var uLocal_6911 = 0;
	var uLocal_6912 = 0;
	var uLocal_6913 = 0;
	var uLocal_6914 = 0;
	var uLocal_6915 = 0;
	var uLocal_6916 = 0;
	var uLocal_6917 = 0;
	var uLocal_6918 = 0;
	var uLocal_6919 = 0;
	var uLocal_6920 = 0;
	var uLocal_6921 = 0;
	var uLocal_6922 = 0;
	var uLocal_6923 = 0;
	var uLocal_6924 = 0;
	var uLocal_6925 = 0;
	var uLocal_6926 = 0;
	var uLocal_6927 = 0;
	var uLocal_6928 = 0;
	var uLocal_6929 = 0;
	var uLocal_6930 = 0;
	var uLocal_6931 = 0;
	var uLocal_6932 = 0;
	var uLocal_6933 = 0;
	var uLocal_6934 = 0;
	var uLocal_6935 = 1065353216;
	var uLocal_6936 = 0;
	var uLocal_6937 = 0;
	var uLocal_6938 = 0;
	var uLocal_6939 = 0;
	var uLocal_6940 = 0;
	var uLocal_6941 = 0;
	var uLocal_6942 = 0;
	var uLocal_6943 = 0;
	var uLocal_6944 = 0;
	var uLocal_6945 = 0;
	var uLocal_6946 = 0;
	var uLocal_6947 = 0;
	var uLocal_6948 = 0;
	var uLocal_6949 = 0;
	var uLocal_6950 = 0;
	var uLocal_6951 = 0;
	var uLocal_6952 = 0;
	var uLocal_6953 = 0;
	var uLocal_6954 = 0;
	var uLocal_6955 = 0;
	var uLocal_6956 = 0;
	var uLocal_6957 = 0;
	var uLocal_6958 = 0;
	var uLocal_6959 = 0;
	var uLocal_6960 = 0;
	var uLocal_6961 = 0;
	var uLocal_6962 = -1;
	var uLocal_6963 = 0;
	var uLocal_6964 = 0;
	var uLocal_6965 = 0;
	var uLocal_6966 = 0;
	var uLocal_6967 = 0;
	var uLocal_6968 = 0;
	var uLocal_6969 = 0;
	var uLocal_6970 = 0;
	var uLocal_6971 = 0;
	var uLocal_6972 = 0;
	var uLocal_6973 = 0;
	var uLocal_6974 = 0;
	var uLocal_6975 = 0;
	var uLocal_6976 = 0;
	var uLocal_6977 = 0;
	var uLocal_6978 = 0;
	var uLocal_6979 = 0;
	var uLocal_6980 = 0;
	var uLocal_6981 = 0;
	var uLocal_6982 = 0;
	var uLocal_6983 = 0;
	var uLocal_6984 = 0;
	var uLocal_6985 = 0;
	var uLocal_6986 = 0;
	var uLocal_6987 = 0;
	var uLocal_6988 = 0;
	var uLocal_6989 = 0;
	var uLocal_6990 = 0;
	var uLocal_6991 = 0;
	var uLocal_6992 = 1065353216;
	var uLocal_6993 = 0;
	var uLocal_6994 = 0;
	var uLocal_6995 = 0;
	var uLocal_6996 = 0;
	var uLocal_6997 = 0;
	var uLocal_6998 = 0;
	var uLocal_6999 = 0;
	var uLocal_7000 = 0;
	var uLocal_7001 = 0;
	var uLocal_7002 = 0;
	var uLocal_7003 = 0;
	var uLocal_7004 = 0;
	var uLocal_7005 = 0;
	var uLocal_7006 = 0;
	var uLocal_7007 = 0;
	var uLocal_7008 = 0;
	var uLocal_7009 = 0;
	var uLocal_7010 = 0;
	var uLocal_7011 = 0;
	var uLocal_7012 = 0;
	var uLocal_7013 = 0;
	var uLocal_7014 = 0;
	var uLocal_7015 = 0;
	var uLocal_7016 = 0;
	var uLocal_7017 = 0;
	var uLocal_7018 = 0;
	var uLocal_7019 = -1;
	var uLocal_7020 = 0;
	var uLocal_7021 = 0;
	var uLocal_7022 = 0;
	var uLocal_7023 = 0;
	var uLocal_7024 = 0;
	var uLocal_7025 = 0;
	var uLocal_7026 = 0;
	var uLocal_7027 = 0;
	var uLocal_7028 = 0;
	var uLocal_7029 = 0;
	var uLocal_7030 = 0;
	var uLocal_7031 = 0;
	var uLocal_7032 = 0;
	var uLocal_7033 = 0;
	var uLocal_7034 = 0;
	var uLocal_7035 = 0;
	var uLocal_7036 = 0;
	var uLocal_7037 = 0;
	var uLocal_7038 = 0;
	var uLocal_7039 = 0;
	var uLocal_7040 = 0;
	var uLocal_7041 = 0;
	var uLocal_7042 = 0;
	var uLocal_7043 = 0;
	var uLocal_7044 = 0;
	var uLocal_7045 = 0;
	var uLocal_7046 = 0;
	var uLocal_7047 = 0;
	var uLocal_7048 = 0;
	var uLocal_7049 = 1065353216;
	var uLocal_7050 = 0;
	var uLocal_7051 = 0;
	var uLocal_7052 = 0;
	var uLocal_7053 = 0;
	var uLocal_7054 = 0;
	var uLocal_7055 = 0;
	var uLocal_7056 = 0;
	var uLocal_7057 = 0;
	var uLocal_7058 = 0;
	var uLocal_7059 = 0;
	var uLocal_7060 = 0;
	var uLocal_7061 = 0;
	var uLocal_7062 = 0;
	var uLocal_7063 = 0;
	var uLocal_7064 = 0;
	var uLocal_7065 = 0;
	var uLocal_7066 = 0;
	var uLocal_7067 = 0;
	var uLocal_7068 = 0;
	var uLocal_7069 = 0;
	var uLocal_7070 = 0;
	var uLocal_7071 = 0;
	var uLocal_7072 = 0;
	var uLocal_7073 = 0;
	var uLocal_7074 = 0;
	var uLocal_7075 = 0;
	var uLocal_7076 = -1;
	var uLocal_7077 = 0;
	var uLocal_7078 = 0;
	var uLocal_7079 = 0;
	var uLocal_7080 = 0;
	var uLocal_7081 = 0;
	var uLocal_7082 = 0;
	var uLocal_7083 = 0;
	var uLocal_7084 = 0;
	var uLocal_7085 = 0;
	var uLocal_7086 = 0;
	var uLocal_7087 = 0;
	var uLocal_7088 = 0;
	var uLocal_7089 = 0;
	var uLocal_7090 = 0;
	var uLocal_7091 = 0;
	var uLocal_7092 = 0;
	var uLocal_7093 = 0;
	var uLocal_7094 = 0;
	var uLocal_7095 = 0;
	var uLocal_7096 = 0;
	var uLocal_7097 = 0;
	var uLocal_7098 = 0;
	var uLocal_7099 = 0;
	var uLocal_7100 = 0;
	var uLocal_7101 = 0;
	var uLocal_7102 = 0;
	var uLocal_7103 = 0;
	var uLocal_7104 = 0;
	var uLocal_7105 = 0;
	var uLocal_7106 = 1065353216;
	var uLocal_7107 = 0;
	var uLocal_7108 = 0;
	var uLocal_7109 = 0;
	var uLocal_7110 = 0;
	var uLocal_7111 = 0;
	var uLocal_7112 = 0;
	var uLocal_7113 = 0;
	var uLocal_7114 = 0;
	var uLocal_7115 = 0;
	var uLocal_7116 = 0;
	var uLocal_7117 = 0;
	var uLocal_7118 = 0;
	var uLocal_7119 = 0;
	var uLocal_7120 = 0;
	var uLocal_7121 = 0;
	var uLocal_7122 = 0;
	var uLocal_7123 = 0;
	var uLocal_7124 = 0;
	var uLocal_7125 = 0;
	var uLocal_7126 = 0;
	var uLocal_7127 = 0;
	var uLocal_7128 = 0;
	var uLocal_7129 = 0;
	var uLocal_7130 = 0;
	var uLocal_7131 = 0;
	var uLocal_7132 = 0;
	var uLocal_7133 = -1;
	var uLocal_7134 = 0;
	var uLocal_7135 = 0;
	var uLocal_7136 = 0;
	var uLocal_7137 = 0;
	var uLocal_7138 = 0;
	var uLocal_7139 = 0;
	var uLocal_7140 = 0;
	var uLocal_7141 = 0;
	var uLocal_7142 = 0;
	var uLocal_7143 = 0;
	var uLocal_7144 = 0;
	var uLocal_7145 = 0;
	var uLocal_7146 = 0;
	var uLocal_7147 = 0;
	var uLocal_7148 = 0;
	var uLocal_7149 = 0;
	var uLocal_7150 = 0;
	var uLocal_7151 = 0;
	var uLocal_7152 = 0;
	var uLocal_7153 = 0;
	var uLocal_7154 = 0;
	var uLocal_7155 = 0;
	var uLocal_7156 = 0;
	var uLocal_7157 = 0;
	var uLocal_7158 = 0;
	var uLocal_7159 = 0;
	var uLocal_7160 = 0;
	var uLocal_7161 = 0;
	var uLocal_7162 = 0;
	var uLocal_7163 = 1065353216;
	var uLocal_7164 = 0;
	var uLocal_7165 = 0;
	var uLocal_7166 = 0;
	var uLocal_7167 = 0;
	var uLocal_7168 = 0;
	var uLocal_7169 = 0;
	var uLocal_7170 = 0;
	var uLocal_7171 = 0;
	var uLocal_7172 = 0;
	var uLocal_7173 = 0;
	var uLocal_7174 = 0;
	var uLocal_7175 = 0;
	var uLocal_7176 = 0;
	var uLocal_7177 = 0;
	var uLocal_7178 = 0;
	var uLocal_7179 = 0;
	var uLocal_7180 = 0;
	var uLocal_7181 = 0;
	var uLocal_7182 = 0;
	var uLocal_7183 = 0;
	var uLocal_7184 = 0;
	var uLocal_7185 = 0;
	var uLocal_7186 = 0;
	var uLocal_7187 = 0;
	var uLocal_7188 = 0;
	var uLocal_7189 = 0;
	var uLocal_7190 = -1;
	var uLocal_7191 = 0;
	var uLocal_7192 = 0;
	var uLocal_7193 = 0;
	var uLocal_7194 = 0;
	var uLocal_7195 = 0;
	var uLocal_7196 = 0;
	var uLocal_7197 = 0;
	var uLocal_7198 = 0;
	var uLocal_7199 = 0;
	var uLocal_7200 = 0;
	var uLocal_7201 = 0;
	var uLocal_7202 = 0;
	var uLocal_7203 = 0;
	var uLocal_7204 = 0;
	var uLocal_7205 = 0;
	var uLocal_7206 = 0;
	var uLocal_7207 = 0;
	var uLocal_7208 = 0;
	var uLocal_7209 = 0;
	var uLocal_7210 = 0;
	var uLocal_7211 = 0;
	var uLocal_7212 = 0;
	var uLocal_7213 = 0;
	var uLocal_7214 = 0;
	var uLocal_7215 = 0;
	var uLocal_7216 = 0;
	var uLocal_7217 = 0;
	var uLocal_7218 = 0;
	var uLocal_7219 = 0;
	var uLocal_7220 = 1065353216;
	var uLocal_7221 = 0;
	var uLocal_7222 = 0;
	var uLocal_7223 = 0;
	var uLocal_7224 = 0;
	var uLocal_7225 = 0;
	var uLocal_7226 = 0;
	var uLocal_7227 = 0;
	var uLocal_7228 = 0;
	var uLocal_7229 = 0;
	var uLocal_7230 = 0;
	var uLocal_7231 = 0;
	var uLocal_7232 = 0;
	var uLocal_7233 = 0;
	var uLocal_7234 = 0;
	var uLocal_7235 = 0;
	var uLocal_7236 = 0;
	var uLocal_7237 = 0;
	var uLocal_7238 = 0;
	var uLocal_7239 = 0;
	var uLocal_7240 = 0;
	var uLocal_7241 = 0;
	var uLocal_7242 = 0;
	var uLocal_7243 = 0;
	var uLocal_7244 = 0;
	var uLocal_7245 = 0;
	var uLocal_7246 = 0;
	var uLocal_7247 = -1;
	var uLocal_7248 = 0;
	var uLocal_7249 = 0;
	var uLocal_7250 = 0;
	var uLocal_7251 = 0;
	var uLocal_7252 = 0;
	var uLocal_7253 = 0;
	var uLocal_7254 = 0;
	var uLocal_7255 = 0;
	var uLocal_7256 = 0;
	var uLocal_7257 = 0;
	var uLocal_7258 = 0;
	var uLocal_7259 = 0;
	var uLocal_7260 = 0;
	var uLocal_7261 = 0;
	var uLocal_7262 = 0;
	var uLocal_7263 = 0;
	var uLocal_7264 = 0;
	var uLocal_7265 = 0;
	var uLocal_7266 = 0;
	var uLocal_7267 = 0;
	var uLocal_7268 = 0;
	var uLocal_7269 = 0;
	var uLocal_7270 = 0;
	var uLocal_7271 = 0;
	var uLocal_7272 = 0;
	var uLocal_7273 = 0;
	var uLocal_7274 = 0;
	var uLocal_7275 = 0;
	var uLocal_7276 = 0;
	var uLocal_7277 = 1065353216;
	var uLocal_7278 = 0;
	var uLocal_7279 = 0;
	var uLocal_7280 = 0;
	var uLocal_7281 = 0;
	var uLocal_7282 = 0;
	var uLocal_7283 = 0;
	var uLocal_7284 = 0;
	var uLocal_7285 = 0;
	var uLocal_7286 = 0;
	var uLocal_7287 = 0;
	var uLocal_7288 = 0;
	var uLocal_7289 = 0;
	var uLocal_7290 = 0;
	var uLocal_7291 = 0;
	var uLocal_7292 = 0;
	var uLocal_7293 = 0;
	var uLocal_7294 = 0;
	var uLocal_7295 = 0;
	var uLocal_7296 = 0;
	var uLocal_7297 = 0;
	var uLocal_7298 = 0;
	var uLocal_7299 = 0;
	var uLocal_7300 = 0;
	var uLocal_7301 = 0;
	var uLocal_7302 = 0;
	var uLocal_7303 = 0;
	var uLocal_7304 = -1;
	var uLocal_7305 = 0;
	var uLocal_7306 = 0;
	var uLocal_7307 = 0;
	var uLocal_7308 = 0;
	var uLocal_7309 = 0;
	var uLocal_7310 = 0;
	var uLocal_7311 = 0;
	var uLocal_7312 = 0;
	var uLocal_7313 = 0;
	var uLocal_7314 = 0;
	var uLocal_7315 = 0;
	var uLocal_7316 = 0;
	var uLocal_7317 = 0;
	var uLocal_7318 = 0;
	var uLocal_7319 = 0;
	var uLocal_7320 = 0;
	var uLocal_7321 = 0;
	var uLocal_7322 = 0;
	var uLocal_7323 = 0;
	var uLocal_7324 = 0;
	var uLocal_7325 = 0;
	var uLocal_7326 = 0;
	var uLocal_7327 = 0;
	var uLocal_7328 = 0;
	var uLocal_7329 = 0;
	var uLocal_7330 = 0;
	var uLocal_7331 = 0;
	var uLocal_7332 = 0;
	var uLocal_7333 = 0;
	var uLocal_7334 = 1065353216;
	var uLocal_7335 = 0;
	var uLocal_7336 = 0;
	var uLocal_7337 = 0;
	var uLocal_7338 = 0;
	var uLocal_7339 = 0;
	var uLocal_7340 = 0;
	var uLocal_7341 = 0;
	var uLocal_7342 = 0;
	var uLocal_7343 = 0;
	var uLocal_7344 = 0;
	var uLocal_7345 = 0;
	var uLocal_7346 = 0;
	var uLocal_7347 = 0;
	var uLocal_7348 = 0;
	var uLocal_7349 = 0;
	var uLocal_7350 = 0;
	var uLocal_7351 = 0;
	var uLocal_7352 = 0;
	var uLocal_7353 = 0;
	var uLocal_7354 = 0;
	var uLocal_7355 = 0;
	var uLocal_7356 = 0;
	var uLocal_7357 = 0;
	var uLocal_7358 = 0;
	var uLocal_7359 = 0;
	var uLocal_7360 = 0;
	var uLocal_7361 = -1;
	var uLocal_7362 = 0;
	var uLocal_7363 = 0;
	var uLocal_7364 = 0;
	var uLocal_7365 = 0;
	var uLocal_7366 = 0;
	var uLocal_7367 = 0;
	var uLocal_7368 = 0;
	var uLocal_7369 = 0;
	var uLocal_7370 = 0;
	var uLocal_7371 = 0;
	var uLocal_7372 = 0;
	var uLocal_7373 = 0;
	var uLocal_7374 = 0;
	var uLocal_7375 = 0;
	var uLocal_7376 = 0;
	var uLocal_7377 = 0;
	var uLocal_7378 = 0;
	var uLocal_7379 = 0;
	var uLocal_7380 = 0;
	var uLocal_7381 = 0;
	var uLocal_7382 = 0;
	var uLocal_7383 = 0;
	var uLocal_7384 = 0;
	var uLocal_7385 = 0;
	var uLocal_7386 = 0;
	var uLocal_7387 = 0;
	var uLocal_7388 = 0;
	var uLocal_7389 = 0;
	var uLocal_7390 = 0;
	var uLocal_7391 = 1065353216;
	var uLocal_7392 = 0;
	var uLocal_7393 = 0;
	var uLocal_7394 = 0;
	var uLocal_7395 = 0;
	var uLocal_7396 = 0;
	var uLocal_7397 = 0;
	var uLocal_7398 = 0;
	var uLocal_7399 = 0;
	var uLocal_7400 = 0;
	var uLocal_7401 = 0;
	var uLocal_7402 = 0;
	var uLocal_7403 = 0;
	var uLocal_7404 = 0;
	var uLocal_7405 = 0;
	var uLocal_7406 = 0;
	var uLocal_7407 = 0;
	var uLocal_7408 = 0;
	var uLocal_7409 = 0;
	var uLocal_7410 = 0;
	var uLocal_7411 = 0;
	var uLocal_7412 = 0;
	var uLocal_7413 = 0;
	var uLocal_7414 = 0;
	var uLocal_7415 = 0;
	var uLocal_7416 = 0;
	var uLocal_7417 = 0;
	var uLocal_7418 = -1;
	var uLocal_7419 = 0;
	var uLocal_7420 = 0;
	var uLocal_7421 = 0;
	var uLocal_7422 = 0;
	var uLocal_7423 = 0;
	var uLocal_7424 = 0;
	var uLocal_7425 = 0;
	var uLocal_7426 = 0;
	var uLocal_7427 = 0;
	var uLocal_7428 = 0;
	var uLocal_7429 = 0;
	var uLocal_7430 = 0;
	var uLocal_7431 = 0;
	var uLocal_7432 = 0;
	var uLocal_7433 = 0;
	var uLocal_7434 = 0;
	var uLocal_7435 = 0;
	var uLocal_7436 = 0;
	var uLocal_7437 = 0;
	var uLocal_7438 = 0;
	var uLocal_7439 = 0;
	var uLocal_7440 = 0;
	var uLocal_7441 = 0;
	var uLocal_7442 = 0;
	var uLocal_7443 = 0;
	var uLocal_7444 = 0;
	var uLocal_7445 = 0;
	var uLocal_7446 = 0;
	var uLocal_7447 = 0;
	var uLocal_7448 = 1065353216;
	var uLocal_7449 = 0;
	var uLocal_7450 = 0;
	var uLocal_7451 = 0;
	var uLocal_7452 = 0;
	var uLocal_7453 = 0;
	var uLocal_7454 = 0;
	var uLocal_7455 = 0;
	var uLocal_7456 = 0;
	var uLocal_7457 = 0;
	var uLocal_7458 = 0;
	var uLocal_7459 = 0;
	var uLocal_7460 = 0;
	var uLocal_7461 = 0;
	var uLocal_7462 = 0;
	var uLocal_7463 = 0;
	var uLocal_7464 = 0;
	var uLocal_7465 = 0;
	var uLocal_7466 = 0;
	var uLocal_7467 = 0;
	var uLocal_7468 = 0;
	var uLocal_7469 = 0;
	var uLocal_7470 = 0;
	var uLocal_7471 = 0;
	var uLocal_7472 = 16;
	var uLocal_7473 = 0;
	var uLocal_7474 = -1082130432;
	var uLocal_7475 = 0;
	var uLocal_7476 = -1082130432;
	var uLocal_7477 = 0;
	var uLocal_7478 = -1082130432;
	var uLocal_7479 = 0;
	var uLocal_7480 = -1082130432;
	var uLocal_7481 = 0;
	var uLocal_7482 = -1082130432;
	var uLocal_7483 = 0;
	var uLocal_7484 = -1082130432;
	var uLocal_7485 = 0;
	var uLocal_7486 = -1082130432;
	var uLocal_7487 = 0;
	var uLocal_7488 = -1082130432;
	var uLocal_7489 = 0;
	var uLocal_7490 = -1082130432;
	var uLocal_7491 = 0;
	var uLocal_7492 = -1082130432;
	var uLocal_7493 = 0;
	var uLocal_7494 = -1082130432;
	var uLocal_7495 = 0;
	var uLocal_7496 = -1082130432;
	var uLocal_7497 = 0;
	var uLocal_7498 = -1082130432;
	var uLocal_7499 = 0;
	var uLocal_7500 = -1082130432;
	var uLocal_7501 = 0;
	var uLocal_7502 = -1082130432;
	var uLocal_7503 = 0;
	var uLocal_7504 = -1082130432;
	var uLocal_7505 = 16;
	var uLocal_7506 = 0;
	var uLocal_7507 = -1082130432;
	var uLocal_7508 = 0;
	var uLocal_7509 = -1082130432;
	var uLocal_7510 = 0;
	var uLocal_7511 = -1082130432;
	var uLocal_7512 = 0;
	var uLocal_7513 = -1082130432;
	var uLocal_7514 = 0;
	var uLocal_7515 = -1082130432;
	var uLocal_7516 = 0;
	var uLocal_7517 = -1082130432;
	var uLocal_7518 = 0;
	var uLocal_7519 = -1082130432;
	var uLocal_7520 = 0;
	var uLocal_7521 = -1082130432;
	var uLocal_7522 = 0;
	var uLocal_7523 = -1082130432;
	var uLocal_7524 = 0;
	var uLocal_7525 = -1082130432;
	var uLocal_7526 = 0;
	var uLocal_7527 = -1082130432;
	var uLocal_7528 = 0;
	var uLocal_7529 = -1082130432;
	var uLocal_7530 = 0;
	var uLocal_7531 = -1082130432;
	var uLocal_7532 = 0;
	var uLocal_7533 = -1082130432;
	var uLocal_7534 = 0;
	var uLocal_7535 = -1082130432;
	var uLocal_7536 = 0;
	var uLocal_7537 = -1082130432;
	var uLocal_7538 = 0;
	var uLocal_7539 = 0;
	var uLocal_7540 = 0;
	var uLocal_7541 = 0;
	var uLocal_7542 = 0;
	var uLocal_7543 = 0;
	var uLocal_7544 = 0;
	var uLocal_7545 = 0;
	var uLocal_7546 = 0;
	var uLocal_7547 = 0;
	var uLocal_7548 = 0;
	var uLocal_7549 = 0;
	var uLocal_7550 = 0;
	var uLocal_7551 = 0;
	var uLocal_7552 = 0;
	var uLocal_7553 = 0;
	var uLocal_7554 = -1082130432;
	var uLocal_7555 = -1082130432;
	var uLocal_7556 = 1;
	var uLocal_7557 = 1;
	var uLocal_7558 = 1;
	var uLocal_7559 = -1;
	var uLocal_7560 = -1;
	var uLocal_7561 = -1;
	vector3 vLocal_7562 = { 0f, 0f, 0f };
	float fLocal_7565 = 0f;
	int iLocal_7566 = 0;
	float fLocal_7567 = 0f;
	float fLocal_7568 = 0f;
	float fLocal_7569 = 0f;
	float fLocal_7570 = 0f;
	int iLocal_7571 = 0;
	int iLocal_7572 = 0;
	int iLocal_7573 = 0;
	int iLocal_7574 = 0;
	int iLocal_7575 = 0;
	int iLocal_7576 = 0;
	float fLocal_7577 = 0f;
	float fLocal_7578 = 0f;
	float fLocal_7579 = 0f;
	float fLocal_7580 = 0f;
	float fLocal_7581 = 0f;
	float fLocal_7582 = 0f;
	float fLocal_7583 = 0f;
	float fLocal_7584 = 0f;
	float fLocal_7585 = 0f;
	int iLocal_7586 = 0;
	int iLocal_7587 = 0;
	int iLocal_7588 = 0;
	int iLocal_7589 = 0;
	int iLocal_7590 = 0;
	int iLocal_7591 = 0;
	int iLocal_7592 = 0;
	int iLocal_7593 = 0;
	int iLocal_7594 = 0;
	int iLocal_7595 = 0;
	int iLocal_7596 = 0;
	int iLocal_7597 = 0;
	int iLocal_7598 = 0;
	int iLocal_7599 = 0;
	char* sLocal_7600 = NULL;
	char* sLocal_7601 = NULL;
	float fLocal_7602 = 0f;
	int iLocal_7603 = 0;
	int iLocal_7604 = 0;
	int iLocal_7605 = 0;
#endregion

void __EntryFunction__()//Position - 0x0
{
	iLocal_2 = 1;
	iLocal_3 = 134;
	iLocal_4 = 134;
	iLocal_5 = 1;
	iLocal_6 = 1;
	iLocal_7 = 1;
	iLocal_8 = 134;
	iLocal_9 = 1;
	iLocal_10 = 12;
	iLocal_11 = 12;
	fLocal_14 = 0.001f;
	iLocal_17 = -1;
	sLocal_20 = "NULL";
	fLocal_21 = 0f;
	fLocal_25 = -0.0375f;
	fLocal_26 = 0.17f;
	iLocal_31 = true;
	iLocal_38 = true;
	iLocal_60 = true;
	fLocal_429 = 120f;
	fLocal_430 = 0f;
	fLocal_432 = 1f;
	fLocal_433 = 0f;
	fLocal_434 = 1f;
	fLocal_435 = 30f;
	fLocal_437 = 1f;
	fLocal_438 = 5f;
	fLocal_439 = 1f;
	fLocal_440 = 1f;
	fLocal_441 = 100f;
	fLocal_442 = 100f;
	fLocal_443 = 0f;
	fLocal_444 = 7000f;
	fLocal_445 = 0f;
	fLocal_446 = 0f;
	fLocal_447 = 0.3f;
	fLocal_448 = 0.5f;
	fLocal_449 = 50f;
	iLocal_650 = -1;
	iLocal_658 = -1;
	iLocal_659 = -1;
	iLocal_1088 = 3;
	fLocal_1091 = 80f;
	fLocal_1092 = 140f;
	fLocal_1093 = 180f;
	iLocal_1099 = 1;
	iLocal_1100 = 65;
	iLocal_1101 = 49;
	iLocal_1102 = 64;
	vLocal_1117 = { 0f, 0f, 0f };
	vLocal_1120 = { 0f, 0f, 0f };
	iLocal_1123 = -1;
	fLocal_1125 = 1f;
	iLocal_3300 = -1;
	iLocal_3410 = audio::get_sound_id();
	iLocal_3411 = audio::get_sound_id();
	fLocal_3443 = 0.6f;
	fLocal_3444 = 1f;
	fLocal_3445 = 1f;
	fLocal_3446 = 1f;
	fLocal_3837 = 0.05f;
	vLocal_7562 = { 790.8106f, -2330.13f, 61.095f };
	fLocal_7565 = 137.22f;
	iLocal_7566 = -1;
	fLocal_7567 = 0.402f;
	fLocal_7568 = 0.54f;
	fLocal_7569 = 0.577f;
	fLocal_7570 = 0.808f;
	iLocal_7572 = 3;
	iLocal_7573 = 4;
	iLocal_7574 = 4250;
	iLocal_7575 = 3500;
	iLocal_7576 = 9250;
	fLocal_7577 = 11000f;
	fLocal_7578 = 19000f;
	fLocal_7579 = 0.575f;
	fLocal_7580 = 0.97f;
	fLocal_7581 = 0.8f;
	fLocal_7582 = 0.402f;
	fLocal_7583 = 0.454f;
	fLocal_7584 = 0.577f;
	fLocal_7585 = 0.663f;
	sLocal_7600 = "shake_cam_all@";
	sLocal_7601 = "fbi_4_binoculars";
	fLocal_7602 = 0f;
	gameplay::set_mission_flag(1);
	if (player::has_force_cleanup_occurred(3))
	{
		func_961(1, 0, 1, 1, 0);
		func_958(player::player_ped_id(), func_960());
		func_957();
		func_954();
	}
	func_944();
	while (true)
	{
		system::wait(0);
		if (!iLocal_3177)
		{
			if (func_934())
			{
				func_923();
			}
		}
		func_922();
		func_921();
		unk1::_0x208784099002BC30("M_BLITZ_PLAY", 0);
		switch (iLocal_1126)
		{
			case 0:
				func_906();
				break;
			
			case 16:
				func_901();
				break;
			
			case 1:
				func_845();
				break;
			
			case 2:
				func_838();
				break;
			
			case 3:
				func_832();
				break;
			
			case 4:
				func_823();
				break;
			
			case 5:
				func_815();
				break;
			
			case 6:
				func_748();
				break;
			
			case 7:
				func_730();
				break;
			
			case 8:
				func_704();
				break;
			
			case 9:
				func_688();
				break;
			
			case 10:
				func_654();
				break;
			
			case 11:
				func_587();
				break;
			
			case 12:
				func_568();
				break;
			
			case 17:
				func_546();
				break;
			
			case 13:
				func_545();
				break;
			
			case 14:
				func_273();
				break;
			
			case 15:
				func_1();
				break;
		}
	}
}

void func_1()//Position - 0x342
{
	if (func_272(&iLocal_3310, 7000))
	{
		if (func_271())
		{
			func_2();
		}
	}
}

void func_2()//Position - 0x362
{
	func_6(player::player_ped_id());
	func_3();
	gameplay::clear_area(1391.53f, -2063.67f, 52.79f, 10000f, 1, 0, 0, false);
	func_961(1, 0, 1, 1, 0);
	func_954();
}

void func_3()//Position - 0x39F
{
	int iVar0;
	
	iVar0 = 0;
	gameplay::clear_area(1376.45f, -2083.29f, 55.51f, 10000f, 1, 0, 0, false);
	if (entity::does_entity_exist(Local_1645))
	{
		ped::delete_ped(&Local_1645);
	}
	if (entity::does_entity_exist(Local_1665))
	{
		ped::delete_ped(&Local_1665);
	}
	if (entity::does_entity_exist(Local_1685))
	{
		ped::delete_ped(&Local_1685);
	}
	if (entity::does_entity_exist(Local_1705))
	{
		ped::delete_ped(&Local_1705);
	}
	iVar0 = 0;
	while (iVar0 <= (Local_1725 - 1))
	{
		if (entity::does_entity_exist(Local_1725[iVar0 /*20*/]))
		{
			ped::delete_ped(&(Local_1725[iVar0 /*20*/]));
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2446 - 1))
	{
		if (entity::does_entity_exist(Local_2446[iVar0 /*20*/]))
		{
			ped::delete_ped(&(Local_2446[iVar0 /*20*/]));
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2527 - 1))
	{
		if (entity::does_entity_exist(Local_2527[iVar0 /*20*/]))
		{
			ped::delete_ped(&(Local_2527[iVar0 /*20*/]));
		}
		iVar0++;
	}
	if (entity::does_entity_exist(Local_2568))
	{
		ped::delete_ped(&Local_2568);
	}
	if (entity::does_entity_exist(Local_2588))
	{
		ped::delete_ped(&Local_2588);
	}
	if (entity::does_entity_exist(Local_2608))
	{
		ped::delete_ped(&Local_2608);
	}
	if (entity::does_entity_exist(Local_2628))
	{
		ped::delete_ped(&Local_2628);
	}
	if (entity::does_entity_exist(iLocal_3099[0]))
	{
		ped::delete_ped(&(iLocal_3099[0]));
	}
	if (entity::does_entity_exist(iLocal_3099[1]))
	{
		ped::delete_ped(&(iLocal_3099[1]));
	}
	if (entity::does_entity_exist(iLocal_3099[2]))
	{
		ped::delete_ped(&(iLocal_3099[2]));
	}
	func_4();
	if (entity::does_entity_exist(Local_2933))
	{
		object::delete_object(&Local_2933);
	}
	iVar0 = 0;
	while (iVar0 <= (Local_3053 - 1))
	{
		if (rope::does_rope_exist(&(Local_3053[iVar0 /*10*/])))
		{
			rope::delete_rope(&(Local_3053[iVar0 /*10*/]));
		}
		iVar0++;
	}
}

void func_4()//Position - 0x564
{
	int iVar0;
	
	iVar0 = 0;
	func_5(&Local_1177, 0);
	func_5(&Local_1192, 0);
	func_5(&Local_1207, 0);
	func_5(&Local_1464, 0);
	iVar0 = 0;
	while (iVar0 <= (Local_1222 - 1))
	{
		func_5(&(Local_1222[iVar0 /*15*/]), 0);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_1433 - 1))
	{
		func_5(&(Local_1433[iVar0 /*15*/]), 0);
		iVar0++;
	}
}

void func_5(int iParam0, int iParam1)//Position - 0x5D3
{
	if (entity::does_entity_exist(*iParam0))
	{
		if (vehicle::is_vehicle_driveable(*iParam0, 0))
		{
			if (entity::is_entity_attached(*iParam0))
			{
				entity::detach_entity(*iParam0, 1, true);
			}
		}
		if (entity::is_entity_a_mission_entity(*iParam0) && entity::does_entity_belong_to_this_script(*iParam0, 0))
		{
			if (player::is_player_playing(player::player_id()))
			{
				if (vehicle::is_vehicle_driveable(*iParam0, 0))
				{
					if (!ped::is_ped_sitting_in_vehicle(player::player_ped_id(), *iParam0))
					{
						if (iParam1)
						{
							vehicle::delete_vehicle(iParam0);
						}
						else
						{
							entity::set_vehicle_as_no_longer_needed(iParam0);
						}
					}
					else
					{
						entity::set_vehicle_as_no_longer_needed(iParam0);
					}
				}
				else
				{
					entity::set_vehicle_as_no_longer_needed(iParam0);
				}
			}
			else
			{
				entity::set_vehicle_as_no_longer_needed(iParam0);
			}
		}
	}
}

void func_6(int iParam0)//Position - 0x66E
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0))
	{
		if (!Global_91264[iVar0])
		{
			if (Global_101154.f_1826.f_539.f_1619[iVar0] != 0)
			{
				if (func_268(iParam0) != Global_101154.f_1826.f_539.f_1619[iVar0])
				{
					func_267(iVar0);
					Global_101154.f_1826.f_539.f_1619[iVar0] = func_268(iParam0);
				}
			}
		}
		func_109(iParam0, &(Global_101154.f_1826.f_539[iVar0 /*65*/]), 0);
		if (!Global_91264[iVar0])
		{
			iVar2 = false;
			if (iVar0 == 0)
			{
				if (!func_108(49))
				{
					iVar1 = func_94(iParam0, 12, -1);
					if (iVar1 == 16)
					{
						iVar2 = true;
					}
					func_7(func_93(0), 12, 16, 0, 0, 0, 0);
				}
				if (!func_108(44))
				{
					iVar1 = func_94(iParam0, 3, -1);
					if (((((iVar1 == 70 || iVar1 == 71) || iVar1 == 72) || iVar1 == 73) || iVar1 == 74) || iVar1 == 75)
					{
						iVar2 = true;
					}
					iVar1 = func_94(iParam0, 4, -1);
					if ((((iVar1 == 41 || iVar1 == 42) || iVar1 == 43) || iVar1 == 44) || iVar1 == 45)
					{
						iVar2 = true;
					}
					func_7(func_93(0), 3, 70, 1, 0, 0, 0);
					func_7(func_93(0), 3, 71, 1, 0, 0, 0);
					func_7(func_93(0), 3, 72, 1, 0, 0, 0);
					func_7(func_93(0), 3, 73, 1, 0, 0, 0);
					func_7(func_93(0), 3, 74, 1, 0, 0, 0);
					func_7(func_93(0), 3, 75, 1, 0, 0, 0);
					func_7(func_93(0), 4, 41, 1, 0, 0, 0);
					func_7(func_93(0), 4, 42, 1, 0, 0, 0);
					func_7(func_93(0), 4, 43, 1, 0, 0, 0);
					func_7(func_93(0), 4, 44, 1, 0, 0, 0);
					func_7(func_93(0), 4, 45, 1, 0, 0, 0);
				}
			}
			else if (iVar0 == 2)
			{
				iVar1 = func_94(iParam0, 4, -1);
				if (iVar1 == 93)
				{
					iVar2 = true;
				}
			}
			if (iVar2)
			{
				func_267(iVar0);
				func_109(iParam0, &(Global_101154.f_1826.f_539[iVar0 /*65*/]), 0);
			}
		}
		Global_91264[iVar0] = 1;
	}
}

void func_7(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x8C5
{
	func_92(iParam0, iParam1, iParam2, iParam3);
	func_81(iParam0, iParam1, iParam2, iParam4, 1);
	if (iParam5)
	{
		func_80(iParam0, iParam1, iParam2, 0);
	}
	if (iParam6 == 1)
	{
		func_8(iParam0, iParam1, iParam2, 0);
	}
}

bool func_8(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x90A
{
	Global_69311[1 /*14*/] = { func_10(iParam0, iParam1, iParam2) };
	if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 0) && !gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 6))
	{
		if (iParam3)
		{
			func_9(iParam1, Global_69311[1 /*14*/].f_5, Global_69311[1 /*14*/].f_2, 2, Global_69311[1 /*14*/].f_1, 0, 1);
		}
		else
		{
			func_9(iParam1, Global_69311[1 /*14*/].f_5, Global_69311[1 /*14*/].f_2, 2, Global_69311[1 /*14*/].f_1, 1, 0);
		}
		return true;
	}
	return false;
}

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

struct<14> func_10(int iParam0, int iParam1, int iParam2)//Position - 0x18C3
{
	func_79();
	if (iParam0 == joaat("player_zero"))
	{
		func_61(iParam1, iParam2);
	}
	else if (iParam0 == joaat("player_one"))
	{
		func_42(iParam1, iParam2);
	}
	else if (iParam0 == joaat("player_two"))
	{
		func_11(iParam1, iParam2);
	}
	return Global_69311[0 /*14*/];
}

void func_11(int iParam0, int iParam1)//Position - 0x1915
{
	switch (iParam0)
	{
		case 0:
			func_41(iParam1);
			break;
		
		case 2:
			func_40(iParam1);
			break;
		
		case 3:
			func_37(iParam1);
			break;
		
		case 4:
			func_36(iParam1);
			break;
		
		case 6:
			func_35(iParam1);
			break;
		
		case 5:
			func_34(iParam1);
			break;
		
		case 8:
			func_33(iParam1);
			break;
		
		case 9:
			func_32(iParam1);
			break;
		
		case 10:
			func_31(iParam1);
			break;
		
		case 1:
			func_30(iParam1);
			break;
		
		case 7:
			func_29(iParam1);
			break;
		
		case 11:
			func_28(iParam1);
			break;
		
		case 12:
			func_27(iParam1);
			break;
		
		case 13:
			func_26(iParam1);
			break;
		
		case 14:
			func_12(iParam1);
			break;
	}
}

void func_12(int iParam0)//Position - 0x1A05
{
	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_69311[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_24(iVar10, iParam0, 155);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_13(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10)//Position - 0x2C30
{
	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_23(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_22(14))
		{
			return;
		}
		if (iParam1 == 1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 1827025211, 0))
			{
				gameplay::set_bit(&(uParam0->f_6), 7);
			}
		}
		if (iParam1 == 12)
		{
			if (!func_20(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_20(Global_2621444, 2, 1, 1, -1))
			{
				gameplay::set_bit(&(uParam0->f_6), 4);
			}
		}
		else if (iParam1 == 13)
		{
		}
		else if (iParam1 == 14)
		{
			if (!func_20(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_20(Global_2621444, 2, 1, 1, -1))
			{
				gameplay::set_bit(&(uParam0->f_6), 4);
			}
		}
		else
		{
			if (!func_20(Global_2621444, 1, 1, 1, -1))
			{
				gameplay::clear_bit(&(uParam0->f_6), 2);
			}
			if (!func_20(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_9(iParam1, uParam0->f_5, uParam0->f_2, 0, uParam0->f_1, 0, 0))
		{
			gameplay::set_bit(&(uParam0->f_6), 1);
		}
		if (func_9(iParam1, uParam0->f_5, uParam0->f_2, 1, uParam0->f_1, 0, 0))
		{
			gameplay::set_bit(&(uParam0->f_6), 2);
		}
		if (!func_9(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_22(14))
			{
				return;
			}
			iVar0 = func_16(func_19(iParam1, uParam0->f_2), Global_69309, 0);
			if (gameplay::is_bit_set(iVar0, uParam0->f_1))
			{
				gameplay::set_bit(&(uParam0->f_6), 1);
			}
			iVar0 = func_16(func_15(iParam1, uParam0->f_2), Global_69309, 0);
			if (gameplay::is_bit_set(iVar0, uParam0->f_1))
			{
				gameplay::set_bit(&(uParam0->f_6), 2);
			}
			if (func_14(iParam1, uParam0->f_2, &uVar1))
			{
				iVar0 = func_16(uVar1, Global_69309, 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_14(int iParam0, int iParam1, var uParam2)//Position - 0x2FC0
{
	*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_15(int iParam0, int iParam1)//Position - 0x33C5
{
	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_16(int iParam0, int iParam1, int iParam2)//Position - 0x37C0
{
	int iVar0;
	var uVar1;
	
	if (iParam2 == 0)
	{
	}
	iVar0 = Global_2469339[iParam0 /*5*/][func_17(iParam1)];
	if (stats::stat_get_int(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0;
}

int func_17(var uParam0)//Position - 0x37F2
{
	int iVar0;
	int iVar1;
	
	iVar0 = uParam0;
	if (iVar0 == -1)
	{
		iVar1 = func_18();
		if (iVar1 > -1)
		{
			Global_2469052 = 0;
			iVar0 = iVar1;
		}
		else
		{
			iVar0 = 0;
			Global_2469052 = 1;
		}
	}
	return iVar0;
}

var func_18()//Position - 0x3826
{
	return Global_1312747;
}

int func_19(int iParam0, int iParam1)//Position - 0x3832
{
	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_20(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x3C2D
{
	int iVar0;
	int iVar1;
	var uVar2;
	int iVar3;
	
	iVar0 = Global_69309;
	if (iParam4 != -1)
	{
		iVar0 = iParam4;
	}
	if (func_21(iParam0, iParam1, &uVar2, &iVar1, iParam2, iParam3))
	{
		iVar3 = func_16(uVar2, iVar0, 0);
		return gameplay::is_bit_set(iVar3, iVar1);
	}
	return false;
}

int func_21(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0x3C6F
{
	int iVar0;
	
	*uParam2 = 3949;
	iVar0 = -1;
	if (iParam4)
	{
		if (Global_2560780)
		{
			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 = 2367;
					break;
				
				case 38:
					*uParam2 = 2368;
					break;
				
				case 39:
					*uParam2 = 2369;
					break;
				
				case 40:
					*uParam2 = 2370;
					break;
				
				case 41:
					*uParam2 = 2429;
					break;
				
				case 42:
					*uParam2 = 2430;
					break;
				
				case 43:
					*uParam2 = 2431;
					break;
				
				case 44:
					*uParam2 = 2432;
					break;
				
				case 45:
					*uParam2 = 2433;
					break;
				
				case 46:
					*uParam2 = 2434;
					break;
				
				case 47:
					*uParam2 = 2435;
					break;
				
				case 48:
					*uParam2 = 2436;
					break;
				
				case 49:
					*uParam2 = 2437;
					break;
				
				case 50:
					*uParam2 = 2438;
					break;
				
				case 51:
					*uParam2 = 2567;
					break;
				
				case 52:
					*uParam2 = 2568;
					break;
				
				case 53:
					*uParam2 = 2569;
					break;
				
				case 54:
					*uParam2 = 2570;
					break;
				
				case 55:
					*uParam2 = 2571;
					break;
				
				case 56:
					*uParam2 = 2572;
					break;
				
				case 57:
					*uParam2 = 2573;
					break;
				
				case 58:
					*uParam2 = 2574;
					break;
				
				case 59:
					*uParam2 = 2575;
					break;
				
				case 60:
					*uParam2 = 2576;
					break;
				
				case 61:
					*uParam2 = 2577;
					break;
				
				case 62:
					*uParam2 = 3174;
					break;
				
				case 63:
					*uParam2 = 3175;
					break;
				
				case 64:
					*uParam2 = 3176;
					break;
				
				case 65:
					*uParam2 = 3177;
					break;
				
				case 66:
					*uParam2 = 3178;
					break;
				
				case 67:
					*uParam2 = 3179;
					break;
				
				case 68:
					*uParam2 = 3249;
					break;
				
				case 69:
					*uParam2 = 3250;
					break;
				
				case 70:
					*uParam2 = 3251;
					break;
				
				case 71:
					*uParam2 = 3252;
					break;
				
				case 72:
					*uParam2 = 3253;
					break;
				
				case 73:
					*uParam2 = 3254;
					break;
				
				case 74:
					*uParam2 = 3255;
					break;
				
				case 75:
					*uParam2 = 3256;
					break;
				
				case 76:
					*uParam2 = 3257;
					break;
				
				case 77:
					*uParam2 = 3258;
					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 = 2371;
					break;
				
				case 38:
					*uParam2 = 2372;
					break;
				
				case 39:
					*uParam2 = 2373;
					break;
				
				case 40:
					*uParam2 = 2374;
					break;
				
				case 41:
					*uParam2 = 2439;
					break;
				
				case 42:
					*uParam2 = 2440;
					break;
				
				case 43:
					*uParam2 = 2441;
					break;
				
				case 44:
					*uParam2 = 2442;
					break;
				
				case 45:
					*uParam2 = 2443;
					break;
				
				case 46:
					*uParam2 = 2444;
					break;
				
				case 47:
					*uParam2 = 2445;
					break;
				
				case 48:
					*uParam2 = 2446;
					break;
				
				case 49:
					*uParam2 = 2447;
					break;
				
				case 50:
					*uParam2 = 2448;
					break;
				
				case 51:
					*uParam2 = 2578;
					break;
				
				case 52:
					*uParam2 = 2579;
					break;
				
				case 53:
					*uParam2 = 2580;
					break;
				
				case 54:
					*uParam2 = 2581;
					break;
				
				case 55:
					*uParam2 = 2582;
					break;
				
				case 56:
					*uParam2 = 2583;
					break;
				
				case 57:
					*uParam2 = 2584;
					break;
				
				case 58:
					*uParam2 = 2585;
					break;
				
				case 59:
					*uParam2 = 2586;
					break;
				
				case 60:
					*uParam2 = 2587;
					break;
				
				case 61:
					*uParam2 = 2588;
					break;
				
				case 62:
					*uParam2 = 3180;
					break;
				
				case 63:
					*uParam2 = 3181;
					break;
				
				case 64:
					*uParam2 = 3182;
					break;
				
				case 65:
					*uParam2 = 3183;
					break;
				
				case 66:
					*uParam2 = 3184;
					break;
				
				case 67:
					*uParam2 = 3185;
					break;
				
				case 68:
					*uParam2 = 3259;
					break;
				
				case 69:
					*uParam2 = 3260;
					break;
				
				case 70:
					*uParam2 = 3261;
					break;
				
				case 71:
					*uParam2 = 3262;
					break;
				
				case 72:
					*uParam2 = 3263;
					break;
				
				case 73:
					*uParam2 = 3264;
					break;
				
				case 74:
					*uParam2 = 3265;
					break;
				
				case 75:
					*uParam2 = 3266;
					break;
				
				case 76:
					*uParam2 = 3267;
					break;
				
				case 77:
					*uParam2 = 3268;
					break;
				
				default:
					break;
			}
			break;
	}
	*uParam3 = (iVar0 % 32);
	return *uParam2 != 3949;
}

int func_22(int iParam0)//Position - 0x4642
{
	return Global_35711 == iParam0;
}

int func_23(int iParam0)//Position - 0x4650
{
	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_24(int iParam0, int iParam1, int iParam2)//Position - 0x4724
{
	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_69311[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_13(&(Global_69311[0 /*14*/]), iParam0, iParam1, &(Var2.f_7), 0, 0, Var2.f_2, 0, -1, 2, 1);
					return;
				}
				iVar18++;
			}
			iVar17++;
		}
	}
	else if (iParam0 == 13)
	{
		func_13(&(Global_69311[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_13(&(Global_69311[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_25(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_13(&(Global_69311[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++;
		}
	}
}

int func_25(int iParam0)//Position - 0x499E
{
	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_26(int iParam0)//Position - 0x4A4E
{
	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_69311[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_24(iVar10, iParam0, 9);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_27(int iParam0)//Position - 0x4B9A
{
	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_69311[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_24(iVar10, iParam0, 48);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_28(int iParam0)//Position - 0x50A6
{
	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_69311[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_24(iVar10, iParam0, 1);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_29(int iParam0)//Position - 0x5119
{
	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_69311[0 /*14*/].f_5 = 2;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_24(iVar10, iParam0, 1);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_30(int iParam0)//Position - 0x518B
{
	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_69311[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_24(iVar10, iParam0, 6);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_31(int iParam0)//Position - 0x5271
{
	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_69311[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_24(iVar10, iParam0, 33);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_32(int iParam0)//Position - 0x55B2
{
	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_69311[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_24(iVar10, iParam0, 17);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_33(int iParam0)//Position - 0x57B9
{
	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_69311[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_24(iVar10, iParam0, 18);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_34(int iParam0)//Position - 0x59D8
{
	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_69311[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_24(iVar10, iParam0, 7);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_35(int iParam0)//Position - 0x5AE0
{
	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_69311[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_24(iVar10, iParam0, 84);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_36(int iParam0)//Position - 0x6471
{
	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_69311[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_24(iVar10, iParam0, 104);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_37(int iParam0)//Position - 0x6FC8
{
	if (iParam0 < 136)
	{
		func_39(iParam0);
	}
	else
	{
		func_38(iParam0);
	}
	if (Global_69311[0 /*14*/].f_2 == -1)
	{
		func_24(3, iParam0, 242);
	}
}

void func_38(int iParam0)//Position - 0x6FFC
{
	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_69311[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_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_39(int iParam0)//Position - 0x7C00
{
	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_69311[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_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_40(int iParam0)//Position - 0x8B01
{
	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_69311[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_24(iVar10, iParam0, 9);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_41(int iParam0)//Position - 0x8C2D
{
	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_69311[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_24(iVar10, iParam0, 7);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_42(int iParam0, int iParam1)//Position - 0x8D23
{
	switch (iParam0)
	{
		case 0:
			func_60(iParam1);
			break;
		
		case 2:
			func_59(iParam1);
			break;
		
		case 3:
			func_55(iParam1);
			break;
		
		case 4:
			func_54(iParam1);
			break;
		
		case 6:
			func_53(iParam1);
			break;
		
		case 5:
			func_52(iParam1);
			break;
		
		case 8:
			func_51(iParam1);
			break;
		
		case 9:
			func_50(iParam1);
			break;
		
		case 10:
			func_49(iParam1);
			break;
		
		case 1:
			func_48(iParam1);
			break;
		
		case 7:
			func_47(iParam1);
			break;
		
		case 11:
			func_46(iParam1);
			break;
		
		case 12:
			func_45(iParam1);
			break;
		
		case 13:
			func_44(iParam1);
			break;
		
		case 14:
			func_43(iParam1);
			break;
	}
}

void func_43(int iParam0)//Position - 0x8E13
{
	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_69311[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_24(iVar10, iParam0, 175);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_44(int iParam0)//Position - 0xA2DF
{
	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_69311[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_24(iVar10, iParam0, 9);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_45(int iParam0)//Position - 0xA425
{
	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_69311[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_24(iVar10, iParam0, 47);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_46(int iParam0)//Position - 0xA92E
{
	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_69311[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_24(iVar10, iParam0, 63);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_47(int iParam0)//Position - 0xAF96
{
	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_69311[0 /*14*/].f_5 = 1;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_24(iVar10, iParam0, 1);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_48(int iParam0)//Position - 0xB008
{
	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_69311[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_24(iVar10, iParam0, 5);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_49(int iParam0)//Position - 0xB0D7
{
	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_69311[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_24(iVar10, iParam0, 53);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_50(int iParam0)//Position - 0xB5D1
{
	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_69311[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_24(iVar10, iParam0, 12);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_51(int iParam0)//Position - 0xB761
{
	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_69311[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_24(iVar10, iParam0, 77);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_52(int iParam0)//Position - 0xBF4F
{
	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_69311[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_24(iVar10, iParam0, 7);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_53(int iParam0)//Position - 0xC059
{
	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_69311[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_24(iVar10, iParam0, 134);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_54(int iParam0)//Position - 0xCF7B
{
	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_69311[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_24(iVar10, iParam0, 117);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_55(int iParam0)//Position - 0xDC27
{
	if (iParam0 < 107)
	{
		func_58(iParam0);
	}
	else if (iParam0 < 227)
	{
		func_57(iParam0);
	}
	else
	{
		func_56(iParam0);
	}
	if (Global_69311[0 /*14*/].f_2 == -1)
	{
		func_24(3, iParam0, 318);
	}
}

void func_56(int iParam0)//Position - 0xDC6C
{
	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_69311[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_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_57(int iParam0)//Position - 0xE710
{
	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_69311[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_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_58(int iParam0)//Position - 0xF4FE
{
	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_69311[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_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_59(int iParam0)//Position - 0x1013E
{
	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_69311[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_24(iVar10, iParam0, 21);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_60(int iParam0)//Position - 0x103B5
{
	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_69311[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_24(iVar10, iParam0, 10);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_61(int iParam0, int iParam1)//Position - 0x104F0
{
	switch (iParam0)
	{
		case 0:
			func_78(iParam1);
			break;
		
		case 2:
			func_77(iParam1);
			break;
		
		case 3:
			func_74(iParam1);
			break;
		
		case 4:
			func_73(iParam1);
			break;
		
		case 6:
			func_72(iParam1);
			break;
		
		case 5:
			func_71(iParam1);
			break;
		
		case 8:
			func_70(iParam1);
			break;
		
		case 9:
			func_69(iParam1);
			break;
		
		case 10:
			func_68(iParam1);
			break;
		
		case 1:
			func_67(iParam1);
			break;
		
		case 7:
			func_66(iParam1);
			break;
		
		case 11:
			func_65(iParam1);
			break;
		
		case 12:
			func_64(iParam1);
			break;
		
		case 13:
			func_63(iParam1);
			break;
		
		case 14:
			func_62(iParam1);
			break;
	}
}

void func_62(int iParam0)//Position - 0x105E0
{
	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_69311[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_24(iVar10, iParam0, 113);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_63(int iParam0)//Position - 0x1133D
{
	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_69311[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_24(iVar10, iParam0, 10);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_64(int iParam0)//Position - 0x114AB
{
	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_69311[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_24(iVar10, iParam0, 53);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_65(int iParam0)//Position - 0x11A1B
{
	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_69311[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_24(iVar10, iParam0, 45);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_66(int iParam0)//Position - 0x11F42
{
	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_69311[0 /*14*/].f_5 = 0;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "NO_LABEL", 16);
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		default:
			func_24(iVar10, iParam0, 1);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_67(int iParam0)//Position - 0x11FB4
{
	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_69311[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_24(iVar10, iParam0, 5);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_68(int iParam0)//Position - 0x12083
{
	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_69311[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_24(iVar10, iParam0, 48);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_69(int iParam0)//Position - 0x12532
{
	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_69311[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_24(iVar10, iParam0, 20);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_70(int iParam0)//Position - 0x1278C
{
	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_69311[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_24(iVar10, iParam0, 24);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_71(int iParam0)//Position - 0x12A4B
{
	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_69311[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_24(iVar10, iParam0, 14);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_72(int iParam0)//Position - 0x12C05
{
	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_69311[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_24(iVar10, iParam0, 99);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_73(int iParam0)//Position - 0x1374A
{
	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_69311[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_24(iVar10, iParam0, 113);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_74(int iParam0)//Position - 0x1437D
{
	if (iParam0 < 60)
	{
		func_76(iParam0);
	}
	else
	{
		func_75(iParam0);
	}
	if (Global_69311[0 /*14*/].f_2 == -1)
	{
		func_24(3, iParam0, 181);
	}
}

void func_75(int iParam0)//Position - 0x143B1
{
	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_69311[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_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_76(int iParam0)//Position - 0x15144
{
	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_69311[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_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_77(int iParam0)//Position - 0x157C6
{
	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_69311[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_24(iVar10, iParam0, 6);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_78(int iParam0)//Position - 0x158AB
{
	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_69311[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_24(iVar10, iParam0, 7);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

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

void func_80(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x15A19
{
	if (iParam2 == -99)
	{
		return;
	}
	switch (iParam0)
	{
		case joaat("player_zero"):
			if (!iParam3 || gameplay::is_bit_set(Global_101154.f_5919[1], 0))
			{
				gameplay::set_bit(&(Global_101154.f_1826.f_539.f_3044[0 /*166*/][iParam1 /*11*/][(iParam2 / 32)]), (iParam2 % 32));
			}
			break;
		
		case joaat("player_two"):
			if (!iParam3 || gameplay::is_bit_set(Global_101154.f_5919[3], 0))
			{
				gameplay::set_bit(&(Global_101154.f_1826.f_539.f_3044[1 /*166*/][iParam1 /*11*/][(iParam2 / 32)]), (iParam2 % 32));
			}
			if (!iParam3 || gameplay::is_bit_set(Global_101154.f_5919[4], 0))
			{
				gameplay::set_bit(&(Global_101154.f_1826.f_539.f_3044[2 /*166*/][iParam1 /*11*/][(iParam2 / 32)]), (iParam2 % 32));
			}
			break;
	}
}

bool func_81(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x15B02
{
	int iVar0;
	int iVar1;
	int iVar2;
	var uVar3;
	var uVar19;
	int iVar29;
	
	Global_69311[1 /*14*/] = { func_10(iParam0, iParam1, iParam2) };
	if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 0) && !gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 6))
	{
		if (iParam3)
		{
			func_9(iParam1, Global_69311[1 /*14*/].f_5, Global_69311[1 /*14*/].f_2, 1, Global_69311[1 /*14*/].f_1, 1, 0);
			if (iParam1 == 12)
			{
				iVar0 = 1;
				if (iParam0 == joaat("player_zero"))
				{
					if (iParam2 == 31)
					{
						iVar0 = 0;
					}
				}
				if (iVar0 == 1)
				{
					uVar3 = { func_88(iParam0, iParam2) };
					iVar1 = 0;
					while (iVar1 <= 14)
					{
						if ((uVar3[iVar1] != -99 && iVar1 != 12) && iVar1 != 14)
						{
							if (iVar1 != 13)
							{
								func_81(iParam0, iVar1, uVar3[iVar1], 1, 1);
								func_92(iParam0, iVar1, uVar3[iVar1], 1);
							}
							else
							{
								uVar19 = { func_82(iParam0, uVar3[iVar1]) };
								iVar2 = 0;
								while (iVar2 <= 8)
								{
									func_81(iParam0, 14, uVar19[iVar2], 1, 1);
									func_92(iParam0, 14, uVar19[iVar2], 1);
									iVar2++;
								}
							}
						}
						iVar1++;
					}
				}
			}
		}
		else
		{
			func_9(iParam1, Global_69311[1 /*14*/].f_5, Global_69311[1 /*14*/].f_2, 1, Global_69311[1 /*14*/].f_1, 0, 1);
		}
		if (iParam4 == 1 && iParam3 == 1)
		{
			switch (iParam0)
			{
				case joaat("player_zero"):
					break;
				
				case joaat("player_one"):
					switch (iParam1)
					{
						case 3:
							if (iParam2 >= 176 && iParam2 <= 191)
							{
								iVar29 = (227 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 3, iVar29, 1, 0);
							}
							else if (iParam2 >= 227 && iParam2 <= 242)
							{
								iVar29 = (176 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 3, iVar29, 1, 0);
							}
							break;
						
						case 11:
							if (iParam2 >= 9 && iParam2 <= 24)
							{
								iVar29 = (25 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 11, iVar29, 1, 0);
							}
							else if (iParam2 >= 25 && iParam2 <= 40)
							{
								iVar29 = (9 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 11, iVar29, 1, 0);
							}
							break;
						
						case 8:
							if (iParam2 >= 27 && iParam2 <= 42)
							{
								iVar29 = (43 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 8, iVar29, 1, 0);
								iVar29 = (59 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 8, iVar29, 1, 0);
							}
							else if (iParam2 >= 43 && iParam2 <= 58)
							{
								iVar29 = (27 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 8, iVar29, 1, 0);
								iVar29 = (59 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 8, iVar29, 1, 0);
							}
							else if (iParam2 >= 59 && iParam2 <= 74)
							{
								iVar29 = (27 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 8, iVar29, 1, 0);
								iVar29 = (43 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 8, iVar29, 1, 0);
							}
							break;
						
						case 14:
							if (iParam2 >= 64 && iParam2 <= 79)
							{
								iVar29 = (41 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 14, iVar29, 1, 0);
							}
							break;
					}
					break;
				
				case joaat("player_two"):
					switch (iParam1)
					{
						case 4:
							if (iParam2 >= 81 && iParam2 <= 90)
							{
								iVar29 = (94 + Global_69311[1 /*14*/].f_4);
								func_81(iParam0, 4, iVar29, 1, 0);
							}
							break;
						
						case 12:
							if (iParam2 == 2)
							{
								func_81(iParam0, 14, 17, 1, 0);
							}
							break;
					}
					break;
				}
		}
		return true;
	}
	return false;
}

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

void func_83(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x16818
{
	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_84(iParam1, vVar16.x, 14, iVar0);
					}
					else if (vVar16.y != -1)
					{
						(*iParam0)[vVar16.y] = vVar16.y;
					}
				}
				iVar19++;
			}
		}
	}
}

int func_84(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x16942
{
	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_86(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_25(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_85(iParam0, func_25(iParam2)) + iVar38);
				}
				iVar38++;
			}
			iVar37++;
		}
	}
	return -99;
}

int func_85(int iParam0, int iParam1)//Position - 0x16A22
{
	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_86(int iParam0)//Position - 0x16DC9
{
	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;
}

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

void func_89(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x18CB6
{
	int iVar0;
	struct<5> Var1;
	vector3 vVar16;
	int iVar19;
	
	(*iParam0)[0] = 0;
	(*iParam0)[2] = -99;
	(*iParam0)[3] = 0;
	(*iParam0)[4] = 0;
	(*iParam0)[6] = 0;
	(*iParam0)[5] = 0;
	(*iParam0)[8] = 0;
	(*iParam0)[9] = 0;
	(*iParam0)[10] = 0;
	(*iParam0)[1] = 0;
	(*iParam0)[7] = 0;
	(*iParam0)[11] = 0;
	(*iParam0)[13] = -99;
	(*iParam0)[14] = -99;
	iVar0 = 0;
	if (iParam1 == joaat("player_zero"))
	{
		iVar0 = 0;
		(*iParam0)[13] = (10 + (iParam2 - iParam3));
	}
	else if (iParam1 == joaat("player_one"))
	{
		iVar0 = 1;
		(*iParam0)[13] = (9 + (iParam2 - iParam3));
	}
	else if (iParam1 == joaat("player_two"))
	{
		iVar0 = 2;
		(*iParam0)[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))
	{
		iVar19 = 0;
		while (iVar19 < Var1.f_4)
		{
			if (dlc1::_get_prop_from_outfit(Var1.f_1, iVar19, &vVar16))
			{
				if ((vVar16.x != 0 && vVar16.x != -1) && vVar16.x != 1849449579)
				{
					if (vVar16.y == 10)
					{
						(*iParam0)[func_90(vVar16.y)] = vVar16.x;
					}
					else
					{
						(*iParam0)[func_90(vVar16.y)] = func_84(iParam1, vVar16.x, func_90(vVar16.y), iVar0);
					}
				}
				else if (vVar16.y != -1)
				{
					(*iParam0)[func_90(vVar16.y)] = vVar16.y;
				}
			}
			iVar19++;
		}
		if (Var1.f_3 == 0)
		{
			(*iParam0)[13] = -99;
		}
		else
		{
			(*iParam0)[13] = Var1.f_1;
		}
	}
}

int func_90(int iParam0)//Position - 0x18E67
{
	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_91(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 - 0x18F17
{
	(*iParam0)[0] = iParam1;
	(*iParam0)[2] = iParam2;
	(*iParam0)[3] = iParam3;
	(*iParam0)[4] = iParam4;
	(*iParam0)[6] = iParam5;
	(*iParam0)[5] = iParam6;
	(*iParam0)[8] = iParam7;
	(*iParam0)[9] = iParam8;
	(*iParam0)[10] = iParam9;
	(*iParam0)[1] = iParam10;
	(*iParam0)[7] = iParam11;
	(*iParam0)[11] = iParam12;
	(*iParam0)[13] = iParam13;
	(*iParam0)[14] = -99;
}

bool func_92(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x18F88
{
	Global_69311[1 /*14*/] = { func_10(iParam0, iParam1, iParam2) };
	if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 0) && !gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 6))
	{
		if (iParam3)
		{
			func_9(iParam1, Global_69311[1 /*14*/].f_5, Global_69311[1 /*14*/].f_2, 0, Global_69311[1 /*14*/].f_1, 1, 0);
		}
		else
		{
			func_9(iParam1, Global_69311[1 /*14*/].f_5, Global_69311[1 /*14*/].f_2, 0, Global_69311[1 /*14*/].f_1, 0, 1);
		}
		return true;
	}
	return false;
}

int func_93(int iParam0)//Position - 0x19023
{
	if (func_269(iParam0))
	{
		return Global_101154.f_32575[iParam0 /*29*/];
	}
	else if (iParam0 != 145)
	{
	}
	return 0;
}

int func_94(int iParam0, int iParam1, int iParam2)//Position - 0x1904D
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 == 12)
		{
			iVar0 = 0;
			while (iVar0 <= 53)
			{
				if (func_101(iParam0, iParam1, iVar0))
				{
					return iVar0;
				}
				iVar0++;
			}
		}
		else if (iParam1 == 13)
		{
			iVar1 = 0;
			while (iVar1 <= 19)
			{
				if (func_101(iParam0, iParam1, iVar1))
				{
					return iVar1;
				}
				iVar1++;
			}
			return 31;
		}
		else if (iParam1 == 14)
		{
			if (iParam2 == -1)
			{
			}
			else
			{
				return func_97(iParam0, iParam2);
			}
		}
		else
		{
			return func_95(iParam0, iParam1);
		}
	}
	return -99;
}

int func_95(int iParam0, int iParam1)//Position - 0x190EE
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (((iParam1 == 12 || iParam1 == 13) || iParam1 == 14) || ped::is_ped_injured(iParam0))
	{
		return -99;
	}
	iVar0 = func_25(iParam1);
	iVar1 = ped::get_ped_drawable_variation(iParam0, iVar0);
	iVar2 = ped::get_ped_texture_variation(iParam0, iVar0);
	return func_96(iParam0, iVar1, iVar2, iParam1);
}

int func_96(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x1914E
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	iVar0 = func_25(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_97(int iParam0, int iParam1)//Position - 0x191D2
{
	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_100(iParam1);
	}
	iVar1 = ped::get_ped_prop_texture_index(iParam0, iParam1);
	return func_98(iParam0, iVar0, iVar1, iParam1);
}

int func_98(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x19218
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (iParam1 == -1)
	{
		return func_100(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_84(entity::get_entity_model(iParam0), iVar1, 14, 3);
		}
		else if (iVar0 == joaat("mp_f_freemode_01"))
		{
			return func_84(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_99(iParam0, iParam3));
					return iVar3;
				}
				else
				{
					iVar3++;
				}
				iVar5++;
			}
		}
		iVar4++;
	}
	return func_100(iParam3);
}

int func_99(int iParam0, int iParam1)//Position - 0x19314
{
	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_100(int iParam0)//Position - 0x19452
{
	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_101(int iParam0, int iParam1, int iParam2)//Position - 0x194D8
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	var uVar5;
	var uVar21;
	int iVar31;
	var uVar32;
	
	if (ped::is_ped_injured(iParam0))
	{
		return false;
	}
	iVar0 = entity::get_entity_model(iParam0);
	Global_69311[1 /*14*/] = { func_10(iVar0, iParam1, iParam2) };
	if (!gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 0))
	{
		return false;
	}
	if (iParam1 == 12)
	{
		uVar5 = { func_88(iVar0, iParam2) };
		iVar2 = 0;
		while (iVar2 <= 14)
		{
			if ((uVar5[iVar2] != -99 && iVar2 != 12) && iVar2 != 14)
			{
				if (!func_101(iParam0, iVar2, uVar5[iVar2]))
				{
					if (iVar2 == 13)
					{
						uVar21 = { func_82(iVar0, uVar5[iVar2]) };
						iVar3 = 0;
						while (iVar3 <= 8)
						{
							if (!func_101(iParam0, 14, uVar21[iVar3]))
							{
								iVar4 = 0;
								while (iVar4 <= 19)
								{
									Global_69311[2 /*14*/] = { func_10(iVar0, 14, iVar4) };
									if (Global_69311[2 /*14*/].f_12 == iVar3)
									{
										if (func_101(iParam0, 14, iVar4))
										{
											if (!func_102(iVar0, iParam2, 14, iVar4, &uVar5, &(Global_69311[2 /*14*/])))
											{
												return false;
											}
										}
									}
									iVar4++;
								}
							}
							iVar3++;
						}
					}
					else
					{
						iVar1 = func_95(iParam0, iVar2);
						Global_69311[2 /*14*/] = { func_10(iVar0, iVar2, iVar1) };
						if (!func_102(iVar0, iParam2, iVar2, iVar1, &uVar5, &(Global_69311[2 /*14*/])))
						{
							return false;
						}
					}
				}
			}
			iVar2++;
		}
		return true;
	}
	else if (iParam1 == 13)
	{
		uVar32 = { func_82(iVar0, iParam2) };
		iVar31 = 0;
		while (iVar31 <= 8)
		{
			if (!func_101(iParam0, 14, uVar32[iVar31]))
			{
				return false;
			}
			iVar31++;
		}
		return true;
	}
	else if (iParam1 == 14)
	{
		if (ped::get_ped_prop_index(iParam0, Global_69311[1 /*14*/].f_12) == Global_69311[1 /*14*/].f_3 && (ped::get_ped_prop_texture_index(iParam0, Global_69311[1 /*14*/].f_12) == Global_69311[1 /*14*/].f_4 || Global_69311[1 /*14*/].f_3 == -1))
		{
			return true;
		}
	}
	else if (Global_69311[1 /*14*/].f_3 == ped::get_ped_drawable_variation(iParam0, func_25(iParam1)) && Global_69311[1 /*14*/].f_4 == ped::get_ped_texture_variation(iParam0, func_25(iParam1)))
	{
		return true;
	}
	return false;
}

bool func_102(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4, var uParam5)//Position - 0x19730
{
	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_82(iParam0, (*uParam4)[13]) };
		iVar10 = 0;
		while (iVar10 <= 8)
		{
			if (uVar0[iVar10] == iParam3)
			{
				return true;
			}
			iVar10++;
		}
	}
	if (func_107(iParam0, iParam2, iParam3))
	{
		return true;
	}
	if (iParam0 == joaat("player_zero"))
	{
		if (func_106(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_105(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_103(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_106(iParam0, iParam2, iParam3))
		{
			if ((iParam1 == 3 || iParam1 == 5) || iParam1 == 7)
			{
				return false;
			}
			return true;
		}
		else if (func_105(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_103(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_106(iParam0, iParam2, iParam3))
		{
			if (((((iParam1 == 1 || iParam1 == 2) || iParam1 == 6) || iParam1 == 8) || iParam1 == 45) || iParam1 == 12)
			{
				return false;
			}
			return true;
		}
		else if (func_105(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_103(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_103(int iParam0, int iParam1, int iParam2)//Position - 0x19D2B
{
	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_104(iParam0, iParam2, 14, 3), -1757550583, 1) || dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam2, 14, 3), -1842686353, 1));
					}
					break;
				
				case 1:
					if (iParam2 >= 26)
					{
						return (dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam2, 1, 3), -1757550583, 0) || dlc1::_0x341DE7ED1D2A1BFD(func_104(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_104(iParam0, iParam2, 14, 4), -1757550583, 1) || dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam2, 14, 4), -1842686353, 1));
					}
					break;
				
				case 1:
					if (iParam2 >= 26)
					{
						return (dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam2, 1, 4), -1757550583, 0) || dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam2, 1, 4), -1842686353, 0));
					}
					break;
			}
			break;
	}
	return false;
}

int func_104(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x19F80
{
	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_86(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_85(iParam0, func_25(iParam2)));
		if (iVar40 < 0)
		{
			return -1;
		}
		if ((iParam0 == Global_69432.f_26[iParam2] && iParam1 == Global_69432[iParam2]) && Global_69432.f_13[iParam2] != 0)
		{
			return Global_69432.f_13[iParam2];
		}
		iVar41 = dlc1::_get_num_props_from_outfit(iParam3, 6, -1, 0, -1, func_25(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_69432.f_13[iParam2] = Var21.f_1;
					Global_69432[iParam2] = iParam1;
					Global_69432.f_26[iParam2] = iParam0;
					return Var21.f_1;
				}
				iVar39++;
			}
			iVar38++;
		}
	}
	return -1;
}

bool func_105(int iParam0, int iParam1, int iParam2)//Position - 0x1A0DC
{
	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_104(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_104(iParam0, iParam2, 1, 4);
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1757550583, 0))
					{
						return false;
					}
				}
				return true;
			}
		}
	}
	return false;
}

int func_106(int iParam0, int iParam1, int iParam2)//Position - 0x1A4D1
{
	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_104(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_104(iParam0, iParam2, 14, 4), 97230661, 1);
				}
			}
			break;
	}
	return false;
}

bool func_107(int iParam0, int iParam1, int iParam2)//Position - 0x1A7B0
{
	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;
}

var func_108(int iParam0)//Position - 0x1A849
{
	return Global_101154.f_7775.f_330[iParam0 /*6*/];
}

void func_109(int iParam0, var uParam1, int iParam2)//Position - 0x1A85F
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_270(iParam0);
		iVar1 = entity::get_entity_model(iParam0);
		iVar3 = 0;
		while (iVar3 < 12)
		{
			if (iVar3 != 1 || (iVar3 == 1 && !iParam2))
			{
				ped::set_ped_component_variation(iParam0, iVar3, uParam1->f_13[iVar3], (*uParam1)[iVar3], uParam1->f_26[iVar3]);
			}
			iVar3++;
		}
		iVar3 = 0;
		while (iVar3 < 9)
		{
			if (uParam1->f_39[iVar3] != -1 && uParam1->f_39[iVar3] != 255)
			{
				ped::set_ped_prop_index(iParam0, iVar3, uParam1->f_39[iVar3], uParam1->f_49[iVar3], false);
			}
			else
			{
				ped::clear_ped_prop(iParam0, iVar3);
			}
			iVar3++;
		}
		if (func_269(iVar0))
		{
			Global_101154.f_1826.f_539[iVar0 /*65*/].f_59 = uParam1->f_59;
			Global_101154.f_1826.f_539[iVar0 /*65*/].f_60 = uParam1->f_60;
			Global_101154.f_1826.f_539[iVar0 /*65*/].f_61 = uParam1->f_61;
			if (func_266(iParam0, iVar1, &iVar2, 0))
			{
				func_252(iParam0, 2, iVar2, 0, -1, 0, 0, 0, -1, -1, -1, 0);
			}
			Global_101154.f_1826.f_539[iVar0 /*65*/].f_62 = uParam1->f_62;
			Global_101154.f_1826.f_539[iVar0 /*65*/].f_63 = uParam1->f_63;
			Global_101154.f_1826.f_539[iVar0 /*65*/].f_64 = uParam1->f_64;
			if (func_250(iParam0, iVar1, &iVar2))
			{
				func_252(iParam0, 1, iVar2, 0, -1, 0, 0, 0, -1, -1, -1, 0);
			}
		}
		else if (network::network_is_game_in_progress() && entity::get_entity_model(iParam0) == entity::get_entity_model(player::player_ped_id()))
		{
			func_249(746, uParam1->f_60, Global_69309, 1);
			func_249(747, uParam1->f_61, Global_69309, 1);
			iVar4 = func_96(iParam0, uParam1->f_13[2], (*uParam1)[2], 2);
			func_112(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, Global_69309, 0);
			if (!iParam2)
			{
				iVar5 = func_96(iParam0, uParam1->f_13[1], (*uParam1)[1], 1);
				func_112(iParam0, 1, iVar5, 0, -1, 0, 0, 0, -1, -1, Global_69309, 0);
			}
		}
		if (network::network_is_game_in_progress() && iParam0 == player::player_ped_id())
		{
			func_249(745, uParam1->f_59, Global_69309, 1);
			func_249(2043, uParam1->f_59, Global_69309, 1);
			func_110(161, 1, -1, 1);
		}
	}
}

void func_110(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x1AAB7
{
	int iVar0;
	
	if (func_111())
	{
		iVar0 = Global_2490231[iParam0 /*5*/][func_17(iParam2)];
		if (iVar0 != 0)
		{
			stats::stat_set_bool(iVar0, iParam1, iParam3);
		}
	}
}

bool func_111()//Position - 0x1AAE9
{
	return true;
	return false;
}

bool func_112(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 - 0x1AAF6
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	var uVar13;
	var uVar14;
	var uVar15;
	var uVar31;
	var uVar41;
	int iVar57;
	var uVar58;
	int iVar68;
	int iVar69;
	int iVar70;
	int iVar71;
	int iVar72;
	int iVar73;
	int iVar74;
	int iVar75;
	int iVar76;
	int iVar77;
	int iVar78;
	int iVar79;
	int iVar80;
	int iVar81;
	int iVar82;
	int iVar83;
	int iVar84;
	int iVar85;
	int iVar86;
	int iVar87;
	int iVar88;
	int iVar89;
	int iVar90;
	int iVar91;
	float fVar92;
	int iVar93;
	int iVar94;
	int iVar95;
	int iVar96;
	int iVar97;
	int iVar98;
	int iVar99;
	int iVar100;
	int iVar101;
	int iVar102;
	int iVar103;
	int iVar104;
	int iVar105;
	int iVar106;
	int iVar107;
	int iVar108;
	int iVar109;
	var uVar110;
	int iVar111;
	int iVar112;
	int iVar113;
	int iVar114;
	int iVar115;
	int iVar116;
	var uVar117;
	int iVar118;
	int iVar119;
	int iVar120;
	int iVar121;
	int iVar122;
	
	if (!network::network_is_game_in_progress())
	{
		if ((Global_1315845 != 4 && Global_1315845 != 5) && Global_1315845 != 7)
		{
			return false;
		}
	}
	if (ped::is_ped_injured(iParam0) || iParam2 == -99)
	{
		return false;
	}
	if (iParam0 == player::player_ped_id() && Global_2418472[player::player_id() /*313*/].f_220 == 2)
	{
		return false;
	}
	Global_69310++;
	iVar5 = entity::get_entity_model(iParam0);
	iVar6 = -99;
	iVar7 = -99;
	iVar8 = -1;
	iVar9 = -99;
	iVar10 = -99;
	iVar11 = -1;
	iVar12 = -1;
	if (iParam5 == 0)
	{
		Global_69311[1 /*14*/] = { func_216(iVar5, iParam1, iParam2) };
		if (!func_215(iParam3))
		{
			Global_69310 = (Global_69310 - 1);
			return false;
		}
		func_212(iVar5, iParam1, iParam2, 1);
	}
	if (iParam1 == 12)
	{
		uVar13 = Global_2621444;
		uVar14 = Global_2621445;
		ped::clear_all_ped_props(iParam0);
		uVar15 = 15;
		if (iParam5 == 1)
		{
			uVar15 = { Global_69354 };
		}
		else
		{
			uVar15 = { func_88(iVar5, iParam2) };
		}
		iVar0 = 0;
		while (iVar0 <= 14)
		{
			if (uVar15[iVar0] != -99)
			{
				if (iVar0 == 10)
				{
					Global_69311[1 /*14*/] = { func_216(iVar5, 10, 0) };
					if (iParam4 == -1)
					{
						ped::set_ped_component_variation(iParam0, func_25(iVar0), Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_25(iVar0)));
					}
					else
					{
						ped::set_ped_component_variation(iParam0, func_25(iVar0), Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4, iParam4);
					}
					if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 1))
					{
						func_212(iVar5, 10, 0, 1);
					}
				}
				else
				{
					Global_69311[1 /*14*/] = { func_216(iVar5, iVar0, uVar15[iVar0]) };
					if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 0) || iVar0 == 13)
					{
						if (iVar0 == 13)
						{
							uVar31 = 9;
							if (iParam5 == 1)
							{
								uVar31 = { Global_69370 };
							}
							else
							{
								uVar31 = { func_82(iVar5, uVar15[iVar0]) };
							}
							iVar1 = 0;
							while (iVar1 <= 8)
							{
								Global_69311[1 /*14*/] = { func_216(iVar5, 14, uVar31[iVar1]) };
								func_211(iParam0, Global_69311[1 /*14*/].f_12, Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4);
								if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 1))
								{
									func_212(iVar5, iVar0, uVar15[iVar0], 1);
								}
								iVar1++;
							}
						}
						else if (iVar0 != 14 && iVar0 != 12)
						{
							if (iVar0 != 1)
							{
								if (iParam4 == -1)
								{
									ped::set_ped_component_variation(iParam0, func_25(iVar0), Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_25(iVar0)));
								}
								else
								{
									ped::set_ped_component_variation(iParam0, func_25(iVar0), Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4, iParam4);
								}
							}
							else
							{
								func_112(iParam0, iVar0, uVar15[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0);
							}
							if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 1))
							{
								func_212(iVar5, iVar0, uVar15[iVar0], 1);
							}
						}
					}
				}
			}
			else if (iVar0 != 12 && iVar0 != 14)
			{
				Global_69311[1 /*14*/] = { func_216(iVar5, iVar0, func_210(iParam0, iVar0, -1)) };
				if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 3))
				{
					uVar41 = { func_88(iVar5, 0) };
					func_112(iParam0, iVar0, uVar41[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0);
				}
			}
			iVar0++;
		}
		Global_2621444 = uVar13;
		Global_2621445 = uVar14;
		if (iParam5 == 0)
		{
			iVar57 = func_209();
			if (iVar57 != -1)
			{
				func_207(iVar57, 0, Global_69309);
			}
			func_205(iParam0, 11, uVar15[11], iParam6, 0);
		}
	}
	else if (iParam1 == 13)
	{
		uVar58 = { func_82(iVar5, iParam2) };
		iVar1 = 0;
		while (iVar1 <= 8)
		{
			Global_69311[1 /*14*/] = { func_216(iVar5, 14, uVar58[iVar1]) };
			func_211(iParam0, Global_69311[1 /*14*/].f_12, Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4);
			if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 1))
			{
				func_212(iVar5, 14, uVar58[iVar1], 1);
			}
			if (iParam5 == 0)
			{
				if (Global_69310 == 1)
				{
					iVar2 = 0;
					while (iVar2 < 15)
					{
						iVar3 = func_203(iParam0, iVar5, 14, uVar58[iVar1], iVar2, 0);
						if (iVar3 != -99)
						{
							func_112(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0);
						}
						iVar2++;
					}
				}
			}
			iVar1++;
		}
	}
	else if (iParam1 == 14)
	{
		iVar68 = dlc1::get_hash_name_for_component(iParam0, 1, ped::get_ped_drawable_variation(iParam0, 1), ped::get_ped_texture_variation(iParam0, 1));
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar68, 838607662, 0))
		{
			iVar69 = func_95(iParam0, 1);
			iVar3 = func_203(iParam0, iVar5, 1, iVar69, 14, Global_69311[1 /*14*/].f_12);
			if (iVar3 != -99 && iVar3 != iParam2)
			{
				iVar7 = func_202(iVar5, 1, -1);
			}
		}
		func_211(iParam0, Global_69311[1 /*14*/].f_12, Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4);
		if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 1))
		{
			func_212(iVar5, iParam1, iParam2, 1);
		}
		if (iParam5 == 0)
		{
			if (Global_69310 == 1)
			{
				iVar2 = 0;
				while (iVar2 < 15)
				{
					iVar3 = func_203(iParam0, iVar5, iParam1, iParam2, iVar2, 0);
					if (iVar3 != -99)
					{
						func_112(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					}
					iVar2++;
				}
			}
		}
	}
	else
	{
		if (iParam1 == 11)
		{
			if (iParam5 == 0)
			{
				iVar70 = -1;
				if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 6) && dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1996375172, 11))
				{
					ped::_0xCC9682B8951C5229(iParam0, Global_1317072, Global_1317073, Global_1317074, 0);
					ped::_0xCC9682B8951C5229(iParam0, Global_1317072, Global_1317073, Global_1317074, 1);
					ped::_0xCC9682B8951C5229(iParam0, Global_1317072, Global_1317073, Global_1317074, 2);
					ped::_0xCC9682B8951C5229(iParam0, Global_1317072, Global_1317073, Global_1317074, 3);
				}
				iVar71 = func_95(iParam0, 11);
				iVar72 = func_95(iParam0, 8);
				iVar73 = func_95(iParam0, 4);
				iVar8 = dlc1::get_hash_name_for_component(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), ped::get_ped_texture_variation(iParam0, 8));
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar8, 240476421, 8))
				{
					if (iVar5 == joaat("mp_m_freemode_01"))
					{
						iVar70 = func_104(iVar5, iParam2, 11, 3);
					}
					else if (iVar5 == joaat("mp_f_freemode_01"))
					{
						iVar70 = func_104(iVar5, iParam2, 11, 4);
					}
					if (((dlc1::_0x341DE7ED1D2A1BFD(iVar70, 320460654, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -826135203, 0))
					{
					}
					else
					{
						iVar9 = func_95(iParam0, 8);
					}
				}
				iVar74 = dlc1::get_hash_name_for_component(iParam0, 3, ped::get_ped_drawable_variation(iParam0, 3), 0);
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar74, -356646862, 0))
				{
					iVar75 = func_201(iVar5, iVar72, iVar71, iVar73);
					if (iVar75 == -99)
					{
						iVar75 = func_203(iParam0, iVar5, 11, iVar71, 3, 0);
					}
					switch (iVar74)
					{
						case 1165919867:
						case 1606204151:
						case 1774276352:
						case 1934254610:
						case 980775017:
						case 399321881:
							iVar75 = 11;
							iVar70 = func_104(iVar5, iParam2, 11, 4);
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar70, -530089825, 0))
							{
								iVar75 = -99;
							}
							break;
					}
					if (iVar75 != -99)
					{
						iVar76 = iVar75;
						iVar77 = 0;
						while (iVar77 < 15)
						{
							if (func_200(iVar5, iVar76, iVar77) == iVar74)
							{
								iVar11 = iVar77;
								iVar12 = ped::get_ped_texture_variation(iParam0, 3);
							}
							iVar77++;
						}
					}
				}
				iVar70 = -1;
				if ((iVar5 == joaat("mp_f_freemode_01") && iParam2 >= 256) && dlc1::_0x341DE7ED1D2A1BFD(func_104(iVar5, iParam2, 11, 4), -1200513218, 0))
				{
					iVar71 = func_95(iParam0, 11);
					if (iVar71 >= 256)
					{
						iVar70 = func_104(iVar5, iVar71, 11, 4);
					}
					if (iVar71 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar70, 1965569012, 0))
					{
						iVar78 = func_198(iVar5, iVar71, iParam2, ped::get_ped_texture_variation(iParam0, 11));
						if (iVar78 != -99)
						{
							func_112(iParam0, 8, iVar78, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
							Global_69311[1 /*14*/] = { func_216(iVar5, iParam1, iParam2) };
						}
					}
				}
				else if (func_197(iVar5, iParam2))
				{
					if (iVar5 == joaat("mp_m_freemode_01"))
					{
						if (iVar71 >= 237)
						{
							iVar70 = func_104(iVar5, iVar71, 11, 3);
						}
					}
					else if (iVar5 == joaat("mp_f_freemode_01"))
					{
						if (iVar71 >= 256)
						{
							iVar70 = func_104(iVar5, iVar71, 11, 4);
						}
					}
					if (!func_197(iVar5, iVar71))
					{
						if ((iVar5 == joaat("mp_f_freemode_01") && iVar71 >= 256) && (dlc1::_0x341DE7ED1D2A1BFD(iVar70, -1200513218, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, 1965569012, 0)))
						{
						}
						else if ((iVar5 == joaat("mp_f_freemode_01") && iVar71 >= 256) && ((((((dlc1::_0x341DE7ED1D2A1BFD(iVar70, 684992453, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar70, 700658917, 0)))
						{
						}
						else
						{
							iVar79 = func_198(iVar5, iVar71, iParam2, ped::get_ped_texture_variation(iParam0, 11));
							if (iVar79 != -99)
							{
								func_112(iParam0, 8, iVar79, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
								Global_69311[1 /*14*/] = { func_216(iVar5, iParam1, iParam2) };
								iVar9 = -99;
							}
							else
							{
								if (iVar5 == joaat("mp_m_freemode_01"))
								{
									iVar80 = func_202(iVar5, 11, -1);
									Global_69311[1 /*14*/] = { func_216(iVar5, 11, iVar80) };
									iVar79 = func_198(iVar5, iVar80, iParam2, Global_69311[1 /*14*/].f_4);
									if (iVar79 == -99)
									{
										iVar79 = 240;
									}
								}
								else if (iVar5 == joaat("mp_f_freemode_01"))
								{
									iVar79 = 48;
								}
								func_112(iParam0, 8, iVar79, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
								Global_69311[1 /*14*/] = { func_216(iVar5, iParam1, iParam2) };
							}
						}
					}
					else
					{
						Global_69311[1 /*14*/] = { func_216(iVar5, 11, iVar71) };
						iVar81 = Global_69311[1 /*14*/].f_3;
						Global_69311[1 /*14*/] = { func_216(iVar5, 11, iParam2) };
						iVar82 = Global_69311[1 /*14*/].f_3;
						if (iVar81 != iVar82)
						{
							Global_69311[1 /*14*/] = { func_216(iVar5, 8, iVar72) };
							iVar83 = Global_69311[1 /*14*/].f_4;
							iVar84 = func_196(iVar5, iVar72, iVar83);
							if (iVar84 == -99)
							{
								iVar85 = iVar72;
								if (iVar5 == joaat("mp_m_freemode_01"))
								{
									if ((iParam2 >= 96 && iParam2 <= 107) || func_195(func_104(iVar5, iParam2, 11, 3)) == 6)
									{
										iVar84 = func_202(iVar5, 11, -1);
										Global_69311[1 /*14*/] = { func_216(iVar5, 11, iVar84) };
										iVar85 = func_198(iVar5, iVar84, iParam2, Global_69311[1 /*14*/].f_4);
									}
								}
								if (iVar5 == joaat("mp_f_freemode_01") && iVar72 == 32)
								{
									if (!dlc1::_0x341DE7ED1D2A1BFD(func_104(iVar5, iParam2, 11, 4), -491588875, 0))
									{
										iVar84 = func_202(iVar5, 11, -1);
										Global_69311[1 /*14*/] = { func_216(iVar5, 11, iVar84) };
										iVar85 = func_198(iVar5, iVar84, iParam2, Global_69311[1 /*14*/].f_4);
									}
								}
							}
							else
							{
								iVar85 = func_198(iVar5, iVar84, iParam2, iVar83);
								if (iVar5 == joaat("mp_m_freemode_01"))
								{
									if (dlc1::_0x341DE7ED1D2A1BFD(func_104(iVar5, iParam2, 11, 3), -1719338724, 0))
									{
										if (!func_194(iVar5, func_95(iParam0, 4), iVar84))
										{
											iVar85 = 240;
										}
									}
								}
								else if (iVar5 == joaat("mp_f_freemode_01"))
								{
									if (dlc1::_0x341DE7ED1D2A1BFD(func_104(iVar5, iParam2, 11, 4), -1719338724, 0))
									{
										if (!func_194(iVar5, func_95(iParam0, 4), iVar84))
										{
											iVar85 = 48;
										}
									}
								}
							}
							if (iVar85 != -99)
							{
								func_112(iParam0, 8, iVar85, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
							}
							else if (iVar5 == joaat("mp_m_freemode_01"))
							{
								iVar84 = func_202(iVar5, 11, -1);
								Global_69311[1 /*14*/] = { func_216(iVar5, 11, iVar84) };
								iVar85 = func_198(iVar5, iVar84, iParam2, Global_69311[1 /*14*/].f_4);
								if (iVar85 == -99)
								{
									iVar85 = 240;
								}
								func_112(iParam0, 8, iVar85, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
							}
							else if (iVar5 == joaat("mp_f_freemode_01"))
							{
								func_112(iParam0, 8, 48, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
							}
							Global_69311[1 /*14*/] = { func_216(iVar5, iParam1, iParam2) };
						}
					}
				}
				else
				{
					func_192(iVar5, iParam2);
					ped::set_ped_component_variation(iParam0, 10, 0, 0, ped::get_ped_palette_variation(iParam0, 10));
				}
			}
			func_205(iParam0, iParam1, iParam2, iParam6, 0);
			if (iParam5 == 0)
			{
				iVar6 = func_201(iVar5, func_210(iParam0, 8, -1), iParam2, func_210(iParam0, 4, -1));
			}
		}
		else if (iParam1 == 2)
		{
			if (iParam5 == 0)
			{
				if (iParam8 == -1)
				{
					iParam8 = func_16(2143, iParam10, 0);
				}
				if (iParam9 == -1)
				{
					iParam9 = func_16(2150, iParam10, 0);
				}
				ped::_set_ped_hair_color(iParam0, iParam8, iParam9);
			}
			if (iParam7 == 0)
			{
				func_158(iParam0, iParam2, iParam10, iParam11);
			}
		}
		else if (iParam1 == 8)
		{
			func_205(iParam0, iParam1, iParam2, iParam6, 0);
			iVar86 = func_95(iParam0, 11);
			if (func_197(iVar5, iVar86))
			{
				iVar87 = func_196(iVar5, iParam2, Global_69311[1 /*14*/].f_4);
				func_192(iVar5, iVar87);
			}
			if (iParam5 == 0)
			{
				iVar6 = func_201(iVar5, iParam2, func_95(iParam0, 11), func_95(iParam0, 4));
			}
		}
		else if (iParam1 == 9)
		{
			if (iParam2 >= 1 && iParam2 <= 41)
			{
				iVar88 = func_95(iParam0, 7);
				if (!func_155(iVar5, iVar88, 9, -99, -99, -99, iParam0, 0, iParam2, -99, -99, -99))
				{
					ped::set_ped_component_variation(iParam0, func_25(7), 0, 0, 0);
				}
			}
		}
		else if (iParam1 == 1)
		{
			if (((iVar5 == joaat("mp_m_freemode_01") && iParam2 >= 26) && dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -921710083, 0)) || ((iVar5 == joaat("mp_f_freemode_01") && iParam2 >= 26) && dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -921710083, 0)))
			{
				iVar89 = func_16(2090, iParam10, 0);
				iVar90 = func_16(2091, iParam10, 0);
				iVar91 = func_16(2092, iParam10, 0);
				fVar92 = func_154(135, iParam10);
				if (iVar5 == joaat("mp_m_freemode_01"))
				{
					ped::set_ped_head_blend_data(iParam0, 0, 0, 0, iVar89, iVar90, iVar91, 0f, fVar92, 0f, 0);
				}
				else if (iVar5 == joaat("mp_f_freemode_01"))
				{
					ped::set_ped_head_blend_data(iParam0, 21, 0, 0, iVar89, iVar90, iVar91, 0f, fVar92, 0f, 0);
				}
				iVar93 = 0;
				while (iVar93 < 20)
				{
					ped::_set_ped_face_feature(iParam0, iVar93, 0f);
					iVar93++;
				}
			}
			else
			{
				func_138(iParam0, Global_69309);
			}
			iVar94 = dlc1::get_hash_name_for_component(iParam0, 1, ped::get_ped_drawable_variation(iParam0, 1), ped::get_ped_texture_variation(iParam0, 1));
			iVar95 = dlc1::get_hash_name_for_component(iParam0, 1, Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4);
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar94, 838607662, 0))
			{
				if (!dlc1::_0x341DE7ED1D2A1BFD(iVar95, 838607662, 0))
				{
					iVar96 = func_95(iParam0, 1);
					iVar97 = 0;
					while (iVar97 < 9)
					{
						iVar3 = func_203(iParam0, iVar5, iParam1, iVar96, 14, iVar97);
						iVar98 = func_97(iParam0, iVar97);
						if (iVar3 == iVar98)
						{
							ped::clear_ped_prop(iParam0, iVar97);
						}
						iVar97++;
					}
				}
			}
		}
		else if (iParam1 == 4)
		{
			iVar99 = func_95(iParam0, 11);
			iVar100 = func_95(iParam0, 8);
			if (iVar5 == joaat("mp_m_freemode_01"))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(func_104(iVar5, iVar99, 11, 3), -1719338724, 0))
				{
					if (!func_194(iVar5, iParam2, func_196(iVar5, iVar100, 0)))
					{
						func_112(iParam0, 8, 240, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
						Global_69311[1 /*14*/] = { func_216(iVar5, iParam1, iParam2) };
					}
				}
			}
			else if (iVar5 == joaat("mp_f_freemode_01"))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(func_104(iVar5, iVar99, 11, 4), -1719338724, 0))
				{
					if (!func_194(iVar5, iParam2, func_196(iVar5, iVar100, 0)))
					{
						func_112(iParam0, 8, 78, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
						Global_69311[1 /*14*/] = { func_216(iVar5, iParam1, iParam2) };
					}
				}
			}
			if (iParam5 == 0)
			{
				iVar6 = func_201(iVar5, func_95(iParam0, 8), func_95(iParam0, 11), iParam2);
			}
			iVar101 = dlc1::get_hash_name_for_component(iParam0, 3, ped::get_ped_drawable_variation(iParam0, 3), 0);
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar101, -356646862, 0))
			{
				iVar102 = func_201(iVar5, iVar100, iVar99, iParam2);
				if (iVar102 == -99)
				{
					iVar102 = func_203(iParam0, iVar5, 11, iVar99, 3, 0);
				}
				switch (iVar101)
				{
					case 1165919867:
					case 1606204151:
					case 1774276352:
					case 1934254610:
					case 980775017:
					case 399321881:
						iVar102 = 11;
						iVar103 = func_104(iVar5, iParam2, 11, 4);
						if (!dlc1::_0x341DE7ED1D2A1BFD(iVar103, -530089825, 0))
						{
							iVar102 = -99;
						}
						break;
				}
				if (iVar102 != -99)
				{
					iVar104 = iVar102;
					iVar105 = 0;
					while (iVar105 < 15)
					{
						if (func_200(iVar5, iVar104, iVar105) == iVar101)
						{
							iVar11 = iVar105;
							iVar12 = ped::get_ped_texture_variation(iParam0, 3);
						}
						iVar105++;
					}
				}
			}
		}
		if (iParam4 == -1)
		{
			ped::set_ped_component_variation(iParam0, func_25(iParam1), Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_25(iParam1)));
		}
		else
		{
			ped::set_ped_component_variation(iParam0, func_25(iParam1), Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4, iParam4);
		}
		if (iParam5 == 0)
		{
			if (Global_69310 == 1)
			{
				iVar2 = 0;
				while (iVar2 < 15)
				{
					iVar3 = func_203(iParam0, iVar5, iParam1, iParam2, iVar2, 0);
					if (iVar3 != -99)
					{
						func_112(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0);
						if (iVar2 == 3)
						{
							switch (Global_2621444)
							{
								case 1165919867:
								case 1606204151:
								case 1774276352:
								case 1934254610:
								case 980775017:
								case 399321881:
									iVar11 = -1;
									break;
							}
						}
						else if (iVar2 == 8)
						{
							if (iVar6 != -99)
							{
								iVar6 = func_201(iVar5, iVar3, func_95(iParam0, 11), func_95(iParam0, 4));
							}
						}
					}
					iVar2++;
				}
			}
			if (iParam1 == 11 || iParam1 == 8)
			{
				if (func_137(iParam0))
				{
					iVar106 = func_136(iVar5, iParam1, iParam2);
					if (iVar106 > 0)
					{
						iVar106 = (iVar106 + ped::get_ped_texture_variation(iParam0, 9));
						if (!func_135(iParam0, 9, iVar106))
						{
							func_112(iParam0, 9, iVar106, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
						}
					}
					else
					{
						func_112(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
					}
					iVar8 = dlc1::get_hash_name_for_component(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), ped::get_ped_texture_variation(iParam0, 8));
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar8, 240476421, 8))
					{
						func_112(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
					}
				}
				iVar107 = func_16(2032, -1, 0);
				if (ped::get_ped_drawable_variation(iParam0, 5) != 0)
				{
					ped::set_ped_component_variation(iParam0, 5, func_132(iParam0, iVar107), func_131(iParam0, iVar107), func_130(iParam0, iVar107));
				}
				if (iParam0 == player::player_ped_id())
				{
					player::set_player_parachute_variation_override(player::player_id(), 5, func_132(player::player_ped_id(), iVar107), func_131(player::player_ped_id(), iVar107), 0);
					player::set_player_parachute_pack_tint_index(player::player_id(), func_130(player::player_ped_id(), iVar107));
					func_127(player::player_id(), iVar107);
				}
			}
			if (iParam1 == 7)
			{
				if ((iVar5 == joaat("mp_m_freemode_01") && iParam2 >= 92) || (iVar5 == joaat("mp_f_freemode_01") && iParam2 >= 55))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -319568873, 0))
					{
						func_112(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
					}
				}
			}
			if (iVar5 == joaat("mp_f_freemode_01") && (iParam1 == 11 || iParam1 == 4))
			{
				if (iParam1 == 11)
				{
					iVar108 = func_210(iParam0, 4, -1);
					iVar109 = iParam2;
				}
				else
				{
					iVar108 = iParam2;
					iVar109 = func_210(iParam0, 11, -1);
				}
				if (func_126(iVar5, 11, iVar109))
				{
					if (!func_125(iVar5, 4, iVar108))
					{
						if (func_124(iVar5, 4, iVar108, &uVar110))
						{
							func_112(iParam0, 4, uVar110, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
						}
					}
				}
				else if (func_125(iVar5, 4, iVar108))
				{
					if (func_123(iVar5, 4, iVar108, &uVar110))
					{
						func_112(iParam0, 4, uVar110, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
					}
				}
			}
			if (iParam1 == 4)
			{
				iVar111 = ped::get_ped_drawable_variation(iParam0, 6);
				iVar112 = ped::get_ped_texture_variation(iParam0, 6);
				iVar113 = dlc1::get_hash_name_for_component(iParam0, 6, iVar111, iVar112);
				if (func_122(iVar5, iVar113))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar113, 1812005517, 0) != func_121(iVar5, iParam2))
					{
						iVar114 = dlc1::_0xC17AD0E5752BECDA(iVar113);
						iVar115 = 0;
						while (iVar115 < iVar114)
						{
							dlc1::get_variant_component(iVar113, iVar115, &iVar116, &uVar117, &iVar118);
							if (iVar118 == 6)
							{
								if (iVar116 != 0 && iVar116 != 1849449579)
								{
									if (iVar5 == joaat("mp_m_freemode_01"))
									{
										func_112(iParam0, 6, func_84(iVar5, iVar116, 6, 3), 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
									}
									else if (iVar5 == joaat("mp_f_freemode_01"))
									{
										func_112(iParam0, 6, func_84(iVar5, iVar116, 6, 4), 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
									}
								}
							}
							iVar115++;
						}
					}
				}
			}
			if (iParam1 == 11 || iParam1 == 1)
			{
				func_119(iParam0);
				iVar119 = ped::get_ped_drawable_variation(iParam0, 1);
				iVar120 = ped::get_ped_texture_variation(iParam0, 1);
				iVar121 = dlc1::get_hash_name_for_component(iParam0, 1, iVar119, iVar120);
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar121, 838607662, 0))
				{
					iVar3 = func_203(iParam0, iVar5, iParam1, iParam2, 14, 0);
					if (iVar3 != -99)
					{
						func_112(iParam0, 14, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					}
					iVar3 = func_203(iParam0, iVar5, iParam1, iParam2, 14, 1);
					if (iVar3 != -99)
					{
						func_112(iParam0, 14, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					}
				}
			}
		}
	}
	if (iParam1 != 2)
	{
		if (func_113(iParam0, &uVar4))
		{
			func_112(iParam0, 2, uVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0);
		}
	}
	if (iVar6 != -99)
	{
		func_112(iParam0, 3, iVar6, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
	}
	if (iVar9 != -99)
	{
		func_112(iParam0, 8, iVar9, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
	}
	if (iVar7 != -99)
	{
		func_112(iParam0, 1, iVar7, 0, -1, 0, 0, 0, -1, -1, -1, 0);
	}
	if (iVar11 != -1)
	{
		iVar122 = func_200(iVar5, ped::get_ped_drawable_variation(iParam0, 3), iVar11);
		if (iVar122 != -1)
		{
			if (iVar5 == joaat("mp_m_freemode_01"))
			{
				iVar10 = func_84(iVar5, iVar122, 3, 3);
			}
			else if (iVar5 == joaat("mp_f_freemode_01"))
			{
				iVar10 = func_84(iVar5, iVar122, 3, 4);
			}
			if (iVar10 != -99)
			{
				iVar10 = (iVar10 + iVar12);
				func_112(iParam0, 3, iVar10, 0, iParam4, 0, 0, 0, -1, -1, -1, 0);
			}
		}
	}
	Global_69310 = (Global_69310 - 1);
	return true;
}

bool func_113(int iParam0, var uParam1)//Position - 0x1C256
{
	int iVar0;
	int iVar1;
	
	*uParam1 = func_210(player::player_ped_id(), 2, -1);
	if (func_16(746, Global_69309, 0) != -99 && func_116())
	{
		if (func_115() == 4)
		{
			return true;
		}
		if (func_16(746, Global_69309, 0) == 0 && func_16(747, Global_69309, 0) == 0)
		{
			if (func_114(161, Global_69309))
			{
				if (func_16(2043, Global_69309, 0) == 0)
				{
					return false;
				}
			}
			else if (func_16(745, Global_69309, 0) == 0)
			{
				return false;
			}
		}
		iVar0 = func_16(746, Global_69309, 0);
		iVar1 = func_16(747, Global_69309, 0);
		if (!func_135(iParam0, iVar1, iVar0))
		{
			if (func_114(161, Global_69309))
			{
				*uParam1 = func_16(2043, Global_69309, 0);
			}
			else
			{
				*uParam1 = func_16(745, Global_69309, 0);
			}
			func_249(746, -99, Global_69309, 1);
			func_249(747, 2, Global_69309, 1);
			return true;
		}
	}
	return false;
}

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

var func_115()//Position - 0x1C394
{
	return Global_1315845;
}

bool func_116()//Position - 0x1C3A0
{
	if (func_118() && func_117(0))
	{
		return true;
	}
	return false;
}

var func_117(int iParam0)//Position - 0x1C3BE
{
	return Global_1312369[iParam0];
}

var func_118()//Position - 0x1C3CE
{
	return func_117(func_18() + 1);
}

void func_119(int iParam0)//Position - 0x1C3E0
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = entity::get_entity_model(iParam0);
	iVar1 = ped::get_ped_drawable_variation(iParam0, 11);
	iVar2 = ped::get_ped_texture_variation(iParam0, 11);
	iVar3 = ped::get_ped_drawable_variation(iParam0, 1);
	iVar4 = ped::get_ped_texture_variation(iParam0, 1);
	iVar5 = ped::get_ped_drawable_variation(iParam0, 8);
	iVar6 = ped::get_ped_texture_variation(iParam0, 8);
	iVar7 = dlc1::get_hash_name_for_component(iParam0, 11, iVar1, iVar2);
	iVar8 = dlc1::get_hash_name_for_component(iParam0, 1, iVar3, iVar4);
	iVar9 = dlc1::get_hash_name_for_component(iParam0, 8, iVar5, iVar6);
	if (dlc1::_0x341DE7ED1D2A1BFD(iVar7, -317649054, 0))
	{
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar8, 72391838, 0))
		{
			if (!dlc1::_0x341DE7ED1D2A1BFD(iVar7, -1889900289, 0))
			{
				iVar1 = (iVar1 - 1);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar7, -1889900289, 0))
		{
			iVar1++;
		}
		ped::set_ped_component_variation(iParam0, 11, iVar1, iVar2, ped::get_ped_palette_variation(iParam0, 11));
	}
	iVar10 = false;
	if (iVar0 == joaat("mp_m_freemode_01"))
	{
		if (!dlc1::_0x341DE7ED1D2A1BFD(iVar7, 572416369, 0))
		{
			iVar10 = true;
		}
		switch (iVar8)
		{
			case -486726551:
			case 219052171:
			case -1032068249:
			case -728660078:
			case -850691818:
			case -544072285:
			case -1811183977:
			case -1111303675:
			case 116190296:
			case -1282673470:
			case -936108522:
			case -671236695:
			case 1520550639:
			case 1816684092:
			case 2102823000:
			case -1866059977:
			case 1250403007:
			case 476038764:
			case 1863871456:
			case 351755390:
			case 1058844872:
			case 1549134650:
			case 1317097361:
			case -829567064:
			case -130604290:
			case -380009149:
			case 596212130:
			case 2140942786:
			case 1901696317:
			case -1797925843:
			case 790890703:
			case 1633873228:
			case 1272234544:
			case -672409000:
			case -1976713507:
			case -1902280196:
			case -115943475:
			case 1684425644:
			case 1983115079:
				iVar10 = true;
				break;
		}
	}
	else
	{
		if (!dlc1::_0x341DE7ED1D2A1BFD(iVar7, -196114988, 0))
		{
			iVar10 = true;
		}
		switch (iVar8)
		{
			case -1615510302:
			case 1527692182:
			case -2083484391:
			case -1372200477:
			case 761684042:
			case 534496565:
			case 303671729:
			case 39193130:
			case -162598372:
			case -393062749:
			case 2063387500:
			case 1633785910:
			case -874910415:
			case -1240415841:
			case 4970004:
			case -1695478944:
			case -450420789:
			case 257455149:
			case 1098963073:
			case -204554982:
			case 1027252245:
			case 1482249810:
			case 1657236270:
			case 633729300:
			case 461560974:
			case 39856713:
			case -130673163:
			case 1595499458:
			case 1424510816:
			case -1686217589:
			case 415037286:
			case 1095714954:
			case -1384675744:
			case -603364477:
			case 423419373:
			case -945505606:
			case -188672778:
			case 578089053:
			case 1418122368:
			case 39432231:
			case 998548092:
			case -539458143:
			case 1285512993:
			case 1384673675:
			case 207316274:
			case 924498608:
			case 1626705513:
			case -1951407139:
			case 1109577920:
			case 1943254053:
			case -706250677:
			case -933962458:
			case 2065187502:
			case 2143125494:
			case -728857530:
			case 113895612:
			case -106672527:
			case -1674341487:
			case -1426640612:
			case -1616110970:
			case -825558845:
			case -1062773636:
			case 1680712586:
			case 731446975:
			case -1441694810:
			case 1076144086:
			case 1291534723:
			case 1653763249:
			case -402884741:
			case 1982600156:
			case -1955185040:
			case -1722820061:
			case 519431533:
			case 1338441322:
			case -97470603:
			case -1293080337:
			case -1531999116:
			case 762322431:
			case 1318477899:
			case 199940853:
			case 1034403438:
			case 1715572641:
			case -2013146335:
			case 1085654154:
			case 962496867:
			case 1611716295:
			case 637461160:
			case -1137111266:
			case 316882033:
			case 590699797:
			case -385914710:
			case -1897876374:
			case -861786128:
			case -633615581:
			case -1298728310:
			case 2019526172:
			case -156630377:
			case 99852586:
			case 1543589216:
			case 1783097837:
			case -1876706754:
			case -1647782520:
			case -1394117691:
			case 977702533:
			case -670092377:
			case -908093624:
			case 1219695857:
			case 1919117393:
			case -534990310:
			case 445654672:
			case 329262298:
			case 22970455:
			case -476401343:
			case -706275878:
			case 1876083388:
			case -1114385357:
			case -840010097:
			case -2048003518:
			case 286623891:
			case 1792195596:
			case 1992938490:
			case -1364343871:
			case 721974080:
			case -45508669:
			case 1998385862:
			case 1222776401:
				iVar10 = true;
				break;
			}
	}
	if (iVar10)
	{
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1889900289, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1569775397, 0))
		{
			if (iVar0 == joaat("mp_m_freemode_01"))
			{
				iVar5 = 15;
				iVar6 = 0;
			}
			else
			{
				iVar5 = 14;
				iVar6 = 0;
			}
		}
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iVar8, -1409448021, 0))
	{
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1569775397, 0))
		{
			iVar5++;
		}
		else
		{
			iVar5 = func_120(iParam0, 1);
			iVar6 = iVar2;
		}
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1889900289, 0))
	{
		iVar5 = (iVar5 - 1);
	}
	else
	{
		iVar5 = func_120(iParam0, 0);
		iVar6 = iVar2;
	}
	ped::set_ped_component_variation(iParam0, 8, iVar5, iVar6, ped::get_ped_palette_variation(iParam0, 8));
}

var func_120(int iParam0, int iParam1)//Position - 0x1C995
{
	struct<4> Var0;
	int iVar17;
	
	iVar17 = entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01");
	Var0.f_3 = -1;
	if (iVar17)
	{
		if (iParam1)
		{
			dlc1::get_shop_ped_component(-367850957, &Var0);
		}
		else
		{
			dlc1::get_shop_ped_component(1241116144, &Var0);
		}
	}
	else if (iParam1)
	{
		dlc1::get_shop_ped_component(555191698, &Var0);
	}
	else
	{
		dlc1::get_shop_ped_component(-972757995, &Var0);
	}
	return Var0.f_3;
}

int func_121(int iParam0, int iParam1)//Position - 0x1C9F8
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = -1;
	iVar1 = -1;
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			if (iParam1 >= 256)
			{
				iVar0 = func_104(iParam0, iParam1, 4, 3);
				iVar1 = func_195(iVar0);
			}
			iVar2 = 1;
			if (((((((((((((iParam1 >= 32 && iParam1 <= 47) || (iParam1 >= 64 && iParam1 <= 79)) || (iParam1 >= 96 && iParam1 <= 111)) || (iParam1 >= 192 && iParam1 <= 207)) || (iParam1 >= 224 && iParam1 <= 239)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar1 == 2) || iVar1 == 4) || iVar1 == 6) || iVar1 == 12) || iVar1 == 14) || iVar1 == 15) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 320460654, 0))
			{
				iVar2 = 0;
			}
			switch (iVar0)
			{
				case -439764935:
				case 1858824227:
				case -44268217:
				case 301706885:
				case 1283072893:
				case -1590178565:
				case 1995307108:
				case 1029014836:
				case -365568266:
				case -138446327:
				case -2034722819:
				case -1219513062:
				case 153704652:
				case 356276239:
				case 586511233:
				case 1558996842:
				case 1183988406:
				case 1000678684:
				case 761792674:
				case -145679239:
				case 686423978:
				case -763407658:
				case 74266289:
				case 987390769:
				case 1591372991:
				case 1834027448:
				case 913054691:
				case 1142372153:
				case -1698011990:
				case -1443101939:
				case 2133699953:
				case -1924511318:
				case -475531676:
				case -237137197:
				case 754461254:
				case -1155840382:
				case 629180074:
				case 859251223:
				case 1610316715:
				case 901392169:
				case -92983136:
				case 1346362420:
				case 485782942:
				case 312004063:
				case 6695290:
				case 1724446270:
				case -448105673:
				case -611098679:
				case -1111088081:
				case -1406369540:
				case -1912159043:
				case 2076516410:
				case 1919618438:
				case 45227112:
				case -2129094253:
				case -421370587:
				case -675363106:
					iVar2 = 0;
					break;
			}
			return iVar2;
			break;
		
		case joaat("mp_f_freemode_01"):
			if (iParam1 >= 256)
			{
				iVar0 = func_104(iParam0, iParam1, 4, 4);
				iVar1 = func_195(iVar0);
			}
			if (((((((((((((((((((((((((iParam1 >= 16 && iParam1 <= 31) || (iParam1 >= 48 && iParam1 <= 63)) || (iParam1 >= 64 && iParam1 <= 79)) || (iParam1 >= 96 && iParam1 <= 111)) || iVar1 == 1) || iVar1 == 3) || iVar1 == 4) || iVar1 == 6) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1863955539, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2106216756, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -761463976, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1127835965, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1207283343, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -849839091, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2088146832, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1446333198, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -430330349, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1103045158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1055526375, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2020757158, 0))
			{
				return 1;
			}
			break;
	}
	return 0;
}

bool func_122(int iParam0, int iParam1)//Position - 0x1CE41
{
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			if (dlc1::_0x341DE7ED1D2A1BFD(iParam1, -364248070, 0))
			{
				return true;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			if (dlc1::_0x341DE7ED1D2A1BFD(iParam1, -364248070, 0))
			{
				return true;
			}
			break;
	}
	return false;
}

bool func_123(int iParam0, int iParam1, int iParam2, var uParam3)//Position - 0x1CE89
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	
	switch (iParam0)
	{
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 4:
					if (iParam2 >= 256)
					{
						iVar0 = func_104(iParam0, iParam2, iParam1, 4);
						if (iVar0 != -1)
						{
							iVar1 = dlc1::_0xC17AD0E5752BECDA(iVar0);
							iVar2 = 0;
							while (iVar2 < iVar1)
							{
								dlc1::get_variant_component(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
								if (iVar5 == 4)
								{
									if (iVar3 != 0 && iVar3 != 1849449579)
									{
										if (!dlc1::_0x341DE7ED1D2A1BFD(iVar3, -1100807313, 0))
										{
											*uParam3 = func_84(iParam0, iVar3, iParam1, 4);
											return true;
										}
									}
								}
								iVar2++;
							}
						}
					}
					break;
			}
			break;
	}
	return false;
}

bool func_124(int iParam0, int iParam1, int iParam2, var uParam3)//Position - 0x1CF32
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	
	switch (iParam0)
	{
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 4:
					if (iParam2 >= 256)
					{
						iVar0 = func_104(iParam0, iParam2, iParam1, 4);
						if (iVar0 != -1)
						{
							iVar1 = dlc1::_0xC17AD0E5752BECDA(iVar0);
							iVar2 = 0;
							while (iVar2 < iVar1)
							{
								dlc1::get_variant_component(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
								if (iVar5 == 4)
								{
									if (iVar3 != 0 && iVar3 != 1849449579)
									{
										if (dlc1::_0x341DE7ED1D2A1BFD(iVar3, -1100807313, 0))
										{
											*uParam3 = func_84(iParam0, iVar3, iParam1, 4);
											return true;
										}
									}
								}
								iVar2++;
							}
						}
					}
					break;
			}
			break;
	}
	return false;
}

bool func_125(int iParam0, int iParam1, int iParam2)//Position - 0x1CFDA
{
	switch (iParam0)
	{
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 4:
					if (iParam2 >= 256)
					{
						if (dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam2, 4, 4), -1100807313, 0))
						{
							return true;
						}
					}
					break;
			}
			break;
	}
	return false;
}

int func_126(int iParam0, int iParam1, int iParam2)//Position - 0x1D026
{
	switch (iParam0)
	{
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 11:
					if (iParam2 >= 256)
					{
						return dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam2, 11, 4), -530089825, 0);
					}
					break;
			}
			break;
	}
	return false;
}

void func_127(int iParam0, int iParam1)//Position - 0x1D06F
{
	if (func_129())
	{
		if (iParam1 > 46)
		{
			player::set_player_parachute_pack_model_override(iParam0, 1766664132);
		}
		else if (iParam1 > 26)
		{
			player::set_player_parachute_pack_model_override(iParam0, 1277738372);
		}
		else if (iParam1 > 0)
		{
			player::set_player_parachute_pack_model_override(iParam0, 1269440357);
		}
		else
		{
			player::clear_player_parachute_pack_model_override(iParam0);
		}
	}
	else if (func_128())
	{
		if (iParam1 > 0)
		{
			player::set_player_parachute_pack_model_override(iParam0, 1479397204);
		}
		else
		{
			player::clear_player_parachute_pack_model_override(iParam0);
		}
	}
}

int func_128()//Position - 0x1D0E6
{
	return dlc2::is_dlc_present(1428761799);
}

int func_129()//Position - 0x1D0F7
{
	return dlc2::is_dlc_present(-1005876368);
}

bool func_130(int iParam0, int iParam1)//Position - 0x1D108
{
	return false;
}

int func_131(int iParam0, int iParam1)//Position - 0x1D111
{
	if (iParam1 > 51)
	{
		return (iParam1 - 52);
	}
	if (iParam1 > 46)
	{
		return (iParam1 - 47);
	}
	if (iParam1 > 26)
	{
		return (iParam1 - 27);
	}
	if (iParam1 > 0)
	{
		return (iParam1 - 1);
	}
	return iParam1;
}

int func_132(int iParam0, int iParam1)//Position - 0x1D161
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	
	iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
	if (ped::get_ped_drawable_variation(iParam0, 9) != 0)
	{
		iVar1 = true;
	}
	iVar2 = entity::get_entity_model(iParam0);
	iVar3 = dlc1::get_hash_name_for_component(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), ped::get_ped_texture_variation(iParam0, 8));
	if (dlc1::_0x341DE7ED1D2A1BFD(iVar3, 240476421, 8))
	{
		if (iParam1 > 51)
		{
			return 51;
		}
		else if (iParam1 > 46)
		{
			return 51;
		}
		else if (iParam1 > 26)
		{
			return 50;
		}
		else if (iParam1 > 0)
		{
			return 49;
		}
		else
		{
			return 48;
		}
	}
	iVar4 = 0;
	if (iParam1 > 51 && iParam1 <= 61)
	{
		return iParam1;
	}
	else if (iParam1 > 46)
	{
		iVar4 = 30;
	}
	else if (iParam1 > 26)
	{
		iVar4 = 20;
	}
	else if (iParam1 > 0)
	{
		iVar4 = 9;
	}
	else
	{
		iVar4 = 0;
	}
	if (iVar0 > 15)
	{
		iVar5 = dlc1::get_hash_name_for_component(iParam0, 11, iVar0, ped::get_ped_texture_variation(iParam0, 11));
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 655081063, 0))
		{
			if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -530089825, 0))
		{
			if (iVar1)
			{
				return (6 + iVar4);
			}
			else
			{
				return (6 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -713698407, 0))
		{
			if (iParam1 > 46)
			{
				return 39;
			}
			else if (iParam1 > 26)
			{
				return 29;
			}
			else if (iParam1 > 0)
			{
				return 18;
			}
			else
			{
				return 19;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1882920022, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -317649054, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1536649085, 0))
		{
			iVar6 = func_134(iVar5, 0);
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				switch (iVar6)
				{
					case 0:
						return (2 + iVar4);
						break;
					
					case 2:
						if (iParam1 > 46)
						{
							return 39;
						}
						else if (iParam1 > 26)
						{
							return 29;
						}
						else if (iParam1 > 0)
						{
							return 18;
						}
						else
						{
							return 19;
						}
						break;
					
					default:
						iVar0 = func_195(iVar5);
						break;
				}
			}
			else
			{
				switch (iVar6)
				{
					case 2:
						return (7 + iVar4);
						break;
					
					default:
						iVar0 = func_195(iVar5);
						break;
					}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 248194463, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1347486026, 0))
			{
				return (3 + iVar4);
			}
			else
			{
				return (7 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 396458410, 0))
		{
			iVar7 = func_133(iVar5, 0);
			switch (iVar7)
			{
				case 4:
					if (iParam1 > 46)
					{
						return 39;
					}
					else if (iParam1 > 26)
					{
						return 28;
					}
					else if (iParam1 > 0)
					{
						return 17;
					}
					else
					{
						return 8;
					}
					break;
				
				case 14:
					if (iParam1 > 46)
					{
						return 39;
					}
					else if (iParam1 > 26)
					{
						return 29;
					}
					else if (iParam1 > 0)
					{
						return 18;
					}
					else
					{
						return 19;
					}
					break;
				
				default:
					iVar0 = func_195(iVar5);
					break;
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -779835469, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1119232689, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (1 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -2102859770, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (2 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1784133476, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (2 + iVar4);
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (1 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1607949555, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1976716889, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 2099109084, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (2 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1488441032, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iParam1 > 46)
				{
					return 39;
				}
				else if (iParam1 > 26)
				{
					return 29;
				}
				else if (iParam1 > 0)
				{
					return 18;
				}
				else
				{
					return 19;
				}
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1719167561, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1431529976, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1274099003, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1723403459, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 912543594, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (2 + iVar4);
			}
		}
		else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1086258388, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, 103539798, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, -994703884, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (6 + iVar4);
				}
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (7 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 2044466679, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iParam1 > 46)
				{
					return 39;
				}
				else if (iParam1 > 26)
				{
					return 29;
				}
				else if (iParam1 > 0)
				{
					return 18;
				}
				else
				{
					return 19;
				}
			}
			else if (iVar1)
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -2020757158, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1064262817, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else if (iVar1)
			{
				if (iParam1 > 51)
				{
					return 51;
				}
				else if (iParam1 > 46)
				{
					return 51;
				}
				else if (iParam1 > 26)
				{
					return 50;
				}
				else if (iParam1 > 0)
				{
					return 49;
				}
				else
				{
					return 48;
				}
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1419806467, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (7 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1053842259, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1358888880, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -441291342, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -747583185, 0))
		{
			if (iVar2 == joaat("mp_f_freemode_01"))
			{
				if (iVar1)
				{
					if (iParam1 > 51)
					{
						return 51;
					}
					else if (iParam1 > 46)
					{
						return 51;
					}
					else if (iParam1 > 26)
					{
						return 50;
					}
					else if (iParam1 > 0)
					{
						return 49;
					}
					else
					{
						return 48;
					}
				}
				else
				{
					return (2 + iVar4);
				}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1986415230, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -2088146832, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (6 + iVar4);
				}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -785939537, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -872449705, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 700658917, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1714969731, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 745826556, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1055526375, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 144417099, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 492620493, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (8 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -416620954, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -102825006, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else
			{
				return (7 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -733792105, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
			}
			else
			{
				return (4 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 137011325, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -641612092, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
			}
			else
			{
				return (6 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1351486939, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
			}
			else if (iVar1)
			{
				if (iParam1 > 51)
				{
					return 51;
				}
				else if (iParam1 > 46)
				{
					return 51;
				}
				else if (iParam1 > 26)
				{
					return 50;
				}
				else if (iParam1 > 0)
				{
					return 49;
				}
				else
				{
					return 48;
				}
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -2119756144, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1507532917, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				if (iParam1 > 51)
				{
					return 51;
				}
				else if (iParam1 > 46)
				{
					return 51;
				}
				else if (iParam1 > 26)
				{
					return 50;
				}
				else if (iParam1 > 0)
				{
					return 49;
				}
				else
				{
					return 48;
				}
			}
			else
			{
				return (7 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 947651647, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 1965569012, 0) && iVar2 == joaat("mp_f_freemode_01"))
		{
			if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (1 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 2026620439, 0) && iVar2 == joaat("mp_f_freemode_01"))
		{
			if (iVar1)
			{
				return (8 + iVar4);
			}
			else
			{
				return (2 + iVar4);
			}
		}
		else if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, -1410897066, 0))
		{
			if (iVar2 == joaat("mp_m_freemode_01"))
			{
				return (3 + iVar4);
			}
			else
			{
				return (8 + iVar4);
			}
		}
		else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar5, -2017999390, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar5, -826135203, 0))
		{
			return (7 + iVar4);
		}
		else
		{
			iVar0 = func_195(iVar5);
		}
	}
	if (iVar2 == joaat("mp_m_freemode_01"))
	{
		switch (iVar0)
		{
			case 0:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 1:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 2:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 3:
				if (iVar1)
				{
					return (3 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
				break;
			
			case 4:
				if (iVar1)
				{
					return (3 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
				break;
			
			case 5:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 6:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
				break;
			
			case 7:
				if (iVar1)
				{
					return (3 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
				break;
			
			case 8:
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 9:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 10:
				if (iVar1)
				{
					return (3 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
				break;
			
			case 11:
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
				break;
			
			case 12:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 13:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (2 + iVar4);
				}
				break;
			
			case 14:
				if (iVar1)
				{
					return (6 + iVar4);
				}
				else
				{
					return (6 + iVar4);
				}
				break;
			
			case 15:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (5 + iVar4);
				}
				break;
		}
	}
	else
	{
		switch (iVar0)
		{
			case 0:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 1:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 2:
				if (iVar1)
				{
					return (4 + iVar4);
				}
				else
				{
					return (3 + iVar4);
				}
				break;
			
			case 3:
				if (iVar1)
				{
					return (6 + iVar4);
				}
				else
				{
					return (5 + iVar4);
				}
				break;
			
			case 4:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 5:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 6:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 7:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 8:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 9:
				return (2 + iVar4);
				break;
			
			case 10:
				if (iVar1)
				{
					return (7 + iVar4);
				}
				else
				{
					return (7 + iVar4);
				}
				break;
			
			case 11:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 12:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 13:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			
			case 14:
				if (iVar1)
				{
					return (8 + iVar4);
				}
				else
				{
					return (4 + iVar4);
				}
				break;
			
			case 15:
				if (iVar1)
				{
					return (2 + iVar4);
				}
				else
				{
					return (1 + iVar4);
				}
				break;
			}
	}
	return (1 + iVar4);
	return 0;
}

int func_133(int iParam0, int iParam1)//Position - 0x1E323
{
	int iVar0;
	
	iVar0 = -1;
	if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 140732128, iParam1))
	{
		iVar0 = 0;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1863955539, iParam1))
	{
		iVar0 = 1;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 2106216756, iParam1))
	{
		iVar0 = 2;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -761463976, iParam1))
	{
		iVar0 = 3;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1627756587, iParam1))
	{
		iVar0 = 4;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 684992453, iParam1))
	{
		iVar0 = 5;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 916636514, iParam1))
	{
		iVar0 = 6;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1939378450, iParam1))
	{
		iVar0 = 7;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 441715397, iParam1))
	{
		iVar0 = 8;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 264959411, iParam1))
	{
		iVar0 = 9;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1127835965, iParam1))
	{
		iVar0 = 10;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -820724897, iParam1))
	{
		iVar0 = 11;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 153792394, iParam1))
	{
		iVar0 = 12;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -672871169, iParam1))
	{
		iVar0 = 13;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 572416369, iParam1))
	{
		iVar0 = 14;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -196114988, iParam1))
	{
		iVar0 = 15;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1322269404, iParam1))
	{
		iVar0 = 16;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 548036233, iParam1))
	{
		iVar0 = 17;
	}
	return iVar0;
}

int func_134(int iParam0, int iParam1)//Position - 0x1E4C3
{
	int iVar0;
	
	iVar0 = -1;
	if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -870074461, iParam1))
	{
		iVar0 = 0;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1174924468, iParam1))
	{
		iVar0 = 1;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -868698159, iParam1))
	{
		iVar0 = 2;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1177480446, iParam1))
	{
		iVar0 = 3;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1347486026, iParam1))
	{
		iVar0 = 4;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1655154167, iParam1))
	{
		iVar0 = 5;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -2105858993, iParam1))
	{
		iVar0 = 6;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1893564692, iParam1))
	{
		iVar0 = 7;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1710451520, iParam1))
	{
		iVar0 = 8;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1416808511, iParam1))
	{
		iVar0 = 9;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1641506460, iParam1))
	{
		iVar0 = 10;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 699233865, iParam1))
	{
		iVar0 = 11;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 393400788, iParam1))
	{
		iVar0 = 12;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 216120498, iParam1))
	{
		iVar0 = 13;
	}
	return iVar0;
}

int func_135(int iParam0, int iParam1, int iParam2)//Position - 0x1E607
{
	int iVar0;
	int iVar1;
	var uVar2;
	var uVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	var uVar8;
	var uVar24;
	int iVar34;
	var uVar35;
	var uVar45;
	
	if (ped::is_ped_injured(iParam0))
	{
		return 0;
	}
	iVar0 = entity::get_entity_model(iParam0);
	Global_69311[1 /*14*/] = { func_216(iVar0, iParam1, iParam2) };
	uVar2 = Global_2621444;
	uVar3 = Global_2621445;
	if (!gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 0))
	{
		return 0;
	}
	if (iParam1 == 12)
	{
		uVar8 = { func_88(iVar0, iParam2) };
		iVar7 = 0;
		while (iVar7 < 7)
		{
			switch (iVar7)
			{
				case 0:
					iVar4 = 1;
					break;
				
				case 1:
					iVar4 = 4;
					break;
				
				case 2:
					iVar4 = 6;
					break;
				
				case 3:
					iVar4 = 7;
					break;
				
				case 4:
					iVar4 = 8;
					break;
				
				case 5:
					iVar4 = 11;
					break;
				
				case 6:
					iVar4 = 13;
					break;
			}
			if (uVar8[iVar4] != -99)
			{
				if (!func_135(iParam0, iVar4, uVar8[iVar4]))
				{
					Global_2621444 = uVar2;
					Global_2621445 = uVar3;
					return 0;
					if (iVar4 == 13)
					{
						uVar24 = { func_82(iVar0, uVar8[iVar4]) };
						iVar5 = 0;
						while (iVar5 <= 8)
						{
							if (!func_135(iParam0, 14, uVar24[iVar5]))
							{
								iVar6 = 0;
								while (iVar6 <= 19)
								{
									Global_69311[2 /*14*/] = { func_216(iVar0, 14, iVar6) };
									if (Global_69311[2 /*14*/].f_12 == iVar5)
									{
										if (func_135(iParam0, 14, iVar6))
										{
											if (!func_102(iVar0, iParam2, 14, iVar6, &uVar8, &(Global_69311[2 /*14*/])))
											{
												Global_2621444 = uVar2;
												Global_2621445 = uVar3;
												return 0;
											}
										}
									}
									iVar6++;
								}
							}
							iVar5++;
						}
					}
					else
					{
						iVar1 = func_95(iParam0, iVar4);
						Global_69311[2 /*14*/] = { func_216(iVar0, iVar4, iVar1) };
						if (!func_102(iVar0, iParam2, iVar4, iVar1, &uVar8, &(Global_69311[2 /*14*/])))
						{
							Global_2621444 = uVar2;
							Global_2621445 = uVar3;
							return 0;
						}
					}
				}
			}
			iVar7++;
		}
		if (uVar8[10] != 0 && uVar8[10] != 1849449579)
		{
			if (func_16(1749, Global_69309, 0) != uVar8[10])
			{
				Global_2621444 = uVar2;
				Global_2621445 = uVar3;
				return 0;
			}
		}
		Global_2621444 = uVar2;
		Global_2621445 = uVar3;
		return 1;
	}
	else if (iParam1 == 13)
	{
		uVar35 = { func_82(iVar0, iParam2) };
		iVar34 = 0;
		while (iVar34 <= 8)
		{
			if (!func_135(iParam0, 14, uVar35[iVar34]))
			{
				return 0;
			}
			iVar34++;
		}
		return 1;
	}
	else if (iParam1 == 14)
	{
		if (ped::get_ped_prop_index(iParam0, Global_69311[1 /*14*/].f_12) == Global_69311[1 /*14*/].f_3 && (ped::get_ped_prop_texture_index(iParam0, Global_69311[1 /*14*/].f_12) == Global_69311[1 /*14*/].f_4 || Global_69311[1 /*14*/].f_3 == -1))
		{
			return 1;
		}
	}
	else
	{
		if (Global_69311[1 /*14*/].f_3 == ped::get_ped_drawable_variation(iParam0, func_25(iParam1)) && Global_69311[1 /*14*/].f_4 == ped::get_ped_texture_variation(iParam0, func_25(iParam1)))
		{
			return 1;
		}
		if (iParam1 == 4)
		{
			if (func_126(iVar0, 11, func_95(iParam0, 11)))
			{
				if (func_124(iVar0, 4, iParam2, &uVar45))
				{
					return func_135(iParam0, 4, uVar45);
				}
			}
			else if (func_123(iVar0, 4, iParam2, &uVar45))
			{
				return func_135(iParam0, 4, uVar45);
			}
		}
	}
	return 0;
}

int func_136(int iParam0, int iParam1, int iParam2)//Position - 0x1E978
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	var uVar10;
	int iVar11;
	
	if (iParam1 == 11)
	{
		if (iParam0 == joaat("mp_m_freemode_01"))
		{
			if (((((iParam2 >= 0 && iParam2 <= 15) || (iParam2 >= 16 && iParam2 <= 31)) || (iParam2 >= 80 && iParam2 <= 95)) || (iParam2 >= 140 && iParam2 <= 155)) || (iParam2 >= 188 && iParam2 <= 203))
			{
				return 1;
			}
			else if (iParam2 >= 32 && iParam2 <= 47)
			{
				return 6;
			}
			else if (((iParam2 >= 48 && iParam2 <= 63) || (iParam2 >= 64 && iParam2 <= 79)) || (iParam2 >= 108 && iParam2 <= 123))
			{
				return 11;
			}
			else if (iParam2 >= 96 && iParam2 <= 107)
			{
				return 41;
			}
			else if (iParam2 >= 156 && iParam2 <= 171)
			{
				return 36;
			}
			else if (iParam2 >= 172 && iParam2 <= 187)
			{
				return 31;
			}
			else if (iParam2 >= 204 && iParam2 <= 219)
			{
				return 16;
			}
			else if ((iParam2 >= 220 && iParam2 <= 235) || (iParam2 >= 124 && iParam2 <= 139))
			{
				return 26;
			}
			else if (iParam2 == 236)
			{
				return 21;
			}
			else if (iParam2 >= 237)
			{
				iVar0 = func_104(iParam0, iParam2, 11, 3);
				if (iVar0 != -1)
				{
					iVar1 = dlc1::_0xC17AD0E5752BECDA(iVar0);
					iVar2 = 0;
					while (iVar2 < iVar1)
					{
						dlc1::get_variant_component(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
						if (iVar5 == 9)
						{
							if (iVar3 != 0 && iVar3 != 1849449579)
							{
								return func_84(iParam0, iVar3, 9, 3);
							}
							else
							{
								return uVar4;
							}
						}
						iVar2++;
					}
				}
				return -99;
			}
		}
		else if (iParam0 == joaat("mp_f_freemode_01"))
		{
			if ((((((iParam2 >= 0 && iParam2 <= 15) || (iParam2 >= 64 && iParam2 <= 79)) || (iParam2 >= 176 && iParam2 <= 191)) || (iParam2 >= 192 && iParam2 <= 207)) || (iParam2 >= 208 && iParam2 <= 223)) || (iParam2 >= 240 && iParam2 <= 255))
			{
				return 1;
			}
			else if (((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 112 && iParam2 <= 127)) || (iParam2 >= 128 && iParam2 <= 143))
			{
				return 16;
			}
			else if (iParam2 >= 32 && iParam2 <= 47)
			{
				return 6;
			}
			else if (iParam2 >= 48 && iParam2 <= 63)
			{
				return 11;
			}
			else if ((iParam2 >= 96 && iParam2 <= 111) || (iParam2 >= 160 && iParam2 <= 175))
			{
				return 21;
			}
			else if (iParam2 >= 224 && iParam2 <= 239)
			{
				return 26;
			}
			else if (iParam2 >= 144 && iParam2 <= 159)
			{
				return 0;
			}
			else if (iParam2 >= 80 && iParam2 <= 95)
			{
				return 31;
			}
			else if (iParam2 >= 256)
			{
				iVar6 = func_104(iParam0, iParam2, 11, 4);
				if (iVar6 != -1)
				{
					iVar7 = dlc1::_0xC17AD0E5752BECDA(iVar6);
					iVar8 = 0;
					while (iVar8 < iVar7)
					{
						dlc1::get_variant_component(iVar6, iVar8, &iVar9, &uVar10, &iVar11);
						if (iVar11 == 9)
						{
							if (iVar9 != 0 && iVar9 != 1849449579)
							{
								return func_84(iParam0, iVar9, 9, 4);
							}
							else
							{
								return uVar10;
							}
						}
						iVar8++;
					}
				}
				return -99;
			}
		}
	}
	return -99;
}

bool func_137(int iParam0)//Position - 0x1ED79
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = entity::get_entity_model(iParam0);
		if (iVar0 == joaat("mp_m_freemode_01"))
		{
			if (func_95(iParam0, 9) != 0)
			{
				return true;
			}
		}
		else if (iVar0 == joaat("mp_f_freemode_01"))
		{
			if (func_95(iParam0, 9) != 0)
			{
				return true;
			}
		}
	}
	return false;
}

void func_138(int iParam0, int iParam1)//Position - 0x1EDCB
{
	struct<10> Var0;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	float fVar16;
	float fVar17;
	float fVar18;
	int iVar19;
	int iVar20;
	
	if (!ped::has_ped_head_blend_finished(iParam0))
	{
	}
	ped::_get_ped_head_blend_data(iParam0, &Var0);
	iVar10 = func_16(2087, iParam1, 0);
	iVar11 = func_16(2088, iParam1, 0);
	iVar12 = func_16(2089, iParam1, 0);
	iVar13 = func_16(2090, iParam1, 0);
	iVar14 = func_16(2091, iParam1, 0);
	iVar15 = func_16(2092, iParam1, 0);
	fVar16 = func_154(134, iParam1);
	fVar17 = func_154(135, iParam1);
	fVar18 = func_154(136, iParam1);
	iVar19 = func_114(160, iParam1);
	if (((((((((Var0 != iVar10 || Var0.f_1 != iVar11) || Var0.f_2 != iVar12) || Var0.f_3 != iVar13) || Var0.f_4 != iVar14) || Var0.f_5 != iVar15) || Var0.f_6 != fVar16) || Var0.f_7 != fVar17) || Var0.f_8 != fVar18) || Var0.f_9 != iVar19)
	{
		ped::set_ped_head_blend_data(iParam0, iVar10, iVar11, iVar12, iVar13, iVar14, iVar15, fVar16, fVar17, fVar18, iVar19);
		iVar20 = func_16(2093, iParam1, 0);
		if (iVar20 > 0)
		{
			func_139(iParam0, iParam1, 0);
		}
	}
}

void func_139(int iParam0, int iParam1, int iParam2)//Position - 0x1EF0B
{
	int iVar0;
	int iVar1;
	int iVar2;
	float fVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	float fVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	iVar0 = 0;
	while (iVar0 < 20)
	{
		iVar1 = iVar0;
		iVar2 = func_153(iVar1);
		if (!iParam2)
		{
			fVar3 = func_154(iVar2, iParam1);
		}
		else
		{
			fVar3 = func_152(iVar2, iParam1);
		}
		ped::_set_ped_face_feature(iParam0, iVar1, fVar3);
		iVar0++;
	}
	iVar4 = 0;
	while (iVar4 < 13)
	{
		iVar5 = func_151(iVar4);
		iVar6 = func_150(iVar5);
		iVar7 = func_149(iVar5);
		if (iVar6 != -1 && iVar7 != -1)
		{
			if (!iParam2)
			{
				iVar10 = func_146(iVar6, iParam1, -1);
				fVar11 = func_154(iVar7, iParam1);
			}
			else
			{
				iVar10 = func_145(iVar6, iParam1);
				fVar11 = func_152(iVar7, iParam1);
			}
			ped::set_ped_head_overlay(iParam0, iVar5, iVar10, fVar11);
			iVar8 = func_144(iVar5);
			iVar9 = func_143(iVar5);
			if (iVar8 != -1)
			{
				if (!iParam2)
				{
					iVar13 = func_16(iVar8, iParam1, 0);
					iVar14 = func_16(iVar9, iParam1, 0);
				}
				else
				{
					iVar13 = func_142(iVar8, iParam1);
					iVar14 = func_142(iVar9, iParam1);
				}
				func_141(iVar13, &iVar12, &iVar15);
				ped::_set_ped_head_overlay_color(iParam0, iVar5, iVar15, iVar12, iVar14);
			}
		}
		iVar4++;
	}
	func_140(&iParam0, iParam1, iParam2);
}

void func_140(int iParam0, int iParam1, int iParam2)//Position - 0x1F03D
{
	float fVar0;
	
	if (!iParam2)
	{
		fVar0 = func_154(157, iParam1);
	}
	else
	{
		fVar0 = func_152(157, iParam1);
	}
	if (*iParam0 == player::player_ped_id())
	{
	}
	ped::_set_ped_eye_color(*iParam0, system::round(fVar0));
}

void func_141(int iParam0, var uParam1, var uParam2)//Position - 0x1F07C
{
	int iVar0;
	
	*uParam1 = system::shift_right(iParam0, 16);
	iVar0 = iParam0 & 65535;
	*uParam2 = iVar0;
}

int func_142(int iParam0, int iParam1)//Position - 0x1F09D
{
	int iVar0;
	var uVar1;
	
	iVar0 = Global_2469339[iParam0 /*5*/][func_17(iParam1)];
	if (ui::set_userids_uihidden(iVar0, &uVar1))
	{
		return uVar1;
	}
	return 0;
}

int func_143(int iParam0)//Position - 0x1F0C8
{
	switch (iParam0)
	{
		case 2:
			return 2151;
		
		case 1:
			return 2152;
		
		case 5:
			return 2153;
		
		case 8:
			return 2154;
		
		case 10:
			return 2149;
		
		default:
	}
	return -1;
}

int func_144(int iParam0)//Position - 0x1F114
{
	switch (iParam0)
	{
		case 2:
			return 2144;
		
		case 1:
			return 2145;
		
		case 5:
			return 2146;
		
		case 8:
			return 2147;
		
		case 10:
			return 2148;
		
		default:
	}
	return -1;
}

int func_145(int iParam0, int iParam1)//Position - 0x1F160
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 0;
	if (iParam1 == -1)
	{
		iParam1 = func_18();
	}
	iVar1 = 0;
	iVar2 = 0;
	if (iParam0 >= 384 && iParam0 < 457)
	{
		iVar1 = stats::_0x61E111E323419E07((iParam0 - 384), 0, 1, iParam1);
		iVar2 = ((iParam0 - 384) - stats::_0x94F12ABF9C79E339((iParam0 - 384)) * 8) * 8;
	}
	else if (iParam0 >= 457 && iParam0 < 513)
	{
		iVar1 = stats::_0x61E111E323419E07((iParam0 - 457), 1, 1, iParam1);
		iVar2 = ((iParam0 - 457) - stats::_0x94F12ABF9C79E339((iParam0 - 457)) * 8) * 8;
	}
	else if (iParam0 >= 1281 && iParam0 < 1305)
	{
		iVar1 = stats::_0x61E111E323419E07((iParam0 - 1281), 0, 0, 0);
		iVar2 = ((iParam0 - 1281) - stats::_0x94F12ABF9C79E339((iParam0 - 1281)) * 8) * 8;
	}
	else if (iParam0 >= 1305 && iParam0 < 1361)
	{
		iVar1 = stats::_0x61E111E323419E07((iParam0 - 1305), 1, 0, 0);
		iVar2 = ((iParam0 - 1305) - stats::_0x94F12ABF9C79E339((iParam0 - 1305)) * 8) * 8;
	}
	else if (iParam0 >= 1393 && iParam0 < 2919)
	{
		iVar1 = stats::_0xD16C2AD6B8E32854((iParam0 - 1393), 0, 1, iParam1);
		iVar2 = ((iParam0 - 1393) - stats::_0x94F12ABF9C79E339((iParam0 - 1393)) * 8) * 8;
	}
	else if (iParam0 >= 1361 && iParam0 < 1393)
	{
		iVar1 = stats::_0xD16C2AD6B8E32854((iParam0 - 1361), 0, 0, 0);
		iVar2 = ((iParam0 - 1361) - stats::_0x94F12ABF9C79E339((iParam0 - 1361)) * 8) * 8;
	}
	else if (iParam0 >= 3879 && iParam0 < 4143)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 3879), 0, 1, iParam1, "_NGPSTAT_INT");
		iVar2 = ((iParam0 - 3879) - stats::_0x94F12ABF9C79E339((iParam0 - 3879)) * 8) * 8;
	}
	else if (iParam0 >= 4143 && iParam0 < 4207)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4143), 0, 0, 0, "_MP_NGPSTAT_INT");
		iVar2 = ((iParam0 - 4143) - stats::_0x94F12ABF9C79E339((iParam0 - 4143)) * 8) * 8;
	}
	else if (iParam0 >= 4399 && iParam0 < 6028)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4399), 0, 1, iParam1, "_MP_LRPSTAT_INT");
		iVar2 = ((iParam0 - 4399) - stats::_0x94F12ABF9C79E339((iParam0 - 4399)) * 8) * 8;
	}
	else if (iParam0 >= 6413 && iParam0 < 7262)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 6413), 0, 1, iParam1, "_MP_APAPSTAT_INT");
		iVar2 = ((iParam0 - 6413) - stats::_0x94F12ABF9C79E339((iParam0 - 6413)) * 8) * 8;
	}
	else if (iParam0 >= 7262 && iParam0 < 7313)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7262), 0, 1, iParam1, "_MP_LR2PSTAT_INT");
		iVar2 = ((iParam0 - 7262) - stats::_0x94F12ABF9C79E339((iParam0 - 7262)) * 8) * 8;
	}
	else if (iParam0 >= 7641 && iParam0 < 7681)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7641), 0, 1, iParam1, "_NGDLCPSTAT_INT");
		iVar2 = ((iParam0 - 7641) - stats::_0x94F12ABF9C79E339((iParam0 - 7641)) * 8) * 8;
	}
	else if (iParam0 >= 7313 && iParam0 < 7321)
	{
		iVar1 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7313), 0, 0, 0, "_MP_NGDLCPSTAT_INT");
		iVar2 = ((iParam0 - 7313) - stats::_0x94F12ABF9C79E339((iParam0 - 7313)) * 8) * 8;
	}
	if (!ui::_0x90A6526CF0381030(iVar1, &iVar0, iVar2, 8))
	{
		iVar0 = 0;
	}
	if (iParam0 == 384)
	{
	}
	return iVar0;
}

int func_146(int iParam0, int iParam1, int iParam2)//Position - 0x1F4D4
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam1 == -1)
	{
		iParam1 = func_18();
	}
	iVar0 = 0;
	iVar1 = func_148(iParam0, iParam1);
	iVar2 = func_147(iParam0);
	if (0 != iVar1)
	{
		if (!stats::stat_get_masked_int(iVar1, &iVar0, iVar2, 8, iParam2))
		{
			iVar0 = 0;
		}
	}
	return iVar0;
}

int func_147(int iParam0)//Position - 0x1F51A
{
	int iVar0;
	
	iVar0 = 0;
	if (iParam0 >= 384 && iParam0 < 457)
	{
		iVar0 = ((iParam0 - 384) - stats::_0x94F12ABF9C79E339((iParam0 - 384)) * 8) * 8;
	}
	else if (iParam0 >= 457 && iParam0 < 513)
	{
		iVar0 = ((iParam0 - 457) - stats::_0x94F12ABF9C79E339((iParam0 - 457)) * 8) * 8;
	}
	else if (iParam0 >= 1281 && iParam0 < 1305)
	{
		iVar0 = ((iParam0 - 1281) - stats::_0x94F12ABF9C79E339((iParam0 - 1281)) * 8) * 8;
	}
	else if (iParam0 >= 1305 && iParam0 < 1361)
	{
		iVar0 = ((iParam0 - 1305) - stats::_0x94F12ABF9C79E339((iParam0 - 1305)) * 8) * 8;
	}
	else if (iParam0 >= 1361 && iParam0 < 1393)
	{
		iVar0 = ((iParam0 - 1361) - stats::_0x94F12ABF9C79E339((iParam0 - 1361)) * 8) * 8;
	}
	else if (iParam0 >= 1393 && iParam0 < 2919)
	{
		iVar0 = ((iParam0 - 1393) - stats::_0x94F12ABF9C79E339((iParam0 - 1393)) * 8) * 8;
	}
	else if (iParam0 >= 4143 && iParam0 < 4207)
	{
		iVar0 = ((iParam0 - 4143) - stats::_0x94F12ABF9C79E339((iParam0 - 4143)) * 8) * 8;
	}
	else if (iParam0 >= 3879 && iParam0 < 4143)
	{
		iVar0 = ((iParam0 - 3879) - stats::_0x94F12ABF9C79E339((iParam0 - 3879)) * 8) * 8;
	}
	else if (iParam0 >= 4399 && iParam0 < 6028)
	{
		iVar0 = ((iParam0 - 4399) - stats::_0x94F12ABF9C79E339((iParam0 - 4399)) * 8) * 8;
	}
	else if (iParam0 >= 6413 && iParam0 < 7262)
	{
		iVar0 = ((iParam0 - 6413) - stats::_0x94F12ABF9C79E339((iParam0 - 6413)) * 8) * 8;
	}
	else if (iParam0 >= 7262 && iParam0 < 7313)
	{
		iVar0 = ((iParam0 - 7262) - stats::_0x94F12ABF9C79E339((iParam0 - 7262)) * 8) * 8;
	}
	else if (iParam0 >= 7313 && iParam0 < 7321)
	{
		iVar0 = ((iParam0 - 7313) - stats::_0x94F12ABF9C79E339((iParam0 - 7313)) * 8) * 8;
	}
	else if (iParam0 >= 7641 && iParam0 < 7681)
	{
		iVar0 = ((iParam0 - 7641) - stats::_0x94F12ABF9C79E339((iParam0 - 7641)) * 8) * 8;
	}
	return iVar0;
}

int func_148(int iParam0, int iParam1)//Position - 0x1F77A
{
	int iVar0;
	
	if (iParam1 == -1)
	{
		iParam1 = func_18();
	}
	iVar0 = 0;
	if (iParam0 >= 384 && iParam0 < 457)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 384), 0, 1, iParam1);
	}
	else if (iParam0 >= 457 && iParam0 < 513)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 457), 1, 1, iParam1);
	}
	else if (iParam0 >= 1281 && iParam0 < 1305)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 1281), 0, 0, 0);
	}
	else if (iParam0 >= 1305 && iParam0 < 1361)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 1305), 1, 0, 0);
	}
	else if (iParam0 >= 1361 && iParam0 < 1393)
	{
		iVar0 = stats::_0xD16C2AD6B8E32854((iParam0 - 1361), 0, 0, 0);
	}
	else if (iParam0 >= 1393 && iParam0 < 2919)
	{
		iVar0 = stats::_0xD16C2AD6B8E32854((iParam0 - 1393), 0, 1, iParam1);
	}
	else if (iParam0 >= 4143 && iParam0 < 4207)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4143), 0, 0, 0, "_NGPSTAT_INT");
	}
	else if (iParam0 >= 3879 && iParam0 < 4143)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 3879), 0, 1, iParam1, "_NGPSTAT_INT");
	}
	else if (iParam0 >= 4399 && iParam0 < 6028)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4399), 0, 1, iParam1, "_LRPSTAT_INT");
	}
	else if (iParam0 >= 6413 && iParam0 < 7262)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 6413), 0, 1, iParam1, "_APAPSTAT_INT");
	}
	else if (iParam0 >= 7262 && iParam0 < 7313)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7262), 0, 1, iParam1, "_LR2PSTAT_INT");
	}
	else if (iParam0 >= 7313 && iParam0 < 7321)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7313), 0, 0, 0, "_NGDLCPSTAT_INT");
	}
	else if (iParam0 >= 7641 && iParam0 < 7681)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7641), 0, 1, iParam1, "_NGDLCPSTAT_INT");
	}
	return iVar0;
}

int func_149(int iParam0)//Position - 0x1F9A2
{
	switch (iParam0)
	{
		case 3:
			return 90;
		
		case 7:
			return 93;
		
		case 0:
			return 87;
		
		case 6:
			return 92;
		
		case 2:
			return 89;
		
		case 1:
			return 88;
		
		case 4:
			return 91;
		
		case 8:
			return 158;
		
		case 9:
			return 159;
		
		case 5:
			return 160;
		
		case 10:
			return 163;
		
		case 11:
			return 161;
		
		case 12:
			return 162;
		
		default:
	}
	return -1;
}

int func_150(int iParam0)//Position - 0x1FA41
{
	switch (iParam0)
	{
		case 3:
			return 450;
		
		case 7:
			return 453;
		
		case 0:
			return 447;
		
		case 6:
			return 452;
		
		case 2:
			return 449;
		
		case 1:
			return 448;
		
		case 4:
			return 451;
		
		case 8:
			return 3940;
		
		case 9:
			return 3941;
		
		case 5:
			return 3942;
		
		case 10:
			return 3943;
		
		case 11:
			return 3944;
		
		case 12:
			return 3945;
		
		default:
	}
	return -1;
}

int func_151(int iParam0)//Position - 0x1FAED
{
	switch (iParam0)
	{
		case 0:
			return 7;
		
		case 1:
			return 3;
		
		case 2:
			return 9;
		
		case 3:
			return 6;
		
		case 4:
			return 0;
		
		case 5:
			return 4;
		
		case 6:
			return 5;
		
		case 7:
			return 2;
		
		case 8:
			return 1;
		
		case 9:
			return 8;
		
		case 10:
			return 10;
		
		case 11:
			return 11;
		
		case 12:
			return 12;
		
		default:
	}
	return -1;
}

float func_152(int iParam0, int iParam1)//Position - 0x1FB84
{
	var uVar0;
	var uVar1;
	
	uVar0 = Global_2489085[iParam0 /*5*/][func_17(iParam1)];
	if (ui::_0x5FBD7095FE7AE57F(uVar0, &uVar1))
	{
		return uVar1;
	}
	return 0f;
}

int func_153(int iParam0)//Position - 0x1FBAF
{
	switch (iParam0)
	{
		case 0:
			return 137;
		
		case 1:
			return 138;
		
		case 2:
			return 139;
		
		case 3:
			return 140;
		
		case 4:
			return 141;
		
		case 5:
			return 142;
		
		case 6:
			return 143;
		
		case 7:
			return 144;
		
		case 8:
			return 145;
		
		case 9:
			return 146;
		
		case 10:
			return 147;
		
		case 11:
			return 148;
		
		case 12:
			return 149;
		
		case 13:
			return 150;
		
		case 14:
			return 151;
		
		case 15:
			return 152;
		
		case 16:
			return 153;
		
		case 17:
			return 154;
		
		case 18:
			return 155;
		
		case 19:
			return 156;
		
		default:
	}
	return -1;
}

float func_154(int iParam0, int iParam1)//Position - 0x1FC9B
{
	int iVar0;
	var uVar1;
	
	iVar0 = Global_2489085[iParam0 /*5*/][func_17(iParam1)];
	if (stats::stat_get_float(iVar0, &uVar1, -1))
	{
		return uVar1;
	}
	return 0f;
}

bool func_155(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 - 0x1FCC7
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		iVar1 = -1;
		iVar2 = -1;
		if (Global_2560803 == iParam1)
		{
			iVar2 = Global_2560802;
			iVar1 = Global_2560801;
		}
		else if (iParam1 >= 92)
		{
			iVar2 = func_104(iParam0, iParam1, 7, 3);
			iVar1 = func_195(iVar2);
			Global_2560803 = iParam1;
			Global_2560802 = iVar2;
			Global_2560801 = iVar1;
		}
		iVar3 = -1;
		iVar4 = -1;
		if (Global_2560806 == iParam3)
		{
			iVar4 = Global_2560805;
			iVar3 = Global_2560804;
		}
		else if (iParam3 >= 237)
		{
			iVar4 = func_104(iParam0, iParam3, 11, 3);
			iVar3 = func_195(iVar4);
			Global_2560806 = iParam3;
			Global_2560805 = iVar4;
			Global_2560804 = iVar3;
		}
		iVar5 = -1;
		iVar6 = -1;
		if (Global_2560809 == iParam4)
		{
			iVar6 = Global_2560808;
			iVar5 = Global_2560807;
		}
		else if (iParam4 >= 241)
		{
			iVar6 = func_104(iParam0, iParam4, 8, 3);
			iVar5 = func_195(iVar6);
			Global_2560809 = iParam4;
			Global_2560808 = iVar6;
			Global_2560807 = iVar5;
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -120244486, 0))
		{
			if (iParam9 != -99)
			{
				iVar7 = -1;
				if (iParam9 >= 327)
				{
					iVar7 = func_104(iParam0, iParam9, 14, 3);
				}
				if (((iParam9 >= 27 && iParam9 <= 34) || (iParam9 >= 75 && iParam9 <= 82)) || (iParam9 >= 107 && iParam9 <= 114))
				{
					return false;
				}
				switch (iVar7)
				{
					case 1411612772:
					case 1399488226:
					case 1103092621:
					case 798340921:
					case 495850282:
					case -1972900644:
					case 2016102499:
					case 1719477511:
					case 288210625:
					case -882756821:
					case -1242625979:
					case -1358792084:
					case -1854813796:
					case -1257185072:
					case -75666008:
					case -451657514:
					case -1339992339:
					case -1987638855:
					case 1148780446:
						return false;
						break;
					}
				}
		}
		if (iParam3 != -99)
		{
			if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1473812293, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1396865968, 0))
				{
					if ((((((((((((((((((((((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar4, -870074461, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1834446747, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2102859770, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1719167561, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1274099003, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1431529976, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1723403459, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1419806467, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -785939537, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1446333198, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 492620493, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 137011325, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0))
					{
						return false;
					}
					else if (func_157(iParam0, iParam3))
					{
					}
					else
					{
						return false;
					}
				}
				else if (func_157(iParam0, iParam3))
				{
					return false;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -120244486, 0))
				{
					if (((((iParam3 >= 188 && iParam3 <= 203) || (iParam3 >= 220 && iParam3 <= 235)) || iVar3 == 12) || iVar3 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1127835965, 0))
					{
						return false;
					}
				}
			}
			if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -353070590, 0))
			{
				if (((dlc1::_0x341DE7ED1D2A1BFD(iVar4, -870074461, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1834446747, 0))
				{
				}
				else
				{
					return false;
				}
			}
		}
		if (iParam3 != -99)
		{
			if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 654065530, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -7109286, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
		if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 596326873, 0))
		{
			if (iParam3 != -99)
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -319568873, 0))
				{
					if ((iParam3 >= 96 && iParam3 <= 107) || iVar3 == 6)
					{
						return false;
					}
				}
				if (iParam3 == 236)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 525778571, 0))
					{
						return false;
					}
				}
				else if (((((((((((((((((((((((((((((((((((((((((((((((iParam3 >= 172 && iParam3 <= 187) || (iParam3 >= 188 && iParam3 <= 203)) || (iParam3 >= 204 && iParam3 <= 219)) || (iParam3 >= 220 && iParam3 <= 235)) || iVar3 == 11) || iVar3 == 12) || iVar3 == 13) || iVar3 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1625463492, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -713698407, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1843965488, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -779835469, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1086258388, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1627756587, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1021189127, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1127835965, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -672871169, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 572416369, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -196114988, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1322269404, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1655154167, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1607949555, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1719167561, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1431529976, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1723403459, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1419806467, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -785939537, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 137011325, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1351486939, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -491588875, 0))
				{
					return false;
				}
				else if (!dlc1::_0x341DE7ED1D2A1BFD(iVar2, 525778571, 0))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((((((((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 64 && iParam4 <= 79)) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 192 && iParam4 <= 207)) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 3) || iVar5 == 4) || iVar5 == 6) || iVar5 == 7) || iVar5 == 12) || iVar5 == 13) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 651155766, 0))
				{
					return false;
				}
			}
		}
		if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -319568873, 0))
		{
			if (iParam8 != -99)
			{
				return false;
			}
		}
		if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -713698407, 0))
		{
			if (iParam9 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam9, 14, 3), -713698407, 1))
			{
			}
			else if (iParam2 == 14 || (iParam2 == 1 && iParam10 != 0))
			{
				return false;
			}
		}
		else if ((iParam9 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam9, 14, 3), -713698407, 1)) && iParam1 != 0)
		{
			return false;
		}
		if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1119006951, 0))
		{
			if (iParam3 != -99)
			{
				if (((((((((((((((((((((((((((((iParam3 >= 140 && iParam3 <= 155) || (iParam3 >= 188 && iParam3 <= 203)) || (iParam3 >= 204 && iParam3 <= 219)) || (iParam3 >= 220 && iParam3 <= 235)) || iVar3 == 9) || iVar3 == 12) || iVar3 == 13) || iVar3 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 248194463, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 572350888, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1817355735, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -713698407, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1843965488, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 140732128, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1863955539, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1627756587, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 572416369, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1538937264, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -785939537, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if ((((((((((((((((((((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 64 && iParam4 <= 79)) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 144 && iParam4 <= 159)) || (iParam4 >= 160 && iParam4 <= 175)) || (iParam4 >= 176 && iParam4 <= 191)) || (iParam4 >= 192 && iParam4 <= 207)) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 3) || iVar5 == 4) || iVar5 == 6) || iVar5 == 7) || iVar5 == 9) || iVar5 == 10) || iVar5 == 11) || iVar5 == 12) || iVar5 == 13) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1778265882, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1965569012, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 651155766, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1914383230, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1553766533, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 505220913, 0))
				{
					return false;
				}
			}
		}
		if ((iParam1 >= 1 && iParam1 <= 3) || iVar1 == 1)
		{
			if (iParam5 != -99)
			{
				if (iParam5 != 15)
				{
					return false;
				}
			}
			if (iParam3 != -99)
			{
				if (iParam3 != 236)
				{
					return false;
				}
			}
			if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2066241403, 0))
			{
				return false;
			}
		}
		else if ((iParam1 >= 4 && iParam1 <= 6) || iVar1 == 2)
		{
			if (iParam3 != -99)
			{
				if ((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 16 && iParam3 <= 31)) || (iParam3 >= 32 && iParam3 <= 47)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 124 && iParam3 <= 139)) || iVar3 == 0) || iVar3 == 1) || iVar3 == 2) || iVar3 == 5) || iVar3 == 8)
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if ((((((((((((iParam4 >= 0 && iParam4 <= 15) || (iParam4 >= 16 && iParam4 <= 31)) || (iParam4 >= 32 && iParam4 <= 47)) || (iParam4 >= 80 && iParam4 <= 95)) || (iParam4 >= 128 && iParam4 <= 143)) || iParam4 == 240) || iVar5 == 0) || iVar5 == 1) || iVar5 == 2) || iVar5 == 5) || iVar5 == 8) || iVar5 == 15)
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam8 != -99)
			{
				if (!(iParam8 >= 1 && iParam8 <= 41))
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 10 && iParam1 <= 25) || iVar1 == 4)
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 16 && iParam3 <= 31)) || (iParam3 >= 32 && iParam3 <= 47)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 124 && iParam3 <= 139)) || (iParam3 >= 140 && iParam3 <= 155)) || (iParam3 >= 172 && iParam3 <= 187)) || (iParam3 >= 204 && iParam3 <= 219)) || iParam3 == 236) || iVar3 == 0) || iVar3 == 1) || iVar3 == 2) || iVar3 == 5) || iVar3 == 8) || iVar3 == 9) || iVar3 == 11) || iVar3 == 13) || iVar3 == 15)
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 32 && iParam1 <= 37) || iVar1 == 6)
		{
			if (iParam3 != -99)
			{
				if ((((iParam3 >= 96 && iParam3 <= 107) || (iParam3 >= 156 && iParam3 <= 171)) || iVar3 == 6) || iVar3 == 10)
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if (((((iParam1 >= 41 && iParam1 <= 56) || (iParam1 >= 73 && iParam1 <= 88)) || iVar1 == 10) || iVar1 == 12) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -920534092, 0)))
		{
			if (iParam3 != -99)
			{
				if (((iParam3 >= 204 && iParam3 <= 219) || func_197(iParam0, iParam3)) || iVar3 == 13)
				{
					if (((dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1446333198, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 492620493, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1351486939, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -7109286, 0))
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if ((((((iParam4 >= 160 && iParam4 <= 175) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 10) || iVar5 == 13) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1778265882, 0))) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 505220913, 0)))
				{
				}
				else
				{
					iVar0 = func_95(iParam6, 11);
					if ((iVar0 >= 204 && iVar0 <= 219) || (iVar0 >= 237 && func_195(func_104(iParam0, iVar0, 11, 3)) == 13))
					{
						return true;
					}
					if (iParam7 == 1)
					{
						if ((iParam4 >= 176 && iParam4 <= 191) || iVar5 == 11)
						{
							return true;
						}
					}
					return false;
				}
			}
		}
		else if ((iParam1 >= 57 && iParam1 <= 72) || iVar1 == 11)
		{
			if (iParam3 != -99)
			{
				if (((((iParam3 >= 204 && iParam3 <= 219) || (iParam3 >= 172 && iParam3 <= 187)) || func_197(iParam0, iParam3)) || iVar3 == 13) || iVar3 == 11)
				{
					if ((dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1446333198, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 492620493, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -7109286, 0))
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if ((((((((((((((((((iParam4 >= 64 && iParam4 <= 79) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 160 && iParam4 <= 175)) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 4) || iVar5 == 6) || iVar5 == 10) || iVar5 == 13) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1778265882, 0))) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1965569012, 0))) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 651155766, 0))) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 505220913, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -893126917, 0)) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658)
				{
				}
				else
				{
					iVar0 = func_95(iParam6, 11);
					if ((iVar0 >= 204 && iVar0 <= 219) || (iVar0 >= 237 && func_195(func_104(iParam0, iVar0, 11, 3)) == 13))
					{
						return true;
					}
					if (iParam7 == 1)
					{
						if ((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 176 && iParam4 <= 191)) || iVar5 == 3) || iVar5 == 7) || iVar5 == 11)
						{
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
							{
								return true;
							}
						}
					}
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1950939707, 0))
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((((((((iParam3 >= 172 && iParam3 <= 187) || iVar3 == 11) || iVar4 == -27166014) || iVar4 == -273228435) || iVar4 == -2118057713) || iVar4 == -1809078812) || iVar4 == -1522415600) || iVar4 == -1212584705) || iVar4 == -886664231) || iVar4 == -646500230) || iVar4 == -290891042) || iVar4 == 15400801) || iVar4 == -485413449) || iVar4 == -254359230) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1769225721, 0)) || iVar4 == 1343601766) || iVar4 == 567992305) || iVar4 == -192707261) || iVar4 == 1156347903) || iVar4 == 1853344529) || iVar4 == 1597648022) || iVar4 == -1995669446)
				{
					if (!dlc1::_0x341DE7ED1D2A1BFD(iVar4, -7109286, 0))
					{
					}
					else
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((((((((((iParam4 >= 64 && iParam4 <= 79) || (iParam4 >= 96 && iParam4 <= 111)) || iVar5 == 4) || iVar5 == 6) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1965569012, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -893126917, 0)) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658)
				{
				}
				else
				{
					if (iParam7 == 1)
					{
						if ((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 176 && iParam4 <= 191)) || iVar5 == 3) || iVar5 == 7) || iVar5 == 11)
						{
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
							{
								return true;
							}
						}
					}
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1371423804, 0))
		{
			if (iParam3 != -99)
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1625463492, 0))
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 651155766, 0)) && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -277681306, 0)) || ((iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 505220913, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, -277681306, 0)))
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -108328099, 0))
		{
			if (iParam4 != -99)
			{
				if (((((((((((((((((((((((((((((((((((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 176 && iParam4 <= 191)) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658) || iVar6 == 936913256) || iVar6 == -1891018679) || iVar6 == -1583940380) || iVar6 == -693410036) || iVar6 == -2129413154) || iVar6 == -1280171750) || iVar6 == -971192849) || iVar6 == 389965873) || iVar6 == -1451291468) || iVar6 == -50613332) || iVar6 == 318070129) || iVar6 == -1851794728) || iVar6 == 673515492) || iVar6 == 889168281) || iVar6 == 1270009599) || iVar6 == 1866208765) || iVar6 == 1546649325) || iVar6 == 1180816209) || iVar6 == -1305325922) || iVar6 == 242616108) || iVar6 == 1085565864) || iVar6 == -1968210019) || iVar6 == 2028002304) || iVar6 == 830393657) || iVar6 == -473747009) || iVar6 == 240453350) || iVar6 == 1083927410) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1458930564, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 2048281121, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 19149565, 0))
				{
					if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
					{
					}
					else
					{
						return false;
					}
				}
				else
				{
					if (iParam7 == 1)
					{
						if ((((((iParam4 >= 64 && iParam4 <= 79) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 160 && iParam4 <= 175)) || iVar5 == 4) || iVar5 == 6) || iVar5 == 10)
						{
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
							{
								return true;
							}
						}
					}
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -378906828, 0))
		{
			if (iParam3 != -99)
			{
				if (((((iParam3 >= 64 && iParam3 <= 79) || (iParam3 >= 156 && iParam3 <= 171)) || iVar3 == 4) || iVar3 == 10) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 470686834, 0))
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((((((((((((((((((((((((iParam4 >= 176 && iParam4 <= 191) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658) || iVar6 == 936913256) || iVar6 == -1891018679) || iVar6 == -1583940380) || iVar6 == -693410036) || iVar6 == -2129413154) || iVar6 == -1280171750) || iVar6 == -971192849) || iVar6 == 389965873) || iVar6 == -1451291468) || iVar6 == -50613332) || iVar6 == 318070129) || iVar6 == -1851794728) || iVar6 == 673515492) || iVar6 == 889168281) || iVar6 == 1270009599) || iVar6 == 1866208765) || iVar6 == 1546649325) || iVar6 == 1180816209) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 684992453, 0))
				{
					if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
					{
					}
					else
					{
						return false;
					}
				}
				else
				{
					if (iParam7 == 1)
					{
						if ((iParam4 >= 160 && iParam4 <= 175) || iVar5 == 10)
						{
							if (!dlc1::_0x341DE7ED1D2A1BFD(iVar6, -7109286, 0))
							{
								return true;
							}
						}
					}
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -695703461, 0))
		{
			if (iParam3 != -99)
			{
				if (((((iParam3 >= 64 && iParam3 <= 79) || (iParam3 >= 188 && iParam3 <= 203)) || iVar3 == 12) || iVar3 == 4) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 470686834, 0))
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((iParam4 >= 192 && iParam4 <= 207) || func_156(iVar6)) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 310957510, 0)))
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if (iParam1 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1473812293, 0))
		{
			if (iParam3 != -99)
			{
				if ((iParam3 >= 172 && iParam3 <= 187) || iVar3 == 11)
				{
					return false;
				}
				else if ((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1627756587, 0)) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1322269404, 0)))
				{
					return false;
				}
				else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -713698407, 0))
				{
					return false;
				}
			}
			if (iParam8 != -99)
			{
				if (!(iParam8 >= 1 && iParam8 <= 41))
				{
				}
				else
				{
					return false;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar8 = -1;
		iVar9 = -1;
		if (iParam1 >= 55)
		{
			iVar9 = func_104(iParam0, iParam1, 7, 4);
			iVar8 = func_195(iVar9);
		}
		iVar10 = -1;
		iVar11 = -1;
		if (iParam3 >= 256)
		{
			iVar11 = func_104(iParam0, iParam3, 11, 4);
			iVar10 = func_195(iVar11);
		}
		iVar12 = -1;
		if (iParam9 >= 327)
		{
			iVar12 = func_104(iParam0, iParam9, 14, 4);
		}
		iVar13 = -1;
		iVar14 = -1;
		if (iParam4 >= 136)
		{
			iVar13 = func_104(iParam0, iParam4, 8, 4);
			iVar14 = func_195(iVar13);
		}
		if (iParam3 != -99)
		{
			if (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1473812293, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1396865968, 0))
				{
					if (((((((dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1410897066, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -733792105, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1507532917, 0))
					{
						return false;
					}
					else if (func_157(iParam0, iParam3))
					{
					}
					else
					{
						return false;
					}
				}
				else if (func_157(iParam0, iParam3))
				{
					return false;
				}
			}
			if (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, -353070590, 0))
			{
				if ((((dlc1::_0x341DE7ED1D2A1BFD(iVar11, -870074461, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1174924468, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1834446747, 0))
				{
				}
				else
				{
					return false;
				}
			}
		}
		if (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, -713698407, 0))
		{
			if (iParam9 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam9, 14, 4), -713698407, 1))
			{
			}
			else if (iParam2 == 14 || (iParam2 == 1 && iParam10 != 0))
			{
				return false;
			}
		}
		else if ((iParam9 >= 327 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam9, 14, 4), -713698407, 1)) && iParam1 != 0)
		{
			return false;
		}
		if (iVar9 != -1 && (dlc1::_0x341DE7ED1D2A1BFD(iVar9, -920534092, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1537081084, 0)))
		{
			if (iParam2 == 11)
			{
				if ((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar11, 684992453, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1714969731, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1055526375, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 947651647, 0)) || (iParam3 >= 112 && iParam3 <= 127)) || iVar10 == 7)
				{
				}
				else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar11, 700658917, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 745826556, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 144417099, 0))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1537081084, 0))
					{
					}
					else
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else if (iParam2 == 8)
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1553766533, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1914383230, 0))
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, -920534092, 0))
					{
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar13, 441715397, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 264959411, 0))
						{
							if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1828206051, 0))
							{
							}
							else
							{
								return false;
							}
						}
						else if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1828206051, 0))
						{
							return false;
						}
					}
				}
				else
				{
					return false;
				}
			}
		}
		if (iParam9 != -99)
		{
			if (iVar12 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar12, 1406402954, 1))
			{
				if ((((iParam1 >= 1 && iParam1 <= 12) || iVar8 == 1) || iVar8 == 2) || (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1406402954, 0)))
				{
					return false;
				}
			}
		}
		if (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 596326873, 0))
		{
			if (iParam3 != -99)
			{
				if ((((dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1358888880, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -733792105, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1507532917, 0))
				{
					return false;
				}
				else if (func_197(iParam0, iParam3))
				{
				}
				else if (((((((((((((((((((iParam3 >= 32 && iParam3 <= 47) || (iParam3 >= 176 && iParam3 <= 191)) || iVar10 == 2) || iVar10 == 11) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -761463976, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1347486026, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -939525357, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2102859770, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -430330349, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1351486939, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2030343924, 0)) || iVar11 == 998321559) || iVar11 == 619380843)
				{
					if (!dlc1::_0x341DE7ED1D2A1BFD(iVar9, 525778571, 0))
					{
						return false;
					}
				}
				else if ((((((((((((((((((((((((((((((((((((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 224 && iParam3 <= 239)) || iVar10 == 3) || iVar10 == 9) || iVar10 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -530089825, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1965569012, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1200513218, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -713698407, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1843965488, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -55104292, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -779835469, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1086258388, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 140732128, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2106216756, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1627756587, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1127835965, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -672871169, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 572416369, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -196114988, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1607949555, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1976716889, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1407863332, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1986415230, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -785939537, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1103045158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1507532917, 0))
				{
					return false;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 525778571, 0))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (((((((((((((((((((((((((((((((((((((((((((((((iParam4 >= 71 && iParam4 <= 86) || iVar14 == 11) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1455992833, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -870074461, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1174924468, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1177480446, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1347486026, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1655154167, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -2105858993, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1893564692, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1710451520, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1416808511, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1641506460, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 699233865, 0)) || iVar13 == -565297075) || iVar13 == 262349558) || iVar13 == -917804055) || iVar13 == -1156067454) || iVar13 == -2124751863) || iVar13 == 1812836719) || iVar13 == 1582116924) || iVar13 == 877452376) || iVar13 == 1117419763) || iVar13 == 732885188) || iVar13 == -1037820496) || iVar13 == -79097863) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -2102859770, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1607949555, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1976716889, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1419806467, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -849839091, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -2088146832, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -352447393, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -642551350, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -819569488, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -2020068325, 0))
				{
					if (!dlc1::_0x341DE7ED1D2A1BFD(iVar9, 525778571, 0))
					{
						return false;
					}
				}
				else if (((((((dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1965569012, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1353777856, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1207283343, 0))
				{
					return false;
				}
				else if (func_196(iParam0, iParam4, 0) != -99)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar9, 525778571, 0))
					{
						return false;
					}
				}
			}
			if (iParam8 != -99)
			{
				if (!(iParam8 >= 1 && iParam8 <= 31))
				{
				}
				else
				{
					return false;
				}
			}
		}
		if (iParam3 != -99)
		{
			if (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 654065530, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1351486939, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
		if (((iParam1 >= 13 && iParam1 <= 18) || iVar8 == 3) || (iVar9 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1320139576, 0)))
		{
			if (iParam3 != -99)
			{
				if (((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 112 && iParam3 <= 127)) || (iParam3 >= 160 && iParam3 <= 175)) || iVar10 == 3) || iVar10 == 7) || iVar10 == 10) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1147939952, 0)))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (iParam4 >= 136 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam4, 8, 4), 1147939952, 0))
				{
					return false;
				}
			}
			else if (iParam9 != -99)
			{
				if (iVar12 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1320139576, 1))
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 19 && iParam1 <= 24) || iVar8 == 4)
		{
			if (iParam3 != -99)
			{
				if (((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 112 && iParam3 <= 127)) || (iParam3 >= 160 && iParam3 <= 175)) || iVar10 == 3) || iVar10 == 7) || iVar10 == 10) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1147939952, 0)))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (iParam4 >= 136 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam4, 8, 4), 1147939952, 0))
				{
					return false;
				}
			}
			else if (iParam9 != -99)
			{
				if (iVar12 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1320139576, 1))
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 25 && iParam1 <= 30) || iVar8 == 5)
		{
			if (iParam3 != -99)
			{
				if (((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 112 && iParam3 <= 127)) || (iParam3 >= 160 && iParam3 <= 175)) || iVar10 == 3) || iVar10 == 7) || iVar10 == 10) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1147939952, 0)))
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (iParam4 >= 136 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam4, 8, 4), 1147939952, 0))
				{
					return false;
				}
			}
			else if (iParam9 != -99)
			{
				if (iVar12 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1320139576, 1))
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 31 && iParam1 <= 36) || iVar8 == 6)
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((((((((((((((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 224 && iParam3 <= 239)) || iVar10 == 3) || iVar10 == 9) || iVar10 == 14) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1965569012, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 396458410, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -761463976, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 103539798, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1347486026, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -994703884, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1119232689, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1986415230, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -430330349, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -733792105, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1351486939, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2030343924, 0))
				{
					return false;
				}
			}
		}
		else if (((iParam1 >= 37 && iParam1 <= 42) || iVar8 == 7) || (iParam1 >= 55 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 2083259958, 0)))
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((((((((((((((((((((((iParam3 >= 32 && iParam3 <= 47) || (iParam3 >= 48 && iParam3 <= 63)) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 224 && iParam3 <= 239)) || iVar10 == 2) || iVar10 == 3) || iVar10 == 9) || iVar10 == 14) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 396458410, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -761463976, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 821147517, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 103539798, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1347486026, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -994703884, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1119232689, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1607949555, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1965569012, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1986415230, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -430330349, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -733792105, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1351486939, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1507532917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2030343924, 0))
				{
					return false;
				}
				else if (((((((((((iParam3 >= 112 && iParam3 <= 127) || (iParam3 >= 160 && iParam3 <= 175)) || (iParam3 >= 192 && iParam3 <= 207)) || iVar10 == 7) || iVar10 == 10) || iVar10 == 12) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 1147939952, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1200513218, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 2026620439, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1882920022, 0))) || dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0))
				{
					if (iParam1 >= 55 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 2083259958, 0))
					{
						return false;
					}
				}
			}
			else if (iParam4 != -99)
			{
				if (iParam4 >= 136 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam4, 8, 4), 1965569012, 0))
				{
					if (iParam1 >= 55 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 2083259958, 0))
					{
						return false;
					}
				}
			}
			else if (iParam9 != -99)
			{
				if (iVar12 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1320139576, 1))
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 43 && iParam1 <= 48) || iVar8 == 8)
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 32 && iParam3 <= 47)) || (iParam3 >= 64 && iParam3 <= 79)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 192 && iParam3 <= 207)) || (iParam3 >= 208 && iParam3 <= 223)) || (iParam3 >= 240 && iParam3 <= 255)) || iVar10 == 0) || iVar10 == 2) || iVar10 == 4) || iVar10 == 5) || iVar10 == 9) || iVar10 == 11) || iVar10 == 12) || iVar10 == 13) || iVar10 == 15) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1200513218, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -530089825, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, 103539798, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -994703884, 0)))
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if ((iParam1 >= 49 && iParam1 <= 54) || iVar8 == 9)
		{
			if (iParam3 != -99)
			{
				if ((((((((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 64 && iParam3 <= 79)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 192 && iParam3 <= 207)) || (iParam3 >= 208 && iParam3 <= 223)) || (iParam3 >= 240 && iParam3 <= 255)) || iVar10 == 0) || iVar10 == 4) || iVar10 == 5) || iVar10 == 11) || iVar10 == 12) || iVar10 == 13) || iVar10 == 15) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -1200513218, 0))) || (iParam3 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -530089825, 0)))
				{
				}
				else
				{
					return false;
				}
			}
			else if (iParam4 != -99)
			{
				if (iParam4 >= 136 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam4, 8, 4), -7109286, 0))
				{
					return false;
				}
			}
			if (iParam8 != -99)
			{
				if (!(iParam8 >= 1 && iParam8 <= 31))
				{
				}
				else
				{
					return false;
				}
			}
		}
		else if (iParam1 >= 55 && dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1716958480, 0))
		{
			if (iParam3 != -99)
			{
				if (iVar11 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar11, -747583185, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (iParam11 != -99)
			{
				iVar15 = -1;
				if (iParam11 >= 256)
				{
					iVar15 = func_104(iParam0, iParam11, 4, 4);
				}
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar15, -33031567, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
	}
	return true;
}

bool func_156(int iParam0)//Position - 0x23A6C
{
	if (iParam0 != -1)
	{
		return false;
	}
	switch (iParam0)
	{
		case -783649692:
		case 691352495:
		case 1313566316:
		case 451909412:
		case 1552550633:
		case -206550874:
		case 860928119:
		case -445797343:
		case 1107219923:
		case -173716332:
		case -2017140386:
		case -538304226:
		case -1235599732:
		case -592242000:
		case 1815489089:
		case -831095241:
		case 2062043045:
		case -1092100326:
		case -1065332020:
		case -1465994616:
		case -1516536717:
		case 507503642:
		case -1470397961:
		case -1392082519:
		case 264425668:
		case -88859389:
		case 560755735:
		case 157858412:
		case -593565059:
		case -513152401:
		case -286945526:
		case 2004948615:
			return true;
			break;
	}
	return false;
}

int func_157(int iParam0, int iParam1)//Position - 0x23B4D
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		iVar0 = func_104(iParam0, iParam1, 11, 3);
		if (iVar0 != -1)
		{
			if ((((((((((((((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1119232689, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2102859770, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1976716889, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2099109084, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1719167561, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1274099003, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1431529976, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1723403459, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1064262817, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1419806467, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1053842259, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1358888880, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -441291342, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -785939537, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1446333198, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 492620493, 0))
			{
				return 1;
			}
		}
		if (iVar0 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2017999390, 0))
			{
				return 1;
			}
		}
		return func_197(iParam0, iParam1);
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar1 = func_104(iParam0, iParam1, 11, 4);
		iVar2 = -1;
		if (iVar1 != -1)
		{
			iVar2 = func_195(iVar1);
		}
		if (((((((((((((((((((((((((((((iParam1 >= 16 && iParam1 < 32) || (iParam1 >= 48 && iParam1 < 64)) || (iParam1 >= 96 && iParam1 < 112)) || (iParam1 >= 112 && iParam1 < 128)) || (iParam1 >= 128 && iParam1 < 144)) || (iParam1 >= 144 && iParam1 < 160)) || (iParam1 >= 160 && iParam1 < 176)) || (iParam1 >= 224 && iParam1 < 240)) || iVar2 == 1) || iVar2 == 3) || iVar2 == 6) || iVar2 == 7) || iVar2 == 8) || iVar2 == 9) || iVar2 == 10) || iVar2 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1393156190, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 1843965488, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, 320460654, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -2017999390, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -826135203, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -747583185, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -102825006, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -733792105, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -641612092, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1507532917, 0))
		{
			return 1;
		}
	}
	return 0;
}

void func_158(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x23F48
{
	int iVar0;
	int iVar1;
	
	iVar0 = entity::get_entity_model(iParam0);
	func_191(gameplay::get_hash_key("hairOverlay"), iParam0);
	iVar1 = func_190(iVar0, iParam1);
	if (iVar1 != -1)
	{
		if (iParam2 == -1)
		{
			iParam2 = Global_69309;
		}
		func_207(iVar1, 1, Global_69309);
	}
	func_159(iParam0, iParam3, 0);
}

void func_159(int iParam0, int iParam1, int iParam2)//Position - 0x23F96
{
	int iVar0;
	struct<9> Var1;
	int iVar14;
	int iVar15;
	int iVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	struct<8> Var21;
	int iVar36;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = Global_69309;
		ped::_clear_ped_facial_decorations(iParam0);
		iVar14 = func_189(iParam0);
		iVar15 = func_180(iParam0);
		iVar16 = func_178(iParam0);
		iVar17 = func_177(iParam0);
		if (iParam1)
		{
			iVar16 = true;
		}
		if (iParam2)
		{
			iVar16 = false;
		}
		iVar18 = 0;
		while (iVar18 < 127)
		{
			if (func_170(iVar18, iVar0))
			{
				if (func_162(&Var1, iVar18, iVar14, iParam0, -1))
				{
					if (func_161(&Var1, Var1.f_4, Var1.f_8, iVar15, iVar16, iParam1, iVar17))
					{
						ped::_set_ped_decoration(iParam0, Var1.f_4, Var1.f_5);
					}
				}
			}
			iVar18++;
		}
		if (func_170(123, iVar0))
		{
			if (ped::_get_tattoo_zone(-1719270477, -1824026490) != 7)
			{
				ped::_set_ped_decoration(iParam0, -1719270477, -1824026490);
			}
		}
		iVar20 = dlc1::_0x278F76C3B0A8F109(iVar14);
		iVar19 = 0;
		while (iVar19 < iVar20)
		{
			if (dlc1::_0xFF56381874F82086(iVar14, iVar19, &Var21))
			{
				if (!dlc1::_is_dlc_data_empty(Var21))
				{
					iVar36 = (129 + iVar19);
					if (func_170(iVar36, iVar0))
					{
						if (func_161(&(Var21.f_7), Var21.f_2, Var21.f_6, iVar15, iVar16, iParam1, iVar17))
						{
							ped::_set_ped_decoration(iParam0, Var21.f_2, Var21.f_3);
							func_160(iParam0, Var21.f_2, Var21.f_3);
						}
					}
				}
			}
			iVar19++;
		}
	}
}

void func_160(int iParam0, int iParam1, int iParam2)//Position - 0x240E2
{
	switch (iParam1)
	{
		case -1194930348:
			switch (iParam2)
			{
				case -841238543:
					ped::_set_ped_decoration(iParam0, -1194930348, -441419962);
					break;
				
				case -1405854945:
					ped::_set_ped_decoration(iParam0, -1194930348, 1647997020);
					break;
			}
			break;
		
		case -777275782:
			switch (iParam2)
			{
				case 671171671:
					ped::_set_ped_decoration(iParam0, -777275782, 904519720);
					break;
				
				case 1911627074:
					ped::_set_ped_decoration(iParam0, -777275782, -607391498);
					break;
			}
			break;
		
		case 484754152:
			switch (iParam2)
			{
				case 266230635:
					ped::_set_ped_decoration(iParam0, 484754152, -588549683);
					ped::_set_ped_decoration(iParam0, 484754152, 464027076);
					break;
				
				case -1261787835:
					ped::_set_ped_decoration(iParam0, 484754152, -965491494);
					ped::_set_ped_decoration(iParam0, 484754152, 939374190);
					break;
			}
			break;
	}
}

bool func_161(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x241D7
{
	int iVar0;
	
	iVar0 = entity::get_entity_model(player::player_ped_id());
	if (iParam1 == 449512698)
	{
		return false;
	}
	switch (iParam2)
	{
		case -1409061796:
		case -454273031:
		case -388268096:
		case -763917073:
		case -2066166276:
		case -793495770:
		case -1469750959:
		case 1361645381:
		case -1238079313:
		case -1459967458:
		case 1548327796:
		case 1586504577:
		case 1753976524:
		case 849089063:
		case 1192230427:
		case 129912816:
			if (iParam3)
			{
				return false;
			}
			if (((((iParam2 == -793495770 && iVar0 == joaat("mp_f_freemode_01")) || (iParam2 == -1409061796 && iVar0 == joaat("mp_f_freemode_01"))) || iParam2 == -2066166276) || (iParam2 == 849089063 && iVar0 == joaat("mp_f_freemode_01"))) || (iParam2 == 1192230427 && iVar0 == joaat("mp_f_freemode_01")))
			{
				if (!iParam4)
				{
					if (Global_2561953 == -1)
					{
						if (!Global_91330.f_1446)
						{
							if (func_170(13, -1))
							{
								return false;
							}
							else if (func_170(14, -1))
							{
								return false;
							}
							else if (func_170(15, -1))
							{
								return false;
							}
							else if (func_170(16, -1))
							{
							}
							else if (func_170(71, -1))
							{
								return false;
							}
							else if (func_170(72, -1))
							{
							}
						}
					}
					else if (Global_2561953 == 13)
					{
						return false;
					}
					else if (Global_2561953 == 14)
					{
						return false;
					}
					else if (Global_2561953 == 15)
					{
						return false;
					}
					else if (Global_2561953 == 16)
					{
					}
					else if (Global_2561953 == 71)
					{
						return false;
					}
					else if (Global_2561953 == 72)
					{
					}
				}
			}
			else if (iParam2 == -763917073)
			{
				if (!iParam4)
				{
					if (Global_2561953 == -1)
					{
						if (!Global_91330.f_1446)
						{
							if (func_170(13, -1))
							{
								return false;
							}
							else if (func_170(14, -1))
							{
								return false;
							}
							else if (func_170(15, -1))
							{
								return false;
							}
							else if (func_170(16, -1))
							{
								return false;
							}
							else if (func_170(71, -1))
							{
								return false;
							}
							else if (func_170(72, -1))
							{
							}
						}
					}
					else if (Global_2561953 == 13)
					{
						return false;
					}
					else if (Global_2561953 == 14)
					{
						return false;
					}
					else if (Global_2561953 == 15)
					{
						return false;
					}
					else if (Global_2561953 == 16)
					{
						return false;
					}
					else if (Global_2561953 == 71)
					{
						return false;
					}
					else if (Global_2561953 == 72)
					{
					}
				}
			}
			else if (iParam2 == 129912816)
			{
				if (!iParam4)
				{
					if (Global_2561953 == -1)
					{
						if (!Global_91330.f_1446)
						{
							if (func_170(13, -1))
							{
							}
							else if (func_170(14, -1))
							{
								return false;
							}
							else if (func_170(15, -1))
							{
								return false;
							}
							else if (func_170(16, -1))
							{
							}
							else if (func_170(71, -1))
							{
								return false;
							}
							else if (func_170(72, -1))
							{
							}
						}
					}
					else if (Global_2561953 == 13)
					{
					}
					else if (Global_2561953 == 14)
					{
						return false;
					}
					else if (Global_2561953 == 15)
					{
						return false;
					}
					else if (Global_2561953 == 16)
					{
					}
					else if (Global_2561953 == 71)
					{
						return false;
					}
					else if (Global_2561953 == 72)
					{
					}
				}
			}
			break;
		
		case 1484379715:
		case 1206993109:
			if (iParam6)
			{
				return false;
			}
			break;
		
		case 1019352240:
			if (iParam4)
			{
				return false;
			}
			if (iParam3)
			{
				if (Global_2561953 == -1)
				{
					if (!Global_91330.f_1446)
					{
						if (func_170(13, -1))
						{
							return false;
						}
						else if (func_170(14, -1))
						{
							return false;
						}
						else if (func_170(15, -1))
						{
							return false;
						}
						else if (func_170(16, -1))
						{
						}
						else if (func_170(71, -1))
						{
						}
						else if (func_170(72, -1))
						{
						}
					}
				}
				else if (Global_2561953 == 13)
				{
					return false;
				}
				else if (Global_2561953 == 14)
				{
					return false;
				}
				else if (Global_2561953 == 15)
				{
					return false;
				}
				else if (Global_2561953 == 16)
				{
				}
				else if (Global_2561953 == 71)
				{
				}
				else if (Global_2561953 == 72)
				{
				}
			}
			break;
		
		case 0:
		case 2:
		case -518474626:
			if (iParam3)
			{
				if (!gameplay::is_string_null_or_empty(sParam0))
				{
					switch (gameplay::get_hash_key(sParam0))
					{
						case 1774176944:
						case 1363941829:
						case -328314869:
						case -1903783095:
						case -1674924399:
						case -106785870:
						case -344656041:
						case 1480281490:
						case -2097372400:
						case 118598456:
						case -1386676768:
						case 1464947154:
						case -1282504117:
						case -1877294236:
						case 736950162:
							return false;
							break;
						}
					}
			}
			if (iVar0 == joaat("mp_m_freemode_01"))
			{
			}
			else if (iVar0 == joaat("mp_f_freemode_01"))
			{
				if (!iParam4)
				{
					if (Global_2561953 == -1)
					{
						if (!Global_91330.f_1446)
						{
							if (func_170(13, -1))
							{
							}
							else if (func_170(14, -1))
							{
							}
							else if (func_170(15, -1))
							{
							}
							else if (func_170(16, -1))
							{
							}
							else if (func_170(71, -1))
							{
							}
							else if (func_170(72, -1))
							{
							}
						}
					}
					else if (Global_2561953 == 13)
					{
						return false;
					}
					else if (Global_2561953 == 14)
					{
					}
					else if (Global_2561953 == 15)
					{
						return false;
					}
					else if (Global_2561953 == 16)
					{
					}
					else if (Global_2561953 == 71)
					{
					}
					else if (Global_2561953 == 72)
					{
					}
				}
			}
			break;
		
		case 277073536:
			if (iParam5)
			{
				return false;
			}
			break;
	}
	return true;
}

int func_162(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x247D8
{
	int iVar0;
	int iVar1;
	
	func_169(sParam0, -1, 0, "", "", "", "", iParam2, -1, 0);
	if (entity::does_entity_exist(iParam3) && !ped::is_ped_injured(iParam3))
	{
		iVar0 = entity::get_entity_model(iParam3);
	}
	switch (iParam2)
	{
		case 0:
			switch (iParam1)
			{
				case 0:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_01", "singleplayer_overlays", "MK_000", "", iParam2, 300, 3);
					break;
				
				case 1:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_02", "singleplayer_overlays", "MK_001", "", iParam2, 450, 0);
					break;
				
				case 2:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_03", "singleplayer_overlays", "MK_002", "", iParam2, 250, 4);
					break;
				
				case 3:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_04", "singleplayer_overlays", "MK_003", "", iParam2, 175, 0);
					break;
				
				case 4:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_06", "singleplayer_overlays", "MK_005", "", iParam2, 380, 0);
					break;
				
				case 5:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_07", "singleplayer_overlays", "MK_006", "", iParam2, 180, 0);
					break;
				
				case 6:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_08", "singleplayer_overlays", "MK_007", "", iParam2, 240, 0);
					break;
				
				case 7:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_10", "singleplayer_overlays", "MK_009", "", iParam2, 195, 0);
					break;
				
				case 8:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_11", "singleplayer_overlays", "MK_010", "", iParam2, 280, 6);
					break;
				
				case 9:
					if (func_168() || func_167())
					{
						iVar1 = 400;
						if (func_166() && (func_165() || func_164()))
						{
							iVar1 = 0;
						}
						func_169(sParam0, iParam1, iParam3, "TAT_MIC_12", "singleplayer_overlays", "MK_011", "", iParam2, iVar1, 2);
					}
					break;
				
				case 10:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_13", "singleplayer_overlays", "MK_012", "", iParam2, 320, 3);
					break;
				
				case 11:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_14", "singleplayer_overlays", "MK_013", "", iParam2, 500, 2);
					break;
				
				case 12:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_16", "singleplayer_overlays", "MK_015", "", iParam2, 220, 0);
					break;
				
				case 13:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_17", "singleplayer_overlays", "MK_016", "", iParam2, 320, 4);
					break;
				
				case 14:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_18", "singleplayer_overlays", "MK_017", "", iParam2, 140, 2);
					break;
				
				case 15:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_20", "singleplayer_overlays", "MK_019", "", iParam2, 350, 0);
					break;
				
				case 16:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_21", "singleplayer_overlays", "MK_020", "", iParam2, 350, 0);
					break;
				
				case 17:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_05", "singleplayer_overlays", "MK_004", "", iParam2, 120, 1);
					break;
				
				case 18:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_09", "singleplayer_overlays", "MK_008", "", iParam2, 99, 1);
					break;
				
				case 19:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_15", "singleplayer_overlays", "MK_014", "", iParam2, 400, 1);
					break;
				
				case 20:
					func_169(sParam0, iParam1, iParam3, "TAT_MIC_19", "singleplayer_overlays", "MK_018", "", iParam2, 420, 1);
					break;
				
				default:
					func_163(sParam0, iParam2, iParam1, 21);
					break;
			}
			break;
		
		case 1:
			switch (iParam1)
			{
				case 0:
					if (func_168() || func_167())
					{
						iVar1 = 450;
						if (func_166() && (func_165() || func_164()))
						{
							iVar1 = 0;
						}
						func_169(sParam0, iParam1, iParam3, "TAT_FRA_01", "singleplayer_overlays", "fr_000", "", iParam2, iVar1, 0);
					}
					break;
				
				case 1:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_02", "singleplayer_overlays", "fr_001", "", iParam2, 230, 0);
					break;
				
				case 2:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_03", "singleplayer_overlays", "fr_002", "", iParam2, 310, 0);
					break;
				
				case 3:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_04", "singleplayer_overlays", "fr_003", "", iParam2, 260, 0);
					break;
				
				case 4:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_07", "singleplayer_overlays", "fr_006", "", iParam2, 240, 2);
					break;
				
				case 5:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_08", "singleplayer_overlays", "fr_007", "", iParam2, 190, 3);
					break;
				
				case 6:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_09", "singleplayer_overlays", "fr_008", "", iParam2, 200, 2);
					break;
				
				case 7:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_10", "singleplayer_overlays", "fr_009", "", iParam2, 225, 0);
					break;
				
				case 8:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_12", "singleplayer_overlays", "fr_011", "", iParam2, 195, 0);
					break;
				
				case 9:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_13", "singleplayer_overlays", "fr_012", "", iParam2, 275, 2);
					break;
				
				case 10:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_14", "singleplayer_overlays", "fr_013", "", iParam2, 80, 0);
					break;
				
				case 11:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_15", "singleplayer_overlays", "fr_014", "", iParam2, 95, 0);
					break;
				
				case 12:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_16", "singleplayer_overlays", "fr_015", "", iParam2, 300, 3);
					break;
				
				case 13:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_17", "singleplayer_overlays", "fr_016", "", iParam2, 450, 3);
					break;
				
				case 14:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_18", "singleplayer_overlays", "fr_017", "", iParam2, 345, 3);
					break;
				
				case 15:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_19", "singleplayer_overlays", "fr_018", "", iParam2, 550, 0);
					break;
				
				case 16:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_20", "singleplayer_overlays", "fr_019", "", iParam2, 200, 0);
					break;
				
				case 17:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_21", "singleplayer_overlays", "fr_020", "", iParam2, 180, 0);
					break;
				
				case 18:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_22", "singleplayer_overlays", "fr_021", "", iParam2, 140, 0);
					break;
				
				case 19:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_24", "singleplayer_overlays", "fr_023", "", iParam2, 245, 0);
					break;
				
				case 20:
					break;
				
				case 21:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_26", "singleplayer_overlays", "fr_025", "", iParam2, 370, 0);
					break;
				
				case 22:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_27", "singleplayer_overlays", "fr_026", "", iParam2, 350, 0);
					break;
				
				case 23:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_28", "singleplayer_overlays", "fr_027", "", iParam2, 310, 0);
					break;
				
				case 24:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_29", "singleplayer_overlays", "fr_028", "", iParam2, 210, 0);
					break;
				
				case 25:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_30", "singleplayer_overlays", "fr_029", "", iParam2, 245, 0);
					break;
				
				case 26:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_31", "singleplayer_overlays", "fr_030", "", iParam2, 85, 0);
					break;
				
				case 27:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_32", "singleplayer_overlays", "fr_031", "", iParam2, 210, 0);
					break;
				
				case 28:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_33", "singleplayer_overlays", "fr_032", "", iParam2, 225, 0);
					break;
				
				case 29:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_34", "singleplayer_overlays", "fr_033", "", iParam2, 145, 0);
					break;
				
				case 30:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_35", "singleplayer_overlays", "fr_034", "", iParam2, 230, 0);
					break;
				
				case 31:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_36", "singleplayer_overlays", "fr_035", "", iParam2, 195, 0);
					break;
				
				case 32:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_37", "singleplayer_overlays", "fr_036", "", iParam2, 255, 0);
					break;
				
				case 33:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_38", "singleplayer_overlays", "fr_037", "", iParam2, 300, 0);
					break;
				
				case 34:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_40", "singleplayer_overlays", "fr_039", "", iParam2, 300, 0);
					break;
				
				case 35:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_05", "singleplayer_overlays", "fr_004", "", iParam2, 255, 1);
					break;
				
				case 36:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_06", "singleplayer_overlays", "fr_005", "", iParam2, 175, 1);
					break;
				
				case 37:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_11", "singleplayer_overlays", "fr_010", "", iParam2, 520, 1);
					break;
				
				case 38:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_23", "singleplayer_overlays", "fr_022", "", iParam2, 125, 1);
					break;
				
				case 39:
					func_169(sParam0, iParam1, iParam3, "TAT_FRA_39", "singleplayer_overlays", "fr_038", "", iParam2, 365, 1);
					break;
				
				default:
					func_163(sParam0, iParam2, iParam1, 40);
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 0:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_01", "singleplayer_overlays", "tp_000", "", iParam2, 120, 0);
					break;
				
				case 1:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_02", "singleplayer_overlays", "tp_001", "", iParam2, 150, 3);
					break;
				
				case 2:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_03", "singleplayer_overlays", "tp_002", "", iParam2, 100, 0);
					break;
				
				case 3:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_04", "singleplayer_overlays", "tp_003", "", iParam2, 140, 0);
					break;
				
				case 4:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_05", "singleplayer_overlays", "tp_004", "", iParam2, 250, 0);
					break;
				
				case 5:
					if (func_168() || func_167())
					{
						iVar1 = 380;
						if (func_166() && (func_165() || func_164()))
						{
							iVar1 = 0;
						}
						func_169(sParam0, iParam1, iParam3, "TAT_TRV_06", "singleplayer_overlays", "tp_005", "", iParam2, iVar1, 3);
					}
					break;
				
				case 6:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_07", "singleplayer_overlays", "tp_006", "", iParam2, 120, 0);
					break;
				
				case 7:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_08", "singleplayer_overlays", "tp_007", "", iParam2, 250, 0);
					break;
				
				case 8:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_09", "singleplayer_overlays", "tp_008", "", iParam2, 50, 3);
					break;
				
				case 9:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_10", "singleplayer_overlays", "tp_009", "", iParam2, 135, 2);
					break;
				
				case 10:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_11", "singleplayer_overlays", "tp_010", "", iParam2, 245, 0);
					break;
				
				case 11:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_12", "singleplayer_overlays", "tp_011", "", iParam2, 280, 0);
					break;
				
				case 12:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_13", "singleplayer_overlays", "tp_012", "", iParam2, 65, 0);
					break;
				
				case 13:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_14", "singleplayer_overlays", "tp_013", "", iParam2, 150, 6);
					break;
				
				case 14:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_15", "singleplayer_overlays", "tp_014", "", iParam2, 200, 0);
					break;
				
				case 15:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_16", "singleplayer_overlays", "tp_015", "", iParam2, 145, 0);
					break;
				
				case 16:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_17", "singleplayer_overlays", "tp_016", "", iParam2, 290, 0);
					break;
				
				case 17:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_18", "singleplayer_overlays", "tp_017", "", iParam2, 350, 3);
					break;
				
				case 18:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_19", "singleplayer_overlays", "tp_018", "", iParam2, 70, 0);
					break;
				
				case 19:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_20", "singleplayer_overlays", "tp_019", "", iParam2, 180, 6);
					break;
				
				case 20:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_21", "singleplayer_overlays", "tp_020", "", iParam2, 230, 0);
					break;
				
				case 21:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_22", "singleplayer_overlays", "tp_021", "", iParam2, 200, 0);
					break;
				
				case 22:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_24", "singleplayer_overlays", "tp_023", "", iParam2, 240, 0);
					break;
				
				case 23:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_25", "singleplayer_overlays", "tp_024", "", iParam2, 195, 0);
					break;
				
				case 24:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_26", "singleplayer_overlays", "tp_025", "", iParam2, 225, 2);
					break;
				
				case 25:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_28", "singleplayer_overlays", "tp_027", "", iParam2, 175, 0);
					break;
				
				case 26:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_29", "singleplayer_overlays", "tp_028", "", iParam2, 65, 0);
					break;
				
				case 27:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_30", "singleplayer_overlays", "tp_029", "", iParam2, 50, 0);
					break;
				
				case 28:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_31", "singleplayer_overlays", "tp_030", "", iParam2, 70, 0);
					break;
				
				case 29:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_34", "singleplayer_overlays", "tp_033", "", iParam2, 70, 0);
					break;
				
				case 30:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_23", "singleplayer_overlays", "tp_022", "", iParam2, 500, 1);
					break;
				
				case 31:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_27", "singleplayer_overlays", "tp_026", "", iParam2, 300, 1);
					break;
				
				case 32:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_32", "singleplayer_overlays", "tp_031", "", iParam2, 190, 1);
					break;
				
				case 33:
					func_169(sParam0, iParam1, iParam3, "TAT_TRV_33", "singleplayer_overlays", "tp_032", "", iParam2, 129, 1);
					break;
				
				default:
					func_163(sParam0, iParam2, iParam1, 34);
					break;
			}
			break;
		
		case 3:
		case 4:
			switch (iParam1)
			{
				case 0:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_008", "multiplayer_overlays", "000", "", iParam2, system::round((system::to_float(20000) * Global_262145.f_2902)), 0);
					break;
				
				case 1:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_009", "multiplayer_overlays", "001", "", iParam2, system::round((system::to_float(1400) * Global_262145.f_2903)), 2);
					break;
				
				case 2:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_010", "multiplayer_overlays", "002", "", iParam2, system::round((system::to_float(9750) * Global_262145.f_2904)), 3);
					break;
				
				case 3:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_011", "multiplayer_overlays", "003", "", iParam2, system::round((system::to_float(2150) * Global_262145.f_2905)), 0);
					break;
				
				case 4:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_012", "multiplayer_overlays", "004", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2906)), 0);
					break;
				
				case 54:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_013", "multiplayer_overlays", "005", "", iParam2, system::round((system::to_float(12400) * Global_262145.f_2907)), 1);
					break;
				
				case 5:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_014", "multiplayer_overlays", "006", "", iParam2, system::round((system::to_float(3500) * Global_262145.f_2908)), 0);
					break;
				
				case 6:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_015", "multiplayer_overlays", "007", "", iParam2, system::round((system::to_float(4950) * Global_262145.f_2909)), 2);
					break;
				
				case 55:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_016", "multiplayer_overlays", "008", "", iParam2, system::round((system::to_float(1350) * Global_262145.f_2910)), 1);
					break;
				
				case 7:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_017", "multiplayer_overlays", "009", "", iParam2, system::round((system::to_float(1450) * Global_262145.f_2911)), 0);
					break;
				
				case 8:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_018", "multiplayer_overlays", "010", "", iParam2, system::round((system::to_float(2700) * Global_262145.f_2912)), 7);
					break;
				
				case 9:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_019", "multiplayer_overlays", "011", "rank", iParam2, system::round((system::to_float(1200) * Global_262145.f_2913)), 0);
					break;
				
				case 10:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_020", "multiplayer_overlays", "012", "rank", iParam2, system::round((system::to_float(1500) * Global_262145.f_2914)), 0);
					break;
				
				case 11:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_021", "multiplayer_overlays", "013", "rank", iParam2, system::round((system::to_float(2650) * Global_262145.f_2915)), 0);
					break;
				
				case 56:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_022", "multiplayer_overlays", "014", "", iParam2, system::round((system::to_float(1900) * Global_262145.f_2916)), 1);
					break;
				
				case 12:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_023", "multiplayer_overlays", "015", "", iParam2, system::round((system::to_float(4950) * Global_262145.f_2917)), 2);
					break;
				
				case 57:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_024", "multiplayer_overlays", "016", "", iParam2, system::round((system::to_float(2400) * Global_262145.f_2918)), 1);
					break;
				
				case 58:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_025", "multiplayer_overlays", "017", "", iParam2, system::round((system::to_float(5100) * Global_262145.f_2919)), 1);
					break;
				
				case 59:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_026", "multiplayer_overlays", "018", "", iParam2, system::round((system::to_float(7400) * Global_262145.f_2920)), 1);
					break;
				
				case 60:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_027", "multiplayer_overlays", "019", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2921)), 1);
					break;
				
				case 17:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_201", "multiplayer_overlays", "005", "", iParam2, system::round((system::to_float(2400) * Global_262145.f_2926)), 2);
					break;
				
				case 18:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_202", "multiplayer_overlays", "006", "", iParam2, system::round((system::to_float(5100) * Global_262145.f_2927)), 2);
					break;
				
				case 19:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_203", "multiplayer_overlays", "015", "", iParam2, system::round((system::to_float(3600) * Global_262145.f_2928)), 2);
					break;
				
				case 20:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_204", "multiplayer_overlays", "000", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2929)), 3);
					break;
				
				case 21:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_205", "multiplayer_overlays", "001", "", iParam2, system::round((system::to_float(12500) * Global_262145.f_2930)), 3);
					break;
				
				case 22:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_206", "multiplayer_overlays", "003", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2931)), 3);
					break;
				
				case 23:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_207", "multiplayer_overlays", "014", "", iParam2, system::round((system::to_float(5000) * Global_262145.f_2932)), 3);
					break;
				
				case 24:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_208", "multiplayer_overlays", "018", "", iParam2, system::round((system::to_float(7500) * Global_262145.f_2933)), 3);
					break;
				
				case 25:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_209", "multiplayer_overlays", "002", "", iParam2, system::round((system::to_float(3750) * Global_262145.f_2934)), 2);
					break;
				
				case 26:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_210", "multiplayer_overlays", "007", "", iParam2, system::round((system::to_float(3750) * Global_262145.f_2935)), 3);
					break;
				
				case 27:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_211", "multiplayer_overlays", "008", "", iParam2, system::round((system::to_float(4800) * Global_262145.f_2936)), 3);
					break;
				
				case 28:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_212", "multiplayer_overlays", "017", "", iParam2, system::round((system::to_float(3500) * Global_262145.f_2937)), 3);
					break;
				
				case 61:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_213", "multiplayer_overlays", "009", "", iParam2, system::round((system::to_float(12350) * Global_262145.f_2938)), 1);
					break;
				
				case 62:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_214", "multiplayer_overlays", "011", "", iParam2, system::round((system::to_float(1900) * Global_262145.f_2939)), 1);
					break;
				
				case 63:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_215", "multiplayer_overlays", "013", "", iParam2, system::round((system::to_float(4500) * Global_262145.f_2940)), 1);
					break;
				
				case 64:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_216", "multiplayer_overlays", "016", "", iParam2, system::round((system::to_float(12250) * Global_262145.f_2941)), 1);
					break;
				
				case 65:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_217", "multiplayer_overlays", "019", "", iParam2, system::round((system::to_float(12300) * Global_262145.f_2942)), 1);
					break;
				
				case 29:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_218", "multiplayer_overlays", "010", "", iParam2, system::round((system::to_float(2500) * Global_262145.f_2943)), 0);
					break;
				
				case 30:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_219", "multiplayer_overlays", "004", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2944)), 0);
					break;
				
				case 31:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_220", "multiplayer_overlays", "012", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2945)), 0);
					break;
				
				case 66:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_221", "multiplayer_overlays", "020", "", iParam2, system::round((system::to_float(7500) * Global_262145.f_2946)), 1);
					break;
				
				case 32:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_222", "multiplayer_overlays", "021", "", iParam2, system::round((system::to_float(5000) * Global_262145.f_2947)), 2);
					break;
				
				case 33:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_223", "multiplayer_overlays", "022", "", iParam2, system::round((system::to_float(7300) * Global_262145.f_2948)), 3);
					break;
				
				case 34:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_224", "multiplayer_overlays", "023", "", iParam2, system::round((system::to_float(7250) * Global_262145.f_2949)), 2);
					break;
				
				case 35:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_225", "multiplayer_overlays", "024", "", iParam2, system::round((system::to_float(11900) * Global_262145.f_2950)), 0);
					break;
				
				case 36:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_226", "multiplayer_overlays", "025", "", iParam2, system::round((system::to_float(2750) * Global_262145.f_2951)), 0);
					break;
				
				case 37:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_227", "multiplayer_overlays", "026", "", iParam2, system::round((system::to_float(1750) * Global_262145.f_2952)), 0);
					break;
				
				case 38:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_228", "multiplayer_overlays", "027", "", iParam2, system::round((system::to_float(7300) * Global_262145.f_2953)), 3);
					break;
				
				case 39:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_229", "multiplayer_overlays", "028", "", iParam2, system::round((system::to_float(3250) * Global_262145.f_2954)), 2);
					break;
				
				case 40:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_230", "multiplayer_overlays", "029", "", iParam2, system::round((system::to_float(1000) * Global_262145.f_2955)), 0);
					break;
				
				case 67:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_231", "multiplayer_overlays", "030", "", iParam2, system::round((system::to_float(5000) * Global_262145.f_2956)), 1);
					break;
				
				case 41:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_232", "multiplayer_overlays", "031", "", iParam2, system::round((system::to_float(7500) * Global_262145.f_2957)), 2);
					break;
				
				case 68:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_233", "multiplayer_overlays", "032", "", iParam2, system::round((system::to_float(5100) * Global_262145.f_2958)), 1);
					break;
				
				case 42:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_234", "multiplayer_overlays", "033", "", iParam2, system::round((system::to_float(5050) * Global_262145.f_2959)), 0);
					break;
				
				case 43:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_235", "multiplayer_overlays", "034", "", iParam2, system::round((system::to_float(2450) * Global_262145.f_2960)), 2);
					break;
				
				case 44:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_236", "multiplayer_overlays", "035", "", iParam2, system::round((system::to_float(4950) * Global_262145.f_2961)), 0);
					break;
				
				case 45:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_237", "multiplayer_overlays", "036", "", iParam2, system::round((system::to_float(5100) * Global_262145.f_2962)), 0);
					break;
				
				case 46:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_238", "multiplayer_overlays", "037", "", iParam2, system::round((system::to_float(12250) * Global_262145.f_2963)), 0);
					break;
				
				case 47:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_239", "multiplayer_overlays", "038", "", iParam2, system::round((system::to_float(1150) * Global_262145.f_2964)), 3);
					break;
				
				case 48:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_240", "multiplayer_overlays", "039", "", iParam2, system::round((system::to_float(7500) * Global_262145.f_2965)), 3);
					break;
				
				case 49:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_241", "multiplayer_overlays", "040", "", iParam2, system::round((system::to_float(7600) * Global_262145.f_2966)), 3);
					break;
				
				case 50:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_242", "multiplayer_overlays", "041", "", iParam2, system::round((system::to_float(2600) * Global_262145.f_2967)), 2);
					break;
				
				case 51:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_243", "multiplayer_overlays", "042", "", iParam2, system::round((system::to_float(2500) * Global_262145.f_2968)), 3);
					break;
				
				case 52:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_244", "multiplayer_overlays", "043", "", iParam2, system::round((system::to_float(7450) * Global_262145.f_2969)), 3);
					break;
				
				case 53:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_245", "multiplayer_overlays", "044", "", iParam2, system::round((system::to_float(7500) * Global_262145.f_2970)), 0);
					break;
				
				case 69:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_246", "multiplayer_overlays", "045", "", iParam2, system::round((system::to_float(10000) * Global_262145.f_2971)), 1);
					break;
				
				case 70:
					func_169(sParam0, iParam1, iParam3, "TAT_FM_247", "multiplayer_overlays", "047", "", iParam2, system::round((system::to_float(2500) * Global_262145.f_2972)), 2);
					break;
			}
			if (iVar0 == joaat("mp_m_freemode_01"))
			{
				switch (iParam1)
				{
					case 73:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_001", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 74:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_002", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 75:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_003", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 76:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_004", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 77:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_005", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 78:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_006", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 79:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_009", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 80:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_013", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 81:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_014", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 82:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_015", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 83:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_016", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 84:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_019", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 85:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_020", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 86:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_036", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 90:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_017", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 91:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_018", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 124:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_046", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 125:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_045", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 87:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_000", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2973)), 0);
						break;
					
					case 88:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_001", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2974)), 0);
						break;
					
					case 89:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_002", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2975)), 0);
						break;
					
					case 93:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 94:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_002", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 95:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_003", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 96:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_004", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 97:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_005", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 98:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_006", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 99:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_007", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 100:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_008", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 101:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_009", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 102:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_010", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 103:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_011", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 104:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_012", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 105:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_013", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 106:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_014", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 107:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_015", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 108:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 109:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 110:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 111:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 112:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 113:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_M_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 114:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGInd_M_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 115:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 116:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 117:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 123:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "mpBeach_overlays", "FM_Hair_Fuzz", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 13:
						func_169(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_A", "crewLogo", iParam2, system::round((system::to_float(5000) * Global_262145.f_2922)), 0);
						break;
					
					case 14:
						func_169(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_B", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2923)), 0);
						break;
					
					case 15:
						func_169(sParam0, iParam1, iParam3, "TAT_FMM_CLB", "multiplayer_overlays", "000_C", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2924)), 2);
						break;
					
					case 16:
						func_169(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_D", "crewLogo", iParam2, system::round((system::to_float(5000) * Global_262145.f_2925)), 0);
						break;
					
					case 71:
						func_169(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_E", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2925)), 0);
						break;
					
					case 72:
						func_169(sParam0, iParam1, iParam3, "TAT_FMM_CLB", "multiplayer_overlays", "000_F", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2925)), 0);
						break;
				}
			}
			else if (iVar0 == joaat("mp_f_freemode_01"))
			{
				switch (iParam1)
				{
					case 73:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_027_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 74:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_028_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 75:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_034_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 76:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_036_f", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 77:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_048", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 78:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_052", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 79:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_053", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 80:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_054", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 81:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_055", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 82:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_056", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 83:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_058", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 84:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_067", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 85:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_068", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 92:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_051", "torsoDecal", iParam2, 100, 0);
						break;
					
					case 87:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_F_000", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2973)), 0);
						break;
					
					case 88:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_F_001", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2974)), 0);
						break;
					
					case 89:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_F_002", "torsoDecal", iParam2, system::round((system::to_float(100) * Global_262145.f_2975)), 0);
						break;
					
					case 93:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 94:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_002", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 95:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_003", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 96:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_004", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 97:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_005", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 98:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_006", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 99:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_007", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 100:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_008", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 101:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_009", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 102:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_010", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 103:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_011", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 104:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_012", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 105:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_013", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 106:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_014", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 107:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_015", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 108:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 109:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 110:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 111:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 112:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 113:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_F_Hair_001", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 114:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGInd_F_Hair_000", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 115:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 116:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 117:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 118:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 119:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 120:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 121:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 122:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 123:
						func_169(sParam0, iParam1, iParam3, "NO_LABEL", "mpBeach_overlays", "FM_Hair_Fuzz", "hairOverlay", iParam2, 100, 0);
						break;
					
					case 13:
						func_169(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_A", "crewLogo", iParam2, system::round((system::to_float(5000) * Global_262145.f_2922)), 0);
						break;
					
					case 14:
						func_169(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_B", "crewLogo", iParam2, system::round((system::to_float(5000) * Global_262145.f_2923)), 0);
						break;
					
					case 15:
						func_169(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_C", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2924)), 2);
						break;
					
					case 16:
						func_169(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_D", "crewLogo", iParam2, system::round((system::to_float(10000) * Global_262145.f_2925)), 0);
						break;
					}
			}
			break;
	}
	if ((iParam2 == 3 || iParam2 == 4) && iParam1 >= 129)
	{
		func_163(sParam0, iParam2, iParam1, 129);
	}
	if (iParam4 == 22)
	{
		sParam0->f_7 *= 2;
	}
	return sParam0->f_11 != -1;
}

void func_163(char* sParam0, int iParam1, int iParam2, int iParam3)//Position - 0x27864
{
	int iVar0;
	int iVar1;
	struct<8> Var2;
	
	iVar0 = (iParam2 - iParam3);
	iVar1 = dlc1::_0x278F76C3B0A8F109(iParam1);
	if (iVar1 > 0 && iVar0 < iVar1)
	{
		if (dlc1::_0xFF56381874F82086(iParam1, iVar0, &Var2))
		{
			if (!dlc1::_is_dlc_data_empty(Var2))
			{
				sParam0->f_11 = iParam2;
				MemCopy(sParam0, {Var2.f_7}, 4);
				sParam0->f_5 = Var2.f_3;
				sParam0->f_4 = Var2.f_2;
				sParam0->f_8 = Var2.f_6;
				sParam0->f_6 = iParam1;
				sParam0->f_7 = Var2.f_4;
				sParam0->f_9 = (iParam2 / 32);
				sParam0->f_10 = (iParam2 % 32);
				sParam0->f_12 = Var2.f_5;
			}
		}
	}
}

bool func_164()//Position - 0x278F6
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	if (gameplay::is_bit_set(Global_25, 5))
	{
		if (gameplay::is_bit_set(Global_25, 1) || gameplay::is_bit_set(Global_25, 3))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	if (stats::stat_get_int(joaat("sp_unlock_exclus_content"), &iVar0, -1))
	{
		if (gameplay::is_bit_set(iVar0, 5))
		{
			if (gameplay::is_bit_set(iVar0, 1) || gameplay::is_bit_set(iVar0, 3))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
	}
	if (stats::stat_slot_is_loaded(0))
	{
		if (Global_138275.f_3)
		{
			iVar2 = joaat("mpply_plat_up_lb_check");
			if (stats::stat_get_int(iVar2, &iVar1, -1))
			{
				if (gameplay::is_bit_set(iVar1, 5))
				{
					return true;
				}
			}
		}
	}
	if (gameplay::_0x5AA3BEFA29F03AD4())
	{
		iVar3 = gameplay::get_profile_setting(866);
		if (gameplay::is_bit_set(iVar3, 1) || gameplay::is_bit_set(iVar3, 3))
		{
			return true;
		}
	}
	if (network::network_is_signed_in())
	{
		if (network::_network_are_ros_available())
		{
			if (network::_0x91B87C55093DE351())
			{
				stats::stat_get_int(joaat("sp_unlock_exclus_content"), &iVar4, -1);
				gameplay::set_bit(&iVar4, 1);
				gameplay::set_bit(&iVar4, 3);
				gameplay::set_bit(&iVar4, 5);
				gameplay::set_bit(&Global_25, 1);
				gameplay::set_bit(&Global_25, 3);
				gameplay::set_bit(&Global_25, 5);
				stats::stat_set_int(joaat("sp_unlock_exclus_content"), iVar4, 1);
				if (gameplay::_0x5AA3BEFA29F03AD4())
				{
					iVar4 = gameplay::get_profile_setting(866);
					gameplay::set_bit(&iVar4, 1);
					gameplay::set_bit(&iVar4, 3);
					stats::_0xDAC073C7901F9E15(iVar4);
				}
				return true;
			}
		}
	}
	return false;
}

bool func_165()//Position - 0x27A4A
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (gameplay::is_bit_set(Global_25, 6))
	{
		if (gameplay::is_bit_set(Global_25, 2) || gameplay::is_bit_set(Global_25, 4))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	if (stats::stat_get_int(joaat("sp_unlock_exclus_content"), &iVar0, -1))
	{
		if (gameplay::is_bit_set(iVar0, 6))
		{
			if (gameplay::is_bit_set(iVar0, 2) || gameplay::is_bit_set(iVar0, 4))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
	}
	if (stats::stat_slot_is_loaded(0))
	{
		if (Global_138275.f_3)
		{
			iVar2 = joaat("mpply_plat_up_lb_check");
			if (stats::stat_get_int(iVar2, &iVar1, -1))
			{
				if (gameplay::is_bit_set(iVar1, 8))
				{
					return true;
				}
			}
		}
	}
	if (gameplay::_0x5AA3BEFA29F03AD4())
	{
		iVar3 = gameplay::get_profile_setting(866);
		if (gameplay::is_bit_set(iVar3, 2) || gameplay::is_bit_set(iVar3, 4))
		{
			return true;
		}
	}
	return false;
}

bool func_166()//Position - 0x27B1B
{
	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_138274 == 2)
	{
		return true;
	}
	else if (Global_138274 == 3)
	{
		return false;
	}
	if (gameplay::_0x5AA3BEFA29F03AD4())
	{
		if (gameplay::is_bit_set(gameplay::get_profile_setting(866), 0))
		{
			return true;
		}
	}
	return false;
}

bool func_167()//Position - 0x27BD6
{
	return true;
}

bool func_168()//Position - 0x27BDF
{
	return true;
}

void func_169(char* sParam0, int iParam1, int iParam2, char* sParam3, char* sParam4, char* sParam5, char* sParam6, int iParam7, int iParam8, int iParam9)//Position - 0x27BE8
{
	char cVar0[32];
	
	sParam0->f_11 = iParam1;
	StringCopy(sParam0, sParam3, 16);
	sParam0->f_4 = gameplay::get_hash_key(sParam4);
	sParam0->f_5 = gameplay::get_hash_key(sParam5);
	sParam0->f_8 = gameplay::get_hash_key(sParam6);
	sParam0->f_6 = iParam7;
	sParam0->f_7 = iParam8;
	sParam0->f_9 = (iParam1 / 32);
	sParam0->f_10 = (iParam1 % 32);
	sParam0->f_12 = iParam9;
	if (entity::does_entity_exist(iParam2) && !ped::is_ped_injured(iParam2))
	{
		if ((sParam0->f_6 == 0 || sParam0->f_6 == 1) || sParam0->f_6 == 2)
		{
		}
		else if (sParam0->f_6 == 3 || sParam0->f_6 == 4)
		{
			StringCopy(&cVar0, "", 32);
			if (((((sParam0->f_11 == 13 || sParam0->f_11 == 14) || sParam0->f_11 == 15) || sParam0->f_11 == 16) || sParam0->f_11 == 71) || sParam0->f_11 == 72)
			{
				StringConCat(&cVar0, "FM_", 32);
				StringConCat(&cVar0, "CREW_", 32);
				if (entity::get_entity_model(iParam2) == joaat("mp_m_freemode_01"))
				{
					StringConCat(&cVar0, "M_", 32);
				}
				else
				{
					StringConCat(&cVar0, "F_", 32);
				}
				StringConCat(&cVar0, sParam5, 32);
			}
			else if (gameplay::are_strings_equal(sParam6, "torsoDecal") || gameplay::are_strings_equal(sParam6, "hairOverlay"))
			{
				StringCopy(&cVar0, sParam5, 32);
			}
			else
			{
				if (((((((((((((((((((sParam0->f_11 == 0 || sParam0->f_11 == 1) || sParam0->f_11 == 2) || sParam0->f_11 == 4) || sParam0->f_11 == 3) || sParam0->f_11 == 54) || sParam0->f_11 == 5) || sParam0->f_11 == 6) || sParam0->f_11 == 55) || sParam0->f_11 == 7) || sParam0->f_11 == 8) || sParam0->f_11 == 9) || sParam0->f_11 == 10) || sParam0->f_11 == 11) || sParam0->f_11 == 56) || sParam0->f_11 == 12) || sParam0->f_11 == 57) || sParam0->f_11 == 58) || sParam0->f_11 == 59) || sParam0->f_11 == 60)
				{
					StringConCat(&cVar0, "FM_Tat_Award_", 32);
				}
				else
				{
					StringConCat(&cVar0, "FM_Tat_", 32);
				}
				if (entity::get_entity_model(iParam2) == joaat("mp_m_freemode_01") || sParam0->f_11 == 20)
				{
					StringConCat(&cVar0, "M_", 32);
				}
				else
				{
					StringConCat(&cVar0, "F_", 32);
				}
				StringConCat(&cVar0, sParam5, 32);
			}
			sParam0->f_5 = gameplay::get_hash_key(&cVar0);
			if (ped::_get_tattoo_zone(sParam0->f_4, sParam0->f_5) == 7)
			{
				sParam0->f_11 = -1;
			}
		}
	}
}

int func_170(int iParam0, int iParam1)//Position - 0x27E9F
{
	int iVar0;
	int iVar1;
	
	if (iParam0 == -1)
	{
		return false;
	}
	iVar0 = func_172(iParam0, iParam1);
	iVar1 = func_171(iParam0);
	if (iVar1 < 0 || iVar1 >= 32)
	{
		return false;
	}
	return gameplay::is_bit_set(iVar0, iVar1);
}

int func_171(int iParam0)//Position - 0x27EE1
{
	return (iParam0 % 32);
}

var func_172(int iParam0, int iParam1)//Position - 0x27EEE
{
	var uVar0;
	
	uVar0 = func_16(func_173(iParam0), iParam1, 0);
	return uVar0;
}

int func_173(int iParam0)//Position - 0x27F07
{
	int iVar0;
	int iVar1;
	
	iVar0 = iParam0;
	iVar1 = func_176(iVar0);
	if ((func_175() == 0 || func_174() == 0) || (func_175() == 999 && func_174() == 999))
	{
		switch (iVar1)
		{
			case 0:
				return 1041;
				break;
			
			case 1:
				return 1042;
				break;
			
			case 2:
				return 1043;
				break;
			
			case 3:
				return 1044;
				break;
			
			case 4:
				return 1045;
				break;
			
			case 5:
				return 1046;
				break;
			
			case 6:
				return 1480;
				break;
			
			case 7:
				return 1481;
				break;
			
			case 8:
				return 1482;
				break;
			
			case 9:
				return 1483;
				break;
			
			case 10:
				return 1939;
				break;
			
			case 11:
				return 1940;
				break;
			
			case 12:
				return 1941;
				break;
			
			case 13:
				return 2401;
				break;
			
			case 14:
				return 2421;
				break;
			
			case 15:
				return 2424;
				break;
			
			case 16:
				return 2427;
				break;
			
			case 17:
				return 2590;
				break;
			
			case 18:
				return 2593;
				break;
			
			case 19:
				return 2596;
				break;
			}
	}
	return 3949;
}

var func_174()//Position - 0x28084
{
	return Global_25121;
}

var func_175()//Position - 0x2808F
{
	return Global_25120;
}

int func_176(int iParam0)//Position - 0x2809A
{
	return (iParam0 / 32);
}

bool func_177(int iParam0)//Position - 0x280A7
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
		{
			iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
			iVar2 = func_16(1749, -1, 0);
			if (iVar0 > 15)
			{
				iVar3 = func_210(iParam0, 11, -1);
				if (iVar3 >= 256)
				{
					iVar4 = func_104(joaat("mp_f_freemode_01"), iVar3, 11, 4);
					if ((dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 362493804, 0))
					{
						if (iVar2 == 671171671)
						{
							return true;
						}
					}
				}
			}
		}
		else if (entity::get_entity_model(iParam0) == joaat("mp_f_freemode_01"))
		{
			iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
			iVar1 = ped::get_ped_texture_variation(iParam0, 11);
			iVar2 = func_16(1749, -1, 0);
			if (iVar0 == 3)
			{
				if (iVar1 == 14)
				{
					return true;
				}
			}
			else if (iVar0 > 15)
			{
				iVar5 = func_210(iParam0, 11, -1);
				if (iVar5 >= 256)
				{
					iVar6 = func_104(joaat("mp_f_freemode_01"), iVar5, 11, 4);
					if ((dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 362493804, 0))
					{
						if (iVar2 == 1911627074)
						{
							return true;
						}
					}
				}
			}
		}
	}
	return false;
}

bool func_178(int iParam0)//Position - 0x281F7
{
	int iVar0;
	
	iVar0 = Global_1587523[player::player_id() /*444*/].f_88.f_28;
	if (iVar0 != -1 && iVar0 < 4)
	{
		if (func_179(iVar0) != -1 && func_179(iVar0) != 0)
		{
			return true;
		}
	}
	if (!ped::is_ped_injured(iParam0))
	{
		if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
		{
			if (ped::get_ped_drawable_variation(iParam0, 11) == 15)
			{
				return true;
			}
		}
	}
	return false;
}

int func_179(int iParam0)//Position - 0x2826C
{
	if (iParam0 <= -1 || iParam0 >= 4)
	{
		return -1;
	}
	return Global_2435528.f_5734[iParam0];
}

bool func_180(int iParam0)//Position - 0x28294
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01"))
		{
			iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
			iVar1 = ped::get_ped_texture_variation(iParam0, 11);
			switch (iVar0)
			{
				case 0:
					switch (iVar1)
					{
						case 1:
						case 3:
						case 5:
						case 7:
						case 4:
						case 8:
						case 11:
							return true;
							break;
					}
					break;
				
				case 1:
					switch (iVar1)
					{
						case 3:
						case 5:
						case 6:
						case 8:
						case 4:
						case 14:
							return true;
							break;
						
						case 1:
						case 7:
						case 12:
							iVar2 = func_182(joaat("mp_f_freemode_01"), 11, func_210(iParam0, 11, -1), 0);
							if (((iVar1 == 1 && iVar2 == 88) || (iVar1 == 7 && iVar2 == 89)) || (iVar1 == 12 && iVar2 == 87))
							{
								return true;
							}
							break;
					}
					break;
				
				case 2:
					switch (iVar1)
					{
						case 9:
							return true;
							break;
					}
					break;
				
				default:
					if (iVar0 > 15)
					{
						iVar3 = func_210(iParam0, 11, -1);
						if (iVar3 >= 237)
						{
							iVar4 = func_104(joaat("mp_m_freemode_01"), iVar3, 11, 3);
							if ((dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 362493804, 0))
							{
								return true;
							}
						}
					}
					break;
			}
			iVar0 = ped::get_ped_drawable_variation(iParam0, 8);
			iVar1 = ped::get_ped_texture_variation(iParam0, 8);
			switch (iVar0)
			{
				case 0:
					switch (iVar1)
					{
						case 1:
						case 3:
						case 5:
						case 7:
						case 4:
						case 8:
						case 11:
							return true;
							break;
					}
					break;
				
				case 1:
					switch (iVar1)
					{
						case 3:
						case 5:
						case 6:
						case 8:
						case 4:
						case 14:
						case 1:
						case 7:
						case 12:
							return true;
							break;
					}
					break;
				
				case 2:
					switch (iVar1)
					{
						case 1:
						case 3:
						case 5:
						case 7:
						case 4:
						case 8:
						case 11:
							return true;
							break;
					}
					break;
				
				case 14:
					switch (iVar1)
					{
						case 3:
						case 5:
						case 6:
						case 8:
						case 4:
						case 14:
						case 1:
						case 7:
						case 12:
							return true;
							break;
					}
					break;
				
				default:
					if (iVar0 > 15)
					{
						iVar5 = func_210(iParam0, 8, -1);
						if (iVar5 >= 241)
						{
							iVar6 = func_104(joaat("mp_m_freemode_01"), iVar5, 8, 3);
							if ((dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 362493804, 0))
							{
								return true;
							}
						}
					}
					break;
			}
		}
		else if (entity::get_entity_model(iParam0) == joaat("mp_f_freemode_01"))
		{
			iVar0 = ped::get_ped_drawable_variation(iParam0, 11);
			iVar1 = ped::get_ped_texture_variation(iParam0, 11);
			switch (iVar0)
			{
				case 0:
					switch (iVar1)
					{
						case 1:
						case 2:
							return true;
							break;
						
						case 7:
						case 4:
						case 9:
							iVar7 = func_182(joaat("mp_f_freemode_01"), 11, func_210(iParam0, 11, -1), 0);
							if (((iVar1 == 7 && iVar7 == 88) || (iVar1 == 4 && iVar7 == 89)) || (iVar1 == 9 && iVar7 == 87))
							{
								return true;
							}
							break;
					}
					break;
				
				case 2:
					switch (iVar1)
					{
						case 0:
						case 1:
						case 2:
						case 3:
						case 4:
							return true;
							break;
					}
					break;
				
				case 3:
					switch (iVar1)
					{
						case 14:
							return true;
							break;
					}
					break;
				
				case 11:
					switch (iVar1)
					{
						case 10:
						case 11:
						case 15:
							return true;
							break;
					}
					break;
				
				default:
					if (iVar0 > 15)
					{
						iVar8 = func_210(iParam0, 11, -1);
						if (iVar8 >= 256)
						{
							iVar9 = func_104(joaat("mp_f_freemode_01"), iVar8, 11, 4);
							if ((dlc1::_0x341DE7ED1D2A1BFD(iVar9, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar9, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar9, 362493804, 0))
							{
								return true;
							}
						}
					}
					break;
			}
			iVar0 = ped::get_ped_drawable_variation(iParam0, 8);
			iVar1 = ped::get_ped_texture_variation(iParam0, 8);
			switch (iVar0)
			{
				case 0:
					switch (iVar1)
					{
						case 1:
						case 2:
							return true;
							break;
						
						case 7:
						case 4:
						case 9:
							iVar10 = func_182(joaat("mp_f_freemode_01"), 11, func_210(iParam0, 11, -1), 0);
							if (((iVar1 == 7 && iVar10 == 88) || (iVar1 == 4 && iVar10 == 89)) || (iVar1 == 9 && iVar10 == 87))
							{
								return true;
							}
							break;
					}
					break;
				
				case 1:
					switch (iVar1)
					{
						case 1:
						case 2:
							return true;
							break;
						
						case 7:
						case 4:
						case 9:
							iVar11 = func_182(joaat("mp_f_freemode_01"), 11, func_210(iParam0, 11, -1), 0);
							if (((iVar1 == 7 && iVar11 == 88) || (iVar1 == 4 && iVar11 == 89)) || (iVar1 == 9 && iVar11 == 87))
							{
								return true;
							}
							break;
					}
					break;
				
				case 2:
					switch (iVar1)
					{
						case 1:
						case 3:
						case 5:
						case 7:
						case 4:
						case 8:
						case 11:
							return true;
							break;
					}
					break;
				
				case 11:
					switch (iVar1)
					{
						case 10:
						case 11:
						case 15:
							return true;
							break;
					}
					break;
				
				case 14:
					switch (iVar1)
					{
						case 3:
						case 5:
						case 6:
						case 8:
						case 4:
						case 14:
						case 1:
						case 7:
						case 12:
							return true;
							break;
					}
					break;
				
				default:
					if (iVar0 > 15)
					{
						iVar12 = func_210(iParam0, 8, -1);
						if (iVar12 >= 136)
						{
							iVar13 = func_104(joaat("mp_f_freemode_01"), iVar12, 8, 4);
							if ((dlc1::_0x341DE7ED1D2A1BFD(iVar13, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, -1467682989, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar13, 362493804, 0))
							{
								return true;
							}
						}
					}
					break;
				}
		}
		if (func_181(iParam0))
		{
			return true;
		}
	}
	return false;
}

bool func_181(int iParam0)//Position - 0x289D0
{
	struct<5> Var0;
	int iVar17;
	int iVar18;
	int iVar19;
	
	iVar17 = entity::get_entity_model(iParam0) == joaat("mp_m_freemode_01");
	iVar18 = ped::get_ped_drawable_variation(iParam0, 11);
	iVar19 = ped::get_ped_texture_variation(iParam0, 11);
	if (iVar17)
	{
		dlc1::get_shop_ped_component(103980309, &Var0);
	}
	else
	{
		dlc1::get_shop_ped_component(-31075674, &Var0);
	}
	if (iVar18 == Var0.f_3 && iVar19 == Var0.f_4)
	{
		return true;
	}
	return false;
}

int func_182(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x28A33
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	var uVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	var uVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	int iVar21;
	var uVar22;
	int iVar23;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		if (iParam1 == 11)
		{
			if (iParam2 == 1)
			{
				return 73;
			}
			else if (iParam2 == 3)
			{
				return 74;
			}
			else if (iParam2 == 5)
			{
				return 75;
			}
			else if (iParam2 == 7)
			{
				return 76;
			}
			else if (iParam2 == 4)
			{
				return 77;
			}
			else if (iParam2 == 8)
			{
				return 78;
			}
			else if (iParam2 == 11)
			{
				return 79;
			}
			else if (iParam2 == 19)
			{
				return 80;
			}
			else if (iParam2 == 21)
			{
				return 81;
			}
			else if (iParam2 == 22)
			{
				return 82;
			}
			else if (iParam2 == 24)
			{
				return 83;
			}
			else if (iParam2 == 20)
			{
				return 84;
			}
			else if (iParam2 == 30)
			{
				return 85;
			}
			else if (iParam2 == 23)
			{
				if (func_186(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 17)
			{
				if (func_186(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 28)
			{
				if (func_186(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 41)
			{
				return 86;
			}
			else if (iParam2 >= 237)
			{
				iVar0 = func_104(iParam0, iParam2, 11, 3);
				if (iVar0 != -1)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 362493804, 0))
					{
						iVar1 = dlc1::_get_num_forced_components(iVar0);
						iVar2 = 0;
						while (iVar2 < iVar1)
						{
							dlc1::get_forced_component(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
							if (iVar5 == 10)
							{
								if (iVar3 != 0 && iVar3 != 1849449579)
								{
									return func_183(iVar3, 3);
								}
								else
								{
									return uVar4;
								}
							}
							iVar2++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_16(1749, -1, 0);
						}
						return func_183(iParam3, 3);
					}
				}
			}
		}
		else if (iParam1 == 8)
		{
			if (iParam2 == 1)
			{
				return 73;
			}
			else if (iParam2 == 3)
			{
				return 74;
			}
			else if (iParam2 == 5)
			{
				return 75;
			}
			else if (iParam2 == 7)
			{
				return 76;
			}
			else if (iParam2 == 4)
			{
				return 77;
			}
			else if (iParam2 == 8)
			{
				return 78;
			}
			else if (iParam2 == 11)
			{
				return 79;
			}
			else if (iParam2 == 23)
			{
				if (func_186(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 17)
			{
				if (func_186(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 28)
			{
				if (func_186(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 33)
			{
				return 73;
			}
			else if (iParam2 == 35)
			{
				return 74;
			}
			else if (iParam2 == 37)
			{
				return 75;
			}
			else if (iParam2 == 39)
			{
				return 76;
			}
			else if (iParam2 == 36)
			{
				return 77;
			}
			else if (iParam2 == 40)
			{
				return 78;
			}
			else if (iParam2 == 43)
			{
				return 79;
			}
			else if (iParam2 == 19)
			{
				return 80;
			}
			else if (iParam2 == 21)
			{
				return 81;
			}
			else if (iParam2 == 22)
			{
				return 82;
			}
			else if (iParam2 == 24)
			{
				return 83;
			}
			else if (iParam2 == 20)
			{
				return 84;
			}
			else if (iParam2 == 30)
			{
				return 85;
			}
			else if (iParam2 == 227)
			{
				return 80;
			}
			else if (iParam2 == 229)
			{
				return 81;
			}
			else if (iParam2 == 230)
			{
				return 82;
			}
			else if (iParam2 == 232)
			{
				return 83;
			}
			else if (iParam2 == 228)
			{
				return 84;
			}
			else if (iParam2 == 238)
			{
				return 85;
			}
			else if (iParam2 == 231)
			{
				if (func_186(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 225)
			{
				if (func_186(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 236)
			{
				if (func_186(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 >= 241)
			{
				iVar6 = func_104(iParam0, iParam2, 8, 3);
				if (iVar6 != -1)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 362493804, 0))
					{
						iVar7 = dlc1::_get_num_forced_components(iVar6);
						iVar8 = 0;
						while (iVar8 < iVar7)
						{
							dlc1::get_forced_component(iVar6, iVar8, &iVar9, &uVar10, &iVar11);
							if (iVar11 == 10)
							{
								if (iVar9 != 0 && iVar9 != 1849449579)
								{
									return func_183(iVar9, 3);
								}
								else
								{
									return uVar10;
								}
							}
							iVar8++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_16(1749, -1, 0);
						}
						return func_183(iParam3, 3);
					}
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		if (iParam1 == 11)
		{
			if (iParam2 == 1)
			{
				return 75;
			}
			else if (iParam2 == 2)
			{
				return 77;
			}
			else if (iParam2 == 4)
			{
				if (func_186(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 7)
			{
				if (func_186(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 9)
			{
				if (func_186(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 32)
			{
				return 78;
			}
			else if (iParam2 == 33)
			{
				return 79;
			}
			else if (iParam2 == 34)
			{
				return 80;
			}
			else if (iParam2 == 35)
			{
				return 81;
			}
			else if (iParam2 == 36)
			{
				return 82;
			}
			else if (iParam2 == 62)
			{
				return 76;
			}
			else if (iParam2 == 63)
			{
				return 83;
			}
			else if (iParam2 == 186)
			{
				return 84;
			}
			else if (iParam2 == 187)
			{
				return 85;
			}
			else if (iParam2 == 191)
			{
				return 74;
			}
			else if (iParam2 >= 256)
			{
				iVar12 = func_104(iParam0, iParam2, 11, 4);
				if (iVar12 != -1)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar12, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar12, 362493804, 0))
					{
						iVar13 = dlc1::_get_num_forced_components(iVar12);
						iVar14 = 0;
						while (iVar14 < iVar13)
						{
							dlc1::get_forced_component(iVar12, iVar14, &iVar15, &uVar16, &iVar17);
							if (iVar17 == 10)
							{
								if (iVar15 != 0 && iVar15 != 1849449579)
								{
									return func_183(iVar15, 4);
								}
								else
								{
									return uVar16;
								}
							}
							iVar14++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar12, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_16(1749, -1, 0);
						}
						return func_183(iParam3, 4);
					}
				}
			}
		}
		else if (iParam1 == 8)
		{
			if (iParam2 == 1)
			{
				return 75;
			}
			else if (iParam2 == 2)
			{
				return 77;
			}
			else if (iParam2 == 4)
			{
				if (func_186(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 7)
			{
				if (func_186(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 9)
			{
				if (func_186(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 17)
			{
				return 75;
			}
			else if (iParam2 == 18)
			{
				return 77;
			}
			else if (iParam2 == 20)
			{
				if (func_186(89, -1))
				{
					return 89;
				}
			}
			else if (iParam2 == 23)
			{
				if (func_186(88, -1))
				{
					return 88;
				}
			}
			else if (iParam2 == 25)
			{
				if (func_186(87, -1))
				{
					return 87;
				}
			}
			else if (iParam2 == 81)
			{
				return 84;
			}
			else if (iParam2 == 82)
			{
				return 85;
			}
			else if (iParam2 == 86)
			{
				return 74;
			}
			else if (iParam2 >= 136)
			{
				iVar18 = func_104(iParam0, iParam2, 8, 4);
				if (iVar18 != -1)
				{
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar18, 1113995558, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar18, 362493804, 0))
					{
						iVar19 = dlc1::_get_num_forced_components(iVar18);
						iVar20 = 0;
						while (iVar20 < iVar19)
						{
							dlc1::get_forced_component(iVar18, iVar20, &iVar21, &uVar22, &iVar23);
							if (iVar23 == 10)
							{
								if (iVar21 != 0 && iVar21 != 1849449579)
								{
									return func_183(iVar21, 4);
								}
								else
								{
									return uVar22;
								}
							}
							iVar20++;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar18, -1467682989, 0))
					{
						if (iParam3 == 0)
						{
							iParam3 = func_16(1749, -1, 0);
						}
						return func_183(iParam3, 4);
					}
				}
			}
		}
	}
	return -1;
}

int func_183(int iParam0, int iParam1)//Position - 0x29293
{
	var uVar0;
	int iVar1;
	int iVar2;
	struct<4> Var3;
	
	if (iParam1 == 3)
	{
		if (func_185(iParam0, &uVar0))
		{
			return uVar0;
		}
	}
	else if (iParam1 == 4)
	{
		if (func_184(iParam0, &uVar0))
		{
			return uVar0;
		}
	}
	iVar2 = dlc1::_0x278F76C3B0A8F109(iParam1);
	iVar1 = 0;
	while (iVar1 < iVar2)
	{
		if (dlc1::_0xFF56381874F82086(iParam1, iVar1, &Var3))
		{
			if (iParam0 == Var3.f_3)
			{
				return (129 + iVar1);
			}
		}
		iVar1++;
	}
	return -1;
}

bool func_184(int iParam0, var uParam1)//Position - 0x29304
{
	int iVar0;
	
	iVar0 = -1;
	switch (iParam0)
	{
		case 497719213:
			iVar0 = 0;
			break;
		
		case -1575660783:
			iVar0 = 1;
			break;
		
		case -720631087:
			iVar0 = 2;
			break;
		
		case 2143620721:
			iVar0 = 3;
			break;
		
		case 2049754822:
			iVar0 = 4;
			break;
		
		case -1293749076:
			iVar0 = 5;
			break;
		
		case -1571403599:
			iVar0 = 6;
			break;
		
		case -711123906:
			iVar0 = 7;
			break;
		
		case 152801037:
			iVar0 = 8;
			break;
		
		case -1324018585:
			iVar0 = 9;
			break;
		
		case -481068829:
			iVar0 = 10;
			break;
		
		case -1486741196:
			iVar0 = 11;
			break;
		
		case 939412564:
			iVar0 = 12;
			break;
		
		case 1187637739:
			iVar0 = 13;
			break;
		
		case -1092669445:
			iVar0 = 14;
			break;
		
		case 1659530389:
			iVar0 = 15;
			break;
		
		case 996857777:
			iVar0 = 16;
			break;
		
		case 817476859:
			iVar0 = 17;
			break;
		
		case -17051268:
			iVar0 = 18;
			break;
		
		case 1293774274:
			iVar0 = 19;
			break;
		
		case 567121699:
			iVar0 = 20;
			break;
		
		case -1179302160:
			iVar0 = 21;
			break;
		
		case -949165473:
			iVar0 = 22;
			break;
		
		case 354975189:
			iVar0 = 23;
			break;
		
		case -489121482:
			iVar0 = 24;
			break;
		
		case -1636954018:
			iVar0 = 25;
			break;
		
		case -1277740240:
			iVar0 = 26;
			break;
		
		case -1047439708:
			iVar0 = 27;
			break;
		
		case -814026121:
			iVar0 = 28;
			break;
		
		case 1732157956:
			iVar0 = 29;
			break;
		
		case 1024282018:
			iVar0 = 30;
			break;
		
		case -2099685063:
			iVar0 = 31;
			break;
		
		case 1483932781:
			iVar0 = 32;
			break;
		
		case 1406925627:
			iVar0 = 33;
			break;
		
		case 698590923:
			iVar0 = 34;
			break;
		
		case 1869001296:
			iVar0 = 35;
			break;
		
		case 1169907450:
			iVar0 = 36;
			break;
		
		case 717727185:
			iVar0 = 37;
			break;
		
		case 1058197095:
			iVar0 = 38;
			break;
		
		case 434115743:
			iVar0 = 39;
			break;
		
		case 665432114:
			iVar0 = 40;
			break;
		
		case 1198780358:
			iVar0 = 41;
			break;
		
		case -2128873857:
			iVar0 = 42;
			break;
		
		case -148547780:
			iVar0 = 43;
			break;
		
		case 1819096318:
			iVar0 = 44;
			break;
		
		case 1051122042:
			iVar0 = 45;
			break;
		
		case -1350495965:
			iVar0 = 46;
			break;
		
		case -150859291:
			iVar0 = 47;
			break;
		
		case -1186193045:
			iVar0 = 48;
			break;
		
		case -1206837515:
			iVar0 = 49;
			break;
		
		case -1513653662:
			iVar0 = 50;
			break;
		
		case -543948331:
			iVar0 = 51;
			break;
		
		case -175559233:
			iVar0 = 52;
			break;
		
		case -131530830:
			iVar0 = 53;
			break;
		
		case -1816086813:
			iVar0 = 54;
			break;
		
		case -2113006722:
			iVar0 = 55;
			break;
		
		case -1101886458:
			iVar0 = 56;
			break;
		
		case -1398740829:
			iVar0 = 57;
			break;
		
		case 1939258347:
			iVar0 = 58;
			break;
		
		case -1004151544:
			iVar0 = 59;
			break;
		
		case -822873436:
			iVar0 = 60;
			break;
		
		case -1445222284:
			iVar0 = 61;
			break;
		
		case -63910623:
			iVar0 = 62;
			break;
		
		case 101834979:
			iVar0 = 63;
			break;
		
		case -673512330:
			iVar0 = 64;
			break;
		
		case -423845319:
			iVar0 = 65;
			break;
		
		case 963561372:
			iVar0 = 66;
			break;
		
		case 1384839636:
			iVar0 = 67;
			break;
		
		case -1712879828:
			iVar0 = 68;
			break;
		
		case -951688727:
			iVar0 = 69;
			break;
		
		case -1132639145:
			iVar0 = 70;
			break;
		
		case -513632731:
			iVar0 = 71;
			break;
		
		case 263680718:
			iVar0 = 72;
			break;
		
		case 36296627:
			iVar0 = 73;
			break;
		
		case 800240324:
			iVar0 = 74;
			break;
		
		case 614243480:
			iVar0 = 75;
			break;
		
		case 1408138043:
			iVar0 = 76;
			break;
		
		case 957564293:
			iVar0 = 77;
			break;
		
		case -1614279399:
			iVar0 = 78;
			break;
		
		case -1451286393:
			iVar0 = 79;
			break;
		
		case -1758069771:
			iVar0 = 80;
			break;
		
		case -1225475222:
			iVar0 = 81;
			break;
		
		case -1992892433:
			iVar0 = 82;
			break;
		
		case -1838157215:
			iVar0 = 83;
			break;
		
		case 1688803028:
			iVar0 = 84;
			break;
		
		case 1844259164:
			iVar0 = 85;
			break;
		
		case 1070943545:
			iVar0 = 86;
			break;
		
		case 1234460855:
			iVar0 = 87;
			break;
		
		case -753798460:
			iVar0 = 88;
			break;
		
		case -1453351072:
			iVar0 = 89;
			break;
		
		case -1308053326:
			iVar0 = 90;
			break;
		
		case -2083859401:
			iVar0 = 91;
			break;
		
		case 1586137527:
			iVar0 = 92;
			break;
		
		case 1884564810:
			iVar0 = 93;
			break;
		
		case 1092964089:
			iVar0 = 94;
			break;
		
		case 1264280421:
			iVar0 = 95;
			break;
		
		case 496601058:
			iVar0 = 96;
			break;
		
		case 861352797:
			iVar0 = 97;
			break;
		
		case 1418328330:
			iVar0 = 98;
			break;
		
		case 1784554566:
			iVar0 = 99;
			break;
	}
	switch (iParam0)
	{
		case 2081736627:
			iVar0 = 100;
			break;
		
		case -1897271971:
			iVar0 = 101;
			break;
		
		case -1666742056:
			iVar0 = 102;
			break;
		
		case -1282165072:
			iVar0 = 103;
			break;
		
		case -1052880379:
			iVar0 = 104;
			break;
		
		case -745474390:
			iVar0 = 105;
			break;
		
		case -515796465:
			iVar0 = 106;
			break;
		
		case -811206225:
			iVar0 = 107;
			break;
		
		case -1586815686:
			iVar0 = 108;
			break;
		
		case -1423429452:
			iVar0 = 109;
			break;
		
		case -1697869815:
			iVar0 = 110;
			break;
		
		case -1470846183:
			iVar0 = 111;
			break;
		
		case 1093884035:
			iVar0 = 112;
			break;
		
		case 861256904:
			iVar0 = 113;
			break;
		
		case 603201029:
			iVar0 = 114;
			break;
		
		case 1991426949:
			iVar0 = 115;
			break;
		
		case -135838228:
			iVar0 = 116;
			break;
		
		case 121616864:
			iVar0 = 117;
			break;
		
		case -834517002:
			iVar0 = 118;
			break;
		
		case -403932342:
			iVar0 = 119;
			break;
		
		case -1179738417:
			iVar0 = 120;
			break;
		
		case -1022250603:
			iVar0 = 121;
			break;
		
		case 558694786:
			iVar0 = 122;
			break;
		
		case 569279177:
			iVar0 = 123;
			break;
		
		case 544309199:
			iVar0 = 124;
			break;
		
		case 1190448341:
			iVar0 = 125;
			break;
		
		case 885139568:
			iVar0 = 126;
			break;
		
		case -1845683606:
			iVar0 = 127;
			break;
		
		case -1555317497:
			iVar0 = 128;
			break;
		
		case 1704673699:
			iVar0 = 129;
			break;
		
		case 1993401358:
			iVar0 = 130;
			break;
		
		case 1227065524:
			iVar0 = 131;
			break;
		
		case -533227790:
			iVar0 = 132;
			break;
		
		case 309459814:
			iVar0 = 133;
			break;
		
		case 77815753:
			iVar0 = 134;
			break;
		
		case -280939203:
			iVar0 = 135;
			break;
		
		case 1246882601:
			iVar0 = 136;
			break;
		
		case 314833986:
			iVar0 = 137;
			break;
		
		case -25635924:
			iVar0 = 138;
			break;
		
		case 351567983:
			iVar0 = 139;
			break;
		
		case -2027428652:
			iVar0 = 140;
			break;
		
		case 962677064:
			iVar0 = 141;
			break;
		
		case -105475497:
			iVar0 = 142;
			break;
		
		case 766835283:
			iVar0 = 143;
			break;
		
		case 471979821:
			iVar0 = 144;
			break;
		
		case 1122542778:
			iVar0 = 145;
			break;
		
		case 815530017:
			iVar0 = 146;
			break;
		
		case 1157900525:
			iVar0 = 147;
			break;
		
		case 859243859:
			iVar0 = 148;
			break;
		
		case 2032013608:
			iVar0 = 149;
			break;
		
		case 1471663700:
			iVar0 = 150;
			break;
		
		case -1679206722:
			iVar0 = 151;
			break;
		
		case -309397848:
			iVar0 = 152;
			break;
		
		case 534666054:
			iVar0 = 153;
			break;
		
		case -769376301:
			iVar0 = 154;
			break;
		
		case 1531057961:
			iVar0 = 155;
			break;
		
		case 1986678137:
			iVar0 = 156;
			break;
		
		case 2142789653:
			iVar0 = 157;
			break;
		
		case 7463306:
			iVar0 = 158;
			break;
		
		case 308053343:
			iVar0 = 159;
			break;
		
		case 753842819:
			iVar0 = 160;
			break;
		
		case 1052794406:
			iVar0 = 161;
			break;
		
		case -695726661:
			iVar0 = 162;
			break;
		
		case -1001821890:
			iVar0 = 163;
			break;
		
		case -1425459522:
			iVar0 = 164;
			break;
		
		case 1412653072:
			iVar0 = 165;
			break;
		
		case 1163510365:
			iVar0 = 166;
			break;
		
		case 933242602:
			iVar0 = 167;
			break;
		
		case -1347021116:
			iVar0 = 168;
			break;
		
		case 1297354841:
			iVar0 = 169;
			break;
		
		case -839806574:
			iVar0 = 170;
			break;
		
		case -542100209:
			iVar0 = 171;
			break;
		
		case 1472218269:
			iVar0 = 172;
			break;
		
		case 1783196079:
			iVar0 = 173;
			break;
		
		case 1007062314:
			iVar0 = 174;
			break;
		
		case -870732522:
			iVar0 = 175;
			break;
		
		case 547542627:
			iVar0 = 176;
			break;
		
		case 863894553:
			iVar0 = 177;
			break;
		
		case -2099242332:
			iVar0 = 178;
			break;
		
		case -1860028632:
			iVar0 = 179;
			break;
		
		case -560967165:
			iVar0 = 180;
			break;
		
		case -59437904:
			iVar0 = 181;
			break;
		
		case 757067269:
			iVar0 = 182;
			break;
		
		case 455625238:
			iVar0 = 183;
			break;
		
		case -1750514914:
			iVar0 = 184;
			break;
		
		case -983982466:
			iVar0 = 185;
			break;
		
		case -232228837:
			iVar0 = 186;
			break;
		
		case 1558269323:
			iVar0 = 187;
			break;
		
		case 2070579873:
			iVar0 = 188;
			break;
		
		case -1203181916:
			iVar0 = 189;
			break;
		
		case -2112587204:
			iVar0 = 190;
			break;
		
		case 1942412705:
			iVar0 = 191;
			break;
		
		case -1846437386:
			iVar0 = 192;
			break;
		
		case 61799795:
			iVar0 = 193;
			break;
		
		case -1388490611:
			iVar0 = 194;
			break;
		
		case -1627212776:
			iVar0 = 195;
			break;
		
		case 1525246127:
			iVar0 = 196;
			break;
		
		case -11341151:
			iVar0 = 197;
			break;
		
		case 516055815:
			iVar0 = 198;
			break;
		
		case -1034642040:
			iVar0 = 199;
			break;
	}
	switch (iParam0)
	{
		case 1022637316:
			iVar0 = 200;
			break;
		
		case -1677156418:
			iVar0 = 201;
			break;
		
		case -1130213300:
			iVar0 = 202;
			break;
		
		case 104062694:
			iVar0 = 203;
			break;
		
		case 869579299:
			iVar0 = 204;
			break;
		
		case 1201332655:
			iVar0 = 205;
			break;
		
		case 1028967715:
			iVar0 = 206;
			break;
		
		case -1651634800:
			iVar0 = 207;
			break;
		
		case -892278763:
			iVar0 = 208;
			break;
		
		case -1032005779:
			iVar0 = 209;
			break;
		
		case -255675400:
			iVar0 = 210;
			break;
		
		case 1890137027:
			iVar0 = 211;
			break;
		
		case -406805808:
			iVar0 = 212;
			break;
		
		case -592540500:
			iVar0 = 213;
			break;
		
		case 205417419:
			iVar0 = 214;
			break;
		
		case -2127276619:
			iVar0 = 215;
			break;
		
		case -1362677538:
			iVar0 = 216;
			break;
		
		case -1549722990:
			iVar0 = 217;
			break;
		
		case 3495990:
			iVar0 = 218;
			break;
		
		case -285526590:
			iVar0 = 219;
			break;
		
		case 1907377338:
			iVar0 = 220;
			break;
		
		case 2136399879:
			iVar0 = 221;
			break;
		
		case 1568410532:
			iVar0 = 222;
			break;
		
		case 1068879892:
			iVar0 = 223;
			break;
		
		case -1592750929:
			iVar0 = 224;
			break;
		
		case 772896404:
			iVar0 = 225;
			break;
		
		case -1999229916:
			iVar0 = 226;
			break;
		
		case -744701520:
			iVar0 = 227;
			break;
		
		case -425039925:
			iVar0 = 228;
			break;
		
		case -798409911:
			iVar0 = 229;
			break;
		
		case 1379974898:
			iVar0 = 230;
			break;
		
		case -1681436154:
			iVar0 = 231;
			break;
		
		case -1486919370:
			iVar0 = 232;
			break;
		
		case 2014677667:
			iVar0 = 233;
			break;
		
		case 325697857:
			iVar0 = 234;
			break;
		
		case -1188819501:
			iVar0 = 235;
			break;
		
		case -1765193438:
			iVar0 = 236;
			break;
		
		case -1416269126:
			iVar0 = 237;
			break;
		
		case -2111365154:
			iVar0 = 238;
			break;
		
		case -1880573087:
			iVar0 = 239;
			break;
		
		case 1421296887:
			iVar0 = 240;
			break;
		
		case 1655562468:
			iVar0 = 241;
			break;
		
		case 946048080:
			iVar0 = 242;
			break;
		
		case 1188768063:
			iVar0 = 243;
			break;
		
		case 498456313:
			iVar0 = 244;
			break;
		
		case 323007907:
			iVar0 = 245;
			break;
		
		case -1325371100:
			iVar0 = 246;
			break;
		
		case -829313978:
			iVar0 = 247;
			break;
		
		case -530624543:
			iVar0 = 248;
			break;
		
		case -299046020:
			iVar0 = 249;
			break;
		
		case 1812260650:
			iVar0 = 250;
			break;
		
		case 2043511487:
			iVar0 = 251;
			break;
		
		case -1753235933:
			iVar0 = 252;
			break;
		
		case -1525589690:
			iVar0 = 253;
			break;
		
		case 31003408:
			iVar0 = 254;
			break;
		
		case -1864998224:
			iVar0 = 255;
			break;
		
		case -2140814897:
			iVar0 = 256;
			break;
		
		case 223468453:
			iVar0 = 257;
			break;
		
		case -83970305:
			iVar0 = 258;
			break;
		
		case -406843262:
			iVar0 = 259;
			break;
		
		case -954740942:
			iVar0 = 260;
			break;
		
		case -1675526854:
			iVar0 = 261;
			break;
		
		case 2111717556:
			iVar0 = 262;
			break;
		
		case -415395003:
			iVar0 = 263;
			break;
		
		case 427521984:
			iVar0 = 264;
			break;
		
		case 1570178485:
			iVar0 = 265;
			break;
		
		case -1619850916:
			iVar0 = 266;
			break;
		
		case -713067148:
			iVar0 = 267;
			break;
		
		case 946477614:
			iVar0 = 268;
			break;
		
		case -1423343701:
			iVar0 = 269;
			break;
		
		case 445931457:
			iVar0 = 270;
			break;
		
		case 678558588:
			iVar0 = 271;
			break;
		
		case -854631987:
			iVar0 = 272;
			break;
		
		case -1707871209:
			iVar0 = 273;
			break;
		
		case 1675446188:
			iVar0 = 274;
			break;
		
		case 1911627074:
			iVar0 = 275;
			break;
		
		case -607391498:
			iVar0 = 276;
			break;
		
		case -1544625218:
			iVar0 = 277;
			break;
		
		case 1185175875:
			iVar0 = 278;
			break;
		
		case 155591269:
			iVar0 = 279;
			break;
		
		case -1057958846:
			iVar0 = 280;
			break;
		
		case -1853795495:
			iVar0 = 281;
			break;
		
		case -1860485560:
			iVar0 = 282;
			break;
		
		case 499288642:
			iVar0 = 283;
			break;
		
		case -7887054:
			iVar0 = 284;
			break;
		
		case -1553041502:
			iVar0 = 285;
			break;
		
		case -1080591445:
			iVar0 = 286;
			break;
		
		case -741060436:
			iVar0 = 287;
			break;
		
		case 645634644:
			iVar0 = 288;
			break;
		
		case -1096728771:
			iVar0 = 289;
			break;
		
		case 503268386:
			iVar0 = 290;
			break;
		
		case 109804153:
			iVar0 = 291;
			break;
		
		case 1410910279:
			iVar0 = 292;
			break;
		
		case 1501700194:
			iVar0 = 293;
			break;
		
		case -1793199216:
			iVar0 = 294;
			break;
		
		case 1405944575:
			iVar0 = 295;
			break;
		
		case 1731382556:
			iVar0 = 296;
			break;
		
		case 1743809026:
			iVar0 = 297;
			break;
		
		case 1589237530:
			iVar0 = 298;
			break;
		
		case -1558441108:
			iVar0 = 299;
			break;
	}
	switch (iParam0)
	{
		case 793815980:
			iVar0 = 303;
			break;
		
		case 87277824:
			iVar0 = 304;
			break;
		
		case 1305470790:
			iVar0 = 305;
			break;
		
		case 252924758:
			iVar0 = 306;
			break;
		
		case 1043745875:
			iVar0 = 307;
			break;
		
		case 24304530:
			iVar0 = 308;
			break;
		
		case 582246031:
			iVar0 = 309;
			break;
		
		case 1840225396:
			iVar0 = 310;
			break;
		
		case -47863515:
			iVar0 = 311;
			break;
		
		case 26968202:
			iVar0 = 312;
			break;
		
		case 1720638120:
			iVar0 = 313;
			break;
		
		case 1372737856:
			iVar0 = 314;
			break;
		
		case -675719916:
			iVar0 = 315;
			break;
		
		case -610888268:
			iVar0 = 316;
			break;
		
		case -129698248:
			iVar0 = 317;
			break;
		
		case 1060644905:
			iVar0 = 318;
			break;
		
		case 776078819:
			iVar0 = 319;
			break;
		
		case -1069464482:
			iVar0 = 320;
			break;
		
		case -1342875239:
			iVar0 = 321;
			break;
		
		case 1967892405:
			iVar0 = 322;
			break;
		
		case 642864781:
			iVar0 = 323;
			break;
		
		case 1270860039:
			iVar0 = 324;
			break;
		
		case -1290780406:
			iVar0 = 325;
			break;
		
		case 1127641545:
			iVar0 = 326;
			break;
		
		case -1221948530:
			iVar0 = 327;
			break;
		
		case 1954153055:
			iVar0 = 328;
			break;
		
		case 543727307:
			iVar0 = 329;
			break;
		
		case -1806626643:
			iVar0 = 330;
			break;
		
		case 1146362323:
			iVar0 = 331;
			break;
		
		case -1918158051:
			iVar0 = 332;
			break;
		
		case -1835082731:
			iVar0 = 333;
			break;
		
		case 1935907419:
			iVar0 = 334;
			break;
		
		case 961997868:
			iVar0 = 335;
			break;
		
		case -415246024:
			iVar0 = 336;
			break;
		
		case -2003529037:
			iVar0 = 337;
			break;
		
		case -1272951326:
			iVar0 = 338;
			break;
		
		case 837851491:
			iVar0 = 339;
			break;
		
		case -64649653:
			iVar0 = 340;
			break;
		
		case 1997623301:
			iVar0 = 341;
			break;
		
		case 1177835340:
			iVar0 = 342;
			break;
		
		case -1261787835:
			iVar0 = 343;
			break;
		
		case -965491494:
			iVar0 = 344;
			break;
		
		case 939374190:
			iVar0 = 345;
			break;
		
		case 149461503:
			iVar0 = 346;
			break;
		
		case -1117498985:
			iVar0 = 347;
			break;
		
		case 1184468662:
			iVar0 = 348;
			break;
		
		case -772488648:
			iVar0 = 349;
			break;
		
		case -1399171334:
			iVar0 = 350;
			break;
		
		case -963164512:
			iVar0 = 351;
			break;
		
		case -1284517669:
			iVar0 = 352;
			break;
		
		case 1613773443:
			iVar0 = 353;
			break;
		
		case 1963092516:
			iVar0 = 354;
			break;
		
		case -878642668:
			iVar0 = 355;
			break;
		
		case -1618544925:
			iVar0 = 356;
			break;
		
		case 1185417232:
			iVar0 = 357;
			break;
		
		case -1649044153:
			iVar0 = 358;
			break;
		
		case -1293956525:
			iVar0 = 359;
			break;
		
		case -84085370:
			iVar0 = 360;
			break;
		
		case -943861479:
			iVar0 = 361;
			break;
		
		case -1355455834:
			iVar0 = 362;
			break;
		
		case 711764191:
			iVar0 = 363;
			break;
		
		case 41616632:
			iVar0 = 364;
			break;
		
		case -2053984264:
			iVar0 = 365;
			break;
		
		case -522832741:
			iVar0 = 366;
			break;
		
		case 711940316:
			iVar0 = 367;
			break;
		
		case -1512107004:
			iVar0 = 368;
			break;
		
		case -273305505:
			iVar0 = 369;
			break;
		
		case -779122930:
			iVar0 = 370;
			break;
		
		case 565678099:
			iVar0 = 371;
			break;
		
		case 2130135469:
			iVar0 = 372;
			break;
		
		case 2142072717:
			iVar0 = 373;
			break;
		
		case -636638153:
			iVar0 = 374;
			break;
		
		case 289539239:
			iVar0 = 375;
			break;
		
		case -1040822561:
			iVar0 = 376;
			break;
		
		case 217486581:
			iVar0 = 377;
			break;
		
		case -2147244302:
			iVar0 = 378;
			break;
		
		case 830186237:
			iVar0 = 379;
			break;
		
		case -1902384566:
			iVar0 = 380;
			break;
		
		case 1471583453:
			iVar0 = 381;
			break;
		
		case 2007332931:
			iVar0 = 382;
			break;
		
		case 1104156493:
			iVar0 = 383;
			break;
		
		case 616400258:
			iVar0 = 384;
			break;
		
		case 511243162:
			iVar0 = 385;
			break;
		
		case -477451680:
			iVar0 = 386;
			break;
		
		case 743616295:
			iVar0 = 387;
			break;
		
		case 712215816:
			iVar0 = 388;
			break;
		
		case 1475570942:
			iVar0 = 389;
			break;
		
		case -1768978416:
			iVar0 = 390;
			break;
		
		case -2139711822:
			iVar0 = 391;
			break;
		
		case -1509236263:
			iVar0 = 392;
			break;
		
		case -1143383459:
			iVar0 = 393;
			break;
		
		case -1690206781:
			iVar0 = 394;
			break;
		
		case 1947095236:
			iVar0 = 395;
			break;
		
		case 300333876:
			iVar0 = 396;
			break;
		
		case 37732721:
			iVar0 = 397;
			break;
		
		case 959183706:
			iVar0 = 398;
			break;
		
		case -1542393224:
			iVar0 = 399;
			break;
	}
	switch (iParam0)
	{
		case 874488242:
			iVar0 = 400;
			break;
		
		case 1389335000:
			iVar0 = 401;
			break;
		
		case -366075547:
			iVar0 = 402;
			break;
		
		case -1125431584:
			iVar0 = 403;
			break;
		
		case -2000068963:
			iVar0 = 404;
			break;
		
		case 1497445248:
			iVar0 = 405;
			break;
		
		case 1989766704:
			iVar0 = 406;
			break;
		
		case -2086401979:
			iVar0 = 407;
			break;
		
		case -1846467361:
			iVar0 = 408;
			break;
		
		case -1325458477:
			iVar0 = 409;
			break;
		
		case -566725051:
			iVar0 = 410;
			break;
		
		case -787850263:
			iVar0 = 411;
			break;
		
		case -1885021085:
			iVar0 = 412;
			break;
		
		case 979307144:
			iVar0 = 413;
			break;
		
		case -473732439:
			iVar0 = 414;
			break;
		
		case 2062186390:
			iVar0 = 415;
			break;
		
		case -60867780:
			iVar0 = 416;
			break;
		
		case 926967912:
			iVar0 = 417;
			break;
		
		case -1886278590:
			iVar0 = 418;
			break;
		
		case -1314959708:
			iVar0 = 419;
			break;
		
		case -1696774529:
			iVar0 = 420;
			break;
		
		case -356446484:
			iVar0 = 421;
			break;
		
		case 857810380:
			iVar0 = 422;
			break;
		
		case -629676646:
			iVar0 = 423;
			break;
		
		case -1879530481:
			iVar0 = 424;
			break;
		
		case -1265847311:
			iVar0 = 425;
			break;
		
		case 32094424:
			iVar0 = 426;
			break;
		
		case 1969286744:
			iVar0 = 427;
			break;
		
		case 560620683:
			iVar0 = 428;
			break;
		
		case -148312642:
			iVar0 = 429;
			break;
		
		case -578277428:
			iVar0 = 430;
			break;
		
		case -718909970:
			iVar0 = 431;
			break;
		
		case -859026859:
			iVar0 = 432;
			break;
		
		case -839897805:
			iVar0 = 433;
			break;
		
		case 1676439910:
			iVar0 = 434;
			break;
		
		case -294157184:
			iVar0 = 435;
			break;
		
		case -1222200221:
			iVar0 = 436;
			break;
		
		case 874532672:
			iVar0 = 437;
			break;
		
		case -135929055:
			iVar0 = 438;
			break;
		
		case 1654917353:
			iVar0 = 439;
			break;
		
		case -13131391:
			iVar0 = 440;
			break;
		
		case 154845196:
			iVar0 = 441;
			break;
		
		case -1147884322:
			iVar0 = 442;
			break;
		
		case 291693311:
			iVar0 = 443;
			break;
		
		case -1401933531:
			iVar0 = 444;
			break;
		
		case 1820267020:
			iVar0 = 445;
			break;
		
		case 2134488961:
			iVar0 = 446;
			break;
		
		case -1861952745:
			iVar0 = 447;
			break;
		
		case 994458405:
			iVar0 = 448;
			break;
		
		case -1931715008:
			iVar0 = 449;
			break;
		
		case 1308745884:
			iVar0 = 450;
			break;
		
		case -1322955084:
			iVar0 = 451;
			break;
		
		case -816658183:
			iVar0 = 452;
			break;
		
		case -988307698:
			iVar0 = 453;
			break;
		
		case -1341411308:
			iVar0 = 454;
			break;
		
		case 1865570599:
			iVar0 = 455;
			break;
		
		case -549458010:
			iVar0 = 456;
			break;
		
		case -1328545177:
			iVar0 = 457;
			break;
		
		case -1361353619:
			iVar0 = 458;
			break;
		
		case 1103253806:
			iVar0 = 459;
			break;
		
		case -24183456:
			iVar0 = 460;
			break;
		
		case 436214104:
			iVar0 = 461;
			break;
		
		case 2072615278:
			iVar0 = 462;
			break;
		
		case -1131891426:
			iVar0 = 463;
			break;
		
		case 1392085456:
			iVar0 = 464;
			break;
		
		case 2035895234:
			iVar0 = 465;
			break;
		
		case 368784798:
			iVar0 = 466;
			break;
		
		case 1398938833:
			iVar0 = 467;
			break;
		
		case 1250040566:
			iVar0 = 468;
			break;
		
		case 2133228190:
			iVar0 = 469;
			break;
		
		case 675551540:
			iVar0 = 470;
			break;
		
		case -1826137848:
			iVar0 = 471;
			break;
		
		case -144105601:
			iVar0 = 472;
			break;
		
		case -748983650:
			iVar0 = 473;
			break;
		
		case 630291027:
			iVar0 = 474;
			break;
		
		case 293950434:
			iVar0 = 475;
			break;
		
		case 1857352111:
			iVar0 = 476;
			break;
		
		case -777671131:
			iVar0 = 477;
			break;
		
		case 221602924:
			iVar0 = 478;
			break;
		
		case 2039295216:
			iVar0 = 479;
			break;
		
		case 1800147054:
			iVar0 = 480;
			break;
		
		case -2019505897:
			iVar0 = 481;
			break;
	}
	if (iVar0 != -1)
	{
		*uParam1 = (129 + iVar0);
		return true;
	}
	return false;
}

bool func_185(int iParam0, var uParam1)//Position - 0x2AC6F
{
	int iVar0;
	
	iVar0 = -1;
	switch (iParam0)
	{
		case -1917324065:
			iVar0 = 0;
			break;
		
		case 1056297333:
			iVar0 = 1;
			break;
		
		case 494620709:
			iVar0 = 2;
			break;
		
		case 800453786:
			iVar0 = 3;
			break;
		
		case -1082736975:
			iVar0 = 4;
			break;
		
		case -754981437:
			iVar0 = 5;
			break;
		
		case -1801855538:
			iVar0 = 6;
			break;
		
		case 459313194:
			iVar0 = 7;
			break;
		
		case 2007087579:
			iVar0 = 8;
			break;
		
		case 1987172386:
			iVar0 = 9;
			break;
		
		case 1801787829:
			iVar0 = 10;
			break;
		
		case -221624488:
			iVar0 = 11;
			break;
		
		case 25158851:
			iVar0 = 12;
			break;
		
		case 472458130:
			iVar0 = 13;
			break;
		
		case 164352862:
			iVar0 = 14;
			break;
		
		case -904148779:
			iVar0 = 15;
			break;
		
		case -694439771:
			iVar0 = 16;
			break;
		
		case -1469590466:
			iVar0 = 17;
			break;
		
		case -1511207100:
			iVar0 = 18;
			break;
		
		case -1352670678:
			iVar0 = 19;
			break;
		
		case -1960273476:
			iVar0 = 20;
			break;
		
		case -1657389609:
			iVar0 = 21;
			break;
		
		case 1826839858:
			iVar0 = 22;
			break;
		
		case 1989701788:
			iVar0 = 23;
			break;
		
		case 1213109257:
			iVar0 = 24;
			break;
		
		case 607407061:
			iVar0 = 25;
			break;
		
		case 875031480:
			iVar0 = 26;
			break;
		
		case 1487418552:
			iVar0 = 27;
			break;
		
		case 264053475:
			iVar0 = 28;
			break;
		
		case 99094329:
			iVar0 = 29;
			break;
		
		case -244193715:
			iVar0 = 30;
			break;
		
		case -540785934:
			iVar0 = 31;
			break;
		
		case -694833003:
			iVar0 = 32;
			break;
		
		case -852058665:
			iVar0 = 33;
			break;
		
		case -1512648940:
			iVar0 = 34;
			break;
		
		case -761354077:
			iVar0 = 35;
			break;
		
		case 1560551467:
			iVar0 = 36;
			break;
		
		case 827974775:
			iVar0 = 37;
			break;
		
		case 1595162603:
			iVar0 = 38;
			break;
		
		case 709663738:
			iVar0 = 39;
			break;
		
		case 990002533:
			iVar0 = 40;
			break;
		
		case 1860213958:
			iVar0 = 41;
			break;
		
		case 2119318441:
			iVar0 = 42;
			break;
		
		case -1953737187:
			iVar0 = 43;
			break;
		
		case 193320466:
			iVar0 = 44;
			break;
		
		case 1936646403:
			iVar0 = 45;
			break;
		
		case -1126042648:
			iVar0 = 46;
			break;
		
		case -1125022512:
			iVar0 = 47;
			break;
		
		case -1304369017:
			iVar0 = 48;
			break;
		
		case -2018143375:
			iVar0 = 49;
			break;
		
		case 224730392:
			iVar0 = 50;
			break;
		
		case 439629494:
			iVar0 = 51;
			break;
		
		case 736778786:
			iVar0 = 52;
			break;
		
		case 1048444745:
			iVar0 = 53;
			break;
		
		case 1988816738:
			iVar0 = 54;
			break;
		
		case 2140603469:
			iVar0 = 55;
			break;
		
		case 214245031:
			iVar0 = 56;
			break;
		
		case 1006238992:
			iVar0 = 57;
			break;
		
		case 689952604:
			iVar0 = 58;
			break;
		
		case -681528353:
			iVar0 = 59;
			break;
		
		case 1157448359:
			iVar0 = 60;
			break;
		
		case 43105745:
			iVar0 = 61;
			break;
		
		case -270395278:
			iVar0 = 62;
			break;
		
		case 505181414:
			iVar0 = 63;
			break;
		
		case 254662409:
			iVar0 = 64;
			break;
		
		case -982924414:
			iVar0 = 65;
			break;
		
		case -1156010272:
			iVar0 = 66;
			break;
		
		case 1885313391:
			iVar0 = 67;
			break;
		
		case -694786597:
			iVar0 = 68;
			break;
		
		case -1950199756:
			iVar0 = 69;
			break;
		
		case 384168721:
			iVar0 = 70;
			break;
		
		case -369452741:
			iVar0 = 71;
			break;
		
		case -89113946:
			iVar0 = 72;
			break;
		
		case 1836261422:
			iVar0 = 73;
			break;
		
		case -1004417654:
			iVar0 = 74;
			break;
		
		case -754095263:
			iVar0 = 75;
			break;
		
		case -1210698509:
			iVar0 = 76;
			break;
		
		case 1332405298:
			iVar0 = 77;
			break;
		
		case 552929095:
			iVar0 = 78;
			break;
		
		case 861154309:
			iVar0 = 79;
			break;
		
		case -1653801207:
			iVar0 = 80;
			break;
		
		case -87213624:
			iVar0 = 81;
			break;
		
		case 1285643631:
			iVar0 = 82;
			break;
		
		case 523240077:
			iVar0 = 83;
			break;
		
		case 823174734:
			iVar0 = 84;
			break;
		
		case -1248612522:
			iVar0 = 85;
			break;
		
		case 123359970:
			iVar0 = 86;
			break;
		
		case 369684543:
			iVar0 = 87;
			break;
		
		case -337142787:
			iVar0 = 88;
			break;
		
		case 1395583642:
			iVar0 = 89;
			break;
		
		case 1782520810:
			iVar0 = 90;
			break;
		
		case -660506451:
			iVar0 = 91;
			break;
		
		case -1092860637:
			iVar0 = 92;
			break;
		
		case 524387820:
			iVar0 = 93;
			break;
		
		case -1829180023:
			iVar0 = 94;
			break;
		
		case 2091368679:
			iVar0 = 95;
			break;
		
		case 1851597906:
			iVar0 = 96;
			break;
		
		case -434629734:
			iVar0 = 97;
			break;
		
		case 1415278623:
			iVar0 = 98;
			break;
		
		case 1252285617:
			iVar0 = 99;
			break;
	}
	switch (iParam0)
	{
		case 893595891:
			iVar0 = 100;
			break;
		
		case 423819507:
			iVar0 = 101;
			break;
		
		case -1433887872:
			iVar0 = 102;
			break;
		
		case -464613621:
			iVar0 = 103;
			break;
		
		case -301227387:
			iVar0 = 104;
			break;
		
		case -701762906:
			iVar0 = 105;
			break;
		
		case -890282963:
			iVar0 = 106;
			break;
		
		case -1188251480:
			iVar0 = 107;
			break;
		
		case 258827560:
			iVar0 = 108;
			break;
		
		case 965649655:
			iVar0 = 109;
			break;
		
		case 718800778:
			iVar0 = 110;
			break;
		
		case 1959959422:
			iVar0 = 111;
			break;
		
		case 1200177388:
			iVar0 = 112;
			break;
		
		case -1874439579:
			iVar0 = 113;
			break;
		
		case -1679505893:
			iVar0 = 114;
			break;
		
		case -1976229188:
			iVar0 = 115;
			break;
		
		case 2037875009:
			iVar0 = 116;
			break;
		
		case -235146664:
			iVar0 = 117;
			break;
		
		case -441853516:
			iVar0 = 118;
			break;
		
		case -664221443:
			iVar0 = 119;
			break;
		
		case -371627042:
			iVar0 = 120;
			break;
		
		case -1266220742:
			iVar0 = 121;
			break;
		
		case -968055611:
			iVar0 = 122;
			break;
		
		case 248100286:
			iVar0 = 123;
			break;
		
		case 551606764:
			iVar0 = 124;
			break;
		
		case 1805971315:
			iVar0 = 125;
			break;
		
		case -43642121:
			iVar0 = 126;
			break;
		
		case 1172251624:
			iVar0 = 127;
			break;
		
		case 1471989667:
			iVar0 = 128;
			break;
		
		case -2124702788:
			iVar0 = 129;
			break;
		
		case -1826734271:
			iVar0 = 130;
			break;
		
		case -900452940:
			iVar0 = 131;
			break;
		
		case -292194762:
			iVar0 = 132;
			break;
		
		case 637166847:
			iVar0 = 133;
			break;
		
		case -1204844181:
			iVar0 = 134;
			break;
		
		case 324779970:
			iVar0 = 135;
			break;
		
		case 329039940:
			iVar0 = 136;
			break;
		
		case 1854928425:
			iVar0 = 137;
			break;
		
		case 13179549:
			iVar0 = 138;
			break;
		
		case 1899823455:
			iVar0 = 139;
			break;
		
		case -2090490448:
			iVar0 = 140;
			break;
		
		case -1801467868:
			iVar0 = 141;
			break;
		
		case 953986562:
			iVar0 = 142;
			break;
		
		case 585335312:
			iVar0 = 143;
			break;
		
		case 489617063:
			iVar0 = 144;
			break;
		
		case 210195800:
			iVar0 = 145;
			break;
		
		case 1843402776:
			iVar0 = 146;
			break;
		
		case -1600520821:
			iVar0 = 147;
			break;
		
		case 1399087889:
			iVar0 = 148;
			break;
		
		case 1169344430:
			iVar0 = 149;
			break;
		
		case -2028647818:
			iVar0 = 150;
			break;
		
		case -1335845620:
			iVar0 = 151;
			break;
		
		case -1450406320:
			iVar0 = 152;
			break;
		
		case -1209849091:
			iVar0 = 153;
			break;
		
		case 2065609077:
			iVar0 = 154;
			break;
		
		case -664245241:
			iVar0 = 155;
			break;
		
		case 1676130538:
			iVar0 = 156;
			break;
		
		case -1730534702:
			iVar0 = 157;
			break;
		
		case -1767432596:
			iVar0 = 158;
			break;
		
		case -2016105604:
			iVar0 = 159;
			break;
		
		case 1971947238:
			iVar0 = 160;
			break;
		
		case -362811247:
			iVar0 = 161;
			break;
		
		case -668087251:
			iVar0 = 162;
			break;
		
		case -821282326:
			iVar0 = 163;
			break;
		
		case -1083467095:
			iVar0 = 164;
			break;
		
		case 550067555:
			iVar0 = 165;
			break;
		
		case 1439221609:
			iVar0 = 166;
			break;
		
		case 67412954:
			iVar0 = 167;
			break;
		
		case -1999360357:
			iVar0 = 168;
			break;
		
		case 1461537582:
			iVar0 = 169;
			break;
		
		case -1828273408:
			iVar0 = 170;
			break;
		
		case -1319239762:
			iVar0 = 171;
			break;
		
		case -1234400821:
			iVar0 = 172;
			break;
		
		case -992303449:
			iVar0 = 173;
			break;
		
		case -638398249:
			iVar0 = 174;
			break;
		
		case -41543683:
			iVar0 = 175;
			break;
		
		case -1934903018:
			iVar0 = 176;
			break;
		
		case 2132090345:
			iVar0 = 177;
			break;
		
		case 1751052413:
			iVar0 = 178;
			break;
		
		case 1519604966:
			iVar0 = 179;
			break;
		
		case -1964624525:
			iVar0 = 180;
			break;
		
		case 2006191823:
			iVar0 = 181;
			break;
		
		case 1633280603:
			iVar0 = 182;
			break;
		
		case 632918673:
			iVar0 = 183;
			break;
		
		case -190040148:
			iVar0 = 184;
			break;
		
		case 42936837:
			iVar0 = 185;
			break;
		
		case -1458541976:
			iVar0 = 186;
			break;
		
		case -606014753:
			iVar0 = 187;
			break;
		
		case -613376371:
			iVar0 = 188;
			break;
		
		case -446291501:
			iVar0 = 189;
			break;
		
		case 739308497:
			iVar0 = 190;
			break;
		
		case 495343292:
			iVar0 = 191;
			break;
		
		case -1686711653:
			iVar0 = 192;
			break;
		
		case 1187457341:
			iVar0 = 193;
			break;
		
		case 956403122:
			iVar0 = 194;
			break;
		
		case 1647042566:
			iVar0 = 195;
			break;
		
		case -461478743:
			iVar0 = 196;
			break;
		
		case -1883325653:
			iVar0 = 197;
			break;
		
		case -2114248796:
			iVar0 = 198;
			break;
		
		case 314228205:
			iVar0 = 199;
			break;
	}
	switch (iParam0)
	{
		case 1503775674:
			iVar0 = 200;
			break;
		
		case 1862399610:
			iVar0 = 201;
			break;
		
		case 708472048:
			iVar0 = 202;
			break;
		
		case -1207367545:
			iVar0 = 203;
			break;
		
		case 111650251:
			iVar0 = 204;
			break;
		
		case -28941494:
			iVar0 = 205;
			break;
		
		case -1827173138:
			iVar0 = 206;
			break;
		
		case -520681423:
			iVar0 = 207;
			break;
		
		case -209343154:
			iVar0 = 208;
			break;
		
		case -293579471:
			iVar0 = 209;
			break;
		
		case 20871853:
			iVar0 = 210;
			break;
		
		case -89823344:
			iVar0 = 211;
			break;
		
		case -1820191335:
			iVar0 = 212;
			break;
		
		case -1588547274:
			iVar0 = 213;
			break;
		
		case -1224287070:
			iVar0 = 214;
			break;
		
		case -994150383:
			iVar0 = 215;
			break;
		
		case -869824793:
			iVar0 = 216;
			break;
		
		case -633330920:
			iVar0 = 217;
			break;
		
		case -308131364:
			iVar0 = 218;
			break;
		
		case -38278649:
			iVar0 = 219;
			break;
		
		case 555692245:
			iVar0 = 220;
			break;
		
		case 929455459:
			iVar0 = 221;
			break;
		
		case -2092436411:
			iVar0 = 222;
			break;
		
		case 1904300216:
			iVar0 = 223;
			break;
		
		case -1599361268:
			iVar0 = 224;
			break;
		
		case -1897002095:
			iVar0 = 225;
			break;
		
		case -1011813098:
			iVar0 = 226;
			break;
		
		case -1316794181:
			iVar0 = 227;
			break;
		
		case -416105443:
			iVar0 = 228;
			break;
		
		case -47978497:
			iVar0 = 229;
			break;
		
		case -358202620:
			iVar0 = 230;
			break;
		
		case 547139312:
			iVar0 = 231;
			break;
		
		case 1124688073:
			iVar0 = 232;
			break;
		
		case 888521890:
			iVar0 = 233;
			break;
		
		case 665823766:
			iVar0 = 234;
			break;
		
		case 427888057:
			iVar0 = 235;
			break;
		
		case 1121411181:
			iVar0 = 236;
			break;
		
		case 890225886:
			iVar0 = 237;
			break;
		
		case 651012186:
			iVar0 = 238;
			break;
		
		case 422776101:
			iVar0 = 239;
			break;
		
		case 1630543134:
			iVar0 = 240;
			break;
		
		case -1945668916:
			iVar0 = 241;
			break;
		
		case -627999265:
			iVar0 = 242;
			break;
		
		case 1682346315:
			iVar0 = 243;
			break;
		
		case 1021952654:
			iVar0 = 244;
			break;
		
		case 1319396867:
			iVar0 = 245;
			break;
		
		case 560794517:
			iVar0 = 246;
			break;
		
		case 858697496:
			iVar0 = 247;
			break;
		
		case -30981230:
			iVar0 = 248;
			break;
		
		case -328032215:
			iVar0 = 249;
			break;
		
		case -1451681225:
			iVar0 = 250;
			break;
		
		case 267904819:
			iVar0 = 251;
			break;
		
		case 1570178485:
			iVar0 = 252;
			break;
		
		case -1619850916:
			iVar0 = 253;
			break;
		
		case -713067148:
			iVar0 = 254;
			break;
		
		case 946477614:
			iVar0 = 255;
			break;
		
		case -1423343701:
			iVar0 = 256;
			break;
		
		case 445931457:
			iVar0 = 257;
			break;
		
		case 678558588:
			iVar0 = 258;
			break;
		
		case -854631987:
			iVar0 = 259;
			break;
		
		case -1707871209:
			iVar0 = 260;
			break;
		
		case -863391184:
			iVar0 = 261;
			break;
		
		case 671171671:
			iVar0 = 262;
			break;
		
		case 904519720:
			iVar0 = 263;
			break;
		
		case 670952414:
			iVar0 = 264;
			break;
		
		case -282875325:
			iVar0 = 265;
			break;
		
		case 2079623104:
			iVar0 = 266;
			break;
		
		case 1088443427:
			iVar0 = 267;
			break;
		
		case 200001600:
			iVar0 = 268;
			break;
		
		case 1620729159:
			iVar0 = 269;
			break;
		
		case -1713274238:
			iVar0 = 270;
			break;
		
		case -1571590969:
			iVar0 = 271;
			break;
		
		case -457639374:
			iVar0 = 272;
			break;
		
		case 64160805:
			iVar0 = 273;
			break;
		
		case 1015325203:
			iVar0 = 274;
			break;
		
		case -1951778967:
			iVar0 = 275;
			break;
		
		case 1836042304:
			iVar0 = 276;
			break;
		
		case -421094621:
			iVar0 = 277;
			break;
		
		case 641062099:
			iVar0 = 278;
			break;
		
		case 597454468:
			iVar0 = 279;
			break;
		
		case 713758205:
			iVar0 = 280;
			break;
		
		case 1042267708:
			iVar0 = 281;
			break;
		
		case -637951661:
			iVar0 = 282;
			break;
		
		case 195911857:
			iVar0 = 283;
			break;
		
		case 903988957:
			iVar0 = 284;
			break;
		
		case 1068170761:
			iVar0 = 285;
			break;
		
		case -619065384:
			iVar0 = 286;
			break;
		
		case -497085955:
			iVar0 = 287;
			break;
		
		case 1138369002:
			iVar0 = 288;
			break;
		
		case -1957731308:
			iVar0 = 289;
			break;
		
		case -2063712125:
			iVar0 = 290;
			break;
		
		case 1773674262:
			iVar0 = 291;
			break;
		
		case 1027059614:
			iVar0 = 292;
			break;
		
		case 1366782677:
			iVar0 = 293;
			break;
		
		case 216134256:
			iVar0 = 294;
			break;
		
		case 810154442:
			iVar0 = 295;
			break;
		
		case 77285961:
			iVar0 = 296;
			break;
		
		case 1617489838:
			iVar0 = 297;
			break;
		
		case 1697138602:
			iVar0 = 298;
			break;
		
		case 711811694:
			iVar0 = 299;
			break;
	}
	switch (iParam0)
	{
		case -895106351:
			iVar0 = 300;
			break;
		
		case 875367934:
			iVar0 = 301;
			break;
		
		case -979867160:
			iVar0 = 302;
			break;
		
		case -1233816942:
			iVar0 = 303;
			break;
		
		case -866958715:
			iVar0 = 304;
			break;
		
		case -1303573005:
			iVar0 = 305;
			break;
		
		case 2085207152:
			iVar0 = 306;
			break;
		
		case 857137150:
			iVar0 = 307;
			break;
		
		case 535952639:
			iVar0 = 308;
			break;
		
		case -1974657401:
			iVar0 = 309;
			break;
		
		case 129909013:
			iVar0 = 310;
			break;
		
		case -1499060170:
			iVar0 = 311;
			break;
		
		case 412032123:
			iVar0 = 312;
			break;
		
		case 915049044:
			iVar0 = 313;
			break;
		
		case 456478679:
			iVar0 = 314;
			break;
		
		case 907364848:
			iVar0 = 315;
			break;
		
		case -1783721060:
			iVar0 = 316;
			break;
		
		case -1008363280:
			iVar0 = 317;
			break;
		
		case 1429817922:
			iVar0 = 318;
			break;
		
		case -938326281:
			iVar0 = 319;
			break;
		
		case -1073925235:
			iVar0 = 320;
			break;
		
		case 1498524677:
			iVar0 = 321;
			break;
		
		case 1525596308:
			iVar0 = 322;
			break;
		
		case 1232639216:
			iVar0 = 323;
			break;
		
		case 956061600:
			iVar0 = 324;
			break;
		
		case 816551665:
			iVar0 = 325;
			break;
		
		case 2049704410:
			iVar0 = 326;
			break;
		
		case -796818724:
			iVar0 = 327;
			break;
		
		case 1775476370:
			iVar0 = 328;
			break;
		
		case 266230635:
			iVar0 = 329;
			break;
		
		case -588549683:
			iVar0 = 330;
			break;
		
		case 464027076:
			iVar0 = 331;
			break;
		
		case 2122049260:
			iVar0 = 332;
			break;
		
		case 1049130700:
			iVar0 = 333;
			break;
		
		case -116952560:
			iVar0 = 334;
			break;
		
		case 1424723115:
			iVar0 = 335;
			break;
		
		case -1007272003:
			iVar0 = 336;
			break;
		
		case -644829701:
			iVar0 = 337;
			break;
		
		case -2103222497:
			iVar0 = 338;
			break;
		
		case -1589795073:
			iVar0 = 339;
			break;
		
		case -1689668067:
			iVar0 = 340;
			break;
		
		case -189814108:
			iVar0 = 341;
			break;
		
		case -1595292141:
			iVar0 = 342;
			break;
		
		case -1540940714:
			iVar0 = 343;
			break;
		
		case -2136471172:
			iVar0 = 344;
			break;
		
		case -666892434:
			iVar0 = 345;
			break;
		
		case -1001125323:
			iVar0 = 346;
			break;
		
		case 904104464:
			iVar0 = 347;
			break;
		
		case 690016265:
			iVar0 = 348;
			break;
		
		case 38190590:
			iVar0 = 349;
			break;
		
		case 2119761078:
			iVar0 = 350;
			break;
		
		case -1213131712:
			iVar0 = 351;
			break;
		
		case 990079224:
			iVar0 = 352;
			break;
		
		case -905045993:
			iVar0 = 353;
			break;
		
		case 2104378143:
			iVar0 = 354;
			break;
		
		case -666631800:
			iVar0 = 355;
			break;
		
		case 549954933:
			iVar0 = 356;
			break;
		
		case 1830069972:
			iVar0 = 357;
			break;
		
		case 859320876:
			iVar0 = 358;
			break;
		
		case -552358316:
			iVar0 = 359;
			break;
		
		case 1522216340:
			iVar0 = 360;
			break;
		
		case -1783296601:
			iVar0 = 361;
			break;
		
		case 283995288:
			iVar0 = 362;
			break;
		
		case -975534410:
			iVar0 = 363;
			break;
		
		case -2088194624:
			iVar0 = 364;
			break;
		
		case 1744801848:
			iVar0 = 365;
			break;
		
		case -481389646:
			iVar0 = 366;
			break;
		
		case -1781363036:
			iVar0 = 367;
			break;
		
		case 496009839:
			iVar0 = 368;
			break;
		
		case -667608820:
			iVar0 = 369;
			break;
		
		case 460475899:
			iVar0 = 370;
			break;
		
		case 1491168919:
			iVar0 = 371;
			break;
		
		case -1611478806:
			iVar0 = 372;
			break;
		
		case 523495612:
			iVar0 = 373;
			break;
		
		case -78008273:
			iVar0 = 374;
			break;
		
		case -762375847:
			iVar0 = 375;
			break;
		
		case 331482129:
			iVar0 = 376;
			break;
		
		case -2083628050:
			iVar0 = 377;
			break;
		
		case -468800117:
			iVar0 = 378;
			break;
		
		case 724819757:
			iVar0 = 379;
			break;
		
		case -1058761348:
			iVar0 = 380;
			break;
		
		case -546178212:
			iVar0 = 381;
			break;
		
		case -118052734:
			iVar0 = 382;
			break;
		
		case 1654466691:
			iVar0 = 383;
			break;
		
		case -1077553649:
			iVar0 = 384;
			break;
		
		case -886092159:
			iVar0 = 385;
			break;
		
		case -1406331536:
			iVar0 = 386;
			break;
		
		case -1968934850:
			iVar0 = 387;
			break;
		
		case 3741245:
			iVar0 = 388;
			break;
		
		case 1387838298:
			iVar0 = 389;
			break;
		
		case -1941058219:
			iVar0 = 390;
			break;
		
		case 955033120:
			iVar0 = 391;
			break;
		
		case 677119231:
			iVar0 = 392;
			break;
		
		case -1616214916:
			iVar0 = 393;
			break;
		
		case -841195297:
			iVar0 = 394;
			break;
		
		case -909289279:
			iVar0 = 395;
			break;
		
		case -239567341:
			iVar0 = 396;
			break;
		
		case -613592707:
			iVar0 = 397;
			break;
		
		case -988568374:
			iVar0 = 398;
			break;
		
		case -1090807654:
			iVar0 = 399;
			break;
	}
	switch (iParam0)
	{
		case 534771589:
			iVar0 = 400;
			break;
		
		case -1340139519:
			iVar0 = 401;
			break;
		
		case -849980761:
			iVar0 = 402;
			break;
		
		case -551553478:
			iVar0 = 403;
			break;
		
		case 386581472:
			iVar0 = 404;
			break;
		
		case 1466454525:
			iVar0 = 405;
			break;
		
		case 283190173:
			iVar0 = 406;
			break;
		
		case 1528527015:
			iVar0 = 407;
			break;
		
		case -1690029966:
			iVar0 = 408;
			break;
		
		case -1685994466:
			iVar0 = 409;
			break;
		
		case 255166927:
			iVar0 = 410;
			break;
		
		case -271257487:
			iVar0 = 411;
			break;
		
		case 1885215284:
			iVar0 = 412;
			break;
		
		case -1935156988:
			iVar0 = 413;
			break;
		
		case 1061465906:
			iVar0 = 414;
			break;
		
		case -871031729:
			iVar0 = 415;
			break;
		
		case -101171485:
			iVar0 = 416;
			break;
		
		case -1590298770:
			iVar0 = 417;
			break;
		
		case 303441856:
			iVar0 = 418;
			break;
		
		case -2049689650:
			iVar0 = 419;
			break;
		
		case 788520303:
			iVar0 = 420;
			break;
		
		case -859861445:
			iVar0 = 421;
			break;
		
		case 1045897298:
			iVar0 = 422;
			break;
		
		case 116964921:
			iVar0 = 423;
			break;
		
		case -1502257606:
			iVar0 = 424;
			break;
		
		case -546150284:
			iVar0 = 425;
			break;
		
		case -357466888:
			iVar0 = 426;
			break;
		
		case 718674880:
			iVar0 = 427;
			break;
		
		case -1529401172:
			iVar0 = 428;
			break;
		
		case 2088037441:
			iVar0 = 429;
			break;
		
		case 2048866271:
			iVar0 = 430;
			break;
		
		case -1565431690:
			iVar0 = 431;
			break;
		
		case -1528465573:
			iVar0 = 432;
			break;
		
		case 401532197:
			iVar0 = 433;
			break;
		
		case 826974918:
			iVar0 = 434;
			break;
		
		case -676067408:
			iVar0 = 435;
			break;
		
		case 1877289089:
			iVar0 = 436;
			break;
		
		case 859380017:
			iVar0 = 437;
			break;
		
		case 233098354:
			iVar0 = 438;
			break;
		
		case 566101858:
			iVar0 = 439;
			break;
		
		case 529460830:
			iVar0 = 440;
			break;
		
		case -1833118141:
			iVar0 = 441;
			break;
		
		case 422823598:
			iVar0 = 442;
			break;
		
		case 1450358661:
			iVar0 = 443;
			break;
		
		case 741089893:
			iVar0 = 444;
			break;
		
		case 1289848370:
			iVar0 = 445;
			break;
		
		case 616166430:
			iVar0 = 446;
			break;
		
		case 1489225316:
			iVar0 = 447;
			break;
		
		case 753969632:
			iVar0 = 448;
			break;
		
		case -1182831168:
			iVar0 = 449;
			break;
		
		case 1545103753:
			iVar0 = 450;
			break;
		
		case 2090080808:
			iVar0 = 451;
			break;
		
		case 903606896:
			iVar0 = 452;
			break;
		
		case 26759391:
			iVar0 = 453;
			break;
		
		case 1651885364:
			iVar0 = 454;
			break;
		
		case 729529407:
			iVar0 = 455;
			break;
		
		case 528802126:
			iVar0 = 456;
			break;
		
		case -1468003071:
			iVar0 = 457;
			break;
		
		case 1683696787:
			iVar0 = 458;
			break;
		
		case -726859160:
			iVar0 = 459;
			break;
		
		case 1209899578:
			iVar0 = 460;
			break;
		
		case 930604285:
			iVar0 = 461;
			break;
		
		case -308584186:
			iVar0 = 462;
			break;
		
		case -64129874:
			iVar0 = 463;
			break;
		
		case -1431204514:
			iVar0 = 464;
			break;
		
		case -1133334304:
			iVar0 = 465;
			break;
		
		case -1809784771:
			iVar0 = 466;
			break;
		
		case -1576934998:
			iVar0 = 467;
			break;
		
		case -1570929684:
			iVar0 = 468;
			break;
		
		case 1976578151:
			iVar0 = 469;
			break;
	}
	if (iVar0 != -1)
	{
		*uParam1 = (129 + iVar0);
		return true;
	}
	return false;
}

int func_186(int iParam0, int iParam1)//Position - 0x2C55E
{
	int iVar0;
	int iVar1;
	
	if (func_188(iParam0) == 3949)
	{
		return false;
	}
	iVar0 = func_187(iParam0, iParam1);
	iVar1 = iParam0;
	return gameplay::is_bit_set(iVar0, func_171(iVar1));
}

var func_187(var uParam0, int iParam1)//Position - 0x2C590
{
	var uVar0;
	
	uVar0 = func_16(func_188(uParam0), iParam1, 0);
	return uVar0;
}

int func_188(var uParam0)//Position - 0x2C5A9
{
	int iVar0;
	int iVar1;
	
	iVar0 = uParam0;
	iVar1 = func_176(iVar0);
	if ((func_175() == 0 || func_174() == 0) || (func_175() == 999 && func_174() == 999))
	{
		switch (iVar1)
		{
			case 0:
				return 1031;
				break;
			
			case 1:
				return 1032;
				break;
			
			case 2:
				return 1033;
				break;
			
			case 3:
				return 1034;
				break;
			
			case 4:
				return 1035;
				break;
			
			case 5:
				return 1495;
				break;
			
			case 6:
				return 1748;
				break;
			
			case 7:
				return 1942;
				break;
			
			case 8:
				return 1943;
				break;
			
			case 9:
				return 1944;
				break;
			
			case 10:
				return 1945;
				break;
			
			case 11:
				return 1946;
				break;
			
			case 12:
				return 1947;
				break;
			
			case 13:
				return 2400;
				break;
			
			case 14:
				return 2420;
				break;
			
			case 15:
				return 2423;
				break;
			
			case 16:
				return 2426;
				break;
			
			case 17:
				return 2589;
				break;
			
			case 18:
				return 2592;
				break;
			
			case 19:
				return 2595;
				break;
			}
	}
	return 3949;
}

int func_189(int iParam0)//Position - 0x2C723
{
	switch (entity::get_entity_model(iParam0))
	{
		case joaat("player_zero"):
			return 0;
			break;
		
		case joaat("player_one"):
			return 1;
			break;
		
		case joaat("player_two"):
			return 2;
			break;
		
		case joaat("mp_m_freemode_01"):
			return 3;
			break;
		
		case joaat("mp_f_freemode_01"):
			return 4;
			break;
	}
	return 0;
}

int func_190(int iParam0, int iParam1)//Position - 0x2C778
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	var uVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	var uVar10;
	int iVar11;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		if (iParam1 == 0)
		{
			return 123;
			return -1;
		}
		else if (iParam1 == 1)
		{
			return 93;
		}
		else if (iParam1 == 2)
		{
			return 93;
		}
		else if (iParam1 == 3)
		{
			return 93;
		}
		else if (iParam1 == 4)
		{
			return 93;
		}
		else if (iParam1 == 5)
		{
			return 93;
		}
		else if (iParam1 == 6)
		{
			return 93;
		}
		else if (iParam1 == 7)
		{
			return 94;
		}
		else if (iParam1 == 8)
		{
			return 94;
		}
		else if (iParam1 == 9)
		{
			return 94;
		}
		else if (iParam1 == 10)
		{
			return 94;
		}
		else if (iParam1 == 11)
		{
			return 94;
		}
		else if (iParam1 == 12)
		{
			return 94;
		}
		else if (iParam1 == 13)
		{
			return 95;
		}
		else if (iParam1 == 14)
		{
			return 95;
		}
		else if (iParam1 == 15)
		{
			return 95;
		}
		else if (iParam1 == 16)
		{
			return 95;
		}
		else if (iParam1 == 17)
		{
			return 95;
		}
		else if (iParam1 == 18)
		{
			return 95;
		}
		else if (iParam1 == 19)
		{
			return 96;
		}
		else if (iParam1 == 20)
		{
			return 96;
		}
		else if (iParam1 == 21)
		{
			return 96;
		}
		else if (iParam1 == 22)
		{
			return 96;
		}
		else if (iParam1 == 23)
		{
			return 96;
		}
		else if (iParam1 == 24)
		{
			return 96;
		}
		else if (iParam1 == 25)
		{
			return 96;
		}
		else if (iParam1 == 26)
		{
			return 97;
		}
		else if (iParam1 == 27)
		{
			return 97;
		}
		else if (iParam1 == 28)
		{
			return 97;
		}
		else if (iParam1 == 29)
		{
			return 97;
		}
		else if (iParam1 == 30)
		{
			return 97;
		}
		else if (iParam1 == 31)
		{
			return 97;
		}
		else if (iParam1 == 32)
		{
			return 98;
		}
		else if (iParam1 == 33)
		{
			return 98;
		}
		else if (iParam1 == 34)
		{
			return 98;
		}
		else if (iParam1 == 35)
		{
			return 98;
		}
		else if (iParam1 == 36)
		{
			return 98;
		}
		else if (iParam1 == 37)
		{
			return 98;
		}
		else if (iParam1 == 38)
		{
			return 99;
		}
		else if (iParam1 == 39)
		{
			return 99;
		}
		else if (iParam1 == 40)
		{
			return 99;
		}
		else if (iParam1 == 41)
		{
			return 99;
		}
		else if (iParam1 == 42)
		{
			return 99;
		}
		else if (iParam1 == 43)
		{
			return 99;
		}
		else if (iParam1 == 44)
		{
			return 99;
		}
		else if (iParam1 == 45)
		{
			return 100;
		}
		else if (iParam1 == 46)
		{
			return 100;
		}
		else if (iParam1 == 47)
		{
			return 100;
		}
		else if (iParam1 == 48)
		{
			return 100;
		}
		else if (iParam1 == 49)
		{
			return 100;
		}
		else if (iParam1 == 50)
		{
			return 101;
		}
		else if (iParam1 == 51)
		{
			return 101;
		}
		else if (iParam1 == 52)
		{
			return 101;
		}
		else if (iParam1 == 53)
		{
			return 101;
		}
		else if (iParam1 == 54)
		{
			return 101;
		}
		else if (iParam1 == 55)
		{
			return 101;
		}
		else if (iParam1 == 56)
		{
			return 101;
		}
		else if (iParam1 == 57)
		{
			return 102;
		}
		else if (iParam1 == 58)
		{
			return 102;
		}
		else if (iParam1 == 59)
		{
			return 102;
		}
		else if (iParam1 == 60)
		{
			return 102;
		}
		else if (iParam1 == 61)
		{
			return 102;
		}
		else if (iParam1 == 62)
		{
			return 102;
		}
		else if (iParam1 == 63)
		{
			return 103;
		}
		else if (iParam1 == 64)
		{
			return 103;
		}
		else if (iParam1 == 65)
		{
			return 103;
		}
		else if (iParam1 == 66)
		{
			return 103;
		}
		else if (iParam1 == 67)
		{
			return 103;
		}
		else if (iParam1 == 68)
		{
			return 103;
		}
		else if (iParam1 == 69)
		{
			return 104;
		}
		else if (iParam1 == 70)
		{
			return 104;
		}
		else if (iParam1 == 71)
		{
			return 104;
		}
		else if (iParam1 == 72)
		{
			return 104;
		}
		else if (iParam1 == 73)
		{
			return 104;
		}
		else if (iParam1 == 74)
		{
			return 105;
		}
		else if (iParam1 == 75)
		{
			return 105;
		}
		else if (iParam1 == 76)
		{
			return 105;
		}
		else if (iParam1 == 77)
		{
			return 105;
		}
		else if (iParam1 == 78)
		{
			return 105;
		}
		else if (iParam1 == 79)
		{
			return 105;
		}
		else if (iParam1 == 80)
		{
			return 106;
		}
		else if (iParam1 == 81)
		{
			return 106;
		}
		else if (iParam1 == 82)
		{
			return 106;
		}
		else if (iParam1 == 83)
		{
			return 106;
		}
		else if (iParam1 == 84)
		{
			return 106;
		}
		else if (iParam1 == 85)
		{
			return 107;
		}
		else if (iParam1 == 86)
		{
			return 107;
		}
		else if (iParam1 == 87)
		{
			return 107;
		}
		else if (iParam1 == 88)
		{
			return 107;
		}
		else if (iParam1 == 89)
		{
			return 107;
		}
		else if (iParam1 == 90)
		{
			return 107;
		}
		else if (iParam1 >= 91)
		{
			iVar0 = func_104(iParam0, iParam1, 2, 3);
			if (iVar0 != -1)
			{
				switch (iVar0)
				{
					case -1983429828:
					case 228608740:
					case 600995656:
					case 850728205:
					case 1093513726:
						return 108;
						break;
					
					case -457639650:
					case -94952354:
					case 144031963:
					case 533262145:
					case -1545668757:
						return 109;
						break;
					
					case -1625493211:
					case -1112723899:
					case -1432451032:
					case -647502406:
					case -925481833:
						return 110;
						break;
					
					case -1168328595:
					case -1421993424:
					case -576454917:
					case -438399124:
					case 271967258:
						return 111;
						break;
					
					case -1903246936:
					case 1155542604:
					case 2048071857:
					case -1605475033:
					case 100085859:
						return 112;
						break;
					
					case 745771948:
					case -1619297862:
					case -1878926649:
					case -485850917:
					case 558628189:
						return 113;
						break;
					
					case 1577121865:
					case 884057515:
					case 2055188806:
					case 1362452146:
					case -1761842625:
						return 114;
						break;
				}
				iVar1 = dlc1::_get_num_forced_components(iVar0);
				iVar2 = 0;
				while (iVar2 < iVar1)
				{
					dlc1::get_forced_component(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
					if (iVar5 == 10)
					{
						if (iVar3 != 0 && iVar3 != 1849449579)
						{
							return func_183(iVar3, 3);
						}
						else
						{
							return uVar4;
						}
					}
					iVar2++;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		if (iParam1 == 0)
		{
			return 123;
			return -1;
		}
		else if (iParam1 == 1)
		{
			return 93;
		}
		else if (iParam1 == 2)
		{
			return 93;
		}
		else if (iParam1 == 3)
		{
			return 93;
		}
		else if (iParam1 == 4)
		{
			return 93;
		}
		else if (iParam1 == 5)
		{
			return 93;
		}
		else if (iParam1 == 6)
		{
			return 93;
		}
		else if (iParam1 == 7)
		{
			return 94;
		}
		else if (iParam1 == 8)
		{
			return 94;
		}
		else if (iParam1 == 9)
		{
			return 94;
		}
		else if (iParam1 == 10)
		{
			return 94;
		}
		else if (iParam1 == 11)
		{
			return 94;
		}
		else if (iParam1 == 12)
		{
			return 94;
		}
		else if (iParam1 == 13)
		{
			return 95;
		}
		else if (iParam1 == 14)
		{
			return 95;
		}
		else if (iParam1 == 15)
		{
			return 95;
		}
		else if (iParam1 == 16)
		{
			return 95;
		}
		else if (iParam1 == 17)
		{
			return 95;
		}
		else if (iParam1 == 18)
		{
			return 96;
		}
		else if (iParam1 == 19)
		{
			return 96;
		}
		else if (iParam1 == 20)
		{
			return 96;
		}
		else if (iParam1 == 21)
		{
			return 96;
		}
		else if (iParam1 == 22)
		{
			return 96;
		}
		else if (iParam1 == 23)
		{
			return 96;
		}
		else if (iParam1 == 24)
		{
			return 97;
		}
		else if (iParam1 == 25)
		{
			return 97;
		}
		else if (iParam1 == 26)
		{
			return 97;
		}
		else if (iParam1 == 27)
		{
			return 97;
		}
		else if (iParam1 == 28)
		{
			return 97;
		}
		else if (iParam1 == 29)
		{
			return 97;
		}
		else if (iParam1 == 30)
		{
			return 98;
		}
		else if (iParam1 == 31)
		{
			return 98;
		}
		else if (iParam1 == 32)
		{
			return 98;
		}
		else if (iParam1 == 33)
		{
			return 98;
		}
		else if (iParam1 == 34)
		{
			return 98;
		}
		else if (iParam1 == 35)
		{
			return 99;
		}
		else if (iParam1 == 36)
		{
			return 99;
		}
		else if (iParam1 == 37)
		{
			return 99;
		}
		else if (iParam1 == 38)
		{
			return 99;
		}
		else if (iParam1 == 39)
		{
			return 99;
		}
		else if (iParam1 == 40)
		{
			return 99;
		}
		else if (iParam1 == 41)
		{
			return 100;
		}
		else if (iParam1 == 42)
		{
			return 100;
		}
		else if (iParam1 == 43)
		{
			return 100;
		}
		else if (iParam1 == 44)
		{
			return 100;
		}
		else if (iParam1 == 45)
		{
			return 100;
		}
		else if (iParam1 == 46)
		{
			return 100;
		}
		else if (iParam1 == 47)
		{
			return 101;
		}
		else if (iParam1 == 48)
		{
			return 101;
		}
		else if (iParam1 == 49)
		{
			return 101;
		}
		else if (iParam1 == 50)
		{
			return 101;
		}
		else if (iParam1 == 51)
		{
			return 101;
		}
		else if (iParam1 == 52)
		{
			return 101;
		}
		else if (iParam1 == 53)
		{
			return 102;
		}
		else if (iParam1 == 54)
		{
			return 102;
		}
		else if (iParam1 == 55)
		{
			return 102;
		}
		else if (iParam1 == 56)
		{
			return 102;
		}
		else if (iParam1 == 57)
		{
			return 102;
		}
		else if (iParam1 == 58)
		{
			return 102;
		}
		else if (iParam1 == 59)
		{
			return 102;
		}
		else if (iParam1 == 60)
		{
			return 103;
		}
		else if (iParam1 == 61)
		{
			return 103;
		}
		else if (iParam1 == 62)
		{
			return 103;
		}
		else if (iParam1 == 63)
		{
			return 103;
		}
		else if (iParam1 == 64)
		{
			return 103;
		}
		else if (iParam1 == 65)
		{
			return 103;
		}
		else if (iParam1 == 66)
		{
			return 103;
		}
		else if (iParam1 == 67)
		{
			return 104;
		}
		else if (iParam1 == 68)
		{
			return 104;
		}
		else if (iParam1 == 69)
		{
			return 104;
		}
		else if (iParam1 == 70)
		{
			return 104;
		}
		else if (iParam1 == 71)
		{
			return 104;
		}
		else if (iParam1 == 72)
		{
			return 104;
		}
		else if (iParam1 == 73)
		{
			return 105;
		}
		else if (iParam1 == 74)
		{
			return 105;
		}
		else if (iParam1 == 75)
		{
			return 105;
		}
		else if (iParam1 == 76)
		{
			return 105;
		}
		else if (iParam1 == 77)
		{
			return 105;
		}
		else if (iParam1 == 78)
		{
			return 105;
		}
		else if (iParam1 == 79)
		{
			return func_183(-1261720761, 4);
		}
		else if (iParam1 == 80)
		{
			return func_183(-1261720761, 4);
		}
		else if (iParam1 == 81)
		{
			return func_183(-1261720761, 4);
		}
		else if (iParam1 == 82)
		{
			return func_183(-1261720761, 4);
		}
		else if (iParam1 == 83)
		{
			return func_183(-1261720761, 4);
		}
		else if (iParam1 == 84)
		{
			return func_183(-1261720761, 4);
		}
		else if (iParam1 == 85)
		{
			return 107;
		}
		else if (iParam1 == 86)
		{
			return 107;
		}
		else if (iParam1 == 87)
		{
			return 107;
		}
		else if (iParam1 == 88)
		{
			return 107;
		}
		else if (iParam1 == 89)
		{
			return 107;
		}
		else if (iParam1 == 90)
		{
			return 107;
		}
		else if (iParam1 == 91)
		{
			return 107;
		}
		else if (iParam1 >= 92)
		{
			iVar6 = func_104(iParam0, iParam1, 2, 4);
			if (iVar6 != -1)
			{
				switch (iVar6)
				{
					case -1238992735:
					case -1947261901:
					case -771018642:
					case -1486169302:
					case 1159796376:
						return 108;
						break;
					
					case 1389867525:
					case 1622396349:
					case 1851615504:
					case -2052614252:
					case -1818610823:
						return 109;
						break;
					
					case 1855226196:
					case 271139943:
					case -1099030254:
					case -307724442:
					case -637872117:
						return 110;
						break;
					
					case -663797501:
					case 2088667427:
					case 1779786837:
					case -1609936838:
					case -1880477702:
						return 111;
						break;
					
					case 1052499595:
					case 142438919:
					case 458495932:
					case -701723290:
					case -119221546:
						return 112;
						break;
					
					case 1245050198:
					case 1481937299:
					case 1754870300:
					case -2033029490:
					case 62318681:
						return 112;
						break;
					
					case 665775322:
					case 618391324:
					case 497473714:
					case 123808807:
					case -231538229:
						return 114;
						break;
				}
				iVar7 = dlc1::_get_num_forced_components(iVar6);
				iVar8 = 0;
				while (iVar8 < iVar7)
				{
					dlc1::get_forced_component(iVar6, iVar8, &iVar9, &uVar10, &iVar11);
					if (iVar11 == 10)
					{
						if (iVar9 != 0 && iVar9 != 1849449579)
						{
							return func_183(iVar9, 4);
						}
						else
						{
							return uVar10;
						}
					}
					iVar8++;
				}
			}
		}
	}
	return -1;
}

void func_191(int iParam0, int iParam1)//Position - 0x2D579
{
	struct<12> Var0;
	int iVar13;
	int iVar14;
	int iVar15;
	struct<7> Var16;
	int iVar31;
	int iVar32;
	struct<7> Var33;
	int iVar48;
	int iVar49;
	struct<7> Var50;
	int iVar65;
	int iVar66;
	struct<7> Var67;
	int iVar82;
	
	if (!ped::is_ped_injured(iParam1))
	{
		iVar13 = func_189(iParam1);
		if (iParam0 != 0)
		{
			if (iVar13 == 3 || iVar13 == 4)
			{
				if (iParam0 == 1019352240)
				{
					func_207(13, 0, Global_69309);
					func_207(14, 0, Global_69309);
					func_207(15, 0, Global_69309);
					func_207(16, 0, Global_69309);
					func_207(71, 0, Global_69309);
					func_207(72, 0, Global_69309);
					return;
				}
				else if (iParam0 == 277073536)
				{
					if (iVar13 == 3)
					{
						func_207(73, 0, Global_69309);
						func_207(74, 0, Global_69309);
						func_207(75, 0, Global_69309);
						func_207(76, 0, Global_69309);
						func_207(77, 0, Global_69309);
						func_207(78, 0, Global_69309);
						func_207(79, 0, Global_69309);
						func_207(80, 0, Global_69309);
						func_207(81, 0, Global_69309);
						func_207(82, 0, Global_69309);
						func_207(83, 0, Global_69309);
						func_207(84, 0, Global_69309);
						func_207(85, 0, Global_69309);
						func_207(86, 0, Global_69309);
						func_207(90, 0, Global_69309);
						func_207(91, 0, Global_69309);
						func_207(124, 0, Global_69309);
						func_207(125, 0, Global_69309);
						func_207(87, 0, Global_69309);
						func_207(88, 0, Global_69309);
						func_207(89, 0, Global_69309);
						iVar15 = dlc1::_0x278F76C3B0A8F109(3);
						iVar14 = 0;
						while (iVar14 < iVar15)
						{
							if (dlc1::_0xFF56381874F82086(3, iVar14, &Var16))
							{
								if (Var16.f_6 == 277073536)
								{
									func_207((129 + iVar14), 0, Global_69309);
								}
							}
							iVar14++;
						}
					}
					else
					{
						func_207(73, 0, Global_69309);
						func_207(74, 0, Global_69309);
						func_207(75, 0, Global_69309);
						func_207(76, 0, Global_69309);
						func_207(77, 0, Global_69309);
						func_207(78, 0, Global_69309);
						func_207(79, 0, Global_69309);
						func_207(80, 0, Global_69309);
						func_207(81, 0, Global_69309);
						func_207(82, 0, Global_69309);
						func_207(83, 0, Global_69309);
						func_207(84, 0, Global_69309);
						func_207(85, 0, Global_69309);
						func_207(92, 0, Global_69309);
						func_207(87, 0, Global_69309);
						func_207(88, 0, Global_69309);
						func_207(89, 0, Global_69309);
						iVar32 = dlc1::_0x278F76C3B0A8F109(4);
						iVar31 = 0;
						while (iVar31 < iVar32)
						{
							if (dlc1::_0xFF56381874F82086(4, iVar31, &Var33))
							{
								if (Var33.f_6 == 277073536)
								{
									func_207((129 + iVar31), 0, Global_69309);
								}
							}
							iVar31++;
						}
					}
				}
				else if (iParam0 == 2140335355)
				{
					if (iVar13 == 3)
					{
						func_207(93, 0, Global_69309);
						func_207(94, 0, Global_69309);
						func_207(95, 0, Global_69309);
						func_207(96, 0, Global_69309);
						func_207(97, 0, Global_69309);
						func_207(98, 0, Global_69309);
						func_207(99, 0, Global_69309);
						func_207(100, 0, Global_69309);
						func_207(101, 0, Global_69309);
						func_207(102, 0, Global_69309);
						func_207(103, 0, Global_69309);
						func_207(104, 0, Global_69309);
						func_207(105, 0, Global_69309);
						func_207(106, 0, Global_69309);
						func_207(107, 0, Global_69309);
						func_207(108, 0, Global_69309);
						func_207(109, 0, Global_69309);
						func_207(110, 0, Global_69309);
						func_207(111, 0, Global_69309);
						func_207(112, 0, Global_69309);
						func_207(113, 0, Global_69309);
						func_207(114, 0, Global_69309);
						func_207(115, 0, Global_69309);
						func_207(116, 0, Global_69309);
						func_207(117, 0, Global_69309);
						func_207(123, 0, Global_69309);
						iVar49 = dlc1::_0x278F76C3B0A8F109(3);
						iVar48 = 0;
						while (iVar48 < iVar49)
						{
							if (dlc1::_0xFF56381874F82086(3, iVar48, &Var50))
							{
								if (Var50.f_6 == 2140335355)
								{
									func_207((129 + iVar48), 0, Global_69309);
								}
							}
							iVar48++;
						}
					}
					else
					{
						func_207(93, 0, Global_69309);
						func_207(94, 0, Global_69309);
						func_207(95, 0, Global_69309);
						func_207(96, 0, Global_69309);
						func_207(97, 0, Global_69309);
						func_207(98, 0, Global_69309);
						func_207(99, 0, Global_69309);
						func_207(100, 0, Global_69309);
						func_207(101, 0, Global_69309);
						func_207(102, 0, Global_69309);
						func_207(103, 0, Global_69309);
						func_207(104, 0, Global_69309);
						func_207(105, 0, Global_69309);
						func_207(106, 0, Global_69309);
						func_207(107, 0, Global_69309);
						func_207(108, 0, Global_69309);
						func_207(109, 0, Global_69309);
						func_207(110, 0, Global_69309);
						func_207(111, 0, Global_69309);
						func_207(112, 0, Global_69309);
						func_207(113, 0, Global_69309);
						func_207(114, 0, Global_69309);
						func_207(115, 0, Global_69309);
						func_207(116, 0, Global_69309);
						func_207(117, 0, Global_69309);
						func_207(118, 0, Global_69309);
						func_207(119, 0, Global_69309);
						func_207(120, 0, Global_69309);
						func_207(121, 0, Global_69309);
						func_207(122, 0, Global_69309);
						func_207(123, 0, Global_69309);
						iVar66 = dlc1::_0x278F76C3B0A8F109(4);
						iVar65 = 0;
						while (iVar65 < iVar66)
						{
							if (dlc1::_0xFF56381874F82086(4, iVar65, &Var67))
							{
								if (Var67.f_6 == 2140335355)
								{
									func_207((129 + iVar65), 0, Global_69309);
								}
							}
							iVar65++;
						}
					}
					return;
				}
			}
			iVar82 = 0;
			while (iVar82 < 127)
			{
				if (func_162(&Var0, iVar82, iVar13, iParam1, -1))
				{
					if (Var0.f_8 == iParam0)
					{
						func_207(Var0.f_11, 0, Global_69309);
					}
				}
				iVar82++;
			}
		}
	}
}

void func_192(int iParam0, int iParam1)//Position - 0x2DB76
{
	int iVar0;
	
	iVar0 = func_209();
	if (iVar0 != -1)
	{
		if (!func_193(iParam0, iParam1, iVar0))
		{
			func_207(iVar0, 0, Global_69309);
		}
	}
}

bool func_193(int iParam0, int iParam1, int iParam2)//Position - 0x2DBA3
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	if (!func_197(iParam0, iParam1))
	{
		if (iParam0 == joaat("mp_m_freemode_01"))
		{
			iVar0 = -1;
			iVar1 = -1;
			if (iParam1 >= 237)
			{
				iVar1 = func_104(iParam0, iParam1, 11, 3);
				iVar0 = func_195(iVar1);
			}
			if (iVar1 != -1 && func_134(iVar1, 0) != -1)
			{
				return false;
			}
			if ((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 16 && iParam1 <= 31)) || (iParam1 >= 124 && iParam1 <= 139)) || iVar0 == 0) || iVar0 == 1) || iVar0 == 8)
			{
				if (iParam2 == 15)
				{
					return true;
				}
				else if (iParam2 == 13 || iParam2 == 14)
				{
					if (func_182(iParam0, 11, iParam1, 0) == -1)
					{
						return true;
					}
				}
			}
			else if ((iParam1 >= 80 && iParam1 <= 95) || iVar0 == 5)
			{
				if ((iParam2 == 16 || iParam2 == 71) || iParam2 == 72)
				{
					return true;
				}
			}
			else if ((iParam1 >= 140 && iParam1 <= 155) || iVar0 == 9)
			{
				if (iParam2 == 13 || iParam2 == 15)
				{
					return true;
				}
			}
		}
		else if (iParam0 == joaat("mp_f_freemode_01"))
		{
			iVar2 = -1;
			iVar3 = -1;
			if (iParam1 >= 256)
			{
				iVar3 = func_104(iParam0, iParam1, 11, 4);
				iVar2 = func_195(iVar3);
			}
			if (iVar3 != -1 && func_134(iVar3, 0) != -1)
			{
				return false;
			}
			if ((iParam1 >= 0 && iParam1 <= 15) || iVar2 == 0)
			{
				if (iParam2 == 13 || iParam2 == 15)
				{
					if (func_182(iParam0, 11, iParam1, 0) == -1)
					{
						return true;
					}
				}
			}
			else if ((iParam1 >= 32 && iParam1 <= 47) || iVar2 == 2)
			{
				if (iParam2 == 13 || iParam2 == 16)
				{
					if (func_182(iParam0, 11, iParam1, 0) == -1)
					{
						return true;
					}
				}
			}
			else if ((iParam1 >= 64 && iParam1 <= 79) || iVar2 == 4)
			{
				if (iParam2 == 13)
				{
					return true;
				}
				if (iParam2 == 15)
				{
					if (iVar2 != 4 || !dlc1::_0x341DE7ED1D2A1BFD(iVar3, 1113995558, 0))
					{
						return true;
					}
				}
			}
			else if ((iParam1 >= 80 && iParam1 <= 95) || iVar2 == 5)
			{
				if (iParam2 == 13)
				{
					return true;
				}
			}
			else if ((iParam1 >= 144 && iParam1 <= 159) || iVar2 == 9)
			{
				if (iParam2 == 14)
				{
					return true;
				}
			}
		}
	}
	return false;
}

bool func_194(int iParam0, int iParam1, int iParam2)//Position - 0x2DE7F
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		iVar0 = -1;
		iVar1 = -1;
		if (iParam1 >= 256)
		{
			iVar0 = func_104(iParam0, iParam1, 4, 3);
			iVar1 = func_195(iVar0);
		}
		iVar2 = -1;
		iVar3 = -1;
		if (iParam2 >= 237)
		{
			iVar2 = func_104(iParam0, iParam2, 11, 3);
			iVar3 = func_195(iVar2);
		}
		if (iVar2 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -826135203, 0))
			{
				if (iVar0 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar0, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -826135203, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
			{
				if (iVar0 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar0, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 320460654, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -2017999390, 0))
			{
				if (iVar0 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2017999390, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1625463492, 0))
			{
				if (iVar0 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar0, 648481062, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 648481062, 0))
			{
				return true;
			}
		}
		else if (iVar0 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 648481062, 0))
			{
				return true;
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -826135203, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 320460654, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, -2017999390, 0))
			{
				if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
		if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 2026620439, 0))
		{
			if (((((((((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 48 && iParam1 <= 63)) || (iParam1 >= 64 && iParam1 <= 79)) || (iParam1 >= 112 && iParam1 <= 127)) || (iParam1 >= 128 && iParam1 <= 143)) || (iParam1 >= 176 && iParam1 <= 191)) || (iParam1 >= 224 && iParam1 <= 239)) || iVar1 == 0) || iVar1 == 3) || iVar1 == 4) || iVar1 == 7) || iVar1 == 8) || iVar1 == 11) || iVar1 == 14) || dlc1::_0x341DE7ED1D2A1BFD(iVar0, 1627756587, 0))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		switch (iVar0)
		{
			case 312004063:
			case 6695290:
			case 1724446270:
			case -448105673:
			case -611098679:
			case -1111088081:
			case -1406369540:
			case -1912159043:
			case 2076516410:
			case 1919618438:
			case 45227112:
			case -2129094253:
			case -421370587:
			case -675363106:
				if ((iParam2 >= 204 && iParam2 <= 219) || iVar3 == 13)
				{
					return false;
				}
				break;
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1021189127, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar0, 2044466679, 0))
			{
				return false;
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar4 = -1;
		iVar5 = -1;
		if (iParam1 >= 256)
		{
			iVar4 = func_104(iParam0, iParam1, 4, 4);
			iVar5 = func_195(iVar4);
		}
		iVar6 = -1;
		if (iParam2 >= 256)
		{
			iVar6 = func_104(iParam0, iParam2, 11, 4);
		}
		if (iVar6 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -826135203, 0))
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -826135203, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, 320460654, 0))
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, 320460654, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2017999390, 0))
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2017999390, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -530089825, 0))
			{
				if ((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -530089825, 0)) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1223513441, 0)))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -530089825, 0))
			{
				if ((iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -530089825, 0)) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1223513441, 0)))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (((((((((((dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1200513218, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 1965569012, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -779835469, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1086258388, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1488441032, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2088146832, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1446333198, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1351486939, 0))
			{
				if ((((((((((((((((((((((((((((((((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1223513441, 0)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar5 == 15) || iVar4 == 1667217362) || iVar4 == 1956239942) || iVar4 == -210905108) || iVar4 == 79690384) || iVar4 == 134611232) || iVar4 == 441755069) || iVar4 == -1685936105) || iVar4 == -1379382110) || iVar4 == -788622578) || iVar4 == -481740893) || iVar4 == -266743188) || iVar4 == 573421207) || iVar4 == -739668639) || iVar4 == -1126047902) || iVar4 == -954797108) || iVar4 == -1858238438) || iVar4 == -1551291215) || iVar4 == -989872783) || iVar4 == 2073733812) || iVar4 == -1596197578) || iVar4 == -942357733) || iVar4 == -40948081) || iVar4 == -1262871322) || iVar4 == -495388573) || iVar4 == 1091483025) || iVar4 == 785649948) || iVar4 == -313291240) || iVar4 == 495041640) || iVar4 == 749492925)
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, 821147517, 0))
			{
				if ((((((((((((((((((((((((((((((((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1223513441, 0)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar5 == 15) || iVar4 == 1667217362) || iVar4 == 1956239942) || iVar4 == -210905108) || iVar4 == 79690384) || iVar4 == 134611232) || iVar4 == 441755069) || iVar4 == -1685936105) || iVar4 == -1379382110) || iVar4 == -788622578) || iVar4 == -481740893) || iVar4 == -266743188) || iVar4 == 573421207) || iVar4 == -739668639) || iVar4 == -1126047902) || iVar4 == -954797108) || iVar4 == -1858238438) || iVar4 == -1551291215) || iVar4 == -989872783) || iVar4 == 2073733812) || iVar4 == -1596197578) || iVar4 == -942357733) || iVar4 == -40948081) || iVar4 == -1262871322) || iVar4 == -495388573) || iVar4 == 1091483025) || iVar4 == 785649948) || iVar4 == -313291240) || iVar4 == 495041640) || iVar4 == 749492925)
				{
					return false;
				}
			}
		}
		if (iVar4 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -826135203, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -826135203, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, 320460654, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, 320460654, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2017999390, 0))
			{
				if (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2017999390, 0))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -530089825, 0))
			{
				if ((iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -530089825, 0)) || (iVar6 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar6, -1223513441, 0)))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -33031567, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2102859770, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar6, -747583185, 0))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -747583185, 0))
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -33031567, 0))
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		if ((iParam1 >= 32 && iParam1 <= 47) || iVar5 == 2)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, 2026620439, 0))
			{
				return false;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, -2119756144, 0))
		{
			if (((((((((iParam1 >= 32 && iParam1 <= 47) || iVar5 == 2) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 264959411, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 140732128, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1863955539, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -849839091, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2088146832, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1055526375, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1882920022, 0))
			{
				return false;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar6, 947651647, 0))
		{
			if ((((((((((((((((((((((((((((((((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1223513441, 0)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar5 == 15) || iVar4 == 1667217362) || iVar4 == 1956239942) || iVar4 == -210905108) || iVar4 == 79690384) || iVar4 == 134611232) || iVar4 == 441755069) || iVar4 == -1685936105) || iVar4 == -1379382110) || iVar4 == -788622578) || iVar4 == -481740893) || iVar4 == -266743188) || iVar4 == 573421207) || iVar4 == -739668639) || iVar4 == -1126047902) || iVar4 == -954797108) || iVar4 == -1858238438) || iVar4 == -1551291215) || iVar4 == -989872783) || iVar4 == 2073733812) || iVar4 == -1596197578) || iVar4 == -942357733) || iVar4 == -40948081) || iVar4 == -1262871322) || iVar4 == -495388573) || iVar4 == 1091483025) || iVar4 == 785649948) || iVar4 == -313291240) || iVar4 == 495041640) || iVar4 == 749492925)
			{
				return false;
			}
		}
	}
	return true;
}

int func_195(int iParam0)//Position - 0x2ED52
{
	int iVar0;
	
	iVar0 = -1;
	if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 821147517, 0))
	{
		iVar0 = 0;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 2055293595, 0))
	{
		iVar0 = 1;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1992562672, 0))
	{
		iVar0 = 2;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1458930564, 0))
	{
		iVar0 = 3;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1046587084, 0))
	{
		iVar0 = 4;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 1943944625, 0))
	{
		iVar0 = 5;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1999870067, 0))
	{
		iVar0 = 6;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 2048281121, 0))
	{
		iVar0 = 7;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -109983526, 0))
	{
		iVar0 = 8;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1394888785, 0))
	{
		iVar0 = 9;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -144826511, 0))
	{
		iVar0 = 10;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 19149565, 0))
	{
		iVar0 = 11;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 310957510, 0))
	{
		iVar0 = 12;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, 742787396, 0))
	{
		iVar0 = 13;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1604914832, 0))
	{
		iVar0 = 14;
	}
	else if (dlc1::_0x341DE7ED1D2A1BFD(iParam0, -1092211054, 0))
	{
		iVar0 = 15;
	}
	return iVar0;
}

int func_196(int iParam0, int iParam1, int iParam2)//Position - 0x2EEB4
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	
	iVar0 = -99;
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		if (iParam1 <= 15)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 31)
		{
			iVar0 = 16;
		}
		else if (iParam1 <= 47)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 63)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 79)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 95)
		{
			iVar0 = 80;
		}
		else if (iParam1 <= 111)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 127)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 143)
		{
			iVar0 = 124;
		}
		else if (iParam1 <= 159)
		{
			iVar0 = 140;
		}
		else if (iParam1 <= 175)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 191)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 207)
		{
			iVar0 = 188;
		}
		else if (iParam1 <= 223)
		{
			iVar0 = 204;
		}
		else if (iParam1 <= 239)
		{
			iVar0 = 16;
		}
		else if (iParam1 <= 240)
		{
			iVar0 = 236;
		}
		else if (iParam1 >= 241)
		{
			iVar1 = func_104(iParam0, iParam1, 8, 3);
			if (iVar1 != -1)
			{
				iVar2 = dlc1::_0xC17AD0E5752BECDA(iVar1);
				iVar3 = 0;
				while (iVar3 < iVar2)
				{
					dlc1::get_variant_component(iVar1, iVar3, &iVar4, &iVar5, &iVar6);
					if (iVar6 == 11)
					{
						if (iVar4 != 0 && iVar4 != 1849449579)
						{
							iVar0 = func_84(iParam0, iVar4, 11, 3);
							return iVar0;
						}
						else
						{
							iVar0 = iVar5;
							return iVar0;
						}
					}
					iVar3++;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		if (iParam1 <= 15)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 31)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 32)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 33)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 49)
		{
			iVar0 = 64;
		}
		else if (iParam1 <= 65)
		{
			iVar0 = 80;
		}
		else if (iParam1 <= 66)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 67)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 68)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 69)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 70)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 86)
		{
			iVar0 = 176;
		}
		else if (iParam1 <= 102)
		{
			iVar0 = 192;
		}
		else if (iParam1 <= 118)
		{
			iVar0 = 208;
		}
		else if (iParam1 <= 119)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 135)
		{
			iVar0 = 240;
		}
		else if (iParam1 >= 136)
		{
			iVar7 = func_104(iParam0, iParam1, 8, 4);
			if (iVar7 != -1)
			{
				iVar8 = dlc1::_0xC17AD0E5752BECDA(iVar7);
				iVar9 = 0;
				while (iVar9 < iVar8)
				{
					dlc1::get_variant_component(iVar7, iVar9, &iVar10, &iVar11, &iVar12);
					if (iVar12 == 11)
					{
						if (iVar10 != 0 && iVar10 != 1849449579)
						{
							iVar0 = func_84(iParam0, iVar10, 11, 4);
							return iVar0;
						}
						else
						{
							iVar0 = iVar11;
							return iVar0;
						}
					}
					iVar9++;
				}
			}
		}
	}
	if (iVar0 != -99)
	{
		iVar0 = (iVar0 + iParam2);
	}
	return iVar0;
}

bool func_197(int iParam0, int iParam1)//Position - 0x2F1AB
{
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			if ((((((iParam1 >= 48 && iParam1 < 64) || (iParam1 >= 64 && iParam1 < 80)) || (iParam1 >= 96 && iParam1 < 108)) || (iParam1 >= 108 && iParam1 < 124)) || (iParam1 >= 156 && iParam1 < 172)) || (iParam1 >= 237 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam1, 11, 3), -1393156190, 0)))
			{
				return true;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			if ((((((iParam1 >= 16 && iParam1 < 32) || (iParam1 >= 96 && iParam1 < 112)) || (iParam1 >= 112 && iParam1 < 128)) || (iParam1 >= 128 && iParam1 < 144)) || (iParam1 >= 160 && iParam1 < 176)) || (iParam1 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam1, 11, 4), -1393156190, 0)))
			{
				return true;
			}
			break;
	}
	return false;
}

int func_198(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x2F2EC
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	struct<10> Var13;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	int iVar44;
	int iVar45;
	int iVar46;
	int iVar47;
	struct<10> Var48;
	int iVar65;
	int iVar66;
	int iVar67;
	int iVar68;
	int iVar69;
	int iVar70;
	int iVar71;
	int iVar72;
	int iVar73;
	int iVar74;
	int iVar75;
	int iVar76;
	int iVar77;
	int iVar78;
	int iVar79;
	int iVar80;
	int iVar81;
	int iVar82;
	int iVar83;
	int iVar84;
	int iVar85;
	int iVar86;
	int iVar87;
	int iVar88;
	int iVar89;
	int iVar90;
	int iVar91;
	int iVar92;
	
	iVar0 = -99;
	iVar1 = 1;
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		iVar2 = -1;
		iVar3 = -1;
		if (iParam2 >= 237)
		{
			iVar2 = func_104(iParam0, iParam2, 11, 3);
			iVar3 = func_195(iVar2);
		}
		iVar4 = -1;
		iVar5 = -1;
		if (iParam1 >= 237)
		{
			iVar4 = func_104(iParam0, iParam1, 11, 3);
			iVar5 = func_195(iVar4);
		}
		if (iVar2 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -491588875, 0))
			{
				return -99;
			}
		}
		if (iVar2 != -1)
		{
			if (((dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1347486026, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1274099003, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1723403459, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1538937264, 0))
			{
				if ((((((iParam1 >= 124 && iParam1 <= 139) || (iParam1 >= 188 && iParam1 <= 235)) || iVar5 == 8) || iVar5 == 12) || iVar5 == 13) || iVar5 == 14)
				{
					return -99;
				}
			}
			if ((dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1655154167, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719167561, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1431529976, 0))
			{
				return -99;
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1769225721, 0))
			{
				if ((((((((((iParam1 >= 80 && iParam1 <= 95) || (iParam1 >= 124 && iParam1 <= 139)) || (iParam1 >= 140 && iParam1 <= 155)) || (iParam1 >= 188 && iParam1 <= 235)) || iVar5 == 5) || iVar5 == 8) || iVar5 == 9) || iVar5 == 12) || iVar5 == 13) || iVar5 == 14)
				{
					return -99;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 264959411, 0))
			{
				if ((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 16 && iParam1 <= 31)) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 236 && iParam1 <= 236)) || iVar5 == 0) || iVar5 == 1) || iVar5 == 5) || iVar5 == 15)
				{
				}
				else
				{
					return -99;
				}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1625463492, 0) && !dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0))
			{
				return -99;
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719338724, 0))
			{
				if ((((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 16 && iParam1 <= 31)) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 124 && iParam1 <= 139)) || (iParam1 >= 236 && iParam1 <= 236)) || iVar5 == 0) || iVar5 == 1) || iVar5 == 5) || iVar5 == 8) || iVar5 == 15)
				{
				}
				else
				{
					return -99;
				}
			}
		}
		iVar6 = 0;
		iVar7 = false;
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar4, -641612092, 0))
		{
			iVar7 = true;
			if (((dlc1::_0x341DE7ED1D2A1BFD(iVar2, 470686834, 0) && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1625463492, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1507532917, 0))
			{
				iVar6 = 1;
			}
			else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1625463492, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1351486939, 0))
			{
				iVar6 = 0;
			}
			else
			{
				iVar6 = -1;
			}
		}
		if (iVar7)
		{
			if (iVar6 != -1)
			{
				iVar8 = dlc1::_0xC17AD0E5752BECDA(iVar4);
				iVar9 = 0;
				while (iVar9 < iVar8)
				{
					dlc1::get_variant_component(iVar4, iVar9, &iVar10, &iVar11, &iVar12);
					if (iVar12 == 8)
					{
						if ((((iVar6 == 3 && dlc1::_0x341DE7ED1D2A1BFD(iVar10, 1318819110, 0)) || (iVar6 == 2 && dlc1::_0x341DE7ED1D2A1BFD(iVar10, -1138757583, 0))) || (iVar6 == 1 && dlc1::_0x341DE7ED1D2A1BFD(iVar10, 647976134, 0))) || (((iVar6 == 0 && !dlc1::_0x341DE7ED1D2A1BFD(iVar10, 647976134, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar10, -1138757583, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar10, 1318819110, 0)))
						{
							if (iVar10 != 0 && iVar10 != 1849449579)
							{
								iVar0 = func_84(iParam0, iVar10, 8, 3);
							}
							else
							{
								iVar0 = iVar11;
							}
							iVar9 = iVar8 + 1;
							iVar1 = 0;
							return iVar0;
						}
					}
					iVar9++;
				}
			}
			return -99;
		}
		if ((iParam2 >= 96 && iParam2 <= 107) || iVar3 == 6)
		{
			if (iParam1 <= 15)
			{
				iVar0 = 32;
			}
			else if (iParam1 <= 31)
			{
				iVar0 = 224;
			}
			else if (iParam1 == 236)
			{
				iVar0 = 240;
			}
			else if ((iParam1 >= 220 && iParam1 <= 235) && func_199())
			{
				iVar0 = 34;
				iVar1 = 0;
				dlc1::init_shop_ped_component(&Var13);
				if (Global_2560784[1] != 0)
				{
					dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
					dlc1::get_shop_ped_query_component(Global_2560781[1], &Var13);
					if (Var13.f_1 != Global_2560784[1])
					{
						Global_2560784[1] = 0;
						Global_2560781[1] = 0;
					}
				}
				if (Global_2560784[1] == 0)
				{
					iVar31 = 0;
					iVar32 = dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
					iVar30 = 0;
					while (iVar30 < iVar32)
					{
						dlc1::get_shop_ped_query_component(iVar30, &Var13);
						if (!dlc1::_is_dlc_data_empty(Var13))
						{
							if (gameplay::get_hash_key(&(Var13.f_9)) == -1665616807 && dlc1::_0x341DE7ED1D2A1BFD(Var13.f_1, 647976134, 0))
							{
								Global_2560784[1] = Var13.f_1;
								Global_2560781[1] = iVar31;
								iVar30 = iVar32 + 1;
							}
							iVar31++;
						}
						iVar30++;
					}
				}
				if (Global_2560784[1] != 0)
				{
					iVar0 = (func_85(iParam0, func_25(8)) + Global_2560781[1]);
					iVar1 = 1;
				}
			}
			else
			{
				iVar0 = 34;
				iVar1 = 0;
				if (iParam1 >= 237)
				{
					iVar33 = func_104(iParam0, iParam1, 11, 3);
					if ((iVar33 != -1 && !dlc1::_0x341DE7ED1D2A1BFD(iVar33, 310957510, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar33, -109983526, 0))
					{
						iVar34 = dlc1::_0xC17AD0E5752BECDA(iVar33);
						iVar35 = 0;
						while (iVar35 < iVar34)
						{
							dlc1::get_variant_component(iVar33, iVar35, &iVar36, &iVar37, &iVar38);
							if (iVar38 == 8)
							{
								if (iVar36 != 0 && iVar36 != 1849449579)
								{
									iVar0 = func_84(iParam0, iVar36, 8, 3);
								}
								else
								{
									iVar0 = iVar37;
								}
							}
							iVar35++;
						}
					}
				}
			}
		}
		else if (iParam1 <= 15)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 31)
		{
			iVar0 = 16;
		}
		else if (iParam1 <= 47)
		{
			iVar0 = 2;
			iVar1 = 0;
		}
		else if (iParam1 <= 63)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 79)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 95)
		{
			iVar0 = 80;
		}
		else if (iParam1 <= 107)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 123)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 139)
		{
			iVar0 = 128;
		}
		else if (iParam1 <= 155)
		{
			iVar0 = 144;
		}
		else if (iParam1 <= 171)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 187)
		{
			iVar0 = 2;
			iVar1 = 0;
		}
		else if (iParam1 <= 203 || iVar5 == 12)
		{
			if (((((iParam2 >= 48 && iParam2 <= 63) || (iParam2 >= 108 && iParam2 <= 123)) || iVar3 == 3) || iVar3 == 7) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1769225721, 0))
			{
				iVar0 = 2;
				iVar1 = 0;
			}
			else
			{
				iVar39 = 0;
				if (iParam2 >= 236 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 2026620439, 0))
				{
					iVar39 = 1;
				}
				iVar40 = func_104(iParam0, iParam1, 11, 3);
				if (iVar40 != -1)
				{
					iVar41 = dlc1::_0xC17AD0E5752BECDA(iVar40);
					iVar42 = 0;
					while (iVar42 < iVar41)
					{
						dlc1::get_variant_component(iVar40, iVar42, &iVar43, &iVar44, &iVar45);
						if (iVar45 == 8 && iVar39 == dlc1::_0x341DE7ED1D2A1BFD(iVar43, 1680519719, 0))
						{
							if (iVar43 != 0 && iVar43 != 1849449579)
							{
								iVar0 = func_84(iParam0, iVar43, 8, 3);
							}
							else
							{
								iVar0 = iVar44;
							}
							iVar42 = iVar41 + 1;
							iVar1 = 0;
						}
						iVar42++;
					}
				}
				else
				{
					iVar0 = func_84(iParam0, -1739646902, 8, 3);
					iVar1 = 1;
				}
			}
		}
		else if (iParam1 <= 219)
		{
			iVar0 = 208;
		}
		else if (iParam1 <= 235)
		{
			iVar0 = 2;
			iVar1 = 0;
			if (func_199())
			{
				iVar46 = 0;
				iVar47 = 0;
				if ((iParam2 >= 96 && iParam2 <= 107) || (iParam2 >= 236 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 2026620439, 0)))
				{
					iVar46 = 1;
					iVar47 = 1;
				}
				dlc1::init_shop_ped_component(&Var48);
				if (Global_2560784[iVar47] != 0)
				{
					dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
					dlc1::get_shop_ped_query_component(Global_2560781[iVar47], &Var48);
					if (Var48.f_1 != Global_2560784[iVar47])
					{
						Global_2560784[iVar47] = 0;
						Global_2560781[iVar47] = 0;
					}
				}
				if (Global_2560784[iVar47] == 0)
				{
					iVar66 = 0;
					iVar67 = dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
					iVar65 = 0;
					while (iVar65 < iVar67)
					{
						dlc1::get_shop_ped_query_component(iVar65, &Var48);
						if (!dlc1::_is_dlc_data_empty(Var48))
						{
							if (gameplay::get_hash_key(&(Var48.f_9)) == -1665616807 && iVar46 == dlc1::_0x341DE7ED1D2A1BFD(Var48.f_1, 647976134, 0))
							{
								Global_2560784[iVar47] = Var48.f_1;
								Global_2560781[iVar47] = iVar66;
								iVar65 = iVar67 + 1;
							}
							iVar66++;
						}
						iVar65++;
					}
				}
				if (Global_2560784[iVar47] != 0)
				{
					iVar0 = (func_85(iParam0, func_25(8)) + Global_2560781[iVar47]);
					iVar1 = 1;
				}
			}
			if ((((iParam2 >= 237 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 2026620439, 0)) || (iParam2 >= 108 && iParam2 <= 123)) || iVar3 == 7) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1769225721, 0))
			{
				iVar0 = -99;
			}
		}
		else if (iParam1 <= 236)
		{
			iVar0 = 240;
		}
		else if (iParam1 >= 237)
		{
			iVar0 = 2;
			iVar1 = 0;
			iVar68 = func_104(iParam0, iParam1, 11, 3);
			if (iVar68 != -1)
			{
				iVar69 = dlc1::_0xC17AD0E5752BECDA(iVar68);
				iVar70 = 0;
				while (iVar70 < iVar69)
				{
					dlc1::get_variant_component(iVar68, iVar70, &iVar71, &iVar72, &iVar73);
					if (iVar73 == 8)
					{
						if (iVar71 != 0 && iVar71 != 1849449579)
						{
							iVar0 = func_84(iParam0, iVar71, 8, 3);
						}
						else
						{
							iVar0 = iVar72;
						}
						iVar70 = iVar69 + 1;
						iVar1 = 0;
					}
					iVar70++;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		iVar74 = -1;
		iVar75 = -1;
		if (iParam2 >= 256)
		{
			iVar74 = func_104(iParam0, iParam2, 11, 4);
			iVar75 = func_195(iVar74);
		}
		iVar76 = -1;
		iVar77 = -1;
		if (iParam1 >= 256)
		{
			iVar76 = func_104(iParam0, iParam1, 11, 4);
			iVar77 = func_195(iVar76);
		}
		if (iVar74 != -1)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar74, -491588875, 0))
			{
				return -99;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar74, -1719338724, 0))
		{
			if (((((((((((((((((((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 32 && iParam1 <= 47)) || (iParam1 >= 64 && iParam1 <= 79)) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 176 && iParam1 <= 191)) || (iParam1 >= 192 && iParam1 <= 207)) || (iParam1 >= 208 && iParam1 <= 223)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar77 == 0) || iVar77 == 2) || iVar77 == 4) || iVar77 == 5) || iVar77 == 11) || iVar77 == 12) || iVar77 == 13) || iVar77 == 15) || iVar76 == -221826679) || iVar76 == 1172264892) || iVar76 == 1474853838) || iVar76 == 278369420) || iVar76 == -310817200) || iVar76 == -138976564) || iVar76 == -905541781) || iVar76 == 998321559) || iVar76 == 64401473)
			{
			}
			else
			{
				return -99;
			}
		}
		iVar78 = 0;
		iVar79 = false;
		if ((((((dlc1::_0x341DE7ED1D2A1BFD(iVar76, -761463976, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar76, -1347486026, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar76, -1119232689, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar76, 1784133476, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar76, 2044466679, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar76, -2020757158, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar76, -2020757158, 0))
		{
			iVar79 = true;
			if ((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || iVar75 == 1) || iVar75 == 8)
			{
				iVar78 = 2;
			}
			else if ((dlc1::_0x341DE7ED1D2A1BFD(iVar74, 1769225721, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -1834446747, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -868698159, 0))
			{
				iVar78 = 0;
			}
			else if ((((((((((((((iParam2 >= 160 && iParam2 <= 175) || iVar75 == 10) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 153792394, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 700658917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 1714969731, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 745826556, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 1055526375, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 144417099, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 947651647, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar76, 1784133476, 0))
				{
					iVar78 = 1;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar76, -1119232689, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar76, 2044466679, 0))
				{
					iVar78 = 1;
				}
				else
				{
					iVar78 = -1;
				}
			}
			else
			{
				iVar78 = 1;
			}
		}
		if (dlc1::_0x341DE7ED1D2A1BFD(iVar76, -1351486939, 0))
		{
			iVar79 = true;
			if ((((((((iParam2 >= 112 && iParam2 <= 127) || iVar75 == 7) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 684992453, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -820724897, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -872449705, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 947651647, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar74, 1769225721, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -1834446747, 0))
				{
					iVar78 = 0;
				}
				else
				{
					iVar78 = 1;
				}
			}
			else if ((((((dlc1::_0x341DE7ED1D2A1BFD(iVar74, 153792394, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 1322269404, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 548036233, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 700658917, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -1014753511, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -1410897066, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -2119756144, 0))
			{
				iVar78 = 0;
			}
			else
			{
				iVar78 = -1;
			}
		}
		switch (iVar76)
		{
			case -221826679:
			case 1172264892:
			case 1474853838:
			case 278369420:
			case -310817200:
			case -138976564:
			case -905541781:
			case 998321559:
			case 64401473:
				iVar79 = true;
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar74, 1769225721, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -868698159, 0))
				{
					iVar78 = 1;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar74, -1834446747, 0))
				{
					iVar78 = 2;
				}
				else if (((dlc1::_0x341DE7ED1D2A1BFD(iVar74, -870074461, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -1719338724, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 947651647, 0))
				{
					iVar78 = 3;
				}
				else if ((((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || (iParam2 >= 112 && iParam2 <= 127)) || iVar75 == 1) || iVar75 == 7) || iVar75 == 8)
				{
					iVar78 = 0;
				}
				else
				{
					iVar78 = -1;
				}
				break;
			
			case 619380843:
				iVar79 = true;
				if ((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || iVar75 == 1) || iVar75 == 8)
				{
					iVar78 = 0;
				}
				else
				{
					iVar78 = -1;
				}
				break;
		}
		if (iVar79)
		{
			if (iVar78 != -1)
			{
				iVar80 = dlc1::_0xC17AD0E5752BECDA(iVar76);
				iVar81 = 0;
				while (iVar81 < iVar80)
				{
					dlc1::get_variant_component(iVar76, iVar81, &iVar82, &iVar83, &iVar84);
					if (iVar84 == 8)
					{
						if ((((iVar78 == 3 && dlc1::_0x341DE7ED1D2A1BFD(iVar82, 1318819110, 0)) || (iVar78 == 2 && dlc1::_0x341DE7ED1D2A1BFD(iVar82, -1138757583, 0))) || (iVar78 == 1 && dlc1::_0x341DE7ED1D2A1BFD(iVar82, 647976134, 0))) || (((iVar78 == 0 && !dlc1::_0x341DE7ED1D2A1BFD(iVar82, 647976134, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar82, -1138757583, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar82, 1318819110, 0)))
						{
							if (iVar82 != 0 && iVar82 != 1849449579)
							{
								iVar0 = func_84(iParam0, iVar82, 8, 4);
							}
							else
							{
								iVar0 = iVar83;
							}
							iVar81 = iVar80 + 1;
							iVar1 = 0;
							return iVar0;
						}
					}
					iVar81++;
				}
			}
			return -99;
		}
		if ((((((iParam1 >= 192 && iParam1 <= 207) || iVar77 == 12) && ((((iParam2 >= 96 && iParam2 <= 111) || (iParam2 >= 112 && iParam2 <= 127)) || iVar75 == 6) || iVar75 == 7)) && func_199()) && !dlc1::_0x341DE7ED1D2A1BFD(iVar74, -416620954, 0)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar74, 947651647, 0))
		{
			iVar85 = iVar76;
			if (iParam1 == 199)
			{
				iVar0 = func_84(iParam0, 331193219, 8, 4);
			}
			else if (iParam1 == 200)
			{
				iVar0 = func_84(iParam0, 1115060468, 8, 4);
			}
			else if (iParam1 == 201)
			{
				iVar0 = func_84(iParam0, 779636984, 8, 4);
			}
			else if (iVar85 == 948380380)
			{
				iVar0 = func_84(iParam0, -570249206, 8, 4);
			}
			else if (iVar85 == 708412993)
			{
				iVar0 = func_84(iParam0, -876115052, 8, 4);
			}
			else if (iVar85 == 1974869305)
			{
				iVar0 = func_84(iParam0, -108599534, 8, 4);
			}
			else if (iVar85 == 1197916315)
			{
				iVar0 = func_84(iParam0, 200575961, 8, 4);
			}
			else if (iVar85 == 587593690)
			{
				iVar0 = func_84(iParam0, 961930907, 8, 4);
			}
			else if (iVar85 == 323213398)
			{
				iVar0 = func_84(iParam0, -257698508, 8, 4);
			}
			else if (iVar85 == 1050193651)
			{
				iVar0 = func_84(iParam0, 516534659, 8, 4);
			}
			else if (iVar85 == 811438717)
			{
				iVar0 = func_84(iParam0, -1174312584, 8, 4);
			}
			else if (iVar85 == -877868759)
			{
				iVar0 = func_84(iParam0, -1192794304, 8, 4);
			}
			else if (iVar85 == -1108464212)
			{
				iVar0 = func_84(iParam0, -2027256889, 8, 4);
			}
			else if (iVar85 == -467866094)
			{
				iVar0 = func_84(iParam0, -1670074789, 8, 4);
			}
			else if (iVar85 == -673000034)
			{
				iVar0 = func_84(iParam0, -326349175, 8, 4);
			}
			else if (iVar85 == -1984939718)
			{
				iVar0 = func_84(iParam0, -796060021, 8, 4);
			}
			iVar1 = 0;
		}
		else if (iParam1 <= 15)
		{
			if (((iParam2 >= 160 && iParam2 <= 175) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar74, -868698159, 0))
			{
				iVar0 = 16;
			}
			else
			{
				iVar0 = 0;
			}
		}
		else if (iParam1 <= 31)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 47)
		{
			iVar0 = 48;
			iVar1 = 0;
		}
		else if (iParam1 <= 63)
		{
			iVar0 = 48;
			iVar1 = 0;
		}
		else if (iParam1 <= 79)
		{
			iVar0 = 34;
		}
		else if (iParam1 <= 95)
		{
			iVar0 = 50;
		}
		else if (iParam1 <= 111)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 127)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 143)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 159)
		{
			iVar0 = 48;
			iVar1 = 0;
		}
		else if (iParam1 <= 175)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 191)
		{
			iVar0 = 71;
		}
		else if (iParam1 <= 207)
		{
			iVar1 = 0;
			switch (iParam1)
			{
				case 199:
					iVar0 = 94;
					break;
				
				case 200:
					iVar0 = 95;
					break;
				
				case 201:
					iVar0 = 96;
					break;
			}
			if ((iParam2 >= 160 && iParam2 <= 175) || iVar75 == 10)
			{
				return -99;
			}
		}
		else if (iParam1 <= 223)
		{
			iVar0 = 103;
		}
		else if (iParam1 <= 239)
		{
			iVar0 = 48;
			iVar1 = 0;
		}
		else if (iParam1 <= 255)
		{
			iVar0 = 120;
		}
		else if (iParam1 >= 256)
		{
			iVar0 = 48;
			iVar1 = 0;
			if (iVar76 != -1)
			{
				iVar86 = true;
				if (dlc1::_0x341DE7ED1D2A1BFD(iVar76, 1965569012, 0))
				{
					iVar86 = false;
					if (iParam2 >= 256 && dlc1::_0x341DE7ED1D2A1BFD(iVar74, -1200513218, 0))
					{
						iVar86 = true;
					}
				}
				if (iVar86)
				{
					iVar87 = 0;
					if (iParam2 >= 156 && iParam2 <= 171)
					{
						if (iVar77 == 12)
						{
							iVar87 = 1;
						}
					}
					iVar88 = dlc1::_0xC17AD0E5752BECDA(iVar76);
					iVar89 = 0;
					while (iVar89 < iVar88)
					{
						dlc1::get_variant_component(iVar76, iVar89, &iVar90, &iVar91, &iVar92);
						if (iVar92 == 8 && ((iVar90 == 0 || iVar90 == 1849449579) || iVar87 == dlc1::_0x341DE7ED1D2A1BFD(iVar90, 647976134, 0)))
						{
							if (iVar90 != 0 && iVar90 != 1849449579)
							{
								iVar0 = func_84(iParam0, iVar90, 8, 4);
							}
							else
							{
								iVar0 = iVar91;
							}
							iVar89 = iVar88 + 1;
							iVar1 = 0;
						}
						iVar89++;
					}
				}
			}
		}
	}
	if (iVar1 && iVar0 != -99)
	{
		iVar0 = (iVar0 + iParam3);
	}
	return iVar0;
}

int func_199()//Position - 0x30AEE
{
	return dlc2::is_dlc_present(42019760);
}

int func_200(int iParam0, int iParam1, int iParam2)//Position - 0x30AFF
{
	switch (iParam0)
	{
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 0:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 2131039487;
							break;
						
						case 3:
							return 717379468;
							break;
						
						case 4:
							return -331193181;
							break;
						
						case 5:
							return 73557144;
							break;
						
						case 6:
							return -887980266;
							break;
						
						case 7:
							return -306315670;
							break;
						
						case 8:
							return -1154048938;
							break;
					}
					break;
				
				case 1:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1301636615;
							break;
						
						case 3:
							return 1153996761;
							break;
						
						case 4:
							return -1315084792;
							break;
						
						case 5:
							return 1655884038;
							break;
						
						case 6:
							return 1489229833;
							break;
						
						case 7:
							return -1929503325;
							break;
						
						case 8:
							return -1189128367;
							break;
					}
					break;
				
				case 2:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 538171135;
							break;
						
						case 3:
							return -244985062;
							break;
						
						case 4:
							return 442977103;
							break;
						
						case 5:
							return -1385727891;
							break;
						
						case 6:
							return 1309989623;
							break;
						
						case 7:
							return 1191418696;
							break;
						
						case 8:
							return 189293242;
							break;
					}
					break;
				
				case 3:
					switch (iParam2)
					{
						case 0:
							return -1438684756;
							break;
						
						case 1:
							return 194146035;
							break;
						
						case 2:
							return -420901598;
							break;
						
						case 3:
							return 2107411814;
							break;
						
						case 4:
							return 1242686602;
							break;
						
						case 5:
							return -596540583;
							break;
						
						case 6:
							return -653786071;
							break;
						
						case 7:
							return 1460048630;
							break;
						
						case 8:
							return -2079589815;
							break;
					}
					break;
				
				case 4:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1947098483;
							break;
						
						case 3:
							return 569295621;
							break;
						
						case 4:
							return -208098559;
							break;
						
						case 5:
							return 1256246195;
							break;
						
						case 6:
							return 1605755939;
							break;
						
						case 7:
							return 874748698;
							break;
						
						case 8:
							return -137095372;
							break;
					}
					break;
				
				case 5:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1950801119;
							break;
						
						case 3:
							return -1158564771;
							break;
						
						case 4:
							return -69929428;
							break;
						
						case 5:
							return 1957730707;
							break;
						
						case 6:
							return 374587029;
							break;
						
						case 7:
							return -210146735;
							break;
						
						case 8:
							return 336100633;
							break;
					}
					break;
				
				case 6:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1148238879;
							break;
						
						case 3:
							return -958872024;
							break;
						
						case 4:
							return 1353141306;
							break;
						
						case 5:
							return 394070886;
							break;
						
						case 6:
							return 255958050;
							break;
						
						case 7:
							return -521728710;
							break;
						
						case 8:
							return 1843470374;
							break;
					}
					break;
				
				case 7:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 670760190;
							break;
						
						case 3:
							return 799655540;
							break;
						
						case 4:
							return -99079306;
							break;
						
						case 5:
							return 1989760633;
							break;
						
						case 6:
							return 1157052274;
							break;
						
						case 7:
							return -1196262225;
							break;
						
						case 8:
							return -664356399;
							break;
					}
					break;
				
				case 8:
					break;
				
				case 9:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1875496913;
							break;
						
						case 3:
							return -1978886808;
							break;
						
						case 4:
							return -1279403197;
							break;
						
						case 5:
							return -1459998821;
							break;
						
						case 6:
							return 1786467932;
							break;
						
						case 7:
							return -795005246;
							break;
						
						case 8:
							return -1147008986;
							break;
					}
					break;
				
				case 10:
					break;
				
				case 11:
				case 16:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1925009287;
							break;
						
						case 3:
							return -268733734;
							break;
						
						case 4:
							return -2124412821;
							break;
						
						case 5:
							return -360036697;
							break;
						
						case 6:
							return -926433555;
							break;
						
						case 7:
							return 985839403;
							break;
						
						case 8:
							return -234436397;
							break;
						
						case 9:
							return 1165919867;
							break;
						
						case 10:
							return 1606204151;
							break;
						
						case 11:
							return 1774276352;
							break;
						
						case 12:
							return 1934254610;
							break;
						
						case 13:
							return 980775017;
							break;
						
						case 14:
							return 399321881;
							break;
					}
					break;
				
				case 12:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 493536654;
							break;
						
						case 3:
							return -1759053005;
							break;
						
						case 4:
							return 630158551;
							break;
						
						case 5:
							return -707909514;
							break;
						
						case 6:
							return 1254885089;
							break;
						
						case 7:
							return 596977742;
							break;
						
						case 8:
							return 1861540342;
							break;
					}
					break;
				
				case 13:
					break;
				
				case 14:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -840276017;
							break;
						
						case 3:
							return 756400133;
							break;
						
						case 4:
							return 1148630611;
							break;
						
						case 5:
							return -893909282;
							break;
						
						case 6:
							return 1485630477;
							break;
						
						case 7:
							return -934174767;
							break;
						
						case 8:
							return -1866981918;
							break;
					}
					break;
				
				case 15:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -591418577;
							break;
						
						case 3:
							return -2029591494;
							break;
						
						case 4:
							return 1293565798;
							break;
						
						case 5:
							return 1230599348;
							break;
						
						case 6:
							return 80125466;
							break;
						
						case 7:
							return 768104686;
							break;
						
						case 8:
							return -1559755280;
							break;
					}
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 0:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -414534788;
							break;
						
						case 3:
							return 185531215;
							break;
						
						case 4:
							return -775417853;
							break;
						
						case 5:
							return 1619085169;
							break;
						
						case 6:
							return 888176083;
							break;
						
						case 7:
							return -868636293;
							break;
						
						case 8:
							return -481241218;
							break;
					}
					break;
				
				case 1:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 982904848;
							break;
						
						case 3:
							return 1053086051;
							break;
						
						case 4:
							return 1565990968;
							break;
						
						case 5:
							return 869354244;
							break;
						
						case 6:
							return -1137668925;
							break;
						
						case 7:
							return -245327436;
							break;
						
						case 8:
							return -2092735770;
							break;
					}
					break;
				
				case 2:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1286693086;
							break;
						
						case 3:
							return 443095479;
							break;
						
						case 4:
							return -2039335276;
							break;
						
						case 5:
							return 2083407994;
							break;
						
						case 6:
							return 533001127;
							break;
						
						case 7:
							return 1728875992;
							break;
						
						case 8:
							return -1665814217;
							break;
					}
					break;
				
				case 3:
					break;
				
				case 4:
					switch (iParam2)
					{
						case 0:
							return 1402439971;
							break;
						
						case 1:
							return -77210386;
							break;
						
						case 2:
							return 206640931;
							break;
						
						case 3:
							return 1434974169;
							break;
						
						case 4:
							return -2076303403;
							break;
						
						case 5:
							return 2073263245;
							break;
						
						case 6:
							return 229693395;
							break;
						
						case 7:
							return -981246739;
							break;
						
						case 8:
							return 2107613618;
							break;
					}
					break;
				
				case 5:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1954830049;
							break;
						
						case 3:
							return 1793062342;
							break;
						
						case 4:
							return -2118725149;
							break;
						
						case 5:
							return -849747283;
							break;
						
						case 6:
							return 1582789248;
							break;
						
						case 7:
							return -1675687168;
							break;
						
						case 8:
							return -381889304;
							break;
					}
					break;
				
				case 6:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1942207698;
							break;
						
						case 3:
							return -743369876;
							break;
						
						case 4:
							return 582693633;
							break;
						
						case 5:
							return -1280288284;
							break;
						
						case 6:
							return -1000105499;
							break;
						
						case 7:
							return -2147200029;
							break;
						
						case 8:
							return -1838714866;
							break;
					}
					break;
				
				case 7:
					break;
				
				case 8:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1187050736;
							break;
						
						case 3:
							return -1420954963;
							break;
						
						case 4:
							return 232453794;
							break;
						
						case 5:
							return 406178867;
							break;
						
						case 6:
							return 739288468;
							break;
						
						case 7:
							return -252997160;
							break;
						
						case 8:
							return -2044888090;
							break;
					}
					break;
				
				case 9:
					break;
				
				case 10:
					break;
				
				case 11:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 1703311969;
							break;
						
						case 3:
							return 1875667738;
							break;
						
						case 4:
							return 1291347593;
							break;
						
						case 5:
							return -713453992;
							break;
						
						case 6:
							return 1417339152;
							break;
						
						case 7:
							return 587281350;
							break;
						
						case 8:
							return -86904022;
							break;
					}
					break;
				
				case 12:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -1858518769;
							break;
						
						case 3:
							return 44044890;
							break;
						
						case 4:
							return -1131137757;
							break;
						
						case 5:
							return 213313570;
							break;
						
						case 6:
							return -233124949;
							break;
						
						case 7:
							return 171345846;
							break;
						
						case 8:
							return 1452902248;
							break;
					}
					break;
				
				case 13:
					break;
				
				case 14:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return 747852506;
							break;
						
						case 3:
							return 216238268;
							break;
						
						case 4:
							return 404894315;
							break;
						
						case 5:
							return 950341895;
							break;
						
						case 6:
							return 1159773017;
							break;
						
						case 7:
							return -957185436;
							break;
						
						case 8:
							return -240960885;
							break;
					}
					break;
				
				case 15:
					switch (iParam2)
					{
						case 0:
							break;
						
						case 1:
							break;
						
						case 2:
							return -259688953;
							break;
						
						case 3:
							return -736534114;
							break;
						
						case 4:
							return -1673886961;
							break;
						
						case 5:
							return 976562040;
							break;
						
						case 6:
							return -1794803798;
							break;
						
						case 7:
							return -81887956;
							break;
						
						case 8:
							return 1689176064;
							break;
					}
					break;
			}
			break;
	}
	return -1;
}

int func_201(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x31A5B
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	
	iVar0 = -99;
	iVar1 = -1;
	iVar2 = -1;
	iVar3 = -1;
	iVar4 = -1;
	switch (iParam0)
	{
		case joaat("mp_m_freemode_01"):
			if (iParam2 >= 237)
			{
				iVar2 = func_104(iParam0, iParam2, 11, 3);
				iVar1 = func_195(iVar2);
			}
			if (iParam1 >= 241)
			{
				iVar4 = func_104(iParam0, iParam1, 8, 3);
				iVar3 = func_195(iVar4);
			}
			if ((iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -416620954, 0)) || (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1507532917, 0)))
			{
				if (iParam1 == 240)
				{
					iVar0 = 14;
				}
				else if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
				{
					iVar0 = 6;
				}
				else if ((iParam1 >= 16 && iParam1 <= 31) || iVar3 == 1)
				{
					iVar0 = 1;
				}
				else
				{
					iVar0 = 4;
				}
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719338724, 0))
			{
				if (iParam1 == 240)
				{
					iVar0 = 14;
				}
				else if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
				{
					iVar0 = 6;
				}
				else
				{
					iVar0 = 1;
				}
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1939378450, 0))
			{
				if ((iParam1 >= 192 && iParam1 <= 207) || iVar3 == 12)
				{
					iVar0 = 0;
				}
				else
				{
					iVar0 = 11;
				}
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 264959411, 0))
			{
				if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
				{
					iVar0 = 6;
				}
				else if (iParam1 == 240)
				{
					iVar0 = 14;
				}
				else if ((iParam1 >= 16 && iParam1 <= 31) || iVar3 == 1)
				{
					iVar0 = 1;
				}
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1625463492, 0))
			{
				iVar0 = 12;
			}
			else if ((((((((((iParam2 >= 48 && iParam2 <= 63) || (iParam2 >= 64 && iParam2 <= 79)) || (iParam2 >= 96 && iParam2 <= 107)) || (iParam2 >= 108 && iParam2 <= 123)) || (iParam2 >= 156 && iParam2 <= 171)) || iVar1 == 3) || iVar1 == 4) || iVar1 == 6) || iVar1 == 7) || iVar1 == 10)
			{
				if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
				{
					iVar0 = 6;
				}
				else if (iParam1 == 240 || iVar3 == 15)
				{
					iVar0 = 14;
				}
				else if ((iParam1 >= 160 && iParam1 <= 175) || iVar3 == 10)
				{
					iVar0 = 4;
				}
				else if ((iParam1 >= 176 && iParam1 <= 191) || iVar3 == 11)
				{
					iVar0 = 12;
				}
				else if ((((iParam1 >= 16 && iParam1 <= 31) || (iParam1 >= 224 && iParam1 <= 239)) || iVar3 == 1) || iVar3 == 14)
				{
					iVar0 = 1;
				}
				else if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
				{
					iVar0 = 6;
				}
				else if ((iParam1 >= 32 && iParam1 <= 47) || iVar3 == 2)
				{
					iVar0 = 4;
				}
				else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1847239679, 0))
				{
					if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1914383230, 0))
					{
						iVar0 = 4;
					}
					else
					{
						iVar0 = 1;
					}
				}
				else if ((iParam1 >= 144 && iParam1 <= 159) || iVar3 == 9)
				{
					iVar0 = 1;
				}
				else if (iParam1 >= 241)
				{
					if (iVar4 != -1)
					{
						iVar5 = dlc1::_get_num_forced_components(iVar4);
						iVar6 = 0;
						while (iVar6 < iVar5)
						{
							dlc1::get_forced_component(iVar4, iVar6, &iVar7, &iVar8, &iVar9);
							if (iVar9 == 3)
							{
								if (iVar7 != 0 && iVar7 != 1849449579)
								{
									iVar0 = func_84(iParam0, iVar7, 3, 3);
								}
								else
								{
									iVar0 = iVar8;
								}
								iVar6 = iVar5 + 1;
							}
							iVar6++;
						}
					}
				}
			}
			else if ((iParam2 >= 172 && iParam2 <= 187) || iVar1 == 11)
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -7109286, 0))
				{
					iVar0 = 6;
				}
				else if ((((iParam1 >= 48 && iParam1 <= 63) || (iParam1 >= 112 && iParam1 <= 127)) || iVar3 == 3) || iVar3 == 7)
				{
					iVar0 = 11;
				}
				else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1147939952, 0))
				{
					iVar0 = 12;
				}
				else if (iParam1 == 240)
				{
					iVar0 = 15;
				}
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			if (iParam2 >= 256)
			{
				iVar2 = func_104(iParam0, iParam2, 11, 4);
				iVar1 = func_195(iVar2);
			}
			if (iParam1 >= 136)
			{
				iVar4 = func_104(iParam0, iParam1, 8, 4);
				iVar3 = func_195(iVar4);
				switch (iVar4)
				{
					case 327496660:
					case -63928837:
					case 695885966:
					case 525421628:
					case 1426634666:
					case 1160648693:
					case 1928065904:
					case 1748557322:
					case -1777223233:
					case -1991794649:
					case 917309067:
					case -1629661498:
						iVar3 = 15;
						break;
					
					case 587358117:
					case 742748715:
					case 490263574:
					case 682683142:
					case -1172927021:
					case -174365543:
					case -1450128251:
					case -1811439245:
					case 1578218888:
					case -1193481443:
					case 1549742623:
					case 1309119856:
					case 2143418596:
					case 1905745039:
					case 428026984:
					case 1547729071:
					case -1848319017:
						iVar3 = 13;
						break;
					}
			}
			if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
			{
				iVar0 = 0;
			}
			else if (((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1965569012, 0)) && !func_197(iParam0, iParam2)) && !dlc1::_0x341DE7ED1D2A1BFD(iVar2, 320460654, 0))
			{
				if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1147939952, 0))
				{
					iVar0 = 3;
				}
				else
				{
					iVar0 = 0;
				}
			}
			else if (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1353777856, 0))
			{
				iVar0 = 7;
			}
			else if ((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -849839091, 0)) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -2088146832, 0)))
			{
				iVar0 = 3;
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -2102859770, 0))
			{
				if (dlc1::_0x341DE7ED1D2A1BFD(func_104(iParam0, iParam3, 4, 4), -33031567, 0))
				{
					iVar0 = 11;
				}
				else
				{
					iVar0 = 15;
				}
			}
			else if (((((iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1119232689, 0)) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 1976716889, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1488441032, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, 2044466679, 0))) || (iVar4 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1419806467, 0)))
			{
				if ((((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 96 && iParam2 <= 111)) || (iParam2 >= 128 && iParam2 <= 143)) || iVar1 == 1) || iVar1 == 6) || iVar1 == 8)
				{
					iVar0 = 1;
				}
				else if ((((((((((((((((iParam2 >= 112 && iParam2 <= 127) || (iParam2 >= 160 && iParam2 <= 175)) || iVar1 == 7) || iVar1 == 10) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 2026620439, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1322269404, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 548036233, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -870074461, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1174924468, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -868698159, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 1769225721, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1834446747, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719338724, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -416620954, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, 947651647, 0))
				{
					iVar0 = 3;
				}
				else if (dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1939378450, 0))
				{
					iVar0 = 9;
				}
			}
			else if (iVar2 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar2, -870074461, 0))
			{
				if ((((dlc1::_0x341DE7ED1D2A1BFD(iVar4, 684992453, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 264959411, 0))
				{
					iVar0 = 1;
				}
				else
				{
					iVar0 = 6;
				}
			}
			else if ((iParam2 >= 16 && iParam2 <= 31) || iVar1 == 1)
			{
				if ((((iParam1 >= 50 && iParam1 <= 65) || (iParam1 >= 120 && iParam1 <= 135)) || iVar3 == 5) || iVar3 == 15)
				{
					iVar0 = 5;
				}
				else if (iParam1 >= 136)
				{
					if (iVar4 != -1)
					{
						iVar10 = dlc1::_get_num_forced_components(iVar4);
						iVar11 = 0;
						while (iVar11 < iVar10)
						{
							dlc1::get_forced_component(iVar4, iVar11, &iVar12, &iVar13, &iVar14);
							if (iVar14 == 3)
							{
								if (iVar12 != 0 && iVar12 != 1849449579)
								{
									iVar0 = func_84(iParam0, iVar12, 3, 4);
								}
								else
								{
									iVar0 = iVar13;
								}
								iVar11 = iVar10 + 1;
							}
							iVar11++;
						}
					}
				}
			}
			else if (((iParam2 >= 112 && iParam2 <= 127) || iVar1 == 7) || dlc1::_0x341DE7ED1D2A1BFD(iVar2, -1719338724, 0))
			{
				if ((((dlc1::_0x341DE7ED1D2A1BFD(iVar4, 684992453, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 916636514, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, -1939378450, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 441715397, 0)) || dlc1::_0x341DE7ED1D2A1BFD(iVar4, 264959411, 0))
				{
					iVar0 = 3;
				}
				else
				{
					iVar0 = 6;
				}
			}
			break;
	}
	return iVar0;
}

int func_202(int iParam0, int iParam1, int iParam2)//Position - 0x32568
{
	int iVar0;
	
	if (iParam1 == 14)
	{
		iVar0 = iParam2;
		return func_100(iVar0);
	}
	switch (iParam0)
	{
		case joaat("player_zero"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 2:
					return Global_101154.f_1826.f_539[0 /*65*/].f_59;
					break;
				
				case 3:
					if (Global_101154.f_7775.f_99.f_58[120])
					{
						return 1;
					}
					else
					{
						return 0;
					}
					break;
				
				case 4:
					if (Global_101154.f_7775.f_99.f_58[120])
					{
						return 1;
					}
					else
					{
						return 0;
					}
					break;
				
				case 6:
					return 6;
					break;
				
				case 5:
					return 0;
					break;
				
				case 8:
					return 0;
					break;
				
				case 9:
					return 0;
					break;
				
				case 10:
					return 0;
					break;
				
				case 1:
					return 0;
					break;
				
				case 7:
					return 0;
					break;
				
				case 11:
					return 0;
					break;
				
				case 12:
					break;
				
				case 13:
					return 31;
					break;
			}
			break;
		
		case joaat("player_one"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 2:
					return Global_101154.f_1826.f_539[1 /*65*/].f_59;
					break;
				
				case 3:
					return 73;
					break;
				
				case 4:
					return 24;
					break;
				
				case 6:
					return 17;
					break;
				
				case 5:
					return 0;
					break;
				
				case 8:
					return 26;
					break;
				
				case 9:
					return 0;
					break;
				
				case 10:
					return 0;
					break;
				
				case 1:
					return 0;
					break;
				
				case 7:
					return 0;
					break;
				
				case 11:
					return 0;
					break;
				
				case 12:
					break;
				
				case 13:
					return 31;
					break;
			}
			break;
		
		case joaat("player_two"):
			switch (iParam1)
			{
				case 0:
					return 0;
					break;
				
				case 2:
					return Global_101154.f_1826.f_539[2 /*65*/].f_59;
					break;
				
				case 3:
					return 0;
					break;
				
				case 4:
					return 91;
					break;
				
				case 6:
					return 8;
					break;
				
				case 5:
					return 0;
					break;
				
				case 8:
					return 15;
					break;
				
				case 9:
					return 0;
					break;
				
				case 10:
					return 0;
					break;
				
				case 1:
					return 0;
					break;
				
				case 7:
					return 0;
					break;
				
				case 11:
					return 0;
					break;
				
				case 12:
					break;
				
				case 13:
					return 31;
					break;
			}
			break;
		
		case joaat("mp_m_freemode_01"):
			switch (iParam1)
			{
				case 0:
					break;
				
				case 2:
					break;
				
				case 3:
					return 0;
					break;
				
				case 4:
					return 80;
					break;
				
				case 6:
					return 10;
					break;
				
				case 5:
					break;
				
				case 8:
					return 0;
					break;
				
				case 9:
					return 0;
					break;
				
				case 10:
					return 0;
					break;
				
				case 1:
					return 0;
					break;
				
				case 7:
					return 0;
					break;
				
				case 11:
					return 2;
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam1)
			{
				case 0:
					break;
				
				case 2:
					break;
				
				case 3:
					return 0;
					break;
				
				case 4:
					return 233;
					break;
				
				case 6:
					return 16;
					break;
				
				case 5:
					break;
				
				case 8:
					return 0;
					break;
				
				case 9:
					return 0;
					break;
				
				case 10:
					return 0;
					break;
				
				case 1:
					return 0;
					break;
				
				case 7:
					return 0;
					break;
				
				case 11:
					return 78;
					break;
			}
			break;
		
		default:
			break;
	}
	return -99;
}

int func_203(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x32982
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	int iVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	int iVar21;
	int iVar22;
	int iVar23;
	int iVar24;
	int iVar25;
	int iVar26;
	int iVar27;
	int iVar28;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	int iVar33;
	int iVar34;
	int iVar35;
	int iVar36;
	int iVar37;
	int iVar38;
	int iVar39;
	int iVar40;
	int iVar41;
	int iVar42;
	int iVar43;
	int iVar44;
	int iVar45;
	int iVar46;
	int iVar47;
	int iVar48;
	int iVar49;
	int iVar50;
	int iVar51;
	int iVar52;
	int iVar53;
	int iVar54;
	int iVar55;
	int iVar56;
	int iVar57;
	int iVar58;
	int iVar59;
	int iVar60;
	int iVar61;
	int iVar62;
	int iVar63;
	int iVar64;
	int iVar65;
	int iVar66;
	int iVar67;
	int iVar68;
	int iVar69;
	int iVar70;
	int iVar71;
	int iVar72;
	int iVar73;
	int iVar74;
	int iVar75;
	int iVar76;
	int iVar77;
	int iVar78;
	int iVar79;
	int iVar80;
	int iVar81;
	int iVar82;
	int iVar83;
	int iVar84;
	int iVar85;
	int iVar86;
	int iVar87;
	int iVar88;
	int iVar89;
	int iVar90;
	int iVar91;
	int iVar92;
	int iVar93;
	int iVar94;
	int iVar95;
	int iVar96;
	int iVar97;
	int iVar98;
	int iVar99;
	int iVar100;
	int iVar101;
	int iVar102;
	int iVar103;
	int iVar104;
	int iVar105;
	int iVar106;
	int iVar107;
	int iVar108;
	int iVar109;
	int iVar110;
	int iVar111;
	int iVar112;
	int iVar113;
	int iVar114;
	int iVar115;
	int iVar116;
	int iVar117;
	int iVar118;
	int iVar119;
	int iVar120;
	int iVar121;
	int iVar122;
	int iVar123;
	int iVar124;
	int iVar125;
	int iVar126;
	int iVar127;
	int iVar128;
	int iVar129;
	int iVar130;
	int iVar131;
	int iVar132;
	int iVar133;
	int iVar134;
	int iVar135;
	int iVar136;
	int iVar137;
	int iVar138;
	int iVar139;
	int iVar140;
	int iVar141;
	int iVar142;
	int iVar143;
	int iVar144;
	int iVar145;
	int iVar146;
	int iVar147;
	int iVar148;
	
	iVar0 = -99;
	if (iParam4 == 2)
	{
		func_204(iParam0, iParam1, iParam2, iParam3, &iVar0);
	}
	else if (iParam1 == joaat("mp_m_freemode_01"))
	{
		if (iParam4 == 3)
		{
			if (iParam2 == 11)
			{
				if (iParam3 <= 15)
				{
					iVar0 = 0;
				}
				else if (iParam3 <= 31)
				{
					iVar0 = 0;
				}
				else if (iParam3 <= 47)
				{
					iVar0 = 2;
				}
				else if (iParam3 <= 63)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 79)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 95)
				{
					iVar0 = 5;
				}
				else if (iParam3 <= 107)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 123)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 139)
				{
					iVar0 = 8;
				}
				else if (iParam3 <= 155)
				{
					iVar0 = 0;
				}
				else if (iParam3 <= 171)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 187)
				{
					iVar2 = func_95(iParam0, 8);
					iVar3 = func_104(iParam1, iVar2, 8, 3);
					iVar4 = func_195(iVar3);
					if (((((iVar2 >= 96 && iVar2 <= 111) || (iVar2 >= 112 && iVar2 <= 127)) || (iVar2 >= 241 && iVar4 == 6)) || (iVar2 >= 241 && iVar4 == 7)) || (iVar2 >= 241 && dlc1::_0x341DE7ED1D2A1BFD(iVar3, 1965569012, 0)))
					{
						iVar0 = -99;
					}
					else
					{
						iVar0 = 11;
					}
				}
				else if (iParam3 <= 203)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 219)
				{
					iVar0 = 11;
				}
				else if (iParam3 <= 235)
				{
					iVar0 = 4;
				}
				else if (iParam3 == 236)
				{
					iVar0 = 15;
				}
				else if (iParam3 >= 237)
				{
					iVar5 = func_104(iParam1, iParam3, 11, 3);
					if (iVar5 != -1)
					{
						iVar6 = true;
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar5, 19149565, 0))
						{
							iVar2 = func_95(iParam0, 8);
							iVar7 = func_104(iParam1, iVar2, 8, 3);
							iVar8 = func_195(iVar7);
							if (((((iVar2 >= 96 && iVar2 <= 111) || (iVar2 >= 112 && iVar2 <= 127)) || (iVar2 >= 241 && iVar8 == 6)) || (iVar2 >= 241 && iVar8 == 7)) || (iVar2 >= 241 && dlc1::_0x341DE7ED1D2A1BFD(iVar7, 1965569012, 0)))
							{
								iVar6 = false;
							}
						}
						if (iVar6)
						{
							iVar9 = dlc1::_get_num_forced_components(iVar5);
							iVar10 = 0;
							while (iVar10 < iVar9)
							{
								dlc1::get_forced_component(iVar5, iVar10, &iVar11, &iVar12, &iVar13);
								if (iVar13 == 3)
								{
									if (iVar11 != 0 && iVar11 != 1849449579)
									{
										iVar0 = func_84(iParam1, iVar11, 3, 3);
									}
									else
									{
										iVar0 = iVar12;
									}
									iVar10 = iVar9 + 1;
								}
								iVar10++;
							}
						}
					}
				}
			}
			else if (iParam2 == 8)
			{
				if (iParam3 <= 15)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 31)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 47)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 63)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 79)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 95)
				{
					iVar0 = 6;
				}
				else if (iParam3 <= 111)
				{
					iVar0 = 11;
				}
				else if (iParam3 <= 127)
				{
					iVar0 = 11;
				}
				else if (iParam3 <= 143)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 159)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 175)
				{
					iVar0 = 4;
				}
				else if (iParam3 <= 191)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 207)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 223)
				{
					iVar0 = 1;
				}
				else if (iParam3 <= 239)
				{
					iVar0 = -99;
				}
				else if (iParam3 == 240)
				{
					iVar0 = 14;
				}
				else if (iParam3 >= 241)
				{
					iVar14 = func_104(iParam1, iParam3, 8, 3);
					if (iVar14 != -1)
					{
						iVar15 = dlc1::_get_num_forced_components(iVar14);
						iVar16 = 0;
						while (iVar16 < iVar15)
						{
							dlc1::get_forced_component(iVar14, iVar16, &iVar17, &iVar18, &iVar19);
							if (iVar19 == 3)
							{
								if (iVar17 != 0 && iVar17 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar17, 3, 3);
								}
								else
								{
									iVar0 = iVar18;
									iVar16 = iVar15 + 1;
								}
							}
							iVar16++;
						}
					}
				}
			}
		}
		else if (iParam4 == 8)
		{
			if (iParam2 == 11)
			{
				iVar20 = -1;
				if (iParam3 >= 237)
				{
					iVar20 = func_195(func_104(iParam1, iParam3, 11, 3));
				}
				if (iParam3 <= 15)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 31)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 47)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 63)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 79)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 95)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 107)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 123)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 139)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 155)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 171)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 187 || iVar20 == 11)
				{
					iVar2 = func_95(iParam0, 8);
					iVar21 = func_104(iParam1, iVar2, 8, 3);
					iVar22 = func_195(iVar21);
					if (((((iVar2 >= 96 && iVar2 <= 111) || (iVar2 >= 112 && iVar2 <= 127)) || (iVar2 >= 241 && iVar22 == 6)) || (iVar2 >= 241 && iVar22 == 7)) || (iVar2 >= 241 && dlc1::_0x341DE7ED1D2A1BFD(iVar21, 1965569012, 0)))
					{
					}
					else
					{
						iVar0 = 112;
					}
				}
				else if (iParam3 <= 203)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 219)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 235)
				{
					iVar0 = 240;
				}
				else if (iParam3 <= 236)
				{
					iVar0 = 240;
				}
				else if (iParam3 >= 237)
				{
					iVar23 = func_104(iParam1, iParam3, 11, 3);
					if (iVar23 != -1)
					{
						iVar24 = dlc1::_get_num_forced_components(iVar23);
						iVar25 = 0;
						while (iVar25 < iVar24)
						{
							dlc1::get_forced_component(iVar23, iVar25, &iVar26, &iVar27, &iVar28);
							if (iVar28 == 8)
							{
								if (iVar26 != 0 && iVar26 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar26, 8, 3);
								}
								else
								{
									iVar0 = iVar27;
									iVar25 = iVar24 + 1;
								}
							}
							iVar25++;
						}
					}
				}
			}
			else if (iParam2 == 7)
			{
				iVar29 = -1;
				iVar30 = -1;
				if (iParam3 >= 92)
				{
					iVar30 = func_104(iParam1, iParam3, 7, 3);
					iVar29 = func_195(iVar30);
				}
				if (((((((((iParam3 >= 41 && iParam3 <= 56) || (iParam3 >= 57 && iParam3 <= 72)) || (iParam3 >= 73 && iParam3 <= 88)) || iVar29 == 10) || iVar29 == 11) || iVar29 == 12) || (iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar30, -1950939707, 0))) || (iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar30, -1371423804, 0))) || (iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar30, -920534092, 0)))
				{
					iVar2 = func_95(iParam0, 8);
					if (iVar2 >= 48 && iVar2 <= 63)
					{
						iVar1 = (iVar2 - 48);
						iVar0 = (64 + iVar1);
					}
					else if (iVar2 >= 112 && iVar2 <= 127)
					{
						iVar1 = (iVar2 - 112);
						iVar0 = (96 + iVar1);
					}
					else if (iVar2 >= 176 && iVar2 <= 191)
					{
						iVar1 = (iVar2 - 176);
						iVar0 = (160 + iVar1);
					}
					else if (iVar2 >= 241)
					{
						iVar31 = func_104(iParam1, iVar2, 8, 3);
						iVar32 = func_195(iVar31);
						iVar33 = dlc1::_0x341DE7ED1D2A1BFD(iVar31, 651155766, 0);
						if (((iVar32 == 3 || iVar32 == 7) || iVar32 == 11) || dlc1::_0x341DE7ED1D2A1BFD(iVar31, 1553766533, 0))
						{
							if (iVar31 != -1)
							{
								iVar34 = dlc1::_0xC17AD0E5752BECDA(iVar31);
								iVar35 = 0;
								while (iVar35 < iVar34)
								{
									dlc1::get_variant_component(iVar31, iVar35, &iVar36, &iVar37, &iVar38);
									if ((iVar38 == 8 && !iVar33) || (iVar38 == 10 && iVar33))
									{
										if (iVar36 != 0 && iVar36 != 1849449579)
										{
											iVar0 = func_84(iParam1, iVar36, 8, 3);
										}
										else
										{
											iVar0 = iVar37;
										}
										iVar35 = iVar34 + 1;
									}
									iVar35++;
								}
							}
						}
					}
				}
				else if (((iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar30, -378906828, 0)) || (iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar30, -695703461, 0))) || (iParam3 >= 92 && dlc1::_0x341DE7ED1D2A1BFD(iVar30, -108328099, 0)))
				{
					iVar39 = func_104(iParam1, iVar2, 8, 3);
					iVar40 = func_195(iVar39);
					iVar41 = dlc1::_0x341DE7ED1D2A1BFD(iVar39, 651155766, 0);
					if (((iVar40 == 3 || iVar40 == 7) || iVar40 == 11) || dlc1::_0x341DE7ED1D2A1BFD(iVar39, 1553766533, 0))
					{
						if (iVar39 != -1)
						{
							iVar42 = dlc1::_0xC17AD0E5752BECDA(iVar39);
							iVar43 = 0;
							while (iVar43 < iVar42)
							{
								dlc1::get_variant_component(iVar39, iVar43, &iVar44, &iVar45, &iVar46);
								if ((iVar46 == 8 && !iVar41) || (iVar46 == 10 && iVar41))
								{
									if (iVar44 != 0 && iVar44 != 1849449579)
									{
										iVar0 = func_84(iParam1, iVar44, 8, 3);
									}
									else
									{
										iVar0 = iVar45;
									}
									iVar43 = iVar42 + 1;
								}
								iVar43++;
							}
						}
					}
				}
				else if (iParam3 >= 92)
				{
					iVar47 = func_104(iParam1, iParam3, 7, 3);
					if (iVar47 != -1)
					{
						iVar48 = dlc1::_get_num_forced_components(iVar47);
						iVar49 = 0;
						while (iVar49 < iVar48)
						{
							dlc1::get_forced_component(iVar47, iVar49, &iVar50, &iVar51, &iVar52);
							if (iVar52 == 8)
							{
								if (iVar50 != 0 && iVar50 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar50, 8, 3);
								}
								else
								{
									iVar0 = iVar51;
									iVar49 = iVar48 + 1;
								}
							}
							iVar49++;
						}
					}
				}
			}
		}
		else if (iParam4 == 11)
		{
			if (iParam2 == 7)
			{
				iVar53 = -1;
				iVar54 = -1;
				if (iParam3 >= 92)
				{
					iVar54 = func_104(iParam1, iParam3, 7, 3);
					iVar53 = func_195(iVar54);
				}
				if (((((((iParam3 >= 41 && iParam3 <= 56) || (iParam3 >= 57 && iParam3 <= 72)) || (iParam3 >= 73 && iParam3 <= 88)) || iVar53 == 10) || iVar53 == 11) || iVar53 == 12) || dlc1::_0x341DE7ED1D2A1BFD(iVar54, -920534092, 0))
				{
					iVar55 = func_95(iParam0, 11);
					if (iVar55 >= 237)
					{
						iVar56 = func_104(iParam1, iVar55, 11, 3);
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar56, 1847239679, 0) && dlc1::_0x341DE7ED1D2A1BFD(iVar56, 1553766533, 0))
						{
							if (iVar56 != -1)
							{
								iVar57 = dlc1::_0xC17AD0E5752BECDA(iVar56);
								iVar58 = 0;
								while (iVar58 < iVar57)
								{
									dlc1::get_variant_component(iVar56, iVar58, &iVar59, &iVar60, &iVar61);
									if (iVar61 == 11)
									{
										if (iVar59 != 0 && iVar59 != 1849449579)
										{
											iVar0 = func_84(iParam1, iVar59, 11, 3);
										}
										else
										{
											iVar0 = iVar60;
										}
										iVar58 = iVar57 + 1;
									}
									iVar58++;
								}
							}
						}
					}
				}
			}
		}
		else if (iParam4 == 7)
		{
			if (iParam2 == 11)
			{
				iVar62 = func_95(iParam0, 11);
				if (iVar62 >= 237)
				{
					iVar63 = func_104(iParam1, iVar62, 11, 3);
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar63, 1847239679, 0) && dlc1::_0x341DE7ED1D2A1BFD(iVar63, 1553766533, 0))
					{
						iVar63 = func_104(iParam1, iParam3, 11, 3);
						if (iVar63 != -1)
						{
							iVar64 = dlc1::_get_num_forced_components(iVar63);
							iVar65 = 0;
							while (iVar65 < iVar64)
							{
								dlc1::get_forced_component(iVar63, iVar65, &iVar66, &iVar67, &iVar68);
								if (iVar68 == 7)
								{
									if (iVar66 != 0 && iVar66 != 1849449579)
									{
										iVar0 = func_84(iParam1, iVar66, 7, 3);
									}
									else
									{
										iVar0 = iVar67;
										iVar65 = iVar64 + 1;
									}
								}
								iVar65++;
							}
						}
					}
				}
			}
			else if (iParam2 == 14)
			{
				if (iParam3 >= 327)
				{
					iVar69 = func_104(iParam1, iParam3, 14, 3);
					if (iVar69 != -1)
					{
						iVar70 = dlc1::_get_num_forced_components(iVar69);
						iVar71 = 0;
						while (iVar71 < iVar70)
						{
							dlc1::get_forced_component(iVar69, iVar71, &iVar72, &iVar73, &iVar74);
							if (iVar74 == 7)
							{
								if (iVar72 != 0 && iVar72 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar72, 7, 3);
								}
								else
								{
									iVar0 = iVar73;
									iVar71 = iVar70 + 1;
								}
							}
							iVar71++;
						}
					}
				}
			}
		}
		else if (iParam4 == 4)
		{
			if (iParam2 == 11)
			{
				if (iParam3 >= 237)
				{
					iVar75 = func_104(iParam1, iParam3, 11, 3);
					if (iVar75 != -1)
					{
						iVar76 = dlc1::_get_num_forced_components(iVar75);
						iVar77 = 0;
						while (iVar77 < iVar76)
						{
							dlc1::get_forced_component(iVar75, iVar77, &iVar78, &iVar79, &iVar80);
							if (iVar80 == 4)
							{
								if (iVar78 != 0 && iVar78 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar78, 4, 3);
								}
								else
								{
									iVar0 = iVar79;
									iVar77 = iVar76 + 1;
								}
							}
							iVar77++;
						}
					}
				}
			}
		}
		else if (iParam4 == 6)
		{
			if (iParam2 == 4)
			{
				if (iParam3 >= 256)
				{
					iVar81 = func_104(iParam1, iParam3, 4, 3);
					if (iVar81 != -1)
					{
						iVar82 = dlc1::_get_num_forced_components(iVar81);
						iVar83 = 0;
						while (iVar83 < iVar82)
						{
							dlc1::get_forced_component(iVar81, iVar83, &iVar84, &iVar85, &iVar86);
							if (iVar86 == 6)
							{
								if (iVar84 != 0 && iVar84 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar84, 6, 3);
								}
								else
								{
									iVar0 = iVar85;
									iVar83 = iVar82 + 1;
								}
							}
							iVar83++;
						}
					}
				}
			}
			else if (iParam2 == 11)
			{
				if (iParam3 >= 237)
				{
					iVar87 = func_104(iParam1, iParam3, 11, 3);
					if (iVar87 != -1)
					{
						iVar88 = dlc1::_get_num_forced_components(iVar87);
						iVar89 = 0;
						while (iVar89 < iVar88)
						{
							dlc1::get_forced_component(iVar87, iVar89, &iVar90, &iVar91, &iVar92);
							if (iVar92 == 6)
							{
								if (iVar90 != 0 && iVar90 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar90, 6, 3);
								}
								else
								{
									iVar0 = iVar91;
									iVar89 = iVar88 + 1;
								}
							}
							iVar89++;
						}
					}
				}
			}
		}
		else if (iParam4 == 14)
		{
			if (iParam2 == 1)
			{
				if (iParam3 >= 26)
				{
					iVar93 = func_104(iParam1, iParam3, 1, 3);
					if (iVar93 != -1)
					{
						iVar94 = dlc1::_0x017568A8182D98A6(iVar93);
						iVar95 = 0;
						while (iVar95 < iVar94)
						{
							dlc1::_0xE1CA84EBF72E691D(iVar93, iVar95, &iVar96, &iVar97, &iVar98);
							if (iVar98 == iParam5)
							{
								if (iVar96 != 0 && iVar96 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar96, 14, 3);
									iVar95 = iVar94 + 1;
								}
								else
								{
									iVar0 = iVar97;
									iVar95 = iVar94 + 1;
								}
							}
							iVar95++;
						}
					}
				}
			}
		}
	}
	else if (iParam1 == joaat("mp_f_freemode_01"))
	{
		if (iParam4 == 3)
		{
			if (iParam2 == 11)
			{
				if (iParam3 <= 15)
				{
					iVar0 = 0;
				}
				else if (iParam3 <= 31)
				{
					iVar0 = 5;
				}
				else if (iParam3 <= 47)
				{
					iVar0 = 2;
				}
				else if (iParam3 <= 63)
				{
					iVar0 = 3;
				}
				else if (iParam3 <= 79)
				{
					iVar0 = 4;
				}
				else if (iParam3 <= 95)
				{
					iVar0 = 4;
				}
				else if (iParam3 <= 111)
				{
					iVar0 = 5;
				}
				else if (iParam3 <= 127)
				{
					iVar0 = 6;
				}
				else if (iParam3 <= 143)
				{
					iVar0 = 5;
				}
				else if (iParam3 <= 159)
				{
					iVar0 = 9;
				}
				else if (iParam3 <= 175)
				{
					iVar0 = 7;
				}
				else if (iParam3 <= 191)
				{
					iVar0 = 11;
				}
				else if (iParam3 <= 207)
				{
					iVar0 = 12;
				}
				else if (iParam3 <= 223)
				{
					iVar0 = 4;
				}
				else if (iParam3 <= 239)
				{
					iVar0 = 14;
				}
				else if (iParam3 <= 255)
				{
					iVar0 = 15;
				}
				else if (iParam3 >= 256)
				{
					iVar99 = func_104(iParam1, iParam3, 11, 4);
					if (iVar99 != -1)
					{
						iVar100 = dlc1::_get_num_forced_components(iVar99);
						iVar101 = 0;
						while (iVar101 < iVar100)
						{
							dlc1::get_forced_component(iVar99, iVar101, &iVar102, &iVar103, &iVar104);
							if (iVar104 == 3)
							{
								if (iVar102 != 0 && iVar102 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar102, 3, 4);
								}
								else
								{
									iVar0 = iVar103;
									iVar101 = iVar100 + 1;
								}
							}
							iVar101++;
						}
					}
				}
			}
		}
		else if (iParam4 == 8)
		{
			if (iParam2 == 11)
			{
				if (iParam3 <= 15)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 31)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 47)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 63)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 79)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 95)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 111)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 127)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 143)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 159)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 175)
				{
					iVar0 = -99;
				}
				else if (iParam3 <= 191)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 207)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 223)
				{
					iVar1 = (iParam3 - 208);
					iVar0 = (103 + iVar1);
				}
				else if (iParam3 <= 239)
				{
					iVar0 = 33;
				}
				else if (iParam3 <= 255)
				{
					iVar0 = 33;
				}
				else if (iParam3 >= 256)
				{
					iVar105 = func_104(iParam1, iParam3, 11, 4);
					if (iVar105 != -1)
					{
						iVar106 = dlc1::_get_num_forced_components(iVar105);
						iVar107 = 0;
						while (iVar107 < iVar106)
						{
							dlc1::get_forced_component(iVar105, iVar107, &iVar108, &iVar109, &iVar110);
							if (iVar110 == 8)
							{
								if (iVar108 != 0 && iVar108 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar108, 8, 4);
								}
								else
								{
									iVar0 = iVar109;
									iVar107 = iVar106 + 1;
								}
							}
							iVar107++;
						}
					}
				}
			}
			else if (iParam2 == 7)
			{
				iVar111 = -1;
				if (iParam3 >= 55)
				{
					iVar111 = func_104(iParam1, iParam3, 7, 4);
				}
				if ((iVar111 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar111, -920534092, 0)) || (iVar111 != -1 && dlc1::_0x341DE7ED1D2A1BFD(iVar111, 1537081084, 0)))
				{
					iVar112 = dlc1::get_hash_name_for_component(iParam0, 8, ped::get_ped_drawable_variation(iParam0, 8), ped::get_ped_texture_variation(iParam0, 8));
					iVar113 = false;
					if (dlc1::_0x341DE7ED1D2A1BFD(iVar111, -378906828, 0) || dlc1::_0x341DE7ED1D2A1BFD(iVar111, -108328099, 0))
					{
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar112, -1914383230, 0))
						{
							iVar113 = true;
						}
					}
					else if (dlc1::_0x341DE7ED1D2A1BFD(iVar112, 1553766533, 0))
					{
						iVar113 = true;
					}
					if (iVar113)
					{
						iVar114 = dlc1::_0xC17AD0E5752BECDA(iVar112);
						iVar115 = 0;
						while (iVar115 < iVar114)
						{
							dlc1::get_variant_component(iVar112, iVar115, &iVar116, &iVar117, &iVar118);
							if (iVar118 == 8)
							{
								if (iVar116 != 0 && iVar116 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar116, 8, 4);
								}
								else
								{
									iVar0 = iVar117;
								}
								iVar115 = iVar114 + 1;
							}
							iVar115++;
						}
					}
				}
			}
		}
		else if (iParam4 == 6)
		{
			if (iParam2 == 4)
			{
				if (iParam3 >= 256)
				{
					iVar119 = func_104(iParam1, iParam3, 4, 4);
					if (iVar119 != -1)
					{
						iVar120 = dlc1::_get_num_forced_components(iVar119);
						iVar121 = 0;
						while (iVar121 < iVar120)
						{
							dlc1::get_forced_component(iVar119, iVar121, &iVar122, &iVar123, &iVar124);
							if (iVar124 == 6)
							{
								if (iVar122 != 0 && iVar122 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar122, 6, 4);
								}
								else
								{
									iVar0 = iVar123;
									iVar121 = iVar120 + 1;
								}
							}
							iVar121++;
						}
					}
				}
			}
			else if (iParam2 == 11)
			{
				if (iParam3 >= 256)
				{
					iVar125 = func_104(iParam1, iParam3, 11, 4);
					if (iVar125 != -1)
					{
						iVar126 = dlc1::_get_num_forced_components(iVar125);
						iVar127 = 0;
						while (iVar127 < iVar126)
						{
							dlc1::get_forced_component(iVar125, iVar127, &iVar128, &iVar129, &iVar130);
							if (iVar130 == 6)
							{
								if (iVar128 != 0 && iVar128 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar128, 6, 4);
								}
								else
								{
									iVar0 = iVar129;
									iVar127 = iVar126 + 1;
								}
							}
							iVar127++;
						}
					}
				}
			}
		}
		else if (iParam4 == 4)
		{
			if (iParam2 == 11)
			{
				if (iParam3 >= 256)
				{
					iVar131 = func_104(iParam1, iParam3, 11, 4);
					if (iVar131 != -1)
					{
						iVar132 = dlc1::_get_num_forced_components(iVar131);
						iVar133 = 0;
						while (iVar133 < iVar132)
						{
							dlc1::get_forced_component(iVar131, iVar133, &iVar134, &iVar135, &iVar136);
							if (iVar136 == 4)
							{
								if (iVar134 != 0 && iVar134 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar134, 4, 4);
								}
								else
								{
									iVar0 = iVar135;
									iVar133 = iVar132 + 1;
								}
							}
							iVar133++;
						}
					}
				}
			}
		}
		else if (iParam4 == 7)
		{
			if (iParam2 == 14)
			{
				if (iParam3 >= 327)
				{
					iVar137 = func_104(iParam1, iParam3, 14, 4);
					if (iVar137 != -1)
					{
						iVar138 = dlc1::_get_num_forced_components(iVar137);
						iVar139 = 0;
						while (iVar139 < iVar138)
						{
							dlc1::get_forced_component(iVar137, iVar139, &iVar140, &iVar141, &iVar142);
							if (iVar142 == 7)
							{
								if (iVar140 != 0 && iVar140 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar140, 7, 4);
								}
								else
								{
									iVar0 = iVar141;
									iVar139 = iVar138 + 1;
								}
							}
							iVar139++;
						}
					}
				}
			}
		}
		else if (iParam4 == 14)
		{
			if (iParam2 == 1)
			{
				if (iParam3 >= 26)
				{
					iVar143 = func_104(iParam1, iParam3, 1, 4);
					if (iVar143 != -1)
					{
						iVar144 = dlc1::_0x017568A8182D98A6(iVar143);
						iVar145 = 0;
						while (iVar145 < iVar144)
						{
							dlc1::_0xE1CA84EBF72E691D(iVar143, iVar145, &iVar146, &iVar147, &iVar148);
							if (iVar148 == iParam5)
							{
								if (iVar146 != 0 && iVar146 != 1849449579)
								{
									iVar0 = func_84(iParam1, iVar146, 14, 4);
									iVar145 = iVar144 + 1;
								}
								else
								{
									iVar0 = iVar147;
									iVar145 = iVar144 + 1;
								}
							}
							iVar145++;
						}
					}
				}
			}
		}
	}
	return iVar0;
}

bool func_204(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x33EB3
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	var uVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	var uVar12;
	int iVar13;
	
	*iParam4 = -99;
	switch (iParam1)
	{
		case joaat("mp_m_freemode_01"):
			switch (iParam2)
			{
				case 1:
					if (((((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8)) || iParam3 == 9) || (iParam3 >= 14 && iParam3 <= 17)) || (iParam3 >= 22 && iParam3 <= 25))
					{
						*iParam4 = 0;
					}
					if (iParam3 >= func_85(iParam1, 1))
					{
						func_216(iParam1, 1, iParam3);
						if (Global_2621445 == -1751726434)
						{
							*iParam4 = 0;
						}
					}
					iVar0 = func_95(iParam0, 1);
					if (iVar0 >= 26)
					{
						iVar1 = func_104(iParam1, iVar0, 1, 3);
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar1, -1188154325, 0))
						{
							iVar1 = func_104(iParam1, iParam3, 1, 3);
							if (iVar1 != -1)
							{
								iVar2 = dlc1::_get_num_forced_components(iVar1);
								iVar3 = 0;
								while (iVar3 < iVar2)
								{
									dlc1::get_forced_component(iVar1, iVar3, &iVar4, &uVar5, &iVar6);
									if (iVar6 == 2)
									{
										if (iVar4 != 0 && iVar4 != 1849449579)
										{
											*iParam4 = func_84(iParam1, iVar4, 2, 3);
										}
										else
										{
											*iParam4 = uVar5;
											iVar3 = iVar2 + 1;
										}
									}
									iVar3++;
								}
							}
						}
					}
					break;
			}
			break;
		
		case joaat("mp_f_freemode_01"):
			switch (iParam2)
			{
				case 1:
					if (((((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8)) || iParam3 == 9) || (iParam3 >= 14 && iParam3 <= 17)) || (iParam3 >= 22 && iParam3 <= 25))
					{
						*iParam4 = 0;
					}
					if (iParam3 >= func_85(iParam1, 1))
					{
						func_216(iParam1, 1, iParam3);
						if (Global_2621445 == -1751726434)
						{
							*iParam4 = 0;
						}
					}
					iVar7 = func_95(iParam0, 1);
					if (iVar7 >= 26)
					{
						iVar8 = func_104(iParam1, iVar7, 1, 4);
						if (dlc1::_0x341DE7ED1D2A1BFD(iVar8, -1188154325, 0))
						{
							iVar8 = func_104(iParam1, iParam3, 1, 4);
							if (iVar8 != -1)
							{
								iVar9 = dlc1::_get_num_forced_components(iVar8);
								iVar10 = 0;
								while (iVar10 < iVar9)
								{
									dlc1::get_forced_component(iVar8, iVar10, &iVar11, &uVar12, &iVar13);
									if (iVar13 == 2)
									{
										if (iVar11 != 0 && iVar11 != 1849449579)
										{
											*iParam4 = func_84(iParam1, iVar11, 2, 4);
										}
										else
										{
											*iParam4 = uVar12;
											iVar10 = iVar9 + 1;
										}
									}
									iVar10++;
								}
							}
						}
					}
					break;
			}
			break;
	}
	if (*iParam4 != -99)
	{
		func_249(746, iParam3, Global_69309, 1);
		func_249(747, iParam2, Global_69309, 1);
		return true;
	}
	return false;
}

void func_205(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x3417C
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 == 11 || iParam1 == 8)
		{
			iVar0 = entity::get_entity_model(iParam0);
			if (iParam1 == 11)
			{
				if (func_197(iVar0, iParam2))
				{
					iParam1 = 8;
					iParam2 = func_95(iParam0, iParam1);
				}
			}
			else if (iParam1 == 8)
			{
				iVar1 = func_95(iParam0, 11);
				if (!func_197(iVar0, iVar1))
				{
					return;
				}
			}
			func_191(gameplay::get_hash_key("torsoDecal"), iParam0);
			if (iParam1 == 11)
			{
				if (((((!func_193(iVar0, iParam2, 13) && !func_193(iVar0, iParam2, 14)) && !func_193(iVar0, iParam2, 15)) && !func_193(iVar0, iParam2, 16)) && !func_193(iVar0, iParam2, 71)) && !func_193(iVar0, iParam2, 72))
				{
					func_191(gameplay::get_hash_key("crewLogo"), iParam0);
				}
			}
			iVar2 = func_182(iVar0, iParam1, iParam2, iParam4);
			if (iVar2 != -1)
			{
				if (iParam3 == 1)
				{
					func_206(iParam0, iVar2);
				}
				else
				{
					func_207(iVar2, 1, Global_69309);
				}
			}
		}
	}
}

void func_206(int iParam0, int iParam1)//Position - 0x3429D
{
	int iVar0;
	struct<6> Var1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 != -1)
		{
			iVar0 = func_189(iParam0);
			if (!func_170(iParam1, -1))
			{
				if (func_162(&Var1, iParam1, iVar0, iParam0, -1))
				{
					ped::_set_ped_decoration(iParam0, Var1.f_4, Var1.f_5);
					func_160(iParam0, Var1.f_4, Var1.f_5);
				}
			}
		}
	}
}

void func_207(int iParam0, int iParam1, int iParam2)//Position - 0x342F4
{
	if (iParam1)
	{
		if (!func_170(iParam0, iParam2))
		{
			func_208(iParam0, 1, iParam2);
		}
	}
	else if (func_170(iParam0, iParam2))
	{
		func_208(iParam0, 0, iParam2);
	}
}

void func_208(int iParam0, int iParam1, int iParam2)//Position - 0x3432D
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_172(iParam0, iParam2);
	iVar1 = iParam0;
	if (iVar1 > -1)
	{
		if (iParam1)
		{
			gameplay::set_bit(&iVar0, func_171(iVar1));
		}
		else
		{
			gameplay::clear_bit(&iVar0, func_171(iVar1));
		}
		func_249(func_173(iParam0), iVar0, iParam2, 1);
	}
}

int func_209()//Position - 0x3437B
{
	int iVar0;
	
	iVar0 = Global_69309;
	if (func_170(13, iVar0))
	{
		return 13;
	}
	if (func_170(14, iVar0))
	{
		return 14;
	}
	if (func_170(15, iVar0))
	{
		return 15;
	}
	if (func_170(16, iVar0))
	{
		return 16;
	}
	if (func_170(71, iVar0))
	{
		return 71;
	}
	if (func_170(72, iVar0))
	{
		return 72;
	}
	return -1;
}

int func_210(int iParam0, int iParam1, int iParam2)//Position - 0x343EA
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (iParam1 == 12)
		{
			iVar0 = 0;
			while (iVar0 <= 53)
			{
				if (func_135(iParam0, iParam1, iVar0))
				{
					return iVar0;
				}
				iVar0++;
			}
		}
		else if (iParam1 == 13)
		{
			iVar1 = 0;
			while (iVar1 <= 19)
			{
				if (func_135(iParam0, iParam1, iVar1))
				{
					return iVar1;
				}
				iVar1++;
			}
			return 31;
		}
		else if (iParam1 == 14)
		{
			if (iParam2 == -1)
			{
			}
			else
			{
				return func_97(iParam0, iParam2);
			}
		}
		else
		{
			return func_95(iParam0, iParam1);
		}
	}
	return -99;
}

void func_211(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x3448B
{
	if (iParam2 == -1)
	{
		ped::clear_ped_prop(iParam0, iParam1);
	}
	else
	{
		ped::set_ped_prop_index(iParam0, iParam1, iParam2, iParam3, network::network_is_game_in_progress());
	}
}

void func_212(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x344B4
{
	int iVar0;
	int iVar1;
	int iVar2;
	var uVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9[2];
	struct<2> Var12;
	int iVar29;
	int iVar30;
	int iVar31;
	int iVar32;
	struct<2> Var33;
	int iVar50;
	int iVar51;
	int iVar52;
	
	if (network::network_is_game_in_progress())
	{
		if (Global_69309 != func_18() || iParam2 == -99)
		{
			return;
		}
		Global_69311[2 /*14*/] = { func_216(iParam0, iParam1, iParam2) };
		if (gameplay::is_bit_set(Global_69311[2 /*14*/].f_6, 1) && gameplay::is_bit_set(Global_69311[2 /*14*/].f_6, 6))
		{
			if (iParam1 == 12)
			{
				func_214(Global_2621444, 2, 1, 1, -1);
			}
			else if (iParam1 == 13)
			{
			}
			else if (iParam1 == 14)
			{
				func_214(Global_2621444, 2, 1, 1, -1);
			}
			else
			{
				func_214(Global_2621444, 2, 1, 1, -1);
			}
			if (iParam3)
			{
				iVar0 = dlc1::_0xC17AD0E5752BECDA(Global_2621444);
				iVar1 = 0;
				while (iVar1 < iVar0)
				{
					if (iVar1 < Global_2560811)
					{
						Global_2560811[iVar1] = -1;
						Global_2560922[iVar1] = -1;
					}
					dlc1::get_variant_component(Global_2621444, iVar1, &iVar2, &uVar3, &iVar4);
					if (iVar4 != 10)
					{
						if (iParam1 == 4 && dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1223513441, 0))
						{
						}
						else if (iVar2 != 0 && iVar2 != 1849449579)
						{
							func_214(iVar2, 2, 1, 1, -1);
							if (iVar1 < Global_2560811)
							{
								Global_2560811[iVar1] = iVar2;
								Global_2560922[iVar1] = iVar4;
							}
						}
						else
						{
							func_212(iParam0, func_90(iVar4), uVar3, 0);
						}
					}
					iVar1++;
				}
				Global_2560810++;
				if (Global_2560810 < 2)
				{
					iVar1 = 0;
					while (iVar1 < iVar0)
					{
						if (iVar1 < Global_2560811)
						{
							if (Global_2560811[iVar1] != -1)
							{
								if (iParam0 == joaat("mp_m_freemode_01"))
								{
									func_212(iParam0, func_90(Global_2560922[iVar1]), func_84(iParam0, Global_2560811[iVar1], func_90(Global_2560922[iVar1]), 3), 1);
								}
								else
								{
									func_212(iParam0, func_90(Global_2560922[iVar1]), func_84(iParam0, Global_2560811[iVar1], func_90(Global_2560922[iVar1]), 4), 1);
								}
							}
						}
						iVar1++;
					}
				}
				Global_2560810 = (Global_2560810 - 1);
			}
			return;
		}
		if (gameplay::is_bit_set(Global_69311[2 /*14*/].f_6, 1) && !gameplay::is_bit_set(Global_69311[2 /*14*/].f_6, 6))
		{
			if (func_14(iParam1, Global_69311[1 /*14*/].f_2, &iVar5))
			{
				iVar6 = func_16(iVar5, Global_69309, 0);
				gameplay::set_bit(&iVar6, Global_69311[2 /*14*/].f_1);
				func_249(iVar5, iVar6, Global_69309, 1);
			}
			if (iParam3 == 1)
			{
				if (iParam0 == joaat("mp_m_freemode_01"))
				{
					if (iParam1 == 14)
					{
						if (iParam2 >= 83 && iParam2 <= 90)
						{
							iVar7 = (75 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 14, iVar7, 0);
						}
						else if (iParam2 >= 75 && iParam2 <= 82)
						{
							iVar7 = (83 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 14, iVar7, 0);
						}
					}
					else if (iParam1 == 8)
					{
						if (iParam2 >= 48 && iParam2 <= 63)
						{
							iVar7 = (64 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 64 && iParam2 <= 79)
						{
							iVar7 = (48 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 96 && iParam2 <= 111)
						{
							iVar7 = (112 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 112 && iParam2 <= 127)
						{
							iVar7 = (96 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 176 && iParam2 <= 191)
						{
							iVar7 = (160 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 160 && iParam2 <= 175)
						{
							iVar7 = (176 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 32 && iParam2 <= 47)
						{
							iVar7 = (0 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 11, iVar7, 0);
						}
						else if (iParam2 >= 224 && iParam2 <= 239)
						{
							iVar7 = (16 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 11, iVar7, 0);
						}
					}
					else if (iParam1 == 11)
					{
						if (iParam2 >= 0 && iParam2 <= 15)
						{
							iVar7 = (32 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 16 && iParam2 <= 31)
						{
							iVar7 = (224 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 8, iVar7, 0);
						}
						else if (iParam2 >= 220 && iParam2 <= 235)
						{
							switch (iParam2)
							{
								case 220:
									iVar9[0] = 691352495;
									iVar9[1] = 691352495;
									break;
								
								case 221:
									iVar9[0] = 451909412;
									iVar9[1] = 451909412;
									break;
								
								case 222:
									iVar9[0] = -206550874;
									iVar9[1] = -206550874;
									break;
								
								case 223:
									iVar9[0] = -445797343;
									iVar9[1] = -445797343;
									break;
								
								case 224:
									iVar9[0] = -173716332;
									iVar9[1] = -173716332;
									break;
								
								case 225:
									iVar9[0] = -538304226;
									iVar9[1] = -538304226;
									break;
								
								case 226:
									iVar9[0] = -592242000;
									iVar9[1] = -592242000;
									break;
								
								case 227:
									iVar9[0] = -831095241;
									iVar9[1] = -831095241;
									break;
								
								case 228:
									iVar9[0] = -1092100326;
									iVar9[1] = -1092100326;
									break;
								
								case 229:
									iVar9[0] = -1465994616;
									iVar9[1] = -1465994616;
									break;
								
								case 230:
									iVar9[0] = 507503642;
									iVar9[1] = 507503642;
									break;
								
								case 231:
									iVar9[0] = -1392082519;
									iVar9[1] = -1392082519;
									break;
								
								case 232:
									iVar9[0] = -88859389;
									iVar9[1] = -88859389;
									break;
								
								case 233:
									iVar9[0] = 157858412;
									iVar9[1] = 157858412;
									break;
								
								case 234:
									iVar9[0] = -513152401;
									iVar9[1] = -513152401;
									break;
								
								case 235:
									iVar9[0] = 2004948615;
									iVar9[1] = 2004948615;
									break;
							}
							dlc1::init_shop_ped_component(&Var12);
							iVar31 = dlc1::_get_num_props_from_outfit(3, 6, -1, 0, -1, 8);
							iVar29 = 0;
							while (iVar29 < iVar31)
							{
								dlc1::get_shop_ped_query_component(iVar29, &Var12);
								if (!dlc1::_is_dlc_data_empty(Var12))
								{
									if (Var12.f_1 == iVar9[0] || Var12.f_1 == iVar9[1])
									{
										func_212(iParam0, 8, (241 + iVar30), 0);
										iVar29 = iVar31 + 1;
									}
									iVar30++;
								}
								iVar29++;
							}
						}
					}
					else if (iParam1 == 7)
					{
						if (iParam2 >= 41 && iParam2 <= 56)
						{
							switch (Global_69311[2 /*14*/].f_4)
							{
								case 0:
									func_212(iParam0, 7, func_84(iParam0, -1893758670, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 221276858, 7, 3), 0);
									break;
								
								case 1:
									func_212(iParam0, 7, func_84(iParam0, -1596052305, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 576886046, 7, 3), 0);
									break;
								
								case 2:
									func_212(iParam0, 7, func_84(iParam0, 1233059274, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -392978047, 7, 3), 0);
									break;
								
								case 3:
									func_212(iParam0, 7, func_84(iParam0, 232228476, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -33764269, 7, 3), 0);
									break;
								
								case 4:
									func_212(iParam0, 7, func_84(iParam0, -454445919, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 1510704243, 7, 3), 0);
									break;
								
								case 5:
									func_212(iParam0, 7, func_84(iParam0, 925653285, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 1800939276, 7, 3), 0);
									break;
								
								case 6:
									func_212(iParam0, 7, func_84(iParam0, -2104856604, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 833565623, 7, 3), 0);
									break;
								
								case 7:
									func_212(iParam0, 7, func_84(iParam0, 1657483366, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 1201823645, 7, 3), 0);
									break;
								
								case 8:
									func_212(iParam0, 7, func_84(iParam0, 501294735, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 2132496022, 7, 3), 0);
									break;
								
								case 9:
									func_212(iParam0, 7, func_84(iParam0, 1882573627, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -1939019463, 7, 3), 0);
									break;
								
								case 10:
									func_212(iParam0, 7, func_84(iParam0, 206035418, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 1713491273, 7, 3), 0);
									break;
								
								case 11:
									func_212(iParam0, 7, func_84(iParam0, -642943834, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -156668318, 7, 3), 0);
									break;
								
								case 12:
									func_212(iParam0, 7, func_84(iParam0, -388295935, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 106696135, 7, 3), 0);
									break;
								
								case 13:
									func_212(iParam0, 7, func_84(iParam0, 927641567, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -802905767, 7, 3), 0);
									break;
								
								case 14:
									func_212(iParam0, 7, func_84(iParam0, 1147226636, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -505527092, 7, 3), 0);
									break;
								
								case 15:
									func_212(iParam0, 7, func_84(iParam0, 312665744, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -1144129332, 7, 3), 0);
									break;
							}
						}
						else if (iParam2 >= 73 && iParam2 <= 88)
						{
							switch (Global_69311[2 /*14*/].f_4)
							{
								case 0:
									func_212(iParam0, 7, func_84(iParam0, -335266079, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -925989020, 7, 3), 0);
									break;
								
								case 1:
									func_212(iParam0, 7, func_84(iParam0, -1379548555, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 244486895, 7, 3), 0);
									break;
								
								case 2:
									func_212(iParam0, 7, func_84(iParam0, -1402159165, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 1095104597, 7, 3), 0);
									break;
								
								case 3:
									func_212(iParam0, 7, func_84(iParam0, 1357351098, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 1787874026, 7, 3), 0);
									break;
								
								case 4:
									func_212(iParam0, 7, func_84(iParam0, -1097178082, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 476163725, 7, 3), 0);
									break;
								
								case 5:
									func_212(iParam0, 7, func_84(iParam0, -179482237, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 1223952305, 7, 3), 0);
									break;
								
								case 6:
									func_212(iParam0, 7, func_84(iParam0, -750514831, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 2049796643, 7, 3), 0);
									break;
								
								case 7:
									func_212(iParam0, 7, func_84(iParam0, -1724573356, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -1013547784, 7, 3), 0);
									break;
								
								case 8:
									func_212(iParam0, 7, func_84(iParam0, 94106144, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 1456972664, 7, 3), 0);
									break;
								
								case 9:
									func_212(iParam0, 7, func_84(iParam0, 1070524041, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -1670762848, 7, 3), 0);
									break;
								
								case 10:
									func_212(iParam0, 7, func_84(iParam0, -1644577318, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, 1428867383, 7, 3), 0);
									break;
								
								case 11:
									func_212(iParam0, 7, func_84(iParam0, 1865900118, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -1664165762, 7, 3), 0);
									break;
								
								case 12:
									func_212(iParam0, 7, func_84(iParam0, 1611776523, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -1962101510, 7, 3), 0);
									break;
								
								case 13:
									func_212(iParam0, 7, func_84(iParam0, 1381115532, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -1270511757, 7, 3), 0);
									break;
								
								case 14:
									func_212(iParam0, 7, func_84(iParam0, 1636484345, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -1571626106, 7, 3), 0);
									break;
								
								case 15:
									func_212(iParam0, 7, func_84(iParam0, 1422633851, 7, 3), 0);
									func_212(iParam0, 7, func_84(iParam0, -698332248, 7, 3), 0);
									break;
								}
							}
					}
				}
				else if (iParam0 == joaat("mp_f_freemode_01"))
				{
					if (iParam1 == 11)
					{
						if (iParam2 >= 0 && iParam2 <= 15)
						{
							iVar7 = (16 + Global_69311[2 /*14*/].f_4);
							func_212(iParam0, 8, iVar7, 0);
						}
					}
				}
				Global_69311[2 /*14*/] = { func_216(iParam0, iParam1, iParam2) };
				if (iParam1 == 11)
				{
					iVar8 = func_213(iParam0, iParam2, Global_69311[2 /*14*/].f_4);
					if (iVar8 != -99)
					{
						func_212(iParam0, 8, iVar8, 0);
					}
					if (iParam2 >= 192 && iParam2 <= 203)
					{
						switch (iParam2)
						{
							case 199:
								iVar32 = 331193219;
								break;
							
							case 200:
								iVar32 = 1115060468;
								break;
							
							case 201:
								iVar32 = 779636984;
								break;
						}
						dlc1::init_shop_ped_component(&Var33);
						iVar52 = dlc1::_get_num_props_from_outfit(4, 6, -1, 0, -1, 8);
						iVar50 = 0;
						while (iVar50 < iVar52)
						{
							dlc1::get_shop_ped_query_component(iVar50, &Var33);
							if (!dlc1::_is_dlc_data_empty(Var33))
							{
								if (Var33.f_1 == iVar32)
								{
									func_212(iParam0, 8, (136 + iVar51), 0);
									iVar50 = iVar52 + 1;
								}
								iVar51++;
							}
							iVar50++;
						}
					}
				}
				else if (iParam1 == 8)
				{
					iVar8 = func_196(iParam0, iParam2, Global_69311[2 /*14*/].f_4);
					if (iVar8 != -99)
					{
						func_212(iParam0, 11, iVar8, 0);
					}
				}
			}
		}
	}
}

int func_213(int iParam0, int iParam1, int iParam2)//Position - 0x353CD
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	
	iVar0 = -99;
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		if (iParam1 <= 15)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 31)
		{
			iVar0 = 16;
		}
		else if (iParam1 <= 47)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 63)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 79)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 95)
		{
			iVar0 = 80;
		}
		else if (iParam1 <= 107)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 123)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 139)
		{
			iVar0 = 128;
		}
		else if (iParam1 <= 155)
		{
			iVar0 = 144;
		}
		else if (iParam1 <= 171)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 187)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 203)
		{
			iVar0 = 192;
		}
		else if (iParam1 <= 219)
		{
			iVar0 = 208;
		}
		else if (iParam1 <= 235)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 236)
		{
			iVar0 = 240;
		}
		else if (iParam1 >= 237)
		{
			iVar1 = func_104(iParam0, iParam1, 11, 3);
			if (iVar1 != -1)
			{
				iVar2 = dlc1::_0xC17AD0E5752BECDA(iVar1);
				iVar3 = 0;
				while (iVar3 < iVar2)
				{
					dlc1::get_variant_component(iVar1, iVar3, &iVar4, &iVar5, &iVar6);
					if (iVar6 == 8)
					{
						if (iVar4 != 0 && iVar4 != 1849449579)
						{
							iVar0 = func_84(iParam0, iVar4, 8, 3);
						}
						else
						{
							iVar0 = iVar5;
						}
						iVar3 = iVar2 + 1;
					}
					iVar3++;
				}
			}
		}
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		if (iParam1 <= 15)
		{
			iVar0 = 0;
		}
		else if (iParam1 <= 31)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 47)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 63)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 79)
		{
			iVar0 = 34;
		}
		else if (iParam1 <= 95)
		{
			iVar0 = 50;
		}
		else if (iParam1 <= 111)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 127)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 143)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 159)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 175)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 191)
		{
			iVar0 = 71;
		}
		else if (iParam1 <= 207)
		{
			iVar0 = 87;
		}
		else if (iParam1 <= 223)
		{
			iVar0 = 103;
		}
		else if (iParam1 <= 239)
		{
			iVar0 = -99;
		}
		else if (iParam1 <= 255)
		{
			iVar0 = 120;
		}
		else if (iParam1 >= 256)
		{
			iVar7 = func_104(iParam0, iParam1, 11, 4);
			if (iVar7 != -1)
			{
				iVar8 = dlc1::_0xC17AD0E5752BECDA(iVar7);
				iVar9 = 0;
				while (iVar9 < iVar8)
				{
					dlc1::get_variant_component(iVar7, iVar9, &iVar10, &iVar11, &iVar12);
					if (iVar12 == 8)
					{
						if (iVar10 != 0 && iVar10 != 1849449579)
						{
							iVar0 = func_84(iParam0, iVar10, 8, 4);
						}
						else
						{
							iVar0 = iVar11;
						}
						iVar9 = iVar8 + 1;
					}
					iVar9++;
				}
			}
		}
	}
	if (iVar0 != -99)
	{
		iVar0 = (iVar0 + iParam2);
	}
	return iVar0;
}

void func_214(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x356C2
{
	int iVar0;
	int iVar1;
	var uVar2;
	int iVar3;
	
	iVar0 = Global_69309;
	if (iParam4 != -1)
	{
		iVar0 = iParam4;
	}
	if (func_21(iParam0, iParam1, &uVar2, &iVar1, iParam2, iParam3))
	{
		iVar3 = func_16(uVar2, iVar0, 0);
		gameplay::set_bit(&iVar3, iVar1);
		func_249(uVar2, iVar3, iVar0, 1);
	}
}

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

struct<14> func_216(int iParam0, int iParam1, int iParam2)//Position - 0x3575C
{
	func_79();
	if (iParam0 == joaat("mp_m_freemode_01"))
	{
		func_233(iParam1, iParam2);
	}
	else if (iParam0 == joaat("mp_f_freemode_01"))
	{
		func_217(iParam1, iParam2);
	}
	return Global_69311[0 /*14*/];
}

void func_217(int iParam0, int iParam1)//Position - 0x35799
{
	switch (iParam0)
	{
		case 2:
			func_232(iParam1);
			break;
		
		case 11:
			func_231(iParam1);
			break;
		
		case 8:
			func_230(iParam1);
			break;
		
		case 9:
			func_229(iParam1);
			break;
		
		case 3:
			func_228(iParam1);
			break;
		
		case 4:
			func_227(iParam1);
			break;
		
		case 6:
			func_226(iParam1);
			break;
		
		case 1:
			func_225(iParam1);
			break;
		
		case 7:
			func_224(iParam1);
			break;
		
		case 10:
			func_223(iParam1);
			break;
		
		case 14:
			func_222(iParam1);
			break;
		
		case 12:
			func_221(iParam1);
			break;
		
		case 5:
			func_220(iParam1);
			break;
		
		case 0:
			func_219(iParam1);
			break;
		
		case 13:
			func_218(iParam1);
			break;
	}
}

void func_218(int iParam0)//Position - 0x35889
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 13;
	switch (iParam0)
	{
		case 31:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 16:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 17:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 18:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 19:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 20:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 21:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 22:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 23:
			iVar6 = 0;
			iVar7 = 0;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_219(int iParam0)//Position - 0x35A44
{
	int iVar0;
	
	iVar0 = 0;
	Global_69311[0 /*14*/].f_5 = 4;
	func_24(iVar0, iParam0, 0);
}

void func_220(int iParam0)//Position - 0x35A62
{
	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;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 4;
			func_24(iVar10, iParam0, 9);
			return;
			break;
	}
	StringCopy(&Var2, "HA_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_221(int iParam0)//Position - 0x35B63
{
	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;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S1", 16);
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S2", 16);
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S3", 16);
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S4", 16);
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S5", 16);
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S6", 16);
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S7", 16);
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_S8", 16);
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P1", 16);
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P2", 16);
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P3", 16);
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P4", 16);
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P5", 16);
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P6", 16);
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P7", 16);
			break;
		
		case 16:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P8", 16);
			break;
		
		case 17:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P9", 16);
			break;
		
		case 18:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_P10", 16);
			break;
		
		case 19:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B1", 16);
			break;
		
		case 20:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B2", 16);
			break;
		
		case 21:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B3", 16);
			break;
		
		case 22:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B4", 16);
			break;
		
		case 23:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B5", 16);
			break;
		
		case 24:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B6", 16);
			break;
		
		case 25:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B7", 16);
			break;
		
		case 26:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B8", 16);
			break;
		
		case 27:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMF_B9", 16);
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 4;
			func_24(iVar10, iParam0, 28);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_222(int iParam0)//Position - 0x35E40
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 14;
	iVar11 = 0;
	switch (iParam0)
	{
		case 0:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			break;
		
		case 1:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			break;
		
		case 2:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 2;
			break;
		
		case 3:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 3;
			break;
		
		case 4:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 4;
			break;
		
		case 5:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 5;
			break;
		
		case 6:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			break;
		
		case 7:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 7;
			break;
		
		case 8:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 8;
			break;
		
		case 10:
			StringCopy(&Var2, "HT_FMF_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 11:
			StringCopy(&Var2, "HT_FMF_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 12:
			StringCopy(&Var2, "HT_FMF_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 85;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 13:
			StringCopy(&Var2, "HT_FMF_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 14:
			StringCopy(&Var2, "HT_FMF_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 235;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 15:
			StringCopy(&Var2, "HT_FMF_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 80;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 16:
			StringCopy(&Var2, "HT_FMF_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 85;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 17:
			StringCopy(&Var2, "HT_FMF_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 18:
			StringCopy(&Var2, "HT_FMF_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "HT_FMF_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 20:
			StringCopy(&Var2, "HT_FMF_2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 5000;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 21:
			StringCopy(&Var2, "HT_FMF_2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 22:
			StringCopy(&Var2, "HT_FMF_2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 23:
			StringCopy(&Var2, "HT_FMF_2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 24:
			StringCopy(&Var2, "HT_FMF_2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 25:
			StringCopy(&Var2, "HT_FMF_2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 26:
			StringCopy(&Var2, "HT_FMF_2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 27:
			StringCopy(&Var2, "HT_FMF_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 28:
			StringCopy(&Var2, "HT_FMF_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 29:
			StringCopy(&Var2, "HT_FMF_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 30:
			StringCopy(&Var2, "HT_FMF_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 31:
			StringCopy(&Var2, "HT_FMF_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "HT_FMF_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 33:
			StringCopy(&Var2, "HT_FMF_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 34:
			StringCopy(&Var2, "HT_FMF_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 120;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 35:
			StringCopy(&Var2, "HT_FMF_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 400;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 36:
			StringCopy(&Var2, "HT_FMF_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 37:
			StringCopy(&Var2, "HT_FMF_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 375;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 38:
			StringCopy(&Var2, "HT_FMF_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 39:
			StringCopy(&Var2, "HT_FMF_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 40:
			StringCopy(&Var2, "HT_FMF_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 41:
			StringCopy(&Var2, "HT_FMF_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 85;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 42:
			StringCopy(&Var2, "HT_FMF_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 325;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 43:
			StringCopy(&Var2, "HT_FMF_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 44:
			StringCopy(&Var2, "HT_FMF_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 45:
			StringCopy(&Var2, "HT_FMF_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 46:
			StringCopy(&Var2, "HT_FMF_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 40;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 47:
			StringCopy(&Var2, "HT_FMF_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 48:
			StringCopy(&Var2, "HT_FMF_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 49:
			StringCopy(&Var2, "HT_FMF_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 50:
			StringCopy(&Var2, "HT_FMF_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 255;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 51:
			StringCopy(&Var2, "HT_FMF_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 360;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 52:
			StringCopy(&Var2, "HT_FMF_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 195;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 53:
			StringCopy(&Var2, "HT_FMF_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 3970;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 54:
			StringCopy(&Var2, "HT_FMF_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 55:
			StringCopy(&Var2, "HT_FMF_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 1355;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 56:
			StringCopy(&Var2, "HT_FMF_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 57:
			StringCopy(&Var2, "HT_FMF_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 58:
			StringCopy(&Var2, "HT_FMF_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 59:
			StringCopy(&Var2, "HT_FMF_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 230;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 60:
			StringCopy(&Var2, "HT_FMF_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 195;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 61:
			StringCopy(&Var2, "HT_FMF_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 515;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 62:
			StringCopy(&Var2, "HT_FMF_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 545;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 63:
			StringCopy(&Var2, "HT_FMF_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 195;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 64:
			StringCopy(&Var2, "HT_FMF_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 155;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 65:
			StringCopy(&Var2, "HT_FMF_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 155;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 66:
			StringCopy(&Var2, "HT_FMF_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 1440;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 67:
			StringCopy(&Var2, "HT_FMF_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 68:
			StringCopy(&Var2, "HT_FMF_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 69:
			StringCopy(&Var2, "HT_FMF_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 70:
			StringCopy(&Var2, "HT_FMF_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 71:
			StringCopy(&Var2, "HT_FMF_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 72:
			StringCopy(&Var2, "HT_FMF_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 73:
			StringCopy(&Var2, "HT_FMF_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 74:
			StringCopy(&Var2, "HT_FMF_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 75:
			StringCopy(&Var2, "HT_FMF_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 76:
			StringCopy(&Var2, "HT_FMF_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 25;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 77:
			StringCopy(&Var2, "HT_FMF_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 78:
			StringCopy(&Var2, "HT_FMF_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 25;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 79:
			StringCopy(&Var2, "HT_FMF_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 50;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 80:
			StringCopy(&Var2, "HT_FMF_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 40;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 81:
			StringCopy(&Var2, "HT_FMF_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 575;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 82:
			StringCopy(&Var2, "HT_FMF_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 605;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 83:
			StringCopy(&Var2, "HT_FMF_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 84:
			StringCopy(&Var2, "HT_FMF_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 85:
			StringCopy(&Var2, "HT_FMF_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 86:
			StringCopy(&Var2, "HT_FMF_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 87:
			StringCopy(&Var2, "HT_FMF_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 88:
			StringCopy(&Var2, "HT_FMF_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 89:
			StringCopy(&Var2, "HT_FMF_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 90:
			StringCopy(&Var2, "HT_FMF_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 285;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 91:
			StringCopy(&Var2, "HT_FMF_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 92:
			StringCopy(&Var2, "HT_FMF_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 2125;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 93:
			StringCopy(&Var2, "HT_FMF_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "HT_FMF_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 95:
			StringCopy(&Var2, "HT_FMF_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 96:
			StringCopy(&Var2, "HT_FMF_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 97:
			StringCopy(&Var2, "HT_FMF_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 98:
			StringCopy(&Var2, "HT_FMF_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 99:
			StringCopy(&Var2, "HT_FMF_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 100:
			StringCopy(&Var2, "HT_FMF_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 101:
			StringCopy(&Var2, "HT_FMF_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 102:
			StringCopy(&Var2, "HT_FMF_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 103:
			StringCopy(&Var2, "HT_FMF_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 104:
			StringCopy(&Var2, "HT_FMF_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 105:
			StringCopy(&Var2, "HT_FMF_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 106:
			StringCopy(&Var2, "HT_FMF_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 295;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 107:
			StringCopy(&Var2, "HT_FMF_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 195;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 108:
			StringCopy(&Var2, "HT_FMF_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 200;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 109:
			StringCopy(&Var2, "HT_FMF_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 160;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 110:
			StringCopy(&Var2, "HT_FMF_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 855;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 111:
			StringCopy(&Var2, "HT_FMF_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 1615;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 112:
			StringCopy(&Var2, "HT_FMF_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 1130;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 113:
			StringCopy(&Var2, "HT_FMF_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 165;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 114:
			StringCopy(&Var2, "HT_FMF_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 215;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 115:
			StringCopy(&Var2, "HT_FMF_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 145;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 116:
			StringCopy(&Var2, "HT_FMF_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 250;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 117:
			StringCopy(&Var2, "HT_FMF_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 110;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 118:
			StringCopy(&Var2, "HT_FMF_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 145;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 119:
			StringCopy(&Var2, "HT_FMF_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 105;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 120:
			StringCopy(&Var2, "HT_FMF_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 105;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 121:
			StringCopy(&Var2, "HT_FMF_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 115;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 122:
			StringCopy(&Var2, "HT_FMF_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 115;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 123:
			StringCopy(&Var2, "HT_FMF_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 390;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 124:
			StringCopy(&Var2, "HT_FMF_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 395;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 125:
			StringCopy(&Var2, "HT_FMF_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 595;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 126:
			StringCopy(&Var2, "HT_FMF_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 425;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 127:
			StringCopy(&Var2, "HT_FMF_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 600;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 128:
			StringCopy(&Var2, "HT_FMF_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 590;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 129:
			StringCopy(&Var2, "HT_FMF_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 595;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 130:
			StringCopy(&Var2, "HT_FMF_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 555;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 131:
			StringCopy(&Var2, "HE_FMF_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 1060;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 132:
			StringCopy(&Var2, "HE_FMF_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 1400;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 133:
			StringCopy(&Var2, "HE_FMF_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 1315;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 134:
			StringCopy(&Var2, "HE_FMF_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 1230;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 135:
			StringCopy(&Var2, "HE_FMF_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 1145;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 136:
			StringCopy(&Var2, "HE_FMF_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 8450;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 137:
			StringCopy(&Var2, "HE_FMF_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 675;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 138:
			StringCopy(&Var2, "HE_FMF_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 8750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 139:
			StringCopy(&Var2, "HE_FMF_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 975;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 140:
			StringCopy(&Var2, "HE_FMF_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar1 = 750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 141:
			StringCopy(&Var2, "HE_FMF_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			iVar1 = 865;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 142:
			StringCopy(&Var2, "HE_FMF_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 890;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 143:
			StringCopy(&Var2, "HE_FMF_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 730;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 144:
			StringCopy(&Var2, "HE_FMF_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 650;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 145:
			StringCopy(&Var2, "HE_FMF_17_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			iVar1 = 645;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 146:
			StringCopy(&Var2, "HE_FMF_17_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			iVar1 = 755;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 147:
			StringCopy(&Var2, "HE_FMF_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 13850;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 148:
			StringCopy(&Var2, "HE_FMF_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 2900;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 149:
			StringCopy(&Var2, "HE_FMF_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 2895;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 150:
			StringCopy(&Var2, "HE_FMF_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 12500;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 151:
			StringCopy(&Var2, "HE_FMF_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 15000;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 152:
			StringCopy(&Var2, "HE_FMF_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 14750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 153:
			StringCopy(&Var2, "HE_FMF_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 13150;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 154:
			StringCopy(&Var2, "HE_FMF_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 2925;
			iVar8 = 0;
			iVar11 = 2;
			break;
	}
	switch (iParam0)
	{
		case 155:
			StringCopy(&Var2, "G_FMF_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 156:
			StringCopy(&Var2, "G_FMF_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 157:
			StringCopy(&Var2, "G_FMF_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 158:
			StringCopy(&Var2, "G_FMF_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 159:
			StringCopy(&Var2, "G_FMF_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 160:
			StringCopy(&Var2, "G_FMF_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 80;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 161:
			StringCopy(&Var2, "G_FMF_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 162:
			StringCopy(&Var2, "G_FMF_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 163:
			StringCopy(&Var2, "CLO_EXF_G_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 820;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 164:
			StringCopy(&Var2, "CLO_EXF_G_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 435;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 165:
			StringCopy(&Var2, "CLO_EXF_G_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 166:
			StringCopy(&Var2, "G_FMF_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 160;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 167:
			StringCopy(&Var2, "G_FMF_1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 165;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 168:
			StringCopy(&Var2, "G_FMF_1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 170;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 169:
			StringCopy(&Var2, "G_FMF_1_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 170:
			StringCopy(&Var2, "G_FMF_1_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 171:
			StringCopy(&Var2, "G_FMF_1_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 172:
			StringCopy(&Var2, "G_FMF_1_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 173:
			StringCopy(&Var2, "G_FMF_1_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 174:
			StringCopy(&Var2, "CLO_EXF_G_1_8", 16);
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 970;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 175:
			StringCopy(&Var2, "CLO_EXF_G_1_9", 16);
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 585;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 176:
			StringCopy(&Var2, "CLO_EXF_G_1_10", 16);
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 650;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 177:
			StringCopy(&Var2, "G_FMF_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 180;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 178:
			StringCopy(&Var2, "G_FMF_2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 179:
			StringCopy(&Var2, "G_FMF_2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 115;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 180:
			StringCopy(&Var2, "G_FMF_2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 181:
			StringCopy(&Var2, "G_FMF_2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 595;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 182:
			StringCopy(&Var2, "G_FMF_2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 160;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 183:
			StringCopy(&Var2, "G_FMF_2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 545;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 184:
			StringCopy(&Var2, "G_FMF_2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 590;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 185:
			StringCopy(&Var2, "CLO_EXF_G_2_8", 16);
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 1125;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 186:
			StringCopy(&Var2, "CLO_EXF_G_2_9", 16);
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 740;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 187:
			StringCopy(&Var2, "CLO_EXF_G_2_10", 16);
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 805;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 188:
			StringCopy(&Var2, "G_FMF_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 6250;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 189:
			StringCopy(&Var2, "G_FMF_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 4065;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 190:
			StringCopy(&Var2, "G_FMF_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 3585;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 191:
			StringCopy(&Var2, "G_FMF_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 4075;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 192:
			StringCopy(&Var2, "G_FMF_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 4935;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 193:
			StringCopy(&Var2, "G_FMF_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 194:
			StringCopy(&Var2, "G_FMF_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 5600;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 195:
			StringCopy(&Var2, "G_FMF_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 4790;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 196:
			StringCopy(&Var2, "CLO_EXF_G_3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 2315;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 197:
			StringCopy(&Var2, "CLO_EXF_G_3_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 1930;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 198:
			StringCopy(&Var2, "CLO_EXF_G_3_10", 16);
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 1995;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 199:
			StringCopy(&Var2, "G_FMF_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 2245;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 200:
			StringCopy(&Var2, "G_FMF_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 250;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 201:
			StringCopy(&Var2, "G_FMF_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 210;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 202:
			StringCopy(&Var2, "G_FMF_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 245;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 203:
			StringCopy(&Var2, "G_FMF_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 1205;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 204:
			StringCopy(&Var2, "G_FMF_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 205;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 205:
			StringCopy(&Var2, "G_FMF_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 2215;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 206:
			StringCopy(&Var2, "G_FMF_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 215;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 207:
			StringCopy(&Var2, "CLO_EXF_G_4_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 2835;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 208:
			StringCopy(&Var2, "CLO_EXF_G_4_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 2450;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 209:
			StringCopy(&Var2, "CLO_EXF_G_4_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 2515;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 210:
			StringCopy(&Var2, "G_FMF_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 211:
			StringCopy(&Var2, "G_FMF_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 212:
			StringCopy(&Var2, "G_FMF_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 213:
			StringCopy(&Var2, "G_FMF_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 214:
			StringCopy(&Var2, "G_FMF_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 215:
			StringCopy(&Var2, "G_FMF_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 216:
			StringCopy(&Var2, "G_FMF_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 217:
			StringCopy(&Var2, "G_FMF_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 218:
			StringCopy(&Var2, "G_FMF_5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 219:
			StringCopy(&Var2, "G_FMF_5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 220:
			StringCopy(&Var2, "G_FMF_5_10", 16);
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 221:
			StringCopy(&Var2, "G_FMF_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 5000;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 222:
			StringCopy(&Var2, "G_FMF_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 223:
			StringCopy(&Var2, "G_FMF_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 224:
			StringCopy(&Var2, "G_FMF_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 225:
			StringCopy(&Var2, "G_FMF_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 226:
			StringCopy(&Var2, "G_FMF_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 227:
			StringCopy(&Var2, "G_FMF_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 228:
			StringCopy(&Var2, "G_FMF_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 229:
			StringCopy(&Var2, "CLO_EXF_G_6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 2820;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 230:
			StringCopy(&Var2, "CLO_EXF_G_6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 2435;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 231:
			StringCopy(&Var2, "CLO_EXF_G_6_10", 16);
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 2500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 232:
			StringCopy(&Var2, "G_FMF_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 4815;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 233:
			StringCopy(&Var2, "G_FMF_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 4795;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 234:
			StringCopy(&Var2, "G_FMF_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 4305;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 235:
			StringCopy(&Var2, "G_FMF_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 4305;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 236:
			StringCopy(&Var2, "G_FMF_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 4965;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 237:
			StringCopy(&Var2, "G_FMF_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 480;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 238:
			StringCopy(&Var2, "G_FMF_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 465;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 239:
			StringCopy(&Var2, "G_FMF_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 4320;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 240:
			StringCopy(&Var2, "CLO_EXF_G_7_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 2390;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 241:
			StringCopy(&Var2, "CLO_EXF_G_7_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 2005;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 242:
			StringCopy(&Var2, "CLO_EXF_G_7_10", 16);
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 2070;
			iVar8 = 1;
			iVar11 = 3;
			break;
	}
	switch (iParam0)
	{
		case 243:
			StringCopy(&Var2, "G_FMF_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 244:
			StringCopy(&Var2, "G_FMF_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 245:
			StringCopy(&Var2, "G_FMF_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 246:
			StringCopy(&Var2, "G_FMF_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 247:
			StringCopy(&Var2, "G_FMF_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 248:
			StringCopy(&Var2, "G_FMF_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 249:
			StringCopy(&Var2, "G_FMF_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 250:
			StringCopy(&Var2, "G_FMF_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 251:
			StringCopy(&Var2, "CLO_EXF_G_8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 645;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 252:
			StringCopy(&Var2, "CLO_EXF_G_8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 260;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 253:
			StringCopy(&Var2, "CLO_EXF_G_8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 325;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 254:
			StringCopy(&Var2, "G_FMF_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 70;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 255:
			StringCopy(&Var2, "G_FMF_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 60;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 256:
			StringCopy(&Var2, "G_FMF_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 257:
			StringCopy(&Var2, "G_FMF_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 570;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 258:
			StringCopy(&Var2, "G_FMF_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 525;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 259:
			StringCopy(&Var2, "G_FMF_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 260:
			StringCopy(&Var2, "G_FMF_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 261:
			StringCopy(&Var2, "G_FMF_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 262:
			StringCopy(&Var2, "CLO_EXF_G_9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 645;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 263:
			StringCopy(&Var2, "CLO_EXF_G_9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 260;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 264:
			StringCopy(&Var2, "CLO_EXF_G_9_10", 16);
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 325;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 265:
			StringCopy(&Var2, "G_FMF_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 4065;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 266:
			StringCopy(&Var2, "G_FMF_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 267:
			StringCopy(&Var2, "G_FMF_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 268:
			StringCopy(&Var2, "G_FMF_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 4275;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 269:
			StringCopy(&Var2, "G_FMF_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 270:
			StringCopy(&Var2, "G_FMF_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 80;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 271:
			StringCopy(&Var2, "G_FMF_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 272:
			StringCopy(&Var2, "G_FMF_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 273:
			StringCopy(&Var2, "CLO_EXF_G_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 2315;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 274:
			StringCopy(&Var2, "CLO_EXF_G_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 1930;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 275:
			StringCopy(&Var2, "CLO_EXF_G_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 1995;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 276:
			StringCopy(&Var2, "G_FMF_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 3660;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 277:
			StringCopy(&Var2, "G_FMF_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 4165;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 278:
			StringCopy(&Var2, "G_FMF_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 3670;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 279:
			StringCopy(&Var2, "G_FMF_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 280:
			StringCopy(&Var2, "G_FMF_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 3620;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 281:
			StringCopy(&Var2, "G_FMF_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 3610;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 282:
			StringCopy(&Var2, "G_FMF_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 4140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 283:
			StringCopy(&Var2, "G_FMF_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 284:
			StringCopy(&Var2, "G_FMF_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 285:
			StringCopy(&Var2, "G_FMF_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 286:
			StringCopy(&Var2, "G_FMF_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 287:
			StringCopy(&Var2, "G_FMF_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 288:
			StringCopy(&Var2, "G_FMF_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 289:
			StringCopy(&Var2, "G_FMF_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 290:
			StringCopy(&Var2, "G_FMF_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 291:
			StringCopy(&Var2, "G_FMF_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 292:
			StringCopy(&Var2, "G_FMF_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 293:
			StringCopy(&Var2, "G_FMF_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 294:
			StringCopy(&Var2, "G_FMF_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 295:
			StringCopy(&Var2, "G_FMF_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 296:
			StringCopy(&Var2, "G_FMF_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 297:
			StringCopy(&Var2, "G_FMF_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 298:
			StringCopy(&Var2, "G_FMF_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 299:
			StringCopy(&Var2, "G_FMF_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 300:
			StringCopy(&Var2, "G_FMF_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 325;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 301:
			StringCopy(&Var2, "G_FMF_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 302:
			StringCopy(&Var2, "G_FMF_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 115;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 303:
			StringCopy(&Var2, "G_FMF_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 304:
			StringCopy(&Var2, "G_FMF_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 305:
			StringCopy(&Var2, "G_FMF_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 306:
			StringCopy(&Var2, "G_FMF_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 115;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 307:
			StringCopy(&Var2, "G_FMF_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 308:
			StringCopy(&Var2, "CLO_EXF_G_14_8", 16);
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 1490;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 309:
			StringCopy(&Var2, "CLO_EXF_G_14_9", 16);
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 1105;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 310:
			StringCopy(&Var2, "CLO_EXF_G_14_10", 16);
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 1170;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 311:
			StringCopy(&Var2, "G_FMF_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 312:
			StringCopy(&Var2, "G_FMF_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 313:
			StringCopy(&Var2, "G_FMF_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 314:
			StringCopy(&Var2, "G_FMF_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 315:
			StringCopy(&Var2, "G_FMF_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 316:
			StringCopy(&Var2, "G_FMF_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 317:
			StringCopy(&Var2, "G_FMF_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 318:
			StringCopy(&Var2, "G_FMF_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 319:
			StringCopy(&Var2, "W_FMF_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 320:
			StringCopy(&Var2, "W_FMF_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 321:
			StringCopy(&Var2, "W_FMF_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 322:
			StringCopy(&Var2, "W_FMF_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 323:
			StringCopy(&Var2, "W_FMF_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 825;
			iVar8 = 6;
			iVar11 = 4;
			break;
		
		case 324:
			StringCopy(&Var2, "W_FMF_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 325:
			StringCopy(&Var2, "W_FMF_1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 326:
			StringCopy(&Var2, "W_FMF_1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
	}
	if (iVar11 == 1)
	{
		iVar12 = (iParam0 - 10);
		if (iVar12 >= 0 && iVar12 < 121)
		{
			if (iVar12 > 8)
			{
				iVar12 = (iVar12 - 1);
			}
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_2041[iVar12]) * Global_275816.f_26));
		}
	}
	else if (iVar11 == 2)
	{
		iVar13 = (iParam0 - 131);
		if (iVar13 >= 0 && iVar13 < 24)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_2162[iVar13]) * Global_275816.f_27));
		}
	}
	else if (iVar11 == 3)
	{
		iVar14 = (iParam0 - 155);
		if (iVar14 >= 0 && iVar14 < 128)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_2187[iVar14]) * Global_275816.f_56));
		}
	}
	else if (iVar11 == 4)
	{
		iVar15 = (iParam0 - 319);
		if (iVar15 >= 0 && iVar15 < 10)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_2316[iVar15]) * Global_275816.f_28));
		}
	}
	if (iParam0 >= 327)
	{
		Global_69311[0 /*14*/].f_5 = 4;
		func_24(iVar10, iParam0, 327);
		if (Global_69311[0 /*14*/].f_7 > 0)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1757550583, 1))
			{
				Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_26));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 97230661, 1))
			{
				Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_56));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 1147826474, 1))
			{
				Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_28));
			}
		}
	}
	else
	{
		func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_223(int iParam0)//Position - 0x38D92
{
	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;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "D_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 2:
			StringCopy(&Var2, "D_FMM_1_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 3:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 4:
			StringCopy(&Var2, "D_FMM_1_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 5:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 4;
			func_24(iVar10, iParam0, 6);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_224(int iParam0)//Position - 0x38E95
{
	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;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			if (Global_262145.f_4134 != -1)
			{
				iVar1 = Global_262145.f_4134;
			}
			else
			{
				iVar1 = 310;
			}
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			if (Global_262145.f_4135 != -1)
			{
				iVar1 = Global_262145.f_4135;
			}
			else
			{
				iVar1 = 125;
			}
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			if (Global_262145.f_4136 != -1)
			{
				iVar1 = Global_262145.f_4136;
			}
			else
			{
				iVar1 = 145;
			}
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			if (Global_262145.f_4137 != -1)
			{
				iVar1 = Global_262145.f_4137;
			}
			else
			{
				iVar1 = 130;
			}
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			if (Global_262145.f_4138 != -1)
			{
				iVar1 = Global_262145.f_4138;
			}
			else
			{
				iVar1 = 265;
			}
			break;
		
		case 6:
			iVar6 = 1;
			iVar7 = 5;
			if (Global_262145.f_4139 != -1)
			{
				iVar1 = Global_262145.f_4139;
			}
			else
			{
				iVar1 = 280;
			}
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 0;
			if (Global_262145.f_4140 != -1)
			{
				iVar1 = Global_262145.f_4140;
			}
			else
			{
				iVar1 = 295;
			}
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 1;
			if (Global_262145.f_4141 != -1)
			{
				iVar1 = Global_262145.f_4141;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 2;
			if (Global_262145.f_4142 != -1)
			{
				iVar1 = Global_262145.f_4142;
			}
			else
			{
				iVar1 = 85;
			}
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 3;
			if (Global_262145.f_4143 != -1)
			{
				iVar1 = Global_262145.f_4143;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 11:
			iVar6 = 2;
			iVar7 = 4;
			if (Global_262145.f_4144 != -1)
			{
				iVar1 = Global_262145.f_4144;
			}
			else
			{
				iVar1 = 105;
			}
			break;
		
		case 12:
			iVar6 = 2;
			iVar7 = 5;
			if (Global_262145.f_4145 != -1)
			{
				iVar1 = Global_262145.f_4145;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 0;
			if (Global_262145.f_4146 != -1)
			{
				iVar1 = Global_262145.f_4146;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 1;
			if (Global_262145.f_4147 != -1)
			{
				iVar1 = Global_262145.f_4147;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 2;
			if (Global_262145.f_4148 != -1)
			{
				iVar1 = Global_262145.f_4148;
			}
			else
			{
				iVar1 = 30;
			}
			break;
		
		case 16:
			iVar6 = 3;
			iVar7 = 3;
			if (Global_262145.f_4149 != -1)
			{
				iVar1 = Global_262145.f_4149;
			}
			else
			{
				iVar1 = 40;
			}
			break;
		
		case 17:
			iVar6 = 3;
			iVar7 = 4;
			if (Global_262145.f_4150 != -1)
			{
				iVar1 = Global_262145.f_4150;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 18:
			iVar6 = 3;
			iVar7 = 5;
			if (Global_262145.f_4151 != -1)
			{
				iVar1 = Global_262145.f_4151;
			}
			else
			{
				iVar1 = 35;
			}
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 21:
			iVar6 = 4;
			iVar7 = 2;
			if (Global_262145.f_4152 != -1)
			{
				iVar1 = Global_262145.f_4152;
			}
			else
			{
				iVar1 = 355;
			}
			break;
		
		case 22:
			iVar6 = 4;
			iVar7 = 3;
			if (Global_262145.f_4153 != -1)
			{
				iVar1 = Global_262145.f_4153;
			}
			else
			{
				iVar1 = 370;
			}
			break;
		
		case 23:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 24:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 25:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 26:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 27:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 28:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 29:
			iVar6 = 5;
			iVar7 = 4;
			if (Global_262145.f_4154 != -1)
			{
				iVar1 = Global_262145.f_4154;
			}
			else
			{
				iVar1 = 110;
			}
			break;
		
		case 30:
			iVar6 = 5;
			iVar7 = 5;
			if (Global_262145.f_4155 != -1)
			{
				iVar1 = Global_262145.f_4155;
			}
			else
			{
				iVar1 = 160;
			}
			break;
		
		case 31:
			iVar6 = 6;
			iVar7 = 0;
			if (Global_262145.f_4156 != -1)
			{
				iVar1 = Global_262145.f_4156;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 32:
			iVar6 = 6;
			iVar7 = 1;
			if (Global_262145.f_4157 != -1)
			{
				iVar1 = Global_262145.f_4157;
			}
			else
			{
				iVar1 = 190;
			}
			break;
		
		case 33:
			iVar6 = 6;
			iVar7 = 2;
			if (Global_262145.f_4158 != -1)
			{
				iVar1 = Global_262145.f_4158;
			}
			else
			{
				iVar1 = 235;
			}
			break;
		
		case 34:
			iVar6 = 6;
			iVar7 = 3;
			if (Global_262145.f_4159 != -1)
			{
				iVar1 = Global_262145.f_4159;
			}
			else
			{
				iVar1 = 220;
			}
			break;
		
		case 35:
			iVar6 = 6;
			iVar7 = 4;
			if (Global_262145.f_4160 != -1)
			{
				iVar1 = Global_262145.f_4160;
			}
			else
			{
				iVar1 = 250;
			}
			break;
		
		case 36:
			iVar6 = 6;
			iVar7 = 5;
			if (Global_262145.f_4161 != -1)
			{
				iVar1 = Global_262145.f_4161;
			}
			else
			{
				iVar1 = 205;
			}
			break;
		
		case 37:
			iVar6 = 7;
			iVar7 = 0;
			if (Global_262145.f_4162 != -1)
			{
				iVar1 = Global_262145.f_4162;
			}
			else
			{
				iVar1 = 445;
			}
			break;
		
		case 38:
			iVar6 = 7;
			iVar7 = 1;
			if (Global_262145.f_4163 != -1)
			{
				iVar1 = Global_262145.f_4163;
			}
			else
			{
				iVar1 = 175;
			}
			break;
		
		case 39:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 40:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 41:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 42:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 43:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 44:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 46:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 48:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 49:
			iVar6 = 9;
			iVar7 = 0;
			if (Global_262145.f_4164 != -1)
			{
				iVar1 = Global_262145.f_4164;
			}
			else
			{
				iVar1 = 340;
			}
			break;
		
		case 50:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 51:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 52:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 53:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 54:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 4;
			func_24(iVar10, iParam0, 55);
			if (Global_69311[0 /*14*/].f_7 > 0)
			{
				Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_58));
			}
			return;
			break;
	}
	iVar1 = system::round((system::to_float(iVar1) * Global_275816.f_58));
	StringCopy(&Var2, "T_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_225(int iParam0)//Position - 0x3966F
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 1;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 965;
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 960;
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 9500;
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 975;
			break;
		
		case 5:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 1185;
			break;
		
		case 6:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 15000;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 1115;
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 1105;
			break;
		
		case 9:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 25000;
			break;
		
		case 10:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 510;
			break;
		
		case 11:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 530;
			break;
		
		case 12:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 5500;
			break;
		
		case 13:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 535;
			break;
		
		case 14:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 1510;
			break;
		
		case 15:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 1530;
			break;
		
		case 16:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 14500;
			break;
		
		case 17:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 13000;
			break;
		
		case 18:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 8000;
			break;
		
		case 19:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 1265;
			break;
		
		case 20:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 8500;
			break;
		
		case 21:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 1210;
			break;
		
		case 22:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 2360;
			break;
		
		case 23:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 22500;
			break;
		
		case 24:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 2375;
			break;
		
		case 25:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 2485;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 4;
			func_24(iVar10, iParam0, 26);
			if (Global_69311[0 /*14*/].f_7 > 0)
			{
				Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_29));
			}
			return;
			break;
	}
	StringCopy(&Var2, "M_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	iVar11 = (iParam0 - 1);
	if (iVar11 >= 0 && iVar11 < 26)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_2014[iVar11]) * Global_275816.f_29));
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_226(int iParam0)//Position - 0x39952
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 6;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 1765;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 760;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 760;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 765;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 85;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 80;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 90;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 95;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 100;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 60;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 55;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 100;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 1255;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 65;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 1050;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 1895;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 185;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 190;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 115;
			break;
	}
	switch (iParam0)
	{
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 415;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 135;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 125;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 105;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 130;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 3530;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 2610;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 1295;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 120;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 160;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 160;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 145;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 105;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 115;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 150;
			break;
		
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 540;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 110;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 120;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 460;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 120;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 120;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 415;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 135;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 140;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 160;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 120;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 1025;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 1560;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 145;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 120;
			break;
	}
	switch (iParam0)
	{
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 365;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 100;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 65;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 85;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 50;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 35;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 50;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 50;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 2395;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 3675;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 320;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 3875;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 108:
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 109:
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 110:
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 111:
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 112:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 2050;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 375;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 2105;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 345;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 380;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 340;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 385;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 4135;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 370;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 375;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 385;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 365;
			break;
		
		case 124:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 325;
			break;
		
		case 125:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 325;
			break;
		
		case 126:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 370;
			break;
		
		case 127:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 330;
			break;
	}
	switch (iParam0)
	{
		case 128:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 1025;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 390;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 400;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 390;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 365;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 410;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 4125;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 4365;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 5365;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 6225;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 3755;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 405;
			break;
		
		case 140:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 4115;
			break;
		
		case 141:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 2240;
			break;
		
		case 142:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 3850;
			break;
		
		case 143:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 3110;
			break;
		
		case 144:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 1950;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 455;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 405;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 410;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 415;
			break;
		
		case 156:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 4425;
			break;
		
		case 157:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 158:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 159:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 160:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 65;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 85;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 75;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 172:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 173:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 174:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 175:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 176:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 360;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 135;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 175;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 188:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 189:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 190:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 191:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 192:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 204:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 205:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 206:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 207:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 208:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 675;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 100;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 400;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 340;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 195;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 215;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 120;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 165;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 100;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 1040;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 100;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 120;
			break;
		
		case 220:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 210;
			break;
		
		case 221:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 205;
			break;
		
		case 222:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 200;
			break;
		
		case 223:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 100;
			break;
		
		case 224:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 1420;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 445;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 435;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 420;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 425;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 435;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 425;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 430;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 3215;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 3320;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 440;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 440;
			break;
		
		case 236:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 445;
			break;
		
		case 237:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 450;
			break;
		
		case 238:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 450;
			break;
		
		case 239:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 1255;
			break;
		
		case 240:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 750;
			break;
		
		case 241:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 165;
			break;
		
		case 242:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 460;
			break;
		
		case 243:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 190;
			break;
		
		case 244:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 195;
			break;
		
		case 245:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 200;
			break;
		
		case 246:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 205;
			break;
		
		case 247:
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 210;
			break;
		
		case 248:
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 215;
			break;
		
		case 249:
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 220;
			break;
		
		case 250:
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 455;
			break;
		
		case 251:
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 175;
			break;
		
		case 252:
			iVar6 = 15;
			iVar7 = 12;
			iVar1 = 800;
			break;
		
		case 253:
			iVar6 = 15;
			iVar7 = 13;
			iVar1 = 790;
			break;
		
		case 254:
			iVar6 = 15;
			iVar7 = 14;
			iVar1 = 175;
			break;
		
		case 255:
			iVar6 = 15;
			iVar7 = 15;
			iVar1 = 190;
			break;
	}
	StringCopy(&Var2, "F_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	iVar11 = iParam0;
	if (iVar11 >= 0 && iVar11 < 256)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1757[iVar11]) * Global_275816.f_25));
	}
	if (iParam0 >= 256)
	{
		Global_69311[0 /*14*/].f_5 = 4;
		func_24(iVar10, iParam0, 256);
		if (Global_69311[0 /*14*/].f_7 > 0)
		{
			Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_25));
		}
	}
	else
	{
		func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_227(int iParam0)//Position - 0x3AF77
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 4;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 270;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 750;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 450;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 4875;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 1760;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 1090;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 2465;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 305;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 290;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 410;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 255;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 255;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 405;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 5000;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 4480;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 4335;
			break;
	}
	switch (iParam0)
	{
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 375;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 265;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 275;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 280;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 300;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 265;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 255;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 250;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 260;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 250;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 225;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 230;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 215;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 650;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 425;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 345;
			break;
	}
	switch (iParam0)
	{
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 110;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 250;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 290;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 135;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 125;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 120;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 130;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 110;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 525;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 115;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 535;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 135;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 120;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 130;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 140;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 130;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 520;
			break;
	}
	switch (iParam0)
	{
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 215;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 220;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 225;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 245;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 215;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 630;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 250;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 260;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 200;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 225;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 230;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 725;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 650;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 230;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 230;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 280;
			break;
	}
	switch (iParam0)
	{
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 330;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 320;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 315;
			break;
	}
	switch (iParam0)
	{
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 850;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 535;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 530;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 108:
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 109:
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 110:
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 111:
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 112:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 890;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 440;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 455;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 124:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 125:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 126:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 127:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 128:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 295;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 180;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 150;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 155;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 840;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 205;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 150;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 950;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 580;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 200;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 665;
			break;
		
		case 140:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 780;
			break;
		
		case 141:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 142:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 615;
			break;
		
		case 143:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 250;
			break;
	}
	switch (iParam0)
	{
		case 144:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 495;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 435;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 420;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 390;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 485;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 380;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 1295;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 1135;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 1425;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 1645;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 1925;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 2250;
			break;
		
		case 156:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 365;
			break;
		
		case 157:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 360;
			break;
		
		case 158:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 2245;
			break;
		
		case 159:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 2170;
			break;
		
		case 160:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 50;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 100;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 65;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 172:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 173:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 174:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 175:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 176:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 275;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 300;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 145;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 110;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 95;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 155;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 155;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 510;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 165;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 465;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 250;
			break;
		
		case 188:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 110;
			break;
		
		case 189:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 470;
			break;
		
		case 190:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 480;
			break;
		
		case 191:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 155;
			break;
		
		case 192:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 275;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 395;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 285;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 560;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 595;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 295;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 230;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 215;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 270;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 295;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 285;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 215;
			break;
		
		case 204:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 210;
			break;
		
		case 205:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 290;
			break;
		
		case 206:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 230;
			break;
		
		case 207:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 215;
			break;
	}
	switch (iParam0)
	{
		case 208:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 220:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 221:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 222:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 223:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 224:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 90;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 105;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 100;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 105;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 236:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 237:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 238:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 239:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 240:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 230;
			break;
		
		case 241:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 242:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 243:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 130;
			break;
		
		case 244:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 245:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 246:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 247:
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 248:
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 249:
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 250:
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 350;
			break;
		
		case 251:
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 335;
			break;
		
		case 252:
			iVar6 = 15;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 253:
			iVar6 = 15;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 254:
			iVar6 = 15;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 255:
			iVar6 = 15;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	StringCopy(&Var2, "L_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	iVar11 = iParam0;
	if (iVar11 >= 0 && iVar11 < 256)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1243[iVar11]) * Global_275816.f_23));
	}
	if (iParam0 >= 256)
	{
		Global_69311[0 /*14*/].f_5 = 4;
		func_24(iVar10, iParam0, 256);
		if (Global_69311[0 /*14*/].f_7 > 0)
		{
			Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_23));
		}
	}
	else
	{
		func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_228(int iParam0)//Position - 0x3C5D6
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 9:
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 10:
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 11:
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 12;
			iVar7 = 0;
			break;
		
		case 13:
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 14:
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 15:
			iVar6 = 15;
			iVar7 = 0;
			break;
	}
	if (iParam0 >= 16)
	{
		Global_69311[0 /*14*/].f_5 = 4;
		func_24(iVar10, iParam0, 16);
		return;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_229(int iParam0)//Position - 0x3C72F
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 9;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			break;
		
		case 6:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 1;
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 2;
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 3;
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 4;
			break;
		
		case 11:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 3;
			iVar7 = 1;
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 2;
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 3;
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 4;
			break;
		
		case 16:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 17:
			iVar6 = 4;
			iVar7 = 1;
			break;
		
		case 18:
			iVar6 = 4;
			iVar7 = 2;
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 3;
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 4;
			break;
		
		case 21:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 22:
			iVar6 = 5;
			iVar7 = 1;
			break;
		
		case 23:
			iVar6 = 5;
			iVar7 = 2;
			break;
		
		case 24:
			iVar6 = 5;
			iVar7 = 3;
			break;
		
		case 25:
			iVar6 = 5;
			iVar7 = 4;
			break;
		
		case 26:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 27:
			iVar6 = 6;
			iVar7 = 1;
			break;
		
		case 28:
			iVar6 = 6;
			iVar7 = 2;
			break;
		
		case 29:
			iVar6 = 6;
			iVar7 = 3;
			break;
		
		case 30:
			iVar6 = 6;
			iVar7 = 4;
			break;
		
		case 31:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 32:
			iVar6 = 7;
			iVar7 = 1;
			break;
		
		case 33:
			iVar6 = 7;
			iVar7 = 2;
			break;
		
		case 34:
			iVar6 = 7;
			iVar7 = 3;
			break;
		
		case 35:
			iVar6 = 7;
			iVar7 = 4;
			break;
	}
	if (iParam0 >= 36)
	{
		Global_69311[0 /*14*/].f_5 = 4;
		func_24(iVar10, iParam0, 36);
		return;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_230(int iParam0)//Position - 0x3C9AD
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 8;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "U_FMF_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 1:
			StringCopy(&Var2, "U_FMF_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 225;
			break;
		
		case 2:
			StringCopy(&Var2, "U_FMF_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 3:
			StringCopy(&Var2, "U_FMF_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 40;
			break;
		
		case 4:
			StringCopy(&Var2, "U_FMF_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 40;
			break;
		
		case 5:
			StringCopy(&Var2, "U_FMF_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 40;
			break;
		
		case 6:
			StringCopy(&Var2, "U_FMF_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 40;
			break;
		
		case 7:
			StringCopy(&Var2, "U_FMF_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 8:
			StringCopy(&Var2, "U_FMF_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 40;
			break;
		
		case 9:
			StringCopy(&Var2, "U_FMF_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 40;
			break;
		
		case 10:
			StringCopy(&Var2, "U_FMF_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 135;
			break;
		
		case 11:
			StringCopy(&Var2, "U_FMF_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 12:
			StringCopy(&Var2, "U_FMF_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 220;
			break;
		
		case 13:
			StringCopy(&Var2, "U_FMF_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 45;
			break;
		
		case 14:
			StringCopy(&Var2, "U_FMF_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 15:
			StringCopy(&Var2, "U_FMF_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 125;
			break;
		
		case 16:
			StringCopy(&Var2, "U_FMF_0_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 17:
			StringCopy(&Var2, "U_FMF_0_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 18:
			StringCopy(&Var2, "U_FMF_0_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 19:
			StringCopy(&Var2, "U_FMF_0_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 40;
			break;
		
		case 20:
			StringCopy(&Var2, "U_FMF_0_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 40;
			break;
		
		case 21:
			StringCopy(&Var2, "U_FMF_0_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 40;
			break;
		
		case 22:
			StringCopy(&Var2, "U_FMF_0_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 40;
			break;
		
		case 23:
			StringCopy(&Var2, "U_FMF_0_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 24:
			StringCopy(&Var2, "U_FMF_0_8", 16);
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 40;
			break;
		
		case 25:
			StringCopy(&Var2, "U_FMF_0_9", 16);
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 40;
			break;
		
		case 26:
			StringCopy(&Var2, "U_FMF_0_10", 16);
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 135;
			break;
		
		case 27:
			StringCopy(&Var2, "U_FMF_0_11", 16);
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 28:
			StringCopy(&Var2, "U_FMF_0_12", 16);
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 220;
			break;
		
		case 29:
			StringCopy(&Var2, "U_FMF_0_13", 16);
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 45;
			break;
		
		case 30:
			StringCopy(&Var2, "U_FMF_0_14", 16);
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 31:
			StringCopy(&Var2, "U_FMF_0_15", 16);
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 125;
			break;
		
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 33:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 34:
			StringCopy(&Var2, "U_FMF_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "U_FMF_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 36:
			StringCopy(&Var2, "U_FMF_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 37:
			StringCopy(&Var2, "U_FMF_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 38:
			StringCopy(&Var2, "U_FMF_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 39:
			StringCopy(&Var2, "U_FMF_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 40:
			StringCopy(&Var2, "U_FMF_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 41:
			StringCopy(&Var2, "U_FMF_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 42:
			StringCopy(&Var2, "U_FMF_4_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 43:
			StringCopy(&Var2, "U_FMF_4_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 44:
			StringCopy(&Var2, "U_FMF_4_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 45:
			StringCopy(&Var2, "U_FMF_4_11", 16);
			iVar6 = 4;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 46:
			StringCopy(&Var2, "U_FMF_4_12", 16);
			iVar6 = 4;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 47:
			StringCopy(&Var2, "U_FMF_4_13", 16);
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 40;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[77]));
			break;
		
		case 48:
			StringCopy(&Var2, "U_FMF_4_14", 16);
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 40;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[78]));
			break;
		
		case 49:
			StringCopy(&Var2, "U_FMF_4_15", 16);
			iVar6 = 4;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 50:
			StringCopy(&Var2, "U_FMF_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 45;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[80]));
			break;
		
		case 51:
			StringCopy(&Var2, "U_FMF_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 60;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[81]));
			break;
		
		case 52:
			StringCopy(&Var2, "U_FMF_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 53:
			StringCopy(&Var2, "U_FMF_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 54:
			StringCopy(&Var2, "U_FMF_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 55:
			StringCopy(&Var2, "U_FMF_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 56:
			StringCopy(&Var2, "U_FMF_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 57:
			StringCopy(&Var2, "U_FMF_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 375;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[87]));
			break;
		
		case 58:
			StringCopy(&Var2, "U_FMF_5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 59:
			StringCopy(&Var2, "U_FMF_5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 90;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[89]));
			break;
		
		case 60:
			StringCopy(&Var2, "U_FMF_5_10", 16);
			iVar6 = 5;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 61:
			StringCopy(&Var2, "U_FMF_5_11", 16);
			iVar6 = 5;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 62:
			StringCopy(&Var2, "U_FMF_5_12", 16);
			iVar6 = 5;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 63:
			StringCopy(&Var2, "U_FMF_5_13", 16);
			iVar6 = 5;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 64:
			StringCopy(&Var2, "U_FMF_5_14", 16);
			iVar6 = 5;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 65:
			StringCopy(&Var2, "U_FMF_5_15", 16);
			iVar6 = 5;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 66:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 67:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 68:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 69:
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 70:
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 71:
			StringCopy(&Var2, "U_FMF_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 90;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[176]));
			break;
		
		case 72:
			StringCopy(&Var2, "U_FMF_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 95;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[177]));
			break;
		
		case 73:
			StringCopy(&Var2, "U_FMF_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 95;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[178]));
			break;
		
		case 74:
			StringCopy(&Var2, "U_FMF_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 75:
			StringCopy(&Var2, "U_FMF_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 76:
			StringCopy(&Var2, "U_FMF_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 77:
			StringCopy(&Var2, "U_FMF_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 78:
			StringCopy(&Var2, "U_FMF_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 79:
			StringCopy(&Var2, "U_FMF_11_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 80:
			StringCopy(&Var2, "U_FMF_11_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 81:
			StringCopy(&Var2, "U_FMF_11_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 150;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[186]));
			break;
		
		case 82:
			StringCopy(&Var2, "U_FMF_11_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 65;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[187]));
			break;
		
		case 83:
			StringCopy(&Var2, "U_FMF_11_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 84:
			StringCopy(&Var2, "U_FMF_11_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 85:
			StringCopy(&Var2, "U_FMF_11_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 86:
			StringCopy(&Var2, "U_FMF_11_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 145;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[191]));
			break;
		
		case 87:
			StringCopy(&Var2, "U_FMF_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 88:
			StringCopy(&Var2, "U_FMF_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 89:
			StringCopy(&Var2, "U_FMF_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 90:
			StringCopy(&Var2, "U_FMF_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 91:
			StringCopy(&Var2, "U_FMF_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 92:
			StringCopy(&Var2, "U_FMF_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 93:
			StringCopy(&Var2, "U_FMF_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "U_FMF_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 1560;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[199]));
			break;
		
		case 95:
			StringCopy(&Var2, "U_FMF_12_8", 16);
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 195;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[200]));
			break;
		
		case 96:
			StringCopy(&Var2, "U_FMF_12_9", 16);
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 200;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[201]));
			break;
		
		case 97:
			StringCopy(&Var2, "U_FMF_12_10", 16);
			iVar6 = 12;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 98:
			StringCopy(&Var2, "U_FMF_12_11", 16);
			iVar6 = 12;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 99:
			StringCopy(&Var2, "U_FMF_12_12", 16);
			iVar6 = 12;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 100:
			StringCopy(&Var2, "U_FMF_12_13", 16);
			iVar6 = 12;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 101:
			StringCopy(&Var2, "U_FMF_12_14", 16);
			iVar6 = 12;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 102:
			StringCopy(&Var2, "U_FMF_12_15", 16);
			iVar6 = 12;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 103:
			StringCopy(&Var2, "U_FMF_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 975;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[208]));
			break;
		
		case 104:
			StringCopy(&Var2, "U_FMF_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 2670;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[209]));
			break;
		
		case 105:
			StringCopy(&Var2, "U_FMF_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 480;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[210]));
			break;
		
		case 106:
			StringCopy(&Var2, "U_FMF_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 400;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[211]));
			break;
		
		case 107:
			StringCopy(&Var2, "U_FMF_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 2500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[212]));
			break;
		
		case 108:
			StringCopy(&Var2, "U_FMF_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 2060;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[213]));
			break;
		
		case 109:
			StringCopy(&Var2, "U_FMF_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 2620;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[214]));
			break;
		
		case 110:
			StringCopy(&Var2, "U_FMF_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 475;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[215]));
			break;
		
		case 111:
			StringCopy(&Var2, "U_FMF_13_8", 16);
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 490;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[216]));
			break;
		
		case 112:
			StringCopy(&Var2, "U_FMF_13_9", 16);
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 2280;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[217]));
			break;
		
		case 113:
			StringCopy(&Var2, "U_FMF_13_10", 16);
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 485;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[218]));
			break;
		
		case 114:
			StringCopy(&Var2, "U_FMF_13_11", 16);
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 2390;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[219]));
			break;
		
		case 115:
			StringCopy(&Var2, "U_FMF_13_12", 16);
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 2610;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[220]));
			break;
		
		case 116:
			StringCopy(&Var2, "U_FMF_13_13", 16);
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 1450;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[221]));
			break;
		
		case 117:
			StringCopy(&Var2, "U_FMF_13_14", 16);
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 2720;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[222]));
			break;
		
		case 118:
			StringCopy(&Var2, "U_FMF_13_15", 16);
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 4995;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[223]));
			break;
		
		case 119:
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 120:
			StringCopy(&Var2, "U_FMF_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 325;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[240]));
			break;
		
		case 121:
			StringCopy(&Var2, "U_FMF_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 122:
			StringCopy(&Var2, "U_FMF_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 123:
			StringCopy(&Var2, "U_FMF_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 130;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[243]));
			break;
		
		case 124:
			StringCopy(&Var2, "U_FMF_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 125:
			StringCopy(&Var2, "U_FMF_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 126:
			StringCopy(&Var2, "U_FMF_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 127:
			StringCopy(&Var2, "U_FMF_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 128:
			StringCopy(&Var2, "U_FMF_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 129:
			StringCopy(&Var2, "U_FMF_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 130:
			StringCopy(&Var2, "U_FMF_15_10", 16);
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 450;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[250]));
			break;
		
		case 131:
			StringCopy(&Var2, "U_FMF_15_11", 16);
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 465;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[251]));
			break;
		
		case 132:
			StringCopy(&Var2, "U_FMF_15_12", 16);
			iVar6 = 15;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 133:
			StringCopy(&Var2, "U_FMF_15_13", 16);
			iVar6 = 15;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 134:
			StringCopy(&Var2, "U_FMF_15_14", 16);
			iVar6 = 15;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 135:
			StringCopy(&Var2, "U_FMF_15_15", 16);
			iVar6 = 15;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 4;
			func_24(iVar10, iParam0, 136);
			if (Global_69311[0 /*14*/].f_7 > 0)
			{
				Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_24));
			}
			return;
			break;
	}
	if (iParam0 == 4 || iParam0 == 20)
	{
		if (func_186(89, -1))
		{
			StringCopy(&Var2, "REW_RS", 16);
			iVar1 = system::round((system::to_float(1250) * Global_262145.f_2975));
		}
		else
		{
			iVar1 = system::round((system::to_float(40) * Global_262145.f_1500[4]));
		}
	}
	else if (iParam0 == 7 || iParam0 == 23)
	{
		if (func_186(88, -1))
		{
			StringCopy(&Var2, "REW_LSB", 16);
			iVar1 = system::round((system::to_float(450) * Global_262145.f_2974));
		}
		else
		{
			iVar1 = system::round((system::to_float(45) * Global_262145.f_1500[7]));
		}
	}
	else if (iParam0 == 9 || iParam0 == 25)
	{
		if (func_186(87, -1))
		{
			StringCopy(&Var2, "REW_REDSK", 16);
			iVar1 = system::round((system::to_float(500) * Global_262145.f_2973));
		}
		else
		{
			iVar1 = system::round((system::to_float(40) * Global_262145.f_1500[9]));
		}
	}
	else if (iParam0 >= 0 && iParam0 < 16)
	{
		iVar11 = iParam0;
		if (iVar11 >= 0 && iVar11 < 256)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[iVar11]));
		}
	}
	else if (iParam0 >= 16 && iParam0 < 32)
	{
		iVar12 = (iParam0 - 16);
		if (iVar12 >= 0 && iVar12 < 256)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_1500[iVar12]));
		}
	}
	iVar1 = system::round((system::to_float(iVar1) * Global_275816.f_24));
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_231(int iParam0)//Position - 0x3DDEA
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 11;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 225;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 40;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 40;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 40;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 40;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 40;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 40;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 135;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 220;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 45;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 125;
			break;
	}
	switch (iParam0)
	{
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 390;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 230;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 355;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 5000;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 2725;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 3265;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 3625;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 4220;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 310;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 210;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 75;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 50;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 60;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 50;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 295;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 80;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 75;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 2250;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 275;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 445;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 50;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 40;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 470;
			break;
	}
	switch (iParam0)
	{
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 95;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 360;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 100;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 60;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 295;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 460;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 1980;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 2110;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 95;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 40;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 40;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 375;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 90;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 900;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 1000;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 1050;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 1000;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 108:
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 109:
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 110:
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 111:
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 112:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 2975;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 1100;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 1825;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 1750;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 124:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 125:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 126:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 127:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 128:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 1025;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 1075;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 2805;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 140:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 2250;
			break;
		
		case 141:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 142:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 143:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 144:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 495;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 95;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 525;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 100;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 110;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 100;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 110;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 130;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 560;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 295;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 975;
			break;
		
		case 156:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 160;
			break;
		
		case 157:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 100;
			break;
		
		case 158:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 1700;
			break;
		
		case 159:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 160:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 380;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 95;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 110;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 95;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 90;
			break;
		
		case 172:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 173:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 85;
			break;
		
		case 174:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 175:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 215;
			break;
	}
	switch (iParam0)
	{
		case 176:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 90;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 95;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 95;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 150;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 65;
			break;
		
		case 188:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 189:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 190:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 191:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 145;
			break;
	}
	switch (iParam0)
	{
		case 192:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 1560;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 195;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 200;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 204:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 205:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 206:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 207:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 208:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 975;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 2670;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 480;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 400;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 2500;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 2060;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 2620;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 475;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 490;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 2280;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 485;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 2390;
			break;
		
		case 220:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 2610;
			break;
		
		case 221:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 1450;
			break;
		
		case 222:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 2720;
			break;
		
		case 223:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 4995;
			break;
	}
	switch (iParam0)
	{
		case 224:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 265;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 385;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 345;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 330;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 430;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 375;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 375;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 295;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 360;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 325;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 340;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 435;
			break;
		
		case 236:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 300;
			break;
		
		case 237:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 315;
			break;
		
		case 238:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 415;
			break;
		
		case 239:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 420;
			break;
	}
	switch (iParam0)
	{
		case 240:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 325;
			break;
		
		case 241:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 242:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 243:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 130;
			break;
		
		case 244:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 245:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 246:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 247:
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 248:
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 249:
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 250:
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 450;
			break;
		
		case 251:
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 465;
			break;
		
		case 252:
			iVar6 = 15;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 253:
			iVar6 = 15;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 254:
			iVar6 = 15;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 255:
			iVar6 = 15;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	StringCopy(&Var2, "U_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	if (iParam0 == 4)
	{
		if (func_186(89, -1))
		{
			StringCopy(&Var2, "REW_RS", 16);
			iVar1 = system::round(((system::to_float(1250) * Global_262145.f_2975) * Global_275816.f_24));
		}
		else
		{
			iVar1 = system::round(((system::to_float(40) * Global_262145.f_1500[4]) * Global_275816.f_24));
		}
	}
	else if (iParam0 == 7)
	{
		if (func_186(88, -1))
		{
			StringCopy(&Var2, "REW_LSB", 16);
			iVar1 = system::round(((system::to_float(450) * Global_262145.f_2974) * Global_275816.f_24));
		}
		else
		{
			iVar1 = system::round(((system::to_float(45) * Global_262145.f_1500[7]) * Global_275816.f_24));
		}
	}
	else if (iParam0 == 9)
	{
		if (func_186(87, -1))
		{
			StringCopy(&Var2, "REW_REDSK", 16);
			iVar1 = system::round(((system::to_float(500) * Global_262145.f_2973) * Global_275816.f_24));
		}
		else
		{
			iVar1 = system::round(((system::to_float(40) * Global_262145.f_1500[9]) * Global_275816.f_24));
		}
	}
	else
	{
		iVar11 = iParam0;
		if (iVar11 >= 0 && iVar11 < 256)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1500[iVar11]) * Global_275816.f_24));
		}
	}
	if (iParam0 >= 256)
	{
		Global_69311[0 /*14*/].f_5 = 4;
		func_24(iVar10, iParam0, 256);
		if (Global_69311[0 /*14*/].f_7 > 0)
		{
			Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_24));
		}
	}
	else
	{
		func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_232(int iParam0)//Position - 0x3F57C
{
	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;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[0]));
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[1]));
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 495;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[2]));
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 490;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[3]));
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 485;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[4]));
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 480;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[5]));
			break;
		
		case 6:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 440;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[6]));
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 435;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[7]));
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 430;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[8]));
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 425;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[9]));
			break;
		
		case 11:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 420;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[10]));
			break;
		
		case 12:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 190;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[11]));
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 185;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[12]));
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 180;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[13]));
			break;
		
		case 16:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 175;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[14]));
			break;
		
		case 17:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 170;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[15]));
			break;
		
		case 18:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 295;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[16]));
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 290;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[17]));
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 285;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[18]));
			break;
		
		case 21:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 280;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[19]));
			break;
		
		case 22:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 275;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[20]));
			break;
		
		case 23:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 24:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 2000;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[21]));
			break;
		
		case 25:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 1995;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[22]));
			break;
		
		case 26:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 1990;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[23]));
			break;
		
		case 27:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 1985;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[24]));
			break;
		
		case 28:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 1980;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[25]));
			break;
		
		case 29:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 30:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 1150;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[26]));
			break;
		
		case 31:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 1145;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[27]));
			break;
		
		case 32:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 1140;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[28]));
			break;
		
		case 33:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 1135;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[29]));
			break;
		
		case 34:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 1130;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[30]));
			break;
		
		case 35:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 550;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[31]));
			break;
		
		case 36:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 545;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[32]));
			break;
		
		case 37:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 540;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[33]));
			break;
		
		case 38:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 535;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[34]));
			break;
		
		case 39:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 530;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[35]));
			break;
		
		case 40:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 41:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 580;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[36]));
			break;
		
		case 42:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 575;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[37]));
			break;
		
		case 43:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 570;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[38]));
			break;
		
		case 44:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 565;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[39]));
			break;
		
		case 45:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 560;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[40]));
			break;
		
		case 46:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 47:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 1100;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[41]));
			break;
		
		case 48:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 1095;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[42]));
			break;
		
		case 49:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 1090;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[43]));
			break;
		
		case 50:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 1085;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[44]));
			break;
		
		case 51:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 1080;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[45]));
			break;
		
		case 52:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 53:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 520;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[46]));
			break;
		
		case 54:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 515;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[47]));
			break;
		
		case 55:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 510;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[48]));
			break;
		
		case 56:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 505;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[49]));
			break;
		
		case 57:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[50]));
			break;
		
		case 58:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 59:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		case 60:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 395;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[51]));
			break;
		
		case 61:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 390;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[52]));
			break;
		
		case 62:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 385;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[53]));
			break;
		
		case 63:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 380;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[54]));
			break;
		
		case 64:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 375;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[55]));
			break;
		
		case 65:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 66:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		case 67:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 1050;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[56]));
			break;
		
		case 68:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 1045;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[57]));
			break;
		
		case 69:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 1040;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[58]));
			break;
		
		case 70:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 1035;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[59]));
			break;
		
		case 71:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 1030;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[60]));
			break;
		
		case 72:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 73:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 1200;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[61]));
			break;
		
		case 74:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 1195;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[62]));
			break;
		
		case 75:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 1190;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[63]));
			break;
		
		case 76:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 1185;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[64]));
			break;
		
		case 77:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 1180;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[65]));
			break;
		
		case 78:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 79:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 475;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[66]));
			break;
		
		case 80:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 470;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[67]));
			break;
		
		case 81:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 465;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[68]));
			break;
		
		case 82:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 460;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[69]));
			break;
		
		case 83:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 455;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[70]));
			break;
		
		case 84:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 85:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 950;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[71]));
			break;
		
		case 86:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 945;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[72]));
			break;
		
		case 87:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 940;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[73]));
			break;
		
		case 88:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 935;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[74]));
			break;
		
		case 89:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 930;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2451[75]));
			break;
		
		case 90:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 91:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 4;
			func_24(iVar10, iParam0, 92);
			return;
			break;
	}
	StringCopy(&Var2, "H_FMF_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_233(int iParam0, int iParam1)//Position - 0x4044D
{
	switch (iParam0)
	{
		case 2:
			func_248(iParam1);
			break;
		
		case 11:
			func_247(iParam1);
			break;
		
		case 8:
			func_246(iParam1);
			break;
		
		case 9:
			func_245(iParam1);
			break;
		
		case 3:
			func_244(iParam1);
			break;
		
		case 4:
			func_243(iParam1);
			break;
		
		case 6:
			func_242(iParam1);
			break;
		
		case 1:
			func_241(iParam1);
			break;
		
		case 7:
			func_240(iParam1);
			break;
		
		case 10:
			func_239(iParam1);
			break;
		
		case 14:
			func_238(iParam1);
			break;
		
		case 12:
			func_237(iParam1);
			break;
		
		case 5:
			func_236(iParam1);
			break;
		
		case 0:
			func_235(iParam1);
			break;
		
		case 13:
			func_234(iParam1);
			break;
	}
}

void func_234(int iParam0)//Position - 0x4053D
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 13;
	switch (iParam0)
	{
		case 31:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 16:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 17:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 18:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 19:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 20:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 21:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 22:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 23:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 24:
			iVar6 = 0;
			iVar7 = 0;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_235(int iParam0)//Position - 0x40707
{
	int iVar0;
	
	iVar0 = 0;
	Global_69311[0 /*14*/].f_5 = 3;
	func_24(iVar0, iParam0, 0);
}

void func_236(int iParam0)//Position - 0x40725
{
	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;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 3;
			func_24(iVar10, iParam0, 9);
			return;
			break;
	}
	StringCopy(&Var2, "HA_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_237(int iParam0)//Position - 0x40827
{
	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;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar0 = true;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S1", 16);
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S2", 16);
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S3", 16);
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S4", 16);
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S5", 16);
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S6", 16);
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S7", 16);
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S8", 16);
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_S9", 16);
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P1", 16);
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P2", 16);
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P3", 16);
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P4", 16);
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P5", 16);
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P6", 16);
			break;
		
		case 16:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P7", 16);
			break;
		
		case 17:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_P8", 16);
			break;
		
		case 18:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B1", 16);
			break;
		
		case 19:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B2", 16);
			break;
		
		case 20:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B3", 16);
			break;
		
		case 21:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B4", 16);
			break;
		
		case 22:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B5", 16);
			break;
		
		case 23:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B6", 16);
			break;
		
		case 24:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B7", 16);
			break;
		
		case 25:
			iVar6 = 0;
			iVar7 = 0;
			StringCopy(&Var2, "O_FMM_B8", 16);
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 3;
			func_24(iVar10, iParam0, 26);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_238(int iParam0)//Position - 0x40AEF
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 14;
	iVar11 = 0;
	switch (iParam0)
	{
		case 0:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			break;
		
		case 1:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			break;
		
		case 2:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 2;
			break;
		
		case 3:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 3;
			break;
		
		case 4:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 4;
			break;
		
		case 5:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 5;
			break;
		
		case 6:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 6;
			break;
		
		case 7:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 7;
			break;
		
		case 8:
			iVar6 = -1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 8;
			break;
		
		case 10:
			StringCopy(&Var2, "HT_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 11:
			StringCopy(&Var2, "HT_FMM_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 12:
			StringCopy(&Var2, "HT_FMM_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 85;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 13:
			StringCopy(&Var2, "HT_FMM_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 14:
			StringCopy(&Var2, "HT_FMM_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 235;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 15:
			StringCopy(&Var2, "HT_FMM_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 80;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 16:
			StringCopy(&Var2, "HT_FMM_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 85;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 17:
			StringCopy(&Var2, "HT_FMM_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 18:
			StringCopy(&Var2, "HT_FMM_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar8 = 0;
			break;
		
		case 19:
			StringCopy(&Var2, "HT_FMM_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 20:
			StringCopy(&Var2, "HT_FMM_2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 21:
			StringCopy(&Var2, "HT_FMM_2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 22:
			StringCopy(&Var2, "HT_FMM_2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 320;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 23:
			StringCopy(&Var2, "HT_FMM_2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 185;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 24:
			StringCopy(&Var2, "HT_FMM_2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 245;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 25:
			StringCopy(&Var2, "HT_FMM_2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 26:
			StringCopy(&Var2, "HT_FMM_2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 40;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 27:
			StringCopy(&Var2, "HT_FMM_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 28:
			StringCopy(&Var2, "HT_FMM_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 60;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 29:
			StringCopy(&Var2, "HT_FMM_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 30:
			StringCopy(&Var2, "HT_FMM_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 31:
			StringCopy(&Var2, "HT_FMM_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 32:
			StringCopy(&Var2, "HT_FMM_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 33:
			StringCopy(&Var2, "HT_FMM_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 34:
			StringCopy(&Var2, "HT_FMM_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 35:
			StringCopy(&Var2, "HT_FMM_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 415;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 36:
			StringCopy(&Var2, "HT_FMM_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 315;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 37:
			StringCopy(&Var2, "HT_FMM_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 38:
			StringCopy(&Var2, "HT_FMM_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 39:
			StringCopy(&Var2, "HT_FMM_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 40:
			StringCopy(&Var2, "HT_FMM_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 41:
			StringCopy(&Var2, "HT_FMM_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 42:
			StringCopy(&Var2, "HT_FMM_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 43:
			StringCopy(&Var2, "HT_FMM_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 75;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 44:
			StringCopy(&Var2, "HT_FMM_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 60;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 45:
			StringCopy(&Var2, "HT_FMM_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 46:
			StringCopy(&Var2, "HT_FMM_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 47:
			StringCopy(&Var2, "HT_FMM_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 48:
			StringCopy(&Var2, "HT_FMM_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 49:
			StringCopy(&Var2, "HT_FMM_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 50:
			StringCopy(&Var2, "HT_FMM_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 51:
			StringCopy(&Var2, "HT_FMM_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 160;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 52:
			StringCopy(&Var2, "HT_FMM_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 265;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 53:
			StringCopy(&Var2, "HT_FMM_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 170;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 54:
			StringCopy(&Var2, "HT_FMM_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 55:
			StringCopy(&Var2, "HT_FMM_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 570;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 56:
			StringCopy(&Var2, "HT_FMM_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 560;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 57:
			StringCopy(&Var2, "HT_FMM_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 58:
			StringCopy(&Var2, "HT_FMM_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 59:
			StringCopy(&Var2, "HT_FMM_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 260;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 60:
			StringCopy(&Var2, "HT_FMM_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 215;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 61:
			StringCopy(&Var2, "HT_FMM_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 430;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 62:
			StringCopy(&Var2, "HT_FMM_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 160;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 63:
			StringCopy(&Var2, "HT_FMM_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 200;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 64:
			StringCopy(&Var2, "HT_FMM_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 155;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 65:
			StringCopy(&Var2, "HT_FMM_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 155;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 66:
			StringCopy(&Var2, "HT_FMM_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 165;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 67:
			StringCopy(&Var2, "HT_FMM_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 68:
			StringCopy(&Var2, "HT_FMM_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 69:
			StringCopy(&Var2, "HT_FMM_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 70:
			StringCopy(&Var2, "HT_FMM_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 71:
			StringCopy(&Var2, "HT_FMM_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 72:
			StringCopy(&Var2, "HT_FMM_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 73:
			StringCopy(&Var2, "HT_FMM_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 74:
			StringCopy(&Var2, "HT_FMM_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 75:
			StringCopy(&Var2, "HT_FMM_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 76:
			StringCopy(&Var2, "HT_FMM_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 77:
			StringCopy(&Var2, "HT_FMM_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 78:
			StringCopy(&Var2, "HT_FMM_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 79:
			StringCopy(&Var2, "HT_FMM_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 80:
			StringCopy(&Var2, "HT_FMM_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 100;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 81:
			StringCopy(&Var2, "HT_FMM_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 82:
			StringCopy(&Var2, "HT_FMM_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 83:
			StringCopy(&Var2, "HT_FMM_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 84:
			StringCopy(&Var2, "HT_FMM_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 85:
			StringCopy(&Var2, "HT_FMM_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 86:
			StringCopy(&Var2, "HT_FMM_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 87:
			StringCopy(&Var2, "HT_FMM_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 88:
			StringCopy(&Var2, "HT_FMM_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 89:
			StringCopy(&Var2, "HT_FMM_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 90:
			StringCopy(&Var2, "HT_FMM_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 65;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 91:
			StringCopy(&Var2, "HT_FMM_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 92:
			StringCopy(&Var2, "HT_FMM_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 93:
			StringCopy(&Var2, "HT_FMM_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "HT_FMM_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 95:
			StringCopy(&Var2, "HT_FMM_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 96:
			StringCopy(&Var2, "HT_FMM_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 97:
			StringCopy(&Var2, "HT_FMM_11_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 98:
			StringCopy(&Var2, "HT_FMM_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 99:
			StringCopy(&Var2, "HT_FMM_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 1715;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 100:
			StringCopy(&Var2, "HT_FMM_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 3900;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 101:
			StringCopy(&Var2, "HT_FMM_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 1550;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 102:
			StringCopy(&Var2, "HT_FMM_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 103:
			StringCopy(&Var2, "HT_FMM_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 4250;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 104:
			StringCopy(&Var2, "HT_FMM_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 0;
			iVar11 = 1;
			iVar0 = true;
			break;
		
		case 105:
			StringCopy(&Var2, "HT_FMM_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 4460;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 106:
			StringCopy(&Var2, "HT_FMM_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 4970;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 107:
			StringCopy(&Var2, "HT_FMM_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 290;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 108:
			StringCopy(&Var2, "HT_FMM_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 305;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 109:
			StringCopy(&Var2, "HT_FMM_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 4170;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 110:
			StringCopy(&Var2, "HT_FMM_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 335;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 111:
			StringCopy(&Var2, "HT_FMM_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 4940;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 112:
			StringCopy(&Var2, "HT_FMM_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 275;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 113:
			StringCopy(&Var2, "HT_FMM_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 5000;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 114:
			StringCopy(&Var2, "HT_FMM_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 3620;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 115:
			StringCopy(&Var2, "HT_FMM_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 116:
			StringCopy(&Var2, "HT_FMM_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 25;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 117:
			StringCopy(&Var2, "HT_FMM_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 118:
			StringCopy(&Var2, "HT_FMM_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 119:
			StringCopy(&Var2, "HT_FMM_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 120:
			StringCopy(&Var2, "HT_FMM_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 30;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 121:
			StringCopy(&Var2, "HT_FMM_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 350;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 122:
			StringCopy(&Var2, "HT_FMM_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 35;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 123:
			StringCopy(&Var2, "HT_FMM_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 365;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 124:
			StringCopy(&Var2, "HT_FMM_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 380;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 125:
			StringCopy(&Var2, "HT_FMM_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 595;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 126:
			StringCopy(&Var2, "HT_FMM_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 595;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 127:
			StringCopy(&Var2, "HT_FMM_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 600;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 128:
			StringCopy(&Var2, "HT_FMM_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 590;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 129:
			StringCopy(&Var2, "HT_FMM_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 395;
			iVar8 = 0;
			iVar11 = 1;
			break;
		
		case 130:
			StringCopy(&Var2, "HT_FMM_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 555;
			iVar8 = 0;
			iVar11 = 1;
			break;
	}
	switch (iParam0)
	{
		case 131:
			StringCopy(&Var2, "HE_FMM_16_0", 16);
			iVar6 = 16;
			iVar7 = 0;
			iVar1 = 1060;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 132:
			StringCopy(&Var2, "HE_FMM_16_1", 16);
			iVar6 = 16;
			iVar7 = 1;
			iVar1 = 1400;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 133:
			StringCopy(&Var2, "HE_FMM_16_2", 16);
			iVar6 = 16;
			iVar7 = 2;
			iVar1 = 1315;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 134:
			StringCopy(&Var2, "HE_FMM_16_3", 16);
			iVar6 = 16;
			iVar7 = 3;
			iVar1 = 1230;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 135:
			StringCopy(&Var2, "HE_FMM_16_4", 16);
			iVar6 = 16;
			iVar7 = 4;
			iVar1 = 1145;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 136:
			StringCopy(&Var2, "HE_FMM_16_5", 16);
			iVar6 = 16;
			iVar7 = 5;
			iVar1 = 8450;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 137:
			StringCopy(&Var2, "HE_FMM_16_6", 16);
			iVar6 = 16;
			iVar7 = 6;
			iVar1 = 675;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 138:
			StringCopy(&Var2, "HE_FMM_16_7", 16);
			iVar6 = 16;
			iVar7 = 7;
			iVar1 = 8750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 139:
			StringCopy(&Var2, "HE_FMM_17_0", 16);
			iVar6 = 17;
			iVar7 = 0;
			iVar1 = 975;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 140:
			StringCopy(&Var2, "HE_FMM_17_1", 16);
			iVar6 = 17;
			iVar7 = 1;
			iVar1 = 750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 141:
			StringCopy(&Var2, "HE_FMM_17_2", 16);
			iVar6 = 17;
			iVar7 = 2;
			iVar1 = 865;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 142:
			StringCopy(&Var2, "HE_FMM_17_3", 16);
			iVar6 = 17;
			iVar7 = 3;
			iVar1 = 890;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 143:
			StringCopy(&Var2, "HE_FMM_17_4", 16);
			iVar6 = 17;
			iVar7 = 4;
			iVar1 = 730;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 144:
			StringCopy(&Var2, "HE_FMM_17_5", 16);
			iVar6 = 17;
			iVar7 = 5;
			iVar1 = 650;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 145:
			StringCopy(&Var2, "HE_FMM_17_6", 16);
			iVar6 = 17;
			iVar7 = 6;
			iVar1 = 645;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 146:
			StringCopy(&Var2, "HE_FMM_17_7", 16);
			iVar6 = 17;
			iVar7 = 7;
			iVar1 = 755;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 147:
			StringCopy(&Var2, "HE_FMM_18_0", 16);
			iVar6 = 18;
			iVar7 = 0;
			iVar1 = 13850;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 148:
			StringCopy(&Var2, "HE_FMM_18_1", 16);
			iVar6 = 18;
			iVar7 = 1;
			iVar1 = 2900;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 149:
			StringCopy(&Var2, "HE_FMM_18_2", 16);
			iVar6 = 18;
			iVar7 = 2;
			iVar1 = 2895;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 150:
			StringCopy(&Var2, "HE_FMM_18_3", 16);
			iVar6 = 18;
			iVar7 = 3;
			iVar1 = 12500;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 151:
			StringCopy(&Var2, "HE_FMM_18_4", 16);
			iVar6 = 18;
			iVar7 = 4;
			iVar1 = 15000;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 152:
			StringCopy(&Var2, "HE_FMM_18_5", 16);
			iVar6 = 18;
			iVar7 = 5;
			iVar1 = 14750;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 153:
			StringCopy(&Var2, "HE_FMM_18_6", 16);
			iVar6 = 18;
			iVar7 = 6;
			iVar1 = 13150;
			iVar8 = 0;
			iVar11 = 2;
			break;
		
		case 154:
			StringCopy(&Var2, "HE_FMM_18_7", 16);
			iVar6 = 18;
			iVar7 = 7;
			iVar1 = 2925;
			iVar8 = 0;
			iVar11 = 2;
			break;
	}
	switch (iParam0)
	{
		case 155:
			StringCopy(&Var2, "G_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 156:
			StringCopy(&Var2, "G_FMM_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 157:
			StringCopy(&Var2, "G_FMM_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 158:
			StringCopy(&Var2, "G_FMM_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 159:
			StringCopy(&Var2, "G_FMM_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 160:
			StringCopy(&Var2, "G_FMM_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 161:
			StringCopy(&Var2, "G_FMM_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 162:
			StringCopy(&Var2, "G_FMM_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 163:
			StringCopy(&Var2, "G_FMM_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 164:
			StringCopy(&Var2, "G_FMM_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 165:
			StringCopy(&Var2, "G_FMM_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 50;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 166:
			StringCopy(&Var2, "G_FMM_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 167:
			StringCopy(&Var2, "G_FMM_1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 180;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 168:
			StringCopy(&Var2, "G_FMM_1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 169:
			StringCopy(&Var2, "G_FMM_1_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 170:
			StringCopy(&Var2, "G_FMM_1_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 171:
			StringCopy(&Var2, "G_FMM_1_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 172:
			StringCopy(&Var2, "G_FMM_1_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 173:
			StringCopy(&Var2, "G_FMM_1_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 174:
			StringCopy(&Var2, "G_FMM_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 175:
			StringCopy(&Var2, "G_FMM_2_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 176:
			StringCopy(&Var2, "G_FMM_2_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 380;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 177:
			StringCopy(&Var2, "G_FMM_2_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 178:
			StringCopy(&Var2, "G_FMM_2_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 179:
			StringCopy(&Var2, "G_FMM_2_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 180:
			StringCopy(&Var2, "G_FMM_2_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 181:
			StringCopy(&Var2, "G_FMM_2_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 390;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 182:
			StringCopy(&Var2, "CLO_EXM_G_2_8", 16);
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 950;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 183:
			StringCopy(&Var2, "CLO_EXM_G_2_9", 16);
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 565;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 184:
			StringCopy(&Var2, "CLO_EXM_G_2_10", 16);
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 630;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 185:
			StringCopy(&Var2, "G_FMM_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 70;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 186:
			StringCopy(&Var2, "G_FMM_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 60;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 187:
			StringCopy(&Var2, "G_FMM_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 188:
			StringCopy(&Var2, "G_FMM_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 95;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 189:
			StringCopy(&Var2, "G_FMM_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 190:
			StringCopy(&Var2, "G_FMM_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 191:
			StringCopy(&Var2, "G_FMM_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 192:
			StringCopy(&Var2, "G_FMM_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 90;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 193:
			StringCopy(&Var2, "CLO_EXM_G_3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 650;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 194:
			StringCopy(&Var2, "CLO_EXM_G_3_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 265;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 195:
			StringCopy(&Var2, "CLO_EXM_G_3_10", 16);
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 330;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 196:
			StringCopy(&Var2, "G_FMM_4_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 245;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 197:
			StringCopy(&Var2, "G_FMM_4_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 250;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 198:
			StringCopy(&Var2, "G_FMM_4_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 210;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 199:
			StringCopy(&Var2, "G_FMM_4_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 245;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 200:
			StringCopy(&Var2, "G_FMM_4_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 205;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 201:
			StringCopy(&Var2, "G_FMM_4_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 205;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 202:
			StringCopy(&Var2, "G_FMM_4_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 215;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 203:
			StringCopy(&Var2, "G_FMM_4_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 215;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 204:
			StringCopy(&Var2, "CLO_EXM_G_4_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 995;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 205:
			StringCopy(&Var2, "CLO_EXM_G_4_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 610;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 206:
			StringCopy(&Var2, "CLO_EXM_G_4_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 675;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 207:
			StringCopy(&Var2, "G_FMM_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 4050;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 208:
			StringCopy(&Var2, "G_FMM_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 4060;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 209:
			StringCopy(&Var2, "G_FMM_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 170;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 210:
			StringCopy(&Var2, "G_FMM_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 211:
			StringCopy(&Var2, "G_FMM_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 212:
			StringCopy(&Var2, "G_FMM_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 213:
			StringCopy(&Var2, "G_FMM_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 214:
			StringCopy(&Var2, "G_FMM_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 215:
			StringCopy(&Var2, "CLO_EXM_G_5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 1760;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 216:
			StringCopy(&Var2, "CLO_EXM_G_5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 1375;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 217:
			StringCopy(&Var2, "CLO_EXM_G_5_10", 16);
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 1440;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 218:
			StringCopy(&Var2, "G_FMM_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 219:
			StringCopy(&Var2, "G_FMM_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 220:
			StringCopy(&Var2, "G_FMM_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 221:
			StringCopy(&Var2, "G_FMM_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 222:
			StringCopy(&Var2, "G_FMM_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 223:
			StringCopy(&Var2, "G_FMM_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 224:
			StringCopy(&Var2, "G_FMM_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 225:
			StringCopy(&Var2, "G_FMM_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 226:
			StringCopy(&Var2, "G_FMM_7_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 180;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 227:
			StringCopy(&Var2, "G_FMM_7_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 228:
			StringCopy(&Var2, "G_FMM_7_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 115;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 229:
			StringCopy(&Var2, "G_FMM_7_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 220;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 230:
			StringCopy(&Var2, "G_FMM_7_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 185;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 231:
			StringCopy(&Var2, "G_FMM_7_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 1445;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 232:
			StringCopy(&Var2, "G_FMM_7_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 530;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 233:
			StringCopy(&Var2, "G_FMM_7_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 650;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 234:
			StringCopy(&Var2, "CLO_EXM_G_7_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 1170;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 235:
			StringCopy(&Var2, "CLO_EXM_G_7_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 785;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 236:
			StringCopy(&Var2, "CLO_EXM_G_7_10", 16);
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 850;
			iVar8 = 1;
			iVar11 = 3;
			break;
	}
	switch (iParam0)
	{
		case 237:
			StringCopy(&Var2, "G_FMM_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 4260;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 238:
			StringCopy(&Var2, "G_FMM_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 4310;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 239:
			StringCopy(&Var2, "G_FMM_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 4130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 240:
			StringCopy(&Var2, "G_FMM_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 135;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 241:
			StringCopy(&Var2, "G_FMM_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 120;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 242:
			StringCopy(&Var2, "G_FMM_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 110;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 243:
			StringCopy(&Var2, "G_FMM_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 140;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 244:
			StringCopy(&Var2, "G_FMM_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 130;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 245:
			StringCopy(&Var2, "CLO_EXM_G_8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 1885;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 246:
			StringCopy(&Var2, "CLO_EXM_G_8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 1500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 247:
			StringCopy(&Var2, "CLO_EXM_G_8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 1565;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 248:
			StringCopy(&Var2, "G_FMM_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 249:
			StringCopy(&Var2, "G_FMM_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 250:
			StringCopy(&Var2, "G_FMM_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 251:
			StringCopy(&Var2, "G_FMM_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 252:
			StringCopy(&Var2, "G_FMM_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 253:
			StringCopy(&Var2, "G_FMM_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 4290;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 254:
			StringCopy(&Var2, "G_FMM_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 4150;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 255:
			StringCopy(&Var2, "G_FMM_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 4295;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 256:
			StringCopy(&Var2, "CLO_EXM_G_9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 2315;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 257:
			StringCopy(&Var2, "CLO_EXM_G_9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 1930;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 258:
			StringCopy(&Var2, "CLO_EXM_G_9_10", 16);
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 1995;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 259:
			StringCopy(&Var2, "G_FMM_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 6240;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 260:
			StringCopy(&Var2, "G_FMM_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 4955;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 261:
			StringCopy(&Var2, "G_FMM_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 5590;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 262:
			StringCopy(&Var2, "G_FMM_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 4920;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 263:
			StringCopy(&Var2, "G_FMM_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 4990;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 264:
			StringCopy(&Var2, "G_FMM_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 4780;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 265:
			StringCopy(&Var2, "G_FMM_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 4775;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 266:
			StringCopy(&Var2, "G_FMM_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 4800;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 267:
			StringCopy(&Var2, "CLO_EXM_G_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 2835;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 268:
			StringCopy(&Var2, "CLO_EXM_G_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 2450;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 269:
			StringCopy(&Var2, "CLO_EXM_G_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 2515;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 270:
			StringCopy(&Var2, "G_FMM_11_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 271:
			StringCopy(&Var2, "G_FMM_11_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 272:
			StringCopy(&Var2, "G_FMM_11_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 273:
			StringCopy(&Var2, "G_FMM_11_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 274:
			StringCopy(&Var2, "G_FMM_11_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 275:
			StringCopy(&Var2, "G_FMM_11_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 277:
			StringCopy(&Var2, "G_FMM_11_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 278:
			StringCopy(&Var2, "G_FMM_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 385;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 279:
			StringCopy(&Var2, "G_FMM_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 310;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 280:
			StringCopy(&Var2, "G_FMM_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 3655;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 281:
			StringCopy(&Var2, "G_FMM_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 4055;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 282:
			StringCopy(&Var2, "G_FMM_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 3595;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 283:
			StringCopy(&Var2, "G_FMM_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 3605;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 284:
			StringCopy(&Var2, "G_FMM_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 3645;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 285:
			StringCopy(&Var2, "G_FMM_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 320;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 286:
			StringCopy(&Var2, "CLO_EXM_G_12_8", 16);
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 2820;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 287:
			StringCopy(&Var2, "CLO_EXM_G_12_9", 16);
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 2435;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 288:
			StringCopy(&Var2, "CLO_EXM_G_12_10", 16);
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 2500;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 289:
			StringCopy(&Var2, "G_FMM_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 230;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 290:
			StringCopy(&Var2, "G_FMM_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 1605;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 291:
			StringCopy(&Var2, "G_FMM_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 2230;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 292:
			StringCopy(&Var2, "G_FMM_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 220;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 293:
			StringCopy(&Var2, "G_FMM_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 185;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 294:
			StringCopy(&Var2, "G_FMM_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 2070;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 295:
			StringCopy(&Var2, "G_FMM_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 2205;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 296:
			StringCopy(&Var2, "G_FMM_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 1690;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 297:
			StringCopy(&Var2, "CLO_EXM_G_13_8", 16);
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 2715;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 298:
			StringCopy(&Var2, "CLO_EXM_G_13_9", 16);
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 2330;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 299:
			StringCopy(&Var2, "CLO_EXM_G_13_10", 16);
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 2395;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 300:
			StringCopy(&Var2, "G_FMM_14_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 301:
			StringCopy(&Var2, "G_FMM_14_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 302:
			StringCopy(&Var2, "G_FMM_14_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 303:
			StringCopy(&Var2, "G_FMM_14_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 304:
			StringCopy(&Var2, "G_FMM_14_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 305:
			StringCopy(&Var2, "G_FMM_14_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 306:
			StringCopy(&Var2, "G_FMM_14_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 307:
			StringCopy(&Var2, "G_FMM_14_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 0;
			iVar8 = 1;
			iVar11 = 3;
			iVar0 = true;
			break;
		
		case 308:
			StringCopy(&Var2, "G_FMM_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 515;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 309:
			StringCopy(&Var2, "G_FMM_15_1", 16);
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 60;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 310:
			StringCopy(&Var2, "G_FMM_15_2", 16);
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 65;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 311:
			StringCopy(&Var2, "G_FMM_15_3", 16);
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 95;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 312:
			StringCopy(&Var2, "G_FMM_15_4", 16);
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 85;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 313:
			StringCopy(&Var2, "G_FMM_15_5", 16);
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 75;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 314:
			StringCopy(&Var2, "G_FMM_15_6", 16);
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 485;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 315:
			StringCopy(&Var2, "G_FMM_15_7", 16);
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 545;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 316:
			StringCopy(&Var2, "CLO_EXM_G_15_8", 16);
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 645;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 317:
			StringCopy(&Var2, "CLO_EXM_G_15_9", 16);
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 260;
			iVar8 = 1;
			iVar11 = 3;
			break;
		
		case 318:
			StringCopy(&Var2, "CLO_EXM_G_15_10", 16);
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 325;
			iVar8 = 1;
			iVar11 = 3;
			break;
	}
	switch (iParam0)
	{
		case 319:
			StringCopy(&Var2, "W_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 5000;
			iVar8 = 6;
			iVar11 = 4;
			break;
		
		case 320:
			StringCopy(&Var2, "W_FMM_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 321:
			StringCopy(&Var2, "W_FMM_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 322:
			StringCopy(&Var2, "W_FMM_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 323:
			StringCopy(&Var2, "W_FMM_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 324:
			StringCopy(&Var2, "W_FMM_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 695;
			iVar8 = 6;
			iVar11 = 4;
			break;
		
		case 325:
			StringCopy(&Var2, "W_FMM_1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
		
		case 326:
			StringCopy(&Var2, "W_FMM_1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 0;
			iVar8 = 6;
			iVar11 = 4;
			iVar0 = true;
			break;
	}
	if (iVar11 == 1)
	{
		iVar12 = (iParam0 - 10);
		if (iVar12 >= 0 && iVar12 < 121)
		{
			if (iVar12 > 8)
			{
				iVar12 = (iVar12 - 1);
			}
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_952[iVar12]) * Global_275816.f_18));
		}
	}
	else if (iVar11 == 2)
	{
		iVar13 = (iParam0 - 131);
		if (iVar13 >= 0 && iVar13 < 24)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1073[iVar13]) * Global_275816.f_19));
		}
	}
	else if (iVar11 == 3)
	{
		iVar14 = (iParam0 - 155);
		if (iVar14 >= 0 && iVar14 < 128)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1098[iVar14]) * Global_275816.f_20));
		}
	}
	else if (iVar11 == 4)
	{
		iVar15 = (iParam0 - 319);
		if (iVar15 >= 0 && iVar15 < 15)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_1227[iVar15]) * Global_275816.f_21));
		}
	}
	if (iParam0 >= 327)
	{
		Global_69311[0 /*14*/].f_5 = 3;
		func_24(iVar10, iParam0, 327);
		if (Global_69311[0 /*14*/].f_7 > 0)
		{
			if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, -1757550583, 1))
			{
				Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_18));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 97230661, 1))
			{
				Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_20));
			}
			else if (dlc1::_0x341DE7ED1D2A1BFD(Global_2621444, 1147826474, 1))
			{
				Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_21));
			}
		}
	}
	else
	{
		func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_239(int iParam0)//Position - 0x439E8
{
	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;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "D_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			StringCopy(&Var2, "D_FMM_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 2:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 3:
			StringCopy(&Var2, "D_FMM_1_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 4:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		case 5:
			StringCopy(&Var2, "D_FMM_1_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 5000;
			break;
		
		case 6:
			StringCopy(&Var2, "D_FMM_2_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 10000;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 3;
			func_24(iVar10, iParam0, 7);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_240(int iParam0)//Position - 0x43B07
{
	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;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 4:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 5:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 6:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 7:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 8:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 9:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 10:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 11:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 12:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 13:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 14:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 15:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 16:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 17:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 18:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 21:
			iVar6 = 4;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 22:
			iVar6 = 4;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 23:
			iVar6 = 4;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 24:
			iVar6 = 4;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 25:
			iVar6 = 4;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 26:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 27:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 28:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 29:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 30:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 31:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 32:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 33:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 34:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 35:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 36:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 37:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 38:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 39:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 40:
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 41:
			iVar6 = 10;
			iVar7 = 0;
			if (Global_262145.f_4165 != -1)
			{
				iVar1 = Global_262145.f_4165;
			}
			else
			{
				iVar1 = 115;
			}
			break;
		
		case 42:
			iVar6 = 10;
			iVar7 = 1;
			if (Global_262145.f_4166 != -1)
			{
				iVar1 = Global_262145.f_4166;
			}
			else
			{
				iVar1 = 125;
			}
			break;
		
		case 43:
			iVar6 = 10;
			iVar7 = 2;
			if (Global_262145.f_4167 != -1)
			{
				iVar1 = Global_262145.f_4167;
			}
			else
			{
				iVar1 = 130;
			}
			break;
		
		case 44:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 46:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 48:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 49:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 50:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 51:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 52:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 53:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 54:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 55:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 56:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 57:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 58:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 59:
			iVar6 = 11;
			iVar7 = 2;
			if (Global_262145.f_4171 != -1)
			{
				iVar1 = Global_262145.f_4171;
			}
			else
			{
				iVar1 = 725;
			}
			break;
		
		case 60:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 61:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 62:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 63:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 64:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 65:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 66:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 67:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 68:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 69:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 12;
			iVar7 = 0;
			if (Global_262145.f_4168 != -1)
			{
				iVar1 = Global_262145.f_4168;
			}
			else
			{
				iVar1 = 65;
			}
			break;
		
		case 74:
			iVar6 = 12;
			iVar7 = 1;
			if (Global_262145.f_4169 != -1)
			{
				iVar1 = Global_262145.f_4169;
			}
			else
			{
				iVar1 = 65;
			}
			break;
		
		case 75:
			iVar6 = 12;
			iVar7 = 2;
			if (Global_262145.f_4170 != -1)
			{
				iVar1 = Global_262145.f_4170;
			}
			else
			{
				iVar1 = 95;
			}
			break;
		
		case 76:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 78:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 79:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 80:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 81:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 82:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 83:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 84:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 88:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 89:
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 90:
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 91:
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 3;
			func_24(iVar10, iParam0, 92);
			if (Global_69311[0 /*14*/].f_7 > 0)
			{
				Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_57));
			}
			return;
			break;
	}
	iVar1 = system::round((system::to_float(iVar1) * Global_275816.f_57));
	StringCopy(&Var2, "T_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_241(int iParam0)//Position - 0x44400
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 1;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 965;
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 960;
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 9500;
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 975;
			break;
		
		case 5:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 1185;
			break;
		
		case 6:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 15000;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 1115;
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 1105;
			break;
		
		case 9:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 25000;
			break;
		
		case 10:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 510;
			break;
		
		case 11:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 530;
			break;
		
		case 12:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 5500;
			break;
		
		case 13:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 535;
			break;
		
		case 14:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 1510;
			break;
		
		case 15:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 1530;
			break;
		
		case 16:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 14500;
			break;
		
		case 17:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 13000;
			break;
		
		case 18:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 8000;
			break;
		
		case 19:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 1265;
			break;
		
		case 20:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 8500;
			break;
		
		case 21:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 1210;
			break;
		
		case 22:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 2360;
			break;
		
		case 23:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 22500;
			break;
		
		case 24:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 2375;
			break;
		
		case 25:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 2485;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 3;
			func_24(iVar10, iParam0, 26);
			return;
			break;
	}
	StringCopy(&Var2, "M_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	iVar11 = (iParam0 - 1);
	if (iVar11 >= 0 && iVar11 < 26)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_925[iVar11]) * Global_275816.f_22));
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_242(int iParam0)//Position - 0x446B6
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 6;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 300;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 285;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 180;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 190;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 190;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 165;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 200;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 480;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 155;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 350;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 290;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 165;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 165;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 170;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 155;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 165;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 165;
			break;
	}
	switch (iParam0)
	{
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 160;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 205;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 560;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 275;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 290;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 300;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 360;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 270;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 265;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 295;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 355;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 340;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 285;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 310;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 350;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 305;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 280;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 320;
			break;
	}
	switch (iParam0)
	{
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 110;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 125;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 50;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 35;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 50;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 65;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 65;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 108:
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 109:
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 110:
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 111:
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 112:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 165;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 165;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 185;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 175;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 185;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 460;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 185;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 190;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 165;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 165;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 185;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 175;
			break;
		
		case 124:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 235;
			break;
		
		case 125:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 445;
			break;
		
		case 126:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 185;
			break;
		
		case 127:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 190;
			break;
	}
	switch (iParam0)
	{
		case 128:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 175;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 215;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 225;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 230;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 235;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 215;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 205;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 245;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 225;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 215;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 225;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 230;
			break;
		
		case 140:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 235;
			break;
		
		case 141:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 215;
			break;
		
		case 142:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 425;
			break;
		
		case 143:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 245;
			break;
		
		case 144:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 225;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 135;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 130;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 110;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 140;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 95;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 100;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 110;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 95;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 105;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 105;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 115;
			break;
		
		case 156:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 115;
			break;
		
		case 157:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 115;
			break;
		
		case 158:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 500;
			break;
		
		case 159:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 440;
			break;
	}
	switch (iParam0)
	{
		case 160:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 1090;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 600;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 172:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 1865;
			break;
		
		case 173:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 174:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 490;
			break;
		
		case 175:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 176:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 470;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 188:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 1795;
			break;
		
		case 189:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 190:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 1830;
			break;
		
		case 191:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 455;
			break;
	}
	switch (iParam0)
	{
		case 192:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 455;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 2110;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 380;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 1655;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 2500;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 415;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 730;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 445;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 425;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 410;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 480;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 485;
			break;
		
		case 204:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 480;
			break;
		
		case 205:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 395;
			break;
		
		case 206:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 495;
			break;
		
		case 207:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 2090;
			break;
		
		case 208:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 220:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 221:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 222:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 223:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 224:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 450;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 685;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 420;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 365;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 465;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 405;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 400;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 440;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 385;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 435;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 375;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 390;
			break;
		
		case 236:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 475;
			break;
		
		case 237:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 430;
			break;
		
		case 238:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 490;
			break;
		
		case 239:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 490;
			break;
		
		case 240:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 615;
			break;
		
		case 241:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 315;
			break;
		
		case 242:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 415;
			break;
		
		case 243:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 425;
			break;
		
		case 244:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 435;
			break;
		
		case 245:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 445;
			break;
		
		case 246:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 640;
			break;
		
		case 247:
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 460;
			break;
		
		case 248:
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 465;
			break;
		
		case 249:
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 745;
			break;
		
		case 250:
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 845;
			break;
		
		case 251:
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 1420;
			break;
		
		case 252:
			iVar6 = 15;
			iVar7 = 12;
			iVar1 = 475;
			break;
		
		case 253:
			iVar6 = 15;
			iVar7 = 13;
			iVar1 = 470;
			break;
		
		case 254:
			iVar6 = 15;
			iVar7 = 14;
			iVar1 = 1000;
			break;
		
		case 255:
			iVar6 = 15;
			iVar7 = 15;
			iVar1 = 690;
			break;
	}
	iVar11 = iParam0;
	if (iVar11 >= 0 && iVar11 < 256)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_668[iVar11]) * Global_275816.f_17));
	}
	StringCopy(&Var2, "F_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	if (iParam0 >= 256)
	{
		Global_69311[0 /*14*/].f_5 = 3;
		func_24(iVar10, iParam0, 256);
		if (Global_69311[0 /*14*/].f_7 > 0)
		{
			Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_17));
		}
	}
	else
	{
		func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_243(int iParam0)//Position - 0x45CF2
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 4;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 335;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 460;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 455;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 470;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 650;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 385;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 455;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 2150;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 375;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 2190;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 285;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 295;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 445;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 2240;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 465;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 1740;
			break;
		
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 1415;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 325;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 345;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 355;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 395;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 315;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 275;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 265;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 305;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 255;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 235;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 245;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 215;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 1865;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 450;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 415;
			break;
		
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 100;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 55;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 100;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 65;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 65;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 100;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 100;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 65;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 90;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 75;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 65;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 100;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 100;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 225;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 205;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 215;
			break;
		
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 490;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 485;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 2500;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 485;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 100;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 105;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 80;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 100;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 95;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 100;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 90;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 85;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 80;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 80;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 100;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 95;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 440;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 380;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 80;
			break;
		
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 115;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 140;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 135;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 255;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 108:
			iVar6 = 6;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 109:
			iVar6 = 6;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 110:
			iVar6 = 6;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 111:
			iVar6 = 6;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 112:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 325;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 115;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 135;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 125;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 120;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 130;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 110;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 345;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 745;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 120;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 135;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 345;
			break;
		
		case 124:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 130;
			break;
		
		case 125:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 140;
			break;
		
		case 126:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 130;
			break;
		
		case 127:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 660;
			break;
		
		case 128:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 150;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 140:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 141:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 142:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 150;
			break;
		
		case 143:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 144:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 75;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 90;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 145;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 150;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 110;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 95;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 155;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 255;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 165;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 1150;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 1150;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 1210;
			break;
		
		case 156:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 1125;
			break;
		
		case 157:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 1135;
			break;
		
		case 158:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 1145;
			break;
		
		case 159:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 1145;
			break;
		
		case 160:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 845;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 480;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 475;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 172:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 173:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 174:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 175:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 176:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 188:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 189:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 190:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 191:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 192:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 220;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 100;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 65;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 50;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 204:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 100;
			break;
		
		case 205:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 206:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 207:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 208:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 460;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 475;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 470;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 220:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 221:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 222:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 223:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 224:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 50;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 100;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 100;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 236:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 100;
			break;
		
		case 237:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 238:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 239:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 240:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 90;
			break;
		
		case 241:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 105;
			break;
		
		case 242:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 100;
			break;
		
		case 243:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 240;
			break;
		
		case 244:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 95;
			break;
		
		case 245:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 95;
			break;
		
		case 246:
			iVar6 = 15;
			iVar7 = 6;
			iVar1 = 100;
			break;
		
		case 247:
			iVar6 = 15;
			iVar7 = 7;
			iVar1 = 105;
			break;
		
		case 248:
			iVar6 = 15;
			iVar7 = 8;
			iVar1 = 100;
			break;
		
		case 249:
			iVar6 = 15;
			iVar7 = 9;
			iVar1 = 295;
			break;
		
		case 250:
			iVar6 = 15;
			iVar7 = 10;
			iVar1 = 250;
			break;
		
		case 251:
			iVar6 = 15;
			iVar7 = 11;
			iVar1 = 285;
			break;
		
		case 252:
			iVar6 = 15;
			iVar7 = 12;
			iVar1 = 275;
			break;
		
		case 253:
			iVar6 = 15;
			iVar7 = 13;
			iVar1 = 105;
			break;
		
		case 254:
			iVar6 = 15;
			iVar7 = 14;
			iVar1 = 100;
			break;
		
		case 255:
			iVar6 = 15;
			iVar7 = 15;
			iVar1 = 95;
			break;
	}
	StringCopy(&Var2, "L_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	iVar11 = iParam0;
	if (iVar11 >= 0 && iVar11 < 256)
	{
		iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_173[iVar11]) * Global_275816.f_15));
	}
	if (iParam0 >= 256)
	{
		Global_69311[0 /*14*/].f_5 = 3;
		func_24(iVar10, iParam0, 256);
		if (Global_69311[0 /*14*/].f_7 > 0)
		{
			Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_15));
		}
	}
	else
	{
		func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_244(int iParam0)//Position - 0x47324
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 3;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 3:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 4:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 5:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 6:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 8:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 9:
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 10:
			iVar6 = 10;
			iVar7 = 0;
			break;
		
		case 11:
			iVar6 = 11;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 12;
			iVar7 = 0;
			break;
		
		case 13:
			iVar6 = 13;
			iVar7 = 0;
			break;
		
		case 14:
			iVar6 = 14;
			iVar7 = 0;
			break;
		
		case 15:
			iVar6 = 15;
			iVar7 = 0;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 3;
			func_24(iVar10, iParam0, 16);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_245(int iParam0)//Position - 0x47479
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 9;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			break;
		
		case 6:
			iVar6 = 2;
			iVar7 = 0;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 1;
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 2;
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 3;
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 4;
			break;
		
		case 11:
			iVar6 = 3;
			iVar7 = 0;
			break;
		
		case 12:
			iVar6 = 3;
			iVar7 = 1;
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 2;
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 3;
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 4;
			break;
		
		case 16:
			iVar6 = 4;
			iVar7 = 0;
			break;
		
		case 17:
			iVar6 = 4;
			iVar7 = 1;
			break;
		
		case 18:
			iVar6 = 4;
			iVar7 = 2;
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 3;
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 4;
			break;
		
		case 21:
			iVar6 = 5;
			iVar7 = 0;
			break;
		
		case 22:
			iVar6 = 5;
			iVar7 = 1;
			break;
		
		case 23:
			iVar6 = 5;
			iVar7 = 2;
			break;
		
		case 24:
			iVar6 = 5;
			iVar7 = 3;
			break;
		
		case 25:
			iVar6 = 5;
			iVar7 = 4;
			break;
		
		case 26:
			iVar6 = 6;
			iVar7 = 0;
			break;
		
		case 27:
			iVar6 = 6;
			iVar7 = 1;
			break;
		
		case 28:
			iVar6 = 6;
			iVar7 = 2;
			break;
		
		case 29:
			iVar6 = 6;
			iVar7 = 3;
			break;
		
		case 30:
			iVar6 = 6;
			iVar7 = 4;
			break;
		
		case 31:
			iVar6 = 7;
			iVar7 = 0;
			break;
		
		case 32:
			iVar6 = 7;
			iVar7 = 1;
			break;
		
		case 33:
			iVar6 = 7;
			iVar7 = 2;
			break;
		
		case 34:
			iVar6 = 7;
			iVar7 = 3;
			break;
		
		case 35:
			iVar6 = 7;
			iVar7 = 4;
			break;
		
		case 36:
			iVar6 = 8;
			iVar7 = 0;
			break;
		
		case 37:
			iVar6 = 8;
			iVar7 = 1;
			break;
		
		case 38:
			iVar6 = 8;
			iVar7 = 2;
			break;
		
		case 39:
			iVar6 = 8;
			iVar7 = 3;
			break;
		
		case 40:
			iVar6 = 8;
			iVar7 = 4;
			break;
		
		case 41:
			iVar6 = 9;
			iVar7 = 0;
			break;
		
		case 42:
			iVar6 = 9;
			iVar7 = 1;
			break;
		
		case 43:
			iVar6 = 9;
			iVar7 = 2;
			break;
		
		case 44:
			iVar6 = 9;
			iVar7 = 3;
			break;
		
		case 45:
			iVar6 = 9;
			iVar7 = 4;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 3;
			func_24(iVar10, iParam0, 46);
			return;
			break;
	}
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &sVar2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_246(int iParam0)//Position - 0x47793
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 8;
	switch (iParam0)
	{
		case 0:
			StringCopy(&Var2, "U_FMM_0_0", 16);
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 1:
			StringCopy(&Var2, "U_FMM_0_1", 16);
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 210;
			break;
		
		case 2:
			StringCopy(&Var2, "U_FMM_0_2", 16);
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 3:
			StringCopy(&Var2, "U_FMM_0_3", 16);
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 4:
			StringCopy(&Var2, "U_FMM_0_4", 16);
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 210;
			break;
		
		case 5:
			StringCopy(&Var2, "U_FMM_0_5", 16);
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 200;
			break;
		
		case 6:
			StringCopy(&Var2, "U_FMM_0_6", 16);
			iVar6 = 0;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 7:
			StringCopy(&Var2, "U_FMM_0_7", 16);
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 8:
			StringCopy(&Var2, "U_FMM_0_8", 16);
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 220;
			break;
		
		case 9:
			StringCopy(&Var2, "U_FMM_0_9", 16);
			iVar6 = 0;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 10:
			StringCopy(&Var2, "U_FMM_0_10", 16);
			iVar6 = 0;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 11:
			StringCopy(&Var2, "U_FMM_0_11", 16);
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 220;
			break;
		
		case 12:
			StringCopy(&Var2, "U_FMM_0_12", 16);
			iVar6 = 0;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 13:
			StringCopy(&Var2, "U_FMM_0_13", 16);
			iVar6 = 0;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 14:
			StringCopy(&Var2, "U_FMM_0_14", 16);
			iVar6 = 0;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 15:
			StringCopy(&Var2, "U_FMM_0_15", 16);
			iVar6 = 0;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 16:
			StringCopy(&Var2, "U_FMM_1_0", 16);
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 17:
			StringCopy(&Var2, "U_FMM_1_1", 16);
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 18:
			StringCopy(&Var2, "U_FMM_1_2", 16);
			iVar6 = 1;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 19:
			StringCopy(&Var2, "U_FMM_1_3", 16);
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 40;
			break;
		
		case 20:
			StringCopy(&Var2, "U_FMM_1_4", 16);
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 315;
			break;
		
		case 21:
			StringCopy(&Var2, "U_FMM_1_5", 16);
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 215;
			break;
		
		case 22:
			StringCopy(&Var2, "U_FMM_1_6", 16);
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 265;
			break;
		
		case 23:
			StringCopy(&Var2, "U_FMM_1_7", 16);
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 24:
			StringCopy(&Var2, "U_FMM_1_8", 16);
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 205;
			break;
		
		case 25:
			StringCopy(&Var2, "U_FMM_1_9", 16);
			iVar6 = 1;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 26:
			StringCopy(&Var2, "U_FMM_1_10", 16);
			iVar6 = 1;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 27:
			StringCopy(&Var2, "U_FMM_1_11", 16);
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 28:
			StringCopy(&Var2, "U_FMM_1_12", 16);
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 55;
			break;
		
		case 29:
			StringCopy(&Var2, "U_FMM_1_13", 16);
			iVar6 = 1;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 30:
			StringCopy(&Var2, "U_FMM_1_14", 16);
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 170;
			break;
		
		case 31:
			StringCopy(&Var2, "U_FMM_1_15", 16);
			iVar6 = 1;
			iVar7 = 15;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 32:
			StringCopy(&Var2, "U_FMM_0_0", 16);
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 33:
			StringCopy(&Var2, "U_FMM_0_1", 16);
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 210;
			break;
		
		case 34:
			StringCopy(&Var2, "U_FMM_0_2", 16);
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 35:
			StringCopy(&Var2, "U_FMM_0_3", 16);
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 36:
			StringCopy(&Var2, "U_FMM_0_4", 16);
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 210;
			break;
		
		case 37:
			StringCopy(&Var2, "U_FMM_0_5", 16);
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 200;
			break;
		
		case 38:
			StringCopy(&Var2, "U_FMM_0_6", 16);
			iVar6 = 2;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 39:
			StringCopy(&Var2, "U_FMM_0_7", 16);
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 40:
			StringCopy(&Var2, "U_FMM_0_8", 16);
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 220;
			break;
		
		case 41:
			StringCopy(&Var2, "U_FMM_0_9", 16);
			iVar6 = 2;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 42:
			StringCopy(&Var2, "U_FMM_0_10", 16);
			iVar6 = 2;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 43:
			StringCopy(&Var2, "U_FMM_0_11", 16);
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 220;
			break;
		
		case 44:
			StringCopy(&Var2, "U_FMM_0_12", 16);
			iVar6 = 2;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 45:
			StringCopy(&Var2, "U_FMM_0_13", 16);
			iVar6 = 2;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 46:
			StringCopy(&Var2, "U_FMM_0_14", 16);
			iVar6 = 2;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 47:
			StringCopy(&Var2, "U_FMM_0_15", 16);
			iVar6 = 2;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 48:
			StringCopy(&Var2, "SP_FMM_3_0", 16);
			iVar6 = 3;
			iVar7 = 0;
			if (Global_262145.f_4174 != -1)
			{
				iVar1 = Global_262145.f_4174;
			}
			else
			{
				iVar1 = 165;
			}
			break;
		
		case 49:
			StringCopy(&Var2, "SP_FMM_3_1", 16);
			iVar6 = 3;
			iVar7 = 1;
			if (Global_262145.f_4182 != -1)
			{
				iVar1 = Global_262145.f_4182;
			}
			else
			{
				iVar1 = 120;
			}
			break;
		
		case 50:
			StringCopy(&Var2, "SP_FMM_3_2", 16);
			iVar6 = 3;
			iVar7 = 2;
			if (Global_262145.f_4177 != -1)
			{
				iVar1 = Global_262145.f_4177;
			}
			else
			{
				iVar1 = 115;
			}
			break;
		
		case 51:
			StringCopy(&Var2, "SP_FMM_3_3", 16);
			iVar6 = 3;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 52:
			StringCopy(&Var2, "SP_FMM_3_4", 16);
			iVar6 = 3;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 53:
			StringCopy(&Var2, "SP_FMM_3_5", 16);
			iVar6 = 3;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 54:
			StringCopy(&Var2, "SP_FMM_3_6", 16);
			iVar6 = 3;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 55:
			StringCopy(&Var2, "SP_FMM_3_7", 16);
			iVar6 = 3;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 56:
			StringCopy(&Var2, "SP_FMM_3_8", 16);
			iVar6 = 3;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 57:
			StringCopy(&Var2, "SP_FMM_3_9", 16);
			iVar6 = 3;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 58:
			StringCopy(&Var2, "SP_FMM_3_10", 16);
			iVar6 = 3;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 59:
			StringCopy(&Var2, "SP_FMM_3_11", 16);
			iVar6 = 3;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 60:
			StringCopy(&Var2, "SP_FMM_3_12", 16);
			iVar6 = 3;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 61:
			StringCopy(&Var2, "SP_FMM_3_13", 16);
			iVar6 = 3;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 62:
			StringCopy(&Var2, "SP_FMM_3_14", 16);
			iVar6 = 3;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 63:
			StringCopy(&Var2, "SP_FMM_3_15", 16);
			iVar6 = 3;
			iVar7 = 15;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 64:
			StringCopy(&Var2, "SP_FMM_3_0", 16);
			iVar6 = 4;
			iVar7 = 0;
			if (Global_262145.f_4174 != -1)
			{
				iVar1 = Global_262145.f_4174;
			}
			else
			{
				iVar1 = 165;
			}
			break;
		
		case 65:
			StringCopy(&Var2, "SP_FMM_3_1", 16);
			iVar6 = 4;
			iVar7 = 1;
			if (Global_262145.f_4182 != -1)
			{
				iVar1 = Global_262145.f_4182;
			}
			else
			{
				iVar1 = 120;
			}
			break;
		
		case 66:
			StringCopy(&Var2, "SP_FMM_3_2", 16);
			iVar6 = 4;
			iVar7 = 2;
			if (Global_262145.f_4177 != -1)
			{
				iVar1 = Global_262145.f_4177;
			}
			else
			{
				iVar1 = 115;
			}
			break;
		
		case 67:
			StringCopy(&Var2, "SP_FMM_3_3", 16);
			iVar6 = 4;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 68:
			StringCopy(&Var2, "SP_FMM_3_4", 16);
			iVar6 = 4;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 69:
			StringCopy(&Var2, "SP_FMM_3_5", 16);
			iVar6 = 4;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 70:
			StringCopy(&Var2, "SP_FMM_3_6", 16);
			iVar6 = 4;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 71:
			StringCopy(&Var2, "SP_FMM_3_7", 16);
			iVar6 = 4;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 72:
			StringCopy(&Var2, "SP_FMM_3_8", 16);
			iVar6 = 4;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 73:
			StringCopy(&Var2, "SP_FMM_3_9", 16);
			iVar6 = 4;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 74:
			StringCopy(&Var2, "SP_FMM_3_10", 16);
			iVar6 = 4;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 75:
			StringCopy(&Var2, "SP_FMM_3_11", 16);
			iVar6 = 4;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 76:
			StringCopy(&Var2, "SP_FMM_3_12", 16);
			iVar6 = 4;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 77:
			StringCopy(&Var2, "SP_FMM_3_13", 16);
			iVar6 = 4;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 78:
			StringCopy(&Var2, "SP_FMM_3_14", 16);
			iVar6 = 4;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 79:
			StringCopy(&Var2, "SP_FMM_3_15", 16);
			iVar6 = 4;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 80:
			StringCopy(&Var2, "U_FMM_5_0", 16);
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 80;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[80]));
			break;
		
		case 81:
			StringCopy(&Var2, "U_FMM_5_1", 16);
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 45;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[81]));
			break;
		
		case 82:
			StringCopy(&Var2, "U_FMM_5_2", 16);
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 50;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[82]));
			break;
		
		case 83:
			StringCopy(&Var2, "U_FMM_5_3", 16);
			iVar6 = 5;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 84:
			StringCopy(&Var2, "U_FMM_5_4", 16);
			iVar6 = 5;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 85:
			StringCopy(&Var2, "U_FMM_5_5", 16);
			iVar6 = 5;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 86:
			StringCopy(&Var2, "U_FMM_5_6", 16);
			iVar6 = 5;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 87:
			StringCopy(&Var2, "U_FMM_5_7", 16);
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 50;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[87]));
			break;
		
		case 88:
			StringCopy(&Var2, "U_FMM_5_8", 16);
			iVar6 = 5;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 89:
			StringCopy(&Var2, "U_FMM_5_9", 16);
			iVar6 = 5;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 90:
			StringCopy(&Var2, "U_FMM_5_10", 16);
			iVar6 = 5;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 91:
			StringCopy(&Var2, "U_FMM_5_11", 16);
			iVar6 = 5;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 92:
			StringCopy(&Var2, "U_FMM_5_12", 16);
			iVar6 = 5;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 93:
			StringCopy(&Var2, "U_FMM_5_13", 16);
			iVar6 = 5;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 94:
			StringCopy(&Var2, "U_FMM_5_14", 16);
			iVar6 = 5;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 95:
			StringCopy(&Var2, "U_FMM_5_15", 16);
			iVar6 = 5;
			iVar7 = 15;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 96:
			StringCopy(&Var2, "SP_FMM_6_0", 16);
			iVar6 = 6;
			iVar7 = 0;
			if (Global_262145.f_4195 != -1)
			{
				iVar1 = Global_262145.f_4195;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 97:
			StringCopy(&Var2, "SP_FMM_6_1", 16);
			iVar6 = 6;
			iVar7 = 1;
			if (Global_262145.f_4193 != -1)
			{
				iVar1 = Global_262145.f_4193;
			}
			else
			{
				iVar1 = 415;
			}
			break;
		
		case 98:
			StringCopy(&Var2, "SP_FMM_6_2", 16);
			iVar6 = 6;
			iVar7 = 2;
			if (Global_262145.f_4173 != -1)
			{
				iVar1 = Global_262145.f_4173;
			}
			else
			{
				iVar1 = 440;
			}
			break;
		
		case 99:
			StringCopy(&Var2, "SP_FMM_6_3", 16);
			iVar6 = 6;
			iVar7 = 3;
			if (Global_262145.f_4187 != -1)
			{
				iVar1 = Global_262145.f_4187;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 100:
			StringCopy(&Var2, "SP_FMM_6_4", 16);
			iVar6 = 6;
			iVar7 = 4;
			if (Global_262145.f_4172 != -1)
			{
				iVar1 = Global_262145.f_4172;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 101:
			StringCopy(&Var2, "SP_FMM_6_5", 16);
			iVar6 = 6;
			iVar7 = 5;
			if (Global_262145.f_4189 != -1)
			{
				iVar1 = Global_262145.f_4189;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 102:
			StringCopy(&Var2, "SP_FMM_6_6", 16);
			iVar6 = 6;
			iVar7 = 6;
			if (Global_262145.f_4192 != -1)
			{
				iVar1 = Global_262145.f_4192;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 103:
			StringCopy(&Var2, "SP_FMM_6_7", 16);
			iVar6 = 6;
			iVar7 = 7;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 104:
			StringCopy(&Var2, "SP_FMM_6_8", 16);
			iVar6 = 6;
			iVar7 = 8;
			if (Global_262145.f_4181 != -1)
			{
				iVar1 = Global_262145.f_4181;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 105:
			StringCopy(&Var2, "SP_FMM_6_9", 16);
			iVar6 = 6;
			iVar7 = 9;
			if (Global_262145.f_4186 != -1)
			{
				iVar1 = Global_262145.f_4186;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 106:
			StringCopy(&Var2, "SP_FMM_6_10", 16);
			iVar6 = 6;
			iVar7 = 10;
			if (Global_262145.f_4184 != -1)
			{
				iVar1 = Global_262145.f_4184;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 107:
			StringCopy(&Var2, "SP_FMM_6_11", 16);
			iVar6 = 6;
			iVar7 = 11;
			if (Global_262145.f_4194 != -1)
			{
				iVar1 = Global_262145.f_4194;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 108:
			StringCopy(&Var2, "SP_FMM_6_12", 16);
			iVar6 = 6;
			iVar7 = 12;
			if (Global_262145.f_4180 != -1)
			{
				iVar1 = Global_262145.f_4180;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 109:
			StringCopy(&Var2, "SP_FMM_6_13", 16);
			iVar6 = 6;
			iVar7 = 13;
			if (Global_262145.f_4175 != -1)
			{
				iVar1 = Global_262145.f_4175;
			}
			else
			{
				iVar1 = 750;
			}
			break;
		
		case 110:
			StringCopy(&Var2, "SP_FMM_6_14", 16);
			iVar6 = 6;
			iVar7 = 14;
			if (Global_262145.f_4190 != -1)
			{
				iVar1 = Global_262145.f_4190;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 111:
			StringCopy(&Var2, "SP_FMM_6_15", 16);
			iVar6 = 6;
			iVar7 = 15;
			if (Global_262145.f_4183 != -1)
			{
				iVar1 = Global_262145.f_4183;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 112:
			StringCopy(&Var2, "SP_FMM_6_0", 16);
			iVar6 = 7;
			iVar7 = 0;
			if (Global_262145.f_4195 != -1)
			{
				iVar1 = Global_262145.f_4195;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 113:
			StringCopy(&Var2, "SP_FMM_6_1", 16);
			iVar6 = 7;
			iVar7 = 1;
			if (Global_262145.f_4193 != -1)
			{
				iVar1 = Global_262145.f_4193;
			}
			else
			{
				iVar1 = 415;
			}
			break;
		
		case 114:
			StringCopy(&Var2, "SP_FMM_6_2", 16);
			iVar6 = 7;
			iVar7 = 2;
			if (Global_262145.f_4173 != -1)
			{
				iVar1 = Global_262145.f_4173;
			}
			else
			{
				iVar1 = 440;
			}
			break;
		
		case 115:
			StringCopy(&Var2, "SP_FMM_6_3", 16);
			iVar6 = 7;
			iVar7 = 3;
			if (Global_262145.f_4187 != -1)
			{
				iVar1 = Global_262145.f_4187;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 116:
			StringCopy(&Var2, "SP_FMM_6_4", 16);
			iVar6 = 7;
			iVar7 = 4;
			if (Global_262145.f_4172 != -1)
			{
				iVar1 = Global_262145.f_4172;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 117:
			StringCopy(&Var2, "SP_FMM_6_5", 16);
			iVar6 = 7;
			iVar7 = 5;
			if (Global_262145.f_4189 != -1)
			{
				iVar1 = Global_262145.f_4189;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 118:
			StringCopy(&Var2, "SP_FMM_6_6", 16);
			iVar6 = 7;
			iVar7 = 6;
			if (Global_262145.f_4192 != -1)
			{
				iVar1 = Global_262145.f_4192;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 119:
			StringCopy(&Var2, "SP_FMM_6_7", 16);
			iVar6 = 7;
			iVar7 = 7;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 120:
			StringCopy(&Var2, "SP_FMM_6_8", 16);
			iVar6 = 7;
			iVar7 = 8;
			if (Global_262145.f_4181 != -1)
			{
				iVar1 = Global_262145.f_4181;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 121:
			StringCopy(&Var2, "SP_FMM_6_9", 16);
			iVar6 = 7;
			iVar7 = 9;
			if (Global_262145.f_4186 != -1)
			{
				iVar1 = Global_262145.f_4186;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 122:
			StringCopy(&Var2, "SP_FMM_6_10", 16);
			iVar6 = 7;
			iVar7 = 10;
			if (Global_262145.f_4184 != -1)
			{
				iVar1 = Global_262145.f_4184;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 123:
			StringCopy(&Var2, "SP_FMM_6_11", 16);
			iVar6 = 7;
			iVar7 = 11;
			if (Global_262145.f_4194 != -1)
			{
				iVar1 = Global_262145.f_4194;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 124:
			StringCopy(&Var2, "SP_FMM_6_12", 16);
			iVar6 = 7;
			iVar7 = 12;
			if (Global_262145.f_4180 != -1)
			{
				iVar1 = Global_262145.f_4180;
			}
			else
			{
				iVar1 = 435;
			}
			break;
		
		case 125:
			StringCopy(&Var2, "SP_FMM_6_13", 16);
			iVar6 = 7;
			iVar7 = 13;
			if (Global_262145.f_4175 != -1)
			{
				iVar1 = Global_262145.f_4175;
			}
			else
			{
				iVar1 = 750;
			}
			break;
		
		case 126:
			StringCopy(&Var2, "SP_FMM_6_14", 16);
			iVar6 = 7;
			iVar7 = 14;
			if (Global_262145.f_4190 != -1)
			{
				iVar1 = Global_262145.f_4190;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 127:
			StringCopy(&Var2, "SP_FMM_6_15", 16);
			iVar6 = 7;
			iVar7 = 15;
			if (Global_262145.f_4183 != -1)
			{
				iVar1 = Global_262145.f_4183;
			}
			else
			{
				iVar1 = 435;
			}
			break;
	}
	switch (iParam0)
	{
		case 128:
			StringCopy(&Var2, "U_FMM_8_0", 16);
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 129:
			StringCopy(&Var2, "U_FMM_8_1", 16);
			iVar6 = 8;
			iVar7 = 1;
			iVar0 = true;
			break;
		
		case 130:
			StringCopy(&Var2, "U_FMM_8_2", 16);
			iVar6 = 8;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 131:
			StringCopy(&Var2, "U_FMM_8_3", 16);
			iVar6 = 8;
			iVar7 = 3;
			iVar0 = true;
			break;
		
		case 132:
			StringCopy(&Var2, "U_FMM_8_4", 16);
			iVar6 = 8;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 133:
			StringCopy(&Var2, "U_FMM_8_5", 16);
			iVar6 = 8;
			iVar7 = 5;
			iVar0 = true;
			break;
		
		case 134:
			StringCopy(&Var2, "U_FMM_8_6", 16);
			iVar6 = 8;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 135:
			StringCopy(&Var2, "U_FMM_8_7", 16);
			iVar6 = 8;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 136:
			StringCopy(&Var2, "U_FMM_8_8", 16);
			iVar6 = 8;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 137:
			StringCopy(&Var2, "U_FMM_8_9", 16);
			iVar6 = 8;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 138:
			StringCopy(&Var2, "U_FMM_8_10", 16);
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 65;
			break;
		
		case 139:
			StringCopy(&Var2, "U_FMM_8_11", 16);
			iVar6 = 8;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 140:
			StringCopy(&Var2, "U_FMM_8_12", 16);
			iVar6 = 8;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 141:
			StringCopy(&Var2, "U_FMM_8_13", 16);
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 40;
			break;
		
		case 142:
			StringCopy(&Var2, "U_FMM_8_14", 16);
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 143:
			StringCopy(&Var2, "U_FMM_8_15", 16);
			iVar6 = 8;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 144:
			StringCopy(&Var2, "U_FMM_9_0", 16);
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 265;
			break;
		
		case 145:
			StringCopy(&Var2, "U_FMM_9_1", 16);
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 340;
			break;
		
		case 146:
			StringCopy(&Var2, "U_FMM_9_2", 16);
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 335;
			break;
		
		case 147:
			StringCopy(&Var2, "U_FMM_9_3", 16);
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 330;
			break;
		
		case 148:
			StringCopy(&Var2, "U_FMM_9_4", 16);
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 345;
			break;
		
		case 149:
			StringCopy(&Var2, "U_FMM_9_5", 16);
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 550;
			break;
		
		case 150:
			StringCopy(&Var2, "U_FMM_9_6", 16);
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 340;
			break;
		
		case 151:
			StringCopy(&Var2, "U_FMM_9_7", 16);
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 295;
			break;
		
		case 152:
			StringCopy(&Var2, "U_FMM_9_8", 16);
			iVar6 = 9;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 153:
			StringCopy(&Var2, "U_FMM_9_9", 16);
			iVar6 = 9;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 154:
			StringCopy(&Var2, "U_FMM_9_10", 16);
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 545;
			break;
		
		case 155:
			StringCopy(&Var2, "U_FMM_9_11", 16);
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 345;
			break;
		
		case 156:
			StringCopy(&Var2, "U_FMM_9_12", 16);
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 315;
			break;
		
		case 157:
			StringCopy(&Var2, "U_FMM_9_13", 16);
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 520;
			break;
		
		case 158:
			StringCopy(&Var2, "U_FMM_9_14", 16);
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 325;
			break;
		
		case 159:
			StringCopy(&Var2, "U_FMM_9_15", 16);
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 330;
			break;
	}
	switch (iParam0)
	{
		case 160:
			StringCopy(&Var2, "SP_FMM_10_0", 16);
			iVar6 = 10;
			iVar7 = 0;
			if (Global_262145.f_4195 != -1)
			{
				iVar1 = Global_262145.f_4195;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 161:
			StringCopy(&Var2, "SP_FMM_10_1", 16);
			iVar6 = 10;
			iVar7 = 1;
			if (Global_262145.f_4193 != -1)
			{
				iVar1 = Global_262145.f_4193;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 162:
			StringCopy(&Var2, "SP_FMM_10_2", 16);
			iVar6 = 10;
			iVar7 = 2;
			if (Global_262145.f_4179 != -1)
			{
				iVar1 = Global_262145.f_4179;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 163:
			StringCopy(&Var2, "SP_FMM_10_3", 16);
			iVar6 = 10;
			iVar7 = 3;
			if (Global_262145.f_4187 != -1)
			{
				iVar1 = Global_262145.f_4187;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 164:
			StringCopy(&Var2, "SP_FMM_10_4", 16);
			iVar6 = 10;
			iVar7 = 4;
			if (Global_262145.f_4172 != -1)
			{
				iVar1 = Global_262145.f_4172;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 165:
			StringCopy(&Var2, "SP_FMM_10_5", 16);
			iVar6 = 10;
			iVar7 = 5;
			if (Global_262145.f_4189 != -1)
			{
				iVar1 = Global_262145.f_4189;
			}
			else
			{
				iVar1 = 395;
			}
			break;
		
		case 166:
			StringCopy(&Var2, "SP_FMM_10_6", 16);
			iVar6 = 10;
			iVar7 = 6;
			if (Global_262145.f_4178 != -1)
			{
				iVar1 = Global_262145.f_4178;
			}
			else
			{
				iVar1 = 500;
			}
			break;
		
		case 167:
			StringCopy(&Var2, "SP_FMM_10_7", 16);
			iVar6 = 10;
			iVar7 = 7;
			if (Global_262145.f_4192 != -1)
			{
				iVar1 = Global_262145.f_4192;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 168:
			StringCopy(&Var2, "SP_FMM_10_8", 16);
			iVar6 = 10;
			iVar7 = 8;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 169:
			StringCopy(&Var2, "SP_FMM_10_9", 16);
			iVar6 = 10;
			iVar7 = 9;
			if (Global_262145.f_4181 != -1)
			{
				iVar1 = Global_262145.f_4181;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 170:
			StringCopy(&Var2, "SP_FMM_10_10", 16);
			iVar6 = 10;
			iVar7 = 10;
			if (Global_262145.f_4186 != -1)
			{
				iVar1 = Global_262145.f_4186;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 171:
			StringCopy(&Var2, "SP_FMM_10_11", 16);
			iVar6 = 10;
			iVar7 = 11;
			if (Global_262145.f_4184 != -1)
			{
				iVar1 = Global_262145.f_4184;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 172:
			StringCopy(&Var2, "SP_FMM_10_12", 16);
			iVar6 = 10;
			iVar7 = 12;
			if (Global_262145.f_4176 != -1)
			{
				iVar1 = Global_262145.f_4176;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 173:
			StringCopy(&Var2, "SP_FMM_10_13", 16);
			iVar6 = 10;
			iVar7 = 13;
			if (Global_262145.f_4191 != -1)
			{
				iVar1 = Global_262145.f_4191;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 174:
			StringCopy(&Var2, "SP_FMM_10_14", 16);
			iVar6 = 10;
			iVar7 = 14;
			if (Global_262145.f_4194 != -1)
			{
				iVar1 = Global_262145.f_4194;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 175:
			StringCopy(&Var2, "SP_FMM_10_15", 16);
			iVar6 = 10;
			iVar7 = 15;
			if (Global_262145.f_4185 != -1)
			{
				iVar1 = Global_262145.f_4185;
			}
			else
			{
				iVar1 = 460;
			}
			break;
		
		case 176:
			StringCopy(&Var2, "SP_FMM_10_0", 16);
			iVar6 = 11;
			iVar7 = 0;
			if (Global_262145.f_4195 != -1)
			{
				iVar1 = Global_262145.f_4195;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 177:
			StringCopy(&Var2, "SP_FMM_10_1", 16);
			iVar6 = 11;
			iVar7 = 1;
			if (Global_262145.f_4193 != -1)
			{
				iVar1 = Global_262145.f_4193;
			}
			else
			{
				iVar1 = 400;
			}
			break;
		
		case 178:
			StringCopy(&Var2, "SP_FMM_10_2", 16);
			iVar6 = 11;
			iVar7 = 2;
			if (Global_262145.f_4179 != -1)
			{
				iVar1 = Global_262145.f_4179;
			}
			else
			{
				iVar1 = 425;
			}
			break;
		
		case 179:
			StringCopy(&Var2, "SP_FMM_10_3", 16);
			iVar6 = 11;
			iVar7 = 3;
			if (Global_262145.f_4187 != -1)
			{
				iVar1 = Global_262145.f_4187;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 180:
			StringCopy(&Var2, "SP_FMM_10_4", 16);
			iVar6 = 11;
			iVar7 = 4;
			if (Global_262145.f_4172 != -1)
			{
				iVar1 = Global_262145.f_4172;
			}
			else
			{
				iVar1 = 385;
			}
			break;
		
		case 181:
			StringCopy(&Var2, "SP_FMM_10_5", 16);
			iVar6 = 11;
			iVar7 = 5;
			if (Global_262145.f_4189 != -1)
			{
				iVar1 = Global_262145.f_4189;
			}
			else
			{
				iVar1 = 395;
			}
			break;
		
		case 182:
			StringCopy(&Var2, "SP_FMM_10_6", 16);
			iVar6 = 11;
			iVar7 = 6;
			if (Global_262145.f_4178 != -1)
			{
				iVar1 = Global_262145.f_4178;
			}
			else
			{
				iVar1 = 500;
			}
			break;
		
		case 183:
			StringCopy(&Var2, "SP_FMM_10_7", 16);
			iVar6 = 11;
			iVar7 = 7;
			if (Global_262145.f_4192 != -1)
			{
				iVar1 = Global_262145.f_4192;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 184:
			StringCopy(&Var2, "SP_FMM_10_8", 16);
			iVar6 = 11;
			iVar7 = 8;
			if (Global_262145.f_4188 != -1)
			{
				iVar1 = Global_262145.f_4188;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 185:
			StringCopy(&Var2, "SP_FMM_10_9", 16);
			iVar6 = 11;
			iVar7 = 9;
			if (Global_262145.f_4181 != -1)
			{
				iVar1 = Global_262145.f_4181;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 186:
			StringCopy(&Var2, "SP_FMM_10_10", 16);
			iVar6 = 11;
			iVar7 = 10;
			if (Global_262145.f_4186 != -1)
			{
				iVar1 = Global_262145.f_4186;
			}
			else
			{
				iVar1 = 405;
			}
			break;
		
		case 187:
			StringCopy(&Var2, "SP_FMM_10_11", 16);
			iVar6 = 11;
			iVar7 = 11;
			if (Global_262145.f_4184 != -1)
			{
				iVar1 = Global_262145.f_4184;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 188:
			StringCopy(&Var2, "SP_FMM_10_12", 16);
			iVar6 = 11;
			iVar7 = 12;
			if (Global_262145.f_4176 != -1)
			{
				iVar1 = Global_262145.f_4176;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 189:
			StringCopy(&Var2, "SP_FMM_10_13", 16);
			iVar6 = 11;
			iVar7 = 13;
			if (Global_262145.f_4191 != -1)
			{
				iVar1 = Global_262145.f_4191;
			}
			else
			{
				iVar1 = 420;
			}
			break;
		
		case 190:
			StringCopy(&Var2, "SP_FMM_10_14", 16);
			iVar6 = 11;
			iVar7 = 14;
			if (Global_262145.f_4194 != -1)
			{
				iVar1 = Global_262145.f_4194;
			}
			else
			{
				iVar1 = 410;
			}
			break;
		
		case 191:
			StringCopy(&Var2, "SP_FMM_10_15", 16);
			iVar6 = 11;
			iVar7 = 15;
			if (Global_262145.f_4185 != -1)
			{
				iVar1 = Global_262145.f_4185;
			}
			else
			{
				iVar1 = 460;
			}
			break;
	}
	switch (iParam0)
	{
		case 192:
			StringCopy(&Var2, "U_FMM_12_0", 16);
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 420;
			break;
		
		case 193:
			StringCopy(&Var2, "U_FMM_12_1", 16);
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 415;
			break;
		
		case 194:
			StringCopy(&Var2, "U_FMM_12_2", 16);
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 695;
			break;
		
		case 195:
			StringCopy(&Var2, "U_FMM_12_3", 16);
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 385;
			break;
		
		case 196:
			StringCopy(&Var2, "U_FMM_12_4", 16);
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 330;
			break;
		
		case 197:
			StringCopy(&Var2, "U_FMM_12_5", 16);
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 345;
			break;
		
		case 198:
			StringCopy(&Var2, "U_FMM_12_6", 16);
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 340;
			break;
		
		case 199:
			StringCopy(&Var2, "U_FMM_12_7", 16);
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 450;
			break;
		
		case 200:
			StringCopy(&Var2, "U_FMM_12_8", 16);
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 295;
			break;
		
		case 201:
			StringCopy(&Var2, "U_FMM_12_9", 16);
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 340;
			break;
		
		case 202:
			StringCopy(&Var2, "U_FMM_12_10", 16);
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 1060;
			break;
		
		case 203:
			StringCopy(&Var2, "U_FMM_12_11", 16);
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 1040;
			break;
		
		case 204:
			StringCopy(&Var2, "U_FMM_12_12", 16);
			iVar6 = 12;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 205:
			StringCopy(&Var2, "U_FMM_12_13", 16);
			iVar6 = 12;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 206:
			StringCopy(&Var2, "U_FMM_12_14", 16);
			iVar6 = 12;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 207:
			StringCopy(&Var2, "U_FMM_12_15", 16);
			iVar6 = 12;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 208:
			StringCopy(&Var2, "U_FMM_13_0", 16);
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 420;
			break;
		
		case 209:
			StringCopy(&Var2, "U_FMM_13_1", 16);
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 415;
			break;
		
		case 210:
			StringCopy(&Var2, "U_FMM_13_2", 16);
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 680;
			break;
		
		case 211:
			StringCopy(&Var2, "U_FMM_13_3", 16);
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 385;
			break;
		
		case 212:
			StringCopy(&Var2, "U_FMM_13_4", 16);
			iVar6 = 13;
			iVar7 = 4;
			iVar0 = true;
			break;
		
		case 213:
			StringCopy(&Var2, "U_FMM_13_5", 16);
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 345;
			break;
		
		case 214:
			StringCopy(&Var2, "U_FMM_13_6", 16);
			iVar6 = 13;
			iVar7 = 6;
			iVar0 = true;
			break;
		
		case 215:
			StringCopy(&Var2, "U_FMM_13_7", 16);
			iVar6 = 13;
			iVar7 = 7;
			iVar0 = true;
			break;
		
		case 216:
			StringCopy(&Var2, "U_FMM_13_8", 16);
			iVar6 = 13;
			iVar7 = 8;
			iVar0 = true;
			break;
		
		case 217:
			StringCopy(&Var2, "U_FMM_13_9", 16);
			iVar6 = 13;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 218:
			StringCopy(&Var2, "U_FMM_13_10", 16);
			iVar6 = 13;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 219:
			StringCopy(&Var2, "U_FMM_13_11", 16);
			iVar6 = 13;
			iVar7 = 11;
			iVar0 = true;
			break;
		
		case 220:
			StringCopy(&Var2, "U_FMM_13_12", 16);
			iVar6 = 13;
			iVar7 = 12;
			iVar0 = true;
			break;
		
		case 221:
			StringCopy(&Var2, "U_FMM_13_13", 16);
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 1065;
			break;
		
		case 222:
			StringCopy(&Var2, "U_FMM_13_14", 16);
			iVar6 = 13;
			iVar7 = 14;
			iVar0 = true;
			break;
		
		case 223:
			StringCopy(&Var2, "U_FMM_13_15", 16);
			iVar6 = 13;
			iVar7 = 15;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 224:
			StringCopy(&Var2, "U_FMM_1_0", 16);
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 45;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[16]));
			break;
		
		case 225:
			StringCopy(&Var2, "U_FMM_1_1", 16);
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 60;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[17]));
			break;
		
		case 226:
			StringCopy(&Var2, "U_FMM_1_2", 16);
			iVar6 = 14;
			iVar7 = 2;
			iVar0 = true;
			break;
		
		case 227:
			StringCopy(&Var2, "U_FMM_1_3", 16);
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 40;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[19]));
			break;
		
		case 228:
			StringCopy(&Var2, "U_FMM_1_4", 16);
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 315;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[20]));
			break;
		
		case 229:
			StringCopy(&Var2, "U_FMM_1_5", 16);
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 215;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[21]));
			break;
		
		case 230:
			StringCopy(&Var2, "U_FMM_1_6", 16);
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 265;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[22]));
			break;
		
		case 231:
			StringCopy(&Var2, "U_FMM_1_7", 16);
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 45;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[23]));
			break;
		
		case 232:
			StringCopy(&Var2, "U_FMM_1_8", 16);
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 205;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[24]));
			break;
		
		case 233:
			StringCopy(&Var2, "U_FMM_1_9", 16);
			iVar6 = 14;
			iVar7 = 9;
			iVar0 = true;
			break;
		
		case 234:
			StringCopy(&Var2, "U_FMM_1_10", 16);
			iVar6 = 14;
			iVar7 = 10;
			iVar0 = true;
			break;
		
		case 235:
			StringCopy(&Var2, "U_FMM_1_11", 16);
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 60;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[27]));
			break;
		
		case 236:
			StringCopy(&Var2, "U_FMM_1_12", 16);
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 55;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[28]));
			break;
		
		case 237:
			StringCopy(&Var2, "U_FMM_1_13", 16);
			iVar6 = 14;
			iVar7 = 13;
			iVar0 = true;
			break;
		
		case 238:
			StringCopy(&Var2, "U_FMM_1_14", 16);
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 170;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[30]));
			break;
		
		case 239:
			StringCopy(&Var2, "U_FMM_1_15", 16);
			iVar6 = 14;
			iVar7 = 15;
			iVar0 = true;
			break;
		
		case 240:
			StringCopy(&Var2, "U_FMM_15_0", 16);
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 0;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[32]));
			break;
	}
	if (iParam0 == 23 || iParam0 == 231)
	{
		if (func_186(89, -1))
		{
			StringCopy(&Var2, "REW_RS", 16);
			iVar1 = system::round((system::to_float(1250) * Global_262145.f_2975));
		}
		else
		{
			iVar1 = system::round((system::to_float(45) * Global_262145.f_430[23]));
		}
	}
	else if (iParam0 == 17 || iParam0 == 225)
	{
		if (func_186(88, -1))
		{
			StringCopy(&Var2, "REW_LSB", 16);
			iVar1 = system::round((system::to_float(450) * Global_262145.f_2974));
		}
		else
		{
			iVar1 = system::round((system::to_float(60) * Global_262145.f_430[17]));
		}
	}
	else if (iParam0 == 28 || iParam0 == 236)
	{
		if (func_186(87, -1))
		{
			StringCopy(&Var2, "REW_REDSK", 16);
			iVar1 = system::round((system::to_float(500) * Global_262145.f_2973));
		}
		else
		{
			iVar1 = system::round((system::to_float(55) * Global_262145.f_430[28]));
		}
	}
	else if (iParam0 >= 0 && iParam0 < 32)
	{
		iVar11 = iParam0;
		if (iVar11 >= 0 && iVar11 < 237)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[iVar11]));
		}
	}
	else if (iParam0 >= 32 && iParam0 < 48)
	{
		iVar12 = (iParam0 - 32);
		if (iVar12 >= 0 && iVar12 < 237)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[iVar12]));
		}
	}
	else if (iParam0 >= 128 && iParam0 < 160)
	{
		iVar13 = (iParam0 - 160) + 124;
		if (iVar13 >= 0 && iVar13 < 237)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[iVar13]));
		}
	}
	else if (iParam0 >= 192 && iParam0 < 224)
	{
		iVar14 = (iParam0 - 160) + 188;
		if (iVar14 >= 0 && iVar14 < 237)
		{
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_430[iVar14]));
		}
	}
	iVar1 = system::round((system::to_float(iVar1) * Global_275816.f_16));
	if (iParam0 >= 241)
	{
		Global_69311[0 /*14*/].f_5 = 3;
		func_24(iVar10, iParam0, 241);
		if (Global_69311[0 /*14*/].f_7 > 0)
		{
			Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_16));
		}
	}
	else
	{
		func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_247(int iParam0)//Position - 0x49D9C
{
	int iVar0;
	int iVar1;
	struct<2> Var2;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = false;
	iVar1 = 10;
	iVar6 = 0;
	iVar7 = 0;
	iVar8 = -1;
	iVar9 = 2;
	iVar10 = 11;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 250;
			break;
		
		case 1:
			iVar6 = 0;
			iVar7 = 1;
			iVar1 = 210;
			break;
		
		case 2:
			iVar6 = 0;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 3:
			iVar6 = 0;
			iVar7 = 3;
			iVar1 = 90;
			break;
		
		case 4:
			iVar6 = 0;
			iVar7 = 4;
			iVar1 = 210;
			break;
		
		case 5:
			iVar6 = 0;
			iVar7 = 5;
			iVar1 = 200;
			break;
		
		case 6:
			iVar6 = 0;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 7:
			iVar6 = 0;
			iVar7 = 7;
			iVar1 = 130;
			break;
		
		case 8:
			iVar6 = 0;
			iVar7 = 8;
			iVar1 = 220;
			break;
		
		case 9:
			iVar6 = 0;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 10:
			iVar6 = 0;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 11:
			iVar6 = 0;
			iVar7 = 11;
			iVar1 = 220;
			break;
		
		case 12:
			iVar6 = 0;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 13:
			iVar6 = 0;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 14:
			iVar6 = 0;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 15:
			iVar6 = 0;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 16:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 17:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 60;
			break;
		
		case 18:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 19:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 40;
			break;
		
		case 20:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 315;
			break;
		
		case 21:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 215;
			break;
		
		case 22:
			iVar6 = 1;
			iVar7 = 6;
			iVar1 = 265;
			break;
		
		case 23:
			iVar6 = 1;
			iVar7 = 7;
			iVar1 = 45;
			break;
		
		case 24:
			iVar6 = 1;
			iVar7 = 8;
			iVar1 = 205;
			break;
		
		case 25:
			iVar6 = 1;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 26:
			iVar6 = 1;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 27:
			iVar6 = 1;
			iVar7 = 11;
			iVar1 = 60;
			break;
		
		case 28:
			iVar6 = 1;
			iVar7 = 12;
			iVar1 = 55;
			break;
		
		case 29:
			iVar6 = 1;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 30:
			iVar6 = 1;
			iVar7 = 14;
			iVar1 = 170;
			break;
		
		case 31:
			iVar6 = 1;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 32:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 33:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 34:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 35:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 36:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 37:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 38:
			iVar6 = 2;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 39:
			iVar6 = 2;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 40:
			iVar6 = 2;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 41:
			iVar6 = 2;
			iVar7 = 9;
			iVar1 = 160;
			break;
		
		case 42:
			iVar6 = 2;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 43:
			iVar6 = 2;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 44:
			iVar6 = 2;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 45:
			iVar6 = 2;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 46:
			iVar6 = 2;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 47:
			iVar6 = 2;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 48:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 205;
			break;
		
		case 49:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 110;
			break;
		
		case 50:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 150;
			break;
		
		case 51:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 115;
			break;
		
		case 52:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 115;
			break;
		
		case 53:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 150;
			break;
		
		case 54:
			iVar6 = 3;
			iVar7 = 6;
			iVar1 = 150;
			break;
		
		case 55:
			iVar6 = 3;
			iVar7 = 7;
			iVar1 = 115;
			break;
		
		case 56:
			iVar6 = 3;
			iVar7 = 8;
			iVar1 = 140;
			break;
		
		case 57:
			iVar6 = 3;
			iVar7 = 9;
			iVar1 = 125;
			break;
		
		case 58:
			iVar6 = 3;
			iVar7 = 10;
			iVar1 = 115;
			break;
		
		case 59:
			iVar6 = 3;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 60:
			iVar6 = 3;
			iVar7 = 12;
			iVar1 = 150;
			break;
		
		case 61:
			iVar6 = 3;
			iVar7 = 13;
			iVar1 = 275;
			break;
		
		case 62:
			iVar6 = 3;
			iVar7 = 14;
			iVar1 = 460;
			break;
		
		case 63:
			iVar6 = 3;
			iVar7 = 15;
			iVar1 = 260;
			break;
	}
	switch (iParam0)
	{
		case 64:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 965;
			break;
		
		case 65:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 66:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 2520;
			break;
		
		case 67:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 350;
			break;
		
		case 68:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 69:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 70:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 71:
			iVar6 = 4;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 72:
			iVar6 = 4;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 73:
			iVar6 = 4;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 74:
			iVar6 = 4;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 75:
			iVar6 = 4;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 76:
			iVar6 = 4;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 77:
			iVar6 = 4;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 78:
			iVar6 = 4;
			iVar7 = 14;
			iVar1 = 3125;
			break;
		
		case 79:
			iVar6 = 4;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 80:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 80;
			break;
		
		case 81:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 45;
			break;
		
		case 82:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 50;
			break;
		
		case 83:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 84:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 85:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 86:
			iVar6 = 5;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 87:
			iVar6 = 5;
			iVar7 = 7;
			iVar1 = 50;
			break;
		
		case 88:
			iVar6 = 5;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 89:
			iVar6 = 5;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 90:
			iVar6 = 5;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 91:
			iVar6 = 5;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 92:
			iVar6 = 5;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 93:
			iVar6 = 5;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 94:
			iVar6 = 5;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 95:
			iVar6 = 5;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 96:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 2485;
			break;
		
		case 97:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 535;
			break;
		
		case 98:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 99:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 2945;
			break;
		
		case 100:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 3080;
			break;
		
		case 101:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 2990;
			break;
		
		case 102:
			iVar6 = 6;
			iVar7 = 6;
			iVar1 = 3750;
			break;
		
		case 103:
			iVar6 = 6;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 104:
			iVar6 = 6;
			iVar7 = 8;
			iVar1 = 515;
			break;
		
		case 105:
			iVar6 = 6;
			iVar7 = 9;
			iVar1 = 530;
			break;
		
		case 106:
			iVar6 = 6;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 107:
			iVar6 = 6;
			iVar7 = 11;
			iVar1 = 2810;
			break;
		
		case 108:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 150;
			break;
		
		case 109:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 155;
			break;
		
		case 110:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 320;
			break;
		
		case 111:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 140;
			break;
		
		case 112:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 150;
			break;
		
		case 113:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 145;
			break;
		
		case 114:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 150;
			break;
		
		case 115:
			iVar6 = 7;
			iVar7 = 7;
			iVar1 = 140;
			break;
		
		case 116:
			iVar6 = 7;
			iVar7 = 8;
			iVar1 = 135;
			break;
		
		case 117:
			iVar6 = 7;
			iVar7 = 9;
			iVar1 = 130;
			break;
		
		case 118:
			iVar6 = 7;
			iVar7 = 10;
			iVar1 = 130;
			break;
		
		case 119:
			iVar6 = 7;
			iVar7 = 11;
			iVar1 = 150;
			break;
		
		case 120:
			iVar6 = 7;
			iVar7 = 12;
			iVar1 = 145;
			break;
		
		case 121:
			iVar6 = 7;
			iVar7 = 13;
			iVar1 = 740;
			break;
		
		case 122:
			iVar6 = 7;
			iVar7 = 14;
			iVar1 = 790;
			break;
		
		case 123:
			iVar6 = 7;
			iVar7 = 15;
			iVar1 = 130;
			break;
	}
	switch (iParam0)
	{
		case 124:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 45;
			break;
		
		case 125:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 126:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 127:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 128:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 129:
			iVar6 = 8;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 130:
			iVar6 = 8;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 131:
			iVar6 = 8;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 132:
			iVar6 = 8;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 133:
			iVar6 = 8;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 134:
			iVar6 = 8;
			iVar7 = 10;
			iVar1 = 65;
			break;
		
		case 135:
			iVar6 = 8;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 136:
			iVar6 = 8;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 137:
			iVar6 = 8;
			iVar7 = 13;
			iVar1 = 40;
			break;
		
		case 138:
			iVar6 = 8;
			iVar7 = 14;
			iVar1 = 45;
			break;
		
		case 139:
			iVar6 = 8;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 140:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 265;
			break;
		
		case 141:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 340;
			break;
		
		case 142:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 335;
			break;
		
		case 143:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 330;
			break;
		
		case 144:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 345;
			break;
		
		case 145:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 550;
			break;
		
		case 146:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 340;
			break;
		
		case 147:
			iVar6 = 9;
			iVar7 = 7;
			iVar1 = 295;
			break;
		
		case 148:
			iVar6 = 9;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 149:
			iVar6 = 9;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 150:
			iVar6 = 9;
			iVar7 = 10;
			iVar1 = 545;
			break;
		
		case 151:
			iVar6 = 9;
			iVar7 = 11;
			iVar1 = 345;
			break;
		
		case 152:
			iVar6 = 9;
			iVar7 = 12;
			iVar1 = 315;
			break;
		
		case 153:
			iVar6 = 9;
			iVar7 = 13;
			iVar1 = 520;
			break;
		
		case 154:
			iVar6 = 9;
			iVar7 = 14;
			iVar1 = 325;
			break;
		
		case 155:
			iVar6 = 9;
			iVar7 = 15;
			iVar1 = 330;
			break;
	}
	switch (iParam0)
	{
		case 156:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 505;
			break;
		
		case 157:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 470;
			break;
		
		case 158:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 475;
			break;
		
		case 159:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 160:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 161:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 162:
			iVar6 = 10;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 163:
			iVar6 = 10;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 164:
			iVar6 = 10;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 165:
			iVar6 = 10;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 166:
			iVar6 = 10;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 167:
			iVar6 = 10;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 168:
			iVar6 = 10;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 169:
			iVar6 = 10;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 170:
			iVar6 = 10;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 171:
			iVar6 = 10;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 172:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 120;
			break;
		
		case 173:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 360;
			break;
		
		case 174:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 175:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 176:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 177:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 178:
			iVar6 = 11;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 179:
			iVar6 = 11;
			iVar7 = 7;
			iVar1 = 90;
			break;
		
		case 180:
			iVar6 = 11;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 181:
			iVar6 = 11;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 182:
			iVar6 = 11;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 183:
			iVar6 = 11;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 184:
			iVar6 = 11;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 185:
			iVar6 = 11;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 186:
			iVar6 = 11;
			iVar7 = 14;
			iVar1 = 2450;
			break;
		
		case 187:
			iVar6 = 11;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 188:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 420;
			break;
		
		case 189:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 415;
			break;
		
		case 190:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 695;
			break;
		
		case 191:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 385;
			break;
		
		case 192:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 330;
			break;
		
		case 193:
			iVar6 = 12;
			iVar7 = 5;
			iVar1 = 345;
			break;
		
		case 194:
			iVar6 = 12;
			iVar7 = 6;
			iVar1 = 340;
			break;
		
		case 195:
			iVar6 = 12;
			iVar7 = 7;
			iVar1 = 450;
			break;
		
		case 196:
			iVar6 = 12;
			iVar7 = 8;
			iVar1 = 295;
			break;
		
		case 197:
			iVar6 = 12;
			iVar7 = 9;
			iVar1 = 340;
			break;
		
		case 198:
			iVar6 = 12;
			iVar7 = 10;
			iVar1 = 1060;
			break;
		
		case 199:
			iVar6 = 12;
			iVar7 = 11;
			iVar1 = 1040;
			break;
		
		case 200:
			iVar6 = 12;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 201:
			iVar6 = 12;
			iVar7 = 13;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 202:
			iVar6 = 12;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 203:
			iVar6 = 12;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 204:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 420;
			break;
		
		case 205:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 415;
			break;
		
		case 206:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 680;
			break;
		
		case 207:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 385;
			break;
		
		case 208:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 209:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 345;
			break;
		
		case 210:
			iVar6 = 13;
			iVar7 = 6;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 211:
			iVar6 = 13;
			iVar7 = 7;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 212:
			iVar6 = 13;
			iVar7 = 8;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 213:
			iVar6 = 13;
			iVar7 = 9;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 214:
			iVar6 = 13;
			iVar7 = 10;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 215:
			iVar6 = 13;
			iVar7 = 11;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 216:
			iVar6 = 13;
			iVar7 = 12;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 217:
			iVar6 = 13;
			iVar7 = 13;
			iVar1 = 1065;
			break;
		
		case 218:
			iVar6 = 13;
			iVar7 = 14;
			iVar1 = 0;
			iVar0 = true;
			break;
		
		case 219:
			iVar6 = 13;
			iVar7 = 15;
			iVar1 = 0;
			iVar0 = true;
			break;
	}
	switch (iParam0)
	{
		case 220:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 420;
			break;
		
		case 221:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 415;
			break;
		
		case 222:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 440;
			break;
		
		case 223:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 385;
			break;
		
		case 224:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 330;
			break;
		
		case 225:
			iVar6 = 14;
			iVar7 = 5;
			iVar1 = 445;
			break;
		
		case 226:
			iVar6 = 14;
			iVar7 = 6;
			iVar1 = 340;
			break;
		
		case 227:
			iVar6 = 14;
			iVar7 = 7;
			iVar1 = 440;
			break;
		
		case 228:
			iVar6 = 14;
			iVar7 = 8;
			iVar1 = 295;
			break;
		
		case 229:
			iVar6 = 14;
			iVar7 = 9;
			iVar1 = 340;
			break;
		
		case 230:
			iVar6 = 14;
			iVar7 = 10;
			iVar1 = 325;
			break;
		
		case 231:
			iVar6 = 14;
			iVar7 = 11;
			iVar1 = 435;
			break;
		
		case 232:
			iVar6 = 14;
			iVar7 = 12;
			iVar1 = 445;
			break;
		
		case 233:
			iVar6 = 14;
			iVar7 = 13;
			iVar1 = 440;
			break;
		
		case 234:
			iVar6 = 14;
			iVar7 = 14;
			iVar1 = 325;
			break;
		
		case 235:
			iVar6 = 14;
			iVar7 = 15;
			iVar1 = 325;
			break;
		
		case 236:
			iVar6 = 15;
			iVar7 = 0;
			break;
	}
	StringCopy(&Var2, "U_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	if (iParam0 == 23)
	{
		if (func_186(89, -1))
		{
			StringCopy(&Var2, "REW_RS", 16);
			iVar1 = system::round(((system::to_float(1250) * Global_262145.f_2975) * Global_275816.f_16));
		}
		else
		{
			iVar1 = system::round(((system::to_float(45) * Global_262145.f_430[23]) * Global_275816.f_16));
		}
	}
	else if (iParam0 == 17)
	{
		if (func_186(88, -1))
		{
			StringCopy(&Var2, "REW_LSB", 16);
			iVar1 = system::round(((system::to_float(450) * Global_262145.f_2974) * Global_275816.f_16));
		}
		else
		{
			iVar1 = system::round(((system::to_float(60) * Global_262145.f_430[17]) * Global_275816.f_16));
		}
	}
	else if (iParam0 == 28)
	{
		if (func_186(87, -1))
		{
			StringCopy(&Var2, "REW_REDSK", 16);
			iVar1 = system::round(((system::to_float(500) * Global_262145.f_2973) * Global_275816.f_16));
		}
		else
		{
			iVar1 = system::round(((system::to_float(55) * Global_262145.f_430[28]) * Global_275816.f_16));
		}
	}
	else
	{
		iVar11 = iParam0;
		if (iVar11 >= 0 && iVar11 < 237)
		{
			iVar1 = system::round(((system::to_float(iVar1) * Global_262145.f_430[iVar11]) * Global_275816.f_16));
		}
	}
	if (iParam0 >= 237)
	{
		Global_69311[0 /*14*/].f_5 = 3;
		func_24(iVar10, iParam0, 237);
		if (Global_69311[0 /*14*/].f_7 > 0)
		{
			Global_69311[0 /*14*/].f_7 = system::round((system::to_float(Global_69311[0 /*14*/].f_7) * Global_275816.f_16));
		}
	}
	else
	{
		func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
	}
}

void func_248(int iParam0)//Position - 0x4B355
{
	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;
	switch (iParam0)
	{
		case 0:
			iVar6 = 0;
			iVar7 = 0;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[0]));
			break;
		
		case 1:
			iVar6 = 1;
			iVar7 = 0;
			iVar1 = 190;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[1]));
			break;
		
		case 2:
			iVar6 = 1;
			iVar7 = 1;
			iVar1 = 185;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[2]));
			break;
		
		case 3:
			iVar6 = 1;
			iVar7 = 2;
			iVar1 = 180;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[3]));
			break;
		
		case 4:
			iVar6 = 1;
			iVar7 = 3;
			iVar1 = 175;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[4]));
			break;
		
		case 5:
			iVar6 = 1;
			iVar7 = 4;
			iVar1 = 170;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[5]));
			break;
		
		case 6:
			iVar6 = 1;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 7:
			iVar6 = 2;
			iVar7 = 0;
			iVar1 = 580;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[6]));
			break;
		
		case 8:
			iVar6 = 2;
			iVar7 = 1;
			iVar1 = 575;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[7]));
			break;
		
		case 9:
			iVar6 = 2;
			iVar7 = 2;
			iVar1 = 570;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[8]));
			break;
		
		case 10:
			iVar6 = 2;
			iVar7 = 3;
			iVar1 = 565;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[9]));
			break;
		
		case 11:
			iVar6 = 2;
			iVar7 = 4;
			iVar1 = 560;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[10]));
			break;
		
		case 12:
			iVar6 = 2;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 13:
			iVar6 = 3;
			iVar7 = 0;
			iVar1 = 1100;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[11]));
			break;
		
		case 14:
			iVar6 = 3;
			iVar7 = 1;
			iVar1 = 1095;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[12]));
			break;
		
		case 15:
			iVar6 = 3;
			iVar7 = 2;
			iVar1 = 1090;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[13]));
			break;
		
		case 16:
			iVar6 = 3;
			iVar7 = 3;
			iVar1 = 1085;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[14]));
			break;
		
		case 17:
			iVar6 = 3;
			iVar7 = 4;
			iVar1 = 1080;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[15]));
			break;
		
		case 18:
			iVar6 = 3;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 19:
			iVar6 = 4;
			iVar7 = 0;
			iVar1 = 520;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[16]));
			break;
		
		case 20:
			iVar6 = 4;
			iVar7 = 1;
			iVar1 = 515;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[17]));
			break;
		
		case 21:
			iVar6 = 4;
			iVar7 = 2;
			iVar1 = 510;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[18]));
			break;
		
		case 22:
			iVar6 = 4;
			iVar7 = 3;
			iVar1 = 505;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[19]));
			break;
		
		case 23:
			iVar6 = 4;
			iVar7 = 4;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[20]));
			break;
		
		case 24:
			iVar6 = 4;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 25:
			iVar6 = 4;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		case 26:
			iVar6 = 5;
			iVar7 = 0;
			iVar1 = 295;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[21]));
			break;
		
		case 27:
			iVar6 = 5;
			iVar7 = 1;
			iVar1 = 290;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[22]));
			break;
		
		case 28:
			iVar6 = 5;
			iVar7 = 2;
			iVar1 = 285;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[23]));
			break;
		
		case 29:
			iVar6 = 5;
			iVar7 = 3;
			iVar1 = 280;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[24]));
			break;
		
		case 30:
			iVar6 = 5;
			iVar7 = 4;
			iVar1 = 275;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[25]));
			break;
		
		case 31:
			iVar6 = 5;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 32:
			iVar6 = 6;
			iVar7 = 0;
			iVar1 = 950;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[26]));
			break;
		
		case 33:
			iVar6 = 6;
			iVar7 = 1;
			iVar1 = 945;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[27]));
			break;
		
		case 34:
			iVar6 = 6;
			iVar7 = 2;
			iVar1 = 940;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[28]));
			break;
		
		case 35:
			iVar6 = 6;
			iVar7 = 3;
			iVar1 = 935;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[29]));
			break;
		
		case 36:
			iVar6 = 6;
			iVar7 = 4;
			iVar1 = 930;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[30]));
			break;
		
		case 37:
			iVar6 = 6;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 38:
			iVar6 = 7;
			iVar7 = 0;
			iVar1 = 440;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[31]));
			break;
		
		case 39:
			iVar6 = 7;
			iVar7 = 1;
			iVar1 = 435;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[32]));
			break;
		
		case 40:
			iVar6 = 7;
			iVar7 = 2;
			iVar1 = 430;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[33]));
			break;
		
		case 41:
			iVar6 = 7;
			iVar7 = 3;
			iVar1 = 425;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[34]));
			break;
		
		case 42:
			iVar6 = 7;
			iVar7 = 4;
			iVar1 = 420;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[35]));
			break;
		
		case 43:
			iVar6 = 7;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 44:
			iVar6 = 7;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		case 45:
			iVar6 = 8;
			iVar7 = 0;
			iVar1 = 1150;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[36]));
			break;
		
		case 46:
			iVar6 = 8;
			iVar7 = 1;
			iVar1 = 1145;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[37]));
			break;
		
		case 47:
			iVar6 = 8;
			iVar7 = 2;
			iVar1 = 1140;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[38]));
			break;
		
		case 48:
			iVar6 = 8;
			iVar7 = 3;
			iVar1 = 1135;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[39]));
			break;
		
		case 49:
			iVar6 = 8;
			iVar7 = 4;
			iVar1 = 1130;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[40]));
			break;
		
		case 50:
			iVar6 = 9;
			iVar7 = 0;
			iVar1 = 395;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[41]));
			break;
		
		case 51:
			iVar6 = 9;
			iVar7 = 1;
			iVar1 = 390;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[42]));
			break;
		
		case 52:
			iVar6 = 9;
			iVar7 = 2;
			iVar1 = 385;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[43]));
			break;
		
		case 53:
			iVar6 = 9;
			iVar7 = 3;
			iVar1 = 380;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[44]));
			break;
		
		case 54:
			iVar6 = 9;
			iVar7 = 4;
			iVar1 = 375;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[45]));
			break;
		
		case 55:
			iVar6 = 9;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 56:
			iVar6 = 9;
			iVar7 = 6;
			iVar1 = 0;
			break;
		
		case 57:
			iVar6 = 10;
			iVar7 = 0;
			iVar1 = 500;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[46]));
			break;
		
		case 58:
			iVar6 = 10;
			iVar7 = 1;
			iVar1 = 495;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[47]));
			break;
		
		case 59:
			iVar6 = 10;
			iVar7 = 2;
			iVar1 = 490;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[48]));
			break;
		
		case 60:
			iVar6 = 10;
			iVar7 = 3;
			iVar1 = 485;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[49]));
			break;
		
		case 61:
			iVar6 = 10;
			iVar7 = 4;
			iVar1 = 480;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[50]));
			break;
		
		case 62:
			iVar6 = 10;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 63:
			iVar6 = 11;
			iVar7 = 0;
			iVar1 = 1050;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[51]));
			break;
		
		case 64:
			iVar6 = 11;
			iVar7 = 1;
			iVar1 = 1045;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[52]));
			break;
		
		case 65:
			iVar6 = 11;
			iVar7 = 2;
			iVar1 = 1040;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[53]));
			break;
		
		case 66:
			iVar6 = 11;
			iVar7 = 3;
			iVar1 = 1035;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[54]));
			break;
		
		case 67:
			iVar6 = 11;
			iVar7 = 4;
			iVar1 = 1030;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[55]));
			break;
		
		case 68:
			iVar6 = 11;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 69:
			iVar6 = 12;
			iVar7 = 0;
			iVar1 = 550;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[56]));
			break;
		
		case 70:
			iVar6 = 12;
			iVar7 = 1;
			iVar1 = 545;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[57]));
			break;
		
		case 71:
			iVar6 = 12;
			iVar7 = 2;
			iVar1 = 540;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[58]));
			break;
		
		case 72:
			iVar6 = 12;
			iVar7 = 3;
			iVar1 = 535;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[59]));
			break;
		
		case 73:
			iVar6 = 12;
			iVar7 = 4;
			iVar1 = 530;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[60]));
			break;
		
		case 74:
			iVar6 = 13;
			iVar7 = 0;
			iVar1 = 1200;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[61]));
			break;
		
		case 75:
			iVar6 = 13;
			iVar7 = 1;
			iVar1 = 1195;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[62]));
			break;
		
		case 76:
			iVar6 = 13;
			iVar7 = 2;
			iVar1 = 1190;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[63]));
			break;
		
		case 77:
			iVar6 = 13;
			iVar7 = 3;
			iVar1 = 1185;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[64]));
			break;
		
		case 78:
			iVar6 = 13;
			iVar7 = 4;
			iVar1 = 1180;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[65]));
			break;
		
		case 79:
			iVar6 = 13;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		case 80:
			iVar6 = 14;
			iVar7 = 0;
			iVar1 = 2000;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[66]));
			break;
		
		case 81:
			iVar6 = 14;
			iVar7 = 1;
			iVar1 = 1995;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[67]));
			break;
		
		case 82:
			iVar6 = 14;
			iVar7 = 2;
			iVar1 = 1990;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[68]));
			break;
		
		case 83:
			iVar6 = 14;
			iVar7 = 3;
			iVar1 = 1985;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[69]));
			break;
		
		case 84:
			iVar6 = 14;
			iVar7 = 4;
			iVar1 = 1980;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[70]));
			break;
		
		case 85:
			iVar6 = 15;
			iVar7 = 0;
			iVar1 = 475;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[71]));
			break;
		
		case 86:
			iVar6 = 15;
			iVar7 = 1;
			iVar1 = 470;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[72]));
			break;
		
		case 87:
			iVar6 = 15;
			iVar7 = 2;
			iVar1 = 465;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[73]));
			break;
		
		case 88:
			iVar6 = 15;
			iVar7 = 3;
			iVar1 = 460;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[74]));
			break;
		
		case 89:
			iVar6 = 15;
			iVar7 = 4;
			iVar1 = 455;
			iVar1 = system::round((system::to_float(iVar1) * Global_262145.f_2528[75]));
			break;
		
		case 90:
			iVar6 = 15;
			iVar7 = 5;
			iVar1 = 0;
			break;
		
		default:
			Global_69311[0 /*14*/].f_5 = 3;
			func_24(iVar10, iParam0, 91);
			return;
			break;
	}
	StringCopy(&Var2, "H_FMM_", 16);
	StringIntConCat(&Var2, iVar6, 16);
	StringConCat(&Var2, "_", 16);
	StringIntConCat(&Var2, iVar7, 16);
	func_13(&(Global_69311[0 /*14*/]), iVar10, iParam0, &Var2, iVar6, iVar7, iVar1, iVar0, iVar8, iVar9, 0);
}

void func_249(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4C211
{
	int iVar0;
	
	iVar0 = Global_2469339[iParam0 /*5*/][func_17(iParam2)];
	if (iVar0 != 0)
	{
		stats::stat_set_int(iVar0, iParam1, iParam3);
	}
}

bool func_250(int iParam0, int iParam1, int iParam2)//Position - 0x4C23C
{
	var uVar0;
	
	uVar0 = func_251(iParam1);
	if (Global_101154.f_1826.f_539[uVar0 /*65*/].f_63 != -99)
	{
		if (!func_101(iParam0, Global_101154.f_1826.f_539[uVar0 /*65*/].f_64, Global_101154.f_1826.f_539[uVar0 /*65*/].f_63))
		{
			*iParam2 = Global_101154.f_1826.f_539[uVar0 /*65*/].f_62;
			Global_101154.f_1826.f_539[uVar0 /*65*/].f_63 = -99;
			Global_101154.f_1826.f_539[uVar0 /*65*/].f_64 = 1;
			return true;
		}
	}
	return false;
}

int func_251(int iParam0)//Position - 0x4C2C8
{
	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;
}

bool func_252(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 - 0x4C303
{
	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 uVar27;
	var uVar37;
	struct<14> Var53;
	var uVar67;
	
	if (ped::is_ped_injured(iParam0) || iParam2 == -99)
	{
		return false;
	}
	Global_69310++;
	iVar5 = -99;
	iVar6 = -99;
	iVar7 = -99;
	iVar8 = -99;
	iVar9 = -99;
	iVar10 = entity::get_entity_model(iParam0);
	if (iParam5 == 0)
	{
		Global_69311[1 /*14*/] = { func_10(iVar10, iParam1, iParam2) };
		if (!func_215(iParam3))
		{
			Global_69310 = (Global_69310 - 1);
			return false;
		}
		func_265(iParam1);
	}
	if (iParam1 == 12)
	{
		if (iParam7 == 1)
		{
			if (iVar10 == joaat("player_one"))
			{
				iVar5 = func_95(iParam0, 8);
				if (iVar5 != 9)
				{
					iVar5 = -99;
				}
			}
			iVar6 = func_95(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_97(iParam0, 1);
			if (!func_106(iVar10, 14, iVar7))
			{
				iVar7 = -99;
			}
			iVar8 = func_97(iParam0, 0);
			if (!func_105(iVar10, 14, iVar8) && !func_103(iVar10, 14, iVar8))
			{
				iVar8 = -99;
			}
			if (iVar10 == joaat("player_one"))
			{
				iVar9 = func_97(iParam0, 2);
			}
		}
		ped::clear_all_ped_props(iParam0);
		uVar11 = 15;
		if (iParam5 == 1)
		{
			uVar11 = { Global_69354 };
		}
		else
		{
			uVar11 = { func_88(iVar10, iParam2) };
		}
		iVar0 = 0;
		while (iVar0 <= 14)
		{
			if (uVar11[iVar0] != -99)
			{
				Global_69311[1 /*14*/] = { func_10(iVar10, iVar0, uVar11[iVar0]) };
				if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 0))
				{
					if (iVar0 == 13)
					{
						uVar27 = 9;
						if (iParam5 == 1)
						{
							uVar27 = { Global_69370 };
						}
						else
						{
							uVar27 = { func_82(iVar10, uVar11[iVar0]) };
						}
						iVar1 = 0;
						while (iVar1 <= 8)
						{
							Global_69311[1 /*14*/] = { func_10(iVar10, 14, uVar27[iVar1]) };
							func_211(iParam0, Global_69311[1 /*14*/].f_12, Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4);
							func_265(14);
							if (Global_69310 == 1)
							{
								iVar2 = 0;
								while (iVar2 < 15)
								{
									iVar3 = func_257(iParam0, iVar10, 14, uVar27[iVar1], iVar2, 0);
									if (iVar3 != -99)
									{
										func_252(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0);
									}
									iVar2++;
								}
							}
							iVar1++;
						}
					}
					else if (iVar0 != 14 && iVar0 != 12)
					{
						if ((iVar10 == joaat("player_one") && iVar0 == 2) && uVar11[iVar0] == 20)
						{
							func_256(iVar10, 2, 20, &iVar4);
						}
						if (iParam4 == -1)
						{
							ped::set_ped_component_variation(iParam0, func_25(iVar0), Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_25(iVar0)));
						}
						else
						{
							ped::set_ped_component_variation(iParam0, func_25(iVar0), Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4, iParam4);
						}
						func_265(iVar0);
						if (Global_69310 == 1)
						{
							iVar2 = 0;
							while (iVar2 < 15)
							{
								iVar3 = func_257(iParam0, iVar10, iVar0, uVar11[iVar0], iVar2, 0);
								if (iVar3 != -99)
								{
									func_252(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0);
								}
								iVar2++;
							}
						}
					}
				}
			}
			else if (iVar0 != 12 && iVar0 != 14)
			{
				Global_69311[1 /*14*/] = { func_10(iVar10, iVar0, func_94(iParam0, iVar0, -1)) };
				if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 3))
				{
					if (iVar0 == 2)
					{
						if (iVar10 == joaat("player_one"))
						{
							if (func_266(iParam0, iVar10, &iVar4, 1))
							{
								func_252(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0);
							}
						}
					}
					else
					{
						uVar37 = { func_88(iVar10, 0) };
						func_252(iParam0, iVar0, uVar37[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0);
					}
				}
			}
			iVar0++;
		}
		if (iParam7 == 1)
		{
			Var53 = { func_10(iVar10, 8, iVar5) };
			if (iVar5 != -99)
			{
				if (func_102(iVar10, iParam2, 8, iVar5, &uVar11, &Var53))
				{
					func_252(iParam0, 8, iVar5, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0);
				}
			}
			Var53 = { func_10(iVar10, 9, iVar6) };
			if (iVar6 != -99)
			{
				if (func_102(iVar10, iParam2, 9, iVar6, &uVar11, &Var53))
				{
					func_252(iParam0, 9, iVar6, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0);
				}
			}
			Var53 = { func_10(iVar10, 14, iVar7) };
			if (iVar7 != -99)
			{
				if (func_102(iVar10, iParam2, 14, iVar7, &uVar11, &Var53))
				{
					func_252(iParam0, 14, iVar7, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0);
				}
			}
			Var53 = { func_10(iVar10, 14, iVar8) };
			if (iVar8 != -99)
			{
				if (func_102(iVar10, iParam2, 14, iVar8, &uVar11, &Var53))
				{
					func_252(iParam0, 14, iVar8, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0);
				}
			}
			Var53 = { func_10(iVar10, 14, iVar9) };
			if (iVar9 != -99)
			{
				if (func_102(iVar10, iParam2, 14, iVar9, &uVar11, &Var53))
				{
					func_252(iParam0, 14, iVar9, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0);
				}
			}
		}
	}
	else if (iParam1 == 13)
	{
		uVar67 = { func_82(iVar10, iParam2) };
		iVar1 = 0;
		while (iVar1 <= 8)
		{
			Global_69311[1 /*14*/] = { func_10(iVar10, 14, uVar67[iVar1]) };
			func_211(iParam0, Global_69311[1 /*14*/].f_12, Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4);
			func_265(14);
			if (Global_69310 == 1)
			{
				iVar2 = 0;
				while (iVar2 < 15)
				{
					iVar3 = func_257(iParam0, iVar10, 14, uVar67[iVar1], iVar2, 0);
					if (iVar3 != -99)
					{
						func_252(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					}
					iVar2++;
				}
			}
			iVar1++;
		}
	}
	else if (iParam1 == 14)
	{
		func_211(iParam0, Global_69311[1 /*14*/].f_12, Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4);
		func_265(iParam1);
		if (Global_69310 == 1)
		{
			iVar2 = 0;
			while (iVar2 < 15)
			{
				iVar3 = func_257(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
				if (iVar3 != -99)
				{
					func_252(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				}
				iVar2++;
			}
		}
	}
	else
	{
		if (iParam4 == -1)
		{
			ped::set_ped_component_variation(iParam0, func_25(iParam1), Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4, ped::get_ped_palette_variation(iParam0, func_25(iParam1)));
		}
		else
		{
			ped::set_ped_component_variation(iParam0, func_25(iParam1), Global_69311[1 /*14*/].f_3, Global_69311[1 /*14*/].f_4, iParam4);
		}
		if (Global_69310 == 1)
		{
			iVar2 = 0;
			while (iVar2 < 15)
			{
				iVar3 = func_257(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
				if (iVar3 != -99)
				{
					func_252(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				}
				iVar2++;
			}
		}
		if (iParam6 == 0)
		{
			func_253(iVar10, iParam1, iParam2);
		}
	}
	if (Global_69310 == 1)
	{
		if (func_266(iParam0, iVar10, &iVar4, 0))
		{
			func_252(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0);
		}
		if (func_250(iParam0, iVar10, &iVar4))
		{
			func_252(iParam0, 1, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0);
		}
	}
	Global_69310 = (Global_69310 - 1);
	return true;
}

void func_253(int iParam0, int iParam1, int iParam2)//Position - 0x4CAF0
{
	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_255(iParam0, 12, iVar0))
	{
		if (func_254(iParam0, iParam1, iParam2))
		{
			uVar1 = func_251(iParam0);
			if (iParam1 == 3)
			{
				Global_101154.f_1826.f_539.f_196[uVar1] = iParam2;
			}
			else if (iParam1 == 4)
			{
				Global_101154.f_1826.f_539.f_200[uVar1] = iParam2;
			}
		}
	}
}

bool func_254(int iParam0, int iParam1, int iParam2)//Position - 0x4CB7A
{
	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_255(int iParam0, int iParam1, int iParam2)//Position - 0x4CC58
{
	Global_69311[1 /*14*/] = { func_10(iParam0, iParam1, iParam2) };
	return gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 2);
}

bool func_256(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4CC82
{
	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_251(iParam0);
		Global_101154.f_1826.f_539[uVar0 /*65*/].f_60 = iParam2;
		Global_101154.f_1826.f_539[uVar0 /*65*/].f_61 = iParam1;
		return true;
	}
	return false;
}

int func_257(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x4CF89
{
	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_95(iParam0, 1);
				iVar0 = func_264(iParam1, iParam3, iVar1);
				break;
			
			case 1:
				iVar2 = func_95(iParam0, 2);
				iVar0 = func_264(iParam1, iVar2, iParam3);
				break;
		}
	}
	else if (iParam4 == 2)
	{
		func_256(iParam1, iParam2, iParam3, &iVar0);
	}
	else if (iParam4 == 1)
	{
		func_263(iParam1, iParam2, iParam3, &iVar0);
	}
	else if (iParam4 == 6)
	{
		if (iParam2 == 4)
		{
			if (func_262(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_261(iParam0, 3, 44, 59))
									{
										iVar0 = 44;
									}
								}
								else if (((iParam3 >= 8 && iParam3 <= 17) || (iParam3 >= 18 && iParam3 <= 27)) || (iParam3 >= 28 && iParam3 <= 43))
								{
									if (!func_261(iParam0, 3, 135, 150))
									{
										iVar0 = func_260(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_261(iParam0, 3, 209, 222))
									{
										iVar0 = func_260(iParam1, 3, 209, 222);
									}
								}
								else if ((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8))
								{
									if (!func_261(iParam0, 3, 243, 258))
									{
										if (iParam3 == 1 || iParam3 == 5)
										{
											iVar0 = func_260(iParam1, 3, 243, 246);
										}
										else if (iParam3 == 2 || iParam3 == 6)
										{
											iVar0 = func_260(iParam1, 3, 247, 250);
										}
										else if (iParam3 == 3 || iParam3 == 7)
										{
											iVar0 = func_260(iParam1, 3, 251, 254);
										}
										else if (iParam3 == 4 || iParam3 == 8)
										{
											iVar0 = func_260(iParam1, 3, 255, 258);
										}
									}
								}
								else if (iParam3 == 41 || iParam3 == 42)
								{
									if (!func_261(iParam0, 3, 176, 191) && !func_261(iParam0, 3, 227, 242))
									{
										iVar0 = func_260(iParam1, 3, 176, 191);
									}
								}
								break;
						}
						break;
					
					case 8:
						if (iParam2 == 11 || iParam2 == 3)
						{
							if (iParam2 == 11)
							{
								iVar5 = iParam3;
								iVar4 = func_95(iParam0, 3);
							}
							else if (iParam2 == 3)
							{
								iVar4 = iParam3;
								iVar5 = func_95(iParam0, 11);
								iVar5 = func_259(iParam1, iVar4, iVar5, 0);
							}
							iVar3 = func_95(iParam0, 8);
							if (((iVar5 >= 5 && iVar5 <= 8) || (iVar5 >= 25 && iVar5 <= 40)) || (iVar5 >= 42 && iVar5 <= 43))
							{
								if (!func_258(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_95(iParam0, 8);
								iVar8 = func_95(iParam0, 11);
								if (((iVar7 >= 27 && iVar7 <= 42) || (iVar7 >= 43 && iVar7 <= 58)) || (iVar7 >= 59 && iVar7 <= 74))
								{
									iVar0 = func_259(iParam1, iParam3, iVar8, 0);
								}
								else
								{
									iVar0 = func_259(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_95(iParam0, 11);
								iVar0 = func_259(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_258(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4)//Position - 0x4DB3C
{
	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_259(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4DE20
{
	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_260(iParam0, 11, 9, 24);
			}
			else
			{
				iParam2 = func_260(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_260(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4E0E7
{
	int iVar0;
	int iVar1;
	
	iVar0 = iParam2;
	while (iVar0 <= (iParam3 - 1))
	{
		iVar1 = iVar0;
		if (func_255(iParam0, iParam1, iVar1))
		{
			return iVar1;
		}
		iVar0++;
	}
	return -99;
}

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

bool func_262(int iParam0, int iParam1, int iParam2)//Position - 0x4E147
{
	*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;
}

bool func_263(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4E411
{
	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_251(iParam0);
		Global_101154.f_1826.f_539[uVar0 /*65*/].f_63 = iParam2;
		Global_101154.f_1826.f_539[uVar0 /*65*/].f_64 = iParam1;
		return true;
	}
	return false;
}

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

void func_265(int iParam0)//Position - 0x4E7F2
{
	if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 1) && !gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 6))
	{
		func_9(iParam0, Global_69311[1 /*14*/].f_5, Global_69311[1 /*14*/].f_2, 2, Global_69311[1 /*14*/].f_1, 1, 0);
	}
	if (gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 1) && gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 6))
	{
		if (iParam0 == 12)
		{
			func_214(Global_2621444, 2, 1, 1, -1);
		}
		else if (iParam0 == 13)
		{
		}
		else if (iParam0 == 14)
		{
			func_214(Global_2621444, 2, 1, 1, -1);
		}
		else
		{
			func_214(Global_2621444, 2, 1, 1, -1);
		}
	}
}

bool func_266(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4E8AA
{
	var uVar0;
	
	uVar0 = func_251(iParam1);
	if (Global_101154.f_1826.f_539[uVar0 /*65*/].f_60 != -99)
	{
		if (!func_101(iParam0, Global_101154.f_1826.f_539[uVar0 /*65*/].f_61, Global_101154.f_1826.f_539[uVar0 /*65*/].f_60) || iParam3 == 1)
		{
			*iParam2 = Global_101154.f_1826.f_539[uVar0 /*65*/].f_59;
			Global_101154.f_1826.f_539[uVar0 /*65*/].f_60 = -99;
			Global_101154.f_1826.f_539[uVar0 /*65*/].f_61 = 2;
			return true;
		}
	}
	return false;
}

void func_267(int iParam0)//Position - 0x4E940
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 12)
	{
		Global_101154.f_1826.f_539[iParam0 /*65*/].f_13[iVar0] = 0;
		Global_101154.f_1826.f_539[iParam0 /*65*/][iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 9)
	{
		Global_101154.f_1826.f_539[iParam0 /*65*/].f_39[iVar0] = -1;
		Global_101154.f_1826.f_539[iParam0 /*65*/].f_49[iVar0] = -1;
		iVar0++;
	}
	switch (iParam0)
	{
		case 0:
			Global_101154.f_1826.f_539[iParam0 /*65*/].f_59 = 0;
			break;
		
		case 1:
			Global_101154.f_1826.f_539[1 /*65*/].f_13[3] = 8;
			Global_101154.f_1826.f_539[1 /*65*/].f_13[4] = 8;
			Global_101154.f_1826.f_539[1 /*65*/].f_13[6] = 6;
			Global_101154.f_1826.f_539[1 /*65*/].f_13[8] = 14;
			Global_101154.f_1826.f_539[1 /*65*/].f_13[2] = 0;
			Global_101154.f_1826.f_539[1 /*65*/][2] = 0;
			Global_101154.f_1826.f_539[iParam0 /*65*/].f_59 = 0;
			break;
		
		case 2:
			Global_101154.f_1826.f_539[2 /*65*/].f_13[3] = 0;
			Global_101154.f_1826.f_539[2 /*65*/].f_13[4] = 23;
			Global_101154.f_1826.f_539[2 /*65*/].f_13[6] = 10;
			Global_101154.f_1826.f_539[iParam0 /*65*/].f_59 = 0;
			break;
	}
	Global_101154.f_1826.f_539[iParam0 /*65*/].f_60 = -99;
	Global_101154.f_1826.f_539[iParam0 /*65*/].f_61 = 2;
	Global_101154.f_1826.f_539[iParam0 /*65*/].f_62 = 0;
	Global_101154.f_1826.f_539[iParam0 /*65*/].f_63 = -99;
	Global_101154.f_1826.f_539[iParam0 /*65*/].f_64 = 1;
	Global_91068[0 /*65*/] = { Global_101154.f_1826.f_539[0 /*65*/] };
	Global_91068[1 /*65*/] = { Global_101154.f_1826.f_539[1 /*65*/] };
	Global_91068[2 /*65*/] = { Global_101154.f_1826.f_539[2 /*65*/] };
}

int func_268(int iParam0)//Position - 0x4EB6A
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	
	iVar0 = 0;
	iVar1 = 0;
	while (iVar1 < 12)
	{
		iVar4 = iVar1;
		iVar3 = ped::get_number_of_ped_drawable_variations(iParam0, iVar4);
		iVar2 = 0;
		while (iVar2 < iVar3)
		{
			iVar0 = (iVar0 + ped::get_number_of_ped_texture_variations(iParam0, iVar4, iVar2));
			iVar2++;
		}
		iVar1++;
	}
	iVar5 = 0;
	while (iVar5 < 9)
	{
		iVar8 = iVar5;
		iVar7 = ped::get_number_of_ped_prop_drawable_variations(iParam0, iVar8);
		iVar6 = 0;
		while (iVar6 < iVar7)
		{
			iVar0 = (iVar0 + ped::get_number_of_ped_prop_texture_variations(iParam0, iVar8, iVar6));
			iVar6++;
		}
		iVar5++;
	}
	return iVar0;
}

int func_269(int iParam0)//Position - 0x4EBFD
{
	return iParam0 < 3;
}

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

bool func_271()//Position - 0x4EC46
{
	if (Global_3)
	{
		return true;
	}
	if (Global_91278 == 7 || Global_91278 == 8)
	{
		return true;
	}
	return false;
}

bool func_272(int iParam0, int iParam1)//Position - 0x4EC73
{
	int iVar0;
	
	iVar0 = gameplay::get_game_timer();
	if ((iVar0 - *iParam0) > iParam1)
	{
		return true;
	}
	return false;
}

void func_273()//Position - 0x4EC91
{
	func_540();
	switch (iLocal_3829)
	{
		case 0:
			func_489();
			break;
		
		case 1:
			pathfind::set_roads_in_area(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, false, 1);
			pathfind::set_ped_paths_in_area(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, false, 0);
			ped::add_scenario_blocking_area(798.06f, -1982.81f, 100f, 1372.22f, -2752.3f, -100f, 0, 1, 1, 1);
			streaming::load_all_objects_now();
			func_443(2, 0);
			entity::set_entity_coords(player::player_ped_id(), 790.8106f, -2330.13f, 61.2638f, 1, false, 0, 1);
			entity::set_entity_heading(player::player_ped_id(), 137.0764f);
			func_442(&(Local_3473[0 /*165*/]), 2, player::player_ped_id(), "trevor", 0, 1);
			func_442(&(Local_3473[0 /*165*/]), 0, 0, "michael", 0, 1);
			iLocal_3224 = 4;
			streaming::request_model(func_93(0));
			streaming::request_model(func_93(1));
			streaming::request_model(Local_1177.f_1);
			vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
			streaming::request_model(Local_1207.f_1);
			vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
			streaming::request_model(Local_2933.f_2);
			vehicle::request_vehicle_recording(2, "lkcountry");
			vehicle::request_vehicle_recording(3, "lkcountry");
			vehicle::request_vehicle_recording(4, "lkcountry");
			vehicle::request_vehicle_recording(5, "lkcountry");
			vehicle::request_vehicle_recording(10, "lkcountry");
			vehicle::request_vehicle_recording(11, "lkcountry");
			vehicle::request_vehicle_recording(12, "lkcountry");
			vehicle::request_vehicle_recording(14, "lkcountry");
			vehicle::request_vehicle_recording(15, "lkcountry");
			vehicle::request_vehicle_recording(16, "lkcountry");
			streaming::request_anim_dict("missfbi4");
			streaming::request_anim_dict("misssagrab");
			ai::request_waypoint_recording("heat1");
			ai::request_waypoint_recording("heat2");
			ai::request_waypoint_recording("heat3");
			audio::request_ambient_audio_bank("SCRIPT\FBI_04_HEAT_02", 0);
			audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false);
			streaming::load_scene(790.8106f, -2330.13f, 61.2638f);
			func_438(1, 1, 0f, 0f, 0, 1);
			iLocal_1126 = 2;
			break;
		
		case 2:
			func_435();
			break;
		
		case 3:
			func_433();
			func_432(player::player_ped_id(), 0);
			func_432(player::player_ped_id(), 0);
			if (!weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_stickybomb"), 0))
			{
				weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_stickybomb"), 5, true, true);
			}
			else if (weapon::get_ammo_in_ped_weapon(player::player_ped_id(), joaat("weapon_stickybomb")) < 5)
			{
				weapon::set_ped_ammo(player::player_ped_id(), joaat("weapon_stickybomb"), 5);
			}
			weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_stickybomb"), true);
			break;
		
		case 4:
			Global_88063 = 4;
			func_402();
			break;
		
		case 5:
			func_332();
			break;
		
		case 6:
			func_274();
			break;
	}
}

void func_274()//Position - 0x4EF43
{
	if (iLocal_3833)
	{
		func_331(-2557.475f, 1912.891f, 167.8713f, 46.22f, 1, 0);
	}
	streaming::request_model(Local_2568.f_1);
	streaming::request_model(Local_1464.f_1);
	streaming::request_model(Local_1615.f_1);
	streaming::request_model(func_93(0));
	if (iLocal_3833)
	{
		func_327(0, -1, 1);
	}
	while (((!streaming::has_model_loaded(Local_2568.f_1) || !streaming::has_model_loaded(Local_1464.f_1)) || !streaming::has_model_loaded(Local_1615.f_1)) || !streaming::has_model_loaded(func_93(0)))
	{
		system::wait(0);
	}
	gameplay::clear_area(-2557.475f, 1912.891f, 167.8713f, 1000f, 1, 0, 0, false);
	ai::clear_ped_tasks_immediately(player::player_ped_id());
	func_443(0, 1);
	func_324(player::player_ped_id());
	func_252(player::player_ped_id(), 14, 112, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	entity::set_entity_coords(player::player_ped_id(), -2557.475f, 1912.891f, 167.8713f, 1, false, 0, 1);
	entity::set_entity_heading(player::player_ped_id(), 46.2899f);
	Local_1464 = vehicle::create_vehicle(Local_1464.f_1, Local_1464.f_3, Local_1464.f_6, 1, true);
	vehicle::remove_vehicle_window(Local_1464, 0);
	vehicle::remove_vehicle_window(Local_1464, 1);
	vehicle::set_vehicle_on_ground_properly(Local_1464);
	vehicle::set_vehicle_colours(Local_1464, 0, 0);
	func_321(&Local_2568, 29, Local_2568.f_3, Local_2568.f_9, 1);
	func_320(Local_2568, 0);
	func_319(&Local_2568, 1);
	ped::set_blocking_of_non_temporary_events(Local_2568, true);
	ped::set_ped_component_variation(Local_2568, 0, 0, 0, 0);
	ped::set_ped_component_variation(Local_2568, 1, 0, 0, 0);
	ped::set_ped_component_variation(Local_2568, 2, 0, 0, 0);
	ped::set_ped_component_variation(Local_2568, 3, 2, 1, 0);
	ped::set_ped_component_variation(Local_2568, 4, 2, 1, 0);
	ped::set_ped_component_variation(Local_2568, 5, 0, 0, 0);
	ped::set_ped_component_variation(Local_2568, 6, 0, 0, 0);
	ped::set_ped_component_variation(Local_2568, 7, 0, 0, 0);
	ped::set_ped_component_variation(Local_2568, 8, 4, 0, 0);
	ped::set_ped_component_variation(Local_2568, 9, 0, 0, 0);
	ped::set_ped_component_variation(Local_2568, 10, 1, 0, 0);
	ped::set_ped_component_variation(Local_2568, 11, 0, 0, 0);
	func_284(&Local_1615, 0, -2551.931f, 1912.036f, 168.0432f, 244.1441f, 0, 0);
	cutscene::request_cutscene("FBI_4_MCS_2_CONCAT", 8);
	while (!cutscene::has_cutscene_loaded())
	{
		cutscene::_0x2A56C06EBEF2B0D9("michael", player::player_ped_id(), 0);
		if (!ped::is_ped_injured(Local_2568))
		{
			cutscene::_0x2A56C06EBEF2B0D9("devin", Local_2568, 0);
		}
		system::wait(0);
	}
	if (!iLocal_3833)
	{
		streaming::load_scene(entity::get_entity_coords(player::player_ped_id(), 1));
	}
	if (!ped::is_ped_injured(Local_2568))
	{
		cutscene::register_entity_for_cutscene(Local_2568, "devin", 0, Local_2568.f_1, 0);
	}
	if (vehicle::is_vehicle_driveable(Local_1464, 0))
	{
		cutscene::register_entity_for_cutscene(Local_1464, "devins_car", 0, Local_1464.f_1, 0);
	}
	func_275(1, 1, 1, 0);
	cutscene::start_cutscene(0);
	while (!cutscene::is_cutscene_playing())
	{
		system::wait(0);
	}
	iLocal_3256 = 1;
	cam::do_screen_fade_in(800);
	iLocal_1126 = 12;
}

void func_275(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x4F220
{
	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_283(1);
		ui::_0xA8FDB297A8D25FBA();
		ui::_0xFDB423997FA30340();
		if (Global_14413.f_1 > 3)
		{
			if (audio::is_mobile_phone_call_ongoing())
			{
				audio::stop_scripted_conversation(false);
			}
			if (!func_282())
			{
				Global_14413.f_1 = 3;
			}
			Global_15712 = 5;
		}
		func_281(1, iParam3, iParam2, 0);
		Global_55755 = 1;
		Global_68061 = 1;
		Global_69487 = 1;
	}
	else
	{
		func_283(0);
		ui::_0xE1CD1E48E025E661();
		Global_55755 = 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_281(0, iParam3, iParam2, 0);
		if (network::network_is_game_in_progress())
		{
			if (((!ped::is_ped_injured(player::player_ped_id()) && !func_279(player::player_id())) && !func_277(player::player_id(), 0)) && !func_276())
			{
				entity::set_entity_invincible(player::player_ped_id(), false);
			}
		}
		else if (!ped::is_ped_injured(player::player_ped_id()) && !func_279(player::player_id()))
		{
			entity::set_entity_invincible(player::player_ped_id(), false);
		}
		Global_69487 = 0;
	}
}

int func_276()//Position - 0x4F339
{
	return gameplay::is_bit_set(Global_1587523[player::player_id() /*444*/].f_39.f_18, 14);
}

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

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

bool func_279(int iParam0)//Position - 0x4F3E2
{
	if (func_277(iParam0, 0))
	{
		return true;
	}
	if (func_280())
	{
		if (iParam0 == player::player_id())
		{
			return true;
		}
	}
	if (gameplay::is_bit_set(Global_2418472[iParam0 /*313*/].f_194, 2))
	{
		return true;
	}
	return false;
}

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

int func_281(int iParam0, int iParam1, var uParam2, int iParam3)//Position - 0x4F435
{
	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_282()//Position - 0x4F468
{
	if (Global_14413.f_1 == 1 || Global_14413.f_1 == 0)
	{
		return true;
	}
	return false;
}

void func_283(int iParam0)//Position - 0x4F48F
{
	if (iParam0 == 1)
	{
		gameplay::set_bit(&Global_2283, 13);
	}
	else
	{
		gameplay::clear_bit(&Global_2283, 13);
	}
}

bool func_284(int iParam0, int iParam1, vector3 vParam2, float fParam5, int iParam6, int iParam7)//Position - 0x4F4B2
{
	int iVar0;
	var uVar1;
	struct<97> Var5;
	int iVar103;
	int iVar104;
	int iVar105;
	char cVar106[16];
	int iVar110;
	
	if (func_269(iParam1))
	{
		Var5.f_11 = 12;
		Var5.f_31 = 49;
		Var5.f_81 = 2;
		func_318(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_101154.f_1826.f_539.f_3544) && Global_101154.f_7775.f_99.f_58[131])
		{
			Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/] = 0;
		}
		if (Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/] == Var5)
		{
			streaming::request_model(Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/]);
			if (streaming::has_model_loaded(Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/]))
			{
				*iParam0 = vehicle::create_vehicle(Global_101154.f_1826.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_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_5, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_6);
				vehicle::set_vehicle_extra_colours(*iParam0, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_7, Global_101154.f_1826.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_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_11[iVar103]);
					iVar103++;
				}
				if (Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_24)
				{
					vehicle::set_convertible_roof(*iParam0, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_24);
				}
				if (func_317(&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_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_27));
					if (Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_26 >= 0 && Global_101154.f_1826.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_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_26);
					}
				}
				vehicle::set_vehicle_tyre_smoke_color(*iParam0, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_84, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_85, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_86);
				vehicle::set_vehicle_tyres_can_burst(*iParam0, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_88);
				vehicle::set_vehicle_window_tint(*iParam0, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_87);
				vehicle::_set_vehicle_neon_lights_colour(*iParam0, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_93, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_94, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_95);
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 2, gameplay::is_bit_set(Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_92, 28));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 3, gameplay::is_bit_set(Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_92, 29));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 0, gameplay::is_bit_set(Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_92, 30));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 1, gameplay::is_bit_set(Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_92, 31));
				if (vehicle::get_vehicle_livery_count(*iParam0) > 1 && Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_89 >= 0)
				{
					vehicle::set_vehicle_livery(*iParam0, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_89);
				}
				if (Global_101154.f_1826.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_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_90 == 6)
							{
								vehicle::set_vehicle_wheel_type(*iParam0, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_90);
							}
						}
						else
						{
							vehicle::set_vehicle_wheel_type(*iParam0, Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_90);
						}
					}
				}
				func_313(iParam0, &(Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/].f_31), &(Global_101154.f_1826.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_311(iParam0);
					}
				}
				if (iParam6)
				{
					streaming::set_model_as_no_longer_needed(Global_101154.f_1826.f_539.f_1635[0 /*295*/][iParam1 /*98*/]);
				}
				func_310(*iParam0, iParam1);
				return true;
			}
		}
		else if (Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/] == Var5)
		{
			streaming::request_model(Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/]);
			if (streaming::has_model_loaded(Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/]))
			{
				*iParam0 = vehicle::create_vehicle(Global_101154.f_1826.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_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_5, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_6);
				vehicle::set_vehicle_extra_colours(*iParam0, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_7, Global_101154.f_1826.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_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_11[iVar104]);
					iVar104++;
				}
				if (Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_24)
				{
					vehicle::set_convertible_roof(*iParam0, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_24);
				}
				if (func_317(&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_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_27));
					if (Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_26 >= 0 && Global_101154.f_1826.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_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_26);
					}
				}
				vehicle::set_vehicle_tyre_smoke_color(*iParam0, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_84, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_85, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_86);
				vehicle::set_vehicle_tyres_can_burst(*iParam0, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_88);
				vehicle::set_vehicle_window_tint(*iParam0, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_87);
				vehicle::_set_vehicle_neon_lights_colour(*iParam0, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_93, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_94, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_95);
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 2, gameplay::is_bit_set(Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_92, 28));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 3, gameplay::is_bit_set(Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_92, 29));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 0, gameplay::is_bit_set(Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_92, 30));
				vehicle::_set_vehicle_neon_light_enabled(*iParam0, 1, gameplay::is_bit_set(Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_92, 31));
				if (vehicle::get_vehicle_livery_count(*iParam0) > 1 && Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_89 >= 0)
				{
					vehicle::set_vehicle_livery(*iParam0, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_89);
				}
				if (Global_101154.f_1826.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_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_90 == 6)
							{
								vehicle::set_vehicle_wheel_type(*iParam0, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_90);
							}
						}
						else
						{
							vehicle::set_vehicle_wheel_type(*iParam0, Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_90);
						}
					}
				}
				func_313(iParam0, &(Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/].f_31), &(Global_101154.f_1826.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_311(iParam0);
					}
				}
				if (iParam6)
				{
					streaming::set_model_as_no_longer_needed(Global_101154.f_1826.f_539.f_1635[1 /*295*/][iParam1 /*98*/]);
				}
				func_310(*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_317(&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_313(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_101154.f_7775.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_311(iParam0);
					}
				}
				else if (((iParam1 == 0 && !Global_101154.f_1826.f_539.f_3544) && Global_101154.f_7775.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_101154.f_1826.f_539.f_3544 = 1;
					func_285(iParam1, iParam0, 0, 1);
				}
				if (iParam6)
				{
					streaming::set_model_as_no_longer_needed(Var5);
				}
				if (iVar105)
				{
					func_310(*iParam0, iParam1);
				}
				return true;
			}
		}
	}
	return false;
}

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

bool func_286(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4)//Position - 0x50F06
{
	int iVar0;
	int iVar1;
	char* sVar2;
	int iVar6;
	int iVar7;
	
	iVar0 = 0;
	while (func_287(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_287(int iParam0, char* sParam1, var uParam2, var uParam3, var uParam4)//Position - 0x50F79
{
	*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_288(int iParam0)//Position - 0x5251B
{
	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_289(int iParam0, var uParam1, var uParam2)//Position - 0x525D9
{
	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;
}

bool func_290(int iParam0, int iParam1, var uParam2)//Position - 0x526B3
{
	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_292(iVar0, iParam1, uParam2))
	{
		return false;
	}
	if (vehicle::is_big_vehicle(iParam0))
	{
		*uParam2 = 2;
		return false;
	}
	if (!network::network_is_game_in_progress())
	{
		if ((func_291(iParam0) && entity::get_entity_model(iParam0) != joaat("sentinel2")) && entity::get_entity_model(iParam0) != joaat("issi2"))
		{
			*uParam2 = 2;
			return false;
		}
	}
	return true;
}

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

bool func_292(int iParam0, int iParam1, var uParam2)//Position - 0x52790
{
	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"))
	{
		*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_293(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_293(int iParam0)//Position - 0x52B38
{
	switch (iParam0)
	{
		case joaat("towtruck"):
		case joaat("towtruck2"):
		case joaat("forklift"):
			return true;
			break;
	}
	return false;
}

void func_294(int iParam0, int iParam1)//Position - 0x52B61
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (!func_298(iParam0))
	{
		return;
	}
	if ((iParam1 != 0 && iParam1 != 1) && iParam1 != 2)
	{
		iVar0 = vehicle::get_ped_in_vehicle_seat(iParam0, -1);
		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_101154.f_1826.f_539.f_3549;
		}
	}
	iVar1 = 0;
	while (iVar1 < 3)
	{
		iVar2 = 0;
		while (iVar2 < 2)
		{
			if (entity::get_entity_model(iParam0) == Global_101154.f_18807.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_66)
			{
				if (!gameplay::is_string_null_or_empty(&(Global_101154.f_18807.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_1)))
				{
					if (gameplay::are_strings_equal(vehicle::get_vehicle_number_plate_text(iParam0), &(Global_101154.f_18807.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_1)))
					{
						Global_101154.f_18807.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_66 = 0;
						Global_101154.f_18807.f_5592[iVar1] = iVar2;
					}
				}
			}
			iVar2++;
		}
		iVar1++;
	}
	iVar1 = 0;
	while (iVar1 < 3)
	{
		if (entity::get_entity_model(iParam0) == Global_101154.f_18807.f_5600[iVar1 /*78*/].f_66)
		{
			if (!gameplay::is_string_null_or_empty(&(Global_101154.f_18807.f_5600[iVar1 /*78*/].f_1)))
			{
				if (gameplay::are_strings_equal(vehicle::get_vehicle_number_plate_text(iParam0), &(Global_101154.f_18807.f_5600[iVar1 /*78*/].f_1)))
				{
					Global_101154.f_18807.f_5600[iVar1 /*78*/].f_66 = 0;
				}
			}
		}
		iVar1++;
	}
	Global_101154.f_18807.f_5590 = iParam1;
	Global_69224 = iParam0;
	Global_101154.f_18807.f_5588 = 1;
	func_295(iParam0, &(Global_101154.f_18807.f_5510));
}

void func_295(int iParam0, var uParam1)//Position - 0x52D62
{
	int iVar0;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		func_297(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_289(&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_296(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_296(int iParam0)//Position - 0x53010
{
	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;
}

void func_297(var uParam0)//Position - 0x530C0
{
	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_298(int iParam0)//Position - 0x53171
{
	if ((((((((((!entity::does_entity_exist(iParam0) || !vehicle::is_vehicle_driveable(iParam0, 0)) || func_308(iParam0, 0, 0)) || func_308(iParam0, 1, 0)) || func_308(iParam0, 2, 0)) || func_307(iParam0) != 145) || func_306(iParam0)) || func_305(iParam0)) || func_291(iParam0)) || func_304(iParam0)) || !func_299(entity::get_entity_model(iParam0)))
	{
		if (func_305(iParam0))
		{
		}
		if (func_305(iParam0))
		{
		}
		if (func_308(iParam0, 0, 0))
		{
		}
		if (func_308(iParam0, 1, 0))
		{
		}
		if (func_308(iParam0, 2, 0))
		{
		}
		if (func_307(iParam0) != 145)
		{
		}
		return false;
	}
	return true;
}

bool func_299(int iParam0)//Position - 0x5324E
{
	if (iParam0 == 0)
	{
		return false;
	}
	if (!func_300(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_300(int iParam0, int iParam1)//Position - 0x533FF
{
	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_166())
		{
			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_303() && !func_168()) && !func_167()) && !func_302()) && !func_166())
		{
			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_167())
		{
			return false;
		}
	}
	if (iParam1)
	{
		if (!func_301(iParam0))
		{
			return false;
		}
	}
	return true;
}

int func_301(int iParam0)//Position - 0x535E1
{
	int iVar0;
	int iVar1;
	
	if (Global_2459480)
	{
		return 1;
	}
	iVar0 = 1;
	iVar1 = network::_get_posix_time();
	if (iParam0 == joaat("btype3"))
	{
		if ((!Global_262145.f_5004 && !Global_262145.f_10847) && iVar1 < Global_262145.f_10848)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("faction3"))
	{
		if (!Global_262145.f_11652 && iVar1 < Global_262145.f_11664)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("virgo3") || iParam0 == joaat("virgo2"))
	{
		if (!Global_262145.f_11648 && iVar1 < Global_262145.f_11660)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("sabregt2"))
	{
		if (!Global_262145.f_11649 && iVar1 < Global_262145.f_11661)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("tornado5"))
	{
		if (!Global_262145.f_11650 && iVar1 < Global_262145.f_11662)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("minivan2"))
	{
		if (!Global_262145.f_11651 && iVar1 < Global_262145.f_11663)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("slamvan3"))
	{
		if (!Global_262145.f_11653 && iVar1 < Global_262145.f_11665)
		{
			iVar0 = 0;
		}
	}
	if (iParam0 == joaat("prototipo"))
	{
		if (!Global_262145.f_11654 && iVar1 < Global_262145.f_11657)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("seven70"))
	{
		if (!Global_262145.f_11655 && iVar1 < Global_262145.f_11658)
		{
			iVar0 = 0;
		}
	}
	else if (iParam0 == joaat("pfister811"))
	{
		if (!Global_262145.f_11656 && iVar1 < Global_262145.f_11659)
		{
			iVar0 = 0;
		}
	}
	return iVar0;
}

bool func_302()//Position - 0x537B5
{
	return false;
}

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

bool func_304(int iParam0)//Position - 0x537D7
{
	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_300(iVar0, 0))
	{
		return true;
	}
	return false;
}

bool func_305(int iParam0)//Position - 0x5381E
{
	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_88942[iVar0]) && vehicle::is_vehicle_driveable(Global_88942[iVar0], 0))
			{
				if (Global_88942[iVar0] == iParam0 && entity::get_entity_model(Global_88942[iVar0]) == entity::get_entity_model(iParam0))
				{
					return true;
				}
			}
			iVar0++;
		}
	}
	return false;
}

bool func_306(int iParam0)//Position - 0x5389A
{
	int iVar0;
	
	if (entity::does_entity_exist(Global_68319.f_484[24]))
	{
		if (iParam0 == Global_68319.f_484[24])
		{
			return false;
		}
	}
	iVar0 = 0;
	while (iVar0 < 68)
	{
		if (entity::does_entity_exist(Global_68319.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_68319.f_484[iVar0])
				{
					return true;
				}
			}
		}
		iVar0++;
	}
	return false;
}

int func_307(int iParam0)//Position - 0x53982
{
	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_88942[iVar0]))
		{
			if (Global_88942[iVar0] == iParam0)
			{
				return Global_88952[iVar0];
			}
		}
		iVar0++;
	}
	return 145;
}

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

bool func_309(int iParam0, int iParam1, char* sParam2, var uParam3)//Position - 0x53A56
{
	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_310(int iParam0, int iParam1)//Position - 0x53B36
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 9)
	{
		if (!entity::does_entity_exist(Global_88942[iVar0]))
		{
			Global_88942[iVar0] = iParam0;
			Global_88952[iVar0] = iParam1;
			Global_88962[iVar0] = entity::get_entity_model(iParam0);
			if (vehicle::is_this_model_a_car(Global_88962[iVar0]))
			{
				Global_88990[iParam1 /*3*/][0] = -1;
			}
			else
			{
				Global_88990[iParam1 /*3*/][1] = -1;
			}
			iVar0 = 9;
		}
		if (iVar0 == 8)
		{
		}
		iVar0++;
	}
}

void func_311(var uParam0)//Position - 0x53BB8
{
	if (!func_312(*uParam0))
	{
		vehicle::set_vehicle_extra(*uParam0, 5, !Global_101154.f_7775.f_99.f_58[119]);
	}
}

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

bool func_313(var uParam0, var uParam1, var uParam2)//Position - 0x53BF2
{
	int iVar0;
	int iVar1;
	
	if (!vehicle::is_vehicle_driveable(*uParam0, 0))
	{
		return false;
	}
	if (vehicle::get_num_mod_kits(*uParam0) == 0)
	{
		return false;
	}
	vehicle::set_vehicle_mod_kit(*uParam0, 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(*uParam0, iVar1, (*uParam1)[iVar0] > 0);
		}
		else if (vehicle::get_vehicle_mod(*uParam0, iVar1) != ((*uParam1)[iVar0] - 1))
		{
			vehicle::remove_vehicle_mod(*uParam0, iVar1);
			if ((*uParam1)[iVar0] > 0)
			{
				if (iVar0 == 23)
				{
					vehicle::set_vehicle_mod(*uParam0, iVar1, ((*uParam1)[iVar0] - 1), (*uParam2)[0] > 0);
				}
				else if (iVar0 == 24)
				{
					vehicle::set_vehicle_mod(*uParam0, iVar1, ((*uParam1)[iVar0] - 1), (*uParam2)[1] > 0);
				}
				else
				{
					vehicle::set_vehicle_mod(*uParam0, iVar1, ((*uParam1)[iVar0] - 1), false);
				}
			}
		}
		iVar0++;
	}
	if (func_316(entity::get_entity_model(*uParam0), 1) && vehicle::get_vehicle_mod(*uParam0, 24) != func_315(*uParam0, ((*uParam1)[38] - 1)))
	{
		vehicle::set_vehicle_mod(*uParam0, 24, func_315(*uParam0, ((*uParam1)[38] - 1)), false);
	}
	if (func_314(*uParam0))
	{
		vehicle::set_vehicle_strong(*uParam0, true);
		vehicle::set_vehicle_has_strong_axles(*uParam0, true);
	}
	return true;
}

bool func_314(int iParam0)//Position - 0x53D6A
{
	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_315(int iParam0, int iParam1)//Position - 0x53E48
{
	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_316(int iParam0, int iParam1)//Position - 0x53F2D
{
	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_11649)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("tornado5"):
			if (!Global_262145.f_11650)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("virgo2"):
			if (!Global_262145.f_11648)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("minivan2"):
			if (!Global_262145.f_11651)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("slamvan3"):
			if (!Global_262145.f_11653)
			{
				return false;
			}
			else
			{
				return true;
			}
			break;
		
		case joaat("faction3"):
			if (!Global_262145.f_11652)
			{
				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_317(var uParam0, int iParam1)//Position - 0x54042
{
	if (network::network_is_game_in_progress())
	{
	}
	else if (Global_101154.f_24643.f_261)
	{
		*uParam0 = { Global_101154.f_24643.f_267 };
		*iParam1 = Global_101154.f_24643.f_271;
		return true;
	}
	return false;
}

void func_318(int iParam0, var uParam1, int iParam2)//Position - 0x54083
{
	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_101154.f_7775.f_99.f_58[128] && !Global_101154.f_7775.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_101154.f_7775.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_101154.f_7775.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_319(int iParam0, int iParam1)//Position - 0x542E4
{
	ped::set_relationship_between_groups(1, iLocal_3835, 1862763509);
	ped::set_relationship_between_groups(1, 1862763509, iLocal_3835);
	ped::set_relationship_between_groups(5, 1862763509, iLocal_3836);
	ped::set_relationship_between_groups(5, iLocal_3835, iLocal_3836);
	ped::set_relationship_between_groups(5, iLocal_3836, 1862763509);
	ped::set_relationship_between_groups(5, iLocal_3836, iLocal_3835);
	ped::set_relationship_between_groups(5, iLocal_3835, -1533126372);
	if (entity::does_entity_exist(*iParam0))
	{
		if (!ped::is_ped_injured(*iParam0))
		{
			ped::set_ped_relationship_group_hash(*iParam0, iLocal_3835);
			ped::set_ped_combat_movement(*iParam0, 1);
			ped::set_ped_combat_attributes(*iParam0, 29, true);
			ped::set_ped_combat_attributes(*iParam0, 1, false);
			ped::set_ped_combat_attributes(*iParam0, 3, true);
			ped::set_ped_combat_attributes(*iParam0, 46, true);
			ped::set_ped_combat_attributes(*iParam0, 35, true);
			ped::set_ped_target_loss_response(*iParam0, 1);
			entity::set_entity_is_target_priority(*iParam0, 0, 0);
			ped::set_ped_accuracy(*iParam0, 60);
			if (iParam1)
			{
				ped::set_blocking_of_non_temporary_events(*iParam0, true);
			}
			else
			{
				ped::set_blocking_of_non_temporary_events(*iParam0, false);
			}
		}
	}
}

void func_320(int iParam0, int iParam1)//Position - 0x543CC
{
	ped::set_ped_dies_when_injured(iParam0, false);
	ped::set_ped_can_be_targetted(iParam0, false);
	ped::set_ped_suffers_critical_hits(iParam0, 0);
	ped::set_ped_can_evasive_dive(iParam0, 0);
	entity::set_entity_is_target_priority(iParam0, 0, 0);
	ped::set_ped_can_ragdoll(iParam0, 0);
	ped::set_ped_seeing_range(iParam0, 250f);
	ped::set_ped_hearing_range(iParam0, 250f);
	ped::set_ped_id_range(iParam0, 250f);
	ped::set_ped_config_flag(iParam0, 132, true);
	ped::set_ped_config_flag(iParam0, 32, false);
	ped::set_ped_config_flag(iParam0, 118, false);
	ped::set_ped_config_flag(iParam0, 208, true);
	ped::set_ped_config_flag(iParam0, 188, true);
	if (iParam1)
	{
		ped::set_ped_config_flag(iParam0, 174, true);
		ped::set_ped_config_flag(iParam0, 169, true);
	}
}

bool func_321(int iParam0, int iParam1, vector3 vParam2, float fParam5, int iParam6)//Position - 0x54464
{
	int iVar0;
	
	if (!func_269(iParam1))
	{
		iVar0 = func_323(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_322(*iParam0, iParam1);
			if (iParam6)
			{
				streaming::set_model_as_no_longer_needed(iVar0);
			}
			return true;
		}
	}
	return false;
}

bool func_322(var uParam0, int iParam1)//Position - 0x544F2
{
	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_87445[(iVar0 - 3)] = uParam0;
	return true;
}

int func_323(int iParam0)//Position - 0x54538
{
	if (!func_269(iParam0))
	{
		return Global_101154.f_32575[iParam0 /*29*/];
	}
	else if (iParam0 != 145)
	{
	}
	return 0;
}

void func_324(int iParam0)//Position - 0x54563
{
	func_326(iParam0);
	func_325(iParam0);
}

void func_325(int iParam0)//Position - 0x54577
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_270(iParam0);
		if (iVar0 == 0)
		{
			if (Global_101154.f_1826.f_539.f_1623[iVar0] == -99 || !func_252(iParam0, Global_101154.f_1826.f_539.f_1627[iVar0], Global_101154.f_1826.f_539.f_1623[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0))
			{
				func_252(iParam0, 14, 38, 0, -1, 0, 0, 0, -1, -1, -1, 0);
			}
		}
		else if (iVar0 == 1)
		{
			if (Global_101154.f_1826.f_539.f_1623[iVar0] == -99 || !func_252(iParam0, Global_101154.f_1826.f_539.f_1627[iVar0], Global_101154.f_1826.f_539.f_1623[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0))
			{
				func_252(iParam0, 14, 30, 0, -1, 0, 0, 0, -1, -1, -1, 0);
			}
		}
		else if (iVar0 == 2)
		{
			if (Global_101154.f_1826.f_539.f_1623[iVar0] == -99 || !func_252(iParam0, Global_101154.f_1826.f_539.f_1627[iVar0], Global_101154.f_1826.f_539.f_1623[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0))
			{
				func_252(iParam0, 14, 53, 0, -1, 0, 0, 0, -1, -1, -1, 0);
			}
		}
	}
}

void func_326(int iParam0)//Position - 0x546D2
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_270(iParam0);
		if (iVar0 == 0)
		{
			if (Global_101154.f_1826.f_539.f_1631[iVar0] == -99 || !func_252(iParam0, 12, Global_101154.f_1826.f_539.f_1631[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0))
			{
				func_252(iParam0, 12, 21, 0, -1, 0, 0, 0, -1, -1, -1, 0);
			}
		}
		else if (iVar0 == 1)
		{
			if (Global_101154.f_1826.f_539.f_1631[iVar0] == -99 || !func_252(iParam0, 12, Global_101154.f_1826.f_539.f_1631[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0))
			{
				func_252(iParam0, 12, 13, 0, -1, 0, 0, 0, -1, -1, -1, 0);
			}
		}
		else if (iVar0 == 2)
		{
			if (Global_101154.f_1826.f_539.f_1631[iVar0] == -99 || !func_252(iParam0, 12, Global_101154.f_1826.f_539.f_1631[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0))
			{
				func_252(iParam0, 12, 19, 0, -1, 0, 0, 0, -1, -1, -1, 0);
			}
		}
	}
}

void func_327(int iParam0, int iParam1, int iParam2)//Position - 0x54800
{
	if (func_330() && func_329())
	{
		while (Global_91273 != 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_328(0);
	}
}

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

int func_329()//Position - 0x548ED
{
	return gameplay::is_bit_set(Global_91278.f_20, 13);
}

bool func_330()//Position - 0x54901
{
	if (Global_91278 == 10 || Global_91278 == 9)
	{
		return true;
	}
	return false;
}

void func_331(vector3 vParam0, float fParam3, int iParam4, int iParam5)//Position - 0x54925
{
	if (func_330())
	{
		gameplay::set_this_script_can_be_paused(0);
		gameplay::clear_bit(&(Global_91278.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_91274 = { vParam0 };
		Global_91277 = fParam3;
		Global_91273 = 1;
		if (iParam4 == 1)
		{
			gameplay::set_bit(&(Global_91278.f_20), 14);
		}
		else
		{
			gameplay::clear_bit(&(Global_91278.f_20), 14);
		}
		if (iParam5 == 1)
		{
			gameplay::set_bit(&(Global_91278.f_20), 24);
		}
		else
		{
			gameplay::clear_bit(&(Global_91278.f_20), 24);
		}
		func_328(1);
	}
}

void func_332()//Position - 0x549BA
{
	pathfind::set_roads_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, false, 1);
	pathfind::set_ped_paths_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, false, 0);
	ped::set_ped_non_creation_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f);
	ped::add_scenario_blocking_area(798.06f, -1982.81f, 100f, 1372.22f, -2752.3f, -100f, 0, 1, 1, 1);
	vehicle::set_all_vehicle_generators_active_in_area(935.9f, -2390.9f, 100f, 899.3f, -2319.6f, -100f, false, 1);
	vehicle::set_all_vehicle_generators_active_in_area(906.8f, -2322f, 100f, 844f, -2365.1f, -100f, false, 1);
	gameplay::clear_area(890.4393f, -2346.476f, 29.3413f, 10000f, 1, 0, 0, false);
	if (iLocal_3833)
	{
		func_331(897.9976f, -2351.927f, 29.4873f, 203.22f, 0, 0);
	}
	streaming::request_model(func_93(0));
	streaming::request_model(Local_1177.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
	streaming::request_model(Local_1207.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
	streaming::request_model(Local_1192.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1192.f_1, true);
	streaming::request_model(Local_1222[0 /*15*/].f_1);
	streaming::request_model(Local_2981.f_2);
	vehicle::request_vehicle_recording(2, "lkcountry");
	vehicle::request_vehicle_recording(3, "lkcountry");
	vehicle::request_vehicle_recording(4, "lkcountry");
	vehicle::request_vehicle_recording(5, "lkcountry");
	vehicle::request_vehicle_recording(10, "lkcountry");
	vehicle::request_vehicle_recording(11, "lkcountry");
	vehicle::request_vehicle_recording(12, "lkcountry");
	vehicle::request_vehicle_recording(14, "lkcountry");
	vehicle::request_vehicle_recording(15, "lkcountry");
	vehicle::request_vehicle_recording(16, "lkcountry");
	streaming::request_anim_dict("missfbi4");
	audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false);
	if (iLocal_3833)
	{
		func_327(0, -1, 1);
	}
	while (((((((((((((((((!streaming::has_model_loaded(func_93(0)) || !streaming::has_model_loaded(Local_1177.f_1)) || !streaming::has_model_loaded(Local_1207.f_1)) || !streaming::has_model_loaded(Local_1192.f_1)) || !streaming::has_model_loaded(Local_1222[0 /*15*/].f_1)) || !streaming::has_model_loaded(Local_2981.f_2)) || !streaming::has_anim_dict_loaded("missfbi4")) || !vehicle::has_vehicle_recording_been_loaded(2, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(3, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(4, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(5, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(10, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(11, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(12, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(14, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(15, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(16, "lkcountry")) || !audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false))
	{
		system::wait(0);
	}
	audio::play_sound_from_coord(iLocal_3410, "SIRENS_DISTANT_01_MASTER", 844.7f, -2213.3f, 57.9f, 0, 0, 0, 0);
	func_961(1, 1, 0, 1, 0);
	func_401();
	gameplay::_0x9B2BD3773123EA2F(1, true);
	gameplay::_0x9B2BD3773123EA2F(2, true);
	gameplay::_0x9B2BD3773123EA2F(4, true);
	gameplay::_0x9B2BD3773123EA2F(12, true);
	gameplay::_0x9B2BD3773123EA2F(7, true);
	gameplay::_0x9B2BD3773123EA2F(8, true);
	gameplay::_0x9B2BD3773123EA2F(9, true);
	gameplay::_0x9B2BD3773123EA2F(10, true);
	player::clear_player_wanted_level(player::player_id());
	player::set_max_wanted_level(0);
	ped::set_create_random_cops(false);
	gameplay::set_fake_wanted_level(1);
	Local_1177 = vehicle::create_vehicle(Local_1177.f_1, 901.9453f, -2383.368f, 29.2789f, 341.1729f, 1, true);
	vehicle::set_vehicle_has_strong_axles(Local_1177, true);
	vehicle::set_vehicle_automatically_attaches(Local_1177, false, 0);
	vehicle::set_vehicle_doors_locked(Local_1177, 2);
	entity::set_entity_proofs(Local_1177, true, true, true, true, true, false, 0, false);
	func_400(Local_1177, 0);
	Local_1207 = vehicle::create_vehicle(Local_1207.f_1, 896.0925f, -2364.399f, 29.4761f, 84.1277f, 1, true);
	vehicle::set_vehicle_colours(Local_1207, 0, 0);
	vehicle::set_vehicle_has_strong_axles(Local_1207, true);
	vehicle::set_vehicle_damage(Local_1207, 0f, 6.5f, 0.5f, 375f, 375f, 1);
	vehicle::set_vehicle_damage(Local_1207, -2f, -0.5f, 0.5f, 1000f, 1000f, 1);
	vehicle::_0x2B6747FAA9DB9D6B(Local_1207, 1);
	vehicle::set_vehicle_doors_locked(Local_1207, 2);
	vehicle::set_vehicle_is_considered_by_player(Local_1207, 0);
	func_399(&Local_1207);
	func_400(Local_1207, 1);
	Local_1222[0 /*15*/] = vehicle::create_vehicle(Local_1222[0 /*15*/].f_1, 891.0364f, -2354.091f, 29.3747f, 64.0679f, 1, true);
	vehicle::set_vehicle_damage(Local_1222[0 /*15*/], 0f, 6.5f, 0.5f, 500f, 500f, 1);
	vehicle::set_vehicle_on_ground_properly(Local_1222[0 /*15*/]);
	Local_1222[1 /*15*/] = vehicle::create_vehicle(Local_1222[1 /*15*/].f_1, 895.6796f, -2344.69f, 29.4389f, 101.3151f, 1, true);
	vehicle::set_vehicle_damage(Local_1222[1 /*15*/], -0.5f, 6.5f, 0.5f, 500f, 500f, 1);
	vehicle::set_vehicle_on_ground_properly(Local_1222[1 /*15*/]);
	Local_1222[2 /*15*/] = vehicle::create_vehicle(Local_1222[2 /*15*/].f_1, 902.2714f, -2343.174f, 29.5052f, 150.328f, 1, true);
	vehicle::set_vehicle_damage(Local_1222[2 /*15*/], 0.5f, 6.5f, 0.5f, 500f, 500f, 1);
	vehicle::set_vehicle_on_ground_properly(Local_1222[2 /*15*/]);
	Local_1222[3 /*15*/] = vehicle::create_vehicle(Local_1222[3 /*15*/].f_1, 917.7601f, -2331.909f, 29.3799f, 176.3431f, 1, true);
	vehicle::set_vehicle_on_ground_properly(Local_1222[3 /*15*/]);
	ai::clear_ped_tasks_immediately(player::player_ped_id());
	if (func_960() != 1)
	{
		func_443(1, 0);
	}
	func_324(player::player_ped_id());
	func_252(player::player_ped_id(), 14, 158, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	func_397(player::player_ped_id());
	entity::set_entity_coords(player::player_ped_id(), 897.9976f, -2351.927f, 29.4873f, 1, false, 0, 1);
	entity::set_entity_heading(player::player_ped_id(), 203.2388f);
	ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
	func_442(&(Local_3473[0 /*165*/]), 1, player::player_ped_id(), "franklin", 0, 1);
	if (func_396(25, 0))
	{
		func_395(&vLocal_3808, 25);
	}
	else
	{
		iLocal_3197 = true;
		vLocal_3808 = { 1121.031f, -1249.908f, 19.5717f };
	}
	Local_1685.f_14 = 1;
	Local_1705.f_14 = 1;
	if (!iLocal_3833)
	{
		streaming::load_scene(890.4393f, -2346.476f, 29.3413f);
	}
	Local_1192 = vehicle::create_vehicle(Local_1192.f_1, 904.981f, -2367.179f, 30.15f, 175.2936f, 1, true);
	vehicle::set_vehicle_has_strong_axles(Local_1192, true);
	entity::set_entity_coords_no_offset(Local_1192, 890.495f, -2365.6f, 30.5039f, 0, 0, 1);
	entity::set_entity_rotation(Local_1192, 0f, 91.8056f, 173.211f, 2, 1);
	entity::freeze_entity_position(Local_1192, true);
	vehicle::_0x1CF38D529D7441D9(Local_1192, true);
	vehicle::set_vehicle_damage(Local_1192, -2f, -0.5f, 0.5f, 1000f, 1000f, 1);
	vehicle::set_vehicle_door_broken(Local_1192, 2, 1);
	vehicle::set_vehicle_door_broken(Local_1192, 3, 1);
	vehicle::set_vehicle_automatically_attaches(Local_1192, false, 0);
	vehicle::set_vehicle_doors_locked(Local_1192, 2);
	vehicle::set_vehicle_is_considered_by_player(Local_1192, 0);
	func_399(&Local_1192);
	Local_2981 = object::create_object(Local_2981.f_2, Local_2981.f_3, 1, true, false);
	entity::set_entity_rotation(Local_2981, Local_2981.f_12, 2, 1);
	entity::freeze_entity_position(Local_2981, true);
	iLocal_3226 = gameplay::get_game_timer();
	while (!ped::_0x7350823473013C02(player::player_ped_id()) || !func_272(&iLocal_3226, 2000))
	{
		system::wait(0);
	}
	func_394(&Local_3074, 1);
	audio::trigger_music_event("FBI4_GETAWAY_RESTART");
	func_333(4, "burn the truck", 1, 0, 0, 1);
	iLocal_1126 = 8;
	func_438(0, 1, 0f, 0f, 0, 1);
}

void func_333(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x551A6
{
	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_91315)
		{
			iVar0 = 1;
		}
	}
	else if (iParam0 > Global_91315)
	{
		iVar0 = 1;
	}
	if (iVar0 == 1)
	{
		func_393(1);
		if (iParam0 <= Global_91315)
		{
		}
		iVar1 = func_391(script::get_this_script_name(), 1);
		if (iVar1 != -1 && iVar1 != 94)
		{
			Global_101154.f_7775.f_330[iVar1 /*6*/].f_1 = 0;
			iVar2 = func_389(iVar1);
			cVar3 = { Global_82399[iVar1 /*34*/].f_8 };
			if (iVar1 == 90)
			{
				switch (Global_101154.f_7775.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_91315, iParam0);
		}
		else
		{
			iVar5 = func_384(script::get_this_script_name(), 1);
			if (iVar5 != -1)
			{
				Global_101154.f_17264[iVar5 /*6*/].f_4 = 0;
				MemCopy(&uVar6, {func_383(iVar5)}, 4);
				stats::playstats_mission_checkpoint(&uVar6, 0, Global_91315, iParam0);
			}
			else
			{
				iVar10 = func_382(&(Global_91278.f_3));
				if (iVar10 > -1)
				{
					Global_101154.f_29511.f_4[iVar10] = 0;
				}
			}
		}
		Global_85789 = iParam2;
		Global_91315 = iParam0;
		func_334(iParam0, sParam1, iParam4, iParam5);
		if (gameplay::are_strings_equal(sParam1, ""))
		{
		}
	}
	else if (iParam0 < Global_91315)
	{
	}
}

void func_334(int iParam0, var uParam1, int iParam2, int iParam3)//Position - 0x5531F
{
	func_335(&Global_95496, script::get_this_script_name(), iParam0, uParam1, iParam3, iParam2);
}

void func_335(var uParam0, char* sParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0x5533B
{
	int iVar0;
	int iVar1;
	
	*uParam0 = func_960();
	uParam0->f_1 = func_371();
	gameplay::_get_weather_type_transition(&(uParam0->f_6), &(uParam0->f_7), &(uParam0->f_8));
	if (!ped::is_ped_injured(player::player_ped_id()))
	{
		func_357(&(uParam0->f_2305), 0);
		func_356(player::player_ped_id());
		func_350(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_101154.f_1826.f_539.f_294[iVar1];
		if (iVar1 == func_348())
		{
			func_345(player::player_ped_id(), &(uParam0->f_616[iVar1 /*65*/]), 1);
		}
		else
		{
			iVar0 = 0;
			while (iVar0 < 12)
			{
				uParam0->f_616[iVar1 /*65*/][iVar0] = Global_91068[iVar1 /*65*/][iVar0];
				uParam0->f_616[iVar1 /*65*/].f_13[iVar0] = Global_91068[iVar1 /*65*/].f_13[iVar0];
				iVar0++;
			}
			uParam0->f_616[iVar1 /*65*/].f_59 = Global_91068[iVar1 /*65*/].f_59;
			uParam0->f_616[iVar1 /*65*/].f_60 = Global_91068[iVar1 /*65*/].f_60;
			uParam0->f_616[iVar1 /*65*/].f_61 = Global_91068[iVar1 /*65*/].f_61;
			uParam0->f_616[iVar1 /*65*/].f_62 = Global_91068[iVar1 /*65*/].f_62;
			uParam0->f_616[iVar1 /*65*/].f_63 = Global_91068[iVar1 /*65*/].f_63;
			uParam0->f_616[iVar1 /*65*/].f_64 = Global_91068[iVar1 /*65*/].f_64;
			iVar0 = 0;
			while (iVar0 < 9)
			{
				uParam0->f_616[iVar1 /*65*/].f_39[iVar0] = Global_91068[iVar1 /*65*/].f_39[iVar0];
				uParam0->f_616[iVar1 /*65*/].f_49[iVar0] = Global_91068[iVar1 /*65*/].f_49[iVar0];
				iVar0++;
			}
		}
		iVar0 = 0;
		while (iVar0 < 44)
		{
			uParam0->f_812[iVar1 /*284*/][iVar0 /*3*/] = { Global_101154.f_1826.f_539.f_298[iVar1 /*284*/][iVar0 /*3*/] };
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 50)
		{
			uParam0->f_812[iVar1 /*284*/].f_133[iVar0 /*3*/] = { Global_101154.f_1826.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_101154.f_25089.f_233[iVar1 /*69*/].f_1;
		uParam0->f_13[iVar1] = Global_52923[iVar1];
		uParam0->f_25[0 /*295*/][iVar1 /*98*/] = { Global_101154.f_1826.f_539.f_1635[0 /*295*/][iVar1 /*98*/] };
		uParam0->f_25[1 /*295*/][iVar1 /*98*/] = { Global_101154.f_1826.f_539.f_1635[1 /*295*/][iVar1 /*98*/] };
		iVar0 = 0;
		while (iVar0 <= 3)
		{
			uParam0->f_2259[iVar1 /*15*/][iVar0] = Global_101154.f_1826.f_493[iVar1 /*15*/][iVar0];
			uParam0->f_2259[iVar1 /*15*/].f_5[iVar0] = Global_101154.f_1826.f_493[iVar1 /*15*/].f_5[iVar0];
			uParam0->f_2259[iVar1 /*15*/].f_10[iVar0] = Global_101154.f_1826.f_493[iVar1 /*15*/].f_10[iVar0];
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 <= 2)
		{
			uParam0->f_1766[iVar1 /*164*/][iVar0] = Global_101154.f_1826[iVar1 /*164*/][iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_4[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_4[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_8[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_8[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_12[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_12[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_16[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_16[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_20[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_20[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_24[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_24[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_28[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_28[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_32[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_32[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_36[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_36[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_40[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_40[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_44[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_44[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_48[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_48[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_52[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_52[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_56[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_56[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_60[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_60[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_64[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_64[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_68[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_68[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_72[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_72[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_76[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_76[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_80[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_80[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_84[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_84[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_88[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_88[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_92[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_92[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_96[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_96[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_100[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_100[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_104[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_104[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_108[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_108[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_112[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_112[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_116[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_116[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_120[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_120[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_124[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_124[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_128[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_128[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_132[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_132[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_136[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_136[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_140[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_140[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_144[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_144[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_148[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_148[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_152[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_152[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_156[iVar0] = Global_101154.f_1826[iVar1 /*164*/].f_156[iVar0];
			uParam0->f_1766[iVar1 /*164*/].f_160[iVar0] = Global_101154.f_1826[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_337(&(uParam0->f_2311), uParam0, iParam5, 1, 1, 0);
	}
	func_336(&(uParam0->f_2401));
	uParam3 = uParam3;
	uParam2 = uParam2;
}

bool func_336(var uParam0)//Position - 0x561C3
{
	*uParam0 = Global_87460;
	uParam0->f_1 = Global_87461;
	uParam0->f_2 = 0;
	uParam0->f_3 = 0;
	return true;
}

void func_337(var uParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5)//Position - 0x561E5
{
	int iVar0;
	
	if (iParam2 == 0)
	{
		iParam2 = player::player_ped_id();
	}
	if (entity::does_entity_exist(iParam2))
	{
		uParam1->f_5 = func_270(iParam2);
	}
	if (func_344(iParam2, &iVar0, iParam3, iParam5))
	{
		func_338(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_338(uParam0, uParam1, iVar0, iParam4);
			}
		}
	}
}

bool func_338(var uParam0, var uParam1, int iParam2, int iParam3)//Position - 0x5626D
{
	if (vehicle::is_vehicle_driveable(iParam2, 0))
	{
		func_340(uParam0, iParam2, iParam3);
		uParam1->f_4 = iParam2;
		if (func_339(iParam2))
		{
			uParam1->f_3 = 1;
		}
		else
		{
			uParam1->f_3 = 0;
		}
		return true;
	}
	return false;
}

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

void func_340(var uParam0, int iParam1, int iParam2)//Position - 0x562DB
{
	func_295(iParam1, &(uParam0->f_12));
	uParam0->f_7 = func_342(iParam1, 145, 0);
	uParam0->f_11 = func_307(iParam1);
	if (!uParam0->f_7)
	{
		if (!uParam0->f_10)
		{
			uParam0->f_10 = func_341(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_69224 == 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_341(int iParam0)//Position - 0x563B7
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 68)
	{
		if (entity::does_entity_exist(Global_68319.f_484[iVar0]))
		{
			if (iParam0 == Global_68319.f_484[iVar0])
			{
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

bool func_342(int iParam0, int iParam1, int iParam2)//Position - 0x563F9
{
	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_88942[iVar0]))
		{
			if (Global_88942[iVar0] == iParam0)
			{
				if (iParam1 == 145 || iParam1 == Global_88952[iVar0])
				{
					if (iParam2 == 0 || entity::get_entity_model(iParam0) == func_343(iParam1, iParam2))
					{
						return true;
					}
				}
			}
		}
		iVar0++;
	}
	return false;
}

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

bool func_344(int iParam0, var uParam1, int iParam2, int iParam3)//Position - 0x564C9
{
	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) != iParam0 && vehicle::get_ped_in_vehicle_seat(*uParam1, -1) != 0)
							{
								return false;
							}
						}
						if (func_308(*uParam1, func_960(), 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;
}

void func_345(int iParam0, var uParam1, int iParam2)//Position - 0x565F9
{
	int iVar0;
	int iVar1;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_270(iParam0);
		iVar1 = 0;
		while (iVar1 < 12)
		{
			func_347(iParam0, iVar1, &(uParam1->f_13[iVar1]), uParam1[iVar1], &(uParam1->f_26[iVar1]), iParam2, 145);
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < 9)
		{
			func_346(iParam0, iVar1, &(uParam1->f_39[iVar1]), &(uParam1->f_49[iVar1]), iParam2, 145);
			iVar1++;
		}
		if (func_269(iVar0))
		{
			uParam1->f_59 = Global_101154.f_1826.f_539[iVar0 /*65*/].f_59;
			uParam1->f_60 = Global_101154.f_1826.f_539[iVar0 /*65*/].f_60;
			uParam1->f_61 = Global_101154.f_1826.f_539[iVar0 /*65*/].f_61;
			uParam1->f_62 = Global_101154.f_1826.f_539[iVar0 /*65*/].f_62;
			uParam1->f_63 = Global_101154.f_1826.f_539[iVar0 /*65*/].f_63;
			uParam1->f_64 = Global_101154.f_1826.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_114(161, -1))
			{
				uParam1->f_59 = func_16(2043, Global_69309, 0);
			}
			else
			{
				uParam1->f_59 = func_16(745, Global_69309, 0);
			}
			uParam1->f_60 = func_16(746, Global_69309, 0);
			uParam1->f_61 = func_16(747, Global_69309, 0);
		}
		if (network::network_is_game_in_progress() && iParam0 == player::player_ped_id())
		{
			if (func_114(161, -1))
			{
				uParam1->f_59 = func_16(2043, Global_69309, 0);
			}
			else
			{
				uParam1->f_59 = func_16(745, Global_69309, 0);
			}
		}
	}
}

void func_346(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)//Position - 0x567A3
{
	int iVar0;
	
	iVar0 = func_270(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_347(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, int iParam5, int iParam6)//Position - 0x56CEB
{
	int iVar0;
	
	iVar0 = func_270(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_348()//Position - 0x56F2C
{
	func_349();
	return Global_101154.f_1826.f_539.f_3549;
}

void func_349()//Position - 0x56F45
{
	int iVar0;
	
	if (entity::does_entity_exist(player::player_ped_id()))
	{
		if (func_93(Global_101154.f_1826.f_539.f_3549) != entity::get_entity_model(player::player_ped_id()))
		{
			iVar0 = func_270(player::player_ped_id());
			if (func_269(iVar0) && (!func_22(14) || Global_100106))
			{
				if (Global_101154.f_1826.f_539.f_3549 != iVar0 && func_269(Global_101154.f_1826.f_539.f_3549))
				{
					Global_101154.f_1826.f_539.f_3550 = Global_101154.f_1826.f_539.f_3549;
				}
				Global_101154.f_1826.f_539.f_3551 = iVar0;
				Global_101154.f_1826.f_539.f_3549 = iVar0;
				return;
			}
		}
		else
		{
			if (Global_101154.f_1826.f_539.f_3549 != 145)
			{
				Global_101154.f_1826.f_539.f_3551 = Global_101154.f_1826.f_539.f_3549;
			}
			return;
		}
	}
	Global_101154.f_1826.f_539.f_3549 = 145;
}

void func_350(int iParam0, int iParam1)//Position - 0x57042
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		if (iParam0 == player::player_ped_id())
		{
			func_351(iParam0, &(Global_101154.f_1826.f_539.f_298[iVar0 /*284*/]));
			iVar2 = 0;
			while (iVar2 <= (8 - 1))
			{
				Global_101154.f_1826.f_539.f_1151[iVar2 /*4*/][iVar0] = ui::_0xA13E93403F26C812(iVar2);
				if (iParam1)
				{
					iVar1 = ui::_0xA48931185F0536FE();
					if (Global_101154.f_1826.f_539.f_1151[iVar2 /*4*/][iVar0] == iVar1)
					{
						Global_101154.f_1826.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_351(int iParam0, var uParam1)//Position - 0x57135
{
	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_355(iVar0);
			if (iVar3 != 0)
			{
				vVar4.x = weapon::get_ped_weapontype_in_slot(iParam0, func_355(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_353(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_353(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_352(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_352(int iParam0)//Position - 0x57399
{
	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"):
				return true;
				break;
			}
	}
	return false;
}

int func_353(int iParam0, int iParam1)//Position - 0x574DD
{
	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;
		
		default:
			if (iParam0 != 0)
			{
				iVar1 = func_354(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_354(int iParam0, var uParam1)//Position - 0x57F99
{
	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_355(int iParam0)//Position - 0x57FD4
{
	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_356(int iParam0)//Position - 0x5826A
{
	int iVar0;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		Global_101154.f_1826.f_539.f_294[iVar0] = ped::get_ped_armour(iParam0);
	}
}

void func_357(var uParam0, int iParam1)//Position - 0x582A6
{
	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_69737, 4))
	{
		*uParam0 = { 452.0255f, 5571.85f, 780.1859f };
		uParam0->f_3 = 78.9858f;
	}
	else if (gameplay::is_bit_set(Global_69737, 5))
	{
		*uParam0 = { -745.4462f, 5595.146f, 40.6594f };
		uParam0->f_3 = 261.747f;
	}
	else if (gameplay::is_bit_set(Global_69737, 6))
	{
		*uParam0 = { -1675.521f, -1125.59f, 12.091f };
		uParam0->f_3 = 271.8208f;
	}
	else if (gameplay::is_bit_set(Global_69737, 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_361(&iVar0))
		{
			if (func_359(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_960();
			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_358(*uParam0, "v_hospital", 307.3065f, -589.9595f, 43.302f))
		{
			*uParam0 = { 279.4137f, -585.8815f, 43.2502f };
			uParam0->f_3 = 48.8028f;
		}
	}
}

bool func_358(vector3 vParam0, char* sParam3, vector3 vParam4)//Position - 0x58803
{
	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_359(int iParam0, var uParam1, var uParam2)//Position - 0x58847
{
	*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;
	}
	return !func_360(*uParam1, 0f, 0f, 0f, 0);
}

int func_360(vector3 vParam0, vector3 vParam3, int iParam6)//Position - 0x58EC2
{
	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_361(var uParam0)//Position - 0x58F09
{
	if (!entity::is_entity_dead(player::player_ped_id(), 0) && !ped::is_ped_injured(player::player_ped_id()))
	{
		if (func_370())
		{
			*uParam0 = func_366(entity::get_entity_coords(player::player_ped_id(), 0), 5, -1, 0, 1, -1);
			if (func_365(*uParam0) && !func_362(*uParam0))
			{
				return true;
			}
		}
	}
	return false;
}

int func_362(int iParam0)//Position - 0x58F64
{
	return func_363(iParam0, 0, 1);
}

int func_363(int iParam0, int iParam1, int iParam2)//Position - 0x58F74
{
	if (iParam2)
	{
		return gameplay::is_bit_set(Global_91330.f_1300[iParam0], iParam1);
	}
	else if (network::network_is_game_in_progress())
	{
		if (func_175() == 0)
		{
			return gameplay::is_bit_set(func_16(func_364(iParam0), -1, 0), iParam1);
		}
	}
	else
	{
		return gameplay::is_bit_set(Global_101154.f_668[iParam0], iParam1);
	}
	return false;
}

int func_364(int iParam0)//Position - 0x58FD4
{
	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 3852;
			break;
		
		default:
			break;
	}
	return 3949;
}

int func_365(int iParam0)//Position - 0x5928C
{
	return func_363(iParam0, 5, 1);
}

int func_366(vector3 vParam0, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x5929C
{
	int iVar0;
	float fVar1;
	float fVar2;
	int iVar3;
	
	fVar2 = 1000000f;
	iVar3 = -1;
	iVar0 = 0;
	while (iVar0 <= 44)
	{
		if (iParam3 == 5 || iParam3 == func_369(iVar0))
		{
			if (!iParam5 || func_368(iVar0))
			{
				fVar1 = gameplay::get_distance_between_coords(vParam0, func_367(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_367(int iParam0, int iParam1)//Position - 0x5933E
{
	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;
	}
	return 1000000f, 1000000f, 1000000f;
}

int func_368(int iParam0)//Position - 0x59844
{
	return func_363(iParam0, 0, 0);
}

int func_369(int iParam0)//Position - 0x59854
{
	switch (iParam0)
	{
		case -1:
			return 5;
			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;
	}
	return 5;
}

int func_370()//Position - 0x59ABA
{
	return Global_91330.f_296 > 0;
}

var func_371()//Position - 0x59ACB
{
	var uVar0;
	
	func_381(&uVar0, time::get_clock_seconds());
	func_380(&uVar0, time::get_clock_minutes());
	func_379(&uVar0, time::get_clock_hours());
	func_374(&uVar0, time::get_clock_day_of_month());
	func_373(&uVar0, time::get_clock_month());
	func_372(&uVar0, time::get_clock_year());
	return uVar0;
}

void func_372(var uParam0, int iParam1)//Position - 0x59B11
{
	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_373(var uParam0, int iParam1)//Position - 0x59B97
{
	if (iParam1 < 0 || iParam1 > 11)
	{
		return;
	}
	*uParam0 = (*uParam0 - *uParam0 & 15);
	*uParam0 = (*uParam0 || iParam1);
}

void func_374(var uParam0, int iParam1)//Position - 0x59BCA
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_378(*uParam0);
	iVar1 = func_376(*uParam0);
	if (iParam1 < 1 || iParam1 > func_375(iVar0, iVar1))
	{
		return;
	}
	*uParam0 = (*uParam0 - *uParam0 & 496);
	*uParam0 = (*uParam0 || system::shift_left(iParam1, 4));
}

int func_375(int iParam0, int iParam1)//Position - 0x59C1B
{
	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_376(int iParam0)//Position - 0x59CBD
{
	return (system::shift_right(iParam0, 26) & 31 * func_377(gameplay::is_bit_set(iParam0, 31), -1, 1)) + 2011;
}

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

int func_378(var uParam0)//Position - 0x59CF9
{
	return uParam0 & 15;
}

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

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

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

int func_382(char* sParam0)//Position - 0x59DB7
{
	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_383(int iParam0)//Position - 0x59E11
{
	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_384(char* sParam0, int iParam1)//Position - 0x5A29D
{
	int iVar0;
	char* sVar1;
	int iVar33;
	int iVar34;
	
	iVar33 = gameplay::get_hash_key(sParam0);
	iVar34 = 0;
	iVar34 = 0;
	while (iVar34 < 63)
	{
		iVar0 = iVar34;
		func_385(iVar0, &sVar1);
		if (gameplay::get_hash_key(sVar1) == iVar33)
		{
			return iVar0;
		}
		iVar34++;
	}
	if (iParam1 == 0)
	{
	}
	return -1;
}

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

void func_386(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 - 0x5B581
{
	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_387(int iParam0)//Position - 0x5B612
{
	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_388(int iParam0)//Position - 0x5B958
{
	struct<2> Var0;
	char[] cVar2[8];
	
	StringCopy(&Var0, "", 8);
	cVar2 = { func_383(iParam0) };
	if (gameplay::is_string_null_or_empty(&cVar2))
	{
	}
	else
	{
		StringCopy(&Var0, "RC_", 8);
		StringConCat(&Var0, &cVar2, 8);
	}
	return Var0;
}

int func_389(int iParam0)//Position - 0x5B991
{
	switch (iParam0)
	{
		case 69:
		case 70:
			return func_390(Global_101154.f_7775.f_99.f_205[10]);
			break;
		
		case 74:
		case 75:
			return func_390(Global_101154.f_7775.f_99.f_205[8]);
			break;
		
		case 84:
		case 85:
			return func_390(Global_101154.f_7775.f_99.f_205[11]);
			break;
		
		case 90:
			return func_390(Global_101154.f_7775.f_99.f_205[7]);
			break;
		
		case 93:
			return func_390(Global_101154.f_7775.f_99.f_205[9]);
			break;
	}
	return 0;
}

int func_390(int iParam0)//Position - 0x5BA4D
{
	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_391(char* sParam0, int iParam1)//Position - 0x5BAA1
{
	int iVar0;
	int iVar1;
	
	iVar0 = gameplay::get_hash_key(sParam0);
	iVar1 = func_392(iVar0, 1);
	if (iVar1 == -1 && !iParam1)
	{
	}
	return iVar1;
}

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

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

void func_394(int iParam0, int iParam1)//Position - 0x5BD83
{
	if (iParam1)
	{
		gameplay::set_bit(&(iParam0->f_13), 22);
	}
	else
	{
		gameplay::clear_bit(&(iParam0->f_13), 22);
	}
}

int func_395(var uParam0, int iParam1)//Position - 0x5BDA7
{
	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_343(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_343(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_343(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_343(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_343(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_343(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_343(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_343(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_343(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_166())
			{
				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_166())
			{
				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_101154.f_18807.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_360(Global_101154.f_18807.f_1864[uParam0->f_14 /*3*/], 0f, 0f, 0f, 0))
		{
			*uParam0 = { Global_101154.f_18807.f_1864[uParam0->f_14 /*3*/] };
		}
		if (Global_101154.f_18807.f_1934[uParam0->f_14] != -1f)
		{
			uParam0->f_3 = Global_101154.f_18807.f_1934[uParam0->f_14];
		}
	}
	if (gameplay::is_bit_set(uParam0->f_9, 19))
	{
		if (!func_360(Global_101154.f_1826.f_539.f_2816[1 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
		{
			*uParam0 = { Global_101154.f_1826.f_539.f_2816[1 /*10*/][uParam0->f_12 /*3*/] };
			uParam0->f_3 = Global_101154.f_1826.f_539.f_2837[1 /*4*/][uParam0->f_12];
		}
	}
	else if (gameplay::is_bit_set(uParam0->f_9, 20))
	{
		if (!func_360(Global_101154.f_1826.f_539.f_2816[0 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
		{
			*uParam0 = { Global_101154.f_1826.f_539.f_2816[0 /*10*/][uParam0->f_12 /*3*/] };
			uParam0->f_3 = Global_101154.f_1826.f_539.f_2837[0 /*4*/][uParam0->f_12];
		}
	}
	return iVar0;
}

int func_396(int iParam0, int iParam1)//Position - 0x5D4A0
{
	if (iParam0 == -1)
	{
		return false;
	}
	return gameplay::is_bit_set(Global_101154.f_18807[iParam0], iParam1);
}

void func_397(int iParam0)//Position - 0x5D4C3
{
	int iVar0;
	
	iVar0 = func_398(func_270(iParam0));
	if (iVar0 != 0 && iVar0 != joaat("weapon_unarmed"))
	{
		weapon::set_current_ped_weapon(iParam0, iVar0, true);
	}
}

var func_398(var uParam0)//Position - 0x5D4F4
{
	if (Global_91315 > 0)
	{
		return Global_95496.f_21[uParam0];
	}
	return Global_93091.f_21[uParam0];
}

void func_399(int iParam0)//Position - 0x5D51E
{
	if (entity::does_entity_exist(*iParam0))
	{
		if (vehicle::is_vehicle_driveable(*iParam0, 0))
		{
			if (entity::get_entity_health(*iParam0) < 500)
			{
				entity::set_entity_health(*iParam0, 500);
			}
			if (vehicle::get_vehicle_engine_health(*iParam0) < 500f)
			{
				vehicle::set_vehicle_engine_health(*iParam0, 500f);
			}
			if (vehicle::get_vehicle_petrol_tank_health(*iParam0) < 500f)
			{
				vehicle::set_vehicle_petrol_tank_health(*iParam0, 500f);
			}
			entity::set_entity_proofs(*iParam0, true, true, true, true, true, false, 0, false);
		}
	}
}

void func_400(int iParam0, int iParam1)//Position - 0x5D599
{
	Global_91278.f_22[iParam1] = iParam0;
}

void func_401()//Position - 0x5D5AD
{
	gameplay::_0xDC0F817884CDD856(1, false);
	gameplay::_0xDC0F817884CDD856(2, false);
	gameplay::_0xDC0F817884CDD856(3, false);
	gameplay::_0xDC0F817884CDD856(4, false);
	gameplay::_0xDC0F817884CDD856(12, false);
	gameplay::_0xDC0F817884CDD856(5, false);
	gameplay::_0xDC0F817884CDD856(6, false);
	gameplay::_0xDC0F817884CDD856(7, false);
	gameplay::_0xDC0F817884CDD856(8, false);
	gameplay::_0xDC0F817884CDD856(9, false);
	gameplay::_0xDC0F817884CDD856(10, false);
	gameplay::_0xDC0F817884CDD856(11, false);
	gameplay::_0xDC0F817884CDD856(12, false);
	gameplay::_0xDC0F817884CDD856(13, false);
}

void func_402()//Position - 0x5D610
{
	pathfind::set_roads_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, false, 1);
	pathfind::set_ped_paths_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, false, 0);
	ped::set_ped_non_creation_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f);
	ped::add_scenario_blocking_area(798.06f, -1982.81f, 100f, 1372.22f, -2752.3f, -100f, 0, 1, 1, 1);
	vehicle::set_all_vehicle_generators_active_in_area(935.9f, -2390.9f, 100f, 899.3f, -2319.6f, -100f, false, 1);
	vehicle::set_all_vehicle_generators_active_in_area(906.8f, -2322f, 100f, 844f, -2365.1f, -100f, false, 1);
	gameplay::clear_area(Local_1207.f_3, 1000f, 1, 0, 0, false);
	gameplay::clear_area(890.4393f, -2346.476f, 29.3413f, 1000f, 1, 0, 0, false);
	if (iLocal_3833)
	{
		func_331(873.9058f, -2353.096f, 29.3312f, 13.2f, 0, 0);
	}
	streaming::request_model(func_93(0));
	streaming::request_model(func_93(1));
	streaming::request_model(func_93(2));
	streaming::request_model(Local_1725[0 /*20*/].f_1);
	streaming::request_model(Local_1725[8 /*20*/].f_1);
	streaming::request_model(Local_1177.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
	streaming::request_model(Local_1207.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
	streaming::request_model(Local_1192.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1192.f_1, true);
	streaming::request_model(Local_1222[0 /*15*/].f_1);
	streaming::request_model(Local_1433[0 /*15*/].f_1);
	streaming::request_model(Local_2981.f_2);
	vehicle::request_vehicle_asset(Local_1222[0 /*15*/].f_1, 15);
	ai::request_waypoint_recording("heat1");
	ai::request_waypoint_recording("heat2");
	ai::request_waypoint_recording("heat3");
	vehicle::request_vehicle_recording(4, "lkcountry");
	vehicle::request_vehicle_recording(Local_1433[0 /*15*/].f_13, "lkfbi4");
	vehicle::request_vehicle_recording(Local_1433[1 /*15*/].f_13, "lkfbi4");
	vehicle::request_vehicle_recording(Local_1222[0 /*15*/].f_13, "lkfbi4");
	vehicle::request_vehicle_recording(Local_1222[1 /*15*/].f_13, "lkfbi4");
	vehicle::request_vehicle_recording(Local_1222[2 /*15*/].f_13, "lkfbi4");
	vehicle::request_vehicle_recording(Local_1222[3 /*15*/].f_13, "lkfbi4");
	vehicle::request_vehicle_recording(Local_1222[4 /*15*/].f_13, "lkfbi4");
	vehicle::request_vehicle_recording(Local_1222[5 /*15*/].f_13, "lkfbi4");
	audio::load_stream("Truck_Crash_Stream", "FBI_04_HEAT_SOUNDS");
	audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false);
	if (iLocal_3833)
	{
		func_327(0, -1, 1);
	}
	while (((((((((((((((((((((((((!streaming::has_model_loaded(func_93(0)) || !streaming::has_model_loaded(func_93(1))) || !streaming::has_model_loaded(func_93(2))) || !streaming::has_model_loaded(Local_1725[0 /*20*/].f_1)) || !streaming::has_model_loaded(Local_1725[8 /*20*/].f_1)) || !streaming::has_model_loaded(Local_1177.f_1)) || !streaming::has_model_loaded(Local_1207.f_1)) || !streaming::has_model_loaded(Local_1192.f_1)) || !streaming::has_model_loaded(Local_1222[0 /*15*/].f_1)) || !streaming::has_model_loaded(Local_1433[0 /*15*/].f_1)) || !streaming::has_model_loaded(Local_2981.f_2)) || !vehicle::has_vehicle_asset_loaded(Local_1222[0 /*15*/].f_1)) || !ai::get_is_waypoint_recording_loaded("heat1")) || !ai::get_is_waypoint_recording_loaded("heat2")) || !ai::get_is_waypoint_recording_loaded("heat3")) || !vehicle::has_vehicle_recording_been_loaded(4, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(Local_1433[0 /*15*/].f_13, "lkfbi4")) || !vehicle::has_vehicle_recording_been_loaded(Local_1433[1 /*15*/].f_13, "lkfbi4")) || !vehicle::has_vehicle_recording_been_loaded(Local_1222[0 /*15*/].f_13, "lkfbi4")) || !vehicle::has_vehicle_recording_been_loaded(Local_1222[1 /*15*/].f_13, "lkfbi4")) || !vehicle::has_vehicle_recording_been_loaded(Local_1222[2 /*15*/].f_13, "lkfbi4")) || !vehicle::has_vehicle_recording_been_loaded(Local_1222[3 /*15*/].f_13, "lkfbi4")) || !vehicle::has_vehicle_recording_been_loaded(Local_1222[4 /*15*/].f_13, "lkfbi4")) || !vehicle::has_vehicle_recording_been_loaded(Local_1222[5 /*15*/].f_13, "lkfbi4")) || !audio::load_stream("Truck_Crash_Stream", "FBI_04_HEAT_SOUNDS")) || !audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false))
	{
		system::wait(0);
	}
	gameplay::clear_area(890.4393f, -2346.476f, 29.3413f, 10000f, 1, 0, 0, false);
	func_961(1, 1, 0, 1, 0);
	audio::_0x552369F549563AD5(1);
	Local_1177 = vehicle::create_vehicle(Local_1177.f_1, 901.9453f, -2383.368f, 29.2789f, 341.1729f, 1, true);
	vehicle::set_vehicle_has_strong_axles(Local_1177, true);
	vehicle::set_vehicle_automatically_attaches(Local_1177, false, 0);
	vehicle::set_vehicle_doors_locked(Local_1177, 2);
	entity::set_entity_proofs(Local_1177, true, true, true, true, true, false, 0, false);
	func_400(Local_1177, 0);
	Local_1207 = vehicle::create_vehicle(Local_1207.f_1, 896.0925f, -2364.399f, 29.4761f, 84.1277f, 1, true);
	vehicle::set_vehicle_colours(Local_1207, 0, 0);
	vehicle::set_vehicle_has_strong_axles(Local_1207, true);
	vehicle::set_vehicle_damage(Local_1207, 0f, 6.5f, 0.5f, 375f, 375f, 1);
	vehicle::_0x2B6747FAA9DB9D6B(Local_1207, 1);
	vehicle::set_vehicle_doors_locked(Local_1207, 2);
	vehicle::set_vehicle_is_considered_by_player(Local_1207, 0);
	func_399(&Local_1207);
	func_400(Local_1207, 1);
	ai::clear_ped_tasks_immediately(player::player_ped_id());
	func_443(1, 0);
	ped::set_ped_using_action_mode(player::player_ped_id(), true, -1, 0);
	func_324(player::player_ped_id());
	func_252(player::player_ped_id(), 14, 158, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	entity::set_entity_coords(player::player_ped_id(), 873.9058f, -2353.096f, 29.3312f, 1, false, 0, 1);
	entity::set_entity_heading(player::player_ped_id(), 13.92f);
	func_432(player::player_ped_id(), 1);
	ai::task_put_ped_directly_into_cover(player::player_ped_id(), 873.256f, -2352.71f, 29.3307f, -1, true, 0f, true, 1, iLocal_3471, 0);
	ped::_0x2208438012482A1A(player::player_ped_id(), 1, 0);
	func_442(&(Local_3473[0 /*165*/]), 1, player::player_ped_id(), "franklin", 0, 1);
	func_411(&(iLocal_3099[2]), 2, 804.7164f, -2330.207f, 61.0967f, 264.4371f, 0, 0, 0);
	ped::set_ped_using_action_mode(iLocal_3099[2], true, -1, 0);
	func_324(iLocal_3099[2]);
	func_252(iLocal_3099[2], 14, 154, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	func_410(iLocal_3099[2]);
	func_320(iLocal_3099[2], 0);
	func_319(&(iLocal_3099[2]), 1);
	func_442(&(Local_3473[0 /*165*/]), 2, iLocal_3099[2], "TREVOR", 0, 1);
	iLocal_3452 = func_407(iLocal_3099[2], 0, 145);
	ui::set_blip_display(iLocal_3452, 2);
	ui::set_blip_scale(iLocal_3452, 0.5f);
	func_406(iLocal_3099[2], 1500);
	func_411(&(iLocal_3099[0]), 0, vLocal_3421, 262f, 0, 0, 0);
	ped::set_ped_using_action_mode(iLocal_3099[0], true, -1, 0);
	func_324(iLocal_3099[0]);
	func_252(iLocal_3099[0], 14, 112, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	func_442(&(Local_3473[0 /*165*/]), 0, iLocal_3099[0], "michael", 0, 1);
	iLocal_3451 = func_407(iLocal_3099[0], 0, 145);
	ui::set_blip_display(iLocal_3451, 2);
	ui::set_blip_scale(iLocal_3451, 0.5f);
	func_406(iLocal_3099[0], 1500);
	func_403(iLocal_3099[0]);
	func_320(iLocal_3099[0], 0);
	func_319(&(iLocal_3099[0]), 1);
	ai::task_put_ped_directly_into_cover(iLocal_3099[0], 881.53f, -2334.04f, 33.91f, -1, false, 0f, false, 0, iLocal_3469, 0);
	iLocal_3230 = 6;
	if (vehicle::is_vehicle_driveable(Local_1207, 0))
	{
		entity::freeze_entity_position(Local_1207, false);
		entity::set_entity_proofs(Local_1207, false, false, false, false, false, false, 0, false);
	}
	switch (Global_88063)
	{
		case 1:
		case 2:
		case 3:
		case 4:
			player::clear_player_wanted_level(player::player_id());
			player::set_max_wanted_level(0);
			ped::set_create_random_cops(false);
			gameplay::set_fake_wanted_level(4);
			iLocal_3241 = 4;
			iLocal_3230 = 6;
			iLocal_3255 = 1;
			iLocal_3293 = gameplay::get_game_timer();
			iLocal_3293 = (iLocal_3293 - 6000);
			break;
	}
	if (!iLocal_3833)
	{
		streaming::load_scene(873.3599f, -2352.411f, 29.3306f);
	}
	Local_1192 = vehicle::create_vehicle(Local_1192.f_1, 904.981f, -2367.179f, 30.15f, 175.2936f, 1, true);
	vehicle::set_vehicle_has_strong_axles(Local_1192, true);
	entity::set_entity_coords_no_offset(Local_1192, 890.495f, -2365.6f, 30.5039f, 0, 0, 1);
	entity::set_entity_rotation(Local_1192, 0f, 91.8056f, 173.211f, 2, 1);
	entity::freeze_entity_position(Local_1192, true);
	vehicle::_0x1CF38D529D7441D9(Local_1192, true);
	vehicle::set_vehicle_damage(Local_1192, -2f, -0.5f, 0.5f, 1000f, 1000f, 1);
	vehicle::set_vehicle_door_broken(Local_1192, 2, 1);
	vehicle::set_vehicle_door_broken(Local_1192, 3, 1);
	vehicle::set_vehicle_automatically_attaches(Local_1192, false, 0);
	vehicle::set_vehicle_doors_locked(Local_1192, 2);
	vehicle::set_vehicle_is_considered_by_player(Local_1192, 0);
	func_399(&Local_1192);
	vehicle::set_vehicle_door_broken(Local_1192, 2, 0);
	vehicle::set_vehicle_door_broken(Local_1192, 3, 0);
	gameplay::clear_area(904.981f, -2367.179f, 30.15f, 100f, 1, 0, 0, false);
	Local_2981 = object::create_object(Local_2981.f_2, Local_2981.f_3, 1, true, false);
	entity::set_entity_rotation(Local_2981, Local_2981.f_12, 2, 1);
	entity::freeze_entity_position(Local_2981, true);
	while (!ped::_0x7350823473013C02(player::player_ped_id()) || !(!ped::is_ped_injured(iLocal_3099[0]) && ped::_0x7350823473013C02(iLocal_3099[0])))
	{
		system::wait(0);
	}
	audio::play_sound_from_coord(iLocal_3410, "Distant_Sirens_Skip_Start", 913.6f, -2301.6f, 34f, "FBI_04_HEAT_SOUNDS", 0, 0, 0);
	audio::trigger_music_event("FBI4_COVER_RESTART");
	iLocal_3247 = 22;
	Local_1685.f_14 = 1;
	iLocal_3251 = 22;
	Local_1705.f_14 = 1;
	func_438(0, 1, -88f, 0f, 0, 1);
	func_333(3, "Start of Shootout", 0, 0, 0, 1);
	iLocal_1126 = 6;
}

void func_403(int iParam0)//Position - 0x5E01C
{
	int iVar0;
	
	if (entity::does_entity_exist(iParam0))
	{
		if (!ped::is_ped_injured(iParam0))
		{
			if (!func_405(iParam0, -1212426201))
			{
				weapon::give_weapon_to_ped(iParam0, joaat("weapon_sniperrifle"), 200, false, false);
			}
			else if (func_404(iParam0, -1212426201, &iVar0))
			{
				if (weapon::get_ammo_in_ped_weapon(iParam0, iVar0) < 200)
				{
					weapon::set_ped_ammo(iParam0, iVar0, 200);
				}
				if (iVar0 == joaat("weapon_heavysniper"))
				{
					if (weapon::has_ped_got_weapon_component(iParam0, iVar0, joaat("component_at_ar_supp")))
					{
						weapon::remove_weapon_component_from_ped(iParam0, iVar0, joaat("component_at_ar_supp"));
					}
				}
			}
			if (!weapon::has_ped_got_weapon(iParam0, joaat("weapon_heavysniper"), 0))
			{
				weapon::give_weapon_to_ped(iParam0, joaat("weapon_heavysniper"), 200, false, false);
				if (weapon::has_ped_got_weapon_component(iParam0, joaat("weapon_heavysniper"), joaat("component_at_ar_supp")))
				{
					weapon::remove_weapon_component_from_ped(iParam0, joaat("weapon_heavysniper"), joaat("component_at_ar_supp"));
				}
			}
			else
			{
				if (weapon::has_ped_got_weapon_component(iParam0, joaat("weapon_heavysniper"), joaat("component_at_ar_supp")))
				{
					weapon::remove_weapon_component_from_ped(iParam0, joaat("weapon_heavysniper"), joaat("component_at_ar_supp"));
				}
				if (weapon::get_ammo_in_ped_weapon(iParam0, joaat("weapon_heavysniper")) < 200)
				{
					weapon::set_ped_ammo(iParam0, joaat("weapon_heavysniper"), 200);
				}
			}
			if (!weapon::has_ped_got_weapon(iParam0, joaat("weapon_grenade"), 0))
			{
				weapon::give_weapon_to_ped(iParam0, joaat("weapon_grenade"), 15, false, false);
			}
			else if (weapon::get_ammo_in_ped_weapon(iParam0, joaat("weapon_grenade")) < 15)
			{
				weapon::set_ped_ammo(iParam0, joaat("weapon_grenade"), 15);
			}
			if (!weapon::has_ped_got_weapon(iParam0, joaat("weapon_combatmg"), 0))
			{
				weapon::give_weapon_to_ped(iParam0, joaat("weapon_combatmg"), 500, true, true);
				weapon::give_weapon_component_to_ped(iParam0, joaat("weapon_combatmg"), joaat("component_combatmg_clip_01"));
				weapon::give_weapon_component_to_ped(iParam0, joaat("weapon_combatmg"), joaat("component_at_scope_medium"));
				weapon::give_weapon_component_to_ped(iParam0, joaat("weapon_combatmg"), joaat("component_at_ar_afgrip"));
			}
			else
			{
				if (weapon::get_ammo_in_ped_weapon(iParam0, joaat("weapon_combatmg")) < 500)
				{
					weapon::set_ped_ammo(iParam0, joaat("weapon_combatmg"), 500);
				}
				if (weapon::has_ped_got_weapon_component(iParam0, joaat("weapon_combatmg"), joaat("component_combatmg_clip_01")))
				{
					weapon::give_weapon_component_to_ped(iParam0, joaat("weapon_combatmg"), joaat("component_combatmg_clip_01"));
				}
				if (weapon::has_ped_got_weapon_component(iParam0, joaat("weapon_combatmg"), joaat("component_at_scope_medium")))
				{
					weapon::give_weapon_component_to_ped(iParam0, joaat("weapon_combatmg"), joaat("component_at_scope_medium"));
				}
				if (weapon::has_ped_got_weapon_component(iParam0, joaat("weapon_combatmg"), joaat("component_at_ar_afgrip")))
				{
					weapon::give_weapon_component_to_ped(iParam0, joaat("weapon_combatmg"), joaat("component_at_ar_afgrip"));
				}
				weapon::set_current_ped_weapon(iParam0, joaat("weapon_combatmg"), true);
			}
		}
	}
}

bool func_404(int iParam0, int iParam1, var uParam2)//Position - 0x5E251
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	struct<2> Var5;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = 0;
		while (iVar0 <= (44 - 1))
		{
			iVar2 = func_355(iVar0);
			if (iVar2 != 0)
			{
				iVar1 = weapon::get_ped_weapontype_in_slot(iParam0, func_355(iVar0));
				if (iVar1 != 0 && iVar1 != joaat("weapon_unarmed"))
				{
					if (weapon::get_weapontype_group(iVar1) == iParam1)
					{
						*uParam2 = iVar1;
						return true;
					}
				}
			}
			iVar0++;
		}
		iVar4 = dlc1::get_num_dlc_weapons();
		iVar3 = 0;
		while (iVar3 < iVar4)
		{
			if (dlc1::get_dlc_weapon_data(iVar3, &Var5))
			{
				iVar1 = Var5.f_1;
				if (iVar1 != 0 && iVar1 != joaat("weapon_unarmed"))
				{
					if (weapon::get_weapontype_group(iVar1) == iParam1)
					{
						*uParam2 = iVar1;
						return true;
					}
				}
			}
			iVar3++;
		}
	}
	return false;
}

bool func_405(int iParam0, int iParam1)//Position - 0x5E30F
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	struct<2> Var5;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = 0;
		while (iVar0 <= (44 - 1))
		{
			iVar2 = func_355(iVar0);
			if (iVar2 != 0)
			{
				iVar1 = weapon::get_ped_weapontype_in_slot(iParam0, iVar2);
				if (iVar1 != 0 && iVar1 != joaat("weapon_unarmed"))
				{
					if (weapon::get_weapontype_group(iVar1) == iParam1)
					{
						return true;
					}
				}
			}
			iVar0++;
		}
		iVar4 = dlc1::get_num_dlc_weapons();
		iVar3 = 0;
		while (iVar3 < iVar4)
		{
			if (dlc1::get_dlc_weapon_data(iVar3, &Var5))
			{
				iVar1 = Var5.f_1;
				if (iVar1 != 0 && iVar1 != joaat("weapon_unarmed"))
				{
					if (weapon::get_weapontype_group(iVar1) == iParam1)
					{
						return true;
					}
				}
			}
			iVar3++;
		}
	}
	return false;
}

void func_406(int iParam0, int iParam1)//Position - 0x5E3BF
{
	float fVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		fVar0 = (((system::to_float(entity::get_entity_health(iParam0)) - 100f) / (system::to_float(ped::get_ped_max_health(iParam0)) - 100f)) * 100f);
		ped::set_ped_max_health(iParam0, iParam1);
		entity::set_entity_health(iParam0, system::round((((fVar0 / 100f) * (system::to_float(ped::get_ped_max_health(iParam0)) - 100f)) + 100f)));
	}
}

int func_407(int iParam0, int iParam1, int iParam2)//Position - 0x5E42B
{
	int iVar0;
	
	iVar0 = func_408(iParam0, !iParam1, 0);
	if ((iParam2 != 145 && ui::does_blip_exist(iVar0)) && ui::does_text_label_exist(&(Global_101154.f_32575[iParam2 /*29*/].f_3)))
	{
		ui::set_blip_name_from_text_file(iVar0, &(Global_101154.f_32575[iParam2 /*29*/].f_3));
	}
	return iVar0;
}

int func_408(int iParam0, int iParam1, int iParam2)//Position - 0x5E47D
{
	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_409(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_409(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_409(network::network_is_game_in_progress(), 0.7f, 0.7f));
	}
	return iVar0;
}

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

void func_410(int iParam0)//Position - 0x5E538
{
	int iVar0;
	
	if (entity::does_entity_exist(iParam0))
	{
		if (!ped::is_ped_injured(iParam0))
		{
			if (!func_405(iParam0, -1212426201))
			{
				weapon::give_weapon_to_ped(iParam0, joaat("weapon_sniperrifle"), 200, false, false);
			}
			else if (func_404(iParam0, -1212426201, &iVar0))
			{
				if (weapon::get_ammo_in_ped_weapon(iParam0, iVar0) < 200)
				{
					weapon::set_ped_ammo(iParam0, iVar0, 200);
				}
			}
			if (!weapon::has_ped_got_weapon(iParam0, joaat("weapon_rpg"), 0))
			{
				weapon::give_weapon_to_ped(iParam0, joaat("weapon_rpg"), 16, true, true);
			}
			else
			{
				if (weapon::get_ammo_in_ped_weapon(iParam0, joaat("weapon_rpg")) < 16)
				{
					weapon::set_ped_ammo(iParam0, joaat("weapon_rpg"), 16);
				}
				weapon::set_current_ped_weapon(iParam0, joaat("weapon_rpg"), true);
			}
		}
	}
}

bool func_411(int iParam0, int iParam1, vector3 vParam2, float fParam5, int iParam6, int iParam7, int iParam8)//Position - 0x5E5E6
{
	int iVar0;
	
	if (func_269(iParam1))
	{
		iVar0 = func_93(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);
			func_431(*iParam0, iParam1, iParam7);
			ped::_0xE861D0B05C7662B8(*iParam0, 0, 0);
			func_6(*iParam0);
			func_426(*iParam0, 1, 0);
			func_425(*iParam0);
			func_422(*iParam0);
			func_413(*iParam0, iParam8);
			func_412(*iParam0);
			if (iParam6)
			{
				streaming::set_model_as_no_longer_needed(iVar0);
			}
			return true;
		}
	}
	return false;
}

void func_412(int iParam0)//Position - 0x5E685
{
	int iVar0;
	
	if (ped::is_ped_injured(iParam0))
	{
		return;
	}
	iVar0 = 0;
	while (iVar0 < 9)
	{
		if (entity::does_entity_exist(Global_88980[iVar0]) && Global_88980[iVar0] == iParam0)
		{
			return;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 9)
	{
		if (!entity::does_entity_exist(Global_88980[iVar0]))
		{
			Global_88980[iVar0] = iParam0;
			return;
		}
		iVar0++;
	}
}

bool func_413(int iParam0, int iParam1)//Position - 0x5E6FE
{
	int iVar0;
	int iVar1;
	
	iVar0 = func_270(iParam0);
	if (func_421(iVar0))
	{
		func_420(iVar0, 0);
		func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
		func_417(iParam0, 1);
		return true;
	}
	if (!iParam1)
	{
		if (func_415(iParam0))
		{
			func_420(iVar0, 0);
			func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
			func_417(iParam0, 1);
			return true;
		}
	}
	iVar1 = false;
	switch (iVar0)
	{
		case 0:
			if (Global_101154.f_7775.f_99.f_58[120] && !Global_101154.f_7775.f_99.f_58[122])
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				Global_101154.f_7775.f_99.f_58[121] = 1;
				return true;
			}
			if (Global_101154.f_7775.f_99.f_58[123])
			{
				Global_101154.f_7775.f_99.f_58[123] = 0;
				if (!ped::is_ped_injured(iParam0))
				{
					if (func_101(iParam0, 3, 169))
					{
						func_252(iParam0, 3, 85, 0, -1, 0, 0, 0, -1, -1, -1, 0);
						return true;
					}
				}
			}
			if (func_101(iParam0, 12, 6))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			if (func_101(iParam0, 12, 17))
			{
				if (!func_414(entity::get_entity_model(iParam0), 12, 17))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 20))
			{
				if (!func_414(entity::get_entity_model(iParam0), 12, 20))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 21))
			{
				if (!func_414(entity::get_entity_model(iParam0), 12, 21))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 22))
			{
				if (!func_414(entity::get_entity_model(iParam0), 12, 22))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 11))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			if (func_101(iParam0, 12, 10))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			if (func_101(iParam0, 12, 50))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			if (func_101(iParam0, 14, 59))
			{
				func_252(iParam0, 14, 1, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				iVar1 = true;
			}
			if (func_101(iParam0, 8, 22))
			{
				func_252(iParam0, 8, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				iVar1 = true;
			}
			if (iVar1)
			{
				return true;
			}
			if (func_101(iParam0, 12, 14))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			break;
		
		case 1:
			if (func_101(iParam0, 12, 13))
			{
				if (!func_414(entity::get_entity_model(iParam0), 12, 13))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 14))
			{
				if (!func_414(entity::get_entity_model(iParam0), 12, 14))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 15))
			{
				if (!func_414(entity::get_entity_model(iParam0), 12, 15))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 4))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			if (func_101(iParam0, 12, 3))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			if (func_101(iParam0, 14, 82))
			{
				func_252(iParam0, 14, 1, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				iVar1 = true;
			}
			if (func_101(iParam0, 8, 76))
			{
				func_252(iParam0, 8, 26, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				iVar1 = true;
			}
			if (iVar1)
			{
				return true;
			}
			if (func_101(iParam0, 12, 1))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			break;
		
		case 2:
			if (func_101(iParam0, 12, 12))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			if (func_101(iParam0, 12, 15))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			if (!iParam1)
			{
				if (func_101(iParam0, 3, 71))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 17))
			{
				if (!func_414(entity::get_entity_model(iParam0), 12, 17))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 18))
			{
				if (!func_414(entity::get_entity_model(iParam0), 12, 18))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 19))
			{
				if (!func_414(entity::get_entity_model(iParam0), 12, 19))
				{
					func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					return true;
				}
			}
			if (func_101(iParam0, 12, 7))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			if (func_101(iParam0, 12, 6))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			if (func_101(iParam0, 14, 88))
			{
				func_252(iParam0, 14, 1, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				iVar1 = true;
			}
			if (func_101(iParam0, 8, 17))
			{
				func_252(iParam0, 8, 15, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				iVar1 = true;
			}
			if (iVar1)
			{
				return true;
			}
			if (func_101(iParam0, 12, 11))
			{
				func_252(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
				return true;
			}
			break;
	}
	return false;
}

int func_414(int iParam0, int iParam1, int iParam2)//Position - 0x5ED18
{
	Global_69311[1 /*14*/] = { func_10(iParam0, iParam1, iParam2) };
	return gameplay::is_bit_set(Global_69311[1 /*14*/].f_6, 1);
}

int func_415(int iParam0)//Position - 0x5ED42
{
	int iVar0;
	int iVar1;
	
	iVar1 = entity::get_entity_model(iParam0);
	iVar0 = func_95(iParam0, 4);
	return func_416(iVar1, 4, iVar0);
}

bool func_416(int iParam0, int iParam1, int iParam2)//Position - 0x5ED64
{
	if (iParam0 == joaat("player_zero"))
	{
		if (iParam1 == 4)
		{
			if (iParam2 >= 72 && iParam2 <= 79)
			{
				return true;
			}
		}
		else if (iParam1 == 3)
		{
			if (iParam2 == 169 || (iParam2 >= 92 && iParam2 <= 96))
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_one"))
	{
		if (iParam1 == 4)
		{
			if (iParam2 >= 72 && iParam2 <= 77)
			{
				return true;
			}
		}
		else if (iParam1 == 3)
		{
			if (iParam2 == 260)
			{
				return true;
			}
		}
	}
	else if (iParam0 == joaat("player_two"))
	{
		if (iParam1 == 4)
		{
			if ((iParam2 >= 81 && iParam2 <= 90) || (iParam2 >= 94 && iParam2 <= 103))
			{
				return true;
			}
		}
		else if (iParam1 == 3)
		{
			if (iParam2 == 96)
			{
				return true;
			}
		}
	}
	return false;
}

void func_417(int iParam0, int iParam1)//Position - 0x5EE4D
{
	int iVar0;
	int iVar1;
	struct<65> Var2;
	int iVar67;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_270(iParam0);
		if (func_269(iVar0))
		{
			if (iVar0 == 2)
			{
				iVar1 = func_94(iParam0, 4, -1);
				if (iVar1 == 93)
				{
					func_267(iVar0);
					func_109(iParam0, &(Global_101154.f_1826.f_539[iVar0 /*65*/]), 0);
				}
			}
			Var2 = 12;
			Var2.f_13 = 12;
			Var2.f_26 = 12;
			Var2.f_39 = 9;
			Var2.f_49 = 9;
			func_345(iParam0, &Var2, 1);
			Global_91068[iVar0 /*65*/] = { Var2 };
			if (iParam0 == player::player_ped_id())
			{
				func_418();
			}
			if (gameplay::get_hash_key(script::get_this_script_name()) != gameplay::get_hash_key("clothes_shop_sp") || (script::_get_number_of_instances_of_streamed_script(joaat("lester1")) == 0 && script::_get_number_of_instances_of_streamed_script(joaat("michael4")) == 0))
			{
				if (iParam1 || ((((((!func_22(0) && !func_22(1)) && !func_22(2)) && !func_22(3)) && !func_22(4)) && !func_22(9)) && !func_22(10)))
				{
					Global_101154.f_1826.f_539[iVar0 /*65*/] = { Var2 };
					Global_101154.f_1826.f_539.f_1619[iVar0] = func_268(iParam0);
					iVar67 = 0;
					while (iVar67 < 12)
					{
						Global_101154.f_1826.f_539.f_204[iVar67 /*4*/][iVar0] = func_95(iParam0, func_90(iVar67));
						iVar67++;
					}
					iVar67 = 0;
					while (iVar67 < 12)
					{
						Global_101154.f_1826.f_539.f_204[iVar67 /*4*/][iVar0] = func_95(iParam0, func_90(iVar67));
						iVar67++;
					}
					if (iVar0 == 0)
					{
						if (Global_101154.f_7775.f_99.f_58[121])
						{
							Global_101154.f_7775.f_99.f_58[122] = 1;
						}
					}
				}
			}
		}
	}
}

void func_418()//Position - 0x5F032
{
	struct<50> Var0;
	
	if ((ped::is_ped_injured(player::player_ped_id()) || !func_269(func_960())) || !func_116())
	{
		return;
	}
	Var0 = 12;
	Var0.f_13 = 12;
	Var0.f_26 = 12;
	Var0.f_39 = 9;
	Var0.f_49 = 9;
	func_345(player::player_ped_id(), &Var0, 1);
	func_419(1306, Var0[0], -1, 1);
	func_419(1307, Var0[1], -1, 1);
	func_419(1308, Var0[2], -1, 1);
	func_419(1309, Var0[3], -1, 1);
	func_419(1310, Var0[4], -1, 1);
	func_419(1311, Var0[5], -1, 1);
	func_419(1312, Var0[6], -1, 1);
	func_419(1313, Var0[7], -1, 1);
	func_419(1314, Var0[8], -1, 1);
	func_419(1315, Var0[9], -1, 1);
	func_419(1316, Var0[10], -1, 1);
	func_419(1317, Var0[11], -1, 1);
	func_419(1318, Var0.f_13[0], -1, 1);
	func_419(1319, Var0.f_13[1], -1, 1);
	func_419(1320, Var0.f_13[2], -1, 1);
	func_419(1321, Var0.f_13[3], -1, 1);
	func_419(1322, Var0.f_13[4], -1, 1);
	func_419(1323, Var0.f_13[5], -1, 1);
	func_419(1324, Var0.f_13[6], -1, 1);
	func_419(1325, Var0.f_13[7], -1, 1);
	func_419(1326, Var0.f_13[8], -1, 1);
	func_419(1327, Var0.f_13[9], -1, 1);
	func_419(1328, Var0.f_13[10], -1, 1);
	func_419(1329, Var0.f_13[11], -1, 1);
	func_419(1330, Var0.f_26[0], -1, 1);
	func_419(1331, Var0.f_26[1], -1, 1);
	func_419(1332, Var0.f_26[2], -1, 1);
	func_419(1333, Var0.f_26[3], -1, 1);
	func_419(1334, Var0.f_26[4], -1, 1);
	func_419(1335, Var0.f_26[5], -1, 1);
	func_419(1336, Var0.f_26[6], -1, 1);
	func_419(1337, Var0.f_26[7], -1, 1);
	func_419(1338, Var0.f_26[8], -1, 1);
	func_419(1339, Var0.f_26[9], -1, 1);
	func_419(1340, Var0.f_26[10], -1, 1);
	func_419(1341, Var0.f_26[11], -1, 1);
	func_419(1342, Var0.f_39[0], -1, 1);
	func_419(1343, Var0.f_39[1], -1, 1);
	func_419(1344, Var0.f_39[2], -1, 1);
	func_419(1345, Var0.f_39[3], -1, 1);
	func_419(1346, Var0.f_39[4], -1, 1);
	func_419(1347, Var0.f_39[5], -1, 1);
	func_419(1348, Var0.f_39[6], -1, 1);
	func_419(1349, Var0.f_39[7], -1, 1);
	func_419(1350, Var0.f_39[8], -1, 1);
	func_419(1351, Var0.f_49[0], -1, 1);
	func_419(1352, Var0.f_49[1], -1, 1);
	func_419(1353, Var0.f_49[2], -1, 1);
	func_419(1354, Var0.f_49[3], -1, 1);
	func_419(1355, Var0.f_49[4], -1, 1);
	func_419(1356, Var0.f_49[5], -1, 1);
	func_419(1357, Var0.f_49[6], -1, 1);
	func_419(1358, Var0.f_49[7], -1, 1);
	func_419(1359, Var0.f_49[8], -1, 1);
	func_419(1360, func_960(), -1, 1);
	stats::stat_set_bool(joaat("clo_stored_initial"), true, 1);
	Global_101154.f_1826.f_539.f_3543 = 1;
}

var func_419(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x5F445
{
	int iVar0;
	int iVar1;
	var uVar2;
	
	if (iParam2 == -1)
	{
		iParam2 = func_18();
	}
	if (iParam1 < 0)
	{
		iParam1 = 255;
	}
	iVar0 = 0;
	iVar1 = 0;
	if (iParam0 >= 384 && iParam0 < 457)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 384), 0, 1, iParam2);
		iVar1 = ((iParam0 - 384) - stats::_0x94F12ABF9C79E339((iParam0 - 384)) * 8) * 8;
	}
	else if (iParam0 >= 457 && iParam0 < 513)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 457), 1, 1, iParam2);
		iVar1 = ((iParam0 - 457) - stats::_0x94F12ABF9C79E339((iParam0 - 457)) * 8) * 8;
	}
	else if (iParam0 >= 1281 && iParam0 < 1305)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 1281), 0, 0, 0);
		iVar1 = ((iParam0 - 1281) - stats::_0x94F12ABF9C79E339((iParam0 - 1281)) * 8) * 8;
	}
	else if (iParam0 >= 1305 && iParam0 < 1361)
	{
		iVar0 = stats::_0x61E111E323419E07((iParam0 - 1305), 1, 0, 0);
		iVar1 = ((iParam0 - 1305) - stats::_0x94F12ABF9C79E339((iParam0 - 1305)) * 8) * 8;
	}
	else if (iParam0 >= 1393 && iParam0 < 2919)
	{
		iVar0 = stats::_0xD16C2AD6B8E32854((iParam0 - 1393), 0, 1, iParam2);
		iVar1 = ((iParam0 - 1393) - stats::_0x94F12ABF9C79E339((iParam0 - 1393)) * 8) * 8;
	}
	else if (iParam0 >= 1361 && iParam0 < 1393)
	{
		iVar0 = stats::_0xD16C2AD6B8E32854((iParam0 - 1361), 0, 0, 0);
		iVar1 = ((iParam0 - 1361) - stats::_0x94F12ABF9C79E339((iParam0 - 1361)) * 8) * 8;
	}
	else if (iParam0 >= 3879 && iParam0 < 4143)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 3879), 0, 1, iParam2, "_NGPSTAT_INT");
		iVar1 = ((iParam0 - 3879) - stats::_0x94F12ABF9C79E339((iParam0 - 3879)) * 8) * 8;
	}
	else if (iParam0 >= 4143 && iParam0 < 4207)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4143), 0, 0, 0, "_NGPSTAT_INT");
		iVar1 = ((iParam0 - 4143) - stats::_0x94F12ABF9C79E339((iParam0 - 4143)) * 8) * 8;
	}
	else if (iParam0 >= 4399 && iParam0 < 6028)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 4399), 0, 1, iParam2, "_LRPSTAT_INT");
		iVar1 = ((iParam0 - 4399) - stats::_0x94F12ABF9C79E339((iParam0 - 4399)) * 8) * 8;
	}
	else if (iParam0 >= 6413 && iParam0 < 7262)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 6413), 0, 1, iParam2, "_APAPSTAT_INT");
		iVar1 = ((iParam0 - 6413) - stats::_0x94F12ABF9C79E339((iParam0 - 6413)) * 8) * 8;
	}
	else if (iParam0 >= 7262 && iParam0 < 7313)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7262), 0, 1, iParam2, "_LR2PSTAT_INT");
		iVar1 = ((iParam0 - 7262) - stats::_0x94F12ABF9C79E339((iParam0 - 7262)) * 8) * 8;
	}
	else if (iParam0 >= 7641 && iParam0 < 7681)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7641), 0, 1, iParam2, "_NGDLCPSTAT_INT");
		iVar1 = ((iParam0 - 7641) - stats::_0x94F12ABF9C79E339((iParam0 - 7641)) * 8) * 8;
	}
	else if (iParam0 >= 7313 && iParam0 < 7321)
	{
		iVar0 = stats::_0x2B4CDCA6F07FF3DA((iParam0 - 7313), 0, 0, 0, "_NGDLCPSTAT_INT");
		iVar1 = ((iParam0 - 7313) - stats::_0x94F12ABF9C79E339((iParam0 - 7313)) * 8) * 8;
	}
	uVar2 = stats::stat_set_masked_int(iVar0, iParam1, iVar1, 8, iParam3);
	return uVar2;
}

void func_420(int iParam0, int iParam1)//Position - 0x5F7B5
{
	if (!func_269(iParam0))
	{
		return;
	}
	Global_101154.f_1826.f_539.f_1560[iParam0] = iParam1;
}

int func_421(int iParam0)//Position - 0x5F7DD
{
	if (!func_269(iParam0))
	{
		return 0;
	}
	return Global_101154.f_1826.f_539.f_1560[iParam0];
}

void func_422(int iParam0)//Position - 0x5F804
{
	int iVar0;
	int iVar1;
	int iVar2;
	struct<6> Var3;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		ped::clear_ped_decorations(iParam0);
		iVar1 = 0;
		while (iVar1 < 4)
		{
			iVar2 = 0;
			while (iVar2 < 32)
			{
				if (gameplay::is_bit_set(Global_101154.f_1826.f_493[iVar0 /*15*/].f_10[iVar1], iVar2))
				{
					if (func_162(&Var3, func_424(iVar1, iVar2), func_423(iVar0), iParam0, -1))
					{
						ped::_set_ped_decoration(iParam0, Var3.f_4, Var3.f_5);
					}
				}
				iVar2++;
			}
			iVar1++;
		}
	}
}

int func_423(int iParam0)//Position - 0x5F899
{
	switch (iParam0)
	{
		case 0:
			return 0;
			break;
		
		case 1:
			return 1;
			break;
		
		case 2:
			return 2;
			break;
	}
	return 0;
}

int func_424(int iParam0, int iParam1)//Position - 0x5F8D0
{
	if (iParam0 < 0 || iParam0 > 3)
	{
	}
	if (iParam1 < 0 || iParam1 > 31)
	{
	}
	return (iParam0 * 32 + iParam1);
}

void func_425(int iParam0)//Position - 0x5F902
{
	int iVar0;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		ped::add_armour_to_ped(iParam0, (Global_101154.f_1826.f_539.f_294[iVar0] - ped::get_ped_armour(iParam0)));
	}
}

void func_426(int iParam0, int iParam1, int iParam2)//Position - 0x5F945
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		func_427(iParam0, &(Global_101154.f_1826.f_539.f_298[iVar0 /*284*/]), iParam1);
		iVar1 = 0;
		while (iVar1 <= (8 - 1))
		{
			ui::_0x72C1056D678BB7D8(Global_101154.f_1826.f_539.f_1151[iVar1 /*4*/][iVar0]);
			if (iParam2)
			{
				if (iVar1 == Global_101154.f_1826.f_539.f_1184 || (Global_101154.f_1826.f_539.f_1184 == -1 && iVar1 == 4))
				{
					if (Global_101154.f_1826.f_539.f_1151[iVar1 /*4*/][iVar0] != 0 && Global_101154.f_1826.f_539.f_1151[iVar1 /*4*/][iVar0] != joaat("weapon_molotov"))
					{
						if (weapon::has_ped_got_weapon(iParam0, Global_101154.f_1826.f_539.f_1151[iVar1 /*4*/][iVar0], 0))
						{
							weapon::set_current_ped_weapon(iParam0, Global_101154.f_1826.f_539.f_1151[iVar1 /*4*/][iVar0], true);
						}
					}
				}
			}
			iVar1++;
		}
		if (iVar0 == 0)
		{
			stats::stat_get_int(joaat("sp0_parachute_current_tint"), &iVar2, -1);
		}
		else if (iVar0 == 1)
		{
			stats::stat_get_int(joaat("sp1_parachute_current_tint"), &iVar2, -1);
		}
		else if (iVar0 == 2)
		{
			stats::stat_get_int(joaat("sp2_parachute_current_tint"), &iVar2, -1);
		}
		player::set_player_parachute_pack_tint_index(player::player_id(), iVar2);
	}
}

void func_427(int iParam0, var uParam1, int iParam2)//Position - 0x5FAA6
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	struct<2> Var9;
	struct<4> Var48;
	int iVar70;
	int iVar71[44];
	int iVar116[50];
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar7 = 0;
		while (iVar7 < 2)
		{
			iVar5 = 0;
			while (iVar5 <= (44 - 1))
			{
				iVar1 = func_355(iVar5);
				if (iVar1 != 0 && iVar1 != 1993361168)
				{
					iVar2 = weapon::get_ped_weapontype_in_slot(iParam0, iVar1);
					if (iVar2 != 0 && iVar2 != joaat("weapon_unarmed"))
					{
						if (func_428(iVar2))
						{
							if (iVar7 == 0)
							{
								iVar71[iVar5] = weapon::get_ammo_in_ped_weapon(iParam0, iVar2);
							}
							else
							{
								weapon::set_ped_ammo(iParam0, iVar2, 0);
								weapon::set_ammo_in_clip(iParam0, iVar2, 0);
							}
						}
						else
						{
							iVar71[iVar5] = 0;
							weapon::set_ped_ammo(iParam0, iVar2, 0);
							weapon::set_ammo_in_clip(iParam0, iVar2, 0);
						}
					}
				}
				iVar5++;
			}
			iVar8 = 0;
			while (iVar8 < dlc1::get_num_dlc_weapons())
			{
				if (dlc1::get_dlc_weapon_data(iVar8, &Var9))
				{
					if (!dlc1::_is_dlc_data_empty(Var9) && !func_352(Var9.f_1))
					{
						if (iVar7 == 0)
						{
							iVar116[iVar8] = weapon::get_ammo_in_ped_weapon(iParam0, Var9.f_1);
						}
						else
						{
							weapon::set_ped_ammo(iParam0, Var9.f_1, 0);
							weapon::set_ammo_in_clip(iParam0, Var9.f_1, 0);
						}
					}
					else
					{
						iVar116[iVar8] = 0;
						weapon::set_ped_ammo(iParam0, Var9.f_1, 0);
						weapon::set_ammo_in_clip(iParam0, Var9.f_1, 0);
					}
				}
				iVar8++;
			}
			iVar7++;
		}
		iVar5 = 0;
		while (iVar5 <= (44 - 1))
		{
			iVar1 = func_355(iVar5);
			if (iVar1 != 0 && iVar1 != 1993361168)
			{
				iVar2 = weapon::get_ped_weapontype_in_slot(iParam0, iVar1);
				iVar3 = (*uParam1)[iVar5 /*3*/];
				iVar0 = (uParam1[iVar5 /*3*/])->f_1;
				if (!func_428(iVar3))
				{
					(*uParam1)[iVar5 /*3*/] = 0;
					iVar3 = 0;
				}
				if (iVar3 != 0)
				{
					if (iVar3 != joaat("weapon_unarmed"))
					{
						if (!weapon::has_ped_got_weapon(iParam0, iVar3, 0))
						{
							weapon::give_weapon_to_ped(iParam0, iVar3, 0, false, false);
						}
						if (weapon::get_ammo_in_ped_weapon(iParam0, iVar3) < iVar0)
						{
							weapon::set_ped_ammo(iParam0, iVar3, iVar0);
						}
						iVar6 = 20;
						while ((iVar6 >= 20 && iVar6 < 32) && iVar3 != joaat("weapon_petrolcan"))
						{
							if (gameplay::is_bit_set((uParam1[iVar5 /*3*/])->f_2, iVar6) && weapon::has_ped_got_weapon(iParam0, iVar3, 0))
							{
								weapon::set_ped_weapon_tint_index(iParam0, iVar3, (iVar6 - 20));
								iVar6 = 0;
							}
							else
							{
								iVar6++;
							}
						}
						iVar6 = 0;
						iVar4 = func_353(iVar3, iVar6);
						while (iVar4 != 0)
						{
							if (gameplay::is_bit_set((uParam1[iVar5 /*3*/])->f_2, iVar6))
							{
								if (!weapon::has_ped_got_weapon_component(iParam0, iVar3, iVar4))
								{
									weapon::give_weapon_component_to_ped(iParam0, iVar3, iVar4);
								}
							}
							else if (weapon::has_ped_got_weapon_component(iParam0, iVar3, iVar4))
							{
								weapon::remove_weapon_component_from_ped(iParam0, iVar3, iVar4);
							}
							iVar6++;
							iVar4 = func_353(iVar3, iVar6);
						}
					}
				}
				else if (iParam2)
				{
					if ((iVar2 != 0 && iVar2 != joaat("weapon_unarmed")) && iVar2 != joaat("object"))
					{
						weapon::remove_weapon_from_ped(iParam0, iVar2);
						iVar6 = 0;
						iVar4 = func_353(iVar2, iVar6);
						while (iVar4 != 0)
						{
							if (weapon::has_ped_got_weapon_component(iParam0, iVar2, iVar4))
							{
								weapon::remove_weapon_component_from_ped(iParam0, iVar2, iVar4);
							}
							iVar6++;
							iVar4 = func_353(iVar2, iVar6);
						}
					}
				}
				if (!iParam2)
				{
					if (iVar2 != 0 && iVar2 != joaat("weapon_unarmed"))
					{
						if (weapon::get_ammo_in_ped_weapon(iParam0, iVar2) < iVar71[iVar5])
						{
							weapon::set_ped_ammo(iParam0, iVar2, iVar71[iVar5]);
						}
					}
				}
			}
			iVar5++;
		}
		iVar70 = 0;
		while (iVar70 < uParam1->f_133)
		{
			iVar3 = uParam1->f_133[iVar70 /*3*/];
			iVar0 = uParam1->f_133[iVar70 /*3*/].f_1;
			iVar8 = func_354(iVar3, &Var9);
			if (iVar8 != -1 && !func_352(Var9.f_1))
			{
				if (dlc1::_is_dlc_data_empty(Var9) || func_352(Var9.f_1))
				{
					uParam1->f_133[iVar70 /*3*/] = 0;
					iVar3 = 0;
				}
				if (iVar3 != 0)
				{
					if (iVar3 != joaat("weapon_unarmed"))
					{
						if (!weapon::has_ped_got_weapon(iParam0, iVar3, 0))
						{
							weapon::give_weapon_to_ped(iParam0, iVar3, 0, false, false);
						}
						if (weapon::get_ammo_in_ped_weapon(iParam0, iVar3) < iVar0)
						{
							weapon::set_ped_ammo(iParam0, iVar3, iVar0);
						}
						iVar6 = 20;
						while (iVar6 >= 20 && iVar6 < 32)
						{
							if (gameplay::is_bit_set(uParam1->f_133[iVar70 /*3*/].f_2, iVar6) && weapon::has_ped_got_weapon(iParam0, iVar3, 0))
							{
								weapon::set_ped_weapon_tint_index(iParam0, iVar3, (iVar6 - 20));
								iVar6 = 0;
							}
							else
							{
								iVar6++;
							}
						}
						iVar6 = 0;
						while (iVar6 < dlc1::get_num_dlc_weapon_components(iVar8))
						{
							if (dlc1::get_dlc_weapon_component_data(iVar8, iVar6, &Var48))
							{
								if (gameplay::is_bit_set(uParam1->f_133[iVar70 /*3*/].f_2, iVar6))
								{
									if (!weapon::has_ped_got_weapon_component(iParam0, iVar3, Var48.f_3))
									{
										weapon::give_weapon_component_to_ped(iParam0, iVar3, Var48.f_3);
									}
								}
								else if (weapon::has_ped_got_weapon_component(iParam0, iVar3, Var48.f_3))
								{
									weapon::remove_weapon_component_from_ped(iParam0, iVar3, Var48.f_3);
								}
							}
							iVar6++;
						}
					}
				}
				else if (iParam2)
				{
					if ((iVar2 != 0 && iVar2 != joaat("weapon_unarmed")) && iVar2 != joaat("object"))
					{
						weapon::remove_weapon_from_ped(iParam0, iVar2);
						iVar6 = 0;
						while (iVar6 < dlc1::get_num_dlc_weapon_components(iVar8))
						{
							if (dlc1::get_dlc_weapon_component_data(iVar8, iVar6, &Var48))
							{
								if (weapon::has_ped_got_weapon_component(iParam0, iVar2, Var48.f_3))
								{
									weapon::remove_weapon_component_from_ped(iParam0, iVar2, Var48.f_3);
								}
							}
							iVar6++;
						}
					}
				}
				if (!iParam2)
				{
					if (iVar3 != 0 && iVar3 != joaat("weapon_unarmed"))
					{
						if (weapon::get_ammo_in_ped_weapon(iParam0, iVar3) < iVar116[iVar8])
						{
							weapon::set_ped_ammo(iParam0, iVar3, iVar116[iVar8]);
						}
					}
				}
			}
			iVar70++;
		}
		if (((weapon::get_current_ped_weapon(iParam0, &iVar2, 1) && iVar2 != 0) && iVar2 != joaat("weapon_unarmed")) && iVar2 != joaat("object"))
		{
			iVar0 = weapon::get_ammo_in_ped_weapon(iParam0, iVar2);
			if (iVar0 > 1 && iVar0 > weapon::get_max_ammo_in_clip(iParam0, iVar2, 1))
			{
				weapon::set_ped_ammo(iParam0, iVar2, (iVar0 - weapon::get_max_ammo_in_clip(iParam0, iVar2, 1)));
				weapon::set_ammo_in_clip(iParam0, iVar2, weapon::get_max_ammo_in_clip(iParam0, iVar2, 1));
			}
		}
	}
}

int func_428(int iParam0)//Position - 0x6009E
{
	int iVar0;
	struct<2> Var1;
	
	if (iParam0 == -61829581)
	{
		if (network::network_is_game_in_progress() && func_430())
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	if (iParam0 == joaat("weapon_firework") && !network::network_is_game_in_progress())
	{
		return false;
	}
	switch (iParam0)
	{
		case joaat("weapon_assaultsmg"):
			if (!network::network_is_game_in_progress())
			{
				if (!func_429(1, 1))
				{
					return false;
				}
			}
			break;
		
		case joaat("weapon_sawnoffshotgun"):
			if (network::network_is_game_in_progress())
			{
				if (!func_429(1, 1))
				{
					return false;
				}
			}
			break;
		
		case joaat("weapon_railgun"):
			if (!func_166() || network::network_is_game_in_progress())
			{
				return false;
			}
			break;
		
		case joaat("weapon_hatchet"):
			if (!func_166())
			{
				return false;
			}
			break;
		
		case joaat("weapon_knuckle"):
		case joaat("weapon_marksmanpistol"):
			break;
	}
	iVar0 = 0;
	while (iVar0 < dlc1::get_num_dlc_weapons())
	{
		if (dlc1::get_dlc_weapon_data(iVar0, &Var1))
		{
			if (Var1.f_1 == iParam0)
			{
				if (dlc1::_is_dlc_data_empty(Var1) || func_352(Var1.f_1))
				{
					return false;
				}
			}
		}
		iVar0++;
	}
	return weapon::is_weapon_valid(iParam0);
}

bool func_429(int iParam0, int iParam1)//Position - 0x601B5
{
	if (iParam0)
	{
		if (gameplay::is_bit_set(Global_101154.f_668.f_780, 2))
		{
			return true;
		}
	}
	if (network::_0x67A5589628E0CFF6())
	{
		if (!iParam1 || network::network_is_signed_online())
		{
			if (!gameplay::is_ps3_version() && !gameplay::is_orbis_version())
			{
				return true;
			}
		}
	}
	if (iParam1)
	{
		if (network::_0x1353F87E89946207())
		{
			return false;
		}
	}
	if (network::_0x67A5589628E0CFF6())
	{
		return true;
	}
	return false;
}

int func_430()//Position - 0x60221
{
	return dlc2::is_dlc_present(-1691188696);
}

bool func_431(int iParam0, int iParam1, int iParam2)//Position - 0x60232
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	iVar0 = 4;
	if (iParam1 == 0)
	{
		iVar0 = 0;
	}
	else if (iParam1 == 2)
	{
		iVar0 = 2;
	}
	else if (iParam1 == 1)
	{
		iVar0 = 1;
	}
	else if (iParam1 == 145)
	{
		iVar0 = 3;
		return false;
	}
	if (entity::does_entity_exist(Global_89089[iVar0]))
	{
		iVar1 = -1;
		iVar2 = 0;
		while (iVar2 < Global_91268)
		{
			if (iVar1 < 0)
			{
				if (!entity::does_entity_exist(Global_91268[iVar2]))
				{
					iVar1 = iVar2;
				}
			}
			iVar2++;
		}
		if (iVar1 < 0 || iVar1 > Global_91268)
		{
			iVar1 = 0;
		}
		Global_91268[iVar1] = Global_89089[iVar0];
		if (iParam2)
		{
			if (!ped::is_ped_injured(Global_91268[iVar1]))
			{
				if (entity::does_entity_exist(iParam0))
				{
					if (!entity::is_entity_dead(iParam0, 0))
					{
						ai::clear_ped_tasks(Global_91268[iVar1]);
						ai::task_smart_flee_coord(Global_91268[iVar1], entity::get_entity_coords(iParam0, 1), 1000f, -1, 1, 0);
					}
				}
			}
		}
	}
	Global_89089[iVar0] = iParam0;
	Global_101154.f_1826.f_539.f_1524[iParam1] = func_371();
	Global_101154.f_1826.f_539.f_1528[iParam1 /*3*/] = { entity::get_entity_coords(iParam0, 1) };
	Global_101154.f_1826.f_539.f_1538[iParam1] = entity::get_entity_heading(iParam0);
	if (iParam2)
	{
		gameplay::set_bit(&(Global_89089.f_47), iVar0);
	}
	return true;
}

void func_432(int iParam0, int iParam1)//Position - 0x60389
{
	if (entity::does_entity_exist(iParam0))
	{
		if (!ped::is_ped_injured(iParam0))
		{
			if (!weapon::has_ped_got_weapon(iParam0, joaat("weapon_pumpshotgun"), 0))
			{
				weapon::give_weapon_to_ped(iParam0, joaat("weapon_pumpshotgun"), 200, false, false);
			}
			else if (weapon::get_ammo_in_ped_weapon(iParam0, joaat("weapon_pumpshotgun")) < 200)
			{
				weapon::set_ped_ammo(iParam0, joaat("weapon_pumpshotgun"), 200);
			}
			if (!weapon::has_ped_got_weapon(iParam0, joaat("weapon_heavysniper"), 0))
			{
				weapon::give_weapon_to_ped(iParam0, joaat("weapon_heavysniper"), 200, false, false);
			}
			else if (weapon::get_ammo_in_ped_weapon(iParam0, joaat("weapon_heavysniper")) < 200)
			{
				weapon::set_ped_ammo(iParam0, joaat("weapon_heavysniper"), 200);
			}
			if (!weapon::has_ped_got_weapon(iParam0, joaat("weapon_grenade"), 0))
			{
				weapon::give_weapon_to_ped(iParam0, joaat("weapon_grenade"), 15, false, false);
			}
			else if (weapon::get_ammo_in_ped_weapon(iParam0, joaat("weapon_grenade")) < 15)
			{
				weapon::set_ped_ammo(iParam0, joaat("weapon_grenade"), 15);
			}
			if (!weapon::has_ped_got_weapon(iParam0, joaat("weapon_carbinerifle"), 0))
			{
				weapon::give_weapon_to_ped(iParam0, joaat("weapon_carbinerifle"), 800, iParam1, iParam1);
			}
			else
			{
				if (weapon::get_ammo_in_ped_weapon(iParam0, joaat("weapon_carbinerifle")) < 800)
				{
					weapon::set_ped_ammo(iParam0, joaat("weapon_carbinerifle"), 800);
				}
				weapon::set_current_ped_weapon(iParam0, joaat("weapon_carbinerifle"), iParam1);
			}
		}
	}
}

void func_433()//Position - 0x604B2
{
	streaming::set_vehicle_population_budget(0);
	pathfind::set_roads_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, false, 1);
	pathfind::set_ped_paths_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, false, 0);
	ped::set_ped_non_creation_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f);
	ped::add_scenario_blocking_area(798.06f, -1982.81f, 100f, 1372.22f, -2752.3f, -100f, 0, 1, 1, 1);
	vehicle::set_all_vehicle_generators_active_in_area(935.9f, -2390.9f, 100f, 899.3f, -2319.6f, -100f, false, 1);
	vehicle::set_all_vehicle_generators_active_in_area(906.8f, -2322f, 100f, 844f, -2365.1f, -100f, false, 1);
	gameplay::clear_area(Local_1207.f_3, 1000f, 1, 0, 0, false);
	gameplay::clear_area(890.4393f, -2346.476f, 29.3413f, 1000f, 1, 0, 0, false);
	if (iLocal_3833)
	{
		func_331(890.4393f, -2346.476f, 29.3413f, 184.3769f, 0, 0);
	}
	streaming::request_model(func_93(0));
	streaming::request_model(func_93(1));
	streaming::request_model(func_93(2));
	streaming::request_model(Local_1645.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1645.f_1, true);
	streaming::request_model(Local_1177.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
	streaming::request_model(Local_1207.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
	streaming::request_model(Local_1192.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1192.f_1, true);
	streaming::request_model(weapon::get_weapontype_model(joaat("weapon_combatmg")));
	weapon::request_weapon_asset(joaat("weapon_combatmg"), 31, 0);
	streaming::request_model(weapon::get_weapontype_model(joaat("weapon_carbinerifle")));
	weapon::request_weapon_asset(joaat("weapon_carbinerifle"), 31, 0);
	streaming::request_model(Local_2981.f_2);
	streaming::request_model(Local_3029.f_2);
	streaming::request_anim_dict("missfbi4");
	streaming::request_anim_dict("misssagrab");
	streaming::request_anim_dict("missheat");
	ai::request_waypoint_recording("heat1");
	ai::request_waypoint_recording("heat2");
	ai::request_waypoint_recording("heat3");
	audio::load_stream("Truck_Crash_Stream", "FBI_04_HEAT_SOUNDS");
	audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false);
	streaming::request_ptfx_asset();
	vehicle::request_vehicle_recording(2, "lkcountry");
	vehicle::request_vehicle_recording(3, "lkcountry");
	vehicle::request_vehicle_recording(4, "lkcountry");
	vehicle::request_vehicle_recording(5, "lkcountry");
	vehicle::request_vehicle_recording(10, "lkcountry");
	vehicle::request_vehicle_recording(11, "lkcountry");
	vehicle::request_vehicle_recording(12, "lkcountry");
	vehicle::request_vehicle_recording(14, "lkcountry");
	vehicle::request_vehicle_recording(15, "lkcountry");
	vehicle::request_vehicle_recording(16, "lkcountry");
	if (iLocal_3833)
	{
		func_327(0, -1, 1);
	}
	while (((((((((((((((((((((((((((((((!streaming::has_model_loaded(func_93(0)) || !streaming::has_model_loaded(func_93(1))) || !streaming::has_model_loaded(func_93(2))) || !streaming::has_model_loaded(Local_1645.f_1)) || !streaming::has_model_loaded(Local_1177.f_1)) || !streaming::has_model_loaded(Local_1207.f_1)) || !streaming::has_model_loaded(Local_1192.f_1)) || !streaming::has_model_loaded(weapon::get_weapontype_model(joaat("weapon_combatmg")))) || !weapon::has_weapon_asset_loaded(joaat("weapon_combatmg"))) || !streaming::has_model_loaded(weapon::get_weapontype_model(joaat("weapon_carbinerifle")))) || !weapon::has_weapon_asset_loaded(joaat("weapon_carbinerifle"))) || !streaming::has_model_loaded(Local_2981.f_2)) || !streaming::has_model_loaded(Local_3029.f_2)) || !streaming::has_anim_dict_loaded("missfbi4")) || !streaming::has_anim_dict_loaded("misssagrab")) || !streaming::has_anim_dict_loaded("missheat")) || !ai::get_is_waypoint_recording_loaded("heat1")) || !ai::get_is_waypoint_recording_loaded("heat2")) || !ai::get_is_waypoint_recording_loaded("heat3")) || !vehicle::has_vehicle_recording_been_loaded(2, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(3, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(4, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(5, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(10, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(11, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(12, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(14, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(15, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(16, "lkcountry")) || !audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false)) || !audio::load_stream("Truck_Crash_Stream", "FBI_04_HEAT_SOUNDS")) || !streaming::has_ptfx_asset_loaded())
	{
		system::wait(0);
	}
	func_961(1, 1, 0, 1, 0);
	ai::clear_ped_tasks_immediately(player::player_ped_id());
	func_443(1, 0);
	ped::set_ped_using_action_mode(player::player_ped_id(), true, -1, 0);
	func_324(player::player_ped_id());
	func_252(player::player_ped_id(), 14, 158, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	entity::set_entity_coords(player::player_ped_id(), 890.4393f, -2346.476f, 29.3413f, 1, false, 0, 1);
	entity::set_entity_heading(player::player_ped_id(), 184.3769f);
	ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
	func_432(player::player_ped_id(), 0);
	if (!weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_stickybomb"), 0))
	{
		weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_stickybomb"), 5, true, true);
	}
	else if (weapon::get_ammo_in_ped_weapon(player::player_ped_id(), joaat("weapon_stickybomb")) < 5)
	{
		weapon::set_ped_ammo(player::player_ped_id(), joaat("weapon_stickybomb"), 5);
	}
	weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_stickybomb"), true);
	func_442(&(Local_3473[0 /*165*/]), 1, player::player_ped_id(), "franklin", 0, 1);
	Local_1177 = vehicle::create_vehicle(Local_1177.f_1, 901.9453f, -2383.368f, 29.2789f, 341.1729f, 1, true);
	vehicle::set_vehicle_on_ground_properly(Local_1177);
	vehicle::set_vehicle_has_strong_axles(Local_1177, true);
	vehicle::set_vehicle_automatically_attaches(Local_1177, false, 0);
	vehicle::set_vehicle_doors_locked(Local_1177, 2);
	entity::set_entity_proofs(Local_1177, true, true, true, true, true, false, 0, false);
	func_400(Local_1177, 0);
	Local_1207 = vehicle::create_vehicle(Local_1207.f_1, 896.0925f, -2364.399f, 29.4761f, 84.1277f, 1, true);
	vehicle::set_vehicle_colours(Local_1207, 0, 0);
	vehicle::set_vehicle_on_ground_properly(Local_1207);
	vehicle::set_vehicle_has_strong_axles(Local_1207, true);
	vehicle::set_vehicle_damage(Local_1207, 0f, 6.5f, 0.5f, 375f, 375f, 1);
	vehicle::_0x2B6747FAA9DB9D6B(Local_1207, 1);
	vehicle::set_vehicle_doors_locked(Local_1207, 2);
	vehicle::set_vehicle_is_considered_by_player(Local_1207, 0);
	func_399(&Local_1207);
	func_400(Local_1207, 1);
	func_411(&(iLocal_3099[0]), 0, 894.0912f, -2349.348f, 29.4448f, 163.8641f, 0, 0, 0);
	ped::set_ped_using_action_mode(iLocal_3099[0], true, -1, 0);
	func_324(iLocal_3099[0]);
	func_252(iLocal_3099[0], 14, 112, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	func_403(iLocal_3099[0]);
	func_320(iLocal_3099[0], 0);
	func_319(&(iLocal_3099[0]), 1);
	func_442(&(Local_3473[0 /*165*/]), 0, iLocal_3099[0], "michael", 0, 1);
	iLocal_3451 = func_407(iLocal_3099[0], 0, 145);
	ui::set_blip_display(iLocal_3451, 2);
	ui::set_blip_scale(iLocal_3451, 0.5f);
	ai::task_aim_gun_at_coord(iLocal_3099[0], 891.74f, -2358.18f, 30.71f, -1, 1, 0);
	ped::force_ped_motion_state(iLocal_3099[0], 1063765679, false, 0, 0);
	ped::_0x2208438012482A1A(iLocal_3099[0], 0, 0);
	func_411(&(iLocal_3099[2]), 2, 804.7164f, -2330.207f, 61.0967f, 264.4371f, 0, 0, 0);
	func_324(iLocal_3099[2]);
	func_252(iLocal_3099[2], 14, 154, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	func_410(iLocal_3099[2]);
	func_320(iLocal_3099[2], 0);
	func_319(&(iLocal_3099[2]), 1);
	func_442(&(Local_3473[0 /*165*/]), 2, iLocal_3099[2], "TREVOR", 0, 1);
	iLocal_3452 = func_407(iLocal_3099[2], 0, 145);
	ui::set_blip_display(iLocal_3451, 2);
	ui::set_blip_scale(iLocal_3451, 0.5f);
	Local_2933 = object::create_object_no_offset(Local_2933.f_2, 889.84f, -2361.97f, 30.58f, 1, true, false);
	entity::set_entity_health(Local_2933, Local_2933.f_20);
	entity::freeze_entity_position(Local_2933, true);
	entity::set_entity_heading(Local_2933, 90f);
	iLocal_3192 = 1;
	if (!ped::is_ped_injured(Local_1645))
	{
		entity::set_entity_health(Local_1645, 2);
	}
	if (!ped::is_ped_injured(Local_1665))
	{
		entity::set_entity_health(Local_1665, 2);
	}
	if (!iLocal_3833)
	{
		streaming::load_scene(890.4393f, -2346.476f, 29.3413f);
	}
	Local_1192 = vehicle::create_vehicle(Local_1192.f_1, 880f, -2357.4f, 30.15f, 175.2936f, 1, true);
	vehicle::set_vehicle_has_strong_axles(Local_1192, true);
	entity::set_entity_proofs(Local_1192, true, true, true, true, true, false, 0, false);
	entity::set_entity_coords_no_offset(Local_1192, 890.495f, -2365.6f, 30.5039f, 0, 0, 1);
	entity::set_entity_rotation(Local_1192, 0f, 91.8056f, 173.211f, 2, 1);
	entity::freeze_entity_position(Local_1192, true);
	vehicle::_0x1CF38D529D7441D9(Local_1192, true);
	vehicle::set_vehicle_damage(Local_1192, -2f, -0.5f, 0.5f, 1000f, 1000f, 1);
	vehicle::set_vehicle_automatically_attaches(Local_1192, false, 0);
	vehicle::set_vehicle_doors_locked(Local_1192, 2);
	audio::set_horn_enabled(Local_1192, 0);
	func_399(&Local_1192);
	Local_1645 = ped::create_ped_inside_vehicle(Local_1192, 26, Local_1645.f_1, -1, 1, true);
	ped::set_ped_dies_when_injured(Local_1645, true);
	audio::disable_ped_pain_audio(Local_1645, 1);
	ped::set_blocking_of_non_temporary_events(Local_1645, true);
	entity::set_entity_health(Local_1645, 2);
	entity::set_ped_as_no_longer_needed(&Local_1645);
	Local_1665 = ped::create_ped_inside_vehicle(Local_1192, 26, Local_1665.f_1, 0, 1, true);
	ped::set_ped_dies_when_injured(Local_1665, true);
	audio::disable_ped_pain_audio(Local_1665, 1);
	ped::set_blocking_of_non_temporary_events(Local_1665, true);
	entity::set_entity_health(Local_1665, 2);
	entity::set_ped_as_no_longer_needed(&Local_1665);
	Local_2981 = object::create_object(Local_2981.f_2, Local_2981.f_3, 1, true, false);
	entity::set_entity_rotation(Local_2981, Local_2981.f_12, 2, 1);
	entity::freeze_entity_position(Local_2981, true);
	while ((!ped::_0x7350823473013C02(player::player_ped_id()) || !func_434(iLocal_3099[0])) || !func_434(iLocal_3099[2]))
	{
		system::wait(0);
	}
	audio::trigger_music_event("FBI4_EXPLODE_RESTART_ST");
	iLocal_3230 = 1;
	iLocal_3231 = 2;
	iLocal_3284 = 22;
	iLocal_3309 = gameplay::get_game_timer();
	func_333(2, "Detonate C4", 0, 0, 0, 1);
	func_438(0, 1, 0f, 0f, 0, 1);
	iLocal_1126 = 5;
}

bool func_434(int iParam0)//Position - 0x60F10
{
	if (entity::does_entity_exist(iParam0))
	{
		if (!ped::is_ped_injured(iParam0))
		{
			if (ped::_0x7350823473013C02(iParam0))
			{
				return true;
			}
		}
	}
	return false;
}

void func_435()//Position - 0x60F39
{
	pathfind::set_roads_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, false, 1);
	pathfind::set_ped_paths_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, false, 0);
	ped::set_ped_non_creation_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f);
	ped::add_scenario_blocking_area(798.06f, -1982.81f, 100f, 1372.22f, -2752.3f, -100f, 0, 1, 1, 1);
	vehicle::set_all_vehicle_generators_active_in_area(935.9f, -2390.9f, 100f, 899.3f, -2319.6f, -100f, false, 1);
	vehicle::set_all_vehicle_generators_active_in_area(906.8f, -2322f, 100f, 844f, -2365.1f, -100f, false, 1);
	gameplay::clear_area(Local_1207.f_3, 1000f, 1, 0, 0, false);
	gameplay::clear_area(890.4393f, -2346.476f, 29.3413f, 10000f, 1, 0, 0, false);
	if (iLocal_3833)
	{
		func_331(989.9289f, -2373.23f, 29.5308f, 80.8604f, 0, 0);
	}
	streaming::request_model(func_93(0));
	streaming::request_model(func_93(1));
	streaming::request_model(func_93(2));
	streaming::request_model(Local_1645.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1645.f_1, true);
	streaming::request_model(Local_1177.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
	streaming::request_model(Local_1207.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
	streaming::request_model(Local_1192.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1192.f_1, true);
	streaming::request_model(Local_2981.f_2);
	streaming::request_model(weapon::get_weapontype_model(joaat("weapon_combatmg")));
	weapon::request_weapon_asset(joaat("weapon_combatmg"), 31, 0);
	streaming::request_ptfx_asset();
	vehicle::request_vehicle_recording(2, "lkcountry");
	vehicle::request_vehicle_recording(3, "lkcountry");
	vehicle::request_vehicle_recording(4, "lkcountry");
	vehicle::request_vehicle_recording(5, "lkcountry");
	vehicle::request_vehicle_recording(10, "lkcountry");
	vehicle::request_vehicle_recording(11, "lkcountry");
	vehicle::request_vehicle_recording(12, "lkcountry");
	vehicle::request_vehicle_recording(14, "lkcountry");
	vehicle::request_vehicle_recording(15, "lkcountry");
	vehicle::request_vehicle_recording(16, "lkcountry");
	streaming::request_anim_dict("missfbi4");
	streaming::request_anim_dict("misssagrab");
	streaming::request_anim_dict("missheat");
	ai::request_waypoint_recording("heat1");
	ai::request_waypoint_recording("heat2");
	ai::request_waypoint_recording("heat3");
	audio::request_ambient_audio_bank("SCRIPT\FBI_04_HEAT_02", 0);
	audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false);
	audio::load_stream("Truck_Crash_Stream", "FBI_04_HEAT_SOUNDS");
	if (iLocal_3833)
	{
		func_327(0, -1, 1);
	}
	while (((((((((((((((((((((((((((((!streaming::has_model_loaded(func_93(0)) || !streaming::has_model_loaded(func_93(1))) || !streaming::has_model_loaded(func_93(2))) || !streaming::has_model_loaded(Local_1645.f_1)) || !streaming::has_model_loaded(Local_1177.f_1)) || !streaming::has_model_loaded(Local_1207.f_1)) || !streaming::has_model_loaded(Local_1192.f_1)) || !streaming::has_model_loaded(Local_2981.f_2)) || !streaming::has_model_loaded(weapon::get_weapontype_model(joaat("weapon_combatmg")))) || !weapon::has_weapon_asset_loaded(joaat("weapon_combatmg"))) || !streaming::has_ptfx_asset_loaded()) || !vehicle::has_vehicle_recording_been_loaded(2, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(3, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(4, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(5, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(10, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(11, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(12, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(14, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(15, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(16, "lkcountry")) || !streaming::has_anim_dict_loaded("missfbi4")) || !streaming::has_anim_dict_loaded("misssagrab")) || !streaming::has_anim_dict_loaded("missheat")) || !ai::get_is_waypoint_recording_loaded("heat1")) || !ai::get_is_waypoint_recording_loaded("heat2")) || !ai::get_is_waypoint_recording_loaded("heat3")) || !audio::request_ambient_audio_bank("SCRIPT\FBI_04_HEAT_02", 0)) || !audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false)) || !audio::load_stream("Truck_Crash_Stream", "FBI_04_HEAT_SOUNDS"))
	{
		system::wait(0);
	}
	Local_1207 = vehicle::create_vehicle(Local_1207.f_1, 1024.197f, -2376.524f, 29.5306f, 85.759f, 1, true);
	vehicle::set_vehicle_colours(Local_1207, 0, 0);
	vehicle::set_vehicle_has_strong_axles(Local_1207, true);
	vehicle::set_vehicle_engine_on(Local_1207, true, 1, 0);
	vehicle::_0x2B6747FAA9DB9D6B(Local_1207, 1);
	vehicle::start_playback_recorded_vehicle(Local_1207, 12, "lkcountry", 1);
	vehicle::skip_time_in_playback_recorded_vehicle(Local_1207, 6250f);
	vehicle::set_playback_speed(Local_1207, 0f);
	vehicle::_0x1F2E4E06DEA8992B(Local_1207, 1);
	func_400(Local_1207, 1);
	ai::clear_ped_tasks_immediately(player::player_ped_id());
	func_443(1, 0);
	func_324(player::player_ped_id());
	func_252(player::player_ped_id(), 14, 158, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	entity::set_entity_coords(player::player_ped_id(), 890.4393f, -2346.476f, 29.3413f, 1, false, 0, 1);
	entity::set_entity_heading(player::player_ped_id(), 184.3769f);
	ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
	func_442(&(Local_3473[0 /*165*/]), 1, player::player_ped_id(), "franklin", 0, 1);
	ped::set_ped_into_vehicle(player::player_ped_id(), Local_1207, -1);
	audio::set_veh_radio_station(Local_1207, "OFF");
	Local_1177 = vehicle::create_vehicle(Local_1177.f_1, 906.2f, -2375.501f, 30.532f, 250.22f, 1, true);
	vehicle::set_vehicle_on_ground_properly(Local_1177);
	vehicle::set_vehicle_has_strong_axles(Local_1177, true);
	vehicle::set_vehicle_automatically_attaches(Local_1177, false, 0);
	entity::set_entity_proofs(Local_1177, true, true, true, true, true, false, 0, false);
	func_400(Local_1177, 0);
	func_437(&(iLocal_3099[0]), 0, Local_1177, -1, 0, 0, 0);
	func_324(iLocal_3099[0]);
	func_252(iLocal_3099[0], 14, 112, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	func_442(&(Local_3473[0 /*165*/]), 0, iLocal_3099[0], "michael", 0, 1);
	if (!iLocal_3833)
	{
		streaming::load_scene(entity::get_entity_coords(player::player_ped_id(), 1));
	}
	iLocal_3806 = streaming::_0x219C7B8D53E429FD(904.981f, -2367.179f, 30.15f, 7f, 1, 127);
	while (!streaming::_0x7D41E9D2D17C5B2D(iLocal_3806))
	{
		system::wait(0);
	}
	Local_1192 = vehicle::create_vehicle(Local_1192.f_1, 904.981f, -2367.179f, 30.15f, 175.2936f, 1, true);
	vehicle::set_vehicle_has_strong_axles(Local_1192, true);
	vehicle::set_vehicle_on_ground_properly(Local_1192);
	vehicle::set_vehicle_automatically_attaches(Local_1192, false, 0);
	audio::_0x153973AB99FE8980(Local_1192, "FBI_4_STOCKADE_GROUP", 0f);
	Local_1645 = ped::create_ped_inside_vehicle(Local_1192, 26, Local_1645.f_1, -1, 1, true);
	ped::set_ped_dies_when_injured(Local_1645, true);
	audio::disable_ped_pain_audio(Local_1645, 1);
	ped::set_blocking_of_non_temporary_events(Local_1645, true);
	Local_1665 = ped::create_ped_inside_vehicle(Local_1192, 26, Local_1665.f_1, 0, 1, true);
	ped::set_ped_dies_when_injured(Local_1665, true);
	audio::disable_ped_pain_audio(Local_1665, 1);
	ped::set_blocking_of_non_temporary_events(Local_1665, true);
	system::wait(0);
	while (!ped::_0x7350823473013C02(player::player_ped_id()))
	{
		system::wait(0);
	}
	if (vehicle::is_vehicle_driveable(Local_1207, 0))
	{
		vehicle::set_playback_speed(Local_1207, 1f);
	}
	audio::trigger_music_event("fbi4_TRUCK_RAM_RESTART_ST");
	streaming::_0x1EE7D8DF4425F053(iLocal_3806);
	iLocal_3246 = gameplay::get_game_timer();
	iLocal_3807 = cam::get_follow_vehicle_cam_view_mode();
	cam::set_follow_vehicle_cam_view_mode(4);
	func_438(1, 1, 0f, 0f, 0, 1);
	func_436("cntry_god3", 7500, 1);
	func_333(1, "Ram money truck", 0, 0, 0, 1);
	iLocal_1126 = 4;
}

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

bool func_437(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x616DC
{
	int iVar0;
	
	if (func_269(iParam1))
	{
		iVar0 = func_93(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, 1, true);
				func_431(*iParam0, iParam1, iParam5);
				ped::_0xE861D0B05C7662B8(*iParam0, 0, 0);
				func_6(*iParam0);
				func_426(*iParam0, 1, 0);
				func_425(*iParam0);
				func_422(*iParam0);
				func_413(*iParam0, iParam6);
				func_412(*iParam0);
				if (iParam4)
				{
					streaming::set_model_as_no_longer_needed(iVar0);
				}
			}
			return true;
		}
	}
	return false;
}

void func_438(int iParam0, int iParam1, float fParam2, float fParam3, int iParam4, int iParam5)//Position - 0x6178E
{
	func_275(0, 1, iParam5, 0);
	ui::clear_prints();
	ui::clear_help(1);
	func_440();
	audio::set_frontend_radio_active(1);
	ui::display_hud(true);
	ui::display_radar(true);
	cam::set_widescreen_borders(false, 500);
	if (player::is_player_playing(player::player_id()))
	{
		cam::destroy_all_cams(0);
		if (iParam1)
		{
			cam::render_script_cams(false, false, 3000, 1, 0, 0);
			cam::set_gameplay_cam_relative_heading(fParam2);
			cam::set_gameplay_cam_relative_pitch(fParam3, 1065353216);
		}
		if (iParam0)
		{
			ai::clear_ped_tasks(player::player_ped_id());
		}
		player::set_player_control(player::player_id(), true, 0);
		weapon::hide_ped_weapon_for_scripted_cutscene(player::player_ped_id(), false);
	}
	if (iParam4)
	{
		func_439();
	}
	else
	{
		func_401();
	}
	cam::do_screen_fade_in(800);
}

void func_439()//Position - 0x6182C
{
	gameplay::_0xDC0F817884CDD856(1, true);
	gameplay::_0xDC0F817884CDD856(2, true);
	gameplay::_0xDC0F817884CDD856(3, true);
	gameplay::_0xDC0F817884CDD856(4, true);
	gameplay::_0xDC0F817884CDD856(12, true);
	gameplay::_0xDC0F817884CDD856(5, true);
	gameplay::_0xDC0F817884CDD856(6, true);
	gameplay::_0xDC0F817884CDD856(7, true);
	gameplay::_0xDC0F817884CDD856(8, true);
	gameplay::_0xDC0F817884CDD856(9, true);
	gameplay::_0xDC0F817884CDD856(10, true);
	gameplay::_0xDC0F817884CDD856(11, true);
	gameplay::_0xDC0F817884CDD856(12, true);
	gameplay::_0xDC0F817884CDD856(13, true);
}

void func_440()//Position - 0x6188F
{
	Global_14578 = 0;
	func_441();
}

void func_441()//Position - 0x6189F
{
	if (audio::is_scripted_conversation_ongoing())
	{
		audio::restart_scripted_conversation();
		Global_16723 = 0;
		audio::stop_scripted_conversation(true);
		Global_15712 = 6;
		return;
	}
}

void func_442(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5)//Position - 0x618C3
{
	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_69489)
	{
		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);
			}
		}
	}
}

bool func_443(int iParam0, int iParam1)//Position - 0x6195E
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	vector3 vVar4;
	
	Global_17118.f_13 = 0;
	if (ped::is_ped_injured(player::player_ped_id()))
	{
		return true;
	}
	iVar0 = func_488(iParam0);
	iVar1 = func_93(iVar0);
	if (iVar1 == 0)
	{
		return true;
	}
	if (ped::is_ped_model(player::player_ped_id(), iVar1))
	{
		return true;
	}
	streaming::request_model(iVar1);
	if (!streaming::has_model_loaded(iVar1))
	{
		return false;
	}
	if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
	{
		iVar2 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
		if (player::player_ped_id() == vehicle::get_ped_in_vehicle_seat(iVar2, -1))
		{
			iVar3 = -1;
		}
		else if (player::player_ped_id() == vehicle::get_ped_in_vehicle_seat(iVar2, 0))
		{
			iVar3 = 0;
		}
		else if (player::player_ped_id() == vehicle::get_ped_in_vehicle_seat(iVar2, 1))
		{
			iVar3 = 1;
		}
		else if (player::player_ped_id() == vehicle::get_ped_in_vehicle_seat(iVar2, 2))
		{
			iVar3 = 2;
		}
		else
		{
			iVar3 = -1;
		}
	}
	else
	{
		iVar2 = 0;
	}
	if (entity::does_entity_exist(iVar2) && vehicle::is_vehicle_driveable(iVar2, 0))
	{
		ai::clear_ped_tasks_immediately(player::player_ped_id());
		func_437(&(Global_17072[iParam0]), iVar0, iVar2, iVar3, iParam1, 0, 0);
	}
	else
	{
		vVar4 = { entity::get_entity_coords(player::player_ped_id(), 1) };
		gameplay::get_ground_z_for_3d_coord(vVar4, &(vVar4.f_2), 0);
		func_411(&(Global_17072[iParam0]), iVar0, vVar4, entity::get_entity_heading(player::player_ped_id()), iParam1, 0, 0);
	}
	Global_17072.f_7 = iParam0;
	Global_17072.f_39 = 1;
	func_446(&Global_17072, 0, 0, 0);
	func_444(iParam0);
	return true;
}

void func_444(int iParam0)//Position - 0x61AB8
{
	return;
	Global_17118.f_126 = 1;
	Global_17118.f_127 = func_445(iParam0);
	Global_17118.f_129 = gameplay::get_game_timer();
}

int func_445(int iParam0)//Position - 0x61ADD
{
	if (iParam0 == 0)
	{
		return 3;
	}
	else if (iParam0 == 1)
	{
		return 0;
	}
	else if (iParam0 == 2)
	{
		return 1;
	}
	else if (iParam0 == 3)
	{
		return 2;
	}
	return 0;
}

bool func_446(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x61B17
{
	int iVar0;
	int iVar1;
	int iVar2;
	float fVar3;
	int iVar4;
	var uVar5;
	char cVar6[64];
	int iVar22;
	var uVar23;
	char* sVar24;
	
	if (!iParam0->f_39)
	{
		if (iParam0->f_7 == 4)
		{
			return true;
		}
	}
	if ((!ped::is_ped_injured((*iParam0)[iParam0->f_7]) && !ped::is_ped_injured(player::player_ped_id())) && (*iParam0)[iParam0->f_7] != player::player_ped_id())
	{
		if (!iParam2)
		{
			if ((ped::is_ped_ragdoll(player::player_ped_id()) && !fire::is_entity_on_fire(player::player_ped_id())) && !ped::is_ped_getting_into_a_vehicle(player::player_ped_id()))
			{
				ai::clear_ped_tasks_immediately(player::player_ped_id());
			}
			else
			{
				ai::clear_ped_tasks(player::player_ped_id());
			}
			if ((ped::is_ped_ragdoll((*iParam0)[iParam0->f_7]) && !fire::is_entity_on_fire((*iParam0)[iParam0->f_7])) && !ped::is_ped_getting_into_a_vehicle((*iParam0)[iParam0->f_7]))
			{
				ai::clear_ped_tasks_immediately((*iParam0)[iParam0->f_7]);
			}
			else
			{
				ai::clear_ped_tasks((*iParam0)[iParam0->f_7]);
			}
		}
		iVar0 = player::player_ped_id();
		iVar1 = func_960();
		if (!iParam0->f_23)
		{
			func_482(iVar0, 0);
		}
		func_480(iVar1, &iVar0);
		ped::set_ped_config_flag(iVar0, 32, true);
		ped::set_ped_config_flag(iVar0, 250, true);
		iVar2 = func_488(iParam0->f_7);
		func_482((*iParam0)[iParam0->f_7], 0);
		fVar3 = (((system::to_float(entity::get_entity_health((*iParam0)[iParam0->f_7])) - 100f) / (system::to_float(ped::get_ped_max_health((*iParam0)[iParam0->f_7])) - 100f)) * 100f);
		switch (func_270(player::player_ped_id()))
		{
			case 0:
				if (graphics::_get_screen_effect_is_active("BulletTime"))
				{
					graphics::_stop_screen_effect("BulletTime");
				}
				if (graphics::_get_screen_effect_is_active("BulletTimeOut"))
				{
					graphics::_stop_screen_effect("BulletTimeOut");
				}
				break;
			
			case 1:
				if (graphics::_get_screen_effect_is_active("DrivingFocus"))
				{
					graphics::_stop_screen_effect("DrivingFocus");
				}
				if (graphics::_get_screen_effect_is_active("DrivingFocusOut"))
				{
					graphics::_stop_screen_effect("DrivingFocusOut");
				}
				break;
			
			case 2:
				if (graphics::_get_screen_effect_is_active("REDMIST"))
				{
					graphics::_stop_screen_effect("REDMIST");
				}
				if (graphics::_get_screen_effect_is_active("REDMISTOut"))
				{
					graphics::_stop_screen_effect("REDMISTOut");
				}
				break;
		}
		if (func_269(func_960()))
		{
			if (player::is_special_ability_active(player::player_id()))
			{
				player::special_ability_deactivate_fast(player::player_id());
			}
		}
		player::change_player_ped(player::player_id(), (*iParam0)[iParam0->f_7], iParam2, 0);
		ui::hide_hud_component_this_frame(3);
		ui::hide_hud_component_this_frame(13);
		if (iParam3 & 1 != 0)
		{
			ped::set_ped_config_flag(player::player_ped_id(), 210, false);
		}
		if (func_477(0) || func_477(3))
		{
			if (Global_17118.f_13)
			{
				iVar4 = 0;
				while (iVar4 < 7)
				{
					if (gameplay::is_bit_set(Global_82363[iVar4 /*5*/].f_1, 2))
					{
						uVar5 = Global_82363[iVar4 /*5*/];
						StringCopy(&cVar6, "MISS_SWITCH_", 64);
						StringConCat(&cVar6, &(Global_82399[Global_69758.f_109[uVar5 /*4*/] /*34*/]), 64);
						stats::stat_increment(gameplay::get_hash_key(&cVar6), 1f);
					}
					iVar4++;
				}
			}
		}
		Global_17118.f_13 = 0;
		iParam0->f_5 = func_476(iVar1);
		if (iParam0->f_5 == 4)
		{
			iParam0->f_5 = 3;
		}
		(*iParam0)[iParam0->f_5] = iVar0;
		(*iParam0)[iParam0->f_7] = 0;
		iParam0->f_6 = func_476(iVar2);
		iParam0->f_7 = 4;
		iVar22 = player::player_ped_id();
		entity::set_entity_visible(player::player_ped_id(), true, 0);
		func_475(iVar22);
		ped::_0xE861D0B05C7662B8(iVar22, 0, 0);
		if (fVar3 < 25f && !ped::is_ped_swimming_under_water(player::player_ped_id()))
		{
			entity::set_entity_health(player::player_ped_id(), system::round((((25f / 100f) * (system::to_float(ped::get_ped_max_health(player::player_ped_id())) - 100f)) + 100f)));
		}
		if (iParam1)
		{
			if (entity::does_entity_exist(iVar0))
			{
				entity::set_entity_visible(iVar0, true, 0);
				func_475(iVar0);
				ped::_0xE861D0B05C7662B8(iVar0, 0, 0);
				ped::set_ped_stealth_movement(iVar0, 0, 0);
			}
		}
		else if (entity::does_entity_exist(iVar0))
		{
			sVar24 = entity::get_entity_script(iVar0, &uVar23);
			if (!gameplay::is_string_null(sVar24))
			{
				if (!gameplay::are_strings_equal(sVar24, script::get_this_script_name()))
				{
					entity::set_entity_as_mission_entity(iVar0, false, 1);
				}
				ped::delete_ped(&iVar0);
			}
		}
		Global_88893 = 1;
		func_474(player::player_ped_id());
		func_473();
		func_472(iVar2);
		func_418();
		func_469(iVar2);
		func_454(func_467(entity::get_entity_coords(player::player_ped_id(), 1), 145, 0));
		player::reset_player_stamina(player::player_id());
		entity::set_entity_only_damaged_by_player(player::player_ped_id(), false);
		ped::set_ped_can_be_dragged_out(player::player_ped_id(), 1);
		if (player::is_player_playing(player::player_id()))
		{
			player::set_auto_give_parachute_when_enter_plane(player::player_id(), func_453(67));
		}
		if (player::is_player_playing(player::player_id()))
		{
			player::_0xD2B315B6689D537D(player::player_id(), func_453(68));
		}
		func_450(iVar2, &iVar22);
		if (((func_22(0) || func_22(3)) || func_22(2)) || func_22(4))
		{
			ped::set_ped_config_flag(iVar22, 32, false);
			ped::set_ped_config_flag(iVar22, 250, false);
		}
		else
		{
			ped::set_ped_config_flag(iVar22, 32, true);
			ped::set_ped_config_flag(iVar22, 250, true);
		}
		if (!func_449())
		{
			func_447();
		}
		Global_88530 = 0;
		return true;
	}
	else
	{
		if (ped::is_ped_injured(player::player_ped_id()))
		{
		}
		if (ped::is_ped_injured((*iParam0)[iParam0->f_7]))
		{
		}
		if (player::player_ped_id() == (*iParam0)[iParam0->f_7])
		{
		}
	}
	return false;
}

void func_447()//Position - 0x62001
{
	if (Global_88923)
	{
		func_349();
		graphics::_0xBF59707B3E5ED531(func_448(Global_101154.f_1826.f_539.f_3549));
	}
	else
	{
		graphics::_0xBF59707B3E5ED531("");
	}
}

char* func_448(int iParam0)//Position - 0x62034
{
	iParam0 = iParam0;
	return "";
}

var func_449()//Position - 0x62044
{
	return Global_17116;
}

void func_450(int iParam0, int iParam1)//Position - 0x6204F
{
	switch (iParam0)
	{
		case 0:
			func_451(4, *iParam1);
			func_451(7, *iParam1);
			func_451(8, *iParam1);
			func_451(11, *iParam1);
			break;
		
		case 1:
			if (Global_101154.f_7775.f_330[2 /*6*/])
			{
				func_451(4, *iParam1);
			}
			func_451(7, *iParam1);
			func_451(8, *iParam1);
			func_451(11, *iParam1);
			if (Global_101154.f_7775.f_99.f_58[126])
			{
				func_451(12, *iParam1);
			}
			break;
		
		case 2:
			if (Global_101154.f_7775.f_330[20 /*6*/])
			{
				func_451(4, *iParam1);
			}
			func_451(7, *iParam1);
			func_451(8, *iParam1);
			func_451(11, *iParam1);
			break;
	}
}

void func_451(int iParam0, int iParam1)//Position - 0x6211B
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (!entity::does_entity_exist(iParam1))
	{
		return;
	}
	if (func_452(iParam0, iParam1))
	{
		return;
	}
	if (Global_34834[iParam0 /*31*/].f_24 < 5)
	{
		Global_34834[iParam0 /*31*/].f_25[Global_34834[iParam0 /*31*/].f_24] = iParam1;
		Global_34834[iParam0 /*31*/].f_24++;
	}
	else
	{
		iVar2 = false;
		iVar0 = 0;
		while (iVar0 < 5)
		{
			iVar1 = Global_34834[iParam0 /*31*/].f_25[iVar0];
			if (!entity::does_entity_exist(iVar1) || ped::is_ped_injured(iVar1))
			{
				Global_34834[iParam0 /*31*/].f_25[iVar0] = iParam1;
				iVar2 = true;
				iVar0 = 6;
			}
			iVar0++;
		}
		if (!iVar2)
		{
		}
	}
}

bool func_452(var uParam0, int iParam1)//Position - 0x621CD
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Global_34834[uParam0 /*31*/].f_24)
	{
		if (iParam1 == Global_34834[uParam0 /*31*/].f_25[iVar0])
		{
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_453(int iParam0)//Position - 0x62206
{
	if (iParam0 == 146 || iParam0 == -1)
	{
		return 0;
	}
	return Global_101154.f_7775.f_99.f_58[iParam0];
}

void func_454(int iParam0)//Position - 0x62233
{
	if (iParam0 == 10)
	{
		return;
	}
	switch (iParam0)
	{
		case 0:
			gameplay::set_bit(&(Global_31499[(38 / 32)]), (38 % 32));
			func_455(38, 0);
			gameplay::set_bit(&(Global_31499[(41 / 32)]), (41 % 32));
			func_455(41, 0);
			gameplay::set_bit(&(Global_31499[(43 / 32)]), (43 % 32));
			func_455(43, 0);
			gameplay::set_bit(&(Global_31499[(42 / 32)]), (42 % 32));
			func_455(42, 0);
			gameplay::set_bit(&(Global_31499[(44 / 32)]), (44 % 32));
			func_455(44, 0);
			break;
		
		case 1:
			gameplay::set_bit(&(Global_31499[(51 / 32)]), (51 % 32));
			func_455(51, 0);
			break;
		
		case 2:
			gameplay::set_bit(&(Global_31499[(51 / 32)]), (51 % 32));
			func_455(51, 0);
			break;
		
		case 3:
			gameplay::set_bit(&(Global_31499[(53 / 32)]), (53 % 32));
			func_455(53, 0);
			break;
		
		case 4:
			gameplay::set_bit(&(Global_31499[(81 / 32)]), (81 % 32));
			func_455(81, 0);
			gameplay::set_bit(&(Global_31499[(82 / 32)]), (82 % 32));
			func_455(82, 0);
			break;
		
		case 5:
			gameplay::set_bit(&(Global_31499[(47 / 32)]), (47 % 32));
			func_455(47, 0);
			gameplay::set_bit(&(Global_31499[(50 / 32)]), (50 % 32));
			func_455(50, 0);
			break;
		
		case 6:
			gameplay::set_bit(&(Global_31499[(50 / 32)]), (50 % 32));
			func_455(50, 0);
			break;
	}
}

void func_455(int iParam0, int iParam1)//Position - 0x623C3
{
	int iVar0;
	
	if (iParam0 != 226)
	{
		if (Global_69489)
		{
			iVar0 = Global_2428492.f_74[iParam0];
		}
		else
		{
			iVar0 = Global_101154.f_5951[iParam0];
		}
		if (iVar0 != iParam1 || gameplay::is_bit_set(Global_31499[(iParam0 / 32)], (iParam0 % 32)))
		{
			if ((((iParam1 == 4 || iParam1 == 3) || iParam1 == 5) || iParam1 == 6) || iParam1 == 2)
			{
				gameplay::set_bit(&(Global_31508[(iParam0 / 32)]), (iParam0 % 32));
				Global_31971[iParam0] = iParam1;
			}
			else if (Global_69489)
			{
				Global_2428492.f_74[iParam0] = iParam1;
			}
			else
			{
				Global_101154.f_5951[iParam0] = iParam1;
			}
			gameplay::set_bit(&(Global_31499[(iParam0 / 32)]), (iParam0 % 32));
			func_457(iParam0);
			if (gameplay::is_bit_set(Global_31499[(iParam0 / 32)], (iParam0 % 32)))
			{
				func_456(iParam0);
			}
		}
	}
}

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

void func_457(int iParam0)//Position - 0x6250A
{
	struct<7> Var0;
	int iVar7;
	int iVar8;
	int iVar9;
	float fVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	if (!func_466())
	{
		return;
	}
	if (ped::is_ped_injured(player::player_ped_id()))
	{
		return;
	}
	Var0 = { func_465(iParam0) };
	if (gameplay::is_bit_set(Var0.f_4, 2))
	{
		func_462(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_31508[(iParam0 / 32)], (iParam0 % 32)) && Global_31971[iParam0] == 2) && fVar10 > 210f)
	{
		gameplay::clear_bit(&(Global_31508[(iParam0 / 32)]), (iParam0 % 32));
		Global_31517[iParam0] = 0;
	}
	if (script::_get_number_of_instances_of_streamed_script(joaat("startup_positioning")) == 0)
	{
		if (gameplay::is_bit_set(Global_31744[(iParam0 / 32)], (iParam0 % 32)))
		{
			if (fVar10 < 25f)
			{
				if (Global_91330.f_294 == 0)
				{
					if (!entity::is_entity_dead(player::player_ped_id(), 0))
					{
						Global_91330.f_294 = interior::get_interior_from_entity(player::player_ped_id());
					}
				}
				iVar11 = Global_91330.f_294;
				iVar12 = interior::get_interior_at_coords(Var0);
				if (iVar11 == iVar12 && iVar11 != 0)
				{
					gameplay::set_bit(&(Global_31508[(iParam0 / 32)]), (iParam0 % 32));
					Global_31971[iParam0] = 3;
					gameplay::set_bit(&(Global_31499[(iParam0 / 32)]), (iParam0 % 32));
				}
			}
			gameplay::clear_bit(&(Global_31744[(iParam0 / 32)]), (iParam0 % 32));
		}
	}
	if (gameplay::is_bit_set(Global_31508[(iParam0 / 32)], (iParam0 % 32)))
	{
		iVar9 = Global_31971[iParam0];
	}
	else if (gameplay::is_bit_set(Var0.f_4, 0))
	{
		if (Global_101154.f_7775)
		{
			iVar9 = func_459(iParam0);
		}
		else
		{
			iVar9 = 0;
		}
		if (func_22(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_458())
		{
			iVar9 = 0;
		}
		else
		{
			iVar9 = 1;
		}
	}
	else
	{
		iVar9 = Global_101154.f_5951[iParam0];
	}
	if (Global_32198[iParam0] != iVar9)
	{
		iVar7 = true;
	}
	if (gameplay::is_bit_set(Global_31499[(iParam0 / 32)], (iParam0 % 32)))
	{
		if (!gameplay::is_bit_set(Global_31508[(iParam0 / 32)], (iParam0 % 32)) || (Global_31517[iParam0] == 0 && Global_31971[iParam0] != 2))
		{
			iVar7 = true;
		}
	}
	if (iVar7)
	{
		if (!Global_31498)
		{
		}
		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_31499[(iParam0 / 32)]), (iParam0 % 32));
			Global_32198[iParam0] = iVar9;
		}
	}
	if (gameplay::is_bit_set(Global_31508[(iParam0 / 32)], (iParam0 % 32)) && Global_31971[iParam0] != 2)
	{
		gameplay::set_bit(&(Global_31499[(iParam0 / 32)]), (iParam0 % 32));
		func_456(iParam0);
		if (Global_31517[iParam0] < 2)
		{
			Global_31517[iParam0]++;
		}
	}
}

bool func_458()//Position - 0x629ED
{
	if (player::is_player_wanted_level_greater(player::player_id(), 0))
	{
		return false;
	}
	switch (func_960())
	{
		case 0:
			if (Global_101154.f_7775.f_99.f_58[65])
			{
				return true;
			}
			break;
		
		case 1:
			if (Global_101154.f_7775.f_99.f_58[66])
			{
				return true;
			}
			break;
		
		case 2:
			if (Global_101154.f_7775.f_99.f_58[65])
			{
				return true;
			}
			break;
	}
	return false;
}

bool func_459(int iParam0)//Position - 0x62A6C
{
	int iVar0;
	
	iVar0 = func_960();
	if (func_460(iParam0))
	{
		return true;
	}
	if (iParam0 == 49)
	{
		if (iVar0 == 1)
		{
			if (gameplay::is_bit_set(Global_101154.f_5919[5], 0) || gameplay::is_bit_set(Global_101154.f_5919[6], 0))
			{
				return false;
			}
		}
		if (func_269(iVar0))
		{
			if (gameplay::is_bit_set(Global_86638[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_101154.f_5919[0], 0))
				{
					return false;
				}
			}
			if (func_269(iVar0))
			{
				if (gameplay::is_bit_set(Global_86638[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_101154.f_5919[5], 0))
				{
					return false;
				}
			}
			if (func_269(iVar0))
			{
				if (gameplay::is_bit_set(Global_86638[5], iVar0))
				{
					return false;
				}
			}
			break;
		
		case 50:
			if (iVar0 == 1)
			{
				if (gameplay::is_bit_set(Global_101154.f_5919[6], 0))
				{
					return false;
				}
			}
			if (func_269(iVar0))
			{
				if (gameplay::is_bit_set(Global_86638[6], iVar0))
				{
					return false;
				}
			}
			break;
		
		case 51:
		case 52:
			if (iVar0 == 2)
			{
				if (gameplay::is_bit_set(Global_101154.f_5919[2], 0))
				{
					return false;
				}
				if (func_269(iVar0))
				{
					if (gameplay::is_bit_set(Global_86638[2], iVar0))
					{
						return false;
					}
				}
			}
			else if (iVar0 == 0)
			{
				if (gameplay::is_bit_set(Global_101154.f_5919[1], 0))
				{
					return false;
				}
				if (func_269(iVar0))
				{
					if (gameplay::is_bit_set(Global_86638[1], iVar0))
					{
						return false;
					}
				}
			}
			break;
		
		case 53:
			if (iVar0 == 2)
			{
				if (gameplay::is_bit_set(Global_101154.f_5919[3], 0))
				{
					return false;
				}
			}
			if (func_269(iVar0))
			{
				if (gameplay::is_bit_set(Global_86638[3], iVar0))
				{
					return false;
				}
			}
			break;
		
		default:
			return false;
			break;
	}
	return true;
}

bool func_460(int iParam0)//Position - 0x62CC1
{
	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_461(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_461(int iParam0)//Position - 0x62D2D
{
	return iParam0;
}

void func_462(int iParam0, var uParam1)//Position - 0x62D37
{
	int iVar0;
	int iVar1;
	
	if (!gameplay::is_bit_set(uParam1->f_4, 2))
	{
		return;
	}
	iVar0 = func_371();
	iVar1 = func_464(iVar0);
	switch (iParam0)
	{
		case 133:
		case 134:
		case 201:
		case 202:
			if (func_463(iParam0))
			{
				if (iVar1 < 19)
				{
					if (iVar1 >= 7)
					{
						Global_101154.f_5951[iParam0] = 0;
						object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
					}
				}
				else
				{
					return;
				}
			}
			else if (iVar1 >= 19)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 12f)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			else if (iVar1 < 7)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 12f)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			break;
		
		case 199:
		case 200:
		case 203:
		case 204:
			if (func_463(iParam0))
			{
				if (iVar1 < 18)
				{
					if (iVar1 >= 7)
					{
						Global_101154.f_5951[iParam0] = 0;
						object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
					}
				}
				else
				{
					return;
				}
			}
			else if (iVar1 >= 18)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 12f)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			else if (iVar1 < 7)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 12f)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			break;
		
		case 141:
		case 142:
			if (func_463(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_101154.f_7775.f_99.f_58[4])
				{
					if (iVar1 < 21)
					{
						if (iVar1 >= 7)
						{
							Global_101154.f_5951[iParam0] = 0;
							object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
						}
					}
					else
					{
						return;
					}
				}
				else if (!Global_101154.f_7775.f_99.f_58[4])
				{
					Global_101154.f_5951[iParam0] = 0;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			else if (Global_101154.f_7775.f_99.f_58[4])
			{
				Global_101154.f_5951[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[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_101154.f_5951[iParam0] = 1;
						object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
					}
				}
				else if (iVar1 < 7)
				{
					if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 18f)
					{
						Global_101154.f_5951[iParam0] = 1;
						object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
					}
				}
			}
			break;
		
		case 145:
		case 146:
		case 143:
		case 144:
			if (func_463(iParam0))
			{
				if (iVar1 < 20)
				{
					if (iVar1 >= 9)
					{
						Global_101154.f_5951[iParam0] = 0;
						object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
					}
				}
				else
				{
					return;
				}
			}
			else if (iVar1 >= 20)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 40f)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			else if (iVar1 < 9)
			{
				if (system::vdist(entity::get_entity_coords(player::player_ped_id(), 0), *uParam1) >= 40f)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			break;
		
		case 147:
		case 148:
			if (!func_463(iParam0))
			{
				Global_101154.f_5951[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
			}
			break;
		
		case 152:
		case 153:
		case 154:
		case 155:
		case 156:
		case 157:
			if (!func_463(iParam0))
			{
				if (script::_get_number_of_instances_of_streamed_script(joaat("assassin_valet")) == 0)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			else if (script::_get_number_of_instances_of_streamed_script(joaat("assassin_valet")) > 0)
			{
				Global_101154.f_5951[iParam0] = 0;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
			}
			break;
		
		case 158:
		case 159:
			if (script::_get_number_of_instances_of_streamed_script(Global_82399[70 /*34*/].f_6) == 0)
			{
				if (!func_463(iParam0))
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			break;
		
		case 160:
		case 161:
			if (script::_get_number_of_instances_of_streamed_script(joaat("omega2")) == 0)
			{
				if (!func_463(iParam0))
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			break;
		
		case 70:
		case 71:
		case 72:
			if (!func_463(iParam0) && script::_get_number_of_instances_of_streamed_script(Global_82399[26 /*34*/].f_6) == 0)
			{
				Global_101154.f_5951[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
			}
			else
			{
				return;
			}
			break;
		
		case 101:
		case 102:
		case 103:
		case 104:
			if (!func_463(iParam0))
			{
				if (script::_get_number_of_instances_of_streamed_script(Global_82399[43 /*34*/].f_6) == 0)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			else
			{
				return;
			}
			break;
		
		case 190:
		case 191:
			if (!func_463(iParam0))
			{
				Global_101154.f_5951[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
			}
			break;
		
		case 193:
			if (!func_463(iParam0))
			{
				if (script::_get_number_of_instances_of_streamed_script(Global_82399[93 /*34*/].f_6) > 0)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			else
			{
				return;
			}
			break;
		
		case 198:
			if (!func_463(iParam0))
			{
				Global_101154.f_5951[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
			}
			break;
		
		case 80:
			if (!func_463(iParam0))
			{
				if (script::_get_number_of_instances_of_streamed_script(Global_82399[8 /*34*/].f_6) == 0 && script::_get_number_of_instances_of_streamed_script(Global_82399[10 /*34*/].f_6) == 0)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			else
			{
				return;
			}
			break;
		
		case 205:
		case 206:
			if (!func_463(iParam0))
			{
				if (script::_get_number_of_instances_of_streamed_script(Global_82399[47 /*34*/].f_6) == 0)
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			else
			{
				return;
			}
			break;
		
		case 207:
			if (script::_get_number_of_instances_of_streamed_script(Global_82399[70 /*34*/].f_6) == 0)
			{
				if (!func_463(iParam0))
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[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_82399[48 /*34*/].f_6) == 0)
			{
				if (!func_463(iParam0))
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			break;
		
		case 99:
		case 100:
			if (script::_get_number_of_instances_of_streamed_script(Global_82399[39 /*34*/].f_6) == 0)
			{
				if (!func_463(iParam0))
				{
					Global_101154.f_5951[iParam0] = 1;
					object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
				}
			}
			break;
		
		case 216:
			if (!func_463(iParam0))
			{
				Global_101154.f_5951[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
			}
			break;
		
		case 217:
		case 218:
			if (!func_463(iParam0))
			{
				Global_101154.f_5951[iParam0] = 1;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
			}
			break;
		
		case 219:
		case 220:
		case 221:
		case 222:
			if (func_463(iParam0))
			{
				Global_101154.f_5951[iParam0] = 0;
				object::_set_door_acceleration_limit(uParam1->f_5, Global_101154.f_5951[iParam0], 1, 1);
			}
			break;
	}
}

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

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

struct<7> func_465(int iParam0)//Position - 0x63719
{
	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;
}

bool func_466()//Position - 0x66323
{
	if ((func_175() == -1 || func_175() == 999) && !func_174() == 0)
	{
		return true;
	}
	return false;
}

int func_467(vector3 vParam0, int iParam3, int iParam4)//Position - 0x66353
{
	int iVar0;
	float fVar1;
	float fVar2;
	int iVar3;
	
	fVar2 = 1000000f;
	iVar3 = 10;
	iVar0 = 0;
	while (iVar0 <= (10 - 1))
	{
		if (Global_86649[iVar0 /*10*/].f_7 != 263)
		{
			if (Global_86649[iVar0 /*10*/].f_9 == iParam3 || iParam3 == 145)
			{
				if (func_468(iVar0) || iParam4 == 0)
				{
					fVar1 = gameplay::get_distance_between_coords(vParam0, Global_86649[iVar0 /*10*/].f_3, 1);
					if (fVar1 < fVar2)
					{
						fVar2 = fVar1;
						iVar3 = iVar0;
					}
				}
			}
		}
		iVar0++;
	}
	return iVar3;
}

int func_468(int iParam0)//Position - 0x663E2
{
	return gameplay::is_bit_set(Global_101154.f_5919[iParam0], 0);
}

void func_469(int iParam0)//Position - 0x663FA
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 8)
	{
		func_470(iParam0, iVar0);
		iVar0++;
	}
}

void func_470(int iParam0, int iParam1)//Position - 0x6641D
{
	int iVar0;
	float fVar1;
	int iVar2;
	int iVar3;
	
	if (((iParam0 != 0 || iParam0 != 1) || iParam0 != 2) || iParam0 != 3)
	{
		return;
	}
	func_471(iParam0, iParam1, &iVar2, &iVar3);
	if (network::network_is_game_in_progress())
	{
		iVar0 = func_16(iVar3, -1, 0);
	}
	else
	{
		stats::stat_get_int(iVar2, &iVar0, -1);
	}
	switch (iParam1)
	{
		case 2:
			fVar1 = (0.8f + (0.4f * (system::to_float(iVar0) / 100f)));
			player::set_player_melee_weapon_damage_modifier(player::player_id(), fVar1);
			break;
		
		case 7:
			if (script::_get_number_of_instances_of_streamed_script(joaat("armenian3")) != 0 || script::_get_number_of_instances_of_streamed_script(joaat("trevor3")) != 0)
			{
				Global_88894 = 1;
			}
			else
			{
				fVar1 = (1f - (system::to_float(iVar0) / 100f));
				player::set_player_noise_multiplier(player::player_id(), fVar1);
				player::set_player_sneaking_noise_multiplier(player::player_id(), fVar1);
				player::set_player_stealth_perception_modifier(player::player_id(), fVar1);
			}
			break;
	}
}

void func_471(int iParam0, int iParam1, var uParam2, var uParam3)//Position - 0x66509
{
	switch (iParam0)
	{
		case 0:
			switch (iParam1)
			{
				case 0:
					*uParam2 = joaat("sp0_special_ability_unlocked");
					break;
				
				case 1:
					*uParam2 = joaat("sp0_stamina");
					break;
				
				case 3:
					*uParam2 = joaat("sp0_lung_capacity");
					break;
				
				case 2:
					*uParam2 = joaat("sp0_strength");
					break;
				
				case 4:
					*uParam2 = joaat("sp0_wheelie_ability");
					break;
				
				case 5:
					*uParam2 = joaat("sp0_flying_ability");
					break;
				
				case 6:
					*uParam2 = joaat("sp0_shooting_ability");
					break;
				
				case 7:
					*uParam2 = joaat("sp0_stealth_ability");
					break;
			}
			break;
		
		case 1:
			switch (iParam1)
			{
				case 0:
					*uParam2 = joaat("sp1_special_ability_unlocked");
					break;
				
				case 1:
					*uParam2 = joaat("sp1_stamina");
					break;
				
				case 3:
					*uParam2 = joaat("sp1_lung_capacity");
					break;
				
				case 2:
					*uParam2 = joaat("sp1_strength");
					break;
				
				case 4:
					*uParam2 = joaat("sp1_wheelie_ability");
					break;
				
				case 5:
					*uParam2 = joaat("sp1_flying_ability");
					break;
				
				case 6:
					*uParam2 = joaat("sp1_shooting_ability");
					break;
				
				case 7:
					*uParam2 = joaat("sp1_stealth_ability");
					break;
			}
			break;
		
		case 2:
			switch (iParam1)
			{
				case 0:
					*uParam2 = joaat("sp2_special_ability_unlocked");
					break;
				
				case 1:
					*uParam2 = joaat("sp2_stamina");
					break;
				
				case 3:
					*uParam2 = joaat("sp2_lung_capacity");
					break;
				
				case 2:
					*uParam2 = joaat("sp2_strength");
					break;
				
				case 4:
					*uParam2 = joaat("sp2_wheelie_ability");
					break;
				
				case 5:
					*uParam2 = joaat("sp2_flying_ability");
					break;
				
				case 6:
					*uParam2 = joaat("sp2_shooting_ability");
					break;
				
				case 7:
					*uParam2 = joaat("sp2_stealth_ability");
					break;
			}
			break;
		
		case 3:
			switch (iParam1)
			{
				case 0:
					*uParam3 = 64;
					break;
				
				case 1:
					*uParam3 = 65;
					break;
				
				case 3:
					*uParam3 = 67;
					break;
				
				case 2:
					*uParam3 = 66;
					break;
				
				case 4:
					*uParam3 = 68;
					break;
				
				case 5:
					*uParam3 = 69;
					break;
				
				case 6:
					*uParam3 = 70;
					break;
				
				case 7:
					*uParam3 = 71;
					break;
			}
			break;
	}
}

void func_472(int iParam0)//Position - 0x66760
{
	switch (iParam0)
	{
		case 0:
			ped::set_relationship_between_groups(255, 1166638144, 1862763509);
			ped::set_relationship_between_groups(2, 1862763509, -1865950624);
			ped::set_relationship_between_groups(255, -1865950624, 1862763509);
			ped::set_relationship_between_groups(1, Global_86614, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86614);
			ped::set_relationship_between_groups(1, Global_86615, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86615);
			ped::set_relationship_between_groups(1, Global_86616, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86616);
			break;
		
		case 1:
			ped::set_relationship_between_groups(1, 1166638144, 1862763509);
			ped::set_relationship_between_groups(2, 1862763509, -1865950624);
			ped::set_relationship_between_groups(255, -1865950624, 1862763509);
			ped::set_relationship_between_groups(1, Global_86614, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86614);
			ped::set_relationship_between_groups(1, Global_86615, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86615);
			ped::set_relationship_between_groups(1, Global_86616, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86616);
			break;
		
		case 2:
			ped::set_relationship_between_groups(255, 1166638144, 1862763509);
			ped::set_relationship_between_groups(5, 1862763509, -1865950624);
			ped::set_relationship_between_groups(5, -1865950624, 1862763509);
			ped::set_relationship_between_groups(1, Global_86614, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86614);
			ped::set_relationship_between_groups(1, Global_86615, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86615);
			ped::set_relationship_between_groups(1, Global_86616, 1862763509);
			ped::set_relationship_between_groups(1, 1862763509, Global_86616);
			break;
		
		default:
			break;
	}
}

void func_473()//Position - 0x66914
{
	int iVar0;
	int iVar1;
	
	func_349();
	iVar0 = ui::get_main_player_blip_id();
	if (ui::does_blip_exist(iVar0))
	{
		iVar1 = Global_101154.f_1826.f_539.f_3549;
		if (func_22(14))
		{
			iVar1 = func_270(player::player_ped_id());
		}
		if (iVar1 == 0)
		{
			ui::set_blip_name_from_text_file(iVar0, "BLIP_MICHAEL");
		}
		else if (iVar1 == 1)
		{
			ui::set_blip_name_from_text_file(iVar0, "BLIP_FRANKLIN");
		}
		else if (iVar1 == 2)
		{
			ui::set_blip_name_from_text_file(iVar0, "BLIP_TREV");
		}
		else
		{
			ui::set_blip_name_from_text_file(iVar0, "BLIP_PLAYER");
		}
	}
}

void func_474(int iParam0)//Position - 0x6699B
{
	int iVar0;
	var uVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	struct<2> Var6;
	
	iVar0 = 0;
	while (iVar0 < 44)
	{
		iVar2 = func_355(iVar0);
		if (iVar2 != 0)
		{
			iVar3 = weapon::get_ped_weapontype_in_slot(iParam0, iVar2);
			if ((iVar3 != 0 && iVar3 != joaat("weapon_unarmed")) && iVar3 != joaat("object"))
			{
				if (weapon::get_ammo_in_ped_weapon(iParam0, iVar3) == -1)
				{
					if (weapon::get_max_ammo(iParam0, iVar3, &uVar1))
					{
						weapon::set_ped_infinite_ammo(iParam0, 0, iVar3);
					}
				}
			}
		}
		iVar0++;
	}
	iVar5 = dlc1::get_num_dlc_weapons();
	iVar4 = 0;
	while (iVar4 < iVar5)
	{
		if (dlc1::get_dlc_weapon_data(iVar4, &Var6))
		{
			iVar3 = Var6.f_1;
			if (weapon::get_ammo_in_ped_weapon(iParam0, iVar3) == -1)
			{
				if (weapon::get_max_ammo(iParam0, iVar3, &uVar1))
				{
					weapon::set_ped_infinite_ammo(iParam0, 0, iVar3);
				}
			}
		}
		iVar4++;
	}
}

void func_475(int iParam0)//Position - 0x66A5D
{
	int iVar0;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		if (iParam0 == player::player_ped_id() && ped::get_ped_max_health(iParam0) == 200)
		{
			ped::set_ped_max_health(iParam0, system::round((IntToFloat(ped::get_ped_max_health(iParam0)) * Global_262145.f_105)));
		}
		if (Global_101154.f_1826.f_539.f_290[iVar0] <= 0f)
		{
			Global_101154.f_1826.f_539.f_290[iVar0] = 100f;
		}
		else if (Global_101154.f_1826.f_539.f_290[iVar0] <= 10f)
		{
			Global_101154.f_1826.f_539.f_290[iVar0] = 10f;
		}
		entity::set_entity_health(iParam0, system::round((((Global_101154.f_1826.f_539.f_290[iVar0] / 100f) * (system::to_float(ped::get_ped_max_health(iParam0)) - 100f)) + 100f)));
	}
}

int func_476(int iParam0)//Position - 0x66B49
{
	if (iParam0 == 0)
	{
		return 0;
	}
	else if (iParam0 == 2)
	{
		return 2;
	}
	else if (iParam0 == 1)
	{
		return 1;
	}
	else if (iParam0 == 145)
	{
		return 3;
	}
	return 4;
}

bool func_477(int iParam0)//Position - 0x66B84
{
	if (Global_35711 == 15)
	{
		return false;
	}
	if (func_478(iParam0))
	{
		return false;
	}
	return true;
}

int func_478(int iParam0)//Position - 0x66BA6
{
	return func_479(iParam0, Global_35711);
}

bool func_479(int iParam0, int iParam1)//Position - 0x66BB7
{
	if (iParam1 == 15)
	{
		return true;
	}
	if (iParam0 == 15)
	{
		return false;
	}
	switch (iParam0)
	{
		case 16:
			switch (iParam1)
			{
				case 9:
				case 10:
				case 7:
				case 13:
				case 14:
					return false;
					break;
			}
			return true;
			break;
		
		case 0:
			switch (iParam1)
			{
				case 5:
				case 17:
					return true;
					break;
			}
			break;
		
		case 2:
		case 3:
			switch (iParam1)
			{
				case 5:
				case 6:
				case 8:
				case 17:
					return true;
					break;
			}
			break;
		
		case 4:
			if (iParam1 == 17)
			{
				return true;
			}
			break;
		
		case 5:
			break;
		
		case 6:
		case 8:
			if (iParam1 == 5)
			{
				return true;
			}
			break;
		
		case 7:
			if (iParam1 == 6)
			{
				return true;
			}
			break;
		
		case 9:
			if (iParam1 == 5)
			{
				return true;
			}
			break;
		
		case 10:
			switch (iParam1)
			{
				case 5:
				case 6:
				case 17:
					return true;
					break;
			}
			break;
		
		case 11:
			if (iParam1 == 5)
			{
				return true;
			}
			break;
		
		case 17:
			switch (iParam1)
			{
				case 17:
				case 12:
				case 5:
					return true;
					break;
			}
			break;
		
		case 18:
		case 12:
			switch (iParam1)
			{
				case 5:
				case 6:
				case 8:
					return true;
					break;
			}
			break;
		
		case 13:
			switch (iParam1)
			{
				case 5:
					return true;
					break;
			}
			break;
		
		case 14:
			switch (iParam1)
			{
				case 5:
					return true;
					break;
			}
			break;
	}
	return false;
}

void func_480(int iParam0, int iParam1)//Position - 0x66D98
{
	switch (iParam0)
	{
		case 0:
			func_481(4, *iParam1, 0);
			func_481(7, *iParam1, 0);
			func_481(8, *iParam1, 0);
			func_481(11, *iParam1, 0);
			break;
		
		case 1:
			func_481(4, *iParam1, 0);
			func_481(7, *iParam1, 0);
			func_481(8, *iParam1, 0);
			func_481(11, *iParam1, 0);
			if (Global_101154.f_7775.f_99.f_58[126])
			{
				func_481(12, *iParam1, 0);
			}
			break;
		
		case 2:
			func_481(4, *iParam1, 0);
			func_481(7, *iParam1, 0);
			func_481(8, *iParam1, 0);
			func_481(11, *iParam1, 0);
			break;
	}
}

void func_481(int iParam0, int iParam1, int iParam2)//Position - 0x66E50
{
	int iVar0;
	int iVar1;
	
	if (!iParam2)
	{
		if (!entity::does_entity_exist(iParam1))
		{
			return;
		}
	}
	if (Global_34834[iParam0 /*31*/].f_24 == 0)
	{
		return;
	}
	iVar1 = false;
	iVar0 = 0;
	while (iVar0 < Global_34834[iParam0 /*31*/].f_24)
	{
		if (iVar1)
		{
			Global_34834[iParam0 /*31*/].f_25[(iVar0 - 1)] = Global_34834[iParam0 /*31*/].f_25[iVar0];
			Global_34834[iParam0 /*31*/].f_25[iVar0] = 0;
		}
		else if (iParam1 == Global_34834[iParam0 /*31*/].f_25[iVar0])
		{
			Global_34834[iParam0 /*31*/].f_25[iVar0] = 0;
			iVar1 = true;
		}
		iVar0++;
	}
	if (iVar1)
	{
		Global_34834[iParam0 /*31*/].f_24 = (Global_34834[iParam0 /*31*/].f_24 - 1);
	}
}

void func_482(int iParam0, int iParam1)//Position - 0x66F0C
{
	func_487(iParam0);
	func_350(iParam0, iParam1);
	func_486(iParam0);
	func_356(iParam0);
	func_485(iParam0);
	func_484(iParam0);
	func_483(iParam0);
}

void func_483(int iParam0)//Position - 0x66F40
{
	int iVar0;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		if (iParam0 == player::player_ped_id())
		{
			Global_101154.f_1826.f_539.f_1556[iVar0] = player::get_player_wanted_level(player::player_id());
		}
	}
}

void func_484(int iParam0)//Position - 0x66F87
{
	int iVar0;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		Global_101154.f_1826.f_539.f_1546[iVar0 /*3*/] = { entity::get_entity_velocity(iParam0) };
	}
}

void func_485(int iParam0)//Position - 0x66FC5
{
	int iVar0;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		if (streaming::is_player_switch_in_progress() && streaming::get_player_switch_type() != 3)
		{
			if (streaming::get_player_switch_state() == 8)
			{
				return;
			}
		}
		Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/] = { entity::get_entity_coords(iParam0, 1) };
		Global_101154.f_1826.f_539.f_1538[iVar0] = entity::get_entity_heading(iParam0);
		Global_101154.f_1826.f_539.f_1542[iVar0] = interior::get_room_key_from_entity(iParam0);
		if (Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/] >= 8000f)
		{
			Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/] = 7500f;
		}
		else if (Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/] <= -8000f)
		{
			Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/] = -7500f;
		}
		if (Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/].f_1 >= 8000f)
		{
			Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/].f_1 = 7500f;
		}
		else if (Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/].f_1 <= -8000f)
		{
			Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/].f_1 = -7500f;
		}
		if (Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/].f_2 >= 2500f)
		{
			Global_101154.f_1826.f_539.f_1528[iVar0 /*3*/].f_2 = 2000f;
		}
	}
}

void func_486(int iParam0)//Position - 0x67152
{
	int iVar0;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		Global_101154.f_1826.f_539.f_290[iVar0] = (((system::to_float(entity::get_entity_health(iParam0)) - 100f) / (system::to_float(ped::get_ped_max_health(iParam0)) - 100f)) * 100f);
	}
}

void func_487(int iParam0)//Position - 0x671AF
{
	int iVar0;
	
	iVar0 = func_270(iParam0);
	if (func_269(iVar0) && !ped::is_ped_injured(iParam0))
	{
		Global_101154.f_1826.f_539.f_1524[iVar0] = func_371();
	}
}

int func_488(int iParam0)//Position - 0x671E9
{
	if (iParam0 == 0)
	{
		return 0;
	}
	else if (iParam0 == 2)
	{
		return 2;
	}
	else if (iParam0 == 1)
	{
		return 1;
	}
	return 145;
}

void func_489()//Position - 0x67217
{
	if (iLocal_3833)
	{
		func_331(1376.857f, -2079.459f, 50.9983f, 16.5575f, 0, 0);
	}
	func_961(1, 0, 0, 1, 0);
	streaming::request_model(func_93(0));
	streaming::request_model(func_93(1));
	streaming::request_model(func_93(2));
	streaming::request_model(Local_1177.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
	streaming::request_model(Local_1207.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
	streaming::request_model(Local_1479.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1479.f_1, true);
	streaming::request_anim_dict("missfbi4");
	streaming::request_anim_dict("missheat");
	streaming::request_model(vLocal_2957.y);
	iLocal_3805 = unk_0x67D02A194A2FC2BD("binoculars");
	streaming::request_ptfx_asset();
	vehicle::request_vehicle_recording(1, "lkcountry");
	vehicle::request_vehicle_recording(1, "lkheat");
	vehicle::request_vehicle_recording(2, "lkheat");
	vehicle::request_vehicle_recording(3, "lkheat");
	vehicle::request_vehicle_recording(4, "lkheat");
	vehicle::request_vehicle_recording(5, "lkheat");
	vehicle::request_vehicle_recording(6, "lkheat");
	vehicle::request_vehicle_recording(7, "lkheat");
	vehicle::request_vehicle_recording(8, "lkheat");
	vehicle::request_vehicle_recording(9, "lkheat");
	vehicle::request_vehicle_recording(10, "lkheat");
	vehicle::request_vehicle_recording(11, "lkheat");
	vehicle::request_vehicle_recording(12, "lkheat");
	vehicle::request_vehicle_recording(13, "lkheat");
	vehicle::request_vehicle_recording(14, "lkheat");
	vehicle::request_vehicle_recording(15, "lkheat");
	vehicle::request_vehicle_recording(16, "lkheat");
	vehicle::request_vehicle_recording(17, "lkheat");
	vehicle::request_vehicle_recording(18, "lkheat");
	vehicle::request_vehicle_recording(19, "lkheat");
	vehicle::request_vehicle_recording(20, "lkheat");
	vehicle::request_vehicle_recording(21, "lkheat");
	vehicle::request_vehicle_recording(21, "lkheat");
	vehicle::request_vehicle_recording(22, "lkheat");
	vehicle::request_vehicle_recording(23, "lkheat");
	vehicle::request_vehicle_recording(24, "lkheat");
	vehicle::request_vehicle_recording(25, "lkheat");
	vehicle::request_vehicle_recording(26, "lkheat");
	vehicle::request_vehicle_recording(27, "lkheat");
	vehicle::request_vehicle_recording(101, "lkheat");
	vehicle::request_vehicle_recording(102, "lkheat");
	vehicle::request_vehicle_recording(201, "lkheat");
	vehicle::request_vehicle_recording(202, "lkheat");
	vehicle::request_vehicle_recording(203, "lkheat");
	vehicle::request_vehicle_recording(204, "lkheat");
	if (iLocal_3833)
	{
		func_327(0, -1, 1);
	}
	while (((((((((((((((((((((((((((((((((((((((((((((!streaming::has_model_loaded(Local_1177.f_1) || !streaming::has_model_loaded(Local_1207.f_1)) || !streaming::has_model_loaded(Local_1479.f_1)) || !streaming::has_model_loaded(func_93(0))) || !streaming::has_model_loaded(func_93(1))) || !streaming::has_model_loaded(func_93(2))) || !streaming::has_model_loaded(vLocal_2957.y)) || !graphics::has_scaleform_movie_loaded(iLocal_3805)) || !streaming::has_anim_dict_loaded("missfbi4")) || !streaming::has_anim_dict_loaded("missheat")) || !streaming::has_ptfx_asset_loaded()) || !vehicle::has_vehicle_recording_been_loaded(1, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(1, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(2, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(3, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(4, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(5, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(6, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(7, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(8, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(9, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(10, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(11, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(12, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(13, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(14, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(15, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(16, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(17, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(18, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(19, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(20, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(21, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(21, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(22, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(23, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(24, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(25, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(26, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(27, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(101, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(102, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(201, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(202, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(203, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(204, "lkheat"))
	{
		system::wait(0);
	}
	player::clear_player_wanted_level(player::player_id());
	if (func_539(&iLocal_3467))
	{
		entity::set_entity_coords(iLocal_3467, 1400.629f, -2053.28f, 50.9983f, 1, false, 0, 1);
		entity::set_entity_heading(iLocal_3467, 78.1507f);
	}
	else if (entity::does_entity_exist(player::get_players_last_vehicle()))
	{
		if (vehicle::is_vehicle_driveable(player::get_players_last_vehicle(), 0))
		{
			if (entity::is_entity_at_coord(player::get_players_last_vehicle(), 1379.4f, -2074.778f, 50.9988f, 50f, 50f, 50f, false, true, 0))
			{
				entity::set_entity_coords(player::get_players_last_vehicle(), 1400.629f, -2053.28f, 50.9983f, 1, false, 0, 1);
				entity::set_entity_heading(player::get_players_last_vehicle(), 78.1507f);
			}
		}
	}
	pathfind::set_roads_in_area(1412.83f, -1954.96f, -100f, 1406.5f, -1941.47f, 100f, false, 1);
	gameplay::clear_area(1379.374f, -2074.824f, 50.9985f, 1000f, 1, 0, 0, false);
	Local_1177 = vehicle::create_vehicle(Local_1177.f_1, 1381.472f, -2072.245f, 50.9981f, 38.334f, 1, true);
	vehicle::set_vehicle_has_strong_axles(Local_1177, true);
	vehicle::set_vehicle_automatically_attaches(Local_1177, false, 0);
	func_400(Local_1177, 0);
	Local_1207 = vehicle::create_vehicle(Local_1207.f_1, 1374.858f, -2077.374f, 50.9981f, 37.5148f, 1, true);
	vehicle::set_vehicle_colours(Local_1207, 0, 0);
	vehicle::set_vehicle_has_strong_axles(Local_1207, true);
	entity::set_entity_only_damaged_by_player(Local_1207, true);
	vehicle::set_vehicle_doors_locked(Local_1207, 3);
	vehicle::_0x2B6747FAA9DB9D6B(Local_1207, 1);
	func_400(Local_1207, 1);
	func_284(&Local_1479, 2, vehicle::get_position_of_vehicle_recording_at_time(101, 1450f, "lkheat"), 40.3225f, 0, 0);
	entity::set_entity_only_damaged_by_player(Local_1479, true);
	vehicle::set_vehicle_doors_locked(Local_1479, 3);
	func_443(0, 0);
	ai::clear_ped_tasks_immediately(player::player_ped_id());
	func_324(player::player_ped_id());
	func_252(player::player_ped_id(), 14, 112, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
	entity::set_entity_coords(player::player_ped_id(), 1376.857f, -2079.459f, 50.9983f, 1, false, 0, 1);
	entity::set_entity_heading(player::player_ped_id(), 16.5575f);
	func_442(&(Local_3473[0 /*165*/]), 0, player::player_ped_id(), "michael", 0, 1);
	func_437(&(iLocal_3099[2]), 2, Local_1479, -1, 0, 0, 0);
	func_324(iLocal_3099[2]);
	func_252(iLocal_3099[2], 14, 154, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	func_320(iLocal_3099[2], 0);
	func_319(&(iLocal_3099[2]), 1);
	func_442(&(Local_3473[0 /*165*/]), 2, iLocal_3099[2], "trevor", 0, 1);
	func_533("lkheat", 101, 1, 1);
	func_532();
	fLocal_441 = 200f;
	iLocal_50 = 1;
	iLocal_56 = 1;
	vehicle::start_playback_recorded_vehicle(Local_1479, 101, "lkheat", 1);
	func_494(Local_1479, 1f);
	func_490(Local_1479, 2000f);
	func_494(Local_1479, 1f);
	vehicle::_0x1F2E4E06DEA8992B(Local_1479, 1);
	func_437(&(iLocal_3099[1]), 1, Local_1207, -1, 0, 0, 0);
	func_324(iLocal_3099[1]);
	func_252(iLocal_3099[1], 14, 158, 1, -1, 0, 0, 0, -1, -1, -1, 0);
	func_320(iLocal_3099[1], 0);
	func_319(&(iLocal_3099[1]), 1);
	entity::set_entity_load_collision_flag(iLocal_3099[1], true);
	func_442(&(Local_3473[0 /*165*/]), 1, iLocal_3099[1], "franklin", 0, 1);
	vehicle::start_playback_recorded_vehicle(Local_1207, 102, "lkheat", 1);
	vehicle::skip_time_in_playback_recorded_vehicle(Local_1207, 800f);
	vehicle::_0x1F2E4E06DEA8992B(Local_1207, 1);
	if (!iLocal_3833)
	{
		streaming::load_scene(entity::get_entity_coords(player::player_ped_id(), 1));
	}
	system::wait(0);
	while ((!ped::_0x7350823473013C02(player::player_ped_id()) || !func_434(iLocal_3099[1])) || !func_434(iLocal_3099[2]))
	{
		system::wait(0);
	}
	func_438(1, 1, 0f, 0f, 0, 1);
	iLocal_3226 = gameplay::get_game_timer();
	audio::trigger_music_event("FBI4_SWITCH_BINOC_ST");
	func_333(0, "Enter ambulance at FIB depot", 0, 0, 0, 1);
	iLocal_1126 = 1;
}

void func_490(int iParam0, float fParam1)//Position - 0x67B43
{
	int iVar0;
	float fVar1;
	int iVar2;
	vector3 vVar3;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		if (vehicle::is_playback_going_on_for_vehicle(iParam0))
		{
			func_493();
			func_492(&iParam0, iLocal_650, fParam1, 1, 0, 1, 0, 0);
			fLocal_431 = fParam1;
			iVar0 = 0;
			while (iVar0 < 22)
			{
				if (iLocal_596[iVar0] > 2 && iLocal_596[iVar0] < 6)
				{
					iVar2 = false;
					if (entity::does_entity_exist(iLocal_1042[iVar0]))
					{
						if (!entity::is_entity_dead(iLocal_1042[iVar0], 0))
						{
							if (vehicle::is_playback_going_on_for_vehicle(iLocal_1042[iVar0]))
							{
								fVar1 = (fParam1 - fLocal_363[iVar0]);
								fVar1 = (fVar1 * fLocal_386[iVar0]);
								if (fVar1 >= 0f)
								{
									if (fVar1 < func_491(iLocal_573[iVar0]))
									{
										func_492(&(iLocal_1042[iVar0]), iLocal_573[iVar0], fVar1, 1, 0, 1, iLocal_57, iLocal_56);
									}
									else
									{
										iVar2 = true;
									}
								}
								else
								{
									iVar2 = true;
								}
							}
							else
							{
								iVar2 = true;
							}
						}
						else
						{
							iVar2 = true;
						}
					}
					else
					{
						iVar2 = true;
					}
					if (iVar2)
					{
						iLocal_596[iVar0] = 99;
						iLocal_648 = (iLocal_648 - 1);
					}
				}
				iVar0++;
			}
			iVar0 = 0;
			while (iVar0 < 40)
			{
				if (iLocal_491[iVar0] > 2 && iLocal_491[iVar0] < 6)
				{
					iVar2 = false;
					if (entity::does_entity_exist(iLocal_981[iVar0]))
					{
						if (!entity::is_entity_dead(iLocal_981[iVar0], 0))
						{
							if (vehicle::is_playback_going_on_for_vehicle(iLocal_981[iVar0]))
							{
								fVar1 = (fParam1 - fLocal_226[iVar0]);
								if (fVar1 >= 0f)
								{
									if (fVar1 < func_491(iLocal_450[iVar0]))
									{
										func_492(&(iLocal_981[iVar0]), iLocal_450[iVar0], fVar1, 1, 0, 1, 1, iLocal_56);
									}
									else
									{
										iVar2 = true;
									}
								}
								else
								{
									iVar2 = true;
								}
							}
							else
							{
								iVar2 = true;
							}
						}
						else
						{
							iVar2 = true;
						}
					}
					else
					{
						iVar2 = true;
					}
					if (iVar2)
					{
						iLocal_491[iVar0] = 99;
						iLocal_647 = (iLocal_647 - 1);
					}
				}
				iVar0++;
			}
			iLocal_651 = 0;
			iLocal_653 = 0;
			iVar0 = 0;
			while (iVar0 < 4)
			{
				if (iLocal_642[iVar0] > 2)
				{
					if (entity::does_entity_exist(iLocal_1037[iVar0]))
					{
						if (!entity::is_entity_dead(iLocal_1037[iVar0], 0))
						{
							entity::set_entity_as_mission_entity(iLocal_1037[iVar0], true, 0);
							iLocal_649++;
							iLocal_642[iVar0] = 2;
						}
					}
					else
					{
						iLocal_642[iVar0] = 0;
					}
				}
				iVar0++;
			}
			iLocal_652 = 0;
			iLocal_657 = 0;
			iLocal_660 = 0;
			fLocal_446 = fParam1;
			fLocal_445 = fParam1;
			vVar3 = { entity::get_entity_coords(iParam0, 1) };
			vLocal_868 = { vVar3 - Vector(100f, 100f, 100f) };
			vLocal_871 = { vVar3 + Vector(100f, 100f, 100f) };
			pathfind::set_roads_in_area(vLocal_868, vLocal_871, false, 0);
		}
	}
}

float func_491(int iParam0)//Position - 0x67DF0
{
	float fVar0;
	
	vehicle::request_vehicle_recording(iParam0, &cLocal_892);
	while (!vehicle::has_vehicle_recording_been_loaded(iParam0, &cLocal_892))
	{
		system::wait(0);
	}
	fVar0 = vehicle::get_total_duration_of_vehicle_recording(iParam0, &cLocal_892);
	vehicle::remove_vehicle_recording(iParam0, &cLocal_892);
	return fVar0;
}

bool func_492(int iParam0, int iParam1, float fParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)//Position - 0x67E2C
{
	float fVar0;
	
	if (iParam1 > 0)
	{
		vehicle::request_vehicle_recording(iParam1, &cLocal_892);
		if (vehicle::has_vehicle_recording_been_loaded(iParam1, &cLocal_892))
		{
			if (vehicle::is_vehicle_driveable(*iParam0, 0))
			{
				if (!vehicle::is_playback_going_on_for_vehicle(*iParam0))
				{
					entity::freeze_entity_position(*iParam0, false);
					if (iParam4)
					{
						vehicle::start_playback_recorded_vehicle_using_ai(*iParam0, iParam1, &cLocal_892, 10f, 786603);
					}
					else
					{
						if (iParam1 != iLocal_658 && iParam1 != iLocal_659)
						{
							if (iParam7)
							{
								vehicle::start_playback_recorded_vehicle_with_flags(*iParam0, iParam1, &cLocal_892, 2 | 4, 0, 786603);
							}
							else if (iParam6)
							{
								vehicle::start_playback_recorded_vehicle_with_flags(*iParam0, iParam1, &cLocal_892, 1 | 4, 0, 786603);
							}
							else
							{
								vehicle::start_playback_recorded_vehicle(*iParam0, iParam1, &cLocal_892, 1);
							}
						}
						else
						{
							vehicle::start_playback_recorded_vehicle(*iParam0, iParam1, &cLocal_892, 1);
						}
						vehicle::skip_time_in_playback_recorded_vehicle(*iParam0, fParam2);
						if (iParam5)
						{
							vehicle::_0x1F2E4E06DEA8992B(*iParam0, 1);
						}
						return true;
					}
				}
				else if (vehicle::get_current_playback_for_vehicle(*iParam0) == vehicle::get_vehicle_recording_id(iParam1, &cLocal_892))
				{
					fVar0 = vehicle::get_time_position_in_recording(*iParam0);
					vehicle::skip_time_in_playback_recorded_vehicle(*iParam0, (fParam2 - fVar0));
					if (!iParam3)
					{
						vehicle::stop_playback_recorded_vehicle(*iParam0);
						vehicle::request_vehicle_recording(iParam1, &cLocal_892);
					}
					if (iParam5)
					{
						vehicle::_0x1F2E4E06DEA8992B(*iParam0, 1);
					}
					return true;
				}
				else
				{
					vehicle::stop_playback_recorded_vehicle(*iParam0);
					entity::freeze_entity_position(*iParam0, false);
					if (iParam4)
					{
						vehicle::start_playback_recorded_vehicle_using_ai(*iParam0, iParam1, &cLocal_892, 10f, 786603);
					}
					else if (iParam1 != iLocal_658 && iParam1 != iLocal_659)
					{
						if (iParam7)
						{
							vehicle::start_playback_recorded_vehicle_with_flags(*iParam0, iParam1, &cLocal_892, 2 | 4, 0, 786603);
						}
						else if (iParam6)
						{
							vehicle::start_playback_recorded_vehicle_with_flags(*iParam0, iParam1, &cLocal_892, 1 | 4, 0, 786603);
						}
						else
						{
							vehicle::start_playback_recorded_vehicle(*iParam0, iParam1, &cLocal_892, 1);
						}
					}
					else
					{
						vehicle::start_playback_recorded_vehicle(*iParam0, iParam1, &cLocal_892, 1);
					}
					vehicle::skip_time_in_playback_recorded_vehicle(*iParam0, fParam2);
					if (iParam5)
					{
						vehicle::_0x1F2E4E06DEA8992B(*iParam0, 1);
					}
					return true;
				}
			}
		}
	}
	return false;
}

void func_493()//Position - 0x68013
{
	iLocal_42 = 1;
}

void func_494(int iParam0, float fParam1)//Position - 0x6801E
{
	float fVar0;
	vector3 vVar1;
	int iVar4;
	
	fVar0 = gameplay::get_frame_time();
	fVar0 = (fVar0 * 1000f);
	iLocal_59 = false;
	if (!iLocal_41)
	{
		if (iLocal_40)
		{
			func_531();
			if (player::is_player_playing(player::player_id()))
			{
				vVar1 = { entity::get_entity_coords(player::player_ped_id(), 1) };
				gameplay::clear_area(vVar1, 1000f, 1, 0, 0, false);
			}
			iLocal_41 = true;
		}
	}
	else if (!iLocal_40)
	{
		func_530();
		iLocal_41 = false;
	}
	if (iLocal_40)
	{
		fParam1 = 1f;
		vehicle::set_vehicle_density_multiplier_this_frame(0f);
	}
	if (!iLocal_34)
	{
		if (iLocal_29)
		{
			fLocal_434 = 0f;
		}
		else
		{
			fLocal_434 = 1f;
		}
		if (vehicle::is_vehicle_driveable(iParam0, 0))
		{
			if (vehicle::is_playback_going_on_for_vehicle(iParam0))
			{
				if (player::is_player_playing(player::player_id()))
				{
					if (func_529(player::player_ped_id(), iParam0))
					{
						iLocal_39 = 1;
					}
					else
					{
						iLocal_39 = 0;
					}
				}
				fLocal_431 = vehicle::get_time_position_in_recording(iParam0);
				vehicle::set_playback_speed(iParam0, ((fParam1 * fLocal_432) * fLocal_434));
				if (iLocal_38)
				{
					func_528(iParam0, fLocal_431);
					func_527(iParam0, fLocal_441);
					if (fLocal_436 > 1000f)
					{
						if (iLocal_663 == 0)
						{
							func_526(iParam0, fLocal_441);
						}
						fVar0 = ((fLocal_431 + 4000f) + (system::to_float(iLocal_663) * 2000f));
						func_525(iParam0, fVar0, fLocal_435);
						iLocal_663++;
						if (iLocal_663 > 2)
						{
							fLocal_436 = 0f;
						}
					}
					else
					{
						iLocal_663 = 0;
						fLocal_436 = (fLocal_436 + (gameplay::get_frame_time() * 1000f));
					}
				}
			}
		}
		iVar4 = 0;
		if (vehicle::is_vehicle_driveable(iParam0, 0))
		{
			if (vehicle::is_playback_going_on_for_vehicle(iParam0))
			{
				iVar4 = 1;
			}
		}
		if (fLocal_431 == 0f || cam::is_screen_faded_out())
		{
			iVar4 = 1;
		}
		if (iVar4 && !iLocal_46)
		{
			if (!iLocal_28)
			{
				func_521(iParam0, ((fParam1 * fLocal_432) * fLocal_434), 0);
				if (!iLocal_49)
				{
				}
				iLocal_49 = 0;
			}
			if (iLocal_31)
			{
				func_517(iParam0);
			}
			if (!iLocal_28)
			{
				func_501(iParam0, ((fParam1 * fLocal_432) * fLocal_434), 0);
			}
		}
		if (iLocal_36)
		{
			if (player::is_player_playing(player::player_id()))
			{
				if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
				{
					iLocal_1070 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
					vLocal_865 = { entity::get_entity_coords(iLocal_1070, 1) };
					entity::get_entity_quaternion(iLocal_1070, &fLocal_267, &fLocal_268, &fLocal_269, &fLocal_270);
				}
			}
			iLocal_36 = 0;
		}
		if (iLocal_35)
		{
			if (entity::does_entity_exist(iLocal_1070))
			{
				func_500(iLocal_1071);
				iLocal_1071 = iLocal_1070;
			}
			if (vehicle::is_vehicle_driveable(iLocal_1071, 0))
			{
				entity::set_entity_coords(iLocal_1071, vLocal_865, 1, false, 0, 1);
				entity::set_entity_quaternion(iLocal_1071, fLocal_267, fLocal_268, fLocal_269, fLocal_270);
			}
			fLocal_430 = fLocal_433;
			iLocal_28 = 1;
			iLocal_35 = 0;
		}
		if (iLocal_28)
		{
			while (!func_495(&iParam0, fLocal_430))
			{
				system::wait(0);
			}
			iLocal_29 = 1;
		}
		if (iLocal_42)
		{
			iLocal_42 = 0;
		}
	}
}

bool func_495(int iParam0, float fParam1)//Position - 0x682B9
{
	if (!iLocal_43)
	{
		iLocal_28 = 1;
		func_496();
		if (vehicle::is_vehicle_driveable(*iParam0, 0))
		{
			if (vehicle::is_playback_going_on_for_vehicle(*iParam0))
			{
				vehicle::stop_playback_recorded_vehicle(*iParam0);
				vehicle::set_vehicle_fixed(*iParam0);
			}
			if (!iLocal_650 == -1)
			{
				while (!func_492(iParam0, iLocal_650, fParam1, 1, 0, 0, 0, 0))
				{
					system::wait(0);
				}
				if (!iLocal_33)
				{
					iLocal_29 = 1;
					fLocal_434 = 0f;
					iLocal_651 = 0;
					iLocal_653 = 0;
					iLocal_652 = 0;
					iLocal_647 = 0;
					iLocal_648 = 0;
					iLocal_649 = 0;
					iLocal_654 = 0;
					iLocal_655 = 0;
					iLocal_656 = 0;
				}
			}
		}
		iLocal_43 = 1;
	}
	else
	{
		if (vehicle::is_vehicle_driveable(*iParam0, 0))
		{
			if (vehicle::is_playback_going_on_for_vehicle(*iParam0))
			{
				vehicle::set_playback_speed(*iParam0, ((1f * fLocal_432) * fLocal_434));
				func_492(iParam0, iLocal_650, fParam1, 1, 0, 0, 0, 0);
			}
		}
		fLocal_431 = fParam1;
		iLocal_657 = 0;
		iLocal_660 = 0;
		fLocal_446 = 0f;
		fLocal_445 = 0f;
		func_501(*iParam0, ((1f * fLocal_432) * fLocal_434), 1);
		func_521(*iParam0, ((1f * fLocal_432) * fLocal_434), 1);
		func_517(*iParam0);
		if ((iLocal_654 == 0 && iLocal_655 == 0) && iLocal_656 == 0)
		{
			iLocal_29 = 0;
			iLocal_28 = 0;
			iLocal_43 = 0;
			return true;
		}
	}
	return false;
}

void func_496()//Position - 0x683EB
{
	func_499();
	func_498();
	func_497();
}

void func_497()//Position - 0x683FF
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 22)
	{
		if (entity::does_entity_exist(iLocal_1042[iVar0]))
		{
			if (vehicle::is_vehicle_driveable(iLocal_1042[iVar0], 0))
			{
				if (vehicle::is_playback_going_on_for_vehicle(iLocal_1042[iVar0]))
				{
					vehicle::stop_playback_recorded_vehicle(iLocal_1042[iVar0]);
				}
				iVar1 = vehicle::get_ped_in_vehicle_seat(iLocal_1042[iVar0], -1);
				if (entity::does_entity_exist(iVar1) && iVar1 != player::player_ped_id())
				{
					if (entity::is_entity_a_mission_entity(iVar1))
					{
						ped::delete_ped(&iVar1);
					}
				}
			}
			if (entity::is_entity_a_mission_entity(iLocal_1042[iVar0]))
			{
				vehicle::delete_vehicle(&(iLocal_1042[iVar0]));
			}
		}
		iLocal_596[iVar0] = 0;
		if (!iLocal_40 && !iLocal_53)
		{
			if (iLocal_573[iVar0] > 0)
			{
				vehicle::remove_vehicle_recording(iLocal_573[iVar0], &cLocal_892);
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 22)
	{
		if (!iLocal_955[iVar0] == 0)
		{
			streaming::set_model_as_no_longer_needed(iLocal_955[iVar0]);
		}
		iVar0++;
	}
}

void func_498()//Position - 0x684F5
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (entity::does_entity_exist(iLocal_1037[iVar0]))
		{
			if (entity::is_entity_a_mission_entity(iLocal_1037[iVar0]))
			{
				vehicle::delete_vehicle(&(iLocal_1037[iVar0]));
			}
		}
		iLocal_642[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (!iLocal_950[iVar0] == 0)
		{
			streaming::set_model_as_no_longer_needed(iLocal_950[iVar0]);
		}
		iVar0++;
	}
	iLocal_652 = 0;
	iLocal_649 = 0;
}

void func_499()//Position - 0x68570
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	while (iVar0 < 40)
	{
		if (entity::does_entity_exist(iLocal_981[iVar0]))
		{
			if (vehicle::is_vehicle_driveable(iLocal_981[iVar0], 0))
			{
				if (vehicle::is_playback_going_on_for_vehicle(iLocal_981[iVar0]))
				{
					vehicle::stop_playback_recorded_vehicle(iLocal_981[iVar0]);
				}
				iVar1 = vehicle::get_ped_in_vehicle_seat(iLocal_981[iVar0], -1);
				if (entity::does_entity_exist(iVar1) && iVar1 != player::player_ped_id())
				{
					if (entity::is_entity_a_mission_entity(iVar1))
					{
						ped::delete_ped(&iVar1);
					}
				}
			}
			if (entity::is_entity_a_mission_entity(iLocal_981[iVar0]))
			{
				vehicle::delete_vehicle(&(iLocal_981[iVar0]));
			}
		}
		if (!iLocal_40 && !iLocal_53)
		{
			if (iLocal_450[iVar0] > 0)
			{
				vehicle::remove_vehicle_recording(iLocal_450[iVar0], &cLocal_892);
			}
		}
		iLocal_491[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 40)
	{
		if (!iLocal_909[iVar0] == 0)
		{
			streaming::set_model_as_no_longer_needed(iLocal_909[iVar0]);
		}
		iVar0++;
	}
	iLocal_651 = 0;
	iLocal_647 = 0;
}

void func_500(int iParam0)//Position - 0x6866E
{
	if (entity::does_entity_exist(iParam0))
	{
		entity::set_vehicle_as_no_longer_needed(&iParam0);
	}
}

void func_501(int iParam0, float fParam1, int iParam2)//Position - 0x68685
{
	int iVar0;
	int iVar1;
	int iVar2;
	vector3 vVar3;
	vector3 vVar6;
	vector3 vVar9;
	float fVar12;
	float fVar13;
	int iVar14;
	int iVar15;
	int iVar16;
	var uVar17;
	int iVar18;
	int iVar19;
	int iVar20;
	
	iVar15 = player::is_player_playing(player::player_id());
	iVar16 = ped::can_create_random_driver();
	uVar17 = ped::can_create_random_bike_rider();
	iVar18 = false;
	if (iVar15)
	{
		if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
		{
			iVar2 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
		}
		vVar9 = { entity::get_entity_coords(player::player_ped_id(), 1) };
	}
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		iVar0 = iLocal_653;
		while (iVar0 < 22)
		{
			if (iLocal_596[iVar0] != 99)
			{
				if (iLocal_596[iVar0] == 0)
				{
					if (iLocal_573[iVar0] > 0)
					{
						if (!iLocal_28)
						{
							if (fLocal_431 > (fLocal_363[iVar0] - (7000f * fParam1)))
							{
								if (func_516(iLocal_955[iVar0]))
								{
									gameplay::set_bit(&(iLocal_619[iVar0]), 0);
								}
								else if (vehicle::is_this_model_a_bike(iLocal_955[iVar0]))
								{
									gameplay::set_bit(&(iLocal_619[iVar0]), 2);
								}
								gameplay::clear_bit(&(iLocal_619[iVar0]), 1);
								iLocal_596[iVar0]++;
								iLocal_655++;
							}
						}
						else
						{
							fVar12 = (fLocal_431 - fLocal_363[iVar0]);
							fVar12 = (fVar12 * fLocal_386[iVar0]);
							if (fVar12 >= 0f)
							{
								if (fVar12 < func_491(iLocal_573[iVar0]))
								{
									if (func_516(iLocal_955[iVar0]))
									{
										gameplay::set_bit(&(iLocal_619[iVar0]), 0);
									}
									else if (vehicle::is_this_model_a_bike(iLocal_955[iVar0]))
									{
										gameplay::set_bit(&(iLocal_619[iVar0]), 2);
									}
									gameplay::clear_bit(&(iLocal_619[iVar0]), 1);
									iLocal_596[iVar0]++;
									iLocal_655++;
								}
								else
								{
									iLocal_596[iVar0] = 99;
								}
							}
						}
					}
					else
					{
						iLocal_596[iVar0] = 99;
					}
				}
				else if (iLocal_596[iVar0] == 1)
				{
					iVar14 = false;
					vehicle::request_vehicle_recording(iLocal_573[iVar0], &cLocal_892);
					if (gameplay::is_bit_set(iLocal_619[iVar0], 0))
					{
						streaming::request_model(func_515());
						iVar14 = streaming::has_model_loaded(func_515());
					}
					else if (!iLocal_55 && ((!gameplay::is_bit_set(iLocal_619[iVar0], 2) && iVar16) || (gameplay::is_bit_set(iLocal_619[iVar0], 2) && uVar17)))
					{
						iVar14 = true;
					}
					else
					{
						streaming::request_model(func_514());
						iVar14 = streaming::has_model_loaded(func_514());
					}
					if (iVar14)
					{
						if (!entity::does_entity_exist(iLocal_1042[iVar0]))
						{
							streaming::request_model(iLocal_955[iVar0]);
							if (streaming::has_model_loaded(iLocal_955[iVar0]) && vehicle::has_vehicle_recording_been_loaded(iLocal_573[iVar0], &cLocal_892))
							{
								if (fLocal_431 >= (fLocal_363[iVar0] - (fLocal_444 * fParam1)))
								{
									if ((iLocal_42 || iParam2) || (!iLocal_59 && !func_513(vLocal_798[iVar0 /*3*/], vVar9, 5f, fLocal_442)))
									{
										if (iLocal_38)
										{
											func_512(vLocal_798[iVar0 /*3*/], vVar9, fLocal_435);
										}
										iLocal_1042[iVar0] = vehicle::create_vehicle(iLocal_955[iVar0], vLocal_798[iVar0 /*3*/], 0f, 0, false);
										if (iLocal_955[iVar0] == joaat("polmav"))
										{
											vehicle::set_vehicle_livery(iLocal_1042[iVar0], 0);
										}
										if (uLocal_51 && !gameplay::is_bit_set(iLocal_619[iVar0], 0))
										{
											func_511(iLocal_1042[iVar0]);
										}
										if (gameplay::is_bit_set(iLocal_619[iVar0], 3))
										{
											entity::_0x3910051CCECDB00C(iLocal_1042[iVar0], true);
										}
										entity::set_entity_coords_no_offset(iLocal_1042[iVar0], vLocal_798[iVar0 /*3*/], 0, 0, 1);
										entity::set_entity_quaternion(iLocal_1042[iVar0], fLocal_271[iVar0], fLocal_294[iVar0], fLocal_317[iVar0], fLocal_340[iVar0]);
										if (vehicle::is_this_model_a_car(iLocal_955[iVar0]) || vehicle::is_this_model_a_bike(iLocal_955[iVar0]))
										{
											vehicle::set_vehicle_on_ground_properly(iLocal_1042[iVar0]);
										}
										if (!gameplay::is_bit_set(iLocal_619[iVar0], 0))
										{
											vehicle::set_vehicle_engine_on(iLocal_1042[iVar0], true, 1, 0);
											if (time::get_clock_hours() > 19 || time::get_clock_hours() < 7)
											{
												vehicle::set_vehicle_lights(iLocal_1042[iVar0], 3);
											}
										}
										entity::freeze_entity_position(iLocal_1042[iVar0], true);
										streaming::set_model_as_no_longer_needed(iLocal_955[iVar0]);
										iLocal_655 = (iLocal_655 - 1);
										iLocal_596[iVar0]++;
										iLocal_59 = true;
									}
								}
							}
						}
						else if (!entity::is_entity_dead(iLocal_1042[iVar0], 0) && vehicle::is_vehicle_driveable(iLocal_1042[iVar0], 0))
						{
							entity::set_entity_coords_no_offset(iLocal_1042[iVar0], vLocal_798[iVar0 /*3*/], 0, 0, 1);
							entity::set_entity_quaternion(iLocal_1042[iVar0], fLocal_271[iVar0], fLocal_294[iVar0], fLocal_317[iVar0], fLocal_340[iVar0]);
							if (vehicle::is_this_model_a_car(iLocal_955[iVar0]) || vehicle::is_this_model_a_bike(iLocal_955[iVar0]))
							{
								vehicle::set_vehicle_on_ground_properly(iLocal_1042[iVar0]);
							}
							entity::freeze_entity_position(iLocal_1042[iVar0], true);
							streaming::set_model_as_no_longer_needed(iLocal_955[iVar0]);
							iLocal_655 = (iLocal_655 - 1);
							iLocal_596[iVar0]++;
						}
					}
				}
				else if (iLocal_596[iVar0] == 2)
				{
					vehicle::request_vehicle_recording(iLocal_573[iVar0], &cLocal_892);
					if (!gameplay::is_bit_set(iLocal_619[iVar0], 1))
					{
						iVar14 = false;
						if (gameplay::is_bit_set(iLocal_619[iVar0], 0))
						{
							streaming::request_model(func_515());
							iVar14 = streaming::has_model_loaded(func_515());
							iVar19 = 2;
						}
						else if (!iLocal_55 && ((!gameplay::is_bit_set(iLocal_619[iVar0], 2) && iVar16) || (gameplay::is_bit_set(iLocal_619[iVar0], 2) && uVar17)))
						{
							iVar14 = true;
							iVar19 = 1;
						}
						else
						{
							streaming::request_model(func_514());
							iVar14 = streaming::has_model_loaded(func_514());
							iVar19 = 0;
						}
						if (!entity::is_entity_dead(iLocal_1042[iVar0], 0))
						{
							if (!iLocal_59 && vehicle::is_vehicle_seat_free(iLocal_1042[iVar0], -1))
							{
								if (iVar14)
								{
									if ((system::vdist2(entity::get_entity_coords(iLocal_1042[iVar0], 1), vVar9) < 10000f || iParam2) || iLocal_42)
									{
										func_509(&(iLocal_1042[iVar0]), iVar19, 1);
										gameplay::set_bit(&(iLocal_619[iVar0]), 1);
									}
								}
							}
						}
					}
					if (vehicle::is_vehicle_driveable(iLocal_1042[iVar0], 0))
					{
						if (fLocal_431 >= fLocal_363[iVar0])
						{
							if (15 > iLocal_648)
							{
								fVar12 = (fLocal_431 - fLocal_363[iVar0]);
								fVar12 = (fVar12 * fLocal_386[iVar0]);
								if (vehicle::has_vehicle_recording_been_loaded(iLocal_573[iVar0], &cLocal_892))
								{
									if (fVar12 < vehicle::get_total_duration_of_vehicle_recording(iLocal_573[iVar0], &cLocal_892))
									{
										vVar3 = { entity::get_entity_coords(iLocal_1042[iVar0], 1) };
										vVar6 = { vehicle::get_position_of_vehicle_recording_at_time(iLocal_573[iVar0], fVar12, &cLocal_892) };
										if (((!func_513(vVar3, vVar9, 5f, fLocal_442) && func_513(vVar6, vVar9, 5f, fLocal_442)) && !iLocal_42) && !iParam2)
										{
											if (!gameplay::is_bit_set(iLocal_619[iVar0], 1))
											{
												func_509(&(iLocal_1042[iVar0]), iVar19, 1);
											}
											iLocal_648++;
											iLocal_596[iVar0]++;
										}
										else if (((!iLocal_59 || gameplay::is_bit_set(iLocal_619[iVar0], 1)) || iLocal_42) || iParam2)
										{
											if (func_492(&(iLocal_1042[iVar0]), iLocal_573[iVar0], fVar12, 1, 0, 0, iLocal_57, iLocal_56))
											{
												vehicle::set_playback_speed(iLocal_1042[iVar0], (fParam1 * fLocal_386[iVar0]));
												if (vehicle::is_vehicle_driveable(iLocal_1042[iVar0], 0))
												{
													if (gameplay::is_bit_set(iLocal_619[iVar0], 0))
													{
														vehicle::set_vehicle_engine_on(iLocal_1042[iVar0], true, 1, 0);
														vehicle::set_vehicle_siren(iLocal_1042[iVar0], true);
														vehicle::set_vehicle_lights(iLocal_1042[iVar0], 2);
														if (!vehicle::is_this_model_a_bike(iLocal_955[iVar0]))
														{
															audio::set_siren_with_no_driver(iLocal_1042[iVar0], 1);
														}
													}
												}
												if (!gameplay::is_bit_set(iLocal_619[iVar0], 1))
												{
													func_509(&(iLocal_1042[iVar0]), iVar19, 1);
												}
												iLocal_648++;
												iLocal_596[iVar0]++;
											}
										}
									}
									else
									{
										if (!gameplay::is_bit_set(iLocal_619[iVar0], 1))
										{
											func_509(&(iLocal_1042[iVar0]), iVar19, 1);
										}
										iLocal_648++;
										iLocal_596[iVar0]++;
									}
								}
							}
							else
							{
								if (!gameplay::is_bit_set(iLocal_619[iVar0], 1))
								{
									func_509(&(iLocal_1042[iVar0]), iVar19, 1);
								}
								iLocal_648++;
								iLocal_596[iVar0]++;
							}
						}
					}
					else
					{
						if (!gameplay::is_bit_set(iLocal_619[iVar0], 1))
						{
							func_509(&(iLocal_1042[iVar0]), iVar19, 1);
						}
						iLocal_648++;
						iLocal_596[iVar0]++;
					}
				}
				else if (iLocal_596[iVar0] == 3)
				{
					if (vehicle::is_vehicle_driveable(iLocal_1042[iVar0], 0))
					{
						if (vehicle::is_playback_going_on_for_vehicle(iLocal_1042[iVar0]))
						{
							iVar1 = vehicle::get_ped_in_vehicle_seat(iLocal_1042[iVar0], -1);
							if (!ped::is_ped_injured(iVar1))
							{
								if (iVar15)
								{
									if (((!iLocal_32 && !iLocal_29) && !iLocal_48) && (((!iLocal_57 && !iLocal_56) && entity::is_entity_touching_entity(player::player_ped_id(), iLocal_1042[iVar0])) || func_508(iLocal_1042[iVar0])))
									{
										if (entity::does_entity_exist(iVar2))
										{
											iVar14 = false;
											if (iLocal_50)
											{
												iVar14 = true;
											}
											else
											{
												fVar13 = entity::get_entity_speed(iVar2);
												if (fVar13 < 1f)
												{
													iVar14 = true;
												}
												else if (gameplay::absf((fVar13 - entity::get_entity_speed(iLocal_1042[iVar0]))) > 15f)
												{
													iVar14 = true;
												}
												else if (!func_507(iLocal_1042[iVar0], iVar2, 45f))
												{
													iVar14 = true;
												}
												else if (func_505(iVar2, iLocal_1042[iVar0], 0))
												{
													iVar14 = true;
												}
											}
											if (iVar14)
											{
												func_504(iLocal_1042[iVar0]);
												iLocal_596[iVar0]++;
											}
										}
									}
									else
									{
										vehicle::set_playback_speed(iLocal_1042[iVar0], (fParam1 * fLocal_386[iVar0]));
									}
								}
							}
							else
							{
								vehicle::stop_playback_recorded_vehicle(iLocal_1042[iVar0]);
							}
						}
						else
						{
							iLocal_596[iVar0]++;
						}
					}
					else
					{
						iLocal_596[iVar0]++;
					}
				}
				else if (iLocal_596[iVar0] == 4)
				{
					if (vehicle::is_vehicle_driveable(iLocal_1042[iVar0], 0))
					{
						if (!vehicle::is_playback_going_on_for_vehicle(iLocal_1042[iVar0]))
						{
							iLocal_596[iVar0]++;
						}
						else
						{
							iVar1 = vehicle::get_ped_in_vehicle_seat(iLocal_1042[iVar0], -1);
							if (!ped::is_ped_injured(iVar1))
							{
								vehicle::set_playback_speed(iLocal_1042[iVar0], (fParam1 * fLocal_386[iVar0]));
							}
							else
							{
								vehicle::stop_playback_recorded_vehicle(iLocal_1042[iVar0]);
							}
							if (vehicle::has_vehicle_recording_been_loaded(iLocal_573[iVar0], &cLocal_892))
							{
								if (fLocal_431 > (fLocal_363[iVar0] + vehicle::get_total_duration_of_vehicle_recording(iLocal_573[iVar0], &cLocal_892)))
								{
									vehicle::stop_playback_recorded_vehicle(iLocal_1042[iVar0]);
								}
							}
							else
							{
								vehicle::stop_playback_recorded_vehicle(iLocal_1042[iVar0]);
							}
						}
					}
					else
					{
						iLocal_596[iVar0]++;
					}
				}
				else if (iLocal_596[iVar0] == 5)
				{
					if (!iLocal_1042[iVar0] == iLocal_1072)
					{
						if (vehicle::is_vehicle_driveable(iLocal_1042[iVar0], 0))
						{
							iVar1 = vehicle::get_ped_in_vehicle_seat(iLocal_1042[iVar0], -1);
							if (!ped::is_ped_injured(iVar1))
							{
								iVar20 = ai::get_script_task_status(iVar1, 242628503);
								if (iVar20 == 7)
								{
									fVar13 = entity::get_entity_speed(iLocal_1042[iVar0]);
									if (fVar13 < 8f)
									{
										fVar13 = 8f;
									}
									if (fVar13 > 62.9f)
									{
										fVar13 = 62.9f;
									}
									ai::set_drive_task_cruise_speed(iVar1, fVar13);
								}
							}
						}
						if (!iLocal_40 && !iLocal_53)
						{
							if (iLocal_573[iVar0] > 0)
							{
								vehicle::remove_vehicle_recording(iLocal_573[iVar0], &cLocal_892);
							}
						}
						if (!iLocal_30)
						{
							if (!iLocal_58)
							{
								func_500(iLocal_1042[iVar0]);
							}
						}
						else if (entity::does_entity_exist(iLocal_1042[iVar0]))
						{
							vehicle::delete_vehicle(&(iLocal_1042[iVar0]));
						}
					}
					iLocal_648 = (iLocal_648 - 1);
					iLocal_596[iVar0] = 99;
				}
				if (!iVar18)
				{
					iLocal_653 = iVar0;
					iVar18 = true;
				}
			}
			iVar0++;
		}
	}
	else
	{
		func_502();
	}
}

void func_502()//Position - 0x69287
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 22)
	{
		if (entity::does_entity_exist(iLocal_1042[iVar0]))
		{
			if (vehicle::is_vehicle_driveable(iLocal_1042[iVar0], 0))
			{
				if (vehicle::is_playback_going_on_for_vehicle(iLocal_1042[iVar0]))
				{
					vehicle::stop_playback_recorded_vehicle(iLocal_1042[iVar0]);
				}
			}
			func_503(iLocal_1042[iVar0]);
			func_500(iLocal_1042[iVar0]);
		}
		iLocal_596[iVar0] = 0;
		iLocal_619[iVar0] = 0;
		if (!iLocal_40 && !iLocal_53)
		{
			if (iLocal_573[iVar0] > 0)
			{
				vehicle::remove_vehicle_recording(iLocal_573[iVar0], &cLocal_892);
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 22)
	{
		if (!iLocal_955[iVar0] == 0)
		{
			streaming::set_model_as_no_longer_needed(iLocal_955[iVar0]);
		}
		iVar0++;
	}
	iLocal_653 = 0;
}

void func_503(int iParam0)//Position - 0x69354
{
	float fVar0;
	int iVar1;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		iVar1 = vehicle::get_ped_in_vehicle_seat(iParam0, -1);
		if (!ped::is_ped_injured(iVar1))
		{
			if (!iVar1 == player::player_ped_id())
			{
				fVar0 = entity::get_entity_speed(iParam0);
				if (fVar0 < 8f)
				{
					fVar0 = 8f;
				}
				if (fVar0 > 62.9f)
				{
					fVar0 = 62.9f;
				}
				ai::task_vehicle_mission(iVar1, iParam0, 0, 1, fVar0, 786603, 5f, 5f, 1);
				ped::set_ped_flee_attributes(iVar1, 8192, true);
				if (iLocal_61)
				{
					ped::set_ped_flee_attributes(iVar1, 65536, true);
					ped::set_ped_flee_attributes(iVar1, 2, false);
				}
				ped::set_ped_combat_attributes(iVar1, 6, false);
			}
		}
	}
}

void func_504(int iParam0)//Position - 0x693ED
{
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		func_503(iParam0);
		vehicle::set_playback_to_use_ai(iParam0, 786603);
	}
}

bool func_505(int iParam0, int iParam1, int iParam2)//Position - 0x6940F
{
	vector3 vVar0;
	vector3 vVar3;
	vector3 vVar6;
	vector3 vVar9;
	vector3 vVar12;
	vector3 vVar15;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		vVar0 = { entity::get_entity_coords(iParam0, 1) };
	}
	if (vehicle::is_vehicle_driveable(iParam1, 0))
	{
		vVar3 = { entity::get_entity_coords(iParam1, 1) };
		if (iParam2)
		{
			vVar15 = { entity::get_entity_velocity(iParam1) };
			vVar12 = { vVar15 / FtoV(system::vmag(vVar15)) };
		}
		else
		{
			vVar6 = { entity::get_offset_from_entity_in_world_coords(iParam1, 0f, 5f, 0f) };
			vVar12 = { vVar6 - vVar3 };
		}
	}
	vVar9 = { vVar3 - vVar0 };
	vVar9.z = 0f;
	vVar12.z = 0f;
	if (func_506(vVar9, vVar12) < 0f)
	{
		return true;
	}
	return false;
}

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

bool func_507(int iParam0, int iParam1, float fParam2)//Position - 0x694CD
{
	vector3 vVar0;
	vector3 vVar3;
	float fVar6;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		vVar0 = { entity::get_entity_speed_vector(iParam0, 0) };
	}
	else
	{
		return false;
	}
	if (vehicle::is_vehicle_driveable(iParam1, 0))
	{
		vVar3 = { entity::get_entity_speed_vector(iParam1, 0) };
	}
	else
	{
		return false;
	}
	vVar0.z = 0f;
	vVar3.z = 0f;
	fVar6 = func_506(vVar0, vVar3);
	if (fVar6 < 0f)
	{
		return false;
	}
	fVar6 = gameplay::get_angle_between_2d_vectors(vVar0.x, vVar0.y, vVar3.x, vVar3.y);
	if (!fVar6 < fParam2)
	{
		return false;
	}
	return true;
}

bool func_508(int iParam0)//Position - 0x69550
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (iLocal_54)
	{
		iVar1 = player::get_players_last_vehicle();
		if (!entity::is_entity_dead(iVar1, 0))
		{
			iVar2 = entity::get_entity_model(iVar1);
			if (iVar2 == joaat("phantom"))
			{
				if (vehicle::is_vehicle_attached_to_trailer(iVar1))
				{
					if (vehicle::get_vehicle_trailer_vehicle(iVar1, &iVar0))
					{
						if (vehicle::is_vehicle_driveable(iVar0, 0))
						{
							if (entity::is_entity_touching_entity(iVar0, iParam0))
							{
								return true;
							}
						}
					}
				}
			}
		}
	}
	return false;
}

bool func_509(var uParam0, int iParam1, int iParam2)//Position - 0x695AE
{
	int iVar0;
	
	if (!entity::is_entity_dead(*uParam0, 0))
	{
		if (vehicle::is_vehicle_seat_free(*uParam0, -1))
		{
			if (iParam1 == 2)
			{
				iVar0 = ped::create_ped_inside_vehicle(*uParam0, 6, func_515(), -1, 0, false);
				ped::set_ped_relationship_group_hash(iVar0, iLocal_908);
				streaming::set_model_as_no_longer_needed(func_515());
			}
			else if (iParam1 == 1)
			{
				iVar0 = ped::create_random_ped_as_driver(*uParam0, 1);
				if (vehicle::is_this_model_a_bike(entity::get_entity_model(*uParam0)))
				{
					ped::give_ped_helmet(iVar0, 1, 4096, -1);
				}
			}
			else
			{
				iVar0 = ped::create_ped_inside_vehicle(*uParam0, 4, func_514(), -1, 0, false);
				if (iLocal_60)
				{
					streaming::set_model_as_no_longer_needed(func_514());
				}
			}
			if (iParam2)
			{
				entity::set_entity_only_damaged_by_player(iVar0, true);
				ped::set_ped_suffers_critical_hits(iVar0, 0);
				ped::set_ped_config_flag(iVar0, 32, false);
			}
			if (iLocal_61)
			{
				ped::set_ped_flee_attributes(iVar0, 8192, true);
				ped::set_ped_flee_attributes(iVar0, 65536, true);
				ped::set_ped_flee_attributes(iVar0, 2, false);
				vehicle::_0x25367DE49D64CF16(*uParam0, 1);
			}
			ped::set_blocking_of_non_temporary_events(iVar0, true);
			func_510(iVar0);
			iLocal_59 = true;
			return true;
		}
		else
		{
			return true;
		}
	}
	return false;
}

void func_510(int iParam0)//Position - 0x696A4
{
	if (entity::does_entity_exist(iParam0))
	{
		entity::set_ped_as_no_longer_needed(&iParam0);
	}
}

void func_511(int iParam0)//Position - 0x696BB
{
	int iVar0;
	int iVar1;
	
	iVar0 = gameplay::get_random_int_in_range(0, 12);
	if (iLocal_979 >= -1 && iLocal_980 >= -1)
	{
		while (iVar0 == iLocal_979 || iVar0 == iLocal_980)
		{
			iVar0++;
		}
	}
	else if (iLocal_979 >= -1)
	{
		if (iVar0 == iLocal_979)
		{
			iVar0++;
		}
	}
	iVar1 = iVar0;
	switch (iVar1)
	{
		case 0:
			vehicle::set_vehicle_colours(iParam0, 0, 0);
			break;
		
		case 1:
			vehicle::set_vehicle_colours(iParam0, 2, 2);
			break;
		
		case 2:
			vehicle::set_vehicle_colours(iParam0, 4, 4);
			break;
		
		case 3:
			vehicle::set_vehicle_colours(iParam0, 27, 27);
			break;
		
		case 4:
			vehicle::set_vehicle_colours(iParam0, 7, 7);
			break;
		
		case 5:
			vehicle::set_vehicle_colours(iParam0, 73, 73);
			break;
		
		case 6:
			vehicle::set_vehicle_colours(iParam0, 68, 68);
			break;
		
		case 7:
			vehicle::set_vehicle_colours(iParam0, 62, 62);
			break;
		
		case 8:
			vehicle::set_vehicle_colours(iParam0, 132, 132);
			break;
		
		case 9:
			vehicle::set_vehicle_colours(iParam0, 117, 0);
			break;
		
		case 10:
			vehicle::set_vehicle_colours(iParam0, 52, 52);
			break;
		
		case 11:
			vehicle::set_vehicle_colours(iParam0, 88, 88);
			break;
		
		case 12:
			vehicle::set_vehicle_colours(iParam0, 1, 1);
			break;
		
		case 13:
			vehicle::set_vehicle_colours(iParam0, 36, 36);
			break;
		
		case 14:
			vehicle::set_vehicle_colours(iParam0, 95, 95);
			break;
		
		default:
			vehicle::set_vehicle_colours(iParam0, 73, 73);
			break;
	}
}

void func_512(vector3 vParam0, vector3 vParam3, float fParam6)//Position - 0x69834
{
	int iVar0;
	int iVar1;
	
	iVar0 = true;
	if (!iLocal_41)
	{
		if (!func_513(vParam0, vParam3, fParam6, 200f))
		{
			if (player::is_player_playing(player::player_id()))
			{
				iVar1 = player::get_players_last_vehicle();
				if (!entity::is_entity_dead(iVar1, 0))
				{
					if (entity::is_entity_at_coord(iVar1, vParam0, fParam6, fParam6, fParam6, false, true, 0))
					{
						iVar0 = false;
					}
				}
			}
			if (iVar0)
			{
				gameplay::clear_area_of_vehicles(vParam0, fParam6, 0, 0, 0, 0, false);
			}
		}
	}
}

bool func_513(vector3 vParam0, vector3 vParam3, float fParam6, float fParam7)//Position - 0x698A5
{
	if (!cam::is_screen_faded_out())
	{
		if (!iLocal_41)
		{
			if (!iLocal_28)
			{
				if (system::vmag2(vParam3 - vParam0) - fParam6) < (fParam7 * fParam7)
				{
					if (cam::is_sphere_visible(vParam0, fParam6))
					{
						return true;
					}
				}
			}
		}
	}
	return false;
}

int func_514()//Position - 0x698EC
{
	if (iLocal_978 == 0)
	{
		return joaat("a_m_y_business_01");
	}
	return iLocal_978;
}

int func_515()//Position - 0x69909
{
	return joaat("s_m_y_cop_01");
}

bool func_516(int iParam0)//Position - 0x69916
{
	if (((((((iParam0 == joaat("police") || iParam0 == joaat("police2")) || iParam0 == joaat("police3")) || iParam0 == joaat("policeb")) || iParam0 == joaat("policet")) || iParam0 == joaat("polmav")) || iParam0 == joaat("pranger")) || iParam0 == joaat("sheriff"))
	{
		return true;
	}
	return false;
}

void func_517(int iParam0)//Position - 0x69990
{
	int iVar0;
	vector3 vVar1;
	vector3 vVar4;
	int iVar7;
	int iVar8;
	
	if (player::is_player_playing(player::player_id()))
	{
		vVar1 = { entity::get_entity_coords(player::player_ped_id(), 1) };
	}
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		iVar7 = false;
		iVar8 = false;
		iVar0 = iLocal_652;
		while (iVar0 < 4)
		{
			switch (iLocal_642[iVar0])
			{
				case 0:
					if (!iLocal_950[iVar0] == 0)
					{
						if (entity::is_entity_at_coord(iParam0, vLocal_785[iVar0 /*3*/], fLocal_429, fLocal_429, fLocal_429, false, true, 0))
						{
							iLocal_654++;
							iLocal_642[iVar0]++;
						}
					}
					else
					{
						iLocal_642[iVar0] = 99;
					}
					break;
				
				case 1:
					if (4 > iLocal_649)
					{
						if (!entity::does_entity_exist(iLocal_1037[iVar0]))
						{
							streaming::request_model(iLocal_950[iVar0]);
							if (streaming::has_model_loaded(iLocal_950[iVar0]))
							{
								if ((iLocal_28 || iLocal_42) || (!iLocal_59 && !func_513(vLocal_785[iVar0 /*3*/], vVar1, 5f, fLocal_442)))
								{
									if (iLocal_38)
									{
										func_512(vLocal_785[iVar0 /*3*/], vVar1, fLocal_435);
									}
									iLocal_1037[iVar0] = vehicle::create_vehicle(iLocal_950[iVar0], vLocal_785[iVar0 /*3*/], 0f, 0, false);
									if (iLocal_950[iVar0] == joaat("polmav"))
									{
										vehicle::set_vehicle_livery(iLocal_1037[iVar0], 0);
									}
									entity::set_entity_quaternion(iLocal_1037[iVar0], fLocal_409[iVar0], fLocal_414[iVar0], fLocal_419[iVar0], fLocal_424[iVar0]);
									streaming::set_model_as_no_longer_needed(iLocal_950[iVar0]);
									if (vehicle::is_vehicle_model(iLocal_1037[iVar0], func_520()))
									{
										vehicle::set_vehicle_siren(iLocal_1037[iVar0], true);
										if (!vehicle::is_this_model_a_bike(iLocal_950[iVar0]))
										{
											audio::set_siren_with_no_driver(iLocal_1037[iVar0], 1);
										}
									}
									if (vehicle::is_vehicle_model(iLocal_1037[iVar0], func_519()))
									{
										vehicle::set_vehicle_colours(iLocal_1037[iVar0], 0, 0);
									}
									entity::_0x3910051CCECDB00C(iLocal_1037[iVar0], true);
									iLocal_654 = (iLocal_654 - 1);
									iLocal_649++;
									iLocal_642[iVar0]++;
									iLocal_59 = true;
								}
							}
						}
						else
						{
							iLocal_654 = (iLocal_654 - 1);
							iLocal_649++;
							iLocal_642[iVar0]++;
						}
					}
					break;
				
				case 2:
					if (!iVar7)
					{
						if (vehicle::is_vehicle_driveable(iLocal_1037[iVar0], 0))
						{
							vVar4 = { entity::get_entity_coords(iLocal_1037[iVar0], 1) };
						}
						if (fLocal_443 == 0f || system::vdist2(vVar1, vVar4) < (fLocal_443 * fLocal_443))
						{
							if (!func_505(iLocal_1037[iVar0], iParam0, 0))
							{
								if (!iLocal_30)
								{
									func_500(iLocal_1037[iVar0]);
								}
								else
								{
									vehicle::delete_vehicle(&(iLocal_1037[iVar0]));
								}
								iLocal_649 = (iLocal_649 - 1);
								iLocal_642[iVar0] = 99;
								iVar7 = true;
							}
						}
					}
					break;
			}
			if (iLocal_642[iVar0] != 99)
			{
				if (!iVar8)
				{
					iLocal_652 = iVar0;
					iVar8 = true;
				}
			}
			iVar0++;
		}
	}
	else
	{
		func_518();
	}
}

void func_518()//Position - 0x69C85
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (entity::does_entity_exist(iLocal_1037[iVar0]))
		{
			if (!entity::is_entity_dead(iLocal_1037[iVar0], 0))
			{
				entity::set_entity_collision(iLocal_1037[iVar0], true, 0);
			}
			func_500(iLocal_1037[iVar0]);
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 4)
	{
		if (!iLocal_950[iVar0] == 0)
		{
			streaming::set_model_as_no_longer_needed(iLocal_950[iVar0]);
		}
		iVar0++;
	}
	iLocal_652 = 0;
	iLocal_649 = 0;
}

int func_519()//Position - 0x69D07
{
	return joaat("sultan");
}

int func_520()//Position - 0x69D14
{
	return joaat("police");
}

void func_521(int iParam0, float fParam1, int iParam2)//Position - 0x69D21
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	int iVar5;
	vector3 vVar6;
	vector3 vVar9;
	vector3 vVar12;
	float fVar15;
	float fVar16;
	int iVar17;
	int iVar18;
	int iVar19;
	var uVar20;
	int iVar21;
	int iVar22;
	int iVar23;
	int iVar24;
	vector3 vVar25;
	
	iVar5 = 0;
	iVar18 = player::is_player_playing(player::player_id());
	iVar19 = ped::can_create_random_driver();
	uVar20 = ped::can_create_random_bike_rider();
	if (iVar18)
	{
		if (ped::is_ped_in_any_vehicle(player::player_ped_id(), 0))
		{
			iVar5 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
		}
		vVar12 = { entity::get_entity_coords(player::player_ped_id(), 1) };
	}
	iVar1 = 0;
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		if (vehicle::is_playback_going_on_for_vehicle(iParam0))
		{
			fLocal_431 = vehicle::get_time_position_in_recording(iParam0);
		}
		iVar22 = -1;
		iVar23 = false;
		iVar24 = false;
		iVar0 = iLocal_651;
		while (iVar0 < 40 && !iVar23)
		{
			if (iLocal_491[iVar0] != 99)
			{
				if (iLocal_491[iVar0] == 0)
				{
					if (iLocal_450[iVar0] > 0 && iLocal_909[iVar0] != 0)
					{
						if (!iLocal_28)
						{
							if (fLocal_431 < (fLocal_226[iVar0] + 20000f))
							{
								if (fLocal_431 >= (fLocal_226[iVar0] - (7000f * fParam1)))
								{
									if (func_516(iLocal_909[iVar0]))
									{
										gameplay::set_bit(&(iLocal_532[iVar0]), 0);
									}
									else if (vehicle::is_this_model_a_bike(iLocal_909[iVar0]))
									{
										gameplay::set_bit(&(iLocal_532[iVar0]), 2);
									}
									gameplay::clear_bit(&(iLocal_532[iVar0]), 1);
									iLocal_656++;
									iLocal_491[iVar0]++;
								}
								else if (iVar1 > 2)
								{
									iVar23 = true;
								}
								else
								{
									iVar1++;
								}
							}
							else
							{
								func_524(iVar0, 1090519040);
							}
						}
						else
						{
							fVar15 = (fLocal_431 - fLocal_226[iVar0]);
							if (fVar15 >= 0f)
							{
								if (fVar15 < func_491(iLocal_450[iVar0]))
								{
									if (func_516(iLocal_909[iVar0]))
									{
										gameplay::set_bit(&(iLocal_532[iVar0]), 0);
									}
									else if (vehicle::is_this_model_a_bike(iLocal_909[iVar0]))
									{
										gameplay::set_bit(&(iLocal_532[iVar0]), 2);
									}
									gameplay::clear_bit(&(iLocal_532[iVar0]), 1);
									iLocal_656++;
									iLocal_491[iVar0]++;
								}
								else
								{
									func_524(iVar0, 1090519040);
								}
							}
						}
					}
					else
					{
						func_524(iVar0, 1090519040);
					}
				}
				else if (iLocal_491[iVar0] == 1)
				{
					vehicle::request_vehicle_recording(iLocal_450[iVar0], &cLocal_892);
					iVar17 = false;
					if (gameplay::is_bit_set(iLocal_532[iVar0], 0))
					{
						streaming::request_model(func_515());
						if (streaming::has_model_loaded(func_515()))
						{
							iVar17 = true;
						}
					}
					else if (!iLocal_55 && ((!gameplay::is_bit_set(iLocal_532[iVar0], 2) && iVar19) || (gameplay::is_bit_set(iLocal_532[iVar0], 2) && uVar20)))
					{
						iVar17 = true;
					}
					else
					{
						streaming::request_model(func_514());
						iVar17 = streaming::has_model_loaded(func_514());
					}
					if (!entity::does_entity_exist(iLocal_981[iVar0]))
					{
						streaming::request_model(iLocal_909[iVar0]);
						if ((streaming::has_model_loaded(iLocal_909[iVar0]) && vehicle::has_vehicle_recording_been_loaded(iLocal_450[iVar0], &cLocal_892)) && iVar17)
						{
							if (fLocal_431 >= (fLocal_226[iVar0] - (fLocal_444 * fParam1)))
							{
								if ((iLocal_42 || iParam2) || (!iLocal_59 && !func_513(vLocal_664[iVar0 /*3*/], vVar12, 5f, fLocal_442)))
								{
									if (iLocal_38)
									{
										func_512(vLocal_664[iVar0 /*3*/], vVar12, fLocal_435);
									}
									iLocal_981[iVar0] = vehicle::create_vehicle(iLocal_909[iVar0], vLocal_664[iVar0 /*3*/], 0f, 0, false);
									if (iLocal_909[iVar0] == joaat("polmav"))
									{
										vehicle::set_vehicle_livery(iLocal_981[iVar0], 0);
									}
									if (uLocal_51 && !gameplay::is_bit_set(iLocal_532[iVar0], 0))
									{
										func_511(iLocal_981[iVar0]);
									}
									entity::set_entity_coords_no_offset(iLocal_981[iVar0], vLocal_664[iVar0 /*3*/], 0, 0, 1);
									entity::set_entity_quaternion(iLocal_981[iVar0], fLocal_62[iVar0], fLocal_103[iVar0], fLocal_144[iVar0], fLocal_185[iVar0]);
									if (vehicle::is_this_model_a_car(iLocal_909[iVar0]) || vehicle::is_this_model_a_bike(iLocal_909[iVar0]))
									{
										vehicle::set_vehicle_on_ground_properly(iLocal_981[iVar0]);
									}
									if (gameplay::is_bit_set(iLocal_532[iVar0], 3))
									{
										entity::_0x3910051CCECDB00C(iLocal_981[iVar0], true);
									}
									if (!gameplay::is_bit_set(iLocal_532[iVar0], 0))
									{
										vehicle::set_vehicle_engine_on(iLocal_981[iVar0], true, 1, 0);
										if (time::get_clock_hours() > 19 || time::get_clock_hours() < 7)
										{
											vehicle::set_vehicle_lights(iLocal_981[iVar0], 3);
										}
									}
									entity::freeze_entity_position(iLocal_981[iVar0], true);
									entity::set_entity_only_damaged_by_player(iLocal_981[iVar0], true);
									streaming::set_model_as_no_longer_needed(iLocal_909[iVar0]);
									iLocal_656 = (iLocal_656 - 1);
									iLocal_491[iVar0]++;
									iLocal_59 = true;
								}
								else if (fLocal_431 > fLocal_226[iVar0])
								{
									iLocal_656 = (iLocal_656 - 1);
									func_524(iVar0, 1090519040);
								}
							}
						}
					}
				}
				else if (iLocal_491[iVar0] == 2)
				{
					iVar17 = false;
					if (((iVar3 < 8 && (iVar0 > iLocal_662 || iLocal_662 == 0)) || iLocal_42) || iParam2)
					{
						if (!gameplay::is_bit_set(iLocal_532[iVar0], 1))
						{
							if (gameplay::is_bit_set(iLocal_532[iVar0], 0))
							{
								streaming::request_model(func_515());
								iVar17 = streaming::has_model_loaded(func_515());
								iVar21 = 2;
							}
							else if (!iLocal_55 && ((!gameplay::is_bit_set(iLocal_532[iVar0], 2) && iVar19) || (gameplay::is_bit_set(iLocal_532[iVar0], 2) && uVar20)))
							{
								iVar17 = true;
								iVar21 = 1;
							}
							else
							{
								streaming::request_model(func_514());
								iVar17 = streaming::has_model_loaded(func_514());
								iVar21 = 0;
							}
							if (!entity::is_entity_dead(iLocal_981[iVar0], 0))
							{
								if (!iLocal_59 && vehicle::is_vehicle_seat_free(iLocal_981[iVar0], -1))
								{
									if (iVar17)
									{
										if ((system::vdist2(entity::get_entity_coords(iLocal_981[iVar0], 1), vVar12) < 10000f || iParam2) || iLocal_42)
										{
											func_509(&(iLocal_981[iVar0]), iVar21, 0);
											gameplay::set_bit(&(iLocal_532[iVar0]), 1);
										}
									}
								}
							}
						}
						if (vehicle::is_vehicle_driveable(iLocal_981[iVar0], 0))
						{
							vehicle::request_vehicle_recording(iLocal_450[iVar0], &cLocal_892);
							if (fLocal_431 >= fLocal_226[iVar0])
							{
								if (14 > iLocal_647)
								{
									fVar15 = (fLocal_431 - fLocal_226[iVar0]);
									if (vehicle::has_vehicle_recording_been_loaded(iLocal_450[iVar0], &cLocal_892))
									{
										if (fVar15 < vehicle::get_total_duration_of_vehicle_recording(iLocal_450[iVar0], &cLocal_892))
										{
											vVar6 = { entity::get_entity_coords(iLocal_981[iVar0], 1) };
											vVar9 = { vehicle::get_position_of_vehicle_recording_at_time(iLocal_450[iVar0], fVar15, &cLocal_892) };
											if (!func_513(vVar6, vVar12, 5f, fLocal_442) && func_513(vVar9, vVar12, 5f, fLocal_442))
											{
												if (!gameplay::is_bit_set(iLocal_532[iVar0], 1))
												{
													func_509(&(iLocal_981[iVar0]), iVar21, 0);
												}
												func_524(iVar0, 1090519040);
											}
											else if (((!iLocal_59 || gameplay::is_bit_set(iLocal_532[iVar0], 1)) || iLocal_42) || iParam2)
											{
												if (func_492(&(iLocal_981[iVar0]), iLocal_450[iVar0], fVar15, 1, 0, 0, 1, iLocal_56))
												{
													if (!gameplay::is_bit_set(iLocal_532[iVar0], 1))
													{
														func_509(&(iLocal_981[iVar0]), iVar21, 0);
													}
													entity::set_entity_collision(iLocal_981[iVar0], true, 0);
													vehicle::set_playback_speed(iLocal_981[iVar0], fParam1);
													iLocal_647++;
													iLocal_491[iVar0]++;
												}
											}
										}
										else
										{
											if (!gameplay::is_bit_set(iLocal_532[iVar0], 1))
											{
												func_509(&(iLocal_981[iVar0]), iVar21, 0);
											}
											func_524(iVar0, 1090519040);
										}
									}
									else if (fVar15 > vehicle::get_total_duration_of_vehicle_recording(iLocal_450[iVar0], &cLocal_892))
									{
										if (!gameplay::is_bit_set(iLocal_532[iVar0], 1))
										{
											func_509(&(iLocal_981[iVar0]), iVar21, 0);
										}
										func_524(iVar0, 1090519040);
									}
								}
								else
								{
									if (!gameplay::is_bit_set(iLocal_532[iVar0], 1))
									{
										func_509(&(iLocal_981[iVar0]), iVar21, 0);
									}
									func_524(iVar0, 1090519040);
								}
							}
							else if (iLocal_39 && !iLocal_47)
							{
								if (!gameplay::is_bit_set(iLocal_532[iVar0], 1))
								{
									func_509(&(iLocal_981[iVar0]), iVar21, 0);
								}
								func_524(iVar0, 1090519040);
							}
						}
						else
						{
							if (!gameplay::is_bit_set(iLocal_532[iVar0], 1))
							{
								func_509(&(iLocal_981[iVar0]), iVar21, 0);
							}
							func_524(iVar0, 1090519040);
						}
						iVar3++;
						iLocal_662 = iVar0;
					}
				}
				else if (iLocal_491[iVar0] == 3)
				{
					if (vehicle::is_vehicle_driveable(iLocal_981[iVar0], 0))
					{
						if (vehicle::is_playback_going_on_for_vehicle(iLocal_981[iVar0]))
						{
							iVar4 = vehicle::get_ped_in_vehicle_seat(iLocal_981[iVar0], -1);
							if (!ped::is_ped_injured(iVar4))
							{
								if (iVar18)
								{
									iVar24 = false;
									if (!iLocal_37)
									{
										if ((!iLocal_32 && !iLocal_29) && func_508(iLocal_981[iVar0]))
										{
											if (iVar2 < 3 && (iVar0 > iLocal_661 || iLocal_661 == 0))
											{
												if (!entity::is_entity_dead(iVar5, 0))
												{
													iVar17 = false;
													if (!func_523(iLocal_981[iVar0], iVar5) || func_505(iVar5, iLocal_981[iVar0], 0))
													{
														iVar24 = true;
													}
												}
												iLocal_661 = iVar0;
												iVar2++;
											}
										}
										else if (((!iLocal_52 && !gameplay::is_bit_set(iLocal_532[iVar0], 4)) && iVar2 < 3) && (iVar0 > iLocal_661 || iLocal_661 == 0))
										{
											vVar25 = { entity::get_offset_from_entity_given_world_coords(iParam0, entity::get_entity_coords(iLocal_981[iVar0], 1)) };
											if (vVar25.y < 0f)
											{
												if (gameplay::absf(vVar25.y) > gameplay::absf(vVar25.x))
												{
													iVar24 = true;
												}
											}
											iVar2++;
											iLocal_661 = iVar0;
										}
									}
									if (iVar24)
									{
										func_504(iLocal_981[iVar0]);
										iLocal_491[iVar0]++;
									}
									else
									{
										vehicle::set_playback_speed(iLocal_981[iVar0], fParam1);
									}
								}
							}
							else
							{
								vehicle::stop_playback_recorded_vehicle(iLocal_981[iVar0]);
							}
						}
						else
						{
							iLocal_491[iVar0]++;
						}
					}
					else
					{
						iLocal_491[iVar0]++;
					}
				}
				else if (iLocal_491[iVar0] == 4)
				{
					if (vehicle::is_vehicle_driveable(iLocal_981[iVar0], 0))
					{
						if (!vehicle::is_playback_going_on_for_vehicle(iLocal_981[iVar0]))
						{
							iLocal_491[iVar0]++;
						}
						else
						{
							iVar4 = vehicle::get_ped_in_vehicle_seat(iLocal_981[iVar0], -1);
							if (!ped::is_ped_injured(iVar4))
							{
								vehicle::set_playback_speed(iLocal_981[iVar0], fParam1);
							}
							else
							{
								vehicle::stop_playback_recorded_vehicle(iLocal_981[iVar0]);
							}
							if (vehicle::has_vehicle_recording_been_loaded(iLocal_450[iVar0], &cLocal_892))
							{
								if (fLocal_431 > (fLocal_226[iVar0] + vehicle::get_total_duration_of_vehicle_recording(iLocal_450[iVar0], &cLocal_892)))
								{
									vehicle::stop_playback_recorded_vehicle(iLocal_981[iVar0]);
								}
							}
							else
							{
								vehicle::stop_playback_recorded_vehicle(iLocal_981[iVar0]);
							}
						}
					}
					else
					{
						iLocal_491[iVar0]++;
					}
				}
				else if (iLocal_491[iVar0] == 5)
				{
					if (!entity::is_entity_dead(iLocal_981[iVar0], 0))
					{
						fVar16 = entity::get_entity_speed(iLocal_981[iVar0]);
					}
					iLocal_647 = (iLocal_647 - 1);
					func_524(iVar0, fVar16);
				}
				if (iVar22 == -1)
				{
					iVar22 = iVar0;
				}
			}
			iVar0++;
		}
		if (iVar22 != -1)
		{
			iLocal_651 = iVar22;
		}
		if (iVar2 < 3)
		{
			iLocal_661 = 0;
		}
		if (iVar3 < 8)
		{
			iLocal_662 = 0;
		}
	}
	else
	{
		func_522();
	}
}

void func_522()//Position - 0x6A881
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 40)
	{
		if (entity::does_entity_exist(iLocal_981[iVar0]))
		{
			if (!entity::is_entity_dead(iLocal_981[iVar0], 0))
			{
				entity::set_entity_collision(iLocal_981[iVar0], true, 0);
			}
			if (vehicle::is_vehicle_driveable(iLocal_981[iVar0], 0))
			{
				if (vehicle::is_playback_going_on_for_vehicle(iLocal_981[iVar0]))
				{
					vehicle::stop_playback_recorded_vehicle(iLocal_981[iVar0]);
				}
			}
			func_503(iLocal_981[iVar0]);
			func_500(iLocal_981[iVar0]);
		}
		iLocal_491[iVar0] = 0;
		iLocal_532[iVar0] = 0;
		if (!iLocal_40 && !iLocal_53)
		{
			if (iLocal_450[iVar0] > 0)
			{
				vehicle::remove_vehicle_recording(iLocal_450[iVar0], &cLocal_892);
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 40)
	{
		if (!iLocal_909[iVar0] == 0)
		{
			streaming::set_model_as_no_longer_needed(iLocal_909[iVar0]);
		}
		iVar0++;
	}
	iLocal_651 = 0;
	iLocal_647 = 0;
}

bool func_523(int iParam0, int iParam1)//Position - 0x6A96F
{
	vector3 vVar0;
	vector3 vVar3;
	float fVar6;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		vVar0 = { entity::get_entity_speed_vector(iParam0, 0) };
	}
	else
	{
		return false;
	}
	if (vehicle::is_vehicle_driveable(iParam1, 0))
	{
		vVar3 = { entity::get_entity_speed_vector(iParam1, 0) };
	}
	else
	{
		return false;
	}
	vVar0.z = 0f;
	vVar3.z = 0f;
	fVar6 = func_506(vVar0, vVar3);
	if (fVar6 < 0f)
	{
		return false;
	}
	return true;
}

void func_524(int iParam0, float fParam1)//Position - 0x6A9D3
{
	int iVar0;
	
	if (!iLocal_909[iParam0] == 0)
	{
		streaming::set_model_as_no_longer_needed(iLocal_909[iParam0]);
	}
	if (!entity::is_entity_dead(iLocal_981[iParam0], 0))
	{
		entity::set_entity_collision(iLocal_981[iParam0], true, 0);
		entity::freeze_entity_position(iLocal_981[iParam0], false);
		iVar0 = vehicle::get_ped_in_vehicle_seat(iLocal_981[iParam0], -1);
		if (!ped::is_ped_injured(iVar0) && iVar0 != player::player_ped_id())
		{
			ped::set_blocking_of_non_temporary_events(iVar0, false);
			if (fParam1 < 8f)
			{
				fParam1 = 8f;
			}
			if (fParam1 > 62.9f)
			{
				fParam1 = 62.9f;
			}
			ai::task_vehicle_mission(iVar0, iLocal_981[iParam0], 0, 1, fParam1, 786603, 5f, 5f, 1);
			ped::set_ped_flee_attributes(iVar0, 8192, true);
			if (iLocal_61)
			{
				ped::set_ped_flee_attributes(iVar0, 65536, true);
				ped::set_ped_flee_attributes(iVar0, 2, false);
			}
			ped::set_ped_combat_attributes(iVar0, 6, false);
			ai::set_drive_task_cruise_speed(iVar0, fParam1);
		}
	}
	if (!iLocal_30)
	{
		if (!iLocal_58)
		{
			func_510(iVar0);
			func_500(iLocal_981[iParam0]);
		}
	}
	else
	{
		if (entity::does_entity_exist(iVar0))
		{
			ped::delete_ped(&iVar0);
		}
		if (entity::does_entity_exist(iLocal_981[iParam0]))
		{
			vehicle::delete_vehicle(&(iLocal_981[iParam0]));
		}
	}
	if (!iLocal_40 && !iLocal_53)
	{
		if (iLocal_450[iParam0] > 0)
		{
			vehicle::remove_vehicle_recording(iLocal_450[iParam0], &cLocal_892);
		}
	}
	iLocal_491[iParam0] = 99;
}

void func_525(int iParam0, float fParam1, float fParam2)//Position - 0x6AB2D
{
	int iVar0;
	vector3 vVar1;
	vector3 vVar4;
	vector3 vVar7;
	vector3 vVar10;
	float fVar13;
	
	if (player::is_player_playing(player::player_id()))
	{
		vVar10 = { entity::get_entity_coords(player::player_ped_id(), 1) };
	}
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		if (vehicle::is_playback_going_on_for_vehicle(iParam0))
		{
			iVar0 = vehicle::get_current_playback_for_vehicle(iParam0);
			vVar1 = { vehicle::_0x92523B76657A517D(iVar0, fParam1) };
			vVar4 = { entity::get_entity_coords(iParam0, 1) };
			vVar7 = { vVar4 - vVar1 };
			fVar13 = system::vmag(vVar7);
			if (fVar13 > fParam2)
			{
				fVar13 = fParam2;
			}
			func_512(vVar1, vVar10, fVar13);
		}
	}
}

void func_526(int iParam0, float fParam1)//Position - 0x6ABB0
{
	if (!iLocal_41)
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			if (player::is_player_playing(player::player_id()))
			{
				if (system::vdist2(entity::get_entity_coords(iParam0, 1), entity::get_entity_coords(player::player_ped_id(), 1)) > (fParam1 * fParam1))
				{
					streaming::set_vehicle_population_budget(1);
				}
				else
				{
					streaming::set_vehicle_population_budget(0);
				}
			}
		}
	}
}

void func_527(int iParam0, float fParam1)//Position - 0x6ABFE
{
	if (!iLocal_41)
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			if (player::is_player_playing(player::player_id()))
			{
				if (system::vdist2(entity::get_entity_coords(iParam0, 1), entity::get_entity_coords(player::player_ped_id(), 1)) > (fParam1 * fParam1))
				{
					vehicle::set_vehicle_density_multiplier_this_frame(1f);
				}
				else
				{
					vehicle::set_vehicle_density_multiplier_this_frame(0f);
				}
			}
		}
	}
}

void func_528(int iParam0, float fParam1)//Position - 0x6AC4C
{
	int iVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	int iVar4;
	
	if (!entity::is_entity_dead(iParam0, 0) && vehicle::is_playback_going_on_for_vehicle(iParam0))
	{
		fVar1 = (fLocal_445 + 2000f);
		fVar2 = (fLocal_446 + 2000f);
		iVar4 = false;
		if (fVar1 < (fParam1 + 25000f))
		{
			iVar0 = vehicle::get_current_playback_for_vehicle(iParam0);
			if (fVar1 <= vehicle::get_total_duration_of_vehicle_recording_id(iVar0))
			{
				if (iLocal_657 == 0)
				{
					vLocal_880 = { vehicle::_0x92523B76657A517D(iVar0, fLocal_445) };
					iLocal_657++;
				}
				else if (iLocal_657 == 1)
				{
					vLocal_883 = { vehicle::_0x92523B76657A517D(iVar0, fVar1) };
					iLocal_657++;
				}
				else if (!iLocal_59)
				{
					if (vLocal_880.x > vLocal_883.x)
					{
						fVar3 = vLocal_880.x;
						vLocal_880.x = vLocal_883.x;
						vLocal_883.x = fVar3;
					}
					if (vLocal_880.y > vLocal_883.y)
					{
						fVar3 = vLocal_880.y;
						vLocal_880.y = vLocal_883.y;
						vLocal_883.y = fVar3;
					}
					if (vLocal_880.y > vLocal_883.y)
					{
						fVar3 = vLocal_880.y;
						vLocal_880.z = vLocal_883.y;
						vLocal_883.z = fVar3;
					}
					vLocal_880 = { vLocal_880 - Vector(fLocal_449, fLocal_449, fLocal_449) };
					vLocal_883 = { vLocal_883 + Vector(fLocal_449, fLocal_449, fLocal_449) };
					pathfind::set_roads_in_area(vLocal_880, vLocal_883, false, 0);
					fLocal_445 = fVar1;
					iLocal_657 = 0;
				}
			}
		}
		if (fVar2 < (fParam1 - 8000f))
		{
			iVar0 = vehicle::get_current_playback_for_vehicle(iParam0);
			if (iLocal_660 == 0)
			{
				vLocal_886 = { vehicle::_0x92523B76657A517D(iVar0, fLocal_446) };
				iLocal_660++;
			}
			else if (iLocal_660 == 1)
			{
				vLocal_889 = { vehicle::_0x92523B76657A517D(iVar0, fVar2) };
				iLocal_660++;
			}
			else if (!iLocal_59 && !iVar4)
			{
				if (vLocal_886.x > vLocal_889.x)
				{
					fVar3 = vLocal_886.x;
					vLocal_886.x = vLocal_889.x;
					vLocal_889.x = fVar3;
				}
				if (vLocal_886.y > vLocal_889.y)
				{
					fVar3 = vLocal_886.y;
					vLocal_886.y = vLocal_889.y;
					vLocal_889.y = fVar3;
				}
				if (vLocal_886.y > vLocal_889.y)
				{
					fVar3 = vLocal_886.y;
					vLocal_886.z = vLocal_889.y;
					vLocal_889.z = fVar3;
				}
				vLocal_886 = { vLocal_886 - Vector(fLocal_449, fLocal_449, fLocal_449) };
				vLocal_889 = { vLocal_889 + Vector(fLocal_449, fLocal_449, fLocal_449) };
				pathfind::set_roads_back_to_original(vLocal_886, vLocal_889, 1);
				fLocal_446 = fVar2;
				iLocal_660 = 0;
			}
		}
	}
}

bool func_529(int iParam0, int iParam1)//Position - 0x6AE9A
{
	vector3 vVar0;
	vector3 vVar3;
	vector3 vVar6;
	vector3 vVar9;
	vector3 vVar12;
	float fVar15;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (!entity::is_entity_dead(iParam1, 0))
		{
			if (ped::is_ped_in_vehicle(iParam0, iParam1, 0))
			{
				return false;
			}
		}
	}
	if (!entity::is_entity_dead(iParam0, 0))
	{
		vVar0 = { entity::get_entity_coords(iParam0, 1) };
	}
	if (vehicle::is_vehicle_driveable(iParam1, 0))
	{
		vVar3 = { entity::get_entity_coords(iParam1, 1) };
		vVar6 = { entity::get_offset_from_entity_in_world_coords(iParam1, 0f, 5f, 0f) };
		vVar12 = { vVar6 - vVar3 };
	}
	vVar9 = { vVar3 - vVar0 };
	vVar9.z = 0f;
	vVar12.z = 0f;
	fVar15 = func_506(vVar9, vVar12);
	if (fVar15 < 0f)
	{
		return true;
	}
	return false;
}

void func_530()//Position - 0x6AF3D
{
	vehicle::set_all_vehicle_generators_active();
	vehicle::set_number_of_parked_vehicles(-1);
	vehicle::set_garbage_trucks(1);
	vehicle::set_all_low_priority_vehicle_generators_active(1);
	vehicle::set_vehicle_density_multiplier_this_frame(1f);
	streaming::set_vehicle_population_budget(3);
	streaming::set_ped_population_budget(3);
}

void func_531()//Position - 0x6AF67
{
	vehicle::set_all_vehicle_generators_active_in_area(-9000f, -9000f, -1000f, 9000f, 9000f, 1500f, false, 1);
	vehicle::set_number_of_parked_vehicles(0);
	vehicle::set_garbage_trucks(0);
	vehicle::set_all_low_priority_vehicle_generators_active(0);
	vehicle::set_vehicle_density_multiplier_this_frame(0f);
	streaming::set_vehicle_population_budget(0);
	streaming::set_ped_population_budget(3);
}

void func_532()//Position - 0x6AFB1
{
	vLocal_798[0 /*3*/] = { 1422.353f, -1877.097f, 70.8741f };
	fLocal_271[0] = -0.0341f;
	fLocal_294[0] = -0.0104f;
	fLocal_317[0] = 0.9968f;
	fLocal_340[0] = 0.0712f;
	iLocal_573[0] = 1;
	fLocal_363[0] = 0f;
	fLocal_386[0] = 1f;
	iLocal_955[0] = joaat("intruder");
	vLocal_798[1 /*3*/] = { 1271.802f, -2046.953f, 43.9714f };
	fLocal_271[1] = -0.0056f;
	fLocal_294[1] = 0.0029f;
	fLocal_317[1] = -0.5599f;
	fLocal_340[1] = 0.8285f;
	iLocal_573[1] = 2;
	fLocal_363[1] = 9000f;
	fLocal_386[1] = 1f;
	iLocal_955[1] = joaat("intruder");
	vLocal_798[2 /*3*/] = { 1121.799f, -2084.063f, 39.4448f };
	fLocal_271[2] = -0.0369f;
	fLocal_294[2] = 0.0405f;
	fLocal_317[2] = 0.7168f;
	fLocal_340[2] = -0.6952f;
	iLocal_573[2] = 3;
	fLocal_363[2] = 2000f;
	fLocal_386[2] = 1f;
	iLocal_955[2] = joaat("intruder");
	vLocal_798[4 /*3*/] = { 1198.348f, -1975.261f, 41.4057f };
	fLocal_271[4] = -0.0144f;
	fLocal_294[4] = 0.0367f;
	fLocal_317[4] = 0.9809f;
	fLocal_340[4] = -0.1905f;
	iLocal_573[4] = 5;
	fLocal_363[4] = 6500f;
	fLocal_386[4] = 1f;
	iLocal_955[4] = joaat("utillitruck3");
	vLocal_798[5 /*3*/] = { 1068.988f, -2081.002f, 33.3438f };
	fLocal_271[5] = -0.0391f;
	fLocal_294[5] = 0.0363f;
	fLocal_317[5] = 0.7185f;
	fLocal_340[5] = -0.6935f;
	iLocal_573[5] = 6;
	fLocal_363[5] = 5500f;
	fLocal_386[5] = 1f;
	iLocal_955[5] = joaat("utillitruck3");
	vLocal_798[6 /*3*/] = { 963.4304f, -2086.325f, 30.2687f };
	fLocal_271[6] = 0.005f;
	fLocal_294[6] = -0.0043f;
	fLocal_317[6] = -0.7028f;
	fLocal_340[6] = 0.7114f;
	iLocal_573[6] = 7;
	fLocal_363[6] = 7500f;
	fLocal_386[6] = 1f;
	iLocal_955[6] = joaat("speedo");
	vLocal_798[8 /*3*/] = { 907.752f, -2083f, 30.0697f };
	fLocal_271[8] = 0.0014f;
	fLocal_294[8] = -0.0038f;
	fLocal_317[8] = 0.7314f;
	fLocal_340[8] = -0.682f;
	iLocal_573[8] = 9;
	fLocal_363[8] = 10000f;
	fLocal_386[8] = 1f;
	iLocal_955[8] = joaat("speedo");
	vLocal_798[9 /*3*/] = { 932.7582f, -2037.153f, 29.8118f };
	fLocal_271[9] = -0.0265f;
	fLocal_294[9] = -0.007f;
	fLocal_317[9] = 0.9995f;
	fLocal_340[9] = 0.0158f;
	iLocal_573[9] = 10;
	fLocal_363[9] = 14500f;
	fLocal_386[9] = 1f;
	iLocal_955[9] = joaat("intruder");
	vLocal_798[11 /*3*/] = { 1102.165f, -2071.463f, 37.002f };
	fLocal_271[11] = -0.0721f;
	fLocal_294[11] = -0.0486f;
	fLocal_317[11] = 0.6862f;
	fLocal_340[11] = 0.7222f;
	iLocal_573[11] = 12;
	fLocal_363[11] = 15700f;
	fLocal_386[11] = 1f;
	iLocal_955[11] = joaat("intruder");
	vLocal_798[12 /*3*/] = { 929.1259f, -2132.273f, 29.7939f };
	fLocal_271[12] = -0.004f;
	fLocal_294[12] = -0.0066f;
	fLocal_317[12] = -0.0359f;
	fLocal_340[12] = 0.9993f;
	iLocal_573[12] = 13;
	fLocal_363[12] = 16500f;
	fLocal_386[12] = 1f;
	iLocal_955[12] = joaat("speedo");
	vLocal_798[13 /*3*/] = { 927.9391f, -2152.367f, 30.0681f };
	fLocal_271[13] = 0f;
	fLocal_294[13] = -0.0014f;
	fLocal_317[13] = -0.0385f;
	fLocal_340[13] = 0.9993f;
	iLocal_573[13] = 14;
	fLocal_363[13] = 20000f;
	fLocal_386[13] = 1f;
	iLocal_955[13] = joaat("utillitruck3");
	vLocal_798[14 /*3*/] = { 867.0321f, -2104.532f, 29.8221f };
	fLocal_271[14] = -0.0044f;
	fLocal_294[14] = -0.0205f;
	fLocal_317[14] = -0.0787f;
	fLocal_340[14] = 0.9967f;
	iLocal_573[14] = 15;
	fLocal_363[14] = 18000f;
	fLocal_386[14] = 1f;
	iLocal_955[14] = joaat("speedo");
	vLocal_664[17 /*3*/] = { 792.7391f, -2071.552f, 28.9547f };
	fLocal_62[17] = -0.004f;
	fLocal_103[17] = -0.0208f;
	fLocal_144[17] = -0.5235f;
	fLocal_185[17] = 0.8518f;
	iLocal_450[17] = 18;
	fLocal_226[17] = 27148f;
	iLocal_909[17] = joaat("feltzer2");
	vLocal_664[18 /*3*/] = { 789.3976f, -2078.59f, 28.954f };
	fLocal_62[18] = 0.0042f;
	fLocal_103[18] = -0.0002f;
	fLocal_144[18] = -0.0429f;
	fLocal_185[18] = 0.9991f;
	iLocal_450[18] = 19;
	fLocal_226[18] = 27214f;
	iLocal_909[18] = joaat("fq2");
	vLocal_664[19 /*3*/] = { 760.3094f, -2127.563f, 28.816f };
	fLocal_62[19] = -0.0005f;
	fLocal_103[19] = -0.0036f;
	fLocal_144[19] = 0.9988f;
	fLocal_185[19] = 0.0494f;
	iLocal_450[19] = 20;
	fLocal_226[19] = 30513f;
	iLocal_909[19] = joaat("serrano");
	vLocal_664[20 /*3*/] = { 753.7613f, -2140.944f, 28.8163f };
	fLocal_62[20] = -0.0021f;
	fLocal_103[20] = -0.0121f;
	fLocal_144[20] = 0.9987f;
	fLocal_185[20] = 0.0494f;
	iLocal_450[20] = 21;
	fLocal_226[20] = 30579f;
	iLocal_909[20] = joaat("fq2");
	vLocal_664[21 /*3*/] = { 780.1787f, -2120.84f, 28.8168f };
	fLocal_62[21] = -0.0044f;
	fLocal_103[21] = 0f;
	fLocal_144[21] = -0.0484f;
	fLocal_185[21] = 0.9988f;
	iLocal_450[21] = 22;
	fLocal_226[21] = 30843f;
	iLocal_909[21] = joaat("serrano");
	vLocal_664[22 /*3*/] = { 750.2296f, -2242.933f, 28.8457f };
	fLocal_62[22] = -0.0002f;
	fLocal_103[22] = -0.0035f;
	fLocal_144[22] = 0.9991f;
	fLocal_185[22] = 0.0431f;
	iLocal_450[22] = 23;
	fLocal_226[22] = 35727f;
	iLocal_909[22] = joaat("radi");
	vLocal_664[23 /*3*/] = { 781.4967f, -2233.732f, 28.8944f };
	fLocal_62[23] = 0.0052f;
	fLocal_103[23] = -0.0057f;
	fLocal_144[23] = 0.6125f;
	fLocal_185[23] = 0.7904f;
	iLocal_450[23] = 24;
	fLocal_226[23] = 36255f;
	iLocal_909[23] = joaat("bison");
	vLocal_664[24 /*3*/] = { 772.0815f, -2276.501f, 28.6292f };
	fLocal_62[24] = 0.0161f;
	fLocal_103[24] = -0.0006f;
	fLocal_144[24] = -0.0421f;
	fLocal_185[24] = 0.999f;
	iLocal_450[24] = 25;
	fLocal_226[24] = 36915f;
	iLocal_909[24] = joaat("fq2");
	vLocal_664[25 /*3*/] = { 763.6131f, -2310.326f, 26.7922f };
	fLocal_62[25] = 0.0355f;
	fLocal_103[25] = -0.0023f;
	fLocal_144[25] = -0.0452f;
	fLocal_185[25] = 0.9983f;
	iLocal_450[25] = 26;
	fLocal_226[25] = 38235f;
	iLocal_909[25] = joaat("bison");
	vLocal_664[26 /*3*/] = { 766.6949f, -2338.007f, 24.7797f };
	fLocal_62[26] = 0.0396f;
	fLocal_103[26] = -0.0014f;
	fLocal_144[26] = -0.0413f;
	fLocal_185[26] = 0.9984f;
	iLocal_450[26] = 27;
	fLocal_226[26] = 39225f;
	iLocal_909[26] = joaat("bison");
}

void func_533(char* sParam0, int iParam1, int iParam2, int iParam3)//Position - 0x6B895
{
	vector3 vVar0;
	
	StringCopy(&cLocal_892, sParam0, 64);
	iLocal_38 = true;
	iLocal_43 = 0;
	iLocal_647 = 0;
	iLocal_648 = 0;
	iLocal_649 = 0;
	iLocal_650 = iParam1;
	iLocal_651 = 0;
	iLocal_652 = 0;
	iLocal_653 = 0;
	iLocal_657 = 0;
	iLocal_660 = 0;
	iLocal_658 = -1;
	iLocal_659 = -1;
	iLocal_661 = 0;
	iLocal_662 = 0;
	fLocal_445 = 0f;
	fLocal_446 = 0f;
	fLocal_431 = 0f;
	iLocal_44 = 0;
	if (player::is_player_playing(player::player_id()))
	{
		vVar0 = { entity::get_entity_coords(player::player_ped_id(), 1) };
		vLocal_868.x = (vVar0.x - 100f);
		vLocal_868.y = (vVar0.y - 100f);
		vLocal_868.z = (vVar0.y - 100f);
		vLocal_871.x = (vVar0.x + 100f);
		vLocal_871.y = (vVar0.y + 100f);
		vLocal_871.z = (vVar0.y + 100f);
		pathfind::set_roads_in_area(vLocal_868, vLocal_871, false, 0);
		if (iParam2)
		{
			gameplay::clear_area_of_vehicles(vVar0, 500f, 0, 0, 0, 0, false);
		}
	}
	ped::add_relationship_group("rgh_traffic", &iLocal_908);
	func_531();
	if (iParam3)
	{
		func_535(1);
	}
	if (player::is_player_playing(player::player_id()))
	{
		player::set_dispatch_cops_for_player(player::player_id(), 0);
		ped::set_create_random_cops(false);
	}
	func_534();
}

void func_534()//Position - 0x6B9B7
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 40)
	{
		iLocal_981[iVar0] = 0;
		vLocal_664[iVar0 /*3*/] = { 0f, 0f, 0f };
		fLocal_62[iVar0] = 0f;
		fLocal_103[iVar0] = 0f;
		fLocal_144[iVar0] = 0f;
		fLocal_185[iVar0] = 0f;
		iLocal_450[iVar0] = 0;
		fLocal_226[iVar0] = 0f;
		iLocal_491[iVar0] = 0;
		iLocal_909[iVar0] = 0;
		iLocal_532[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 14)
	{
		iLocal_1022[iVar0] = 0;
		iVar0++;
	}
	iLocal_647 = 0;
	iVar0 = 0;
	while (iVar0 < 4)
	{
		iLocal_1037[iVar0] = 0;
		vLocal_785[iVar0 /*3*/] = { 0f, 0f, 0f };
		fLocal_409[iVar0] = 0f;
		fLocal_414[iVar0] = 0f;
		fLocal_419[iVar0] = 0f;
		fLocal_424[iVar0] = 0f;
		iLocal_642[iVar0] = 0;
		iLocal_950[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < 4)
	{
		iLocal_1065[iVar0] = 0;
		iVar0++;
	}
	iLocal_649 = 0;
	iVar0 = 0;
	while (iVar0 < 22)
	{
		iLocal_1042[iVar0] = 0;
		vLocal_798[iVar0 /*3*/] = { 0f, 0f, 0f };
		fLocal_271[iVar0] = 0f;
		fLocal_294[iVar0] = 0f;
		fLocal_317[iVar0] = 0f;
		fLocal_340[iVar0] = 0f;
		iLocal_573[iVar0] = 0;
		fLocal_363[iVar0] = 0f;
		iLocal_596[iVar0] = 0;
		iLocal_955[iVar0] = 0;
		iLocal_619[iVar0] = 0;
		iVar0++;
	}
	iLocal_648 = 0;
	iLocal_651 = 0;
	iLocal_654 = 0;
	iLocal_655 = 0;
	iLocal_656 = 0;
}

void func_535(int iParam0)//Position - 0x6BB3F
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 45)
	{
		func_536(iVar0, iParam0);
		iVar0++;
	}
}

void func_536(int iParam0, int iParam1)//Position - 0x6BB62
{
	if (iParam1)
	{
		if (!func_363(iParam0, 2, 1))
		{
			func_538(iParam0, 2, 1);
		}
	}
	else if (func_363(iParam0, 2, 1))
	{
		func_537(iParam0, 2, 1);
	}
}

void func_537(int iParam0, int iParam1, int iParam2)//Position - 0x6BB99
{
	int iVar0;
	
	if (iParam2)
	{
		gameplay::clear_bit(&(Global_91330.f_1300[iParam0]), iParam1);
	}
	else if (network::network_is_game_in_progress())
	{
		if (func_175() == 0)
		{
			iVar0 = func_16(func_364(iParam0), -1, 0);
			gameplay::clear_bit(&iVar0, iParam1);
			func_249(func_364(iParam0), iVar0, -1, 1);
		}
	}
	else
	{
		gameplay::clear_bit(&(Global_101154.f_668[iParam0]), iParam1);
	}
}

void func_538(int iParam0, int iParam1, int iParam2)//Position - 0x6BC01
{
	int iVar0;
	
	if (iParam2)
	{
		gameplay::set_bit(&(Global_91330.f_1300[iParam0]), iParam1);
	}
	else if (network::network_is_game_in_progress())
	{
		if (func_175() == 0)
		{
			iVar0 = func_16(func_364(iParam0), -1, 0);
			gameplay::set_bit(&iVar0, iParam1);
			func_249(func_364(iParam0), iVar0, -1, 1);
		}
	}
	else
	{
		gameplay::set_bit(&(Global_101154.f_668[iParam0]), iParam1);
	}
}

bool func_539(var uParam0)//Position - 0x6BC69
{
	if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
	{
		*uParam0 = player::get_players_last_vehicle();
		if (entity::does_entity_exist(*uParam0))
		{
			if (vehicle::is_vehicle_driveable(*uParam0, 0))
			{
				return true;
			}
		}
	}
	return false;
}

void func_540()//Position - 0x6BC9D
{
	int iVar0;
	
	iVar0 = 0;
	iLocal_3182 = 0;
	iLocal_3183 = 0;
	iLocal_3177 = 0;
	iLocal_3178 = 0;
	iLocal_3179 = false;
	iLocal_3180 = false;
	iLocal_3181 = 0;
	iLocal_3182 = 0;
	iLocal_3183 = 0;
	iLocal_3184 = false;
	iLocal_3185 = 0;
	iLocal_3186 = 0;
	iLocal_3187 = 0;
	iLocal_3188 = 0;
	iLocal_3189 = false;
	iLocal_3190 = 0;
	iLocal_3191 = 0;
	iLocal_3192 = 0;
	iLocal_3193 = 0;
	iLocal_3194 = false;
	iLocal_3195 = false;
	iLocal_3196 = 0;
	iLocal_3197 = false;
	iLocal_3198 = 0;
	iLocal_3199 = 0;
	iLocal_3200 = 0;
	iLocal_3201 = 0;
	iLocal_3202 = 0;
	iLocal_3203 = false;
	iLocal_3204 = false;
	iLocal_3205 = false;
	iLocal_3206 = false;
	iLocal_3207 = 0;
	iLocal_3208 = 0;
	iLocal_3209 = false;
	iLocal_3210 = 0;
	iLocal_3211 = 0;
	iLocal_3212 = 0;
	iLocal_3213 = 0;
	iLocal_3214 = false;
	iLocal_3215 = 0;
	iLocal_3217 = false;
	iLocal_3218 = false;
	iLocal_3219 = 0;
	iLocal_3220 = 0;
	iLocal_3221 = 0;
	iLocal_3222 = 0;
	iLocal_3223 = 0;
	iLocal_3224 = 0;
	iLocal_3225 = 0;
	iLocal_3227 = 0;
	iLocal_3228 = 0;
	iLocal_3229 = 0;
	iLocal_3230 = 0;
	iLocal_3231 = 0;
	iLocal_3235 = 0;
	iLocal_3236 = 0;
	iLocal_3237 = 0;
	iLocal_3238 = 0;
	iLocal_3239 = 0;
	iLocal_3241 = 0;
	iLocal_3248 = 0;
	iLocal_3249 = 0;
	iLocal_3247 = 0;
	iLocal_3251 = 0;
	iLocal_3252 = 0;
	iLocal_3253 = 0;
	iLocal_3254 = 0;
	iLocal_3255 = 0;
	iLocal_3256 = 0;
	iLocal_3257 = 0;
	iLocal_3282 = 0;
	iLocal_3283 = 0;
	iLocal_3284 = 0;
	iLocal_3285 = 0;
	iLocal_3287 = 0;
	iLocal_3288 = 0;
	iLocal_3290 = 0;
	iLocal_3291 = 0;
	iLocal_3292 = 0;
	iLocal_3294 = 0;
	iLocal_3295 = 0;
	iLocal_3296 = 0;
	iLocal_3297 = 0;
	iLocal_3298 = 0;
	iLocal_3301 = 0;
	iLocal_3302 = 0;
	iLocal_3303 = 0;
	iLocal_3307 = 0;
	iLocal_3308 = 0;
	iLocal_3245 = 0;
	iLocal_3309 = 0;
	iLocal_3310 = 0;
	iLocal_3311 = 0;
	iLocal_3312 = 0;
	iLocal_3313 = 0;
	iLocal_3314 = 0;
	iLocal_3315 = 0;
	iLocal_3316 = 0;
	iLocal_3317 = 0;
	iLocal_3288 = 0;
	iLocal_3355 = 0;
	iLocal_3356 = 0;
	iLocal_3357 = 0;
	iLocal_3358 = 0;
	iLocal_3359 = 0;
	iLocal_3360 = 0;
	iLocal_3260 = 0;
	iLocal_3361 = 0;
	iLocal_3362 = 0;
	iLocal_3363 = 0;
	iLocal_3365 = 0;
	iLocal_3366 = 0;
	iLocal_3367 = 0;
	iLocal_3371 = 0;
	iLocal_3372 = 0;
	iLocal_3373 = 0;
	iLocal_3374 = 0;
	iLocal_3375 = 0;
	iLocal_3376 = 0;
	iLocal_3377 = 0;
	iLocal_3378 = 0;
	iLocal_3379 = 0;
	iLocal_3380 = 0;
	iLocal_3381 = 0;
	iLocal_3382 = 0;
	iLocal_3383 = 0;
	iLocal_3384 = 0;
	iLocal_3385 = 0;
	iLocal_3386 = 0;
	iLocal_3387 = 0;
	iLocal_3388 = 0;
	iLocal_3389 = 0;
	iLocal_3390 = 0;
	iLocal_3391 = 0;
	iLocal_3392 = 0;
	iLocal_3393 = 0;
	iLocal_3394 = 0;
	iLocal_3395 = 0;
	iLocal_3396 = 0;
	iLocal_3397 = 0;
	iLocal_3398 = 0;
	iLocal_3399 = 0;
	iLocal_3400 = 0;
	iLocal_3401 = 0;
	iLocal_3405 = 0;
	iLocal_3406 = 0;
	iLocal_3407 = 0;
	iLocal_3408 = 0;
	iLocal_3409 = 0;
	fLocal_3444 = 1f;
	fLocal_3445 = 1f;
	fLocal_3446 = 1f;
	func_544(&iLocal_3099, 0, 0);
	func_544(&iLocal_3099, 1, 0);
	func_544(&iLocal_3099, 2, 0);
	iLocal_3807 = 1;
	iLocal_3838 = 0;
	vLocal_3421 = { 881.0168f, -2333.912f, 33.9075f };
	Local_2588.f_1 = func_323(30);
	Local_2588.f_3 = { 1392.27f, -2071.484f, 51.0172f };
	Local_2588.f_10 = 200;
	Local_2608.f_1 = func_323(23);
	Local_2608.f_3 = { 1393.04f, -2069.232f, 51.0114f };
	Local_2608.f_10 = 200;
	Local_2628.f_1 = func_323(67);
	Local_2628.f_3 = { 1390.123f, -2070.553f, 51.0074f };
	Local_2628.f_15 = joaat("weapon_unarmed");
	Local_2628.f_10 = 200;
	Local_1479.f_1 = func_343(2, 0);
	Local_1177.f_1 = joaat("trash");
	Local_1177.f_3 = { 959.5624f, -2071.308f, 29.6226f };
	Local_1177.f_6 = 87.4847f;
	Local_1207.f_1 = joaat("towtruck");
	Local_1207.f_3 = { 1022.351f, -2376.316f, 29.5306f };
	Local_1207.f_6 = 85.1557f;
	Local_1645.f_1 = joaat("s_m_m_armoured_01");
	Local_1665.f_1 = joaat("s_m_m_armoured_01");
	Local_1685.f_3 = { 855.28f, -2374.2f, 43.26f };
	Local_1685.f_9 = 7.2f;
	Local_1685.f_1 = joaat("s_m_m_armoured_01");
	Local_1685.f_10 = 200;
	StringCopy(&(Local_1685.f_16), "army guy", 16);
	Local_1705.f_3 = { 855.28f, -2374.2f, 44.26f };
	Local_1705.f_9 = 7.2f;
	Local_1705.f_1 = joaat("s_m_m_armoured_01");
	Local_1705.f_10 = 200;
	StringCopy(&(Local_1705.f_16), "army guy 2", 16);
	Local_1192.f_1 = joaat("stockade");
	Local_1192.f_3 = { 736.8857f, -2730.563f, 6.3323f };
	Local_1192.f_6 = 0.3915f;
	Local_1192.f_9 = 1000;
	Local_1615.f_1 = func_343(0, 0);
	Local_1615.f_3 = { -823.5428f, 181.3025f, 70.6662f };
	Local_1615.f_6 = 142.815f;
	Local_1494[0 /*15*/].f_3 = { 736.4277f, -2347.022f, 24.0021f };
	Local_1494[0 /*15*/].f_1 = joaat("stanier");
	Local_1494[0 /*15*/].f_13 = 201;
	Local_1494[1 /*15*/].f_3 = { 730.5193f, -2405.836f, 20.1767f };
	Local_1494[1 /*15*/].f_1 = joaat("stanier");
	Local_1494[1 /*15*/].f_13 = 202;
	Local_1494[2 /*15*/].f_3 = { 639.3552f, -2504.716f, 17.436f };
	Local_1494[2 /*15*/].f_1 = joaat("stanier");
	Local_1494[2 /*15*/].f_13 = 203;
	Local_1494[3 /*15*/].f_3 = { 682.7643f, -2493.155f, 19.71f };
	Local_1494[3 /*15*/].f_1 = joaat("stanier");
	Local_1494[3 /*15*/].f_13 = 204;
	Local_1494[4 /*15*/].f_3 = { 736.4277f, -2347.022f, 24.0021f };
	Local_1494[4 /*15*/].f_1 = joaat("stanier");
	Local_1494[4 /*15*/].f_13 = 201;
	Local_1494[5 /*15*/].f_3 = { 730.5193f, -2405.836f, 20.1767f };
	Local_1494[5 /*15*/].f_1 = joaat("stanier");
	Local_1494[5 /*15*/].f_13 = 201;
	Local_1494[6 /*15*/].f_3 = { 639.3552f, -2504.716f, 17.436f };
	Local_1494[6 /*15*/].f_1 = joaat("stanier");
	Local_1494[6 /*15*/].f_13 = 203;
	Local_1494[7 /*15*/].f_3 = { 682.7643f, -2493.155f, 19.71f };
	Local_1494[7 /*15*/].f_1 = joaat("stanier");
	Local_1494[7 /*15*/].f_13 = 204;
	vLocal_3412 = { 906.2f, -2375.501f, 30.532f };
	Local_2933.f_2 = weapon::get_weapontype_model(joaat("weapon_stickybomb"));
	Local_2933.f_3 = { 872f, -2369f, 36.72f };
	Local_2933.f_20 = 1000;
	vLocal_2957.z = joaat("prop_binoc_01");
	Local_3029.f_2 = joaat("prop_cs_envolope_01");
	Local_3029.f_3 = { 890.1637f, -2363.363f, 29.77f };
	Local_3029.f_12 = { 0f, 0f, 0f };
	Local_2981.f_2 = joaat("prop_securityvan_lightrig");
	Local_2981.f_3 = { 890.365f, -2367.289f, 28.104f };
	Local_2981.f_12 = { 0f, 0f, -0.11f };
	iVar0 = 0;
	while (iVar0 <= (Local_1725 - 1))
	{
		Local_1725[iVar0 /*20*/].f_14 = 0;
		iLocal_1127[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2648 - 1))
	{
		Local_2648[iVar0 /*20*/].f_14 = 0;
		iLocal_1164[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2709 - 1))
	{
		Local_2709[iVar0 /*20*/].f_14 = 0;
		iLocal_1168[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2770 - 1))
	{
		iLocal_3402[iVar0] = 0;
		iVar0++;
	}
	Local_1725[0 /*20*/].f_6 = { 883.9125f, -2361.335f, 29.2142f };
	Local_1725[0 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[0 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[0 /*20*/].f_12 = 1;
	Local_1725[0 /*20*/].f_10 = 200;
	Local_1725[0 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[0 /*20*/].f_16), "police man 0", 16);
	Local_1725[1 /*20*/].f_6 = { 886.4715f, -2342.363f, 29.33342f };
	Local_1725[1 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[1 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[1 /*20*/].f_12 = 1;
	Local_1725[1 /*20*/].f_10 = 200;
	Local_1725[1 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[1 /*20*/].f_16), "police man 1", 16);
	Local_1725[2 /*20*/].f_6 = { 888.0029f, -2362.344f, 29.2334f };
	Local_1725[2 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[2 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[2 /*20*/].f_12 = 0;
	Local_1725[2 /*20*/].f_10 = 200;
	Local_1725[2 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[2 /*20*/].f_16), "police man 2", 16);
	Local_1725[3 /*20*/].f_6 = { 891.9032f, -2362.348f, 29.3657f };
	Local_1725[3 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[3 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[3 /*20*/].f_12 = 1;
	Local_1725[3 /*20*/].f_10 = 200;
	Local_1725[3 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[3 /*20*/].f_16), "police man 3", 16);
	Local_1725[4 /*20*/].f_6 = { 893.09f, -2346.84f, 29.4129f };
	Local_1725[4 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[4 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[4 /*20*/].f_12 = 0;
	Local_1725[4 /*20*/].f_10 = 200;
	Local_1725[4 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[4 /*20*/].f_16), "police man 4", 16);
	Local_1725[5 /*20*/].f_6 = { 886.3158f, -2343.946f, 29.3304f };
	Local_1725[5 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[5 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[5 /*20*/].f_12 = 1;
	Local_1725[5 /*20*/].f_10 = 200;
	Local_1725[5 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[5 /*20*/].f_16), "police man 5", 16);
	Local_1725[6 /*20*/].f_6 = { 886.8484f, -2341.622f, 29.3343f };
	Local_1725[6 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[6 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[6 /*20*/].f_12 = 0;
	Local_1725[6 /*20*/].f_10 = 200;
	Local_1725[6 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[6 /*20*/].f_16), "police man 6", 16);
	Local_1725[7 /*20*/].f_6 = { 899.53f, -2346.007f, 29.5092f };
	Local_1725[7 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[7 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[7 /*20*/].f_12 = 1;
	Local_1725[7 /*20*/].f_10 = 200;
	Local_1725[7 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[7 /*20*/].f_16), "police man 7", 16);
	Local_1725[8 /*20*/].f_3 = { 962.9001f, -2379.581f, 40.1731f };
	Local_1725[8 /*20*/].f_9 = 85.5324f;
	Local_1725[8 /*20*/].f_6 = { 925.729f, -2375.898f, 40.1731f };
	Local_1725[8 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[8 /*20*/].f_15 = joaat("weapon_sniperrifle");
	Local_1725[8 /*20*/].f_12 = 1;
	Local_1725[8 /*20*/].f_10 = 120;
	Local_1725[8 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[8 /*20*/].f_16), "police man 8", 16);
	Local_1725[9 /*20*/].f_3 = { 944.7178f, -2401.494f, 40.1731f };
	Local_1725[9 /*20*/].f_9 = 75.9638f;
	Local_1725[9 /*20*/].f_6 = { 922.8425f, -2400.809f, 40.2425f };
	Local_1725[9 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[9 /*20*/].f_15 = joaat("weapon_sniperrifle");
	Local_1725[9 /*20*/].f_12 = 1;
	Local_1725[9 /*20*/].f_10 = 120;
	Local_1725[9 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[9 /*20*/].f_16), "police man 9", 16);
	Local_1725[10 /*20*/].f_6 = { 894.138f, -2346.749f, 29.4404f };
	Local_1725[10 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[10 /*20*/].f_15 = joaat("weapon_carbinerifle");
	Local_1725[10 /*20*/].f_12 = 1;
	Local_1725[10 /*20*/].f_10 = 200;
	Local_1725[10 /*20*/].f_11 = 2;
	StringCopy(&(Local_1725[10 /*20*/].f_16), "police man 10", 16);
	Local_1725[11 /*20*/].f_6 = { 886.7021f, -2345.017f, 29.3304f };
	Local_1725[11 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[11 /*20*/].f_15 = joaat("weapon_carbinerifle");
	Local_1725[11 /*20*/].f_12 = 1;
	Local_1725[11 /*20*/].f_10 = 200;
	Local_1725[11 /*20*/].f_11 = 2;
	StringCopy(&(Local_1725[11 /*20*/].f_16), "police man 11", 16);
	Local_1725[12 /*20*/].f_3 = { 845.1862f, -2253.644f, 29.2907f };
	Local_1725[12 /*20*/].f_9 = 177.1563f;
	Local_1725[12 /*20*/].f_6 = { 843.8444f, -2315.916f, 29.3346f };
	Local_1725[12 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[12 /*20*/].f_15 = joaat("weapon_smg");
	Local_1725[12 /*20*/].f_12 = 1;
	Local_1725[12 /*20*/].f_10 = 200;
	Local_1725[12 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[12 /*20*/].f_16), "police man 12", 16);
	Local_1725[13 /*20*/].f_3 = { 846.6603f, -2270.791f, 29.3452f };
	Local_1725[13 /*20*/].f_9 = 186.9243f;
	Local_1725[13 /*20*/].f_6 = { 857.6421f, -2312.731f, 29.3462f };
	Local_1725[13 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[13 /*20*/].f_15 = joaat("weapon_smg");
	Local_1725[13 /*20*/].f_12 = 1;
	Local_1725[13 /*20*/].f_10 = 200;
	Local_1725[13 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[13 /*20*/].f_16), "police man 13", 16);
	Local_1725[14 /*20*/].f_3 = { 949.6615f, -2374.866f, 29.8815f };
	Local_1725[14 /*20*/].f_9 = 115.1845f;
	Local_1725[14 /*20*/].f_6 = { 885.1977f, -2361.141f, 29.2205f };
	Local_1725[14 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[14 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[14 /*20*/].f_12 = 0;
	Local_1725[14 /*20*/].f_10 = 200;
	Local_1725[14 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[14 /*20*/].f_16), "police man 14", 16);
	Local_1725[15 /*20*/].f_3 = { 957.048f, -2366.364f, 29.5281f };
	Local_1725[15 /*20*/].f_9 = 135.4363f;
	Local_1725[15 /*20*/].f_6 = { 886.9384f, -2344.653f, 29.3308f };
	Local_1725[15 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[15 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[15 /*20*/].f_12 = 1;
	Local_1725[15 /*20*/].f_10 = 200;
	Local_1725[15 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[15 /*20*/].f_16), "police man 15", 16);
	Local_1725[16 /*20*/].f_3 = { 864.4395f, -2251.64f, 29.4899f };
	Local_1725[16 /*20*/].f_9 = 176.214f;
	Local_1725[16 /*20*/].f_6 = { 855.1099f, -2305.227f, 29.34599f };
	Local_1725[16 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[16 /*20*/].f_15 = joaat("weapon_smg");
	Local_1725[16 /*20*/].f_12 = 0;
	Local_1725[16 /*20*/].f_10 = 200;
	Local_1725[16 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[16 /*20*/].f_16), "police man 16", 16);
	Local_1725[17 /*20*/].f_3 = { 868.1833f, -2259.834f, 37.789f };
	Local_1725[17 /*20*/].f_9 = 171.4895f;
	Local_1725[17 /*20*/].f_6 = { 854.8495f, -2296.7f, 29.3433f };
	Local_1725[17 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[17 /*20*/].f_15 = joaat("weapon_smg");
	Local_1725[17 /*20*/].f_12 = 1;
	Local_1725[17 /*20*/].f_10 = 200;
	Local_1725[17 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[17 /*20*/].f_16), "police man 17", 16);
	Local_1725[18 /*20*/].f_3 = { 836.7518f, -2249.353f, 29.1574f };
	Local_1725[18 /*20*/].f_9 = 243.6401f;
	Local_1725[18 /*20*/].f_6 = { 845.2686f, -2304.28f, 29.33778f };
	Local_1725[18 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[18 /*20*/].f_15 = joaat("weapon_smg");
	Local_1725[18 /*20*/].f_12 = 0;
	Local_1725[18 /*20*/].f_10 = 200;
	Local_1725[18 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[18 /*20*/].f_16), "police man 18", 16);
	Local_1725[19 /*20*/].f_3 = { 866.9947f, -2251.456f, 29.5108f };
	Local_1725[19 /*20*/].f_9 = 93.528f;
	Local_1725[19 /*20*/].f_6 = { 861.5505f, -2324.327f, 29.3458f };
	Local_1725[19 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[19 /*20*/].f_15 = joaat("weapon_smg");
	Local_1725[19 /*20*/].f_12 = 1;
	Local_1725[19 /*20*/].f_10 = 200;
	Local_1725[19 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[19 /*20*/].f_16), "police man 19", 16);
	Local_1725[20 /*20*/].f_3 = { 831.0994f, -2250.994f, 29.0958f };
	Local_1725[20 /*20*/].f_9 = 266.1835f;
	Local_1725[20 /*20*/].f_6 = { 847.2873f, -2287.962f, 29.33541f };
	Local_1725[20 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[20 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[20 /*20*/].f_12 = 0;
	Local_1725[20 /*20*/].f_10 = 200;
	Local_1725[20 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[20 /*20*/].f_16), "police man 20", 16);
	Local_1725[20 /*20*/].f_14 = 1;
	Local_1725[21 /*20*/].f_6 = { 862.5962f, -2283.88f, 37.7922f };
	Local_1725[21 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[21 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[21 /*20*/].f_12 = 1;
	Local_1725[21 /*20*/].f_10 = 150;
	Local_1725[21 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[21 /*20*/].f_16), "police man 21", 16);
	Local_1725[22 /*20*/].f_6 = { 864.5548f, -2284.065f, 37.79219f };
	Local_1725[22 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[22 /*20*/].f_15 = joaat("weapon_smg");
	Local_1725[22 /*20*/].f_12 = 0;
	Local_1725[22 /*20*/].f_10 = 150;
	Local_1725[22 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[22 /*20*/].f_16), "police man 22", 16);
	Local_1725[23 /*20*/].f_6 = { 847.0486f, -2308.661f, 29.33128f };
	Local_1725[23 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[23 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[23 /*20*/].f_12 = 1;
	Local_1725[23 /*20*/].f_10 = 150;
	Local_1725[23 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[23 /*20*/].f_16), "police man 23", 16);
	Local_1725[24 /*20*/].f_6 = { 844.2418f, -2315.341f, 29.3346f };
	Local_1725[24 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[24 /*20*/].f_15 = joaat("weapon_smg");
	Local_1725[24 /*20*/].f_12 = 0;
	Local_1725[24 /*20*/].f_10 = 150;
	Local_1725[24 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[24 /*20*/].f_16), "police man 24", 16);
	Local_1725[25 /*20*/].f_6 = { 858.5804f, -2313.156f, 29.34623f };
	Local_1725[25 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[25 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[25 /*20*/].f_12 = 1;
	Local_1725[25 /*20*/].f_10 = 150;
	Local_1725[25 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[25 /*20*/].f_16), "police man 25", 16);
	Local_1725[26 /*20*/].f_6 = { 852.4091f, -2315.251f, 29.34282f };
	Local_1725[26 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[26 /*20*/].f_15 = joaat("weapon_smg");
	Local_1725[26 /*20*/].f_12 = 0;
	Local_1725[26 /*20*/].f_10 = 150;
	Local_1725[26 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[26 /*20*/].f_16), "police man 26", 16);
	Local_1725[26 /*20*/].f_14 = 1;
	Local_1725[27 /*20*/].f_6 = { 884.3048f, -2361.239f, 29.2162f };
	Local_1725[27 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[27 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[27 /*20*/].f_12 = 1;
	Local_1725[27 /*20*/].f_10 = 200;
	Local_1725[27 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[27 /*20*/].f_16), "police man 27", 16);
	Local_1725[28 /*20*/].f_6 = { 890.2f, -2347.5f, 29.3346f };
	Local_1725[28 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[28 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[28 /*20*/].f_12 = 1;
	Local_1725[28 /*20*/].f_10 = 200;
	Local_1725[28 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[28 /*20*/].f_16), "police man 28", 16);
	Local_1725[29 /*20*/].f_3 = { 957.1928f, -2366.227f, 29.5267f };
	Local_1725[29 /*20*/].f_9 = 75.0198f;
	Local_1725[29 /*20*/].f_6 = { 896.0663f, -2355.383f, 29.4741f };
	Local_1725[29 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[29 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[29 /*20*/].f_12 = 1;
	Local_1725[29 /*20*/].f_10 = 200;
	Local_1725[29 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[29 /*20*/].f_16), "police man 29", 16);
	Local_1725[30 /*20*/].f_3 = { 950.1217f, -2375.131f, 29.8892f };
	Local_1725[30 /*20*/].f_9 = 38.0107f;
	Local_1725[30 /*20*/].f_6 = { 888.488f, -2358.472f, 29.2735f };
	Local_1725[30 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[30 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[30 /*20*/].f_12 = 1;
	Local_1725[30 /*20*/].f_10 = 200;
	Local_1725[30 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[30 /*20*/].f_16), "police man 30", 16);
	Local_1725[31 /*20*/].f_3 = { 969.2328f, -2382.315f, 40.2425f };
	Local_1725[31 /*20*/].f_9 = 104.0753f;
	Local_1725[31 /*20*/].f_6 = { 923.9522f, -2394.885f, 47.057f };
	Local_1725[31 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_1725[31 /*20*/].f_15 = joaat("weapon_sniperrifle");
	Local_1725[31 /*20*/].f_12 = 1;
	Local_1725[31 /*20*/].f_10 = 200;
	Local_1725[31 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[31 /*20*/].f_16), "police man 31", 16);
	Local_1725[32 /*20*/].f_6 = { 858.5545f, -2312.776f, 29.3462f };
	Local_1725[32 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[32 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[32 /*20*/].f_12 = 1;
	Local_1725[32 /*20*/].f_10 = 200;
	Local_1725[32 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[32 /*20*/].f_16), "police man 32", 16);
	Local_1725[33 /*20*/].f_6 = { 848.8008f, -2302.244f, 29.3291f };
	Local_1725[33 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[33 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[33 /*20*/].f_12 = 1;
	Local_1725[33 /*20*/].f_10 = 200;
	Local_1725[33 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[33 /*20*/].f_16), "police man 33", 16);
	Local_1725[34 /*20*/].f_3 = { 847.2f, -2270.3f, 29.5123f };
	Local_1725[34 /*20*/].f_9 = 250.8976f;
	Local_1725[34 /*20*/].f_6 = { 844.4641f, -2315.198f, 29.3346f };
	Local_1725[34 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[34 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[34 /*20*/].f_12 = 1;
	Local_1725[34 /*20*/].f_10 = 200;
	Local_1725[34 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[34 /*20*/].f_16), "police man 34", 16);
	Local_1725[35 /*20*/].f_3 = { 856.1734f, -2266.66f, 35.1378f };
	Local_1725[35 /*20*/].f_9 = 178.9939f;
	Local_1725[35 /*20*/].f_6 = { 855.016f, -2297.272f, 29.3439f };
	Local_1725[35 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_1725[35 /*20*/].f_15 = joaat("weapon_pistol");
	Local_1725[35 /*20*/].f_12 = 1;
	Local_1725[35 /*20*/].f_10 = 200;
	Local_1725[35 /*20*/].f_11 = 5;
	StringCopy(&(Local_1725[35 /*20*/].f_16), "police man 35", 16);
	Local_1222[0 /*15*/].f_3 = { 866.4801f, -2240.585f, 29.4915f };
	Local_1222[0 /*15*/].f_6 = 264.0104f;
	Local_1222[0 /*15*/].f_1 = joaat("police3");
	Local_1222[0 /*15*/].f_13 = 11;
	Local_1222[1 /*15*/].f_3 = { 850.8638f, -2238.832f, 29.5151f };
	Local_1222[1 /*15*/].f_6 = 264.1243f;
	Local_1222[1 /*15*/].f_1 = joaat("police3");
	Local_1222[1 /*15*/].f_13 = 12;
	Local_1222[2 /*15*/].f_3 = { 1035.116f, -2417.376f, 28.2291f };
	Local_1222[2 /*15*/].f_6 = 173.4809f;
	Local_1222[2 /*15*/].f_1 = joaat("police3");
	Local_1222[2 /*15*/].f_13 = 13;
	Local_1222[3 /*15*/].f_3 = { 1036.79f, -2402.294f, 28.8534f };
	Local_1222[3 /*15*/].f_6 = 173.5939f;
	Local_1222[3 /*15*/].f_1 = joaat("police3");
	Local_1222[3 /*15*/].f_13 = 14;
	Local_1222[4 /*15*/].f_3 = { 1041.892f, -2349.553f, 29.5271f };
	Local_1222[4 /*15*/].f_6 = 173.2809f;
	Local_1222[4 /*15*/].f_1 = joaat("police3");
	Local_1222[4 /*15*/].f_13 = 6;
	Local_1222[5 /*15*/].f_3 = { 810.7969f, -2240.977f, 29.4969f };
	Local_1222[5 /*15*/].f_6 = -98.9281f;
	Local_1222[5 /*15*/].f_1 = joaat("police3");
	Local_1222[5 /*15*/].f_13 = 2;
	Local_1222[6 /*15*/].f_3 = { 1035.108f, -2404.438f, 28.7375f };
	Local_1222[6 /*15*/].f_6 = 172.0542f;
	Local_1222[6 /*15*/].f_1 = joaat("police3");
	Local_1222[6 /*15*/].f_13 = 3;
	Local_1222[7 /*15*/].f_3 = { 1041.892f, -2349.553f, 29.5271f };
	Local_1222[7 /*15*/].f_6 = 173.2809f;
	Local_1222[7 /*15*/].f_1 = joaat("police3");
	Local_1222[7 /*15*/].f_13 = 6;
	Local_1222[8 /*15*/].f_3 = { 1035.638f, -2392.111f, 29.1724f };
	Local_1222[8 /*15*/].f_6 = 173.2055f;
	Local_1222[8 /*15*/].f_1 = joaat("police3");
	Local_1222[8 /*15*/].f_13 = 5;
	Local_1222[9 /*15*/].f_3 = { 884.7551f, -2082.003f, 29.5991f };
	Local_1222[9 /*15*/].f_6 = 260.9446f;
	Local_1222[9 /*15*/].f_1 = joaat("police3");
	Local_1222[9 /*15*/].f_13 = 4;
	Local_1222[10 /*15*/].f_3 = { 899.9318f, -2076.039f, 29.7546f };
	Local_1222[10 /*15*/].f_6 = 261.255f;
	Local_1222[10 /*15*/].f_1 = joaat("police3");
	Local_1222[10 /*15*/].f_13 = 7;
	Local_1222[11 /*15*/].f_3 = { 760.2631f, -2410.385f, 19.4231f };
	Local_1222[11 /*15*/].f_6 = 178.6288f;
	Local_1222[11 /*15*/].f_1 = joaat("police3");
	Local_1222[11 /*15*/].f_13 = 10;
	Local_1222[12 /*15*/].f_3 = { 899.9318f, -2076.039f, 29.7546f };
	Local_1222[12 /*15*/].f_6 = 261.255f;
	Local_1222[12 /*15*/].f_1 = joaat("police3");
	Local_1222[12 /*15*/].f_13 = 8;
	Local_1222[13 /*15*/].f_3 = { 875.1038f, -2074.469f, 29.482f };
	Local_1222[13 /*15*/].f_6 = 261.4077f;
	Local_1222[13 /*15*/].f_1 = joaat("police3");
	Local_1222[13 /*15*/].f_13 = 9;
	Local_2648[0 /*20*/].f_3 = { 949.6615f, -2374.866f, 29.8815f };
	Local_2648[0 /*20*/].f_9 = 115.1845f;
	Local_2648[0 /*20*/].f_6 = { 885.1977f, -2361.141f, 29.2205f };
	Local_2648[0 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_2648[0 /*20*/].f_15 = joaat("weapon_pistol");
	Local_2648[0 /*20*/].f_12 = 1;
	Local_2648[0 /*20*/].f_10 = 200;
	Local_2648[0 /*20*/].f_11 = 5;
	StringCopy(&(Local_2648[0 /*20*/].f_16), "backup_front 0", 16);
	Local_2648[1 /*20*/].f_3 = { 957.048f, -2366.364f, 29.5281f };
	Local_2648[1 /*20*/].f_9 = 135.4363f;
	Local_2648[1 /*20*/].f_6 = { 892.1824f, -2361.958f, 29.3794f };
	Local_2648[1 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_2648[1 /*20*/].f_15 = joaat("weapon_pistol");
	Local_2648[1 /*20*/].f_12 = 1;
	Local_2648[1 /*20*/].f_10 = 200;
	Local_2648[1 /*20*/].f_11 = 5;
	StringCopy(&(Local_2648[1 /*20*/].f_16), "backup_front 1", 16);
	Local_2648[2 /*20*/].f_3 = { 904.8995f, -2267.178f, 29.5456f };
	Local_2648[2 /*20*/].f_9 = 210.877f;
	Local_2648[2 /*20*/].f_6 = { 898.52f, -2356.461f, 29.4943f };
	Local_2648[2 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_2648[2 /*20*/].f_15 = joaat("weapon_pistol");
	Local_2648[2 /*20*/].f_12 = 1;
	Local_2648[2 /*20*/].f_10 = 200;
	Local_2648[2 /*20*/].f_11 = 5;
	StringCopy(&(Local_2648[2 /*20*/].f_16), "backup_front 2", 16);
	Local_2709[0 /*20*/].f_3 = { 845.1862f, -2253.644f, 29.2907f };
	Local_2709[0 /*20*/].f_9 = 177.1563f;
	Local_2709[0 /*20*/].f_6 = { 843.8444f, -2315.916f, 29.3346f };
	Local_2709[0 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_2709[0 /*20*/].f_15 = joaat("weapon_pistol");
	Local_2709[0 /*20*/].f_12 = 1;
	Local_2709[0 /*20*/].f_10 = 200;
	Local_2709[0 /*20*/].f_11 = 5;
	StringCopy(&(Local_2709[0 /*20*/].f_16), "backup_alley 0", 16);
	Local_2709[1 /*20*/].f_3 = { 834.8723f, -2250.627f, 29.1487f };
	Local_2709[1 /*20*/].f_9 = 263.29f;
	Local_2709[1 /*20*/].f_6 = { 857.6421f, -2312.731f, 29.3462f };
	Local_2709[1 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_2709[1 /*20*/].f_15 = joaat("weapon_pistol");
	Local_2709[1 /*20*/].f_12 = 1;
	Local_2709[1 /*20*/].f_10 = 200;
	Local_2709[1 /*20*/].f_11 = 5;
	StringCopy(&(Local_2709[1 /*20*/].f_16), "backup_alley 1", 16);
	Local_2709[2 /*20*/].f_3 = { 864.4395f, -2251.64f, 29.4899f };
	Local_2709[2 /*20*/].f_9 = 176.214f;
	Local_2709[2 /*20*/].f_6 = { 855.1099f, -2305.227f, 29.34599f };
	Local_2709[2 /*20*/].f_1 = joaat("s_m_y_cop_01");
	Local_2709[2 /*20*/].f_15 = joaat("weapon_pistol");
	Local_2709[2 /*20*/].f_12 = 1;
	Local_2709[2 /*20*/].f_10 = 200;
	Local_2709[2 /*20*/].f_11 = 5;
	StringCopy(&(Local_2709[2 /*20*/].f_16), "backup_alley 2", 16);
	Local_1433[0 /*15*/].f_3 = { 775.1086f, -2442.444f, 38.1976f };
	Local_1433[0 /*15*/].f_6 = -102.3257f;
	Local_1433[0 /*15*/].f_1 = joaat("polmav");
	Local_1433[0 /*15*/].f_13 = 15;
	Local_1433[1 /*15*/].f_3 = { 794.2238f, -2356.914f, 40.3881f };
	Local_1433[1 /*15*/].f_6 = -6.2599f;
	Local_1433[1 /*15*/].f_1 = joaat("polmav");
	Local_1433[1 /*15*/].f_13 = 16;
	Local_2527[0 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_2527[0 /*20*/].f_10 = 200;
	Local_2527[0 /*20*/].f_15 = joaat("weapon_unarmed");
	Local_2527[0 /*20*/].f_12 = 1;
	Local_2527[1 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_2527[1 /*20*/].f_10 = 200;
	Local_2527[1 /*20*/].f_15 = joaat("weapon_unarmed");
	Local_2527[1 /*20*/].f_12 = 1;
	Local_2446[0 /*20*/].f_6 = { 888.0029f, -2362.344f, 29.2334f };
	Local_2446[0 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_2446[0 /*20*/].f_15 = joaat("weapon_pistol");
	Local_2446[0 /*20*/].f_12 = 1;
	Local_2446[0 /*20*/].f_10 = 200;
	Local_2446[0 /*20*/].f_11 = 5;
	StringCopy(&(Local_2446[0 /*20*/].f_16), "absail 0", 16);
	Local_2446[1 /*20*/].f_6 = { 893.09f, -2346.84f, 29.4129f };
	Local_2446[1 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_2446[1 /*20*/].f_15 = joaat("weapon_pistol");
	Local_2446[1 /*20*/].f_12 = 0;
	Local_2446[1 /*20*/].f_10 = 200;
	Local_2446[1 /*20*/].f_11 = 5;
	StringCopy(&(Local_2446[1 /*20*/].f_16), "absail 1", 16);
	Local_2446[2 /*20*/].f_6 = { 893.09f, -2346.84f, 29.4129f };
	Local_2446[2 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_2446[2 /*20*/].f_15 = joaat("weapon_pistol");
	Local_2446[2 /*20*/].f_12 = 1;
	Local_2446[2 /*20*/].f_10 = 200;
	Local_2446[2 /*20*/].f_11 = 5;
	StringCopy(&(Local_2446[2 /*20*/].f_16), "absail 2", 16);
	Local_2446[3 /*20*/].f_6 = { 893.09f, -2346.84f, 29.4129f };
	Local_2446[3 /*20*/].f_1 = joaat("s_m_y_swat_01");
	Local_2446[3 /*20*/].f_15 = joaat("weapon_pistol");
	Local_2446[3 /*20*/].f_12 = 0;
	Local_2446[3 /*20*/].f_10 = 200;
	Local_2446[3 /*20*/].f_11 = 5;
	StringCopy(&(Local_2446[3 /*20*/].f_16), "absail 3", 16);
	Local_1630.f_3 = { 1109.891f, -1243.898f, 19.5119f };
	Local_1630.f_6 = 64.3406f;
	Local_1630.f_1 = joaat("fugitive");
	vLocal_3436[0 /*3*/] = { 1201.412f, -1412.478f, 34.2269f };
	vLocal_3436[1 /*3*/] = { 1489.859f, -1484.127f, 66.8696f };
	Local_2568.f_3 = { -2595f, 1930.16f, 166.2958f };
	Local_2568.f_9 = 94.5464f;
	Local_2568.f_1 = func_323(29);
	vLocal_3005.z = joaat("prop_phone_ing");
	Local_1464.f_3 = { -2592.689f, 1930.749f, 166.2953f };
	Local_1464.f_6 = 95.2679f;
	Local_1464.f_1 = func_542(29, 0);
	Local_1464.f_13 = 20;
	Local_2770[0 /*20*/].f_3 = { -2558.413f, 1914.546f, 167.8589f };
	Local_2770[0 /*20*/].f_9 = 228.9937f;
	Local_2770[0 /*20*/].f_1 = joaat("s_m_y_devinsec_01");
	Local_2770[0 /*20*/].f_10 = 200;
	Local_2770[0 /*20*/].f_15 = joaat("weapon_combatpistol");
	StringCopy(&(Local_2770[0 /*20*/].f_16), "security  0", 16);
	Local_2770[1 /*20*/].f_3 = { -2559.465f, 1912.711f, 167.8373f };
	Local_2770[1 /*20*/].f_9 = 245.3184f;
	Local_2770[1 /*20*/].f_1 = joaat("s_m_y_devinsec_01");
	Local_2770[1 /*20*/].f_10 = 200;
	Local_2770[1 /*20*/].f_15 = joaat("weapon_combatpistol");
	StringCopy(&(Local_2770[1 /*20*/].f_16), "security  1", 16);
	iLocal_3305 = 0;
	iLocal_3306 = 0;
	Local_2812[0 /*5*/].f_1 = { -1.2f, 4.2f, -0.7f };
	Local_2812[1 /*5*/].f_1 = { -0.4f, 4.2f, -0.7f };
	Local_2812[2 /*5*/].f_1 = { 0.4f, 4.2f, -0.7f };
	Local_2812[3 /*5*/].f_1 = { 1.2f, 4.2f, -0.7f };
	Local_2812[4 /*5*/].f_1 = { 1.2f, 4.2f, -0.7f };
	Local_2812[5 /*5*/].f_1 = { 1.2f, 2.9f, -0.7f };
	Local_2812[6 /*5*/].f_1 = { 1.2f, 1.6f, -0.7f };
	Local_2812[7 /*5*/].f_1 = { 1.2f, 0.3f, -0.7f };
	Local_2812[8 /*5*/].f_1 = { 1.2f, -1f, -0.7f };
	Local_2812[9 /*5*/].f_1 = { 1.2f, -2.3f, -0.7f };
	Local_2812[10 /*5*/].f_1 = { 1.2f, -3.6f, -0.7f };
	Local_2812[11 /*5*/].f_1 = { 1.2f, -4.9f, -0.7f };
	Local_2812[12 /*5*/].f_1 = { -1.2f, -5.1f, -0.7f };
	Local_2812[13 /*5*/].f_1 = { -0.4f, -5.1f, -0.7f };
	Local_2812[14 /*5*/].f_1 = { 0.4f, -5.1f, -0.7f };
	Local_2812[15 /*5*/].f_1 = { 1.2f, -5.1f, -0.7f };
	Local_2812[16 /*5*/].f_1 = { -1.3f, -4.9f, -0.7f };
	Local_2812[17 /*5*/].f_1 = { -1.3f, -3.6f, -0.7f };
	Local_2812[18 /*5*/].f_1 = { -1.3f, -2.3f, -0.7f };
	Local_2812[19 /*5*/].f_1 = { -1.3f, -1f, -0.7f };
	Local_2812[20 /*5*/].f_1 = { -1.3f, 0.3f, -0.7f };
	Local_2812[21 /*5*/].f_1 = { -1.3f, 1.6f, -0.7f };
	Local_2812[22 /*5*/].f_1 = { -1.3f, 2.9f, -0.7f };
	Local_2812[23 /*5*/].f_1 = { -1.3f, 4.2f, -0.7f };
	iVar0 = 0;
	while (iVar0 <= (Local_2446 - 1))
	{
		iLocal_1172[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2446 - 1))
	{
		Local_2446[iVar0 /*20*/].f_14 = 0;
		iLocal_1172[iVar0] = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2812 - 1))
	{
		Local_2812[iVar0 /*5*/].f_4 = 0;
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (iLocal_3368 - 1))
	{
		iLocal_3368[iVar0] = 0;
		iVar0++;
	}
	Local_1685.f_14 = 0;
	Local_1705.f_14 = 0;
	func_541();
}

void func_541()//Position - 0x6E172
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < iLocal_3261)
	{
		iLocal_3261[iVar0] = 0;
		iVar0++;
	}
}

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

void func_543(int iParam0, var uParam1, int iParam2)//Position - 0x6E1DC
{
	int iVar0;
	struct<98> Var1;
	
	Var1.f_11 = 12;
	Var1.f_31 = 49;
	Var1.f_81 = 2;
	Var1.f_88 = 1;
	Var1.f_84 = 255;
	Var1.f_85 = 255;
	Var1.f_86 = 255;
	Var1.f_3 = 1000;
	Var1.f_1 = 0;
	switch (iParam0)
	{
		case 14:
			if (iParam2 == 1)
			{
				iVar0 = joaat("issi2");
			}
			else if (iParam2 == 2)
			{
				iVar0 = joaat("tribike");
			}
			else
			{
				iVar0 = joaat("tribike");
			}
			switch (iVar0)
			{
				case joaat("issi2"):
					Var1 = iVar0;
					Var1.f_2 = 0f;
					Var1.f_5 = 88;
					Var1.f_6 = 7;
					Var1.f_9 = 0;
					StringCopy(&(Var1.f_27), "P3RSEUS", 16);
					break;
				
				case joaat("tribike"):
					Var1 = iVar0;
					Var1.f_2 = 0f;
					Var1.f_4 = 0;
					Var1.f_9 = 1;
					break;
			}
			break;
		
		case 15:
			if (iParam2 == 1)
			{
				iVar0 = joaat("issi2");
			}
			else if (iParam2 == 2)
			{
				iVar0 = joaat("sanchez");
			}
			else
			{
				iVar0 = joaat("issi2");
			}
			switch (iVar0)
			{
				case joaat("issi2"):
					Var1 = iVar0;
					Var1.f_2 = 0f;
					Var1.f_5 = 88;
					Var1.f_6 = 7;
					Var1.f_9 = 0;
					StringCopy(&(Var1.f_27), "P3RSEUS", 16);
					break;
				
				case joaat("sanchez"):
					Var1 = iVar0;
					Var1.f_2 = 0f;
					Var1.f_4 = 0;
					Var1.f_9 = 1;
					break;
			}
			break;
		
		case 17:
			if (iParam2 == 1)
			{
				iVar0 = joaat("sentinel2");
			}
			else if (iParam2 == 2)
			{
				iVar0 = joaat("faggio2");
			}
			else
			{
				iVar0 = joaat("sentinel2");
			}
			switch (iVar0)
			{
				case joaat("sentinel2"):
					Var1 = iVar0;
					Var1.f_5 = 28;
					Var1.f_6 = 28;
					Var1.f_9 = 0;
					StringCopy(&(Var1.f_27), "KRYST4L", 16);
					break;
				
				case joaat("faggio2"):
					Var1 = iVar0;
					Var1.f_2 = 0f;
					Var1.f_4 = 0;
					Var1.f_9 = 1;
					break;
			}
			break;
		
		case 19:
			if (iParam2 == 1)
			{
				iVar0 = joaat("speedo");
			}
			else if (iParam2 == 3)
			{
				iVar0 = joaat("emperor");
			}
			else
			{
				iVar0 = joaat("speedo");
			}
			switch (iVar0)
			{
				case joaat("speedo"):
					Var1 = iVar0;
					Var1.f_4 = 5;
					Var1.f_2 = 10f;
					Var1.f_9 = 1;
					StringCopy(&(Var1.f_27), "LAMAR G", 16);
					break;
				
				case joaat("emperor"):
					Var1 = iVar0;
					Var1.f_2 = 8f;
					Var1.f_5 = 62;
					Var1.f_6 = 21;
					Var1.f_7 = 0;
					Var1.f_8 = 156;
					Var1.f_10 = 1;
					StringCopy(&(Var1.f_27), "07KZF345", 16);
					break;
			}
			break;
		
		case 29:
			Var1 = joaat("adder");
			Var1.f_5 = 62;
			Var1.f_6 = 4;
			Var1.f_7 = 68;
			Var1.f_8 = 156;
			Var1.f_10 = 1;
			Var1.f_9 = 0;
			StringCopy(&(Var1.f_27), "N4M4ST3", 16);
			break;
		
		case 30:
			Var1 = joaat("oracle2");
			Var1.f_9 = 1;
			Var1.f_4 = 7;
			StringCopy(&(Var1.f_27), "81TDS937", 16);
			break;
		
		case 18:
		case 20:
		case 21:
		case 23:
		case 24:
		case 25:
		case 26:
		case 27:
		case 28:
		case 31:
		case 32:
		case 49:
		case 50:
		case 51:
		case 52:
		case 53:
		case 54:
		case 55:
		case 56:
		case 57:
		case 58:
		case 59:
		case 60:
		case 61:
		case 62:
		case 63:
		case 64:
		case 39:
		case 40:
		case 46:
		case 47:
		case 65:
			if (iParam2 == 1)
			{
				iVar0 = joaat("asterope");
			}
			else if (iParam2 == 2)
			{
				iVar0 = joaat("sanchez");
			}
			else
			{
				iVar0 = joaat("asterope");
			}
			switch (iVar0)
			{
				case joaat("asterope"):
					Var1 = iVar0;
					Var1.f_2 = 0f;
					Var1.f_4 = 0;
					Var1.f_9 = 1;
					break;
				
				case joaat("sanchez"):
					Var1 = iVar0;
					Var1.f_2 = 0f;
					Var1.f_4 = 0;
					Var1.f_9 = 1;
					break;
			}
			break;
		
		default:
			break;
	}
	*uParam1 = { Var1 };
}

void func_544(int iParam0, int iParam1, int iParam2)//Position - 0x6E5D7
{
	if (iParam1 != 4)
	{
		iParam0->f_18[iParam1] = iParam2;
	}
}

void func_545()//Position - 0x6E5EF
{
	func_2();
}

void func_546()//Position - 0x6E5FB
{
	switch (iLocal_3372)
	{
		case 0:
			if (vehicle::is_vehicle_driveable(Local_1630, 0))
			{
				if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1630))
				{
					iLocal_3226 = gameplay::get_game_timer();
					iLocal_3372++;
				}
			}
			else
			{
				iLocal_3372++;
			}
			break;
		
		case 1:
			if (func_272(&iLocal_3226, 20022))
			{
				func_547();
			}
			break;
	}
}

void func_547()//Position - 0x6E661
{
	func_564(0, 0);
	func_550(8, 0);
	player::clear_player_wanted_level(player::player_id());
	weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), false);
	func_548(25, 0);
	if ((iLocal_3830 && iLocal_3831) && iLocal_3832)
	{
	}
	func_954();
}

void func_548(int iParam0, int iParam1)//Position - 0x6E6AE
{
	if (iParam0 == -1)
	{
		return;
	}
	if (iParam1)
	{
		if (!func_396(iParam0, 0))
		{
			func_549(iParam0, 1, 0);
			func_549(iParam0, 2, 0);
			func_549(iParam0, 3, 0);
			func_549(iParam0, 4, 0);
			func_549(iParam0, 0, 1);
			Global_68319[iParam0] = 1;
		}
	}
	else
	{
		func_549(iParam0, 0, 0);
	}
}

void func_549(int iParam0, int iParam1, int iParam2)//Position - 0x6E70B
{
	if (iParam0 == -1)
	{
		return;
	}
	if (iParam2)
	{
		gameplay::set_bit(&(Global_101154.f_18807[iParam0]), iParam1);
	}
	else
	{
		gameplay::clear_bit(&(Global_101154.f_18807[iParam0]), iParam1);
	}
}

int func_550(int iParam0, int iParam1)//Position - 0x6E746
{
	if (gameplay::is_bit_set(Global_91278.f_20, 17))
	{
		return 0;
	}
	return func_551(iParam0, iParam1);
}

int func_551(int iParam0, int iParam1)//Position - 0x6E769
{
	if (iParam0 >= 70)
	{
		return 0;
	}
	return func_552(iParam0, iParam1);
}

bool func_552(int iParam0, int iParam1)//Position - 0x6E784
{
	if (func_22(14) && !func_563(iParam0))
	{
		return false;
	}
	if (player::has_achievement_been_passed(iParam0) && iParam1 == 1)
	{
		return false;
	}
	if (Global_25366 != 0 && !Global_69489)
	{
		return false;
	}
	if (func_562(&Global_2563627))
	{
		if (func_560(&Global_2563627, iParam0))
		{
			return false;
		}
		if (func_553(&Global_2563627, iParam0))
		{
			return true;
		}
	}
	else
	{
		if (!player::give_achievement_to_player(iParam0))
		{
			return false;
		}
		if (player::has_achievement_been_passed(iParam0))
		{
			return true;
		}
		return false;
	}
	return false;
}

bool func_553(var uParam0, int iParam1)//Position - 0x6E821
{
	int iVar0;
	var uVar1[70];
	
	if (player::has_achievement_been_passed(iParam1))
	{
		return false;
	}
	if (func_22(14) && !func_563(iParam1))
	{
		return false;
	}
	if (func_560(uParam0, iParam1))
	{
		return false;
	}
	if (func_559(uParam0) < 0f)
	{
		func_558(uParam0, 0);
	}
	func_556(&uVar1);
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < (*uParam0 - 1))
	{
		uVar1[iVar0 + 1] = (*uParam0)[iVar0];
		iVar0++;
	}
	func_554(&uVar1, iParam1);
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < *uParam0)
	{
		(*uParam0)[iVar0] = uVar1[iVar0];
		iVar0++;
	}
	return true;
}

bool func_554(var uParam0, int iParam1)//Position - 0x6E8D2
{
	int iVar0;
	
	if (player::has_achievement_been_passed(iParam1))
	{
		return false;
	}
	if (func_22(14) && !func_563(iParam1))
	{
		return false;
	}
	if (func_560(uParam0, iParam1))
	{
		return false;
	}
	if (func_559(uParam0) < 0f)
	{
		func_558(uParam0, 0);
	}
	iVar0 = 0;
	while (iVar0 < *uParam0)
	{
		if (func_555(uParam0, iVar0))
		{
			(*uParam0)[iVar0] = iParam1;
			return true;
		}
		iVar0++;
	}
	return false;
}

int func_555(var uParam0, int iParam1)//Position - 0x6E94D
{
	return (*uParam0)[iParam1] == 70;
}

void func_556(var uParam0)//Position - 0x6E95E
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < *uParam0)
	{
		func_557(uParam0, iVar0);
		iVar0++;
	}
	func_558(uParam0, (Global_2563626 - 0.5f));
}

void func_557(var uParam0, int iParam1)//Position - 0x6E992
{
	(*uParam0)[iParam1] = 70;
}

void func_558(var uParam0, float fParam1)//Position - 0x6E9A2
{
	if (fParam1 == 0f)
	{
		uParam0->f_72 = 0f;
	}
	else
	{
		uParam0->f_72 = fParam1;
	}
}

var func_559(var uParam0)//Position - 0x6E9BF
{
	return uParam0->f_72;
}

int func_560(var uParam0, int iParam1)//Position - 0x6E9CB
{
	return func_561(uParam0, iParam1) != -1;
}

int func_561(var uParam0, int iParam1)//Position - 0x6E9DD
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < *uParam0)
	{
		if ((*uParam0)[iVar0] == iParam1)
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

int func_562(var uParam0)//Position - 0x6EA0A
{
	return uParam0->f_71 == 1;
}

bool func_563(int iParam0)//Position - 0x6EA18
{
	switch (iParam0)
	{
		case 60:
		case 61:
		case 62:
		case 63:
		case 64:
		case 65:
		case 66:
		case 67:
		case 68:
		case 69:
			return true;
		
		default:
	}
	return false;
}

void func_564(int iParam0, int iParam1)//Position - 0x6EA68
{
	int iVar0;
	var uVar1;
	var uVar2;
	
	if (!Global_55751)
	{
		Global_55751 = iParam1;
	}
	if (iParam0)
	{
		if ((func_567(0) && Global_69735.f_1 == 1) && func_566(Global_69735))
		{
		}
		else
		{
			Global_55749 = 1;
		}
	}
	if (Global_101154.f_7775 || func_567(0))
	{
		iVar0 = func_565();
		uVar1 = Global_82363[iVar0 /*5*/];
		uVar2 = Global_69758.f_109[uVar1 /*4*/];
		if (iVar0 == -1)
		{
			if (Global_101154.f_7775)
			{
			}
			return;
		}
		if (gameplay::is_bit_set(Global_82363[iVar0 /*5*/].f_1, 4))
		{
			return;
		}
		if (gameplay::is_bit_set(Global_82363[iVar0 /*5*/].f_1, 5))
		{
			return;
		}
		gameplay::set_bit(&(Global_82363[iVar0 /*5*/].f_1), 4);
		gameplay::set_bit(&Global_69737, 1);
		Global_69753 = uVar2;
		Global_69754 = gameplay::get_game_timer();
	}
}

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

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

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

bool func_568()//Position - 0x6EBDC
{
	int iVar0;
	
	switch (iLocal_3256)
	{
		case 0:
			if (func_586())
			{
				unk1::_0x293220DA1B46CEBC(3f, 0f, 3);
				unk1::_0x48621C9FCA3EBD28(4);
				if (entity::is_entity_attached(vLocal_3005.x))
				{
					entity::detach_entity(vLocal_3005.x, 1, true);
				}
				cutscene::register_entity_for_cutscene(vLocal_3005.x, "davenortons_phone", 1, vLocal_3005.y, 0);
				cutscene::register_entity_for_cutscene(Local_2568, "devin", 0, Local_2568.f_1, 0);
				cutscene::register_entity_for_cutscene(Local_1464, "devins_car", 0, Local_1464.f_1, 0);
				if (!ped::is_ped_injured(Local_2770[0 /*20*/]))
				{
					cutscene::register_entity_for_cutscene(Local_2770[0 /*20*/], "FIB_Security_Guy", 0, Local_2770[0 /*20*/].f_1, 0);
				}
				if (!ped::is_ped_injured(Local_2770[1 /*20*/]))
				{
					cutscene::register_entity_for_cutscene(Local_2770[1 /*20*/], "FIB_Security_Guy^1", 0, Local_2770[1 /*20*/].f_1, 0);
				}
				func_275(1, 1, 1, 0);
				cutscene::start_cutscene(0);
				iVar0 = 0;
				while (iVar0 <= (Local_2770 - 1))
				{
					iLocal_3402[iVar0] = 23;
					iVar0++;
				}
				iLocal_3256++;
			}
			break;
		
		case 1:
			if (cutscene::is_cutscene_playing())
			{
				ped::set_ped_using_action_mode(player::player_ped_id(), false, -1, 0);
				func_579(-2556.251f, 1908.599f, 167.581f, -2552.673f, 1915.53f, 171.481f, 9.1f, -2551.931f, 1912.036f, 168.0432f, 244.1441f, 15f, 15f, 15f, 1, 1, 1, 0, 0);
				func_571(-2551.931f, 1912.036f, 168.0432f, 244.1441f);
				gameplay::clear_area(-2551.931f, 1912.036f, 168.0432f, 10000f, 1, 0, 0, false);
				ped::clear_ped_prop(player::player_ped_id(), 0);
				iLocal_3256++;
			}
			break;
		
		case 2:
			if (cutscene::is_cutscene_active())
			{
				if (!cutscene::was_cutscene_skipped())
				{
					if (cutscene::can_set_exit_state_for_registered_entity("michael", func_93(0)))
					{
						ped::force_ped_motion_state(player::player_ped_id(), -668482597, false, 0, 0);
						player::simulate_player_input_gait(player::player_id(), 1f, 2000, 0, 1, 0);
						ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
					}
				}
				else
				{
					cutscene::set_cutscene_fade_values(0, 0, 1, 0);
					iLocal_3256 = 22;
				}
			}
			else
			{
				if (entity::does_entity_exist(Local_2568))
				{
					ped::delete_ped(&Local_2568);
				}
				iVar0 = 0;
				while (iVar0 <= (Local_2770 - 1))
				{
					if (entity::does_entity_exist(Local_2770[iVar0 /*20*/]))
					{
						ped::delete_ped(&(Local_2770[iVar0 /*20*/]));
					}
					iVar0++;
				}
				func_569(0, 0, 0, 0, 0, 3000, 1, 1);
				func_547();
			}
			break;
		
		case 22:
			if (cutscene::is_cutscene_active())
			{
				if (cutscene::can_set_exit_state_for_registered_entity("michael", func_93(0)))
				{
					ped::force_ped_motion_state(player::player_ped_id(), -668482597, false, 0, 0);
					player::simulate_player_input_gait(player::player_id(), 1f, 2000, 0, 1, 0);
					ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
				}
			}
			else
			{
				if (entity::does_entity_exist(Local_2568))
				{
					ped::delete_ped(&Local_2568);
				}
				iVar0 = 0;
				while (iVar0 <= (Local_2770 - 1))
				{
					if (entity::does_entity_exist(Local_2770[iVar0 /*20*/]))
					{
						ped::delete_ped(&(Local_2770[iVar0 /*20*/]));
					}
					iVar0++;
				}
				unk1::_0x81CBAE94390F9F89();
				func_438(1, 1, 0, 0, 1, 1);
				func_547();
			}
			break;
	}
	return false;
}

void func_569(int iParam0, int iParam1, int iParam2, float fParam3, float fParam4, int iParam5, int iParam6, int iParam7)//Position - 0x6EEDE
{
	func_570();
	func_275(0, 1, iParam7, 0);
	ui::clear_prints();
	ui::clear_help(1);
	func_440();
	audio::set_frontend_radio_active(1);
	ui::display_hud(true);
	ui::display_radar(true);
	cam::set_widescreen_borders(false, 500);
	if (player::is_player_playing(player::player_id()))
	{
		cam::destroy_all_cams(0);
		if (iParam1)
		{
			if (iParam2)
			{
				cam::render_script_cams(false, true, iParam5, 1, 0, 0);
				cam::set_gameplay_cam_relative_heading(fParam3);
				cam::set_gameplay_cam_relative_pitch(fParam4, 1065353216);
			}
			else
			{
				cam::render_script_cams(false, false, 3000, 1, 0, 0);
				cam::set_gameplay_cam_relative_heading(fParam3);
				cam::set_gameplay_cam_relative_pitch(fParam4, 1065353216);
			}
		}
		if (iParam0)
		{
			ai::clear_ped_tasks(player::player_ped_id());
		}
		player::enable_special_ability(player::player_id(), 1);
		weapon::hide_ped_weapon_for_scripted_cutscene(player::player_ped_id(), false);
		player::set_player_control(player::player_id(), true, 0);
	}
	if (iParam6)
	{
		func_439();
	}
	else
	{
		func_401();
	}
}

void func_570()//Position - 0x6EFA6
{
	Global_55755 = 0;
}

void func_571(vector3 vParam0, float fParam3)//Position - 0x6EFB2
{
	int iVar0;
	
	iVar0 = player::get_players_last_vehicle();
	if (entity::does_entity_exist(iVar0))
	{
		if (vehicle::is_vehicle_driveable(iVar0, 0))
		{
			func_572(iVar0, vParam0, fParam3, 24, 0);
		}
	}
}

void func_572(int iParam0, vector3 vParam1, float fParam4, int iParam5, int iParam6)//Position - 0x6EFE2
{
	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_68319.f_484[25]) && vehicle::is_vehicle_driveable(Global_68319.f_484[25], 0))
			{
				if (Global_68319.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_578(iParam5);
		Var0.f_9 = 49;
		Var0.f_59 = 2;
		func_295(iParam0, &Var0);
		if (func_360(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_69307 = gameplay::get_hash_key(script::get_this_script_name());
			}
		}
		func_575(iParam5, &Var0, vParam1, fParam4, func_307(iParam0));
		func_573(iParam5, iParam0, 0);
	}
}

void func_573(int iParam0, int iParam1, int iParam2)//Position - 0x6F10B
{
	int iVar0;
	
	if (iParam0 == -1)
	{
		return;
	}
	if (!func_395(&(Global_68319.f_555[0 /*21*/]), iParam0))
	{
		return;
	}
	if (!gameplay::is_bit_set(Global_68319.f_555[0 /*21*/].f_9, 12) && !gameplay::is_bit_set(Global_68319.f_555[0 /*21*/].f_9, 10))
	{
		if (Global_68319.f_555[0 /*21*/].f_4 != entity::get_entity_model(iParam1))
		{
			return;
		}
	}
	if (Global_69226 != -1 && Global_69226 != 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_101154.f_18807.f_4801 = func_371();
			}
			if (iParam1 != Global_68319.f_139[iParam0])
			{
				if (iParam0 == 24)
				{
					iVar0 = func_574(iParam0);
					if ((entity::does_entity_exist(iVar0) && vehicle::is_vehicle_driveable(iVar0, 0)) && iParam1 != iVar0)
					{
						func_294(iVar0, 145);
					}
				}
				Global_69225 = iParam1;
				Global_69226 = iParam0;
				Global_69227 = iParam2;
			}
		}
	}
}

int func_574(int iParam0)//Position - 0x6F228
{
	if (iParam0 == -1)
	{
		return 0;
	}
	return Global_68319.f_139[iParam0];
}

void func_575(int iParam0, var uParam1, vector3 vParam2, float fParam5, int iParam6)//Position - 0x6F244
{
	if (func_395(&(Global_68319.f_555[0 /*21*/]), iParam0))
	{
		if (gameplay::is_bit_set(Global_68319.f_555[0 /*21*/].f_9, 10))
		{
			func_577(iParam0);
			func_576(uParam1, &(Global_101154.f_18807.f_69[Global_68319.f_555[0 /*21*/].f_14 /*78*/]));
			if (gameplay::is_bit_set(Global_68319.f_555[0 /*21*/].f_9, 11))
			{
				Global_101154.f_18807.f_1864[Global_68319.f_555[0 /*21*/].f_14 /*3*/] = { vParam2 };
				Global_101154.f_18807.f_1934[Global_68319.f_555[0 /*21*/].f_14] = fParam5;
			}
			else
			{
				Global_101154.f_18807.f_1864[Global_68319.f_555[0 /*21*/].f_14 /*3*/] = { 0f, 0f, 0f };
				Global_101154.f_18807.f_1934[Global_68319.f_555[0 /*21*/].f_14] = -1f;
			}
			Global_101154.f_18807.f_1958[Global_68319.f_555[0 /*21*/].f_14] = iParam6 + 1;
			func_548(iParam0, 1);
		}
	}
}

void func_576(var uParam0, var uParam1)//Position - 0x6F343
{
	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_577(int iParam0)//Position - 0x6F40F
{
	if (iParam0 == -1)
	{
		return;
	}
	if (func_395(&(Global_68319.f_555[0 /*21*/]), iParam0))
	{
		if (entity::does_entity_exist(Global_68319.f_139[iParam0]))
		{
			entity::set_entity_as_mission_entity(Global_68319.f_139[iParam0], true, 1);
			entity::set_vehicle_as_no_longer_needed(&(Global_68319.f_139[iParam0]));
			Global_68319.f_139[iParam0] = 0;
		}
		if (gameplay::is_bit_set(Global_68319.f_555[0 /*21*/].f_9, 13))
		{
			func_548(iParam0, 0);
		}
	}
}

void func_578(int iParam0)//Position - 0x6F489
{
	if (iParam0 != 24 && iParam0 != 25)
	{
	}
	func_577(iParam0);
	func_548(iParam0, 0);
}

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

void func_580(vector3 vParam0, vector3 vParam3, float fParam6, vector3 vParam7, float fParam10, vector3 vParam11, int iParam14, int iParam15, int iParam16, int iParam17, int iParam18)//Position - 0x6F4DA
{
	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_585(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_582(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) != player::player_ped_id() && vehicle::get_ped_in_vehicle_seat(iVar0, -1) != 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_308(iVar0, func_960(), 1))
				{
					iVar1 = false;
				}
			}
			if (iVar1)
			{
				if (!func_581(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);
			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);
				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);
				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);
				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_581(vector3 vParam0)//Position - 0x6F8C1
{
	if ((vParam0.x == 0f && vParam0.y == 0f) && vParam0.y == 0f)
	{
		return true;
	}
	return false;
}

bool func_582(int iParam0, vector3 vParam1, vector3 vParam4, float fParam7)//Position - 0x6F8EB
{
	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_584(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_583(vVar18[0 /*3*/], vVar18[1 /*3*/], vVar6, vVar9) || func_583(vVar18[0 /*3*/], vVar18[1 /*3*/], vVar9, vVar15)) || func_583(vVar18[0 /*3*/], vVar18[1 /*3*/], vVar12, vVar15)) || func_583(vVar18[0 /*3*/], vVar18[1 /*3*/], vVar6, vVar12)) || func_583(vVar18[1 /*3*/], vVar18[3 /*3*/], vVar6, vVar9)) || func_583(vVar18[1 /*3*/], vVar18[3 /*3*/], vVar9, vVar15)) || func_583(vVar18[1 /*3*/], vVar18[3 /*3*/], vVar12, vVar15)) || func_583(vVar18[1 /*3*/], vVar18[3 /*3*/], vVar6, vVar12)) || func_583(vVar18[3 /*3*/], vVar18[2 /*3*/], vVar6, vVar9)) || func_583(vVar18[3 /*3*/], vVar18[2 /*3*/], vVar9, vVar15)) || func_583(vVar18[3 /*3*/], vVar18[2 /*3*/], vVar12, vVar15)) || func_583(vVar18[3 /*3*/], vVar18[2 /*3*/], vVar6, vVar12)) || func_583(vVar18[2 /*3*/], vVar18[0 /*3*/], vVar6, vVar9)) || func_583(vVar18[2 /*3*/], vVar18[0 /*3*/], vVar9, vVar15)) || func_583(vVar18[2 /*3*/], vVar18[0 /*3*/], vVar12, vVar15)) || func_583(vVar18[2 /*3*/], vVar18[0 /*3*/], vVar6, vVar12))
		{
			return true;
		}
	}
	return false;
}

bool func_583(struct<2> Param0, var uParam2, struct<2> Param3, var uParam5, struct<2> Param6, var uParam8, struct<2> Param9, var uParam11)//Position - 0x6FBE1
{
	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_584(vector3 vParam0)//Position - 0x6FC95
{
	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_585(int iParam0)//Position - 0x6FCD4
{
	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);
			}
		}
	}
}

int func_586()//Position - 0x6FD39
{
	int iVar0;
	
	iVar0 = cutscene::has_cutscene_loaded();
	if (!Global_69488)
	{
		if (!iVar0)
		{
			Global_69488 = 1;
		}
	}
	return iVar0;
}

void func_587()//Position - 0x6FD5C
{
	if (func_598())
	{
		iLocal_1126 = 12;
	}
	func_597();
	func_595();
	func_588();
}

void func_588()//Position - 0x6FD7C
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= (Local_2770 - 1))
	{
		if (!ped::is_ped_injured(Local_2770[iVar0 /*20*/]))
		{
			if (iLocal_3402[iVar0] != 22)
			{
				if (func_594(&(Local_2770[iVar0 /*20*/]), &(Local_2770[iVar0 /*20*/].f_10), Local_2770[iVar0 /*20*/].f_14) || ped::is_ped_ragdoll(Local_2770[iVar0 /*20*/]))
				{
					iLocal_3402[0] = 22;
					iLocal_3402[1] = 22;
					iLocal_3210 = 1;
				}
			}
			switch (iLocal_3402[iVar0])
			{
				case 0:
					ai::task_look_at_entity(Local_2770[iVar0 /*20*/], player::player_ped_id(), -1, 2048, 2);
					iLocal_3402[iVar0] = 1;
					break;
				
				case 1:
					if (!entity::is_entity_at_coord(Local_2770[iVar0 /*20*/], Local_2770[iVar0 /*20*/].f_3, 0.3f, 0.3f, 2f, false, true, 0))
					{
						if (func_593(Local_2770[iVar0 /*20*/], 713668775, -2, 1))
						{
							ai::task_look_at_entity(Local_2770[iVar0 /*20*/], player::player_ped_id(), -1, 2048, 2);
							ai::task_follow_nav_mesh_to_coord(Local_2770[iVar0 /*20*/], Local_2770[iVar0 /*20*/].f_3, 1f, -1, 0.2f, 512, Local_2770[iVar0 /*20*/].f_9);
						}
					}
					else if (func_593(Local_2770[iVar0 /*20*/], 713668775, -2, 1))
					{
						if (func_593(Local_2770[iVar0 /*20*/], 242628503, -2, 1))
						{
							switch (iVar0)
							{
								case 0:
									ai::open_sequence_task(&iLocal_3465);
									ai::task_play_anim(0, "mini@strip_club@idles@bouncer@idle_a", "idle_a", 8f, -8f, -1, 1, 0f, 0, 0, 0);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_2770[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
									break;
								
								case 1:
									ai::open_sequence_task(&iLocal_3465);
									ai::task_play_anim(0, "mini@strip_club@idles@bouncer@idle_c", "idle_c", 8f, -8f, -1, 1, 0f, 0, 0, 0);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_2770[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
									break;
								}
							}
					}
					break;
				
				case 22:
					ped::set_blocking_of_non_temporary_events(Local_2770[iVar0 /*20*/], false);
					ped::set_ped_sphere_defensive_area(Local_2770[iVar0 /*20*/], Local_2770[iVar0 /*20*/].f_6, 2f, 0, 0);
					ped::set_ped_combat_attributes(Local_2770[iVar0 /*20*/], 51, true);
					ped::set_ped_combat_attributes(Local_2770[iVar0 /*20*/], 50, true);
					ai::task_combat_hated_targets_around_ped(Local_2770[iVar0 /*20*/], 200f, 0);
					iLocal_3402[iVar0] = 23;
					break;
				
				case 23:
					break;
			}
		}
		else if (!Local_2770[iVar0 /*20*/].f_14)
		{
			streaming::request_model(Local_2770[iVar0 /*20*/].f_1);
			streaming::request_anim_dict("mini@strip_club@idles@bouncer@idle_a");
			streaming::request_anim_dict("mini@strip_club@idles@bouncer@idle_c");
			if ((streaming::has_model_loaded(Local_2770[iVar0 /*20*/].f_1) && streaming::has_anim_dict_loaded("mini@strip_club@idles@bouncer@idle_a")) && streaming::has_anim_dict_loaded("mini@strip_club@idles@bouncer@idle_c"))
			{
				func_590(&(Local_2770[iVar0 /*20*/]), 0);
				func_589(&(Local_2770[iVar0 /*20*/]), 1);
			}
		}
		iVar0++;
	}
}

void func_589(var uParam0, int iParam1)//Position - 0x70062
{
	ped::set_relationship_between_groups(1, iLocal_3835, 1862763509);
	ped::set_relationship_between_groups(1, 1862763509, iLocal_3835);
	ped::set_relationship_between_groups(1, iLocal_3836, -1533126372);
	ped::set_relationship_between_groups(1, -1533126372, iLocal_3836);
	ped::set_relationship_between_groups(5, 1862763509, iLocal_3836);
	ped::set_relationship_between_groups(5, iLocal_3835, iLocal_3836);
	ped::set_relationship_between_groups(5, iLocal_3836, 1862763509);
	ped::set_relationship_between_groups(5, iLocal_3836, iLocal_3835);
	if (entity::does_entity_exist(*uParam0))
	{
		if (!ped::is_ped_injured(*uParam0))
		{
			ped::set_ped_relationship_group_hash(*uParam0, iLocal_3836);
			ped::set_ped_combat_attributes(*uParam0, 9, false);
			ped::set_ped_combat_attributes(*uParam0, 1, false);
			ped::set_ped_combat_attributes(*uParam0, 3, true);
			ped::set_ped_combat_attributes(*uParam0, 29, true);
			ped::set_ped_target_loss_response(*uParam0, 1);
			entity::set_entity_is_target_priority(*uParam0, 1, 0);
			if (iParam1)
			{
				ped::set_blocking_of_non_temporary_events(*uParam0, true);
			}
			else
			{
				ped::set_blocking_of_non_temporary_events(*uParam0, false);
			}
		}
	}
}

void func_590(var uParam0, int iParam1)//Position - 0x7013C
{
	gameplay::clear_area(uParam0->f_3, 2f, 0, 0, 0, false);
	*uParam0 = ped::create_ped(6, uParam0->f_1, uParam0->f_3, uParam0->f_9, 1, true);
	ped::set_ped_random_component_variation(*uParam0, 0);
	ped::set_ped_dies_when_injured(*uParam0, true);
	ped::set_ped_as_enemy(*uParam0, 1);
	entity::set_entity_is_target_priority(*uParam0, 1, 0);
	ped::set_ped_keep_task(*uParam0, true);
	ped::set_ped_config_flag(*uParam0, 132, false);
	weapon::give_weapon_to_ped(*uParam0, uParam0->f_15, -1, true, true);
	ped::set_ped_accuracy(*uParam0, uParam0->f_11);
	entity::set_entity_health(*uParam0, uParam0->f_10);
	ped::set_ped_max_health(*uParam0, uParam0->f_10);
	if (uParam0->f_12)
	{
		entity::set_entity_only_damaged_by_player(*uParam0, true);
	}
	if (uParam0->f_13)
	{
		ped::add_armour_to_ped(*uParam0, 100);
	}
	uParam0->f_14 = 1;
	ped::set_ped_name_debug(*uParam0, &(uParam0->f_16));
	ped::set_ped_seeing_range(*uParam0, 250f);
	ped::set_ped_hearing_range(*uParam0, 250f);
	ped::set_ped_id_range(*uParam0, 250f);
	if (iParam1)
	{
		uParam0->f_2 = func_407(*uParam0, 1, 145);
		ui::set_blip_display(uParam0->f_2, 2);
	}
	ped::set_ped_can_evasive_dive(*uParam0, 1);
	ped::set_blocking_of_non_temporary_events(*uParam0, true);
	func_592(*uParam0, 0);
	func_591(*uParam0, 311);
}

void func_591(var uParam0, int iParam1)//Position - 0x7025E
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < 16)
	{
		if (Global_67997[iVar0 /*2*/] == 0)
		{
			Global_67997[iVar0 /*2*/] = uParam0;
			Global_67997[iVar0 /*2*/].f_1 = iParam1;
			if (iVar0 == Global_68030)
			{
				Global_68030++;
			}
			return;
		}
		iVar0++;
	}
}

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

bool func_593(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x7034F
{
	int iVar0;
	
	iVar0 = ai::get_script_task_status(iParam0, iParam1);
	if (iParam3)
	{
		if ((iVar0 == 7 || iVar0 == 2) || ai::get_sequence_progress(iParam0) == iParam2)
		{
			return true;
		}
	}
	else if (iVar0 == 7 || iVar0 == 2)
	{
		return true;
	}
	return false;
}

bool func_594(int iParam0, var uParam1, int iParam2)//Position - 0x703A3
{
	int iVar0;
	
	if (entity::does_entity_exist(*iParam0))
	{
		if (!ped::is_ped_injured(*iParam0))
		{
			iVar0 = entity::get_entity_health(*iParam0);
			if ((entity::has_entity_been_damaged_by_entity(*iParam0, player::player_ped_id(), 1) || iVar0 < *uParam1) || ped::is_ped_responding_to_event(*iParam0, 17))
			{
				return true;
			}
		}
		else
		{
			return true;
		}
	}
	else if (iParam2)
	{
		return true;
	}
	return false;
}

void func_595()//Position - 0x7040B
{
	if (entity::does_entity_exist(iLocal_3099[1]))
	{
		if (!ped::is_ped_injured(iLocal_3099[1]))
		{
			switch (iLocal_3260)
			{
				case 0:
					if (!func_596())
					{
						if (func_960() == 0)
						{
							ped::set_ped_keep_task(iLocal_3099[1], true);
							ai::open_sequence_task(&iLocal_3465);
							ai::task_clear_look_at(0);
							ai::task_smart_flee_ped(0, player::player_ped_id(), 300f, -1, 0, 0);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(iLocal_3099[1], iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
							iLocal_3260++;
						}
					}
					break;
				
				case 1:
					break;
				}
			}
	}
}

bool func_596()//Position - 0x704A3
{
	if (Global_15712 != 0 || audio::is_scripted_conversation_ongoing())
	{
		return true;
	}
	return false;
}

void func_597()//Position - 0x704C5
{
	if (!ped::is_ped_injured(Local_2568))
	{
		switch (iLocal_3253)
		{
			case 0:
				if (!entity::is_entity_at_coord(Local_2568, Local_2568.f_3, 1.5f, 1.5f, 2f, false, true, 0))
				{
					if (func_593(Local_2568, 242628503, -2, 1))
					{
						ped::set_blocking_of_non_temporary_events(Local_2568, true);
						ai::clear_ped_tasks(Local_2568);
						ai::open_sequence_task(&iLocal_3465);
						ai::task_follow_nav_mesh_to_coord(0, Local_2568.f_3, 1f, -1, 1048576000, 0, 1193033728);
						ai::task_turn_ped_to_face_entity(0, player::player_ped_id(), 0);
						ai::close_sequence_task(iLocal_3465);
						ai::task_perform_sequence(Local_2568, iLocal_3465);
						ai::close_sequence_task(iLocal_3465);
					}
				}
				break;
			
			case 2:
				break;
		}
	}
	else if (!Local_2568.f_14)
	{
		streaming::request_model(Local_2568.f_1);
		streaming::request_model(Local_1464.f_1);
		streaming::request_model(vLocal_3005.y);
		streaming::request_anim_dict("missfbi4");
		if (((streaming::has_model_loaded(Local_2568.f_1) && streaming::has_model_loaded(Local_1464.f_1)) && streaming::has_model_loaded(vLocal_3005.y)) && streaming::has_anim_dict_loaded("missfbi4"))
		{
			Local_1464 = vehicle::create_vehicle(Local_1464.f_1, Local_1464.f_3, Local_1464.f_6, 1, true);
			vehicle::set_vehicle_doors_locked(Local_1464, 3);
			vehicle::remove_vehicle_window(Local_1464, 0);
			vehicle::remove_vehicle_window(Local_1464, 1);
			vehicle::set_vehicle_on_ground_properly(Local_1464);
			vehicle::set_vehicle_colours(Local_1464, 0, 0);
			func_321(&Local_2568, 29, Local_2568.f_3, Local_2568.f_9, 1);
			func_320(Local_2568, 0);
			func_319(&Local_2568, 1);
			ped::set_blocking_of_non_temporary_events(Local_2568, true);
			ped::set_ped_component_variation(Local_2568, 0, 0, 0, 0);
			ped::set_ped_component_variation(Local_2568, 1, 0, 0, 0);
			ped::set_ped_component_variation(Local_2568, 2, 0, 0, 0);
			ped::set_ped_component_variation(Local_2568, 3, 2, 1, 0);
			ped::set_ped_component_variation(Local_2568, 4, 2, 1, 0);
			ped::set_ped_component_variation(Local_2568, 5, 0, 0, 0);
			ped::set_ped_component_variation(Local_2568, 6, 0, 0, 0);
			ped::set_ped_component_variation(Local_2568, 7, 0, 0, 0);
			ped::set_ped_component_variation(Local_2568, 8, 4, 0, 0);
			ped::set_ped_component_variation(Local_2568, 9, 0, 0, 0);
			ped::set_ped_component_variation(Local_2568, 10, 1, 0, 0);
			ped::set_ped_component_variation(Local_2568, 11, 0, 0, 0);
			vLocal_3005.x = object::create_object(vLocal_3005.y, entity::get_offset_from_entity_in_world_coords(Local_2568, 0f, 0f, 5f), 1, true, false);
			entity::attach_entity_to_entity(vLocal_3005.x, Local_2568, ped::get_ped_bone_index(Local_2568, 60309), 0f, 0f, 0f, 0f, 0f, 0f, 0, 0, 0, 0, 2, 1);
			vLocal_3415 = { entity::get_entity_coords(Local_1464, 1) };
			vLocal_3418 = { entity::get_entity_rotation(Local_1464, 2) };
			iLocal_3300 = ped::create_synchronized_scene(vLocal_3415, vLocal_3418, 2);
			ai::task_synchronized_scene(Local_2568, iLocal_3300, "missfbi4", "Idle_Loop_Devin", 1000f, -4f, 1, 0, 1148846080, 0);
			ped::set_synchronized_scene_looped(iLocal_3300, true);
			iLocal_3253++;
		}
	}
}

bool func_598()//Position - 0x70772
{
	switch (iLocal_3316)
	{
		case 0:
			func_608(&Local_3074, -2552.443f, 1911.093f, 167.9768f, 0.01f, 0.01f, 2f, 0, "cntry_god5", 1, 1, -1);
			if (entity::does_entity_exist(Local_2568))
			{
				func_607(entity::get_entity_coords(Local_2568, 1), 100f, 120f, "FBI_4_MCS_2_CONCAT");
				if (cutscene::_0xB56BBBCC2955D9CB())
				{
					cutscene::_0x2A56C06EBEF2B0D9("michael", player::player_ped_id(), 0);
					cutscene::_0x2A56C06EBEF2B0D9("devin", Local_2568, 0);
					if (!ped::is_ped_injured(Local_2770[0 /*20*/]))
					{
						cutscene::_0x2A56C06EBEF2B0D9("FIB_Security_Guy", Local_2770[0 /*20*/], 0);
					}
					if (!ped::is_ped_injured(Local_2770[1 /*20*/]))
					{
						cutscene::_0x2A56C06EBEF2B0D9("FIB_Security_Guy^1", Local_2770[1 /*20*/], 0);
					}
				}
				func_606();
				if (ui::does_blip_exist(Local_3074.f_5))
				{
					if (entity::is_entity_in_angled_area(player::player_ped_id(), -2556.251f, 1908.599f, 167.581f, -2552.673f, 1915.53f, 171.481f, 9.1f, 0, true, 0))
					{
						if (audio::is_audio_scene_active("FBI_4_GO_TO_MEETING"))
						{
							audio::stop_audio_scene("FBI_4_GO_TO_MEETING");
						}
						if (func_539(&iLocal_3468))
						{
							func_605(iLocal_3468, 4f, 1, 1056964608, 0, 1, 0);
							iLocal_3316++;
						}
						else if (entity::is_entity_in_angled_area(player::player_ped_id(), -2557.516f, 1909.942f, 167.877f, -2554.61f, 1915.979f, 171.377f, 4f, 0, true, 0))
						{
							if (cutscene::has_cutscene_loaded())
							{
								if (func_599(1, 1, 1, 0, 1))
								{
									audio::trigger_music_event("fbi4_DEPOT_STOP_TRACK");
									func_568();
									return true;
								}
							}
						}
					}
				}
			}
			break;
		
		case 1:
			if (func_605(iLocal_3468, 4f, 1, 1056964608, 0, 1, 0))
			{
				if (cutscene::has_cutscene_loaded())
				{
					if (func_599(1, 1, 1, 1, 1))
					{
						audio::trigger_music_event("fbi4_DEPOT_STOP_TRACK");
						func_568();
						return true;
					}
				}
			}
			break;
		
		case 2:
			break;
	}
	return false;
}

bool func_599(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x70956
{
	if (func_604(1, 0, 1) || iParam3)
	{
		player::special_ability_deactivate(player::player_id());
		func_275(1, 1, iParam4, 0);
		ui::clear_prints();
		ui::clear_help(1);
		if (iParam2)
		{
			func_602();
		}
		else
		{
			func_600();
		}
		audio::set_frontend_radio_active(0);
		ui::display_hud(false);
		ui::display_radar(false);
		cam::set_widescreen_borders(true, 500);
		if (iParam0)
		{
			player::set_player_control(player::player_id(), false, 4);
		}
		else
		{
			player::set_player_control(player::player_id(), false, 0);
		}
		if (iParam1)
		{
			weapon::hide_ped_weapon_for_scripted_cutscene(player::player_ped_id(), true);
		}
		func_401();
		return true;
	}
	return false;
}

void func_600()//Position - 0x709E4
{
	Global_14578 = 0;
	func_601();
}

void func_601()//Position - 0x709F4
{
	audio::restart_scripted_conversation();
	Global_16723 = 0;
	if ((audio::is_mobile_phone_call_ongoing() || Global_14413.f_1 == 9) || Global_14412 == 1)
	{
		audio::stop_scripted_conversation(false);
		Global_15712 = 6;
		Global_14413.f_1 = 3;
		return;
	}
	if (audio::is_scripted_conversation_ongoing())
	{
		audio::stop_scripted_conversation(true);
		Global_15712 = 6;
		return;
	}
}

void func_602()//Position - 0x70A4B
{
	Global_14578 = 0;
	func_603();
}

void func_603()//Position - 0x70A5B
{
	audio::restart_scripted_conversation();
	Global_16723 = 0;
	if (audio::is_scripted_conversation_ongoing())
	{
		audio::stop_scripted_conversation(false);
		Global_15712 = 6;
	}
}

bool func_604(int iParam0, int iParam1, int iParam2)//Position - 0x70A7C
{
	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) != 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_605(int iParam0, float fParam1, int iParam2, float fParam3, int iParam4, int iParam5, int iParam6)//Position - 0x70B60
{
	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_606()//Position - 0x70CE9
{
	if (cutscene::is_cutscene_active() || cutscene::has_cutscene_loaded())
	{
		if (!iLocal_3216)
		{
			streaming::_0xF8155A7F03DDFC8E(2);
			iLocal_3216 = 1;
		}
	}
	else if (iLocal_3216)
	{
		iLocal_3216 = 0;
	}
}

void func_607(vector3 vParam0, float fParam3, float fParam4, char* sParam5)//Position - 0x70D1F
{
	if (gameplay::get_distance_between_coords(vParam0, entity::get_entity_coords(player::player_ped_id(), 1), 1) < fParam3)
	{
		cutscene::request_cutscene(sParam5, 8);
	}
	else if (cutscene::is_cutscene_active() || cutscene::has_cutscene_loaded())
	{
		if (gameplay::get_distance_between_coords(vParam0, entity::get_entity_coords(player::player_ped_id(), 1), 1) > fParam4)
		{
			cutscene::remove_cutscene();
		}
	}
}

int func_608(int iParam0, vector3 vParam1, vector3 vParam4, int iParam7, char* sParam8, int iParam9, int iParam10, int iParam11)//Position - 0x70D77
{
	return func_609(iParam0, vParam1, vParam4, func_653(), func_653(), iParam7, 1, 0, 0, 0, 0, sParam8, func_652(), func_652(), func_652(), func_652(), func_652(), 0, iParam9, func_652(), 0, 0, iParam10, iParam11, 0, 0, 0, 1, 1065353216);
}

bool func_609(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 - 0x70DC8
{
	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_651(iParam0);
	func_650(iParam0);
	func_649();
	if (func_633(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_632(sParam20);
		func_632(sParam21);
		func_632(sParam22);
		func_632(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_630(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_632(sParam24);
				func_632(sParam27);
				func_632("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_632(sParam19);
					}
					if (ui::does_blip_exist(*iParam0))
					{
						ui::remove_blip(iParam0);
					}
					if ((!func_627(iParam0, 1) && !func_626(iParam0)) && !gameplay::is_bit_set(iParam0->f_13, 0))
					{
						if (iParam30)
						{
							func_625(iParam0, "LOSE_WANTED", 0);
							if (!ped::is_ped_injured(iParam0->f_17[0]))
							{
								func_623(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_632("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_627(iParam0, 1))
						{
							if (!ped::is_ped_injured(iParam0->f_17[0]))
							{
								func_623(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_622(vVar3, 0);
						if (!iParam31 == -1)
						{
							ui::set_blip_sprite(iParam0->f_5, iParam31);
						}
						if (iParam35)
						{
							func_621(iParam0->f_5, iParam0);
						}
					}
					else if (!func_620(vVar3, ui::get_blip_coords(iParam0->f_5), 0.1f, 0))
					{
						ui::set_blip_coords(iParam0->f_5, vVar3);
						if (iParam35)
						{
							func_621(iParam0->f_5, iParam0);
						}
					}
					if (!func_627(iParam0, 2))
					{
						if (!gameplay::is_bit_set(iParam0->f_13, 2))
						{
							func_625(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_619()) || !func_617(iParam0->f_17[iVar2], 1))
								{
									iVar1 = false;
								}
							}
							iVar2++;
						}
						if (iVar1)
						{
							if (func_615(iParam0))
							{
								func_632(sParam19);
								func_632(sParam24);
								func_632(sParam20);
								func_632(sParam21);
								func_632(sParam22);
								func_632(sParam23);
								func_632("LOSE_WANTED");
								func_632("MORE_SEATS");
								func_632(sParam27);
								func_611(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_632(sParam24);
					func_632(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_632(sParam19);
					}
					if ((!func_627(iParam0, 1) && !func_626(iParam0)) && !gameplay::is_bit_set(iParam0->f_13, 0))
					{
						if (iParam30)
						{
							func_625(iParam0, "LOSE_WANTED", 0);
							if (!ped::is_ped_injured(iParam0->f_17[0]))
							{
								func_623(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_632("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_627(iParam0, 1))
						{
							if (!ped::is_ped_injured(iParam0->f_17[0]))
							{
								func_623(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_632(sParam19);
							}
							*iParam0 = func_610(iParam18, 0, 0);
							ui::set_blip_display(*iParam0, 2);
							if (!gameplay::is_bit_set(iParam0->f_13, 4))
							{
								func_621(*iParam0, iParam0);
							}
						}
						if (!func_627(iParam0, 2))
						{
							if (!gameplay::is_bit_set(iParam0->f_13, 3))
							{
								func_625(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_625(iParam0, sParam27, 0);
										gameplay::set_bit(&(iParam0->f_13), 4);
									}
								}
								else if (!gameplay::is_bit_set(iParam0->f_13, 4))
								{
									func_625(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_623(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_632(sParam19);
				}
				if (iParam14 == 4 || iParam14 == 5)
				{
					if (iParam29 > 0)
					{
						if (!func_627(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_623(iParam0->f_17[iVar9], "NEED_A_BIGGER_VEHICLE", 3);
									}
									func_625(iParam0, "MORE_SEATS", 0);
									gameplay::set_bit(&(iParam0->f_13), 13);
								}
							}
							else if (!gameplay::is_bit_set(iParam0->f_13, 3))
							{
								func_625(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_625(iParam0, sParam27, 0);
									gameplay::set_bit(&(iParam0->f_13), 4);
								}
							}
						}
					}
					else if (!func_627(iParam0, 2))
					{
						if (!gameplay::is_bit_set(iParam0->f_13, 3))
						{
							func_625(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_625(iParam0, sParam27, 0);
									gameplay::set_bit(&(iParam0->f_13), 4);
								}
							}
							else if (!gameplay::is_bit_set(iParam0->f_13, 4))
							{
								func_625(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_632(sParam19);
		func_632(sParam24);
		func_632(sParam27);
		func_632(sParam24);
		func_632("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;
}

int func_610(int iParam0, int iParam1, int iParam2)//Position - 0x7173F
{
	return func_408(iParam0, !iParam1, iParam2);
}

void func_611(int iParam0, int iParam1, int iParam2)//Position - 0x71752
{
	int iVar0;
	
	if (gameplay::is_bit_set(iParam0->f_13, 30))
	{
		iParam1 = true;
	}
	func_614(iParam0);
	iVar0 = 0;
	while (iVar0 < 3)
	{
		if (ui::does_blip_exist(iParam0->f_1[iVar0]))
		{
			ui::remove_blip(&(iParam0->f_1[iVar0]));
		}
		func_613(iVar0, iParam0);
		func_612(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_619()) && 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_612(int iParam0, var uParam1)//Position - 0x71903
{
	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;
	}
}

void func_613(int iParam0, var uParam1)//Position - 0x7194B
{
	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;
	}
}

void func_614(var uParam0)//Position - 0x71993
{
	if (ui::does_blip_exist(uParam0->f_5))
	{
		ui::remove_blip(&(uParam0->f_5));
	}
}

bool func_615(int iParam0)//Position - 0x719AE
{
	if (gameplay::is_bit_set(iParam0->f_13, 12))
	{
		if (func_616(player::player_ped_id()))
		{
			if (func_604(1, 0, 1) || gameplay::is_bit_set(iParam0->f_13, 7))
			{
				return true;
			}
		}
	}
	else if (func_604(1, 0, 1) || gameplay::is_bit_set(iParam0->f_13, 7))
	{
		return true;
	}
	return false;
}

bool func_616(int iParam0)//Position - 0x71A0C
{
	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_617(int iParam0, int iParam1)//Position - 0x71A43
{
	if (!ped::is_ped_injured(iParam0))
	{
		if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()) && iParam1)
		{
			if (func_618(player::player_ped_id(), iParam0))
			{
				ped::set_group_separation_range(func_619(), 50f);
				return true;
			}
		}
		else if (ped::is_ped_group_member(iParam0, func_619()))
		{
			ped::set_group_separation_range(func_619(), 50f);
			return true;
		}
	}
	else
	{
		return true;
	}
	return false;
}

bool func_618(int iParam0, int iParam1)//Position - 0x71AAE
{
	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_619()//Position - 0x71AF6
{
	return player::get_player_group(player::get_player_index());
}

bool func_620(vector3 vParam0, vector3 vParam3, float fParam6, int iParam7)//Position - 0x71B06
{
	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_621(int iParam0, int iParam1)//Position - 0x71B81
{
	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);
	}
}

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

void func_623(int iParam0, char* sParam1, int iParam2)//Position - 0x71BE8
{
	audio::_play_ambient_speech1(iParam0, sParam1, func_624(iParam2), 1);
}

int func_624(int iParam0)//Position - 0x71BFF
{
	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_625(int iParam0, char* sParam1, int iParam2)//Position - 0x71E19
{
	if (!iParam2)
	{
		if (!gameplay::is_string_null(sParam1))
		{
			if (!gameplay::are_strings_equal(sParam1, ""))
			{
				func_436(sParam1, 7500, 1);
			}
		}
	}
	iParam0->f_10 = gameplay::get_game_timer();
}

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

bool func_627(int iParam0, int iParam1)//Position - 0x71E75
{
	if (iParam1 != 1 || ui::is_subtitle_preference_switched_on())
	{
		if (ui::is_message_being_displayed())
		{
			return true;
		}
		if (func_629(iParam0))
		{
			return true;
		}
	}
	if (iParam1 != 2 || ui::is_subtitle_preference_switched_on())
	{
		if (func_596() && !func_628())
		{
			return true;
		}
	}
	return false;
}

bool func_628()//Position - 0x71ECD
{
	if (Global_16723 == 1)
	{
		return true;
	}
	return false;
}

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

bool func_630(var uParam0, int iParam1)//Position - 0x71F07
{
	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_631(iVar0, uParam0, iParam1))
		{
			return true;
		}
	}
	return false;
}

bool func_631(int iParam0, var uParam1, int iParam2)//Position - 0x71F38
{
	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_632(char* sParam0)//Position - 0x71FCC
{
	if (!gameplay::is_string_null(sParam0))
	{
		ui::clear_this_print(sParam0);
	}
}

bool func_633(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 - 0x71FE4
{
	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_631(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_619()))
									{
										ped::remove_ped_from_group(uParam0->f_17[iVar0]);
									}
									if (ai::get_script_task_status(uParam0->f_17[iVar0], -1794415470) == 7 && !func_648(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_619()))
					{
						if (func_646(uParam0, uParam0->f_17[iVar0], fParam8, 1))
						{
							ped::set_ped_as_group_member(uParam0->f_17[iVar0], func_619());
						}
					}
				}
				iVar0++;
			}
		}
	}
	if (!gameplay::is_bit_set(uParam0->f_13, 26))
	{
		if ((!func_645(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_627(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_623(uParam0->f_17[iVar27], "NEED_A_BIGGER_VEHICLE", 3);
						}
						func_625(uParam0, "MORE_SEATS", 0);
						gameplay::set_bit(&(uParam0->f_13), 13);
					}
				}
				iVar12 = true;
			}
		}
		else
		{
			iVar12 = false;
			gameplay::clear_bit(&(uParam0->f_13), 13);
			func_632("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_627(uParam0, 2))
					{
						iVar13 = ped::get_vehicle_ped_is_in(player::player_ped_id(), 0);
						if (func_644(iVar13, uParam0))
						{
							func_625(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_632("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_619()))
					{
						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_619()))
							{
								if (!func_645(uParam0) && ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
								{
									if (!func_643(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_619()))
					{
						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_619()))
					{
						iVar32 = ped::get_vehicle_ped_is_using(player::player_ped_id());
						if (entity::does_entity_exist(iVar32))
						{
							if (func_631(iVar32, uParam0, 0))
							{
								if (func_642(iVar0, uParam0) || !gameplay::is_bit_set(uParam0->f_13, 27))
								{
									ped::set_ped_group_member_passenger_index(uParam0->f_17[iVar0], iVar0);
									func_612(iVar0, uParam0);
									iVar4++;
									if (iVar4 >= iVar3)
									{
										gameplay::set_bit(&(uParam0->f_13), 27);
									}
								}
							}
							else if (!func_642(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_641(iVar0, uParam0);
							}
						}
					}
					if ((!ped::is_ped_group_member(uParam0->f_17[iVar0], func_619()) && !func_640(uParam0->f_17[iVar0], iParam10)) && !func_639(uParam0->f_17[iVar0], iParam10))
					{
						if (func_646(uParam0, uParam0->f_17[iVar0], fParam8, iParam11))
						{
							if (!ped::is_ped_group_member(uParam0->f_17[iVar0], func_619()))
							{
								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_619());
									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_610(uParam0->f_17[iVar0], 0, 0);
								ui::set_blip_display(uParam0->f_1[iVar0], 2);
								if (iParam9)
								{
									func_621(uParam0->f_1[iVar0], uParam0);
								}
							}
						}
						iVar6 = 0;
					}
					else if (ui::does_blip_exist(uParam0->f_1[iVar0]))
					{
						if (((func_617(uParam0->f_17[iVar0], 1) || func_640(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_632(uVar15[iVar0]);
							}
						}
						else
						{
							if (iParam9)
							{
								func_621(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_617(uParam0->f_17[iVar0], 1))
										{
											if (func_616(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_619()))
									{
										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_648(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_638(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_610(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_619()))
							{
								if (func_646(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_619());
									}
								}
							}
						}
						else if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), iParam10))
						{
							if (!ped::is_ped_group_member(uParam0->f_17[iVar0], func_619()))
							{
								if (!gameplay::is_bit_set(uParam0->f_13, 21))
								{
									ped::set_ped_as_group_member(uParam0->f_17[iVar0], func_619());
								}
							}
							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_619()) && !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_632(uVar15[iVar0]);
				}
			}
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 3)
		{
			if (ui::does_blip_exist(uParam0->f_1[iVar0]))
			{
				iVar7[iVar0] = 1;
				iVar1++;
			}
			iVar0++;
		}
		if (!func_627(uParam0, 2))
		{
			if (iVar1 > 0)
			{
				iVar0 = 0;
				while (iVar0 < 3)
				{
					if (iVar7[iVar0])
					{
						if (!ped::is_ped_injured(uParam0->f_17[iVar0]))
						{
							if (func_643(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_643(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_625(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_637(iVar0, uParam0))
									{
										if (!gameplay::is_string_null(uVar19[iVar0]))
										{
											if (!gameplay::are_strings_equal(uVar19[iVar0], ""))
											{
												func_635(uParam0, uVar15[iVar0], uVar19[iVar0], 0);
												func_634(iVar0, uParam0);
												uParam0->f_12 = iVar1;
											}
										}
										if (!func_637(iVar0, uParam0))
										{
											func_625(uParam0, uVar15[iVar0], 0);
											func_634(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_632(uVar15[iVar0]);
				}
				iVar0++;
			}
			func_632("MORE_SEATS");
			return true;
		}
	}
	return false;
}

void func_634(int iParam0, var uParam1)//Position - 0x7305F
{
	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_635(var uParam0, char* sParam1, char* sParam2, int iParam3)//Position - 0x730A7
{
	if (!iParam3)
	{
		if (!gameplay::is_string_null(sParam1))
		{
			if (!gameplay::are_strings_equal(sParam1, ""))
			{
				func_636(sParam1, sParam2, 7500, 1);
			}
		}
	}
	uParam0->f_10 = gameplay::get_game_timer();
}

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

int func_637(int iParam0, var uParam1)//Position - 0x73100
{
	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_638(int iParam0, float fParam1)//Position - 0x73149
{
	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_639(int iParam0, int iParam1)//Position - 0x73180
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		if (!ped::is_ped_group_member(iParam0, func_619()))
		{
			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_640(int iParam0, int iParam1)//Position - 0x731E7
{
	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_641(int iParam0, var uParam1)//Position - 0x7321C
{
	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;
	}
}

int func_642(int iParam0, var uParam1)//Position - 0x73264
{
	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_643(int iParam0)//Position - 0x732AD
{
	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_644(int iParam0, var uParam1)//Position - 0x7333A
{
	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);
			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);
			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);
			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_645(var uParam0)//Position - 0x73497
{
	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_631(iVar0, uParam0, 0))
		{
			return true;
		}
	}
	return false;
}

bool func_646(var uParam0, int iParam1, float fParam2, int iParam3)//Position - 0x734C6
{
	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_645(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_631(iVar0, uParam0, 0))
					{
						if (vehicle::is_vehicle_driveable(iVar0, 0))
						{
							if (func_647(iVar0))
							{
								return true;
							}
						}
					}
				}
				else
				{
					return true;
				}
			}
			else
			{
				return true;
			}
		}
	}
	return false;
}

bool func_647(int iParam0)//Position - 0x735A4
{
	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_648(int iParam0, int iParam1)//Position - 0x735DC
{
	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_649()//Position - 0x7360C
{
	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);
			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);
						}
					}
				}
			}
		}
	}
}

void func_650(var uParam0)//Position - 0x73678
{
	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_651(var uParam0)//Position - 0x7371B
{
	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_652()//Position - 0x737B1
{
	var uVar0;
	
	return uVar0;
}

Vector3 func_653()//Position - 0x737BB
{
	vector3 vVar0;
	
	return vVar0;
}

void func_654()//Position - 0x737C7
{
	int iVar0;
	
	switch (iLocal_3313)
	{
		case 0:
			if (audio::is_audio_scene_active("FBI_4_DESTROY_TRUCK"))
			{
				audio::stop_audio_scene("FBI_4_DESTROY_TRUCK");
			}
			ui::clear_prints();
			player::clear_player_wanted_level(player::player_id());
			gameplay::set_fake_wanted_level(0);
			player::set_max_wanted_level(5);
			ped::set_create_random_cops(false);
			player::set_wanted_level_multiplier(0.2f);
			if (func_539(&iVar0))
			{
				func_686(player::player_ped_id(), iVar0, &(Global_90747[1 /*98*/]), &(Global_91050[1 /*3*/]), &(Global_91060[1]), &(Global_91042[1]), &(Global_2563620[1]), 0);
			}
			func_681(&iLocal_3099, 0);
			Local_3143.f_12 = iLocal_3099[0];
			iLocal_3313++;
			break;
		
		case 1:
			if (func_657(&Local_3143, 0, 0, 1148829696, 1148829696, 0, 0, 0, 0, 0))
			{
				if (Local_3143.f_18)
				{
					if (!Local_3143.f_19)
					{
						if (func_446(&iLocal_3099, 0, 0, 0))
						{
							Local_3143.f_19 = 1;
						}
					}
				}
				func_656();
			}
			else
			{
				streaming::remove_anim_dict("misscommon@std_take_off_masks");
				pathfind::set_roads_back_to_original(object::_get_object_offset_from_coords(Local_1615.f_3, Local_1615.f_6, -200f, 200f, 200f), object::_get_object_offset_from_coords(Local_1615.f_3, Local_1615.f_6, 200f, -200f, -200f), 1);
				if (vehicle::is_vehicle_driveable(Local_1615, 0))
				{
					if (vehicle::is_playback_going_on_for_vehicle(Local_1615))
					{
						vehicle::stop_playback_recorded_vehicle(Local_1615);
					}
				}
				if (entity::does_entity_exist(Local_1630))
				{
					entity::set_vehicle_as_no_longer_needed(&Local_1630);
				}
				audio::start_audio_scene("FBI_4_GO_TO_MEETING");
				entity::freeze_entity_position(Local_1615, false);
				func_655(player::player_ped_id(), -1);
				iLocal_1126 = 11;
			}
			break;
	}
}

void func_655(int iParam0, int iParam1)//Position - 0x73954
{
	int iVar0;
	
	Global_55762 = iParam0;
	iVar0 = 0;
	while (iVar0 < Global_67844)
	{
		if (iParam1 == -1 || Global_67845[iVar0 /*9*/] == iParam1)
		{
			if (Global_67845[iVar0 /*9*/].f_6 != iParam0)
			{
				Global_67845[iVar0 /*9*/].f_6 = iParam0;
				Global_67845[iVar0 /*9*/].f_7 = 1;
				Global_67845[iVar0 /*9*/].f_8 = 0;
			}
		}
		iVar0++;
	}
}

void func_656()//Position - 0x739BF
{
	int iVar0;
	
	if (streaming::is_player_switch_in_progress())
	{
		iVar0 = streaming::get_player_switch_state();
		switch (iLocal_3405)
		{
			case 0:
				if (streaming::get_player_switch_state() == 8)
				{
					if (streaming::_0x78C0D93253149435() <= 2)
					{
						if (vehicle::is_vehicle_driveable(Local_1615, 0))
						{
							gameplay::clear_area(entity::get_entity_coords(Local_1615, 1), 200f, 1, 0, 0, false);
							if (vehicle::is_playback_going_on_for_vehicle(Local_1615))
							{
								vehicle::set_playback_speed(Local_1615, 1f);
								vehicle::skip_time_in_playback_recorded_vehicle(Local_1615, (5000f - vehicle::get_time_position_in_recording(Local_1615)));
								vehicle::_0x1F2E4E06DEA8992B(Local_1615, 1);
							}
							else
							{
								vehicle::start_playback_recorded_vehicle(Local_1615, Local_1615.f_13, "lkheat", 1);
								vehicle::skip_time_in_playback_recorded_vehicle(Local_1615, 5000f);
								vehicle::_0x1F2E4E06DEA8992B(Local_1615, 1);
							}
						}
						iLocal_3405++;
					}
				}
				break;
			
			case 1:
				if (streaming::get_player_switch_state() == 8)
				{
					if (streaming::_0x78C0D93253149435() <= 1)
					{
						if (vehicle::is_vehicle_driveable(Local_1615, 0))
						{
							gameplay::clear_area(entity::get_entity_coords(Local_1615, 1), 200f, 1, 0, 0, false);
							if (vehicle::is_playback_going_on_for_vehicle(Local_1615))
							{
								vehicle::set_playback_speed(Local_1615, 1f);
								vehicle::skip_time_in_playback_recorded_vehicle(Local_1615, (5000f - vehicle::get_time_position_in_recording(Local_1615)));
								vehicle::_0x1F2E4E06DEA8992B(Local_1615, 1);
							}
							else
							{
								vehicle::start_playback_recorded_vehicle(Local_1615, Local_1615.f_13, "lkheat", 1);
								vehicle::skip_time_in_playback_recorded_vehicle(Local_1615, 5000f);
								vehicle::_0x1F2E4E06DEA8992B(Local_1615, 1);
							}
							iLocal_3405++;
						}
					}
				}
				break;
			
			case 2:
				if (streaming::get_player_switch_state() == 8)
				{
					if (streaming::_0x78C0D93253149435() <= 0)
					{
						if (vehicle::is_vehicle_driveable(Local_1615, 0))
						{
							gameplay::clear_area(entity::get_entity_coords(Local_1615, 1), 200f, 1, 0, 0, false);
							if (vehicle::is_playback_going_on_for_vehicle(Local_1615))
							{
								vehicle::set_playback_speed(Local_1615, 1f);
								vehicle::skip_time_in_playback_recorded_vehicle(Local_1615, (5000f - vehicle::get_time_position_in_recording(Local_1615)));
								vehicle::_0x1F2E4E06DEA8992B(Local_1615, 1);
							}
							else
							{
								vehicle::start_playback_recorded_vehicle(Local_1615, Local_1615.f_13, "lkheat", 1);
								vehicle::skip_time_in_playback_recorded_vehicle(Local_1615, 5000f);
								vehicle::_0x1F2E4E06DEA8992B(Local_1615, 1);
							}
						}
						iLocal_3405++;
					}
				}
				break;
			
			case 3:
				if (iVar0 >= 9)
				{
					if (vehicle::is_vehicle_driveable(Local_1615, 0))
					{
						gameplay::clear_area(entity::get_entity_coords(Local_1615, 1), 200f, 1, 0, 0, false);
						if (vehicle::is_playback_going_on_for_vehicle(Local_1615))
						{
							vehicle::set_playback_speed(Local_1615, 1f);
							vehicle::skip_time_in_playback_recorded_vehicle(Local_1615, (5000f - vehicle::get_time_position_in_recording(Local_1615)));
							vehicle::_0x1F2E4E06DEA8992B(Local_1615, 1);
						}
						else
						{
							vehicle::start_playback_recorded_vehicle(Local_1615, Local_1615.f_13, "lkheat", 1);
							vehicle::skip_time_in_playback_recorded_vehicle(Local_1615, 5000f);
							vehicle::_0x1F2E4E06DEA8992B(Local_1615, 1);
						}
						entity::set_entity_only_damaged_by_player(Local_1615, false);
						iLocal_3405++;
					}
				}
				break;
			
			case 4:
				break;
			}
	}
}

int func_657(var uParam0, int iParam1, int iParam2, float fParam3, float fParam4, int iParam5, int iParam6, char* sParam7, int iParam8, int iParam9)//Position - 0x73C47
{
	return func_658(uParam0, 0, iParam1, iParam2, fParam3, fParam4, iParam5, iParam6, sParam7, 2, 0, iParam8, iParam9);
	return 1;
}

bool func_658(var uParam0, int iParam1, int iParam2, var uParam3, float fParam4, float fParam5, int iParam6, int iParam7, char* sParam8, int iParam9, int iParam10, int iParam11, int iParam12)//Position - 0x73C6E
{
	int iVar0;
	int iVar1;
	vector3 vVar2;
	vector3 vVar5;
	float fVar8;
	float fVar9;
	int iVar10;
	int iVar11;
	
	iVar0 = uParam3;
	if (!uParam0->f_16)
	{
		if (streaming::_0x71E7B2E657449AAD())
		{
			if (!iParam10)
			{
				uParam0->f_13 = player::player_ped_id();
			}
			if ((!ped::is_ped_injured(uParam0->f_13) || iParam10) && !ped::is_ped_injured(uParam0->f_12))
			{
				uParam0->f_27 = 0;
				Global_88530 = 1;
				if (!iParam10)
				{
					if (ped::is_ped_sitting_in_any_vehicle(uParam0->f_13))
					{
						iVar1 = ped::get_vehicle_ped_is_in(uParam0->f_13, 0);
						func_680(iVar1, 0);
					}
					player::set_player_control(player::player_id(), false, 0);
					entity::set_entity_invincible(uParam0->f_13, true);
					entity::set_entity_invincible(uParam0->f_12, true);
				}
				uParam0->f_21 = func_679();
				func_674(1);
				if (iParam6)
				{
					iVar0 |= 4;
				}
				if (iParam7)
				{
					iVar0 |= 8;
				}
				if (cam::does_cam_exist(iParam1) || !gameplay::is_string_null_or_empty(sParam8))
				{
					iVar0 |= 2;
				}
				if (func_673())
				{
					iVar0 |= 1;
				}
				if (!streaming::is_player_switch_in_progress())
				{
					streaming::start_player_switch(uParam0->f_13, uParam0->f_12, iVar0, iParam2);
					if (iParam11)
					{
						streaming::_0x5F2013F8BC24EE69(iParam12);
					}
					switch (func_270(uParam0->f_13))
					{
						case 0:
							graphics::_0xD2209BE128B5418C("SwitchHUDMichaelOut");
							break;
						
						case 1:
							graphics::_0xD2209BE128B5418C("SwitchHUDMichaelOut");
							break;
						
						case 2:
							graphics::_0xD2209BE128B5418C("SwitchHUDTrevorOut");
							break;
					}
					graphics::_0xD2209BE128B5418C("SwitchHUDOut");
				}
				else if (streaming::_0x933BBEEB8C61B5F4())
				{
					streaming::_0xD8295AF639FD9CB8(uParam0->f_12);
					func_672(0);
				}
				else
				{
					return false;
				}
				if (cam::does_cam_exist(iParam1))
				{
					if (streaming::get_ideal_player_switch_type(entity::get_entity_coords(uParam0->f_13, 1), entity::get_entity_coords(uParam0->f_12, 1)) != 3)
					{
						streaming::_0xC208B673CE446B61(cam::get_cam_coord(iParam1), cam::get_cam_rot(iParam1, iParam9), cam::get_cam_fov(iParam1), cam::get_cam_far_clip(iParam1), iParam9);
					}
				}
				if (!gameplay::is_string_null_or_empty(sParam8))
				{
					streaming::_0x0FDE9DBFC0A6BC65(sParam8);
				}
				if (!Global_17118.f_111)
				{
					audio::play_sound(-1, "CHARACTER_CHANGE_UP_MASTER", 0, 0, 0, 1);
					if (streaming::get_ideal_player_switch_type(entity::get_entity_coords(uParam0->f_13, 1), entity::get_entity_coords(uParam0->f_12, 1)) == 3)
					{
						audio::play_sound(-1, "slow", "SHORT_PLAYER_SWITCH_SOUND_SET", 0, 0, 1);
					}
					if (Global_17118.f_109 == -1)
					{
						Global_17118.f_109 = audio::get_sound_id();
					}
					Global_17118.f_110 = gameplay::get_hash_key(script::get_this_script_name());
					audio::play_sound(Global_17118.f_109, "CHARACTER_CHANGE_SKY_MASTER", 0, 0, 0, 1);
					audio::start_audio_scene("CHARACTER_CHANGE_IN_SKY_SCENE");
					if (audio::is_audio_scene_active("CHARACTER_CHANGE_IN_SKY_SCENE"))
					{
					}
				}
				if (Global_17118.f_109 != -1 && Global_17118.f_110 == gameplay::get_hash_key(script::get_this_script_name()))
				{
					audio::stop_sound(Global_17118.f_109);
					audio::release_sound_id(Global_17118.f_109);
					Global_17118.f_109 = -1;
					Global_17118.f_110 = 0;
				}
				uParam0->f_25 = gameplay::get_game_timer();
				uParam0->f_16 = 1;
				func_671(1);
				ui::key_hud_colour(true, uParam0->f_13);
				if (cam::get_follow_ped_cam_view_mode() == 3)
				{
					cam::set_follow_ped_cam_view_mode(1);
				}
				if (cam::get_follow_vehicle_cam_view_mode() == 3)
				{
					cam::set_follow_vehicle_cam_view_mode(1);
				}
				if (!iParam10)
				{
					if (entity::get_entity_model(uParam0->f_12) == func_93(0))
					{
						graphics::_0xBF59707B3E5ED531(func_448(0));
					}
					else if (entity::get_entity_model(uParam0->f_12) == func_93(2))
					{
						graphics::_0xBF59707B3E5ED531(func_448(2));
					}
					else if (entity::get_entity_model(uParam0->f_12) == func_93(1))
					{
						graphics::_0xBF59707B3E5ED531(func_448(1));
					}
					else
					{
						graphics::_0xBF59707B3E5ED531("");
					}
					graphics::_0xBDEB86F4D5809204(0f);
				}
			}
			else
			{
				uParam0->f_17 = 1;
			}
		}
		else
		{
			uParam0->f_17 = 1;
		}
	}
	if (uParam0->f_16)
	{
		if (streaming::is_player_switch_in_progress())
		{
			if (!Global_17118.f_111)
			{
			}
			if (func_670(uParam3, 512))
			{
				if (!streaming::_0xDFA80CB25D0A19B3())
				{
				}
				else if (Global_91066 == 0)
				{
					streaming::_0xAD5FDF34B81BFE79();
				}
			}
			if (streaming::get_player_switch_type() == 3)
			{
				if (streaming::get_player_short_switch_state() >= 1)
				{
					if (!uParam0->f_18)
					{
						func_669();
						uParam0->f_18 = 1;
					}
					if (!uParam0->f_22)
					{
						func_661(0, 1);
						uParam0->f_22 = 1;
					}
				}
			}
			else
			{
				if (streaming::get_player_switch_state() >= 8)
				{
					if (!uParam0->f_18)
					{
						func_669();
						uParam0->f_18 = 1;
					}
				}
				if (!uParam0->f_18)
				{
					if (streaming::destroy_player_in_pause_menu() && streaming::get_player_switch_state() == 3)
					{
						vVar2 = { entity::get_entity_coords(player::player_ped_id(), 1) };
						vVar5 = { cam::_get_gameplay_cam_coords() };
						fVar8 = 20f;
						fVar9 = system::vdist2(vVar2, vVar5);
						if (fVar9 < (fVar8 * fVar8))
						{
							func_669();
							uParam0->f_18 = 1;
						}
					}
				}
				if (!uParam0->f_22)
				{
					if (streaming::get_player_switch_state() > 2)
					{
						func_661(0, 1);
						uParam0->f_22 = 1;
					}
				}
				if (!uParam0->f_23)
				{
					if (streaming::get_player_switch_state() >= 3)
					{
						graphics::_0xB11D94BC55F41932("CSM_ST_BOX3x3");
						uParam0->f_23 = 1;
					}
				}
			}
		}
		else
		{
			if (!uParam0->f_18)
			{
				uParam0->f_18 = 1;
				func_669();
			}
			if (!uParam0->f_22)
			{
				func_661(0, 1);
				uParam0->f_22 = 1;
			}
			uParam0->f_17 = 1;
		}
	}
	if (uParam0->f_17)
	{
		iVar10 = func_659();
		if (((iVar10 != 8 && iVar10 != 9) && iVar10 != 10) && iVar10 != 55)
		{
			func_674(uParam0->f_21);
		}
		if (uParam0->f_23)
		{
			graphics::_0x27CB772218215325();
			uParam0->f_23 = 0;
		}
		uParam0->f_16 = 0;
		uParam0->f_17 = 0;
		uParam0->f_18 = 0;
		uParam0->f_19 = 0;
		uParam0->f_20 = 0;
		uParam0->f_24 = 0;
		uParam0->f_27 = 0;
		if (Global_17118.f_109 != -1 && Global_17118.f_110 == gameplay::get_hash_key(script::get_this_script_name()))
		{
			audio::stop_sound(Global_17118.f_109);
			audio::release_sound_id(Global_17118.f_109);
			Global_17118.f_109 = -1;
			Global_17118.f_110 = 0;
		}
		if (audio::is_audio_scene_active("CHARACTER_CHANGE_IN_SKY_SCENE"))
		{
			audio::stop_audio_scene("CHARACTER_CHANGE_IN_SKY_SCENE");
		}
		if (Global_17118.f_107 != -1 && Global_17118.f_108 == gameplay::get_hash_key(script::get_this_script_name()))
		{
			audio::stop_sound(Global_17118.f_107);
			audio::release_sound_id(Global_17118.f_107);
			Global_17118.f_107 = -1;
			Global_17118.f_108 = 0;
		}
		if (fParam5 <= 360f && fParam5 >= -360f)
		{
			cam::set_gameplay_cam_relative_heading(fParam5);
		}
		if (fParam4 <= 360f && fParam4 >= -360f)
		{
			cam::set_gameplay_cam_relative_pitch(fParam4, 1065353216);
		}
		if (!Global_36805)
		{
			cam::stop_gameplay_cam_shaking(true);
			cam::_0x487A82C650EB7799(0f);
			cam::_0x0225778816FDC28C(0f);
		}
		if (!iParam10)
		{
			if (!ped::is_ped_injured(uParam0->f_13))
			{
				entity::set_entity_visible(uParam0->f_13, true, 0);
				ped::set_ped_can_be_targetted(uParam0->f_13, true);
				if (!ped::is_ped_in_any_vehicle(uParam0->f_13, 0))
				{
					entity::set_entity_collision(uParam0->f_13, true, 0);
				}
				if (ped::is_ped_sitting_in_any_vehicle(uParam0->f_13))
				{
					iVar11 = ped::get_vehicle_ped_is_in(uParam0->f_13, 0);
					func_680(iVar11, 1);
				}
			}
		}
		func_672(0);
		if (!iParam10)
		{
			if (!ped::is_ped_injured(uParam0->f_13) || iParam10)
			{
				entity::set_entity_invincible(uParam0->f_13, false);
			}
			if (!ped::is_ped_injured(uParam0->f_12))
			{
				entity::set_entity_invincible(uParam0->f_12, false);
			}
			player::set_player_control(player::player_id(), true, 0);
			graphics::_0xBBF327DED94E4DEB(func_448(func_960()));
		}
		func_671(0);
		ui::key_hud_colour(false, 0);
		return false;
	}
	ui::hide_hud_and_radar_this_frame();
	return true;
}

int func_659()//Position - 0x7430E
{
	if (streaming::is_player_switch_in_progress())
	{
		return Global_89453;
	}
	if (func_660())
	{
		return Global_89453;
	}
	return 318;
}

bool func_660()//Position - 0x74335
{
	if (script::_get_number_of_instances_of_streamed_script(joaat("player_timetable_scene")) > 0)
	{
		return true;
	}
	return false;
}

void func_661(int iParam0, int iParam1)//Position - 0x7434F
{
	if (iParam1)
	{
		func_667(iParam0);
	}
	func_666(0);
	func_662(65);
}

void func_662(int iParam0)//Position - 0x7436D
{
	int iVar0;
	char* sVar1;
	int iVar2;
	
	iVar0 = func_665();
	if (Global_1315913)
	{
		sVar1 = func_664(iParam0);
		iVar2 = gameplay::get_hash_key(sVar1);
		func_663(&Global_2445458, 1, 0);
		unk_0xC3BFED92026A2AAD(iVar2, 1, iVar0, iParam0, 0);
	}
	Global_1315846 = iParam0;
}

void func_663(var uParam0, int iParam1, int iParam2)//Position - 0x743AF
{
	if (network::network_is_game_in_progress() && !iParam1)
	{
		if (!iParam2)
		{
			*uParam0 = network::get_network_time();
		}
		else
		{
			*uParam0 = network::_0x89023FBBF9200E9F();
		}
	}
	else
	{
		*uParam0 = gameplay::get_game_timer();
	}
	uParam0->f_1 = 1;
}

char* func_664(int iParam0)//Position - 0x743EC
{
	switch (iParam0)
	{
		case 0:
			return "TRANSITION_STATE_EMPTY";
		
		case 1:
			return "TRANSITION_STATE_SP_SWOOP_UP";
		
		case 2:
			return "TRANSITION_STATE_MP_SWOOP_UP";
		
		case 3:
			return "TRANSITION_STATE_CREATOR_SWOOP_UP";
		
		case 4:
			return "TRANSITION_STATE_PRE_HUD_CHECKS";
		
		case 5:
			return "TRANSITION_STATE_WAIT_HUD_EXIT";
		
		case 7:
			return "TRANSITION_STATE_SP_SWOOP_DOWN";
		
		case 8:
			return "TRANSITION_STATE_MP_SWOOP_DOWN";
		
		case 6:
			return "TRANSITION_STATE_WAIT_FOR_SUMMON";
		
		case 9:
			return "TRANSITION_STATE_CANCEL_JOINING";
		
		case 15:
			return "TRANSITION_STATE_WAIT_ON_INVITE";
		
		case 10:
			return "TRANSITION_STATE_RETRY_LOADING";
		
		case 11:
			return "TRANSITION_STATE_RETRY_LOADING_SLOT_1";
		
		case 12:
			return "TRANSITION_STATE_RETRY_LOADING_SLOT_2";
		
		case 13:
			return "TRANSITION_STATE_RETRY_LOADING_SLOT_3";
		
		case 14:
			return "TRANSITION_STATE_RETRY_LOADING_SLOT_4";
		
		case 16:
			return "TRANSITION_STATE_PREJOINING_FM_SESSION_CHECKS";
		
		case 17:
			return "TRANSITION_STATE_LOOK_FOR_FRESH_JOIN_FM";
		
		case 18:
			return "TRANSITION_STATE_LOOK_TO_JOIN_ANOTHER_SESSION_FM";
		
		case 19:
			return "TRANSITION_STATE_CONFIRM_FM_SESSION_JOINING";
		
		case 21:
			return "TRANSITION_STATE_CREATION_ENTER_SESSION";
		
		case 22:
			return "TRANSITION_STATE_PRE_FM_LAUNCH_SCRIPT";
		
		case 23:
			return "TRANSITION_STATE_FM_TEAMFULL_CHECK";
		
		case 24:
			return "TRANSITION_STATE_START_FM_LAUNCH_SCRIPT";
		
		case 25:
			return "TRANSITION_STATE_FM_TRANSITION_CREATE_PLAYER";
		
		case 26:
			return "TRANSITION_STATE_IS_FM_AND_TRANSITION_READY";
		
		case 27:
			return "TRANSITION_STATE_FM_SWOOP_DOWN";
		
		case 28:
			return "TRANSITION_STATE_FM_FINAL_SETUP_PLAYER";
		
		case 29:
			return "TRANSITION_STATE_MOVE_FM_TO_RUNNING_STATE";
		
		case 30:
			return "TRANSITION_STATE_FM_HOW_TO_TERMINATE";
		
		case 20:
			return "TRANSITION_STATE_WAIT_JOIN_FM_SESSION";
		
		case 31:
			return "TRANSITION_STATE_START_CREATOR_PRE_LAUNCH_SCRIPT_CHECK";
		
		case 32:
			return "TRANSITION_STATE_START_CREATOR_LAUNCH_SCRIPT";
		
		case 33:
			return "TRANSITION_STATE_CREATOR_TRANSITION_CREATE_PLAYER";
		
		case 34:
			return "TRANSITION_STATE_IS_CREATOR_AND_TRANSITION_READY";
		
		case 35:
			return "TRANSITION_STATE_CREATOR_SWOOP_DOWN";
		
		case 36:
			return "TRANSITION_STATE_CREATOR_FINAL_SETUP_PLAYER";
		
		case 37:
			return "TRANSITION_STATE_MOVE_CREATOR_TO_RUNNING_STATE";
		
		case 38:
			return "TRANSITION_STATE_PREJOINING_TESTBED_SESSION_CHECKS";
		
		case 39:
			return "TRANSITION_STATE_LOOK_FOR_FRESH_JOIN_TESTBED";
		
		case 40:
			return "TRANSITION_STATE_LOOK_FOR_FRESH_HOST_TESTBED";
		
		case 41:
			return "TRANSITION_STATE_LOOK_TO_JOIN_ANOTHER_SESSION_TESTBED";
		
		case 42:
			return "TRANSITION_STATE_LOOK_TO_HOST_SESSION_TESTBED";
		
		case 43:
			return "TRANSITION_STATE_CONFIRM_TESTBED_SESSION_JOINING";
		
		case 45:
			return "TRANSITION_STATE_START_TESTBED_LAUNCH_SCRIPT";
		
		case 46:
			return "TRANSITION_STATE_TESTBED_TRANSITION_CREATE_PLAYER";
		
		case 47:
			return "TRANSITION_STATE_IS_TESTBED_AND_TRANSITION_READY";
		
		case 48:
			return "TRANSITION_STATE_TESTBED_SWOOP_DOWN";
		
		case 49:
			return "TRANSITION_STATE_TESTBED_FINAL_SETUP_PLAYER";
		
		case 50:
			return "TRANSITION_STATE_MOVE_TESTBED_TO_RUNNING_STATE";
		
		case 51:
			return "TRANSITION_STATE_TESTBED_HOW_TO_TERMINATE";
		
		case 44:
			return "TRANSITION_STATE_WAIT_JOIN_TESTBED_SESSION";
		
		case 53:
			return "TRANSITION_STATE_WAIT_FOR_TRANSITION_SESSION_TO_SETUP";
		
		case 52:
			return "TRANSITION_STATE_QUIT_CURRENT_SESSION_PROMPT";
		
		case 54:
			return "TRANSITION_STATE_TERMINATE_SP";
		
		case 55:
			return "TRANSITION_STATE_WAIT_TERMINATE_SP";
		
		case 56:
			return "TRANSITION_STATE_KICK_TERMINATE_SESSION";
		
		case 57:
			return "TRANSITION_STATE_TERMINATE_SESSION";
		
		case 58:
			return "TRANSITION_STATE_WAIT_TERMINATE_SESSION";
		
		case 59:
			return "TRANSITION_STATE_TERMINATE_SESSION_AND_HOLD";
		
		case 60:
			return "TRANSITION_STATE_TERMINATE_SESSION_AND_MOVE_INTO_HOLDING_STATE";
		
		case 61:
			return "TRANSITION_STATE_TEAM_SWAPPING_CHECKS";
		
		case 62:
			return "TRANSITION_STATE_RETURN_TO_SINGLEPLAYER";
		
		case 63:
			return "TRANSITION_STATE_WAIT_FOR_SINGLEPLAYER_TO_START";
		
		case 64:
			return "TRANSITION_STATE_WAITING_FOR_EXTERNAL_TERMINATION_CALL";
		
		case 65:
			return "TRANSITION_STATE_TERMINATE_MAINTRANSITION";
		
		case 66:
			return "TRANSITION_STATE_WAIT_FOR_DIRTY_LOAD_CONFIRM";
		
		default:
	}
	return "";
}

var func_665()//Position - 0x747A9
{
	return Global_1315846;
}

void func_666(int iParam0)//Position - 0x747B5
{
	var uVar0;
	
	uVar0 = func_115();
	Global_1315845 = iParam0;
}

void func_667(int iParam0)//Position - 0x747C9
{
	int iVar0;
	
	func_668(&Global_17038);
	graphics::_0x22A249A53034450A(0);
	iVar0 = 1;
	if (iParam0)
	{
		if (iVar0 == 1)
		{
			streaming::stop_player_switch();
			func_672(0);
			if (entity::does_entity_exist(Global_1318697))
			{
				if (entity::does_entity_belong_to_this_script(Global_1318697, 0))
				{
					if (!entity::is_entity_a_mission_entity(Global_1318697))
					{
						entity::set_entity_as_mission_entity(Global_1318697, false, 0);
					}
					ped::delete_ped(&Global_1318697);
				}
			}
		}
	}
}

void func_668(var uParam0)//Position - 0x7482C
{
	uParam0->f_15 = 0;
	uParam0->f_16 = 0;
	uParam0->f_17 = 0;
	uParam0->f_18 = 0;
	uParam0->f_19 = 0;
	uParam0->f_20 = 0;
	if (cam::does_cam_exist(uParam0->f_9))
	{
		if (cam::is_cam_active(uParam0->f_9))
		{
			func_671(0);
		}
		cam::destroy_cam(uParam0->f_9, 0);
	}
	if (!Global_36805)
	{
		cam::stop_gameplay_cam_shaking(true);
		cam::_0x487A82C650EB7799(0f);
		cam::_0x0225778816FDC28C(0f);
	}
	Global_2404956.f_556 = 0f;
	cam::render_script_cams(false, false, 0, 1, 0, 0);
}

void func_669()//Position - 0x7489E
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 35)
	{
		ui::_remove_notification(Global_101154.f_12831[iVar0 /*104*/].f_16);
		iVar0++;
	}
}

int func_670(var uParam0, int iParam1)//Position - 0x748CA
{
	return (uParam0 && iParam1) != 0;
}

void func_671(int iParam0)//Position - 0x748D9
{
	Global_17116 = iParam0;
}

void func_672(int iParam0)//Position - 0x748E6
{
	if (iParam0 == 0)
	{
		Global_2445441 = 0;
	}
	Global_1312466.f_18 = iParam0;
}

var func_673()//Position - 0x74901
{
	return Global_1315913;
}

void func_674(int iParam0)//Position - 0x7490D
{
	if (iParam0)
	{
		func_678();
		if (Global_14413.f_1 == 10 || Global_14413.f_1 == 9)
		{
			gameplay::set_bit(&Global_2284, 16);
		}
		Global_14413.f_1 = 1;
		if (func_677(0))
		{
			func_675(0);
		}
	}
	else if (Global_14413.f_1 == 1)
	{
		if (!Global_14413.f_1 == 0)
		{
			Global_14413.f_1 = 3;
		}
	}
}

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

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

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

void func_678()//Position - 0x74AAE
{
	if (Global_14413.f_1 == 9 || Global_14413.f_1 == 10)
	{
		Global_15765 = 0;
		Global_15761 = 1;
	}
}

bool func_679()//Position - 0x74AD7
{
	if (Global_14413.f_1 == 1)
	{
		return true;
	}
	return false;
}

void func_680(int iParam0, int iParam1)//Position - 0x74AF0
{
	if (entity::is_entity_a_mission_entity(iParam0))
	{
		vehicle::_0xC50CE861B55EAB8B(iParam0, iParam1);
	}
	else
	{
		entity::set_entity_as_mission_entity(iParam0, true, 0);
		vehicle::_0xC50CE861B55EAB8B(iParam0, iParam1);
		entity::set_vehicle_as_no_longer_needed(&iParam0);
	}
}

bool func_681(int iParam0, int iParam1)//Position - 0x74B22
{
	int iVar0;
	int iVar1;
	
	if (!iParam0->f_39)
	{
		iParam0->f_7 = 4;
		iParam0->f_39 = 1;
	}
	if ((iParam1 != 0 && iParam1 != 2) && iParam1 != 1)
	{
	}
	else
	{
		iVar0 = iParam0->f_34[iParam1] == 2;
		if (func_476(func_960()) != iParam1 || iVar0)
		{
			iVar1 = false;
			if ((iVar0 || iParam0->f_24[iParam1] != 0) || ((func_685(iParam1) && func_682(iParam1)) && !iParam0->f_18[iParam1]))
			{
				if (!iParam0->f_23)
				{
					if (!ped::is_ped_injured((*iParam0)[iParam1]) || iVar0)
					{
						if (iParam0->f_34[iParam1] != 1 && iParam0->f_34[iParam1] != 3)
						{
							iVar1 = true;
						}
					}
				}
				else if ((!ped::is_ped_injured(player::player_ped_id()) && (network::network_is_game_in_progress() || player::get_player_wanted_level(player::player_id()) == 0)) && !gameplay::is_bit_set(Global_89089.f_47, iParam1))
				{
					iVar1 = true;
				}
			}
			else if (!((gameplay::is_bit_set(Global_101154.f_7775.f_2[27 /*3*/], 1) && !Global_3) && !func_567(0)))
			{
				if (iParam0->f_23)
				{
					iVar1 = true;
				}
			}
			if (iVar1)
			{
				iParam0->f_7 = iParam1;
				return true;
			}
		}
	}
	iParam0->f_39 = 0;
	return false;
}

bool func_682(int iParam0)//Position - 0x74C7D
{
	if (Global_101154.f_7775 || Global_3)
	{
		if (!Global_69489 || (Global_69489 && iParam0 != func_476(func_684())))
		{
			if (!func_683(func_488(iParam0)))
			{
				return false;
			}
		}
	}
	return true;
}

int func_683(int iParam0)//Position - 0x74CCD
{
	if (func_269(iParam0))
	{
		if ((Global_101154.f_7775 || Global_3) || func_567(0))
		{
			return Global_101154.f_1826.f_539.f_1576[iParam0];
		}
		else
		{
			return 1;
		}
	}
	return 0;
}

var func_684()//Position - 0x74D1B
{
	return Global_101154.f_1826.f_539.f_3551;
}

bool func_685(int iParam0)//Position - 0x74D30
{
	if ((Global_101154.f_7775 || Global_3) || func_567(0))
	{
		if (!Global_69489 || (Global_69489 && iParam0 != func_476(func_684())))
		{
			if (((iParam0 == 0 && !func_453(115)) || (iParam0 == 1 && !func_453(116))) || (iParam0 == 2 && !func_453(117)))
			{
				return false;
			}
		}
	}
	return true;
}

void func_686(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, int iParam7)//Position - 0x74DBC
{
	int iVar0;
	int iVar1;
	vector3 vVar2;
	vector3 vVar5;
	int iVar8;
	int iVar9;
	int iVar10;
	
	uParam2->f_97 = 0;
	iVar0 = 145;
	if (!entity::is_entity_dead(iParam0, 0) && !entity::is_entity_dead(iParam1, 0))
	{
		iVar0 = func_270(iParam0);
		if (iVar0 > 3)
		{
			if (network::network_is_game_in_progress())
			{
			}
			return;
		}
		if (decorator::decor_exist_on(iParam1, "GetawayVehicleValid"))
		{
			if (decorator::decor_get_bool(iParam1, "GetawayVehicleValid"))
			{
				if ((Global_101154.f_7775.f_99.f_58[45] || Global_101154.f_7775.f_99.f_58[12]) || Global_101154.f_7775.f_99.f_58[34])
				{
					*uParam5 = 0;
					Global_91046[iVar0] = 0;
					return;
				}
			}
		}
		if (ped::is_ped_in_vehicle(iParam0, iParam1, 0) || iParam7)
		{
			*uParam5 = 2;
			Global_91046[iVar0] = iParam1;
		}
		else if (ped::is_ped_in_any_vehicle(iParam0, 0))
		{
			iParam1 = ped::get_vehicle_ped_is_in(iParam0, 0);
			*uParam5 = 2;
			Global_91046[iVar0] = iParam1;
		}
		else
		{
			iVar1 = 0;
			while (iVar1 < 68)
			{
				if (iParam1 == Global_68319.f_139[iVar1])
				{
					*uParam5 = 0;
					Global_91046[iVar0] = 0;
					return;
				}
				iVar1++;
			}
			if (!entity::is_entity_dead(Global_91046[iVar0], 0))
			{
				if (!func_308(Global_91046[iVar0], iVar0, 0) || ped::is_ped_in_vehicle(iParam0, Global_91046[iVar0], 0))
				{
					vVar2 = { entity::get_entity_coords(iParam0, 1) };
					vVar5 = { entity::get_entity_coords(Global_91046[iVar0], 1) };
					if (func_687(iParam0, Global_91046[iVar0], 0))
					{
						if (system::vdist2(vVar2, vVar5) < 22500f)
						{
							*uParam3 = { vVar5 };
							*uParam4 = entity::get_entity_heading(Global_91046[iVar0]);
							*uParam5 = 1;
							Global_91046[iVar0] = iParam1;
							if (system::vdist2(vVar2, vVar5) < (1.5f * 1.5f))
							{
							}
						}
					}
				}
				else
				{
					*uParam5 = 0;
					Global_91046[iVar0] = 0;
				}
			}
		}
	}
	if (entity::does_entity_exist(iParam1))
	{
		*uParam2 = entity::get_entity_model(iParam1);
		if (vehicle::get_vehicle_trailer_vehicle(iParam1, &iVar9))
		{
			uParam2->f_1 = entity::get_entity_model(iVar9);
		}
		uParam2->f_2 = vehicle::get_vehicle_dirt_level(iParam1);
		uParam2->f_3 = entity::get_entity_health(iParam1);
		uParam2->f_4 = vehicle::get_vehicle_colour_combination(iParam1);
		if (uParam2->f_4 > -1)
		{
			uParam2->f_9 = 1;
			uParam2->f_5 = -1;
			uParam2->f_6 = -1;
		}
		else
		{
			uParam2->f_9 = 0;
			vehicle::get_vehicle_colours(iParam1, &(uParam2->f_5), &(uParam2->f_6));
		}
		if (!vehicle::is_this_model_a_boat(*uParam2))
		{
			uParam2->f_10 = 1;
			vehicle::get_vehicle_extra_colours(iParam1, &(uParam2->f_7), &(uParam2->f_8));
		}
		else
		{
			uParam2->f_10 = 0;
			uParam2->f_7 = -1;
			uParam2->f_8 = -1;
		}
		StringCopy(&(uParam2->f_27), vehicle::get_vehicle_number_plate_text(iParam1), 16);
		uParam2->f_26 = vehicle::get_vehicle_number_plate_text_index(iParam1);
		uParam2->f_88 = vehicle::get_vehicle_tyres_can_burst(iParam1);
		vehicle::get_vehicle_tyre_smoke_color(iParam1, &(uParam2->f_84), &(uParam2->f_85), &(uParam2->f_86));
		uParam2->f_87 = vehicle::get_vehicle_window_tint(iParam1);
		vehicle::_get_vehicle_neon_lights_colour(iParam1, &(uParam2->f_93), &(uParam2->f_94), &(uParam2->f_95));
		if (vehicle::_is_vehicle_neon_light_enabled(iParam1, 2))
		{
			gameplay::set_bit(&(uParam2->f_92), 28);
		}
		else
		{
			gameplay::clear_bit(&(uParam2->f_92), 28);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(iParam1, 3))
		{
			gameplay::set_bit(&(uParam2->f_92), 29);
		}
		else
		{
			gameplay::clear_bit(&(uParam2->f_92), 29);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(iParam1, 0))
		{
			gameplay::set_bit(&(uParam2->f_92), 30);
		}
		else
		{
			gameplay::clear_bit(&(uParam2->f_92), 30);
		}
		if (vehicle::_is_vehicle_neon_light_enabled(iParam1, 1))
		{
			gameplay::set_bit(&(uParam2->f_92), 31);
		}
		else
		{
			gameplay::clear_bit(&(uParam2->f_92), 31);
		}
		uParam2->f_89 = vehicle::get_vehicle_livery(iParam1);
		uParam2->f_90 = vehicle::get_vehicle_wheel_type(iParam1);
		iVar8 = 0;
		while (iVar8 < 12)
		{
			uParam2->f_11[iVar8] = vehicle::is_vehicle_extra_turned_on(iParam1, iVar8 + 1);
			iVar8++;
		}
		if (vehicle::is_vehicle_a_convertible(iParam1, 0))
		{
			iVar10 = vehicle::get_convertible_roof_state(iParam1);
			if (iVar10 == 0 || iVar10 == 5)
			{
				uParam2->f_24 = 1;
			}
			else
			{
				uParam2->f_24 = 0;
			}
		}
		else
		{
			uParam2->f_24 = 0;
		}
		if (iParam0 == player::player_ped_id())
		{
			uParam2->f_25 = audio::get_player_radio_station_index();
		}
		func_289(&iParam1, &(uParam2->f_31), &(uParam2->f_81));
		uParam2->f_96 = vehicle::_get_vehicle_paint_fade(iParam1);
		uParam2->f_97 = func_305(iParam1);
		*uParam6 = -1;
		switch (iVar0)
		{
			case 0:
				if (Global_101154.f_18807.f_69[0 /*78*/].f_66 == entity::get_entity_model(iParam1))
				{
					*uParam6 = 12;
				}
				break;
			
			case 1:
				if (Global_101154.f_18807.f_69[1 /*78*/].f_66 == entity::get_entity_model(iParam1))
				{
					*uParam6 = 13;
				}
				break;
			
			case 2:
				if (Global_101154.f_18807.f_69[2 /*78*/].f_66 == entity::get_entity_model(iParam1))
				{
					*uParam6 = 14;
				}
				break;
		}
	}
	else
	{
		*uParam5 = 0;
		*uParam3 = { 0f, 0f, 0f };
		*uParam4 = 0f;
		*uParam2 = 0;
		uParam2->f_1 = 0;
		uParam2->f_2 = 0f;
		uParam2->f_3 = 0;
		uParam2->f_4 = 0;
		uParam2->f_5 = 0;
		uParam2->f_6 = 0;
		uParam2->f_7 = 0;
		uParam2->f_8 = 0;
		uParam2->f_9 = 0;
		uParam2->f_10 = 0;
		iVar8 = 0;
		while (iVar8 < uParam2->f_11)
		{
			uParam2->f_11[iVar8] = 0;
			iVar8++;
		}
		uParam2->f_24 = 0;
		uParam2->f_25 = 0;
		*uParam5 = 0;
		*uParam6 = -1;
		uParam2->f_96 = 0f;
	}
}

bool func_687(int iParam0, int iParam1, int iParam2)//Position - 0x752C5
{
	int iVar0;
	
	if (ped::is_ped_in_vehicle(iParam0, iParam1, iParam2))
	{
		iVar0 = entity::get_entity_model(iParam1);
		if (vehicle::is_this_model_a_boat(iVar0) || (iVar0 == joaat("submersible") || iVar0 == joaat("submersible2")))
		{
			if (entity::is_entity_in_water(iParam1))
			{
				return false;
			}
			return true;
		}
		if ((vehicle::is_this_model_a_plane(iVar0) || vehicle::is_this_model_a_heli(iVar0)) || iVar0 == joaat("blimp"))
		{
			if (entity::is_entity_in_air(iParam1))
			{
				return false;
			}
			return true;
		}
		return true;
	}
	return false;
}

void func_688()//Position - 0x75351
{
	func_703();
	func_702();
	func_701();
	switch (iLocal_3312)
	{
		case 0:
			vLocal_3433 = { entity::get_entity_coords(player::player_ped_id(), 1) };
			if (vehicle::is_vehicle_driveable(Local_1630, 0))
			{
				unk1::_0x293220DA1B46CEBC(5f, 5f, 4);
				Local_1630.f_2 = func_610(Local_1630, 0, 0);
				func_436("cntry_god35", 7500, 1);
			}
			func_442(&(Local_3473[0 /*165*/]), 0, 0, "michael", 0, 1);
			iLocal_3226 = gameplay::get_game_timer();
			iLocal_3312++;
			break;
		
		case 1:
			if (vehicle::is_vehicle_driveable(Local_1630, 0))
			{
				if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1630))
				{
					if (ui::does_blip_exist(Local_1630.f_2))
					{
						ui::remove_blip(&(Local_1630.f_2));
					}
					unk1::_0x293220DA1B46CEBC(5f, 5f, 4);
					func_436("cntry_god36", 7500, 1);
					iLocal_3312 = 2;
				}
			}
			else
			{
				if (ui::does_blip_exist(Local_1630.f_2))
				{
					ui::remove_blip(&(Local_1630.f_2));
				}
				func_436("cntry_god36", 7500, 1);
				iLocal_3312 = 2;
			}
			if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), vLocal_3433, 1) > 200f)
			{
				iLocal_3312 = 2;
			}
			break;
		
		case 2:
			if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), vLocal_3433, 1) > 200f)
			{
				if (ui::does_blip_exist(Local_1630.f_2))
				{
					ui::remove_blip(&(Local_1630.f_2));
				}
				if (func_692(&(Local_3473[0 /*165*/]), 0, "HeatAud", "fbi4_phoneM", 8, 1, 0, 0, 0))
				{
					unk1::_0x293220DA1B46CEBC(5f, 5f, 4);
					ui::clear_this_print("cntry_god36");
					entity::set_vehicle_as_no_longer_needed(&Local_1177);
					streaming::set_model_as_no_longer_needed(Local_1177.f_1);
					iLocal_3312++;
				}
			}
			break;
		
		case 3:
			streaming::request_model(func_93(0));
			streaming::request_model(Local_1615.f_1);
			streaming::request_model(Local_2568.f_1);
			streaming::request_model(Local_1464.f_1);
			vehicle::request_vehicle_recording(301, "lkheat");
			vehicle::request_vehicle_recording(302, "lkheat");
			if ((((((streaming::has_model_loaded(func_93(0)) && streaming::has_model_loaded(Local_1615.f_1)) && streaming::has_model_loaded(Local_2568.f_1)) && streaming::has_model_loaded(Local_1464.f_1)) && vehicle::has_vehicle_recording_been_loaded(301, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(302, "lkheat")) && func_691())
			{
				switch (func_690(player::player_ped_id(), &vLocal_3436))
				{
					case 0:
						Local_1615.f_3 = { -2855.658f, 1280.972f, 59.1824f };
						Local_1615.f_6 = 277.9344f;
						Local_1615.f_13 = 301;
						break;
					
					case 1:
						Local_1615.f_3 = { -2033.492f, 1993.021f, 188.9565f };
						Local_1615.f_6 = 30.3781f;
						Local_1615.f_13 = 302;
						break;
				}
				func_689(&iLocal_3099, 0, 1);
				func_689(&iLocal_3099, 1, 0);
				func_689(&iLocal_3099, 2, 0);
				func_544(&iLocal_3099, 0, 0);
				func_544(&iLocal_3099, 1, 0);
				func_544(&iLocal_3099, 2, 0);
				gameplay::clear_area(Local_1615.f_3, 20f, 1, 0, 0, false);
				func_284(&Local_1615, 0, Local_1615.f_3, Local_1615.f_6, 0, 0);
				vehicle::start_playback_recorded_vehicle(Local_1615, Local_1615.f_13, "lkheat", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1615, 5000f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1615, 1);
				vehicle::set_playback_speed(Local_1615, 0f);
				entity::set_entity_only_damaged_by_player(Local_1615, true);
				pathfind::set_roads_in_area(object::_get_object_offset_from_coords(Local_1615.f_3, Local_1615.f_6, -200f, 200f, 200f), object::_get_object_offset_from_coords(Local_1615.f_3, Local_1615.f_6, 200f, -200f, -200f), false, 1);
				func_437(&(iLocal_3099[0]), 0, Local_1615, -1, 0, 0, 0);
				func_252(iLocal_3099[0], 14, 112, 1, -1, 0, 0, 0, -1, -1, -1, 0);
				ped::set_blocking_of_non_temporary_events(iLocal_3099[0], true);
				func_442(&(Local_3473[0 /*165*/]), 0, iLocal_3099[0], "michael", 0, 1);
				func_689(&iLocal_3099, 0, 1);
				vLocal_3433 = { entity::get_entity_coords(player::player_ped_id(), 1) };
				iLocal_1126 = 10;
			}
			break;
	}
}

void func_689(int iParam0, int iParam1, int iParam2)//Position - 0x75747
{
	if (iParam1 != 4)
	{
		iParam0->f_8[iParam1] = iParam2;
	}
}

int func_690(int iParam0, var uParam1)//Position - 0x7575F
{
	float fVar0;
	float fVar1;
	int iVar2;
	int iVar3;
	
	iVar2 = 0;
	iVar3 = 0;
	iVar3 = 0;
	while (iVar3 <= (*uParam1 - 1))
	{
		fVar1 = gameplay::get_distance_between_coords(entity::get_entity_coords(iParam0, 1), *(uParam1[iVar3 /*3*/]), 1);
		if (iVar3 == 0)
		{
			fVar0 = fVar1;
			iVar2 = 0;
		}
		else if (fVar1 > fVar0)
		{
			fVar0 = fVar1;
			iVar2 = iVar3;
		}
		iVar3++;
	}
	return iVar2;
}

bool func_691()//Position - 0x757BB
{
	if (Global_15712 == 0)
	{
		return true;
	}
	return false;
}

int func_692(var uParam0, int iParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8)//Position - 0x757D2
{
	func_700(uParam0, iParam1, sParam2, iParam6, iParam7, 0);
	Global_15760 = 0;
	Global_15719 = 1;
	Global_15726 = 0;
	Global_15721 = 0;
	Global_16703 = 0;
	Global_16705 = 0;
	Global_16709 = 0;
	Global_15717 = 0;
	Global_15764 = 0;
	Global_15766 = 0;
	if (iParam5 == 1)
	{
		Global_15724 = 1;
	}
	else
	{
		Global_15724 = 0;
	}
	Global_2621441 = 0;
	return func_693(sParam3, iParam4, iParam8);
}

bool func_693(char* sParam0, int iParam1, int iParam2)//Position - 0x75831
{
	Global_15713 = 0;
	if (Global_15712 == 0 || Global_15714 == 2)
	{
		if (Global_15712 != 0)
		{
			if (iParam1 > Global_15714)
			{
				if (Global_15719 == 0)
				{
					audio::stop_scripted_conversation(false);
					Global_14413.f_1 = 3;
					Global_15712 = 0;
					Global_15713 = 1;
					Global_15765 = 0;
					Global_15708 = 0;
					Global_15709 = 0;
					Global_15723 = 0;
					Global_15722 = 0;
					Global_14412 = 0;
				}
				else
				{
					func_601();
					return false;
				}
			}
			else
			{
				return false;
			}
		}
		if (audio::is_scripted_conversation_ongoing())
		{
			return false;
		}
		if (func_699(8, -1))
		{
			return false;
		}
		Global_15788 = { Global_15782 };
		func_698();
		Global_15001 = { Global_15166 };
		Global_15718 = Global_15719;
		Global_15725 = Global_15726;
		Global_2621442 = Global_2621441;
		Global_15727 = { Global_15743 };
		Global_15720 = Global_15721;
		Global_16702 = Global_16703;
		Global_16710 = { Global_16716 };
		Global_16704 = Global_16705;
		Global_16706 = Global_16707;
		Global_16708 = Global_16709;
		Global_15331.f_370 = Global_16701;
		Global_15331.f_368 = Global_16699;
		Global_15331.f_369 = Global_16700;
		Global_15708 = Global_15709;
		if (Global_15718)
		{
			gameplay::clear_bit(&Global_2283, 20);
			gameplay::clear_bit(&Global_2284, 17);
			gameplay::clear_bit(&Global_2285, 0);
			if (iParam2)
			{
				func_697();
				if (Global_3088[Global_14413 /*2811*/][0 /*281*/].f_259 == 2)
				{
					if (iParam1 == 13)
					{
					}
					else
					{
						return false;
					}
				}
				if (Global_14413.f_1 > 3)
				{
					return false;
				}
			}
			if (Global_14379 == 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_696())
				{
					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_69489)
				{
					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_282())
			{
				return false;
			}
			else
			{
				switch (Global_14413.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_2283, 9))
				{
					return false;
				}
			}
			func_695();
			Global_15722 = iParam2;
		}
		Global_15714 = iParam1;
		StringCopy(&Global_15331, sParam0, 24);
		Global_14578 = 0;
		func_694();
		return true;
	}
	if (Global_15712 == 5)
	{
		return false;
	}
	if (iParam1 < Global_15714 || iParam1 == Global_15714)
	{
		return false;
	}
	if (iParam1 == 2)
	{
	}
	else
	{
		func_601();
	}
	return false;
}

void func_694()//Position - 0x75AFD
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= 69)
	{
		StringCopy(&(Global_14580[iVar0 /*6*/]), "", 24);
		iVar0++;
	}
	audio::stop_scripted_conversation(false);
	Global_15712 = 1;
}

void func_695()//Position - 0x75B2F
{
	Global_15765 = Global_15764;
	Global_15759 = Global_15760;
	Global_15806 = { Global_15794 };
	Global_15812 = { Global_15800 };
	Global_15767 = Global_15766;
	Global_15836 = { Global_15818 };
	Global_15842 = { Global_15824 };
	Global_15848 = { Global_15830 };
	Global_15854 = { Global_15860 };
	Global_1598 = Global_1599;
	Global_1600 = Global_1601;
	Global_15723 = Global_15724;
	Global_15725 = Global_15726;
	Global_15727 = { Global_15743 };
	Global_15716 = Global_15717;
	Global_16728 = 0;
	Global_15761 = 0;
	Global_15762 = 0;
	gameplay::clear_bit(&Global_2284, 16);
}

bool func_696()//Position - 0x75BC4
{
	int iVar0;
	int iVar1;
	
	if (Global_69489)
	{
		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_697()//Position - 0x75C5D
{
	if (func_22(14))
	{
		if (!entity::is_entity_dead(player::player_ped_id(), 0))
		{
			if (entity::get_entity_model(player::player_ped_id()) == Global_101154.f_32575[0 /*29*/])
			{
				Global_14413 = 0;
			}
			else if (entity::get_entity_model(player::player_ped_id()) == Global_101154.f_32575[1 /*29*/])
			{
				Global_14413 = 1;
			}
			else if (entity::get_entity_model(player::player_ped_id()) == Global_101154.f_32575[2 /*29*/])
			{
				Global_14413 = 2;
			}
			else
			{
				Global_14413 = 0;
			}
		}
	}
	else
	{
		Global_14413 = func_960();
		if (Global_14413 == 145)
		{
			Global_14413 = 3;
		}
		if (Global_69489)
		{
			Global_14413 = 3;
		}
		if (Global_14413 > 3)
		{
			Global_14413 = 3;
		}
	}
}

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

int func_699(int iParam0, int iParam1)//Position - 0x75D57
{
	switch (iParam0)
	{
		case 5:
			if (iParam1 > -1)
			{
				return Global_1338622.f_203[iParam1];
			}
			break;
	}
	return gameplay::is_bit_set(Global_1338622.f_949, iParam0);
}

void func_700(var uParam0, int iParam1, char* sParam2, int iParam3, int iParam4, int iParam5)//Position - 0x75D92
{
	Global_15166 = { *uParam0 };
	Global_1599 = iParam1;
	StringCopy(&Global_15782, sParam2, 24);
	Global_16701 = iParam5;
	if (iParam3 == 0)
	{
		Global_16699 = 1;
		Global_16697 = 0;
	}
	else
	{
		Global_16699 = 0;
		Global_16697 = 1;
	}
	if (iParam4 == 0)
	{
		Global_16700 = 1;
		Global_16698 = 0;
	}
	else
	{
		Global_16700 = 0;
		Global_16698 = 1;
	}
}

void func_701()//Position - 0x75DE8
{
	int iVar0;
	
	switch (iLocal_3406)
	{
		case 0:
			streaming::request_anim_dict("misscommon@std_take_off_masks");
			if (streaming::has_anim_dict_loaded("misscommon@std_take_off_masks"))
			{
				if (ped::is_ped_sitting_in_any_vehicle(player::player_ped_id()))
				{
					if (func_539(&iVar0))
					{
						if (vehicle::is_this_model_a_car(entity::get_entity_model(iVar0)))
						{
							controls::disable_control_action(0, 75, 1);
							if (cam::_0xEE778F8C7E1142E2(1) != 4)
							{
								ai::task_play_anim(player::player_ped_id(), "misscommon@std_take_off_masks", "take_off_mask_ds", 8f, -8f, -1, 0, 0f, 0, 0, 0);
								iLocal_3406++;
							}
							else
							{
								iLocal_3406 = 2;
							}
						}
						else if (vehicle::is_this_model_a_bike(entity::get_entity_model(iVar0)))
						{
							if (ped::is_ped_wearing_helmet(player::player_ped_id()))
							{
								iLocal_3406 = 2;
							}
						}
					}
				}
			}
			break;
		
		case 1:
			controls::disable_control_action(0, 75, 1);
			if (entity::is_entity_playing_anim(player::player_ped_id(), "misscommon@std_take_off_masks", "take_off_mask_ds", 3))
			{
				if (entity::get_entity_anim_current_time(player::player_ped_id(), "misscommon@std_take_off_masks", "take_off_mask_ds") > 0.25f)
				{
					if (Global_101154.f_1826.f_539.f_1627[1] == 14)
					{
						func_252(player::player_ped_id(), 14, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					}
					else
					{
						func_252(player::player_ped_id(), 9, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0);
					}
					iLocal_3406++;
				}
			}
			break;
		
		case 2:
			controls::disable_control_action(0, 75, 1);
			if (!entity::is_entity_playing_anim(player::player_ped_id(), "misscommon@std_take_off_masks", "take_off_mask_ds", 3))
			{
				streaming::remove_anim_dict("misscommon@std_take_off_masks");
				iLocal_3406++;
			}
			break;
		
		case 3:
			break;
	}
}

void func_702()//Position - 0x75F66
{
	if (!entity::does_entity_exist(Local_1630))
	{
		Local_1630 = func_574(25);
		if (entity::does_entity_exist(Local_1630))
		{
			if (vehicle::is_vehicle_driveable(Local_1630, 0))
			{
				entity::set_entity_as_mission_entity(Local_1630, true, 1);
				entity::set_entity_proofs(Local_1630, false, true, true, false, false, false, 0, false);
			}
		}
	}
}

void func_703()//Position - 0x75FAF
{
	switch (iLocal_3381)
	{
		case 0:
			if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), vLocal_3808, 1) < 100f)
			{
				audio::request_script_audio_bank("SCRIPT\FBI_04_HEAT_GARBAGE_TRUCK_EXPLODE", false);
				iLocal_3381++;
			}
			break;
		
		case 1:
			if (entity::is_entity_dead(Local_1177, 0))
			{
				audio::play_sound_from_coord(iLocal_3411, "Garbage_Truck_Explosion", entity::get_entity_coords(Local_1177, 0), "FBI_04_HEAT_SOUNDS", 0, 0, 0);
				iLocal_3381++;
			}
			break;
		
		case 2:
			if (audio::has_sound_finished(iLocal_3411))
			{
				audio::release_script_audio_bank();
				iLocal_3381++;
			}
			break;
		
		case 3:
			break;
	}
}

bool func_704()//Position - 0x76057
{
	func_702();
	func_729();
	func_728();
	func_725();
	func_724();
	func_723();
	func_703();
	func_722();
	if (func_713())
	{
		iLocal_1126 = 9;
		return true;
	}
	func_712();
	func_595();
	func_708();
	if (!iLocal_3185)
	{
		if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), 882.5773f, -2347.359f, 29.3307f, 1) > 150f)
		{
			func_706();
			ped::add_scenario_blocking_area(965.2f, -1693f, -100f, 1144.9f, -1929.1f, 100f, 0, 1, 1, 1);
		}
	}
	func_705();
	return false;
}

void func_705()//Position - 0x760F8
{
	if (!iLocal_3201)
	{
		if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), 882.5773f, -2347.359f, 29.3307f, 1) > 250f)
		{
			player::clear_player_wanted_level(player::player_id());
			gameplay::set_fake_wanted_level(0);
			player::set_max_wanted_level(1);
			ped::set_create_random_cops(false);
			player::set_wanted_level_multiplier(0.1f);
			func_439();
			gameplay::_0x9B2BD3773123EA2F(1, false);
			gameplay::_0x9B2BD3773123EA2F(2, false);
			gameplay::_0x9B2BD3773123EA2F(4, false);
			gameplay::_0x9B2BD3773123EA2F(12, false);
			gameplay::_0x9B2BD3773123EA2F(7, false);
			gameplay::_0x9B2BD3773123EA2F(8, false);
			gameplay::_0x9B2BD3773123EA2F(9, false);
			gameplay::_0x9B2BD3773123EA2F(10, false);
			iLocal_3201 = 1;
		}
	}
}

void func_706()//Position - 0x76189
{
	int iVar0;
	
	iVar0 = 0;
	pathfind::set_roads_back_to_original(770f, -1982.81f, 100f, 1045f, -2500f, -100f, 1);
	pathfind::set_ped_paths_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, true, 0);
	pathfind::set_roads_back_to_original(1412.83f, -1954.96f, -100f, 1406.5f, -1941.47f, 100f, 1);
	pathfind::set_roads_back_to_original(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, 1);
	pathfind::set_roads_back_to_original(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, 1);
	entity::set_vehicle_as_no_longer_needed(&Local_1207);
	streaming::set_model_as_no_longer_needed(Local_1207.f_1);
	iVar0 = 0;
	while (iVar0 <= (Local_1725 - 1))
	{
		entity::set_ped_as_no_longer_needed(&(Local_1725[iVar0 /*20*/]));
		streaming::set_model_as_no_longer_needed(Local_1725[iVar0 /*20*/].f_1);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_1222 - 1))
	{
		if (entity::does_entity_exist(Local_1222[iVar0 /*15*/]))
		{
			if (!vehicle::is_vehicle_driveable(Local_1222[iVar0 /*15*/], 0))
			{
				func_707(315, 1, 0);
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_1222 - 1))
	{
		entity::set_vehicle_as_no_longer_needed(&(Local_1222[iVar0 /*15*/]));
		streaming::set_model_as_no_longer_needed(Local_1222[iVar0 /*15*/].f_1);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2446 - 1))
	{
		entity::set_ped_as_no_longer_needed(&(Local_2446[iVar0 /*20*/]));
		streaming::set_model_as_no_longer_needed(Local_2446[iVar0 /*20*/].f_1);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2648 - 1))
	{
		entity::set_ped_as_no_longer_needed(&(Local_2648[iVar0 /*20*/]));
		streaming::set_model_as_no_longer_needed(Local_2648[iVar0 /*20*/].f_1);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2709 - 1))
	{
		entity::set_ped_as_no_longer_needed(&(Local_2709[iVar0 /*20*/]));
		streaming::set_model_as_no_longer_needed(Local_2709[iVar0 /*20*/].f_1);
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_1433 - 1))
	{
		entity::set_vehicle_as_no_longer_needed(&(Local_1433[iVar0 /*15*/]));
		streaming::set_model_as_no_longer_needed(Local_1433[iVar0 /*15*/].f_1);
		entity::set_ped_as_no_longer_needed(&(Local_2527[iVar0 /*20*/]));
		streaming::set_model_as_no_longer_needed(Local_2527[iVar0 /*20*/].f_1);
		iVar0++;
	}
	entity::set_vehicle_as_no_longer_needed(&Local_1192);
	streaming::set_model_as_no_longer_needed(Local_1192.f_1);
	entity::set_ped_as_no_longer_needed(&Local_1645);
	entity::set_ped_as_no_longer_needed(&Local_1665);
	entity::set_ped_as_no_longer_needed(&Local_1685);
	entity::set_ped_as_no_longer_needed(&Local_1705);
	streaming::set_model_as_no_longer_needed(Local_1685.f_1);
	entity::set_object_as_no_longer_needed(&Local_2933);
	streaming::set_model_as_no_longer_needed(Local_2933.f_2);
	streaming::set_model_as_no_longer_needed(joaat("s_m_y_cop_01"));
	streaming::set_model_as_no_longer_needed(joaat("s_m_y_swat_01"));
	vehicle::remove_vehicle_asset(Local_1222[0 /*15*/].f_1);
	vehicle::remove_vehicle_recording(2, "lkcountry");
	vehicle::remove_vehicle_recording(3, "lkcountry");
	vehicle::remove_vehicle_recording(4, "lkcountry");
	vehicle::remove_vehicle_recording(5, "lkcountry");
	vehicle::remove_vehicle_recording(10, "lkcountry");
	vehicle::remove_vehicle_recording(11, "lkcountry");
	vehicle::remove_vehicle_recording(12, "lkcountry");
	vehicle::remove_vehicle_recording(14, "lkcountry");
	vehicle::remove_vehicle_recording(15, "lkcountry");
	vehicle::remove_vehicle_recording(16, "lkcountry");
	vehicle::remove_vehicle_recording(Local_1433[0 /*15*/].f_13, "lkfbi4");
	vehicle::remove_vehicle_recording(Local_1433[1 /*15*/].f_13, "lkfbi4");
	vehicle::remove_vehicle_recording(Local_1222[0 /*15*/].f_13, "lkfbi4");
	vehicle::remove_vehicle_recording(Local_1222[1 /*15*/].f_13, "lkfbi4");
	vehicle::remove_vehicle_recording(Local_1222[2 /*15*/].f_13, "lkfbi4");
	vehicle::remove_vehicle_recording(Local_1222[3 /*15*/].f_13, "lkfbi4");
	vehicle::remove_vehicle_recording(Local_1222[4 /*15*/].f_13, "lkfbi4");
	vehicle::remove_vehicle_recording(Local_1222[5 /*15*/].f_13, "lkfbi4");
	streaming::set_vehicle_population_budget(3);
	streaming::set_ped_population_budget(3);
	iLocal_3185 = 1;
}

void func_707(int iParam0, int iParam1, int iParam2)//Position - 0x76520
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < Global_67844)
	{
		if (Global_67845[iVar0 /*9*/] == iParam0)
		{
			if (iParam2)
			{
				Global_67845[iVar0 /*9*/].f_1 = iParam1;
			}
			else
			{
				Global_67845[iVar0 /*9*/].f_1 = (Global_67845[iVar0 /*9*/].f_1 + iParam1);
			}
			return;
		}
		iVar0++;
	}
	if (Global_67845[iVar0 /*9*/] != -1)
	{
		if (Global_55974[Global_67845[iVar0 /*9*/] /*13*/] == 3)
		{
			if (Global_67845[iVar0 /*9*/].f_1 > 1)
			{
				Global_67845[iVar0 /*9*/].f_1 = 1;
			}
			if (Global_67845[iVar0 /*9*/].f_1 < 0)
			{
				Global_67845[iVar0 /*9*/].f_1 = 0;
			}
		}
	}
}

void func_708()//Position - 0x765CA
{
	if (entity::does_entity_exist(iLocal_3099[2]))
	{
		if (!ped::is_ped_injured(iLocal_3099[2]))
		{
			switch (iLocal_3408)
			{
				case 0:
					if (!func_596())
					{
						if (func_960() == 1)
						{
							if (((((func_711(&Local_1725, 1) && func_710(&Local_2648)) && func_710(&Local_2709)) || !ped::is_ped_in_combat(iLocal_3099[2], 0)) || func_709(iLocal_3099[2], 40f)) || func_272(&iLocal_3380, 15000))
							{
								ped::set_ped_keep_task(iLocal_3099[2], true);
								ai::open_sequence_task(&iLocal_3465);
								ai::task_clear_look_at(0);
								ai::task_smart_flee_coord(0, 901.9453f, -2383.368f, 29.2789f, 5000f, -1, 0, 0);
								ai::close_sequence_task(iLocal_3465);
								ai::task_perform_sequence(iLocal_3099[2], iLocal_3465);
								ai::clear_sequence_task(&iLocal_3465);
								ped::_0x5AAB586FFEC0FD96(iLocal_3099[2]);
								entity::set_ped_as_no_longer_needed(&(iLocal_3099[2]));
								streaming::set_model_as_no_longer_needed(func_93(2));
								iLocal_3408++;
							}
						}
					}
					break;
				
				case 1:
					break;
				}
			}
	}
}

bool func_709(int iParam0, float fParam1)//Position - 0x766E4
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= (Local_1725 - 1))
	{
		if (entity::does_entity_exist(Local_1725[iVar0 /*20*/]))
		{
			if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
			{
				if (gameplay::get_distance_between_coords(entity::get_entity_coords(iParam0, 1), entity::get_entity_coords(Local_1725[iVar0 /*20*/], 1), 1) < fParam1)
				{
					return false;
				}
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2648 - 1))
	{
		if (entity::does_entity_exist(Local_2648[iVar0 /*20*/]))
		{
			if (!ped::is_ped_injured(Local_2648[iVar0 /*20*/]))
			{
				if (gameplay::get_distance_between_coords(entity::get_entity_coords(iParam0, 1), entity::get_entity_coords(Local_2648[iVar0 /*20*/], 1), 1) < fParam1)
				{
					return false;
				}
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2709 - 1))
	{
		if (entity::does_entity_exist(Local_2709[iVar0 /*20*/]))
		{
			if (!ped::is_ped_injured(Local_2709[iVar0 /*20*/]))
			{
				if (gameplay::get_distance_between_coords(entity::get_entity_coords(iParam0, 1), entity::get_entity_coords(Local_2709[iVar0 /*20*/], 1), 1) < fParam1)
				{
					return false;
				}
			}
		}
		iVar0++;
	}
	return true;
}

bool func_710(int iParam0)//Position - 0x767EC
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 <= (*iParam0 - 1))
	{
		if (entity::does_entity_exist((*iParam0)[iVar1 /*20*/]))
		{
			if (ped::is_ped_injured((*iParam0)[iVar1 /*20*/]))
			{
				entity::set_ped_as_no_longer_needed(iParam0[iVar1 /*20*/]);
				if ((*iParam0)[iVar1 /*20*/] == Local_2648[iVar1 /*20*/])
				{
					iLocal_3387++;
				}
				else if ((*iParam0)[iVar1 /*20*/] == Local_2709[iVar1 /*20*/])
				{
					iLocal_3388++;
				}
				iVar0++;
			}
		}
		else
		{
			iVar0++;
		}
		iVar1++;
	}
	iLocal_3387 = iLocal_3387;
	iLocal_3388 = iLocal_3388;
	if (iVar0 == *iParam0)
	{
		return true;
	}
	return false;
}

bool func_711(int iParam0, int iParam1)//Position - 0x7688F
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 <= (*iParam0 - 1))
	{
		if (entity::does_entity_exist((*iParam0)[iVar0 /*20*/]))
		{
			if (ped::is_ped_injured((*iParam0)[iVar0 /*20*/]))
			{
				if (iParam1)
				{
					entity::set_ped_as_no_longer_needed(iParam0[iVar0 /*20*/]);
				}
				if (ui::does_blip_exist((iParam0[iVar0 /*20*/])->f_2))
				{
					ui::remove_blip(&((iParam0[iVar0 /*20*/])->f_2));
				}
				iVar1++;
			}
		}
		else if ((iParam0[iVar0 /*20*/])->f_14)
		{
			iVar1++;
		}
		iVar0++;
	}
	if (iVar1 == *iParam0)
	{
		return true;
	}
	return false;
}

void func_712()//Position - 0x7691B
{
	if (entity::does_entity_exist(iLocal_3099[0]))
	{
		if (!ped::is_ped_injured(iLocal_3099[0]))
		{
			switch (iLocal_3374)
			{
				case 0:
					if (!func_596())
					{
						if (func_960() == 1)
						{
							if (((((func_711(&Local_1725, 1) && func_710(&Local_2648)) && func_710(&Local_2709)) || !ped::is_ped_in_combat(iLocal_3099[0], 0)) || func_709(iLocal_3099[0], 40f)) || func_272(&iLocal_3380, 15000))
							{
								ai::clear_ped_tasks(iLocal_3099[0]);
								func_320(iLocal_3099[0], 1);
								ped::set_blocking_of_non_temporary_events(iLocal_3099[0], true);
								ped::set_ped_keep_task(iLocal_3099[0], true);
								ai::open_sequence_task(&iLocal_3465);
								ai::task_clear_look_at(0);
								ai::task_smart_flee_coord(0, 901.9453f, -2383.368f, 29.2789f, 5000f, -1, 0, 0);
								ai::close_sequence_task(iLocal_3465);
								ai::task_perform_sequence(iLocal_3099[0], iLocal_3465);
								ai::clear_sequence_task(&iLocal_3465);
								ped::_0x5AAB586FFEC0FD96(iLocal_3099[0]);
								entity::set_ped_as_no_longer_needed(&(iLocal_3099[0]));
								streaming::set_model_as_no_longer_needed(func_93(0));
								iLocal_3374++;
							}
						}
					}
					break;
				
				case 1:
					break;
				}
			}
	}
}

bool func_713()//Position - 0x76A55
{
	if (entity::is_entity_dead(Local_1177, 0))
	{
		player::clear_player_wanted_level(player::player_id());
		iLocal_3302 = 3;
	}
	switch (iLocal_3302)
	{
		case 0:
			if (vehicle::is_vehicle_driveable(Local_1177, 0))
			{
				vehicle::set_vehicle_doors_locked(Local_1177, 1);
				func_720(&Local_1177);
			}
			iLocal_3302++;
			break;
		
		case 1:
			if (!func_719("FBI4_ENTER_VEHICLE_MA"))
			{
				if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1177))
				{
					audio::trigger_music_event("FBI4_ENTER_VEHICLE_MA");
					unk1::_0x293220DA1B46CEBC(5f, 5f, 4);
					func_716("FBI4_ENTER_VEHICLE_MA", 1);
				}
			}
			if (func_715(&Local_3074, vLocal_3808, 30f, 30f, 2f, 0, Local_1177, "cntry_god27", "cntry_god14", "cntry_god13", 0, 0, 1, -1))
			{
				func_611(&Local_3074, 1, 0);
				func_714();
				vehicle::_0x4D9D109F63FEE1D4(Local_1177, 1);
				func_436("cntry_god28", 7500, 1);
				unk1::_0x293220DA1B46CEBC(5f, 5f, 4);
				iLocal_3302 = 3;
			}
			if (entity::is_entity_at_coord(Local_1177, vLocal_3808, 100f, 100f, 100f, false, true, 0))
			{
				if (iLocal_3401 == 0)
				{
					iLocal_3401 = gameplay::get_game_timer();
				}
				if (func_272(&iLocal_3401, 100000))
				{
					func_714();
					iLocal_3209 = true;
					iLocal_3302 = 3;
				}
			}
			else
			{
				iLocal_3209 = false;
			}
			break;
		
		case 2:
			iLocal_3302++;
			break;
		
		case 3:
			if (entity::is_entity_at_coord(Local_1177, vLocal_3808, 100f, 100f, 100f, false, true, 0))
			{
				if (iLocal_3401 == 0)
				{
					iLocal_3401 = gameplay::get_game_timer();
				}
				if (func_272(&iLocal_3401, 100000))
				{
					iLocal_3209 = true;
				}
			}
			else
			{
				iLocal_3209 = false;
			}
			if (!iLocal_3209)
			{
				if (!entity::is_entity_at_coord(Local_1177, vLocal_3808, 40f, 40f, 15f, false, true, 0))
				{
					if (ui::does_blip_exist(Local_1177.f_2))
					{
						ui::remove_blip(&(Local_1177.f_2));
					}
					iLocal_3195 = true;
					func_715(&Local_3074, vLocal_3808, 20f, 20f, 10f, 1, Local_1177, "", "cntry_god14", "cntry_god13", 1, 0, 1, -1);
				}
				else
				{
					if (!iLocal_3208)
					{
						if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1177))
						{
							if (entity::is_entity_at_coord(Local_1177, vLocal_3808, 15f, 15f, 10f, false, true, 0))
							{
								if (func_605(Local_1177, 5f, 1, 1056964608, 0, 1, 0))
								{
									iLocal_3208 = 1;
								}
							}
						}
					}
					if (!iLocal_3202)
					{
						if (!ui::does_blip_exist(Local_1177.f_2))
						{
							if (!ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1177))
							{
								if (ui::does_blip_exist(Local_3074.f_5))
								{
									ui::remove_blip(&(Local_3074.f_5));
								}
								if (ui::does_blip_exist(Local_3074))
								{
									ui::remove_blip(&Local_3074);
								}
								func_436("cntry_god25", 12000, 1);
								Local_1177.f_2 = func_610(Local_1177, 1, 0);
								iLocal_3202 = 1;
							}
						}
					}
					if (entity::is_entity_at_coord(Local_1177, vLocal_3808, 20f, 20f, 10f, false, true, 0))
					{
						if (ui::does_blip_exist(Local_3074.f_5))
						{
							ui::remove_blip(&(Local_3074.f_5));
						}
						if (ui::does_blip_exist(Local_3074))
						{
							ui::remove_blip(&Local_3074);
						}
						if (!ui::does_blip_exist(Local_1177.f_2))
						{
							if (iLocal_3202)
							{
								Local_1177.f_2 = func_610(Local_1177, 1, 0);
							}
						}
						iLocal_3195 = false;
					}
					else if (iLocal_3195)
					{
						if (!ui::does_blip_exist(Local_1177.f_2))
						{
							func_715(&Local_3074, vLocal_3808, 0.01f, 0.01f, 10f, 1, Local_1177, "cntry_god24", "cntry_god14", "cntry_god13", 1, 0, 1, -1);
						}
					}
				}
			}
			else
			{
				if (!iLocal_3202)
				{
					if (!ui::does_blip_exist(Local_1177.f_2))
					{
						func_436("cntry_god25", 12000, 1);
						Local_1177.f_2 = func_610(Local_1177, 1, 0);
						iLocal_3202 = 1;
					}
				}
				else if (!ui::does_blip_exist(Local_1177.f_2))
				{
					Local_1177.f_2 = func_610(Local_1177, 1, 0);
				}
				if (ui::does_blip_exist(Local_3074.f_5))
				{
					ui::remove_blip(&(Local_3074.f_5));
				}
				if (ui::does_blip_exist(Local_3074))
				{
					ui::remove_blip(&Local_3074);
				}
			}
			if (entity::is_entity_dead(Local_1177, 0))
			{
				unk1::_0x293220DA1B46CEBC(5f, 5f, 4);
				func_611(&Local_3074, 1, 0);
				player::set_all_random_peds_flee(player::player_id(), 1);
				player::clear_player_wanted_level(player::player_id());
				ui::clear_help(1);
				ui::clear_prints();
				if (!entity::is_entity_in_water(Local_1177))
				{
					fire::add_explosion(entity::get_entity_coords(Local_1177, 0), 0, 2f, 1, 0, 1f);
				}
				if (ui::does_blip_exist(Local_1177.f_2))
				{
					ui::remove_blip(&(Local_1177.f_2));
				}
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3390 = gameplay::get_game_timer();
				return true;
			}
			break;
		
		case 4:
			break;
	}
	return false;
}

void func_714()//Position - 0x76ED8
{
	if (!weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_petrolcan"), 0))
	{
		weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_petrolcan"), 5000, false, false);
	}
	else if (weapon::get_ammo_in_ped_weapon(player::player_ped_id(), joaat("weapon_petrolcan")) < 5000)
	{
		weapon::set_ped_ammo(player::player_ped_id(), joaat("weapon_petrolcan"), 5000);
	}
}

int func_715(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 - 0x76F2A
{
	return func_609(iParam0, vParam1, vParam4, func_653(), func_653(), iParam7, 5, 0, 0, 0, iParam8, sParam9, func_652(), func_652(), func_652(), func_652(), sParam10, 0, iParam12, sParam11, 0, iParam13, iParam14, iParam15, 0, 0, 0, 1, 1065353216);
}

void func_716(char* sParam0, int iParam1)//Position - 0x76F79
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	
	iVar0 = gameplay::get_hash_key(sParam0);
	iVar1 = 0;
	if (iParam1)
	{
		iVar2 = false;
		while (!iVar2 && iVar1 < iLocal_3261)
		{
			if (iLocal_3261[iVar1] == iVar0)
			{
				iVar2 = true;
			}
			else if (iLocal_3261[iVar1] == 0)
			{
				iLocal_3261[iVar1] = iVar0;
				iVar2 = true;
			}
			iVar1++;
		}
	}
	else
	{
		iVar3 = func_718(iVar0);
		if (iVar3 != -1)
		{
			iLocal_3261[iVar3] = 0;
			func_717();
		}
	}
}

void func_717()//Position - 0x76FF4
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < (iLocal_3261 - 1))
	{
		if (iLocal_3261[iVar0] == 0)
		{
			if (iLocal_3261[iVar0 + 1] != 0)
			{
				iLocal_3261[iVar0] = iLocal_3261[iVar0 + 1];
				iLocal_3261[iVar0 + 1] = 0;
			}
		}
		iVar0++;
	}
}

int func_718(int iParam0)//Position - 0x77047
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 < iLocal_3261)
	{
		if (iLocal_3261[iVar0] == 0)
		{
			return -1;
		}
		else if (iLocal_3261[iVar0] == iParam0)
		{
			return iVar0;
		}
		iVar0++;
	}
	return -1;
}

int func_719(char* sParam0)//Position - 0x7708A
{
	return func_718(gameplay::get_hash_key(sParam0)) != -1;
}

void func_720(int iParam0)//Position - 0x7709E
{
	if (entity::does_entity_exist(*iParam0))
	{
		if (vehicle::is_vehicle_driveable(*iParam0, 0))
		{
			entity::set_entity_proofs(*iParam0, false, false, false, false, false, false, 0, false);
			func_721(iParam0);
		}
	}
}

void func_721(var uParam0)//Position - 0x770D0
{
	if (entity::does_entity_exist(*uParam0))
	{
		if (vehicle::is_vehicle_driveable(*uParam0, 0))
		{
			if (entity::get_entity_health(*uParam0) < 500)
			{
				entity::set_entity_health(*uParam0, 500);
			}
			if (vehicle::get_vehicle_engine_health(*uParam0) < 500f)
			{
				vehicle::set_vehicle_engine_health(*uParam0, 500f);
			}
			if (vehicle::get_vehicle_petrol_tank_health(*uParam0) < 500f)
			{
				vehicle::set_vehicle_petrol_tank_health(*uParam0, 500f);
			}
		}
	}
}

void func_722()//Position - 0x7713C
{
	switch (iLocal_3392)
	{
		case 0:
			if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1177))
			{
				if (audio::is_audio_scene_active("FBI_4_COPS_ARRIVE"))
				{
					audio::stop_audio_scene("FBI_4_COPS_ARRIVE");
				}
				audio::start_audio_scene("FBI_4_GO_TO_ALLEYWAY");
				iLocal_3392++;
			}
			break;
		
		case 1:
			if (ui::does_blip_exist(Local_1177.f_2))
			{
				if (audio::is_audio_scene_active("FBI_4_GO_TO_ALLEYWAY"))
				{
					audio::stop_audio_scene("FBI_4_GO_TO_ALLEYWAY");
				}
				audio::start_audio_scene("FBI_4_DESTROY_TRUCK");
				iLocal_3392++;
			}
			break;
		
		case 2:
			if (entity::is_entity_dead(Local_1177, 0))
			{
				if (audio::is_audio_scene_active("FBI_4_GO_TO_ALLEYWAY"))
				{
					audio::stop_audio_scene("FBI_4_GO_TO_ALLEYWAY");
				}
				iLocal_3392++;
			}
			break;
		
		case 3:
			break;
	}
}

void func_723()//Position - 0x77200
{
}

void func_724()//Position - 0x77208
{
	int iVar0;
	
	switch (iLocal_3307)
	{
		case 0:
			if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1177))
			{
				audio::trigger_music_event("FBI4_ENTER_VEHICLE_MA");
				func_716("FBI4_ENTER_VEHICLE_MA", 1);
				iLocal_3307++;
			}
			break;
		
		case 1:
			if (weapon::get_current_ped_weapon(player::player_ped_id(), &iVar0, 1))
			{
				if (iVar0 == joaat("weapon_petrolcan"))
				{
					audio::trigger_music_event("FBI4_PETROL");
					iLocal_3307 = 2;
				}
			}
			audio::prepare_music_event("FBI4_PETROL_EXPLODE");
			if (entity::is_entity_dead(Local_1177, 0))
			{
				audio::trigger_music_event("FBI4_PETROL_EXPLODE");
				iLocal_3307 = 2;
			}
			break;
		
		case 2:
			if (entity::is_entity_dead(Local_1177, 0))
			{
				audio::trigger_music_event("FBI4_PETROL_EXPLODE");
				iLocal_3307++;
			}
			break;
		
		case 3:
			break;
	}
}

void func_725()//Position - 0x772CC
{
	if (!func_627(&Local_3074, 0))
	{
		switch (iLocal_3285)
		{
			case 0:
				func_727(&(Local_3473[0 /*165*/]), 0);
				func_727(&(Local_3473[0 /*165*/]), 2);
				audio::trigger_music_event("fbi4_SHOOTOUT_MID_MA");
				func_716("fbi4_SHOOTOUT_MID_MA", 1);
				func_442(&(Local_3473[0 /*165*/]), 0, 0, "michael", 0, 1);
				func_442(&(Local_3473[0 /*165*/]), 2, 0, "TREVOR", 0, 1);
				if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "heat_end_1", 7, 0, 0, 0))
				{
					iLocal_3285 = 2;
				}
				else
				{
					iLocal_3285 = 1;
				}
				break;
			
			case 1:
				if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "heat_end_1", 7, 0, 0, 0))
				{
					iLocal_3285++;
				}
				break;
			
			case 2:
				if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "heat_end_2", 7, 0, 0, 0))
				{
					iLocal_3285++;
				}
				break;
			
			case 3:
				break;
			}
	}
}

int func_726(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6)//Position - 0x773C8
{
	func_700(uParam0, 145, sParam1, iParam4, iParam5, iParam6);
	if (iParam3 > 7)
	{
		if (iParam3 < 12)
		{
			iParam3 = 7;
		}
	}
	Global_15719 = 0;
	Global_15721 = 0;
	Global_15726 = 0;
	Global_16703 = 0;
	Global_16705 = 0;
	Global_16709 = 0;
	Global_2621441 = 0;
	return func_693(sParam2, iParam3, 0);
}

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

void func_728()//Position - 0x77433
{
	if (entity::does_entity_exist(Local_1630))
	{
		if (!entity::does_entity_exist(Local_1177))
		{
			if (vehicle::is_vehicle_driveable(Local_1630, 0))
			{
				if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1630) || func_272(&iLocal_3390, 3500))
				{
					entity::set_entity_proofs(Local_1630, false, false, false, false, false, false, 0, false);
				}
			}
		}
		else if (entity::is_entity_dead(Local_1177, 0))
		{
			if (vehicle::is_vehicle_driveable(Local_1630, 0))
			{
				if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1630))
				{
					entity::set_entity_proofs(Local_1630, false, false, false, false, false, false, 0, false);
				}
			}
		}
	}
}

void func_729()//Position - 0x774BE
{
	if (iLocal_3197)
	{
		if (!entity::does_entity_exist(Local_1630))
		{
			streaming::request_model(Local_1630.f_1);
			if (streaming::has_model_loaded(Local_1630.f_1))
			{
				gameplay::clear_area(Local_1630.f_3, 10f, 1, 0, 0, false);
				Local_1630 = vehicle::create_vehicle(Local_1630.f_1, Local_1630.f_3, Local_1630.f_6, 1, true);
				entity::set_entity_proofs(Local_1630, false, true, true, false, false, false, 0, false);
				vehicle::set_vehicle_on_ground_properly(Local_1630);
			}
		}
	}
}

void func_730()//Position - 0x77531
{
	switch (iLocal_3311)
	{
		case 0:
			if (!func_719("cntry_help6"))
			{
				if (!func_627(&Local_3074, 0))
				{
					func_436("cntry_help6", 7500, 1);
					func_716("cntry_help6", 1);
				}
			}
			if (func_734(&iLocal_3099, 1, 1))
			{
				if (func_733(&iLocal_3099, 1))
				{
					if (func_732())
					{
						func_731();
						iLocal_3311++;
					}
				}
			}
			else if (func_272(&iLocal_3407, 12500))
			{
				func_681(&iLocal_3099, 1);
				func_732();
				func_731();
				iLocal_3311++;
			}
			break;
		
		case 1:
			if (func_657(&Local_3143, 3, 0, 999f, 999f, 0, 0, 0, 0, 0))
			{
				if (Local_3143.f_18)
				{
					if (!Local_3143.f_19)
					{
						if (func_446(&iLocal_3099, 1, 0, 0))
						{
							if (!ped::is_ped_injured(iLocal_3099[1]))
							{
								ped::set_blocking_of_non_temporary_events(iLocal_3099[1], true);
								ai::clear_ped_tasks(iLocal_3099[1]);
							}
							if (!ped::is_ped_injured(iLocal_3099[2]))
							{
								ped::set_blocking_of_non_temporary_events(iLocal_3099[2], true);
								ai::clear_ped_tasks(iLocal_3099[2]);
							}
							Local_3143.f_19 = 1;
						}
					}
				}
			}
			else
			{
				func_655(player::player_ped_id(), -1);
				if (entity::is_entity_in_angled_area(iLocal_3099[2], 806.297f, -2289.667f, 50.598f, 796.823f, -2421.828f, 64.098f, 37f, 0, true, 0) || (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(iLocal_3099[2], 1), 1) > 30f && !entity::is_entity_on_screen(iLocal_3099[2])))
				{
					ped::delete_ped(&(iLocal_3099[2]));
				}
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3380 = gameplay::get_game_timer();
				func_333(4, "burn the truck", 1, 0, 0, 1);
				if (vehicle::is_vehicle_driveable(Local_1177, 0))
				{
					entity::set_entity_only_damaged_by_player(Local_1177, true);
					entity::set_entity_proofs(Local_1177, false, false, false, false, false, false, 0, false);
				}
				func_394(&Local_3074, 1);
				iLocal_1126 = 8;
			}
			break;
	}
}

void func_731()//Position - 0x77725
{
	ui::clear_prints();
	func_716("cntry_help6", 1);
	if (ui::does_blip_exist(iLocal_3452))
	{
		ui::remove_blip(&iLocal_3452);
	}
	if (ui::does_blip_exist(iLocal_3451))
	{
		ui::remove_blip(&iLocal_3451);
	}
	if (ui::does_blip_exist(iLocal_3453))
	{
		ui::remove_blip(&iLocal_3453);
	}
}

bool func_732()//Position - 0x7776E
{
	Local_3143.f_12 = iLocal_3099[1];
	if (ui::does_blip_exist(iLocal_3453))
	{
		ui::remove_blip(&iLocal_3453);
	}
	ui::clear_help(1);
	iLocal_3184 = true;
	iLocal_3831 = 1;
	return true;
}

bool func_733(int iParam0, int iParam1)//Position - 0x777A0
{
	if (iParam0->f_39)
	{
		if (iParam1 == iParam0->f_7)
		{
			return true;
		}
	}
	return false;
}

var func_734(int iParam0, int iParam1, int iParam2)//Position - 0x777BD
{
	int iVar0;
	int iVar1;
	int iVar2;
	var uVar3;
	var uVar4;
	int iVar5;
	int iVar6;
	int iVar7;
	int iVar8;
	int iVar9;
	int iVar10;
	int iVar11;
	int iVar12;
	int iVar13;
	int iVar14;
	int iVar15;
	
	iVar5 = false;
	iVar6 = ped::is_ped_injured(player::player_ped_id());
	iVar7 = ((iVar6 && Global_69489) && func_280());
	iVar8 = func_747(iParam1);
	iParam0->f_6 = func_476(func_960());
	Global_17118.f_12 = !iParam0->f_23;
	Global_17118.f_121 = iParam1;
	Global_17118.f_122 = iParam2;
	Global_17118.f_123 = iVar7;
	Global_17118.f_3 = Global_17118.f_2;
	Global_17118.f_70 = 0;
	iVar9 = ((Global_17118.f_104 == 4 || Global_17118.f_104 == 1) || Global_17118.f_104 == 3);
	iVar0 = 0;
	while (iVar0 <= (4 - 1))
	{
		func_744(iParam0, iVar0, 1, &iVar1, &iVar2, &uVar3, &uVar4);
		Global_17118.f_71[iVar0] = -1;
		Global_17118.f_76[iVar0] = -1;
		Global_17118.f_94[iVar0] = -1;
		Global_17118.f_99[iVar0] = -1;
		Global_17118.f_54[iVar0] = 0;
		Global_17118.f_59[iVar0] = 0;
		Global_17118.f_81[iVar0 /*3*/] = { 0f, 0f, 0f };
		if (func_22(14))
		{
			iVar10 = iVar0;
			if (iVar10 == 3)
			{
				Global_17118.f_70 = 1;
			}
			else if ((func_685(iVar10) && func_682(iVar10)) && iVar10 == func_476(Global_101154.f_1826.f_539.f_3551))
			{
				Global_17118.f_70 = 1;
			}
			else
			{
				Global_17118.f_70 = 0;
			}
		}
		else if (Global_17118.f_12)
		{
			if (!Global_17118.f_70)
			{
				if ((((!ped::is_ped_injured((*iParam0)[iVar0]) && !iParam0->f_18[iVar0]) && (*iParam0)[iVar0] != player::player_ped_id()) || iParam0->f_34[iVar0] == 2) || iParam0->f_24[iVar0] != 0)
				{
					Global_17118.f_70 = 1;
				}
			}
			if (iParam0->f_34[iVar0] == 3)
			{
				iVar5 = true;
			}
			else if (iParam0->f_6 == iVar0)
			{
				if (iParam0->f_34[iVar0] == 1 || iParam0->f_34[iVar0] == 2)
				{
					iVar5 = true;
				}
			}
			if (iParam0->f_8[iVar0])
			{
				if (iParam0->f_39 && iParam0->f_7 == iVar0)
				{
					iParam0->f_8[iVar0] = 0;
				}
				else if ((iParam0->f_6 == iVar0 && !iVar5) || iParam0->f_34[iVar0] == 3)
				{
					iParam0->f_8[iVar0] = 0;
				}
				else if ((ped::is_ped_injured((*iParam0)[iVar0]) && !iParam0->f_23) && !iParam0->f_34[iVar0] == 2)
				{
					iParam0->f_8[iVar0] = 0;
				}
			}
			Global_17118.f_49[iVar0] = iParam0->f_8[iVar0];
			Global_17118.f_64[iVar0] = uVar3;
			if ((entity::does_entity_exist((*iParam0)[iVar0]) && !ped::is_ped_injured((*iParam0)[iVar0])) && (*iParam0)[iVar0] != player::player_ped_id())
			{
				Global_17118.f_71[iVar0] = system::floor((((system::to_float(entity::get_entity_health((*iParam0)[iVar0])) - 100f) / (system::to_float(ped::get_ped_max_health((*iParam0)[iVar0])) - 100f)) * 100f));
			}
			if ((Global_17118.f_71[iVar0] != -1 && IntToFloat(Global_17118.f_71[iVar0]) < 25f) || iParam0->f_13[iVar0])
			{
				if (iParam0->f_6 != iVar0)
				{
					Global_17118.f_54[iVar0] = 1;
					Global_17118.f_59[iVar0] = iParam0->f_13[iVar0];
				}
			}
		}
		else
		{
			Global_17118.f_49[iVar0] = iParam0->f_8[iVar0];
			Global_17118.f_64[iVar0] = uVar3;
		}
		if (Global_17118.f_124)
		{
			Global_17118.f_19[iVar2] = iVar1;
			Global_17118.f_24[iVar2] = uVar3;
			Global_17118.f_29[iVar2] = uVar4;
			Global_17118.f_34[iVar0] = 0;
			Global_17118.f_44[iVar0] = 0;
			Global_17118.f_39[iVar0] = 0;
			if (iVar9)
			{
				if (Global_17118.f_12)
				{
					if (entity::does_entity_exist((*iParam0)[iVar0]) && !ped::is_ped_injured((*iParam0)[iVar0]))
					{
						Global_17118.f_76[iVar0] = ped::get_ped_armour((*iParam0)[iVar0]);
						if (iVar0 == 0)
						{
							stats::stat_get_int(joaat("sp0_special_ability"), &(Global_17118.f_94[iVar0]), -1);
							stats::stat_get_int(joaat("sp0_special_ability_unlocked"), &(Global_17118.f_99[iVar0]), -1);
						}
						else if (iVar0 == 1)
						{
							stats::stat_get_int(joaat("sp1_special_ability"), &(Global_17118.f_94[iVar0]), -1);
							stats::stat_get_int(joaat("sp1_special_ability_unlocked"), &(Global_17118.f_99[iVar0]), -1);
						}
						else if (iVar0 == 2)
						{
							stats::stat_get_int(joaat("sp2_special_ability"), &(Global_17118.f_94[iVar0]), -1);
							stats::stat_get_int(joaat("sp2_special_ability_unlocked"), &(Global_17118.f_99[iVar0]), -1);
						}
						Global_17118.f_81[iVar0 /*3*/] = { entity::get_entity_coords((*iParam0)[iVar0], 1) };
					}
				}
				else if ((iVar0 < 3 && iVar1 != 3) && (!func_743() || func_22(14)))
				{
					Global_17118.f_34[iVar0] = Global_88924[iVar0];
					Global_17118.f_44[iVar0] = 0;
					Global_17118.f_34[iVar0] = (Global_17118.f_34[iVar0] + Global_88936[iVar0]);
					Global_17118.f_39[iVar0] = 0;
					Global_17118.f_34[iVar0] = (Global_17118.f_34[iVar0] + Global_88932[iVar0]);
				}
			}
		}
		if (((Global_17118.f_69 == -1 || !Global_17118.f_14) && Global_17118.f_69 != iVar2) && !func_22(14))
		{
			if ((iParam0->f_6 == iVar0 && !iVar5) || iParam0->f_34[iVar0] == 3)
			{
				Global_17118.f_69 = iVar2;
				Global_17118.f_14 = 1;
			}
		}
		iVar0++;
	}
	if (iVar8)
	{
		if ((((((Global_17118.f_124 && (!Global_17118.f_9 || Global_17118.f_10)) && ((!func_477(0) || Global_17118.f_12) || func_22(14))) && ((!func_477(3) || Global_17118.f_12) || func_22(14))) && ((!func_477(2) || Global_17118.f_12) || func_22(14))) && ((!func_477(9) || Global_17118.f_12) || func_22(14))) && ((!func_477(10) || Global_17118.f_12) || func_22(14)))
		{
			if (Global_17118.f_104 == 4)
			{
				if (func_22(14))
				{
					if (Global_17118.f_69 == 0)
					{
						Global_17118.f_11 = func_742(iParam0, 1);
					}
					else if (Global_17118.f_69 == 1)
					{
						Global_17118.f_11 = func_742(iParam0, 2);
					}
					else if (Global_17118.f_69 == 2)
					{
						Global_17118.f_11 = func_742(iParam0, 3);
					}
					else if (Global_17118.f_69 == 3)
					{
						Global_17118.f_11 = func_742(iParam0, 0);
					}
				}
				else if (Global_17118.f_69 == 0)
				{
					Global_17118.f_11 = func_681(iParam0, 1);
				}
				else if (Global_17118.f_69 == 1)
				{
					Global_17118.f_11 = func_681(iParam0, 2);
				}
				else if (Global_17118.f_69 == 2)
				{
					Global_17118.f_11 = func_736(iParam0);
				}
				else if (Global_17118.f_69 == 3)
				{
					Global_17118.f_11 = func_681(iParam0, 0);
				}
			}
			else if (Global_17118.f_104 == 3 || (Global_17118.f_9 && Global_17118.f_10))
			{
				if ((((!Global_17118.f_11 && Global_17118.f_12) && Global_17118.f_70) && !network::network_is_game_in_progress()) && !(func_735(player::player_ped_id()) && (controls::is_control_pressed(0, 25) || controls::is_control_pressed(0, 68))))
				{
					if (iParam0->f_34[0] == 3)
					{
						iVar11 = 0;
					}
					else if (iParam0->f_34[1] == 3)
					{
						iVar11 = 1;
					}
					else if (iParam0->f_34[2] == 3)
					{
						iVar11 = 2;
					}
					else
					{
						iVar11 = func_960();
					}
					switch (iVar11)
					{
						case 0:
							if (iParam0->f_13[1] && !Global_17118.f_16)
							{
								iVar12 = 1;
							}
							else if (iParam0->f_13[2] && !Global_17118.f_16)
							{
								iVar12 = 2;
							}
							else if (iParam0->f_43)
							{
								iVar12 = iParam0->f_40;
								iVar13 = iParam0->f_41;
								iVar14 = iParam0->f_42;
							}
							else
							{
								iVar12 = 1;
								iVar13 = 2;
							}
							break;
						
						case 1:
							if (iParam0->f_13[2] && !Global_17118.f_16)
							{
								iVar12 = 2;
							}
							else if (iParam0->f_13[0] && !Global_17118.f_16)
							{
								iVar12 = 0;
							}
							else if (iParam0->f_43)
							{
								iVar12 = iParam0->f_40;
								iVar13 = iParam0->f_41;
								iVar14 = iParam0->f_42;
							}
							else
							{
								iVar12 = 2;
								iVar13 = 0;
							}
							break;
						
						case 2:
							if (iParam0->f_13[0] && !Global_17118.f_16)
							{
								iVar12 = 0;
							}
							else if (iParam0->f_13[1] && !Global_17118.f_16)
							{
								iVar12 = 1;
							}
							else if (iParam0->f_43)
							{
								iVar12 = iParam0->f_40;
								iVar13 = iParam0->f_41;
								iVar14 = iParam0->f_42;
							}
							else
							{
								iVar12 = 0;
								iVar13 = 1;
							}
							break;
					}
					iVar15 = true;
					if (controls::_is_input_disabled(2))
					{
						if (!controls::is_control_just_released(0, 19))
						{
							if (controls::is_control_just_released(0, 166))
							{
								iVar15 = false;
								if (iVar11 != 0)
								{
									if (func_681(iParam0, 0))
									{
										Global_17118.f_11 = 1;
									}
								}
							}
							else if (controls::is_control_just_released(0, 167))
							{
								iVar15 = false;
								if (iVar11 != 1)
								{
									if (func_681(iParam0, 1))
									{
										Global_17118.f_11 = 1;
									}
								}
							}
							else if (controls::is_control_just_released(0, 168))
							{
								iVar15 = false;
								if (iVar11 != 2)
								{
									if (func_681(iParam0, 2))
									{
										Global_17118.f_11 = 1;
									}
								}
							}
						}
					}
					if (iVar15)
					{
						if (func_681(iParam0, iVar12))
						{
							Global_17118.f_11 = 1;
						}
						else if (func_681(iParam0, iVar13))
						{
							Global_17118.f_11 = 1;
						}
						else if (func_681(iParam0, iVar14))
						{
							Global_17118.f_11 = 1;
						}
					}
				}
			}
		}
	}
	if (Global_17118.f_11)
	{
		Global_17118.f_125 = 1;
		ui::hide_hud_component_this_frame(6);
		ui::hide_hud_component_this_frame(7);
		ui::hide_hud_component_this_frame(8);
		ui::hide_hud_component_this_frame(9);
	}
	return Global_17118.f_11;
}

bool func_735(int iParam0)//Position - 0x781A0
{
	int iVar0;
	
	if (cam::is_first_person_aim_cam_active())
	{
		if (!ped::is_ped_injured(iParam0))
		{
			weapon::get_current_ped_weapon(iParam0, &iVar0, 1);
			if ((iVar0 == joaat("weapon_sniperrifle") || iVar0 == joaat("weapon_heavysniper")) || iVar0 == joaat("weapon_marksmanrifle"))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_736(int iParam0)//Position - 0x781EF
{
	int iVar0;
	
	if (!func_740(1))
	{
		return false;
	}
	if (!iParam0->f_39)
	{
		iParam0->f_7 = 4;
		iParam0->f_39 = 1;
	}
	if (!network::network_is_game_in_progress() && !func_743())
	{
		if (((!iParam0->f_18[3] && iParam0->f_23) && !Global_3) && func_740(0))
		{
			iParam0->f_7 = 3;
			return true;
		}
		else if (func_740(0) == 0 && func_738() == 0)
		{
			network::_get_mp_loading_state(&iVar0);
			if (iVar0 == 1)
			{
				func_737(14, 1, -1);
			}
			else if (gameplay::is_orbis_version() && network::_0x74FB3E29E6D10FA9() == 4)
			{
				func_737(25, 1, -1);
			}
			else if (gameplay::is_orbis_version() && network::_0x74FB3E29E6D10FA9() == 2)
			{
				func_737(26, 1, -1);
			}
			else if (gameplay::is_orbis_version() && network::_0x74FB3E29E6D10FA9() == 1)
			{
				func_737(27, 1, -1);
			}
			else if ((player::is_player_online() && network::network_is_signed_online()) == 0)
			{
				func_737(13, 1, -1);
			}
			else if (network::_network_are_ros_available() == 0)
			{
			}
			else if (network::network_can_enter_multiplayer() == 0)
			{
			}
			else
			{
				func_737(14, 1, -1);
			}
		}
	}
	return false;
}

void func_737(int iParam0, int iParam1, int iParam2)//Position - 0x7831A
{
	int iVar0;
	int iVar1;
	
	iVar0 = (iParam0 / 32);
	iVar1 = (iParam0 % 32);
	if (iParam2 != -2)
	{
		Global_1312767 = iParam2;
	}
	if (iParam1)
	{
		gameplay::set_bit(&(Global_1312764[iVar0]), iVar1);
	}
	else
	{
		gameplay::clear_bit(&(Global_1312764[iVar0]), iVar1);
	}
}

bool func_738()//Position - 0x78365
{
	if ((((((((((func_739(1) || func_739(2)) || func_739(3)) || func_739(4)) || func_739(5)) || func_739(7)) || func_739(8)) || func_739(9)) || func_739(10)) || func_739(11)) || func_739(12))
	{
		return true;
	}
	return false;
}

int func_739(int iParam0)//Position - 0x783ED
{
	int iVar0;
	int iVar1;
	
	iVar0 = (iParam0 / 32);
	iVar1 = (iParam0 % 32);
	return gameplay::is_bit_set(Global_1312764[iVar0], iVar1);
}

bool func_740(int iParam0)//Position - 0x78411
{
	int iVar0;
	
	if (iParam0 == 1)
	{
	}
	if (iParam0 == 0)
	{
		if (func_741() == 0)
		{
			return false;
		}
	}
	if (network::_get_mp_loading_state(&iVar0) && gameplay::get_profile_setting(903) == 1)
	{
		return true;
	}
	if (!network::_get_mp_loading_state(&iVar0))
	{
		if (iVar0 == 6)
		{
			return true;
		}
		else if (iVar0 == 7)
		{
			return true;
		}
		else if (iVar0 == 8)
		{
			return true;
		}
		else if (iVar0 == 9)
		{
			return true;
		}
		else if (iVar0 == 11)
		{
			return true;
		}
		else if (iVar0 == 12)
		{
			return true;
		}
		else if (iVar0 == 10)
		{
			return true;
		}
	}
	return false;
}

bool func_741()//Position - 0x784B4
{
	if (gameplay::is_orbis_version())
	{
		if (!network::_0xBD545D44CCE70597())
		{
			if (network::_0x74FB3E29E6D10FA9() == 4)
			{
				return false;
			}
			if (network::_0x74FB3E29E6D10FA9() == 2)
			{
				return false;
			}
			if (network::_0x74FB3E29E6D10FA9() == 1)
			{
				return false;
			}
			if (network::_0x74FB3E29E6D10FA9() == 5)
			{
				return false;
			}
		}
	}
	return true;
}

bool func_742(var uParam0, int iParam1)//Position - 0x784FC
{
	int iVar0;
	
	if (!uParam0->f_39)
	{
		uParam0->f_7 = 4;
		uParam0->f_39 = 1;
	}
	iVar0 = false;
	if (iParam1 == 3 || iParam1 == func_476(Global_101154.f_1826.f_539.f_3551))
	{
		if (!ped::is_ped_injured(player::player_ped_id()))
		{
			iVar0 = true;
		}
	}
	if (iVar0)
	{
		uParam0->f_7 = iParam1;
		return true;
	}
	uParam0->f_39 = 0;
	return false;
}

bool func_743()//Position - 0x7855E
{
	if (Global_35711 == 15)
	{
		return false;
	}
	return true;
}

void func_744(var uParam0, int iParam1, int iParam2, var uParam3, var uParam4, var uParam5, var uParam6)//Position - 0x78573
{
	int iVar0;
	
	iVar0 = 0;
	if (network::network_is_game_in_progress())
	{
		if (iParam1 == 3)
		{
			iVar0 = 1;
		}
	}
	else if (func_684() == func_488(iParam1))
	{
		iVar0 = 1;
	}
	switch (iParam1)
	{
		case 0:
			*uParam4 = 3;
			*uParam6 = 0;
			if (!func_685(iParam1))
			{
				*uParam3 = 3;
			}
			else if (!func_682(iParam1))
			{
				*uParam3 = 2;
			}
			else
			{
				*uParam3 = 1;
			}
			if (uParam0->f_23 && *uParam3 == 1)
			{
				if ((((!network::network_is_game_in_progress() && player::get_player_wanted_level(player::player_id()) > 0) || ((((func_477(0) || func_477(3)) || func_477(2)) || func_22(9)) || func_22(10))) || func_567(0)) || Global_35677)
				{
					*uParam3 = 2;
				}
			}
			break;
		
		case 1:
			*uParam4 = 0;
			*uParam6 = 0;
			if (!func_685(iParam1))
			{
				*uParam3 = 3;
			}
			else if (!func_682(iParam1))
			{
				*uParam3 = 2;
			}
			else
			{
				*uParam3 = 1;
			}
			if (uParam0->f_23 && *uParam3 == 1)
			{
				if ((((!network::network_is_game_in_progress() && player::get_player_wanted_level(player::player_id()) > 0) || ((((func_477(0) || func_477(3)) || func_477(2)) || func_22(9)) || func_22(10))) || func_567(0)) || Global_35677)
				{
					*uParam3 = 2;
				}
			}
			break;
		
		case 2:
			*uParam4 = 1;
			*uParam6 = 0;
			if (!func_685(iParam1))
			{
				*uParam3 = 3;
			}
			else if (!func_682(iParam1))
			{
				*uParam3 = 2;
			}
			else
			{
				*uParam3 = 1;
			}
			if (uParam0->f_23 && *uParam3 == 1)
			{
				if ((((!network::network_is_game_in_progress() && player::get_player_wanted_level(player::player_id()) > 0) || ((((func_477(0) || func_477(3)) || func_477(2)) || func_22(9)) || func_22(10))) || func_567(0)) || Global_35677)
				{
					*uParam3 = 2;
				}
			}
			break;
		
		case 3:
			*uParam4 = 2;
			*uParam6 = 0;
			if ((((((!uParam0->f_23 || Global_3) || (uParam0->f_23 && ((((func_477(0) || func_477(3)) || func_477(2)) || func_22(9)) || func_22(10)))) || (uParam0->f_23 && func_567(0))) || (uParam0->f_23 && Global_35677)) || !func_746()) || !func_740(0))
			{
				*uParam3 = 2;
			}
			else
			{
				*uParam3 = 1;
			}
			if (uParam0->f_23 && *uParam3 == 1)
			{
				if (((((func_477(0) || func_477(3)) || func_477(2)) || func_22(9)) || func_22(10)) || Global_35677)
				{
					*uParam3 = 2;
				}
			}
			break;
	}
	if (iParam1 != 3)
	{
		if (iVar0 || uParam0->f_34[iParam1] == 2)
		{
			*uParam3 = 1;
		}
		else if (((uParam0->f_34[iParam1] == 1 || uParam0->f_18[iParam1]) || ((!uParam0->f_23 && ped::is_ped_injured((*uParam0)[iParam1])) && *uParam3 == 1)) || (uParam0->f_23 && gameplay::is_bit_set(Global_89089.f_47, iParam1)))
		{
			if (*uParam3 == 1)
			{
				*uParam3 = 2;
			}
		}
		else if (uParam0->f_24[iParam1] != 0)
		{
			*uParam3 = 1;
		}
		else if (((uParam0->f_23 && !gameplay::is_bit_set(Global_101154.f_7775.f_2[27 /*3*/], 1)) && !Global_3) && !func_567(0))
		{
			if ((((func_477(0) || func_477(3)) || func_477(2)) || func_22(9)) || func_22(10))
			{
			}
			else
			{
				*uParam3 = 1;
			}
		}
	}
	else
	{
		*uParam3 = 3;
	}
	if ((iVar0 && uParam0->f_34[iParam1] == 0) || uParam0->f_34[iParam1] == 3)
	{
		if (!func_22(14))
		{
			*uParam6 = 1;
		}
	}
	if (iParam2)
	{
		func_745(uParam0, iParam1, uParam5);
	}
}

void func_745(var uParam0, int iParam1, var uParam2)//Position - 0x78A0D
{
	switch (iParam1)
	{
		case 0:
			*uParam2 = 0;
			break;
		
		case 1:
			*uParam2 = 2;
			break;
		
		case 2:
			*uParam2 = 1;
			break;
		
		case 3:
			*uParam2 = 3;
			break;
	}
	if (iParam1 != 4)
	{
		if (uParam0->f_24[iParam1] == 0)
		{
			if (script::_get_number_of_instances_of_streamed_script(joaat("prologue1")) > 0)
			{
				if (iParam1 == 0)
				{
					if (func_453(124))
					{
						*uParam2 = 8;
					}
					else
					{
						*uParam2 = 7;
					}
				}
				else if (iParam1 == 2)
				{
					if (func_453(125))
					{
						*uParam2 = 10;
					}
					else
					{
						*uParam2 = 9;
					}
				}
			}
		}
		else if (uParam0->f_24[iParam1] == 1)
		{
			if (iParam1 == 0)
			{
				*uParam2 = 6;
			}
			else if (iParam1 == 2)
			{
				*uParam2 = 4;
			}
			else if (iParam1 == 1)
			{
				*uParam2 = 5;
			}
		}
		else if (uParam0->f_24[iParam1] == 2)
		{
			*uParam2 = 7;
		}
		else if (uParam0->f_24[iParam1] == 3)
		{
			*uParam2 = 8;
		}
		else if (uParam0->f_24[iParam1] == 4)
		{
			*uParam2 = 9;
		}
		else if (uParam0->f_24[iParam1] == 5)
		{
			*uParam2 = 10;
		}
	}
}

var func_746()//Position - 0x78B2B
{
	return Global_1318727;
}

bool func_747(int iParam0)//Position - 0x78B37
{
	if (Global_17118.f_130)
	{
		return false;
	}
	if (controls::is_control_just_released(0, 19) || (!iParam0 && controls::is_disabled_control_just_released(0, 19)))
	{
		return true;
	}
	if (gameplay::is_pc_version())
	{
		if (controls::is_control_just_released(0, 166))
		{
			if ((!controls::is_control_pressed(0, 167) && !controls::is_control_pressed(0, 168)) && !controls::is_control_pressed(0, 169))
			{
				return true;
			}
		}
		else if (controls::is_control_just_released(0, 167))
		{
			if ((!controls::is_control_pressed(0, 166) && !controls::is_control_pressed(0, 168)) && !controls::is_control_pressed(0, 169))
			{
				return true;
			}
		}
		else if (controls::is_control_just_released(0, 168))
		{
			if ((!controls::is_control_pressed(0, 166) && !controls::is_control_pressed(0, 167)) && !controls::is_control_pressed(0, 169))
			{
				return true;
			}
		}
		else if (controls::is_control_just_released(0, 169))
		{
			if ((!controls::is_control_pressed(0, 166) && !controls::is_control_pressed(0, 167)) && !controls::is_control_pressed(0, 168))
			{
				return true;
			}
		}
		if (!iParam0)
		{
			if (controls::is_disabled_control_just_released(0, 166))
			{
				if ((!controls::is_disabled_control_pressed(0, 167) && !controls::is_disabled_control_pressed(0, 168)) && !controls::is_disabled_control_pressed(0, 169))
				{
					return true;
				}
			}
			else if (controls::is_disabled_control_just_released(0, 167))
			{
				if ((!controls::is_disabled_control_pressed(0, 166) && !controls::is_disabled_control_pressed(0, 168)) && !controls::is_disabled_control_pressed(0, 169))
				{
					return true;
				}
			}
			else if (controls::is_disabled_control_just_released(0, 168))
			{
				if ((!controls::is_disabled_control_pressed(0, 166) && !controls::is_disabled_control_pressed(0, 167)) && !controls::is_disabled_control_pressed(0, 169))
				{
					return true;
				}
			}
			else if (controls::is_disabled_control_just_released(0, 169))
			{
				if ((!controls::is_disabled_control_pressed(0, 166) && !controls::is_disabled_control_pressed(0, 167)) && !controls::is_disabled_control_pressed(0, 168))
				{
					return true;
				}
			}
		}
	}
	return false;
}

bool func_748()//Position - 0x78D29
{
	func_814();
	func_813();
	func_812(&(Local_1725[8 /*20*/]));
	func_812(&(Local_1725[9 /*20*/]));
	func_812(&(Local_1725[31 /*20*/]));
	if (func_800())
	{
		return true;
	}
	func_797();
	func_794();
	func_793();
	func_792();
	func_791();
	func_789();
	func_787();
	if (Global_3)
	{
		func_786();
	}
	func_784();
	func_783();
	func_777();
	func_773();
	func_755();
	func_753();
	func_752();
	func_751();
	func_749();
	return false;
}

void func_749()//Position - 0x78DB1
{
	switch (iLocal_3295)
	{
		case 0:
			if (audio::prepare_music_event("fbi4_SHOOTOUT_MA"))
			{
				if (((iLocal_3179 || func_750(&(Local_1222[0 /*15*/]), 30f)) || func_750(&(Local_1222[1 /*15*/]), 30f)) || func_750(&(Local_1222[2 /*15*/]), 30f))
				{
					if (ped::is_ped_shooting(player::player_ped_id()) || cam::does_cam_exist(Local_3143.f_9))
					{
						audio::trigger_music_event("fbi4_SHOOTOUT_MA");
						iLocal_3295++;
					}
				}
			}
			break;
		
		case 1:
			break;
		
		case 2:
			break;
	}
}

bool func_750(var uParam0, float fParam1)//Position - 0x78E59
{
	if (entity::does_entity_exist(*uParam0))
	{
		if (!entity::is_entity_dead(*uParam0, 0))
		{
			if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(*uParam0, 1), 1) < fParam1)
			{
				return true;
			}
		}
	}
	return false;
}

void func_751()//Position - 0x78E98
{
	if (!ped::is_ped_injured(Local_1705))
	{
		switch (iLocal_3251)
		{
			case 0:
				if (ped::is_synchronized_scene_running(iLocal_3234))
				{
					if (ped::get_synchronized_scene_phase(iLocal_3234) >= 0.25f)
					{
						entity::clear_entity_last_damage_entity(Local_1705);
						entity::set_entity_health(Local_1705, 200);
						ped::set_ped_max_health(Local_1705, 200);
						ped::_set_ped_reset_ragdoll_flag(Local_1705, 1);
						entity::set_entity_proofs(Local_1705, false, false, false, false, false, false, 0, false);
						entity::set_entity_collision(Local_1705, true, 0);
						iLocal_3251 = 1;
					}
					else if (entity::get_entity_health(Local_1705) <= 9900)
					{
						entity::set_entity_proofs(Local_1705, true, true, true, true, true, false, 0, false);
						iLocal_3251 = 3;
					}
				}
				break;
			
			case 1:
				if (func_594(&Local_1705, &(Local_1705.f_10), Local_1705.f_14))
				{
					if (ped::is_synchronized_scene_running(iLocal_3234))
					{
						if (ped::get_synchronized_scene_phase(iLocal_3234) >= 0.25f)
						{
							ai::open_sequence_task(&iLocal_3465);
							ai::task_follow_nav_mesh_to_coord(0, 898.86f, -2361.77f, 29.37f, 2f, -1, -1f, 1, 1193033728);
							ai::task_follow_nav_mesh_to_coord(0, 908.22f, -2370.33f, 29.55f, 2f, -1, -1f, 1, 1193033728);
							ai::task_smart_flee_ped(0, player::player_ped_id(), 500f, -1, 0, 0);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(Local_1705, iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
							iLocal_3251++;
						}
					}
				}
				else if (ped::is_synchronized_scene_running(iLocal_3234))
				{
					if (ped::get_synchronized_scene_phase(iLocal_3234) >= 0.655f)
					{
						ai::open_sequence_task(&iLocal_3465);
						ai::task_follow_nav_mesh_to_coord(0, 898.86f, -2361.77f, 29.37f, 2f, -1, -1f, 1, 1193033728);
						ai::task_follow_nav_mesh_to_coord(0, 908.22f, -2370.33f, 29.55f, 2f, -1, -1f, 1, 1193033728);
						ai::task_smart_flee_ped(0, player::player_ped_id(), 500f, -1, 0, 0);
						ai::close_sequence_task(iLocal_3465);
						ai::task_perform_sequence(Local_1705, iLocal_3465);
						ai::clear_sequence_task(&iLocal_3465);
						iLocal_3251++;
					}
				}
				else
				{
					iLocal_3251++;
				}
				break;
			
			case 2:
				ped::set_ped_config_flag(Local_1705, 208, false);
				entity::set_ped_as_no_longer_needed(&Local_1705);
				streaming::set_model_as_no_longer_needed(Local_1705.f_1);
				iLocal_3251++;
				break;
			
			case 3:
				if (ped::get_synchronized_scene_phase(iLocal_3234) >= 0.262f)
				{
					ped::set_ped_to_ragdoll(Local_1705, 2000, 3000, 0, 1, 1, 0);
					ai::clear_ped_tasks(Local_1705);
					entity::set_entity_health(Local_1705, 2);
				}
				break;
		}
	}
	else
	{
		if (entity::does_entity_exist(Local_1705))
		{
			entity::set_ped_as_no_longer_needed(&Local_1705);
			streaming::set_model_as_no_longer_needed(Local_1705.f_1);
		}
		if (!Local_1705.f_14)
		{
			Local_1705 = ped::create_ped(26, Local_1705.f_1, Local_1705.f_3, Local_1705.f_9, 1, true);
			Local_1705.f_14 = 1;
			ped::set_ped_random_component_variation(Local_1705, 0);
			ped::set_ped_suffers_critical_hits(Local_1705, 0);
			entity::set_entity_health(Local_1705, 10000);
			ped::set_ped_max_health(Local_1705, 10000);
			entity::set_entity_proofs(Local_1705, false, true, true, true, true, false, 0, false);
			ped::_set_ped_ragdoll_flag(Local_1705, 55);
			ped::set_ped_config_flag(Local_1705, 208, true);
			ped::set_ped_dies_when_injured(Local_1705, true);
			ped::set_ped_keep_task(Local_1705, true);
			ped::set_blocking_of_non_temporary_events(Local_1705, true);
			func_442(&(Local_3473[0 /*165*/]), 7, Local_1705, "AGENT2", 0, 1);
			ped::set_ped_name_debug(Local_1705, &(Local_1705.f_16));
			vLocal_3415 = { 0f, 0f, 0f };
			vLocal_3418 = { 0f, 0f, 0f };
			iLocal_3234 = ped::create_synchronized_scene(vLocal_3415, vLocal_3418, 2);
			ai::task_synchronized_scene(Local_1705, iLocal_3234, "missfbi4", "push_agents_agent2", 1000f, -4f, 5, 0, 1148846080, 0);
			if (vehicle::is_vehicle_driveable(Local_1192, 0))
			{
				ped::attach_synchronized_scene_to_entity(iLocal_3234, Local_1192, 0);
			}
			ped::_0x2208438012482A1A(Local_1705, 0, 0);
		}
	}
}

void func_752()//Position - 0x7920C
{
	if (!ped::is_ped_injured(Local_1685))
	{
		switch (iLocal_3247)
		{
			case 0:
				if (ped::is_synchronized_scene_running(iLocal_3233))
				{
					if (ped::get_synchronized_scene_phase(iLocal_3233) >= 0.28f)
					{
						entity::set_entity_proofs(Local_1685, false, false, false, false, false, false, 0, false);
						entity::set_entity_collision(Local_1685, true, 0);
					}
				}
				if (func_594(&Local_1685, &(Local_1685.f_10), Local_1685.f_14))
				{
					ai::open_sequence_task(&iLocal_3465);
					ai::task_follow_nav_mesh_to_coord(0, 898.86f, -2361.77f, 29.37f, 2f, -1, -1f, 1, 1193033728);
					ai::task_follow_nav_mesh_to_coord(0, 908.22f, -2370.33f, 29.55f, 2f, -1, -1f, 1, 1193033728);
					ai::task_smart_flee_ped(0, player::player_ped_id(), 500f, -1, 0, 0);
					ai::close_sequence_task(iLocal_3465);
					ai::task_perform_sequence(Local_1685, iLocal_3465);
					ai::clear_sequence_task(&iLocal_3465);
					iLocal_3247 = 1;
				}
				else if (ped::is_synchronized_scene_running(iLocal_3233))
				{
					if (ped::get_synchronized_scene_phase(iLocal_3233) >= 1f)
					{
						ai::open_sequence_task(&iLocal_3465);
						ai::task_follow_nav_mesh_to_coord(0, 898.86f, -2361.77f, 29.37f, 2f, -1, -1f, 1, 1193033728);
						ai::task_follow_nav_mesh_to_coord(0, 908.22f, -2370.33f, 29.55f, 2f, -1, -1f, 1, 1193033728);
						ai::task_smart_flee_ped(0, player::player_ped_id(), 500f, -1, 0, 0);
						ai::close_sequence_task(iLocal_3465);
						ai::task_perform_sequence(Local_1685, iLocal_3465);
						ai::clear_sequence_task(&iLocal_3465);
						iLocal_3247 = 1;
					}
				}
				else
				{
					iLocal_3247 = 1;
				}
				break;
			
			case 1:
				ped::set_ped_config_flag(Local_1685, 208, false);
				entity::set_ped_as_no_longer_needed(&Local_1685);
				streaming::set_model_as_no_longer_needed(Local_1685.f_1);
				func_727(&(Local_3473[0 /*165*/]), 6);
				iLocal_3247++;
				break;
			
			case 2:
				break;
		}
	}
	else
	{
		if (entity::does_entity_exist(Local_1685))
		{
			entity::set_ped_as_no_longer_needed(&Local_1685);
			streaming::set_model_as_no_longer_needed(Local_1685.f_1);
			func_727(&(Local_3473[0 /*165*/]), 6);
		}
		if (!Local_1685.f_14)
		{
			Local_1685 = ped::create_ped(26, Local_1685.f_1, Local_1685.f_3, Local_1685.f_9, 1, true);
			ped::set_ped_random_component_variation(Local_1685, 0);
			ped::_set_ped_ragdoll_flag(Local_1685, 54);
			ped::set_ped_config_flag(Local_1685, 208, true);
			ped::set_ped_dies_when_injured(Local_1685, true);
			ped::set_ped_keep_task(Local_1685, true);
			ped::set_blocking_of_non_temporary_events(Local_1685, true);
			func_442(&(Local_3473[0 /*165*/]), 6, Local_1685, "AGENT1", 0, 1);
			ped::set_ped_name_debug(Local_1685, &(Local_1685.f_16));
			Local_1685.f_14 = 1;
			vLocal_3415 = { 0f, 0f, 0f };
			vLocal_3418 = { 0f, 0f, 0f };
			iLocal_3233 = ped::create_synchronized_scene(vLocal_3415, vLocal_3418, 2);
			ai::task_synchronized_scene(Local_1685, iLocal_3233, "missfbi4", "push_agents_agent1", 1000f, -4f, 1, 0, 1148846080, 0);
			if (vehicle::is_vehicle_driveable(Local_1192, 0))
			{
				ped::attach_synchronized_scene_to_entity(iLocal_3233, Local_1192, 0);
			}
			ped::_0x2208438012482A1A(Local_1685, 0, 0);
		}
	}
}

void func_753()//Position - 0x794BF
{
	if (!Global_88064)
	{
		if (func_960() == 0 && !cam::does_cam_exist(Local_3143.f_9))
		{
			if (iLocal_3400 == 0)
			{
				iLocal_3400 = gameplay::get_game_timer();
			}
			else if (func_272(&iLocal_3400, 3000))
			{
				if (gameplay::is_pc_version())
				{
					if (controls::_is_input_disabled(0))
					{
						func_754("cntry_help11_KM", -1);
					}
					else
					{
						func_754("cntry_help11", -1);
					}
				}
				else
				{
					func_754("cntry_help11", -1);
				}
				Global_88064 = 1;
			}
		}
	}
}

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

void func_755()//Position - 0x79554
{
	int iVar0;
	int iVar1;
	
	if ((!func_772(&iLocal_3099) && !Local_3143.f_16) && iLocal_3180)
	{
		switch (iLocal_3241)
		{
			case 0:
				if (!func_627(&Local_3074, 0))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_van0", 7, 0, 0, 0))
					{
						unk1::_0x293220DA1B46CEBC(10f, 15f, 4);
						iLocal_3241++;
					}
				}
				break;
			
			case 1:
				if (!func_719("heat_killM"))
				{
					if (!func_627(&Local_3074, 0))
					{
						if ((!entity::does_entity_exist(Local_1685) && Local_1685.f_14) && (!entity::does_entity_exist(Local_1705) && Local_1705.f_14))
						{
							if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_killM", 7, 0, 0, 0))
							{
								func_716("heat_killM", 1);
							}
						}
					}
				}
				if (iLocal_3230 > 3)
				{
					if (!func_627(&Local_3074, 0))
					{
						if (func_726(&(Local_3473[0 /*165*/]), "heataud", "sirens", 7, 0, 0, 0))
						{
							iLocal_3241++;
						}
					}
				}
				break;
			
			case 2:
				iLocal_3241++;
				break;
			
			case 3:
				if (!func_627(&Local_3074, 0))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "cops_wave_0", 7, 0, 0, 0))
					{
						iLocal_3241++;
					}
				}
				break;
			
			case 4:
				if (!func_627(&Local_3074, 0))
				{
					if (!entity::is_entity_at_coord(player::player_ped_id(), 873.3599f, -2352.411f, 29.3306f, 4f, 4f, 2f, false, true, 0) || (entity::is_entity_at_coord(player::player_ped_id(), 873.3599f, -2352.411f, 29.3306f, 4f, 4f, 2f, false, true, 0) && !ped::is_ped_in_cover(player::player_ped_id(), 0)))
					{
						if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_cover", 7, 0, 0, 0))
						{
							iLocal_3241++;
						}
					}
					else if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_cover2", 7, 0, 0, 0))
					{
						iLocal_3241++;
					}
				}
				break;
			
			case 5:
				if (func_726(&(Local_3473[0 /*165*/]), "heataud", "get_ready_0", 7, 0, 0, 0))
				{
					iLocal_3241++;
				}
				break;
			
			case 6:
				iLocal_3241++;
				break;
			
			case 7:
				if (!func_627(&Local_3074, 0))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "get_ready_1", 7, 0, 0, 0))
					{
						iLocal_3241++;
					}
				}
				break;
			
			case 8:
				if (iLocal_3179)
				{
					if (!func_627(&Local_3074, 0))
					{
						ui::clear_prints();
						func_436("cntry_god9", 7500, 1);
						iLocal_3241++;
					}
				}
				break;
			
			case 9:
				break;
			
			case 10:
				break;
			
			case 11:
				break;
			
			case 22:
				break;
		}
		if (iLocal_3241 > 8)
		{
			if (!func_627(&Local_3074, 0))
			{
				if (func_770())
				{
					return;
				}
				if (func_768())
				{
					return;
				}
				if (func_764())
				{
					return;
				}
				if (func_763())
				{
					return;
				}
				if (func_762())
				{
					return;
				}
				if (func_761())
				{
					return;
				}
				if (!func_719("instruct_1"))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "instruct_1", 7, 0, 0, 0))
					{
						func_716("instruct_1", 1);
					}
				}
				if (!func_719("trevor_rpg"))
				{
					if (iLocal_3179)
					{
						if (entity::does_entity_exist(iLocal_3099[2]))
						{
							if (weapon::has_ped_got_weapon(iLocal_3099[2], joaat("weapon_rpg"), 0))
							{
								if (func_726(&(Local_3473[0 /*165*/]), "heataud", "trevor_rpg", 7, 0, 0, 0))
								{
									func_716("trevor_rpg", 1);
								}
							}
						}
					}
				}
				if (!func_719("rpg_M_respon"))
				{
					if (func_960() == 0)
					{
						if (fire::is_explosion_in_sphere(4, vLocal_3427, 10f))
						{
							if (func_726(&(Local_3473[0 /*165*/]), "heataud", "rpg_M_respon", 7, 0, 0, 0))
							{
								func_716("rpg_M_respon", 1);
							}
						}
					}
				}
				if (!func_719("rpg_f_respon"))
				{
					if (func_960() == 1)
					{
						if (fire::is_explosion_in_sphere(4, vLocal_3427, 10f))
						{
							if (func_726(&(Local_3473[0 /*165*/]), "heataud", "rpg_f_respon", 7, 0, 0, 0))
							{
								func_716("rpg_f_respon", 1);
							}
						}
					}
				}
				if (!func_719("all_out"))
				{
					if (func_960() == 2)
					{
						if (!weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_rpg"), 0))
						{
							if (func_726(&(Local_3473[0 /*165*/]), "heataud", "all_out", 7, 0, 0, 0))
							{
								func_716("all_out", 1);
							}
						}
					}
				}
			}
			if (!func_719("fbi4_norock"))
			{
				if (func_960() == 2)
				{
					if (!weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_rpg"), 0))
					{
						if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_norock", 6, 0, 0, 0))
						{
							func_716("fbi4_norock", 1);
							iLocal_3240 = gameplay::get_game_timer();
						}
					}
				}
			}
		}
		if (iLocal_3179)
		{
			iVar0 = (func_756() - iLocal_3292);
			if (iVar0 > iLocal_3291)
			{
				iLocal_3291 = iVar0;
				iLocal_3384 = gameplay::get_game_timer();
			}
			if (func_272(&iLocal_3240, 7000))
			{
				if (ped::is_ped_shooting(player::player_ped_id()))
				{
					if (!func_627(&Local_3074, 0))
					{
						switch (func_960())
						{
							case 0:
								if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_M_att0", 6, 0, 0, 0))
								{
									iLocal_3240 = gameplay::get_game_timer();
								}
								break;
							
							case 1:
								if ((gameplay::get_game_timer() - iLocal_3384) < 1000)
								{
									if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_FShoot1", 6, 0, 0, 0))
									{
										iLocal_3240 = gameplay::get_game_timer();
									}
								}
								else if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_F_att0", 6, 0, 0, 0))
								{
									iLocal_3240 = gameplay::get_game_timer();
								}
								break;
							
							case 2:
								weapon::get_current_ped_weapon(player::player_ped_id(), &iVar1, 1);
								if (entity::get_entity_height_above_ground(player::player_ped_id()) > 10f)
								{
									if (iVar1 == joaat("weapon_rpg"))
									{
										if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_T_att0", 6, 0, 0, 0))
										{
											iLocal_3240 = gameplay::get_game_timer();
										}
									}
									else if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_rattack", 6, 0, 0, 0))
									{
										iLocal_3240 = gameplay::get_game_timer();
									}
								}
								break;
							}
					}
				}
				else if (!func_627(&Local_3074, 0))
				{
					switch (func_960())
					{
						case 0:
							if (!ped::is_ped_injured(iLocal_3099[2]))
							{
								if (ped::is_ped_shooting(iLocal_3099[2]))
								{
									if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_t_att0", 6, 0, 0, 0))
									{
										iLocal_3240 = gameplay::get_game_timer();
									}
								}
							}
							if (!ped::is_ped_injured(iLocal_3099[1]))
							{
								if (ped::is_ped_shooting(iLocal_3099[1]))
								{
									if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_F_att0", 6, 0, 0, 0))
									{
										iLocal_3240 = gameplay::get_game_timer();
									}
								}
							}
							break;
						
						case 1:
							if (!ped::is_ped_injured(iLocal_3099[0]))
							{
								if (ped::is_ped_shooting(iLocal_3099[0]))
								{
									if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_M_att0", 6, 0, 0, 0))
									{
										iLocal_3240 = gameplay::get_game_timer();
									}
								}
							}
							if (!ped::is_ped_injured(iLocal_3099[2]))
							{
								if (ped::is_ped_shooting(iLocal_3099[2]))
								{
									if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_t_att0", 6, 0, 0, 0))
									{
										iLocal_3240 = gameplay::get_game_timer();
									}
								}
							}
							break;
						
						case 2:
							if (!ped::is_ped_injured(iLocal_3099[0]))
							{
								if (ped::is_ped_shooting(iLocal_3099[0]))
								{
									if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_M_att0", 6, 0, 0, 0))
									{
										iLocal_3240 = gameplay::get_game_timer();
									}
								}
							}
							if (!ped::is_ped_injured(iLocal_3099[1]))
							{
								if (ped::is_ped_shooting(iLocal_3099[1]))
								{
									if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_FShoot1", 6, 0, 0, 0))
									{
										iLocal_3240 = gameplay::get_game_timer();
									}
								}
							}
							break;
						}
					}
				}
		}
	}
	else if (!iLocal_3180)
	{
		if (func_596())
		{
			func_600();
		}
	}
}

int func_756()//Position - 0x79D51
{
	return (((func_760() + func_759()) + func_758()) + func_757());
}

int func_757()//Position - 0x79D6C
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	stats::stat_get_int(joaat("sp0_helis_exploded"), &iVar0, -1);
	stats::stat_get_int(joaat("sp1_helis_exploded"), &iVar1, -1);
	stats::stat_get_int(joaat("sp2_helis_exploded"), &iVar2, -1);
	return ((iVar0 + iVar1) + iVar2);
}

int func_758()//Position - 0x79DA2
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	stats::stat_get_int(joaat("sp0_cars_cops_exploded"), &iVar0, -1);
	stats::stat_get_int(joaat("sp1_cars_cops_exploded"), &iVar1, -1);
	stats::stat_get_int(joaat("sp2_cars_cops_exploded"), &iVar2, -1);
	return ((iVar0 + iVar1) + iVar2);
}

int func_759()//Position - 0x79DD9
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	stats::stat_get_int(joaat("sp0_kills_swat"), &iVar0, -1);
	stats::stat_get_int(joaat("sp1_kills_swat"), &iVar1, -1);
	stats::stat_get_int(joaat("sp2_kills_swat"), &iVar2, -1);
	return ((iVar0 + iVar1) + iVar2);
}

int func_760()//Position - 0x79E10
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	stats::stat_get_int(joaat("sp0_kills_cop"), &iVar0, -1);
	stats::stat_get_int(joaat("sp1_kills_cop"), &iVar1, -1);
	stats::stat_get_int(joaat("sp2_kills_cop"), &iVar2, -1);
	return ((iVar0 + iVar1) + iVar2);
}

bool func_761()//Position - 0x79E47
{
	if (!func_719("fbi4_FrNice"))
	{
		if (Local_2527[1 /*20*/].f_14)
		{
			if (!entity::does_entity_exist(Local_1433[1 /*15*/]))
			{
				if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_FrNice", 7, 0, 0, 0))
				{
					ui::clear_this_print("cntry_god34");
					func_716("fbi4_FrNice", 1);
					iLocal_3396 = 5;
				}
			}
		}
	}
	switch (iLocal_3396)
	{
		case 0:
			switch (func_960())
			{
				case 0:
				case 1:
					if (Local_2527[1 /*20*/].f_14)
					{
						if (func_726(&(Local_3473[0 /*165*/]), "heataud", "sniper_chopt", 7, 0, 0, 0))
						{
							iLocal_3396++;
							return true;
						}
					}
					break;
				
				case 2:
					if (Local_2527[1 /*20*/].f_14)
					{
						if (func_726(&(Local_3473[0 /*165*/]), "heataud", "sniper_chopm", 7, 0, 0, 0))
						{
							iLocal_3396++;
							return true;
						}
					}
					break;
			}
			break;
		
		case 1:
			if (!func_627(&Local_3074, 0))
			{
				func_436("cntry_god34", 7500, 1);
				iLocal_3396++;
				return true;
			}
			break;
		
		case 2:
			if (Local_2527[1 /*20*/].f_14)
			{
				if (entity::does_entity_exist(Local_1433[1 /*15*/]))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_FrHeli", 7, 0, 0, 0))
					{
						iLocal_3396++;
						return true;
					}
				}
			}
			break;
		
		case 3:
			if (Local_2527[1 /*20*/].f_14)
			{
				if (entity::does_entity_exist(Local_1433[1 /*15*/]))
				{
					switch (func_960())
					{
						case 0:
							if (!func_719("sniper_chopf"))
							{
								if (func_726(&(Local_3473[0 /*165*/]), "heataud", "sniper_chopf", 7, 0, 0, 0))
								{
									func_716("sniper_chopf", 1);
									return true;
								}
							}
							break;
						
						case 1:
							if (!func_719("sniper_chopm"))
							{
								if (func_726(&(Local_3473[0 /*165*/]), "heataud", "sniper_chopm", 7, 0, 0, 0))
								{
									func_716("sniper_chopm", 1);
									return true;
								}
							}
							break;
						
						case 2:
							if (!func_719("sniper_chopf"))
							{
								if (func_726(&(Local_3473[0 /*165*/]), "heataud", "sniper_chopm", 7, 0, 0, 0))
								{
									func_716("sniper_chopf", 1);
									return true;
								}
							}
							break;
						}
					}
			}
			break;
		
		case 5:
			break;
	}
	return false;
}

bool func_762()//Position - 0x7A0A4
{
	if (iLocal_3395 < 2)
	{
		if (iLocal_3206)
		{
			ui::clear_this_print("cntry_god33");
			iLocal_3395 = 2;
		}
	}
	switch (iLocal_3395)
	{
		case 0:
			if (Local_1725[34 /*20*/].f_14)
			{
				if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_micleft", 7, 0, 0, 0))
				{
					iLocal_3395++;
					return true;
				}
			}
			break;
		
		case 1:
			if (!func_627(&Local_3074, 0))
			{
				func_436("cntry_god33", 7500, 1);
				iLocal_3395++;
				return true;
			}
			break;
		
		case 2:
			break;
	}
	return false;
}

bool func_763()//Position - 0x7A142
{
	if (!iLocal_3184)
	{
		switch (iLocal_3282)
		{
			case 0:
				if (func_272(&iLocal_3250, 7000))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_info0", 7, 0, 0, 0))
					{
						iLocal_3250 = gameplay::get_game_timer();
						iLocal_3282++;
						return true;
					}
				}
				break;
			
			case 1:
				if (func_272(&iLocal_3250, 20000))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_info1", 7, 0, 0, 0))
					{
						iLocal_3250 = gameplay::get_game_timer();
						iLocal_3282++;
						return true;
					}
				}
				break;
			
			case 2:
				break;
			}
	}
	return false;
}

bool func_764()//Position - 0x7A1EB
{
	int iVar0;
	
	if (iLocal_3205)
	{
		if ((!ped::is_ped_injured(Local_1725[8 /*20*/]) || !ped::is_ped_injured(Local_1725[9 /*20*/])) || !ped::is_ped_injured(Local_1725[31 /*20*/]))
		{
			iVar0 = func_767();
			if (!func_719("fbi4_first"))
			{
				if (iVar0 == 1)
				{
					if (iLocal_3218)
					{
						if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_first", 7, 0, 0, 0))
						{
							func_716("fbi4_first", 1);
							return true;
						}
					}
				}
			}
			if (!func_719("f_snip_react"))
			{
				if (func_719("fbi4_first"))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "f_snip_react", 7, 0, 0, 0))
					{
						func_716("f_snip_react", 1);
						return true;
					}
				}
			}
			if (!func_719("fbi4_second"))
			{
				if (iVar0 == 2)
				{
					if (iLocal_3218)
					{
						if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_second", 7, 0, 0, 0))
						{
							func_716("fbi4_second", 1);
							return true;
						}
					}
				}
			}
			if (!func_719("t_snip_see"))
			{
				if (iLocal_3317 > 1)
				{
					if (func_960() == 2)
					{
						if (cam::is_first_person_aim_cam_active())
						{
							if (func_726(&(Local_3473[0 /*165*/]), "heataud", "t_snip_see", 7, 0, 0, 0))
							{
								func_716("t_snip_see", 1);
								return true;
							}
						}
					}
				}
			}
			switch (iLocal_3317)
			{
				case 0:
					if (func_766())
					{
						if (func_960() != 1)
						{
							if (func_726(&(Local_3473[0 /*165*/]), "heataud", "f_snipers2", 7, 0, 0, 0))
							{
								iLocal_3317++;
								return true;
							}
						}
						else if (func_726(&(Local_3473[0 /*165*/]), "heataud", "m_snipers2", 7, 0, 0, 0))
						{
							iLocal_3317++;
							return true;
						}
					}
					break;
				
				case 1:
					if (!func_627(&Local_3074, 0))
					{
						func_436("cntry_god32", 7500, 1);
						iLocal_3317++;
						return true;
					}
					break;
				
				case 2:
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "snip_on_roof", 7, 0, 0, 0))
					{
						iLocal_3317++;
						return true;
					}
					break;
				
				case 3:
					if (func_960() != 1)
					{
						if (func_726(&(Local_3473[0 /*165*/]), "heataud", "f_snip_help", 7, 0, 0, 0))
						{
							iLocal_3317++;
							iLocal_3355 = gameplay::get_game_timer();
							return true;
						}
					}
					else if (func_726(&(Local_3473[0 /*165*/]), "heataud", "m_snip_help", 7, 0, 0, 0))
					{
						iLocal_3317++;
						iLocal_3355 = gameplay::get_game_timer();
						return true;
					}
					break;
				
				case 4:
					if (func_272(&iLocal_3355, 30000))
					{
						switch (func_960())
						{
							case 0:
								if (func_726(&(Local_3473[0 /*165*/]), "heataud", "f_snipers", 7, 0, 0, 0))
								{
									iLocal_3317++;
									return true;
								}
								break;
							
							case 1:
								if (func_726(&(Local_3473[0 /*165*/]), "heataud", "m_snipers", 7, 0, 0, 0))
								{
									iLocal_3317++;
									return true;
								}
								break;
							
							case 2:
								switch (gameplay::get_random_int_in_range(0, 2))
								{
									case 0:
										if (func_726(&(Local_3473[0 /*165*/]), "heataud", "m_snipers", 7, 0, 0, 0))
										{
											iLocal_3317++;
											return true;
										}
										break;
									
									case 1:
										if (func_726(&(Local_3473[0 /*165*/]), "heataud", "f_snipers", 7, 0, 0, 0))
										{
											iLocal_3317++;
											return true;
										}
										break;
								}
								break;
							}
					}
					break;
				
				case 5:
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "snip_on_roof", 7, 0, 0, 0))
					{
						iLocal_3355 = gameplay::get_game_timer();
						iLocal_3317 = 4;
						return true;
					}
					break;
			}
		}
		else
		{
			if (func_765("cntry_god32", 0, 0))
			{
				ui::clear_this_print("cntry_god32");
			}
			if (!func_719("fbi4_gone"))
			{
				if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_gone", 7, 0, 0, 0))
				{
					func_716("fbi4_gone", 1);
					return true;
				}
			}
		}
	}
	return false;
}

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

bool func_766()//Position - 0x7A618
{
	if (!iLocal_3212)
	{
		if (entity::does_entity_exist(Local_1725[8 /*20*/]))
		{
			if (!ped::is_ped_injured(Local_1725[8 /*20*/]))
			{
				if (entity::is_entity_at_coord(Local_1725[8 /*20*/], Local_1725[8 /*20*/].f_6, 1f, 1f, 2f, false, true, 0))
				{
					iLocal_3212 = 1;
					return true;
				}
			}
		}
		else if (Local_1725[8 /*20*/].f_14)
		{
			iLocal_3212 = 1;
			return true;
		}
		if (entity::does_entity_exist(Local_1725[9 /*20*/]))
		{
			if (!ped::is_ped_injured(Local_1725[9 /*20*/]))
			{
				if (entity::is_entity_at_coord(Local_1725[9 /*20*/], Local_1725[9 /*20*/].f_6, 1f, 1f, 2f, false, true, 0))
				{
					iLocal_3212 = 1;
					return true;
				}
			}
		}
		else if (Local_1725[9 /*20*/].f_14)
		{
			iLocal_3212 = 1;
			return true;
		}
		if (entity::does_entity_exist(Local_1725[31 /*20*/]))
		{
			if (!ped::is_ped_injured(Local_1725[31 /*20*/]))
			{
				if (entity::is_entity_at_coord(Local_1725[31 /*20*/], Local_1725[31 /*20*/].f_6, 1f, 1f, 2f, false, true, 0))
				{
					iLocal_3212 = 1;
					return true;
				}
			}
		}
		else if (Local_1725[31 /*20*/].f_14)
		{
			iLocal_3212 = 1;
			return true;
		}
	}
	else
	{
		return true;
	}
	return false;
}

int func_767()//Position - 0x7A740
{
	int iVar0;
	
	iVar0 = 0;
	if (entity::does_entity_exist(Local_1725[8 /*20*/]))
	{
		if (ped::is_ped_injured(Local_1725[8 /*20*/]))
		{
			iVar0++;
		}
	}
	else if (Local_1725[8 /*20*/].f_14)
	{
		iVar0++;
	}
	if (entity::does_entity_exist(Local_1725[9 /*20*/]))
	{
		if (ped::is_ped_injured(Local_1725[9 /*20*/]))
		{
			iVar0++;
		}
	}
	else if (Local_1725[9 /*20*/].f_14)
	{
		iVar0++;
	}
	if (entity::does_entity_exist(Local_1725[31 /*20*/]))
	{
		if (ped::is_ped_injured(Local_1725[31 /*20*/]))
		{
			iVar0++;
		}
	}
	else if (Local_1725[31 /*20*/].f_14)
	{
		iVar0++;
	}
	return iVar0;
}

bool func_768()//Position - 0x7A7F2
{
	if (iLocal_3394 < 3)
	{
		if (iLocal_3205)
		{
			if (func_765("cntry_god31", 0, 0))
			{
				ui::clear_this_print("cntry_god31");
			}
			iLocal_3394 = 3;
		}
	}
	switch (iLocal_3394)
	{
		case 0:
			if (iLocal_3204)
			{
				if (entity::is_entity_in_angled_area(player::player_ped_id(), 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0))
				{
					switch (func_960())
					{
						case 0:
							if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_clearm", 7, 0, 0, 0))
							{
								iLocal_3394++;
								return true;
							}
							break;
						
						case 1:
							if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_clearf", 7, 0, 0, 0))
							{
								iLocal_3394++;
								return true;
							}
							break;
					}
				}
				else
				{
					iLocal_3394++;
				}
			}
			break;
		
		case 1:
			if (func_769())
			{
				iLocal_3213 = 1;
			}
			break;
		
		case 2:
			if (!func_627(&Local_3074, 0))
			{
				func_436("cntry_god31", 7500, 1);
				func_716("cntry_god31", 1);
				iLocal_3394++;
				return true;
			}
			break;
		
		case 3:
			if (!func_627(&Local_3074, 0))
			{
				if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_FrGot", 7, 0, 0, 0))
				{
					iLocal_3394++;
					return true;
				}
			}
			break;
		
		case 4:
			break;
	}
	return false;
}

bool func_769()//Position - 0x7A970
{
	if (entity::does_entity_exist(iLocal_3099[0]))
	{
		if (!entity::is_entity_in_angled_area(iLocal_3099[0], 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0))
		{
			if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_MFront", 7, 0, 0, 0))
			{
				iLocal_3394++;
				return true;
			}
		}
	}
	if (entity::does_entity_exist(iLocal_3099[1]))
	{
		if (!entity::is_entity_in_angled_area(iLocal_3099[1], 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0))
		{
			if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_FFront", 7, 0, 0, 0))
			{
				iLocal_3394++;
				return true;
			}
		}
	}
	if (entity::does_entity_exist(iLocal_3099[2]))
	{
		if (!entity::is_entity_in_angled_area(iLocal_3099[2], 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0))
		{
			if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_Tfront", 7, 0, 0, 0))
			{
				iLocal_3394++;
				return true;
			}
		}
	}
	return false;
}

bool func_770()//Position - 0x7AAB1
{
	if (iLocal_3379 < 5)
	{
		if (iLocal_3379 > 2)
		{
			if (entity::is_entity_in_angled_area(player::player_ped_id(), 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0) || func_771())
			{
				iLocal_3379 = 5;
			}
		}
	}
	switch (iLocal_3379)
	{
		case 0:
			if (Local_1725[12 /*20*/].f_14)
			{
				if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_frankB", 7, 0, 0, 0))
				{
					iLocal_3379++;
					return true;
				}
			}
			break;
		
		case 1:
			if (func_726(&(Local_3473[0 /*165*/]), "heataud", "alleycops1", 7, 0, 0, 0))
			{
				iLocal_3379++;
				return true;
			}
			break;
		
		case 2:
			if (!func_627(&Local_3074, 0))
			{
				func_436("cntry_god30", 7500, 1);
				iLocal_3379++;
				return true;
			}
			break;
		
		case 3:
			if (!entity::is_entity_in_angled_area(player::player_ped_id(), 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0) && !func_771())
			{
				if (!func_627(&Local_3074, 0))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_frankB2", 7, 0, 0, 0))
					{
						iLocal_3379++;
						return true;
					}
				}
			}
			break;
		
		case 4:
			if (!entity::is_entity_in_angled_area(player::player_ped_id(), 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0) && !func_771())
			{
				if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_frankB3", 7, 0, 0, 0))
				{
					iLocal_3379++;
					return true;
				}
			}
			break;
		
		case 5:
			break;
	}
	return false;
}

bool func_771()//Position - 0x7AC96
{
	int iVar0;
	
	iVar0 = 12;
	while (iVar0 <= 13)
	{
		if (Local_1725[iVar0 /*20*/].f_14)
		{
			if (ped::is_ped_injured(Local_1725[iVar0 /*20*/]) || entity::has_entity_been_damaged_by_entity(Local_1725[iVar0 /*20*/], player::player_ped_id(), 1))
			{
				return true;
			}
		}
		iVar0++;
	}
	iVar0 = 16;
	while (iVar0 <= 18)
	{
		if (Local_1725[iVar0 /*20*/].f_14)
		{
			if (ped::is_ped_injured(Local_1725[iVar0 /*20*/]) || entity::has_entity_been_damaged_by_entity(Local_1725[iVar0 /*20*/], player::player_ped_id(), 1))
			{
				return true;
			}
		}
		iVar0++;
	}
	return false;
}

bool func_772(int iParam0)//Position - 0x7AD2F
{
	if (iParam0->f_39)
	{
		if (iParam0->f_7 != 4 && iParam0->f_7 != 3)
		{
			return true;
		}
	}
	return false;
}

void func_773()//Position - 0x7AD57
{
	switch (iLocal_3378)
	{
		case 0:
			if (entity::is_entity_in_angled_area(player::player_ped_id(), 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0))
			{
				func_689(&iLocal_3099, 0, 0);
			}
			iLocal_2811 = 4;
			if (iLocal_3204)
			{
				if (iLocal_3213)
				{
					switch (func_960())
					{
						case 0:
							func_689(&iLocal_3099, 0, 0);
							func_689(&iLocal_3099, 2, 0);
							func_689(&iLocal_3099, 1, 1);
							func_776(&iLocal_3099, 1, 2, 0);
							iLocal_2811 = 1;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
							break;
						
						case 1:
							func_689(&iLocal_3099, 0, 1);
							func_689(&iLocal_3099, 2, 0);
							func_689(&iLocal_3099, 1, 0);
							func_776(&iLocal_3099, 0, 2, 0);
							iLocal_2811 = 0;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
							break;
						
						case 2:
							if (iLocal_3359 == 1)
							{
								func_689(&iLocal_3099, 0, 0);
								func_689(&iLocal_3099, 2, 0);
								func_689(&iLocal_3099, 1, 1);
								func_776(&iLocal_3099, 1, 2, 0);
								iLocal_2811 = 1;
								iLocal_3377 = gameplay::get_game_timer();
								iLocal_3378++;
							}
							else if (iLocal_3360 == 1)
							{
								func_689(&iLocal_3099, 0, 1);
								func_689(&iLocal_3099, 2, 0);
								func_689(&iLocal_3099, 1, 0);
								func_776(&iLocal_3099, 0, 2, 0);
								iLocal_2811 = 0;
								iLocal_3377 = gameplay::get_game_timer();
								iLocal_3378++;
							}
							else
							{
								func_689(&iLocal_3099, 0, 0);
								func_689(&iLocal_3099, 2, 0);
								func_689(&iLocal_3099, 1, 1);
								func_776(&iLocal_3099, 1, 2, 0);
								iLocal_2811 = 1;
								iLocal_3377 = gameplay::get_game_timer();
								iLocal_3378++;
							}
							break;
						}
					}
			}
			break;
		
		case 1:
			if (!Local_1725[8 /*20*/].f_14)
			{
				if (func_960() != func_488(iLocal_2811) && iLocal_2811 != 4)
				{
					if (func_272(&iLocal_3377, 10000))
					{
						func_775(&iLocal_3099, iLocal_2811, 1);
						func_774(iLocal_2811);
					}
					if (!func_627(&Local_3074, 0))
					{
						if (func_719("cntry_god31"))
						{
							switch (func_488(iLocal_2811))
							{
								case 0:
									if (func_272(&iLocal_3393, 20000))
									{
										if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_MFront", 7, 0, 0, 0))
										{
											iLocal_3393 = gameplay::get_game_timer();
										}
									}
									break;
								
								case 1:
									if (func_272(&iLocal_3393, 20000))
									{
										if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_FFront", 7, 0, 0, 0))
										{
											iLocal_3393 = gameplay::get_game_timer();
										}
									}
									break;
								}
							}
						}
				}
			}
			else
			{
				func_775(&iLocal_3099, iLocal_2811, 0);
				iLocal_2811 = 4;
				if (func_766())
				{
					switch (func_960())
					{
						case 0:
							func_689(&iLocal_3099, 0, 0);
							func_689(&iLocal_3099, 1, 0);
							func_689(&iLocal_3099, 2, 1);
							func_776(&iLocal_3099, 2, 0, 1);
							iLocal_2811 = 2;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
							break;
						
						case 1:
							func_689(&iLocal_3099, 0, 0);
							func_689(&iLocal_3099, 1, 0);
							func_689(&iLocal_3099, 2, 1);
							func_776(&iLocal_3099, 2, 0, 1);
							iLocal_2811 = 2;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
							break;
						
						case 2:
							break;
						}
					}
			}
			if (Local_1725[34 /*20*/].f_14)
			{
				iLocal_3378 = 2;
			}
			break;
		
		case 2:
			if (func_960() != func_488(iLocal_2811) && iLocal_2811 != 4)
			{
				if (func_272(&iLocal_3377, 10000))
				{
				}
			}
			if (Local_1725[34 /*20*/].f_14)
			{
				func_775(&iLocal_3099, iLocal_2811, 0);
				iLocal_2811 = 4;
				switch (func_960())
				{
					case 0:
						if (!entity::has_entity_been_damaged_by_entity(Local_1725[34 /*20*/], player::player_ped_id(), 1))
						{
							func_689(&iLocal_3099, 0, 0);
							func_689(&iLocal_3099, 1, 1);
							func_689(&iLocal_3099, 2, 0);
							func_776(&iLocal_3099, 1, 0, 1);
							iLocal_2811 = 1;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
						}
						else
						{
							iLocal_3378++;
						}
						break;
					
					case 1:
						if (!entity::has_entity_been_damaged_by_entity(Local_1725[34 /*20*/], player::player_ped_id(), 1))
						{
							func_689(&iLocal_3099, 0, 1);
							func_689(&iLocal_3099, 1, 0);
							func_689(&iLocal_3099, 2, 0);
							func_776(&iLocal_3099, 2, 0, 1);
							iLocal_2811 = 0;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
						}
						else
						{
							iLocal_3378++;
						}
						break;
					
					case 2:
						if (iLocal_3359 == 1)
						{
							func_689(&iLocal_3099, 0, 1);
							func_689(&iLocal_3099, 2, 0);
							func_689(&iLocal_3099, 1, 0);
							func_776(&iLocal_3099, 0, 2, 0);
							iLocal_2811 = 0;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
						}
						else if (iLocal_3360 == 1)
						{
							func_689(&iLocal_3099, 0, 0);
							func_689(&iLocal_3099, 2, 0);
							func_689(&iLocal_3099, 1, 1);
							func_776(&iLocal_3099, 1, 2, 0);
							iLocal_2811 = 1;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
						}
						else
						{
							func_689(&iLocal_3099, 0, 0);
							func_689(&iLocal_3099, 2, 0);
							func_689(&iLocal_3099, 1, 1);
							func_776(&iLocal_3099, 1, 2, 0);
							iLocal_2811 = 2;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
						}
						break;
					}
			}
			break;
		
		case 3:
			if (func_960() != func_488(iLocal_2811) && iLocal_2811 != 4)
			{
				if (func_272(&iLocal_3377, 10000))
				{
					func_775(&iLocal_3099, iLocal_2811, 1);
				}
			}
			if (Local_1725[10 /*20*/].f_14)
			{
				func_775(&iLocal_3099, iLocal_2811, 0);
				iLocal_2811 = 4;
				switch (func_960())
				{
					case 0:
						if (!entity::has_entity_been_damaged_by_entity(Local_1725[10 /*20*/], player::player_ped_id(), 1))
						{
							func_689(&iLocal_3099, 0, 0);
							func_689(&iLocal_3099, 1, 0);
							func_689(&iLocal_3099, 2, 1);
							func_776(&iLocal_3099, 2, 0, 1);
							iLocal_2811 = 2;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
						}
						break;
					
					case 1:
						if (!entity::has_entity_been_damaged_by_entity(Local_1725[10 /*20*/], player::player_ped_id(), 1))
						{
							func_689(&iLocal_3099, 0, 0);
							func_689(&iLocal_3099, 1, 0);
							func_689(&iLocal_3099, 2, 1);
							func_776(&iLocal_3099, 2, 0, 1);
							iLocal_2811 = 2;
							iLocal_3377 = gameplay::get_game_timer();
							iLocal_3378++;
						}
						break;
					
					case 2:
						break;
				}
				if (!entity::does_entity_exist(Local_1433[1 /*15*/]))
				{
					iLocal_3378 = 4;
				}
			}
			break;
		
		case 4:
			if (func_960() != func_488(iLocal_2811) && iLocal_2811 != 4)
			{
				if (func_272(&iLocal_3377, 10000))
				{
					func_775(&iLocal_3099, iLocal_2811, 1);
				}
			}
			if (!entity::does_entity_exist(Local_1433[1 /*15*/]))
			{
				func_775(&iLocal_3099, iLocal_2811, 0);
				iLocal_3378++;
			}
			break;
		
		case 5:
			break;
	}
}

void func_774(int iParam0)//Position - 0x7B408
{
	if (func_272(&iLocal_3376, 1000))
	{
		switch (iParam0)
		{
			case 0:
				entity::set_entity_health(iLocal_3099[0], (entity::get_entity_health(iLocal_3099[0]) - 15));
				break;
			
			case 1:
				entity::set_entity_health(iLocal_3099[1], (entity::get_entity_health(iLocal_3099[1]) - 15));
				break;
		}
		iLocal_3376 = gameplay::get_game_timer();
	}
}

void func_775(int iParam0, int iParam1, int iParam2)//Position - 0x7B46B
{
	if (iParam1 != 4)
	{
		iParam0->f_13[iParam1] = iParam2;
	}
}

void func_776(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x7B483
{
	iParam0->f_43 = 1;
	iParam0->f_40 = iParam1;
	iParam0->f_41 = iParam2;
	iParam0->f_42 = iParam3;
}

void func_777()//Position - 0x7B4A2
{
	int iVar0;
	vector3 vVar1;
	
	switch (iLocal_3235)
	{
		case 0:
			if (iLocal_3179)
			{
				if (func_734(&iLocal_3099, 1, 1))
				{
					ui::clear_help(1);
					if (func_733(&iLocal_3099, 0))
					{
						if (func_782())
						{
							iLocal_3235++;
						}
					}
					else if (func_733(&iLocal_3099, 1))
					{
						if (func_732())
						{
							iLocal_3235++;
						}
					}
					else if (func_733(&iLocal_3099, 2))
					{
						if (func_781())
						{
							iLocal_3235++;
						}
					}
				}
			}
			break;
		
		case 1:
			if (func_657(&Local_3143, 3, 0, 999f, 999f, 0, 0, 0, 0, 0))
			{
				if (Local_3143.f_18)
				{
					if (!Local_3143.f_19)
					{
						if (func_446(&iLocal_3099, 1, 1, 0))
						{
							ped::set_ped_can_ragdoll(player::player_ped_id(), 1);
							ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
							audio::_0x18EB48CFC41F2EA0(player::player_ped_id(), 0f);
							switch (func_960())
							{
								case 0:
									audio::start_audio_scene("FBI_4_SHOOTOUT_MICHAEL");
									iLocal_3400 = 0;
									break;
								
								case 1:
									audio::start_audio_scene("FBI_4_SHOOTOUT_FRANKLIN");
									break;
								
								case 2:
									audio::start_audio_scene("FBI_4_SHOOTOUT_TREVOR");
									break;
							}
							func_320(iLocal_3099[iLocal_3099.f_5], 0);
							func_319(&(iLocal_3099[iLocal_3099.f_5]), 0);
							audio::_0x153973AB99FE8980(iLocal_3099[iLocal_3099.f_5], "FBI_4_BUDDIES_GROUP", 0f);
							weapon::get_current_ped_weapon(iLocal_3099[iLocal_3099.f_5], &iVar0, 1);
							if (iLocal_3099.f_5 != 2)
							{
								if (iVar0 == joaat("weapon_grenadelauncher") || iVar0 == joaat("weapon_rpg"))
								{
									if (!weapon::has_ped_got_weapon(iLocal_3099[iLocal_3099.f_5], joaat("weapon_pistol"), 0))
									{
										weapon::give_weapon_to_ped(iLocal_3099[iLocal_3099.f_5], joaat("weapon_pistol"), 200, false, true);
									}
									else
									{
										if (weapon::get_ammo_in_ped_weapon(iLocal_3099[iLocal_3099.f_5], joaat("weapon_pistol")) < 200)
										{
											weapon::set_ped_ammo(iLocal_3099[iLocal_3099.f_5], joaat("weapon_pistol"), 200);
										}
										weapon::set_current_ped_weapon(iLocal_3099[iLocal_3099.f_5], joaat("weapon_pistol"), false);
									}
								}
							}
							switch (iLocal_3099.f_5)
							{
								case 0:
									if (audio::is_audio_scene_active("FBI_4_SHOOTOUT_MICHAEL"))
									{
										audio::stop_audio_scene("FBI_4_SHOOTOUT_MICHAEL");
									}
									func_780();
									break;
								
								case 1:
									if (audio::is_audio_scene_active("FBI_4_SHOOTOUT_FRANKLIN"))
									{
										audio::stop_audio_scene("FBI_4_SHOOTOUT_FRANKLIN");
									}
									func_779();
									break;
								
								case 2:
									if (audio::is_audio_scene_active("FBI_4_SHOOTOUT_TREVOR"))
									{
										audio::stop_audio_scene("FBI_4_SHOOTOUT_TREVOR");
									}
									vVar1 = { entity::get_entity_coords(iLocal_3099[iLocal_3099.f_5], 1) };
									if (vVar1.y > 40f)
									{
										if (!entity::is_entity_on_screen(iLocal_3099[iLocal_3099.f_5]))
										{
											entity::set_entity_coords(iLocal_3099[iLocal_3099.f_5], 804.7164f, -2330.207f, 61.0967f, 1, false, 0, 1);
											entity::set_entity_heading(iLocal_3099[iLocal_3099.f_5], 264.4371f);
										}
										ped::set_ped_sphere_defensive_area(iLocal_3099[iLocal_3099.f_5], 804.7164f, -2330.207f, 61.09672f, 0.75f, 0, 0);
										ped::set_blocking_of_non_temporary_events(iLocal_3099[iLocal_3099.f_5], true);
									}
									else
									{
										ped::set_ped_sphere_defensive_area(iLocal_3099[iLocal_3099.f_5], 871.4848f, -2339.364f, 29.3369f, 2f, 0, 0);
										ped::set_blocking_of_non_temporary_events(player::player_ped_id(), false);
									}
									iLocal_3289 = gameplay::get_game_timer();
									func_406(iLocal_3099[2], 1500);
									break;
							}
							if (iLocal_1127[8] == 1)
							{
								if (!ped::is_ped_injured(Local_1725[8 /*20*/]))
								{
									ai::task_aim_gun_at_entity(Local_1725[8 /*20*/], iLocal_3099[iLocal_3099.f_5], 2000, 0);
									ped::_0x2208438012482A1A(Local_1725[8 /*20*/], 0, 0);
									iLocal_3318[8] = 0;
								}
							}
							if (iLocal_1127[9] == 1)
							{
								if (!ped::is_ped_injured(Local_1725[9 /*20*/]))
								{
									ai::task_aim_gun_at_entity(Local_1725[9 /*20*/], iLocal_3099[iLocal_3099.f_5], 2000, 0);
									ped::_0x2208438012482A1A(Local_1725[9 /*20*/], 0, 0);
									iLocal_3318[9] = 0;
								}
							}
							if (iLocal_1127[31] == 1)
							{
								if (!ped::is_ped_injured(Local_1725[31 /*20*/]))
								{
									ai::task_aim_gun_at_entity(Local_1725[31 /*20*/], iLocal_3099[iLocal_3099.f_5], 2000, 0);
									ped::_0x2208438012482A1A(Local_1725[31 /*20*/], 0, 0);
									iLocal_3318[31] = 0;
								}
							}
							if (!iLocal_3206)
							{
								if (func_960() != 2)
								{
									entity::set_entity_only_damaged_by_player(iLocal_3099[2], true);
								}
								else
								{
									entity::set_entity_only_damaged_by_player(player::player_ped_id(), false);
								}
							}
							else if (func_960() != 2)
							{
								entity::set_entity_only_damaged_by_player(iLocal_3099[2], false);
							}
							func_707(313, 1, 0);
							Local_3143.f_19 = 1;
						}
					}
				}
			}
			else
			{
				switch (func_960())
				{
					case 0:
						break;
					
					case 1:
						break;
					
					case 2:
						func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_T_att0", 7, 0, 0, 0);
						break;
				}
				func_655(player::player_ped_id(), -1);
				func_778();
				iLocal_3235 = 0;
			}
			break;
		
		case 2:
			break;
		
		case 3:
			break;
	}
}

void func_778()//Position - 0x7B96F
{
	switch (iLocal_3099.f_5)
	{
		case 0:
			if (!ui::does_blip_exist(iLocal_3451))
			{
				iLocal_3451 = func_407(iLocal_3099[0], 0, 145);
				ui::set_blip_as_friendly(iLocal_3451, true);
				ui::set_blip_display(iLocal_3451, 2);
				ui::set_blip_scale(iLocal_3451, 0.5f);
			}
			if (!ped::is_ped_injured(iLocal_3099[0]))
			{
				ped::set_ped_can_ragdoll(iLocal_3099[0], 0);
			}
			break;
		
		case 1:
			if (!ui::does_blip_exist(iLocal_3453))
			{
				iLocal_3453 = func_407(iLocal_3099[1], 0, 145);
				ui::set_blip_as_friendly(iLocal_3453, true);
				ui::set_blip_display(iLocal_3453, 2);
				ui::set_blip_scale(iLocal_3453, 0.5f);
			}
			if (!ped::is_ped_injured(iLocal_3099[1]))
			{
				ped::set_ped_can_ragdoll(iLocal_3099[1], 0);
			}
			break;
		
		case 2:
			if (!ui::does_blip_exist(iLocal_3452))
			{
				iLocal_3452 = func_407(iLocal_3099[2], 0, 145);
				ui::set_blip_as_friendly(iLocal_3452, true);
				ui::set_blip_display(iLocal_3452, 2);
				ui::set_blip_scale(iLocal_3452, 0.5f);
			}
			if (!ped::is_ped_injured(iLocal_3099[2]))
			{
				ped::set_ped_can_ragdoll(iLocal_3099[2], 0);
			}
			break;
	}
}

void func_779()//Position - 0x7BA8C
{
	if (!iLocal_3198)
	{
		if (Local_1725[12 /*20*/].f_14)
		{
			if (entity::is_entity_in_angled_area(iLocal_3099[iLocal_3099.f_5], 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0))
			{
				iLocal_3360 = 1;
				iLocal_3198 = 1;
			}
		}
	}
	switch (iLocal_3360)
	{
		case 0:
			ped::set_ped_sphere_defensive_area(iLocal_3099[iLocal_3099.f_5], 874.0164f, -2353.893f, 29.3324f, 2.5f, 0, 0);
			ai::task_combat_hated_targets_around_ped(iLocal_3099[iLocal_3099.f_5], 200f, 0);
			func_406(iLocal_3099[iLocal_3099.f_5], 1500);
			break;
		
		case 1:
			ped::set_ped_sphere_defensive_area(iLocal_3099[iLocal_3099.f_5], 845.3195f, -2332.202f, 29.3346f, 2.5f, 0, 0);
			ai::task_combat_hated_targets_around_ped(iLocal_3099[iLocal_3099.f_5], 200f, 0);
			func_406(iLocal_3099[iLocal_3099.f_5], 1500);
			break;
	}
}

void func_780()//Position - 0x7BB92
{
	if (!iLocal_3198)
	{
		if (Local_1725[12 /*20*/].f_14)
		{
			if (entity::is_entity_in_angled_area(iLocal_3099[iLocal_3099.f_5], 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0))
			{
				iLocal_3359 = 1;
				iLocal_3198 = 1;
			}
		}
	}
	switch (iLocal_3359)
	{
		case 0:
			ped::set_ped_sphere_defensive_area(iLocal_3099[iLocal_3099.f_5], vLocal_3421, 1.5f, 0, 0);
			ai::task_combat_hated_targets_around_ped(iLocal_3099[iLocal_3099.f_5], 200f, 0);
			func_406(iLocal_3099[iLocal_3099.f_5], 1500);
			break;
		
		case 1:
			ped::set_ped_sphere_defensive_area(iLocal_3099[iLocal_3099.f_5], 845.3195f, -2332.202f, 29.3346f, 2.5f, 0, 0);
			ai::task_combat_hated_targets_around_ped(iLocal_3099[iLocal_3099.f_5], 200f, 0);
			func_406(iLocal_3099[iLocal_3099.f_5], 1500);
			break;
		
		case 2:
			break;
	}
}

bool func_781()//Position - 0x7BC97
{
	weapon::_is_ped_reloading(iLocal_3099[2]);
	Local_3143.f_12 = iLocal_3099[2];
	if (ui::does_blip_exist(iLocal_3452))
	{
		ui::remove_blip(&iLocal_3452);
	}
	ui::clear_help(1);
	iLocal_3184 = true;
	iLocal_3832 = 1;
	iLocal_3290 = 2;
	return true;
}

bool func_782()//Position - 0x7BCD8
{
	Local_3143.f_12 = iLocal_3099[0];
	if (ui::does_blip_exist(iLocal_3451))
	{
		ui::remove_blip(&iLocal_3451);
	}
	ui::clear_help(1);
	iLocal_3184 = true;
	iLocal_3830 = 1;
	return true;
}

void func_783()//Position - 0x7BD0A
{
	if (entity::does_entity_exist(iLocal_3099[2]))
	{
		if (!ped::is_ped_injured(iLocal_3099[2]))
		{
			switch (iLocal_3290)
			{
				case 0:
					if (iLocal_3179)
					{
						if (func_272(&iLocal_3289, 20000))
						{
							ai::task_shoot_at_coord(iLocal_3099[2], 925.45f, -2343.15f, 31.98f, 5000, 0);
							vLocal_3427 = { 925.45f, -2343.15f, 31.98f };
							iLocal_3289 = gameplay::get_game_timer();
							iLocal_3290++;
						}
					}
					break;
				
				case 1:
					if (func_272(&iLocal_3289, 30000))
					{
						if (vehicle::is_any_vehicle_near_point(913.23f, -2360.12f, 80f, 40f))
						{
							vLocal_3427 = { 913.23f, -2360.12f, 60f };
						}
						else
						{
							switch (gameplay::get_random_int_in_range(0, 4))
							{
								case 0:
									vLocal_3427 = { 913.5f, -2357.29f, 30.4f };
									break;
								
								case 1:
									vLocal_3427 = { 911f, -2337.11f, 30.02f };
									break;
								
								case 2:
									vLocal_3427 = { 920.75f, -2364.49f, 30.22f };
									break;
								
								case 3:
									vLocal_3427 = { 925.45f, -2343.15f, 31.98f };
									break;
								}
						}
						ai::task_shoot_at_coord(iLocal_3099[2], vLocal_3427, 5000, 0);
						iLocal_3289 = gameplay::get_game_timer();
					}
					if (entity::does_entity_exist(Local_1433[1 /*15*/]))
					{
						iLocal_3290++;
					}
					break;
				
				case 2:
					if (entity::does_entity_exist(Local_1433[1 /*15*/]))
					{
						if (vehicle::is_vehicle_driveable(Local_1433[1 /*15*/], 0))
						{
							if (ai::get_script_task_status(iLocal_3099[2], 1630799643) != 1)
							{
								ai::task_aim_gun_at_entity(iLocal_3099[2], Local_1433[1 /*15*/], -1, 0);
								ai::task_look_at_entity(iLocal_3099[2], Local_1433[1 /*15*/], -1, 0, 2);
							}
						}
					}
					else
					{
						ai::task_clear_look_at(iLocal_3099[2]);
						iLocal_3289 = gameplay::get_game_timer();
						iLocal_3290 = 1;
					}
					break;
				
				case 22:
					break;
				}
		}
	}
	else if (func_960() == 2)
	{
		ped::set_ped_reset_flag(player::player_ped_id(), 195, true);
	}
}

void func_784()//Position - 0x7BF1A
{
	if (entity::does_entity_exist(iLocal_3099[0]))
	{
		if (!ped::is_ped_injured(iLocal_3099[0]))
		{
			switch (iLocal_3230)
			{
				case 0:
					weapon::set_current_ped_weapon(iLocal_3099[0], joaat("weapon_combatmg"), true);
					ai::open_sequence_task(&iLocal_3465);
					ai::task_go_to_coord_while_aiming_at_coord(0, 894.0912f, -2349.348f, 29.4448f, 891.74f, -2358.18f, 30.71f, 2f, false, 0.5f, 1f, false, 0, 1, -957453492);
					ai::task_aim_gun_at_coord(0, 891.74f, -2358.18f, 30.71f, -1, 0, 0);
					ai::close_sequence_task(iLocal_3465);
					ai::task_perform_sequence(iLocal_3099[0], iLocal_3465);
					ai::clear_sequence_task(&iLocal_3465);
					iLocal_3230++;
					break;
				
				case 1:
					if (!entity::is_entity_at_coord(iLocal_3099[0], 894.0912f, -2349.348f, 29.4448f, 1f, 1f, 2f, false, true, 0))
					{
						if (func_593(iLocal_3099[0], 242628503, 1, 1))
						{
							ped::set_blocking_of_non_temporary_events(iLocal_3099[0], true);
							ai::clear_ped_tasks(iLocal_3099[0]);
							ai::open_sequence_task(&iLocal_3465);
							ai::task_go_to_coord_while_aiming_at_coord(0, 894.0912f, -2349.348f, 29.4448f, 891.74f, -2358.18f, 30.71f, 2f, false, 0.5f, 0.5f, true, 0, 0, -957453492);
							ai::task_aim_gun_at_coord(0, 891.74f, -2358.18f, 30.71f, -1, 0, 0);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(iLocal_3099[0], iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
						}
					}
					break;
				
				case 2:
					func_320(iLocal_3099[0], 0);
					vLocal_3415 = { 0f, 0f, 0f };
					vLocal_3418 = { 0f, 0f, 0f };
					iLocal_3232 = ped::create_synchronized_scene(vLocal_3415, vLocal_3418, 2);
					ai::task_synchronized_scene(iLocal_3099[0], iLocal_3232, "missfbi4", "push_agents_player0", 1000f, -8f, 5, 0, 1148846080, 0);
					if (vehicle::is_vehicle_driveable(Local_1192, 0))
					{
						ped::attach_synchronized_scene_to_entity(iLocal_3232, Local_1192, 0);
					}
					ped::_0x2208438012482A1A(iLocal_3099[0], 0, 0);
					iLocal_3230++;
					break;
				
				case 3:
					if (ped::is_synchronized_scene_running(iLocal_3232))
					{
						if (entity::does_entity_exist(Local_3029))
						{
							if (!entity::is_entity_attached(Local_3029))
							{
								if (ped::get_synchronized_scene_phase(iLocal_3232) >= 0.483f)
								{
									object::delete_object(&Local_3029);
									streaming::set_model_as_no_longer_needed(Local_3029.f_2);
								}
							}
						}
						if (ped::get_synchronized_scene_phase(iLocal_3232) >= 0.6f)
						{
							if (ped::get_synchronized_scene_phase(iLocal_3232) >= 0.82f)
							{
								if (!ped::is_ped_injured(Local_1685) && !ped::is_ped_injured(Local_1685))
								{
									func_726(&(Local_3473[0 /*165*/]), "HeatAud", "van_scene_3", 7, 0, 0, 0);
								}
								ai::open_sequence_task(&iLocal_3465);
								ai::task_aim_gun_at_coord(0, 887.65f, -2360.66f, 30.85f, 100, 1, 0);
								ai::task_follow_waypoint_recording(0, "heat3", 0, 138, -1);
								ai::close_sequence_task(iLocal_3465);
								ai::task_perform_sequence(iLocal_3099[0], iLocal_3465);
								ai::clear_sequence_task(&iLocal_3465);
								iLocal_7603 = 1;
								iLocal_7604 = 0;
								iLocal_7605 = iLocal_3469;
								iLocal_3230++;
							}
						}
					}
					break;
				
				case 4:
					if (ai::is_waypoint_playback_going_on_for_ped(iLocal_3099[0]))
					{
						iLocal_3230++;
					}
					break;
				
				case 5:
					if (ai::is_waypoint_playback_going_on_for_ped(iLocal_3099[0]))
					{
						ai::waypoint_playback_override_speed(iLocal_3099[0], 2f, 0);
						ai::waypoint_playback_start_aiming_at_coord(iLocal_3099[0], 900.25f, -2338.46f, 30.96f, 0);
					}
					if (!ped::is_ped_in_cover(iLocal_3099[0], 0))
					{
						if (iLocal_7603)
						{
							if (ai::is_waypoint_playback_going_on_for_ped(iLocal_3099[0]) && ai::get_ped_waypoint_progress(iLocal_3099[0]) > 13)
							{
								if (func_785(iLocal_3099[0], 881.53f, -2334.04f, 33.91f, 2f, 1) || entity::is_entity_in_angled_area(player::player_ped_id(), 878.698f, -2332.427f, 31.493f, 878.277f, -2336.807f, 36.593f, 7f, 0, true, 0))
								{
									vLocal_3421 = { 871.79f, -2344.442f, 29.33137f };
									iLocal_7605 = iLocal_3470;
									iLocal_7604 = 1;
									iLocal_7603 = 0;
								}
							}
						}
						else if (func_785(iLocal_3099[0], 871.79f, -2344.442f, 29.33137f, 2f, 1))
						{
							vLocal_3421 = { 881.53f, -2334.04f, 33.91f };
							iLocal_7605 = iLocal_3469;
							iLocal_7604 = 1;
							iLocal_7603 = 1;
						}
						if (entity::is_entity_at_coord(iLocal_3099[0], vLocal_3421, 2f, 2f, 2f, false, true, 0))
						{
							if ((((((!ai::is_waypoint_playback_going_on_for_ped(iLocal_3099[0]) && !ped::is_ped_in_cover(iLocal_3099[0], 0)) && !ped::is_ped_going_into_cover(iLocal_3099[0])) && ai::get_script_task_status(iLocal_3099[0], -1959848946) != 1) && ai::get_script_task_status(iLocal_3099[0], -1716541277) != 1) && ai::get_script_task_status(iLocal_3099[0], 1812035420) != 1) || iLocal_7604)
							{
								ped::set_blocking_of_non_temporary_events(iLocal_3099[0], true);
								ai::task_put_ped_directly_into_cover(iLocal_3099[0], vLocal_3421, -1, false, 0f, false, 0, iLocal_7605, 0);
								iLocal_7604 = 0;
							}
						}
						else if ((ai::get_script_task_status(iLocal_3099[0], 713668775) != 1 && !ai::is_waypoint_playback_going_on_for_ped(iLocal_3099[0])) || iLocal_7604)
						{
							ped::set_blocking_of_non_temporary_events(iLocal_3099[0], true);
							ai::task_follow_nav_mesh_to_coord(iLocal_3099[0], vLocal_3421, 2f, -1, 0.2f, 0, 1193033728);
							iLocal_7604 = 0;
						}
					}
					else
					{
						iLocal_3230++;
					}
					break;
				
				case 6:
					if (iLocal_3255 > 1)
					{
						func_320(iLocal_3099[0], 0);
						func_319(&(iLocal_3099[0]), 0);
						ped::set_ped_sphere_defensive_area(iLocal_3099[0], vLocal_3421, 1.5f, 0, 0);
						ai::task_combat_hated_targets_around_ped(iLocal_3099[0], 200f, 0);
						iLocal_3230++;
					}
					break;
				
				case 7:
					break;
				}
			}
	}
}

bool func_785(int iParam0, vector3 vParam1, float fParam4, int iParam5)//Position - 0x7C4D5
{
	vector3 vVar0;
	vector3 vVar3;
	float fVar6;
	float fVar7;
	
	if (!ped::is_ped_injured(iParam0))
	{
		vVar0 = { entity::get_entity_coords(player::player_ped_id(), 1) };
		vVar3 = { entity::get_entity_coords(iParam0, 1) };
		fVar6 = system::vdist(vVar3, vParam1);
		fVar7 = system::vdist(vVar0, vParam1);
		if (fVar6 < fParam4)
		{
			if (fVar7 < fVar6 && entity::is_entity_at_coord(player::player_ped_id(), vParam1, 1f, 1f, 2f, false, true, 0))
			{
				if (iParam5)
				{
					if (ped::is_ped_in_cover(player::player_ped_id(), 0))
					{
						return true;
					}
				}
				else
				{
					return true;
				}
			}
		}
	}
	return false;
}

void func_786()//Position - 0x7C55F
{
	switch (iLocal_3375)
	{
		case 0:
			if (entity::does_entity_exist(Local_1222[1 /*15*/]))
			{
				if (!entity::is_entity_dead(Local_1222[1 /*15*/], 0))
				{
					if (!ped::is_ped_injured(Local_1725[2 /*20*/]))
					{
						if (!ped::is_ped_sitting_in_vehicle(Local_1725[2 /*20*/], Local_1222[1 /*15*/]))
						{
							vehicle::set_vehicle_siren(Local_1222[1 /*15*/], false);
							iLocal_3375++;
						}
					}
					else
					{
						vehicle::set_vehicle_siren(Local_1222[1 /*15*/], false);
						iLocal_3375++;
					}
				}
			}
			break;
		
		case 1:
			if (entity::does_entity_exist(Local_1222[3 /*15*/]))
			{
				if (!entity::is_entity_dead(Local_1222[3 /*15*/], 0))
				{
					if (!ped::is_ped_injured(Local_1725[6 /*20*/]))
					{
						if (!ped::is_ped_sitting_in_vehicle(Local_1725[6 /*20*/], Local_1222[3 /*15*/]))
						{
							vehicle::set_vehicle_siren(Local_1222[3 /*15*/], false);
							iLocal_3375++;
						}
					}
					else
					{
						vehicle::set_vehicle_siren(Local_1222[3 /*15*/], false);
						iLocal_3375++;
					}
				}
			}
			break;
		
		case 2:
			break;
	}
}

void func_787()//Position - 0x7C658
{
	int iVar0;
	
	iVar0 = 0;
	switch (iLocal_3288)
	{
		case 0:
			if (((entity::does_entity_exist(Local_1222[0 /*15*/]) && entity::does_entity_exist(Local_1222[1 /*15*/])) && entity::does_entity_exist(Local_1222[2 /*15*/])) && entity::does_entity_exist(Local_1222[3 /*15*/]))
			{
				if (((!entity::is_entity_dead(Local_1222[0 /*15*/], 0) && !entity::is_entity_dead(Local_1222[1 /*15*/], 0)) && !entity::is_entity_dead(Local_1222[2 /*15*/], 0)) && !entity::is_entity_dead(Local_1222[3 /*15*/], 0))
				{
					if (((!vehicle::is_playback_going_on_for_vehicle(Local_1222[0 /*15*/]) && !vehicle::is_playback_going_on_for_vehicle(Local_1222[1 /*15*/])) && !vehicle::is_playback_going_on_for_vehicle(Local_1222[2 /*15*/])) && !vehicle::is_playback_going_on_for_vehicle(Local_1222[3 /*15*/]))
					{
						iVar0 = 0;
						while (iVar0 <= 3)
						{
							entity::clear_entity_last_damage_entity(Local_1222[iVar0 /*15*/]);
							iVar0++;
						}
						iLocal_3288 = 1;
					}
				}
				else
				{
					iLocal_3288 = 2;
				}
			}
			break;
		
		case 1:
			if (func_788(&Local_1725) >= (Local_1725 - 4))
			{
				iLocal_3288 = 2;
			}
			else
			{
				iVar0 = 0;
				while (iVar0 <= 3)
				{
					if (entity::does_entity_exist(Local_1222[iVar0 /*15*/]))
					{
						if (vehicle::is_vehicle_driveable(Local_1222[iVar0 /*15*/], 0))
						{
							if (entity::has_entity_been_damaged_by_entity(Local_1222[iVar0 /*15*/], player::player_ped_id(), 1))
							{
								Local_1222[iVar0 /*15*/].f_9 = entity::get_entity_health(Local_1222[iVar0 /*15*/]);
								Local_1222[iVar0 /*15*/].f_10 = vehicle::get_vehicle_engine_health(Local_1222[iVar0 /*15*/]);
								Local_1222[iVar0 /*15*/].f_11 = vehicle::get_vehicle_petrol_tank_health(Local_1222[iVar0 /*15*/]);
								if ((entity::get_entity_health(Local_1222[iVar0 /*15*/]) < 700 || vehicle::get_vehicle_engine_health(Local_1222[iVar0 /*15*/]) < 700f) || vehicle::get_vehicle_petrol_tank_health(Local_1222[iVar0 /*15*/]) < 700f)
								{
									if (vehicle::is_playback_going_on_for_vehicle(Local_1222[iVar0 /*15*/]))
									{
										vehicle::stop_playback_recorded_vehicle(Local_1222[iVar0 /*15*/]);
									}
									fire::add_owned_explosion(player::player_ped_id(), entity::get_entity_coords(Local_1222[iVar0 /*15*/], 1), 7, 1f, 1, 0, 1065353216);
									entity::set_vehicle_as_no_longer_needed(&(Local_1222[iVar0 /*15*/]));
									iLocal_3288 = 2;
									return;
								}
								else
								{
									entity::clear_entity_last_damage_entity(Local_1222[iVar0 /*15*/]);
								}
							}
						}
					}
					iVar0++;
				}
			}
			break;
		
		case 2:
			if (func_788(&Local_1725) >= (Local_1725 - 4))
			{
				iVar0 = 0;
				while (iVar0 <= (Local_1222 - 1))
				{
					if (entity::does_entity_exist(Local_1222[iVar0 /*15*/]))
					{
						if (vehicle::is_vehicle_driveable(Local_1222[iVar0 /*15*/], 0))
						{
							entity::clear_entity_last_damage_entity(Local_1222[iVar0 /*15*/]);
						}
					}
					iVar0++;
				}
				iLocal_3288 = 3;
			}
			break;
		
		case 3:
			iVar0 = 0;
			while (iVar0 <= (Local_1222 - 1))
			{
				if (entity::does_entity_exist(Local_1222[iVar0 /*15*/]))
				{
					if (vehicle::is_vehicle_driveable(Local_1222[iVar0 /*15*/], 0))
					{
						if (entity::has_entity_been_damaged_by_entity(Local_1222[iVar0 /*15*/], player::player_ped_id(), 1))
						{
							if ((entity::get_entity_health(Local_1222[iVar0 /*15*/]) < 700 || vehicle::get_vehicle_engine_health(Local_1222[iVar0 /*15*/]) < 700f) || vehicle::get_vehicle_petrol_tank_health(Local_1222[iVar0 /*15*/]) < 700f)
							{
								if (vehicle::is_playback_going_on_for_vehicle(Local_1222[iVar0 /*15*/]))
								{
									vehicle::stop_playback_recorded_vehicle(Local_1222[iVar0 /*15*/]);
								}
								vehicle::explode_vehicle(Local_1222[iVar0 /*15*/], 1, 0);
								entity::set_vehicle_as_no_longer_needed(&(Local_1222[iVar0 /*15*/]));
								iLocal_3288 = 22;
								return;
							}
							else
							{
								entity::clear_entity_last_damage_entity(Local_1222[iVar0 /*15*/]);
							}
						}
					}
				}
				iVar0++;
			}
			break;
		
		case 22:
			break;
	}
	if (entity::does_entity_exist(Local_1222[5 /*15*/]))
	{
		if (vehicle::is_vehicle_driveable(Local_1222[5 /*15*/], 0))
		{
			if (!vehicle::is_playback_going_on_for_vehicle(Local_1222[5 /*15*/]))
			{
				if (entity::has_entity_been_damaged_by_entity(Local_1222[5 /*15*/], player::player_ped_id(), 1))
				{
					if ((entity::get_entity_health(Local_1222[5 /*15*/]) < 500 || vehicle::get_vehicle_engine_health(Local_1222[5 /*15*/]) < 500f) || vehicle::get_vehicle_petrol_tank_health(Local_1222[5 /*15*/]) < 500f)
					{
						if (vehicle::is_playback_going_on_for_vehicle(Local_1222[5 /*15*/]))
						{
							vehicle::stop_playback_recorded_vehicle(Local_1222[5 /*15*/]);
						}
						vehicle::explode_vehicle(Local_1222[5 /*15*/], 1, 0);
					}
					else
					{
						entity::clear_entity_last_damage_entity(Local_1222[5 /*15*/]);
					}
				}
			}
			else
			{
				entity::clear_entity_last_damage_entity(Local_1222[5 /*15*/]);
			}
		}
	}
}

int func_788(int iParam0)//Position - 0x7CA77
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 <= (*iParam0 - 1))
	{
		if ((iParam0[iVar1 /*20*/])->f_14)
		{
			if (ped::is_ped_injured((*iParam0)[iVar1 /*20*/]))
			{
				iVar0++;
			}
		}
		iVar1++;
	}
	return iVar0;
}

void func_789()//Position - 0x7CABB
{
	if (entity::does_entity_exist(Local_1433[1 /*15*/]))
	{
		if (entity::does_entity_exist(Local_2527[1 /*20*/]))
		{
			if (!ped::is_ped_injured(Local_2527[1 /*20*/]))
			{
				if (vehicle::is_vehicle_driveable(Local_1433[1 /*15*/], 0))
				{
					if (!vehicle::is_playback_going_on_for_vehicle(Local_1433[1 /*15*/]))
					{
						switch (iLocal_3371)
						{
							case 0:
								if (func_593(Local_2527[1 /*20*/], 242628503, -2, 1))
								{
									ai::open_sequence_task(&iLocal_3465);
									ai::task_heli_mission(0, Local_1433[1 /*15*/], 0, 0, 834.8f, -2327.7f, 68f, 4, 10f, 1f, 173.2674f, 15, 10, -1f, 0);
									ai::task_heli_mission(0, Local_1433[1 /*15*/], 0, 0, 813.1f, -2338.4f, 68f, 4, 10f, 1f, 173.2674f, 15, 10, -1f, 0);
									ai::task_heli_mission(0, Local_1433[1 /*15*/], 0, 0, 811.4f, -2313.22f, 68f, 4, 10f, 1f, 0f, 15, 10, -1f, 0);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_2527[1 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
								}
								break;
							
							case 1:
								break;
						}
					}
				}
				else
				{
					entity::set_entity_health(Local_2527[1 /*20*/], 2);
					entity::set_ped_as_no_longer_needed(&(Local_2527[1 /*20*/]));
					if (!ped::is_ped_injured(Local_1725[10 /*20*/]))
					{
						if (ped::is_ped_sitting_in_vehicle(Local_1725[10 /*20*/], Local_1433[1 /*15*/]))
						{
							entity::set_entity_health(Local_1725[10 /*20*/], 2);
						}
					}
					if (!ped::is_ped_injured(Local_1725[11 /*20*/]))
					{
						if (ped::is_ped_sitting_in_vehicle(Local_1725[11 /*20*/], Local_1433[1 /*15*/]))
						{
							entity::set_entity_health(Local_1725[11 /*20*/], 2);
						}
					}
					if (!entity::is_entity_dead(Local_1433[1 /*15*/], 0))
					{
						vehicle::explode_vehicle(Local_1433[1 /*15*/], 1, 0);
					}
					fire::add_explosion(entity::get_entity_coords(Local_1433[1 /*15*/], 0), 0, 1f, 1, 0, 1f);
					entity::set_vehicle_as_no_longer_needed(&(Local_1433[1 /*15*/]));
					func_790(1);
				}
			}
			else
			{
				entity::set_ped_as_no_longer_needed(&(Local_2527[1 /*20*/]));
				iLocal_3368[1] = gameplay::get_game_timer();
			}
		}
		else if (!entity::is_entity_dead(Local_1433[1 /*15*/], 0))
		{
			if (entity::get_entity_height_above_ground(Local_1433[1 /*15*/]) < 2.2f || (iLocal_3368[1] != 0 && func_272(&(iLocal_3368[1]), 7000)))
			{
				entity::set_entity_proofs(Local_1433[1 /*15*/], false, false, false, false, false, false, 0, false);
				vehicle::explode_vehicle(Local_1433[1 /*15*/], 1, 0);
				vehicle::explode_vehicle(Local_1433[1 /*15*/], 1, 0);
				if (!ped::is_ped_injured(Local_2527[1 /*20*/]))
				{
					entity::set_entity_health(Local_2527[1 /*20*/], 2);
					entity::set_ped_as_no_longer_needed(&(Local_2527[1 /*20*/]));
				}
				if (!ped::is_ped_injured(Local_1725[10 /*20*/]))
				{
					if (ped::is_ped_sitting_in_vehicle(Local_1725[10 /*20*/], Local_1433[1 /*15*/]))
					{
						entity::set_entity_health(Local_1725[10 /*20*/], 2);
					}
				}
				if (!ped::is_ped_injured(Local_1725[11 /*20*/]))
				{
					if (ped::is_ped_sitting_in_vehicle(Local_1725[11 /*20*/], Local_1433[1 /*15*/]))
					{
						entity::set_entity_health(Local_1725[11 /*20*/], 2);
					}
				}
				func_790(1);
			}
		}
		else
		{
			func_790(1);
		}
	}
}

void func_790(int iParam0)//Position - 0x7CDB7
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 <= (Local_2446 - 1))
	{
		if (iLocal_1172[iVar0] < 6)
		{
			if (!ped::is_ped_injured(Local_2446[iVar0 /*20*/]))
			{
				if (entity::is_entity_attached_to_any_vehicle(Local_2446[iVar0 /*20*/]))
				{
					entity::detach_entity(Local_2446[iVar0 /*20*/], 1, true);
				}
				ped::set_ped_gravity(Local_2446[iVar0 /*20*/], 1);
			}
			else
			{
				Local_2446[iVar0 /*20*/].f_14 = 1;
			}
			iLocal_1172[iVar0] = 6;
		}
		iVar0++;
	}
	if (rope::does_rope_exist(&(Local_3053[0 /*10*/])))
	{
		rope::delete_rope(&(Local_3053[0 /*10*/]));
	}
	if (rope::does_rope_exist(&(Local_3053[1 /*10*/])))
	{
		rope::delete_rope(&(Local_3053[1 /*10*/]));
	}
	if (vehicle::is_vehicle_driveable(Local_1433[1 /*15*/], 0))
	{
		if (vehicle::is_playback_going_on_for_vehicle(Local_1433[1 /*15*/]))
		{
			vehicle::stop_playback_recorded_vehicle(Local_1433[1 /*15*/]);
		}
		if (iParam0)
		{
			if (!ped::is_ped_injured(Local_2527[1 /*20*/]))
			{
				ai::clear_ped_tasks(Local_2527[1 /*20*/]);
				ai::open_sequence_task(&iLocal_3465);
				ai::task_heli_mission(0, Local_1433[1 /*15*/], 0, 0, 0f, 0f, 0f, 4, 25f, 0f, -1f, 70, 65, -1f, 0);
				ai::close_sequence_task(iLocal_3465);
				ai::task_perform_sequence(Local_2527[1 /*20*/], iLocal_3465);
				ai::clear_sequence_task(&iLocal_3465);
			}
		}
	}
	entity::set_ped_as_no_longer_needed(&(Local_2527[1 /*20*/]));
	entity::set_vehicle_as_no_longer_needed(&(Local_1433[1 /*15*/]));
	streaming::set_model_as_no_longer_needed(Local_1433[1 /*15*/].f_1);
}

void func_791()//Position - 0x7CF01
{
	if (entity::does_entity_exist(Local_1433[0 /*15*/]))
	{
		if (!ped::is_ped_injured(Local_2527[0 /*20*/]))
		{
			if (vehicle::is_vehicle_driveable(Local_1433[0 /*15*/], 0))
			{
				if (vehicle::is_playback_going_on_for_vehicle(Local_1433[0 /*15*/]))
				{
					switch (iLocal_3373)
					{
						case 0:
							vehicle::set_vehicle_searchlight(Local_1433[0 /*15*/], 1, 1);
							ai::task_vehicle_aim_at_coord(Local_2527[0 /*20*/], 863.7f, -2272f, 38f);
							iLocal_3373++;
							break;
						
						case 1:
							if (vehicle::get_time_position_in_recording(Local_1433[0 /*15*/]) > 28000f)
							{
								ai::task_vehicle_aim_at_coord(Local_2527[0 /*20*/], 864.3f, -2266.9f, 38.8f);
								iLocal_3373++;
							}
							break;
						
						case 2:
							if (vehicle::get_time_position_in_recording(Local_1433[0 /*15*/]) > 31000f)
							{
								ai::task_vehicle_aim_at_coord(Local_2527[0 /*20*/], 850f, -2305f, 30f);
								iLocal_3373++;
							}
							break;
						
						case 3:
							if (vehicle::get_time_position_in_recording(Local_1433[0 /*15*/]) > 45000f)
							{
								ai::task_vehicle_aim_at_coord(Local_2527[0 /*20*/], 841f, -2230f, 38f);
								iLocal_3373++;
							}
							break;
						
						case 4:
							break;
					}
				}
				else
				{
					ped::delete_ped(&(Local_2527[0 /*20*/]));
					vehicle::delete_vehicle(&(Local_1433[0 /*15*/]));
					vehicle::remove_vehicle_recording(Local_1433[0 /*15*/].f_13, "lkfbi4");
				}
			}
			else
			{
				entity::set_entity_health(Local_2527[0 /*20*/], 2);
				entity::set_ped_as_no_longer_needed(&(Local_2527[0 /*20*/]));
				fire::add_explosion(entity::get_entity_coords(Local_1433[0 /*15*/], 0), 0, 0.5f, 1, 0, 1f);
				entity::set_vehicle_as_no_longer_needed(&(Local_1433[0 /*15*/]));
			}
		}
		else
		{
			if (entity::is_entity_dead(Local_1433[0 /*15*/], 0))
			{
				vehicle::explode_vehicle(Local_1433[0 /*15*/], 1, 0);
			}
			entity::set_ped_as_no_longer_needed(&(Local_2527[0 /*20*/]));
			entity::set_vehicle_as_no_longer_needed(&(Local_1433[0 /*15*/]));
		}
	}
}

void func_792()//Position - 0x7D0D4
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 <= (Local_2709 - 1))
	{
		if (!ped::is_ped_injured(Local_2709[iVar0 /*20*/]))
		{
			switch (iLocal_1168[iVar0])
			{
				case 0:
					switch (iVar0)
					{
						case 0:
						case 1:
						case 2:
						case 3:
						case 4:
						case 5:
							ped::set_ped_combat_attributes(Local_2709[iVar0 /*20*/], 37, true);
							ped::set_blocking_of_non_temporary_events(Local_2709[iVar0 /*20*/], false);
							ped::set_ped_sphere_defensive_area(Local_2709[iVar0 /*20*/], Local_2709[iVar0 /*20*/].f_6, 5f, 0, 0);
							ai::task_combat_hated_targets_around_ped(Local_2709[iVar0 /*20*/], 200f, 0);
							iLocal_1168[iVar0] = 1;
							break;
					}
					break;
				
				case 1:
					switch (iVar0)
					{
						case 0:
							break;
					}
					break;
				
				case 5:
					break;
				}
		}
		iVar0++;
	}
}

void func_793()//Position - 0x7D1B5
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 <= (Local_2648 - 1))
	{
		if (!ped::is_ped_injured(Local_2648[iVar0 /*20*/]))
		{
			switch (iLocal_1164[iVar0])
			{
				case 0:
					switch (iVar0)
					{
						case 0:
						case 1:
						case 2:
						case 3:
						case 4:
						case 5:
							ped::set_ped_combat_attributes(Local_2648[iVar0 /*20*/], 37, true);
							ped::set_blocking_of_non_temporary_events(Local_2648[iVar0 /*20*/], false);
							ped::set_ped_sphere_defensive_area(Local_2648[iVar0 /*20*/], Local_2648[iVar0 /*20*/].f_6, 5f, 0, 0);
							ai::task_combat_hated_targets_around_ped(Local_2648[iVar0 /*20*/], 200f, 0);
							iLocal_1164[iVar0] = 1;
							break;
					}
					break;
				
				case 1:
					switch (iVar0)
					{
						case 0:
							break;
					}
					break;
				
				case 5:
					break;
				}
		}
		iVar0++;
	}
}

bool func_794()//Position - 0x7D296
{
	int iVar0;
	vector3 vVar1;
	int iVar4;
	int iVar5;
	
	iVar0 = 0;
	iVar0 = 0;
	while (iVar0 <= (Local_1725 - 1))
	{
		if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
		{
			switch (iLocal_1127[iVar0])
			{
				case 0:
					switch (iVar0)
					{
						case 0:
							if (vehicle::is_vehicle_driveable(Local_1222[0 /*15*/], 0))
							{
								if (vehicle::is_playback_going_on_for_vehicle(Local_1222[0 /*15*/]))
								{
									if (vehicle::get_time_position_in_recording(Local_1222[0 /*15*/]) + 3000f) > vehicle::get_total_duration_of_vehicle_recording(Local_1222[0 /*15*/].f_13, "lkfbi4")
									{
										entity::set_entity_proofs(Local_1725[iVar0 /*20*/], false, false, false, false, false, false, 0, false);
									}
									else
									{
										entity::set_entity_proofs(Local_1725[iVar0 /*20*/], true, false, false, false, false, false, 0, false);
									}
									if (vehicle::get_time_position_in_recording(Local_1222[0 /*15*/]) + 500f) > vehicle::get_total_duration_of_vehicle_recording(Local_1222[0 /*15*/].f_13, "lkfbi4")
									{
										vehicle::stop_playback_recorded_vehicle(Local_1222[0 /*15*/]);
										ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
										ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
										ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
										ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
										iLocal_1127[iVar0] = 5;
									}
								}
							}
							else
							{
								entity::set_entity_proofs(Local_1725[iVar0 /*20*/], false, false, false, false, false, false, 0, false);
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 1:
							if (vehicle::is_vehicle_driveable(Local_1222[0 /*15*/], 0))
							{
								if (!vehicle::is_playback_going_on_for_vehicle(Local_1222[0 /*15*/]))
								{
									ai::open_sequence_task(&iLocal_3465);
									ai::task_pause(0, 500);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
									iLocal_1127[iVar0] = 1;
								}
							}
							else
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 2:
							if (vehicle::is_vehicle_driveable(Local_1222[1 /*15*/], 0))
							{
								if (vehicle::is_playback_going_on_for_vehicle(Local_1222[1 /*15*/]))
								{
									if (vehicle::get_time_position_in_recording(Local_1222[1 /*15*/]) + 3000f) > vehicle::get_total_duration_of_vehicle_recording(Local_1222[1 /*15*/].f_13, "lkfbi4")
									{
										entity::set_entity_proofs(Local_1725[iVar0 /*20*/], false, false, false, false, false, false, 0, false);
									}
									else
									{
										entity::set_entity_proofs(Local_1725[iVar0 /*20*/], true, false, false, false, false, false, 0, false);
									}
									if (vehicle::get_time_position_in_recording(Local_1222[1 /*15*/]) + 500f) > vehicle::get_total_duration_of_vehicle_recording(Local_1222[1 /*15*/].f_13, "lkfbi4")
									{
										vehicle::stop_playback_recorded_vehicle(Local_1222[1 /*15*/]);
										ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
										ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
										ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
										ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
										iLocal_1127[iVar0] = 5;
									}
								}
							}
							else
							{
								entity::set_entity_proofs(Local_1725[iVar0 /*20*/], false, false, false, false, false, false, 0, false);
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 3:
							if (vehicle::is_vehicle_driveable(Local_1222[1 /*15*/], 0))
							{
								if (!vehicle::is_playback_going_on_for_vehicle(Local_1222[1 /*15*/]))
								{
									ai::open_sequence_task(&iLocal_3465);
									ai::task_pause(0, 250);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
									iLocal_1127[iVar0] = 1;
								}
							}
							else
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 4:
							if (vehicle::is_vehicle_driveable(Local_1222[2 /*15*/], 0))
							{
								if (vehicle::is_playback_going_on_for_vehicle(Local_1222[2 /*15*/]))
								{
									if (vehicle::get_time_position_in_recording(Local_1222[2 /*15*/]) + 3000f) > vehicle::get_total_duration_of_vehicle_recording(Local_1222[2 /*15*/].f_13, "lkfbi4")
									{
										entity::set_entity_proofs(Local_1725[iVar0 /*20*/], false, false, false, false, false, false, 0, false);
									}
									else
									{
										entity::set_entity_proofs(Local_1725[iVar0 /*20*/], true, false, false, false, false, false, 0, false);
									}
									if (vehicle::get_time_position_in_recording(Local_1222[2 /*15*/]) + 500f) > vehicle::get_total_duration_of_vehicle_recording(Local_1222[2 /*15*/].f_13, "lkfbi4")
									{
										vehicle::stop_playback_recorded_vehicle(Local_1222[2 /*15*/]);
										ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
										ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
										ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
										ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
										iLocal_1127[iVar0] = 5;
									}
								}
							}
							else
							{
								entity::set_entity_proofs(Local_1725[iVar0 /*20*/], false, false, false, false, false, false, 0, false);
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 5:
							if (vehicle::is_vehicle_driveable(Local_1222[2 /*15*/], 0))
							{
								if (!vehicle::is_playback_going_on_for_vehicle(Local_1222[2 /*15*/]))
								{
									ai::open_sequence_task(&iLocal_3465);
									ai::task_pause(0, 250);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
									iLocal_1127[iVar0] = 1;
								}
							}
							else
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 6:
							if (vehicle::is_vehicle_driveable(Local_1222[3 /*15*/], 0))
							{
								if (!vehicle::is_playback_going_on_for_vehicle(Local_1222[3 /*15*/]))
								{
									vehicle::stop_playback_recorded_vehicle(Local_1222[3 /*15*/]);
									ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
									ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
									ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
									ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
									iLocal_1127[iVar0] = 5;
								}
								else if (vehicle::get_time_position_in_recording(Local_1222[3 /*15*/]) + 3000f) > vehicle::get_total_duration_of_vehicle_recording(Local_1222[3 /*15*/].f_13, "lkfbi4")
								{
									entity::set_entity_proofs(Local_1725[iVar0 /*20*/], false, false, false, false, false, false, 0, false);
								}
								else
								{
									entity::set_entity_proofs(Local_1725[iVar0 /*20*/], true, false, false, false, false, false, 0, false);
								}
							}
							else
							{
								entity::set_entity_proofs(Local_1725[iVar0 /*20*/], false, false, false, false, false, false, 0, false);
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 7:
							if (vehicle::is_vehicle_driveable(Local_1222[3 /*15*/], 0))
							{
								if (!vehicle::is_playback_going_on_for_vehicle(Local_1222[3 /*15*/]))
								{
									ai::open_sequence_task(&iLocal_3465);
									ai::task_pause(0, 250);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
									iLocal_1127[iVar0] = 1;
								}
							}
							else
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 8:
							ai::open_sequence_task(&iLocal_3465);
							ai::task_go_to_coord_while_aiming_at_coord(0, Local_1725[iVar0 /*20*/].f_6, 879.7f, -2354.9f, 42.2f, 2f, false, 0.5f, 0.5f, true, 512, 0, -957453492);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
							fLocal_3445 = 0f;
							iLocal_3356 = gameplay::get_game_timer();
							iLocal_1127[iVar0] = 1;
							break;
						
						case 9:
							ai::open_sequence_task(&iLocal_3465);
							ai::task_go_to_coord_while_aiming_at_coord(0, Local_1725[iVar0 /*20*/].f_6, 879.7f, -2354.9f, 42.2f, 2f, false, 0.5f, 0.5f, true, 512, 0, -957453492);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
							fLocal_3446 = 0f;
							iLocal_3357 = gameplay::get_game_timer();
							iLocal_1127[iVar0] = 1;
							break;
						
						case 10:
							if (entity::does_entity_exist(Local_1433[1 /*15*/]))
							{
								if (vehicle::is_vehicle_driveable(Local_1433[1 /*15*/], 0))
								{
									if (ped::is_ped_sitting_in_vehicle(Local_1725[iVar0 /*20*/], Local_1433[1 /*15*/]))
									{
										if (vehicle::is_playback_going_on_for_vehicle(Local_1433[1 /*15*/]))
										{
											if (vehicle::get_time_position_in_recording(Local_1433[1 /*15*/]) > 13000f)
											{
												iLocal_1127[iVar0] = 1;
											}
										}
									}
									else
									{
										iLocal_1127[iVar0] = 1;
									}
								}
								else if (!ped::is_ped_sitting_in_any_vehicle(Local_1725[iVar0 /*20*/]))
								{
									iLocal_1127[iVar0] = 1;
								}
								else
								{
									entity::set_entity_health(Local_1725[iVar0 /*20*/], 2);
								}
							}
							else
							{
								iLocal_1127[iVar0] = 1;
							}
							break;
						
						case 11:
							if (entity::does_entity_exist(Local_1433[1 /*15*/]))
							{
								if (vehicle::is_vehicle_driveable(Local_1433[1 /*15*/], 0))
								{
									if (ped::is_ped_sitting_in_vehicle(Local_1725[iVar0 /*20*/], Local_1433[1 /*15*/]))
									{
										if (vehicle::is_playback_going_on_for_vehicle(Local_1433[1 /*15*/]))
										{
											if (vehicle::get_time_position_in_recording(Local_1433[1 /*15*/]) > 13000f)
											{
												iLocal_1127[iVar0] = 1;
											}
										}
									}
									else
									{
										iLocal_1127[iVar0] = 1;
									}
								}
								else if (!ped::is_ped_sitting_in_any_vehicle(Local_1725[iVar0 /*20*/]))
								{
									iLocal_1127[iVar0] = 1;
								}
								else
								{
									entity::set_entity_health(Local_1725[iVar0 /*20*/], 2);
								}
							}
							else
							{
								iLocal_1127[iVar0] = 1;
							}
							break;
						
						case 12:
							ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
							ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
							ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
							ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 13:
							ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
							ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
							ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
							ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 14:
						case 15:
							ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
							ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
							ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
							ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
							iLocal_1127[iVar0] = 5;
							break;
						
						case 16:
							ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
							ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
							ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
							ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 17:
							ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
							ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
							ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
							ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 18:
							ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
							ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
							ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
							ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 19:
						case 20:
							ai::open_sequence_task(&iLocal_3465);
							ai::task_pause(0, 1500);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 21:
							if (vehicle::is_vehicle_driveable(Local_1433[0 /*15*/], 0))
							{
								if (vehicle::is_playback_going_on_for_vehicle(Local_1433[0 /*15*/]))
								{
									if (vehicle::get_time_position_in_recording(Local_1433[0 /*15*/]) > 27000f)
									{
										ai::open_sequence_task(&iLocal_3465);
										ai::task_go_to_coord_while_aiming_at_coord(0, Local_1725[iVar0 /*20*/].f_6, 847.3f, -2326.2f, 31f, 2f, false, 0.5f, 0.5f, true, 4608, 0, -957453492);
										ai::close_sequence_task(iLocal_3465);
										ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
										ai::clear_sequence_task(&iLocal_3465);
										iLocal_1127[iVar0] = 1;
									}
								}
							}
							break;
						
						case 22:
							if (vehicle::is_vehicle_driveable(Local_1433[0 /*15*/], 0))
							{
								if (vehicle::is_playback_going_on_for_vehicle(Local_1433[0 /*15*/]))
								{
									if (vehicle::get_time_position_in_recording(Local_1433[0 /*15*/]) > 27000f)
									{
										ai::open_sequence_task(&iLocal_3465);
										ai::task_go_to_coord_while_aiming_at_coord(0, Local_1725[iVar0 /*20*/].f_6, 847.3f, -2326.2f, 31f, 2f, false, 0.5f, 0.5f, true, 4608, 0, -957453492);
										ai::close_sequence_task(iLocal_3465);
										ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
										ai::clear_sequence_task(&iLocal_3465);
										iLocal_1127[iVar0] = 1;
									}
								}
							}
							break;
						
						case 23:
							ai::open_sequence_task(&iLocal_3465);
							ai::task_follow_waypoint_recording(0, "heat1", 3, 136, -1);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 24:
							ai::open_sequence_task(&iLocal_3465);
							ai::task_pause(0, 1000);
							ai::task_follow_waypoint_recording(0, "heat1", 5, 172, -1);
							ai::task_aim_gun_at_entity(0, player::player_ped_id(), 1000, 0);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 25:
							ai::open_sequence_task(&iLocal_3465);
							ai::task_pause(0, 2000);
							ai::task_follow_waypoint_recording(0, "heat1", 5, 136, -1);
							ai::task_aim_gun_at_entity(0, player::player_ped_id(), 2000, 0);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 26:
							ai::open_sequence_task(&iLocal_3465);
							ai::task_pause(0, 3000);
							ai::task_follow_waypoint_recording(0, "heat1", 5, 168, -1);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 27:
							if (vehicle::is_vehicle_driveable(Local_1222[4 /*15*/], 0))
							{
								if (vehicle::is_playback_going_on_for_vehicle(Local_1222[4 /*15*/]))
								{
									if (vehicle::get_time_position_in_recording(Local_1222[4 /*15*/]) + 500f) > vehicle::get_total_duration_of_vehicle_recording(Local_1222[4 /*15*/].f_13, "lkfbi4")
									{
										vehicle::stop_playback_recorded_vehicle(Local_1222[4 /*15*/]);
										ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
										ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
										ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
										ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
										iLocal_1127[iVar0] = 5;
									}
								}
							}
							else
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 28:
							if (vehicle::is_vehicle_driveable(Local_1222[4 /*15*/], 0))
							{
								if (!vehicle::is_playback_going_on_for_vehicle(Local_1222[4 /*15*/]))
								{
									ai::open_sequence_task(&iLocal_3465);
									ai::task_pause(0, 250);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
									iLocal_1127[iVar0] = 1;
								}
							}
							else
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 29:
						case 30:
						case 34:
						case 35:
							ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
							ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
							ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
							ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
							iLocal_1127[iVar0] = 5;
							break;
						
						case 31:
							ai::open_sequence_task(&iLocal_3465);
							ai::task_aim_gun_at_coord(0, 877.1f, -2353.6f, 40f, 5500, 0, 0);
							ai::task_go_to_coord_while_aiming_at_coord(0, 932.2432f, -2378.912f, 40.2425f, 877.1f, -2353.6f, 40f, 2f, false, 0.5f, 0.5f, true, 0, 0, -957453492);
							ai::task_follow_nav_mesh_to_coord(0, Local_1725[iVar0 /*20*/].f_6, 2f, 20000, 1048576000, 0, 1193033728);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
							iLocal_1127[iVar0] = 1;
							break;
						
						case 32:
							if (vehicle::is_vehicle_driveable(Local_1222[5 /*15*/], 0))
							{
								if (vehicle::is_playback_going_on_for_vehicle(Local_1222[5 /*15*/]))
								{
									if (vehicle::get_time_position_in_recording(Local_1222[5 /*15*/]) + 500f) > vehicle::get_total_duration_of_vehicle_recording(Local_1222[5 /*15*/].f_13, "lkfbi4")
									{
										gameplay::clear_area(entity::get_entity_coords(Local_1222[5 /*15*/], 1), 2f, 1, 0, 0, false);
										vehicle::stop_playback_recorded_vehicle(Local_1222[5 /*15*/]);
										ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
										ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
										ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
										ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
										iLocal_1127[iVar0] = 5;
									}
								}
							}
							else
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 33:
							if (vehicle::is_vehicle_driveable(Local_1222[5 /*15*/], 0))
							{
								if (!vehicle::is_playback_going_on_for_vehicle(Local_1222[5 /*15*/]))
								{
									ai::open_sequence_task(&iLocal_3465);
									ai::task_pause(0, 250);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
									iLocal_1127[iVar0] = 1;
								}
							}
							else
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
					}
					break;
				
				case 1:
					switch (iVar0)
					{
						case 1:
						case 3:
						case 5:
						case 7:
						case 15:
						case 28:
						case 33:
							if (func_593(Local_1725[iVar0 /*20*/], 242628503, -2, 1))
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 8:
							if (!entity::is_entity_at_coord(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 1f, 1f, 2f, false, true, 0))
							{
								if (func_593(Local_1725[iVar0 /*20*/], 242628503, -2, 1) || func_593(Local_1725[iVar0 /*20*/], 242628503, 1, 1))
								{
									ai::open_sequence_task(&iLocal_3465);
									ai::task_go_to_coord_while_aiming_at_coord(0, Local_1725[iVar0 /*20*/].f_6, 879.7f, -2354.9f, 42.2f, 2f, false, 0.5f, 0.5f, true, 512, 0, -957453492);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
								}
							}
							else if (func_272(&(iLocal_3318[iVar0]), 7500))
							{
								switch (func_960())
								{
									case 2:
										ai::open_sequence_task(&iLocal_3465);
										ai::task_shoot_at_coord(0, entity::get_offset_from_entity_in_world_coords(iLocal_3099[1], 0f, 0f, fLocal_3445), 4000, 0);
										ai::task_aim_gun_at_entity(0, iLocal_3099[1], -1, 0);
										ai::close_sequence_task(iLocal_3465);
										ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
										ai::clear_sequence_task(&iLocal_3465);
										iLocal_3318[iVar0] = gameplay::get_game_timer();
										ped::get_ped_max_health(iLocal_3099[1]);
										break;
									
									case 0:
									case 1:
										ai::open_sequence_task(&iLocal_3465);
										ai::task_shoot_at_coord(0, entity::get_offset_from_entity_in_world_coords(player::player_ped_id(), 0f, 0f, fLocal_3445), 4000, 0);
										ai::task_aim_gun_at_entity(0, player::player_ped_id(), -1, 0);
										ai::close_sequence_task(iLocal_3465);
										ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
										ai::clear_sequence_task(&iLocal_3465);
										iLocal_3318[iVar0] = gameplay::get_game_timer();
										break;
								}
								if (func_272(&iLocal_3356, 10000))
								{
									fLocal_3445 = (fLocal_3445 - 0.2f);
									if (fLocal_3445 < 0f)
									{
										fLocal_3445 = 0f;
									}
									iLocal_3356 = gameplay::get_game_timer();
								}
							}
							if (func_796(Local_1725[iVar0 /*20*/], player::player_ped_id()))
							{
								entity::set_entity_health(Local_1725[iVar0 /*20*/], 2);
							}
							break;
						
						case 9:
							if (!entity::is_entity_at_coord(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 1f, 1f, 2f, false, true, 0))
							{
								if (func_593(Local_1725[iVar0 /*20*/], 242628503, -2, 1) || func_593(Local_1725[iVar0 /*20*/], 242628503, 1, 1))
								{
									ai::open_sequence_task(&iLocal_3465);
									ai::task_go_to_coord_while_aiming_at_coord(0, Local_1725[iVar0 /*20*/].f_6, 879.7f, -2354.9f, 42.2f, 2f, false, 0.5f, 0.5f, true, 512, 0, -957453492);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
								}
							}
							else
							{
								if (func_272(&(iLocal_3318[iVar0]), 10500))
								{
									switch (func_960())
									{
										case 2:
											ai::open_sequence_task(&iLocal_3465);
											ai::task_shoot_at_coord(0, entity::get_offset_from_entity_in_world_coords(iLocal_3099[1], 0f, 0f, fLocal_3446), 4000, 0);
											ai::task_aim_gun_at_entity(0, iLocal_3099[1], -1, 0);
											ai::close_sequence_task(iLocal_3465);
											ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
											ai::clear_sequence_task(&iLocal_3465);
											iLocal_3318[iVar0] = gameplay::get_game_timer();
											break;
										
										case 0:
										case 1:
											ai::open_sequence_task(&iLocal_3465);
											ai::task_shoot_at_coord(0, entity::get_offset_from_entity_in_world_coords(player::player_ped_id(), 0f, 0f, fLocal_3446), 4000, 0);
											ai::task_aim_gun_at_entity(0, player::player_ped_id(), -1, 0);
											ai::close_sequence_task(iLocal_3465);
											ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
											ai::clear_sequence_task(&iLocal_3465);
											iLocal_3318[iVar0] = gameplay::get_game_timer();
											break;
										}
								}
								if (func_272(&iLocal_3357, 20000))
								{
									fLocal_3446 = (fLocal_3446 - 0.2f);
									if (fLocal_3446 < 0f)
									{
										fLocal_3446 = 0f;
									}
									iLocal_3357 = gameplay::get_game_timer();
								}
							}
							if (func_796(Local_1725[iVar0 /*20*/], player::player_ped_id()))
							{
								entity::set_entity_health(Local_1725[iVar0 /*20*/], 2);
							}
							break;
						
						case 10:
							if (entity::does_entity_exist(Local_1433[1 /*15*/]))
							{
								if (vehicle::is_vehicle_driveable(Local_1433[1 /*15*/], 0))
								{
									if (ped::is_ped_sitting_in_vehicle(Local_1725[iVar0 /*20*/], Local_1433[1 /*15*/]))
									{
										if (func_593(Local_1725[iVar0 /*20*/], 2104565373, -2, 0))
										{
											switch (func_960())
											{
												case 2:
													ai::task_drive_by(Local_1725[iVar0 /*20*/], player::player_ped_id(), 0, 0f, 0f, 2f, 300f, 50, 0, -957453492);
													break;
												
												case 0:
												case 1:
													ai::task_drive_by(Local_1725[iVar0 /*20*/], iLocal_3099[2], 0, 0f, 0f, 2f, 300f, 50, 0, -957453492);
													break;
											}
											iLocal_3318[10] = gameplay::get_game_timer();
										}
									}
									else
									{
										ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
										ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
										ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
										ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
										iLocal_1127[iVar0] = 5;
									}
								}
								else
								{
									ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
									ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
									ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
									ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
									iLocal_1127[iVar0] = 5;
								}
							}
							else
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 11:
							if (entity::does_entity_exist(Local_1433[1 /*15*/]))
							{
								if (vehicle::is_vehicle_driveable(Local_1433[1 /*15*/], 0))
								{
									if (ped::is_ped_sitting_in_vehicle(Local_1725[iVar0 /*20*/], Local_1433[1 /*15*/]))
									{
										if (func_593(Local_1725[iVar0 /*20*/], 2104565373, -2, 0))
										{
											switch (func_960())
											{
												case 2:
													ai::task_drive_by(Local_1725[iVar0 /*20*/], player::player_ped_id(), 0, 0f, 0f, 2f, 300f, 50, 0, -957453492);
													break;
												
												case 0:
												case 1:
													ai::task_drive_by(Local_1725[iVar0 /*20*/], iLocal_3099[2], 0, 0f, 0f, 2f, 300f, 50, 0, -957453492);
													break;
											}
											iLocal_3318[11] = gameplay::get_game_timer();
										}
									}
									else
									{
										ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
										ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
										ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
										ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
										iLocal_1127[iVar0] = 5;
									}
								}
								else
								{
									ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
									ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
									ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
									ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
									iLocal_1127[iVar0] = 5;
								}
							}
							else
							{
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, true);
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 12:
						case 13:
						case 16:
						case 17:
						case 18:
							if (func_795() || func_594(&(Local_1725[iVar0 /*20*/]), &(Local_1725[iVar0 /*20*/].f_10), Local_1725[iVar0 /*20*/].f_14))
							{
								ped::remove_ped_defensive_area(Local_1725[iVar0 /*20*/], 0);
								ped::set_ped_combat_movement(Local_1725[iVar0 /*20*/], 2);
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 50, true);
								ped::set_ped_config_flag(Local_1725[iVar0 /*20*/], 286, true);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 19:
						case 20:
							if (func_593(Local_1725[iVar0 /*20*/], 242628503, -2, 1))
							{
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
								ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 51, true);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 5;
							}
							break;
						
						case 21:
						case 22:
							if (func_593(Local_1725[iVar0 /*20*/], 242628503, -2, 1))
							{
								ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
								ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 1f, 0, 0);
								ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
								iLocal_1127[iVar0] = 3;
							}
							break;
						
						case 23:
						case 24:
						case 25:
						case 26:
							vVar1 = { 0f, 0f, 0f };
							if (ai::is_waypoint_playback_going_on_for_ped(Local_1725[iVar0 /*20*/]))
							{
								ai::waypoint_playback_override_speed(Local_1725[iVar0 /*20*/], 2f, 0);
								ai::waypoint_playback_start_aiming_at_coord(Local_1725[iVar0 /*20*/], 849f, -2328.6f, 31.1f, 0);
							}
							ai::waypoint_recording_get_num_points("heat1", &iLocal_3363);
							iLocal_3363 = (iLocal_3363 - 1);
							Local_1725[iVar0 /*20*/].f_3 = { entity::get_entity_coords(Local_1725[iVar0 /*20*/], 1) };
							if (ai::waypoint_recording_get_coord("heat1", iLocal_3363, &vVar1))
							{
								if ((entity::is_entity_at_coord(Local_1725[iVar0 /*20*/], vVar1, 1f, 1f, 1.6f, false, true, 0) || (ai::is_waypoint_playback_going_on_for_ped(Local_1725[iVar0 /*20*/]) && ai::get_ped_waypoint_progress(Local_1725[iVar0 /*20*/]) > 11)) || Local_1725[iVar0 /*20*/].f_3.f_2 < 30.5f)
								{
									ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 51, true);
									ped::set_ped_config_flag(Local_1725[iVar0 /*20*/], 286, true);
									ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
									ped::set_ped_sphere_defensive_area(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 2f, 0, 0);
									ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
									iLocal_1127[iVar0] = 5;
								}
							}
							break;
						
						case 31:
							if (!entity::is_entity_at_coord(Local_1725[iVar0 /*20*/], Local_1725[iVar0 /*20*/].f_6, 1f, 1f, 2f, false, true, 0))
							{
								if (func_593(Local_1725[iVar0 /*20*/], 242628503, -2, 1) || func_593(Local_1725[iVar0 /*20*/], 242628503, 1, 1))
								{
									ai::open_sequence_task(&iLocal_3465);
									ai::task_follow_nav_mesh_to_coord(0, Local_1725[iVar0 /*20*/].f_6, 2f, 20000, 0.5f, 0, 1193033728);
									ai::close_sequence_task(iLocal_3465);
									ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
									ai::clear_sequence_task(&iLocal_3465);
								}
							}
							else if (func_272(&(iLocal_3318[iVar0]), 12000))
							{
								switch (func_960())
								{
									case 0:
									case 2:
										ai::open_sequence_task(&iLocal_3465);
										ai::task_shoot_at_coord(0, entity::get_offset_from_entity_in_world_coords(iLocal_3099[1], 0f, 0f, fLocal_3445), 4000, 0);
										ai::task_aim_gun_at_entity(0, iLocal_3099[1], -1, 0);
										ai::close_sequence_task(iLocal_3465);
										ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
										ai::clear_sequence_task(&iLocal_3465);
										iLocal_3318[iVar0] = gameplay::get_game_timer();
										break;
									
									case 1:
										ai::open_sequence_task(&iLocal_3465);
										ai::task_shoot_at_coord(0, entity::get_offset_from_entity_in_world_coords(player::player_ped_id(), 0f, 0f, 0.2f), 4000, 0);
										ai::task_aim_gun_at_entity(0, player::player_ped_id(), -1, 0);
										ai::close_sequence_task(iLocal_3465);
										ai::task_perform_sequence(Local_1725[iVar0 /*20*/], iLocal_3465);
										ai::clear_sequence_task(&iLocal_3465);
										iLocal_3318[iVar0] = gameplay::get_game_timer();
										break;
									}
							}
							if (func_796(Local_1725[iVar0 /*20*/], player::player_ped_id()))
							{
								entity::set_entity_health(Local_1725[iVar0 /*20*/], 2);
							}
							break;
					}
					break;
				
				case 3:
					switch (iVar0)
					{
						case 21:
						case 22:
							iVar4 = 0;
							if ((((Local_1725[21 /*20*/].f_14 && Local_1725[22 /*20*/].f_14) && Local_1725[23 /*20*/].f_14) && Local_1725[24 /*20*/].f_14) && Local_1725[25 /*20*/].f_14)
							{
								iVar5 = 21;
								while (iVar5 <= 25)
								{
									if (ped::is_ped_injured(Local_1725[iVar5 /*20*/]))
									{
										iVar4++;
									}
									iVar5++;
								}
								if (iVar4 >= 2)
								{
									ped::remove_ped_defensive_area(Local_1725[iVar0 /*20*/], 0);
									ped::set_ped_combat_movement(Local_1725[iVar0 /*20*/], 2);
									ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 50, true);
									ped::set_ped_config_flag(Local_1725[iVar0 /*20*/], 286, true);
									ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
									iLocal_1127[iVar0] = 5;
								}
							}
							break;
					}
					break;
				
				case 5:
					break;
				}
		}
		iVar0++;
	}
	return false;
}

bool func_795()//Position - 0x7F284
{
	if (iLocal_3203)
	{
		if (iLocal_3382 == 0)
		{
			iLocal_3382 = gameplay::get_game_timer();
		}
		if (!entity::is_entity_in_angled_area(player::player_ped_id(), 840.267f, -2312.316f, 29.342f, 863.364f, -2314.499f, 32.342f, 72f, 0, true, 0))
		{
			if (func_272(&iLocal_3382, 15000))
			{
				return true;
			}
		}
		else
		{
			if (iLocal_3383 == 0)
			{
				iLocal_3383 = gameplay::get_game_timer();
			}
			if (func_272(&iLocal_3383, 10000))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_796(int iParam0, int iParam1)//Position - 0x7F306
{
	int iVar0;
	
	if (!entity::is_entity_dead(iParam0, 0))
	{
		if (!entity::is_entity_dead(iParam1, 0))
		{
			if (weapon::get_current_ped_weapon(iParam1, &iVar0, 1))
			{
				if (iVar0 == joaat("weapon_heavysniper") || iVar0 == joaat("weapon_sniperrifle"))
				{
					if ((weapon::has_entity_been_damaged_by_weapon(iParam0, joaat("weapon_heavysniper"), 0) || weapon::has_entity_been_damaged_by_weapon(iParam0, joaat("weapon_sniperrifle"), 0)) && entity::has_entity_been_damaged_by_entity(iParam0, iParam1, 1))
					{
						return true;
					}
				}
			}
		}
	}
	return false;
}

void func_797()//Position - 0x7F37D
{
	if (entity::is_entity_playing_anim(player::player_ped_id(), "missfbi4", "REACT_Explosion", 3))
	{
		if (entity::get_entity_anim_current_time(player::player_ped_id(), "missfbi4", "REACT_Explosion") > 0.7f)
		{
			func_798(-2017877118, 1);
		}
	}
}

void func_798(int iParam0, int iParam1)//Position - 0x7F3C0
{
	int iVar0;
	int iVar1;
	var uVar2;
	int iVar3;
	int iVar4;
	
	if (ai::get_script_task_status(player::player_ped_id(), iParam0) == 1)
	{
		iVar4 = 28;
		func_799(&iVar0, &iVar1, &uVar2, &iVar3, 0);
		if (!controls::is_look_inverted())
		{
			iVar3 = (iVar3 * -1);
		}
		if (iParam1)
		{
			if (((iVar1 > iVar4 || iVar1 < (iVar4 * -1)) || iVar0 > iVar4) || iVar0 < (iVar4 * -1))
			{
				ai::clear_ped_tasks(player::player_ped_id());
			}
		}
		else if ((((((((iVar1 > iVar4 || iVar1 < (iVar4 * -1)) || iVar0 > iVar4) || iVar0 < (iVar4 * -1)) || controls::is_control_pressed(0, 21)) || controls::is_control_pressed(0, 22)) || controls::is_control_pressed(0, 23)) || controls::is_control_pressed(0, 24)) || controls::is_control_pressed(0, 25))
		{
			ai::clear_ped_tasks(player::player_ped_id());
		}
	}
}

void func_799(var uParam0, var uParam1, var uParam2, var uParam3, int iParam4)//Position - 0x7F4A8
{
	*uParam0 = system::floor((controls::get_control_normal(2, 218) * 127f));
	*uParam1 = system::floor((controls::get_control_normal(2, 219) * 127f));
	*uParam2 = system::floor((controls::get_control_normal(2, 220) * 127f));
	*uParam3 = system::floor((controls::get_control_normal(2, 221) * 127f));
	if (iParam4)
	{
		if (IntToFloat(*uParam0) == 0f && IntToFloat(*uParam1) == 0f)
		{
			*uParam0 = system::floor((controls::get_disabled_control_normal(2, 218) * 127f));
			*uParam1 = system::floor((controls::get_disabled_control_normal(2, 219) * 127f));
		}
		if (IntToFloat(*uParam2) == 0f && IntToFloat(*uParam3) == 0f)
		{
			*uParam2 = system::floor((controls::get_disabled_control_normal(2, 220) * 127f));
			*uParam3 = system::floor((controls::get_disabled_control_normal(2, 221) * 127f));
		}
	}
}

bool func_800()//Position - 0x7F57D
{
	int iVar0;
	int iVar1;
	int iVar2;
	int iVar3;
	int iVar4;
	
	iVar0 = 0;
	switch (iLocal_3255)
	{
		case 0:
			func_811();
			if (iLocal_3230 > 3)
			{
				audio::_0x18EB48CFC41F2EA0(Local_1192, 0f);
				audio::_0x552369F549563AD5(1);
				audio::play_sound_from_coord(iLocal_3410, "Distant_Sirens", 913.6f, -2301.6f, 34f, "FBI_04_HEAT_SOUNDS", 0, 0, 0);
				ai::task_clear_look_at(player::player_ped_id());
				if (vehicle::is_vehicle_driveable(Local_1192, 0))
				{
					vehicle::set_vehicle_can_be_visibly_damaged(Local_1192, true);
				}
				func_406(iLocal_3099[0], 4000);
				func_406(iLocal_3099[2], 4000);
				iLocal_3230 = 4;
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3293 = gameplay::get_game_timer();
				if (entity::does_entity_exist(Local_1645))
				{
					entity::set_ped_as_no_longer_needed(&Local_1645);
				}
				streaming::set_model_as_no_longer_needed(Local_1645.f_1);
				if (entity::does_entity_exist(Local_1665))
				{
					entity::set_ped_as_no_longer_needed(&Local_1665);
				}
				streaming::set_model_as_no_longer_needed(Local_1665.f_1);
				streaming::remove_ptfx_asset();
				streaming::remove_anim_dict("missfbi4");
				streaming::remove_anim_dict("misssagrab");
				streaming::remove_anim_dict("missheat");
				gameplay::_set_unk_map_flag(1);
				iLocal_3255++;
				func_333(3, "Start of Shootout", 0, 0, 0, 1);
			}
			break;
		
		case 1:
			streaming::request_model(Local_1725[0 /*20*/].f_1);
			streaming::request_model(Local_1725[8 /*20*/].f_1);
			streaming::request_model(Local_1222[0 /*15*/].f_1);
			streaming::request_model(Local_1433[0 /*15*/].f_1);
			vehicle::request_vehicle_asset(Local_1222[0 /*15*/].f_1, 15);
			vehicle::request_vehicle_recording(Local_1433[0 /*15*/].f_13, "lkfbi4");
			vehicle::request_vehicle_recording(Local_1433[1 /*15*/].f_13, "lkfbi4");
			vehicle::request_vehicle_recording(Local_1222[0 /*15*/].f_13, "lkfbi4");
			vehicle::request_vehicle_recording(Local_1222[1 /*15*/].f_13, "lkfbi4");
			vehicle::request_vehicle_recording(Local_1222[2 /*15*/].f_13, "lkfbi4");
			vehicle::request_vehicle_recording(Local_1222[3 /*15*/].f_13, "lkfbi4");
			vehicle::request_vehicle_recording(Local_1222[4 /*15*/].f_13, "lkfbi4");
			vehicle::request_vehicle_recording(Local_1222[5 /*15*/].f_13, "lkfbi4");
			if (iLocal_3180)
			{
				if ((((((((((((streaming::has_model_loaded(Local_1725[0 /*20*/].f_1) && streaming::has_model_loaded(Local_1725[8 /*20*/].f_1)) && streaming::has_model_loaded(Local_1222[0 /*15*/].f_1)) && streaming::has_model_loaded(Local_1433[0 /*15*/].f_1)) && vehicle::has_vehicle_asset_loaded(Local_1222[0 /*15*/].f_1)) && vehicle::has_vehicle_recording_been_loaded(Local_1433[0 /*15*/].f_13, "lkfbi4")) && vehicle::has_vehicle_recording_been_loaded(Local_1433[1 /*15*/].f_13, "lkfbi4")) && vehicle::has_vehicle_recording_been_loaded(Local_1222[0 /*15*/].f_13, "lkfbi4")) && vehicle::has_vehicle_recording_been_loaded(Local_1222[1 /*15*/].f_13, "lkfbi4")) && vehicle::has_vehicle_recording_been_loaded(Local_1222[2 /*15*/].f_13, "lkfbi4")) && vehicle::has_vehicle_recording_been_loaded(Local_1222[3 /*15*/].f_13, "lkfbi4")) && vehicle::has_vehicle_recording_been_loaded(Local_1222[4 /*15*/].f_13, "lkfbi4")) && vehicle::has_vehicle_recording_been_loaded(Local_1222[5 /*15*/].f_13, "lkfbi4"))
				{
					if (func_272(&iLocal_3293, 10000))
					{
						iLocal_3292 = func_756();
						streaming::set_vehicle_population_budget(0);
						streaming::set_ped_population_budget(0);
						player::clear_player_wanted_level(player::player_id());
						player::set_max_wanted_level(0);
						ped::set_create_random_cops(false);
						gameplay::set_fake_wanted_level(4);
						Local_1222[0 /*15*/] = vehicle::create_vehicle(Local_1222[0 /*15*/].f_1, Local_1222[0 /*15*/].f_3, Local_1222[0 /*15*/].f_6, 1, true);
						entity::set_entity_only_damaged_by_player(Local_1222[0 /*15*/], true);
						vehicle::set_vehicle_siren(Local_1222[0 /*15*/], true);
						vehicle::start_playback_recorded_vehicle(Local_1222[0 /*15*/], Local_1222[0 /*15*/].f_13, "lkfbi4", 1);
						Local_1222[2 /*15*/] = vehicle::create_vehicle(Local_1222[2 /*15*/].f_1, Local_1222[2 /*15*/].f_3, Local_1222[2 /*15*/].f_6, 1, true);
						entity::set_entity_only_damaged_by_player(Local_1222[2 /*15*/], true);
						vehicle::set_vehicle_siren(Local_1222[2 /*15*/], true);
						vehicle::start_playback_recorded_vehicle(Local_1222[2 /*15*/], Local_1222[2 /*15*/].f_13, "lkfbi4", 1);
						func_810(&(Local_1725[0 /*20*/]), &(Local_1222[0 /*15*/]), -1, 0);
						func_589(&(Local_1725[0 /*20*/]), 1);
						func_810(&(Local_1725[1 /*20*/]), &(Local_1222[0 /*15*/]), 0, 0);
						func_589(&(Local_1725[1 /*20*/]), 1);
						func_810(&(Local_1725[4 /*20*/]), &(Local_1222[2 /*15*/]), -1, 0);
						func_589(&(Local_1725[4 /*20*/]), 1);
						func_810(&(Local_1725[5 /*20*/]), &(Local_1222[2 /*15*/]), 0, 0);
						func_589(&(Local_1725[5 /*20*/]), 1);
						iLocal_3292 = func_756();
						iLocal_3293 = gameplay::get_game_timer();
						iLocal_3255++;
					}
				}
			}
			break;
		
		case 2:
			if (func_272(&iLocal_3293, 1500))
			{
				Local_1222[1 /*15*/] = vehicle::create_vehicle(Local_1222[1 /*15*/].f_1, Local_1222[1 /*15*/].f_3, Local_1222[1 /*15*/].f_6, 1, true);
				entity::set_entity_only_damaged_by_player(Local_1222[1 /*15*/], true);
				vehicle::set_vehicle_siren(Local_1222[1 /*15*/], false);
				vehicle::start_playback_recorded_vehicle(Local_1222[1 /*15*/], Local_1222[1 /*15*/].f_13, "lkfbi4", 1);
				vehicle::set_playback_speed(Local_1222[1 /*15*/], 0.9f);
				Local_1222[3 /*15*/] = vehicle::create_vehicle(Local_1222[3 /*15*/].f_1, Local_1222[3 /*15*/].f_3, Local_1222[3 /*15*/].f_6, 1, true);
				entity::set_entity_only_damaged_by_player(Local_1222[3 /*15*/], true);
				vehicle::set_vehicle_siren(Local_1222[3 /*15*/], false);
				vehicle::start_playback_recorded_vehicle(Local_1222[3 /*15*/], Local_1222[3 /*15*/].f_13, "lkfbi4", 1);
				func_810(&(Local_1725[2 /*20*/]), &(Local_1222[1 /*15*/]), -1, 0);
				func_589(&(Local_1725[2 /*20*/]), 1);
				func_810(&(Local_1725[3 /*20*/]), &(Local_1222[1 /*15*/]), 0, 0);
				func_589(&(Local_1725[3 /*20*/]), 1);
				func_810(&(Local_1725[6 /*20*/]), &(Local_1222[3 /*15*/]), -1, 0);
				func_589(&(Local_1725[6 /*20*/]), 1);
				func_810(&(Local_1725[7 /*20*/]), &(Local_1222[3 /*15*/]), 0, 0);
				func_589(&(Local_1725[7 /*20*/]), 1);
				iLocal_3255++;
			}
			break;
		
		case 3:
			if (func_272(&iLocal_3293, 10000))
			{
				unk1::_0x293220DA1B46CEBC(3f, 1073741824, 3);
				if (audio::is_audio_scene_active("FBI_4_PREP_FOR_COPS"))
				{
					audio::stop_audio_scene("FBI_4_PREP_FOR_COPS");
				}
				audio::start_audio_scene("FBI_4_COPS_ARRIVE");
				audio::start_audio_scene("FBI_4_SHOOTOUT_FRANKLIN");
				audio::_0x153973AB99FE8980(iLocal_3099[0], "FBI_4_BUDDIES_GROUP", 0f);
				audio::_0x153973AB99FE8980(iLocal_3099[2], "FBI_4_BUDDIES_GROUP", 0f);
				ped::set_ped_using_action_mode(player::player_ped_id(), true, -1, 0);
				ped::set_ped_using_action_mode(iLocal_3099[0], true, -1, 0);
				ped::set_ped_using_action_mode(iLocal_3099[2], true, -1, 0);
				if (!audio::has_sound_finished(iLocal_3410))
				{
					audio::stop_sound(iLocal_3410);
				}
				audio::_0x552369F549563AD5(0);
				func_776(&iLocal_3099, 0, 2, 1);
				iLocal_3179 = true;
				iLocal_3250 = gameplay::get_game_timer();
				iLocal_3289 = gameplay::get_game_timer();
				iLocal_3255++;
			}
			break;
		
		case 4:
			if (func_272(&iLocal_3250, 2000))
			{
				func_754("cntry_help5", 13000);
				iLocal_3293 = gameplay::get_game_timer();
				iLocal_3255++;
			}
			break;
		
		case 5:
			if (iLocal_3180)
			{
				if (func_788(&Local_1725) >= 1 || func_272(&iLocal_3293, 5000))
				{
					func_590(&(Local_1725[14 /*20*/]), 0);
					func_589(&(Local_1725[14 /*20*/]), 1);
					func_590(&(Local_1725[15 /*20*/]), 0);
					func_589(&(Local_1725[15 /*20*/]), 1);
					iLocal_3293 = gameplay::get_game_timer();
					iLocal_3255++;
				}
			}
			break;
		
		case 6:
			if (func_788(&Local_1725) >= 7)
			{
				if (func_809())
				{
					func_689(&iLocal_3099, 1, 0);
					func_689(&iLocal_3099, 2, 0);
					func_689(&iLocal_3099, 0, 1);
					func_776(&iLocal_3099, 0, 2, 1);
					iLocal_3203 = true;
					iLocal_3382 = gameplay::get_game_timer();
					iLocal_3255++;
				}
			}
			break;
		
		case 7:
			func_807();
			iLocal_3364 = 0;
			iVar0 = 12;
			while (iVar0 <= 13)
			{
				if (ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iLocal_3364++;
				}
				iVar0++;
			}
			iVar0 = 16;
			while (iVar0 <= 18)
			{
				if (ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iLocal_3364++;
				}
				iVar0++;
			}
			if (iLocal_3364 >= 1)
			{
				func_590(&(Local_1725[19 /*20*/]), 0);
				func_589(&(Local_1725[19 /*20*/]), 1);
				Local_1433[0 /*15*/] = vehicle::create_vehicle(Local_1433[0 /*15*/].f_1, Local_1433[0 /*15*/].f_3, Local_1433[0 /*15*/].f_6, 1, true);
				vehicle::set_vehicle_livery(Local_1433[0 /*15*/], 0);
				vehicle::set_heli_blades_full_speed(Local_1433[0 /*15*/]);
				vehicle::start_playback_recorded_vehicle(Local_1433[0 /*15*/], Local_1433[0 /*15*/].f_13, "lkfbi4", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1433[0 /*15*/], 5000f);
				vehicle::set_playback_speed(Local_1433[0 /*15*/], 2.2f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1433[0 /*15*/], 1);
				func_810(&(Local_2527[0 /*20*/]), &(Local_1433[0 /*15*/]), -1, 0);
				func_589(&(Local_2527[0 /*20*/]), 1);
				func_810(&(Local_1725[21 /*20*/]), &(Local_1433[0 /*15*/]), 1, 0);
				func_589(&(Local_1725[21 /*20*/]), 1);
				ped::add_armour_to_ped(Local_1725[21 /*20*/], -ped::get_ped_armour(Local_1725[21 /*20*/]));
				func_810(&(Local_1725[22 /*20*/]), &(Local_1433[0 /*15*/]), 2, 0);
				func_589(&(Local_1725[22 /*20*/]), 1);
				ped::add_armour_to_ped(Local_1725[22 /*20*/], -ped::get_ped_armour(Local_1725[22 /*20*/]));
				vehicle::request_vehicle_asset(Local_1433[0 /*15*/].f_1, 15);
				iLocal_3255++;
			}
			break;
		
		case 8:
			func_807();
			if (!entity::is_entity_dead(Local_1433[0 /*15*/], 0))
			{
				if (vehicle::get_time_position_in_recording(Local_1433[0 /*15*/]) > 28000f)
				{
					vehicle::set_playback_speed(Local_1433[0 /*15*/], 0.1f);
				}
				if (vehicle::get_time_position_in_recording(Local_1433[0 /*15*/]) > 28500f)
				{
					if (!Local_1725[23 /*20*/].f_14)
					{
						if (!ped::is_ped_injured(Local_1725[21 /*20*/]))
						{
							if (!ped::is_ped_in_vehicle(Local_1725[21 /*20*/], Local_1433[0 /*15*/], 0))
							{
								func_810(&(Local_1725[23 /*20*/]), &(Local_1433[0 /*15*/]), 1, 0);
								func_589(&(Local_1725[23 /*20*/]), 1);
								ped::add_armour_to_ped(Local_1725[23 /*20*/], -ped::get_ped_armour(Local_1725[23 /*20*/]));
							}
						}
						else
						{
							func_810(&(Local_1725[23 /*20*/]), &(Local_1433[0 /*15*/]), 1, 0);
							func_589(&(Local_1725[23 /*20*/]), 1);
							ped::add_armour_to_ped(Local_1725[23 /*20*/], -ped::get_ped_armour(Local_1725[23 /*20*/]));
						}
					}
					if (!Local_1725[24 /*20*/].f_14)
					{
						if (!ped::is_ped_injured(Local_1725[22 /*20*/]))
						{
							if (!ped::is_ped_in_vehicle(Local_1725[22 /*20*/], Local_1433[0 /*15*/], 0))
							{
								func_810(&(Local_1725[24 /*20*/]), &(Local_1433[0 /*15*/]), 2, 0);
								func_589(&(Local_1725[24 /*20*/]), 1);
								ped::add_armour_to_ped(Local_1725[24 /*20*/], -ped::get_ped_armour(Local_1725[24 /*20*/]));
							}
						}
						else
						{
							func_810(&(Local_1725[24 /*20*/]), &(Local_1433[0 /*15*/]), 2, 0);
							func_589(&(Local_1725[24 /*20*/]), 1);
							ped::add_armour_to_ped(Local_1725[24 /*20*/], -ped::get_ped_armour(Local_1725[24 /*20*/]));
						}
					}
					if (!Local_1725[25 /*20*/].f_14)
					{
						if (Local_1725[23 /*20*/].f_14)
						{
							if (!ped::is_ped_injured(Local_1725[23 /*20*/]))
							{
								if (!ped::is_ped_in_vehicle(Local_1725[23 /*20*/], Local_1433[0 /*15*/], 0))
								{
									func_810(&(Local_1725[25 /*20*/]), &(Local_1433[0 /*15*/]), 1, 0);
									func_589(&(Local_1725[25 /*20*/]), 1);
									ped::add_armour_to_ped(Local_1725[25 /*20*/], -ped::get_ped_armour(Local_1725[25 /*20*/]));
								}
							}
							else
							{
								func_810(&(Local_1725[25 /*20*/]), &(Local_1433[0 /*15*/]), 1, 0);
								func_589(&(Local_1725[25 /*20*/]), 1);
								ped::add_armour_to_ped(Local_1725[25 /*20*/], -ped::get_ped_armour(Local_1725[25 /*20*/]));
							}
						}
					}
				}
			}
			else
			{
				Local_1725[23 /*20*/].f_14 = 1;
				Local_1725[24 /*20*/].f_14 = 1;
				Local_1725[25 /*20*/].f_14 = 1;
			}
			if ((Local_1725[23 /*20*/].f_14 && Local_1725[24 /*20*/].f_14) && Local_1725[25 /*20*/].f_14)
			{
				if (vehicle::is_vehicle_driveable(Local_1433[0 /*15*/], 0))
				{
					if (vehicle::is_playback_going_on_for_vehicle(Local_1433[0 /*15*/]))
					{
						vehicle::set_playback_speed(Local_1433[0 /*15*/], 1.1f);
					}
				}
				iLocal_3255++;
			}
			break;
		
		case 9:
			func_807();
			iLocal_3364 = 0;
			iVar0 = 12;
			while (iVar0 <= 13)
			{
				if (ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iLocal_3364++;
				}
				iVar0++;
			}
			iVar0 = 16;
			while (iVar0 <= 19)
			{
				if (ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iLocal_3364++;
				}
				iVar0++;
			}
			iVar0 = 21;
			while (iVar0 <= 25)
			{
				if (ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iLocal_3364++;
				}
				iVar0++;
			}
			if (iLocal_3364 >= 8)
			{
				if (func_806())
				{
					iVar0 = 0;
					while (iVar0 <= 7)
					{
						if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
						{
							iLocal_3367++;
						}
						iVar0++;
					}
					iVar0 = 14;
					while (iVar0 <= 15)
					{
						if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
						{
							iLocal_3367++;
						}
						iVar0++;
					}
					iVar0 = 0;
					while (iVar0 <= (Local_2648 - 1))
					{
						if (!ped::is_ped_injured(Local_2648[iVar0 /*20*/]))
						{
							iLocal_3367++;
						}
						iVar0++;
					}
					iLocal_3385 = iLocal_3367 + 4;
					iLocal_3204 = true;
					unk1::_0x293220DA1B46CEBC(3f, 1073741824, 3);
					iLocal_3255++;
				}
			}
			break;
		
		case 10:
			func_804();
			iVar1 = 0;
			iVar0 = 27;
			while (iVar0 <= 30)
			{
				if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iVar1++;
				}
				iVar0++;
			}
			iVar0 = 0;
			while (iVar0 <= 7)
			{
				if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iVar1++;
				}
				iVar0++;
			}
			iVar0 = 14;
			while (iVar0 <= 15)
			{
				if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iVar1++;
				}
				iVar0++;
			}
			iVar0 = 0;
			while (iVar0 <= (Local_2648 - 1))
			{
				if (!ped::is_ped_injured(Local_2648[iVar0 /*20*/]))
				{
					iVar1++;
				}
				iVar0++;
			}
			if ((iLocal_3385 - iVar1) >= 3)
			{
				func_590(&(Local_1725[8 /*20*/]), 0);
				func_589(&(Local_1725[8 /*20*/]), 1);
				ui::remove_blip(&(Local_1725[8 /*20*/].f_2));
				func_590(&(Local_1725[9 /*20*/]), 0);
				func_589(&(Local_1725[9 /*20*/]), 1);
				ui::remove_blip(&(Local_1725[9 /*20*/].f_2));
				func_590(&(Local_1725[31 /*20*/]), 0);
				func_589(&(Local_1725[31 /*20*/]), 1);
				ui::remove_blip(&(Local_1725[31 /*20*/].f_2));
				if (func_960() != 2)
				{
					if (weapon::has_ped_got_weapon(iLocal_3099[2], joaat("weapon_sniperrifle"), 0))
					{
						weapon::set_current_ped_weapon(iLocal_3099[2], joaat("weapon_sniperrifle"), true);
					}
				}
				iLocal_3205 = true;
				iLocal_3293 = 0;
				iLocal_3255++;
			}
			break;
		
		case 11:
			func_807();
			func_804();
			iLocal_3293 = 0;
			iLocal_3255++;
			break;
		
		case 12:
			func_807();
			func_804();
			if ((ped::is_ped_injured(Local_1725[8 /*20*/]) && ped::is_ped_injured(Local_1725[9 /*20*/])) && ped::is_ped_injured(Local_1725[31 /*20*/]))
			{
				if (iLocal_3293 == 0)
				{
					unk1::_0x293220DA1B46CEBC(3f, 1073741824, 3);
					iLocal_3293 = gameplay::get_game_timer();
				}
				if (!Local_1725[34 /*20*/].f_14)
				{
					func_590(&(Local_1725[34 /*20*/]), 0);
					func_589(&(Local_1725[34 /*20*/]), 1);
				}
				if (entity::does_entity_exist(iLocal_3099[0]))
				{
					if (iLocal_3359 > 0)
					{
						if (!iLocal_3200)
						{
							entity::set_entity_coords(iLocal_3099[0], 845.8183f, -2332.28f, 29.3346f, 1, false, 0, 1);
							entity::set_entity_heading(iLocal_3099[0], 75.8831f);
							ai::task_put_ped_directly_into_cover(iLocal_3099[0], 845.6603f, -2332.308f, 29.3346f, -1, false, 0f, true, 0, iLocal_3472, 0);
							ped::_0x2208438012482A1A(iLocal_3099[0], 0, 0);
							iLocal_3200 = 1;
						}
					}
				}
				if ((func_960() == 0 || func_960() == 1) || func_272(&iLocal_3293, 10000))
				{
					iVar2 = 0;
					Local_1222[5 /*15*/] = vehicle::create_vehicle(Local_1222[5 /*15*/].f_1, Local_1222[5 /*15*/].f_3, Local_1222[5 /*15*/].f_6, 1, true);
					entity::set_entity_only_damaged_by_player(Local_1222[5 /*15*/], true);
					vehicle::set_vehicle_siren(Local_1222[5 /*15*/], true);
					vehicle::start_playback_recorded_vehicle(Local_1222[5 /*15*/], Local_1222[5 /*15*/].f_13, "lkfbi4", 1);
					vehicle::skip_time_in_playback_recorded_vehicle(Local_1222[5 /*15*/], 1500f);
					vehicle::_0x1F2E4E06DEA8992B(Local_1222[5 /*15*/], 1);
					func_810(&(Local_1725[32 /*20*/]), &(Local_1222[5 /*15*/]), -1, 0);
					func_589(&(Local_1725[32 /*20*/]), 1);
					func_810(&(Local_1725[33 /*20*/]), &(Local_1222[5 /*15*/]), 0, 0);
					func_589(&(Local_1725[33 /*20*/]), 1);
					func_590(&(Local_1725[35 /*20*/]), 0);
					func_589(&(Local_1725[35 /*20*/]), 1);
					iVar0 = 12;
					while (iVar0 <= 13)
					{
						if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
						{
							iVar2++;
						}
						iVar0++;
					}
					iVar0 = 16;
					while (iVar0 <= 18)
					{
						if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
						{
							iVar2++;
						}
						iVar0++;
					}
					iVar0 = 21;
					while (iVar0 <= 25)
					{
						if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
						{
							iVar2++;
						}
						iVar0++;
					}
					iVar0 = 0;
					while (iVar0 <= (Local_2709 - 1))
					{
						if (!ped::is_ped_injured(Local_2709[iVar0 /*20*/]))
						{
							iVar2++;
						}
						iVar0++;
					}
					iLocal_3386 = iVar2 + 4;
					iLocal_3255++;
				}
			}
			break;
		
		case 13:
			iVar3 = 0;
			iVar0 = 12;
			while (iVar0 <= 13)
			{
				if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iVar3++;
				}
				iVar0++;
			}
			iVar0 = 16;
			while (iVar0 <= 18)
			{
				if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iVar3++;
				}
				iVar0++;
			}
			iVar0 = 21;
			while (iVar0 <= 25)
			{
				if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
				{
					iVar3++;
				}
				iVar0++;
			}
			iVar0 = 32;
			while (iVar0 <= 35)
			{
				if (!ped::is_ped_injured(Local_1725[32 /*20*/]))
				{
					iVar3++;
				}
				iVar0++;
			}
			iVar0 = 0;
			while (iVar0 <= (Local_2709 - 1))
			{
				if (!ped::is_ped_injured(Local_2709[iVar0 /*20*/]))
				{
					iVar3++;
				}
				iVar0++;
			}
			if ((iLocal_3386 - iVar3) >= 3)
			{
				Local_1433[1 /*15*/] = vehicle::create_vehicle(Local_1433[1 /*15*/].f_1, Local_1433[1 /*15*/].f_3, Local_1433[1 /*15*/].f_6, 1, true);
				vehicle::set_vehicle_livery(Local_1433[1 /*15*/], 0);
				vehicle::set_heli_blades_full_speed(Local_1433[1 /*15*/]);
				vehicle::start_playback_recorded_vehicle(Local_1433[1 /*15*/], Local_1433[1 /*15*/].f_13, "lkfbi4", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1433[1 /*15*/], 1000f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1433[1 /*15*/], 1);
				vehicle::set_vehicle_searchlight(Local_1433[1 /*15*/], 1, 1);
				func_810(&(Local_2527[1 /*20*/]), &(Local_1433[1 /*15*/]), -1, 0);
				func_589(&(Local_2527[1 /*20*/]), 1);
				func_810(&(Local_1725[10 /*20*/]), &(Local_1433[1 /*15*/]), 1, 0);
				func_589(&(Local_2527[1 /*20*/]), 1);
				func_810(&(Local_1725[11 /*20*/]), &(Local_1433[1 /*15*/]), 2, 0);
				func_589(&(Local_2527[1 /*20*/]), 1);
				iLocal_3206 = true;
				if (func_960() != 2)
				{
					if (weapon::has_ped_got_weapon(iLocal_3099[2], joaat("weapon_rpg"), 0))
					{
						weapon::set_current_ped_weapon(iLocal_3099[2], joaat("weapon_rpg"), true);
					}
					entity::set_entity_only_damaged_by_player(iLocal_3099[2], false);
				}
				gameplay::set_fake_wanted_level(3);
				iLocal_3255++;
			}
			break;
		
		case 14:
			if (!entity::does_entity_exist(Local_1433[1 /*15*/]))
			{
				func_689(&iLocal_3099, 0, 0);
				func_689(&iLocal_3099, 1, 0);
				func_689(&iLocal_3099, 2, 0);
				func_803(308);
				iVar0 = 0;
				while (iVar0 <= (Local_1725 - 1))
				{
					if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
					{
						if (entity::get_entity_health(Local_1725[iVar0 /*20*/]) > 125)
						{
							entity::set_entity_health(Local_1725[iVar0 /*20*/], 125);
							entity::set_entity_only_damaged_by_player(Local_1725[iVar0 /*20*/], false);
							ped::set_ped_combat_attributes(Local_1725[iVar0 /*20*/], 37, false);
							ped::set_blocking_of_non_temporary_events(Local_1725[iVar0 /*20*/], false);
							ped::set_ped_angled_defensive_area(Local_1725[iVar0 /*20*/], 886.087f, -2332.138f, 29.331f, 883.225f, -2365.516f, 32.331f, 15.5f, 0, 0);
							ai::task_combat_hated_targets_around_ped(Local_1725[iVar0 /*20*/], 200f, 0);
							iLocal_1127[iVar0] = 5;
						}
					}
					iVar0++;
				}
				iVar0 = 0;
				while (iVar0 <= (Local_2648 - 1))
				{
					if (!ped::is_ped_injured(Local_2648[iVar0 /*20*/]))
					{
						if (entity::get_entity_health(Local_2648[iVar0 /*20*/]) > 125)
						{
							entity::set_entity_health(Local_2648[iVar0 /*20*/], 125);
							entity::set_entity_only_damaged_by_player(Local_2648[iVar0 /*20*/], false);
							ped::set_ped_combat_attributes(Local_2648[iVar0 /*20*/], 37, false);
							ped::set_blocking_of_non_temporary_events(Local_2648[iVar0 /*20*/], false);
							ped::set_ped_angled_defensive_area(Local_2648[iVar0 /*20*/], 886.087f, -2332.138f, 29.331f, 883.225f, -2365.516f, 32.331f, 15.5f, 0, 0);
							ai::task_combat_hated_targets_around_ped(Local_2648[iVar0 /*20*/], 200f, 0);
							iLocal_1164[iVar0] = 5;
						}
					}
					iVar0++;
				}
				iVar0 = 0;
				while (iVar0 <= (Local_2709 - 1))
				{
					if (!ped::is_ped_injured(Local_2709[iVar0 /*20*/]))
					{
						if (entity::get_entity_health(Local_2709[iVar0 /*20*/]) > 125)
						{
							entity::set_entity_health(Local_2709[iVar0 /*20*/], 125);
							entity::set_entity_only_damaged_by_player(Local_2709[iVar0 /*20*/], false);
						}
					}
					iVar0++;
				}
				gameplay::set_fake_wanted_level(2);
				unk1::_0x293220DA1B46CEBC(3f, 1073741824, 3);
				iLocal_3255++;
			}
			break;
		
		case 15:
			iVar4 = ((func_788(&Local_1725) + func_802(&Local_2648)) + func_802(&Local_2709));
			if (iVar4 >= 39)
			{
				gameplay::set_fake_wanted_level(1);
				iLocal_3255++;
			}
			switch (func_960())
			{
				case 0:
					func_776(&iLocal_3099, 1, 2, 2);
					break;
				
				case 1:
					func_776(&iLocal_3099, 2, 0, 2);
					break;
				
				case 2:
					func_776(&iLocal_3099, 0, 1, 0);
					break;
			}
			break;
		
		case 16:
			if (!func_772(&iLocal_3099) && !Local_3143.f_16)
			{
				if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "heat_end_0", 7, 0, 0, 0))
				{
					func_801();
					gameplay::_set_unk_map_flag(0);
					if (!audio::has_sound_finished(iLocal_3410))
					{
						audio::stop_sound(iLocal_3410);
					}
					audio::play_sound_from_coord(iLocal_3410, "Distant_Sirens", 844.7f, -2213.3f, 57.9f, 0, 0, 0, 0);
					func_541();
					ped::add_scenario_blocking_area(965.2f, -1693f, -100f, 1144.9f, -1929.1f, 100f, 0, 1, 1, 1);
					if (entity::does_entity_exist(iLocal_3099[0]))
					{
					}
					if (entity::does_entity_exist(iLocal_3099[1]))
					{
					}
					if (entity::does_entity_exist(iLocal_3099[2]))
					{
						func_320(iLocal_3099[2], 1);
						ped::set_blocking_of_non_temporary_events(iLocal_3099[2], true);
						ai::clear_ped_tasks(iLocal_3099[2]);
					}
					func_790(1);
					if (vehicle::is_vehicle_driveable(Local_1192, 0))
					{
						vehicle::set_vehicle_doors_locked(Local_1192, 1);
						vehicle::_0x0CDDA42F9E360CA6(Local_1192, 1);
						func_720(&Local_1192);
					}
					if (vehicle::is_vehicle_driveable(Local_1207, 0))
					{
						vehicle::set_vehicle_doors_locked(Local_1207, 1);
					}
					if (func_396(25, 0))
					{
						func_395(&vLocal_3808, 25);
					}
					else
					{
						iLocal_3197 = true;
						vLocal_3808 = { 1121.03f, -1249.9f, 19.57f };
					}
					if (entity::does_entity_exist(iLocal_3099[0]))
					{
						audio::_0x18EB48CFC41F2EA0(iLocal_3099[0], 0f);
					}
					if (entity::does_entity_exist(iLocal_3099[1]))
					{
						audio::_0x18EB48CFC41F2EA0(iLocal_3099[1], 0f);
					}
					if (entity::does_entity_exist(iLocal_3099[2]))
					{
						audio::_0x18EB48CFC41F2EA0(iLocal_3099[2], 0f);
					}
					if (func_960() == 1)
					{
						func_689(&iLocal_3099, 0, 0);
						func_689(&iLocal_3099, 1, 0);
						func_689(&iLocal_3099, 2, 0);
						func_544(&iLocal_3099, 0, 1);
						func_544(&iLocal_3099, 1, 1);
						func_544(&iLocal_3099, 2, 1);
						if (ui::does_blip_exist(iLocal_3452))
						{
							ui::remove_blip(&iLocal_3452);
						}
						if (ui::does_blip_exist(iLocal_3451))
						{
							ui::remove_blip(&iLocal_3451);
						}
						if (ui::does_blip_exist(iLocal_3453))
						{
							ui::remove_blip(&iLocal_3453);
						}
						if (entity::does_entity_exist(iLocal_3099[1]))
						{
							ai::task_look_at_entity(iLocal_3099[1], player::player_ped_id(), -1, 0, 2);
						}
						func_333(4, "burn the truck", 1, 0, 0, 1);
						iLocal_3226 = gameplay::get_game_timer();
						iLocal_3380 = gameplay::get_game_timer();
						if (vehicle::is_vehicle_driveable(Local_1177, 0))
						{
							entity::set_entity_only_damaged_by_player(Local_1177, true);
							entity::set_entity_proofs(Local_1177, false, false, false, false, false, false, 0, false);
						}
						func_394(&Local_3074, 1);
						iLocal_1126 = 8;
					}
					else
					{
						func_689(&iLocal_3099, 0, 0);
						func_689(&iLocal_3099, 1, 1);
						func_689(&iLocal_3099, 2, 0);
						func_544(&iLocal_3099, 0, 1);
						func_544(&iLocal_3099, 1, 0);
						func_544(&iLocal_3099, 2, 1);
						func_776(&iLocal_3099, 1, 0, 1);
						iLocal_3407 = gameplay::get_game_timer();
						iLocal_1126 = 7;
					}
					return true;
				}
			}
			break;
	}
	func_711(&Local_1725, 1);
	func_710(&Local_2648);
	func_710(&Local_2709);
	return false;
}

void func_801()//Position - 0x80DD4
{
	if (audio::is_audio_scene_active("FBI_4_SHOOTOUT_MICHAEL"))
	{
		audio::stop_audio_scene("FBI_4_SHOOTOUT_MICHAEL");
	}
	if (audio::is_audio_scene_active("FBI_4_SHOOTOUT_FRANKLIN"))
	{
		audio::stop_audio_scene("FBI_4_SHOOTOUT_FRANKLIN");
	}
	if (audio::is_audio_scene_active("FBI_4_SHOOTOUT_TREVOR"))
	{
		audio::stop_audio_scene("FBI_4_SHOOTOUT_TREVOR");
	}
}

int func_802(int iParam0)//Position - 0x80E1B
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 <= (*iParam0 - 1))
	{
		if (ped::is_ped_injured((*iParam0)[iVar1 /*20*/]))
		{
			iVar0++;
		}
		iVar1++;
	}
	return iVar0;
}

void func_803(int iParam0)//Position - 0x80E54
{
	int iVar0;
	int iVar1;
	
	Global_55750 = 0;
	if (!Global_55974[iParam0 /*13*/] == 3)
	{
		return;
	}
	iVar0 = false;
	iVar1 = 0;
	iVar1 = 0;
	while (iVar1 < Global_67844)
	{
		if (Global_67845[iVar1 /*9*/] == iParam0)
		{
			iVar0 = true;
			Global_67845[iVar1 /*9*/].f_1 = 1;
			Global_67845[iVar1 /*9*/].f_2 = 0f;
			if (Global_67845[iVar1 /*9*/].f_3 == 2)
			{
			}
		}
		iVar1++;
	}
	if (!iVar0)
	{
	}
}

void func_804()//Position - 0x80EC5
{
	if (iLocal_3180)
	{
		switch (iLocal_3366)
		{
			case 0:
				if (func_802(&Local_2709) >= 2)
				{
					func_805();
					func_805();
					iLocal_3366++;
				}
				break;
			
			case 1:
				if (func_802(&Local_2709) >= 1)
				{
					func_805();
					iLocal_3366++;
				}
				break;
			
			case 2:
				if (func_802(&Local_2709) >= 2)
				{
					func_805();
					iLocal_3366++;
				}
				break;
			
			case 3:
				if (func_802(&Local_2709) >= 3)
				{
					func_805();
					func_805();
					iLocal_3366 = 0;
				}
				break;
			}
	}
}

void func_805()//Position - 0x80F5F
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = iLocal_3362;
	while (iVar0 <= (Local_2709 - 1))
	{
		if (!entity::does_entity_exist(Local_2709[iVar0 /*20*/]))
		{
			func_590(&(Local_2709[iVar0 /*20*/]), 0);
			func_589(&(Local_2709[iVar0 /*20*/]), 1);
			iLocal_1168[iVar0] = 0;
			iLocal_3362++;
			if (iLocal_3362 >= Local_2709)
			{
				iLocal_3362 = 0;
			}
			return;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (iLocal_3362 - 1))
	{
		if (!entity::does_entity_exist(Local_2709[iVar0 /*20*/]))
		{
			func_590(&(Local_2709[iVar0 /*20*/]), 0);
			func_589(&(Local_2709[iVar0 /*20*/]), 1);
			iLocal_1168[iVar0] = 0;
			iLocal_3362++;
			if (iLocal_3362 >= Local_2709)
			{
				iLocal_3362 = 0;
			}
			return;
		}
		iVar0++;
	}
}

bool func_806()//Position - 0x81026
{
	switch (iLocal_3399)
	{
		case 0:
			Local_1222[4 /*15*/] = vehicle::create_vehicle(Local_1222[4 /*15*/].f_1, Local_1222[4 /*15*/].f_3, Local_1222[4 /*15*/].f_6, 1, true);
			entity::set_entity_only_damaged_by_player(Local_1222[4 /*15*/], true);
			vehicle::set_vehicle_siren(Local_1222[4 /*15*/], true);
			vehicle::start_playback_recorded_vehicle(Local_1222[4 /*15*/], Local_1222[4 /*15*/].f_13, "lkfbi4", 1);
			func_810(&(Local_1725[27 /*20*/]), &(Local_1222[4 /*15*/]), -1, 0);
			func_589(&(Local_1725[27 /*20*/]), 1);
			func_810(&(Local_1725[28 /*20*/]), &(Local_1222[4 /*15*/]), 0, 0);
			func_589(&(Local_1725[28 /*20*/]), 1);
			iLocal_3399++;
			break;
		
		case 1:
			func_590(&(Local_1725[29 /*20*/]), 0);
			func_589(&(Local_1725[29 /*20*/]), 1);
			iLocal_3399++;
			break;
		
		case 2:
			func_590(&(Local_1725[30 /*20*/]), 0);
			func_589(&(Local_1725[30 /*20*/]), 1);
			iLocal_3399++;
			return true;
			break;
		
		case 3:
			return true;
			break;
	}
	return false;
}

void func_807()//Position - 0x8113D
{
	int iVar0;
	
	if (iLocal_3180)
	{
		iVar0 = 0;
		iLocal_3397 = 0;
		iVar0 = 0;
		while (iVar0 <= (Local_1725 - 1))
		{
			if (!ped::is_ped_injured(Local_1725[iVar0 /*20*/]))
			{
				iLocal_3397++;
			}
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 <= (Local_2648 - 1))
		{
			if (!ped::is_ped_injured(Local_2648[iVar0 /*20*/]))
			{
				iLocal_3397++;
			}
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 <= (Local_2709 - 1))
		{
			if (!ped::is_ped_injured(Local_2709[iVar0 /*20*/]))
			{
				iLocal_3397++;
			}
			iVar0++;
		}
		if (iLocal_3397 < 10)
		{
			switch (iLocal_3365)
			{
				case 0:
					if (func_802(&Local_2648) >= 2)
					{
						func_808();
						func_808();
						iLocal_3365++;
					}
					break;
				
				case 1:
					if (func_802(&Local_2648) >= 1)
					{
						func_808();
						iLocal_3365++;
					}
					break;
				
				case 2:
					if (func_802(&Local_2648) >= 2)
					{
						func_808();
						func_808();
						iLocal_3365 = 0;
					}
					break;
				}
			}
	}
}

void func_808()//Position - 0x8124D
{
	int iVar0;
	
	iVar0 = 0;
	iVar0 = iLocal_3361;
	while (iVar0 <= (Local_2648 - 1))
	{
		if (!entity::does_entity_exist(Local_2648[iVar0 /*20*/]))
		{
			func_590(&(Local_2648[iVar0 /*20*/]), 0);
			func_589(&(Local_2648[iVar0 /*20*/]), 1);
			iLocal_1164[iVar0] = 0;
			iLocal_3361++;
			if (iLocal_3361 >= Local_2648)
			{
				iLocal_3361 = 0;
			}
			return;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (iLocal_3361 - 1))
	{
		if (!entity::does_entity_exist(Local_2648[iVar0 /*20*/]))
		{
			func_590(&(Local_2648[iVar0 /*20*/]), 0);
			func_589(&(Local_2648[iVar0 /*20*/]), 1);
			iLocal_1164[iVar0] = 0;
			iLocal_3361++;
			if (iLocal_3361 >= Local_2648)
			{
				iLocal_3361 = 0;
			}
			return;
		}
		iVar0++;
	}
}

bool func_809()//Position - 0x81314
{
	switch (iLocal_3398)
	{
		case 0:
			func_590(&(Local_1725[12 /*20*/]), 0);
			func_589(&(Local_1725[12 /*20*/]), 1);
			iLocal_3398++;
			break;
		
		case 1:
			func_590(&(Local_1725[13 /*20*/]), 0);
			func_589(&(Local_1725[13 /*20*/]), 1);
			iLocal_3398++;
			break;
		
		case 2:
			func_590(&(Local_1725[16 /*20*/]), 0);
			func_589(&(Local_1725[16 /*20*/]), 1);
			iLocal_3398++;
			break;
		
		case 3:
			func_590(&(Local_1725[17 /*20*/]), 0);
			func_589(&(Local_1725[17 /*20*/]), 1);
			iLocal_3398++;
			break;
		
		case 4:
			func_590(&(Local_1725[18 /*20*/]), 0);
			func_589(&(Local_1725[18 /*20*/]), 1);
			iLocal_3398++;
			return true;
			break;
		
		case 5:
			return true;
			break;
	}
	return false;
}

void func_810(var uParam0, var uParam1, int iParam2, int iParam3)//Position - 0x81403
{
	gameplay::clear_area(uParam0->f_3, 2f, 1, 0, 0, false);
	*uParam0 = ped::create_ped_inside_vehicle(*uParam1, 6, uParam0->f_1, iParam2, 1, true);
	ped::set_ped_random_component_variation(*uParam0, 0);
	ped::set_ped_dies_when_injured(*uParam0, true);
	ped::set_ped_as_enemy(*uParam0, 1);
	entity::set_entity_is_target_priority(*uParam0, 1, 0);
	ped::set_ped_keep_task(*uParam0, true);
	ped::set_ped_config_flag(*uParam0, 132, false);
	weapon::give_weapon_to_ped(*uParam0, uParam0->f_15, -1, true, true);
	ped::set_ped_accuracy(*uParam0, uParam0->f_11);
	entity::set_entity_health(*uParam0, uParam0->f_10);
	ped::set_ped_max_health(*uParam0, uParam0->f_10);
	if (uParam0->f_12)
	{
		entity::set_entity_only_damaged_by_player(*uParam0, true);
	}
	if (uParam0->f_13)
	{
		ped::add_armour_to_ped(*uParam0, 100);
	}
	ped::set_ped_money(*uParam0, 0);
	uParam0->f_14 = 1;
	ped::set_ped_name_debug(*uParam0, &(uParam0->f_16));
	ped::set_ped_hearing_range(*uParam0, 250f);
	ped::set_ped_seeing_range(*uParam0, 250f);
	ped::set_ped_id_range(*uParam0, 250f);
	if (iParam3)
	{
		uParam0->f_2 = func_407(*uParam0, 1, 145);
		ui::set_blip_display(uParam0->f_2, 2);
	}
	ped::set_ped_can_evasive_dive(*uParam0, 1);
	ped::set_blocking_of_non_temporary_events(*uParam0, true);
	func_591(*uParam0, 311);
	func_592(*uParam0, 0);
}

void func_811()//Position - 0x81528
{
	if (entity::is_entity_in_angled_area(player::player_ped_id(), 893.272f, -2360.499f, 29.293f, 886.701f, -2359.877f, 31.893f, 5.5f, 0, true, 0))
	{
		if (entity::does_entity_exist(Local_1685) || entity::does_entity_exist(Local_1705))
		{
			if (!ped::is_ped_injured(Local_1685) || !ped::is_ped_injured(Local_1705))
			{
				if (!ped::is_ped_injured(Local_1685))
				{
					if (ai::get_script_task_status(player::player_ped_id(), 150319005) != 1)
					{
						ai::task_look_at_entity(player::player_ped_id(), Local_1685, 2000, 0, 2);
					}
				}
				else if (!ped::is_ped_injured(Local_1705))
				{
					if (ai::get_script_task_status(player::player_ped_id(), 150319005) != 1)
					{
						ai::task_look_at_entity(player::player_ped_id(), Local_1705, 2000, 0, 2);
					}
				}
			}
		}
		else if (ai::get_script_task_status(player::player_ped_id(), 150319005) == 1)
		{
			ai::task_clear_look_at(player::player_ped_id());
		}
	}
	else if (ai::get_script_task_status(player::player_ped_id(), 150319005) == 1)
	{
		ai::task_clear_look_at(player::player_ped_id());
	}
}

void func_812(var uParam0)//Position - 0x81624
{
	if (entity::does_entity_exist(*uParam0))
	{
		if (ped::is_ped_injured(*uParam0))
		{
			if (entity::has_entity_been_damaged_by_entity(*uParam0, player::player_ped_id(), 1))
			{
				if (func_960() == 2)
				{
					iLocal_3218 = true;
				}
				else
				{
					iLocal_3218 = false;
				}
			}
		}
	}
}

void func_813()//Position - 0x81662
{
	if (entity::does_entity_exist(iLocal_3099[0]))
	{
		if (!ped::is_ped_injured(iLocal_3099[0]))
		{
			ped::set_ped_reset_flag(iLocal_3099[0], 227, true);
		}
	}
	if (entity::does_entity_exist(iLocal_3099[1]))
	{
		if (!ped::is_ped_injured(iLocal_3099[1]))
		{
			ped::set_ped_reset_flag(iLocal_3099[1], 227, true);
		}
	}
	if (entity::does_entity_exist(iLocal_3099[2]))
	{
		if (!ped::is_ped_injured(iLocal_3099[2]))
		{
			ped::set_ped_reset_flag(iLocal_3099[2], 227, true);
		}
	}
}

void func_814()//Position - 0x816E2
{
	if (entity::is_entity_in_angled_area(player::player_ped_id(), 787.998f, -2336.441f, 29.2f, 933.748f, -2351.246f, 80.35f, 126.3f, 0, true, 0))
	{
		iLocal_3180 = true;
		if (iLocal_3181)
		{
			if (func_765(sLocal_3447, 0, 0))
			{
				ui::clear_this_print(sLocal_3447);
				iLocal_3181 = 0;
			}
		}
		iLocal_3242 = gameplay::get_game_timer();
	}
	else
	{
		iLocal_3180 = false;
		if (!iLocal_3181)
		{
			switch (func_960())
			{
				case 0:
					func_436("cntry_area1", 7500, 1);
					sLocal_3447 = "cntry_area1";
					break;
				
				case 1:
					func_436("cntry_area2", 7500, 1);
					sLocal_3447 = "cntry_area2";
					break;
				
				case 2:
					func_436("cntry_area0", 7500, 1);
					sLocal_3447 = "cntry_area0";
					break;
			}
			iLocal_3181 = 1;
		}
		if (func_272(&iLocal_3242, 10000))
		{
			if (!Local_3143.f_16)
			{
				switch (func_960())
				{
					case 0:
						sLocal_3448 = "cntry_fail10";
						break;
					
					case 1:
						sLocal_3448 = "cntry_fail11";
						break;
					
					case 2:
						sLocal_3448 = "cntry_fail9";
						break;
				}
				iLocal_3190 = 1;
			}
		}
	}
}

void func_815()//Position - 0x8180E
{
	func_822();
	func_784();
	func_821();
	func_814();
	func_820();
	func_819();
	unk1::_0xAF66DCEE6609B148();
	switch (iLocal_3231)
	{
		case 0:
			streaming::request_model(Local_3029.f_2);
			Local_1685 = ped::create_ped(26, Local_1685.f_1, Local_1685.f_3, Local_1685.f_9, 1, true);
			entity::set_entity_collision(Local_1685, false, 0);
			entity::freeze_entity_position(Local_1685, true);
			entity::set_entity_visible(Local_1685, false, 0);
			ped::set_blocking_of_non_temporary_events(Local_1685, true);
			func_442(&(Local_3473[0 /*165*/]), 6, Local_1685, "AGENT1", 0, 1);
			ped::set_ped_name_debug(Local_1685, &(Local_1685.f_16));
			iLocal_3231++;
			break;
		
		case 1:
			if (gameplay::is_projectile_type_in_angled_area(891.034f, -2362.032f, 29.282f, 888.756f, -2361.72f, 31.622f, 1.1f, joaat("weapon_stickybomb"), 0) || gameplay::is_projectile_type_in_angled_area(891.034f, -2362.032f, 29.282f, 888.756f, -2361.72f, 31.622f, 1.1f, joaat("weapon_proxmine"), 0))
			{
				unk1::_0x293220DA1B46CEBC(2f, 4f, 4);
				audio::trigger_music_event("fbi4_PLANT_BOMB_MA");
				ai::assisted_movement_remove_route("Heat1assists");
				if (ui::does_blip_exist(iLocal_3450))
				{
					ui::remove_blip(&iLocal_3450);
				}
				ui::clear_this_print("cntry_god7");
				ped::set_ped_can_switch_weapon(player::player_ped_id(), true);
				iLocal_3178 = 0;
				iLocal_3240 = gameplay::get_game_timer();
				iLocal_3192 = 1;
				func_333(2, "Detonate C4", 0, 0, 0, 1);
				iLocal_3231++;
			}
			break;
		
		case 2:
			if (!func_719("cntry_god8"))
			{
				if (!func_627(&Local_3074, 0))
				{
					func_436("cntry_god8", 5000, 1);
					func_716("cntry_god8", 1);
				}
			}
			if (!iLocal_3178)
			{
				if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), 891.7935f, -2357.598f, 29.3537f, 1) > 6f)
				{
					ui::clear_prints();
					func_754("cntry_help3", -1);
					iLocal_3226 = gameplay::get_game_timer();
					iLocal_3178 = 1;
				}
			}
			else if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), 891.7935f, -2357.598f, 29.3537f, 1) < 50f)
			{
				if (!func_627(&Local_3074, 0))
				{
					if (!func_719("heat_c4_3"))
					{
						if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "heat_c4_3", 7, 0, 0, 0))
						{
							func_716("heat_c4_3", 1);
						}
					}
					else if (func_272(&iLocal_3226, 10000))
					{
						if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "heat_c4_4", 7, 0, 0, 0))
						{
							iLocal_3226 = gameplay::get_game_timer();
						}
					}
				}
			}
			if (!func_719("heat_c4_5"))
			{
				if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), 891.7935f, -2357.598f, 29.3537f, 1) > 22f)
				{
					if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "heat_c4_5", 6, 0, 0, 0))
					{
						func_716("heat_c4_5", 1);
					}
				}
			}
			if (!entity::is_entity_in_angled_area(player::player_ped_id(), 893.067f, -2361.493f, 29.32f, 887.091f, -2360.959f, 33.32f, 4.5f, 0, true, 0))
			{
				iLocal_3191 = 1;
			}
			else if (func_272(&iLocal_3240, 10000) || iLocal_3191)
			{
				if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "fbi4_c4_0", 7, 0, 0, 0))
				{
					iLocal_3240 = gameplay::get_game_timer();
					iLocal_3191 = 0;
				}
			}
			if (func_818())
			{
				weapon::remove_all_projectiles_of_type(joaat("weapon_grenade"), 0);
				gameplay::clear_area(889.7f, -2362.58f, 30.24f, 50f, 0, 0, 0, false);
				vehicle::set_vehicle_can_be_visibly_damaged(Local_1192, false);
				entity::set_entity_proofs(Local_1192, true, true, true, true, true, false, 0, false);
				ui::clear_help(1);
				if (audio::is_audio_scene_active("FBI_4_RIG_EXPLOSIVES"))
				{
					audio::stop_audio_scene("FBI_4_RIG_EXPLOSIVES");
				}
				iLocal_3226 = gameplay::get_game_timer();
				if (!entity::is_entity_in_angled_area(player::player_ped_id(), 893.067f, -2361.493f, 29.32f, 887.091f, -2360.959f, 33.32f, 4.5f, 0, true, 0))
				{
					if (func_599(1, 1, 1, 1, 0))
					{
						func_816();
						iLocal_3231++;
					}
				}
				else
				{
					fire::_add_specfx_explosion(889.7f, -2362.58f, 30.24f, 0, gameplay::get_hash_key("EXP_VFXTAG_FBI4_TRUCK_DOORS"), 0.5f, 1, 0, 1065353216);
					audio::play_sound_frontend(iLocal_3259, "FBI_04_HEAT_C4_DOORS", 0, 1);
					object::delete_object(&Local_2933);
					entity::set_entity_health(player::player_ped_id(), 2);
				}
			}
			break;
		
		case 3:
			if (func_816())
			{
				if (streaming::has_model_loaded(Local_3029.f_2))
				{
					Local_3029 = object::create_object_no_offset(Local_3029.f_2, Local_3029.f_3, 1, true, false);
					entity::set_entity_rotation(Local_3029, Local_3029.f_12, 2, 1);
					entity::freeze_entity_position(Local_3029, true);
				}
				func_727(&(Local_3473[0 /*165*/]), 0);
				func_727(&(Local_3473[0 /*165*/]), 1);
				func_727(&(Local_3473[0 /*165*/]), 2);
				func_727(&(Local_3473[0 /*165*/]), 3);
				func_727(&(Local_3473[0 /*165*/]), 4);
				func_727(&(Local_3473[0 /*165*/]), 5);
				func_727(&(Local_3473[0 /*165*/]), 6);
				func_727(&(Local_3473[0 /*165*/]), 7);
				func_442(&(Local_3473[0 /*165*/]), 1, player::player_ped_id(), "franklin", 0, 1);
				func_442(&(Local_3473[0 /*165*/]), 0, iLocal_3099[0], "michael", 0, 1);
				func_442(&(Local_3473[0 /*165*/]), 2, iLocal_3099[2], "trevor", 0, 1);
				iLocal_3230 = 2;
				func_784();
				func_752();
				func_751();
				iLocal_3226 = gameplay::get_game_timer();
				func_333(2, "Detonate C4", 0, 0, 0, 1);
				iLocal_1126 = 6;
			}
			break;
	}
}

bool func_816()//Position - 0x81D6D
{
	vector3 vVar0;
	
	switch (iLocal_3257)
	{
		case 0:
			if (entity::does_entity_exist(Local_1685))
			{
				ped::delete_ped(&Local_1685);
			}
			streaming::set_model_as_no_longer_needed(Local_1685.f_1);
			if (entity::does_entity_exist(Local_1665))
			{
				ped::delete_ped(&Local_1665);
			}
			streaming::set_model_as_no_longer_needed(Local_1665.f_1);
			if (vehicle::is_vehicle_driveable(Local_1177, 0))
			{
				entity::set_entity_proofs(Local_1177, true, true, true, true, true, false, 0, false);
			}
			gameplay::clear_area(889.7411f, -2345.456f, 29.3307f, 1000f, 1, 0, 0, false);
			player::clear_player_wanted_level(player::player_id());
			player::set_max_wanted_level(0);
			ped::set_create_random_cops(false);
			if (!ped::is_ped_in_cover(player::player_ped_id(), 0))
			{
				ai::clear_ped_tasks_immediately(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);
				vVar0 = { entity::get_entity_coords(Local_1192, 1) - entity::get_entity_coords(player::player_ped_id(), 1) };
				entity::set_entity_heading(player::player_ped_id(), gameplay::get_heading_from_vector_2d(vVar0.x, vVar0.y));
			}
			if (func_817())
			{
				ai::clear_ped_tasks_immediately(player::player_ped_id());
				entity::set_entity_coords(player::player_ped_id(), 890.4393f, -2346.476f, 29.3416f, 1, false, 0, 1);
				entity::set_entity_heading(player::player_ped_id(), 184.3769f);
			}
			if (!weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_stickybomb"), 0))
			{
				weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_stickybomb"), 3, false, false);
			}
			else if (weapon::get_ammo_in_ped_weapon(player::player_ped_id(), joaat("weapon_stickybomb")) < 3)
			{
				weapon::set_ped_ammo(player::player_ped_id(), joaat("weapon_stickybomb"), 3);
			}
			weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_carbinerifle"), true);
			if (vehicle::is_vehicle_driveable(Local_1177, 0))
			{
				entity::set_entity_coords(Local_1177, 901.9453f, -2383.368f, 29.2789f, 1, false, 0, 1);
				entity::set_entity_heading(Local_1177, 341.1729f);
				vehicle::set_vehicle_on_ground_properly(Local_1177);
			}
			if (vehicle::is_vehicle_driveable(Local_1207, 0))
			{
				entity::set_entity_coords(Local_1207, 898.3076f, -2364.362f, 29.4919f, 1, false, 0, 1);
				entity::set_entity_heading(Local_1207, 87.458f);
				vehicle::set_vehicle_on_ground_properly(Local_1207);
			}
			vehicle::set_vehicle_door_broken(Local_1192, 2, 0);
			vehicle::set_vehicle_door_broken(Local_1192, 3, 0);
			fire::_add_specfx_explosion(889.7f, -2362.58f, 30.24f, 0, gameplay::get_hash_key("EXP_VFXTAG_FBI4_TRUCK_DOORS"), 0.5f, 1, 0, 1065353216);
			audio::play_sound_frontend(iLocal_3259, "FBI_04_HEAT_C4_DOORS", 0, 1);
			object::delete_object(&Local_2933);
			iLocal_3455 = cam::create_cam_with_params("default_scripted_camera", 888.9351f, -2355.473f, 29.95538f, 4.753477f, -1.775736f, -163.738f, 36.00951f, 0, 2);
			cam::set_cam_active(iLocal_3455, true);
			cam::shake_cam(iLocal_3455, "SMALL_EXPLOSION_SHAKE", 0.5f);
			cam::render_script_cams(true, false, 3000, 1, 0, 0);
			unk1::_0x48621C9FCA3EBD28(4);
			audio::trigger_music_event("fbi4_EXPLODE_MA");
			audio::start_audio_scene("FBI_4_EXPLOSION_RAYFIRE");
			iLocal_3226 = gameplay::get_game_timer();
			iLocal_3257++;
			break;
		
		case 1:
			if (func_272(&iLocal_3226, 1100))
			{
				if (audio::is_audio_scene_active("FBI_4_EXPLOSION_RAYFIRE"))
				{
					audio::stop_audio_scene("FBI_4_EXPLOSION_RAYFIRE");
				}
				ai::task_play_anim(player::player_ped_id(), "missfbi4", "REACT_Explosion", 1000f, -4f, -1, 131072, 0.2f, 0, 0, 0);
				ped::_0x2208438012482A1A(player::player_ped_id(), 0, 0);
				audio::start_audio_scene("FBI_4_PREP_FOR_COPS");
				unk1::_0x81CBAE94390F9F89();
				func_569(0, 1, 0, 0f, 0f, 3000, 0, 0);
				return true;
			}
			break;
		
		case 2:
			break;
		
		case 22:
			break;
	}
	return false;
}

bool func_817()//Position - 0x820AE
{
	if (!entity::is_entity_in_angled_area(player::player_ped_id(), 897.491f, -2352.488f, 29.431f, 860.245f, -2349.099f, 32.331f, 28.2f, 0, true, 0))
	{
		return true;
	}
	if (entity::is_entity_in_angled_area(player::player_ped_id(), 897.491f, -2352.488f, 29.431f, 860.245f, -2349.099f, 32.331f, 28.2f, 0, true, 0))
	{
		if (!entity::is_entity_in_angled_area(player::player_ped_id(), 897.957f, -2352.269f, 29.358f, 884.508f, -2351.092f, 33.658f, 12.3f, 0, true, 0))
		{
			if (!ped::is_ped_in_cover(player::player_ped_id(), 0))
			{
				return true;
			}
		}
	}
	if (entity::is_entity_in_angled_area(player::player_ped_id(), 894.352f, -2355.901f, 29.401f, 889.687f, -2355.331f, 33.641f, 13.4f, 0, true, 0))
	{
		return true;
	}
	return false;
}

bool func_818()//Position - 0x82196
{
	if (!iLocal_3192)
	{
		if ((gameplay::is_projectile_type_in_angled_area(891.034f, -2362.032f, 29.282f, 888.756f, -2361.72f, 31.622f, 1.1f, joaat("weapon_stickybomb"), 0) || gameplay::is_projectile_type_in_angled_area(891.034f, -2362.032f, 29.282f, 888.756f, -2361.72f, 31.622f, 1.1f, joaat("weapon_proxmine"), 0)) || (entity::does_entity_exist(Local_2933) && entity::is_entity_in_angled_area(Local_2933, 891.202f, -2361.976f, 28.324f, 888.773f, -2361.656f, 31.824f, 1f, 0, true, 0)))
		{
			iLocal_3192 = 1;
		}
	}
	else if (!entity::does_entity_exist(Local_2933))
	{
		if ((controls::is_control_pressed(0, 47) || fire::is_explosion_in_angled_area(2, 891.202f, -2361.976f, 28.324f, 888.773f, -2361.656f, 31.824f, 1f)) || fire::is_explosion_in_angled_area(40, 891.202f, -2361.976f, 28.324f, 888.773f, -2361.656f, 31.824f, 1f))
		{
			return true;
		}
	}
	else if (((controls::is_control_pressed(0, 47) || fire::is_explosion_in_angled_area(2, 891.202f, -2361.976f, 28.324f, 888.773f, -2361.656f, 31.824f, 1f)) || fire::is_explosion_in_angled_area(40, 891.202f, -2361.976f, 28.324f, 888.773f, -2361.656f, 31.824f, 1f)) || entity::get_entity_health(Local_2933) < 990)
	{
		return true;
	}
	return false;
}

void func_819()//Position - 0x82330
{
	switch (iLocal_3391)
	{
		case 0:
			if (vehicle::is_vehicle_driveable(Local_1207, 0))
			{
				if (!ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1207))
				{
					audio::start_audio_scene("FBI_4_RIG_EXPLOSIVES");
					iLocal_3391++;
				}
			}
			break;
		
		case 1:
			break;
	}
}

void func_820()//Position - 0x8237E
{
	if (!iLocal_3180)
	{
		if (ui::does_blip_exist(iLocal_3450))
		{
			ui::remove_blip(&iLocal_3450);
		}
	}
	else
	{
		switch (iLocal_3231)
		{
			case 0:
			case 1:
				if (!ui::does_blip_exist(iLocal_3450))
				{
					iLocal_3450 = func_622(889.7667f, -2361.806f, 29.2762f, 0);
					ui::set_blip_as_friendly(iLocal_3450, true);
					ui::set_blip_name_from_text_file(iLocal_3450, "cntry_god21");
				}
				break;
			
			case 2:
				break;
			}
	}
}

void func_821()//Position - 0x823F7
{
	if (!func_627(&Local_3074, 0))
	{
		switch (iLocal_3284)
		{
			case 0:
				if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_plant", 7, 0, 0, 0))
				{
					iLocal_3284++;
				}
				break;
			
			case 1:
				if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_c4_1", 7, 0, 0, 0))
				{
					iLocal_3284++;
				}
				break;
			
			case 2:
				if (!func_627(&Local_3074, 0))
				{
					if (ui::does_blip_exist(iLocal_3450))
					{
						iLocal_3240 = gameplay::get_game_timer();
						func_436("cntry_god7", 7500, 1);
					}
					iLocal_3284++;
				}
				break;
			
			case 3:
				if (!ui::does_blip_exist(iLocal_3450))
				{
					if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), 891.7935f, -2357.598f, 29.3537f, 1) < 50f)
					{
						if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "fbi4_c4_0", 7, 0, 0, 0))
						{
							iLocal_3284++;
						}
					}
				}
				else if (func_272(&iLocal_3240, 15000))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "heat_remind", 7, 0, 0, 0))
					{
						iLocal_3284++;
					}
				}
				break;
			}
	}
}

void func_822()//Position - 0x82536
{
}

void func_823()//Position - 0x8253E
{
	if (iLocal_3228 < 1)
	{
		unk1::_0xAF66DCEE6609B148();
	}
	switch (iLocal_3228)
	{
		case 0:
			func_831();
			func_830(0);
			func_828();
			if (!audio::_0xA097AB275061FB21())
			{
				audio::prepare_music_event("FBI4_TRUCK_RAM_MA");
			}
			func_827();
			if (ui::does_blip_exist(Local_1192.f_2))
			{
				if (entity::is_entity_in_angled_area(player::player_ped_id(), 907.426f, -2371.301f, 29.55f, 908.093f, -2362.426f, 33.55f, 5.8f, 0, true, 0))
				{
					if (entity::get_entity_heading(Local_1207) > 45f && entity::get_entity_heading(Local_1207) < 135f)
					{
						if (entity::is_entity_touching_entity(Local_1207, Local_1192))
						{
							if (entity::get_entity_speed(Local_1207) >= 5f)
							{
								if (func_599(1, 1, 1, 0, 1))
								{
									func_824();
									iLocal_3228++;
								}
							}
						}
					}
				}
			}
			break;
		
		case 1:
			if (func_824())
			{
				iLocal_3309 = gameplay::get_game_timer();
				iLocal_3450 = func_622(889.7667f, -2361.806f, 29.2762f, 0);
				ui::set_blip_as_friendly(iLocal_3450, true);
				ui::set_blip_name_from_text_file(iLocal_3450, "cntry_god21");
				iLocal_3178 = 0;
				iLocal_1126 = 5;
			}
			break;
		
		case 2:
			break;
	}
}

bool func_824()//Position - 0x8266A
{
	float fVar0;
	
	func_822();
	if (entity::does_entity_exist(Local_1192))
	{
		if (vehicle::is_playback_going_on_for_vehicle(Local_1192))
		{
			fVar0 = vehicle::get_time_position_in_recording(Local_1192);
		}
	}
	unk1::_0xAF66DCEE6609B148();
	if (func_825(1000))
	{
		iLocal_3229 = 22;
	}
	func_830(fVar0);
	switch (iLocal_3229)
	{
		case 0:
			func_541();
			ui::remove_blip(&(Local_1192.f_2));
			unk1::_0x293220DA1B46CEBC(1f, 1073741824, 3);
			if (audio::is_audio_scene_active("FBI_4_PICKUP_TRUCK_INT"))
			{
				audio::stop_audio_scene("FBI_4_PICKUP_TRUCK_INT");
			}
			streaming::set_vehicle_population_budget(0);
			pathfind::set_roads_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, false, 1);
			pathfind::set_ped_paths_in_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f, false, 0);
			ped::set_ped_non_creation_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f);
			ped::add_scenario_blocking_area(798.06f, -1982.81f, 100f, 1372.22f, -2752.3f, -100f, 0, 1, 1, 1);
			gameplay::clear_area(906.2467f, -2357.915f, 30.94336f, 10000f, 1, 0, 0, false);
			iLocal_3455 = cam::create_cam_with_params("default_scripted_camera", 906.0424f, -2377.926f, 30.72413f, 0.229425f, -1.864868f, 12.6026f, 39.64163f, 0, 2);
			iLocal_3456 = cam::create_cam_with_params("default_scripted_camera", 907.6775f, -2369.175f, 31.80255f, -5.724536f, 0.207416f, 57.18651f, 37f, 0, 2);
			iLocal_3457 = cam::create_cam_with_params("default_scripted_camera", 900.2029f, -2367.95f, 32.18867f, -13.27257f, 0.458764f, 56.31219f, 35f, 0, 2);
			iLocal_3458 = cam::create_cam_with_params("default_scripted_camera", 881.2092f, -2372.341f, 34.58205f, -14.49448f, 3.857126f, -69.51784f, 27.69079f, 0, 2);
			iLocal_3459 = cam::create_cam_with_params("default_scripted_camera", 879.637f, -2374.733f, 30.37368f, -2.835233f, 3.857126f, -52.99608f, 26.47429f, 0, 2);
			iLocal_3460 = cam::create_cam_with_params("default_scripted_camera", 899.6381f, -2368.813f, 30.39501f, 5.178746f, 1.312154f, 55.96893f, 50f, 0, 2);
			iLocal_3461 = cam::create_cam_with_params("default_scripted_camera", 879.637f, -2374.733f, 30.37368f, -2.835233f, 3.857126f, -52.99608f, 25.8f, 0, 2);
			ped::set_ped_using_action_mode(player::player_ped_id(), true, -1, 0);
			func_432(player::player_ped_id(), 0);
			if (!weapon::has_ped_got_weapon(player::player_ped_id(), joaat("weapon_stickybomb"), 0))
			{
				weapon::give_weapon_to_ped(player::player_ped_id(), joaat("weapon_stickybomb"), 5, true, true);
			}
			else if (weapon::get_ammo_in_ped_weapon(player::player_ped_id(), joaat("weapon_stickybomb")) < 5)
			{
				weapon::set_ped_ammo(player::player_ped_id(), joaat("weapon_stickybomb"), 5);
			}
			weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_stickybomb"), true);
			ped::set_ped_using_action_mode(iLocal_3099[0], true, -1, 0);
			func_403(iLocal_3099[0]);
			func_320(iLocal_3099[0], 0);
			func_319(&(iLocal_3099[0]), 1);
			iLocal_3451 = func_407(iLocal_3099[0], 0, 145);
			ui::set_blip_display(iLocal_3451, 2);
			ui::set_blip_scale(iLocal_3451, 0.5f);
			ped::set_blocking_of_non_temporary_events(iLocal_3099[0], true);
			func_411(&(iLocal_3099[2]), 2, 804.7164f, -2330.207f, 61.0967f, 264.4371f, 0, 0, 0);
			func_324(iLocal_3099[2]);
			func_252(iLocal_3099[2], 14, 154, 1, -1, 0, 0, 0, -1, -1, -1, 0);
			func_410(iLocal_3099[2]);
			func_320(iLocal_3099[2], 0);
			func_319(&(iLocal_3099[2]), 1);
			func_442(&(Local_3473[0 /*165*/]), 2, iLocal_3099[2], "TREVOR", 0, 1);
			iLocal_3452 = func_407(iLocal_3099[2], 0, 145);
			ui::set_blip_display(iLocal_3452, 2);
			ui::set_blip_scale(iLocal_3452, 0.5f);
			func_399(&Local_1192);
			vehicle::start_playback_recorded_vehicle(Local_1192, 3, "lkcountry", 1);
			vehicle::_0x1F2E4E06DEA8992B(Local_1192, 1);
			func_399(&Local_1207);
			vehicle::_0x0CDDA42F9E360CA6(Local_1207, 0);
			vehicle::start_playback_recorded_vehicle(Local_1207, 4, "lkcountry", 1);
			vehicle::skip_time_in_playback_recorded_vehicle(Local_1207, 8375f);
			vehicle::_0x1F2E4E06DEA8992B(Local_1207, 1);
			if (vehicle::is_vehicle_driveable(Local_1177, 0))
			{
				entity::set_entity_coords(Local_1177, 901.9453f, -2383.368f, 29.2789f, 1, false, 0, 1);
				entity::set_entity_heading(Local_1177, 341.1729f);
				vehicle::set_vehicle_on_ground_properly(Local_1177);
			}
			gameplay::set_time_scale(0.4f);
			audio::play_stream_frontend();
			audio::_0xD01005D2BA2EB778("SLOWMO_FIB4_TRUCK_SMASH");
			ai::clear_ped_tasks_immediately(iLocal_3099[0]);
			entity::set_entity_coords(iLocal_3099[0], 907.141f, -2376.71f, 29.53554f, 1, false, 0, 1);
			entity::set_entity_heading(iLocal_3099[0], 9.7089f);
			func_784();
			ped::_0x2208438012482A1A(iLocal_3099[0], 0, 0);
			iLocal_3464 = cam::create_camera(964613260, 1);
			cam::play_cam_anim(iLocal_3464, "fbi4_RAMCAM_CAM", "missfbi4", 921.402f, -2362.843f, 29.479f, 0f, 0f, -2.25f, 0, 2);
			cam::render_script_cams(true, false, 3000, 1, 0, 0);
			audio::start_audio_scene("FBI_4_COLLISION_RAYFIRE");
			unk1::_0x48621C9FCA3EBD28(4);
			iLocal_3226 = gameplay::get_game_timer();
			iLocal_3229++;
			break;
		
		case 1:
			if (fVar0 > 80f)
			{
				func_726(&(Local_3473[0 /*165*/]), "heataud", "ram_cut_1", 7, 0, 0, 0);
				graphics::start_particle_fx_non_looped_on_entity("scr_fbi4_trucks_crash", Local_1207, 0f, 5f, 0f, 0f, 0f, 0f, 1065353216, 0, 0, 0);
				audio::trigger_music_event("fbi4_TRUCK_RAM_MA");
				iLocal_3229++;
			}
			break;
		
		case 2:
			if (fVar0 > 600f)
			{
				cam::set_cam_active(iLocal_3455, false);
				graphics::_0xD39D13C9FEBF0511(true);
				vehicle::set_vehicle_damage(Local_1207, 0f, 6.5f, 0.5f, 375f, 400f, 1);
				vehicle::set_vehicle_damage(Local_1192, -2f, -0.5f, 0.5f, 1000f, 1000f, 1);
				if (!ped::is_ped_injured(Local_1645))
				{
					ai::task_play_anim_advanced(Local_1645, "missheat", "Guard_Dead_DS", entity::get_entity_coords(Local_1192, 1), entity::get_entity_rotation(Local_1192, 2), 1000f, -1000f, -1, 2, 0f, 2, 0);
				}
				if (!ped::is_ped_injured(Local_1665))
				{
					ai::task_play_anim_advanced(Local_1665, "missheat", "Guard_Dead_PS", entity::get_entity_coords(Local_1192, 1), entity::get_entity_rotation(Local_1192, 2), 1000f, -1000f, -1, 2, 0f, 2, 0);
				}
				iLocal_3226 = gameplay::get_game_timer();
				gameplay::set_time_scale(0.4f);
				iLocal_3464 = cam::create_camera(964613260, 1);
				cam::play_cam_anim(iLocal_3464, "fbi4_WALLCRUSH_CAM", "missfbi4", 921.677f, -2360.643f, 28.779f, 0f, 0f, 0.25f, 0, 2);
				entity::set_entity_coords(iLocal_3099[0], 905.511f, -2373.917f, 29.53282f, 1, true, 1, 1);
				iLocal_3229++;
			}
			break;
		
		case 3:
			if (cam::get_cam_anim_current_phase(iLocal_3464) >= 0.3f)
			{
				vehicle::set_vehicle_damage(Local_1192, 0f, -1.5f, 2f, 1000f, 1000f, 1);
				iLocal_3217 = true;
				iLocal_3229++;
			}
			break;
		
		case 4:
			if (cam::_0xEE778F8C7E1142E2(1) == 4)
			{
				if (cam::get_cam_anim_current_phase(iLocal_3464) >= 0.97f)
				{
					graphics::_start_screen_effect("CamPushInNeutral", 0, 0);
					audio::play_sound_frontend(-1, "1st_Person_Transition", "PLAYER_SWITCH_CUSTOM_SOUNDSET", 1);
					iLocal_3229++;
				}
			}
			else
			{
				iLocal_3229++;
			}
			break;
		
		case 5:
			if (cam::get_cam_anim_current_phase(iLocal_3464) >= 1f)
			{
				entity::freeze_entity_position(Local_1192, true);
				vehicle::_0x1CF38D529D7441D9(Local_1192, true);
				if (vehicle::is_playback_going_on_for_vehicle(Local_1192))
				{
					vehicle::stop_playback_recorded_vehicle(Local_1192);
				}
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3229++;
			}
			break;
		
		case 6:
			gameplay::set_time_scale(1f);
			audio::_0xDDC635D5B3262C56("SLOWMO_FIB4_TRUCK_SMASH");
			if (vehicle::is_playback_going_on_for_vehicle(Local_1207))
			{
				vehicle::stop_playback_recorded_vehicle(Local_1207);
			}
			entity::force_entity_ai_and_animation_update(Local_1207);
			entity::freeze_entity_position(Local_1192, true);
			vehicle::_0x1CF38D529D7441D9(Local_1192, true);
			iLocal_3226 = gameplay::get_game_timer();
			iLocal_3229++;
			break;
		
		case 7:
			Local_1207.f_3 = { entity::get_entity_coords(Local_1207, 1) };
			Local_1207.f_6 = entity::get_entity_heading(Local_1207);
			Local_1207.f_3 = { 896.0892f, -2364.416f, 29.4761f };
			Local_1207.f_6 = 84.0784f;
			entity::set_entity_coords(Local_1207, Local_1207.f_3, 1, false, 0, 1);
			entity::set_entity_heading(Local_1207, Local_1207.f_6);
			vehicle::set_vehicle_on_ground_properly(Local_1207);
			entity::force_entity_ai_and_animation_update(Local_1207);
			Local_2981 = object::create_object(Local_2981.f_2, Local_2981.f_3, 1, true, false);
			entity::set_entity_rotation(Local_2981, Local_2981.f_12, 2, 1);
			entity::freeze_entity_position(Local_2981, true);
			graphics::_0x03FC694AE06C5A20();
			func_726(&(Local_3473[0 /*165*/]), "heataud", "ram_cut_2", 7, 0, 0, 0);
			if (!ped::is_ped_injured(Local_1645))
			{
				entity::set_entity_health(Local_1645, 2);
			}
			if (!ped::is_ped_injured(Local_1665))
			{
				entity::set_entity_health(Local_1665, 2);
			}
			audio::set_horn_enabled(Local_1192, 0);
			audio::stop_audio_scene("RURAL_BANK_HEIST_SETUP_HIJACK_SCENE");
			cam::set_follow_vehicle_cam_view_mode(iLocal_3807);
			func_569(0, 1, 0, -30f, 0f, 1500, 0, 1);
			player::set_player_control(player::player_id(), false, 0);
			iLocal_3229++;
			break;
		
		case 8:
			if (!cam::_0x3044240D2E0FA842())
			{
				audio::stop_stream();
				if (audio::is_audio_scene_active("FBI_4_COLLISION_RAYFIRE"))
				{
					audio::stop_audio_scene("FBI_4_COLLISION_RAYFIRE");
				}
				func_727(&(Local_3473[0 /*165*/]), 3);
				func_727(&(Local_3473[0 /*165*/]), 4);
				func_727(&(Local_3473[0 /*165*/]), 5);
				func_727(&(Local_3473[0 /*165*/]), 6);
				func_727(&(Local_3473[0 /*165*/]), 7);
				vehicle::fix_vehicle_window(Local_1192, 2);
				vehicle::fix_vehicle_window(Local_1192, 3);
				vehicle::set_vehicle_doors_locked(Local_1192, 2);
				vehicle::set_vehicle_doors_locked(Local_1177, 2);
				vehicle::set_vehicle_doors_locked(Local_1207, 2);
				vehicle::set_vehicle_is_considered_by_player(Local_1207, 0);
				player::set_player_control(player::player_id(), true, 0);
				unk1::_0x81CBAE94390F9F89();
				return true;
			}
			break;
		
		case 22:
			if (!cam::is_screen_faded_out())
			{
				if (!cam::is_screen_fading_out())
				{
					cam::do_screen_fade_out(500);
				}
			}
			else
			{
				audio::stop_stream();
				if (audio::is_audio_scene_active("FBI_4_COLLISION_RAYFIRE"))
				{
					audio::stop_audio_scene("FBI_4_COLLISION_RAYFIRE");
				}
				audio::_0xDDC635D5B3262C56("SLOWMO_FIB4_TRUCK_SMASH");
				if (!entity::does_entity_exist(Local_2981))
				{
					Local_2981 = object::create_object(Local_2981.f_2, Local_2981.f_3, 1, true, false);
					entity::set_entity_rotation(Local_2981, Local_2981.f_12, 2, 1);
					entity::freeze_entity_position(Local_2981, true);
				}
				graphics::_0x03FC694AE06C5A20();
				audio::stop_stream();
				if (object::_0x52AF537A0C5B8AAD(uLocal_3804))
				{
					object::_0x5C29F698D404C5E1(uLocal_3804, 9);
					iLocal_3248 = 22;
				}
				gameplay::set_time_scale(1f);
				func_727(&(Local_3473[0 /*165*/]), 3);
				func_727(&(Local_3473[0 /*165*/]), 4);
				func_727(&(Local_3473[0 /*165*/]), 5);
				func_727(&(Local_3473[0 /*165*/]), 6);
				func_727(&(Local_3473[0 /*165*/]), 7);
				if (!ped::is_ped_injured(Local_1645))
				{
					entity::set_entity_health(Local_1645, 2);
				}
				if (!ped::is_ped_injured(Local_1665))
				{
					entity::set_entity_health(Local_1665, 2);
				}
				audio::set_horn_enabled(Local_1192, 0);
				if (!iLocal_3217)
				{
					vehicle::set_vehicle_damage(Local_1192, 0f, -1.5f, 2f, 1000f, 1000f, 1);
				}
				if (vehicle::is_playback_going_on_for_vehicle(Local_1192))
				{
					vehicle::skip_to_end_and_stop_playback_recorded_vehicle(Local_1192);
				}
				func_399(&Local_1192);
				entity::freeze_entity_position(Local_1192, true);
				vehicle::_0x1CF38D529D7441D9(Local_1192, true);
				vehicle::fix_vehicle_window(Local_1192, 2);
				vehicle::fix_vehicle_window(Local_1192, 3);
				vehicle::set_vehicle_doors_locked(Local_1192, 2);
				if (vehicle::is_playback_going_on_for_vehicle(Local_1207))
				{
					vehicle::skip_to_end_and_stop_playback_recorded_vehicle(Local_1207);
				}
				func_399(&Local_1207);
				vehicle::set_vehicle_doors_locked(Local_1207, 2);
				vehicle::set_vehicle_is_considered_by_player(Local_1207, 0);
				vehicle::set_vehicle_doors_locked(Local_1177, 2);
				ai::clear_ped_tasks_immediately(iLocal_3099[0]);
				entity::set_entity_coords(iLocal_3099[0], 908.1069f, -2371.983f, 29.5291f, 1, false, 0, 1);
				entity::set_entity_heading(iLocal_3099[0], 25.6402f);
				iLocal_3230 = 0;
				func_784();
				audio::stop_audio_scene("RURAL_BANK_HEIST_SETUP_HIJACK_SCENE");
				audio::stop_sound(iLocal_3258);
				cam::set_follow_vehicle_cam_view_mode(iLocal_3807);
				func_438(0, 1, -30f, 0f, 0, 1);
				unk1::_0x81CBAE94390F9F89();
				return true;
			}
			break;
	}
	return false;
}

bool func_825(int iParam0)//Position - 0x8321B
{
	if (cam::is_screen_faded_in())
	{
		if ((gameplay::get_game_timer() - Global_28) > iParam0)
		{
			Global_27 = gameplay::get_game_timer();
		}
		Global_28 = gameplay::get_game_timer();
		if ((gameplay::get_game_timer() - Global_27) > iParam0)
		{
			if (func_826())
			{
				Global_27 = gameplay::get_game_timer();
				return true;
			}
		}
	}
	return false;
}

bool func_826()//Position - 0x83265
{
	if (ui::is_pause_menu_active())
	{
		return false;
	}
	if (controls::is_control_just_pressed(0, 18) || controls::is_control_just_pressed(2, 18))
	{
		return true;
	}
	return false;
}

void func_827()//Position - 0x83297
{
	int iVar0;
	
	iVar0 = cam::get_follow_vehicle_cam_view_mode();
	if (iVar0 != 4)
	{
		iLocal_3807 = iVar0;
	}
}

void func_828()//Position - 0x832B0
{
	if (ui::does_blip_exist(Local_1192.f_2))
	{
		if (!ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1207))
		{
			if (func_765("cntry_god3", 0, 0))
			{
				ui::clear_this_print("cntry_god3");
			}
			ui::remove_blip(&(Local_1192.f_2));
			Local_1207.f_2 = func_829(Local_1207, 0, 0);
			if (!func_719("heat_getout"))
			{
				if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(iLocal_3099[0], 1), 1) < 20f)
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_getout", 7, 0, 0, 0))
					{
						func_716("heat_getout", 1);
					}
				}
			}
			if (!gameplay::is_bit_set(iLocal_3834, 0))
			{
				if (!func_627(&Local_3074, 0))
				{
					ui::clear_prints();
					func_436("cntry_god15", 7500, 1);
					gameplay::set_bit(&iLocal_3834, 0);
				}
			}
		}
	}
	else if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1207))
	{
		if (func_765("cntry_god15", 0, 0))
		{
			ui::clear_this_print("cntry_god15");
		}
		if (ui::does_blip_exist(Local_1207.f_2))
		{
			ui::remove_blip(&(Local_1207.f_2));
		}
		Local_1192.f_2 = func_829(Local_1192, 1, 0);
	}
}

int func_829(int iParam0, int iParam1, int iParam2)//Position - 0x833D1
{
	return func_408(iParam0, !iParam1, iParam2);
}

bool func_830(float fParam0)//Position - 0x833E4
{
	switch (iLocal_3248)
	{
		case 0:
			uLocal_3804 = object::_0xB48FCED898292E52(890.3647f, -2367.289f, 28.10582f, 10f, "DES_Smash2");
			if (object::_0x52AF537A0C5B8AAD(uLocal_3804))
			{
				object::_0x5C29F698D404C5E1(uLocal_3804, 4);
				iLocal_3248++;
			}
			break;
		
		case 1:
			if (object::_0x899BA936634A322E(uLocal_3804) == 5)
			{
				if (fParam0 > 1100f)
				{
					object::_0x5C29F698D404C5E1(uLocal_3804, 6);
					iLocal_3248++;
					return true;
				}
			}
			break;
		
		case 2:
			break;
		
		case 22:
			break;
	}
	return false;
}

void func_831()//Position - 0x8347D
{
	if (!iLocal_3211)
	{
		if (gameplay::get_distance_between_coords(entity::get_entity_coords(Local_1207, 1), entity::get_entity_coords(Local_1192, 1), 1) < 18f)
		{
			audio::play_sound_from_coord(-1, "Securicar_Horn", entity::get_entity_coords(Local_1192, 1), "FBI_04_HEAT_SOUNDS", 0, 0, 0);
			iLocal_3211 = 1;
		}
	}
	if (func_272(&iLocal_3315, 4000))
	{
		vehicle::start_vehicle_horn(Local_1192, 2500, 0, 0);
		iLocal_3315 = gameplay::get_game_timer();
	}
}

void func_832()//Position - 0x834E8
{
	if (iLocal_3225 < 1)
	{
		unk1::_0xAF66DCEE6609B148();
	}
	switch (iLocal_3225)
	{
		case 0:
			if (entity::does_entity_exist(iLocal_3099[1]))
			{
				if (!ped::is_ped_in_vehicle(iLocal_3099[1], Local_1207, 0))
				{
					if (func_593(iLocal_3099[1], 242628503, -2, 1))
					{
						ai::open_sequence_task(&iLocal_3465);
						ai::task_enter_vehicle(0, Local_1207, -1, -1, 2f, 1, 0);
						ai::close_sequence_task(iLocal_3465);
						ai::task_perform_sequence(iLocal_3099[1], iLocal_3465);
						ai::clear_sequence_task(&iLocal_3465);
					}
				}
			}
			if (vehicle::is_playback_going_on_for_vehicle(Local_1177))
			{
				vehicle::stop_playback_recorded_vehicle(Local_1177);
				iLocal_3226 = 0;
				iLocal_3245 = 0;
			}
			if (!func_719("park_truck"))
			{
				if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "park_truck", 7, 0, 0, 0))
				{
					func_716("park_truck", 1);
				}
			}
			func_715(&Local_3074, 906.2f, -2375.501f, 29.532f, 0.01f, 0.01f, 2f, 0, Local_1177, "cntry_god2", "cntry_god14", "cntry_god13", 1, 0, 1, -1);
			if (ui::does_blip_exist(Local_3074.f_5))
			{
				if (!func_719("cntry_help8"))
				{
					if (entity::is_entity_in_angled_area(player::player_ped_id(), 917.759f, -2375.988f, 29.409f, 896.07f, -2373.784f, 33.4f, 55f, 0, true, 0))
					{
						func_754("cntry_help8", -1);
						func_716("cntry_help8", 1);
					}
				}
				if (entity::is_entity_in_angled_area(player::player_ped_id(), 912.891f, -2376.258f, 29.409f, 900.659f, -2374.972f, 33.309f, 16.8f, 0, true, 0))
				{
					if (!func_719("stop_truck"))
					{
						if (!func_627(&Local_3074, 0))
						{
							if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "stop_truck", 7, 0, 0, 0))
							{
								func_716("stop_truck", 1);
							}
						}
					}
					if (ui::does_blip_exist(Local_3074.f_5))
					{
						ui::remove_blip(&(Local_3074.f_5));
					}
					Local_1177.f_6 = entity::get_entity_heading(Local_1177);
					if ((Local_1177.f_6 > 215f && Local_1177.f_6 < 305f) || (Local_1177.f_6 > 50f && Local_1177.f_6 < 140f))
					{
						if (entity::get_entity_speed(Local_1177) < 0.5f)
						{
							if (func_837("cntry_help8"))
							{
								ui::clear_help(1);
							}
							if (!func_627(&Local_3074, 0))
							{
								if (func_719("stop_truck"))
								{
									if (iLocal_3245 == 0)
									{
										iLocal_3245 = gameplay::get_game_timer();
									}
									if (func_272(&iLocal_3245, 500))
									{
										if (func_599(0, 1, 1, 0, 1))
										{
											func_611(&Local_3074, 1, 0);
											iLocal_3225++;
										}
									}
								}
							}
						}
						else
						{
							if (entity::get_entity_speed(Local_1177) > 5f)
							{
								func_836();
							}
							iLocal_3245 = 0;
						}
					}
					else
					{
						iLocal_3245 = 0;
						func_836();
						if (!func_719("cntry_help8"))
						{
							if (entity::get_entity_speed(Local_1177) < 2f)
							{
								if (iLocal_3226 == 0)
								{
									iLocal_3226 = gameplay::get_game_timer();
								}
								if (func_272(&iLocal_3226, 2000))
								{
									func_835("cntry_help8");
									func_716("cntry_help8", 1);
								}
							}
						}
						else if (!func_837("cntry_help8"))
						{
							if (entity::get_entity_speed(Local_1177) < 2f)
							{
								func_835("cntry_help8");
							}
						}
					}
				}
				else
				{
					entity::is_entity_at_coord(player::player_ped_id(), 906.2f, -2375.501f, 29.732f, 0.01f, 0.01f, 2f, true, true, 0);
					func_836();
					iLocal_3245 = 0;
				}
			}
			else
			{
				func_836();
				iLocal_3245 = 0;
				if (func_837("cntry_help8"))
				{
					ui::clear_help(1);
				}
			}
			break;
		
		case 1:
			audio::prepare_music_event("fbi4_PARK_AMBULANCE_OS");
			streaming::request_model(Local_1192.f_1);
			vehicle::set_vehicle_model_is_suppressed(Local_1192.f_1, true);
			streaming::request_model(Local_1645.f_1);
			ped::set_ped_model_is_suppressed(Local_1645.f_1, true);
			streaming::request_model(Local_2981.f_2);
			streaming::request_model(weapon::get_weapontype_model(joaat("weapon_combatmg")));
			weapon::request_weapon_asset(joaat("weapon_combatmg"), 31, 0);
			audio::load_stream("Truck_Crash_Stream", "FBI_04_HEAT_SOUNDS");
			func_726(&(Local_3473[0 /*165*/]), "HeatAud", "in_pos_2", 7, 0, 0, 0);
			unk1::_0x293220DA1B46CEBC(5f, 15f, 4);
			iLocal_3226 = gameplay::get_game_timer();
			iLocal_3225++;
			break;
		
		case 2:
			if (((((((streaming::has_model_loaded(Local_1192.f_1) && streaming::has_model_loaded(Local_1645.f_1)) && streaming::has_model_loaded(Local_2981.f_2)) && streaming::has_model_loaded(weapon::get_weapontype_model(joaat("weapon_combatmg")))) && weapon::has_weapon_asset_loaded(joaat("weapon_combatmg"))) && audio::load_stream("Truck_Crash_Stream", "FBI_04_HEAT_SOUNDS")) && audio::prepare_music_event("fbi4_PARK_AMBULANCE_OS")) && !func_627(&Local_3074, 0))
			{
				rope::activate_physics(Local_1177);
				iLocal_3225++;
			}
			break;
		
		case 3:
			if (func_833())
			{
				func_333(1, "Ram money truck", 0, 0, 0, 1);
				iLocal_1126 = 4;
			}
			break;
	}
}

bool func_833()//Position - 0x839BF
{
	if (func_825(1000))
	{
		iLocal_3227 = 22;
	}
	if (entity::does_entity_exist(Local_1192))
	{
		if (vehicle::is_vehicle_driveable(Local_1192, 0))
		{
		}
	}
	unk1::_0xAF66DCEE6609B148();
	switch (iLocal_3227)
	{
		case 0:
			if (audio::is_audio_scene_active("FBI_4_BLOCK_THE_STREET"))
			{
				audio::stop_audio_scene("FBI_4_BLOCK_THE_STREET");
			}
			audio::start_audio_scene("FBI_4_TRUCK_SMASH_MAIN");
			entity::set_entity_proofs(Local_1177, true, true, true, true, true, false, 0, false);
			vehicle::set_vehicle_doors_locked(Local_1207, 1);
			func_727(&(Local_3473[0 /*165*/]), 0);
			func_727(&(Local_3473[0 /*165*/]), 1);
			func_727(&(Local_3473[0 /*165*/]), 2);
			func_727(&(Local_3473[0 /*165*/]), 3);
			func_727(&(Local_3473[0 /*165*/]), 4);
			ped::set_ped_non_creation_area(770f, -1982.81f, 100f, 1045f, -2500f, -100f);
			vehicle::_display_distant_vehicles(0);
			gameplay::clear_area(922.4016f, -2156.801f, 29.4934f, 1000f, 1, 0, 0, false);
			iLocal_3455 = cam::create_cam_with_params("default_scripted_camera", 910.2145f, -2388.131f, 34.77703f, -2.897402f, 3E-06f, 13.47105f, 36.06252f, 0, 2);
			iLocal_3456 = cam::create_cam_with_params("default_scripted_camera", 910.2325f, -2388.203f, 33.27606f, -2.897402f, 3E-06f, 13.47105f, 34.06252f, 0, 2);
			func_442(&(Local_3473[0 /*165*/]), 0, player::player_ped_id(), "michael", 0, 1);
			vehicle::set_vehicle_fixed(Local_1207);
			entity::set_entity_coords(Local_1207, 1024.197f, -2376.524f, 29.5306f, 1, false, 0, 1);
			entity::set_entity_heading(Local_1207, 85.759f);
			streaming::set_model_as_no_longer_needed(Local_1207.f_1);
			ped::set_ped_into_vehicle(iLocal_3099[1], Local_1207, -1);
			func_442(&(Local_3473[0 /*165*/]), 1, iLocal_3099[1], "franklin", 0, 1);
			func_681(&iLocal_3099, 1);
			func_446(&iLocal_3099, 1, 0, 0);
			func_655(player::player_ped_id(), -1);
			ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
			entity::set_entity_coords(Local_1177, vLocal_3412, 1, false, 0, 1);
			vehicle::set_vehicle_on_ground_properly(Local_1177);
			rope::activate_physics(Local_1177);
			ped::set_blocking_of_non_temporary_events(iLocal_3099[0], true);
			ai::task_look_at_coord(iLocal_3099[0], 907.64f, -2373.35f, 31.5f, 5000, 0, 2);
			Local_1192 = vehicle::create_vehicle(Local_1192.f_1, 922.4016f, -2156.801f, 29.4934f, 174.54f, 1, true);
			vehicle::set_vehicle_has_strong_axles(Local_1192, true);
			vehicle::set_vehicle_doors_locked(Local_1192, 3);
			vehicle::set_vehicle_automatically_attaches(Local_1192, false, 0);
			Local_1192.f_2 = func_829(Local_1192, 1, 0);
			audio::_0x153973AB99FE8980(Local_1192, "FBI_4_STOCKADE_GROUP", 0f);
			vehicle::_0x97CE68CB032583F0(Local_1192, 1);
			Local_1645 = ped::create_ped_inside_vehicle(Local_1192, 26, Local_1645.f_1, -1, 1, true);
			ped::set_ped_dies_when_injured(Local_1645, true);
			audio::disable_ped_pain_audio(Local_1645, 1);
			ped::set_blocking_of_non_temporary_events(Local_1645, true);
			func_442(&(Local_3473[0 /*165*/]), 6, Local_1645, "AGENT1", 0, 1);
			Local_1665 = ped::create_ped_inside_vehicle(Local_1192, 26, Local_1665.f_1, 0, 1, true);
			ped::set_ped_dies_when_injured(Local_1665, true);
			audio::disable_ped_pain_audio(Local_1665, 1);
			ped::set_blocking_of_non_temporary_events(Local_1665, true);
			func_442(&(Local_3473[0 /*165*/]), 7, Local_1665, "AGENT2", 0, 1);
			vehicle::start_playback_recorded_vehicle(Local_1192, 2, "lkcountry", 1);
			vehicle::skip_time_in_playback_recorded_vehicle(Local_1192, 7500f);
			vehicle::_0x1F2E4E06DEA8992B(Local_1192, 1);
			iLocal_3457 = cam::create_cam("default_scripted_camera", false);
			cam::attach_cam_to_entity(iLocal_3457, Local_1192, 2.18f, -0.3f, 0.32f, 1);
			cam::point_cam_at_entity(iLocal_3457, Local_1192, 1.4f, 8f, 0.6f, 1);
			cam::set_cam_fov(iLocal_3457, 50f);
			iLocal_3458 = cam::create_cam("default_scripted_camera", false);
			cam::attach_cam_to_entity(iLocal_3458, Local_1192, 2.21f, -0.8f, 1.63f, 1);
			cam::point_cam_at_entity(iLocal_3458, Local_1192, -0.8f, 8f, 0.7f, 1);
			cam::set_cam_fov(iLocal_3458, 35f);
			iLocal_3459 = cam::create_cam("default_scripted_camera", false);
			cam::attach_cam_to_entity(iLocal_3459, Local_1192, 1.58f, 5.83f, 0.78f, 1);
			cam::point_cam_at_entity(iLocal_3459, Local_1192, -1.2f, 0.2f, 1.1f, 1);
			cam::set_cam_fov(iLocal_3459, 32f);
			iLocal_3462 = cam::create_cam("default_scripted_camera", false);
			cam::attach_cam_to_entity(iLocal_3462, Local_1192, 0.82f, 4.85f, 1.43f, 1);
			cam::point_cam_at_entity(iLocal_3462, Local_1192, -0.6f, -0.2f, 1.4f, 1);
			cam::set_cam_fov(iLocal_3462, 32f);
			iLocal_3460 = cam::create_cam("default_scripted_camera", false);
			cam::attach_cam_to_entity(iLocal_3460, Local_1207, -0.21f, 0.75f, 1.35f, 1);
			cam::point_cam_at_entity(iLocal_3460, Local_1207, -3.1f, 20f, -1.3f, 1);
			cam::set_cam_fov(iLocal_3460, 45f);
			iLocal_3461 = cam::create_cam("default_scripted_camera", false);
			cam::attach_cam_to_entity(iLocal_3461, Local_1207, -0.21f, 0.8f, 1.35f, 1);
			cam::point_cam_at_entity(iLocal_3461, Local_1207, -3.1f, 20f, -1.3f, 1);
			cam::set_cam_fov(iLocal_3461, 45f);
			iLocal_3806 = streaming::_0x219C7B8D53E429FD(905.92f, -2367.47f, 30.54f, 20f, 1, 127);
			vLocal_3415 = { 892.138f, -2368.97f, 30.939f };
			vLocal_3418 = { 0f, 0f, 0f };
			cam::set_cam_active(iLocal_3457, true);
			cam::shake_cam(iLocal_3457, "ROAD_VIBRATION_SHAKE", 2.5f);
			iLocal_3464 = cam::create_camera(964613260, 1);
			cam::play_cam_anim(iLocal_3464, "fbi4_garagetruck_block_cam", "missfbi4", vLocal_3415, vLocal_3418, 0, 2);
			cam::render_script_cams(true, false, 3000, 1, 0, 0);
			iLocal_3226 = gameplay::get_game_timer();
			audio::trigger_music_event("fbi4_PARK_AMBULANCE_OS");
			audio::_0x153973AB99FE8980(Local_1207, "FBI_4_TOWTRUCK_GROUP", 0f);
			unk1::_0x48621C9FCA3EBD28(4);
			iLocal_3227++;
			break;
		
		case 1:
			if (cam::get_cam_anim_current_phase(iLocal_3464) >= 1f)
			{
				cam::set_cam_active(iLocal_3464, false);
				graphics::_0xD39D13C9FEBF0511(true);
				cam::set_cam_active(iLocal_3457, true);
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3227++;
			}
			break;
		
		case 2:
			if (func_272(&iLocal_3226, 2000))
			{
				cam::set_cam_active(iLocal_3458, false);
				cam::set_cam_active(iLocal_3457, false);
				cam::set_cam_active(iLocal_3459, true);
				cam::set_cam_active_with_interp(iLocal_3462, iLocal_3459, 3000, 0, 1);
				cam::shake_cam(iLocal_3462, "ROAD_VIBRATION_SHAKE", 2.5f);
				func_726(&(Local_3473[0 /*165*/]), "heataud", "amb_cut_1", 7, 0, 0, 0);
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3227++;
			}
			break;
		
		case 3:
			if (func_272(&iLocal_3226, 2000))
			{
				cam::set_cam_active(iLocal_3462, false);
				cam::set_cam_active(iLocal_3459, false);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1192, 1000f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1192, 1);
				vehicle::set_vehicle_lights(Local_1207, 2);
				vehicle::start_playback_recorded_vehicle(Local_1207, 15, "lkcountry", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1207, 1500f);
				vLocal_3415 = { 924.627f, -2362f, 29.516f };
				vLocal_3418 = { 0f, 0f, 0f };
				cam::play_cam_anim(iLocal_3464, "fbi4_securityvan_blocked_cam", "missfbi4", vLocal_3415, vLocal_3418, 0, 2);
				cam::set_cam_active(iLocal_3464, true);
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3227++;
			}
			break;
		
		case 4:
			if (func_272(&iLocal_3226, 1000))
			{
				func_602();
				audio::trigger_music_event("fbi4_PRE_TRUCK_RAM_MA");
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3227++;
			}
			break;
		
		case 5:
			if (!audio::_0xA097AB275061FB21())
			{
				audio::prepare_music_event("FBI4_RAM_OS");
			}
			if (cam::get_cam_anim_current_phase(iLocal_3464) >= 1f)
			{
				cam::set_cam_active(iLocal_3464, false);
				gameplay::clear_area(1030.147f, -2376.798f, 29.4686f, 150f, 1, 0, 0, false);
				entity::set_entity_coords(Local_1192, 904.981f, -2367.179f, 30.15f, 1, false, 0, 1);
				entity::set_entity_heading(Local_1192, 175.2936f);
				if (vehicle::is_playback_going_on_for_vehicle(Local_1207))
				{
					vehicle::stop_playback_recorded_vehicle(Local_1207);
				}
				entity::set_entity_coords(Local_1207, 1030.147f, -2376.798f, 29.4686f, 1, false, 0, 1);
				entity::set_entity_heading(Local_1207, 86.1538f);
				vehicle::start_playback_recorded_vehicle(Local_1207, 12, "lkcountry", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1207, 4500f);
				vehicle::set_playback_speed(Local_1207, 1f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1207, 1);
				cam::destroy_cam(iLocal_3464, 0);
				vLocal_3415 = { 0f, 0f, 0f };
				vLocal_3418 = { 0f, 0f, 0f };
				iLocal_3233 = ped::create_synchronized_scene(vLocal_3415, vLocal_3418, 2);
				if (vehicle::is_vehicle_driveable(Local_1207, 0))
				{
					ped::attach_synchronized_scene_to_entity(iLocal_3233, Local_1207, 0);
				}
				iLocal_3464 = cam::create_cam("DEFAULT_ANIMATED_CAMERA", false);
				cam::play_synchronized_cam_anim(iLocal_3464, iLocal_3233, "fbi4_franklin_truck_cam", "missfbi4");
				cam::set_cam_active(iLocal_3464, true);
				ped::_0x2208438012482A1A(player::player_ped_id(), 1, 0);
				iLocal_3226 = gameplay::get_game_timer();
				func_602();
				func_834(&(Local_3473[0 /*165*/]), "heataud", "amb_cut_2", 7, 0, 0);
				audio::trigger_music_event("FBI4_RAM_OS");
				audio::_0x18EB48CFC41F2EA0(Local_1207, 0f);
				audio::start_audio_scene("FBI_4_PICKUP_TRUCK_INT");
				iLocal_3227++;
			}
			break;
		
		case 6:
			if (vehicle::get_time_position_in_recording(Local_1207) + 500f) > vehicle::get_total_duration_of_vehicle_recording(12, "lkcountry")
			{
				if (audio::is_audio_scene_active("FBI_4_TRUCK_SMASH_MAIN"))
				{
					audio::stop_audio_scene("FBI_4_TRUCK_SMASH_MAIN");
				}
				graphics::_0x03FC694AE06C5A20();
				vehicle::_0x97CE68CB032583F0(Local_1192, 0);
				iLocal_3807 = cam::get_follow_vehicle_cam_view_mode();
				cam::set_follow_vehicle_cam_view_mode(4);
				streaming::_0x1EE7D8DF4425F053(iLocal_3806);
				vehicle::_display_distant_vehicles(1);
				iLocal_3246 = gameplay::get_game_timer();
				unk1::_0x81CBAE94390F9F89();
				func_569(0, 1, 0, 0f, 0f, 3000, 0, 1);
				func_436("cntry_god3", 7500, 1);
				return true;
			}
			break;
		
		case 22:
			if (!cam::is_screen_faded_out())
			{
				if (!cam::is_screen_fading_out())
				{
					cam::do_screen_fade_out(500);
				}
			}
			else
			{
				unk1::_0x13B350B8AD0EEE10();
				if (audio::is_audio_scene_active("FBI_4_TRUCK_SMASH_MAIN"))
				{
					audio::stop_audio_scene("FBI_4_TRUCK_SMASH_MAIN");
				}
				graphics::_0x03FC694AE06C5A20();
				vehicle::_0x97CE68CB032583F0(Local_1192, 0);
				vehicle::request_vehicle_recording(12, "lkcountry");
				while (!vehicle::has_vehicle_recording_been_loaded(12, "lkcountry"))
				{
					system::wait(0);
				}
				streaming::_0x1EE7D8DF4425F053(iLocal_3806);
				vehicle::_display_distant_vehicles(1);
				if (vehicle::is_playback_going_on_for_vehicle(Local_1192))
				{
					vehicle::skip_to_end_and_stop_playback_recorded_vehicle(Local_1192);
				}
				entity::set_entity_coords(Local_1192, 904.981f, -2367.179f, 30.15f, 1, false, 0, 1);
				entity::set_entity_heading(Local_1192, 175.2936f);
				if (vehicle::is_playback_going_on_for_vehicle(Local_1207))
				{
					vehicle::stop_playback_recorded_vehicle(Local_1207);
				}
				entity::set_entity_coords(Local_1207, 1030.147f, -2376.798f, 29.4686f, 1, false, 0, 1);
				entity::set_entity_heading(Local_1207, 86.1538f);
				vehicle::set_vehicle_lights(Local_1207, 2);
				vehicle::start_playback_recorded_vehicle(Local_1207, 12, "lkcountry", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1207, 6500f);
				vehicle::set_playback_speed(Local_1207, 1f);
				iLocal_3807 = cam::get_follow_vehicle_cam_view_mode();
				cam::set_follow_vehicle_cam_view_mode(4);
				audio::_0x18EB48CFC41F2EA0(Local_1207, 0f);
				if (!audio::is_audio_scene_active("FBI_4_PICKUP_TRUCK_INT"))
				{
					audio::start_audio_scene("FBI_4_PICKUP_TRUCK_INT");
				}
				iLocal_3246 = gameplay::get_game_timer();
				func_438(1, 1, 0f, 0f, 0, 1);
				func_436("cntry_god3", 7500, 1);
				unk1::_0x81CBAE94390F9F89();
				return true;
			}
			break;
	}
	return false;
}

void func_834(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5)//Position - 0x84481
{
	func_700(uParam0, 145, sParam1, iParam4, iParam5, 0);
	if (iParam3 > 7)
	{
		if (iParam3 < 12)
		{
			iParam3 = 7;
		}
	}
	gameplay::set_bit(&Global_14578, 0);
	Global_15715 = iParam3;
	StringCopy(&Global_15702, sParam2, 24);
}

void func_835(char* sParam0)//Position - 0x844BC
{
	ui::_set_text_component_format(sParam0);
	ui::_display_help_text_from_string_label(0, 1, true, -1);
}

void func_836()//Position - 0x844D2
{
	if (!func_719("park_truck"))
	{
		if (func_719("stop_truck"))
		{
			if (!func_627(&Local_3074, 0))
			{
				if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "park_truck", 7, 0, 0, 0))
				{
					func_716("park_truck", 1);
				}
			}
		}
	}
	if (!func_719("heat_tofar0"))
	{
		if (!func_627(&Local_3074, 0))
		{
			if (entity::does_entity_exist(iLocal_3099[1]))
			{
				if (gameplay::get_distance_between_coords(entity::get_entity_coords(iLocal_3099[1], 1), 1016.747f, -2375.797f, 29.5309f, 1) < 55f && gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(iLocal_3099[1], 1), 1) < 15f)
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_tofar0", 6, 0, 0, 0))
					{
						func_716("heat_tofar0", 1);
					}
				}
			}
		}
	}
}

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

void func_838()//Position - 0x845CE
{
	int iVar0;
	vector3 vVar1;
	
	switch (iLocal_3224)
	{
		case 0:
			if (func_844(&Local_3143, iLocal_3459, 2, 0, 1148829696, 1148829696, 0, 0, 0, 2))
			{
				if (Local_3143.f_18)
				{
					cam::render_script_cams(true, false, 3000, 1, 0, 0);
					cam::set_cam_active(iLocal_3459, true);
					if (!Local_3143.f_19)
					{
						if (func_446(&iLocal_3099, 0, 0, 0))
						{
							Local_3143.f_19 = 1;
							entity::set_entity_load_collision_flag(player::player_ped_id(), false);
							entity::_0x3910051CCECDB00C(player::player_ped_id(), true);
							entity::freeze_entity_position(player::player_ped_id(), false);
							ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
							if (entity::does_entity_exist(iLocal_3099[0]))
							{
								ped::delete_ped(&(iLocal_3099[0]));
							}
							streaming::set_model_as_no_longer_needed(func_93(0));
							if (entity::does_entity_exist(Local_1177))
							{
								entity::set_vehicle_as_no_longer_needed(&Local_1177);
							}
							streaming::set_model_as_no_longer_needed(Local_1177.f_1);
							if (entity::does_entity_exist(Local_1479))
							{
								vehicle::delete_vehicle(&Local_1479);
							}
							streaming::set_model_as_no_longer_needed(Local_1479.f_1);
							vLocal_2957.x = object::create_object(vLocal_2957.y, entity::get_offset_from_entity_in_world_coords(player::player_ped_id(), 0f, 0f, 40f), 1, true, false);
							entity::attach_entity_to_entity(vLocal_2957.x, player::player_ped_id(), ped::get_ped_bone_index(player::player_ped_id(), 28422), 0f, 0f, 0f, 0f, 0f, 0f, 0, 0, 0, 0, 2, 1);
							entity::set_entity_heading(player::player_ped_id(), 137.22f);
							ai::task_play_anim(player::player_ped_id(), "missheat", "binoculars_loop", 1000f, -8f, -1, 1, 0f, 0, 0, 0);
						}
					}
				}
				else
				{
					cam::render_script_cams(false, false, 3000, 1, 0, 0);
				}
			}
			else
			{
				streaming::_0x1EE7D8DF4425F053(iLocal_3806);
				iLocal_3806 = streaming::_0x219C7B8D53E429FD(740.894f, -2475.923f, 19.3226f, 50f, 1, 127);
				func_655(player::player_ped_id(), -1);
				func_599(0, 1, 1, 0, 1);
				func_727(&(Local_3473[0 /*165*/]), 1);
				func_442(&(Local_3473[0 /*165*/]), 0, 0, "michael", 0, 1);
				cam::set_cam_active_with_interp(iLocal_3460, iLocal_3459, 2500, 0, 1);
				cam::render_script_cams(true, false, 3000, 1, 0, 0);
				iLocal_3224++;
			}
			break;
		
		case 1:
			if (!cam::is_cam_interpolating(iLocal_3460))
			{
				func_841();
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3224++;
			}
			break;
		
		case 2:
			if (func_841())
			{
				streaming::_0x1EE7D8DF4425F053(iLocal_3806);
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3224++;
			}
			break;
		
		case 3:
			if (cam::is_screen_faded_in())
			{
				if (func_726(&(Local_3473[0 /*165*/]), "heatAUD", "van_cut_1", 7, 0, 0, 0))
				{
					iLocal_3224++;
				}
			}
			break;
		
		case 4:
			if (((((((((((((((((((((streaming::has_model_loaded(Local_1177.f_1) && streaming::has_model_loaded(Local_1207.f_1)) && streaming::has_model_loaded(func_93(0))) && streaming::has_model_loaded(func_93(1))) && streaming::has_model_loaded(Local_2933.f_2)) && vehicle::has_vehicle_recording_been_loaded(2, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(3, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(4, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(5, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(10, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(11, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(12, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(14, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(15, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(16, "lkcountry")) && streaming::has_anim_dict_loaded("missfbi4")) && streaming::has_anim_dict_loaded("misssagrab")) && ai::get_is_waypoint_recording_loaded("heat1")) && ai::get_is_waypoint_recording_loaded("heat2")) && ai::get_is_waypoint_recording_loaded("heat3")) && audio::request_ambient_audio_bank("SCRIPT\FBI_04_HEAT_02", 0)) && audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false))
			{
				vehicle::set_all_vehicle_generators_active_in_area(945.8f, -2080.8f, 100f, 1015.3f, -2035.2f, -100f, false, 1);
				gameplay::clear_area(Local_1177.f_3, 50f, 1, 0, 0, false);
				iLocal_3806 = streaming::_0x219C7B8D53E429FD(937.2f, -2080.8f, 30f, 20f, 1, 127);
				Local_1177 = vehicle::create_vehicle(Local_1177.f_1, Local_1177.f_3, Local_1177.f_6, 1, true);
				vehicle::set_vehicle_has_strong_axles(Local_1177, true);
				vehicle::set_vehicle_automatically_attaches(Local_1177, false, 0);
				vehicle::set_vehicle_on_ground_properly(Local_1177);
				vehicle::start_playback_recorded_vehicle(Local_1177, 11, "lkcountry", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1177, 5200f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1177, 1);
				vehicle::set_playback_speed(Local_1177, 0f);
				func_400(Local_1177, 0);
				func_437(&(iLocal_3099[0]), 0, Local_1177, -1, 0, 0, 0);
				func_324(iLocal_3099[0]);
				func_252(iLocal_3099[0], 14, 112, 1, -1, 0, 0, 0, -1, -1, -1, 0);
				func_320(iLocal_3099[0], 0);
				func_319(&(iLocal_3099[0]), 1);
				func_442(&(Local_3473[0 /*165*/]), 0, iLocal_3099[0], "michael", 0, 1);
				Local_1207 = vehicle::create_vehicle(Local_1207.f_1, 1024.197f, -2376.524f, 29.5306f, 85.759f, 1, true);
				vehicle::set_vehicle_colours(Local_1207, 0, 0);
				vehicle::set_vehicle_has_strong_axles(Local_1207, true);
				vehicle::set_vehicle_engine_on(Local_1207, true, 1, 0);
				vehicle::set_vehicle_doors_locked(Local_1207, 3);
				vehicle::_0x2B6747FAA9DB9D6B(Local_1207, 1);
				func_400(Local_1207, 1);
				func_437(&(iLocal_3099[1]), 1, Local_1207, -1, 0, 0, 0);
				func_324(iLocal_3099[1]);
				func_252(iLocal_3099[1], 14, 158, 1, -1, 0, 0, 0, -1, -1, -1, 0);
				func_442(&(Local_3473[0 /*165*/]), 1, iLocal_3099[1], "franklin", 0, 1);
				ped::set_blocking_of_non_temporary_events(iLocal_3099[1], true);
				if (audio::is_audio_scene_active("FBI_4_CUTSCENE_BINOCULARS"))
				{
					audio::stop_audio_scene("FBI_4_CUTSCENE_BINOCULARS");
				}
				iLocal_3224++;
			}
			break;
		
		case 5:
			func_681(&iLocal_3099, 0);
			func_839();
			break;
		
		case 6:
			if (func_657(&Local_3143, 2, 0, 1148829696, 1148829696, 0, 0, 0, 0, 0))
			{
				if (Local_3143.f_18)
				{
					if (!Local_3143.f_19)
					{
						if (func_446(&iLocal_3099, 1, 1, 0))
						{
							ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
							Local_3143.f_19 = 1;
						}
					}
				}
				if (!iLocal_3199)
				{
					if (streaming::is_player_switch_in_progress())
					{
						iVar0 = streaming::get_player_switch_state();
						if (iVar0 == 9)
						{
							if (vehicle::is_playback_going_on_for_vehicle(Local_1177))
							{
								vehicle::set_playback_speed(Local_1177, 1f);
								vehicle::skip_time_in_playback_recorded_vehicle(Local_1177, (5200f - vehicle::get_time_position_in_recording(Local_1177)));
								vehicle::_0x1F2E4E06DEA8992B(Local_1177, 1);
								iLocal_3199 = 1;
							}
							else
							{
								vehicle::start_playback_recorded_vehicle(Local_1177, 11, "lkcountry", 1);
								vehicle::skip_time_in_playback_recorded_vehicle(Local_1177, 5200f);
								vehicle::_0x1F2E4E06DEA8992B(Local_1177, 1);
								iLocal_3199 = 1;
							}
						}
					}
				}
				if (func_272(&iLocal_3226, 2500))
				{
					gameplay::clear_area(Local_1177.f_3, 100f, 1, 0, 0, false);
				}
			}
			else
			{
				streaming::_0x1EE7D8DF4425F053(iLocal_3806);
				entity::set_entity_load_collision_flag(Local_1177, false);
				func_655(player::player_ped_id(), -1);
				if (entity::does_entity_exist(vLocal_2957.x))
				{
					entity::detach_entity(vLocal_2957.x, 1, true);
					object::delete_object(&vLocal_2957);
				}
				streaming::set_model_as_no_longer_needed(vLocal_2957.y);
				if (!ped::is_ped_injured(iLocal_3099[iLocal_3099.f_5]))
				{
					entity::freeze_entity_position(iLocal_3099[iLocal_3099.f_5], true);
				}
				if (!ped::is_ped_injured(Local_1645))
				{
					ped::delete_ped(&Local_1645);
				}
				if (!ped::is_ped_injured(Local_1665))
				{
					ped::delete_ped(&Local_1665);
				}
				if (!ped::is_ped_injured(iLocal_3466))
				{
					func_727(&(Local_3473[0 /*165*/]), 1);
					ped::delete_ped(&iLocal_3466);
				}
				if (vehicle::is_vehicle_driveable(Local_1192, 0))
				{
					if (vehicle::is_playback_going_on_for_vehicle(Local_1192))
					{
						vehicle::stop_playback_recorded_vehicle(Local_1192);
					}
					vehicle::delete_vehicle(&Local_1192);
				}
				if (vehicle::is_playback_going_on_for_vehicle(Local_1177))
				{
					vVar1 = { entity::get_entity_velocity(Local_1177) };
					vVar1 = { vVar1 * Vector(1.2f, 1.2f, 1.2f) };
					vehicle::stop_playback_recorded_vehicle(Local_1177);
					entity::set_entity_velocity(Local_1177, vVar1);
				}
				func_727(&(Local_3473[0 /*165*/]), 0);
				func_442(&(Local_3473[0 /*165*/]), 0, player::player_ped_id(), "michael", 0, 1);
				func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_move", 9, 0, 0, 0);
				audio::start_audio_scene("FBI_4_BLOCK_THE_STREET");
				iLocal_1126 = 3;
			}
			break;
	}
}

void func_839()//Position - 0x84DA9
{
	ui::clear_help(1);
	ui::clear_prints();
	func_689(&iLocal_3099, 0, 0);
	func_544(&iLocal_3099, 1, 0);
	func_840();
	entity::set_entity_load_collision_flag(Local_1177, true);
	iLocal_3224++;
}

bool func_840()//Position - 0x84DE1
{
	Local_3143.f_12 = iLocal_3099[0];
	return true;
}

bool func_841()//Position - 0x84DF5
{
	int iVar0;
	float fVar1;
	
	iVar0 = 0;
	func_843();
	if (func_825(1000))
	{
		iLocal_3239 = 22;
	}
	if (vehicle::is_vehicle_driveable(Local_1192, 0))
	{
		if (vehicle::is_playback_going_on_for_vehicle(Local_1192))
		{
			fVar1 = vehicle::get_time_position_in_recording(Local_1192);
		}
	}
	graphics::_set_2d_layer(1);
	switch (iLocal_3239)
	{
		case 0:
			if ((streaming::has_model_loaded(Local_1192.f_1) && streaming::has_model_loaded(Local_1645.f_1)) && streaming::has_model_loaded(Local_1494[0 /*15*/].f_1))
			{
				func_842(1, 1);
				pathfind::set_roads_in_area(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, false, 1);
				pathfind::set_ped_paths_in_area(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, false, 0);
				ped::add_scenario_blocking_area(798.06f, -1982.81f, 100f, 1372.22f, -2752.3f, -100f, 0, 1, 1, 1);
				vehicle::set_all_vehicle_generators_active_in_area(935.9f, -2390.9f, 100f, 899.3f, -2319.6f, -100f, false, 1);
				vehicle::set_all_vehicle_generators_active_in_area(906.8f, -2322f, 100f, 844f, -2365.1f, -100f, false, 1);
				pathfind::set_roads_in_area(1034f, -2873.8f, 100f, 164.1f, -1944.8f, -100f, false, 1);
				gameplay::clear_area(790.83f, -2330.06f, 62.67f, 1000f, 1, 0, 0, false);
				Local_1192 = vehicle::create_vehicle(Local_1192.f_1, Local_1192.f_3, Local_1192.f_6, 1, true);
				vehicle::set_vehicle_has_strong_axles(Local_1192, true);
				entity::set_entity_proofs(Local_1192, true, true, true, true, true, false, 0, false);
				vehicle::set_vehicle_automatically_attaches(Local_1192, false, 0);
				vehicle::start_playback_recorded_vehicle(Local_1192, 1, "lkcountry", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1192, 6000f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1192, 1);
				Local_1645 = ped::create_ped_inside_vehicle(Local_1192, 26, Local_1645.f_1, 0, 1, true);
				ped::set_ped_dies_when_injured(Local_1645, true);
				ped::_0x733C87D4CE22BEA2(Local_1645);
				ped::set_blocking_of_non_temporary_events(Local_1645, true);
				Local_1665 = ped::create_ped_inside_vehicle(Local_1192, 26, Local_1665.f_1, -1, 1, true);
				ped::set_ped_dies_when_injured(Local_1665, true);
				ped::_0x733C87D4CE22BEA2(Local_1665);
				ped::set_blocking_of_non_temporary_events(Local_1665, true);
				Local_1494[0 /*15*/] = vehicle::create_vehicle(Local_1494[0 /*15*/].f_1, Local_1494[0 /*15*/].f_3, 0f, 1, true);
				vehicle::start_playback_recorded_vehicle(Local_1494[0 /*15*/], Local_1494[0 /*15*/].f_13, "lkheat", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[0 /*15*/], 7000f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1494[0 /*15*/], 1);
				Local_1494[1 /*15*/] = vehicle::create_vehicle(Local_1494[1 /*15*/].f_1, Local_1494[1 /*15*/].f_3, 0f, 1, true);
				vehicle::start_playback_recorded_vehicle(Local_1494[1 /*15*/], Local_1494[1 /*15*/].f_13, "lkheat", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[1 /*15*/], 7000f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1494[1 /*15*/], 1);
				Local_1494[2 /*15*/] = vehicle::create_vehicle(Local_1494[2 /*15*/].f_1, Local_1494[2 /*15*/].f_3, 0f, 1, true);
				vehicle::start_playback_recorded_vehicle(Local_1494[2 /*15*/], Local_1494[2 /*15*/].f_13, "lkheat", 1);
				vehicle::_0x1F2E4E06DEA8992B(Local_1494[2 /*15*/], 1);
				Local_1494[3 /*15*/] = vehicle::create_vehicle(Local_1494[3 /*15*/].f_1, Local_1494[3 /*15*/].f_3, 0f, 1, true);
				vehicle::start_playback_recorded_vehicle(Local_1494[3 /*15*/], Local_1494[3 /*15*/].f_13, "lkheat", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[3 /*15*/], 7000f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1494[3 /*15*/], 1);
				Local_1494[7 /*15*/] = vehicle::create_vehicle(Local_1494[7 /*15*/].f_1, Local_1494[7 /*15*/].f_3, 0f, 1, true);
				vehicle::start_playback_recorded_vehicle(Local_1494[7 /*15*/], Local_1494[7 /*15*/].f_13, "lkheat", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[7 /*15*/], 4200f);
				iLocal_3455 = cam::create_cam_with_params("default_scripted_camera", 768.6289f, -2357.275f, 57.67293f, -5.133545f, 0.001094f, 153.9442f, 28f, 0, 2);
				iLocal_3456 = cam::create_cam_with_params("default_scripted_camera", 768.7133f, -2356.751f, 57.85367f, -18.86613f, -0.410374f, 158.9424f, 28f, 0, 2);
				iLocal_3457 = cam::create_cam_with_params("default_scripted_camera", 768.7133f, -2356.751f, 57.85367f, -18.86613f, -0.410374f, 158.9424f, 28f, 0, 2);
				iLocal_3458 = cam::create_cam_with_params("default_scripted_camera", 765.1454f, -2378.904f, 50.21748f, -13.95837f, 0f, 172.8386f, 22.25109f, 0, 2);
				iLocal_3461 = cam::create_cam_with_params("default_scripted_camera", 765.1417f, -2378.912f, 50.21524f, -25.08031f, -0.25713f, 167.9347f, 20.2085f, 0, 2);
				iLocal_3459 = cam::create_cam_with_params("default_scripted_camera", 757.3936f, -2407.696f, 20.08319f, 3.599488f, 0.001119f, 156.8176f, 36.71302f, 0, 2);
				iLocal_3460 = cam::create_cam_with_params("default_scripted_camera", 757.8994f, -2406.809f, 20.13409f, 4.586555f, 0f, 158.101f, 36.71302f, 0, 2);
				graphics::draw_scaleform_movie(iLocal_3805, 0.5f, 0.5f, 1f, 1f, 255, 255, 255, 0, 0);
				iLocal_3189 = true;
				cam::set_cam_active(iLocal_3455, true);
				cam::set_cam_active_with_interp(iLocal_3456, iLocal_3455, 5500, 0, 1);
				graphics::_0xD39D13C9FEBF0511(true);
				cam::shake_cam(iLocal_3458, "HAND_SHAKE", 1f);
				cam::render_script_cams(true, false, 3000, 1, 0, 0);
				iLocal_3226 = gameplay::get_game_timer();
				audio::start_audio_scene("FBI_4_CUTSCENE_BINOCULARS");
				streaming::request_model(func_93(0));
				streaming::request_model(func_93(1));
				streaming::request_model(Local_1177.f_1);
				vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
				streaming::request_model(Local_1207.f_1);
				vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
				streaming::request_model(Local_2933.f_2);
				vehicle::request_vehicle_recording(2, "lkcountry");
				vehicle::request_vehicle_recording(3, "lkcountry");
				vehicle::request_vehicle_recording(4, "lkcountry");
				vehicle::request_vehicle_recording(5, "lkcountry");
				vehicle::request_vehicle_recording(10, "lkcountry");
				vehicle::request_vehicle_recording(11, "lkcountry");
				vehicle::request_vehicle_recording(12, "lkcountry");
				vehicle::request_vehicle_recording(14, "lkcountry");
				vehicle::request_vehicle_recording(15, "lkcountry");
				vehicle::request_vehicle_recording(16, "lkcountry");
				streaming::request_anim_dict("missfbi4");
				streaming::request_anim_dict("misssagrab");
				ai::request_waypoint_recording("heat1");
				ai::request_waypoint_recording("heat2");
				ai::request_waypoint_recording("heat3");
				audio::request_ambient_audio_bank("SCRIPT\FBI_04_HEAT_02", 0);
				audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false);
				func_726(&(Local_3473[0 /*165*/]), "HeatAud", "heat_looks", 7, 0, 0, 0);
				iLocal_3239++;
			}
			break;
		
		case 1:
			if (!cam::is_cam_interpolating(iLocal_3456))
			{
				cam::set_cam_active(iLocal_3455, false);
				cam::set_cam_active(iLocal_3456, false);
				Local_1494[4 /*15*/] = vehicle::create_vehicle(Local_1494[4 /*15*/].f_1, Local_1494[4 /*15*/].f_3, 0f, 1, true);
				vehicle::start_playback_recorded_vehicle(Local_1494[4 /*15*/], Local_1494[0 /*15*/].f_13, "lkheat", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[4 /*15*/], 3000f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1494[4 /*15*/], 1);
				Local_1494[5 /*15*/] = vehicle::create_vehicle(Local_1494[5 /*15*/].f_1, Local_1494[5 /*15*/].f_3, 0f, 1, true);
				vehicle::start_playback_recorded_vehicle(Local_1494[5 /*15*/], Local_1494[5 /*15*/].f_13, "lkheat", 1);
				vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[5 /*15*/], 5250f);
				vehicle::_0x1F2E4E06DEA8992B(Local_1494[5 /*15*/], 1);
				Local_1494[6 /*15*/] = vehicle::create_vehicle(Local_1494[6 /*15*/].f_1, Local_1494[6 /*15*/].f_3, 0f, 1, true);
				vehicle::start_playback_recorded_vehicle(Local_1494[6 /*15*/], Local_1494[6 /*15*/].f_13, "lkheat", 1);
				vehicle::_0x1F2E4E06DEA8992B(Local_1494[6 /*15*/], 1);
				cam::set_cam_active(iLocal_3457, true);
				cam::set_cam_active_with_interp(iLocal_3458, iLocal_3457, 5500, 0, 1);
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3239++;
			}
			graphics::draw_scaleform_movie(iLocal_3805, 0.5f, 0.5f, 1f, 1f, 255, 255, 255, 0, 0);
			break;
		
		case 2:
			if (func_272(&iLocal_3226, 3000))
			{
				func_726(&(Local_3473[0 /*165*/]), "HeatAud", "van_cut_0", 7, 0, 0, 0);
				iLocal_3239++;
			}
			graphics::draw_scaleform_movie(iLocal_3805, 0.5f, 0.5f, 1f, 1f, 255, 255, 255, 0, 0);
			break;
		
		case 3:
			if (!cam::is_cam_interpolating(iLocal_3458))
			{
				cam::set_cam_active(iLocal_3457, false);
				cam::set_cam_active(iLocal_3458, true);
				cam::set_cam_active_with_interp(iLocal_3461, iLocal_3458, 3000, 0, 1);
				iLocal_3239++;
			}
			graphics::draw_scaleform_movie(iLocal_3805, 0.5f, 0.5f, 1f, 1f, 255, 255, 255, 0, 0);
			break;
		
		case 4:
			if (fVar1 > 20277f)
			{
				cam::set_cam_active(iLocal_3458, false);
				cam::set_cam_active(iLocal_3461, false);
				func_602();
				func_834(&(Local_3473[0 /*165*/]), "heataud", "van_cut_0b", 7, 0, 0);
				vehicle::set_playback_speed(Local_1192, 0.8f);
				cam::set_cam_active(iLocal_3459, true);
				audio::start_audio_scene("FBI_4_CUTSCENE_TRUCK");
				cam::shake_cam(iLocal_3459, "ROAD_VIBRATION_SHAKE", 1f);
				iLocal_3189 = false;
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3239++;
			}
			else
			{
				graphics::draw_scaleform_movie(iLocal_3805, 0.5f, 0.5f, 1f, 1f, 255, 255, 255, 0, 0);
			}
			break;
		
		case 5:
			if (func_272(&iLocal_3226, 1800))
			{
				iVar0 = 0;
				while (iVar0 <= (Local_1494 - 1))
				{
					streaming::set_model_as_no_longer_needed(Local_1494[iVar0 /*15*/].f_1);
					entity::set_vehicle_as_no_longer_needed(&(Local_1494[iVar0 /*15*/]));
					iVar0++;
				}
				pathfind::set_roads_in_area(1034f, -2873.8f, 100f, 164.1f, -1944.8f, -100f, true, 1);
				pathfind::set_roads_in_area(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, false, 1);
				graphics::set_scaleform_movie_as_no_longer_needed(&iLocal_3805);
				if (vehicle::is_playback_going_on_for_vehicle(Local_1192))
				{
					vehicle::stop_playback_recorded_vehicle(Local_1192);
				}
				ped::delete_ped(&Local_1645);
				ped::delete_ped(&Local_1665);
				streaming::set_model_as_no_longer_needed(Local_1645.f_1);
				weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), true);
				if (audio::is_audio_scene_active("FBI_4_CUTSCENE_TRUCK"))
				{
					audio::stop_audio_scene("FBI_4_CUTSCENE_TRUCK");
				}
				graphics::_0x03FC694AE06C5A20();
				func_569(0, 1, 0, 0f, 0f, 3000, 0, 1);
				return true;
			}
			break;
		
		case 22:
			if (!cam::is_screen_faded_out())
			{
				if (!cam::is_screen_fading_out())
				{
					cam::do_screen_fade_out(1000);
				}
				graphics::_set_2d_layer(1);
				if (iLocal_3189)
				{
					graphics::draw_scaleform_movie(iLocal_3805, 0.5f, 0.5f, 1f, 1f, 255, 255, 255, 0, 0);
				}
			}
			else
			{
				if (audio::is_audio_scene_active("FBI_4_CUTSCENE_TRUCK"))
				{
					audio::stop_audio_scene("FBI_4_CUTSCENE_TRUCK");
				}
				iVar0 = 0;
				while (iVar0 <= (Local_1494 - 1))
				{
					streaming::set_model_as_no_longer_needed(Local_1494[iVar0 /*15*/].f_1);
					entity::set_vehicle_as_no_longer_needed(&(Local_1494[iVar0 /*15*/]));
					iVar0++;
				}
				streaming::request_model(func_93(0));
				streaming::request_model(func_93(1));
				streaming::request_model(Local_1177.f_1);
				vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
				streaming::request_model(Local_1207.f_1);
				vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
				streaming::request_model(Local_2933.f_2);
				vehicle::request_vehicle_recording(2, "lkcountry");
				vehicle::request_vehicle_recording(3, "lkcountry");
				vehicle::request_vehicle_recording(4, "lkcountry");
				vehicle::request_vehicle_recording(5, "lkcountry");
				vehicle::request_vehicle_recording(10, "lkcountry");
				vehicle::request_vehicle_recording(11, "lkcountry");
				vehicle::request_vehicle_recording(12, "lkcountry");
				vehicle::request_vehicle_recording(14, "lkcountry");
				vehicle::request_vehicle_recording(15, "lkcountry");
				vehicle::request_vehicle_recording(16, "lkcountry");
				streaming::request_anim_dict("missfbi4");
				streaming::request_anim_dict("misssagrab");
				ai::request_waypoint_recording("heat1");
				ai::request_waypoint_recording("heat2");
				ai::request_waypoint_recording("heat3");
				audio::request_ambient_audio_bank("SCRIPT\FBI_04_HEAT_02", 0);
				audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false);
				while (((((((((((((((((((((!streaming::has_model_loaded(Local_1177.f_1) || !streaming::has_model_loaded(Local_1207.f_1)) || !streaming::has_model_loaded(func_93(0))) || !streaming::has_model_loaded(func_93(1))) || !streaming::has_model_loaded(Local_2933.f_2)) || !vehicle::has_vehicle_recording_been_loaded(2, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(3, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(4, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(5, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(10, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(11, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(12, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(14, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(15, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(16, "lkcountry")) || !streaming::has_anim_dict_loaded("missfbi4")) || !streaming::has_anim_dict_loaded("misssagrab")) || !ai::get_is_waypoint_recording_loaded("heat1")) || !ai::get_is_waypoint_recording_loaded("heat2")) || !ai::get_is_waypoint_recording_loaded("heat3")) || !audio::request_ambient_audio_bank("SCRIPT\FBI_04_HEAT_02", 0)) || !audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false))
				{
					system::wait(0);
				}
				pathfind::set_roads_in_area(1034f, -2873.8f, 100f, 164.1f, -1944.8f, -100f, true, 1);
				pathfind::set_roads_in_area(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, false, 1);
				graphics::set_scaleform_movie_as_no_longer_needed(&iLocal_3805);
				if (vehicle::is_playback_going_on_for_vehicle(Local_1192))
				{
					vehicle::stop_playback_recorded_vehicle(Local_1192);
				}
				ped::delete_ped(&Local_1645);
				ped::delete_ped(&Local_1665);
				streaming::set_model_as_no_longer_needed(Local_1645.f_1);
				vehicle::delete_vehicle(&Local_1192);
				streaming::set_model_as_no_longer_needed(Local_1192.f_1);
				graphics::_0x03FC694AE06C5A20();
				weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), true);
				func_438(0, 1, 0f, 0f, 0, 1);
				return true;
			}
			break;
	}
	return false;
}

void func_842(int iParam0, int iParam1)//Position - 0x85B6D
{
	if (!gameplay::is_string_null_or_empty(&cLocal_892))
	{
		iLocal_44 = 0;
		func_530();
		ped::remove_relationship_group(iLocal_908);
		pathfind::set_roads_back_to_original(-9999f, -9999f, -9999f, 9999f, 9999f, 9999f, 1);
		if (player::is_player_playing(player::player_id()))
		{
			player::set_air_drag_multiplier_for_players_vehicle(player::player_id(), 1f);
			player::set_dispatch_cops_for_player(player::player_id(), 1);
			ped::set_create_random_cops(true);
		}
		if (iLocal_60)
		{
			streaming::set_model_as_no_longer_needed(func_514());
		}
		streaming::set_model_as_no_longer_needed(func_519());
		streaming::set_model_as_no_longer_needed(func_520());
		streaming::set_model_as_no_longer_needed(func_515());
		if (!cam::is_screen_faded_out() && !iParam0)
		{
			func_522();
			func_518();
			func_502();
		}
		else
		{
			func_496();
			func_534();
		}
		if (iParam1)
		{
			func_535(0);
		}
	}
}

void func_843()//Position - 0x85C29
{
}

int func_844(var uParam0, int iParam1, int iParam2, int iParam3, float fParam4, float fParam5, int iParam6, int iParam7, char* sParam8, int iParam9)//Position - 0x85C31
{
	return func_658(uParam0, iParam1, iParam2, iParam3, fParam4, fParam5, iParam6, iParam7, sParam8, iParam9, 0, 0, 0);
	return 1;
}

void func_845()//Position - 0x85C58
{
	vector3 vVar0;
	vector3 vVar3;
	
	vVar0 = { 913.6f, -2229.3f, 29.4f };
	if (iLocal_3254 < 2)
	{
		func_900();
	}
	if (!iLocal_3215)
	{
		if (entity::does_entity_exist(player::player_ped_id()) && entity::does_entity_exist(Local_1177))
		{
			if (!entity::is_entity_dead(player::player_ped_id(), 0) && !entity::is_entity_dead(Local_1177, 0))
			{
				vVar3 = { entity::get_entity_coords(player::player_ped_id(), 1) };
				if (ped::is_ped_in_vehicle(player::player_ped_id(), Local_1177, 0))
				{
					if (system::vdist2(vVar3, vVar0) <= 32400f)
					{
						streaming::prefetch_srl(sLocal_7601);
						streaming::_0xBEB2D9A1D9A8F55A(3, 3, 3, 3);
						streaming::_0xF8155A7F03DDFC8E(2);
						iLocal_3215 = 1;
					}
				}
			}
		}
	}
	switch (iLocal_3254)
	{
		case 0:
			if (!func_719("over_take0"))
			{
				if (ui::does_blip_exist(Local_3074.f_5))
				{
					if (entity::is_entity_in_angled_area(player::player_ped_id(), 1129.308f, -2095.91f, 32.359f, 1129.251f, -2062.817f, 48.059f, 115f, 0, true, 0))
					{
						if (func_899())
						{
							if (func_726(&(Local_3473[0 /*165*/]), "HeatAud", "over_take0", 6, 0, 0, 0))
							{
								func_716("over_take0", 1);
							}
						}
					}
				}
			}
			if (!func_719("FBI_4_DRIVE_TO_CYPRUS_FLATS"))
			{
				if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1177))
				{
					audio::start_audio_scene("FBI_4_DRIVE_TO_CYPRUS_FLATS");
					func_716("FBI_4_DRIVE_TO_CYPRUS_FLATS", 1);
				}
			}
			if (func_715(&Local_3074, vVar0, 2f, 2f, 2f, 1, Local_1177, "cntry_god18", "cntry_god23", "cntry_god13", 1, 0, 1, -1))
			{
				func_611(&Local_3074, 1, 0);
				controls::disable_control_action(0, 75, 1);
				func_605(Local_1177, 7f, 1, 1056964608, 0, 1, 0);
				iLocal_3226 = gameplay::get_game_timer();
				iLocal_3838 = 1;
				iLocal_3254++;
			}
			break;
		
		case 1:
			if (func_605(Local_1177, 7f, 1, 1056964608, 0, 1, 0))
			{
				if (func_898())
				{
					if (!func_627(&Local_3074, 0))
					{
						if (func_599(1, 1, 1, 0, 1))
						{
							func_853(&uLocal_3839, &uLocal_5080, &uLocal_6321);
							unk1::_0x293220DA1B46CEBC(3f, 1073741824, 3);
							iLocal_3254++;
						}
					}
				}
			}
			break;
		
		case 2:
			if (func_853(&uLocal_3839, &uLocal_5080, &uLocal_6321))
			{
				iLocal_3254++;
			}
			break;
		
		case 3:
			func_852();
			if (((((((((((((((((((((streaming::has_model_loaded(Local_1177.f_1) && streaming::has_model_loaded(Local_1207.f_1)) && streaming::has_model_loaded(func_93(0))) && streaming::has_model_loaded(func_93(1))) && streaming::has_model_loaded(Local_2933.f_2)) && vehicle::has_vehicle_recording_been_loaded(2, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(3, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(4, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(5, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(10, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(11, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(12, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(14, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(15, "lkcountry")) && vehicle::has_vehicle_recording_been_loaded(16, "lkcountry")) && streaming::has_anim_dict_loaded("missfbi4")) && streaming::has_anim_dict_loaded("misssagrab")) && ai::get_is_waypoint_recording_loaded("heat1")) && ai::get_is_waypoint_recording_loaded("heat2")) && ai::get_is_waypoint_recording_loaded("heat3")) && audio::request_ambient_audio_bank("SCRIPT\FBI_04_HEAT_02", 0)) && audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false))
			{
				if (entity::does_entity_exist(vLocal_2957.x))
				{
					entity::detach_entity(vLocal_2957.x, 1, true);
					object::delete_object(&vLocal_2957);
				}
				streaming::set_model_as_no_longer_needed(vLocal_2957.y);
				if (!ped::is_ped_injured(iLocal_3099[1]))
				{
					entity::freeze_entity_position(iLocal_3099[1], true);
				}
				if (!ped::is_ped_injured(Local_1645))
				{
					ped::delete_ped(&Local_1645);
				}
				if (!ped::is_ped_injured(Local_1665))
				{
					ped::delete_ped(&Local_1665);
				}
				if (!ped::is_ped_injured(iLocal_3466))
				{
					func_727(&(Local_3473[0 /*165*/]), 1);
					ped::delete_ped(&iLocal_3466);
				}
				if (vehicle::is_vehicle_driveable(Local_1192, 0))
				{
					if (vehicle::is_playback_going_on_for_vehicle(Local_1192))
					{
						vehicle::stop_playback_recorded_vehicle(Local_1192);
					}
					vehicle::delete_vehicle(&Local_1192);
				}
				streaming::remove_anim_dict(sLocal_7600);
				Local_1207 = vehicle::create_vehicle(Local_1207.f_1, 1024.197f, -2376.524f, 29.5306f, 85.759f, 1, true);
				vehicle::set_vehicle_colours(Local_1207, 0, 0);
				vehicle::set_vehicle_has_strong_axles(Local_1207, true);
				vehicle::set_vehicle_engine_on(Local_1207, true, 1, 0);
				vehicle::set_vehicle_doors_locked(Local_1207, 3);
				vehicle::_0x2B6747FAA9DB9D6B(Local_1207, 1);
				func_400(Local_1207, 1);
				func_437(&(iLocal_3099[1]), 1, Local_1207, -1, 0, 0, 0);
				func_324(iLocal_3099[1]);
				func_252(iLocal_3099[1], 14, 158, 1, -1, 0, 0, 0, -1, -1, -1, 0);
				func_442(&(Local_3473[0 /*165*/]), 1, iLocal_3099[1], "franklin", 0, 1);
				ped::set_blocking_of_non_temporary_events(iLocal_3099[1], true);
				if (audio::is_audio_scene_active("FBI_4_CUTSCENE_BINOCULARS"))
				{
					audio::stop_audio_scene("FBI_4_CUTSCENE_BINOCULARS");
				}
				func_655(player::player_ped_id(), -1);
				func_727(&(Local_3473[0 /*165*/]), 0);
				func_442(&(Local_3473[0 /*165*/]), 0, player::player_ped_id(), "michael", 0, 1);
				func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_move", 9, 0, 0, 0);
				audio::start_audio_scene("FBI_4_BLOCK_THE_STREET");
				iLocal_1126 = 3;
			}
			break;
		
		case 4:
			break;
	}
	func_851();
	if (!iLocal_3187)
	{
		if (vehicle::is_playback_going_on_for_vehicle(Local_1207))
		{
			if (vehicle::get_time_position_in_recording(Local_1207) > 18000f)
			{
				vehicle::set_playback_to_use_ai(Local_1207, 786603);
				iLocal_3187 = 1;
			}
		}
	}
	func_846();
}

void func_846()//Position - 0x861DE
{
	if (vehicle::is_vehicle_driveable(Local_1479, 0))
	{
		if (vehicle::is_playback_going_on_for_vehicle(Local_1479))
		{
			switch (iLocal_3296)
			{
				case 0:
					if (vehicle::get_time_position_in_recording(Local_1479) > 18000f)
					{
						iLocal_3296++;
					}
					func_494(Local_1479, 1f);
					break;
				
				case 1:
					if (vehicle::get_time_position_in_recording(Local_1479) < 44300f)
					{
						func_847(Local_1479, player::player_ped_id(), &(Local_1479.f_7), 1f, 260f, 280f, 320f, 1.2f, 1f, 1f, 1);
						func_494(Local_1479, Local_1479.f_7);
					}
					else
					{
						func_842(0, 1);
						pathfind::set_roads_in_area(885.8f, -2086.9f, 100f, 941.9f, -2463f, -100f, false, 1);
						iLocal_3296++;
					}
					break;
				
				case 2:
					break;
				}
			}
	}
}

void func_847(int iParam0, int iParam1, var uParam2, float fParam3, float fParam4, float fParam5, float fParam6, float fParam7, float fParam8, float fParam9, int iParam10)//Position - 0x862B7
{
	float fVar0;
	float fVar1;
	float fVar2;
	float fVar3;
	float fVar4;
	float fVar5;
	float fVar6;
	float fVar7;
	float fVar8;
	int iVar9;
	int iVar10;
	
	if (iLocal_44 == 0)
	{
		if (*uParam2 < fParam3)
		{
			*uParam2 = fParam3;
			iLocal_44 = 1;
		}
	}
	if (fParam8 < 0f)
	{
		fParam8 = fLocal_440;
	}
	fVar0 = (fParam3 * fParam7);
	if (!fVar0 > fParam3)
	{
		fVar0 = (fParam3 + 0.1f);
	}
	fVar5 = (fParam3 * fParam9);
	fVar6 = (((fParam6 - fParam5) * 0.4f) + fParam5);
	fVar2 = func_850(iParam0, iParam1);
	if (fVar2 < 0f)
	{
		fVar2 = (fVar2 * -1f);
	}
	fVar3 = fVar2;
	if (fVar3 < fParam4)
	{
		fVar3 = fParam4;
	}
	if (fVar3 > fVar6)
	{
		fVar3 = fVar6;
	}
	fVar4 = fParam3;
	if (!entity::is_entity_dead(iParam1, 0))
	{
		if (func_529(iParam1, iParam0))
		{
			if (ped::is_ped_in_any_vehicle(iParam1, 0))
			{
				fVar4 = fVar0;
			}
			else if (fVar2 < 50f)
			{
				fVar4 = fParam3;
			}
			else
			{
				fVar4 = fVar0;
			}
		}
		else if (fVar2 < fParam5)
		{
			if (func_849(iParam0, iParam1) < fParam5)
			{
				fVar1 = func_848(iParam0, iParam1);
				fVar1 = (fVar1 + -15f);
				if (fVar1 < 0f)
				{
					fVar1 = 0f;
				}
				if (fVar1 > 75f)
				{
					fVar1 = 75f;
				}
				fVar7 = ((75f - fVar1) / 75f);
			}
			else
			{
				fVar7 = 1f;
			}
			fVar4 = ((((((fParam5 - fParam4) - (fVar3 - fParam4)) / (fParam5 - fParam4)) * (fVar0 - fParam3)) * fVar7) + fParam3);
		}
		else if (fVar2 > fParam6)
		{
			fVar4 = fVar5;
			iLocal_45 = 1;
		}
		else if (iLocal_45)
		{
			if (fVar2 < fVar6)
			{
				fVar4 = fParam3;
				iLocal_45 = 0;
			}
			else
			{
				fVar4 = fVar5;
			}
		}
		else
		{
			fVar4 = fParam3;
		}
	}
	fVar1 = (fVar4 - *uParam2);
	if (fVar1 > 0f)
	{
		fVar1 = gameplay::get_frame_time();
		fVar8 = ((fLocal_447 * fParam3) * fVar1);
		fVar1 = (fVar4 - *uParam2);
		if (fVar1 > fVar8)
		{
			fVar1 = fVar8;
		}
		*uParam2 = (*uParam2 + fVar1);
	}
	else
	{
		fVar1 = gameplay::get_frame_time();
		fVar8 = ((fLocal_448 * fParam3) * fVar1);
		fVar1 = (fVar4 - *uParam2);
		if (fVar1 < (fVar8 * -1f))
		{
			fVar1 = (fVar8 * -1f);
		}
		*uParam2 = (*uParam2 + fVar1);
	}
	if (iParam10)
	{
		if (!ped::is_ped_injured(iParam1))
		{
			if (ped::is_ped_in_any_vehicle(iParam1, 0))
			{
				iVar9 = ped::get_vehicle_ped_is_in(iParam1, 0);
				if (!entity::is_entity_dead(iVar9, 0))
				{
					iVar10 = entity::get_entity_model(iVar9);
					if (vehicle::is_this_model_a_car(iVar10) || vehicle::is_this_model_a_bike(iVar10))
					{
						if (vehicle::is_vehicle_driveable(iVar9, 0))
						{
							fVar1 = fVar4;
							if (fVar1 < fParam3)
							{
								fVar1 = fParam3;
							}
							fVar1 = (fVar1 - fParam3);
							fVar1 = (fVar1 / (fVar0 - fParam3));
							fVar1 = (fVar1 * fParam8);
							fVar1 = (fVar1 * (fLocal_438 - fLocal_439));
							fVar1 = (fVar1 + fLocal_439);
							fLocal_437 = fVar1;
							if (fLocal_437 < fLocal_439)
							{
								fLocal_437 = fLocal_439;
							}
							if (fLocal_437 > fLocal_438)
							{
								fLocal_437 = fLocal_438;
							}
							player::set_air_drag_multiplier_for_players_vehicle(player::player_id(), fLocal_437);
						}
					}
				}
			}
		}
	}
}

float func_848(int iParam0, int iParam1)//Position - 0x8656E
{
	struct<2> Var0;
	vector3 vVar3;
	vector3 vVar6;
	vector3 vVar9;
	float fVar12;
	int iVar13;
	
	if (!entity::is_entity_dead(iParam0, 0))
	{
		Var0 = entity::get_entity_forward_x(iParam0);
		Var0.f_1 = entity::get_entity_forward_y(iParam0);
	}
	if (!entity::is_entity_dead(iParam1, 0))
	{
		vVar3 = { entity::get_entity_coords(iParam1, 1) };
		if (ped::is_ped_in_any_vehicle(iParam1, 0))
		{
			iVar13 = ped::get_vehicle_ped_is_in(iParam1, 0);
			vVar9.x = entity::get_entity_forward_x(iVar13);
			vVar9.y = entity::get_entity_forward_y(iVar13);
		}
		else
		{
			vVar6 = { entity::get_offset_from_entity_in_world_coords(iParam1, 0f, 5f, 0f) };
			vVar9 = { vVar6 - vVar3 };
		}
	}
	fVar12 = gameplay::get_angle_between_2d_vectors(Var0, Var0.f_1, vVar9.x, vVar9.y);
	return fVar12;
}

float func_849(int iParam0, int iParam1)//Position - 0x865FF
{
	vector3 vVar0;
	vector3 vVar3;
	vector3 vVar6;
	float fVar9;
	
	if (!entity::is_entity_dead(iParam0, 0))
	{
		vVar0 = { entity::get_entity_coords(iParam0, 1) };
	}
	if (!entity::is_entity_dead(iParam1, 0))
	{
		vVar3 = { entity::get_entity_coords(iParam1, 1) };
	}
	vVar6 = { vVar3 - vVar0 };
	vVar6.z = 0f;
	fVar9 = system::vmag(vVar6);
	return fVar9;
}

float func_850(int iParam0, int iParam1)//Position - 0x86651
{
	struct<2> Var0;
	vector3 vVar3;
	vector3 vVar6;
	vector3 vVar9;
	float fVar12;
	
	if (vehicle::is_vehicle_driveable(iParam0, 0))
	{
		Var0 = entity::get_entity_forward_x(iParam0);
		Var0.f_1 = entity::get_entity_forward_y(iParam0);
		vVar6 = { entity::get_entity_coords(iParam0, 1) };
	}
	if (!entity::is_entity_dead(iParam1, 0))
	{
		vVar9 = { entity::get_entity_coords(iParam1, 1) };
	}
	vVar3 = { vVar9 - vVar6 };
	fVar12 = gameplay::get_angle_between_2d_vectors(vVar3.x, vVar3.y, Var0, Var0.f_1);
	fVar12 = (fVar12 + -90f);
	if (fVar12 < 0f)
	{
		fVar12 = (fVar12 * -1f);
	}
	vVar3.z = 0f;
	return (system::vmag(vVar3) * system::sin(fVar12));
}

void func_851()//Position - 0x866E0
{
	switch (iLocal_3287)
	{
		case 0:
			iLocal_3287++;
			break;
		
		case 1:
			iLocal_3287++;
			break;
		
		case 2:
			switch (iLocal_3286)
			{
				case 0:
					break;
			}
			break;
	}
	if (!func_719("fbi4_ram0"))
	{
		if (!func_627(&Local_3074, 0))
		{
			if (ui::does_blip_exist(Local_3074.f_5))
			{
				if (entity::has_entity_been_damaged_by_entity(Local_1207, player::player_ped_id(), 1))
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "fbi4_ram0", 6, 0, 0, 0))
					{
						func_716("fbi4_ram0", 1);
					}
				}
			}
		}
	}
	if (!func_719("heat_tofar0"))
	{
		if (!func_627(&Local_3074, 0))
		{
			if (entity::does_entity_exist(iLocal_3099[1]))
			{
				if (gameplay::get_distance_between_coords(entity::get_entity_coords(iLocal_3099[1], 1), 1016.747f, -2375.797f, 29.5309f, 1) < 55f && gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(iLocal_3099[1], 1), 1) < 15f)
				{
					if (func_726(&(Local_3473[0 /*165*/]), "heataud", "heat_tofar0", 6, 0, 0, 0))
					{
						func_716("heat_tofar0", 1);
					}
				}
			}
		}
	}
}

void func_852()//Position - 0x8681C
{
	streaming::request_model(func_93(0));
	streaming::request_model(func_93(1));
	streaming::request_model(Local_1177.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
	streaming::request_model(Local_1207.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
	streaming::request_model(Local_2933.f_2);
	vehicle::request_vehicle_recording(2, "lkcountry");
	vehicle::request_vehicle_recording(3, "lkcountry");
	vehicle::request_vehicle_recording(4, "lkcountry");
	vehicle::request_vehicle_recording(5, "lkcountry");
	vehicle::request_vehicle_recording(10, "lkcountry");
	vehicle::request_vehicle_recording(11, "lkcountry");
	vehicle::request_vehicle_recording(12, "lkcountry");
	vehicle::request_vehicle_recording(14, "lkcountry");
	vehicle::request_vehicle_recording(15, "lkcountry");
	vehicle::request_vehicle_recording(16, "lkcountry");
	streaming::request_anim_dict("missfbi4");
	streaming::request_anim_dict("misssagrab");
	ai::request_waypoint_recording("heat1");
	ai::request_waypoint_recording("heat2");
	ai::request_waypoint_recording("heat3");
	audio::request_ambient_audio_bank("SCRIPT\FBI_04_HEAT_02", 0);
	audio::request_script_audio_bank("SCRIPT\SIREN_DISTANT", false);
}

bool func_853(var uParam0, var uParam1, var uParam2)//Position - 0x86912
{
	int iVar0;
	float fVar1;
	int iVar2;
	vector3 vVar3;
	vector3 vVar6;
	
	iVar2 = 0;
	iVar2 = iVar2;
	switch (iLocal_3838)
	{
		case 0:
			break;
		
		case 1:
			func_399(&Local_1177);
			pathfind::set_roads_back_to_original(885.8f, -2086.9f, 100f, 941.9f, -2463f, -100f, 1);
			func_897();
			func_896();
			func_895();
			if (audio::is_audio_scene_active("FBI_4_DRIVE_TO_CYPRUS_FLATS"))
			{
				audio::stop_audio_scene("FBI_4_DRIVE_TO_CYPRUS_FLATS");
			}
			cam::destroy_all_cams(0);
			func_894(uParam0, Local_1177, iLocal_3099[2]);
			func_878(uParam0);
			gameplay::clear_area_of_vehicles(913.3915f, -2231.692f, 29.385f, 100f, 0, 0, 0, 0, false);
			ai::clear_ped_tasks_immediately(player::player_ped_id());
			ped::set_ped_into_vehicle(player::player_ped_id(), Local_1177, -1);
			graphics::_set_far_shadows_suppressed(0);
			cam::set_cam_active(uParam0->f_1, true);
			cam::render_script_cams(true, false, 3000, 1, 0, 0);
			if (!func_719("in_pos_1_1"))
			{
				if (func_877(&(Local_3473[0 /*165*/]), "heataud", "in_pos_1", "in_pos_1_1", 7, 0, 0))
				{
					unk1::_0x293220DA1B46CEBC(10f, 30f, 4);
					func_716("in_pos_1_1", 1);
				}
			}
			iLocal_7586 = 0;
			iLocal_7587 = 0;
			iLocal_7588 = 0;
			iLocal_7589 = 0;
			iLocal_7590 = 0;
			iLocal_7591 = 0;
			iLocal_7592 = 0;
			iLocal_7593 = 0;
			iLocal_7594 = 0;
			iLocal_7595 = 0;
			iLocal_7596 = 0;
			iLocal_7597 = 0;
			iLocal_7598 = 0;
			iLocal_7599 = 0;
			func_876(iLocal_3099[2]);
			streaming::begin_srl();
			fLocal_7602 = -9999f;
			system::settimera(0);
			audio::trigger_music_event("FBI4_SWITCH_1");
			iLocal_3838 = 2;
		
		case 2:
			func_875();
			if (cam::is_cam_active(uParam0->f_1))
			{
				iVar0 = func_861(uParam0);
				fVar1 = cam::get_cam_spline_phase(uParam0->f_1);
				iLocal_7586 = iLocal_7586;
				iLocal_7587 = iLocal_7587;
				fLocal_7569 = fLocal_7569;
				fLocal_7568 = fLocal_7568;
				if (!iLocal_3219)
				{
					if (fVar1 >= fLocal_7567)
					{
						audio::play_sound_frontend(-1, "Hit_out", "PLAYER_SWITCH_CUSTOM_SOUNDSET", 1);
						iLocal_3409 = gameplay::get_game_timer();
						iLocal_3219 = 1;
					}
				}
				else if (!iLocal_3223)
				{
					if (func_272(&iLocal_3409, 200))
					{
						iLocal_7566 = audio::get_sound_id();
						audio::play_sound_frontend(iLocal_7566, "Short_Transition_In", "PLAYER_SWITCH_CUSTOM_SOUNDSET", 1);
						iLocal_3223 = 1;
					}
				}
				if (!iLocal_7596)
				{
					if (fVar1 >= fLocal_7582)
					{
						graphics::_start_screen_effect("SwitchShortMichaelIn", 0, 0);
						iLocal_7596 = 1;
					}
				}
				if (!iLocal_7597)
				{
					if (fVar1 >= fLocal_7583)
					{
						graphics::_start_screen_effect("SwitchSceneTrevor", 0, 0);
						iLocal_7597 = 1;
					}
				}
				if (!iLocal_3220)
				{
					if (fVar1 >= 0.5f)
					{
						iLocal_3220 = 1;
					}
				}
				if (!iLocal_7590)
				{
					if (system::timera() > iLocal_7574)
					{
						func_726(&(Local_3473[0 /*165*/]), "HeatAud", "heat_looks", 7, 0, 0, 0);
						iLocal_7590 = 1;
					}
				}
				if (!iLocal_7593)
				{
					if (iVar0 >= 3)
					{
						gameplay::clear_area(790.83f, -2330.06f, 62.67f, 10000f, 1, 0, 0, false);
						entity::set_entity_heading(Local_1177, 175.1171f);
						entity::set_entity_coords(Local_1177, 913.3915f, -2231.692f, 29.385f, 1, false, 0, 1);
						vehicle::set_vehicle_on_ground_properly(Local_1177);
						func_860();
						iLocal_7593 = 1;
					}
				}
				if (fVar1 >= 1f)
				{
					audio::start_audio_scene("FBI_4_CUTSCENE_BINOCULARS");
					gameplay::set_time_scale(1f);
					if (cam::does_cam_exist(uParam0->f_1))
					{
						if (cam::is_cam_active(uParam0->f_1))
						{
							cam::destroy_cam(uParam0->f_1, 0);
						}
					}
					cam::destroy_all_cams(0);
					iLocal_3838 = 3;
				}
				else
				{
					return false;
				}
			}
			else
			{
				return false;
			}
		
		case 3:
			cam::destroy_all_cams(0);
			func_859(uParam1, iLocal_3099[2], Local_1192);
			func_878(uParam1);
			cam::_0x7BF1A54AE67AC070(uParam1->f_1, iLocal_7573 + 1, 4);
			cam::set_cam_active(uParam1->f_1, true);
			graphics::set_timecycle_modifier("telescope");
			func_860();
			func_858();
			system::settimera(0);
			iLocal_3838 = 4;
		
		case 4:
			func_875();
			if (cam::is_cam_active(uParam1->f_1))
			{
				iVar0 = func_861(uParam1);
				fVar1 = cam::get_cam_spline_phase(uParam1->f_1);
				if (!iLocal_7594 && !cam::is_cam_spline_paused(uParam1->f_1))
				{
					if (iVar0 >= iLocal_7571 && iVar0 <= iLocal_7572)
					{
						graphics::_set_2d_layer(1);
						graphics::draw_scaleform_movie(iLocal_3805, 0.5f, 0.5f, 1f, 1f, 255, 255, 255, 0, 0);
						graphics::_0xC6372ECD45D73BCD(1);
					}
				}
				if (!iLocal_7594)
				{
					if (cam::is_cam_spline_paused(uParam1->f_1))
					{
						cam::_0x7BF1A54AE67AC070(uParam1->f_1, iLocal_7573 + 1, 0);
						func_857();
						func_856(iLocal_3099[2], fLocal_7579);
						if (entity::does_entity_exist(Local_1192))
						{
							if (!entity::is_entity_dead(Local_1192, 0))
							{
								vehicle::stop_playback_recorded_vehicle(Local_1192);
								vehicle::start_playback_recorded_vehicle(Local_1192, 1, "lkcountry", 1);
								vehicle::skip_time_in_playback_recorded_vehicle(Local_1192, fLocal_7578);
								vehicle::_0x1F2E4E06DEA8992B(Local_1192, 1);
								audio::start_audio_scene("FBI_4_CUTSCENE_TRUCK");
							}
						}
						graphics::clear_timecycle_modifier();
						iLocal_7594 = 1;
					}
				}
				if (!iLocal_7591)
				{
					if (system::timera() > iLocal_7575)
					{
						func_726(&(Local_3473[0 /*165*/]), "HeatAud", "van_cut_0", 7, 0, 0, 0);
						iLocal_7591 = 1;
					}
				}
				if (!iLocal_7592)
				{
					if (system::timera() > iLocal_7576)
					{
						func_602();
						func_834(&(Local_3473[0 /*165*/]), "heataud", "van_cut_0b", 7, 0, 0);
						iLocal_7592 = 1;
					}
				}
				if (!iLocal_7595)
				{
					if (fVar1 >= fLocal_7580)
					{
						cam::shake_cam(uParam1->f_1, "SKY_DIVING_SHAKE", fLocal_7581);
						iLocal_7595 = 1;
					}
				}
				if (fVar1 >= 1f)
				{
					graphics::_0xC6372ECD45D73BCD(0);
					gameplay::set_time_scale(1f);
					if (cam::does_cam_exist(uParam1->f_1))
					{
						if (cam::is_cam_active(uParam1->f_1))
						{
							cam::destroy_cam(uParam1->f_1, 0);
						}
					}
					cam::destroy_all_cams(0);
					if (audio::is_audio_scene_active("FBI_4_CUTSCENE_TRUCK"))
					{
						audio::stop_audio_scene("FBI_4_CUTSCENE_TRUCK");
					}
					func_855();
					iLocal_3838 = 5;
				}
				else
				{
					return false;
				}
			}
			else
			{
				return false;
			}
		
		case 5:
			func_854(uParam2, iLocal_3099[2], Local_1177);
			func_878(uParam2);
			cam::set_cam_active(uParam2->f_1, true);
			system::settimera(0);
			func_852();
			iLocal_3838 = 6;
		
		case 6:
			func_875();
			if (cam::is_cam_active(uParam2->f_1))
			{
				iVar0 = func_861(uParam2);
				fVar1 = cam::get_cam_spline_phase(uParam2->f_1);
				if (!iLocal_3221)
				{
					if (fVar1 > 0.55f)
					{
						audio::play_sound_frontend(-1, "Hit_out", "PLAYER_SWITCH_CUSTOM_SOUNDSET", 1);
						iLocal_3409 = gameplay::get_game_timer();
						iLocal_3221 = 1;
					}
				}
				else if (!iLocal_7588)
				{
					fLocal_7569 = fLocal_7569;
					if (func_272(&iLocal_3409, 200))
					{
						iLocal_7566 = audio::get_sound_id();
						audio::play_sound_frontend(iLocal_7566, "Short_Transition_In", "PLAYER_SWITCH_CUSTOM_SOUNDSET", 1);
						iLocal_7588 = 1;
					}
				}
				if (!iLocal_7589)
				{
					if (fVar1 > fLocal_7570)
					{
						vVar3 = { 914.7f, -2216.7f, 34.8f };
						vVar6 = { -5.3f, 0f, 174.9f };
						streaming::_0xEF39EE20C537E98C(vVar3, vVar6);
						iLocal_7589 = 1;
					}
				}
				if (!iLocal_7598)
				{
					if (fVar1 >= fLocal_7584)
					{
						graphics::_start_screen_effect("SwitchShortTrevorIn", 0, 0);
						iLocal_7598 = 1;
					}
				}
				if (!iLocal_7599)
				{
					if (fVar1 >= fLocal_7585)
					{
						graphics::_start_screen_effect("SwitchSceneMichael", 0, 0);
						iLocal_7599 = 1;
					}
				}
				if (!iLocal_3222)
				{
					if (fVar1 >= 0.75f)
					{
						if (!audio::has_sound_finished(iLocal_7566))
						{
							audio::stop_sound(iLocal_7566);
						}
						audio::play_sound_frontend(-1, "Hit_out", "PLAYER_SWITCH_CUSTOM_SOUNDSET", 1);
						iLocal_3222 = 1;
					}
				}
				if (fVar1 >= 1f)
				{
					if (audio::is_audio_scene_active("FBI_4_CUTSCENE_BINOCULARS"))
					{
						audio::stop_audio_scene("FBI_4_CUTSCENE_BINOCULARS");
					}
					gameplay::set_time_scale(1f);
					if (cam::does_cam_exist(uParam2->f_1))
					{
						if (cam::is_cam_active(uParam2->f_1))
						{
							cam::destroy_cam(uParam2->f_1, 0);
						}
					}
					cam::destroy_all_cams(0);
					graphics::_set_far_shadows_suppressed(1);
					cam::render_script_cams(false, false, 3000, 1, 0, 0);
					player::set_player_control(player::player_id(), true, 0);
					graphics::_set_2d_layer(4);
					ui::display_hud(true);
					ui::display_radar(true);
					cam::set_widescreen_borders(false, 500);
					audio::stop_sound(iLocal_7566);
					system::settimera(0);
					func_720(&Local_1177);
					func_569(0, 1, 0, 0f, 0f, 3000, 0, 1);
					iLocal_3838 = 7;
				}
			}
			break;
		
		case 7:
			func_875();
			if (system::timera() > 100)
			{
				streaming::set_vehicle_population_budget(3);
				streaming::set_ped_population_budget(3);
				streaming::end_srl();
				iLocal_3838 = 0;
				return true;
			}
			break;
	}
	return false;
}

void func_854(var uParam0, var uParam1, int iParam2)//Position - 0x870C0
{
	if (!*uParam0)
	{
		uParam0->f_10[0 /*57*/].f_2 = 0;
		uParam0->f_10[0 /*57*/].f_3 = -1;
		uParam0->f_10[0 /*57*/].f_4 = 0;
		uParam0->f_10[0 /*57*/].f_5 = 0;
		uParam0->f_10[0 /*57*/].f_6 = { 0.2801f, 1.2967f, 0.5344f };
		uParam0->f_10[0 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[0 /*57*/].f_12 = 0f;
		uParam0->f_10[0 /*57*/].f_16 = 0f;
		uParam0->f_10[0 /*57*/].f_9 = { -0.1119f, 0.0055f, 0.4533f };
		uParam0->f_10[0 /*57*/].f_18 = 1;
		uParam0->f_10[0 /*57*/].f_19 = 1;
		uParam0->f_10[0 /*57*/].f_20 = 1;
		uParam0->f_10[0 /*57*/].f_21 = 45f;
		uParam0->f_10[0 /*57*/].f_50 = 0;
		uParam0->f_10[0 /*57*/].f_51 = 0f;
		uParam0->f_10[0 /*57*/].f_52 = 0f;
		uParam0->f_10[0 /*57*/].f_22 = 0f;
		uParam0->f_10[0 /*57*/].f_53 = 0;
		uParam0->f_10[0 /*57*/].f_23 = 0f;
		uParam0->f_10[0 /*57*/].f_28 = 0;
		uParam0->f_10[0 /*57*/].f_29 = 0f;
		uParam0->f_10[0 /*57*/].f_32 = 0f;
		uParam0->f_10[0 /*57*/].f_30 = 1;
		uParam0->f_10[0 /*57*/].f_31 = 0;
		uParam0->f_10[0 /*57*/].f_33 = 1f;
		uParam0->f_10[0 /*57*/].f_34 = 0;
		uParam0->f_10[0 /*57*/].f_35 = 0f;
		uParam0->f_10[0 /*57*/].f_36 = 0;
		uParam0->f_10[0 /*57*/].f_37 = 0;
		uParam0->f_10[0 /*57*/].f_39 = 0f;
		uParam0->f_10[0 /*57*/].f_40 = 0f;
		uParam0->f_10[0 /*57*/].f_41 = 0;
		uParam0->f_10[0 /*57*/].f_42 = 0;
		uParam0->f_10[0 /*57*/].f_43 = 0;
		uParam0->f_10[0 /*57*/].f_38 = 0f;
		uParam0->f_10[0 /*57*/].f_45 = 0;
		uParam0->f_10[0 /*57*/].f_46 = 0;
		uParam0->f_10[0 /*57*/].f_47 = 0f;
		uParam0->f_10[0 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[0 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[1 /*57*/].f_2 = 0;
		uParam0->f_10[1 /*57*/].f_3 = -1;
		uParam0->f_10[1 /*57*/].f_4 = 0;
		uParam0->f_10[1 /*57*/].f_5 = 3000;
		uParam0->f_10[1 /*57*/].f_6 = { -1.0713f, -0.7852f, 0.5344f };
		uParam0->f_10[1 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[1 /*57*/].f_12 = 0f;
		uParam0->f_10[1 /*57*/].f_16 = 0f;
		uParam0->f_10[1 /*57*/].f_9 = { -3.4369f, 0f, -53.5033f };
		uParam0->f_10[1 /*57*/].f_18 = 0;
		uParam0->f_10[1 /*57*/].f_19 = 0;
		uParam0->f_10[1 /*57*/].f_20 = 0;
		uParam0->f_10[1 /*57*/].f_21 = 45f;
		uParam0->f_10[1 /*57*/].f_50 = 0;
		uParam0->f_10[1 /*57*/].f_51 = 0f;
		uParam0->f_10[1 /*57*/].f_52 = 0f;
		uParam0->f_10[1 /*57*/].f_22 = 0f;
		uParam0->f_10[1 /*57*/].f_53 = 0;
		uParam0->f_10[1 /*57*/].f_23 = 0f;
		uParam0->f_10[1 /*57*/].f_28 = 0;
		uParam0->f_10[1 /*57*/].f_29 = 0f;
		uParam0->f_10[1 /*57*/].f_32 = 0f;
		uParam0->f_10[1 /*57*/].f_30 = 1;
		uParam0->f_10[1 /*57*/].f_31 = 0;
		uParam0->f_10[1 /*57*/].f_33 = 1f;
		uParam0->f_10[1 /*57*/].f_34 = 0;
		uParam0->f_10[1 /*57*/].f_35 = 0f;
		uParam0->f_10[1 /*57*/].f_36 = 0;
		uParam0->f_10[1 /*57*/].f_37 = 0;
		uParam0->f_10[1 /*57*/].f_39 = 0f;
		uParam0->f_10[1 /*57*/].f_40 = 0f;
		uParam0->f_10[1 /*57*/].f_41 = 0;
		uParam0->f_10[1 /*57*/].f_42 = 0;
		uParam0->f_10[1 /*57*/].f_43 = 0;
		uParam0->f_10[1 /*57*/].f_38 = 0f;
		uParam0->f_10[1 /*57*/].f_45 = 0;
		uParam0->f_10[1 /*57*/].f_46 = 0;
		uParam0->f_10[1 /*57*/].f_47 = 0f;
		uParam0->f_10[1 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[1 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[2 /*57*/].f_2 = 0;
		uParam0->f_10[2 /*57*/].f_3 = -1;
		uParam0->f_10[2 /*57*/].f_4 = 0;
		uParam0->f_10[2 /*57*/].f_5 = 600;
		uParam0->f_10[2 /*57*/].f_6 = { -1.1351f, -0.8325f, -0.7892f };
		uParam0->f_10[2 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[2 /*57*/].f_12 = 0f;
		uParam0->f_10[2 /*57*/].f_16 = 0f;
		uParam0->f_10[2 /*57*/].f_9 = { -3.4369f, 0f, -53.5033f };
		uParam0->f_10[2 /*57*/].f_18 = 0;
		uParam0->f_10[2 /*57*/].f_19 = 0;
		uParam0->f_10[2 /*57*/].f_20 = 0;
		uParam0->f_10[2 /*57*/].f_21 = 45f;
		uParam0->f_10[2 /*57*/].f_50 = 0;
		uParam0->f_10[2 /*57*/].f_51 = 0f;
		uParam0->f_10[2 /*57*/].f_52 = 0f;
		uParam0->f_10[2 /*57*/].f_22 = 1f;
		uParam0->f_10[2 /*57*/].f_53 = 0;
		uParam0->f_10[2 /*57*/].f_23 = 0f;
		uParam0->f_10[2 /*57*/].f_28 = 2;
		uParam0->f_10[2 /*57*/].f_29 = 0.2f;
		uParam0->f_10[2 /*57*/].f_32 = 0f;
		uParam0->f_10[2 /*57*/].f_30 = 1;
		uParam0->f_10[2 /*57*/].f_31 = 0;
		uParam0->f_10[2 /*57*/].f_33 = 1f;
		uParam0->f_10[2 /*57*/].f_34 = 0;
		uParam0->f_10[2 /*57*/].f_35 = 0f;
		uParam0->f_10[2 /*57*/].f_36 = 1;
		uParam0->f_10[2 /*57*/].f_37 = 0;
		uParam0->f_10[2 /*57*/].f_39 = 100f;
		uParam0->f_10[2 /*57*/].f_40 = 200f;
		uParam0->f_10[2 /*57*/].f_41 = 50;
		uParam0->f_10[2 /*57*/].f_42 = 50;
		uParam0->f_10[2 /*57*/].f_43 = 200;
		uParam0->f_10[2 /*57*/].f_38 = 0.4f;
		uParam0->f_10[2 /*57*/].f_45 = 0;
		uParam0->f_10[2 /*57*/].f_46 = 0;
		uParam0->f_10[2 /*57*/].f_47 = 0f;
		uParam0->f_10[2 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[2 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[3 /*57*/].f_54 = 1;
		uParam0->f_10[4 /*57*/].f_2 = 0;
		uParam0->f_10[4 /*57*/].f_3 = -1;
		uParam0->f_10[4 /*57*/].f_4 = 0;
		uParam0->f_10[4 /*57*/].f_5 = 0;
		uParam0->f_10[4 /*57*/].f_6 = { 3.3398f, -7.5898f, 7.7279f };
		uParam0->f_10[4 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[4 /*57*/].f_12 = 0f;
		uParam0->f_10[4 /*57*/].f_16 = 0f;
		uParam0->f_10[4 /*57*/].f_9 = { -2.3801f, -0.0023f, 36.1109f };
		uParam0->f_10[4 /*57*/].f_18 = 0;
		uParam0->f_10[4 /*57*/].f_19 = 0;
		uParam0->f_10[4 /*57*/].f_20 = 0;
		uParam0->f_10[4 /*57*/].f_21 = 50f;
		uParam0->f_10[4 /*57*/].f_50 = 0;
		uParam0->f_10[4 /*57*/].f_51 = 0f;
		uParam0->f_10[4 /*57*/].f_52 = 0f;
		uParam0->f_10[4 /*57*/].f_22 = 1f;
		uParam0->f_10[4 /*57*/].f_53 = 0;
		uParam0->f_10[4 /*57*/].f_23 = 0f;
		uParam0->f_10[4 /*57*/].f_28 = 1;
		uParam0->f_10[4 /*57*/].f_29 = 1f;
		uParam0->f_10[4 /*57*/].f_32 = 0f;
		uParam0->f_10[4 /*57*/].f_30 = 1;
		uParam0->f_10[4 /*57*/].f_31 = 0;
		uParam0->f_10[4 /*57*/].f_33 = 1f;
		uParam0->f_10[4 /*57*/].f_34 = 0;
		uParam0->f_10[4 /*57*/].f_35 = 1f;
		uParam0->f_10[4 /*57*/].f_36 = 0;
		uParam0->f_10[4 /*57*/].f_37 = 0;
		uParam0->f_10[4 /*57*/].f_39 = 0f;
		uParam0->f_10[4 /*57*/].f_40 = 0f;
		uParam0->f_10[4 /*57*/].f_41 = 0;
		uParam0->f_10[4 /*57*/].f_42 = 0;
		uParam0->f_10[4 /*57*/].f_43 = 0;
		uParam0->f_10[4 /*57*/].f_38 = 0f;
		uParam0->f_10[4 /*57*/].f_45 = 0;
		uParam0->f_10[4 /*57*/].f_46 = 0;
		uParam0->f_10[4 /*57*/].f_47 = 0f;
		uParam0->f_10[4 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[4 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[5 /*57*/].f_2 = 0;
		uParam0->f_10[5 /*57*/].f_3 = -1;
		uParam0->f_10[5 /*57*/].f_4 = 0;
		uParam0->f_10[5 /*57*/].f_5 = 600;
		uParam0->f_10[5 /*57*/].f_6 = { 3.5008f, -7.8098f, 1.1697f };
		uParam0->f_10[5 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[5 /*57*/].f_12 = 0f;
		uParam0->f_10[5 /*57*/].f_16 = 0f;
		uParam0->f_10[5 /*57*/].f_9 = { -2.3801f, -0.0023f, 36.1112f };
		uParam0->f_10[5 /*57*/].f_18 = 0;
		uParam0->f_10[5 /*57*/].f_19 = 0;
		uParam0->f_10[5 /*57*/].f_20 = 0;
		uParam0->f_10[5 /*57*/].f_21 = 50f;
		uParam0->f_10[5 /*57*/].f_50 = 0;
		uParam0->f_10[5 /*57*/].f_51 = 0f;
		uParam0->f_10[5 /*57*/].f_52 = 0f;
		uParam0->f_10[5 /*57*/].f_22 = 0f;
		uParam0->f_10[5 /*57*/].f_53 = 0;
		uParam0->f_10[5 /*57*/].f_23 = 0f;
		uParam0->f_10[5 /*57*/].f_28 = 0;
		uParam0->f_10[5 /*57*/].f_29 = 0f;
		uParam0->f_10[5 /*57*/].f_32 = 0f;
		uParam0->f_10[5 /*57*/].f_30 = 1;
		uParam0->f_10[5 /*57*/].f_31 = 0;
		uParam0->f_10[5 /*57*/].f_33 = 0f;
		uParam0->f_10[5 /*57*/].f_34 = 0;
		uParam0->f_10[5 /*57*/].f_35 = 0f;
		uParam0->f_10[5 /*57*/].f_36 = 0;
		uParam0->f_10[5 /*57*/].f_37 = 0;
		uParam0->f_10[5 /*57*/].f_39 = 0f;
		uParam0->f_10[5 /*57*/].f_40 = 0f;
		uParam0->f_10[5 /*57*/].f_41 = 0;
		uParam0->f_10[5 /*57*/].f_42 = 0;
		uParam0->f_10[5 /*57*/].f_43 = 0;
		uParam0->f_10[5 /*57*/].f_38 = 0f;
		uParam0->f_10[5 /*57*/].f_45 = 0;
		uParam0->f_10[5 /*57*/].f_46 = 0;
		uParam0->f_10[5 /*57*/].f_47 = 0f;
		uParam0->f_10[5 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[5 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[6 /*57*/].f_2 = 0;
		uParam0->f_10[6 /*57*/].f_3 = -1;
		uParam0->f_10[6 /*57*/].f_4 = 0;
		uParam0->f_10[6 /*57*/].f_5 = 1000;
		uParam0->f_10[6 /*57*/].f_6 = { 3.4317f, -7.7129f, 1.1648f };
		uParam0->f_10[6 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[6 /*57*/].f_12 = 0f;
		uParam0->f_10[6 /*57*/].f_16 = 0f;
		uParam0->f_10[6 /*57*/].f_9 = { -2.3801f, -0.0023f, 36.1112f };
		uParam0->f_10[6 /*57*/].f_18 = 0;
		uParam0->f_10[6 /*57*/].f_19 = 0;
		uParam0->f_10[6 /*57*/].f_20 = 0;
		uParam0->f_10[6 /*57*/].f_21 = 50f;
		uParam0->f_10[6 /*57*/].f_50 = 0;
		uParam0->f_10[6 /*57*/].f_51 = 0f;
		uParam0->f_10[6 /*57*/].f_52 = 0f;
		uParam0->f_10[6 /*57*/].f_22 = 0f;
		uParam0->f_10[6 /*57*/].f_53 = 0;
		uParam0->f_10[6 /*57*/].f_23 = 0f;
		uParam0->f_10[6 /*57*/].f_28 = 0;
		uParam0->f_10[6 /*57*/].f_29 = 0f;
		uParam0->f_10[6 /*57*/].f_32 = 0f;
		uParam0->f_10[6 /*57*/].f_30 = 0;
		uParam0->f_10[6 /*57*/].f_31 = 0;
		uParam0->f_10[6 /*57*/].f_33 = 0f;
		uParam0->f_10[6 /*57*/].f_34 = 0;
		uParam0->f_10[6 /*57*/].f_35 = 0f;
		uParam0->f_10[6 /*57*/].f_36 = 0;
		uParam0->f_10[6 /*57*/].f_37 = 0;
		uParam0->f_10[6 /*57*/].f_39 = 0f;
		uParam0->f_10[6 /*57*/].f_40 = 0f;
		uParam0->f_10[6 /*57*/].f_41 = 0;
		uParam0->f_10[6 /*57*/].f_42 = 0;
		uParam0->f_10[6 /*57*/].f_43 = 0;
		uParam0->f_10[6 /*57*/].f_38 = 0f;
		uParam0->f_10[6 /*57*/].f_45 = 0;
		uParam0->f_10[6 /*57*/].f_46 = 0;
		uParam0->f_10[6 /*57*/].f_47 = 0f;
		uParam0->f_10[6 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[6 /*57*/].f_47.f_2 = 0f;
		uParam0->f_1217 = 7;
		uParam0->f_1218 = 3;
		uParam0->f_2 = 0;
		uParam0->f_3 = 0;
		uParam0->f_1219 = 1000;
		uParam0->f_1221 = "thisSwitchCam";
		uParam0->f_1220 = "CameraInfo_FIB4_TrevorToTruck.txt";
		uParam0->f_1225 = "CameraInfo_FIB4_TrevorToTruck.xml";
		*uParam0 = 1;
	}
	uParam0->f_7[0] = uParam1;
	uParam0->f_4[1] = iParam2;
}

void func_855()//Position - 0x87BA6
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < Local_1494)
	{
		streaming::set_model_as_no_longer_needed(Local_1494[iVar0 /*15*/].f_1);
		entity::set_vehicle_as_no_longer_needed(&(Local_1494[iVar0 /*15*/]));
		iVar0++;
	}
	pathfind::set_roads_back_to_original(1034f, -2873.8f, 100f, 164.1f, -1944.8f, -100f, 1);
	pathfind::set_roads_in_area(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, false, 1);
	graphics::set_scaleform_movie_as_no_longer_needed(&iLocal_3805);
	if (vehicle::is_vehicle_driveable(Local_1192, 0))
	{
		if (vehicle::is_playback_going_on_for_vehicle(Local_1192))
		{
			vehicle::stop_playback_recorded_vehicle(Local_1192);
		}
	}
	ped::delete_ped(&Local_1645);
	ped::delete_ped(&Local_1665);
	streaming::set_model_as_no_longer_needed(Local_1645.f_1);
	if (entity::does_entity_exist(player::player_ped_id()))
	{
		if (!entity::is_entity_dead(player::player_ped_id(), 0))
		{
			weapon::set_current_ped_weapon(player::player_ped_id(), joaat("weapon_unarmed"), true);
		}
	}
}

void func_856(int iParam0, float fParam1)//Position - 0x87C81
{
	if (entity::does_entity_exist(iParam0))
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			ai::clear_ped_tasks(iParam0);
			ai::task_play_anim(iParam0, "missfbi4", "_binoculars_trevor", 1000f, -8f, -1, 1, fParam1, 0, 0, 0);
			ai::task_look_at_coord(iParam0, 788.3f, -2333.5f, 61.6f, -1, 10240, 2);
			ped::_0x2208438012482A1A(iParam0, 0, 0);
		}
	}
}

void func_857()//Position - 0x87CE6
{
	Local_1494[4 /*15*/] = vehicle::create_vehicle(Local_1494[4 /*15*/].f_1, Local_1494[4 /*15*/].f_3, 0f, 1, true);
	vehicle::start_playback_recorded_vehicle(Local_1494[4 /*15*/], Local_1494[0 /*15*/].f_13, "lkheat", 1);
	vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[4 /*15*/], 3000f);
	vehicle::_0x1F2E4E06DEA8992B(Local_1494[4 /*15*/], 1);
	Local_1494[5 /*15*/] = vehicle::create_vehicle(Local_1494[5 /*15*/].f_1, Local_1494[5 /*15*/].f_3, 0f, 1, true);
	vehicle::start_playback_recorded_vehicle(Local_1494[5 /*15*/], Local_1494[5 /*15*/].f_13, "lkheat", 1);
	vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[5 /*15*/], 5250f);
	vehicle::_0x1F2E4E06DEA8992B(Local_1494[5 /*15*/], 1);
	Local_1494[6 /*15*/] = vehicle::create_vehicle(Local_1494[6 /*15*/].f_1, Local_1494[6 /*15*/].f_3, 0f, 1, true);
	vehicle::start_playback_recorded_vehicle(Local_1494[6 /*15*/], Local_1494[6 /*15*/].f_13, "lkheat", 1);
	vehicle::_0x1F2E4E06DEA8992B(Local_1494[6 /*15*/], 1);
}

void func_858()//Position - 0x87DD2
{
	if (entity::does_entity_exist(Local_1192))
	{
		vehicle::delete_vehicle(&Local_1192);
	}
	Local_1192 = vehicle::create_vehicle(Local_1192.f_1, Local_1192.f_3, Local_1192.f_6, 1, true);
	if (entity::does_entity_exist(Local_1192))
	{
		if (!entity::is_entity_dead(Local_1192, 0))
		{
			vehicle::set_vehicle_has_strong_axles(Local_1192, true);
			entity::set_entity_proofs(Local_1192, true, true, true, true, true, false, 0, false);
			Local_1645 = ped::create_ped_inside_vehicle(Local_1192, 26, Local_1645.f_1, 0, 1, true);
			if (entity::does_entity_exist(Local_1645))
			{
				if (!entity::is_entity_dead(Local_1645, 0))
				{
					ped::set_ped_dies_when_injured(Local_1645, true);
					ped::_0x733C87D4CE22BEA2(Local_1645);
					ped::set_blocking_of_non_temporary_events(Local_1645, true);
				}
			}
			Local_1665 = ped::create_ped_inside_vehicle(Local_1192, 26, Local_1665.f_1, -1, 1, true);
			if (entity::does_entity_exist(Local_1665))
			{
				if (!entity::is_entity_dead(Local_1665, 0))
				{
					ped::set_ped_dies_when_injured(Local_1665, true);
					ped::_0x733C87D4CE22BEA2(Local_1665);
					ped::set_blocking_of_non_temporary_events(Local_1665, true);
				}
			}
			vehicle::start_playback_recorded_vehicle(Local_1192, 1, "lkcountry", 1);
			vehicle::skip_time_in_playback_recorded_vehicle(Local_1192, fLocal_7577);
			vehicle::_0x1F2E4E06DEA8992B(Local_1192, 1);
		}
	}
}

void func_859(var uParam0, var uParam1, var uParam2)//Position - 0x87ED4
{
	if (!*uParam0)
	{
		uParam0->f_10[0 /*57*/].f_2 = 3;
		uParam0->f_10[0 /*57*/].f_3 = -1;
		uParam0->f_10[0 /*57*/].f_4 = 0;
		uParam0->f_10[0 /*57*/].f_5 = 0;
		uParam0->f_10[0 /*57*/].f_6 = { 768.7385f, -2357.312f, 57.6729f };
		uParam0->f_10[0 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[0 /*57*/].f_12 = 0f;
		uParam0->f_10[0 /*57*/].f_16 = 0f;
		uParam0->f_10[0 /*57*/].f_17 = 0;
		uParam0->f_10[0 /*57*/].f_9 = { -17.0247f, 0.0011f, 153.7904f };
		uParam0->f_10[0 /*57*/].f_18 = 0;
		uParam0->f_10[0 /*57*/].f_19 = 0;
		uParam0->f_10[0 /*57*/].f_20 = 0;
		uParam0->f_10[0 /*57*/].f_21 = 15f;
		uParam0->f_10[0 /*57*/].f_24 = { 0f, 0f, 0f };
		uParam0->f_10[0 /*57*/].f_27 = 0;
		uParam0->f_10[0 /*57*/].f_50 = 0;
		uParam0->f_10[0 /*57*/].f_51 = 0f;
		uParam0->f_10[0 /*57*/].f_52 = 0f;
		uParam0->f_10[0 /*57*/].f_22 = 0f;
		uParam0->f_10[0 /*57*/].f_53 = 3;
		uParam0->f_10[0 /*57*/].f_23 = 0.25f;
		uParam0->f_10[0 /*57*/].f_28 = 0;
		uParam0->f_10[0 /*57*/].f_29 = 1f;
		uParam0->f_10[0 /*57*/].f_32 = 0f;
		uParam0->f_10[0 /*57*/].f_30 = 0;
		uParam0->f_10[0 /*57*/].f_31 = 0;
		uParam0->f_10[0 /*57*/].f_33 = 1f;
		uParam0->f_10[0 /*57*/].f_34 = 0;
		uParam0->f_10[0 /*57*/].f_35 = 1f;
		uParam0->f_10[0 /*57*/].f_36 = 0;
		uParam0->f_10[0 /*57*/].f_37 = 0;
		uParam0->f_10[0 /*57*/].f_39 = 0f;
		uParam0->f_10[0 /*57*/].f_40 = 0f;
		uParam0->f_10[0 /*57*/].f_41 = 0;
		uParam0->f_10[0 /*57*/].f_42 = 0;
		uParam0->f_10[0 /*57*/].f_43 = 0;
		uParam0->f_10[0 /*57*/].f_38 = 0f;
		uParam0->f_10[0 /*57*/].f_45 = 0;
		uParam0->f_10[0 /*57*/].f_46 = 0;
		uParam0->f_10[0 /*57*/].f_47 = 0f;
		uParam0->f_10[0 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[0 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[1 /*57*/].f_2 = 3;
		uParam0->f_10[1 /*57*/].f_3 = -1;
		uParam0->f_10[1 /*57*/].f_4 = 0;
		uParam0->f_10[1 /*57*/].f_5 = 2000;
		uParam0->f_10[1 /*57*/].f_6 = { 768.7133f, -2356.751f, 57.8537f };
		uParam0->f_10[1 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[1 /*57*/].f_12 = 0f;
		uParam0->f_10[1 /*57*/].f_16 = 0f;
		uParam0->f_10[1 /*57*/].f_17 = 0;
		uParam0->f_10[1 /*57*/].f_9 = { -18.4764f, -0.4104f, 161.6453f };
		uParam0->f_10[1 /*57*/].f_18 = 0;
		uParam0->f_10[1 /*57*/].f_19 = 0;
		uParam0->f_10[1 /*57*/].f_20 = 0;
		uParam0->f_10[1 /*57*/].f_21 = 15f;
		uParam0->f_10[1 /*57*/].f_24 = { 0f, 0f, 0f };
		uParam0->f_10[1 /*57*/].f_27 = 0;
		uParam0->f_10[1 /*57*/].f_50 = 0;
		uParam0->f_10[1 /*57*/].f_51 = 0f;
		uParam0->f_10[1 /*57*/].f_52 = 0f;
		uParam0->f_10[1 /*57*/].f_22 = 0f;
		uParam0->f_10[1 /*57*/].f_53 = 3;
		uParam0->f_10[1 /*57*/].f_23 = 0.25f;
		uParam0->f_10[1 /*57*/].f_28 = 0;
		uParam0->f_10[1 /*57*/].f_29 = 1f;
		uParam0->f_10[1 /*57*/].f_32 = 0f;
		uParam0->f_10[1 /*57*/].f_30 = 0;
		uParam0->f_10[1 /*57*/].f_31 = 0;
		uParam0->f_10[1 /*57*/].f_33 = 1f;
		uParam0->f_10[1 /*57*/].f_34 = 0;
		uParam0->f_10[1 /*57*/].f_35 = 1f;
		uParam0->f_10[1 /*57*/].f_36 = 0;
		uParam0->f_10[1 /*57*/].f_37 = 0;
		uParam0->f_10[1 /*57*/].f_39 = 0f;
		uParam0->f_10[1 /*57*/].f_40 = 0f;
		uParam0->f_10[1 /*57*/].f_41 = 0;
		uParam0->f_10[1 /*57*/].f_42 = 0;
		uParam0->f_10[1 /*57*/].f_43 = 0;
		uParam0->f_10[1 /*57*/].f_38 = 0f;
		uParam0->f_10[1 /*57*/].f_45 = 0;
		uParam0->f_10[1 /*57*/].f_46 = 0;
		uParam0->f_10[1 /*57*/].f_47 = 0f;
		uParam0->f_10[1 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[1 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[2 /*57*/].f_2 = 3;
		uParam0->f_10[2 /*57*/].f_3 = -1;
		uParam0->f_10[2 /*57*/].f_4 = 0;
		uParam0->f_10[2 /*57*/].f_5 = 2000;
		uParam0->f_10[2 /*57*/].f_6 = { 768.7133f, -2356.751f, 57.8537f };
		uParam0->f_10[2 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[2 /*57*/].f_12 = 0f;
		uParam0->f_10[2 /*57*/].f_16 = 0f;
		uParam0->f_10[2 /*57*/].f_17 = 0;
		uParam0->f_10[2 /*57*/].f_9 = { -12.7536f, -0.4104f, 170.3669f };
		uParam0->f_10[2 /*57*/].f_18 = 0;
		uParam0->f_10[2 /*57*/].f_19 = 0;
		uParam0->f_10[2 /*57*/].f_20 = 0;
		uParam0->f_10[2 /*57*/].f_21 = 15f;
		uParam0->f_10[2 /*57*/].f_24 = { 0f, 0f, 0f };
		uParam0->f_10[2 /*57*/].f_27 = 0;
		uParam0->f_10[2 /*57*/].f_50 = 0;
		uParam0->f_10[2 /*57*/].f_51 = 0f;
		uParam0->f_10[2 /*57*/].f_52 = 0f;
		uParam0->f_10[2 /*57*/].f_22 = 0f;
		uParam0->f_10[2 /*57*/].f_53 = 3;
		uParam0->f_10[2 /*57*/].f_23 = 0.25f;
		uParam0->f_10[2 /*57*/].f_28 = 0;
		uParam0->f_10[2 /*57*/].f_29 = 1f;
		uParam0->f_10[2 /*57*/].f_32 = 0f;
		uParam0->f_10[2 /*57*/].f_30 = 0;
		uParam0->f_10[2 /*57*/].f_31 = 0;
		uParam0->f_10[2 /*57*/].f_33 = 1f;
		uParam0->f_10[2 /*57*/].f_34 = 0;
		uParam0->f_10[2 /*57*/].f_35 = 1f;
		uParam0->f_10[2 /*57*/].f_36 = 0;
		uParam0->f_10[2 /*57*/].f_37 = 0;
		uParam0->f_10[2 /*57*/].f_39 = 0f;
		uParam0->f_10[2 /*57*/].f_40 = 0f;
		uParam0->f_10[2 /*57*/].f_41 = 0;
		uParam0->f_10[2 /*57*/].f_42 = 0;
		uParam0->f_10[2 /*57*/].f_43 = 0;
		uParam0->f_10[2 /*57*/].f_38 = 0f;
		uParam0->f_10[2 /*57*/].f_45 = 0;
		uParam0->f_10[2 /*57*/].f_46 = 0;
		uParam0->f_10[2 /*57*/].f_47 = 0f;
		uParam0->f_10[2 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[2 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[3 /*57*/].f_2 = 3;
		uParam0->f_10[3 /*57*/].f_3 = -1;
		uParam0->f_10[3 /*57*/].f_4 = 0;
		uParam0->f_10[3 /*57*/].f_5 = 3000;
		uParam0->f_10[3 /*57*/].f_6 = { 765.1157f, -2378.9f, 50.2175f };
		uParam0->f_10[3 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[3 /*57*/].f_12 = 0f;
		uParam0->f_10[3 /*57*/].f_16 = 0f;
		uParam0->f_10[3 /*57*/].f_17 = 0;
		uParam0->f_10[3 /*57*/].f_9 = { -14.0014f, 0f, 169.4132f };
		uParam0->f_10[3 /*57*/].f_18 = 0;
		uParam0->f_10[3 /*57*/].f_19 = 0;
		uParam0->f_10[3 /*57*/].f_20 = 0;
		uParam0->f_10[3 /*57*/].f_21 = 10f;
		uParam0->f_10[3 /*57*/].f_24 = { 0f, 0f, 0f };
		uParam0->f_10[3 /*57*/].f_27 = 0;
		uParam0->f_10[3 /*57*/].f_50 = 0;
		uParam0->f_10[3 /*57*/].f_51 = 0f;
		uParam0->f_10[3 /*57*/].f_52 = 0f;
		uParam0->f_10[3 /*57*/].f_22 = 0f;
		uParam0->f_10[3 /*57*/].f_53 = 3;
		uParam0->f_10[3 /*57*/].f_23 = 0.25f;
		uParam0->f_10[3 /*57*/].f_28 = 0;
		uParam0->f_10[3 /*57*/].f_29 = 1f;
		uParam0->f_10[3 /*57*/].f_32 = 0f;
		uParam0->f_10[3 /*57*/].f_30 = 0;
		uParam0->f_10[3 /*57*/].f_31 = 0;
		uParam0->f_10[3 /*57*/].f_33 = 1f;
		uParam0->f_10[3 /*57*/].f_34 = 0;
		uParam0->f_10[3 /*57*/].f_35 = 1f;
		uParam0->f_10[3 /*57*/].f_36 = 0;
		uParam0->f_10[3 /*57*/].f_37 = 0;
		uParam0->f_10[3 /*57*/].f_39 = 0f;
		uParam0->f_10[3 /*57*/].f_40 = 0f;
		uParam0->f_10[3 /*57*/].f_41 = 0;
		uParam0->f_10[3 /*57*/].f_42 = 0;
		uParam0->f_10[3 /*57*/].f_43 = 0;
		uParam0->f_10[3 /*57*/].f_38 = 0f;
		uParam0->f_10[3 /*57*/].f_45 = 0;
		uParam0->f_10[3 /*57*/].f_46 = 0;
		uParam0->f_10[3 /*57*/].f_47 = 0f;
		uParam0->f_10[3 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[3 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[4 /*57*/].f_54 = 1;
		uParam0->f_10[5 /*57*/].f_2 = 3;
		uParam0->f_10[5 /*57*/].f_3 = -1;
		uParam0->f_10[5 /*57*/].f_4 = 0;
		uParam0->f_10[5 /*57*/].f_5 = 0;
		uParam0->f_10[5 /*57*/].f_6 = { 759.9988f, -2387.277f, 21.0888f };
		uParam0->f_10[5 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[5 /*57*/].f_12 = 0f;
		uParam0->f_10[5 /*57*/].f_16 = 0f;
		uParam0->f_10[5 /*57*/].f_17 = 0;
		uParam0->f_10[5 /*57*/].f_9 = { 1.0832f, 0f, 161.7656f };
		uParam0->f_10[5 /*57*/].f_18 = 0;
		uParam0->f_10[5 /*57*/].f_19 = 0;
		uParam0->f_10[5 /*57*/].f_20 = 0;
		uParam0->f_10[5 /*57*/].f_21 = 25.37f;
		uParam0->f_10[5 /*57*/].f_24 = { 0f, 0f, 0f };
		uParam0->f_10[5 /*57*/].f_27 = 0;
		uParam0->f_10[5 /*57*/].f_50 = 0;
		uParam0->f_10[5 /*57*/].f_51 = 0f;
		uParam0->f_10[5 /*57*/].f_52 = 0f;
		uParam0->f_10[5 /*57*/].f_22 = 0f;
		uParam0->f_10[5 /*57*/].f_53 = 0;
		uParam0->f_10[5 /*57*/].f_23 = 0f;
		uParam0->f_10[5 /*57*/].f_28 = 0;
		uParam0->f_10[5 /*57*/].f_29 = 1f;
		uParam0->f_10[5 /*57*/].f_32 = 0f;
		uParam0->f_10[5 /*57*/].f_30 = 1;
		uParam0->f_10[5 /*57*/].f_31 = 0;
		uParam0->f_10[5 /*57*/].f_33 = 1f;
		uParam0->f_10[5 /*57*/].f_34 = 0;
		uParam0->f_10[5 /*57*/].f_35 = 1f;
		uParam0->f_10[5 /*57*/].f_36 = 0;
		uParam0->f_10[5 /*57*/].f_37 = 0;
		uParam0->f_10[5 /*57*/].f_39 = 0f;
		uParam0->f_10[5 /*57*/].f_40 = 0f;
		uParam0->f_10[5 /*57*/].f_41 = 0;
		uParam0->f_10[5 /*57*/].f_42 = 0;
		uParam0->f_10[5 /*57*/].f_43 = 0;
		uParam0->f_10[5 /*57*/].f_38 = 0f;
		uParam0->f_10[5 /*57*/].f_45 = 0;
		uParam0->f_10[5 /*57*/].f_46 = 0;
		uParam0->f_10[5 /*57*/].f_47 = 0f;
		uParam0->f_10[5 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[5 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[6 /*57*/].f_2 = 3;
		uParam0->f_10[6 /*57*/].f_3 = -1;
		uParam0->f_10[6 /*57*/].f_4 = 0;
		uParam0->f_10[6 /*57*/].f_5 = 2500;
		uParam0->f_10[6 /*57*/].f_6 = { 758.6471f, -2387.277f, 21.0888f };
		uParam0->f_10[6 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[6 /*57*/].f_12 = 0f;
		uParam0->f_10[6 /*57*/].f_16 = 0f;
		uParam0->f_10[6 /*57*/].f_17 = 0;
		uParam0->f_10[6 /*57*/].f_9 = { 1.0832f, 0f, 161.036f };
		uParam0->f_10[6 /*57*/].f_18 = 0;
		uParam0->f_10[6 /*57*/].f_19 = 0;
		uParam0->f_10[6 /*57*/].f_20 = 0;
		uParam0->f_10[6 /*57*/].f_21 = 25.37f;
		uParam0->f_10[6 /*57*/].f_24 = { 0f, 0f, 0f };
		uParam0->f_10[6 /*57*/].f_27 = 0;
		uParam0->f_10[6 /*57*/].f_50 = 0;
		uParam0->f_10[6 /*57*/].f_51 = 0f;
		uParam0->f_10[6 /*57*/].f_52 = 0f;
		uParam0->f_10[6 /*57*/].f_22 = 0f;
		uParam0->f_10[6 /*57*/].f_53 = 2;
		uParam0->f_10[6 /*57*/].f_23 = 0.5f;
		uParam0->f_10[6 /*57*/].f_28 = 0;
		uParam0->f_10[6 /*57*/].f_29 = 1f;
		uParam0->f_10[6 /*57*/].f_32 = 0f;
		uParam0->f_10[6 /*57*/].f_30 = 1;
		uParam0->f_10[6 /*57*/].f_31 = 0;
		uParam0->f_10[6 /*57*/].f_33 = 1f;
		uParam0->f_10[6 /*57*/].f_34 = 0;
		uParam0->f_10[6 /*57*/].f_35 = 1f;
		uParam0->f_10[6 /*57*/].f_36 = 0;
		uParam0->f_10[6 /*57*/].f_37 = 0;
		uParam0->f_10[6 /*57*/].f_39 = 0f;
		uParam0->f_10[6 /*57*/].f_40 = 0f;
		uParam0->f_10[6 /*57*/].f_41 = 0;
		uParam0->f_10[6 /*57*/].f_42 = 0;
		uParam0->f_10[6 /*57*/].f_43 = 0;
		uParam0->f_10[6 /*57*/].f_38 = 0f;
		uParam0->f_10[6 /*57*/].f_45 = 0;
		uParam0->f_10[6 /*57*/].f_46 = 0;
		uParam0->f_10[6 /*57*/].f_47 = 0f;
		uParam0->f_10[6 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[6 /*57*/].f_47.f_2 = 0f;
		uParam0->f_1217 = 7;
		uParam0->f_1218 = 0;
		uParam0->f_2 = 0;
		uParam0->f_3 = 0;
		uParam0->f_1219 = 0;
		uParam0->f_1221 = "thisSwitchCam";
		uParam0->f_1220 = "CameraInfo_FIB4_BinocularsScene.txt";
		uParam0->f_1225 = "CameraInfo_FIB4_BinocularsScene.xml";
		*uParam0 = 1;
	}
	uParam0->f_7[0] = uParam1;
	uParam0->f_4[1] = uParam2;
}

void func_860()//Position - 0x88A83
{
	Local_1494[0 /*15*/] = vehicle::create_vehicle(Local_1494[0 /*15*/].f_1, Local_1494[0 /*15*/].f_3, 0f, 1, true);
	vehicle::start_playback_recorded_vehicle(Local_1494[0 /*15*/], Local_1494[0 /*15*/].f_13, "lkheat", 1);
	vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[0 /*15*/], 7000f);
	vehicle::_0x1F2E4E06DEA8992B(Local_1494[0 /*15*/], 1);
	Local_1494[1 /*15*/] = vehicle::create_vehicle(Local_1494[1 /*15*/].f_1, Local_1494[1 /*15*/].f_3, 0f, 1, true);
	vehicle::start_playback_recorded_vehicle(Local_1494[1 /*15*/], Local_1494[1 /*15*/].f_13, "lkheat", 1);
	vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[1 /*15*/], 7000f);
	vehicle::_0x1F2E4E06DEA8992B(Local_1494[1 /*15*/], 1);
	Local_1494[2 /*15*/] = vehicle::create_vehicle(Local_1494[2 /*15*/].f_1, Local_1494[2 /*15*/].f_3, 0f, 1, true);
	vehicle::start_playback_recorded_vehicle(Local_1494[2 /*15*/], Local_1494[2 /*15*/].f_13, "lkheat", 1);
	vehicle::_0x1F2E4E06DEA8992B(Local_1494[2 /*15*/], 1);
	Local_1494[3 /*15*/] = vehicle::create_vehicle(Local_1494[3 /*15*/].f_1, Local_1494[3 /*15*/].f_3, 0f, 1, true);
	vehicle::start_playback_recorded_vehicle(Local_1494[3 /*15*/], Local_1494[3 /*15*/].f_13, "lkheat", 1);
	vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[3 /*15*/], 7000f);
	vehicle::_0x1F2E4E06DEA8992B(Local_1494[3 /*15*/], 1);
	Local_1494[7 /*15*/] = vehicle::create_vehicle(Local_1494[7 /*15*/].f_1, Local_1494[7 /*15*/].f_3, 0f, 1, true);
	vehicle::start_playback_recorded_vehicle(Local_1494[7 /*15*/], Local_1494[7 /*15*/].f_13, "lkheat", 1);
	vehicle::skip_time_in_playback_recorded_vehicle(Local_1494[7 /*15*/], 4200f);
	vehicle::_0x1F2E4E06DEA8992B(Local_1494[7 /*15*/], 1);
}

int func_861(var uParam0)//Position - 0x88C11
{
	int iVar0;
	int iVar1;
	char* sVar2;
	char* sVar3;
	char* sVar4;
	int iVar5;
	
	iVar0 = cam::get_cam_spline_node_index(uParam0->f_1);
	iVar1 = cam::get_cam_spline_node_index(uParam0->f_1) + 1;
	if (iVar1 > uParam0->f_1217)
	{
		iVar1 = uParam0->f_1217;
	}
	if (iVar1 < (uParam0->f_1217 - 1))
	{
		switch (uParam0->f_10[iVar1 /*57*/].f_34)
		{
			case 0:
				fLocal_1125 = func_874(uParam0->f_10[iVar1 /*57*/].f_33, uParam0->f_10[iVar1 + 1 /*57*/].f_33, cam::get_cam_spline_node_phase(uParam0->f_1));
				break;
			
			case 1:
				fLocal_1125 = func_872(uParam0->f_10[iVar1 /*57*/].f_33, uParam0->f_10[iVar1 + 1 /*57*/].f_33, func_873((cam::get_cam_spline_node_phase(uParam0->f_1) * (1f / uParam0->f_10[iVar1 /*57*/].f_35)), 0f, 1f));
				break;
			
			case 2:
				fLocal_1125 = func_871(uParam0->f_10[iVar1 /*57*/].f_33, uParam0->f_10[iVar1 + 1 /*57*/].f_33, func_873((cam::get_cam_spline_node_phase(uParam0->f_1) * (1f / uParam0->f_10[iVar1 /*57*/].f_35)), 0f, 1f));
				break;
			
			case 3:
				fLocal_1125 = func_869(uParam0->f_10[iVar1 /*57*/].f_33, uParam0->f_10[iVar1 + 1 /*57*/].f_33, func_873((cam::get_cam_spline_node_phase(uParam0->f_1) * (1f / uParam0->f_10[iVar1 /*57*/].f_35)), 0f, 1f));
				break;
		}
		gameplay::set_time_scale(fLocal_1125);
	}
	else
	{
		gameplay::set_time_scale(1f);
	}
	if (uParam0->f_10[iVar0 /*57*/].f_2 == 8)
	{
		func_868(uParam0, iVar0, 0);
	}
	if (!uParam0->f_10[iVar1 /*57*/].f_56)
	{
		if (uParam0->f_10[iVar1 /*57*/].f_50 != 0)
		{
			if (!uParam0->f_1231 || (iVar1 > 1 && uParam0->f_10[iVar0 /*57*/].f_50 != uParam0->f_10[iVar1 /*57*/].f_50))
			{
				if (cam::get_cam_spline_node_phase(uParam0->f_1) >= uParam0->f_10[iVar1 /*57*/].f_52)
				{
					switch (uParam0->f_10[iVar1 /*57*/].f_50)
					{
						case 1:
							sVar2 = "switch_cam_2";
							break;
						
						case 2:
							sVar2 = "switch_cam_1";
							break;
						
						case 3:
							sVar2 = "SwitchHUDIn";
							break;
					}
					switch (uParam0->f_10[iVar1 /*57*/].f_50)
					{
						case 1:
						case 2:
							func_867(uParam0, iVar1);
							if (uParam0->f_10[iVar1 /*57*/].f_51 > 0f)
							{
								graphics::set_transition_timecycle_modifier(sVar2, uParam0->f_10[iVar1 /*57*/].f_51);
							}
							else
							{
								graphics::set_timecycle_modifier(sVar2);
							}
							break;
						
						case 3:
							func_867(uParam0, iVar1);
							graphics::_start_screen_effect(sVar2, system::floor((1000f * uParam0->f_10[iVar1 /*57*/].f_51)), 0);
							break;
					}
					uParam0->f_1231 = 1;
					uParam0->f_10[iVar1 /*57*/].f_56 = 1;
				}
			}
		}
		else if (uParam0->f_1231)
		{
			if (cam::get_cam_spline_node_phase(uParam0->f_1) >= uParam0->f_10[iVar1 /*57*/].f_52)
			{
				if (graphics::get_timecycle_modifier_index() != -1)
				{
					graphics::_0x1CBA05AE7BD7EE05(uParam0->f_10[iVar1 /*57*/].f_51);
					uParam0->f_1231 = 0;
					uParam0->f_10[iVar1 /*57*/].f_56 = 1;
				}
				else if (!gameplay::are_strings_equal(func_866(), ""))
				{
					func_867(uParam0, iVar1);
					uParam0->f_1231 = 0;
					uParam0->f_10[iVar1 /*57*/].f_56 = 1;
				}
			}
		}
	}
	if (uParam0->f_10[iVar1 /*57*/].f_36)
	{
		if (!uParam0->f_10[iVar1 /*57*/].f_44)
		{
			if (cam::get_cam_spline_node_phase(uParam0->f_1) >= uParam0->f_10[iVar1 /*57*/].f_38)
			{
				func_865(uParam0, iVar1);
				uParam0->f_10[iVar1 /*57*/].f_44 = 1;
			}
		}
	}
	if (uParam0->f_10[iVar0 /*57*/].f_36)
	{
		if (!uParam0->f_10[iVar0 /*57*/].f_44)
		{
			func_865(uParam0, iVar0);
			uParam0->f_10[iVar0 /*57*/].f_44 = 1;
		}
	}
	graphics::_0xE3E2C1B4C59DBC77(6);
	if (iVar1 < (uParam0->f_1217 - 1))
	{
		if (!uParam0->f_10[iVar1 /*57*/].f_55)
		{
			if (uParam0->f_10[iVar1 /*57*/].f_54)
			{
				cam::stop_cam_shaking(uParam0->f_10[iVar1 /*57*/].f_1, 1);
			}
			if (uParam0->f_10[iVar1 /*57*/].f_53 != 0)
			{
				sVar4 = "shake_cam_all@";
				if (uParam0->f_10[iVar1 /*57*/].f_53 == 1)
				{
					sVar3 = "light";
				}
				else if (uParam0->f_10[iVar1 /*57*/].f_53 == 2)
				{
					sVar3 = "medium";
				}
				else if (uParam0->f_10[iVar1 /*57*/].f_53 == 3)
				{
					sVar3 = "heavy";
				}
				cam::animated_shake_cam(uParam0->f_10[iVar1 /*57*/].f_1, sVar4, sVar3, "", uParam0->f_10[iVar1 /*57*/].f_23);
			}
			else
			{
				cam::shake_cam(uParam0->f_1, "SKY_DIVING_SHAKE", uParam0->f_10[iVar1 /*57*/].f_23);
			}
			uParam0->f_10[iVar1 /*57*/].f_55 = 1;
		}
	}
	if (uParam0->f_10[iVar0 /*57*/].f_45)
	{
		func_864(0, 0, 1, 1);
	}
	else
	{
		func_863(3, 3, 0, 0);
	}
	if (cam::get_cam_spline_node_index(uParam0->f_1) < uParam0->f_1217)
	{
		if (uParam0->f_10[cam::get_cam_spline_node_index(uParam0->f_1) + 1 /*57*/].f_46)
		{
			iVar5 = true;
		}
	}
	if (uParam0->f_10[cam::get_cam_spline_node_index(uParam0->f_1) /*57*/].f_46)
	{
		iVar5 = true;
	}
	if (iVar5)
	{
		cam::set_use_hi_dof();
	}
	func_862(uParam0);
	return iVar0;
}

void func_862(var uParam0)//Position - 0x890C8
{
	if (uParam0->f_1233 >= 0f)
	{
		if (cam::get_cam_spline_phase(uParam0->f_1) >= uParam0->f_1233 && cam::get_cam_spline_phase(uParam0->f_1) < uParam0->f_1234)
		{
			if (uParam0->f_1238 == -1)
			{
				if (uParam0->f_1235)
				{
					uParam0->f_1238 = audio::get_sound_id();
					audio::play_sound_frontend(uParam0->f_1238, "Hit_In", "PLAYER_SWITCH_CUSTOM_SOUNDSET", 1);
				}
			}
			if (uParam0->f_1239 == -1)
			{
				if (uParam0->f_1236)
				{
					uParam0->f_1239 = audio::get_sound_id();
					audio::play_sound_frontend(uParam0->f_1239, "Camera_Move_Loop", "PLAYER_SWITCH_CUSTOM_SOUNDSET", 1);
				}
			}
		}
	}
	if (uParam0->f_1234 >= 0f)
	{
		if (cam::get_cam_spline_phase(uParam0->f_1) >= uParam0->f_1234 || cam::get_cam_spline_phase(uParam0->f_1) == 1f)
		{
			if (uParam0->f_1239 != -1)
			{
				if (uParam0->f_1236)
				{
					audio::stop_sound(uParam0->f_1239);
					uParam0->f_1239 = -1;
				}
			}
			if (uParam0->f_1240 == -1)
			{
				if (uParam0->f_1237)
				{
					uParam0->f_1240 = audio::get_sound_id();
					audio::play_sound_frontend(uParam0->f_1240, "Hit_Out", "PLAYER_SWITCH_CUSTOM_SOUNDSET", 1);
				}
			}
		}
	}
}

void func_863(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x891D3
{
	streaming::set_ped_population_budget(iParam0);
	streaming::set_vehicle_population_budget(iParam1);
	streaming::set_reduce_ped_model_budget(iParam2);
	streaming::set_reduce_vehicle_model_budget(iParam3);
}

void func_864(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x891F3
{
	streaming::set_ped_population_budget(iParam0);
	streaming::set_vehicle_population_budget(iParam1);
	streaming::set_reduce_ped_model_budget(iParam2);
	streaming::set_reduce_vehicle_model_budget(iParam3);
}

void func_865(var uParam0, int iParam1)//Position - 0x89213
{
	char* sVar0;
	
	switch (uParam0->f_10[iParam1 /*57*/].f_37)
	{
		case 0:
			graphics::set_flash(uParam0->f_10[iParam1 /*57*/].f_39, uParam0->f_10[iParam1 /*57*/].f_40, uParam0->f_10[iParam1 /*57*/].f_41, uParam0->f_10[iParam1 /*57*/].f_42, uParam0->f_10[iParam1 /*57*/].f_43);
			break;
		
		case 1:
			sVar0 = "DefaultFlash";
			break;
		
		case 2:
			sVar0 = "FocusOut";
			break;
		
		case 3:
			sVar0 = "MinigameEndNeutral";
			break;
		
		case 4:
			sVar0 = "MinigameTransitionOut";
			break;
		
		case 5:
			sVar0 = "PauseMenuOut";
			break;
		
		case 6:
			sVar0 = "SwitchShortNeutralIn";
			break;
		
		case 7:
			sVar0 = "SwitchShortNeutralMid";
			break;
		
		case 8:
			sVar0 = "SwitchShortMichaelMid";
			break;
		
		case 9:
			sVar0 = "SwitchShortMichaelIn";
			break;
		
		case 10:
			sVar0 = "SwitchSceneMichael";
			break;
		
		case 11:
			sVar0 = "SwitchShortTrevorMid";
			break;
		
		case 12:
			sVar0 = "SwitchShortFranklinIn";
			break;
		
		case 13:
			sVar0 = "SwitchShortFranklinMid";
			break;
		
		case 14:
			sVar0 = "SwitchShortTrevorIn";
			break;
		
		case 15:
			sVar0 = "SwitchOpenFranklinOut";
			break;
		
		case 16:
			sVar0 = "SwitchOpenMichaelIn";
			break;
		
		case 17:
			sVar0 = "SwitchOpenMichaelOut";
			break;
		
		case 18:
			sVar0 = "SwitchOpenTrevorIn";
			break;
		
		case 19:
			sVar0 = "SwitchOpenTrevorOut";
			break;
		
		case 20:
			sVar0 = "SwitchSceneFranklin";
			break;
		
		case 21:
			sVar0 = "SwitchSceneTrevor";
			break;
	}
	if (uParam0->f_10[iParam1 /*57*/].f_37 > 0)
	{
		graphics::_start_screen_effect(sVar0, 0, 0);
	}
}

char* func_866()//Position - 0x893CF
{
	char* sVar0;
	
	sVar0 = "";
	if (graphics::_get_screen_effect_is_active("SwitchSceneMichael"))
	{
		sVar0 = "SwitchSceneMichael";
	}
	else if (graphics::_get_screen_effect_is_active("SwitchSceneFranklin"))
	{
		sVar0 = "SwitchSceneFranklin";
	}
	else if (graphics::_get_screen_effect_is_active("SwitchSceneTrevor"))
	{
		sVar0 = "SwitchSceneTrevor";
	}
	else if (graphics::_get_screen_effect_is_active("SwitchSceneNeutral"))
	{
		sVar0 = "SwitchSceneNeutral";
	}
	else if (graphics::_get_screen_effect_is_active("SwitchHUDIn"))
	{
		sVar0 = "SwitchHUDIn";
	}
	return sVar0;
}

void func_867(var uParam0, int iParam1)//Position - 0x8944A
{
	if (gameplay::are_strings_equal(func_866(), "SwitchHUDIn") && uParam0->f_10[iParam1 /*57*/].f_51 > 0f)
	{
		graphics::_stop_screen_effect(func_866());
		graphics::_start_screen_effect("SwitchHUDOut", system::floor(uParam0->f_10[iParam1 /*57*/].f_51) * 1000, 0);
	}
	else
	{
		graphics::_stop_screen_effect(func_866());
	}
}

void func_868(var uParam0, int iParam1, int iParam2)//Position - 0x894A1
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < uParam0->f_10)
	{
		if ((iParam1 >= uParam0->f_1218 && iVar0 >= uParam0->f_1218) || iParam2)
		{
			if (uParam0->f_10[uParam0->f_10[iVar0 /*57*/].f_27 /*57*/].f_4 || uParam0->f_10[uParam0->f_10[iVar0 /*57*/].f_27 /*57*/].f_2 == 2)
			{
				cam::set_cam_coord(uParam0->f_10[iVar0 /*57*/].f_1, cam::get_gameplay_cam_coord() + uParam0->f_10[iVar0 /*57*/].f_24);
				cam::set_cam_rot(uParam0->f_10[iVar0 /*57*/].f_1, cam::get_gameplay_cam_rot(2), 2);
			}
		}
		iVar0++;
	}
}

float func_869(float fParam0, float fParam1, float fParam2)//Position - 0x89540
{
	float fVar0;
	
	fVar0 = (0.5f * (1f - system::cos(func_870((fParam2 * 3.141593f)))));
	return ((fParam0 * (1f - fVar0)) + (fParam1 * fVar0));
}

float func_870(float fParam0)//Position - 0x8956F
{
	return (fParam0 * 57.29578f);
}

float func_871(float fParam0, float fParam1, float fParam2)//Position - 0x8957F
{
	float fVar0;
	
	fVar0 = system::sin(func_870(((fParam2 * 3.141593f) * 0.5f)));
	return ((fParam0 * (1f - fVar0)) + (fParam1 * fVar0));
}

float func_872(float fParam0, float fParam1, float fParam2)//Position - 0x895AC
{
	float fVar0;
	
	fVar0 = (1f - system::cos(func_870(((fParam2 * 3.141593f) * 0.5f))));
	return ((fParam0 * (1f - fVar0)) + (fParam1 * fVar0));
}

float func_873(float fParam0, float fParam1, float fParam2)//Position - 0x895DB
{
	if (fParam0 > fParam2)
	{
		return fParam2;
	}
	else if (fParam0 < fParam1)
	{
		return fParam1;
	}
	return fParam0;
}

float func_874(float fParam0, float fParam1, float fParam2)//Position - 0x89602
{
	return (((1f - fParam2) * fParam0) + (fParam2 * fParam1));
}

void func_875()//Position - 0x89617
{
	streaming::_0xA76359FC80B2438E(1f);
	fLocal_7602 = (fLocal_7602 + (gameplay::get_frame_time() * 1000f));
	if (fLocal_7602 < 0f)
	{
		fLocal_7602 = 0f;
	}
	streaming::set_srl_time(fLocal_7602);
}

void func_876(int iParam0)//Position - 0x89648
{
	if (entity::does_entity_exist(iParam0))
	{
		if (!entity::is_entity_dead(iParam0, 0))
		{
			ai::clear_ped_tasks_immediately(iParam0);
			entity::set_entity_coords(iParam0, vLocal_7562, 1, false, 0, 1);
			entity::set_entity_heading(iParam0, fLocal_7565);
			entity::freeze_entity_position(iParam0, true);
			vLocal_2957.x = object::create_object(vLocal_2957.y, entity::get_offset_from_entity_in_world_coords(iParam0, 0f, 0f, 40f), 1, true, false);
			if (entity::does_entity_exist(vLocal_2957.x))
			{
				if (!entity::is_entity_dead(vLocal_2957.x, 0))
				{
					entity::attach_entity_to_entity(vLocal_2957.x, iParam0, ped::get_ped_bone_index(iParam0, 60309), 0f, 0f, 0f, 0f, 0f, 0f, 0, 0, 0, 0, 2, 1);
				}
			}
			func_856(iParam0, 0);
		}
	}
}

int func_877(var uParam0, char* sParam1, char* sParam2, char* sParam3, int iParam4, int iParam5, int iParam6)//Position - 0x896E1
{
	func_700(uParam0, 145, sParam1, iParam5, iParam6, 0);
	if (iParam4 > 7)
	{
		if (iParam4 < 12)
		{
			iParam4 = 7;
		}
	}
	Global_15719 = 0;
	Global_15726 = 0;
	Global_15721 = 0;
	Global_16703 = 1;
	Global_16705 = 0;
	Global_16709 = 0;
	StringCopy(&Global_16716, sParam3, 24);
	Global_2621441 = 0;
	return func_693(sParam2, iParam4, 0);
}

void func_878(var uParam0)//Position - 0x89735
{
	int iVar0;
	int iVar1;
	int iVar2;
	
	if (!func_892(uParam0))
	{
	}
	iVar0 = 0;
	uParam0->f_1232 = 0;
	func_891(uParam0);
	iVar1 = 0;
	while (iVar1 < 20)
	{
		uParam0->f_10[iVar1 /*57*/].f_44 = 0;
		iVar1++;
	}
	uParam0->f_1231 = 0;
	if (cam::does_cam_exist(uParam0->f_1))
	{
		cam::destroy_cam(uParam0->f_1, 0);
	}
	uParam0->f_1 = cam::create_camera(1665938388, 0);
	if (cam::does_cam_exist(uParam0->f_1))
	{
		iVar1 = 0;
		while (iVar1 < uParam0->f_1217)
		{
			func_882(uParam0, iVar1);
			if (uParam0->f_10[iVar1 /*57*/].f_4 || uParam0->f_10[iVar1 /*57*/].f_2 == 2)
			{
				if (func_881(uParam0, iVar1))
				{
					cam::_0x0FB82563989CF4FB(uParam0->f_1, uParam0->f_10[iVar1 /*57*/].f_1, uParam0->f_10[iVar1 /*57*/].f_5, 2);
				}
				else
				{
					cam::_0x609278246A29CA34(uParam0->f_1, uParam0->f_10[iVar1 /*57*/].f_5, 2);
				}
			}
			else
			{
				cam::_0x0FB82563989CF4FB(uParam0->f_1, uParam0->f_10[iVar1 /*57*/].f_1, uParam0->f_10[iVar1 /*57*/].f_5, 2);
			}
			if (func_881(uParam0, iVar1))
			{
				func_879(uParam0, iVar1);
			}
			if (uParam0->f_10[iVar1 /*57*/].f_28 > 0 && uParam0->f_10[iVar1 /*57*/].f_29 > 0f)
			{
				switch (uParam0->f_10[iVar1 /*57*/].f_28)
				{
					case 1:
						iVar0 = 4;
						break;
					
					case 2:
						iVar0 = 8;
						break;
					
					case 3:
						iVar0 = 16;
						break;
				}
				cam::_0x83B8201ED82A9A2D(uParam0->f_1, iVar1, iVar0, uParam0->f_10[iVar1 /*57*/].f_29);
			}
			iVar2 = 0;
			if (uParam0->f_10[iVar1 /*57*/].f_30)
			{
				iVar2++;
			}
			if (uParam0->f_10[iVar1 /*57*/].f_31)
			{
				iVar2 += 8;
			}
			cam::_0xA6385DEB180F319F(uParam0->f_1, iVar1, uParam0->f_10[iVar1 /*57*/].f_32);
			cam::_0x7BF1A54AE67AC070(uParam0->f_1, iVar1, iVar2);
			iVar1++;
		}
		if (uParam0->f_3)
		{
			if (uParam0->f_1219 >= 0)
			{
				cam::_0x609278246A29CA34(uParam0->f_1, uParam0->f_1219, 2);
			}
		}
		if (uParam0->f_2)
		{
			cam::_0xD1B0F412F109EA5D(uParam0->f_1, 0);
		}
		iVar1 = 0;
		while (iVar1 < 16)
		{
			if (uParam0->f_1151[iVar1 /*2*/].f_1 > -1f)
			{
				cam::override_cam_spline_velocity(uParam0->f_1, iVar1, uParam0->f_1151[iVar1 /*2*/], uParam0->f_1151[iVar1 /*2*/].f_1);
			}
			iVar1++;
		}
		iVar1 = 0;
		while (iVar1 < 16)
		{
			cam::override_cam_spline_motion_blur(uParam0->f_1, iVar1, uParam0->f_1184[iVar1 /*2*/], uParam0->f_1184[iVar1 /*2*/].f_1);
			iVar1++;
		}
		cam::_0x271017B9BA825366(uParam0->f_1, 0);
	}
}

void func_879(var uParam0, int iParam1)//Position - 0x899B2
{
	cam::attach_cam_to_entity(uParam0->f_10[iParam1 /*57*/].f_1, func_880(uParam0, iParam1, -1), entity::get_offset_from_entity_given_world_coords(func_880(uParam0, iParam1, -1), cam::get_gameplay_cam_coord()), 1);
}

int func_880(var uParam0, int iParam1, int iParam2)//Position - 0x899E3
{
	if (iParam2 != -1)
	{
		iParam1 = iParam2;
	}
	if (iParam1 < uParam0->f_1218 || (uParam0->f_1218 == 0 && iParam2 == -1))
	{
		if (entity::does_entity_exist(uParam0->f_7[0]))
		{
			return func_461(uParam0->f_7[0]);
		}
		else if (entity::does_entity_exist(uParam0->f_4[0]))
		{
			return func_461(uParam0->f_4[0]);
		}
	}
	else if (entity::does_entity_exist(uParam0->f_7[1]))
	{
		return func_461(uParam0->f_7[1]);
	}
	else if (entity::does_entity_exist(uParam0->f_4[1]))
	{
		return func_461(uParam0->f_4[1]);
	}
	return 0;
}

bool func_881(var uParam0, int iParam1)//Position - 0x89A90
{
	if (iParam1 == 0)
	{
		if ((uParam0->f_10[iParam1 /*57*/].f_2 == 2 || uParam0->f_10[iParam1 /*57*/].f_4) && (uParam0->f_10[iParam1 + 1 /*57*/].f_2 != 2 && uParam0->f_10[iParam1 + 1 /*57*/].f_4 == 0))
		{
			return true;
		}
	}
	if (iParam1 == 1)
	{
		if ((uParam0->f_10[iParam1 /*57*/].f_2 == 2 || uParam0->f_10[iParam1 /*57*/].f_4) && (uParam0->f_10[(iParam1 - 1) /*57*/].f_2 != 2 && uParam0->f_10[(iParam1 - 1) /*57*/].f_4 == 0))
		{
			return true;
		}
	}
	return false;
}

void func_882(var uParam0, int iParam1)//Position - 0x89B37
{
	float fVar0;
	vector3 vVar1;
	vector3 vVar4;
	vector3 vVar7;
	vector3 vVar10;
	vector3 vVar13;
	vector3 vVar16;
	vector3 vVar19;
	float fVar22;
	vector3 vVar23;
	vector3 vVar26;
	vector3 vVar29;
	vector3 vVar32;
	float fVar35;
	float fVar36;
	vector3 vVar37;
	vector3 vVar40;
	vector3 vVar43;
	float fVar46;
	vector3 vVar47;
	int iVar50;
	
	if (func_881(uParam0, iParam1))
	{
		func_890(uParam0, iParam1);
	}
	if (uParam0->f_10[iParam1 /*57*/].f_21 == 0f)
	{
		fVar0 = cam::get_gameplay_cam_fov();
	}
	else
	{
		fVar0 = uParam0->f_10[iParam1 /*57*/].f_21;
	}
	if (func_889(uParam0, iParam1))
	{
		func_888(uParam0, iParam1);
		if (iParam1 == (uParam0->f_1217 - 1))
		{
			uParam0->f_10[iParam1 /*57*/].f_54 = 0;
		}
	}
	if (iParam1 == (uParam0->f_1217 - 1))
	{
		uParam0->f_10[iParam1 /*57*/].f_54 = 0;
	}
	if (uParam0->f_10[iParam1 /*57*/].f_2 == 4)
	{
		if (uParam0->f_10[iParam1 /*57*/].f_3 > -1)
		{
			vVar1 = { func_887(uParam0, uParam0->f_10[iParam1 /*57*/].f_3) };
		}
		else
		{
			vVar1 = { uParam0->f_10[iParam1 /*57*/].f_13 };
		}
		if ((iParam1 == 0 || (iParam1 > 0 && uParam0->f_10[(iParam1 - 1) /*57*/].f_4)) || (iParam1 > 0 && uParam0->f_10[(iParam1 - 1) /*57*/].f_2 == 2))
		{
			vVar4 = { cam::get_gameplay_cam_coord() };
		}
		else
		{
			vVar4 = { uParam0->f_10[(iParam1 - 1) /*57*/].f_6 };
			if (func_886(uParam0, (iParam1 - 1)))
			{
				entity::get_entity_matrix(func_880(uParam0, (iParam1 - 1), -1), &vVar7, &vVar10, &vVar13, &vVar16);
				if (uParam0->f_10[iParam1 /*57*/].f_20)
				{
					vVar4 = { vVar16 + vVar7 * FtoV(uParam0->f_10[(iParam1 - 1) /*57*/].f_6.f_1) + vVar10 * FtoV(uParam0->f_10[(iParam1 - 1) /*57*/].f_6) + vVar13 * FtoV(uParam0->f_10[(iParam1 - 1) /*57*/].f_6.f_2) };
				}
				else
				{
					vVar4 = { vVar16 + uParam0->f_10[(iParam1 - 1) /*57*/].f_6 };
				}
			}
		}
		vVar19 = { vVar1 - vVar4 };
		fVar22 = (system::vmag(vVar19) - uParam0->f_10[iParam1 /*57*/].f_12);
		vVar19 = { func_584(vVar19) };
		vVar19 = { vVar19 * Vector(fVar22, fVar22, fVar22) };
		uParam0->f_10[iParam1 /*57*/].f_6 = { vVar4 + vVar19 };
		if (uParam0->f_10[iParam1 /*57*/].f_3 > -1)
		{
			uParam0->f_10[iParam1 /*57*/].f_13 = { vVar1 };
		}
	}
	else if (uParam0->f_10[iParam1 /*57*/].f_2 == 5 || uParam0->f_10[iParam1 /*57*/].f_2 == 6)
	{
		vVar23 = { 0f, 0f, 0f };
		if (entity::does_entity_exist(func_880(uParam0, uParam0->f_1218, -1)))
		{
			if (uParam0->f_10[iParam1 /*57*/].f_3 > -1)
			{
				vVar23 = { func_887(uParam0, uParam0->f_10[iParam1 /*57*/].f_3) };
			}
			else
			{
				vVar23 = { entity::get_entity_coords(func_880(uParam0, uParam0->f_1218, -1), 1) };
			}
		}
		vVar26 = { cam::get_gameplay_cam_rot(2) };
		vVar29 = { cam::get_gameplay_cam_coord() };
		vVar32 = { vVar23 - vVar29 };
		fVar35 = 0f;
		if (iParam1 < uParam0->f_1218 || uParam0->f_1218 == 0)
		{
			fVar35 = uParam0->f_10[iParam1 /*57*/].f_12;
		}
		fVar36 = (system::vmag(vVar32) - fVar35);
		vVar32 = { func_885(vVar26) };
		vVar29 = { vVar29 + vVar32 * Vector(fVar35, fVar35, fVar35) };
		if (iParam1 < uParam0->f_1218)
		{
			uParam0->f_10[iParam1 /*57*/].f_6 = { vVar29 };
		}
		else
		{
			uParam0->f_10[iParam1 /*57*/].f_6 = { vVar29 + vVar32 * FtoV((fVar36 - uParam0->f_10[iParam1 /*57*/].f_12)) };
		}
		uParam0->f_10[iParam1 /*57*/].f_9 = { vVar26 };
	}
	else if (uParam0->f_10[iParam1 /*57*/].f_2 == 7)
	{
		vVar37 = { uParam0->f_10[iParam1 /*57*/].f_13 };
		vVar40 = { entity::get_entity_coords(func_880(uParam0, iParam1, -1), 1) };
		vVar43 = { vVar37 - vVar40 };
		fVar46 = 0f;
		fVar46 = uParam0->f_10[iParam1 /*57*/].f_12;
		vVar43 = { func_584(vVar43) };
		vVar47 = { vVar40 + vVar43 * Vector(fVar46, fVar46, fVar46) };
		vVar47.z = (vVar47.y + uParam0->f_10[iParam1 /*57*/].f_16);
		uParam0->f_10[iParam1 /*57*/].f_6 = { vVar47 };
	}
	if (uParam0->f_10[iParam1 /*57*/].f_2 == 8)
	{
		func_884(uParam0, iParam1);
		fVar0 = uParam0->f_10[iParam1 /*57*/].f_21;
	}
	uParam0->f_10[iParam1 /*57*/].f_1 = cam::create_camera_with_params(26379945, uParam0->f_10[iParam1 /*57*/].f_6, uParam0->f_10[iParam1 /*57*/].f_9, fVar0, 1, 2);
	iVar50 = uParam0->f_10[iParam1 /*57*/].f_1;
	if (cam::does_cam_exist(uParam0->f_10[iParam1 /*57*/].f_1))
	{
		cam::set_cam_motion_blur_strength(iVar50, uParam0->f_10[iParam1 /*57*/].f_22);
		if (uParam0->f_10[iParam1 /*57*/].f_2 == 4)
		{
			cam::point_cam_at_coord(iVar50, uParam0->f_10[iParam1 /*57*/].f_13);
		}
		if (uParam0->f_10[iParam1 /*57*/].f_2 == 3 && uParam0->f_10[iParam1 /*57*/].f_3 > -1)
		{
			cam::point_cam_at_entity(iVar50, func_880(uParam0, iParam1, uParam0->f_10[iParam1 /*57*/].f_3), uParam0->f_10[iParam1 /*57*/].f_9, uParam0->f_10[iParam1 /*57*/].f_19);
		}
		if (uParam0->f_10[iParam1 /*57*/].f_2 == 6)
		{
			if (uParam0->f_10[iParam1 /*57*/].f_3 > -1)
			{
				cam::attach_cam_to_entity(iVar50, func_880(uParam0, iParam1, uParam0->f_10[iParam1 /*57*/].f_3), uParam0->f_10[iParam1 /*57*/].f_6 - func_887(uParam0, uParam0->f_10[iParam1 /*57*/].f_3) + uParam0->f_10[iParam1 /*57*/].f_24, 0);
			}
			else
			{
				cam::attach_cam_to_entity(iVar50, func_880(uParam0, iParam1, -1), uParam0->f_10[iParam1 /*57*/].f_9, 0);
			}
		}
		if (uParam0->f_10[iParam1 /*57*/].f_2 == 7)
		{
			if (uParam0->f_10[iParam1 /*57*/].f_17)
			{
				cam::attach_cam_to_entity(iVar50, func_880(uParam0, iParam1, -1), uParam0->f_10[iParam1 /*57*/].f_6 - entity::get_entity_coords(func_880(uParam0, iParam1, -1), 1), 0);
			}
		}
		if (func_886(uParam0, iParam1))
		{
			if (entity::does_entity_exist(func_880(uParam0, iParam1, -1)))
			{
				cam::attach_cam_to_entity(iVar50, func_880(uParam0, iParam1, -1), uParam0->f_10[iParam1 /*57*/].f_6, uParam0->f_10[iParam1 /*57*/].f_20);
				if (uParam0->f_10[iParam1 /*57*/].f_18)
				{
					if (uParam0->f_10[iParam1 /*57*/].f_3 > -1)
					{
						cam::point_cam_at_entity(iVar50, func_880(uParam0, iParam1, uParam0->f_10[iParam1 /*57*/].f_3), uParam0->f_10[iParam1 /*57*/].f_9, uParam0->f_10[iParam1 /*57*/].f_19);
					}
					else
					{
						cam::point_cam_at_entity(iVar50, func_880(uParam0, iParam1, -1), uParam0->f_10[iParam1 /*57*/].f_9, uParam0->f_10[iParam1 /*57*/].f_19);
					}
				}
			}
		}
		if (uParam0->f_10[iParam1 /*57*/].f_2 == 7)
		{
			cam::point_cam_at_coord(iVar50, uParam0->f_10[iParam1 /*57*/].f_13);
		}
		if (uParam0->f_10[iParam1 /*57*/].f_46)
		{
			func_883(uParam0, iParam1);
		}
	}
	uParam0->f_10[iParam1 /*57*/].f_55 = 0;
	uParam0->f_10[iParam1 /*57*/].f_56 = 0;
}

void func_883(var uParam0, int iParam1)//Position - 0x8A1C7
{
	cam::set_cam_near_dof(uParam0->f_10[iParam1 /*57*/].f_1, uParam0->f_10[iParam1 /*57*/].f_47);
	cam::set_cam_far_dof(uParam0->f_10[iParam1 /*57*/].f_1, uParam0->f_10[iParam1 /*57*/].f_47.f_1);
	cam::set_cam_dof_strength(uParam0->f_10[iParam1 /*57*/].f_1, uParam0->f_10[iParam1 /*57*/].f_47.f_2);
}

void func_884(var uParam0, int iParam1)//Position - 0x8A21B
{
	var uVar0;
	
	if (iParam1 == 0)
	{
		return;
	}
	uVar0 = uParam0->f_10[iParam1 /*57*/].f_27;
	if (uParam0->f_10[uVar0 /*57*/].f_4 || uParam0->f_10[uVar0 /*57*/].f_2 == 2)
	{
		uParam0->f_10[iParam1 /*57*/].f_6 = { cam::get_gameplay_cam_coord() + uParam0->f_10[iParam1 /*57*/].f_24 };
		uParam0->f_10[iParam1 /*57*/].f_9 = { cam::get_gameplay_cam_rot(2) };
	}
	else
	{
		uParam0->f_10[iParam1 /*57*/].f_6 = { uParam0->f_10[uVar0 /*57*/].f_6 + uParam0->f_10[iParam1 /*57*/].f_24 };
		uParam0->f_10[iParam1 /*57*/].f_9 = { uParam0->f_10[uVar0 /*57*/].f_9 };
	}
	uParam0->f_10[iParam1 /*57*/].f_21 = uParam0->f_10[uVar0 /*57*/].f_21;
	if (uParam0->f_10[iParam1 /*57*/].f_21 == 0f)
	{
		uParam0->f_10[iParam1 /*57*/].f_21 = cam::get_gameplay_cam_fov();
	}
	uParam0->f_10[iParam1 /*57*/].f_18 = uParam0->f_10[uVar0 /*57*/].f_18;
	uParam0->f_10[iParam1 /*57*/].f_12 = uParam0->f_10[uVar0 /*57*/].f_12;
	uParam0->f_10[iParam1 /*57*/].f_13 = { uParam0->f_10[uVar0 /*57*/].f_13 };
	uParam0->f_10[iParam1 /*57*/].f_19 = uParam0->f_10[uVar0 /*57*/].f_19;
	uParam0->f_10[iParam1 /*57*/].f_20 = uParam0->f_10[uVar0 /*57*/].f_20;
}

Vector3 func_885(vector3 vParam0)//Position - 0x8A35E
{
	vector3 vVar0;
	
	vVar0.x = system::cos(vParam0.x);
	vVar0.y = system::cos(vParam0.y);
	vVar0.z = system::sin(vParam0.x);
	vVar0.y = (vVar0.y * vVar0.x);
	vVar0.x = (vVar0.x * -system::sin(vParam0.y));
	return vVar0;
}

int func_886(var uParam0, int iParam1)//Position - 0x8A3A1
{
	int iVar0;
	
	iVar0 = 0;
	if (uParam0->f_10[iParam1 /*57*/].f_2 == 0)
	{
		iVar0 = 1;
	}
	if (uParam0->f_10[iParam1 /*57*/].f_2 == 1)
	{
		iVar0 = 1;
	}
	if (uParam0->f_10[iParam1 /*57*/].f_4 || uParam0->f_10[iParam1 /*57*/].f_2 == 2)
	{
		iVar0 = 0;
	}
	if (iParam1 > 0)
	{
		if (uParam0->f_10[iParam1 /*57*/].f_2 == 8)
		{
			if (uParam0->f_10[uParam0->f_10[iParam1 /*57*/].f_27 /*57*/].f_2 == 0)
			{
				iVar0 = 1;
			}
			if (uParam0->f_10[uParam0->f_10[iParam1 /*57*/].f_27 /*57*/].f_2 == 1)
			{
				iVar0 = 1;
			}
			if (uParam0->f_10[uParam0->f_10[iParam1 /*57*/].f_27 /*57*/].f_4 || uParam0->f_10[uParam0->f_10[iParam1 /*57*/].f_27 /*57*/].f_2 == 2)
			{
				iVar0 = 0;
			}
		}
	}
	if (iParam1 < (uParam0->f_1217 - 1))
	{
		if (uParam0->f_10[iParam1 /*57*/].f_54)
		{
			if (((((uParam0->f_10[iParam1 + 1 /*57*/].f_2 == 2 || uParam0->f_10[iParam1 + 1 /*57*/].f_4) || uParam0->f_10[iParam1 + 1 /*57*/].f_2 == 3) || uParam0->f_10[iParam1 + 1 /*57*/].f_2 == 4) || uParam0->f_10[iParam1 + 1 /*57*/].f_2 == 5) || uParam0->f_10[iParam1 + 1 /*57*/].f_2 == 6)
			{
				iVar0 = 0;
			}
		}
	}
	return iVar0;
}

Vector3 func_887(var uParam0, int iParam1)//Position - 0x8A4FA
{
	if (iParam1 < 2)
	{
		if (entity::does_entity_exist(uParam0->f_4[iParam1]))
		{
			return entity::get_entity_coords(uParam0->f_4[iParam1], 1);
		}
		if (entity::does_entity_exist(uParam0->f_7[iParam1]))
		{
			return entity::get_entity_coords(uParam0->f_7[iParam1], 1);
		}
	}
	return 0f, 0f, 0f;
}

void func_888(var uParam0, int iParam1)//Position - 0x8A549
{
	if (iParam1 < (uParam0->f_1217 - 1))
	{
		uParam0->f_10[iParam1 /*57*/].f_5 = 0;
		uParam0->f_10[iParam1 /*57*/].f_6 = { uParam0->f_10[iParam1 + 1 /*57*/].f_6 };
		uParam0->f_10[iParam1 /*57*/].f_9 = { uParam0->f_10[iParam1 + 1 /*57*/].f_9 };
		uParam0->f_10[iParam1 /*57*/].f_18 = uParam0->f_10[iParam1 + 1 /*57*/].f_18;
		uParam0->f_10[iParam1 /*57*/].f_21 = uParam0->f_10[iParam1 + 1 /*57*/].f_21;
		uParam0->f_10[iParam1 /*57*/].f_22 = uParam0->f_10[iParam1 + 1 /*57*/].f_22;
		uParam0->f_10[iParam1 /*57*/].f_23 = uParam0->f_10[iParam1 + 1 /*57*/].f_23;
		uParam0->f_10[iParam1 /*57*/].f_28 = uParam0->f_10[iParam1 + 1 /*57*/].f_28;
		uParam0->f_10[iParam1 /*57*/].f_29 = uParam0->f_10[iParam1 + 1 /*57*/].f_29;
		uParam0->f_10[iParam1 /*57*/].f_30 = uParam0->f_10[iParam1 + 1 /*57*/].f_30;
		uParam0->f_10[iParam1 /*57*/].f_31 = uParam0->f_10[iParam1 + 1 /*57*/].f_31;
		uParam0->f_10[iParam1 /*57*/].f_33 = uParam0->f_10[iParam1 + 1 /*57*/].f_33;
		uParam0->f_10[iParam1 /*57*/].f_34 = uParam0->f_10[iParam1 + 1 /*57*/].f_34;
		uParam0->f_10[iParam1 /*57*/].f_35 = uParam0->f_10[iParam1 + 1 /*57*/].f_35;
		uParam0->f_10[iParam1 /*57*/].f_36 = 0;
		uParam0->f_10[iParam1 /*57*/].f_39 = 0f;
		uParam0->f_10[iParam1 /*57*/].f_40 = 0f;
		uParam0->f_10[iParam1 /*57*/].f_41 = 0;
		uParam0->f_10[iParam1 /*57*/].f_42 = 0;
		uParam0->f_10[iParam1 /*57*/].f_43 = 0;
		uParam0->f_10[iParam1 /*57*/].f_46 = uParam0->f_10[iParam1 + 1 /*57*/].f_46;
		uParam0->f_10[iParam1 /*57*/].f_4 = uParam0->f_10[iParam1 + 1 /*57*/].f_4;
		uParam0->f_10[iParam1 /*57*/].f_12 = uParam0->f_10[iParam1 + 1 /*57*/].f_12;
		uParam0->f_10[iParam1 /*57*/].f_13 = { uParam0->f_10[iParam1 + 1 /*57*/].f_13 };
		uParam0->f_10[iParam1 /*57*/].f_19 = uParam0->f_10[iParam1 + 1 /*57*/].f_19;
		uParam0->f_10[iParam1 /*57*/].f_20 = uParam0->f_10[iParam1 + 1 /*57*/].f_20;
		uParam0->f_10[iParam1 /*57*/].f_50 = uParam0->f_10[iParam1 + 1 /*57*/].f_50;
		uParam0->f_10[iParam1 /*57*/].f_45 = uParam0->f_10[iParam1 + 1 /*57*/].f_45;
	}
}

bool func_889(var uParam0, int iParam1)//Position - 0x8A784
{
	if (iParam1 > 0 && iParam1 < (uParam0->f_1217 - 1))
	{
		if (uParam0->f_10[iParam1 /*57*/].f_54)
		{
			return true;
		}
	}
	return false;
}

void func_890(var uParam0, int iParam1)//Position - 0x8A7B4
{
	uParam0->f_10[iParam1 /*57*/].f_6 = { cam::get_gameplay_cam_coord() };
	uParam0->f_10[iParam1 /*57*/].f_9 = { cam::get_gameplay_cam_rot(2) };
	uParam0->f_10[iParam1 /*57*/].f_21 = cam::get_gameplay_cam_fov();
}

void func_891(var uParam0)//Position - 0x8A7EB
{
	audio::stop_sound(uParam0->f_1240);
	audio::stop_sound(uParam0->f_1238);
	audio::stop_sound(uParam0->f_1239);
	uParam0->f_1240 = -1;
	uParam0->f_1238 = -1;
	uParam0->f_1239 = -1;
}

bool func_892(var uParam0)//Position - 0x8A820
{
	*uParam0 = *uParam0;
	if (func_893(uParam0))
	{
		streaming::request_anim_dict("shake_cam_all@");
		if (streaming::has_anim_dict_loaded("shake_cam_all@"))
		{
			return true;
		}
		return false;
	}
	return true;
}

int func_893(var uParam0)//Position - 0x8A852
{
	int iVar0;
	int iVar1;
	
	iVar0 = 0;
	iVar1 = 0;
	while (iVar1 < uParam0->f_1217)
	{
		if (uParam0->f_10[iVar1 /*57*/].f_53 != 0)
		{
			iVar0 = 1;
		}
		iVar1++;
	}
	return iVar0;
}

void func_894(var uParam0, int iParam1, var uParam2)//Position - 0x8A886
{
	if (!*uParam0)
	{
		uParam0->f_10[0 /*57*/].f_2 = 0;
		uParam0->f_10[0 /*57*/].f_3 = -1;
		uParam0->f_10[0 /*57*/].f_4 = 0;
		uParam0->f_10[0 /*57*/].f_5 = 0;
		uParam0->f_10[0 /*57*/].f_6 = { -5.375f, -4.6971f, 1.3159f };
		uParam0->f_10[0 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[0 /*57*/].f_12 = 0f;
		uParam0->f_10[0 /*57*/].f_9 = { -2.9126f, 1.2595f, 0.9778f };
		uParam0->f_10[0 /*57*/].f_18 = 1;
		uParam0->f_10[0 /*57*/].f_19 = 1;
		uParam0->f_10[0 /*57*/].f_20 = 1;
		uParam0->f_10[0 /*57*/].f_21 = 45f;
		uParam0->f_10[0 /*57*/].f_50 = 0;
		uParam0->f_10[0 /*57*/].f_51 = 0f;
		uParam0->f_10[0 /*57*/].f_52 = 0f;
		uParam0->f_10[0 /*57*/].f_22 = 0f;
		uParam0->f_10[0 /*57*/].f_53 = 0;
		uParam0->f_10[0 /*57*/].f_23 = 0f;
		uParam0->f_10[0 /*57*/].f_28 = 1;
		uParam0->f_10[0 /*57*/].f_29 = 1f;
		uParam0->f_10[0 /*57*/].f_32 = 0f;
		uParam0->f_10[0 /*57*/].f_30 = 1;
		uParam0->f_10[0 /*57*/].f_31 = 0;
		uParam0->f_10[0 /*57*/].f_33 = 1f;
		uParam0->f_10[0 /*57*/].f_34 = 0;
		uParam0->f_10[0 /*57*/].f_35 = 0f;
		uParam0->f_10[0 /*57*/].f_36 = 0;
		uParam0->f_10[0 /*57*/].f_37 = 0;
		uParam0->f_10[0 /*57*/].f_39 = 0f;
		uParam0->f_10[0 /*57*/].f_40 = 0f;
		uParam0->f_10[0 /*57*/].f_41 = 0;
		uParam0->f_10[0 /*57*/].f_42 = 0;
		uParam0->f_10[0 /*57*/].f_43 = 0;
		uParam0->f_10[0 /*57*/].f_38 = 0f;
		uParam0->f_10[0 /*57*/].f_45 = 0;
		uParam0->f_10[0 /*57*/].f_46 = 0;
		uParam0->f_10[0 /*57*/].f_47 = 0f;
		uParam0->f_10[0 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[0 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[1 /*57*/].f_2 = 0;
		uParam0->f_10[1 /*57*/].f_3 = -1;
		uParam0->f_10[1 /*57*/].f_4 = 0;
		uParam0->f_10[1 /*57*/].f_5 = 3500;
		uParam0->f_10[1 /*57*/].f_6 = { -4.9301f, -3.6343f, 1.3798f };
		uParam0->f_10[1 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[1 /*57*/].f_12 = 0f;
		uParam0->f_10[1 /*57*/].f_9 = { -2.9214f, 1.2467f, 1.1996f };
		uParam0->f_10[1 /*57*/].f_18 = 1;
		uParam0->f_10[1 /*57*/].f_19 = 1;
		uParam0->f_10[1 /*57*/].f_20 = 1;
		uParam0->f_10[1 /*57*/].f_21 = 45f;
		uParam0->f_10[1 /*57*/].f_50 = 0;
		uParam0->f_10[1 /*57*/].f_51 = 0f;
		uParam0->f_10[1 /*57*/].f_52 = 0f;
		uParam0->f_10[1 /*57*/].f_22 = 0f;
		uParam0->f_10[1 /*57*/].f_53 = 0;
		uParam0->f_10[1 /*57*/].f_23 = 0f;
		uParam0->f_10[1 /*57*/].f_28 = 2;
		uParam0->f_10[1 /*57*/].f_29 = 1f;
		uParam0->f_10[1 /*57*/].f_32 = 0f;
		uParam0->f_10[1 /*57*/].f_30 = 1;
		uParam0->f_10[1 /*57*/].f_31 = 0;
		uParam0->f_10[1 /*57*/].f_33 = 1f;
		uParam0->f_10[1 /*57*/].f_34 = 0;
		uParam0->f_10[1 /*57*/].f_35 = 0f;
		uParam0->f_10[1 /*57*/].f_36 = 0;
		uParam0->f_10[1 /*57*/].f_37 = 0;
		uParam0->f_10[1 /*57*/].f_39 = 0f;
		uParam0->f_10[1 /*57*/].f_40 = 0f;
		uParam0->f_10[1 /*57*/].f_41 = 0;
		uParam0->f_10[1 /*57*/].f_42 = 0;
		uParam0->f_10[1 /*57*/].f_43 = 0;
		uParam0->f_10[1 /*57*/].f_38 = 0f;
		uParam0->f_10[1 /*57*/].f_45 = 0;
		uParam0->f_10[1 /*57*/].f_46 = 0;
		uParam0->f_10[1 /*57*/].f_47 = 0f;
		uParam0->f_10[1 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[1 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[2 /*57*/].f_2 = 0;
		uParam0->f_10[2 /*57*/].f_3 = -1;
		uParam0->f_10[2 /*57*/].f_4 = 0;
		uParam0->f_10[2 /*57*/].f_5 = 600;
		uParam0->f_10[2 /*57*/].f_6 = { -4.984f, -3.4091f, 6.9017f };
		uParam0->f_10[2 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[2 /*57*/].f_12 = 0f;
		uParam0->f_10[2 /*57*/].f_9 = { -3.2586f, 0.8236f, 7.1985f };
		uParam0->f_10[2 /*57*/].f_18 = 1;
		uParam0->f_10[2 /*57*/].f_19 = 1;
		uParam0->f_10[2 /*57*/].f_20 = 1;
		uParam0->f_10[2 /*57*/].f_21 = 45f;
		uParam0->f_10[2 /*57*/].f_50 = 0;
		uParam0->f_10[2 /*57*/].f_51 = 0f;
		uParam0->f_10[2 /*57*/].f_52 = 0f;
		uParam0->f_10[2 /*57*/].f_22 = 1f;
		uParam0->f_10[2 /*57*/].f_53 = 0;
		uParam0->f_10[2 /*57*/].f_23 = 0f;
		uParam0->f_10[2 /*57*/].f_28 = 0;
		uParam0->f_10[2 /*57*/].f_29 = 0f;
		uParam0->f_10[2 /*57*/].f_32 = 0f;
		uParam0->f_10[2 /*57*/].f_30 = 1;
		uParam0->f_10[2 /*57*/].f_31 = 0;
		uParam0->f_10[2 /*57*/].f_33 = 1f;
		uParam0->f_10[2 /*57*/].f_34 = 0;
		uParam0->f_10[2 /*57*/].f_35 = 0f;
		uParam0->f_10[2 /*57*/].f_36 = 1;
		uParam0->f_10[2 /*57*/].f_37 = 0;
		uParam0->f_10[2 /*57*/].f_39 = 0f;
		uParam0->f_10[2 /*57*/].f_40 = 200f;
		uParam0->f_10[2 /*57*/].f_41 = 100;
		uParam0->f_10[2 /*57*/].f_42 = 100;
		uParam0->f_10[2 /*57*/].f_43 = 800;
		uParam0->f_10[2 /*57*/].f_38 = 0.4f;
		uParam0->f_10[2 /*57*/].f_45 = 0;
		uParam0->f_10[2 /*57*/].f_46 = 0;
		uParam0->f_10[2 /*57*/].f_47 = 0f;
		uParam0->f_10[2 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[2 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[3 /*57*/].f_54 = 1;
		uParam0->f_10[4 /*57*/].f_2 = 0;
		uParam0->f_10[4 /*57*/].f_3 = -1;
		uParam0->f_10[4 /*57*/].f_4 = 0;
		uParam0->f_10[4 /*57*/].f_5 = 0;
		uParam0->f_10[4 /*57*/].f_6 = { -0.1211f, 1.082f, -0.0704f };
		uParam0->f_10[4 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[4 /*57*/].f_12 = 0f;
		uParam0->f_10[4 /*57*/].f_9 = { -14.6695f, -0.002f, 170.824f };
		uParam0->f_10[4 /*57*/].f_18 = 0;
		uParam0->f_10[4 /*57*/].f_19 = 0;
		uParam0->f_10[4 /*57*/].f_20 = 0;
		uParam0->f_10[4 /*57*/].f_21 = 45f;
		uParam0->f_10[4 /*57*/].f_50 = 0;
		uParam0->f_10[4 /*57*/].f_51 = 0f;
		uParam0->f_10[4 /*57*/].f_52 = 0f;
		uParam0->f_10[4 /*57*/].f_22 = 1f;
		uParam0->f_10[4 /*57*/].f_53 = 0;
		uParam0->f_10[4 /*57*/].f_23 = 0f;
		uParam0->f_10[4 /*57*/].f_28 = 1;
		uParam0->f_10[4 /*57*/].f_29 = 1f;
		uParam0->f_10[4 /*57*/].f_32 = 0f;
		uParam0->f_10[4 /*57*/].f_30 = 1;
		uParam0->f_10[4 /*57*/].f_31 = 0;
		uParam0->f_10[4 /*57*/].f_33 = 1f;
		uParam0->f_10[4 /*57*/].f_34 = 0;
		uParam0->f_10[4 /*57*/].f_35 = 0f;
		uParam0->f_10[4 /*57*/].f_36 = 0;
		uParam0->f_10[4 /*57*/].f_37 = 0;
		uParam0->f_10[4 /*57*/].f_39 = 0f;
		uParam0->f_10[4 /*57*/].f_40 = 0f;
		uParam0->f_10[4 /*57*/].f_41 = 0;
		uParam0->f_10[4 /*57*/].f_42 = 0;
		uParam0->f_10[4 /*57*/].f_43 = 0;
		uParam0->f_10[4 /*57*/].f_38 = 0f;
		uParam0->f_10[4 /*57*/].f_45 = 0;
		uParam0->f_10[4 /*57*/].f_46 = 0;
		uParam0->f_10[4 /*57*/].f_47 = 0f;
		uParam0->f_10[4 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[4 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[5 /*57*/].f_2 = 0;
		uParam0->f_10[5 /*57*/].f_3 = -1;
		uParam0->f_10[5 /*57*/].f_4 = 0;
		uParam0->f_10[5 /*57*/].f_5 = 600;
		uParam0->f_10[5 /*57*/].f_6 = { -0.1532f, 0.8833f, 0.698f };
		uParam0->f_10[5 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[5 /*57*/].f_12 = 0f;
		uParam0->f_10[5 /*57*/].f_9 = { -14.6696f, -0.002f, 170.824f };
		uParam0->f_10[5 /*57*/].f_18 = 0;
		uParam0->f_10[5 /*57*/].f_19 = 0;
		uParam0->f_10[5 /*57*/].f_20 = 0;
		uParam0->f_10[5 /*57*/].f_21 = 45f;
		uParam0->f_10[5 /*57*/].f_50 = 0;
		uParam0->f_10[5 /*57*/].f_51 = 0f;
		uParam0->f_10[5 /*57*/].f_52 = 0f;
		uParam0->f_10[5 /*57*/].f_22 = 0f;
		uParam0->f_10[5 /*57*/].f_53 = 0;
		uParam0->f_10[5 /*57*/].f_23 = 0f;
		uParam0->f_10[5 /*57*/].f_28 = 0;
		uParam0->f_10[5 /*57*/].f_29 = 0f;
		uParam0->f_10[5 /*57*/].f_32 = 0f;
		uParam0->f_10[5 /*57*/].f_30 = 1;
		uParam0->f_10[5 /*57*/].f_31 = 0;
		uParam0->f_10[5 /*57*/].f_33 = 0f;
		uParam0->f_10[5 /*57*/].f_34 = 0;
		uParam0->f_10[5 /*57*/].f_35 = 0f;
		uParam0->f_10[5 /*57*/].f_36 = 0;
		uParam0->f_10[5 /*57*/].f_37 = 0;
		uParam0->f_10[5 /*57*/].f_39 = 0f;
		uParam0->f_10[5 /*57*/].f_40 = 0f;
		uParam0->f_10[5 /*57*/].f_41 = 0;
		uParam0->f_10[5 /*57*/].f_42 = 0;
		uParam0->f_10[5 /*57*/].f_43 = 0;
		uParam0->f_10[5 /*57*/].f_38 = 0f;
		uParam0->f_10[5 /*57*/].f_45 = 0;
		uParam0->f_10[5 /*57*/].f_46 = 0;
		uParam0->f_10[5 /*57*/].f_47 = 0f;
		uParam0->f_10[5 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[5 /*57*/].f_47.f_2 = 0f;
		uParam0->f_10[6 /*57*/].f_2 = 0;
		uParam0->f_10[6 /*57*/].f_3 = -1;
		uParam0->f_10[6 /*57*/].f_4 = 0;
		uParam0->f_10[6 /*57*/].f_5 = 4000;
		uParam0->f_10[6 /*57*/].f_6 = { -0.2473f, 0.8093f, 0.6748f };
		uParam0->f_10[6 /*57*/].f_13 = { 0f, 0f, 0f };
		uParam0->f_10[6 /*57*/].f_12 = 0f;
		uParam0->f_10[6 /*57*/].f_9 = { -14.6696f, -0.002f, 170.824f };
		uParam0->f_10[6 /*57*/].f_18 = 0;
		uParam0->f_10[6 /*57*/].f_19 = 0;
		uParam0->f_10[6 /*57*/].f_20 = 0;
		uParam0->f_10[6 /*57*/].f_21 = 45f;
		uParam0->f_10[6 /*57*/].f_50 = 0;
		uParam0->f_10[6 /*57*/].f_51 = 0f;
		uParam0->f_10[6 /*57*/].f_52 = 0f;
		uParam0->f_10[6 /*57*/].f_22 = 0f;
		uParam0->f_10[6 /*57*/].f_53 = 0;
		uParam0->f_10[6 /*57*/].f_23 = 0f;
		uParam0->f_10[6 /*57*/].f_28 = 0;
		uParam0->f_10[6 /*57*/].f_29 = 0f;
		uParam0->f_10[6 /*57*/].f_32 = 0f;
		uParam0->f_10[6 /*57*/].f_30 = 1;
		uParam0->f_10[6 /*57*/].f_31 = 0;
		uParam0->f_10[6 /*57*/].f_33 = 0f;
		uParam0->f_10[6 /*57*/].f_34 = 0;
		uParam0->f_10[6 /*57*/].f_35 = 0f;
		uParam0->f_10[6 /*57*/].f_36 = 0;
		uParam0->f_10[6 /*57*/].f_37 = 0;
		uParam0->f_10[6 /*57*/].f_39 = 0f;
		uParam0->f_10[6 /*57*/].f_40 = 0f;
		uParam0->f_10[6 /*57*/].f_41 = 0;
		uParam0->f_10[6 /*57*/].f_42 = 0;
		uParam0->f_10[6 /*57*/].f_43 = 0;
		uParam0->f_10[6 /*57*/].f_38 = 0f;
		uParam0->f_10[6 /*57*/].f_45 = 0;
		uParam0->f_10[6 /*57*/].f_46 = 0;
		uParam0->f_10[6 /*57*/].f_47 = 0f;
		uParam0->f_10[6 /*57*/].f_47.f_1 = 0f;
		uParam0->f_10[6 /*57*/].f_47.f_2 = 0f;
		uParam0->f_1217 = 7;
		uParam0->f_1218 = 3;
		uParam0->f_2 = 0;
		uParam0->f_3 = 0;
		uParam0->f_1219 = 0;
		uParam0->f_1221 = "thisSwitchCam";
		uParam0->f_1220 = "CameraInfo_FIB4_TruckToTrevor.txt";
		uParam0->f_1225 = "CameraInfo_FIB4_TruckToTrevor.xml";
		*uParam0 = 1;
	}
	uParam0->f_4[0] = iParam1;
	uParam0->f_7[1] = uParam2;
}

void func_895()//Position - 0x8B32F
{
	streaming::request_model(Local_1192.f_1);
	streaming::request_model(Local_1645.f_1);
	streaming::request_model(Local_1494[0 /*15*/].f_1);
	vehicle::request_vehicle_recording(2, "lkcountry");
	vehicle::request_vehicle_recording(3, "lkcountry");
	vehicle::request_vehicle_recording(4, "lkcountry");
	vehicle::request_vehicle_recording(5, "lkcountry");
	vehicle::request_vehicle_recording(10, "lkcountry");
	vehicle::request_vehicle_recording(11, "lkcountry");
	vehicle::request_vehicle_recording(12, "lkcountry");
	vehicle::request_vehicle_recording(14, "lkcountry");
	vehicle::request_vehicle_recording(15, "lkcountry");
	vehicle::request_vehicle_recording(16, "lkcountry");
	iLocal_3805 = unk_0x67D02A194A2FC2BD("binoculars");
}

void func_896()//Position - 0x8B3CB
{
	if (entity::does_entity_exist(iLocal_3099[1]))
	{
		ped::delete_ped(&(iLocal_3099[1]));
	}
	streaming::set_model_as_no_longer_needed(func_93(1));
	if (entity::does_entity_exist(Local_1207))
	{
		vehicle::delete_vehicle(&Local_1207);
	}
	streaming::set_model_as_no_longer_needed(Local_1207.f_1);
	if (entity::does_entity_exist(Local_1479))
	{
		vehicle::delete_vehicle(&Local_1479);
	}
	streaming::set_model_as_no_longer_needed(Local_1479.f_1);
	if (entity::does_entity_exist(Local_1615))
	{
		vehicle::delete_vehicle(&Local_1615);
	}
	streaming::set_model_as_no_longer_needed(Local_1615.f_1);
	streaming::set_vehicle_population_budget(0);
	streaming::set_ped_population_budget(0);
}

void func_897()//Position - 0x8B44B
{
	func_842(1, 1);
	pathfind::set_roads_in_area(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, false, 1);
	pathfind::set_ped_paths_in_area(798.06f, -1982.81f, 100f, 1013.58f, -2445.88f, -100f, false, 0);
	ped::add_scenario_blocking_area(798.06f, -1982.81f, 100f, 1372.22f, -2752.3f, -100f, 0, 1, 1, 1);
	vehicle::set_all_vehicle_generators_active_in_area(935.9f, -2390.9f, 100f, 899.3f, -2319.6f, -100f, false, 1);
	vehicle::set_all_vehicle_generators_active_in_area(906.8f, -2322f, 100f, 844f, -2365.1f, -100f, false, 1);
	pathfind::set_roads_in_area(1034f, -2873.8f, 100f, 164.1f, -1944.8f, -100f, false, 1);
}

bool func_898()//Position - 0x8B534
{
	if (!streaming::has_model_loaded(vLocal_2957.y))
	{
	}
	if (!streaming::has_anim_dict_loaded("missfbi4"))
	{
	}
	if (!streaming::has_anim_dict_loaded("missheat"))
	{
	}
	if (!graphics::has_scaleform_movie_loaded(iLocal_3805))
	{
	}
	if (!audio::prepare_music_event("FBI4_SWITCH_1"))
	{
	}
	if (!streaming::has_ptfx_asset_loaded())
	{
	}
	if (!streaming::is_srl_loaded())
	{
	}
	if (((((((streaming::has_model_loaded(vLocal_2957.y) && streaming::has_anim_dict_loaded("missfbi4")) && streaming::has_anim_dict_loaded("missheat")) && streaming::has_anim_dict_loaded(sLocal_7600)) && graphics::has_scaleform_movie_loaded(iLocal_3805)) && audio::prepare_music_event("FBI4_SWITCH_1")) && streaming::has_ptfx_asset_loaded()) && streaming::is_srl_loaded())
	{
		return true;
	}
	return false;
}

bool func_899()//Position - 0x8B5F0
{
	vector3 vVar0;
	vector3 vVar3;
	
	vVar0 = { entity::get_entity_coords(iLocal_3099[1], 1) - entity::get_entity_coords(player::player_ped_id(), 1) };
	vVar3 = { entity::get_offset_from_entity_in_world_coords(iLocal_3099[1], 0f, 3f, 0f) - entity::get_entity_coords(iLocal_3099[1], 1) };
	if (func_506(vVar0, vVar3) < 0f)
	{
		return true;
	}
	return false;
}

void func_900()//Position - 0x8B644
{
	streaming::request_model(vLocal_2957.y);
	streaming::request_anim_dict("missfbi4");
	streaming::request_anim_dict("missheat");
	streaming::request_anim_dict(sLocal_7600);
	iLocal_3805 = unk_0x67D02A194A2FC2BD("binoculars");
	audio::prepare_music_event("FBI4_SWITCH_1");
	streaming::request_ptfx_asset();
}

void func_901()//Position - 0x8B688
{
	int iVar0;
	
	switch (iLocal_3358)
	{
		case 0:
			func_961(1, 0, 0, 1, 0);
			streaming::request_model(func_93(0));
			streaming::request_model(func_93(1));
			streaming::request_model(func_93(2));
			streaming::request_model(Local_1177.f_1);
			vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
			streaming::request_model(Local_1207.f_1);
			vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
			streaming::request_model(Local_1479.f_1);
			vehicle::set_vehicle_model_is_suppressed(Local_1479.f_1, true);
			streaming::request_anim_dict("missfbi4");
			streaming::request_anim_dict("missheat");
			streaming::request_model(vLocal_2957.y);
			iLocal_3805 = unk_0x67D02A194A2FC2BD("binoculars");
			streaming::request_ptfx_asset();
			vehicle::request_vehicle_recording(1, "lkcountry");
			vehicle::request_vehicle_recording(1, "lkheat");
			vehicle::request_vehicle_recording(2, "lkheat");
			vehicle::request_vehicle_recording(3, "lkheat");
			vehicle::request_vehicle_recording(4, "lkheat");
			vehicle::request_vehicle_recording(5, "lkheat");
			vehicle::request_vehicle_recording(6, "lkheat");
			vehicle::request_vehicle_recording(7, "lkheat");
			vehicle::request_vehicle_recording(8, "lkheat");
			vehicle::request_vehicle_recording(9, "lkheat");
			vehicle::request_vehicle_recording(10, "lkheat");
			vehicle::request_vehicle_recording(11, "lkheat");
			vehicle::request_vehicle_recording(12, "lkheat");
			vehicle::request_vehicle_recording(13, "lkheat");
			vehicle::request_vehicle_recording(14, "lkheat");
			vehicle::request_vehicle_recording(15, "lkheat");
			vehicle::request_vehicle_recording(16, "lkheat");
			vehicle::request_vehicle_recording(17, "lkheat");
			vehicle::request_vehicle_recording(18, "lkheat");
			vehicle::request_vehicle_recording(19, "lkheat");
			vehicle::request_vehicle_recording(20, "lkheat");
			vehicle::request_vehicle_recording(21, "lkheat");
			vehicle::request_vehicle_recording(21, "lkheat");
			vehicle::request_vehicle_recording(22, "lkheat");
			vehicle::request_vehicle_recording(23, "lkheat");
			vehicle::request_vehicle_recording(24, "lkheat");
			vehicle::request_vehicle_recording(25, "lkheat");
			vehicle::request_vehicle_recording(26, "lkheat");
			vehicle::request_vehicle_recording(27, "lkheat");
			vehicle::request_vehicle_recording(101, "lkheat");
			vehicle::request_vehicle_recording(102, "lkheat");
			vehicle::request_vehicle_recording(201, "lkheat");
			vehicle::request_vehicle_recording(202, "lkheat");
			vehicle::request_vehicle_recording(203, "lkheat");
			vehicle::request_vehicle_recording(204, "lkheat");
			streaming::request_anim_dict("missfbi4leadinoutfbi_4_mcs_3");
			while (((((((((((((((((((((((((((((((((((((((((!streaming::has_model_loaded(Local_1177.f_1) || !streaming::has_model_loaded(Local_1207.f_1)) || !streaming::has_model_loaded(Local_1479.f_1)) || !streaming::has_model_loaded(func_93(0))) || !streaming::has_model_loaded(func_93(1))) || !streaming::has_model_loaded(func_93(2))) || !vehicle::has_vehicle_recording_been_loaded(1, "lkcountry")) || !vehicle::has_vehicle_recording_been_loaded(1, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(2, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(3, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(4, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(5, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(6, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(7, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(8, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(9, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(10, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(11, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(12, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(13, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(14, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(15, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(16, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(17, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(18, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(19, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(20, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(21, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(21, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(22, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(23, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(24, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(25, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(26, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(27, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(101, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(102, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(201, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(202, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(203, "lkheat")) || !vehicle::has_vehicle_recording_been_loaded(204, "lkheat")) || !streaming::has_anim_dict_loaded("missfbi4leadinoutfbi_4_mcs_3"))
			{
				system::wait(0);
			}
			player::clear_player_wanted_level(player::player_id());
			gameplay::clear_area(1376.082f, -2082.048f, 50.9983f, 40f, 1, 0, 0, false);
			pathfind::set_roads_in_area(1412.83f, -1954.96f, -100f, 1406.5f, -1941.47f, 100f, false, 1);
			func_411(&(iLocal_3099[0]), 0, 1376.082f, -2082.048f, 50.9983f, 46.596f, 0, 0, 0);
			func_252(player::player_ped_id(), 12, 36, 0, -1, 0, 0, 0, -1, -1, -1, 0);
			vLocal_3415 = { 1377.63f, -2082.943f, 50.997f };
			vLocal_3418 = { 0f, 0f, 130.5f };
			iLocal_3232 = ped::create_synchronized_scene(vLocal_3415, vLocal_3418, 2);
			ai::task_synchronized_scene(iLocal_3099[0], iLocal_3232, "missfbi4leadinoutfbi_4_mcs_3", "_leadin_michael", 1000f, -1000f, 0, 0, 1148846080, 0);
			Local_1177 = vehicle::create_vehicle(Local_1177.f_1, 1381.472f, -2072.245f, 50.9981f, 38.334f, 1, true);
			vehicle::set_vehicle_on_ground_properly(Local_1177);
			vehicle::set_vehicle_has_strong_axles(Local_1177, true);
			vehicle::set_vehicle_automatically_attaches(Local_1177, false, 0);
			func_400(Local_1177, 0);
			Local_1207 = vehicle::create_vehicle(Local_1207.f_1, 1377.14f, -2076.2f, 52f, 40.03813f, 1, true);
			vehicle::set_vehicle_colours(Local_1207, 0, 0);
			vehicle::set_vehicle_on_ground_properly(Local_1207);
			vehicle::set_vehicle_has_strong_axles(Local_1207, true);
			entity::set_entity_only_damaged_by_player(Local_1207, true);
			vehicle::set_vehicle_doors_locked(Local_1207, 3);
			vehicle::_0x2B6747FAA9DB9D6B(Local_1207, 1);
			entity::force_entity_ai_and_animation_update(Local_1207);
			func_400(Local_1207, 1);
			func_284(&Local_1479, 2, vehicle::get_position_of_vehicle_recording_at_time(101, 1450f, "lkheat"), 40.3225f, 0, 0);
			entity::set_entity_only_damaged_by_player(Local_1479, true);
			vehicle::set_vehicle_doors_locked(Local_1479, 3);
			iLocal_3358++;
			break;
		
		case 1:
			cutscene::request_cutscene("fbi_4_mcs_3_concat", 8);
			if (streaming::is_player_switch_in_progress())
			{
				if (!Global_10)
				{
					iVar0 = streaming::get_player_switch_state();
					if ((iVar0 >= 8 && streaming::_0x78C0D93253149435() < 1) && cutscene::has_cutscene_loaded())
					{
						func_902();
						Global_10 = 1;
					}
				}
			}
			else if (entity::is_entity_in_angled_area(player::player_ped_id(), 1386.038f, -2063.979f, 50.62326f, 1360.417f, -2085.506f, 57.87326f, 14.625f, 0, true, 0) && ped::is_ped_on_foot(player::player_ped_id()))
			{
				if (cutscene::has_cutscene_loaded())
				{
					cutscene::register_entity_for_cutscene(iLocal_3099[0], "michael", 0, func_93(0), 0);
					cutscene::register_entity_for_cutscene(Local_1177, "fbi_bin_lorry", 0, joaat("trash"), 0);
					cutscene::register_entity_for_cutscene(Local_1207, "fbi_truck", 0, joaat("towtruck"), 0);
					cutscene::register_entity_for_cutscene(0, "trevor", 2, func_93(2), 0);
					cutscene::start_cutscene(0);
					iLocal_3283 = 1;
					iLocal_1126 = 0;
				}
			}
			break;
		
		case 2:
			break;
	}
}

void func_902()//Position - 0x8BE3E
{
	if (!streaming::is_player_switch_in_progress())
	{
		if (cam::is_screen_faded_out())
		{
			func_905();
		}
		return;
	}
	if (streaming::get_player_switch_type() == 3)
	{
		func_905();
		return;
	}
	func_903();
	if (Global_91066 > 0)
	{
		return;
	}
	streaming::_0x74DE2E8739086740();
}

void func_903()//Position - 0x8BE7E
{
	func_904((Global_91066 - 1));
}

void func_904(int iParam0)//Position - 0x8BE90
{
	Global_91066 = iParam0;
}

void func_905()//Position - 0x8BE9E
{
	func_904(0);
}

void func_906()//Position - 0x8BEAB
{
	int iVar0;
	
	switch (iLocal_3283)
	{
		case 0:
			func_961(1, 0, 0, 1, 0);
			switch (func_960())
			{
				case 0:
					cutscene::request_cutscene("fbi_4_mcs_3_concat", 8);
					if (cutscene::has_cutscene_loaded())
					{
						if (entity::does_entity_exist(Global_88108[0]) && entity::does_entity_exist(Global_88108[1]))
						{
							Local_1177 = Global_88108[0];
							Local_1207 = Global_88108[1];
							entity::set_entity_as_mission_entity(Local_1177, true, 1);
							entity::set_entity_as_mission_entity(Local_1207, true, 1);
							cutscene::register_entity_for_cutscene(0, "franklin", 2, func_93(1), 0);
							cutscene::register_entity_for_cutscene(0, "trevor", 2, func_93(2), 0);
							cutscene::register_entity_for_cutscene(0, "trevors_car", 2, Local_1479.f_1, 0);
							cutscene::register_entity_for_cutscene(Local_1177, "fbi_bin_lorry", 0, joaat("trash"), 0);
							cutscene::register_entity_for_cutscene(Local_1207, "fbi_truck", 0, joaat("towtruck"), 0);
							func_275(1, 1, 1, 0);
							cutscene::start_cutscene(0);
							unk1::_0x48621C9FCA3EBD28(4);
							iLocal_3283++;
						}
					}
					break;
				
				case 1:
					cutscene::_request_cutscene_2("fbi_4_mcs_3_concat", 14, 8);
					if (cutscene::has_cutscene_loaded())
					{
						if ((entity::does_entity_exist(Global_88108.f_9[0]) && entity::does_entity_exist(Global_88108[0])) && entity::does_entity_exist(Global_88108[1]))
						{
							iLocal_3214 = true;
							iLocal_3099[0] = Global_88108.f_9[0];
							Local_1177 = Global_88108[0];
							Local_1207 = Global_88108[1];
							entity::set_entity_as_mission_entity(iLocal_3099[0], true, 1);
							entity::set_entity_as_mission_entity(Local_1177, true, 1);
							entity::set_entity_as_mission_entity(Local_1207, true, 1);
							cutscene::register_entity_for_cutscene(iLocal_3099[0], "michael", 0, 0, 0);
							cutscene::register_entity_for_cutscene(0, "trevor", 2, func_93(2), 0);
							cutscene::register_entity_for_cutscene(0, "trevors_car", 2, Local_1479.f_1, 0);
							cutscene::register_entity_for_cutscene(Local_1177, "fbi_bin_lorry", 0, joaat("trash"), 0);
							cutscene::register_entity_for_cutscene(Local_1207, "fbi_truck", 0, joaat("towtruck"), 0);
							func_275(1, 1, 1, 0);
							cutscene::start_cutscene(256);
							unk1::_0x48621C9FCA3EBD28(3);
							iLocal_3283++;
						}
					}
					break;
				
				case 2:
					cutscene::_request_cutscene_2("fbi_4_mcs_3_concat", 12, 8);
					if (cutscene::has_cutscene_loaded())
					{
						if ((((entity::does_entity_exist(Global_88108.f_9[0]) && entity::does_entity_exist(Global_88108.f_9[1])) && entity::does_entity_exist(Global_88108[0])) && entity::does_entity_exist(Global_88108[1])) && entity::does_entity_exist(Global_88108[2]))
						{
							iLocal_3214 = true;
							iLocal_3099[0] = Global_88108.f_9[0];
							iLocal_3099[1] = Global_88108.f_9[1];
							Local_1177 = Global_88108[0];
							Local_1207 = Global_88108[1];
							Local_1479 = Global_88108[2];
							if (!entity::is_entity_dead(Local_1479, 0))
							{
								vehicle::set_vehicle_fixed(Local_1479);
								entity::set_entity_health(Local_1479, 1000);
								vehicle::set_vehicle_petrol_tank_health(Local_1479, 1000f);
								vehicle::set_vehicle_engine_health(Local_1479, 1000f);
							}
							entity::set_entity_as_mission_entity(iLocal_3099[0], true, 1);
							entity::set_entity_as_mission_entity(iLocal_3099[1], true, 1);
							entity::set_entity_as_mission_entity(Local_1177, true, 1);
							entity::set_entity_as_mission_entity(Local_1207, true, 1);
							entity::set_entity_as_mission_entity(Local_1479, true, 1);
							cutscene::register_entity_for_cutscene(iLocal_3099[0], "michael", 0, 0, 0);
							cutscene::register_entity_for_cutscene(iLocal_3099[1], "franklin", 0, 0, 0);
							cutscene::register_entity_for_cutscene(Local_1479, "trevors_car", 0, Local_1479.f_1, 0);
							cutscene::register_entity_for_cutscene(Local_1177, "fbi_bin_lorry", 0, joaat("trash"), 0);
							cutscene::register_entity_for_cutscene(Local_1207, "fbi_truck", 0, joaat("towtruck"), 0);
							func_275(1, 1, 1, 0);
							cutscene::start_cutscene(256);
							unk1::_0x48621C9FCA3EBD28(4);
							iLocal_3283++;
						}
					}
					break;
			}
			break;
		
		case 1:
			if (cutscene::is_cutscene_playing())
			{
				if (!cam::is_screen_faded_in())
				{
					if (!cam::is_screen_fading_in())
					{
						cam::do_screen_fade_in(800);
					}
				}
				func_920(38);
				iVar0 = player::get_players_last_vehicle();
				if (iVar0 != Local_1479)
				{
					func_916(1401.59f, -2053.698f, 50.9983f, 4f, 0);
					func_579(1351.419f, -2065.903f, 46.098f, 1395.749f, -2028.968f, 58.998f, 80f, 1401.59f, -2053.698f, 50.9983f, 80.931f, 15f, 15f, 15f, 1, 1, 1, 0, 0);
					func_571(1401.59f, -2053.698f, 50.9983f, 80.931f);
				}
				pathfind::set_roads_in_area(1412.83f, -1954.96f, -100f, 1406.5f, -1941.47f, 100f, false, 1);
				gameplay::clear_area(1379.374f, -2074.824f, 50.9985f, 1000f, 1, 0, 0, false);
				func_611(&Local_3074, 1, 0);
				vehicle::set_all_vehicles_spawn(Local_1207, 1, 1, 1);
				func_915();
				func_914();
				iLocal_3283++;
			}
			break;
		
		case 2:
			if (cutscene::is_cutscene_active())
			{
				if (!cutscene::was_cutscene_skipped())
				{
					func_915();
					func_914();
					switch (func_960())
					{
						case 0:
							if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("franklin", func_93(1))))
							{
								iLocal_3099[1] = entity::get_ped_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("franklin", func_93(1)));
							}
							if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("trevor", func_93(2))))
							{
								iLocal_3099[2] = entity::get_ped_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("trevor", func_93(2)));
							}
							if (!entity::does_entity_exist(Local_1479))
							{
								if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("trevors_car", Local_1479.f_1)))
								{
									Local_1479 = entity::get_vehicle_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("trevors_car", Local_1479.f_1));
									if (time::get_clock_hours() >= 20 || time::get_clock_hours() <= 6)
									{
										vehicle::set_vehicle_lights(Local_1479, 3);
									}
								}
							}
							if (!iLocal_3207)
							{
								if (entity::does_entity_exist(iLocal_3099[1]) && entity::does_entity_exist(iLocal_3099[2]))
								{
									func_910(player::player_ped_id());
									func_910(iLocal_3099[1]);
									func_910(iLocal_3099[2]);
									iLocal_3207 = 1;
								}
							}
							if (!iLocal_3196)
							{
								if (cutscene::get_cutscene_time() >= 84000)
								{
									func_324(player::player_ped_id());
									func_324(iLocal_3099[1]);
									func_324(iLocal_3099[2]);
									iLocal_3196 = 1;
								}
							}
							if (cutscene::can_set_exit_state_for_registered_entity("franklin", func_93(1)))
							{
								ped::set_ped_into_vehicle(iLocal_3099[1], Local_1207, -1);
							}
							if (cutscene::can_set_exit_state_for_registered_entity("michael", func_93(0)))
							{
							}
							break;
						
						case 1:
							if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("trevor", func_93(2))))
							{
								iLocal_3099[2] = entity::get_ped_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("trevor", func_93(2)));
							}
							if (!entity::does_entity_exist(Local_1479))
							{
								if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("trevors_car", Local_1479.f_1)))
								{
									Local_1479 = entity::get_vehicle_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("trevors_car", Local_1479.f_1));
									if (time::get_clock_hours() >= 20 || time::get_clock_hours() <= 6)
									{
										vehicle::set_vehicle_lights(Local_1479, 3);
									}
								}
							}
							if (!iLocal_3207)
							{
								if (entity::does_entity_exist(iLocal_3099[2]))
								{
									func_910(player::player_ped_id());
									func_910(iLocal_3099[0]);
									func_910(iLocal_3099[2]);
									iLocal_3207 = 1;
								}
							}
							if (!iLocal_3196)
							{
								if (cutscene::get_cutscene_time() >= 84000)
								{
									func_324(player::player_ped_id());
									func_324(iLocal_3099[0]);
									func_324(iLocal_3099[2]);
									iLocal_3196 = 1;
								}
							}
							if (cutscene::can_set_exit_state_for_registered_entity("franklin", func_93(1)))
							{
								ped::set_ped_into_vehicle(player::player_ped_id(), Local_1207, -1);
							}
							if (cutscene::can_set_exit_state_for_registered_entity("michael", func_93(0)))
							{
								if (cam::_0xEE778F8C7E1142E2(0) != 4 && cam::_0xEE778F8C7E1142E2(1) != 4)
								{
									func_681(&iLocal_3099, 0);
									func_446(&iLocal_3099, 1, 1, 0);
								}
							}
							if (cutscene::can_set_exit_state_for_camera(0))
							{
								if (cam::_0xEE778F8C7E1142E2(0) == 4 || cam::_0xEE778F8C7E1142E2(1) == 4)
								{
									func_681(&iLocal_3099, 0);
									func_446(&iLocal_3099, 1, 1, 0);
								}
							}
							break;
						
						case 2:
							if (!iLocal_3207)
							{
								func_910(player::player_ped_id());
								func_910(iLocal_3099[0]);
								func_910(iLocal_3099[1]);
								iLocal_3207 = 1;
							}
							if (!iLocal_3196)
							{
								if (cutscene::get_cutscene_time() >= 84000)
								{
									func_324(player::player_ped_id());
									func_324(iLocal_3099[0]);
									func_324(iLocal_3099[1]);
									iLocal_3196 = 1;
								}
							}
							if (cutscene::can_set_exit_state_for_registered_entity("franklin", func_93(1)))
							{
								ped::set_ped_into_vehicle(iLocal_3099[1], Local_1207, -1);
							}
							if (cutscene::can_set_exit_state_for_registered_entity("michael", func_93(0)))
							{
								if (cam::_0xEE778F8C7E1142E2(0) != 4 && cam::_0xEE778F8C7E1142E2(1) != 4)
								{
									func_681(&iLocal_3099, 0);
									func_446(&iLocal_3099, 1, 1, 0);
								}
							}
							if (cutscene::can_set_exit_state_for_camera(0))
							{
								if (cam::_0xEE778F8C7E1142E2(0) == 4 || cam::_0xEE778F8C7E1142E2(1) == 4)
								{
									func_681(&iLocal_3099, 0);
									func_446(&iLocal_3099, 1, 1, 0);
								}
							}
							break;
					}
				}
				else
				{
					unk1::_0x13B350B8AD0EEE10();
					cutscene::set_cutscene_fade_values(0, 0, 1, 0);
					iLocal_3283++;
				}
			}
			else
			{
				unk1::_0x81CBAE94390F9F89();
				func_909();
			}
			break;
		
		case 3:
			if (cutscene::is_cutscene_active())
			{
				switch (func_960())
				{
					case 0:
						if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("franklin", func_93(1))))
						{
							iLocal_3099[1] = entity::get_ped_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("franklin", func_93(1)));
						}
						if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("trevor", func_93(2))))
						{
							iLocal_3099[2] = entity::get_ped_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("trevor", func_93(2)));
						}
						if (!entity::does_entity_exist(Local_1479))
						{
							if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("trevors_car", Local_1479.f_1)))
							{
								Local_1479 = entity::get_vehicle_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("trevors_car", Local_1479.f_1));
							}
						}
						if (!iLocal_3207)
						{
							if (entity::does_entity_exist(iLocal_3099[1]) && entity::does_entity_exist(iLocal_3099[2]))
							{
								func_910(player::player_ped_id());
								func_910(iLocal_3099[1]);
								func_910(iLocal_3099[2]);
								iLocal_3207 = 1;
							}
						}
						if (cutscene::can_set_exit_state_for_registered_entity("michael", func_93(0)))
						{
							unk1::_0x81CBAE94390F9F89();
						}
						break;
					
					case 1:
						if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("trevor", func_93(2))))
						{
							iLocal_3099[2] = entity::get_ped_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("trevor", func_93(2)));
						}
						if (!entity::does_entity_exist(Local_1479))
						{
							if (entity::does_entity_exist(cutscene::get_entity_index_of_registered_entity("trevors_car", Local_1479.f_1)))
							{
								Local_1479 = entity::get_vehicle_index_from_entity_index(cutscene::get_entity_index_of_registered_entity("trevors_car", Local_1479.f_1));
							}
						}
						if (!iLocal_3207)
						{
							if (entity::does_entity_exist(iLocal_3099[2]))
							{
								func_910(player::player_ped_id());
								func_910(iLocal_3099[0]);
								func_910(iLocal_3099[2]);
								iLocal_3207 = 1;
							}
						}
						if (cutscene::can_set_exit_state_for_registered_entity("franklin", func_93(1)))
						{
							ped::set_ped_into_vehicle(player::player_ped_id(), Local_1207, -1);
						}
						if (cutscene::can_set_exit_state_for_registered_entity("michael", func_93(0)))
						{
							func_681(&iLocal_3099, 0);
							func_446(&iLocal_3099, 1, 1, 0);
							unk1::_0x81CBAE94390F9F89();
						}
						break;
					
					case 2:
						if (!iLocal_3207)
						{
							func_910(player::player_ped_id());
							func_910(iLocal_3099[0]);
							func_910(iLocal_3099[1]);
							iLocal_3207 = 1;
						}
						if (cutscene::can_set_exit_state_for_registered_entity("franklin", func_93(1)))
						{
							ped::set_ped_into_vehicle(iLocal_3099[1], Local_1207, -1);
						}
						if (cutscene::can_set_exit_state_for_registered_entity("michael", func_93(0)))
						{
							func_681(&iLocal_3099, 0);
							func_446(&iLocal_3099, 1, 1, 0);
							unk1::_0x81CBAE94390F9F89();
						}
						break;
				}
			}
			else
			{
				func_915();
				func_914();
				if ((((func_908() && func_907()) && ped::_0x66680A92700F43DF(player::player_ped_id())) && ped::_0x66680A92700F43DF(iLocal_3099[1])) && ped::_0x66680A92700F43DF(iLocal_3099[2]))
				{
					unk1::_0x81CBAE94390F9F89();
					switch (func_960())
					{
						case 0:
							if (!iLocal_3196)
							{
								func_324(player::player_ped_id());
								func_324(iLocal_3099[1]);
								func_324(iLocal_3099[2]);
								iLocal_3196 = 1;
							}
							break;
					}
					while (!ped::_0x7350823473013C02(player::player_ped_id()))
					{
						system::wait(0);
					}
					func_934();
					func_909();
				}
			}
			break;
	}
}

bool func_907()//Position - 0x8CA6F
{
	if ((((((((((((((((((((((((((((((vehicle::has_vehicle_recording_been_loaded(1, "lkcountry") && vehicle::has_vehicle_recording_been_loaded(1, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(2, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(3, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(4, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(5, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(10, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(11, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(12, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(13, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(14, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(15, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(16, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(17, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(18, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(19, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(20, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(21, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(21, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(22, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(23, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(24, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(25, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(26, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(27, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(101, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(102, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(201, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(202, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(203, "lkheat")) && vehicle::has_vehicle_recording_been_loaded(204, "lkheat"))
	{
		return true;
	}
	return false;
}

bool func_908()//Position - 0x8CC64
{
	if (((((((streaming::has_model_loaded(func_93(0)) && streaming::has_model_loaded(func_93(1))) && streaming::has_model_loaded(func_93(2))) && streaming::has_model_loaded(Local_1177.f_1)) && vehicle::has_vehicle_asset_loaded(Local_1177.f_1)) && streaming::has_model_loaded(Local_1207.f_1)) && streaming::has_model_loaded(Local_1479.f_1)) && vehicle::has_vehicle_recording_been_loaded(102, "lkheat"))
	{
		return true;
	}
	return false;
}

void func_909()//Position - 0x8CCE1
{
	ped::_0x5AAB586FFEC0FD96(player::player_ped_id());
	ped::_0x5AAB586FFEC0FD96(iLocal_3099[1]);
	ped::_0x5AAB586FFEC0FD96(iLocal_3099[2]);
	ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
	func_442(&(Local_3473[0 /*165*/]), 0, player::player_ped_id(), "michael", 0, 1);
	ped::set_ped_into_vehicle(iLocal_3099[2], Local_1479, -1);
	func_320(iLocal_3099[2], 0);
	func_319(&(iLocal_3099[2]), 1);
	func_442(&(Local_3473[0 /*165*/]), 2, iLocal_3099[2], "trevor", 0, 1);
	ped::set_ped_into_vehicle(iLocal_3099[1], Local_1207, -1);
	entity::set_entity_load_collision_flag(iLocal_3099[1], true);
	func_320(iLocal_3099[1], 0);
	func_319(&(iLocal_3099[1]), 1);
	func_442(&(Local_3473[0 /*165*/]), 1, iLocal_3099[1], "franklin", 0, 1);
	entity::set_entity_visible(Local_1177, true, 0);
	entity::freeze_entity_position(Local_1177, false);
	entity::set_entity_collision(Local_1177, true, 0);
	vehicle::set_vehicle_doors_locked(Local_1177, 1);
	func_400(Local_1177, 0);
	entity::set_entity_visible(Local_1479, true, 0);
	entity::freeze_entity_position(Local_1479, false);
	entity::set_entity_collision(Local_1479, true, 0);
	func_533("lkheat", 101, 1, 1);
	func_532();
	fLocal_441 = 200f;
	iLocal_50 = 1;
	iLocal_56 = 1;
	vehicle::start_playback_recorded_vehicle(Local_1479, 101, "lkheat", 1);
	func_494(Local_1479, 1f);
	func_490(Local_1479, 2000f);
	func_494(Local_1479, 1f);
	vehicle::set_vehicle_engine_on(Local_1479, true, 1, 0);
	vehicle::_0x1F2E4E06DEA8992B(Local_1479, 1);
	entity::set_entity_visible(Local_1207, true, 0);
	entity::freeze_entity_position(Local_1207, false);
	entity::set_entity_collision(Local_1207, true, 0);
	vehicle::set_vehicle_doors_locked(Local_1207, 3);
	vehicle::set_vehicle_doors_shut(Local_1207, 1);
	vehicle::_0x2B6747FAA9DB9D6B(Local_1207, 1);
	vehicle::start_playback_recorded_vehicle(Local_1207, 102, "lkheat", 0);
	vehicle::skip_time_in_playback_recorded_vehicle(Local_1207, 800f);
	vehicle::set_playback_speed(Local_1207, 1f);
	vehicle::set_vehicle_engine_on(Local_1479, true, 1, 0);
	vehicle::_0x1F2E4E06DEA8992B(Local_1207, 0);
	func_400(Local_1207, 1);
	if (iLocal_3214)
	{
		if (cam::_0xEE778F8C7E1142E2(0) != 4)
		{
			graphics::_start_screen_effect("SwitchSceneMichael", 0, 0);
			audio::play_sound_frontend(-1, "Hit_1", "LONG_PLAYER_SWITCH_SOUNDS", 1);
		}
	}
	if (cam::is_screen_faded_in())
	{
		func_569(0, 0, 0, 0f, 0f, 3000, 0, 1);
	}
	else
	{
		func_438(0, 0, 0f, 0f, 0, 1);
		ped::_0x2208438012482A1A(player::player_ped_id(), 1, 0);
	}
	iLocal_3226 = gameplay::get_game_timer();
	audio::trigger_music_event("FBI4_SWITCH_BINOC_ST");
	iLocal_1126 = 1;
}

void func_910(int iParam0)//Position - 0x8CF23
{
	int iVar0;
	
	if (!ped::is_ped_injured(iParam0))
	{
		iVar0 = func_270(iParam0);
		if (iVar0 == 0)
		{
			if (Global_101154.f_1826.f_539.f_1631[iVar0] == -99)
			{
				func_912(iParam0, 21);
			}
			else
			{
				func_912(iParam0, Global_101154.f_1826.f_539.f_1631[iVar0]);
			}
			if (Global_101154.f_1826.f_539.f_1623[iVar0] == -99)
			{
				func_911(iParam0, 14, 38);
			}
			else
			{
				func_911(iParam0, Global_101154.f_1826.f_539.f_1627[iVar0], Global_101154.f_1826.f_539.f_1623[iVar0]);
			}
		}
		else if (iVar0 == 1)
		{
			if (Global_101154.f_1826.f_539.f_1631[iVar0] == -99)
			{
				func_912(iParam0, 13);
			}
			else
			{
				func_912(iParam0, Global_101154.f_1826.f_539.f_1631[iVar0]);
			}
			if (Global_101154.f_1826.f_539.f_1623[iVar0] == -99)
			{
				func_911(iParam0, 14, 30);
			}
			else
			{
				func_911(iParam0, Global_101154.f_1826.f_539.f_1627[iVar0], Global_101154.f_1826.f_539.f_1623[iVar0]);
			}
		}
		else if (iVar0 == 2)
		{
			if (Global_101154.f_1826.f_539.f_1631[iVar0] == -99)
			{
				func_912(iParam0, 19);
			}
			else
			{
				func_912(iParam0, Global_101154.f_1826.f_539.f_1631[iVar0]);
			}
			if (Global_101154.f_1826.f_539.f_1623[iVar0] == -99)
			{
				func_911(iParam0, 14, 53);
			}
			else
			{
				func_911(iParam0, Global_101154.f_1826.f_539.f_1627[iVar0], Global_101154.f_1826.f_539.f_1623[iVar0]);
			}
		}
	}
}

void func_911(int iParam0, int iParam1, int iParam2)//Position - 0x8D0E1
{
	struct<14> Var0;
	
	if (iParam1 == 12 || iParam1 == 13)
	{
		return;
	}
	Var0 = { func_10(entity::get_entity_model(iParam0), iParam1, iParam2) };
	if (iParam1 == 14)
	{
		if (Var0.f_3 != -1 && Var0.f_3 != 255)
		{
			ped::_is_ped_prop_valid(iParam0, Var0.f_12, Var0.f_3, Var0.f_4);
		}
	}
	else if (Var0.f_3 != -1 && Var0.f_4 != -1)
	{
		ped::_0x39D55A620FCB6A3A(iParam0, func_25(iParam1), Var0.f_3, Var0.f_4);
	}
}

void func_912(int iParam0, int iParam1)//Position - 0x8D16D
{
	int iVar0;
	struct<16> Var1;
	
	iVar0 = entity::get_entity_model(iParam0);
	Var1 = { func_88(iVar0, iParam1) };
	func_913(iParam0, iVar0, &Var1);
}

void func_913(int iParam0, int iParam1, var uParam2)//Position - 0x8D194
{
	int iVar0;
	struct<14> Var1;
	int iVar15;
	int iVar16;
	int iVar17;
	int iVar18;
	var uVar19;
	
	iVar0 = 0;
	while (iVar0 <= 11)
	{
		Var1 = { func_10(iParam1, func_90(iVar0), (*uParam2)[func_90(iVar0)]) };
		if (Var1.f_3 != -1 && Var1.f_4 != -1)
		{
			ped::_0x39D55A620FCB6A3A(iParam0, iVar0, Var1.f_3, Var1.f_4);
		}
		iVar0++;
	}
	uVar19 = { func_82(iParam1, (*uParam2)[13]) };
	iVar15 = 0;
	while (iVar15 <= 8)
	{
		iVar16 = iVar15;
		iVar17 = func_23(iVar16);
		iVar18 = func_100(iVar17);
		if (uVar19[iVar15] != iVar18)
		{
			Var1 = { func_10(iParam1, 14, uVar19[iVar15]) };
			if (Var1.f_3 != -1 && Var1.f_3 != 255)
			{
				ped::_is_ped_prop_valid(iParam0, iVar17, Var1.f_3, Var1.f_4);
			}
		}
		iVar15++;
	}
}

void func_914()//Position - 0x8D26E
{
	streaming::request_model(func_93(0));
	streaming::request_model(func_93(1));
	streaming::request_model(func_93(2));
	streaming::request_model(Local_1177.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
	vehicle::request_vehicle_asset(Local_1177.f_1, 15);
	streaming::request_model(Local_1207.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
	streaming::request_model(Local_1479.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1479.f_1, true);
	vehicle::request_vehicle_recording(102, "lkheat");
}

void func_915()//Position - 0x8D2E0
{
	vehicle::request_vehicle_recording(1, "lkcountry");
	vehicle::request_vehicle_recording(1, "lkheat");
	vehicle::request_vehicle_recording(2, "lkheat");
	vehicle::request_vehicle_recording(3, "lkheat");
	vehicle::request_vehicle_recording(4, "lkheat");
	vehicle::request_vehicle_recording(5, "lkheat");
	vehicle::request_vehicle_recording(10, "lkheat");
	vehicle::request_vehicle_recording(11, "lkheat");
	vehicle::request_vehicle_recording(12, "lkheat");
	vehicle::request_vehicle_recording(13, "lkheat");
	vehicle::request_vehicle_recording(14, "lkheat");
	vehicle::request_vehicle_recording(15, "lkheat");
	vehicle::request_vehicle_recording(16, "lkheat");
	vehicle::request_vehicle_recording(17, "lkheat");
	vehicle::request_vehicle_recording(18, "lkheat");
	vehicle::request_vehicle_recording(19, "lkheat");
	vehicle::request_vehicle_recording(20, "lkheat");
	vehicle::request_vehicle_recording(21, "lkheat");
	vehicle::request_vehicle_recording(21, "lkheat");
	vehicle::request_vehicle_recording(22, "lkheat");
	vehicle::request_vehicle_recording(23, "lkheat");
	vehicle::request_vehicle_recording(24, "lkheat");
	vehicle::request_vehicle_recording(25, "lkheat");
	vehicle::request_vehicle_recording(26, "lkheat");
	vehicle::request_vehicle_recording(27, "lkheat");
	vehicle::request_vehicle_recording(101, "lkheat");
	vehicle::request_vehicle_recording(102, "lkheat");
	vehicle::request_vehicle_recording(201, "lkheat");
	vehicle::request_vehicle_recording(202, "lkheat");
	vehicle::request_vehicle_recording(203, "lkheat");
	vehicle::request_vehicle_recording(204, "lkheat");
}

void func_916(vector3 vParam0, float fParam3, int iParam4)//Position - 0x8D437
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 < 68)
	{
		if (func_395(&(Global_68319.f_555[0 /*21*/]), iVar0))
		{
			if (gameplay::get_distance_between_coords(vParam0, Global_68319.f_555[0 /*21*/], iParam4) <= fParam3)
			{
				func_917(iVar0);
			}
		}
		iVar0++;
	}
}

void func_917(int iParam0)//Position - 0x8D487
{
	int iVar0;
	
	if (iParam0 == -1)
	{
		return;
	}
	if (func_395(&(Global_68319.f_555[0 /*21*/]), iParam0))
	{
		if (entity::does_entity_exist(Global_68319.f_139[iParam0]))
		{
			iVar0 = true;
			if (!ped::is_ped_injured(player::player_ped_id()))
			{
				if (vehicle::is_vehicle_driveable(Global_68319.f_139[iParam0], 0))
				{
					if (ped::is_ped_in_vehicle(player::player_ped_id(), Global_68319.f_139[iParam0], 0))
					{
						iVar0 = false;
					}
				}
			}
			if (iVar0)
			{
				entity::set_entity_as_mission_entity(Global_68319.f_139[iParam0], true, 1);
				vehicle::delete_vehicle(&(Global_68319.f_139[iParam0]));
			}
		}
		Global_68319[iParam0] = 1;
		if (gameplay::is_bit_set(Global_68319.f_555[0 /*21*/].f_9, 13))
		{
			if (((((iParam0 == 24 && func_396(iParam0, 0)) && Global_69228.f_66 == 0) && Global_101154.f_18807.f_1958[Global_68319.f_555[0 /*21*/].f_14] != 0) && Global_101154.f_18807.f_1958[Global_68319.f_555[0 /*21*/].f_14] > 3) && (!func_918(0, Global_68319.f_555[0 /*21*/].f_12) || !func_918(1, Global_68319.f_555[0 /*21*/].f_12)))
			{
				func_576(&(Global_101154.f_18807.f_69[Global_68319.f_555[0 /*21*/].f_14 /*78*/]), &Global_69228);
				Global_69306 = Global_101154.f_18807.f_5591;
			}
			func_548(iParam0, 0);
		}
	}
}

int func_918(int iParam0, int iParam1)//Position - 0x8D5F9
{
	int iVar0;
	
	switch (iParam1)
	{
		case 0:
			iVar0 = 0;
			break;
		
		case 1:
			iVar0 = 1;
			break;
		
		case 2:
			iVar0 = 2;
			break;
	}
	if (iParam0 < 0 || iParam0 >= func_919(&(Global_101154.f_18807.f_5038[iVar0 /*157*/])))
	{
		return 0;
	}
	return func_300(Global_101154.f_18807.f_5038[iVar0 /*157*/][iParam0 /*78*/].f_66, 0);
}

var func_919(var uParam0)//Position - 0x8D66B
{
	return *uParam0;
}

void func_920(int iParam0)//Position - 0x8D676
{
	if (Global_88533 != -1)
	{
		if (iParam0 == Global_88533)
		{
			Global_88537 = 1;
			return;
		}
	}
}

void func_921()//Position - 0x8D69A
{
	vehicle::set_vehicle_density_multiplier_this_frame(0.8f);
	ped::set_ped_reset_flag(player::player_ped_id(), 102, true);
}

void func_922()//Position - 0x8D6B6
{
}

void func_923()//Position - 0x8D6BE
{
	if (iLocal_3194)
	{
		iLocal_3310 = gameplay::get_game_timer();
	}
	while (!func_272(&iLocal_3310, 4000))
	{
		system::wait(0);
	}
	func_933();
	iLocal_3177 = 1;
	iLocal_3226 = gameplay::get_game_timer();
	audio::trigger_music_event("FBI4_MISSION_FAIL");
	func_924(sLocal_3448);
	iLocal_1126 = 15;
}

void func_924(char* sParam0)//Position - 0x8D70E
{
	func_932(sParam0);
	func_925(0);
}

void func_925(int iParam0)//Position - 0x8D721
{
	int iVar0;
	
	if (Global_101154.f_7775 || func_567(0))
	{
		iVar0 = func_565();
		if (!func_926(iVar0))
		{
			return;
		}
		gameplay::set_bit(&(Global_82363[iVar0 /*5*/].f_1), 5);
		Global_91314 = iParam0;
	}
}

bool func_926(int iParam0)//Position - 0x8D766
{
	var uVar0;
	int iVar1;
	
	func_931();
	if (player::is_player_playing(player::player_id()))
	{
		player::start_firing_amnesty(5000);
	}
	uVar0 = Global_82363[iParam0 /*5*/];
	iVar1 = Global_69758.f_109[uVar0 /*4*/];
	func_930(iVar1, 1);
	player::_0xC9A763D8FE87436A(player::player_id());
	player::special_ability_deactivate(player::player_id());
	func_927(&(Global_101154.f_1826.f_539), iVar1);
	if (Global_85786 == Global_91315)
	{
		Global_101154.f_7775.f_330[iVar1 /*6*/].f_1++;
	}
	if (!gameplay::is_bit_set(Global_82399[iVar1 /*34*/].f_15, 1))
	{
		if (!player::is_player_playing(player::player_id()))
		{
			gameplay::set_fade_in_after_death_arrest(0);
		}
	}
	Global_101154.f_7775.f_330[iVar1 /*6*/].f_2++;
	Global_85786 = Global_91315;
	if (iParam0 == -1)
	{
		if (Global_101154.f_7775)
		{
		}
		return false;
	}
	if (gameplay::is_bit_set(Global_82363[iParam0 /*5*/].f_1, 4))
	{
		return false;
	}
	if (gameplay::is_bit_set(Global_82363[iParam0 /*5*/].f_1, 5))
	{
		return false;
	}
	return true;
}

void func_927(var uParam0, int iParam1)//Position - 0x8D87D
{
	int iVar0;
	int iVar1;
	vector3 vVar2;
	float fVar5;
	
	if (iParam1 == 94)
	{
		return;
	}
	iVar0 = 0;
	while (iVar0 < 3)
	{
		iVar1 = Global_101154.f_17223[iVar0];
		if ((((iVar1 == 8 || iVar1 == 9) || iVar1 == 10) || (((iVar1 == 11 || iVar1 == 34) || iVar1 == 72) || iVar1 == 73)) && !gameplay::is_bit_set(Global_101154.f_7775.f_99.f_219[0], 9))
		{
		}
		else
		{
			vVar2 = { 0f, 0f, 0f };
			fVar5 = 0f;
			if (!func_929(Global_101154.f_17223[iVar0], &vVar2, &fVar5))
			{
				Global_101154.f_17223[iVar0] = 318;
				func_928(&(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_89001[iVar0 /*29*/] = { 0f, 0f, 0f };
				Global_89001[iVar0 /*29*/].f_9 = 0f;
				Global_89001[iVar0 /*29*/].f_12 = 0f;
				Global_89001[iVar0 /*29*/].f_3 = { 0f, 0f, 0f };
				Global_89001[iVar0 /*29*/].f_10 = 0f;
				Global_89001[iVar0 /*29*/].f_13 = 0f;
				Global_89001[iVar0 /*29*/].f_6 = { 0f, 0f, 0f };
				Global_89001[iVar0 /*29*/].f_11 = 0f;
				Global_89001[iVar0 /*29*/].f_14 = 0f;
				Global_89001[iVar0 /*29*/].f_17 = { 0f, 0f, 0f };
				Global_89001[iVar0 /*29*/].f_26 = 0f;
				Global_89001[iVar0 /*29*/].f_20 = { 0f, 0f, 0f };
				Global_89001[iVar0 /*29*/].f_27 = 0f;
				Global_89001[iVar0 /*29*/].f_23 = { 0f, 0f, 0f };
				Global_89001[iVar0 /*29*/].f_28 = 0f;
			}
		}
		iVar0++;
	}
}

void func_928(var uParam0)//Position - 0x8DA46
{
	*uParam0 = -15;
}

int func_929(int iParam0, var uParam1, float fParam2)//Position - 0x8DA54
{
	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_929(8, uParam1, fParam2);
			break;
		
		case 10:
			return func_929(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_930(int iParam0, int iParam1)//Position - 0x8E3C3
{
	if (iParam1)
	{
		if ((iParam0 != 88 && iParam0 != 89) && iParam0 != 92)
		{
			Global_85596[iParam0 /*2*/] = 1;
		}
	}
	else
	{
		Global_85596[iParam0 /*2*/] = 0;
	}
}

void func_931()//Position - 0x8E401
{
	Global_91313 = 1;
	if (player::is_player_being_arrested(player::player_id(), 1))
	{
		if (gameplay::is_string_null_or_empty(&Global_69721))
		{
			switch (func_960())
			{
				case 0:
					StringCopy(&Global_69721, "CMN_MARRE", 16);
					break;
				
				case 1:
					StringCopy(&Global_69721, "CMN_FARRE", 16);
					break;
				
				case 2:
					StringCopy(&Global_69721, "CMN_TARRE", 16);
					break;
			}
			StringCopy(&Global_69725, "", 16);
		}
		Global_91313 = 0;
	}
	else if (!player::is_player_playing(player::player_id()))
	{
		if (gameplay::is_string_null_or_empty(&Global_69721))
		{
			switch (func_960())
			{
				case 0:
					StringCopy(&Global_69721, "CMN_MDIED", 16);
					break;
				
				case 1:
					StringCopy(&Global_69721, "CMN_FDIED", 16);
					break;
				
				case 2:
					StringCopy(&Global_69721, "CMN_TDIED", 16);
					break;
			}
			StringCopy(&Global_69725, "", 16);
		}
		Global_91313 = 0;
		gameplay::set_bit(&(Global_91278.f_20), 25);
	}
}

void func_932(char* sParam0)//Position - 0x8E4F6
{
	if (!gameplay::is_string_null_or_empty(sParam0))
	{
		if (ui::get_length_of_literal_string(sParam0) <= 16)
		{
			StringCopy(&Global_69721, sParam0, 16);
			StringCopy(&Global_69725, "", 16);
			if (unk1::_is_recording())
			{
				unk1::_stop_recording_and_save_clip();
			}
		}
	}
}

void func_933()//Position - 0x8E536
{
	int iVar0;
	
	iVar0 = 0;
	if (ui::does_blip_exist(iLocal_3449))
	{
		ui::remove_blip(&iLocal_3449);
	}
	if (ui::does_blip_exist(iLocal_3454))
	{
		ui::remove_blip(&iLocal_3454);
	}
	if (ui::does_blip_exist(iLocal_3450))
	{
		ui::remove_blip(&iLocal_3450);
	}
	iVar0 = 0;
	while (iVar0 <= (Local_1725 - 1))
	{
		if (ui::does_blip_exist(Local_1725[iVar0 /*20*/].f_2))
		{
			ui::remove_blip(&(Local_1725[iVar0 /*20*/].f_2));
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 <= (Local_2446 - 1))
	{
		if (ui::does_blip_exist(Local_2446[iVar0 /*20*/].f_2))
		{
			ui::remove_blip(&(Local_2446[iVar0 /*20*/].f_2));
		}
		iVar0++;
	}
}

bool func_934()//Position - 0x8E5DA
{
	switch (iLocal_1126)
	{
		case 0:
			if (func_943(&(iLocal_3099[0])))
			{
				sLocal_3448 = "cntry_fail5";
				return true;
			}
			if (func_943(&(iLocal_3099[1])))
			{
				sLocal_3448 = "cntry_fail7";
				return true;
			}
			if (func_943(&(iLocal_3099[2])))
			{
				sLocal_3448 = "cntry_fail8";
				return true;
			}
			if (func_942(&Local_1479))
			{
				sLocal_3448 = "cntry_fail19";
				return true;
			}
			if (func_942(&Local_1177))
			{
				sLocal_3448 = "cntry_fail3";
				return true;
			}
			if (func_942(&Local_1207))
			{
				sLocal_3448 = "cntry_fail19";
				return true;
			}
			if (func_960() == 1)
			{
				if (entity::does_entity_exist(iLocal_3099[0]))
				{
					if (entity::has_entity_been_damaged_by_entity(iLocal_3099[0], player::player_ped_id(), 1))
					{
						sLocal_3448 = "cntry_fail18";
						return true;
					}
				}
				if (entity::does_entity_exist(iLocal_3099[2]))
				{
					if (entity::has_entity_been_damaged_by_entity(iLocal_3099[2], player::player_ped_id(), 1))
					{
						sLocal_3448 = "cntry_fail18";
						return true;
					}
				}
			}
			else if (func_960() == 2)
			{
				if (entity::does_entity_exist(iLocal_3099[0]))
				{
					if (entity::has_entity_been_damaged_by_entity(iLocal_3099[0], player::player_ped_id(), 1))
					{
						sLocal_3448 = "cntry_fail18";
						return true;
					}
				}
			}
			if (func_942(&Local_1177))
			{
				sLocal_3448 = "cntry_fail3";
				return true;
			}
			if (func_942(&Local_1207))
			{
				sLocal_3448 = "cntry_fail4";
				return true;
			}
			break;
		
		case 16:
			if (func_943(&(iLocal_3099[0])))
			{
			}
			if (func_943(&(iLocal_3099[1])))
			{
			}
			if (func_943(&(iLocal_3099[2])))
			{
			}
			if (func_942(&Local_1479))
			{
			}
			if (func_942(&Local_1177))
			{
			}
			if (func_942(&Local_1207))
			{
			}
			break;
		
		case 1:
			if (func_942(&Local_1177))
			{
				sLocal_3448 = "cntry_fail3";
				return true;
			}
			if (func_941(&Local_1177))
			{
				sLocal_3448 = "cntry_fail12";
				return true;
			}
			if (func_942(&Local_1207))
			{
				sLocal_3448 = "cntry_fail4";
				return true;
			}
			if (func_942(&Local_1479))
			{
				sLocal_3448 = "cntry_fail19";
				return true;
			}
			if (func_943(&(iLocal_3099[0])))
			{
				sLocal_3448 = "cntry_fail5";
				return true;
			}
			if (func_943(&(iLocal_3099[1])))
			{
				sLocal_3448 = "cntry_fail7";
				return true;
			}
			if (func_943(&(iLocal_3099[2])))
			{
				sLocal_3448 = "cntry_fail8";
				return true;
			}
			if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(Local_1177, 1), 1) > 200f)
			{
				sLocal_3448 = "cntry_fail22";
				return true;
			}
			if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), 972.8909f, -2073.692f, 30.5f, 1) > 500f)
			{
				sLocal_3448 = "cntry_fail10";
				return true;
			}
			break;
		
		case 2:
			if (func_942(&Local_1192))
			{
				sLocal_3448 = "cntry_fail2";
				return true;
			}
			if (func_943(&Local_1645))
			{
				sLocal_3448 = "cntry_fail0";
				return true;
			}
			if (func_943(&Local_1665))
			{
				sLocal_3448 = "cntry_fail1";
				return true;
			}
			if (func_943(&iLocal_3466))
			{
				sLocal_3448 = "cntry_fail6";
				return true;
			}
			if (func_942(&Local_1177))
			{
				sLocal_3448 = "cntry_fail3";
				return true;
			}
			if (player::get_player_wanted_level(player::player_id()) > 0)
			{
				sLocal_3448 = "cntry_fail6";
				return true;
			}
			break;
		
		case 3:
			if (func_942(&Local_1177))
			{
				sLocal_3448 = "cntry_fail3";
				return true;
			}
			if (func_943(&(iLocal_3099[1])))
			{
				sLocal_3448 = "cntry_fail7";
				return true;
			}
			if (func_943(&(iLocal_3099[iLocal_3099.f_5])))
			{
				sLocal_3448 = "cntry_fail5";
				return true;
			}
			if (func_942(&Local_1192))
			{
				sLocal_3448 = "cntry_fail2";
				return true;
			}
			if (func_941(&Local_1177))
			{
				sLocal_3448 = "cntry_fail12";
				return true;
			}
			if (func_942(&Local_1207))
			{
				sLocal_3448 = "cntry_fail4";
				return true;
			}
			if (player::get_player_wanted_level(player::player_id()) > 0)
			{
				sLocal_3448 = "cntry_fail6";
				return true;
			}
			if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), 972.8909f, -2073.692f, 30.5f, 1) > 500f)
			{
				sLocal_3448 = "cntry_fail10";
				return true;
			}
			break;
		
		case 4:
			if (func_942(&Local_1177))
			{
				sLocal_3448 = "cntry_fail3";
				return true;
			}
			if (func_942(&Local_1207))
			{
				sLocal_3448 = "cntry_fail4";
				return true;
			}
			if (func_942(&Local_1192))
			{
				sLocal_3448 = "cntry_fail2";
				return true;
			}
			if (func_943(&(iLocal_3099[0])))
			{
				sLocal_3448 = "cntry_fail5";
				return true;
			}
			if (func_941(&Local_1207))
			{
				sLocal_3448 = "cntry_fail20";
				return true;
			}
			if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(Local_1192, 1), 1) > 150f)
			{
				sLocal_3448 = "cntry_fail11";
				return true;
			}
			if (iLocal_3228 == 0)
			{
				if (func_938())
				{
					if (!ped::is_ped_injured(Local_1645))
					{
						if (ped::is_ped_sitting_in_vehicle(Local_1645, Local_1192))
						{
							ai::open_sequence_task(&iLocal_3465);
							ai::task_vehicle_drive_wander(0, Local_1192, 20f, 262144);
							ai::close_sequence_task(iLocal_3465);
							ai::task_perform_sequence(Local_1645, iLocal_3465);
							ai::clear_sequence_task(&iLocal_3465);
						}
					}
					else if (!ped::is_ped_injured(Local_1665))
					{
						ai::open_sequence_task(&iLocal_3465);
						ai::task_smart_flee_ped(0, player::player_ped_id(), 200f, -1, 0, 0);
						ai::close_sequence_task(iLocal_3465);
						ai::task_perform_sequence(Local_1645, iLocal_3465);
						ai::clear_sequence_task(&iLocal_3465);
					}
					ui::clear_prints();
					sLocal_3448 = "cntry_fail6";
					player::set_player_wanted_level(player::player_id(), 3, 0);
					iLocal_3226 = gameplay::get_game_timer();
					iLocal_1126 = 13;
					return true;
				}
			}
			if (player::get_player_wanted_level(player::player_id()) > 0)
			{
				sLocal_3448 = "cntry_fail6";
				return true;
			}
			break;
		
		case 5:
			if (func_942(&Local_1192))
			{
				sLocal_3448 = "cntry_fail2";
				return true;
			}
			if (func_943(&(iLocal_3099[0])))
			{
				sLocal_3448 = "cntry_fail5";
				return true;
			}
			if (func_943(&(iLocal_3099[1])))
			{
				sLocal_3448 = "cntry_fail7";
				return true;
			}
			if (func_943(&(iLocal_3099[2])))
			{
				sLocal_3448 = "cntry_fail8";
				return true;
			}
			if (player::get_player_wanted_level(player::player_id()) > 0)
			{
				sLocal_3448 = "cntry_fail6";
				return true;
			}
			if (iLocal_3257 == 0)
			{
				if (func_272(&iLocal_3309, 90000000))
				{
					sLocal_3448 = "cntry_fail26";
					audio::_0x552369F549563AD5(1);
					audio::play_sound_from_coord(iLocal_3410, "Distant_Sirens", 913.6f, -2301.6f, 34f, 0, 0, 0, 0);
					iLocal_3194 = true;
					return true;
				}
			}
			if ((func_937(joaat("weapon_stickybomb")) && !gameplay::is_projectile_type_in_angled_area(891.034f, -2362.032f, 29.282f, 888.756f, -2361.72f, 31.622f, 1.1f, joaat("weapon_stickybomb"), 0)) && !iLocal_3192)
			{
				if (func_272(&iLocal_3389, 2500))
				{
					sLocal_3448 = "cntry_god22";
					return true;
				}
			}
			else
			{
				iLocal_3389 = gameplay::get_game_timer();
			}
			if (iLocal_3190)
			{
				return true;
			}
			break;
		
		case 6:
		case 7:
			if (!Local_3143.f_16)
			{
				if (func_943(&(iLocal_3099[0])))
				{
					sLocal_3448 = "cntry_fail5";
					return true;
				}
				if (func_943(&(iLocal_3099[1])))
				{
					sLocal_3448 = "cntry_fail7";
					return true;
				}
				if (func_943(&(iLocal_3099[2])))
				{
					sLocal_3448 = "cntry_fail8";
					return true;
				}
				if (iLocal_3190)
				{
					return true;
				}
			}
			break;
		
		case 8:
			if (entity::does_entity_exist(Local_1177))
			{
				if (entity::is_entity_dead(Local_1177, 0))
				{
					if (!iLocal_3209)
					{
						if (!entity::is_entity_at_coord(Local_1177, vLocal_3808, 50f, 50f, 50f, false, false, 0))
						{
							sLocal_3448 = "cntry_fail25";
							return true;
						}
					}
					else if (!entity::is_entity_at_coord(Local_1177, vLocal_3808, 110f, 110f, 110f, false, false, 0))
					{
						sLocal_3448 = "cntry_fail25";
						return true;
					}
				}
			}
			if (!ui::does_blip_exist(Local_1177.f_2))
			{
				if (func_941(&Local_1177))
				{
					sLocal_3448 = "cntry_fail24";
					return true;
				}
			}
			if (func_943(&(iLocal_3099[0])))
			{
				sLocal_3448 = "cntry_fail5";
				return true;
			}
			if (func_943(&(iLocal_3099[1])))
			{
				sLocal_3448 = "cntry_fail7";
				return true;
			}
			if (func_943(&(iLocal_3099[2])))
			{
				sLocal_3448 = "cntry_fail8";
				return true;
			}
			if (vehicle::is_vehicle_driveable(Local_1177, 0))
			{
				if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(Local_1177, 1), 1) > 200f)
				{
					sLocal_3448 = "cntry_fail22";
					return true;
				}
			}
			break;
		
		case 11:
			if (func_943(&(iLocal_3099[0])))
			{
				sLocal_3448 = "cntry_fail5";
				return true;
			}
			if (func_943(&(iLocal_3099[1])))
			{
				sLocal_3448 = "cntry_fail7";
				return true;
			}
			if (func_943(&(iLocal_3099[2])))
			{
				sLocal_3448 = "cntry_fail8";
				return true;
			}
			if (func_943(&Local_2568))
			{
				sLocal_3448 = "cntry_fail13";
				func_936();
				return true;
			}
			if (func_942(&Local_1464))
			{
				sLocal_3448 = "cntry_fail14";
				func_936();
				return true;
			}
			if (iLocal_3210)
			{
				sLocal_3448 = "cntry_fail18";
				return true;
			}
			if (entity::does_entity_exist(Local_2568) && entity::does_entity_exist(Local_1464))
			{
				if (func_594(&Local_2568, &(Local_2568.f_10), Local_2568.f_14))
				{
				}
				if (fire::is_explosion_in_sphere(-1, entity::get_entity_coords(Local_2568, 1), 15f))
				{
				}
				if (!entity::is_entity_at_coord(Local_1464, entity::get_entity_coords(Local_1464, 1), 2f, 2f, 2f, false, true, 0))
				{
				}
				if (entity::has_entity_been_damaged_by_entity(Local_1464, player::player_ped_id(), 1))
				{
				}
				if (func_935())
				{
				}
				if (((((func_594(&Local_2568, &(Local_2568.f_10), Local_2568.f_14) || fire::is_explosion_in_sphere(-1, entity::get_entity_coords(Local_2568, 1), 15f)) || gameplay::is_bullet_in_area(entity::get_entity_coords(Local_2568, 1), 4f, 1)) || !entity::is_entity_at_coord(Local_1464, entity::get_entity_coords(Local_1464, 1), 2f, 2f, 2f, false, true, 0)) || entity::has_entity_been_damaged_by_entity(Local_1464, player::player_ped_id(), 1)) || func_935())
				{
					func_936();
					ai::open_sequence_task(&iLocal_3465);
					ai::task_smart_flee_ped(0, player::player_ped_id(), 200f, -1, 0, 0);
					ai::close_sequence_task(iLocal_3465);
					ai::task_perform_sequence(Local_2568, iLocal_3465);
					ai::clear_sequence_task(&iLocal_3465);
					sLocal_3448 = "cntry_fail18";
					return true;
				}
				if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(Local_2568, 1), 1) < 30f)
				{
					if (player::get_player_wanted_level(player::player_id()) > 0)
					{
						sLocal_3448 = "cntry_fail18";
						return true;
					}
				}
			}
			break;
		
		case 12:
			if (func_943(&Local_2568))
			{
				sLocal_3448 = "cntry_fail13";
				return true;
			}
			if (func_942(&Local_1464))
			{
				sLocal_3448 = "cntry_fail14";
				return true;
			}
			break;
	}
	return false;
}

bool func_935()//Position - 0x8F081
{
	if ((entity::is_entity_in_angled_area(player::player_ped_id(), -2560.765f, 1899.763f, 166.057f, -2553.95f, 1898.684f, 171.157f, 15.9f, 0, true, 0) || entity::is_entity_in_angled_area(player::player_ped_id(), -2558.312f, 1900.146f, 166.87f, -2604.425f, 1926.876f, 174.5f, 16.2f, 0, true, 0)) || entity::is_entity_in_angled_area(player::player_ped_id(), -2559.274f, 1911.036f, 166.87f, -2604.942f, 1934.406f, 174.5f, 24.1f, 0, true, 0))
	{
		return true;
	}
	return false;
}

void func_936()//Position - 0x8F127
{
	int iVar0;
	
	iVar0 = 0;
	while (iVar0 <= (Local_2770 - 1))
	{
		if (!ped::is_ped_injured(Local_2770[iVar0 /*20*/]))
		{
			ped::set_blocking_of_non_temporary_events(Local_2770[iVar0 /*20*/], false);
			ped::set_ped_sphere_defensive_area(Local_2770[iVar0 /*20*/], Local_2770[iVar0 /*20*/].f_6, 2f, 0, 0);
			ped::set_ped_combat_attributes(Local_2770[iVar0 /*20*/], 51, true);
			ped::set_ped_combat_attributes(Local_2770[iVar0 /*20*/], 50, true);
			ai::task_combat_hated_targets_around_ped(Local_2770[iVar0 /*20*/], 200f, 0);
		}
		iVar0++;
	}
}

bool func_937(int iParam0)//Position - 0x8F1A6
{
	if (weapon::has_ped_got_weapon(player::player_ped_id(), iParam0, 0))
	{
		if (weapon::get_ammo_in_ped_weapon(player::player_ped_id(), iParam0) < 1)
		{
			return true;
		}
	}
	else
	{
		return true;
	}
	return false;
}

bool func_938()//Position - 0x8F1D6
{
	if ((func_272(&iLocal_3246, 42000) || func_940()) || player::is_player_wanted_level_greater(player::player_id(), 0))
	{
		return true;
	}
	if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1207))
	{
		if (!entity::is_entity_in_angled_area(player::player_ped_id(), 907.426f, -2371.301f, 29.55f, 908.093f, -2362.426f, 33.55f, 6f, 0, true, 0))
		{
			if ((func_594(&Local_1645, &(Local_1645.f_10), Local_1645.f_14) || func_594(&Local_1665, &(Local_1665.f_10), Local_1665.f_14)) || func_939(&Local_1192, &(Local_1192.f_9)))
			{
				return true;
			}
		}
		else if (entity::get_entity_heading(Local_1207) > 45f && entity::get_entity_heading(Local_1207) < 135f)
		{
			if (entity::is_entity_touching_entity(Local_1207, Local_1192))
			{
				if (entity::get_entity_speed(Local_1207) < 5f)
				{
					return true;
				}
			}
		}
		else
		{
			if (func_594(&Local_1645, &(Local_1645.f_10), Local_1645.f_14))
			{
			}
			if (func_594(&Local_1665, &(Local_1665.f_10), Local_1665.f_14))
			{
			}
			if (func_939(&Local_1192, &(Local_1192.f_9)))
			{
			}
			if ((func_594(&Local_1645, &(Local_1645.f_10), Local_1645.f_14) || func_594(&Local_1665, &(Local_1665.f_10), Local_1665.f_14)) || func_939(&Local_1192, &(Local_1192.f_9)))
			{
				return true;
			}
		}
	}
	else
	{
		if (func_594(&Local_1645, &(Local_1645.f_10), Local_1645.f_14))
		{
		}
		if (func_594(&Local_1665, &(Local_1665.f_10), Local_1665.f_14))
		{
		}
		if (func_939(&Local_1192, &(Local_1192.f_9)))
		{
		}
		if ((func_594(&Local_1645, &(Local_1645.f_10), Local_1645.f_14) || func_594(&Local_1665, &(Local_1665.f_10), Local_1665.f_14)) || func_939(&Local_1192, &(Local_1192.f_9)))
		{
			return true;
		}
	}
	return false;
}

bool func_939(int iParam0, var uParam1)//Position - 0x8F3BF
{
	int iVar0;
	
	if (entity::does_entity_exist(*iParam0))
	{
		if (vehicle::is_vehicle_driveable(*iParam0, 0))
		{
			iVar0 = entity::get_entity_health(*iParam0);
			if (((vehicle::get_vehicle_petrol_tank_health(*iParam0) < IntToFloat(*uParam1) || vehicle::get_vehicle_engine_health(*iParam0) < IntToFloat(*uParam1)) || entity::has_entity_been_damaged_by_entity(*iParam0, player::player_ped_id(), 1)) || iVar0 < *uParam1)
			{
				return true;
			}
		}
		else
		{
			return true;
		}
	}
	return false;
}

bool func_940()//Position - 0x8F430
{
	if (ped::is_ped_sitting_in_vehicle(player::player_ped_id(), Local_1207))
	{
		if (entity::is_entity_in_angled_area(player::player_ped_id(), 875.867f, -2347.926f, 27.521f, 925.899f, -2352.039f, 35.521f, 190.8f, 0, true, 0))
		{
			if (!entity::is_entity_in_angled_area(player::player_ped_id(), 913.41f, -2369.405f, 27.55f, 914.169f, -2360.739f, 33.55f, 22.9f, 0, true, 0))
			{
				if (!iLocal_3182)
				{
					iLocal_3243 = gameplay::get_game_timer();
					iLocal_3182 = 1;
				}
				else if (func_272(&iLocal_3243, 5000))
				{
					return true;
				}
			}
			else if (!iLocal_3183)
			{
				iLocal_3244 = gameplay::get_game_timer();
				iLocal_3183 = 1;
			}
			else if (func_272(&iLocal_3244, 5000))
			{
				return true;
			}
		}
	}
	else
	{
		if (entity::is_entity_in_angled_area(player::player_ped_id(), 913.41f, -2369.405f, 27.55f, 914.169f, -2360.739f, 33.55f, 22.9f, 0, true, 0))
		{
			return true;
		}
		if (entity::is_entity_in_angled_area(player::player_ped_id(), 875.867f, -2347.926f, 27.521f, 925.899f, -2352.039f, 35.521f, 190.8f, 0, true, 0))
		{
			if (gameplay::get_distance_between_coords(entity::get_entity_coords(player::player_ped_id(), 1), entity::get_entity_coords(Local_1192, 1), 1) < 7f)
			{
				return true;
			}
		}
	}
	return false;
}

bool func_941(int iParam0)//Position - 0x8F581
{
	if (entity::does_entity_exist(*iParam0))
	{
		if (vehicle::is_vehicle_driveable(*iParam0, 0))
		{
			if (((vehicle::is_vehicle_stuck_timer_up(*iParam0, 0, 7000) || vehicle::is_vehicle_stuck_timer_up(*iParam0, 3, 30000)) || vehicle::is_vehicle_stuck_timer_up(*iParam0, 2, 30000)) || vehicle::is_vehicle_stuck_timer_up(*iParam0, 1, 40000))
			{
				return true;
			}
		}
	}
	return false;
}

bool func_942(int iParam0)//Position - 0x8F5E5
{
	if (entity::does_entity_exist(*iParam0))
	{
		if (!vehicle::is_vehicle_driveable(*iParam0, 0))
		{
			return true;
		}
	}
	return false;
}

int func_943(int iParam0)//Position - 0x8F608
{
	if (entity::does_entity_exist(*iParam0))
	{
		return ped::is_ped_injured(*iParam0);
	}
	return false;
}

void func_944()//Position - 0x8F625
{
	int iVar0;
	
	func_655(player::player_ped_id(), -1);
	func_953();
	func_952();
	if (player::is_player_playing(player::player_id()))
	{
		player::clear_player_wanted_level(player::player_id());
	}
	player::set_wanted_level_multiplier(0.3f);
	func_951();
	ped::add_scenario_blocking_area(1570.8f, -1923.1f, 100f, 1258.2f, -2153.2f, -100f, 0, 1, 1, 1);
	pathfind::add_navmesh_blocking_object(891.696f, -2368.981f, 29.853f, 8.675f, 0.75f, 2.125f, func_950(-44.4f), 0, 7);
	pathfind::add_navmesh_blocking_object(884.755f, -2365.731f, 29.785f, 7.325f, 0.75f, 2.125f, func_950(-4.7f), 0, 7);
	ai::add_cover_blocking_area(843.7094f, -2302.698f, 29.3429f, 846.3494f, -2306.49f, 29.33395f, 1, 0, 1, 0);
	iLocal_3469 = ai::add_cover_point(881.53f, -2334.04f, 33.91f, 269.9536f, 0, 0, 0, 0);
	iLocal_3470 = ai::add_cover_point(871.79f, -2344.442f, 29.33137f, 273.9499f, 0, 0, 0, 0);
	iLocal_3471 = ai::add_cover_point(873.8578f, -2353.03f, 29.33141f, 281.0534f, 0, 0, 0, 0);
	iLocal_3472 = ai::add_cover_point(845.6603f, -2332.308f, 29.3346f, 348.7454f, 0, 0, 0, 0);
	gameplay::_set_weather_type_over_time("EXTRASUNNY", 20f);
	ped::_0xF2BEBCDFAFDAA19E(0);
	func_540();
	Global_9 = 1;
	if (!Global_3)
	{
		if (Global_101154.f_1826.f_539.f_1631[0] == -99)
		{
			Global_101154.f_1826.f_539.f_1631[0] = 21;
			Global_101154.f_1826.f_539.f_1631[1] = 13;
			Global_101154.f_1826.f_539.f_1631[2] = 19;
		}
	}
	if (func_330())
	{
		iLocal_3833 = 1;
		if (!Global_85788)
		{
			switch (func_949())
			{
				case 0:
					func_489();
					break;
				
				case 1:
					func_435();
					break;
				
				case 2:
					func_433();
					break;
				
				case 3:
					func_402();
					break;
				
				case 4:
					func_332();
					break;
			}
		}
		else
		{
			iVar0 = func_949() + 1;
			switch (iVar0)
			{
				case 1:
					func_435();
					break;
				
				case 2:
					func_433();
					break;
				
				case 3:
					func_402();
					break;
				
				case 4:
					func_332();
					break;
				
				case 5:
					func_274();
					break;
				}
		}
		iLocal_3833 = 0;
	}
	else
	{
		Global_88063 = 4;
		if (!func_567(0))
		{
			if (!cam::is_screen_faded_in())
			{
				if (!cam::is_screen_fading_in())
				{
					cam::do_screen_fade_in(800);
				}
			}
			func_333(0, "Start of mission", 0, 0, 0, 1);
		}
		else
		{
			func_945();
		}
	}
}

void func_945()//Position - 0x8F8E2
{
	streaming::request_model(func_93(0));
	streaming::request_model(func_93(1));
	streaming::request_model(func_93(2));
	streaming::request_model(Local_1177.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1177.f_1, true);
	vehicle::request_vehicle_asset(Local_1177.f_1, 15);
	streaming::request_model(Local_1207.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1207.f_1, true);
	streaming::request_model(Local_1479.f_1);
	vehicle::set_vehicle_model_is_suppressed(Local_1479.f_1, true);
	while ((((((!streaming::has_model_loaded(func_93(0)) || !streaming::has_model_loaded(func_93(2))) || !streaming::has_model_loaded(func_93(1))) || !streaming::has_model_loaded(Local_1177.f_1)) || !vehicle::has_vehicle_asset_loaded(Local_1177.f_1)) || !streaming::has_model_loaded(Local_1207.f_1)) || !streaming::has_model_loaded(Local_1479.f_1))
	{
		system::wait(0);
	}
	func_961(1, 0, 0, 1, 0);
	gameplay::clear_area(1377.909f, -2071.441f, 50.9983f, 1000f, 1, 0, 0, false);
	ai::clear_ped_tasks_immediately(player::player_ped_id());
	func_443(0, 0);
	entity::set_entity_coords(player::player_ped_id(), 1368.444f, -2072.823f, 50.9983f, 1, false, 0, 1);
	entity::set_entity_heading(player::player_ped_id(), 235.72f);
	Local_1177 = vehicle::create_vehicle(Local_1177.f_1, 1381.472f, -2072.245f, 50.9981f, 38.334f, 1, true);
	audio::_0x43FA0DFC5DF87815(Local_1177, 0);
	func_400(Local_1177, 0);
	Local_1207 = vehicle::create_vehicle(Local_1207.f_1, 1374.858f, -2077.374f, 50.9981f, 37.5148f, 1, true);
	vehicle::set_vehicle_colours(Local_1207, 0, 0);
	vehicle::set_vehicle_doors_locked(Local_1207, 3);
	vehicle::_0x2B6747FAA9DB9D6B(Local_1207, 1);
	func_400(Local_1207, 1);
	cutscene::request_cutscene("fbi_4_mcs_3_concat", 8);
	while (!cutscene::has_cutscene_loaded())
	{
		cutscene::_0x2A56C06EBEF2B0D9("franklin", player::player_ped_id(), 0);
		func_947(0, "michael", 2);
		func_947(2, "trevor", 2);
		system::wait(0);
	}
	streaming::new_load_scene_start(1368.444f, -2072.823f, 50.9983f, func_946(0f, 0f, 235.72f), 10f, 0);
	while (!streaming::is_new_load_scene_loaded())
	{
		system::wait(0);
	}
	streaming::new_load_scene_stop();
	cutscene::register_entity_for_cutscene(0, "franklin", 2, func_93(1), 0);
	cutscene::register_entity_for_cutscene(0, "trevor", 2, func_93(2), 0);
	cutscene::register_entity_for_cutscene(0, "trevors_car", 2, Local_1479.f_1, 0);
	if (vehicle::is_vehicle_driveable(Local_1177, 0))
	{
		cutscene::register_entity_for_cutscene(Local_1177, "fbi_bin_lorry", 0, joaat("trash"), 0);
	}
	if (vehicle::is_vehicle_driveable(Local_1207, 0))
	{
		cutscene::register_entity_for_cutscene(Local_1207, "fbi_truck", 0, joaat("towtruck"), 0);
	}
	func_275(1, 1, 1, 0);
	cutscene::start_cutscene(0);
	iLocal_3283 = 1;
}

Vector3 func_946(vector3 vParam0)//Position - 0x8FB87
{
	return (-system::sin(vParam0.y) * system::cos(vParam0.x)), (system::cos(vParam0.y) * system::cos(vParam0.x)), system::sin(vParam0.x);
}

void func_947(int iParam0, char* sParam1, int iParam2)//Position - 0x8FBB4
{
	struct<50> Var0;
	struct<50> Var65;
	int iVar130;
	int iVar131;
	int iVar132;
	struct<14> Var133;
	int iVar147;
	int iVar148;
	int iVar149;
	int iVar150;
	int iVar151;
	int iVar152;
	
	if (!func_269(iParam0))
	{
		return;
	}
	Var0 = { Global_101154.f_1826.f_539[iParam0 /*65*/] };
	Var65 = { Global_101154.f_1826.f_539[iParam0 /*65*/] };
	iVar130 = 0;
	while (iVar130 < 12)
	{
		func_347(0, iVar130, &(Var65.f_13[iVar130]), &(Var65[iVar130]), &(Var65.f_26[iVar130]), iParam2, iParam0);
		iVar130++;
	}
	iVar130 = 0;
	while (iVar130 < 9)
	{
		func_346(0, iVar130, &(Var65.f_39[iVar130]), &(Var65.f_49[iVar130]), iParam2, iParam0);
		iVar130++;
	}
	iVar147 = func_93(iParam0);
	iVar148 = 0;
	iVar149 = 0;
	iVar131 = 0;
	while (iVar131 < 12)
	{
		if (Var65.f_13[iVar131] != Var0.f_13[iVar131] || Var65[iVar131] != Var0[iVar131])
		{
			if (func_256(iVar147, func_90(iVar131), Global_101154.f_1826.f_539.f_204[iVar131 /*4*/][iParam0], &iVar132))
			{
				Var133 = { func_10(iVar147, 2, Var65.f_59) };
				Var65.f_13[2] = Var133.f_3;
				Var65[2] = Var133.f_4;
				iVar148 = 1;
			}
			if (func_263(iVar147, func_90(iVar131), Global_101154.f_1826.f_539.f_204[iVar131 /*4*/][iParam0], &iVar132))
			{
				Var133 = { func_10(iVar147, 1, Var65.f_62) };
				Var65.f_13[1] = Var133.f_3;
				Var65[1] = Var133.f_4;
				iVar149 = 1;
			}
		}
		iVar131++;
	}
	iVar131 = 0;
	while (iVar131 < 9)
	{
		if (Var65.f_39[iVar131] != Var0.f_39[iVar131] || Var65.f_49[iVar131] != Var0.f_49[iVar131])
		{
			if (func_256(iVar147, 14, Global_101154.f_1826.f_539.f_253[iVar131 /*4*/][iParam0], &iVar132))
			{
				Var133 = { func_10(iVar147, 2, Var65.f_59) };
				Var65.f_13[2] = Var133.f_3;
				Var65[2] = Var133.f_4;
				iVar148 = 1;
			}
			if (func_263(iVar147, 14, Global_101154.f_1826.f_539.f_253[iVar131 /*4*/][iParam0], &iVar132))
			{
				Var133 = { func_10(iVar147, 1, Var65.f_62) };
				Var65.f_13[1] = Var133.f_3;
				Var65[1] = Var133.f_4;
				iVar149 = 1;
			}
		}
		iVar131++;
	}
	if (iVar149 || iVar148)
	{
		iVar150 = Global_101154.f_1826.f_539.f_204[1 /*4*/][iParam0];
		iVar151 = Global_101154.f_1826.f_539.f_204[2 /*4*/][iParam0];
		iVar152 = func_264(iVar147, iVar151, iVar150);
		if (iVar152 != -99)
		{
			Var133 = { func_10(iVar147, 0, iVar152) };
			Var65.f_13[0] = Var133.f_3;
			Var65[0] = Var133.f_4;
		}
	}
	iVar131 = 0;
	while (iVar131 < 12)
	{
		cutscene::set_cutscene_ped_component_variation(sParam1, iVar131, Var65.f_13[iVar131], Var65[iVar131], func_93(iParam0));
		iVar131++;
	}
	iVar131 = 0;
	while (iVar131 < 9)
	{
		if (Global_91068[iParam0 /*65*/].f_39[iVar131] == -1 || Global_91068[iParam0 /*65*/].f_39[iVar131] == 255)
		{
			cutscene::set_cutscene_ped_prop_variation(sParam1, iVar131, -1, 0, func_93(iParam0));
		}
		else
		{
			cutscene::set_cutscene_ped_prop_variation(sParam1, iVar131, Var65.f_39[iVar131], Var65.f_49[iVar131], func_93(iParam0));
		}
		iVar131++;
	}
	func_948(sParam1, iParam0);
}

bool func_948(char* sParam0, int iParam1)//Position - 0x8FF18
{
	var uVar0;
	struct<14> Var16;
	int iVar30;
	int iVar31;
	var uVar32;
	struct<14> Var48;
	int iVar62;
	int iVar63;
	var uVar64;
	var uVar80;
	struct<14> Var96;
	struct<14> Var110;
	int iVar124;
	int iVar125;
	
	if (func_421(iParam1))
	{
		uVar0 = 15;
		uVar0 = { func_88(func_93(iParam1), 0) };
		iVar30 = 0;
		while (iVar30 < 15)
		{
			if (uVar0[iVar30] != -99)
			{
				Var16 = { func_10(func_93(iParam1), iVar30, uVar0[iVar30]) };
				if (iVar30 == 14)
				{
					iVar31 = 0;
					while (iVar31 < 9)
					{
						cutscene::set_cutscene_ped_prop_variation(sParam0, iVar31, -1, 0, func_93(iParam1));
						iVar31++;
					}
				}
				else if (iVar30 != 12 && iVar30 != 13)
				{
					cutscene::set_cutscene_ped_component_variation(sParam0, func_25(iVar30), Var16.f_3, Var16.f_4, func_93(iParam1));
				}
			}
			iVar30++;
		}
		func_420(iParam1, 0);
		return true;
	}
	switch (iParam1)
	{
		case 0:
			if (Global_101154.f_7775.f_99.f_58[120] && !Global_101154.f_7775.f_99.f_58[122])
			{
				uVar32 = 15;
				uVar32 = { func_88(func_93(iParam1), 0) };
				iVar62 = 0;
				while (iVar62 < 15)
				{
					if (uVar32[iVar62] != -99)
					{
						Var48 = { func_10(func_93(iParam1), iVar62, uVar32[iVar62]) };
						if (iVar62 == 14)
						{
							iVar63 = 0;
							while (iVar63 < 9)
							{
								cutscene::set_cutscene_ped_prop_variation(sParam0, iVar63, -1, 0, func_93(iParam1));
								iVar63++;
							}
						}
						else if (iVar62 != 12 && iVar62 != 13)
						{
							cutscene::set_cutscene_ped_component_variation(sParam0, func_25(iVar62), Var48.f_3, Var48.f_4, func_93(iParam1));
						}
					}
					iVar62++;
				}
				Global_101154.f_7775.f_99.f_58[121] = 1;
			}
			break;
		
		case 2:
			uVar64 = 15;
			uVar80 = 15;
			Var96 = { func_10(func_93(iParam1), 3, 71) };
			if (Global_101154.f_1826.f_539[iParam1 /*65*/].f_13[3] == Var96.f_3)
			{
			}
			else
			{
				uVar64 = { func_88(func_93(iParam1), 10) };
				uVar80 = { func_88(func_93(iParam1), 0) };
				iVar124 = 0;
				while (iVar124 < 15)
				{
					if (uVar64[iVar124] != -99)
					{
						if (iVar124 == 14)
						{
							iVar125 = 0;
							while (iVar125 < 9)
							{
								cutscene::set_cutscene_ped_prop_variation(sParam0, iVar125, -1, 0, func_93(iParam1));
								iVar125++;
							}
						}
						else if (iVar124 != 12 && iVar124 != 13)
						{
							if (iVar124 == 3 || iVar124 == 4)
							{
								Var96 = { func_10(func_93(iParam1), iVar124, uVar64[iVar124]) };
								if (Var96.f_3 == Global_101154.f_1826.f_539[iParam1 /*65*/].f_13[iVar124] && Var96.f_4 == Global_101154.f_1826.f_539[iParam1 /*65*/][iVar124])
								{
									Var110 = { func_10(func_93(iParam1), iVar124, uVar80[iVar124]) };
									Global_101154.f_1826.f_539[iParam1 /*65*/].f_13[iVar124] = Var110.f_3;
									Global_101154.f_1826.f_539[iParam1 /*65*/][iVar124] = Var110.f_4;
									cutscene::set_cutscene_ped_component_variation(sParam0, func_25(iVar124), Var110.f_3, Var110.f_4, func_93(iParam1));
									if (iVar124 == 4)
									{
										Var110 = { func_10(func_93(iParam1), 6, uVar80[6]) };
										Global_101154.f_1826.f_539[iParam1 /*65*/].f_13[6] = Var110.f_3;
										Global_101154.f_1826.f_539[iParam1 /*65*/][6] = Var110.f_4;
										cutscene::set_cutscene_ped_component_variation(sParam0, func_25(6), Var110.f_3, Var110.f_4, func_93(iParam1));
									}
								}
							}
						}
					}
					iVar124++;
				}
			}
			break;
	}
	return false;
}

int func_949()//Position - 0x902B2
{
	if (!Global_91278 == 10 && !Global_91278 == 9)
	{
		return 0;
	}
	return Global_91278.f_2;
}

float func_950(float fParam0)//Position - 0x902DC
{
	return (fParam0 * 0.01745329f);
}

void func_951()//Position - 0x902EC
{
	Global_25343 = 1;
	StringCopy(&Global_25344, script::get_this_script_name(), 24);
}

void func_952()//Position - 0x90301
{
	ped::add_relationship_group("players group", &iLocal_3835);
	ped::add_relationship_group("enemy group", &iLocal_3836);
}

void func_953()//Position - 0x90323
{
	audio::register_script_with_audio(0);
	ui::request_additional_text("heataud", 6);
	ui::request_additional_text("CNTRY1", 0);
	while (!ui::has_additional_text_loaded(0) || !ui::has_additional_text_loaded(6))
	{
		system::wait(0);
	}
}

void func_954()//Position - 0x90361
{
	func_920(38);
	func_600();
	if (player::is_player_playing(player::player_id()))
	{
		ped::set_ped_using_action_mode(player::player_ped_id(), false, -1, 0);
		player::set_all_random_peds_flee(player::player_id(), 0);
	}
	func_727(&(Local_3473[0 /*165*/]), 0);
	func_727(&(Local_3473[0 /*165*/]), 1);
	func_727(&(Local_3473[0 /*165*/]), 2);
	func_727(&(Local_3473[0 /*165*/]), 3);
	func_727(&(Local_3473[0 /*165*/]), 4);
	if (!func_956())
	{
		gameplay::set_time_scale(1f);
	}
	gameplay::set_fake_wanted_level(0);
	player::set_max_wanted_level(6);
	ped::set_create_random_cops(true);
	player::set_wanted_level_multiplier(1f);
	streaming::end_srl();
	func_955();
	audio::_0x552369F549563AD5(0);
	if (!audio::has_sound_finished(iLocal_3410))
	{
		audio::stop_sound(iLocal_3410);
	}
	gameplay::reset_dispatch_spawn_blocking_areas();
	ped::remove_scenario_blocking_areas();
	ped::clear_ped_non_creation_area();
	vehicle::_display_distant_vehicles(1);
	vehicle::set_all_vehicle_generators_active_in_area(945.8f, -2080.8f, 100f, 1015.3f, -2035.2f, 32.3f, true, 1);
	vehicle::set_all_vehicle_generators_active_in_area(924.63f, -2338.35f, 100f, 906.44f, -2371.57f, -100f, true, 1);
	vehicle::set_all_vehicle_generators_active_in_area(906.8f, -2322f, 100f, 844f, -2365.1f, -100f, true, 1);
	gameplay::clear_weather_type_persist();
	streaming::set_vehicle_population_budget(3);
	streaming::set_ped_population_budget(3);
	ai::remove_waypoint_recording("heat1");
	if (!iLocal_3805 == 0)
	{
		graphics::set_scaleform_movie_as_no_longer_needed(&iLocal_3805);
	}
	streaming::_0x1EE7D8DF4425F053(iLocal_3806);
	audio::trigger_music_event("FBI4_MISSION_FAIL");
	streaming::end_srl();
	script::terminate_this_thread();
}

void func_955()//Position - 0x904C6
{
	if (Global_25343)
	{
		Global_25343 = 0;
		StringCopy(&Global_25344, "NULL", 24);
	}
}

bool func_956()//Position - 0x904E2
{
	if (((Global_91278 == 13 || Global_91278 == 10) || Global_91278 == 11) || Global_91278 == 12)
	{
		return false;
	}
	return true;
}

void func_957()//Position - 0x90520
{
	int iVar0;
	
	if (script::has_script_loaded("buddyDeathResponse"))
	{
		system::start_new_script("buddyDeathResponse", 1424);
	}
	if (Global_101154.f_7775 || func_567(0))
	{
		if (!func_956())
		{
			iVar0 = func_565();
			if (iVar0 != -1)
			{
				if (!func_926(iVar0))
				{
					return;
				}
				gameplay::set_bit(&(Global_82363[iVar0 /*5*/].f_1), 5);
				return;
			}
		}
		else
		{
			func_931();
		}
	}
}

void func_958(int iParam0, var uParam1)//Position - 0x90593
{
	int iVar0;
	
	iVar0 = 0;
	if (entity::does_entity_exist(iParam0))
	{
		if (weapon::get_current_ped_weapon(iParam0, &iVar0, 0))
		{
			if (iVar0 != 0 && iVar0 != joaat("weapon_unarmed"))
			{
				if (!func_959(uParam1, iVar0))
				{
					iVar0 = 0;
				}
			}
		}
	}
	if (Global_91315 > 0)
	{
		Global_95496.f_21[uParam1] = iVar0;
	}
	else
	{
		Global_93091.f_21[uParam1] = iVar0;
	}
}

bool func_959(var uParam0, int iParam1)//Position - 0x905F9
{
	int iVar0;
	
	iVar0 = 0;
	if (Global_91315 > 0)
	{
		iVar0 = 0;
		while (iVar0 < 44)
		{
			if (Global_95496.f_812[uParam0 /*284*/][iVar0 /*3*/] == iParam1)
			{
				if (Global_95496.f_812[uParam0 /*284*/][iVar0 /*3*/].f_1 > 0)
				{
					return true;
				}
			}
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 50)
		{
			if (Global_95496.f_812[uParam0 /*284*/].f_133[iVar0 /*3*/] == iParam1)
			{
				if (Global_95496.f_812[uParam0 /*284*/].f_133[iVar0 /*3*/].f_1 > 0)
				{
					return true;
				}
			}
			iVar0++;
		}
	}
	else
	{
		iVar0 = 0;
		while (iVar0 < 44)
		{
			if (Global_93091.f_812[uParam0 /*284*/][iVar0 /*3*/] == iParam1)
			{
				if (Global_93091.f_812[uParam0 /*284*/][iVar0 /*3*/].f_1 > 0)
				{
					return true;
				}
			}
			iVar0++;
		}
		iVar0 = 0;
		while (iVar0 < 50)
		{
			if (Global_93091.f_812[uParam0 /*284*/].f_133[iVar0 /*3*/] == iParam1)
			{
				if (Global_93091.f_812[uParam0 /*284*/].f_133[iVar0 /*3*/].f_1 > 0)
				{
					return true;
				}
			}
			iVar0++;
		}
	}
	return false;
}

var func_960()//Position - 0x9072C
{
	func_349();
	return Global_101154.f_1826.f_539.f_3549;
}

void func_961(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)//Position - 0x90745
{
	if (iParam0 != 198)
	{
		if (Global_69489)
		{
			Global_2428492.f_74.f_227[iParam0] = iParam1;
		}
		else
		{
			Global_101154.f_5951.f_227[iParam0] = iParam1;
		}
		Global_32679[iParam0] = iParam2;
		Global_32878[iParam0] = 1;
		func_964(iParam0, iParam3, iParam4, 0);
		func_962(iParam0, iParam1);
	}
}

void func_962(int iParam0, int iParam1)//Position - 0x907A0
{
	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_963(0, 0);
			}
			else
			{
				func_963(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_963(int iParam0, int iParam1)//Position - 0x90894
{
	if (iParam1)
	{
		gameplay::set_bit(&Global_99794, iParam0);
	}
	else
	{
		gameplay::clear_bit(&Global_99794, iParam0);
	}
	Global_99793 = 1;
}

int func_964(int iParam0, int iParam1, int iParam2, int iParam3)//Position - 0x908BD
{
	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_965(&Var3, iParam0);
	if (func_466())
	{
		iVar1 = Global_101154.f_5951.f_227[iParam0];
	}
	else
	{
		iVar1 = Global_2428492.f_74.f_227[iParam0];
	}
	uVar2 = Global_33077[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_32679[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_34273[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_34074[iParam0] = 1;
					Global_34273[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_34273[iParam0] = 1;
					Global_34074[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_34273[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_34273[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_32425[(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_32425[(iParam0 / 32)]), (iParam0 % 32));
					}
					iVar0 = true;
					break;
			}
			if (iVar0)
			{
				Global_32878[iParam0] = 0;
				Global_33077[iParam0] = iVar1;
				if (!func_466())
				{
					if (!Global_33674[iParam0])
					{
						Global_33674[iParam0] = 1;
						Global_33873++;
					}
				}
			}
		}
	}
	return iVar0;
}

bool func_965(var uParam0, int iParam1)//Position - 0x911FF
{
	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;
}

